From c79aa6cd7f0055189ae5df9841b0d361e9e74fd1 Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Wed, 13 Nov 2024 20:28:59 +0800 Subject: [PATCH] bump: RSI Launcher 2.1.0 549254fe --- main.js | 21637 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 12818 insertions(+), 8819 deletions(-) diff --git a/main.js b/main.js index 8cc1f35..f285967 100644 --- a/main.js +++ b/main.js @@ -1,4 +1,12 @@ -/*! For license information please see main.d5394d7f.js.LICENSE.txt */ +/*! For license information please see main.549254fe.js.LICENSE.txt */ + +! function() { + try { + var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}, + n = (new e.Error).stack; + n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e6864d39-081c-59b1-8d96-f1bfc303b3db") + } catch (e) {} +}(); (() => { const SC_TOOLBOX_ENABLED_LOCALIZATION = "en"; const SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST = false; @@ -114,8 +122,8 @@ w = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), - I = Symbol.for("react.provider"), - O = Symbol.for("react.context"), + O = Symbol.for("react.provider"), + I = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), @@ -129,16 +137,16 @@ function N(e) { return null === e || "object" !== typeof e ? null : "function" === typeof(e = L && e[L] || e["@@iterator"]) ? e : null } - var M, j = Object.assign; + var j, M = Object.assign; function F(e) { - if (void 0 === M) try { + if (void 0 === j) try { throw Error() } catch (n) { var t = n.stack.trim().match(/\n( *(at )?)/); - M = t && t[1] || "" + j = t && t[1] || "" } - return "\n" + M + e + return "\n" + j + e } var z = !1; @@ -241,9 +249,9 @@ return "SuspenseList" } if ("object" === typeof e) switch (e.$$typeof) { - case O: - return (e.displayName || "Context") + ".Consumer"; case I: + return (e.displayName || "Context") + ".Consumer"; + case O: return (e._context.displayName || "Context") + ".Provider"; case C: var t = e.render; @@ -310,7 +318,7 @@ return null } - function W(e) { + function $(e) { switch (typeof e) { case "boolean": case "number": @@ -323,14 +331,14 @@ } } - function $(e) { + function q(e) { var t = e.type; return (e = e.nodeName) && "input" === e.toLowerCase() && ("checkbox" === t || "radio" === t) } - function q(e) { + function W(e) { e._valueTracker || (e._valueTracker = function(e) { - var t = $(e) ? "checked" : "value", + var t = q(e) ? "checked" : "value", n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), r = "" + e[t]; if (!e.hasOwnProperty(t) && "undefined" !== typeof n && "function" === typeof n.get && "function" === typeof n.set) { @@ -367,7 +375,7 @@ if (!t) return !0; var n = t.getValue(), r = ""; - return e && (r = $(e) ? e.checked ? "true" : "false" : e.value), (e = r) !== n && (t.setValue(e), !0) + return e && (r = q(e) ? e.checked ? "true" : "false" : e.value), (e = r) !== n && (t.setValue(e), !0) } function K(e) { @@ -381,7 +389,7 @@ function Y(e, t) { var n = t.checked; - return j({}, t, { + return M({}, t, { defaultChecked: void 0, defaultValue: void 0, value: void 0, @@ -392,7 +400,7 @@ function Q(e, t) { var n = null == t.defaultValue ? "" : t.defaultValue, r = null != t.checked ? t.checked : t.defaultChecked; - n = W(null != t.value ? t.value : n), e._wrapperState = { + n = $(null != t.value ? t.value : n), e._wrapperState = { initialChecked: r, initialValue: n, controlled: "checkbox" === t.type || "radio" === t.type ? null != t.checked : null != t.value @@ -405,11 +413,11 @@ function X(e, t) { Z(e, t); - var n = W(t.value), + var n = $(t.value), r = t.type; if (null != n) "number" === r ? (0 === n && "" === e.value || e.value != n) && (e.value = "" + n) : e.value !== "" + n && (e.value = "" + n); else if ("submit" === r || "reset" === r) return void e.removeAttribute("value"); - t.hasOwnProperty("value") ? ee(e, t.type, n) : t.hasOwnProperty("defaultValue") && ee(e, t.type, W(t.defaultValue)), null == t.checked && null != t.defaultChecked && (e.defaultChecked = !!t.defaultChecked) + t.hasOwnProperty("value") ? ee(e, t.type, n) : t.hasOwnProperty("defaultValue") && ee(e, t.type, $(t.defaultValue)), null == t.checked && null != t.defaultChecked && (e.defaultChecked = !!t.defaultChecked) } function J(e, t, n) { @@ -432,7 +440,7 @@ for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0; for (n = 0; n < e.length; n++) i = t.hasOwnProperty("$" + e[n].value), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0) } else { - for (n = "" + W(n), t = null, i = 0; i < e.length; i++) { + for (n = "" + $(n), t = null, i = 0; i < e.length; i++) { if (e[i].value === n) return e[i].selected = !0, void(r && (e[i].defaultSelected = !0)); null !== t || e[i].disabled || (t = e[i]) } @@ -442,7 +450,7 @@ function re(e, t) { if (null != t.dangerouslySetInnerHTML) throw Error(a(91)); - return j({}, t, { + return M({}, t, { value: void 0, defaultValue: void 0, children: "" + e._wrapperState.initialValue @@ -463,13 +471,13 @@ null == t && (t = ""), n = t } e._wrapperState = { - initialValue: W(n) + initialValue: $(n) } } function ae(e, t) { - var n = W(t.value), - r = W(t.defaultValue); + var n = $(t.value), + r = $(t.defaultValue); null != n && ((n = "" + n) !== e.value && (e.value = n), null == t.defaultValue && e.defaultValue !== n && (e.defaultValue = n)), null != r && (e.defaultValue = "" + r) } @@ -575,7 +583,7 @@ t = t + e.charAt(0).toUpperCase() + e.substring(1), he[t] = he[e] })) })); - var ve = j({ + var ve = M({ menuitem: !0 }, { area: !0, @@ -639,11 +647,11 @@ } } - function Ie(e) { + function Oe(e) { we ? Se ? Se.push(e) : Se = [e] : we = e } - function Oe() { + function Ie() { if (we) { var e = we, t = Se; @@ -665,7 +673,7 @@ try { return Ce(e, t, n) } finally { - Pe = !1, (null !== we || null !== Se) && (Ae(), Oe()) + Pe = !1, (null !== we || null !== Se) && (Ae(), Ie()) } } @@ -716,18 +724,18 @@ this.onError(u) } } - var Me = !1, - je = null, + var je = !1, + Me = null, Fe = !1, ze = null, Ve = { onError: function(e) { - Me = !0, je = e + je = !0, Me = e } }; function Ue(e, t, n, r, i, a, o, s, l) { - Me = !1, je = null, Ne.apply(Ve, arguments) + je = !1, Me = null, Ne.apply(Ve, arguments) } function Be(e) { @@ -752,11 +760,11 @@ return null } - function We(e) { + function $e(e) { if (Be(e) !== e) throw Error(a(188)) } - function $e(e) { + function qe(e) { return null !== (e = function(e) { var t = e.alternate; if (!t) { @@ -776,8 +784,8 @@ } if (i.child === o.child) { for (o = i.child; o;) { - if (o === n) return We(i), e; - if (o === r) return We(i), t; + if (o === n) return $e(i), e; + if (o === r) return $e(i), t; o = o.sibling } throw Error(a(188)) @@ -814,13 +822,13 @@ } if (3 !== n.tag) throw Error(a(188)); return n.stateNode.current === n ? e : t - }(e)) ? qe(e) : null + }(e)) ? We(e) : null } - function qe(e) { + function We(e) { if (5 === e.tag || 6 === e.tag) return e; for (e = e.child; null !== e;) { - var t = qe(e); + var t = We(e); if (null !== t) return t; e = e.sibling } @@ -977,8 +985,8 @@ function bt(e) { return 1 < (e &= -e) ? 4 < e ? 0 !== (268435455 & e) ? 16 : 536870912 : 4 : 1 } - var xt, kt, wt, St, Et, It = !1, - Ot = [], + var xt, kt, wt, St, Et, Ot = !1, + It = [], Ct = null, At = null, Pt = null, @@ -1011,7 +1019,7 @@ } } - function Mt(e, t, n, r, i, a) { + function jt(e, t, n, r, i, a) { return null === e || e.nativeEvent !== a ? (e = { blockedOn: t, domEventName: n, @@ -1021,7 +1029,7 @@ }, null !== t && (null !== (t = _i(t)) && kt(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, null !== i && -1 === t.indexOf(i) && t.push(i), e) } - function jt(e) { + function Mt(e) { var t = yi(e.target); if (null !== t) { var n = Be(t); @@ -1051,31 +1059,31 @@ } function Vt() { - It = !1, null !== Ct && Ft(Ct) && (Ct = null), null !== At && Ft(At) && (At = null), null !== Pt && Ft(Pt) && (Pt = null), Tt.forEach(zt), Rt.forEach(zt) + Ot = !1, null !== Ct && Ft(Ct) && (Ct = null), null !== At && Ft(At) && (At = null), null !== Pt && Ft(Pt) && (Pt = null), Tt.forEach(zt), Rt.forEach(zt) } function Ut(e, t) { - e.blockedOn === t && (e.blockedOn = null, It || (It = !0, i.unstable_scheduleCallback(i.unstable_NormalPriority, Vt))) + e.blockedOn === t && (e.blockedOn = null, Ot || (Ot = !0, i.unstable_scheduleCallback(i.unstable_NormalPriority, Vt))) } function Bt(e) { function t(t) { return Ut(t, e) } - if (0 < Ot.length) { - Ut(Ot[0], e); - for (var n = 1; n < Ot.length; n++) { - var r = Ot[n]; + if (0 < It.length) { + Ut(It[0], e); + for (var n = 1; n < It.length; n++) { + var r = It[n]; r.blockedOn === e && (r.blockedOn = null) } } for (null !== Ct && Ut(Ct, e), null !== At && Ut(At, e), null !== Pt && Ut(Pt, e), Tt.forEach(t), Rt.forEach(t), n = 0; n < Dt.length; n++)(r = Dt[n]).blockedOn === e && (r.blockedOn = null); - for (; 0 < Dt.length && null === (n = Dt[0]).blockedOn;) jt(n), null === n.blockedOn && Dt.shift() + for (; 0 < Dt.length && null === (n = Dt[0]).blockedOn;) Mt(n), null === n.blockedOn && Dt.shift() } var Gt = b.ReactCurrentBatchConfig, - Wt = !0; + $t = !0; - function $t(e, t, n, r) { + function qt(e, t, n, r) { var i = _t, a = Gt.transition; Gt.transition = null; @@ -1086,7 +1094,7 @@ } } - function qt(e, t, n, r) { + function Wt(e, t, n, r) { var i = _t, a = Gt.transition; Gt.transition = null; @@ -1098,33 +1106,33 @@ } function Ht(e, t, n, r) { - if (Wt) { + if ($t) { var i = Yt(e, t, n, r); - if (null === i) Wr(e, t, r, Kt, n), Nt(e, r); + if (null === i) $r(e, t, r, Kt, n), Nt(e, r); else if (function(e, t, n, r, i) { switch (t) { case "focusin": - return Ct = Mt(Ct, e, t, n, r, i), !0; + return Ct = jt(Ct, e, t, n, r, i), !0; case "dragenter": - return At = Mt(At, e, t, n, r, i), !0; + return At = jt(At, e, t, n, r, i), !0; case "mouseover": - return Pt = Mt(Pt, e, t, n, r, i), !0; + return Pt = jt(Pt, e, t, n, r, i), !0; case "pointerover": var a = i.pointerId; - return Tt.set(a, Mt(Tt.get(a) || null, e, t, n, r, i)), !0; + return Tt.set(a, jt(Tt.get(a) || null, e, t, n, r, i)), !0; case "gotpointercapture": - return a = i.pointerId, Rt.set(a, Mt(Rt.get(a) || null, e, t, n, r, i)), !0 + return a = i.pointerId, Rt.set(a, jt(Rt.get(a) || null, e, t, n, r, i)), !0 } return !1 }(i, e, t, n, r)) r.stopPropagation(); else if (Nt(e, r), 4 & t && -1 < Lt.indexOf(e)) { for (; null !== i;) { var a = _i(i); - if (null !== a && xt(a), null === (a = Yt(e, t, n, r)) && Wr(e, t, r, Kt, n), a === i) break; + if (null !== a && xt(a), null === (a = Yt(e, t, n, r)) && $r(e, t, r, Kt, n), a === i) break; i = a } null !== i && r.stopPropagation() - } else Wr(e, t, r, null, n) + } else $r(e, t, r, null, n) } } var Kt = null; @@ -1268,7 +1276,7 @@ for (var o in this._reactName = t, this._targetInst = r, this.type = n, this.nativeEvent = i, this.target = a, this.currentTarget = null, e) e.hasOwnProperty(o) && (t = e[o], this[o] = t ? t(i) : i[o]); return this.isDefaultPrevented = (null != i.defaultPrevented ? i.defaultPrevented : !1 === i.returnValue) ? nn : rn, this.isPropagationStopped = rn, this } - return j(t.prototype, { + return M(t.prototype, { preventDefault: function() { this.defaultPrevented = !0; var e = this.nativeEvent; @@ -1293,12 +1301,12 @@ isTrusted: 0 }, un = an(cn), - dn = j({}, cn, { + dn = M({}, cn, { view: 0, detail: 0 }), pn = an(dn), - hn = j({}, dn, { + hn = M({}, dn, { screenX: 0, screenY: 0, clientX: 0, @@ -1323,24 +1331,24 @@ } }), fn = an(hn), - mn = an(j({}, hn, { + mn = an(M({}, hn, { dataTransfer: 0 })), - gn = an(j({}, dn, { + gn = an(M({}, dn, { relatedTarget: 0 })), - vn = an(j({}, cn, { + vn = an(M({}, cn, { animationName: 0, elapsedTime: 0, pseudoElement: 0 })), - yn = j({}, cn, { + yn = M({}, cn, { clipboardData: function(e) { return "clipboardData" in e ? e.clipboardData : window.clipboardData } }), _n = an(yn), - bn = an(j({}, cn, { + bn = an(M({}, cn, { data: 0 })), xn = { @@ -1410,7 +1418,7 @@ function En() { return Sn } - var In = j({}, dn, { + var On = M({}, dn, { key: function(e) { if (e.key) { var t = xn[e.key] || e.key; @@ -1437,8 +1445,8 @@ return "keypress" === e.type ? tn(e) : "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0 } }), - On = an(In), - Cn = an(j({}, hn, { + In = an(On), + Cn = an(M({}, hn, { pointerId: 0, width: 0, height: 0, @@ -1450,7 +1458,7 @@ pointerType: 0, isPrimary: 0 })), - An = an(j({}, dn, { + An = an(M({}, dn, { touches: 0, targetTouches: 0, changedTouches: 0, @@ -1460,12 +1468,12 @@ shiftKey: 0, getModifierState: En })), - Pn = an(j({}, cn, { + Pn = an(M({}, cn, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 })), - Tn = j({}, hn, { + Tn = M({}, hn, { deltaX: function(e) { return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0 }, @@ -1480,8 +1488,8 @@ Ln = u && "CompositionEvent" in window, Nn = null; u && "documentMode" in document && (Nn = document.documentMode); - var Mn = u && "TextEvent" in window && !Nn, - jn = u && (!Ln || Nn && 8 < Nn && 11 >= Nn), + var jn = u && "TextEvent" in window && !Nn, + Mn = u && (!Ln || Nn && 8 < Nn && 11 >= Nn), Fn = String.fromCharCode(32), zn = !1; @@ -1522,18 +1530,18 @@ week: !0 }; - function Wn(e) { + function $n(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return "input" === t ? !!Gn[e.type] : "textarea" === t } - function $n(e, t, n, r) { - Ie(r), 0 < (t = qr(t, "onChange")).length && (n = new un("onChange", "change", null, n, r), e.push({ + function qn(e, t, n, r) { + Oe(r), 0 < (t = Wr(t, "onChange")).length && (n = new un("onChange", "change", null, n, r), e.push({ event: n, listeners: t })) } - var qn = null, + var Wn = null, Hn = null; function Kn(e) { @@ -1562,18 +1570,18 @@ } function tr() { - qn && (qn.detachEvent("onpropertychange", nr), Hn = qn = null) + Wn && (Wn.detachEvent("onpropertychange", nr), Hn = Wn = null) } function nr(e) { if ("value" === e.propertyName && Yn(Hn)) { var t = []; - $n(t, Hn, e, xe(e)), Te(Kn, t) + qn(t, Hn, e, xe(e)), Te(Kn, t) } } function rr(e, t, n) { - "focusin" === e ? (tr(), Hn = n, (qn = t).attachEvent("onpropertychange", nr)) : "focusout" === e && tr() + "focusin" === e ? (tr(), Hn = n, (Wn = t).attachEvent("onpropertychange", nr)) : "focusout" === e && tr() } function ir(e) { @@ -1694,7 +1702,7 @@ anchorOffset: r.anchorOffset, focusNode: r.focusNode, focusOffset: r.focusOffset - }, yr && lr(yr, r) || (yr = r, 0 < (r = qr(vr, "onSelect")).length && (t = new un("onSelect", "select", null, t, n), e.push({ + }, yr && lr(yr, r) || (yr = r, 0 < (r = Wr(vr, "onSelect")).length && (t = new un("onSelect", "select", null, t, n), e.push({ event: t, listeners: r }), t.target = gr))) @@ -1722,8 +1730,8 @@ return e } u && (Sr = document.createElement("div").style, "AnimationEvent" in window || (delete kr.animationend.animation, delete kr.animationiteration.animation, delete kr.animationstart.animation), "TransitionEvent" in window || delete kr.transitionend.transition); - var Ir = Er("animationend"), - Or = Er("animationiteration"), + var Or = Er("animationend"), + Ir = Er("animationiteration"), Cr = Er("animationstart"), Ar = Er("transitionend"), Pr = new Map, @@ -1736,18 +1744,18 @@ var Lr = Tr[Dr]; Rr(Lr.toLowerCase(), "on" + (Lr[0].toUpperCase() + Lr.slice(1))) } - Rr(Ir, "onAnimationEnd"), Rr(Or, "onAnimationIteration"), Rr(Cr, "onAnimationStart"), Rr("dblclick", "onDoubleClick"), Rr("focusin", "onFocus"), Rr("focusout", "onBlur"), Rr(Ar, "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(" ")); + Rr(Or, "onAnimationEnd"), Rr(Ir, "onAnimationIteration"), Rr(Cr, "onAnimationStart"), Rr("dblclick", "onDoubleClick"), Rr("focusin", "onFocus"), Rr("focusout", "onBlur"), Rr(Ar, "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 Nr = "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(" "), - Mr = new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr)); + jr = new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr)); - function jr(e, t, n) { + function Mr(e, t, n) { var r = e.type || "unknown-event"; e.currentTarget = n, function(e, t, n, r, i, o, s, l, c) { - if (Ue.apply(this, arguments), Me) { - if (!Me) throw Error(a(198)); - var u = je; - Me = !1, je = null, Fe || (Fe = !0, ze = u) + if (Ue.apply(this, arguments), je) { + if (!je) throw Error(a(198)); + var u = Me; + je = !1, Me = null, Fe || (Fe = !0, ze = u) } }(r, t, void 0, e), e.currentTarget = null } @@ -1766,11 +1774,11 @@ l = s.instance, c = s.currentTarget; if (s = s.listener, l !== a && i.isPropagationStopped()) break e; - jr(i, s, c), a = l + Mr(i, s, c), a = l } else for (o = 0; o < r.length; o++) { if (l = (s = r[o]).instance, c = s.currentTarget, s = s.listener, l !== a && i.isPropagationStopped()) break e; - jr(i, s, c), a = l + Mr(i, s, c), a = l } } } @@ -1793,7 +1801,7 @@ function Br(e) { if (!e[Ur]) { e[Ur] = !0, o.forEach((function(t) { - "selectionchange" !== t && (Mr.has(t) || Vr(t, !1, e), Vr(t, !0, e)) + "selectionchange" !== t && (jr.has(t) || Vr(t, !1, e), Vr(t, !0, e)) })); var t = 9 === e.nodeType ? e : e.ownerDocument; null === t || t[Ur] || (t[Ur] = !0, Vr("selectionchange", !1, t)) @@ -1803,10 +1811,10 @@ function Gr(e, t, n, r) { switch (Qt(t)) { case 1: - var i = $t; + var i = qt; break; case 4: - i = qt; + i = Wt; break; default: i = Ht @@ -1819,7 +1827,7 @@ }) : e.addEventListener(t, n, !1) } - function Wr(e, t, n, r, i) { + function $r(e, t, n, r, i) { var a = r; if (0 === (1 & t) && 0 === (2 & t) && null !== r) e: for (;;) { if (null === r) return; @@ -1858,7 +1866,7 @@ if (0 === tn(n)) break e; case "keydown": case "keyup": - l = On; + l = In; break; case "focusin": c = "focus", l = gn; @@ -1898,8 +1906,8 @@ case "touchstart": l = An; break; - case Ir: case Or: + case Ir: case Cr: l = vn; break; @@ -1933,7 +1941,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 = Re(f, p)) && u.push($r(f, m, h)))), d) break; + if (5 === h.tag && null !== m && (h = m, null !== p && (null != (m = Re(f, p)) && u.push(qr(f, m, h)))), d) break; f = f.return } 0 < u.length && (s = new l(s, c, null, n, i), o.push({ @@ -1961,16 +1969,16 @@ null !== l && Kr(o, s, l, u, !1), null !== c && null !== d && Kr(o, d, c, u, !0) } if ("select" === (l = (s = r ? bi(r) : window).nodeName && s.nodeName.toLowerCase()) || "input" === l && "file" === s.type) var g = Qn; - else if (Wn(s)) + else if ($n(s)) if (Zn) g = or; else { g = ir; var v = rr } else(l = s.nodeName) && "input" === l.toLowerCase() && ("checkbox" === s.type || "radio" === s.type) && (g = ar); - switch (g && (g = g(e, r)) ? $n(o, g, n, i) : (v && v(e, s, r), "focusout" === e && (v = s._wrapperState) && v.controlled && "number" === s.type && ee(s, "number", s.value)), v = r ? bi(r) : window, e) { + switch (g && (g = g(e, r)) ? qn(o, g, n, i) : (v && v(e, s, r), "focusout" === e && (v = s._wrapperState) && v.controlled && "number" === s.type && ee(s, "number", s.value)), v = r ? bi(r) : window, e) { case "focusin": - (Wn(v) || "true" === v.contentEditable) && (gr = v, vr = r, yr = null); + ($n(v) || "true" === v.contentEditable) && (gr = v, vr = r, yr = null); break; case "focusout": yr = vr = gr = null; @@ -2005,10 +2013,10 @@ _ = void 0 } else Bn ? Vn(e, n) && (_ = "onCompositionEnd") : "keydown" === e && 229 === n.keyCode && (_ = "onCompositionStart"); - _ && (jn && "ko" !== n.locale && (Bn || "onCompositionStart" !== _ ? "onCompositionEnd" === _ && Bn && (y = en()) : (Xt = "value" in (Zt = i) ? Zt.value : Zt.textContent, Bn = !0)), 0 < (v = qr(r, _)).length && (_ = new bn(_, e, null, n, i), o.push({ + _ && (Mn && "ko" !== n.locale && (Bn || "onCompositionStart" !== _ ? "onCompositionEnd" === _ && Bn && (y = en()) : (Xt = "value" in (Zt = i) ? Zt.value : Zt.textContent, Bn = !0)), 0 < (v = Wr(r, _)).length && (_ = new bn(_, e, null, n, i), o.push({ event: _, listeners: v - }), y ? _.data = y : null !== (y = Un(n)) && (_.data = y))), (y = Mn ? function(e, t) { + }), y ? _.data = y : null !== (y = Un(n)) && (_.data = y))), (y = jn ? function(e, t) { switch (e) { case "compositionend": return Un(t); @@ -2032,9 +2040,9 @@ } return null; case "compositionend": - return jn && "ko" !== t.locale ? null : t.data + return Mn && "ko" !== t.locale ? null : t.data } - }(e, n)) && (0 < (r = qr(r, "onBeforeInput")).length && (i = new bn("onBeforeInput", "beforeinput", null, n, i), o.push({ + }(e, n)) && (0 < (r = Wr(r, "onBeforeInput")).length && (i = new bn("onBeforeInput", "beforeinput", null, n, i), o.push({ event: i, listeners: r }), i.data = y)) @@ -2043,7 +2051,7 @@ })) } - function $r(e, t, n) { + function qr(e, t, n) { return { instance: e, listener: t, @@ -2051,11 +2059,11 @@ } } - function qr(e, t) { + function Wr(e, t) { for (var n = t + "Capture", r = []; null !== e;) { var i = e, a = i.stateNode; - 5 === i.tag && null !== a && (i = a, null != (a = Re(e, n)) && r.unshift($r(e, a, i)), null != (a = Re(e, t)) && r.push($r(e, a, i))), e = e.return + 5 === i.tag && null !== a && (i = a, null != (a = Re(e, n)) && r.unshift(qr(e, a, i)), null != (a = Re(e, t)) && r.push(qr(e, a, i))), e = e.return } return r } @@ -2074,7 +2082,7 @@ l = s.alternate, c = s.stateNode; if (null !== l && l === r) break; - 5 === s.tag && null !== c && (s = c, i ? null != (l = Re(n, a)) && o.unshift($r(n, l, s)) : i || null != (l = Re(n, a)) && o.push($r(n, l, s))), n = n.return + 5 === s.tag && null !== c && (s = c, i ? null != (l = Re(n, a)) && o.unshift(qr(n, l, s)) : i || null != (l = Re(n, a)) && o.push(qr(n, l, s))), n = n.return } 0 !== o.length && e.push({ event: t, @@ -2203,17 +2211,17 @@ 0 > wi || (e.current = ki[wi], ki[wi] = null, wi--) } - function Ii(e, t) { + function Oi(e, t) { wi++, ki[wi] = e.current, e.current = t } - var Oi = {}, - Ci = Si(Oi), + var Ii = {}, + Ci = Si(Ii), Ai = Si(!1), - Pi = Oi; + Pi = Ii; function Ti(e, t) { var n = e.type.contextTypes; - if (!n) return Oi; + if (!n) return Ii; var r = e.stateNode; if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) return r.__reactInternalMemoizedMaskedChildContext; var i, a = {}; @@ -2230,8 +2238,8 @@ } function Li(e, t, n) { - if (Ci.current !== Oi) throw Error(a(168)); - Ii(Ci, t), Ii(Ai, n) + if (Ci.current !== Ii) throw Error(a(168)); + Oi(Ci, t), Oi(Ai, n) } function Ni(e, t, n) { @@ -2239,17 +2247,17 @@ if (t = t.childContextTypes, "function" !== typeof r.getChildContext) return n; for (var i in r = r.getChildContext()) if (!(i in t)) throw Error(a(108, G(e) || "Unknown", i)); - return j({}, n, r) + return M({}, n, r) } - function Mi(e) { - return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || Oi, Pi = Ci.current, Ii(Ci, e), Ii(Ai, Ai.current), !0 + function ji(e) { + return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || Ii, Pi = Ci.current, Oi(Ci, e), Oi(Ai, Ai.current), !0 } - function ji(e, t, n) { + function Mi(e, t, n) { var r = e.stateNode; if (!r) throw Error(a(169)); - n ? (e = Ni(e, t, Pi), r.__reactInternalMemoizedMergedChildContext = e, Ei(Ai), Ei(Ci), Ii(Ci, e)) : Ei(Ai), Ii(Ai, n) + n ? (e = Ni(e, t, Pi), r.__reactInternalMemoizedMergedChildContext = e, Ei(Ai), Ei(Ci), Oi(Ci, e)) : Ei(Ai), Oi(Ai, n) } var Fi = null, zi = !1, @@ -2282,9 +2290,9 @@ return null } var Gi = [], + $i = 0, + qi = null, Wi = 0, - $i = null, - qi = 0, Hi = [], Ki = 0, Yi = null, @@ -2292,7 +2300,7 @@ Zi = ""; function Xi(e, t) { - Gi[Wi++] = qi, Gi[Wi++] = $i, $i = e, qi = t + Gi[$i++] = Wi, Gi[$i++] = qi, qi = e, Wi = t } function Ji(e, t, n) { @@ -2313,7 +2321,7 @@ } function ta(e) { - for (; e === $i;) $i = Gi[--Wi], Gi[Wi] = null, qi = Gi[--Wi], Gi[Wi] = null; + for (; e === qi;) qi = Gi[--$i], Gi[$i] = null, Wi = Gi[--$i], Gi[$i] = null; for (; e === Yi;) Yi = Hi[--Ki], Hi[Ki] = null, Zi = Hi[--Ki], Hi[Ki] = null, Qi = Hi[--Ki], Hi[Ki] = null } var na = null, @@ -2419,7 +2427,7 @@ function ga(e, t) { if (e && e.defaultProps) { - for (var n in t = j({}, t), e = e.defaultProps) void 0 === t[n] && (t[n] = e[n]); + for (var n in t = M({}, t), e = e.defaultProps) void 0 === t[n] && (t[n] = e[n]); return t } return t @@ -2466,15 +2474,15 @@ } else _a = _a.next = e; return t } - var Ia = null; + var Oa = null; - function Oa(e) { - null === Ia ? Ia = [e] : Ia.push(e) + function Ia(e) { + null === Oa ? Oa = [e] : Oa.push(e) } function Ca(e, t, n, r) { var i = t.interleaved; - return null === i ? (n.next = n, Oa(t)) : (n.next = i.next, i.next = n), t.interleaved = n, Aa(e, r) + return null === i ? (n.next = n, Ia(t)) : (n.next = i.next, i.next = n), t.interleaved = n, Aa(e, r) } function Aa(e, t) { @@ -2527,7 +2535,7 @@ var i = r.pending; return null === i ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, Aa(e, n) } - return null === (i = r.interleaved) ? (t.next = t, Oa(r)) : (t.next = i.next, i.next = t), r.interleaved = t, Aa(e, n) + return null === (i = r.interleaved) ? (t.next = t, Ia(r)) : (t.next = i.next, i.next = t), r.interleaved = t, Aa(e, n) } function Na(e, t, n) { @@ -2537,7 +2545,7 @@ } } - function Ma(e, t) { + function ja(e, t) { var n = e.updateQueue, r = e.alternate; if (null !== r && n === (r = r.updateQueue)) { @@ -2568,7 +2576,7 @@ null === (e = n.lastBaseUpdate) ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t } - function ja(e, t, n, r) { + function Ma(e, t, n, r) { var i = e.updateQueue; Pa = !1; var a = i.firstBaseUpdate, @@ -2611,7 +2619,7 @@ f.flags = -65537 & f.flags | 128; case 0: if (null === (p = "function" === typeof(f = m.payload) ? f.call(h, d, p) : f) || void 0 === p) break e; - d = j({}, d, p); + d = M({}, d, p); break e; case 2: Pa = !0 @@ -2637,7 +2645,7 @@ o |= i.lane, i = i.next } while (i !== t) } else null === a && (i.shared.lanes = 0); - Ml |= o, e.lanes = o, e.memoizedState = d + jl |= o, e.lanes = o, e.memoizedState = d } } @@ -2655,7 +2663,7 @@ var za = (new r.Component).refs; function Va(e, t, n, r) { - n = null === (n = n(r, t = e.memoizedState)) || void 0 === n ? t : j({}, t, n), e.memoizedState = n, 0 === e.lanes && (e.updateQueue.baseState = n) + 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 Ua = { isMounted: function(e) { @@ -2690,23 +2698,23 @@ function Ga(e, t, n) { var r = !1, - i = Oi, + i = Ii, a = t.contextType; - return "object" === typeof a && null !== a ? a = Ea(a) : (i = Ri(t) ? Pi : Ci.current, a = (r = null !== (r = t.contextTypes) && void 0 !== r) ? Ti(e, i) : Oi), t = new t(n, a), e.memoizedState = null !== t.state && void 0 !== t.state ? t.state : null, t.updater = Ua, e.stateNode = t, t._reactInternals = e, r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = i, e.__reactInternalMemoizedMaskedChildContext = a), t - } - - function Wa(e, t, n, r) { - e = t.state, "function" === typeof t.componentWillReceiveProps && t.componentWillReceiveProps(n, r), "function" === typeof t.UNSAFE_componentWillReceiveProps && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && Ua.enqueueReplaceState(t, t.state, null) + return "object" === typeof a && null !== a ? a = Ea(a) : (i = Ri(t) ? Pi : Ci.current, a = (r = null !== (r = t.contextTypes) && void 0 !== r) ? Ti(e, i) : Ii), t = new t(n, a), e.memoizedState = null !== t.state && void 0 !== t.state ? t.state : null, t.updater = Ua, e.stateNode = t, t._reactInternals = e, r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = i, e.__reactInternalMemoizedMaskedChildContext = a), t } function $a(e, t, n, r) { + e = t.state, "function" === typeof t.componentWillReceiveProps && t.componentWillReceiveProps(n, r), "function" === typeof t.UNSAFE_componentWillReceiveProps && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && Ua.enqueueReplaceState(t, t.state, null) + } + + function qa(e, t, n, r) { var i = e.stateNode; i.props = n, i.state = e.memoizedState, i.refs = za, Ta(e); var a = t.contextType; - "object" === typeof a && null !== a ? i.context = Ea(a) : (a = Ri(t) ? Pi : Ci.current, i.context = Ti(e, a)), i.state = e.memoizedState, "function" === typeof(a = t.getDerivedStateFromProps) && (Va(e, t, a, n), i.state = e.memoizedState), "function" === typeof t.getDerivedStateFromProps || "function" === typeof i.getSnapshotBeforeUpdate || "function" !== typeof i.UNSAFE_componentWillMount && "function" !== typeof i.componentWillMount || (t = i.state, "function" === typeof i.componentWillMount && i.componentWillMount(), "function" === typeof i.UNSAFE_componentWillMount && i.UNSAFE_componentWillMount(), t !== i.state && Ua.enqueueReplaceState(i, i.state, null), ja(e, n, i, r), i.state = e.memoizedState), "function" === typeof i.componentDidMount && (e.flags |= 4194308) + "object" === typeof a && null !== a ? i.context = Ea(a) : (a = Ri(t) ? Pi : Ci.current, i.context = Ti(e, a)), i.state = e.memoizedState, "function" === typeof(a = t.getDerivedStateFromProps) && (Va(e, t, a, n), i.state = e.memoizedState), "function" === typeof t.getDerivedStateFromProps || "function" === typeof i.getSnapshotBeforeUpdate || "function" !== typeof i.UNSAFE_componentWillMount && "function" !== typeof i.componentWillMount || (t = i.state, "function" === typeof i.componentWillMount && i.componentWillMount(), "function" === typeof i.UNSAFE_componentWillMount && i.UNSAFE_componentWillMount(), t !== i.state && Ua.enqueueReplaceState(i, i.state, null), Ma(e, n, i, r), i.state = e.memoizedState), "function" === typeof i.componentDidMount && (e.flags |= 4194308) } - function qa(e, t, n) { + function Wa(e, t, n) { if (null !== (e = n.ref) && "function" !== typeof e && "object" !== typeof e) { if (n._owner) { if (n = n._owner) { @@ -2767,12 +2775,12 @@ } function l(e, t, n, r) { - return null === t || 6 !== t.tag ? ((t = jc(n, e.mode, r)).return = e, t) : ((t = i(t, n)).return = e, t) + return null === t || 6 !== t.tag ? ((t = Mc(n, e.mode, r)).return = e, t) : ((t = i(t, n)).return = e, t) } function c(e, t, n, r) { var a = n.type; - return a === w ? d(e, t, n.props.children, r, n.key) : null !== t && (t.elementType === a || "object" === typeof a && null !== a && a.$$typeof === R && Ka(a) === t.type) ? ((r = i(t, n.props)).ref = qa(e, t, n), r.return = e, r) : ((r = Lc(n.type, n.key, n.props, null, e.mode, r)).ref = qa(e, t, n), r.return = e, r) + return a === w ? d(e, t, n.props.children, r, n.key) : null !== t && (t.elementType === a || "object" === typeof a && null !== a && a.$$typeof === R && Ka(a) === t.type) ? ((r = i(t, n.props)).ref = Wa(e, t, n), r.return = e, r) : ((r = Lc(n.type, n.key, n.props, null, e.mode, r)).ref = Wa(e, t, n), r.return = e, r) } function u(e, t, n, r) { @@ -2784,11 +2792,11 @@ } function p(e, t, n) { - if ("string" === typeof t && "" !== t || "number" === typeof t) return (t = jc("" + t, e.mode, n)).return = e, t; + if ("string" === typeof t && "" !== t || "number" === typeof t) return (t = Mc("" + t, e.mode, n)).return = e, t; if ("object" === typeof t && null !== t) { switch (t.$$typeof) { case x: - return (n = Lc(t.type, t.key, t.props, null, e.mode, n)).ref = qa(e, null, t), n.return = e, n; + return (n = Lc(t.type, t.key, t.props, null, e.mode, n)).ref = Wa(e, null, t), n.return = e, n; case k: return (t = Fc(t, e.mode, n)).return = e, t; case R: @@ -2892,7 +2900,7 @@ break e } } else if (u.elementType === c || "object" === typeof c && null !== c && c.$$typeof === R && Ka(c) === u.type) { - n(r, u.sibling), (a = i(u, o.props)).ref = qa(r, u, o), a.return = r, r = a; + n(r, u.sibling), (a = i(u, o.props)).ref = Wa(r, u, o), a.return = r, r = a; break e } n(r, u); @@ -2900,7 +2908,7 @@ } t(r, u), u = u.sibling } - o.type === w ? ((a = Nc(o.props.children, r.mode, l, o.key)).return = r, r = a) : ((l = Lc(o.type, o.key, o.props, null, r.mode, l)).ref = qa(r, a, o), l.return = r, r = l) + o.type === w ? ((a = Nc(o.props.children, r.mode, l, o.key)).return = r, r = a) : ((l = Lc(o.type, o.key, o.props, null, r.mode, l)).ref = Wa(r, a, o), l.return = r, r = l) } return s(r); case k: @@ -2926,7 +2934,7 @@ if (N(o)) return g(r, a, o, l); Ha(r, o) } - return "string" === typeof o && "" !== o || "number" === typeof o ? (o = "" + o, null !== a && 6 === a.tag ? (n(r, a.sibling), (a = i(a, o)).return = r, r = a) : (n(r, a), (a = jc(o, r.mode, l)).return = r, r = a), s(r)) : n(r, a) + return "string" === typeof o && "" !== o || "number" === typeof o ? (o = "" + o, null !== a && 6 === a.tag ? (n(r, a.sibling), (a = i(a, o)).return = r, r = a) : (n(r, a), (a = Mc(o, r.mode, l)).return = r, r = a), s(r)) : n(r, a) } } var Qa = Ya(!0), @@ -2942,7 +2950,7 @@ } function ro(e, t) { - switch (Ii(to, t), Ii(eo, e), Ii(Ja, Xa), e = t.nodeType) { + switch (Oi(to, t), Oi(eo, e), Oi(Ja, Xa), e = t.nodeType) { case 9: case 11: t = (t = t.documentElement) ? t.namespaceURI : le(null, ""); @@ -2950,7 +2958,7 @@ default: t = le(t = (e = 8 === e ? t.parentNode : t).namespaceURI || null, e = e.tagName) } - Ei(Ja), Ii(Ja, t) + Ei(Ja), Oi(Ja, t) } function io() { @@ -2961,7 +2969,7 @@ no(to.current); var t = no(Ja.current), n = le(t, e.type); - t !== n && (Ii(eo, e), Ii(Ja, n)) + t !== n && (Oi(eo, e), Oi(Ja, n)) } function oo(e) { @@ -3034,7 +3042,7 @@ return bo = 0, e } - function Io() { + function Oo() { var e = { memoizedState: null, baseState: null, @@ -3045,7 +3053,7 @@ return null === vo ? mo.memoizedState = vo = e : vo = vo.next = e, vo } - function Oo() { + function Io() { if (null === go) { var e = mo.alternate; e = null !== e ? e.memoizedState : null @@ -3070,7 +3078,7 @@ } function Ao(e) { - var t = Oo(), + var t = Io(), n = t.queue; if (null === n) throw Error(a(311)); n.lastRenderedReducer = e; @@ -3106,7 +3114,7 @@ eagerState: u.eagerState, next: null }; - null === c ? (l = c = p, s = r) : c = c.next = p, mo.lanes |= d, Ml |= d + null === c ? (l = c = p, s = r) : c = c.next = p, mo.lanes |= d, jl |= d } u = u.next } while (null !== u && u !== o); @@ -3115,14 +3123,14 @@ if (null !== (e = n.interleaved)) { i = e; do { - o = i.lane, mo.lanes |= o, Ml |= o, i = i.next + o = i.lane, mo.lanes |= o, jl |= o, i = i.next } while (i !== e) } else null === i && (n.lanes = 0); return [t.memoizedState, n.dispatch] } function Po(e) { - var t = Oo(), + var t = Io(), n = t.queue; if (null === n) throw Error(a(311)); n.lastRenderedReducer = e; @@ -3144,10 +3152,10 @@ function Ro(e, t) { var n = mo, - r = Oo(), + r = Io(), i = t(), o = !sr(r.memoizedState, i); - if (o && (r.memoizedState = i, bs = !0), r = r.queue, Wo(No.bind(null, n, r, e), [e]), r.getSnapshot !== t || o || null !== vo && 1 & vo.memoizedState.tag) { + if (o && (r.memoizedState = i, bs = !0), r = r.queue, $o(No.bind(null, n, r, e), [e]), r.getSnapshot !== t || o || null !== vo && 1 & vo.memoizedState.tag) { if (n.flags |= 2048, zo(9, Lo.bind(null, n, r, i, t), void 0, null), null === Al) throw Error(a(349)); 0 !== (30 & fo) || Do(n, t, i) } @@ -3165,16 +3173,16 @@ } function Lo(e, t, n, r) { - t.value = n, t.getSnapshot = r, Mo(t) && jo(e) + t.value = n, t.getSnapshot = r, jo(t) && Mo(e) } function No(e, t, n) { return n((function() { - Mo(t) && jo(e) + jo(t) && Mo(e) })) } - function Mo(e) { + function jo(e) { var t = e.getSnapshot; e = e.value; try { @@ -3185,13 +3193,13 @@ } } - function jo(e) { + function Mo(e) { var t = Aa(e, 1); null !== t && nc(t, e, 1, -1) } function Fo(e) { - var t = Io(); + var t = Oo(); return "function" === typeof e && (e = e()), t.memoizedState = t.baseState = e, e = { pending: null, interleaved: null, @@ -3216,16 +3224,16 @@ } function Vo() { - return Oo().memoizedState + return Io().memoizedState } function Uo(e, t, n, r) { - var i = Io(); + var i = Oo(); mo.flags |= e, i.memoizedState = zo(1 | t, n, void 0, void 0 === r ? null : r) } function Bo(e, t, n, r) { - var i = Oo(); + var i = Io(); r = void 0 === r ? null : r; var a = void 0; if (null !== go) { @@ -3239,15 +3247,15 @@ return Uo(8390656, 8, e, t) } - function Wo(e, t) { + function $o(e, t) { return Bo(2048, 8, e, t) } - function $o(e, t) { + function qo(e, t) { return Bo(4, 2, e, t) } - function qo(e, t) { + function Wo(e, t) { return Bo(4, 4, e, t) } @@ -3266,21 +3274,21 @@ function Yo() {} function Qo(e, t) { - var n = Oo(); + var n = Io(); t = void 0 === t ? null : t; var r = n.memoizedState; return null !== r && null !== t && wo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e) } function Zo(e, t) { - var n = Oo(); + var n = Io(); t = void 0 === t ? null : t; var r = n.memoizedState; return null !== r && null !== t && wo(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [e, t], e) } function Xo(e, t, n) { - return 0 === (21 & fo) ? (e.baseState && (e.baseState = !1, bs = !0), e.memoizedState = n) : (sr(n, t) || (n = mt(), mo.lanes |= n, Ml |= n, e.baseState = !0), t) + return 0 === (21 & fo) ? (e.baseState && (e.baseState = !1, bs = !0), e.memoizedState = n) : (sr(n, t) || (n = mt(), mo.lanes |= n, jl |= n, e.baseState = !0), t) } function Jo(e, t) { @@ -3296,7 +3304,7 @@ } function es() { - return Oo().memoizedState + return Io().memoizedState } function ts(e, t, n) { @@ -3330,7 +3338,7 @@ s = a(o, n); if (i.hasEagerState = !0, i.eagerState = s, sr(s, o)) { var l = t.interleaved; - return null === l ? (i.next = i, Oa(t)) : (i.next = l.next, l.next = i), void(t.interleaved = i) + return null === l ? (i.next = i, Ia(t)) : (i.next = l.next, l.next = i), void(t.interleaved = i) } } catch (c) {} null !== (n = Ca(e, t, i, r)) && (nc(n, e, r, i = ec()), as(n, t, r)) @@ -3377,7 +3385,7 @@ ss = { readContext: Ea, useCallback: function(e, t) { - return Io().memoizedState = [e, void 0 === t ? null : t], e + return Oo().memoizedState = [e, void 0 === t ? null : t], e }, useContext: Ea, useEffect: Go, @@ -3391,11 +3399,11 @@ return Uo(4, 2, e, t) }, useMemo: function(e, t) { - var n = Io(); + var n = Oo(); return t = void 0 === t ? null : t, e = e(), n.memoizedState = [e, t], e }, useReducer: function(e, t, n) { - var r = Io(); + var r = Oo(); return t = void 0 !== n ? n(t) : t, r.memoizedState = r.baseState = t, e = { pending: null, interleaved: null, @@ -3408,22 +3416,22 @@ useRef: function(e) { return e = { current: e - }, Io().memoizedState = e + }, Oo().memoizedState = e }, useState: Fo, useDebugValue: Yo, useDeferredValue: function(e) { - return Io().memoizedState = e + return Oo().memoizedState = e }, useTransition: function() { var e = Fo(!1), t = e[0]; - return e = Jo.bind(null, e[1]), Io().memoizedState = e, [t, e] + return e = Jo.bind(null, e[1]), Oo().memoizedState = e, [t, e] }, useMutableSource: function() {}, useSyncExternalStore: function(e, t, n) { var r = mo, - i = Io(); + i = Oo(); if (ia) { if (void 0 === n) throw Error(a(407)); n = n() @@ -3439,7 +3447,7 @@ return i.queue = o, Go(No.bind(null, r, o, e), [e]), r.flags |= 2048, zo(9, Lo.bind(null, r, o, n, t), void 0, null), n }, useId: function() { - var e = Io(), + var e = Oo(), t = Al.identifierPrefix; if (ia) { var n = Zi; @@ -3453,10 +3461,10 @@ readContext: Ea, useCallback: Qo, useContext: Ea, - useEffect: Wo, + useEffect: $o, useImperativeHandle: Ko, - useInsertionEffect: $o, - useLayoutEffect: qo, + useInsertionEffect: qo, + useLayoutEffect: Wo, useMemo: Zo, useReducer: Ao, useRef: Vo, @@ -3465,10 +3473,10 @@ }, useDebugValue: Yo, useDeferredValue: function(e) { - return Xo(Oo(), go.memoizedState, e) + return Xo(Io(), go.memoizedState, e) }, useTransition: function() { - return [Ao(Co)[0], Oo().memoizedState] + return [Ao(Co)[0], Io().memoizedState] }, useMutableSource: To, useSyncExternalStore: Ro, @@ -3479,10 +3487,10 @@ readContext: Ea, useCallback: Qo, useContext: Ea, - useEffect: Wo, + useEffect: $o, useImperativeHandle: Ko, - useInsertionEffect: $o, - useLayoutEffect: qo, + useInsertionEffect: qo, + useLayoutEffect: Wo, useMemo: Zo, useReducer: Po, useRef: Vo, @@ -3491,11 +3499,11 @@ }, useDebugValue: Yo, useDeferredValue: function(e) { - var t = Oo(); + var t = Io(); return null === go ? t.memoizedState = e : Xo(t, go.memoizedState, e) }, useTransition: function() { - return [Po(Co)[0], Oo().memoizedState] + return [Po(Co)[0], Io().memoizedState] }, useMutableSource: To, useSyncExternalStore: Ro, @@ -3548,7 +3556,7 @@ }; var r = t.value; return n.callback = function() { - Wl || (Wl = !0, $l = r), ps(0, t) + $l || ($l = !0, ql = r), ps(0, t) }, n } @@ -3565,7 +3573,7 @@ } var a = e.stateNode; return null !== a && "function" === typeof a.componentDidCatch && (n.callback = function() { - ps(0, t), "function" !== typeof r && (null === ql ? ql = new Set([this]) : ql.add(this)); + ps(0, t), "function" !== typeof r && (null === Wl ? Wl = new Set([this]) : Wl.add(this)); var e = t.stack; this.componentDidCatch(t.value, { componentStack: null !== e ? e : "" @@ -3605,7 +3613,7 @@ function ks(e, t, n, r, i) { n = n.render; var a = t.ref; - return Sa(t, i), r = So(e, t, n, r, a, i), n = Eo(), null === e || bs ? (ia && n && ea(t), t.flags |= 1, xs(e, t, r, i), t.child) : (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~i, Ws(e, t, i)) + return Sa(t, i), r = So(e, t, n, r, a, i), n = Eo(), null === e || bs ? (ia && n && ea(t), t.flags |= 1, xs(e, t, r, i), t.child) : (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~i, $s(e, t, i)) } function ws(e, t, n, r, i) { @@ -3615,7 +3623,7 @@ } if (a = e.child, 0 === (e.lanes & i)) { var o = a.memoizedProps; - if ((n = null !== (n = n.compare) ? n : lr)(o, r) && e.ref === t.ref) return Ws(e, t, i) + if ((n = null !== (n = n.compare) ? n : lr)(o, r) && e.ref === t.ref) return $s(e, t, i) } return t.flags |= 1, (e = Dc(a, r)).ref = t.ref, e.return = t, t.child = e } @@ -3624,11 +3632,11 @@ if (null !== e) { var a = e.memoizedProps; if (lr(a, r) && e.ref === t.ref) { - if (bs = !1, t.pendingProps = r = a, 0 === (e.lanes & i)) return t.lanes = e.lanes, Ws(e, t, i); + if (bs = !1, t.pendingProps = r = a, 0 === (e.lanes & i)) return t.lanes = e.lanes, $s(e, t, i); 0 !== (131072 & e.flags) && (bs = !0) } } - return Os(e, t, n, r, i) + return Is(e, t, n, r, i) } function Es(e, t, n) { @@ -3640,39 +3648,39 @@ baseLanes: 0, cachePool: null, transitions: null - }, Ii(Dl, Rl), Rl |= n; + }, Oi(Dl, Rl), Rl |= n; else { if (0 === (1073741824 & n)) return e = null !== a ? a.baseLanes | n : n, t.lanes = t.childLanes = 1073741824, t.memoizedState = { baseLanes: e, cachePool: null, transitions: null - }, t.updateQueue = null, Ii(Dl, Rl), Rl |= e, null; + }, t.updateQueue = null, Oi(Dl, Rl), Rl |= e, null; t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null - }, r = null !== a ? a.baseLanes : n, Ii(Dl, Rl), Rl |= r + }, r = null !== a ? a.baseLanes : n, Oi(Dl, Rl), Rl |= r } - else null !== a ? (r = a.baseLanes | n, t.memoizedState = null) : r = n, Ii(Dl, Rl), Rl |= r; + else null !== a ? (r = a.baseLanes | n, t.memoizedState = null) : r = n, Oi(Dl, Rl), Rl |= r; return xs(e, t, i, n), t.child } - function Is(e, t) { + function Os(e, t) { var n = t.ref; (null === e && null !== n || null !== e && e.ref !== n) && (t.flags |= 512, t.flags |= 2097152) } - function Os(e, t, n, r, i) { + function Is(e, t, n, r, i) { var a = Ri(n) ? Pi : Ci.current; - return a = Ti(t, a), Sa(t, i), n = So(e, t, n, r, a, i), r = Eo(), null === e || bs ? (ia && r && ea(t), t.flags |= 1, xs(e, t, n, i), t.child) : (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~i, Ws(e, t, i)) + return a = Ti(t, a), Sa(t, i), n = So(e, t, n, r, a, i), r = Eo(), null === e || bs ? (ia && r && ea(t), t.flags |= 1, xs(e, t, n, i), t.child) : (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~i, $s(e, t, i)) } function Cs(e, t, n, r, i) { if (Ri(n)) { var a = !0; - Mi(t) + ji(t) } else a = !1; - if (Sa(t, i), null === t.stateNode) Gs(e, t), Ga(t, n, r), $a(t, n, r, i), r = !0; + if (Sa(t, i), null === t.stateNode) Gs(e, t), Ga(t, n, r), qa(t, n, r, i), r = !0; else if (null === e) { var o = t.stateNode, s = t.memoizedProps; @@ -3682,13 +3690,13 @@ "object" === typeof c && null !== c ? c = Ea(c) : c = Ti(t, c = Ri(n) ? Pi : Ci.current); var u = n.getDerivedStateFromProps, d = "function" === typeof u || "function" === typeof o.getSnapshotBeforeUpdate; - d || "function" !== typeof o.UNSAFE_componentWillReceiveProps && "function" !== typeof o.componentWillReceiveProps || (s !== r || l !== c) && Wa(t, o, r, c), Pa = !1; + d || "function" !== typeof o.UNSAFE_componentWillReceiveProps && "function" !== typeof o.componentWillReceiveProps || (s !== r || l !== c) && $a(t, o, r, c), Pa = !1; var p = t.memoizedState; - o.state = p, ja(t, r, o, i), l = t.memoizedState, s !== r || p !== l || Ai.current || Pa ? ("function" === typeof u && (Va(t, n, u, r), l = t.memoizedState), (s = Pa || Ba(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, Ma(t, r, o, i), l = t.memoizedState, s !== r || p !== l || Ai.current || Pa ? ("function" === typeof u && (Va(t, n, u, r), l = t.memoizedState), (s = Pa || Ba(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, Ra(e, t), s = t.memoizedProps, c = t.type === t.elementType ? s : ga(t.type, s), o.props = c, d = t.pendingProps, p = o.context, "object" === typeof(l = n.contextType) && null !== l ? l = Ea(l) : l = Ti(t, l = Ri(n) ? Pi : Ci.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) && Wa(t, o, r, l), Pa = !1, p = t.memoizedState, o.state = p, ja(t, r, o, i); + (u = "function" === typeof h || "function" === typeof o.getSnapshotBeforeUpdate) || "function" !== typeof o.UNSAFE_componentWillReceiveProps && "function" !== typeof o.componentWillReceiveProps || (s !== d || p !== l) && $a(t, o, r, l), Pa = !1, p = t.memoizedState, o.state = p, Ma(t, r, o, i); var f = t.memoizedState; s !== d || p !== f || Ai.current || Pa ? ("function" === typeof h && (Va(t, n, h, r), f = t.memoizedState), (c = Pa || Ba(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) } @@ -3696,12 +3704,12 @@ } function As(e, t, n, r, i, a) { - Is(e, t); + Os(e, t); var o = 0 !== (128 & t.flags); - if (!r && !o) return i && ji(t, n, !1), Ws(e, t, a); + if (!r && !o) return i && Mi(t, n, !1), $s(e, t, a); r = t.stateNode, _s.current = t; var s = o && "function" !== typeof n.getDerivedStateFromError ? null : r.render(); - return t.flags |= 1, null !== e && o ? (t.child = Qa(t, e.child, null, a), t.child = Qa(t, null, s, a)) : xs(e, t, s, a), t.memoizedState = r.state, i && ji(t, n, !0), t.child + return t.flags |= 1, null !== e && o ? (t.child = Qa(t, e.child, null, a), t.child = Qa(t, null, s, a)) : xs(e, t, s, a), t.memoizedState = r.state, i && Mi(t, n, !0), t.child } function Ps(e) { @@ -3718,7 +3726,7 @@ retryLane: 0 }; - function Ms(e) { + function js(e) { return { baseLanes: e, cachePool: null, @@ -3726,20 +3734,20 @@ } } - function js(e, t, n) { + function Ms(e, t, n) { var r, i = t.pendingProps, o = so.current, s = !1, l = 0 !== (128 & t.flags); - 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), Ii(so, 1 & o), null === e) return ca(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 = i.children, e = i.fallback, s ? (i = t.mode, s = t.child, l = { + 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), Oi(so, 1 & o), null === e) return ca(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 = i.children, e = i.fallback, s ? (i = t.mode, s = t.child, l = { mode: "hidden", children: l - }, 0 === (1 & i) && null !== s ? (s.childLanes = 0, s.pendingProps = l) : s = Mc(l, i, 0, null), e = Nc(e, i, n, null), s.return = t, e.return = t, s.sibling = e, t.child = s, t.child.memoizedState = Ms(n), t.memoizedState = Ns, e) : Fs(t, l)); + }, 0 === (1 & i) && null !== s ? (s.childLanes = 0, s.pendingProps = l) : s = jc(l, i, 0, null), e = Nc(e, i, n, null), s.return = t, e.return = t, s.sibling = e, t.child = s, t.child.memoizedState = js(n), t.memoizedState = Ns, e) : Fs(t, l)); if (null !== (o = e.memoizedState) && null !== (r = o.dehydrated)) return function(e, t, n, r, i, o, s) { - if (n) return 256 & t.flags ? (t.flags &= -257, zs(e, t, s, r = ds(Error(a(422))))) : null !== t.memoizedState ? (t.child = e.child, t.flags |= 128, null) : (o = r.fallback, i = t.mode, r = Mc({ + if (n) return 256 & t.flags ? (t.flags &= -257, zs(e, t, s, r = ds(Error(a(422))))) : null !== t.memoizedState ? (t.child = e.child, t.flags |= 128, null) : (o = r.fallback, i = t.mode, r = jc({ mode: "visible", children: r.children - }, i, 0, null), (o = Nc(o, i, s, null)).flags |= 2, r.return = t, o.return = t, r.sibling = o, t.child = r, 0 !== (1 & t.mode) && Qa(t, e.child, null, s), t.child.memoizedState = Ms(s), t.memoizedState = Ns, o); + }, i, 0, null), (o = Nc(o, i, s, null)).flags |= 2, r.return = t, o.return = t, r.sibling = o, t.child = r, 0 !== (1 & t.mode) && Qa(t, e.child, null, s), t.child.memoizedState = js(s), t.memoizedState = Ns, o); if (0 === (1 & t.mode)) return zs(e, t, s, null); if ("$!" === i.data) { if (r = i.nextSibling && i.nextSibling.dataset) var l = r.dgst; @@ -3787,7 +3795,7 @@ } return mc(), zs(e, t, s, r = ds(Error(a(421)))) } - return "$?" === i.data ? (t.flags |= 128, t.child = e.child, t = Oc.bind(null, e), i._reactRetry = t, null) : (e = o.treeContext, ra = ci(i.nextSibling), na = t, ia = !0, aa = null, null !== e && (Hi[Ki++] = Qi, Hi[Ki++] = Zi, Hi[Ki++] = Yi, Qi = e.id, Zi = e.overflow, Yi = t), t = Fs(t, r.children), t.flags |= 4096, t) + return "$?" === i.data ? (t.flags |= 128, t.child = e.child, t = Ic.bind(null, e), i._reactRetry = t, null) : (e = o.treeContext, ra = ci(i.nextSibling), na = t, ia = !0, aa = null, null !== e && (Hi[Ki++] = Qi, Hi[Ki++] = Zi, Hi[Ki++] = Yi, Qi = e.id, Zi = e.overflow, Yi = t), t = Fs(t, r.children), t.flags |= 4096, t) }(e, t, l, i, r, o, n); if (s) { s = i.fallback, l = t.mode, r = (o = e.child).sibling; @@ -3795,7 +3803,7 @@ mode: "hidden", children: i.children }; - return 0 === (1 & l) && t.child !== o ? ((i = t.child).childLanes = 0, i.pendingProps = c, t.deletions = null) : (i = Dc(o, c)).subtreeFlags = 14680064 & o.subtreeFlags, null !== r ? s = Dc(r, s) : (s = Nc(s, l, n, null)).flags |= 2, s.return = t, i.return = t, i.sibling = s, t.child = i, i = s, s = t.child, l = null === (l = e.child.memoizedState) ? Ms(n) : { + return 0 === (1 & l) && t.child !== o ? ((i = t.child).childLanes = 0, i.pendingProps = c, t.deletions = null) : (i = Dc(o, c)).subtreeFlags = 14680064 & o.subtreeFlags, null !== r ? s = Dc(r, s) : (s = Nc(s, l, n, null)).flags |= 2, s.return = t, i.return = t, i.sibling = s, t.child = i, i = s, s = t.child, l = null === (l = e.child.memoizedState) ? js(n) : { baseLanes: l.baseLanes | n, cachePool: null, transitions: l.transitions @@ -3808,7 +3816,7 @@ } function Fs(e, t) { - return (t = Mc({ + return (t = jc({ mode: "visible", children: t }, e.mode, 0, null)).return = e, e.child = t @@ -3858,7 +3866,7 @@ } r &= 1 } - if (Ii(so, r), 0 === (1 & t.mode)) t.memoizedState = null; + if (Oi(so, r), 0 === (1 & t.mode)) t.memoizedState = null; else switch (i) { case "forwards": for (n = t.child, i = null; null !== n;) null !== (e = n.alternate) && null === lo(e) && (i = n), n = n.sibling; @@ -3887,8 +3895,8 @@ 0 === (1 & t.mode) && null !== e && (e.alternate = null, t.alternate = null, t.flags |= 2) } - function Ws(e, t, n) { - if (null !== e && (t.dependencies = e.dependencies), Ml |= t.lanes, 0 === (n & t.childLanes)) return null; + function $s(e, t, n) { + if (null !== e && (t.dependencies = e.dependencies), jl |= t.lanes, 0 === (n & t.childLanes)) return null; if (null !== e && t.child !== e.child) throw Error(a(153)); if (null !== t.child) { for (n = Dc(e = t.child, e.pendingProps), t.child = n, n.return = t; null !== e.sibling;) e = e.sibling, (n = n.sibling = Dc(e, e.pendingProps)).return = t; @@ -3897,7 +3905,7 @@ return t.child } - function $s(e, t) { + function qs(e, t) { if (!ia) switch (e.tailMode) { case "hidden": t = e.tail; @@ -3911,7 +3919,7 @@ } } - function qs(e) { + function Ws(e) { var t = null !== e.alternate && e.alternate.child === e.child, n = 0, r = 0; @@ -3935,12 +3943,12 @@ case 12: case 9: case 14: - return qs(t), null; + return Ws(t), null; case 1: case 17: - return Ri(t.type) && Di(), qs(t), null; + return Ri(t.type) && Di(), Ws(t), null; case 3: - return r = t.stateNode, io(), Ei(Ai), Ei(Ci), uo(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), null !== e && null !== e.child || (da(t) ? t.flags |= 4 : null === e || e.memoizedState.isDehydrated && 0 === (256 & t.flags) || (t.flags |= 1024, null !== aa && (oc(aa), aa = null))), qs(t), null; + return r = t.stateNode, io(), Ei(Ai), Ei(Ci), uo(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), null !== e && null !== e.child || (da(t) ? t.flags |= 4 : null === e || e.memoizedState.isDehydrated && 0 === (256 & t.flags) || (t.flags |= 1024, null !== aa && (oc(aa), aa = null))), Ws(t), null; case 5: oo(t); var i = no(to.current); @@ -3948,7 +3956,7 @@ else { if (!r) { if (null === t.stateNode) throw Error(a(166)); - return qs(t), null + return Ws(t), null } if (e = no(Ja.current), da(t)) { r = t.stateNode, n = t.type; @@ -3994,10 +4002,10 @@ "children" === l ? "string" === typeof c ? r.textContent !== c && (!0 !== o.suppressHydrationWarning && Xr(r.textContent, c, e), i = ["children", c]) : "number" === typeof c && r.textContent !== "" + c && (!0 !== o.suppressHydrationWarning && Xr(r.textContent, c, e), i = ["children", "" + c]) : s.hasOwnProperty(l) && null != c && "onScroll" === l && zr("scroll", r) } switch (n) { case "input": - q(r), J(r, o, !0); + W(r), J(r, o, !0); break; case "textarea": - q(r), oe(r); + W(r), oe(r); break; case "select": case "option": @@ -4046,7 +4054,7 @@ case "select": e._wrapperState = { wasMultiple: !!r.multiple - }, i = j({}, r, { + }, i = M({}, r, { value: void 0 }), zr("invalid", e); break; @@ -4059,13 +4067,13 @@ "style" === o ? ge(e, u) : "dangerouslySetInnerHTML" === o ? null != (u = u ? u.__html : void 0) && de(e, u) : "children" === o ? "string" === typeof u ? ("textarea" !== n || "" !== u) && pe(e, u) : "number" === typeof u && pe(e, "" + u) : "suppressContentEditableWarning" !== o && "suppressHydrationWarning" !== o && "autoFocus" !== o && (s.hasOwnProperty(o) ? null != u && "onScroll" === o && zr("scroll", e) : null != u && _(e, o, u, l)) } switch (n) { case "input": - q(e), J(e, r, !1); + W(e), J(e, r, !1); break; case "textarea": - q(e), oe(e); + W(e), oe(e); break; case "option": - null != r.value && e.setAttribute("value", "" + W(r.value)); + null != r.value && e.setAttribute("value", "" + $(r.value)); break; case "select": e.multiple = !!r.multiple, null != (o = r.value) ? ne(e, !!r.multiple, o, !1) : null != r.defaultValue && ne(e, !!r.multiple, r.defaultValue, !0); @@ -4091,7 +4099,7 @@ } null !== t.ref && (t.flags |= 512, t.flags |= 2097152) } - return qs(t), null; + return Ws(t), null; case 6: if (e && null != t.stateNode) Ls(0, t, e.memoizedProps, r); else { @@ -4107,7 +4115,7 @@ o && (t.flags |= 4) } else(r = (9 === n.nodeType ? n : n.ownerDocument).createTextNode(r))[pi] = t, t.stateNode = r } - return qs(t), null; + return Ws(t), null; case 13: if (Ei(so), r = t.memoizedState, null === e || null !== e.memoizedState && null !== e.memoizedState.dehydrated) { if (ia && null !== ra && 0 !== (1 & t.mode) && 0 === (128 & t.flags)) pa(), ha(), t.flags |= 98560, o = !1; @@ -4117,44 +4125,44 @@ if (!(o = null !== (o = t.memoizedState) ? o.dehydrated : null)) throw Error(a(317)); o[pi] = t } else ha(), 0 === (128 & t.flags) && (t.memoizedState = null), t.flags |= 4; - qs(t), o = !1 + Ws(t), o = !1 } else null !== aa && (oc(aa), aa = 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 & so.current) ? 0 === Ll && (Ll = 3) : mc())), null !== t.updateQueue && (t.flags |= 4), qs(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 & so.current) ? 0 === Ll && (Ll = 3) : mc())), null !== t.updateQueue && (t.flags |= 4), Ws(t), null); case 4: - return io(), null === e && Br(t.stateNode.containerInfo), qs(t), null; + return io(), null === e && Br(t.stateNode.containerInfo), Ws(t), null; case 10: - return ka(t.type._context), qs(t), null; + return ka(t.type._context), Ws(t), null; case 19: - if (Ei(so), null === (o = t.memoizedState)) return qs(t), null; + if (Ei(so), null === (o = t.memoizedState)) return Ws(t), null; if (r = 0 !== (128 & t.flags), null === (l = o.rendering)) - if (r) $s(o, !1); + if (r) qs(o, !1); else { if (0 !== Ll || null !== e && 0 !== (128 & e.flags)) for (e = t.child; null !== e;) { if (null !== (l = lo(e))) { - for (t.flags |= 128, $s(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 : { + for (t.flags |= 128, qs(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 : { lanes: e.lanes, firstContext: e.firstContext }), n = n.sibling; - return Ii(so, 1 & so.current | 2), t.child + return Oi(so, 1 & so.current | 2), t.child } e = e.sibling } - null !== o.tail && Ze() > Bl && (t.flags |= 128, r = !0, $s(o, !1), t.lanes = 4194304) + null !== o.tail && Ze() > Bl && (t.flags |= 128, r = !0, qs(o, !1), t.lanes = 4194304) } else { if (!r) if (null !== (e = lo(l))) { - if (t.flags |= 128, r = !0, null !== (n = e.updateQueue) && (t.updateQueue = n, t.flags |= 4), $s(o, !0), null === o.tail && "hidden" === o.tailMode && !l.alternate && !ia) return qs(t), null - } else 2 * Ze() - o.renderingStartTime > Bl && 1073741824 !== n && (t.flags |= 128, r = !0, $s(o, !1), t.lanes = 4194304); + if (t.flags |= 128, r = !0, null !== (n = e.updateQueue) && (t.updateQueue = n, t.flags |= 4), qs(o, !0), null === o.tail && "hidden" === o.tailMode && !l.alternate && !ia) return Ws(t), null + } else 2 * Ze() - o.renderingStartTime > Bl && 1073741824 !== n && (t.flags |= 128, r = !0, qs(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 = Ze(), t.sibling = null, n = so.current, Ii(so, r ? 1 & n | 2 : 1 & n), t) : (qs(t), null); + return null !== o.tail ? (t = o.tail, o.rendering = t, o.tail = t.sibling, o.renderingStartTime = Ze(), t.sibling = null, n = so.current, Oi(so, r ? 1 & n | 2 : 1 & n), t) : (Ws(t), null); case 22: case 23: - return dc(), r = null !== t.memoizedState, null !== e && null !== e.memoizedState !== r && (t.flags |= 8192), r && 0 !== (1 & t.mode) ? 0 !== (1073741824 & Rl) && (qs(t), 6 & t.subtreeFlags && (t.flags |= 8192)) : qs(t), null; + return dc(), r = null !== t.memoizedState, null !== e && null !== e.memoizedState !== r && (t.flags |= 8192), r && 0 !== (1 & t.mode) ? 0 !== (1073741824 & Rl) && (Ws(t), 6 & t.subtreeFlags && (t.flags |= 8192)) : Ws(t), null; case 24: case 25: return null @@ -4213,9 +4221,9 @@ i = Y(e, i), r = Y(e, r), o = []; break; case "select": - i = j({}, i, { + i = M({}, i, { value: void 0 - }), r = j({}, r, { + }), r = M({}, r, { value: void 0 }), o = []; break; @@ -4835,8 +4843,8 @@ } var wl, Sl = Math.ceil, El = b.ReactCurrentDispatcher, - Il = b.ReactCurrentOwner, - Ol = b.ReactCurrentBatchConfig, + Ol = b.ReactCurrentOwner, + Il = b.ReactCurrentBatchConfig, Cl = 0, Al = null, Pl = null, @@ -4845,17 +4853,17 @@ Dl = Si(0), Ll = 0, Nl = null, - Ml = 0, jl = 0, + Ml = 0, Fl = 0, zl = null, Vl = null, Ul = 0, Bl = 1 / 0, Gl = null, - Wl = !1, - $l = null, + $l = !1, ql = null, + Wl = null, Hl = !1, Kl = null, Yl = 0, @@ -4874,7 +4882,7 @@ function nc(e, t, n, r) { if (50 < Ql) throw Ql = 0, Zl = null, Error(a(185)); - vt(e, n, r), 0 !== (2 & Cl) && e === Al || (e === Al && (0 === (2 & Cl) && (jl |= n), 4 === Ll && sc(e, Tl)), rc(e, r), 1 === n && 0 === Cl && 0 === (1 & t.mode) && (Bl = Ze() + 500, zi && Bi())) + vt(e, n, r), 0 !== (2 & Cl) && e === Al || (e === Al && (0 === (2 & Cl) && (Ml |= n), 4 === Ll && sc(e, Tl)), rc(e, r), 1 === n && 0 === Cl && 0 === (1 & t.mode) && (Bl = Ze() + 500, zi && Bi())) } function rc(e, t) { @@ -5017,7 +5025,7 @@ } function sc(e, t) { - for (t &= ~Fl, t &= ~jl, e.suspendedLanes |= t, e.pingedLanes &= ~t, e = e.expirationTimes; 0 < t;) { + for (t &= ~Fl, t &= ~Ml, e.suspendedLanes |= t, e.pingedLanes &= ~t, e = e.expirationTimes; 0 < t;) { var n = 31 - ot(t), r = 1 << n; e[n] = -1, t &= ~r @@ -5053,12 +5061,12 @@ null !== Kl && 0 === Kl.tag && 0 === (6 & Cl) && kc(); var t = Cl; Cl |= 1; - var n = Ol.transition, + var n = Il.transition, r = _t; try { - if (Ol.transition = null, _t = 1, e) return e() + if (Il.transition = null, _t = 1, e) return e() } finally { - _t = r, Ol.transition = n, 0 === (6 & (Cl = t)) && Bi() + _t = r, Il.transition = n, 0 === (6 & (Cl = t)) && Bi() } } @@ -5098,9 +5106,9 @@ } n = n.return } - if (Al = e, Pl = e = Dc(e.current, null), Tl = Rl = t, Ll = 0, Nl = null, Fl = jl = Ml = 0, Vl = zl = null, null !== Ia) { - for (t = 0; t < Ia.length; t++) - if (null !== (r = (n = Ia[t]).interleaved)) { + if (Al = e, Pl = e = Dc(e.current, null), Tl = Rl = t, Ll = 0, Nl = null, Fl = Ml = jl = 0, Vl = zl = null, null !== Oa) { + for (t = 0; t < Oa.length; t++) + if (null !== (r = (n = Oa[t]).interleaved)) { n.interleaved = null; var i = r.next, a = n.pending; @@ -5109,7 +5117,7 @@ a.next = i, r.next = o } n.pending = r - } Ia = null + } Oa = null } return e } @@ -5125,7 +5133,7 @@ } yo = !1 } - if (fo = 0, vo = go = mo = null, _o = !1, bo = 0, Il.current = null, null === n || null === n.return) { + if (fo = 0, vo = go = mo = null, _o = !1, bo = 0, Ol.current = null, null === n || null === n.return) { Ll = 1, Nl = t, Pl = null; break } @@ -5170,14 +5178,14 @@ o = s;do { switch (o.tag) { case 3: - o.flags |= 65536, t &= -t, o.lanes |= t, Ma(o, fs(0, c, t)); + o.flags |= 65536, t &= -t, o.lanes |= t, ja(o, fs(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 === ql || !ql.has(_)))) { - o.flags |= 65536, t &= -t, o.lanes |= t, Ma(o, ms(o, l, t)); + if (0 === (128 & o.flags) && ("function" === typeof y.getDerivedStateFromError || null !== _ && "function" === typeof _.componentDidCatch && (null === Wl || !Wl.has(_)))) { + o.flags |= 65536, t &= -t, o.lanes |= t, ja(o, ms(o, l, t)); break e } } @@ -5199,7 +5207,7 @@ } function mc() { - 0 !== Ll && 3 !== Ll && 2 !== Ll || (Ll = 4), null === Al || 0 === (268435455 & Ml) && 0 === (268435455 & jl) || sc(Al, Tl) + 0 !== Ll && 3 !== Ll && 2 !== Ll || (Ll = 4), null === Al || 0 === (268435455 & jl) && 0 === (268435455 & Ml) || sc(Al, Tl) } function gc(e, t) { @@ -5226,7 +5234,7 @@ function _c(e) { var t = wl(e.alternate, e, Rl); - e.memoizedProps = e.pendingProps, null === t ? bc(e) : Pl = t, Il.current = null + e.memoizedProps = e.pendingProps, null === t ? bc(e) : Pl = t, Ol.current = null } function bc(e) { @@ -5248,9 +5256,9 @@ function xc(e, t, n) { var r = _t, - i = Ol.transition; + i = Il.transition; try { - Ol.transition = null, _t = 1, + Il.transition = null, _t = 1, function(e, t, n, r) { do { kc() @@ -5274,13 +5282,13 @@ }(e, o), e === Al && (Pl = Al = null, Tl = 0), 0 === (2064 & n.subtreeFlags) && 0 === (2064 & n.flags) || Hl || (Hl = !0, Ac(tt, (function() { return kc(), null }))), o = 0 !== (15990 & n.flags), 0 !== (15990 & n.subtreeFlags) || o) { - o = Ol.transition, Ol.transition = null; + o = Il.transition, Il.transition = null; var s = _t; _t = 1; var l = Cl; - Cl |= 4, Il.current = null, + Cl |= 4, Ol.current = null, function(e, t) { - if (ei = Wt, hr(e = pr())) { + if (ei = $t, hr(e = pr())) { if ("selectionStart" in e) var n = { start: e.selectionStart, end: e.selectionEnd @@ -5328,7 +5336,7 @@ for (ti = { focusedElem: e, selectionRange: n - }, Wt = !1, Xs = t; null !== Xs;) + }, $t = !1, Xs = t; null !== Xs;) if (e = (t = Xs).child, 0 !== (1028 & t.subtreeFlags) && null !== e) e.return = t, Xs = e; else for (; null !== Xs;) { @@ -5370,9 +5378,9 @@ Xs = t.return } m = tl, tl = !1 - }(e, n), gl(n, e), fr(ti), Wt = !!ei, ti = ei = null, e.current = n, yl(n, e, i), Qe(), Cl = l, _t = s, Ol.transition = o + }(e, n), gl(n, e), fr(ti), $t = !!ei, ti = ei = null, e.current = n, yl(n, e, i), Qe(), Cl = l, _t = s, Il.transition = o } else e.current = n; - if (Hl && (Hl = !1, Kl = e, Yl = i), o = e.pendingLanes, 0 === o && (ql = null), function(e) { + if (Hl && (Hl = !1, Kl = e, Yl = i), o = e.pendingLanes, 0 === o && (Wl = null), function(e) { if (at && "function" === typeof at.onCommitFiberRoot) try { at.onCommitFiberRoot(it, e, void 0, 128 === (128 & e.current.flags)) } catch (t) {} @@ -5381,11 +5389,11 @@ componentStack: i.stack, digest: i.digest }); - if (Wl) throw Wl = !1, e = $l, $l = null, e; + if ($l) throw $l = !1, e = ql, ql = null, e; 0 !== (1 & Yl) && 0 !== e.tag && kc(), o = e.pendingLanes, 0 !== (1 & o) ? e === Zl ? Ql++ : (Ql = 0, Zl = e) : Ql = 0, Bi() }(e, t, n, r) } finally { - Ol.transition = i, _t = r + Il.transition = i, _t = r } return null } @@ -5393,10 +5401,10 @@ function kc() { if (null !== Kl) { var e = bt(Yl), - t = Ol.transition, + t = Il.transition, n = _t; try { - if (Ol.transition = null, _t = 16 > e ? 16 : e, null === Kl) var r = !1; + if (Il.transition = null, _t = 16 > e ? 16 : e, null === Kl) var r = !1; else { if (e = Kl, Kl = null, Yl = 0, 0 !== (6 & Cl)) throw Error(a(331)); var i = Cl; @@ -5498,7 +5506,7 @@ } return r } finally { - _t = n, Ol.transition = t + _t = n, Il.transition = t } } return !1 @@ -5518,7 +5526,7 @@ } if (1 === t.tag) { var r = t.stateNode; - if ("function" === typeof t.type.getDerivedStateFromError || "function" === typeof r.componentDidCatch && (null === ql || !ql.has(r))) { + if ("function" === typeof t.type.getDerivedStateFromError || "function" === typeof r.componentDidCatch && (null === Wl || !Wl.has(r))) { t = La(t, e = ms(t, e = us(n, e), 1), 1), e = ec(), null !== t && (vt(t, 1, e), rc(t, e)); break } @@ -5532,16 +5540,16 @@ null !== r && r.delete(t), t = ec(), e.pingedLanes |= e.suspendedLanes & n, Al === e && (Tl & n) === n && (4 === Ll || 3 === Ll && (130023424 & Tl) === Tl && 500 > Ze() - Ul ? pc(e, 0) : Fl |= n), rc(e, t) } - function Ic(e, t) { + function Oc(e, t) { 0 === t && (0 === (1 & e.mode) ? t = 1 : (t = ut, 0 === (130023424 & (ut <<= 1)) && (ut = 4194304))); var n = ec(); null !== (e = Aa(e, t)) && (vt(e, t, n), rc(e, n)) } - function Oc(e) { + function Ic(e) { var t = e.memoizedState, n = 0; - null !== t && (n = t.retryLane), Ic(e, n) + null !== t && (n = t.retryLane), Oc(e, n) } function Cc(e, t) { @@ -5558,7 +5566,7 @@ default: throw Error(a(314)) } - null !== r && r.delete(t), Ic(e, n) + null !== r && r.delete(t), Oc(e, n) } function Ac(e, t) { @@ -5602,13 +5610,13 @@ case P: return (e = Tc(19, n, t, i)).elementType = P, e.lanes = o, e; case D: - return Mc(n, i, o, t); + return jc(n, i, o, t); default: if ("object" === typeof e && null !== e) switch (e.$$typeof) { - case I: + case O: s = 10; break e; - case O: + case I: s = 9; break e; case C: @@ -5630,13 +5638,13 @@ return (e = Tc(7, e, r, t)).lanes = n, e } - function Mc(e, t, n, r) { + function jc(e, t, n, r) { return (e = Tc(22, e, r, t)).elementType = D, e.lanes = n, e.stateNode = { isHidden: !1 }, e } - function jc(e, t, n) { + function Mc(e, t, n) { return (e = Tc(6, e, null, t)).lanes = n, e } @@ -5674,7 +5682,7 @@ } function Bc(e) { - if (!e) return Oi; + if (!e) return Ii; e: { if (Be(e = e._reactInternals) !== e || 1 !== e.tag) throw Error(a(170)); var t = e;do { @@ -5703,7 +5711,7 @@ return (e = Vc(n, r, !0, e, 0, a, 0, s, l)).context = Bc(null), n = e.current, (a = Da(r = ec(), i = tc(n))).callback = void 0 !== t && null !== t ? t : null, La(n, a, i), e.current.lanes = i, vt(e, i, r), rc(e, r), e } - function Wc(e, t, n, r) { + function $c(e, t, n, r) { var i = t.current, a = ec(), o = tc(i); @@ -5712,11 +5720,11 @@ }, null !== (r = void 0 === r ? null : r) && (t.callback = r), null !== (e = La(i, t, o)) && (nc(e, i, o, a), Na(e, i, o)), o } - function $c(e) { + function qc(e) { return (e = e.current).child ? (e.child.tag, e.child.stateNode) : null } - function qc(e, t) { + function Wc(e, t) { if (null !== (e = e.memoizedState) && null !== e.dehydrated) { var n = e.retryLane; e.retryLane = 0 !== n && n < t ? n : t @@ -5724,7 +5732,7 @@ } function Hc(e, t) { - qc(e, t), (e = e.alternate) && qc(e, t) + Wc(e, t), (e = e.alternate) && Wc(e, t) } wl = function(e, t, n) { if (null !== e) @@ -5740,7 +5748,7 @@ ao(t); break; case 1: - Ri(t.type) && Mi(t); + Ri(t.type) && ji(t); break; case 4: ro(t, t.stateNode.containerInfo); @@ -5748,28 +5756,28 @@ case 10: var r = t.type._context, i = t.memoizedProps.value; - Ii(va, r._currentValue), r._currentValue = i; + Oi(va, r._currentValue), r._currentValue = i; break; case 13: - if (null !== (r = t.memoizedState)) return null !== r.dehydrated ? (Ii(so, 1 & so.current), t.flags |= 128, null) : 0 !== (n & t.child.childLanes) ? js(e, t, n) : (Ii(so, 1 & so.current), null !== (e = Ws(e, t, n)) ? e.sibling : null); - Ii(so, 1 & so.current); + if (null !== (r = t.memoizedState)) return null !== r.dehydrated ? (Oi(so, 1 & so.current), t.flags |= 128, null) : 0 !== (n & t.child.childLanes) ? Ms(e, t, n) : (Oi(so, 1 & so.current), null !== (e = $s(e, t, n)) ? e.sibling : null); + Oi(so, 1 & so.current); break; case 19: if (r = 0 !== (n & t.childLanes), 0 !== (128 & e.flags)) { if (r) return Bs(e, t, n); t.flags |= 128 } - if (null !== (i = t.memoizedState) && (i.rendering = null, i.tail = null, i.lastEffect = null), Ii(so, so.current), r) break; + if (null !== (i = t.memoizedState) && (i.rendering = null, i.tail = null, i.lastEffect = null), Oi(so, so.current), r) break; return null; case 22: case 23: return t.lanes = 0, Es(e, t, n) } - return Ws(e, t, n) + return $s(e, t, n) }(e, t, n); bs = 0 !== (131072 & e.flags) } - else bs = !1, ia && 0 !== (1048576 & t.flags) && Ji(t, qi, t.index); + else bs = !1, ia && 0 !== (1048576 & t.flags) && Ji(t, Wi, t.index); switch (t.lanes = 0, t.tag) { case 2: var r = t.type; @@ -5777,7 +5785,7 @@ var i = Ti(t, Ci.current); Sa(t, n), i = So(null, t, r, e, i, n); var o = Eo(); - return t.flags |= 1, "object" === typeof i && null !== i && "function" === typeof i.render && void 0 === i.$$typeof ? (t.tag = 1, t.memoizedState = null, t.updateQueue = null, Ri(r) ? (o = !0, Mi(t)) : o = !1, t.memoizedState = null !== i.state && void 0 !== i.state ? i.state : null, Ta(t), i.updater = Ua, t.stateNode = i, i._reactInternals = t, $a(t, r, e, n), t = As(null, t, r, !0, o, n)) : (t.tag = 0, ia && o && ea(t), xs(null, t, i, n), t = t.child), t; + return t.flags |= 1, "object" === typeof i && null !== i && "function" === typeof i.render && void 0 === i.$$typeof ? (t.tag = 1, t.memoizedState = null, t.updateQueue = null, Ri(r) ? (o = !0, ji(t)) : o = !1, t.memoizedState = null !== i.state && void 0 !== i.state ? i.state : null, Ta(t), i.updater = Ua, t.stateNode = i, i._reactInternals = t, qa(t, r, e, n), t = As(null, t, r, !0, o, n)) : (t.tag = 0, ia && o && ea(t), xs(null, t, i, n), t = t.child), t; case 16: r = t.elementType; e: { @@ -5790,7 +5798,7 @@ return 2 }(r), e = ga(r, e), i) { case 0: - t = Os(null, t, r, e, n); + t = Is(null, t, r, e, n); break e; case 1: t = Cs(null, t, r, e, n); @@ -5806,7 +5814,7 @@ } return t; case 0: - return r = t.type, i = t.pendingProps, Os(e, t, r, i = t.elementType === r ? i : ga(r, i), n); + return r = t.type, i = t.pendingProps, Is(e, t, r, i = t.elementType === r ? i : ga(r, i), n); case 1: return r = t.type, i = t.pendingProps, Cs(e, t, r, i = t.elementType === r ? i : ga(r, i), n); case 3: @@ -5814,7 +5822,7 @@ if (Ps(t), null === e) throw Error(a(387));r = t.pendingProps, i = (o = t.memoizedState).element, Ra(e, t), - ja(t, r, null, n); + Ma(t, r, null, n); var s = t.memoizedState; if (r = s.element, o.isDehydrated) { if (o = { @@ -5834,7 +5842,7 @@ for (ra = ci(t.stateNode.containerInfo.firstChild), na = t, ia = !0, aa = null, n = Za(t, null, r, n), t.child = n; n;) n.flags = -3 & n.flags | 4096, n = n.sibling } else { if (ha(), r === i) { - t = Ws(e, t, n); + t = $s(e, t, n); break e } xs(e, t, r, n) @@ -5843,11 +5851,11 @@ } return t; case 5: - return ao(t), null === e && ca(t), r = t.type, i = t.pendingProps, o = null !== e ? e.memoizedProps : null, s = i.children, ni(r, i) ? s = null : null !== o && ni(r, o) && (t.flags |= 32), Is(e, t), xs(e, t, s, n), t.child; + return ao(t), null === e && ca(t), r = t.type, i = t.pendingProps, o = null !== e ? e.memoizedProps : null, s = i.children, ni(r, i) ? s = null : null !== o && ni(r, o) && (t.flags |= 32), Os(e, t), xs(e, t, s, n), t.child; case 6: return null === e && ca(t), null; case 13: - return js(e, t, n); + return Ms(e, t, n); case 4: return ro(t, t.stateNode.containerInfo), r = t.pendingProps, null === e ? t.child = Qa(t, null, r, n) : xs(e, t, r, n), t.child; case 11: @@ -5859,10 +5867,10 @@ return xs(e, t, t.pendingProps.children, n), t.child; case 10: e: { - if (r = t.type._context, i = t.pendingProps, o = t.memoizedProps, s = i.value, Ii(va, r._currentValue), r._currentValue = s, null !== o) + if (r = t.type._context, i = t.pendingProps, o = t.memoizedProps, s = i.value, Oi(va, r._currentValue), r._currentValue = s, null !== o) if (sr(o.value, s)) { if (o.children === i.children && !Ai.current) { - t = Ws(e, t, n); + t = $s(e, t, n); break e } } else @@ -5916,7 +5924,7 @@ case 15: return Ss(e, t, t.type, t.pendingProps, n); case 17: - return r = t.type, i = t.pendingProps, i = t.elementType === r ? i : ga(r, i), Gs(e, t), t.tag = 1, Ri(r) ? (e = !0, Mi(t)) : e = !1, Sa(t, n), Ga(t, r, i), $a(t, r, i, n), As(null, t, r, !0, e, n); + return r = t.type, i = t.pendingProps, i = t.elementType === r ? i : ga(r, i), Gs(e, t), t.tag = 1, Ri(r) ? (e = !0, ji(t)) : e = !1, Sa(t, n), Ga(t, r, i), qa(t, r, i, n), As(null, t, r, !0, e, n); case 19: return Bs(e, t, n); case 22: @@ -5953,17 +5961,17 @@ if ("function" === typeof i) { var s = i; i = function() { - var e = $c(o); + var e = qc(o); s.call(e) } } - Wc(t, o, e, i) + $c(t, o, e, i) } else o = function(e, t, n, r, i) { if (i) { if ("function" === typeof r) { var a = r; r = function() { - var e = $c(o); + var e = qc(o); a.call(e) } } @@ -5974,28 +5982,28 @@ if ("function" === typeof r) { var s = r; r = function() { - var e = $c(l); + var e = qc(l); s.call(e) } } var l = Vc(e, 0, !1, null, 0, !1, 0, "", Jc); return e._reactRootContainer = l, e[fi] = l.current, Br(8 === e.nodeType ? e.parentNode : e), uc((function() { - Wc(t, l, n, r) + $c(t, l, n, r) })), l }(n, t, e, i, r); - return $c(o) + return qc(o) } Qc.prototype.render = Yc.prototype.render = function(e) { var t = this._internalRoot; if (null === t) throw Error(a(409)); - Wc(e, t, null, null) + $c(e, t, null, null) }, Qc.prototype.unmount = Yc.prototype.unmount = function() { var e = this._internalRoot; if (null !== e) { this._internalRoot = null; var t = e.containerInfo; uc((function() { - Wc(null, e, null, null) + $c(null, e, null, null) })), t[fi] = null } }, Qc.prototype.unstable_scheduleHydration = function(e) { @@ -6007,7 +6015,7 @@ priority: t }; for (var n = 0; n < Dt.length && 0 !== t && t < Dt[n].priority; n++); - Dt.splice(n, 0, e), 0 === n && jt(e) + Dt.splice(n, 0, e), 0 === n && Mt(e) } }, xt = function(e) { switch (e.tag) { @@ -6073,7 +6081,7 @@ }, Ce = cc, Ae = uc; var tu = { usingClientEntryPoint: !1, - Events: [_i, bi, xi, Ie, Oe, cc] + Events: [_i, bi, xi, Oe, Ie, cc] }, nu = { findFiberByHostInstance: yi, @@ -6097,7 +6105,7 @@ scheduleUpdate: null, currentDispatcherRef: b.ReactCurrentDispatcher, findHostInstanceByFiber: function(e) { - return null === (e = $e(e)) ? null : e.stateNode + return null === (e = qe(e)) ? null : e.stateNode }, findFiberByHostInstance: nu.findFiberByHostInstance || function() { return null @@ -6133,7 +6141,7 @@ if ("function" === typeof e.render) throw Error(a(188)); throw e = Object.keys(e).join(","), Error(a(268, e)) } - return e = null === (e = $e(t)) ? null : e.stateNode + return e = null === (e = qe(t)) ? null : e.stateNode }, t.flushSync = function(e) { return uc(e) }, t.hydrate = function(e, t, n) { @@ -6289,10 +6297,10 @@ } } - function I(e) { + function O(e) { return "object" === typeof e && null !== e && e.$$typeof === n } - var O = /\/+/g; + var I = /\/+/g; function C(e, t) { return "object" === typeof e && null !== e && null != e.key ? function(e) { @@ -6323,9 +6331,9 @@ l = !0 } } - if (l) return o = o(l = e), e = "" === a ? "." + C(l, 0) : a, x(o) ? (i = "", null != e && (i = e.replace(O, "$&/") + "/"), A(o, t, i, "", (function(e) { + if (l) return o = o(l = e), e = "" === a ? "." + C(l, 0) : a, x(o) ? (i = "", null != e && (i = e.replace(I, "$&/") + "/"), A(o, t, i, "", (function(e) { return e - }))) : null != o && (I(o) && (o = function(e, t) { + }))) : null != o && (O(o) && (o = function(e, t) { return { $$typeof: n, type: e.type, @@ -6334,7 +6342,7 @@ props: e.props, _owner: e._owner } - }(o, i + (!o.key || l && l.key === o.key ? "" : ("" + o.key).replace(O, "$&/") + "/") + e)), t.push(o)), 1; + }(o, i + (!o.key || l && l.key === o.key ? "" : ("" + o.key).replace(I, "$&/") + "/") + e)), t.push(o)), 1; if (l = 0, a = "" === a ? "." : a + ":", x(e)) for (var c = 0; c < e.length; c++) { var u = a + C(s = e[c], c); @@ -6398,7 +6406,7 @@ })) || [] }, only: function(e) { - if (!I(e)) throw Error("React.Children.only expected to receive a single React element child."); + if (!O(e)) throw Error("React.Children.only expected to receive a single React element child."); return e } }, t.Component = v, t.Fragment = i, t.Profiler = o, t.PureComponent = _, t.StrictMode = a, t.Suspense = u, t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = L, t.cloneElement = function(e, t, r) { @@ -6452,7 +6460,7 @@ $$typeof: c, render: e } - }, t.isValidElement = I, t.lazy = function(e) { + }, t.isValidElement = O, t.lazy = function(e) { return { $$typeof: p, _payload: { @@ -6603,7 +6611,7 @@ } function k(e, n) { - m = !1, g && (g = !1, y(I), I = -1), f = !0; + m = !1, g && (g = !1, y(O), O = -1), f = !0; var a = h; try { for (b(n), p = r(c); null !== p && (!(p.expirationTime > n) || e && !A());) { @@ -6628,12 +6636,12 @@ "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); var w, S = !1, E = null, - I = -1, - O = 5, + O = -1, + I = 5, C = -1; function A() { - return !(t.unstable_now() - C < O) + return !(t.unstable_now() - C < I) } function P() { @@ -6666,7 +6674,7 @@ } function L(e, n) { - I = v((function() { + O = v((function() { e(t.unstable_now()) }), n) } @@ -6675,7 +6683,7 @@ }, t.unstable_continueExecution = function() { m || f || (m = !0, D(k)) }, t.unstable_forceFrameRate = function(e) { - 0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : O = 0 < e ? Math.floor(1e3 / e) : 5 + 0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : I = 0 < e ? Math.floor(1e3 / e) : 5 }, t.unstable_getCurrentPriorityLevel = function() { return h }, t.unstable_getFirstCallbackNode = function() { @@ -6740,7 +6748,7 @@ startTime: a, expirationTime: s = a + s, sortIndex: -1 - }, a > o ? (e.sortIndex = a, n(u, e), null === r(c) && e === r(u) && (g ? (y(I), I = -1) : g = !0, L(x, a - o))) : (e.sortIndex = s, n(c, e), m || f || (m = !0, D(k))), e + }, a > o ? (e.sortIndex = a, n(u, e), null === r(c) && e === r(u) && (g ? (y(O), O = -1) : g = !0, L(x, a - o))) : (e.sortIndex = s, n(c, e), m || f || (m = !0, D(k))), e }, t.unstable_shouldYield = A, t.unstable_wrapCallback = function(e) { var t = h; return function() { @@ -7155,12 +7163,11 @@ save: "/sounds/website_ui_savesettings.wav" }, musics: { - bg1: "/musics/SC_DL_Raven_Music_23LUFS.ogg", - bg2: "/musics/SC_PMC_600i_v31_24bit_23LUFS.ogg", - bg3: "/musics/SC_PMC_First Light_23LUFS.ogg", - bg4: "/musics/SC_PMC_Main_Theme_23LUFS.ogg", - bg5: "/musics/SC_PMC_Majesty of Space_23LUFS.ogg", - bg6: "/musics/SC_PMC_Mind Games_23LUFS.ogg" + bg1: "/musics/SC_PMC_600i_v31_24bit_23LUFS.ogg", + bg2: "/musics/SC_PMC_First Light_23LUFS.ogg", + bg3: "/musics/SC_PMC_Main_Theme_23LUFS.ogg", + bg4: "/musics/SC_PMC_Majesty of Space_23LUFS.ogg", + bg5: "/musics/SC_PMC_Mind Games_23LUFS.ogg" }, games: [{ id: "SC", @@ -8415,13 +8422,13 @@ payload: i } = e; switch (t) { - case r.LaunchErrorsNames.ERR_LAUNCH_NO_GAME_FILES: + case r.LauncherSpecificLaunchErrorCodes.ERR_LAUNCH_NO_GAME_FILES: return new r.NoGameFilesError(n, i); - case r.LaunchErrorsNames.ERR_LAUNCH_EAC: + case r.LauncherSpecificLaunchErrorCodes.ERR_LAUNCH_EAC: return new r.EACError(n, i); - case r.LaunchErrorsNames.ERR_LAUNCH_GAME_CRASH: + case r.LauncherSpecificLaunchErrorCodes.ERR_LAUNCH_GAME_CRASH: return new r.GameCrashError(n, i); - case r.LaunchErrorsNames.ERR_LAUNCH_UNKNOWN: + case r.LauncherSpecificLaunchErrorCodes.ERR_LAUNCH_UNKNOWN: default: return new r.LaunchError({ code: r.LauncherSpecificLaunchErrorCodes.ERR_LAUNCH_UNKNOWN, @@ -9063,6 +9070,7 @@ error_max_login_attempt: "Maximum number of failed login attempts exceeded.", error_wrong_mfa_code: "Two-factor authentication failed. You may have entered and incorrect or expired code.", error_captcha_required: "Captcha verification is required.", + error_game_error_code: "Game error code: {{ code }}", error_installer_error_code: "Error code: {{ code }}", error_installer_basepack_invalid_title: "Basepack - Invalid Files", error_installer_basepack_invalid_content: "Something went wrong while downloading the game, please try again.", @@ -9095,8 +9103,6 @@ error_cpu_requirements_text: "This game requires a CPU supporting the AVX instruction set to run.", error_launch_account_not_found_title: "Copy Your Account To PTU", 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_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.", error_launch_error_code: "Game error code: {{ code }}", @@ -9104,8 +9110,9 @@ error_launch_no_game_files_content: "Something went wrong on game launch. Could not retrieve game files. Please verify game files. ", 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_launch_game_crash_title: "Game error", - error_launch_game_crash_content: "Something went wrong while playing the game.", + error_launch_game_crash_title: "{{ game }} Has Stopped Running Unexpectedly", + error_launch_game_crash_content_1: "Something went wrong while playing the game.", + error_launch_game_crash_content_2: "Please try relaunching the game. If this problem persists, verify your installation files.", 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", @@ -9505,8 +9512,6 @@ error_cpu_requirements_text: "Ce jeu n\xe9cessite un processeur prenant en charge le jeu d'instructions AVX pour fonctionner.", error_launch_account_not_found_title: "Copiez votre compte sur l'environement PTU", 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.", - 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.", error_launch_error_code: "Code erreur du jeu : {{ code }}", @@ -9514,8 +9519,9 @@ 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.", 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.", - error_launch_game_crash_title: "Erreur de jeu", - error_launch_game_crash_content: "Quelque chose s'est mal pass\xe9 pendant le jeu.", + error_launch_game_crash_title: "{{ game }} a cess\xe9 de fonctionner de mani\xe8re inattendue", + error_launch_game_crash_content_1: "Quelque chose s'est mal pass\xe9 pendant le jeu.", + error_launch_game_crash_content_2: "Essayez de relancer le jeu. Si ce probl\xe8me persiste, veuillez v\xe9rifier vos fichiers d'installation.", 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", @@ -9885,7 +9891,7 @@ error_not_authenticated: "你未通过身份验证", error_invalid_claims: "无效声明", error_authentication_mfa: "身份验证需要mfa", - "error_sign-in_failed": "登入失败。你可能输入了错误的凭证。", + error_sign_in_failed: "登入失败。你可能输入了错误的凭证。", error_sign_in_not_authorized: "你没有权限访问此版本的 RSI 启动器。请从<0>该网页下载公众版本。", error_captcha_invalid: "验证码无效", error_session_expired: "你的会话已过期。请再次确认你的密码。", @@ -9893,6 +9899,7 @@ error_max_login_attempt: "已超过登入失败的最大次数。", error_wrong_mfa_code: "双重验证失败。你可能输入了错误的或过期的验证码。", error_captcha_required: "需要验证验证码。", + error_game_error_code: "游戏错误代码:{{ code }}", error_installer_error_code: "错误代码:{{ code }}", error_installer_basepack_invalid_title: "基础文件包 - 文件无效", error_installer_basepack_invalid_content: "下载游戏时出现错误,请重试。", @@ -9925,17 +9932,16 @@ error_cpu_requirements_text: "游戏需要一个支持 AVX 指令集的 CPU 才能运行。", error_launch_account_not_found_title: "复制你的账户到 PTU ", error_launch_account_not_found_content: "想要游玩公共测试宇宙(PTU),你需要复制账户到 PTU。请按照以下步骤<0>这里并重试。", - error_launch_game_title: "{{game}} 意外停止运行", - error_launch_game_content: "尝试重新启动游戏。如果问题依然存在,请验证你的安装文件。", error_launch_unknown_title: "启动器 - 未知错误", error_launch_unknown_content: "启动游戏时出现错误。请验证游戏文件完整性。", - error_launch_error_code: "启动游戏出错,错误代码: {{ code }}", + error_launch_error_code: "游戏错误代码:{{ code }}", error_launch_no_game_files_title: "启动器 - 未找到游戏文件", error_launch_no_game_files_content: "启动游戏时出现错误。无法检索到游戏文件。请验证游戏文件完整性。", error_launch_EAC_title: "启动器 - EAC 错误", error_launch_EAC_content: "启动游戏时出现错误。EAC 检测到文件损坏。请验证游戏文件完整性。", - error_launch_game_crash_title: "游戏错误", - error_launch_game_crash_content: "游戏运行时出现错误。", + error_launch_game_crash_title: "{{game}} 意外停止运行", + error_launch_game_crash_content_1: "游戏运行时出现错误。", + error_launch_game_crash_content_2: "请尝试重新启动游戏。如果问题依然存在,请验证你的安装文件。", error_launch_game_running_title: "游戏正在运行", error_launch_game_running_content: "游戏已经处于运行状态", error_launch_check_update_unavailable_title: "检查游戏版本失败", @@ -10115,7 +10121,7 @@ status_more_information: "更多信息", status_major: "完全中断", status_partial: "部分中断", - status_degraded: "性能降低", + status_degraded: "性能下降", status_maintenance: "正在维护", status_operational: "正常运行" }, @@ -10130,6 +10136,7 @@ tray_logout: "登出", tray_quit: "退出" } + }, SC_TOOLBOX_LOCALIZATION_ZHTW_MAP = { agreements: { @@ -10805,12 +10812,12 @@ } } - function I(e, t, n) { + function O(e, t, n) { var r = E(e, t, Object); r.obj[r.k] = n } - function O(e, t) { + function I(e, t) { var n = E(e, t), r = n.obj, i = n.k; @@ -10818,8 +10825,8 @@ } function C(e, t, n) { - var r = O(e, n); - return void 0 !== r ? r : O(t, n) + var r = I(e, n); + return void 0 !== r ? r : I(t, n) } function A(e, t, n) { @@ -10858,7 +10865,7 @@ return n } - function M(e) { + function j(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 ? N(Object(n), !0).forEach((function(t) { @@ -10870,7 +10877,7 @@ return e } - function j(e) { + function M(e) { var t = function() { if ("undefined" === typeof Reflect || !Reflect.construct) return !1; if (Reflect.construct.sham) return !1; @@ -10916,7 +10923,7 @@ } var z = function(e) { u(n, e); - var t = j(n); + var t = M(n); function n(e) { var r, a = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { @@ -10944,7 +10951,7 @@ a = void 0 !== r.ignoreJSONStructure ? r.ignoreJSONStructure : this.options.ignoreJSONStructure, o = [e, t]; n && "string" !== typeof n && (o = o.concat(n)), n && "string" === typeof n && (o = o.concat(i ? n.split(i) : n)), e.indexOf(".") > -1 && (o = e.split(".")); - var s = O(this.data, o); + var s = I(this.data, o); return s || !a || "string" !== typeof n ? s : F(this.data && this.data[e] && this.data[e][t], n, i) } }, { @@ -10956,7 +10963,7 @@ a = this.options.keySeparator; void 0 === a && (a = "."); var o = [e, t]; - n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (r = t, t = (o = e.split("."))[1]), this.addNamespaces(t), I(this.data, o, r), i.silent || this.emit("added", e, t, n, r) + n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (r = t, t = (o = e.split("."))[1]), this.addNamespaces(t), O(this.data, o, r), i.silent || this.emit("added", e, t, n, r) } }, { key: "addResources", @@ -10977,8 +10984,8 @@ }, o = [e, t]; e.indexOf(".") > -1 && (r = n, n = t, t = (o = e.split("."))[1]), this.addNamespaces(t); - var s = O(this.data, o) || {}; - r ? A(s, n, i) : s = M(M({}, s), n), I(this.data, o, s), a.silent || this.emit("added", e, t, n) + var s = I(this.data, o) || {}; + r ? A(s, n, i) : s = j(j({}, s), n), O(this.data, o, s), a.silent || this.emit("added", e, t, n) } }, { key: "removeResourceBundle", @@ -10993,7 +11000,7 @@ }, { key: "getResourceBundle", value: function(e, t) { - return t || (t = this.options.defaultNS), "v1" === this.options.compatibilityAPI ? M(M({}, {}), this.getResource(e, t)) : this.getResource(e, t) + return t || (t = this.options.defaultNS), "v1" === this.options.compatibilityAPI ? j(j({}, {}), this.getResource(e, t)) : this.getResource(e, t) } }, { key: "getDataByLanguage", @@ -11071,8 +11078,8 @@ return d(this, n) } } - var W = {}, - $ = function(e) { + var $ = {}, + q = function(e) { u(n, e); var t = G(n); @@ -11173,16 +11180,16 @@ } if (s) { var E = "[object Array]" === _, - I = E ? [] : {}, - O = E ? y : v; + O = E ? [] : {}, + I = E ? y : v; for (var C in g) if (Object.prototype.hasOwnProperty.call(g, C)) { - var A = "".concat(O).concat(s).concat(C); - I[C] = this.translate(A, B(B({}, t), { + var A = "".concat(I).concat(s).concat(C); + O[C] = this.translate(A, B(B({}, t), { joinArrays: !1, ns: u - })), I[C] === A && (I[C] = g[C]) - } g = I + })), O[C] === A && (O[C] = g[C]) + } g = O } } else if (k && "string" === typeof x && "[object Array]" === _)(g = g.join(x)) && (g = this.extendTranslation(g, e, t, i)); else { @@ -11193,8 +11200,8 @@ L = R ? this.pluralResolver.getSuffix(p, t.count, t) : "", N = t["defaultValue".concat(L)] || t.defaultValue; !this.isValidLookup(g) && D && (P = !0, g = N), this.isValidLookup(g) || (T = !0, g = c); - var M = t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, - j = M && T ? void 0 : g, + var j = t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, + M = j && T ? void 0 : g, F = D && N !== g && this.options.updateMissing; if (T || P || F) { if (this.logger.log(F ? "updateKey" : "missingKey", p, d, c, F ? N : g), s) { @@ -11208,15 +11215,15 @@ if ("fallback" === this.options.saveMissingTo && U && U[0]) for (var G = 0; G < U.length; G++) V.push(U[G]); else "all" === this.options.saveMissingTo ? V = this.languageUtils.toResolveHierarchy(t.lng || this.language) : V.push(t.lng || this.language); - var W = function(e, n, r) { - var i = D && r !== g ? r : j; + var $ = function(e, n, r) { + var i = D && r !== g ? r : M; a.options.missingKeyHandler ? a.options.missingKeyHandler(e, d, n, i, F, t) : a.backendConnector && a.backendConnector.saveMissing && a.backendConnector.saveMissing(e, d, n, i, F, t), a.emit("missingKey", e, d, n, g) }; this.options.saveMissing && (this.options.saveMissingPlurals && R ? V.forEach((function(e) { a.pluralResolver.getSuffixes(e, t).forEach((function(n) { - W([e], c + n, t["defaultValue".concat(n)] || N) + $([e], c + n, t["defaultValue".concat(n)] || N) })) - })) : W(V, c, N)) + })) : $(V, c, N)) } g = this.extendTranslation(g, e, t, m, i), T && g === c && this.options.appendNamespaceToMissingKey && (g = "".concat(d, ":").concat(c)), (T || P) && this.options.parseMissingKeyHandler && (g = "v1" !== this.options.compatibilityAPI ? this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(d, ":").concat(c) : c, P ? g : void 0) : this.options.parseMissingKeyHandler(g)) } @@ -11270,7 +11277,7 @@ h = void 0 !== s.context && ("string" === typeof s.context || "number" === typeof s.context) && "" !== s.context, f = s.lngs ? s.lngs : o.languageUtils.toResolveHierarchy(s.lng || o.language, s.fallbackLng); u.forEach((function(e) { - o.isValidLookup(t) || (a = e, !W["".concat(f[0], "-").concat(e)] && o.utils && o.utils.hasLoadedNamespace && !o.utils.hasLoadedNamespace(a) && (W["".concat(f[0], "-").concat(e)] = !0, o.logger.warn('key "'.concat(n, '" for languages "').concat(f.join(", "), '" won\'t get resolved as namespace "').concat(a, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), f.forEach((function(n) { + o.isValidLookup(t) || (a = e, !$["".concat(f[0], "-").concat(e)] && o.utils && o.utils.hasLoadedNamespace && !o.utils.hasLoadedNamespace(a) && ($["".concat(f[0], "-").concat(e)] = !0, o.logger.warn('key "'.concat(n, '" for languages "').concat(f.join(", "), '" won\'t get resolved as namespace "').concat(a, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), f.forEach((function(n) { if (!o.isValidLookup(t)) { i = n; var a, l = [c]; @@ -11319,7 +11326,7 @@ }]), n }(x); - function q(e) { + function W(e) { return e.charAt(0).toUpperCase() + e.slice(1) } var H = function() { @@ -11348,7 +11355,7 @@ n = e.split("-"); return this.options.lowerCaseLng ? n = n.map((function(e) { return e.toLowerCase() - })) : 2 === n.length ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = q(n[1].toLowerCase()))) : 3 === n.length && (n[0] = n[0].toLowerCase(), 2 === n[1].length && (n[1] = n[1].toUpperCase()), "sgn" !== n[0] && 2 === n[2].length && (n[2] = n[2].toUpperCase()), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = q(n[1].toLowerCase())), t.indexOf(n[2].toLowerCase()) > -1 && (n[2] = q(n[2].toLowerCase()))), n.join("-") + })) : 2 === n.length ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = W(n[1].toLowerCase()))) : 3 === n.length && (n[0] = n[0].toLowerCase(), 2 === n[1].length && (n[1] = n[1].toUpperCase()), "sgn" !== n[0] && 2 === n[2].length && (n[2] = n[2].toUpperCase()), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = W(n[1].toLowerCase())), t.indexOf(n[2].toLowerCase()) > -1 && (n[2] = W(n[2].toLowerCase()))), n.join("-") } return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e } @@ -12320,7 +12327,7 @@ }, s.backendConnector = new ue(i(this.modules.backend), s.resourceStore, s, this.options), s.backendConnector.on("*", (function(t) { for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++) r[i - 1] = arguments[i]; e.emit.apply(e, [t].concat(r)) - })), this.modules.languageDetector && (s.languageDetector = i(this.modules.languageDetector), s.languageDetector.init && s.languageDetector.init(s, this.options.detection, this.options)), this.modules.i18nFormat && (s.i18nFormat = i(this.modules.i18nFormat), s.i18nFormat.init && s.i18nFormat.init(this)), this.translator = new $(this.services, this.options), this.translator.on("*", (function(t) { + })), this.modules.languageDetector && (s.languageDetector = i(this.modules.languageDetector), s.languageDetector.init && s.languageDetector.init(s, this.options.detection, this.options)), this.modules.i18nFormat && (s.i18nFormat = i(this.modules.i18nFormat), s.i18nFormat.init && s.i18nFormat.init(this)), this.translator = new q(this.services, this.options), this.translator.on("*", (function(t) { for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++) r[i - 1] = arguments[i]; e.emit.apply(e, [t].concat(r)) })), this.modules.external.forEach((function(t) { @@ -12540,7 +12547,7 @@ a[t] = e[t] })), a.services = fe({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) - }, a.translator = new $(a.services, a.options), a.translator.on("*", (function(e) { + }, a.translator = new q(a.services, a.options), a.translator.on("*", (function(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; a.emit.apply(a, [e].concat(n)) })), a.init(i, r), a.translator.options = a.options, a.translator.backendConnector.services.utils = { @@ -12618,9 +12625,9 @@ return i } var Ee = n(1479), - Ie = n.t(Ee, 2), - Oe = n(7399), - Ce = n.n(Oe), + Oe = n.t(Ee, 2), + Ie = n(7399), + Ce = n.n(Ie), Ae = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g; function Pe(e) { @@ -12713,9 +12720,9 @@ }), "") } }; - const Me = Ne; + const je = Ne; - function je() { + function Me() { if (console && console.warn) { for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r]; "string" === typeof n[0] && (n[0] = "react-i18next:: ".concat(n[0])), (e = console).warn.apply(e, n) @@ -12725,7 +12732,7 @@ function ze() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - "string" === typeof t[0] && Fe[t[0]] || ("string" === typeof t[0] && (Fe[t[0]] = new Date), je.apply(void 0, t)) + "string" === typeof t[0] && Fe[t[0]] || ("string" === typeof t[0] && (Fe[t[0]] = new Date), Me.apply(void 0, t)) } function Ve(e, t, n) { @@ -12765,7 +12772,7 @@ }) : Ue(e, t, n) } var Ge = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, - We = { + $e = { "&": "&", "&": "&", "<": "<", @@ -12787,11 +12794,11 @@ "/": "/", "/": "/" }, - $e = function(e) { - return We[e] + qe = function(e) { + return $e[e] }; - function qe(e, t) { + function We(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -12805,9 +12812,9 @@ function He(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; - t % 2 ? qe(Object(n), !0).forEach((function(t) { + t % 2 ? We(Object(n), !0).forEach((function(t) { we(e, t, n[t]) - })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qe(Object(n)).forEach((function(t) { + })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : We(Object(n)).forEach((function(t) { Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) })) } @@ -12822,7 +12829,7 @@ transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"], useSuspense: !0, unescape: function(e) { - return e.replace(Ge, $e) + return e.replace(Ge, qe) } }; @@ -12892,7 +12899,7 @@ var l = at(s, t); n += "<".concat(r, ">").concat(l, "") } else n += "<".concat(r, ">") - } else if (null === e) je("Trans: the passed in value is invalid - seems you passed in a null child."); + } else if (null === e) Me("Trans: the passed in value is invalid - seems you passed in a null child."); else if ("object" === xe(e)) { var c = e.format, u = Se(e, Xe), @@ -12900,8 +12907,8 @@ if (1 === d.length) { var p = c ? "".concat(d[0], ", ").concat(c) : d[0]; n += "{{".concat(p, "}}") - } else je("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.", e) - } else je("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.", e) + } else Me("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.", e) + } else Me("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.", e) })), n } @@ -12916,7 +12923,7 @@ "string" !== typeof t && (nt(t) ? e(rt(t)) : "object" !== xe(t) || (0, Ee.isValidElement)(t) || Object.assign(l, t)) })) }(e); - var c = Me.parse("<0>".concat(t, "")), + var c = je.parse("<0>".concat(t, "")), u = tt(tt({}, l), i); function d(e, t, n) { @@ -12985,13 +12992,13 @@ key: f }))); else { - var I = i.children[0] ? m : null; - I && t.push(I) + var O = i.children[0] ? m : null; + O && t.push(O) } } else if ("text" === i.type) { - var O = r.transWrapTextNodes, + var I = r.transWrapTextNodes, C = a ? r.unescape(n.services.interpolator.interpolate(i.content, u, n.language)) : n.services.interpolator.interpolate(i.content, u, n.language); - O ? t.push((0, Ee.createElement)(O, { + I ? t.push((0, Ee.createElement)(I, { key: "".concat(i.name, "-").concat(f) }, C)) : t.push(C) } @@ -13045,8 +13052,8 @@ ns: _ }), E = ot(u || t, k ? v(k, S) : b, g, y, S, f), - I = void 0 !== r ? r : y.defaultTransParent; - return I ? (0, Ee.createElement)(I, m, E) : E + O = void 0 !== r ? r : y.defaultTransParent; + return O ? (0, Ee.createElement)(O, m, E) : E } function lt(e, t) { @@ -13305,7 +13312,7 @@ returnNull: !1 }); const xt = _e, - kt = "8.20.0", + kt = "8.34.0", wt = globalThis; function St(e, t, n) { @@ -13316,11 +13323,11 @@ } const Et = "production"; - function It() { - return Ot(wt), wt + function Ot() { + return It(wt), wt } - function Ot(e) { + function It(e) { const t = e.__SENTRY__ = e.__SENTRY__ || {}; return t.version = t.version || kt, t[kt] = t[kt] || {} } @@ -13331,6 +13338,7 @@ case "[object Error]": case "[object Exception]": case "[object DOMException]": + case "[object WebAssembly.Exception]": return !0; default: return zt(e, Error) @@ -13361,11 +13369,11 @@ return null === e || Lt(e) || "object" !== typeof e && "function" !== typeof e } - function Mt(e) { + function jt(e) { return Pt(e, "Object") } - function jt(e) { + function Mt(e) { return "undefined" !== typeof Event && zt(e, Event) } @@ -13434,39 +13442,17 @@ } return r.join("") } + const $t = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, + qt = ["debug", "info", "warn", "error", "log", "assert", "trace"], + Wt = {}; - function Wt() { - try { - return Ut.document.location.href - } catch (ip) { - return "" - } - } - - function $t(e) { - if (!Ut.HTMLElement) return null; - let t = e; - for (let n = 0; n < 5; n++) { - if (!t) return null; - if (t instanceof HTMLElement) { - if (t.dataset.sentryComponent) return t.dataset.sentryComponent; - if (t.dataset.sentryElement) return t.dataset.sentryElement - } - t = t.parentNode - } - return null - } - const qt = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, - Ht = ["debug", "info", "warn", "error", "log", "assert", "trace"], - Kt = {}; - - function Yt(e) { + function Ht(e) { if (!("console" in wt)) return e(); const t = wt.console, n = {}, - r = Object.keys(Kt); + r = Object.keys(Wt); r.forEach((e => { - const r = Kt[e]; + const r = Wt[e]; n[e] = t[e], t[e] = r })); try { @@ -13477,7 +13463,7 @@ })) } } - const Qt = function() { + const Kt = St("logger", (function() { let e = !1; const t = { enable: () => { @@ -13488,22 +13474,22 @@ }, isEnabled: () => e }; - return qt ? Ht.forEach((n => { + return $t ? qt.forEach((n => { t[n] = (...t) => { - e && Yt((() => { + e && Ht((() => { wt.console[n](`Sentry Logger [${n}]:`, ...t) })) } - })) : Ht.forEach((e => { + })) : qt.forEach((e => { t[e] = () => {} })), t - }(); + })); - function Zt(e, t = 0) { + function Yt(e, t = 0) { return "string" !== typeof e || 0 === t || e.length <= t ? e : `${e.slice(0,t)}...` } - function Xt(e, t) { + function Qt(e, t) { if (!Array.isArray(e)) return ""; const n = []; for (let i = 0; i < e.length; i++) { @@ -13517,22 +13503,22 @@ return n.join(t) } - function Jt(e, t, n = !1) { + function Zt(e, t, n = !1) { return !!Dt(e) && (Pt(t, "RegExp") ? t.test(e) : !!Dt(t) && (n ? e === t : e.includes(t))) } - function en(e, t = [], n = !1) { - return t.some((t => Jt(e, t, n))) + function Xt(e, t = [], n = !1) { + return t.some((t => Zt(e, t, n))) } - function tn(e, t, n) { + function Jt(e, t, n) { if (!(t in e)) return; const r = e[t], i = n(r); - "function" === typeof i && rn(i, r), e[t] = i + "function" === typeof i && tn(i, r), e[t] = i } - function nn(e, t, n) { + function en(e, t, n) { try { Object.defineProperty(e, t, { value: n, @@ -13540,41 +13526,41 @@ configurable: !0 }) } catch (r) { - qt && Qt.log(`Failed to add non-enumerable property "${t}" to object`, e) + $t && Kt.log(`Failed to add non-enumerable property "${t}" to object`, e) } } - function rn(e, t) { + function tn(e, t) { try { const n = t.prototype || {}; - e.prototype = t.prototype = n, nn(e, "__sentry_original__", t) + e.prototype = t.prototype = n, en(e, "__sentry_original__", t) } catch (n) {} } - function an(e) { + function nn(e) { return e.__sentry_original__ } - function on(e) { + function rn(e) { if (At(e)) return { message: e.message, name: e.name, stack: e.stack, - ...ln(e) + ...on(e) }; - if (jt(e)) { + if (Mt(e)) { const t = { type: e.type, - target: sn(e.target), - currentTarget: sn(e.currentTarget), - ...ln(e) + target: an(e.target), + currentTarget: an(e.currentTarget), + ...on(e) }; return "undefined" !== typeof CustomEvent && zt(e, CustomEvent) && (t.detail = e.detail), t } return e } - function sn(e) { + function an(e) { try { return t = e, "undefined" !== typeof Element && zt(t, Element) ? Bt(e) : Object.prototype.toString.call(e) } catch (n) { @@ -13583,7 +13569,7 @@ var t } - function ln(e) { + function on(e) { if ("object" === typeof e && null !== e) { const t = {}; for (const n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); @@ -13592,13 +13578,13 @@ return {} } - function cn(e) { - return un(e, new Map) + function sn(e) { + return ln(e, new Map) } - function un(e, t) { + function ln(e, t) { if (function(e) { - if (!Mt(e)) return !1; + if (!jt(e)) return !1; try { const t = Object.getPrototypeOf(e).constructor.name; return !t || "Object" === t @@ -13610,7 +13596,7 @@ if (void 0 !== n) return n; const r = {}; t.set(e, r); - for (const i of Object.keys(e)) "undefined" !== typeof e[i] && (r[i] = un(e[i], t)); + for (const i of Object.getOwnPropertyNames(e)) "undefined" !== typeof e[i] && (r[i] = ln(e[i], t)); return r } if (Array.isArray(e)) { @@ -13618,13 +13604,13 @@ if (void 0 !== n) return n; const r = []; return t.set(e, r), e.forEach((e => { - r.push(un(e, t)) + r.push(ln(e, t)) })), r } return e } - function dn() { + function cn() { const e = wt, t = e.crypto || e.msCrypto; let n = () => 16 * Math.random(); @@ -13634,33 +13620,33 @@ const e = new Uint8Array(1); return t.getRandomValues(e), e[0] }) - } catch (No) {} + } catch (eo) {} return ([1e7] + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, (e => (e ^ (15 & n()) >> e / 4).toString(16))) } - function pn(e) { + function un(e) { return e.exception && e.exception.values ? e.exception.values[0] : void 0 } - function hn(e) { + function dn(e) { const { message: t, event_id: n } = e; if (t) return t; - const r = pn(e); + const r = un(e); return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "" : n || "" } - function fn(e, t, n) { + function pn(e, t, n) { const r = e.exception = e.exception || {}, i = r.values = r.values || [], a = i[0] = i[0] || {}; a.value || (a.value = t || ""), a.type || (a.type = n || "Error") } - function mn(e, t) { - const n = pn(e); + function hn(e, t) { + const n = un(e); if (!n) return; const r = n.mechanism; if (n.mechanism = { @@ -13677,43 +13663,43 @@ } } - function gn(e) { + function fn(e) { if (e && e.__sentry_captured__) return !0; try { - nn(e, "__sentry_captured__", !0) + en(e, "__sentry_captured__", !0) } catch (t) {} return !1 } - function vn(e) { + function mn(e) { return Array.isArray(e) ? e : [e] } - function yn() { + function gn() { return { - traceId: dn(), - spanId: dn().substring(16) + traceId: cn(), + spanId: cn().substring(16) } } - function _n() { + function vn() { return Date.now() / 1e3 } - const bn = function() { + const yn = function() { const { performance: e } = wt; - if (!e || !e.now) return _n; + if (!e || !e.now) return vn; const t = Date.now() - e.now(), n = void 0 == e.timeOrigin ? t : e.timeOrigin; return () => (n + e.now()) / 1e3 }(); - let xn; - const kn = (() => { + let _n; + (() => { const { performance: e } = wt; - if (!e || !e.now) return void(xn = "none"); + if (!e || !e.now) return void(_n = "none"); const t = 36e5, n = e.now(), r = Date.now(), @@ -13721,13 +13707,13 @@ a = i < t, o = e.timing && e.timing.navigationStart, s = "number" === typeof o ? Math.abs(o + n - r) : t; - return a || s < t ? i <= s ? (xn = "timeOrigin", e.timeOrigin) : (xn = "navigationStart", o) : (xn = "dateNow", r) + a || s < t ? i <= s ? (_n = "timeOrigin", e.timeOrigin) : _n = "navigationStart" : _n = "dateNow" })(); - function wn(e) { - const t = bn(), + function bn(e) { + const t = yn(), n = { - sid: dn(), + sid: cn(), init: !0, timestamp: t, started: t, @@ -13736,7 +13722,7 @@ errors: 0, ignoreDuration: !1, toJSON: () => function(e) { - return cn({ + return sn({ sid: `${e.sid}`, init: e.init, started: new Date(1e3 * e.started).toISOString(), @@ -13755,11 +13741,11 @@ }) }(n) }; - return e && Sn(n, e), n + return e && xn(n, e), n } - function Sn(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 || bn(), t.abnormal_mechanism && (e.abnormal_mechanism = t.abnormal_mechanism), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = 32 === t.sid.length ? t.sid : dn()), 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 xn(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 || yn(), t.abnormal_mechanism && (e.abnormal_mechanism = t.abnormal_mechanism), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = 32 === t.sid.length ? t.sid : cn()), 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 { const t = e.timestamp - e.started; @@ -13767,21 +13753,21 @@ } 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) } - const En = "_sentrySpan"; + const kn = "_sentrySpan"; - function In(e, t) { - t ? nn(e, En, t) : delete e[En] + function wn(e, t) { + t ? en(e, kn, t) : delete e[kn] } - function On(e) { - return e[En] + function Sn(e) { + return e[kn] } - class Cn { + class En { constructor() { - this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = yn() + this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = gn() } clone() { - const e = new Cn; + const e = new En; return e._breadcrumbs = [...this._breadcrumbs], e._tags = { ...this._tags }, e._extra = { @@ -13792,7 +13778,7 @@ ...this._sdkProcessingMetadata }, e._propagationContext = { ...this._propagationContext - }, e._client = this._client, e._lastEventId = this._lastEventId, In(e, On(this)), e + }, e._client = this._client, e._lastEventId = this._lastEventId, wn(e, Sn(this)), e } setClient(e) { this._client = e @@ -13818,7 +13804,7 @@ id: void 0, ip_address: void 0, username: void 0 - }, this._session && Sn(this._session, { + }, this._session && xn(this._session, { user: e }), this._notifyScopeListeners(), this } @@ -13876,7 +13862,7 @@ update(e) { if (!e) return this; const t = "function" === typeof e ? e(this) : e, - [n, r] = t instanceof An ? [t.getScopeData(), t.getRequestSession()] : Mt(t) ? [e, e.requestSession] : [], + [n, r] = t instanceof On ? [t.getScopeData(), t.getRequestSession()] : jt(t) ? [e, e.requestSession] : [], { tags: i, extra: a, @@ -13898,13 +13884,13 @@ }, o && Object.keys(o).length && (this._user = o), l && (this._level = l), c.length && (this._fingerprint = c), u && (this._propagationContext = u), r && (this._requestSession = r), this } clear() { - return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._session = void 0, In(this, void 0), this._attachments = [], this._propagationContext = yn(), this._notifyScopeListeners(), this + return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._session = void 0, wn(this, void 0), this._attachments = [], this._propagationContext = gn(), this._notifyScopeListeners(), this } addBreadcrumb(e, t) { const n = "number" === typeof t ? t : 100; if (n <= 0) return this; const r = { - timestamp: _n(), + timestamp: vn(), ...e }, i = this._breadcrumbs; @@ -13936,7 +13922,7 @@ propagationContext: this._propagationContext, sdkProcessingMetadata: this._sdkProcessingMetadata, transactionName: this._transactionName, - span: On(this) + span: Sn(this) } } setSDKProcessingMetadata(e) { @@ -13952,8 +13938,8 @@ return this._propagationContext } captureException(e, t) { - const n = t && t.event_id ? t.event_id : dn(); - if (!this._client) return Qt.warn("No client configured on scope - will not capture exception!"), n; + const n = t && t.event_id ? t.event_id : cn(); + if (!this._client) return Kt.warn("No client configured on scope - will not capture exception!"), n; const r = new Error("Sentry syntheticException"); return this._client.captureException(e, { originalException: e, @@ -13963,8 +13949,8 @@ }, this), n } captureMessage(e, t, n) { - const r = n && n.event_id ? n.event_id : dn(); - if (!this._client) return Qt.warn("No client configured on scope - will not capture message!"), r; + const r = n && n.event_id ? n.event_id : cn(); + if (!this._client) return Kt.warn("No client configured on scope - will not capture message!"), r; const i = new Error(e); return this._client.captureMessage(e, t, { originalException: e, @@ -13974,11 +13960,11 @@ }, this), r } captureEvent(e, t) { - const n = t && t.event_id ? t.event_id : dn(); + const n = t && t.event_id ? t.event_id : cn(); return this._client ? (this._client.captureEvent(e, { ...t, event_id: n - }, this), n) : (Qt.warn("No client configured on scope - will not capture event!"), n) + }, this), n) : (Kt.warn("No client configured on scope - will not capture event!"), n) } _notifyScopeListeners() { this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach((e => { @@ -13986,11 +13972,11 @@ })), this._notifyingListeners = !1) } } - const An = Cn; - class Pn { + const On = En; + class In { constructor(e, t) { let n, r; - n = e || new An, r = t || new An, this._stack = [{ + n = e || new On, r = t || new On, this._stack = [{ scope: n }], this._isolationScope = r } @@ -14030,46 +14016,46 @@ } } - function Tn() { - const e = Ot(It()); - return e.stack = e.stack || new Pn(St("defaultCurrentScope", (() => new An)), St("defaultIsolationScope", (() => new An))) + function Cn() { + const e = It(Ot()); + return e.stack = e.stack || new In(St("defaultCurrentScope", (() => new On)), St("defaultIsolationScope", (() => new On))) } - function Rn(e) { - return Tn().withScope(e) + function An(e) { + return Cn().withScope(e) } - function Dn(e, t) { - const n = Tn(); + function Pn(e, t) { + const n = Cn(); return n.withScope((() => (n.getStackTop().scope = e, t(e)))) } - function Ln(e) { - return Tn().withScope((() => e(Tn().getIsolationScope()))) + function Tn(e) { + return Cn().withScope((() => e(Cn().getIsolationScope()))) } - function Nn(e) { - const t = Ot(e); + function Rn(e) { + const t = It(e); return t.acs ? t.acs : { - withIsolationScope: Ln, - withScope: Rn, - withSetScope: Dn, - withSetIsolationScope: (e, t) => Ln(t), - getCurrentScope: () => Tn().getScope(), - getIsolationScope: () => Tn().getIsolationScope() + withIsolationScope: Tn, + withScope: An, + withSetScope: Pn, + withSetIsolationScope: (e, t) => Tn(t), + getCurrentScope: () => Cn().getScope(), + getIsolationScope: () => Cn().getIsolationScope() } } - function Mn() { - return Nn(It()).getCurrentScope() + function Dn() { + return Rn(Ot()).getCurrentScope() } - function jn() { - return Nn(It()).getIsolationScope() + function Ln() { + return Rn(Ot()).getIsolationScope() } - function Fn(...e) { - const t = Nn(It()); + function Nn(...e) { + const t = Rn(Ot()); if (2 === e.length) { const [n, r] = e; return n ? t.withSetScope(n, r) : t.withScope(r) @@ -14077,14 +14063,14 @@ return t.withScope(e[0]) } - function zn() { - return Mn().getClient() + function jn() { + return Dn().getClient() } - const Vn = "?", - Un = /\(error: (.*)\)/, - Bn = /captureMessage|captureException/; + const Mn = "?", + Fn = /\(error: (.*)\)/, + zn = /captureMessage|captureException/; - function Gn(...e) { + function Vn(...e) { const t = e.sort(((e, t) => e[0] - t[0])).map((e => e[1])); return (e, n = 0, r = 0) => { const i = [], @@ -14092,7 +14078,7 @@ for (let o = n; o < a.length; o++) { const e = a[o]; if (e.length > 1024) continue; - const n = Un.test(e) ? e.replace(Un, "$1") : e; + const n = Fn.test(e) ? e.replace(Fn, "$1") : e; if (!n.match(/\S*Error: /)) { for (const e of t) { const t = e(n); @@ -14104,34 +14090,34 @@ if (i.length >= 50 + r) break } } - return Wn(i.slice(r)) + return function(e) { + if (!e.length) return []; + const t = Array.from(e); + /sentryWrapped/.test(Un(t).function || "") && t.pop(); + t.reverse(), zn.test(Un(t).function || "") && (t.pop(), zn.test(Un(t).function || "") && t.pop()); + return t.slice(0, 50).map((e => ({ + ...e, + filename: e.filename || Un(t).filename, + function: e.function || Mn + }))) + }(i.slice(r)) } } - function Wn(e) { - if (!e.length) return []; - const t = Array.from(e); - return /sentryWrapped/.test($n(t).function || "") && t.pop(), t.reverse(), Bn.test($n(t).function || "") && (t.pop(), Bn.test($n(t).function || "") && t.pop()), t.slice(0, 50).map((e => ({ - ...e, - filename: e.filename || $n(t).filename, - function: e.function || Vn - }))) + function Un(e) { + return e[e.length - 1] || {} + } + const Bn = ""; + + function Gn(e) { + try { + return e && "function" === typeof e && e.name || Bn + } catch (t) { + return Bn + } } function $n(e) { - return e[e.length - 1] || {} - } - const qn = ""; - - function Hn(e) { - try { - return e && "function" === typeof e && e.name || qn - } catch (t) { - return qn - } - } - - function Kn(e) { const t = e.exception; if (t) { const e = []; @@ -14145,9 +14131,9 @@ } } - function Yn(e, t = 100, n = 1 / 0) { + function qn(e, t = 100, n = 1 / 0) { try { - return Zn("", e, t, n) + return Hn("", e, t, n) } catch (r) { return { ERROR: `**non-serializable** (${r})` @@ -14155,16 +14141,16 @@ } } - function Qn(e, t = 3, n = 102400) { - const r = Yn(e, t); + function Wn(e, t = 3, n = 102400) { + const r = qn(e, t); return i = r, function(e) { return ~-encodeURI(e).split(/%..|./).length - }(JSON.stringify(i)) > n ? Qn(e, t - 1, n) : r; + }(JSON.stringify(i)) > n ? Wn(e, t - 1, n) : r; var i } - function Zn(e, t, n = 1 / 0, r = 1 / 0, i = function() { + function Hn(e, t, n = 1 / 0, r = 1 / 0, i = function() { const e = "function" === typeof WeakSet, t = e ? new WeakSet : []; return [function(n) { @@ -14183,7 +14169,7 @@ }] }()) { const [a, o] = i; - if (null == t || ["number", "boolean", "string"].includes(typeof t) && !Number.isNaN(t)) return t; + if (null == t || ["boolean", "string"].includes(typeof t) || "number" === typeof t && Number.isFinite(t)) return t; const s = function(e, t) { try { if ("domain" === e && t && "object" === typeof t && t._events) return "[Domain]"; @@ -14192,9 +14178,9 @@ if ("undefined" !== typeof window && t === window) return "[Window]"; if ("undefined" !== typeof document && t === document) return "[Document]"; if (Vt(t)) return "[VueViewModel]"; - if (Mt(n = t) && "nativeEvent" in n && "preventDefault" in n && "stopPropagation" in n) return "[SyntheticEvent]"; - if ("number" === typeof t && t !== t) return "[NaN]"; - if ("function" === typeof t) return `[Function: ${Hn(t)}]`; + if (jt(n = t) && "nativeEvent" in n && "preventDefault" in n && "stopPropagation" in n) return "[SyntheticEvent]"; + if ("number" === typeof t && !Number.isFinite(t)) return `[${t}]`; + if ("function" === typeof t) return `[Function: ${Gn(t)}]`; if ("symbol" === typeof t) return `[${String(t)}]`; if ("bigint" === typeof t) return `[BigInt: ${String(t)}]`; const r = function(e) { @@ -14214,11 +14200,11 @@ if (a(t)) return "[Circular ~]"; const c = t; if (c && "function" === typeof c.toJSON) try { - return Zn("", c.toJSON(), l - 1, r, i) + return Hn("", c.toJSON(), l - 1, r, i) } catch (h) {} const u = Array.isArray(t) ? [] : {}; let d = 0; - const p = on(t); + const p = rn(t); for (const f in p) { if (!Object.prototype.hasOwnProperty.call(p, f)) continue; if (d >= r) { @@ -14226,30 +14212,30 @@ break } const e = p[f]; - u[f] = Zn(f, e, l - 1, r, i), d++ + u[f] = Hn(f, e, l - 1, r, i), d++ } return o(t), u } - var Xn; + var Kn; - function Jn(e) { - return new tr((t => { + function Yn(e) { + return new Zn((t => { t(e) })) } - function er(e) { - return new tr(((t, n) => { + function Qn(e) { + return new Zn(((t, n) => { n(e) })) }! function(e) { e[e.PENDING = 0] = "PENDING"; e[e.RESOLVED = 1] = "RESOLVED"; e[e.REJECTED = 2] = "REJECTED" - }(Xn || (Xn = {})); - class tr { + }(Kn || (Kn = {})); + class Zn { constructor(e) { - tr.prototype.__init.call(this), tr.prototype.__init2.call(this), tr.prototype.__init3.call(this), tr.prototype.__init4.call(this), this._state = Xn.PENDING, this._handlers = []; + Zn.prototype.__init.call(this), Zn.prototype.__init2.call(this), Zn.prototype.__init3.call(this), Zn.prototype.__init4.call(this), this._state = Kn.PENDING, this._handlers = []; try { e(this._resolve, this._reject) } catch (t) { @@ -14257,7 +14243,7 @@ } } then(e, t) { - return new tr(((n, r) => { + return new Zn(((n, r) => { this._handlers.push([!1, t => { if (e) try { n(e(t)) @@ -14275,7 +14261,7 @@ } catch (e) { return this.then((e => e), e) } finally(e) { - return new tr(((t, n) => { + return new Zn(((t, n) => { let r, i; return this.then((t => { i = !1, r = t, e && e() @@ -14288,258 +14274,105 @@ } __init() { this._resolve = e => { - this._setResult(Xn.RESOLVED, e) + this._setResult(Kn.RESOLVED, e) } } __init2() { this._reject = e => { - this._setResult(Xn.REJECTED, e) + this._setResult(Kn.REJECTED, e) } } __init3() { this._setResult = (e, t) => { - this._state === Xn.PENDING && (Ft(t) ? t.then(this._resolve, this._reject) : (this._state = e, this._value = t, this._executeHandlers())) + this._state === Kn.PENDING && (Ft(t) ? t.then(this._resolve, this._reject) : (this._state = e, this._value = t, this._executeHandlers())) } } __init4() { this._executeHandlers = () => { - if (this._state === Xn.PENDING) return; + if (this._state === Kn.PENDING) return; const e = this._handlers.slice(); this._handlers = [], e.forEach((e => { - e[0] || (this._state === Xn.RESOLVED && e[1](this._value), this._state === Xn.REJECTED && e[2](this._value), e[0] = !0) + e[0] || (this._state === Kn.RESOLVED && e[1](this._value), this._state === Kn.REJECTED && e[2](this._value), e[0] = !0) })) } } } - const nr = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; + const Xn = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; - function rr(e, t, n, r = 0) { - return new tr(((i, a) => { + function Jn(e, t, n, r = 0) { + return new Zn(((i, a) => { const o = e[r]; if (null === t || "function" !== typeof o) i(t); else { const s = o({ ...t }, n); - nr && o.id && null === s && Qt.log(`Event processor "${o.id}" dropped event`), Ft(s) ? s.then((t => rr(e, t, n, r + 1).then(i))).then(null, a) : rr(e, s, n, r + 1).then(i).then(null, a) + Xn && o.id && null === s && Kt.log(`Event processor "${o.id}" dropped event`), Ft(s) ? s.then((t => Jn(e, t, n, r + 1).then(i))).then(null, a) : Jn(e, s, n, r + 1).then(i).then(null, a) } })) } - const ir = "baggage", - ar = "sentry-", - or = /^sentry-/; + const er = "sentry-", + tr = /^sentry-/; - function sr(e) { + function nr(e) { const t = function(e) { if (!e || !Dt(e) && !Array.isArray(e)) return; if (Array.isArray(e)) return e.reduce(((e, t) => { - const n = cr(t); + const n = rr(t); return Object.entries(n).forEach((([t, n]) => { e[t] = n })), e }), {}); - return cr(e) + return rr(e) }(e); if (!t) return; const n = Object.entries(t).reduce(((e, [t, n]) => { - if (t.match(or)) { - e[t.slice(ar.length)] = n + if (t.match(tr)) { + e[t.slice(er.length)] = n } return e }), {}); return Object.keys(n).length > 0 ? n : void 0 } - function lr(e) { - if (!e) return; - return function(e) { - if (0 === Object.keys(e).length) return; - return Object.entries(e).reduce(((e, [t, n], r) => { - const i = `${encodeURIComponent(t)}=${encodeURIComponent(n)}`, - a = 0 === r ? i : `${e},${i}`; - return a.length > 8192 ? (qt && Qt.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`), e) : a - }), "") - }(Object.entries(e).reduce(((e, [t, n]) => (n && (e[`${ar}${t}`] = n), e)), {})) - } - - function cr(e) { + function rr(e) { return e.split(",").map((e => e.split("=").map((e => decodeURIComponent(e.trim()))))).reduce(((e, [t, n]) => (t && n && (e[t] = n), e)), {}) } - const ur = "sentry.source", - dr = "sentry.sample_rate", - pr = "sentry.op", - hr = "sentry.origin", - fr = "sentry.idle_span_finish_reason", - mr = "sentry.measurement_unit", - gr = "sentry.measurement_value", - vr = "sentry.exclusive_time", - yr = new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"); + const ir = "_sentryMetrics"; - function _r(e, t) { - const n = function(e) { - if (!e) return; - const t = e.match(yr); - if (!t) return; - let n; - return "1" === t[3] ? n = !0 : "0" === t[3] && (n = !1), { - traceId: t[1], - parentSampled: n, - parentSpanId: t[2] - } - }(e), - r = sr(t), - { - traceId: i, - parentSpanId: a, - parentSampled: o - } = n || {}; - return n ? { - traceId: i || dn(), - parentSpanId: a || dn().substring(16), - spanId: dn().substring(16), - sampled: o, - dsc: r || {} - } : { - traceId: i || dn(), - spanId: dn().substring(16) - } - } - - function br(e = dn(), t = dn().substring(16), n) { - let r = ""; - return void 0 !== n && (r = n ? "-1" : "-0"), `${e}-${t}${r}` - } - const xr = "_sentryMetrics"; - - function kr(e) { - const t = e[xr]; + function ar(e) { + const t = e[ir]; if (!t) return; const n = {}; for (const [, [r, i]] of t) { - (n[r] || (n[r] = [])).push(cn(i)) + (n[r] || (n[r] = [])).push(sn(i)) } return n } - function wr(e, t) { - e.setAttribute("http.response.status_code", t); - const n = function(e) { - if (e < 400 && e >= 100) return { - code: 1 - }; - if (e >= 400 && e < 500) switch (e) { - case 401: - return { - code: 2, message: "unauthenticated" - }; - case 403: - return { - code: 2, message: "permission_denied" - }; - case 404: - return { - code: 2, message: "not_found" - }; - case 409: - return { - code: 2, message: "already_exists" - }; - case 413: - return { - code: 2, message: "failed_precondition" - }; - case 429: - return { - code: 2, message: "resource_exhausted" - }; - case 499: - return { - code: 2, message: "cancelled" - }; - default: - return { - code: 2, message: "invalid_argument" - } - } - if (e >= 500 && e < 600) switch (e) { - case 501: - return { - code: 2, message: "unimplemented" - }; - case 503: - return { - code: 2, message: "unavailable" - }; - case 504: - return { - code: 2, message: "deadline_exceeded" - }; - default: - return { - code: 2, message: "internal_error" - } - } - return { - code: 2, - message: "unknown_error" - } - }(t); - "unknown_error" !== n.message && e.setStatus(n) - } - - function Sr(e) { - const { - spanId: t, - traceId: n - } = e.spanContext(), { - data: r, - op: i, - parent_span_id: a, - status: o, - origin: s - } = Ar(e); - return cn({ - parent_span_id: a, - span_id: t, - trace_id: n, - data: r, - op: i, - status: o, - origin: s - }) - } - - function Er(e) { + function or(e) { const { spanId: t, traceId: n } = e.spanContext(), { parent_span_id: r - } = Ar(e); - return cn({ + } = cr(e); + return sn({ parent_span_id: r, span_id: t, trace_id: n }) } - function Ir(e) { - const { - traceId: t, - spanId: n - } = e.spanContext(); - return br(t, n, Pr(e)) + function sr(e) { + return "number" === typeof e ? lr(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? lr(e.getTime()) : yn() } - function Or(e) { - return "number" === typeof e ? Cr(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? Cr(e.getTime()) : bn() - } - - function Cr(e) { + function lr(e) { return e > 9999999999 ? e / 1e3 : e } - function Ar(e) { + function cr(e) { if (function(e) { return "function" === typeof e.getSpanJSON }(e)) return e.getSpanJSON(); @@ -14560,18 +14393,18 @@ parentSpanId: s, status: l } = e; - return cn({ + return sn({ span_id: t, trace_id: n, data: r, description: a, parent_span_id: s, - start_timestamp: Or(i), - timestamp: Or(o) || void 0, - status: Tr(l), - op: r[pr], - origin: r[hr], - _metrics_summary: kr(e) + start_timestamp: sr(i), + timestamp: sr(o) || void 0, + status: dr(l), + op: r["sentry.op"], + origin: r["sentry.origin"], + _metrics_summary: ar(e) }) } return { @@ -14583,55 +14416,29 @@ } } - function Pr(e) { + function ur(e) { const { traceFlags: t } = e.spanContext(); return 1 === t } - function Tr(e) { + function dr(e) { if (e && 0 !== e.code) return 1 === e.code ? "ok" : e.message || "unknown_error" } - const Rr = "_sentryChildSpans", - Dr = "_sentryRootSpan"; + const pr = "_sentryRootSpan"; - function Lr(e, t) { - const n = e[Dr] || e; - nn(t, Dr, n), e[Rr] ? e[Rr].add(t) : nn(e, Rr, new Set([t])) + function hr(e) { + return e[pr] || e } + const fr = "_frozenDsc"; - function Nr(e) { - const t = new Set; - return function e(n) { - if (!t.has(n) && Pr(n)) { - t.add(n); - const r = n[Rr] ? Array.from(n[Rr]) : []; - for (const t of r) e(t) - } - }(e), Array.from(t) - } - - function Mr(e) { - return e[Dr] || e - } - - function jr() { - const e = Nn(It()); - return e.getActiveSpan ? e.getActiveSpan() : On(Mn()) - } - const Fr = "_frozenDsc"; - - function zr(e, t) { - nn(e, Fr, t) - } - - function Vr(e, t) { + function mr(e, t) { const n = t.getOptions(), { publicKey: r } = t.getDsn() || {}, - i = cn({ + i = sn({ environment: n.environment || Et, release: n.release, public_key: r, @@ -14640,27 +14447,33 @@ return t.emit("createDsc", i), i } - function Ur(e) { - const t = zn(); + function gr(e) { + const t = jn(); if (!t) return {}; - const n = Vr(Ar(e).trace_id || "", t), - r = Mr(e), - i = r[Fr]; + const n = mr(cr(e).trace_id || "", t), + r = hr(e), + i = r[fr]; if (i) return i; const a = r.spanContext().traceState, o = a && a.get("sentry.dsc"), - s = o && sr(o); + s = o && nr(o); if (s) return s; - const l = Ar(r), + const l = cr(r), c = l.data || {}, - u = c[dr]; + u = c["sentry.sample_rate"]; null != u && (n.sample_rate = `${u}`); - const d = c[ur], + const d = c["sentry.source"], p = l.description; - return "url" !== d && p && (n.transaction = p), n.sampled = String(Pr(r)), t.emit("createDsc", n, r), n + return "url" !== d && p && (n.transaction = p), + function(e) { + if ("boolean" === typeof __SENTRY_TRACING__ && !__SENTRY_TRACING__) return !1; + const t = jn(), + n = e || t && t.getOptions(); + return !!n && (n.enableTracing || "tracesSampleRate" in n || "tracesSampler" in n) + }() && (n.sampled = String(ur(r))), t.emit("createDsc", n, r), n } - function Br(e, t) { + function vr(e, t) { const { fingerprint: n, span: r, @@ -14675,22 +14488,22 @@ contexts: a, level: o, transactionName: s - } = t, l = cn(n); + } = t, l = sn(n); l && Object.keys(l).length && (e.extra = { ...l, ...e.extra }); - const c = cn(r); + const c = sn(r); c && Object.keys(c).length && (e.tags = { ...c, ...e.tags }); - const u = cn(i); + const u = sn(i); u && Object.keys(u).length && (e.user = { ...u, ...e.user }); - const d = cn(a); + const d = sn(a); d && Object.keys(d).length && (e.contexts = { ...d, ...e.contexts @@ -14699,18 +14512,18 @@ s && "transaction" !== e.type && (e.transaction = s) }(e, t), r && function(e, t) { e.contexts = { - trace: Er(t), + trace: or(t), ...e.contexts }, e.sdkProcessingMetadata = { - dynamicSamplingContext: Ur(t), + dynamicSamplingContext: gr(t), ...e.sdkProcessingMetadata }; - const n = Mr(t), - r = Ar(n).description; + const n = hr(t), + r = cr(n).description; r && !e.transaction && "transaction" === e.type && (e.transaction = r) }(e, r), function(e, t) { - e.fingerprint = e.fingerprint ? vn(e.fingerprint) : [], t && (e.fingerprint = e.fingerprint.concat(t)); + e.fingerprint = e.fingerprint ? mn(e.fingerprint) : [], t && (e.fingerprint = e.fingerprint.concat(t)); e.fingerprint && !e.fingerprint.length && delete e.fingerprint }(e, n), function(e, t) { @@ -14725,7 +14538,7 @@ }(e, a) } - function Gr(e, t) { + function yr(e, t) { const { extra: n, tags: r, @@ -14741,13 +14554,13 @@ transactionName: h, span: f } = t; - Wr(e, "extra", n), Wr(e, "tags", r), Wr(e, "user", i), Wr(e, "contexts", a), Wr(e, "sdkProcessingMetadata", s), o && (e.level = o), h && (e.transactionName = h), f && (e.span = f), l.length && (e.breadcrumbs = [...e.breadcrumbs, ...l]), c.length && (e.fingerprint = [...e.fingerprint, ...c]), u.length && (e.eventProcessors = [...e.eventProcessors, ...u]), d.length && (e.attachments = [...e.attachments, ...d]), e.propagationContext = { + _r(e, "extra", n), _r(e, "tags", r), _r(e, "user", i), _r(e, "contexts", a), _r(e, "sdkProcessingMetadata", s), o && (e.level = o), h && (e.transactionName = h), f && (e.span = f), l.length && (e.breadcrumbs = [...e.breadcrumbs, ...l]), c.length && (e.fingerprint = [...e.fingerprint, ...c]), u.length && (e.eventProcessors = [...e.eventProcessors, ...u]), d.length && (e.attachments = [...e.attachments, ...d]), e.propagationContext = { ...e.propagationContext, ...p } } - function Wr(e, t, n) { + function _r(e, t, n) { if (n && Object.keys(n).length) { e[t] = { ...e[t] @@ -14756,14 +14569,14 @@ } } - function $r(e, t, n, r, i, a) { + function br(e, t, n, r, i, a) { const { normalizeDepth: o = 3, normalizeMaxBreadth: s = 1e3 } = e, l = { ...t, - event_id: t.event_id || n.event_id || dn(), - timestamp: t.timestamp || _n() + event_id: t.event_id || n.event_id || cn(), + timestamp: t.timestamp || vn() }, c = n.integrations || e.integrations.map((e => e.name)); ! function(e, t) { const { @@ -14775,11 +14588,11 @@ "environment" in e || (e.environment = "environment" in t ? n : Et); void 0 === e.release && void 0 !== r && (e.release = r); void 0 === e.dist && void 0 !== i && (e.dist = i); - e.message && (e.message = Zt(e.message, a)); + e.message && (e.message = Yt(e.message, a)); const o = e.exception && e.exception.values && e.exception.values[0]; - o && o.value && (o.value = Zt(o.value, a)); + o && o.value && (o.value = Yt(o.value, a)); const s = e.request; - s && s.url && (s.url = Zt(s.url, a)) + s && s.url && (s.url = Yt(s.url, a)) }(l, e), function(e, t) { t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t]) @@ -14787,8 +14600,8 @@ const n = wt._sentryDebugIds; if (!n) return; let r; - const i = qr.get(t); - i ? r = i : (r = new Map, qr.set(t, r)); + const i = xr.get(t); + i ? r = i : (r = new Map, xr.set(t, r)); const a = Object.entries(n).reduce(((e, [n, i]) => { let a; const o = r.get(n); @@ -14812,21 +14625,21 @@ }(l, e.stackParser); const u = function(e, t) { if (!t) return e; - const n = e ? e.clone() : new An; + const n = e ? e.clone() : new On; return n.update(t), n }(r, n.captureContext); - n.mechanism && mn(l, n.mechanism); + n.mechanism && hn(l, n.mechanism); const d = i ? i.getEventProcessors() : [], - p = St("globalScope", (() => new An)).getScopeData(); + p = St("globalScope", (() => new On)).getScopeData(); if (a) { - Gr(p, a.getScopeData()) + yr(p, a.getScopeData()) } if (u) { - Gr(p, u.getScopeData()) + yr(p, u.getScopeData()) } const h = [...n.attachments || [], ...p.attachments]; - h.length && (n.attachments = h), Br(l, p); - return rr([...d, ...p.eventProcessors], l, n).then((e => (e && function(e) { + h.length && (n.attachments = h), vr(l, p); + return Jn([...d, ...p.eventProcessors], l, n).then((e => (e && function(e) { const t = {}; try { e.exception.values.forEach((e => { @@ -14853,59 +14666,55 @@ breadcrumbs: e.breadcrumbs.map((e => ({ ...e, ...e.data && { - data: Yn(e.data, t, n) + data: qn(e.data, t, n) } }))) }, ...e.user && { - user: Yn(e.user, t, n) + user: qn(e.user, t, n) }, ...e.contexts && { - contexts: Yn(e.contexts, t, n) + contexts: qn(e.contexts, t, n) }, ...e.extra && { - extra: Yn(e.extra, t, n) + extra: qn(e.extra, t, n) } }; - e.contexts && e.contexts.trace && r.contexts && (r.contexts.trace = e.contexts.trace, e.contexts.trace.data && (r.contexts.trace.data = Yn(e.contexts.trace.data, t, n))); + e.contexts && e.contexts.trace && r.contexts && (r.contexts.trace = e.contexts.trace, e.contexts.trace.data && (r.contexts.trace.data = qn(e.contexts.trace.data, t, n))); e.spans && (r.spans = e.spans.map((e => ({ ...e, ...e.data && { - data: Yn(e.data, t, n) + data: qn(e.data, t, n) } })))); return r }(e, o, s) : e))) } - const qr = new WeakMap; + const xr = new WeakMap; - function Hr(e) { + function kr(e) { if (e) return function(e) { - return e instanceof An || "function" === typeof e + return e instanceof On || "function" === typeof e }(e) || function(e) { - return Object.keys(e).some((e => Kr.includes(e))) + return Object.keys(e).some((e => wr.includes(e))) }(e) ? { captureContext: e } : e } - const Kr = ["user", "level", "extra", "contexts", "tags", "fingerprint", "requestSession", "propagationContext"]; + const wr = ["user", "level", "extra", "contexts", "tags", "fingerprint", "requestSession", "propagationContext"]; - function Yr(e, t) { - return Mn().captureException(e, Hr(t)) + function Sr(e, t) { + return Dn().captureException(e, kr(t)) } - function Qr(e, t) { - return Mn().captureEvent(e, t) + function Er(e, t) { + return Dn().captureEvent(e, t) } - function Zr(e, t) { - jn().setContext(e, t) - } - - function Xr(e) { - const t = zn(), - n = jn(), - r = Mn(), + function Or(e) { + const t = jn(), + n = Ln(), + r = Dn(), { release: i, environment: a = Et @@ -14913,7 +14722,7 @@ { userAgent: o } = wt.navigator || {}, - s = wn({ + s = bn({ release: i, environment: a, user: r.getUser() || n.getUser(), @@ -14923,14 +14732,14 @@ ...e }), l = n.getSession(); - return l && "ok" === l.status && Sn(l, { + return l && "ok" === l.status && xn(l, { status: "exited" - }), Jr(), n.setSession(s), r.setSession(s), s + }), Ir(), n.setSession(s), r.setSession(s), s } - function Jr() { - const e = jn(), - t = Mn(), + function Ir() { + const e = Ln(), + t = Dn(), n = t.getSession() || e.getSession(); n && function(e, t) { let n = {}; @@ -14938,30 +14747,30 @@ status: t } : "ok" === e.status && (n = { status: "exited" - }), Sn(e, n) - }(n), ei(), e.setSession(), t.setSession() + }), xn(e, n) + }(n), Cr(), e.setSession(), t.setSession() } - function ei() { - const e = jn(), - t = Mn(), - n = zn(), + function Cr() { + const e = Ln(), + t = Dn(), + n = jn(), r = t.getSession() || e.getSession(); r && n && n.captureSession(r) } - function ti(e = !1) { - e ? Jr() : ei() + function Ar(e = !1) { + e ? Ir() : Cr() } - const ni = []; + const Pr = []; - function ri(e) { + function Tr(e) { const t = e.defaultIntegrations || [], n = e.integrations; let r; t.forEach((e => { e.isDefaultInstance = !0 - })), r = Array.isArray(n) ? [...t, ...n] : "function" === typeof n ? vn(n(t)) : t; + })), r = Array.isArray(n) ? [...t, ...n] : "function" === typeof n ? mn(n(t)) : t; const i = function(e) { const t = {}; return e.forEach((e => { @@ -14979,14 +14788,14 @@ return i } - function ii(e, t) { + function Rr(e, t) { for (const n of t) n && n.afterAllSetup && n.afterAllSetup(e) } - function ai(e, t, n) { - if (n[t.name]) nr && Qt.log(`Integration skipped because it was already installed: ${t.name}`); + function Dr(e, t, n) { + if (n[t.name]) Xn && Kt.log(`Integration skipped because it was already installed: ${t.name}`); else { - if (n[t.name] = t, -1 === ni.indexOf(t.name) && "function" === typeof t.setupOnce && (t.setupOnce(), ni.push(t.name)), t.setup && "function" === typeof t.setup && t.setup(e), "function" === typeof t.preprocessEvent) { + if (n[t.name] = t, -1 === Pr.indexOf(t.name) && "function" === typeof t.setupOnce && (t.setupOnce(), Pr.push(t.name)), t.setup && "function" === typeof t.setup && t.setup(e), "function" === typeof t.preprocessEvent) { const n = t.preprocessEvent.bind(t); e.on("preprocessEvent", ((t, r) => n(t, r, e))) } @@ -14997,11 +14806,11 @@ }); e.addEventProcessor(r) } - nr && Qt.log(`Integration installed: ${t.name}`) + Xn && Kt.log(`Integration installed: ${t.name}`) } } - const oi = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/, /^ResizeObserver loop completed with undelivered notifications.$/, /^Cannot redefine property: googletag$/, "undefined is not an object (evaluating 'a.L')", 'can\'t redefine non-configurable property "solana"', "vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)", "Can't find variable: _AutofillCallbackHandler"], - si = (e = {}) => ({ + const Lr = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/, /^ResizeObserver loop completed with undelivered notifications.$/, /^Cannot redefine property: googletag$/, "undefined is not an object (evaluating 'a.L')", 'can\'t redefine non-configurable property "solana"', "vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)", "Can't find variable: _AutofillCallbackHandler"], + Nr = (e = {}) => ({ name: "InboundFilters", processEvent(t, n, r) { const i = r.getOptions(), @@ -15009,7 +14818,7 @@ return { allowUrls: [...e.allowUrls || [], ...t.allowUrls || []], denyUrls: [...e.denyUrls || [], ...t.denyUrls || []], - ignoreErrors: [...e.ignoreErrors || [], ...t.ignoreErrors || [], ...e.disableErrorDefaults ? [] : oi], + ignoreErrors: [...e.ignoreErrors || [], ...t.ignoreErrors || [], ...e.disableErrorDefaults ? [] : Lr], ignoreTransactions: [...e.ignoreTransactions || [], ...t.ignoreTransactions || []], ignoreInternal: void 0 === e.ignoreInternal || e.ignoreInternal } @@ -15020,7 +14829,7 @@ return "SentryError" === e.exception.values[0].type } catch (t) {} return !1 - }(e)) return nr && Qt.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${hn(e)}`), !0; + }(e)) return Xn && Kt.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${dn(e)}`), !0; if (function(e, t) { if (e.type || !t || !t.length) return !1; return function(e) { @@ -15032,34 +14841,34 @@ } catch (r) {} n && n.value && (t.push(n.value), n.type && t.push(`${n.type}: ${n.value}`)); return t - }(e).some((e => en(e, t))) - }(e, t.ignoreErrors)) return nr && Qt.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${hn(e)}`), !0; + }(e).some((e => Xt(e, t))) + }(e, t.ignoreErrors)) return Xn && Kt.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${dn(e)}`), !0; if (function(e) { if (e.type) return !1; if (!e.exception || !e.exception.values || 0 === e.exception.values.length) return !1; return !e.message && !e.exception.values.some((e => e.stacktrace || e.type && "Error" !== e.type || e.value)) - }(e)) return nr && Qt.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${hn(e)}`), !0; + }(e)) return Xn && Kt.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${dn(e)}`), !0; if (function(e, t) { if ("transaction" !== e.type || !t || !t.length) return !1; const n = e.transaction; - return !!n && en(n, t) - }(e, t.ignoreTransactions)) return nr && Qt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${hn(e)}`), !0; + return !!n && Xt(n, t) + }(e, t.ignoreTransactions)) return Xn && Kt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${dn(e)}`), !0; if (function(e, t) { if (!t || !t.length) return !1; - const n = li(e); - return !!n && en(n, t) - }(e, t.denyUrls)) return nr && Qt.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${hn(e)}.\nUrl: ${li(e)}`), !0; + const n = jr(e); + return !!n && Xt(n, t) + }(e, t.denyUrls)) return Xn && Kt.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${dn(e)}.\nUrl: ${jr(e)}`), !0; if (! function(e, t) { if (!t || !t.length) return !0; - const n = li(e); - return !n || en(n, t) - }(e, t.allowUrls)) return nr && Qt.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${hn(e)}.\nUrl: ${li(e)}`), !0; + const n = jr(e); + return !n || Xt(n, t) + }(e, t.allowUrls)) return Xn && Kt.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${dn(e)}.\nUrl: ${jr(e)}`), !0; return !1 }(t, a) ? null : t } }); - function li(e) { + function jr(e) { try { let n; try { @@ -15072,29 +14881,29 @@ } return null }(n) : null - } catch (ip) { - return nr && Qt.error(`Cannot extract url for event ${hn(e)}`), null + } catch (_u) { + return Xn && Kt.error(`Cannot extract url for event ${dn(e)}`), null } } - let ci; - const ui = new WeakMap, - di = () => ({ + let Mr; + const Fr = new WeakMap, + zr = () => ({ name: "FunctionToString", setupOnce() { - ci = Function.prototype.toString; + Mr = Function.prototype.toString; try { Function.prototype.toString = function(...e) { - const t = an(this), - n = ui.has(zn()) && void 0 !== t ? t : this; - return ci.apply(n, e) + const t = nn(this), + n = Fr.has(jn()) && void 0 !== t ? t : this; + return Mr.apply(n, e) } } catch (e) {} }, setup(e) { - ui.set(e, !0) + Fr.set(e, !0) } }), - pi = () => { + Vr = () => { let e; return { name: "Dedupe", @@ -15109,30 +14918,30 @@ if (!n && !r) return !1; if (n && !r || !n && r) return !1; if (n !== r) return !1; - if (!fi(e, t)) return !1; - if (!hi(e, t)) return !1; + if (!Br(e, t)) return !1; + if (!Ur(e, t)) return !1; return !0 }(e, t)) return !0; if (function(e, t) { - const n = mi(t), - r = mi(e); + const n = Gr(t), + r = Gr(e); if (!n || !r) return !1; if (n.type !== r.type || n.value !== r.value) return !1; - if (!fi(e, t)) return !1; - if (!hi(e, t)) return !1; + if (!Br(e, t)) return !1; + if (!Ur(e, t)) return !1; return !0 }(e, t)) return !0; return !1 - }(t, e)) return nr && Qt.warn("Event dropped due to being a duplicate of previously captured event."), null + }(t, e)) return Xn && Kt.warn("Event dropped due to being a duplicate of previously captured event."), null } catch (n) {} return e = t } } }; - function hi(e, t) { - let n = Kn(e), - r = Kn(t); + function Ur(e, t) { + let n = $n(e), + r = $n(t); if (!n && !r) return !0; if (n && !r || !n && r) return !1; if (r.length !== n.length) return !1; @@ -15144,7 +14953,7 @@ return !0 } - function fi(e, t) { + function Br(e, t) { let n = e.fingerprint, r = t.fingerprint; if (!n && !r) return !0; @@ -15156,23 +14965,23 @@ } } - function mi(e) { + function Gr(e) { return e.exception && e.exception.values && e.exception.values[0] } - function gi(e, t) { - !0 === t.debug && (nr ? Qt.enable() : Yt((() => { + function $r(e, t) { + !0 === t.debug && (Xn ? Kt.enable() : Ht((() => { console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.") }))); - Mn().update(t.initialScope); + Dn().update(t.initialScope); const n = new e(t); return function(e) { - Mn().setClient(e) + Dn().setClient(e) }(n), n.init(), n } - const vi = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/; + const qr = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/; - function yi(e, t = !1) { + function Wr(e, t = !1) { const { host: n, path: r, @@ -15185,7 +14994,7 @@ return `${s}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${o}` } - function _i(e) { + function Hr(e) { return { protocol: e.protocol, publicKey: e.publicKey || "", @@ -15197,10 +15006,10 @@ } } - function bi(e) { + function Kr(e) { const t = "string" === typeof e ? function(e) { - const t = vi.exec(e); - if (!t) return void Yt((() => { + const t = qr.exec(e); + if (!t) return void Ht((() => { console.error(`Invalid Sentry Dsn: ${e}`) })); const [n, r, i = "", a = "", o = "", s = ""] = t.slice(1); @@ -15211,7 +15020,7 @@ const e = c.match(/^\d+/); e && (c = e[0]) } - return _i({ + return Hr({ host: a, pass: i, path: l, @@ -15220,27 +15029,27 @@ protocol: n, publicKey: r }) - }(e) : _i(e); + }(e) : Hr(e); if (t && function(e) { - if (!qt) return !0; + if (!$t) return !0; const { port: t, projectId: n, protocol: r } = e; - return !["protocol", "publicKey", "host", "projectId"].find((t => !e[t] && (Qt.error(`Invalid Sentry Dsn: ${t} missing`), !0))) && (n.match(/^\d+$/) ? function(e) { + return !["protocol", "publicKey", "host", "projectId"].find((t => !e[t] && (Kt.error(`Invalid Sentry Dsn: ${t} missing`), !0))) && (n.match(/^\d+$/) ? function(e) { return "http" === e || "https" === e - }(r) ? !t || !isNaN(parseInt(t, 10)) || (Qt.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : (Qt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (Qt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1)) + }(r) ? !t || !isNaN(parseInt(t, 10)) || (Kt.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : (Kt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (Kt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1)) }(t)) return t } - function xi(e) { + function Yr(e) { const t = e.protocol ? `${e.protocol}:` : "", n = e.port ? `:${e.port}` : ""; return `${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/` } - function ki(e, t) { + function Qr(e, t) { return n = { sentry_key: e.publicKey, sentry_version: "7", @@ -15251,13 +15060,13 @@ var n } - function wi(e, t, n) { - return t || `${function(e){return`${xi(e)}${e.projectId}/envelope/`}(e)}?${ki(e,n)}` + function Zr(e, t, n) { + return t || `${function(e){return`${Yr(e)}${e.projectId}/envelope/`}(e)}?${Qr(e,n)}` } - const Si = wt; + const Xr = wt; - function Ei() { - if (!("fetch" in Si)) return !1; + function Jr() { + if (!("fetch" in Xr)) return !1; try { return new Headers, new Request("http://www.example.com"), new Response, !0 } catch (e) { @@ -15265,55 +15074,55 @@ } } - function Ii(e) { + function ei(e) { return e && /^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString()) } - const Oi = {}, - Ci = {}; + const ti = {}, + ni = {}; - function Ai(e, t) { - Oi[e] = Oi[e] || [], Oi[e].push(t) + function ri(e, t) { + ti[e] = ti[e] || [], ti[e].push(t) } - function Pi(e, t) { - Ci[e] || (t(), Ci[e] = !0) + function ii(e, t) { + ni[e] || (t(), ni[e] = !0) } - function Ti(e, t) { - const n = e && Oi[e]; + function ai(e, t) { + const n = e && ti[e]; if (n) for (const i of n) try { i(t) } catch (r) { - qt && Qt.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Hn(i)}\nError:`, r) + $t && Kt.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Gn(i)}\nError:`, r) } } - const Ri = wt; - const Di = wt; - let Li; + const oi = wt; + const si = wt; + let li; - function Ni(e) { + function ci(e) { const t = "history"; - Ai(t, e), Pi(t, Mi) + ri(t, e), ii(t, ui) } - function Mi() { + function ui() { if (! function() { - const e = Ri.chrome, + const e = oi.chrome, t = e && e.app && e.app.runtime, - n = "history" in Ri && !!Ri.history.pushState && !!Ri.history.replaceState; + n = "history" in oi && !!oi.history.pushState && !!oi.history.replaceState; return !t && n }()) return; - const e = Di.onpopstate; + const e = si.onpopstate; function t(e) { return function(...t) { const n = t.length > 2 ? t[2] : void 0; if (n) { - const e = Li, + const e = li, t = String(n); - Li = t; - Ti("history", { + li = t; + ai("history", { from: e, to: t }) @@ -15321,29 +15130,29 @@ return e.apply(this, t) } } - Di.onpopstate = function(...t) { - const n = Di.location.href, - r = Li; - Li = n; - if (Ti("history", { + si.onpopstate = function(...t) { + const n = si.location.href, + r = li; + li = n; + if (ai("history", { from: r, to: n }), e) try { return e.apply(this, t) } catch (i) {} - }, tn(Di.history, "pushState", t), tn(Di.history, "replaceState", t) + }, Jt(si.history, "pushState", t), Jt(si.history, "replaceState", t) } - function ji(e, t = []) { + function di(e, t = []) { return [e, t] } - function Fi(e, t) { + function pi(e, t) { const [n, r] = e; return [n, [...r, t]] } - function zi(e, t) { + function hi(e, t) { const n = e[1]; for (const r of n) { if (t(r, r[0].type)) return !0 @@ -15351,16 +15160,16 @@ return !1 } - function Vi(e) { + function fi(e) { return wt.__SENTRY__ && wt.__SENTRY__.encodePolyfill ? wt.__SENTRY__.encodePolyfill(e) : (new TextEncoder).encode(e) } - function Ui(e) { + function mi(e) { const [t, n] = e; let r = JSON.stringify(t); function i(e) { - "string" === typeof r ? r = "string" === typeof e ? r + e : [Vi(r), e] : r.push("string" === typeof e ? Vi(e) : e) + "string" === typeof r ? r = "string" === typeof e ? r + e : [fi(r), e] : r.push("string" === typeof e ? fi(e) : e) } for (const o of n) { const [e, t] = o; @@ -15370,7 +15179,7 @@ try { e = JSON.stringify(t) } catch (a) { - e = JSON.stringify(Yn(t)) + e = JSON.stringify(qn(t)) } i(e) } @@ -15384,15 +15193,9 @@ }(r) } - function Bi(e) { - return [{ - type: "span" - }, e] - } - - function Gi(e) { - const t = "string" === typeof e.data ? Vi(e.data) : e.data; - return [cn({ + function gi(e) { + const t = "string" === typeof e.data ? fi(e.data) : e.data; + return [sn({ type: "attachment", length: t.length, filename: e.filename, @@ -15400,7 +15203,7 @@ attachment_type: e.attachmentType }), t] } - const Wi = { + const vi = { session: "session", sessions: "session", attachment: "attachment", @@ -15418,11 +15221,11 @@ statsd: "metric_bucket" }; - function $i(e) { - return Wi[e] + function yi(e) { + return vi[e] } - function qi(e) { + function _i(e) { if (!e || !e.sdk) return; const { name: t, @@ -15433,42 +15236,48 @@ version: n } } - - function Hi(e, t, n, r) { - const i = e.sdkProcessingMetadata && e.sdkProcessingMetadata.dynamicSamplingContext; - return { - event_id: e.event_id, - sent_at: (new Date).toISOString(), - ...t && { - sdk: t - }, - ...!!n && r && { - dsn: yi(r) - }, - ...i && { - trace: cn({ - ...i - }) - } - } - } - class Ki extends Error { + class bi 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 } } - function Yi(e) { - if ("boolean" === typeof e) return Number(e); - const t = "string" === typeof e ? parseFloat(e) : e; - if (!("number" !== typeof t || isNaN(t) || t < 0 || t > 1)) return t; - nr && Qt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`) + function xi(e, t, n, r) { + const i = _i(n), + a = e.type && "replay_event" !== e.type ? 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 || []]) + }(e, n && n.sdk); + const o = function(e, t, n, r) { + const i = e.sdkProcessingMetadata && e.sdkProcessingMetadata.dynamicSamplingContext; + return { + event_id: e.event_id, + sent_at: (new Date).toISOString(), + ...t && { + sdk: t + }, + ...!!n && r && { + dsn: Wr(r) + }, + ...i && { + trace: sn({ + ...i + }) + } + } + }(e, i, r, t); + delete e.sdkProcessingMetadata; + return di(o, [ + [{ + type: a + }, e] + ]) } - const Qi = "Not capturing exception because it's already been captured."; - class Zi { + const ki = "Not capturing exception because it's already been captured."; + class wi { constructor(e) { - if (this._options = e, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], e.dsn ? this._dsn = bi(e.dsn) : nr && Qt.warn("No DSN provided, client will not send events."), this._dsn) { - const t = wi(this._dsn, e.tunnel, e._metadata ? e._metadata.sdk : void 0); + if (this._options = e, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], e.dsn ? this._dsn = Kr(e.dsn) : Xn && Kt.warn("No DSN provided, client will not send events."), this._dsn) { + const t = Zr(this._dsn, e.tunnel, e._metadata ? e._metadata.sdk : void 0); this._transport = e.transport({ tunnel: this._options.tunnel, recordDroppedEvent: this.recordDroppedEvent.bind(this), @@ -15478,8 +15287,8 @@ } } captureException(e, t, n) { - const r = dn(); - if (gn(e)) return nr && Qt.log(Qi), r; + const r = cn(); + if (fn(e)) return Xn && Kt.log(ki), r; const i = { event_id: r, ...t @@ -15488,7 +15297,7 @@ } captureMessage(e, t, n, r) { const i = { - event_id: dn(), + event_id: cn(), ...n }, a = Lt(e) ? e : String(e), @@ -15496,8 +15305,8 @@ return this._process(o.then((e => this._captureEvent(e, i, r)))), i.event_id } captureEvent(e, t, n) { - const r = dn(); - if (t && t.originalException && gn(t.originalException)) return nr && Qt.log(Qi), r; + const r = cn(); + if (t && t.originalException && fn(t.originalException)) return Xn && Kt.log(ki), r; const i = { event_id: r, ...t @@ -15506,7 +15315,7 @@ return this._process(this._captureEvent(e, i, a || n)), i.event_id } captureSession(e) { - "string" !== typeof e.release ? nr && Qt.warn("Discarded session because of missing or non-string release") : (this.sendSession(e), Sn(e, { + "string" !== typeof e.release ? Xn && Kt.warn("Discarded session because of missing or non-string release") : (this.sendSession(e), xn(e, { init: !1 })) } @@ -15524,7 +15333,7 @@ } flush(e) { const t = this._transport; - return t ? (this.emit("flush"), this._isClientDoneProcessing(e).then((n => t.flush(e).then((e => n && e))))) : Jn(!0) + return t ? (this.emit("flush"), this._isClientDoneProcessing(e).then((n => t.flush(e).then((e => n && e))))) : Yn(!0) } close(e) { return this.flush(e).then((e => (this.getOptions().enabled = !1, this.emit("close"), e))) @@ -15536,44 +15345,34 @@ this._eventProcessors.push(e) } init() { - this._isEnabled() && this._setupIntegrations() + (this._isEnabled() || this._options.integrations.some((({ + name: e + }) => e.startsWith("Spotlight")))) && this._setupIntegrations() } getIntegrationByName(e) { return this._integrations[e] } addIntegration(e) { const t = this._integrations[e.name]; - ai(this, e, this._integrations), t || ii(this, [e]) + Dr(this, e, this._integrations), t || Rr(this, [e]) } sendEvent(e, t = {}) { this.emit("beforeSendEvent", e, t); - let n = function(e, t, n, r) { - const i = qi(n), - a = e.type && "replay_event" !== e.type ? 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 || []]) - }(e, n && n.sdk); - const o = Hi(e, i, r, t); - return delete e.sdkProcessingMetadata, ji(o, [ - [{ - type: a - }, e] - ]) - }(e, this._dsn, this._options._metadata, this._options.tunnel); - for (const i of t.attachments || []) n = Fi(n, Gi(i)); + let n = xi(e, this._dsn, this._options._metadata, this._options.tunnel); + for (const i of t.attachments || []) n = pi(n, gi(i)); const r = this.sendEnvelope(n); r && r.then((t => this.emit("afterSendEvent", e, t)), null) } sendSession(e) { const t = function(e, t, n, r) { - const i = qi(n); - return ji({ + const i = _i(n); + return di({ sent_at: (new Date).toISOString(), ...i && { sdk: i }, ...!!r && t && { - dsn: yi(t) + dsn: Wr(t) } }, ["aggregates" in e ? [{ type: "sessions" @@ -15585,8 +15384,9 @@ } recordDroppedEvent(e, t, n) { if (this._options.sendClientReports) { - const n = `${e}:${t}`; - nr && Qt.log(`Adding outcome: "${n}"`), this._outcomes[n] = (this._outcomes[n] || 0) + 1 + const r = "number" === typeof n ? n : 1, + i = `${e}:${t}`; + Xn && Kt.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`), this._outcomes[i] = (this._outcomes[i] || 0) + r } } on(e, t) { @@ -15601,7 +15401,7 @@ n && n.forEach((e => e(...t))) } sendEnvelope(e) { - return this.emit("beforeEnvelope", e), this._isEnabled() && this._transport ? this._transport.send(e).then(null, (e => (nr && Qt.error("Error while sending event:", e), e))) : (nr && Qt.error("Transport disabled"), Jn({})) + return this.emit("beforeEnvelope", e), this._isEnabled() && this._transport ? this._transport.send(e).then(null, (e => (Xn && Kt.error("Error while sending event:", e), e))) : (Xn && Kt.error("Transport disabled"), Yn({})) } _setupIntegrations() { const { @@ -15610,9 +15410,9 @@ this._integrations = function(e, t) { const n = {}; return t.forEach((t => { - t && ai(e, t, n) + t && Dr(e, t, n) })), n - }(this, e), ii(this, e) + }(this, e), Rr(this, e) } _updateSessionFromEvent(e, t) { let n = !1, @@ -15629,7 +15429,7 @@ } } const a = "ok" === e.status; - (a && 0 === e.errors || a && n) && (Sn(e, { + (a && 0 === e.errors || a && n) && (xn(e, { ...n && { status: "crashed" }, @@ -15637,7 +15437,7 @@ }), this.captureSession(e)) } _isClientDoneProcessing(e) { - return new tr((t => { + return new Zn((t => { let n = 0; const r = setInterval((() => { 0 == this._numProcessing ? (clearInterval(r), t(!0)) : (n += 1, e && n >= e && (clearInterval(r), t(!1))) @@ -15647,10 +15447,10 @@ _isEnabled() { return !1 !== this.getOptions().enabled && void 0 !== this._transport } - _prepareEvent(e, t, n, r = jn()) { + _prepareEvent(e, t, n, r = Ln()) { const i = this.getOptions(), a = Object.keys(this._integrations); - return !t.integrations && a.length > 0 && (t.integrations = a), this.emit("preprocessEvent", e, t), e.type || r.setLastEventId(e.event_id || t.event_id), $r(i, e, t, n, this, r).then((e => { + return !t.integrations && a.length > 0 && (t.integrations = a), this.emit("preprocessEvent", e, t), e.type || r.setLastEventId(e.event_id || t.event_id), br(i, e, t, n, this, r).then((e => { if (null === e) return e; const t = { ...r.getPropagationContext(), @@ -15664,14 +15464,14 @@ dsc: a } = t; e.contexts = { - trace: cn({ + trace: sn({ trace_id: n, span_id: r, parent_span_id: i }), ...e.contexts }; - const o = a || Vr(n, this); + const o = a || mr(n, this); e.sdkProcessingMetadata = { dynamicSamplingContext: o, ...e.sdkProcessingMetadata @@ -15682,9 +15482,9 @@ } _captureEvent(e, t = {}, n) { return this._processEvent(e, t, n).then((e => e.event_id), (e => { - if (nr) { + if (Xn) { const t = e; - "log" === t.logLevel ? Qt.log(t.message) : Qt.warn(t) + "log" === t.logLevel ? Kt.log(t.message) : Kt.warn(t) } })) } @@ -15693,16 +15493,21 @@ { sampleRate: i } = r, - a = Ji(e), - o = Xi(e), + a = Ei(e), + o = Si(e), s = e.type || "error", l = `before send for type \`${s}\``, - c = "undefined" === typeof i ? void 0 : Yi(i); - if (o && "number" === typeof c && Math.random() > c) return this.recordDroppedEvent("sample_rate", "error", e), er(new Ki(`Discarding event because it's not included in the random sample (sampling rate = ${i})`, "log")); + c = "undefined" === typeof i ? void 0 : function(e) { + if ("boolean" === typeof e) return Number(e); + const t = "string" === typeof e ? parseFloat(e) : e; + if (!("number" !== typeof t || isNaN(t) || t < 0 || t > 1)) return t; + Xn && Kt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`) + }(i); + if (o && "number" === typeof c && Math.random() > c) return this.recordDroppedEvent("sample_rate", "error", e), Qn(new bi(`Discarding event because it's not included in the random sample (sampling rate = ${i})`, "log")); const u = "replay_event" === s ? "replay" : s, d = (e.sdkProcessingMetadata || {}).capturedSpanIsolationScope; return this._prepareEvent(e, t, n, d).then((n => { - if (null === n) throw this.recordDroppedEvent("event_processor", u, e), new Ki("An event processor returned `null`, will not send event.", "log"); + if (null === n) throw this.recordDroppedEvent("event_processor", u, e), new bi("An event processor returned `null`, will not send event.", "log"); if (t.data && !0 === t.data.__sentry__) return n; const i = function(e, t, n, r) { const { @@ -15710,8 +15515,8 @@ beforeSendTransaction: a, beforeSendSpan: o } = t; - if (Xi(n) && i) return i(n, r); - if (Ji(n)) { + if (Si(n) && i) return i(n, r); + if (Ei(n)) { if (n.spans && o) { const t = []; for (const r of n.spans) { @@ -15720,31 +15525,43 @@ } n.spans = t } - if (a) return a(n, r) + if (a) { + if (n.spans) { + const e = n.spans.length; + n.sdkProcessingMetadata = { + ...n.sdkProcessingMetadata, + spanCountBeforeProcessing: e + } + } + return a(n, r) + } } return n }(this, r, n, t); return function(e, t) { const n = `${t} must return \`null\` or a valid event.`; if (Ft(e)) return e.then((e => { - if (!Mt(e) && null !== e) throw new Ki(n); + if (!jt(e) && null !== e) throw new bi(n); return e }), (e => { - throw new Ki(`${t} rejected with ${e}`) + throw new bi(`${t} rejected with ${e}`) })); - if (!Mt(e) && null !== e) throw new Ki(n); + if (!jt(e) && null !== e) throw new bi(n); return e }(i, l) })).then((r => { if (null === r) { - if (this.recordDroppedEvent("before_send", u, e), Ji(e)) { + if (this.recordDroppedEvent("before_send", u, e), a) { const t = 1 + (e.spans || []).length; - this._outcomes.span = (this._outcomes.span || 0) + t + this.recordDroppedEvent("before_send", "span", t) } - throw new Ki(`${l} returned \`null\`, will not send event.`, "log") + throw new bi(`${l} returned \`null\`, will not send event.`, "log") } const i = n && n.getSession(); - !a && i && this._updateSessionFromEvent(i, r); + if (!a && i && this._updateSessionFromEvent(i, r), a) { + const e = (r.sdkProcessingMetadata && r.sdkProcessingMetadata.spanCountBeforeProcessing || 0) - (r.spans ? r.spans.length : 0); + e > 0 && this.recordDroppedEvent("before_send", "span", e) + } const o = r.transaction_info; if (a && o && r.transaction !== e.transaction) { const e = "custom"; @@ -15755,13 +15572,13 @@ } return this.sendEvent(r, t), r })).then(null, (e => { - if (e instanceof Ki) throw e; + if (e instanceof bi) throw e; throw this.captureException(e, { data: { __sentry__: !0 }, originalException: e - }), new Ki(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`) + }), new bi(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`) })) } _process(e) { @@ -15779,18 +15596,18 @@ })) } _flushOutcomes() { - nr && Qt.log("Flushing outcomes..."); + Xn && Kt.log("Flushing outcomes..."); const e = this._clearOutcomes(); - if (0 === e.length) return void(nr && Qt.log("No outcomes to send")); - if (!this._dsn) return void(nr && Qt.log("No dsn provided, will not send outcomes")); - nr && Qt.log("Sending outcomes:", e); - const t = (n = e, ji((r = this._options.tunnel && yi(this._dsn)) ? { + if (0 === e.length) return void(Xn && Kt.log("No outcomes to send")); + if (!this._dsn) return void(Xn && Kt.log("No dsn provided, will not send outcomes")); + Xn && Kt.log("Sending outcomes:", e); + const t = (n = e, di((r = this._options.tunnel && Wr(this._dsn)) ? { dsn: r } : {}, [ [{ type: "client_report" }, { - timestamp: i || _n(), + timestamp: i || vn(), discarded_events: n }] ])); @@ -15799,15 +15616,15 @@ } } - function Xi(e) { + function Si(e) { return void 0 === e.type } - function Ji(e) { + function Ei(e) { return "transaction" === e.type } - function ea(e, t, n = [t], r = "npm") { + function Oi(e, t, n = [t], r = "npm") { const i = e._metadata || {}; i.sdk || (i.sdk = { name: `sentry.javascript.${t}`, @@ -15818,21 +15635,21 @@ version: kt }), e._metadata = i } - const ta = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; + const Ii = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; - function na(e, t) { - const n = aa(e, t), + function Ci(e, t) { + const n = Ti(e, t), r = { - type: t && t.name, - value: sa(t) + type: Li(t), + value: Ni(t) }; return n.length && (r.stacktrace = { frames: n }), void 0 === r.type && "" === r.value && (r.value = "Unrecoverable error caught"), r } - function ra(e, t, n, r) { - const i = zn(), + function Ai(e, t, n, r) { + const i = jn(), a = i && i.getOptions().normalizeDepth, o = function(e) { for (const t in e) @@ -15842,19 +15659,19 @@ } return }(t), s = { - __serialized__: Qn(t, a) + __serialized__: Wn(t, a) }; if (o) return { exception: { - values: [na(e, o)] + values: [Ci(e, o)] }, extra: s }; const l = { exception: { values: [{ - type: jt(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error", - value: ua(t, { + type: Mt(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error", + value: Fi(t, { isUnhandledRejection: r }) }] @@ -15862,7 +15679,7 @@ extra: s }; if (n) { - const t = aa(e, n); + const t = Ti(e, n); t.length && (l.exception.values[0].stacktrace = { frames: t }) @@ -15870,18 +15687,18 @@ return l } - function ia(e, t) { + function Pi(e, t) { return { exception: { - values: [na(e, t)] + values: [Ci(e, t)] } } } - function aa(e, t) { + function Ti(e, t) { const n = t.stacktrace || t.stack || "", r = function(e) { - if (e && oa.test(e.message)) return 1; + if (e && Ri.test(e.message)) return 1; return 0 }(t), i = function(e) { @@ -15893,46 +15710,58 @@ } catch (a) {} return [] } - const oa = /Minified React error #\d+;/i; + const Ri = /Minified React error #\d+;/i; - function sa(e) { - const t = e && e.message; - return t ? t.error && "string" === typeof t.error.message ? t.error.message : t : "No error message" + function Di(e) { + return "undefined" !== typeof WebAssembly && "undefined" !== typeof WebAssembly.Exception && e instanceof WebAssembly.Exception } - function la(e, t, n, r, i) { + function Li(e) { + const t = e && e.name; + if (!t && Di(e)) { + return e.message && Array.isArray(e.message) && 2 == e.message.length ? e.message[0] : "WebAssembly.Exception" + } + return t + } + + function Ni(e) { + const t = e && e.message; + return t ? t.error && "string" === typeof t.error.message ? t.error.message : Di(e) && Array.isArray(e.message) && 2 == e.message.length ? e.message[1] : t : "No error message" + } + + function ji(e, t, n, r, i) { let a; if (Tt(t) && t.error) { - return ia(e, t.error) + return Pi(e, t.error) } if (Rt(t) || Pt(t, "DOMException")) { const i = t; - if ("stack" in t) a = ia(e, t); + if ("stack" in t) a = Pi(e, t); else { const t = i.name || (Rt(i) ? "DOMError" : "DOMException"), o = i.message ? `${t}: ${i.message}` : t; - a = ca(e, o, n, r), fn(a, o) + a = Mi(e, o, n, r), pn(a, o) } return "code" in i && (a.tags = { ...a.tags, "DOMException.code": `${i.code}` }), a } - if (At(t)) return ia(e, t); - if (Mt(t) || jt(t)) { - return a = ra(e, t, n, i), mn(a, { + if (At(t)) return Pi(e, t); + if (jt(t) || Mt(t)) { + return a = Ai(e, t, n, i), hn(a, { synthetic: !0 }), a } - return a = ca(e, t, n, r), fn(a, `${t}`, void 0), mn(a, { + return a = Mi(e, t, n, r), pn(a, `${t}`, void 0), hn(a, { synthetic: !0 }), a } - function ca(e, t, n, r) { + function Mi(e, t, n, r) { const i = {}; if (r && n) { - const r = aa(e, n); + const r = Ti(e, n); r.length && (i.exception = { values: [{ value: t, @@ -15955,47 +15784,47 @@ return i.message = t, i } - function ua(e, { + function Fi(e, { isUnhandledRejection: t }) { const n = function(e, t = 40) { - const n = Object.keys(on(e)); + const n = Object.keys(rn(e)); n.sort(); const r = n[0]; if (!r) return "[object has no keys]"; - if (r.length >= t) return Zt(r, t); + if (r.length >= t) return Yt(r, t); for (let i = n.length; i > 0; i--) { const e = n.slice(0, i).join(", "); - if (!(e.length > t)) return i === n.length ? e : Zt(e, t) + if (!(e.length > t)) return i === n.length ? e : Yt(e, t) } return "" }(e), r = t ? "promise rejection" : "exception"; if (Tt(e)) return `Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``; - if (jt(e)) { + if (Mt(e)) { return `Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}(e)}\` (type=${e.type}) captured as ${r}` } return `Object captured as ${r} with keys: ${n}` } - const da = wt; - let pa = 0; + const zi = wt; + let Vi = 0; - function ha() { - return pa > 0 + function Ui() { + return Vi > 0 } - function fa() { - pa++, setTimeout((() => { - pa-- + function Bi() { + Vi++, setTimeout((() => { + Vi-- })) } - function ma(e, t = {}, n) { + function Gi(e, t = {}, n) { if ("function" !== typeof e) return e; try { const t = e.__sentry_wrapped__; - if (t) return t; - if (an(e)) return e + if (t) return "function" === typeof t ? t : e; + if (nn(e)) return e } catch (i) { return e } @@ -16003,21 +15832,21 @@ const r = Array.prototype.slice.call(arguments); try { n && "function" === typeof n && n.apply(this, arguments); - const i = r.map((e => ma(e, t))); + const i = r.map((e => Gi(e, t))); return e.apply(this, i) - } catch (Ps) { - throw fa(), Fn((n => { - n.addEventProcessor((e => (t.mechanism && (fn(e, void 0, void 0), mn(e, t.mechanism)), e.extra = { + } catch (Yo) { + throw Bi(), Nn((n => { + n.addEventProcessor((e => (t.mechanism && (pn(e, void 0, void 0), hn(e, t.mechanism)), e.extra = { ...e.extra, arguments: r - }, e))), Yr(Ps) - })), Ps + }, e))), Sr(Yo) + })), Yo } }; try { for (const t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]) } catch (a) {} - rn(r, e), nn(e, "__sentry_wrapped__", r); + tn(r, e), en(e, "__sentry_wrapped__", r); try { Object.getOwnPropertyDescriptor(r, "name").configurable && Object.defineProperty(r, "name", { get: () => e.name @@ -16025,30 +15854,30 @@ } catch (a) {} return r } - class ga extends Zi { + class $i extends wi { constructor(e) { const t = { parentSpanIsAlwaysRootSpan: !0, ...e }; - ea(t, "browser", ["browser"], da.SENTRY_SDK_SOURCE || "npm"), super(t), t.sendClientReports && da.document && da.document.addEventListener("visibilitychange", (() => { - "hidden" === da.document.visibilityState && this._flushOutcomes() + Oi(t, "browser", ["browser"], zi.SENTRY_SDK_SOURCE || "npm"), super(t), t.sendClientReports && zi.document && zi.document.addEventListener("visibilitychange", (() => { + "hidden" === zi.document.visibilityState && this._flushOutcomes() })) } eventFromException(e, t) { return function(e, t, n, r) { - const i = la(e, t, n && n.syntheticException || void 0, r); - return mn(i), i.level = "error", n && n.event_id && (i.event_id = n.event_id), Jn(i) + const i = ji(e, t, n && n.syntheticException || void 0, r); + return hn(i), i.level = "error", n && n.event_id && (i.event_id = n.event_id), Yn(i) }(this._options.stackParser, e, t, this._options.attachStacktrace) } eventFromMessage(e, t = "info", n) { return function(e, t, n = "info", r, i) { - const a = ca(e, t, r && r.syntheticException || void 0, i); - return a.level = n, r && r.event_id && (a.event_id = r.event_id), Jn(a) + const a = Mi(e, t, r && r.syntheticException || void 0, i); + return a.level = n, r && r.event_id && (a.event_id = r.event_id), Yn(a) }(this._options.stackParser, e, t, n, this._options.attachStacktrace) } captureUserFeedback(e) { - if (!this._isEnabled()) return void(ta && Qt.warn("SDK not enabled, will not capture user feedback.")); + if (!this._isEnabled()) return void(Ii && Kt.warn("SDK not enabled, will not capture user feedback.")); const t = function(e, { metadata: t, tunnel: n, @@ -16064,7 +15893,7 @@ } }, ...!!n && !!r && { - dsn: yi(r) + dsn: Wr(r) } }, a = function(e) { @@ -16072,7 +15901,7 @@ type: "user_report" }, e] }(e); - return ji(i, [a]) + return di(i, [a]) }(e, { metadata: this.getSdkMetadata(), dsn: this.getDsn(), @@ -16084,19 +15913,15 @@ return e.platform = e.platform || "javascript", super._prepareEvent(e, t, n) } } - let va, ya, _a; + let qi, Wi, Hi; - function ba(e) { - Ai("dom", e), Pi("dom", xa) - } - - function xa() { - if (!Di.document) return; - const e = Ti.bind(null, "dom"), - t = ka(e, !0); - Di.document.addEventListener("click", t, !1), Di.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((t => { - const n = Di[t] && Di[t].prototype; - n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (tn(n, "addEventListener", (function(t) { + function Ki() { + if (!si.document) return; + const e = ai.bind(null, "dom"), + t = Yi(e, !0); + si.document.addEventListener("click", t, !1), si.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((t => { + const n = si[t] && si[t].prototype; + n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (Jt(n, "addEventListener", (function(t) { return function(n, r, i) { if ("click" === n || "keypress" == n) try { const r = this, @@ -16105,14 +15930,14 @@ refCount: 0 }; if (!o.handler) { - const r = ka(e); + const r = Yi(e); o.handler = r, t.call(this, n, r, i) } o.refCount++ } catch (a) {} return t.call(this, n, r, i) } - })), tn(n, "removeEventListener", (function(e) { + })), Jt(n, "removeEventListener", (function(e) { return function(t, n, r) { if ("click" === t || "keypress" == t) try { const n = this, @@ -16126,7 +15951,7 @@ })) } - function ka(e, t = !1) { + function Yi(e, t = !1) { return n => { if (!n || n._sentryCaptured) return; const r = function(e) { @@ -16139,12 +15964,12 @@ if (function(e, t) { return "keypress" === e && (!t || !t.tagName || "INPUT" !== t.tagName && "TEXTAREA" !== t.tagName && !t.isContentEditable) }(n.type, r)) return; - nn(n, "_sentryCaptured", !0), r && !r._sentryId && nn(r, "_sentryId", dn()); + en(n, "_sentryCaptured", !0), r && !r._sentryId && en(r, "_sentryId", cn()); const i = "keypress" === n.type ? "input" : n.type; if (! function(e) { - if (e.type !== ya) return !1; + if (e.type !== Wi) return !1; try { - if (!e.target || e.target._sentryId !== _a) return !1 + if (!e.target || e.target._sentryId !== Hi) return !1 } catch (t) {} return !0 }(n)) { @@ -16152,134 +15977,123 @@ event: n, name: i, global: t - }), ya = n.type, _a = r ? r._sentryId : void 0 + }), Wi = n.type, Hi = r ? r._sentryId : void 0 } - clearTimeout(va), va = Di.setTimeout((() => { - _a = void 0, ya = void 0 + clearTimeout(qi), qi = si.setTimeout((() => { + Hi = void 0, Wi = void 0 }), 1e3) } } - const wa = "__sentry_xhr_v3__"; + const Qi = "__sentry_xhr_v3__"; - function Sa(e) { - Ai("xhr", e), Pi("xhr", Ea) - } - - function Ea() { - if (!Di.XMLHttpRequest) return; + function Zi() { + if (!si.XMLHttpRequest) return; const e = XMLHttpRequest.prototype; - tn(e, "open", (function(e) { - return function(...t) { - const n = 1e3 * bn(), - r = Dt(t[0]) ? t[0].toUpperCase() : void 0, - i = function(e) { + e.open = new Proxy(e.open, { + apply(e, t, n) { + const r = 1e3 * yn(), + i = Dt(n[0]) ? n[0].toUpperCase() : void 0, + a = function(e) { if (Dt(e)) return e; try { return e.toString() - } catch (ll) {} - return - }(t[1]); - if (!r || !i) return e.apply(this, t); - this[wa] = { - method: r, - url: i, - request_headers: {} - }, "POST" === r && i.match(/sentry_key/) && (this.__sentry_own_request__ = !0); - const a = () => { - const e = this[wa]; - if (e && 4 === this.readyState) { - try { - e.status_code = this.status } catch (t) {} - Ti("xhr", { - endTimestamp: 1e3 * bn(), - startTimestamp: n, - xhr: this + return + }(n[1]); + if (!i || !a) return e.apply(t, n); + t[Qi] = { + method: i, + url: a, + request_headers: {} + }, "POST" === i && a.match(/sentry_key/) && (t.__sentry_own_request__ = !0); + const o = () => { + const e = t[Qi]; + if (e && 4 === t.readyState) { + try { + e.status_code = t.status + } catch (n) {} + ai("xhr", { + endTimestamp: 1e3 * yn(), + startTimestamp: r, + xhr: t }) } }; - return "onreadystatechange" in this && "function" === typeof this.onreadystatechange ? tn(this, "onreadystatechange", (function(e) { - return function(...t) { - return a(), e.apply(this, t) + return "onreadystatechange" in t && "function" === typeof t.onreadystatechange ? t.onreadystatechange = new Proxy(t.onreadystatechange, { + apply: (e, t, n) => (o(), e.apply(t, n)) + }) : t.addEventListener("readystatechange", o), t.setRequestHeader = new Proxy(t.setRequestHeader, { + apply(e, t, n) { + const [r, i] = n, a = t[Qi]; + return a && Dt(r) && Dt(i) && (a.request_headers[r.toLowerCase()] = i), e.apply(t, n) } - })) : this.addEventListener("readystatechange", a), tn(this, "setRequestHeader", (function(e) { - return function(...t) { - const [n, r] = t, i = this[wa]; - return i && Dt(n) && Dt(r) && (i.request_headers[n.toLowerCase()] = r), e.apply(this, t) - } - })), e.apply(this, t) + }), e.apply(t, n) } - })), tn(e, "send", (function(e) { - return function(...t) { - const n = this[wa]; - if (!n) return e.apply(this, t); - void 0 !== t[0] && (n.body = t[0]); - return Ti("xhr", { - startTimestamp: 1e3 * bn(), - xhr: this - }), e.apply(this, t) + }), e.send = new Proxy(e.send, { + apply(e, t, n) { + const r = t[Qi]; + if (!r) return e.apply(t, n); + void 0 !== n[0] && (r.body = n[0]); + return ai("xhr", { + startTimestamp: 1e3 * yn(), + xhr: t + }), e.apply(t, n) } - })) + }) } - const Ia = 100; + const Xi = 100; - function Oa(e, t) { - const n = zn(), - r = jn(); + function Ji(e, t) { + const n = jn(), + r = Ln(); if (!n) return; const { beforeBreadcrumb: i = null, - maxBreadcrumbs: a = Ia + maxBreadcrumbs: a = Xi } = n.getOptions(); if (a <= 0) return; const o = { - timestamp: _n(), + timestamp: vn(), ...e }, - s = i ? Yt((() => i(o, t))) : o; + s = i ? Ht((() => i(o, t))) : o; null !== s && (n.emit && n.emit("beforeAddBreadcrumb", s, t), r.addBreadcrumb(s, a)) } - function Ca() { - "console" in wt && Ht.forEach((function(e) { - e in wt.console && tn(wt.console, e, (function(t) { - return Kt[e] = t, + function ea() { + "console" in wt && qt.forEach((function(e) { + e in wt.console && Jt(wt.console, e, (function(t) { + return Wt[e] = t, function(...t) { - Ti("console", { + ai("console", { args: t, level: e }); - const n = Kt[e]; + const n = Wt[e]; n && n.apply(wt.console, t) } })) })) } - function Aa(e) { - const t = "fetch"; - Ai(t, e), Pi(t, Pa) - } - - function Pa() { - (function() { + function ta(e, t = !1) { + t && ! function() { if ("string" === typeof EdgeRuntime) return !0; - if (!Ei()) return !1; - if (Ii(Si.fetch)) return !0; + if (!Jr()) return !1; + if (ei(Xr.fetch)) return !0; let e = !1; - const t = Si.document; + const t = Xr.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 = Ii(n.contentWindow.fetch)), t.head.removeChild(n) + n.hidden = !0, t.head.appendChild(n), n.contentWindow && n.contentWindow.fetch && (e = ei(n.contentWindow.fetch)), t.head.removeChild(n) } catch (n) { - qt && Qt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n) + $t && Kt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n) } return e - })() && tn(wt, "fetch", (function(e) { - return function(...t) { + }() || Jt(wt, "fetch", (function(t) { + return function(...n) { const { - method: n, - url: r + method: r, + url: i } = function(e) { if (0 === e.length) return { method: "GET", @@ -16288,56 +16102,60 @@ if (2 === e.length) { const [t, n] = e; return { - url: Ra(t), - method: Ta(n, "method") ? String(n.method).toUpperCase() : "GET" + url: ra(t), + method: na(n, "method") ? String(n.method).toUpperCase() : "GET" } } const t = e[0]; return { - url: Ra(t), - method: Ta(t, "method") ? String(t.method).toUpperCase() : "GET" + url: ra(t), + method: na(t, "method") ? String(t.method).toUpperCase() : "GET" } - }(t), i = { - args: t, + }(n), a = { + args: n, fetchData: { - method: n, - url: r + method: r, + url: i }, - startTimestamp: 1e3 * bn() + startTimestamp: 1e3 * yn() }; - Ti("fetch", { - ...i + e || ai("fetch", { + ...a }); - const a = (new Error).stack; - return e.apply(wt, t).then((e => (Ti("fetch", { - ...i, - endTimestamp: 1e3 * bn(), - response: e - }), e)), (e => { - throw Ti("fetch", { - ...i, - endTimestamp: 1e3 * bn(), + const o = (new Error).stack; + return t.apply(wt, n).then((async t => (e ? e(t) : ai("fetch", { + ...a, + endTimestamp: 1e3 * yn(), + response: t + }), t)), (e => { + throw ai("fetch", { + ...a, + endTimestamp: 1e3 * yn(), error: e - }), At(e) && void 0 === e.stack && (e.stack = a, nn(e, "framesToPop", 1)), e + }), At(e) && void 0 === e.stack && (e.stack = o, en(e, "framesToPop", 1)), e })) } })) } - function Ta(e, t) { + function na(e, t) { return !!e && "object" === typeof e && !!e[t] } - function Ra(e) { - return "string" === typeof e ? e : e ? Ta(e, "url") ? e.url : e.toString ? e.toString() : "" : "" + function ra(e) { + return "string" === typeof e ? e : e ? na(e, "url") ? e.url : e.toString ? e.toString() : "" : "" } - const Da = ["fatal", "error", "warning", "log", "info", "debug"]; + const ia = ["fatal", "error", "warning", "log", "info", "debug"]; - function La(e) { - return "warn" === e ? "warning" : Da.includes(e) ? e : "log" + function aa(e) { + return "warn" === e ? "warning" : ia.includes(e) ? e : "log" } - function Na(e) { + function oa(e) { + return void 0 === e ? void 0 : e >= 400 && e < 500 ? "warning" : e >= 500 ? "error" : void 0 + } + + function sa(e) { if (!e) return {}; const t = e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/); if (!t) return {}; @@ -16352,8 +16170,8 @@ relative: t[5] + n + r } } - const Ma = 1024, - ja = (e = {}) => { + const la = 1024, + ca = (e = {}) => { const t = { console: !0, dom: !0, @@ -16366,36 +16184,37 @@ return { name: "Breadcrumbs", setup(e) { + var n; t.console && function(e) { const t = "console"; - Ai(t, e), Pi(t, Ca) + ri(t, e), ii(t, ea) }(function(e) { return function(t) { - if (zn() !== e) return; + if (jn() !== e) return; const n = { category: "console", data: { arguments: t.args, logger: "console" }, - level: La(t.level), - message: Xt(t.args, " ") + level: aa(t.level), + message: Qt(t.args, " ") }; if ("assert" === t.level) { if (!1 !== t.args[0]) return; - n.message = `Assertion failed: ${Xt(t.args.slice(1)," ")||"console.assert"}`, n.data.arguments = t.args.slice(1) + n.message = `Assertion failed: ${Qt(t.args.slice(1)," ")||"console.assert"}`, n.data.arguments = t.args.slice(1) } - Oa(n, { + Ji(n, { input: t.args, level: t.level }) } - }(e)), t.dom && ba(function(e, t) { + }(e)), t.dom && (n = function(e, t) { return function(n) { - if (zn() !== e) return; + if (jn() !== e) return; let r, i, a = "object" === typeof t ? t.serializeAttribute : void 0, o = "object" === typeof t && "number" === typeof t.maxStringLength ? t.maxStringLength : void 0; - o && o > Ma && (ta && Qt.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`), o = Ma), "string" === typeof a && (a = [a]); + o && o > la && (Ii && Kt.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`), o = la), "string" === typeof a && (a = [a]); try { const e = n.event, t = function(e) { @@ -16404,7 +16223,19 @@ r = Bt(t, { keyAttrs: a, maxStringLength: o - }), i = $t(t) + }), i = function(e) { + if (!Ut.HTMLElement) return null; + let t = e; + for (let n = 0; n < 5; n++) { + if (!t) return null; + if (t instanceof HTMLElement) { + if (t.dataset.sentryComponent) return t.dataset.sentryComponent; + if (t.dataset.sentryElement) return t.dataset.sentryElement + } + t = t.parentNode + } + return null + }(t) } catch (l) { r = "" } @@ -16415,51 +16246,57 @@ }; i && (s.data = { "ui.component_name": i - }), Oa(s, { + }), Ji(s, { event: n.event, name: n.name, global: n.global }) } - }(e, t.dom)), t.xhr && Sa(function(e) { + }(e, t.dom), ri("dom", n), ii("dom", Ki)), t.xhr && function(e) { + ri("xhr", e), ii("xhr", Zi) + }(function(e) { return function(t) { - if (zn() !== e) return; + if (jn() !== e) return; const { startTimestamp: n, endTimestamp: r - } = t, i = t.xhr[wa]; + } = t, i = t.xhr[Qi]; if (!n || !r || !i) return; const { method: a, url: o, status_code: s, body: l - } = i; - Oa({ - category: "xhr", - data: { - method: a, - url: o, - status_code: s - }, - type: "http" - }, { + } = i, c = { + method: a, + url: o, + status_code: s + }, u = { xhr: t.xhr, input: l, startTimestamp: n, endTimestamp: r - }) + }; + Ji({ + category: "xhr", + data: c, + type: "http", + level: oa(s) + }, u) } - }(e)), t.fetch && Aa(function(e) { + }(e)), t.fetch && function(e, t) { + const n = "fetch"; + ri(n, e), ii(n, (() => ta(void 0, t))) + }(function(e) { return function(t) { - if (zn() !== e) return; + if (jn() !== e) return; const { startTimestamp: n, endTimestamp: r } = t; if (r && (!t.fetchData.url.match(/sentry_key/) || "POST" !== t.fetchData.method)) if (t.error) { - Oa({ + Ji({ category: "fetch", data: t.fetchData, level: "error", @@ -16471,31 +16308,34 @@ endTimestamp: r }) } else { - const e = t.response; - Oa({ - category: "fetch", - data: { + const e = t.response, + i = { ...t.fetchData, status_code: e && e.status }, - type: "http" - }, { - input: t.args, - response: e, - startTimestamp: n, - endTimestamp: r - }) + a = { + input: t.args, + response: e, + startTimestamp: n, + endTimestamp: r + }; + Ji({ + category: "fetch", + data: i, + type: "http", + level: oa(i.status_code) + }, a) } } - }(e)), t.history && Ni(function(e) { + }(e)), t.history && ci(function(e) { return function(t) { - if (zn() !== e) return; + if (jn() !== e) return; let n = t.from, r = t.to; - const i = Na(da.location.href); - let a = n ? Na(n) : void 0; - const o = Na(r); - a && a.path || (a = i), i.protocol === o.protocol && i.host === o.host && (r = o.relative), i.protocol === a.protocol && i.host === a.host && (n = a.relative), Oa({ + const i = sa(zi.location.href); + let a = n ? sa(n) : void 0; + const o = sa(r); + a && a.path || (a = i), i.protocol === o.protocol && i.host === o.host && (r = o.relative), i.protocol === a.protocol && i.host === a.host && (n = a.relative), Ji({ category: "navigation", data: { from: n, @@ -16505,11 +16345,11 @@ } }(e)), t.sentry && e.on("beforeSendEvent", function(e) { return function(t) { - zn() === e && Oa({ + jn() === e && Ji({ category: "sentry." + ("transaction" === t.type ? "transaction" : "event"), event_id: t.event_id, level: t.level, - message: hn(t) + message: dn(t) }, { event: t }) @@ -16518,8 +16358,8 @@ } } }; - const Fa = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "BroadcastChannel", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "SharedWorker", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"], - za = (e = {}) => { + const ua = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "BroadcastChannel", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "SharedWorker", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"], + da = (e = {}) => { const t = { XMLHttpRequest: !0, eventTarget: !0, @@ -16531,22 +16371,22 @@ return { name: "BrowserApiErrors", setupOnce() { - t.setTimeout && tn(da, "setTimeout", Va), t.setInterval && tn(da, "setInterval", Va), t.requestAnimationFrame && tn(da, "requestAnimationFrame", Ua), t.XMLHttpRequest && "XMLHttpRequest" in da && tn(XMLHttpRequest.prototype, "send", Ba); + t.setTimeout && Jt(zi, "setTimeout", pa), t.setInterval && Jt(zi, "setInterval", pa), t.requestAnimationFrame && Jt(zi, "requestAnimationFrame", ha), t.XMLHttpRequest && "XMLHttpRequest" in zi && Jt(XMLHttpRequest.prototype, "send", fa); const e = t.eventTarget; if (e) { - (Array.isArray(e) ? e : Fa).forEach(Ga) + (Array.isArray(e) ? e : ua).forEach(ma) } } } }; - function Va(e) { + function pa(e) { return function(...t) { const n = t[0]; - return t[0] = ma(n, { + return t[0] = Gi(n, { mechanism: { data: { - function: Hn(e) + function: Gn(e) }, handled: !1, type: "instrument" @@ -16555,13 +16395,13 @@ } } - function Ua(e) { + function ha(e) { return function(t) { - return e.apply(this, [ma(t, { + return e.apply(this, [Gi(t, { mechanism: { data: { function: "requestAnimationFrame", - handler: Hn(e) + handler: Gn(e) }, handled: !1, type: "instrument" @@ -16570,39 +16410,39 @@ } } - function Ba(e) { + function fa(e) { return function(...t) { const n = this; return ["onload", "onerror", "onprogress", "onreadystatechange"].forEach((e => { - e in n && "function" === typeof n[e] && tn(n, e, (function(t) { + e in n && "function" === typeof n[e] && Jt(n, e, (function(t) { const n = { mechanism: { data: { function: e, - handler: Hn(t) + handler: Gn(t) }, handled: !1, type: "instrument" } }, - r = an(t); - return r && (n.mechanism.data.handler = Hn(r)), ma(t, n) + r = nn(t); + return r && (n.mechanism.data.handler = Gn(r)), Gi(t, n) })) })), e.apply(this, t) } } - function Ga(e) { - const t = da, + function ma(e) { + const t = zi, n = t[e] && t[e].prototype; - n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (tn(n, "addEventListener", (function(t) { + n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (Jt(n, "addEventListener", (function(t) { return function(n, r, i) { try { - "function" === typeof r.handleEvent && (r.handleEvent = ma(r.handleEvent, { + "function" === typeof r.handleEvent && (r.handleEvent = Gi(r.handleEvent, { mechanism: { data: { function: "handleEvent", - handler: Hn(r), + handler: Gn(r), target: e }, handled: !1, @@ -16610,11 +16450,11 @@ } })) } catch (a) {} - return t.apply(this, [n, ma(r, { + return t.apply(this, [n, Gi(r, { mechanism: { data: { function: "addEventListener", - handler: Hn(r), + handler: Gn(r), target: e }, handled: !1, @@ -16622,7 +16462,7 @@ } }), i]) } - })), tn(n, "removeEventListener", (function(e) { + })), Jt(n, "removeEventListener", (function(e) { return function(t, n, r) { const i = n; try { @@ -16633,15 +16473,10 @@ } }))) } - let Wa = null; + let ga = null; - function $a(e) { - const t = "error"; - Ai(t, e), Pi(t, qa) - } - - function qa() { - Wa = wt.onerror, wt.onerror = function(e, t, n, r, i) { + function va() { + ga = wt.onerror, wt.onerror = function(e, t, n, r, i) { const a = { column: r, error: i, @@ -16649,23 +16484,18 @@ msg: e, url: t }; - return Ti("error", a), !(!Wa || Wa.__SENTRY_LOADER__) && Wa.apply(this, arguments) + return ai("error", a), !(!ga || ga.__SENTRY_LOADER__) && ga.apply(this, arguments) }, wt.onerror.__SENTRY_INSTRUMENTED__ = !0 } - let Ha = null; + let ya = null; - function Ka(e) { - const t = "unhandledrejection"; - Ai(t, e), Pi(t, Ya) - } - - function Ya() { - Ha = wt.onunhandledrejection, wt.onunhandledrejection = function(e) { + function _a() { + ya = wt.onunhandledrejection, wt.onunhandledrejection = function(e) { const t = e; - return Ti("unhandledrejection", t), !(Ha && !Ha.__SENTRY_LOADER__) || Ha.apply(this, arguments) + return ai("unhandledrejection", t), !(ya && !ya.__SENTRY_LOADER__) || ya.apply(this, arguments) }, wt.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0 } - const Qa = (e = {}) => { + const ba = (e = {}) => { const t = { onerror: !0, onunhandledrejection: !0, @@ -16678,12 +16508,15 @@ }, setup(e) { t.onerror && (! function(e) { - $a((t => { + ! function(e) { + const t = "error"; + ri(t, e), ii(t, va) + }((t => { const { stackParser: n, attachStacktrace: r - } = Xa(); - if (zn() !== e || ha()) return; + } = ka(); + if (jn() !== e || Ui()) return; const { msg: i, url: a, @@ -16698,17 +16531,23 @@ l = s.frames = s.frames || [], c = isNaN(parseInt(r, 10)) ? void 0 : r, u = isNaN(parseInt(n, 10)) ? void 0 : n, - d = Dt(t) && t.length > 0 ? t : Wt(); + d = Dt(t) && t.length > 0 ? t : function() { + try { + return Ut.document.location.href + } catch (_u) { + return "" + } + }(); 0 === l.length && l.push({ colno: c, filename: d, - function: Vn, + function: Mn, in_app: !0, lineno: u }); return e - }(la(n, l || i, void 0, r, !1), a, o, s); - c.level = "error", Qr(c, { + }(ji(n, l || i, void 0, r, !1), a, o, s); + c.level = "error", Er(c, { originalException: l, mechanism: { handled: !1, @@ -16716,19 +16555,22 @@ } }) })) - }(e), Za("onerror")), t.onunhandledrejection && (! function(e) { - Ka((t => { + }(e), xa("onerror")), t.onunhandledrejection && (! function(e) { + ! function(e) { + const t = "unhandledrejection"; + ri(t, e), ii(t, _a) + }((t => { const { stackParser: n, attachStacktrace: r - } = Xa(); - if (zn() !== e || ha()) return; + } = ka(); + if (jn() !== e || Ui()) return; const i = function(e) { if (Nt(e)) return e; try { if ("reason" in e) return e.reason; if ("detail" in e && "reason" in e.detail) return e.detail.reason - } catch (ll) {} + } catch (t) {} return e }(t), a = Nt(i) ? { @@ -16738,8 +16580,8 @@ value: `Non-Error promise rejection captured with value: ${String(i)}` }] } - } : la(n, i, void 0, r, !0); - a.level = "error", Qr(a, { + } : ji(n, i, void 0, r, !0); + a.level = "error", Er(a, { originalException: i, mechanism: { handled: !1, @@ -16747,33 +16589,33 @@ } }) })) - }(e), Za("onunhandledrejection")) + }(e), xa("onunhandledrejection")) } } }; - function Za(e) { - ta && Qt.log(`Global Handler attached: ${e}`) + function xa(e) { + Ii && Kt.log(`Global Handler attached: ${e}`) } - function Xa() { - const e = zn(); + function ka() { + const e = jn(); return e && e.getOptions() || { stackParser: () => [], attachStacktrace: !1 } } - const Ja = () => ({ + const wa = () => ({ name: "HttpContext", preprocessEvent(e) { - if (!da.navigator && !da.location && !da.document) return; - const t = e.request && e.request.url || da.location && da.location.href, + if (!zi.navigator && !zi.location && !zi.document) return; + const t = e.request && e.request.url || zi.location && zi.location.href, { referrer: n - } = da.document || {}, + } = zi.document || {}, { userAgent: r - } = da.navigator || {}, + } = zi.navigator || {}, i = { ...e.request && e.request.headers, ...n && { @@ -16794,33 +16636,33 @@ } }); - function eo(e, t, n = 250, r, i, a, o) { + function Sa(e, t, n = 250, r, i, a, o) { if (!a.exception || !a.exception.values || !o || !zt(o.originalException, Error)) return; const s = a.exception.values.length > 0 ? a.exception.values[a.exception.values.length - 1] : void 0; var l, c; - s && (a.exception.values = (l = to(e, t, i, o.originalException, r, a.exception.values, s, 0), c = n, l.map((e => (e.value && (e.value = Zt(e.value, c)), e))))) + s && (a.exception.values = (l = Ea(e, t, i, o.originalException, r, a.exception.values, s, 0), c = n, l.map((e => (e.value && (e.value = Yt(e.value, c)), e))))) } - function to(e, t, n, r, i, a, o, s) { + function Ea(e, t, n, r, i, a, o, s) { if (a.length >= n + 1) return a; let l = [...a]; if (zt(r[i], Error)) { - no(o, s); + Oa(o, s); const a = e(t, r[i]), c = l.length; - ro(a, i, c, s), l = to(e, t, n, r[i], i, [a, ...l], a, c) + Ia(a, i, c, s), l = Ea(e, t, n, r[i], i, [a, ...l], a, c) } return Array.isArray(r.errors) && r.errors.forEach(((r, a) => { if (zt(r, Error)) { - no(o, s); + Oa(o, s); const c = e(t, r), u = l.length; - ro(c, `errors[${a}]`, u, s), l = to(e, t, n, r, i, [c, ...l], c, u) + Ia(c, `errors[${a}]`, u, s), l = Ea(e, t, n, r, i, [c, ...l], c, u) } })), l } - function no(e, t) { + function Oa(e, t) { e.mechanism = e.mechanism || { type: "generic", handled: !0 @@ -16833,7 +16675,7 @@ } } - function ro(e, t, n, r) { + function Ia(e, t, n, r) { e.mechanism = e.mechanism || { type: "generic", handled: !0 @@ -16845,93 +16687,91 @@ parent_id: r } } - const io = (e = {}) => { + const Ca = (e = {}) => { const t = e.limit || 5, n = e.key || "cause"; return { name: "LinkedErrors", preprocessEvent(e, r, i) { const a = i.getOptions(); - eo(na, a.stackParser, a.maxValueLength, n, t, e, r) + Sa(Ci, a.stackParser, a.maxValueLength, n, t, e, r) } } }; - function ao(e, t, n, r) { + function Aa(e, t, n, r) { const i = { filename: e, - function: "" === t ? Vn : t, + function: "" === t ? Mn : t, in_app: !0 }; return void 0 !== n && (i.lineno = n), void 0 !== r && (i.colno = r), i } - const oo = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, - so = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, - lo = /\((\S*)(?::(\d+))(?::(\d+))\)/, - co = [30, e => { - const t = oo.exec(e); - if (t) { - const [, e, n, r] = t; - return ao(e, Vn, +n, +r) - } - const n = so.exec(e); - if (n) { - if (n[2] && 0 === n[2].indexOf("eval")) { - const e = lo.exec(n[2]); - e && (n[2] = e[1], n[3] = e[2], n[4] = e[3]) + const Pa = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, + Ta = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, + Ra = /\((\S*)(?::(\d+))(?::(\d+))\)/, + Da = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, + La = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, + Na = Vn(...[ + [30, e => { + const t = Pa.exec(e); + if (t) { + const [, e, n, r] = t; + return Aa(e, Mn, +n, +r) } - const [e, t] = fo(n[1] || Vn, n[2]); - return ao(t, e, n[3] ? +n[3] : void 0, n[4] ? +n[4] : void 0) - } - }], - uo = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, - po = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, - ho = Gn(...[co, [50, e => { - const t = uo.exec(e); - if (t) { - if (t[3] && t[3].indexOf(" > eval") > -1) { - const e = po.exec(t[3]); - e && (t[1] = t[1] || "eval", t[3] = e[1], t[4] = e[2], t[5] = "") + const n = Ta.exec(e); + if (n) { + if (n[2] && 0 === n[2].indexOf("eval")) { + const e = Ra.exec(n[2]); + e && (n[2] = e[1], n[3] = e[2], n[4] = e[3]) + } + const [e, t] = ja(n[1] || Mn, n[2]); + return Aa(t, e, n[3] ? +n[3] : void 0, n[4] ? +n[4] : void 0) } - let e = t[3], - n = t[1] || Vn; - return [n, e] = fo(n, e), ao(e, n, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0) - } - }]]), - fo = (e, t) => { + }], + [50, e => { + const t = Da.exec(e); + if (t) { + if (t[3] && t[3].indexOf(" > eval") > -1) { + const e = La.exec(t[3]); + e && (t[1] = t[1] || "eval", t[3] = e[1], t[4] = e[2], t[5] = "") + } + let e = t[3], + n = t[1] || Mn; + return [n, e] = ja(n, e), Aa(e, n, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0) + } + }] + ]), + ja = (e, t) => { const n = -1 !== e.indexOf("safari-extension"), r = -1 !== e.indexOf("safari-web-extension"); - return n || r ? [-1 !== e.indexOf("@") ? e.split("@")[0] : Vn, n ? `safari-extension:${t}` : `safari-web-extension:${t}`] : [e, t] + return n || r ? [-1 !== e.indexOf("@") ? e.split("@")[0] : Mn, n ? `safari-extension:${t}` : `safari-web-extension:${t}`] : [e, t] }, - mo = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, - go = {}; + Ma = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, + Fa = {}; - function vo(e) { - const t = go[e]; + function za(e) { + const t = Fa[e]; if (t) return t; - let n = Di[e]; - if (Ii(n)) return go[e] = n.bind(Di); - const r = Di.document; + let n = si[e]; + if (ei(n)) return Fa[e] = n.bind(si); + const r = si.document; if (r && "function" === typeof r.createElement) try { const t = r.createElement("iframe"); t.hidden = !0, r.head.appendChild(t); const i = t.contentWindow; i && i[e] && (n = i[e]), r.head.removeChild(t) } catch (i) { - mo && Qt.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `, i) + Ma && Kt.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `, i) } - return n ? go[e] = n.bind(Di) : n + return n ? Fa[e] = n.bind(si) : n } - function yo(e) { - go[e] = void 0 + function Va(e) { + Fa[e] = void 0 } - function _o(...e) { - return vo("setTimeout")(...e) - } - - function bo(e) { + function Ua(e) { const t = []; function n(e) { @@ -16940,19 +16780,19 @@ return { $: t, add: function(r) { - if (!(void 0 === e || t.length < e)) return er(new Ki("Not adding Promise because buffer limit was reached.")); + if (!(void 0 === e || t.length < e)) return Qn(new bi("Not adding Promise because buffer limit was reached.")); const i = r(); return -1 === t.indexOf(i) && t.push(i), i.then((() => n(i))).then(null, (() => n(i).then(null, (() => {})))), i }, drain: function(e) { - return new tr(((n, r) => { + return new Zn(((n, r) => { let i = t.length; if (!i) return n(!0); const a = setTimeout((() => { e && e > 0 && n(!1) }), e); t.forEach((e => { - Jn(e).then((() => { + Yn(e).then((() => { --i || (clearTimeout(a), n(!0)) }), r) })) @@ -16961,13 +16801,7 @@ } } - function xo(e, t, n = Date.now()) { - return function(e, t) { - return e[t] || e.all || 0 - }(e, t) > n - } - - function ko(e, { + function Ba(e, { statusCode: t, headers: n }, r = Date.now()) { @@ -16991,31 +16825,35 @@ return i } - function wo(e, t, n = bo(e.bufferSize || 64)) { + function Ga(e, t, n = Ua(e.bufferSize || 64)) { let r = {}; return { send: function(i) { const a = []; - if (zi(i, ((t, n) => { - const i = $i(n); - if (xo(r, i)) { - const r = So(t, n); + if (hi(i, ((t, n) => { + const i = yi(n); + if (function(e, t, n = Date.now()) { + return function(e, t) { + return e[t] || e.all || 0 + }(e, t) > n + }(r, i)) { + const r = $a(t, n); e.recordDroppedEvent("ratelimit_backoff", i, r) } else a.push(t) - })), 0 === a.length) return Jn({}); - const o = ji(i[0], a), + })), 0 === a.length) return Yn({}); + const o = di(i[0], a), s = t => { - zi(o, ((n, r) => { - const i = So(n, r); - e.recordDroppedEvent(t, $i(r), i) + hi(o, ((n, r) => { + const i = $a(n, r); + e.recordDroppedEvent(t, yi(r), i) })) }; return n.add((() => t({ - body: Ui(o) - }).then((e => (void 0 !== e.statusCode && (e.statusCode < 200 || e.statusCode >= 300) && nr && Qt.warn(`Sentry responded with status code ${e.statusCode} to sent event.`), r = ko(r, e), e)), (e => { + body: mi(o) + }).then((e => (void 0 !== e.statusCode && (e.statusCode < 200 || e.statusCode >= 300) && Xn && Kt.warn(`Sentry responded with status code ${e.statusCode} to sent event.`), r = Ba(r, e), e)), (e => { throw s("network_error"), e })))).then((e => e), (e => { - if (e instanceof Ki) return nr && Qt.error("Skipped sending event because buffer is full."), s("queue_overflow"), Jn({}); + if (e instanceof bi) return Xn && Kt.error("Skipped sending event because buffer is full."), s("queue_overflow"), Yn({}); throw e })) }, @@ -17023,14 +16861,14 @@ } } - function So(e, t) { + function $a(e, t) { if ("event" === t || "transaction" === t) return Array.isArray(e) ? e[1] : void 0 } - function Eo(e, t = vo("fetch")) { + function qa(e, t = za("fetch")) { let n = 0, r = 0; - return wo(e, (function(i) { + return Ga(e, (function(i) { const a = i.body.length; n += a, r++; const o = { @@ -17041,7 +16879,7 @@ keepalive: n <= 6e4 && r < 15, ...e.fetchOptions }; - if (!t) return yo("fetch"), er("No fetch implementation available"); + if (!t) return Va("fetch"), Qn("No fetch implementation available"); try { return t(e.url, o).then((e => (n -= a, r--, { statusCode: e.status, @@ -17051,79 +16889,79 @@ } }))) } catch (s) { - return yo("fetch"), n -= a, r--, er(s) + return Va("fetch"), n -= a, r--, Qn(s) } })) } - function Io(e) { - return [si(), di(), za(), ja(), Qa(), io(), pi(), Ja()] - } - - function Oo(e = {}) { + function Wa(e = {}) { const t = function(e = {}) { - return { - defaultIntegrations: Io(), - release: "string" === typeof __SENTRY_RELEASE__ ? __SENTRY_RELEASE__ : da.SENTRY_RELEASE && da.SENTRY_RELEASE.id ? da.SENTRY_RELEASE.id : void 0, + const t = { + defaultIntegrations: [Nr(), zr(), da(), ca(), ba(), Ca(), Vr(), wa()], + release: "string" === typeof __SENTRY_RELEASE__ ? __SENTRY_RELEASE__ : zi.SENTRY_RELEASE && zi.SENTRY_RELEASE.id ? zi.SENTRY_RELEASE.id : void 0, autoSessionTracking: !0, - sendClientReports: !0, + sendClientReports: !0 + }; + return null == e.defaultIntegrations && delete e.defaultIntegrations, { + ...t, ...e } }(e); if (function() { - const e = da, - t = e[e.chrome ? "chrome" : "browser"], + const e = "undefined" !== typeof zi.window && zi; + if (!e) return !1; + const t = e[e.chrome ? "chrome" : "browser"], n = t && t.runtime && t.runtime.id, - r = da.location && da.location.href || "", - i = !!n && da === da.top && ["chrome-extension:", "moz-extension:", "ms-browser-extension:"].some((e => r.startsWith(`${e}//`))), + r = zi.location && zi.location.href || "", + i = !!n && zi === zi.top && ["chrome-extension:", "moz-extension:", "ms-browser-extension:", "safari-web-extension:"].some((e => r.startsWith(`${e}//`))), a = "undefined" !== typeof e.nw; return !!n && !i && !a - }()) return void Yt((() => { + }()) return void Ht((() => { console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/") })); - ta && (Ei() || Qt.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")); + Ii && (Jr() || Kt.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")); const n = { ...t, - stackParser: (r = t.stackParser || ho, Array.isArray(r) ? Gn(...r) : r), - integrations: ri(t), - transport: t.transport || Eo + stackParser: (r = t.stackParser || Na, Array.isArray(r) ? Vn(...r) : r), + integrations: Tr(t), + transport: t.transport || qa }; var r; - const i = gi(ga, n); + const i = $r($i, n); return t.autoSessionTracking && function() { - if ("undefined" === typeof da.document) return void(ta && Qt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")); - Xr({ + if ("undefined" === typeof zi.document) return void(Ii && Kt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")); + Or({ ignoreDuration: !0 - }), ti(), Ni((({ + }), Ar(), ci((({ from: e, to: t }) => { - void 0 !== e && e !== t && (Xr({ + void 0 !== e && e !== t && (Or({ ignoreDuration: !0 - }), ti()) + }), Ar()) })) }(), i } - function Co(e = {}) { - if (!da.document) return void(ta && Qt.error("Global document not defined in showReportDialog call")); - const t = Mn(), + function Ha(e = {}) { + if (!zi.document) return void(Ii && Kt.error("Global document not defined in showReportDialog call")); + const t = Dn(), n = t.getClient(), r = n && n.getDsn(); - if (!r) return void(ta && Qt.error("DSN not configured for showReportDialog call")); + if (!r) return void(Ii && Kt.error("DSN not configured for showReportDialog call")); if (t && (e.user = { ...t.getUser(), ...e.user }), !e.eventId) { - const t = jn().lastEventId(); + const t = Ln().lastEventId(); t && (e.eventId = t) } - const i = da.document.createElement("script"); + const i = zi.document.createElement("script"); i.async = !0, i.crossOrigin = "anonymous", i.src = function(e, t) { - const n = bi(e); + const n = Kr(e); if (!n) return ""; - const r = `${xi(n)}embed/error-page/`; - let i = `dsn=${yi(n)}`; + const r = `${Yr(n)}embed/error-page/`; + let i = `dsn=${Wr(n)}`; for (const a in t) if ("dsn" !== a && "onClose" !== a) if ("user" === a) { @@ -17141,18 +16979,18 @@ if ("__sentry_reportdialog_closed__" === t.data) try { a() } finally { - da.removeEventListener("message", e) + zi.removeEventListener("message", e) } }; - da.addEventListener("message", e) + zi.addEventListener("message", e) } - const o = da.document.head || da.document.body; - o ? o.appendChild(i) : ta && Qt.error("Not injecting report dialog. No injection point found in HTML") + const o = zi.document.head || zi.document.body; + o ? o.appendChild(i) : Ii && Kt.error("Not injecting report dialog. No injection point found in HTML") } n(2110); - const Ao = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; + const Ka = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; - function Po(e, { + function Ya(e, { componentStack: t }, n) { if (function(e) { @@ -17168,7 +17006,7 @@ }(e, t) }(e, n) } - return Yr(e, { + return Sr(e, { ...n, captureContext: { contexts: { @@ -17179,17 +17017,17 @@ } }) } - const To = { + const Qa = { componentStack: null, error: null, eventId: null }; - class Ro extends Ee.Component { + class Za extends Ee.Component { constructor(e) { - super(e), Ro.prototype.__init.call(this), this.state = To, this._openFallbackReportDialog = !0; - const t = zn(); + super(e), Za.prototype.__init.call(this), this.state = Qa, this._openFallbackReportDialog = !0; + const t = jn(); t && e.showDialog && (this._openFallbackReportDialog = !1, this._cleanupHook = t.on("afterSendEvent", (t => { - !t.type && this._lastEventId && t.event_id === this._lastEventId && Co({ + !t.type && this._lastEventId && t.event_id === this._lastEventId && Ha({ ...e.dialogOptions, eventId: this._lastEventId }) @@ -17204,14 +17042,14 @@ showDialog: o, dialogOptions: s } = this.props; - Fn((l => { + Nn((l => { i && i(l, e, r); - const c = Po(e, t, { + const c = Ya(e, t, { mechanism: { handled: !!this.props.fallback } }); - a && a(e, r, c), o && (this._lastEventId = c, this._openFallbackReportDialog && Co({ + a && a(e, r, c), o && (this._lastEventId = c, this._openFallbackReportDialog && Ha({ ...s, eventId: c })), this.setState({ @@ -17246,7 +17084,7 @@ componentStack: n, eventId: r } = this.state; - e && e(t, n, r), this.setState(To) + e && e(t, n, r), this.setState(Qa) } } render() { @@ -17261,15 +17099,15 @@ componentStack: n.componentStack, resetError: this.resetErrorBoundary, eventId: n.eventId - }) : e, Ee.isValidElement(t) ? t : (e && Ao && Qt.warn("fallback did not produce a valid ReactElement"), null) + }) : e, Ee.isValidElement(t) ? t : (e && Ka && Kt.warn("fallback did not produce a valid ReactElement"), null) } return "function" === typeof t ? t() : t } } - var Do = n(8508), - Lo = n.t(Do, 2); + var Xa = n(8508), + Ja = n.t(Xa, 2); - function No(e, t) { + function eo(e, t) { void 0 === t && (t = {}); var n = t.insertAt; if (e && "undefined" != typeof document) { @@ -17278,14 +17116,14 @@ i.type = "text/css", "top" === n && r.firstChild ? r.insertBefore(i, r.firstChild) : r.appendChild(i), i.styleSheet ? i.styleSheet.cssText = e : i.appendChild(document.createTextNode(e)) } } - No('@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-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-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-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-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-2);--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,[data-sol-theme]{color:var(--sol-default-foreground);font-family:var(--sol-default-font-family)}.sol-theme-root[data-sol-theme],:root{background:var(--sol-default-background)}: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-resizer,::-webkit-scrollbar-corner{background-color:initial}::-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-background=true]{--_track-color:var(--sol-scrollbar-track);--_thumb-color:var(--sol-scrollbar-thumb)}[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{.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}}'), "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof n.g ? n.g : "undefined" != typeof self && self; - var Mo, jo, Fo, zo, Vo, Uo, Bo, Go, Wo = { + eo('@import url("https://cdn.robertsspaceindustries.com/static/fonts/univia-pro-typekit/font.css");@import url("https://cdn.robertsspaceindustries.com/static/fonts/bai-jamjuree/font.css");@layer sol{@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-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-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-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-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-2);--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:"Bai Jamjuree",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,[data-sol-theme]{color:var(--sol-default-foreground);font-family:var(--sol-default-font-family)}.sol-theme-root[data-sol-theme],:root{background:var(--sol-default-background)}: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-resizer,::-webkit-scrollbar-corner{background-color:initial}::-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-background=true]{--_track-color:var(--sol-scrollbar-track);--_thumb-color:var(--sol-scrollbar-thumb)}[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{.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}}}'), "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof n.g ? n.g : "undefined" != typeof self && self; + var to, no, ro, io, ao, oo, so, lo, co = { exports: {} }, - $o = {}; - Wo.exports = function() { - if (Mo) return $o; - Mo = 1; + uo = {}; + co.exports = function() { + if (to) return uo; + to = 1; var e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, @@ -17313,13 +17151,13 @@ _owner: r.current } } - return $o.Fragment = t, $o.jsx = a, $o.jsxs = a, $o + return uo.Fragment = t, uo.jsx = a, uo.jsxs = a, uo }(); - var qo = Wo.exports; - No('@layer components{.sol-c-accordion{--_radius:var(--sol-radius-8);--_duration:var(--sol-motion-350)}.sol-c-accordion__actions{align-self:center;display:flex;gap:var(--sol-size-050);justify-content:flex-end;padding:var(--sol-size-050)}.sol-c-accordion__items{border-radius:var(--_radius);overflow:hidden}.sol-c-accordion__item{background:var(--sol-color-surface-1);color:var(--sol-color-foreground)}.sol-c-accordion__header{--_background:var(--sol-color-surface-2);--sol-focus-offset:calc(var(--sol-focus-width)*-1);align-items:center;background:#0000 none;cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-100);inline-size:100%;padding-block:var(--sol-size-100);padding-inline:var(--sol-size-150);position:relative;text-align:start;transition:border-radius var(--sol-motion-250) var(--sol-motion-ease-in);z-index:1}.sol-c-accordion__header:after{background-color:var(--_background);content:"";display:block;inset:0;position:absolute;transition:background-color var(--sol-motion-250) var(--sol-motion-ease-in);z-index:-1}.sol-c-accordion__item:first-child .sol-c-accordion__header{border-start-end-radius:var(--_radius);border-start-start-radius:var(--_radius)}.sol-c-accordion__item:last-child .sol-c-accordion__header[aria-expanded=false]{border-end-end-radius:var(--_radius);border-end-start-radius:var(--_radius)}.sol-c-accordion__item:not(:first-child) .sol-c-accordion__header:after{box-shadow:inset 0 var(--sol-border-1) 0 0 var(--sol-color-surface-3)}.sol-c-accordion__header:hover{--_background:var(--sol-color-surface-2-hovered)}.sol-c-accordion__header:active{--_background:var(--sol-color-surface-2-pressed)}.sol-c-accordion__icon{margin-inline-start:auto;transition:opacity var(--sol-motion-250) var(--sol-motion-ease-in)}.sol-c-accordion__icon--plus{inset-block:0;inset-inline-end:var(--sol-size-150);margin-block:auto;position:absolute}.sol-c-accordion__header[aria-expanded=false] .sol-c-accordion__icon--minus,.sol-c-accordion__header[aria-expanded=true] .sol-c-accordion__icon--plus{opacity:0}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-accordion__content{display:grid;grid-template-rows:1fr;overflow:hidden;transition:grid-template-rows var(--_duration) var(--sol-motion-ease-out)}.sol-c-accordion__content[hidden]{display:grid;grid-template-rows:0fr}}.sol-c-accordion__wrapper{min-height:0;padding-inline:var(--sol-size-250);transition:visibility var(--_duration)}.sol-c-accordion__wrapper:after,.sol-c-accordion__wrapper:before{block-size:var(--sol-size-250);content:"";display:block}.sol-c-accordion__content[hidden] .sol-c-accordion__wrapper{visibility:hidden}}'); - let Ho = (0, Ee.createContext)(null); - No('@layer components{.sol-c-button{--_color-default:var(--sol-color-interactive);--_color-hovered:var(--sol-color-interactive-hovered);--_color-pressed:var(--sol-color-interactive-pressed);--_color-selected:var(--sol-color-interactive-selected);--_color-contrast:var(--sol-color-interactive-contrast);--_background:var(--_color-default);--_background-hovered:var(--_color-hovered);--_background-pressed:var(--_color-pressed);--_background-selected:var(--_color-selected);--_foreground:var(--_color-contrast);--_foreground-hovered:var(--_foreground);--_foreground-pressed:var(--_foreground);--_foreground-selected:var(--_foreground);--_size:var(--sol-c-button-size,var(--sol-size-250));--_padding:var(--sol-c-button-padding,var(--sol-size-050) var(--sol-size-075));--_gap:var(--sol-c-button-gap,var(--sol-size-050));--_duration:var(--sol-motion-250);--_duration-enter:var(--sol-motion-250);--_duration-leave:var(--sol-motion-150);--_easing-enter:var(--sol-motion-ease-in);--_easing-leave:var(--sol-motion-ease-out);align-items:center;border-radius:var(--sol-radius-4);color:var(--_foreground);cursor:var(--sol-cursor-interactive);display:inline-flex;gap:var(--_gap);justify-content:center;min-height:var(--_size);min-width:var(--_size);overflow:hidden;padding:var(--_padding);position:relative;text-align:center;transition-duration:var(--_duration);transition-property:background-color,color,opacity;user-select:none}.sol-c-button,.sol-c-button:before{background-color:var(--_background)}.sol-c-button:before{content:"";display:block;inset:0;opacity:0;position:absolute;transition-duration:var(--_duration-leave);transition-property:background-color,opacity;transition-timing-function:var(--_easing-leave);z-index:1}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-button:before{transform:scale(2) skewX(-45deg) translateX(-100%);transition-delay:0s,0s,var(--_duration-leave);transition-duration:var(--_duration-leave),var(--_duration-leave),0s;transition-property:background-color,opacity,transform}.sol-c-button:active:before,.sol-c-button:hover:before,.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before,[data-sol-button-group]:active:not(:has(.sol-c-button:active)) .sol-c-button--controlled:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{transform:scale(2) skewX(-45deg) translateX(0)}}.sol-c-button:hover:before,.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{opacity:1;transition-duration:var(--_duration-enter);transition-timing-function:var(--_easing-enter)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-button:hover:before,.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{transition-delay:0s;transition-duration:var(--_duration-enter),0s,var(--_duration-enter)}}.sol-c-button[aria-expanded=true],.sol-c-button[aria-pressed=true]{color:var(--_foreground-selected)}.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before{background-color:var(--_background-selected)}.sol-c-button:hover,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled{color:var(--_foreground-hovered)}.sol-c-button:hover:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{background-color:var(--_background-hovered)}.sol-c-button:active,[data-sol-button-group]:active:not(:has(.sol-c-button:active)) .sol-c-button--controlled{color:var(--_foreground-pressed)}.sol-c-button:active:before,[data-sol-button-group]:active:not(:has(.sol-c-button:active)) .sol-c-button--controlled:before{background-color:var(--_background-pressed)}.sol-c-button:disabled,.sol-c-button[aria-disabled=true]{opacity:.4;pointer-events:none}.sol-c-button--align-start{justify-content:flex-start;text-align:start}.sol-c-button--align-end{justify-content:flex-end;text-align:end}.sol-c-button--full-width{display:flex;inline-size:100%}.sol-c-button--negative{--_color-default:var(--sol-color-interactive-negative);--_color-hovered:var(--sol-color-interactive-negative-hovered);--_color-pressed:var(--sol-color-interactive-negative-pressed);--_color-selected:var(--sol-color-interactive-negative-selected)}.sol-c-button--notice{--_color-default:var(--sol-color-interactive-notice);--_color-hovered:var(--sol-color-interactive-notice-hovered);--_color-pressed:var(--sol-color-interactive-notice-pressed);--_color-selected:var(--sol-color-interactive-notice-selected)}.sol-c-button--positive{--_color-default:var(--sol-color-interactive-positive);--_color-hovered:var(--sol-color-interactive-positive-hovered);--_color-pressed:var(--sol-color-interactive-positive-pressed);--_color-selected:var(--sol-color-interactive-positive-selected)}.sol-c-button--monochrome,.sol-c-button--plain{--_background:var(--sol-color-interactive-opacity);--_background-hovered:var(--sol-color-interactive-opacity-hovered);--_background-pressed:var(--sol-color-interactive-opacity-pressed);--_background-selected:var(--sol-color-interactive-opacity-selected);background:#0000}.sol-c-button--monochrome:before,.sol-c-button--plain:before{background-color:var(--_background)}.sol-c-button--monochrome.sol-c-button:before,.sol-c-button--plain.sol-c-button:before{opacity:1;transform:none;transition:background-color var(--_duration)}.sol-c-button--monochrome{--_foreground:var(--sol-color-interactive-neutral);--_foreground-hovered:var(--sol-color-interactive-neutral-hovered);--_foreground-pressed:var(--sol-color-interactive-neutral-pressed);--_foreground-selected:var(--sol-color-interactive-neutral-selected)}.sol-c-button--plain{--_foreground:var(--_color-default);--_foreground-hovered:var(--_color-hovered);--_foreground-pressed:var(--_color-pressed);--_foreground-selected:var(--_color-selected)}.sol-c-button--small{--_size:var(--sol-c-button-size,var(--sol-size-150));--_padding:var(--sol-c-button-padding,var(--sol-size-0125) var(--sol-size-025));--_gap:var(--sol-c-button-gap,var(--sol-size-025))}.sol-c-button--large{--_size:var(--sol-c-button--size,var(--sol-size-300));--_padding:var(--sol-c-button-padding,var(--sol-size-050) var(--sol-size-100))}.sol-c-button__content{align-items:center;display:flex;gap:var(--_gap);min-inline-size:0}.sol-c-button__content,.sol-c-button__icon{position:relative;z-index:2}.sol-c-button--align-start .sol-c-button__icon--end{margin-inline-start:auto}.sol-c-button--align-end .sol-c-button__icon--start{margin-inline-end:auto}.sol-c-button__loading{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:3}.sol-c-button__content,.sol-c-button__icon{transition:opacity var(--_duration)}.sol-c-button__content[hidden],.sol-c-button__icon[hidden]{display:block;opacity:0}}'); - let Ko = e => { + var po = co.exports; + eo('@layer sol.components{.sol-c-accordion{--_radius:var(--sol-radius-8);--_duration:var(--sol-motion-350)}.sol-c-accordion__actions{align-self:center;display:flex;gap:var(--sol-size-050);justify-content:flex-end;padding:var(--sol-size-050)}.sol-c-accordion__items{border-radius:var(--_radius);overflow:hidden}.sol-c-accordion__item{background:var(--sol-color-surface-1);color:var(--sol-color-foreground)}.sol-c-accordion__header{--_background:var(--sol-color-surface-2);--sol-focus-offset:calc(var(--sol-focus-width)*-1);align-items:center;background:#0000 none;cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-100);inline-size:100%;padding-block:var(--sol-size-100);padding-inline:var(--sol-size-150);position:relative;text-align:start;transition:border-radius var(--sol-motion-250) var(--sol-motion-ease-in);z-index:1}.sol-c-accordion__header:after{background-color:var(--_background);content:"";display:block;inset:0;position:absolute;transition:background-color var(--sol-motion-250) var(--sol-motion-ease-in);z-index:-1}.sol-c-accordion__item:first-child .sol-c-accordion__header{border-start-end-radius:var(--_radius);border-start-start-radius:var(--_radius)}.sol-c-accordion__item:last-child .sol-c-accordion__header[aria-expanded=false]{border-end-end-radius:var(--_radius);border-end-start-radius:var(--_radius)}.sol-c-accordion__item:not(:first-child) .sol-c-accordion__header:after{box-shadow:inset 0 var(--sol-border-1) 0 0 var(--sol-color-surface-3)}.sol-c-accordion__header:hover{--_background:var(--sol-color-surface-2-hovered)}.sol-c-accordion__header:active{--_background:var(--sol-color-surface-2-pressed)}.sol-c-accordion__icon{margin-inline-start:auto;transition:opacity var(--sol-motion-250) var(--sol-motion-ease-in)}.sol-c-accordion__icon--plus{inset-block:0;inset-inline-end:var(--sol-size-150);margin-block:auto;position:absolute}.sol-c-accordion__header[aria-expanded=false] .sol-c-accordion__icon--minus,.sol-c-accordion__header[aria-expanded=true] .sol-c-accordion__icon--plus{opacity:0}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-accordion__content{display:grid;grid-template-rows:1fr;overflow:hidden;transition:grid-template-rows var(--_duration) var(--sol-motion-ease-out)}.sol-c-accordion__content[hidden]{display:grid;grid-template-rows:0fr}}.sol-c-accordion__wrapper{min-height:0;padding-inline:var(--sol-size-250);transition:visibility var(--_duration)}.sol-c-accordion__wrapper:after,.sol-c-accordion__wrapper:before{block-size:var(--sol-size-250);content:"";display:block}.sol-c-accordion__content[hidden] .sol-c-accordion__wrapper{visibility:hidden}}'); + let ho = (0, Ee.createContext)(null); + eo('@layer sol.components{.sol-c-button{--_color-default:var(--sol-color-interactive);--_color-hovered:var(--sol-color-interactive-hovered);--_color-pressed:var(--sol-color-interactive-pressed);--_color-selected:var(--sol-color-interactive-selected);--_color-contrast:var(--sol-color-interactive-contrast);--_background:var(--_color-default);--_background-hovered:var(--_color-hovered);--_background-pressed:var(--_color-pressed);--_background-selected:var(--_color-selected);--_foreground:var(--_color-contrast);--_foreground-hovered:var(--_foreground);--_foreground-pressed:var(--_foreground);--_foreground-selected:var(--_foreground);--_size:var(--sol-c-button-size,var(--sol-size-250));--_padding:var(--sol-c-button-padding,var(--sol-size-050) var(--sol-size-075));--_gap:var(--sol-c-button-gap,var(--sol-size-050));--_duration:var(--sol-motion-250);--_duration-enter:var(--sol-motion-250);--_duration-leave:var(--sol-motion-150);--_easing-enter:var(--sol-motion-ease-in);--_easing-leave:var(--sol-motion-ease-out);align-items:center;border-radius:var(--sol-radius-4);color:var(--_foreground);cursor:var(--sol-cursor-interactive);display:inline-flex;gap:var(--_gap);justify-content:center;min-height:var(--_size);min-width:var(--_size);overflow:hidden;padding:var(--_padding);position:relative;text-align:center;transition-duration:var(--_duration);transition-property:background-color,color,opacity;user-select:none}.sol-c-button,.sol-c-button:before{background-color:var(--_background)}.sol-c-button:before{content:"";display:block;inset:0;opacity:0;position:absolute;transition-duration:var(--_duration-leave);transition-property:background-color,opacity;transition-timing-function:var(--_easing-leave);z-index:1}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-button:before{transform:scale(2) skewX(-45deg) translateX(-100%);transition-delay:0s,0s,var(--_duration-leave);transition-duration:var(--_duration-leave),var(--_duration-leave),0s;transition-property:background-color,opacity,transform}.sol-c-button:active:before,.sol-c-button:hover:before,.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before,[data-sol-button-group]:active:not(:has(.sol-c-button:active)) .sol-c-button--controlled:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{transform:scale(2) skewX(-45deg) translateX(0)}}.sol-c-button:hover:before,.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{opacity:1;transition-duration:var(--_duration-enter);transition-timing-function:var(--_easing-enter)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-button:hover:before,.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{transition-delay:0s;transition-duration:var(--_duration-enter),0s,var(--_duration-enter)}}.sol-c-button[aria-expanded=true],.sol-c-button[aria-pressed=true]{color:var(--_foreground-selected)}.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before{background-color:var(--_background-selected)}.sol-c-button:hover,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled{color:var(--_foreground-hovered)}.sol-c-button:hover:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{background-color:var(--_background-hovered)}.sol-c-button:active,[data-sol-button-group]:active:not(:has(.sol-c-button:active)) .sol-c-button--controlled{color:var(--_foreground-pressed)}.sol-c-button:active:before,[data-sol-button-group]:active:not(:has(.sol-c-button:active)) .sol-c-button--controlled:before{background-color:var(--_background-pressed)}.sol-c-button:disabled,.sol-c-button[aria-disabled=true]{opacity:.4;pointer-events:none}.sol-c-button--align-start{justify-content:flex-start;text-align:start}.sol-c-button--align-end{justify-content:flex-end;text-align:end}.sol-c-button--full-width{display:flex;inline-size:100%}.sol-c-button--negative{--_color-default:var(--sol-color-interactive-negative);--_color-hovered:var(--sol-color-interactive-negative-hovered);--_color-pressed:var(--sol-color-interactive-negative-pressed);--_color-selected:var(--sol-color-interactive-negative-selected)}.sol-c-button--notice{--_color-default:var(--sol-color-interactive-notice);--_color-hovered:var(--sol-color-interactive-notice-hovered);--_color-pressed:var(--sol-color-interactive-notice-pressed);--_color-selected:var(--sol-color-interactive-notice-selected)}.sol-c-button--positive{--_color-default:var(--sol-color-interactive-positive);--_color-hovered:var(--sol-color-interactive-positive-hovered);--_color-pressed:var(--sol-color-interactive-positive-pressed);--_color-selected:var(--sol-color-interactive-positive-selected)}.sol-c-button--monochrome,.sol-c-button--plain{--_background:var(--sol-color-interactive-opacity);--_background-hovered:var(--sol-color-interactive-opacity-hovered);--_background-pressed:var(--sol-color-interactive-opacity-pressed);--_background-selected:var(--sol-color-interactive-opacity-selected);background:#0000}.sol-c-button--monochrome:before,.sol-c-button--plain:before{background-color:var(--_background)}.sol-c-button--monochrome.sol-c-button:before,.sol-c-button--plain.sol-c-button:before{opacity:1;transform:none;transition:background-color var(--_duration)}.sol-c-button--monochrome{--_foreground:var(--sol-color-interactive-neutral);--_foreground-hovered:var(--sol-color-interactive-neutral-hovered);--_foreground-pressed:var(--sol-color-interactive-neutral-pressed);--_foreground-selected:var(--sol-color-interactive-neutral-selected)}.sol-c-button--plain{--_foreground:var(--_color-default);--_foreground-hovered:var(--_color-hovered);--_foreground-pressed:var(--_color-pressed);--_foreground-selected:var(--_color-selected)}.sol-c-button--small{--_size:var(--sol-c-button-size,var(--sol-size-150));--_padding:var(--sol-c-button-padding,var(--sol-size-0125) var(--sol-size-025));--_gap:var(--sol-c-button-gap,var(--sol-size-025))}.sol-c-button--large{--_size:var(--sol-c-button--size,var(--sol-size-300));--_padding:var(--sol-c-button-padding,var(--sol-size-050) var(--sol-size-100))}.sol-c-button__content{align-items:center;display:flex;gap:var(--_gap);min-inline-size:0}.sol-c-button__content,.sol-c-button__icon{position:relative;z-index:2}.sol-c-button--align-start .sol-c-button__icon--end{margin-inline-start:auto}.sol-c-button--align-end .sol-c-button__icon--start{margin-inline-end:auto}.sol-c-button__loading{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:3}.sol-c-button__content,.sol-c-button__icon{transition:opacity var(--_duration)}.sol-c-button__content[hidden],.sol-c-button__icon[hidden]{display:block;opacity:0}}'); + let fo = e => { var { title: t, titleId: n @@ -17369,7 +17207,7 @@ d: "M8.75 1.75V7h5.594v.006a.75.75 0 0 1 0 1.488V8.5H8.75v5.875h-.01a.75.75 0 0 1-1.48 0h-.01V8.5h-5.5c.001 0 0 0 0 0h-.094v-.006a.75.75 0 0 1 0-1.488V7H7.25V1.75a.75.75 0 0 1 1.5 0Z" })) }, - Yo = e => { + mo = e => { var { title: t, titleId: n @@ -17419,7 +17257,7 @@ d: "M14 4.75a.74.74 0 0 1-.163.466l.006.005-7.007 7.011a.747.747 0 0 1-1.139.01L2.182 8.724l.002-.002A.75.75 0 0 1 3.24 7.665l.012.01a.755.755 0 0 1 .05.051l2.96 2.962 6.418-6.423a.747.747 0 0 1 .087-.087l.017-.017.001.002A.75.75 0 0 1 14 4.75Z" })) }, - Qo = e => { + go = e => { var { title: t, titleId: n @@ -17473,7 +17311,7 @@ clipRule: "evenodd" })) }, - Zo = e => { + vo = e => { var { title: t, titleId: n @@ -17530,7 +17368,7 @@ pathLength: 1 })) }, - Xo = e => { + yo = e => { var { title: t, titleId: n @@ -17580,7 +17418,7 @@ d: "M12.006 2.8a.742.742 0 0 0 .232-.68.762.762 0 0 0-.884-.608.766.766 0 0 0-.328.14h-.001L4.05 7.403a.745.745 0 0 0-.056 1.147l.01.009a.758.758 0 0 0 .04.033l6.965 5.744c.166.13.385.191.61.152a.745.745 0 0 0 .33-1.335L5.702 8l6.256-5.158a.759.759 0 0 0 .04-.033l.009-.009Z" })) }, - Jo = e => { + _o = e => { var { title: t, titleId: n @@ -17630,7 +17468,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" })) }, - es = e => { + bo = e => { var { title: t, titleId: n @@ -17684,7 +17522,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" })) }, - ts = e => { + xo = e => { var { title: t, titleId: n @@ -17734,7 +17572,7 @@ d: "M13.199 12.006c.168.183.42.279.68.232a.762.762 0 0 0 .609-.884.767.767 0 0 0-.141-.329L8.598 4.05a.745.745 0 0 0-1.148-.056l-.008.01a.763.763 0 0 0-.033.04l-5.744 6.965a.772.772 0 0 0-.153.61.745.745 0 0 0 1.335.33L8 5.702l5.159 6.256.033.04.008.009Z" })) }, - ns = e => { + ko = e => { var { title: t, titleId: n @@ -17784,7 +17622,7 @@ d: "M2.8 3.994a.742.742 0 0 0-.68-.232.762.762 0 0 0-.608.884c.02.123.07.235.14.328l5.751 6.976a.745.745 0 0 0 1.147.056l.009-.01a.764.764 0 0 0 .032-.04l5.745-6.966a.772.772 0 0 0 .152-.61.745.745 0 0 0-1.335-.33L8 10.3 2.84 4.042a.762.762 0 0 0-.032-.04L2.8 3.995Z" })) }, - rs = e => { + wo = e => { var { title: t, titleId: n @@ -17838,7 +17676,7 @@ clipRule: "evenodd" })) }, - is = e => { + So = e => { var { title: t, titleId: n @@ -17890,7 +17728,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" })) }, - as = e => { + Eo = e => { var { title: t, titleId: n @@ -17947,7 +17785,7 @@ type: "rotate" }))) }, - os = e => { + Oo = e => { var { title: t, titleId: n @@ -17997,7 +17835,7 @@ d: "M2.773 8.75h-.016A.761.761 0 0 1 2 8a.76.76 0 0 1 .757-.75h10.309v.016a.799.799 0 0 1 .16-.016c.428 0 .774.336.774.75s-.346.75-.773.75a.799.799 0 0 1-.161-.016v.016H2.773Z" })) }, - ss = e => { + Io = e => { var { title: t, titleId: n @@ -18047,7 +17885,7 @@ d: "M13.065 15a.967.967 0 0 1-.684-1.65l.967-.968a.967.967 0 1 1 1.37 1.368l-.968.967a.967.967 0 0 1-.683.283h-.002Zm-5.452 0a.967.967 0 0 1-.683-1.65l6.418-6.42a.967.967 0 1 1 1.37 1.367l-6.42 6.42a.967.967 0 0 1-.683.283h-.002Zm-5.646 0a.967.967 0 0 1-.684-1.65L13.347 1.283a.968.968 0 0 1 1.368 1.367L2.65 14.717a.967.967 0 0 1-.683.283Z" })) }, - ls = e => { + Co = e => { var { title: t, titleId: n @@ -18103,7 +17941,7 @@ clipRule: "evenodd" })) }, - cs = e => { + Ao = e => { var { title: t, titleId: n @@ -18157,7 +17995,7 @@ d: "m6.778 10.864-1.495 1.103A7.293 7.293 0 0 0 8 12.5c2.991 0 5.572-1.908 6.785-4.082a.857.857 0 0 0 0-.836 7.855 7.855 0 0 0-1.275-1.683l-1.222.9c.388.37.726.776 1 1.201C12.23 9.642 10.221 11 8 11a5.62 5.62 0 0 1-1.222-.136Z" })) }, - us = e => { + Po = e => { var { title: t, titleId: n @@ -18211,7 +18049,7 @@ clipRule: "evenodd" })) }, - ds = e => { + To = e => { var { title: t, titleId: n @@ -18265,7 +18103,7 @@ d: "M12.724 5.072a.71.71 0 0 1 .231.17v.002c.331.36.594.789.773 1.26A4.2 4.2 0 0 1 14 7.995a4.2 4.2 0 0 1-.272 1.49c-.179.472-.442.9-.773 1.261a.71.71 0 0 1-.23.169.66.66 0 0 1-.273.06.682.682 0 0 1-.503-.228.786.786 0 0 1-.155-.252.841.841 0 0 1 .154-.849 2.36 2.36 0 0 0 .463-.758 2.526 2.526 0 0 0 0-1.788 2.36 2.36 0 0 0-.463-.758.788.788 0 0 1-.154-.253.842.842 0 0 1 .155-.848.712.712 0 0 1 .23-.168.66.66 0 0 1 .545 0Z" })) }, - ps = e => { + Ro = e => { var { title: t, titleId: n @@ -18321,7 +18159,7 @@ clipRule: "evenodd" })) }, - hs = e => { + Do = e => { var { title: t, titleId: n @@ -18376,7 +18214,7 @@ })) }; - function fs() { + function Lo() { for (var e, t, n = 0, r = ""; n < arguments.length;)(e = arguments[n++]) && (t = function e(t) { var n, r, i = ""; if ("string" == typeof t || "number" == typeof t) i += t; @@ -18389,8 +18227,8 @@ }(e)) && (r && (r += " "), r += t); return r } - let ms = e => (0, Ee.forwardRef)(e), - gs = (...e) => t => e.forEach((e => { + let No = e => (0, Ee.forwardRef)(e), + jo = (...e) => t => e.forEach((e => { ((e, t) => { if (null != e) { if ("function" == typeof e) return void e(t); @@ -18402,7 +18240,7 @@ } })(e, t) })), - vs = (...e) => { + Mo = (...e) => { let t = { ...e[0] }; @@ -18416,40 +18254,41 @@ ...i } : "o" === e[0] && "n" === e[1] && e.charCodeAt(2) >= 65 && 90 >= e.charCodeAt(2) && "function" == typeof n && "function" == typeof i ? t[e] = (...e) => { n(...e), i(...e) - } : t[e] = "ref" === e ? gs(n, i) : i ?? n + } : t[e] = "ref" === e ? jo(n, i) : i ?? n } } return t }, - ys = (e, t = []) => { + Fo = (e, t = []) => { let n = (0, Ee.useRef)(e); return (0, Ee.useEffect)((() => { n.current = e })), (0, Ee.useCallback)(((...e) => n.current?.(...e)), t) }, - _s = ({ + zo = ({ value: e, defaultValue: t, onChange: n, shouldUpdate: r = ((e, t) => e !== t) }) => { - let i = ys(n, []), - a = ys(r), + let i = Fo(n, []), + a = Fo(r), [o, s] = (0, Ee.useState)(t), l = void 0 !== e, c = l ? e : o, - u = ys((e => { + u = Fo((e => { let t = "function" == typeof e ? e(c) : e; a(c, t) && (l || s(t), i(t)) }), [l, i, c, a]); return [c, u, l] - }; + }, + Vo = "undefined" != typeof document ? Ee.useLayoutEffect : Ee.useEffect; - function bs(e, t, n) { + function Uo(e, t, n) { return e[t] ? e[t][0] ? e[t][0][n] : e[t][n] : "contentBoxSize" === t ? e.contentRect["inlineSize" === n ? "width" : "height"] : void 0 } - function xs(e) { + function Bo(e) { void 0 === e && (e = {}); var t, n, r, i, a, o, s = e.onResize, l = (0, Ee.useRef)(void 0); @@ -18480,8 +18319,8 @@ instance: new ResizeObserver((function(t) { var n = t[0], r = "border-box" === e.box ? "borderBoxSize" : "device-pixel-content-box" === e.box ? "devicePixelContentBoxSize" : "contentBoxSize", - i = bs(n, r, "inlineSize"), - a = bs(n, r, "blockSize"), + i = Uo(n, r, "inlineSize"), + a = Uo(n, r, "blockSize"), o = i ? c(i) : void 0, s = a ? c(a) : void 0; if (m.current.width !== o || m.current.height !== s) { @@ -18524,7 +18363,7 @@ } }), [g, p.width, p.height]) } - let ks = ({ + let Go = ({ content: e, ref: t } = {}) => { @@ -18543,7 +18382,7 @@ }) } }), [o]); - return xs({ + return Bo({ ref: o, onResize: s }), (0, Ee.useEffect)(s, [e, s]), (0, Ee.useMemo)((() => ({ @@ -18552,26 +18391,26 @@ ...n })), [i, o, n]) }, - ws = e => { + $o = e => { let t = (0, Ee.useId)(); return e ?? t }, - Ss = "loading", - Es = "loaded", - Is = "error", - Os = ({ + qo = "loading", + Wo = "loaded", + Ho = "error", + Ko = ({ crossOrigin: e, src: t, srcSet: n }) => { - let [r, i] = (0, Ee.useState)(Ss); + let [r, i] = (0, Ee.useState)(qo); return (0, Ee.useEffect)((() => { - if (!t && !n) return void i(Is); + if (!t && !n) return void i(Ho); let r = () => { - i(Es) + i(Wo) }, a = () => { - i(Is) + i(Ho) }, o = new Image; return e && (o.crossOrigin = e), t && (o.src = t), n && (o.srcset = n), o.addEventListener("load", r), o.addEventListener("error", a), () => { @@ -18579,13 +18418,12 @@ } }), [e, t, n]), r }, - Cs = "undefined" != typeof document ? Ee.useLayoutEffect : Ee.useEffect, - As = (0, Ee.createContext)(void 0), - Ps = As.Provider; - var Ts = { + Yo = (0, Ee.createContext)(void 0), + Qo = Yo.Provider; + var Zo = { exports: {} }; - Uo = Ts.exports, "undefined" != typeof navigator && (Ts.exports = function() { + oo = Zo.exports, "undefined" != typeof navigator && (Zo.exports = function() { var e, t, n, r, i, a, o, s, l, c, u = "", d = !1, p = function() { @@ -18694,8 +18532,8 @@ w = Math.sqrt, S = Math.floor, E = Math.min, - I = 150, - O = Math.PI / 180; + O = 150, + I = Math.PI / 180; function C(e, t, n, r) { this.type = e, this.currentTime = t, this.totalTime = n, this.direction = r < 0 ? -1 : 1 @@ -18728,7 +18566,7 @@ return b + "__lottie_element_" + (e += 1) }); - function M(e, t, n) { + function j(e, t, n) { var r, i, a, 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: @@ -18752,7 +18590,7 @@ return [r, i, a] } - function j(e, t, n) { + function M(e, t, n) { var r, i = Math.max(e, t, n), a = Math.min(e, t, n), o = i - a; @@ -18773,18 +18611,18 @@ } function F(e, t) { - var n = j(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), M(n[0], n[1], n[2]) + 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), j(n[0], n[1], n[2]) } function z(e, t) { - var n = j(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), M(n[0], n[1], n[2]) + 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), j(n[0], n[1], n[2]) } function V(e, t) { - var n = j(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), M(n[0], n[1], n[2]) + 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), 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 @@ -18793,24 +18631,24 @@ return _ }, B = function(e) { - I = e + O = e }, G = function() { - return I + return O }; - function W(e) { + function $(e) { return document.createElementNS("http://www.w3.org/2000/svg", e) } - function $(e) { - return ($ = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + function q(e) { + return (q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { return typeof e } : function(e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e })(e) } - var q = function() { + var W = function() { var e, t, n = 1, r = [], i = { @@ -19064,7 +18902,7 @@ }()), a.assetLoader || (a.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 t && "json" === e.responseType && -1 !== t.indexOf("json") || e.response && "object" === q(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, i) { @@ -19199,7 +19037,7 @@ assetData: e }, n = a(e, this.assetsPath, this.path); - return q.loadData(n, function(e) { + return W.loadData(n, function(e) { t.img = e, this._footageLoaded() }.bind(this), function() { t.img = {}, this._footageLoaded() @@ -19251,7 +19089,7 @@ }, createImageData: function(e) { var t = a(e, this.assetsPath, this.path), - r = W("image"); + r = $("image"); x ? this.testImageLoaded(r) : r.addEventListener("load", this._imageLoaded, !1), r.addEventListener("error", function() { i.img = n, this._imageLoaded() }.bind(this), !1), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", t), this._elementHelper.append ? this._elementHelper.append(r) : this._elementHelper.appendChild(r); @@ -19322,11 +19160,11 @@ var t = "svg"; e.animType ? t = e.animType : e.renderer && (t = e.renderer); var n = Q[t]; - this.renderer = new n(this, e.rendererSettings), this.imagePreloader.setCacheType(t, this.renderer.globalData.defs), this.renderer.setProjectInterface(this.projectInterface), this.animType = t, "" === e.loop || null === e.loop || void 0 === e.loop || !0 === e.loop ? this.loop = !0 : !1 === e.loop ? this.loop = !1 : this.loop = parseInt(e.loop, 10), this.autoplay = !("autoplay" in e) || e.autoplay, this.name = e.name ? e.name : "", this.autoloadSegments = !Object.prototype.hasOwnProperty.call(e, "autoloadSegments") || e.autoloadSegments, this.assetsPath = e.assetsPath, this.initialSegment = e.initialSegment, e.audioFactory && this.audioController.setAudioFactory(e.audioFactory), e.animationData ? this.setupAnimation(e.animationData) : e.path && (-1 !== e.path.lastIndexOf("\\") ? this.path = e.path.substr(0, e.path.lastIndexOf("\\") + 1) : this.path = e.path.substr(0, e.path.lastIndexOf("/") + 1), this.fileName = e.path.substr(e.path.lastIndexOf("/") + 1), this.fileName = this.fileName.substr(0, this.fileName.lastIndexOf(".json")), q.loadAnimation(e.path, this.configAnimation, this.onSetupError)) + this.renderer = new n(this, e.rendererSettings), this.imagePreloader.setCacheType(t, this.renderer.globalData.defs), this.renderer.setProjectInterface(this.projectInterface), this.animType = t, "" === e.loop || null === e.loop || void 0 === e.loop || !0 === e.loop ? this.loop = !0 : !1 === e.loop ? this.loop = !1 : this.loop = parseInt(e.loop, 10), this.autoplay = !("autoplay" in e) || e.autoplay, this.name = e.name ? e.name : "", this.autoloadSegments = !Object.prototype.hasOwnProperty.call(e, "autoloadSegments") || e.autoloadSegments, this.assetsPath = e.assetsPath, this.initialSegment = e.initialSegment, e.audioFactory && this.audioController.setAudioFactory(e.audioFactory), e.animationData ? this.setupAnimation(e.animationData) : e.path && (-1 !== e.path.lastIndexOf("\\") ? this.path = e.path.substr(0, e.path.lastIndexOf("\\") + 1) : this.path = e.path.substr(0, e.path.lastIndexOf("/") + 1), this.fileName = e.path.substr(e.path.lastIndexOf("/") + 1), this.fileName = this.fileName.substr(0, this.fileName.lastIndexOf(".json")), W.loadAnimation(e.path, this.configAnimation, this.onSetupError)) }, X.prototype.onSetupError = function() { this.trigger("data_failed") }, X.prototype.setupAnimation = function(e) { - q.completeAnimation(e, this.configAnimation) + W.completeAnimation(e, this.configAnimation) }, X.prototype.setData = function(e, t) { t && "object" !== Z(t) && (t = JSON.parse(t)); var n = { @@ -19360,7 +19198,7 @@ } if ((e.chars || e.fonts) && (this.renderer.globalData.fontManager.addChars(e.chars), this.renderer.globalData.fontManager.addFonts(e.fonts, this.renderer.globalData.defs)), e.assets) for (t = 0, i = e.assets.length; t < i; t += 1) this.animationData.assets.push(e.assets[t]); - this.animationData.__complete = !1, q.completeAnimation(this.animationData, this.onSegmentComplete) + this.animationData.__complete = !1, W.completeAnimation(this.animationData, this.onSegmentComplete) }, X.prototype.onSegmentComplete = function(e) { this.animationData = e; var t = U(); @@ -19371,7 +19209,7 @@ var t = e.shift(); this.timeCompleted = t.time * this.frameRate; var n = this.path + this.fileName + "_" + this.segmentPos + ".json"; - this.segmentPos += 1, q.loadData(n, this.includeLayers.bind(this), function() { + this.segmentPos += 1, W.loadData(n, this.includeLayers.bind(this), function() { this.trigger("data_failed") }.bind(this)) }, X.prototype.loadSegments = function() { @@ -19858,13 +19696,13 @@ w = d * d * p, S = f * m * m, E = d * m * m + f * p * m + f * m * p, - I = d * p * m + f * p * p + d * m * p, - O = d * p * p, + O = d * p * m + f * p * p + d * m * p, + I = d * p * p, C = m * m * m, A = p * m * m + m * p * m + m * m * p, P = 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 * i[u] + _ * n[u])) / 1e3, l[4 * u + 1] = t.round(1e3 * (b * e[u] + x * r[u] + k * i[u] + w * n[u])) / 1e3, l[4 * u + 2] = t.round(1e3 * (S * e[u] + E * r[u] + I * i[u] + O * n[u])) / 1e3, l[4 * u + 3] = t.round(1e3 * (C * e[u] + A * r[u] + P * i[u] + T * n[u])) / 1e3; + for (u = 0; u < h; u += 1) l[4 * u] = t.round(1e3 * (g * e[u] + v * r[u] + y * i[u] + _ * n[u])) / 1e3, l[4 * u + 1] = t.round(1e3 * (b * e[u] + x * r[u] + k * i[u] + w * n[u])) / 1e3, l[4 * u + 2] = t.round(1e3 * (S * e[u] + E * r[u] + O * i[u] + I * n[u])) / 1e3, l[4 * u + 3] = t.round(1e3 * (C * e[u] + A * r[u] + P * i[u] + T * n[u])) / 1e3; return l }, getPointInSegment: function(e, n, r, i, a, o) { @@ -19886,9 +19724,9 @@ oe = Math.abs; function se(e, t) { - var n, r, i, a, o, s, l, c, u, d, p, h, f, m, v, y, _, b, x, k, w, S, E, I, C, A, P, T, R = this.offsetTime; + var n, r, i, a, o, s, l, c, u, d, p, h, f, m, v, y, _, b, x, k, w, S, E, O, C, A, P, T, R = this.offsetTime; "multidimensional" === this.propType && (U = g("float32", this.pv.length)); - for (var D = t.lastIndex, L = D, N = this.keyframes.length - 1, M = !0; M;) { + for (var D = t.lastIndex, L = D, N = this.keyframes.length - 1, j = !0; j;) { if (B = this.keyframes[L], G = this.keyframes[L + 1], L === N - 1 && e >= G.t - R) { B.h && (B = G), D = 0; break @@ -19897,44 +19735,44 @@ D = L; break } - L < N - 1 ? L += 1 : (D = 0, M = !1) + L < N - 1 ? L += 1 : (D = 0, j = !1) } - W = this.keyframesMetadata[L] || {}; - var j = G.t - R, + $ = this.keyframesMetadata[L] || {}; + var M = G.t - R, F = B.t - R; if (B.to) { - W.bezierData || (W.bezierData = ae.buildBezierData(B.s, G.s || B.e, B.to, B.ti)); - var z = W.bezierData; - if (e >= j || e < F) { - var V = e >= j ? z.points.length - 1 : 0; - for ($ = 0, q = z.points[V].point.length; $ < q; $ += 1) U[$] = z.points[V].point[$] + $.bezierData || ($.bezierData = ae.buildBezierData(B.s, G.s || B.e, B.to, B.ti)); + var z = $.bezierData; + if (e >= M || e < F) { + var V = e >= M ? z.points.length - 1 : 0; + for (q = 0, W = z.points[V].point.length; q < W; q += 1) U[q] = z.points[V].point[q] } else { - W.__fnct ? Q = W.__fnct : (Q = ee.getBezierEasing(B.o.x, B.o.y, B.i.x, B.i.y, B.n).get, W.__fnct = Q), H = Q((e - F) / (j - F)); - var U, B, G, W, $, q, H, K, Y, Q, Z, X, J = z.segmentLength * H, + $.__fnct ? Q = $.__fnct : (Q = ee.getBezierEasing(B.o.x, B.o.y, B.i.x, B.i.y, B.n).get, $.__fnct = Q), H = Q((e - F) / (M - F)); + var U, B, G, $, q, W, H, K, Y, Q, Z, X, J = z.segmentLength * H, te = t.lastFrame < e && t._lastKeyframeIndex === L ? t._lastAddedLength : 0; - for (Y = t.lastFrame < e && t._lastKeyframeIndex === L ? t._lastPoint : 0, M = !0, K = z.points.length; M;) { + for (Y = t.lastFrame < e && t._lastKeyframeIndex === L ? t._lastPoint : 0, j = !0, K = z.points.length; j;) { if (te += z.points[Y].partialLength, 0 === J || 0 === H || Y === z.points.length - 1) { - for ($ = 0, q = z.points[Y].point.length; $ < q; $ += 1) U[$] = z.points[Y].point[$]; + for (q = 0, W = z.points[Y].point.length; q < W; q += 1) U[q] = z.points[Y].point[q]; break } if (J >= te && J < te + z.points[Y + 1].partialLength) { - for ($ = 0, X = (J - te) / z.points[Y + 1].partialLength, q = z.points[Y].point.length; $ < q; $ += 1) U[$] = z.points[Y].point[$] + (z.points[Y + 1].point[$] - z.points[Y].point[$]) * X; + for (q = 0, X = (J - te) / z.points[Y + 1].partialLength, W = z.points[Y].point.length; q < W; q += 1) U[q] = z.points[Y].point[q] + (z.points[Y + 1].point[q] - z.points[Y].point[q]) * X; break } - Y < K - 1 ? Y += 1 : M = !1 + Y < K - 1 ? Y += 1 : j = !1 } t._lastPoint = Y, t._lastAddedLength = te - z.points[Y].partialLength, t._lastKeyframeIndex = L } - } else if (N = B.s.length, Z = G.s || B.e, this.sh && 1 !== B.h) e >= j ? (U[0] = Z[0], U[1] = Z[1], U[2] = Z[2]) : e <= F ? (U[0] = B.s[0], U[1] = B.s[1], U[2] = B.s[2]) : (b = U, k = (n = le(B.s), r = le(Z), i = (e - F) / (j - F), 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(a = Math.acos(o)), l = Math.sin((1 - i) * a) / s, c = Math.sin(i * a) / s) : (l = 1 - i, c = i), 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], w = x[1], S = x[2], E = x[3], b[0] = Math.atan2(2 * w * E - 2 * k * S, 1 - 2 * w * w - 2 * S * S) / O, b[1] = Math.asin(2 * k * w + 2 * S * E) / O, b[2] = Math.atan2(2 * k * E - 2 * w * S, 1 - 2 * k * k - 2 * S * S) / O); + } else if (N = B.s.length, Z = G.s || B.e, this.sh && 1 !== B.h) e >= M ? (U[0] = Z[0], U[1] = Z[1], U[2] = Z[2]) : e <= F ? (U[0] = B.s[0], U[1] = B.s[1], U[2] = B.s[2]) : (b = U, k = (n = le(B.s), r = le(Z), i = (e - F) / (M - F), 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(a = Math.acos(o)), l = Math.sin((1 - i) * a) / s, c = Math.sin(i * a) / s) : (l = 1 - i, c = i), 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], w = x[1], S = x[2], E = x[3], b[0] = Math.atan2(2 * w * E - 2 * k * S, 1 - 2 * w * w - 2 * S * S) / I, b[1] = Math.asin(2 * k * w + 2 * S * E) / I, b[2] = Math.atan2(2 * k * E - 2 * w * S, 1 - 2 * k * k - 2 * S * S) / I); else - for (L = 0; L < N; L += 1) 1 !== B.h && (e >= j ? H = 1 : e < F ? H = 0 : (B.o.x.constructor === Array ? (W.__fnct || (W.__fnct = []), W.__fnct[L] ? Q = W.__fnct[L] : (I = void 0 === B.o.x[L] ? B.o.x[0] : B.o.x[L], C = void 0 === B.o.y[L] ? B.o.y[0] : B.o.y[L], A = void 0 === B.i.x[L] ? B.i.x[0] : B.i.x[L], P = void 0 === B.i.y[L] ? B.i.y[0] : B.i.y[L], Q = ee.getBezierEasing(I, C, A, P).get, W.__fnct[L] = Q)) : W.__fnct ? Q = W.__fnct : (I = B.o.x, C = B.o.y, A = B.i.x, P = B.i.y, Q = ee.getBezierEasing(I, C, A, P).get, B.keyframeMetadata = Q), H = Q((e - F) / (j - F)))), Z = G.s || B.e, T = 1 === B.h ? B.s[L] : B.s[L] + (Z[L] - B.s[L]) * H, "multidimensional" === this.propType ? U[L] = T : U = T; + for (L = 0; L < N; L += 1) 1 !== B.h && (e >= M ? H = 1 : e < F ? H = 0 : (B.o.x.constructor === Array ? ($.__fnct || ($.__fnct = []), $.__fnct[L] ? Q = $.__fnct[L] : (O = void 0 === B.o.x[L] ? B.o.x[0] : B.o.x[L], C = void 0 === B.o.y[L] ? B.o.y[0] : B.o.y[L], A = void 0 === B.i.x[L] ? B.i.x[0] : B.i.x[L], P = void 0 === B.i.y[L] ? B.i.y[0] : B.i.y[L], Q = ee.getBezierEasing(O, C, A, P).get, $.__fnct[L] = Q)) : $.__fnct ? Q = $.__fnct : (O = B.o.x, C = B.o.y, A = B.i.x, P = B.i.y, Q = ee.getBezierEasing(O, C, A, P).get, B.keyframeMetadata = Q), H = Q((e - F) / (M - F)))), Z = G.s || B.e, T = 1 === B.h ? B.s[L] : B.s[L] + (Z[L] - B.s[L]) * H, "multidimensional" === this.propType ? U[L] = T : U = T; return t.lastIndex = D, U } function le(e) { - var t = e[0] * O, - n = e[1] * O, - r = e[2] * O, + var t = e[0] * I, + n = e[1] * I, + r = e[2] * I, i = Math.cos(t / 2), a = Math.cos(n / 2), o = Math.cos(r / 2), @@ -20211,7 +20049,7 @@ }(), c = function() { function e(e, t) { - this.v = xe.newElement(), this.v.setPathData(!0, 0), this.elem = e, this.comp = e.comp, this.data = t, this.frameId = -1, this.d = t.d, this.initDynamicPropertyContainer(e), 1 === t.sy ? (this.ir = ve.getProp(e, t.ir, 0, 0, this), this.is = ve.getProp(e, t.is, 0, .01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = ve.getProp(e, t.pt, 0, 0, this), this.p = ve.getProp(e, t.p, 1, 0, this), this.r = ve.getProp(e, t.r, 0, O, this), this.or = ve.getProp(e, t.or, 0, 0, this), this.os = ve.getProp(e, t.os, 0, .01, this), this.localShapeCollection = we.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath()) + this.v = xe.newElement(), this.v.setPathData(!0, 0), this.elem = e, this.comp = e.comp, this.data = t, this.frameId = -1, this.d = t.d, this.initDynamicPropertyContainer(e), 1 === t.sy ? (this.ir = ve.getProp(e, t.ir, 0, 0, this), this.is = ve.getProp(e, t.is, 0, .01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = ve.getProp(e, t.pt, 0, 0, this), this.p = ve.getProp(e, t.p, 1, 0, this), this.r = ve.getProp(e, t.r, 0, I, this), this.or = ve.getProp(e, t.or, 0, 0, this), this.os = ve.getProp(e, t.os, 0, .01, this), this.localShapeCollection = we.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath()) } return e.prototype = { reset: n, @@ -20369,14 +20207,14 @@ w = g[6], S = g[7], E = g[8], - I = g[9], - O = g[10], + O = g[9], + I = g[10], C = g[11], A = g[12], P = g[13], T = g[14], R = g[15]; - return g[0] = v * e + y * i + _ * l + b * p, g[1] = v * t + y * a + _ * 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 + k * i + w * l + S * p, g[5] = x * t + k * a + w * c + S * h, g[6] = x * n + k * o + w * u + S * f, g[7] = x * r + k * s + w * d + S * m, g[8] = E * e + I * i + O * l + C * p, g[9] = E * t + I * a + O * c + C * h, g[10] = E * n + I * o + O * u + C * f, g[11] = E * r + I * s + O * d + C * m, g[12] = A * e + P * i + T * l + R * p, g[13] = A * t + P * a + T * c + R * h, g[14] = A * n + P * o + T * u + R * f, g[15] = A * r + P * s + T * d + R * m, this._identityCalculated = !1, this + return g[0] = v * e + y * i + _ * l + b * p, g[1] = v * t + y * a + _ * 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 + k * i + w * l + S * p, g[5] = x * t + k * a + w * c + S * h, g[6] = x * n + k * o + w * u + S * f, g[7] = x * r + k * s + w * d + S * m, g[8] = E * e + O * i + I * l + C * p, g[9] = E * t + O * a + I * c + C * h, g[10] = E * n + O * o + I * u + C * f, g[11] = E * r + O * s + I * d + C * m, g[12] = A * e + P * i + T * l + R * p, g[13] = A * t + P * a + T * c + R * h, g[14] = A * n + P * o + T * u + R * f, g[15] = A * r + P * s + T * d + R * m, this._identityCalculated = !1, this } function v(e) { @@ -20427,7 +20265,7 @@ return e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14] } - function I() { + function O() { var e = this.props[0] * this.props[5] - this.props[1] * this.props[4], t = this.props[5] / e, n = -this.props[1] / e, @@ -20439,14 +20277,14 @@ return s.props[0] = t, s.props[1] = n, s.props[4] = r, s.props[5] = i, s.props[12] = a, s.props[13] = o, s } - function O(e) { + function I(e) { return this.getInverseMatrix().applyToPointArray(e[0], e[1], e[2] || 0) } function C(e) { var t, n = e.length, r = []; - for (t = 0; t < n; t += 1) r[t] = O(e[t]); + for (t = 0; t < n; t += 1) r[t] = I(e[t]); return r } @@ -20489,33 +20327,33 @@ return "matrix(" + D(e[0]) + "," + D(e[1]) + "," + D(e[4]) + "," + D(e[5]) + "," + D(e[12]) + "," + D(e[13]) + ")" } return function() { - this.reset = i, this.rotate = a, 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 = k, this.applyToX = w, this.applyToY = S, this.applyToZ = E, this.applyToPointArray = P, this.applyToTriplePoints = A, this.applyToPointStringified = T, this.toCSS = R, this.to2dCSS = L, this.clone = b, this.cloneFromProps = x, this.equals = _, this.inversePoints = C, this.inversePoint = O, this.getInverseMatrix = I, this._t = this.transform, this.isIdentity = y, this._identity = !0, this._identityCalculated = !1, this.props = g("float32", 16), this.reset() + this.reset = i, this.rotate = a, 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 = k, this.applyToX = w, this.applyToY = S, this.applyToZ = E, this.applyToPointArray = P, this.applyToTriplePoints = A, this.applyToPointStringified = T, this.toCSS = R, this.to2dCSS = L, this.clone = b, this.cloneFromProps = x, this.equals = _, this.inversePoints = C, this.inversePoint = I, this.getInverseMatrix = O, this._t = this.transform, this.isIdentity = y, this._identity = !0, this._identityCalculated = !1, this.props = g("float32", 16), this.reset() } }(); - function Ie(e) { - return (Ie = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + function Oe(e) { + return (Oe = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { return typeof e } : function(e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e })(e) } - var Oe = {}; + var Ie = {}; function Ce() { J.searchAnimations() } - Oe.play = J.play, Oe.pause = J.pause, Oe.setLocationHref = function(e) { + Ie.play = J.play, Ie.pause = J.pause, Ie.setLocationHref = function(e) { ! function(e) { u = e }(e) - }, Oe.togglePause = J.togglePause, Oe.setSpeed = J.setSpeed, Oe.setDirection = J.setDirection, Oe.stop = J.stop, Oe.searchAnimations = Ce, Oe.registerAnimation = J.registerAnimation, Oe.loadAnimation = function(e) { + }, Ie.togglePause = J.togglePause, Ie.setSpeed = J.setSpeed, Ie.setDirection = J.setDirection, Ie.stop = J.stop, Ie.searchAnimations = Ce, Ie.registerAnimation = J.registerAnimation, Ie.loadAnimation = function(e) { return J.loadAnimation(e) - }, Oe.setSubframeRendering = function(e) { + }, Ie.setSubframeRendering = function(e) { ! function(e) { y = !!e }(e) - }, Oe.resize = J.resize, Oe.goToAndStop = J.goToAndStop, Oe.destroy = J.destroy, Oe.setQuality = function(e) { + }, Ie.resize = J.resize, Ie.goToAndStop = J.goToAndStop, Ie.destroy = J.destroy, Ie.setQuality = function(e) { if ("string" == typeof e) switch (e) { case "high": B(200); @@ -20527,19 +20365,19 @@ case "low": B(10) } else !isNaN(e) && e > 1 && B(e) - }, Oe.inBrowser = function() { + }, Ie.inBrowser = function() { return "undefined" != typeof navigator - }, Oe.installPlugin = function(e, t) { + }, Ie.installPlugin = function(e, t) { "expressions" === e && function(e) { _ = e }(t) - }, Oe.freeze = J.freeze, Oe.unfreeze = J.unfreeze, Oe.setVolume = J.setVolume, Oe.mute = J.mute, Oe.unmute = J.unmute, Oe.getRegisteredAnimations = J.getRegisteredAnimations, Oe.useWebWorker = function(e) { + }, Ie.freeze = J.freeze, Ie.unfreeze = J.unfreeze, Ie.setVolume = J.setVolume, Ie.mute = J.mute, Ie.unmute = J.unmute, Ie.getRegisteredAnimations = J.getRegisteredAnimations, Ie.useWebWorker = function(e) { d = !!e - }, Oe.setIDPrefix = function(e) { + }, Ie.setIDPrefix = function(e) { ! function(e) { b = e }(e) - }, Oe.__getFactory = function(e) { + }, Ie.__getFactory = function(e) { switch (e) { case "propertyFactory": return ve; @@ -20550,7 +20388,7 @@ default: return null } - }, Oe.version = "5.12.2"; + }, Ie.version = "5.12.2"; var Ae = "", Pe = document.getElementsByTagName("script"), Te = Pe[Pe.length - 1] || { @@ -20567,7 +20405,7 @@ "complete" === document.readyState && (clearInterval(Re), Ce()) }), 100); try { - "object" !== Ie(Uo) && (window.bodymovin = Oe) + "object" !== Oe(oo) && (window.bodymovin = Ie) } catch (e) {} var De = (o = {}, (a = {}).registerModifier = function(e, t) { o[e] || (o[e] = t) @@ -20579,7 +20417,7 @@ function Ne() {} - function Me() {} + function je() {} Le.prototype.initModifierProperties = function() {}, Le.prototype.addShapeToModifier = function() {}, Le.prototype.addShape = function(e) { if (!this.closed) { e.sh.container.addDynamicProperty(e.sh); @@ -20716,9 +20554,9 @@ r < h - 1 && (n = xe.newElement(), g = !0, m.push(n), s = 0) } return m - }, f([Le], Me), Me.prototype.initModifierProperties = function(e, t) { + }, f([Le], 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 - }, Me.prototype.processPath = function(e, t) { + }, je.prototype.processPath = function(e, t) { var n, r, i, a, o, s, l = t / 100, c = [0, 0], u = e._length, @@ -20728,7 +20566,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, i = e.o[d][0] + -(c[0] - e.o[d][0]) * l, a = 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, i, a, o, s, d); return p - }, Me.prototype.processShapes = function(e) { + }, je.prototype.processShapes = function(e) { var t, n, r, i, a, o, s = this.shapes.length, l = this.amount.v; if (0 !== l) @@ -20739,22 +20577,22 @@ } this.dynamicProperties.length || (this._mdf = !1) }; - var je = function() { + var Me = function() { var e = [0, 0]; function t(e, t, n) { if (this.elem = e, this.frameId = -1, this.propType = "transform", this.data = t, this.v = new Ee, this.pre = new Ee, 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) { - if (this.rx = ve.getProp(e, t.rx, 0, O, this), this.ry = ve.getProp(e, t.ry, 0, O, this), this.rz = ve.getProp(e, t.rz, 0, O, this), t.or.k[0].ti) { + if (this.rx = ve.getProp(e, t.rx, 0, I, this), this.ry = ve.getProp(e, t.ry, 0, I, this), this.rz = ve.getProp(e, t.rz, 0, I, this), t.or.k[0].ti) { var r, i = t.or.k.length; for (r = 0; r < i; r += 1) t.or.k[r].to = null, t.or.k[r].ti = null } - this.or = ve.getProp(e, t.or, 1, O, this), this.or.sh = !0 + this.or = ve.getProp(e, t.or, 1, I, this), this.or.sh = !0 } else this.r = ve.getProp(e, t.r || { k: 0 - }, 0, O, this); - t.sk && (this.sk = ve.getProp(e, t.sk, 0, O, this), this.sa = ve.getProp(e, t.sa, 0, O, this)), this.a = ve.getProp(e, t.a || { + }, 0, I, this); + t.sk && (this.sk = ve.getProp(e, t.sk, 0, I, this), this.sa = ve.getProp(e, t.sa, 0, I, this)), this.a = ve.getProp(e, t.a || { k: [0, 0, 0] }, 1, 0, this), this.s = ve.getProp(e, t.s || { k: [100, 100, 100] @@ -20826,18 +20664,18 @@ return [3 * t - e - 3 * n + r, 3 * e - 6 * t + 3 * n, -3 * e + 3 * t, e] } - function We(e) { - return new $e(e, e, e, e, !1) + function $e(e) { + return new qe(e, e, e, e, !1) } - function $e(e, t, n, r, i) { + function qe(e, t, n, r, i) { i && Je(e, t) && (t = Be(e, r, 1 / 3)), i && Je(n, r) && (n = Be(e, r, 2 / 3)); var a = Ge(e[0], t[0], n[0], r[0]), o = Ge(e[1], t[1], n[1], r[1]); this.a = [a[0], o[0]], this.b = [a[1], o[1]], this.c = [a[2], o[2]], this.d = [a[3], o[3]], this.points = [e, t, n, r] } - function qe(e, t) { + function We(e, t) { var n = e.points[0][t], r = e.points[e.points.length - 1][t]; if (n > r) { @@ -20936,7 +20774,7 @@ var n, r, i, a, o, s, l, c = Qe(n, r, i, a); null === c && (c = r); var u = Qe(o, s, i, a); - return null === u && (u = o), new $e(n, c, u, s) + return null === u && (u = o), new qe(n, c, u, s) } function at(e, t, n, r, i) { @@ -21009,7 +20847,7 @@ } } f([Le], Fe), Fe.prototype.initModifierProperties = function(e, t) { - this.getValue = this.processKeys, this.c = ve.getProp(e, t.c, 0, null, this), this.o = ve.getProp(e, t.o, 0, null, this), this.tr = je.getTransformProperty(e, t.tr, this), this.so = ve.getProp(e, t.tr.so, 0, .01, this), this.eo = ve.getProp(e, t.tr.eo, 0, .01, this), this.data = t, this.dynamicProperties.length || this.getValue(!0), this._isAnimated = !!this.dynamicProperties.length, this.pMatrix = new Ee, this.rMatrix = new Ee, this.sMatrix = new Ee, this.tMatrix = new Ee, this.matrix = new Ee + this.getValue = this.processKeys, this.c = ve.getProp(e, t.c, 0, null, this), this.o = ve.getProp(e, t.o, 0, null, this), this.tr = Me.getTransformProperty(e, t.tr, this), this.so = ve.getProp(e, t.tr.so, 0, .01, this), this.eo = ve.getProp(e, t.tr.eo, 0, .01, this), this.data = t, this.dynamicProperties.length || this.getValue(!0), this._isAnimated = !!this.dynamicProperties.length, this.pMatrix = new Ee, this.rMatrix = new Ee, this.sMatrix = new Ee, this.tMatrix = new Ee, this.matrix = new Ee }, Fe.prototype.applyTransforms = function(e, t, n, r, i, a) { var o = a ? -1 : 1, s = r.s.v[0] + (1 - r.s.v[0]) * (1 - i), @@ -21141,17 +20979,17 @@ a.shape.paths = a.localShapeCollection } this.dynamicProperties.length || (this._mdf = !1) - }, $e.prototype.point = function(e) { + }, qe.prototype.point = function(e) { return [((this.a[0] * e + this.b[0]) * e + this.c[0]) * e + this.d[0], ((this.a[1] * e + this.b[1]) * e + this.c[1]) * e + this.d[1]] - }, $e.prototype.derivative = function(e) { + }, qe.prototype.derivative = function(e) { return [(3 * e * this.a[0] + 2 * this.b[0]) * e + this.c[0], (3 * e * this.a[1] + 2 * this.b[1]) * e + this.c[1]] - }, $e.prototype.tangentAngle = function(e) { + }, qe.prototype.tangentAngle = function(e) { var t = this.derivative(e); return Math.atan2(t[1], t[0]) - }, $e.prototype.normalAngle = function(e) { + }, qe.prototype.normalAngle = function(e) { var t = this.derivative(e); return Math.atan2(t[0], t[1]) - }, $e.prototype.inflectionPoints = function() { + }, qe.prototype.inflectionPoints = function() { var e = this.a[1] * this.b[0] - this.a[0] * this.b[1]; if (Ue(e)) return []; var t = -.5 * (this.a[1] * this.c[0] - this.a[0] * this.c[1]) / e, @@ -21161,22 +20999,22 @@ return Ue(r) ? r > 0 && r < 1 ? [t] : [] : [t - r, t + r].filter((function(e) { return e > 0 && e < 1 })) - }, $e.prototype.split = function(e) { - if (e <= 0) return [We(this.points[0]), this]; - if (e >= 1) return [this, We(this.points[this.points.length - 1])]; + }, qe.prototype.split = function(e) { + if (e <= 0) return [$e(this.points[0]), this]; + if (e >= 1) return [this, $e(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), i = Be(t, n, e), a = Be(n, r, e), o = Be(i, a, e); - return [new $e(this.points[0], t, i, o, !0), new $e(o, a, r, this.points[3], !0)] - }, $e.prototype.bounds = function() { + return [new qe(this.points[0], t, i, o, !0), new qe(o, a, r, this.points[3], !0)] + }, qe.prototype.bounds = function() { return { - x: qe(this, 0), - y: qe(this, 1) + x: We(this, 0), + y: We(this, 1) } - }, $e.prototype.boundingBox = function() { + }, qe.prototype.boundingBox = function() { var e = this.bounds(); return { left: e.x.min, @@ -21188,7 +21026,7 @@ cx: (e.x.max + e.x.min) / 2, cy: (e.y.max + e.y.min) / 2 } - }, $e.prototype.intersections = function(e, t, n) { + }, qe.prototype.intersections = function(e, t, n) { void 0 === t && (t = 2), void 0 === n && (n = 7); var r = []; return function e(t, n, r, i, a, o) { @@ -21199,12 +21037,12 @@ e(s[0], l[0], r + 1, i, a, o), e(s[0], l[1], r + 1, i, a, o), e(s[1], l[0], r + 1, i, a, o), e(s[1], l[1], r + 1, i, a, o) } }(He(this, 0, 1), He(e, 0, 1), 0, t, r, n), r - }, $e.shapeSegment = function(e, t) { + }, qe.shapeSegment = function(e, t) { var n = (t + 1) % e.length(); - return new $e(e.v[t], e.o[t], e.i[n], e.v[n], !0) - }, $e.shapeSegmentInverted = function(e, t) { + return new qe(e.v[t], e.o[t], e.i[n], e.v[n], !0) + }, qe.shapeSegmentInverted = function(e, t) { var n = (t + 1) % e.length(); - return new $e(e.v[n], e.i[n], e.o[t], e.v[t], !0) + return new qe(e.v[n], e.i[n], e.o[t], e.v[t], !0) }, f([Le], et), et.prototype.initModifierProperties = function(e, t) { this.getValue = this.processKeys, this.amplitude = ve.getProp(e, t.s, 0, null, this), this.frequency = ve.getProp(e, t.r, 0, null, this), this.pointsType = ve.getProp(e, t.pt, 0, null, this), this._isAnimated = 0 !== this.amplitude.effectsSequence.length || 0 !== this.frequency.effectsSequence.length || 0 !== this.pointsType.effectsSequence.length }, et.prototype.processPath = function(e, t, n, r) { @@ -21212,7 +21050,7 @@ a = xe.newElement(); if (a.c = e.c, e.c || (i -= 1), 0 === i) return a; var o = -1, - s = $e.shapeSegment(e, 0); + s = qe.shapeSegment(e, 0); nt(a, e, 0, t, n, r, o); for (var l = 0; l < i; l += 1) o = function(e, t, n, r, i, a) { for (var o = 0; o < r; o += 1) { @@ -21222,7 +21060,7 @@ tt(e, t.point(s), c, a, n, l / (2 * (r + 1)), l / (2 * (r + 1))), a = -a } return a - }(a, s, t, n, r, -o), s = l !== i - 1 || e.c ? $e.shapeSegment(e, (l + 1) % i) : null, nt(a, e, l + 1, t, n, r, o); + }(a, s, t, n, r, -o), s = l !== i - 1 || e.c ? qe.shapeSegment(e, (l + 1) % i) : null, nt(a, e, l + 1, t, n, r, o); return a }, et.prototype.processShapes = function(e) { var t, n, r, i, a, o, s = this.shapes.length, @@ -21244,9 +21082,9 @@ var l = e.length(); e.c || (l -= 1); var c = []; - for (i = 0; i < l; i += 1) o = $e.shapeSegment(e, i), c.push(lt(o, t)); + for (i = 0; i < l; i += 1) o = qe.shapeSegment(e, i), c.push(lt(o, t)); if (!e.c) - for (i = l - 1; i >= 0; i -= 1) o = $e.shapeSegmentInverted(e, i), c.push(lt(o, t)); + for (i = l - 1; i >= 0; i -= 1) o = qe.shapeSegmentInverted(e, i), c.push(lt(o, t)); c = function(e) { for (var t, n = 1; n < e.length; n += 1) t = st(e[n - 1], e[n]), e[n - 1] = t[0], e[n] = t[1]; return e.length > 1 && (t = st(e[e.length - 1], e[0]), e[e.length - 1] = t[0], e[0] = t[1]), e @@ -21307,7 +21145,7 @@ var n, r = document.body && t ? "svg" : "canvas", i = ut(e); if ("svg" === r) { - var a = W("text"); + var a = $("text"); a.style.fontSize = "100px", a.setAttribute("font-family", e.fFamily), a.setAttribute("font-style", i.style), a.setAttribute("font-weight", i.weight), a.textContent = "1", e.fClass ? (a.style.fontFamily = "inherit", a.setAttribute("class", e.fClass)) : a.style.fontFamily = e.fFamily, t.appendChild(a), n = a } else { var o = new OffscreenCanvas(500, 500).getContext("2d"); @@ -21557,9 +21395,9 @@ function Et() {} - function It() {} + function Ot() {} - function Ot(e, t, n) { + function It(e, t, n) { this.initFrame(), this.initRenderable(), this.assetData = t.getAssetData(e.refId), this.footageData = t.imageLoader.getAsset(this.assetData), this.initBaseData(e, t, n) } @@ -21631,7 +21469,7 @@ return this.type }, sourceRectAtTime: function() {} - }, It.prototype = { + }, Ot.prototype = { initFrame: function() { this._isFirstFrame = !1, this.dynamicProperties = [], this._mdf = !1 }, @@ -21642,9 +21480,9 @@ addDynamicProperty: function(e) { -1 === this.dynamicProperties.indexOf(e) && this.dynamicProperties.push(e) } - }, Ot.prototype.prepareFrame = function() {}, f([ht, Et, It], Ot), Ot.prototype.getBaseElement = function() { + }, It.prototype.prepareFrame = function() {}, f([ht, Et, Ot], It), It.prototype.getBaseElement = function() { return null - }, Ot.prototype.renderFrame = function() {}, Ot.prototype.destroy = function() {}, Ot.prototype.initExpressions = function() {}, Ot.prototype.getFootageData = function() { + }, It.prototype.renderFrame = function() {}, It.prototype.destroy = function() {}, It.prototype.initExpressions = function() {}, It.prototype.getFootageData = function() { return this.footageData }, Ct.prototype.prepareFrame = function(e) { if (this.prepareRenderableFrame(e, !0), this.prepareProperties(e, !0), this.tm._placeholder) this._currentTime = e / this.data.sr; @@ -21655,7 +21493,7 @@ this._volume = this.lv.v[0]; var n = this._volume * this._volumeMultiplier; this._previousVolume !== n && (this._previousVolume = n, this.audio.volume(n)) - }, f([ht, Et, It], Ct), Ct.prototype.renderFrame = function() { + }, f([ht, Et, Ot], Ct), Ct.prototype.renderFrame = function() { this.isInRange && this._canPlay && (this._isPlaying ? (!this.audio.playing() || Math.abs(this._currentTime / this.globalData.frameRate - this.audio.seek()) > .1) && this.audio.seek(this._currentTime / this.globalData.frameRate) : (this.audio.play(), this.audio.seek(this._currentTime / this.globalData.frameRate), this._isPlaying = !0)) }, Ct.prototype.show = function() {}, Ct.prototype.hide = function() { this.audio.pause(), this._isPlaying = !1 @@ -21700,7 +21538,7 @@ }, At.prototype.createAudio = function(e) { return new Ct(e, this.globalData, this) }, At.prototype.createFootage = function(e) { - return new Ot(e, this.globalData, this) + return new It(e, this.globalData, this) }, At.prototype.buildAllItems = function() { var e, t = this.layers.length; for (e = 0; e < t; e += 1) this.buildItem(e); @@ -21771,14 +21609,14 @@ c = "clipPath", u = "clip-path"; for (d = 0; d < i; d += 1) - if (("a" !== a[d].mode && "n" !== a[d].mode || a[d].inv || 100 !== a[d].o.k || a[d].o.x) && (c = "mask", u = "mask"), "s" !== a[d].mode && "i" !== a[d].mode || 0 !== o ? g = null : ((g = W("rect")).setAttribute("fill", "#ffffff"), g.setAttribute("width", this.element.comp.data.w || 0), g.setAttribute("height", this.element.comp.data.h || 0), s.push(g)), h = W("path"), "n" === a[d].mode) this.viewData[d] = { + if (("a" !== a[d].mode && "n" !== a[d].mode || a[d].inv || 100 !== a[d].o.k || a[d].o.x) && (c = "mask", u = "mask"), "s" !== a[d].mode && "i" !== a[d].mode || 0 !== o ? g = null : ((g = $("rect")).setAttribute("fill", "#ffffff"), g.setAttribute("width", this.element.comp.data.w || 0), g.setAttribute("height", this.element.comp.data.h || 0), s.push(g)), h = $("path"), "n" === a[d].mode) this.viewData[d] = { op: ve.getProp(this.element, a[d].o, 0, .01, this.element), prop: Se.getShapeProp(this.element, a[d], 3), elem: h, lastPath: "" }, r.appendChild(h); else { - if (o += 1, h.setAttribute("fill", "s" === a[d].mode ? "#000000" : "#ffffff"), h.setAttribute("clip-rule", "nonzero"), 0 !== a[d].x.k ? (c = "mask", u = "mask", b = ve.getProp(this.element, a[d].x, 0, null, this.element), x = N(), (y = W("filter")).setAttribute("id", x), (_ = W("feMorphology")).setAttribute("operator", "erode"), _.setAttribute("in", "SourceGraphic"), _.setAttribute("radius", "0"), y.appendChild(_), r.appendChild(y), h.setAttribute("stroke", "s" === a[d].mode ? "#000000" : "#ffffff")) : (_ = null, b = null), this.storedData[d] = { + if (o += 1, h.setAttribute("fill", "s" === a[d].mode ? "#000000" : "#ffffff"), h.setAttribute("clip-rule", "nonzero"), 0 !== a[d].x.k ? (c = "mask", u = "mask", b = ve.getProp(this.element, a[d].x, 0, null, this.element), x = N(), (y = $("filter")).setAttribute("id", x), (_ = $("feMorphology")).setAttribute("operator", "erode"), _.setAttribute("in", "SourceGraphic"), _.setAttribute("radius", "0"), y.appendChild(_), r.appendChild(y), h.setAttribute("stroke", "s" === a[d].mode ? "#000000" : "#ffffff")) : (_ = null, b = null), this.storedData[d] = { elem: h, x: b, expan: _, @@ -21788,9 +21626,9 @@ lastRadius: 0 }, "i" === a[d].mode) { m = s.length; - var d, h, f, m, g, y, _, b, x, k = W("g"); + var d, h, f, m, g, y, _, b, x, k = $("g"); for (f = 0; f < m; f += 1) k.appendChild(s[f]); - var w = W("mask"); + var w = $("mask"); w.setAttribute("mask-type", "alpha"), w.setAttribute("id", l + "_" + o), w.appendChild(h), r.appendChild(w), k.setAttribute("mask", "url(" + p() + "#" + l + "_" + o + ")"), s.length = 0, s.push(k) } else s.push(h); a[d].inv && !this.solidPath && (this.solidPath = this.createLayerSolidPath()), this.viewData[d] = { @@ -21800,14 +21638,14 @@ prop: Se.getShapeProp(this.element, a[d], 3), invRect: g }, this.viewData[d].prop.k || this.drawPath(a[d], this.viewData[d].prop.v, this.viewData[d]) - } for (d = 0, this.maskElement = W(c), i = s.length; d < i; d += 1) this.maskElement.appendChild(s[d]); + } for (d = 0, this.maskElement = $(c), i = s.length; d < i; 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 = { initTransform: function() { var e = new Ee; this.finalTransform = { - mProp: this.data.ks ? je.getTransformProperty(this, this.data.ks, this) : { + mProp: this.data.ks ? Me.getTransformProperty(this, this.data.ks, this) : { o: 0 }, _matMdf: !1, @@ -21902,10 +21740,10 @@ this.element = null, this.globalData = null, this.maskElement = null, this.data = null, this.masksProperties = null }; var Dt = ((l = {}).createFilter = function(e, t) { - var n = W("filter"); + var n = $("filter"); return n.setAttribute("id", e), !0 !== t && (n.setAttribute("filterUnits", "objectBoundingBox"), n.setAttribute("x", "0%"), n.setAttribute("y", "0%"), n.setAttribute("width", "100%"), n.setAttribute("height", "100%")), n }, l.createAlphaToLuminanceFilter = function() { - var e = W("feColorMatrix"); + var e = $("feColorMatrix"); return e.setAttribute("type", "matrix"), e.setAttribute("color-interpolation-filters", "sRGB"), e.setAttribute("values", "0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"), e }, l), Lt = (c = { @@ -21914,9 +21752,9 @@ 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), Nt = {}, - Mt = "filter_result_"; + jt = "filter_result_"; - function jt(e) { + function Mt(e) { var t, n, r = "SourceGraphic", i = e.data.ef ? e.data.ef.length : 0, a = N(), @@ -21925,7 +21763,7 @@ for (t = 0, this.filters = []; t < i; t += 1) { n = null; var l = e.data.ef[t].ty; - Nt[l] && (n = new Nt[l].effect(o, e.effectsManager.effectElements[t], e, Mt + s, r), r = Mt + s, Nt[l].countsAsEffect && (s += 1)), n && this.filters.push(n) + Nt[l] && (n = new Nt[l].effect(o, e.effectsManager.effectElements[t], e, jt + s, r), r = jt + s, Nt[l].countsAsEffect && (s += 1)), n && this.filters.push(n) } s && (e.globalData.defs.appendChild(o), e.layerElement.setAttribute("filter", "url(" + p() + "#" + a + ")")), this.filters.length && e.addRenderableComponent(this) } @@ -21950,33 +21788,33 @@ } function Gt() {} - jt.prototype.renderFrame = function(e) { + Mt.prototype.renderFrame = function(e) { var t, n = this.filters.length; for (t = 0; t < n; t += 1) this.filters[t].renderFrame(e) - }, jt.prototype.getEffects = function(e) { + }, Mt.prototype.getEffects = function(e) { var t, n = this.filters.length, r = []; for (t = 0; t < n; t += 1) this.filters[t].type === e && r.push(this.filters[t]); return r }, Ft.prototype = { initRendererElement: function() { - this.layerElement = W("g") + this.layerElement = $("g") }, createContainerElements: function() { - this.matteElement = W("g"), this.transformedElement = this.layerElement, this.maskedElement = this.layerElement, this._sizeChanged = !1; + this.matteElement = $("g"), this.transformedElement = this.layerElement, this.maskedElement = this.layerElement, this._sizeChanged = !1; var e = null; if (this.data.td) { this.matteMasks = {}; - var t = W("g"); + var t = $("g"); t.setAttribute("id", this.layerId), t.appendChild(this.layerElement), e = t, this.globalData.defs.appendChild(t) } else this.data.tt ? (this.matteElement.appendChild(this.layerElement), e = this.matteElement, this.baseElement = this.matteElement) : this.baseElement = this.layerElement; if (this.data.ln && this.layerElement.setAttribute("id", this.data.ln), this.data.cl && this.layerElement.setAttribute("class", this.data.cl), 0 === this.data.ty && !this.data.hd) { - var n = W("clipPath"), - r = W("path"); + var n = $("clipPath"), + r = $("path"); r.setAttribute("d", "M0,0 L" + this.data.w + ",0 L" + this.data.w + "," + this.data.h + " L0," + this.data.h + "z"); var i = N(); if (n.setAttribute("id", i), n.appendChild(r), this.globalData.defs.appendChild(n), this.checkMasks()) { - var a = W("g"); + var a = $("g"); a.setAttribute("clip-path", "url(" + p() + "#" + i + ")"), a.appendChild(this.layerElement), this.transformedElement = a, e ? e.appendChild(this.transformedElement) : this.baseElement = this.transformedElement } else this.layerElement.setAttribute("clip-path", "url(" + p() + "#" + i + ")") } @@ -21992,25 +21830,25 @@ return this.data.hd ? null : this.baseElement }, createRenderableComponents: function() { - this.maskManager = new Rt(this.data, this, this.globalData), this.renderableEffectsManager = new jt(this), this.searchEffectTransforms() + this.maskManager = new Rt(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, i, a = this.layerId + "_" + e; if (1 === e || 3 === e) { - var o = W("mask"); - o.setAttribute("id", a), o.setAttribute("mask-type", 3 === e ? "luminance" : "alpha"), (r = W("use")).setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), o.appendChild(r), this.globalData.defs.appendChild(o), Lt.maskType || 1 !== e || (o.setAttribute("mask-type", "luminance"), t = N(), n = Dt.createFilter(t), this.globalData.defs.appendChild(n), n.appendChild(Dt.createAlphaToLuminanceFilter()), (i = W("g")).appendChild(r), o.appendChild(i), i.setAttribute("filter", "url(" + p() + "#" + t + ")")) + var o = $("mask"); + o.setAttribute("id", a), o.setAttribute("mask-type", 3 === e ? "luminance" : "alpha"), (r = $("use")).setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), o.appendChild(r), this.globalData.defs.appendChild(o), Lt.maskType || 1 !== e || (o.setAttribute("mask-type", "luminance"), t = N(), n = Dt.createFilter(t), this.globalData.defs.appendChild(n), n.appendChild(Dt.createAlphaToLuminanceFilter()), (i = $("g")).appendChild(r), o.appendChild(i), i.setAttribute("filter", "url(" + p() + "#" + t + ")")) } else if (2 === e) { - var s = W("mask"); + var s = $("mask"); s.setAttribute("id", a), s.setAttribute("mask-type", "alpha"); - var l = W("g"); + var l = $("g"); s.appendChild(l), t = N(), n = Dt.createFilter(t); - var c = W("feComponentTransfer"); + var c = $("feComponentTransfer"); c.setAttribute("in", "SourceGraphic"), n.appendChild(c); - var u = W("feFuncA"); + var u = $("feFuncA"); u.setAttribute("type", "table"), u.setAttribute("tableValues", "1.0 0.0"), c.appendChild(u), this.globalData.defs.appendChild(n); - var d = W("rect"); - d.setAttribute("width", this.comp.data.w), d.setAttribute("height", this.comp.data.h), d.setAttribute("x", "0"), d.setAttribute("y", "0"), d.setAttribute("fill", "#ffffff"), d.setAttribute("opacity", "0"), l.setAttribute("filter", "url(" + p() + "#" + t + ")"), l.appendChild(d), (r = W("use")).setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), l.appendChild(r), Lt.maskType || (s.setAttribute("mask-type", "luminance"), n.appendChild(Dt.createAlphaToLuminanceFilter()), i = W("g"), l.appendChild(d), i.appendChild(this.layerElement), l.appendChild(i)), this.globalData.defs.appendChild(s) + var d = $("rect"); + d.setAttribute("width", this.comp.data.w), d.setAttribute("height", this.comp.data.h), d.setAttribute("x", "0"), d.setAttribute("y", "0"), d.setAttribute("fill", "#ffffff"), d.setAttribute("opacity", "0"), l.setAttribute("filter", "url(" + p() + "#" + t + ")"), l.appendChild(d), (r = $("use")).setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), l.appendChild(r), Lt.maskType || (s.setAttribute("mask-type", "luminance"), n.appendChild(Dt.createAlphaToLuminanceFilter()), i = $("g"), l.appendChild(d), i.appendChild(this.layerElement), l.appendChild(i)), this.globalData.defs.appendChild(s) } this.matteMasks[e] = a } @@ -22055,9 +21893,9 @@ this.innerElem = null, this.destroyBaseElement() } }, t - }()], Vt), f([Et, Tt, Ft, zt, It, Vt], Ut), Ut.prototype.createContent = function() { + }()], Vt), f([Et, Tt, Ft, zt, Ot, Vt], Ut), Ut.prototype.createContent = function() { var e = this.globalData.getAssetsPath(this.assetData); - this.innerElem = W("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) + this.innerElem = $("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) }, Ut.prototype.sourceRectAtTime = function() { return this.sourceRect }, Gt.prototype = { @@ -22093,18 +21931,18 @@ this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange) } }; - var Wt = { + var $t = { 1: "butt", 2: "round", 3: "square" }, - $t = { + qt = { 1: "miter", 2: "round", 3: "bevel" }; - function qt(e, t, n) { + function Wt(e, t, n) { this.caches = [], this.styles = [], this.transformers = e, this.lStr = "", this.sh = n, this.lvl = t, this._isAnimated = !!n.k; for (var r = 0, i = e.length; r < i;) { if (e[r].mProps.dynamicProperties.length) { @@ -22116,7 +21954,7 @@ } function Ht(e, t) { - this.data = e, this.type = e.ty, this.d = "", this.lvl = t, this._mdf = !1, this.closed = !0 === e.hd, this.pElem = W("path"), this.msElem = null + this.data = e, this.type = e.ty, this.d = "", this.lvl = t, this._mdf = !1, this.closed = !0 === e.hd, this.pElem = $("path"), this.msElem = null } function Kt(e, t, n, r) { @@ -22156,7 +21994,7 @@ } function tn() { - this.it = [], this.prevViewData = [], this.gr = W("g") + this.it = [], this.prevViewData = [], this.gr = $("g") } function nn(e, t, n) { @@ -22166,7 +22004,7 @@ container: n }, this.elements = [], this._isAnimated = this.transform.mProps.dynamicProperties.length || this.transform.op.effectsSequence.length } - qt.prototype.setAsAnimated = function() { + Wt.prototype.setAsAnimated = function() { this._isAnimated = !0 }, Ht.prototype.reset = function() { this.d = "", this._mdf = !1 @@ -22203,27 +22041,27 @@ k: 0 }, 0, .01, this), this.a = ve.getProp(e, t.a || { k: 0 - }, 0, O, 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 + }, 0, I, 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, i, a = N(), - o = W(1 === t.t ? "linearGradient" : "radialGradient"); + o = $(1 === t.t ? "linearGradient" : "radialGradient"); o.setAttribute("id", a), o.setAttribute("spreadMethod", "pad"), o.setAttribute("gradientUnits", "userSpaceOnUse"); var s = []; - for (r = 0, i = 4 * t.g.p; r < i; r += 4) n = W("stop"), o.appendChild(n), s.push(n); + for (r = 0, i = 4 * t.g.p; r < i; r += 4) n = $("stop"), o.appendChild(n), s.push(n); e.setAttribute("gf" === t.ty ? "fill" : "stroke", "url(" + p() + "#" + a + ")"), this.gf = o, this.cst = s }, Jt.prototype.setGradientOpacity = function(e, t) { if (this.g._hasOpacity && !this.g._collapsable) { - var n, r, i, a = W("mask"), - o = W("path"); + var n, r, i, a = $("mask"), + o = $("path"); a.appendChild(o); var s = N(), l = N(); a.setAttribute("id", l); - var c = W(1 === e.t ? "linearGradient" : "radialGradient"); + var c = $(1 === e.t ? "linearGradient" : "radialGradient"); c.setAttribute("id", s), c.setAttribute("spreadMethod", "pad"), c.setAttribute("gradientUnits", "userSpaceOnUse"), i = e.g.k.k[0].s ? e.g.k.k[0].s.length : e.g.k.k.length; var u = this.stops; - for (r = 4 * e.g.p; r < i; r += 2)(n = W("stop")).setAttribute("stop-color", "rgb(255,255,255)"), c.appendChild(n), u.push(n); - o.setAttribute("gf" === e.ty ? "fill" : "stroke", "url(" + p() + "#" + s + ")"), "gs" === e.ty && (o.setAttribute("stroke-linecap", Wt[e.lc || 2]), o.setAttribute("stroke-linejoin", $t[e.lj || 2]), 1 === e.lj && o.setAttribute("stroke-miterlimit", e.ml)), this.of = c, this.ms = a, this.ost = u, this.maskId = l, t.msElem = o + for (r = 4 * e.g.p; r < i; r += 2)(n = $("stop")).setAttribute("stop-color", "rgb(255,255,255)"), c.appendChild(n), u.push(n); + o.setAttribute("gf" === e.ty ? "fill" : "stroke", "url(" + p() + "#" + s + ")"), "gs" === e.ty && (o.setAttribute("stroke-linecap", $t[e.lc || 2]), o.setAttribute("stroke-linejoin", qt[e.lj || 2]), 1 === e.lj && o.setAttribute("stroke-miterlimit", e.ml)), this.of = c, this.ms = a, this.ost = u, this.maskId = l, t.msElem = o } }, f([ye], Jt), f([Jt, ye], en); var rn = function(e, t, n, r) { @@ -22386,7 +22224,7 @@ __complete: !1 }, this.copyData(this.currentData, this.data.d.k[0].s), this.searchProperty() || this.completeTextData(this.currentData) } - f([Et, Tt, Ft, Gt, zt, It, Vt], on), on.prototype.initSecondaryElement = function() {}, on.prototype.identityMatrix = new Ee, on.prototype.buildExpressionInterface = function() {}, on.prototype.createContent = function() { + f([Et, Tt, Ft, Gt, zt, Ot, Vt], on), on.prototype.initSecondaryElement = function() {}, on.prototype.identityMatrix = new Ee, 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, i = this.shapes.length, @@ -22403,18 +22241,18 @@ }, on.prototype.createStyleElement = function(e, t) { var n, r = new Ht(e, t), i = r.pElem; - return "st" === e.ty ? n = new Yt(this, e, r) : "fl" === e.ty ? n = new Qt(this, e, r) : "gf" === e.ty || "gs" === e.ty ? (n = new("gf" === e.ty ? Jt : en)(this, e, r), this.globalData.defs.appendChild(n.gf), n.maskId && (this.globalData.defs.appendChild(n.ms), this.globalData.defs.appendChild(n.of), i.setAttribute("mask", "url(" + p() + "#" + n.maskId + ")"))) : "no" === e.ty && (n = new Zt(this, e, r)), ("st" === e.ty || "gs" === e.ty) && (i.setAttribute("stroke-linecap", Wt[e.lc || 2]), i.setAttribute("stroke-linejoin", $t[e.lj || 2]), i.setAttribute("fill-opacity", "0"), 1 === e.lj && i.setAttribute("stroke-miterlimit", e.ml)), 2 === e.r && i.setAttribute("fill-rule", "evenodd"), e.ln && i.setAttribute("id", e.ln), e.cl && i.setAttribute("class", e.cl), e.bm && (i.style["mix-blend-mode"] = ft(e.bm)), this.stylesList.push(r), this.addToAnimatedContents(e, n), n + return "st" === e.ty ? n = new Yt(this, e, r) : "fl" === e.ty ? n = new Qt(this, e, r) : "gf" === e.ty || "gs" === e.ty ? (n = new("gf" === e.ty ? Jt : en)(this, e, r), this.globalData.defs.appendChild(n.gf), n.maskId && (this.globalData.defs.appendChild(n.ms), this.globalData.defs.appendChild(n.of), i.setAttribute("mask", "url(" + p() + "#" + n.maskId + ")"))) : "no" === e.ty && (n = new Zt(this, e, r)), ("st" === e.ty || "gs" === e.ty) && (i.setAttribute("stroke-linecap", $t[e.lc || 2]), i.setAttribute("stroke-linejoin", qt[e.lj || 2]), i.setAttribute("fill-opacity", "0"), 1 === e.lj && i.setAttribute("stroke-miterlimit", e.ml)), 2 === e.r && i.setAttribute("fill-rule", "evenodd"), e.ln && i.setAttribute("id", e.ln), e.cl && i.setAttribute("class", e.cl), e.bm && (i.style["mix-blend-mode"] = ft(e.bm)), this.stylesList.push(r), this.addToAnimatedContents(e, n), n }, on.prototype.createGroupElement = function(e) { var t = new tn; return e.ln && t.gr.setAttribute("id", e.ln), e.cl && t.gr.setAttribute("class", e.cl), e.bm && (t.gr.style["mix-blend-mode"] = ft(e.bm)), t }, on.prototype.createTransformElement = function(e, t) { - var n = je.getTransformProperty(this, e, this), + var n = Me.getTransformProperty(this, e, this), r = new nn(n, n.o, t); return this.addToAnimatedContents(e, r), r }, on.prototype.createShapeElement = function(e, t, n) { var r = 4; "rc" === e.ty ? r = 5 : "el" === e.ty ? r = 6 : "sr" === e.ty && (r = 7); - var i = new qt(t, n, Se.getShapeProp(this, e, r, this)); + var i = new Wt(t, n, Se.getShapeProp(this, e, r, this)); return this.shapes.push(i), this.addShapeToModifiers(i), this.addToAnimatedContents(e, i), i }, on.prototype.addToAnimatedContents = function(e, t) { for (var n = 0, r = this.animatedContents.length; n < r;) { @@ -22515,11 +22353,11 @@ e.fWeight = f.weight, e.fStyle = f.style, e.finalSize = e.s, e.finalText = this.buildFinalText(e.t), v = e.finalText.length, e.finalLineHeight = e.lh; var m = e.tr / 1e3 * e.finalSize; if (e.sz) - for (var g, v, y, _, b, x, k, w, S, E, I = !0, O = e.sz[0], C = e.sz[1]; I;) { + for (var g, v, y, _, b, x, k, w, S, E, O = !0, I = e.sz[0], C = e.sz[1]; O;) { S = 0, u = 0, v = (E = this.buildFinalText(e.t)).length, m = e.tr / 1e3 * e.finalSize; var A = -1; - for (g = 0; g < v; g += 1) w = E[g].charCodeAt(0), y = !1, " " === E[g] ? A = g : (13 === w || 3 === w) && (u = 0, y = !0, S += e.finalLineHeight || 1.2 * e.finalSize), t.chars ? (k = t.getCharData(E[g], p.fStyle, p.fFamily), h = y ? 0 : k.w * e.finalSize / 100) : h = t.measureText(E[g], e.f, e.finalSize), u + h > O && " " !== E[g] ? (-1 === A ? v += 1 : g = A, S += e.finalLineHeight || 1.2 * e.finalSize, E.splice(g, A === g ? 1 : 0, "\r"), A = -1, u = 0) : u += h + m; - S += p.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && C < S ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = E, v = e.finalText.length, I = !1) + for (g = 0; g < v; g += 1) w = E[g].charCodeAt(0), y = !1, " " === E[g] ? A = g : (13 === w || 3 === w) && (u = 0, y = !0, S += e.finalLineHeight || 1.2 * e.finalSize), t.chars ? (k = t.getCharData(E[g], p.fStyle, p.fFamily), h = y ? 0 : k.w * e.finalSize / 100) : h = t.measureText(E[g], e.f, e.finalSize), u + h > I && " " !== E[g] ? (-1 === A ? v += 1 : g = A, S += e.finalLineHeight || 1.2 * e.finalSize, E.splice(g, A === g ? 1 : 0, "\r"), A = -1, u = 0) : u += h + m; + S += p.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && C < S ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = E, v = e.finalText.length, O = !1) } u = -m, h = 0; var P = 0; @@ -22560,9 +22398,9 @@ x = T.length; var R = []; for (b = 0; b < x; b += 1) { - for ((L = T[b]).a.sc && (e.strokeColorAnim = !0), L.a.sw && (e.strokeWidthAnim = !0), (L.a.fc || L.a.fh || L.a.fs || L.a.fb) && (e.fillColorAnim = !0), j = 0, M = L.s.b, g = 0; g < v; g += 1)(N = r[g]).anIndexes[b] = j, (1 == M && "" !== N.val || 2 == M && "" !== N.val && " " !== N.val || 3 == M && (N.n || " " == N.val || g == v - 1) || 4 == M && (N.n || g == v - 1)) && (1 === L.s.rn && R.push(j), j += 1); - n.a[b].s.totalChars = j; - var D, L, N, M, j, F, z = -1; + for ((L = T[b]).a.sc && (e.strokeColorAnim = !0), L.a.sw && (e.strokeWidthAnim = !0), (L.a.fc || L.a.fh || L.a.fs || L.a.fb) && (e.fillColorAnim = !0), M = 0, j = L.s.b, g = 0; g < v; g += 1)(N = r[g]).anIndexes[b] = M, (1 == j && "" !== N.val || 2 == j && "" !== N.val && " " !== N.val || 3 == j && (N.n || " " == N.val || g == v - 1) || 4 == j && (N.n || g == v - 1)) && (1 === L.s.rn && R.push(M), M += 1); + n.a[b].s.totalChars = M; + var D, L, N, j, M, F, z = -1; if (1 === L.s.rn) for (g = 0; g < v; g += 1) z != (N = r[g]).anIndexes[b] && (z = N.anIndexes[b], F = R.splice(Math.floor(Math.random() * R.length), 1)[0]), N.anIndexes[b] = F } @@ -22659,11 +22497,11 @@ i = ve.getProp, a = t.a; this.a = { - r: a.r ? i(e, a.r, 0, O, n) : r, - rx: a.rx ? i(e, a.rx, 0, O, n) : r, - ry: a.ry ? i(e, a.ry, 0, O, n) : r, - sk: a.sk ? i(e, a.sk, 0, O, n) : r, - sa: a.sa ? i(e, a.sa, 0, O, n) : r, + r: a.r ? i(e, a.r, 0, I, n) : r, + rx: a.rx ? i(e, a.rx, 0, I, n) : r, + ry: a.ry ? i(e, a.ry, 0, I, n) : r, + sk: a.sk ? i(e, a.sk, 0, I, n) : r, + sa: a.sa ? i(e, a.sa, 0, I, n) : r, s: a.s ? i(e, a.s, 1, .01, n) : r, a: a.a ? i(e, a.a, 1, 0, n) : r, o: a.o ? i(e, a.o, 0, .01, n) : r, @@ -22708,25 +22546,25 @@ S = this.renderedLetters.length, E = e.l; if (this._hasMaskedPath) { - if (q = this._pathData.m, !this._pathData.n || this._pathData._mdf) { - var I, O, C, A, P, T, R, D, L, N, M, j, U, B, G, W, $, q, H, K = q.v; + if (W = this._pathData.m, !this._pathData.n || this._pathData._mdf) { + var O, I, C, A, P, T, R, D, L, N, j, M, U, B, G, $, q, W, H, K = W.v; for (this._pathData.r.v && (K = K.reverse()), P = { tLength: 0, segments: [] - }, A = K._length - 1, W = 0, C = 0; C < A; C += 1) H = ae.buildBezierData(K.v[C], K.v[C + 1], [K.o[C][0] - K.v[C][0], K.o[C][1] - K.v[C][1]], [K.i[C + 1][0] - K.v[C + 1][0], K.i[C + 1][1] - K.v[C + 1][1]]), P.tLength += H.segmentLength, P.segments.push(H), W += H.segmentLength; - C = A, q.v.c && (H = ae.buildBezierData(K.v[C], K.v[0], [K.o[C][0] - K.v[C][0], K.o[C][1] - K.v[C][1]], [K.i[0][0] - K.v[0][0], K.i[0][1] - K.v[0][1]]), P.tLength += H.segmentLength, P.segments.push(H), W += H.segmentLength), this._pathData.pi = P + }, A = K._length - 1, $ = 0, C = 0; C < A; C += 1) H = ae.buildBezierData(K.v[C], K.v[C + 1], [K.o[C][0] - K.v[C][0], K.o[C][1] - K.v[C][1]], [K.i[C + 1][0] - K.v[C + 1][0], K.i[C + 1][1] - K.v[C + 1][1]]), P.tLength += H.segmentLength, P.segments.push(H), $ += H.segmentLength; + C = A, W.v.c && (H = ae.buildBezierData(K.v[C], K.v[0], [K.o[C][0] - K.v[C][0], K.o[C][1] - K.v[C][1]], [K.i[0][0] - K.v[0][0], K.i[0][1] - K.v[0][1]]), P.tLength += H.segmentLength, P.segments.push(H), $ += H.segmentLength), this._pathData.pi = P } - if (P = this._pathData.pi, T = this._pathData.f.v, M = 0, N = 1, D = 0, L = !0, B = P.segments, T < 0 && q.v.c) - for (P.tLength < Math.abs(T) && (T = -Math.abs(T) % P.tLength), N = (U = B[M = B.length - 1].points).length - 1; T < 0;) T += U[N].partialLength, (N -= 1) < 0 && (N = (U = B[M -= 1].points).length - 1); - j = (U = B[M].points)[N - 1], G = (R = U[N]).partialLength + if (P = this._pathData.pi, T = this._pathData.f.v, j = 0, N = 1, D = 0, L = !0, B = P.segments, T < 0 && W.v.c) + for (P.tLength < Math.abs(T) && (T = -Math.abs(T) % P.tLength), N = (U = B[j = B.length - 1].points).length - 1; T < 0;) T += U[N].partialLength, (N -= 1) < 0 && (N = (U = B[j -= 1].points).length - 1); + M = (U = B[j].points)[N - 1], G = (R = U[N]).partialLength } - A = E.length, I = 0, O = 0; + A = E.length, O = 0, I = 0; var Y = 1.2 * e.finalSize * .714, Q = !0; i = b.length; var Z = -1, X = T, - J = M, + J = j, ee = N, te = -1, ne = "", @@ -22747,26 +22585,26 @@ } for (ie && (ie += oe); le < C;) E[le].animatorJustifyOffset = ie, le += 1 } for (C = 0; C < A; C += 1) { - if (k.reset(), u = 1, E[C].n) I = 0, O += e.yOffset + (Q ? 1 : 0), T = X, Q = !1, this._hasMaskedPath && (N = ee, j = (U = B[M = J].points)[N - 1], G = (R = U[N]).partialLength, D = 0), ne = "", v = "", m = "", y = "", re = this.defaultPropsArray; + if (k.reset(), u = 1, E[C].n) O = 0, I += e.yOffset + (Q ? 1 : 0), T = X, Q = !1, this._hasMaskedPath && (N = ee, M = (U = B[j = J].points)[N - 1], G = (R = U[N]).partialLength, D = 0), ne = "", v = "", m = "", y = "", re = this.defaultPropsArray; else { if (this._hasMaskedPath) { if (te !== E[C].line) { switch (e.j) { case 1: - T += W - e.lineWidths[E[C].line]; + T += $ - e.lineWidths[E[C].line]; break; case 2: - T += (W - e.lineWidths[E[C].line]) / 2 + T += ($ - e.lineWidths[E[C].line]) / 2 } te = E[C].line } Z !== E[C].ind && (E[Z] && (T += E[Z].extra), T += E[C].an / 2, Z = E[C].ind), T += _[0] * E[C].an * .005; var ue = 0; for (r = 0; r < i; r += 1)(n = b[r].a).p.propType && ((o = b[r].s.getMult(E[C].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(E[C].anIndexes[r], x.a[r].s.totalChars)).length ? ue += n.a.v[0] * o[0] : ue += n.a.v[0] * o); - for (L = !0, this._pathData.a.v && (T = .5 * E[0].an + (W - this._pathData.f.v - .5 * E[0].an - .5 * E[E.length - 1].an) * Z / (A - 1) + this._pathData.f.v); L;) D + G >= T + ue || !U ? ($ = (T + ue - D) / R.partialLength, l = j.point[0] + (R.point[0] - j.point[0]) * $, c = j.point[1] + (R.point[1] - j.point[1]) * $, k.translate(-_[0] * E[C].an * .005, -_[1] * Y * .01), L = !1) : U && (D += R.partialLength, (N += 1) >= U.length && (N = 0, B[M += 1] ? U = B[M].points : q.v.c ? (N = 0, U = B[M = 0].points) : (D -= R.partialLength, U = null)), U && (j = R, G = (R = U[N]).partialLength)); + for (L = !0, this._pathData.a.v && (T = .5 * E[0].an + ($ - this._pathData.f.v - .5 * E[0].an - .5 * E[E.length - 1].an) * Z / (A - 1) + this._pathData.f.v); L;) D + G >= T + ue || !U ? (q = (T + ue - D) / R.partialLength, l = M.point[0] + (R.point[0] - M.point[0]) * q, c = M.point[1] + (R.point[1] - M.point[1]) * q, k.translate(-_[0] * E[C].an * .005, -_[1] * Y * .01), L = !1) : U && (D += R.partialLength, (N += 1) >= U.length && (N = 0, B[j += 1] ? U = B[j].points : W.v.c ? (N = 0, U = B[j = 0].points) : (D -= R.partialLength, U = null)), U && (M = R, G = (R = U[N]).partialLength)); s = E[C].an / 2 - E[C].add, k.translate(-s, 0, 0) } else s = E[C].an / 2 - E[C].add, k.translate(-s, 0, 0), k.translate(-_[0] * E[C].an * .005, -_[1] * Y * .01, 0); - for (r = 0; r < i; r += 1)(n = b[r].a).t.propType && (o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars), (0 !== I || 0 !== e.j) && (this._hasMaskedPath ? o.length ? T += n.t.v * o[0] : T += n.t.v * o : o.length ? I += n.t.v * o[0] : I += n.t.v * o)); + for (r = 0; r < i; r += 1)(n = b[r].a).t.propType && (o = b[r].s.getMult(E[C].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 (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 < i; r += 1)(n = b[r].a).a.propType && ((o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars)).length ? k.translate(-n.a.v[0] * o[0], -n.a.v[1] * o[1], n.a.v[2] * o[2]) : k.translate(-n.a.v[0] * o, -n.a.v[1] * o, n.a.v[2] * o)); for (r = 0; r < i; r += 1)(n = b[r].a).s.propType && ((o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars)).length ? k.scale(1 + (n.s.v[0] - 1) * o[0], 1 + (n.s.v[1] - 1) * o[1], 1) : k.scale(1 + (n.s.v[0] - 1) * o, 1 + (n.s.v[1] - 1) * o, 1)); for (r = 0; r < i; r += 1) { @@ -22780,20 +22618,20 @@ } for (r = 0; r < i; r += 1)(n = b[r].a).p.propType && (o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars), this._hasMaskedPath ? o.length ? k.translate(0, n.p.v[1] * o[0], -n.p.v[2] * o[1]) : k.translate(0, n.p.v[1] * o, -n.p.v[2] * o) : o.length ? k.translate(n.p.v[0] * o[0], n.p.v[1] * o[1], -n.p.v[2] * o[2]) : k.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 (k.translate(0, -e.ls), k.translate(0, _[1] * Y * .01 + O, 0), this._pathData.p.v) { - var de = 180 * Math.atan((R.point[1] - j.point[1]) / (R.point[0] - j.point[0])) / Math.PI; - R.point[0] < j.point[0] && (de += 180), k.rotate(-de * Math.PI / 180) + if (k.translate(0, -e.ls), k.translate(0, _[1] * Y * .01 + I, 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), k.rotate(-de * Math.PI / 180) } k.translate(l, c, 0), T -= _[0] * E[C].an * .005, E[C + 1] && Z !== E[C + 1].ind && (T += E[C].an / 2 + .001 * e.tr * e.finalSize) } else { - switch (k.translate(I, O, 0), e.ps && k.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) { + switch (k.translate(O, I, 0), e.ps && k.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) { case 1: k.translate(E[C].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[E[C].line]), 0, 0); break; case 2: k.translate(E[C].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[E[C].line]) / 2, 0, 0) } - k.translate(0, -e.ls), k.translate(s, 0, 0), k.translate(_[0] * E[C].an * .005, _[1] * Y * .01, 0), I += E[C].l + .001 * e.tr * e.finalSize + k.translate(0, -e.ls), k.translate(s, 0, 0), k.translate(_[0] * E[C].an * .005, _[1] * Y * .01, 0), O += E[C].l + .001 * e.tr * e.finalSize } "html" === w ? ne = k.toCSS() : "svg" === w ? ne = k.to2dCSS() : re = [k.props[0], k.props[1], k.props[2], k.props[3], k.props[4], k.props[5], k.props[6], k.props[7], k.props[8], k.props[9], k.props[10], k.props[11], k.props[12], k.props[13], k.props[14], k.props[15]], y = u } @@ -22858,22 +22696,22 @@ } function bn(e, t) { - this.animationItem = e, this.layers = null, this.renderedFrame = -1, this.svgElement = W("svg"); + this.animationItem = e, this.layers = null, this.renderedFrame = -1, this.svgElement = $("svg"); var n = ""; if (t && t.title) { - var r = W("title"), + var r = $("title"), i = N(); r.setAttribute("id", i), r.textContent = t.title, this.svgElement.appendChild(r), n += i } if (t && t.description) { - var a = W("desc"), + var a = $("desc"), o = N(); a.setAttribute("id", o), a.textContent = t.description, this.svgElement.appendChild(a), n += " " + o } n && this.svgElement.setAttribute("aria-labelledby", n); - var s = W("defs"); + var s = $("defs"); this.svgElement.appendChild(s); - var l = W("g"); + var l = $("g"); this.svgElement.appendChild(l), this.layerElement = l, this.renderConfig = { preserveAspectRatio: t && t.preserveAspectRatio || "xMidYMid meet", imagePreserveAspectRatio: t && t.imagePreserveAspectRatio || "xMidYMid slice", @@ -22901,8 +22739,8 @@ renderConfig: this.renderConfig }, this.elements = [], this.pendingElements = [], this.destroyed = !1, this.rendererType = "svg" } - return f([Et, Tt, Ft, zt, It, Vt, pn], fn), fn.prototype.createContent = function() { - this.data.singleShape && !this.globalData.fontManager.chars && (this.textContainer = W("text")) + return f([Et, Tt, Ft, zt, Ot, Vt, pn], fn), fn.prototype.createContent = function() { + this.data.singleShape && !this.globalData.fontManager.chars && (this.textContainer = $("text")) }, fn.prototype.buildTextContents = function(e) { for (var t = 0, n = e.length, r = [], i = ""; t < n;) "\r" === e[t] || "\x03" === e[t] ? (r.push(i), i = "") : i += e[t], t += 1; return r.push(i), r @@ -22945,9 +22783,9 @@ childSpan: null, glyph: null }), !a || !s || 0 === f) { - if (g = p > f ? this.textSpans[f].span : W(a ? "g" : "text"), p <= f) { + if (g = p > f ? this.textSpans[f].span : $(a ? "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, a) { - var h = W("g"); + var h = $("g"); g.appendChild(h), this.textSpans[f].childSpan = h } this.textSpans[f].span = g, this.layerElement.appendChild(g) @@ -22983,7 +22821,7 @@ } k.setAttribute("text-anchor", w), k.setAttribute("letter-spacing", d); var S = this.buildTextContents(e.finalText); - for (f = 0, m = S.length, c = e.ps ? e.ps[1] + e.ascent : 0; f < m; f += 1)(g = this.textSpans[f].span || W("tspan")).textContent = S[f], g.setAttribute("x", 0), g.setAttribute("y", c), g.style.display = "inherit", k.appendChild(g), this.textSpans[f] || (this.textSpans[f] = { + for (f = 0, m = S.length, c = e.ps ? e.ps[1] + e.ascent : 0; f < m; f += 1)(g = this.textSpans[f].span || $("tspan")).textContent = S[f], g.setAttribute("x", 0), g.setAttribute("y", c), g.style.display = "inherit", k.appendChild(g), this.textSpans[f] || (this.textSpans[f] = { span: null, glyph: null }), this.textSpans[f].span = g, c += e.finalLineHeight; @@ -23014,13 +22852,13 @@ for (e = 0, t = o.length; e < t; e += 1) !o[e].n && (n = a[e], r = this.textSpans[e].span, (i = this.textSpans[e].glyph) && i.renderFrame(), n._mdf.m && r.setAttribute("transform", n.m), n._mdf.o && r.setAttribute("opacity", n.o), n._mdf.sw && r.setAttribute("stroke-width", n.sw), n._mdf.sc && r.setAttribute("stroke", n.sc), n._mdf.fc && r.setAttribute("fill", n.fc)) } }, f([Ut], mn), mn.prototype.createContent = function() { - var e = W("rect"); + var e = $("rect"); e.setAttribute("width", this.data.sw), e.setAttribute("height", this.data.sh), e.setAttribute("fill", this.data.sc), this.layerElement.appendChild(e) }, gn.prototype.prepareFrame = function(e) { 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([Et, Tt, zt, It], gn), f([At], vn), vn.prototype.createNull = function(e) { + }, gn.prototype.destroy = function() {}, gn.prototype.sourceRectAtTime = function() {}, gn.prototype.hide = function() {}, f([Et, Tt, zt, 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) @@ -23034,8 +22872,8 @@ this.svgElement.setAttribute("xmlns", "http://www.w3.org/2000/svg"), this.svgElement.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), this.renderConfig.viewBoxSize ? this.svgElement.setAttribute("viewBox", this.renderConfig.viewBoxSize) : this.svgElement.setAttribute("viewBox", "0 0 " + e.w + " " + e.h), this.renderConfig.viewBoxOnly || (this.svgElement.setAttribute("width", e.w), this.svgElement.setAttribute("height", e.h), this.svgElement.style.width = "100%", this.svgElement.style.height = "100%", this.svgElement.style.transform = "translate3d(0,0,0)", this.svgElement.style.contentVisibility = this.renderConfig.contentVisibility), this.renderConfig.width && this.svgElement.setAttribute("width", this.renderConfig.width), this.renderConfig.height && this.svgElement.setAttribute("height", this.renderConfig.height), this.renderConfig.className && this.svgElement.setAttribute("class", this.renderConfig.className), this.renderConfig.id && this.svgElement.setAttribute("id", this.renderConfig.id), void 0 !== this.renderConfig.focusable && this.svgElement.setAttribute("focusable", this.renderConfig.focusable), this.svgElement.setAttribute("preserveAspectRatio", this.renderConfig.preserveAspectRatio), this.animationItem.wrapper.appendChild(this.svgElement); var t = this.globalData.defs; this.setupGlobalData(e, t), this.globalData.progressiveLoad = this.renderConfig.progressiveLoad, this.data = e; - var n = W("clipPath"), - r = W("rect"); + var n = $("clipPath"), + r = $("rect"); r.setAttribute("width", e.w), r.setAttribute("height", e.h), r.setAttribute("x", 0), r.setAttribute("y", 0); var i = N(); n.setAttribute("id", i), n.appendChild(r), this.layerElement.setAttribute("clip-path", "url(" + p() + "#" + i + ")"), t.appendChild(n), this.layers = e.layers, this.elements = v(e.layers.length) @@ -23096,7 +22934,7 @@ this.layerElement.style.display = "none" }, vn.prototype.show = function() { this.layerElement.style.display = "block" - }, f([Et, Tt, zt, It, Vt], yn), yn.prototype.initElement = function(e, t, n) { + }, f([Et, Tt, zt, Ot, Vt], 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) { @@ -23124,11 +22962,11 @@ 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", Ne), De.registerModifier("pb", Me), De.registerModifier("rp", Fe), De.registerModifier("rd", ze), De.registerModifier("zz", et), De.registerModifier("op", ct), Oe + }, Q.svg = bn, De.registerModifier("tm", Ne), De.registerModifier("pb", je), De.registerModifier("rp", Fe), De.registerModifier("rd", ze), De.registerModifier("zz", et), De.registerModifier("op", ct), Ie }()); - var Rs = (Bo = Ts.exports) && Bo.__esModule && Object.prototype.hasOwnProperty.call(Bo, "default") ? Bo.default : Bo; - let Ds = (0, Ee.createContext)(null), - Ls = ({ + var Xo = (so = Zo.exports) && so.__esModule && Object.prototype.hasOwnProperty.call(so, "default") ? so.default : so; + let Jo = (0, Ee.createContext)(null), + es = ({ children: e, ...t }) => { @@ -23141,15 +22979,15 @@ direction: e, reduceMotion: t })), [e, t])))(t); - return (0, Ee.createElement)(Ds.Provider, { + return (0, Ee.createElement)(Jo.Provider, { value: n }, e) }, - Ns = () => (0, Ee.useContext)(Ds) ?? {}, - Ms = "loading", - js = "loaded", - Fs = "error", - zs = (e, { + ts = () => (0, Ee.useContext)(Jo) ?? {}, + ns = "loading", + rs = "loaded", + is = "error", + as = (e, { bounce: t, loop: n = !0, isPlaying: r = !0, @@ -23165,12 +23003,12 @@ let h = (0, Ee.useRef)(), f = (0, Ee.useRef)(null), m = (0, Ee.useRef)(!1), - g = Ns().reduceMotion?.unessentialAnimationsDisabled, - [v, y] = (0, Ee.useState)(Ms), - _ = !e || g && !a || v === Fs; + g = ts().reduceMotion?.unessentialAnimationsDisabled, + [v, y] = (0, Ee.useState)(ns), + _ = !e || g && !a || v === is; (0, Ee.useEffect)((() => { if (!f.current || !e || _) return; - h.current = Rs.loadAnimation({ + h.current = Xo.loadAnimation({ ..."string" == typeof e ? { path: e } : { @@ -23185,10 +23023,10 @@ } }); let r = () => { - y(Fs), o && o() + y(is), o && o() }, i = () => { - y(js), s && s() + y(rs), s && s() }, a = () => { if (m.current) return h.current?.stop(), m.current = !1, void(d && d()); @@ -23207,7 +23045,7 @@ k = (0, Ee.useCallback)((() => { h.current && i ? m.current = !0 : (h.current?.stop(), d && d()) }), [d, i]); - (0, Ee.useEffect)((() => v === js && r ? b() : k()), [r, g, b, v, k]); + (0, Ee.useEffect)((() => v === rs && r ? b() : k()), [r, g, b, v, k]); let w = (0, Ee.useCallback)((({ children: e, ...t @@ -23225,8 +23063,8 @@ stop: k })), [w, x, b, k]) }, - Vs = (...e) => (0, Ee.useMemo)((() => gs(...e)), e), - Us = ({ + os = (...e) => (0, Ee.useMemo)((() => jo(...e)), e), + ss = ({ ref: e, onScroll: t } = {}) => { @@ -23270,7 +23108,7 @@ inlineEnd: d }) }), [t, a]); - return xs({ + return Bo({ ref: a, onResize: o }), (0, Ee.useEffect)((() => { @@ -23283,29 +23121,36 @@ ...n })), [a, n]) }, - Bs = (0, Ee.createContext)(null), - Gs = ({ + ls = e => { + let { + name: t + } = e, n = (0, Ee.useMemo)((() => ({ + "data-sol-theme": t + })), [t]), r = (0, Ee.useCallback)((e => Mo(e, n)), [n]); + return (0, Ee.useMemo)((() => ({ + ...e, + props: n, + getProps: r + })), [e, n, r]) + }, + cs = (0, Ee.createContext)(null), + us = ({ children: e, ...t }) => { - let n = (e => { - let { - name: t - } = e, n = (0, Ee.useMemo)((() => ({ - "data-sol-theme": t - })), [t]), r = (0, Ee.useCallback)((e => vs(e, n)), [n]); - return (0, Ee.useMemo)((() => ({ - ...e, - props: n, - getProps: r - })), [e, n, r]) - })(t); - return (0, Ee.createElement)(Bs.Provider, { - value: n - }, "function" == typeof e ? e(n) : e) + let n = null === (0, Ee.useContext)(cs), + r = ls(t); + return Vo((() => { + if (n) return Object.entries(r.props).forEach((([e, t]) => document.documentElement.setAttribute(e, String(t)))), () => Object.keys(r.props).forEach((e => document.documentElement.removeAttribute(e))) + }), [n, r.props]), (0, Ee.createElement)(cs.Provider, { + value: r + }, "function" == typeof e ? e(r) : e) }, - Ws = () => (0, Ee.useContext)(Bs) ?? {}, - $s = (0, Ee.forwardRef)((({ + ds = () => { + let e = ls({}); + return (0, Ee.useContext)(cs) ?? e + }, + ps = (0, Ee.forwardRef)((({ children: e, disabled: t, external: n, @@ -23313,14 +23158,14 @@ onClick: i, ...a }, o) => { - let s = (0, Ee.useContext)(As) ?? "a"; - return t ? qo.jsx("a", { + let s = (0, Ee.useContext)(Yo) ?? "a"; + return t ? po.jsx("a", { "aria-disabled": "true", ref: o, role: "link", ...a, children: e - }) : qo.jsx(s, { + }) : po.jsx(s, { href: r, onClick: i, ref: o, @@ -23330,7 +23175,7 @@ children: e }) })), - qs = (0, Ee.forwardRef)((({ + hs = (0, Ee.forwardRef)((({ decorative: e, disabled: t, disableFocus: n, @@ -23339,7 +23184,7 @@ }, a) => { let o = !!r, s = t ?? o; - if ((e => "href" in e)(i)) return qo.jsx($s, { + if ((e => "href" in e)(i)) return po.jsx(ps, { "aria-busy": !!o || void 0, disabled: s, ref: a, @@ -23350,7 +23195,7 @@ onClick: l, ...c } = i; - return qo.jsx(e ? "span" : "button", { + return po.jsx(e ? "span" : "button", { "aria-busy": !!o || void 0, "aria-disabled": !!s || void 0, onClick: s ? void 0 : l, @@ -23360,23 +23205,23 @@ ...c }) })); - No("@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 Hs = (0, Ee.forwardRef)((({ + eo("@layer sol.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 fs = (0, Ee.forwardRef)((({ isPlaying: e, source: t, ...n }, r) => { let { ref: i - } = zs(t, { + } = as(t, { isPlaying: e }); - return qo.jsx("span", { - ref: gs(i, r), + return po.jsx("span", { + ref: jo(i, r), ...n }) })), - Ks = (0, Ee.forwardRef)((({ + ms = (0, Ee.forwardRef)((({ className: e, color: t, size: n, @@ -23387,7 +23232,7 @@ }, s) => { let l = { "aria-hidden": !0, - className: fs("sol-c-icon", t && `sol-u-color-${t}`, e), + className: Lo("sol-c-icon", t && `sol-u-color-${t}`, e), ref: s, style: { ...n && { @@ -23397,17 +23242,17 @@ }, ...o }; - return (0, Ee.isValidElement)(r) ? (0, Ee.cloneElement)(r, l) : "function" == typeof r ? qo.jsx(r, { + return (0, Ee.isValidElement)(r) ? (0, Ee.cloneElement)(r, l) : "function" == typeof r ? po.jsx(r, { ...l - }) : qo.jsx(Hs, { + }) : po.jsx(fs, { isPlaying: a, source: r, ...l, ref: s }) })); - No("@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 Ys = ms((({ + eo("@layer sol.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 gs = No((({ align: e, as: t, children: n, @@ -23425,7 +23270,7 @@ ...f }, m) => { let g = (0, Ee.useMemo)((() => t || (h && !l ? "span" : l ? "div" : "p")), [t, l, h]), - v = fs("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}`, i && `sol-u-color-${i}`, a && `sol-u-text-decoration-${a}`, 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), + v = Lo("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}`, i && `sol-u-color-${i}`, a && `sol-u-text-decoration-${a}`, 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 = { ...d && "number" == typeof d && d > 1 && { "--sol-u-text-truncate": d @@ -23439,37 +23284,37 @@ ...f }, n) })), - Qs = "center", - Zs = "default", - Xs = "medium", - Js = "default", - el = (0, Ee.forwardRef)((({ - align: e = Qs, + vs = "center", + ys = "default", + _s = "medium", + bs = "default", + xs = (0, Ee.forwardRef)((({ + align: e = vs, children: t, className: n, - color: r = Zs, + color: r = ys, controlled: i, disableOffset: a, endIcon: o, fullWidth: s, loading: l, - loadingIcon: c = as, + loadingIcon: c = Eo, loadingIconAnimation: u = !0, onMouseEnter: d, onMouseLeave: p, selected: h, - size: f = Xs, + size: f = _s, icon: m, iconAnimation: g = !0, uppercase: v, - variant: y = Js, + variant: y = bs, ..._ }, b) => { let [x, k] = (0, Ee.useState)(!1), w = (0, Ee.useCallback)((e => { k(!0), d?.(e) }), [d]), S = (0, Ee.useCallback)((e => { k(!1), p?.(e) - }), [p]), E = "string" == typeof l, I = l && c ? c : m, O = (0, Ee.useMemo)((() => { + }), [p]), E = "string" == typeof l, O = l && c ? c : m, I = (0, Ee.useMemo)((() => { if (l) switch (u) { case "hover": return x; @@ -23494,8 +23339,8 @@ case "small": return "button-s" } - }), [f]), A = fs("sol-c-button", e && e !== Qs && `sol-c-button--align-${e}`, r && r !== Zs && `sol-c-button--${r}`, i && "sol-c-button--controlled", s && "sol-c-button--full-width", f && f !== Xs && `sol-c-button--${f}`, y && y !== Js && `sol-c-button--${y}`, n); - return qo.jsxs(qs, { + }), [f]), A = Lo("sol-c-button", e && e !== vs && `sol-c-button--align-${e}`, r && r !== ys && `sol-c-button--${r}`, i && "sol-c-button--controlled", s && "sol-c-button--full-width", f && f !== _s && `sol-c-button--${f}`, y && y !== bs && `sol-c-button--${y}`, n); + return po.jsxs(hs, { "aria-pressed": h, className: A, loading: !!l, @@ -23503,15 +23348,15 @@ onMouseLeave: S, ref: b, ..._, - children: [I && qo.jsx(Ks, { + children: [O && po.jsx(ms, { className: "sol-c-button__icon sol-c-button__icon--start", - isPlaying: O, - source: I - }), E && qo.jsx("span", { + isPlaying: I, + source: O + }), E && po.jsx("span", { className: "sol-u-hide-visually", role: "status", children: l - }), t && qo.jsx(Ys, { + }), t && po.jsx(gs, { "aria-hidden": E, as: "span", className: "sol-c-button__content", @@ -23519,18 +23364,18 @@ transform: v || "default" === y ? "uppercase" : void 0, variant: C, children: t - }), o && qo.jsx(Ks, { + }), o && po.jsx(ms, { className: "sol-c-button__icon sol-c-button__icon--end", source: o })] }) })), - tl = e => "object" == typeof e && null != e && 1 === e.nodeType, - nl = (e, t) => (!t || "hidden" !== e) && "visible" !== e && "clip" !== e, - rl = (e, t) => { + ks = e => "object" == typeof e && null != e && 1 === e.nodeType, + ws = (e, t) => (!t || "hidden" !== e) && "visible" !== e && "clip" !== e, + Ss = (e, t) => { if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) { let n = getComputedStyle(e, null); - return nl(n.overflowY, t) || nl(n.overflowX, t) || (e => { + return ws(n.overflowY, t) || ws(n.overflowX, t) || (e => { let t = (e => { if (!e.ownerDocument || !e.ownerDocument.defaultView) return null; try { @@ -23544,12 +23389,12 @@ } return !1 }, - il = (e, t, n, r, i, a, o, s) => a < e && o > t || a > e && o < t ? 0 : a <= e && s <= n || o >= t && s >= n ? a - e - r : o > t && s < n || a < e && s > n ? o - t + i : 0, - al = e => { + Es = (e, t, n, r, i, a, o, s) => a < e && o > t || a > e && o < t ? 0 : a <= e && s <= n || o >= t && s >= n ? a - e - r : o > t && s < n || a < e && s > n ? o - t + i : 0, + Os = e => { let t = e.parentElement; return null == t ? e.getRootNode().host || null : t }, - ol = (e, t) => { + Is = (e, t) => { var n, r, i, a; if ("undefined" == typeof document) return []; let { @@ -23559,16 +23404,16 @@ boundary: c, skipOverflowHiddenElements: u } = t, d = "function" == typeof c ? c : e => e !== c; - if (!tl(e)) throw TypeError("Invalid target"); + if (!ks(e)) throw TypeError("Invalid target"); let p = document.scrollingElement || document.documentElement, h = [], f = e; - for (; tl(f) && d(f);) { - if ((f = al(f)) === p) { + for (; ks(f) && d(f);) { + if ((f = Os(f)) === p) { h.push(f); break } - null != f && f === document.body && rl(f) && !rl(document.documentElement) || null != f && rl(f, u) && h.push(f) + null != f && f === document.body && Ss(f) && !Ss(document.documentElement) || null != f && Ss(f, u) && h.push(f) } let m = null != (r = null == (n = window.visualViewport) ? void 0 : n.width) ? r : innerWidth, g = null != (a = null == (i = window.visualViewport) ? void 0 : i.height) ? a : innerHeight, @@ -23586,8 +23431,8 @@ } = e.getBoundingClientRect(), { top: E, - right: I, - bottom: O, + right: O, + bottom: I, left: C } = (e => { let t = window.getComputedStyle(e); @@ -23598,8 +23443,8 @@ left: parseFloat(t.scrollMarginLeft) || 0 } })(e), - A = "start" === s || "nearest" === s ? x - E : "end" === s ? w + O : x + _ / 2 - E + O, - P = "center" === l ? S + b / 2 - C + I : "end" === l ? k + I : S - C, + A = "start" === s || "nearest" === s ? x - E : "end" === s ? w + I : x + _ / 2 - E + I, + P = "center" === l ? S + b / 2 - C + O : "end" === l ? k + O : S - C, T = []; for (let R = 0; R < h.length; R++) { let e = h[R], @@ -23616,31 +23461,31 @@ d = parseInt(u.borderLeftWidth, 10), f = parseInt(u.borderTopWidth, 10), E = parseInt(u.borderRightWidth, 10), - I = parseInt(u.borderBottomWidth, 10), - O = 0, + O = parseInt(u.borderBottomWidth, 10), + I = 0, C = 0, D = "offsetWidth" in e ? e.offsetWidth - e.clientWidth - d - E : 0, - L = "offsetHeight" in e ? e.offsetHeight - e.clientHeight - f - I : 0, + L = "offsetHeight" in e ? e.offsetHeight - e.clientHeight - f - O : 0, N = "offsetWidth" in e ? 0 === e.offsetWidth ? 0 : n / e.offsetWidth : 0, - M = "offsetHeight" in e ? 0 === e.offsetHeight ? 0 : t / e.offsetHeight : 0; - if (p === e) O = "start" === s ? A : "end" === s ? A - g : "nearest" === s ? il(y, y + g, g, f, I, y + A, y + A + _, _) : A - g / 2, C = "start" === l ? P : "center" === l ? P - m / 2 : "end" === l ? P - m : il(v, v + m, m, d, E, v + P, v + P + b, b), O = Math.max(0, O + y), C = Math.max(0, C + v); + j = "offsetHeight" in e ? 0 === e.offsetHeight ? 0 : t / e.offsetHeight : 0; + if (p === e) I = "start" === s ? A : "end" === s ? A - g : "nearest" === s ? Es(y, y + g, g, f, O, y + A, y + A + _, _) : A - g / 2, C = "start" === l ? P : "center" === l ? P - m / 2 : "end" === l ? P - m : Es(v, v + m, m, d, E, v + P, v + P + b, b), I = Math.max(0, I + y), C = Math.max(0, C + v); else { - O = "start" === s ? A - r - f : "end" === s ? A - a + I + L : "nearest" === s ? il(r, a, t, f, I + L, A, A + _, _) : A - (r + t / 2) + L / 2, C = "start" === l ? P - c - d : "center" === l ? P - (c + n / 2) + D / 2 : "end" === l ? P - i + E + D : il(c, i, n, d, E + D, P, P + b, b); + I = "start" === s ? A - r - f : "end" === s ? A - a + O + L : "nearest" === s ? Es(r, a, t, f, O + L, A, A + _, _) : A - (r + t / 2) + L / 2, C = "start" === l ? P - c - d : "center" === l ? P - (c + n / 2) + D / 2 : "end" === l ? P - i + E + D : Es(c, i, n, d, E + D, P, P + b, b); let { scrollLeft: o, scrollTop: u } = e; - O = 0 === M ? 0 : Math.max(0, Math.min(u + O / M, e.scrollHeight - t / M + L)), C = 0 === N ? 0 : Math.max(0, Math.min(o + C / N, e.scrollWidth - n / N + D)), A += u - O, P += o - C + I = 0 === j ? 0 : Math.max(0, Math.min(u + I / j, e.scrollHeight - t / j + L)), C = 0 === N ? 0 : Math.max(0, Math.min(o + C / N, e.scrollWidth - n / N + D)), A += u - I, P += o - C } T.push({ el: e, - top: O, + top: I, left: C }) } return T }, - sl = (0, Ee.forwardRef)((({ + Cs = (0, Ee.forwardRef)((({ children: e, className: t, id: n, @@ -23663,7 +23508,7 @@ toggle: y, unregister: _ } = (() => { - let e = (0, Ee.useContext)(Ho); + let e = (0, Ee.useContext)(ho); if (!e) throw Error("Accordion components must be wrapped in "); return e })(), @@ -23688,14 +23533,14 @@ left: parseFloat(t.scrollMarginLeft) || 0 } })(e); - if ("object" == typeof t && "function" == typeof t.behavior) return t.behavior(ol(e, t)); + if ("object" == typeof t && "function" == typeof t.behavior) return t.behavior(Is(e, t)); let r = "boolean" == typeof t || null == t ? void 0 : t.behavior; for (let { el: i, top: a, left: o } - of ol(e, (e => !1 === e ? { + of Is(e, (e => !1 === e ? { block: "end", inline: "nearest" } : e === Object(e) && 0 !== Object.keys(e).length ? e : { @@ -23722,14 +23567,14 @@ E = (0, Ee.useCallback)((() => { b || k(!1) }), [b]), - I = Vs(p, d), - O = fs("sol-c-accordion__item", b && "sol-c-accordion__item--open", t); - return qo.jsxs("div", { - className: O, + O = os(p, d), + I = Lo("sol-c-accordion__item", b && "sol-c-accordion__item--open", t); + return po.jsxs("div", { + className: I, id: m, - ref: I, + ref: O, ...u, - children: [qo.jsxs("button", { + children: [po.jsxs("button", { "aria-controls": m + "-content", "aria-expanded": b, className: "sol-c-accordion__header", @@ -23739,7 +23584,7 @@ ref: h, children: ["function" == typeof o ? o({ isOpen: b - }) : o, qo.jsx(Ys, { + }) : o, po.jsx(gs, { as: "span", className: "sol-c-accordion__title", offset: !0, @@ -23749,19 +23594,19 @@ }) : c }), "function" == typeof l ? l({ isOpen: b - }) : l, qo.jsx(Ko, { + }) : l, po.jsx(fo, { className: "sol-c-accordion__icon sol-c-accordion__icon--plus" - }), qo.jsx(os, { + }), po.jsx(Oo, { className: "sol-c-accordion__icon sol-c-accordion__icon--minus" })] - }), qo.jsx("div", { + }), po.jsx("div", { "aria-labelledby": m + "-header", className: "sol-c-accordion__content", hidden: !b, id: m + "-content", role: "region", onTransitionEnd: E, - children: (r || x) && qo.jsx("div", { + children: (r || x) && po.jsx("div", { className: "sol-c-accordion__wrapper", children: "function" == typeof e ? e({ close: S, @@ -23771,7 +23616,7 @@ })] }) })), - ll = (0, Ee.forwardRef)((({ + As = (0, Ee.forwardRef)((({ className: e, closeAll: t, children: n, @@ -23801,23 +23646,23 @@ openAll: () => o(!0) })), [i, e, n, a, o, r]) })(), - s = fs("sol-c-accordion", e); - return qo.jsx(Ho.Provider, { + s = Lo("sol-c-accordion", e); + return po.jsx(ho.Provider, { value: o, - children: qo.jsxs("div", { + children: po.jsxs("div", { className: s, ref: a, ...i, - children: [o.size > 2 && qo.jsxs("div", { + children: [o.size > 2 && po.jsxs("div", { className: "sol-c-accordion__actions", - children: [r && qo.jsx(el, { + children: [r && po.jsx(xs, { className: "sol-c-accordion__action", disabled: o.allOpen, onClick: o.openAll, size: "small", variant: "plain", children: r - }), t && qo.jsx(el, { + }), t && po.jsx(xs, { className: "sol-c-accordion__action", disabled: o.allClosed, onClick: o.closeAll, @@ -23825,15 +23670,15 @@ variant: "plain", children: t })] - }), qo.jsx("div", { + }), po.jsx("div", { className: "sol-c-accordion__items", children: n })] }) }) })); - No("@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{-webkit-app-region:no-drag}.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)}}"), No("@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}}"); - ms((({ + eo("@layer sol.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{-webkit-app-region:no-drag}.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)}.sol-c-app-header__item--rsi-logo .sol-c-icon{transition:transform var(--sol-motion-250) var(--sol-motion-ease-out),opacity var(--sol-motion-250) var(--sol-motion-ease-out)}.sol-c-app-header__item--rsi-logo .sol-c-icon--arrow-up{opacity:0;position:absolute;right:0;transform:translateY(calc(var(--sol-size-075)*-1))}.sol-c-app-header__item--rsi-logo[aria-expanded=true] .sol-c-icon--arrow-down{opacity:0;transform:translateY(var(--sol-size-075))}.sol-c-app-header__item--rsi-logo[aria-expanded=true] .sol-c-icon--arrow-up{opacity:1;transform:translateY(0)}}"), eo("@layer sol.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}}"); + No((({ align: e, as: t = "div", className: n, @@ -23841,14 +23686,14 @@ fill: i, ...a }, o) => { - let s = fs("sol-c-stack__item", e && `sol-c-stack__item--${e}`, i && "sol-c-stack__item--fill", n); + let s = Lo("sol-c-stack__item", e && `sol-c-stack__item--${e}`, i && "sol-c-stack__item--fill", n); return (0, Ee.createElement)(t, { className: s, ref: o, ...a }, r) })); - let cl = ms((({ + let Ps = No((({ align: e, as: t = "div", children: n, @@ -23860,19 +23705,19 @@ wrap: l, ...c }, u) => { - let d = fs("sol-c-stack", e && `sol-c-stack--align-${e}`, a && `sol-c-stack--justify-${a}`, o && "sol-c-stack--reverse", s && "sol-c-stack--vertical", l && "sol-c-stack--wrap", i && `sol-u-gap-${i}`, r); + let d = Lo("sol-c-stack", e && `sol-c-stack--align-${e}`, a && `sol-c-stack--justify-${a}`, o && "sol-c-stack--reverse", s && "sol-c-stack--vertical", l && "sol-c-stack--wrap", i && `sol-u-gap-${i}`, r); return (0, Ee.createElement)(t, { className: d, ref: u, ...c }, n) })), - ul = (0, Ee.forwardRef)((({ + Ts = (0, Ee.forwardRef)((({ className: e, ...t }, n) => { - let r = fs("sol-c-app-header__actions", e); - return qo.jsx(cl, { + let r = Lo("sol-c-app-header__actions", e); + return po.jsx(Ps, { align: "center", className: r, justify: "end", @@ -23881,7 +23726,7 @@ ...t }) })), - dl = (0, Ee.forwardRef)((({ + Rs = (0, Ee.forwardRef)((({ alwaysOnTop: e, children: t, className: n, @@ -23890,14 +23735,14 @@ style: a, ...o }, s) => { - let l = fs("sol-c-app-header__item", e && "sol-c-app-header__item--always-on-top", r && "sol-c-app-header__item--avatar", n), + let l = Lo("sol-c-app-header__item", e && "sol-c-app-header__item--always-on-top", r && "sol-c-app-header__item--avatar", n), c = { ...r && { "--sol-c-button-padding": "var(--sol-size-025)" }, ...a }; - return qo.jsx(el, { + return po.jsx(xs, { "aria-label": t && i ? i : void 0, className: l, disableOffset: !!t, @@ -23909,59 +23754,59 @@ children: t ?? i }) })), - pl = ms((({ + Ds = No((({ as: e = "div", className: t, ...n }, r) => { - let i = fs("sol-c-app-header__separator", t); - return qo.jsx(e, { + let i = Lo("sol-c-app-header__separator", t); + return po.jsx(e, { "aria-hidden": "true", className: i, ref: r, ...n }) })), - hl = (0, Ee.forwardRef)((({ + Ls = (0, Ee.forwardRef)((({ actions: e, children: t, className: n, ...r }, i) => { - let a = fs("sol-c-app-header", n); - return qo.jsxs(cl, { + let a = Lo("sol-c-app-header", n); + return po.jsxs(Ps, { as: "header", className: a, gap: "050", ref: i, ...r, - children: [t, e && qo.jsx(ul, { + children: [t, e && po.jsx(Ts, { children: e })] }) })); - No("@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 fl = (0, Ee.forwardRef)((({ + eo("@layer sol.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 Ns = (0, Ee.forwardRef)((({ children: e, className: t, header: n, ...r }, i) => { - let a = fs("sol-c-app-layout", t); - return qo.jsxs("div", { + let a = Lo("sol-c-app-layout", t); + return po.jsxs("div", { className: a, ref: i, ...r, children: [n && (0, Ee.cloneElement)(n, { className: "sol-c-app-layout__header" - }), qo.jsx("main", { + }), po.jsx("main", { className: "sol-c-app-layout__main", children: e })] }) })); - No("@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 ml = ms((({ + eo("@layer sol.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 js = No((({ as: e = "span", alt: t, className: n, @@ -23969,26 +23814,26 @@ srcSet: i, ...a }, o) => { - let s = Os({ + let s = Ko({ src: r, srcSet: i }), - l = fs("sol-c-avatar", n); - return qo.jsx(e, { + l = Lo("sol-c-avatar", n); + return po.jsx(e, { className: l, - "aria-label": r && s !== Is ? void 0 : t, + "aria-label": r && s !== Ho ? void 0 : t, ref: o, ...a, - children: r && s !== Is && qo.jsx("img", { + children: r && s !== Ho && po.jsx("img", { alt: t ?? "", - className: fs("sol-c-avatar__image", s === Es && "sol-c-avatar__image--loaded"), + className: Lo("sol-c-avatar__image", s === Wo && "sol-c-avatar__image--loaded"), src: r, srcSet: i }) }) })); - No("@layer components{.sol-c-card{--_background-color:var(--sol-color-surface-0);--_border-color:var(--sol-color-surface-2);--_border-radius:var(--sol-radius-8);--_border-width:var(--sol-border-1);--_width:13rem;--_height:18rem;--_media-width:22.375rem;--_overlay-offset:var(--sol-size-150);--_content-width:calc(100% - var(--_media-width) - var(--_border-width));--_background-mask:var(\n --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='M55.5 32.5v2.492a7.5 7.5 0 0 1-2.419 5.517L38.958 53.517a7.5 7.5 0 0 1-5.08 1.983H8A7.5 7.5 0 0 1 .5 48V8A7.5 7.5 0 0 1 8 .5h40A7.5 7.5 0 0 1 55.5 8v24.5Z'/%3E%3C/svg%3E\") 24 fill\n );--_border-mask:var(--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='M55.5 32.5v2.492a7.5 7.5 0 0 1-2.419 5.517L38.958 53.517a7.5 7.5 0 0 1-5.08 1.983H8A7.5 7.5 0 0 1 .5 48V8A7.5 7.5 0 0 1 8 .5h40A7.5 7.5 0 0 1 55.5 8v24.5Z'/%3E%3C/svg%3E\") 24 fill);--_light-color:var(--sol-color-accent-1);--_light-angle:var(--sol-motion-angle);--_light-size:var(--sol-size-500);border-radius:var(--_border-radius);cursor:var(--sol-cursor-link);inline-size:var(--_width);position:relative}.sol-c-card:after,.sol-c-card:before{border:var(--_border-width) solid;color:var(--_border-color);content:\"\";inset:0;position:absolute;transition:color var(--sol-motion-250) var(--sol-motion-ease)}.sol-c-card:before{border-block-end:0;border-start-end-radius:var(--_border-radius);border-start-start-radius:var(--_border-radius);inset-block-end:50%;z-index:2}.sol-c-card:after{border-block-start:0;border-end-end-radius:var(--_border-radius);border-end-start-radius:var(--_border-radius);inset-block-start:50%;z-index:4}@supports ((-webkit-mask-box-image:var(--_border-mask )) or (mask-border:var(--_border-mask ))){.sol-c-card:after,.sol-c-card:before{-webkit-mask-box-image:var(--_border-mask);border:none;inset-block:0;mask-border:var(--_border-mask);pointer-events:none}.sol-c-card:before{background:linear-gradient(currentColor 50%,#0000 0)}.sol-c-card:after{background:linear-gradient(#0000 50%,currentColor 0)}}.sol-c-card:hover{--_border-color:var(--sol-color-interactive-hovered);--_background-color:var(--sol-color-surface-0-hovered)}.sol-c-card:active{--_border-color:var(--sol-color-interactive-pressed);--_background-color:var(--sol-color-surface-0-pressed)}.sol-c-card:focus,.sol-c-card:focus-within{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}.sol-c-card--wide{--_width:35.5rem}.sol-c-card--offline{--_width:auto}.sol-c-card__wrapper{-webkit-mask-box-image:var(--_background-mask);background:var(--_background-color);border-radius:var(--_border-radius);display:flex;mask-border:var(--_background-mask);min-block-size:var(--_height);overflow:hidden;padding:var(--_border-width);transition:background-color var(--sol-motion-250) var(--sol-motion-ease)}.sol-c-card__content{align-items:flex-start;display:flex;flex:1;flex-direction:column;overflow:hidden;padding:var(--sol-size-150);position:relative;z-index:1}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-card__content:before{--_a:calc(var(--_height)/cos(var(--_light-angle)));--_b:calc(var(--_light-size)*tan(var(--_light-angle)));--_c:calc(var(--_light-size)*cos(var(--_light-angle)));--_light-width:calc(var(--_a) + var(--_b));background:linear-gradient(to right,var(--_light-color),#0000);content:\"\";height:var(--_light-size);left:50%;opacity:0;position:absolute;top:50%;transform:translate(calc(-100% - var(--_c)),-50%) rotate(calc(var(--_light-angle)*-1));width:var(--_light-width);z-index:-1}.sol-c-card:hover .sol-c-card__content:before{animation:sol-c-card-sweep var(--sol-motion-500) var(--sol-motion-linear) both}}@keyframes sol-c-card-sweep{50%{opacity:.4}to{opacity:0;transform:translate(calc(var(--_c)),-50%) rotate(calc(var(--_light-angle)*-1))}}.sol-c-card__heading{margin-block-end:auto}.sol-c-card__link{outline:none}.sol-c-card__media{inline-size:var(--_media-width);overflow:hidden;position:relative}.sol-c-card__media .sol-c-card__image{left:0;position:absolute;top:0}@supports (object-fit:cover){.sol-c-card__media .sol-c-card__image{height:100%;object-fit:cover;width:100%}}.sol-c-card__overlay{-webkit-mask-box-image:var(--_background-mask);clip-path:inset(0 0 0 var(--_content-width));inset:0;inset-block-start:calc(var(--_overlay-offset)*-1);mask-border:var(--_background-mask);overflow:hidden;pointer-events:none;position:absolute;z-index:3}.sol-c-card__overlay .sol-c-card__image{inline-size:calc(var(--_media-width) + var(--_overlay-offset)*2 + var(--_border-width)*2);inset-inline-end:calc(var(--_overlay-offset)*-1);max-inline-size:none;position:absolute;top:0}[dir=rtl] .sol-c-card__overlay{clip-path:inset(0 var(--_content-width) 0 0)}.sol-c-card__image{opacity:0;transition-duration:var(--sol-motion-250);transition-property:opacity}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-card__image{transform:scale(1.05);transition-property:opacity,transform}}.sol-c-card__image--loaded{opacity:1;transform:scale(1)}.sol-c-card__offline-icon.sol-c-icon{color:var(--sol-color-surface-3);height:var(--sol-size-600);margin:auto 13rem;position:relative;width:var(--sol-size-600)}}"); - var gl = { + eo("@layer sol.components{.sol-c-card{--_background-color:var(--sol-color-surface-0);--_border-color:var(--sol-color-surface-2);--_border-radius:var(--sol-radius-8);--_border-width:var(--sol-border-1);--_width:13rem;--_height:18rem;--_media-width:22.375rem;--_overlay-offset:var(--sol-size-150);--_content-width:calc(100% - var(--_media-width) - var(--_border-width));--_background-mask:var(\n --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='M55.5 32.5v2.492a7.5 7.5 0 0 1-2.419 5.517L38.958 53.517a7.5 7.5 0 0 1-5.08 1.983H8A7.5 7.5 0 0 1 .5 48V8A7.5 7.5 0 0 1 8 .5h40A7.5 7.5 0 0 1 55.5 8v24.5Z'/%3E%3C/svg%3E\") 24 fill\n );--_border-mask:var(--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='M55.5 32.5v2.492a7.5 7.5 0 0 1-2.419 5.517L38.958 53.517a7.5 7.5 0 0 1-5.08 1.983H8A7.5 7.5 0 0 1 .5 48V8A7.5 7.5 0 0 1 8 .5h40A7.5 7.5 0 0 1 55.5 8v24.5Z'/%3E%3C/svg%3E\") 24 fill);--_light-color:var(--sol-color-accent-1);--_light-angle:var(--sol-motion-angle);--_light-size:var(--sol-size-500);border-radius:var(--_border-radius);cursor:var(--sol-cursor-link);inline-size:var(--_width);position:relative}.sol-c-card:after,.sol-c-card:before{border:var(--_border-width) solid;color:var(--_border-color);content:\"\";inset:0;position:absolute;transition:color var(--sol-motion-250) var(--sol-motion-ease)}.sol-c-card:before{border-block-end:0;border-start-end-radius:var(--_border-radius);border-start-start-radius:var(--_border-radius);inset-block-end:50%;z-index:2}.sol-c-card:after{border-block-start:0;border-end-end-radius:var(--_border-radius);border-end-start-radius:var(--_border-radius);inset-block-start:50%;z-index:4}@supports ((-webkit-mask-box-image:var(--_border-mask )) or (mask-border:var(--_border-mask ))){.sol-c-card:after,.sol-c-card:before{-webkit-mask-box-image:var(--_border-mask);border:none;inset-block:0;mask-border:var(--_border-mask);pointer-events:none}.sol-c-card:before{background:linear-gradient(currentColor 50%,#0000 0)}.sol-c-card:after{background:linear-gradient(#0000 50%,currentColor 0)}}.sol-c-card:hover{--_border-color:var(--sol-color-interactive-hovered);--_background-color:var(--sol-color-surface-0-hovered)}.sol-c-card:active{--_border-color:var(--sol-color-interactive-pressed);--_background-color:var(--sol-color-surface-0-pressed)}.sol-c-card:focus,.sol-c-card:focus-within{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}.sol-c-card--wide{--_width:35.5rem}.sol-c-card--offline{--_width:auto}.sol-c-card__wrapper{-webkit-mask-box-image:var(--_background-mask);background:var(--_background-color);border-radius:var(--_border-radius);display:flex;mask-border:var(--_background-mask);min-block-size:var(--_height);overflow:hidden;padding:var(--_border-width);transition:background-color var(--sol-motion-250) var(--sol-motion-ease)}.sol-c-card__content{align-items:flex-start;display:flex;flex:1;flex-direction:column;overflow:hidden;padding:var(--sol-size-150);position:relative;z-index:1}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-card__content:before{--_a:calc(var(--_height)/cos(var(--_light-angle)));--_b:calc(var(--_light-size)*tan(var(--_light-angle)));--_c:calc(var(--_light-size)*cos(var(--_light-angle)));--_light-width:calc(var(--_a) + var(--_b));background:linear-gradient(to right,var(--_light-color),#0000);content:\"\";height:var(--_light-size);left:50%;opacity:0;position:absolute;top:50%;transform:translate(calc(-100% - var(--_c)),-50%) rotate(calc(var(--_light-angle)*-1));width:var(--_light-width);z-index:-1}.sol-c-card:hover .sol-c-card__content:before{animation:sol-c-card-sweep var(--sol-motion-500) var(--sol-motion-linear) both}}@keyframes sol-c-card-sweep{50%{opacity:.4}to{opacity:0;transform:translate(calc(var(--_c)),-50%) rotate(calc(var(--_light-angle)*-1))}}.sol-c-card__heading{margin-block-end:auto}.sol-c-card__link{outline:none}.sol-c-card__media{inline-size:var(--_media-width);overflow:hidden;position:relative}.sol-c-card__media .sol-c-card__image{left:0;position:absolute;top:0}@supports (object-fit:cover){.sol-c-card__media .sol-c-card__image{height:100%;object-fit:cover;width:100%}}.sol-c-card__overlay{-webkit-mask-box-image:var(--_background-mask);clip-path:inset(0 0 0 var(--_content-width));inset:0;inset-block-start:calc(var(--_overlay-offset)*-1);mask-border:var(--_background-mask);overflow:hidden;pointer-events:none;position:absolute;z-index:3}.sol-c-card__overlay .sol-c-card__image{inline-size:calc(var(--_media-width) + var(--_overlay-offset)*2 + var(--_border-width)*2);inset-inline-end:calc(var(--_overlay-offset)*-1);max-inline-size:none;position:absolute;top:0}[dir=rtl] .sol-c-card__overlay{clip-path:inset(0 var(--_content-width) 0 0)}.sol-c-card__image{opacity:0;transition-duration:var(--sol-motion-250);transition-property:opacity}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-card__image{transform:scale(1.05);transition-property:opacity,transform}}.sol-c-card__image--loaded{opacity:1;transform:scale(1)}.sol-c-card__offline-icon.sol-c-icon{color:var(--sol-color-surface-3);height:var(--sol-size-600);margin:auto 13rem;position:relative;width:var(--sol-size-600)}}"); + var Ms = { v: "5.9.0", fr: 29.9700012207031, ip: 0, @@ -26410,32 +26255,32 @@ markers: [] }; - function vl(e) { - return _l(e) ? (e.nodeName || "").toLowerCase() : "#document" + function Fs(e) { + return Vs(e) ? (e.nodeName || "").toLowerCase() : "#document" } - function yl(e) { + function zs(e) { var t; return (null == e || null == (t = e.ownerDocument) ? void 0 : t.defaultView) || window } - function _l(e) { - return e instanceof Node || e instanceof yl(e).Node + function Vs(e) { + return e instanceof Node || e instanceof zs(e).Node } - function bl(e) { - return e instanceof Element || e instanceof yl(e).Element + function Us(e) { + return e instanceof Element || e instanceof zs(e).Element } - function xl(e) { - return e instanceof HTMLElement || e instanceof yl(e).HTMLElement + function Bs(e) { + return e instanceof HTMLElement || e instanceof zs(e).HTMLElement } - function kl(e) { - return "undefined" != typeof ShadowRoot && (e instanceof ShadowRoot || e instanceof yl(e).ShadowRoot) + function Gs(e) { + return "undefined" != typeof ShadowRoot && (e instanceof ShadowRoot || e instanceof zs(e).ShadowRoot) } - function wl(e) { + function $s(e) { let t = e.activeElement; for (; null != (null == (n = t) || null == (r = n.shadowRoot) ? void 0 : r.activeElement);) { var n, r; @@ -26444,11 +26289,11 @@ return t } - function Sl(e, t) { + function qs(e, t) { if (!e || !t) return !1; let n = t.getRootNode && t.getRootNode(); if (e.contains(t)) return !0; - if (n && kl(n)) { + if (n && Gs(n)) { let n = t; for (; n;) { if (e === n) return !0; @@ -26458,26 +26303,26 @@ return !1 } - function El() { + function Ws() { let e = navigator.userAgentData; return null != e && e.platform ? e.platform : navigator.platform } - function Il(e) { - return 0 === e.mozInputSource && !!e.isTrusted || (Al() && e.pointerType ? "click" === e.type && 1 === e.buttons : 0 === e.detail && !e.pointerType) + function Hs(e) { + return 0 === e.mozInputSource && !!e.isTrusted || (Qs() && e.pointerType ? "click" === e.type && 1 === e.buttons : 0 === e.detail && !e.pointerType) } - function Ol(e) { - return !Al() && 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 Ks(e) { + return !Qs() && 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 Cl() { + function Ys() { return /apple/i.test(navigator.vendor) } - function Al() { + function Qs() { let e = /android/i; - return e.test(El()) || e.test(function() { + return e.test(Ws()) || e.test(function() { let e = navigator.userAgentData; return e && Array.isArray(e.brands) ? e.brands.map((e => { let { @@ -26489,88 +26334,88 @@ }()) } - function Pl() { - return El().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints + function Zs() { + return Ws().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints } - function Tl(e, t) { + function Xs(e, t) { let n = ["mouse", "pen"]; return t || n.push("", void 0), n.includes(e) } - function Rl(e) { + function Js(e) { return (null == e ? void 0 : e.ownerDocument) || document } - function Dl(e, t) { + function el(e, t) { return null != t && ("composedPath" in e ? e.composedPath().includes(t) : null != e.target && t.contains(e.target)) } - function Ll(e) { + function tl(e) { return "composedPath" in e ? e.composedPath()[0] : e.target } - function Nl(e) { - return xl(e) && e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])") + function nl(e) { + return Bs(e) && e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])") } - function Ml(e) { + function rl(e) { e.preventDefault(), e.stopPropagation() } - No("@layer components{.sol-c-tooltip{--_background:var(--sol-c-tooltip-background,var(--sol-color-surface-2));--_arrow-size:var(--sol-c-tooltip-size,var(--sol-size-100));--sol-u-transition-floating-offset:var(--sol-size-025);background:var(--_background);border-radius:var(--sol-radius-4);filter:drop-shadow(var(--sol-shadow-050));inline-size:max-content;max-inline-size:17.5rem;padding:var(--sol-size-050);z-index:var(--sol-z-tooltip)}.sol-c-tooltip:not(.sol-c-tooltip--interactive){pointer-events:none}.sol-c-tooltip__arrow{fill:var(--_background);height:var(--_arrow-size);width:var(--_arrow-size)}}"); - let jl = Math.floor, - Fl = Math.min, - zl = Math.max, - Vl = Math.round, - Ul = Math.floor, - Bl = e => ({ + eo("@layer sol.components{.sol-c-tooltip{--_background:var(--sol-c-tooltip-background,var(--sol-color-surface-2));--_arrow-size:var(--sol-c-tooltip-size,var(--sol-size-100));--sol-u-transition-floating-offset:var(--sol-size-025);background:var(--_background);border-radius:var(--sol-radius-4);filter:drop-shadow(var(--sol-shadow-050));inline-size:max-content;max-inline-size:17.5rem;padding:var(--sol-size-050);z-index:var(--sol-z-tooltip)}.sol-c-tooltip:not(.sol-c-tooltip--interactive){pointer-events:none}.sol-c-tooltip__arrow{fill:var(--_background);height:var(--_arrow-size);width:var(--_arrow-size)}}"); + let il = Math.floor, + al = Math.min, + ol = Math.max, + sl = Math.round, + ll = Math.floor, + cl = e => ({ x: e, y: e }), - Gl = { + ul = { left: "right", right: "left", bottom: "top", top: "bottom" }, - Wl = { + dl = { start: "end", end: "start" }; - function $l(e, t) { + function pl(e, t) { return "function" == typeof e ? e(t) : e } - function ql(e) { + function hl(e) { return e.split("-")[0] } - function Hl(e) { + function fl(e) { return e.split("-")[1] } - function Kl(e) { + function ml(e) { return "x" === e ? "y" : "x" } - function Yl(e) { + function gl(e) { return "y" === e ? "height" : "width" } - function Ql(e) { - return ["top", "bottom"].includes(ql(e)) ? "y" : "x" + function vl(e) { + return ["top", "bottom"].includes(hl(e)) ? "y" : "x" } - function Zl(e) { - return e.replace(/start|end/g, (e => Wl[e])) + function yl(e) { + return e.replace(/start|end/g, (e => dl[e])) } - function Xl(e) { - return e.replace(/left|right|bottom|top/g, (e => Gl[e])) + function _l(e) { + return e.replace(/left|right|bottom|top/g, (e => ul[e])) } - function Jl(e) { + function bl(e) { return "number" != typeof e ? { top: 0, right: 0, @@ -26585,7 +26430,7 @@ } } - function ec(e) { + function xl(e) { return { ...e, top: e.y, @@ -26595,15 +26440,15 @@ } } - function tc(e, t, n) { + function kl(e, t, n) { let r, { reference: i, floating: a } = e, - o = Ql(t), - s = Kl(Ql(t)), - l = Yl(s), - c = ql(t), + o = vl(t), + s = ml(vl(t)), + l = gl(s), + c = hl(t), u = "y" === o, d = i.x + i.width / 2 - a.width / 2, p = i.y + i.height / 2 - a.height / 2, @@ -26639,7 +26484,7 @@ y: i.y } } - switch (Hl(t)) { + switch (fl(t)) { case "start": r[s] -= h * (n && u ? -1 : 1); break; @@ -26648,7 +26493,7 @@ } return r } - async function nc(e, t) { + async function wl(e, t) { var n; void 0 === t && (t = {}); let { @@ -26664,7 +26509,7 @@ elementContext: d = "floating", altBoundary: p = !1, padding: h = 0 - } = $l(t, e), f = Jl(h), m = s[p ? "floating" === d ? "reference" : "floating" : d], g = ec(await a.getClippingRect({ + } = pl(t, e), f = bl(h), m = s[p ? "floating" === d ? "reference" : "floating" : d], g = xl(await a.getClippingRect({ element: null == (n = await (null == a.isElement ? void 0 : a.isElement(m))) || n ? m : m.contextElement || await (null == a.getDocumentElement ? void 0 : a.getDocumentElement(s.floating)), boundary: c, rootBoundary: u, @@ -26676,7 +26521,7 @@ } : o.reference, y = await (null == a.getOffsetParent ? void 0 : a.getOffsetParent(s.floating)), _ = await (null == a.isElement ? void 0 : a.isElement(y)) && await (null == a.getScale ? void 0 : a.getScale(y)) || { x: 1, y: 1 - }, b = ec(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({ + }, b = xl(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: v, offsetParent: y, strategy: l @@ -26688,7 +26533,7 @@ right: (b.right - g.right + f.right) / _.x } } - let rc = e => ({ + let Sl = e => ({ name: "arrow", options: e, async fn(t) { @@ -26702,15 +26547,15 @@ } = t, { element: l, padding: c = 0 - } = $l(e, t) || {}; + } = pl(e, t) || {}; if (null == l) return {}; - let u = Jl(c), + let u = bl(c), d = { x: n, y: r }, - p = Kl(Ql(i)), - h = Yl(p), + p = ml(vl(i)), + h = gl(p), f = await o.getDimensions(l), m = "y" === p, g = m ? "clientHeight" : "clientWidth", @@ -26720,22 +26565,22 @@ b = _ ? _[g] : 0; b && await (null == o.isElement ? void 0 : o.isElement(_)) || (b = s.floating[g] || a.floating[h]); let x = b / 2 - f[h] / 2 - 1, - k = Fl(u[m ? "top" : "left"], x), - w = Fl(u[m ? "bottom" : "right"], x), + k = al(u[m ? "top" : "left"], x), + w = al(u[m ? "bottom" : "right"], x), S = b - f[h] - w, E = b / 2 - f[h] / 2 + (v / 2 - y / 2), - I = zl(k, Fl(E, S)), - O = null != Hl(i) && E != I && a.reference[h] / 2 - (E < k ? k : w) - f[h] / 2 < 0 ? E < k ? k - E : S - E : 0; + O = ol(k, al(E, S)), + I = null != fl(i) && E != O && a.reference[h] / 2 - (E < k ? k : w) - f[h] / 2 < 0 ? E < k ? k - E : S - E : 0; return { - [p]: d[p] - O, + [p]: d[p] - I, data: { - [p]: I, - centerOffset: E - I + O + [p]: O, + centerOffset: E - O + I } } } }); - let ic = function(e) { + let El = function(e) { return void 0 === e && (e = 0), { name: "offset", options: e, @@ -26748,7 +26593,7 @@ placement: n, platform: r, elements: i - } = e, a = await (null == r.isRTL ? void 0 : r.isRTL(i.floating)), o = ql(n), s = Hl(n), l = "y" === Ql(n), c = ["left", "top"].includes(o) ? -1 : 1, u = a && l ? -1 : 1, d = $l(t, e), { + } = e, a = await (null == r.isRTL ? void 0 : r.isRTL(i.floating)), o = hl(n), s = fl(n), l = "y" === vl(n), c = ["left", "top"].includes(o) ? -1 : 1, u = a && l ? -1 : 1, d = pl(t, e), { mainAxis: p, crossAxis: h, alignmentAxis: f @@ -26778,7 +26623,7 @@ } } }, - ac = function(e) { + Ol = function(e) { return void 0 === e && (e = {}), { name: "shift", options: e, @@ -26803,20 +26648,20 @@ } }, ...l - } = $l(e, t), c = { + } = pl(e, t), c = { x: n, y: r - }, u = await nc(t, l), d = Ql(ql(i)), p = Kl(d), h = c[p], f = c[d]; + }, u = await wl(t, l), d = vl(hl(i)), p = ml(d), h = c[p], f = c[d]; if (a) { let e = h + u["y" === p ? "top" : "left"], t = h - u["y" === p ? "bottom" : "right"]; - h = zl(e, Fl(h, t)) + h = ol(e, al(h, t)) } if (o) { let e = "y" === d ? "bottom" : "right", t = f + u["y" === d ? "top" : "left"], n = f - u[e]; - f = zl(t, Fl(f, n)) + f = ol(t, al(f, n)) } let m = s.fn({ ...t, @@ -26833,7 +26678,7 @@ } } }, - oc = function(e) { + Il = function(e) { return void 0 === e && (e = {}), { name: "size", options: e, @@ -26847,11 +26692,11 @@ { apply: l = (() => {}), ...c - } = $l(e, t), - u = await nc(t, c), - d = ql(i), - p = Hl(i), - h = "y" === Ql(i), + } = pl(e, t), + u = await wl(t, c), + d = hl(i), + p = fl(i), + h = "y" === vl(i), { width: f, height: m @@ -26864,17 +26709,17 @@ b = v; if (h) { let e = f - u.left - u.right; - b = p || y ? Fl(v, e) : e + b = p || y ? al(v, e) : e } else { let e = m - u.top - u.bottom; - _ = p || y ? Fl(g, e) : e + _ = p || y ? al(g, e) : e } if (y && !p) { - let e = zl(u.left, 0), - t = zl(u.right, 0), - n = zl(u.top, 0), - r = zl(u.bottom, 0); - h ? b = f - 2 * (0 !== e || 0 !== t ? e + t : zl(u.left, u.right)) : _ = m - 2 * (0 !== n || 0 !== r ? n + r : zl(u.top, u.bottom)) + let e = ol(u.left, 0), + t = ol(u.right, 0), + n = ol(u.top, 0), + r = ol(u.bottom, 0); + h ? b = f - 2 * (0 !== e || 0 !== t ? e + t : ol(u.left, u.right)) : _ = m - 2 * (0 !== n || 0 !== r ? n + r : ol(u.top, u.bottom)) } await l({ ...t, @@ -26891,66 +26736,66 @@ } }; - function sc(e) { - return uc(e) ? (e.nodeName || "").toLowerCase() : "#document" + function Cl(e) { + return Tl(e) ? (e.nodeName || "").toLowerCase() : "#document" } - function lc(e) { + function Al(e) { var t; return (null == e || null == (t = e.ownerDocument) ? void 0 : t.defaultView) || window } - function cc(e) { + function Pl(e) { var t; - return null == (t = (uc(e) ? e.ownerDocument : e.document) || window.document) ? void 0 : t.documentElement + return null == (t = (Tl(e) ? e.ownerDocument : e.document) || window.document) ? void 0 : t.documentElement } - function uc(e) { - return e instanceof Node || e instanceof lc(e).Node + function Tl(e) { + return e instanceof Node || e instanceof Al(e).Node } - function dc(e) { - return e instanceof Element || e instanceof lc(e).Element + function Rl(e) { + return e instanceof Element || e instanceof Al(e).Element } - function pc(e) { - return e instanceof HTMLElement || e instanceof lc(e).HTMLElement + function Dl(e) { + return e instanceof HTMLElement || e instanceof Al(e).HTMLElement } - function hc(e) { - return "undefined" != typeof ShadowRoot && (e instanceof ShadowRoot || e instanceof lc(e).ShadowRoot) + function Ll(e) { + return "undefined" != typeof ShadowRoot && (e instanceof ShadowRoot || e instanceof Al(e).ShadowRoot) } - function fc(e) { + function Nl(e) { let { overflow: t, overflowX: n, overflowY: r, display: i - } = yc(e); + } = zl(e); return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i) } - function mc(e) { - let t = gc(), - n = yc(e); + function jl(e) { + let t = Ml(), + n = zl(e); return "none" !== n.transform || "none" !== n.perspective || !!n.containerType && "normal" !== n.containerType || !t && !!n.backdropFilter && "none" !== n.backdropFilter || !t && !!n.filter && "none" !== n.filter || ["transform", "perspective", "filter"].some((e => (n.willChange || "").includes(e))) || ["paint", "layout", "strict", "content"].some((e => (n.contain || "").includes(e))) } - function gc() { + function Ml() { return "undefined" != typeof CSS && !!CSS.supports && CSS.supports("-webkit-backdrop-filter", "none") } - function vc(e) { - return ["html", "body", "#document"].includes(sc(e)) + function Fl(e) { + return ["html", "body", "#document"].includes(Cl(e)) } - function yc(e) { - return lc(e).getComputedStyle(e) + function zl(e) { + return Al(e).getComputedStyle(e) } - function _c(e) { - return dc(e) ? { + function Vl(e) { + return Rl(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { @@ -26959,32 +26804,32 @@ } } - function bc(e) { - if ("html" === sc(e)) return e; - let t = e.assignedSlot || e.parentNode || hc(e) && e.host || cc(e); - return hc(t) ? t.host : t + function Ul(e) { + if ("html" === Cl(e)) return e; + let t = e.assignedSlot || e.parentNode || Ll(e) && e.host || Pl(e); + return Ll(t) ? t.host : t } - function xc(e, t) { + function Bl(e, t) { var n; void 0 === t && (t = []); let r = function e(t) { - let n = bc(t); - return vc(n) ? t.ownerDocument ? t.ownerDocument.body : t.body : pc(n) && fc(n) ? n : e(n) + let n = Ul(t); + return Fl(n) ? t.ownerDocument ? t.ownerDocument.body : t.body : Dl(n) && Nl(n) ? n : e(n) }(e), i = r === (null == (n = e.ownerDocument) ? void 0 : n.body), - a = lc(r); - return i ? t.concat(a, a.visualViewport || [], fc(r) ? r : []) : t.concat(r, xc(r)) + a = Al(r); + return i ? t.concat(a, a.visualViewport || [], Nl(r) ? r : []) : t.concat(r, Bl(r)) } - function kc(e) { - let t = yc(e), + function Gl(e) { + let t = zl(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, - i = pc(e), + i = Dl(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, - s = Vl(n) !== a || Vl(r) !== o; + s = sl(n) !== a || sl(r) !== o; return s && (n = a, r = o), { width: n, height: r, @@ -26992,62 +26837,62 @@ } } - function wc(e) { - return dc(e) ? e : e.contextElement + function $l(e) { + return Rl(e) ? e : e.contextElement } - function Sc(e) { - let t = wc(e); - if (!pc(t)) return Bl(1); + function ql(e) { + let t = $l(e); + if (!Dl(t)) return cl(1); let n = t.getBoundingClientRect(), { width: r, height: i, $: a - } = kc(t), - o = (a ? Vl(n.width) : n.width) / r, - s = (a ? Vl(n.height) : n.height) / i; + } = Gl(t), + o = (a ? sl(n.width) : n.width) / r, + s = (a ? sl(n.height) : n.height) / i; return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), { x: o, y: s } } - let Ec = Bl(0); + let Wl = cl(0); - function Ic(e) { - let t = lc(e); - return gc() && t.visualViewport ? { + function Hl(e) { + let t = Al(e); + return Ml() && t.visualViewport ? { x: t.visualViewport.offsetLeft, y: t.visualViewport.offsetTop - } : Ec + } : Wl } - function Oc(e, t, n, r) { + function Kl(e, t, n, r) { var i; void 0 === t && (t = !1), void 0 === n && (n = !1); let a = e.getBoundingClientRect(), - o = wc(e), - s = Bl(1); - t && (r ? dc(r) && (s = Sc(r)) : s = Sc(e)); - let l = (void 0 === (i = n) && (i = !1), !r || i && r !== lc(o) || !i ? Bl(0) : Ic(o)), + o = $l(e), + s = cl(1); + t && (r ? Rl(r) && (s = ql(r)) : s = ql(e)); + let l = (void 0 === (i = n) && (i = !1), !r || i && r !== Al(o) || !i ? cl(0) : Hl(o)), c = (a.left + l.x) / s.x, u = (a.top + l.y) / s.y, d = a.width / s.x, p = a.height / s.y; if (o) { - let e = lc(o), - t = r && dc(r) ? lc(r) : r, + let e = Al(o), + t = r && Rl(r) ? Al(r) : r, n = e.frameElement; for (; n && r && t !== e;) { - let e = Sc(n), + let e = ql(n), t = n.getBoundingClientRect(), - r = yc(n), + r = zl(n), i = t.left + (n.clientLeft + parseFloat(r.paddingLeft)) * e.x, a = t.top + (n.clientTop + parseFloat(r.paddingTop)) * e.y; - c *= e.x, u *= e.y, d *= e.x, p *= e.y, c += i, u += a, n = lc(n).frameElement + c *= e.x, u *= e.y, d *= e.x, p *= e.y, c += i, u += a, n = Al(n).frameElement } } - return ec({ + return xl({ width: d, height: p, x: c, @@ -27055,15 +26900,15 @@ }) } - function Cc(e) { - return Oc(cc(e)).left + _c(e).scrollLeft + function Yl(e) { + return Kl(Pl(e)).left + Vl(e).scrollLeft } - function Ac(e, t, n) { + function Ql(e, t, n) { let r; if ("viewport" === t) r = function(e, t) { - let n = lc(e), - r = cc(e), + let n = Al(e), + r = Pl(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, @@ -27071,7 +26916,7 @@ l = 0; if (i) { a = i.width, o = i.height; - let e = gc(); + let e = Ml(); (!e || e && "fixed" === t) && (s = i.offsetLeft, l = i.offsetTop) } return { @@ -27082,25 +26927,25 @@ } }(e, n); else if ("document" === t) r = function(e) { - let t = cc(e), - n = _c(e), + let t = Pl(e), + n = Vl(e), r = e.ownerDocument.body, - i = zl(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), - a = zl(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), - o = -n.scrollLeft + Cc(e), + i = ol(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), + a = ol(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), + o = -n.scrollLeft + Yl(e), s = -n.scrollTop; - return "rtl" === yc(r).direction && (o += zl(t.clientWidth, r.clientWidth) - i), { + return "rtl" === zl(r).direction && (o += ol(t.clientWidth, r.clientWidth) - i), { width: i, height: a, x: o, y: s } - }(cc(e)); - else if (dc(t)) r = function(e, t) { - let n = Oc(e, !0, "fixed" === t), + }(Pl(e)); + else if (Rl(t)) r = function(e, t) { + let n = Kl(e, !0, "fixed" === t), r = n.top + e.clientTop, i = n.left + e.clientLeft, - a = pc(e) ? Sc(e) : Bl(1); + a = Dl(e) ? ql(e) : cl(1); return { width: e.clientWidth * a.x, height: e.clientHeight * a.y, @@ -27109,51 +26954,51 @@ } }(t, n); else { - let n = Ic(e); + let n = Hl(e); r = { ...t, x: t.x - n.x, y: t.y - n.y } } - return ec(r) + return xl(r) } - function Pc(e, t) { - return pc(e) && "fixed" !== yc(e).position ? t ? t(e) : e.offsetParent : null + function Zl(e, t) { + return Dl(e) && "fixed" !== zl(e).position ? t ? t(e) : e.offsetParent : null } - function Tc(e, t) { - let n = lc(e); - if (!pc(e)) return n; - let r = Pc(e, t); - for (; r && ["table", "td", "th"].includes(sc(r)) && "static" === yc(r).position;) r = Pc(r, t); - return r && ("html" === sc(r) || "body" === sc(r) && "static" === yc(r).position && !mc(r)) ? n : r || function(e) { - let t = bc(e); - for (; pc(t) && !vc(t);) { - if (mc(t)) return t; - t = bc(t) + function Xl(e, t) { + let n = Al(e); + if (!Dl(e)) return n; + let r = Zl(e, t); + for (; r && ["table", "td", "th"].includes(Cl(r)) && "static" === zl(r).position;) r = Zl(r, t); + return r && ("html" === Cl(r) || "body" === Cl(r) && "static" === zl(r).position && !jl(r)) ? n : r || function(e) { + let t = Ul(e); + for (; Dl(t) && !Fl(t);) { + if (jl(t)) return t; + t = Ul(t) } return null }(e) || n } - let Rc = { + let Jl = { convertOffsetParentRelativeRectToViewportRelativeRect: function(e) { let { rect: t, offsetParent: n, strategy: r - } = e, i = pc(n), a = cc(n); + } = e, i = Dl(n), a = Pl(n); if (n === a) return t; let o = { scrollLeft: 0, scrollTop: 0 }, - s = Bl(1), - l = Bl(0); - if ((i || !i && "fixed" !== r) && (("body" !== sc(n) || fc(a)) && (o = _c(n)), pc(n))) { - let e = Oc(n); - s = Sc(n), l.x = e.x + n.clientLeft, l.y = e.y + n.clientTop + s = cl(1), + l = cl(0); + if ((i || !i && "fixed" !== r) && (("body" !== Cl(n) || Nl(a)) && (o = Vl(n)), Dl(n))) { + let e = Kl(n); + s = ql(n), l.x = e.x + n.clientLeft, l.y = e.y + n.clientTop } return { width: t.width * s.x, @@ -27162,7 +27007,7 @@ y: t.y * s.y - o.scrollTop * s.y + l.y } }, - getDocumentElement: cc, + getDocumentElement: Pl, getClippingRect: function(e) { let { element: t, @@ -27172,25 +27017,25 @@ } = e, a = "clippingAncestors" === n ? function(e, t) { let n = t.get(e); if (n) return n; - let r = xc(e).filter((e => dc(e) && "body" !== sc(e))), + let r = Bl(e).filter((e => Rl(e) && "body" !== Cl(e))), i = null, - a = "fixed" === yc(e).position, - o = a ? bc(e) : e; - for (; dc(o) && !vc(o);) { - let t = yc(o), - n = mc(o); + a = "fixed" === zl(e).position, + o = a ? Ul(e) : e; + for (; Rl(o) && !Fl(o);) { + let t = zl(o), + n = jl(o); n || "fixed" !== t.position || (i = null); - let s = a ? !n && !i : !n && "static" === t.position && !!i && ["absolute", "fixed"].includes(i.position) || fc(o) && !n && function e(t, n) { - let r = bc(t); - return !(r === n || !dc(r) || vc(r)) && ("fixed" === yc(r).position || e(r, n)) + let s = a ? !n && !i : !n && "static" === t.position && !!i && ["absolute", "fixed"].includes(i.position) || Nl(o) && !n && function e(t, n) { + let r = Ul(t); + return !(r === n || !Rl(r) || Fl(r)) && ("fixed" === zl(r).position || e(r, n)) }(e, o); - s ? r = r.filter((e => e !== o)) : i = t, o = bc(o) + s ? r = r.filter((e => e !== o)) : i = t, o = Ul(o) } return t.set(e, r), r }(t, this._c) : [].concat(n), o = [...a, r], s = o[0], l = o.reduce(((e, n) => { - let r = Ac(t, n, i); - return e.top = zl(r.top, e.top), e.right = Fl(r.right, e.right), e.bottom = Fl(r.bottom, e.bottom), e.left = zl(r.left, e.left), e - }), Ac(t, s, i)); + let r = Ql(t, n, i); + return e.top = ol(r.top, e.top), e.right = al(r.right, e.right), e.bottom = al(r.bottom, e.bottom), e.left = ol(r.left, e.left), e + }), Ql(t, s, i)); return { width: l.right - l.left, height: l.bottom - l.top, @@ -27198,29 +27043,29 @@ y: l.top } }, - getOffsetParent: Tc, + getOffsetParent: Xl, getElementRects: async function(e) { let { reference: t, floating: n, strategy: r - } = e, i = this.getOffsetParent || Tc, a = this.getDimensions; + } = e, i = this.getOffsetParent || Xl, a = this.getDimensions; return { reference: function(e, t, n) { - let r = pc(t), - i = cc(t), + let r = Dl(t), + i = Pl(t), a = "fixed" === n, - o = Oc(e, !0, a, t), + o = Kl(e, !0, a, t), s = { scrollLeft: 0, scrollTop: 0 }, - l = Bl(0); + l = cl(0); if (r || !r && !a) - if (("body" !== sc(t) || fc(i)) && (s = _c(t)), r) { - let e = Oc(t, !0, a, t); + if (("body" !== Cl(t) || Nl(i)) && (s = Vl(t)), r) { + let e = Kl(t, !0, a, t); l.x = e.x + t.clientLeft, l.y = e.y + t.clientTop - } else i && (l.x = Cc(i)); + } else i && (l.x = Yl(i)); return { x: o.left + s.scrollLeft - l.x, y: o.top + s.scrollTop - l.y, @@ -27239,16 +27084,16 @@ return Array.from(e.getClientRects()) }, getDimensions: function(e) { - return kc(e) + return Gl(e) }, - getScale: Sc, - isElement: dc, + getScale: ql, + isElement: Rl, isRTL: function(e) { - return "rtl" === yc(e).direction + return "rtl" === zl(e).direction } }; - function Dc(e, t, n, r) { + function ec(e, t, n, r) { let i; void 0 === r && (r = {}); let { @@ -27257,7 +27102,7 @@ elementResize: s = "function" == typeof ResizeObserver, layoutShift: l = "function" == typeof IntersectionObserver, animationFrame: c = !1 - } = r, u = wc(e), d = a || o ? [...u ? xc(u) : [], ...xc(t)] : []; + } = r, u = $l(e), d = a || o ? [...u ? Bl(u) : [], ...Bl(t)] : []; d.forEach((e => { a && e.addEventListener("scroll", n, { passive: !0 @@ -27265,7 +27110,7 @@ })); let p = u && l ? function(e, t) { let n, r = null, - i = cc(e); + i = Pl(e); function a() { clearTimeout(n), r && r.disconnect(), r = null @@ -27280,8 +27125,8 @@ } = e.getBoundingClientRect(); if (s || t(), !d || !p) return; let h = { - rootMargin: -Ul(u) + "px " + -Ul(i.clientWidth - (c + d)) + "px " + -Ul(i.clientHeight - (u + p)) + "px " + -Ul(c) + "px", - threshold: zl(0, Fl(1, l)) || 1 + rootMargin: -ll(u) + "px " + -ll(i.clientWidth - (c + d)) + "px " + -ll(i.clientHeight - (u + p)) + "px " + -ll(c) + "px", + threshold: ol(0, al(1, l)) || 1 }, f = !0; @@ -27314,9 +27159,9 @@ f && f.observe(t) }))), n() })), u && !c && f.observe(u), f.observe(t)); - let m = c ? Oc(e) : null; + let m = c ? Kl(e) : null; return c && function t() { - let r = Oc(e); + let r = Kl(e); m && (r.x !== m.x || r.y !== m.y || r.width !== m.width || r.height !== m.height) && n(), m = r, i = requestAnimationFrame(t) }(), n(), () => { d.forEach((e => { @@ -27324,10 +27169,10 @@ })), p && p(), f && f.disconnect(), f = null, c && cancelAnimationFrame(i) } } - let Lc = (e, t, n) => { + let tc = (e, t, n) => { let r = new Map, i = { - platform: Rc, + platform: Jl, ...n }, a = { @@ -27347,7 +27192,7 @@ }), { x: u, y: d - } = tc(c, r, l), p = r, h = {}, f = 0; + } = kl(c, r, l), p = r, h = {}, f = 0; for (let m = 0; m < s.length; m++) { let { name: n, @@ -27384,7 +27229,7 @@ }) : _.rects), ({ x: u, y: d - } = tc(c, p, l))), m = -1) + } = kl(c, p, l))), m = -1) } return { x: u, @@ -27398,7 +27243,7 @@ platform: a }) }, - Nc = e => ({ + nc = e => ({ name: "arrow", options: e, fn(t) { @@ -27407,20 +27252,20 @@ padding: r } = "function" == typeof e ? e(t) : e; if (n && {}.hasOwnProperty.call(n, "current")) { - if (null != n.current) return rc({ + if (null != n.current) return Sl({ element: n.current, padding: r }).fn(t) - } else if (n) return rc({ + } else if (n) return Sl({ element: n, padding: r }).fn(t); return {} } }); - var Mc = "undefined" != typeof document ? Ee.useLayoutEffect : Ee.useEffect; + var rc = "undefined" != typeof document ? Ee.useLayoutEffect : Ee.useEffect; - function jc(e, t) { + function ic(e, t) { let n, r, i; if (e === t) return !0; if (typeof e != typeof t) return !1; @@ -27429,7 +27274,7 @@ if (Array.isArray(e)) { if ((n = e.length) != t.length) return !1; for (r = n; 0 != r--;) - if (!jc(e[r], t[r])) return !1; + if (!ic(e[r], t[r])) return !1; return !0 } if ((n = (i = Object.keys(e)).length) !== Object.keys(t).length) return !1; @@ -27437,38 +27282,38 @@ if (!{}.hasOwnProperty.call(t, i[r])) return !1; for (r = n; 0 != r--;) { let n = i[r]; - if (("_owner" !== n || !e.$$typeof) && !jc(e[n], t[n])) return !1 + if (("_owner" !== n || !e.$$typeof) && !ic(e[n], t[n])) return !1 } return !0 } return e != e && t != t } - function Fc(e) { + function ac(e) { if ("undefined" == typeof window) return 1; return (e.ownerDocument.defaultView || window).devicePixelRatio || 1 } - function zc(e, t) { - let n = Fc(e); + function oc(e, t) { + let n = ac(e); return Math.round(t * n) / n } - function Vc(e) { + function sc(e) { let t = Ee.useRef(e); - return Mc((() => { + return rc((() => { t.current = e })), t } - var Uc = 'input,select,textarea,a[href],button,[tabindex]:not(slot),audio[controls],video[controls],[contenteditable]:not([contenteditable="false"]),details>summary:first-of-type,details', - Bc = "undefined" == typeof Element, - Gc = Bc ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, - Wc = !Bc && Element.prototype.getRootNode ? function(e) { + var lc = 'input,select,textarea,a[href],button,[tabindex]:not(slot),audio[controls],video[controls],[contenteditable]:not([contenteditable="false"]),details>summary:first-of-type,details', + cc = "undefined" == typeof Element, + uc = cc ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, + dc = !cc && Element.prototype.getRootNode ? function(e) { return e.getRootNode() } : function(e) { return e.ownerDocument }, - $c = function e(t, n, r) { + pc = function e(t, n, r) { for (var i = [], a = Array.from(t); a.length;) { var o = a.shift(); if ("SLOT" === o.tagName) { @@ -27479,7 +27324,7 @@ candidates: l }) } else { - Gc.call(o, Uc) && r.filter(o) && (n || !t.includes(o)) && i.push(o); + uc.call(o, lc) && r.filter(o) && (n || !t.includes(o)) && i.push(o); var c = o.shadowRoot || "function" == typeof r.getShadowRoot && r.getShadowRoot(o), u = !r.shadowRootFilter || r.shadowRootFilter(o); if (c && u) { @@ -27493,52 +27338,52 @@ } return i }, - qc = function(e, t) { + hc = function(e, t) { return e.tabIndex < 0 && (t || /^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || e.isContentEditable) && isNaN(parseInt(e.getAttribute("tabindex"), 10)) ? 0 : e.tabIndex }, - Hc = function(e, t) { + fc = function(e, t) { return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex }, - Kc = function(e) { + mc = function(e) { return "INPUT" === e.tagName }, - Yc = function(e) { + gc = function(e) { var t = e.getBoundingClientRect(), n = t.width, r = t.height; return 0 === n && 0 === r }, - Qc = function(e, t) { + vc = function(e, t) { var n = t.displayCheck, r = t.getShadowRoot; if ("hidden" === getComputedStyle(e).visibility) return !0; - var i = Gc.call(e, "details>summary:first-of-type") ? e.parentElement : e; - if (Gc.call(i, "details:not([open]) *")) return !0; + var i = uc.call(e, "details>summary:first-of-type") ? e.parentElement : e; + if (uc.call(i, "details:not([open]) *")) return !0; if (n && "full" !== n && "legacy-full" !== n) { - if ("non-zero-area" === n) return Yc(e) + if ("non-zero-area" === n) return gc(e) } else { if ("function" == typeof r) { for (var a = e; e;) { var o = e.parentElement, - s = Wc(e); - if (o && !o.shadowRoot && !0 === r(o)) return Yc(e); + s = dc(e); + if (o && !o.shadowRoot && !0 === r(o)) return gc(e); e = e.assignedSlot ? e.assignedSlot : o || s === e.ownerDocument ? o : s.host } e = a } if (function(e) { - for (var t, n, r = Wc(e).host, i = !!(null !== (t = r) && void 0 !== t && t.ownerDocument.contains(r) || e.ownerDocument.contains(e)); !i && r;) i = !(null === (n = r = Wc(r).host) || void 0 === n || !n.ownerDocument.contains(r)); + for (var t, n, r = dc(e).host, i = !!(null !== (t = r) && void 0 !== t && t.ownerDocument.contains(r) || e.ownerDocument.contains(e)); !i && r;) i = !(null === (n = r = dc(r).host) || void 0 === n || !n.ownerDocument.contains(r)); return i }(e)) return !e.getClientRects().length; if ("legacy-full" !== n) return !0 } return !1 }, - Zc = function(e, t) { + yc = function(e, t) { var n, r, i; - return !(Kc(n = t) && "radio" === n.type && ! function(e) { + return !(mc(n = t) && "radio" === n.type && ! function(e) { if (!e.name) return !0; - var t, n = e.form || Wc(e), + var t, n = e.form || dc(e), r = function(e) { return n.querySelectorAll('input[type="radio"][name="' + e + '"]') }; @@ -27553,7 +27398,7 @@ if (e[n].checked && e[n].form === t) return e[n] }(t, e.form); return !i || i === e - }(n) || 0 > qc(t)) && (r = e, !((i = t).disabled || Kc(i) && "hidden" === i.type || Qc(i, r) || "DETAILS" === i.tagName && Array.prototype.slice.apply(i.children).some((function(e) { + }(n) || 0 > hc(t)) && (r = e, !((i = t).disabled || mc(i) && "hidden" === i.type || vc(i, r) || "DETAILS" === i.tagName && Array.prototype.slice.apply(i.children).some((function(e) { return "SUMMARY" === e.tagName })) || function(e) { if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)) @@ -27561,7 +27406,7 @@ if ("FIELDSET" === t.tagName && t.disabled) { for (var n = 0; n < t.children.length; n++) { var r = t.children.item(n); - if ("LEGEND" === r.tagName) return !!Gc.call(t, "fieldset[disabled] *") || !r.contains(e) + if ("LEGEND" === r.tagName) return !!uc.call(t, "fieldset[disabled] *") || !r.contains(e) } return !0 } @@ -27570,17 +27415,17 @@ return !1 }(i))) }, - Xc = function(e) { + _c = function(e) { var t = parseInt(e.getAttribute("tabindex"), 10); return !!isNaN(t) || t >= 0 }, - Jc = function e(t) { + bc = function e(t) { var n = [], r = []; return t.forEach((function(t, i) { var a = !!t.scopeParent, o = a ? t.scopeParent : t, - s = qc(o, a), + s = hc(o, a), l = a ? e(t.candidates) : o; 0 === s ? a ? n.push.apply(n, l) : n.push(o) : r.push({ documentOrder: i, @@ -27589,70 +27434,70 @@ isScope: a, content: l }) - })), r.sort(Hc).reduce((function(e, t) { + })), r.sort(fc).reduce((function(e, t) { return t.isScope ? e.push.apply(e, t.content) : e.push(t.content), e }), []).concat(n) }, - eu = function(e, t) { - return Jc((t = t || {}).getShadowRoot ? $c([e], t.includeContainer, { - filter: Zc.bind(null, t), + xc = function(e, t) { + return bc((t = t || {}).getShadowRoot ? pc([e], t.includeContainer, { + filter: yc.bind(null, t), flatten: !1, getShadowRoot: t.getShadowRoot, - shadowRootFilter: Xc + shadowRootFilter: _c }) : function(e, t, n) { - var r = Array.prototype.slice.apply(e.querySelectorAll(Uc)); - return t && Gc.call(e, Uc) && r.unshift(e), r.filter(n) - }(e, t.includeContainer, Zc.bind(null, t))) + var r = Array.prototype.slice.apply(e.querySelectorAll(lc)); + return t && uc.call(e, lc) && r.unshift(e), r.filter(n) + }(e, t.includeContainer, yc.bind(null, t))) }; - function tu(e) { + function kc(e) { return Ee.useMemo((() => e.every((e => null == e)) ? null : t => { e.forEach((e => { "function" == typeof e ? e(t) : null != e && (e.current = t) })) }), e) } - let nu = Ie["useInsertionEffect".toString()] || (e => e()); + let wc = Oe["useInsertionEffect".toString()] || (e => e()); - function ru(e) { + function Sc(e) { let t = Ee.useRef((() => { 0 })); - return nu((() => { + return wc((() => { t.current = e })), Ee.useCallback((function() { for (var e = arguments.length, n = Array(e), r = 0; r < e; r++) n[r] = arguments[r]; return null == t.current ? void 0 : t.current(...n) }), []) } - let iu = "ArrowUp", - au = "ArrowDown", - ou = "ArrowLeft", - su = "ArrowRight"; + let Ec = "ArrowUp", + Oc = "ArrowDown", + Ic = "ArrowLeft", + Cc = "ArrowRight"; - function lu(e, t, n) { + function Ac(e, t, n) { return Math.floor(e / t) !== n } - function cu(e, t) { + function Pc(e, t) { return t < 0 || t >= e.current.length } - function uu(e, t) { - return pu(e, { + function Tc(e, t) { + return Dc(e, { disabledIndices: t }) } - function du(e, t) { - return pu(e, { + function Rc(e, t) { + return Dc(e, { decrement: !0, startingIndex: e.current.length, disabledIndices: t }) } - function pu(e, t) { + function Dc(e, t) { let { startingIndex: n = -1, decrement: r = !1, @@ -27667,28 +27512,28 @@ } while (l >= 0 && l <= o.length - 1 && s(l)); return l } - let hu = 0; + let Lc = 0; - function fu(e, t) { + function Nc(e, t) { void 0 === t && (t = {}); let { preventScroll: n = !1, cancelPrevious: r = !0, sync: i = !1 } = t; - r && cancelAnimationFrame(hu); + r && cancelAnimationFrame(Lc); let a = () => null == e ? void 0 : e.focus({ preventScroll: n }); - i ? a() : hu = requestAnimationFrame(a) + i ? a() : Lc = requestAnimationFrame(a) } - var mu = "undefined" != typeof document ? Ee.useLayoutEffect : Ee.useEffect; + var jc = "undefined" != typeof document ? Ee.useLayoutEffect : Ee.useEffect; - function gu(e, t) { + function Mc(e, t) { let n = e.compareDocumentPosition(t); return n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0 } - let vu = Ee.createContext({ + let Fc = Ee.createContext({ register: () => {}, unregister: () => {}, map: new Map, @@ -27697,7 +27542,7 @@ } }); - function yu(e) { + function zc(e) { let { children: t, elementsRef: n, @@ -27710,9 +27555,9 @@ return n.delete(e), n })) }), []); - return mu((() => { + return jc((() => { let e = new Map(i); - Array.from(e.keys()).sort(gu).forEach(((t, n) => { + Array.from(e.keys()).sort(Mc).forEach(((t, n) => { e.set(t, n) })), ! function(e, t) { if (e.size !== t.size) return !1; @@ -27720,7 +27565,7 @@ if (r !== t.get(n)) return !1; return !0 }(i, e) && a(e) - }), [i]), Ee.createElement(vu.Provider, { + }), [i]), Ee.createElement(Fc.Provider, { value: Ee.useMemo((() => ({ register: o, unregister: s, @@ -27731,7 +27576,7 @@ }, t) } - function _u(e) { + function Vc(e) { let { label: t } = void 0 === e ? {} : e, [n, r] = Ee.useState(null), i = Ee.useRef(null), { @@ -27740,19 +27585,19 @@ map: s, elementsRef: l, labelsRef: c - } = Ee.useContext(vu), u = Ee.useCallback((e => { + } = Ee.useContext(Fc), u = Ee.useCallback((e => { if (i.current = e, null !== n && (l.current[n] = e, c)) { var r; let i = void 0 !== t; c.current[n] = i ? t : null != (r = null == e ? void 0 : e.textContent) ? r : null } }), [n, l, c, t]); - return mu((() => { + return jc((() => { let e = i.current; if (e) return a(e), () => { o(e) } - }), [a, o]), mu((() => { + }), [a, o]), jc((() => { let e = i.current ? s.get(i.current) : null; null != e && r(e) }), [s]), Ee.useMemo((() => ({ @@ -27761,8 +27606,8 @@ })), [n, u]) } - function bu() { - return (bu = Object.assign ? Object.assign.bind() : function(e) { + function Uc() { + return (Uc = 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]) @@ -27770,18 +27615,18 @@ return e }).apply(this, arguments) } - let xu = !1, - ku = 0, - wu = () => "floating-ui-" + ku++, - Su = Ie["useId".toString()] || function() { - let [e, t] = Ee.useState((() => xu ? wu() : void 0)); - return mu((() => { - null == e && t(wu()) + let Bc = !1, + Gc = 0, + $c = () => "floating-ui-" + Gc++, + qc = Oe["useId".toString()] || function() { + let [e, t] = Ee.useState((() => Bc ? $c() : void 0)); + return jc((() => { + null == e && t($c()) }), []), Ee.useEffect((() => { - xu || (xu = !0) + Bc || (Bc = !0) }), []), e }, - Eu = Ee.forwardRef((function(e, t) { + Wc = Ee.forwardRef((function(e, t) { let { context: { placement: n, @@ -27804,21 +27649,21 @@ ...h } = {}, ...f - } = e, m = Su(); + } = e, m = qc(); if (!r) return null; l *= 2; let g = l / 2, v = a / 2 * (-s / 8 + 1), y = o / 2 * s / 4, [_, b] = n.split("-"), - x = Rc.isRTL(r), + x = Jl.isRTL(r), k = !!d, w = c && "end" === b ? "right" : "left"; c && x && (w = "end" === b ? "left" : "right"); let S = null != (null == i ? void 0 : i.x) ? c || i.x : "", E = null != (null == i ? void 0 : i.y) ? c || i.y : "", - I = d || "M0,0 H" + a + " L" + (a - v) + "," + (o - y) + " Q" + a / 2 + "," + o + " " + v + "," + (o - y) + " Z"; - return Ee.createElement("svg", bu({}, f, { + O = d || "M0,0 H" + a + " L" + (a - v) + "," + (o - y) + " Q" + a / 2 + "," + o + " " + v + "," + (o - y) + " Z"; + return Ee.createElement("svg", Uc({}, f, { "aria-hidden": !0, ref: t, width: k ? a : a + l, @@ -27843,10 +27688,10 @@ fill: "none", stroke: u, strokeWidth: l + (d ? 0 : 1), - d: I + d: O }), Ee.createElement("path", { stroke: l && !d ? f.fill : "none", - d: I + d: O }), Ee.createElement("clipPath", { id: m }, Ee.createElement("rect", { @@ -27857,7 +27702,7 @@ }))) })); - function Iu() { + function Hc() { let e = new Map; return { emit(t, n) { @@ -27873,20 +27718,20 @@ } } } - let Ou = Ee.createContext(null), - Cu = Ee.createContext(null), - Au = () => { + let Kc = Ee.createContext(null), + Yc = Ee.createContext(null), + Qc = () => { var e; - return (null == (e = Ee.useContext(Ou)) ? void 0 : e.id) || null + return (null == (e = Ee.useContext(Kc)) ? void 0 : e.id) || null }, - Pu = () => Ee.useContext(Cu); + Zc = () => Ee.useContext(Yc); - function Tu(e) { - let t = Su(), - n = Pu(), - r = Au(), + function Xc(e) { + let t = qc(), + n = Zc(), + r = Qc(), i = e || r; - return mu((() => { + return jc((() => { let e = { id: t, parentId: i @@ -27897,12 +27742,12 @@ }), [n, t, i]), t } - function Ru(e) { + function Jc(e) { let { children: t, id: n - } = e, r = Au(); - return Ee.createElement(Ou.Provider, { + } = e, r = Qc(); + return Ee.createElement(Kc.Provider, { value: Ee.useMemo((() => ({ id: n, parentId: r @@ -27910,15 +27755,15 @@ }, t) } - function Du(e) { + function eu(e) { let { children: t } = e, n = Ee.useRef([]), r = Ee.useCallback((e => { n.current = [...n.current, e] }), []), i = Ee.useCallback((e => { n.current = n.current.filter((t => t !== e)) - }), []), a = Ee.useState((() => Iu()))[0]; - return Ee.createElement(Cu.Provider, { + }), []), a = Ee.useState((() => Hc()))[0]; + return Ee.createElement(Yc.Provider, { value: Ee.useMemo((() => ({ nodesRef: n, addNode: r, @@ -27928,23 +27773,23 @@ }, t) } - function Lu(e) { + function tu(e) { return "data-floating-ui-" + e } - function Nu(e) { + function nu(e) { let t = (0, Ee.useRef)(e); - return mu((() => { + return jc((() => { t.current = e })), t } - let Mu = Lu("safe-polygon"); + let ru = tu("safe-polygon"); - function ju(e, t, n) { - return n && !Tl(n) ? 0 : "number" == typeof e ? e : null == e ? void 0 : e[t] + function iu(e, t, n) { + return n && !Xs(n) ? 0 : "number" == typeof e ? e : null == e ? void 0 : e[t] } - function Fu(e, t) { + function au(e, t) { let n = e.filter((e => { var n; return e.parentId === t && (null == (n = e.context) ? void 0 : n.open) @@ -27959,28 +27804,28 @@ })), n = n.concat(r); return n } - let zu = new WeakMap, - Vu = new WeakSet, - Uu = {}, - Bu = 0, - Gu = e => e && (e.host || Gu(e.parentNode)); + let ou = new WeakMap, + su = new WeakSet, + lu = {}, + cu = 0, + uu = e => e && (e.host || uu(e.parentNode)); - function Wu(e, t, n) { + function du(e, t, n) { void 0 === t && (t = !1), void 0 === n && (n = !1); - let r = Rl(e[0]).body; + let r = Js(e[0]).body; return function(e, t, n, r) { let i = "data-floating-ui-inert", a = r ? "inert" : n ? "aria-hidden" : null, o = ((e, t) => t.map((t => { if (e.contains(t)) return t; - let n = Gu(t); + let n = uu(t); return e.contains(n) ? n : null })).filter((e => null != e)))(t, e), s = new Set, l = new Set(o), c = []; - Uu[i] || (Uu[i] = new WeakMap); - let u = Uu[i]; + lu[i] || (lu[i] = new WeakMap); + let u = lu[i]; return o.forEach((function e(t) { t && !s.has(t) && (s.add(t), t.parentNode && e(t.parentNode)) })), @@ -27990,46 +27835,46 @@ else { let e = a ? t.getAttribute(a) : null, n = null !== e && "false" !== e, - r = (zu.get(t) || 0) + 1, + r = (ou.get(t) || 0) + 1, o = (u.get(t) || 0) + 1; - zu.set(t, r), u.set(t, o), c.push(t), 1 === r && n && Vu.add(t), 1 === o && t.setAttribute(i, ""), !n && a && t.setAttribute(a, "true") + ou.set(t, r), u.set(t, o), c.push(t), 1 === r && n && su.add(t), 1 === o && t.setAttribute(i, ""), !n && a && t.setAttribute(a, "true") } })) - }(t), s.clear(), Bu++, () => { + }(t), s.clear(), cu++, () => { c.forEach((e => { - let t = (zu.get(e) || 0) - 1, + let t = (ou.get(e) || 0) - 1, n = (u.get(e) || 0) - 1; - zu.set(e, t), u.set(e, n), t || (!Vu.has(e) && a && e.removeAttribute(a), Vu.delete(e)), n || e.removeAttribute(i) - })), --Bu || (zu = new WeakMap, zu = new WeakMap, Vu = new WeakSet, Uu = {}) + ou.set(e, t), u.set(e, n), t || (!su.has(e) && a && e.removeAttribute(a), su.delete(e)), n || e.removeAttribute(i) + })), --cu || (ou = new WeakMap, ou = new WeakMap, su = new WeakSet, lu = {}) } }(e.concat(Array.from(r.querySelectorAll("[aria-live]"))), r, t, n) } - let $u = () => ({ + let pu = () => ({ getShadowRoot: !0, displayCheck: "function" == typeof ResizeObserver && ResizeObserver.toString().includes("[native code]") ? "full" : "none" }); - function qu(e, t) { - let n = eu(e, $u()); + function hu(e, t) { + let n = xc(e, pu()); "prev" === t && n.reverse(); - let r = n.indexOf(wl(Rl(e))); + let r = n.indexOf($s(Js(e))); return n.slice(r + 1)[0] } - function Hu() { - return qu(document.body, "next") + function fu() { + return hu(document.body, "next") } - function Ku() { - return qu(document.body, "prev") + function mu() { + return hu(document.body, "prev") } - function Yu(e, t) { + function gu(e, t) { let n = t || e.currentTarget, r = e.relatedTarget; - return !r || !Sl(n, r) + return !r || !qs(n, r) } - let Qu = { + let vu = { border: 0, clip: "rect(0 0 0 0)", height: "1px", @@ -28043,27 +27888,27 @@ left: 0 }; - function Zu(e) { + function yu(e) { "Tab" === e.key && (e.target, clearTimeout(undefined)) } - let Xu = Ee.forwardRef((function(e, t) { + let _u = Ee.forwardRef((function(e, t) { let [n, r] = Ee.useState(); - mu((() => (Cl() && r("button"), document.addEventListener("keydown", Zu), () => { - document.removeEventListener("keydown", Zu) + jc((() => (Ys() && r("button"), document.addEventListener("keydown", yu), () => { + document.removeEventListener("keydown", yu) })), []); let i = { ref: t, tabIndex: 0, role: n, "aria-hidden": !n || void 0, - [Lu("focus-guard")]: "", - style: Qu + [tu("focus-guard")]: "", + style: vu }; - return Ee.createElement("span", bu({}, e, i)) + return Ee.createElement("span", Uc({}, e, i)) })), - Ju = Ee.createContext(null); + bu = Ee.createContext(null); - function ed(e) { + function xu(e) { let { children: t, id: n, @@ -28073,15 +27918,15 @@ let { id: t, root: n - } = void 0 === e ? {} : e, [r, i] = Ee.useState(null), a = Su(), o = td(), s = Ee.useMemo((() => ({ + } = void 0 === e ? {} : e, [r, i] = Ee.useState(null), a = qc(), o = ku(), s = Ee.useMemo((() => ({ id: t, root: n, portalContext: o, uniqueId: a })), [t, n, o, a]), l = Ee.useRef(); - return mu((() => () => { + return jc((() => () => { null == r || r.remove() - }), [r, s]), mu((() => { + }), [r, s]), jc((() => { if (l.current === s) return; l.current = s; let { @@ -28089,13 +27934,13 @@ root: t, portalContext: n, uniqueId: r - } = s, a = e ? document.getElementById(e) : null, o = Lu("portal"); + } = s, a = e ? document.getElementById(e) : null, o = tu("portal"); if (a) { let e = document.createElement("div"); e.id = r, e.setAttribute(o, ""), a.appendChild(e), i(e) } else { let a = t || (null == n ? void 0 : n.portalNode); - a && !bl(a) && (a = a.current), a = a || document.body; + a && !Us(a) && (a = a.current), a = a || document.body; let s = null; e && ((s = document.createElement("div")).id = e, a.appendChild(s)); let l = document.createElement("div"); @@ -28112,20 +27957,20 @@ }; function e(e) { - if (a && Yu(e)) { + if (a && gu(e)) { ("focusin" === e.type ? function(e) { e.querySelectorAll("[data-tabindex]").forEach((e => { let t = e.dataset.tabindex; delete e.dataset.tabindex, t ? e.setAttribute("tabindex", t) : e.removeAttribute("tabindex") })) } : function(e) { - eu(e, $u()).forEach((e => { + xc(e, pu()).forEach((e => { e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1") })) })(a) } } - }), [a, i, null == o ? void 0 : o.modal]), Ee.createElement(Ju.Provider, { + }), [a, i, null == o ? void 0 : o.modal]), Ee.createElement(bu.Provider, { value: Ee.useMemo((() => ({ preserveTabOrder: i, beforeOutsideRef: l, @@ -28135,46 +27980,46 @@ portalNode: a, setFocusManagerState: s })), [i, a]) - }, p && a && Ee.createElement(Xu, { + }, p && a && Ee.createElement(_u, { "data-type": "outside", ref: l, onFocus: e => { - if (Yu(e, a)) { + if (gu(e, a)) { var t; null == (t = u.current) || t.focus() } else { - let e = Ku() || (null == o ? void 0 : o.refs.domReference.current); + let e = mu() || (null == o ? void 0 : o.refs.domReference.current); null == e || e.focus() } } }), p && a && Ee.createElement("span", { "aria-owns": a.id, - style: Qu - }), a && (0, Do.createPortal)(t, a), p && a && Ee.createElement(Xu, { + style: vu + }), a && (0, Xa.createPortal)(t, a), p && a && Ee.createElement(_u, { "data-type": "outside", ref: c, onFocus: e => { - if (Yu(e, a)) { + if (gu(e, a)) { var t; null == (t = d.current) || t.focus() } else { - let t = Hu() || (null == o ? void 0 : o.refs.domReference.current); + let t = fu() || (null == o ? void 0 : o.refs.domReference.current); null == t || t.focus(), (null == o ? void 0 : o.closeOnFocusOut) && (null == o || o.onOpenChange(!1, e.nativeEvent)) } } })) } - let td = () => Ee.useContext(Ju), - nd = Ee.forwardRef((function(e, t) { - return Ee.createElement("button", bu({}, e, { + let ku = () => Ee.useContext(bu), + wu = Ee.forwardRef((function(e, t) { + return Ee.createElement("button", Uc({}, e, { type: "button", ref: t, tabIndex: -1, - style: Qu + style: vu })) })); - function rd(e) { + function Su(e) { let { context: t, children: n, @@ -28197,15 +28042,15 @@ domReference: v, floating: y } - } = t, _ = "number" == typeof o && o < 0, b = "combobox" === (null == v ? void 0 : v.getAttribute("role")) && Nl(v) && _, x = !b && l, k = !("undefined" != typeof HTMLElement && "inert" in HTMLElement.prototype) || a, w = Nu(i), S = Nu(o), E = Nu(s), I = Pu(), O = td(), C = Ee.useRef(null), A = Ee.useRef(null), P = Ee.useRef(!1), T = Ee.useRef(null), R = Ee.useRef(!1), D = null != O, L = Ee.useCallback((function(e) { - return void 0 === e && (e = y), e ? eu(e, $u()) : [] + } = t, _ = "number" == typeof o && o < 0, b = "combobox" === (null == v ? void 0 : v.getAttribute("role")) && nl(v) && _, x = !b && l, k = !("undefined" != typeof HTMLElement && "inert" in HTMLElement.prototype) || a, w = nu(i), S = nu(o), E = nu(s), O = Zc(), I = ku(), C = Ee.useRef(null), A = Ee.useRef(null), P = Ee.useRef(!1), T = Ee.useRef(null), R = Ee.useRef(!1), D = null != I, L = Ee.useCallback((function(e) { + return void 0 === e && (e = y), e ? xc(e, pu()) : [] }), [y]), N = Ee.useCallback((e => { let t = L(e); return w.current.map((e => v && "reference" === e ? v : y && "floating" === e ? y : t)).filter(Boolean).flat() }), [v, y, w, L]); - function M(e) { - return !r && c && x ? Ee.createElement(nd, { + function j(e) { + return !r && c && x ? Ee.createElement(wu, { ref: "start" === e ? C : A, onClick: e => f(!1, e.nativeEvent) }, "string" == typeof c ? c : "Dismiss") : null @@ -28215,18 +28060,18 @@ function e(e) { if ("Tab" === e.key) { - Sl(y, wl(Rl(y))) && 0 === L().length && !b && Ml(e); + qs(y, $s(Js(y))) && 0 === L().length && !b && rl(e); let t = N(), - n = Ll(e); - "reference" === w.current[0] && n === v && (Ml(e), e.shiftKey ? fu(t[t.length - 1]) : fu(t[1])), "floating" === w.current[1] && n === y && e.shiftKey && (Ml(e), fu(t[0])) + n = tl(e); + "reference" === w.current[0] && n === v && (rl(e), e.shiftKey ? Nc(t[t.length - 1]) : Nc(t[1])), "floating" === w.current[1] && n === y && e.shiftKey && (rl(e), Nc(t[0])) } } - let t = Rl(y); + let t = Js(y); return t.addEventListener("keydown", e), () => { t.removeEventListener("keydown", e) } }), [r, v, y, x, w, p, b, L, N]), Ee.useEffect((() => { - if (!r && u && y && xl(v)) return v.addEventListener("focusout", t), v.addEventListener("pointerdown", e), x || y.addEventListener("focusout", t), () => { + if (!r && u && y && Bs(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) }; @@ -28239,9 +28084,9 @@ function t(e) { let t = e.relatedTarget; queueMicrotask((() => { - let n = !(Sl(v, t) || Sl(y, t) || Sl(t, y) || Sl(null == O ? void 0 : O.portalNode, t) || null != t && t.hasAttribute(Lu("focus-guard")) || I && (Fu(I.nodesRef.current, h).find((e => { + let n = !(qs(v, t) || qs(y, t) || qs(t, y) || qs(null == I ? void 0 : I.portalNode, t) || null != t && t.hasAttribute(tu("focus-guard")) || O && (au(O.nodesRef.current, h).find((e => { var n, r; - return Sl(null == (n = e.context) ? void 0 : n.elements.floating, t) || Sl(null == (r = e.context) ? void 0 : r.elements.domReference, t) + return qs(null == (n = e.context) ? void 0 : n.elements.floating, t) || qs(null == (r = e.context) ? void 0 : r.elements.domReference, t) })) || function(e, t) { var n; let r = [], @@ -28251,41 +28096,41 @@ i = null == t ? void 0 : t.parentId, t && (r = r.concat(t)) } return r - }(I.nodesRef.current, h).find((e => { + }(O.nodesRef.current, h).find((e => { 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 && (P.current = !0, f(!1, e)) })) } - }), [r, v, y, x, h, I, O, f, u]), Ee.useEffect((() => { + }), [r, v, y, x, h, O, I, f, u]), Ee.useEffect((() => { var e; if (r) return; - let t = Array.from((null == O || null == (e = O.portalNode) ? void 0 : e.querySelectorAll("[" + Lu("portal") + "]")) || []); + let t = Array.from((null == I || null == (e = I.portalNode) ? void 0 : e.querySelectorAll("[" + tu("portal") + "]")) || []); if (y) { let e = [y, ...t, C.current, A.current, w.current.includes("reference") || b ? v : null].filter((e => null != e)), - n = l || b ? Wu(e, k, !k) : Wu(e); + n = l || b ? du(e, k, !k) : du(e); return () => { n() } } - }), [r, v, y, l, w, O, b, k]), mu((() => { + }), [r, v, y, l, w, I, b, k]), jc((() => { if (r || !y) return; - let e = wl(Rl(y)); + let e = $s(Js(y)); queueMicrotask((() => { let t = N(y), n = S.current, r = ("number" == typeof n ? t[n] : n.current) || y, - i = Sl(y, e); - _ || i || !d || fu(r, { + i = qs(y, e); + _ || i || !d || Nc(r, { preventScroll: r === y }) })) - }), [r, d, y, _, N, S]), mu((() => { + }), [r, d, y, _, N, S]), jc((() => { if (r || !y) return; let e = !1, - t = Rl(y), - n = wl(t), + t = Js(y), + n = $s(t), i = g.current; function a(t) { @@ -28294,35 +28139,35 @@ event: r, nested: i } = t; - "escape-key" === n && p.domReference.current && (T.current = p.domReference.current), "hover" === n && "mouseleave" === r.type && (P.current = !0), "outside-press" === n && (i ? (P.current = !1, e = !0) : P.current = !(Il(r) || Ol(r))) + "escape-key" === n && p.domReference.current && (T.current = p.domReference.current), "hover" === n && "mouseleave" === r.type && (P.current = !0), "outside-press" === n && (i ? (P.current = !1, e = !0) : P.current = !(Hs(r) || Ks(r))) } return T.current = n, m.on("openchange", a), () => { m.off("openchange", a); - let r = wl(t), - o = Sl(y, r) || I && Fu(I.nodesRef.current, h).some((e => { + let r = $s(t), + o = qs(y, r) || O && au(O.nodesRef.current, h).some((e => { var t; - return Sl(null == (t = e.context) ? void 0 : t.elements.floating, r) + return qs(null == (t = e.context) ? void 0 : t.elements.floating, r) })); - (o || i.openEvent && ["click", "mousedown"].includes(i.openEvent.type)) && p.domReference.current && (T.current = p.domReference.current), E.current && xl(T.current) && !P.current && (n === r || r === t.body || o) && fu(T.current, { + (o || i.openEvent && ["click", "mousedown"].includes(i.openEvent.type)) && p.domReference.current && (T.current = p.domReference.current), E.current && Bs(T.current) && !P.current && (n === r || r === t.body || o) && Nc(T.current, { cancelPrevious: !1, preventScroll: e }) } - }), [r, y, E, g, p, m, I, h]), mu((() => { - if (!r && O) return O.setFocusManagerState({ + }), [r, y, E, g, p, m, O, h]), jc((() => { + if (!r && I) return I.setFocusManagerState({ modal: x, closeOnFocusOut: u, open: d, onOpenChange: f, refs: p }), () => { - O.setFocusManagerState(null) + I.setFocusManagerState(null) } - }), [r, O, x, d, f, p, u]), mu((() => { + }), [r, I, x, d, f, p, u]), jc((() => { if (r || !y || "function" != typeof MutationObserver || _) return; let e = () => { let e = y.getAttribute("tabindex"); - w.current.includes("floating") || wl(Rl(y)) !== p.domReference.current && 0 === L().length ? "0" !== e && y.setAttribute("tabindex", "0") : "-1" !== e && y.setAttribute("tabindex", "-1") + w.current.includes("floating") || $s(Js(y)) !== p.domReference.current && 0 === L().length ? "0" !== e && y.setAttribute("tabindex", "0") : "-1" !== e && y.setAttribute("tabindex", "-1") }; e(); let t = new MutationObserver(e); @@ -28334,49 +28179,49 @@ t.disconnect() } }), [r, y, p, w, L, _]); - let j = !r && k && (D || x); - return Ee.createElement(Ee.Fragment, null, j && Ee.createElement(Xu, { + let M = !r && k && (D || x); + return Ee.createElement(Ee.Fragment, null, M && Ee.createElement(_u, { "data-type": "inside", - ref: null == O ? void 0 : O.beforeInsideRef, + ref: null == I ? void 0 : I.beforeInsideRef, onFocus: e => { if (x) { let e = N(); - fu("reference" === i[0] ? e[0] : e[e.length - 1]) - } else if (null != O && O.preserveTabOrder && O.portalNode) - if (P.current = !1, Yu(e, O.portalNode)) { - let e = Hu() || v; + Nc("reference" === i[0] ? e[0] : e[e.length - 1]) + } else if (null != I && I.preserveTabOrder && I.portalNode) + if (P.current = !1, gu(e, I.portalNode)) { + let e = fu() || v; null == e || e.focus() } else { var t; - null == (t = O.beforeOutsideRef.current) || t.focus() + null == (t = I.beforeOutsideRef.current) || t.focus() } } - }), !b && M("start"), n, M("end"), j && Ee.createElement(Xu, { + }), !b && j("start"), n, j("end"), M && Ee.createElement(_u, { "data-type": "inside", - ref: null == O ? void 0 : O.afterInsideRef, + ref: null == I ? void 0 : I.afterInsideRef, onFocus: e => { - if (x) fu(N()[0]); - else if (null != O && O.preserveTabOrder && O.portalNode) - if (u && (P.current = !0), Yu(e, O.portalNode)) { - let e = Ku() || v; + if (x) Nc(N()[0]); + else if (null != I && I.preserveTabOrder && I.portalNode) + if (u && (P.current = !0), gu(e, I.portalNode)) { + let e = mu() || v; null == e || e.focus() } else { var t; - null == (t = O.afterOutsideRef.current) || t.focus() + null == (t = I.afterOutsideRef.current) || t.focus() } } })) } - let id = new Set, - ad = Ee.forwardRef((function(e, t) { + let Eu = new Set, + Ou = Ee.forwardRef((function(e, t) { let { lockScroll: n = !1, ...r - } = e, i = Su(); - return mu((() => { + } = e, i = qc(); + return jc((() => { if (!n) return; - id.add(i); - let e = /iP(hone|ad|od)|iOS/.test(El()), + Eu.add(i); + let e = /iP(hone|ad|od)|iOS/.test(Ws()), t = document.body.style, r = Math.round(document.documentElement.getBoundingClientRect().left) + document.documentElement.scrollLeft ? "paddingLeft" : "paddingRight", a = window.innerWidth - document.documentElement.clientWidth, @@ -28394,7 +28239,7 @@ }) } return () => { - id.delete(i), 0 === id.size && (Object.assign(t, { + Eu.delete(i), 0 === Eu.size && (Object.assign(t, { overflow: "", [r]: "" }), e && (Object.assign(t, { @@ -28404,7 +28249,7 @@ right: "" }), window.scrollTo(o, s))) } - }), [i, n]), Ee.createElement("div", bu({ + }), [i, n]), Ee.createElement("div", Uc({ ref: t }, r, { style: { @@ -28419,11 +28264,11 @@ })) })); - function od(e) { - return xl(e.target) && "BUTTON" === e.target.tagName + function Iu(e) { + return Bs(e.target) && "BUTTON" === e.target.tagName } - function sd(e, t) { + function Cu(e, t) { void 0 === t && (t = {}); let { open: n, @@ -28445,31 +28290,31 @@ d.current = e.pointerType }, onMouseDown(e) { - 0 !== e.button || Tl(d.current, !0) && c || "click" === s || (!n || !l || i.current.openEvent && "mousedown" !== i.current.openEvent.type ? (e.preventDefault(), r(!0, e.nativeEvent, "click")) : r(!1, e.nativeEvent, "click")) + 0 !== e.button || Xs(d.current, !0) && c || "click" === s || (!n || !l || i.current.openEvent && "mousedown" !== i.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 : Tl(d.current, !0) && c || (!n || !l || i.current.openEvent && "click" !== i.current.openEvent.type ? r(!0, e.nativeEvent, "click") : r(!1, e.nativeEvent, "click")) + "mousedown" === s && d.current ? d.current = void 0 : Xs(d.current, !0) && c || (!n || !l || i.current.openEvent && "click" !== i.current.openEvent.type ? r(!0, e.nativeEvent, "click") : r(!1, e.nativeEvent, "click")) }, onKeyDown(e) { - d.current = void 0, e.defaultPrevented || !u || od(e) || (" " !== e.key || Nl(a) || (e.preventDefault(), p.current = !0), "Enter" === e.key && r(!n || !l, e.nativeEvent, "click")) + d.current = void 0, e.defaultPrevented || !u || Iu(e) || (" " !== e.key || nl(a) || (e.preventDefault(), p.current = !0), "Enter" === e.key && r(!n || !l, e.nativeEvent, "click")) }, onKeyUp(e) { - !e.defaultPrevented && u && !od(e) && !Nl(a) && " " === e.key && p.current && (p.current = !1, r(!n || !l, e.nativeEvent, "click")) + !e.defaultPrevented && u && !Iu(e) && !nl(a) && " " === e.key && p.current && (p.current = !1, r(!n || !l, e.nativeEvent, "click")) } } } : {}), [o, i, s, c, u, a, l, n, r]) } - let ld = { + let Au = { pointerdown: "onPointerDown", mousedown: "onMouseDown", click: "onClick" }, - cd = { + Pu = { pointerdown: "onPointerDownCapture", mousedown: "onMouseDownCapture", click: "onClickCapture" }, - ud = e => { + Tu = e => { var t, n; return { escapeKey: "boolean" == typeof e ? e : null != (t = null == e ? void 0 : e.escapeKey) && t, @@ -28477,7 +28322,7 @@ } }; - function dd(e, t) { + function Ru(e, t) { void 0 === t && (t = {}); let { open: n, @@ -28499,15 +28344,15 @@ ancestorScroll: m = !1, bubbles: g, capture: v - } = t, y = Pu(), _ = ru("function" == typeof d ? d : () => !1), b = "function" == typeof d ? _ : d, x = Ee.useRef(!1), k = Ee.useRef(!1), { + } = t, y = Zc(), _ = Sc("function" == typeof d ? d : () => !1), b = "function" == typeof d ? _ : d, x = Ee.useRef(!1), k = Ee.useRef(!1), { escapeKey: w, outsidePress: S - } = ud(g), { + } = Tu(g), { escapeKey: E, - outsidePress: I - } = ud(v), O = ru((e => { + outsidePress: O + } = Tu(v), I = Sc((e => { if (!n || !c || !u || "Escape" !== e.key) return; - let t = y ? Fu(y.nodesRef.current, i) : []; + let t = y ? au(y.nodesRef.current, i) : []; if (!w && (e.stopPropagation(), t.length > 0)) { let e = !0; if (t.forEach((t => { @@ -28516,48 +28361,48 @@ })), !e) return } r(!1, "nativeEvent" in e ? e.nativeEvent : e, "escape-key") - })), C = ru((e => { + })), C = Sc((e => { var t; let n = () => { var t; - O(e), null == (t = Ll(e)) || t.removeEventListener("keydown", n) + I(e), null == (t = tl(e)) || t.removeEventListener("keydown", n) }; - null == (t = Ll(e)) || t.addEventListener("keydown", n) - })), A = ru((e => { + null == (t = tl(e)) || t.addEventListener("keydown", n) + })), A = Sc((e => { let t = x.current; x.current = !1; let n = k.current; if (k.current = !1, "click" === p && n || t || "function" == typeof b && !b(e)) return; - let a = Ll(e), - l = "[" + Lu("inert") + "]", - c = Rl(s).querySelectorAll(l), - u = bl(a) ? a : null; - for (; u && !["html", "body", "#document"].includes(vl(u));) { + let a = tl(e), + l = "[" + tu("inert") + "]", + c = Js(s).querySelectorAll(l), + u = Us(a) ? a : null; + for (; u && !["html", "body", "#document"].includes(Fs(u));) { let e = function(e) { var t; - if ("html" === vl(e)) return e; - let n = e.assignedSlot || e.parentNode || kl(e) && e.host || (null == (t = (_l(e) ? e.ownerDocument : e.document) || window.document) ? void 0 : t.documentElement); - return kl(n) ? n.host : n + if ("html" === Fs(e)) return e; + let n = e.assignedSlot || e.parentNode || Gs(e) && e.host || (null == (t = (Vs(e) ? e.ownerDocument : e.document) || window.document) ? void 0 : t.documentElement); + return Gs(n) ? n.host : n }(u); - if (e === Rl(s).body || !bl(e)) break; + if (e === Js(s).body || !Us(e)) break; u = e } - if (c.length && bl(a) && !a.matches("html,body") && !Sl(a, s) && Array.from(c).every((e => !Sl(u, e)))) return; - if (xl(a) && s) { + if (c.length && Us(a) && !a.matches("html,body") && !qs(a, s) && Array.from(c).every((e => !qs(u, e)))) return; + if (Bs(a) && s) { let t = a.clientWidth > 0 && a.scrollWidth > a.clientWidth, n = a.clientHeight > 0 && a.scrollHeight > a.clientHeight, r = n && e.offsetX > a.clientWidth; if (n) { - "rtl" === yl(a).getComputedStyle(a).direction && (r = e.offsetX <= a.offsetWidth - a.clientWidth) + "rtl" === zs(a).getComputedStyle(a).direction && (r = e.offsetX <= a.offsetWidth - a.clientWidth) } if (r || t && e.offsetY > a.clientHeight) return } - let d = y && Fu(y.nodesRef.current, i).some((t => { + let d = y && au(y.nodesRef.current, i).some((t => { var n; - return Dl(e, null == (n = t.context) ? void 0 : n.elements.floating) + return el(e, null == (n = t.context) ? void 0 : n.elements.floating) })); - if (Dl(e, s) || Dl(e, o) || d) return; - let h = y ? Fu(y.nodesRef.current, i) : []; + if (el(e, s) || el(e, o) || d) return; + let h = y ? au(y.nodesRef.current, i) : []; if (h.length > 0) { let e = !0; if (h.forEach((t => { @@ -28566,13 +28411,13 @@ })), !e) return } r(!1, e, "outside-press") - })), P = ru((e => { + })), P = Sc((e => { var t; let n = () => { var t; - A(e), null == (t = Ll(e)) || t.removeEventListener(p, n) + A(e), null == (t = tl(e)) || t.removeEventListener(p, n) }; - null == (t = Ll(e)) || t.addEventListener(p, n) + null == (t = tl(e)) || t.addEventListener(p, n) })); return Ee.useEffect((() => { if (!n || !c) return; @@ -28581,10 +28426,10 @@ r(!1, e, "ancestor-scroll") } l.current.__escapeKeyBubbles = w, l.current.__outsidePressBubbles = S; - let t = Rl(s); - u && t.addEventListener("keydown", E ? C : O, E), b && t.addEventListener(p, I ? P : A, I); + let t = Js(s); + u && t.addEventListener("keydown", E ? C : I, E), b && t.addEventListener(p, O ? P : A, O); let i = []; - return m && (bl(o) && (i = xc(o)), bl(s) && (i = i.concat(xc(s))), !bl(a) && a && a.contextElement && (i = i.concat(xc(a.contextElement)))), (i = i.filter((e => { + return m && (Us(o) && (i = Bl(o)), Us(s) && (i = i.concat(Bl(s))), !Us(a) && a && a.contextElement && (i = i.concat(Bl(a.contextElement)))), (i = i.filter((e => { var n; return e !== (null == (n = t.defaultView) ? void 0 : n.visualViewport) }))).forEach((t => { @@ -28592,35 +28437,35 @@ passive: !0 }) })), () => { - u && t.removeEventListener("keydown", E ? C : O, E), b && t.removeEventListener(p, I ? P : A, I), i.forEach((t => { + u && t.removeEventListener("keydown", E ? C : I, E), b && t.removeEventListener(p, O ? P : A, O), i.forEach((t => { t.removeEventListener("scroll", e) })) } - }), [l, s, o, a, u, b, p, n, r, m, c, w, S, O, E, C, A, I, P]), Ee.useEffect((() => { + }), [l, s, o, a, u, b, p, n, r, m, c, w, S, I, E, C, A, O, P]), Ee.useEffect((() => { x.current = !1 }), [b, p]), Ee.useMemo((() => c ? { reference: { - onKeyDown: O, - [ld[f]]: e => { + onKeyDown: I, + [Au[f]]: e => { h && r(!1, e.nativeEvent, "reference-press") } }, floating: { - onKeyDown: O, + onKeyDown: I, onMouseDown() { k.current = !0 }, onMouseUp() { k.current = !0 }, - [cd[p]]: () => { + [Pu[p]]: () => { x.current = !0 } } - } : {}), [c, h, p, f, r, O]) + } : {}), [c, h, p, f, r, I]) } - function pd(e) { + function Du(e) { var t; void 0 === e && (e = {}); let { @@ -28650,43 +28495,43 @@ middlewareData: {}, isPositioned: !1 }), [p, h] = Ee.useState(r); - jc(p, r) || h(r); + ic(p, r) || h(r); let [f, m] = Ee.useState(null), [g, v] = Ee.useState(null), y = Ee.useCallback((e => { e != k.current && (k.current = e, m(e)) }), [m]), _ = Ee.useCallback((e => { e !== w.current && (w.current = e, v(e)) - }), [v]), b = a || f, x = o || g, k = Ee.useRef(null), w = Ee.useRef(null), S = Ee.useRef(u), E = Vc(l), I = Vc(i), O = Ee.useCallback((() => { + }), [v]), b = a || f, x = o || g, k = Ee.useRef(null), w = Ee.useRef(null), S = Ee.useRef(u), E = sc(l), O = sc(i), I = Ee.useCallback((() => { if (!k.current || !w.current) return; let e = { placement: t, strategy: n, middleware: p }; - I.current && (e.platform = I.current), Lc(k.current, w.current, e).then((e => { + O.current && (e.platform = O.current), tc(k.current, w.current, e).then((e => { let t = { ...e, isPositioned: !0 }; - C.current && !jc(S.current, t) && (S.current = t, Do.flushSync((() => { + C.current && !ic(S.current, t) && (S.current = t, Xa.flushSync((() => { d(t) }))) })) - }), [p, t, n, I]); - Mc((() => { + }), [p, t, n, O]); + rc((() => { !1 === c && S.current.isPositioned && (S.current.isPositioned = !1, d((e => ({ ...e, isPositioned: !1 })))) }), [c]); let C = Ee.useRef(!1); - Mc((() => (C.current = !0, () => { + rc((() => (C.current = !0, () => { C.current = !1 - })), []), Mc((() => { + })), []), rc((() => { if (b && (k.current = b), x && (w.current = x), b && x) { - if (E.current) return E.current(b, x, O); - O() + if (E.current) return E.current(b, x, I); + I() } - }), [b, x, O, E]); + }), [b, x, I, E]); let A = Ee.useMemo((() => ({ reference: k, floating: w, @@ -28704,12 +28549,12 @@ top: 0 }; if (!P.floating) return e; - let t = zc(P.floating, u.x), - r = zc(P.floating, u.y); + let t = oc(P.floating, u.x), + r = oc(P.floating, u.y); return s ? { ...e, transform: "translate(" + t + "px, " + r + "px)", - ...Fc(P.floating) >= 1.5 && { + ...ac(P.floating) >= 1.5 && { willChange: "transform" } } : { @@ -28720,26 +28565,26 @@ }), [n, s, P.floating, u.x, u.y]); return Ee.useMemo((() => ({ ...u, - update: O, + update: I, refs: A, elements: P, floatingStyles: T - })), [u, O, A, P, T]) - }(e), c = Pu(), u = null != Au(), d = ru(((e, t, n) => { + })), [u, I, A, P, T]) + }(e), c = Zc(), u = null != Qc(), d = Sc(((e, t, n) => { e && (h.current.openEvent = t), f.emit("openchange", { open: e, event: t, reason: n, nested: u }), null == r || r(e, t, n) - })), p = Ee.useRef(null), h = Ee.useRef({}), f = Ee.useState((() => Iu()))[0], m = Su(), g = Ee.useCallback((e => { - let t = bl(e) ? { + })), p = Ee.useRef(null), h = Ee.useRef({}), f = Ee.useState((() => Hc()))[0], m = qc(), g = Ee.useCallback((e => { + let t = Us(e) ? { getBoundingClientRect: () => e.getBoundingClientRect(), contextElement: e } : e; l.refs.setReference(t) }), [l.refs]), v = Ee.useCallback((e => { - (bl(e) || null === e) && (p.current = e, o(e)), (bl(l.refs.reference.current) || null === l.refs.reference.current || null !== e && !bl(e)) && l.refs.setReference(e) + (Us(e) || null === e) && (p.current = e, o(e)), (Us(l.refs.reference.current) || null === l.refs.reference.current || null !== e && !Us(e)) && l.refs.setReference(e) }), [l.refs]), y = Ee.useMemo((() => ({ ...l.refs, setReference: v, @@ -28759,7 +28604,7 @@ open: n, onOpenChange: d })), [l, i, m, f, n, d, y, _]); - return mu((() => { + return jc((() => { let e = null == c ? void 0 : c.nodesRef.current.find((e => e.id === i)); e && (e.context = b) })), Ee.useMemo((() => ({ @@ -28770,7 +28615,7 @@ })), [l, y, _, b]) } - function hd(e, t, n) { + function Lu(e, t, n) { let r = new Map; return { ..."floating" === n && { @@ -28788,21 +28633,21 @@ } } - function fd(e) { + function Nu(e) { void 0 === e && (e = []); let t = e, - n = Ee.useCallback((t => hd(t, e, "reference")), t), - r = Ee.useCallback((t => hd(t, e, "floating")), t), - i = Ee.useCallback((t => hd(t, e, "item")), e.map((e => null == e ? void 0 : e.item))); + n = Ee.useCallback((t => Lu(t, e, "reference")), t), + r = Ee.useCallback((t => Lu(t, e, "floating")), t), + i = Ee.useCallback((t => Lu(t, e, "item")), e.map((e => null == e ? void 0 : e.item))); return Ee.useMemo((() => ({ getReferenceProps: n, getFloatingProps: r, getItemProps: i })), [n, r, i]) } - let md = !1; + let ju = !1; - function gd(e, t, n) { + function Mu(e, t, n) { switch (e) { case "vertical": return t; @@ -28813,19 +28658,19 @@ } } - function vd(e, t) { - return gd(t, e === iu || e === au, e === ou || e === su) + function Fu(e, t) { + return Mu(t, e === Ec || e === Oc, e === Ic || e === Cc) } - function yd(e, t, n) { - return gd(t, e === au, n ? e === ou : e === su) || "Enter" === e || " " == e || "" === e + function zu(e, t, n) { + return Mu(t, e === Oc, n ? e === Ic : e === Cc) || "Enter" === e || " " == e || "" === e } - function _d(e, t, n) { - return gd(t, n ? e === su : e === ou, e === iu) + function Vu(e, t, n) { + return Mu(t, n ? e === Cc : e === Ic, e === Ec) } - function bd(e, t) { + function Uu(e, t) { let { open: n, onOpenChange: r, @@ -28853,12 +28698,12 @@ cols: k = 1, scrollItemIntoView: w = !0, virtualItemRef: S - } = t, E = Au(), I = Pu(), O = ru(c), C = Ee.useRef(v), A = Ee.useRef(null != d ? d : -1), P = Ee.useRef(null), T = Ee.useRef(!0), R = Ee.useRef(O), D = Ee.useRef(!!o), L = Ee.useRef(!1), N = Ee.useRef(!1), M = Nu(b), j = Nu(n), F = Nu(w), [z, V] = Ee.useState(), [U, B] = Ee.useState(), G = ru((function(e, t, n) { + } = t, E = Qc(), O = Zc(), I = Sc(c), C = Ee.useRef(v), A = Ee.useRef(null != d ? d : -1), P = Ee.useRef(null), T = Ee.useRef(!0), R = Ee.useRef(I), D = Ee.useRef(!!o), L = Ee.useRef(!1), N = Ee.useRef(!1), j = nu(b), M = nu(n), F = nu(w), [z, V] = Ee.useState(), [U, B] = Ee.useState(), G = Sc((function(e, t, n) { void 0 === n && (n = !1); let r = e.current[t.current]; - r && (g ? (V(r.id), null == I || I.events.emit("virtualfocus", r), S && (S.current = r)) : fu(r, { + r && (g ? (V(r.id), null == O || O.events.emit("virtualfocus", r), S && (S.current = r)) : Nc(r, { preventScroll: !0, - sync: !(!Pl() || !Cl()) && (md || L.current) + sync: !(!Zs() || !Ys()) && (ju || L.current) }), requestAnimationFrame((() => { let e = F.current; e && r && (n || !T.current) && (null == r.scrollIntoView || r.scrollIntoView("boolean" == typeof e ? { @@ -28867,15 +28712,15 @@ } : e)) }))) })); - mu((() => { + jc((() => { document.createElement("div").focus({ get preventScroll() { - return md = !0, !1 + return ju = !0, !1 } }) - }), []), mu((() => { - u && (n && o ? C.current && null != d && (N.current = !0, O(d)) : D.current && (A.current = -1, R.current(null))) - }), [u, n, o, d, O]), mu((() => { + }), []), jc((() => { + u && (n && o ? C.current && null != d && (N.current = !0, I(d)) : D.current && (A.current = -1, R.current(null))) + }), [u, n, o, d, I]), jc((() => { if (u && n && o) if (null == l) { if (L.current = !1, null == d && (D.current && (A.current = -1, G(s, A)), !D.current && C.current && (null != P.current || !0 === C.current && null == P.current))) { @@ -28886,39 +28731,39 @@ (e ? requestAnimationFrame : queueMicrotask)(t) } e++ - } else A.current = null == P.current || yd(P.current, x, m) || f ? uu(s, M.current) : du(s, M.current), P.current = null, O(A.current) + } else A.current = null == P.current || zu(P.current, x, m) || f ? Tc(s, j.current) : Rc(s, j.current), P.current = null, I(A.current) }; t() } - } else cu(s, l) || (A.current = l, G(s, A, N.current), N.current = !1) - }), [u, n, o, l, d, f, s, x, m, O, G, M]), mu((() => { + } else Pc(s, l) || (A.current = l, G(s, A, N.current), N.current = !1) + }), [u, n, o, l, d, f, s, x, m, I, G, j]), jc((() => { var e, t; - if (!u || o || !I || g || !D.current) return; - let n = I.nodesRef.current, + if (!u || o || !O || g || !D.current) return; + let n = O.nodesRef.current, r = null == (e = n.find((e => e.id === E))) || null == (t = e.context) ? void 0 : t.elements.floating, - i = wl(Rl(o)), - a = n.some((e => e.context && Sl(e.context.elements.floating, i))); + i = $s(Js(o)), + a = n.some((e => e.context && qs(e.context.elements.floating, i))); r && !a && T.current && r.focus({ preventScroll: !0 }) - }), [u, o, I, E, g]), mu((() => { - if (u && I && g && !E) return I.events.on("virtualfocus", e), () => { - I.events.off("virtualfocus", e) + }), [u, o, O, E, g]), jc((() => { + if (u && O && g && !E) return O.events.on("virtualfocus", e), () => { + O.events.off("virtualfocus", e) }; function e(e) { B(e.id), S && (S.current = e) } - }), [u, I, g, E, S]), mu((() => { - R.current = O, D.current = !!o - })), mu((() => { + }), [u, O, g, E, S]), jc((() => { + R.current = I, D.current = !!o + })), jc((() => { n || (P.current = null) }), [n]); - let W = null != l, - $ = Ee.useMemo((() => { + let $ = null != l, + q = Ee.useMemo((() => { function e(e) { if (!n) return; - let t = s.current.indexOf(e); - 1 !== t && O(t) + let t = s.current.indexOf(e); - 1 !== t && I(t) } let t = { onFocus(t) { @@ -28946,25 +28791,25 @@ let { pointerType: t } = e; - T.current && "touch" !== t && (A.current = -1, G(s, A), O(null), g || fu(i.floating.current, { + T.current && "touch" !== t && (A.current = -1, G(s, A), I(null), g || Nc(i.floating.current, { preventScroll: !0 })) } } }; return t - }), [n, i, G, y, s, O, g]); + }), [n, i, G, y, s, I, g]); return Ee.useMemo((() => { if (!u) return {}; - let e = M.current; + let e = j.current; function t(t) { - if (T.current = !1, L.current = !0, !j.current && t.currentTarget === i.floating.current) return; - if (f && _d(t.key, x, m)) return Ml(t), r(!1, t.nativeEvent, "list-navigation"), void(xl(a) && !g && a.focus()); + if (T.current = !1, L.current = !0, !M.current && t.currentTarget === i.floating.current) return; + if (f && Vu(t.key, x, m)) return rl(t), r(!1, t.nativeEvent, "list-navigation"), void(Bs(a) && !g && a.focus()); let o = A.current, - l = uu(s, e), - c = du(s, e); - if ("Home" === t.key && (Ml(t), A.current = l, O(A.current)), "End" === t.key && (Ml(t), A.current = c, O(A.current)), (!(k > 1) || (A.current = function(e, t) { + l = Tc(s, e), + c = Rc(s, e); + if ("Home" === t.key && (rl(t), A.current = l, I(A.current)), "End" === t.key && (rl(t), A.current = c, I(A.current)), (!(k > 1) || (A.current = function(e, t) { let { event: n, orientation: r, @@ -28976,9 +28821,9 @@ prevIndex: c, stopEvent: u = !1 } = t, d = c; - if (n.key === iu) { - if (u && Ml(n), -1 === c) d = l; - else if (d = pu(e, { + if (n.key === Ec) { + if (u && rl(n), -1 === c) d = l; + else if (d = Dc(e, { startingIndex: d, amount: a, decrement: !0, @@ -28989,42 +28834,42 @@ n = l - (t - e); d = t === e ? l : t > e ? n : n - a } - cu(e, d) && (d = c) + Pc(e, d) && (d = c) } - if (n.key === au && (u && Ml(n), -1 === c ? d = s : (d = pu(e, { + if (n.key === Oc && (u && rl(n), -1 === c ? d = s : (d = Dc(e, { startingIndex: c, amount: a, disabledIndices: o - }), i && c + a > l && (d = pu(e, { + }), i && c + a > l && (d = Dc(e, { startingIndex: c % a - a, amount: a, disabledIndices: o - }))), cu(e, d) && (d = c)), "both" === r) { - let t = jl(c / a); - n.key === su && (u && Ml(n), c % a != a - 1 ? (d = pu(e, { + }))), Pc(e, d) && (d = c)), "both" === r) { + let t = il(c / a); + n.key === Cc && (u && rl(n), c % a != a - 1 ? (d = Dc(e, { startingIndex: c, disabledIndices: o - }), i && lu(d, a, t) && (d = pu(e, { + }), i && Ac(d, a, t) && (d = Dc(e, { startingIndex: c - c % a - 1, disabledIndices: o - }))) : i && (d = pu(e, { + }))) : i && (d = Dc(e, { startingIndex: c - c % a - 1, disabledIndices: o - })), lu(d, a, t) && (d = c)), n.key === ou && (u && Ml(n), c % a != 0 ? (d = pu(e, { + })), Ac(d, a, t) && (d = c)), n.key === Ic && (u && rl(n), c % a != 0 ? (d = Dc(e, { startingIndex: c, disabledIndices: o, decrement: !0 - }), i && lu(d, a, t) && (d = pu(e, { + }), i && Ac(d, a, t) && (d = Dc(e, { startingIndex: c + (a - c % a), decrement: !0, disabledIndices: o - }))) : i && (d = pu(e, { + }))) : i && (d = Dc(e, { startingIndex: c + (a - c % a), decrement: !0, disabledIndices: o - })), lu(d, a, t) && (d = c)); - let r = jl(l / a) === t; - cu(e, d) && (d = i && r ? n.key === ou ? l : pu(e, { + })), Ac(d, a, t) && (d = c)); + let r = il(l / a) === t; + Pc(e, d) && (d = i && r ? n.key === Ic ? l : Dc(e, { startingIndex: c - c % a - 1, disabledIndices: o }) : c) @@ -29040,30 +28885,30 @@ maxIndex: c, prevIndex: A.current, stopEvent: !0 - }), O(A.current), "both" !== x)) && vd(t.key, x)) { - if (Ml(t), n && !g && wl(t.currentTarget.ownerDocument) === t.currentTarget) return A.current = yd(t.key, x, m) ? l : c, void O(A.current); - yd(t.key, x, m) ? A.current = h ? o >= c ? p && o !== s.current.length ? -1 : l : pu(s, { + }), I(A.current), "both" !== x)) && Fu(t.key, x)) { + if (rl(t), n && !g && $s(t.currentTarget.ownerDocument) === t.currentTarget) return A.current = zu(t.key, x, m) ? l : c, void I(A.current); + zu(t.key, x, m) ? A.current = h ? o >= c ? p && o !== s.current.length ? -1 : l : Dc(s, { startingIndex: o, disabledIndices: e - }) : Math.min(c, pu(s, { + }) : Math.min(c, Dc(s, { startingIndex: o, disabledIndices: e - })) : A.current = h ? o <= l ? p && -1 !== o ? s.current.length : c : pu(s, { + })) : A.current = h ? o <= l ? p && -1 !== o ? s.current.length : c : Dc(s, { startingIndex: o, decrement: !0, disabledIndices: e - }) : Math.max(l, pu(s, { + }) : Math.max(l, Dc(s, { startingIndex: o, decrement: !0, disabledIndices: e - })), cu(s, A.current) ? O(null) : O(A.current) + })), Pc(s, A.current) ? I(null) : I(A.current) } } function o(e) { - "auto" === v && Il(e.nativeEvent) && (C.current = !0) + "auto" === v && Hs(e.nativeEvent) && (C.current = !0) } - let l = g && n && W && { + let l = g && n && $ && { "aria-activedescendant": U || z }, c = s.current.find((e => (null == e ? void 0 : e.id) === z)); @@ -29074,14 +28919,14 @@ var a, o, l, u, p, h; T.current = !1; let v = 0 === i.key.indexOf("Arrow"), - y = (a = i.key, gd(x, m ? a === ou : a === su, a === au)), - b = _d(i.key, x, m), - k = vd(i.key, x), + y = (a = i.key, Mu(x, m ? a === Ic : a === Cc, a === Oc)), + b = Vu(i.key, x, m), + k = Fu(i.key, x), w = (f ? y : k) || "Enter" === i.key || "" === i.key.trim(); if (g && n) { - let e, n, r = null == I ? void 0 : I.nodesRef.current.find((e => null == e.parentId)), - a = I && r ? (o = I.nodesRef.current, l = r.id, n = -1, function t(r, i) { - i > n && (e = r, n = i), Fu(o, r).forEach((e => { + let e, n, r = null == O ? void 0 : O.nodesRef.current.find((e => null == e.parentId)), + a = O && r ? (o = O.nodesRef.current, l = r.id, n = -1, function t(r, i) { + i > n && (e = r, n = i), au(o, r).forEach((e => { t(e.id, i + 1) })) }(l, 0), o.find((t => t.id === e))) : null; @@ -29093,22 +28938,22 @@ if (y || b) { let t = (null == (u = a.context) ? void 0 : u.elements.domReference) === i.currentTarget, n = b && !t ? null == (p = a.context) ? void 0 : p.elements.domReference : y ? c : null; - n && (Ml(i), n.dispatchEvent(e), B(void 0)) + n && (rl(i), n.dispatchEvent(e), B(void 0)) } - if (k && a.context && a.context.open && a.parentId && i.currentTarget !== a.context.elements.domReference) return Ml(i), void(null == (h = a.context.elements.domReference) || h.dispatchEvent(e)) + if (k && a.context && a.context.open && a.parentId && i.currentTarget !== a.context.elements.domReference) return rl(i), void(null == (h = a.context.elements.domReference) || h.dispatchEvent(e)) } return t(i) } if (n || _ || !v) { - if (w && (P.current = f && k ? null : i.key), f) return void(y && (Ml(i), n ? (A.current = uu(s, e), O(A.current)) : r(!0, i.nativeEvent, "list-navigation"))); - k && (null != d && (A.current = d), Ml(i), !n && _ ? r(!0, i.nativeEvent, "list-navigation") : t(i), n && O(A.current)) + if (w && (P.current = f && k ? null : i.key), f) return void(y && (rl(i), n ? (A.current = Tc(s, e), I(A.current)) : r(!0, i.nativeEvent, "list-navigation"))); + k && (null != d && (A.current = d), rl(i), !n && _ ? r(!0, i.nativeEvent, "list-navigation") : t(i), n && I(A.current)) } }, onFocus() { - n && O(null) + n && I(null) }, onPointerDown: function(e) { - C.current = v, "auto" === v && Ol(e.nativeEvent) && (C.current = !0) + C.current = v, "auto" === v && Ks(e.nativeEvent) && (C.current = !0) }, onMouseDown: o, onClick: o @@ -29121,12 +28966,12 @@ T.current = !0 } }, - item: $ + item: q } - }), [a, i, z, U, M, j, s, u, x, m, g, n, W, f, d, _, p, k, h, v, O, r, $, I, S]) + }), [a, i, z, U, j, M, s, u, x, m, g, n, $, f, d, _, p, k, h, v, I, r, q, O, S]) } - function xd(e, t) { + function Bu(e, t) { void 0 === t && (t = {}); let { open: n, @@ -29134,7 +28979,7 @@ } = e, { enabled: i = !0, role: a = "dialog" - } = t, o = Su(); + } = t, o = qc(); return Ee.useMemo((() => { if (!i) return {}; let e = { @@ -29170,7 +29015,7 @@ }), [i, a, n, r, o]) } - function kd(e, t) { + function Gu(e, t) { void 0 === t && (t = {}); let { open: n, @@ -29188,9 +29033,9 @@ } }), [e, t]), n }(n, a); - return mu((() => { + return jc((() => { o && !u && c("unmounted") - }), [o, u]), mu((() => { + }), [o, u]), jc((() => { if (r) { if (n) { c("initial"); @@ -29209,7 +29054,7 @@ } } - function wd(e, t) { + function $u(e, t) { var n; let { open: r, @@ -29224,10 +29069,10 @@ resetMs: d = 750, ignoreKeys: p = [], selectedIndex: h = null - } = t, f = Ee.useRef(), m = Ee.useRef(""), g = Ee.useRef(null != (n = null != h ? h : o) ? n : -1), v = Ee.useRef(null), y = ru(s), _ = ru(l), b = Nu(u), x = Nu(p); - return mu((() => { + } = t, f = Ee.useRef(), m = Ee.useRef(""), g = Ee.useRef(null != (n = null != h ? h : o) ? n : -1), v = Ee.useRef(null), y = Sc(s), _ = Sc(l), b = nu(u), x = nu(p); + return jc((() => { r && (clearTimeout(f.current), v.current = null, m.current = "") - }), [r]), mu((() => { + }), [r]), jc((() => { var e; r && "" === m.current && (g.current = null != (e = null != h ? h : o) ? e : -1) }), [r, h, o]), Ee.useMemo((() => { @@ -29244,8 +29089,8 @@ function n(n) { let i = a.current; - if (m.current.length > 0 && " " !== m.current[0] && (-1 === t(i, i, m.current) ? e(!1) : " " === n.key && Ml(n)), null == i || x.current.includes(n.key) || 1 !== n.key.length || n.ctrlKey || n.metaKey || n.altKey) return; - r && " " !== n.key && (Ml(n), e(!0)); + if (m.current.length > 0 && " " !== m.current[0] && (-1 === t(i, i, m.current) ? e(!1) : " " === n.key && rl(n)), null == i || x.current.includes(n.key) || 1 !== n.key.length || n.ctrlKey || n.metaKey || n.altKey) return; + r && " " !== n.key && (rl(n), e(!0)); let o = i.every((e => { var t, n; return !e || (null == (t = e[0]) ? void 0 : t.toLocaleLowerCase()) !== (null == (n = e[1]) ? void 0 : n.toLocaleLowerCase()) @@ -29270,7 +29115,7 @@ }), [c, r, i, a, d, x, b, y, _]) } - function Sd(e, t) { + function qu(e, t) { let [n, r] = e, i = !1, a = t.length; for (let o = 0, s = a - 1; o < a; s = o++) { let [e, a] = t[o] || [0, 0], [l, c] = t[s] || [0, 0]; @@ -29278,13 +29123,13 @@ } return i } - let Ed = { + let Wu = { none: 0, small: 8, medium: 12, large: 16 }, - Id = (0, Ee.forwardRef)((({ + Hu = (0, Ee.forwardRef)((({ children: e, className: t, content: n, @@ -29301,12 +29146,12 @@ refs: m, context: g, placement: v - } = pd({ + } = Du({ open: d, onOpenChange: p, placement: a, - whileElementsMounted: Dc, - middleware: [Nc({ + whileElementsMounted: ec, + middleware: [nc({ element: h }), { name: "flip", @@ -29331,12 +29176,12 @@ fallbackAxisSideDirection: g = "none", flipAlignment: v = !0, ...y - } = $l(u, e), _ = ql(a), b = ql(l) === l, x = await (null == c.isRTL ? void 0 : c.isRTL(d.floating)), k = f || (b || !v ? [Xl(l)] : function(e) { - let t = Xl(e); - return [Zl(e), t, Zl(t)] + } = pl(u, e), _ = hl(a), b = hl(l) === l, x = await (null == c.isRTL ? void 0 : c.isRTL(d.floating)), k = f || (b || !v ? [_l(l)] : function(e) { + let t = _l(e); + return [yl(e), t, yl(t)] }(l)); f || "none" === g || k.push(... function(e, t, n, r) { - let i = Hl(e), + let i = fl(e), a = function(e, t, n) { let r = ["left", "right"], i = ["right", "left"]; @@ -29350,25 +29195,25 @@ default: return [] } - }(ql(e), "start" === n, r); - return i && (a = a.map((e => e + "-" + i)), t && (a = a.concat(a.map(Zl)))), a + }(hl(e), "start" === n, r); + return i && (a = a.map((e => e + "-" + i)), t && (a = a.concat(a.map(yl)))), a }(l, v, g, x)); let w = [l, ...k], - S = await nc(e, y), + S = await wl(e, y), E = [], - I = (null == (t = o.flip) ? void 0 : t.overflows) || []; + O = (null == (t = o.flip) ? void 0 : t.overflows) || []; if (p && E.push(S[_]), h) { let e = function(e, t, n) { void 0 === n && (n = !1); - let r = Hl(e), - i = Kl(Ql(e)), - a = Yl(i), + let r = fl(e), + i = ml(vl(e)), + a = gl(i), o = "x" === i ? r === (n ? "end" : "start") ? "right" : "left" : "start" === r ? "bottom" : "top"; - return t.reference[a] > t.floating[a] && (o = Xl(o)), [o, Xl(o)] + return t.reference[a] > t.floating[a] && (o = _l(o)), [o, _l(o)] }(a, s, x); E.push(S[e[0]], S[e[1]]) } - if (I = [...I, { + if (O = [...O, { placement: a, overflows: E }], !E.every((e => e <= 0))) { @@ -29377,16 +29222,16 @@ if (t) return { data: { index: e, - overflows: I + overflows: O }, reset: { placement: t } }; - let s = null == (r = I.filter((e => e.overflows[0] <= 0)).sort(((e, t) => e.overflows[1] - t.overflows[1]))[0]) ? void 0 : r.placement; + let s = null == (r = O.filter((e => e.overflows[0] <= 0)).sort(((e, t) => e.overflows[1] - t.overflows[1]))[0]) ? void 0 : r.placement; if (!s) switch (m) { case "bestFit": { - let e = null == (i = I.map((e => [e.placement, e.overflows.filter((e => e > 0)).reduce(((e, t) => e + t), 0)])).sort(((e, t) => e[1] - t[1]))[0]) ? void 0 : i[0]; + let e = null == (i = O.map((e => [e.placement, e.overflows.filter((e => e > 0)).reduce(((e, t) => e + t), 0)])).sort(((e, t) => e[1] - t[1]))[0]) ? void 0 : i[0]; e && (s = e); break } @@ -29401,14 +29246,14 @@ } return {} } - }, ic(Ed[i]), ac({ - padding: Ed[i] + }, El(Wu[i]), Ol({ + padding: Wu[i] })], transform: !1 }), { getReferenceProps: y, getFloatingProps: _ - } = fd([dd(g), function(e, t) { + } = Nu([Ru(g), function(e, t) { void 0 === t && (t = {}); let { open: n, @@ -29425,10 +29270,10 @@ } = t, u = Ee.useRef(!1), d = Ee.useRef(), p = Ee.useRef(!0); return Ee.useEffect((() => { if (!l) return; - let e = yl(s); + let e = zs(s); function t() { - !n && xl(s) && s === wl(Rl(s)) && (u.current = !0) + !n && Bs(s) && s === $s(Js(s)) && (u.current = !0) } function r() { @@ -29453,30 +29298,30 @@ }), []), Ee.useMemo((() => l ? { reference: { onPointerDown(e) { - Ol(e.nativeEvent) || (p.current = !1) + Ks(e.nativeEvent) || (p.current = !1) }, onMouseLeave() { u.current = !1 }, onFocus(e) { if (u.current) return; - let t = Ll(e.nativeEvent); - if (c && bl(t)) try { - if (Cl() && Pl()) throw Error(); + let t = tl(e.nativeEvent); + if (c && Us(t)) try { + if (Ys() && Zs()) throw Error(); if (!t.matches(":focus-visible")) return } catch (e) { - if (!p.current && !Nl(t)) return + if (!p.current && !nl(t)) return } r(!0, e.nativeEvent, "focus") }, onBlur(e) { u.current = !1; let t = e.relatedTarget, - n = bl(t) && t.hasAttribute(Lu("focus-guard")) && "outside" === t.getAttribute("data-type"); + n = Us(t) && t.hasAttribute(tu("focus-guard")) && "outside" === t.getAttribute("data-type"); d.current = window.setTimeout((() => { - let i = wl(s ? s.ownerDocument : document); + let i = $s(s ? s.ownerDocument : document); if (t || i !== s) { - if (Sl(a.floating.current, t) || Sl(s, t) || n) return; + if (qs(a.floating.current, t) || qs(s, t) || n) return; r(!1, e.nativeEvent, "focus") } })) @@ -29502,7 +29347,7 @@ mouseOnly: p = !1, restMs: h = 0, move: f = !0 - } = t, m = Pu(), g = Au(), v = Nu(d), y = Nu(u), _ = Ee.useRef(), b = Ee.useRef(), x = Ee.useRef(), k = Ee.useRef(), w = Ee.useRef(!0), S = Ee.useRef(!1), E = Ee.useRef((() => {})), I = Ee.useCallback((() => { + } = t, m = Zc(), g = Qc(), v = nu(d), y = nu(u), _ = Ee.useRef(), b = Ee.useRef(), x = Ee.useRef(), k = Ee.useRef(), w = Ee.useRef(!0), S = Ee.useRef(!1), E = Ee.useRef((() => {})), O = Ee.useCallback((() => { var e; let t = null == (e = i.current.openEvent) ? void 0 : e.type; return (null == t ? void 0 : t.includes("mouse")) && "mousedown" !== t @@ -29522,16 +29367,16 @@ if (!c || !v.current || !n) return; function e(e) { - I() && r(!1, e, "hover") + O() && r(!1, e, "hover") } - let t = Rl(s).documentElement; + let t = Js(s).documentElement; return t.addEventListener("mouseleave", e), () => { t.removeEventListener("mouseleave", e) } - }), [s, n, r, c, v, i, I]); - let O = Ee.useCallback((function(e, t, n) { + }), [s, n, r, c, v, i, O]); + let I = Ee.useCallback((function(e, t, n) { void 0 === t && (t = !0), void 0 === n && (n = "hover"); - let i = ju(y.current, "close", _.current); + let i = iu(y.current, "close", _.current); i && !x.current ? (clearTimeout(b.current), b.current = setTimeout((() => r(!1, e, n)), i)) : t && (clearTimeout(b.current), r(!1, e, n)) }), [y, r]), C = Ee.useCallback((() => { @@ -29539,12 +29384,12 @@ }), []), A = Ee.useCallback((() => { if (S.current) { - let e = Rl(l.floating.current).body; - e.style.pointerEvents = "", e.removeAttribute(Mu), S.current = !1 + let e = Js(l.floating.current).body; + e.style.pointerEvents = "", e.removeAttribute(ru), S.current = !1 } }), [l]); return Ee.useEffect((() => { - if (c && bl(o)) return n && o.addEventListener("mouseleave", u), null == s || s.addEventListener("mouseleave", u), f && o.addEventListener("mousemove", a, { + if (c && Us(o)) return n && o.addEventListener("mouseleave", u), null == s || s.addEventListener("mouseleave", u), f && o.addEventListener("mousemove", a, { once: !0 }), o.addEventListener("mouseenter", a), o.addEventListener("mouseleave", l), () => { n && o.removeEventListener("mouseleave", u), null == s || s.removeEventListener("mouseleave", u), f && o.removeEventListener("mousemove", a), o.removeEventListener("mouseenter", a), o.removeEventListener("mouseleave", l) @@ -29555,8 +29400,8 @@ } function a(e) { - if (clearTimeout(b.current), w.current = !1, p && !Tl(_.current) || h > 0 && 0 === ju(y.current, "open")) return; - let t = ju(y.current, "open", _.current); + if (clearTimeout(b.current), w.current = !1, p && !Xs(_.current) || h > 0 && 0 === iu(y.current, "open")) return; + let t = iu(y.current, "open", _.current); t ? b.current = setTimeout((() => { r(!0, e, "hover") }), t) : r(!0, e, "hover") @@ -29565,7 +29410,7 @@ function l(r) { if (t()) return; E.current(); - let i = Rl(s); + let i = Js(s); if (clearTimeout(k.current), v.current) { n || clearTimeout(b.current), x.current = v.current({ ...e, @@ -29573,14 +29418,14 @@ x: r.clientX, y: r.clientY, onClose() { - A(), C(), O(r, !0, "safe-polygon") + A(), C(), I(r, !0, "safe-polygon") } }); let t = x.current; return i.addEventListener("mousemove", t), void(E.current = () => { i.removeEventListener("mousemove", t) }) - }("touch" !== _.current || !Sl(s, r.relatedTarget)) && O(r) + }("touch" !== _.current || !qs(s, r.relatedTarget)) && I(r) } function u(n) { @@ -29590,22 +29435,22 @@ x: n.clientX, y: n.clientY, onClose() { - A(), C(), O(n) + A(), C(), I(n) } })(n) } - }), [o, s, c, e, p, h, f, O, C, A, r, n, m, y, v, i]), mu((() => { + }), [o, s, c, e, p, h, f, I, C, A, r, n, m, y, v, i]), jc((() => { var e, t, r; - if (c && n && null != (e = v.current) && e.__options.blockPointerEvents && I()) { - let e = Rl(s).body; - if (e.setAttribute(Mu, ""), e.style.pointerEvents = "none", S.current = !0, bl(o) && s) { + if (c && n && null != (e = v.current) && e.__options.blockPointerEvents && O()) { + let e = Js(s).body; + if (e.setAttribute(ru, ""), e.style.pointerEvents = "none", S.current = !0, Us(o) && s) { let e = null == m || null == (t = m.nodesRef.current.find((e => e.id === g))) || null == (r = t.context) ? void 0 : r.elements.floating; return e && (e.style.pointerEvents = ""), o.style.pointerEvents = "auto", s.style.pointerEvents = "auto", () => { o.style.pointerEvents = "", s.style.pointerEvents = "" } } } - }), [c, n, g, s, o, m, v, i, I]), mu((() => { + }), [c, n, g, s, o, m, v, i, O]), jc((() => { n || (_.current = void 0, C(), A()) }), [n, C, A]), Ee.useEffect((() => () => { C(), clearTimeout(b.current), clearTimeout(k.current), A() @@ -29630,11 +29475,11 @@ clearTimeout(b.current) }, onMouseLeave(e) { - O(e.nativeEvent, !1) + I(e.nativeEvent, !1) } } } - }), [c, h, n, r, O]) + }), [c, h, n, r, I]) }(g, { move: !1, handleClose: r ? function(e) { @@ -29662,10 +29507,10 @@ let { clientX: g, clientY: v - } = e, y = [g, v], _ = Ll(e), b = "mouseleave" === e.type, x = Sl(d.floating, _), k = Sl(d.domReference, _), w = d.domReference.getBoundingClientRect(), S = d.floating.getBoundingClientRect(), E = u.split("-")[0], I = r > S.right - S.width / 2, O = c > S.bottom - S.height / 2, C = y[0] >= w.x && y[0] <= w.x + w.width && y[1] >= w.y && y[1] <= w.y + w.height, A = S.width > w.width, P = S.height > w.height, T = (A ? w : S).left, R = (A ? w : S).right, D = (P ? w : S).top, L = (P ? w : S).bottom; + } = e, y = [g, v], _ = tl(e), b = "mouseleave" === e.type, x = qs(d.floating, _), k = qs(d.domReference, _), w = d.domReference.getBoundingClientRect(), S = d.floating.getBoundingClientRect(), E = u.split("-")[0], O = r > S.right - S.width / 2, I = c > S.bottom - S.height / 2, C = y[0] >= w.x && y[0] <= w.x + w.width && y[1] >= w.y && y[1] <= w.y + w.height, A = S.width > w.width, P = S.height > w.height, T = (A ? w : S).left, R = (A ? w : S).right, D = (P ? w : S).top, L = (P ? w : S).bottom; if (x && (a = !0, !b)) return; if (k && (a = !1), k && !b) return void(a = !0); - if (b && bl(e.relatedTarget) && Sl(d.floating, e.relatedTarget) || f && Fu(f.nodesRef.current, h).some((e => { + if (b && Us(e.relatedTarget) && qs(d.floating, e.relatedTarget) || f && au(f.nodesRef.current, h).some((e => { let { context: t } = e; @@ -29706,7 +29551,7 @@ [S.left + 1, L] ] } - if (!Sd([g, v], N)) { + if (!qu([g, v], N)) { if (a && !C) return m(); if (!b && i) { let t = function(e, t) { @@ -29719,45 +29564,45 @@ }(e.clientX, e.clientY); if (null !== t && t < .1) return m() } - Sd([g, v], function(e) { + qu([g, v], function(e) { let [t, r] = e; switch (E) { case "top": { let e = [ - [S.left, I || A ? S.bottom - n : S.top], - [S.right, I ? A ? S.bottom - n : S.top : S.bottom - n] + [S.left, O || A ? S.bottom - n : S.top], + [S.right, O ? A ? S.bottom - n : S.top : S.bottom - n] ]; return [ - [A ? t + n / 2 : I ? t + 4 * n : t - 4 * n, r + n + 1], - [A ? t - n / 2 : I ? t + 4 * n : t - 4 * n, r + n + 1], ...e + [A ? t + n / 2 : O ? t + 4 * n : t - 4 * n, r + n + 1], + [A ? t - n / 2 : O ? t + 4 * n : t - 4 * n, r + n + 1], ...e ] } case "bottom": { let e = [ - [S.left, I || A ? S.top + n : S.bottom], - [S.right, I ? A ? S.top + n : S.bottom : S.top + n] + [S.left, O || A ? S.top + n : S.bottom], + [S.right, O ? A ? S.top + n : S.bottom : S.top + n] ]; return [ - [A ? t + n / 2 : I ? t + 4 * n : t - 4 * n, r - n], - [A ? t - n / 2 : I ? t + 4 * n : t - 4 * n, r - n], ...e + [A ? t + n / 2 : O ? t + 4 * n : t - 4 * n, r - n], + [A ? t - n / 2 : O ? t + 4 * n : t - 4 * n, r - n], ...e ] } case "left": return [...[ - [O || P ? S.right - n : S.left, S.top], - [O ? P ? S.right - n : S.left : S.right - n, S.bottom] + [I || P ? S.right - n : S.left, S.top], + [I ? P ? S.right - n : S.left : S.right - n, S.bottom] ], - [t + n + 1, P ? r + n / 2 : O ? r + 4 * n : r - 4 * n], - [t + n + 1, P ? r - n / 2 : O ? r + 4 * n : r - 4 * n] + [t + n + 1, P ? r + n / 2 : I ? r + 4 * n : r - 4 * n], + [t + n + 1, P ? r - n / 2 : I ? r + 4 * n : r - 4 * n] ]; case "right": { let e = [ - [O || P ? S.left + n : S.right, S.top], - [O ? P ? S.left + n : S.right : S.left + n, S.bottom] + [I || P ? S.left + n : S.right, S.top], + [I ? P ? S.left + n : S.right : S.left + n, S.bottom] ]; return [ - [t - n, P ? r + n / 2 : O ? r + 4 * n : r - 4 * n], - [t - n, P ? r - n / 2 : O ? r + 4 * n : r - 4 * n], ...e + [t - n, P ? r + n / 2 : I ? r + 4 * n : r - 4 * n], + [t - n, P ? r - n / 2 : I ? r + 4 * n : r - 4 * n], ...e ] } } @@ -29769,19 +29614,19 @@ blockPointerEvents: r }, c }() : null - }), xd(g, { + }), Bu(g, { role: "tooltip" })]), { isMounted: b, status: x - } = kd(g), k = e.ref, w = tu([m.setReference, k, c]), { + } = Gu(g), k = e.ref, w = kc([m.setReference, k, c]), { name: S - } = Ws(), E = fs("sol-c-tooltip sol-u-transition-floating", r && "sol-c-tooltip--interactive", t); - return qo.jsxs(qo.Fragment, { + } = ds(), E = Lo("sol-c-tooltip sol-u-transition-floating", r && "sol-c-tooltip--interactive", t); + return po.jsxs(po.Fragment, { children: [(0, Ee.cloneElement)(e, y({ ref: w - })), b && qo.jsx(ed, { - children: qo.jsxs(Ys, { + })), b && po.jsx(xu, { + children: po.jsxs(gs, { as: "div", className: E, "data-sol-placement": v, @@ -29795,13 +29640,13 @@ color: "foreground-weak", variant: "body-s", ..._(l), - children: [s && qo.jsx(Ys, { + children: [s && po.jsx(gs, { className: "sol-c-tooltip__title", color: "foreground", variant: "emphasis-s", offset: !0, children: s - }), n, qo.jsx(Eu, { + }), n, po.jsx(Wc, { className: "sol-c-tooltip__arrow", context: g, ref: h, @@ -29811,16 +29656,16 @@ })] }) })), - Od = (0, Ee.forwardRef)((({ + Ku = (0, Ee.forwardRef)((({ enabled: e = !0, children: t, ...n - }, r) => e ? qo.jsx(Id, { + }, r) => e ? po.jsx(Hu, { ref: r, ...n, children: t }) : t)), - Cd = ms((({ + Yu = No((({ as: e = "article", className: t, excerpt: n, @@ -29837,59 +29682,59 @@ isOffline: h, ...f }, m) => { - let g = Os({ + let g = Ko({ ..."string" == typeof s ? { src: s } : s }), - v = Os({ + v = Ko({ ..."string" == typeof u ? { src: u } : u }), y = (0, Ee.useRef)(null), - _ = ws(o), + _ = $o(o), { ref: b, hasOverflow: x - } = ks({ + } = Go({ content: p }), k = (0, Ee.useCallback)((e => { y.current?.click(), c?.(e) }), [c]), - w = fs("sol-c-card", h && "sol-c-card--offline", s && "sol-c-card--wide", t); - return qo.jsxs(e, { + w = Lo("sol-c-card", h && "sol-c-card--offline", s && "sol-c-card--wide", t); + return po.jsxs(e, { className: w, "data-sol-button-group": !0, id: o, onClick: k, ref: m, ...f, - children: [qo.jsxs("div", { + children: [po.jsxs("div", { className: "sol-c-card__wrapper", - children: [!h && qo.jsxs(qo.Fragment, { - children: [qo.jsxs(cl, { + children: [!h && po.jsxs(po.Fragment, { + children: [po.jsxs(Ps, { className: "sol-c-card__content", gap: "150", vertical: !0, justify: "end", - children: [qo.jsxs(cl, { + children: [po.jsxs(Ps, { className: "sol-c-card__heading", gap: "025", vertical: !0, - children: [qo.jsx(Od, { + children: [po.jsx(Ku, { content: p, placement: "right", interactive: !1, enabled: x, - children: qo.jsx(Ys, { + children: po.jsx(gs, { className: "sol-c-card__title", color: "foreground", ref: b, variant: "heading-xs", truncate: 3, - children: qo.jsx($s, { + children: po.jsx(ps, { "aria-describedby": l ? _ + "-button" : void 0, className: "sol-c-card__link", external: r, @@ -29898,48 +29743,48 @@ children: p }) }) - }), d && qo.jsx(Ys, { + }), d && po.jsx(gs, { className: "sol-c-card__subtitle", color: "foreground-weak", variant: "body-xxs", children: d })] - }), n && qo.jsx(Ys, { + }), n && po.jsx(gs, { className: "sol-c-card__excerpt", color: "foreground-weak", variant: "body-xs", truncate: 5, children: n - }), l && qo.jsx(el, { + }), l && po.jsx(xs, { "aria-hidden": "true", className: "sol-c-card__button", controlled: !0, decorative: !0, - icon: r ? is : a, + icon: r ? So : a, id: _ + "-button", size: "small", variant: "plain", children: l })] - }), s && qo.jsx("div", { + }), s && po.jsx("div", { className: "sol-c-card__media", - children: qo.jsx("img", { - className: fs("sol-c-card__image", g === Es && "sol-c-card__image--loaded"), + children: po.jsx("img", { + className: Lo("sol-c-card__image", g === Wo && "sol-c-card__image--loaded"), ..."string" == typeof s ? { src: s } : s, alt: "" }) })] - }), h && qo.jsx(Ks, { - source: gl, + }), h && po.jsx(ms, { + source: Ms, className: "sol-c-card__offline-icon" })] - }), s && u && !h && qo.jsx("div", { + }), s && u && !h && po.jsx("div", { "aria-hidden": "true", className: "sol-c-card__overlay", - children: qo.jsx("img", { - className: fs("sol-c-card__image", v === Es && "sol-c-card__image--loaded"), + children: po.jsx("img", { + className: Lo("sol-c-card__image", v === Wo && "sol-c-card__image--loaded"), ..."string" == typeof u ? { src: u } : u, @@ -29948,51 +29793,51 @@ })] }) })); - No('@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,:indeterminate),.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:is(:checked,:indeterminate){--_background:var(--_foreground)}.sol-c-choice--checkbox .sol-c-choice__wrapper:active .sol-c-choice__input:is(:checked,:indeterminate){--_background:var(--sol-color-surface-2)}.sol-c-choice--checkbox .sol-c-choice__icon{color:var(--sol-color-interactive);transition:opacity var(--sol-motion-250) var(--sol-motion-ease-out)}.sol-c-choice--checkbox .sol-c-choice__icon--check path{stroke:currentColor;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--check path{transition-property:stroke,stroke-dashoffset}}.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:is(:checked,:indeterminate)~.sol-c-choice__icon{color:var(--sol-color-interactive-contrast)}.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:checked:not(:indeterminate)~.sol-c-choice__icon--check path{stroke-dashoffset:0}.sol-c-choice--checkbox .sol-c-choice__input:not(:indeterminate)~.sol-c-choice__icon--indeterminate{opacity: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 .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);opacity:0;padding:var(--sol-size-025);transform:translateX(calc(var(--_translate, 0%)*var(--_translate-direction, 1)));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{--_translate:100%}[dir=rtl] .sol-c-choice--toggle{--_translate-direction:-1}.sol-c-choice--toggle .sol-c-choice__input:checked~.sol-c-choice__icon--check,.sol-c-choice--toggle .sol-c-choice__input:not(:checked)~.sol-c-choice__icon--cross{opacity:1}.sol-c-choice__label{user-select:none}.sol-c-choice__feedback{padding-block:var(--sol-size-025);pointer-events:none;user-select:none}}'), No("@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 Ad = ms((({ + eo('@layer sol.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,:indeterminate),.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:is(:checked,:indeterminate){--_background:var(--_foreground)}.sol-c-choice--checkbox .sol-c-choice__wrapper:active .sol-c-choice__input:is(:checked,:indeterminate){--_background:var(--sol-color-surface-2)}.sol-c-choice--checkbox .sol-c-choice__icon{color:var(--sol-color-interactive);transition:opacity var(--sol-motion-250) var(--sol-motion-ease-out)}.sol-c-choice--checkbox .sol-c-choice__icon--check path{stroke:currentColor;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--check path{transition-property:stroke,stroke-dashoffset}}.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:is(:checked,:indeterminate)~.sol-c-choice__icon{color:var(--sol-color-interactive-contrast)}.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:checked:not(:indeterminate)~.sol-c-choice__icon--check path{stroke-dashoffset:0}.sol-c-choice--checkbox .sol-c-choice__input:not(:indeterminate)~.sol-c-choice__icon--indeterminate{opacity: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 .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);opacity:0;padding:var(--sol-size-025);transform:translateX(calc(var(--_translate, 0%)*var(--_translate-direction, 1)));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{--_translate:100%}[dir=rtl] .sol-c-choice--toggle{--_translate-direction:-1}.sol-c-choice--toggle .sol-c-choice__input:checked~.sol-c-choice__icon--check,.sol-c-choice--toggle .sol-c-choice__input:not(:checked)~.sol-c-choice__icon--cross{opacity:1}.sol-c-choice__label{user-select:none}.sol-c-choice__feedback{padding-block:var(--sol-size-025);pointer-events:none;user-select:none}}'), eo("@layer sol.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 Qu = No((({ children: e, className: t, - icon: n = es, + icon: n = bo, type: r = "informative", ...i }, a) => { - let o = fs("sol-c-inline-message", `sol-u-color-status-${r}`, t); - return qo.jsxs(cl, { + let o = Lo("sol-c-inline-message", `sol-u-color-status-${r}`, t); + return po.jsxs(Ps, { className: o, gap: "050", ref: a, ...i, - children: [n && qo.jsx(Ks, { + children: [n && po.jsx(ms, { className: "sol-c-inline-message__icon", source: n - }), qo.jsx(Ys, { + }), po.jsx(gs, { variant: "body-xs", children: e })] }) })), - Pd = (0, Ee.createContext)(null), - Td = e => (0, Ee.useContext)(Pd)?.getProps(e) ?? e; - No("@layer components{.sol-c-field-group__header,.sol-c-field-group__messages{max-inline-size:32.5rem}.sol-c-field-group__header,.sol-c-field-group__messages:not(:last-child){margin-block-end:var(--sol-size-050)}:not(.sol-c-field-group__header)+.sol-c-field-group__messages{margin-block-start:var(--sol-size-050)}}"); - let Rd = (0, Ee.createContext)(null), - Dd = () => { - let e = (0, Ee.useContext)(Rd); + Zu = (0, Ee.createContext)(null), + Xu = e => (0, Ee.useContext)(Zu)?.getProps(e) ?? e; + eo("@layer sol.components{.sol-c-field-group__header,.sol-c-field-group__messages{max-inline-size:32.5rem}.sol-c-field-group__header,.sol-c-field-group__messages:not(:last-child){margin-block-end:var(--sol-size-050)}:not(.sol-c-field-group__header)+.sol-c-field-group__messages{margin-block-start:var(--sol-size-050)}}"); + let Ju = (0, Ee.createContext)(null), + ed = () => { + let e = (0, Ee.useContext)(Ju); if (!e) throw Error("FieldGroup components must be wrapped in "); return e }, - Ld = (0, Ee.forwardRef)((({ + td = (0, Ee.forwardRef)((({ className: e, id: t, ...n }, r) => { - let i = ws(t), + let i = $o(t), { registerMessage: a, unregisterMessage: o - } = Dd(); + } = ed(); (0, Ee.useLayoutEffect)((() => (a(i), () => o(i))), [i, a, o]); - let s = fs("sol-c-choice-group__help", e); - return qo.jsx(Ys, { + let s = Lo("sol-c-choice-group__help", e); + return po.jsx(gs, { className: s, color: "foreground-weak", id: i, @@ -30001,19 +29846,19 @@ ...n }) })), - Nd = (0, Ee.forwardRef)((({ + nd = (0, Ee.forwardRef)((({ className: e, id: t, ...n }, r) => { - let i = ws(t), + let i = $o(t), { registerMessage: a, unregisterMessage: o - } = Dd(); + } = ed(); (0, Ee.useLayoutEffect)((() => (a(i), () => o(i))), [i, a, o]); - let s = fs("sol-c-choice-group__feedback", e); - return qo.jsx(Ad, { + let s = Lo("sol-c-choice-group__feedback", e); + return po.jsx(Qu, { "aria-live": "polite", className: s, id: i, @@ -30022,17 +29867,17 @@ ...n }) })), - Md = (0, Ee.forwardRef)((({ + rd = (0, Ee.forwardRef)((({ className: e, ...t - }, n) => qo.jsx(cl, { - className: fs("sol-c-field-group__messages", e), + }, n) => po.jsx(Ps, { + className: Lo("sol-c-field-group__messages", e), gap: "100", ref: n, vertical: !0, ...t }))), - jd = (0, Ee.forwardRef)((({ + id = (0, Ee.forwardRef)((({ "aria-describedby": e, "aria-labelledby": t, children: n, @@ -30046,7 +29891,7 @@ gap: u = "100", ...d }, p) => { - let h = ws(l), + let h = $o(l), f = (() => { let [e, t] = (0, Ee.useState)([]), n = (0, Ee.useCallback)((e => t((t => [...t, e]))), []), r = (0, Ee.useCallback)((e => t((t => t.filter((t => t !== e))))), []); return (0, Ee.useMemo)((() => ({ @@ -30058,7 +29903,7 @@ { messagesId: m } = f, - g = fs("sol-c-field-group", r), + g = Lo("sol-c-field-group", r), v = (0, Ee.useMemo)((() => { let t = e ? [e] : []; return i && t.push(`${h}-description`), m && t.push(...m), t.join(" ") @@ -30067,9 +29912,9 @@ let e = t ? [t] : []; return c && e.push(`${h}-title`), e.join(" ") }), [t, h, c]); - return qo.jsx(Rd.Provider, { + return po.jsx(Ju.Provider, { value: f, - children: qo.jsxs(cl, { + children: po.jsxs(Ps, { align: "start", "aria-describedby": v, "aria-labelledby": y, @@ -30080,37 +29925,37 @@ role: "group", vertical: !0, ...d, - children: [(c || i) && qo.jsxs(cl, { + children: [(c || i) && po.jsxs(Ps, { className: "sol-c-field-group__header", gap: "050", vertical: !0, - children: [c && qo.jsx(Ys, { + children: [c && po.jsx(gs, { className: "sol-c-field-group__title", color: "foreground", id: h + "-title", variant: "emphasis-s", children: c - }), i && qo.jsx(Ys, { + }), i && po.jsx(gs, { className: "sol-c-field-group__description", color: "foreground-weak", id: h + "-description", variant: "body-m", children: i })] - }), n, (a || o || s) && qo.jsxs(Md, { - children: [a && qo.jsx(Nd, { + }), n, (a || o || s) && po.jsxs(rd, { + children: [a && po.jsx(nd, { children: a - }), o && qo.jsx(Nd, { + }), o && po.jsx(nd, { type: "informative", children: o - }), s && qo.jsx(Ld, { + }), s && po.jsx(td, { children: s })] })] }) }) })), - Fd = ms((({ + ad = No((({ as: e = "div", className: t, disabled: n, @@ -30134,44 +29979,44 @@ inputRef: b, ...x }, k) => { - let w = fs("sol-c-choice", n && "sol-c-choice--disabled", `sol-c-choice--${y}`, t), - S = (0, Ee.useMemo)((() => qo.jsxs(Ys, { + let w = Lo("sol-c-choice", n && "sol-c-choice--disabled", `sol-c-choice--${y}`, t), + S = (0, Ee.useMemo)((() => po.jsxs(gs, { as: "span", className: "sol-c-choice__label", color: "foreground", variant: "label-m", visuallyHidden: a, - children: [i, r && qo.jsx("span", { + children: [i, r && po.jsx("span", { "aria-hidden": "true", children: "*" })] })), [i, r, a]), E = !!c && "checkbox" === y, - I = (0, Ee.useRef)(null), - O = (0, Ee.useMemo)((() => v ? qo.jsx(Ad, { + O = (0, Ee.useRef)(null), + I = (0, Ee.useMemo)((() => v ? po.jsx(Qu, { className: "sol-c-choice__feedback", type: "negative", children: v - }) : m ? qo.jsx(Ad, { + }) : m ? po.jsx(Qu, { className: "sol-c-choice__feedback", - icon: Qo, + icon: go, type: "positive", children: m - }) : g ? qo.jsx(Ad, { + }) : g ? po.jsx(Qu, { className: "sol-c-choice__feedback", - icon: hs, + icon: Do, type: "notice", children: g }) : null), [v, m, g]); return (0, Ee.useLayoutEffect)((() => { - I.current && (I.current.indeterminate = E) - }), [E]), qo.jsxs(e, { + O.current && (O.current.indeterminate = E) + }), [E]), po.jsxs(e, { className: w, ref: k, ...x, - children: [qo.jsxs("label", { + children: [po.jsxs("label", { className: "sol-c-choice__wrapper", - children: [(0, Ee.createElement)("input", Td(vs(_, { + children: [(0, Ee.createElement)("input", Xu(Mo(_, { "aria-checked": E ? "mixed" : l ? "true" : "false", "aria-required": !!r || void 0, checked: l, @@ -30182,19 +30027,19 @@ onBlur: p, onChange: h, onFocus: f, - ref: gs(I, b), + ref: jo(O, b), role: "toggle" === y ? "switch" : void 0, type: "toggle" === y ? "checkbox" : y, value: d - }))), "radio" !== y && qo.jsx(Zo, { + }))), "radio" !== y && po.jsx(vo, { className: "sol-c-choice__icon sol-c-choice__icon--check" - }), "checkbox" === y && qo.jsx(os, { + }), "checkbox" === y && po.jsx(Oo, { className: "sol-c-choice__icon sol-c-choice__icon--indeterminate" - }), "toggle" === y && qo.jsx(Jo, { + }), "toggle" === y && po.jsx(_o, { className: "sol-c-choice__icon sol-c-choice__icon--cross" - }), o ? qo.jsxs(cl, { + }), o ? po.jsxs(Ps, { vertical: !0, - children: [S, qo.jsx(Ys, { + children: [S, po.jsx(gs, { as: "span", className: "sol-c-choice__description", color: "foreground-weak", @@ -30202,22 +30047,22 @@ children: o })] }) : S] - }), O] + }), I] }) })), - zd = ({ + od = ({ condition: e, children: t, wrap: n }) => e ? (0, Ee.cloneElement)(n(t)) : t; - No('@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 Vd = (0, Ee.createContext)(null), - Ud = () => { - let e = (0, Ee.useContext)(Vd); + eo('@layer sol.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 sd = (0, Ee.createContext)(null), + ld = () => { + let e = (0, Ee.useContext)(sd); if (!e) throw Error("Dialog components must be wrapped in "); return e }, - Bd = (ms((({ + cd = (No((({ as: e = "p", id: t, onClick: n, @@ -30225,8 +30070,8 @@ }, i) => { let { setDescriptionId: a - } = Ud(), o = (0, Ee.useId)(); - return Cs((() => (a(t ?? o), () => a(void 0))), [t, o, a]), qo.jsx(e, { + } = ld(), o = (0, Ee.useId)(); + return Vo((() => (a(t ?? o), () => a(void 0))), [t, o, a]), po.jsx(e, { id: t ?? o, ref: i, ...r @@ -30239,14 +30084,14 @@ }) => { let { setIsOpen: i - } = Ud(), { + } = ld(), { ref: a, blockStart: o, blockEnd: s, once: { blockEnd: l } - } = Us({ + } = ss({ onScroll({ blockEnd: e }) { @@ -30258,12 +30103,12 @@ }) => n => { n.stopPropagation(), e && i(!1), t && t(n) }), [i]), u = (0, Ee.useCallback)((() => i(!1)), [i]); - return qo.jsxs(qo.Fragment, { - children: [t && qo.jsx("div", { + return po.jsxs(po.Fragment, { + children: [t && po.jsx("div", { className: "sol-c-dialog__wrapper", "data-sol-scroll-start": o, "data-sol-scroll-end": s, - children: qo.jsx(Ys, { + children: po.jsx(gs, { className: "sol-c-dialog__content", color: "foreground-weak", multiline: !0, @@ -30272,7 +30117,7 @@ close: u }) : t }) - }), e && qo.jsx(cl, { + }), e && po.jsx(Ps, { className: "sol-c-dialog__actions", gap: "100", justify: "end", @@ -30285,8 +30130,8 @@ label: i, onClick: a, ...o - }, s, u) => qo.jsx(el, { - className: fs("sol-c-dialog__action", e), + }, s, u) => po.jsx(xs, { + className: Lo("sol-c-dialog__action", e), color: r, disabled: n && !l, onClick: c({ @@ -30301,7 +30146,7 @@ })] }) }), - Gd = (0, Ee.forwardRef)((({ + ud = (0, Ee.forwardRef)((({ actions: e, alert: t, children: n, @@ -30324,19 +30169,19 @@ open: n, onOpenChange: r } = {}) => { - let [i, a] = (0, Ee.useState)(t), [o, s] = (0, Ee.useState)(), l = n ?? i, c = r ?? a, u = Tu(), d = pd({ + let [i, a] = (0, Ee.useState)(t), [o, s] = (0, Ee.useState)(), l = n ?? i, c = r ?? a, u = Xc(), d = Du({ open: l, onOpenChange: c, nodeId: u }), { context: p - } = d, h = fd([sd(p), dd(p, { + } = d, h = Nu([Cu(p), Ru(p, { bubbles: !1, enabled: !e - }), xd(p, { + }), Bu(p, { role: e ? "alertdialog" : "dialog" - })]), f = kd(p); - return Cs((() => (l ? document.body.setAttribute("data-sol-dialog", "") : document.body.removeAttribute("data-sol-dialog"), () => { + })]), f = Gu(p); + return Vo((() => (l ? document.body.setAttribute("data-sol-dialog", "") : document.body.removeAttribute("data-sol-dialog"), () => { document.body.removeAttribute("data-sol-dialog") })), [l]), (0, Ee.useMemo)((() => ({ isOpen: l, @@ -30364,23 +30209,23 @@ setIsOpen: w, status: S, descriptionId: E, - nodeId: I + nodeId: O } = g, - O = tu([v.setReference, ...d ? [d.ref] : [], f]), + I = kc([v.setReference, ...d ? [d.ref] : [], f]), { name: C - } = Ws(), - A = fs("sol-c-dialog", e && "sol-c-dialog--has-actions", c && "sol-c-dialog--overlay", r); - return qo.jsx(Vd.Provider, { + } = ds(), + A = Lo("sol-c-dialog", e && "sol-c-dialog--has-actions", c && "sol-c-dialog--overlay", r); + return po.jsx(sd.Provider, { value: g, - children: qo.jsxs(Ru, { - id: I, + children: po.jsxs(Jc, { + id: O, children: [d && (0, Ee.cloneElement)("function" == typeof d ? d({ isOpen: k }) : d, _({ - ref: O - })), x && qo.jsx(ed, { - children: qo.jsx(ad, { + ref: I + })), x && po.jsx(xu, { + children: po.jsx(Ou, { className: A, "data-sol-status": S, "data-sol-theme": C, @@ -30388,33 +30233,33 @@ style: { overflow: "hidden" }, - children: qo.jsx(rd, { + children: po.jsx(Su, { context: y, - children: qo.jsxs("div", { + children: po.jsxs("div", { "aria-labelledby": u ? m : void 0, "aria-describedby": E, className: "sol-c-dialog__element", ref: v.setFloating, ...b(h), - children: [(i || u) && qo.jsxs(cl, { + children: [(i || u) && po.jsxs(Ps, { className: "sol-c-dialog__header", gap: "100", - children: [u && qo.jsx(Ys, { + children: [u && po.jsx(gs, { className: "sol-c-dialog__title", color: "foreground", id: m, offset: !0, variant: "heading-xs", children: u - }), i && qo.jsx(el, { + }), i && po.jsx(xs, { "aria-label": "string" == typeof i ? i : "Close", className: "sol-c-dialog__close sol-c-dialog__close--wide-click", - icon: Jo, + icon: _o, onClick: () => w(!1), size: "small", variant: "monochrome" })] - }), qo.jsx(Bd, { + }), po.jsx(cd, { actions: e, onScrollToEnd: s, type: p, @@ -30427,31 +30272,31 @@ }) }) })), - Wd = (0, Ee.forwardRef)(((e, t) => null == Au() ? qo.jsx(Du, { - children: qo.jsx(Gd, { + dd = (0, Ee.forwardRef)(((e, t) => null == Qc() ? po.jsx(eu, { + children: po.jsx(ud, { ref: t, ...e }) - }) : qo.jsx(Gd, { + }) : po.jsx(ud, { ref: t, ...e }))); - No("@layer components{.sol-c-divider{block-size:0;border-block-start-width:var(--sol-border-1);color:var(--sol-color-surface-3)}}"); - let $d = (0, Ee.forwardRef)((({ + eo("@layer sol.components{.sol-c-divider{block-size:0;border-block-start-width:var(--sol-border-1);color:var(--sol-color-surface-3)}}"); + let pd = (0, Ee.forwardRef)((({ className: e, color: t, spacing: n, ...r }, i) => { - let a = fs("sol-c-divider", t && `sol-u-color-${t}`, n && `sol-u-margin-b-${n}`, e); - return qo.jsx("hr", { + let a = Lo("sol-c-divider", t && `sol-u-color-${t}`, n && `sol-u-margin-b-${n}`, e); + return po.jsx("hr", { className: a, ref: i, ...r }) })); - No('@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)}}'), No('@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 qd = (0, Ee.forwardRef)((({ + eo('@layer sol.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)}}'), eo('@layer sol.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 hd = (0, Ee.forwardRef)((({ className: e, disabled: t, max: n = 100, @@ -30459,8 +30304,8 @@ status: i, ...a }, o) => { - let s = fs("sol-c-progress", t && "sol-c-progress--disabled", i && `sol-u-color-status-${i}`, e); - return qo.jsx("progress", { + let s = Lo("sol-c-progress", t && "sol-c-progress--disabled", i && `sol-u-color-status-${i}`, e); + return po.jsx("progress", { className: s, max: n, ref: o, @@ -30468,7 +30313,7 @@ ...a }) })), - Hd = ms((({ + fd = No((({ actions: e, as: t = "div", state: n = "in-progress", @@ -30480,31 +30325,31 @@ title: l, ...c }, u) => { - let d = ws(i), - p = fs("sol-c-download-progress", r), + let d = $o(i), + p = Lo("sol-c-download-progress", r), h = "completed" === n, f = "error" === n, m = l || s, g = o && 0 !== o.length, v = e && 0 !== e.length, y = [l && d + "-title", s && d + "-subtitle"].filter(Boolean).join(" "); - return qo.jsxs(t, { + return po.jsxs(t, { className: p, id: d, ref: u, ...c, - children: [m && qo.jsxs(cl, { + children: [m && po.jsxs(Ps, { className: "sol-c-download-progress__header", gap: "050", justify: "space-between", - children: [l && qo.jsx(Ys, { + children: [l && po.jsx(gs, { color: "foreground-weak", className: "sol-c-download-progress__title", id: d + "-title", variant: "body-s", truncate: !0, children: l - }), s && qo.jsx(Ys, { + }), s && po.jsx(gs, { color: "foreground-weak", className: "sol-c-download-progress__subtitle", id: d + "-subtitle", @@ -30512,13 +30357,13 @@ truncate: !0, children: s })] - }), qo.jsx(qd, { + }), po.jsx(hd, { "aria-labelledby": y, - className: fs("sol-c-download-progress__bar", (v || m) && "sol-u-margin-bs-050", (v || g) && "sol-u-margin-be-050"), + className: Lo("sol-c-download-progress__bar", (v || m) && "sol-u-margin-bs-050", (v || g) && "sol-u-margin-be-050"), disabled: "paused" === n, value: h || f ? 100 : "waiting" === n ? 0 : a, status: h ? "positive" : f ? "negative" : void 0 - }), g && qo.jsx(cl, { + }), g && po.jsx(Ps, { as: "ul", className: "sol-c-download-progress__stats", gap: "050", @@ -30526,18 +30371,18 @@ fill: e, label: t, value: n - }, r) => qo.jsxs(Ys, { + }, r) => po.jsxs(gs, { as: "li", - className: fs("sol-c-download-progress__stat", e && "sol-c-download-progress__stat--fill"), + className: Lo("sol-c-download-progress__stat", e && "sol-c-download-progress__stat--fill"), color: "foreground-weak", variant: "body-xxs", truncate: !0, - children: [qo.jsx("strong", { + children: [po.jsx("strong", { className: "sol-c-download-progress__label", children: t }), ": ", n] }, r))) - }), v && qo.jsx(cl, { + }), v && po.jsx(Ps, { gap: "050", className: "sol-c-download-progress__actions", children: e.map((({ @@ -30545,13 +30390,13 @@ label: t, tooltip: n, ...r - }, i) => qo.jsx(Od, { + }, i) => po.jsx(Ku, { content: n, enabled: !!n, interactive: !1, - children: qo.jsx(el, { + children: po.jsx(xs, { "aria-label": t, - className: fs("sol-c-download-progress__action", e), + className: Lo("sol-c-download-progress__action", e), size: "small", variant: "plain", ...r @@ -30560,10 +30405,10 @@ })] }) })); - No('@layer components{.sol-c-field{--_max-inline-size:32.5rem;--_gap-block:var(--sol-size-050);--_gap-inline:var(--sol-size-150);display:flex;flex-direction:column;gap:var(--_gap-block);inline-size:100%;max-inline-size:var(--_max-inline-size)}.sol-c-field__feedback,.sol-c-field__label{transition:opacity var(--sol-motion-250)}.sol-c-field--disabled .sol-c-field__feedback,.sol-c-field--disabled .sol-c-field__label{opacity:.4}.sol-c-field__label{cursor:var(--sol-cursor-interactive)}.sol-c-field--horizontal{align-items:center;display:grid;gap:0;grid:"label ........" "content feedback" "help ........"/minmax(0,var(--_max-inline-size)) minmax(25%,1fr);max-inline-size:none}.sol-c-field--horizontal .sol-c-field__label{grid-area:label;margin-block-end:var(--_gap-block)}.sol-c-field--horizontal .sol-c-field__content{grid-area:content}.sol-c-field--horizontal .sol-c-field__feedback{grid-area:feedback;margin-inline-start:var(--_gap-inline)}.sol-c-field--horizontal .sol-c-field__help{grid-area:help;margin-block-start:var(--_gap-block)}}'); - let Kd = (0, Ee.createContext)(null), - Yd = () => (0, Ee.useContext)(Kd), - Qd = (0, Ee.forwardRef)((({ + eo('@layer sol.components{.sol-c-field{--_max-inline-size:32.5rem;--_gap-block:var(--sol-size-050);--_gap-inline:var(--sol-size-150);display:flex;flex-direction:column;gap:var(--_gap-block);inline-size:100%;max-inline-size:var(--_max-inline-size)}.sol-c-field__feedback,.sol-c-field__label{transition:opacity var(--sol-motion-250)}.sol-c-field--disabled .sol-c-field__feedback,.sol-c-field--disabled .sol-c-field__label{opacity:.4}.sol-c-field__label{cursor:var(--sol-cursor-interactive)}.sol-c-field--horizontal{align-items:center;display:grid;gap:0;grid:"label ........" "content feedback" "help ........"/minmax(0,var(--_max-inline-size)) minmax(25%,1fr);max-inline-size:none}.sol-c-field--horizontal .sol-c-field__label{grid-area:label;margin-block-end:var(--_gap-block)}.sol-c-field--horizontal .sol-c-field__content{grid-area:content}.sol-c-field--horizontal .sol-c-field__feedback{grid-area:feedback;margin-inline-start:var(--_gap-inline)}.sol-c-field--horizontal .sol-c-field__help{grid-area:help;margin-block-start:var(--_gap-block)}}'); + let md = (0, Ee.createContext)(null), + gd = () => (0, Ee.useContext)(md), + vd = (0, Ee.forwardRef)((({ className: e, id: t, ...n @@ -30571,10 +30416,10 @@ let { feedbackId: i, setHasFeedback: a - } = Yd(); + } = gd(); (0, Ee.useLayoutEffect)((() => (a(!0, t), () => a(!1))), [t, a]); - let o = fs("sol-c-field__feedback", e); - return qo.jsx(Ad, { + let o = Lo("sol-c-field__feedback", e); + return po.jsx(Qu, { "aria-live": "polite", className: o, id: i, @@ -30583,7 +30428,7 @@ ...n }) })), - Zd = (0, Ee.forwardRef)((({ + yd = (0, Ee.forwardRef)((({ className: e, id: t, ...n @@ -30591,10 +30436,10 @@ let { helpId: i, setHasHelp: a - } = Yd(); + } = gd(); (0, Ee.useLayoutEffect)((() => (a(!0, t), () => a(!1))), [t, a]); - let o = fs("sol-c-field__help", e); - return qo.jsx(Ys, { + let o = Lo("sol-c-field__help", e); + return po.jsx(gs, { className: o, color: "foreground-weak", id: i, @@ -30603,7 +30448,7 @@ ...n }) })), - Xd = (0, Ee.forwardRef)((({ + _d = (0, Ee.forwardRef)((({ children: e, className: t, id: n, @@ -30639,16 +30484,16 @@ [_ = r, b] = (0, Ee.useState)(), [x, k] = (0, Ee.useState)(!1), [w, S] = (0, Ee.useState)(!1), - [E, I] = (0, Ee.useState)(null), - [O, C] = (0, Ee.useState)("label"), - A = (0, Ee.useMemo)((() => "label" !== O ? { + [E, O] = (0, Ee.useState)(null), + [I, C] = (0, Ee.useState)("label"), + A = (0, Ee.useMemo)((() => "label" !== I ? { id: f, onClick() { m || E?.focus() } } : { htmlFor: l - }), [l, E, m, O, f]), + }), [l, E, m, I, f]), P = E || "floating" !== a ? a : "classic", T = (0, Ee.useCallback)((e => { let t = e ? [e] : []; @@ -30656,8 +30501,8 @@ }), [u, x, w, p]), R = (0, Ee.useCallback)((e => { let t = e ? [e] : []; - return "label" !== O && t.push(f, l), t.length ? t.join(" ") : void 0 - }), [l, O, f]); + return "label" !== I && t.push(f, l), t.length ? t.join(" ") : void 0 + }), [l, I, f]); return (0, Ee.useMemo)((() => ({ inputId: l, feedbackId: u, @@ -30669,12 +30514,12 @@ isInvalid: v, isRequired: _, label: i, - labelElementType: O, + labelElementType: I, labelProps: A, labelType: P, necessityIndicator: o, setInputId: c, - setInputRef: I, + setInputRef: O, setLabelElementType: C, setHasFeedback: (e, t) => { k(e), d(t) @@ -30687,7 +30532,7 @@ setIsRequired: b, getDescribedby: T, getLabelledby: R - })), [l, u, p, f, x, w, m, v, _, i, O, P, A, o, T, R]) + })), [l, u, p, f, x, w, m, v, _, i, I, P, A, o, T, R]) })({ id: n, disabled: r, @@ -30705,20 +30550,20 @@ labelElementType: x, labelProps: k } = g, - w = fs("sol-c-field", c && "sol-c-field--horizontal", v && "sol-c-field--disabled", y && "sol-c-field--invalid", _ && "sol-c-field--required", t), - S = (0, Ee.useMemo)((() => "floating" !== b && o ? qo.jsxs(cl, { + w = Lo("sol-c-field", c && "sol-c-field--horizontal", v && "sol-c-field--disabled", y && "sol-c-field--invalid", _ && "sol-c-field--required", t), + S = (0, Ee.useMemo)((() => "floating" !== b && o ? po.jsxs(Ps, { as: x, align: "baseline", - className: fs("sol-c-field__label", "hidden" === b && "sol-u-hide-visually"), + className: Lo("sol-c-field__label", "hidden" === b && "sol-u-hide-visually"), gap: "025", wrap: !0, ...k, - children: [qo.jsx(Ys, { + children: [po.jsx(gs, { as: "span", color: "foreground-weak", variant: "label-m", children: o - }), l && qo.jsxs(Ys, { + }), l && po.jsxs(gs, { "aria-hidden": !!_ || void 0, as: "span", color: "foreground-weak", @@ -30727,42 +30572,42 @@ children: ["(", l, ")"] })] }) : null), [_, x, o, k, b, l]), - E = (0, Ee.useMemo)((() => u ? qo.jsx(Qd, { + E = (0, Ee.useMemo)((() => u ? po.jsx(vd, { children: u - }) : p ? qo.jsx(Qd, { - icon: Qo, + }) : p ? po.jsx(vd, { + icon: go, type: "positive", children: p - }) : h ? qo.jsx(Qd, { - icon: hs, + }) : h ? po.jsx(vd, { + icon: Do, type: "notice", children: h }) : null), [u, p, h]); - return qo.jsx(Kd.Provider, { + return po.jsx(md.Provider, { value: g, - children: qo.jsxs("div", { + children: po.jsxs("div", { className: w, id: n, ref: m, ...f, - children: [S, qo.jsx(cl, { + children: [S, po.jsx(Ps, { className: "sol-c-field__content", gap: "100", children: e - }), E, d && qo.jsx(Zd, { + }), E, d && po.jsx(yd, { children: d })] }) }) })); - No("@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-radius-8);--_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 Jd = (0, Ee.forwardRef)((({ + eo("@layer sol.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-radius-8);--_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 bd = (0, Ee.forwardRef)((({ children: e, className: t, icon: n, iconAnimation: r = !0, loading: i, - loadingIcon: a = as, + loadingIcon: a = Eo, loadingIconAnimation: o = !0, onKeyDown: s, onKeyUp: l, @@ -30782,9 +30627,9 @@ b(!0), u?.(e) }), [u]), E = (0, Ee.useCallback)((e => { b(!1), d?.(e) - }), [d]), I = (0, Ee.useCallback)((e => { + }), [d]), O = (0, Ee.useCallback)((e => { y(!0), g(!1), p?.(e) - }), [p]), O = i && a ? a : n, C = (0, Ee.useMemo)((() => { + }), [p]), I = i && a ? a : n, C = (0, Ee.useMemo)((() => { if (i) switch (o) { case "hover": return _; @@ -30801,8 +30646,8 @@ default: return r } - }), [r, _, i, o]), A = fs("sol-c-game-button", m && "sol-c-game-button--pressed", v && "sol-c-game-button--released", t); - return qo.jsxs(qs, { + }), [r, _, i, o]), A = Lo("sol-c-game-button", m && "sol-c-game-button--pressed", v && "sol-c-game-button--released", t); + return po.jsxs(hs, { className: A, loading: i, onKeyDown: x, @@ -30810,37 +30655,37 @@ onMouseDown: w, onMouseEnter: S, onMouseLeave: E, - onMouseUp: I, + onMouseUp: O, ref: f, ...h, - children: [qo.jsx("span", { + children: [po.jsx("span", { "aria-hidden": "true", className: "sol-c-game-button__border" - }), qo.jsxs("span", { + }), po.jsxs("span", { className: "sol-c-game-button__wrapper", - children: [O && qo.jsx(Ks, { + children: [I && po.jsx(ms, { className: "sol-c-game-button__icon", isPlaying: C, - source: O - }), qo.jsx("span", { + source: I + }), po.jsx("span", { className: "sol-c-game-button__label", children: e })] - }), qo.jsx("span", { + }), po.jsx("span", { "aria-hidden": "true", className: "sol-c-game-button__holo" })] }) })); - No('@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;display:flex;flex-wrap:wrap;grid-area:tabs;padding-block:var(--sol-size-050);position:relative}.sol-c-game-page__tab .sol-c-text:after,.sol-c-game-page__tabs-indicator{--_indicator-color:var(--sol-color-interactive-selected);background:var(--_indicator-color);block-size:var(--sol-border-2);inset-block-end:0;inset-inline:0;opacity:0;position:absolute;top:calc(100% - var(--sol-size-050) - var(--sol-border-2));transition:all var(--sol-motion-250) var(--sol-motion-ease);width:0}.sol-c-game-page__tabs-indicator{--_tab-color:var(--sol-color-foreground-weak)}.sol-c-game-page__tab .sol-c-text{position:relative}.sol-c-game-page__tab .sol-c-text:after{background:var(--_tab-color);content:"";top:calc(var(--sol-border-2) + var(--sol-size-200))}.sol-c-game-page__tab{align-items:center;color:var(--_tab-color);cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-050);padding-block:var(--sol-size-075);padding-inline:var(--sol-size-075);position:relative;transition:color var(--sol-motion-250) var(--sol-motion-ease);white-space:nowrap}.sol-c-game-page__tab:not([dir=rtl]):first-child{padding-left:0}.sol-c-game-page__tab[aria-current=true],.sol-c-game-page__tab[aria-pressed=true]{--_tab-color:var(--sol-color-interactive-selected)}.sol-c-game-page__tab[aria-current=true]:hover~.sol-c-game-page__tabs-indicator,.sol-c-game-page__tab[aria-pressed=true]:hover~.sol-c-game-page__tabs-indicator{background:var(--sol-color-interactive-hovered)}.sol-c-game-page__tab:hover{--_tab-color:var(--sol-color-interactive-hovered)}.sol-c-game-page__tab:active{--_tab-color:var(--sol-color-interactive-pressed)}@container style(--sol-prefers-reduced-motion: reduce){.sol-c-game-page__tab .sol-c-text:after{width:100%}.sol-c-game-page__tab:not([dir=rtl]):last-child{padding-right:0}.sol-c-game-page__tab[aria-current=true] .sol-c-text:after,.sol-c-game-page__tab[aria-pressed=true] .sol-c-text:after{opacity:1}}.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;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}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button .sol-c-icon,.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button:before{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}}@container style(--sol-motion-transition-effects: enabled){.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__tabs-indicator,.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__tabs-indicator{animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.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__tabs-indicator,.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,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tabs-indicator{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 ep = ms((({ + eo('@layer sol.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;display:flex;flex-wrap:wrap;grid-area:tabs;padding-block:var(--sol-size-050);position:relative}.sol-c-game-page__tab .sol-c-text:after,.sol-c-game-page__tabs-indicator{--_indicator-color:var(--sol-color-interactive-selected);background:var(--_indicator-color);block-size:var(--sol-border-2);inset-block-end:0;inset-inline:0;opacity:0;position:absolute;top:calc(100% - var(--sol-size-050) - var(--sol-border-2));transition:all var(--sol-motion-250) var(--sol-motion-ease);width:0}.sol-c-game-page__tabs-indicator{--_tab-color:var(--sol-color-foreground-weak)}.sol-c-game-page__tab .sol-c-text{position:relative}.sol-c-game-page__tab .sol-c-text:after{background:var(--_tab-color);content:"";top:calc(var(--sol-border-2) + var(--sol-size-200))}.sol-c-game-page__tab{align-items:center;color:var(--_tab-color);cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-050);padding-block:var(--sol-size-075);padding-inline:var(--sol-size-075);position:relative;transition:color var(--sol-motion-250) var(--sol-motion-ease);white-space:nowrap}.sol-c-game-page__tab:not([dir=rtl]):first-child{padding-left:0}.sol-c-game-page__tab[aria-current=true],.sol-c-game-page__tab[aria-pressed=true]{--_tab-color:var(--sol-color-interactive-selected)}.sol-c-game-page__tab[aria-current=true]:hover~.sol-c-game-page__tabs-indicator,.sol-c-game-page__tab[aria-pressed=true]:hover~.sol-c-game-page__tabs-indicator{background:var(--sol-color-interactive-hovered)}.sol-c-game-page__tab:hover{--_tab-color:var(--sol-color-interactive-hovered)}.sol-c-game-page__tab:active{--_tab-color:var(--sol-color-interactive-pressed)}@container style(--sol-prefers-reduced-motion: reduce){.sol-c-game-page__tab .sol-c-text:after{width:100%}.sol-c-game-page__tab:not([dir=rtl]):last-child{padding-right:0}.sol-c-game-page__tab[aria-current=true] .sol-c-text:after,.sol-c-game-page__tab[aria-pressed=true] .sol-c-text:after{opacity:1}}.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;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}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button .sol-c-icon,.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button:before{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}}@container style(--sol-motion-transition-effects: enabled){.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__tabs-indicator,.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__tabs-indicator{animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.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__tabs-indicator,.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,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tabs-indicator{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 xd = No((({ children: e, className: t, title: n, ...r }, i) => { - let a = fs("sol-c-game-page__actions", t); - return qo.jsx(cl, { + let a = Lo("sol-c-game-page__actions", t); + return po.jsx(Ps, { className: a, gap: "150", ref: i, @@ -30849,30 +30694,30 @@ children: e }) })), - tp = ms((({ + kd = No((({ as: e = "div", className: t, image: n, video: r, ...i }, a) => { - let o = fs("sol-c-game-page__background", t), + let o = Lo("sol-c-game-page__background", t), [s, l] = (0, Ee.useState)(!0), c = (0, Ee.useRef)(null); return (0, Ee.useEffect)((() => { s || c.current?.play() - }), [s]), qo.jsxs(e, { + }), [s]), po.jsxs(e, { "aria-hidden": "true", className: o, ref: a, ...i, - children: [n && qo.jsx("img", { + children: [n && po.jsx("img", { alt: "", className: "sol-c-game-page__image", ..."string" == typeof n ? { src: n } : n - }), r && qo.jsx("video", { + }), r && po.jsx("video", { ref: c, className: "sol-c-game-page__video " + (s ? "" : "sol-c-game-page__video--is-loaded"), disableRemotePlayback: !0, @@ -30883,149 +30728,167 @@ preload: "auto", src: "string" == typeof r ? r : void 0, onCanPlayThrough: () => l(!1), - children: Array.isArray(r) && r.map(((e, t) => qo.jsx("source", { + children: Array.isArray(r) && r.map(((e, t) => po.jsx("source", { ...e }, t))) })] }) - })); - var np = "undefined" != typeof window ? Ee.useLayoutEffect : Ee.useEffect; - let rp = ms((({ + })), + wd = No((({ as: e = "div", children: t, className: n, empty: r, ...i }, a) => { - var o, s, l, c, u, d, p, h, f, m, g, v, y, _, b, x, k, w, S, E, I, O, C, A, P, T, R, D, L, N, M, j; let { - ref: F, - inlineStart: z, - inlineEnd: V - } = Us(), { - events: U - } = (m = void 0 === (f = (h = { - isMounted: !!t - }).decayRate) ? .95 : f, v = void 0 === (g = h.safeDisplacement) ? 10 : g, _ = void 0 !== (y = h.applyRubberBandEffect) && y, x = void 0 === (b = h.activeMouseButton) ? "Left" : b, w = void 0 === (k = h.isMounted) || k, S = (0, Ee.useRef)({ - isMouseDown: !1, - isDraggingX: !1, - isDraggingY: !1, - initialMouseX: 0, - initialMouseY: 0, - lastMouseX: 0, - lastMouseY: 0, - scrollSpeedX: 0, - scrollSpeedY: 0, - lastScrollX: 0, - lastScrollY: 0 - }), E = !1, I = !1, O = 0, C = 0, A = 1 / 60 * 1e3, np((function() { - w && (E = "scroll" === window.getComputedStyle(F.current).overflowX, I = "scroll" === window.getComputedStyle(F.current).overflowY, O = F.current.scrollWidth - F.current.clientWidth, C = F.current.scrollHeight - F.current.clientHeight, o = window.getComputedStyle(F.current).cursor, s = [], l = [], c = [], F.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) - }))) - }), [w]), P = function() { - var e = S.current.scrollSpeedX * A, - t = S.current.scrollSpeedY * A, - n = F.current.scrollLeft + e, - r = F.current.scrollTop + t; - F.current.scrollLeft = n, F.current.scrollTop = r, S.current.lastScrollX = n, S.current.lastScrollY = r - }, T = function(e) { - var t = e.clientX - S.current.initialMouseX, - n = e.clientY - S.current.initialMouseY, - r = F.current, - i = r.clientWidth, - a = r.clientHeight, - o = 0, - s = 0; - E && I ? (o = .3 * i * Math.sign(t) * Math.log10(1 + .5 * Math.abs(t) / i), s = .3 * a * Math.sign(n) * Math.log10(1 + .5 * Math.abs(n) / a)) : E ? o = .3 * i * Math.sign(t) * Math.log10(1 + .5 * Math.abs(t) / i) : I && (s = .3 * a * Math.sign(n) * Math.log10(1 + .5 * Math.abs(n) / a)), F.current.childNodes.forEach((function(e) { - e.style.transform = "translate3d(" + o + "px, " + s + "px, 0px)", e.style.transition = "transform 0ms" - })) - }, R = function() { - F.current.childNodes.forEach((function(e, t) { - e.style.transform = l[t], e.style.transition = c[t] - })) - }, D = function() { - d = setInterval((function() { - var e = S.current.scrollSpeedX * m; - S.current.scrollSpeedX = e; - var t = F.current.scrollLeft <= 0, - n = F.current.scrollLeft >= O; - P(), (.05 > Math.abs(e) || S.current.isMouseDown || t || n) && (S.current.scrollSpeedX = 0, clearInterval(d)) - }), A), p = setInterval((function() { - var e = S.current.scrollSpeedY * m; - S.current.scrollSpeedY = e; - var t = F.current.scrollTop <= 0, - n = F.current.scrollTop >= C; - P(), (.05 > Math.abs(e) || S.current.isMouseDown || t || n) && (S.current.scrollSpeedY = 0, clearInterval(p)) - }), A), S.current.isDraggingX = !1, S.current.isDraggingY = !1, _ && (F.current.childNodes.forEach((function(e) { - e.style.transform = "translate3d(0px, 0px, 0px)", e.style.transition = "transform 250ms" - })), u = setTimeout(R, 250)) - }, L = function(e) { - e.preventDefault(), e.stopImmediatePropagation() - }, N = function(e) { - var t = S.current.isDraggingX || S.current.isDraggingY, - n = S.current.initialMouseX - e.clientX, - r = S.current.initialMouseY - e.clientY, - i = t && (Math.abs(n) > v || Math.abs(r) > v); - i ? F.current.childNodes.forEach((function(e) { - e.addEventListener("click", L) - })) : F.current.childNodes.forEach((function(e) { - e.removeEventListener("click", L) - })), S.current.isMouseDown = !1, S.current.lastMouseX = 0, S.current.lastMouseY = 0, F.current.style.cursor = o, F.current.childNodes.forEach((function(e, t) { - e.style.cursor = s[t] - })), i && D() - }, M = function(e) { - if (S.current.isMouseDown) { - e.preventDefault(); - var t = S.current.lastMouseX - e.clientX; - S.current.lastMouseX = e.clientX, S.current.scrollSpeedX = t / A, S.current.isDraggingX = !0; - var n = S.current.lastMouseY - e.clientY; - S.current.lastMouseY = e.clientY, S.current.scrollSpeedY = n / A, S.current.isDraggingY = !0, F.current.style.cursor = "grabbing", F.current.childNodes.forEach((function(e) { - e.style.cursor = "grabbing" - })); - var r = F.current.scrollLeft <= 0 && E, - i = F.current.scrollLeft >= O && E, - a = F.current.scrollTop <= 0 && I, - o = F.current.scrollTop >= C && I; - (r || i || a || o) && _ && T(e), P() - } - }, j = function() { - O = F.current.scrollWidth - F.current.clientWidth, C = F.current.scrollHeight - F.current.clientHeight - }, (0, Ee.useEffect)((function() { - return w && (window.addEventListener("mouseup", N), window.addEventListener("mousemove", M), window.addEventListener("resize", j)), - function() { - window.removeEventListener("mouseup", N), window.removeEventListener("mousemove", M), window.removeEventListener("resize", j), clearInterval(d), clearInterval(p), clearTimeout(u) + ref: o, + inlineStart: s, + inlineEnd: l + } = ss(); + (({ + ref: e, + scrollSpeed: t = .9, + scrollMomentum: n = 0, + minimumVelocity: r = .05 + } = {}) => { + let i = (0, Ee.useRef)(null), + a = e || i, + o = (0, Ee.useRef)({ + x: 0, + y: 0 + }), + s = (0, Ee.useRef)(null), + l = (0, Ee.useCallback)((() => { + let e = a.current; + e && (e.scrollLeft = e.scrollLeft + o.current.x, e.scrollTop = e.scrollTop + o.current.y, o.current.x *= n, o.current.y *= n, (Math.abs(o.current.x) > r || Math.abs(o.current.y) > r) && (s.current = requestAnimationFrame(l))) + }), [r, a, n]), + c = (0, Ee.useCallback)((e => { + let r = a.current; + if (!r) return; + s.current && cancelAnimationFrame(s.current); + let i = Math.round(r.scrollWidth - r.clientWidth) > 0, + c = e.deltaY * t; + i ? (e.preventDefault(), r.scrollBy({ + left: c, + behavior: Math.abs(c) > 50 && 0 === n ? "smooth" : "auto" + }), o.current.x = c) : i || 0 === n || (r.scrollTop += c, o.current.y = c), 0 !== n && (s.current = requestAnimationFrame(l)) + }), [t, n, l, a]); + Bo({ + ref: a, + onResize: c + }), (0, Ee.useEffect)((() => { + let e = a.current; + if (e) return e.addEventListener("wheel", c, { + passive: !1 + }), () => e.removeEventListener("wheel", c, !1) + }), [c, a]), (0, Ee.useMemo)((() => ({ + ref: a + })), [a]) + })({ + ref: o, + scrollMomentum: .95, + scrollSpeed: .2 + }), (({ + decay: e = .85, + isEnabled: t, + minimumVelocity: n = .05, + mouseButton: r = "left", + ref: i, + safeDistance: a = 10 + } = {}) => { + let o = (0, Ee.useRef)(null), + s = i || o, + l = (0, Ee.useMemo)((() => { + switch (r) { + case "left": + return 0; + case "middle": + return 1; + case "right": + return 2 + } + }), [r]), + c = (0, Ee.useRef)(!1), + u = (0, Ee.useRef)(!1), + d = (0, Ee.useRef)({ + x: 0, + y: 0 + }), + p = (0, Ee.useRef)({ + left: 0, + top: 0 + }), + h = (0, Ee.useRef)({ + x: 0, + y: 0 + }), + f = (0, Ee.useRef)(null); + Vo((() => { + let r = s.current; + if (!r || !t) return; + let i = () => { + r && (r.scrollLeft += h.current.x, r.scrollTop += h.current.y, h.current.x *= e, h.current.y *= e, (Math.abs(h.current.x) > n || Math.abs(h.current.y) > n) && (f.current = requestAnimationFrame(i))) + }, + o = e => { + e.button === l && (c.current = !0, r.style.cursor = "grabbing", d.current = { + x: e.pageX - r.offsetLeft, + y: e.pageY - r.offsetTop + }, p.current = { + left: r.scrollLeft, + top: r.scrollTop + }, f.current && cancelAnimationFrame(f.current)) + }, + m = e => { + if (!c.current) return; + e.preventDefault(); + let t = e.pageX - r.offsetLeft - d.current.x, + n = e.pageY - r.offsetTop - d.current.y, + i = r.scrollLeft, + o = r.scrollTop; + r.scrollLeft = p.current.left - t, r.scrollTop = p.current.top - n, h.current = { + x: r.scrollLeft - i, + y: r.scrollTop - o + }, !u.current && (Math.abs(t) > a || Math.abs(n) > a) && (u.current = !0, r.dataset.solDragScroll = "true") + }, + g = () => { + c.current && (c.current = !1, r.style.removeProperty("cursor"), u.current && (r.childNodes.forEach((e => e.addEventListener("click", (e => { + e.preventDefault(), e.stopPropagation() + }), { + once: !0 + }))), u.current = !1, delete r.dataset.solDragScroll), f.current = requestAnimationFrame(i)) + }; + return r.addEventListener("mousedown", o), window.addEventListener("mousemove", m), window.addEventListener("mouseup", g), () => { + r.removeEventListener("mousedown", o), window.removeEventListener("mousemove", m), window.removeEventListener("mouseup", g), f.current && cancelAnimationFrame(f.current) } - }), [w]), { - events: { - onMouseDown: function(e) { - var t; - t = e.buttons, ("Left" === x && 1 === t || "Middle" === x && 4 === t || "Right" === x && 2 === t) && (S.current.isMouseDown = !0, S.current.lastMouseX = e.clientX, S.current.lastMouseY = e.clientY, S.current.initialMouseX = e.clientX, S.current.initialMouseY = e.clientY) - } - } - }), B = fs("sol-c-game-page__content", n); - return qo.jsx(e, { - className: B, - "data-sol-scroll-start": z, - "data-sol-scroll-end": V, + }), [e, t, n, l, s, a]) + })({ + isEnabled: !!t, + ref: o + }); + let c = Lo("sol-c-game-page__content", n); + return po.jsx(e, { + className: c, + "data-sol-scroll-start": s, + "data-sol-scroll-end": l, ref: a, ...i, - children: t ? qo.jsx("ul", { + children: t ? po.jsx("ul", { className: "sol-c-game-page__cards", "data-sol-scrollbar-hidden": "true", - ref: F, - ...U, - children: Ee.Children.map(t, ((e, t) => qo.jsx("li", { + ref: o, + children: Ee.Children.map(t, ((e, t) => po.jsx("li", { className: "sol-c-game-page__card", children: e }, t))) - }) : r && qo.jsx(Ys, { + }) : r && po.jsx(gs, { className: "sol-c-game-page__empty", variant: "heading-xs", children: r }) }) })), - ip = ms((({ + Sd = No((({ as: e = "div", animation: t, playLottie: n = !1, @@ -31033,31 +30896,31 @@ logo: i, ...a }, o) => { - let s = fs("sol-c-game-page__header", r), + let s = Lo("sol-c-game-page__header", r), [l, c] = (0, Ee.useState)(!1); (0, Ee.useEffect)((() => { n && c(!0) }), [n]); - let u = zs(t, { + let u = as(t, { loop: !1, isPlaying: l }); - return qo.jsx(e, { + return po.jsx(e, { "aria-hidden": "true", className: s, ref: o, ...a, - children: qo.jsx(u, { + children: po.jsx(u, { className: "sol-c-game-page__logo", - children: i && qo.jsx("img", { + children: i && po.jsx("img", { alt: "Game logo", src: i }) }) }) })); - No("@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 ap = ms((({ + eo("@layer sol.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 Ed = No((({ as: e = "p", children: t, className: n, @@ -31067,15 +30930,15 @@ let { ref: o, hasOverflow: s - } = ks(), l = fs("sol-c-tag", r && `sol-u-background-status-${r}-fill sol-u-color-status-${r}-fill-contrast`, n); - return qo.jsx(Od, { + } = Go(), l = Lo("sol-c-tag", r && `sol-u-background-status-${r}-fill sol-u-color-status-${r}-fill-contrast`, n); + return po.jsx(Ku, { content: t, enabled: s, - children: qo.jsx(e, { + children: po.jsx(e, { className: l, ref: a, ...i, - children: qo.jsx(Ys, { + children: po.jsx(gs, { as: "span", className: "sol-c-tag__label", ref: o, @@ -31086,101 +30949,101 @@ }) }) })), - op = ms((({ + Od = No((({ className: e, status: t, title: n, ...r }, i) => { - let a = fs("sol-c-game-page__message", e), - o = qo.jsx(Ys, { + let a = Lo("sol-c-game-page__message", e), + o = po.jsx(gs, { className: a, ref: i, color: "foreground-weak", variant: "body-s", ...r }); - return n ? qo.jsxs(cl, { + return n ? po.jsxs(Ps, { gap: "050", vertical: !0, align: "start", - children: [qo.jsx(ap, { + children: [po.jsx(Ed, { as: "h2", status: t, children: n }), o] }) : o })), - sp = (0, Ee.forwardRef)((({ + Id = (0, Ee.forwardRef)((({ active: e, className: t, icon: n, label: r, ...i }, a) => { - let o = fs("sol-c-game-page__tab", t), + let o = Lo("sol-c-game-page__tab", t), s = { [i.href ? "aria-current" : "aria-pressed"]: !!e || void 0, className: o, ref: a, ...i }; - return qo.jsxs(qs, { + return po.jsxs(hs, { ...s, - children: [r && qo.jsx(Ys, { + children: [r && po.jsx(gs, { as: "span", variant: "button-m", children: r - }), n && qo.jsx(Ks, { + }), n && po.jsx(ms, { source: n })] }) })); - var lp = Object.defineProperty, - cp = {}; + var Cd = Object.defineProperty, + Ad = {}; ((e, t) => { - for (var n in t) lp(e, n, { + for (var n in t) Cd(e, n, { get: t[n], enumerable: !0 }) - })(cp, { - assign: () => Vp, - colors: () => jp, - createStringInterpolator: () => jo, - skipAnimation: () => Fp, - to: () => Fo, - willAdvance: () => zp + })(Ad, { + assign: () => op, + colors: () => rp, + createStringInterpolator: () => no, + skipAnimation: () => ip, + to: () => ro, + willAdvance: () => ap }); - var up = Ip(), - dp = e => kp(e, up), - pp = Ip(); - dp.write = e => kp(e, pp); - var hp = Ip(); - dp.onStart = e => kp(e, hp); - var fp = Ip(); - dp.onFrame = e => kp(e, fp); - var mp = Ip(); - dp.onFinish = e => kp(e, mp); - var gp = []; - dp.setTimeout = (e, t) => { - let n = dp.now() + t, + var Pd = Wd(), + Td = e => Bd(e, Pd), + Rd = Wd(); + Td.write = e => Bd(e, Rd); + var Dd = Wd(); + Td.onStart = e => Bd(e, Dd); + var Ld = Wd(); + Td.onFrame = e => Bd(e, Ld); + var Nd = Wd(); + Td.onFinish = e => Bd(e, Nd); + var jd = []; + Td.setTimeout = (e, t) => { + let n = Td.now() + t, r = () => { - let e = gp.findIndex((e => e.cancel == r)); - ~e && gp.splice(e, 1), bp -= ~e ? 1 : 0 + let e = jd.findIndex((e => e.cancel == r)); + ~e && jd.splice(e, 1), Vd -= ~e ? 1 : 0 }, i = { time: n, handler: e, cancel: r }; - return gp.splice(vp(n), 0, i), bp += 1, wp(), i + return jd.splice(Md(n), 0, i), Vd += 1, Gd(), i }; - var vp = e => ~(~gp.findIndex((t => t.time > e)) || ~gp.length); - dp.cancel = e => { - hp.delete(e), fp.delete(e), mp.delete(e), up.delete(e), pp.delete(e) - }, dp.sync = e => { - xp = !0, dp.batchedUpdates(e), xp = !1 - }, dp.throttle = e => { + var Md = e => ~(~jd.findIndex((t => t.time > e)) || ~jd.length); + Td.cancel = e => { + Dd.delete(e), Ld.delete(e), Nd.delete(e), Pd.delete(e), Rd.delete(e) + }, Td.sync = e => { + Ud = !0, Td.batchedUpdates(e), Ud = !1 + }, Td.throttle = e => { let t; function n() { @@ -31192,65 +31055,65 @@ } function r(...e) { - t = e, dp.onStart(n) + t = e, Td.onStart(n) } return r.handler = e, r.cancel = () => { - hp.delete(n), t = null + Dd.delete(n), t = null }, r }; - var yp = "undefined" != typeof window ? window.requestAnimationFrame : () => {}; - dp.use = e => yp = e, dp.now = "undefined" != typeof performance ? () => performance.now() : Date.now, dp.batchedUpdates = e => e(), dp.catch = console.error, dp.frameLoop = "always", dp.advance = () => { - "demand" !== dp.frameLoop ? console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand") : Ep() + var Fd = "undefined" != typeof window ? window.requestAnimationFrame : () => {}; + Td.use = e => Fd = e, Td.now = "undefined" != typeof performance ? () => performance.now() : Date.now, Td.batchedUpdates = e => e(), Td.catch = console.error, Td.frameLoop = "always", Td.advance = () => { + "demand" !== Td.frameLoop ? console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand") : qd() }; - var _p = -1, - bp = 0, - xp = !1; + var zd = -1, + Vd = 0, + Ud = !1; - function kp(e, t) { - xp ? (t.delete(e), e(0)) : (t.add(e), wp()) + function Bd(e, t) { + Ud ? (t.delete(e), e(0)) : (t.add(e), Gd()) } - function wp() { - _p < 0 && (_p = 0, "demand" !== dp.frameLoop && yp(Sp)) + function Gd() { + zd < 0 && (zd = 0, "demand" !== Td.frameLoop && Fd($d)) } - function Sp() { - ~_p && (yp(Sp), dp.batchedUpdates(Ep)) + function $d() { + ~zd && (Fd($d), Td.batchedUpdates(qd)) } - function Ep() { - let e = _p; - _p = dp.now(); - let t = vp(_p); - t && (Op(gp.splice(0, t), (e => e.handler())), bp -= t), bp ? (hp.flush(), up.flush(e ? Math.min(64, _p - e) : 16.667), fp.flush(), pp.flush(), mp.flush()) : _p = -1 + function qd() { + let e = zd; + zd = Td.now(); + let t = Md(zd); + t && (Hd(jd.splice(0, t), (e => e.handler())), Vd -= t), Vd ? (Dd.flush(), Pd.flush(e ? Math.min(64, zd - e) : 16.667), Ld.flush(), Rd.flush(), Nd.flush()) : zd = -1 } - function Ip() { + function Wd() { let e = new Set, t = e; return { add(n) { - bp += t != e || e.has(n) ? 0 : 1, e.add(n) + Vd += t != e || e.has(n) ? 0 : 1, e.add(n) }, - delete: n => (bp -= t == e && e.has(n) ? 1 : 0, e.delete(n)), + delete: n => (Vd -= t == e && e.has(n) ? 1 : 0, e.delete(n)), flush(n) { - t.size && (e = new Set, bp -= t.size, Op(t, (t => t(n) && e.add(t))), bp += e.size, t = e) + t.size && (e = new Set, Vd -= t.size, Hd(t, (t => t(n) && e.add(t))), Vd += e.size, t = e) } } } - function Op(e, t) { + function Hd(e, t) { e.forEach((e => { try { t(e) } catch (e) { - dp.catch(e) + Td.catch(e) } })) } - function Cp() {} - var Ap = { + function Kd() {} + var Yd = { arr: Array.isArray, obj: e => !!e && "Object" === e.constructor.name, fun: e => "function" == typeof e, @@ -31259,145 +31122,145 @@ und: e => void 0 === e }; - function Pp(e, t) { - if (Ap.arr(e)) { - if (!Ap.arr(t) || e.length !== t.length) return !1; + function Qd(e, t) { + if (Yd.arr(e)) { + if (!Yd.arr(t) || e.length !== t.length) return !1; for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1; return !0 } return e === t } - var Tp = (e, t) => e.forEach(t); + var Zd = (e, t) => e.forEach(t); - function Rp(e, t, n) { - if (Ap.arr(e)) + function Xd(e, t, n) { + if (Yd.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 Dp = e => Ap.und(e) ? [] : Ap.arr(e) ? e : [e]; + var Jd = e => Yd.und(e) ? [] : Yd.arr(e) ? e : [e]; - function Lp(e, t) { + function ep(e, t) { if (e.size) { let n = Array.from(e); - e.clear(), Tp(n, t) + e.clear(), Zd(n, t) } } - var Np = (e, ...t) => Lp(e, (e => e(...t))), - Mp = () => "undefined" == typeof window || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), - jp = null, - Fp = !1, - zp = Cp, - Vp = e => { - e.to && (Fo = e.to), e.now && (dp.now = e.now), void 0 !== e.colors && (jp = e.colors), null != e.skipAnimation && (Fp = e.skipAnimation), e.createStringInterpolator && (jo = e.createStringInterpolator), e.requestAnimationFrame && dp.use(e.requestAnimationFrame), e.batchedUpdates && (dp.batchedUpdates = e.batchedUpdates), e.willAdvance && (zp = e.willAdvance), e.frameLoop && (dp.frameLoop = e.frameLoop) + var tp = (e, ...t) => ep(e, (e => e(...t))), + np = () => "undefined" == typeof window || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), + rp = null, + ip = !1, + ap = Kd, + op = e => { + e.to && (ro = e.to), e.now && (Td.now = e.now), void 0 !== e.colors && (rp = e.colors), null != e.skipAnimation && (ip = e.skipAnimation), e.createStringInterpolator && (no = e.createStringInterpolator), e.requestAnimationFrame && Td.use(e.requestAnimationFrame), e.batchedUpdates && (Td.batchedUpdates = e.batchedUpdates), e.willAdvance && (ap = e.willAdvance), e.frameLoop && (Td.frameLoop = e.frameLoop) }, - Up = new Set, - Bp = [], - Gp = [], - Wp = 0, - $p = { + sp = new Set, + lp = [], + cp = [], + up = 0, + dp = { get idle() { - return !Up.size && !Bp.length + return !sp.size && !lp.length }, start(e) { - Wp > e.priority ? (Up.add(e), dp.onStart(qp)) : (Hp(e), dp(Yp)) + up > e.priority ? (sp.add(e), Td.onStart(pp)) : (hp(e), Td(mp)) }, - advance: Yp, + advance: mp, sort(e) { - if (Wp) dp.onFrame((() => $p.sort(e))); + if (up) Td.onFrame((() => dp.sort(e))); else { - let t = Bp.indexOf(e); - ~t && (Bp.splice(t, 1), Kp(e)) + let t = lp.indexOf(e); + ~t && (lp.splice(t, 1), fp(e)) } }, clear() { - Bp = [], Up.clear() + lp = [], sp.clear() } }; - function qp() { - Up.forEach(Hp), Up.clear(), dp(Yp) + function pp() { + sp.forEach(hp), sp.clear(), Td(mp) } - function Hp(e) { - Bp.includes(e) || Kp(e) + function hp(e) { + lp.includes(e) || fp(e) } - function Kp(e) { - Bp.splice(function(e, t) { + function fp(e) { + lp.splice(function(e, t) { let n = e.findIndex(t); return n < 0 ? e.length : n - }(Bp, (t => t.priority > e.priority)), 0, e) + }(lp, (t => t.priority > e.priority)), 0, e) } - function Yp(e) { - let t = Gp; - for (let n = 0; n < Bp.length; n++) { - let r = Bp[n]; - Wp = r.priority, r.idle || (zp(r), r.advance(e), r.idle || t.push(r)) + function mp(e) { + let t = cp; + for (let n = 0; n < lp.length; n++) { + let r = lp[n]; + up = r.priority, r.idle || (ap(r), r.advance(e), r.idle || t.push(r)) } - return Wp = 0, (Gp = Bp).length = 0, (Bp = t).length > 0 + return up = 0, (cp = lp).length = 0, (lp = t).length > 0 } - var Qp = "[-+]?\\d*\\.?\\d+", - Zp = Qp + "%"; + var gp = "[-+]?\\d*\\.?\\d+", + vp = gp + "%"; - function Xp(...e) { + function yp(...e) { return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)" } - var Jp = RegExp("rgb" + Xp(Qp, Qp, Qp)), - eh = RegExp("rgba" + Xp(Qp, Qp, Qp, Qp)), - th = RegExp("hsl" + Xp(Qp, Zp, Zp)), - nh = RegExp("hsla" + Xp(Qp, Zp, Zp, Qp)), - rh = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - ih = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - ah = /^#([0-9a-fA-F]{6})$/, - oh = /^#([0-9a-fA-F]{8})$/; + var _p = RegExp("rgb" + yp(gp, gp, gp)), + bp = RegExp("rgba" + yp(gp, gp, gp, gp)), + xp = RegExp("hsl" + yp(gp, vp, vp)), + kp = RegExp("hsla" + yp(gp, vp, vp, gp)), + wp = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + Sp = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + Ep = /^#([0-9a-fA-F]{6})$/, + Op = /^#([0-9a-fA-F]{8})$/; - function sh(e, t, n) { + function Ip(e, t, n) { return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + 6 * (t - e) * n : n < .5 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e } - function lh(e, t, n) { + function Cp(e, t, n) { let r = n < .5 ? n * (1 + t) : n + t - n * t, i = 2 * n - r, - a = sh(i, r, e + 1 / 3), - o = sh(i, r, e), - s = sh(i, r, e - 1 / 3); + a = Ip(i, r, e + 1 / 3), + o = Ip(i, r, e), + s = Ip(i, r, e - 1 / 3); return Math.round(255 * a) << 24 | Math.round(255 * o) << 16 | Math.round(255 * s) << 8 } - function ch(e) { + function Ap(e) { let t = parseInt(e, 10); return t < 0 ? 0 : t > 255 ? 255 : t } - function uh(e) { + function Pp(e) { return (parseFloat(e) % 360 + 360) % 360 / 360 } - function dh(e) { + function Tp(e) { let t = parseFloat(e); return t < 0 ? 0 : t > 1 ? 255 : Math.round(255 * t) } - function ph(e) { + function Rp(e) { let t = parseFloat(e); return t < 0 ? 0 : t > 100 ? 1 : t / 100 } - function hh(e) { - let t, n = "number" == typeof e ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = ah.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : jp && void 0 !== jp[e] ? jp[e] : (t = Jp.exec(e)) ? (ch(t[1]) << 24 | ch(t[2]) << 16 | ch(t[3]) << 8 | 255) >>> 0 : (t = eh.exec(e)) ? (ch(t[1]) << 24 | ch(t[2]) << 16 | ch(t[3]) << 8 | dh(t[4])) >>> 0 : (t = rh.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + "ff", 16) >>> 0 : (t = oh.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = ih.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + t[4] + t[4], 16) >>> 0 : (t = th.exec(e)) ? (255 | lh(uh(t[1]), ph(t[2]), ph(t[3]))) >>> 0 : (t = nh.exec(e)) ? (lh(uh(t[1]), ph(t[2]), ph(t[3])) | dh(t[4])) >>> 0 : null; + function Dp(e) { + let t, n = "number" == typeof e ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = Ep.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : rp && void 0 !== rp[e] ? rp[e] : (t = _p.exec(e)) ? (Ap(t[1]) << 24 | Ap(t[2]) << 16 | Ap(t[3]) << 8 | 255) >>> 0 : (t = bp.exec(e)) ? (Ap(t[1]) << 24 | Ap(t[2]) << 16 | Ap(t[3]) << 8 | Tp(t[4])) >>> 0 : (t = wp.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + "ff", 16) >>> 0 : (t = Op.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = Sp.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + t[4] + t[4], 16) >>> 0 : (t = xp.exec(e)) ? (255 | Cp(Pp(t[1]), Rp(t[2]), Rp(t[3]))) >>> 0 : (t = kp.exec(e)) ? (Cp(Pp(t[1]), Rp(t[2]), Rp(t[3])) | Tp(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 fh = (e, t, n) => { - if (Ap.fun(e)) return e; - if (Ap.arr(e)) return fh({ + var Lp = (e, t, n) => { + if (Yd.fun(e)) return e; + if (Yd.arr(e)) return Lp({ range: e, output: t, extrapolate: n }); - if (Ap.str(e.output[0])) return jo(e); + if (Yd.str(e.output[0])) return no(e); let r = e.output, i = e.range || [0, 1], a = e.extrapolateLeft || e.extrapolate || "extend", @@ -31422,111 +31285,111 @@ }(t, i[n], i[n + 1], r[n], r[n + 1], s, a, o, e.map) } }, - mh = Symbol.for("FluidValue.get"), - gh = Symbol.for("FluidValue.observers"), - vh = e => !(!e || !e[mh]), - yh = e => e && e[mh] ? e[mh]() : e, - _h = e => e[gh] || null; + Np = Symbol.for("FluidValue.get"), + jp = Symbol.for("FluidValue.observers"), + Mp = e => !(!e || !e[Np]), + Fp = e => e && e[Np] ? e[Np]() : e, + zp = e => e[jp] || null; - function bh(e, t) { - let n = e[gh]; + function Vp(e, t) { + let n = e[jp]; n && n.forEach((e => { e.eventObserved ? e.eventObserved(t) : e(t) })) } - var xh = class { + var Up = class { constructor(e) { if (!e && !(e = this.get)) throw Error("Unknown getter"); - kh(this, e) + Bp(this, e) } }, - kh = (e, t) => Eh(e, mh, t); + Bp = (e, t) => qp(e, Np, t); - function wh(e, t) { - if (e[mh]) { - let n = e[gh]; - n || Eh(e, gh, n = new Set), !n.has(t) && (n.add(t), e.observerAdded && e.observerAdded(n.size, t)) + function Gp(e, t) { + if (e[Np]) { + let n = e[jp]; + n || qp(e, jp, n = new Set), !n.has(t) && (n.add(t), e.observerAdded && e.observerAdded(n.size, t)) } return t } - function Sh(e, t) { - let n = e[gh]; + function $p(e, t) { + let n = e[jp]; if (n && n.has(t)) { let r = n.size - 1; - r ? n.delete(t) : e[gh] = null, e.observerRemoved && e.observerRemoved(r, t) + r ? n.delete(t) : e[jp] = null, e.observerRemoved && e.observerRemoved(r, t) } } - var Eh = (e, t, n) => Object.defineProperty(e, t, { + var qp = (e, t, n) => Object.defineProperty(e, t, { value: n, writable: !0, configurable: !0 }), - Ih = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, - Oh = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, - Ch = RegExp(`(${Ih.source})(%|[a-z]+)`, "i"), - Ah = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, - Ph = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, - Th = e => { - let [t, n] = Rh(e); - if (!t || Mp()) return e; + Wp = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, + Hp = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, + Kp = RegExp(`(${Wp.source})(%|[a-z]+)`, "i"), + Yp = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, + Qp = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, + Zp = e => { + let [t, n] = Xp(e); + if (!t || np()) 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 && Ph.test(n)) return Th(n); + if (n && Qp.test(n)) return Zp(n); if (n) return n } return e }, - Rh = e => { - let t = Ph.exec(e); + Xp = e => { + let t = Qp.exec(e); if (!t) return [, ]; let [, n, r] = t; return [n, r] }, - Dh = (e, t, n, r, i) => `rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`, - Lh = e => { - zo || (zo = jp ? RegExp(`(${Object.keys(jp).join("|")})(?!\\w)`, "g") : /^\b$/); - let t = e.output.map((e => yh(e).replace(Ph, Th).replace(Oh, hh).replace(zo, hh))), - n = t.map((e => e.match(Ih).map(Number))), + Jp = (e, t, n, r, i) => `rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`, + eh = e => { + io || (io = rp ? RegExp(`(${Object.keys(rp).join("|")})(?!\\w)`, "g") : /^\b$/); + let t = e.output.map((e => Fp(e).replace(Qp, Zp).replace(Hp, Dp).replace(io, Dp))), + n = t.map((e => e.match(Wp).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'); return e[t] })))), - i = r.map((t => fh({ + i = r.map((t => Lp({ ...e, output: t }))); return e => { - let n = !Ch.test(t[0]) && t.find((e => Ch.test(e)))?.replace(Ih, ""), + let n = !Kp.test(t[0]) && t.find((e => Kp.test(e)))?.replace(Wp, ""), r = 0; - return t[0].replace(Ih, (() => `${i[r++](e)}${n||""}`)).replace(Ah, Dh) + return t[0].replace(Wp, (() => `${i[r++](e)}${n||""}`)).replace(Yp, Jp) } }, - Nh = "react-spring: ", - Mh = e => { + th = "react-spring: ", + nh = e => { let t = !1; - if ("function" != typeof e) throw TypeError(`${Nh}once requires a function parameter`); + if ("function" != typeof e) throw TypeError(`${th}once requires a function parameter`); return (...n) => { t || (e(...n), t = !0) } }, - jh = Mh(console.warn), - Fh = Mh(console.warn); + rh = nh(console.warn), + ih = nh(console.warn); - function zh(e) { - return Ap.str(e) && ("#" == e[0] || /\d/.test(e) || !Mp() && Ph.test(e) || e in (jp || {})) + function ah(e) { + return Yd.str(e) && ("#" == e[0] || /\d/.test(e) || !np() && Qp.test(e) || e in (rp || {})) } - var Vh = Mp() ? Ee.useEffect : Ee.useLayoutEffect; + var oh = np() ? Ee.useEffect : Ee.useLayoutEffect; - function Uh() { + function sh() { let e = (0, Ee.useState)()[1], t = (() => { let e = (0, Ee.useRef)(!1); - return Vh((() => (e.current = !0, () => { + return oh((() => (e.current = !0, () => { e.current = !1 })), []), e })(); @@ -31534,37 +31397,37 @@ t.current && e(Math.random()) } } - var Bh = e => (0, Ee.useEffect)(e, Gh), - Gh = []; + var lh = e => (0, Ee.useEffect)(e, ch), + ch = []; - function Wh(e) { + function uh(e) { let t = (0, Ee.useRef)(); return (0, Ee.useEffect)((() => { t.current = e })), t.current } - var $h = Symbol.for("Animated:node"), - qh = e => e && e[$h], - Hh = (e, t) => ((e, t, n) => Object.defineProperty(e, t, { + var dh = Symbol.for("Animated:node"), + ph = e => e && e[dh], + hh = (e, t) => ((e, t, n) => Object.defineProperty(e, t, { value: n, writable: !0, configurable: !0 - }))(e, $h, t), - Kh = e => e && e[$h] && e[$h].getPayload(), - Yh = class { + }))(e, dh, t), + fh = e => e && e[dh] && e[dh].getPayload(), + mh = class { constructor() { - Hh(this, this) + hh(this, this) } getPayload() { return this.payload || [] } }, - Qh = class extends Yh { + gh = class extends mh { constructor(e) { - super(), this._value = e, this.done = !0, this.durationProgress = 0, Ap.num(this._value) && (this.lastPosition = this._value) + super(), this._value = e, this.done = !0, this.durationProgress = 0, Yd.num(this._value) && (this.lastPosition = this._value) } static create(e) { - return new Qh(e) + return new gh(e) } getPayload() { return [this] @@ -31573,30 +31436,30 @@ return this._value } setValue(e, t) { - return Ap.num(e) && (this.lastPosition = e, t && (e = Math.round(e / t) * t, this.done && (this.lastPosition = e))), this._value !== e && (this._value = e, !0) + return Yd.num(e) && (this.lastPosition = e, t && (e = Math.round(e / t) * t, this.done && (this.lastPosition = e))), this._value !== e && (this._value = e, !0) } reset() { let { done: e } = this; - this.done = !1, Ap.num(this._value) && (this.elapsedTime = 0, this.durationProgress = 0, this.lastPosition = this._value, e && (this.lastVelocity = null), this.v0 = null) + this.done = !1, Yd.num(this._value) && (this.elapsedTime = 0, this.durationProgress = 0, this.lastPosition = this._value, e && (this.lastVelocity = null), this.v0 = null) } }, - Zh = class extends Qh { + vh = class extends gh { constructor(e) { - super(0), this._string = null, this._toString = fh({ + super(0), this._string = null, this._toString = Lp({ output: [e, e] }) } static create(e) { - return new Zh(e) + return new vh(e) } getValue() { let e = this._string; return null == e ? this._string = this._toString(this._value) : e } setValue(e) { - if (Ap.str(e)) { + if (Yd.str(e)) { if (e == this._string) return !1; this._string = e, this._value = 1 } else { @@ -31606,92 +31469,92 @@ return !0 } reset(e) { - e && (this._toString = fh({ + e && (this._toString = Lp({ output: [this.getValue(), e] })), this._value = 0, super.reset() } }, - Xh = { + yh = { dependencies: null }, - Jh = class extends Yh { + _h = class extends mh { constructor(e) { super(), this.source = e, this.setValue(e) } getValue(e) { let t = {}; - return Rp(this.source, ((n, r) => { - (e => !!e && e[$h] === e)(n) ? t[r] = n.getValue(e): vh(n) ? t[r] = yh(n) : e || (t[r] = n) + return Xd(this.source, ((n, r) => { + (e => !!e && e[dh] === e)(n) ? t[r] = n.getValue(e): Mp(n) ? t[r] = Fp(n) : e || (t[r] = n) })), t } setValue(e) { this.source = e, this.payload = this._makePayload(e) } reset() { - this.payload && Tp(this.payload, (e => e.reset())) + this.payload && Zd(this.payload, (e => e.reset())) } _makePayload(e) { if (e) { let t = new Set; - return Rp(e, this._addToPayload, t), Array.from(t) + return Xd(e, this._addToPayload, t), Array.from(t) } } _addToPayload(e) { - Xh.dependencies && vh(e) && Xh.dependencies.add(e); - let t = Kh(e); - t && Tp(t, (e => this.add(e))) + yh.dependencies && Mp(e) && yh.dependencies.add(e); + let t = fh(e); + t && Zd(t, (e => this.add(e))) } }, - ef = class extends Jh { + bh = class extends _h { constructor(e) { super(e) } static create(e) { - return new ef(e) + return new bh(e) } getValue() { return this.source.map((e => e.getValue())) } setValue(e) { let t = this.getPayload(); - return e.length == t.length ? t.map(((t, n) => t.setValue(e[n]))).some(Boolean) : (super.setValue(e.map(tf)), !0) + return e.length == t.length ? t.map(((t, n) => t.setValue(e[n]))).some(Boolean) : (super.setValue(e.map(xh)), !0) } }; - function tf(e) { - return (zh(e) ? Zh : Qh).create(e) + function xh(e) { + return (ah(e) ? vh : gh).create(e) } - function nf(e) { - let t = qh(e); - return t ? t.constructor : Ap.arr(e) ? ef : zh(e) ? Zh : Qh + function kh(e) { + let t = ph(e); + return t ? t.constructor : Yd.arr(e) ? bh : ah(e) ? vh : gh } - var rf = (e, t) => { - let n = !Ap.fun(e) || e.prototype && e.prototype.isReactComponent; + var wh = (e, t) => { + let n = !Yd.fun(e) || e.prototype && e.prototype.isReactComponent; return (0, Ee.forwardRef)(((r, i) => { let a = (0, Ee.useRef)(null), o = n && (0, Ee.useCallback)((e => { - a.current = (i && (Ap.fun(i) ? i(e) : i.current = e), e) + a.current = (i && (Yd.fun(i) ? i(e) : i.current = e), e) }), [i]), [s, l] = function(e, t) { let n = new Set; - return Xh.dependencies = n, e.style && (e = { + return yh.dependencies = n, e.style && (e = { ...e, style: t.createAnimatedStyle(e.style) - }), e = new Jh(e), Xh.dependencies = null, [e, n] + }), e = new _h(e), yh.dependencies = null, [e, n] }(r, t), - c = Uh(), + c = sh(), u = () => { let e = a.current; n && !e || !1 === (!!e && t.applyAnimatedValues(e, s.getValue(!0))) && c() }, - d = new af(u, l), + d = new Sh(u, l), p = (0, Ee.useRef)(); - Vh((() => (p.current = d, Tp(l, (e => wh(e, d))), () => { - p.current && (Tp(p.current.deps, (e => Sh(e, p.current))), dp.cancel(p.current.update)) - }))), (0, Ee.useEffect)(u, []), Bh((() => () => { + oh((() => (p.current = d, Zd(l, (e => Gp(e, d))), () => { + p.current && (Zd(p.current.deps, (e => $p(e, p.current))), Td.cancel(p.current.update)) + }))), (0, Ee.useEffect)(u, []), lh((() => () => { let e = p.current; - Tp(e.deps, (t => Sh(t, e))) + Zd(e.deps, (t => $p(t, e))) })); let h = t.getComponentProps(s.getValue()); return Ee.createElement(e, { @@ -31700,36 +31563,36 @@ }) })) }, - af = class { + Sh = class { constructor(e, t) { this.update = e, this.deps = t } eventObserved(e) { - "change" == e.type && dp.write(this.update) + "change" == e.type && Td.write(this.update) } }, - of = Symbol.for("AnimatedComponent"), - sf = e => Ap.str(e) ? e : e && Ap.str(e.displayName) ? e.displayName : Ap.fun(e) && e.name || null; + Eh = Symbol.for("AnimatedComponent"), + Oh = e => Yd.str(e) ? e : e && Yd.str(e.displayName) ? e.displayName : Yd.fun(e) && e.name || null; - function lf(e, ...t) { - return Ap.fun(e) ? e(...t) : e + function Ih(e, ...t) { + return Yd.fun(e) ? e(...t) : e } - var cf = (e, t) => !0 === e || !!(t && e && (Ap.fun(e) ? e(t) : Dp(e).includes(t))), - uf = (e, t) => Ap.obj(e) ? t && e[t] : e, - df = (e, t) => !0 === e.default ? e[t] : e.default ? e.default[t] : void 0, - pf = e => e, - hf = (e, t = pf) => { - let n = ff; + var Ch = (e, t) => !0 === e || !!(t && e && (Yd.fun(e) ? e(t) : Jd(e).includes(t))), + Ah = (e, t) => Yd.obj(e) ? t && e[t] : e, + Ph = (e, t) => !0 === e.default ? e[t] : e.default ? e.default[t] : void 0, + Th = e => e, + Rh = (e, t = Th) => { + let n = Dh; e.default && !0 !== e.default && (n = Object.keys(e = e.default)); let r = {}; for (let i of n) { let n = t(e[i], i); - Ap.und(n) || (r[i] = n) + Yd.und(n) || (r[i] = n) } return r }, - ff = ["config", "onProps", "onStart", "onChange", "onPause", "onResume", "onRest"], - mf = { + Dh = ["config", "onProps", "onStart", "onChange", "onPause", "onResume", "onRest"], + Lh = { config: 1, from: 1, to: 1, @@ -31764,49 +31627,49 @@ parentId: 1 }; - function gf(e) { + function Nh(e) { let t = function(e) { let t = {}, n = 0; - if (Rp(e, ((e, r) => { - !mf[r] && (t[r] = e, n++) + if (Xd(e, ((e, r) => { + !Lh[r] && (t[r] = e, n++) })), n) return t }(e); if (t) { let n = { to: t }; - return Rp(e, ((e, r) => r in t || (n[r] = e))), n + return Xd(e, ((e, r) => r in t || (n[r] = e))), n } return { ...e } } - function vf(e) { - return e = yh(e), Ap.arr(e) ? e.map(vf) : zh(e) ? cp.createStringInterpolator({ + function jh(e) { + return e = Fp(e), Yd.arr(e) ? e.map(jh) : ah(e) ? Ad.createStringInterpolator({ range: [0, 1], output: [e, e] })(1) : e } - function yf(e) { + function Mh(e) { for (let t in e) return !0; return !1 } - function _f(e) { - return Ap.fun(e) || Ap.arr(e) && Ap.obj(e[0]) + function Fh(e) { + return Yd.fun(e) || Yd.arr(e) && Yd.obj(e[0]) } - function bf(e, t) { + function zh(e, t) { e.ref?.delete(e), t?.delete(e) } - function xf(e, t) { + function Vh(e, t) { t && e.ref !== t && (e.ref?.delete(e), t.add(e), e.ref = t) } - var kf = { + var Uh = { tension: 170, friction: 26, mass: 1, @@ -31815,15 +31678,15 @@ clamp: !1 }; - function wf(e, t) { - if (Ap.und(t.decay)) { - let n = !Ap.und(t.tension) || !Ap.und(t.friction); - !n && Ap.und(t.frequency) && Ap.und(t.damping) && Ap.und(t.mass) || (e.duration = void 0, e.decay = void 0), n && (e.frequency = void 0) + function Bh(e, t) { + if (Yd.und(t.decay)) { + let n = !Yd.und(t.tension) || !Yd.und(t.friction); + !n && Yd.und(t.frequency) && Yd.und(t.damping) && Yd.und(t.mass) || (e.duration = void 0, e.decay = void 0), n && (e.frequency = void 0) } else e.duration = void 0 } - var Sf = []; + var Gh = []; - function Ef(e, { + function $h(e, { key: t, props: n, defaultProps: r, @@ -31831,20 +31694,20 @@ actions: a }) { return new Promise(((o, s) => { - let l, c, u = cf(n.cancel ?? r?.cancel, t); + let l, c, u = Ch(n.cancel ?? r?.cancel, t); if (u) h(); else { - Ap.und(n.pause) || (i.paused = cf(n.pause, t)); + Yd.und(n.pause) || (i.paused = Ch(n.pause, t)); let e = r?.pause; - !0 !== e && (e = i.paused || cf(e, t)), l = lf(n.delay || 0, t), e ? (i.resumeQueue.add(p), a.pause()) : (a.resume(), p()) + !0 !== e && (e = i.paused || Ch(e, t)), l = Ih(n.delay || 0, t), e ? (i.resumeQueue.add(p), a.pause()) : (a.resume(), p()) } function d() { - i.resumeQueue.add(p), i.timeouts.delete(c), c.cancel(), l = c.time - dp.now() + i.resumeQueue.add(p), i.timeouts.delete(c), c.cancel(), l = c.time - Td.now() } function p() { - l > 0 && !cp.skipAnimation ? (i.delayed = !0, c = dp.setTimeout(h, l), i.pauseQueue.add(d), i.timeouts.add(c)) : h() + l > 0 && !Ad.skipAnimation ? (i.delayed = !0, c = Td.setTimeout(h, l), i.pauseQueue.add(d), i.timeouts.add(c)) : h() } function h() { @@ -31861,25 +31724,25 @@ } })) } - var If = (e, t) => 1 == t.length ? t[0] : t.some((e => e.cancelled)) ? Af(e.get()) : t.every((e => e.noop)) ? Of(e.get()) : Cf(e.get(), t.every((e => e.finished))), - Of = e => ({ + var qh = (e, t) => 1 == t.length ? t[0] : t.some((e => e.cancelled)) ? Kh(e.get()) : t.every((e => e.noop)) ? Wh(e.get()) : Hh(e.get(), t.every((e => e.finished))), + Wh = e => ({ value: e, noop: !0, finished: !0, cancelled: !1 }), - Cf = (e, t, n = !1) => ({ + Hh = (e, t, n = !1) => ({ value: e, finished: t, cancelled: n }), - Af = e => ({ + Kh = e => ({ value: e, cancelled: !0, finished: !1 }); - function Pf(e, t, n, r) { + function Yh(e, t, n, r) { let { callId: i, parentId: a, @@ -31891,26 +31754,26 @@ return a || e !== s || t.reset ? n.promise = (async () => { let c, u, d; n.asyncId = i, n.asyncTo = e; - let p = hf(t, ((e, t) => "onRest" === t ? void 0 : e)), + let p = Rh(t, ((e, t) => "onRest" === t ? void 0 : e)), h = new Promise(((e, t) => (c = e, u = t))), f = e => { - let t = i <= (n.cancelId || 0) && Af(r) || i !== n.asyncId && Cf(r, !1); + let t = i <= (n.cancelId || 0) && Kh(r) || i !== n.asyncId && Hh(r, !1); if (t) throw e.result = t, u(e), e }, m = (e, t) => { - let a = new Rf, - o = new Df; + let a = new Zh, + o = new Xh; return (async () => { - if (cp.skipAnimation) throw Tf(n), o.result = Cf(r, !1), u(o), o; + if (Ad.skipAnimation) throw Qh(n), o.result = Hh(r, !1), u(o), o; f(a); - let s = Ap.obj(e) ? { + let s = Yd.obj(e) ? { ...e } : { ...t, to: e }; - s.parentId = i, Rp(p, ((e, t) => { - Ap.und(s[t]) && (s[t] = e) + s.parentId = i, Xd(p, ((e, t) => { + Yd.und(s[t]) && (s[t] = e) })); let l = await r.start(s); return f(a), n.paused && await new Promise((e => { @@ -31918,45 +31781,45 @@ })), l })() }; - if (cp.skipAnimation) return Tf(n), Cf(r, !1); + if (Ad.skipAnimation) return Qh(n), Hh(r, !1); try { let t; - t = Ap.arr(e) ? (async e => { + t = Yd.arr(e) ? (async e => { 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 = Cf(r.get(), !0, !1) + })(e) : Promise.resolve(e(m, r.stop.bind(r))), await Promise.all([t.then(c), h]), d = Hh(r.get(), !0, !1) } catch (e) { - if (e instanceof Rf) d = e.result; + if (e instanceof Zh) d = e.result; else { - if (!(e instanceof Df)) throw e; + if (!(e instanceof Xh)) throw e; d = e.result } } finally { i == n.asyncId && (n.asyncId = a, n.asyncTo = a ? s : void 0, n.promise = a ? l : void 0) } - return Ap.fun(o) && dp.batchedUpdates((() => { + return Yd.fun(o) && Td.batchedUpdates((() => { o(d, r, r.item) })), d })() : l } - function Tf(e, t) { - Lp(e.timeouts, (e => e.cancel())), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t) + function Qh(e, t) { + ep(e.timeouts, (e => e.cancel())), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t) } - var Rf = class extends Error { + var Zh = 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.") } }, - Df = class extends Error { + Xh = class extends Error { constructor() { super("SkipAnimationSignal") } }, - Lf = e => e instanceof Mf, - Nf = 1, - Mf = class extends xh { + Jh = e => e instanceof tf, + ef = 1, + tf = class extends Up { constructor() { - super(...arguments), this.id = Nf++, this._priority = 0 + super(...arguments), this.id = ef++, this._priority = 0 } get priority() { return this._priority @@ -31965,14 +31828,14 @@ this._priority != e && (this._priority = e, this._onPriorityChange(e)) } get() { - let e = qh(this); + let e = ph(this); return e && e.getValue() } to(...e) { - return cp.to(this, e) + return Ad.to(this, e) } interpolate(...e) { - return jh(`${Nh}The "interpolate" function is deprecated in v9 (use "to" instead)`), cp.to(this, e) + return rh(`${th}The "interpolate" function is deprecated in v9 (use "to" instead)`), Ad.to(this, e) } toJSON() { return this.get() @@ -31986,7 +31849,7 @@ _attach() {} _detach() {} _onChange(e, t = !1) { - bh(this, { + Vp(this, { type: "change", parent: this, value: e, @@ -31994,26 +31857,26 @@ }) } _onPriorityChange(e) { - this.idle || $p.sort(this), bh(this, { + this.idle || dp.sort(this), Vp(this, { type: "priority", parent: this, priority: e }) } }, - jf = Symbol.for("SpringPhase"), - Ff = e => (1 & e[jf]) > 0, - zf = e => (2 & e[jf]) > 0, - Vf = e => (4 & e[jf]) > 0, - Uf = (e, t) => t ? e[jf] |= 3 : e[jf] &= -3, - Bf = (e, t) => t ? e[jf] |= 4 : e[jf] &= -5, - Gf = class extends Mf { + nf = Symbol.for("SpringPhase"), + rf = e => (1 & e[nf]) > 0, + af = e => (2 & e[nf]) > 0, + of = e => (4 & e[nf]) > 0, + sf = (e, t) => t ? e[nf] |= 3 : e[nf] &= -3, + lf = (e, t) => t ? e[nf] |= 4 : e[nf] &= -5, + cf = class extends tf { constructor(e, t) { if (super(), this.animation = new class { constructor() { - this.changed = !1, this.values = Sf, this.toValues = null, this.fromValues = Sf, this.config = new class { + this.changed = !1, this.values = Gh, this.toValues = null, this.fromValues = Gh, this.config = new class { constructor() { - this.velocity = 0, Object.assign(this, kf) + this.velocity = 0, Object.assign(this, Uh) } }, this.immediate = !1 } @@ -32023,34 +31886,34 @@ pauseQueue: new Set, resumeQueue: new Set, timeouts: new Set - }, this._pendingCalls = new Set, this._lastCallId = 0, this._lastToId = 0, this._memoizedDuration = 0, !Ap.und(e) || !Ap.und(t)) { - let n = Ap.obj(e) ? { + }, this._pendingCalls = new Set, this._lastCallId = 0, this._lastToId = 0, this._memoizedDuration = 0, !Yd.und(e) || !Yd.und(t)) { + let n = Yd.obj(e) ? { ...e } : { ...t, from: e }; - Ap.und(n.default) && (n.default = !0), this.start(n) + Yd.und(n.default) && (n.default = !0), this.start(n) } } get idle() { - return !(zf(this) || this._state.asyncTo) || Vf(this) + return !(af(this) || this._state.asyncTo) || of(this) } get goal() { - return yh(this.animation.to) + return Fp(this.animation.to) } get velocity() { - let e = qh(this); - return e instanceof Qh ? e.lastVelocity || 0 : e.getPayload().map((e => e.lastVelocity || 0)) + let e = ph(this); + return e instanceof gh ? e.lastVelocity || 0 : e.getPayload().map((e => e.lastVelocity || 0)) } get hasAnimated() { - return Ff(this) + return rf(this) } get isAnimating() { - return zf(this) + return af(this) } get isPaused() { - return Vf(this) + return of(this) } get isDelayed() { return this._state.delayed @@ -32065,10 +31928,10 @@ { config: a } = r, - o = Kh(r.to); - !o && vh(r.to) && (i = Dp(yh(r.to))), r.values.forEach(((s, l) => { + o = fh(r.to); + !o && Mp(r.to) && (i = Jd(Fp(r.to))), r.values.forEach(((s, l) => { if (s.done) return; - let c = s.constructor == Zh ? 1 : o ? o[l].lastPosition : i[l], + let c = s.constructor == vh ? 1 : o ? o[l].lastPosition : i[l], u = r.immediate, d = c; if (!u) { @@ -32076,9 +31939,9 @@ if (d = s.lastPosition, a.tension <= 0) return void(s.done = !0); let n = s.elapsedTime += e, i = r.fromValues[l], - o = null != s.v0 ? s.v0 : s.v0 = Ap.arr(a.velocity) ? a.velocity[l] : a.velocity, + o = null != s.v0 ? s.v0 : s.v0 = Yd.arr(a.velocity) ? a.velocity[l] : a.velocity, p = a.precision || (i == c ? .005 : Math.min(1, .001 * Math.abs(c - i))); - if (Ap.und(a.duration)) + if (Yd.und(a.duration)) if (a.decay) { let e = !0 === a.decay ? .998 : a.decay, r = Math.exp(-(1 - e) * n); @@ -32087,7 +31950,7 @@ t = null == s.lastVelocity ? o : s.lastVelocity; let n = a.restVelocity || p / 10, r = a.clamp ? 0 : a.bounce, - l = !Ap.und(r), + l = !Yd.und(r), h = i == c ? s.v0 > 0 : i < c, f = Math.ceil(e / 1); for (let e = 0; e < f && (Math.abs(t) > n || !(u = Math.abs(c - d) <= p)); ++e) { @@ -32102,15 +31965,15 @@ } o && !o[l].done && (u = !1), u ? s.done = !0 : t = !1, s.setValue(d, a.round) && (n = !0) })); - let s = qh(this), + let s = ph(this), l = s.getValue(); if (t) { - let e = yh(r.to); + let e = Fp(r.to); l === e && !n || a.decay ? n && a.decay && this._onChange(l) : (s.setValue(e), this._onChange(e)), this._stop() } else n && this._onChange(l) } set(e) { - return dp.batchedUpdates((() => { + return Td.batchedUpdates((() => { this._stop(), this._focus(e), this._set(e) })), this } @@ -32125,12 +31988,12 @@ }) } finish() { - if (zf(this)) { + if (af(this)) { let { to: e, config: t } = this.animation; - dp.batchedUpdates((() => { + Td.batchedUpdates((() => { this._onStart(), t.decay || this._set(e, !1), this._stop() })) } @@ -32141,16 +32004,16 @@ } start(e, t) { let n; - return Ap.und(e) ? (n = this.queue || [], this.queue = []) : n = [Ap.obj(e) ? e : { + return Yd.und(e) ? (n = this.queue || [], this.queue = []) : n = [Yd.obj(e) ? e : { ...t, to: e - }], Promise.all(n.map((e => this._update(e)))).then((e => If(this, e))) + }], Promise.all(n.map((e => this._update(e)))).then((e => qh(this, e))) } stop(e) { let { to: t } = this.animation; - return this._focus(this.get()), Tf(this._state, e && this._lastCallId), dp.batchedUpdates((() => this._stop(t, e))), this + return this._focus(this.get()), Qh(this._state, e && this._lastCallId), Td.batchedUpdates((() => this._stop(t, e))), this } reset() { this._update({ @@ -32166,12 +32029,12 @@ to: n, from: r } = e; - (null == (n = Ap.obj(n) ? n[t] : n) || _f(n)) && (n = void 0), null == (r = Ap.obj(r) ? r[t] : r) && (r = void 0); + (null == (n = Yd.obj(n) ? n[t] : n) || Fh(n)) && (n = void 0), null == (r = Yd.obj(r) ? r[t] : r) && (r = void 0); let i = { to: n, from: r }; - return Ff(this) || (e.reverse && ([n, r] = [r, n]), r = yh(r), Ap.und(r) ? qh(this) || this._set(n) : this._set(r)), i + return rf(this) || (e.reverse && ([n, r] = [r, n]), r = Fp(r), Yd.und(r) ? ph(this) || this._set(n) : this._set(r)), i } _update({ ...e @@ -32180,38 +32043,38 @@ key: n, defaultProps: r } = this; - e.default && Object.assign(r, hf(e, ((e, t) => /^on/.test(t) ? uf(e, n) : e))), Yf(this, e, "onProps"), Qf(this, "onProps", e, this); + e.default && Object.assign(r, Rh(e, ((e, t) => /^on/.test(t) ? Ah(e, n) : e))), mf(this, e, "onProps"), gf(this, "onProps", e, this); let i = this._prepareNode(e); if (Object.isFrozen(this)) throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?"); let a = this._state; - return Ef(++this._lastCallId, { + return $h(++this._lastCallId, { key: n, props: e, defaultProps: r, state: a, actions: { pause: () => { - Vf(this) || (Bf(this, !0), Np(a.pauseQueue), Qf(this, "onPause", Cf(this, Wf(this, this.animation.to)), this)) + of(this) || (lf(this, !0), tp(a.pauseQueue), gf(this, "onPause", Hh(this, uf(this, this.animation.to)), this)) }, resume: () => { - Vf(this) && (Bf(this, !1), zf(this) && this._resume(), Np(a.resumeQueue), Qf(this, "onResume", Cf(this, Wf(this, this.animation.to)), this)) + of(this) && (lf(this, !1), af(this) && this._resume(), tp(a.resumeQueue), gf(this, "onResume", Hh(this, uf(this, this.animation.to)), this)) }, start: this._merge.bind(this, i) } }).then((n => { if (e.loop && n.finished && (!t || !n.noop)) { - let t = $f(e); + let t = df(e); if (t) return this._update(t, !0) } return n })) } _merge(e, t, n) { - if (t.cancel) return this.stop(!0), n(Af(this)); - let r = !Ap.und(e.to), - i = !Ap.und(e.from); + if (t.cancel) return this.stop(!0), n(Kh(this)); + let r = !Yd.und(e.to), + i = !Yd.und(e.from); if (r || i) { - if (!(t.callId > this._lastToId)) return n(Af(this)); + if (!(t.callId > this._lastToId)) return n(Kh(this)); this._lastToId = t.callId } let { @@ -32225,12 +32088,12 @@ to: u = l, from: d = c } = e; - i && !r && (!t.default || Ap.und(u)) && (u = d), t.reverse && ([u, d] = [d, u]); - let p = !Pp(d, c); - p && (s.from = d), d = yh(d); - let h = !Pp(u, l); + i && !r && (!t.default || Yd.und(u)) && (u = d), t.reverse && ([u, d] = [d, u]); + let p = !Qd(d, c); + p && (s.from = d), d = Fp(d); + let h = !Qd(u, l); h && this._focus(u); - let f = _f(t.to), + let f = Fh(t.to), { config: m } = s, @@ -32239,130 +32102,130 @@ velocity: v } = m; (r || i) && (m.velocity = 0), t.config && !f && function(e, t, n) { - for (let o in n && (wf(n = { + for (let o in n && (Bh(n = { ...n }, t), t = { ...n, ...t - }), wf(e, t), Object.assign(e, t), kf) null == e[o] && (e[o] = kf[o]); + }), Bh(e, t), Object.assign(e, t), Uh) null == e[o] && (e[o] = Uh[o]); let { frequency: r, damping: i } = e, { mass: a } = e; - Ap.und(r) || (r < .01 && (r = .01), i < 0 && (i = 0), e.tension = Math.pow(2 * Math.PI / r, 2) * a, e.friction = 4 * Math.PI * i * a / r) - }(m, lf(t.config, a), t.config !== o.config ? lf(o.config, a) : void 0); - let y = qh(this); - if (!y || Ap.und(u)) return n(Cf(this, !0)); - let _ = Ap.und(t.reset) ? i && !t.default : !Ap.und(d) && cf(t.reset, a), + Yd.und(r) || (r < .01 && (r = .01), i < 0 && (i = 0), e.tension = Math.pow(2 * Math.PI / r, 2) * a, e.friction = 4 * Math.PI * i * a / r) + }(m, Ih(t.config, a), t.config !== o.config ? Ih(o.config, a) : void 0); + let y = ph(this); + if (!y || Yd.und(u)) return n(Hh(this, !0)); + let _ = Yd.und(t.reset) ? i && !t.default : !Yd.und(d) && Ch(t.reset, a), b = _ ? d : this.get(), - x = vf(u), - k = Ap.num(x) || Ap.arr(x) || zh(x), - w = !f && (!k || cf(o.immediate || t.immediate, a)); + x = jh(u), + k = Yd.num(x) || Yd.arr(x) || ah(x), + w = !f && (!k || Ch(o.immediate || t.immediate, a)); if (h) { - let e = nf(u); + let e = kh(u); if (e !== y.constructor) { if (!w) throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`); y = this._set(x) } } let S = y.constructor, - E = vh(u), - I = !1; + E = Mp(u), + O = !1; if (!E) { - let e = _ || !Ff(this) && p; - (h || e) && (E = !(I = Pp(vf(b), x))), (Pp(s.immediate, w) || w) && Pp(m.decay, g) && Pp(m.velocity, v) || (E = !0) + let e = _ || !rf(this) && p; + (h || e) && (E = !(O = Qd(jh(b), x))), (Qd(s.immediate, w) || w) && Qd(m.decay, g) && Qd(m.velocity, v) || (E = !0) } - if (I && zf(this) && (s.changed && !_ ? E = !0 : E || this._stop(l)), !f && ((E || vh(l)) && (s.values = y.getPayload(), s.toValues = vh(u) ? null : S == Zh ? [1] : Dp(x)), s.immediate == w || (s.immediate = w, w || _ || this._set(l)), E)) { + if (O && af(this) && (s.changed && !_ ? E = !0 : E || this._stop(l)), !f && ((E || Mp(l)) && (s.values = y.getPayload(), s.toValues = Mp(u) ? null : S == vh ? [1] : Jd(x)), s.immediate == w || (s.immediate = w, w || _ || this._set(l)), E)) { let { onRest: e } = s; - Tp(Kf, (e => Yf(this, t, e))); - let r = Cf(this, Wf(this, l)); - Np(this._pendingCalls, r), this._pendingCalls.add(n), s.changed && dp.batchedUpdates((() => { - s.changed = !_, e?.(r, this), _ ? lf(o.onRest, r) : s.onStart?.(r, this) + Zd(ff, (e => mf(this, t, e))); + let r = Hh(this, uf(this, l)); + tp(this._pendingCalls, r), this._pendingCalls.add(n), s.changed && Td.batchedUpdates((() => { + s.changed = !_, e?.(r, this), _ ? Ih(o.onRest, r) : s.onStart?.(r, this) })) } - _ && this._set(b), f ? n(Pf(t.to, t, this._state, this)) : E ? this._start() : zf(this) && !h ? this._pendingCalls.add(n) : n(Of(b)) + _ && this._set(b), f ? n(Yh(t.to, t, this._state, this)) : E ? this._start() : af(this) && !h ? this._pendingCalls.add(n) : n(Wh(b)) } _focus(e) { let t = this.animation; - e !== t.to && (_h(this) && this._detach(), t.to = e, _h(this) && this._attach()) + e !== t.to && (zp(this) && this._detach(), t.to = e, zp(this) && this._attach()) } _attach() { let e = 0, { to: t } = this.animation; - vh(t) && (wh(t, this), Lf(t) && (e = t.priority + 1)), this.priority = e + Mp(t) && (Gp(t, this), Jh(t) && (e = t.priority + 1)), this.priority = e } _detach() { let { to: e } = this.animation; - vh(e) && Sh(e, this) + Mp(e) && $p(e, this) } _set(e, t = !0) { - let n = yh(e); - if (!Ap.und(n)) { - let e = qh(this); - if (!e || !Pp(n, e.getValue())) { - let r = nf(n); - e && e.constructor == r ? e.setValue(n) : Hh(this, r.create(n)), e && dp.batchedUpdates((() => { + let n = Fp(e); + if (!Yd.und(n)) { + let e = ph(this); + if (!e || !Qd(n, e.getValue())) { + let r = kh(n); + e && e.constructor == r ? e.setValue(n) : hh(this, r.create(n)), e && Td.batchedUpdates((() => { this._onChange(n, t) })) } } - return qh(this) + return ph(this) } _onStart() { let e = this.animation; - e.changed || (e.changed = !0, Qf(this, "onStart", Cf(this, Wf(this, e.to)), this)) + e.changed || (e.changed = !0, gf(this, "onStart", Hh(this, uf(this, e.to)), this)) } _onChange(e, t) { - t || (this._onStart(), lf(this.animation.onChange, e, this)), lf(this.defaultProps.onChange, e, this), super._onChange(e, t) + t || (this._onStart(), Ih(this.animation.onChange, e, this)), Ih(this.defaultProps.onChange, e, this), super._onChange(e, t) } _start() { let e = this.animation; - qh(this).reset(yh(e.to)), e.immediate || (e.fromValues = e.values.map((e => e.lastPosition))), zf(this) || (Uf(this, !0), Vf(this) || this._resume()) + ph(this).reset(Fp(e.to)), e.immediate || (e.fromValues = e.values.map((e => e.lastPosition))), af(this) || (sf(this, !0), of(this) || this._resume()) } _resume() { - cp.skipAnimation ? this.finish() : $p.start(this) + Ad.skipAnimation ? this.finish() : dp.start(this) } _stop(e, t) { - if (zf(this)) { - Uf(this, !1); + if (af(this)) { + sf(this, !1); let n = this.animation; - Tp(n.values, (e => { + Zd(n.values, (e => { e.done = !0 - })), n.toValues && (n.onChange = n.onPause = n.onResume = void 0), bh(this, { + })), n.toValues && (n.onChange = n.onPause = n.onResume = void 0), Vp(this, { type: "idle", parent: this }); - let r = t ? Af(this.get()) : Cf(this.get(), Wf(this, e ?? n.to)); - Np(this._pendingCalls, r), n.changed && (n.changed = !1, Qf(this, "onRest", r, this)) + let r = t ? Kh(this.get()) : Hh(this.get(), uf(this, e ?? n.to)); + tp(this._pendingCalls, r), n.changed && (n.changed = !1, gf(this, "onRest", r, this)) } } }; - function Wf(e, t) { - let n = vf(t); - return Pp(vf(e.get()), n) + function uf(e, t) { + let n = jh(t); + return Qd(jh(e.get()), n) } - function $f(e, t = e.loop, n = e.to) { - let r = lf(t); + function df(e, t = e.loop, n = e.to) { + let r = Ih(t); if (r) { - let i = !0 !== r && gf(r), + let i = !0 !== r && Nh(r), a = (i || e).reverse, o = !i || i.reset; - return qf({ + return pf({ ...e, loop: t, default: !1, pause: void 0, - to: !a || _f(n) ? n : void 0, + to: !a || Fh(n) ? n : void 0, from: o ? e.from : void 0, reset: o, ...i @@ -32370,31 +32233,31 @@ } } - function qf(e) { + function pf(e) { let { to: t, from: n - } = e = gf(e), r = new Set; - return Ap.obj(t) && Hf(t, r), Ap.obj(n) && Hf(n, r), e.keys = r.size ? Array.from(r) : null, e + } = e = Nh(e), r = new Set; + return Yd.obj(t) && hf(t, r), Yd.obj(n) && hf(n, r), e.keys = r.size ? Array.from(r) : null, e } - function Hf(e, t) { - Rp(e, ((e, n) => null != e && t.add(n))) + function hf(e, t) { + Xd(e, ((e, n) => null != e && t.add(n))) } - var Kf = ["onStart", "onRest", "onChange", "onPause", "onResume"]; + var ff = ["onStart", "onRest", "onChange", "onPause", "onResume"]; - function Yf(e, t, n) { - e.animation[n] = t[n] !== df(t, n) ? uf(t[n], e.key) : void 0 + function mf(e, t, n) { + e.animation[n] = t[n] !== Ph(t, n) ? Ah(t[n], e.key) : void 0 } - function Qf(e, t, ...n) { + function gf(e, t, ...n) { e.animation[t]?.(...n), e.defaultProps[t]?.(...n) } - var Zf = ["onStart", "onChange", "onRest"], - Xf = 1, - Jf = class { + var vf = ["onStart", "onChange", "onRest"], + yf = 1, + _f = class { constructor(e, t) { - this.id = Xf++, this.springs = {}, this.queue = [], this._lastAsyncId = 0, this._active = new Set, this._changed = new Set, this._started = !1, this._state = { + this.id = yf++, this.springs = {}, this.queue = [], this._lastAsyncId = 0, this._active = new Set, this._changed = new Set, this._started = !1, this._state = { paused: !1, pauseQueue: new Set, resumeQueue: new Set, @@ -32424,47 +32287,47 @@ set(e) { for (let t in e) { let n = e[t]; - Ap.und(n) || this.springs[t].set(n) + Yd.und(n) || this.springs[t].set(n) } } update(e) { - return e && this.queue.push(qf(e)), this + return e && this.queue.push(pf(e)), this } start(e) { let { queue: t } = this; - return e ? t = Dp(e).map(qf) : this.queue = [], this._flush ? this._flush(this, t) : (om(this, t), em(this, t)) + return e ? t = Jd(e).map(pf) : this.queue = [], this._flush ? this._flush(this, t) : (Of(this, t), bf(this, t)) } stop(e, t) { if (!!e !== e && (t = e), t) { let n = this.springs; - Tp(Dp(t), (t => n[t].stop(!!e))) - } else Tf(this._state, this._lastAsyncId), this.each((t => t.stop(!!e))); + Zd(Jd(t), (t => n[t].stop(!!e))) + } else Qh(this._state, this._lastAsyncId), this.each((t => t.stop(!!e))); return this } pause(e) { - if (Ap.und(e)) this.start({ + if (Yd.und(e)) this.start({ pause: !0 }); else { let t = this.springs; - Tp(Dp(e), (e => t[e].pause())) + Zd(Jd(e), (e => t[e].pause())) } return this } resume(e) { - if (Ap.und(e)) this.start({ + if (Yd.und(e)) this.start({ pause: !1 }); else { let t = this.springs; - Tp(Dp(e), (e => t[e].resume())) + Zd(Jd(e), (e => t[e].resume())) } return this } each(e) { - Rp(this.springs, e) + Xd(this.springs, e) } _onFrame() { let { @@ -32472,14 +32335,14 @@ onChange: t, onRest: n } = this._events, r = this._active.size > 0, i = this._changed.size > 0; - (r && !this._started || i && !this._started) && (this._started = !0, Lp(e, (([e, t]) => { + (r && !this._started || i && !this._started) && (this._started = !0, ep(e, (([e, t]) => { t.value = this.get(), e(t, this, this._item) }))); let a = !r && this._started, o = i || a && n.size ? this.get() : null; - i && t.size && Lp(t, (([e, t]) => { + i && t.size && ep(t, (([e, t]) => { t.value = o, e(t, this, this._item) - })), a && (this._started = !1, Lp(n, (([e, t]) => { + })), a && (this._started = !1, ep(n, (([e, t]) => { t.value = o, e(t, this, this._item) }))) } @@ -32489,14 +32352,14 @@ if ("idle" != e.type) return; this._active.delete(e.parent) } - dp.onFrame(this._onFrame) + Td.onFrame(this._onFrame) } }; - function em(e, t) { - return Promise.all(t.map((t => tm(e, t)))).then((t => If(e, t))) + function bf(e, t) { + return Promise.all(t.map((t => xf(e, t)))).then((t => qh(e, t))) } - async function tm(e, t, n) { + async function xf(e, t, n) { let { keys: r, to: i, @@ -32504,12 +32367,12 @@ loop: o, onRest: s, onResolve: l - } = t, c = Ap.obj(t.default) && t.default; + } = t, c = Yd.obj(t.default) && t.default; o && (t.loop = !1), !1 === i && (t.to = null), !1 === a && (t.from = null); - let u = Ap.arr(i) || Ap.fun(i) ? i : void 0; - u ? (t.to = void 0, t.onRest = void 0, c && (c.onRest = void 0)) : Tp(Zf, (n => { + let u = Yd.arr(i) || Yd.fun(i) ? i : void 0; + u ? (t.to = void 0, t.onRest = void 0, c && (c.onRest = void 0)) : Zd(vf, (n => { let r = t[n]; - if (Ap.fun(r)) { + if (Yd.fun(r)) { let i = e._events[n]; t[n] = ({ finished: e, @@ -32525,69 +32388,69 @@ } })); let d = e._state; - !d.paused === t.pause ? (d.paused = t.pause, Np(t.pause ? d.pauseQueue : d.resumeQueue)) : d.paused && (t.pause = !0); + !d.paused === t.pause ? (d.paused = t.pause, tp(t.pause ? d.pauseQueue : d.resumeQueue)) : d.paused && (t.pause = !0); let p = (r || Object.keys(e.springs)).map((n => e.springs[n].start(t))), - h = !0 === t.cancel || !0 === df(t, "cancel"); - (u || h && d.asyncId) && p.push(Ef(++e._lastAsyncId, { + h = !0 === t.cancel || !0 === Ph(t, "cancel"); + (u || h && d.asyncId) && p.push($h(++e._lastAsyncId, { props: t, state: d, actions: { - pause: Cp, - resume: Cp, + pause: Kd, + resume: Kd, start(t, n) { - h ? (Tf(d, e._lastAsyncId), n(Af(e))) : (t.onRest = s, n(Pf(u, t, d, e))) + h ? (Qh(d, e._lastAsyncId), n(Kh(e))) : (t.onRest = s, n(Yh(u, t, d, e))) } } })), d.paused && await new Promise((e => { d.resumeQueue.add(e) })); - let f = If(e, await Promise.all(p)); + let f = qh(e, await Promise.all(p)); if (o && f.finished && (!n || !f.noop)) { - let n = $f(t, o, i); - if (n) return om(e, [n]), tm(e, n, !0) + let n = df(t, o, i); + if (n) return Of(e, [n]), xf(e, n, !0) } - return l && dp.batchedUpdates((() => l(f, e, e.item))), f + return l && Td.batchedUpdates((() => l(f, e, e.item))), f } - function nm(e, t) { + function kf(e, t) { let n = { ...e.springs }; - return t && Tp(Dp(t), (e => { - Ap.und(e.keys) && (e = qf(e)), Ap.obj(e.to) || (e = { + return t && Zd(Jd(t), (e => { + Yd.und(e.keys) && (e = pf(e)), Yd.obj(e.to) || (e = { ...e, to: void 0 - }), am(n, e, (e => im(e))) - })), rm(e, n), n + }), Ef(n, e, (e => Sf(e))) + })), wf(e, n), n } - function rm(e, t) { - Rp(t, ((t, n) => { - e.springs[n] || (e.springs[n] = t, wh(t, e)) + function wf(e, t) { + Xd(t, ((t, n) => { + e.springs[n] || (e.springs[n] = t, Gp(t, e)) })) } - function im(e, t) { - let n = new Gf; - return n.key = e, t && wh(n, t), n + function Sf(e, t) { + let n = new cf; + return n.key = e, t && Gp(n, t), n } - function am(e, t, n) { - t.keys && Tp(t.keys, (r => { + function Ef(e, t, n) { + t.keys && Zd(t.keys, (r => { (e[r] || (e[r] = n(r)))._prepareNode(t) })) } - function om(e, t) { - Tp(t, (t => { - am(e.springs, t, (t => im(t, e))) + function Of(e, t) { + Zd(t, (t => { + Ef(e.springs, t, (t => Sf(t, e))) })) } - var sm = ({ + var If = ({ children: e, ...t }) => { - let n = (0, Ee.useContext)(lm), + let n = (0, Ee.useContext)(Cf), r = t.pause || !!n.pause, i = t.immediate || !!n.immediate; t = function(e, t) { @@ -32616,20 +32479,20 @@ })), [r, i]); let { Provider: a - } = lm; + } = Cf; return Ee.createElement(a, { value: t }, e) }, - lm = (Object.assign(sm, Ee.createContext({})), sm.Provider._context = sm, sm.Consumer._context = sm, sm); - sm.Provider = lm.Provider, sm.Consumer = lm.Consumer; - var cm = () => { + Cf = (Object.assign(If, Ee.createContext({})), If.Provider._context = If, If.Consumer._context = If, If); + If.Provider = Cf.Provider, If.Consumer = Cf.Consumer; + var Af = () => { let e = [], t = function(t) { - Fh(`${Nh}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`); + ih(`${th}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 Tp(e, ((e, i) => { - if (Ap.und(t)) r.push(e.start()); + return Zd(e, ((e, i) => { + if (Yd.und(t)) r.push(e.start()); else { let a = n(t, e, i); a && r.push(e.start(a)) @@ -32642,95 +32505,95 @@ let n = e.indexOf(t); ~n && e.splice(n, 1) }, t.pause = function() { - return Tp(e, (e => e.pause(...arguments))), this + return Zd(e, (e => e.pause(...arguments))), this }, t.resume = function() { - return Tp(e, (e => e.resume(...arguments))), this + return Zd(e, (e => e.resume(...arguments))), this }, t.set = function(t) { - Tp(e, ((e, n) => { - let r = Ap.fun(t) ? t(n, e) : t; + Zd(e, ((e, n) => { + let r = Yd.fun(t) ? t(n, e) : t; r && e.set(r) })) }, t.start = function(t) { let n = []; - return Tp(e, ((e, r) => { - if (Ap.und(t)) n.push(e.start()); + return Zd(e, ((e, r) => { + if (Yd.und(t)) n.push(e.start()); else { let i = this._getProps(t, e, r); i && n.push(e.start(i)) } })), n }, t.stop = function() { - return Tp(e, (e => e.stop(...arguments))), this + return Zd(e, (e => e.stop(...arguments))), this }, t.update = function(t) { - return Tp(e, ((e, n) => e.update(this._getProps(t, e, n)))), this + return Zd(e, ((e, n) => e.update(this._getProps(t, e, n)))), this }; let n = function(e, t, n) { - return Ap.fun(e) ? e(n, t) : e + return Yd.fun(e) ? e(n, t) : e }; return t._getProps = n, t }; - function um(e, t) { - let n = Ap.fun(e), + function Pf(e, t) { + let n = Yd.fun(e), [ [r], i ] = function(e, t, n) { - let r = Ap.fun(t) && t; + let r = Yd.fun(t) && t; r && !n && (n = []); - let i = (0, Ee.useMemo)((() => r || 3 == arguments.length ? cm() : void 0), []), + let i = (0, Ee.useMemo)((() => r || 3 == arguments.length ? Af() : void 0), []), a = (0, Ee.useRef)(0), - o = Uh(), + o = sh(), s = (0, Ee.useMemo)((() => ({ ctrls: [], queue: [], flush(e, t) { - let n = nm(e, t), + let n = kf(e, t), r = a.current > 0 && !s.queue.length && !Object.keys(n).some((t => !e.springs[t])); - return r ? em(e, t) : new Promise((r => { - rm(e, n), s.queue.push((() => { - r(em(e, t)) + return r ? bf(e, t) : new Promise((r => { + wf(e, n), s.queue.push((() => { + r(bf(e, t)) })), o() })) } })), []), l = (0, Ee.useRef)([...s.ctrls]), c = [], - u = Wh(e) || 0; + u = uh(e) || 0; function d(e, n) { for (let i = e; i < n; i++) { - let e = l.current[i] || (l.current[i] = new Jf(null, s.flush)), + let e = l.current[i] || (l.current[i] = new _f(null, s.flush)), n = r ? r(i, e) : t[i]; n && (c[i] = function(e) { - let t = qf(e); - return Ap.und(t.default) && (t.default = hf(t)), t + let t = pf(e); + return Yd.und(t.default) && (t.default = Rh(t)), t }(n)) } }(0, Ee.useMemo)((() => { - Tp(l.current.slice(e, u), (e => { - bf(e, i), e.stop(!0) + Zd(l.current.slice(e, u), (e => { + zh(e, i), e.stop(!0) })), l.current.length = e, d(u, e) }), [e]), (0, Ee.useMemo)((() => { d(0, Math.min(u, e)) }), n); - let p = l.current.map(((e, t) => nm(e, c[t]))), - h = (0, Ee.useContext)(sm), - f = Wh(h), - m = h !== f && yf(h); - Vh((() => { + let p = l.current.map(((e, t) => kf(e, c[t]))), + h = (0, Ee.useContext)(If), + f = uh(h), + m = h !== f && Mh(h); + oh((() => { a.current++, s.ctrls = l.current; let { queue: e } = s; - e.length && (s.queue = [], Tp(e, (e => e()))), Tp(l.current, ((e, t) => { + e.length && (s.queue = [], Zd(e, (e => e()))), Zd(l.current, ((e, t) => { i?.add(e), m && e.start({ default: h }); let n = c[t]; - n && (xf(e, n.ref), e.ref ? e.queue.push(n) : e.start(n)) + n && (Vh(e, n.ref), e.ref ? e.queue.push(n) : e.start(n)) })) - })), Bh((() => () => { - Tp(s.ctrls, (e => e.stop(!0))) + })), lh((() => () => { + Zd(s.ctrls, (e => e.stop(!0))) })); let g = p.map((e => ({ ...e @@ -32739,66 +32602,66 @@ }(1, n ? e : [e], n ? t || [] : t); return n || 2 == arguments.length ? [r, i] : r } - var dm = 1, - pm = class extends Mf { + var Tf = 1, + Rf = class extends tf { constructor(e, t) { - super(), this.source = e, this.idle = !0, this._active = new Set, this.calc = fh(...t); + super(), this.source = e, this.idle = !0, this._active = new Set, this.calc = Lp(...t); let n = this._get(), - r = nf(n); - Hh(this, r.create(n)) + r = kh(n); + hh(this, r.create(n)) } advance(e) { let t = this._get(); - Pp(t, this.get()) || (qh(this).setValue(t), this._onChange(t, this.idle)), !this.idle && fm(this._active) && mm(this) + Qd(t, this.get()) || (ph(this).setValue(t), this._onChange(t, this.idle)), !this.idle && Lf(this._active) && Nf(this) } _get() { - let e = Ap.arr(this.source) ? this.source.map(yh) : Dp(yh(this.source)); + let e = Yd.arr(this.source) ? this.source.map(Fp) : Jd(Fp(this.source)); return this.calc(...e) } _start() { - this.idle && !fm(this._active) && (this.idle = !1, Tp(Kh(this), (e => { + this.idle && !Lf(this._active) && (this.idle = !1, Zd(fh(this), (e => { e.done = !1 - })), cp.skipAnimation ? (dp.batchedUpdates((() => this.advance())), mm(this)) : $p.start(this)) + })), Ad.skipAnimation ? (Td.batchedUpdates((() => this.advance())), Nf(this)) : dp.start(this)) } _attach() { let e = 1; - Tp(Dp(this.source), (t => { - vh(t) && wh(t, this), Lf(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1)) + Zd(Jd(this.source), (t => { + Mp(t) && Gp(t, this), Jh(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1)) })), this.priority = e, this._start() } _detach() { - Tp(Dp(this.source), (e => { - vh(e) && Sh(e, this) - })), this._active.clear(), mm(this) + Zd(Jd(this.source), (e => { + Mp(e) && $p(e, this) + })), this._active.clear(), Nf(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 = Dp(this.source).reduce(((e, t) => Math.max(e, (Lf(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 = Jd(this.source).reduce(((e, t) => Math.max(e, (Jh(t) ? t.priority : 0) + 1)), 0)) } }; - function hm(e) { + function Df(e) { return !1 !== e.idle } - function fm(e) { - return !e.size || Array.from(e).every(hm) + function Lf(e) { + return !e.size || Array.from(e).every(Df) } - function mm(e) { - e.idle || (e.idle = !0, Tp(Kh(e), (e => { + function Nf(e) { + e.idle || (e.idle = !0, Zd(fh(e), (e => { e.done = !0 - })), bh(e, { + })), Vp(e, { type: "idle", parent: e })) } - cp.assign({ - createStringInterpolator: Lh, - to: (e, t) => new pm(e, t) + Ad.assign({ + createStringInterpolator: eh, + to: (e, t) => new Rf(e, t) }); - var gm = /^--/, - vm = {}, - ym = { + var jf = /^--/, + Mf = {}, + Ff = { animationIterationCount: !0, borderImageOutset: !0, borderImageSlice: !0, @@ -32841,14 +32704,14 @@ strokeOpacity: !0, strokeWidth: !0 }, - _m = ["Webkit", "Ms", "Moz", "O"]; - ym = Object.keys(ym).reduce(((e, t) => (_m.forEach((n => e[((e, t) => e + t.charAt(0).toUpperCase() + t.substring(1))(n, t)] = e[t])), e)), ym); - var bm = /^(matrix|translate|scale|rotate|skew)/, - xm = /^(translate)/, - km = /^(rotate|skew)/, - wm = (e, t) => Ap.num(e) && 0 !== e ? e + t : e, - Sm = (e, t) => Ap.arr(e) ? e.every((e => Sm(e, t))) : Ap.num(e) ? e === t : parseFloat(e) === t, - Em = class extends Jh { + zf = ["Webkit", "Ms", "Moz", "O"]; + Ff = Object.keys(Ff).reduce(((e, t) => (zf.forEach((n => e[((e, t) => e + t.charAt(0).toUpperCase() + t.substring(1))(n, t)] = e[t])), e)), Ff); + var Vf = /^(matrix|translate|scale|rotate|skew)/, + Uf = /^(translate)/, + Bf = /^(rotate|skew)/, + Gf = (e, t) => Yd.num(e) && 0 !== e ? e + t : e, + $f = (e, t) => Yd.arr(e) ? e.every((e => $f(e, t))) : Yd.num(e) ? e === t : parseFloat(e) === t, + qf = class extends _h { constructor({ x: e, y: t, @@ -32857,17 +32720,17 @@ }) { let i = [], a = []; - (e || t || n) && (i.push([e || 0, t || 0, n || 0]), a.push((e => [`translate3d(${e.map((e=>wm(e,"px"))).join(",")})`, Sm(e, 0)]))), Rp(r, ((e, t) => { + (e || t || n) && (i.push([e || 0, t || 0, n || 0]), a.push((e => [`translate3d(${e.map((e=>Gf(e,"px"))).join(",")})`, $f(e, 0)]))), Xd(r, ((e, t) => { if ("transform" === t) i.push([e || ""]), a.push((e => [e, "" === e])); - else if (bm.test(t)) { - if (delete r[t], Ap.und(e)) return; - let n = xm.test(t) ? "px" : km.test(t) ? "deg" : ""; - i.push(Dp(e)), a.push("rotate3d" === t ? ([e, t, r, i]) => [`rotate3d(${e},${t},${r},${wm(i,n)})`, Sm(i, 0)] : e => [`${t}(${e.map((e=>wm(e,n))).join(",")})`, Sm(e, t.startsWith("scale") ? 1 : 0)]) + else if (Vf.test(t)) { + if (delete r[t], Yd.und(e)) return; + let n = Uf.test(t) ? "px" : Bf.test(t) ? "deg" : ""; + i.push(Jd(e)), a.push("rotate3d" === t ? ([e, t, r, i]) => [`rotate3d(${e},${t},${r},${Gf(i,n)})`, $f(i, 0)] : e => [`${t}(${e.map((e=>Gf(e,n))).join(",")})`, $f(e, t.startsWith("scale") ? 1 : 0)]) } - })), i.length && (r.transform = new Im(i, a)), super(r) + })), i.length && (r.transform = new Wf(i, a)), super(r) } }, - Im = class extends xh { + Wf = class extends Up { constructor(e, t) { super(), this.inputs = e, this.transforms = t, this._value = null } @@ -32877,25 +32740,25 @@ _get() { let e = "", t = !0; - return Tp(this.inputs, ((n, r) => { - let i = yh(n[0]), - [a, o] = this.transforms[r](Ap.arr(i) ? i : n.map(yh)); + return Zd(this.inputs, ((n, r) => { + let i = Fp(n[0]), + [a, o] = this.transforms[r](Yd.arr(i) ? i : n.map(Fp)); e += " " + a, t = t && o })), t ? "none" : e } observerAdded(e) { - 1 == e && Tp(this.inputs, (e => Tp(e, (e => vh(e) && wh(e, this))))) + 1 == e && Zd(this.inputs, (e => Zd(e, (e => Mp(e) && Gp(e, this))))) } observerRemoved(e) { - 0 == e && Tp(this.inputs, (e => Tp(e, (e => vh(e) && Sh(e, this))))) + 0 == e && Zd(this.inputs, (e => Zd(e, (e => Mp(e) && $p(e, this))))) } eventObserved(e) { - "change" == e.type && (this._value = null), bh(this, e) + "change" == e.type && (this._value = null), Vp(this, e) } }; - cp.assign({ - batchedUpdates: Do.unstable_batchedUpdates, - createStringInterpolator: Lh, + Ad.assign({ + batchedUpdates: Xa.unstable_batchedUpdates, + createStringInterpolator: eh, colors: { transparent: 0, aliceblue: 4042850303, @@ -33049,9 +32912,9 @@ yellowgreen: 2597139199 } }); - var Om = ((e, { + var Hf = ((e, { applyAnimatedValues: t = (() => !1), - createAnimatedStyle: n = (e => new Jh(e)), + createAnimatedStyle: n = (e => new _h(e)), getComponentProps: r = (e => e) } = {}) => { let i = { @@ -33060,11 +32923,11 @@ getComponentProps: r }, a = e => { - let t = sf(e) || "Anonymous"; - return (e = Ap.str(e) ? a[e] || (a[e] = rf(e, i)) : e[of] || (e[of] = rf(e, i))).displayName = `Animated(${t})`, e + let t = Oh(e) || "Anonymous"; + return (e = Yd.str(e) ? a[e] || (a[e] = wh(e, i)) : e[Eh] || (e[Eh] = wh(e, i))).displayName = `Animated(${t})`, e }; - return Rp(e, ((t, n) => { - Ap.arr(e) && (n = sf(t)), a[n] = a(t) + return Xd(e, ((t, n) => { + Yd.arr(e) && (n = Oh(t)), a[n] = a(t) })), { animated: a } @@ -33081,32 +32944,32 @@ ...l } = t, c = Object.values(l), - u = Object.keys(l).map((t => n || e.hasAttribute(t) ? t : vm[t] || (vm[t] = t.replace(/([A-Z])/g, (e => "-" + e.toLowerCase()))))); + u = Object.keys(l).map((t => n || e.hasAttribute(t) ? t : Mf[t] || (Mf[t] = t.replace(/([A-Z])/g, (e => "-" + e.toLowerCase()))))); for (let p in void 0 !== i && (e.textContent = i), r) if (r.hasOwnProperty(p)) { var d; - let t = null == (d = r[p]) || "boolean" == typeof d || "" === d ? "" : "number" != typeof d || 0 === d || gm.test(p) || ym.hasOwnProperty(p) && ym[p] ? ("" + d).trim() : d + "px"; - gm.test(p) ? e.style.setProperty(p, t) : e.style[p] = t + let t = null == (d = r[p]) || "boolean" == typeof d || "" === d ? "" : "number" != typeof d || 0 === d || jf.test(p) || Ff.hasOwnProperty(p) && Ff[p] ? ("" + d).trim() : d + "px"; + jf.test(p) ? e.style.setProperty(p, t) : e.style[p] = t } u.forEach(((t, n) => { e.setAttribute(t, c[n]) })), void 0 !== a && (e.scrollTop = a), void 0 !== o && (e.scrollLeft = o), void 0 !== s && e.setAttribute("viewBox", s) }, - createAnimatedStyle: e => new Em(e), + createAnimatedStyle: e => new qf(e), getComponentProps: ({ scrollTop: e, scrollLeft: t, ...n }) => n }).animated; - let Cm = ms((({ + let Kf = No((({ as: e = "nav", children: t, className: n, ...r }, i) => { - let [a, o] = (0, Ee.useState)(!1), s = fs("sol-c-game-page__tabs", n), l = (0, Ee.useRef)(null), { + let [a, o] = (0, Ee.useState)(!1), s = Lo("sol-c-game-page__tabs", n), l = (0, Ee.useRef)(null), { unessentialAnimationsDisabled: c - } = Ns().reduceMotion, [u] = um((() => ({ + } = ts().reduceMotion, [u] = Pf((() => ({ from: { width: 0, left: 0, @@ -33136,23 +32999,23 @@ duration: 100 } })), [t]); - return qo.jsxs(e, { + return po.jsxs(e, { className: s, - ref: gs(l, i), + ref: jo(l, i), ...r, - children: [t, !c && qo.jsx(Om.div, { + children: [t, !c && po.jsx(Hf.div, { "aria-hidden": "true", className: "sol-c-game-page__tabs-indicator", style: u })] }) })), - Am = ms((({ + Yf = No((({ className: e, ...t }, n) => { - let r = fs("sol-c-game-page__title", e); - return qo.jsx(Ys, { + let r = Lo("sol-c-game-page__title", e); + return po.jsx(gs, { as: "h1", className: r, ref: n, @@ -33161,7 +33024,7 @@ ...t }) })), - Pm = ms((({ + Qf = No((({ as: e = "div", children: t, className: n, @@ -33169,63 +33032,63 @@ theme: i, ...a }, o) => { - let s = fs("sol-c-game-page", n); - return qo.jsxs(e, { + let s = Lo("sol-c-game-page", n); + return po.jsxs(e, { className: s, ref: o, ...a, - children: [r && qo.jsx("div", { + children: [r && po.jsx("div", { className: "sol-c-game-page__navigation", children: r - }), i ? qo.jsx(Gs, { + }), i ? po.jsx(us, { name: i, children: ({ getProps: e - }) => qo.jsx("div", { + }) => po.jsx("div", { ...e({ className: "sol-c-game-page__wrapper" }), children: t }) - }) : qo.jsx("div", { + }) : po.jsx("div", { className: "sol-c-game-page__wrapper", children: t })] }) })); - No("@layer components{.sol-c-game-switcher{inline-size:5.5rem;overflow:hidden;position:relative;z-index:1}.sol-c-game-switcher:after,.sol-c-game-switcher:before{content:\"\";display:block}.sol-c-game-switcher:before{background:var(--sol-color-surface-0);inset:0;-webkit-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cpath d='M88 88V0c0 9.1-4.68 17.58-12.4 22.42L14.98 60.51A32 32 0 0 0 0 87.6v.4h88Z'/%3E%3C/svg%3E\") bottom right/100% auto no-repeat,linear-gradient(#000,#000);mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cpath d='M88 88V0c0 9.1-4.68 17.58-12.4 22.42L14.98 60.51A32 32 0 0 0 0 87.6v.4h88Z'/%3E%3C/svg%3E\") bottom right/100% auto no-repeat,linear-gradient(#000,#000);-webkit-mask-composite:xor;mask-composite:exclude;position:absolute;z-index:-1}[dir=rtl] .sol-c-game-switcher:before{transform:scaleX(-1)}.sol-c-game-switcher:after{padding-block-start:100%}.sol-c-game-switcher__title{padding:var(--sol-size-100) var(--sol-size-050) 0}.sol-c-game-switcher__item{--sol-focus-offset:0;--_background:var(--sol-color-surface-0);align-items:center;border-radius:var(--sol-radius-4);color:var(--sol-color-interactive);cursor:var(--sol-cursor-interactive);display:flex;height:var(--sol-size-450);justify-content:center;margin:var(--sol-size-025) var(--sol-size-050);padding:var(--sol-size-075);position:relative;transition:color var(--sol-motion-250);width:var(--sol-size-450)}.sol-c-game-switcher__item:hover{color:var(--sol-color-interactive-hovered)}.sol-c-game-switcher__item:active,.sol-c-game-switcher__item[aria-current=true]:not(:hover){color:var(--sol-color-interactive-pressed)}.sol-c-game-switcher__item:after,.sol-c-game-switcher__item:before{content:\"\";display:block}.sol-c-game-switcher__item:before{background-color:var(--_background);border-radius:inherit;inset:0;opacity:0;position:absolute;transition-duration:var(--sol-motion-250);transition-property:background-color,opacity,transform;z-index:1}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-switcher__item:before{transform:scaleY(.2222222222)}}.sol-c-game-switcher__item[style*=sol-c-game-switcher-logo]:after{background:currentColor;height:var(--sol-size-300);-webkit-mask:var(--sol-c-game-switcher-logo);mask:var(--sol-c-game-switcher-logo);-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;position:relative;width:var(--sol-size-300);z-index:2}.sol-c-game-switcher__item:hover:before,.sol-c-game-switcher__item[aria-current=true]:before{opacity:1;transform:scaleY(1)}.sol-c-game-switcher__item:hover{--_background:var(--sol-color-surface-0-hovered)}.sol-c-game-switcher__item:active:before{--_background:var(--sol-color-surface-0-pressed)}.sol-c-game-switcher__item[aria-current=true]:before{--_background:var(--sol-color-surface-2)}.sol-c-game-switcher__item[aria-current=true]:hover:before{--_background:var(--sol-color-surface-2-hovered)}.sol-c-game-switcher__item[aria-current=true]:active:before{--_background:var(--sol-color-surface-2-pressed)}.sol-c-game-switcher__item:disabled,.sol-c-game-switcher__item[aria-disabled=true]{opacity:.2;pointer-events:none}.sol-c-game-switcher__fallback{position:relative;z-index:2}.sol-c-game-switcher__indicator{background:var(--sol-color-interactive-pressed);border-end-end-radius:var(--sol-radius-4);border-start-end-radius:var(--sol-radius-4);inline-size:var(--sol-border-2);inset-inline-start:0;opacity:0;position:absolute}}"); - let Tm = (0, Ee.forwardRef)((({ + eo("@layer sol.components{.sol-c-game-switcher{inline-size:5.5rem;overflow:hidden;position:relative;z-index:1}.sol-c-game-switcher:after,.sol-c-game-switcher:before{content:\"\";display:block}.sol-c-game-switcher:before{background:var(--sol-color-surface-0);inset:0;-webkit-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cpath d='M88 88V0c0 9.1-4.68 17.58-12.4 22.42L14.98 60.51A32 32 0 0 0 0 87.6v.4h88Z'/%3E%3C/svg%3E\") bottom right/100% auto no-repeat,linear-gradient(#000,#000);mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cpath d='M88 88V0c0 9.1-4.68 17.58-12.4 22.42L14.98 60.51A32 32 0 0 0 0 87.6v.4h88Z'/%3E%3C/svg%3E\") bottom right/100% auto no-repeat,linear-gradient(#000,#000);-webkit-mask-composite:xor;mask-composite:exclude;position:absolute;z-index:-1}[dir=rtl] .sol-c-game-switcher:before{transform:scaleX(-1)}.sol-c-game-switcher:after{padding-block-start:100%}.sol-c-game-switcher__title{padding:var(--sol-size-100) var(--sol-size-050) 0}.sol-c-game-switcher__item{--sol-focus-offset:0;--_background:var(--sol-color-surface-0);align-items:center;border-radius:var(--sol-radius-4);color:var(--sol-color-interactive);cursor:var(--sol-cursor-interactive);display:flex;height:var(--sol-size-450);justify-content:center;margin:var(--sol-size-025) var(--sol-size-050);padding:var(--sol-size-075);position:relative;transition:color var(--sol-motion-250);width:var(--sol-size-450)}.sol-c-game-switcher__item:hover{color:var(--sol-color-interactive-hovered)}.sol-c-game-switcher__item:active,.sol-c-game-switcher__item[aria-current=true]:not(:hover){color:var(--sol-color-interactive-pressed)}.sol-c-game-switcher__item:after,.sol-c-game-switcher__item:before{content:\"\";display:block}.sol-c-game-switcher__item:before{background-color:var(--_background);border-radius:inherit;inset:0;opacity:0;position:absolute;transition-duration:var(--sol-motion-250);transition-property:background-color,opacity,transform;z-index:1}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-switcher__item:before{transform:scaleY(.2222222222)}}.sol-c-game-switcher__item[style*=sol-c-game-switcher-logo]:after{background:currentColor;height:var(--sol-size-300);-webkit-mask:var(--sol-c-game-switcher-logo);mask:var(--sol-c-game-switcher-logo);-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;position:relative;width:var(--sol-size-300);z-index:2}.sol-c-game-switcher__item:hover:before,.sol-c-game-switcher__item[aria-current=true]:before{opacity:1;transform:scaleY(1)}.sol-c-game-switcher__item:hover{--_background:var(--sol-color-surface-0-hovered)}.sol-c-game-switcher__item:active:before{--_background:var(--sol-color-surface-0-pressed)}.sol-c-game-switcher__item[aria-current=true]:before{--_background:var(--sol-color-surface-2)}.sol-c-game-switcher__item[aria-current=true]:hover:before{--_background:var(--sol-color-surface-2-hovered)}.sol-c-game-switcher__item[aria-current=true]:active:before{--_background:var(--sol-color-surface-2-pressed)}.sol-c-game-switcher__item:disabled,.sol-c-game-switcher__item[aria-disabled=true]{opacity:.2;pointer-events:none}.sol-c-game-switcher__fallback{position:relative;z-index:2}.sol-c-game-switcher__indicator{background:var(--sol-color-interactive-pressed);border-end-end-radius:var(--sol-radius-4);border-start-end-radius:var(--sol-radius-4);inline-size:var(--sol-border-2);inset-inline-start:0;opacity:0;position:absolute}}"); + let Zf = (0, Ee.forwardRef)((({ active: e, className: t, logo: n, name: r, ...i }, a) => { - let o = fs("sol-c-game-switcher__item", t), - s = Os({ + let o = Lo("sol-c-game-switcher__item", t), + s = Ko({ src: n }); - return qo.jsxs(qs, { + return po.jsxs(hs, { "aria-current": e ? "true" : void 0, className: o, ref: a, ...i, style: { - "--sol-c-game-switcher-logo": n && s === Es ? `url("${n}")` : void 0 + "--sol-c-game-switcher-logo": n && s === Wo ? `url("${n}")` : void 0 }, - children: [(!n || s === Is) && qo.jsx(Ys, { + children: [(!n || s === Ho) && po.jsx(gs, { "aria-hidden": "true", className: "sol-c-game-switcher__fallback", offset: !0, variant: "heading-l", children: r.slice(0, 2).toLocaleUpperCase() - }), qo.jsx("span", { + }), po.jsx("span", { className: "sol-u-hide-visually", children: r })] }) })), - Rm = ms((({ + Xf = No((({ as: e = "nav", children: t, className: n, @@ -33234,11 +33097,11 @@ title: a, ...o }, s) => { - let l = ws(r) + "-label", - c = fs("sol-c-game-switcher", n), + let l = $o(r) + "-label", + c = Lo("sol-c-game-switcher", n), u = (0, Ee.useRef)(null), [d, p] = (0, Ee.useState)(!1), - [h] = um((() => ({ + [h] = Pf((() => ({ from: { height: 0, top: 0, @@ -33259,12 +33122,12 @@ })) } })), [t]); - return qo.jsxs(e, { + return po.jsxs(e, { "aria-labelledby": a ? l : void 0, className: c, - ref: gs(u, s), + ref: jo(u, s), ...o, - children: [a && qo.jsx(Ys, { + children: [a && po.jsx(gs, { align: "center", className: "sol-c-game-switcher__title", id: l, @@ -33272,9 +33135,9 @@ transform: "uppercase", truncate: !0, children: a - }), i?.map(((e, t) => e.name && qo.jsx(Tm, { + }), i?.map(((e, t) => e.name && po.jsx(Zf, { ...e - }, t))), t, qo.jsx(Om.div, { + }, t))), t, po.jsx(Hf.div, { "aria-hidden": "true", className: "sol-c-game-switcher__indicator", style: h @@ -33282,8 +33145,8 @@ }) })); - function Dm() { - return (Dm = Object.assign ? Object.assign.bind() : function(e) { + function Jf() { + return (Jf = 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]) @@ -33291,13 +33154,13 @@ return e }).apply(this, arguments) } - No('@layer components{.sol-c-input{--_background-color:var(--sol-color-surface-0);--_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(--_background-color);border-radius:var(--sol-radius-4);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);z-index:3}.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:2}.sol-c-input__label:before{background:var(--_background-color);content:"";inset:calc((var(--_label-offset) - var(--_border-width))*-1) 0;opacity:.8;position:absolute;z-index:-1}.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__icon--resize{bottom:var(--sol-size-025);color:var(--sol-color-primary-6);height:var(--sol-size-075);margin:0;position:absolute;right:calc(var(--sol-size-075)*-1);width:var(--sol-size-075)}.sol-c-input__prefix,.sol-c-input__suffix{align-items:center;display:flex;min-block-size:var(--_block-size);position:relative}.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)}}'); - var Lm = function(e, t) { + eo('@layer sol.components{.sol-c-input{--_background-color:var(--sol-color-surface-0);--_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(--_background-color);border-radius:var(--sol-radius-4);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);z-index:3}.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:var(--sol-text-label-m);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:2}.sol-c-input__label:before{background:var(--_background-color);content:"";inset:calc((var(--_label-offset) - var(--_border-width))*-1) 0;opacity:.8;position:absolute;z-index:-1}.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:calc(var(--_block-size)/2 - var(--sol-text-label-m-line-height)/2)}.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__icon--resize{bottom:var(--sol-size-025);color:var(--sol-color-primary-6);height:var(--sol-size-075);margin:0;position:absolute;right:calc(var(--sol-size-075)*-1);width:var(--sol-size-075)}.sol-c-input__prefix,.sol-c-input__suffix{align-items:center;display:flex;min-block-size:var(--_block-size);position:relative}.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)}}'); + var em = function(e, t) { "function" != typeof e ? e.current = t : e(t) }, - Nm = function() {}, - Mm = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], - jm = Ee.forwardRef((function(e, t) { + tm = function() {}, + nm = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], + rm = Ee.forwardRef((function(e, t) { e.cacheMeasurements, e.maxRows, e.minRows; var n = e.onChange; e.onHeightChange; @@ -33309,20 +33172,20 @@ if (t.indexOf(r) >= 0) continue; n[r] = e[r] } return n - }(e, Mm); + }(e, nm); r.value; var i = function(e, t) { var n = (0, Ee.useRef)(); return (0, Ee.useCallback)((function(r) { - e.current = r, n.current && Lm(n.current, null), n.current = t, t && Lm(t, r) + e.current = r, n.current && em(n.current, null), n.current = t, t && em(t, r) }), [t]) }(Ee.useRef(null), t); - return Ee.useRef(0), Ee.useRef(), Ee.createElement("textarea", Dm({}, r, { - onChange: void 0 === n ? Nm : n, + return Ee.useRef(0), Ee.useRef(), Ee.createElement("textarea", Jf({}, r, { + onChange: void 0 === n ? tm : n, ref: i })) })); - let Fm = (0, Ee.forwardRef)((({ + let im = (0, Ee.forwardRef)((({ as: e, className: t, id: n, @@ -33344,10 +33207,10 @@ }, y) => { let _ = (0, Ee.useRef)(null), b = (0, Ee.useId)(), - x = Yd(), + x = gd(), [k, w] = (0, Ee.useState)(!1), S = x?.inputId ?? n ?? b, - E = Vs(y, _); + E = os(y, _); (0, Ee.useLayoutEffect)((() => { x && _.current && (x.setInputRef(_.current), x.setInputId(S), null != a && x.setIsDisabled(a), null != o && x.setIsInvalid(o), null != s && x.setIsRequired(s), "button" === e && x.setLabelElementType("span")) }), [e, a, x, S, o, s]), (0, Ee.useEffect)((() => { @@ -33357,24 +33220,24 @@ return e?.addEventListener("submit", t), () => e?.removeEventListener("submit", t) } }), [c]); - let I = x?.isDisabled ?? a, - O = x?.isInvalid ?? o, + let O = x?.isDisabled ?? a, + I = x?.isInvalid ?? o, C = x?.isRequired ?? s, A = x?.getDescribedby(r) ?? r, P = x?.getLabelledby(i) ?? i, - T = (0, Ee.useMemo)((() => x ? qo.jsxs(cl, { + T = (0, Ee.useMemo)((() => x ? po.jsxs(Ps, { align: "baseline", as: x.labelElementType, className: "sol-c-input__label", gap: "025", ...x.labelProps, - children: [qo.jsx(Ys, { + children: [po.jsx(gs, { as: "span", className: "sol-c-input__label-text", color: "foreground-weak", truncate: !0, children: x.label - }), x.necessityIndicator && qo.jsxs(Ys, { + }), x.necessityIndicator && po.jsxs(gs, { "aria-hidden": !!C || void 0, as: "span", className: "sol-c-input__label-indicator", @@ -33383,27 +33246,27 @@ children: ["(", x.necessityIndicator, ")"] })] }) : null), [x, C]), - R = (0, Ee.useMemo)((() => "password" === c ? qo.jsxs(qo.Fragment, { - children: [qo.jsx(el, { + R = (0, Ee.useMemo)((() => "password" === c ? po.jsxs(po.Fragment, { + children: [po.jsx(xs, { "aria-label": k ? m : f, - color: O ? "negative" : void 0, - icon: k ? cs : ls, + color: I ? "negative" : void 0, + icon: k ? Ao : Co, onClick: () => w(!k), size: "small", variant: "plain" }), h] - }) : h), [m, O, k, f, h, c]), - D = "select" === e ? ns : u, - L = fs("sol-c-input", D && "sol-c-input--has-end-icon", d && "sol-c-input--has-start-icon", I && "sol-c-input--disabled", O && "sol-c-input--invalid", C && "sol-c-input--required", g?.className), - N = fs("sol-c-input__element", t), - M = (0, Ee.createElement)(e ? "textarea" === e ? jm : e : "input", { + }) : h), [m, I, k, f, h, c]), + D = "select" === e ? ko : u, + L = Lo("sol-c-input", D && "sol-c-input--has-end-icon", d && "sol-c-input--has-start-icon", O && "sol-c-input--disabled", I && "sol-c-input--invalid", C && "sol-c-input--required", g?.className), + N = Lo("sol-c-input__element", t), + j = (0, Ee.createElement)(e ? "textarea" === e ? rm : e : "input", { "aria-describedby": A, "aria-labelledby": P, "aria-required": !!C || void 0, - "aria-invalid": !!O || void 0, + "aria-invalid": !!I || void 0, autoComplete: "password" === c ? "off" : void 0, className: N, - disabled: I, + disabled: O, id: S, placeholder: l, "data-placeholder": l, @@ -33411,32 +33274,32 @@ type: "password" === c && k ? "text" : c, ...v }); - return qo.jsxs("div", { + return po.jsxs("div", { ...g, className: L, - children: [p && qo.jsx(Ys, { + children: [p && po.jsx(gs, { className: "sol-c-input__prefix", color: "foreground-weak", variant: "label-m", children: p - }), p && d && qo.jsx("span", { + }), p && d && po.jsx("span", { "aria-hidden": !0, className: "sol-c-input__separator" - }), d && qo.jsx(Ks, { + }), d && po.jsx(ms, { className: "sol-c-input__icon sol-c-input__icon--start", source: d - }), x && x.label && "floating" === x.labelType ? qo.jsxs("div", { + }), x && x.label && "floating" === x.labelType ? po.jsxs("div", { className: "sol-c-input__floating", - children: [T, M, "textarea" === e && qo.jsx(ss, { + children: [T, j, "textarea" === e && po.jsx(Io, { className: "sol-c-input__icon sol-c-input__icon--resize" })] - }) : M, D && qo.jsx(Ks, { + }) : j, D && po.jsx(ms, { className: "sol-c-input__icon sol-c-input__icon--end", source: D - }), D && R && qo.jsx("span", { + }), D && R && po.jsx("span", { "aria-hidden": !0, className: "sol-c-input__separator" - }), R && qo.jsx(Ys, { + }), R && po.jsx(gs, { className: "sol-c-input__suffix", color: "foreground-weak", variant: "label-m", @@ -33444,8 +33307,8 @@ })] }) })); - No("@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 zm = ms((({ + eo("@layer sol.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 am = No((({ children: e, className: t, external: n, @@ -33454,38 +33317,38 @@ inherit: a, ...o }, s) => { - let l = fs("sol-c-link", n && "sol-c-link--external", a && "sol-c-link--inherit", t); - return qo.jsxs($s, { + let l = Lo("sol-c-link", n && "sol-c-link--external", a && "sol-c-link--inherit", t); + return po.jsxs(ps, { className: l, external: n, ref: s, ...o, - children: [i && qo.jsx(Ks, { + children: [i && po.jsx(ms, { className: "sol-c-link__icon sol-c-link__icon--start", source: i - }), e, r && qo.jsxs("span", { + }), e, r && po.jsxs("span", { className: "sol-c-link__orphan", - children: ["\ufeff", qo.jsx(Ks, { + children: ["\ufeff", po.jsx(ms, { className: "sol-c-link__icon sol-c-link__icon--end", source: r })] })] }) })); - No('@layer components{.sol-c-listbox{--_background:var(--sol-color-surface-2);--_divider-width:var(--sol-border-1);--_divider-color:var(--sol-color-surface-3);background:var(--_background);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-050);color:var(--sol-color-foreground);inline-size:max-content;max-block-size:var(--sol-c-listbox-available-height,18rem);max-block-size:min(18rem,var(--sol-c-listbox-available-height,0px));overflow:auto}.sol-c-listbox:focus,.sol-c-listbox:focus-visible{outline:none}.sol-c-listbox,[data-sol-listbox-overlay]{z-index:var(--sol-z-menu)}.sol-c-listbox__group:not(:last-child),.sol-c-listbox__item:not(:last-child):after{border-block-end:var(--_divider-width) solid var(--_divider-color)}.sol-c-listbox__label{padding:var(--sol-size-075) var(--sol-size-100)}.sol-c-listbox__item{--_foreground:#0000;--sol-focus-offset:calc(var(--sol-focus-width)*-1);align-items:center;border-radius:var(--sol-radius-4);cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-050);margin:0 var(--sol-size-050);min-block-size:var(--sol-size-300);min-inline-size:0;padding:var(--sol-size-025) var(--sol-size-050);position:relative;user-select:none;z-index:1}.sol-c-listbox__item:after,.sol-c-listbox__item:before{content:"";display:block;inset:0 calc(var(--sol-size-050)*-1);position:absolute;z-index:-1}.sol-c-listbox__item:before{background:var(--_background);border-inline-start:var(--sol-border-2) solid var(--_foreground);transition:background var(--sol-motion-250)}.sol-c-listbox__item:disabled,.sol-c-listbox__item[aria-disabled=true]{pointer-events:none}.sol-c-listbox__item:disabled>*,.sol-c-listbox__item[aria-disabled=true]>*{opacity:.4}.sol-c-listbox__item:disabled:focus,.sol-c-listbox__item:disabled:focus-visible,.sol-c-listbox__item[aria-disabled=true]:focus,.sol-c-listbox__item[aria-disabled=true]:focus-visible{outline:none}.sol-c-listbox__item:hover{--_background:var(--sol-color-surface-2-hovered)}.sol-c-listbox__item:active{--_background:var(--sol-color-surface-2-pressed)}.sol-c-listbox__item[aria-selected=true]{--_background:var(--sol-color-surface-3);--_foreground:var(--sol-color-interactive)}.sol-c-listbox__item[aria-selected=true]:hover{--_background:var(--sol-color-surface-3-hovered);--_foreground:var(--sol-color-interactive-hovered)}.sol-c-listbox__item[aria-selected=true]:active{--_background:var(--sol-color-surface-3-pressed);--_foreground:var(--sol-color-interactive-pressed)}.sol-c-listbox__icon{--sol-c-icon-size:var(--sol-size-100);margin-inline-start:auto}}'); - let Vm = { + eo('@layer sol.components{.sol-c-listbox{--_background:var(--sol-color-surface-2);--_divider-width:var(--sol-border-1);--_divider-color:var(--sol-color-surface-3);background:var(--_background);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-050);color:var(--sol-color-foreground);inline-size:max-content;max-block-size:var(--sol-c-listbox-available-height,18rem);max-block-size:min(18rem,var(--sol-c-listbox-available-height,0px));overflow:auto}.sol-c-listbox:focus,.sol-c-listbox:focus-visible{outline:none}.sol-c-listbox,[data-sol-listbox-overlay]{z-index:var(--sol-z-menu)}.sol-c-listbox__group:not(:last-child),.sol-c-listbox__item:not(:last-child):after{border-block-end:var(--_divider-width) solid var(--_divider-color)}.sol-c-listbox__label{padding:var(--sol-size-075) var(--sol-size-100)}.sol-c-listbox__item{--_foreground:#0000;--sol-focus-offset:calc(var(--sol-focus-width)*-1);align-items:center;border-radius:var(--sol-radius-4);cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-050);margin:0 var(--sol-size-050);min-block-size:var(--sol-size-300);min-inline-size:0;padding:var(--sol-size-025) var(--sol-size-050);position:relative;user-select:none;z-index:1}.sol-c-listbox__item:after,.sol-c-listbox__item:before{content:"";display:block;inset:0 calc(var(--sol-size-050)*-1);position:absolute;z-index:-1}.sol-c-listbox__item:before{background:var(--_background);border-inline-start:var(--sol-border-2) solid var(--_foreground);transition:background var(--sol-motion-250)}.sol-c-listbox__item:disabled,.sol-c-listbox__item[aria-disabled=true]{pointer-events:none}.sol-c-listbox__item:disabled>*,.sol-c-listbox__item[aria-disabled=true]>*{opacity:.4}.sol-c-listbox__item:disabled:focus,.sol-c-listbox__item:disabled:focus-visible,.sol-c-listbox__item[aria-disabled=true]:focus,.sol-c-listbox__item[aria-disabled=true]:focus-visible{outline:none}.sol-c-listbox__item:hover{--_background:var(--sol-color-surface-2-hovered)}.sol-c-listbox__item:active{--_background:var(--sol-color-surface-2-pressed)}.sol-c-listbox__item[aria-selected=true]{--_background:var(--sol-color-surface-3);--_foreground:var(--sol-color-interactive)}.sol-c-listbox__item[aria-selected=true]:hover{--_background:var(--sol-color-surface-3-hovered);--_foreground:var(--sol-color-interactive-hovered)}.sol-c-listbox__item[aria-selected=true]:active{--_background:var(--sol-color-surface-3-pressed);--_foreground:var(--sol-color-interactive-pressed)}.sol-c-listbox__icon{--sol-c-icon-size:var(--sol-size-100);margin-inline-start:auto}}'); + let om = { none: 0, small: 8, medium: 12, large: 16 }, - Um = (0, Ee.createContext)(null), - Bm = () => { - let e = (0, Ee.useContext)(Um); + sm = (0, Ee.createContext)(null), + lm = () => { + let e = (0, Ee.useContext)(sm); if (!e) throw Error("Listbox components must be wrapped in "); return e }, - Gm = ((0, Ee.forwardRef)((({ + cm = ((0, Ee.forwardRef)((({ children: e, className: t, label: n, @@ -33494,24 +33357,24 @@ let a = (0, Ee.useId)(), { isMounted: o - } = Bm(); - if (!o) return qo.jsx(qo.Fragment, { + } = lm(); + if (!o) return po.jsx(po.Fragment, { children: e }); - let s = fs("sol-c-listbox__group", t); - return qo.jsxs("li", { + let s = Lo("sol-c-listbox__group", t); + return po.jsxs("li", { className: s, ref: i, role: "presentation", ...r, - children: [qo.jsx(Ys, { + children: [po.jsx(gs, { id: a, "aria-hidden": "true", className: "sol-c-listbox__label", color: "foreground-highlight", variant: "body-s-bold", children: n - }), qo.jsx("ul", { + }), po.jsx("ul", { "aria-labelledby": a, className: "sol-c-listbox__items", role: "group", @@ -33526,7 +33389,7 @@ getItemProps: i, onSelect: a, ...o - }, s) => qo.jsxs("li", { + }, s) => po.jsxs("li", { "aria-selected": r, "aria-disabled": n, ref: s, @@ -33542,20 +33405,20 @@ } }), ...o, - children: [qo.jsx(Ys, { + children: [po.jsx(gs, { as: "span", className: "sol-c-listbox__content", color: "foreground", truncate: !0, variant: "label-m", children: e - }), r && qo.jsx(Ks, { + }), r && po.jsx(ms, { className: "sol-c-listbox__icon", color: "foreground", - source: Yo + source: mo })] }))))), - Wm = (0, Ee.forwardRef)((({ + um = (0, Ee.forwardRef)((({ children: e, className: t, disabled: n = !1, @@ -33567,7 +33430,7 @@ let { ref: l, index: c - } = _u({ + } = Vc({ label: n ? null : i }), { getItemProps: u, @@ -33580,22 +33443,22 @@ setLabel: v, allowEmpty: y, isMounted: _ - } = Bm(); - Cs((() => { + } = lm(); + Vo((() => { a === m && c !== p && (h(c), v(e ?? i)) }), [e, c, m, i, p, v, h, a]); let b = (0, Ee.useCallback)((() => { n || (c === p && y ? (h(null), g(""), v("")) : (h(c), g(a), v(e ?? i)), f(!1)) }), [y, e, n, c, i, p, v, f, h, g, a]), - x = tu([s, l]); - if (!_) return qo.jsx("li", { + x = kc([s, l]); + if (!_) return po.jsx("li", { ref: x, children: i }); let k = !n && c === p, w = !n && c === d, - S = fs("sol-c-listbox__item", w && "sol-c-listbox__item--active", t); - return qo.jsx(Gm, { + S = Lo("sol-c-listbox__item", w && "sol-c-listbox__item--active", t); + return po.jsx(cm, { className: S, ref: x, active: w, @@ -33607,7 +33470,7 @@ children: e ?? i }) })), - $m = (0, Ee.forwardRef)((({ + dm = (0, Ee.forwardRef)((({ allowEmpty: e, anchor: t, children: n, @@ -33636,21 +33499,21 @@ defaultValue: o, onValueChange: s } = {}) => { - let [l, c] = _s({ + let [l, c] = zo({ value: a, defaultValue: o, onChange: s - }), [u, d] = (0, Ee.useState)(!1), [p, h] = (0, Ee.useState)(null), [f, m] = (0, Ee.useState)(null), [g, v] = (0, Ee.useState)(null), y = (0, Ee.useRef)([]), _ = (0, Ee.useRef)([]), b = pd({ + }), [u, d] = (0, Ee.useState)(!1), [p, h] = (0, Ee.useState)(null), [f, m] = (0, Ee.useState)(null), [g, v] = (0, Ee.useState)(null), y = (0, Ee.useRef)([]), _ = (0, Ee.useRef)([]), b = Du({ open: u, onOpenChange: d, placement: i, - whileElementsMounted: Dc, - middleware: [ic({ - mainAxis: Vm[r], + whileElementsMounted: ec, + middleware: [El({ + mainAxis: om[r], alignmentAxis: 0 - }), ac({ - padding: Vm[r] - }), oc({ + }), Ol({ + padding: om[r] + }), Il({ apply({ availableHeight: e, availableWidth: t, @@ -33662,7 +33525,7 @@ inlineSize: `${r.reference.width}px` }) }, - padding: Vm[r] + padding: om[r] })], transform: !1 }), { @@ -33676,21 +33539,21 @@ }), [t, k]), (0, Ee.useEffect)((() => { e && !l && (h(null), m(null), v(null)) }), [e, l]); - let w = fd([sd(x), dd(x), xd(x, { + let w = Nu([Cu(x), Ru(x), Bu(x, { role: "listbox" - }), bd(x, { + }), Uu(x, { listRef: y, activeIndex: p, selectedIndex: f, onNavigate: h, loop: n - }), wd(x, { + }), $u(x, { listRef: _, activeIndex: p, selectedIndex: f, onMatch: h })]), - S = kd(x); + S = Gu(x); return (0, Ee.useMemo)((() => ({ isOpen: u, setIsOpen: d, @@ -33733,40 +33596,40 @@ getReferenceProps: w, getFloatingProps: S, isOpen: E, - value: I, - label: O, + value: O, + label: I, isMounted: C, status: A, elementsRef: P, labelsRef: T } = y, - R = tu([v, b.setReference, h.ref]), + R = kc([v, b.setReference, h.ref]), { name: D - } = Ws(), - L = fs("sol-c-listbox", "sol-u-transition-floating", r); - return qo.jsx(yu, { + } = ds(), + L = Lo("sol-c-listbox", "sol-u-transition-floating", r); + return po.jsx(zc, { elementsRef: P, labelsRef: T, - children: qo.jsxs(Um.Provider, { + children: po.jsxs(sm.Provider, { value: y, children: [(0, Ee.cloneElement)("function" == typeof h ? h({ isOpen: E, - label: O, - value: I + label: I, + value: O }) : h, w({ ref: R - }), h.props?.children || O || m), C ? qo.jsx(ed, { - children: qo.jsx(zd, { + }), h.props?.children || I || m), C ? po.jsx(xu, { + children: po.jsx(od, { condition: u, - wrap: e => qo.jsx(ad, { + wrap: e => po.jsx(Ou, { "data-sol-listbox-overlay": !0, children: e }), - children: qo.jsx(rd, { + children: po.jsx(Su, { context: x, modal: !1, - children: qo.jsx("ul", { + children: po.jsx("ul", { className: L, "data-sol-placement": k, "data-sol-status": A, @@ -33782,19 +33645,19 @@ }) }) }) - }) : qo.jsx("ul", { + }) : po.jsx("ul", { hidden: !0, children: n - }), o && qo.jsx("input", { + }), o && po.jsx("input", { type: "hidden", name: o, - value: I + value: O })] }) }) })); - No("@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 qm = { + eo("@layer sol.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 pm = { v: "5.9.0", fr: 29.9700012207031, ip: 0, @@ -42852,20 +42715,20 @@ }], markers: [] }; - let Hm = ms((({ + let hm = No((({ as: e = "div", children: t, handleAnimWipeTrigger: n, className: r, ...i }, a) => { - let o = fs("sol-c-loading", r); + let o = Lo("sol-c-loading", r); n?.(); - let s = zs(qm, { + let s = as(pm, { loop: !1, forcePlay: !0 }); - return qo.jsxs(cl, { + return po.jsxs(Ps, { align: "center", className: o, gap: "150", @@ -42873,9 +42736,9 @@ vertical: !0, ref: a, ...i, - children: [qo.jsx(s, { + children: [po.jsx(s, { className: "sol-c-loading__animation" - }), t && qo.jsx(Ys, { + }), t && po.jsx(gs, { align: "center", className: "sol-c-loading__text", variant: "body-l", @@ -42883,20 +42746,20 @@ })] }) })); - No("@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 Km = { + eo("@layer sol.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 fm = { none: 0, small: 8, medium: 12, large: 16 }, - Ym = (0, Ee.createContext)(null), - Qm = () => { - let e = (0, Ee.useContext)(Ym); + mm = (0, Ee.createContext)(null), + gm = () => { + let e = (0, Ee.useContext)(mm); if (!e) throw Error("Menu components must be wrapped in "); return e }, - Zm = (0, Ee.forwardRef)((({ + vm = (0, Ee.forwardRef)((({ className: e, close: t = !0, disabled: n, @@ -42907,21 +42770,21 @@ let { ref: s, index: l - } = _u({ + } = Vc({ label: n ? null : r }), { getItemProps: c, activeIndex: u, setIsOpen: d - } = Qm(), p = fs("sol-c-menu__item", e), h = (0, Ee.useCallback)((e => { + } = gm(), p = Lo("sol-c-menu__item", e), h = (0, Ee.useCallback)((e => { t && d(!1), i && i(e) }), [t, i, d]); - return qo.jsx(el, { + return po.jsx(xs, { align: "start", className: p, disabled: n, fullWidth: !0, - ref: tu([s, o]), + ref: kc([s, o]), role: "menuitem", tabIndex: n || l !== u ? -1 : 0, variant: "plain", @@ -42932,7 +42795,7 @@ children: r }) })), - Xm = ms((({ + ym = No((({ className: e, close: t = !1, onClick: n, @@ -42940,33 +42803,33 @@ title: i, ...a }, o) => { - let s = fs("sol-c-menu__title", e), + let s = Lo("sol-c-menu__title", e), { setIsOpen: l - } = Qm(), + } = gm(), c = (0, Ee.useCallback)((e => { t && l(!1), n && n(e) }), [t, n, l]); - return qo.jsxs(cl, { + return po.jsxs(Ps, { "aria-disabled": "true", className: s, onClick: c, ref: o, vertical: !0, ...a, - children: [qo.jsx(Ys, { + children: [po.jsx(gs, { offset: !0, variant: "emphasis-m", truncate: 1, children: i - }), r && qo.jsx(Ys, { + }), r && po.jsx(gs, { color: "foreground-weak", variant: "body-xs", children: r })] }) })), - Jm = (0, Ee.forwardRef)((({ + _m = (0, Ee.forwardRef)((({ anchor: e, children: t, className: n, @@ -42984,15 +42847,15 @@ offset: n = "small", placement: r } = {}) => { - let [i, a] = (0, Ee.useState)(null), [o, s] = (0, Ee.useState)(!1), l = (0, Ee.useRef)([]), c = (0, Ee.useRef)([]), u = pd({ + let [i, a] = (0, Ee.useState)(null), [o, s] = (0, Ee.useState)(!1), l = (0, Ee.useRef)([]), c = (0, Ee.useRef)([]), u = Du({ open: o, onOpenChange: s, placement: r, - whileElementsMounted: Dc, - middleware: [ic({ - mainAxis: Km[n], + whileElementsMounted: ec, + middleware: [El({ + mainAxis: fm[n], alignmentAxis: 0 - }), oc({ + }), Il({ apply({ availableWidth: e, availableHeight: t, @@ -43004,7 +42867,7 @@ maxBlockSize: `${t}px` }) }, - padding: Km[n] + padding: fm[n] })], transform: !1 }), { @@ -43016,20 +42879,20 @@ (0, Ee.useEffect)((() => { e && p(e) }), [e, p]); - let h = fd([sd(d), dd(d), bd(d, { + let h = Nu([Cu(d), Ru(d), Uu(d, { activeIndex: i, listRef: l, loop: t, onNavigate: a - }), wd(d, { + }), $u(d, { activeIndex: i, enabled: o, listRef: c, onMatch: a - }), xd(d, { + }), Bu(d, { role: "menu" })]), - f = kd(d); + f = Gu(d); return (0, Ee.useMemo)((() => ({ isOpen: o, setIsOpen: s, @@ -43059,33 +42922,33 @@ elementsRef: x, labelsRef: k } = d, - w = tu([h.setReference, l.ref, u]), + w = kc([h.setReference, l.ref, u]), { name: S - } = Ws(), - E = fs("sol-c-menu sol-u-transition-floating", n); - return qo.jsx(yu, { + } = ds(), + E = Lo("sol-c-menu sol-u-transition-floating", n); + return po.jsx(zc, { elementsRef: x, labelsRef: k, - children: qo.jsxs(Ym.Provider, { + children: po.jsxs(mm.Provider, { value: d, children: [(0, Ee.cloneElement)("function" == typeof l ? l({ isOpen: y }) : l, g({ ref: w - })), _ && qo.jsx(ed, { - children: qo.jsx(zd, { + })), _ && po.jsx(xu, { + children: po.jsx(od, { condition: i, - wrap: e => qo.jsx(ad, { + wrap: e => po.jsx(Ou, { "data-sol-menu-overlay": !0, children: e }), - children: qo.jsx(rd, { + children: po.jsx(Su, { context: f, visuallyHiddenDismiss: !0, initialFocus: -1, modal: !1, - children: qo.jsx("div", { + children: po.jsx("div", { className: E, "data-sol-placement": m, "data-sol-status": b, @@ -43104,20 +42967,20 @@ }) }) })); - No("@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 eg = { + eo("@layer sol.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 bm = { none: 0, small: 8, medium: 12, large: 16 }, - tg = (0, Ee.createContext)(null), - ng = () => { - let e = (0, Ee.useContext)(tg); + xm = (0, Ee.createContext)(null), + km = () => { + let e = (0, Ee.useContext)(xm); if (!e) throw Error("Popover components must be wrapped in "); return e }, - rg = (ms((({ + wm = (No((({ as: e = "p", id: t, onClick: n, @@ -43125,13 +42988,13 @@ }, i) => { let { setDescriptionId: a - } = ng(), o = ws(t); - return Cs((() => (a(o), () => a(void 0))), [o, a]), qo.jsx(e, { + } = km(), o = $o(t); + return Vo((() => (a(o), () => a(void 0))), [o, a]), po.jsx(e, { id: o, ref: i, ...r }) - })), ms((({ + })), No((({ as: e = "p", id: t, onClick: n, @@ -43139,14 +43002,14 @@ }, i) => { let { setLabelId: a - } = ng(), o = ws(t); - return Cs((() => (a(o), () => a(void 0))), [o, a]), qo.jsx(e, { + } = km(), o = $o(t); + return Vo((() => (a(o), () => a(void 0))), [o, a]), po.jsx(e, { id: o, ref: i, ...r }) }))), - ig = (0, Ee.forwardRef)((({ + Sm = (0, Ee.forwardRef)((({ anchor: e, children: t, className: n, @@ -43173,18 +43036,18 @@ onOpenChange: i, placement: a } = {}) => { - let [o, s] = (0, Ee.useState)(t), [l, c] = (0, Ee.useState)(), [u, d] = (0, Ee.useState)(), p = r ?? o, h = i ?? s, f = Tu(), m = pd({ + let [o, s] = (0, Ee.useState)(t), [l, c] = (0, Ee.useState)(), [u, d] = (0, Ee.useState)(), p = r ?? o, h = i ?? s, f = Xc(), m = Du({ open: p, onOpenChange: h, nodeId: f, placement: a, - whileElementsMounted: Dc, - middleware: [ic({ - mainAxis: eg[n], + whileElementsMounted: ec, + middleware: [El({ + mainAxis: bm[n], alignmentAxis: 0 - }), ac({ - padding: eg[n] - }), oc({ + }), Ol({ + padding: bm[n] + }), Il({ apply({ availableHeight: e, elements: t @@ -43193,7 +43056,7 @@ maxBlockSize: `${e}px` }) }, - padding: eg[n] + padding: bm[n] })], transform: !1 }), { @@ -43205,11 +43068,11 @@ (0, Ee.useEffect)((() => { e && v(e) }), [e, v]); - let y = fd([sd(g), dd(g, { + let y = Nu([Cu(g), Ru(g, { bubbles: !1, outsidePress: e => !e.target.closest("[data-sol-popover-ignore]") - }), xd(g)]), - _ = kd(g); + }), Bu(g)]), + _ = Gu(g); return (0, Ee.useMemo)((() => ({ isOpen: p, setIsOpen: h, @@ -43238,37 +43101,37 @@ getReferenceProps: w, getFloatingProps: S, isMounted: E, - isOpen: I, - setIsOpen: O, + isOpen: O, + setIsOpen: I, status: C, labelId: A, descriptionId: P, nodeId: T } = y, - R = tu([b.setReference, (m ?? t).ref, v]), + R = kc([b.setReference, (m ?? t).ref, v]), { name: D - } = Ws(), - L = fs("sol-c-popover sol-u-transition-floating", o && "sol-c-popover--full-width", n); - return qo.jsx(tg.Provider, { + } = ds(), + L = Lo("sol-c-popover sol-u-transition-floating", o && "sol-c-popover--full-width", n); + return po.jsx(xm.Provider, { value: y, - children: qo.jsxs(Ru, { + children: po.jsxs(Jc, { id: T, children: [(0, Ee.cloneElement)("function" == typeof m ? m({ - isOpen: I + isOpen: O }) : m, w({ ref: R - })), E && qo.jsx(ed, { - children: qo.jsx(zd, { + })), E && po.jsx(xu, { + children: po.jsx(od, { condition: d, - wrap: e => qo.jsx(ad, { + wrap: e => po.jsx(Ou, { "data-sol-popover-overlay": !0, children: e }), - children: qo.jsx(rd, { + children: po.jsx(Su, { context: x, modal: s, - children: qo.jsxs("div", { + children: po.jsxs("div", { "aria-labelledby": A, "aria-describedby": P, className: L, @@ -43281,33 +43144,33 @@ ...h }, ...S(g), - children: [(r || f) && qo.jsxs(cl, { + children: [(r || f) && po.jsxs(Ps, { align: "start", className: "sol-c-popover__header", gap: "050", justify: "end", - children: [f && qo.jsx(Ys, { - as: rg, + children: [f && po.jsx(gs, { + as: wm, className: "sol-c-popover__title", color: "foreground", offset: !0, variant: "emphasis-m", children: f - }), r && qo.jsx(el, { + }), r && po.jsx(xs, { "aria-label": "string" == typeof r ? r : "Close", className: "sol-c-popover__close", - icon: Jo, - onClick: () => O(!1), + icon: _o, + onClick: () => I(!1), size: "small", variant: "monochrome" })] - }), qo.jsx(Ys, { + }), po.jsx(gs, { className: "sol-c-popover__content", color: "foreground-weak", variant: "body-s", multiline: !0, children: t - }), a && qo.jsx(cl, { + }), a && po.jsx(Ps, { align: "center", className: "sol-c-popover__footer", gap: "100", @@ -43321,55 +43184,55 @@ }) }) })), - ag = (0, Ee.forwardRef)(((e, t) => null == Au() ? qo.jsx(Du, { - children: qo.jsx(ig, { + Em = (0, Ee.forwardRef)(((e, t) => null == Qc() ? po.jsx(eu, { + children: po.jsx(Sm, { ref: t, ...e }) - }) : qo.jsx(ig, { + }) : po.jsx(Sm, { ref: t, ...e }))); - No("@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 og = ({ + eo("@layer sol.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 Om = ({ className: e, ...t }) => { - let n = fs("sol-c-rsi-logo", e); - return qo.jsxs("svg", { + let n = Lo("sol-c-rsi-logo", e); + return po.jsxs("svg", { className: n, xmlns: "http://www.w3.org/2000/svg", height: "16", fill: "currentColor", viewBox: "0 0 216 80", ...t, - children: [qo.jsx("path", { + children: [po.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" - }), qo.jsx("path", { + }), po.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" })] }) }; - No("@layer components{.sol-c-select{cursor:var(--sol-cursor-interactive)}}"); - let sg = (0, Ee.forwardRef)((({ + eo("@layer sol.components{.sol-c-select{cursor:var(--sol-cursor-interactive)}}"); + let Im = (0, Ee.forwardRef)((({ children: e, description: t, label: n, ...r - }, i) => qo.jsx(Wm, { + }, i) => po.jsx(um, { label: n, ref: i, ...r, - children: t ? qo.jsxs(cl, { + children: t ? po.jsxs(Ps, { as: "span", vertical: !0, - children: [qo.jsx(Ys, { + children: [po.jsx(gs, { as: "span", color: "foreground", variant: "label-m", truncate: !0, children: e ?? n - }), t && qo.jsx(Ys, { + }), t && po.jsx(gs, { as: "span", color: "foreground-weak", variant: "body-xs", @@ -43378,7 +43241,7 @@ })] }) : e ?? n }))), - lg = (0, Ee.forwardRef)((({ + Cm = (0, Ee.forwardRef)((({ allowEmpty: e, children: t, className: n, @@ -43392,22 +43255,22 @@ wrapperProps: u, ...d }, p) => { - let h = fs("sol-c-select", n), + let h = Lo("sol-c-select", n), [f, m] = (0, Ee.useState)(null); - return qo.jsx($m, { + return po.jsx(dm, { trigger: ({ isOpen: e - }) => qo.jsx(Fm, { + }) => po.jsx(im, { as: "button", className: h, type: "button", - endIcon: e ? ts : ns, - wrapperProps: vs({ + endIcon: e ? xo : ko, + wrapperProps: Mo({ ref: m }, u), ...d }), - ...vs({ + ...Mo({ anchor: f, allowEmpty: e, defaultValue: r, @@ -43421,19 +43284,19 @@ children: t }) })); - No('@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)}@container style(--sol-motion-transition-effects: enabled){.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 cg = (0, Ee.forwardRef)((({ + eo('@layer sol.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)}@container style(--sol-motion-transition-effects: enabled){.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 Am = (0, Ee.forwardRef)((({ children: e, className: t, title: n, ...r }, i) => { - let a = fs("sol-c-settings__content", t); - return qo.jsxs("div", { + let a = Lo("sol-c-settings__content", t); + return po.jsxs("div", { className: a, ref: i, ...r, - children: [n && qo.jsx(Ys, { + children: [n && po.jsx(gs, { as: "h1", className: "sol-c-settings__title", variant: "heading-m", @@ -43441,7 +43304,7 @@ }), e] }) })), - ug = (0, Ee.forwardRef)((({ + Pm = (0, Ee.forwardRef)((({ back: e, children: t, className: n, @@ -43449,24 +43312,24 @@ backCallback: i, ...a }, o) => { - let s = fs("sol-c-settings__navigation", n); - return qo.jsxs("div", { + let s = Lo("sol-c-settings__navigation", n); + return po.jsxs("div", { className: s, ref: o, ...a, - children: [(e || r) && qo.jsxs("div", { + children: [(e || r) && po.jsxs("div", { className: "sol-c-settings__header", - children: [e && qo.jsx(el, { + children: [e && po.jsx(xs, { "aria-label": e.label, className: "sol-c-settings__back", - icon: Xo, + icon: yo, size: "large", variant: "monochrome", onClick: e => { e.preventDefault(), i?.() }, ...e - }), r && qo.jsx(Ys, { + }), r && po.jsx(gs, { className: "sol-c-settings__label", offset: !0, variant: "heading-s", @@ -43475,14 +43338,14 @@ }), t] }) })), - dg = (0, Ee.forwardRef)((({ + Tm = (0, Ee.forwardRef)((({ children: e, className: t, active: n, ...r }, i) => { - let a = fs("sol-c-settings__item", t); - return qo.jsx(el, { + let a = Lo("sol-c-settings__item", t); + return po.jsx(xs, { "aria-current": n ? "true" : void 0, className: a, fullWidth: !0, @@ -43495,18 +43358,18 @@ children: e }) })), - pg = ms((({ + Rm = No((({ as: e = "div", children: t, className: n, ...r }, i) => { - let a = fs("sol-c-settings", n), + let a = Lo("sol-c-settings", n), [o, s] = (0, Ee.useState)(!0); return (0, Ee.useEffect)((() => { let e = setTimeout((() => s(!1)), 2e3); return () => clearTimeout(e) - }), []), qo.jsx(e, { + }), []), po.jsx(e, { className: a, "data-animation-fade": o, ref: i, @@ -43514,8 +43377,8 @@ children: t }) })); - No('@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 hg = ms((({ + eo('@layer sol.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:0.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 Dm = No((({ as: e = "div", children: t, className: n, @@ -43524,36 +43387,36 @@ title: a, ...o }, s) => { - let l = fs("sol-c-sign-in__content", r && "sol-c-sign-in__content--has-footer", n), + let l = Lo("sol-c-sign-in__content", r && "sol-c-sign-in__content--has-footer", n), c = (0, Ee.useRef)(null), { blockEnd: u - } = Us({ + } = ss({ ref: c }); - return qo.jsxs(e, { + return po.jsxs(e, { className: l, ref: s, ...o, - children: [qo.jsx("div", { + children: [po.jsx("div", { className: "sol-c-sign-in__wrapper", "data-sol-scroll-end": u, - children: qo.jsxs(cl, { + children: po.jsxs(Ps, { className: "sol-c-sign-in__container", gap: "150", ref: c, vertical: !0, - children: [(a || i) && qo.jsxs(cl, { + children: [(a || i) && po.jsxs(Ps, { className: "sol-c-sign-in__header", gap: "050", vertical: !0, - children: [a && qo.jsx(Ys, { + children: [a && po.jsx(gs, { as: "h1", className: "sol-c-sign-in__title", color: "foreground", variant: "heading-s", children: a - }), i && qo.jsx(Ys, { + }), i && po.jsx(gs, { className: "sol-c-sign-in__subtitle", color: "foreground-weak", variant: "body-m", @@ -43561,7 +43424,7 @@ })] }), t] }) - }), r && qo.jsx(cl, { + }), r && po.jsx(Ps, { align: "center", justify: "space-between", className: "sol-c-sign-in__footer", @@ -43569,70 +43432,70 @@ })] }) })), - fg = ms((({ + Lm = No((({ as: e = "div", children: t, className: n, ...r }, i) => { - let a = fs("sol-c-sign-in", n); - return qo.jsxs(e, { + let a = Lo("sol-c-sign-in", n); + return po.jsxs(e, { className: a, ref: i, ...r, - children: [qo.jsx("svg", { + children: [po.jsx("svg", { className: "sol-c-sign-in__logo", width: "256", height: "125", viewBox: "0 0 256 125", xmlns: "http://www.w3.org/2000/svg", - children: qo.jsxs("g", { + children: po.jsxs("g", { fill: "#BCBEC0", - children: [qo.jsx("path", { + children: [po.jsx("path", { d: "M243.265 6.429c0-4.42 1.993-6.431 6.368-6.431s6.369 2.02 6.369 6.43-1.994 6.442-6.369 6.442-6.368-2.021-6.368-6.441Zm11.773 0c0-3.768-1.695-5.48-5.415-5.48-3.72 0-5.419 1.698-5.419 5.48 0 3.781 1.695 5.48 5.419 5.48 3.723 0 5.415-1.713 5.415-5.48Zm-2.84-1.09c0 1.263-.332 1.78-1.293 1.965l1.443 2.309c.069.07.034.139-.07.139h-1.192c-.149 0-.205-.035-.264-.15l-1.407-2.204h-.711v2.229c0 .104-.01.114-.104.114h-1.158c-.104 0-.114-.024-.114-.114V3.352c0-.07.024-.104.104-.104.766-.07 1.581-.08 2.312-.08 1.82 0 2.451.493 2.451 2.17h.003Zm-3.494-.976v1.996h.894c.916 0 1.193-.173 1.193-.975s-.274-1.021-1.193-1.021h-.894Z" - }), qo.jsx("path", { + }), po.jsx("path", { d: "m7.053 124.984-2.621-3.302H3.26v3.302H1.502v-8.792h5.7c.6 0 1.012.132 1.244.41.236.278.35.715.35 1.299v2.059c0 .597-.117 1.021-.35 1.298-.235.278-.658.41-1.244.41h-.704L9.5 124.97H7.053v.014Zm.014-6.555c0-.247-.045-.424-.146-.525-.087-.087-.218-.132-.395-.132H3.26v2.396h3.266c.177 0 .308-.045.409-.146.087-.1.132-.277.132-.524v-1.069ZM19.415 124.547c-.218.292-.69.438-1.407.438h-4.774c-.718 0-1.186-.146-1.408-.438-.218-.292-.336-.847-.336-1.635v-4.615c0-.788.118-1.344.336-1.636.219-.305.704-.451 1.408-.451h4.774c.717 0 1.185.146 1.407.451.219.306.337.848.337 1.636v4.615c0 .788-.118 1.343-.337 1.635Zm-1.449-6.733h-4.715v5.49h4.715v-5.49ZM27.968 124.998c.717 0 1.244-.146 1.567-.438.322-.291.482-.729.482-1.284v-1.125c0-.966-.382-1.518-1.144-1.681.731-.146 1.098-.642 1.098-1.476v-1.066c0-.597-.117-1.021-.35-1.298-.235-.278-.644-.424-1.244-.424h-5.713v8.792H27.968Zm.218-3.667c.104.132.146.32.146.615h.014v.67c0 .292-.046.496-.146.597-.1.101-.25.16-.454.16h-3.31v-2.191h3.31c.204 0 .35.045.44.146v.003Zm-.059-3.549c.104.101.16.264.16.483v.847c0 .219-.045.379-.146.469-.087.087-.236.132-.409.132h-3.31v-2.045h3.31c.177 0 .309.028.395.118v-.004Z" - }), qo.jsx("path", { + }), po.jsx("path", { d: "M32.669 124.984v-8.778h6.926v1.517h-5.141v1.914h3.002v1.534h-3.002v2.132h5.2v1.681h-6.986Z" - }), qo.jsx("path", { + }), po.jsx("path", { d: "m45.104 121.682 2.621 3.302v-.014h2.448l-3.003-3.302h.704c.586 0 1.012-.132 1.245-.41.236-.277.35-.701.35-1.298v-2.059c0-.584-.118-1.021-.35-1.299-.236-.278-.645-.41-1.245-.41h-5.7v8.792h1.758v-3.302h1.172Zm2.49-3.781c.103.1.145.278.145.524v1.066c0 .247-.045.424-.132.524-.104.101-.236.146-.409.146h-3.266v-2.396h3.266c.177 0 .309.045.395.132v.004Z" - }), qo.jsx("path", { + }), po.jsx("path", { d: "M55.272 117.8v7.185h-1.789V117.8H50.51v-1.59h7.762v1.59h-3.002.003ZM65.42 124.999c.717 0 1.185-.146 1.42-.452.236-.305.35-.847.337-1.635V121.7c0-.788-.104-1.344-.336-1.636-.236-.305-.704-.451-1.422-.451h-3.924v-1.84h3.983v1.066l1.598-.511v-.191c0-.715-.117-1.212-.35-1.503-.236-.292-.704-.438-1.39-.438h-3.692c-.704 0-1.186.146-1.407.452-.219.291-.337.847-.337 1.635v.979c0 .789.118 1.33.337 1.636.218.305.69.451 1.407.451h3.91v1.959H61.25v-1.094l-1.612.451v.25c0 .788.118 1.344.35 1.636.236.305.704.451 1.421.451h4.015l-.004-.003ZM81.914 124.546c-.235.305-.703.451-1.42.451h-4.016c-.717 0-1.185-.146-1.42-.451-.237-.292-.351-.847-.351-1.636v-.25l1.612-.451v1.094h4.32v-1.959h-3.91c-.719 0-1.186-.146-1.422-.451-.236-.306-.337-.847-.337-1.636v-.979c0-.788.118-1.344.337-1.635.218-.306.703-.452 1.421-.452h3.692c.69 0 1.158.146 1.39.438.236.292.35.788.35 1.503v.191l-1.598.511v-1.066h-3.997v1.84h3.925c.717 0 1.185.146 1.421.452.236.291.336.847.336 1.635v1.212c0 .788-.104 1.33-.336 1.635l.003.004Z" - }), qo.jsx("path", { + }), po.jsx("path", { d: "M90.82 121.581c.586 0 1.013-.132 1.245-.41.236-.278.35-.715.35-1.316v-1.958c0-.583-.118-1.021-.35-1.299-.236-.278-.645-.41-1.245-.41h-5.699v8.792h1.758v-3.402h3.941v.003Zm-.294-3.681c.104.101.145.278.145.525v.948c0 .25-.045.423-.131.524-.087.101-.236.146-.41.146h-3.265v-2.278h3.266c.176 0 .308.045.395.132v.003ZM99.491 124.984l-.776-1.913h-3.852l-.763 1.913h-1.785l3.706-8.792h1.713l3.751 8.792h-1.994Zm-2.68-6.719-1.303 3.184h2.548l-1.245-3.184Z" - }), qo.jsx("path", { + }), po.jsx("path", { d: "M108.452 124.984c.704 0 1.172-.146 1.408-.438.236-.292.35-.847.336-1.649v-1.039l-1.785-.496v1.941h-3.81v-5.49h3.81v1.695l1.785-.379v-.833c0-.788-.118-1.33-.336-1.636-.236-.305-.69-.451-1.408-.451h-3.882c-.718 0-1.203.146-1.422.451-.218.292-.336.848-.336 1.636v4.615c0 .788.118 1.343.336 1.635.236.292.704.438 1.422.438h3.882ZM113.053 124.984v-8.778h6.926v1.517h-5.141v1.914h3.002v1.534h-3.002v2.132h5.2v1.681h-6.985ZM133.867 119.273c.028.364.028.687.028.965v4.747h-1.64v-8.792h1.29l4.583 5.17c.121.142.222.257.298.351.042.052.08.093.111.132l.028.027c-.007-.229-.011-.423-.017-.587-.007-.232-.014-.399-.014-.493v-4.614h1.626v8.792h-1.29l-4.791-5.417-.035-.045a.966.966 0 0 0-.038-.049c-.042-.052-.097-.118-.146-.184l.007-.003ZM127.437 116.206h1.785v8.792h-1.785v-8.792Z" - }), qo.jsx("path", { + }), po.jsx("path", { d: "M147.152 124.998c1.303 0 2.239-.233 2.798-.701.953-.803 1.435-2.046 1.435-3.754 0-1.372-.323-2.438-.967-3.198-.645-.76-1.599-1.139-2.871-1.139h-4.319v8.792h3.924Zm.395-7.202c.617 0 1.113.233 1.467.688.367.451.54 1.125.54 2.017 0 1.007-.218 1.723-.644 2.146-.423.424-1.127.643-2.08.643h-1.817v-5.49h2.534v-.004Z" - }), qo.jsx("path", { + }), po.jsx("path", { d: "M161.154 124.547c-.218.291-.69.437-1.407.437h-4.101c-.718 0-1.172-.146-1.408-.437-.236-.292-.336-.848-.336-1.636v-6.705h1.785v7.097h4.042v-7.097h1.772v6.705c-.014.788-.132 1.344-.35 1.636h.003ZM170.119 124.999c.718 0 1.186-.146 1.422-.452.236-.305.336-.847.322-1.635V121.7c0-.788-.104-1.344-.336-1.636-.236-.305-.704-.451-1.421-.451h-3.925v-1.84h3.997v1.066l1.599-.511v-.191c0-.715-.118-1.212-.351-1.503-.235-.292-.703-.438-1.39-.438h-3.692c-.704 0-1.185.146-1.407.452-.219.291-.337.847-.337 1.635v.979c0 .789.118 1.33.337 1.636.218.305.69.451 1.407.451h3.911v1.959h-4.306v-1.094l-1.612.451v.25c0 .788.118 1.344.35 1.636.236.305.704.451 1.421.451h4.015l-.004-.003ZM178.027 117.8v7.185h-1.785V117.8h-2.975v-1.59h7.762v1.59h-3.002Z" - }), qo.jsx("path", { + }), po.jsx("path", { d: "m185.529 121.682 2.621 3.302v-.014h2.447l-3.002-3.302h.704c.586 0 1.012-.132 1.245-.41.232-.277.35-.701.35-1.298v-2.059c0-.584-.118-1.021-.35-1.299-.236-.278-.645-.41-1.245-.41H182.6v8.792h1.757v-3.302h1.172Zm2.503-3.781c.104.1.146.278.146.524v1.066c0 .247-.045.424-.132.524-.087.101-.236.146-.409.146h-3.266v-2.396h3.266c.177 0 .308.045.395.132v.004Z" - }), qo.jsx("path", { + }), po.jsx("path", { d: "M194.491 116.206h-1.785v8.792h1.785v-8.792ZM197.538 116.206v8.778h6.986v-1.681h-5.201v-2.132h3.003v-1.534h-3.003v-1.914h5.142v-1.517h-6.927ZM214.047 124.547c-.236.305-.704.451-1.422.451h-4.014c-.718 0-1.186-.146-1.422-.451-.235-.292-.336-.847-.336-1.636v-.25l1.612-.451v1.094h4.306v-1.959h-3.911c-.717 0-1.185-.146-1.407-.451-.219-.306-.336-.847-.336-1.636v-.979c0-.788.117-1.344.336-1.635.218-.306.704-.452 1.407-.452h3.692c.69 0 1.158.146 1.391.438.235.292.35.788.35 1.503v.191l-1.598.511v-1.066h-3.998v1.84h3.911c.717 0 1.186.146 1.421.452.236.291.337.847.337 1.635v1.212c.027.788-.087 1.33-.323 1.635l.004.004Z" - }), qo.jsx("path", { + }), po.jsx("path", { d: "M79.692 81.754c-1.712 0-3.28-1.3-3.706-2.893l-4.264-18.327 19.511-9.813c4.7-2.309 8.684-7.07 10.106-12.85l6.694-25.98C109.749 5.386 105.617.042 98.926.042H26.758L-.002 106.567h25.339l6.548-25.834 17.078-8.66 6.122 25.688c1.144 4.761 5.977 8.806 10.955 8.806h20.211l6.254-24.827H79.69v.014h.003ZM39.706 49.71l.191-.774 6.064-24.199h29.325c2.27 0 3.838.861 3.28 2.747-.427 1.444-1.422 3.184-4.279 4.614l-34.58 17.612Z" - }), qo.jsx("path", { + }), po.jsx("path", { d: "M96.582 81.754h4.292l-6.327 24.827h-4.364l6.385-24.786.014-.045v.004ZM104.975 81.754l-6.267 24.827h4.205l6.313-24.827H104.975ZM113.323 81.754l-6.268 24.827h4.41l6.268-24.827h-4.41Z", fill: "#FFA000" - }), qo.jsx("path", { + }), po.jsx("path", { d: "m138.443 33.399 40.704 27.282c4.129 2.746 6.399 9.097 5.273 13.875l-5.831 23.237c-1.127 4.76-6.254 8.806-11.382 8.806h-51.249l6.268-24.827h30.892c2.271 0 3.984-1.59 4.41-3.039.572-1.885.132-3.316-2.139-4.906l-40.998-27.72c-4.129-2.746-6.417-9.097-5.273-13.858l5.831-23.382c1.144-4.76 6.122-8.806 11.104-8.806L184.86.002l-.014.059-6.268 24.681-.014.087h-.027l-38.097-.087c-2.27 0-3.983.861-4.555 3.17-.572 2.323.277 4.046 2.562 5.49l-.004-.003Z" - }), qo.jsx("path", { + }), po.jsx("path", { d: "M193.458.057h-.104l.013-.059h-4.395l-.014.06-6.241 24.68-.013.087h4.392l.014-.087 6.348-24.68ZM201.851.057l-6.227 24.68h-4.16l6.299-24.68h4.088ZM203.972 24.738 210.213.057h-4.115l-6.268 24.68h4.146-.004Z", fill: "#FFA000" - }), qo.jsx("path", { + }), po.jsx("path", { d: "m214.709.057.014-.059 25.338.06-26.905 106.526h-25.62L214.608.057h.104-.003Z" })] }) - }), qo.jsx("div", { + }), po.jsx("div", { className: "sol-c-sign-in__content-wrapper", children: t })] }) })); - No('@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 mg = (e, t) => t < e ? e : e + (t - e) / 2, - gg = (0, Ee.forwardRef)((({ + eo('@layer sol.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 Nm = (e, t) => t < e ? e : e + (t - e) / 2, + jm = (0, Ee.forwardRef)((({ className: e, defaultValue: t, max: n = 100, @@ -43644,19 +43507,19 @@ value: l, ...c }, u) => { - let [d, p] = _s({ + let [d, p] = zo({ value: l, - defaultValue: t ?? mg(r, n), + defaultValue: t ?? Nm(r, n), onChange: o }), h = (0, Ee.useCallback)((e => { p(parseFloat(e.target.value)), a && a(e) - }), [a, p]), f = (d - r) / (n - r) * 100, m = fs("sol-c-slider", e), g = { + }), [a, p]), f = (d - r) / (n - r) * 100, m = Lo("sol-c-slider", e), g = { ...s && { "--sol-c-slider-progress": `${f}%` }, ...i }; - return qo.jsx("input", { + return po.jsx("input", { className: m, max: n, min: r, @@ -43668,9 +43531,9 @@ ...c }) })); - No("@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 vg = "informative", - yg = (0, Ee.forwardRef)((({ + eo("@layer sol.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 Mm = "informative", + Fm = (0, Ee.forwardRef)((({ actions: e, children: t, className: n, @@ -43684,7 +43547,7 @@ onClose: u, pauseOnBlur: d = true, title: p, - type: h = vg, + type: h = Mm, ...f }, m) => { let g = (0, Ee.useId)(), @@ -43696,7 +43559,7 @@ resume: x, clear: k } = ((e, t = 1 / 0, n = !0) => { - let r = ys(e), + let r = Fo(e), i = (0, Ee.useRef)(null), a = (0, Ee.useRef)(null), o = (0, Ee.useRef)(t), @@ -43738,10 +43601,10 @@ E = (0, Ee.useCallback)((e => { e.stopPropagation(), w() }), [w]), - I = (0, Ee.useCallback)((() => { + O = (0, Ee.useCallback)((() => { b() }), [b]), - O = (0, Ee.useCallback)((() => { + I = (0, Ee.useCallback)((() => { x() }), [x]), C = (0, Ee.useCallback)((({ @@ -43750,45 +43613,45 @@ }) => n => { n.stopPropagation(), e && w(), t && t(n) }), [w]), - A = fs("sol-c-toast", h && h !== vg && `sol-c-toast--${h}`, n), + A = Lo("sol-c-toast", h && h !== Mm && `sol-c-toast--${h}`, n), P = p || !p && t, T = t && p; - return qo.jsxs("div", { + return po.jsxs("div", { "aria-describedby": T ? _ : void 0, "aria-labelledby": P ? y : void 0, className: A, id: v, ref: m, onClick: S, - onMouseEnter: I, - onMouseLeave: O, + onMouseEnter: O, + onMouseLeave: I, ...f, - children: [s && qo.jsx(Ks, { + children: [s && po.jsx(ms, { className: "sol-c-toast__icon", size: "150", source: s - }), (p || t || e) && qo.jsxs(cl, { + }), (p || t || e) && po.jsxs(Ps, { className: "sol-c-toast__container", gap: "075", vertical: !0, - children: [(p || t) && qo.jsxs(cl, { + children: [(p || t) && po.jsxs(Ps, { gap: "025", vertical: !0, - children: [P && qo.jsx(Ys, { + children: [P && po.jsx(gs, { className: "sol-c-toast__title", color: "foreground", id: y, offset: !0, variant: "emphasis-m", children: p ?? t - }), T && qo.jsx(Ys, { + }), T && po.jsx(gs, { className: "sol-c-toast__content", color: "foreground-weak", id: _, variant: "body-s", children: t })] - }), e && qo.jsx(cl, { + }), e && po.jsx(Ps, { align: "center", className: "sol-c-toast__actions", gap: "050", @@ -43798,12 +43661,12 @@ label: t, onClick: n, ...r - }, i) => qo.jsx(el, { + }, i) => po.jsx(xs, { color: "informative" !== h ? h : "default", size: "medium", variant: i > 0 ? "monochrome" : "default", ...r, - className: fs("sol-c-toast__action", r.className), + className: Lo("sol-c-toast__action", r.className), onClick: C({ close: e, onClick: n @@ -43811,29 +43674,29 @@ children: t }, i))) })] - }), r && qo.jsx(el, { + }), r && po.jsx(xs, { "aria-label": "string" == typeof r ? r : "Close", className: "sol-c-toast__close", - icon: Jo, + icon: _o, onClick: E, size: "small", variant: "monochrome" })] }) })); - No('@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 _g = (0, Ee.forwardRef)((({ + eo('@layer sol.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 zm = (0, Ee.forwardRef)((({ className: e, style: t, toasts: n, - component: r = yg, + component: r = Fm, ...i }, a) => { let o = (0, Ee.useMemo)((() => new WeakMap), []), [s, l] = (0, Ee.useState)(0); - Cs((() => l(document.querySelector(".sol-c-app-header")?.clientHeight ?? 0)), []); + Vo((() => l(document.querySelector(".sol-c-app-header")?.clientHeight ?? 0)), []); let c = function(e, t, n) { - let r = Ap.fun(t) && t, + let r = Yd.fun(t) && t, { reset: i, sort: a, @@ -43844,18 +43707,18 @@ ref: u, config: d } = r ? r() : t, - p = (0, Ee.useMemo)((() => r || 3 == arguments.length ? cm() : void 0), []), - h = Dp(e), + p = (0, Ee.useMemo)((() => r || 3 == arguments.length ? Af() : void 0), []), + h = Jd(e), f = [], m = (0, Ee.useRef)(null), g = i ? null : m.current; - Vh((() => { + oh((() => { m.current = f - })), Bh((() => (Tp(f, (e => { + })), lh((() => (Zd(f, (e => { p?.add(e.ctrl), e.ctrl.ref = p })), () => { - Tp(m.current, (e => { - e.expired && clearTimeout(e.expirationId), bf(e.ctrl, p), e.ctrl.stop(!0) + Zd(m.current, (e => { + e.expired && clearTimeout(e.expirationId), zh(e.ctrl, p), e.ctrl.stop(!0) })) }))); let v = function(e, { @@ -43866,35 +43729,35 @@ let t = new Set; return e.map((e => { let n = r && r.find((n => n.item === e && "leave" !== n.phase && !t.has(n))); - return n ? (t.add(n), n.key) : dm++ + return n ? (t.add(n), n.key) : Tf++ })) } - return Ap.und(n) ? e : Ap.fun(n) ? e.map(n) : Dp(n) + return Yd.und(n) ? e : Yd.fun(n) ? e.map(n) : Jd(n) }(h, r ? r() : t, g), y = i && m.current || []; - Vh((() => Tp(y, (({ + oh((() => Zd(y, (({ ctrl: e, item: t, key: n }) => { - bf(e, p), lf(c, t, n) + zh(e, p), Ih(c, t, n) })))); let _ = []; - if (g && Tp(g, ((e, t) => { + if (g && Zd(g, ((e, t) => { e.expired ? (clearTimeout(e.expirationId), y.push(e)) : ~(t = _[t] = v.indexOf(e.key)) && (f[t] = e) - })), Tp(h, ((e, t) => { + })), Zd(h, ((e, t) => { f[t] || (f[t] = { key: v[t], item: e, phase: "mount", - ctrl: new Jf + ctrl: new _f }, f[t].ctrl.item = e) })), _.length) { let e = -1, { leave: n } = r ? r() : t; - Tp(_, ((t, r) => { + Zd(_, ((t, r) => { let i = g[r]; ~t ? (e = f.indexOf(i), f[e] = { ...i, @@ -43902,18 +43765,18 @@ }) : n && f.splice(++e, 0, i) })) } - Ap.fun(a) && f.sort(((e, t) => a(e.item, t.item))); + Yd.fun(a) && f.sort(((e, t) => a(e.item, t.item))); let b = -o, - x = Uh(), - k = hf(t), + x = sh(), + k = Rh(t), w = new Map, S = (0, Ee.useRef)(new Map), E = (0, Ee.useRef)(!1); - Tp(f, ((e, n) => { + Zd(f, ((e, n) => { let i, a, c = e.key, p = e.phase, h = r ? r() : t, - f = lf(h.delay || 0, c); + f = Ih(h.delay || 0, c); if ("mount" == p) i = h.enter, a = "enter"; else { let e = 0 > v.indexOf(c); @@ -43928,11 +43791,11 @@ i = h.enter, a = "enter" } } - if (i = lf(i, e.item, n), !(i = Ap.obj(i) ? gf(i) : { + if (i = Ih(i, e.item, n), !(i = Yd.obj(i) ? Nh(i) : { to: i }).config) { let t = d || k.config; - i.config = lf(t, e.item, n, a) + i.config = Ih(t, e.item, n, a) } b += o; let y = { @@ -43943,16 +43806,16 @@ reset: !1, ...i }; - if ("enter" == a && Ap.und(y.from)) { + if ("enter" == a && Yd.und(y.from)) { let i = r ? r() : t, - a = Ap.und(i.initial) || g ? i.from : i.initial; - y.from = lf(a, e.item, n) + a = Yd.und(i.initial) || g ? i.from : i.initial; + y.from = Ih(a, e.item, n) } let { onResolve: _ } = y; y.onResolve = e => { - lf(_, e); + Ih(_, e); let t = m.current, n = t.find((e => e.key === c)); if (n) { @@ -43960,7 +43823,7 @@ if (n.ctrl.idle) { let e = t.every((e => e.ctrl.idle)); if ("leave" == n.phase) { - let t = lf(s, n.item); + let t = Ih(s, n.item); if (!1 !== t) { let r = !0 === t ? 0 : t; if (n.expired = !0, !e && r > 0) return void(r <= 2147483647 && (n.expirationId = setTimeout(x, r))) @@ -43970,33 +43833,33 @@ } } }; - let I = nm(e.ctrl, y); + let O = kf(e.ctrl, y); "leave" === a && l ? S.current.set(e, { phase: a, - springs: I, + springs: O, payload: y }) : w.set(e, { phase: a, - springs: I, + springs: O, payload: y }) })); - let I = (0, Ee.useContext)(sm), - O = Wh(I), - C = I !== O && yf(I); - Vh((() => { - C && Tp(f, (e => { + let O = (0, Ee.useContext)(If), + I = uh(O), + C = O !== I && Mh(O); + oh((() => { + C && Zd(f, (e => { e.ctrl.start({ - default: I + default: O }) })) - }), [I]), Tp(w, ((e, t) => { + }), [O]), Zd(w, ((e, t) => { if (S.current.size) { let e = f.findIndex((e => e.key === t.key)); f.splice(e, 1) } - })), Vh((() => { - Tp(S.current.size ? S.current : w, (({ + })), oh((() => { + Zd(S.current.size ? S.current : w, (({ phase: e, payload: t }, n) => { @@ -44004,8 +43867,8 @@ ctrl: r } = n; n.phase = e, p?.add(r), C && "enter" == e && r.start({ - default: I - }), t && (xf(r, t.ref), !r.ref && !p || E.current ? (r.start(t), E.current && (E.current = !1)) : r.update(t)) + default: O + }), t && (Vh(r, t.ref), !r.ref && !p || E.current ? (r.start(t), E.current && (E.current = !1)) : r.update(t)) })) }), void 0); let A = e => Ee.createElement(Ee.Fragment, null, f.map(((t, n) => { @@ -44016,7 +43879,7 @@ }, t.item, t, n); return i && i.type ? Ee.createElement(i.type, { ...i.props, - key: Ap.str(t.key) || Ap.num(t.key) ? t.key : t.ctrl.id, + key: Yd.str(t.key) || Yd.num(t.key) ? t.key : t.ctrl.id, ref: i.ref }) : i }))); @@ -44047,30 +43910,30 @@ friction: 30 } }), - u = fs("sol-c-toasts", e), + u = Lo("sol-c-toasts", e), d = { ...t, top: s }; - return qo.jsx("ul", { + return po.jsx("ul", { "aria-live": "polite", className: u, ref: a, style: d, ...i, - children: c(((e, t) => qo.jsx(Om.li, { + children: c(((e, t) => po.jsx(Hf.li, { className: "sol-c-toasts__wrapper", ref: e => e && o.set(t, e), style: e, - children: qo.jsx(r, { + children: po.jsx(r, { role: "status", ...t }) }))) }) })); - No("@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}}"); - let bg = ({ + eo("@layer sol.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}}"); + let Vm = ({ targetInfo: e, disableMaskInteraction: t, padding: n, @@ -44083,7 +43946,7 @@ let { width: l, height: c - } = xs({ + } = Bo({ ref: i }), u = `clip-path-${s}`, d = (0, Ee.useMemo)((() => { if (!e) return ""; @@ -44099,20 +43962,20 @@ } = e, s = o - n, u = a - n, d = a + i + n, p = o + t + n, h = l || 0, f = c || 0; return r > 0 ? `M 0, 0\n L 0, ${f}\n L ${u}, ${f}\n L ${u}, ${s+r}\n Q ${u}, ${s}, ${u+r}, ${s}\n L ${d-r}, ${s}\n Q ${d}, ${s}, ${d}, ${s+r}\n L ${d}, ${p-r}\n Q ${d}, ${p}, ${d-r}, ${p}\n L ${u+r}, ${p}\n Q ${u}, ${p}, ${u}, ${p-r}\n L ${u}, ${f}\n L ${h}, ${f}\n L ${h}, 0` : `M 0, 0\n L 0, ${f}\n L ${u}, ${f}\n L ${u}, ${s}\n L ${d}, ${s}\n L ${d}, ${p}\n L ${u}, ${p}\n L ${u}, ${f}\n L ${h}, ${f}\n L ${h}, 0` }), [c, l, n, r, e]); - return qo.jsxs("svg", { + return po.jsxs("svg", { style: { height: c, width: l, pointerEvents: t ? "auto" : "none" }, - children: [e && qo.jsx("defs", { - children: qo.jsx("clipPath", { + children: [e && po.jsx("defs", { + children: po.jsx("clipPath", { id: u, - children: qo.jsx("path", { + children: po.jsx("path", { d: d }) }) - }), qo.jsx("rect", { + }), po.jsx("rect", { onClick: o ? void 0 : a, x: 0, y: 0, @@ -44124,7 +43987,7 @@ })] }) }, - xg = ({ + Um = ({ allSteps: e, close: t, counterSeparator: n, @@ -44139,39 +44002,39 @@ stepIndex: c }) => { let u = c === e.length - 1; - return qo.jsxs(cl, { + return po.jsxs(Ps, { className: "sol-c-tutorial", vertical: !0, gap: "050", - children: [qo.jsxs(cl, { + children: [po.jsxs(Ps, { className: "sol-c-tutorial__content", gap: "025", vertical: !0, - children: [qo.jsx(Ys, { + children: [po.jsx(gs, { as: "h2", color: "foreground", variant: "emphasis-m", children: s - }), l && qo.jsx(Ys, { + }), l && po.jsx(gs, { color: "foreground-weak", className: "sol-u-margin-bs-050", variant: "body-s", children: l })] - }), qo.jsxs(cl, { + }), po.jsxs(Ps, { align: "center", className: "sol-c-tutorial__footer", gap: "050", - children: [qo.jsxs(Ys, { + children: [po.jsxs(gs, { className: "sol-c-tutorial__counter sol-u-margin-ie-auto", color: "foreground-weak", variant: "body-xs", children: [c + 1, n, e.length] - }), !u && qo.jsx(el, { + }), !u && po.jsx(xs, { onClick: () => t(), variant: "plain", children: o - }), qo.jsx(el, { + }), po.jsx(xs, { onClick: () => { u ? t() : i() }, @@ -44180,29 +44043,29 @@ })] }) }, - kg = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, [tabindex]:not([tabindex^="-"]):not([disabled]), [contenteditable]'; + Bm = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, [tabindex]:not([tabindex^="-"]):not([disabled]), [contenteditable]'; - function wg(e) { + function Gm(e) { return { x: e.scrollLeft, y: e.scrollTop } } - function Sg(e, t) { - let n = wg(e); + function $m(e, t) { + let n = Gm(e); return { x: t.x + n.x, y: t.y + n.y } } - function Eg(e, t) { + function qm(e, t) { if (t && e) { - if (Mg(e)) return Sg(e, t); + if (ng(e)) return $m(e, t); { - let n = Lg(e); - return Sg(e, { + let n = eg(e); + return $m(e, { x: t.x - n.x, y: t.y - n.y }) @@ -44210,49 +44073,49 @@ } } - function Ig(e, t, n) { + function Wm(e, t, n) { return { x: e.x + t.width / 2 - n.width / 2, y: e.y + t.height / 2 - n.height / 2 } } - function Og(e, t, n, r, i) { + function Hm(e, t, n, r, i) { if (!e || !t || !n) return; - let a = r || Lg(t), - o = i || Lg(n), - s = Ng(t), - l = Ng(n), + let a = r || eg(t), + o = i || eg(n), + s = tg(t), + l = tg(n), { coords: c, dims: u - } = jg(a, s, o, l); - return Ig(c, u, Bg(e)) + } = rg(a, s, o, l); + return Wm(c, u, lg(e)) } - function Cg(e, t, n) { + function Km(e, t, n) { if (!e) return; - return Ig(n || Wg(e), Bg(e), t ? Ng(t) : { + return Wm(n || ug(e), lg(e), t ? tg(t) : { height: 0, width: 0 }) } - function Ag(e, t, n, r) { - let i = Cg(e, t), + function Ym(e, t, n, r) { + let i = Km(e, t), a = i, - o = a => !r || Hg(e, n) && Hg(e, t, a, !0) ? i : Cg(e, t, Kg(e, Og(e, t, n, a))); + o = a => !r || hg(e, n) && hg(e, t, a, !0) ? i : Km(e, t, fg(e, Hm(e, t, n, a))); return (e, t, n, r) => { - if (t.orientation === Vo.CENTER) return n === r.length - 1 && void 0 === e ? t : e; + if (t.orientation === ao.CENTER) return n === r.length - 1 && void 0 === e ? t : e; if (void 0 === e) return a = o(t.coords), t; { let n = o(t.coords); - return Dg(n, t.coords) > Dg(a, e.coords) ? e : (a = n, t) + return Jm(n, t.coords) > Jm(a, e.coords) ? e : (a = n, t) } } } - function Pg(e) { + function Qm(e) { let { target: t, tooltip: n, @@ -44264,50 +44127,50 @@ disableAutoScroll: l, allowForeignTarget: c, selector: u - } = e, d = t ? Cg(s, n, Kg(s, function(e, t) { - let n = Ng(t); - return Ig(Lg(t), n, Bg(e)) - }(s, t))) : Cg(s, n), p = Eg(s, d); + } = e, d = t ? Km(s, n, fg(s, function(e, t) { + let n = tg(t); + return Wm(eg(t), n, lg(e)) + }(s, t))) : Km(s, n), p = qm(s, d); if (!n || !s) return; if (!t) return { orientation: null, coords: p }; - let h = c && Ug(s, u), + let h = c && sg(s, u), f = l || h, m = function(e, t, n, r, i) { let a; if (!e || !t) return; - let o = Ng(t), - s = Lg(e), - l = Ng(e), + let o = tg(t), + s = eg(e), + l = tg(e), c = s.x - (o.width - l.width) / 2, u = s.y - (o.height - l.height) / 2, d = s.x + l.width + n + r, p = s.y + l.height + n + r, h = s.x - o.width - n - r, f = s.y - o.height - n - r, - m = Ig(s, l, o), + m = Wm(s, l, o), g = [{ - orientation: Vo.EAST, + orientation: ao.EAST, coords: { x: d, y: u } }, { - orientation: Vo.SOUTH, + orientation: ao.SOUTH, coords: { x: c, y: p } }, { - orientation: Vo.WEST, + orientation: ao.WEST, coords: { x: h, y: u } }, { - orientation: Vo.NORTH, + orientation: ao.NORTH, coords: { x: c, y: f @@ -44319,49 +44182,49 @@ r = s.x - n, i = s.y - n; a = [{ - orientation: Vo.EASTNORTH, + orientation: ao.EASTNORTH, coords: { x: d, y: i } }, { - orientation: Vo.EASTSOUTH, + orientation: ao.EASTSOUTH, coords: { x: d, y: t } }, { - orientation: Vo.SOUTHEAST, + orientation: ao.SOUTHEAST, coords: { x: e, y: p } }, { - orientation: Vo.SOUTHWEST, + orientation: ao.SOUTHWEST, coords: { x: r, y: p } }, { - orientation: Vo.WESTSOUTH, + orientation: ao.WESTSOUTH, coords: { x: h, y: t } }, { - orientation: Vo.WESTNORTH, + orientation: ao.WESTNORTH, coords: { x: h, y: i } }, { - orientation: Vo.NORTHWEST, + orientation: ao.NORTHWEST, coords: { x: r, y: f } }, { - orientation: Vo.NORTHEAST, + orientation: ao.NORTHEAST, coords: { x: e, y: f @@ -44369,22 +44232,22 @@ }] } return [...g, ...a, { - orientation: Vo.CENTER, + orientation: ao.CENTER, coords: m }] }(t, n, r, i), g = o || (e => function(e, t, n, r, i) { if (1 === e.length) return e[0]; { - if (i) return e.reduce(Ag(t, n, r, !1), void 0); - let a = Bg(t), - o = $g(t), - s = Wg(t), - l = qg(t), - c = Ng(n), - u = Ng(r), - d = Lg(r), - p = e => jg(e, c, d, u), + if (i) return e.reduce(Ym(t, n, r, !1), void 0); + let a = lg(t), + o = dg(t), + s = ug(t), + l = pg(t), + c = tg(n), + u = tg(r), + d = eg(r), + p = e => rg(e, c, d, u), h = e.filter((e => { let t = e.coords; return !(t.x < o.x || t.y < o.y || t.x + c.width > l.x || t.y + c.height > l.y) @@ -44394,7 +44257,7 @@ { dims: n } = p(t); - return Fg(n, a) + return ig(n, a) })), m = f.filter((e => { let t = e.coords, @@ -44402,10 +44265,10 @@ dims: n, coords: r } = p(t); - return zg(n, a, r, s) + return ag(n, a, r, s) })), g = m.length > 0 ? m : f; - return (g.length > 0 ? g : h).reduce(Ag(t, n, r, !0), void 0) + return (g.length > 0 ? g : h).reduce(Ym(t, n, r, !0), void 0) } }(e, s, n, t, f)), v = g(function(e, t) { @@ -44417,19 +44280,19 @@ } }(m, a)); if (!v) return { - orientation: Vo.CENTER, + orientation: ao.CENTER, coords: p }; let y = { orientation: v.orientation, - coords: Eg(s, v.coords) + coords: qm(s, v.coords) }; return h ? { orientation: y.orientation, coords: function(e, t, n, r) { if (!e) return t; - let i = wg(e), - a = Bg(e), + let i = Gm(e), + a = lg(e), o = i.x + a.width, s = i.y + a.height, l = i.x + r, @@ -44442,23 +44305,23 @@ x: p, y: h } - }(s, y.coords, Ng(n), r + i) + }(s, y.coords, tg(n), r + i) } : y } - function Tg(e) { + function Zm(e) { return !!e && (!!e.x || 0 === e.x) && (!!e.y || 0 === e.y) } - function Rg(e) { + function Xm(e) { return !!e && (!!e.height || 0 === e.height) && (!!e.width || 0 === e.height) && !(e.height < 0) && !(e.width < 0) } - function Dg(e, t) { - if (Tg(e) && Tg(t)) return Math.sqrt(Math.pow(Math.abs(e.x - t.x), 2) + Math.pow(Math.abs(e.y - t.y), 2)) + function Jm(e, t) { + if (Zm(e) && Zm(t)) return Math.sqrt(Math.pow(Math.abs(e.x - t.x), 2) + Math.pow(Math.abs(e.y - t.y), 2)) } - function Lg(e) { + function eg(e) { if (!e) return; let t = e.getBoundingClientRect(); return { @@ -44467,7 +44330,7 @@ } } - function Ng(e) { + function tg(e) { if (!e) return; let t = e.getBoundingClientRect(); return { @@ -44476,11 +44339,11 @@ } } - function Mg(e) { + function ng(e) { return e.isSameNode(document.body) || e.isSameNode(document.scrollingElement) || e.isSameNode(document.documentElement) } - function jg(e, t, n, r) { + function rg(e, t, n, r) { let i = (e, t) => ({ left: e.x, right: e.x + t.width, @@ -44505,32 +44368,32 @@ } } - function Fg(e, t) { - return !(!Rg(e) || !Rg(t)) && e.height <= t.height && e.width <= t.width + function ig(e, t) { + return !(!Xm(e) || !Xm(t)) && e.height <= t.height && e.width <= t.width } - function zg(e, t, n, r) { - if (!Rg(e) || !Rg(t)) return !1; - let i = Tg(n) ? n : { + function ag(e, t, n, r) { + if (!Xm(e) || !Xm(t)) return !1; + let i = Zm(n) ? n : { x: 0, y: 0 }, - a = Tg(r) ? r : { + a = Zm(r) ? r : { x: 0, y: 0 }, - o = Fg(e, t), + o = ig(e, t), s = i.x >= a.x && i.x + e.width <= a.x + t.width, l = i.y >= a.y && i.y + e.height <= a.y + t.height; return o && s && l } - function Vg(e, t, n) { + function og(e, t, n) { if (t) { let e = function(e, t) { - let n = e.querySelectorAll(kg), + let n = e.querySelectorAll(Bm), r = []; - return t && e.matches(kg) && r.push(e), n.length > 0 && n.forEach((e => r.push(e))), r + return t && e.matches(Bm) && r.push(e), n.length > 0 && n.forEach((e => r.push(e))), r }(t, n); if (e.length > 0) return { start: e[0], @@ -44543,70 +44406,70 @@ } } - function Ug(e, t) { + function sg(e, t) { return !e.querySelector(t) } - function Bg(e) { + function lg(e) { return { width: e.clientWidth, height: e.clientHeight } } - function Gg(e) { + function cg(e) { return { width: e.scrollWidth, height: e.scrollHeight } } - function Wg(e) { - return Mg(e) ? { + function ug(e) { + return ng(e) ? { x: 0, y: 0 - } : Lg(e) + } : eg(e) } - function $g(e) { - let t = wg(e), - n = Wg(e); + function dg(e) { + let t = Gm(e), + n = ug(e); return { x: n.x - t.x, y: n.y - t.y } } - function qg(e) { - let t = $g(e), + function pg(e) { + let t = dg(e), { width: n, height: r - } = Gg(e); + } = cg(e); return { x: t.x + n, y: t.y + r } } - function Hg(e, t, n, r) { + function hg(e, t, n, r) { if (!e || !t) return !1; - let i = n && (r ? Eg(e, n) : n) || Eg(e, Lg(t)), - a = Ng(t), - o = Eg(e, Wg(e)); - return zg(a, Bg(e), i, o) + let i = n && (r ? qm(e, n) : n) || qm(e, eg(t)), + a = tg(t), + o = qm(e, ug(e)); + return ag(a, lg(e), i, o) } - function Kg(e, t) { - let n = Bg(e), - r = $g(e), - i = qg(e), + function fg(e, t) { + let n = lg(e), + r = dg(e), + i = pg(e), a = i.x - n.width, o = i.y - n.height; return t.x < r.x ? t.x = r.x : t.x > a ? t.x = a : t.x = t.x, t.y < r.y ? t.y = r.y : t.y > o ? t.y = o : t.y = t.y, t } - function Yg(e) { + function mg(e) { let { targetInfo: t, disableMaskInteraction: n, @@ -44619,17 +44482,17 @@ } = e, { width: c, height: u - } = Gg(a), d = `clip-path-${l}`; - return qo.jsxs("svg", { + } = cg(a), d = `clip-path-${l}`; + return po.jsxs("svg", { style: { height: u, width: c, pointerEvents: n ? "auto" : "none" }, - children: [t && qo.jsx("defs", { - children: qo.jsx("clipPath", { + children: [t && po.jsx("defs", { + children: po.jsx("clipPath", { id: d, - children: qo.jsx("path", { + children: po.jsx("path", { d: (e => { if (!e) return ""; let { @@ -44640,7 +44503,7 @@ })(t) }) }) - }), qo.jsx("rect", { + }), po.jsx("rect", { onClick: s ? void 0 : o, x: 0, y: 0, @@ -44652,8 +44515,8 @@ clipPath: t ? `url(#${d})` : void 0 })] }) - }(Go = Vo || (Vo = {})).EAST = "east", Go.SOUTH = "south", Go.WEST = "west", Go.NORTH = "north", Go.CENTER = "center", Go.EASTNORTH = "east-north", Go.EASTSOUTH = "east-south", Go.SOUTHEAST = "south-east", Go.SOUTHWEST = "south-west", Go.WESTSOUTH = "west-south", Go.WESTNORTH = "west-north", Go.NORTHWEST = "north-west", Go.NORTHEAST = "north-east"; - let Qg = { + }(lo = ao || (ao = {})).EAST = "east", lo.SOUTH = "south", lo.WEST = "west", lo.NORTH = "north", lo.CENTER = "center", lo.EASTNORTH = "east-north", lo.EASTSOUTH = "east-south", lo.SOUTHEAST = "south-east", lo.SOUTHWEST = "south-west", lo.WESTSOUTH = "west-south", lo.WESTNORTH = "west-north", lo.NORTHWEST = "north-west", lo.NORTHEAST = "north-east"; + let gg = { cursor: "pointer", padding: "4px 16px", textAlign: "center", @@ -44664,7 +44527,7 @@ fontSize: 14, margin: 4 }, - Zg = { + vg = { tooltip: { display: "flex", flexDirection: "column", @@ -44692,32 +44555,32 @@ margin: 4 }, primaryButton: { - ...Qg, + ...gg, backgroundColor: "#0084ff", color: "#ffffff" }, secondaryButton: { - ...Qg, + ...gg, backgroundColor: "#8400ff", color: "#fff", border: "solid 1px #8400ff" }, tertiaryButton: { - ...Qg, + ...gg, marginRight: "auto", backgroundColor: "transparent", color: "#025c53", border: "solid 1px #025c53" }, disabledButton: { - ...Qg, + ...gg, backgroundColor: "#bebebe", color: "#989898", cursor: "default" } }; - function Xg(e) { + function yg(e) { let { next: t, prev: n, @@ -44739,22 +44602,22 @@ allSteps: g, styles: v } = { - styles: Zg, + styles: vg, ...e }, y = { ...v.tooltip }, _ = void 0 !== d ? d : 0 === m, b = void 0 !== u ? u : m + 1 === g.length; - return qo.jsxs("div", { + return po.jsxs("div", { style: y, - children: [o ? o(i, e) : i && qo.jsx("div", { + children: [o ? o(i, e) : i && po.jsx("div", { style: v.title, children: i - }), s ? s(a, e) : qo.jsx("div", { + }), s ? s(a, e) : po.jsx("div", { style: v.description, children: a - }), l ? l(e) : qo.jsxs("div", { + }), l ? l(e) : po.jsxs("div", { style: v.footer, - children: [qo.jsx("button", { + children: [po.jsx("button", { onClick: () => r(), style: { ...v.tertiaryButton, @@ -44762,7 +44625,7 @@ }, disabled: c, children: f || "close" - }), qo.jsx("button", { + }), po.jsx("button", { onClick: n, disabled: _, style: { @@ -44770,7 +44633,7 @@ ..._ && v.disabledButton }, children: h || "prev" - }), qo.jsx("button", { + }), po.jsx("button", { onClick: () => t(), disabled: b, style: { @@ -44783,11 +44646,11 @@ }) } - function Jg(e, t) { + function _g(e, t) { return `${e}${t?`-${t}`:""}` } - function ev(e) { + function bg(e) { let { start: t, end: n, @@ -44800,7 +44663,7 @@ } } - function tv(e) { + function xg(e) { let { root: t, tooltip: n, @@ -44809,19 +44672,19 @@ allowForeignTarget: a, selector: o } = e; - return !!t && !!n && !!r && !i && (a && o ? !Ug(t, o) : function(e) { + return !!t && !!n && !!r && !i && (a && o ? !sg(t, o) : function(e) { let { root: t, tooltip: n, tooltipPosition: r, target: i } = e; - return !Hg(t, n, r) || !Hg(t, i) && Fg(Ng(i), Bg(t)) + return !hg(t, n, r) || !hg(t, i) && ig(tg(i), lg(t)) }({ ...e })) } - let nv = { + let kg = { maskPadding: 5, maskRadius: 0, tooltipSeparation: 10, @@ -44832,21 +44695,21 @@ renderTolerance: 2, updateInterval: 500 }, - rv = e => { + wg = e => { let { steps: t, initialStepIndex: n, isOpen: r } = e, i = void 0 !== r, [a, o] = (0, Ee.useState)(void 0 == r), [s, l] = (0, Ee.useState)(void 0), [c, u] = (0, Ee.useState)(void 0), [d, p] = (0, Ee.useState)(n || 0), [h, f] = (0, Ee.useState)(void 0), m = (0, Ee.useRef)([]), g = (0, Ee.useRef)(void 0), v = (0, Ee.useRef)(void 0), y = (0, Ee.useRef)(void 0), _ = (0, Ee.useRef)(void 0), b = t[d], x = i ? r : a, k = { - ...nv, + ...kg, ...e, ...b }, { selector: w, maskPadding: S, maskRadius: E, - disableMaskInteraction: I, - disableCloseOnClick: O, + disableMaskInteraction: O, + disableCloseOnClick: I, tooltipSeparation: C, transition: A, orientationPreferences: P, @@ -44855,17 +44718,17 @@ rootSelector: D, customNextFunc: L, customPrevFunc: N, - customCloseFunc: M, - disableClose: j, + customCloseFunc: j, + disableClose: M, disableNext: F, disablePrev: z, disableAutoScroll: V, identifier: U, getPositionFromCandidates: B, movingTarget: G, - renderTolerance: W, - updateInterval: $, - disableMask: q, + renderTolerance: $, + updateInterval: q, + disableMask: W, setUpdateListener: H, removeUpdateListener: K, disableListeners: Y, @@ -44880,7 +44743,7 @@ let e; D && (e = document.querySelector(D)), e || (e = function e(t) { let n = (e, t) => getComputedStyle(e, null).getPropertyValue(t); - return !t || Mg(t) ? function() { + return !t || ng(t) ? function() { let e = window.pageYOffset; return document.documentElement.scrollTop = e + 1, window.pageXOffset > e ? (document.documentElement.scrollTop = e, document.documentElement) : document.scrollingElement || document.body }() : /(auto|scroll)/.test(n(t, "overflow") + n(t, "overflow-y") + n(t, "overflow-x")) ? t : e(t.parentElement) @@ -44907,10 +44770,10 @@ let t = X ? document : h, n = () => t.querySelector(w), r = n(), - i = Eg(h, Lg(r)), - a = Ng(r), - o = q ? 0 : S, - s = Pg({ + i = qm(h, eg(r)), + a = tg(r), + o = W ? 0 : S, + s = Qm({ target: r, tooltip: e, padding: o, @@ -44929,17 +44792,17 @@ let { start: o, end: s - } = Vg(e, e), { + } = og(e, e), { start: l, end: c - } = Vg(void 0, t, !0); - t && !n && l && c && (i = l, r = c, a = ev({ + } = og(void 0, t, !0); + t && !n && l && c && (i = l, r = c, a = bg({ start: l, end: c, beforeStart: s, afterEnd: o }), t.addEventListener("keydown", a)); - let u = ev({ + let u = bg({ start: o, end: s, beforeStart: r, @@ -44949,8 +44812,8 @@ return e.addEventListener("keydown", u), () => { t && t.removeEventListener("keydown", a), e.removeEventListener("keydown", u) } - })(e, r, I); - if (m.current.push(c), tv({ + })(e, r, O); + if (m.current.push(c), xg({ disableAutoScroll: V, allowForeignTarget: X, selector: w, @@ -44968,7 +44831,7 @@ }; e.scrollTo(n) } else e.scrollTop = t.y, e.scrollLeft = t.x - }(h, Og(h, e, r, s.coords, i), Q), !Y) { + }(h, Hm(h, e, r, s.coords, i), Q), !Y) { let t = () => { let t = n(); (function(e) { @@ -44986,16 +44849,16 @@ } = e; if (!n && !r && !i) return !1; if (!n && r && i || n && !r && !i) return !0; - let o = Ng(n), - s = Eg(t, Lg(n)), + let o = tg(n), + s = qm(t, eg(n)), l = function(e, t) { - if (Rg(e) && Rg(t)) return Math.abs(e.height * e.width - t.height * t.width) + if (Xm(e) && Xm(t)) return Math.abs(e.height * e.width - t.height * t.width) }(o, i) > a, - c = Dg(s, r) > a; + c = Jm(s, r) > a; return l || c }({ ...e - }) || tv({ + }) || xg({ ...e }) || function(e) { let { @@ -45004,7 +44867,7 @@ tooltip: r, tooltipPosition: i } = e; - return !(t || !n || !r) && 0 !== Dg(Pg({ + return !(t || !n || !r) && 0 !== Jm(Qm({ ...e }).coords, i) }({ @@ -45016,7 +44879,7 @@ tooltip: e, target: t, disableAutoScroll: V, - rerenderTolerance: W, + rerenderTolerance: $, targetCoords: y.current, targetDims: _.current, allowForeignTarget: X, @@ -45052,7 +44915,7 @@ let e = function(e, t) { let n = window.setInterval(e, t); return () => window.clearInterval(n) - }(t, $); + }(t, q); m.current.push(e) } if (J && r) { @@ -45099,14 +44962,14 @@ ...N && { prev: () => N(ae) }, - ...M && { - close: () => M(ae) + ...j && { + close: () => j(ae) } }, se = e => { switch (e.key) { case "Escape": - e.preventDefault(), j || oe.close(); + e.preventDefault(), M || oe.close(); break; case "ArrowRight": e.preventDefault(), F || oe.next(); @@ -45131,70 +44994,70 @@ transition: A, pointerEvents: "auto" }, - ue = te || Yg, - de = () => qo.jsx("div", { + ue = te || mg, + de = () => po.jsx("div", { ref: e => v.current = e, - id: Jg("walktour-portal", U), + id: _g("walktour-portal", U), style: le, - children: h && qo.jsxs(qo.Fragment, { - children: [!q && qo.jsx(ue, { - maskId: Jg("walktour-mask", U), + children: h && po.jsxs(po.Fragment, { + children: [!W && po.jsx(ue, { + maskId: _g("walktour-mask", U), targetInfo: function(e, t) { if (!e || !t) return; - let n = Ng(t); + let n = tg(t); return { - coords: Eg(e, Lg(t)), + coords: qm(e, eg(t)), dims: n } }(h, s), - disableMaskInteraction: I, - disableCloseOnClick: O, + disableMaskInteraction: O, + disableCloseOnClick: I, padding: S, radius: E, tourRoot: h, close: oe.close - }), qo.jsx("div", { + }), po.jsx("div", { ref: e => g.current = e, - id: Jg("walktour-tooltip-container", U), + id: _g("walktour-tooltip-container", U), style: ce, onKeyDown: se, tabIndex: 0, - children: T ? T(oe) : qo.jsx(Xg, { + children: T ? T(oe) : po.jsx(yg, { ...oe }) })] }) }); - return h ? (0, Do.createPortal)(de(), Mg(h) ? document.body : h) : de() + return h ? (0, Xa.createPortal)(de(), ng(h) ? document.body : h) : de() }, - iv = (e, t) => (t ? { - bottom: Vo.SOUTH, - "bottom-end": Vo.SOUTHWEST, - "bottom-start": Vo.SOUTHEAST, - left: Vo.EAST, - "left-end": Vo.EASTSOUTH, - "left-start": Vo.EASTNORTH, - right: Vo.WEST, - "right-end": Vo.WESTSOUTH, - "right-start": Vo.WESTNORTH, - top: Vo.NORTH, - "top-end": Vo.NORTHWEST, - "top-start": Vo.NORTHEAST + Sg = (e, t) => (t ? { + bottom: ao.SOUTH, + "bottom-end": ao.SOUTHWEST, + "bottom-start": ao.SOUTHEAST, + left: ao.EAST, + "left-end": ao.EASTSOUTH, + "left-start": ao.EASTNORTH, + right: ao.WEST, + "right-end": ao.WESTSOUTH, + "right-start": ao.WESTNORTH, + top: ao.NORTH, + "top-end": ao.NORTHWEST, + "top-start": ao.NORTHEAST } : { - bottom: Vo.SOUTH, - "bottom-end": Vo.SOUTHEAST, - "bottom-start": Vo.SOUTHWEST, - left: Vo.WEST, - "left-end": Vo.WESTSOUTH, - "left-start": Vo.WESTNORTH, - right: Vo.EAST, - "right-end": Vo.EASTSOUTH, - "right-start": Vo.EASTNORTH, - top: Vo.NORTH, - "top-end": Vo.NORTHEAST, - "top-start": Vo.NORTHWEST + bottom: ao.SOUTH, + "bottom-end": ao.SOUTHEAST, + "bottom-start": ao.SOUTHWEST, + left: ao.WEST, + "left-end": ao.WESTSOUTH, + "left-start": ao.WESTNORTH, + right: ao.EAST, + "right-end": ao.EASTSOUTH, + "right-start": ao.EASTNORTH, + top: ao.NORTH, + "top-end": ao.NORTHEAST, + "top-start": ao.NORTHWEST })[e], - av = (e, t) => e.map((({ + Eg = (e, t) => e.map((({ selector: e, title: n, description: r, @@ -45205,9 +45068,9 @@ title: n, description: r, maskPadding: a, - orientationPreferences: [iv(i, t)] + orientationPreferences: [Sg(i, t)] }))), - ov = ({ + Og = ({ children: e, counterSeparator: t = " of ", doneLabel: n = "Done", @@ -45219,7 +45082,7 @@ }) => { let { direction: l = "ltr" - } = Ns(), [c, u] = _s({ + } = ts(), [c, u] = zo({ value: a, onChange: i }), d = { @@ -45228,16 +45091,16 @@ nextLabel: r, skipLabel: o }; - return qo.jsxs(qo.Fragment, { - children: [qo.jsx(rv, { - customTooltipRenderer: e => qo.jsx(xg, { + return po.jsxs(po.Fragment, { + children: [po.jsx(wg, { + customTooltipRenderer: e => po.jsx(Um, { ...d, ...e }), disableMaskInteraction: !0, disableCloseOnClick: !0, maskRadius: 4, - renderMask: e => qo.jsx(bg, { + renderMask: e => po.jsx(Vm, { ...e }), isOpen: c, @@ -45247,11 +45110,11 @@ e(!0), u(!1), i?.(!1) }, tooltipSeparation: 4, - steps: av(s, "rtl" === l) + steps: Eg(s, "rtl" === l) }), e] }) }, - sv = ms((({ + Ig = No((({ buttonRef: e, className: t, disabled: n, @@ -45264,7 +45127,7 @@ ...c }, u) => { let d = (0, Ee.useId)(), - [p, h] = _s({ + [p, h] = zo({ value: l, onChange: a }), @@ -45276,23 +45139,23 @@ y = (0, Ee.useMemo)((() => { switch (!0) { case p >= 50: - return ps; + return Ro; case p >= 25: - return ds; + return To; case p >= 1: - return us; + return Po; default: - return rs + return wo } }), [p]), - _ = fs("sol-c-volume-slider", t); - return qo.jsxs(cl, { + _ = Lo("sol-c-volume-slider", t); + return po.jsxs(Ps, { align: "center", className: _, gap: "025", ref: u, ...c, - children: [qo.jsx(el, { + children: [po.jsx(xs, { "aria-controls": d, "aria-label": 0 === p ? s : i, className: "sol-c-volume-slider__button", @@ -45302,7 +45165,7 @@ size: "small", icon: y, variant: "plain" - }), qo.jsx(gg, { + }), po.jsx(jm, { id: d, "aria-label": r, "aria-valuetext": `${p}%`, @@ -45320,18 +45183,1133 @@ })] }) })); + const Cg = Object.prototype.toString; + + function Ag(e) { + switch (Cg.call(e)) { + case "[object Error]": + case "[object Exception]": + case "[object DOMException]": + return !0; + default: + return zg(e, Error) + } + } + + function Pg(e, t) { + return Cg.call(e) === `[object ${t}]` + } + + function Tg(e) { + return Pg(e, "ErrorEvent") + } + + function Rg(e) { + return Pg(e, "DOMError") + } + + function Dg(e) { + return Pg(e, "String") + } + + function Lg(e) { + return "object" === typeof e && null !== e && "__sentry_template_string__" in e && "__sentry_template_values__" in e + } + + function Ng(e) { + return null === e || Lg(e) || "object" !== typeof e && "function" !== typeof e + } + + function jg(e) { + return Pg(e, "Object") + } + + function Mg(e) { + return "undefined" !== typeof Event && zg(e, Event) + } + + function Fg(e) { + return Boolean(e && e.then && "function" === typeof e.then) + } + + function zg(e, t) { + try { + return e instanceof t + } catch (n) { + return !1 + } + } + + function Vg(e) { + return !("object" !== typeof e || null === e || !e.__isVue && !e._isVue) + } + const Ug = "8.33.1", + Bg = globalThis; + + function Gg(e, t, n) { + const r = n || Bg, + i = r.__SENTRY__ = r.__SENTRY__ || {}, + a = i[Ug] = i[Ug] || {}; + return a[e] || (a[e] = t()) + } + const $g = Bg; + + function qg(e, t = {}) { + if (!e) return ""; + try { + let n = e; + const r = 5, + i = []; + let a = 0, + o = 0; + const s = " > ", + l = s.length; + let c; + const u = Array.isArray(t) ? t : t.keyAttrs, + d = !Array.isArray(t) && t.maxStringLength || 80; + for (; n && a++ < r && (c = Wg(n, u), !("html" === c || a > 1 && o + i.length * l + c.length >= d));) i.push(c), o += c.length, n = n.parentNode; + return i.reverse().join(s) + } catch (n) { + return "" + } + } + + function Wg(e, t) { + const n = e, + r = []; + if (!n || !n.tagName) return ""; + if ($g.HTMLElement && n instanceof HTMLElement && n.dataset) { + if (n.dataset.sentryComponent) return n.dataset.sentryComponent; + if (n.dataset.sentryElement) return n.dataset.sentryElement + } + r.push(n.tagName.toLowerCase()); + const i = t && t.length ? t.filter((e => n.getAttribute(e))).map((e => [e, n.getAttribute(e)])) : null; + if (i && i.length) i.forEach((e => { + r.push(`[${e[0]}="${e[1]}"]`) + })); + else { + n.id && r.push(`#${n.id}`); + const e = n.className; + if (e && Dg(e)) { + const t = e.split(/\s+/); + for (const e of t) r.push(`.${e}`) + } + } + const a = ["aria-label", "type", "name", "title", "alt"]; + for (const o of a) { + const e = n.getAttribute(o); + e && r.push(`[${o}="${e}"]`) + } + return r.join("") + } + + function Hg() { + try { + return $g.document.location.href + } catch (_u) { + return "" + } + } + + function Kg(e) { + if (!$g.HTMLElement) return null; + let t = e; + for (let n = 0; n < 5; n++) { + if (!t) return null; + if (t instanceof HTMLElement) { + if (t.dataset.sentryComponent) return t.dataset.sentryComponent; + if (t.dataset.sentryElement) return t.dataset.sentryElement + } + t = t.parentNode + } + return null + } + const Yg = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, + Qg = ["debug", "info", "warn", "error", "log", "assert", "trace"], + Zg = {}; + + function Xg(e) { + if (!("console" in Bg)) return e(); + const t = Bg.console, + n = {}, + r = Object.keys(Zg); + r.forEach((e => { + const r = Zg[e]; + n[e] = t[e], t[e] = r + })); + try { + return e() + } finally { + r.forEach((e => { + t[e] = n[e] + })) + } + } + const Jg = Gg("logger", (function() { + let e = !1; + const t = { + enable: () => { + e = !0 + }, + disable: () => { + e = !1 + }, + isEnabled: () => e + }; + return Yg ? Qg.forEach((n => { + t[n] = (...t) => { + e && Xg((() => { + Bg.console[n](`Sentry Logger [${n}]:`, ...t) + })) + } + })) : Qg.forEach((e => { + t[e] = () => {} + })), t + })); + + function ev(e, t = 0) { + return "string" !== typeof e || 0 === t || e.length <= t ? e : `${e.slice(0,t)}...` + } + + function tv(e, t) { + if (!Array.isArray(e)) return ""; + const n = []; + for (let i = 0; i < e.length; i++) { + const t = e[i]; + try { + Vg(t) ? n.push("[VueViewModel]") : n.push(String(t)) + } catch (r) { + n.push("[value cannot be serialized]") + } + } + return n.join(t) + } + + function nv(e, t, n = !1) { + return !!Dg(e) && (Pg(t, "RegExp") ? t.test(e) : !!Dg(t) && (n ? e === t : e.includes(t))) + } + + function rv(e, t = [], n = !1) { + return t.some((t => nv(e, t, n))) + } + + function iv(e, t, n) { + if (!(t in e)) return; + const r = e[t], + i = n(r); + "function" === typeof i && ov(i, r), e[t] = i + } + + function av(e, t, n) { + try { + Object.defineProperty(e, t, { + value: n, + writable: !0, + configurable: !0 + }) + } catch (r) { + Yg && Jg.log(`Failed to add non-enumerable property "${t}" to object`, e) + } + } + + function ov(e, t) { + try { + const n = t.prototype || {}; + e.prototype = t.prototype = n, av(e, "__sentry_original__", t) + } catch (n) {} + } + + function sv(e) { + return e.__sentry_original__ + } function lv(e) { - if ("boolean" === typeof __SENTRY_TRACING__ && !__SENTRY_TRACING__) return !1; - const t = e || function() { - const e = zn(); - return e && e.getOptions() - }(); - return !!t && (t.enableTracing || "tracesSampleRate" in t || "tracesSampler" in t) + if (Ag(e)) return { + message: e.message, + name: e.name, + stack: e.stack, + ...uv(e) + }; + if (Mg(e)) { + const t = { + type: e.type, + target: cv(e.target), + currentTarget: cv(e.currentTarget), + ...uv(e) + }; + return "undefined" !== typeof CustomEvent && zg(e, CustomEvent) && (t.detail = e.detail), t + } + return e } - class cv { + + function cv(e) { + try { + return t = e, "undefined" !== typeof Element && zg(t, Element) ? qg(e) : Object.prototype.toString.call(e) + } catch (n) { + return "" + } + var t + } + + function uv(e) { + if ("object" === typeof e && null !== e) { + const t = {}; + for (const n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); + return t + } + return {} + } + + function dv(e) { + return pv(e, new Map) + } + + function pv(e, t) { + if (function(e) { + if (!jg(e)) return !1; + try { + const t = Object.getPrototypeOf(e).constructor.name; + return !t || "Object" === t + } catch (t) { + return !0 + } + }(e)) { + const n = t.get(e); + if (void 0 !== n) return n; + const r = {}; + t.set(e, r); + for (const i of Object.getOwnPropertyNames(e)) "undefined" !== typeof e[i] && (r[i] = pv(e[i], t)); + return r + } + if (Array.isArray(e)) { + const n = t.get(e); + if (void 0 !== n) return n; + const r = []; + return t.set(e, r), e.forEach((e => { + r.push(pv(e, t)) + })), r + } + return e + } + const hv = "baggage", + fv = "sentry-", + mv = /^sentry-/; + + function gv(e) { + const t = function(e) { + if (!e || !Dg(e) && !Array.isArray(e)) return; + if (Array.isArray(e)) return e.reduce(((e, t) => { + const n = yv(t); + return Object.entries(n).forEach((([t, n]) => { + e[t] = n + })), e + }), {}); + return yv(e) + }(e); + if (!t) return; + const n = Object.entries(t).reduce(((e, [t, n]) => { + if (t.match(mv)) { + e[t.slice(fv.length)] = n + } + return e + }), {}); + return Object.keys(n).length > 0 ? n : void 0 + } + + function vv(e) { + if (!e) return; + return function(e) { + if (0 === Object.keys(e).length) return; + return Object.entries(e).reduce(((e, [t, n], r) => { + const i = `${encodeURIComponent(t)}=${encodeURIComponent(n)}`, + a = 0 === r ? i : `${e},${i}`; + return a.length > 8192 ? (Yg && Jg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`), e) : a + }), "") + }(Object.entries(e).reduce(((e, [t, n]) => (n && (e[`${fv}${t}`] = n), e)), {})) + } + + function yv(e) { + return e.split(",").map((e => e.split("=").map((e => decodeURIComponent(e.trim()))))).reduce(((e, [t, n]) => (t && n && (e[t] = n), e)), {}) + } + + function _v() { + const e = Bg, + t = e.crypto || e.msCrypto; + let n = () => 16 * Math.random(); + try { + if (t && t.randomUUID) return t.randomUUID().replace(/-/g, ""); + t && t.getRandomValues && (n = () => { + const e = new Uint8Array(1); + return t.getRandomValues(e), e[0] + }) + } catch (eo) {} + return ([1e7] + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, (e => (e ^ (15 & n()) >> e / 4).toString(16))) + } + + function bv(e) { + return e.exception && e.exception.values ? e.exception.values[0] : void 0 + } + + function xv(e) { + const { + message: t, + event_id: n + } = e; + if (t) return t; + const r = bv(e); + return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "" : n || "" + } + + function kv(e, t, n) { + const r = e.exception = e.exception || {}, + i = r.values = r.values || [], + a = i[0] = i[0] || {}; + a.value || (a.value = t || ""), a.type || (a.type = n || "Error") + } + + function wv(e, t) { + const n = bv(e); + if (!n) return; + const r = n.mechanism; + if (n.mechanism = { + type: "generic", + handled: !0, + ...r, + ...t + }, t && "data" in t) { + const e = { + ...r && r.data, + ...t.data + }; + n.mechanism.data = e + } + } + + function Sv(e) { + if (e && e.__sentry_captured__) return !0; + try { + av(e, "__sentry_captured__", !0) + } catch (t) {} + return !1 + } + + function Ev(e) { + return Array.isArray(e) ? e : [e] + } + const Ov = new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"); + + function Iv(e, t) { + const n = function(e) { + if (!e) return; + const t = e.match(Ov); + if (!t) return; + let n; + return "1" === t[3] ? n = !0 : "0" === t[3] && (n = !1), { + traceId: t[1], + parentSampled: n, + parentSpanId: t[2] + } + }(e), + r = gv(t), + { + traceId: i, + parentSpanId: a, + parentSampled: o + } = n || {}; + return n ? { + traceId: i || _v(), + parentSpanId: a || _v().substring(16), + spanId: _v().substring(16), + sampled: o, + dsc: r || {} + } : { + traceId: i || _v(), + spanId: _v().substring(16) + } + } + + function Cv(e = _v(), t = _v().substring(16), n) { + let r = ""; + return void 0 !== n && (r = n ? "-1" : "-0"), `${e}-${t}${r}` + } + + function Av() { + return Date.now() / 1e3 + } + const Pv = function() { + const { + performance: e + } = Bg; + if (!e || !e.now) return Av; + const t = Date.now() - e.now(), + n = void 0 == e.timeOrigin ? t : e.timeOrigin; + return () => (n + e.now()) / 1e3 + }(); + let Tv; + const Rv = (() => { + const { + performance: e + } = Bg; + if (!e || !e.now) return void(Tv = "none"); + const t = 36e5, + n = e.now(), + r = Date.now(), + i = e.timeOrigin ? Math.abs(e.timeOrigin + n - r) : t, + a = i < t, + o = e.timing && e.timing.navigationStart, + s = "number" === typeof o ? Math.abs(o + n - r) : t; + return a || s < t ? i <= s ? (Tv = "timeOrigin", e.timeOrigin) : (Tv = "navigationStart", o) : (Tv = "dateNow", r) + })(); + + function Dv() { + return Lv(Bg), Bg + } + + function Lv(e) { + const t = e.__SENTRY__ = e.__SENTRY__ || {}; + return t.version = t.version || Ug, t[Ug] = t[Ug] || {} + } + + function Nv() { + return { + traceId: _v(), + spanId: _v().substring(16) + } + } + + function jv(e) { + const t = Pv(), + n = { + sid: _v(), + init: !0, + timestamp: t, + started: t, + duration: 0, + status: "ok", + errors: 0, + ignoreDuration: !1, + toJSON: () => function(e) { + return dv({ + sid: `${e.sid}`, + init: e.init, + started: new Date(1e3 * e.started).toISOString(), + timestamp: new Date(1e3 * e.timestamp).toISOString(), + status: e.status, + errors: e.errors, + did: "number" === typeof e.did || "string" === typeof e.did ? `${e.did}` : void 0, + duration: e.duration, + abnormal_mechanism: e.abnormal_mechanism, + attrs: { + release: e.release, + environment: e.environment, + ip_address: e.ipAddress, + user_agent: e.userAgent + } + }) + }(n) + }; + return e && Mv(n, e), n + } + + function Mv(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 || Pv(), t.abnormal_mechanism && (e.abnormal_mechanism = t.abnormal_mechanism), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = 32 === t.sid.length ? t.sid : _v()), 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 { + const t = e.timestamp - e.started; + e.duration = t >= 0 ? t : 0 + } + 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) + } + const Fv = "_sentrySpan"; + + function zv(e, t) { + t ? av(e, Fv, t) : delete e[Fv] + } + + function Vv(e) { + return e[Fv] + } + class Uv { + constructor() { + this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = Nv() + } + clone() { + const e = new Uv; + return e._breadcrumbs = [...this._breadcrumbs], e._tags = { + ...this._tags + }, e._extra = { + ...this._extra + }, e._contexts = { + ...this._contexts + }, e._user = this._user, e._level = this._level, e._session = this._session, e._transactionName = this._transactionName, e._fingerprint = this._fingerprint, e._eventProcessors = [...this._eventProcessors], e._requestSession = this._requestSession, e._attachments = [...this._attachments], e._sdkProcessingMetadata = { + ...this._sdkProcessingMetadata + }, e._propagationContext = { + ...this._propagationContext + }, e._client = this._client, e._lastEventId = this._lastEventId, zv(e, Vv(this)), e + } + setClient(e) { + this._client = e + } + setLastEventId(e) { + this._lastEventId = e + } + getClient() { + return this._client + } + lastEventId() { + return this._lastEventId + } + addScopeListener(e) { + this._scopeListeners.push(e) + } + addEventProcessor(e) { + return this._eventProcessors.push(e), this + } + setUser(e) { + return this._user = e || { + email: void 0, + id: void 0, + ip_address: void 0, + username: void 0 + }, this._session && Mv(this._session, { + user: e + }), this._notifyScopeListeners(), this + } + getUser() { + return this._user + } + getRequestSession() { + return this._requestSession + } + setRequestSession(e) { + return this._requestSession = e, this + } + setTags(e) { + return this._tags = { + ...this._tags, + ...e + }, this._notifyScopeListeners(), this + } + setTag(e, t) { + return this._tags = { + ...this._tags, + [e]: t + }, this._notifyScopeListeners(), this + } + setExtras(e) { + return this._extra = { + ...this._extra, + ...e + }, this._notifyScopeListeners(), this + } + setExtra(e, t) { + return this._extra = { + ...this._extra, + [e]: t + }, this._notifyScopeListeners(), this + } + setFingerprint(e) { + return this._fingerprint = e, this._notifyScopeListeners(), this + } + setLevel(e) { + return this._level = e, this._notifyScopeListeners(), this + } + setTransactionName(e) { + return this._transactionName = e, this._notifyScopeListeners(), this + } + setContext(e, t) { + return null === t ? delete this._contexts[e] : this._contexts[e] = t, this._notifyScopeListeners(), this + } + setSession(e) { + return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this + } + getSession() { + return this._session + } + update(e) { + if (!e) return this; + const t = "function" === typeof e ? e(this) : e, + [n, r] = t instanceof Bv ? [t.getScopeData(), t.getRequestSession()] : jg(t) ? [e, e.requestSession] : [], + { + tags: i, + extra: a, + user: o, + contexts: s, + level: l, + fingerprint: c = [], + propagationContext: u + } = n || {}; + return this._tags = { + ...this._tags, + ...i + }, this._extra = { + ...this._extra, + ...a + }, this._contexts = { + ...this._contexts, + ...s + }, o && Object.keys(o).length && (this._user = o), l && (this._level = l), c.length && (this._fingerprint = c), u && (this._propagationContext = u), r && (this._requestSession = r), this + } + clear() { + return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._session = void 0, zv(this, void 0), this._attachments = [], this._propagationContext = Nv(), this._notifyScopeListeners(), this + } + addBreadcrumb(e, t) { + const n = "number" === typeof t ? t : 100; + if (n <= 0) return this; + const r = { + timestamp: Av(), + ...e + }, + i = this._breadcrumbs; + return i.push(r), this._breadcrumbs = i.length > n ? i.slice(-n) : i, this._notifyScopeListeners(), this + } + getLastBreadcrumb() { + return this._breadcrumbs[this._breadcrumbs.length - 1] + } + clearBreadcrumbs() { + return this._breadcrumbs = [], this._notifyScopeListeners(), this + } + addAttachment(e) { + return this._attachments.push(e), this + } + clearAttachments() { + return this._attachments = [], this + } + getScopeData() { + return { + breadcrumbs: this._breadcrumbs, + attachments: this._attachments, + contexts: this._contexts, + tags: this._tags, + extra: this._extra, + user: this._user, + level: this._level, + fingerprint: this._fingerprint || [], + eventProcessors: this._eventProcessors, + propagationContext: this._propagationContext, + sdkProcessingMetadata: this._sdkProcessingMetadata, + transactionName: this._transactionName, + span: Vv(this) + } + } + setSDKProcessingMetadata(e) { + return this._sdkProcessingMetadata = { + ...this._sdkProcessingMetadata, + ...e + }, this + } + setPropagationContext(e) { + return this._propagationContext = e, this + } + getPropagationContext() { + return this._propagationContext + } + captureException(e, t) { + const n = t && t.event_id ? t.event_id : _v(); + if (!this._client) return Jg.warn("No client configured on scope - will not capture exception!"), n; + const r = new Error("Sentry syntheticException"); + return this._client.captureException(e, { + originalException: e, + syntheticException: r, + ...t, + event_id: n + }, this), n + } + captureMessage(e, t, n) { + const r = n && n.event_id ? n.event_id : _v(); + if (!this._client) return Jg.warn("No client configured on scope - will not capture message!"), r; + const i = new Error(e); + return this._client.captureMessage(e, t, { + originalException: e, + syntheticException: i, + ...n, + event_id: r + }, this), r + } + captureEvent(e, t) { + const n = t && t.event_id ? t.event_id : _v(); + return this._client ? (this._client.captureEvent(e, { + ...t, + event_id: n + }, this), n) : (Jg.warn("No client configured on scope - will not capture event!"), n) + } + _notifyScopeListeners() { + this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach((e => { + e(this) + })), this._notifyingListeners = !1) + } + } + const Bv = Uv; + class Gv { + constructor(e, t) { + let n, r; + n = e || new Bv, r = t || new Bv, this._stack = [{ + scope: n + }], this._isolationScope = r + } + withScope(e) { + const t = this._pushScope(); + let n; + try { + n = e(t) + } catch (r) { + throw this._popScope(), r + } + return Fg(n) ? n.then((e => (this._popScope(), e)), (e => { + throw this._popScope(), e + })) : (this._popScope(), n) + } + getClient() { + return this.getStackTop().client + } + getScope() { + return this.getStackTop().scope + } + getIsolationScope() { + return this._isolationScope + } + getStackTop() { + return this._stack[this._stack.length - 1] + } + _pushScope() { + const e = this.getScope().clone(); + return this._stack.push({ + client: this.getClient(), + scope: e + }), e + } + _popScope() { + return !(this._stack.length <= 1) && !!this._stack.pop() + } + } + + function $v() { + const e = Lv(Dv()); + return e.stack = e.stack || new Gv(Gg("defaultCurrentScope", (() => new Bv)), Gg("defaultIsolationScope", (() => new Bv))) + } + + function qv(e) { + return $v().withScope(e) + } + + function Wv(e, t) { + const n = $v(); + return n.withScope((() => (n.getStackTop().scope = e, t(e)))) + } + + function Hv(e) { + return $v().withScope((() => e($v().getIsolationScope()))) + } + + function Kv(e) { + const t = Lv(e); + return t.acs ? t.acs : { + withIsolationScope: Hv, + withScope: qv, + withSetScope: Wv, + withSetIsolationScope: (e, t) => Hv(t), + getCurrentScope: () => $v().getScope(), + getIsolationScope: () => $v().getIsolationScope() + } + } + + function Yv() { + return Kv(Dv()).getCurrentScope() + } + + function Qv() { + return Kv(Dv()).getIsolationScope() + } + + function Zv(...e) { + const t = Kv(Dv()); + if (2 === e.length) { + const [n, r] = e; + return n ? t.withSetScope(n, r) : t.withScope(r) + } + return t.withScope(e[0]) + } + + function Xv() { + return Yv().getClient() + } + const Jv = "_sentryMetrics"; + + function ey(e) { + const t = e[Jv]; + if (!t) return; + const n = {}; + for (const [, [r, i]] of t) { + (n[r] || (n[r] = [])).push(dv(i)) + } + return n + } + const ty = "sentry.source", + ny = "sentry.sample_rate", + ry = "sentry.op", + iy = "sentry.origin", + ay = "sentry.idle_span_finish_reason", + oy = "sentry.measurement_unit", + sy = "sentry.measurement_value", + ly = "sentry.exclusive_time"; + + function cy(e, t) { + e.setAttribute("http.response.status_code", t); + const n = function(e) { + if (e < 400 && e >= 100) return { + code: 1 + }; + if (e >= 400 && e < 500) switch (e) { + case 401: + return { + code: 2, message: "unauthenticated" + }; + case 403: + return { + code: 2, message: "permission_denied" + }; + case 404: + return { + code: 2, message: "not_found" + }; + case 409: + return { + code: 2, message: "already_exists" + }; + case 413: + return { + code: 2, message: "failed_precondition" + }; + case 429: + return { + code: 2, message: "resource_exhausted" + }; + case 499: + return { + code: 2, message: "cancelled" + }; + default: + return { + code: 2, message: "invalid_argument" + } + } + if (e >= 500 && e < 600) switch (e) { + case 501: + return { + code: 2, message: "unimplemented" + }; + case 503: + return { + code: 2, message: "unavailable" + }; + case 504: + return { + code: 2, message: "deadline_exceeded" + }; + default: + return { + code: 2, message: "internal_error" + } + } + return { + code: 2, + message: "unknown_error" + } + }(t); + "unknown_error" !== n.message && e.setStatus(n) + } + + function uy(e) { + const { + spanId: t, + traceId: n + } = e.spanContext(), { + data: r, + op: i, + parent_span_id: a, + status: o, + origin: s + } = my(e); + return dv({ + parent_span_id: a, + span_id: t, + trace_id: n, + data: r, + op: i, + status: o, + origin: s + }) + } + + function dy(e) { + const { + spanId: t, + traceId: n + } = e.spanContext(), { + parent_span_id: r + } = my(e); + return dv({ + parent_span_id: r, + span_id: t, + trace_id: n + }) + } + + function py(e) { + const { + traceId: t, + spanId: n + } = e.spanContext(); + return Cv(t, n, gy(e)) + } + + function hy(e) { + return "number" === typeof e ? fy(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? fy(e.getTime()) : Pv() + } + + function fy(e) { + return e > 9999999999 ? e / 1e3 : e + } + + function my(e) { + if (function(e) { + return "function" === typeof e.getSpanJSON + }(e)) return e.getSpanJSON(); + try { + const { + spanId: t, + traceId: n + } = e.spanContext(); + if (function(e) { + const t = e; + return !!t.attributes && !!t.startTime && !!t.name && !!t.endTime && !!t.status + }(e)) { + const { + attributes: r, + startTime: i, + name: a, + endTime: o, + parentSpanId: s, + status: l + } = e; + return dv({ + span_id: t, + trace_id: n, + data: r, + description: a, + parent_span_id: s, + start_timestamp: hy(i), + timestamp: hy(o) || void 0, + status: vy(l), + op: r[ry], + origin: r[iy], + _metrics_summary: ey(e) + }) + } + return { + span_id: t, + trace_id: n + } + } catch (t) { + return {} + } + } + + function gy(e) { + const { + traceFlags: t + } = e.spanContext(); + return 1 === t + } + + function vy(e) { + if (e && 0 !== e.code) return 1 === e.code ? "ok" : e.message || "unknown_error" + } + const yy = "_sentryChildSpans", + _y = "_sentryRootSpan"; + + function by(e, t) { + const n = e[_y] || e; + av(t, _y, n), e[yy] ? e[yy].add(t) : av(e, yy, new Set([t])) + } + + function xy(e) { + const t = new Set; + return function e(n) { + if (!t.has(n) && gy(n)) { + t.add(n); + const r = n[yy] ? Array.from(n[yy]) : []; + for (const t of r) e(t) + } + }(e), Array.from(t) + } + + function ky(e) { + return e[_y] || e + } + + function wy() { + const e = Kv(Dv()); + return e.getActiveSpan ? e.getActiveSpan() : Vv(Yv()) + } + + function Sy(e) { + if ("boolean" === typeof __SENTRY_TRACING__ && !__SENTRY_TRACING__) return !1; + const t = Xv(), + n = e || t && t.getOptions(); + return !!n && (n.enableTracing || "tracesSampleRate" in n || "tracesSampler" in n) + } + const Ey = "production", + Oy = "_frozenDsc"; + + function Iy(e, t) { + av(e, Oy, t) + } + + function Cy(e, t) { + const n = t.getOptions(), + { + publicKey: r + } = t.getDsn() || {}, + i = dv({ + environment: n.environment || Ey, + release: n.release, + public_key: r, + trace_id: e + }); + return t.emit("createDsc", i), i + } + + function Ay(e) { + const t = Xv(); + if (!t) return {}; + const n = Cy(my(e).trace_id || "", t), + r = ky(e), + i = r[Oy]; + if (i) return i; + const a = r.spanContext().traceState, + o = a && a.get("sentry.dsc"), + s = o && gv(o); + if (s) return s; + const l = my(r), + c = l.data || {}, + u = c[ny]; + null != u && (n.sample_rate = `${u}`); + const d = c[ty], + p = l.description; + return "url" !== d && p && (n.transaction = p), Sy() && (n.sampled = String(gy(r))), t.emit("createDsc", n, r), n + } + const Py = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; + + function Ty(e) { + if ("boolean" === typeof e) return Number(e); + const t = "string" === typeof e ? parseFloat(e) : e; + if (!("number" !== typeof t || isNaN(t) || t < 0 || t > 1)) return t; + Py && Jg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`) + } + class Ry { constructor(e = {}) { - this._traceId = e.traceId || dn(), this._spanId = e.spanId || dn().substring(16) + this._traceId = e.traceId || _v(), this._spanId = e.spanId || _v().substring(16) } spanContext() { return { @@ -45367,34 +46345,366 @@ } recordException(e, t) {} } + const Dy = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/; - function uv(e) { + function Ly(e, t = !1) { + const { + host: n, + path: r, + pass: i, + port: a, + projectId: o, + protocol: s, + publicKey: l + } = e; + return `${s}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${o}` + } + + function Ny(e) { + return { + protocol: e.protocol, + publicKey: e.publicKey || "", + pass: e.pass || "", + host: e.host, + port: e.port || "", + path: e.path || "", + projectId: e.projectId + } + } + + function jy(e) { + const t = "string" === typeof e ? function(e) { + const t = Dy.exec(e); + if (!t) return void Xg((() => { + console.error(`Invalid Sentry Dsn: ${e}`) + })); + const [n, r, i = "", a = "", o = "", s = ""] = t.slice(1); + let l = "", + c = s; + const u = c.split("/"); + if (u.length > 1 && (l = u.slice(0, -1).join("/"), c = u.pop()), c) { + const e = c.match(/^\d+/); + e && (c = e[0]) + } + return Ny({ + host: a, + pass: i, + path: l, + projectId: c, + port: o, + protocol: n, + publicKey: r + }) + }(e) : Ny(e); + if (t && function(e) { + if (!Yg) return !0; + const { + port: t, + projectId: n, + protocol: r + } = e; + return !["protocol", "publicKey", "host", "projectId"].find((t => !e[t] && (Jg.error(`Invalid Sentry Dsn: ${t} missing`), !0))) && (n.match(/^\d+$/) ? function(e) { + return "http" === e || "https" === e + }(r) ? !t || !isNaN(parseInt(t, 10)) || (Jg.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : (Jg.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (Jg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1)) + }(t)) return t + } + const My = "?", + Fy = /\(error: (.*)\)/, + zy = /captureMessage|captureException/; + + function Vy(...e) { + const t = e.sort(((e, t) => e[0] - t[0])).map((e => e[1])); + return (e, n = 0, r = 0) => { + const i = [], + a = e.split("\n"); + for (let o = n; o < a.length; o++) { + const e = a[o]; + if (e.length > 1024) continue; + const n = Fy.test(e) ? e.replace(Fy, "$1") : e; + if (!n.match(/\S*Error: /)) { + for (const e of t) { + const t = e(n); + if (t) { + i.push(t); + break + } + } + if (i.length >= 50 + r) break + } + } + return Uy(i.slice(r)) + } + } + + function Uy(e) { + if (!e.length) return []; + const t = Array.from(e); + return /sentryWrapped/.test(By(t).function || "") && t.pop(), t.reverse(), zy.test(By(t).function || "") && (t.pop(), zy.test(By(t).function || "") && t.pop()), t.slice(0, 50).map((e => ({ + ...e, + filename: e.filename || By(t).filename, + function: e.function || My + }))) + } + + function By(e) { + return e[e.length - 1] || {} + } + const Gy = ""; + + function $y(e) { + try { + return e && "function" === typeof e && e.name || Gy + } catch (t) { + return Gy + } + } + + function qy(e) { + const t = e.exception; + if (t) { + const e = []; + try { + return t.values.forEach((t => { + t.stacktrace.frames && e.push(...t.stacktrace.frames) + })), e + } catch (n) { + return + } + } + } + + function Wy(e, t = 100, n = 1 / 0) { + try { + return Ky("", e, t, n) + } catch (r) { + return { + ERROR: `**non-serializable** (${r})` + } + } + } + + function Hy(e, t = 3, n = 102400) { + const r = Wy(e, t); + return i = r, + function(e) { + return ~-encodeURI(e).split(/%..|./).length + }(JSON.stringify(i)) > n ? Hy(e, t - 1, n) : r; + var i + } + + function Ky(e, t, n = 1 / 0, r = 1 / 0, i = function() { + const e = "function" === typeof WeakSet, + t = e ? new WeakSet : []; + return [function(n) { + if (e) return !!t.has(n) || (t.add(n), !1); + for (let e = 0; e < t.length; e++) + if (t[e] === n) return !0; + return t.push(n), !1 + }, function(n) { + if (e) t.delete(n); + else + for (let e = 0; e < t.length; e++) + if (t[e] === n) { + t.splice(e, 1); + break + } + }] + }()) { + const [a, o] = i; + if (null == t || ["boolean", "string"].includes(typeof t) || "number" === typeof t && Number.isFinite(t)) return t; + const s = function(e, t) { + try { + if ("domain" === e && t && "object" === typeof t && t._events) return "[Domain]"; + if ("domainEmitter" === e) return "[DomainEmitter]"; + if ("undefined" !== typeof global && t === global) return "[Global]"; + if ("undefined" !== typeof window && t === window) return "[Window]"; + if ("undefined" !== typeof document && t === document) return "[Document]"; + if (Vg(t)) return "[VueViewModel]"; + if (jg(n = t) && "nativeEvent" in n && "preventDefault" in n && "stopPropagation" in n) return "[SyntheticEvent]"; + if ("number" === typeof t && !Number.isFinite(t)) return `[${t}]`; + if ("function" === typeof t) return `[Function: ${$y(t)}]`; + if ("symbol" === typeof t) return `[${String(t)}]`; + if ("bigint" === typeof t) return `[BigInt: ${String(t)}]`; + const r = function(e) { + const t = Object.getPrototypeOf(e); + return t ? t.constructor.name : "null prototype" + }(t); + return /^HTML(\w*)Element$/.test(r) ? `[HTMLElement: ${r}]` : `[object ${r}]` + } catch (r) { + return `**non-serializable** (${r})` + } + var n + }(e, t); + if (!s.startsWith("[object ")) return s; + if (t.__sentry_skip_normalization__) return t; + const l = "number" === typeof t.__sentry_override_normalization_depth__ ? t.__sentry_override_normalization_depth__ : n; + if (0 === l) return s.replace("object ", ""); + if (a(t)) return "[Circular ~]"; + const c = t; + if (c && "function" === typeof c.toJSON) try { + return Ky("", c.toJSON(), l - 1, r, i) + } catch (h) {} + const u = Array.isArray(t) ? [] : {}; + let d = 0; + const p = lv(t); + for (const f in p) { + if (!Object.prototype.hasOwnProperty.call(p, f)) continue; + if (d >= r) { + u[f] = "[MaxProperties ~]"; + break + } + const e = p[f]; + u[f] = Ky(f, e, l - 1, r, i), d++ + } + return o(t), u + } + + function Yy(e, t = []) { + return [e, t] + } + + function Qy(e, t) { + const [n, r] = e; + return [n, [...r, t]] + } + + function Zy(e, t) { + const n = e[1]; + for (const r of n) { + if (t(r, r[0].type)) return !0 + } + return !1 + } + + function Xy(e) { + return Bg.__SENTRY__ && Bg.__SENTRY__.encodePolyfill ? Bg.__SENTRY__.encodePolyfill(e) : (new TextEncoder).encode(e) + } + + function Jy(e) { + const [t, n] = e; + let r = JSON.stringify(t); + + function i(e) { + "string" === typeof r ? r = "string" === typeof e ? r + e : [Xy(r), e] : r.push("string" === typeof e ? Xy(e) : e) + } + for (const o of n) { + const [e, t] = o; + if (i(`\n${JSON.stringify(e)}\n`), "string" === typeof t || t instanceof Uint8Array) i(t); + else { + let e; + try { + e = JSON.stringify(t) + } catch (a) { + e = JSON.stringify(Wy(t)) + } + i(e) + } + } + return "string" === typeof r ? r : function(e) { + const t = e.reduce(((e, t) => e + t.length), 0), + n = new Uint8Array(t); + let r = 0; + for (const i of e) n.set(i, r), r += i.length; + return n + }(r) + } + + function e_(e) { + return [{ + type: "span" + }, e] + } + + function t_(e) { + const t = "string" === typeof e.data ? Xy(e.data) : e.data; + return [dv({ + type: "attachment", + length: t.length, + filename: e.filename, + content_type: e.contentType, + attachment_type: e.attachmentType + }), t] + } + const n_ = { + session: "session", + sessions: "session", + attachment: "attachment", + transaction: "transaction", + event: "error", + client_report: "internal", + user_report: "default", + profile: "profile", + profile_chunk: "profile", + replay_event: "replay", + replay_recording: "replay", + check_in: "monitor", + feedback: "feedback", + span: "span", + statsd: "metric_bucket" + }; + + function r_(e) { + return n_[e] + } + + function i_(e) { + if (!e || !e.sdk) return; + const { + name: t, + version: n + } = e.sdk; + return { + name: t, + version: n + } + } + + function a_(e, t, n, r) { + const i = e.sdkProcessingMetadata && e.sdkProcessingMetadata.dynamicSamplingContext; + return { + event_id: e.event_id, + sent_at: (new Date).toISOString(), + ...t && { + sdk: t + }, + ...!!n && r && { + dsn: Ly(r) + }, + ...i && { + trace: dv({ + ...i + }) + } + } + } + + function o_(e) { if (!e || 0 === e.length) return; const t = {}; return e.forEach((e => { const n = e.attributes || {}, - r = n[mr], - i = n[gr]; + r = n[oy], + i = n[sy]; "string" === typeof r && "number" === typeof i && (t[e.name] = { value: i, unit: r }) })), t } - const dv = "_sentryScope", - pv = "_sentryIsolationScope"; + const s_ = "_sentryScope", + l_ = "_sentryIsolationScope"; - function hv(e) { + function c_(e) { return { - scope: e[dv], - isolationScope: e[pv] + scope: e[s_], + isolationScope: e[l_] } } - class fv { + class u_ { constructor(e = {}) { - this._traceId = e.traceId || dn(), this._spanId = e.spanId || dn().substring(16), this._startTime = e.startTimestamp || bn(), this._attributes = {}, this.setAttributes({ - [hr]: "manual", - [pr]: e.op, + this._traceId = e.traceId || _v(), this._spanId = e.spanId || _v().substring(16), this._startTime = e.startTimestamp || Pv(), this._attributes = {}, this.setAttributes({ + [iy]: "manual", + [ry]: e.op, ...e.attributes }), this._name = e.name, e.parentSpanId && (this._parentSpanId = e.parentSpanId), "sampled" in e && (this._sampled = e.sampled), e.endTimestamp && (this._endTime = e.endTimestamp), this._events = [], this._isStandaloneSpan = e.isStandalone, this._endTime && this._onSpanEnded() } @@ -45424,7 +46734,7 @@ return Object.keys(e).forEach((t => this.setAttribute(t, e[t]))), this } updateStartTime(e) { - this._startTime = Or(e) + this._startTime = hy(e) } setStatus(e) { return this._status = e, this @@ -45433,47 +46743,47 @@ return this._name = e, this } end(e) { - this._endTime || (this._endTime = Or(e), function(e) { - if (!nr) return; + this._endTime || (this._endTime = hy(e), function(e) { + if (!Py) return; const { description: t = "< unknown name >", op: n = "< unknown op >" - } = Ar(e), { + } = my(e), { spanId: r - } = e.spanContext(), i = `[Tracing] Finishing "${n}" ${Mr(e)===e?"root ":""}span "${t}" with ID ${r}`; - Qt.log(i) + } = e.spanContext(), i = `[Tracing] Finishing "${n}" ${ky(e)===e?"root ":""}span "${t}" with ID ${r}`; + Jg.log(i) }(this), this._onSpanEnded()) } getSpanJSON() { - return cn({ + return dv({ data: this._attributes, description: this._name, - op: this._attributes[pr], + op: this._attributes[ry], parent_span_id: this._parentSpanId, span_id: this._spanId, start_timestamp: this._startTime, - status: Tr(this._status), + status: vy(this._status), timestamp: this._endTime, trace_id: this._traceId, - origin: this._attributes[hr], - _metrics_summary: kr(this), + origin: this._attributes[iy], + _metrics_summary: ey(this), profile_id: this._attributes["sentry.profile_id"], - exclusive_time: this._attributes[vr], - measurements: uv(this._events), - is_segment: this._isStandaloneSpan && Mr(this) === this || void 0, - segment_id: this._isStandaloneSpan ? Mr(this).spanContext().spanId : void 0 + exclusive_time: this._attributes[ly], + measurements: o_(this._events), + is_segment: this._isStandaloneSpan && ky(this) === this || void 0, + segment_id: this._isStandaloneSpan ? ky(this).spanContext().spanId : void 0 }) } isRecording() { return !this._endTime && !!this._sampled } addEvent(e, t, n) { - nr && Qt.log("[Tracing] Adding an event to span:", e); - const r = mv(t) ? t : n || bn(), - i = mv(t) ? {} : t || {}, + Py && Jg.log("[Tracing] Adding an event to span:", e); + const r = d_(t) ? t : n || Pv(), + i = d_(t) ? {} : t || {}, a = { name: e, - time: Or(r), + time: hy(r), attributes: i }; return this._events.push(a), this @@ -45482,20 +46792,20 @@ return !!this._isStandaloneSpan } _onSpanEnded() { - const e = zn(); + const e = Xv(); e && e.emit("spanEnd", this); - if (!(this._isStandaloneSpan || this === Mr(this))) return; + if (!(this._isStandaloneSpan || this === ky(this))) return; if (this._isStandaloneSpan) return void(this._sampled ? function(e) { - const t = zn(); + const t = Xv(); if (!t) return; const n = e[1]; if (!n || 0 === n.length) return void t.recordDroppedEvent("before_send", "span"); const r = t.getTransport(); r && r.send(e).then(null, (e => { - nr && Qt.error("Error while sending span:", e) + Py && Jg.error("Error while sending span:", e) })) }(function(e, t) { - const n = Ur(e[0]), + const n = Ay(e[0]), r = t && t.getDsn(), i = t && t.getOptions().tunnel, a = { @@ -45506,38 +46816,38 @@ trace: n }, ...!!i && r && { - dsn: yi(r) + dsn: Ly(r) } }, o = t && t.getOptions().beforeSendSpan, - s = o ? e => o(Ar(e)) : e => Ar(e), + s = o ? e => o(my(e)) : e => my(e), l = []; for (const c of e) { const e = s(c); - e && l.push(Bi(e)) + e && l.push(e_(e)) } - return ji(a, l) - }([this], e)) : (nr && Qt.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."), e && e.recordDroppedEvent("sample_rate", "span"))); + return Yy(a, l) + }([this], e)) : (Py && Jg.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."), e && e.recordDroppedEvent("sample_rate", "span"))); const t = this._convertSpanToTransaction(); if (t) { - (hv(this).scope || Mn()).captureEvent(t) + (c_(this).scope || Yv()).captureEvent(t) } } _convertSpanToTransaction() { - if (!gv(Ar(this))) return; - this._name || (nr && Qt.warn("Transaction has no name, falling back to ``."), this._name = ""); + if (!p_(my(this))) return; + this._name || (Py && Jg.warn("Transaction has no name, falling back to ``."), this._name = ""); const { scope: e, isolationScope: t - } = hv(this), n = (e || Mn()).getClient() || zn(); - if (!0 !== this._sampled) return nr && Qt.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."), void(n && n.recordDroppedEvent("sample_rate", "transaction")); - const r = Nr(this).filter((e => e !== this && ! function(e) { - return e instanceof fv && e.isStandaloneSpan() - }(e))).map((e => Ar(e))).filter(gv), - i = this._attributes[ur], + } = c_(this), n = (e || Yv()).getClient() || Xv(); + if (!0 !== this._sampled) return Py && Jg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."), void(n && n.recordDroppedEvent("sample_rate", "transaction")); + const r = xy(this).filter((e => e !== this && ! function(e) { + return e instanceof u_ && e.isStandaloneSpan() + }(e))).map((e => my(e))).filter(p_), + i = this._attributes[ty], a = { contexts: { - trace: Sr(this) + trace: uy(this) }, spans: r.length > 1e3 ? r.sort(((e, t) => e.start_timestamp - t.start_timestamp)).slice(0, 1e3) : r, start_timestamp: this._startTime, @@ -45547,43 +46857,43 @@ sdkProcessingMetadata: { capturedSpanScope: e, capturedSpanIsolationScope: t, - ...cn({ - dynamicSamplingContext: Ur(this) + ...dv({ + dynamicSamplingContext: Ay(this) }) }, - _metrics_summary: kr(this), + _metrics_summary: ey(this), ...i && { transaction_info: { source: i } } }, - o = uv(this._events); - return o && Object.keys(o).length && (nr && Qt.log("[Measurements] Adding measurements to transaction event", JSON.stringify(o, void 0, 2)), a.measurements = o), a + o = o_(this._events); + return o && Object.keys(o).length && (Py && Jg.log("[Measurements] Adding measurements to transaction event", JSON.stringify(o, void 0, 2)), a.measurements = o), a } } - function mv(e) { + function d_(e) { return e && "number" === typeof e || e instanceof Date || Array.isArray(e) } - function gv(e) { + function p_(e) { return !!e.start_timestamp && !!e.timestamp && !!e.span_id && !!e.trace_id } - const vv = "__SENTRY_SUPPRESS_TRACING__"; + const h_ = "__SENTRY_SUPPRESS_TRACING__"; - function yv(e) { - const t = kv(); + function f_(e) { + const t = y_(); if (t.startInactiveSpan) return t.startInactiveSpan(e); - const n = xv(e), + const n = v_(e), { forceTransaction: r, parentSpan: i } = e; - return (e.scope ? t => Fn(e.scope, t) : void 0 !== i ? e => _v(i, e) : e => e())((() => { - const t = Mn(), - i = Sv(t); - return e.onlyIfParent && !i ? new cv : bv({ + return (e.scope ? t => Zv(e.scope, t) : void 0 !== i ? e => m_(i, e) : e => e())((() => { + const t = Yv(), + i = b_(t); + return e.onlyIfParent && !i ? new Ry : g_({ parentSpan: i, spanArguments: n, forceTransaction: r, @@ -45592,49 +46902,49 @@ })) } - function _v(e, t) { - const n = kv(); - return n.withActiveSpan ? n.withActiveSpan(e, t) : Fn((n => (In(n, e || void 0), t(n)))) + function m_(e, t) { + const n = y_(); + return n.withActiveSpan ? n.withActiveSpan(e, t) : Zv((n => (zv(n, e || void 0), t(n)))) } - function bv({ + function g_({ parentSpan: e, spanArguments: t, forceTransaction: n, scope: r }) { - if (!lv()) return new cv; - const i = jn(); + if (!Sy()) return new Ry; + const i = Qv(); let a; if (e && !n) a = function(e, t, n) { const { spanId: r, traceId: i - } = e.spanContext(), a = !t.getScopeData().sdkProcessingMetadata[vv] && Pr(e), o = a ? new fv({ + } = e.spanContext(), a = !t.getScopeData().sdkProcessingMetadata[h_] && gy(e), o = a ? new u_({ ...n, parentSpanId: r, traceId: i, sampled: a - }) : new cv({ + }) : new Ry({ traceId: i }); - Lr(e, o); - const s = zn(); + by(e, o); + const s = Xv(); s && (s.emit("spanStart", o), n.endTimestamp && s.emit("spanEnd", o)); return o - }(e, r, t), Lr(e, a); + }(e, r, t), by(e, a); else if (e) { - const n = Ur(e), + const n = Ay(e), { traceId: i, spanId: o } = e.spanContext(), - s = Pr(e); - a = wv({ + s = gy(e); + a = __({ traceId: i, parentSpanId: o, ...t - }, r, s), zr(a, n) + }, r, s), Iy(a, n) } else { const { traceId: e, @@ -45645,36 +46955,36 @@ ...i.getPropagationContext(), ...r.getPropagationContext() }; - a = wv({ + a = __({ traceId: e, parentSpanId: o, ...t - }, r, s), n && zr(a, n) + }, r, s), n && Iy(a, n) } return function(e) { - if (!nr) return; + if (!Py) return; const { description: t = "< unknown name >", op: n = "< unknown op >", parent_span_id: r - } = Ar(e), { + } = my(e), { spanId: i - } = e.spanContext(), a = Pr(e), o = Mr(e), s = o === e, l = `[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`, c = [`op: ${n}`, `name: ${t}`, `ID: ${i}`]; + } = e.spanContext(), a = gy(e), o = ky(e), s = o === e, l = `[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`, c = [`op: ${n}`, `name: ${t}`, `ID: ${i}`]; if (r && c.push(`parent ID: ${r}`), !s) { const { op: e, description: t - } = Ar(o); + } = my(o); c.push(`root ID: ${o.spanContext().spanId}`), e && c.push(`root op: ${e}`), t && c.push(`root description: ${t}`) } - Qt.log(`${l}\n ${c.join("\n ")}`) + Jg.log(`${l}\n ${c.join("\n ")}`) }(a), function(e, t, n) { - e && (nn(e, pv, n), nn(e, dv, t)) + e && (av(e, l_, n), av(e, s_, t)) }(a, r, i), a } - function xv(e) { + function v_(e) { const t = { isStandalone: (e.experimental || {}).standalone, ...e @@ -45683,28 +46993,28 @@ const n = { ...t }; - return n.startTimestamp = Or(e.startTime), delete n.startTime, n + return n.startTimestamp = hy(e.startTime), delete n.startTime, n } return t } - function kv() { - return Nn(It()) + function y_() { + return Kv(Dv()) } - function wv(e, t, n) { - const r = zn(), + function __(e, t, n) { + const r = Xv(), i = r && r.getOptions() || {}, { name: a = "", attributes: o } = e, - [s, l] = t.getScopeData().sdkProcessingMetadata[vv] ? [!1] : function(e, t) { - if (!lv(e)) return [!1]; + [s, l] = t.getScopeData().sdkProcessingMetadata[h_] ? [!1] : function(e, t) { + if (!Sy(e)) return [!1]; let n; n = "function" === typeof e.tracesSampler ? e.tracesSampler(t) : void 0 !== t.parentSampled ? t.parentSampled : "undefined" !== typeof e.tracesSampleRate ? e.tracesSampleRate : 1; - const r = Yi(n); - return void 0 === r ? (nr && Qt.warn("[Tracing] Discarding transaction because of invalid sample rate."), [!1]) : r ? Math.random() < r ? [!0, r] : (nr && Qt.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`), [!1, r]) : (nr && Qt.log("[Tracing] Discarding transaction because " + ("function" === typeof e.tracesSampler ? "tracesSampler returned 0 or false" : "a negative sampling decision was inherited or tracesSampleRate is set to 0")), [!1, r]) + const r = Ty(n); + return void 0 === r ? (Py && Jg.warn("[Tracing] Discarding transaction because of invalid sample rate."), [!1]) : r ? Math.random() < r ? [!0, r] : (Py && Jg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`), [!1, r]) : (Py && Jg.log("[Tracing] Discarding transaction because " + ("function" === typeof e.tracesSampler ? "tracesSampler returned 0 or false" : "a negative sampling decision was inherited or tracesSampleRate is set to 0")), [!1, r]) }(i, { name: a, parentSampled: n, @@ -45714,38 +47024,68 @@ parentSampled: n } }), - c = new fv({ + c = new u_({ ...e, attributes: { - [ur]: "custom", + [ty]: "custom", ...e.attributes }, sampled: s }); - return void 0 !== l && c.setAttribute(dr, l), r && r.emit("spanStart", c), c + return void 0 !== l && c.setAttribute(ny, l), r && r.emit("spanStart", c), c } - function Sv(e) { - const t = On(e); + function b_(e) { + const t = Vv(e); if (!t) return; - const n = zn(); - return (n ? n.getOptions() : {}).parentSpanIsAlwaysRootSpan ? Mr(t) : t + const n = Xv(); + return (n ? n.getOptions() : {}).parentSpanIsAlwaysRootSpan ? ky(t) : t } - const Ev = (e, t, n, r) => { + + function x_(e) { + if (!e) return {}; + const t = e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/); + if (!t) return {}; + const n = t[6] || "", + r = t[8] || ""; + return { + host: t[4], + path: t[5], + protocol: t[2], + search: n, + hash: r, + relative: t[5] + n + r + } + } + const k_ = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, + w_ = Bg; + + function S_(e) { + let t, n = e[0], + r = 1; + for (; r < e.length;) { + const i = e[r], + a = e[r + 1]; + if (r += 2, ("optionalAccess" === i || "optionalCall" === i) && null == n) return; + "access" === i || "optionalAccess" === i ? (t = n, n = a(n)) : "call" !== i && "optionalCall" !== i || (n = a(((...e) => n.call(t, ...e))), t = void 0) + } + return n + } + const E_ = (e, t, n, r) => { let i, a; return o => { t.value >= 0 && (o || r) && (a = t.value - (i || 0), (a || void 0 === i) && (i = t.value, t.delta = a, t.rating = ((e, t) => e > t[1] ? "poor" : e > t[0] ? "needs-improvement" : "good")(t.value, n), e(t))) } }, - Iv = () => Di.performance && performance.getEntriesByType && performance.getEntriesByType("navigation")[0], - Ov = () => { - const e = Iv(); + O_ = () => w_.performance && performance.getEntriesByType && performance.getEntriesByType("navigation")[0], + I_ = () => { + const e = O_(); return e && e.activationStart || 0 }, - Cv = (e, t) => { - const n = Iv(); + C_ = (e, t) => { + const n = O_(); let r = "navigate"; - n && (Di.document && Di.document.prerendering || Ov() > 0 ? r = "prerender" : Di.document && Di.document.wasDiscarded ? r = "restore" : n.type && (r = n.type.replace(/_/g, "-"))); + n && (w_.document && w_.document.prerendering || I_() > 0 ? r = "prerender" : w_.document && w_.document.wasDiscarded ? r = "restore" : n.type && (r = n.type.replace(/_/g, "-"))); return { name: e, value: "undefined" === typeof t ? -1 : t, @@ -45756,7 +47096,7 @@ navigationType: r } }, - Av = (e, t, n) => { + A_ = (e, t, n) => { try { if (PerformanceObserver.supportedEntryTypes.includes(e)) { const r = new PerformanceObserver((e => { @@ -45771,47 +47111,47 @@ } } catch (r) {} }, - Pv = e => { + P_ = e => { const t = t => { - ("pagehide" === t.type || Di.document && "hidden" === Di.document.visibilityState) && e(t) + ("pagehide" === t.type || w_.document && "hidden" === w_.document.visibilityState) && e(t) }; - Di.document && (addEventListener("visibilitychange", t, !0), addEventListener("pagehide", t, !0)) + w_.document && (addEventListener("visibilitychange", t, !0), addEventListener("pagehide", t, !0)) }, - Tv = e => { + T_ = e => { let t = !1; return n => { t || (e(n), t = !0) } }; - let Rv = -1; - const Dv = e => { - "hidden" === Di.document.visibilityState && Rv > -1 && (Rv = "visibilitychange" === e.type ? e.timeStamp : 0, removeEventListener("visibilitychange", Dv, !0), removeEventListener("prerenderingchange", Dv, !0)) + let R_ = -1; + const D_ = e => { + "hidden" === w_.document.visibilityState && R_ > -1 && (R_ = "visibilitychange" === e.type ? e.timeStamp : 0, removeEventListener("visibilitychange", D_, !0), removeEventListener("prerenderingchange", D_, !0)) }, - Lv = () => (Di.document && Rv < 0 && (Rv = "hidden" !== Di.document.visibilityState || Di.document.prerendering ? 1 / 0 : 0, addEventListener("visibilitychange", Dv, !0), addEventListener("prerenderingchange", Dv, !0)), { + L_ = () => (w_.document && R_ < 0 && (R_ = "hidden" !== w_.document.visibilityState || w_.document.prerendering ? 1 / 0 : 0, addEventListener("visibilitychange", D_, !0), addEventListener("prerenderingchange", D_, !0)), { get firstHiddenTime() { - return Rv + return R_ } }), - Nv = e => { - Di.document && Di.document.prerendering ? addEventListener("prerenderingchange", (() => e()), !0) : e() + N_ = e => { + w_.document && w_.document.prerendering ? addEventListener("prerenderingchange", (() => e()), !0) : e() }, - Mv = [1800, 3e3], - jv = [.1, .25], - Fv = (e, t = {}) => { + j_ = [1800, 3e3], + M_ = [.1, .25], + F_ = (e, t = {}) => { ((e, t = {}) => { - Nv((() => { - const n = Lv(), - r = Cv("FCP"); + N_((() => { + const n = L_(), + r = C_("FCP"); let i; - const a = Av("paint", (e => { + const a = A_("paint", (e => { e.forEach((e => { - "first-contentful-paint" === e.name && (a.disconnect(), e.startTime < n.firstHiddenTime && (r.value = Math.max(e.startTime - Ov(), 0), r.entries.push(e), i(!0))) + "first-contentful-paint" === e.name && (a.disconnect(), e.startTime < n.firstHiddenTime && (r.value = Math.max(e.startTime - I_(), 0), r.entries.push(e), i(!0))) })) })); - a && (i = Ev(e, r, Mv, t.reportAllChanges)) + a && (i = E_(e, r, j_, t.reportAllChanges)) })) - })(Tv((() => { - const n = Cv("CLS", 0); + })(T_((() => { + const n = C_("CLS", 0); let r, i = 0, a = []; const o = e => { @@ -45823,37 +47163,37 @@ } })), i > n.value && (n.value = i, n.entries = a, r()) }, - s = Av("layout-shift", o); - s && (r = Ev(e, n, jv, t.reportAllChanges), Pv((() => { + s = A_("layout-shift", o); + s && (r = E_(e, n, M_, t.reportAllChanges), P_((() => { o(s.takeRecords()), r(!0) })), setTimeout(r, 0)) }))) }, - zv = [100, 300]; - let Vv = 0, - Uv = 1 / 0, - Bv = 0; - const Gv = e => { + z_ = [100, 300]; + let V_ = 0, + U_ = 1 / 0, + B_ = 0; + const G_ = e => { e.forEach((e => { - e.interactionId && (Uv = Math.min(Uv, e.interactionId), Bv = Math.max(Bv, e.interactionId), Vv = Bv ? (Bv - Uv) / 7 + 1 : 0) + e.interactionId && (U_ = Math.min(U_, e.interactionId), B_ = Math.max(B_, e.interactionId), V_ = B_ ? (B_ - U_) / 7 + 1 : 0) })) }; - let Wv; - const $v = () => { - "interactionCount" in performance || Wv || (Wv = Av("event", Gv, { + let $_; + const q_ = () => { + "interactionCount" in performance || $_ || ($_ = A_("event", G_, { type: "event", buffered: !0, durationThreshold: 0 })) }, - qv = [200, 500], - Hv = () => (Wv ? Vv : performance.interactionCount || 0) - 0, - Kv = [], - Yv = {}, - Qv = e => { - const t = Kv[Kv.length - 1], - n = Yv[e.interactionId]; - if (n || Kv.length < 10 || t && e.duration > t.latency) { + W_ = [200, 500], + H_ = () => ($_ ? V_ : performance.interactionCount || 0) - 0, + K_ = [], + Y_ = {}, + Q_ = e => { + const t = K_[K_.length - 1], + n = Y_[e.interactionId]; + if (n || K_.length < 10 || t && e.duration > t.latency) { if (n) n.entries.push(e), n.latency = Math.max(n.latency, e.duration); else { const t = { @@ -45861,104 +47201,104 @@ latency: e.duration, entries: [e] }; - Yv[t.id] = t, Kv.push(t) + Y_[t.id] = t, K_.push(t) } - Kv.sort(((e, t) => t.latency - e.latency)), Kv.splice(10).forEach((e => { - delete Yv[e.id] + K_.sort(((e, t) => t.latency - e.latency)), K_.splice(10).forEach((e => { + delete Y_[e.id] })) } }, - Zv = (e, t = {}) => { - Nv((() => { - $v(); - const n = Cv("INP"); + Z_ = (e, t = {}) => { + N_((() => { + q_(); + const n = C_("INP"); let r; const i = e => { e.forEach((e => { - if (e.interactionId && Qv(e), "first-input" === e.entryType) { - !Kv.some((t => t.entries.some((t => e.duration === t.duration && e.startTime === t.startTime)))) && Qv(e) + if (e.interactionId && Q_(e), "first-input" === e.entryType) { + !K_.some((t => t.entries.some((t => e.duration === t.duration && e.startTime === t.startTime)))) && Q_(e) } })); const t = (() => { - const e = Math.min(Kv.length - 1, Math.floor(Hv() / 50)); - return Kv[e] + const e = Math.min(K_.length - 1, Math.floor(H_() / 50)); + return K_[e] })(); t && t.latency !== n.value && (n.value = t.latency, n.entries = t.entries, r()) }, - a = Av("event", i, { + a = A_("event", i, { durationThreshold: null != t.durationThreshold ? t.durationThreshold : 40 }); - r = Ev(e, n, qv, t.reportAllChanges), a && ("PerformanceEventTiming" in Di && "interactionId" in PerformanceEventTiming.prototype && a.observe({ + r = E_(e, n, W_, t.reportAllChanges), a && ("PerformanceEventTiming" in w_ && "interactionId" in PerformanceEventTiming.prototype && a.observe({ type: "first-input", buffered: !0 - }), Pv((() => { - i(a.takeRecords()), n.value < 0 && Hv() > 0 && (n.value = 0, n.entries = []), r(!0) + }), P_((() => { + i(a.takeRecords()), n.value < 0 && H_() > 0 && (n.value = 0, n.entries = []), r(!0) }))) })) }, - Xv = [2500, 4e3], - Jv = {}, - ey = [800, 1800], - ty = e => { - Di.document && Di.document.prerendering ? Nv((() => ty(e))) : Di.document && "complete" !== Di.document.readyState ? addEventListener("load", (() => ty(e)), !0) : setTimeout(e, 0) + X_ = [2500, 4e3], + J_ = {}, + eb = [800, 1800], + tb = e => { + w_.document && w_.document.prerendering ? N_((() => tb(e))) : w_.document && "complete" !== w_.document.readyState ? addEventListener("load", (() => tb(e)), !0) : setTimeout(e, 0) }, - ny = {}, - ry = {}; - let iy, ay, oy, sy, ly; + nb = {}, + rb = {}; + let ib, ab, ob, sb, lb; - function cy(e, t = !1) { - return by("cls", e, my, iy, t) + function cb(e, t = !1) { + return bb("cls", e, mb, ib, t) } - function uy(e, t = !1) { - return by("lcp", e, vy, oy, t) + function ub(e, t = !1) { + return bb("lcp", e, vb, ob, t) } - function dy(e) { - return by("fid", e, gy, ay) + function db(e) { + return bb("fid", e, gb, ab) } - function py(e) { - return by("inp", e, _y, ly) + function pb(e) { + return bb("inp", e, _b, lb) } - function hy(e, t) { - return xy(e, t), ry[e] || (! function(e) { + function hb(e, t) { + return xb(e, t), rb[e] || (! function(e) { const t = {}; "event" === e && (t.durationThreshold = 0); - Av(e, (t => { - fy(e, { + A_(e, (t => { + fb(e, { entries: t }) }), t) - }(e), ry[e] = !0), ky(e, t) + }(e), rb[e] = !0), kb(e, t) } - function fy(e, t) { - const n = ny[e]; + function fb(e, t) { + const n = nb[e]; if (n && n.length) for (const i of n) try { i(t) } catch (r) { - mo && Qt.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Hn(i)}\nError:`, r) + k_ && Jg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${$y(i)}\nError:`, r) } } - function my() { - return Fv((e => { - fy("cls", { + function mb() { + return F_((e => { + fb("cls", { metric: e - }), iy = e + }), ib = e }), { reportAllChanges: !0 }) } - function gy() { + function gb() { return ((e, t = {}) => { - Nv((() => { - const n = Lv(), - r = Cv("FID"); + N_((() => { + const n = L_(), + r = C_("FID"); let i; const a = e => { e.startTime < n.firstHiddenTime && (r.value = e.processingStart - e.startTime, r.entries.push(e), i(!0)) @@ -45966,105 +47306,105 @@ o = e => { e.forEach(a) }, - s = Av("first-input", o); - i = Ev(e, r, zv, t.reportAllChanges), s && Pv(Tv((() => { + s = A_("first-input", o); + i = E_(e, r, z_, t.reportAllChanges), s && P_(T_((() => { o(s.takeRecords()), s.disconnect() }))) })) })((e => { - fy("fid", { + fb("fid", { metric: e - }), ay = e + }), ab = e })) } - function vy() { + function vb() { return ((e, t = {}) => { - Nv((() => { - const n = Lv(), - r = Cv("LCP"); + N_((() => { + const n = L_(), + r = C_("LCP"); let i; const a = e => { const t = e[e.length - 1]; - t && t.startTime < n.firstHiddenTime && (r.value = Math.max(t.startTime - Ov(), 0), r.entries = [t], i()) + t && t.startTime < n.firstHiddenTime && (r.value = Math.max(t.startTime - I_(), 0), r.entries = [t], i()) }, - o = Av("largest-contentful-paint", a); + o = A_("largest-contentful-paint", a); if (o) { - i = Ev(e, r, Xv, t.reportAllChanges); - const n = Tv((() => { - Jv[r.id] || (a(o.takeRecords()), o.disconnect(), Jv[r.id] = !0, i(!0)) + i = E_(e, r, X_, t.reportAllChanges); + const n = T_((() => { + J_[r.id] || (a(o.takeRecords()), o.disconnect(), J_[r.id] = !0, i(!0)) })); ["keydown", "click"].forEach((e => { - Di.document && addEventListener(e, (() => setTimeout(n, 0)), !0) - })), Pv(n) + w_.document && addEventListener(e, (() => setTimeout(n, 0)), !0) + })), P_(n) } })) })((e => { - fy("lcp", { + fb("lcp", { metric: e - }), oy = e + }), ob = e }), { reportAllChanges: !0 }) } - function yy() { + function yb() { return ((e, t = {}) => { - const n = Cv("TTFB"), - r = Ev(e, n, ey, t.reportAllChanges); - ty((() => { - const e = Iv(); + const n = C_("TTFB"), + r = E_(e, n, eb, t.reportAllChanges); + tb((() => { + const e = O_(); if (e) { const t = e.responseStart; if (t <= 0 || t > performance.now()) return; - n.value = Math.max(t - Ov(), 0), n.entries = [e], r(!0) + n.value = Math.max(t - I_(), 0), n.entries = [e], r(!0) } })) })((e => { - fy("ttfb", { + fb("ttfb", { metric: e - }), sy = e + }), sb = e })) } - function _y() { - return Zv((e => { - fy("inp", { + function _b() { + return Z_((e => { + fb("inp", { metric: e - }), ly = e + }), lb = e })) } - function by(e, t, n, r, i = !1) { + function bb(e, t, n, r, i = !1) { let a; - return xy(e, t), ry[e] || (a = n(), ry[e] = !0), r && t({ + return xb(e, t), rb[e] || (a = n(), rb[e] = !0), r && t({ metric: r - }), ky(e, t, i ? a : void 0) + }), kb(e, t, i ? a : void 0) } - function xy(e, t) { - ny[e] = ny[e] || [], ny[e].push(t) + function xb(e, t) { + nb[e] = nb[e] || [], nb[e].push(t) } - function ky(e, t, n) { + function kb(e, t, n) { return () => { n && n(); - const r = ny[e]; + const r = nb[e]; if (!r) return; const i = r.indexOf(t); - 1 !== i && r.splice(i, 1) } } - function wy(e) { + function wb(e) { return "number" === typeof e && isFinite(e) } - function Sy(e, t, n, { + function Sb(e, t, n, { ...r }) { - const i = Ar(e).start_timestamp; - return i && i > t && "function" === typeof e.updateStartTime && e.updateStartTime(t), _v(e, (() => { - const e = yv({ + const i = my(e).start_timestamp; + return i && i > t && "function" === typeof e.updateStartTime && e.updateStartTime(t), m_(e, (() => { + const e = f_({ startTime: t, ...r }); @@ -46072,135 +47412,226 @@ })) } - function Ey() { - return Di && Di.addEventListener && Di.performance + function Eb(e) { + const t = Xv(); + if (!t) return; + const { + name: n, + transaction: r, + attributes: i, + startTime: a + } = e, { + release: o, + environment: s + } = t.getOptions(), l = t.getIntegrationByName("Replay"), c = l && l.getReplayId(), u = Yv(), d = u.getUser(), p = void 0 !== d ? d.email || d.id || d.ip_address : void 0; + let h; + try { + h = u.getScopeData().contexts.profile.profile_id + } catch (f) {} + return f_({ + name: n, + attributes: { + release: o, + environment: s, + user: p || void 0, + profile_id: h || void 0, + replay_id: c || void 0, + transaction: r, + "user_agent.original": w_.navigator && w_.navigator.userAgent, + ...i + }, + startTime: a, + experimental: { + standalone: !0 + } + }) } - function Iy(e) { + function Ob() { + return w_ && w_.addEventListener && w_.performance + } + + function Ib(e) { return e / 1e3 } - let Oy, Cy, Ay = 0, - Py = {}; - function Ty() { - const e = Ey(); - if (e && kn) { - e.mark && Di.performance.mark("sentry-tracing-init"); - const t = dy((({ + function Cb() { + let e, t, n = 0; + if (! function() { + try { + return S_([PerformanceObserver, "access", e => e.supportedEntryTypes, "optionalAccess", e => e.includes, "call", e => e("layout-shift")]) + } catch (e) { + return !1 + } + }()) return; + let r = !1; + + function i() { + r || (r = !0, t && function(e, t, n) { + k_ && Jg.log(`Sending CLS span (${e})`); + const r = Ib((Rv || 0) + (S_([t, "optionalAccess", e => e.startTime]) || 0)), + i = Yv().getScopeData().transactionName, + a = t ? qg(S_([t, "access", e => e.sources, "access", e => e[0], "optionalAccess", e => e.node])) : "Layout shift", + o = dv({ + [iy]: "auto.http.browser.cls", + [ry]: "ui.webvital.cls", + [ly]: S_([t, "optionalAccess", e => e.duration]) || 0, + "sentry.pageload.span_id": n + }), + s = Eb({ + name: a, + transaction: i, + attributes: o, + startTime: r + }); + S_([s, "optionalAccess", e => e.addEvent, "call", t => t("cls", { + [oy]: "", + [sy]: e + })]), S_([s, "optionalAccess", e => e.end, "call", e => e(r)]) + }(n, e, t), a()) + } + const a = cb((({ + metric: t + }) => { + const r = t.entries[t.entries.length - 1]; + r && (n = t.value, e = r) + }), !0); + P_((() => { + i() + })), setTimeout((() => { + const e = S_([Xv(), "optionalAccess", e => e.on, "call", t => t("startNavigationSpan", (() => { + i(), e && e() + }))]), + n = wy(), + r = n && ky(n), + a = r && my(r); + a && "pageload" === a.op && (t = r.spanContext().spanId) + }), 0) + } + let Ab, Pb, Tb = 0, + Rb = {}; + + function Db({ + recordClsStandaloneSpans: e + }) { + const t = Ob(); + if (t && Rv) { + t.mark && w_.performance.mark("sentry-tracing-init"); + const n = db((({ metric: e }) => { const t = e.entries[e.entries.length - 1]; if (!t) return; - const n = Iy(kn), - r = Iy(t.startTime); - mo && Qt.log("[Measurements] Adding FID"), Py.fid = { + const n = Ib(Rv), + r = Ib(t.startTime); + k_ && Jg.log("[Measurements] Adding FID"), Rb.fid = { value: e.value, unit: "millisecond" - }, Py["mark.fid"] = { + }, Rb["mark.fid"] = { value: n + r, unit: "second" } })), - n = cy((({ + r = ub((({ metric: e }) => { const t = e.entries[e.entries.length - 1]; - t && (mo && Qt.log("[Measurements] Adding CLS"), Py.cls = { - value: e.value, - unit: "" - }, Cy = t) - }), !0), - r = uy((({ - metric: e - }) => { - const t = e.entries[e.entries.length - 1]; - t && (mo && Qt.log("[Measurements] Adding LCP"), Py.lcp = { + t && (k_ && Jg.log("[Measurements] Adding LCP"), Rb.lcp = { value: e.value, unit: "millisecond" - }, Oy = t) + }, Ab = t) }), !0), i = function() { return e = ({ metric: e }) => { - e.entries[e.entries.length - 1] && (mo && Qt.log("[Measurements] Adding TTFB"), Py.ttfb = { + e.entries[e.entries.length - 1] && (k_ && Jg.log("[Measurements] Adding TTFB"), Rb.ttfb = { value: e.value, unit: "millisecond" }) - }, by("ttfb", e, yy, sy); + }, bb("ttfb", e, yb, sb); var e - }(); + }(), + a = e ? Cb() : cb((({ + metric: e + }) => { + const t = e.entries[e.entries.length - 1]; + t && (k_ && Jg.log(`[Measurements] Adding CLS ${e.value}`), Rb.cls = { + value: e.value, + unit: "" + }, Pb = t) + }), !0); return () => { - t(), n(), r(), i() + n(), r(), i(), a && a() } } return () => {} } - function Ry(e) { - const t = Ey(); - if (!t || !Di.performance.getEntries || !kn) return; - mo && Qt.log("[Tracing] Adding & adjusting spans using Performance API"); - const n = Iy(kn), - r = t.getEntries(), + function Lb(e, t) { + const n = Ob(); + if (!n || !w_.performance.getEntries || !Rv) return; + k_ && Jg.log("[Tracing] Adding & adjusting spans using Performance API"); + const r = Ib(Rv), + i = n.getEntries(), { - op: i, - start_timestamp: a - } = Ar(e); - if (r.slice(Ay).forEach((t => { - const r = Iy(t.startTime), - o = Iy(Math.max(0, t.duration)); - if (!("navigation" === i && a && n + r < a)) switch (t.entryType) { + op: a, + start_timestamp: o + } = my(e); + if (i.slice(Tb).forEach((t => { + const n = Ib(t.startTime), + i = Ib(Math.max(0, t.duration)); + if (!("navigation" === a && o && r + n < o)) switch (t.entryType) { case "navigation": ! function(e, t, n) { ["unloadEvent", "redirect", "domContentLoadedEvent", "loadEvent", "connect"].forEach((r => { - Dy(e, t, r, n) - })), Dy(e, t, "secureConnection", n, "TLS/SSL", "connectEnd"), Dy(e, t, "fetch", n, "cache", "domainLookupStart"), Dy(e, t, "domainLookup", n, "DNS"), + Nb(e, t, r, n) + })), Nb(e, t, "secureConnection", n, "TLS/SSL", "connectEnd"), Nb(e, t, "fetch", n, "cache", "domainLookupStart"), Nb(e, t, "domainLookup", n, "DNS"), function(e, t, n) { - const r = n + Iy(t.requestStart), - i = n + Iy(t.responseEnd), - a = n + Iy(t.responseStart); - t.responseEnd && (Sy(e, r, i, { - op: "browser", - name: "request", + const r = n + Ib(t.requestStart), + i = n + Ib(t.responseEnd), + a = n + Ib(t.responseStart); + t.responseEnd && (Sb(e, r, i, { + op: "browser.request", + name: t.name, attributes: { - [hr]: "auto.ui.browser.metrics" + [iy]: "auto.ui.browser.metrics" } - }), Sy(e, a, i, { - op: "browser", - name: "response", + }), Sb(e, a, i, { + op: "browser.response", + name: t.name, attributes: { - [hr]: "auto.ui.browser.metrics" + [iy]: "auto.ui.browser.metrics" } })) }(e, t, n) - }(e, t, n); + }(e, t, r); break; case "mark": case "paint": case "measure": { ! function(e, t, n, r, i) { - const a = Iv(), - o = Iy(a ? a.requestStart : 0), + const a = O_(), + o = Ib(a ? a.requestStart : 0), s = i + Math.max(n, o), l = i + n, c = l + r, u = { - [hr]: "auto.resource.browser.metrics" + [iy]: "auto.resource.browser.metrics" }; s !== l && (u["sentry.browser.measure_happened_before_request"] = !0, u["sentry.browser.measure_start_time"] = s); - Sy(e, s, c, { + Sb(e, s, c, { name: t.name, op: t.entryType, attributes: u }) - }(e, t, r, o, n); - const i = Lv(), - a = t.startTime < i.firstHiddenTime; - "first-paint" === t.name && a && (mo && Qt.log("[Measurements] Adding FP"), Py.fp = { + }(e, t, n, i, r); + const a = L_(), + o = t.startTime < a.firstHiddenTime; + "first-paint" === t.name && o && (k_ && Jg.log("[Measurements] Adding FP"), Rb.fp = { value: t.startTime, unit: "millisecond" - }), "first-contentful-paint" === t.name && a && (mo && Qt.log("[Measurements] Adding FCP"), Py.fcp = { + }), "first-contentful-paint" === t.name && o && (k_ && Jg.log("[Measurements] Adding FCP"), Rb.fcp = { value: t.startTime, unit: "millisecond" }); @@ -46209,137 +47640,113 @@ case "resource": ! function(e, t, n, r, i, a) { if ("xmlhttprequest" === t.initiatorType || "fetch" === t.initiatorType) return; - const o = Na(n), + const o = x_(n), s = { - [hr]: "auto.resource.browser.metrics" + [iy]: "auto.resource.browser.metrics" }; - Ly(s, t, "transferSize", "http.response_transfer_size"), Ly(s, t, "encodedBodySize", "http.response_content_length"), Ly(s, t, "decodedBodySize", "http.decoded_response_content_length"), "renderBlockingStatus" in t && (s["resource.render_blocking_status"] = t.renderBlockingStatus); + jb(s, t, "transferSize", "http.response_transfer_size"), jb(s, t, "encodedBodySize", "http.response_content_length"), jb(s, t, "decodedBodySize", "http.decoded_response_content_length"), "renderBlockingStatus" in t && (s["resource.render_blocking_status"] = t.renderBlockingStatus); o.protocol && (s["url.scheme"] = o.protocol.split(":").pop()); o.host && (s["server.address"] = o.host); - s["url.same_origin"] = n.includes(Di.location.origin); + s["url.same_origin"] = n.includes(w_.location.origin); const l = a + r, c = l + i; - Sy(e, l, c, { - name: n.replace(Di.location.origin, ""), + Sb(e, l, c, { + name: n.replace(w_.location.origin, ""), op: t.initiatorType ? `resource.${t.initiatorType}` : "resource.other", attributes: s }) - }(e, t, t.name, r, o, n) + }(e, t, t.name, n, i, r) } - })), Ay = Math.max(r.length - 1, 0), function(e) { - const t = Di.navigator; + })), Tb = Math.max(i.length - 1, 0), function(e) { + const t = w_.navigator; if (!t) return; const n = t.connection; - n && (n.effectiveType && e.setAttribute("effectiveConnectionType", n.effectiveType), n.type && e.setAttribute("connectionType", n.type), wy(n.rtt) && (Py["connection.rtt"] = { + n && (n.effectiveType && e.setAttribute("effectiveConnectionType", n.effectiveType), n.type && e.setAttribute("connectionType", n.type), wb(n.rtt) && (Rb["connection.rtt"] = { value: n.rtt, unit: "millisecond" })); - wy(t.deviceMemory) && e.setAttribute("deviceMemory", `${t.deviceMemory} GB`); - wy(t.hardwareConcurrency) && e.setAttribute("hardwareConcurrency", String(t.hardwareConcurrency)) - }(e), "pageload" === i) { + wb(t.deviceMemory) && e.setAttribute("deviceMemory", `${t.deviceMemory} GB`); + wb(t.hardwareConcurrency) && e.setAttribute("hardwareConcurrency", String(t.hardwareConcurrency)) + }(e), "pageload" === a) { ! function(e) { - const t = Iv(); + const t = O_(); if (!t) return; const { responseStart: n, requestStart: r } = t; - r <= n && (mo && Qt.log("[Measurements] Adding TTFB Request Time"), e["ttfb.requestTime"] = { + r <= n && (k_ && Jg.log("[Measurements] Adding TTFB Request Time"), e["ttfb.requestTime"] = { value: n - r, unit: "millisecond" }) - }(Py), ["fcp", "fp", "lcp"].forEach((e => { - const t = Py[e]; - if (!t || !a || n >= a) return; - const r = t.value, - i = n + Iy(r), - o = Math.abs(1e3 * (i - a)), - s = o - r; - mo && Qt.log(`[Measurements] Normalized ${e} from ${r} to ${o} (${s})`), t.value = o - })); - const t = Py["mark.fid"]; - t && Py.fid && (Sy(e, t.value, t.value + Iy(Py.fid.value), { + }(Rb); + const n = Rb["mark.fid"]; + n && Rb.fid && (Sb(e, n.value, n.value + Ib(Rb.fid.value), { name: "first input delay", op: "ui.action", attributes: { - [hr]: "auto.ui.browser.metrics" + [iy]: "auto.ui.browser.metrics" } - }), delete Py["mark.fid"]), "fcp" in Py || delete Py.cls, Object.entries(Py).forEach((([e, t]) => { - ! function(e, t, n) { - const r = jr(), - i = r && Mr(r); + }), delete Rb["mark.fid"]), "fcp" in Rb && t.recordClsOnPageloadSpan || delete Rb.cls, Object.entries(Rb).forEach((([e, t]) => { + ! function(e, t, n, r = wy()) { + const i = r && ky(r); i && i.addEvent(e, { - [gr]: t, - [mr]: n + [sy]: t, + [oy]: n }) }(e, t.value, t.unit) - })), + })), e.setAttribute("performance.timeOrigin", r), e.setAttribute("performance.activationStart", I_()), function(e) { - Oy && (mo && Qt.log("[Measurements] Adding LCP Data"), Oy.element && e.setAttribute("lcp.element", Bt(Oy.element)), Oy.id && e.setAttribute("lcp.id", Oy.id), Oy.url && e.setAttribute("lcp.url", Oy.url.trim().slice(0, 200)), e.setAttribute("lcp.size", Oy.size)); - Cy && Cy.sources && (mo && Qt.log("[Measurements] Adding CLS Data"), Cy.sources.forEach(((t, n) => e.setAttribute(`cls.source.${n+1}`, Bt(t.node))))) + Ab && (k_ && Jg.log("[Measurements] Adding LCP Data"), Ab.element && e.setAttribute("lcp.element", qg(Ab.element)), Ab.id && e.setAttribute("lcp.id", Ab.id), Ab.url && e.setAttribute("lcp.url", Ab.url.trim().slice(0, 200)), e.setAttribute("lcp.size", Ab.size)); + Pb && Pb.sources && (k_ && Jg.log("[Measurements] Adding CLS Data"), Pb.sources.forEach(((t, n) => e.setAttribute(`cls.source.${n+1}`, qg(t.node))))) }(e) } - Oy = void 0, Cy = void 0, Py = {} + Ab = void 0, Pb = void 0, Rb = {} } - function Dy(e, t, n, r, i, a) { + function Nb(e, t, n, r, i, a) { const o = a ? t[a] : t[`${n}End`], s = t[`${n}Start`]; - s && o && Sy(e, r + Iy(s), r + Iy(o), { - op: "browser", - name: i || n, + s && o && Sb(e, r + Ib(s), r + Ib(o), { + op: `browser.${i||n}`, + name: t.name, attributes: { - [hr]: "auto.ui.browser.metrics" + [iy]: "auto.ui.browser.metrics" } }) } - function Ly(e, t, n, r) { + function jb(e, t, n, r) { const i = t[n]; null != i && i < 2147483647 && (e[r] = i) } - const Ny = [], - My = new Map; + const Mb = [], + Fb = new Map; - function jy() { - if (Ey() && kn) { - const e = py((({ + function zb() { + if (Ob() && Rv) { + const e = pb((({ metric: e }) => { - const t = zn(); - if (!t || void 0 == e.value) return; - const n = e.entries.find((t => t.duration === e.value && Fy[t.name])); - if (!n) return; + if (void 0 == e.value) return; + const t = e.entries.find((t => t.duration === e.value && Vb[t.name])); + if (!t) return; const { - interactionId: r - } = n, i = Fy[n.name], a = t.getOptions(), o = Iy(kn + n.startTime), s = Iy(e.value), l = Mn(), c = jr(), u = c ? Mr(c) : void 0, d = (null != r ? My.get(r) : void 0) || u, p = d ? Ar(d).description : l.getScopeData().transactionName, h = l.getUser(), f = t.getIntegrationByName("Replay"), m = f && f.getReplayId(), g = void 0 !== h ? h.email || h.id || h.ip_address : void 0; - let v; - try { - v = l.getScopeData().contexts.profile.profile_id - } catch (_) {} - const y = yv({ - name: Bt(n.target), - op: `ui.interaction.${i}`, - attributes: cn({ - release: a.release, - environment: a.environment, - transaction: p, - [vr]: e.value, - [hr]: "auto.http.browser.inp", - user: g || void 0, - profile_id: v || void 0, - replay_id: m || void 0, - "user_agent.original": Di.navigator && Di.navigator.userAgent + interactionId: n + } = t, r = Vb[t.name], i = Ib(Rv + t.startTime), a = Ib(e.value), o = wy(), s = o ? ky(o) : void 0, l = (null != n ? Fb.get(n) : void 0) || s, c = l ? my(l).description : Yv().getScopeData().transactionName, u = Eb({ + name: qg(t.target), + transaction: c, + attributes: dv({ + [iy]: "auto.http.browser.inp", + [ry]: `ui.interaction.${r}`, + [ly]: t.duration }), - startTime: o, - experimental: { - standalone: !0 - } + startTime: i }); - y.addEvent("inp", { - [mr]: "millisecond", - [gr]: e.value - }), y.end(o + s) + S_([u, "optionalAccess", e => e.addEvent, "call", t => t("inp", { + [oy]: "millisecond", + [sy]: e.value + })]), S_([u, "optionalAccess", e => e.end, "call", e => e(i + a)]) })); return () => { e() @@ -46347,7 +47754,7 @@ } return () => {} } - const Fy = { + const Vb = { click: "click", pointerdown: "click", pointerup: "click", @@ -46375,31 +47782,95 @@ keypress: "press", input: "press" }; - const zy = { + const Ub = {}, + Bb = {}; + + function Gb(e, t) { + Ub[e] = Ub[e] || [], Ub[e].push(t) + } + + function $b(e, t) { + Bb[e] || (t(), Bb[e] = !0) + } + + function qb(e, t) { + const n = e && Ub[e]; + if (n) + for (const i of n) try { + i(t) + } catch (r) { + Yg && Jg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${$y(i)}\nError:`, r) + } + } + const Wb = Bg; + let Hb; + + function Kb(e) { + const t = "history"; + Gb(t, e), $b(t, Yb) + } + + function Yb() { + if (! function() { + const e = Wb.chrome, + t = e && e.app && e.app.runtime, + n = "history" in Wb && !!Wb.history.pushState && !!Wb.history.replaceState; + return !t && n + }()) return; + const e = w_.onpopstate; + + function t(e) { + return function(...t) { + const n = t.length > 2 ? t[2] : void 0; + if (n) { + const e = Hb, + t = String(n); + Hb = t; + qb("history", { + from: e, + to: t + }) + } + return e.apply(this, t) + } + } + w_.onpopstate = function(...t) { + const n = w_.location.href, + r = Hb; + Hb = n; + if (qb("history", { + from: r, + to: n + }), e) try { + return e.apply(this, t) + } catch (i) {} + }, iv(w_.history, "pushState", t), iv(w_.history, "replaceState", t) + } + const Qb = { idleTimeout: 1e3, finalTimeout: 3e4, childSpanTimeout: 15e3 }; - function Vy(e, t = {}) { + function Zb(e, t = {}) { const n = new Map; let r, i = !1, a = "externalFinish", o = !t.disableAutoFinish; const s = [], { - idleTimeout: l = zy.idleTimeout, - finalTimeout: c = zy.finalTimeout, - childSpanTimeout: u = zy.childSpanTimeout, + idleTimeout: l = Qb.idleTimeout, + finalTimeout: c = Qb.finalTimeout, + childSpanTimeout: u = Qb.childSpanTimeout, beforeSpanEnd: d } = t, - p = zn(); - if (!p || !lv()) return new cv; - const h = Mn(), - f = jr(), + p = Xv(); + if (!p || !Sy()) return new Ry; + const h = Yv(), + f = wy(), m = function(e) { - const t = yv(e); - return In(Mn(), t), nr && Qt.log("[Tracing] Started span is an idle span"), t + const t = f_(e); + return zv(Yv(), t), Py && Jg.log("[Tracing] Started span is an idle span"), t }(e); function g() { @@ -46419,54 +47890,54 @@ } function _(e) { - i = !0, n.clear(), s.forEach((e => e())), In(h, f); - const t = Ar(m), + i = !0, n.clear(), s.forEach((e => e())), zv(h, f); + const t = my(m), { start_timestamp: r } = t; if (!r) return; - (t.data || {})[fr] || m.setAttribute(fr, a), Qt.log(`[Tracing] Idle span "${t.op}" finished`); - const o = Nr(m).filter((e => e !== m)); + (t.data || {})[ay] || m.setAttribute(ay, a), Jg.log(`[Tracing] Idle span "${t.op}" finished`); + const o = xy(m).filter((e => e !== m)); let u = 0; o.forEach((t => { t.isRecording() && (t.setStatus({ code: 2, message: "cancelled" - }), t.end(e), nr && Qt.log("[Tracing] Cancelling span since span ended early", JSON.stringify(t, void 0, 2))); - const n = Ar(t), + }), t.end(e), Py && Jg.log("[Tracing] Cancelling span since span ended early", JSON.stringify(t, void 0, 2))); + const n = my(t), { timestamp: r = 0, start_timestamp: i = 0 } = n, a = i <= e, o = r - i <= (c + l) / 1e3; - if (nr) { + if (Py) { const e = JSON.stringify(t, void 0, 2); - a ? o || Qt.log("[Tracing] Discarding span since it finished after idle span final timeout", e) : Qt.log("[Tracing] Discarding span since it happened after idle span was finished", e) + a ? o || Jg.log("[Tracing] Discarding span since it finished after idle span final timeout", e) : Jg.log("[Tracing] Discarding span since it happened after idle span was finished", e) } o && a || (! function(e, t) { - e[Rr] && e[Rr].delete(t) + e[yy] && e[yy].delete(t) }(m, t), u++) })), u > 0 && m.setAttribute("sentry.idle_span_discarded_spans", u) } return m.end = new Proxy(m.end, { apply(e, t, n) { d && d(m); - const [r, ...i] = n, a = Or(r || bn()), o = Nr(m).filter((e => e !== m)); + const [r, ...i] = n, a = hy(r || Pv()), o = xy(m).filter((e => e !== m)); if (!o.length) return _(a), Reflect.apply(e, t, [a, ...i]); - const s = o.map((e => Ar(e).timestamp)).filter((e => !!e)), + const s = o.map((e => my(e).timestamp)).filter((e => !!e)), l = s.length ? Math.max(...s) : void 0, - u = Ar(m).start_timestamp, + u = my(m).start_timestamp, p = Math.min(u ? u + c / 1e3 : 1 / 0, Math.max(u || -1 / 0, Math.min(a, l || 1 / 0))); return _(p), Reflect.apply(e, t, [p, ...i]) } }), s.push(p.on("spanStart", (e => { - if (i || e === m || Ar(e).timestamp) return; + if (i || e === m || my(e).timestamp) return; var t; - Nr(m).includes(e) && (t = e.spanContext().spanId, g(), n.set(t, !0), y(bn() + u / 1e3)) + xy(m).includes(e) && (t = e.spanContext().spanId, g(), n.set(t, !0), y(Pv() + u / 1e3)) }))), s.push(p.on("spanEnd", (e => { var t; - i || (t = e.spanContext().spanId, n.has(t) && n.delete(t), 0 === n.size && v(bn() + l / 1e3)) + i || (t = e.spanContext().spanId, n.has(t) && n.delete(t), 0 === n.size && v(Pv() + l / 1e3)) }))), s.push(p.on("idleSpanEnableAutoFinish", (e => { e === m && (o = !0, v(), n.size && y()) }))), t.disableAutoFinish || v(), setTimeout((() => { @@ -46476,30 +47947,556 @@ }), a = "finalTimeout", m.end()) }), c), m } - let Uy = !1; + let Xb = null; - function By() { - const e = jr(), - t = e && Mr(e); + function Jb(e) { + const t = "error"; + Gb(t, e), $b(t, ex) + } + + function ex() { + Xb = Bg.onerror, Bg.onerror = function(e, t, n, r, i) { + const a = { + column: r, + error: i, + line: n, + msg: e, + url: t + }; + return qb("error", a), !(!Xb || Xb.__SENTRY_LOADER__) && Xb.apply(this, arguments) + }, Bg.onerror.__SENTRY_INSTRUMENTED__ = !0 + } + let tx = null; + + function nx(e) { + const t = "unhandledrejection"; + Gb(t, e), $b(t, rx) + } + + function rx() { + tx = Bg.onunhandledrejection, Bg.onunhandledrejection = function(e) { + const t = e; + return qb("unhandledrejection", t), !(tx && !tx.__SENTRY_LOADER__) || tx.apply(this, arguments) + }, Bg.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0 + } + let ix = !1; + + function ax() { + const e = wy(), + t = e && ky(e); if (t) { const e = "internal_error"; - nr && Qt.log(`[Tracing] Root span: ${e} -> Global error occured`), t.setStatus({ + Py && Jg.log(`[Tracing] Root span: ${e} -> Global error occured`), t.setStatus({ code: 2, message: e }) } } + ax.tag = "sentry_tracingErrorCallback"; + const ox = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; + var sx; - function Gy(e, t, n, r, i = "auto.http.browser") { + function lx(e) { + return new ux((t => { + t(e) + })) + } + + function cx(e) { + return new ux(((t, n) => { + n(e) + })) + }! function(e) { + e[e.PENDING = 0] = "PENDING"; + e[e.RESOLVED = 1] = "RESOLVED"; + e[e.REJECTED = 2] = "REJECTED" + }(sx || (sx = {})); + class ux { + constructor(e) { + ux.prototype.__init.call(this), ux.prototype.__init2.call(this), ux.prototype.__init3.call(this), ux.prototype.__init4.call(this), this._state = sx.PENDING, this._handlers = []; + try { + e(this._resolve, this._reject) + } catch (t) { + this._reject(t) + } + } + then(e, t) { + return new ux(((n, r) => { + this._handlers.push([!1, t => { + if (e) try { + n(e(t)) + } catch (i) { + r(i) + } else n(t) + }, e => { + if (t) try { + n(t(e)) + } catch (i) { + r(i) + } else r(e) + }]), this._executeHandlers() + })) + } catch (e) { + return this.then((e => e), e) + } finally(e) { + return new ux(((t, n) => { + let r, i; + return this.then((t => { + i = !1, r = t, e && e() + }), (t => { + i = !0, r = t, e && e() + })).then((() => { + i ? n(r) : t(r) + })) + })) + } + __init() { + this._resolve = e => { + this._setResult(sx.RESOLVED, e) + } + } + __init2() { + this._reject = e => { + this._setResult(sx.REJECTED, e) + } + } + __init3() { + this._setResult = (e, t) => { + this._state === sx.PENDING && (Fg(t) ? t.then(this._resolve, this._reject) : (this._state = e, this._value = t, this._executeHandlers())) + } + } + __init4() { + this._executeHandlers = () => { + if (this._state === sx.PENDING) return; + const e = this._handlers.slice(); + this._handlers = [], e.forEach((e => { + e[0] || (this._state === sx.RESOLVED && e[1](this._value), this._state === sx.REJECTED && e[2](this._value), e[0] = !0) + })) + } + } + } + + function dx(e, t, n, r = 0) { + return new ux(((i, a) => { + const o = e[r]; + if (null === t || "function" !== typeof o) i(t); + else { + const s = o({ + ...t + }, n); + Py && o.id && null === s && Jg.log(`Event processor "${o.id}" dropped event`), Fg(s) ? s.then((t => dx(e, t, n, r + 1).then(i))).then(null, a) : dx(e, s, n, r + 1).then(i).then(null, a) + } + })) + } + + function px(e, t) { + const { + fingerprint: n, + span: r, + breadcrumbs: i, + sdkProcessingMetadata: a + } = t; + ! function(e, t) { + const { + extra: n, + tags: r, + user: i, + contexts: a, + level: o, + transactionName: s + } = t, l = dv(n); + l && Object.keys(l).length && (e.extra = { + ...l, + ...e.extra + }); + const c = dv(r); + c && Object.keys(c).length && (e.tags = { + ...c, + ...e.tags + }); + const u = dv(i); + u && Object.keys(u).length && (e.user = { + ...u, + ...e.user + }); + const d = dv(a); + d && Object.keys(d).length && (e.contexts = { + ...d, + ...e.contexts + }); + o && (e.level = o); + s && "transaction" !== e.type && (e.transaction = s) + }(e, t), r && function(e, t) { + e.contexts = { + trace: dy(t), + ...e.contexts + }, e.sdkProcessingMetadata = { + dynamicSamplingContext: Ay(t), + ...e.sdkProcessingMetadata + }; + const n = ky(t), + r = my(n).description; + r && !e.transaction && "transaction" === e.type && (e.transaction = r) + }(e, r), + function(e, t) { + e.fingerprint = e.fingerprint ? Ev(e.fingerprint) : [], t && (e.fingerprint = e.fingerprint.concat(t)); + e.fingerprint && !e.fingerprint.length && delete e.fingerprint + }(e, n), + function(e, t) { + const n = [...e.breadcrumbs || [], ...t]; + e.breadcrumbs = n.length ? n : void 0 + }(e, i), + function(e, t) { + e.sdkProcessingMetadata = { + ...e.sdkProcessingMetadata, + ...t + } + }(e, a) + } + + function hx(e, t) { + const { + extra: n, + tags: r, + user: i, + contexts: a, + level: o, + sdkProcessingMetadata: s, + breadcrumbs: l, + fingerprint: c, + eventProcessors: u, + attachments: d, + propagationContext: p, + transactionName: h, + span: f + } = t; + fx(e, "extra", n), fx(e, "tags", r), fx(e, "user", i), fx(e, "contexts", a), fx(e, "sdkProcessingMetadata", s), o && (e.level = o), h && (e.transactionName = h), f && (e.span = f), l.length && (e.breadcrumbs = [...e.breadcrumbs, ...l]), c.length && (e.fingerprint = [...e.fingerprint, ...c]), u.length && (e.eventProcessors = [...e.eventProcessors, ...u]), d.length && (e.attachments = [...e.attachments, ...d]), e.propagationContext = { + ...e.propagationContext, + ...p + } + } + + function fx(e, t, n) { + if (n && Object.keys(n).length) { + e[t] = { + ...e[t] + }; + for (const r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[t][r] = n[r]) + } + } + + function mx(e, t, n, r, i, a) { + const { + normalizeDepth: o = 3, + normalizeMaxBreadth: s = 1e3 + } = e, l = { + ...t, + event_id: t.event_id || n.event_id || _v(), + timestamp: t.timestamp || Av() + }, c = n.integrations || e.integrations.map((e => e.name)); + ! function(e, t) { + const { + environment: n, + release: r, + dist: i, + maxValueLength: a = 250 + } = t; + "environment" in e || (e.environment = "environment" in t ? n : Ey); + void 0 === e.release && void 0 !== r && (e.release = r); + void 0 === e.dist && void 0 !== i && (e.dist = i); + e.message && (e.message = ev(e.message, a)); + const o = e.exception && e.exception.values && e.exception.values[0]; + o && o.value && (o.value = ev(o.value, a)); + const s = e.request; + s && s.url && (s.url = ev(s.url, a)) + }(l, e), + function(e, t) { + t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t]) + }(l, c), i && i.emit("applyFrameMetadata", t), void 0 === t.type && function(e, t) { + const n = Bg._sentryDebugIds; + if (!n) return; + let r; + const i = gx.get(t); + i ? r = i : (r = new Map, gx.set(t, r)); + const a = Object.entries(n).reduce(((e, [n, i]) => { + let a; + const o = r.get(n); + o ? a = o : (a = t(n), r.set(n, a)); + for (let t = a.length - 1; t >= 0; t--) { + const n = a[t]; + if (n.filename) { + e[n.filename] = i; + break + } + } + return e + }), {}); + try { + e.exception.values.forEach((e => { + e.stacktrace.frames.forEach((e => { + e.filename && (e.debug_id = a[e.filename]) + })) + })) + } catch (o) {} + }(l, e.stackParser); + const u = function(e, t) { + if (!t) return e; + const n = e ? e.clone() : new Bv; + return n.update(t), n + }(r, n.captureContext); + n.mechanism && wv(l, n.mechanism); + const d = i ? i.getEventProcessors() : [], + p = Gg("globalScope", (() => new Bv)).getScopeData(); + if (a) { + hx(p, a.getScopeData()) + } + if (u) { + hx(p, u.getScopeData()) + } + const h = [...n.attachments || [], ...p.attachments]; + h.length && (n.attachments = h), px(l, p); + return dx([...d, ...p.eventProcessors], l, n).then((e => (e && function(e) { + const t = {}; + try { + e.exception.values.forEach((e => { + e.stacktrace.frames.forEach((e => { + e.debug_id && (e.abs_path ? t[e.abs_path] = e.debug_id : e.filename && (t[e.filename] = e.debug_id), delete e.debug_id) + })) + })) + } catch (r) {} + if (0 === Object.keys(t).length) return; + e.debug_meta = e.debug_meta || {}, e.debug_meta.images = e.debug_meta.images || []; + const n = e.debug_meta.images; + Object.entries(t).forEach((([e, t]) => { + n.push({ + type: "sourcemap", + code_file: e, + debug_id: t + }) + })) + }(e), "number" === typeof o && o > 0 ? function(e, t, n) { + if (!e) return null; + const r = { + ...e, + ...e.breadcrumbs && { + breadcrumbs: e.breadcrumbs.map((e => ({ + ...e, + ...e.data && { + data: Wy(e.data, t, n) + } + }))) + }, + ...e.user && { + user: Wy(e.user, t, n) + }, + ...e.contexts && { + contexts: Wy(e.contexts, t, n) + }, + ...e.extra && { + extra: Wy(e.extra, t, n) + } + }; + e.contexts && e.contexts.trace && r.contexts && (r.contexts.trace = e.contexts.trace, e.contexts.trace.data && (r.contexts.trace.data = Wy(e.contexts.trace.data, t, n))); + e.spans && (r.spans = e.spans.map((e => ({ + ...e, + ...e.data && { + data: Wy(e.data, t, n) + } + })))); + return r + }(e, o, s) : e))) + } + const gx = new WeakMap; + + function vx(e) { + if (e) return function(e) { + return e instanceof Bv || "function" === typeof e + }(e) || function(e) { + return Object.keys(e).some((e => yx.includes(e))) + }(e) ? { + captureContext: e + } : e + } + const yx = ["user", "level", "extra", "contexts", "tags", "fingerprint", "requestSession", "propagationContext"]; + + function _x(e, t) { + return Yv().captureException(e, vx(t)) + } + + function bx(e, t) { + return Yv().captureEvent(e, t) + } + + function xx(e) { + const t = Xv(), + n = Qv(), + r = Yv(), + { + release: i, + environment: a = Ey + } = t && t.getOptions() || {}, + { + userAgent: o + } = Bg.navigator || {}, + s = jv({ + release: i, + environment: a, + user: r.getUser() || n.getUser(), + ...o && { + userAgent: o + }, + ...e + }), + l = n.getSession(); + return l && "ok" === l.status && Mv(l, { + status: "exited" + }), kx(), n.setSession(s), r.setSession(s), s + } + + function kx() { + const e = Qv(), + t = Yv(), + n = t.getSession() || e.getSession(); + n && function(e, t) { + let n = {}; + t ? n = { + status: t + } : "ok" === e.status && (n = { + status: "exited" + }), Mv(e, n) + }(n), wx(), e.setSession(), t.setSession() + } + + function wx() { + const e = Qv(), + t = Yv(), + n = Xv(), + r = t.getSession() || e.getSession(); + r && n && n.captureSession(r) + } + + function Sx(e = !1) { + e ? kx() : wx() + } + const Ex = Bg; + let Ox = 0; + + function Ix() { + return Ox > 0 + } + + function Cx() { + Ox++, setTimeout((() => { + Ox-- + })) + } + + function Ax(e, t = {}, n) { + if ("function" !== typeof e) return e; + try { + const t = e.__sentry_wrapped__; + if (t) return "function" === typeof t ? t : e; + if (sv(e)) return e + } catch (i) { + return e + } + const r = function() { + const r = Array.prototype.slice.call(arguments); + try { + n && "function" === typeof n && n.apply(this, arguments); + const i = r.map((e => Ax(e, t))); + return e.apply(this, i) + } catch (Yo) { + throw Cx(), Zv((n => { + n.addEventProcessor((e => (t.mechanism && (kv(e, void 0, void 0), wv(e, t.mechanism)), e.extra = { + ...e.extra, + arguments: r + }, e))), _x(Yo) + })), Yo + } + }; + try { + for (const t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]) + } catch (a) {} + ov(r, e), av(e, "__sentry_wrapped__", r); + try { + Object.getOwnPropertyDescriptor(r, "name").configurable && Object.defineProperty(r, "name", { + get: () => e.name + }) + } catch (a) {} + return r + } + const Px = "__sentry_xhr_v3__"; + + function Tx(e) { + Gb("xhr", e), $b("xhr", Rx) + } + + function Rx() { + if (!w_.XMLHttpRequest) return; + const e = XMLHttpRequest.prototype; + e.open = new Proxy(e.open, { + apply(e, t, n) { + const r = 1e3 * Pv(), + i = Dg(n[0]) ? n[0].toUpperCase() : void 0, + a = function(e) { + if (Dg(e)) return e; + try { + return e.toString() + } catch (t) {} + return + }(n[1]); + if (!i || !a) return e.apply(t, n); + t[Px] = { + method: i, + url: a, + request_headers: {} + }, "POST" === i && a.match(/sentry_key/) && (t.__sentry_own_request__ = !0); + const o = () => { + const e = t[Px]; + if (e && 4 === t.readyState) { + try { + e.status_code = t.status + } catch (n) {} + qb("xhr", { + endTimestamp: 1e3 * Pv(), + startTimestamp: r, + xhr: t + }) + } + }; + return "onreadystatechange" in t && "function" === typeof t.onreadystatechange ? t.onreadystatechange = new Proxy(t.onreadystatechange, { + apply: (e, t, n) => (o(), e.apply(t, n)) + }) : t.addEventListener("readystatechange", o), t.setRequestHeader = new Proxy(t.setRequestHeader, { + apply(e, t, n) { + const [r, i] = n, a = t[Px]; + return a && Dg(r) && Dg(i) && (a.request_headers[r.toLowerCase()] = i), e.apply(t, n) + } + }), e.apply(t, n) + } + }), e.send = new Proxy(e.send, { + apply(e, t, n) { + const r = t[Px]; + if (!r) return e.apply(t, n); + void 0 !== n[0] && (r.body = n[0]); + return qb("xhr", { + startTimestamp: 1e3 * Pv(), + xhr: t + }), e.apply(t, n) + } + }) + } + + function Dx(e, t, n, r, i = "auto.http.browser") { if (!e.fetchData) return; - const a = lv() && t(e.fetchData.url); + const a = Sy() && t(e.fetchData.url); if (e.endTimestamp && a) { const t = e.fetchData.__span; if (!t) return; const n = r[t]; return void(n && (! function(e, t) { if (t.response) { - wr(e, t.response.status); + cy(e, t.response.status); const n = t.response && t.response.headers && t.response.headers.get("content-length"); if (n) { const t = parseInt(n); @@ -46512,8 +48509,8 @@ e.end() }(n, e), delete r[t])) } - const o = Mn(), - s = zn(), + const o = Yv(), + s = Xv(), { method: l, url: c @@ -46525,9 +48522,9 @@ return } }(c), - d = u ? Na(u).host : void 0, - p = !!jr(), - h = a && p ? yv({ + d = u ? x_(u).host : void 0, + p = !!wy(), + h = a && p ? f_({ name: `${l} ${c}`, attributes: { url: c, @@ -46535,16 +48532,16 @@ "http.method": l, "http.url": u, "server.address": d, - [hr]: i, - [pr]: "http.client" + [iy]: i, + [ry]: "http.client" } - }) : new cv; + }) : new Ry; if (e.fetchData.__span = h.spanContext().spanId, r[h.spanContext().spanId] = h, n(e.fetchData.url) && s) { const t = e.args[0]; e.args[1] = e.args[1] || {}; const n = e.args[1]; n.headers = function(e, t, n, r, i) { - const a = jn(), + const a = Qv(), { traceId: o, spanId: s, @@ -46554,17 +48551,17 @@ ...a.getPropagationContext(), ...n.getPropagationContext() }, - u = i ? Ir(i) : br(o, s, l), - d = lr(c || (i ? Ur(i) : Vr(o, t))), - p = r.headers || ("undefined" !== typeof Request && zt(e, Request) ? e.headers : void 0); + u = i ? py(i) : Cv(o, s, l), + d = vv(c || (i ? Ay(i) : Cy(o, t))), + p = r.headers || ("undefined" !== typeof Request && zg(e, Request) ? e.headers : void 0); if (p) { - if ("undefined" !== typeof Headers && zt(p, Headers)) { + if ("undefined" !== typeof Headers && zg(p, Headers)) { const e = new Headers(p); - return e.append("sentry-trace", u), d && e.append(ir, d), e + return e.append("sentry-trace", u), d && e.append(hv, d), e } if (Array.isArray(p)) { const e = [...p, ["sentry-trace", u]]; - return d && e.push([ir, d]), e + return d && e.push([hv, d]), e } { const e = "baggage" in p ? p.baggage : void 0, t = []; @@ -46579,30 +48576,161 @@ "sentry-trace": u, baggage: d } - }(t, s, o, n, lv() && p ? h : void 0) + }(t, s, o, n, Sy() && p ? h : void 0) } return h } - By.tag = "sentry_tracingErrorCallback"; - const Wy = { - traceFetch: !0, - traceXHR: !0, - enableHTTPTimings: !0 - }; + const Lx = Bg; - function $y(e) { + function Nx() { + if (!("fetch" in Lx)) return !1; + try { + return new Headers, new Request("http://www.example.com"), new Response, !0 + } catch (e) { + return !1 + } + } + + function jx(e) { + return e && /^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString()) + } + + function Mx(e, t) { + const n = "fetch"; + Gb(n, e), $b(n, (() => Fx(void 0, t))) + } + + function Fx(e, t = !1) { + t && ! function() { + if ("string" === typeof EdgeRuntime) return !0; + if (!Nx()) return !1; + if (jx(Lx.fetch)) return !0; + let e = !1; + const t = Lx.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 = jx(n.contentWindow.fetch)), t.head.removeChild(n) + } catch (n) { + Yg && Jg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n) + } + return e + }() || iv(Bg, "fetch", (function(t) { + return function(...n) { + const { + method: r, + url: i + } = function(e) { + if (0 === e.length) return { + method: "GET", + url: "" + }; + if (2 === e.length) { + const [t, n] = e; + return { + url: Ux(t), + method: Vx(n, "method") ? String(n.method).toUpperCase() : "GET" + } + } + const t = e[0]; + return { + url: Ux(t), + method: Vx(t, "method") ? String(t.method).toUpperCase() : "GET" + } + }(n), a = { + args: n, + fetchData: { + method: r, + url: i + }, + startTimestamp: 1e3 * Pv() + }; + e || qb("fetch", { + ...a + }); + const o = (new Error).stack; + return t.apply(Bg, n).then((async t => (e ? e(t) : qb("fetch", { + ...a, + endTimestamp: 1e3 * Pv(), + response: t + }), t)), (e => { + throw qb("fetch", { + ...a, + endTimestamp: 1e3 * Pv(), + error: e + }), Ag(e) && void 0 === e.stack && (e.stack = o, av(e, "framesToPop", 1)), e + })) + } + })) + } + + function zx(e) { + let t; + try { + t = e.clone() + } catch (n) { + return + }!async function(e, t) { + if (e && e.body) { + const r = e.body, + i = r.getReader(), + a = setTimeout((() => { + r.cancel().then(null, (() => {})) + }), 9e4); + let o = !0; + for (; o;) { + let e; + try { + e = setTimeout((() => { + r.cancel().then(null, (() => {})) + }), 5e3); + const { + done: n + } = await i.read(); + clearTimeout(e), n && (t(), o = !1) + } catch (n) { + o = !1 + } finally { + clearTimeout(e) + } + } + clearTimeout(a), i.releaseLock(), r.cancel().then(null, (() => {})) + } + }(t, (() => { + qb("fetch-body-resolved", { + endTimestamp: 1e3 * Pv(), + response: e + }) + })) + } + + function Vx(e, t) { + return !!e && "object" === typeof e && !!e[t] + } + + function Ux(e) { + return "string" === typeof e ? e : e ? Vx(e, "url") ? e.url : e.toString ? e.toString() : "" : "" + } + const Bx = new WeakMap, + Gx = new Map, + $x = { + traceFetch: !0, + traceXHR: !0, + enableHTTPTimings: !0 + }; + + function qx(e, t) { const { - traceFetch: t, - traceXHR: n, - shouldCreateSpanForRequest: r, - enableHTTPTimings: i, - tracePropagationTargets: a + traceFetch: n, + traceXHR: r, + shouldCreateSpanForRequest: i, + enableHTTPTimings: a, + tracePropagationTargets: o } = { - traceFetch: Wy.traceFetch, - traceXHR: Wy.traceXHR, - ...e - }, o = "function" === typeof r ? r : e => !0, s = e => function(e, t) { - const n = da.location && da.location.href; + traceFetch: $x.traceFetch, + traceXHR: $x.traceXHR, + ...t + }, s = "function" === typeof i ? i : e => !0, l = e => function(e, t) { + const n = Ex.location && Ex.location.href; if (n) { let i, a; try { @@ -46611,39 +48739,52 @@ return !1 } const o = i.origin === a; - return t ? en(i.toString(), t) || o && en(i.pathname, t) : o + return t ? rv(i.toString(), t) || o && rv(i.pathname, t) : o } { const n = !!e.match(/^\/(?!\/)/); - return t ? en(e, t) : n + return t ? rv(e, t) : n } - }(e, a), l = {}; - t && Aa((e => { - const t = Gy(e, o, s, l); - if (t) { - const n = Ky(e.fetchData.url), - r = n ? Na(n).host : void 0; + }(e, o), c = {}; + n && (e.addEventProcessor((e => ("transaction" === e.type && e.spans && e.spans.forEach((e => { + if ("http.client" === e.op) { + const t = Gx.get(e.span_id); + t && (e.timestamp = t / 1e3, Gx.delete(e.span_id)) + } + })), e))), function(e) { + const t = "fetch-body-resolved"; + Gb(t, e), $b(t, (() => Fx(zx))) + }((e => { + if (e.response) { + const t = Bx.get(e.response); + t && e.endTimestamp && Gx.set(t, e.endTimestamp) + } + })), Mx((e => { + const t = Dx(e, s, l, c); + if (e.response && e.fetchData.__span && Bx.set(e.response, e.fetchData.__span), t) { + const n = Kx(e.fetchData.url), + r = n ? x_(n).host : void 0; t.setAttributes({ "http.url": n, "server.address": r }) } - i && t && qy(t) - })), n && Sa((e => { + a && t && Wx(t) + }))), r && Tx((e => { const t = function(e, t, n, r) { const i = e.xhr, - a = i && i[wa]; + a = i && i[Px]; if (!i || i.__sentry_own_request__ || !a) return; - const o = lv() && t(a.url); + const o = Sy() && t(a.url); if (e.endTimestamp && o) { const e = i.__sentry_xhr_span_id__; if (!e) return; const t = r[e]; - return void(t && void 0 !== a.status_code && (wr(t, a.status_code), t.end(), delete r[e])) + return void(t && void 0 !== a.status_code && (cy(t, a.status_code), t.end(), delete r[e])) } - const s = Ky(a.url), - l = s ? Na(s).host : void 0, - c = !!jr(), - u = o && c ? yv({ + const s = Kx(a.url), + l = s ? x_(s).host : void 0, + c = !!wy(), + u = o && c ? f_({ name: `${a.method} ${a.url}`, attributes: { type: "xhr", @@ -46651,15 +48792,15 @@ "http.url": s, url: a.url, "server.address": l, - [hr]: "auto.http.browser", - [pr]: "http.client" + [iy]: "auto.http.browser", + [ry]: "http.client" } - }) : new cv; + }) : new Ry; i.__sentry_xhr_span_id__ = u.spanContext().spanId, r[i.__sentry_xhr_span_id__] = u; - const d = zn(); + const d = Xv(); i.setRequestHeader && n(a.url) && d && function(e, t, n) { - const r = Mn(), - i = jn(), + const r = Yv(), + i = Qv(), { traceId: a, spanId: o, @@ -46669,26 +48810,26 @@ ...i.getPropagationContext(), ...r.getPropagationContext() }, - c = n && lv() ? Ir(n) : br(a, o, s), - u = lr(l || (n ? Ur(n) : Vr(a, t))); + c = n && Sy() ? py(n) : Cv(a, o, s), + u = vv(l || (n ? Ay(n) : Cy(a, t))); ! function(e, t, n) { try { - e.setRequestHeader("sentry-trace", t), n && e.setRequestHeader(ir, n) - } catch (No) {} + e.setRequestHeader("sentry-trace", t), n && e.setRequestHeader(hv, n) + } catch (eo) {} }(e, c, u) - }(i, d, lv() && c ? u : void 0); + }(i, d, Sy() && c ? u : void 0); return u - }(e, o, s, l); - i && t && qy(t) + }(e, s, l, c); + a && t && Wx(t) })) } - function qy(e) { + function Wx(e) { const { url: t - } = Ar(e).data || {}; + } = my(e).data || {}; if (!t || "string" !== typeof t) return; - const n = hy("resource", (({ + const n = hb("resource", (({ entries: r }) => { r.forEach((r => { @@ -46720,17 +48861,17 @@ version: n } }(e.nextHopProtocol), r = []; - if (r.push(["network.protocol.version", n], ["network.protocol.name", t]), !kn) return r; - return [...r, ["http.request.redirect_start", Hy(e.redirectStart)], - ["http.request.fetch_start", Hy(e.fetchStart)], - ["http.request.domain_lookup_start", Hy(e.domainLookupStart)], - ["http.request.domain_lookup_end", Hy(e.domainLookupEnd)], - ["http.request.connect_start", Hy(e.connectStart)], - ["http.request.secure_connection_start", Hy(e.secureConnectionStart)], - ["http.request.connection_end", Hy(e.connectEnd)], - ["http.request.request_start", Hy(e.requestStart)], - ["http.request.response_start", Hy(e.responseStart)], - ["http.request.response_end", Hy(e.responseEnd)] + if (r.push(["network.protocol.version", n], ["network.protocol.name", t]), !Rv) return r; + return [...r, ["http.request.redirect_start", Hx(e.redirectStart)], + ["http.request.fetch_start", Hx(e.fetchStart)], + ["http.request.domain_lookup_start", Hx(e.domainLookupStart)], + ["http.request.domain_lookup_end", Hx(e.domainLookupEnd)], + ["http.request.connect_start", Hx(e.connectStart)], + ["http.request.secure_connection_start", Hx(e.secureConnectionStart)], + ["http.request.connection_end", Hx(e.connectEnd)], + ["http.request.request_start", Hx(e.requestStart)], + ["http.request.response_start", Hx(e.responseStart)], + ["http.request.response_end", Hx(e.responseEnd)] ] })(r).forEach((t => e.setAttribute(...t))), setTimeout(n) } @@ -46738,82 +48879,224 @@ })) } - function Hy(e = 0) { - return ((kn || performance.timeOrigin) + e) / 1e3 + function Hx(e = 0) { + return ((Rv || performance.timeOrigin) + e) / 1e3 } - function Ky(e) { + function Kx(e) { try { - return new URL(e, da.location.origin).href - } catch (ll) { + return new URL(e, Ex.location.origin).href + } catch (t) { return } } - const Yy = { - ...zy, + const Yx = { + ...Qb, instrumentNavigation: !0, instrumentPageLoad: !0, markBackgroundSpan: !0, enableLongTask: !0, - enableLongAnimationFrame: !1, + enableLongAnimationFrame: !0, enableInp: !0, _experiments: {}, - ...Wy + ...$x }; - function Qy(e) { - const t = (n = `meta[name=${e}]`, Ut.document && Ut.document.querySelector ? Ut.document.querySelector(n) : null); + function Qx(e) { + const t = (n = `meta[name=${e}]`, $g.document && $g.document.querySelector ? $g.document.querySelector(n) : null); var n; return t ? t.getAttribute("content") : void 0 } + const Zx = 100; - function Zy(e) { - let t, n = e[0], - r = 1; - for (; r < e.length;) { - const i = e[r], - a = e[r + 1]; - if (r += 2, ("optionalAccess" === i || "optionalCall" === i) && null == n) return; - "access" === i || "optionalAccess" === i ? (t = n, n = a(n)) : "call" !== i && "optionalCall" !== i || (n = a(((...e) => n.call(t, ...e))), t = void 0) - } - return n + function Xx(e, t) { + const n = Xv(), + r = Qv(); + if (!n) return; + const { + beforeBreadcrumb: i = null, + maxBreadcrumbs: a = Zx + } = n.getOptions(); + if (a <= 0) return; + const o = { + timestamp: Av(), + ...e + }, + s = i ? Xg((() => i(o, t))) : o; + null !== s && (n.emit && n.emit("beforeAddBreadcrumb", s, t), r.addBreadcrumb(s, a)) } - function Xy(e, t) { + function Jx(e, t) { const n = t && t.getDsn(), r = t && t.getOptions().tunnel; return function(e, t) { return !!t && e.includes(t.host) }(e, n) || function(e, t) { if (!t) return !1; - return Jy(e) === Jy(t) + return ek(e) === ek(t) }(e, r) } - function Jy(e) { + function ek(e) { return "/" === e[e.length - 1] ? e.slice(0, -1) : e } + const tk = ["fatal", "error", "warning", "log", "info", "debug"]; - function e_() { + function nk(e) { + return "warn" === e ? "warning" : tk.includes(e) ? e : "log" + } + + function rk(e, t, n = Date.now()) { + return function(e, t) { + return e[t] || e.all || 0 + }(e, t) > n + } + + function ik(e, { + statusCode: t, + headers: n + }, r = Date.now()) { + const i = { + ...e + }, + a = n && n["x-sentry-rate-limits"], + o = n && n["retry-after"]; + if (a) + for (const s of a.trim().split(",")) { + const [e, t, , , n] = s.split(":", 5), a = parseInt(e, 10), o = 1e3 * (isNaN(a) ? 60 : a); + if (t) + for (const s of t.split(";")) "metric_bucket" === s && n && !n.split(";").includes("custom") || (i[s] = r + o); + else i.all = r + o + } else o ? i.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 && (i.all = r + 6e4); + return i + } + + function ak() { return !("undefined" !== typeof __SENTRY_BROWSER_BUNDLE__ && __SENTRY_BROWSER_BUNDLE__) && "[object process]" === Object.prototype.toString.call("undefined" !== typeof process ? process : 0) } - function t_() { - return "undefined" !== typeof window && (!e_() || void 0 !== wt.process && "renderer" === wt.process.type) + function ok() { + return "undefined" !== typeof window && (!ak() || void 0 !== Bg.process && "renderer" === Bg.process.type) } - const n_ = wt, - r_ = "sentryReplaySession", - i_ = "Unable to send Replay", - a_ = 15e4, - o_ = 5e3, - s_ = 2e7, - l_ = 36e5; + const sk = {}; - function c_(e, t) { + function lk(e) { + const t = sk[e]; + if (t) return t; + let n = w_[e]; + if (jx(n)) return sk[e] = n.bind(w_); + const r = w_.document; + if (r && "function" === typeof r.createElement) try { + const t = r.createElement("iframe"); + t.hidden = !0, r.head.appendChild(t); + const i = t.contentWindow; + i && i[e] && (n = i[e]), r.head.removeChild(t) + } catch (i) { + k_ && Jg.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `, i) + } + return n ? sk[e] = n.bind(w_) : n + } + + function ck(e) { + sk[e] = void 0 + } + + function uk(...e) { + return lk("setTimeout")(...e) + } + let dk, pk, hk; + + function fk(e) { + Gb("dom", e), $b("dom", mk) + } + + function mk() { + if (!w_.document) return; + const e = qb.bind(null, "dom"), + t = gk(e, !0); + w_.document.addEventListener("click", t, !1), w_.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((t => { + const n = w_[t] && w_[t].prototype; + n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (iv(n, "addEventListener", (function(t) { + return function(n, r, i) { + if ("click" === n || "keypress" == n) try { + const r = this, + a = r.__sentry_instrumentation_handlers__ = r.__sentry_instrumentation_handlers__ || {}, + o = a[n] = a[n] || { + refCount: 0 + }; + if (!o.handler) { + const r = gk(e); + o.handler = r, t.call(this, n, r, i) + } + o.refCount++ + } catch (a) {} + return t.call(this, n, r, i) + } + })), iv(n, "removeEventListener", (function(e) { + return function(t, n, r) { + if ("click" === t || "keypress" == t) try { + const n = this, + i = n.__sentry_instrumentation_handlers__ || {}, + a = i[t]; + a && (a.refCount--, a.refCount <= 0 && (e.call(this, t, a.handler, r), a.handler = void 0, delete i[t]), 0 === Object.keys(i).length && delete n.__sentry_instrumentation_handlers__) + } catch (i) {} + return e.call(this, t, n, r) + } + }))) + })) + } + + function gk(e, t = !1) { + return n => { + if (!n || n._sentryCaptured) return; + const r = function(e) { + try { + return e.target + } catch (t) { + return null + } + }(n); + if (function(e, t) { + return "keypress" === e && (!t || !t.tagName || "INPUT" !== t.tagName && "TEXTAREA" !== t.tagName && !t.isContentEditable) + }(n.type, r)) return; + av(n, "_sentryCaptured", !0), r && !r._sentryId && av(r, "_sentryId", _v()); + const i = "keypress" === n.type ? "input" : n.type; + if (! function(e) { + if (e.type !== pk) return !1; + try { + if (!e.target || e.target._sentryId !== hk) return !1 + } catch (t) {} + return !0 + }(n)) { + e({ + event: n, + name: i, + global: t + }), pk = n.type, hk = r ? r._sentryId : void 0 + } + clearTimeout(dk), dk = w_.setTimeout((() => { + hk = void 0, pk = void 0 + }), 1e3) + } + } + const vk = Bg, + yk = "sentryReplaySession", + _k = "Unable to send Replay", + bk = 15e4, + xk = 5e3, + kk = 2e7, + wk = 36e5; + + function Sk(e, t) { return null != e ? e : t() } - function u_(e) { + function Ek(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -46824,33 +49107,33 @@ } return n } - var d_; + var Ok; - function p_(e) { - const t = u_([e, "optionalAccess", e => e.host]); - return Boolean(u_([t, "optionalAccess", e => e.shadowRoot]) === e) + function Ik(e) { + const t = Ek([e, "optionalAccess", e => e.host]); + return Boolean(Ek([t, "optionalAccess", e => e.shadowRoot]) === e) } - function h_(e) { + function Ck(e) { return "[object ShadowRoot]" === Object.prototype.toString.call(e) } - function f_(e) { + function Ak(e) { try { const n = e.rules || e.cssRules; - return n ? ((t = Array.from(n, m_).join("")).includes(" background-clip: text;") && !t.includes(" -webkit-background-clip: text;") && (t = t.replace(" background-clip: text;", " -webkit-background-clip: text; background-clip: text;")), t) : null + return n ? ((t = Array.from(n, Pk).join("")).includes(" background-clip: text;") && !t.includes(" -webkit-background-clip: text;") && (t = t.replace(" background-clip: text;", " -webkit-background-clip: text; background-clip: text;")), t) : null } catch (n) { return null } var t } - function m_(e) { + function Pk(e) { let t; if (function(e) { return "styleSheet" in e }(e)) try { - t = f_(e.styleSheet) || function(e) { + t = Ak(e.styleSheet) || function(e) { const { cssText: t } = e; @@ -46867,14 +49150,14 @@ return t || e.cssText }! function(e) { e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment" - }(d_ || (d_ = {})); - class g_ { + }(Ok || (Ok = {})); + class Tk { constructor() { this.idNodeMap = new Map, this.nodeMetaMap = new WeakMap } getId(e) { if (!e) return -1; - return c_(u_([this, "access", e => e.getMeta, "call", t => t(e), "optionalAccess", e => e.id]), (() => -1)) + return Sk(Ek([this, "access", e => e.getMeta, "call", t => t(e), "optionalAccess", e => e.id]), (() => -1)) } getNode(e) { return this.idNodeMap.get(e) || null @@ -46912,7 +49195,7 @@ } } - function v_({ + function Rk({ maskInputOptions: e, tagName: t, type: n @@ -46920,7 +49203,7 @@ return "OPTION" === t && (t = "SELECT"), Boolean(e[t.toLowerCase()] || n && e[n] || "password" === n || "INPUT" === t && !n && e.text) } - function y_({ + function Dk({ isMasked: e, element: t, value: n, @@ -46930,37 +49213,37 @@ return e ? (r && (i = r(i, t)), "*".repeat(i.length)) : i } - function __(e) { + function Lk(e) { return e.toLowerCase() } - function b_(e) { + function Nk(e) { return e.toUpperCase() } - const x_ = "__rrweb_original__"; + const jk = "__rrweb_original__"; - function k_(e) { + function Mk(e) { const t = e.type; - return e.hasAttribute("data-rr-is-password") ? "password" : t ? __(t) : null + return e.hasAttribute("data-rr-is-password") ? "password" : t ? Lk(t) : null } - function w_(e, t, n) { + function Fk(e, t, n) { return "INPUT" !== t || "radio" !== n && "checkbox" !== n ? e.value : e.getAttribute("value") || "" } - function S_(e, t) { + function zk(e, t) { let n; try { - n = new URL(e, c_(t, (() => window.location.href))) + n = new URL(e, Sk(t, (() => window.location.href))) } catch (r) { return null } - return c_(u_([n.pathname.match(/\.([0-9a-z]+)(?:$)/i), "optionalAccess", e => e[1]]), (() => null)) + return Sk(Ek([n.pathname.match(/\.([0-9a-z]+)(?:$)/i), "optionalAccess", e => e[1]]), (() => null)) } - const E_ = {}; + const Vk = {}; - function I_(e) { - const t = E_[e]; + function Uk(e) { + const t = Vk[e]; if (t) return t; const n = window.document; let r = window[e]; @@ -46970,35 +49253,35 @@ const i = t.contentWindow; i && i[e] && (r = i[e]), n.head.removeChild(t) } catch (i) {} - return E_[e] = r.bind(window) + return Vk[e] = r.bind(window) } - function O_(...e) { - return I_("setTimeout")(...e) + function Bk(...e) { + return Uk("setTimeout")(...e) } - function C_(...e) { - return I_("clearTimeout")(...e) + function Gk(...e) { + return Uk("clearTimeout")(...e) } - let A_ = 1; - const P_ = new RegExp("[^a-z0-9-_:]"); + let $k = 1; + const qk = new RegExp("[^a-z0-9-_:]"); - function T_() { - return A_++ + function Wk() { + return $k++ } - let R_, D_; - const L_ = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, - N_ = /^(?:[a-z+]+:)?\/\//i, - M_ = /^www\..*/i, - j_ = /^(data:)([^,]*),(.*)/i; + let Hk, Kk; + const Yk = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, + Qk = /^(?:[a-z+]+:)?\/\//i, + Zk = /^www\..*/i, + Xk = /^(data:)([^,]*),(.*)/i; - function F_(e, t) { - return (e || "").replace(L_, ((e, n, r, i, a, o) => { + function Jk(e, t) { + return (e || "").replace(Yk, ((e, n, r, i, a, o) => { const s = r || a || o, l = n || i || ""; if (!s) return e; - if (N_.test(s) || M_.test(s)) return `url(${l}${s}${l})`; - if (j_.test(s)) return `url(${l}${s}${l})`; + if (Qk.test(s) || Zk.test(s)) return `url(${l}${s}${l})`; + if (Xk.test(s)) return `url(${l}${s}${l})`; if ("/" === s[0]) return `url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${l})`; const c = t.split("/"), u = s.split("/"); @@ -47007,26 +49290,26 @@ return `url(${l}${c.join("/")}${l})` })) } - const z_ = /^[^ \t\n\r\u000c]+/, - V_ = /^[, \t\n\r\u000c]+/; + const ew = /^[^ \t\n\r\u000c]+/, + tw = /^[, \t\n\r\u000c]+/; - function U_(e, t) { + function nw(e, t) { if (!t || "" === t.trim()) return t; const n = e.createElement("a"); return n.href = t, n.href } - function B_(e) { + function rw(e) { return Boolean("svg" === e.tagName || e.ownerSVGElement) } - function G_() { + function iw() { const e = document.createElement("a"); return e.href = "", e.href } - function W_(e, t, n, r, i, a) { - return r ? "src" === n || "href" === n && ("use" !== t || "#" !== r[0]) || "xlink:href" === n && "#" !== r[0] ? U_(e, r) : "background" !== n || "table" !== t && "td" !== t && "th" !== t ? "srcset" === n ? function(e, t) { + function aw(e, t, n, r, i, a) { + return r ? "src" === n || "href" === n && ("use" !== t || "#" !== r[0]) || "xlink:href" === n && "#" !== r[0] ? nw(e, r) : "background" !== n || "table" !== t && "td" !== t && "th" !== t ? "srcset" === n ? function(e, t) { if ("" === t.trim()) return t; let n = 0; @@ -47036,12 +49319,12 @@ return i ? (r = i[0], n += r.length, r) : "" } const i = []; - for (; r(V_), !(n >= t.length);) { - let a = r(z_); - if ("," === a.slice(-1)) a = U_(e, a.substring(0, a.length - 1)), i.push(a); + for (; r(tw), !(n >= t.length);) { + let a = r(ew); + if ("," === a.slice(-1)) a = nw(e, a.substring(0, a.length - 1)), i.push(a); else { let r = ""; - a = U_(e, a); + a = nw(e, a); let o = !1; for (;;) { const e = t.charAt(n); @@ -47062,18 +49345,18 @@ } } return i.join(", ") - }(e, r) : "style" === n ? F_(r, G_()) : "object" === t && "data" === n ? U_(e, r) : "function" === typeof a ? a(n, r, i) : r : U_(e, r) : r + }(e, r) : "style" === n ? Jk(r, iw()) : "object" === t && "data" === n ? nw(e, r) : "function" === typeof a ? a(n, r, i) : r : nw(e, r) : r } - function $_(e, t, n) { + function ow(e, t, n) { return ("video" === e || "audio" === e) && "autoplay" === t } - function q_(e, t, n = 1 / 0, r = 0) { - return e ? e.nodeType !== e.ELEMENT_NODE || r > n ? -1 : t(e) ? r : q_(e.parentNode, t, n, r + 1) : -1 + function sw(e, t, n = 1 / 0, r = 0) { + return e ? e.nodeType !== e.ELEMENT_NODE || r > n ? -1 : t(e) ? r : sw(e.parentNode, t, n, r + 1) : -1 } - function H_(e, t) { + function lw(e, t) { return n => { const r = n; if (null === r) return !1; @@ -47089,13 +49372,13 @@ return !1 }(r, e)) return !0; return !(!t || !r.matches(t)) - } catch (ll) { + } catch (i) { return !1 } } } - function K_(e, t, n, r, i, a) { + function cw(e, t, n, r, i, a) { try { const o = e.nodeType === e.ELEMENT_NODE ? e : e.parentElement; if (null === o) return !1; @@ -47106,18 +49389,18 @@ let s = -1, l = -1; if (a) { - if (l = q_(o, H_(r, i)), l < 0) return !0; - s = q_(o, H_(t, n), l >= 0 ? l : 1 / 0) + if (l = sw(o, lw(r, i)), l < 0) return !0; + s = sw(o, lw(t, n), l >= 0 ? l : 1 / 0) } else { - if (s = q_(o, H_(t, n)), s < 0) return !1; - l = q_(o, H_(r, i), s >= 0 ? s : 1 / 0) + if (s = sw(o, lw(t, n)), s < 0) return !1; + l = sw(o, lw(r, i), s >= 0 ? s : 1 / 0) } return s >= 0 ? !(l >= 0) || s <= l : !(l >= 0) && !!a } catch (o) {} return !!a } - function Y_(e, t) { + function uw(e, t) { const { doc: n, mirror: r, @@ -47147,16 +49430,16 @@ switch (e.nodeType) { case e.DOCUMENT_NODE: return "CSS1Compat" !== e.compatMode ? { - type: d_.Document, + type: Ok.Document, childNodes: [], compatMode: e.compatMode } : { - type: d_.Document, + type: Ok.Document, childNodes: [] }; case e.DOCUMENT_TYPE_NODE: return { - type: d_.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: k + type: Ok.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: k }; case e.ELEMENT_NODE: return function(e, t) { @@ -47195,36 +49478,36 @@ return !1 }(e, r, i, a), k = function(e) { if (e instanceof HTMLFormElement) return "form"; - const t = __(e.tagName); - return P_.test(t) ? "div" : t + const t = Lk(e.tagName); + return qk.test(t) ? "div" : t }(e); let w = {}; const S = e.attributes.length; - for (let O = 0; O < S; O++) { - const t = e.attributes[O]; - t.name && !$_(k, t.name, t.value) && (w[t.name] = W_(n, k, __(t.name), t.value, e, l)) + for (let I = 0; I < S; I++) { + const t = e.attributes[I]; + t.name && !ow(k, t.name, t.value) && (w[t.name] = aw(n, k, Lk(t.name), t.value, e, l)) } if ("link" === k && o) { const t = Array.from(n.styleSheets).find((t => t.href === e.href)); let r = null; - t && (r = f_(t)), r && (delete w.rel, delete w.href, w._cssText = F_(r, t.href)) + t && (r = Ak(t)), r && (delete w.rel, delete w.href, w._cssText = Jk(r, t.href)) } if ("style" === k && e.sheet && !(e.innerText || e.textContent || "").trim().length) { - const t = f_(e.sheet); - t && (w._cssText = F_(t, G_())) + const t = Ak(e.sheet); + t && (w._cssText = Jk(t, iw())) } if ("input" === k || "textarea" === k || "select" === k || "option" === k) { const t = e, - n = k_(t), - r = w_(t, b_(k), n), + n = Mk(t), + r = Fk(t, Nk(k), n), i = t.checked; if ("submit" !== n && "button" !== n && r) { - const e = K_(t, v, _, y, b, v_({ + const e = cw(t, v, _, y, b, Rk({ type: n, - tagName: b_(k), + tagName: Nk(k), maskInputOptions: s })); - w.value = y_({ + w.value = Dk({ isMasked: e, element: t, value: r, @@ -47241,7 +49524,7 @@ for (let n = 0; n < e.width; n += 50) for (let r = 0; r < e.height; r += 50) { const i = t.getImageData, - a = x_ in i ? i[x_] : i; + a = jk in i ? i[jk] : i; if (new Uint32Array(a.call(t, n, r, Math.min(50, e.width - n), Math.min(50, e.height - r)).data.buffer).some((e => 0 !== e))) return !1 } return !0 @@ -47253,14 +49536,14 @@ t !== n.toDataURL(u.type, u.quality) && (w.rr_dataURL = t) } if ("img" === k && d) { - R_ || (R_ = n.createElement("canvas"), D_ = R_.getContext("2d")); + Hk || (Hk = n.createElement("canvas"), Kk = Hk.getContext("2d")); const t = e, r = t.crossOrigin; t.crossOrigin = "anonymous"; const i = () => { t.removeEventListener("load", i); try { - R_.width = t.naturalWidth, R_.height = t.naturalHeight, D_.drawImage(t, 0, 0), w.rr_dataURL = R_.toDataURL(u.type, u.quality) + Hk.width = t.naturalWidth, Hk.height = t.naturalHeight, Kk.drawImage(t, 0, 0), w.rr_dataURL = Hk.toDataURL(u.type, u.quality) } catch (e) { console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`) } @@ -47285,13 +49568,13 @@ let E; try { customElements.get(k) && (E = !0) - } catch (I) {} + } catch (O) {} return { - type: d_.Element, + type: Ok.Element, tagName: k, attributes: w, childNodes: [], - isSVG: B_(e) || void 0, + isSVG: rw(e) || void 0, needBlock: x, rootId: m, isCustom: E @@ -47336,19 +49619,19 @@ m = "TEXTAREA" === d || void 0; if (h && p) { try { - e.nextSibling || e.previousSibling || u_([e, "access", e => e.parentNode, "access", e => e.sheet, "optionalAccess", e => e.cssRules]) && (p = f_(e.parentNode.sheet)) + e.nextSibling || e.previousSibling || Ek([e, "access", e => e.parentNode, "access", e => e.sheet, "optionalAccess", e => e.cssRules]) && (p = Ak(e.parentNode.sheet)) } catch (v) { console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`, e) } - p = F_(p, G_()) + p = Jk(p, iw()) } f && (p = "SCRIPT_PLACEHOLDER"); - const g = K_(e, r, a, i, o, n); + const g = cw(e, r, a, i, o, n); h || f || m || !p || !g || (p = s ? s(p, e.parentElement) : p.replace(/[\S]/g, "*")); m && p && (l.textarea || g) && (p = c ? c(p, e.parentNode) : p.replace(/[\S]/g, "*")); if ("OPTION" === d && p) { - p = y_({ - isMasked: K_(e, r, a, i, o, v_({ + p = Dk({ + isMasked: cw(e, r, a, i, o, Rk({ type: null, tagName: d, maskInputOptions: l @@ -47359,7 +49642,7 @@ }) } return { - type: d_.Text, + type: Ok.Text, textContent: p || "", isStyle: h, rootId: u @@ -47377,22 +49660,22 @@ }); case e.CDATA_SECTION_NODE: return { - type: d_.CDATA, textContent: "", rootId: k + type: Ok.CDATA, textContent: "", rootId: k }; case e.COMMENT_NODE: return { - type: d_.Comment, textContent: e.textContent || "", rootId: k + type: Ok.Comment, textContent: e.textContent || "", rootId: k }; default: return !1 } } - function Q_(e) { + function dw(e) { return void 0 === e || null === e ? "" : e.toLowerCase() } - function Z_(e, t) { + function pw(e, t) { const { doc: n, mirror: r, @@ -47418,14 +49701,14 @@ onIframeLoad: w, iframeLoadTimeout: S = 5e3, onStylesheetLoad: E, - stylesheetLoadTimeout: I = 5e3, - keepIframeSrcFn: O = (() => !1), + stylesheetLoadTimeout: O = 5e3, + keepIframeSrcFn: I = (() => !1), newlyAddedElement: C = !1 } = t; let { preserveWhiteSpace: A = !0 } = t; - const P = Y_(e, { + const P = uw(e, { doc: n, mirror: r, blockClass: i, @@ -47444,40 +49727,40 @@ dataURLOptions: _, inlineImages: b, recordCanvas: x, - keepIframeSrcFn: O, + keepIframeSrcFn: I, newlyAddedElement: C }); if (!P) return console.warn(e, "not serialized"), null; let T; T = r.hasNode(e) ? r.getId(e) : ! function(e, t) { - if (t.comment && e.type === d_.Comment) return !0; - if (e.type === d_.Element) { - if (t.script && ("script" === e.tagName || "link" === e.tagName && ("preload" === e.attributes.rel || "modulepreload" === e.attributes.rel) && "script" === e.attributes.as || "link" === e.tagName && "prefetch" === e.attributes.rel && "string" === typeof e.attributes.href && "js" === S_(e.attributes.href))) return !0; - if (t.headFavicon && ("link" === e.tagName && "shortcut icon" === e.attributes.rel || "meta" === e.tagName && (Q_(e.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === Q_(e.attributes.name) || "icon" === Q_(e.attributes.rel) || "apple-touch-icon" === Q_(e.attributes.rel) || "shortcut icon" === Q_(e.attributes.rel)))) return !0; + if (t.comment && e.type === Ok.Comment) return !0; + if (e.type === Ok.Element) { + if (t.script && ("script" === e.tagName || "link" === e.tagName && ("preload" === e.attributes.rel || "modulepreload" === e.attributes.rel) && "script" === e.attributes.as || "link" === e.tagName && "prefetch" === e.attributes.rel && "string" === typeof e.attributes.href && "js" === zk(e.attributes.href))) return !0; + if (t.headFavicon && ("link" === e.tagName && "shortcut icon" === e.attributes.rel || "meta" === e.tagName && (dw(e.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === dw(e.attributes.name) || "icon" === dw(e.attributes.rel) || "apple-touch-icon" === dw(e.attributes.rel) || "shortcut icon" === dw(e.attributes.rel)))) return !0; if ("meta" === e.tagName) { - if (t.headMetaDescKeywords && Q_(e.attributes.name).match(/^description|keywords$/)) return !0; - if (t.headMetaSocial && (Q_(e.attributes.property).match(/^(og|twitter|fb):/) || Q_(e.attributes.name).match(/^(og|twitter):/) || "pinterest" === Q_(e.attributes.name))) return !0; - if (t.headMetaRobots && ("robots" === Q_(e.attributes.name) || "googlebot" === Q_(e.attributes.name) || "bingbot" === Q_(e.attributes.name))) return !0; + if (t.headMetaDescKeywords && dw(e.attributes.name).match(/^description|keywords$/)) return !0; + if (t.headMetaSocial && (dw(e.attributes.property).match(/^(og|twitter|fb):/) || dw(e.attributes.name).match(/^(og|twitter):/) || "pinterest" === dw(e.attributes.name))) return !0; + if (t.headMetaRobots && ("robots" === dw(e.attributes.name) || "googlebot" === dw(e.attributes.name) || "bingbot" === dw(e.attributes.name))) return !0; if (t.headMetaHttpEquiv && void 0 !== e.attributes["http-equiv"]) return !0; - if (t.headMetaAuthorship && ("author" === Q_(e.attributes.name) || "generator" === Q_(e.attributes.name) || "framework" === Q_(e.attributes.name) || "publisher" === Q_(e.attributes.name) || "progid" === Q_(e.attributes.name) || Q_(e.attributes.property).match(/^article:/) || Q_(e.attributes.property).match(/^product:/))) return !0; - if (t.headMetaVerification && ("google-site-verification" === Q_(e.attributes.name) || "yandex-verification" === Q_(e.attributes.name) || "csrf-token" === Q_(e.attributes.name) || "p:domain_verify" === Q_(e.attributes.name) || "verify-v1" === Q_(e.attributes.name) || "verification" === Q_(e.attributes.name) || "shopify-checkout-api-token" === Q_(e.attributes.name))) return !0 + if (t.headMetaAuthorship && ("author" === dw(e.attributes.name) || "generator" === dw(e.attributes.name) || "framework" === dw(e.attributes.name) || "publisher" === dw(e.attributes.name) || "progid" === dw(e.attributes.name) || dw(e.attributes.property).match(/^article:/) || dw(e.attributes.property).match(/^product:/))) return !0; + if (t.headMetaVerification && ("google-site-verification" === dw(e.attributes.name) || "yandex-verification" === dw(e.attributes.name) || "csrf-token" === dw(e.attributes.name) || "p:domain_verify" === dw(e.attributes.name) || "verify-v1" === dw(e.attributes.name) || "verification" === dw(e.attributes.name) || "shopify-checkout-api-token" === dw(e.attributes.name))) return !0 } } return !1 - }(P, y) && (A || P.type !== d_.Text || P.isStyle || P.textContent.replace(/^\s+|\s+$/gm, "").length) ? T_() : -2; + }(P, y) && (A || P.type !== Ok.Text || P.isStyle || P.textContent.replace(/^\s+|\s+$/gm, "").length) ? Wk() : -2; const R = Object.assign(P, { id: T }); if (r.add(e, R), -2 === T) return null; k && k(e); let D = !p; - if (R.type === d_.Element) { + if (R.type === Ok.Element) { D = D && !R.needBlock, delete R.needBlock; const t = e.shadowRoot; - t && h_(t) && (R.isShadowHost = !0) + t && Ck(t) && (R.isShadowHost = !0) } - if ((R.type === d_.Document || R.type === d_.Element) && D) { - y.headWhitespace && R.type === d_.Element && "head" === R.tagName && (A = !1); + if ((R.type === Ok.Document || R.type === Ok.Element) && D) { + y.headWhitespace && R.type === Ok.Element && "head" === R.tagName && (A = !1); const t = { doc: n, mirror: r, @@ -47504,22 +49787,22 @@ onIframeLoad: w, iframeLoadTimeout: S, onStylesheetLoad: E, - stylesheetLoadTimeout: I, - keepIframeSrcFn: O + stylesheetLoadTimeout: O, + keepIframeSrcFn: I }; for (const n of Array.from(e.childNodes)) { - const e = Z_(n, t); + const e = pw(n, t); e && R.childNodes.push(e) } if (function(e) { return e.nodeType === e.ELEMENT_NODE }(e) && e.shadowRoot) for (const n of Array.from(e.shadowRoot.childNodes)) { - const r = Z_(n, t); - r && (h_(e.shadowRoot) && (r.isShadow = !0), R.childNodes.push(r)) + const r = pw(n, t); + r && (Ck(e.shadowRoot) && (r.isShadow = !0), R.childNodes.push(r)) } } - return e.parentNode && p_(e.parentNode) && h_(e.parentNode) && (R.isShadow = !0), R.type === d_.Element && "iframe" === R.tagName && function(e, t, n) { + return e.parentNode && Ik(e.parentNode) && Ck(e.parentNode) && (R.isShadow = !0), R.type === Ok.Element && "iframe" === R.tagName && function(e, t, n) { const r = e.contentWindow; if (!r) return; let i, a = !1; @@ -47529,20 +49812,20 @@ return } if ("complete" !== i) { - const r = O_((() => { + const r = Bk((() => { a || (t(), a = !0) }), n); return void e.addEventListener("load", (() => { - C_(r), a = !0, t() + Gk(r), a = !0, t() })) } const o = "about:blank"; - if (r.location.href !== o || e.src === o || "" === e.src) return O_(t, 0), e.addEventListener("load", t); + if (r.location.href !== o || e.src === o || "" === e.src) return Bk(t, 0), e.addEventListener("load", t); e.addEventListener("load", t) }(e, (() => { const t = e.contentDocument; if (t && w) { - const n = Z_(t, { + const n = pw(t, { doc: t, mirror: r, blockClass: i, @@ -47568,12 +49851,12 @@ onIframeLoad: w, iframeLoadTimeout: S, onStylesheetLoad: E, - stylesheetLoadTimeout: I, - keepIframeSrcFn: O + stylesheetLoadTimeout: O, + keepIframeSrcFn: I }); n && w(e, n) } - }), S), R.type === d_.Element && "link" === R.tagName && "string" === typeof R.attributes.rel && ("stylesheet" === R.attributes.rel || "preload" === R.attributes.rel && "string" === typeof R.attributes.href && "css" === S_(R.attributes.href)) && function(e, t, n) { + }), S), R.type === Ok.Element && "link" === R.tagName && "string" === typeof R.attributes.rel && ("stylesheet" === R.attributes.rel || "preload" === R.attributes.rel && "string" === typeof R.attributes.href && "css" === zk(R.attributes.href)) && function(e, t, n) { let r, i = !1; try { r = e.sheet @@ -47581,15 +49864,15 @@ return } if (r) return; - const a = O_((() => { + const a = Bk((() => { i || (t(), i = !0) }), n); e.addEventListener("load", (() => { - C_(a), i = !0, t() + Gk(a), i = !0, t() })) }(e, (() => { if (E) { - const t = Z_(e, { + const t = pw(e, { doc: n, mirror: r, blockClass: i, @@ -47615,15 +49898,15 @@ onIframeLoad: w, iframeLoadTimeout: S, onStylesheetLoad: E, - stylesheetLoadTimeout: I, - keepIframeSrcFn: O + stylesheetLoadTimeout: O, + keepIframeSrcFn: I }); t && E(e, t) } - }), I), R + }), O), R } - function X_(e) { + function hw(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -47635,28 +49918,28 @@ return n } - function J_(e, t, n = document) { + function fw(e, t, n = document) { const r = { capture: !0, passive: !0 }; return n.addEventListener(e, t, r), () => n.removeEventListener(e, t, r) } - const eb = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording."; - let tb = { + const mw = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording."; + let gw = { map: {}, - getId: () => (console.error(eb), -1), - getNode: () => (console.error(eb), null), + getId: () => (console.error(mw), -1), + getNode: () => (console.error(mw), null), removeNodeFromMap() { - console.error(eb) + console.error(mw) }, - has: () => (console.error(eb), !1), + has: () => (console.error(mw), !1), reset() { - console.error(eb) + console.error(mw) } }; - function nb(e, t, n = {}) { + function vw(e, t, n = {}) { let r = null, i = 0; return function(...a) { @@ -47665,25 +49948,25 @@ const s = t - (o - i), l = this; s <= 0 || s > t ? (r && (! function(...e) { - kb("clearTimeout")(...e) - }(r), r = null), i = o, e.apply(l, a)) : r || !1 === n.trailing || (r = wb((() => { + Mw("clearTimeout")(...e) + }(r), r = null), i = o, e.apply(l, a)) : r || !1 === n.trailing || (r = Fw((() => { i = !1 === n.leading ? 0 : Date.now(), r = null, e.apply(l, a) }), s)) } } - function rb(e, t, n, r, i = window) { + function yw(e, t, n, r, i = window) { const a = i.Object.getOwnPropertyDescriptor(e, t); return i.Object.defineProperty(e, t, r ? n : { set(e) { - wb((() => { + Fw((() => { n.set.call(this, e) }), 0), a && a.set && a.set.call(this, e) } - }), () => rb(e, t, a || {}, !0) + }), () => yw(e, t, a || {}, !0) } - function ib(e, t, n) { + function _w(e, t, n) { try { if (!(t in e)) return () => {}; const r = e[t], @@ -47696,77 +49979,77 @@ })), e[t] = i, () => { e[t] = r } - } catch (ll) { + } catch (r) { return () => {} } } - "undefined" !== typeof window && window.Proxy && window.Reflect && (tb = new Proxy(tb, { - get: (e, t, n) => ("map" === t && console.error(eb), Reflect.get(e, t, n)) + "undefined" !== typeof window && window.Proxy && window.Reflect && (gw = new Proxy(gw, { + get: (e, t, n) => ("map" === t && console.error(mw), Reflect.get(e, t, n)) })); - let ab = Date.now; + let bw = Date.now; - function ob(e) { + function xw(e) { const t = e.document; return { - left: t.scrollingElement ? t.scrollingElement.scrollLeft : void 0 !== e.pageXOffset ? e.pageXOffset : X_([t, "optionalAccess", e => e.documentElement, "access", e => e.scrollLeft]) || X_([t, "optionalAccess", e => e.body, "optionalAccess", e => e.parentElement, "optionalAccess", e => e.scrollLeft]) || X_([t, "optionalAccess", e => e.body, "optionalAccess", e => e.scrollLeft]) || 0, - top: t.scrollingElement ? t.scrollingElement.scrollTop : void 0 !== e.pageYOffset ? e.pageYOffset : X_([t, "optionalAccess", e => e.documentElement, "access", e => e.scrollTop]) || X_([t, "optionalAccess", e => e.body, "optionalAccess", e => e.parentElement, "optionalAccess", e => e.scrollTop]) || X_([t, "optionalAccess", e => e.body, "optionalAccess", e => e.scrollTop]) || 0 + left: t.scrollingElement ? t.scrollingElement.scrollLeft : void 0 !== e.pageXOffset ? e.pageXOffset : hw([t, "optionalAccess", e => e.documentElement, "access", e => e.scrollLeft]) || hw([t, "optionalAccess", e => e.body, "optionalAccess", e => e.parentElement, "optionalAccess", e => e.scrollLeft]) || hw([t, "optionalAccess", e => e.body, "optionalAccess", e => e.scrollLeft]) || 0, + top: t.scrollingElement ? t.scrollingElement.scrollTop : void 0 !== e.pageYOffset ? e.pageYOffset : hw([t, "optionalAccess", e => e.documentElement, "access", e => e.scrollTop]) || hw([t, "optionalAccess", e => e.body, "optionalAccess", e => e.parentElement, "optionalAccess", e => e.scrollTop]) || hw([t, "optionalAccess", e => e.body, "optionalAccess", e => e.scrollTop]) || 0 } } - function sb() { + function kw() { return window.innerHeight || document.documentElement && document.documentElement.clientHeight || document.body && document.body.clientHeight } - function lb() { + function ww() { return window.innerWidth || document.documentElement && document.documentElement.clientWidth || document.body && document.body.clientWidth } - function cb(e) { + function Sw(e) { if (!e) return null; return e.nodeType === e.ELEMENT_NODE ? e : e.parentElement } - function ub(e, t, n, r, i) { + function Ew(e, t, n, r, i) { if (!e) return !1; - const a = cb(e); + const a = Sw(e); if (!a) return !1; - const o = H_(t, n); + const o = lw(t, n); if (!i) { const e = r && a.matches(r); return o(a) && !e } - const s = q_(a, o); + const s = sw(a, o); let l = -1; - return !(s < 0) && (r && (l = q_(a, H_(null, r))), s > -1 && l < 0 || s < l) + return !(s < 0) && (r && (l = sw(a, lw(null, r))), s > -1 && l < 0 || s < l) } - function db(e, t) { + function Ow(e, t) { return -2 === t.getId(e) } - function pb(e, t) { - if (p_(e)) return !1; + function Iw(e, t) { + if (Ik(e)) return !1; const n = t.getId(e); - return !t.has(n) || (!e.parentNode || e.parentNode.nodeType !== e.DOCUMENT_NODE) && (!e.parentNode || pb(e.parentNode, t)) + return !t.has(n) || (!e.parentNode || e.parentNode.nodeType !== e.DOCUMENT_NODE) && (!e.parentNode || Iw(e.parentNode, t)) } - function hb(e) { + function Cw(e) { return Boolean(e.changedTouches) } - function fb(e, t) { + function Aw(e, t) { return Boolean("IFRAME" === e.nodeName && t.getMeta(e)) } - function mb(e, t) { + function Pw(e, t) { return Boolean("LINK" === e.nodeName && e.nodeType === e.ELEMENT_NODE && e.getAttribute && "stylesheet" === e.getAttribute("rel") && t.getMeta(e)) } - function gb(e) { - return Boolean(X_([e, "optionalAccess", e => e.shadowRoot])) + function Tw(e) { + return Boolean(hw([e, "optionalAccess", e => e.shadowRoot])) } - /[1-9][0-9]{12}/.test(Date.now().toString()) || (ab = () => (new Date).getTime()); - class vb { + /[1-9][0-9]{12}/.test(Date.now().toString()) || (bw = () => (new Date).getTime()); + class Rw { constructor() { this.id = 1, this.styleIDMap = new WeakMap, this.idStyleMap = new Map } @@ -47793,30 +50076,30 @@ } } - function yb(e) { + function Dw(e) { let t = null; - return X_([e, "access", e => e.getRootNode, "optionalCall", e => e(), "optionalAccess", e => e.nodeType]) === Node.DOCUMENT_FRAGMENT_NODE && e.getRootNode().host && (t = e.getRootNode().host), t + return hw([e, "access", e => e.getRootNode, "optionalCall", e => e(), "optionalAccess", e => e.nodeType]) === Node.DOCUMENT_FRAGMENT_NODE && e.getRootNode().host && (t = e.getRootNode().host), t } - function _b(e) { + function Lw(e) { const t = e.ownerDocument; if (!t) return !1; const n = function(e) { let t, n = e; - for (; t = yb(n);) n = t; + for (; t = Dw(n);) n = t; return n }(e); return t.contains(n) } - function bb(e) { + function Nw(e) { const t = e.ownerDocument; - return !!t && (t.contains(e) || _b(e)) + return !!t && (t.contains(e) || Lw(e)) } - const xb = {}; + const jw = {}; - function kb(e) { - const t = xb[e]; + function Mw(e) { + const t = jw[e]; if (t) return t; const n = window.document; let r = window[e]; @@ -47826,18 +50109,18 @@ const i = t.contentWindow; i && i[e] && (r = i[e]), n.head.removeChild(t) } catch (i) {} - return xb[e] = r.bind(window) + return jw[e] = r.bind(window) } - function wb(...e) { - return kb("setTimeout")(...e) + function Fw(...e) { + return Mw("setTimeout")(...e) } - var Sb = (e => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e))(Sb || {}), - Eb = (e => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e))(Eb || {}), - Ib = (e => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(Ib || {}), - Ob = (e => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(Ob || {}); + var zw = (e => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e))(zw || {}), + Vw = (e => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e))(Vw || {}), + Uw = (e => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(Uw || {}), + Bw = (e => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(Bw || {}); - function Cb(e) { + function Gw(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -47849,17 +50132,17 @@ return n } - function Ab(e) { + function $w(e) { return "__ln" in e } - class Pb { + class qw { constructor() { this.length = 0, this.head = null, this.tail = null } get(e) { if (e >= this.length) throw new Error("Position outside of list range"); let t = this.head; - for (let n = 0; n < e; n++) t = Cb([t, "optionalAccess", e => e.next]) || null; + for (let n = 0; n < e; n++) t = Gw([t, "optionalAccess", e => e.next]) || null; return t } addNode(e) { @@ -47868,10 +50151,10 @@ previous: null, next: null }; - if (e.__ln = t, e.previousSibling && Ab(e.previousSibling)) { + if (e.__ln = t, e.previousSibling && $w(e.previousSibling)) { const n = e.previousSibling.__ln.next; t.next = n, t.previous = e.previousSibling.__ln, e.previousSibling.__ln.next = t, n && (n.previous = t) - } else if (e.nextSibling && Ab(e.nextSibling) && e.nextSibling.__ln.previous) { + } else if (e.nextSibling && $w(e.nextSibling) && e.nextSibling.__ln.previous) { const n = e.nextSibling.__ln.previous; t.previous = n, t.next = e.nextSibling.__ln, e.nextSibling.__ln.previous = t, n && (n.next = t) } else this.head && (this.head.previous = t), t.next = this.head, this.head = t; @@ -47882,8 +50165,8 @@ this.head && (t.previous ? (t.previous.next = t.next, t.next ? t.next.previous = t.previous : this.tail = t.previous) : (this.head = t.next, this.head ? this.head.previous = null : this.tail = null), e.__ln && delete e.__ln, this.length--) } } - const Tb = (e, t) => `${e}@${t}`; - class Rb { + const Ww = (e, t) => `${e}@${t}`; + class Hw { constructor() { this.frozen = !1, this.locked = !1, this.texts = [], this.attributes = [], this.attributeMap = new WeakMap, this.removes = [], this.mapRemoves = [], this.movedMap = {}, this.addedSet = new Set, this.movedSet = new Set, this.droppedSet = new Set, this.processMutations = e => { e.forEach(this.processMutation), this.emit() @@ -47891,7 +50174,7 @@ if (this.frozen || this.locked) return; const e = [], t = new Set, - n = new Pb, + n = new qw, r = e => { let t = e, n = -2; @@ -47899,11 +50182,11 @@ return n }, i = i => { - if (!i.parentNode || !bb(i)) return; - const a = p_(i.parentNode) ? this.mirror.getId(yb(i)) : this.mirror.getId(i.parentNode), + if (!i.parentNode || !Nw(i)) return; + const a = Ik(i.parentNode) ? this.mirror.getId(Dw(i)) : this.mirror.getId(i.parentNode), o = r(i); if (-1 === a || -1 === o) return n.addNode(i); - const s = Z_(i, { + const s = pw(i, { doc: this.doc, mirror: this.mirror, blockClass: this.blockClass, @@ -47926,10 +50209,10 @@ recordCanvas: this.recordCanvas, inlineImages: this.inlineImages, onSerialize: e => { - fb(e, this.mirror) && this.iframeManager.addIframe(e), mb(e, this.mirror) && this.stylesheetManager.trackLinkElement(e), gb(i) && this.shadowDomManager.addShadowRoot(i.shadowRoot, this.doc) + Aw(e, this.mirror) && !Ew(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) && this.iframeManager.addIframe(e), Pw(e, this.mirror) && this.stylesheetManager.trackLinkElement(e), Tw(i) && this.shadowDomManager.addShadowRoot(i.shadowRoot, this.doc) }, onIframeLoad: (e, t) => { - this.iframeManager.attachIframe(e, t), e.contentWindow && this.canvasManager.addWindow(e.contentWindow), this.shadowDomManager.observeAttachShadow(e) + Ew(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) || (this.iframeManager.attachIframe(e, t), e.contentWindow && this.canvasManager.addWindow(e.contentWindow), this.shadowDomManager.observeAttachShadow(e)) }, onStylesheetLoad: (e, t) => { this.stylesheetManager.attachLinkElement(e, t) @@ -47942,8 +50225,8 @@ }), t.add(s.id)) }; for (; this.mapRemoves.length;) this.mirror.removeNodeFromMap(this.mapRemoves.shift()); - for (const s of this.movedSet) Lb(this.removes, s, this.mirror) && !this.movedSet.has(s.parentNode) || i(s); - for (const s of this.addedSet) Mb(this.droppedSet, s) || Lb(this.removes, s, this.mirror) ? Mb(this.movedSet, s) ? i(s) : this.droppedSet.add(s) : i(s); + for (const s of this.movedSet) Yw(this.removes, s, this.mirror) && !this.movedSet.has(s.parentNode) || i(s); + for (const s of this.addedSet) Zw(this.droppedSet, s) || Yw(this.removes, s, this.mirror) ? Zw(this.movedSet, s) ? i(s) : this.droppedSet.add(s) : i(s); let a = null; for (; n.length;) { let e = null; @@ -48004,11 +50287,11 @@ }; (o.texts.length || o.attributes.length || o.removes.length || o.adds.length) && (this.texts = [], this.attributes = [], this.attributeMap = new WeakMap, this.removes = [], this.addedSet = new Set, this.movedSet = new Set, this.droppedSet = new Set, this.movedMap = {}, this.mutationCb(o)) }, this.processMutation = e => { - if (!db(e.target, this.mirror)) switch (e.type) { + if (!Ow(e.target, this.mirror)) switch (e.type) { case "characterData": { const t = e.target.textContent; - ub(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !1) || t === e.oldValue || this.texts.push({ - value: K_(e.target, this.maskTextClass, this.maskTextSelector, this.unmaskTextClass, this.unmaskTextSelector, this.maskAllText) && t ? this.maskTextFn ? this.maskTextFn(t, cb(e.target)) : t.replace(/[\S]/g, "*") : t, + Ew(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !1) || t === e.oldValue || this.texts.push({ + value: cw(e.target, this.maskTextClass, this.maskTextSelector, this.unmaskTextClass, this.unmaskTextSelector, this.maskAllText) && t ? this.maskTextFn ? this.maskTextFn(t, Sw(e.target)) : t.replace(/[\S]/g, "*") : t, node: e.target }); break @@ -48018,22 +50301,22 @@ let r = e.attributeName, i = e.target.getAttribute(r); if ("value" === r) { - const t = k_(n), + const t = Mk(n), r = n.tagName; - i = w_(n, r, t); - const a = v_({ + i = Fk(n, r, t); + const a = Rk({ maskInputOptions: this.maskInputOptions, tagName: r, type: t }); - i = y_({ - isMasked: K_(e.target, this.maskTextClass, this.maskTextSelector, this.unmaskTextClass, this.unmaskTextSelector, a), + i = Dk({ + isMasked: cw(e.target, this.maskTextClass, this.maskTextSelector, this.unmaskTextClass, this.unmaskTextSelector, a), element: n, value: i, maskInputFn: this.maskInputFn }) } - if (ub(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !1) || i === e.oldValue) return; + if (Ew(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !1) || i === e.oldValue) return; let a = this.attributeMap.get(e.target); if ("IFRAME" === n.tagName && "src" === r && !this.keepIframeSrcFn(i)) { if (n.contentDocument) return; @@ -48044,7 +50327,7 @@ attributes: {}, styleDiff: {}, _unchangedStyles: {} - }, this.attributes.push(a), this.attributeMap.set(e.target, a)), "type" === r && "INPUT" === n.tagName && "password" === (e.oldValue || "").toLowerCase() && n.setAttribute("data-rr-is-password", "true"), !$_(n.tagName, r) && (a.attributes[r] = W_(this.doc, __(n.tagName), __(r), i, n, this.maskAttributeFn), "style" === r)) { + }, this.attributes.push(a), this.attributeMap.set(e.target, a)), "type" === r && "INPUT" === n.tagName && "password" === (e.oldValue || "").toLowerCase() && n.setAttribute("data-rr-is-password", "true"), !ow(n.tagName, r) && (a.attributes[r] = aw(this.doc, Lk(n.tagName), Lk(r), i, n, this.maskAttributeFn), "style" === r)) { if (!this.unattachedDoc) try { this.unattachedDoc = document.implementation.createHTMLDocument() } catch (t) { @@ -48062,28 +50345,28 @@ break } case "childList": - if (ub(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !0)) return; + if (Ew(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !0)) return; e.addedNodes.forEach((t => this.genAdds(t, e.target))), e.removedNodes.forEach((t => { const n = this.mirror.getId(t), - r = p_(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target); - ub(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !1) || db(t, this.mirror) || ! function(e, t) { + r = Ik(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target); + Ew(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !1) || Ow(t, this.mirror) || ! function(e, t) { return -1 !== t.getId(e) - }(t, this.mirror) || (this.addedSet.has(t) ? (Db(this.addedSet, t), this.droppedSet.add(t)) : this.addedSet.has(e.target) && -1 === n || pb(e.target, this.mirror) || (this.movedSet.has(t) && this.movedMap[Tb(n, r)] ? Db(this.movedSet, t) : this.removes.push({ + }(t, this.mirror) || (this.addedSet.has(t) ? (Kw(this.addedSet, t), this.droppedSet.add(t)) : this.addedSet.has(e.target) && -1 === n || Iw(e.target, this.mirror) || (this.movedSet.has(t) && this.movedMap[Ww(n, r)] ? Kw(this.movedSet, t) : this.removes.push({ parentId: r, id: n, - isShadow: !(!p_(e.target) || !h_(e.target)) || void 0 + isShadow: !(!Ik(e.target) || !Ck(e.target)) || void 0 })), this.mapRemoves.push(t)) })) } }, this.genAdds = (e, t) => { if (!this.processedNodeManager.inOtherBuffer(e, this) && !this.addedSet.has(e) && !this.movedSet.has(e)) { if (this.mirror.hasNode(e)) { - if (db(e, this.mirror)) return; + if (Ow(e, this.mirror)) return; this.movedSet.add(e); let n = null; - t && this.mirror.hasNode(t) && (n = this.mirror.getId(t)), n && -1 !== n && (this.movedMap[Tb(this.mirror.getId(e), n)] = !0) + t && this.mirror.hasNode(t) && (n = this.mirror.getId(t)), n && -1 !== n && (this.movedMap[Ww(this.mirror.getId(e), n)] = !0) } else this.addedSet.add(e), this.droppedSet.delete(e); - ub(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) || (e.childNodes.forEach((e => this.genAdds(e))), gb(e) && e.shadowRoot.childNodes.forEach((t => { + Ew(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) || (e.childNodes.forEach((e => this.genAdds(e))), Tw(e) && e.shadowRoot.childNodes.forEach((t => { this.processedNodeManager.add(t, this), this.genAdds(t, e) }))) } @@ -48114,55 +50397,55 @@ } } - function Db(e, t) { - e.delete(t), t.childNodes.forEach((t => Db(e, t))) + function Kw(e, t) { + e.delete(t), t.childNodes.forEach((t => Kw(e, t))) } - function Lb(e, t, n) { - return 0 !== e.length && Nb(e, t, n) + function Yw(e, t, n) { + return 0 !== e.length && Qw(e, t, n) } - function Nb(e, t, n) { + function Qw(e, t, n) { const { parentNode: r } = t; if (!r) return !1; const i = n.getId(r); - return !!e.some((e => e.id === i)) || Nb(e, r, n) + return !!e.some((e => e.id === i)) || Qw(e, r, n) } - function Mb(e, t) { - return 0 !== e.size && jb(e, t) + function Zw(e, t) { + return 0 !== e.size && Xw(e, t) } - function jb(e, t) { + function Xw(e, t) { const { parentNode: n } = t; - return !!n && (!!e.has(n) || jb(e, n)) + return !!n && (!!e.has(n) || Xw(e, n)) } - let Fb; + let Jw; - function zb(e) { - Fb = e + function eS(e) { + Jw = e } - function Vb() { - Fb = void 0 + function tS() { + Jw = void 0 } - const Ub = e => { - if (!Fb) return e; + const nS = e => { + if (!Jw) return e; return (...t) => { try { return e(...t) } catch (n) { - if (Fb && !0 === Fb(n)) return () => {}; + if (Jw && !0 === Jw(n)) return () => {}; throw n } } }; - function Bb(e) { + function rS(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -48173,25 +50456,25 @@ } return n } - const Gb = []; + const iS = []; - function Wb(e) { + function aS(e) { try { if ("composedPath" in e) { const t = e.composedPath(); if (t.length) return t[0] } else if ("path" in e && e.path.length) return e.path[0] - } catch (ll) {} + } catch (t) {} return e && e.target } - function $b(e, t) { - const n = new Rb; - Gb.push(n), n.init(e); + function oS(e, t) { + const n = new Hw; + iS.push(n), n.init(e); let r = window.MutationObserver || window.__rrMutationObserver; - const i = Bb([window, "optionalAccess", e => e.Zone, "optionalAccess", e => e.__symbol__, "optionalCall", e => e("MutationObserver")]); + const i = rS([window, "optionalAccess", e => e.Zone, "optionalAccess", e => e.__symbol__, "optionalCall", e => e("MutationObserver")]); i && window[i] && (r = window[i]); - const a = new r(Ub((t => { + const a = new r(nS((t => { e.onMutation && !1 === e.onMutation(t) || n.processMutations.bind(n)(t) }))); return a.observe(t, { @@ -48204,7 +50487,7 @@ }), a } - function qb({ + function sS({ mouseInteractionCb: e, doc: t, mirror: n, @@ -48217,36 +50500,36 @@ const s = !0 === o.mouseInteraction || void 0 === o.mouseInteraction ? {} : o.mouseInteraction, l = []; let c = null; - return Object.keys(Ib).filter((e => Number.isNaN(Number(e)) && !e.endsWith("_Departed") && !1 !== s[e])).forEach((o => { - let s = __(o); + return Object.keys(Uw).filter((e => Number.isNaN(Number(e)) && !e.endsWith("_Departed") && !1 !== s[e])).forEach((o => { + let s = Lk(o); const u = (t => o => { - const s = Wb(o); - if (ub(s, r, i, a, !0)) return; + const s = aS(o); + if (Ew(s, r, i, a, !0)) return; let l = null, u = t; if ("pointerType" in o) { switch (o.pointerType) { case "mouse": - l = Ob.Mouse; + l = Bw.Mouse; break; case "touch": - l = Ob.Touch; + l = Bw.Touch; break; case "pen": - l = Ob.Pen + l = Bw.Pen } - l === Ob.Touch ? Ib[t] === Ib.MouseDown ? u = "TouchStart" : Ib[t] === Ib.MouseUp && (u = "TouchEnd") : Ob.Pen - } else hb(o) && (l = Ob.Touch); - null !== l ? (c = l, (u.startsWith("Touch") && l === Ob.Touch || u.startsWith("Mouse") && l === Ob.Mouse) && (l = null)) : Ib[t] === Ib.Click && (l = c, c = null); - const d = hb(o) ? o.changedTouches[0] : o; + l === Bw.Touch ? Uw[t] === Uw.MouseDown ? u = "TouchStart" : Uw[t] === Uw.MouseUp && (u = "TouchEnd") : Bw.Pen + } else Cw(o) && (l = Bw.Touch); + null !== l ? (c = l, (u.startsWith("Touch") && l === Bw.Touch || u.startsWith("Mouse") && l === Bw.Mouse) && (l = null)) : Uw[t] === Uw.Click && (l = c, c = null); + const d = Cw(o) ? o.changedTouches[0] : o; if (!d) return; const p = n.getId(s), { clientX: h, clientY: f } = d; - Ub(e)({ - type: Ib[u], + nS(e)({ + type: Uw[u], id: p, x: h, y: f, @@ -48255,22 +50538,22 @@ } }) })(o); - if (window.PointerEvent) switch (Ib[o]) { - case Ib.MouseDown: - case Ib.MouseUp: + if (window.PointerEvent) switch (Uw[o]) { + case Uw.MouseDown: + case Uw.MouseUp: s = s.replace("mouse", "pointer"); break; - case Ib.TouchStart: - case Ib.TouchEnd: + case Uw.TouchStart: + case Uw.TouchEnd: return } - l.push(J_(s, u, t)) - })), Ub((() => { + l.push(fw(s, u, t)) + })), nS((() => { l.forEach((e => e())) })) } - function Hb({ + function lS({ scrollCb: e, doc: t, mirror: n, @@ -48279,12 +50562,12 @@ unblockSelector: a, sampling: o }) { - const s = Ub(nb(Ub((o => { - const s = Wb(o); - if (!s || ub(s, r, i, a, !0)) return; + const s = nS(vw(nS((o => { + const s = aS(o); + if (!s || Ew(s, r, i, a, !0)) return; const l = n.getId(s); if (s === t && t.defaultView) { - const n = ob(t.defaultView); + const n = xw(t.defaultView); e({ id: l, x: n.left, @@ -48296,12 +50579,12 @@ y: s.scrollTop }) })), o.scroll || 100)); - return J_("scroll", s, t) + return fw("scroll", s, t) } - const Kb = ["INPUT", "TEXTAREA", "SELECT"], - Yb = new WeakMap; + const cS = ["INPUT", "TEXTAREA", "SELECT"], + uS = new WeakMap; - function Qb({ + function dS({ inputCb: e, doc: t, mirror: n, @@ -48320,22 +50603,22 @@ unmaskTextSelector: m }) { function g(e) { - let n = Wb(e); + let n = aS(e); const u = e.isTrusted, - g = n && b_(n.tagName); - if ("OPTION" === g && (n = n.parentElement), !n || !g || Kb.indexOf(g) < 0 || ub(n, r, i, a, !0)) return; + g = n && Nk(n.tagName); + if ("OPTION" === g && (n = n.parentElement), !n || !g || cS.indexOf(g) < 0 || Ew(n, r, i, a, !0)) return; const y = n; if (y.classList.contains(o) || s && y.matches(s)) return; - const _ = k_(n); - let b = w_(y, g, _), + const _ = Mk(n); + let b = Fk(y, g, _), x = !1; - const k = v_({ + const k = Rk({ maskInputOptions: l, tagName: g, type: _ }), - w = K_(n, p, f, h, m, k); - "radio" !== _ && "checkbox" !== _ || (x = n.checked), b = y_({ + w = cw(n, p, f, h, m, k); + "radio" !== _ && "checkbox" !== _ || (x = n.checked), b = Dk({ isMasked: w, element: n, value: b, @@ -48351,10 +50634,10 @@ const S = n.name; "radio" === _ && S && x && t.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach((e => { if (e !== n) { - const t = y_({ + const t = Dk({ isMasked: w, element: e, - value: w_(e, g, _), + value: Fk(e, g, _), maskInputFn: c }); v(e, d ? { @@ -48370,17 +50653,17 @@ } function v(t, r) { - const i = Yb.get(t); + const i = uS.get(t); if (!i || i.text !== r.text || i.isChecked !== r.isChecked) { - Yb.set(t, r); + uS.set(t, r); const i = n.getId(t); - Ub(e)({ + nS(e)({ ...r, id: i }) } } - const y = ("last" === u.input ? ["change"] : ["input", "change"]).map((e => J_(e, Ub(g), t))), + const y = ("last" === u.input ? ["change"] : ["input", "change"]).map((e => fw(e, nS(g), t))), _ = t.defaultView; if (!_) return () => { y.forEach((e => e())) @@ -48394,21 +50677,21 @@ [_.HTMLSelectElement.prototype, "selectedIndex"], [_.HTMLOptionElement.prototype, "selected"] ]; - return b && b.set && y.push(...x.map((e => rb(e[0], e[1], { + return b && b.set && y.push(...x.map((e => yw(e[0], e[1], { set() { - Ub(g)({ + nS(g)({ target: this, isTrusted: !1 }) } - }, !1, _)))), Ub((() => { + }, !1, _)))), nS((() => { y.forEach((e => e())) })) } - function Zb(e) { + function pS(e) { return function(e, t) { - if (tx("CSSGroupingRule") && e.parentRule instanceof CSSGroupingRule || tx("CSSMediaRule") && e.parentRule instanceof CSSMediaRule || tx("CSSSupportsRule") && e.parentRule instanceof CSSSupportsRule || tx("CSSConditionRule") && e.parentRule instanceof CSSConditionRule) { + if (gS("CSSGroupingRule") && e.parentRule instanceof CSSGroupingRule || gS("CSSMediaRule") && e.parentRule instanceof CSSMediaRule || gS("CSSSupportsRule") && e.parentRule instanceof CSSSupportsRule || gS("CSSConditionRule") && e.parentRule instanceof CSSConditionRule) { const n = Array.from(e.parentRule.cssRules).indexOf(e); t.unshift(n) } else if (e.parentStyleSheet) { @@ -48419,7 +50702,7 @@ }(e, []) } - function Xb(e, t, n) { + function hS(e, t, n) { let r, i; return e ? (e.ownerNode ? r = t.getId(e.ownerNode) : i = n.getId(e), { styleId: i, @@ -48427,28 +50710,28 @@ }) : {} } - function Jb({ + function fS({ mirror: e, stylesheetManager: t }, n) { let r = null; r = "#document" === n.nodeName ? e.getId(n) : e.getId(n.host); - const i = "#document" === n.nodeName ? Bb([n, "access", e => e.defaultView, "optionalAccess", e => e.Document]) : Bb([n, "access", e => e.ownerDocument, "optionalAccess", e => e.defaultView, "optionalAccess", e => e.ShadowRoot]), - a = Bb([i, "optionalAccess", e => e.prototype]) ? Object.getOwnPropertyDescriptor(Bb([i, "optionalAccess", e => e.prototype]), "adoptedStyleSheets") : void 0; + const i = "#document" === n.nodeName ? rS([n, "access", e => e.defaultView, "optionalAccess", e => e.Document]) : rS([n, "access", e => e.ownerDocument, "optionalAccess", e => e.defaultView, "optionalAccess", e => e.ShadowRoot]), + a = rS([i, "optionalAccess", e => e.prototype]) ? Object.getOwnPropertyDescriptor(rS([i, "optionalAccess", e => e.prototype]), "adoptedStyleSheets") : void 0; return null !== r && -1 !== r && i && a ? (Object.defineProperty(n, "adoptedStyleSheets", { configurable: a.configurable, enumerable: a.enumerable, get() { - return Bb([a, "access", e => e.get, "optionalAccess", e => e.call, "call", e => e(this)]) + return rS([a, "access", e => e.get, "optionalAccess", e => e.call, "call", e => e(this)]) }, set(e) { - const n = Bb([a, "access", e => e.set, "optionalAccess", e => e.call, "call", t => t(this, e)]); + const n = rS([a, "access", e => e.set, "optionalAccess", e => e.call, "call", t => t(this, e)]); if (null !== r && -1 !== r) try { t.adoptStyleSheets(e, r) } catch (i) {} return n } - }), Ub((() => { + }), nS((() => { Object.defineProperty(n, "adoptedStyleSheets", { configurable: a.configurable, enumerable: a.enumerable, @@ -48458,11 +50741,11 @@ }))) : () => {} } - function ex(e, t = {}) { + function mS(e, t = {}) { const n = e.doc.defaultView; if (!n) return () => {}; let r; - e.recordDOM && (r = $b(e, e.doc)); + e.recordDOM && (r = oS(e, e.doc)); const i = function({ mousemoveCb: e, sampling: t, @@ -48473,32 +50756,32 @@ const i = "number" === typeof t.mousemove ? t.mousemove : 50, a = "number" === typeof t.mousemoveCallback ? t.mousemoveCallback : 500; let o, s = []; - const l = nb(Ub((t => { + const l = vw(nS((t => { const n = Date.now() - o; e(s.map((e => (e.timeOffset -= n, e))), t), s = [], o = null })), a), - c = Ub(nb(Ub((e => { - const t = Wb(e), + c = nS(vw(nS((e => { + const t = aS(e), { clientX: n, clientY: i - } = hb(e) ? e.changedTouches[0] : e; - o || (o = ab()), s.push({ + } = Cw(e) ? e.changedTouches[0] : e; + o || (o = bw()), s.push({ x: n, y: i, id: r.getId(t), - timeOffset: ab() - o - }), l("undefined" !== typeof DragEvent && e instanceof DragEvent ? Eb.Drag : e instanceof MouseEvent ? Eb.MouseMove : Eb.TouchMove) + timeOffset: bw() - o + }), l("undefined" !== typeof DragEvent && e instanceof DragEvent ? Vw.Drag : e instanceof MouseEvent ? Vw.MouseMove : Vw.TouchMove) })), i, { trailing: !1 })), - u = [J_("mousemove", c, n), J_("touchmove", c, n), J_("drag", c, n)]; - return Ub((() => { + u = [fw("mousemove", c, n), fw("touchmove", c, n), fw("drag", c, n)]; + return nS((() => { u.forEach((e => e())) })) }(e), - a = qb(e), - o = Hb(e), + a = sS(e), + o = lS(e), s = function({ viewportResizeCb: e }, { @@ -48506,9 +50789,9 @@ }) { let n = -1, r = -1; - return J_("resize", Ub(nb(Ub((() => { - const t = sb(), - i = lb(); + return fw("resize", nS(vw(nS((() => { + const t = kw(), + i = ww(); n === t && r === i || (e({ width: Number(i), height: Number(t) @@ -48517,7 +50800,7 @@ }(e, { win: n }), - l = Qb(e), + l = dS(e), c = function({ mediaInteractionCb: e, blockClass: t, @@ -48527,9 +50810,9 @@ sampling: a, doc: o }) { - const s = Ub((o => nb(Ub((a => { - const s = Wb(a); - if (!s || ub(s, t, n, r, !0)) return; + const s = nS((o => vw(nS((a => { + const s = aS(a); + if (!s || Ew(s, t, n, r, !0)) return; const { currentTime: l, volume: c, @@ -48545,8 +50828,8 @@ playbackRate: d }) })), a.media || 500))), - l = [J_("play", s(0), o), J_("pause", s(1), o), J_("seeked", s(2), o), J_("volumechange", s(3), o), J_("ratechange", s(4), o)]; - return Ub((() => { + l = [fw("play", s(0), o), fw("pause", s(1), o), fw("seeked", s(2), o), fw("volumechange", s(3), o), fw("ratechange", s(4), o)]; + return nS((() => { l.forEach((e => e())) })) }(e); @@ -48564,11 +50847,11 @@ if (!r.CSSStyleSheet || !r.CSSStyleSheet.prototype) return () => {}; const i = r.CSSStyleSheet.prototype.insertRule; r.CSSStyleSheet.prototype.insertRule = new Proxy(i, { - apply: Ub(((r, i, a) => { + apply: nS(((r, i, a) => { const [o, s] = a, { id: l, styleId: c - } = Xb(i, t, n.styleMirror); + } = hS(i, t, n.styleMirror); return (l && -1 !== l || c && -1 !== c) && e({ id: l, styleId: c, @@ -48582,11 +50865,11 @@ const a = r.CSSStyleSheet.prototype.deleteRule; let o, s; r.CSSStyleSheet.prototype.deleteRule = new Proxy(a, { - apply: Ub(((r, i, a) => { + apply: nS(((r, i, a) => { const [o] = a, { id: s, styleId: l - } = Xb(i, t, n.styleMirror); + } = hS(i, t, n.styleMirror); return (s && -1 !== s || l && -1 !== l) && e({ id: s, styleId: l, @@ -48596,11 +50879,11 @@ }), r.apply(i, a) })) }), r.CSSStyleSheet.prototype.replace && (o = r.CSSStyleSheet.prototype.replace, r.CSSStyleSheet.prototype.replace = new Proxy(o, { - apply: Ub(((r, i, a) => { + apply: nS(((r, i, a) => { const [o] = a, { id: s, styleId: l - } = Xb(i, t, n.styleMirror); + } = hS(i, t, n.styleMirror); return (s && -1 !== s || l && -1 !== l) && e({ id: s, styleId: l, @@ -48608,11 +50891,11 @@ }), r.apply(i, a) })) })), r.CSSStyleSheet.prototype.replaceSync && (s = r.CSSStyleSheet.prototype.replaceSync, r.CSSStyleSheet.prototype.replaceSync = new Proxy(s, { - apply: Ub(((r, i, a) => { + apply: nS(((r, i, a) => { const [o] = a, { id: s, styleId: l - } = Xb(i, t, n.styleMirror); + } = hS(i, t, n.styleMirror); return (s && -1 !== s || l && -1 !== l) && e({ id: s, styleId: l, @@ -48621,50 +50904,50 @@ })) })); const l = {}; - nx("CSSGroupingRule") ? l.CSSGroupingRule = r.CSSGroupingRule : (nx("CSSMediaRule") && (l.CSSMediaRule = r.CSSMediaRule), nx("CSSConditionRule") && (l.CSSConditionRule = r.CSSConditionRule), nx("CSSSupportsRule") && (l.CSSSupportsRule = r.CSSSupportsRule)); + vS("CSSGroupingRule") ? l.CSSGroupingRule = r.CSSGroupingRule : (vS("CSSMediaRule") && (l.CSSMediaRule = r.CSSMediaRule), vS("CSSConditionRule") && (l.CSSConditionRule = r.CSSConditionRule), vS("CSSSupportsRule") && (l.CSSSupportsRule = r.CSSSupportsRule)); const c = {}; return Object.entries(l).forEach((([r, i]) => { c[r] = { insertRule: i.prototype.insertRule, deleteRule: i.prototype.deleteRule }, i.prototype.insertRule = new Proxy(c[r].insertRule, { - apply: Ub(((r, i, a) => { + apply: nS(((r, i, a) => { const [o, s] = a, { id: l, styleId: c - } = Xb(i.parentStyleSheet, t, n.styleMirror); + } = hS(i.parentStyleSheet, t, n.styleMirror); return (l && -1 !== l || c && -1 !== c) && e({ id: l, styleId: c, adds: [{ rule: o, - index: [...Zb(i), s || 0] + index: [...pS(i), s || 0] }] }), r.apply(i, a) })) }), i.prototype.deleteRule = new Proxy(c[r].deleteRule, { - apply: Ub(((r, i, a) => { + apply: nS(((r, i, a) => { const [o] = a, { id: s, styleId: l - } = Xb(i.parentStyleSheet, t, n.styleMirror); + } = hS(i.parentStyleSheet, t, n.styleMirror); return (s && -1 !== s || l && -1 !== l) && e({ id: s, styleId: l, removes: [{ - index: [...Zb(i), o] + index: [...pS(i), o] }] }), r.apply(i, a) })) }) - })), Ub((() => { + })), nS((() => { r.CSSStyleSheet.prototype.insertRule = i, r.CSSStyleSheet.prototype.deleteRule = a, o && (r.CSSStyleSheet.prototype.replace = o), s && (r.CSSStyleSheet.prototype.replaceSync = s), Object.entries(l).forEach((([e, t]) => { t.prototype.insertRule = c[e].insertRule, t.prototype.deleteRule = c[e].deleteRule })) })) }(e, { win: n - }), d = Jb(e, e.doc), p = function({ + }), d = fS(e, e.doc), p = function({ styleDeclarationCb: e, mirror: t, ignoreCSSAttributes: n, @@ -48674,13 +50957,13 @@ }) { const a = i.CSSStyleDeclaration.prototype.setProperty; i.CSSStyleDeclaration.prototype.setProperty = new Proxy(a, { - apply: Ub(((i, o, s) => { + apply: nS(((i, o, s) => { const [l, c, u] = s; if (n.has(l)) return a.apply(o, [l, c, u]); const { id: d, styleId: p - } = Xb(Bb([o, "access", e => e.parentRule, "optionalAccess", e => e.parentStyleSheet]), t, r.styleMirror); + } = hS(rS([o, "access", e => e.parentRule, "optionalAccess", e => e.parentStyleSheet]), t, r.styleMirror); return (d && -1 !== d || p && -1 !== p) && e({ id: d, styleId: p, @@ -48689,29 +50972,29 @@ value: c, priority: u }, - index: Zb(o.parentRule) + index: pS(o.parentRule) }), i.apply(o, s) })) }); const o = i.CSSStyleDeclaration.prototype.removeProperty; return i.CSSStyleDeclaration.prototype.removeProperty = new Proxy(o, { - apply: Ub(((i, a, s) => { + apply: nS(((i, a, s) => { const [l] = s; if (n.has(l)) return o.apply(a, [l]); const { id: c, styleId: u - } = Xb(Bb([a, "access", e => e.parentRule, "optionalAccess", e => e.parentStyleSheet]), t, r.styleMirror); + } = hS(rS([a, "access", e => e.parentRule, "optionalAccess", e => e.parentStyleSheet]), t, r.styleMirror); return (c && -1 !== c || u && -1 !== u) && e({ id: c, styleId: u, remove: { property: l }, - index: Zb(a.parentRule) + index: pS(a.parentRule) }), i.apply(a, s) })) - }), Ub((() => { + }), nS((() => { i.CSSStyleDeclaration.prototype.setProperty = a, i.CSSStyleDeclaration.prototype.removeProperty = o })) }(e, { @@ -48734,9 +51017,9 @@ fontSource: "string" === typeof t ? t : JSON.stringify(Array.from(new Uint8Array(t))) }), r }; - const o = ib(t.fonts, "add", (function(t) { + const o = _w(t.fonts, "add", (function(t) { return function(n) { - return wb(Ub((() => { + return Fw(nS((() => { const t = i.get(n); t && (e(t), i.delete(n)) })), 0), t.apply(this, [n]) @@ -48744,7 +51027,7 @@ })); return r.push((() => { n.FontFace = a - })), r.push(o), Ub((() => { + })), r.push(o), nS((() => { r.forEach((e => e())) })) }(e))); @@ -48758,9 +51041,9 @@ selectionCb: o } = e; let s = !0; - const l = Ub((() => { + const l = nS((() => { const e = t.getSelection(); - if (!e || s && Bb([e, "optionalAccess", e => e.isCollapsed])) return; + if (!e || s && rS([e, "optionalAccess", e => e.isCollapsed])) return; s = e.isCollapsed || !1; const l = [], c = e.rangeCount || 0; @@ -48772,7 +51055,7 @@ endContainer: u, endOffset: d } = o; - ub(s, r, i, a, !0) || ub(u, r, i, a, !0) || l.push({ + Ew(s, r, i, a, !0) || Ew(u, r, i, a, !0) || l.push({ start: n.getId(s), startOffset: c, end: n.getId(u), @@ -48783,14 +51066,14 @@ ranges: l }) })); - return l(), J_("selectionchange", l) + return l(), fw("selectionchange", l) }(e), m = function({ doc: e, customElementCb: t }) { const n = e.defaultView; - return n && n.customElements ? ib(n.customElements, "define", (function(e) { + return n && n.customElements ? _w(n.customElements, "define", (function(e) { return function(n, r, i) { try { t({ @@ -48805,19 +51088,19 @@ }(e), g = []; for (const v of e.plugins) g.push(v.observer(v.callback, n, v.options)); - return Ub((() => { - Gb.forEach((e => e.reset())), Bb([r, "optionalAccess", e => e.disconnect, "call", e => e()]), i(), a(), o(), s(), l(), c(), u(), d(), p(), h(), f(), m(), g.forEach((e => e())) + return nS((() => { + iS.forEach((e => e.reset())), rS([r, "optionalAccess", e => e.disconnect, "call", e => e()]), i(), a(), o(), s(), l(), c(), u(), d(), p(), h(), f(), m(), g.forEach((e => e())) })) } - function tx(e) { + function gS(e) { return "undefined" !== typeof window[e] } - function nx(e) { + function vS(e) { return Boolean("undefined" !== typeof window[e] && window[e].prototype && "insertRule" in window[e].prototype && "deleteRule" in window[e].prototype) } - class rx { + class yS { constructor(e) { this.generateIdFn = e, this.iframeIdToRemoteIdMap = new WeakMap, this.iframeRemoteIdToIdMap = new WeakMap } @@ -48856,7 +51139,7 @@ } } - function ix(e) { + function _S(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -48867,17 +51150,17 @@ } return n } - class ax { + class bS { constructor() { - this.crossOriginIframeMirror = new rx(T_), this.crossOriginIframeRootIdMap = new WeakMap + this.crossOriginIframeMirror = new yS(Wk), this.crossOriginIframeRootIdMap = new WeakMap } addIframe() {} addLoadListener() {} attachIframe() {} } - class ox { + class xS { constructor(e) { - this.iframes = new WeakMap, this.crossOriginIframeMap = new WeakMap, this.crossOriginIframeMirror = new rx(T_), this.crossOriginIframeRootIdMap = new WeakMap, this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new rx(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = e.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this)) + this.iframes = new WeakMap, this.crossOriginIframeMap = new WeakMap, this.crossOriginIframeMirror = new yS(Wk), this.crossOriginIframeRootIdMap = new WeakMap, this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new yS(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = e.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this)) } addIframe(e) { this.iframes.set(e, !0), e.contentWindow && this.crossOriginIframeMap.set(e.contentWindow, e) @@ -48896,7 +51179,7 @@ texts: [], attributes: [], isAttachIframe: !0 - }), ix([this, "access", e => e.loadListener, "optionalCall", t => t(e)]), e.contentDocument && e.contentDocument.adoptedStyleSheets && e.contentDocument.adoptedStyleSheets.length > 0 && this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets, this.mirror.getId(e.contentDocument)) + }), _S([this, "access", e => e.loadListener, "optionalCall", t => t(e)]), e.contentDocument && e.contentDocument.adoptedStyleSheets && e.contentDocument.adoptedStyleSheets.length > 0 && this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets, this.mirror.getId(e.contentDocument)) } handleMessage(e) { const t = e; @@ -48909,14 +51192,14 @@ } transformCrossOriginEvent(e, t) { switch (t.type) { - case Sb.FullSnapshot: { + case zw.FullSnapshot: { this.crossOriginIframeMirror.reset(e), this.crossOriginIframeStyleMirror.reset(e), this.replaceIdOnNode(t.data.node, e); const n = t.data.node.id; return this.crossOriginIframeRootIdMap.set(e, n), this.patchRootIdOnNode(t.data.node, n), { timestamp: t.timestamp, - type: Sb.IncrementalSnapshot, + type: zw.IncrementalSnapshot, data: { - source: Eb.Mutation, + source: Vw.Mutation, adds: [{ parentId: this.mirror.getId(e), nextId: null, @@ -48929,17 +51212,17 @@ } } } - case Sb.Meta: - case Sb.Load: - case Sb.DomContentLoaded: + case zw.Meta: + case zw.Load: + case zw.DomContentLoaded: return !1; - case Sb.Plugin: + case zw.Plugin: return t; - case Sb.Custom: + case zw.Custom: return this.replaceIds(t.data.payload, e, ["id", "parentId", "previousId", "nextId"]), t; - case Sb.IncrementalSnapshot: + case zw.IncrementalSnapshot: switch (t.data.source) { - case Eb.Mutation: + case Vw.Mutation: return t.data.adds.forEach((t => { this.replaceIds(t, e, ["parentId", "nextId", "previousId"]), this.replaceIdOnNode(t.node, e); const n = this.crossOriginIframeRootIdMap.get(e); @@ -48951,31 +51234,31 @@ })), t.data.texts.forEach((t => { this.replaceIds(t, e, ["id"]) })), t; - case Eb.Drag: - case Eb.TouchMove: - case Eb.MouseMove: + case Vw.Drag: + case Vw.TouchMove: + case Vw.MouseMove: return t.data.positions.forEach((t => { this.replaceIds(t, e, ["id"]) })), t; - case Eb.ViewportResize: + case Vw.ViewportResize: return !1; - case Eb.MediaInteraction: - case Eb.MouseInteraction: - case Eb.Scroll: - case Eb.CanvasMutation: - case Eb.Input: + case Vw.MediaInteraction: + case Vw.MouseInteraction: + case Vw.Scroll: + case Vw.CanvasMutation: + case Vw.Input: return this.replaceIds(t.data, e, ["id"]), t; - case Eb.StyleSheetRule: - case Eb.StyleDeclaration: + case Vw.StyleSheetRule: + case Vw.StyleDeclaration: return this.replaceIds(t.data, e, ["id"]), this.replaceStyleIds(t.data, e, ["styleId"]), t; - case Eb.Font: + case Vw.Font: return t; - case Eb.Selection: + case Vw.Selection: return t.data.ranges.forEach((t => { this.replaceIds(t, e, ["start", "end"]) })), t; - case Eb.AdoptedStyleSheet: - return this.replaceIds(t.data, e, ["id"]), this.replaceStyleIds(t.data, e, ["styleIds"]), ix([t, "access", e => e.data, "access", e => e.styles, "optionalAccess", e => e.forEach, "call", t => t((t => { + case Vw.AdoptedStyleSheet: + return this.replaceIds(t.data, e, ["id"]), this.replaceStyleIds(t.data, e, ["styleIds"]), _S([t, "access", e => e.data, "access", e => e.styles, "optionalAccess", e => e.forEach, "call", t => t((t => { this.replaceStyleIds(t, e, ["styleId"]) }))]), t } @@ -48998,18 +51281,18 @@ })) } patchRootIdOnNode(e, t) { - e.type === d_.Document || e.rootId || (e.rootId = t), "childNodes" in e && e.childNodes.forEach((e => { + e.type === Ok.Document || e.rootId || (e.rootId = t), "childNodes" in e && e.childNodes.forEach((e => { this.patchRootIdOnNode(e, t) })) } } - class sx { + class kS { init() {} addShadowRoot() {} observeAttachShadow() {} reset() {} } - class lx { + class wS { constructor(e) { this.shadowDoms = new WeakSet, this.restoreHandlers = [], this.mutationCb = e.mutationCb, this.scrollCb = e.scrollCb, this.bypassOptions = e.bypassOptions, this.mirror = e.mirror, this.init() } @@ -49017,23 +51300,23 @@ this.reset(), this.patchAttachShadow(Element, document) } addShadowRoot(e, t) { - if (!h_(e)) return; + if (!Ck(e)) return; if (this.shadowDoms.has(e)) return; this.shadowDoms.add(e), this.bypassOptions.canvasManager.addShadowRoot(e); - const n = $b({ + const n = oS({ ...this.bypassOptions, doc: t, mutationCb: this.mutationCb, mirror: this.mirror, shadowDomManager: this }, e); - this.restoreHandlers.push((() => n.disconnect())), this.restoreHandlers.push(Hb({ + this.restoreHandlers.push((() => n.disconnect())), this.restoreHandlers.push(lS({ ...this.bypassOptions, scrollCb: this.scrollCb, doc: e, mirror: this.mirror - })), wb((() => { - e.adoptedStyleSheets && e.adoptedStyleSheets.length > 0 && this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets, this.mirror.getId(e.host)), this.restoreHandlers.push(Jb({ + })), Fw((() => { + e.adoptedStyleSheets && e.adoptedStyleSheets.length > 0 && this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets, this.mirror.getId(e.host)), this.restoreHandlers.push(fS({ mirror: this.mirror, stylesheetManager: this.bypassOptions.stylesheetManager }, e)) @@ -49044,10 +51327,10 @@ } patchAttachShadow(e, t) { const n = this; - this.restoreHandlers.push(ib(e.prototype, "attachShadow", (function(e) { + this.restoreHandlers.push(_w(e.prototype, "attachShadow", (function(e) { return function(r) { const i = e.call(this, r); - return this.shadowRoot && bb(this) && n.addShadowRoot(this.shadowRoot, t), i + return this.shadowRoot && Nw(this) && n.addShadowRoot(this.shadowRoot, t), i } }))) } @@ -49059,7 +51342,7 @@ })), this.restoreHandlers = [], this.shadowDoms = new WeakSet, this.bypassOptions.canvasManager.resetShadowRoots() } } - class cx { + class SS { reset() {} freeze() {} unfreeze() {} @@ -49070,9 +51353,9 @@ addShadowRoot() {} resetShadowRoots() {} } - class ux { + class ES { constructor(e) { - this.trackedLinkElements = new WeakSet, this.styleMirror = new vb, this.mutationCb = e.mutationCb, this.adoptedStyleSheetCb = e.adoptedStyleSheetCb + this.trackedLinkElements = new WeakSet, this.styleMirror = new Rw, this.mutationCb = e.mutationCb, this.adoptedStyleSheetCb = e.adoptedStyleSheetCb } attachLinkElement(e, t) { "_cssText" in t.attributes && this.mutationCb({ @@ -49100,7 +51383,7 @@ this.styleMirror.has(i) ? e = this.styleMirror.getId(i) : (e = this.styleMirror.add(i), r.push({ styleId: e, rules: Array.from(i.rules || CSSRule, ((e, t) => ({ - rule: m_(e), + rule: Pk(e), index: t }))) })), n.styleIds.push(e) @@ -49112,13 +51395,13 @@ } trackStylesheetInLinkElement(e) {} } - class dx { + class OS { constructor() { this.nodeMap = new WeakMap, this.loop = !0, this.periodicallyClear() } periodicallyClear() { ! function(...e) { - kb("requestAnimationFrame")(...e) + Mw("requestAnimationFrame")(...e) }((() => { this.clear(), this.loop && this.periodicallyClear() })) @@ -49137,18 +51420,18 @@ this.loop = !1 } } - let px, hx; + let IS, CS; try { if (2 !== Array.from([1], (e => 2 * e))[0]) { const e = document.createElement("iframe"); - document.body.appendChild(e), Array.from = Zy([e, "access", e => e.contentWindow, "optionalAccess", e => e.Array, "access", e => e.from]) || Array.from, document.body.removeChild(e) + document.body.appendChild(e), Array.from = S_([e, "access", e => e.contentWindow, "optionalAccess", e => e.Array, "access", e => e.from]) || Array.from, document.body.removeChild(e) } - } catch (OD) { - console.debug("Unable to override Array.from", OD) + } catch (sF) { + console.debug("Unable to override Array.from", sF) } - const fx = new g_; + const AS = new Tk; - function mx(e = {}) { + function PS(e = {}) { const { emit: t, checkoutEveryNms: n, @@ -49175,8 +51458,8 @@ sampling: w = {}, dataURLOptions: S = {}, mousemoveWait: E, - recordDOM: I = !0, - recordCanvas: O = !1, + recordDOM: O = !0, + recordCanvas: I = !1, recordCrossOriginIframes: C = !1, recordAfter: A = ("DOMContentLoaded" === e.recordAfter ? e.recordAfter : "load"), userTriggeredOnInput: P = !1, @@ -49185,11 +51468,11 @@ plugins: D, keepIframeSrcFn: L = (() => !1), ignoreCSSAttributes: N = new Set([]), - errorHandler: M, - onMutation: j, + errorHandler: j, + onMutation: M, getCanvasManager: F } = e; - zb(M); + eS(j); const z = !C || window.parent === window; let V = !1; if (!z) try { @@ -49198,7 +51481,7 @@ V = !0 } if (z && !t) throw new Error("emit function is required"); - void 0 !== E && void 0 === w.mousemove && (w.mousemove = E), fx.reset(); + void 0 !== E && void 0 === w.mousemove && (w.mousemove = E), AS.reset(); const U = !0 === m ? { color: !0, date: !0, @@ -49241,108 +51524,108 @@ return !1 }) }(); - let W = 0; - const $ = e => { + let $ = 0; + const q = e => { for (const t of D || []) t.eventProcessor && (e = t.eventProcessor(e)); return k && !V && (e = k(e)), e }; - px = (e, i) => { + IS = (e, i) => { const a = e; - if (a.timestamp = ab(), !Zy([Gb, "access", e => e[0], "optionalAccess", e => e.isFrozen, "call", e => e()]) || a.type === Sb.FullSnapshot || a.type === Sb.IncrementalSnapshot && a.data.source === Eb.Mutation || Gb.forEach((e => e.unfreeze())), z) Zy([t, "optionalCall", e => e($(a), i)]); + if (a.timestamp = bw(), !S_([iS, "access", e => e[0], "optionalAccess", e => e.isFrozen, "call", e => e()]) || a.type === zw.FullSnapshot || a.type === zw.IncrementalSnapshot && a.data.source === Vw.Mutation || iS.forEach((e => e.unfreeze())), z) S_([t, "optionalCall", e => e(q(a), i)]); else if (V) { const e = { type: "rrweb", - event: $(a), + event: q(a), origin: window.location.origin, isCheckout: i }; window.parent.postMessage(e, "*") } - if (a.type === Sb.FullSnapshot) G = a, W = 0; - else if (a.type === Sb.IncrementalSnapshot) { - if (a.data.source === Eb.Mutation && a.data.isAttachIframe) return; - W++; - const e = r && W >= r, + if (a.type === zw.FullSnapshot) G = a, $ = 0; + else if (a.type === zw.IncrementalSnapshot) { + if (a.data.source === Vw.Mutation && a.data.isAttachIframe) return; + $++; + const e = r && $ >= r, t = n && G && a.timestamp - G.timestamp > n; (e || t) && ee(!0) } }; - const q = e => { - px({ - type: Sb.IncrementalSnapshot, + const W = e => { + IS({ + type: zw.IncrementalSnapshot, data: { - source: Eb.Mutation, + source: Vw.Mutation, ...e } }) }, - H = e => px({ - type: Sb.IncrementalSnapshot, + H = e => IS({ + type: zw.IncrementalSnapshot, data: { - source: Eb.Scroll, + source: Vw.Scroll, ...e } }), - K = e => px({ - type: Sb.IncrementalSnapshot, + K = e => IS({ + type: zw.IncrementalSnapshot, data: { - source: Eb.CanvasMutation, + source: Vw.CanvasMutation, ...e } }), - Y = new ux({ - mutationCb: q, - adoptedStyleSheetCb: e => px({ - type: Sb.IncrementalSnapshot, + Y = new ES({ + mutationCb: W, + adoptedStyleSheetCb: e => IS({ + type: zw.IncrementalSnapshot, data: { - source: Eb.AdoptedStyleSheet, + source: Vw.AdoptedStyleSheet, ...e } }) }), - Q = "boolean" === typeof __RRWEB_EXCLUDE_IFRAME__ && __RRWEB_EXCLUDE_IFRAME__ ? new ax : new ox({ - mirror: fx, - mutationCb: q, + Q = "boolean" === typeof __RRWEB_EXCLUDE_IFRAME__ && __RRWEB_EXCLUDE_IFRAME__ ? new bS : new xS({ + mirror: AS, + mutationCb: W, stylesheetManager: Y, recordCrossOriginIframes: C, - wrappedEmit: px + wrappedEmit: IS }); for (const re of D || []) re.getMirror && re.getMirror({ - nodeMirror: fx, + nodeMirror: AS, crossOriginIframeMirror: Q.crossOriginIframeMirror, crossOriginIframeStyleMirror: Q.crossOriginIframeStyleMirror }); - const Z = new dx, + const Z = new OS, X = function(e, t) { try { - return e ? e(t) : new cx - } catch (ll) { - return console.warn("Unable to initialize CanvasManager"), new cx + return e ? e(t) : new SS + } catch (n) { + return console.warn("Unable to initialize CanvasManager"), new SS } }(F, { - mirror: fx, + mirror: AS, win: window, - mutationCb: e => px({ - type: Sb.IncrementalSnapshot, + mutationCb: e => IS({ + type: zw.IncrementalSnapshot, data: { - source: Eb.CanvasMutation, + source: Vw.CanvasMutation, ...e } }), - recordCanvas: O, + recordCanvas: I, blockClass: i, blockSelector: a, unblockSelector: o, maxCanvasSize: x, sampling: w.canvas, dataURLOptions: S, - errorHandler: M + errorHandler: j }), - J = "boolean" === typeof __RRWEB_EXCLUDE_SHADOW_DOM__ && __RRWEB_EXCLUDE_SHADOW_DOM__ ? new sx : new lx({ - mutationCb: q, + J = "boolean" === typeof __RRWEB_EXCLUDE_SHADOW_DOM__ && __RRWEB_EXCLUDE_SHADOW_DOM__ ? new kS : new wS({ + mutationCb: W, scrollCb: H, bypassOptions: { - onMutation: j, + onMutation: M, blockClass: i, blockSelector: a, unblockSelector: o, @@ -49357,7 +51640,7 @@ maskAttributeFn: y, maskTextFn: b, maskInputFn: _, - recordCanvas: O, + recordCanvas: I, inlineImages: R, sampling: w, slimDOMOptions: B, @@ -49367,21 +51650,21 @@ keepIframeSrcFn: L, processedNodeManager: Z }, - mirror: fx + mirror: AS }), ee = (e = !1) => { - if (!I) return; - px({ - type: Sb.Meta, + if (!O) return; + IS({ + type: zw.Meta, data: { href: window.location.href, - width: lb(), - height: sb() + width: ww(), + height: kw() } - }, e), Y.reset(), J.init(), Gb.forEach((e => e.lock())); + }, e), Y.reset(), J.init(), iS.forEach((e => e.lock())); const t = function(e, t) { const { - mirror: n = new g_, + mirror: n = new Tk, blockClass: r = "rr-block", blockSelector: i = null, unblockSelector: a = null, @@ -49405,9 +51688,9 @@ iframeLoadTimeout: w, onStylesheetLoad: S, stylesheetLoadTimeout: E, - keepIframeSrcFn: I = (() => !1) + keepIframeSrcFn: O = (() => !1) } = t || {}; - return Z_(e, { + return pw(e, { doc: e, mirror: n, blockClass: r, @@ -49461,11 +51744,11 @@ iframeLoadTimeout: w, onStylesheetLoad: S, stylesheetLoadTimeout: E, - keepIframeSrcFn: I, + keepIframeSrcFn: O, newlyAddedElement: !1 }) }(document, { - mirror: fx, + mirror: AS, blockClass: i, blockSelector: a, unblockSelector: o, @@ -49481,10 +51764,10 @@ maskTextFn: b, slimDOM: B, dataURLOptions: S, - recordCanvas: O, + recordCanvas: I, inlineImages: R, onSerialize: e => { - fb(e, fx) && Q.addIframe(e), mb(e, fx) && Y.trackLinkElement(e), gb(e) && J.addShadowRoot(e.shadowRoot, document) + Aw(e, AS) && Q.addIframe(e), Pw(e, AS) && Y.trackLinkElement(e), Tw(e) && J.addShadowRoot(e.shadowRoot, document) }, onIframeLoad: (e, t) => { Q.attachIframe(e, t), e.contentWindow && X.addWindow(e.contentWindow), J.observeAttachShadow(e) @@ -49495,92 +51778,92 @@ keepIframeSrcFn: L }); if (!t) return console.warn("Failed to snapshot the document"); - px({ - type: Sb.FullSnapshot, + IS({ + type: zw.FullSnapshot, data: { node: t, - initialOffset: ob(window) + initialOffset: xw(window) } - }), Gb.forEach((e => e.unlock())), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && Y.adoptStyleSheets(document.adoptedStyleSheets, fx.getId(document)) + }), iS.forEach((e => e.unlock())), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && Y.adoptStyleSheets(document.adoptedStyleSheets, AS.getId(document)) }; - hx = ee; + CS = ee; try { const e = [], - t = e => Ub(ex)({ - onMutation: j, - mutationCb: q, - mousemoveCb: (e, t) => px({ - type: Sb.IncrementalSnapshot, + t = e => nS(mS)({ + onMutation: M, + mutationCb: W, + mousemoveCb: (e, t) => IS({ + type: zw.IncrementalSnapshot, data: { source: t, positions: e } }), - mouseInteractionCb: e => px({ - type: Sb.IncrementalSnapshot, + mouseInteractionCb: e => IS({ + type: zw.IncrementalSnapshot, data: { - source: Eb.MouseInteraction, + source: Vw.MouseInteraction, ...e } }), scrollCb: H, - viewportResizeCb: e => px({ - type: Sb.IncrementalSnapshot, + viewportResizeCb: e => IS({ + type: zw.IncrementalSnapshot, data: { - source: Eb.ViewportResize, + source: Vw.ViewportResize, ...e } }), - inputCb: e => px({ - type: Sb.IncrementalSnapshot, + inputCb: e => IS({ + type: zw.IncrementalSnapshot, data: { - source: Eb.Input, + source: Vw.Input, ...e } }), - mediaInteractionCb: e => px({ - type: Sb.IncrementalSnapshot, + mediaInteractionCb: e => IS({ + type: zw.IncrementalSnapshot, data: { - source: Eb.MediaInteraction, + source: Vw.MediaInteraction, ...e } }), - styleSheetRuleCb: e => px({ - type: Sb.IncrementalSnapshot, + styleSheetRuleCb: e => IS({ + type: zw.IncrementalSnapshot, data: { - source: Eb.StyleSheetRule, + source: Vw.StyleSheetRule, ...e } }), - styleDeclarationCb: e => px({ - type: Sb.IncrementalSnapshot, + styleDeclarationCb: e => IS({ + type: zw.IncrementalSnapshot, data: { - source: Eb.StyleDeclaration, + source: Vw.StyleDeclaration, ...e } }), canvasMutationCb: K, - fontCb: e => px({ - type: Sb.IncrementalSnapshot, + fontCb: e => IS({ + type: zw.IncrementalSnapshot, data: { - source: Eb.Font, + source: Vw.Font, ...e } }), selectionCb: e => { - px({ - type: Sb.IncrementalSnapshot, + IS({ + type: zw.IncrementalSnapshot, data: { - source: Eb.Selection, + source: Vw.Selection, ...e } }) }, customElementCb: e => { - px({ - type: Sb.IncrementalSnapshot, + IS({ + type: zw.IncrementalSnapshot, data: { - source: Eb.CustomElement, + source: Vw.CustomElement, ...e } }) @@ -49596,8 +51879,8 @@ maskInputOptions: U, inlineStylesheet: f, sampling: w, - recordDOM: I, - recordCanvas: O, + recordDOM: O, + recordCanvas: I, inlineImages: R, userTriggeredOnInput: P, collectFonts: T, @@ -49610,18 +51893,18 @@ unblockSelector: o, slimDOMOptions: B, dataURLOptions: S, - mirror: fx, + mirror: AS, iframeManager: Q, stylesheetManager: Y, shadowDomManager: J, processedNodeManager: Z, canvasManager: X, ignoreCSSAttributes: N, - plugins: Zy([D, "optionalAccess", e => e.filter, "call", e => e((e => e.observer)), "optionalAccess", e => e.map, "call", e => e((e => ({ + plugins: S_([D, "optionalAccess", e => e.filter, "call", e => e((e => e.observer)), "optionalAccess", e => e.map, "call", e => e((e => ({ observer: e.observer, options: e.options, - callback: t => px({ - type: Sb.Plugin, + callback: t => IS({ + type: zw.Plugin, data: { plugin: e.name, payload: t @@ -49639,83 +51922,122 @@ const n = () => { ee(), e.push(t(document)) }; - return "interactive" === document.readyState || "complete" === document.readyState ? n() : (e.push(J_("DOMContentLoaded", (() => { - px({ - type: Sb.DomContentLoaded, + return "interactive" === document.readyState || "complete" === document.readyState ? n() : (e.push(fw("DOMContentLoaded", (() => { + IS({ + type: zw.DomContentLoaded, data: {} }), "DOMContentLoaded" === A && n() - }))), e.push(J_("load", (() => { - px({ - type: Sb.Load, + }))), e.push(fw("load", (() => { + IS({ + type: zw.Load, data: {} }), "load" === A && n() }), window))), () => { - e.forEach((e => e())), Z.destroy(), hx = void 0, Vb() + e.forEach((e => e())), Z.destroy(), CS = void 0, tS() } } catch (ne) { console.warn(ne) } } - mx.mirror = fx, mx.takeFullSnapshot = function(e) { - if (!hx) throw new Error("please take full snapshot after start recording"); - hx(e) + PS.mirror = AS, PS.takeFullSnapshot = function(e) { + if (!CS) throw new Error("please take full snapshot after start recording"); + CS(e) }; + const TS = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, + RS = ["info", "warn", "error", "log"], + DS = "[Replay] "; - function gx(e) { + function LS(e, t = "info") { + Xx({ + category: "console", + data: { + logger: "replay" + }, + level: t, + message: `${DS}${e}` + }, { + level: t + }) + } + const NS = function() { + let e = !1, + t = !1; + const n = { + exception: () => {}, + infoTick: () => {}, + setConfig: n => { + e = n.captureExceptions, t = n.traceInternals + } + }; + return TS ? (RS.forEach((e => { + n[e] = (...n) => { + Jg[e](DS, ...n), t && LS(n.join(""), nk(e)) + } + })), n.exception = (r, ...i) => { + i.length && n.error && n.error(...i), Jg.error(DS, r), e ? _x(r) : t && LS(r, "error") + }, n.infoTick = (...e) => { + Jg.info(DS, ...e), t && setTimeout((() => LS(e[0])), 0) + }) : RS.forEach((e => { + n[e] = () => {} + })), n + }(); + + function jS(e) { return e > 9999999999 ? e : 1e3 * e } - function vx(e) { + function MS(e) { return e > 9999999999 ? e / 1e3 : e } - function yx(e, t) { + function FS(e, t) { "sentry.transaction" !== t.category && (["ui.click", "ui.input"].includes(t.category) ? e.triggerUserActivity() : e.checkAndHandleExpiredSession(), e.addUpdate((() => (e.throttledAddEvent({ - type: Sb.Custom, + type: zw.Custom, timestamp: 1e3 * (t.timestamp || 0), data: { tag: "breadcrumb", - payload: Yn(t, 10, 1e3) + payload: Wy(t, 10, 1e3) } }), "console" === t.category)))) } - function _x(e) { + function zS(e) { return e.closest("button,a") || e } - function bx(e) { - const t = xx(e); - return t && t instanceof Element ? _x(t) : t + function VS(e) { + const t = US(e); + return t && t instanceof Element ? zS(t) : t } - function xx(e) { + function US(e) { return function(e) { return "object" === typeof e && !!e && "target" in e }(e) ? e.target : e } - let kx; + let BS; - function wx(e) { - return kx || (kx = [], tn(n_, "open", (function(e) { + function GS(e) { + return BS || (BS = [], iv(vk, "open", (function(e) { return function(...t) { - if (kx) try { - kx.forEach((e => e())) + if (BS) try { + BS.forEach((e => e())) } catch (n) {} - return e.apply(n_, t) + return e.apply(vk, t) } - }))), kx.push(e), () => { - const t = kx ? kx.indexOf(e) : -1; - t > -1 && kx.splice(t, 1) + }))), BS.push(e), () => { + const t = BS ? BS.indexOf(e) : -1; + t > -1 && BS.splice(t, 1) } } - class Sx { - constructor(e, t, n = yx) { + const $S = new Set([Vw.Mutation, Vw.StyleSheetRule, Vw.StyleDeclaration, Vw.AdoptedStyleSheet, Vw.CanvasMutation, Vw.Selection, Vw.MediaInteraction]); + class qS { + constructor(e, t, n = FS) { this._lastMutation = 0, this._lastScroll = 0, this._clicks = [], this._timeout = t.timeout / 1e3, this._threshold = t.threshold / 1e3, this._scollTimeout = t.scrollTimeout / 1e3, this._replay = e, this._ignoreSelector = t.ignoreSelector, this._addBreadcrumbEvent = n } addListeners() { - const e = wx((() => { - this._lastMutation = Ix() + const e = GS((() => { + this._lastMutation = HS() })); this._teardown = () => { e(), this._clicks = [], this._lastMutation = 0, this._lastScroll = 0 @@ -49726,7 +52048,7 @@ } handleClick(e, t) { if (function(e, t) { - if (!Ex.includes(e.tagName)) return !0; + if (!WS.includes(e.tagName)) return !0; if ("INPUT" === e.tagName && !["submit", "button"].includes(e.getAttribute("type") || "")) return !0; if ("A" === e.tagName && (e.hasAttribute("download") || e.hasAttribute("target") && "_self" !== e.getAttribute("target"))) return !0; if (t && e.matches(t)) return !0; @@ -49735,7 +52057,7 @@ return !(!e.data || "number" !== typeof e.data.nodeId || !e.timestamp) }(e)) return; const n = { - timestamp: vx(e.timestamp), + timestamp: MS(e.timestamp), clickBreadcrumb: e, clickCount: 0, node: t @@ -49743,13 +52065,13 @@ this._clicks.some((e => e.node === n.node && Math.abs(e.timestamp - n.timestamp) < 1)) || (this._clicks.push(n), 1 === this._clicks.length && this._scheduleCheckClicks()) } registerMutation(e = Date.now()) { - this._lastMutation = vx(e) + this._lastMutation = MS(e) } registerScroll(e = Date.now()) { - this._lastScroll = vx(e) + this._lastScroll = MS(e) } registerClick(e) { - const t = _x(e); + const t = zS(e); this._handleMultiClick(t) } _handleMultiClick(e) { @@ -49762,7 +52084,7 @@ } _checkClicks() { const e = [], - t = Ix(); + t = HS(); this._clicks.forEach((n => { !n.mutationAfter && this._lastMutation && (n.mutationAfter = n.timestamp <= this._lastMutation ? this._lastMutation - n.timestamp : void 0), !n.scrollAfter && this._lastScroll && (n.scrollAfter = n.timestamp <= this._lastScroll ? this._lastScroll - n.timestamp : void 0), n.timestamp + this._timeout <= t && e.push(n) })); @@ -49791,7 +52113,7 @@ category: "ui.slowClickDetected", data: { ...o.data, - url: n_.location.href, + url: vk.location.href, route: t.getCurrentRoute(), timeAfterClickMs: n, endReason: r, @@ -49807,7 +52129,7 @@ category: "ui.multiClick", data: { ...o.data, - url: n_.location.href, + url: vk.location.href, route: t.getCurrentRoute(), clickCount: a, metric: !0 @@ -49817,16 +52139,16 @@ } } _scheduleCheckClicks() { - this._checkClickTimeout && clearTimeout(this._checkClickTimeout), this._checkClickTimeout = _o((() => this._checkClicks()), 1e3) + this._checkClickTimeout && clearTimeout(this._checkClickTimeout), this._checkClickTimeout = uk((() => this._checkClicks()), 1e3) } } - const Ex = ["A", "BUTTON", "INPUT"]; + const WS = ["A", "BUTTON", "INPUT"]; - function Ix() { + function HS() { return Date.now() / 1e3 } - function Ox(e, t) { + function KS(e, t) { try { if (! function(e) { return 3 === e.type @@ -49834,41 +52156,41 @@ const { source: n } = t.data; - if (n === Eb.Mutation && e.registerMutation(t.timestamp), n === Eb.Scroll && e.registerScroll(t.timestamp), function(e) { - return e.data.source === Eb.MouseInteraction + if ($S.has(n) && e.registerMutation(t.timestamp), n === Vw.Scroll && e.registerScroll(t.timestamp), function(e) { + return e.data.source === Vw.MouseInteraction }(t)) { const { type: n, id: r - } = t.data, i = mx.mirror.getNode(r); - i instanceof HTMLElement && n === Ib.Click && e.registerClick(i) + } = t.data, i = PS.mirror.getNode(r); + i instanceof HTMLElement && n === Uw.Click && e.registerClick(i) } } catch (n) {} } - function Cx(e) { + function YS(e) { return { timestamp: Date.now() / 1e3, type: "default", ...e } } - var Ax; + var QS; ! function(e) { e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment" - }(Ax || (Ax = {})); - const Px = new Set(["id", "class", "aria-label", "role", "name", "alt", "title", "data-test-id", "data-testid", "disabled", "aria-disabled", "data-sentry-component"]); + }(QS || (QS = {})); + const ZS = new Set(["id", "class", "aria-label", "role", "name", "alt", "title", "data-test-id", "data-testid", "disabled", "aria-disabled", "data-sentry-component"]); - function Tx(e) { + function XS(e) { const t = {}; !e["data-sentry-component"] && e["data-sentry-element"] && (e["data-sentry-component"] = e["data-sentry-element"]); for (const n in e) - if (Px.has(n)) { + if (ZS.has(n)) { let r = n; "data-testid" !== n && "data-test-id" !== n || (r = "testId"), t[r] = e[n] } return t } - const Rx = e => t => { + const JS = e => t => { if (!e.isEnabled()) return; const n = function(e) { const { @@ -49878,7 +52200,7 @@ const t = "click" === e.name; let n, r = null; try { - r = t ? bx(e.event) : xx(e.event), n = Bt(r, { + r = t ? VS(e.event) : US(e.event), n = qg(r, { maxStringLength: 200 }) || "" } catch (i) { @@ -49889,9 +52211,9 @@ message: n } }(e); - return Cx({ + return YS({ category: `ui.${e.name}`, - ...Dx(t, n) + ...eE(t, n) }) }(t); if (!n) return; @@ -49899,15 +52221,15 @@ i = r ? t.event : void 0; !(r && e.clickDetector && i && i.target) || i.altKey || i.metaKey || i.ctrlKey || i.shiftKey || function(e, t, n) { e.handleClick(t, n) - }(e.clickDetector, n, bx(t.event)), yx(e, n) + }(e.clickDetector, n, VS(t.event)), FS(e, n) }; - function Dx(e, t) { - const n = mx.mirror.getId(e), - r = n && mx.mirror.getNode(n), - i = r && mx.mirror.getMeta(r), + function eE(e, t) { + const n = PS.mirror.getId(e), + r = n && PS.mirror.getNode(n), + i = r && PS.mirror.getMeta(r), a = i && function(e) { - return e.type === Ax.Element + return e.type === QS.Element }(i) ? i : null; return { message: t, @@ -49916,14 +52238,14 @@ node: { id: n, tagName: a.tagName, - textContent: Array.from(a.childNodes).map((e => e.type === Ax.Text && e.textContent)).filter(Boolean).map((e => e.trim())).join(""), - attributes: Tx(a.attributes) + textContent: Array.from(a.childNodes).map((e => e.type === QS.Text && e.textContent)).filter(Boolean).map((e => e.trim())).join(""), + attributes: XS(a.attributes) } } : {} } } - function Lx(e, t) { + function tE(e, t) { if (!e.isEnabled()) return; e.updateUserActivity(); const n = function(e) { @@ -49941,11 +52263,11 @@ const s = t || r || i, l = 1 === a.length; if (!s && l) return null; - const c = Bt(o, { + const c = qg(o, { maxStringLength: 200 }) || "", - u = Dx(o, c); - return Cx({ + u = eE(o, c); + return YS({ category: "ui.keyDown", message: c, data: { @@ -49958,9 +52280,9 @@ } }) }(t); - n && yx(e, n) + n && FS(e, n) } - const Nx = { + const nE = { resource: function(e) { const { entryType: t, @@ -49976,8 +52298,8 @@ if (["fetch", "xmlhttprequest"].includes(n)) return null; return { type: `${t}.${n}`, - start: Fx(a), - end: Fx(i), + start: aE(a), + end: aE(i), name: r, data: { size: c, @@ -49993,7 +52315,7 @@ entryType: n, name: r, startTime: i - } = e, a = Fx(i); + } = e, a = aE(i); return { type: n, name: r, @@ -50023,8 +52345,8 @@ if (0 === i) return null; return { type: `${t}.${m}`, - start: Fx(h), - end: Fx(a), + start: aE(h), + end: aE(a), name: n, data: { size: f, @@ -50043,7 +52365,7 @@ } }; - function Mx(e, t) { + function rE(e, t) { return ({ metric: n }) => { @@ -50051,82 +52373,76 @@ } } - function jx(e) { - const t = Nx[e.entryType]; + function iE(e) { + const t = nE[e.entryType]; return t ? t(e) : null } - function Fx(e) { - return ((kn || n_.performance.timeOrigin) + e) / 1e3 + function aE(e) { + return ((Rv || vk.performance.timeOrigin) + e) / 1e3 } - function zx(e) { + function oE(e) { const t = e.entries[e.entries.length - 1]; - return Gx(e, "largest-contentful-paint", t ? t.element : void 0) + return dE(e, "largest-contentful-paint", t && t.element ? [t.element] : void 0) } - function Vx(e) { - const t = e.entries[0]; - return Gx(e, "cumulative-layout-shift", t && t.sources && t.sources[0] ? t.sources[0].node : void 0) + function sE(e) { + return void 0 !== e.sources } - function Ux(e) { + function lE(e) { + const t = [], + n = []; + for (const r of e.entries) + if (sE(r)) { + const e = []; + for (const t of r.sources) + if (t.node) { + n.push(t.node); + const r = PS.mirror.getId(t.node); + r && e.push(r) + } t.push({ + value: r.value, + nodeIds: e.length ? e : void 0 + }) + } return dE(e, "cumulative-layout-shift", n, t) + } + + function cE(e) { const t = e.entries[e.entries.length - 1]; - return Gx(e, "first-input-delay", t ? t.target : void 0) + return dE(e, "first-input-delay", t && t.target ? [t.target] : void 0) } - function Bx(e) { + function uE(e) { const t = e.entries[e.entries.length - 1]; - return Gx(e, "interaction-to-next-paint", t ? t.target : void 0) + return dE(e, "interaction-to-next-paint", t && t.target ? [t.target] : void 0) } - function Gx(e, t, n) { - const r = e.value, - i = e.rating, - a = Fx(r); + function dE(e, t, n, r) { + const i = e.value, + a = e.rating, + o = aE(i); return { type: "web-vital", name: t, - start: a, - end: a, + start: o, + end: o, data: { - value: r, - size: r, - rating: i, - nodeId: n ? mx.mirror.getId(n) : void 0 + value: i, + size: i, + rating: a, + nodeIds: n ? n.map((e => PS.mirror.getId(e))) : void 0, + attributions: r } } } - const Wx = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; - - function $x(e, t) { - Wx && (Qt.info(e), t && Hx(e)) - } - - function qx(e, t) { - Wx && (Qt.info(e), t && _o((() => { - Hx(e) - }), 0)) - } - - function Hx(e) { - Oa({ - category: "console", - data: { - logger: "replay" - }, - level: "info", - message: e - }, { - level: "info" - }) - } - class Kx extends Error { + class pE extends Error { constructor() { super("Event buffer exceeded maximum size of 20000000.") } } - class Yx { + class hE { constructor() { this.events = [], this._totalSize = 0, this.hasCheckout = !1 } @@ -50141,7 +52457,7 @@ } async addEvent(e) { const t = JSON.stringify(e).length; - if (this._totalSize += t, this._totalSize > s_) throw new Kx; + if (this._totalSize += t, this._totalSize > kk) throw new pE; this.events.push(e) } finish() { @@ -50155,10 +52471,10 @@ } getEarliestTimestamp() { const e = this.events.map((e => e.timestamp)).sort()[0]; - return e ? gx(e) : null + return e ? jS(e) : null } } - class Qx { + class fE { constructor(e) { this._worker = e, this._id = 0 } @@ -50178,7 +52494,7 @@ }))), this._ensureReadyPromise } destroy() { - $x("[Replay] Destroying compression worker"), this._worker.terminate() + TS && NS.info("Destroying compression worker"), this._worker.terminate() } postMessage(e, t) { const n = this._getAndIncrementId(); @@ -50188,7 +52504,7 @@ }) => { const o = t; if (o.method === e && o.id === n) { - if (this._worker.removeEventListener("message", a), !o.success) return Wx && Qt.error("[Replay]", o.response), void i(new Error("Error in compression worker")); + if (this._worker.removeEventListener("message", a), !o.success) return TS && NS.error("Error in compression worker: ", o.response), void i(new Error("Error in compression worker")); r(o.response) } }; @@ -50203,9 +52519,9 @@ return this._id++ } } - class Zx { + class mE { constructor(e) { - this._worker = new Qx(e), this._earliestTimestamp = null, this._totalSize = 0, this.hasCheckout = !1 + this._worker = new fE(e), this._earliestTimestamp = null, this._totalSize = 0, this.hasCheckout = !1 } get hasEvents() { return !!this._earliestTimestamp @@ -50220,17 +52536,17 @@ this._worker.destroy() } addEvent(e) { - const t = gx(e.timestamp); + const t = jS(e.timestamp); (!this._earliestTimestamp || t < this._earliestTimestamp) && (this._earliestTimestamp = t); const n = JSON.stringify(e); - return this._totalSize += n.length, this._totalSize > s_ ? Promise.reject(new Kx) : this._sendEventToWorker(n) + return this._totalSize += n.length, this._totalSize > kk ? Promise.reject(new pE) : this._sendEventToWorker(n) } finish() { return this._finishRequest() } clear() { this._earliestTimestamp = null, this._totalSize = 0, this.hasCheckout = !1, this._worker.postMessage("clear").then(null, (e => { - Wx && Qt.warn('[Replay] Sending "clear" message to worker failed', e) + TS && NS.exception(e, 'Sending "clear" message to worker failed', e) })) } getEarliestTimestamp() { @@ -50244,9 +52560,9 @@ return this._earliestTimestamp = null, this._totalSize = 0, e } } - class Xx { + class gE { constructor(e) { - this._fallback = new Yx, this._compression = new Zx(e), this._used = this._fallback, this._ensureWorkerIsLoadedPromise = this._ensureWorkerIsLoaded() + this._fallback = new hE, this._compression = new mE(e), this._used = this._fallback, this._ensureWorkerIsLoadedPromise = this._ensureWorkerIsLoaded() } get type() { return this._used.type @@ -50282,7 +52598,7 @@ try { await this._compression.ensureReady() } catch (e) { - return void $x("[Replay] Failed to load the compression worker, falling back to simple buffer") + return void(TS && NS.exception(e, "Failed to load the compression worker, falling back to simple buffer")) } await this._switchToCompressionWorker() } @@ -50296,12 +52612,12 @@ try { await Promise.all(n) } catch (r) { - Wx && Qt.warn("[Replay] Failed to add events when switching buffers.", r) + TS && NS.exception(r, "Failed to add events when switching buffers.") } } } - function Jx({ + function vE({ useCompression: e, workerUrl: t }) { @@ -50316,43 +52632,43 @@ return "" }(); if (!t) return; - $x("[Replay] Using compression worker" + (e ? ` from ${e}` : "")); + TS && NS.info("Using compression worker" + (e ? ` from ${e}` : "")); const n = new Worker(t); - return new Xx(n) + return new gE(n) } catch (t) { - $x("[Replay] Failed to create compression worker") + TS && NS.exception(t, "Failed to create compression worker") } }(t); if (e) return e } - return $x("[Replay] Using simple buffer"), new Yx + return TS && NS.info("Using simple buffer"), new hE } - function ek() { + function yE() { try { - return "sessionStorage" in n_ && !!n_.sessionStorage + return "sessionStorage" in vk && !!vk.sessionStorage } catch (e) { return !1 } } - function tk(e) { + function _E(e) { ! function() { - if (!ek()) return; + if (!yE()) return; try { - n_.sessionStorage.removeItem(r_) + vk.sessionStorage.removeItem(yk) } catch (e) {} }(), e.session = void 0 } - function nk(e) { + function bE(e) { return void 0 !== e && Math.random() < e } - function rk(e) { + function xE(e) { const t = Date.now(); return { - id: e.id || dn(), + id: e.id || _v(), started: e.started || t, lastActivity: e.lastActivity || t, segmentId: e.segmentId || 0, @@ -50361,13 +52677,13 @@ } } - function ik(e) { - if (ek()) try { - n_.sessionStorage.setItem(r_, JSON.stringify(e)) + function kE(e) { + if (yE()) try { + vk.sessionStorage.setItem(yk, JSON.stringify(e)) } catch (t) {} } - function ak({ + function wE({ sessionSampleRate: e, allowBuffering: t, stickySession: n = !1 @@ -50375,116 +52691,115 @@ previousSessionId: r } = {}) { const i = function(e, t) { - return nk(e) ? "session" : !!t && "buffer" + return bE(e) ? "session" : !!t && "buffer" }(e, t), - a = rk({ + a = xE({ sampled: i, previousSessionId: r }); - return n && ik(a), a + return n && kE(a), a } - function ok(e, t, n = +new Date) { + function SE(e, t, n = +new Date) { return null === e || void 0 === t || t < 0 || 0 !== t && e + t <= n } - function sk(e, { + function EE(e, { maxReplayDuration: t, sessionIdleExpire: n, targetTime: r = Date.now() }) { - return ok(e.started, t, r) || ok(e.lastActivity, n, r) + return SE(e.started, t, r) || SE(e.lastActivity, n, r) } - function lk(e, { + function OE(e, { sessionIdleExpire: t, maxReplayDuration: n }) { - return !!sk(e, { + return !!EE(e, { sessionIdleExpire: t, maxReplayDuration: n }) && ("buffer" !== e.sampled || 0 !== e.segmentId) } - function ck({ - traceInternals: e, - sessionIdleExpire: t, - maxReplayDuration: n, - previousSessionId: r - }, i) { - const a = i.stickySession && function(e) { - if (!ek()) return null; + function IE({ + sessionIdleExpire: e, + maxReplayDuration: t, + previousSessionId: n + }, r) { + const i = r.stickySession && function() { + if (!yE()) return null; try { - const t = n_.sessionStorage.getItem(r_); - if (!t) return null; - const n = JSON.parse(t); - return qx("[Replay] Loading existing session", e), rk(n) - } catch (t) { + const e = vk.sessionStorage.getItem(yk); + if (!e) return null; + const t = JSON.parse(e); + return TS && NS.infoTick("Loading existing session"), xE(t) + } catch (e) { return null } - }(e); - return a ? lk(a, { - sessionIdleExpire: t, - maxReplayDuration: n - }) ? (qx("[Replay] Session in sessionStorage is expired, creating new one..."), ak(i, { - previousSessionId: a.id - })) : a : (qx("[Replay] Creating new session", e), ak(i, { - previousSessionId: r + }(); + return i ? OE(i, { + sessionIdleExpire: e, + maxReplayDuration: t + }) ? (TS && NS.infoTick("Session in sessionStorage is expired, creating new one..."), wE(r, { + previousSessionId: i.id + })) : i : (TS && NS.infoTick("Creating new session"), wE(r, { + previousSessionId: n })) } - function uk(e, t, n) { - return !!pk(e, t) && (dk(e, t, n), !0) + function CE(e, t, n) { + return !!PE(e, t) && (AE(e, t, n), !0) } - async function dk(e, t, n) { + async function AE(e, t, n) { if (!e.eventBuffer) return null; try { n && "buffer" === e.recordingMode && e.eventBuffer.clear(), n && (e.eventBuffer.hasCheckout = !0); const r = function(e, t) { try { if ("function" === typeof t && function(e) { - return e.type === Sb.Custom + return e.type === zw.Custom }(e)) return t(e) } catch (n) { - return Wx && Qt.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...", n), null + return TS && NS.exception(n, "An error occured in the `beforeAddRecordingEvent` callback, skipping the event..."), null } return e }(t, e.getOptions().beforeAddRecordingEvent); if (!r) return; return await e.eventBuffer.addEvent(r) } catch (r) { - const t = r && r instanceof Kx ? "addEventSizeExceeded" : "addEvent"; - Wx && Qt.error(r), await e.stop({ + const t = r && r instanceof pE ? "addEventSizeExceeded" : "addEvent"; + e.handleException(r), await e.stop({ reason: t }); - const n = zn(); + const n = Xv(); n && n.recordDroppedEvent("internal_sdk_error", "replay") } } - function pk(e, t) { + function PE(e, t) { if (!e.eventBuffer || e.isPaused() || !e.isEnabled()) return !1; - const n = gx(t.timestamp); - return !(n + e.timeouts.sessionIdlePause < Date.now()) && (!(n > e.getContext().initialTimestamp + e.getOptions().maxReplayDuration) || (qx(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`, e.getOptions()._experiments.traceInternals), !1)) + const n = jS(t.timestamp); + return !(n + e.timeouts.sessionIdlePause < Date.now()) && (!(n > e.getContext().initialTimestamp + e.getOptions().maxReplayDuration) || (TS && NS.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`), !1)) } - function hk(e) { + function TE(e) { return !e.type } - function fk(e) { + function RE(e) { return "transaction" === e.type } - function mk(e) { + function DE(e) { return "feedback" === e.type } - function gk(e) { + function LE(e) { return (t, n) => { - if (!e.isEnabled() || !hk(t) && !fk(t)) return; + if (!e.isEnabled() || !TE(t) && !RE(t)) return; const r = n && n.statusCode; - !r || r < 200 || r >= 300 || (fk(t) ? function(e, t) { + !r || r < 200 || r >= 300 || (RE(t) ? function(e, t) { const n = e.getContext(); t.contexts && t.contexts.trace && t.contexts.trace.trace_id && n.traceIds.size < 100 && n.traceIds.add(t.contexts.trace.trace_id) }(e, t) : function(e, t) { @@ -50495,23 +52810,23 @@ beforeErrorSampling: r } = e.getOptions(); if ("function" === typeof r && !r(t)) return; - _o((() => { + uk((() => { e.sendBufferedReplayOrFlush() })) }(e, t)) } } - function vk(e) { + function NE(e) { return t => { - e.isEnabled() && hk(t) && function(e, t) { + e.isEnabled() && TE(t) && function(e, t) { const n = t.exception && t.exception.values && t.exception.values[0] && t.exception.values[0].value; if ("string" !== typeof n) return; if (n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/) || n.match(/(does not match server-rendered HTML|Hydration failed because)/i)) { - yx(e, Cx({ + FS(e, YS({ category: "replay.hydrate-error", data: { - url: Wt() + url: Hg() } })) } @@ -50519,26 +52834,26 @@ } } - function yk(e) { - const t = zn(); + function jE(e) { + const t = Xv(); t && t.on("beforeAddBreadcrumb", (t => function(e, t) { - if (!e.isEnabled() || !_k(t)) return; + if (!e.isEnabled() || !ME(t)) return; const n = function(e) { - if (!_k(e) || ["fetch", "xhr", "sentry.event", "sentry.transaction"].includes(e.category) || e.category.startsWith("ui.")) return null; + if (!ME(e) || ["fetch", "xhr", "sentry.event", "sentry.transaction"].includes(e.category) || e.category.startsWith("ui.")) return null; if ("console" === e.category) return function(e) { const t = e.data && e.data.arguments; - if (!Array.isArray(t) || 0 === t.length) return Cx(e); + if (!Array.isArray(t) || 0 === t.length) return YS(e); let n = !1; const r = t.map((e => { if (!e) return e; - if ("string" === typeof e) return e.length > o_ ? (n = !0, `${e.slice(0,o_)}\u2026`) : e; + if ("string" === typeof e) return e.length > xk ? (n = !0, `${e.slice(0,xk)}\u2026`) : e; if ("object" === typeof e) try { - const t = Yn(e, 7); - return JSON.stringify(t).length > o_ ? (n = !0, `${JSON.stringify(t,null,2).slice(0,o_)}\u2026`) : t + const t = Wy(e, 7); + return JSON.stringify(t).length > xk ? (n = !0, `${JSON.stringify(t,null,2).slice(0,xk)}\u2026`) : t } catch (t) {} return e })); - return Cx({ + return YS({ ...e, data: { ...e.data, @@ -50551,28 +52866,28 @@ } }) }(e); - return Cx(e) + return YS(e) }(t); - n && yx(e, n) + n && FS(e, n) }(e, t))) } - function _k(e) { + function ME(e) { return !!e.category } - function bk(e) { + function FE(e) { return Object.assign(((t, n) => { - if (!e.isEnabled()) return t; + if (!e.isEnabled() || e.isPaused()) return t; if (function(e) { return "replay_event" === e.type }(t)) return delete t.breadcrumbs, t; - if (!hk(t) && !fk(t) && !mk(t)) return t; + if (!TE(t) && !RE(t) && !DE(t)) return t; if (!e.checkAndHandleExpiredSession()) return t; - if (mk(t)) return e.flush(), t.contexts.feedback.replay_id = e.getSessionId(), + if (DE(t)) return e.flush(), t.contexts.feedback.replay_id = e.getSessionId(), function(e, t) { e.triggerUserActivity(), e.addUpdate((() => !t.timestamp || (e.throttledAddEvent({ - type: Sb.Custom, + type: zw.Custom, timestamp: 1e3 * t.timestamp, data: { tag: "breadcrumb", @@ -50589,9 +52904,9 @@ }(e, t), t; if (function(e, t) { return !(e.type || !e.exception || !e.exception.values || !e.exception.values.length) && !(!t.originalException || !t.originalException.__rrweb__) - }(t, n) && !e.getOptions()._experiments.captureExceptions) return Wx && Qt.log("[Replay] Ignoring error from rrweb internals", t), null; + }(t, n) && !e.getOptions()._experiments.captureExceptions) return TS && NS.log("Ignoring error from rrweb internals", t), null; const r = function(e, t) { - return "buffer" === e.recordingMode && t.message !== i_ && !(!t.exception || t.type) && nk(e.getOptions().errorSampleRate) + return "buffer" === e.recordingMode && t.message !== _k && !(!t.exception || t.type) && bE(e.getOptions().errorSampleRate) }(e, t); return (r || "session" === e.recordingMode) && (t.tags = { ...t.tags, @@ -50602,7 +52917,7 @@ }) } - function xk(e, t) { + function zE(e, t) { return t.map((({ type: t, start: n, @@ -50611,7 +52926,7 @@ data: a }) => { const o = e.throttledAddEvent({ - type: Sb.Custom, + type: zw.Custom, timestamp: n, data: { tag: "performanceSpan", @@ -50628,7 +52943,7 @@ })) } - function kk(e) { + function VE(e) { return t => { if (!e.isEnabled()) return; const n = function(e) { @@ -50646,24 +52961,24 @@ } } }(t); - null !== n && (e.getContext().urls.push(n.name), e.triggerUserActivity(), e.addUpdate((() => (xk(e, [n]), !1)))) + null !== n && (e.getContext().urls.push(n.name), e.triggerUserActivity(), e.addUpdate((() => (zE(e, [n]), !1)))) } } - function wk(e, t) { + function UE(e, t) { e.isEnabled() && null !== t && (function(e, t) { - return (!Wx || !e.getOptions()._experiments.traceInternals) && Xy(t, zn()) - }(e, t.name) || e.addUpdate((() => (xk(e, [t]), !0)))) + return (!TS || !e.getOptions()._experiments.traceInternals) && Jx(t, Xv()) + }(e, t.name) || e.addUpdate((() => (zE(e, [t]), !0)))) } - function Sk(e) { + function BE(e) { if (!e) return; const t = new TextEncoder; try { if ("string" === typeof e) return t.encode(e).length; if (e instanceof URLSearchParams) return t.encode(e.toString()).length; if (e instanceof FormData) { - const n = Rk(e); + const n = QE(e); return t.encode(n).length } if (e instanceof Blob) return e.size; @@ -50671,25 +52986,25 @@ } catch (n) {} } - function Ek(e) { + function GE(e) { if (!e) return; const t = parseInt(e, 10); return isNaN(t) ? void 0 : t } - function Ik(e) { + function $E(e) { try { if ("string" === typeof e) return [e]; if (e instanceof URLSearchParams) return [e.toString()]; - if (e instanceof FormData) return [Rk(e)]; + if (e instanceof FormData) return [QE(e)]; if (!e) return [void 0] - } catch (ll) { - return Wx && Qt.warn("[Replay] Failed to serialize body", e), [void 0, "BODY_PARSE_ERROR"] + } catch (t) { + return TS && NS.exception(t, "Failed to serialize body", e), [void 0, "BODY_PARSE_ERROR"] } - return Wx && Qt.info("[Replay] Skipping network body because of body type", e), [void 0, "UNPARSEABLE_BODY_TYPE"] + return TS && NS.info("Skipping network body because of body type", e), [void 0, "UNPARSEABLE_BODY_TYPE"] } - function Ok(e, t) { + function qE(e, t) { if (!e) return { headers: {}, size: void 0, @@ -50704,7 +53019,7 @@ return n.warnings = [...r, t], e._meta = n, e } - function Ck(e, t) { + function WE(e, t) { if (!t) return null; const { startTimestamp: n, @@ -50720,7 +53035,7 @@ start: n / 1e3, end: r / 1e3, name: i, - data: cn({ + data: dv({ method: a, statusCode: o, request: s, @@ -50729,7 +53044,7 @@ } } - function Ak(e) { + function HE(e) { return { headers: {}, size: e, @@ -50739,7 +53054,7 @@ } } - function Pk(e, t, n) { + function KE(e, t, n) { if (!t && 0 === Object.keys(e).length) return; if (!t) return { headers: e @@ -50759,14 +53074,14 @@ if (!e || "string" !== typeof e) return { body: e }; - const t = e.length > a_, + const t = e.length > bk, n = function(e) { const t = e[0], n = e[e.length - 1]; return "[" === t && "]" === n || "{" === t && "}" === n }(e); if (t) { - const t = e.slice(0, a_); + const t = e.slice(0, bk); return n ? { body: t, warnings: ["MAYBE_JSON_TRUNCATED"] @@ -50779,7 +53094,7 @@ return { body: JSON.parse(e) } - } catch (cl) {} + } catch (r) {} return { body: e } @@ -50789,29 +53104,29 @@ }), r } - function Tk(e, t) { + function YE(e, t) { return Object.entries(e).reduce(((n, [r, i]) => { const a = r.toLowerCase(); return t.includes(a) && e[r] && (n[a] = i), n }), {}) } - function Rk(e) { + function QE(e) { return new URLSearchParams(e).toString() } - function Dk(e, t) { - const n = function(e, t = n_.document.baseURI) { - if (e.startsWith("http://") || e.startsWith("https://") || e.startsWith(n_.location.origin)) return e; + function ZE(e, t) { + const n = function(e, t = vk.document.baseURI) { + if (e.startsWith("http://") || e.startsWith("https://") || e.startsWith(vk.location.origin)) return e; const n = new URL(e, t); if (n.origin !== new URL(t).origin) return e; const r = n.href; if (!e.endsWith("/") && r.endsWith("/")) return r.slice(0, -1); return r }(e); - return en(n, t) + return rv(n, t) } - async function Lk(e, t, n) { + async function XE(e, t, n) { try { const r = await async function(e, t, n) { const r = Date.now(), @@ -50826,36 +53141,36 @@ request_body_size: c, response_body_size: u } = e.data, - d = Dk(o, n.networkDetailAllowUrls) && !Dk(o, n.networkDetailDenyUrls), + d = ZE(o, n.networkDetailAllowUrls) && !ZE(o, n.networkDetailDenyUrls), p = d ? function({ networkCaptureBodies: e, networkRequestHeaders: t }, n, r) { const i = n ? function(e, t) { - if (1 === e.length && "string" !== typeof e[0]) return jk(e[0], t); - if (2 === e.length) return jk(e[1], t); + if (1 === e.length && "string" !== typeof e[0]) return tO(e[0], t); + if (2 === e.length) return tO(e[1], t); return {} }(n, t) : {}; - if (!e) return Pk(i, r, void 0); - const a = Nk(n), - [o, s] = Ik(a), - l = Pk(i, r, o); - if (s) return Ok(l, s); + if (!e) return KE(i, r, void 0); + const a = JE(n), + [o, s] = $E(a), + l = KE(i, r, o); + if (s) return qE(l, s); return l - }(n, t.input, c) : Ak(c), + }(n, t.input, c) : HE(c), h = await async function(e, { networkCaptureBodies: t, networkResponseHeaders: n }, r, i) { - if (!e && void 0 !== i) return Ak(i); - const a = r ? Mk(r.headers, n) : {}; - if (!r || !t && void 0 !== i) return Pk(a, i, void 0); + if (!e && void 0 !== i) return HE(i); + const a = r ? eO(r.headers, n) : {}; + if (!r || !t && void 0 !== i) return KE(a, i, void 0); const [o, s] = await async function(e) { const t = function(e) { try { return e.clone() } catch (t) { - Wx && Qt.warn("[Replay] Failed to clone response body", t) + TS && NS.exception(t, "Failed to clone response body") } }(e); if (!t) return [void 0, "BODY_PARSE_ERROR"]; @@ -50863,7 +53178,7 @@ const e = await function(e) { return new Promise(((t, n) => { - const r = _o((() => n(new Error("Timeout while trying to read response body"))), 500); + const r = uk((() => n(new Error("Timeout while trying to read response body"))), 500); (async function(e) { return await e.text() })(e).then((e => t(e)), (e => n(e))).finally((() => clearTimeout(r))) @@ -50871,7 +53186,7 @@ }(t); return [e] } catch (n) { - return Wx && Qt.warn("[Replay] Failed to get text body from response", n), [void 0, "BODY_PARSE_ERROR"] + return TS && NS.exception(n, "Failed to get text body from response"), [void 0, "BODY_PARSE_ERROR"] } }(r), l = function(e, { networkCaptureBodies: t, @@ -50880,10 +53195,10 @@ headers: i }) { try { - const a = e && e.length && void 0 === n ? Sk(e) : n; - return r ? Pk(i, a, t ? e : void 0) : Ak(a) + const a = e && e.length && void 0 === n ? BE(e) : n; + return r ? KE(i, a, t ? e : void 0) : HE(a) } catch (a) { - return Wx && Qt.warn("[Replay] Failed to serialize response body", a), Pk(i, n, void 0) + return TS && NS.exception(a, "Failed to serialize response body"), KE(i, n, void 0) } }(o, { networkCaptureBodies: t, @@ -50891,7 +53206,7 @@ captureDetails: e, headers: a }); - if (s) return Ok(l, s); + if (s) return qE(l, s); return l }(d, n, t.response, u); return { @@ -50903,30 +53218,30 @@ request: p, response: h } - }(e, t, n), i = Ck("resource.fetch", r); - wk(n.replay, i) + }(e, t, n), i = WE("resource.fetch", r); + UE(n.replay, i) } catch (r) { - Wx && Qt.error("[Replay] Failed to capture fetch breadcrumb", r) + TS && NS.exception(r, "Failed to capture fetch breadcrumb") } } - function Nk(e = []) { + function JE(e = []) { if (2 === e.length && "object" === typeof e[1]) return e[1].body } - function Mk(e, t) { + function eO(e, t) { const n = {}; return t.forEach((t => { e.get(t) && (n[t] = e.get(t)) })), n } - function jk(e, t) { + function tO(e, t) { if (!e) return {}; const n = e.headers; - return n ? n instanceof Headers ? Mk(n, t) : Array.isArray(n) ? {} : Tk(n, t) : {} + return n ? n instanceof Headers ? eO(n, t) : Array.isArray(n) ? {} : YE(n, t) : {} } - async function Fk(e, t, n) { + async function nO(e, t, n) { try { const r = function(e, t, n) { const r = Date.now(), @@ -50944,20 +53259,20 @@ response_body_size: p } = e.data; if (!l) return null; - if (!s || !Dk(l, n.networkDetailAllowUrls) || Dk(l, n.networkDetailDenyUrls)) { + if (!s || !ZE(l, n.networkDetailAllowUrls) || ZE(l, n.networkDetailDenyUrls)) { return { startTimestamp: i, endTimestamp: a, url: l, method: c, statusCode: u, - request: Ak(d), - response: Ak(p) + request: HE(d), + response: HE(p) } } - const h = s[wa], - f = h ? Tk(h.request_headers, n.networkRequestHeaders) : {}, - m = Tk(function(e) { + const h = s[Px], + f = h ? YE(h.request_headers, n.networkRequestHeaders) : {}, + m = YE(function(e) { const t = e.getAllResponseHeaders(); if (!t) return {}; return t.split("\r\n").reduce(((e, t) => { @@ -50965,7 +53280,7 @@ return r && (e[n.toLowerCase()] = r), e }), {}) }(s), n.networkResponseHeaders), - [g, v] = n.networkCaptureBodies ? Ik(o) : [void 0], + [g, v] = n.networkCaptureBodies ? $E(o) : [void 0], [y, _] = n.networkCaptureBodies ? function(e) { const t = []; try { @@ -50980,54 +53295,54 @@ if (e instanceof Document) return [e.body.outerHTML]; if ("json" === t && e && "object" === typeof e) return [JSON.stringify(e)]; if (!e) return [void 0] - } catch (ll) { - return Wx && Qt.warn("[Replay] Failed to serialize body", e), [void 0, "BODY_PARSE_ERROR"] + } catch (n) { + return TS && NS.exception(n, "Failed to serialize body", e), [void 0, "BODY_PARSE_ERROR"] } - return Wx && Qt.info("[Replay] Skipping network body because of body type", e), [void 0, "UNPARSEABLE_BODY_TYPE"] + return TS && NS.info("Skipping network body because of body type", e), [void 0, "UNPARSEABLE_BODY_TYPE"] }(e.response, e.responseType) } catch (n) { t.push(n) } - return Wx && Qt.warn("[Replay] Failed to get xhr response body", ...t), [void 0] + return TS && NS.warn("Failed to get xhr response body", ...t), [void 0] }(s) : [void 0], - b = Pk(f, d, g), - x = Pk(m, p, y); + b = KE(f, d, g), + x = KE(m, p, y); return { startTimestamp: i, endTimestamp: a, url: l, method: c, statusCode: u, - request: v ? Ok(b, v) : b, - response: _ ? Ok(x, _) : x + request: v ? qE(b, v) : b, + response: _ ? qE(x, _) : x } }(e, t, n), - i = Ck("resource.xhr", r); - wk(n.replay, i) + i = WE("resource.xhr", r); + UE(n.replay, i) } catch (r) { - Wx && Qt.error("[Replay] Failed to capture xhr breadcrumb", r) + TS && NS.exception(r, "Failed to capture xhr breadcrumb") } } - function zk(e, t) { + function rO(e, t) { const { xhr: n, input: r } = t; if (!n) return; - const i = Sk(r), - a = n.getResponseHeader("content-length") ? Ek(n.getResponseHeader("content-length")) : function(e, t) { + const i = BE(r), + a = n.getResponseHeader("content-length") ? GE(n.getResponseHeader("content-length")) : function(e, t) { try { - return Sk("json" === t && e && "object" === typeof e ? JSON.stringify(e) : e) - } catch (cl) { + return BE("json" === t && e && "object" === typeof e ? JSON.stringify(e) : e) + } catch (n) { return } }(n.response, n.responseType); void 0 !== i && (e.data.request_body_size = i), void 0 !== a && (e.data.response_body_size = a) } - function Vk(e) { - const t = zn(); + function iO(e) { + const t = Xv(); try { const { networkDetailAllowUrls: n, @@ -51050,7 +53365,7 @@ return "xhr" === e.category })(t) && function(e) { return e && e.xhr - }(n) && (zk(t, n), Fk(t, n, e)), + }(n) && (rO(t, n), nO(t, n, e)), function(e) { return "fetch" === e.category }(t) && function(e) { @@ -51059,22 +53374,22 @@ const { input: n, response: r - } = t, i = Sk(n ? Nk(n) : void 0), a = r ? Ek(r.headers.get("content-length")) : void 0; + } = t, i = BE(n ? JE(n) : void 0), a = r ? GE(r.headers.get("content-length")) : void 0; void 0 !== i && (e.data.request_body_size = i), void 0 !== a && (e.data.response_body_size = a) - }(t, n), Lk(t, n, e)) + }(t, n), XE(t, n, e)) } catch (r) { - Wx && Qt.warn("Error when enriching network breadcrumb") + TS && NS.exception(r, "Error when enriching network breadcrumb") } }(s, e, t))) - } catch (ll) {} + } catch (n) {} } - function Uk(e) { - const t = zn(); - ba(Rx(e)), Ni(kk(e)), yk(e), Vk(e); - const n = bk(e); + function aO(e) { + const t = Xv(); + fk(JS(e)), Kb(VE(e)), jE(e), iO(e); + const n = FE(e); var r; - r = n, jn().addEventProcessor(r), t && (t.on("beforeSendEvent", vk(e)), t.on("afterSendEvent", gk(e)), t.on("createDsc", (t => { + r = n, Qv().addEventProcessor(r), t && (t.on("beforeSendEvent", NE(e)), t.on("afterSendEvent", LE(e)), t.on("createDsc", (t => { const n = e.getSessionId(); if (n && e.isEnabled() && "session" === e.recordingMode) { e.checkAndHandleExpiredSession() && (t.replay_id = n) @@ -51089,7 +53404,7 @@ }))) } - function Bk(e) { + function oO(e) { const { jsHeapSizeLimit: t, totalJSHeapSize: n, @@ -51110,20 +53425,21 @@ } } - function Gk(e) { + function sO(e) { let t = !1; return (n, r) => { - if (!e.checkAndHandleExpiredSession()) return void(Wx && Qt.warn("[Replay] Received replay event after session expired.")); + if (!e.checkAndHandleExpiredSession()) return void(TS && NS.warn("Received replay event after session expired.")); const i = r || !t; - t = !0, e.clickDetector && Ox(e.clickDetector, n), e.addUpdate((() => { - if ("buffer" === e.recordingMode && i && e.setInitialState(), !uk(e, n, i)) return !0; + t = !0, e.clickDetector && KS(e.clickDetector, n), e.addUpdate((() => { + if ("buffer" === e.recordingMode && i && e.setInitialState(), !CE(e, n, i)) return !0; if (!i) return !1; + const t = e.session; if (function(e, t) { if (!t || !e.session || 0 !== e.session.segmentId) return; - uk(e, function(e) { + CE(e, function(e) { const t = e.getOptions(); return { - type: Sb.Custom, + type: zw.Custom, timestamp: Date.now(), data: { tag: "options", @@ -51144,16 +53460,16 @@ } } }(e), !1) - }(e, i), e.session && e.session.previousSessionId) return !0; - if ("buffer" === e.recordingMode && e.session && e.eventBuffer) { - const t = e.eventBuffer.getEarliestTimestamp(); - t && ($x(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`, e.getOptions()._experiments.traceInternals), e.session.started = t, e.getOptions().stickySession && ik(e.session)) + }(e, i), t && t.previousSessionId) return !0; + if ("buffer" === e.recordingMode && t && e.eventBuffer) { + const n = e.eventBuffer.getEarliestTimestamp(); + n && (TS && NS.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`), t.started = n, e.getOptions().stickySession && kE(t)) } return "session" === e.recordingMode && e.flush(), !0 })) } } - async function Wk({ + async function lO({ recordingData: e, replayId: t, segmentId: n, @@ -51185,11 +53501,11 @@ traceIds: c, initialTimestamp: u } = r, - d = zn(), - p = Mn(), + d = Xv(), + p = Yv(), h = d && d.getTransport(), f = d && d.getDsn(); - if (!d || !h || !f || !a.sampled) return Jn({}); + if (!d || !h || !f || !a.sampled) return lx({}); const m = { type: "replay_event", replay_start_timestamp: u / 1e3, @@ -51212,7 +53528,7 @@ integrations: "object" !== typeof e._integrations || null === e._integrations || Array.isArray(e._integrations) ? void 0 : Object.keys(e._integrations) }; e.emit("preprocessEvent", r, i); - const a = await $r(e.getOptions(), r, i, t, e, jn()); + const a = await mx(e.getOptions(), r, i, t, e, Qv()); if (!a) return null; a.platform = a.platform || "javascript"; const o = e.getSdkMetadata(), @@ -51231,10 +53547,10 @@ replayId: t, event: m }); - if (!g) return d.recordDroppedEvent("event_processor", "replay", m), $x("An event processor returned `null`, will not send event."), Jn({}); + if (!g) return d.recordDroppedEvent("event_processor", "replay", m), TS && NS.info("An event processor returned `null`, will not send event."), lx({}); delete g.sdkProcessingMetadata; const v = function(e, t, n, r) { - return ji(Hi(e, qi(e), r, n), [ + return Yy(a_(e, i_(e), r, n), [ [{ type: "replay_event" }, e], @@ -51247,53 +53563,54 @@ let y; try { y = await h.send(v) - } catch (OD) { - const t = new Error(i_); + } catch (sF) { + const t = new Error(_k); try { - t.cause = OD + t.cause = sF } catch (b) {} throw t } - if ("number" === typeof y.statusCode && (y.statusCode < 200 || y.statusCode >= 300)) throw new $k(y.statusCode); - const _ = ko({}, y); - if (xo(_, "replay")) throw new qk(_); + if ("number" === typeof y.statusCode && (y.statusCode < 200 || y.statusCode >= 300)) throw new cO(y.statusCode); + const _ = ik({}, y); + if (rk(_, "replay")) throw new uO(_); return y } - class $k extends Error { + class cO extends Error { constructor(e) { super(`Transport returned status code ${e}`) } } - class qk extends Error { + class uO extends Error { constructor(e) { super("Rate limit hit"), this.rateLimits = e } } - async function Hk(e, t = { + async function dO(e, t = { count: 0, interval: 5e3 }) { const { recordingData: n, - options: r + onError: r } = e; + var i, a; if (n.length) try { - return await Wk(e), !0 - } catch (OD) { - if (OD instanceof $k || OD instanceof qk) throw OD; - if (Zr("Replays", { + return await lO(e), !0 + } catch (sF) { + if (sF instanceof cO || sF instanceof uO) throw sF; + if (i = "Replays", a = { _retryCount: t.count - }), Wx && r._experiments && r._experiments.captureExceptions && Yr(OD), t.count >= 3) { - const e = new Error(`${i_} - max retries exceeded`); + }, Qv().setContext(i, a), r && r(sF), t.count >= 3) { + const e = new Error(`${_k} - max retries exceeded`); try { - e.cause = OD - } catch (i) {} + e.cause = sF + } catch (o) {} throw e } return t.interval *= ++t.count, new Promise(((r, i) => { - _o((async () => { + uk((async () => { try { - await Hk(e, t), r(!0) + await dO(e, t), r(!0) } catch (n) { i(n) } @@ -51301,9 +53618,9 @@ })) } } - const Kk = "__THROTTLED"; + const pO = "__THROTTLED"; - function Yk(e, t, n) { + function hO(e, t, n) { const r = new Map; let i = !1; return (...a) => { @@ -51315,19 +53632,19 @@ })) })(o), [...r.values()].reduce(((e, t) => e + t), 0) >= t) { const e = i; - return i = !0, e ? "__SKIPPED" : Kk + return i = !0, e ? "__SKIPPED" : pO } i = !1; const s = r.get(o) || 0; return r.set(o, s + 1), e(...a) } } - class Qk { + class fO { constructor({ options: e, recordingOptions: t }) { - Qk.prototype.__init.call(this), Qk.prototype.__init2.call(this), Qk.prototype.__init3.call(this), Qk.prototype.__init4.call(this), Qk.prototype.__init5.call(this), Qk.prototype.__init6.call(this), this.eventBuffer = null, this.performanceEntries = [], this.replayPerformanceEntries = [], this.recordingMode = "session", this.timeouts = { + fO.prototype.__init.call(this), fO.prototype.__init2.call(this), fO.prototype.__init3.call(this), fO.prototype.__init4.call(this), fO.prototype.__init5.call(this), fO.prototype.__init6.call(this), this.eventBuffer = null, this.performanceEntries = [], this.replayPerformanceEntries = [], this.recordingMode = "session", this.timeouts = { sessionIdlePause: 3e5, sessionIdleExpire: 9e5 }, this._lastActivity = Date.now(), this._isEnabled = !1, this._isPaused = !1, this._requiresManualStart = !1, this._hasInitializedCoreListeners = !1, this._context = { @@ -51349,15 +53666,15 @@ } function c() { - return i && clearTimeout(i), i = _o(s, t), o && void 0 === a && (a = _o(s, o)), r + return i && clearTimeout(i), i = uk(s, t), o && void 0 === a && (a = uk(s, o)), r } return c.cancel = l, c.flush = function() { return void 0 !== i || void 0 !== a ? s() : r }, c }((() => this._flush()), this._options.flushMinDelay, { maxWait: this._options.flushMaxDelay - }), this._throttledAddEvent = Yk(((e, t) => function(e, t, n) { - return pk(e, t) ? dk(e, t, n) : Promise.resolve(null) + }), this._throttledAddEvent = hO(((e, t) => function(e, t, n) { + return PE(e, t) ? AE(e, t, n) : Promise.resolve(null) }(this, e, t)), 300, 5); const { slowClickTimeout: n, @@ -51368,7 +53685,13 @@ scrollTimeout: 300, ignoreSelector: r ? r.join(",") : "" } : void 0; - i && (this.clickDetector = new Sx(this, i)) + if (i && (this.clickDetector = new qS(this, i)), TS) { + const t = e._experiments; + NS.setConfig({ + captureExceptions: !!t.captureExceptions, + traceInternals: !!t.traceInternals + }) + } } getContext() { return this._context @@ -51385,21 +53708,23 @@ getOptions() { return this._options } + handleException(e) { + TS && NS.exception(e), this._options.onError && this._options.onError(e) + } initializeSampling(e) { const { errorSampleRate: t, sessionSampleRate: n } = this._options, r = t <= 0 && n <= 0; - this._requiresManualStart = r, r || (this._initializeSessionForSampling(e), this.session ? !1 !== this.session.sampled && (this.recordingMode = "buffer" === this.session.sampled && 0 === this.session.segmentId ? "buffer" : "session", qx(`[Replay] Starting replay in ${this.recordingMode} mode`, this._options._experiments.traceInternals), this._initializeRecording()) : this._handleException(new Error("Unable to initialize and create session"))) + this._requiresManualStart = r, r || (this._initializeSessionForSampling(e), this.session ? !1 !== this.session.sampled && (this.recordingMode = "buffer" === this.session.sampled && 0 === this.session.segmentId ? "buffer" : "session", TS && NS.infoTick(`Starting replay in ${this.recordingMode} mode`), this._initializeRecording()) : TS && NS.exception(new Error("Unable to initialize and create session"))) } start() { - if (this._isEnabled && "session" === this.recordingMode) return void(Wx && Qt.info("[Replay] Recording is already in progress")); - if (this._isEnabled && "buffer" === this.recordingMode) return void(Wx && Qt.info("[Replay] Buffering is in progress, call `flush()` to save the replay")); - qx("[Replay] Starting replay in session mode", this._options._experiments.traceInternals), this._updateUserActivity(); - const e = ck({ + if (this._isEnabled && "session" === this.recordingMode) return void(TS && NS.info("Recording is already in progress")); + if (this._isEnabled && "buffer" === this.recordingMode) return void(TS && NS.info("Buffering is in progress, call `flush()` to save the replay")); + TS && NS.infoTick("Starting replay in session mode"), this._updateUserActivity(); + const e = IE({ maxReplayDuration: this._options.maxReplayDuration, - sessionIdleExpire: this.timeouts.sessionIdleExpire, - traceInternals: this._options._experiments.traceInternals + sessionIdleExpire: this.timeouts.sessionIdleExpire }, { stickySession: this._options.stickySession, sessionSampleRate: 1, @@ -51408,12 +53733,11 @@ this.session = e, this._initializeRecording() } startBuffering() { - if (this._isEnabled) return void(Wx && Qt.info("[Replay] Buffering is in progress, call `flush()` to save the replay")); - qx("[Replay] Starting replay in buffer mode", this._options._experiments.traceInternals); - const e = ck({ + if (this._isEnabled) return void(TS && NS.info("Buffering is in progress, call `flush()` to save the replay")); + TS && NS.infoTick("Starting replay in buffer mode"); + const e = IE({ sessionIdleExpire: this.timeouts.sessionIdleExpire, - maxReplayDuration: this._options.maxReplayDuration, - traceInternals: this._options._experiments.traceInternals + maxReplayDuration: this._options.maxReplayDuration }, { stickySession: this._options.stickySession, sessionSampleRate: 0, @@ -51424,12 +53748,14 @@ startRecording() { try { const e = this._canvas; - this._stopRecording = mx({ + this._stopRecording = PS({ ...this._recordingOptions, - ..."buffer" === this.recordingMode && { + ..."buffer" === this.recordingMode ? { checkoutEveryNms: 6e4 + } : this._options._experiments.continuousCheckout && { + checkoutEveryNms: Math.max(36e4, this._options._experiments.continuousCheckout) }, - emit: Gk(this), + emit: sO(this), onMutation: this._onMutationHandler, ...e ? { recordCanvas: e.recordCanvas, @@ -51438,15 +53764,15 @@ dataURLOptions: e.dataURLOptions } : {} }) - } catch (OD) { - this._handleException(OD) + } catch (sF) { + this.handleException(sF) } } stopRecording() { try { return this._stopRecording && (this._stopRecording(), this._stopRecording = void 0), !0 - } catch (OD) { - return this._handleException(OD), !1 + } catch (sF) { + return this.handleException(sF), !1 } } async stop({ @@ -51456,26 +53782,26 @@ if (this._isEnabled) { this._isEnabled = !1; try { - $x("[Replay] Stopping Replay" + (t ? ` triggered by ${t}` : ""), this._options._experiments.traceInternals), this._removeListeners(), this.stopRecording(), this._debouncedFlush.cancel(), e && await this._flush({ + TS && NS.info("Stopping Replay" + (t ? ` triggered by ${t}` : "")), this._removeListeners(), this.stopRecording(), this._debouncedFlush.cancel(), e && await this._flush({ force: !0 - }), this.eventBuffer && this.eventBuffer.destroy(), this.eventBuffer = null, tk(this) - } catch (OD) { - this._handleException(OD) + }), this.eventBuffer && this.eventBuffer.destroy(), this.eventBuffer = null, _E(this) + } catch (sF) { + this.handleException(sF) } } } pause() { - this._isPaused || (this._isPaused = !0, this.stopRecording(), $x("[Replay] Pausing replay", this._options._experiments.traceInternals)) + this._isPaused || (this._isPaused = !0, this.stopRecording(), TS && NS.info("Pausing replay")) } resume() { - this._isPaused && this._checkSession() && (this._isPaused = !1, this.startRecording(), $x("[Replay] Resuming replay", this._options._experiments.traceInternals)) + this._isPaused && this._checkSession() && (this._isPaused = !1, this.startRecording(), TS && NS.info("Resuming replay")) } async sendBufferedReplayOrFlush({ continueRecording: e = !0 } = {}) { if ("session" === this.recordingMode) return this.flushImmediate(); const t = Date.now(); - $x("[Replay] Converting buffer to session", this._options._experiments.traceInternals), await this.flushImmediate(); + TS && NS.info("Converting buffer to session"), await this.flushImmediate(); const n = this.stopRecording(); e && n && "session" !== this.recordingMode && (this.recordingMode = "session", this.session && (this._updateUserActivity(t), this._updateSessionActivity(t), this._maybeSaveSession()), this.startRecording()) } @@ -51509,21 +53835,21 @@ return this.session && this.session.id } checkAndHandleExpiredSession() { - if (!(this._lastActivity && ok(this._lastActivity, this.timeouts.sessionIdlePause) && this.session && "session" === this.session.sampled)) return !!this._checkSession(); + if (!(this._lastActivity && SE(this._lastActivity, this.timeouts.sessionIdlePause) && this.session && "session" === this.session.sampled)) return !!this._checkSession(); this.pause() } setInitialState() { - const e = `${n_.location.pathname}${n_.location.hash}${n_.location.search}`, - t = `${n_.location.origin}${e}`; + const e = `${vk.location.pathname}${vk.location.hash}${vk.location.search}`, + t = `${vk.location.origin}${e}`; this.performanceEntries = [], this.replayPerformanceEntries = [], this._clearContext(), this._context.initialUrl = t, this._context.initialTimestamp = Date.now(), this._context.urls.push(t) } throttledAddEvent(e, t) { const n = this._throttledAddEvent(e, t); - if (n === Kk) { - const e = Cx({ + if (n === pO) { + const e = YS({ category: "replay.throttled" }); - this.addUpdate((() => !uk(this, { + this.addUpdate((() => !CE(this, { type: 5, timestamp: e.timestamp || 0, data: { @@ -51536,26 +53862,22 @@ return n } getCurrentRoute() { - const e = this.lastActiveSpan || jr(), - t = e && Mr(e), - n = (t && Ar(t).data || {})[ur]; - if (t && n && ["route", "custom"].includes(n)) return Ar(t).description + const e = this.lastActiveSpan || wy(), + t = e && ky(e), + n = (t && my(t).data || {})[ty]; + if (t && n && ["route", "custom"].includes(n)) return my(t).description } _initializeRecording() { - this.setInitialState(), this._updateSessionActivity(), this.eventBuffer = Jx({ + this.setInitialState(), this._updateSessionActivity(), this.eventBuffer = vE({ useCompression: this._options.useCompression, workerUrl: this._options.workerUrl }), this._removeListeners(), this._addListeners(), this._isEnabled = !0, this._isPaused = !1, this.startRecording() } - _handleException(e) { - Wx && Qt.error("[Replay]", e), Wx && this._options._experiments && this._options._experiments.captureExceptions && Yr(e) - } _initializeSessionForSampling(e) { const t = this._options.errorSampleRate > 0, - n = ck({ + n = IE({ sessionIdleExpire: this.timeouts.sessionIdleExpire, maxReplayDuration: this._options.maxReplayDuration, - traceInternals: this._options._experiments.traceInternals, previousSessionId: e }, { stickySession: this._options.stickySession, @@ -51567,7 +53889,7 @@ _checkSession() { if (!this.session) return !1; const e = this.session; - return !lk(e, { + return !OE(e, { sessionIdleExpire: this.timeouts.sessionIdleExpire, maxReplayDuration: this._options.maxReplayDuration }) || (this._refreshSession(e), !1) @@ -51579,9 +53901,9 @@ } _addListeners() { try { - n_.document.addEventListener("visibilitychange", this._handleVisibilityChange), n_.addEventListener("blur", this._handleWindowBlur), n_.addEventListener("focus", this._handleWindowFocus), n_.addEventListener("keydown", this._handleKeyboardEvent), this.clickDetector && this.clickDetector.addListeners(), this._hasInitializedCoreListeners || (Uk(this), this._hasInitializedCoreListeners = !0) - } catch (OD) { - this._handleException(OD) + vk.document.addEventListener("visibilitychange", this._handleVisibilityChange), vk.addEventListener("blur", this._handleWindowBlur), vk.addEventListener("focus", this._handleWindowFocus), vk.addEventListener("keydown", this._handleKeyboardEvent), this.clickDetector && this.clickDetector.addListeners(), this._hasInitializedCoreListeners || (aO(this), this._hasInitializedCoreListeners = !0) + } catch (sF) { + this.handleException(sF) } this._performanceCleanupCallback = function(e) { function t(t) { @@ -51595,27 +53917,27 @@ } const r = []; return ["navigation", "paint", "resource"].forEach((e => { - r.push(hy(e, n)) - })), r.push(uy(Mx(zx, e)), cy(Mx(Vx, e)), dy(Mx(Ux, e)), py(Mx(Bx, e))), () => { + r.push(hb(e, n)) + })), r.push(ub(rE(oE, e)), cb(rE(lE, e)), db(rE(cE, e)), pb(rE(uE, e))), () => { r.forEach((e => e())) } }(this) } _removeListeners() { try { - n_.document.removeEventListener("visibilitychange", this._handleVisibilityChange), n_.removeEventListener("blur", this._handleWindowBlur), n_.removeEventListener("focus", this._handleWindowFocus), n_.removeEventListener("keydown", this._handleKeyboardEvent), this.clickDetector && this.clickDetector.removeListeners(), this._performanceCleanupCallback && this._performanceCleanupCallback() - } catch (OD) { - this._handleException(OD) + vk.document.removeEventListener("visibilitychange", this._handleVisibilityChange), vk.removeEventListener("blur", this._handleWindowBlur), vk.removeEventListener("focus", this._handleWindowFocus), vk.removeEventListener("keydown", this._handleKeyboardEvent), this.clickDetector && this.clickDetector.removeListeners(), this._performanceCleanupCallback && this._performanceCleanupCallback() + } catch (sF) { + this.handleException(sF) } } __init() { this._handleVisibilityChange = () => { - "visible" === n_.document.visibilityState ? this._doChangeToForegroundTasks() : this._doChangeToBackgroundTasks() + "visible" === vk.document.visibilityState ? this._doChangeToForegroundTasks() : this._doChangeToBackgroundTasks() } } __init2() { this._handleWindowBlur = () => { - const e = Cx({ + const e = YS({ category: "ui.blur" }); this._doChangeToBackgroundTasks(e) @@ -51623,7 +53945,7 @@ } __init3() { this._handleWindowFocus = () => { - const e = Cx({ + const e = YS({ category: "ui.focus" }); this._doChangeToForegroundTasks(e) @@ -51631,19 +53953,19 @@ } __init4() { this._handleKeyboardEvent = e => { - Lx(this, e) + tE(this, e) } } _doChangeToBackgroundTasks(e) { if (!this.session) return; - sk(this.session, { + EE(this.session, { maxReplayDuration: this._options.maxReplayDuration, sessionIdleExpire: this.timeouts.sessionIdleExpire }) || (e && this._createCustomBreadcrumb(e), this.conditionalFlush()) } _doChangeToForegroundTasks(e) { if (!this.session) return; - this.checkAndHandleExpiredSession() ? e && this._createCustomBreadcrumb(e) : $x("[Replay] Document has become active, but session has expired") + this.checkAndHandleExpiredSession() ? e && this._createCustomBreadcrumb(e) : TS && NS.info("Document has become active, but session has expired") } _updateUserActivity(e = Date.now()) { this._lastActivity = e @@ -51654,7 +53976,7 @@ _createCustomBreadcrumb(e) { this.addUpdate((() => { this.throttledAddEvent({ - type: Sb.Custom, + type: zw.Custom, timestamp: e.timestamp || 0, data: { tag: "breadcrumb", @@ -51664,9 +53986,9 @@ })) } _addPerformanceEntries() { - const e = (t = this.performanceEntries, t.map(jx).filter(Boolean)).concat(this.replayPerformanceEntries); + const e = (t = this.performanceEntries, t.map(iE).filter(Boolean)).concat(this.replayPerformanceEntries); var t; - return this.performanceEntries = [], this.replayPerformanceEntries = [], Promise.all(xk(this, e)) + return this.performanceEntries = [], this.replayPerformanceEntries = [], Promise.all(zE(this, e)) } _clearContext() { this._context.errorIds.clear(), this._context.traceIds.clear(), this._context.urls = [] @@ -51696,7 +54018,7 @@ if (this.session && this.eventBuffer && e) { if (await this._addPerformanceEntries(), this.eventBuffer && this.eventBuffer.hasEvents && (await async function(e) { try { - return Promise.all(xk(e, [Bk(n_.performance.memory)])) + return Promise.all(zE(e, [oO(vk.performance.memory)])) } catch (t) { return [] } @@ -51708,50 +54030,55 @@ r = this.session.segmentId++; this._maybeSaveSession(); const i = await this.eventBuffer.finish(); - await Hk({ + await dO({ replayId: e, recordingData: i, segmentId: r, eventContext: n, session: this.session, - options: this.getOptions(), - timestamp: t + timestamp: t, + onError: e => this.handleException(e) }) - } catch (OD) { - this._handleException(OD), this.stop({ + } catch (sF) { + this.handleException(sF), this.stop({ reason: "sendReplay" }); - const t = zn(); - t && t.recordDroppedEvent("send_error", "replay") + const t = Xv(); + if (t) { + const n = sF instanceof uO ? "ratelimit_backoff" : "send_error"; + t.recordDroppedEvent(n, "replay") + } } - } else Wx && Qt.error("[Replay] No session or eventBuffer found to flush.") + } else TS && NS.error("No session or eventBuffer found to flush.") } __init5() { this._flush = async ({ force: e = !1 } = {}) => { if (!this._isEnabled && !e) return; - if (!this.checkAndHandleExpiredSession()) return void(Wx && Qt.error("[Replay] Attempting to finish replay event after session expired.")); + if (!this.checkAndHandleExpiredSession()) return void(TS && NS.error("Attempting to finish replay event after session expired.")); if (!this.session) return; const t = this.session.started, n = Date.now() - t; this._debouncedFlush.cancel(); const r = n < this._options.minReplayDuration, i = n > this._options.maxReplayDuration + 5e3; - if (r || i) return $x(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`, this._options._experiments.traceInternals), void(r && this._debouncedFlush()); + if (r || i) return TS && NS.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`), void(r && this._debouncedFlush()); const a = this.eventBuffer; - if (a && 0 === this.session.segmentId && !a.hasCheckout && $x("[Replay] Flushing initial segment without checkout.", this._options._experiments.traceInternals), !this._flushLock) return this._flushLock = this._runFlush(), await this._flushLock, void(this._flushLock = void 0); + a && 0 === this.session.segmentId && !a.hasCheckout && TS && NS.info("Flushing initial segment without checkout."); + const o = !!this._flushLock; + this._flushLock || (this._flushLock = this._runFlush()); try { await this._flushLock - } catch (OD) { - Wx && Qt.error(OD) + } catch (sF) { + this.handleException(sF) } finally { - this._debouncedFlush() + this._flushLock = void 0, o && this._debouncedFlush() } } } _maybeSaveSession() { - this.session && this._options.stickySession && ik(this.session) + this.session && this._options.stickySession && kE(this.session) } __init6() { this._onMutationHandler = e => { @@ -51759,7 +54086,7 @@ n = this._options.mutationLimit, r = n && t > n; if (t > this._options.mutationBreadcrumbLimit || r) { - const e = Cx({ + const e = YS({ category: "replay.mutations", data: { count: t, @@ -51776,13 +54103,13 @@ } } - function Zk(e, t) { + function mO(e, t) { return [...e, ...t].join(",") } - const Xk = 'img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]', - Jk = ["content-length", "content-type", "accept"]; - let ew = !1; - class tw { + const gO = 'img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]', + vO = ["content-length", "content-type", "accept"]; + let yO = !1; + class _O { static __initStatic() { this.id = "Replay" } @@ -51813,11 +54140,11 @@ block: w = [], unblock: S = [], ignore: E = [], - maskFn: I, - beforeAddRecordingEvent: O, + maskFn: O, + beforeAddRecordingEvent: I, beforeErrorSampling: C } = {}) { - this.name = tw.id; + this.name = _O.id; const A = function({ mask: e, unmask: t, @@ -51826,11 +54153,11 @@ ignore: i }) { return { - maskTextSelector: Zk(e, [".sentry-mask", "[data-sentry-mask]"]), - unmaskTextSelector: Zk(t, []), - blockSelector: Zk(n, [".sentry-block", "[data-sentry-block]", 'base[href="/"]']), - unblockSelector: Zk(r, []), - ignoreSelector: Zk(i, [".sentry-ignore", "[data-sentry-ignore]", 'input[type="file"]']) + maskTextSelector: mO(e, [".sentry-mask", "[data-sentry-mask]"]), + unmaskTextSelector: mO(t, []), + blockSelector: mO(n, [".sentry-block", "[data-sentry-block]", 'base[href="/"]']), + unblockSelector: mO(r, []), + ignoreSelector: mO(i, [".sentry-ignore", "[data-sentry-ignore]", 'input[type="file"]']) } }({ mask: b, @@ -51845,8 +54172,8 @@ maskInputOptions: { password: !0 }, - maskTextFn: I, - maskInputFn: I, + maskTextFn: O, + maskInputFn: O, maskAttributeFn: (e, t, n) => function({ el: e, key: t, @@ -51878,7 +54205,7 @@ flushMinDelay: e, flushMaxDelay: t, minReplayDuration: Math.min(n, 15e3), - maxReplayDuration: Math.min(r, l_), + maxReplayDuration: Math.min(r, wk), stickySession: i, useCompression: a, workerUrl: o, @@ -51892,22 +54219,22 @@ networkDetailAllowUrls: m, networkDetailDenyUrls: g, networkCaptureBodies: v, - networkRequestHeaders: nw(y), - networkResponseHeaders: nw(_), - beforeAddRecordingEvent: O, + networkRequestHeaders: bO(y), + networkResponseHeaders: bO(_), + beforeAddRecordingEvent: I, beforeErrorSampling: C, _experiments: s - }, this._initialOptions.blockAllMedia && (this._recordingOptions.blockSelector = this._recordingOptions.blockSelector ? `${this._recordingOptions.blockSelector},${Xk}` : Xk), this._isInitialized && t_()) throw new Error("Multiple Sentry Session Replay instances are not supported"); + }, this._initialOptions.blockAllMedia && (this._recordingOptions.blockSelector = this._recordingOptions.blockSelector ? `${this._recordingOptions.blockSelector},${gO}` : gO), this._isInitialized && ok()) throw new Error("Multiple Sentry Session Replay instances are not supported"); this._isInitialized = !0 } get _isInitialized() { - return ew + return yO } set _isInitialized(e) { - ew = e + yO = e } afterAllSetup(e) { - t_() && !this._replay && (this._setup(e), this._initialize(e)) + ok() && !this._replay && (this._setup(e), this._initialize(e)) } start() { this._replay && this._replay.start() @@ -51935,18 +54262,18 @@ r = { sessionSampleRate: 0, errorSampleRate: 0, - ...cn(e) + ...dv(e) }, - i = Yi(n.replaysSessionSampleRate), - a = Yi(n.replaysOnErrorSampleRate); - null == i && null == a && Yt((() => { + i = Ty(n.replaysSessionSampleRate), + a = Ty(n.replaysOnErrorSampleRate); + null == i && null == a && Xg((() => { console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.") })); null != i && (r.sessionSampleRate = i); null != a && (r.errorSampleRate = a); return r }(this._initialOptions, e); - this._replay = new Qk({ + this._replay = new fO({ options: t, recordingOptions: this._recordingOptions }) @@ -51960,40 +54287,87 @@ } } - function nw(e) { - return [...Jk, ...e.map((e => e.toLowerCase()))] + function bO(e) { + return [...vO, ...e.map((e => e.toLowerCase()))] + } + _O.__initStatic(); + const xO = []; + + function kO(e) { + const t = e.defaultIntegrations || [], + n = e.integrations; + let r; + t.forEach((e => { + e.isDefaultInstance = !0 + })), r = Array.isArray(n) ? [...t, ...n] : "function" === typeof n ? Ev(n(t)) : t; + const i = function(e) { + const t = {}; + return e.forEach((e => { + const { + name: n + } = e, r = t[n]; + r && !r.isDefaultInstance && e.isDefaultInstance || (t[n] = e) + })), Object.values(t) + }(r), + a = i.findIndex((e => "Debug" === e.name)); + if (a > -1) { + const [e] = i.splice(a, 1); + i.push(e) + } + return i } - function rw() { - const e = jn().getScopeData(); - return Gr(e, Mn().getScopeData()), e.eventProcessors = [], e + function wO(e, t) { + for (const n of t) n && n.afterAllSetup && n.afterAllSetup(e) } - var iw; - tw.__initStatic(), - function(e) { - e[e.Classic = 1] = "Classic", e[e.Protocol = 2] = "Protocol", e[e.Both = 3] = "Both" - }(iw || (iw = {})); - var aw; + + function SO(e, t, n) { + if (n[t.name]) Py && Jg.log(`Integration skipped because it was already installed: ${t.name}`); + else { + if (n[t.name] = t, -1 === xO.indexOf(t.name) && "function" === typeof t.setupOnce && (t.setupOnce(), xO.push(t.name)), t.setup && "function" === typeof t.setup && t.setup(e), "function" === typeof t.preprocessEvent) { + const n = t.preprocessEvent.bind(t); + e.on("preprocessEvent", ((t, r) => n(t, r, e))) + } + if ("function" === typeof t.processEvent) { + const n = t.processEvent.bind(t), + r = Object.assign(((t, r) => n(t, r, e)), { + id: t.name + }); + e.addEventProcessor(r) + } + Py && Jg.log(`Integration installed: ${t.name}`) + } + } + + function EO() { + const e = Qv().getScopeData(); + return hx(e, Yv().getScopeData()), e.eventProcessors = [], e + } + var OO; + ! function(e) { + e[e.Classic = 1] = "Classic", e[e.Protocol = 2] = "Protocol", e[e.Both = 3] = "Both" + }(OO || (OO = {})); + var IO; ! function(e) { e.RENDERER_START = "sentry-electron.renderer-start", e.EVENT = "sentry-electron.event", e.SCOPE = "sentry-electron.scope", e.ENVELOPE = "sentry-electron.envelope", e.STATUS = "sentry-electron.status", e.ADD_METRIC = "sentry-electron.add-metric" - }(aw || (aw = {})); + }(IO || (IO = {})); - function ow(e) { + function CO(e) { return `sentry-ipc://${e}/sentry_key` } - let sw; + let AO; - function lw() { - return sw || (sw = function() { + function PO() { + return AO || (AO = function() { if (window.__SENTRY_IPC__) return window.__SENTRY_IPC__; { - Qt.log("IPC was not configured in preload script, falling back to custom protocol and fetch"); + Jg.log("IPC was not configured in preload script, falling back to custom protocol and fetch"); const e = { - "sentry-electron-renderer-id": window.__SENTRY_RENDERER_ID__ = dn() + "sentry-electron-renderer-id": window.__SENTRY_RENDERER_ID__ = _v() }; return { sendRendererStart: () => { - fetch(ow(aw.RENDERER_START), { + fetch(CO(IO.RENDERER_START), { method: "POST", body: "", headers: e @@ -52002,28 +54376,28 @@ })) }, sendScope: t => { - fetch(ow(aw.SCOPE), { + fetch(CO(IO.SCOPE), { method: "POST", body: t, headers: e }).catch((() => {})) }, sendEvent: t => { - fetch(ow(aw.EVENT), { + fetch(CO(IO.EVENT), { method: "POST", body: t, headers: e }).catch((() => {})) }, sendEnvelope: t => { - fetch(ow(aw.ENVELOPE), { + fetch(CO(IO.ENVELOPE), { method: "POST", body: t, headers: e }).catch((() => {})) }, sendStatus: t => { - fetch(ow(aw.STATUS), { + fetch(CO(IO.STATUS), { method: "POST", body: JSON.stringify({ status: t @@ -52032,7 +54406,7 @@ }).catch((() => {})) }, sendAddMetric: t => { - fetch(ow(aw.ADD_METRIC), { + fetch(CO(IO.ADD_METRIC), { method: "POST", body: JSON.stringify(t), headers: e @@ -52040,37 +54414,1508 @@ } } } - }(), sw.sendRendererStart()), sw + }(), AO.sendRendererStart()), AO } - const cw = () => ({ + const TO = () => ({ name: "ScopeToMain", setup() { - const e = lw(); + const e = PO(); var t; t = (t, n) => { - e.sendScope(JSON.stringify(Yn(t, 20, 2e3))), n.clearBreadcrumbs(), n.clearAttachments() - }, jn().addScopeListener((e => { - const n = rw(); + e.sendScope(JSON.stringify(Wy(t, 20, 2e3))), n.clearBreadcrumbs(), n.clearAttachments() + }, Qv().addScopeListener((e => { + const n = EO(); t(n, e) - })), Mn().addScopeListener((e => { - const n = rw(); + })), Yv().addScopeListener((e => { + const n = EO(); t(n, e) })) } }); + class RO 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 + } + } - function uw(e) { - const t = lw(); - return wo(e, (async e => (t.sendEnvelope(e.body), { + function DO(e) { + const t = []; + + function n(e) { + return t.splice(t.indexOf(e), 1)[0] || Promise.resolve(void 0) + } + return { + $: t, + add: function(r) { + if (!(void 0 === e || t.length < e)) return cx(new RO("Not adding Promise because buffer limit was reached.")); + const i = r(); + return -1 === t.indexOf(i) && t.push(i), i.then((() => n(i))).then(null, (() => n(i).then(null, (() => {})))), i + }, + drain: function(e) { + return new ux(((n, r) => { + let i = t.length; + if (!i) return n(!0); + const a = setTimeout((() => { + e && e > 0 && n(!1) + }), e); + t.forEach((e => { + lx(e).then((() => { + --i || (clearTimeout(a), n(!0)) + }), r) + })) + })) + } + } + } + + function LO(e, t, n = DO(e.bufferSize || 64)) { + let r = {}; + return { + send: function(i) { + const a = []; + if (Zy(i, ((t, n) => { + const i = r_(n); + if (rk(r, i)) { + const r = NO(t, n); + e.recordDroppedEvent("ratelimit_backoff", i, r) + } else a.push(t) + })), 0 === a.length) return lx({}); + const o = Yy(i[0], a), + s = t => { + Zy(o, ((n, r) => { + const i = NO(n, r); + e.recordDroppedEvent(t, r_(r), i) + })) + }; + return n.add((() => t({ + body: Jy(o) + }).then((e => (void 0 !== e.statusCode && (e.statusCode < 200 || e.statusCode >= 300) && Py && Jg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`), r = ik(r, e), e)), (e => { + throw s("network_error"), e + })))).then((e => e), (e => { + if (e instanceof RO) return Py && Jg.error("Skipped sending event because buffer is full."), s("queue_overflow"), lx({}); + throw e + })) + }, + flush: e => n.drain(e) + } + } + + function NO(e, t) { + if ("event" === t || "transaction" === t) return Array.isArray(e) ? e[1] : void 0 + } + + function jO(e) { + const t = PO(); + return LO(e, (async e => (t.sendEnvelope(e.body), { statusCode: 200 }))) } + const MO = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/, /^ResizeObserver loop completed with undelivered notifications.$/, /^Cannot redefine property: googletag$/, "undefined is not an object (evaluating 'a.L')", 'can\'t redefine non-configurable property "solana"', "vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)", "Can't find variable: _AutofillCallbackHandler"], + FO = (e = {}) => ({ + name: "InboundFilters", + processEvent(t, n, r) { + const i = r.getOptions(), + a = function(e = {}, t = {}) { + return { + allowUrls: [...e.allowUrls || [], ...t.allowUrls || []], + denyUrls: [...e.denyUrls || [], ...t.denyUrls || []], + ignoreErrors: [...e.ignoreErrors || [], ...t.ignoreErrors || [], ...e.disableErrorDefaults ? [] : MO], + ignoreTransactions: [...e.ignoreTransactions || [], ...t.ignoreTransactions || []], + ignoreInternal: void 0 === e.ignoreInternal || e.ignoreInternal + } + }(e, i); + return function(e, t) { + if (t.ignoreInternal && function(e) { + try { + return "SentryError" === e.exception.values[0].type + } catch (t) {} + return !1 + }(e)) return Py && Jg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${xv(e)}`), !0; + if (function(e, t) { + if (e.type || !t || !t.length) return !1; + return function(e) { + const t = []; + e.message && t.push(e.message); + let n; + try { + n = e.exception.values[e.exception.values.length - 1] + } catch (r) {} + n && n.value && (t.push(n.value), n.type && t.push(`${n.type}: ${n.value}`)); + return t + }(e).some((e => rv(e, t))) + }(e, t.ignoreErrors)) return Py && Jg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${xv(e)}`), !0; + if (function(e) { + if (e.type) return !1; + if (!e.exception || !e.exception.values || 0 === e.exception.values.length) return !1; + return !e.message && !e.exception.values.some((e => e.stacktrace || e.type && "Error" !== e.type || e.value)) + }(e)) return Py && Jg.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${xv(e)}`), !0; + if (function(e, t) { + if ("transaction" !== e.type || !t || !t.length) return !1; + const n = e.transaction; + return !!n && rv(n, t) + }(e, t.ignoreTransactions)) return Py && Jg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${xv(e)}`), !0; + if (function(e, t) { + if (!t || !t.length) return !1; + const n = zO(e); + return !!n && rv(n, t) + }(e, t.denyUrls)) return Py && Jg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${xv(e)}.\nUrl: ${zO(e)}`), !0; + if (! function(e, t) { + if (!t || !t.length) return !0; + const n = zO(e); + return !n || rv(n, t) + }(e, t.allowUrls)) return Py && Jg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${xv(e)}.\nUrl: ${zO(e)}`), !0; + return !1 + }(t, a) ? null : t + } + }); - function dw(e, t = !1) { + function zO(e) { + try { + let n; + try { + n = e.exception.values[0].stacktrace.frames + } catch (t) {} + return n ? function(e = []) { + for (let t = e.length - 1; t >= 0; t--) { + const n = e[t]; + if (n && "" !== n.filename && "[native code]" !== n.filename) return n.filename || null + } + return null + }(n) : null + } catch (_u) { + return Py && Jg.error(`Cannot extract url for event ${xv(e)}`), null + } + } + let VO; + const UO = new WeakMap, + BO = () => ({ + name: "FunctionToString", + setupOnce() { + VO = Function.prototype.toString; + try { + Function.prototype.toString = function(...e) { + const t = sv(this), + n = UO.has(Xv()) && void 0 !== t ? t : this; + return VO.apply(n, e) + } + } catch (e) {} + }, + setup(e) { + UO.set(e, !0) + } + }), + GO = () => { + let e; + return { + name: "Dedupe", + processEvent(t) { + if (t.type) return t; + 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 (!qO(e, t)) return !1; + if (!$O(e, t)) return !1; + return !0 + }(e, t)) return !0; + if (function(e, t) { + const n = WO(t), + r = WO(e); + if (!n || !r) return !1; + if (n.type !== r.type || n.value !== r.value) return !1; + if (!qO(e, t)) return !1; + if (!$O(e, t)) return !1; + return !0 + }(e, t)) return !0; + return !1 + }(t, e)) return Py && Jg.warn("Event dropped due to being a duplicate of previously captured event."), null + } catch (n) {} + return e = t + } + } + }; + + function $O(e, t) { + let n = qy(e), + r = qy(t); + if (!n && !r) return !0; + if (n && !r || !n && r) return !1; + if (r.length !== n.length) return !1; + for (let i = 0; i < r.length; i++) { + const e = r[i], + t = n[i]; + if (e.filename !== t.filename || e.lineno !== t.lineno || e.colno !== t.colno || e.function !== t.function) return !1 + } + return !0 + } + + function qO(e, t) { + let n = e.fingerprint, + r = t.fingerprint; + if (!n && !r) return !0; + if (n && !r || !n && r) return !1; + try { + return !(n.join("") !== r.join("")) + } catch (i) { + return !1 + } + } + + function WO(e) { + return e.exception && e.exception.values && e.exception.values[0] + } + + function HO(e, t) { + !0 === t.debug && (Py ? Jg.enable() : Xg((() => { + console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.") + }))); + Yv().update(t.initialScope); + const n = new e(t); + return function(e) { + Yv().setClient(e) + }(n), n.init(), n + } + + function KO(e) { + const t = e.protocol ? `${e.protocol}:` : "", + n = e.port ? `:${e.port}` : ""; + return `${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/` + } + + function YO(e, t) { + return n = { + sentry_key: e.publicKey, + sentry_version: "7", + ...t && { + sentry_client: `${t.name}/${t.version}` + } + }, Object.keys(n).map((e => `${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&"); + var n + } + + function QO(e, t, n) { + return t || `${function(e){return`${KO(e)}${e.projectId}/envelope/`}(e)}?${YO(e,n)}` + } + const ZO = "Not capturing exception because it's already been captured."; + class XO { + constructor(e) { + if (this._options = e, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], e.dsn ? this._dsn = jy(e.dsn) : Py && Jg.warn("No DSN provided, client will not send events."), this._dsn) { + const t = QO(this._dsn, e.tunnel, e._metadata ? e._metadata.sdk : void 0); + this._transport = e.transport({ + tunnel: this._options.tunnel, + recordDroppedEvent: this.recordDroppedEvent.bind(this), + ...e.transportOptions, + url: t + }) + } + } + captureException(e, t, n) { + const r = _v(); + if (Sv(e)) return Py && Jg.log(ZO), r; + const i = { + event_id: r, + ...t + }; + return this._process(this.eventFromException(e, i).then((e => this._captureEvent(e, i, n)))), i.event_id + } + captureMessage(e, t, n, r) { + const i = { + event_id: _v(), + ...n + }, + a = Lg(e) ? e : String(e), + o = Ng(e) ? this.eventFromMessage(a, t, i) : this.eventFromException(e, i); + return this._process(o.then((e => this._captureEvent(e, i, r)))), i.event_id + } + captureEvent(e, t, n) { + const r = _v(); + if (t && t.originalException && Sv(t.originalException)) return Py && Jg.log(ZO), r; + const i = { + event_id: r, + ...t + }, + a = (e.sdkProcessingMetadata || {}).capturedSpanScope; + return this._process(this._captureEvent(e, i, a || n)), i.event_id + } + captureSession(e) { + "string" !== typeof e.release ? Py && Jg.warn("Discarded session because of missing or non-string release") : (this.sendSession(e), Mv(e, { + init: !1 + })) + } + getDsn() { + return this._dsn + } + getOptions() { + return this._options + } + getSdkMetadata() { + return this._options._metadata + } + getTransport() { + return this._transport + } + flush(e) { + const t = this._transport; + return t ? (this.emit("flush"), this._isClientDoneProcessing(e).then((n => t.flush(e).then((e => n && e))))) : lx(!0) + } + close(e) { + return this.flush(e).then((e => (this.getOptions().enabled = !1, this.emit("close"), e))) + } + getEventProcessors() { + return this._eventProcessors + } + addEventProcessor(e) { + this._eventProcessors.push(e) + } + init() { + (this._isEnabled() || this._options.integrations.some((({ + name: e + }) => e.startsWith("Spotlight")))) && this._setupIntegrations() + } + getIntegrationByName(e) { + return this._integrations[e] + } + addIntegration(e) { + const t = this._integrations[e.name]; + SO(this, e, this._integrations), t || wO(this, [e]) + } + sendEvent(e, t = {}) { + this.emit("beforeSendEvent", e, t); + let n = function(e, t, n, r) { + const i = i_(n), + a = e.type && "replay_event" !== e.type ? 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 || []]) + }(e, n && n.sdk); + const o = a_(e, i, r, t); + return delete e.sdkProcessingMetadata, Yy(o, [ + [{ + type: a + }, e] + ]) + }(e, this._dsn, this._options._metadata, this._options.tunnel); + for (const i of t.attachments || []) n = Qy(n, t_(i)); + const r = this.sendEnvelope(n); + r && r.then((t => this.emit("afterSendEvent", e, t)), null) + } + sendSession(e) { + const t = function(e, t, n, r) { + const i = i_(n); + return Yy({ + sent_at: (new Date).toISOString(), + ...i && { + sdk: i + }, + ...!!r && t && { + dsn: Ly(t) + } + }, ["aggregates" in e ? [{ + type: "sessions" + }, e] : [{ + type: "session" + }, e.toJSON()]]) + }(e, this._dsn, this._options._metadata, this._options.tunnel); + this.sendEnvelope(t) + } + recordDroppedEvent(e, t, n) { + if (this._options.sendClientReports) { + const r = "number" === typeof n ? n : 1, + i = `${e}:${t}`; + Py && Jg.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`), this._outcomes[i] = (this._outcomes[i] || 0) + r + } + } + on(e, t) { + const n = this._hooks[e] = this._hooks[e] || []; + return n.push(t), () => { + const e = n.indexOf(t); + e > -1 && n.splice(e, 1) + } + } + emit(e, ...t) { + const n = this._hooks[e]; + n && n.forEach((e => e(...t))) + } + sendEnvelope(e) { + return this.emit("beforeEnvelope", e), this._isEnabled() && this._transport ? this._transport.send(e).then(null, (e => (Py && Jg.error("Error while sending event:", e), e))) : (Py && Jg.error("Transport disabled"), lx({})) + } + _setupIntegrations() { + const { + integrations: e + } = this._options; + this._integrations = function(e, t) { + const n = {}; + return t.forEach((t => { + t && SO(e, t, n) + })), n + }(this, e), wO(this, e) + } + _updateSessionFromEvent(e, t) { + let n = !1, + r = !1; + const i = t.exception && t.exception.values; + if (i) { + r = !0; + for (const e of i) { + const t = e.mechanism; + if (t && !1 === t.handled) { + n = !0; + break + } + } + } + const a = "ok" === e.status; + (a && 0 === e.errors || a && n) && (Mv(e, { + ...n && { + status: "crashed" + }, + errors: e.errors || Number(r || n) + }), this.captureSession(e)) + } + _isClientDoneProcessing(e) { + return new ux((t => { + let n = 0; + const r = setInterval((() => { + 0 == this._numProcessing ? (clearInterval(r), t(!0)) : (n += 1, e && n >= e && (clearInterval(r), t(!1))) + }), 1) + })) + } + _isEnabled() { + return !1 !== this.getOptions().enabled && void 0 !== this._transport + } + _prepareEvent(e, t, n, r = Qv()) { + const i = this.getOptions(), + a = Object.keys(this._integrations); + return !t.integrations && a.length > 0 && (t.integrations = a), this.emit("preprocessEvent", e, t), e.type || r.setLastEventId(e.event_id || t.event_id), mx(i, e, t, n, this, r).then((e => { + if (null === e) return e; + const t = { + ...r.getPropagationContext(), + ...n ? n.getPropagationContext() : void 0 + }; + if (!(e.contexts && e.contexts.trace) && t) { + const { + traceId: n, + spanId: r, + parentSpanId: i, + dsc: a + } = t; + e.contexts = { + trace: dv({ + trace_id: n, + span_id: r, + parent_span_id: i + }), + ...e.contexts + }; + const o = a || Cy(n, this); + e.sdkProcessingMetadata = { + dynamicSamplingContext: o, + ...e.sdkProcessingMetadata + } + } + return e + })) + } + _captureEvent(e, t = {}, n) { + return this._processEvent(e, t, n).then((e => e.event_id), (e => { + if (Py) { + const t = e; + "log" === t.logLevel ? Jg.log(t.message) : Jg.warn(t) + } + })) + } + _processEvent(e, t, n) { + const r = this.getOptions(), + { + sampleRate: i + } = r, + a = eI(e), + o = JO(e), + s = e.type || "error", + l = `before send for type \`${s}\``, + c = "undefined" === typeof i ? void 0 : Ty(i); + if (o && "number" === typeof c && Math.random() > c) return this.recordDroppedEvent("sample_rate", "error", e), cx(new RO(`Discarding event because it's not included in the random sample (sampling rate = ${i})`, "log")); + const u = "replay_event" === s ? "replay" : s, + d = (e.sdkProcessingMetadata || {}).capturedSpanIsolationScope; + return this._prepareEvent(e, t, n, d).then((n => { + if (null === n) throw this.recordDroppedEvent("event_processor", u, e), new RO("An event processor returned `null`, will not send event.", "log"); + if (t.data && !0 === t.data.__sentry__) return n; + const i = function(e, t, n, r) { + const { + beforeSend: i, + beforeSendTransaction: a, + beforeSendSpan: o + } = t; + if (JO(n) && i) return i(n, r); + if (eI(n)) { + if (n.spans && o) { + const t = []; + for (const r of n.spans) { + const n = o(r); + n ? t.push(n) : e.recordDroppedEvent("before_send", "span") + } + n.spans = t + } + if (a) { + if (n.spans) { + const e = n.spans.length; + n.sdkProcessingMetadata = { + ...n.sdkProcessingMetadata, + spanCountBeforeProcessing: e + } + } + return a(n, r) + } + } + return n + }(this, r, n, t); + return function(e, t) { + const n = `${t} must return \`null\` or a valid event.`; + if (Fg(e)) return e.then((e => { + if (!jg(e) && null !== e) throw new RO(n); + return e + }), (e => { + throw new RO(`${t} rejected with ${e}`) + })); + if (!jg(e) && null !== e) throw new RO(n); + return e + }(i, l) + })).then((r => { + if (null === r) { + if (this.recordDroppedEvent("before_send", u, e), a) { + const t = 1 + (e.spans || []).length; + this.recordDroppedEvent("before_send", "span", t) + } + throw new RO(`${l} returned \`null\`, will not send event.`, "log") + } + const i = n && n.getSession(); + if (!a && i && this._updateSessionFromEvent(i, r), a) { + const e = (r.sdkProcessingMetadata && r.sdkProcessingMetadata.spanCountBeforeProcessing || 0) - (r.spans ? r.spans.length : 0); + e > 0 && this.recordDroppedEvent("before_send", "span", e) + } + const o = r.transaction_info; + if (a && o && r.transaction !== e.transaction) { + const e = "custom"; + r.transaction_info = { + ...o, + source: e + } + } + return this.sendEvent(r, t), r + })).then(null, (e => { + if (e instanceof RO) throw e; + throw this.captureException(e, { + data: { + __sentry__: !0 + }, + originalException: e + }), new RO(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`) + })) + } + _process(e) { + this._numProcessing++, e.then((e => (this._numProcessing--, e)), (e => (this._numProcessing--, e))) + } + _clearOutcomes() { + const e = this._outcomes; + return this._outcomes = {}, Object.entries(e).map((([e, t]) => { + const [n, r] = e.split(":"); + return { + reason: n, + category: r, + quantity: t + } + })) + } + _flushOutcomes() { + Py && Jg.log("Flushing outcomes..."); + const e = this._clearOutcomes(); + if (0 === e.length) return void(Py && Jg.log("No outcomes to send")); + if (!this._dsn) return void(Py && Jg.log("No dsn provided, will not send outcomes")); + Py && Jg.log("Sending outcomes:", e); + const t = (n = e, Yy((r = this._options.tunnel && Ly(this._dsn)) ? { + dsn: r + } : {}, [ + [{ + type: "client_report" + }, { + timestamp: i || Av(), + discarded_events: n + }] + ])); + var n, r, i; + this.sendEnvelope(t) + } + } + + function JO(e) { + return void 0 === e.type + } + + function eI(e) { + return "transaction" === e.type + } + + function tI(e, t) { + const n = iI(e, t), + r = { + type: t && t.name, + value: oI(t) + }; + return n.length && (r.stacktrace = { + frames: n + }), void 0 === r.type && "" === r.value && (r.value = "Unrecoverable error caught"), r + } + + function nI(e, t, n, r) { + const i = Xv(), + a = i && i.getOptions().normalizeDepth, + o = function(e) { + for (const t in e) + if (Object.prototype.hasOwnProperty.call(e, t)) { + const n = e[t]; + if (n instanceof Error) return n + } return + }(t), + s = { + __serialized__: Hy(t, a) + }; + if (o) return { + exception: { + values: [tI(e, o)] + }, + extra: s + }; + const l = { + exception: { + values: [{ + type: Mg(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error", + value: cI(t, { + isUnhandledRejection: r + }) + }] + }, + extra: s + }; + if (n) { + const t = iI(e, n); + t.length && (l.exception.values[0].stacktrace = { + frames: t + }) + } + return l + } + + function rI(e, t) { + return { + exception: { + values: [tI(e, t)] + } + } + } + + function iI(e, t) { + const n = t.stacktrace || t.stack || "", + r = function(e) { + if (e && aI.test(e.message)) return 1; + return 0 + }(t), + i = function(e) { + if ("number" === typeof e.framesToPop) return e.framesToPop; + return 0 + }(t); + try { + return e(n, r, i) + } catch (a) {} + return [] + } + const aI = /Minified React error #\d+;/i; + + function oI(e) { + const t = e && e.message; + return t ? t.error && "string" === typeof t.error.message ? t.error.message : t : "No error message" + } + + function sI(e, t, n, r, i) { + let a; + if (Tg(t) && t.error) { + return rI(e, t.error) + } + if (Rg(t) || Pg(t, "DOMException")) { + const i = t; + if ("stack" in t) a = rI(e, t); + else { + const t = i.name || (Rg(i) ? "DOMError" : "DOMException"), + o = i.message ? `${t}: ${i.message}` : t; + a = lI(e, o, n, r), kv(a, o) + } + return "code" in i && (a.tags = { + ...a.tags, + "DOMException.code": `${i.code}` + }), a + } + if (Ag(t)) return rI(e, t); + if (jg(t) || Mg(t)) { + return a = nI(e, t, n, i), wv(a, { + synthetic: !0 + }), a + } + return a = lI(e, t, n, r), kv(a, `${t}`, void 0), wv(a, { + synthetic: !0 + }), a + } + + function lI(e, t, n, r) { + const i = {}; + if (r && n) { + const r = iI(e, n); + r.length && (i.exception = { + values: [{ + value: t, + stacktrace: { + frames: r + } + }] + }) + } + if (Lg(t)) { + const { + __sentry_template_string__: e, + __sentry_template_values__: n + } = t; + return i.logentry = { + message: e, + params: n + }, i + } + return i.message = t, i + } + + function cI(e, { + isUnhandledRejection: t + }) { + const n = function(e, t = 40) { + const n = Object.keys(lv(e)); + n.sort(); + const r = n[0]; + if (!r) return "[object has no keys]"; + if (r.length >= t) return ev(r, t); + for (let i = n.length; i > 0; i--) { + const e = n.slice(0, i).join(", "); + if (!(e.length > t)) return i === n.length ? e : ev(e, t) + } + return "" + }(e), + r = t ? "promise rejection" : "exception"; + if (Tg(e)) return `Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``; + if (Mg(e)) { + return `Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}(e)}\` (type=${e.type}) captured as ${r}` + } + return `Object captured as ${r} with keys: ${n}` + } + class uI extends XO { + constructor(e) { + const t = { + parentSpanIsAlwaysRootSpan: !0, + ...e + }; + ! function(e, t, n = [t], r = "npm") { + const i = e._metadata || {}; + i.sdk || (i.sdk = { + name: `sentry.javascript.${t}`, + packages: n.map((e => ({ + name: `${r}:@sentry/${e}`, + version: Ug + }))), + version: Ug + }), e._metadata = i + }(t, "browser", ["browser"], Ex.SENTRY_SDK_SOURCE || "npm"), super(t), t.sendClientReports && Ex.document && Ex.document.addEventListener("visibilitychange", (() => { + "hidden" === Ex.document.visibilityState && this._flushOutcomes() + })) + } + eventFromException(e, t) { + return function(e, t, n, r) { + const i = sI(e, t, n && n.syntheticException || void 0, r); + return wv(i), i.level = "error", n && n.event_id && (i.event_id = n.event_id), lx(i) + }(this._options.stackParser, e, t, this._options.attachStacktrace) + } + eventFromMessage(e, t = "info", n) { + return function(e, t, n = "info", r, i) { + const a = lI(e, t, r && r.syntheticException || void 0, i); + return a.level = n, r && r.event_id && (a.event_id = r.event_id), lx(a) + }(this._options.stackParser, e, t, n, this._options.attachStacktrace) + } + captureUserFeedback(e) { + if (!this._isEnabled()) return void(ox && Jg.warn("SDK not enabled, will not capture user feedback.")); + const t = function(e, { + metadata: t, + tunnel: n, + dsn: r + }) { + const i = { + event_id: e.event_id, + sent_at: (new Date).toISOString(), + ...t && t.sdk && { + sdk: { + name: t.sdk.name, + version: t.sdk.version + } + }, + ...!!n && !!r && { + dsn: Ly(r) + } + }, + a = function(e) { + return [{ + type: "user_report" + }, e] + }(e); + return Yy(i, [a]) + }(e, { + metadata: this.getSdkMetadata(), + dsn: this.getDsn(), + tunnel: this.getOptions().tunnel + }); + this.sendEnvelope(t) + } + _prepareEvent(e, t, n) { + return e.platform = e.platform || "javascript", super._prepareEvent(e, t, n) + } + } + + function dI() { + "console" in Bg && Qg.forEach((function(e) { + e in Bg.console && iv(Bg.console, e, (function(t) { + return Zg[e] = t, + function(...t) { + qb("console", { + args: t, + level: e + }); + const n = Zg[e]; + n && n.apply(Bg.console, t) + } + })) + })) + } + + function pI(e) { + return void 0 === e ? void 0 : e >= 400 && e < 500 ? "warning" : e >= 500 ? "error" : void 0 + } + const hI = 1024, + fI = (e = {}) => { + const t = { + console: !0, + dom: !0, + fetch: !0, + history: !0, + sentry: !0, + xhr: !0, + ...e + }; + return { + name: "Breadcrumbs", + setup(e) { + t.console && function(e) { + const t = "console"; + Gb(t, e), $b(t, dI) + }(function(e) { + return function(t) { + if (Xv() !== e) return; + const n = { + category: "console", + data: { + arguments: t.args, + logger: "console" + }, + level: nk(t.level), + message: tv(t.args, " ") + }; + if ("assert" === t.level) { + if (!1 !== t.args[0]) return; + n.message = `Assertion failed: ${tv(t.args.slice(1)," ")||"console.assert"}`, n.data.arguments = t.args.slice(1) + } + Xx(n, { + input: t.args, + level: t.level + }) + } + }(e)), t.dom && fk(function(e, t) { + return function(n) { + if (Xv() !== e) return; + let r, i, a = "object" === typeof t ? t.serializeAttribute : void 0, + o = "object" === typeof t && "number" === typeof t.maxStringLength ? t.maxStringLength : void 0; + o && o > hI && (ox && Jg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`), o = hI), "string" === typeof a && (a = [a]); + try { + const e = n.event, + t = function(e) { + return !!e && !!e.target + }(e) ? e.target : e; + r = qg(t, { + keyAttrs: a, + maxStringLength: o + }), i = Kg(t) + } catch (l) { + r = "" + } + if (0 === r.length) return; + const s = { + category: `ui.${n.name}`, + message: r + }; + i && (s.data = { + "ui.component_name": i + }), Xx(s, { + event: n.event, + name: n.name, + global: n.global + }) + } + }(e, t.dom)), t.xhr && Tx(function(e) { + return function(t) { + if (Xv() !== e) return; + const { + startTimestamp: n, + endTimestamp: r + } = t, i = t.xhr[Px]; + if (!n || !r || !i) return; + const { + method: a, + url: o, + status_code: s, + body: l + } = i, c = { + method: a, + url: o, + status_code: s + }, u = { + xhr: t.xhr, + input: l, + startTimestamp: n, + endTimestamp: r + }; + Xx({ + category: "xhr", + data: c, + type: "http", + level: pI(s) + }, u) + } + }(e)), t.fetch && Mx(function(e) { + return function(t) { + if (Xv() !== e) return; + const { + startTimestamp: n, + endTimestamp: r + } = t; + if (r && (!t.fetchData.url.match(/sentry_key/) || "POST" !== t.fetchData.method)) + if (t.error) { + Xx({ + category: "fetch", + data: t.fetchData, + level: "error", + type: "http" + }, { + data: t.error, + input: t.args, + startTimestamp: n, + endTimestamp: r + }) + } else { + const e = t.response, + i = { + ...t.fetchData, + status_code: e && e.status + }, + a = { + input: t.args, + response: e, + startTimestamp: n, + endTimestamp: r + }; + Xx({ + category: "fetch", + data: i, + type: "http", + level: pI(i.status_code) + }, a) + } + } + }(e)), t.history && Kb(function(e) { + return function(t) { + if (Xv() !== e) return; + let n = t.from, + r = t.to; + const i = x_(Ex.location.href); + let a = n ? x_(n) : void 0; + const o = x_(r); + a && a.path || (a = i), i.protocol === o.protocol && i.host === o.host && (r = o.relative), i.protocol === a.protocol && i.host === a.host && (n = a.relative), Xx({ + category: "navigation", + data: { + from: n, + to: r + } + }) + } + }(e)), t.sentry && e.on("beforeSendEvent", function(e) { + return function(t) { + Xv() === e && Xx({ + category: "sentry." + ("transaction" === t.type ? "transaction" : "event"), + event_id: t.event_id, + level: t.level, + message: xv(t) + }, { + event: t + }) + } + }(e)) + } + } + }; + const mI = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "BroadcastChannel", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "SharedWorker", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"], + gI = (e = {}) => { + const t = { + XMLHttpRequest: !0, + eventTarget: !0, + requestAnimationFrame: !0, + setInterval: !0, + setTimeout: !0, + ...e + }; + return { + name: "BrowserApiErrors", + setupOnce() { + t.setTimeout && iv(Ex, "setTimeout", vI), t.setInterval && iv(Ex, "setInterval", vI), t.requestAnimationFrame && iv(Ex, "requestAnimationFrame", yI), t.XMLHttpRequest && "XMLHttpRequest" in Ex && iv(XMLHttpRequest.prototype, "send", _I); + const e = t.eventTarget; + if (e) { + (Array.isArray(e) ? e : mI).forEach(bI) + } + } + } + }; + + function vI(e) { + return function(...t) { + const n = t[0]; + return t[0] = Ax(n, { + mechanism: { + data: { + function: $y(e) + }, + handled: !1, + type: "instrument" + } + }), e.apply(this, t) + } + } + + function yI(e) { + return function(t) { + return e.apply(this, [Ax(t, { + mechanism: { + data: { + function: "requestAnimationFrame", + handler: $y(e) + }, + handled: !1, + type: "instrument" + } + })]) + } + } + + function _I(e) { + return function(...t) { + const n = this; + return ["onload", "onerror", "onprogress", "onreadystatechange"].forEach((e => { + e in n && "function" === typeof n[e] && iv(n, e, (function(t) { + const n = { + mechanism: { + data: { + function: e, + handler: $y(t) + }, + handled: !1, + type: "instrument" + } + }, + r = sv(t); + return r && (n.mechanism.data.handler = $y(r)), Ax(t, n) + })) + })), e.apply(this, t) + } + } + + function bI(e) { + const t = Ex, + n = t[e] && t[e].prototype; + n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (iv(n, "addEventListener", (function(t) { + return function(n, r, i) { + try { + "function" === typeof r.handleEvent && (r.handleEvent = Ax(r.handleEvent, { + mechanism: { + data: { + function: "handleEvent", + handler: $y(r), + target: e + }, + handled: !1, + type: "instrument" + } + })) + } catch (sF) {} + return t.apply(this, [n, Ax(r, { + mechanism: { + data: { + function: "addEventListener", + handler: $y(r), + target: e + }, + handled: !1, + type: "instrument" + } + }), i]) + } + })), iv(n, "removeEventListener", (function(e) { + return function(t, n, r) { + const i = n; + try { + const n = i && i.__sentry_wrapped__; + n && e.call(this, t, n, r) + } catch (a) {} + return e.call(this, t, i, r) + } + }))) + } + const xI = (e = {}) => { + const t = { + onerror: !0, + onunhandledrejection: !0, + ...e + }; + return { + name: "GlobalHandlers", + setupOnce() { + Error.stackTraceLimit = 50 + }, + setup(e) { + t.onerror && (! function(e) { + Jb((t => { + const { + stackParser: n, + attachStacktrace: r + } = wI(); + if (Xv() !== e || Ix()) return; + const { + msg: i, + url: a, + line: o, + column: s, + error: l + } = t, c = function(e, t, n, r) { + const i = e.exception = e.exception || {}, + a = i.values = i.values || [], + o = a[0] = a[0] || {}, + s = o.stacktrace = o.stacktrace || {}, + l = s.frames = s.frames || [], + c = isNaN(parseInt(r, 10)) ? void 0 : r, + u = isNaN(parseInt(n, 10)) ? void 0 : n, + d = Dg(t) && t.length > 0 ? t : Hg(); + 0 === l.length && l.push({ + colno: c, + filename: d, + function: My, + in_app: !0, + lineno: u + }); + return e + }(sI(n, l || i, void 0, r, !1), a, o, s); + c.level = "error", bx(c, { + originalException: l, + mechanism: { + handled: !1, + type: "onerror" + } + }) + })) + }(e), kI("onerror")), t.onunhandledrejection && (! function(e) { + nx((t => { + const { + stackParser: n, + attachStacktrace: r + } = wI(); + if (Xv() !== e || Ix()) return; + const i = function(e) { + if (Ng(e)) return e; + try { + if ("reason" in e) return e.reason; + if ("detail" in e && "reason" in e.detail) return e.detail.reason + } catch (t) {} + return e + }(t), + a = Ng(i) ? { + exception: { + values: [{ + type: "UnhandledRejection", + value: `Non-Error promise rejection captured with value: ${String(i)}` + }] + } + } : sI(n, i, void 0, r, !0); + a.level = "error", bx(a, { + originalException: i, + mechanism: { + handled: !1, + type: "onunhandledrejection" + } + }) + })) + }(e), kI("onunhandledrejection")) + } + } + }; + + function kI(e) { + ox && Jg.log(`Global Handler attached: ${e}`) + } + + function wI() { + const e = Xv(); + return e && e.getOptions() || { + stackParser: () => [], + attachStacktrace: !1 + } + } + const SI = () => ({ + name: "HttpContext", + preprocessEvent(e) { + if (!Ex.navigator && !Ex.location && !Ex.document) return; + const t = e.request && e.request.url || Ex.location && Ex.location.href, + { + referrer: n + } = Ex.document || {}, + { + userAgent: r + } = Ex.navigator || {}, + i = { + ...e.request && e.request.headers, + ...n && { + Referer: n + }, + ...r && { + "User-Agent": r + } + }, + a = { + ...e.request, + ...t && { + url: t + }, + headers: i + }; + e.request = a + } + }); + + function EI(e, t, n = 250, r, i, a, o) { + if (!a.exception || !a.exception.values || !o || !zg(o.originalException, Error)) return; + const s = a.exception.values.length > 0 ? a.exception.values[a.exception.values.length - 1] : void 0; + var l, c; + s && (a.exception.values = (l = OI(e, t, i, o.originalException, r, a.exception.values, s, 0), c = n, l.map((e => (e.value && (e.value = ev(e.value, c)), e))))) + } + + function OI(e, t, n, r, i, a, o, s) { + if (a.length >= n + 1) return a; + let l = [...a]; + if (zg(r[i], Error)) { + II(o, s); + const a = e(t, r[i]), + c = l.length; + CI(a, i, c, s), l = OI(e, t, n, r[i], i, [a, ...l], a, c) + } + return Array.isArray(r.errors) && r.errors.forEach(((r, a) => { + if (zg(r, Error)) { + II(o, s); + const c = e(t, r), + u = l.length; + CI(c, `errors[${a}]`, u, s), l = OI(e, t, n, r, i, [c, ...l], c, u) + } + })), l + } + + function II(e, t) { + e.mechanism = e.mechanism || { + type: "generic", + handled: !0 + }, e.mechanism = { + ...e.mechanism, + ..."AggregateError" === e.type && { + is_exception_group: !0 + }, + exception_id: t + } + } + + function CI(e, t, n, r) { + e.mechanism = e.mechanism || { + type: "generic", + handled: !0 + }, e.mechanism = { + ...e.mechanism, + type: "chained", + source: t, + exception_id: n, + parent_id: r + } + } + const AI = (e = {}) => { + const t = e.limit || 5, + n = e.key || "cause"; + return { + name: "LinkedErrors", + preprocessEvent(e, r, i) { + const a = i.getOptions(); + EI(tI, a.stackParser, a.maxValueLength, n, t, e, r) + } + } + }; + + function PI(e, t, n, r) { + const i = { + filename: e, + function: "" === t ? My : t, + in_app: !0 + }; + return void 0 !== n && (i.lineno = n), void 0 !== r && (i.colno = r), i + } + const TI = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, + RI = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, + DI = /\((\S*)(?::(\d+))(?::(\d+))\)/, + LI = [30, e => { + const t = TI.exec(e); + if (t) { + const [, e, n, r] = t; + return PI(e, My, +n, +r) + } + const n = RI.exec(e); + if (n) { + if (n[2] && 0 === n[2].indexOf("eval")) { + const e = DI.exec(n[2]); + e && (n[2] = e[1], n[3] = e[2], n[4] = e[3]) + } + const [e, t] = FI(n[1] || My, n[2]); + return PI(t, e, n[3] ? +n[3] : void 0, n[4] ? +n[4] : void 0) + } + }], + NI = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, + jI = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, + MI = Vy(...[LI, [50, e => { + const t = NI.exec(e); + if (t) { + if (t[3] && t[3].indexOf(" > eval") > -1) { + const e = jI.exec(t[3]); + e && (t[1] = t[1] || "eval", t[3] = e[1], t[4] = e[2], t[5] = "") + } + let e = t[3], + n = t[1] || My; + return [n, e] = FI(n, e), PI(e, n, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0) + } + }]]), + FI = (e, t) => { + const n = -1 !== e.indexOf("safari-extension"), + r = -1 !== e.indexOf("safari-web-extension"); + return n || r ? [-1 !== e.indexOf("@") ? e.split("@")[0] : My, n ? `safari-extension:${t}` : `safari-web-extension:${t}`] : [e, t] + }; + + function zI(e, t = lk("fetch")) { + let n = 0, + r = 0; + return LO(e, (function(i) { + const a = i.body.length; + n += a, r++; + const o = { + body: i.body, + method: "POST", + referrerPolicy: "origin", + headers: e.headers, + keepalive: n <= 6e4 && r < 15, + ...e.fetchOptions + }; + if (!t) return ck("fetch"), cx("No fetch implementation available"); + try { + return t(e.url, o).then((e => (n -= a, r--, { + statusCode: e.status, + headers: { + "x-sentry-rate-limits": e.headers.get("X-Sentry-Rate-Limits"), + "retry-after": e.headers.get("Retry-After") + } + }))) + } catch (s) { + return ck("fetch"), n -= a, r--, cx(s) + } + })) + } + + function VI(e) { + return [FO(), BO(), gI(), fI(), xI(), AI(), GO(), SI()] + } + + function UI(e = {}) { + const t = function(e = {}) { + const t = { + defaultIntegrations: VI(), + release: "string" === typeof __SENTRY_RELEASE__ ? __SENTRY_RELEASE__ : Ex.SENTRY_RELEASE && Ex.SENTRY_RELEASE.id ? Ex.SENTRY_RELEASE.id : void 0, + autoSessionTracking: !0, + sendClientReports: !0 + }; + return null == e.defaultIntegrations && delete e.defaultIntegrations, { + ...t, + ...e + } + }(e); + if (function() { + const e = "undefined" !== typeof Ex.window && Ex; + if (!e) return !1; + const t = e[e.chrome ? "chrome" : "browser"], + n = t && t.runtime && t.runtime.id, + r = Ex.location && Ex.location.href || "", + i = !!n && Ex === Ex.top && ["chrome-extension:", "moz-extension:", "ms-browser-extension:", "safari-web-extension:"].some((e => r.startsWith(`${e}//`))), + a = "undefined" !== typeof e.nw; + return !!n && !i && !a + }()) return void Xg((() => { + console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/") + })); + ox && (Nx() || Jg.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")); + const n = { + ...t, + stackParser: (r = t.stackParser || MI, Array.isArray(r) ? Vy(...r) : r), + integrations: kO(t), + transport: t.transport || zI + }; + var r; + const i = HO(uI, n); + return t.autoSessionTracking && function() { + if ("undefined" === typeof Ex.document) return void(ox && Jg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")); + xx({ + ignoreDuration: !0 + }), Sx(), Kb((({ + from: e, + to: t + }) => { + void 0 !== e && e !== t && (xx({ + ignoreDuration: !0 + }), Sx()) + })) + }(), i + } + + function BI(e, t = !1) { return !(t || e && !e.startsWith("/") && !e.match(/^[A-Z]:/) && !e.startsWith(".") && !e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//)) && void 0 !== e && !e.includes("node_modules/") } - function pw(e) { + function GI(e) { const t = /^\s*[-]{4,}$/, n = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/; return r => { @@ -52087,16 +55932,16 @@ } a = void 0 } - n && (a = t, o = n), "" === n && (o = void 0, r = void 0), void 0 === r && (o = o || Vn, r = a ? `${a}.${o}` : o); + n && (a = t, o = n), "" === n && (o = void 0, r = void 0), void 0 === r && (o = o || My, r = a ? `${a}.${o}` : o); let s = i[2] && i[2].startsWith("file://") ? i[2].slice(7) : i[2]; const l = "native" === i[5]; return s && s.match(/\/[A-Z]:/) && (s = s.slice(1)), s || !i[5] || l || (s = i[5]), { filename: s, module: e ? e(s) : void 0, function: r, - lineno: hw(i[3]), - colno: hw(i[4]), - in_app: dw(s || "", l) + lineno: $I(i[3]), + colno: $I(i[4]), + in_app: BI(s || "", l) } } if (r.match(t)) return { @@ -52105,75 +55950,75 @@ } } - function hw(e) { + function $I(e) { return parseInt(e || "", 10) || void 0 } - const [, fw] = co, [, mw] = [90, pw(gw)]; - var gw; - const vw = (e, t = 0) => { + const [, qI] = LI, [, WI] = [90, GI(HI)]; + var HI; + const KI = (e, t = 0) => { const n = []; for (const r of e.split("\n").slice(t)) { - const e = fw(r), - t = mw(r); - if (e && !1 !== t?.in_app ? n.push(e) : t && n.push(cn(t)), n.length >= 50) break + const e = qI(r), + t = WI(r); + if (e && !1 !== t?.in_app ? n.push(e) : t && n.push(dv(t)), n.length >= 50) break } - return Wn(n) + return Uy(n) }; - var yw = n(2222), - _w = n(4499); - const bw = () => { + var YI = n(2222), + QI = n(4499); + const ZI = () => { var e; const { t: t } = bt("settingsPage"); - return (0, _w.jsx)(cg, { + return (0, QI.jsx)(Am, { title: t("settings_about_title"), - children: (0, _w.jsxs)(Ys, { + children: (0, QI.jsxs)(gs, { color: "foreground-weak", variant: "body-m", multiline: !0, - children: [(0, _w.jsx)("img", { - src: `${yw.configuration.assets.directory}/logos/cig-logo.svg`, + children: [(0, QI.jsx)("img", { + src: `${YI.configuration.assets.directory}/logos/cig-logo.svg`, alt: t("settings_about_logo_alt"), width: "120" - }), (0, _w.jsx)("p", { + }), (0, QI.jsx)("p", { children: t("settings_about_copyright", { year: (new Date).getFullYear() }) - }), (0, _w.jsx)("hr", {}), (0, _w.jsxs)("p", { - children: [(0, _w.jsx)("strong", { + }), (0, QI.jsx)("hr", {}), (0, QI.jsxs)("p", { + children: [(0, QI.jsx)("strong", { children: t("settings_about_launcher_version") - }), " ", null !== (e = "2.0.6") ? e : "\u2013"] + }), " ", null !== (e = "2.1.0") ? e : "\u2013"] })] }) }) }, - xw = e => ({ + XI = e => ({ ...e, media: void 0 }), - kw = e => ({ + JI = e => ({ ...e, publish_start: void 0, time_created: void 0 }), - ww = (e, t) => { + eC = (e, t) => { const n = new Date(e.publish_start || 0).getTime(); return new Date(t.publish_start || 0).getTime() - n }, - Sw = (e, t) => (e.weight || 0) - (t.weight || 0), - Ew = (e, t) => e.weight - t.weight, - Iw = e => ({ + tC = (e, t) => (e.weight || 0) - (t.weight || 0), + nC = (e, t) => e.weight - t.weight, + rC = e => ({ ...e, publish_start: e.publish_start ? e.publish_start + " UTC" : void 0, time_created: e.time_created ? e.time_created + " UTC" : void 0 }), - Ow = (e, t = "div") => (0, Ee.createElement)(t, { + iC = (e, t = "div") => (0, Ee.createElement)(t, { dangerouslySetInnerHTML: { __html: e } }), - Cw = { + aC = { year: 31536e6, month: 2628e6, day: 864e5, @@ -52181,8 +56026,8 @@ minute: 6e4, second: 1e3 }, - Aw = (e, t) => e + (Math.floor(Math.random() * t) + 1), - Pw = (e, t = "short", { + oC = (e, t) => e + (Math.floor(Math.random() * t) + 1), + sC = (e, t = "short", { showTime: n = !0, ...r } = {}) => { @@ -52200,7 +56045,7 @@ case "relative": return ((e, t = new Date, n = {}) => { const r = e.getTime() - t.getTime(); - for (const [i, a] of Object.entries(Cw)) + for (const [i, a] of Object.entries(aC)) if (Math.abs(r) > a || "second" === i) return new Intl.RelativeTimeFormat("default", { numeric: "auto", localeMatcher: "lookup", @@ -52209,299 +56054,299 @@ })(i, new Date, r) } }, - Tw = e => { + lC = e => { if ("string" === typeof e || "number" === typeof e) return e.toString(); if (!(0, Ee.isValidElement)(e)) return ""; if ("function" === typeof e.type && e.type.prototype instanceof Ee.Component) { const t = new e.type(e.props).render(); - return Tw(t) + return lC(t) } if ("function" === typeof e.type) { const t = e.type(e.props); - return Tw(t) + return lC(t) } const { children: t } = e.props; - return Array.isArray(t) ? t.map((e => Tw(e))).join("") : Tw(t) + return Array.isArray(t) ? t.map((e => lC(e))).join("") : lC(t) }, - Rw = () => window.launcherAPI, - Dw = (e, t) => t.find((({ + cC = () => window.launcherAPI, + uC = (e, t) => t.find((({ id: t }) => t === e)), - Lw = e => { + dC = e => { let t = e; return t.includes("\\\\") && (t = t.replace("\\\\", "\\")), t.endsWith("\\") || (t = `${t}\\`), t }, - Nw = 2e3, - Mw = { - [yw.RSISystemStatus.MAJOR]: "negative", - [yw.RSISystemStatus.PARTIAL]: "notice", - [yw.RSISystemStatus.DEGRADED]: "highlight", - [yw.RSISystemStatus.MAINTENANCE]: "neutral", - [yw.RSISystemStatus.OPERATIONAL]: "positive" + pC = 2e3, + hC = { + [YI.RSISystemStatus.MAJOR]: "negative", + [YI.RSISystemStatus.PARTIAL]: "notice", + [YI.RSISystemStatus.DEGRADED]: "highlight", + [YI.RSISystemStatus.MAINTENANCE]: "neutral", + [YI.RSISystemStatus.OPERATIONAL]: "positive" }, - jw = e => Mw[e], - Fw = "1000", - zw = "1001", - Vw = "1002", - Uw = "1003", - Bw = "1004", - Gw = "1005", - Ww = "1006", - $w = "1007", - qw = "1008", - Hw = "1009", - Kw = "1010", - Yw = "1011", - Qw = "1012", - Zw = "1013", - Xw = "1014", - Jw = "1015", - eS = "1016", - tS = "1017", - nS = "1018", - rS = "1019", - iS = "1020", - aS = "1021", - oS = "1022", - sS = "ErrWrongPassword_email", - lS = "ErrMultiStepRequired", - cS = "ErrMultiStepWrongCode", - uS = "ErrNotAuthenticated", - dS = "ErrClaimsInvalid", - pS = "ErrMaxThrottleLogin", - hS = "errAuthExpired", - fS = "ErrCaptchaRequiredLauncher", - mS = "ErrInvalidChallengeCode", - gS = "ErrDeprecatedApi", - vS = "ErrAgreementsRequired", - yS = "ErrExpiredToken", - _S = "ErrToken", - bS = "ErrNoGamePackage", - xS = "ErrValidationFailed", - kS = "ErrAccountNotFound"; - class wS extends Error { + fC = e => hC[e], + mC = "1000", + gC = "1001", + vC = "1002", + yC = "1003", + _C = "1004", + bC = "1005", + xC = "1006", + kC = "1007", + wC = "1008", + SC = "1009", + EC = "1010", + OC = "1011", + IC = "1012", + CC = "1013", + AC = "1014", + PC = "1015", + TC = "1016", + RC = "1017", + DC = "1018", + LC = "1019", + NC = "1020", + jC = "1021", + MC = "1022", + FC = "ErrWrongPassword_email", + zC = "ErrMultiStepRequired", + VC = "ErrMultiStepWrongCode", + UC = "ErrNotAuthenticated", + BC = "ErrClaimsInvalid", + GC = "ErrMaxThrottleLogin", + $C = "errAuthExpired", + qC = "ErrCaptchaRequiredLauncher", + WC = "ErrInvalidChallengeCode", + HC = "ErrDeprecatedApi", + KC = "ErrAgreementsRequired", + YC = "ErrExpiredToken", + QC = "ErrToken", + ZC = "ErrNoGamePackage", + XC = "ErrValidationFailed", + JC = "ErrAccountNotFound"; + class eA extends Error { constructor({ message: e = "Unknown Error", - code: t = Fw, + code: t = mC, payload: n = null, environment: r }) { - super(e), this.code = void 0, this.payload = void 0, this.environment = void 0, Object.setPrototypeOf(this, wS.prototype), this.code = t, this.payload = n, this.environment = r, window.launcherAPI.log.error("Internal error:", t, n) + super(e), this.code = void 0, this.payload = void 0, this.environment = void 0, Object.setPrototypeOf(this, eA.prototype), this.code = t, this.payload = n, this.environment = r, window.launcherAPI.log.error("Internal error:", t, n) } } - class SS extends wS { + class tA extends eA { constructor(e, t, n) { super({ message: e, - code: Uw, + code: yC, payload: t, environment: n - }), Object.setPrototypeOf(this, SS.prototype) + }), Object.setPrototypeOf(this, tA.prototype) } } - class ES extends wS { + class nA extends eA { constructor(e, t = null, n) { super({ message: e, - code: Bw, + code: _C, payload: t, environment: n - }), Object.setPrototypeOf(this, ES.prototype) + }), Object.setPrototypeOf(this, nA.prototype) } } - class IS extends wS { + class rA extends eA { constructor(e, t = null, n) { super({ message: e, - code: Hw, + code: SC, payload: t, environment: n - }), Object.setPrototypeOf(this, IS.prototype) + }), Object.setPrototypeOf(this, rA.prototype) } } - class OS extends wS { + class iA extends eA { constructor(e, t = null, n) { super({ message: e, - code: $w, + code: kC, payload: t, environment: n - }), Object.setPrototypeOf(this, OS.prototype) + }), Object.setPrototypeOf(this, iA.prototype) } } - class CS extends wS { + class aA extends eA { constructor(e, t = null, n) { super({ message: e, - code: Ww, + code: xC, payload: t, environment: n - }), Object.setPrototypeOf(this, CS.prototype) + }), Object.setPrototypeOf(this, aA.prototype) } } - class AS extends wS { + class oA extends eA { constructor(e, t = null, n) { super({ message: e, - code: qw, + code: wC, payload: t, environment: n - }), Object.setPrototypeOf(this, AS.prototype) + }), Object.setPrototypeOf(this, oA.prototype) } } - class PS extends wS { + class sA extends eA { constructor(e, t, n) { super({ message: e, - code: Kw, + code: EC, payload: t, environment: n - }), Object.setPrototypeOf(this, PS.prototype) + }), Object.setPrototypeOf(this, sA.prototype) } } - class TS extends wS { + class lA extends eA { constructor(e, t = null, n) { super({ message: e, - code: Yw, + code: OC, payload: t, environment: n - }), Object.setPrototypeOf(this, TS.prototype) + }), Object.setPrototypeOf(this, lA.prototype) } } - class RS extends wS { + class cA extends eA { constructor(e, t = null, n) { super({ message: e, - code: Zw, + code: CC, payload: t, environment: n - }), Object.setPrototypeOf(this, RS.prototype) + }), Object.setPrototypeOf(this, cA.prototype) } } - class DS extends wS { + class uA extends eA { constructor(e, t = null, n) { super({ message: e, - code: Xw, + code: AC, payload: t, environment: n - }), Object.setPrototypeOf(this, DS.prototype) + }), Object.setPrototypeOf(this, uA.prototype) } } - class LS extends wS { + class dA extends eA { constructor(e, t = null, n) { super({ message: e, - code: Jw, + code: PC, payload: t, environment: n - }), Object.setPrototypeOf(this, LS.prototype) + }), Object.setPrototypeOf(this, dA.prototype) } } - class NS extends wS { + class pA extends eA { constructor(e, t = null, n) { super({ message: e, - code: eS, + code: TC, payload: t, environment: n - }), Object.setPrototypeOf(this, NS.prototype) + }), Object.setPrototypeOf(this, pA.prototype) } } - class MS extends wS { + class hA extends eA { constructor(e, t = null, n) { super({ message: e, - code: Vw, + code: vC, payload: t, environment: n - }), Object.setPrototypeOf(this, MS.prototype) + }), Object.setPrototypeOf(this, hA.prototype) } } - class jS extends wS { + class fA extends eA { constructor(e, t = null, n) { super({ message: e, - code: aS, + code: jC, payload: t, environment: n - }), Object.setPrototypeOf(this, jS.prototype) + }), Object.setPrototypeOf(this, fA.prototype) } } - class FS extends wS { + class mA extends eA { constructor(e, t = null, n) { super({ message: e, - code: oS, + code: MC, payload: t, environment: n - }), Object.setPrototypeOf(this, FS.prototype) + }), Object.setPrototypeOf(this, mA.prototype) } } - class zS extends wS { + class gA extends eA { constructor(e, t = null, n) { super({ message: e, - code: tS, + code: RC, payload: t, environment: n - }), Object.setPrototypeOf(this, zS.prototype) + }), Object.setPrototypeOf(this, gA.prototype) } } - class VS extends wS { + class vA extends eA { constructor(e, t = null, n) { super({ message: e, - code: nS, + code: DC, payload: t, environment: n - }), Object.setPrototypeOf(this, VS.prototype) + }), Object.setPrototypeOf(this, vA.prototype) } } - class US extends wS { + class yA extends eA { constructor(e, t = null, n) { super({ message: e, - code: rS, + code: LC, payload: t, environment: n - }), Object.setPrototypeOf(this, US.prototype) + }), Object.setPrototypeOf(this, yA.prototype) } } - class BS extends wS { + class _A extends eA { constructor(e, t = null, n) { super({ message: e, - code: Qw, + code: IC, payload: t, environment: n - }), Object.setPrototypeOf(this, BS.prototype) + }), Object.setPrototypeOf(this, _A.prototype) } } - class GS extends wS { + class bA extends eA { constructor(e, t = null, n) { super({ message: e, - code: iS, + code: NC, payload: t, environment: n - }), Object.setPrototypeOf(this, GS.prototype) + }), Object.setPrototypeOf(this, bA.prototype) } } - class WS extends wS { + class xA extends eA { constructor(e, t = null, n) { super({ message: e, - code: Gw, + code: bC, payload: t, environment: n - }), Object.setPrototypeOf(this, WS.prototype) + }), Object.setPrototypeOf(this, xA.prototype) } } - class $S { + class kA { constructor(e) { this.baseUrl = void 0, this.baseUrl = e } @@ -52509,16 +56354,16 @@ return "image/png" === e.headers.get("content-type") } async handleResponse(e) { - if (429 === e.status) throw new VS(xt.t("error_api_too_many_requests_content", { + if (429 === e.status) throw new vA(xt.t("error_api_too_many_requests_content", { ns: "errors" }), e, null); - if (503 === e.status) throw new US(xt.t("error_api_unavailable", { + if (503 === e.status) throw new yA(xt.t("error_api_unavailable", { ns: "errors" }), e, null); - if (e.status >= 500 && e.status < 600) throw new GS(xt.t("error_api_internal_server_error", { + if (e.status >= 500 && e.status < 600) throw new bA(xt.t("error_api_internal_server_error", { ns: "errors" }), e, null); - if (403 === e.status || 401 === e.status) throw new zS(xt.t("error_api_denied_request_content", { + if (403 === e.status || 401 === e.status) throw new gA(xt.t("error_api_denied_request_content", { ns: "errors" }), e, null); if (!e.ok) throw new Error(`Request failed with status: ${e.status}`); @@ -52540,8 +56385,8 @@ "GET" !== t && (s.body = JSON.stringify(n)); try { l = await fetch(a, s) - } catch (OD) { - throw new WS("Could not connect to server", OD, null) + } catch (sF) { + throw new xA("Could not connect to server", sF, null) } return this.handleResponse(l) } @@ -52552,65 +56397,65 @@ return this.handleRequest(e, "POST", t, n, r) } } - const qS = ({ + const wA = ({ rsiApiResult: e, environment: t }) => { switch (e.code) { - case uS: - return new CS(xt.t("error_not_authenticated", { + case UC: + return new aA(xt.t("error_not_authenticated", { ns: "errors" }), e, t); - case pS: - return new AS(xt.t("error_max_login_attempt", { + case GC: + return new oA(xt.t("error_max_login_attempt", { ns: "errors" }), e, t); - case dS: - return new OS(xt.t("error_invalid_claims", { + case BC: + return new iA(xt.t("error_invalid_claims", { ns: "errors" }), e, t); - case lS: - return new SS(xt.t("error_authentication_mfa", { + case zC: + return new tA(xt.t("error_authentication_mfa", { ns: "errors" }), e, t); - case cS: - return new ES(xt.t("error_wrong_mfa_code", { + case VC: + return new nA(xt.t("error_wrong_mfa_code", { ns: "errors" }), e, t); - case fS: - return new PS(xt.t("error_captcha_required", { + case qC: + return new sA(xt.t("error_captcha_required", { ns: "errors" }), e, t); - case mS: - return new TS(xt.t("error_captcha_invalid", { + case WC: + return new lA(xt.t("error_captcha_invalid", { ns: "errors" }), e, t); - case hS: - return new IS(xt.t("error_session_expired", { + case $C: + return new rA(xt.t("error_session_expired", { ns: "errors" }), e, t); - case vS: - return new RS(e.msg, e, t); - case yS: - return new DS(e.msg, e, t); - case _S: - return new LS(e.msg, e, t); - case bS: - return new NS(e.msg, e, t); - case sS: - return new MS(xt.t("error_wrong_credentials", { + case KC: + return new cA(e.msg, e, t); + case YC: + return new uA(e.msg, e, t); + case QC: + return new dA(e.msg, e, t); + case ZC: + return new pA(e.msg, e, t); + case FC: + return new hA(xt.t("error_wrong_credentials", { ns: "errors" }), e, t); - case xS: - return new jS(xt.t("error_api_validation_failed", { + case XC: + return new fA(xt.t("error_api_validation_failed", { ns: "errors" }), e, t); - case kS: - return new FS(xt.t("error_api_validation_failed", { + case JC: + return new mA(xt.t("error_api_validation_failed", { ns: "errors" }), e, t); default: - return new wS({ + return new eA({ message: e.msg, code: e.code, payload: e, @@ -52618,7 +56463,7 @@ }) } }, - HS = { + SA = { ACCOUNT_CHECK: "account/check", ACCOUNT_CLAIMS: "account/claims", AGREEMENTS_ACCEPT: "agreements/accept", @@ -52638,10 +56483,10 @@ WARNINGS_GET: "warnings/get", WARNINGS: "warnings" }, - KS = { + EA = { STATUS_PAGE: "index" }; - class YS extends $S { + class OA extends kA { set session(e) { this._session = e } @@ -52664,14 +56509,14 @@ return this._endpoints } constructor() { - super(YS.BASE_URL), this._platformEnv = null, this._session = null, this._device = null, this._endpoints = void 0, this._endpoints = HS, this.init() + super(OA.BASE_URL), this._platformEnv = null, this._session = null, this._device = null, this._endpoints = void 0, this._endpoints = SA, this.init() } async init() { const [e, t, n] = await Promise.all([window.launcherAPI.store.getValueFromStore("session"), window.launcherAPI.store.getValueFromStore("device"), window.launcherAPI.game.getGlobalConfig()]); this._session = e, this._device = t, this._platformEnv = n.environment } static getInstance() { - return YS.instance || (YS.instance = new YS), YS.instance + return OA.instance || (OA.instance = new OA), OA.instance } async call({ platformId: e = this._platformEnv, @@ -52685,14 +56530,14 @@ this.handleUrl(e); try { const r = await this.post(t, n, o, a); - if (r.code === gS) throw new BS("Launcher update required.", gS, e); + if (r.code === HC) throw new _A("Launcher update required.", HC, e); if (r.success) return r; - throw qS({ + throw wA({ rsiApiResult: r, environment: e }) - } catch (OD) { - throw OD instanceof IS && (this._session = null, this._device = null), OD + } catch (sF) { + throw sF instanceof rA && (this._session = null, this._device = null), sF } } handleSession(e, t) { @@ -52706,7 +56551,7 @@ }), n } handleUrl(e) { - this.baseUrl = `${YS.BASE_URL}${e?`+${e}`:""}` + this.baseUrl = `${OA.BASE_URL}${e?`+${e}`:""}` } async callImage({ endpoint: e, @@ -52720,13 +56565,13 @@ o = await this.post(e, t, a, i), s = await o.arrayBuffer(); return window.btoa(String.fromCharCode(...new Uint8Array(s))) - } catch (OD) { - throw OD + } catch (sF) { + throw sF } } } - YS.instance = void 0, YS.BASE_URL = "rsi"; - class QS { + OA.instance = void 0, OA.BASE_URL = "rsi"; + class IA { constructor() { this.retryCount = 3 } @@ -52737,7 +56582,7 @@ return await e() } catch (i) { var r; - if (console.error(`[ApiRequester] request number ${n} failed`, i), n++, (i instanceof DS || i instanceof LS) && null !== t && void 0 !== t && t.refreshClaims && (console.error("[ApiRequester] claims expired - refresh engaged", i), await t.refreshClaims()), n > (null !== (r = null === t || void 0 === t ? void 0 : t.numberOfRetry) && void 0 !== r ? r : this.retryCount) || this.isUnsafeError(i)) throw i + if (console.error(`[ApiRequester] request number ${n} failed`, i), n++, (i instanceof uA || i instanceof dA) && null !== t && void 0 !== t && t.refreshClaims && (console.error("[ApiRequester] claims expired - refresh engaged", i), await t.refreshClaims()), n > (null !== (r = null === t || void 0 === t ? void 0 : t.numberOfRetry) && void 0 !== r ? r : this.retryCount) || this.isUnsafeError(i)) throw i } await this.delay(500 * n) } @@ -52746,10 +56591,10 @@ return new Promise((t => setTimeout(t, e))) } isUnsafeError(e) { - return e instanceof VS || e instanceof zS || e instanceof BS || e instanceof WS + return e instanceof vA || e instanceof gA || e instanceof _A || e instanceof xA } } - class ZS extends QS { + class CA extends IA { constructor(e) { super(), this.client = e } @@ -52790,34 +56635,56 @@ })).data } } - let XS, JS, eE; + let AA; + ! function(e) { + e.SESSION = "session", e.DAY = "day", e.WEEK = "week", e.MONTH = "month", e.YEAR = "year" + }(AA || (AA = {})); + const PA = { + 1: "Staff", + 4: "Backer", + 5: "Subscriber", + 14: "QA", + 125: "PU Alpha Access", + 126: "Game Master", + 128: "Legatus", + 671: "Evocati Test Flight", + 1148: "CMTY Influencer", + 2028: "PTU - Wave 1 - 3.20", + 2282: "EAC_BYPASS" + }; + let TA, RA; - function tE({ + function DA(e) { + return Object.keys(PA).find((t => PA[t] === e)) + } + + function LA({ badges: e }, t) { - const n = Object.values(e); - for (const r of t) - if (-1 === n.indexOf(r)) return !1; + const n = Object.values(e).map(DA).filter((e => void 0 !== e)); + for (const r of t) { + const e = DA(r); + if (void 0 === e || !n.includes(e)) return !1 + } return !0 } - function nE({ + function NA({ badges: e }, t) { - const n = Object.values(e); - for (const r of t) - if (n.indexOf(r) > -1) return !0; + const n = Object.values(e).map(DA).filter((e => void 0 !== e)); + for (const r of t) { + const e = DA(r); + if (void 0 !== e && n.includes(e)) return !0 + } return !1 }! function(e) { - e.SESSION = "session", e.DAY = "day", e.WEEK = "week", e.MONTH = "month", e.YEAR = "year" - }(XS || (XS = {})), - function(e) { - e.COMM_LINKS = "Comm-Links", e.PATCH_NOTES = "Patch-Notes" - }(JS || (JS = {})), + e.COMM_LINKS = "Comm-Links", e.PATCH_NOTES = "Patch-Notes" + }(TA || (TA = {})), function(e) { e.EULA = "eula", e.TOS = "tos", e.DISCLAIMER = "disclaimer" - }(eE || (eE = {})); - const rE = ({ + }(RA || (RA = {})); + const jA = ({ session_name: e, session_id: t }) => ({ @@ -52825,7 +56692,7 @@ key: `X-${e}`, value: t }), - iE = (e, t) => { + MA = (e, t) => { return { username: t, heapAccountId: e.account_id, @@ -52833,16 +56700,16 @@ displayName: e.displayname, nickname: e.nickname, avatar: e.avatar, - privileged: (n = e, nE(n, ["Staff", "QA", "Game Master", "EAC_BYPASS"])) + privileged: (n = e, NA(n, ["Staff", "QA", "Game Master", "EAC_BYPASS"])) }; var n }, - aE = ({ + FA = ({ device_header: e, device_id: t, duration: n }) => { - const r = oE(n); + const r = zA(n); return { cookie: "_rsi_device", key: e, @@ -52851,38 +56718,38 @@ expires: r ? Date.now() + r : void 0 } }, - oE = e => ({ - [XS.SESSION]: void 0, - [XS.DAY]: Cw.day, - [XS.WEEK]: 7 * Cw.day, - [XS.MONTH]: Cw.month, - [XS.YEAR]: Cw.year + zA = e => ({ + [AA.SESSION]: void 0, + [AA.DAY]: aC.day, + [AA.WEEK]: 7 * aC.day, + [AA.MONTH]: aC.month, + [AA.YEAR]: aC.year } [e]); - class sE { + class VA { constructor(e) { this.success = void 0, this.message = void 0, this.success = e.success, this.message = e.message || null } static success() { - return new sE({ + return new VA({ success: !0 }) } static fail(e) { - return new sE({ + return new VA({ success: !1, message: e }) } } - class lE extends Error { + class UA extends Error { constructor(e, t) { super(e), this.result = void 0, Object.defineProperty(this, "name", { value: "AuthorizationError", writable: !0 - }), Error.captureStackTrace(this, lE), this.result = t + }), Error.captureStackTrace(this, UA), this.result = t } } - class cE extends QS { + class BA extends IA { constructor(e, t) { super(), this.client = e, this.policy = t } @@ -52918,19 +56785,19 @@ }); if (a.success) { await this.verifyPolicy(a.data); - const t = iE(a.data, e), - n = rE(a.data); + const t = MA(a.data, e), + n = jA(a.data); return this.client.session = n, { identity: t, session: n } } - throw qS({ + throw wA({ rsiApiResult: a, environment: this.client.platformEnv }) } catch (a) { - throw a instanceof PS && (this.client.session = rE(a.payload.data)), a instanceof SS && (this.client.session = rE(a.payload.data), this.client.device = aE(a.payload.data)), a instanceof lE && (this.client.session = null, this.client.device = null), a + throw a instanceof sA && (this.client.session = jA(a.payload.data)), a instanceof tA && (this.client.session = jA(a.payload.data), this.client.device = FA(a.payload.data)), a instanceof UA && (this.client.session = null, this.client.device = null), a } } async signInMfa({ @@ -52951,9 +56818,9 @@ if (i.success) { var a, o; await this.verifyPolicy(i.data); - const t = iE(i.data, e), - n = rE(i.data), - s = aE({ + const t = MA(i.data, e), + n = jA(i.data), + s = FA({ device_id: null === (a = this.client.device) || void 0 === a ? void 0 : a.value, device_header: null === (o = this.client.device) || void 0 === o ? void 0 : o.key, duration: r @@ -52964,7 +56831,7 @@ device: s } } - throw qS({ + throw wA({ rsiApiResult: i, environment: this.client.platformEnv }) @@ -52977,7 +56844,7 @@ claims: await this.getAccountClaims() } }); - return rE(t.data) + return jA(t.data) } async getAccountClaims() { return (await this.client.call({ @@ -52991,7 +56858,7 @@ if (t.includes("-rc.")) return this.policy.verify("signin:release-candidate", e) } } - class uE extends QS { + class GA extends IA { constructor(e) { super(), this.client = e } @@ -53034,7 +56901,7 @@ } } } - class dE extends QS { + class $A extends IA { set gameClaims(e) { this._gameClaims = e } @@ -53081,7 +56948,7 @@ nid: o, network: s, installDir: l, - status: yw.GameChannelStatus.AVAILABLE + status: YI.GameChannelStatus.AVAILABLE }))); return { id: t, @@ -53131,16 +56998,16 @@ this.gameClaims = e.data } } - class pE extends $S { + class qA extends kA { constructor() { - super(pE.BASE_URL), this._endpoints = void 0, this._endpoints = KS + super(qA.BASE_URL), this._endpoints = void 0, this._endpoints = EA } async getStatus() { return await this.get(this._endpoints.STATUS_PAGE) } } - pE.BASE_URL = "status"; - class hE { + qA.BASE_URL = "status"; + class WA { constructor(...e) { this.handlers = void 0, this.name = "AnyPermissionEvaluator", this.handlers = (null !== e && void 0 !== e ? e : []).slice() } @@ -53156,40 +57023,40 @@ const r = n.find((e => e.result.success)); if (r) return r.result; const i = n.map((e => `[${e.handlerName}] ${e.result.message}`)).join("\n"); - return sE.fail(`At least one permission evaluator must succeed. Evaluation results:\n${i}`) + return VA.fail(`At least one permission evaluator must succeed. Evaluation results:\n${i}`) } } - class fE { + class HA { constructor() { this.name = "IsStaffPermissionEvaluator" } evaluate(e) { return e.badges && function(e) { - return tE(e, ["Staff"]) - }(e) ? sE.success() : sE.fail() + return LA(e, ["Staff"]) + }(e) ? VA.success() : VA.fail() } } - class mE { + class KA { constructor() { this.name = "IsQAPermissionEvaluator" } evaluate(e) { return e.badges && function(e) { - return tE(e, ["QA"]) - }(e) ? sE.success() : sE.fail() + return LA(e, ["QA"]) + }(e) ? VA.success() : VA.fail() } } - class gE { + class YA { constructor() { this.name = "IsEvocatiPermissionEvaluator" } evaluate(e) { return e.badges && function(e) { - return tE(e, ["Evocati Test Flight"]) - }(e) ? sE.success() : sE.fail() + return LA(e, ["Evocati Test Flight"]) + }(e) ? VA.success() : VA.fail() } } - class vE { + class QA { constructor(e) { this.evaluators = new Map; for (const t of e) this.evaluators.set(t[0], t[1]) @@ -53200,7 +57067,7 @@ } async verify(e, t) { const n = await this.evaluate(e, t); - if (!n.success) throw new lE(`Permission '${e}' verification failed`, n) + if (!n.success) throw new UA(`Permission '${e}' verification failed`, n) } notNullEvaluator(e) { const t = this.evaluators.get(e); @@ -53208,21 +57075,21 @@ return t } } - const yE = new class { + const ZA = 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 = YS.getInstance(), this.content = new uE(this.rsi), this.policy = function() { - const e = new fE, - t = new mE, - n = new gE, - r = new hE(e, t), + 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 = OA.getInstance(), this.content = new GA(this.rsi), this.policy = function() { + const e = new HA, + t = new KA, + n = new YA, + r = new WA(e, t), i = new Map([ - ["signin:release-candidate", new hE(r, n)] + ["signin:release-candidate", new WA(r, n)] ]); - return new vE(i) - }(), this.authentication = new cE(this.rsi, this.policy), this.games = new dE(this.rsi), this.agreements = new ZS(this.rsi), this.status = new pE + return new QA(i) + }(), this.authentication = new BA(this.rsi, this.policy), this.games = new $A(this.rsi), this.agreements = new CA(this.rsi), this.status = new qA } }; - class _E { + class XA { constructor(e) { this.isMuted = void 0, this.gain = void 0, this.gainNode = void 0, this.soundList = void 0, this.trackList = void 0, this.soundMap = void 0, this.trackMap = void 0, this.trackTitleList = void 0, this.soundRoot = void 0, this.currentBgTrack = void 0, this.audioContext = new AudioContext, this.isMuted = !1, this.gain = e.volume / 100, this.soundList = e.sounds, this.trackList = e.musics, this.soundMap = new Map(Object.entries(e.sounds)), this.trackMap = new Map(Object.entries(e.musics)), this.trackTitleList = Object.keys(e.musics), this.currentBgTrack = null, this.gainNode = this.audioContext.createGain(), this.gainNode.connect(this.audioContext.destination), this.gainNode.gain.value = e.volume / 100; const t = document.getElementById("SoundRoot"); @@ -53276,12 +57143,12 @@ this.playBackgroundTrack(!0) } } - let bE; + let JA; ! function(e) { e.DISPLAY_WARNING_DIALOG = "displayWarningDialog", e.DISPLAY_ACKNOWLEDGE_DIALOG = "displayAcknowledgeDialog", e.DISPLAY_INLINE_MESSAGE = "displayInlineMessage", e.EXECUTE_CALLBACK = "executeCallback" - }(bE || (bE = {})); - const xE = async e => { - const t = pR.getState().dialog, + }(JA || (JA = {})); + const eP = async e => { + const t = Wj.getState().dialog, n = Array.isArray(e) ? e : [e]; for (const { handler: r, @@ -53290,22 +57157,22 @@ of n) { if (r.skip) return; switch (r.type) { - case bE.DISPLAY_WARNING_DIALOG: + case JA.DISPLAY_WARNING_DIALOG: return void await t.actions.showWarningDialogErrorOccured(r.args); - case bE.DISPLAY_ACKNOWLEDGE_DIALOG: + case JA.DISPLAY_ACKNOWLEDGE_DIALOG: return void await t.actions.showAcknowledgeDialogErrorOccured(r.args); - case bE.EXECUTE_CALLBACK: + case JA.EXECUTE_CALLBACK: return void await r.args.callback(); default: console.error("error", i.message) } } - }, kE = e => { + }, tP = e => { switch (e.code) { - case yw.errorsCodes.ERR_LOGOUT_FAILED: + case YI.errorsCodes.ERR_LOGOUT_FAILED: return { handler: { - type: bE.DISPLAY_ACKNOWLEDGE_DIALOG, + type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("dialog_warning_logout_title", { ns: "dialog" @@ -53316,10 +57183,10 @@ } }, error: e }; - case yw.errorsCodes.ERR_DISPLAY_AGREEMENT: + case YI.errorsCodes.ERR_DISPLAY_AGREEMENT: return { handler: { - type: bE.DISPLAY_ACKNOWLEDGE_DIALOG, + type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, args: { content: xt.t("agreement_fetch_info_error", { ns: "agreements" @@ -53330,23 +57197,23 @@ default: return { handler: { - type: bE.DISPLAY_ACKNOWLEDGE_DIALOG, + type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, args: {} }, error: e } } }; - var wE = n(1438), - SE = n.n(wE); - const EE = (e, t) => { + var nP = n(1438), + rP = n.n(nP); + const iP = (e, t) => { let n = { ...t, - speed: e.info.speed > 0 ? SE().format(e.info.speed, { + speed: e.info.speed > 0 ? rP().format(e.info.speed, { decimalPlaces: 1 }) : "0" }; switch (e.phase) { - case yw.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_START: + case YI.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_START: n = { ...n, currentPhase: xt.t("download_update_manifest", { @@ -53354,7 +57221,7 @@ }) }; break; - case yw.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_PROGRESS: { + case YI.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_PROGRESS: { const t = e.info.total > 0 && e.info.total < 107374182400; n = { ...n, @@ -53368,7 +57235,7 @@ } } break; - case yw.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_END: + case YI.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_END: n = { ...n, currentPhase: xt.t("downloaded_update_manifest", { @@ -53376,7 +57243,7 @@ }) }; break; - case yw.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_START: + case YI.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_START: n = { ...n, currentPhase: xt.t("download_analysing_install", { @@ -53384,16 +57251,16 @@ }) }; break; - case yw.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_END: - case yw.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_START: + case YI.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_END: + case YI.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_START: break; - case yw.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_END: + case YI.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_END: n = { ...n, isPausable: !1 }; break; - case yw.ipcEvents.installer.INSTALLER_UPDATE_PK4_START: + case YI.ipcEvents.installer.INSTALLER_UPDATE_PK4_START: n = { ...n, isPausable: !1, @@ -53405,7 +57272,7 @@ }) }; break; - case yw.ipcEvents.installer.INSTALLER_UPDATE_PK4_END: + case YI.ipcEvents.installer.INSTALLER_UPDATE_PK4_END: n = { ...n, isPausable: !1, @@ -53413,7 +57280,7 @@ progressUndeterminate: !1 }; break; - case yw.ipcEvents.installer.INSTALLER_DOWNLOAD_PROGRESS: { + case YI.ipcEvents.installer.INSTALLER_DOWNLOAD_PROGRESS: { const t = e.info.total > 0 && e.info.total < 107374182400; n = { ...n, @@ -53430,7 +57297,7 @@ } } break; - case yw.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_PROGRESS: { + case YI.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_PROGRESS: { const r = e.info.total > 0 && e.info.total < 107374182400 && e.info.filesTotal > 0; n = { ...n, @@ -53447,15 +57314,15 @@ } } break; - case yw.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_START: + case YI.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_START: break; - case yw.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_END: + case YI.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_END: n = { ...n, isPausable: !1 }; break; - case yw.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_PROGRESS: { + case YI.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_PROGRESS: { const r = e.info.total > 0 && e.info.total < 107374182400 && e.info.filesTotal > 0; n = { ...n, @@ -53474,48 +57341,48 @@ } return n }, - IE = (e, t) => e.find((e => e.game.gameId === t.gameId && e.game.channelId === t.channelId)), - OE = (e, t) => e.find((e => e.gameId === t.gameId && e.channelId === t.channelId)), - CE = e => e.find((e => e.status === yw.InstallationStatus.IN_PROGRESS || e.status === yw.InstallationStatus.PAUSED || e.status === yw.InstallationStatus.CANCELLING)), - AE = e => e.find((e => e.status === yw.InstallationStatus.CANCELLING)), - PE = (e, t) => `${e.gameId}-${e.channelId}` === `${t.gameId}-${t.channelId}`, - TE = (e, t) => e.filter((e => !PE(e.game, t))), - RE = async (e, t) => { + aP = (e, t) => e.find((e => e.game.gameId === t.gameId && e.game.channelId === t.channelId)), + oP = (e, t) => e.find((e => e.gameId === t.gameId && e.channelId === t.channelId)), + sP = e => e.find((e => e.status === YI.InstallationStatus.IN_PROGRESS || e.status === YI.InstallationStatus.PAUSED || e.status === YI.InstallationStatus.CANCELLING)), + lP = e => e.find((e => e.status === YI.InstallationStatus.CANCELLING)), + cP = (e, t) => `${e.gameId}-${e.channelId}` === `${t.gameId}-${t.channelId}`, + uP = (e, t) => e.filter((e => !cP(e.game, t))), + dP = async (e, t) => { const { application: n, agreements: r - } = pR.getState(), i = await n.actions.isMinimumWindowsVersion(), a = await n.actions.isRespectingCPUCapabilites(); + } = Wj.getState(), i = await n.actions.isMinimumWindowsVersion(), a = await n.actions.isRespectingCPUCapabilites(); console.log("[Requirement] OS check : ", i), console.log("[Requirement] CPU check : ", a); return !!await r.actions.checkAgreements() - }, DE = (e, t, n, r) => e.map((e => PE(e.game, t) ? { + }, pP = (e, t, n, r) => e.map((e => cP(e.game, t) ? { ...e, status: n, options: null !== r && void 0 !== r ? r : e.options - } : e)), LE = () => ({ + } : e)), hP = () => ({ queryKey: ["library"], - queryFn: async () => yE.games.getLibrary() - }), NE = (e, t) => ({ + queryFn: async () => ZA.games.getLibrary() + }), fP = (e, t) => ({ queryKey: ["games", e, t], - queryFn: async () => yE.games.getRelease({ + queryFn: async () => ZA.games.getRelease({ gameId: e, channelId: t }) - }), ME = (e, t) => ({ + }), mP = (e, t) => ({ queryKey: [`platformContent-${e}-${t}`], - queryFn: async () => yE.content.getContent(e, t), - enabled: !pR.getState().application.isWindowMinimized || !pR.getState().application.actions.isOffline(), + queryFn: async () => ZA.content.getContent(e, t), + enabled: !Wj.getState().application.isWindowMinimized || !Wj.getState().application.actions.isOffline(), select: e => ({ - commLinks: e.commLinks.map(Iw), - patchNotes: e.patchNotes.map(Iw), - launcherCards: e.launcherCards.map(Iw) + commLinks: e.commLinks.map(rC), + patchNotes: e.patchNotes.map(rC), + launcherCards: e.launcherCards.map(rC) }), - refetchInterval: Aw(yw.configuration.requestPollingInterval.gamePageContent.base, yw.configuration.requestPollingInterval.gamePageContent.window), + refetchInterval: oC(YI.configuration.requestPollingInterval.gamePageContent.base, YI.configuration.requestPollingInterval.gamePageContent.window), refetchOnWindowFocus: !1, staleTime: 0, gcTime: 0 }); - var jE = n(5391); - var FE = function() { + var gP = n(5391); + var vP = function() { let e = [], t = 0, n = e => { @@ -53525,13 +57392,13 @@ e() }; const i = r => { - t ? e.push(r) : (0, jE.A4)((() => { + t ? e.push(r) : (0, gP.A4)((() => { n(r) })) }, a = () => { const t = e; - e = [], t.length && (0, jE.A4)((() => { + e = [], t.length && (0, gP.A4)((() => { r((() => { t.forEach((e => { n(e) @@ -53564,14 +57431,14 @@ } } }(), - zE = n(8974), - VE = new class extends zE.l { + yP = n(8974), + _P = new class extends yP.l { #r; #t; #n; constructor() { super(), this.#n = e => { - if (!jE.sk && window.addEventListener) { + if (!gP.sk && window.addEventListener) { const t = () => e(); return window.addEventListener("visibilitychange", t, !1), () => { window.removeEventListener("visibilitychange", t) @@ -53602,33 +57469,33 @@ return "boolean" === typeof this.#r ? this.#r : "hidden" !== globalThis.document?.visibilityState } }, - UE = n(1901); + bP = n(1901); - function BE(e) { + function xP(e) { return Math.min(1e3 * 2 ** e, 3e4) } - function GE(e) { - return "online" !== (e ?? "online") || UE.N.isOnline() + function kP(e) { + return "online" !== (e ?? "online") || bP.N.isOnline() } - var WE = class { + var wP = class { constructor(e) { this.revert = e?.revert, this.silent = e?.silent } }; - function $E(e) { - return e instanceof WE + function SP(e) { + return e instanceof wP } - function qE(e) { + function EP(e) { let t, n, r, i = !1, a = 0, o = !1; const s = new Promise(((e, t) => { n = e, r = t })), - l = () => !VE.isFocused() || "always" !== e.networkMode && !UE.N.isOnline(), + l = () => !_P.isFocused() || "always" !== e.networkMode && !bP.N.isOnline(), c = r => { o || (o = !0, e.onSuccess?.(r), t?.(), n(r)) }, @@ -53653,21 +57520,21 @@ } Promise.resolve(t).then(c).catch((t => { if (o) return; - const n = e.retry ?? (jE.sk ? 0 : 3), - r = e.retryDelay ?? BE, + const n = e.retry ?? (gP.sk ? 0 : 3), + r = e.retryDelay ?? xP, s = "function" === typeof r ? r(a, t) : r, c = !0 === n || "number" === typeof n && a < n || "function" === typeof n && n(a, t); - !i && c ? (a++, e.onFail?.(a, t), (0, jE._v)(s).then((() => { + !i && c ? (a++, e.onFail?.(a, t), (0, gP._v)(s).then((() => { if (l()) return d() })).then((() => { i ? u(t) : p() }))) : u(t) })) }; - return GE(e.networkMode) ? p() : d().then(p), { + return kP(e.networkMode) ? p() : d().then(p), { promise: s, cancel: t => { - o || (u(new WE(t)), e.abort?.()) + o || (u(new wP(t)), e.abort?.()) }, continue: () => { const e = t?.(); @@ -53681,24 +57548,24 @@ } } } - var HE = class { + var OP = class { #i; destroy() { this.clearGcTimeout() } scheduleGc() { - this.clearGcTimeout(), (0, jE.PN)(this.gcTime) && (this.#i = setTimeout((() => { + this.clearGcTimeout(), (0, gP.PN)(this.gcTime) && (this.#i = setTimeout((() => { this.optionalRemove() }), this.gcTime)) } updateGcTime(e) { - this.gcTime = Math.max(this.gcTime || 0, e ?? (jE.sk ? 1 / 0 : 3e5)) + this.gcTime = Math.max(this.gcTime || 0, e ?? (gP.sk ? 1 / 0 : 3e5)) } clearGcTimeout() { this.#i && (clearTimeout(this.#i), this.#i = void 0) } }, - KE = class extends HE { + IP = class extends OP { constructor(e) { super(), this.#a = !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, @@ -53741,7 +57608,7 @@ this.#l.length || "idle" !== this.state.fetchStatus || this.#c.remove(this) } setData(e, t) { - const n = (0, jE.oE)(this.state.data, e, this.options); + const n = (0, gP.oE)(this.state.data, e, this.options); return this.#f({ data: n, type: "success", @@ -53758,7 +57625,7 @@ } cancel(e) { const t = this.#p; - return this.#h?.cancel(e), t ? t.then(jE.ZT).catch(jE.ZT) : Promise.resolve() + return this.#h?.cancel(e), t ? t.then(gP.ZT).catch(gP.ZT) : Promise.resolve() } destroy() { super.destroy(), this.cancel({ @@ -53778,7 +57645,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, jE.Kp)(this.state.dataUpdatedAt, e) + return this.state.isInvalidated || !this.state.dataUpdatedAt || !(0, gP.Kp)(this.state.dataUpdatedAt, e) } onFocus() { const e = this.#l.find((e => e.shouldFetchOnWindowFocus())); @@ -53850,12 +57717,12 @@ meta: a.fetchOptions?.meta }); const o = e => { - $E(e) && e.silent || this.#f({ + SP(e) && e.silent || this.#f({ type: "error", error: e - }), $E(e) || (this.#c.config.onError?.(e, this), this.#c.config.onSettled?.(this.state.data, e, this)), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1 + }), SP(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 = qE({ + return this.#h = EP({ fn: a.fetchFn, abort: n.abort.bind(n), onSuccess: e => { @@ -53901,7 +57768,7 @@ }; case "fetch": return { - ...t, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: e.meta ?? null, fetchStatus: GE(this.options.networkMode) ? "fetching" : "paused", ...!t.dataUpdatedAt && { + ...t, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: e.meta ?? null, fetchStatus: kP(this.options.networkMode) ? "fetching" : "paused", ...!t.dataUpdatedAt && { error: null, status: "pending" } @@ -53916,7 +57783,7 @@ }; case "error": const n = e.error; - return $E(n) && n.revert && this.#d ? { + return SP(n) && n.revert && this.#d ? { ...this.#d, fetchStatus: "idle" } : { @@ -53938,7 +57805,7 @@ ...t, ...e.state } } - })(this.state), FE.batch((() => { + })(this.state), vP.batch((() => { this.#l.forEach((e => { e.onQueryUpdate() })), this.#c.notify({ @@ -53949,16 +57816,16 @@ })) } }; - var YE = class extends zE.l { + var CP = class extends yP.l { constructor(e = {}) { super(), this.config = e, this.#m = new Map } #m; build(e, t, n) { const r = t.queryKey, - i = t.queryHash ?? (0, jE.Rm)(r, t); + i = t.queryHash ?? (0, gP.Rm)(r, t); let a = this.get(i); - return a || (a = new KE({ + return a || (a = new IP({ cache: this, queryKey: r, queryHash: i, @@ -53981,7 +57848,7 @@ })) } clear() { - FE.batch((() => { + vP.batch((() => { this.getAll().forEach((e => { this.remove(e) })) @@ -53998,35 +57865,35 @@ exact: !0, ...e }; - return this.getAll().find((e => (0, jE._x)(t, e))) + return this.getAll().find((e => (0, gP._x)(t, e))) } findAll(e = {}) { const t = this.getAll(); - return Object.keys(e).length > 0 ? t.filter((t => (0, jE._x)(e, t))) : t + return Object.keys(e).length > 0 ? t.filter((t => (0, gP._x)(e, t))) : t } notify(e) { - FE.batch((() => { + vP.batch((() => { this.listeners.forEach((t => { t(e) })) })) } onFocus() { - FE.batch((() => { + vP.batch((() => { this.getAll().forEach((e => { e.onFocus() })) })) } onOnline() { - FE.batch((() => { + vP.batch((() => { this.getAll().forEach((e => { e.onOnline() })) })) } }, - QE = class extends HE { + AP = class extends OP { constructor(e) { super(), this.mutationId = e.mutationId, this.#o = e.defaultOptions, this.#g = e.mutationCache, this.#l = [], this.state = e.state || { context: void 0, @@ -54074,7 +57941,7 @@ return this.#h?.continue() ?? this.execute(this.state.variables) } async execute(e) { - const t = () => (this.#h = qE({ + const t = () => (this.#h = EP({ fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")), onFail: (e, t) => { this.#f({ @@ -54144,7 +58011,7 @@ }; case "pending": return { - ...t, context: e.context, data: void 0, failureCount: 0, failureReason: null, error: null, isPaused: !GE(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: !kP(this.options.networkMode), status: "pending", variables: e.variables, submittedAt: Date.now() }; case "success": return { @@ -54155,7 +58022,7 @@ ...t, data: void 0, error: e.error, failureCount: t.failureCount + 1, failureReason: e.error, isPaused: !1, status: "error" } } - })(this.state), FE.batch((() => { + })(this.state), vP.batch((() => { this.#l.forEach((t => { t.onMutationUpdate(e) })), this.#g.notify({ @@ -54166,7 +58033,7 @@ })) } }; - var ZE = class extends zE.l { + var PP = class extends yP.l { constructor(e = {}) { super(), this.config = e, this.#v = [], this.#y = 0 } @@ -54174,7 +58041,7 @@ #y; #_; build(e, t, n) { - const r = new QE({ + const r = new AP({ mutationCache: this, mutationId: ++this.#y, options: e.defaultMutationOptions(t), @@ -54195,7 +58062,7 @@ }) } clear() { - FE.batch((() => { + vP.batch((() => { this.#v.forEach((e => { this.remove(e) })) @@ -54209,13 +58076,13 @@ exact: !0, ...e }; - return this.#v.find((e => (0, jE.X7)(t, e))) + return this.#v.find((e => (0, gP.X7)(t, e))) } findAll(e = {}) { - return this.#v.filter((t => (0, jE.X7)(e, t))) + return this.#v.filter((t => (0, gP.X7)(e, t))) } notify(e) { - FE.batch((() => { + vP.batch((() => { this.listeners.forEach((t => { t(e) })) @@ -54224,14 +58091,14 @@ resumePausedMutations() { return this.#_ = (this.#_ ?? Promise.resolve()).then((() => { const e = this.#v.filter((e => e.state.isPaused)); - return FE.batch((() => e.reduce(((e, t) => e.then((() => t.continue().catch(jE.ZT)))), Promise.resolve()))) + return vP.batch((() => e.reduce(((e, t) => e.then((() => t.continue().catch(gP.ZT)))), Promise.resolve()))) })).then((() => { this.#_ = void 0 })), this.#_ } }; - function XE(e) { + function TP(e) { return { onFetch: (t, n) => { const r = async () => { @@ -54265,7 +58132,7 @@ { maxPages: c } = t.options, - u = r ? jE.Ht : jE.VX; + u = r ? gP.Ht : gP.VX; return { pages: u(e.pages, o, c), pageParams: u(e.pageParams, n, c) @@ -54278,13 +58145,13 @@ pages: i, pageParams: a }, - o = (e ? eI : JE)(n, t); + o = (e ? DP : RP)(n, t); u = await c(t, o, e) } else { u = await c(o, a[0] ?? n.initialPageParam); const t = e ?? i.length; for (let e = 1; e < t; e++) { - const e = JE(n, u); + const e = RP(n, u); u = await c(u, e) } } @@ -54299,7 +58166,7 @@ } } - function JE(e, { + function RP(e, { pages: t, pageParams: n }) { @@ -54307,16 +58174,16 @@ return e.getNextPageParam(t[r], t, n[r], n) } - function eI(e, { + function DP(e, { pages: t, pageParams: n }) { return e.getPreviousPageParam?.(t[0], t, n[0], n) } - const tI = async e => { + const LP = async e => { var t; - if (!(e instanceof wS || e instanceof lE)) return; - if (!nI(e)) return; + if (!(e instanceof eA || e instanceof UA)) return; + if (!NP(e)) return; const { application: { platformMaster: n @@ -54324,110 +58191,110 @@ user: { identity: r } - } = pR.getState(), i = e instanceof lE ? zw : e.code, a = e instanceof lE ? n : null !== (t = e.environment) && void 0 !== t ? t : n; - window.launcherAPI.analytics.setAnalyticsEvent(yw.AnalyticsEventName.APP_API_ERROR, { + } = Wj.getState(), i = e instanceof UA ? gC : e.code, a = e instanceof UA ? n : null !== (t = e.environment) && void 0 !== t ? t : n; + window.launcherAPI.analytics.setAnalyticsEvent(YI.AnalyticsEventName.APP_API_ERROR, { ErrorCode: i, ErrorMessage: e.message, ...r, Environment: a }) - }, nI = e => { - if (e instanceof zS || e instanceof VS || e instanceof IS || e instanceof NS || e instanceof lE) return !0; + }, NP = e => { + if (e instanceof gA || e instanceof vA || e instanceof rA || e instanceof pA || e instanceof UA) return !0; const { application: { connection: t } - } = pR.getState(); - return e instanceof WS && t.mode === yw.ConnectionMode.ONLINE - }, rI = async (e = { + } = Wj.getState(); + return e instanceof xA && t.mode === YI.ConnectionMode.ONLINE + }, jP = async (e = { clearDevice: !1 }) => { var t; - const n = pR.getState().application, - r = pR.getState().authentication, - i = pR.getState().user, - a = (null === (t = i.device) || void 0 === t ? void 0 : t.duration) === XS.SESSION || (null === e || void 0 === e ? void 0 : e.clearDevice); + const n = Wj.getState().application, + r = Wj.getState().authentication, + i = Wj.getState().user, + a = (null === (t = i.device) || void 0 === t ? void 0 : t.duration) === AA.SESSION || (null === e || void 0 === e ? void 0 : e.clearDevice); try { - (i.sessions[n.platformMaster] && Object.keys(i.sessions[n.platformMaster] || {}).length > 0 ? i.sessions[n.platformMaster] : null) && (yE.games.clearClaims(), await yE.authentication.signOut({ + (i.sessions[n.platformMaster] && Object.keys(i.sessions[n.platformMaster] || {}).length > 0 ? i.sessions[n.platformMaster] : null) && (ZA.games.clearClaims(), await ZA.authentication.signOut({ clearDevice: a })) } catch (o) { if (o instanceof Error && !n.actions.isOffline()) { - const e = new yw.GenericError({ - code: yw.errorsNames.ERR_LOGOUT_FAILED, + const e = new YI.GenericError({ + code: YI.errorsNames.ERR_LOGOUT_FAILED, message: `[Logout] Error: Failed ${o}`, payload: null }); - throw await xE(kE(e)), o + throw await eP(tP(e)), o } } finally { - aI.clear(), r.actions.resetAuthentication(), n.actions.resetApplication(), i.actions.resetUser(e), Rw().authentication.setSignOut() + FP.clear(), r.actions.resetAuthentication(), n.actions.resetApplication(), i.actions.resetUser(e), cC().authentication.setSignOut() } - }, iI = async e => { + }, MP = async e => { switch (!0) { - case e instanceof zS: - await rI(), await pR.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + case e instanceof gA: + await jP(), await Wj.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_api_denied_request_title", { ns: "errors" }), content: e.message }); break; - case e instanceof VS: - await rI(), await pR.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + case e instanceof vA: + await jP(), await Wj.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_api_too_many_requests_title", { ns: "errors" }), content: e.message }); break; - case e instanceof WS: + case e instanceof xA: const { application: { connection: t, actions: n } - } = pR.getState(); - if (t.mode === yw.ConnectionMode.NO_CONNECTION) return; + } = Wj.getState(); + if (t.mode === YI.ConnectionMode.NO_CONNECTION) return; n.checkConnection(); break; - case e instanceof IS: - await rI(), await pR.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + case e instanceof rA: + await jP(), await Wj.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_api_auth_expired_title", { ns: "errors" }), content: e.message }); break; - case e instanceof DS: - case e instanceof MS: - case e instanceof SS: - case e instanceof NS: - case e instanceof lE: - case e instanceof ES: - case e instanceof PS: - case e instanceof TS: + case e instanceof uA: + case e instanceof hA: + case e instanceof tA: + case e instanceof pA: + case e instanceof UA: + case e instanceof nA: + case e instanceof sA: + case e instanceof lA: break; - case e instanceof CS: - await rI(), await pR.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + case e instanceof aA: + await jP(), await Wj.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_generic_title", { ns: "errors" }), content: e.message }); break; - case e instanceof AS: - case e instanceof RS: + case e instanceof oA: + case e instanceof cA: break; default: - await pR.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + await Wj.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_generic_title", { ns: "errors" }), content: e.message }) } - }, aI = new class { + }, FP = new class { #b; #g; #o; @@ -54437,13 +58304,13 @@ #S; #E; constructor(e = {}) { - this.#b = e.queryCache || new YE, this.#g = e.mutationCache || new ZE, this.#o = e.defaultOptions || {}, this.#x = new Map, this.#k = new Map, this.#w = 0 + this.#b = e.queryCache || new CP, this.#g = e.mutationCache || new PP, this.#o = e.defaultOptions || {}, this.#x = new Map, this.#k = new Map, this.#w = 0 } mount() { - this.#w++, 1 === this.#w && (this.#S = VE.subscribe((() => { - VE.isFocused() && (this.resumePausedMutations(), this.#b.onFocus()) - })), this.#E = UE.N.subscribe((() => { - UE.N.isOnline() && (this.resumePausedMutations(), this.#b.onOnline()) + this.#w++, 1 === this.#w && (this.#S = _P.subscribe((() => { + _P.isFocused() && (this.resumePausedMutations(), this.#b.onFocus()) + })), this.#E = bP.N.subscribe((() => { + bP.N.isOnline() && (this.resumePausedMutations(), this.#b.onOnline()) }))) } unmount() { @@ -54480,7 +58347,7 @@ const r = this.#b.find({ queryKey: e })?.state.data, - i = (0, jE.SE)(t, r); + i = (0, gP.SE)(t, r); if ("undefined" === typeof i) return; const a = this.defaultQueryOptions({ queryKey: e @@ -54491,7 +58358,7 @@ }) } setQueriesData(e, t, n) { - return FE.batch((() => this.getQueryCache().findAll(e).map((({ + return vP.batch((() => this.getQueryCache().findAll(e).map((({ queryKey: e }) => [e, this.setQueryData(e, t, n)])))) } @@ -54502,7 +58369,7 @@ } removeQueries(e) { const t = this.#b; - FE.batch((() => { + vP.batch((() => { t.findAll(e).forEach((e => { t.remove(e) })) @@ -54514,7 +58381,7 @@ type: "active", ...e }; - return FE.batch((() => (n.findAll(e).forEach((e => { + return vP.batch((() => (n.findAll(e).forEach((e => { e.reset() })), this.refetchQueries(r, t)))) } @@ -54523,11 +58390,11 @@ revert: !0, ...t }, - r = FE.batch((() => this.#b.findAll(e).map((e => e.cancel(n))))); - return Promise.all(r).then(jE.ZT).catch(jE.ZT) + r = vP.batch((() => this.#b.findAll(e).map((e => e.cancel(n))))); + return Promise.all(r).then(gP.ZT).catch(gP.ZT) } invalidateQueries(e = {}, t = {}) { - return FE.batch((() => { + return vP.batch((() => { if (this.#b.findAll(e).forEach((e => { e.invalidate() })), "none" === e.refetchType) return Promise.resolve(); @@ -54543,11 +58410,11 @@ ...t, cancelRefetch: t?.cancelRefetch ?? !0 }, - r = FE.batch((() => this.#b.findAll(e).filter((e => !e.isDisabled())).map((e => { + r = vP.batch((() => this.#b.findAll(e).filter((e => !e.isDisabled())).map((e => { let t = e.fetch(void 0, n); - return n.throwOnError || (t = t.catch(jE.ZT)), "paused" === e.state.fetchStatus ? Promise.resolve() : t + return n.throwOnError || (t = t.catch(gP.ZT)), "paused" === e.state.fetchStatus ? Promise.resolve() : t })))); - return Promise.all(r).then(jE.ZT) + return Promise.all(r).then(gP.ZT) } fetchQuery(e) { const t = this.defaultQueryOptions(e); @@ -54556,13 +58423,13 @@ return n.isStaleByTime(t.staleTime) ? n.fetch(t) : Promise.resolve(n.state.data) } prefetchQuery(e) { - return this.fetchQuery(e).then(jE.ZT).catch(jE.ZT) + return this.fetchQuery(e).then(gP.ZT).catch(gP.ZT) } fetchInfiniteQuery(e) { - return e.behavior = XE(e.pages), this.fetchQuery(e) + return e.behavior = TP(e.pages), this.fetchQuery(e) } prefetchInfiniteQuery(e) { - return this.fetchInfiniteQuery(e).then(jE.ZT).catch(jE.ZT) + return this.fetchInfiniteQuery(e).then(gP.ZT).catch(gP.ZT) } resumePausedMutations() { return this.#g.resumePausedMutations() @@ -54580,7 +58447,7 @@ this.#o = e } setQueryDefaults(e, t) { - this.#x.set((0, jE.Ym)(e), { + this.#x.set((0, gP.Ym)(e), { queryKey: e, defaultOptions: t }) @@ -54589,14 +58456,14 @@ const t = [...this.#x.values()]; let n = {}; return t.forEach((t => { - (0, jE.to)(e, t.queryKey) && (n = { + (0, gP.to)(e, t.queryKey) && (n = { ...n, ...t.defaultOptions }) })), n } setMutationDefaults(e, t) { - this.#k.set((0, jE.Ym)(e), { + this.#k.set((0, gP.Ym)(e), { mutationKey: e, defaultOptions: t }) @@ -54605,7 +58472,7 @@ const t = [...this.#k.values()]; let n = {}; return t.forEach((t => { - (0, jE.to)(e, t.mutationKey) && (n = { + (0, gP.to)(e, t.mutationKey) && (n = { ...n, ...t.defaultOptions }) @@ -54619,7 +58486,7 @@ ...e, _defaulted: !0 }; - return t.queryHash || (t.queryHash = (0, jE.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, gP.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 : { @@ -54641,32 +58508,32 @@ refetchOnReconnect: "always" } }, - mutationCache: new ZE({ + mutationCache: new PP({ onError: async e => { - await tI(e), await iI(e), window.launcherAPI.log.error("[Mutation] Error: ", e) + await LP(e), await MP(e), window.launcherAPI.log.error("[Mutation] Error: ", e) } }), - queryCache: new YE({ + queryCache: new CP({ onError: async e => { - await tI(e), await iI(e), window.launcherAPI.log.error("[Query] Error: ", e) + await LP(e), await MP(e), window.launcherAPI.log.error("[Query] Error: ", e) } }) - }), oI = (e, t) => ({ + }), zP = (e, t) => ({ agreements: { warningHasBeenAccepted: !1, actions: { checkWarnings: async () => { const n = t(); try { - const t = await aI.fetchQuery({ + const t = await FP.fetchQuery({ queryKey: ["warnings"], - queryFn: async () => yE.agreements.getWarnings() + queryFn: async () => ZA.agreements.getWarnings() }), r = t ? t[0] : null; if (!(r && r.id && !n.agreements.warningHasBeenAccepted)) return !0; - const i = await aI.fetchQuery((e => ({ + const i = await FP.fetchQuery((e => ({ queryKey: ["warningInfo"], - queryFn: async () => yE.agreements.getWarningInfo(e) + queryFn: async () => ZA.agreements.getWarningInfo(e) }))(r.id)), { title: a, @@ -54686,13 +58553,13 @@ checkAgreements: async () => { const e = t(); try { - const t = await aI.fetchQuery({ + const t = await FP.fetchQuery({ queryKey: ["agreements"], - queryFn: async () => yE.agreements.checkAgreements() + queryFn: async () => ZA.agreements.checkAgreements() }); return t.auth ? await e.agreements.actions.checkWarnings() : t.auth } catch (n) { - return n instanceof RS && e.agreements.actions.checkAgreementsFailure(n) + return n instanceof cA && e.agreements.actions.checkAgreementsFailure(n) } }, checkAgreementsFailure: async e => { @@ -54700,7 +58567,7 @@ const r = null !== (n = e.payload.data.agreements) && void 0 !== n ? n : [], i = t(); try { - const e = [eE.EULA, eE.TOS, eE.DISCLAIMER].map((e => r.filter((t => t.type === e)))).reduce(((e, t) => e.concat(t)), []); + const e = [RA.EULA, RA.TOS, RA.DISCLAIMER].map((e => r.filter((t => t.type === e)))).reduce(((e, t) => e.concat(t)), []); return await i.agreements.actions.displayAgreement(e) } catch (a) { return console.error("[Agreements] - error", a), !1 @@ -54716,9 +58583,9 @@ } }))); try { - const e = await aI.fetchQuery(((e, t) => ({ + const e = await FP.fetchQuery(((e, t) => ({ queryKey: ["agreementInfo"], - queryFn: async () => yE.agreements.getAgreementInfo(e, t) + queryFn: async () => ZA.agreements.getAgreementInfo(e, t) }))(i.id, i.type)), { title: t, @@ -54727,9 +58594,9 @@ } = e, s = await r.dialog.actions.showAgreementsDialog(t, n, o); if (s.resolved) { - await aI.fetchQuery(((e, t) => ({ + await FP.fetchQuery(((e, t) => ({ queryKey: ["agreementAccept"], - queryFn: async () => yE.agreements.acceptAgreement(e, t) + queryFn: async () => ZA.agreements.acceptAgreement(e, t) }))(i.id, i.type)); const e = a; return e.length > 0 ? await r.agreements.actions.displayAgreement(e) : await r.agreements.actions.checkWarnings() @@ -54737,14 +58604,14 @@ return s.resolved } catch (o) { if (o instanceof Error) { - const e = new yw.GenericError({ - code: yw.errorsNames.ERR_DISPLAY_AGREEMENT, + const e = new YI.GenericError({ + code: YI.errorsNames.ERR_DISPLAY_AGREEMENT, message: `[Agreement] displaying agreements error ${o}`, payload: { error: o } }); - await xE(kE(e)) + await eP(tP(e)) } return console.error("[Agreements] - error displaying agreements", o), !1 } @@ -54752,7 +58619,7 @@ } } }); - let sI = e => { + let VP = e => { var { title: t, titleId: n @@ -54802,7 +58669,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" })) }, - lI = e => { + UP = e => { var { title: t, titleId: n @@ -54852,7 +58719,57 @@ 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" })) }, - cI = e => { + BP = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "M8.782 4.876a1.002 1.002 0 0 0-1.564 0L3.226 9.85c-.532.662-.064 1.65.782 1.65h7.984c.846 0 1.314-.988.782-1.65L8.782 4.876Z" + })) + }, + GP = e => { var { title: t, titleId: n @@ -54902,7 +58819,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" })) }, - uI = e => { + $P = e => { var { title: t, titleId: n @@ -54954,7 +58871,7 @@ clipRule: "evenodd" })) }, - dI = e => { + qP = e => { var { title: t, titleId: n @@ -55004,7 +58921,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" })) }, - pI = e => { + WP = e => { var { title: t, titleId: n @@ -55056,7 +58973,7 @@ clipRule: "evenodd" })) }, - hI = e => { + HP = e => { var { title: t, titleId: n @@ -55106,7 +59023,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" })) }, - fI = e => { + KP = e => { var { title: t, titleId: n @@ -55160,7 +59077,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" })) }, - mI = e => { + YP = e => { var { title: t, titleId: n @@ -55214,7 +59131,7 @@ clipRule: "evenodd" })) }, - gI = e => { + QP = e => { var { title: t, titleId: n @@ -55268,7 +59185,7 @@ clipRule: "evenodd" })) }, - vI = e => { + ZP = e => { var { title: t, titleId: n @@ -55318,7 +59235,7 @@ d: "M1.716 13.5a.75.75 0 0 0 0 1.5H14.25a.75.75 0 1 0-.023-1.5H1.716Z" })) }, - yI = e => { + XP = e => { var { title: t, titleId: n @@ -55370,7 +59287,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" })) }, - _I = e => { + JP = e => { var { title: t, titleId: n @@ -55420,7 +59337,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" })) }, - bI = e => { + eT = e => { var { title: t, titleId: n @@ -55472,7 +59389,7 @@ clipRule: "evenodd" })) }, - xI = e => { + tT = e => { var { title: t, titleId: n @@ -55522,7 +59439,7 @@ d: "M2.5 8a5.5 5.5 0 0 1 9.938-3.25H11.25a.75.75 0 0 0 0 1.5h3A.75.75 0 0 0 15 5.5v-3a.75.75 0 0 0-1.5 0v1.17a7 7 0 1 0 1.41 5.45.75.75 0 1 0-1.48-.24A5.502 5.502 0 0 1 2.5 8Z" })) }, - kI = e => { + nT = e => { var { title: t, titleId: n @@ -55578,7 +59495,7 @@ clipRule: "evenodd" })) }, - wI = e => { + rT = e => { var { title: t, titleId: n @@ -55632,7 +59549,7 @@ d: "M8.75 12.181a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm-1.5-5.5a.75.75 0 1 1 1.5 0v3.25a.75.75 0 0 1-1.5 0v-3.25Z" })) }, - SI = e => { + iT = e => { var { title: t, titleId: n @@ -55682,7 +59599,7 @@ d: "M4.276 1.623a.75.75 0 0 1 1.053.13l.413.53a10.692 10.692 0 0 1 2.31-.251c2.531 0 4.857.883 6.685 2.357a.709.709 0 0 1 .088 1.003c-.273.336-.773.367-1.113.099a9.115 9.115 0 0 0-5.66-1.96c-.43 0-.853.03-1.267.088l1.202 1.54h.078c1.792 0 3.437.626 4.73 1.672.299.242.322.68.08.978-.279.343-.792.364-1.142.095a5.999 5.999 0 0 0-2.486-1.129l2.937 3.764A.75.75 0 0 1 11 11.46L4.146 2.676a.75.75 0 0 1 .13-1.053ZM1.257 4.48a10.672 10.672 0 0 1 1.79-1.201l.939 1.203c-.605.3-1.17.665-1.69 1.086-.337.273-.838.248-1.115-.085a.709.709 0 0 1 .076-1.003Zm3.759 1.323a7.529 7.529 0 0 0-1.761 1.094c-.296.246-.313.683-.067.978.283.34.796.354 1.143.08a6.017 6.017 0 0 1 1.644-.923l-.96-1.23Zm2.036 2.609a4.386 4.386 0 0 0-1.808.928c-.27.23-.273.634-.045.908.297.356.852.335 1.232.067A2.886 2.886 0 0 1 8.1 9.787h.024L7.052 8.412ZM8 13.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" })) }; - const EI = ({ + const aT = ({ launcherVersion: e = "unknown", patcherVersion: t = "unknown", platformMaster: n = "prod", @@ -55695,7 +59612,7 @@ isConnectionPopoverOpened: c = !1, nonOperationalStatus: u, connection: d = { - mode: navigator.onLine ? yw.ConnectionMode.ONLINE : yw.ConnectionMode.NO_CONNECTION, + mode: navigator.onLine ? YI.ConnectionMode.ONLINE : YI.ConnectionMode.NO_CONNECTION, needToBeCheck: !1 }, animations: p = { @@ -55723,23 +59640,23 @@ connection: d, animations: p }), - II = (e, t) => ({ + oT = (e, t) => ({ application: { - ...EI({}), + ...aT({}), actions: { initializeApplication: async () => { const { launcherVersion: t, patcherVersion: n, environment: r - } = await window.launcherAPI.game.getGlobalConfig(), i = await window.launcherAPI.game.isGameProcessRunning(), a = await window.launcherAPI.store.getValueFromStore("application.connection.lastTimeOnline"), o = EI({ + } = await window.launcherAPI.game.getGlobalConfig(), i = await window.launcherAPI.game.isGameProcessRunning(), a = await window.launcherAPI.store.getValueFromStore("application.connection.lastTimeOnline"), o = aT({ launcherVersion: t, patcherVersion: n, platformMaster: r, isGameRunning: i, isAppInitialized: !0, connection: { - mode: a ? yw.ConnectionMode.NO_CONNECTION : yw.ConnectionMode.ONLINE, + mode: a ? YI.ConnectionMode.NO_CONNECTION : YI.ConnectionMode.ONLINE, lastTimeOnline: a, needToBeCheck: !0 } @@ -55782,7 +59699,7 @@ connection: r } } = t(); - n && r.mode === yw.ConnectionMode.ONLINE || e((e => ({ + n && r.mode === YI.ConnectionMode.ONLINE || e((e => ({ application: { ...e.application, isConnectionPopoverOpened: n @@ -55814,7 +59731,7 @@ resetApplication: () => e((e => ({ application: { ...e.application, - ...EI({}), + ...aT({}), launcherVersion: e.application.launcherVersion, patcherVersion: e.application.patcherVersion, platformMaster: e.application.platformMaster @@ -55840,7 +59757,7 @@ connection: e } } = t(); - return e.mode !== yw.ConnectionMode.ONLINE + return e.mode !== YI.ConnectionMode.ONLINE }, isOfflineSessionValid: () => { const { @@ -55850,7 +59767,7 @@ } } } = t(); - return (null !== e && void 0 !== e ? e : -1) + yw.configuration.authenticationExpiry > Date.now() + return (null !== e && void 0 !== e ? e : -1) + YI.configuration.authenticationExpiry > Date.now() }, getRemainingTimeOfOfflineSession: () => { const { @@ -55863,10 +59780,10 @@ device: n } } = t(); - if (!(n && (void 0 !== n.expires || n.duration !== XS.SESSION)) || void 0 === e) return; - const r = e + yw.configuration.authenticationExpiry, + if (!(n && (void 0 !== n.expires || n.duration !== AA.SESSION)) || void 0 === e) return; + const r = e + YI.configuration.authenticationExpiry, i = n.expires; - return Pw(new Date(i < r ? i : r).toDateString(), "relative", {}) + return sC(new Date(i < r ? i : r).toDateString(), "relative", {}) }, checkConnection: () => { const { @@ -55915,11 +59832,11 @@ }, toasts: r } = t(); - n.mode !== yw.ConnectionMode.ONLINE && n.mode !== yw.ConnectionMode.OFFLINE && (e((e => ({ + n.mode !== YI.ConnectionMode.ONLINE && n.mode !== YI.ConnectionMode.OFFLINE && (e((e => ({ application: { ...e.application, connection: { - mode: yw.ConnectionMode.ONLINE, + mode: YI.ConnectionMode.ONLINE, lastTimeOnline: void 0, needToBeCheck: !1 } @@ -55940,14 +59857,14 @@ }, user: a } = t(); - if (i.mode === yw.ConnectionMode.NO_CONNECTION && !i.needToBeCheck) return; - if (i.mode === yw.ConnectionMode.OFFLINE) return; + if (i.mode === YI.ConnectionMode.NO_CONNECTION && !i.needToBeCheck) return; + if (i.mode === YI.ConnectionMode.OFFLINE) return; const o = null !== (n = i.lastTimeOnline) && void 0 !== n ? n : Date.now(); e((e => ({ application: { ...e.application, connection: { - mode: yw.ConnectionMode.NO_CONNECTION, + mode: YI.ConnectionMode.NO_CONNECTION, lastTimeOnline: o, needToBeCheck: !1 } @@ -55964,23 +59881,23 @@ n.actions.add({ duration: 6e3, type: "informative", - icon: mI, + icon: YP, title: _e.t("connection_toast_warning_lost_connection_title", { ns: "connection" }), - children: (0, _w.jsxs)(cl, { + children: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { as: "span", children: _e.t("connection_toast_warning_lost_connection_content", { ns: "connection" }) - }), r && (0, _w.jsxs)(Ys, { + }), r && (0, QI.jsxs)(gs, { as: "span", children: [_e.t("connection_toast_warning_lost_connection_remaining", { ns: "connection" - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { as: "span", variant: "body-m-bold", children: " " + e.getRemainingTimeOfOfflineSession() @@ -56014,7 +59931,7 @@ } } }), - OI = (e, t) => ({ + sT = (e, t) => ({ authentication: { captcha: null, actions: { @@ -56027,7 +59944,7 @@ }))) }, fetchCaptcha: async () => { - const t = await yE.authentication.getCaptcha(); + const t = await ZA.authentication.getCaptcha(); e((e => ({ authentication: { ...e.authentication, @@ -56044,116 +59961,116 @@ } } }), - CI = "autoUpdate", - AI = (e, t = {}) => xt.t(e, { - ns: CI, + lT = "autoUpdate", + cT = (e, t = {}) => xt.t(e, { + ns: lT, ...t }), - PI = (e, t) => { + uT = (e, t) => { var n; const { closeDialog: r } = e.autoUpdate.actions, i = null === (n = window.launcherAPI.autoUpdate) || void 0 === n ? void 0 : n.updateAndRestart, a = { open: !0, alert: !0, - close: AI("auto_update_dialog_close"), - title: AI("auto_update_dialog_title"), + close: cT("auto_update_dialog_close"), + title: cT("auto_update_dialog_title"), onOpenChange: () => { r() } }; switch (t.state) { - case yw.AutoUpdateDialogStates.AVAILABLE: + case YI.AutoUpdateDialogStates.AVAILABLE: return { - ...a, children: (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsx)(Ys, { + ...a, children: (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsx)(gs, { variant: "emphasis-s", as: "h4", - children: AI("auto_update_dialog_sub_title", { + children: cT("auto_update_dialog_sub_title", { version: t.updateInfo.version }) - }), (0, _w.jsx)(ft, { + }), (0, QI.jsx)(ft, { i18nKey: "auto_update_dialog_update_available_content", t: xt.t, - ns: CI, - components: [(0, _w.jsx)("br", {})] + ns: lT, + components: [(0, QI.jsx)("br", {})] })] }), actions: [{ - label: AI("auto_update_dialog_update_available_action_secondary_label") + label: cT("auto_update_dialog_update_available_action_secondary_label") }, { - label: AI("auto_update_dialog_update_available_action_primary_label"), + label: cT("auto_update_dialog_update_available_action_primary_label"), onClick: () => i() }] }; - case yw.AutoUpdateDialogStates.ERROR: + case YI.AutoUpdateDialogStates.ERROR: return { - ...a, type: "negative", children: (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsx)(Ys, { + ...a, type: "negative", children: (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsx)(gs, { variant: "emphasis-s", as: "h4", - children: AI("auto_update_dialog_sub_title", { + children: cT("auto_update_dialog_sub_title", { version: t.updateInfo.version }) - }), (0, _w.jsx)(ft, { + }), (0, QI.jsx)(ft, { i18nKey: "auto_update_dialog_update_install_failed_content", t: xt.t, - ns: CI, - components: [(0, _w.jsx)(zm, { - href: yw.configuration.supportUrl, + ns: lT, + components: [(0, QI.jsx)(am, { + href: YI.configuration.supportUrl, external: !0 })] })] }), actions: [{ - label: AI("auto_update_dialog_update_install_failed_action_secondary_label") + label: cT("auto_update_dialog_update_install_failed_action_secondary_label") }, { - label: AI("auto_update_dialog_update_install_failed_action_primary_label"), + label: cT("auto_update_dialog_update_install_failed_action_primary_label"), onClick: () => i() }] }; - case yw.AutoUpdateDialogStates.QUIT_GAME: + case YI.AutoUpdateDialogStates.QUIT_GAME: return { - ...a, type: "negative", children: (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsx)(Ys, { + ...a, type: "negative", children: (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsx)(gs, { variant: "emphasis-s", as: "h4", - children: AI("auto_update_dialog_sub_title", { + children: cT("auto_update_dialog_sub_title", { version: t.updateInfo.version }) - }), AI("auto_update_dialog_update_quit_game_content")] + }), cT("auto_update_dialog_update_quit_game_content")] }), actions: [{ - label: AI("auto_update_dialog_update_quit_game_action_secondary_label") + label: cT("auto_update_dialog_update_quit_game_action_secondary_label") }, { - label: AI("auto_update_dialog_update_quit_game_action_primary_label"), + label: cT("auto_update_dialog_update_quit_game_action_primary_label"), onClick: () => i(!0) }] }; default: return { - ...a, children: (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsx)(Ys, { + ...a, children: (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsx)(gs, { variant: "emphasis-s", as: "h4", - children: AI("auto_update_dialog_sub_title", { + children: cT("auto_update_dialog_sub_title", { version: t.updateInfo.version }) - }), (0, _w.jsx)(ft, { + }), (0, QI.jsx)(ft, { i18nKey: "auto_update_dialog_no_update_content", t: xt.t, - ns: CI, - components: [(0, _w.jsx)("br", {})] + ns: lT, + components: [(0, QI.jsx)("br", {})] })] }), actions: [{ - label: AI("auto_update_dialog_no_update_action_primary_label") + label: cT("auto_update_dialog_no_update_action_primary_label") }] } } }, - TI = { + dT = { dialog: {} }, - RI = (e, t) => ({ + pT = (e, t) => ({ autoUpdate: { - ...TI, + ...dT, actions: { async closeDialog() { var n; @@ -56170,20 +60087,20 @@ e({ autoUpdate: { ...r.autoUpdate, - dialog: PI(r, n) + dialog: uT(r, n) } }) } } } }), - DI = ({ + hT = ({ children: e }) => { - const t = pR((e => e.application)), - n = pR((e => e.settings)), - r = pR((e => e.window)), - i = pR((e => e.user)), + const t = Wj((e => e.application)), + n = Wj((e => e.settings)), + r = Wj((e => e.window)), + i = Wj((e => e.user)), { t: a } = bt("discover"), @@ -56197,8 +60114,8 @@ }), l); return () => clearTimeout(e) } - }), [o]), (0, _w.jsx)(_w.Fragment, { - children: (0, _w.jsx)(ov, { + }), [o]), (0, QI.jsx)(QI.Fragment, { + children: (0, QI.jsx)(Og, { open: s, onOpenChange: e => { e || (t.actions.setDiscoverStarted(!1), n.actions.saveApplicationSettings({ @@ -56234,31 +60151,31 @@ }) }) }, - LI = JSON.parse('{"v":"5.9.0","fr":29.9700012207031,"ip":0,"op":180.00000733155,"w":16,"h":16,"nm":"wifi-off","ddd":0,"assets":[{"id":"comp_0","nm":"wifi-off_export","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Bar","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8.16,6.619,0],"ix":2,"l":2},"a":{"a":0,"k":[4.162,5.114,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]],"o":[[0,0],[0,0]],"v":[[-3.412,-4.365],[3.412,4.365]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[4.162,5.114],"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":140,"s":[0]},{"t":150.000006109625,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":18,"s":[0]},{"t":28.0000011404634,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"Waves 6","refId":"comp_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],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[5.938,0.188],[-5.5,2.875],[2.593,9.624],[4.941,5.621],[2.142,2.005],[3.63,1.404],[12.72,12.599],[16.149,12.425],[18.625,6.812],[21.938,0.188]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":20.0000008146167,"op":142.000005783779,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Waves 9","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"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.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":149,"s":[0]},{"t":154.000006272549,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":142.000005783779,"op":229.000009327361,"st":142.000005783779,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Waves 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"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":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":12,"s":[0]},{"t":17.0000006924242,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":20.0000008146167,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":0,"nm":"Waves 5","refId":"comp_2","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],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[1.188,5.5],[2.438,10.875],[6.938,8.281],[4.75,4.906],[6.188,4.25],[13.938,16],[14,11.375],[15.812,6.125],[16,0]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":22.0000008960784,"op":144.00000586524,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Waves 8","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"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":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":152,"s":[0]},{"t":157.000006394741,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 2","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":144.00000586524,"op":229.000009327361,"st":144.00000586524,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Waves 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"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":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":8,"s":[0]},{"t":13.0000005295009,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":22.0000008960784,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":0,"nm":"Waves 4","refId":"comp_3","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],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[2.562,9.125],[4.938,12.5],[9.998,11.721],[6.481,7.588],[7.843,7.154],[14,14.75],[16,0]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":24.00000097754,"op":146.000005946702,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Waves 7","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"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 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":156,"s":[0]},{"t":161.000006557664,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 2","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":146.000005946702,"op":229.000009327361,"st":146.000005946702,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Waves","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"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 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":4,"s":[0]},{"t":9.00000036657752,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":24.00000097754,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Circle","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,12.513,0],"ix":2,"l":2},"a":{"a":0,"k":[1.237,1.237,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.49,0.49,0.49],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":5,"s":[100,100,100]},{"i":{"x":[0.49,0.49,0.49],"y":[1,1,1]},"o":{"x":[0.51,0.51,0.51],"y":[0,0,0]},"t":160,"s":[100,100,100]},{"t":166.000006761319,"s":[0,0,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-0.545],[0.545,0],[0,0.545],[-0.545,0]],"o":[[0,0.545],[-0.545,0],[0,-0.545],[0.545,0]],"v":[[0.987,0],[0,0.987],[-0.987,0],[0,-0.987]],"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.237,1.237],"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":180.00000733155,"st":0,"bm":0}]},{"id":"comp_1","nm":"Waves 6","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 6","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"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":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-1.00000004073083,"op":181.000007372281,"st":0,"bm":0}]},{"id":"comp_2","nm":"Waves 5","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 5","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"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":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0}]},{"id":"comp_3","nm":"Waves 4","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"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 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-3.00000012219251,"op":181.000007372281,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"wifi-off_content","refId":"comp_0","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":62,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":64,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":66,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":68,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":70,"s":[10]},{"t":72.0000029326201,"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,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":16,"h":16,"ip":0,"op":180.00000733155,"st":0,"bm":0}],"markers":[]}'), - NI = () => { + fT = JSON.parse('{"v":"5.9.0","fr":29.9700012207031,"ip":0,"op":180.00000733155,"w":16,"h":16,"nm":"wifi-off","ddd":0,"assets":[{"id":"comp_0","nm":"wifi-off_export","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Bar","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8.16,6.619,0],"ix":2,"l":2},"a":{"a":0,"k":[4.162,5.114,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]],"o":[[0,0],[0,0]],"v":[[-3.412,-4.365],[3.412,4.365]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[4.162,5.114],"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":140,"s":[0]},{"t":150.000006109625,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":18,"s":[0]},{"t":28.0000011404634,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"Waves 6","refId":"comp_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],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[5.938,0.188],[-5.5,2.875],[2.593,9.624],[4.941,5.621],[2.142,2.005],[3.63,1.404],[12.72,12.599],[16.149,12.425],[18.625,6.812],[21.938,0.188]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":20.0000008146167,"op":142.000005783779,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Waves 9","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"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.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":149,"s":[0]},{"t":154.000006272549,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":142.000005783779,"op":229.000009327361,"st":142.000005783779,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Waves 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"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":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":12,"s":[0]},{"t":17.0000006924242,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":20.0000008146167,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":0,"nm":"Waves 5","refId":"comp_2","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],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[1.188,5.5],[2.438,10.875],[6.938,8.281],[4.75,4.906],[6.188,4.25],[13.938,16],[14,11.375],[15.812,6.125],[16,0]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":22.0000008960784,"op":144.00000586524,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Waves 8","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"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":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":152,"s":[0]},{"t":157.000006394741,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 2","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":144.00000586524,"op":229.000009327361,"st":144.00000586524,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Waves 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"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":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":8,"s":[0]},{"t":13.0000005295009,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":22.0000008960784,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":0,"nm":"Waves 4","refId":"comp_3","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],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[2.562,9.125],[4.938,12.5],[9.998,11.721],[6.481,7.588],[7.843,7.154],[14,14.75],[16,0]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":24.00000097754,"op":146.000005946702,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Waves 7","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"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 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":156,"s":[0]},{"t":161.000006557664,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 2","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":146.000005946702,"op":229.000009327361,"st":146.000005946702,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Waves","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"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 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":4,"s":[0]},{"t":9.00000036657752,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":24.00000097754,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Circle","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,12.513,0],"ix":2,"l":2},"a":{"a":0,"k":[1.237,1.237,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.49,0.49,0.49],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":5,"s":[100,100,100]},{"i":{"x":[0.49,0.49,0.49],"y":[1,1,1]},"o":{"x":[0.51,0.51,0.51],"y":[0,0,0]},"t":160,"s":[100,100,100]},{"t":166.000006761319,"s":[0,0,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-0.545],[0.545,0],[0,0.545],[-0.545,0]],"o":[[0,0.545],[-0.545,0],[0,-0.545],[0.545,0]],"v":[[0.987,0],[0,0.987],[-0.987,0],[0,-0.987]],"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.237,1.237],"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":180.00000733155,"st":0,"bm":0}]},{"id":"comp_1","nm":"Waves 6","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 6","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"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":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-1.00000004073083,"op":181.000007372281,"st":0,"bm":0}]},{"id":"comp_2","nm":"Waves 5","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 5","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"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":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0}]},{"id":"comp_3","nm":"Waves 4","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,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.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"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":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"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 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-3.00000012219251,"op":181.000007372281,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"wifi-off_content","refId":"comp_0","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":62,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":64,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":66,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":68,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":70,"s":[10]},{"t":72.0000029326201,"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,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":16,"h":16,"ip":0,"op":180.00000733155,"st":0,"bm":0}],"markers":[]}'), + mT = () => { const { t: e - } = bt("connection"), t = pR((e => e.application)), { + } = bt("connection"), t = Wj((e => e.application)), { reduceMotion: { unessentialAnimationsDisabled: n } - } = Ns(); - return (0, _w.jsx)(ag, { + } = ts(); + return (0, QI.jsx)(Em, { title: e("connection_title"), offset: "large", placement: "bottom-end", - trigger: (0, _w.jsx)(dl, { + trigger: (0, QI.jsx)(Rs, { "data-test-id": "connection", - icon: (0, _w.jsx)(Ks, { - source: n ? SI : LI + icon: (0, QI.jsx)(ms, { + source: n ? iT : fT }) }), open: t.isConnectionPopoverOpened, onOpenChange: e => { t.actions.setConnectionPopoverOpened(e) }, - footer: (0, _w.jsx)(_w.Fragment, { - children: t.connection.mode === yw.ConnectionMode.NO_CONNECTION && (0, _w.jsx)(el, { + footer: (0, QI.jsx)(QI.Fragment, { + children: t.connection.mode === YI.ConnectionMode.NO_CONNECTION && (0, QI.jsx)(xs, { size: "small", variant: "plain", loading: !0, @@ -56266,35 +60183,35 @@ children: e("connection_offline_trying_to_reconnect") }) }), - children: (0, _w.jsx)(cl, { + children: (0, QI.jsx)(Ps, { vertical: !0, gap: "100", children: e("connection_offline_information") }) }) }, - MI = 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":[]}'); + gT = 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":[]}'); - function jI() { - return jI = Object.assign ? Object.assign.bind() : function(e) { + function vT() { + return vT = 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 - }, jI.apply(this, arguments) + }, vT.apply(this, arguments) } - var FI; + var yT; ! function(e) { e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE" - }(FI || (FI = {})); - const zI = "popstate"; + }(yT || (yT = {})); + const _T = "popstate"; - function VI(e, t) { + function bT(e, t) { if (!1 === e || null === e || "undefined" === typeof e) throw new Error(t) } - function UI(e, t) { + function xT(e, t) { if (!e) { "undefined" !== typeof console && console.warn(t); try { @@ -56303,7 +60220,7 @@ } } - function BI(e, t) { + function kT(e, t) { return { usr: e.state, key: e.key, @@ -56311,18 +60228,18 @@ } } - function GI(e, t, n, r) { - return void 0 === n && (n = null), jI({ + function wT(e, t, n, r) { + return void 0 === n && (n = null), vT({ pathname: "string" === typeof e ? e : e.pathname, search: "", hash: "" - }, "string" === typeof t ? $I(t) : t, { + }, "string" === typeof t ? ET(t) : t, { state: n, key: t && t.key || r || Math.random().toString(36).substr(2, 8) }) } - function WI(e) { + function ST(e) { let { pathname: t = "/", search: n = "", @@ -56331,7 +60248,7 @@ return n && "?" !== n && (t += "?" === n.charAt(0) ? n : "?" + n), r && "#" !== r && (t += "#" === r.charAt(0) ? r : "#" + r), t } - function $I(e) { + function ET(e) { let t = {}; if (e) { let n = e.indexOf("#"); @@ -56342,12 +60259,12 @@ return t } - function qI(e, t, n, r) { + function OT(e, t, n, r) { void 0 === r && (r = {}); let { window: i = document.defaultView, v5Compat: a = !1 - } = r, o = i.history, s = FI.Pop, l = null, c = u(); + } = r, o = i.history, s = yT.Pop, l = null, c = u(); function u() { return (o.state || { @@ -56356,7 +60273,7 @@ } function d() { - s = FI.Pop; + s = yT.Pop; let e = u(), t = null == e ? null : e - c; c = e, l && l({ @@ -56368,10 +60285,10 @@ function p(e) { let t = "null" !== i.location.origin ? i.location.origin : i.location.href, - n = "string" === typeof e ? e : WI(e); - return VI(t, "No window.location.(origin|href) available to create URL for href: " + n), new URL(n, t) + n = "string" === typeof e ? e : ST(e); + return bT(t, "No window.location.(origin|href) available to create URL for href: " + n), new URL(n, t) } - null == c && (c = 0, o.replaceState(jI({}, o.state, { + null == c && (c = 0, o.replaceState(vT({}, o.state, { idx: c }), "")); let h = { @@ -56383,8 +60300,8 @@ }, listen(e) { if (l) throw new Error("A history only accepts one active listener"); - return i.addEventListener(zI, d), l = e, () => { - i.removeEventListener(zI, d), l = null + return i.addEventListener(_T, d), l = e, () => { + i.removeEventListener(_T, d), l = null } }, createHref: e => t(i, e), @@ -56398,10 +60315,10 @@ } }, push: function(e, t) { - s = FI.Push; - let r = GI(h.location, e, t); + s = yT.Push; + let r = wT(h.location, e, t); n && n(r, e), c = u() + 1; - let d = BI(r, c), + let d = kT(r, c), p = h.createHref(r); try { o.pushState(d, "", p) @@ -56416,10 +60333,10 @@ }) }, replace: function(e, t) { - s = FI.Replace; - let r = GI(h.location, e, t); + s = yT.Replace; + let r = wT(h.location, e, t); n && n(r, e), c = u(); - let i = BI(r, c), + let i = kT(r, c), d = h.createHref(r); o.replaceState(i, "", d), a && l && l({ action: s, @@ -56431,38 +60348,38 @@ }; return h } - var HI; + var IT; ! function(e) { e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error" - }(HI || (HI = {})); - const KI = new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]); + }(IT || (IT = {})); + const CT = new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]); - function YI(e, t, n, r) { + function AT(e, t, n, r) { return void 0 === n && (n = []), void 0 === r && (r = {}), e.map(((e, i) => { let a = [...n, i], o = "string" === typeof e.id ? e.id : a.join("-"); - if (VI(!0 !== e.index || !e.children, "Cannot specify children on an index route"), VI(!r[o], 'Found a route id collision on id "' + o + "\". Route id's must be globally unique within Data Router usages"), function(e) { + if (bT(!0 !== e.index || !e.children, "Cannot specify children on an index route"), bT(!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 = jI({}, e, t(e), { + let n = vT({}, e, t(e), { id: o }); return r[o] = n, n } { - let n = jI({}, e, t(e), { + let n = vT({}, e, t(e), { id: o, children: void 0 }); - return r[o] = n, e.children && (n.children = YI(e.children, t, a, r)), n + return r[o] = n, e.children && (n.children = AT(e.children, t, a, r)), n } })) } - function QI(e, t, n) { + function PT(e, t, n) { void 0 === n && (n = "/"); - let r = oO(("string" === typeof t ? $I(t) : t).pathname || "/", n); + let r = VT(("string" === typeof t ? ET(t) : t).pathname || "/", n); if (null == r) return null; - let i = ZI(e); + let i = TT(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])); @@ -56470,11 +60387,11 @@ }(e.routesMeta.map((e => e.childrenIndex)), t.routesMeta.map((e => e.childrenIndex))))) }(i); let a = null; - for (let o = 0; null == a && o < i.length; ++o) a = nO(i[o], aO(r)); + for (let o = 0; null == a && o < i.length; ++o) a = jT(i[o], zT(r)); return a } - function ZI(e, t, n, r) { + function TT(e, t, n, r) { void 0 === t && (t = []), void 0 === n && (n = []), void 0 === r && (r = ""); let i = (e, i, a) => { let o = { @@ -56483,42 +60400,42 @@ childrenIndex: i, route: e }; - o.relativePath.startsWith("/") && (VI(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 = uO([r, o.relativePath]), + o.relativePath.startsWith("/") && (bT(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 = $T([r, o.relativePath]), l = n.concat(o); - e.children && e.children.length > 0 && (VI(!0 !== e.index, 'Index routes must not have child routes. Please remove all child routes from route path "' + s + '".'), ZI(e.children, t, l, s)), (null != e.path || e.index) && t.push({ + e.children && e.children.length > 0 && (bT(!0 !== e.index, 'Index routes must not have child routes. Please remove all child routes from route path "' + s + '".'), TT(e.children, t, l, s)), (null != e.path || e.index) && t.push({ path: s, - score: tO(s, e.index), + score: NT(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 XI(e.path)) i(e, t, r); + for (let r of RT(e.path)) i(e, t, r); else i(e, t) })), t } - function XI(e) { + function RT(e) { let t = e.split("/"); if (0 === t.length) return []; let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, ""); if (0 === r.length) return i ? [a, ""] : [a]; - let o = XI(r.join("/")), + let o = RT(r.join("/")), s = []; return s.push(...o.map((e => "" === e ? a : [a, e].join("/")))), i && s.push(...o), s.map((t => e.startsWith("/") && "" === t ? "/" : t)) } - const JI = /^:\w+$/, - eO = e => "*" === e; + const DT = /^:\w+$/, + LT = e => "*" === e; - function tO(e, t) { + function NT(e, t) { let n = e.split("/"), r = n.length; - return n.some(eO) && (r += -2), t && (r += 2), n.filter((e => !eO(e))).reduce(((e, t) => e + (JI.test(t) ? 3 : "" === t ? 1 : 10)), r) + return n.some(LT) && (r += -2), t && (r += 2), n.filter((e => !LT(e))).reduce(((e, t) => e + (DT.test(t) ? 3 : "" === t ? 1 : 10)), r) } - function nO(e, t) { + function jT(e, t) { let { routesMeta: n } = e, r = {}, i = "/", a = []; @@ -56526,7 +60443,7 @@ let e = n[o], s = o === n.length - 1, l = "/" === i ? t : t.slice(i.length) || "/", - c = iO({ + c = FT({ path: e.relativePath, caseSensitive: e.caseSensitive, end: s @@ -56536,18 +60453,18 @@ let u = e.route; a.push({ params: r, - pathname: uO([i, c.pathname]), - pathnameBase: dO(uO([i, c.pathnameBase])), + pathname: $T([i, c.pathname]), + pathnameBase: qT($T([i, c.pathnameBase])), route: u - }), "/" !== c.pathnameBase && (i = uO([i, c.pathnameBase])) + }), "/" !== c.pathnameBase && (i = $T([i, c.pathnameBase])) } return a } - function rO(e, t) { + function MT(e, t) { void 0 === t && (t = {}); let n = e; - n.endsWith("*") && "*" !== n && !n.endsWith("/*") && (UI(!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("/*") && (xT(!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("/") ? "/" : "", i = e => null == e ? "" : "string" === typeof e ? e : String(e); return r + n.split(/\/+/).map(((e, n, r) => { @@ -56558,13 +60475,13 @@ if (a) { const [, e, n] = a; let r = t[e]; - return VI("?" === n || null != r, 'Missing ":' + e + '" param'), i(r) + return bT("?" === n || null != r, 'Missing ":' + e + '" param'), i(r) } return e.replace(/\?$/g, "") })).filter((e => !!e)).join("/") } - function iO(e, t) { + function FT(e, t) { "string" === typeof e && (e = { path: e, caseSensitive: !1, @@ -56573,7 +60490,7 @@ let [n, r] = function(e, t, n) { void 0 === t && (t = !1); void 0 === n && (n = !0); - UI("*" === 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(/\*$/, "/*") + '".'); + xT("*" === 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 = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:(\w+)(\?)?/g, ((e, t, n) => (r.push({ paramName: t, @@ -56604,7 +60521,7 @@ try { return decodeURIComponent(e) } catch (n) { - return UI(!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 xT(!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 }), {}), @@ -56614,15 +60531,15 @@ } } - function aO(e) { + function zT(e) { try { return decodeURI(e) } catch (t) { - return UI(!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 xT(!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 oO(e, t) { + function VT(e, t) { if ("/" === t) return e; if (!e.toLowerCase().startsWith(t.toLowerCase())) return null; let n = t.endsWith("/") ? t.length - 1 : t.length, @@ -56630,17 +60547,17 @@ return r && "/" !== r ? null : e.slice(n) || "/" } - function sO(e, t, n, r) { + function UT(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 lO(e) { + function BT(e) { return e.filter(((e, t) => 0 === t || e.route.path && e.route.path.length > 0)) } - function cO(e, t, n, r) { + function GT(e, t, n, r) { let i; - void 0 === r && (r = !1), "string" === typeof e ? i = $I(e) : (i = jI({}, e), VI(!i.pathname || !i.pathname.includes("?"), sO("?", "pathname", "search", i)), VI(!i.pathname || !i.pathname.includes("#"), sO("#", "pathname", "hash", i)), VI(!i.search || !i.search.includes("#"), sO("#", "search", "hash", i))); + void 0 === r && (r = !1), "string" === typeof e ? i = ET(e) : (i = vT({}, e), bT(!i.pathname || !i.pathname.includes("?"), UT("?", "pathname", "search", i)), bT(!i.pathname || !i.pathname.includes("#"), UT("#", "pathname", "hash", i)), bT(!i.search || !i.search.includes("#"), UT("#", "search", "hash", i))); let a, o = "" === e || "" === i.pathname, s = o ? "/" : i.pathname; if (null == s) a = n; @@ -56669,7 +60586,7 @@ pathname: n, search: r = "", hash: i = "" - } = "string" === typeof e ? $I(e) : e, a = n ? n.startsWith("/") ? n : function(e, t) { + } = "string" === typeof e ? ET(e) : e, a = 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) @@ -56677,46 +60594,46 @@ }(n, t) : t; return { pathname: a, - search: pO(r), - hash: hO(i) + search: WT(r), + hash: HT(i) } }(i, a), c = s && "/" !== s && s.endsWith("/"), u = (o || "." === s) && n.endsWith("/"); return l.pathname.endsWith("/") || !c && !u || (l.pathname += "/"), l } - const uO = e => e.join("/").replace(/\/\/+/g, "/"), - dO = e => e.replace(/\/+$/, "").replace(/^\/*/, "/"), - pO = e => e && "?" !== e ? e.startsWith("?") ? e : "?" + e : "", - hO = e => e && "#" !== e ? e.startsWith("#") ? e : "#" + e : ""; - class fO extends Error {} - const mO = function(e, t) { + const $T = e => e.join("/").replace(/\/\/+/g, "/"), + qT = e => e.replace(/\/+$/, "").replace(/^\/*/, "/"), + WT = e => e && "?" !== e ? e.startsWith("?") ? e : "?" + e : "", + HT = e => e && "#" !== e ? e.startsWith("#") ? e : "#" + e : ""; + class KT extends Error {} + const YT = 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, jI({}, n, { + return r.set("Location", e), new Response(null, vT({}, n, { headers: r })) }; - class gO { + class QT { 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 vO(e) { + function ZT(e) { return null != e && "number" === typeof e.status && "string" === typeof e.statusText && "boolean" === typeof e.internal && "data" in e } - const yO = ["post", "put", "patch", "delete"], - _O = new Set(yO), - bO = ["get", ...yO], - xO = new Set(bO), - kO = new Set([301, 302, 303, 307, 308]), - wO = new Set([307, 308]), - SO = { + const XT = ["post", "put", "patch", "delete"], + JT = new Set(XT), + eR = ["get", ...XT], + tR = new Set(eR), + nR = new Set([301, 302, 303, 307, 308]), + rR = new Set([307, 308]), + iR = { state: "idle", location: void 0, formMethod: void 0, @@ -56726,7 +60643,7 @@ json: void 0, text: void 0 }, - EO = { + aR = { state: "idle", data: void 0, formMethod: void 0, @@ -56736,34 +60653,34 @@ json: void 0, text: void 0 }, - IO = { + oR = { state: "unblocked", proceed: void 0, reset: void 0, location: void 0 }, - OO = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, - CO = e => ({ + sR = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, + lR = e => ({ hasErrorBoundary: Boolean(e.hasErrorBoundary) }), - AO = "remix-router-transitions"; + cR = "remix-router-transitions"; - function PO(e) { + function uR(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 i; - if (VI(e.routes.length > 0, "You must provide a non-empty routes array to createRouter"), e.mapRouteProperties) i = e.mapRouteProperties; + if (bT(e.routes.length > 0, "You must provide a non-empty routes array to createRouter"), e.mapRouteProperties) i = e.mapRouteProperties; else if (e.detectErrorBoundary) { let t = e.detectErrorBoundary; i = e => ({ hasErrorBoundary: t(e) }) - } else i = CO; + } else i = lR; let a, o = {}, - s = YI(e.routes, i, void 0, o), + s = AT(e.routes, i, void 0, o), l = e.basename || "/", - c = jI({ + c = vT({ v7_fetcherPersist: !1, v7_normalizeFormMethod: !1, v7_prependBasename: !1 @@ -56774,16 +60691,16 @@ h = null, f = null, m = null != e.hydrationData, - g = QI(s, e.history.location, l), + g = PT(s, e.history.location, l), v = null; if (null == g) { - let t = HO(404, { + let t = IR(404, { pathname: e.history.location.pathname }), { matches: n, route: r - } = qO(s); + } = OR(s); g = n, v = { [r.id]: t } @@ -56794,7 +60711,7 @@ location: e.history.location, matches: g, initialized: b, - navigation: SO, + navigation: iR, restoreScrollPosition: null == e.hydrationData && null, preventScrollReset: !1, revalidation: "idle", @@ -56804,12 +60721,12 @@ fetchers: new Map, blockers: new Map }, - k = FI.Pop, + k = yT.Pop, w = !1, S = !1, E = new Map, - I = null, - O = !1, + O = null, + I = !1, C = !1, A = [], P = [], @@ -56818,15 +60735,15 @@ D = -1, L = new Map, N = new Set, - M = new Map, j = new Map, + M = new Map, F = new Set, z = new Map, V = new Map, U = !1; function B(e, t) { - void 0 === t && (t = {}), x = jI({}, x, e); + void 0 === t && (t = {}), x = vT({}, x, e); let n = [], r = []; c.v7_fetcherPersist && x.fetchers.forEach(((e, t) => { @@ -56843,13 +60760,13 @@ let l, { flushSync: c } = void 0 === r ? {} : r, - u = null != x.actionData && null != x.navigation.formMethod && tC(x.navigation.formMethod) && "loading" === x.navigation.state && !0 !== (null == (i = t.state) ? void 0 : i._isRedirect); + u = null != x.actionData && null != x.navigation.formMethod && NR(x.navigation.formMethod) && "loading" === x.navigation.state && !0 !== (null == (i = t.state) ? void 0 : i._isRedirect); l = n.actionData ? Object.keys(n.actionData).length > 0 ? n.actionData : null : u ? x.actionData : null; - let d = n.loaderData ? WO(x.loaderData, n.loaderData, n.matches || [], n.errors) : x.loaderData, + let d = n.loaderData ? SR(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, IO)))); - let h, f = !0 === w || null != x.navigation.formMethod && tC(x.navigation.formMethod) && !0 !== (null == (o = t.state) ? void 0 : o._isRedirect); - if (a && (s = a, a = void 0), O || k === FI.Pop || (k === FI.Push ? e.history.push(t, t.state) : k === FI.Replace && e.history.replace(t, t.state)), k === FI.Pop) { + p.size > 0 && (p = new Map(p), p.forEach(((e, t) => p.set(t, oR)))); + let h, f = !0 === w || null != x.navigation.formMethod && NR(x.navigation.formMethod) && !0 !== (null == (o = t.state) ? void 0 : o._isRedirect); + if (a && (s = a, a = void 0), I || k === yT.Pop || (k === yT.Push ? e.history.push(t, t.state) : k === yT.Replace && e.history.replace(t, t.state)), k === yT.Pop) { let e = E.get(x.location.pathname); e && e.has(t.pathname) ? h = { currentLocation: x.location, @@ -56865,13 +60782,13 @@ nextLocation: t } } - B(jI({}, n, { + B(vT({}, n, { actionData: l, loaderData: d, historyAction: k, location: t, initialized: !0, - navigation: SO, + navigation: iR, revalidation: "idle", restoreScrollPosition: se(t, n.matches || x.matches), preventScrollReset: f, @@ -56879,10 +60796,10 @@ }), { viewTransitionOpts: h, flushSync: !0 === c - }), k = FI.Pop, w = !1, S = !1, O = !1, C = !1, A = [], P = [] + }), k = yT.Pop, w = !1, S = !1, I = !1, C = !1, A = [], P = [] } - async function W(t, n, r) { - _ && _.abort(), _ = null, k = t, O = !0 === (r && r.startUninterruptedRevalidation), + async function $(t, n, r) { + _ && _.abort(), _ = null, k = t, I = !0 === (r && r.startUninterruptedRevalidation), function(e, t) { if (p && f) { let n = oe(e, t); @@ -56891,16 +60808,16 @@ }(x.location, x.matches), w = !0 === (r && r.preventScrollReset), S = !0 === (r && r.enableViewTransition); let c = a || s, u = r && r.overrideNavigation, - d = QI(c, n, l), + d = PT(c, n, l), h = !0 === (r && r.flushSync); if (!d) { - let e = HO(404, { + let e = IR(404, { pathname: n.pathname }), { matches: t, route: r - } = qO(c); + } = OR(c); return ae(), void G(n, { matches: t, loaderData: {}, @@ -56917,17 +60834,17 @@ if (e.hash === t.hash) return !0; if ("" !== t.hash) return !0; return !1 - }(x.location, n) && !(r && r.submission && tC(r.submission.formMethod))) return void G(n, { + }(x.location, n) && !(r && r.submission && NR(r.submission.formMethod))) return void G(n, { matches: d }, { flushSync: h }); _ = new AbortController; - let m, g, v = zO(e.history, n, _.signal, r && r.submission); + let m, g, v = _R(e.history, n, _.signal, r && r.submission); if (r && r.pendingError) g = { - [$O(d).route.id]: r.pendingError + [ER(d).route.id]: r.pendingError }; - else if (r && r.submission && tC(r.submission.formMethod)) { + else if (r && r.submission && NR(r.submission.formMethod)) { let e = await async function(e, t, n, r, a) { void 0 === a && (a = {}); H(); @@ -56949,38 +60866,38 @@ }, { flushSync: !0 === a.flushSync }); - let u = aC(r, t); + let u = zR(r, t); if (u.route.action || u.route.lazy) { - if (s = await FO("action", e, u, r, o, i, l), e.signal.aborted) return { + if (s = await yR("action", e, u, r, o, i, l), e.signal.aborted) return { shortCircuited: !0 } } else s = { - type: HI.error, - error: HO(405, { + type: IT.error, + error: IR(405, { method: e.method, pathname: t.pathname, routeId: u.route.id }) }; - if (XO(s)) { + if (RR(s)) { let e; - return e = a && null != a.replace ? a.replace : s.location === x.location.pathname + x.location.search, await $(x, s, { + return e = a && null != a.replace ? a.replace : s.location === x.location.pathname + x.location.search, await q(x, s, { submission: n, replace: e }), { shortCircuited: !0 } } - if (ZO(s)) { - let e = $O(r, u.route.id); - return !0 !== (a && a.replace) && (k = FI.Push), { + if (TR(s)) { + let e = ER(r, u.route.id); + return !0 !== (a && a.replace) && (k = yT.Push), { pendingActionData: {}, pendingActionError: { [e.route.id]: s.error } } } - if (QO(s)) throw HO(400, { + if (PR(s)) throw IR(400, { type: "defer-action" }); return { @@ -56993,7 +60910,7 @@ flushSync: h }); if (e.shortCircuited) return; - m = e.pendingActionData, g = e.pendingActionError, u = sC(n, r.submission), h = !1, v = new Request(v.url, { + m = e.pendingActionData, g = e.pendingActionError, u = UR(n, r.submission), h = !1, v = new Request(v.url, { signal: v.signal }) } @@ -57002,13 +60919,13 @@ loaderData: b, errors: E } = await async function(t, n, r, i, o, c, u, d, p, h) { - let f = i || sC(n, o), - m = o || c || oC(f), + let f = i || UR(n, o), + m = o || c || VR(f), g = a || s, - [v, y] = LO(e.history, x, r, m, n, C, A, P, F, M, N, g, l, p, h); + [v, y] = fR(e.history, x, r, m, n, C, A, P, F, j, N, g, l, p, h); if (ae((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) { let e = ee(); - return G(n, jI({ + return G(n, vT({ matches: r, loaderData: {}, errors: h || null @@ -57022,14 +60939,14 @@ shortCircuited: !0 } } - if (!O) { + if (!I) { y.forEach((e => { let t = x.fetchers.get(e.key), - n = lC(void 0, t ? t.data : void 0); + n = BR(void 0, t ? t.data : void 0); x.fetchers.set(e.key, n) })); let e = p || x.actionData; - B(jI({ + B(vT({ navigation: f }, e ? 0 === Object.keys(e).length ? { actionData: null @@ -57050,44 +60967,44 @@ results: k, loaderResults: w, fetcherResults: S - } = await q(x.matches, r, v, y, t); + } = await W(x.matches, r, v, y, t); if (t.signal.aborted) return { shortCircuited: !0 }; _ && _.signal.removeEventListener("abort", b); y.forEach((e => T.delete(e.key))); - let E = KO(k); + let E = CR(k); if (E) { if (E.idx >= v.length) { let e = y[E.idx - v.length].key; N.add(e) } - return await $(x, E.result, { + return await q(x, E.result, { replace: u }), { shortCircuited: !0 } } let { - loaderData: I, + loaderData: O, errors: L - } = GO(x, r, v, w, h, y, S, z); + } = wR(x, r, v, w, h, y, S, z); z.forEach(((e, t) => { e.subscribe((n => { (n || e.done) && z.delete(t) })) })); - let j = ee(), + let M = ee(), V = te(D), - U = j || V || y.length > 0; - return jI({ - loaderData: I, + U = M || V || y.length > 0; + return vT({ + loaderData: O, errors: L }, U ? { 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, jI({ + y || (_ = null, G(n, vT({ matches: d }, m ? { actionData: m @@ -57096,62 +61013,62 @@ errors: E }))) } - async function $(r, i, a) { + async function q(r, i, a) { let { submission: o, fetcherSubmission: s, replace: c } = void 0 === a ? {} : a; i.revalidate && (C = !0); - let u = GI(r.location, i.location, { + let u = wT(r.location, i.location, { _isRedirect: !0 }); - if (VI(u, "Expected a location on the redirect navigation"), n) { + if (bT(u, "Expected a location on the redirect navigation"), n) { let n = !1; if (i.reloadDocument) n = !0; - else if (OO.test(i.location)) { + else if (sR.test(i.location)) { const r = e.history.createURL(i.location); - n = r.origin !== t.location.origin || null == oO(r.pathname, l) + n = r.origin !== t.location.origin || null == VT(r.pathname, l) } if (n) return void(c ? t.location.replace(i.location) : t.location.assign(i.location)) } _ = null; - let d = !0 === c ? FI.Replace : FI.Push, + let d = !0 === c ? yT.Replace : yT.Push, { formMethod: p, formAction: h, formEncType: f } = r.navigation; - !o && !s && p && h && f && (o = oC(r.navigation)); + !o && !s && p && h && f && (o = VR(r.navigation)); let m = o || s; - if (wO.has(i.status) && m && tC(m.formMethod)) await W(d, u, { - submission: jI({}, m, { + if (rR.has(i.status) && m && NR(m.formMethod)) await $(d, u, { + submission: vT({}, m, { formAction: i.location }), preventScrollReset: w }); else { - let e = sC(u, o); - await W(d, u, { + let e = UR(u, o); + await $(d, u, { overrideNavigation: e, fetcherSubmission: s, preventScrollReset: w }) } } - async function q(t, n, r, a, s) { - let c = await Promise.all([...r.map((e => FO("loader", s, e, n, o, i, l))), ...a.map((t => { - if (t.matches && t.match && t.controller) return FO("loader", zO(e.history, t.path, t.controller.signal), t.match, t.matches, o, i, l); + async function W(t, n, r, a, s) { + let c = await Promise.all([...r.map((e => yR("loader", s, e, n, o, i, l))), ...a.map((t => { + if (t.matches && t.match && t.controller) return yR("loader", _R(e.history, t.path, t.controller.signal), t.match, t.matches, o, i, l); return { - type: HI.error, - error: HO(404, { + type: IT.error, + error: IR(404, { pathname: t.path }) } }))]), u = c.slice(0, r.length), d = c.slice(r.length); - return await Promise.all([nC(t, r, u, u.map((() => s.signal)), !1, x.loaderData), nC(t, a.map((e => e.match)), d, a.map((e => e.controller ? e.controller.signal : null)), !0)]), { + return await Promise.all([jR(t, r, u, u.map((() => s.signal)), !1, x.loaderData), jR(t, a.map((e => e.match)), d, a.map((e => e.controller ? e.controller.signal : null)), !0)]), { results: c, loaderResults: u, fetcherResults: d @@ -57159,7 +61076,7 @@ } function H() { - C = !0, A.push(...ae()), M.forEach(((e, t) => { + C = !0, A.push(...ae()), j.forEach(((e, t) => { T.has(t) && (P.push(t), X(t)) })) } @@ -57174,7 +61091,7 @@ function Y(e, t, n, r) { void 0 === r && (r = {}); - let i = $O(x.matches, t); + let i = ER(x.matches, t); Z(e), B({ errors: { [i.route.id]: n @@ -57186,22 +61103,22 @@ } function Q(e) { - return c.v7_fetcherPersist && (j.set(e, (j.get(e) || 0) + 1), F.has(e) && F.delete(e)), x.fetchers.get(e) || EO + return c.v7_fetcherPersist && (M.set(e, (M.get(e) || 0) + 1), F.has(e) && F.delete(e)), x.fetchers.get(e) || aR } function Z(e) { let t = x.fetchers.get(e); - !T.has(e) || t && "loading" === t.state && L.has(e) || X(e), M.delete(e), L.delete(e), N.delete(e), F.delete(e), x.fetchers.delete(e) + !T.has(e) || t && "loading" === t.state && L.has(e) || X(e), j.delete(e), L.delete(e), N.delete(e), F.delete(e), x.fetchers.delete(e) } function X(e) { let t = T.get(e); - VI(t, "Expected fetch controller: " + e), t.abort(), T.delete(e) + bT(t, "Expected fetch controller: " + e), t.abort(), T.delete(e) } function J(e) { for (let t of e) { - let e = cC(Q(t).data); + let e = GR(Q(t).data); x.fetchers.set(t, e) } } @@ -57211,7 +61128,7 @@ t = !1; for (let n of N) { let r = x.fetchers.get(n); - VI(r, "Expected fetcher: " + n), "loading" === r.state && (N.delete(n), e.push(n), t = !0) + bT(r, "Expected fetcher: " + n), "loading" === r.state && (N.delete(n), e.push(n), t = !0) } return J(e), t } @@ -57221,7 +61138,7 @@ for (let [n, r] of L) if (r < e) { let e = x.fetchers.get(n); - VI(e, "Expected fetcher: " + n), "loading" === e.state && (X(n), L.delete(n), t.push(n)) + bT(e, "Expected fetcher: " + n), "loading" === e.state && (X(n), L.delete(n), t.push(n)) } return J(t), t.length > 0 } @@ -57230,8 +61147,8 @@ } function re(e, t) { - let n = x.blockers.get(e) || IO; - VI("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) || oR; + bT("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({ blockers: r @@ -57245,7 +61162,7 @@ historyAction: r } = e; if (0 === V.size) return; - V.size > 1 && UI(!1, "A router only supports one blocker at a time"); + V.size > 1 && xT(!1, "A router only supports one blocker at a time"); let i = Array.from(V.entries()), [a, o] = i[i.length - 1], s = x.blockers.get(a); @@ -57313,7 +61230,7 @@ delta: i } = t; if (U) return void(U = !1); - UI(0 === V.size || null != i, "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."); + xT(0 === V.size || null != i, "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 a = ie({ currentLocation: x.location, nextLocation: r, @@ -57332,15 +61249,15 @@ }, reset() { let e = new Map(x.blockers); - e.set(a, IO), B({ + e.set(a, oR), B({ blockers: e }) } - })) : W(n, r) + })) : $(n, r) })), n) { ! function(e, t) { try { - let n = e.sessionStorage.getItem(AO); + let n = e.sessionStorage.getItem(cR); 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 || [])) @@ -57352,21 +61269,21 @@ let r = {}; for (let [e, n] of t) r[e] = [...n]; try { - e.sessionStorage.setItem(AO, JSON.stringify(r)) + e.sessionStorage.setItem(cR, JSON.stringify(r)) } catch (n) { - UI(!1, "Failed to save applied view transitions in sessionStorage (" + n + ").") + xT(!1, "Failed to save applied view transitions in sessionStorage (" + n + ").") } } }(t, E); - t.addEventListener("pagehide", e), I = () => t.removeEventListener("pagehide", e) + t.addEventListener("pagehide", e), O = () => t.removeEventListener("pagehide", e) } - return x.initialized || W(FI.Pop, x.location), y + return x.initialized || $(yT.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 === SO) { + if (p = e, f = t, h = n || null, !m && x.navigation === iR) { m = !0; let e = se(x.location, x.matches); null != e && B({ @@ -57379,18 +61296,18 @@ }, navigate: async function t(n, r) { if ("number" === typeof n) return void e.history.go(n); - let i = TO(x.location, x.matches, l, c.v7_prependBasename, n, null == r ? void 0 : r.fromRouteId, null == r ? void 0 : r.relative), + let i = dR(x.location, x.matches, l, c.v7_prependBasename, n, null == r ? void 0 : r.fromRouteId, null == r ? void 0 : r.relative), { path: a, submission: o, error: s - } = RO(c.v7_normalizeFormMethod, !1, i, r), + } = pR(c.v7_normalizeFormMethod, !1, i, r), u = x.location, - d = GI(x.location, a, r && r.state); - d = jI({}, d, e.history.encodeLocation(d)); + d = wT(x.location, a, r && r.state); + d = vT({}, d, e.history.encodeLocation(d)); let p = r && null != r.replace ? r.replace : void 0, - h = FI.Push; - !0 === p ? h = FI.Replace : !1 === p || null != o && tC(o.formMethod) && o.formAction === x.location.pathname + x.location.search && (h = FI.Replace); + h = yT.Push; + !0 === p ? h = yT.Replace : !1 === p || null != o && NR(o.formMethod) && o.formAction === x.location.pathname + x.location.search && (h = yT.Replace); let f = r && "preventScrollReset" in r ? !0 === r.preventScrollReset : void 0, m = !0 === (r && r.unstable_flushSync), g = ie({ @@ -57398,7 +61315,7 @@ nextLocation: d, historyAction: h }); - if (!g) return await W(h, d, { + if (!g) return await $(h, d, { submission: o, pendingError: s, preventScrollReset: f, @@ -57419,7 +61336,7 @@ }, reset() { let e = new Map(x.blockers); - e.set(g, IO), B({ + e.set(g, oR), B({ blockers: e }) } @@ -57430,9 +61347,9 @@ T.has(t) && X(t); let p = !0 === (d && d.unstable_flushSync), h = a || s, - f = TO(x.location, x.matches, l, c.v7_prependBasename, u, n, null == d ? void 0 : d.relative), - m = QI(h, f, l); - if (!m) return void Y(t, n, HO(404, { + f = dR(x.location, x.matches, l, c.v7_prependBasename, u, n, null == d ? void 0 : d.relative), + m = PT(h, f, l); + if (!m) return void Y(t, n, IR(404, { pathname: f }), { flushSync: p @@ -57441,14 +61358,14 @@ path: g, submission: v, error: y - } = RO(c.v7_normalizeFormMethod, !0, f, d); + } = pR(c.v7_normalizeFormMethod, !0, f, d); if (y) return void Y(t, n, y, { flushSync: p }); - let b = aC(m, g); - w = !0 === (d && d.preventScrollReset), v && tC(v.formMethod) ? async function(t, n, r, c, u, d, p) { - if (H(), M.delete(t), !c.route.action && !c.route.lazy) { - let e = HO(405, { + let b = zR(m, g); + w = !0 === (d && d.preventScrollReset), v && NR(v.formMethod) ? async function(t, n, r, c, u, d, p) { + if (H(), j.delete(t), !c.route.action && !c.route.lazy) { + let e = IR(405, { method: p.formMethod, pathname: r, routeId: n @@ -57474,102 +61391,102 @@ flushSync: d }); let f = new AbortController, - m = zO(e.history, r, f.signal, p); + m = _R(e.history, r, f.signal, p); T.set(t, f); let g = R, - v = await FO("action", m, c, u, o, i, l); + v = await yR("action", m, c, u, o, i, l); if (m.signal.aborted) return void(T.get(t) === f && T.delete(t)); - if (F.has(t)) return void K(t, cC(void 0)); - if (XO(v)) return T.delete(t), D > g ? void K(t, cC(void 0)) : (N.add(t), K(t, lC(p)), $(x, v, { + if (F.has(t)) return void K(t, GR(void 0)); + if (RR(v)) return T.delete(t), D > g ? void K(t, GR(void 0)) : (N.add(t), K(t, BR(p)), q(x, v, { fetcherSubmission: p })); - if (ZO(v)) return void Y(t, n, v.error); - if (QO(v)) throw HO(400, { + if (TR(v)) return void Y(t, n, v.error); + if (PR(v)) throw IR(400, { type: "defer-action" }); let y = x.navigation.location || x.location, - b = zO(e.history, y, f.signal), + b = _R(e.history, y, f.signal), w = a || s, - S = "idle" !== x.navigation.state ? QI(w, x.navigation.location, l) : x.matches; - VI(S, "Didn't find any matches after fetcher action"); + S = "idle" !== x.navigation.state ? PT(w, x.navigation.location, l) : x.matches; + bT(S, "Didn't find any matches after fetcher action"); let E = ++R; L.set(t, E); - let I = lC(p, v.data); - x.fetchers.set(t, I); - let [O, j] = LO(e.history, x, S, p, y, C, A, P, F, M, N, w, l, { + let O = BR(p, v.data); + x.fetchers.set(t, O); + let [I, M] = fR(e.history, x, S, p, y, C, A, P, F, j, N, w, l, { [c.route.id]: v.data }, void 0); - j.filter((e => e.key !== t)).forEach((e => { + M.filter((e => e.key !== t)).forEach((e => { let t = e.key, n = x.fetchers.get(t), - r = lC(void 0, n ? n.data : void 0); + r = BR(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({ fetchers: new Map(x.fetchers) }); - let V = () => j.forEach((e => X(e.key))); + let V = () => M.forEach((e => X(e.key))); f.signal.addEventListener("abort", V); let { results: U, - loaderResults: W, + loaderResults: $, fetcherResults: Q - } = await q(x.matches, S, O, j, b); + } = await W(x.matches, S, I, M, b); if (f.signal.aborted) return; - f.signal.removeEventListener("abort", V), L.delete(t), T.delete(t), j.forEach((e => T.delete(e.key))); - let Z = KO(U); + f.signal.removeEventListener("abort", V), L.delete(t), T.delete(t), M.forEach((e => T.delete(e.key))); + let Z = CR(U); if (Z) { - if (Z.idx >= O.length) { - let e = j[Z.idx - O.length].key; + if (Z.idx >= I.length) { + let e = M[Z.idx - I.length].key; N.add(e) } - return $(x, Z.result) + return q(x, Z.result) } let { loaderData: J, errors: ee - } = GO(x, x.matches, O, W, void 0, j, Q, z); + } = wR(x, x.matches, I, $, void 0, M, Q, z); if (x.fetchers.has(t)) { - let e = cC(v.data); + let e = GR(v.data); x.fetchers.set(t, e) } - te(E), "loading" === x.navigation.state && E > D ? (VI(k, "Expected pending action"), _ && _.abort(), G(x.navigation.location, { + te(E), "loading" === x.navigation.state && E > D ? (bT(k, "Expected pending action"), _ && _.abort(), G(x.navigation.location, { matches: S, loaderData: J, errors: ee, fetchers: new Map(x.fetchers) })) : (B({ errors: ee, - loaderData: WO(x.loaderData, J, S, ee), + loaderData: SR(x.loaderData, J, S, ee), fetchers: new Map(x.fetchers) }), C = !1) - }(t, n, g, b, m, p, v): (M.set(t, { + }(t, n, g, b, m, p, v): (j.set(t, { routeId: n, path: g }), async function(t, n, r, a, s, c, u) { let d = x.fetchers.get(t); - K(t, lC(u, d ? d.data : void 0), { + K(t, BR(u, d ? d.data : void 0), { flushSync: c }); let p = new AbortController, - h = zO(e.history, r, p.signal); + h = _R(e.history, r, p.signal); T.set(t, p); let f = R, - m = await FO("loader", h, a, s, o, i, l); - QO(m) && (m = await rC(m, h.signal, !0) || m); + m = await yR("loader", h, a, s, o, i, l); + PR(m) && (m = await MR(m, h.signal, !0) || m); T.get(t) === p && T.delete(t); if (h.signal.aborted) return; - if (F.has(t)) return void K(t, cC(void 0)); - if (XO(m)) return D > f ? void K(t, cC(void 0)) : (N.add(t), void await $(x, m)); - if (ZO(m)) return void Y(t, n, m.error); - VI(!QO(m), "Unhandled fetcher deferred data"), K(t, cC(m.data)) + if (F.has(t)) return void K(t, GR(void 0)); + if (RR(m)) return D > f ? void K(t, GR(void 0)) : (N.add(t), void await q(x, m)); + if (TR(m)) return void Y(t, n, m.error); + bT(!PR(m), "Unhandled fetcher deferred data"), K(t, GR(m.data)) }(t, n, g, b, m, p, v)) }, revalidate: function() { H(), B({ revalidation: "loading" - }), "submitting" !== x.navigation.state && ("idle" !== x.navigation.state ? W(k || x.historyAction, x.navigation.location, { + }), "submitting" !== x.navigation.state && ("idle" !== x.navigation.state ? $(k || x.historyAction, x.navigation.location, { overrideNavigation: x.navigation - }) : W(x.historyAction, x.location, { + }) : $(x.historyAction, x.location, { startUninterruptedRevalidation: !0 })) }, @@ -57578,31 +61495,31 @@ getFetcher: Q, deleteFetcher: function(e) { if (c.v7_fetcherPersist) { - let t = (j.get(e) || 0) - 1; - t <= 0 ? (j.delete(e), F.add(e)) : j.set(e, t) + let t = (M.get(e) || 0) - 1; + t <= 0 ? (M.delete(e), F.add(e)) : M.set(e, t) } else Z(e); B({ fetchers: new Map(x.fetchers) }) }, dispose: function() { - u && u(), I && I(), d.clear(), _ && _.abort(), x.fetchers.forEach(((e, t) => Z(t))), x.blockers.forEach(((e, t) => ne(t))) + 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) || IO; + let n = x.blockers.get(e) || oR; return V.get(e) !== t && V.set(e, t), n }, deleteBlocker: ne, _internalFetchControllers: T, _internalActiveDeferreds: z, _internalSetRoutes: function(e) { - o = {}, a = YI(e, i, void 0, o) + o = {}, a = AT(e, i, void 0, o) } }, y } Symbol("deferred"); - function TO(e, t, n, r, i, a, o) { + function dR(e, t, n, r, i, a, o) { let s, l; if (a) { s = []; @@ -57612,34 +61529,34 @@ break } } else s = t, l = t[t.length - 1]; - let c = cO(i || ".", lO(s).map((e => e.pathnameBase)), oO(e.pathname, n) || e.pathname, "path" === o); - return null == i && (c.search = e.search, c.hash = e.hash), null != i && "" !== i && "." !== i || !l || !l.route.index || iC(c.search) || (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), r && "/" !== n && (c.pathname = "/" === c.pathname ? n : uO([n, c.pathname])), WI(c) + let c = GT(i || ".", BT(s).map((e => e.pathnameBase)), VT(e.pathname, n) || e.pathname, "path" === o); + return null == i && (c.search = e.search, c.hash = e.hash), null != i && "" !== i && "." !== i || !l || !l.route.index || FR(c.search) || (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), r && "/" !== n && (c.pathname = "/" === c.pathname ? n : $T([n, c.pathname])), ST(c) } - function RO(e, t, n, r) { + function pR(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 { path: n }; - if (r.formMethod && !eC(r.formMethod)) return { + if (r.formMethod && !LR(r.formMethod)) return { path: n, - error: HO(405, { + error: IR(405, { method: r.formMethod }) }; let i, a, o = () => ({ path: n, - error: HO(400, { + error: IR(400, { type: "invalid-body" }) }), s = r.formMethod || "get", l = e ? s.toUpperCase() : s.toLowerCase(), - c = YO(n); + c = AR(n); if (void 0 !== r.body) { if ("text/plain" === r.formEncType) { - if (!tC(l)) return o(); + if (!NR(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" @@ -57657,7 +61574,7 @@ } } if ("application/json" === r.formEncType) { - if (!tC(l)) return o(); + if (!NR(l)) return o(); try { let e = "string" === typeof r.body ? JSON.parse(r.body) : r.body; return { @@ -57676,12 +61593,12 @@ } } } - if (VI("function" === typeof FormData, "FormData is not available in this environment"), r.formData) i = VO(r.formData), a = r.formData; - else if (r.body instanceof FormData) i = VO(r.body), a = r.body; - else if (r.body instanceof URLSearchParams) i = r.body, a = UO(i); + if (bT("function" === typeof FormData, "FormData is not available in this environment"), r.formData) i = bR(r.formData), a = r.formData; + else if (r.body instanceof FormData) i = bR(r.body), a = r.body; + else if (r.body instanceof URLSearchParams) i = r.body, a = xR(i); else if (null == r.body) i = new URLSearchParams, a = new FormData; else try { - i = new URLSearchParams(r.body), a = UO(i) + i = new URLSearchParams(r.body), a = xR(i) } catch (p) { return o() } @@ -57693,18 +61610,18 @@ json: void 0, text: void 0 }; - if (tC(u.formMethod)) return { + if (NR(u.formMethod)) return { path: n, submission: u }; - let d = $I(n); - return t && d.search && iC(d.search) && i.append("index", ""), d.search = "?" + i, { - path: WI(d), + let d = ET(n); + return t && d.search && FR(d.search) && i.append("index", ""), d.search = "?" + i, { + path: ST(d), submission: u } } - function DO(e, t) { + function hR(e, t) { let n = e; if (t) { let r = e.findIndex((e => e.route.id === t)); @@ -57713,12 +61630,12 @@ return n } - function LO(e, t, n, r, i, a, o, s, l, c, u, d, p, h, f) { + function fR(e, t, n, r, i, a, 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(i), y = f ? Object.keys(f)[0] : void 0, - _ = DO(n, y).filter(((e, n) => { + _ = hR(n, y).filter(((e, n) => { if (e.route.lazy) return !0; if (null == e.route.loader) return !1; if (function(e, t, n) { @@ -57728,20 +61645,20 @@ }(t.loaderData, t.matches[n], e) || o.some((t => t === e.route.id))) return !0; let i = t.matches[n], s = e; - return MO(e, jI({ + return gR(e, vT({ currentUrl: g, currentParams: i.params, nextUrl: v, nextParams: s.params }, r, { actionResult: m, - defaultShouldRevalidate: a || g.pathname + g.search === v.pathname + v.search || g.search !== v.search || NO(i, s) + defaultShouldRevalidate: a || g.pathname + g.search === v.pathname + v.search || g.search !== v.search || mR(i, s) })) })), b = []; return c.forEach(((e, i) => { if (!n.some((t => t.route.id === e.routeId)) || l.has(i)) return; - let o = QI(d, e.path, p); + let o = PT(d, e.path, p); if (!o) return void b.push({ key: i, routeId: e.routeId, @@ -57751,9 +61668,9 @@ controller: null }); let c = t.fetchers.get(i), - h = aC(o, e.path), + h = zR(o, e.path), f = !1; - f = !u.has(i) && (!!s.includes(i) || (c && "idle" !== c.state && void 0 === c.data ? a : MO(h, jI({ + f = !u.has(i) && (!!s.includes(i) || (c && "idle" !== c.state && void 0 === c.data ? a : gR(h, vT({ currentUrl: g, currentParams: t.matches[t.matches.length - 1].params, nextUrl: v, @@ -57772,34 +61689,34 @@ })), [_, b] } - function NO(e, t) { + function mR(e, t) { let n = e.route.path; return e.pathname !== t.pathname || null != n && n.endsWith("*") && e.params["*"] !== t.params["*"] } - function MO(e, t) { + function gR(e, t) { if (e.route.shouldRevalidate) { let n = e.route.shouldRevalidate(t); if ("boolean" === typeof n) return n } return t.defaultShouldRevalidate } - async function jO(e, t, n) { + async function vR(e, t, n) { if (!e.lazy) return; let r = await e.lazy(); if (!e.lazy) return; let i = n[e.id]; - VI(i, "No route found in manifest"); + bT(i, "No route found in manifest"); let a = {}; for (let o in r) { let e = void 0 !== i[o] && "hasErrorBoundary" !== o; - UI(!e, 'Route "' + i.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 || KI.has(o) || (a[o] = r[o]) + xT(!e, 'Route "' + i.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 || CT.has(o) || (a[o] = r[o]) } - Object.assign(i, a), Object.assign(i, jI({}, t(i), { + Object.assign(i, a), Object.assign(i, vT({}, t(i), { lazy: void 0 })) } - async function FO(e, t, n, r, i, a, o, s) { + async function yR(e, t, n, r, i, a, o, s) { let l, c, u; void 0 === s && (s = {}); let d = e => { @@ -57816,22 +61733,22 @@ if (r) { let e, t = await Promise.all([d(r).catch((t => { e = t - })), jO(n.route, a, i)]); + })), vR(n.route, a, i)]); if (e) throw e; c = t[0] } else { - if (await jO(n.route, a, i), r = n.route[e], !r) { + if (await vR(n.route, a, i), r = n.route[e], !r) { if ("action" === e) { let e = new URL(t.url), r = e.pathname + e.search; - throw HO(405, { + throw IR(405, { method: t.method, pathname: r, routeId: n.route.id }) } return { - type: HI.data, + type: IT.data, data: void 0 } } @@ -57840,33 +61757,33 @@ else { if (!r) { let e = new URL(t.url); - throw HO(404, { + throw IR(404, { pathname: e.pathname + e.search }) } c = await d(r) } - VI(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`.") + bT(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 = HI.error, c = f + l = IT.error, c = f } finally { u && t.signal.removeEventListener("abort", u) } - if (JO(c)) { + if (DR(c)) { let e, i = c.status; - if (kO.has(i)) { + if (nR.has(i)) { let e = c.headers.get("Location"); - if (VI(e, "Redirects returned/thrown from loaders/actions must have a Location header"), OO.test(e)) { + if (bT(e, "Redirects returned/thrown from loaders/actions must have a Location header"), sR.test(e)) { if (!s.isStaticRequest) { let n = new URL(t.url), r = e.startsWith("//") ? new URL(n.protocol + e) : new URL(e), - i = null != oO(r.pathname, o); + i = null != VT(r.pathname, o); r.origin === n.origin && i && (e = r.pathname + r.search + r.hash) } - } else e = TO(new URL(t.url), r.slice(0, r.indexOf(n) + 1), o, !0, e); + } else e = dR(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: HI.redirect, + type: IT.redirect, status: i, location: e, revalidate: null !== c.headers.get("X-Remix-Revalidate"), @@ -57875,81 +61792,81 @@ } if (s.isRouteRequest) { throw { - type: l === HI.error ? HI.error : HI.data, + type: l === IT.error ? IT.error : IT.data, response: c } } let a = c.headers.get("Content-Type"); - return e = a && /\bapplication\/json\b/.test(a) ? await c.json() : await c.text(), l === HI.error ? { + return e = a && /\bapplication\/json\b/.test(a) ? await c.json() : await c.text(), l === IT.error ? { type: l, - error: new gO(i, c.statusText, e), + error: new QT(i, c.statusText, e), headers: c.headers } : { - type: HI.data, + type: IT.data, data: e, statusCode: c.status, headers: c.headers } } - return l === HI.error ? { + return l === IT.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: HI.deferred, + type: IT.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: HI.data, + type: IT.data, data: c }; var p, h } - function zO(e, t, n, r) { - let i = e.createURL(YO(t)).toString(), + function _R(e, t, n, r) { + let i = e.createURL(AR(t)).toString(), a = { signal: n }; - if (r && tC(r.formMethod)) { + if (r && NR(r.formMethod)) { let { formMethod: e, formEncType: t } = r; a.method = e.toUpperCase(), "application/json" === t ? (a.headers = new Headers({ "Content-Type": t - }), a.body = JSON.stringify(r.json)) : "text/plain" === t ? a.body = r.text : "application/x-www-form-urlencoded" === t && r.formData ? a.body = VO(r.formData) : a.body = r.formData + }), a.body = JSON.stringify(r.json)) : "text/plain" === t ? a.body = r.text : "application/x-www-form-urlencoded" === t && r.formData ? a.body = bR(r.formData) : a.body = r.formData } return new Request(i, a) } - function VO(e) { + function bR(e) { let t = new URLSearchParams; for (let [n, r] of e.entries()) t.append(n, "string" === typeof r ? r : r.name); return t } - function UO(e) { + function xR(e) { let t = new FormData; for (let [n, r] of e.entries()) t.append(n, r); return t } - function BO(e, t, n, r, i) { + function kR(e, t, n, r, i) { let a, o = {}, s = null, l = !1, c = {}; return n.forEach(((n, u) => { let d = t[u].route.id; - if (VI(!XO(n), "Cannot handle redirect results in processLoaderData"), ZO(n)) { - let t = $O(e, d), + if (bT(!RR(n), "Cannot handle redirect results in processLoaderData"), TR(n)) { + let t = ER(e, d), i = n.error; - r && (i = Object.values(r)[0], r = void 0), s = s || {}, null == s[t.route.id] && (s[t.route.id] = i), o[d] = void 0, l || (l = !0, a = vO(n.error) ? n.error.status : 500), n.headers && (c[d] = n.headers) - } else QO(n) ? (i.set(d, n.deferredData), o[d] = n.deferredData.data) : o[d] = n.data, null == n.statusCode || 200 === n.statusCode || l || (a = n.statusCode), n.headers && (c[d] = n.headers) + r && (i = Object.values(r)[0], r = void 0), s = s || {}, null == s[t.route.id] && (s[t.route.id] = i), o[d] = void 0, l || (l = !0, a = ZT(n.error) ? n.error.status : 500), n.headers && (c[d] = n.headers) + } else PR(n) ? (i.set(d, n.deferredData), o[d] = n.deferredData.data) : o[d] = n.data, null == n.statusCode || 200 === n.statusCode || l || (a = n.statusCode), n.headers && (c[d] = n.headers) })), r && (s = r, o[Object.keys(r)[0]] = void 0), { loaderData: o, errors: s, @@ -57958,29 +61875,29 @@ } } - function GO(e, t, n, r, i, a, o, s) { + function wR(e, t, n, r, i, a, o, s) { let { loaderData: l, errors: c - } = BO(t, n, r, i, s); + } = kR(t, n, r, i, s); for (let u = 0; u < a.length; u++) { let { key: t, match: n, controller: r } = a[u]; - VI(void 0 !== o && void 0 !== o[u], "Did not find corresponding fetcher result"); + bT(void 0 !== o && void 0 !== o[u], "Did not find corresponding fetcher result"); let i = o[u]; if (!r || !r.signal.aborted) - if (ZO(i)) { - let r = $O(e.matches, null == n ? void 0 : n.route.id); - c && c[r.route.id] || (c = jI({}, c, { + if (TR(i)) { + let r = ER(e.matches, null == n ? void 0 : n.route.id); + c && c[r.route.id] || (c = vT({}, c, { [r.route.id]: i.error })), e.fetchers.delete(t) - } else if (XO(i)) VI(!1, "Unhandled fetcher revalidation redirect"); - else if (QO(i)) VI(!1, "Unhandled fetcher deferred data"); + } else if (RR(i)) bT(!1, "Unhandled fetcher revalidation redirect"); + else if (PR(i)) bT(!1, "Unhandled fetcher deferred data"); else { - let n = cC(i.data); + let n = GR(i.data); e.fetchers.set(t, n) } } @@ -57990,8 +61907,8 @@ } } - function WO(e, t, n, r) { - let i = jI({}, t); + function SR(e, t, n, r) { + let i = vT({}, t); for (let a of n) { let n = a.route.id; if (t.hasOwnProperty(n) ? void 0 !== t[n] && (i[n] = t[n]) : void 0 !== e[n] && a.route.loader && (i[n] = e[n]), r && r.hasOwnProperty(n)) break @@ -57999,12 +61916,12 @@ return i } - function $O(e, t) { + function ER(e, t) { let n = t ? e.slice(0, e.findIndex((e => e.route.id === t)) + 1) : [...e]; return n.reverse().find((e => !0 === e.route.hasErrorBoundary)) || e[0] } - function qO(e) { + function OR(e) { let t = 1 === e.length ? e[0] : e.find((e => e.index || !e.path || "/" === e.path)) || { id: "__shim-error-route__" }; @@ -58019,102 +61936,102 @@ } } - function HO(e, t) { + function IR(e, t) { let { pathname: n, routeId: r, method: i, type: a } = void 0 === t ? {} : t, o = "Unknown Server Error", s = "Unknown @remix-run/router error"; - return 400 === e ? (o = "Bad Request", i && n && r ? s = "You made a " + i + ' request to "' + n + '" but did not provide a `loader` for route "' + r + '", so there is no way to handle the request.' : "defer-action" === a ? s = "defer() is not supported in actions" : "invalid-body" === a && (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", i && n && r ? s = "You made a " + i.toUpperCase() + ' request to "' + n + '" but did not provide an `action` for route "' + r + '", so there is no way to handle the request.' : i && (s = 'Invalid request method "' + i.toUpperCase() + '"')), new gO(e || 500, o, new Error(s), !0) + return 400 === e ? (o = "Bad Request", i && n && r ? s = "You made a " + i + ' request to "' + n + '" but did not provide a `loader` for route "' + r + '", so there is no way to handle the request.' : "defer-action" === a ? s = "defer() is not supported in actions" : "invalid-body" === a && (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", i && n && r ? s = "You made a " + i.toUpperCase() + ' request to "' + n + '" but did not provide an `action` for route "' + r + '", so there is no way to handle the request.' : i && (s = 'Invalid request method "' + i.toUpperCase() + '"')), new QT(e || 500, o, new Error(s), !0) } - function KO(e) { + function CR(e) { for (let t = e.length - 1; t >= 0; t--) { let n = e[t]; - if (XO(n)) return { + if (RR(n)) return { result: n, idx: t } } } - function YO(e) { - return WI(jI({}, "string" === typeof e ? $I(e) : e, { + function AR(e) { + return ST(vT({}, "string" === typeof e ? ET(e) : e, { hash: "" })) } - function QO(e) { - return e.type === HI.deferred + function PR(e) { + return e.type === IT.deferred } - function ZO(e) { - return e.type === HI.error + function TR(e) { + return e.type === IT.error } - function XO(e) { - return (e && e.type) === HI.redirect + function RR(e) { + return (e && e.type) === IT.redirect } - function JO(e) { + function DR(e) { return null != e && "number" === typeof e.status && "string" === typeof e.statusText && "object" === typeof e.headers && "undefined" !== typeof e.body } - function eC(e) { - return xO.has(e.toLowerCase()) + function LR(e) { + return tR.has(e.toLowerCase()) } - function tC(e) { - return _O.has(e.toLowerCase()) + function NR(e) { + return JT.has(e.toLowerCase()) } - async function nC(e, t, n, r, i, a) { + async function jR(e, t, n, r, i, a) { 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 && !NO(c, l) && void 0 !== (a && a[l.route.id]); - if (QO(s) && (i || u)) { + u = null != c && !mR(c, l) && void 0 !== (a && a[l.route.id]); + if (PR(s) && (i || u)) { let e = r[o]; - VI(e, "Expected an AbortSignal for revalidating fetcher deferred result"), await rC(s, e, i).then((e => { + bT(e, "Expected an AbortSignal for revalidating fetcher deferred result"), await MR(s, e, i).then((e => { e && (n[o] = e || n[o]) })) } } } - async function rC(e, t, n) { + async function MR(e, t, n) { if (void 0 === n && (n = !1), !await e.deferredData.resolveData(t)) { if (n) try { return { - type: HI.data, + type: IT.data, data: e.deferredData.unwrappedData } } catch (r) { return { - type: HI.error, + type: IT.error, error: r } } return { - type: HI.data, + type: IT.data, data: e.deferredData.data } } } - function iC(e) { + function FR(e) { return new URLSearchParams(e).getAll("index").some((e => "" === e)) } - function aC(e, t) { - let n = "string" === typeof t ? $I(t).search : t.search; - if (e[e.length - 1].route.index && iC(n || "")) return e[e.length - 1]; - let r = lO(e); + function zR(e, t) { + let n = "string" === typeof t ? ET(t).search : t.search; + if (e[e.length - 1].route.index && FR(n || "")) return e[e.length - 1]; + let r = BT(e); return r[r.length - 1] } - function oC(e) { + function VR(e) { let { formMethod: t, formAction: n, @@ -58147,7 +62064,7 @@ } : void 0 } - function sC(e, t) { + function UR(e, t) { if (t) { return { state: "loading", @@ -58172,7 +62089,7 @@ } } - function lC(e, t) { + function BR(e, t) { if (e) { return { state: "loading", @@ -58197,7 +62114,7 @@ } } - function cC(e) { + function GR(e) { return { state: "idle", formMethod: void 0, @@ -58210,149 +62127,149 @@ } } - function uC() { - return uC = Object.assign ? Object.assign.bind() : function(e) { + function $R() { + return $R = 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 - }, uC.apply(this, arguments) + }, $R.apply(this, arguments) } - const dC = Ee.createContext(null); - const pC = Ee.createContext(null); - const hC = Ee.createContext(null); - const fC = Ee.createContext(null); - const mC = Ee.createContext({ + const qR = Ee.createContext(null); + const WR = Ee.createContext(null); + const HR = Ee.createContext(null); + const KR = Ee.createContext(null); + const YR = Ee.createContext({ outlet: null, matches: [], isDataRoute: !1 }); - const gC = Ee.createContext(null); + const QR = Ee.createContext(null); - function vC() { - return null != Ee.useContext(fC) + function ZR() { + return null != Ee.useContext(KR) } - function yC() { - return vC() || VI(!1), Ee.useContext(fC).location + function XR() { + return ZR() || bT(!1), Ee.useContext(KR).location } - function _C(e) { - Ee.useContext(hC).static || Ee.useLayoutEffect(e) + function JR(e) { + Ee.useContext(HR).static || Ee.useLayoutEffect(e) } - function bC() { + function eD() { let { isDataRoute: e - } = Ee.useContext(mC); + } = Ee.useContext(YR); return e ? function() { let { router: e - } = RC(PC.UseNavigateStable), t = LC(TC.UseNavigateStable), n = Ee.useRef(!1); - _C((() => { + } = pD(uD.UseNavigateStable), t = fD(dD.UseNavigateStable), n = Ee.useRef(!1); + JR((() => { n.current = !0 })); let r = Ee.useCallback((function(r, i) { - void 0 === i && (i = {}), n.current && ("number" === typeof r ? e.navigate(r) : e.navigate(r, uC({ + void 0 === i && (i = {}), n.current && ("number" === typeof r ? e.navigate(r) : e.navigate(r, $R({ fromRouteId: t }, i))) }), [e, t]); return r }() : function() { - vC() || VI(!1); - let e = Ee.useContext(dC), + ZR() || bT(!1); + let e = Ee.useContext(qR), { basename: t, navigator: n - } = Ee.useContext(hC), + } = Ee.useContext(HR), { matches: r - } = Ee.useContext(mC), + } = Ee.useContext(YR), { pathname: i - } = yC(), - a = JSON.stringify(lO(r).map((e => e.pathnameBase))), + } = XR(), + a = JSON.stringify(BT(r).map((e => e.pathnameBase))), o = Ee.useRef(!1); - _C((() => { + JR((() => { o.current = !0 })); let s = Ee.useCallback((function(r, s) { if (void 0 === s && (s = {}), !o.current) return; if ("number" === typeof r) return void n.go(r); - let l = cO(r, JSON.parse(a), i, "path" === s.relative); - null == e && "/" !== t && (l.pathname = "/" === l.pathname ? t : uO([t, l.pathname])), (s.replace ? n.replace : n.push)(l, s.state, s) + let l = GT(r, JSON.parse(a), i, "path" === s.relative); + null == e && "/" !== t && (l.pathname = "/" === l.pathname ? t : $T([t, l.pathname])), (s.replace ? n.replace : n.push)(l, s.state, s) }), [t, n, a, i, e]); return s }() } - const xC = Ee.createContext(null); + const tD = Ee.createContext(null); - function kC() { + function nD() { let { matches: e - } = Ee.useContext(mC), t = e[e.length - 1]; + } = Ee.useContext(YR), t = e[e.length - 1]; return t ? t.params : {} } - function wC(e, t) { + function rD(e, t) { let { relative: n } = void 0 === t ? {} : t, { matches: r - } = Ee.useContext(mC), { + } = Ee.useContext(YR), { pathname: i - } = yC(), a = JSON.stringify(lO(r).map((e => e.pathnameBase))); - return Ee.useMemo((() => cO(e, JSON.parse(a), i, "path" === n)), [e, a, i, n]) + } = XR(), a = JSON.stringify(BT(r).map((e => e.pathnameBase))); + return Ee.useMemo((() => GT(e, JSON.parse(a), i, "path" === n)), [e, a, i, n]) } - function SC(e, t, n) { - vC() || VI(!1); + function iD(e, t, n) { + ZR() || bT(!1); let { navigator: r - } = Ee.useContext(hC), { + } = Ee.useContext(HR), { matches: i - } = Ee.useContext(mC), a = i[i.length - 1], o = a ? a.params : {}, s = (a && a.pathname, a ? a.pathnameBase : "/"); + } = Ee.useContext(YR), a = i[i.length - 1], o = a ? a.params : {}, s = (a && a.pathname, a ? a.pathnameBase : "/"); a && a.route; - let l, c = yC(); + let l, c = XR(); if (t) { var u; - let e = "string" === typeof t ? $I(t) : t; - "/" === s || (null == (u = e.pathname) ? void 0 : u.startsWith(s)) || VI(!1), l = e + let e = "string" === typeof t ? ET(t) : t; + "/" === s || (null == (u = e.pathname) ? void 0 : u.startsWith(s)) || bT(!1), l = e } else l = c; let d = l.pathname || "/", - p = QI(e, { + p = PT(e, { pathname: "/" === s ? d : d.slice(s.length) || "/" }); - let h = AC(p && p.map((e => Object.assign({}, e, { + let h = cD(p && p.map((e => Object.assign({}, e, { params: Object.assign({}, o, e.params), - pathname: uO([s, r.encodeLocation ? r.encodeLocation(e.pathname).pathname : e.pathname]), - pathnameBase: "/" === e.pathnameBase ? s : uO([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase).pathname : e.pathnameBase]) + pathname: $T([s, r.encodeLocation ? r.encodeLocation(e.pathname).pathname : e.pathname]), + pathnameBase: "/" === e.pathnameBase ? s : $T([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase).pathname : e.pathnameBase]) }))), i, n); - return t && h ? Ee.createElement(fC.Provider, { + return t && h ? Ee.createElement(KR.Provider, { value: { - location: uC({ + location: $R({ pathname: "/", search: "", hash: "", state: null, key: "default" }, l), - navigationType: FI.Pop + navigationType: yT.Pop } }, h) : h } - function EC() { + function aD() { let e = function() { var e; - let t = Ee.useContext(gC), - n = DC(TC.UseRouteError), - r = LC(TC.UseRouteError); + let t = Ee.useContext(QR), + n = hD(dD.UseRouteError), + r = fD(dD.UseRouteError); if (t) return t; return null == (e = n.errors) ? void 0 : e[r] }(), - t = vO(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), + t = ZT(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)", i = { @@ -58367,8 +62284,8 @@ style: i }, n) : null, null) } - const IC = Ee.createElement(EC, null); - class OC extends Ee.Component { + const oD = Ee.createElement(aD, null); + class sD extends Ee.Component { constructor(e) { super(e), this.state = { location: e.location, @@ -58396,27 +62313,27 @@ console.error("React Router caught the following error during render", e, t) } render() { - return this.state.error ? Ee.createElement(mC.Provider, { + return this.state.error ? Ee.createElement(YR.Provider, { value: this.props.routeContext - }, Ee.createElement(gC.Provider, { + }, Ee.createElement(QR.Provider, { value: this.state.error, children: this.props.component })) : this.props.children } } - function CC(e) { + function lD(e) { let { routeContext: t, match: n, children: r - } = e, i = Ee.useContext(dC); - return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), Ee.createElement(mC.Provider, { + } = e, i = Ee.useContext(qR); + return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), Ee.createElement(YR.Provider, { value: t }, r) } - function AC(e, t, n) { + function cD(e, t, n) { var r; if (void 0 === t && (t = []), void 0 === n && (n = null), null == e) { var i; @@ -58427,16 +62344,16 @@ o = null == (r = n) ? void 0 : r.errors; if (null != o) { let e = a.findIndex((e => e.route.id && (null == o ? void 0 : o[e.route.id]))); - e >= 0 || VI(!1), a = a.slice(0, Math.min(a.length, e + 1)) + e >= 0 || bT(!1), a = a.slice(0, Math.min(a.length, e + 1)) } return a.reduceRight(((e, r, i) => { let s = r.route.id ? null == o ? void 0 : o[r.route.id] : null, l = null; - n && (l = r.route.errorElement || IC); + n && (l = r.route.errorElement || oD); let c = t.concat(a.slice(0, i + 1)), u = () => { let t; - return t = s ? l : r.route.Component ? Ee.createElement(r.route.Component, null) : r.route.element ? r.route.element : e, Ee.createElement(CC, { + return t = s ? l : r.route.Component ? Ee.createElement(r.route.Component, null) : r.route.element ? r.route.element : e, Ee.createElement(lD, { match: r, routeContext: { outlet: e, @@ -58446,7 +62363,7 @@ children: t }) }; - return n && (r.route.ErrorBoundary || r.route.errorElement || 0 === i) ? Ee.createElement(OC, { + return n && (r.route.ErrorBoundary || r.route.errorElement || 0 === i) ? Ee.createElement(sD, { location: n.location, revalidation: n.revalidation, component: l, @@ -58460,46 +62377,46 @@ }) : u() }), null) } - var PC = function(e) { + var uD = function(e) { return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e - }(PC || {}), - TC = function(e) { + }(uD || {}), + dD = 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 - }(TC || {}); + }(dD || {}); - function RC(e) { - let t = Ee.useContext(dC); - return t || VI(!1), t + function pD(e) { + let t = Ee.useContext(qR); + return t || bT(!1), t } - function DC(e) { - let t = Ee.useContext(pC); - return t || VI(!1), t + function hD(e) { + let t = Ee.useContext(WR); + return t || bT(!1), t } - function LC(e) { + function fD(e) { let t = function(e) { - let t = Ee.useContext(mC); - return t || VI(!1), t + let t = Ee.useContext(YR); + return t || bT(!1), t }(), n = t.matches[t.matches.length - 1]; - return n.route.id || VI(!1), n.route.id + return n.route.id || bT(!1), n.route.id } - Ie.startTransition; + Oe.startTransition; - function NC(e) { + function mD(e) { let { to: t, replace: n, state: r, relative: i } = e; - vC() || VI(!1); + ZR() || bT(!1); let { matches: a - } = Ee.useContext(mC), { + } = Ee.useContext(YR), { pathname: o - } = yC(), s = bC(), l = cO(t, lO(a).map((e => e.pathnameBase)), o, "path" === i), c = JSON.stringify(l); + } = XR(), s = eD(), l = GT(t, BT(a).map((e => e.pathnameBase)), o, "path" === i), c = JSON.stringify(l); return Ee.useEffect((() => s(JSON.parse(c), { replace: n, state: r, @@ -58507,32 +62424,32 @@ })), [s, c, i, n, r]), null } - function MC(e) { + function gD(e) { return function(e) { - let t = Ee.useContext(mC).outlet; - return t ? Ee.createElement(xC.Provider, { + let t = Ee.useContext(YR).outlet; + return t ? Ee.createElement(tD.Provider, { value: e }, t) : t }(e.context) } - function jC(e) { + function vD(e) { let { basename: t = "/", children: n = null, location: r, - navigationType: i = FI.Pop, + navigationType: i = yT.Pop, navigator: a, static: o = !1 } = e; - vC() && VI(!1); + ZR() && bT(!1); let s = t.replace(/^\/*/, "/"), l = Ee.useMemo((() => ({ basename: s, navigator: a, static: o })), [s, a, o]); - "string" === typeof r && (r = $I(r)); + "string" === typeof r && (r = ET(r)); let { pathname: c = "/", search: u = "", @@ -58540,7 +62457,7 @@ state: p = null, key: h = "default" } = r, f = Ee.useMemo((() => { - let e = oO(c, s); + let e = VT(c, s); return null == e ? null : { location: { pathname: e, @@ -58552,15 +62469,15 @@ navigationType: i } }), [s, c, u, d, p, h, i]); - return null == f ? null : Ee.createElement(hC.Provider, { + return null == f ? null : Ee.createElement(HR.Provider, { value: l - }, Ee.createElement(fC.Provider, { + }, Ee.createElement(KR.Provider, { children: n, value: f })) } new Promise((() => {})); - class FC extends Ee.Component { + class yD extends Ee.Component { constructor(e) { super(e), this.state = { error: null @@ -58615,7 +62532,7 @@ } } - function zC(e) { + function _D(e) { let t = { hasErrorBoundary: null != e.ErrorBoundary || null != e.errorElement }; @@ -58627,38 +62544,38 @@ ErrorBoundary: void 0 }), t } - const VC = ({ + const bD = ({ labelItem: e }) => { var t; const [n, r] = (0, Ee.useState)(!1), { t: i - } = bt("download"), a = bC(), o = pR((e => e.installer)), s = pR((e => e.application)), { + } = bt("download"), a = eD(), o = Wj((e => e.installer)), s = Wj((e => e.application)), { reduceMotion: { wipeAnimationsDisabled: l, unessentialAnimationsDisabled: c } - } = Ns(), u = (0, Ee.useMemo)((() => o.installations.find((e => e.status === yw.InstallationStatus.IN_PROGRESS || e.status === yw.InstallationStatus.PAUSED))), [o.installations]), { + } = ts(), u = (0, Ee.useMemo)((() => o.installations.find((e => e.status === YI.InstallationStatus.IN_PROGRESS || e.status === YI.InstallationStatus.PAUSED))), [o.installations]), { isOffline: d } = (0, Ee.useMemo)((() => ({ - isOffline: s.connection.mode !== yw.ConnectionMode.ONLINE + isOffline: s.connection.mode !== YI.ConnectionMode.ONLINE })), [s.connection]), p = e => { s.actions.setDownloadPopoverOpened(e) }, h = (0, Ee.useCallback)((e => { var t, n, r, a; - return e.status === yw.InstallationStatus.COMPLETED ? [{ + return e.status === YI.InstallationStatus.COMPLETED ? [{ label: i("download_status"), value: i("download_completed") - }] : e.status === yw.InstallationStatus.WAITING ? [{ + }] : e.status === YI.InstallationStatus.WAITING ? [{ label: i("download_status"), value: i("download_waiting") - }] : e.status === yw.InstallationStatus.CANCELLING ? [{ + }] : e.status === YI.InstallationStatus.CANCELLING ? [{ label: i("download_status"), value: i("download_cancelling") - }] : e.status === yw.InstallationStatus.ERROR ? [{ + }] : e.status === YI.InstallationStatus.ERROR ? [{ label: i("download_status"), value: i("download_error") - }] : !o.progress || e.status !== yw.InstallationStatus.IN_PROGRESS && e.status !== yw.InstallationStatus.PAUSED ? void 0 : o.progress.progressUndeterminate ? [{ + }] : !o.progress || e.status !== YI.InstallationStatus.IN_PROGRESS && e.status !== YI.InstallationStatus.PAUSED ? void 0 : o.progress.progressUndeterminate ? [{ label: i("download_phase"), value: o.progress.currentPhase }] : [{ @@ -58670,57 +62587,57 @@ value: `${o.progress.speed}/s` }, { label: i("download_left"), - value: SE()(Math.max((null !== (t = o.progress.total) && void 0 !== t ? t : 0) - (null !== (n = o.progress.downloaded) && void 0 !== n ? n : 0), 0)) + value: rP()(Math.max((null !== (t = o.progress.total) && void 0 !== t ? t : 0) - (null !== (n = o.progress.downloaded) && void 0 !== n ? n : 0), 0)) }, { label: i("download_files_left"), value: Math.max((null !== (r = o.progress.filesTotal) && void 0 !== r ? r : 0) - (null !== (a = o.progress.filesDone) && void 0 !== a ? a : 0), 0) }] }), [i, o.progress]), f = (0, Ee.useCallback)((e => { var t, n; - return e.status === yw.InstallationStatus.IN_PROGRESS || e.status === yw.InstallationStatus.PAUSED || e.status === yw.InstallationStatus.CANCELLING ? [{ - disabled: e.status === yw.InstallationStatus.CANCELLING || !(null !== (t = o.progress) && void 0 !== t && t.isPausable) || d, - icon: e.status === yw.InstallationStatus.PAUSED ? bI : _I, - label: e.status === yw.InstallationStatus.PAUSED ? i("download_resume") : i("download_pause"), - tooltip: e.status === yw.InstallationStatus.PAUSED ? i("download_resume") : i("download_pause"), - onClick: e.status === yw.InstallationStatus.PAUSED ? () => o.actions.resumeInstallation(e.game) : () => o.actions.pauseInstallation(e.game) + return e.status === YI.InstallationStatus.IN_PROGRESS || e.status === YI.InstallationStatus.PAUSED || e.status === YI.InstallationStatus.CANCELLING ? [{ + disabled: e.status === YI.InstallationStatus.CANCELLING || !(null !== (t = o.progress) && void 0 !== t && t.isPausable) || d, + icon: e.status === YI.InstallationStatus.PAUSED ? eT : JP, + label: e.status === YI.InstallationStatus.PAUSED ? i("download_resume") : i("download_pause"), + tooltip: e.status === YI.InstallationStatus.PAUSED ? i("download_resume") : i("download_pause"), + onClick: e.status === YI.InstallationStatus.PAUSED ? () => o.actions.resumeInstallation(e.game) : () => o.actions.pauseInstallation(e.game) }, { - disabled: e.status === yw.InstallationStatus.CANCELLING || !(null !== (n = o.progress) && void 0 !== n && n.isPausable), - icon: uI, + disabled: e.status === YI.InstallationStatus.CANCELLING || !(null !== (n = o.progress) && void 0 !== n && n.isPausable), + icon: $P, label: i("download_cancel"), tooltip: i("download_cancel"), onClick: () => o.actions.cancelInstallation(e.game) }] : [{ - icon: dI, + icon: qP, label: i("download_remove"), tooltip: i("download_remove"), onClick: () => o.actions.cancelInstallation(e.game) }] }), [null === (t = o.progress) || void 0 === t ? void 0 : t.isPausable, o.actions, d, i]); - return (0, _w.jsx)(ag, { + return (0, QI.jsx)(Em, { title: i("download_title"), offset: "large", placement: "bottom-end", - footer: (0, _w.jsx)(el, { + footer: (0, QI.jsx)(xs, { size: "small", variant: "plain", - icon: kI, + icon: nT, onClick: () => (() => { const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); - if (p(!1), l) return void a(`${yD.SETTINGS}/${yD.SETTINGS_DOWNLOAD}`); + if (p(!1), l) return void a(`${XM.SETTINGS}/${XM.SETTINGS_DOWNLOAD}`); s.actions.setAnimatingAppLayoutWipe("full", !0); const t = setTimeout((() => { - a(`${yD.SETTINGS}/${yD.SETTINGS_DOWNLOAD}`) + a(`${XM.SETTINGS}/${XM.SETTINGS_DOWNLOAD}`) }), e / 2); return () => clearTimeout(t) })(), children: i("download_settings") }), fullWidth: !0, - trigger: (0, _w.jsx)(dl, { + trigger: (0, QI.jsx)(Rs, { "data-test-id": "download", "data-sol-discover": "download", - icon: (0, _w.jsx)(Ks, { - source: c ? hI : MI, + icon: (0, QI.jsx)(ms, { + source: c ? HP : gT, isPlaying: void 0 !== u && !s.isDownloadPopoverOpened && !n }), label: e, @@ -58731,42 +62648,42 @@ onOpenChange: e => p(e), children: o.installations.length > 0 ? o.installations.map(((e, t) => ((e, t) => { var n; - return (0, _w.jsxs)(_w.Fragment, { - children: [0 !== e && (0, _w.jsx)($d, { + return (0, QI.jsxs)(QI.Fragment, { + children: [0 !== e && (0, QI.jsx)(pd, { spacing: "100" - }), (0, _w.jsx)(Hd, { + }), (0, QI.jsx)(fd, { title: `${t.game.gameName} - ${t.release?t.release.versionLabel+" - ":""}${t.game.channelId}`, subtitle: i(`download_type_${t.type}`), state: t.status, actions: f(t), - progress: t.status === yw.InstallationStatus.IN_PROGRESS && null !== (n = o.progress) && void 0 !== n && n.showProgress ? o.progress.percentage : void 0, + progress: t.status === YI.InstallationStatus.IN_PROGRESS && null !== (n = o.progress) && void 0 !== n && n.showProgress ? o.progress.percentage : void 0, stats: h(t) }, `${t.game.gameId}-${t.game.channelId}`)] }) })(t, e))) : i("download_empty") }) }, - UC = ({ + xD = ({ title: e, status: t, label: n - }) => (0, _w.jsxs)(cl, { + }) => (0, QI.jsxs)(Ps, { as: "dl", align: "center", gap: "100", justify: "space-between", - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { as: "dt", color: "foreground-weak", variant: "body-m", children: e - }), (0, _w.jsx)(ap, { + }), (0, QI.jsx)(Ed, { as: "dd", - status: jw(t), + status: fC(t), children: null !== n && void 0 !== n ? n : "-" })] }), - BC = e => ({ + kD = e => ({ status: { is: "", cStateVersion: "", @@ -58825,12 +62742,12 @@ }))) }, checkStatus: async () => { - if (!pR.getState().status.intervalId) { - await GC(); - const e = setInterval(GC, Aw(yw.configuration.requestPollingInterval.status.base, yw.configuration.requestPollingInterval.status.window)); - pR.setState({ + if (!Wj.getState().status.intervalId) { + await wD(); + const e = setInterval(wD, oC(YI.configuration.requestPollingInterval.status.base, YI.configuration.requestPollingInterval.status.window)); + Wj.setState({ status: { - ...pR.getState().status, + ...Wj.getState().status, intervalId: e } }) @@ -58839,14 +62756,14 @@ } } }), - GC = async () => { + wD = async () => { const { application: e, user: t, status: n - } = pR.getState(); - if (t.actions.isLoggedIn() || WC(n.intervalId), !e.isWindowMinimized) - if (e.actions.isOffline()) pR.setState((e => ({ + } = Wj.getState(); + if (t.actions.isLoggedIn() || SD(n.intervalId), !e.isWindowMinimized) { + if (e.actions.isOffline()) return e.actions.setNonOperationalStatus(void 0), void Wj.setState((e => ({ ...e, status: { ...e.status, @@ -58876,14 +62793,14 @@ intervalId: "" } }))); - else try { - const t = await aI.fetchQuery({ + try { + const t = await FP.fetchQuery({ queryKey: ["rsiStatus"], - queryFn: async () => yE.status.getStatus(), + queryFn: async () => ZA.status.getStatus(), staleTime: 0 }), - n = null === t || void 0 === t ? void 0 : t.systems.filter((e => (e.name === yw.RSISystemName.PERSISTENTE_UNIVERSE || e.name === yw.RSISystemName.ARENA_COMMANDER) && e.status !== yw.RSISystemStatus.OPERATIONAL)).sort(((e, t) => yw.SystemStatusOrder[e.status.toUpperCase()] - yw.SystemStatusOrder[t.status.toUpperCase()])).map((e => e.status)).shift(); - e.actions.setNonOperationalStatus(n), pR.setState((e => ({ + n = null === t || void 0 === t ? void 0 : t.systems.filter((e => (e.name === YI.RSISystemName.PERSISTENTE_UNIVERSE || e.name === YI.RSISystemName.ARENA_COMMANDER) && e.status !== YI.RSISystemStatus.OPERATIONAL)).sort(((e, t) => YI.SystemStatusOrder[e.status.toUpperCase()] - YI.SystemStatusOrder[t.status.toUpperCase()])).map((e => e.status)).shift(); + e.actions.setNonOperationalStatus(n), Wj.setState((e => ({ ...e, status: { ...e.status, @@ -58894,9 +62811,10 @@ } catch (r) { console.error("ERROR", r) } - }, WC = e => { - const t = pR.getState().application; - clearInterval(e), t.actions.setNonOperationalStatus(void 0), pR.setState((e => ({ + } + }, SD = e => { + const t = Wj.getState().application; + clearInterval(e), t.actions.setNonOperationalStatus(void 0), Wj.setState((e => ({ ...e, status: { ...e.status, @@ -58926,32 +62844,32 @@ intervalId: "" } }))) - }, $C = 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":[]}'), qC = ({ + }, ED = 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":[]}'), OD = ({ labelItem: e }) => { const [t, n] = (0, Ee.useState)(!1), { t: r - } = bt("status"), i = pR((e => e.status)), a = pR((e => e.application)), { + } = bt("status"), i = Wj((e => e.status)), a = Wj((e => e.application)), { reduceMotion: { unessentialAnimationsDisabled: o } - } = Ns(), s = i.systems && i.systems.length > 0, l = a.connection.mode === yw.ConnectionMode.NO_CONNECTION, c = (0, Ee.useMemo)((() => { - if (!t && !a.isStatusPopoverOpened && i.summaryStatus && i.summaryStatus !== yw.RSISystemStatus.OPERATIONAL) return "status-" + jw(i.summaryStatus) + } = ts(), s = i.systems && i.systems.length > 0, l = a.connection.mode === YI.ConnectionMode.NO_CONNECTION, c = (0, Ee.useMemo)((() => { + if (!t && !a.isStatusPopoverOpened && i.summaryStatus && i.summaryStatus !== YI.RSISystemStatus.OPERATIONAL) return "status-" + fC(i.summaryStatus) }), [t, a.isStatusPopoverOpened, i.summaryStatus]); return (0, Ee.useEffect)((() => { - GC() - }), [a.connection.mode]), (0, _w.jsx)(ag, { + wD() + }), [a.connection.mode]), (0, QI.jsx)(Em, { title: r("status_title"), offset: "large", placement: "bottom-end", fullWidth: !0, - trigger: (0, _w.jsx)(dl, { + trigger: (0, QI.jsx)(Rs, { "data-test-id": "status", "data-sol-discover": "status", - icon: (0, _w.jsx)(Ks, { + icon: (0, QI.jsx)(ms, { color: c, - source: o || l ? mI : $C, - isPlaying: !a.isStatusPopoverOpened && !t && i.summaryStatus !== yw.RSISystemStatus.OPERATIONAL + source: o || l ? YP : ED, + isPlaying: !a.isStatusPopoverOpened && !t && i.summaryStatus !== YI.RSISystemStatus.OPERATIONAL }), label: e, onMouseEnter: () => n(!0), @@ -58961,26 +62879,26 @@ onOpenChange: e => { a.actions.setStatusPopoverOpened(e) }, - footer: (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsx)(el, { + footer: (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsx)(xs, { external: !0, - href: yw.configuration.statusUrl, + href: YI.configuration.statusUrl, size: "small", - endIcon: yI, + endIcon: XP, variant: "plain", children: r("status_more_information") - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { color: "foreground-weak", variant: "body-xs", children: i.lastRequestDate ? r("status_last_updated", { - time: Pw(i.lastRequestDate, "relative") + time: sC(i.lastRequestDate, "relative") }) : r("status_last_updated_empty") })] }), - children: (0, _w.jsx)(cl, { + children: (0, QI.jsx)(Ps, { vertical: !0, gap: "100", - children: s ? i.systems.map((e => (0, _w.jsx)(UC, { + children: s ? i.systems.map((e => (0, QI.jsx)(xD, { title: e.name, status: e.status, label: r("status_" + e.status) @@ -58988,16 +62906,16 @@ }) }) }; - class HC extends Error {} - const KC = async (e, t, n = !0) => { - const r = pR.getState().user; + class ID extends Error {} + const CD = async (e, t, n = !0) => { + const r = Wj.getState().user; if (!r.identity) throw new Error("Identification of the user cannot be retrieved"); try { const n = await r.actions.getSession(e), - i = await aI.fetchQuery(((e, t, n) => ({ + i = await FP.fetchQuery(((e, t, n) => ({ queryKey: [`gameToken-${e}-${t}-${n.value}`], - queryFn: async () => yE.games.getGameToken(e, t, n), - staleTime: Cw.day + queryFn: async () => ZA.games.getGameToken(e, t, n), + staleTime: aC.day }))(e, t, n)); return { username: r.identity.username, @@ -59006,10 +62924,10 @@ gameToken: i } } catch (i) { - if (i instanceof IS && n) return r.actions.clearSession(e), KC(e, t, !1); + if (i instanceof rA && n) return r.actions.clearSession(e), CD(e, t, !1); throw i } - }, YC = (e, t, n) => { + }, AD = (e, t, n) => { const r = e.find((({ id: e }) => e === t.gameId)), @@ -59026,17 +62944,17 @@ }] }; return [...e.filter((e => e.id !== t.gameId)), o] - }, QC = e => ({ + }, PD = e => ({ ...e, logo: void 0, logoWide: void 0, logoAnimation: void 0, bgImage: void 0, bgVideo: void 0 - }), ZC = async e => { + }), TD = async e => { try { var t, n, r, i, a, o, s, l, c; - const u = pR.getState().settings, + const u = Wj.getState().settings, { gameId: d, channelId: p, @@ -59044,7 +62962,7 @@ channelName: f, platformId: m } = e, - g = await aI.fetchQuery(NE(d, p)), + g = await FP.fetchQuery(fP(d, p)), v = await u.actions.getChannelGameSettings({ platformId: m, gameId: d, @@ -59070,9 +62988,9 @@ launchOptions: null !== (c = null === v || void 0 === v ? void 0 : v.launchOptions) && void 0 !== c ? c : g.launchOptions } } catch (u) { - throw new HC("We could not get any information about the game") + throw new ID("We could not get any information about the game") } - }, XC = (e, t) => t > e, JC = { + }, RD = (e, t) => t > e, DD = { LIVE: 20, PTU: 19, SHADOW: 18, @@ -59084,20 +63002,20 @@ THE_OCHO: 12, STARBASE: 11, SQ42: 10 - }, eA = (e, t) => (JC[t] || 0) - (JC[e] || 0), tA = "LIVE", nA = { + }, LD = (e, t) => (DD[t] || 0) - (DD[e] || 0), ND = "LIVE", jD = { platformId: "prod", gameId: "SC", gameName: "Star Citizen", - channelId: tA, + channelId: ND, channelName: "Live Release" - }, rA = (e = [], t = []) => ({ + }, MD = (e = [], t = []) => ({ availableGames: t, installedGames: e, - gameSelected: nA.gameId, - channelSelected: nA - }), iA = (e, t) => ({ + gameSelected: jD.gameId, + channelSelected: jD + }), FD = (e, t) => ({ library: { - ...rA(), + ...MD(), actions: { initializeLibrary: async () => { const t = await window.launcherAPI.store.getValueFromStore("library.installed"), @@ -59105,14 +63023,14 @@ e((e => ({ library: { ...e.library, - ...rA(t, n) + ...MD(t, n) } }))) }, setAvailableGames: t => { var n; - const r = null !== (n = yw.configuration.assets.games) && void 0 !== n ? n : [], - i = yw.configuration.assets.directory, + const r = null !== (n = YI.configuration.assets.games) && void 0 !== n ? n : [], + i = YI.configuration.assets.directory, a = t.map((e => { const t = r.find((t => t.id === e.id)); return { @@ -59144,30 +63062,22 @@ channelSelected: t } }))); - const n = await ZC(t), - r = (await window.launcherAPI.store.getValueFromStore("library.defaults")).filter((e => e.gameId !== t.gameId)); - window.launcherAPI.store.setValueToStore("library.defaults", [...r, t]); - const i = { - gameId: t.gameId, - channelId: t.channelId, - libraryFolder: n.libraryFolder, - installDir: n.installDir - }; - window.launcherAPI.game.initializedWatcher(i) + const n = (await window.launcherAPI.store.getValueFromStore("library.defaults")).filter((e => e.gameId !== t.gameId)); + window.launcherAPI.store.setValueToStore("library.defaults", [...n, t]) }, getAvailableChannelsSorted: e => { var n; const { availableGames: r } = t().library, i = r.find((t => t.id === e)); - return (null !== (n = null === i || void 0 === i ? void 0 : i.channels) && void 0 !== n ? n : []).sort(((e, t) => eA(e.id, t.id))) + return (null !== (n = null === i || void 0 === i ? void 0 : i.channels) && void 0 !== n ? n : []).sort(((e, t) => LD(e.id, t.id))) }, getInstalledChannelsSorted: e => { var n; const { installedGames: r } = t().library, i = r.find((t => t.id === e)); - return (null !== (n = null === i || void 0 === i ? void 0 : i.channels) && void 0 !== n ? n : []).sort(((e, t) => eA(e.id, t.id))) + return (null !== (n = null === i || void 0 === i ? void 0 : i.channels) && void 0 !== n ? n : []).sort(((e, t) => LD(e.id, t.id))) }, getAvailableGamesChannelsWeightSorted: () => { const { @@ -59175,7 +63085,7 @@ } = t().library; return e.map((e => ({ ...e, - channels: e.channels.sort(((e, t) => eA(e.id, t.id))) + channels: e.channels.sort(((e, t) => LD(e.id, t.id))) }))) }, getAvailableChannel: e => { @@ -59217,7 +63127,7 @@ ...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: yw.GameChannelStatus.AVAILABLE + status: YI.GameChannelStatus.AVAILABLE }] }; e((e => ({ @@ -59230,13 +63140,13 @@ saveInstalledGameChannel: async n => { const { library: r - } = t(), i = YC(r.installedGames, n, yw.GameChannelStatus.INSTALLED); + } = t(), i = AD(r.installedGames, n, YI.GameChannelStatus.INSTALLED); e((e => ({ library: { ...e.library, installedGames: i } - }))), window.launcherAPI.store.setValueToStore("library.installed", i.map(QC)) + }))), window.launcherAPI.store.setValueToStore("library.installed", i.map(PD)) }, removeInstalledGameChannel: async n => { var r, i; @@ -59266,7 +63176,7 @@ soundSystem: i, dialog: a } = t(), o = r.actions.getInstalledChannel(n); - if (!Dw(r.channelSelected.gameId, r.availableGames) || !o) return; + if (!uC(r.channelSelected.gameId, r.availableGames) || !o) return; if (await window.launcherAPI.game.isGameProcessRunning()) await t().dialog.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_launch_game_running_title", { ns: "errors" @@ -59276,9 +63186,9 @@ }) }); else try { - const t = await ZC(n); - if (XC(o.version, t.version)) { - const t = YC(r.installedGames, n, yw.GameChannelStatus.UPDATE_AVAILABLE); + const t = await TD(n); + if (RD(o.version, t.version)) { + const t = AD(r.installedGames, n, YI.GameChannelStatus.UPDATE_AVAILABLE); return e((e => ({ library: { ...e.library, @@ -59286,9 +63196,9 @@ } }))), window.launcherAPI.store.setValueToStore("library.installed", t), void await a.actions.showGameChannelUpdateAvailableDialog(n) } - if (!await RE(n.gameId, n.channelId)) return; - const s = await KC(n.platformId, n.gameId), - l = Rw(), + if (!await dP(n.gameId, n.channelId)) return; + const s = await CD(n.platformId, n.gameId), + l = cC(), c = { ...t, libraryFolder: t.libraryFolder, @@ -59298,37 +63208,37 @@ }; i.actions.changeVolume(0, 2e3), l.window.setMinimizeWindow(), l.game.launchGame(c) } catch (s) { - if (window.launcherAPI.log.error(`Not able to launch the game : ${s}`), s instanceof FS) return void await a.actions.showAcknowledgeDialogErrorOccured({ + if (window.launcherAPI.log.error(`Not able to launch the game : ${s}`), s instanceof mA) return void await a.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_launch_account_not_found_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { - children: (0, _w.jsx)(ft, { + children: [(0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { i18nKey: "error_launch_account_not_found_content", t: xt.t, ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.copyPTUAccountSupportUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.copyPTUAccountSupportUrl, external: !0 })] }) - }), (0, _w.jsx)(Ys, { - children: (0, _w.jsx)(ft, { + }), (0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.issueCouncilUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.issueCouncilUrl, external: !0 - }), (0, _w.jsx)(zm, { - href: yw.configuration.filesSupportUrl, + }), (0, QI.jsx)(am, { + href: YI.configuration.filesSupportUrl, external: !0 })] }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: s.code, ns: "errors" @@ -59336,31 +63246,31 @@ })] }) }); - if (s instanceof HC) return void await a.actions.showAcknowledgeDialogErrorOccured({ + if (s instanceof ID) return void await a.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_launch_check_update_unavailable_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { children: xt.t("error_launch_check_update_unavailable_content", { ns: "errors" }) - }), (0, _w.jsx)(Ys, { - children: (0, _w.jsx)(ft, { + }), (0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.issueCouncilUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.issueCouncilUrl, external: !0 - }), (0, _w.jsx)(zm, { - href: yw.configuration.filesSupportUrl, + }), (0, QI.jsx)(am, { + href: YI.configuration.filesSupportUrl, external: !0 })] }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: "6004", ns: "errors" @@ -59368,22 +63278,22 @@ })] }) }); - await pR.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + await Wj.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_launch_unknown_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { - children: (0, _w.jsx)(ft, { + children: [(0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { i18nKey: "error_launch_unknown_content", t: xt.t, ns: "errors" }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { - code: yw.LauncherSpecificLaunchErrorCodes.ERR_LAUNCH_UNKNOWN, + code: YI.LauncherSpecificLaunchErrorCodes.ERR_LAUNCH_UNKNOWN, ns: "errors" }) })] @@ -59403,7 +63313,7 @@ }, library: { ...e.library, - installedGames: YC(e.library.installedGames, t, yw.GameChannelStatus.RUNNING) + installedGames: AD(e.library.installedGames, t, YI.GameChannelStatus.RUNNING) } }))) }, @@ -59426,12 +63336,12 @@ }, library: { ...e.library, - installedGames: YC(e.library.installedGames, a, yw.GameChannelStatus.INSTALLED) + installedGames: AD(e.library.installedGames, a, YI.GameChannelStatus.INSTALLED) } }))), r.actions.unmute(), window.launcherAPI.window.setRestoreWindow(); - const o = (0, yw.serializerLaunchErrors)(n); - await xE((e => { - const t = pR.getState().installer, + const o = (0, YI.serializerLaunchErrors)(n); + await eP((e => { + const t = Wj.getState().installer, { gameId: n, platformId: r, @@ -59447,24 +63357,24 @@ channelName: o }; switch (!0) { - case e instanceof yw.NoGameFilesError: + case e instanceof YI.NoGameFilesError: return { handler: { - type: bE.DISPLAY_WARNING_DIALOG, + type: JA.DISPLAY_WARNING_DIALOG, args: { title: xt.t("error_launch_no_game_files_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { - children: (0, _w.jsx)(ft, { + children: [(0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { i18nKey: "error_launch_no_game_files_content", t: xt.t, ns: "errors" }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -59472,7 +63382,7 @@ })] }), primaryCallback: async () => { - t.actions.addInstallationToQueue(s, yw.InstallationType.VERIFY) + t.actions.addInstallationToQueue(s, YI.InstallationType.VERIFY) }, primaryLabel: xt.t("dialog_action_verify", { ns: "dialog" @@ -59480,24 +63390,24 @@ } }, error: e }; - case e instanceof yw.EACError: + case e instanceof YI.EACError: return { handler: { - type: bE.DISPLAY_WARNING_DIALOG, + type: JA.DISPLAY_WARNING_DIALOG, args: { title: xt.t("error_launch_EAC_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { - children: (0, _w.jsx)(ft, { + children: [(0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { i18nKey: "error_launch_EAC_content", t: xt.t, ns: "errors" }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -59505,7 +63415,64 @@ })] }), primaryCallback: async () => { - t.actions.addInstallationToQueue(s, yw.InstallationType.VERIFY) + t.actions.addInstallationToQueue(s, YI.InstallationType.VERIFY) + }, + primaryLabel: xt.t("dialog_action_verify", { + ns: "dialog" + }) + } + }, error: e + }; + case e instanceof YI.GameCrashError: + return { + handler: { + type: JA.DISPLAY_WARNING_DIALOG, + args: { + title: xt.t("error_launch_game_crash_title", { + game: a, + ns: "errors" + }), + content: (0, QI.jsxs)(Ps, { + gap: "100", + vertical: !0, + children: [(0, QI.jsxs)(Ps, { + gap: "0", + vertical: !0, + children: [(0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { + i18nKey: "error_launch_game_crash_content_1", + t: xt.t, + ns: "errors" + }) + }), (0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { + i18nKey: "error_launch_game_crash_content_2", + t: xt.t, + ns: "errors" + }) + })] + }), (0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { + i18nKey: "error_report_bug", + t: xt.t, + ns: "errors", + components: [(0, QI.jsx)(am, { + href: YI.configuration.issueCouncilUrl, + external: !0 + }), (0, QI.jsx)(am, { + href: YI.configuration.filesSupportUrl, + external: !0 + })] + }) + }), (0, QI.jsx)(gs, { + children: xt.t("error_game_error_code", { + code: e.message, + ns: "errors" + }) + })] + }), + primaryCallback: async () => { + t.actions.addInstallationToQueue(s, YI.InstallationType.VERIFY) }, primaryLabel: xt.t("dialog_action_verify", { ns: "dialog" @@ -59516,32 +63483,32 @@ default: return { handler: { - type: bE.DISPLAY_WARNING_DIALOG, + type: JA.DISPLAY_WARNING_DIALOG, args: { title: xt.t("error_launch_unknown_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { children: xt.t("error_launch_unknown_content", { ns: "errors" }) - }), (0, _w.jsx)(Ys, { - children: (0, _w.jsx)(ft, { + }), (0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.issueCouncilUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.issueCouncilUrl, external: !0 - }), (0, _w.jsx)(zm, { - href: yw.configuration.filesSupportUrl, + }), (0, QI.jsx)(am, { + href: YI.configuration.filesSupportUrl, external: !0 })] }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_launch_error_code", { code: e.code, ns: "errors" @@ -59549,7 +63516,7 @@ })] }), primaryCallback: async () => { - t.actions.addInstallationToQueue(s, yw.InstallationType.VERIFY) + t.actions.addInstallationToQueue(s, YI.InstallationType.VERIFY) }, primaryLabel: xt.t("dialog_action_verify", { ns: "dialog" @@ -59571,23 +63538,15 @@ }, library: { ...e.library, - installedGames: YC(e.library.installedGames, n, yw.GameChannelStatus.INSTALLED) + installedGames: AD(e.library.installedGames, n, YI.GameChannelStatus.INSTALLED) } - }))); - const i = await ZC(n), - a = { - gameId: n.gameId, - channelId: n.channelId, - installDir: null === i || void 0 === i ? void 0 : i.installDir, - libraryFolder: null === i || void 0 === i ? void 0 : i.libraryFolder - }; - r.actions.unmute(), window.launcherAPI.window.setRestoreWindow(), window.launcherAPI.game.initializedWatcher(a) + }))), r.actions.unmute(), window.launcherAPI.window.setRestoreWindow() }, checkForGameChannelUpdates: async () => { try { const { library: n - } = t(), r = await aI.fetchQuery(LE()); + } = t(), r = await FP.fetchQuery(hP()); n.actions.setAvailableGames(r); const i = e => e.channels.map((t => { const n = null === r || void 0 === r ? void 0 : r.find((({ @@ -59596,11 +63555,11 @@ i = null === n || void 0 === n ? void 0 : n.channels.find((({ id: e }) => e === t.id)); - return i && XC(t.version, i.version) ? { + return i && RD(t.version, i.version) ? { ...t, versionLabel: i.versionLabel, version: i.version, - status: yw.GameChannelStatus.UPDATE_AVAILABLE + status: YI.GameChannelStatus.UPDATE_AVAILABLE } : t })), a = n.installedGames.map((e => ({ @@ -59617,17 +63576,17 @@ ...e, channels: i(e).map((e => ({ ...e, - status: e.status === yw.GameChannelStatus.RUNNING ? yw.GameChannelStatus.INSTALLED : e.status + status: e.status === YI.GameChannelStatus.RUNNING ? YI.GameChannelStatus.INSTALLED : e.status }))) }))); window.launcherAPI.store.setValueToStore("library.installed", o) - } catch (OD) { - throw new HC + } catch (sF) { + throw new ID } } } } - }), aA = (e, t) => ({ + }), zD = (e, t) => ({ installer: { installations: [], uninstallations: [], @@ -59649,12 +63608,12 @@ installer: i, application: a } = t(); - IE(i.installations, n) || (e((e => ({ + aP(i.installations, n) || (e((e => ({ installer: { ...e.installer, installations: [...e.installer.installations, { game: n, - status: yw.InstallationStatus.WAITING, + status: YI.InstallationStatus.WAITING, type: r }] } @@ -59664,8 +63623,8 @@ const { installer: e } = t(); - if (CE(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 === yw.InstallationStatus.WAITING)); + if (sP(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 === YI.InstallationStatus.WAITING)); if (0 === n.length) return; const r = n[0]; await e.actions.startInstallation(r.game, { @@ -59677,7 +63636,7 @@ e((e => ({ installer: { ...e.installer, - installations: e.installer.installations.filter((e => e.status !== yw.InstallationStatus.COMPLETED && e.status !== yw.InstallationStatus.ERROR)) + installations: e.installer.installations.filter((e => e.status !== YI.InstallationStatus.COMPLETED && e.status !== YI.InstallationStatus.ERROR)) } }))) }, @@ -59702,7 +63661,7 @@ } = n; if (!a) { l.actions.setDownloadPopoverOpened(!1); - const t = await RE(); + const t = await dP(); if (l.actions.setDownloadPopoverOpened(!0), !t) return void o.cancelInstallation(n); e((e => ({ installer: { @@ -59711,17 +63670,17 @@ } }))) } - const f = CE(i); - if (f && !PE(f.game, n)) return void console.warn(`Cannot start the installation of ${n} since the installer is already running`); - const m = IE(i, n); + const f = sP(i); + if (f && !cP(f.game, n)) return void console.warn(`Cannot start the installation of ${n} since the installer is already running`); + const m = aP(i, n); if (m) try { - const t = await ZC(n); + const t = await TD(n); e((e => ({ installer: { ...e.installer, - installations: i.map((e => PE(e.game, n) ? { + installations: i.map((e => cP(e.game, n) ? { ...e, - status: yw.InstallationStatus.IN_PROGRESS, + status: YI.InstallationStatus.IN_PROGRESS, release: t } : e)) } @@ -59732,13 +63691,13 @@ channelName: h, libraryFolder: s.library.defaultLibraryFolder, forcePatcher: !1, - verify: m.type === yw.InstallationType.VERIFY + verify: m.type === YI.InstallationType.VERIFY }; - if (Rw().installer.setInstall(a), c.actions.addInstalledGameChannel(n), !r.skipAnalitics) { + if (cC().installer.setInstall(a), c.actions.addInstalledGameChannel(n), !r.skipAnalitics) { const e = { - [yw.InstallationType.INSTALL]: yw.AnalyticsEventName.APP_INSTALL_START, - [yw.InstallationType.VERIFY]: yw.AnalyticsEventName.APP_VERIFY_START, - [yw.InstallationType.UPDATE]: yw.AnalyticsEventName.APP_UPDATE_START + [YI.InstallationType.INSTALL]: YI.AnalyticsEventName.APP_INSTALL_START, + [YI.InstallationType.VERIFY]: YI.AnalyticsEventName.APP_VERIFY_START, + [YI.InstallationType.UPDATE]: YI.AnalyticsEventName.APP_UPDATE_START } [m.type]; window.launcherAPI.analytics.setAnalyticsEvent(e, { Game: m.game.gameId, @@ -59753,7 +63712,7 @@ startUninstallation: async n => { const { dialog: r - } = t(), i = await ZC(n), a = await r.actions.showWarningUninstallDialog(i); + } = t(), i = await TD(n), a = await r.actions.showWarningUninstallDialog(i); a.resolved && (console.log("Start the uninstallation for ", n, a), window.launcherAPI.installer.setUninstall(i, { keepUserFolder: void 0 !== a.results.keepUserFolder }), e((e => ({ @@ -59768,11 +63727,11 @@ application: r, installer: i, dialog: a - } = t(), o = IE(i.installations, n); - o ? o.status === yw.InstallationStatus.IN_PROGRESS || o.status === yw.InstallationStatus.PAUSED ? (r.actions.setDownloadPopoverOpened(!1), await a.actions.showGameCancelInstallationDialog(o)) : (e((e => ({ + } = t(), o = aP(i.installations, n); + o ? o.status === YI.InstallationStatus.IN_PROGRESS || o.status === YI.InstallationStatus.PAUSED ? (r.actions.setDownloadPopoverOpened(!1), await a.actions.showGameCancelInstallationDialog(o)) : (e((e => ({ installer: { ...e.installer, - installations: TE(e.installer.installations, n) + installations: uP(e.installer.installations, n) } }))), await i.actions.processInstallationQueue()) : console.warn("We could not clear the installation because the game is not in the queue") }, @@ -59780,7 +63739,7 @@ var r, i; const { installer: a - } = t(), o = IE(a.installations, n); + } = t(), o = aP(a.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, @@ -59788,22 +63747,22 @@ channelName: o.game.channelName, libraryFolder: o.release.libraryFolder, forcePatcher: !1, - verify: o.type === yw.InstallationType.VERIFY + verify: o.type === YI.InstallationType.VERIFY }, - l = o.type !== yw.InstallationType.INSTALL || null !== (r = null === (i = o.options) || void 0 === i ? void 0 : i.keepFilesOnCancel) && void 0 !== r && r; + l = o.type !== YI.InstallationType.INSTALL || null !== (r = null === (i = o.options) || void 0 === i ? void 0 : i.keepFilesOnCancel) && void 0 !== r && r; window.launcherAPI.installer.setInstallCancel(s, { keepFiles: l }), e((e => ({ installer: { ...e.installer, progress: void 0, - installations: o.type === yw.InstallationType.INSTALL ? DE(e.installer.installations, n, yw.InstallationStatus.CANCELLING) : TE(e.installer.installations, n) + installations: o.type === YI.InstallationType.INSTALL ? pP(e.installer.installations, n, YI.InstallationStatus.CANCELLING) : uP(e.installer.installations, n) } }))); const c = { - [yw.InstallationType.INSTALL]: yw.AnalyticsEventName.APP_INSTALL_STOP, - [yw.InstallationType.VERIFY]: yw.AnalyticsEventName.APP_VERIFY_STOP, - [yw.InstallationType.UPDATE]: yw.AnalyticsEventName.APP_UPDATE_STOP + [YI.InstallationType.INSTALL]: YI.AnalyticsEventName.APP_INSTALL_STOP, + [YI.InstallationType.VERIFY]: YI.AnalyticsEventName.APP_VERIFY_STOP, + [YI.InstallationType.UPDATE]: YI.AnalyticsEventName.APP_UPDATE_STOP } [o.type]; window.launcherAPI.analytics.setAnalyticsEvent(c, { Game: o.game.gameId, @@ -59817,8 +63776,8 @@ installations: r, progress: i } - } = t(), a = IE(r, n); - if (a && a.status !== yw.InstallationStatus.PAUSED) { + } = t(), a = aP(r, n); + if (a && a.status !== YI.InstallationStatus.PAUSED) { if (e((e => ({ installer: { ...e.installer, @@ -59826,7 +63785,7 @@ ...e.installer.progress, speed: "0" } : void 0, - installations: DE(e.installer.installations, n, yw.InstallationStatus.PAUSED) + installations: pP(e.installer.installations, n, YI.InstallationStatus.PAUSED) } }))), null !== i && void 0 !== i && i.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") @@ -59836,11 +63795,11 @@ installer: { installations: r } - } = t(), i = IE(r, n); - if (i && i.status === yw.InstallationStatus.PAUSED) return e((e => ({ + } = t(), i = aP(r, n); + if (i && i.status === YI.InstallationStatus.PAUSED) return e((e => ({ installer: { ...e.installer, - installations: DE(e.installer.installations, n, yw.InstallationStatus.IN_PROGRESS) + installations: pP(e.installer.installations, n, YI.InstallationStatus.IN_PROGRESS) } }))), window.launcherAPI.installer.setInstallResume(); console.warn("We could not resume the installation because the game is not in the queue") @@ -59851,13 +63810,13 @@ installer: { installations: i } - } = t(), a = IE(i, n); - a && a.status === yw.InstallationStatus.ERROR ? 0 !== (null === (r = a.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) && e((e => { + } = t(), a = aP(i, n); + a && a.status === YI.InstallationStatus.ERROR ? 0 !== (null === (r = a.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) && e((e => { var t, r; return { installer: { ...e.installer, - installations: DE(e.installer.installations, n, yw.InstallationStatus.WAITING, { + installations: pP(e.installer.installations, n, YI.InstallationStatus.WAITING, { ...a.options, numberOfRetriesLeft: (null !== (t = null === (r = a.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) && void 0 !== t ? t : 3) - 1 }) @@ -59871,10 +63830,10 @@ installations: i } } = t(); - IE(i, n) ? e((e => ({ + aP(i, n) ? e((e => ({ installer: { ...e.installer, - installations: e.installer.installations.map((e => PE(e.game, n) ? { + installations: e.installer.installations.map((e => cP(e.game, n) ? { ...e, options: r } : e)) @@ -59888,10 +63847,10 @@ progress: i } } = t(); - CE(r) ? e((e => ({ + sP(r) ? e((e => ({ installer: { ...e.installer, - progress: EE(n, i) + progress: iP(n, i) } }))) : console.warn("We could not update info about download progression since there is no installation in progress") }, @@ -59909,7 +63868,7 @@ channelName: n.channelName, platformId: n.platformId }, - s = IE(r.installations, o); + s = aP(r.installations, o); if (!s) 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: { @@ -59924,7 +63883,7 @@ installer: { ...e.installer, progress: void 0, - installations: DE(e.installer.installations, o, yw.InstallationStatus.COMPLETED) + installations: pP(e.installer.installations, o, YI.InstallationStatus.COMPLETED) } }))), r.actions.setInstallSuccessToast(s.game), i.actions.saveInstalledGameChannel(o); const l = { @@ -59933,9 +63892,9 @@ }; await a.actions.saveChannelGameSettings(l), await r.actions.processInstallationQueue(); const c = { - [yw.InstallationType.INSTALL]: yw.AnalyticsEventName.APP_INSTALL_SUCCESS, - [yw.InstallationType.VERIFY]: yw.AnalyticsEventName.APP_VERIFY_SUCCESS, - [yw.InstallationType.UPDATE]: yw.AnalyticsEventName.APP_UPDATE_SUCCESS + [YI.InstallationType.INSTALL]: YI.AnalyticsEventName.APP_INSTALL_SUCCESS, + [YI.InstallationType.VERIFY]: YI.AnalyticsEventName.APP_VERIFY_SUCCESS, + [YI.InstallationType.UPDATE]: YI.AnalyticsEventName.APP_UPDATE_SUCCESS } [s.type]; window.launcherAPI.analytics.setAnalyticsEvent(c, { Game: s.game.gameId, @@ -59947,20 +63906,20 @@ const { installer: r, application: i - } = t(), a = IE(r.installations, n.payload); + } = t(), a = aP(r.installations, n.payload); if (!a) return void console.warn("We could not clear the installation because the game is not in the queue"); i.actions.setDownloadPopoverOpened(!1), e((e => ({ installer: { ...e.installer, progress: void 0, - installations: DE(e.installer.installations, a.game, yw.InstallationStatus.ERROR) + installations: pP(e.installer.installations, a.game, YI.InstallationStatus.ERROR) } }))); - const o = (0, yw.serializerInstallerErrors)(n); - await xE((e => { + const o = (0, YI.serializerInstallerErrors)(n); + await eP((e => { var t, n, r; - const i = pR.getState().installer, - a = pR.getState().library, + const i = Wj.getState().installer, + a = Wj.getState().library, { gameId: o, platformId: s, @@ -59975,24 +63934,24 @@ channelName: u, platformId: s }) && void 0 !== t ? t : a.channelSelected, - p = IE(i.installations, d); + p = aP(i.installations, d); switch (!0) { - case e instanceof yw.InvalidMDFileError: + case e instanceof YI.InvalidMDFileError: return { handler: { - type: bE.DISPLAY_ACKNOWLEDGE_DIALOG, + type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_basepack_invalid_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { children: xt.t("error_installer_basepack_invalid_content", { ns: "errors" }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -60002,36 +63961,36 @@ } }, error: e }; - case e instanceof yw.InvalidMDFileHeaderError: - case e instanceof yw.NotMappedError: + case e instanceof YI.InvalidMDFileHeaderError: + case e instanceof YI.NotMappedError: return { handler: { - type: bE.DISPLAY_ACKNOWLEDGE_DIALOG, + type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_init_download_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { children: xt.t("error_installer_generic_content", { ns: "errors" }) - }), (0, _w.jsx)(Ys, { - children: (0, _w.jsx)(ft, { + }), (0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.issueCouncilUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.issueCouncilUrl, external: !0 - }), (0, _w.jsx)(zm, { - href: yw.configuration.filesSupportUrl, + }), (0, QI.jsx)(am, { + href: YI.configuration.filesSupportUrl, external: !0 })] }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -60041,22 +64000,22 @@ } }, error: e }; - case e instanceof yw.DiskFullError: + case e instanceof YI.DiskFullError: return { handler: { - type: bE.DISPLAY_ACKNOWLEDGE_DIALOG, + type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_disc_full_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { children: xt.t("error_installer_disc_full_content", { ns: "errors" }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -60066,22 +64025,22 @@ } }, error: e }; - case e instanceof yw.WritePermissionsError: + case e instanceof YI.WritePermissionsError: return { handler: { - type: bE.DISPLAY_WARNING_DIALOG, + type: JA.DISPLAY_WARNING_DIALOG, args: { title: xt.t("error_installer_permissions_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { children: xt.t("error_installer_permissions_content", { ns: "errors" }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -60097,22 +64056,22 @@ } }, error: e }; - case e instanceof yw.FileInUseError: + case e instanceof YI.FileInUseError: return { handler: { - type: bE.DISPLAY_ACKNOWLEDGE_DIALOG, + type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_file_in_use_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { children: xt.t("error_installer_file_in_use_content", { ns: "errors" }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -60122,22 +64081,22 @@ } }, error: e }; - case e instanceof yw.Pk4CorruptedError: + case e instanceof YI.Pk4CorruptedError: return { handler: { - type: bE.DISPLAY_ACKNOWLEDGE_DIALOG, + type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_pk4_corrupted_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { children: xt.t("error_installer_pk4_corrupted_content", { ns: "errors" }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -60147,22 +64106,22 @@ } }, error: e }; - case e instanceof yw.RetrieveManifestError: + case e instanceof YI.RetrieveManifestError: return { handler: { - type: bE.DISPLAY_ACKNOWLEDGE_DIALOG, + type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_retrieve_manifest_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { children: xt.t("error_installer_retrieve_manifest_content", { ns: "errors" }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -60172,22 +64131,22 @@ } }, error: e }; - case e instanceof yw.PatcherUnknownNetworkError: + case e instanceof YI.PatcherUnknownNetworkError: return { handler: { - type: bE.DISPLAY_ACKNOWLEDGE_DIALOG, + type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_unknown_network_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { children: xt.t("error_installer_unknown_network_content", { ns: "errors" }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -60197,35 +64156,35 @@ } }, error: e }; - case e instanceof yw.BasePackP4kCorruptedError: + case e instanceof YI.BasePackP4kCorruptedError: return { handler: { - type: bE.DISPLAY_ACKNOWLEDGE_DIALOG, + type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_base_p4k_corrupted_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { children: xt.t("error_installer_base_p4k_corrupted_content", { ns: "errors" }) - }), (0, _w.jsx)(Ys, { - children: (0, _w.jsx)(ft, { + }), (0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.issueCouncilUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.issueCouncilUrl, external: !0 - }), (0, _w.jsx)(zm, { - href: yw.configuration.filesSupportUrl, + }), (0, QI.jsx)(am, { + href: YI.configuration.filesSupportUrl, external: !0 })] }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -60235,36 +64194,36 @@ } }, error: e }; - case e instanceof yw.DownloadUnsuccessfullError: + case e instanceof YI.DownloadUnsuccessfullError: return [{ handler: { - type: bE.DISPLAY_WARNING_DIALOG, + type: JA.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: xt.t("error_installer_base_p4k_corrupted_title", { ns: "errors" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { children: xt.t("error_installer_base_p4k_corrupted_content", { ns: "errors" }) - }), (0, _w.jsx)(Ys, { - children: (0, _w.jsx)(ft, { + }), (0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.issueCouncilUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.issueCouncilUrl, external: !0 - }), (0, _w.jsx)(zm, { - href: yw.configuration.filesSupportUrl, + }), (0, QI.jsx)(am, { + href: YI.configuration.filesSupportUrl, external: !0 })] }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -60272,7 +64231,7 @@ })] }), primaryCallback: async () => { - i.actions.addInstallationToQueue(d, yw.InstallationType.VERIFY) + i.actions.addInstallationToQueue(d, YI.InstallationType.VERIFY) }, primaryLabel: xt.t("dialog_action_verify", { ns: "dialog" @@ -60282,66 +64241,66 @@ error: e }]; default: - const t = () => e.code === yw.InitialDownloadErrorsNames.ERR_INIT_UNKNOWN ? xt.t("error_installer_init_download_title", { + const t = () => e.code === YI.InitialDownloadErrorsNames.ERR_INIT_UNKNOWN ? xt.t("error_installer_init_download_title", { ns: "errors" - }) : e.code === yw.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? xt.t("error_installer_patcher_title", { + }) : e.code === YI.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? xt.t("error_installer_patcher_title", { ns: "errors" }) : xt.t("error_installer_title", { ns: "errors" }), - a = () => e.code === yw.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? (0, _w.jsxs)(cl, { + a = () => e.code === YI.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { - children: (0, _w.jsx)(ft, { + children: [(0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { i18nKey: "error_installer_patcher_generic_content", t: xt.t, ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.installerErrorKnowledgeDatabaseUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.installerErrorKnowledgeDatabaseUrl, external: !0 })] }) - }), (0, _w.jsx)(Ys, { - children: (0, _w.jsx)(ft, { + }), (0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.issueCouncilUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.issueCouncilUrl, external: !0 - }), (0, _w.jsx)(zm, { - href: yw.configuration.filesSupportUrl, + }), (0, QI.jsx)(am, { + href: YI.configuration.filesSupportUrl, external: !0 })] }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" }) })] - }) : (0, _w.jsxs)(cl, { + }) : (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(gs, { children: xt.t("error_installer_generic_content", { ns: "errors" }) - }), (0, _w.jsx)(Ys, { - children: (0, _w.jsx)(ft, { + }), (0, QI.jsx)(gs, { + children: (0, QI.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.issueCouncilUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.issueCouncilUrl, external: !0 - }), (0, _w.jsx)(zm, { - href: yw.configuration.filesSupportUrl, + }), (0, QI.jsx)(am, { + href: YI.configuration.filesSupportUrl, external: !0 })] }) - }), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)(gs, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -60350,7 +64309,7 @@ }); return { handler: { - type: bE.DISPLAY_ACKNOWLEDGE_DIALOG, + type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: t(), content: a() @@ -60360,9 +64319,9 @@ } })(o)), i.actions.setDownloadPopoverOpened(!0), await r.actions.processInstallationQueue(); const s = { - [yw.InstallationType.INSTALL]: yw.AnalyticsEventName.APP_INSTALL_ERROR, - [yw.InstallationType.VERIFY]: yw.AnalyticsEventName.APP_VERIFY_ERROR, - [yw.InstallationType.UPDATE]: yw.AnalyticsEventName.APP_UPDATE_ERROR + [YI.InstallationType.INSTALL]: YI.AnalyticsEventName.APP_INSTALL_ERROR, + [YI.InstallationType.VERIFY]: YI.AnalyticsEventName.APP_VERIFY_ERROR, + [YI.InstallationType.UPDATE]: YI.AnalyticsEventName.APP_UPDATE_ERROR } [a.type]; window.launcherAPI.analytics.setAnalyticsEvent(s, { Game: a.game.gameId, @@ -60376,30 +64335,30 @@ const { installer: n, toasts: r - } = t(), i = AE(n.installations); + } = t(), i = lP(n.installations); i && e((e => ({ installer: { ...e.installer, progress: void 0, - installations: [...TE(e.installer.installations, i.game)] + installations: [...uP(e.installer.installations, i.game)] } }))), r.actions.add({ type: "negative", title: _e.t("download_toast_install_cancel_success", { ns: "download" }), - icon: fI + icon: KP }), await n.actions.processInstallationQueue() }, setCancelationFailed: async n => { const { installer: r - } = t(), i = AE(r.installations); + } = t(), i = lP(r.installations); i && e((e => ({ installer: { ...e.installer, progress: void 0, - installations: [...TE(e.installer.installations, i.game)] + installations: [...uP(e.installer.installations, i.game)] } }))), await r.actions.processInstallationQueue() }, @@ -60409,12 +64368,12 @@ library: i, settings: a } = t(); - OE(r.uninstallations, n) ? (e((e => ({ + oP(r.uninstallations, n) ? (e((e => ({ installer: { ...e.installer, uninstallations: e.installer.uninstallations.filter((e => e.channelId !== n.channelId && e.gameId !== n.gameId)) } - }))), i.actions.removeInstalledGameChannel(n), await a.actions.resetChannelGameSettings(n), window.launcherAPI.analytics.setAnalyticsEvent(yw.AnalyticsEventName.APP_UNINSTALL_SUCCESS, { + }))), i.actions.removeInstalledGameChannel(n), await a.actions.resetChannelGameSettings(n), window.launcherAPI.analytics.setAnalyticsEvent(YI.AnalyticsEventName.APP_UNINSTALL_SUCCESS, { Game: n.gameId, Channel: n.channelId, Environment: n.platformId @@ -60425,13 +64384,13 @@ installer: r } = t(), { payload: i - } = n, a = OE(r.uninstallations, i); + } = n, a = oP(r.uninstallations, i); a ? (e((e => ({ installer: { ...e.installer, uninstallations: e.installer.uninstallations.filter((e => e.channelId !== i.channelId && e.gameId !== i.gameId)) } - }))), window.launcherAPI.analytics.setAnalyticsEvent(yw.AnalyticsEventName.APP_UNINSTALL_ERROR, { + }))), window.launcherAPI.analytics.setAnalyticsEvent(YI.AnalyticsEventName.APP_UNINSTALL_ERROR, { Game: a.gameId, Channel: a.channelId, Environment: a.platformId, @@ -60440,9 +64399,9 @@ }), r.actions.setUninstallFailToast(i)) : console.warn("We could not clear the uninstallation because the game is not in the queue") }, setPermissions: async e => { - const t = await KC(e.platformId, e.gameId), + const t = await CD(e.platformId, e.gameId), n = { - ...await ZC(e), + ...await TD(e), nickname: t.username, token: t.sessionToken.value, authToken: t.gameToken.token @@ -60455,20 +64414,20 @@ installations: n }, toasts: r - } = t(), i = IE(n, e); - if (!i || i.status !== yw.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"); + } = t(), i = aP(n, e); + if (!i || i.status !== YI.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 (i.type) { - case yw.InstallationType.INSTALL: + case YI.InstallationType.INSTALL: return _e.t("download_toast_install_success", { ns: "download" }); - case yw.InstallationType.VERIFY: + case YI.InstallationType.VERIFY: return _e.t("download_toast_verify_success", { ns: "download" }); - case yw.InstallationType.UPDATE: + case YI.InstallationType.UPDATE: return _e.t("download_toast_update_success", { ns: "download" }) @@ -60508,9 +64467,9 @@ } } } - }), oA = () => { + }), VD = () => { var e, t, n, r, i, a; - const o = bC(), + const o = eD(), { t: s } = bt("appHeader"), @@ -60519,90 +64478,94 @@ window: { setMinimizeWindow: c } - } = Rw(), - u = pR((e => e.application)), - d = pR((e => e.user)), - p = pR((e => e.soundSystem)), - h = pR((e => e.window)), - f = pR((e => e.installer)), + } = cC(), + u = Wj((e => e.application)), + d = Wj((e => e.user)), + p = Wj((e => e.soundSystem)), + h = Wj((e => e.window)), + f = Wj((e => e.installer)), { wipeAnimationsDisabled: m - } = Ns().reduceMotion, + } = ts().reduceMotion, { isLoggedIn: g } = d.actions, - v = void 0 !== CE(f.installations), + v = void 0 !== sP(f.installations), y = (0, Ee.useMemo)((() => { var e; const t = null === (e = d.identity) || void 0 === e ? void 0 : e.avatar; - return t ? t.match(/^https?:\/\//) ? t : fR(t) : yw.configuration.assets.avatar.defaultUrl + return t ? t.match(/^https?:\/\//) ? t : Kj(t) : YI.configuration.assets.avatar.defaultUrl }), [null === (e = d.identity) || void 0 === e ? void 0 : e.avatar]), - _ = (0, Ee.useMemo)((() => yw.configuration.assets.directory + yw.configuration.assets.avatar.defaultLocal), []), + _ = (0, Ee.useMemo)((() => YI.configuration.assets.directory + YI.configuration.assets.avatar.defaultLocal), []), b = (0, Ee.useMemo)((() => { var e; const t = null === (e = d.identity) || void 0 === e ? void 0 : e.nickname; - return t ? fR(`/citizens/${t}`) : yw.configuration.playnowUrl + return t ? Kj(`/citizens/${t}`) : YI.configuration.playnowUrl }), [null === (t = d.identity) || void 0 === t ? void 0 : t.nickname]); - return (0, _w.jsxs)(hl, { - children: [(0, _w.jsxs)(Jm, { + return (0, QI.jsxs)(Ls, { + children: [(0, QI.jsxs)(_m, { offset: "large", - trigger: (0, _w.jsx)(dl, { + trigger: (0, QI.jsxs)(Rs, { "data-test-id": "rsi-menu", "data-sol-discover": "menu", - endIcon: lI, label: s("app_header_menu"), - children: (0, _w.jsx)(og, {}) + className: "sol-c-app-header__item--rsi-logo", + children: [(0, QI.jsx)(Om, {}), (0, QI.jsx)(BP, { + className: "sol-c-icon sol-c-icon--arrow-up" + }), (0, QI.jsx)(UP, { + className: "sol-c-icon sol-c-icon--arrow-down" + })] }), - children: [g() && (0, _w.jsx)(Zm, { + children: [g() && (0, QI.jsx)(vm, { onClick: () => { - if (m) return void o(yD.SETTINGS); + if (m) return void o(XM.SETTINGS); u.actions.setAnimatingAppLayoutWipe("full", !0); const e = setTimeout((() => { - o(yD.SETTINGS) + o(XM.SETTINGS) }), l / 2); return () => clearTimeout(e) }, label: s("app_header_menu_settings"), - disabled: window.location.hash.includes(yD.SETTINGS) - }), (0, _w.jsx)(Zm, { + disabled: window.location.hash.includes(XM.SETTINGS) + }), (0, QI.jsx)(vm, { external: !0, - endIcon: yI, - href: yw.configuration.supportUrl, + endIcon: XP, + href: YI.configuration.supportUrl, label: s("app_header_menu_get_help"), "data-test-id": "rsi-menu-help" - }), (0, _w.jsx)(Zm, { + }), (0, QI.jsx)(vm, { external: !0, - endIcon: yI, - href: yw.configuration.spectrumUrl, + endIcon: XP, + href: YI.configuration.spectrumUrl, label: s("app_header_menu_spectrum") - }), (0, _w.jsx)(Zm, { + }), (0, QI.jsx)(vm, { external: !0, - endIcon: yI, - href: yw.configuration.issueCouncilUrl, + endIcon: XP, + href: YI.configuration.issueCouncilUrl, label: s("app_header_menu_issue_council") - }), g() && (0, _w.jsx)(Zm, { + }), g() && (0, QI.jsx)(vm, { label: s("app_header_menu_discover"), "data-test-id": "rsi-menu-discover", onClick: () => { - if (window.location.hash.includes(yD.SETTINGS)) { - if (m) return void o(yD.HOME); + if (window.location.hash.includes(XM.SETTINGS)) { + if (m) return void o(XM.HOME); u.actions.setAnimatingAppLayoutWipe("full", !0); const e = setTimeout((() => { - o(yD.HOME), h.actions.openDiscover() + o(XM.HOME), h.actions.openDiscover() }), l / 2); return () => clearTimeout(e) } h.actions.openDiscover() }, disabled: v - }), (0, _w.jsx)(Zm, { + }), (0, QI.jsx)(vm, { label: s("app_header_menu_exit_the_app"), "data-test-id": "rsi-menu-exit", onClick: e => { e.preventDefault(), h.actions.exitLauncher() } })] - }), (0, _w.jsx)(sv, { + }), (0, QI.jsx)(Ig, { value: p.volume, label: s("app_header_volume"), muteLabel: s("app_header_volume_mute"), @@ -60610,38 +64573,38 @@ onChange: e => { p.actions.changeVolume(e) } - }), (0, _w.jsxs)(ul, { - children: [g() && (0, _w.jsxs)(_w.Fragment, { - children: [u.actions.isOffline() && (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsx)(NI, {}), (0, _w.jsx)(pl, {})] - }), (0, _w.jsx)(qC, { + }), (0, QI.jsxs)(Ts, { + children: [g() && (0, QI.jsxs)(QI.Fragment, { + children: [u.actions.isOffline() && (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsx)(mT, {}), (0, QI.jsx)(Ds, {})] + }), (0, QI.jsx)(OD, { labelItem: s("app_header_actions_menu_rsi_status") - }), (0, _w.jsx)(pl, {}), (0, _w.jsx)(VC, { + }), (0, QI.jsx)(Ds, {}), (0, QI.jsx)(bD, { labelItem: s("app_header_actions_download") - }), (0, _w.jsxs)(Jm, { + }), (0, QI.jsxs)(_m, { offset: "large", placement: "bottom-end", - trigger: (0, _w.jsx)(dl, { + trigger: (0, QI.jsx)(Rs, { "data-test-id": "avatar-menu", "data-sol-discover": "user-profile", hasAvatar: !0, label: s("app_header_account"), - children: (0, _w.jsx)(ml, { + children: (0, QI.jsx)(js, { "data-test-id": "avatar-img", src: u.actions.isOffline() ? _ : y }) }), - children: [(0, _w.jsx)(Xm, { + children: [(0, QI.jsx)(ym, { "data-test-id": "avatar-nickname", title: null !== (n = null === (r = d.identity) || void 0 === r ? void 0 : r.displayName) && void 0 !== n ? n : s("app_header_account_moniker"), subtitle: null !== (i = `@${null===(a=d.identity)||void 0===a?void 0:a.nickname}`) && void 0 !== i ? i : s("app_header_account_name") - }), (0, _w.jsx)(Zm, { + }), (0, QI.jsx)(vm, { external: !0, href: b, - endIcon: yI, + endIcon: XP, label: s("app_header_actions_menu_rsi_account"), "data-test-id": "avatar-url" - }), (0, _w.jsx)(Zm, { + }), (0, QI.jsx)(vm, { "data-test-id": "avatar-logout", label: s("app_header_actions_menu_log_out"), onClick: e => { @@ -60649,47 +64612,47 @@ } })] })] - }), (0, _w.jsx)(dl, { + }), (0, QI.jsx)(Rs, { alwaysOnTop: !0, "aria-label": "Minimize", onClick: c, disableFocus: !0, - icon: vI - }), (0, _w.jsx)(dl, { + icon: ZP + }), (0, QI.jsx)(Rs, { alwaysOnTop: !0, "aria-label": "Close", onClick: e => { e.preventDefault(), h.actions.closeLauncher() }, disableFocus: !0, - icon: dI + icon: qP })] })] }) - }, sA = () => { + }, UD = () => { const [e, t] = (0, Ee.useState)(""); return (0, Ee.useEffect)((() => { - const e = setTimeout((() => t("in")), yw.configuration.appLayoutLoaderWipeTrigger); + const e = setTimeout((() => t("in")), YI.configuration.appLayoutLoaderWipeTrigger); return () => clearTimeout(e) - }), []), (0, _w.jsx)(fl, { + }), []), (0, QI.jsx)(Ns, { className: "sol-u-animation-wipe", "data-sol-animation-wipe": e, - children: (0, _w.jsx)(Hm, {}) + children: (0, QI.jsx)(hm, {}) }) - }, lA = () => { - const e = pR((e => e.autoUpdate)); - return CR(), (0, _w.jsx)(Wd, { + }, BD = () => { + const e = Wj((e => e.autoUpdate)); + return lM(), (0, QI.jsx)(dd, { ...e.dialog }) }; - var cA = function() { - return cA = Object.assign || function(e) { + var GD = function() { + return GD = Object.assign || function(e) { for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); return e - }, cA.apply(this, arguments) + }, GD.apply(this, arguments) }, - uA = function(e, t) { + $D = 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) { @@ -60698,57 +64661,57 @@ } return n }, - dA = Symbol("NiceModalId"), - pA = {}, - hA = Ee.createContext(pA), - fA = Ee.createContext(null), - mA = {}, - gA = {}, - vA = 0, - yA = function() { + qD = Symbol("NiceModalId"), + WD = {}, + HD = Ee.createContext(WD), + KD = Ee.createContext(null), + YD = {}, + QD = {}, + ZD = 0, + XD = function() { throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?") }, - _A = function() { - return "_nice_modal_" + vA++ + JD = function() { + return "_nice_modal_" + ZD++ }, - bA = function(e, t) { + eL = function(e, t) { var n, r, i; - switch (void 0 === e && (e = pA), t.type) { + switch (void 0 === e && (e = WD), t.type) { case "nice-modal/show": var a = t.payload, o = a.modalId, s = a.args; - return cA(cA({}, e), ((n = {})[o] = cA(cA({}, e[o]), { + return GD(GD({}, e), ((n = {})[o] = GD(GD({}, e[o]), { id: o, args: s, - visible: !!gA[o], - delayVisible: !gA[o] + visible: !!QD[o], + delayVisible: !QD[o] }), n)); case "nice-modal/hide": - return e[o = t.payload.modalId] ? cA(cA({}, e), ((r = {})[o] = cA(cA({}, e[o]), { + return e[o = t.payload.modalId] ? GD(GD({}, e), ((r = {})[o] = GD(GD({}, e[o]), { visible: !1 }), r)) : e; case "nice-modal/remove": o = t.payload.modalId; - var l = cA({}, e); + var l = GD({}, e); return delete l[o], l; case "nice-modal/set-flags": var c = t.payload, u = (o = c.modalId, c.flags); - return cA(cA({}, e), ((i = {})[o] = cA(cA({}, e[o]), u), i)); + return GD(GD({}, e), ((i = {})[o] = GD(GD({}, e[o]), u), i)); default: return e } }; - var xA = {}, - kA = {}, - wA = function(e) { - return "string" === typeof e ? e : (e[dA] || (e[dA] = _A()), e[dA]) + var tL = {}, + nL = {}, + rL = function(e) { + return "string" === typeof e ? e : (e[qD] || (e[qD] = JD()), e[qD]) }; - function SA(e, t) { - var n = wA(e); - if ("string" === typeof e || mA[n] || CA(n, e), yA(function(e, t) { + function iL(e, t) { + var n = rL(e); + if ("string" === typeof e || YD[n] || lL(n, e), XD(function(e, t) { return { type: "nice-modal/show", payload: { @@ -60756,83 +64719,83 @@ args: t } } - }(n, t)), !xA[n]) { + }(n, t)), !tL[n]) { var r, i, a = new Promise((function(e, t) { r = e, i = t })); - xA[n] = { + tL[n] = { resolve: r, reject: i, promise: a } } - return xA[n].promise + return tL[n].promise } - function EA(e) { - var t = wA(e); - if (yA(function(e) { + function aL(e) { + var t = rL(e); + if (XD(function(e) { return { type: "nice-modal/hide", payload: { modalId: e } } - }(t)), delete xA[t], !kA[t]) { + }(t)), delete tL[t], !nL[t]) { var n, r, i = new Promise((function(e, t) { n = e, r = t })); - kA[t] = { + nL[t] = { resolve: n, reject: r, promise: i } } - return kA[t].promise + return nL[t].promise } - var IA = function(e) { - var t = wA(e); - yA(function(e) { + var oL = function(e) { + var t = rL(e); + XD(function(e) { return { type: "nice-modal/remove", payload: { modalId: e } } - }(t)), delete xA[t], delete kA[t] + }(t)), delete tL[t], delete nL[t] }; - function OA(e, t) { - var n = (0, Ee.useContext)(hA), - r = (0, Ee.useContext)(fA), + function sL(e, t) { + var n = (0, Ee.useContext)(HD), + r = (0, Ee.useContext)(KD), i = null, a = e && "string" !== typeof e; - if (!(i = e ? wA(e) : r)) throw new Error("No modal id found in NiceModal.useModal."); + if (!(i = e ? rL(e) : r)) throw new Error("No modal id found in NiceModal.useModal."); var o = i; (0, Ee.useEffect)((function() { - a && !mA[o] && CA(o, e, t) + a && !YD[o] && lL(o, e, t) }), [a, o, e, t]); var s = n[o], l = (0, Ee.useCallback)((function(e) { - return SA(o, e) + return iL(o, e) }), [o]), c = (0, Ee.useCallback)((function() { - return EA(o) + return aL(o) }), [o]), u = (0, Ee.useCallback)((function() { - return IA(o) + return oL(o) }), [o]), d = (0, Ee.useCallback)((function(e) { var t; - null === (t = xA[o]) || void 0 === t || t.resolve(e), delete xA[o] + null === (t = tL[o]) || void 0 === t || t.resolve(e), delete tL[o] }), [o]), p = (0, Ee.useCallback)((function(e) { var t; - null === (t = xA[o]) || void 0 === t || t.reject(e), delete xA[o] + null === (t = tL[o]) || void 0 === t || t.reject(e), delete tL[o] }), [o]), h = (0, Ee.useCallback)((function(e) { var t; - null === (t = kA[o]) || void 0 === t || t.resolve(e), delete kA[o] + null === (t = nL[o]) || void 0 === t || t.resolve(e), delete nL[o] }), [o]); return (0, Ee.useMemo)((function() { return { @@ -60849,43 +64812,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 CA = function(e, t, n) { - mA[e] ? mA[e].props = n : mA[e] = { + var lL = function(e, t, n) { + YD[e] ? YD[e].props = n : YD[e] = { comp: t, props: n } }, - AA = function() { - var e = (0, Ee.useContext)(hA), + cL = function() { + var e = (0, Ee.useContext)(HD), t = Object.keys(e).filter((function(t) { return !!e[t] })); t.forEach((function(e) { - mA[e] || gA[e] || console.warn("No modal found for id: " + e + ". Please check the id or if it is registered or declared via JSX.") + YD[e] || QD[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 mA[e] + return YD[e] })).map((function(e) { - return cA({ + return GD({ id: e - }, mA[e]) + }, YD[e]) })); return Ee.createElement(Ee.Fragment, null, n.map((function(e) { - return Ee.createElement(e.comp, cA({ + return Ee.createElement(e.comp, GD({ key: e.id, id: e.id }, e.props)) }))) }, - PA = function(e) { + uL = function(e) { var t = e.children, - n = (0, Ee.useReducer)(bA, pA), + n = (0, Ee.useReducer)(eL, WD), r = n[0]; - return yA = n[1], Ee.createElement(hA.Provider, { + return XD = n[1], Ee.createElement(HD.Provider, { value: r - }, t, Ee.createElement(AA, null)) + }, t, Ee.createElement(cL, null)) }, - TA = function(e) { + dL = function(e) { return { visible: e.visible, onOk: function() { @@ -60899,7 +64862,7 @@ } } }, - RA = function(e) { + pL = function(e) { return { visible: e.visible, onClose: function() { @@ -60910,23 +64873,23 @@ } } }, - DA = { + hL = { Provider: function(e) { var t = e.children, n = e.dispatch, r = e.modals; - return n && r ? (yA = n, Ee.createElement(hA.Provider, { + return n && r ? (XD = n, Ee.createElement(HD.Provider, { value: r - }, t, Ee.createElement(AA, null))) : Ee.createElement(PA, null, t) + }, t, Ee.createElement(cL, null))) : Ee.createElement(uL, null, t) }, ModalDef: function(e) { var t = e.id, n = e.component; return (0, Ee.useEffect)((function() { - return CA(t, n), + return lL(t, n), function() { ! function(e) { - delete mA[e] + delete YD[e] }(t) } }), [t, n]), null @@ -60935,40 +64898,40 @@ var t, n = e.modal, r = e.handler, i = void 0 === r ? {} : r, - a = uA(e, ["modal", "handler"]), + a = $D(e, ["modal", "handler"]), o = (0, Ee.useMemo)((function() { - return _A() + return JD() }), []), - s = "string" === typeof n ? null === (t = mA[n]) || void 0 === t ? void 0 : t.comp : n; + s = "string" === typeof n ? null === (t = YD[n]) || void 0 === t ? void 0 : t.comp : n; if (!i) throw new Error("No handler found in NiceModal.ModalHolder."); if (!s) throw new Error("No modal found for id: " + n + " in NiceModal.ModalHolder."); return i.show = (0, Ee.useCallback)((function(e) { - return SA(o, e) + return iL(o, e) }), [o]), i.hide = (0, Ee.useCallback)((function() { - return EA(o) - }), [o]), Ee.createElement(s, cA({ + return aL(o) + }), [o]), Ee.createElement(s, GD({ id: o }, a)) }, - NiceModalContext: hA, + NiceModalContext: HD, create: function(e) { return function(t) { var n, r = t.defaultVisible, i = t.keepMounted, a = t.id, - o = uA(t, ["defaultVisible", "keepMounted", "id"]), - s = OA(a), + o = $D(t, ["defaultVisible", "keepMounted", "id"]), + s = sL(a), l = s.args, c = s.show, - u = (0, Ee.useContext)(hA), + u = (0, Ee.useContext)(HD), d = !!u[a]; (0, Ee.useEffect)((function() { - return r && c(), gA[a] = !0, + return r && c(), QD[a] = !0, function() { - delete gA[a] + delete QD[a] } }), [a, c, r]), (0, Ee.useEffect)((function() { - i && yA(function(e, t) { + i && XD(function(e, t) { return { type: "nice-modal/set-flags", payload: { @@ -60983,23 +64946,23 @@ var p = null === (n = u[a]) || void 0 === n ? void 0 : n.delayVisible; return (0, Ee.useEffect)((function() { p && c(l) - }), [p, l, c]), d ? Ee.createElement(fA.Provider, { + }), [p, l, c]), d ? Ee.createElement(KD.Provider, { value: a - }, Ee.createElement(e, cA({}, o, l))) : null + }, Ee.createElement(e, GD({}, o, l))) : null } }, - register: CA, + register: lL, getModal: function(e) { var t; - return null === (t = mA[e]) || void 0 === t ? void 0 : t.comp + return null === (t = YD[e]) || void 0 === t ? void 0 : t.comp }, - show: SA, - hide: EA, - remove: IA, - useModal: OA, - reducer: bA, - antdModal: TA, - antdDrawer: RA, + show: iL, + hide: aL, + remove: oL, + useModal: sL, + reducer: eL, + antdModal: dL, + antdDrawer: pL, muiDialog: function(e) { return { open: e.visible, @@ -61023,15 +64986,15 @@ } } }; - const LA = DA, - NA = LA.create((({ + const fL = hL, + mL = fL.create((({ title: e, content: t, primaryCallback: n, primaryLabel: r, typeDialog: i }) => { - const a = OA(), + const a = sL(), { t: o } = bt(["dialog"]), @@ -61046,7 +65009,7 @@ }), a.hide() } }; - return (0, _w.jsx)(Wd, { + return (0, QI.jsx)(dd, { open: a.visible, onOpenChange: e => a[e ? "show" : "hide"](), title: e, @@ -61056,8 +65019,8 @@ children: t }) })); - LA.register("acknowledgement-dialog", NA); - const MA = LA.create((({ + fL.register("acknowledgement-dialog", mL); + const gL = fL.create((({ title: e, content: t, primaryCallback: n, @@ -61066,7 +65029,7 @@ secondaryCallback: a, secondaryLabel: o }) => { - const s = OA(), + const s = sL(), { t: l } = bt(["dialog"]), @@ -61088,14 +65051,14 @@ form: "exitAppForm", close: !1 }]; - return (0, _w.jsx)(Wd, { + return (0, QI.jsx)(dd, { open: s.visible, onOpenChange: e => s[e ? "show" : "hide"](), title: e, type: null !== i && void 0 !== i ? i : "negative", close: l("dialog_action_close"), actions: c, - children: (0, _w.jsx)("form", { + children: (0, QI.jsx)("form", { id: "exitAppForm", onSubmit: e => { e.preventDefault(); @@ -61111,8 +65074,8 @@ }) }) })); - LA.register("form-dialog", MA); - const jA = LA.create((({ + fL.register("form-dialog", gL); + const vL = fL.create((({ title: e, content: t, primaryCallback: n, @@ -61122,117 +65085,122 @@ secondaryLabel: o, disablePrimaryUntilScrolled: s }) => { - const l = OA(), + const l = sL(), { t: c } = bt(["dialog"]), - u = { + u = e => { + l.resolve({ + resolved: e + }), l.hide() + }, + d = { label: null !== o && void 0 !== o ? o : c("dialog_warning_back_launcher", { ns: "dialog" }), close: !1, onClick: () => { - null === a || void 0 === a || a(), l.resolve({ - resolved: !1 - }), l.hide() + null === a || void 0 === a || a(), u(!1) } }, - d = { + p = { label: null !== r && void 0 !== r ? r : c("dialog_action_confirm", { ns: "dialog" }), close: !1, disabledUntilScrolled: s, onClick: () => { - null === n || void 0 === n || n(), l.resolve({ - resolved: !0 - }), l.hide() + null === n || void 0 === n || n(), u(!0) } }; - return (0, _w.jsx)(Wd, { + return (0, QI.jsx)(dd, { open: l.visible, - onOpenChange: e => l[e ? "show" : "hide"](), + onOpenChange: e => (e => { + e || u(!1), l[e ? "show" : "hide"]() + })(e), title: e, type: null !== i && void 0 !== i ? i : "negative", close: c("dialog_action_close"), - actions: [u, d], + actions: [d, p], children: t }) })); - LA.register("warning-confirm-dialog", jA); - const FA = e => { + fL.register("warning-confirm-dialog", vL); + const yL = e => { var t, n, r; - const i = pR((e => e.library)), - a = pR((e => e.application)), + const i = Wj((e => e.library)), + a = Wj((e => e.application)), o = null !== (t = null === (n = a.animations) || void 0 === n || null === (r = n.appLayoutWipe) || void 0 === r ? void 0 : r.isAnimating) && void 0 !== t && t, { wipeAnimationsDisabled: s - } = Ns().reduceMotion, - l = bC(), - c = kC(), + } = ts().reduceMotion, + l = eD(), + c = nD(), { t: u } = bt("gamePage"), d = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), [p, h] = (0, Ee.useState)(c.gameId), - f = ER({ + f = aM({ location: `game-page/${p}`, delay: d / 2 - }); - return (0, _w.jsx)(Rm, { + }), + m = (0, Ee.useCallback)(((e, t) => { + e.preventDefault(), t.id === p || t.id === c.gameId || o || (h(t.id), s ? l(`game-page/${p}`) : (a.actions.setAnimatingAppLayoutWipe("full", !0), f(`game-page/${p}`))) + }), [p, o, l, c.gameId, s, a.actions, f]), + g = (0, Ee.useMemo)((() => null === i || void 0 === i ? void 0 : i.availableGames.map((e => e.channels.length > 0 ? (0, QI.jsx)(Zf, { + logo: e.logo, + name: e.name, + active: e.id === p, + onClick: t => m(t, e), + "data-test-id": "game-tab" + }, e.id) : null))), [i, p, m]); + return (0, QI.jsx)(Xf, { title: u("game_page_nav_title", { count: i.availableGames.length }), "data-test-id": "game-navigation", ...e, - children: null === i || void 0 === i ? void 0 : i.availableGames.map((e => e.channels.length > 0 ? (0, _w.jsx)(Tm, { - logo: e.logo, - name: e.name, - active: e.id === p, - onClick: t => ((e, t) => { - e.preventDefault(), t.id === p || t.id === c.gameId || o || (h(t.id), s ? l(`game-page/${p}`) : (a.actions.setAnimatingAppLayoutWipe("full", !0), f(`game-page/${p}`))) - })(t, e), - "data-test-id": "game-tab" - }, e.id) : null)) + children: g }) }, - zA = ({ + _L = ({ status: e }) => { const { t: t - } = bt(["gamePage", "status"]), n = e === yw.RSISystemStatus.MAINTENANCE ? t("game_page_status_under_maintenance", { + } = bt(["gamePage", "status"]), n = e === YI.RSISystemStatus.MAINTENANCE ? t("game_page_status_under_maintenance", { ns: "gamePage" }) : t("game_page_status_issue", { ns: "gamePage" }); - return (0, _w.jsxs)(op, { + return (0, QI.jsxs)(Od, { title: t("status_" + e, { ns: "status" }), - status: jw(e), - children: [n, " ", (0, _w.jsx)(ft, { + status: fC(e), + children: [n, " ", (0, QI.jsx)(ft, { i18nKey: "game_page_status_more_information", ns: "gamePage", - components: [(0, _w.jsx)(zm, { + components: [(0, QI.jsx)(am, { external: !0, - href: yw.configuration.statusUrl + href: YI.configuration.statusUrl })] })] }) }; - function VA() { - return VA = Object.assign ? Object.assign.bind() : function(e) { + function bL() { + return bL = 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 - }, VA.apply(this, arguments) + }, bL.apply(this, arguments) } - function UA(e, t) { + function xL(e, t) { if (null == e) return {}; var n, r, i = {}, a = Object.keys(e); @@ -61240,22 +65208,22 @@ return i } new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]); - const BA = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"]; + const kL = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"]; - function GA() { + function wL() { var e; let t = null == (e = window) ? void 0 : e.__staticRouterHydrationData; - return t && t.errors && (t = VA({}, t, { - errors: WA(t.errors) + return t && t.errors && (t = bL({}, t, { + errors: SL(t.errors) })), t } - function WA(e) { + function SL(e) { if (!e) return null; let t = Object.entries(e), n = {}; for (let [i, a] of t) - if (a && "RouteErrorResponse" === a.__type) n[i] = new gO(a.status, a.statusText, a.data, !0 === a.internal); + if (a && "RouteErrorResponse" === a.__type) n[i] = new QT(a.status, a.statusText, a.data, !0 === a.internal); else if (a && "Error" === a.__type) { if (a.__subType) { let e = window[a.__subType]; @@ -61271,17 +65239,17 @@ } else n[i] = a; return n } - const $A = Ee.createContext({ + const EL = Ee.createContext({ isTransitioning: !1 }); - const qA = Ee.createContext(new Map); - const HA = Ie.startTransition, - KA = Lo.flushSync; + const OL = Ee.createContext(new Map); + const IL = Oe.startTransition, + CL = Ja.flushSync; - function YA(e) { - KA ? KA(e) : e() + function AL(e) { + CL ? CL(e) : e() } - class QA { + class PL { constructor() { this.status = "pending", this.promise = new Promise(((e, t) => { this.resolve = t => { @@ -61293,7 +65261,7 @@ } } - function ZA(e) { + function TL(e) { let { fallbackElement: t, router: n, @@ -61304,7 +65272,7 @@ v7_startTransition: v } = r || {}, y = Ee.useCallback((e => { v ? function(e) { - HA ? HA(e) : e() + IL ? IL(e) : e() }(e) : e() }), [v]), _ = Ee.useCallback(((e, t) => { let { @@ -61318,7 +65286,7 @@ let l = null == n.window || "function" !== typeof n.window.document.startViewTransition; if (o && !l) { if (i) { - YA((() => { + AL((() => { p && (u && u.resolve(), p.skipTransition()), c({ isTransitioning: !0, flushSync: !0, @@ -61327,15 +65295,15 @@ }) })); let t = n.window.document.startViewTransition((() => { - YA((() => a(e))) + AL((() => a(e))) })); return t.finished.finally((() => { - YA((() => { + AL((() => { d(void 0), h(void 0), s(void 0), c({ isTransitioning: !1 }) })) - })), void YA((() => h(t))) + })), void AL((() => h(t))) } p ? (u && u.resolve(), p.skipTransition(), m({ state: e, @@ -61347,10 +65315,10 @@ currentLocation: o.currentLocation, nextLocation: o.nextLocation })) - } else i ? YA((() => a(e))) : y((() => a(e))) + } else i ? AL((() => a(e))) : y((() => a(e))) }), [n.window, p, u, g, y]); Ee.useLayoutEffect((() => n.subscribe(_)), [n, _]), Ee.useEffect((() => { - l.isTransitioning && !l.flushSync && d(new QA) + l.isTransitioning && !l.flushSync && d(new PL) }), [l]), Ee.useEffect((() => { if (u && o && n.window) { let e = o, @@ -61395,35 +65363,35 @@ static: !1, basename: x })), [n, b, x]); - return Ee.createElement(Ee.Fragment, null, Ee.createElement(dC.Provider, { + return Ee.createElement(Ee.Fragment, null, Ee.createElement(qR.Provider, { value: k - }, Ee.createElement(pC.Provider, { + }, Ee.createElement(WR.Provider, { value: i - }, Ee.createElement(qA.Provider, { + }, Ee.createElement(OL.Provider, { value: g.current - }, Ee.createElement($A.Provider, { + }, Ee.createElement(EL.Provider, { value: l - }, Ee.createElement(jC, { + }, Ee.createElement(vD, { basename: x, location: i.location, navigationType: i.historyAction, navigator: b - }, i.initialized ? Ee.createElement(XA, { + }, i.initialized ? Ee.createElement(RL, { routes: n.routes, state: i }) : t))))), null) } - function XA(e) { + function RL(e) { let { routes: t, state: n } = e; - return SC(t, void 0, n) + return iD(t, void 0, n) } - const JA = "undefined" !== typeof window && "undefined" !== typeof window.document && "undefined" !== typeof window.document.createElement, - eP = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, - tP = Ee.forwardRef((function(e, t) { + const DL = "undefined" !== typeof window && "undefined" !== typeof window.document && "undefined" !== typeof window.document.createElement, + LL = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, + NL = Ee.forwardRef((function(e, t) { let n, { onClick: r, relative: i, @@ -61435,33 +65403,33 @@ preventScrollReset: u, unstable_viewTransition: d } = e, - p = UA(e, BA), + p = xL(e, kL), { basename: h - } = Ee.useContext(hC), + } = Ee.useContext(HR), f = !1; - if ("string" === typeof c && eP.test(c) && (n = c, JA)) try { + if ("string" === typeof c && LL.test(c) && (n = c, DL)) try { let e = new URL(window.location.href), t = c.startsWith("//") ? new URL(e.protocol + c) : new URL(c), - n = oO(t.pathname, h); + n = VT(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; - vC() || VI(!1); + ZR() || bT(!1); let { basename: r, navigator: i - } = Ee.useContext(hC), { + } = Ee.useContext(HR), { hash: a, pathname: o, search: s - } = wC(e, { + } = rD(e, { relative: n }), l = o; - return "/" !== r && (l = "/" === o ? r : uO([r, o])), i.createHref({ + return "/" !== r && (l = "/" === o ? r : $T([r, o])), i.createHref({ pathname: l, search: s, hash: a @@ -61477,7 +65445,7 @@ preventScrollReset: a, relative: o, unstable_viewTransition: s - } = void 0 === t ? {} : t, l = bC(), c = yC(), u = wC(e, { + } = void 0 === t ? {} : t, l = eD(), c = XR(), u = rD(e, { relative: o }); return Ee.useCallback((t => { @@ -61487,7 +65455,7 @@ }(e) }(t, n)) { t.preventDefault(); - let n = void 0 !== r ? r : WI(c) === WI(u); + let n = void 0 !== r ? r : ST(c) === ST(u); l(e, { replace: n, state: i, @@ -61505,7 +65473,7 @@ relative: i, unstable_viewTransition: d }); - return Ee.createElement("a", VA({}, p, { + return Ee.createElement("a", bL({}, p, { href: n || m, onClick: f || a ? r : function(e) { r && r(e), e.defaultPrevented || g(e) @@ -61514,86 +65482,86 @@ target: l })) })); - var nP, rP; + var jL, ML; (function(e) { e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState" - })(nP || (nP = {})), + })(jL || (jL = {})), function(e) { e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration" - }(rP || (rP = {})); - const iP = (0, Ee.forwardRef)((({ + }(ML || (ML = {})); + const FL = (0, Ee.forwardRef)((({ children: e, href: t = "", ...n - }, r) => t.startsWith("http") ? (0, _w.jsx)("a", { + }, r) => t.startsWith("http") ? (0, QI.jsx)("a", { href: t, ref: r, rel: "noopener noreferrer", target: "_blank", ...n, children: e - }) : (0, _w.jsx)(tP, { + }) : (0, QI.jsx)(NL, { ref: r, to: t, ...n, children: e }))); - var aP = e => "checkbox" === e.type, - oP = e => e instanceof Date, - sP = e => null == e; - const lP = e => "object" === typeof e; - var cP = e => !sP(e) && !Array.isArray(e) && lP(e) && !oP(e), - uP = e => cP(e) && e.target ? aP(e.target) ? e.target.checked : e.target.value : e, - dP = (e, t) => e.has((e => e.substring(0, e.search(/\.\d+(\.|$)/)) || e)(t)), - pP = e => Array.isArray(e) ? e.filter(Boolean) : [], - hP = e => void 0 === e, - fP = (e, t, n) => { - if (!t || !cP(e)) return n; - const r = pP(t.split(/[,[\].]+?/)).reduce(((e, t) => sP(e) ? e : e[t]), e); - return hP(r) || r === e ? hP(e[t]) ? n : e[t] : r + var zL = e => "checkbox" === e.type, + VL = e => e instanceof Date, + UL = e => null == e; + const BL = e => "object" === typeof e; + var GL = e => !UL(e) && !Array.isArray(e) && BL(e) && !VL(e), + $L = e => GL(e) && e.target ? zL(e.target) ? e.target.checked : e.target.value : e, + qL = (e, t) => e.has((e => e.substring(0, e.search(/\.\d+(\.|$)/)) || e)(t)), + WL = e => Array.isArray(e) ? e.filter(Boolean) : [], + HL = e => void 0 === e, + KL = (e, t, n) => { + if (!t || !GL(e)) return n; + const r = WL(t.split(/[,[\].]+?/)).reduce(((e, t) => UL(e) ? e : e[t]), e); + return HL(r) || r === e ? HL(e[t]) ? n : e[t] : r }; - const mP = "blur", - gP = "focusout", - vP = "change", - yP = "onBlur", - _P = "onChange", - bP = "onSubmit", - xP = "onTouched", - kP = "all", - wP = "max", - SP = "min", - EP = "maxLength", - IP = "minLength", - OP = "pattern", - CP = "required", - AP = "validate", - PP = Ee.createContext(null), - TP = () => Ee.useContext(PP); - var RP = (e, t, n, r = !0) => { + const YL = "blur", + QL = "focusout", + ZL = "change", + XL = "onBlur", + JL = "onChange", + eN = "onSubmit", + tN = "onTouched", + nN = "all", + rN = "max", + iN = "min", + aN = "maxLength", + oN = "minLength", + sN = "pattern", + lN = "required", + cN = "validate", + uN = Ee.createContext(null), + dN = () => Ee.useContext(uN); + var pN = (e, t, n, r = !0) => { const i = { defaultValues: t._defaultValues }; for (const a in e) Object.defineProperty(i, a, { get: () => { const i = a; - return t._proxyFormState[i] !== kP && (t._proxyFormState[i] = !r || kP), n && (n[i] = !0), e[i] + return t._proxyFormState[i] !== nN && (t._proxyFormState[i] = !r || nN), n && (n[i] = !0), e[i] } }); return i }, - DP = e => cP(e) && !Object.keys(e).length, - LP = (e, t, n, r) => { + hN = e => GL(e) && !Object.keys(e).length, + fN = (e, t, n, r) => { n(e); const { name: i, ...a } = e; - return DP(a) || Object.keys(a).length >= Object.keys(t).length || Object.keys(a).find((e => t[e] === (!r || kP))) + return hN(a) || Object.keys(a).length >= Object.keys(t).length || Object.keys(a).find((e => t[e] === (!r || nN))) }, - NP = e => Array.isArray(e) ? e : [e], - MP = (e, t, n) => n && t ? e === t : !e || !t || e === t || NP(e).some((e => e && (e.startsWith(t) || t.startsWith(e)))); + mN = e => Array.isArray(e) ? e : [e], + gN = (e, t, n) => n && t ? e === t : !e || !t || e === t || mN(e).some((e => e && (e.startsWith(t) || t.startsWith(e)))); - function jP(e) { + function vN(e) { const t = Ee.useRef(e); t.current = e, Ee.useEffect((() => { const n = !e.disabled && t.current.subject.subscribe({ @@ -61604,37 +65572,37 @@ } }), [e.disabled]) } - var FP = e => "string" === typeof e, - zP = (e, t, n, r, i) => FP(e) ? (r && t.watch.add(e), fP(n, e, i)) : Array.isArray(e) ? e.map((e => (r && t.watch.add(e), fP(n, e)))) : (r && (t.watchAll = !0), n), - VP = "undefined" !== typeof window && "undefined" !== typeof window.HTMLElement && "undefined" !== typeof document; + var yN = e => "string" === typeof e, + _N = (e, t, n, r, i) => yN(e) ? (r && t.watch.add(e), KL(n, e, i)) : Array.isArray(e) ? e.map((e => (r && t.watch.add(e), KL(n, e)))) : (r && (t.watchAll = !0), n), + bN = "undefined" !== typeof window && "undefined" !== typeof window.HTMLElement && "undefined" !== typeof document; - function UP(e) { + function xN(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 (VP && (e instanceof Blob || e instanceof FileList) || !n && !cP(e)) return e; + if (bN && (e instanceof Blob || e instanceof FileList) || !n && !GL(e)) return e; if (t = n ? [] : {}, Array.isArray(e) || (e => { const t = e.constructor && e.constructor.prototype; - return cP(t) && t.hasOwnProperty("isPrototypeOf") + return GL(t) && t.hasOwnProperty("isPrototypeOf") })(e)) - for (const n in e) t[n] = UP(e[n]); + for (const n in e) t[n] = xN(e[n]); else t = e } return t } - function BP(e) { - const t = TP(), + function kN(e) { + const t = dN(), { name: n, control: r = t.control, shouldUnregister: i } = e, - a = dP(r._names.array, n), + a = qL(r._names.array, n), o = function(e) { - const t = TP(), + const t = dN(), { control: n = t.control, name: r, @@ -61643,11 +65611,11 @@ exact: o } = e || {}, s = Ee.useRef(r); - s.current = r, jP({ + s.current = r, vN({ disabled: a, subject: n._subjects.watch, next: e => { - MP(s.current, e.name, o) && c(UP(zP(s.current, n._names, e.values || n._formValues, !1, i))) + gN(s.current, e.name, o) && c(xN(_N(s.current, n._names, e.values || n._formValues, !1, i))) } }); const [l, c] = Ee.useState(n._getWatch(r, i)); @@ -61655,11 +65623,11 @@ }({ control: r, name: n, - defaultValue: fP(r._formValues, n, fP(r._defaultValues, n, e.defaultValue)), + defaultValue: KL(r._formValues, n, KL(r._defaultValues, n, e.defaultValue)), exact: !0 }), s = function(e) { - const t = TP(), + const t = dN(), { control: n = t.control, disabled: r, @@ -61678,9 +65646,9 @@ errors: !1 }), u = Ee.useRef(i); - return u.current = i, jP({ + return u.current = i, vN({ disabled: r, - next: e => l.current && MP(u.current, e.name, a) && LP(e, c.current, n._updateFormState) && s({ + next: e => l.current && gN(u.current, e.name, a) && fN(e, c.current, n._updateFormState) && s({ ...n._formState, ...e }), @@ -61693,7 +65661,7 @@ }), c.current.isValid && n._updateValid(!0), () => { l.current = !1 } - }), [n]), RP(o, n, c.current, !1) + }), [n]), pN(o, n, c.current, !1) }({ control: r, name: n @@ -61704,7 +65672,7 @@ })); return Ee.useEffect((() => { const e = (e, t) => { - const n = fP(r._fields, e); + const n = KL(r._fields, e); n && (n._f.mount = t) }; return e(n, !0), () => { @@ -61717,20 +65685,20 @@ value: o, onChange: Ee.useCallback((e => l.current.onChange({ target: { - value: uP(e), + value: $L(e), name: n }, - type: vP + type: ZL })), [n]), onBlur: Ee.useCallback((() => l.current.onBlur({ target: { - value: fP(r._formValues, n), + value: KL(r._formValues, n), name: n }, - type: mP + type: YL })), [n, r]), ref: e => { - const t = fP(r._fields, n); + const t = KL(r._fields, n); t && e && (t._f.ref = { focus: () => e.focus(), select: () => e.select(), @@ -61743,36 +65711,36 @@ fieldState: Object.defineProperties({}, { invalid: { enumerable: !0, - get: () => !!fP(s.errors, n) + get: () => !!KL(s.errors, n) }, isDirty: { enumerable: !0, - get: () => !!fP(s.dirtyFields, n) + get: () => !!KL(s.dirtyFields, n) }, isTouched: { enumerable: !0, - get: () => !!fP(s.touchedFields, n) + get: () => !!KL(s.touchedFields, n) }, error: { enumerable: !0, - get: () => fP(s.errors, n) + get: () => KL(s.errors, n) } }) } } - var GP = (e, t, n, r, i) => t ? { + var wN = (e, t, n, r, i) => t ? { ...n[e], types: { ...n[e] && n[e].types ? n[e].types : {}, [r]: i || !0 } } : {}, - WP = e => /^\w*$/.test(e), - $P = e => pP(e.replace(/["|']|\]/g, "").split(/\.|\[/)); + SN = e => /^\w*$/.test(e), + EN = e => WL(e.replace(/["|']|\]/g, "").split(/\.|\[/)); - function qP(e, t, n) { + function ON(e, t, n) { let r = -1; - const i = WP(t) ? [t] : $P(t), + const i = SN(t) ? [t] : EN(t), a = i.length, o = a - 1; for (; ++r < a;) { @@ -61780,15 +65748,15 @@ let a = n; if (r !== o) { const n = e[t]; - a = cP(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : [] + a = GL(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : [] } e[t] = a, e = e[t] } return e } - const HP = (e, t, n) => { + const IN = (e, t, n) => { for (const r of n || Object.keys(e)) { - const n = fP(e, r); + const n = KL(e, r); if (n) { const { _f: e, @@ -61803,42 +65771,42 @@ e.refs[0].focus(); break } - } else cP(r) && HP(r, t) + } else GL(r) && IN(r, t) } } }; - var KP = e => ({ - isOnSubmit: !e || e === bP, - isOnBlur: e === yP, - isOnChange: e === _P, - isOnAll: e === kP, - isOnTouch: e === xP + var CN = e => ({ + isOnSubmit: !e || e === eN, + isOnBlur: e === XL, + isOnChange: e === JL, + isOnAll: e === nN, + isOnTouch: e === tN }), - YP = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((t => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length))))), - QP = (e, t, n) => { - const r = pP(fP(e, n)); - return qP(r, "root", t[n]), qP(e, n, r), e + AN = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((t => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length))))), + PN = (e, t, n) => { + const r = WL(KL(e, n)); + return ON(r, "root", t[n]), ON(e, n, r), e }, - ZP = e => "boolean" === typeof e, - XP = e => "file" === e.type, - JP = e => "function" === typeof e, - eT = e => { - if (!VP) return !1; + TN = e => "boolean" === typeof e, + RN = e => "file" === e.type, + DN = e => "function" === typeof e, + LN = e => { + if (!bN) return !1; const t = e ? e.ownerDocument : 0; return e instanceof(t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement) }, - tT = e => FP(e) || Ee.isValidElement(e), - nT = e => "radio" === e.type, - rT = e => e instanceof RegExp; - const iT = { + NN = e => yN(e) || Ee.isValidElement(e), + jN = e => "radio" === e.type, + MN = e => e instanceof RegExp; + const FN = { value: !1, isValid: !1 }, - aT = { + zN = { value: !0, isValid: !0 }; - var oT = e => { + var VN = e => { if (Array.isArray(e)) { if (e.length > 1) { const t = e.filter((e => e && e.checked && !e.disabled)).map((e => e.value)); @@ -61847,34 +65815,34 @@ isValid: !!t.length } } - return e[0].checked && !e[0].disabled ? e[0].attributes && !hP(e[0].attributes.value) ? hP(e[0].value) || "" === e[0].value ? aT : { + return e[0].checked && !e[0].disabled ? e[0].attributes && !HL(e[0].attributes.value) ? HL(e[0].value) || "" === e[0].value ? zN : { value: e[0].value, isValid: !0 - } : aT : iT + } : zN : FN } - return iT + return FN }; - const sT = { + const UN = { isValid: !1, value: null }; - var lT = e => Array.isArray(e) ? e.reduce(((e, t) => t && t.checked && !t.disabled ? { + var BN = e => Array.isArray(e) ? e.reduce(((e, t) => t && t.checked && !t.disabled ? { isValid: !0, value: t.value - } : e), sT) : sT; + } : e), UN) : UN; - function cT(e, t, n = "validate") { - if (tT(e) || Array.isArray(e) && e.every(tT) || ZP(e) && !e) return { + function GN(e, t, n = "validate") { + if (NN(e) || Array.isArray(e) && e.every(NN) || TN(e) && !e) return { type: n, - message: tT(e) ? e : "", + message: NN(e) ? e : "", ref: t } } - var uT = e => cP(e) && !rT(e) ? e : { + var $N = e => GL(e) && !MN(e) ? e : { value: e, message: "" }, - dT = async (e, t, n, r, i) => { + qN = async (e, t, n, r, i) => { const { ref: a, refs: o, @@ -61889,95 +65857,95 @@ valueAsNumber: m, mount: g, disabled: v - } = e._f, y = fP(t, f); + } = e._f, y = KL(t, f); if (!g || v) return {}; const _ = o ? o[0] : a, b = e => { - r && _.reportValidity && (_.setCustomValidity(ZP(e) ? "" : e || ""), _.reportValidity()) + r && _.reportValidity && (_.setCustomValidity(TN(e) ? "" : e || ""), _.reportValidity()) }, x = {}, - k = nT(a), - w = aP(a), + k = jN(a), + w = zL(a), S = k || w, - E = (m || XP(a)) && hP(a.value) && hP(y) || eT(a) && "" === a.value || "" === y || Array.isArray(y) && !y.length, - I = GP.bind(null, f, n, x), - O = (e, t, n, r = EP, i = IP) => { + E = (m || RN(a)) && HL(a.value) && HL(y) || LN(a) && "" === a.value || "" === y || Array.isArray(y) && !y.length, + O = wN.bind(null, f, n, x), + I = (e, t, n, r = aN, i = oN) => { const o = e ? t : n; x[f] = { type: e ? r : i, message: o, ref: a, - ...I(e ? r : i, o) + ...O(e ? r : i, o) } }; - if (i ? !Array.isArray(y) || !y.length : s && (!S && (E || sP(y)) || ZP(y) && !y || w && !oT(o).isValid || k && !lT(o).isValid)) { + if (i ? !Array.isArray(y) || !y.length : s && (!S && (E || UL(y)) || TN(y) && !y || w && !VN(o).isValid || k && !BN(o).isValid)) { const { value: e, message: t - } = tT(s) ? { + } = NN(s) ? { value: !!s, message: s - } : uT(s); + } : $N(s); if (e && (x[f] = { - type: CP, + type: lN, message: t, ref: _, - ...I(CP, t) + ...O(lN, t) }, !n)) return b(t), x } - if (!E && (!sP(u) || !sP(d))) { + if (!E && (!UL(u) || !UL(d))) { let e, t; - const r = uT(d), - i = uT(u); - if (sP(y) || isNaN(y)) { + const r = $N(d), + i = $N(u); + if (UL(y) || isNaN(y)) { const n = a.valueAsDate || new Date(y), o = e => new Date((new Date).toDateString() + " " + e), s = "time" == a.type, l = "week" == a.type; - FP(r.value) && y && (e = s ? o(y) > o(r.value) : l ? y > r.value : n > new Date(r.value)), FP(i.value) && y && (t = s ? o(y) < o(i.value) : l ? y < i.value : n < new Date(i.value)) + yN(r.value) && y && (e = s ? o(y) > o(r.value) : l ? y > r.value : n > new Date(r.value)), yN(i.value) && y && (t = s ? o(y) < o(i.value) : l ? y < i.value : n < new Date(i.value)) } else { const n = a.valueAsNumber || (y ? +y : y); - sP(r.value) || (e = n > r.value), sP(i.value) || (t = n < i.value) + UL(r.value) || (e = n > r.value), UL(i.value) || (t = n < i.value) } - if ((e || t) && (O(!!e, r.message, i.message, wP, SP), !n)) return b(x[f].message), x + if ((e || t) && (I(!!e, r.message, i.message, rN, iN), !n)) return b(x[f].message), x } - if ((l || c) && !E && (FP(y) || i && Array.isArray(y))) { - const e = uT(l), - t = uT(c), - r = !sP(e.value) && y.length > e.value, - i = !sP(t.value) && y.length < t.value; - if ((r || i) && (O(r, e.message, t.message), !n)) return b(x[f].message), x + if ((l || c) && !E && (yN(y) || i && Array.isArray(y))) { + const e = $N(l), + t = $N(c), + r = !UL(e.value) && y.length > e.value, + i = !UL(t.value) && y.length < t.value; + if ((r || i) && (I(r, e.message, t.message), !n)) return b(x[f].message), x } - if (p && !E && FP(y)) { + if (p && !E && yN(y)) { const { value: e, message: t - } = uT(p); - if (rT(e) && !y.match(e) && (x[f] = { - type: OP, + } = $N(p); + if (MN(e) && !y.match(e) && (x[f] = { + type: sN, message: t, ref: a, - ...I(OP, t) + ...O(sN, t) }, !n)) return b(t), x } if (h) - if (JP(h)) { - const e = cT(await h(y, t), _); + if (DN(h)) { + const e = GN(await h(y, t), _); if (e && (x[f] = { ...e, - ...I(AP, e.message) + ...O(cN, e.message) }, !n)) return b(e.message), x - } else if (cP(h)) { + } else if (GL(h)) { let e = {}; for (const r in h) { - if (!DP(e) && !n) break; - const i = cT(await h[r](y, t), _, r); + if (!hN(e) && !n) break; + const i = GN(await h[r](y, t), _, r); i && (e = { ...i, - ...I(r, i.message) + ...O(r, i.message) }, b(i.message), n && (x[f] = e)) } - if (!DP(e) && (x[f] = { + if (!hN(e) && (x[f] = { ref: _, ...e }, !n)) return x @@ -61985,24 +65953,24 @@ return b(!0), x }; - function pT(e, t) { - const n = Array.isArray(t) ? t : WP(t) ? [t] : $P(t), + function WN(e, t) { + const n = Array.isArray(t) ? t : SN(t) ? [t] : EN(t), r = 1 === n.length ? e : function(e, t) { const n = t.slice(0, -1).length; let r = 0; - for (; r < n;) e = hP(e) ? r++ : e[t[r++]]; + for (; r < n;) e = HL(e) ? r++ : e[t[r++]]; return e }(e, n), i = n.length - 1, a = n[i]; - return r && delete r[a], 0 !== i && (cP(r) && DP(r) || Array.isArray(r) && function(e) { + return r && delete r[a], 0 !== i && (GL(r) && hN(r) || Array.isArray(r) && function(e) { for (const t in e) - if (!hP(e[t])) return !1; + if (!HL(e[t])) return !1; return !0 - }(r)) && pT(e, n.slice(0, -1)), e + }(r)) && WN(e, n.slice(0, -1)), e } - function hT() { + function HN() { let e = []; return { get observers() { @@ -62021,11 +65989,11 @@ } } } - var fT = e => sP(e) || !lP(e); + var KN = e => UL(e) || !BL(e); - function mT(e, t) { - if (fT(e) || fT(t)) return e === t; - if (oP(e) && oP(t)) return e.getTime() === t.getTime(); + function YN(e, t) { + if (KN(e) || KN(t)) return e === t; + if (VL(e) && VL(t)) return e.getTime() === t.getTime(); const n = Object.keys(e), r = Object.keys(t); if (n.length !== r.length) return !1; @@ -62034,60 +66002,60 @@ if (!r.includes(i)) return !1; if ("ref" !== i) { const e = t[i]; - if (oP(n) && oP(e) || cP(n) && cP(e) || Array.isArray(n) && Array.isArray(e) ? !mT(n, e) : n !== e) return !1 + if (VL(n) && VL(e) || GL(n) && GL(e) || Array.isArray(n) && Array.isArray(e) ? !YN(n, e) : n !== e) return !1 } } return !0 } - var gT = e => "select-multiple" === e.type, - vT = e => eT(e) && e.isConnected, - yT = e => { + var QN = e => "select-multiple" === e.type, + ZN = e => LN(e) && e.isConnected, + XN = e => { for (const t in e) - if (JP(e[t])) return !0; + if (DN(e[t])) return !0; return !1 }; - function _T(e, t = {}) { + function JN(e, t = {}) { const n = Array.isArray(e); - if (cP(e) || n) - for (const r in e) Array.isArray(e[r]) || cP(e[r]) && !yT(e[r]) ? (t[r] = Array.isArray(e[r]) ? [] : {}, _T(e[r], t[r])) : sP(e[r]) || (t[r] = !0); + if (GL(e) || n) + for (const r in e) Array.isArray(e[r]) || GL(e[r]) && !XN(e[r]) ? (t[r] = Array.isArray(e[r]) ? [] : {}, JN(e[r], t[r])) : UL(e[r]) || (t[r] = !0); return t } - function bT(e, t, n) { + function ej(e, t, n) { const r = Array.isArray(e); - if (cP(e) || r) - for (const i in e) Array.isArray(e[i]) || cP(e[i]) && !yT(e[i]) ? hP(t) || fT(n[i]) ? n[i] = Array.isArray(e[i]) ? _T(e[i], []) : { - ..._T(e[i]) - } : bT(e[i], sP(t) ? {} : t[i], n[i]) : mT(e[i], t[i]) ? delete n[i] : n[i] = !0; + if (GL(e) || r) + for (const i in e) Array.isArray(e[i]) || GL(e[i]) && !XN(e[i]) ? HL(t) || KN(n[i]) ? n[i] = Array.isArray(e[i]) ? JN(e[i], []) : { + ...JN(e[i]) + } : ej(e[i], UL(t) ? {} : t[i], n[i]) : YN(e[i], t[i]) ? delete n[i] : n[i] = !0; return n } - var xT = (e, t) => bT(e, t, _T(t)), - kT = (e, { + var tj = (e, t) => ej(e, t, JN(t)), + nj = (e, { valueAsNumber: t, valueAsDate: n, setValueAs: r - }) => hP(e) ? e : t ? "" === e ? NaN : e ? +e : e : n && FP(e) ? new Date(e) : r ? r(e) : e; + }) => HL(e) ? e : t ? "" === e ? NaN : e ? +e : e : n && yN(e) ? new Date(e) : r ? r(e) : e; - function wT(e) { + function rj(e) { const t = e.ref; - if (!(e.refs ? e.refs.every((e => e.disabled)) : t.disabled)) return XP(t) ? t.files : nT(t) ? lT(e.refs).value : gT(t) ? [...t.selectedOptions].map((({ + if (!(e.refs ? e.refs.every((e => e.disabled)) : t.disabled)) return RN(t) ? t.files : jN(t) ? BN(e.refs).value : QN(t) ? [...t.selectedOptions].map((({ value: e - }) => e)) : aP(t) ? oT(e.refs).value : kT(hP(t.value) ? e.ref.value : t.value, e) + }) => e)) : zL(t) ? VN(e.refs).value : nj(HL(t.value) ? e.ref.value : t.value, e) } - var ST = e => hP(e) ? e : rT(e) ? e.source : cP(e) ? rT(e.value) ? e.value.source : e.value : e; + var ij = e => HL(e) ? e : MN(e) ? e.source : GL(e) ? MN(e.value) ? e.value.source : e.value : e; - function ET(e, t, n) { - const r = fP(e, n); - if (r || WP(n)) return { + function aj(e, t, n) { + const r = KL(e, n); + if (r || SN(n)) return { error: r, name: n }; const i = n.split("."); for (; i.length;) { const r = i.join("."), - a = fP(t, r), - o = fP(e, r); + a = KL(t, r), + o = KL(e, r); if (a && !Array.isArray(a) && n !== r) return { name: n }; @@ -62101,15 +66069,15 @@ name: n } } - const IT = { - mode: bP, - reValidateMode: _P, + const oj = { + mode: eN, + reValidateMode: JL, shouldFocusError: !0 }; - function OT(e = {}, t) { + function sj(e = {}, t) { let n = { - ...IT, + ...oj, ...e }; const r = e.resetOptions && e.resetOptions.keepDirtyValues; @@ -62127,8 +66095,8 @@ errors: {} }, o = {}, - s = cP(n.defaultValues) && UP(n.defaultValues) || {}, - l = n.shouldUnregister ? {} : UP(s), + s = GL(n.defaultValues) && xN(n.defaultValues) || {}, + l = n.shouldUnregister ? {} : xN(s), c = { action: !1, mount: !1, @@ -62150,16 +66118,16 @@ errors: !1 }, h = { - watch: hT(), - array: hT(), - state: hT() + watch: HN(), + array: HN(), + state: HN() }, - f = KP(n.mode), - m = KP(n.reValidateMode), - g = n.criteriaMode === kP, + f = CN(n.mode), + m = CN(n.reValidateMode), + g = n.criteriaMode === nN, v = async e => { if (p.isValid || e) { - const e = n.resolver ? DP((await k()).errors) : await w(o, !0); + const e = n.resolver ? hN((await k()).errors) : await w(o, !0); e !== a.isValid && (a.isValid = e, h.state.next({ isValid: e })) @@ -62167,10 +66135,10 @@ }, y = e => p.isValidating && h.state.next({ isValidating: e }), _ = (e, t, n, r) => { - const i = fP(o, e); + const i = KL(o, e); if (i) { - const a = fP(l, e, hP(n) ? fP(s, e) : n); - hP(a) || r && r.defaultChecked || t ? qP(l, e, t ? a : wT(i._f)) : I(e, a), c.mount && v() + const a = KL(l, e, HL(n) ? KL(s, e) : n); + HL(a) || r && r.defaultChecked || t ? ON(l, e, t ? a : rj(i._f)) : O(e, a), c.mount && v() } }, b = (e, t, n, r, i) => { let o = !1, @@ -62180,28 +66148,28 @@ }; if (!n || r) { p.isDirty && (l = a.isDirty, a.isDirty = c.isDirty = S(), o = l !== c.isDirty); - const n = mT(fP(s, e), t); - l = fP(a.dirtyFields, e), n ? pT(a.dirtyFields, e) : qP(a.dirtyFields, e, !0), c.dirtyFields = a.dirtyFields, o = o || p.dirtyFields && l !== !n + const n = YN(KL(s, e), t); + l = KL(a.dirtyFields, e), n ? WN(a.dirtyFields, e) : ON(a.dirtyFields, e, !0), c.dirtyFields = a.dirtyFields, o = o || p.dirtyFields && l !== !n } if (n) { - const t = fP(a.touchedFields, e); - t || (qP(a.touchedFields, e, n), c.touchedFields = a.touchedFields, o = o || p.touchedFields && t !== n) + const t = KL(a.touchedFields, e); + t || (ON(a.touchedFields, e, n), c.touchedFields = a.touchedFields, o = o || p.touchedFields && t !== n) } return o && i && h.state.next(c), o ? c : {} }, x = (t, n, r, o) => { - const s = fP(a.errors, t), - l = p.isValid && ZP(n) && a.isValid !== n; + const s = KL(a.errors, t), + l = p.isValid && TN(n) && a.isValid !== n; var c; if (e.delayError && r ? (c = () => ((e, t) => { - qP(a.errors, e, t), h.state.next({ + ON(a.errors, e, t), h.state.next({ errors: a.errors }) })(t, r), i = e => { clearTimeout(d), d = window.setTimeout(c, e) - }, i(e.delayError)) : (clearTimeout(d), i = null, r ? qP(a.errors, t, r) : pT(a.errors, t)), (r ? !mT(s, r) : s) || !DP(o) || l) { + }, i(e.delayError)) : (clearTimeout(d), i = null, r ? ON(a.errors, t, r) : WN(a.errors, t)), (r ? !YN(s, r) : s) || !hN(o) || l) { const e = { ...o, - ...l && ZP(n) ? { + ...l && TN(n) ? { isValid: n } : {}, errors: a.errors, @@ -62216,8 +66184,8 @@ }, k = async e => await n.resolver(l, n.context, ((e, t, n, r) => { const i = {}; for (const a of e) { - const e = fP(t, a); - e && qP(i, a, e._f) + const e = KL(t, a); + e && ON(i, a, e._f) } return { criteriaMode: n, @@ -62237,80 +66205,80 @@ } = o; if (e) { const i = u.array.has(e.name), - s = await dT(o, l, g, n.shouldUseNativeValidation, i); + s = await qN(o, l, g, n.shouldUseNativeValidation, i); if (s[e.name] && (r.valid = !1, t)) break; - !t && (fP(s, e.name) ? i ? QP(a.errors, s, e.name) : qP(a.errors, e.name, s[e.name]) : pT(a.errors, e.name)) + !t && (KL(s, e.name) ? i ? PN(a.errors, s, e.name) : ON(a.errors, e.name, s[e.name]) : WN(a.errors, e.name)) } i && await w(i, t, r) } } return r.valid - }, S = (e, t) => (e && t && qP(l, e, t), !mT(T(), s)), E = (e, t, n) => zP(e, u, { - ...c.mount ? l : hP(t) ? s : FP(e) ? { + }, S = (e, t) => (e && t && ON(l, e, t), !YN(T(), s)), E = (e, t, n) => _N(e, u, { + ...c.mount ? l : HL(t) ? s : yN(e) ? { [e]: t } : t - }, n, t), I = (e, t, n = {}) => { - const r = fP(o, e); + }, n, t), O = (e, t, n = {}) => { + const r = KL(o, e); let i = t; if (r) { const n = r._f; - n && (!n.disabled && qP(l, e, kT(t, n)), i = eT(n.ref) && sP(t) ? "" : t, gT(n.ref) ? [...n.ref.options].forEach((e => e.selected = i.includes(e.value))) : n.refs ? aP(n.ref) ? n.refs.length > 1 ? n.refs.forEach((e => (!e.defaultChecked || !e.disabled) && (e.checked = Array.isArray(i) ? !!i.find((t => t === e.value)) : i === e.value))) : n.refs[0] && (n.refs[0].checked = !!i) : n.refs.forEach((e => e.checked = e.value === i)) : XP(n.ref) ? n.ref.value = "" : (n.ref.value = i, n.ref.type || h.watch.next({ + n && (!n.disabled && ON(l, e, nj(t, n)), i = LN(n.ref) && UL(t) ? "" : t, QN(n.ref) ? [...n.ref.options].forEach((e => e.selected = i.includes(e.value))) : n.refs ? zL(n.ref) ? n.refs.length > 1 ? n.refs.forEach((e => (!e.defaultChecked || !e.disabled) && (e.checked = Array.isArray(i) ? !!i.find((t => t === e.value)) : i === e.value))) : n.refs[0] && (n.refs[0].checked = !!i) : n.refs.forEach((e => e.checked = e.value === i)) : RN(n.ref) ? n.ref.value = "" : (n.ref.value = i, n.ref.type || h.watch.next({ name: e }))) }(n.shouldDirty || n.shouldTouch) && b(e, i, n.shouldTouch, n.shouldDirty, !0), n.shouldValidate && P(e) - }, O = (e, t, n) => { + }, I = (e, t, n) => { for (const r in t) { const i = t[r], a = `${e}.${r}`, - s = fP(o, a); - !u.array.has(e) && fT(i) && (!s || s._f) || oP(i) ? I(a, i, n) : O(a, i, n) + s = KL(o, a); + !u.array.has(e) && KN(i) && (!s || s._f) || VL(i) ? O(a, i, n) : I(a, i, n) } }, C = (e, n, r = {}) => { - const i = fP(o, e), + const i = KL(o, e), d = u.array.has(e), - f = UP(n); - qP(l, e, f), d ? (h.array.next({ + f = xN(n); + ON(l, e, f), d ? (h.array.next({ name: e, values: l - }), (p.isDirty || p.dirtyFields) && r.shouldDirty && (a.dirtyFields = xT(s, l), h.state.next({ + }), (p.isDirty || p.dirtyFields) && r.shouldDirty && (a.dirtyFields = tj(s, l), h.state.next({ name: e, dirtyFields: a.dirtyFields, isDirty: S(e, f) - }))) : !i || i._f || sP(f) ? I(e, f, r) : O(e, f, r), YP(e, u) && h.state.next({}), h.watch.next({ + }))) : !i || i._f || UL(f) ? O(e, f, r) : I(e, f, r), AN(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 = fP(o, r); + const s = KL(o, r); if (s) { let d, _; - const S = t.type ? wT(s._f) : uP(e), - E = e.type === mP || e.type === gP, - I = !((c = s._f).mount && (c.required || c.min || c.max || c.maxLength || c.minLength || c.pattern || c.validate)) && !n.resolver && !fP(a.errors, r) && !s._f.deps || ((e, t, n, r, i) => !i.isOnAll && (!n && i.isOnTouch ? !(t || e) : (n ? r.isOnBlur : i.isOnBlur) ? !e : !(n ? r.isOnChange : i.isOnChange) || e))(E, fP(a.touchedFields, r), a.isSubmitted, m, f), - O = YP(r, u, E); - qP(l, r, S), E ? (s._f.onBlur && s._f.onBlur(e), i && i(0)) : s._f.onChange && s._f.onChange(e); + const S = t.type ? rj(s._f) : $L(e), + E = e.type === YL || e.type === QL, + O = !((c = s._f).mount && (c.required || c.min || c.max || c.maxLength || c.minLength || c.pattern || c.validate)) && !n.resolver && !KL(a.errors, r) && !s._f.deps || ((e, t, n, r, i) => !i.isOnAll && (!n && i.isOnTouch ? !(t || e) : (n ? r.isOnBlur : i.isOnBlur) ? !e : !(n ? r.isOnChange : i.isOnChange) || e))(E, KL(a.touchedFields, r), a.isSubmitted, m, f), + I = AN(r, u, E); + ON(l, r, S), E ? (s._f.onBlur && s._f.onBlur(e), i && i(0)) : s._f.onChange && s._f.onChange(e); const C = b(r, S, E, !1), - A = !DP(C) || O; + A = !hN(C) || I; if (!E && h.watch.next({ name: r, type: e.type - }), I) return p.isValid && v(), A && h.state.next({ + }), O) return p.isValid && v(), A && h.state.next({ name: r, - ...O ? {} : C + ...I ? {} : C }); - if (!E && O && h.state.next({}), y(!0), n.resolver) { + if (!E && I && h.state.next({}), y(!0), n.resolver) { const { errors: e - } = await k([r]), t = ET(a.errors, o, r), n = ET(e, o, t.name || r); - d = n.error, r = n.name, _ = DP(e) - } else d = (await dT(s, l, g, n.shouldUseNativeValidation))[r], d ? _ = !1 : p.isValid && (_ = await w(o, !0)); + } = await k([r]), t = aj(a.errors, o, r), n = aj(e, o, t.name || r); + d = n.error, r = n.name, _ = hN(e) + } else d = (await qN(s, l, g, n.shouldUseNativeValidation))[r], d ? _ = !1 : p.isValid && (_ = await w(o, !0)); s._f.deps && P(s._f.deps), x(r, _, d, C) } var c }, P = async (e, t = {}) => { let r, i; - const s = NP(e); + const s = mN(e); if (y(!0), n.resolver) { const t = await (async e => { const { @@ -62318,20 +66286,20 @@ } = await k(); if (e) for (const n of e) { - const e = fP(t, n); - e ? qP(a.errors, n, e) : pT(a.errors, n) + const e = KL(t, n); + e ? ON(a.errors, n, e) : WN(a.errors, n) } else a.errors = t; return t - })(hP(e) ? e : s); - r = DP(t), i = e ? !s.some((e => fP(t, e))) : r + })(HL(e) ? e : s); + r = hN(t), i = e ? !s.some((e => KL(t, e))) : r } else e ? (i = (await Promise.all(s.map((async e => { - const t = fP(o, e); + const t = KL(o, e); return await w(t && t._f ? { [e]: t } : t) })))).every(Boolean), (i || a.isValid) && v()) : i = r = await w(o); return h.state.next({ - ...!FP(e) || p.isValid && r !== a.isValid ? {} : { + ...!yN(e) || p.isValid && r !== a.isValid ? {} : { name: e }, ...n.resolver || !e ? { @@ -62339,20 +66307,20 @@ } : {}, errors: a.errors, isValidating: !1 - }), t.shouldFocus && !i && HP(o, (e => e && fP(a.errors, e)), e ? s : u.mount), i + }), t.shouldFocus && !i && IN(o, (e => e && KL(a.errors, e)), e ? s : u.mount), i }, T = e => { const t = { ...s, ...c.mount ? l : {} }; - return hP(e) ? t : FP(e) ? fP(t, e) : e.map((e => fP(t, e))) + return HL(e) ? t : yN(e) ? KL(t, e) : e.map((e => KL(t, e))) }, R = (e, t) => ({ - invalid: !!fP((t || a).errors, e), - isDirty: !!fP((t || a).dirtyFields, e), - isTouched: !!fP((t || a).touchedFields, e), - error: fP((t || a).errors, e) + invalid: !!KL((t || a).errors, e), + isDirty: !!KL((t || a).dirtyFields, e), + isTouched: !!KL((t || a).touchedFields, e), + error: KL((t || a).errors, e) }), D = (e, t = {}) => { - for (const r of e ? NP(e) : u.mount) u.mount.delete(r), u.array.delete(r), fP(o, r) && (t.keepValue || (pT(o, r), pT(l, r)), !t.keepError && pT(a.errors, r), !t.keepDirty && pT(a.dirtyFields, r), !t.keepTouched && pT(a.touchedFields, r), !n.shouldUnregister && !t.keepDefaultValue && pT(s, r)); + for (const r of e ? mN(e) : u.mount) u.mount.delete(r), u.array.delete(r), KL(o, r) && (t.keepValue || (WN(o, r), WN(l, r)), !t.keepError && WN(a.errors, r), !t.keepDirty && WN(a.dirtyFields, r), !t.keepTouched && WN(a.touchedFields, r), !n.shouldUnregister && !t.keepDefaultValue && WN(s, r)); h.watch.next({}), h.state.next({ ...a, ...t.keepDirty ? { @@ -62360,9 +66328,9 @@ } : {} }), !t.keepIsValid && v() }, L = (e, t = {}) => { - let r = fP(o, e); - const i = ZP(t.disabled); - return qP(o, e, { + let r = KL(o, e); + const i = TN(t.disabled); + return ON(o, e, { ...r || {}, _f: { ...r && r._f ? r._f : { @@ -62374,33 +66342,33 @@ mount: !0, ...t } - }), u.mount.add(e), r ? i && qP(l, e, t.disabled ? void 0 : fP(l, e, wT(r._f))) : _(e, !0, t.value), { + }), u.mount.add(e), r ? i && ON(l, e, t.disabled ? void 0 : KL(l, e, rj(r._f))) : _(e, !0, t.value), { ...i ? { disabled: t.disabled } : {}, ...n.shouldUseNativeValidation ? { required: !!t.required, - min: ST(t.min), - max: ST(t.max), - minLength: ST(t.minLength), - maxLength: ST(t.maxLength), - pattern: ST(t.pattern) + min: ij(t.min), + max: ij(t.max), + minLength: ij(t.minLength), + maxLength: ij(t.maxLength), + pattern: ij(t.pattern) } : {}, name: e, onChange: A, onBlur: A, ref: i => { if (i) { - L(e, t), r = fP(o, e); - const n = hP(i.value) && i.querySelectorAll && i.querySelectorAll("input,select,textarea")[0] || i, - a = (e => nT(e) || aP(e))(n), + L(e, t), r = KL(o, e); + const n = HL(i.value) && i.querySelectorAll && i.querySelectorAll("input,select,textarea")[0] || i, + a = (e => jN(e) || zL(e))(n), l = r._f.refs || []; if (a ? l.find((e => e === n)) : n === r._f.ref) return; - qP(o, e, { + ON(o, e, { _f: { ...r._f, ...a ? { - refs: [...l.filter(vT), n, ...Array.isArray(fP(s, e)) ? [{}] : []], + refs: [...l.filter(ZN), n, ...Array.isArray(KL(s, e)) ? [{}] : []], ref: { type: n.type, name: e @@ -62410,23 +66378,23 @@ } } }), _(e, !1, void 0, n) - } else r = fP(o, e, {}), r._f && (r._f.mount = !1), (n.shouldUnregister || t.shouldUnregister) && (!dP(u.array, e) || !c.action) && u.unMount.add(e) + } else r = KL(o, e, {}), r._f && (r._f.mount = !1), (n.shouldUnregister || t.shouldUnregister) && (!qL(u.array, e) || !c.action) && u.unMount.add(e) } } - }, N = () => n.shouldFocusError && HP(o, (e => e && fP(a.errors, e)), u.mount), M = (n, i = {}) => { + }, N = () => n.shouldFocusError && IN(o, (e => e && KL(a.errors, e)), u.mount), j = (n, i = {}) => { const d = n || s, - f = UP(d), - m = n && !DP(n) ? f : s; + f = xN(d), + m = n && !hN(n) ? f : s; if (i.keepDefaultValues || (s = d), !i.keepValues) { if (i.keepDirtyValues || r) - for (const e of u.mount) fP(a.dirtyFields, e) ? qP(m, e, fP(l, e)) : C(e, fP(m, e)); + for (const e of u.mount) KL(a.dirtyFields, e) ? ON(m, e, KL(l, e)) : C(e, KL(m, e)); else { - if (VP && hP(n)) + if (bN && HL(n)) for (const e of u.mount) { - const t = fP(o, e); + const t = KL(o, e); if (t && t._f) { const e = Array.isArray(t._f.refs) ? t._f.refs[0] : t._f.ref; - if (eT(e)) { + if (LN(e)) { const t = e.closest("form"); if (t) { t.reset(); @@ -62437,7 +66405,7 @@ } o = {} } - l = e.shouldUnregister ? i.keepDefaultValues ? UP(s) : {} : f, h.array.next({ + l = e.shouldUnregister ? i.keepDefaultValues ? xN(s) : {} : f, h.array.next({ values: m }), h.watch.next({ values: m @@ -62452,17 +66420,17 @@ focus: "" }, !c.mount && t(), c.mount = !p.isValid || !!i.keepIsValid, c.watch = !!e.shouldUnregister, h.state.next({ submitCount: i.keepSubmitCount ? a.submitCount : 0, - isDirty: i.keepDirty || i.keepDirtyValues ? a.isDirty : !(!i.keepDefaultValues || mT(n, s)), + isDirty: i.keepDirty || i.keepDirtyValues ? a.isDirty : !(!i.keepDefaultValues || YN(n, s)), isSubmitted: !!i.keepIsSubmitted && a.isSubmitted, - dirtyFields: i.keepDirty || i.keepDirtyValues ? a.dirtyFields : i.keepDefaultValues && n ? xT(s, n) : {}, + dirtyFields: i.keepDirty || i.keepDirtyValues ? a.dirtyFields : i.keepDefaultValues && n ? tj(s, n) : {}, touchedFields: i.keepTouched ? a.touchedFields : {}, errors: i.keepErrors ? a.errors : {}, isSubmitting: !1, isSubmitSuccessful: !1 }) - }, j = (e, t) => M(JP(e) ? e(l) : e, t); - return JP(n.defaultValues) && n.defaultValues().then((e => { - j(e, n.resetOptions), h.state.next({ + }, M = (e, t) => j(DN(e) ? e(l) : e, t); + return DN(n.defaultValues) && n.defaultValues().then((e => { + M(e, n.resetOptions), h.state.next({ isLoading: !1 }) })), { @@ -62477,38 +66445,38 @@ _updateValid: v, _removeUnmounted: () => { for (const e of u.unMount) { - const t = fP(o, e); - t && (t._f.refs ? t._f.refs.every((e => !vT(e))) : !vT(t._f.ref)) && D(e) + const t = KL(o, e); + t && (t._f.refs ? t._f.refs.every((e => !ZN(e))) : !ZN(t._f.ref)) && D(e) } u.unMount = new Set }, _updateFieldArray: (e, t = [], n, r, i = !0, u = !0) => { if (r && n) { - if (c.action = !0, u && Array.isArray(fP(o, e))) { - const t = n(fP(o, e), r.argA, r.argB); - i && qP(o, e, t) + if (c.action = !0, u && Array.isArray(KL(o, e))) { + const t = n(KL(o, e), r.argA, r.argB); + i && ON(o, e, t) } - if (u && Array.isArray(fP(a.errors, e))) { - const t = n(fP(a.errors, e), r.argA, r.argB); - i && qP(a.errors, e, t), ((e, t) => { - !pP(fP(e, t)).length && pT(e, t) + if (u && Array.isArray(KL(a.errors, e))) { + const t = n(KL(a.errors, e), r.argA, r.argB); + i && ON(a.errors, e, t), ((e, t) => { + !WL(KL(e, t)).length && WN(e, t) })(a.errors, e) } - if (p.touchedFields && u && Array.isArray(fP(a.touchedFields, e))) { - const t = n(fP(a.touchedFields, e), r.argA, r.argB); - i && qP(a.touchedFields, e, t) + if (p.touchedFields && u && Array.isArray(KL(a.touchedFields, e))) { + const t = n(KL(a.touchedFields, e), r.argA, r.argB); + i && ON(a.touchedFields, e, t) } - p.dirtyFields && (a.dirtyFields = xT(s, l)), h.state.next({ + p.dirtyFields && (a.dirtyFields = tj(s, l)), h.state.next({ name: e, isDirty: S(e, t), dirtyFields: a.dirtyFields, errors: a.errors, isValid: a.isValid }) - } else qP(l, e, t) + } else ON(l, e, t) }, - _getFieldArray: t => pP(fP(c.mount ? l : s, t, e.shouldUnregister ? fP(s, t, []) : [])), - _reset: M, + _getFieldArray: t => WL(KL(c.mount ? l : s, t, e.shouldUnregister ? KL(s, t, []) : [])), + _reset: j, _updateFormState: e => { a = { ...a, @@ -62558,7 +66526,7 @@ register: L, handleSubmit: (e, t) => async r => { r && (r.preventDefault && r.preventDefault(), r.persist && r.persist()); - let i = UP(l); + let i = xN(l); if (h.state.next({ isSubmitting: !0 }), n.resolver) { @@ -62568,40 +66536,40 @@ } = await k(); a.errors = e, i = t } else await w(o); - DP(a.errors) ? (h.state.next({ + hN(a.errors) ? (h.state.next({ errors: {} }), await e(i, r)) : (t && await t({ ...a.errors }, r), N()), h.state.next({ isSubmitted: !0, isSubmitting: !1, - isSubmitSuccessful: DP(a.errors), + isSubmitSuccessful: hN(a.errors), submitCount: a.submitCount + 1, errors: a.errors }) }, - watch: (e, t) => JP(e) ? h.watch.subscribe({ + watch: (e, t) => DN(e) ? h.watch.subscribe({ next: n => e(E(void 0, t), n) }) : E(e, t, !0), setValue: C, getValues: T, - reset: j, + reset: M, resetField: (e, t = {}) => { - fP(o, e) && (hP(t.defaultValue) ? C(e, fP(s, e)) : (C(e, t.defaultValue), qP(s, e, t.defaultValue)), t.keepTouched || pT(a.touchedFields, e), t.keepDirty || (pT(a.dirtyFields, e), a.isDirty = t.defaultValue ? S(e, fP(s, e)) : S()), t.keepError || (pT(a.errors, e), p.isValid && v()), h.state.next({ + KL(o, e) && (HL(t.defaultValue) ? C(e, KL(s, e)) : (C(e, t.defaultValue), ON(s, e, t.defaultValue)), t.keepTouched || WN(a.touchedFields, e), t.keepDirty || (WN(a.dirtyFields, e), a.isDirty = t.defaultValue ? S(e, KL(s, e)) : S()), t.keepError || (WN(a.errors, e), p.isValid && v()), h.state.next({ ...a })) }, clearErrors: e => { - e ? NP(e).forEach((e => pT(a.errors, e))) : a.errors = {}, h.state.next({ + e ? mN(e).forEach((e => WN(a.errors, e))) : a.errors = {}, h.state.next({ errors: a.errors }) }, unregister: D, setError: (e, t, n) => { - const r = (fP(o, e, { + const r = (KL(o, e, { _f: {} })._f || {}).ref; - qP(a.errors, e, { + ON(a.errors, e, { ...t, ref: r }), h.state.next({ @@ -62611,7 +66579,7 @@ }), n && n.shouldFocus && r && r.focus && r.focus() }, setFocus: (e, t = {}) => { - const n = fP(o, e), + const n = KL(o, e), r = n && n._f; if (r) { const e = r.refs ? r.refs[0] : r.ref; @@ -62622,7 +66590,7 @@ } } - function CT(e = {}) { + function lj(e = {}) { const t = Ee.useRef(), [n, r] = Ee.useState({ isDirty: !1, @@ -62636,31 +66604,31 @@ dirtyFields: {}, touchedFields: {}, errors: {}, - defaultValues: JP(e.defaultValues) ? void 0 : e.defaultValues + defaultValues: DN(e.defaultValues) ? void 0 : e.defaultValues }); t.current || (t.current = { - ...OT(e, (() => r((e => ({ + ...sj(e, (() => r((e => ({ ...e }))))), formState: n }); const i = t.current.control; - return i._options = e, jP({ + return i._options = e, vN({ subject: i._subjects.state, next: e => { - LP(e, i._proxyFormState, i._updateFormState, !0) && r({ + fN(e, i._proxyFormState, i._updateFormState, !0) && r({ ...i._formState }) } }), Ee.useEffect((() => { i._stateFlags.mount || (i._updateValid(), i._stateFlags.mount = !0), i._stateFlags.watch && (i._stateFlags.watch = !1, i._subjects.state.next({})), i._removeUnmounted() })), Ee.useEffect((() => { - e.values && !mT(e.values, i._defaultValues) && i._reset(e.values, i._options.resetOptions) + e.values && !YN(e.values, i._defaultValues) && i._reset(e.values, i._options.resetOptions) }), [e.values, i]), Ee.useEffect((() => { n.submitCount && i._focusError() - }), [i, n.submitCount]), t.current.formState = RP(n, i), t.current + }), [i, n.submitCount]), t.current.formState = pN(n, i), t.current } - const AT = ({ + const cj = ({ children: e, control: t, name: n, @@ -62682,7 +66650,7 @@ error: h, invalid: f } - } = BP({ + } = kN({ name: n, control: t, defaultValue: r, @@ -62691,12 +66659,12 @@ ...a } }); - return (0, _w.jsx)(Xd, { + return (0, QI.jsx)(_d, { error: null === h || void 0 === h ? void 0 : h.message, invalid: f, required: null !== (l = !(null === a || void 0 === a || !a.required)) && void 0 !== l ? l : i, ...s, - children: (0, _w.jsx)(lg, { + children: (0, QI.jsx)(Cm, { name: n, value: null !== c && void 0 !== c ? c : "", onBlur: u, @@ -62707,7 +66675,7 @@ }) }) }, - PT = ({ + uj = ({ control: e, name: t, defaultValue: n, @@ -62729,7 +66697,7 @@ error: h, invalid: f } - } = BP({ + } = kN({ name: t, control: e, defaultValue: n, @@ -62740,12 +66708,12 @@ }), { t: m } = bt("form"); - return (0, _w.jsx)(Xd, { + return (0, QI.jsx)(_d, { error: null === h || void 0 === h ? void 0 : h.message, invalid: f, required: null !== (l = !(null === i || void 0 === i || !i.required)) && void 0 !== l ? l : r, ...s, - children: (0, _w.jsx)(Fm, { + children: (0, QI.jsx)(im, { name: t, value: null !== c && void 0 !== c ? c : "", onBlur: u, @@ -62758,24 +66726,24 @@ }) }) }, - TT = (e, t) => ({ + dj = (e, t) => ({ dialog: { actions: { showExitAppDialog: () => { const e = t(); - return LA.show(MA, { + return fL.show(gL, { title: _e.t("dialog_warning_exit_app_title", { ns: "dialog" }), - content: (0, _w.jsx)(jd, { + content: (0, QI.jsx)(id, { description: _e.t("dialog_warning_exit_app_text", { ns: "dialog" }), gap: "100", - children: (0, _w.jsx)(Fd, { + children: (0, QI.jsx)(ad, { name: "hideDialog", value: "checked", - children: (0, _w.jsx)(ft, { + children: (0, QI.jsx)(ft, { i18nKey: "dialog_warning_exit_app_checkbox", t: _e.t, ns: "dialog" @@ -62788,7 +66756,7 @@ primaryCallback: () => e.window.actions.exitLauncher() }) }, - showWarningExitAppGameRuningDialog: () => LA.show(jA, { + showWarningExitAppGameRuningDialog: () => fL.show(vL, { title: _e.t("dialog_warning_exit_app_title", { ns: "dialog" }), @@ -62801,7 +66769,7 @@ }), showDiscoverDialog: () => { const e = t(); - return LA.show(jA, { + return fL.show(vL, { title: _e.t("dialog_discover_title", { ns: "dialog" }), @@ -62827,7 +66795,7 @@ showLogoutDialog: e => { const n = t(), r = n.settings.appSettings.accessibility.reduceMotion.wipeAnimationsDisabled; - return LA.show(jA, { + return fL.show(vL, { title: _e.t("dialog_warning_logout_title", { ns: "dialog" }), @@ -62838,24 +66806,24 @@ ns: "dialog" }), primaryCallback: async () => { - if (r) return void await rI(); + if (r) return void await jP(); const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); n.application.actions.setAnimatingAppLayoutWipe("in", !0); - const t = setTimeout((() => rI()), e / 2); + const t = setTimeout((() => jP()), e / 2); return () => clearTimeout(t) } }) }, - showOsRequirementsDialog: e => LA.show(NA, { + showOsRequirementsDialog: e => fL.show(mL, { title: _e.t("error_os_requirements_title", { ns: "errors" }), - content: (0, _w.jsx)(ft, { + content: (0, QI.jsx)(ft, { i18nKey: "error_os_requirements_text", t: _e.t, ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.minimumRequirementsUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.minimumRequirementsUrl, external: !0 })], values: { @@ -62863,7 +66831,7 @@ } }) }), - showCpuRequirementsDialog: () => LA.show(NA, { + showCpuRequirementsDialog: () => fL.show(mL, { title: _e.t("error_cpu_requirements_title", { ns: "errors" }), @@ -62879,19 +66847,19 @@ secondaryLabel: i, secondaryCallback: a, error: o - }) => LA.show(jA, { + }) => fL.show(vL, { title: null !== e && void 0 !== e ? e : _e.t("error_generic_title", { ns: "errors" }), - content: null !== t && void 0 !== t ? t : (0, _w.jsx)(ft, { + content: null !== t && void 0 !== t ? t : (0, QI.jsx)(ft, { i18nKey: "error_generic_content", t: _e.t, ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.issueCouncilUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.issueCouncilUrl, external: !0 - }), (0, _w.jsx)(zm, { - href: yw.configuration.filesSupportUrl, + }), (0, QI.jsx)(am, { + href: YI.configuration.filesSupportUrl, external: !0 })], values: { @@ -62908,7 +66876,7 @@ }), secondaryCallback: () => null === a || void 0 === a ? void 0 : a() }), - showWarningDialogCacheClear: () => LA.show(jA, { + showWarningDialogCacheClear: () => fL.show(vL, { title: _e.t("dialog_debug_cache_clear_title", { ns: "dialog" }), @@ -62932,19 +66900,19 @@ primaryCallback: n, primaryLabel: r, error: i - }) => LA.show(NA, { + }) => fL.show(mL, { title: null !== e && void 0 !== e ? e : _e.t("error_generic_title", { ns: "errors" }), - content: null !== t && void 0 !== t ? t : (0, _w.jsx)(ft, { + content: null !== t && void 0 !== t ? t : (0, QI.jsx)(ft, { i18nKey: "error_generic_content", t: _e.t, ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.issueCouncilUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.issueCouncilUrl, external: !0 - }), (0, _w.jsx)(zm, { - href: yw.configuration.filesSupportUrl, + }), (0, QI.jsx)(am, { + href: YI.configuration.filesSupportUrl, external: !0 })], values: { @@ -62954,10 +66922,10 @@ primaryCallback: () => null === n || void 0 === n ? void 0 : n(), primaryLabel: null !== r && void 0 !== r ? r : void 0 }), - showWarningsDialog: (e, t) => LA.show(jA, { + showWarningsDialog: (e, t) => fL.show(vL, { title: e, typeDialog: "positive", - content: Ow(t), + content: iC(t), secondaryLabel: _e.t("dialog_action_close", { ns: "dialog" }), @@ -62965,10 +66933,10 @@ ns: "dialog" }) }), - showAgreementsDialog: (e, t, n) => LA.show(jA, { + showAgreementsDialog: (e, t, n) => fL.show(vL, { title: e, typeDialog: "positive", - content: Ow(`

${t}

${n}`), + content: iC(`

${t}

${n}`), secondaryLabel: _e.t("dialog_action_decline", { ns: "dialog" }), @@ -62979,7 +66947,7 @@ }), showResetSettingsDialog: e => { const n = t(); - return LA.show(jA, { + return fL.show(vL, { title: _e.t("dialog_settings_reset_title", { ns: "dialog" }), @@ -62999,7 +66967,7 @@ }, showGameNotInstalledDialog: e => { const n = t(); - return LA.show(jA, { + return fL.show(vL, { title: _e.t("dialog_settings_game_not_installed_title", { ns: "dialog" }), @@ -63013,40 +66981,40 @@ ns: "dialog" }), primaryCallback: () => { - n.installer.actions.addInstallationToQueue(e, yw.InstallationType.INSTALL) + n.installer.actions.addInstallationToQueue(e, YI.InstallationType.INSTALL) } }) }, showGameStartInstallationDialog: async e => { const n = t(), r = n.settings.appSettings.accessibility.reduceMotion.wipeAnimationsDisabled, - i = await ZC(e); - return LA.show(jA, { + i = await TD(e); + return fL.show(vL, { typeDialog: "default", title: _e.t("dialog_start_installation_title", { ns: "dialog", game: e.gameName, channel: e.channelName }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { role: "group", gap: "100", vertical: !0, - children: [(0, _w.jsxs)(cl, { + children: [(0, QI.jsxs)(Ps, { role: "group", gap: "0", vertical: !0, - children: [(0, _w.jsx)("p", { + children: [(0, QI.jsx)("p", { children: _e.t("dialog_start_installation_content_location", { ns: "dialog" }) - }), (0, _w.jsxs)("p", { - children: [(0, _w.jsx)("span", { + }), (0, QI.jsxs)("p", { + children: [(0, QI.jsx)("span", { className: "sol-u-color-foreground", - children: Lw(n.settings.library.defaultLibraryFolder) + children: dC(n.settings.library.defaultLibraryFolder) }), i.installDir, "\\", e.channelId] })] - }), (0, _w.jsx)("p", { + }), (0, QI.jsx)("p", { children: _e.t("dialog_start_installation_content_location_settings", { ns: "dialog" }) @@ -63056,7 +67024,7 @@ ns: "dialog" }), secondaryCallback: () => { - const t = rO(`/${yD.SETTINGS}/${yD.SETTINGS_GAMES}`, { + const t = MT(`/${XM.SETTINGS}/${XM.SETTINGS_GAMES}`, { gameId: e.gameId, channelId: e.channelId }); @@ -63072,26 +67040,26 @@ ns: "dialog" }), primaryCallback: () => { - n.installer.actions.addInstallationToQueue(e, yw.InstallationType.INSTALL) + n.installer.actions.addInstallationToQueue(e, YI.InstallationType.INSTALL) } }) }, showGameCancelInstallationDialog: e => { const n = t(); - return LA.show(jA, { + return fL.show(vL, { title: _e.t("dialog_cancel_installation_title", { ns: "dialog" }), - content: (0, _w.jsxs)(cl, { + content: (0, QI.jsxs)(Ps, { role: "group", gap: "100", vertical: !0, - children: [(0, _w.jsx)("p", { + children: [(0, QI.jsx)("p", { children: _e.t("dialog_cancel_installation_content", { ns: "dialog", info: `${e.game.gameName} - ${e.release?e.release.versionLabel+" - ":""}${e.game.channelId}` }) - }), e.type === yw.InstallationType.INSTALL && (0, _w.jsx)(Fd, { + }), e.type === YI.InstallationType.INSTALL && (0, QI.jsx)(ad, { type: "checkbox", onChange: t => n.installer.actions.setInstallationOptions(e.game, { keepFilesOnCancel: t.target.checked @@ -63115,7 +67083,7 @@ } }) }, - showGameChannelUpdateAvailableDialog: e => LA.show(NA, { + showGameChannelUpdateAvailableDialog: e => fL.show(mL, { typeDialog: "positive", title: _e.t("dialog_launch_check_update_available_title", { ns: "dialog" @@ -63126,26 +67094,26 @@ channel: e.channelName }) }), - showWarningUninstallDialog: e => LA.show(MA, { + showWarningUninstallDialog: e => fL.show(gL, { title: _e.t("dialog_warning_uninstall_title", { game: e.gameName, channel: e.channelName, ns: "dialog" }), - content: (0, _w.jsx)(jd, { + content: (0, QI.jsx)(id, { description: _e.t("dialog_warning_uninstall_text", { ns: "dialog" }), gap: "100", - children: (0, _w.jsx)(Fd, { + children: (0, QI.jsx)(ad, { name: "keepUserFolder", value: "checked", description: be("dialog_warning_uninstall_userFolder_checkbox_description", { ns: "dialog", - path: Lw(`${e.libraryFolder}\\${e.installDir}\\${e.channelId}\\user`) + path: dC(`${e.libraryFolder}\\${e.installDir}\\${e.channelId}\\user`) }), defaultChecked: !0, - children: (0, _w.jsx)(ft, { + children: (0, QI.jsx)(ft, { i18nKey: "dialog_warning_uninstall_userFolder_checkbox", t: _e.t, ns: "dialog" @@ -63159,13 +67127,13 @@ ns: "dialog" }) }), - showLostConnectionDialog: () => LA.show(NA, { + showLostConnectionDialog: () => fL.show(mL, { typeDialog: "default", title: _e.t("dialog_warning_lost_connection_title", { ns: "dialog" }), - content: (0, _w.jsx)("span", { - children: (0, _w.jsx)(ft, { + content: (0, QI.jsx)("span", { + children: (0, QI.jsx)(ft, { i18nKey: "dialog_warning_lost_connection_content", t: _e.t, ns: "dialog" @@ -63178,7 +67146,7 @@ } } }), - RT = SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST ? [{ + pj =SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST ? [{ label: "!1024", value: 1024 }, { @@ -63224,7 +67192,7 @@ label: "5", value: 5 }], - DT = { + hj = { reduceMotion: { syncWithSystem: !1, backgroundVideoDisabled: !1, @@ -63232,33 +67200,33 @@ wipeAnimationsDisabled: !1 } }, - LT = { + fj = { appSettings: { quitOnWindowClose: !1, hideQuitWarning: !1, isDiscoverDone: !1, download: { - concurrentTransfers: RT[0].value, + concurrentTransfers: pj[0].value, maximumDownloadBandwidth: 0 }, - accessibility: DT + accessibility: hj }, library: { defaultLibraryFolder: "" } }, - NT = ({ + mj = ({ defaultLibraryFolder: e = "", gamesSettings: t = [], - quitOnWindowClose: n = LT.appSettings.quitOnWindowClose, - hideQuitWarning: r = LT.appSettings.hideQuitWarning, - isDiscoverDone: i = LT.appSettings.isDiscoverDone, - download: a = LT.appSettings.download, - accessibility: o = LT.appSettings.accessibility + quitOnWindowClose: n = fj.appSettings.quitOnWindowClose, + hideQuitWarning: r = fj.appSettings.hideQuitWarning, + isDiscoverDone: i = fj.appSettings.isDiscoverDone, + download: a = fj.appSettings.download, + accessibility: o = fj.appSettings.accessibility } = {}) => ({ - ...LT, + ...fj, appSettings: { - ...LT.appSettings, + ...fj.appSettings, quitOnWindowClose: n, hideQuitWarning: r, isDiscoverDone: i, @@ -63266,18 +67234,18 @@ accessibility: o }, library: { - ...LT.library, + ...fj.library, defaultLibraryFolder: e }, gamesSettings: t }), - MT = (e, t) => ({ + gj = (e, t) => ({ settings: { - ...NT(), + ...mj(), actions: { initializeApplicationSettings: async () => { var n; - const r = null !== (n = await window.launcherAPI.store.getValueFromStore("library.libraryFolder")) && void 0 !== n ? n : `${yw.configuration.infoApp.defaultLibraryPath}${yw.configuration.infoApp.defaultLibraryFolder}`, + const r = null !== (n = await window.launcherAPI.store.getValueFromStore("library.libraryFolder")) && void 0 !== n ? n : `${YI.configuration.infoApp.defaultLibraryPath}${YI.configuration.infoApp.defaultLibraryFolder}`, i = await window.launcherAPI.store.getValueFromStore("application.quitOnWindowClose"), a = await window.launcherAPI.store.getValueFromStore("application.hideQuitWarning"), o = await window.launcherAPI.store.getValueFromStore("application.isDiscoverDone"), @@ -63286,8 +67254,8 @@ e((e => ({ settings: { ...e.settings, - ...NT({ - defaultLibraryFolder: Lw(r), + ...mj({ + defaultLibraryFolder: dC(r), gamesSettings: e.settings.gamesSettings, quitOnWindowClose: i, hideQuitWarning: a, @@ -63354,7 +67322,7 @@ const { gamesSettings: t } = r.settings, o = r.settings.actions.getChannelDefaultGameSettings(n); - let s = [...t.filter((e => e.channelId !== a)), o].sort(((e, t) => eA(e.channelId, t.channelId))); + let s = [...t.filter((e => e.channelId !== a)), o].sort(((e, t) => LD(e.channelId, t.channelId))); e((e => ({ settings: { ...e.settings, @@ -63384,7 +67352,7 @@ } = n, { gamesSettings: i } = t().settings; - let a = [...i.filter((e => e.channelId !== r)), n].sort(((e, t) => eA(e.channelId, t.channelId))); + let a = [...i.filter((e => e.channelId !== r)), n].sort(((e, t) => LD(e.channelId, t.channelId))); e((e => ({ settings: { ...e.settings, @@ -63395,7 +67363,7 @@ if (o) { const e = [...o.filter((e => e.channelId !== r)), { ...n - }].sort(((e, t) => eA(e.channelId, t.channelId))); + }].sort(((e, t) => LD(e.channelId, t.channelId))); window.launcherAPI.store.setValueToStore("library.settings", e) } else window.launcherAPI.store.setValueToStore("library.settings", a) }, @@ -63460,27 +67428,27 @@ } } }); - let jT = null; - const FT = e => Object.entries(e).reduce(((e, [t, n]) => ({ + let vj = null; + const yj = e => Object.entries(e).reduce(((e, [t, n]) => ({ ...e, - [t]: `${yw.configuration.assets.directory}${n}` + [t]: `${YI.configuration.assets.directory}${n}` })), {}), - zT = e => ({ + _j = e => ({ volume: null !== e && void 0 !== e ? e : 50, previousVolume: null, system: null, - soundList: FT(yw.configuration.assets.sounds), - trackList: FT(yw.configuration.assets.musics) + soundList: yj(YI.configuration.assets.sounds), + trackList: yj(YI.configuration.assets.musics) }), - VT = (e, t) => ({ + bj = (e, t) => ({ soundSystem: { - ...zT(), + ..._j(), actions: { initializeSoundContext: async () => { var t; const n = await window.launcherAPI.store.getValueFromStore("application.volume"), - r = zT(n); - jT = null !== (t = jT) && void 0 !== t ? t : new _E({ + r = _j(n); + vj = null !== (t = vj) && void 0 !== t ? t : new XA({ sounds: r.soundList, musics: r.trackList, volume: r.volume @@ -63488,9 +67456,9 @@ soundSystem: { ...e.soundSystem, ...r, - system: jT + system: vj } - }))), jT.playSound("open"), jT.playBackgroundTrack() + }))), vj.playSound("open"), vj.playBackgroundTrack() }, changeVolume: (n, r = 0) => { const i = t().soundSystem.system; @@ -63528,46 +67496,46 @@ } } }), - UT = { + xj = { randomUUID: "undefined" !== typeof crypto && crypto.randomUUID && crypto.randomUUID.bind(crypto) }; - let BT; - const GT = new Uint8Array(16); + let kj; + const wj = new Uint8Array(16); - function WT() { - if (!BT && (BT = "undefined" !== typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !BT)) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported"); - return BT(GT) + function Sj() { + if (!kj && (kj = "undefined" !== typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !kj)) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported"); + return kj(wj) } - const $T = []; - for (let n = 0; n < 256; ++n) $T.push((n + 256).toString(16).slice(1)); + const Ej = []; + for (let n = 0; n < 256; ++n) Ej.push((n + 256).toString(16).slice(1)); - function qT(e, t = 0) { - return ($T[e[t + 0]] + $T[e[t + 1]] + $T[e[t + 2]] + $T[e[t + 3]] + "-" + $T[e[t + 4]] + $T[e[t + 5]] + "-" + $T[e[t + 6]] + $T[e[t + 7]] + "-" + $T[e[t + 8]] + $T[e[t + 9]] + "-" + $T[e[t + 10]] + $T[e[t + 11]] + $T[e[t + 12]] + $T[e[t + 13]] + $T[e[t + 14]] + $T[e[t + 15]]).toLowerCase() + function Oj(e, t = 0) { + return (Ej[e[t + 0]] + Ej[e[t + 1]] + Ej[e[t + 2]] + Ej[e[t + 3]] + "-" + Ej[e[t + 4]] + Ej[e[t + 5]] + "-" + Ej[e[t + 6]] + Ej[e[t + 7]] + "-" + Ej[e[t + 8]] + Ej[e[t + 9]] + "-" + Ej[e[t + 10]] + Ej[e[t + 11]] + Ej[e[t + 12]] + Ej[e[t + 13]] + Ej[e[t + 14]] + Ej[e[t + 15]]).toLowerCase() } - const HT = function(e, t, n) { - if (UT.randomUUID && !t && !e) return UT.randomUUID(); - const r = (e = e || {}).random || (e.rng || WT)(); + const Ij = function(e, t, n) { + if (xj.randomUUID && !t && !e) return xj.randomUUID(); + const r = (e = e || {}).random || (e.rng || Sj)(); 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 qT(r) + return Oj(r) }, - KT = { + Cj = { list: [] }, - YT = (e, t) => ({ + Aj = (e, t) => ({ toasts: { - ...KT, + ...Cj, actions: { async init() { const e = t(); window.launcherAPI.autoUpdate.onNewVersionInstalled((() => { e.toasts.actions.add({ - title: AI("auto_update_toast_update_installed"), + title: cT("auto_update_toast_update_installed"), type: "positive", - icon: fI, + icon: KP, closeOnClick: !1 }, !0) })) @@ -63575,10 +67543,10 @@ async add(n, r = !1) { const i = await window.launcherAPI.window.isMinimized(), a = t(), - o = HT(); + o = Ij(); r && window.launcherAPI.notification.show({ - title: Tw(n.title), - body: Tw(n.children) + title: lC(n.title), + body: lC(n.children) }), i || e({ toasts: { ...a.toasts, @@ -63602,23 +67570,23 @@ } } }), - QT = (e = null, t = null, n = {}) => ({ + Pj = (e = null, t = null, n = {}) => ({ identity: e, device: t, sessions: n }), - ZT = (e, t) => ({ + Tj = (e, t) => ({ user: { - ...QT(), + ...Pj(), 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"), i = await window.launcherAPI.store.getValueFromStore("session"), a = QT(n, r, i ? { + } = await window.launcherAPI.game.getGlobalConfig(), n = await window.launcherAPI.store.getValueFromStore("identity"), r = await window.launcherAPI.store.getValueFromStore("device"), i = await window.launcherAPI.store.getValueFromStore("session"), a = Pj(n, r, i ? { [t]: i } : {}); var o, s, l; - n && Rw().authentication.onSignInSuccess({ + n && cC().authentication.onSignInSuccess({ accountName: null !== (o = n.username) && void 0 !== o ? o : "", trackingMetricsId: null !== (s = n.trackingMetricsId) && void 0 !== s ? s : "", heapAccountId: null !== (l = n.heapAccountId) && void 0 !== l ? l : "" @@ -63650,7 +67618,7 @@ application: a } = t(), { store: o - } = Rw(), s = null !== r && void 0 !== r ? r : a.platformMaster; + } = cC(), s = null !== r && void 0 !== r ? r : a.platformMaster; i && s === a.platformMaster && o.setValueToStore("session", n), e((e => ({ user: { ...e.user, @@ -63670,7 +67638,7 @@ }) => { const { store: r - } = Rw(); + } = cC(); n && r.setValueToStore("identity", t), e((e => ({ user: { ...e.user, @@ -63684,7 +67652,7 @@ }) => { const { store: r - } = Rw(); + } = cC(); n && r.setValueToStore("device", t), e((e => ({ user: { ...e.user, @@ -63698,14 +67666,14 @@ user: r } = t(), i = r.sessions[null !== e && void 0 !== e ? e : n.platformMaster]; if (i && (e => "key" in e && "value" in e && "cookie" in e)(i)) return i; - const a = await aI.fetchQuery((o = e, { + const a = await FP.fetchQuery((o = e, { queryKey: [`signinSession-${o}`], - queryFn: async () => yE.authentication.getSignInSession(o) + queryFn: async () => ZA.authentication.getSignInSession(o) })); var o; - if (!a) throw new wS({ + if (!a) throw new eA({ message: `Not able to log-in to ${e} platform.`, - code: Fw, + code: mC, payload: null, environment: e }); @@ -63719,15 +67687,14 @@ const { application: a, user: o - } = t(), s = null !== (r = o.sessions[a.platformMaster]) && void 0 !== r ? r : e, l = null !== (i = o.identity) && void 0 !== i ? i : n, c = o.device; - var u; - return !!c && !("expires" in (u = c) && u.expires && u.expires <= Date.now()) && !!s && !!l + } = t(), s = null !== (r = o.sessions[a.platformMaster]) && void 0 !== r ? r : e, l = null !== (i = o.identity) && void 0 !== i ? i : n; + return !!s && !!l }, resetUser: t => { window.launcherAPI.store.setValueToStore("session", null), window.launcherAPI.store.setValueToStore("identity", null), t.clearDevice && window.launcherAPI.store.setValueToStore("device", null), e((e => ({ user: { ...e.user, - ...QT(), + ...Pj(), device: t.clearDevice ? null : e.user.device } }))) @@ -63735,12 +67702,12 @@ } } }), - XT = (e, t) => ({ + Rj = (e, t) => ({ window: { actions: { openInternalWindow: async (e, t) => { - const n = pR.getState().application, - r = pR.getState().user, + const n = Wj.getState().application, + r = Wj.getState().user, i = n.platformMaster, a = r.sessions[i], o = r.device, @@ -63779,10 +67746,10 @@ wipeAnimationsDisabled: i } = r.appSettings.accessibility.reduceMotion; if (e.isGameRunning) return n.actions.showWarningExitAppGameRuningDialog(); - if (i) return void Rw().window.setQuitWindow(); + if (i) return void cC().window.setQuitWindow(); const a = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); return e.actions.setAnimatingAppLayoutWipe("in", !0), setTimeout((() => { - Rw().window.setQuitWindow() + cC().window.setQuitWindow() }), a / 2) }, closeLauncher: async () => { @@ -63794,7 +67761,7 @@ } = t(), { wipeAnimationsDisabled: o } = i.appSettings.accessibility.reduceMotion, s = i.appSettings.quitOnWindowClose, l = i.appSettings.hideQuitWarning, c = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), u = () => { - s ? a.actions.exitLauncher() : Rw().window.setCloseWindow() + s ? a.actions.exitLauncher() : cC().window.setCloseWindow() }; if (l || !s) { if (o) { @@ -63826,7 +67793,7 @@ } } }), - JT = e => { + Dj = e => { let t; const n = new Set, r = (e, r) => { @@ -63849,32 +67816,32 @@ o = t = e(r, i, a); return a }, - eR = e => e ? JT(e) : JT; - var tR = n(327); + Lj = e => e ? Dj(e) : Dj; + var Nj = n(327); const { - useDebugValue: nR + useDebugValue: jj } = Ee, { - useSyncExternalStoreWithSelector: rR - } = tR; - let iR = !1; - const aR = e => e; - const oR = e => { + useSyncExternalStoreWithSelector: Mj + } = Nj; + let Fj = !1; + const zj = e => e; + const Vj = 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 ? eR(e) : e, - n = (e, n) => function(e, t = aR, n) { - n && !iR && (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"), iR = !0); - const r = rR(e.subscribe, e.getState, e.getServerState || e.getInitialState, t, n); - return nR(r), r + const t = "function" === typeof e ? Lj(e) : e, + n = (e, n) => function(e, t = zj, n) { + n && !Fj && (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"), Fj = !0); + const r = Mj(e.subscribe, e.getState, e.getServerState || e.getInitialState, t, n); + return jj(r), r }(t, e, n); return Object.assign(n, t), n }, - sR = e => e ? oR(e) : oR; - const lR = new Map, - cR = e => { - const t = lR.get(e); + Uj = e => e ? Vj(e) : Vj; + const Bj = new Map, + Gj = e => { + const t = Bj.get(e); return t ? Object.fromEntries(Object.entries(t.stores).map((([e, t]) => [e, t.getState()]))) : {} }, - uR = (e, t = {}) => (n, r, i) => { + $j = (e, t = {}) => (n, r, i) => { const { enabled: a, anonymousActionType: o, @@ -63894,7 +67861,7 @@ type: "untracked", connection: t.connect(n) }; - const r = lR.get(n.name); + const r = Bj.get(n.name); if (r) return { type: "tracked", store: e, @@ -63904,7 +67871,7 @@ connection: t.connect(n), stores: {} }; - return lR.set(n.name, i), { + return Bj.set(n.name, i), { type: "tracked", store: e, ...i @@ -63923,7 +67890,7 @@ ...d, type: `${s}/${d.type}` }, { - ...cR(l.name), + ...Gj(l.name), [s]: i.getState() }), c) }; @@ -63943,7 +67910,7 @@ var t; switch (e.type) { case "ACTION": - return "string" !== typeof e.payload ? void console.error("[zustand devtools middleware] Unsupported action format") : dR(e.payload, (e => { + return "string" !== typeof e.payload ? void console.error("[zustand devtools middleware] Unsupported action format") : qj(e.payload, (e => { if ("__setState" !== e.type) i.dispatchFromDevtools && "function" === typeof i.dispatch && i.dispatch(e); else { if (void 0 === s) return void h(e.state); @@ -63956,17 +67923,17 @@ case "DISPATCH": switch (e.payload.type) { case "RESET": - return h(f), void 0 === s ? null == u ? void 0 : u.init(i.getState()) : null == u ? void 0 : u.init(cR(l.name)); + return h(f), void 0 === s ? null == u ? void 0 : u.init(i.getState()) : null == u ? void 0 : u.init(Gj(l.name)); case "COMMIT": - return void 0 === s ? void(null == u || u.init(i.getState())) : null == u ? void 0 : u.init(cR(l.name)); + return void 0 === s ? void(null == u || u.init(i.getState())) : null == u ? void 0 : u.init(Gj(l.name)); case "ROLLBACK": - return dR(e.state, (e => { + return qj(e.state, (e => { if (void 0 === s) return h(e), void(null == u || u.init(i.getState())); - h(e[s]), null == u || u.init(cR(l.name)) + h(e[s]), null == u || u.init(Gj(l.name)) })); case "JUMP_TO_STATE": case "JUMP_TO_ACTION": - return dR(e.state, (e => { + return qj(e.state, (e => { void 0 !== s ? JSON.stringify(i.getState()) !== JSON.stringify(e[s]) && h(e[s]) : h(e) })); case "IMPORT_STATE": { @@ -63983,7 +67950,7 @@ } })), f }, - dR = (e, t) => { + qj = (e, t) => { let n; try { n = JSON.parse(e) @@ -63992,35 +67959,35 @@ } void 0 !== n && t(n) }; - const pR = sR()(uR(((...e) => ({ - ...oI(...e), - ...II(...e), - ...OI(...e), - ...MT(...e), - ...VT(...e), - ...BC(...e), - ...ZT(...e), - ...RI(...e), - ...aA(...e), - ...TT(...e), - ...YT(...e), - ...iA(...e), - ...XT(...e) + const Wj = Uj()($j(((...e) => ({ + ...zP(...e), + ...oT(...e), + ...sT(...e), + ...gj(...e), + ...bj(...e), + ...kD(...e), + ...Tj(...e), + ...pT(...e), + ...zD(...e), + ...dj(...e), + ...Aj(...e), + ...FD(...e), + ...Rj(...e) })), { name: "launcher-store", enabled: !0, trace: !0 })), - hR = window.envVars.reviewAppRootUrl, - fR = e => { + Hj = window.envVars.reviewAppRootUrl, + Kj = e => { var t; - const n = yw.configuration.env, - r = pR.getState().application.platformMaster; - return ("reviewapp" === r ? hR : null !== (t = n[r].rootUrl) && void 0 !== t ? t : yw.configuration.rootUrl) + e + const n = YI.configuration.env, + r = Wj.getState().application.platformMaster; + return ("reviewapp" === r ? Hj : null !== (t = n[r].rootUrl) && void 0 !== t ? t : YI.configuration.rootUrl) + e }, - mR = e => e / 1e3, - gR = (0, Ee.createContext)({}), - vR = ({ + Yj = e => e / 1e3, + Qj = (0, Ee.createContext)({}), + Zj = ({ children: e }) => { const { @@ -64028,7 +67995,7 @@ onSetHideWindowSuccessFul: t, onSetShowWindowSuccessFul: n } - } = window.launcherAPI, r = pR.getState().application, [i, a] = (0, Ee.useState)(!1); + } = window.launcherAPI, r = Wj.getState().application, [i, a] = (0, Ee.useState)(!1); return (0, Ee.useEffect)((() => { const e = t((() => { a(!0), r.actions.setWindowMinimized(!0) @@ -64039,19 +68006,19 @@ return () => { e(), i() } - }), [r.actions, t, n]), (0, _w.jsx)(gR.Provider, { + }), [r.actions, t, n]), (0, QI.jsx)(Qj.Provider, { value: { isMinimized: i }, children: e }) }; - var yR = class extends zE.l { + var Xj = class extends yP.l { constructor(e, t) { - super(), this.#I = void 0, this.#O = e, this.setOptions(t), this.bindMethods(), this.#C() + super(), this.#O = void 0, this.#I = e, this.setOptions(t), this.bindMethods(), this.#C() } - #O; #I; + #O; #A; #P; bindMethods() { @@ -64059,7 +68026,7 @@ } setOptions(e) { const t = this.options; - this.options = this.#O.defaultMutationOptions(e), (0, jE.VS)(t, this.options) || this.#O.getMutationCache().notify({ + this.options = this.#I.defaultMutationOptions(e), (0, gP.VS)(t, this.options) || this.#I.getMutationCache().notify({ type: "observerOptionsUpdated", mutation: this.#A, observer: this @@ -64072,13 +68039,13 @@ this.#C(), this.#T(e) } getCurrentResult() { - return this.#I + return this.#O } reset() { this.#A = void 0, this.#C(), this.#T() } mutate(e, t) { - return this.#P = t, this.#A?.removeObserver(this), this.#A = this.#O.getMutationCache().build(this.#O, this.options), this.#A.addObserver(this), this.#A.execute(e) + return this.#P = t, this.#A?.removeObserver(this), this.#A = this.#I.getMutationCache().build(this.#I, this.options), this.#A.addObserver(this), this.#A.execute(e) } #C() { const e = this.#A?.state ?? { @@ -64092,7 +68059,7 @@ variables: void 0, submittedAt: 0 }; - this.#I = { + this.#O = { ...e, isPending: "pending" === e.status, isSuccess: "success" === e.status, @@ -64103,30 +68070,30 @@ } } #T(e) { - FE.batch((() => { - this.#P && this.hasListeners() && ("success" === e?.type ? (this.#P.onSuccess?.(e.data, this.#I.variables, this.#I.context), this.#P.onSettled?.(e.data, null, this.#I.variables, this.#I.context)) : "error" === e?.type && (this.#P.onError?.(e.error, this.#I.variables, this.#I.context), this.#P.onSettled?.(void 0, e.error, this.#I.variables, this.#I.context))), this.listeners.forEach((e => { - e(this.#I) + vP.batch((() => { + this.#P && this.hasListeners() && ("success" === e?.type ? (this.#P.onSuccess?.(e.data, this.#O.variables, this.#O.context), this.#P.onSettled?.(e.data, null, this.#O.variables, this.#O.context)) : "error" === e?.type && (this.#P.onError?.(e.error, this.#O.variables, this.#O.context), this.#P.onSettled?.(void 0, e.error, this.#O.variables, this.#O.context))), this.listeners.forEach((e => { + e(this.#O) })) })) } }, - _R = n(3713); + Jj = n(3713); - function bR(e, t) { + function eM(e, t) { return "function" === typeof e ? e(...t) : !!e } - function xR(e, t) { - const n = (0, _R.NL)(t), - [r] = Ee.useState((() => new yR(n, e))); + function tM(e, t) { + const n = (0, Jj.NL)(t), + [r] = Ee.useState((() => new Xj(n, e))); Ee.useEffect((() => { r.setOptions(e) }), [r, e]); - const i = Ee.useSyncExternalStore(Ee.useCallback((e => r.subscribe(FE.batchCalls(e))), [r]), (() => r.getCurrentResult()), (() => r.getCurrentResult())), + const i = Ee.useSyncExternalStore(Ee.useCallback((e => r.subscribe(vP.batchCalls(e))), [r]), (() => r.getCurrentResult()), (() => r.getCurrentResult())), a = Ee.useCallback(((e, t) => { - r.mutate(e, t).catch(kR) + r.mutate(e, t).catch(nM) }), [r]); - if (i.error && bR(r.options.throwOnError, [i.error])) throw i.error; + if (i.error && eM(r.options.throwOnError, [i.error])) throw i.error; return { ...i, mutate: a, @@ -64134,14 +68101,14 @@ } } - function kR() {} - const wR = { + function nM() {} + const rM = { cancelOnUnmount: !0, cancelOnConditionChange: !0 }, - SR = (e, t, n, r = wR) => { + iM = (e, t, n, r = rM) => { const i = { - ...wR, + ...rM, ...r || {} }, a = (0, Ee.useRef)(), @@ -64169,11 +68136,11 @@ i.cancelOnUnmount && u() }), []), [s, u] }, - ER = ({ + aM = ({ location: e, delay: t }) => { - const n = bC(), + const n = eD(), r = (0, Ee.useRef)(n); return (0, Ee.useEffect)((() => { const n = setTimeout((() => { @@ -64182,23 +68149,23 @@ return () => clearTimeout(n) }), [e, t]), r.current }, - IR = [{ + oM = [{ id: "website", - action: () => window.open(yw.configuration.websiteUrl, "_blank") + action: () => window.open(YI.configuration.websiteUrl, "_blank") }, { id: "report_bug", - action: () => window.open(yw.configuration.issueCouncilUrl, "_blank") + action: () => window.open(YI.configuration.issueCouncilUrl, "_blank") }, { id: "spectrum", - action: () => window.open(yw.configuration.spectrumUrl, "_blank") + action: () => window.open(YI.configuration.spectrumUrl, "_blank") }, { id: "community_hub", - action: () => window.open(yw.configuration.communityHubUrl, "_blank") + action: () => window.open(YI.configuration.communityHubUrl, "_blank") }, { id: "support", - action: () => window.open(yw.configuration.supportUrl, "_blank") + action: () => window.open(YI.configuration.supportUrl, "_blank") }], - OR = () => { + sM = () => { const { t: e } = bt("tray"), { @@ -64206,24 +68173,24 @@ onMenuItemClicked: t, updateMenu: n } - } = Rw(), { + } = cC(), { isMinimized: r } = (() => { - const e = (0, Ee.useContext)(gR); + const e = (0, Ee.useContext)(Qj); if (!e) throw new Error("useTheme must be used within a ThemeProvider"); return e })(), { exitLauncher: i, logoutLauncher: a - } = pR((e => e.window.actions)), { + } = Wj((e => e.window.actions)), { identity: o - } = pR((e => e.user)), { + } = Wj((e => e.user)), { volume: s, actions: { mute: l, unmute: c } - } = pR((e => e.soundSystem)), u = 0 === s, d = !!o, p = (0, Ee.useMemo)((() => [...IR, { + } = Wj((e => e.soundSystem)), u = 0 === s, d = !!o, p = (0, Ee.useMemo)((() => [...oM, { id: "logout", action: a, visible: d @@ -64255,8 +68222,8 @@ return e }), [p, t]) }, - CR = () => { - const e = pR((e => e.autoUpdate)), + lM = () => { + const e = Wj((e => e.autoUpdate)), { onUpdateDownloaded: t, onQuitInstallError: n @@ -64264,7 +68231,7 @@ (0, Ee.useEffect)((() => t((t => e.actions.displayDialog(t)))), [e.actions, t]), (0, Ee.useEffect)((() => n((t => e.actions.displayDialog(t)))), [e.actions, n]) }; - function AR(e, t, n) { + function cM(e, t, n) { var r = this, i = (0, Ee.useRef)(null), a = (0, Ee.useRef)(0), @@ -64338,17 +68305,17 @@ return _ } - function PR(e, t, n) { + function uM(e, t, n) { var r = void 0 === n ? {} : n, i = r.leading, a = r.trailing; - return AR(e, t, { + return cM(e, t, { maxWait: t, leading: void 0 === i || i, trailing: void 0 === a || a }) } - const TR = () => { + const dM = () => { const [e, t] = (0, Ee.useState)(!1), [n, r] = (0, Ee.useState)([{ id: "backgroundVideoDisabled", title: "settings_accessibility_reduce_motion_background_video_toggle_title", @@ -64375,14 +68342,14 @@ dirty: null }), { t: o - } = bt("settingsPage"), s = pR((e => e.settings)), l = PR((async e => await s.actions.setAccessibilitySettingsToPersistentStore(e)), 400), c = (0, Ee.useCallback)((() => { + } = bt("settingsPage"), s = Wj((e => e.settings)), l = uM((async e => await s.actions.setAccessibilitySettingsToPersistentStore(e)), 400), c = (0, Ee.useCallback)((() => { const e = n.some((e => e.dirty)), t = i.dirty; return e || t }), [n, i]), u = (0, Ee.useCallback)((async () => { var e; const n = s.actions.getAccessibilitySettings(), - i = null !== (e = await s.actions.getAccessibilitySettingsFromPersistentStore()) && void 0 !== e ? e : DT, + i = null !== (e = await s.actions.getAccessibilitySettingsFromPersistentStore()) && void 0 !== e ? e : hj, o = await s.actions.getAnimationSystemSettings(); t(o.prefersReducedMotion), a((e => { const t = n.reduceMotion.syncWithSystem !== i.reduceMotion.syncWithSystem; @@ -64444,10 +68411,10 @@ }), [l]); return (0, Ee.useEffect)((() => { u() - }), []), (0, _w.jsxs)(jd, { + }), []), (0, QI.jsxs)(id, { title: o("settings_accessibility_reduce_motion_title"), description: o("settings_accessibility_reduce_motion_description"), - children: [(0, _w.jsx)(Fd, { + children: [(0, QI.jsx)(ad, { checked: i.value, type: "checkbox", onChange: ({ @@ -64458,11 +68425,11 @@ description: o(i.description), warning: i.dirty, children: o(i.title) - }), (0, _w.jsx)(cl, { + }), (0, QI.jsx)(Ps, { vertical: !0, gap: "100", className: "sol-u-padding-is-250", - children: n.map((e => (0, _w.jsx)(Fd, { + children: n.map((e => (0, QI.jsx)(ad, { type: "toggle", description: o(e.description), checked: e.value, @@ -64475,21 +68442,21 @@ warning: e.dirty, children: o(e.title) }, e.id))) - }), i.value && (0, _w.jsx)(Md, { + }), i.value && (0, QI.jsx)(rd, { className: "sol-u-padding-is-250", - children: (0, _w.jsx)(Nd, { + children: (0, QI.jsx)(nd, { type: "informative", children: o("settings_accessibility_reduce_motion_information_" + (e ? "enabled" : "disabled")) }) - }), c() && (0, _w.jsx)(Nd, { + }), c() && (0, QI.jsx)(nd, { className: "sol-u-margin-bs-150", type: "notice", - icon: wI, - children: (0, _w.jsx)(ft, { + icon: rT, + children: (0, QI.jsx)(ft, { i18nKey: "settings_accessibility_reduce_motion_information_restart_link_label", ns: "settingsPage", components: { - iclink: (0, _w.jsx)(zm, { + iclink: (0, QI.jsx)(am, { href: "#", onClick: () => s.actions.restartApp(), inherit: !0 @@ -64499,26 +68466,26 @@ })] }) }, - RR = () => { + pM = () => { const { t: e } = bt("settingsPage"); - return (0, _w.jsx)(cg, { + return (0, QI.jsx)(Am, { title: e("settings_accessibility_title"), - children: (0, _w.jsx)(TR, {}) + children: (0, QI.jsx)(dM, {}) }) }, - DR = () => { - const e = pR((e => e.dialog)), - t = pR((e => e.settings)), + hM = () => { + const e = Wj((e => e.dialog)), + t = Wj((e => e.settings)), { t: n } = bt("settingsPage"), [r, i] = (0, Ee.useState)(!1), [a, o] = (0, Ee.useState)(null); - SR((() => { + iM((() => { o(null), i(!1) - }), Nw, r), (0, Ee.useEffect)((() => { + }), pC, r), (0, Ee.useEffect)((() => { const e = window.launcherAPI.store.onClearStoreSuccess((() => { i(!0), o({ id: "isCacheCleared", @@ -64538,29 +68505,29 @@ l = (0, Ee.useCallback)((async () => { t.actions.debugGetLogs() }), [t.actions]); - return (0, _w.jsx)(jd, { + return (0, QI.jsx)(id, { title: n("settings_application_debug_tools_title"), - description: (0, _w.jsx)(ft, { + description: (0, QI.jsx)(ft, { i18nKey: "settings_application_debug_tools_description", ns: "settingsPage", components: { - iclink: (0, _w.jsx)(zm, { - href: yw.configuration.issueCouncilUrl, + iclink: (0, QI.jsx)(am, { + href: YI.configuration.issueCouncilUrl, label: n("app_header_menu_issue_council"), external: !0 }) } }), - children: (0, _w.jsxs)(Xd, { + children: (0, QI.jsxs)(_d, { horizontal: !0, success: a && a.message, label: n("settings_application_debug_tools_label"), labelType: "hidden", - children: [(0, _w.jsx)(el, { + children: [(0, QI.jsx)(xs, { onClick: () => s(), type: "button", children: n("settings_application_debug_tools_button_clear_cache") - }), (0, _w.jsx)(el, { + }), (0, QI.jsx)(xs, { onClick: () => l(), type: "button", children: n("settings_application_debug_tools_button_get_logs") @@ -64568,17 +68535,17 @@ }) }) }, - LR = () => { - const e = pR((e => e.settings)), + fM = () => { + const e = Wj((e => e.settings)), [t, n] = (0, Ee.useState)(e.appSettings.quitOnWindowClose), [r, i] = (0, Ee.useState)(!1), [a, o] = (0, Ee.useState)(null), { t: s } = bt("settingsPage"); - SR((() => { + iM((() => { o(null), i(!1) - }), Nw, r), (0, Ee.useEffect)((() => { + }), pC, r), (0, Ee.useEffect)((() => { const e = window.launcherAPI.store.onSetValueToStoreSuccess((e => { "application.quitOnWindowClose" === e.key && (i(!0), o({ id: "quitOnWindowClose", @@ -64594,17 +68561,17 @@ }), []), (0, Ee.useEffect)((() => { n(e.appSettings.quitOnWindowClose) }), [e.appSettings.quitOnWindowClose]); - const l = PR((async t => await e.actions.saveApplicationSettings({ + const l = uM((async t => await e.actions.saveApplicationSettings({ name: "quitOnWindowClose", value: t })), 400), c = (0, Ee.useCallback)((async e => { a && o(null), n(e), l(e) }), [l, a]); - return (0, _w.jsx)(jd, { + return (0, QI.jsx)(id, { title: s("settings_application_window_behavior_title"), description: s("settings_application_window_behavior_description"), - children: (0, _w.jsx)(Fd, { + children: (0, QI.jsx)(ad, { type: "toggle", checked: t, onChange: ({ @@ -64617,28 +68584,28 @@ }) }) }, - NR = () => { + mM = () => { const { t: e } = bt("settingsPage"); - return (0, _w.jsxs)(cg, { + return (0, QI.jsxs)(Am, { title: e("settings_application_title"), - children: [(0, _w.jsx)(LR, {}), (0, _w.jsx)($d, { + children: [(0, QI.jsx)(fM, {}), (0, QI.jsx)(pd, { spacing: "250" - }), (0, _w.jsx)(DR, {})] + }), (0, QI.jsx)(hM, {})] }) }, - MR = () => { - const e = pR((e => e.settings)), + gM = () => { + const e = Wj((e => e.settings)), [t, n] = (0, Ee.useState)(e.appSettings.isDiscoverDone), [r, i] = (0, Ee.useState)(!1), [a, o] = (0, Ee.useState)(null), { t: s } = bt("settingsPage"); - SR((() => { + iM((() => { o(null), i(!1) - }), Nw, r), (0, Ee.useEffect)((() => { + }), pC, r), (0, Ee.useEffect)((() => { const e = window.launcherAPI.store.onSetValueToStoreSuccess((e => { "application.isDiscoverDone" === e.key && (i(!0), o({ id: "isDiscoverDone", @@ -64654,19 +68621,19 @@ }), []), (0, Ee.useEffect)((() => { n(e.appSettings.isDiscoverDone) }), [e.appSettings.isDiscoverDone]); - const l = PR((async t => await e.actions.saveApplicationSettings({ + const l = uM((async t => await e.actions.saveApplicationSettings({ name: "isDiscoverDone", value: t })), 400), c = (0, Ee.useCallback)((async e => { a && o(null), n(e), l(e) }), [l, a]); - return (0, _w.jsx)(cg, { + return (0, QI.jsx)(Am, { title: s("settings_dev_title"), - children: (0, _w.jsx)(jd, { + children: (0, QI.jsx)(id, { title: s("settings_application_discover_behavior_title"), description: s("settings_application_discover_behavior_description"), - children: (0, _w.jsx)(Fd, { + children: (0, QI.jsx)(ad, { type: "toggle", checked: t, onChange: ({ @@ -64680,10 +68647,10 @@ }) }) }, - jR = () => { + vM = () => { const { t: e - } = bt("settingsPage"), t = pR((e => e.settings)), [n, r] = (0, Ee.useState)({ + } = bt("settingsPage"), t = Wj((e => e.settings)), [n, r] = (0, Ee.useState)({ state: !1 }), [i, a] = (0, Ee.useState)(t.appSettings.download.concurrentTransfers), { value: o, @@ -64704,22 +68671,22 @@ setValue: i } })({ - initialValue: mR(t.appSettings.download.maximumDownloadBandwidth), + initialValue: Yj(t.appSettings.download.maximumDownloadBandwidth), cb: () => { - mR(t.appSettings.download.maximumDownloadBandwidth) !== o && c(o) + Yj(t.appSettings.download.maximumDownloadBandwidth) !== o && c(o) } }); - SR((() => { + iM((() => { r({ state: !1 }) - }), Nw, n.state); + }), pC, n.state); const l = (0, Ee.useCallback)((async e => { const n = parseInt(e, 10); - a(n), t.actions.setDownloadSettings(yw.InstallerOptions.ConcurrentTransfers, n) + a(n), t.actions.setDownloadSettings(YI.InstallerOptions.ConcurrentTransfers, n) }), [t.actions]), c = (0, Ee.useCallback)((async e => { - s(e), t.actions.setDownloadSettings(yw.InstallerOptions.MaximumDownloadBandwidth, 1e3 * e) + s(e), t.actions.setDownloadSettings(YI.InstallerOptions.MaximumDownloadBandwidth, 1e3 * e) }), [s, t.actions]); return (0, Ee.useEffect)((() => { const e = window.launcherAPI.installer.onSetDownloadOptionsSuccess((e => { @@ -64731,30 +68698,30 @@ return () => { e() } - }), [t.actions]), (0, _w.jsx)(cg, { + }), [t.actions]), (0, QI.jsx)(Am, { title: e("settings_download_title"), - children: (0, _w.jsxs)(jd, { + children: (0, QI.jsxs)(id, { title: e("settings_download_main_title"), description: e("settings_download_main_content"), - children: [(0, _w.jsx)(Xd, { + children: [(0, QI.jsx)(_d, { horizontal: !0, label: e("settings_download_concurrent_title"), - success: n.state && n.option === yw.InstallerOptions.ConcurrentTransfers ? e("settings_common_saved") : null, + success: n.state && n.option === YI.InstallerOptions.ConcurrentTransfers ? e("settings_common_saved") : null, help: e("settings_download_concurrent_desc"), - children: (0, _w.jsx)(lg, { + children: (0, QI.jsx)(Cm, { onValueChange: e => l(e), value: i.toString(), - children: RT.map((e => (0, _w.jsx)(sg, { + children: pj.map((e => (0, QI.jsx)(Im, { value: e.value.toString(), label: e.label }, e.label))) }) - }), (0, _w.jsx)(Xd, { + }), (0, QI.jsx)(_d, { horizontal: !0, label: e("settings_download_speed_title"), - success: n.state && n.option === yw.InstallerOptions.MaximumDownloadBandwidth ? e("settings_common_saved") : null, + success: n.state && n.option === YI.InstallerOptions.MaximumDownloadBandwidth ? e("settings_common_saved") : null, help: e("settings_download_speed_desc"), - children: (0, _w.jsx)(Fm, { + children: (0, QI.jsx)(im, { name: "speed-limit", type: "number", placeholder: e("settings_download_speed_unlimited"), @@ -64766,16 +68733,16 @@ }) }) }; - var FR = class extends zE.l { + var yM = class extends yP.l { constructor(e, t) { - super(), this.#R = void 0, this.#D = void 0, this.#I = void 0, this.#L = new Set, this.#O = e, this.options = t, this.#N = null, this.bindMethods(), this.setOptions(t) + super(), this.#R = void 0, this.#D = void 0, this.#O = void 0, this.#L = new Set, this.#I = e, this.options = t, this.#N = null, this.bindMethods(), this.setOptions(t) } - #O; + #I; #R; #D; - #I; - #M; + #O; #j; + #M; #N; #F; #z; @@ -64788,44 +68755,44 @@ this.refetch = this.refetch.bind(this) } onSubscribe() { - 1 === this.listeners.size && (this.#R.addObserver(this), zR(this.#R, this.options) ? this.#W() : this.updateResult(), this.#$()) + 1 === this.listeners.size && (this.#R.addObserver(this), _M(this.#R, this.options) ? this.#$() : this.updateResult(), this.#q()) } onUnsubscribe() { this.hasListeners() || this.destroy() } shouldFetchOnReconnect() { - return VR(this.#R, this.options, this.options.refetchOnReconnect) + return bM(this.#R, this.options, this.options.refetchOnReconnect) } shouldFetchOnWindowFocus() { - return VR(this.#R, this.options, this.options.refetchOnWindowFocus) + return bM(this.#R, this.options, this.options.refetchOnWindowFocus) } destroy() { - this.listeners = new Set, this.#q(), this.#H(), this.#R.removeObserver(this) + this.listeners = new Set, this.#W(), this.#H(), this.#R.removeObserver(this) } setOptions(e, t) { const n = this.options, r = this.#R; - if (this.options = this.#O.defaultQueryOptions(e), (0, jE.VS)(n, this.options) || this.#O.getQueryCache().notify({ + if (this.options = this.#I.defaultQueryOptions(e), (0, gP.VS)(n, this.options) || this.#I.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"); this.options.queryKey || (this.options.queryKey = n.queryKey), this.#K(); const i = this.hasListeners(); - i && UR(this.#R, r, this.options, n) && this.#W(), this.updateResult(t), !i || this.#R === r && this.options.enabled === n.enabled && this.options.staleTime === n.staleTime || this.#Y(); + i && xM(this.#R, r, this.options, n) && this.#$(), this.updateResult(t), !i || this.#R === r && this.options.enabled === n.enabled && this.options.staleTime === n.staleTime || this.#Y(); const a = this.#Q(); !i || this.#R === r && this.options.enabled === n.enabled && a === this.#G || this.#Z(a) } getOptimisticResult(e) { - const t = this.#O.getQueryCache().build(this.#O, e), + const t = this.#I.getQueryCache().build(this.#I, e), n = this.createResult(t, e); return function(e, t) { - if (!(0, jE.VS)(e.getCurrentResult(), t)) return !0; + if (!(0, gP.VS)(e.getCurrentResult(), t)) return !0; return !1 - }(this, n) && (this.#I = n, this.#j = this.options, this.#M = this.#R.state), n + }(this, n) && (this.#O = n, this.#M = this.options, this.#j = this.#R.state), n } getCurrentResult() { - return this.#I + return this.#O } trackResult(e) { const t = {}; @@ -64848,40 +68815,40 @@ }) } fetchOptimistic(e) { - const t = this.#O.defaultQueryOptions(e), - n = this.#O.getQueryCache().build(this.#O, t); + const t = this.#I.defaultQueryOptions(e), + n = this.#I.getQueryCache().build(this.#I, t); return n.isFetchingOptimistic = !0, n.fetch().then((() => this.createResult(n, t))) } fetch(e) { - return this.#W({ + return this.#$({ ...e, cancelRefetch: e.cancelRefetch ?? !0 - }).then((() => (this.updateResult(), this.#I))) + }).then((() => (this.updateResult(), this.#O))) } - #W(e) { + #$(e) { this.#K(); let t = this.#R.fetch(this.options, e); - return e?.throwOnError || (t = t.catch(jE.ZT)), t + return e?.throwOnError || (t = t.catch(gP.ZT)), t } #Y() { - if (this.#q(), jE.sk || this.#I.isStale || !(0, jE.PN)(this.options.staleTime)) return; - const e = (0, jE.Kp)(this.#I.dataUpdatedAt, this.options.staleTime) + 1; + if (this.#W(), gP.sk || this.#O.isStale || !(0, gP.PN)(this.options.staleTime)) return; + const e = (0, gP.Kp)(this.#O.dataUpdatedAt, this.options.staleTime) + 1; this.#U = setTimeout((() => { - this.#I.isStale || this.updateResult() + this.#O.isStale || this.updateResult() }), e) } #Q() { return ("function" === typeof this.options.refetchInterval ? this.options.refetchInterval(this.#R) : this.options.refetchInterval) ?? !1 } #Z(e) { - this.#H(), this.#G = e, !jE.sk && !1 !== this.options.enabled && (0, jE.PN)(this.#G) && 0 !== this.#G && (this.#B = setInterval((() => { - (this.options.refetchIntervalInBackground || VE.isFocused()) && this.#W() + this.#H(), this.#G = e, !gP.sk && !1 !== this.options.enabled && (0, gP.PN)(this.#G) && 0 !== this.#G && (this.#B = setInterval((() => { + (this.options.refetchIntervalInBackground || _P.isFocused()) && this.#$() }), this.#G)) } - #$() { + #q() { this.#Y(), this.#Z(this.#Q()) } - #q() { + #W() { this.#U && (clearTimeout(this.#U), this.#U = void 0) } #H() { @@ -64890,9 +68857,9 @@ createResult(e, t) { const n = this.#R, r = this.options, - i = this.#I, - a = this.#M, - o = this.#j, + i = this.#O, + a = this.#j, + o = this.#M, s = e !== n ? e.state : this.#D, { state: l @@ -64906,14 +68873,14 @@ f = !1; if (t._optimisticResults) { const i = this.hasListeners(), - a = !i && zR(e, t), - o = i && UR(e, n, t, r); - (a || o) && (p = GE(e.options.networkMode) ? "fetching" : "paused", l.dataUpdatedAt || (h = "pending")), "isRestoring" === t._optimisticResults && (p = "idle") + a = !i && _M(e, t), + o = i && xM(e, n, t, r); + (a || o) && (p = kP(e.options.networkMode) ? "fetching" : "paused", l.dataUpdatedAt || (h = "pending")), "isRestoring" === t._optimisticResults && (p = "idle") } if (t.select && "undefined" !== typeof l.data) if (i && l.data === a?.data && t.select === this.#F) c = this.#z; else try { - this.#F = t.select, c = t.select(l.data), c = (0, jE.oE)(i?.data, c, t), this.#z = c, this.#N = null + this.#F = t.select, c = t.select(l.data), c = (0, gP.oE)(i?.data, c, t), this.#z = c, this.#N = null } catch (_) { this.#N = _ } else c = l.data; @@ -64925,7 +68892,7 @@ } catch (_) { this.#N = _ } - "undefined" !== typeof e && (h = "success", c = (0, jE.oE)(i?.data, e, t), f = !0) + "undefined" !== typeof e && (h = "success", c = (0, gP.oE)(i?.data, e, t), f = !0) } this.#N && (u = this.#N, c = this.#z, d = Date.now(), h = "error"); const m = "fetching" === p, @@ -64955,15 +68922,15 @@ isPaused: "paused" === p, isPlaceholderData: f, isRefetchError: v && 0 !== l.dataUpdatedAt, - isStale: BR(e, t), + isStale: kM(e, t), refetch: this.refetch } } updateResult(e) { - const t = this.#I, + const t = this.#O, n = this.createResult(this.#R, this.options); - if (this.#M = this.#R.state, this.#j = this.options, (0, jE.VS)(n, t)) return; - void 0 !== this.#M.data && (this.#V = this.#R), this.#I = n; + if (this.#j = this.#R.state, this.#M = this.options, (0, gP.VS)(n, t)) return; + void 0 !== this.#j.data && (this.#V = this.#R), this.#O = n; const r = {}; !1 !== e?.listeners && (() => { if (!t) return !0; @@ -64972,9 +68939,9 @@ } = this.options, n = "function" === typeof e ? e() : e; if ("all" === n || !n && !this.#L.size) return !0; const r = new Set(n ?? this.#L); - return this.options.throwOnError && r.add("error"), Object.keys(this.#I).some((e => { + return this.options.throwOnError && r.add("error"), Object.keys(this.#O).some((e => { const n = e; - return this.#I[n] !== t[n] && r.has(n) + return this.#O[n] !== t[n] && r.has(n) })) })() && (r.listeners = !0), this.#T({ ...r, @@ -64982,19 +68949,19 @@ }) } #K() { - const e = this.#O.getQueryCache().build(this.#O, this.options); + const e = this.#I.getQueryCache().build(this.#I, 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)) } onQueryUpdate() { - this.updateResult(), this.hasListeners() && this.#$() + this.updateResult(), this.hasListeners() && this.#q() } #T(e) { - FE.batch((() => { + vP.batch((() => { e.listeners && this.listeners.forEach((e => { - e(this.#I) - })), this.#O.getQueryCache().notify({ + e(this.#O) + })), this.#I.getQueryCache().notify({ query: this.#R, type: "observerResultsUpdated" }) @@ -65002,29 +68969,29 @@ } }; - function zR(e, t) { + function _M(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 && VR(e, t, t.refetchOnMount) + }(e, t) || e.state.dataUpdatedAt > 0 && bM(e, t, t.refetchOnMount) } - function VR(e, t, n) { + function bM(e, t, n) { if (!1 !== t.enabled) { const r = "function" === typeof n ? n(e) : n; - return "always" === r || !1 !== r && BR(e, t) + return "always" === r || !1 !== r && kM(e, t) } return !1 } - function UR(e, t, n, r) { - return !1 !== n.enabled && (e !== t || !1 === r.enabled) && (!n.suspense || "error" !== e.state.status) && BR(e, n) + function xM(e, t, n, r) { + return !1 !== n.enabled && (e !== t || !1 === r.enabled) && (!n.suspense || "error" !== e.state.status) && kM(e, n) } - function BR(e, t) { + function kM(e, t) { return e.isStaleByTime(t.staleTime) } - function GR() { + function wM() { let e = !1; return { clearReset: () => { @@ -65036,14 +69003,14 @@ isReset: () => e } } - var WR = Ee.createContext(GR()), - $R = Ee.createContext(!1); - $R.Provider; + var SM = Ee.createContext(wM()), + EM = Ee.createContext(!1); + EM.Provider; - function qR(e, t, n) { - const r = (0, _R.NL)(n), - i = Ee.useContext($R), - a = Ee.useContext(WR), + function OM(e, t, n) { + const r = (0, Jj.NL)(n), + i = Ee.useContext(EM), + a = Ee.useContext(SM), o = r.defaultQueryOptions(e); o._optimisticResults = i ? "isRestoring" : "optimistic", (e => { e.suspense && "number" !== typeof e.staleTime && (e.staleTime = 1e3) @@ -65056,7 +69023,7 @@ })(a); const [s] = Ee.useState((() => new t(r, o))), l = s.getOptimisticResult(o); if (Ee.useSyncExternalStore(Ee.useCallback((e => { - const t = i ? () => {} : s.subscribe(FE.batchCalls(e)); + const t = i ? () => {} : s.subscribe(vP.batchCalls(e)); return s.updateResult(), t }), [s, i]), (() => s.getCurrentResult()), (() => s.getCurrentResult())), Ee.useEffect((() => { s.setOptions(o, { @@ -65070,7 +69037,7 @@ errorResetBoundary: t, throwOnError: n, query: r - }) => e.isError && !t.isReset() && !e.isFetching && bR(n, [e.error, r]))({ + }) => e.isError && !t.isReset() && !e.isFetching && eM(n, [e.error, r]))({ result: l, errorResetBoundary: a, throwOnError: o.throwOnError, @@ -65079,33 +69046,33 @@ return o.notifyOnChangeProps ? l : s.trackResult(l) } - function HR(e, t) { - return qR(e, FR, t) + function IM(e, t) { + return OM(e, yM, t) } - let KR; + let CM; ! function(e) { e.HOSTNAME = "hostname", e.PORT = "port", e.EXECUTABLE = "executable", e.LAUNCHOPTIONS = "launchOptions", e.EACSANDBOX = "eacSandbox" - }(KR || (KR = {})); - const YR = e => { + }(CM || (CM = {})); + const AM = e => { var t, n, r, i, a, o; const { t: s - } = bt("settingsPage"), l = pR((e => e.settings)), c = e.gameSettings, u = { - [KR.HOSTNAME]: null !== (t = c.hostname) && void 0 !== t ? t : "", - [KR.PORT]: null !== (n = c.port) && void 0 !== n ? n : null, - [KR.EXECUTABLE]: null !== (r = c.executable) && void 0 !== r ? r : "", - [KR.LAUNCHOPTIONS]: null !== (i = c.launchOptions) && void 0 !== i ? i : "", - [KR.EACSANDBOX]: null !== (a = c.eacSandbox) && void 0 !== a ? a : null + } = bt("settingsPage"), l = Wj((e => e.settings)), c = e.gameSettings, u = { + [CM.HOSTNAME]: null !== (t = c.hostname) && void 0 !== t ? t : "", + [CM.PORT]: null !== (n = c.port) && void 0 !== n ? n : null, + [CM.EXECUTABLE]: null !== (r = c.executable) && void 0 !== r ? r : "", + [CM.LAUNCHOPTIONS]: null !== (i = c.launchOptions) && void 0 !== i ? i : "", + [CM.EACSANDBOX]: null !== (a = c.eacSandbox) && void 0 !== a ? a : null }, [d, p] = (0, Ee.useState)(!1), [h, f] = (0, Ee.useState)(null), [m, g] = (0, Ee.useState)(u), v = null !== (o = (() => { const { data: e - } = HR(NE(c.gameId, c.channelId)); + } = IM(fP(c.gameId, c.channelId)); return e })()) && void 0 !== o ? o : {}; - SR((() => { + iM((() => { f(null), p(!1) - }), Nw, d); - const y = PR((async (e, t) => { + }), pC, d); + const y = uM((async (e, t) => { const n = Object.fromEntries(Object.entries({ ...m, [e]: b(e, t) @@ -65130,30 +69097,30 @@ }), [m, y, h]), b = (e, t) => { var n; - return e === KR.PORT ? "" === t ? null : parseInt(t) : e === KR.EACSANDBOX ? !1 === t ? null : t : e !== KR.LAUNCHOPTIONS ? null !== (n = t.trim()) && void 0 !== n ? n : "" : null !== t && void 0 !== t ? t : "" + return e === CM.PORT ? "" === t ? null : parseInt(t) : e === CM.EACSANDBOX ? !1 === t ? null : t : e !== CM.LAUNCHOPTIONS ? null !== (n = t.trim()) && void 0 !== n ? n : "" : null !== t && void 0 !== t ? t : "" }; - return (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsx)($d, { + return (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsx)(pd, { spacing: "250" - }), (0, _w.jsxs)(jd, { + }), (0, QI.jsxs)(id, { title: s("settings_games_launch_command_line"), description: s("settings_games_launch_disclaimer"), - children: [(0, _w.jsx)(Xd, { + children: [(0, QI.jsx)(_d, { horizontal: !0, label: s("settings_games_launch_hostname"), necessityIndicator: "Optional", - help: v.universeHost ? (0, _w.jsxs)(Ys, { + help: v.universeHost ? (0, QI.jsxs)(gs, { as: "span", variant: "body-m-bold", - children: [s("settings_games_launch_default"), " ", (0, _w.jsx)(Ys, { + children: [s("settings_games_launch_default"), " ", (0, QI.jsx)(gs, { as: "span", children: v.universeHost })] }) : void 0, - success: h && h.id === KR.HOSTNAME ? s("settings_common_saved") : void 0, - children: (0, _w.jsx)(Fm, { + success: h && h.id === CM.HOSTNAME ? s("settings_common_saved") : void 0, + children: (0, QI.jsx)(im, { value: null === m || void 0 === m ? void 0 : m.hostname, - name: KR.HOSTNAME, + name: CM.HOSTNAME, onChange: ({ target: { name: e, @@ -65161,22 +69128,22 @@ } }) => _(e, t) }) - }), (0, _w.jsx)(Xd, { + }), (0, QI.jsx)(_d, { horizontal: !0, label: s("settings_games_launch_port"), necessityIndicator: "Optional", - help: v.universePort ? (0, _w.jsxs)(Ys, { + help: v.universePort ? (0, QI.jsxs)(gs, { as: "span", variant: "body-m-bold", - children: [s("settings_games_launch_default"), " ", (0, _w.jsx)(Ys, { + children: [s("settings_games_launch_default"), " ", (0, QI.jsx)(gs, { as: "span", children: v.universePort })] }) : void 0, - success: h && h.id === KR.PORT ? s("settings_common_saved") : void 0, - children: (0, _w.jsx)(Fm, { + success: h && h.id === CM.PORT ? s("settings_common_saved") : void 0, + children: (0, QI.jsx)(im, { value: null === (null === m || void 0 === m ? void 0 : m.port) ? "" : null === m || void 0 === m ? void 0 : m.port, - name: KR.PORT, + name: CM.PORT, type: "number", onChange: ({ target: { @@ -65185,22 +69152,22 @@ } }) => _(e, t) }) - }), (0, _w.jsx)(Xd, { + }), (0, QI.jsx)(_d, { horizontal: !0, label: s("settings_games_launch_executable"), necessityIndicator: "Optional", - help: v.executable ? (0, _w.jsxs)(Ys, { + help: v.executable ? (0, QI.jsxs)(gs, { as: "span", variant: "body-m-bold", - children: [s("settings_games_launch_default"), " ", (0, _w.jsx)(Ys, { + children: [s("settings_games_launch_default"), " ", (0, QI.jsx)(gs, { as: "span", children: v.executable })] }) : void 0, - success: h && h.id === KR.EXECUTABLE ? s("settings_common_saved") : void 0, - children: (0, _w.jsx)(Fm, { + success: h && h.id === CM.EXECUTABLE ? s("settings_common_saved") : void 0, + children: (0, QI.jsx)(im, { value: null === m || void 0 === m ? void 0 : m.executable, - name: KR.EXECUTABLE, + name: CM.EXECUTABLE, onChange: ({ target: { name: e, @@ -65208,25 +69175,25 @@ } }) => _(e, t) }) - }), (0, _w.jsx)(Xd, { + }), (0, QI.jsx)(_d, { horizontal: !0, label: s("settings_games_launch_launch_options"), necessityIndicator: "Optional", - help: v.launchOptions ? (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsx)(Ys, { + help: v.launchOptions ? (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsx)(gs, { as: "span", variant: "body-m-bold", children: s("settings_games_launch_default") - }), (0, _w.jsx)("br", {}), (0, _w.jsx)(Ys, { + }), (0, QI.jsx)("br", {}), (0, QI.jsx)(gs, { as: "span", children: v.launchOptions })] }) : void 0, - success: h && h.id === KR.LAUNCHOPTIONS ? s("settings_common_saved") : null, - children: (0, _w.jsx)(Fm, { + success: h && h.id === CM.LAUNCHOPTIONS ? s("settings_common_saved") : null, + children: (0, QI.jsx)(im, { as: "textarea", value: null === m || void 0 === m ? void 0 : m.launchOptions, - name: KR.LAUNCHOPTIONS, + name: CM.LAUNCHOPTIONS, onChange: ({ target: { name: e, @@ -65235,46 +69202,46 @@ }) => _(e, t) }) })] - }), (0, _w.jsx)($d, { + }), (0, QI.jsx)(pd, { spacing: "250" - }), (0, _w.jsxs)(jd, { + }), (0, QI.jsxs)(id, { title: s("settings_games_launch_eac_title"), description: s("settings_games_launch_eac_description"), - children: [(0, _w.jsx)(Ad, { + children: [(0, QI.jsx)(Qu, { type: "informative", children: s("settings_games_launch_eac_informative") - }), (0, _w.jsx)(Fd, { + }), (0, QI.jsx)(ad, { type: "toggle", checked: null !== (null === m || void 0 === m ? void 0 : m.eacSandbox), disabled: !(null != (null === m || void 0 === m ? void 0 : m.executable) && "" !== (null === m || void 0 === m ? void 0 : m.executable)) && (null != (null === m || void 0 === m ? void 0 : m.eacSandbox) && g({ ...m, - [KR.EACSANDBOX]: null + [CM.EACSANDBOX]: null }), !0), onChange: ({ target: { checked: e } - }) => _(KR.EACSANDBOX, e), - success: h && h.id === KR.EACSANDBOX ? s("settings_common_saved") : null, + }) => _(CM.EACSANDBOX, e), + success: h && h.id === CM.EACSANDBOX ? s("settings_common_saved") : null, children: s("settings_games_launch_eac_disable") })] })] }) }, - QR = ({ + PM = ({ open: e = !1, ...t }) => { var n; const { t: r - } = bt("settingsPage"), i = pR((e => e.application)), a = pR((e => e.installer)), o = pR((e => e.library)), s = pR((e => e.settings)), l = pR((e => e.user)), c = (0, Ee.useMemo)((() => ({ + } = bt("settingsPage"), i = Wj((e => e.application)), a = Wj((e => e.installer)), o = Wj((e => e.library)), s = Wj((e => e.settings)), l = Wj((e => e.user)), c = (0, Ee.useMemo)((() => ({ platformId: t.item.platformId, gameId: t.item.gameId, gameName: t.item.gameName, channelId: t.item.channelId, channelName: t.item.channelName - })), [t]), u = (0, Ee.useMemo)((() => IE(a.installations, c)), [a, c]), d = (0, Ee.useMemo)((() => OE(a.uninstallations, c)), [a, c]), p = (0, Ee.useCallback)((e => { + })), [t]), u = (0, Ee.useMemo)((() => aP(a.installations, c)), [a, c]), d = (0, Ee.useMemo)((() => oP(a.uninstallations, c)), [a, c]), p = (0, Ee.useCallback)((e => { const t = o.availableGames.find((t => t.id === e.gameId)); return null === t || void 0 === t ? void 0 : t.logo }), [o.availableGames]), { @@ -65282,94 +69249,100 @@ isInstalling: f, isUninstalling: m, isUserPriviled: g, - isVerifying: v + isVerifying: v, + isPaused: y } = (0, Ee.useMemo)((() => { var e, t; - const n = o.actions.getInstalledChannel(c); + const n = o.actions.getInstalledChannel(c), + r = (null === n || void 0 === n ? void 0 : n.status) === YI.GameChannelStatus.INSTALLED || (null === n || void 0 === n ? void 0 : n.status) === YI.GameChannelStatus.UPDATE_AVAILABLE || (null === n || void 0 === n ? void 0 : n.status) === YI.GameChannelStatus.RUNNING, + i = u && u.type === YI.InstallationType.VERIFY && u.status !== YI.InstallationStatus.COMPLETED, + a = u && u.type === YI.InstallationType.INSTALL && u.status !== YI.InstallationStatus.COMPLETED, + s = u && u.status === YI.InstallationStatus.PAUSED; return { - isGameChannelInstalled: (null === n || void 0 === n ? void 0 : n.status) === yw.GameChannelStatus.INSTALLED || (null === n || void 0 === n ? void 0 : n.status) === yw.GameChannelStatus.UPDATE_AVAILABLE || (null === n || void 0 === n ? void 0 : n.status) === yw.GameChannelStatus.RUNNING, - isVerifying: u && u.type === yw.InstallationType.VERIFY && u.status !== yw.InstallationStatus.COMPLETED, - isInstalling: u && u.type === yw.InstallationType.INSTALL && u.status !== yw.InstallationStatus.COMPLETED, + isGameChannelInstalled: r, + isVerifying: i, + isInstalling: a, isUninstalling: void 0 !== d, - isUserPriviled: null !== (e = null === (t = l.identity) || void 0 === t ? void 0 : t.privileged) && void 0 !== e && e + isUserPriviled: null !== (e = null === (t = l.identity) || void 0 === t ? void 0 : t.privileged) && void 0 !== e && e, + isPaused: s } - }), [c, u, o, d, null === (n = l.identity) || void 0 === n ? void 0 : n.privileged]), y = i.actions.isOffline(), { - verifyButtonLabel: _, - installButtonLabel: b, - uninstallButtonLabel: x + }), [c, u, o, d, null === (n = l.identity) || void 0 === n ? void 0 : n.privileged]), _ = i.actions.isOffline(), { + verifyButtonLabel: b, + installButtonLabel: x, + uninstallButtonLabel: k } = (0, Ee.useMemo)((() => ({ - verifyButtonLabel: v && (null === u || void 0 === u ? void 0 : u.status) === yw.InstallationStatus.PAUSED ? r("settings_games_game_files_process_paused") : r(v ? "settings_games_game_files_verifying_files" : "settings_games_game_files_verify_files"), - installButtonLabel: f && (null === u || void 0 === u ? void 0 : u.status) === yw.InstallationStatus.PAUSED ? r("settings_games_game_files_process_paused") : r(f ? "settings_games_game_files_installing_files" : "settings_games_game_files_install_files"), + verifyButtonLabel: v && (null === u || void 0 === u ? void 0 : u.status) === YI.InstallationStatus.PAUSED ? r("settings_games_game_files_process_paused") : r(v ? "settings_games_game_files_verifying_files" : "settings_games_game_files_verify_files"), + installButtonLabel: f && (null === u || void 0 === u ? void 0 : u.status) === YI.InstallationStatus.PAUSED ? r("settings_games_game_files_process_paused") : r(f ? "settings_games_game_files_installing_files" : "settings_games_game_files_install_files"), uninstallButtonLabel: r(m ? "settings_games_game_files_uninstalling_files" : "settings_games_game_files_uninstall_files") - })), [null === u || void 0 === u ? void 0 : u.status, f, m, v, r]), k = (0, Ee.useMemo)((() => v && (null === u || void 0 === u ? void 0 : u.status) === yw.InstallationStatus.PAUSED ? hI : v ? MI : void 0), [null === u || void 0 === u ? void 0 : u.status, v]), w = (0, Ee.useCallback)((e => u && u.type === e ? i.actions.setDownloadPopoverOpened(!0) : a.actions.addInstallationToQueue(c, e)), [i.actions, c, u, a.actions]), S = (0, Ee.useCallback)((() => a.actions.startUninstallation(t.item)), [a.actions, t.item]); - return (0, _w.jsxs)(sl, { - prefix: (0, _w.jsx)("img", { + })), [null === u || void 0 === u ? void 0 : u.status, f, m, v, r]), w = (0, Ee.useMemo)((() => v && y || f && y ? HP : v || f ? gT : void 0), [y, v, f]), S = (0, Ee.useCallback)((e => u && u.type === e ? i.actions.setDownloadPopoverOpened(!0) : a.actions.addInstallationToQueue(c, e)), [i.actions, c, u, a.actions]), E = (0, Ee.useCallback)((() => a.actions.startUninstallation(t.item)), [a.actions, t.item]); + return (0, QI.jsxs)(Cs, { + prefix: (0, QI.jsx)("img", { src: p(c), alt: "", width: "32" }), open: e, title: `${c.gameName} - ${c.channelId}`, - children: [(0, _w.jsx)(jd, { + children: [(0, QI.jsx)(id, { title: r("settings_games_installation_path_title"), - description: (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsx)("span", { + description: (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsx)("span", { className: "sol-u-color-foreground", - children: Lw(s.library.defaultLibraryFolder) + children: dC(s.library.defaultLibraryFolder) }), t.item.installDir, "\\", c.channelId] }) - }), (0, _w.jsx)($d, { + }), (0, QI.jsx)(pd, { spacing: "250" - }), (0, _w.jsx)(jd, { + }), (0, QI.jsx)(id, { title: r("settings_games_game_files_title"), description: r("settings_games_game_files_description"), - children: (0, _w.jsxs)(cl, { + children: (0, QI.jsxs)(Ps, { vertical: !1, gap: "100", - children: [(0, _w.jsx)(el, { - onClick: () => w(yw.InstallationType.VERIFY), - disabled: i.isGameRunning || f || m || y, + children: [(0, QI.jsx)(xs, { + onClick: () => S(YI.InstallationType.VERIFY), + disabled: i.isGameRunning || f || m || _, loading: v, - loadingIcon: k, - children: _ - }), !h && (0, _w.jsx)(el, { - onClick: () => w(yw.InstallationType.INSTALL), - disabled: i.isGameRunning || v || y, - loading: f, - loadingIcon: k, - icon: f ? void 0 : gI, + loadingIcon: w, children: b - }), h && (0, _w.jsx)(el, { + }), !h && (0, QI.jsx)(xs, { + onClick: () => S(YI.InstallationType.INSTALL), + disabled: i.isGameRunning || v || _, + loading: f, + loadingIcon: w, + icon: f ? void 0 : QP, + children: x + }), h && (0, QI.jsx)(xs, { variant: "plain", color: "negative", - onClick: S, + onClick: E, disabled: i.isGameRunning || v, loading: m, - loadingIcon: k, - children: x + loadingIcon: w, + children: k })] }) - }), g ? (0, _w.jsx)(YR, { + }), g ? (0, QI.jsx)(AM, { gameSettings: t.item }) : null] }, `${c.gameName}${c.channelId}`) }, - ZR = () => { + TM = () => { const { t: e - } = bt("settingsPage"), [t, n] = (0, Ee.useState)(!1), [r, i] = (0, Ee.useState)(null), a = pR((e => e.settings)), o = pR((e => e.installer)), s = pR((e => e.application)), { + } = bt("settingsPage"), [t, n] = (0, Ee.useState)(!1), [r, i] = (0, Ee.useState)(null), a = Wj((e => e.settings)), o = Wj((e => e.installer)), s = Wj((e => e.application)), { gameId: l, channelId: c - } = kC(); - SR((() => { + } = nD(); + iM((() => { i(null), n(!1) - }), Nw, t); + }), pC, t); const { items: u } = (0, Ee.useMemo)((() => { const e = a.gamesSettings.find((e => e.gameId === l && e.channelId === c)); return { - items: a.gamesSettings.map((t => (0, _w.jsx)(QR, { + items: a.gamesSettings.map((t => (0, QI.jsx)(PM, { item: t, open: t === e }, `${t.gameName}${t.channelId}`))) @@ -65378,36 +69351,36 @@ const t = a.library.defaultLibraryFolder, r = await window.launcherAPI.settings.openLibraryFolderDialog(t); if (r.length > 0) { - const t = Lw(r[0]); + const t = dC(r[0]); a.actions.saveLibraryFolder(t), i({ id: "library", message: e("settings_games_installation_library_folder_success") }), n(!0) } }), [a.actions]); - return (0, _w.jsxs)(cg, { + return (0, QI.jsxs)(Am, { title: e("settings_games_title"), - children: [(0, _w.jsxs)(jd, { + children: [(0, QI.jsxs)(id, { title: e("settings_games_installation_title"), description: e("settings_games_installation_description"), - children: [(0, _w.jsx)(Ad, { + children: [(0, QI.jsx)(Qu, { type: "informative", children: e("settings_games_installation_information") - }), (0, _w.jsxs)(Xd, { + }), (0, QI.jsxs)(_d, { horizontal: !0, label: e("settings_games_installation_library_folder_label"), success: r && "library" === r.id ? r.message : null, - children: [(0, _w.jsx)(Fm, { + children: [(0, QI.jsx)(im, { readOnly: !0, value: a.library.defaultLibraryFolder - }), (0, _w.jsx)(el, { + }), (0, QI.jsx)(xs, { disabled: o.installations.length > 0 || s.isGameRunning, onClick: () => d(), type: "button", children: e("settings_games_installation_library_folder_change") })] })] - }), (0, _w.jsx)(ll, { + }), (0, QI.jsx)(As, { openAll: e("settings_common_accordion_open_all"), closeAll: e("settings_common_accordion_close_all"), children: u, @@ -65415,10 +69388,10 @@ })] }) }, - XR = () => { + RM = () => { const { t: e - } = bt("form"), t = pR((e => e.application)), n = bC(), { + } = bt("form"), t = Wj((e => e.application)), n = eD(), { isPending: r, submitSignIn: i, register: a, @@ -65428,7 +69401,7 @@ serverError: c, control: u } = (() => { - const e = bC(), + const e = eD(), [t, n] = Ee.useState(null), { captcha: r, @@ -65436,12 +69409,12 @@ resetAuthentication: i, fetchCaptcha: a } - } = pR((e => e.authentication)), - o = pR((e => e.user)), + } = Wj((e => e.authentication)), + o = Wj((e => e.user)), { launcherVersion: s, platformMaster: l - } = pR((e => e.application)), + } = Wj((e => e.application)), { handleSubmit: c, register: u, @@ -65451,23 +69424,23 @@ }, resetField: h, control: f - } = CT(), + } = lj(), { authentication: { onSignInSuccess: m } - } = Rw(), + } = cC(), { mutate: g, isPending: v - } = xR({ + } = tM({ mutationFn: ({ username: e, password: t, captcha: n, remember: r, launcherVersion: i - }) => yE.authentication.signIn({ + }) => ZA.authentication.signIn({ username: e, password: t, captcha: n, @@ -65486,17 +69459,17 @@ remember: o, captcha: s } = r; - if (s && a(), t instanceof PS) { - const e = await yE.authentication.getCaptcha(); - pR.setState((t => ({ + if (s && a(), t instanceof sA) { + const e = await ZA.authentication.getCaptcha(); + Wj.setState((t => ({ authentication: { ...t.authentication, captcha: e } }))) } else { - if (t instanceof NS) throw e(yD.SIGN_IN_GAME_PACKAGE_MISSING); - if (t instanceof TS) return d("captcha", { + if (t instanceof pA) throw e(XM.SIGN_IN_GAME_PACKAGE_MISSING); + if (t instanceof lA) return d("captcha", { type: "custom", message: null === t || void 0 === t ? void 0 : t.message }), void h("captcha", { @@ -65505,17 +69478,17 @@ keepTouched: !0, defaultValue: "" }); - if (t instanceof SS) throw e(yD.SIGN_IN_MFA, { + if (t instanceof tA) throw e(XM.SIGN_IN_MFA, { state: { remember: o, username: i } }); - if (t instanceof lE) throw n((0, _w.jsx)(ft, { + if (t instanceof UA) throw n((0, QI.jsx)(ft, { i18nKey: "error_sign_in_not_authorized", ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.downloadUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.downloadUrl, external: !0, inherit: !0 })] @@ -65538,7 +69511,7 @@ accountName: t.username, trackingMetricsId: t.trackingMetricsId, heapAccountId: t.heapAccountId - }), e(yD.HOME) + }), e(XM.HOME) }; return { refreshCaptcha: y, @@ -65560,20 +69533,20 @@ } })(); (0, Ee.useEffect)((() => { - t.connection.mode !== yw.ConnectionMode.ONLINE && n(`/${yD.OFFLINE}`) + t.connection.mode !== YI.ConnectionMode.ONLINE && n(`/${XM.OFFLINE}`) }), [t.connection, n]); - const d = (0, Ee.useMemo)((() => (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsxs)(Ys, { + const d = (0, Ee.useMemo)((() => (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsxs)(gs, { className: "footer__sign-up", color: "foreground-weak", variant: "body-m", - children: [e("sign_in_no_account"), (0, _w.jsx)(zm, { + children: [e("sign_in_no_account"), (0, QI.jsx)(am, { external: !0, - href: yw.configuration.enlistUrl, + href: YI.configuration.enlistUrl, "data-test-id": "enlist", children: e("sign_in_create_account") })] - }), (0, _w.jsx)(el, { + }), (0, QI.jsx)(xs, { className: "footer__sign-in-button", loading: r && e("sign_in_loading"), size: "large", @@ -65582,16 +69555,16 @@ children: e("sign_in_submit") })] })), [r]); - return (0, _w.jsxs)(hg, { + return (0, QI.jsxs)(Dm, { as: "form", "data-test-id": "sign-in-form", title: e("sign_in_title"), footer: d, onSubmit: o(i), - children: [c && (0, _w.jsx)(Ad, { + children: [c && (0, QI.jsx)(Qu, { type: "negative", children: c - }), (0, _w.jsx)(PT, { + }), (0, QI.jsx)(uj, { control: u, name: "username", rules: { @@ -65606,7 +69579,7 @@ inputProps: { id: "email" } - }), (0, _w.jsx)(PT, { + }), (0, QI.jsx)(uj, { control: u, name: "password", rules: { @@ -65622,27 +69595,27 @@ inputProps: { id: "password" } - }), (0, _w.jsxs)(cl, { + }), (0, QI.jsxs)(Ps, { align: "center", gap: "100", justify: "space-between", - children: [(0, _w.jsx)(Fd, { + children: [(0, QI.jsx)(ad, { label: e("sign_in_remember_me"), inputProps: a("remember"), "data-test-id": "remember", children: e("sign_in_remember_me") - }), (0, _w.jsx)(zm, { - href: yw.configuration.recoverUrl, + }), (0, QI.jsx)(am, { + href: YI.configuration.recoverUrl, external: !0, "data-test-id": "recover", children: e("sign_in_forgot_password") })] - }), s && (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsx)("img", { + }), s && (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsx)("img", { id: "captcha", src: s, alt: "" - }), (0, _w.jsx)(PT, { + }), (0, QI.jsx)(uj, { control: u, name: "captcha", rules: { @@ -65657,11 +69630,11 @@ "data-test-id": "captcha", inputProps: { "aria-describedby": "captcha", - suffix: (0, _w.jsx)(el, { + suffix: (0, QI.jsx)(xs, { "aria-label": e("sign_in_captcha_refresh"), "aria-controls": "captcha", disabled: r, - icon: cI, + icon: GP, variant: "plain", size: "small", onClick: l @@ -65671,9 +69644,9 @@ })] }) }, - JR = () => { - const e = pR((e => e.user)), - t = pR((e => e.authentication)), + DM = () => { + const e = Wj((e => e.user)), + t = Wj((e => e.authentication)), { t: n } = bt("form"), @@ -65686,31 +69659,31 @@ } = (() => { const { t: e - } = bt("errors"), [t, n] = Ee.useState(null), r = bC(), i = yC(), { + } = bt("errors"), [t, n] = Ee.useState(null), r = eD(), i = XR(), { actions: { resetAuthentication: a } - } = pR((e => e.authentication)), o = pR((e => e.user)), { + } = Wj((e => e.authentication)), o = Wj((e => e.user)), { handleSubmit: s, register: l, formState: { errors: c }, control: u - } = CT(), { + } = lj(), { authentication: { onSignInSuccess: d } - } = Rw(), { + } = cC(), { mutate: p, isPending: h - } = xR({ + } = tM({ mutationFn: ({ username: e, codeMfa: t, deviceName: n, duration: r - }) => yE.authentication.signInMfa({ + }) => ZA.authentication.signInMfa({ username: e, codeMfa: t, deviceName: n, @@ -65719,14 +69692,14 @@ onSuccess: e => m(e), onError: e => f(e) }), f = t => { - if (t instanceof ES) n(e("error_wrong_mfa_code")); + if (t instanceof nA) n(e("error_wrong_mfa_code")); else { - if (t instanceof NS) throw r(`../${yD.SIGN_IN_GAME_PACKAGE_MISSING}`); - if (t instanceof lE) throw n((0, _w.jsx)(ft, { + if (t instanceof pA) throw r(`../${XM.SIGN_IN_GAME_PACKAGE_MISSING}`); + if (t instanceof UA) throw n((0, QI.jsx)(ft, { i18nKey: "error_sign_in_not_authorized", ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.downloadUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.downloadUrl, external: !0, inherit: !0 })] @@ -65739,7 +69712,7 @@ device: n }) => { a(); - const s = i.state.remember && n.duration !== XS.SESSION; + const s = i.state.remember && n.duration !== AA.SESSION; throw o.actions.setIdentity({ identity: e, remember: s @@ -65753,7 +69726,7 @@ accountName: e.username, trackingMetricsId: e.trackingMetricsId, heapAccountId: e.heapAccountId - }), r(yD.HOME) + }), r(XM.HOME) }; return { isPending: h, @@ -65776,19 +69749,19 @@ })(), l = [{ label: n("sign_in_mfa_session"), - value: XS.SESSION + value: AA.SESSION }, { label: n("sign_in_mfa_day"), - value: XS.DAY + value: AA.DAY }, { label: n("sign_in_mfa_week"), - value: XS.WEEK + value: AA.WEEK }, { label: n("sign_in_mfa_month"), - value: XS.MONTH + value: AA.MONTH }, { label: n("sign_in_mfa_year"), - value: XS.YEAR + value: AA.YEAR }], c = l[3].value, u = (0, Ee.useCallback)((() => { @@ -65796,32 +69769,32 @@ clearDevice: !1 }), t.actions.resetAuthentication() }), []), - d = (0, Ee.useMemo)((() => (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsx)(el, { + d = (0, Ee.useMemo)((() => (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsx)(xs, { disabled: o, onClick: u, variant: "plain", href: "..", - icon: sI, + icon: VP, size: "large", children: n("sign_in_mfa_back_sign_in") - }), (0, _w.jsx)(el, { + }), (0, QI.jsx)(xs, { loading: o && n("sign_in_loading"), size: "large", type: "submit", children: n("sign_in_mfa_submit") })] })), [o, u]); - return (0, _w.jsxs)(hg, { + return (0, QI.jsxs)(Dm, { as: "form", title: n("sign_in_mfa_title"), subtitle: n("sign_in_mfa_subtitle"), footer: d, onSubmit: a(i), - children: [r && (0, _w.jsx)(Ad, { + children: [r && (0, QI.jsx)(Qu, { type: "negative", children: r - }), (0, _w.jsx)(PT, { + }), (0, QI.jsx)(uj, { control: s, name: "codeMfa", rules: { @@ -65832,7 +69805,7 @@ }, help: n("sign_in_mfa_code_help"), label: n("sign_in_mfa_code_label") - }), (0, _w.jsx)(PT, { + }), (0, QI.jsx)(uj, { control: s, name: "deviceName", rules: { @@ -65847,7 +69820,7 @@ }, help: n("sign_in_mfa_device_help"), label: n("sign_in_mfa_device_label") - }), (0, _w.jsx)(AT, { + }), (0, QI.jsx)(cj, { control: s, name: "duration", label: n("sign_in_mfa_duration_label"), @@ -65856,70 +69829,70 @@ children: l.map((({ label: e, value: t - }) => (0, _w.jsx)(sg, { + }) => (0, QI.jsx)(Im, { value: t, children: e }, t))) })] }) }, - eD = () => { + LM = () => { const { t: e } = bt("errors"); - return (0, _w.jsx)(hg, { + return (0, QI.jsx)(Dm, { title: e("error_game_package_missing_title"), - subtitle: (0, _w.jsx)(ft, { + subtitle: (0, QI.jsx)(ft, { i18nKey: "error_game_package_missing_subtitle", ns: "errors", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.playnowUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.playnowUrl, external: !0 })] }), - footer: (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsx)(el, { - href: yw.configuration.supportUrl, + footer: (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsx)(xs, { + href: YI.configuration.supportUrl, external: !0, variant: "plain", - icon: pI, + icon: WP, size: "large", children: e("error_game_package_missing_support") - }), (0, _w.jsx)(el, { - href: `/${yD.SIGN_IN}`, + }), (0, QI.jsx)(xs, { + href: `/${XM.SIGN_IN}`, size: "large", children: e("error_game_package_missing_retry") })] }), - children: (0, _w.jsx)("video", { + children: (0, QI.jsx)("video", { autoPlay: !0, loop: !0, muted: !0, playsInline: !0, - src: yw.configuration.assets.directory + "/videos/no-game-package.mp4", + src: YI.configuration.assets.directory + "/videos/no-game-package.mp4", style: { borderRadius: "var(--sol-radius-8)" } }) }) }, - tD = ({ + NM = ({ date: e - }) => (0, _w.jsx)(Od, { - content: Pw(e, "long"), + }) => (0, QI.jsx)(Ku, { + content: sC(e, "long"), placement: "bottom", interactive: !1, - children: (0, _w.jsx)("time", { + children: (0, QI.jsx)("time", { dateTime: e, - children: Pw(e, "relative") + children: sC(e, "relative") }) }), - nD = () => { + jM = () => { const { t: e } = bt("gamePage"), { channelSelected: t - } = pR((e => e.library)), n = pR((e => e.application)), [r, i] = (0, Ee.useState)(JS.COMM_LINKS), { + } = Wj((e => e.library)), n = Wj((e => e.application)), [r, i] = (0, Ee.useState)(TA.COMM_LINKS), { dynamicContentSections: a, contents: o, isLoading: s @@ -65927,13 +69900,13 @@ channelId: e, gameId: t }) => { - const n = pR((e => e.application)), + const n = Wj((e => e.application)), { data: r, isLoading: i - } = HR({ - ...ME(t, e), - enabled: n.connection.mode === yw.ConnectionMode.ONLINE && !n.isWindowMinimized + } = IM({ + ...mP(t, e), + enabled: n.connection.mode === YI.ConnectionMode.ONLINE && !n.isWindowMinimized }); return { ...(0, Ee.useMemo)((() => { @@ -65943,13 +69916,13 @@ o = null !== (n = null === r || void 0 === r ? void 0 : r.launcherCards) && void 0 !== n ? n : [], s = [], l = {}; - return l[`${JS.COMM_LINKS}`] = i.map(xw).sort(ww).slice(0, 8), l[`${JS.PATCH_NOTES}`] = a, o.map(kw).forEach((e => { + return l[`${TA.COMM_LINKS}`] = i.map(XI).sort(eC).slice(0, 8), l[`${TA.PATCH_NOTES}`] = a, o.map(JI).forEach((e => { var t, n; if (null === (t = e.channel) || void 0 === t || !t.name) return; const r = void 0 !== l[e.channel.name]; - l[e.channel.name] = [...null !== (n = l[e.channel.name]) && void 0 !== n ? n : [], e].sort(Sw), r || s.push(e.channel) + l[e.channel.name] = [...null !== (n = l[e.channel.name]) && void 0 !== n ? n : [], e].sort(tC), r || s.push(e.channel) })), { - dynamicContentSections: s.sort(Ew).map((e => e.name)), + dynamicContentSections: s.sort(nC).map((e => e.name)), contents: l } }), [r]), @@ -65959,36 +69932,36 @@ gameId: t.gameId, channelId: t.channelId }), l = (0, Ee.useMemo)((() => { - const e = [JS.PATCH_NOTES], - t = [...a, JS.COMM_LINKS, JS.PATCH_NOTES].filter((t => { + const e = [TA.PATCH_NOTES], + t = [...a, TA.COMM_LINKS, TA.PATCH_NOTES].filter((t => { const n = e.find((e => e === t)); return !(0 === o[t].length && n) })); return i(t[0]), t }), [a, o]), c = s && 0 === a.length; - return !n.actions.isOffline() && c ? (0, _w.jsx)(rp, { + return !n.actions.isOffline() && c ? (0, QI.jsx)(wd, { empty: e("game_page_cards_loading") - }) : (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsx)(Cm, { - children: l.map((t => (0, _w.jsx)(sp, { + }) : (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsx)(Kf, { + children: l.map((t => (0, QI.jsx)(Id, { label: e(`game_page_cards_tab_${t&&t.toLowerCase()}`), active: r === t, onClick: () => i(t) }, t))) - }), n.actions.isOffline() && (s || 0 === o[JS.COMM_LINKS].length) ? (0, _w.jsx)(rD, {}) : (0, _w.jsx)(iD, { + }), n.actions.isOffline() && (s || 0 === o[TA.COMM_LINKS].length) ? (0, QI.jsx)(MM, {}) : (0, QI.jsx)(FM, { contents: o, activeTab: r })] }) }, - rD = () => (0, _w.jsx)(rp, { - children: (0, _w.jsx)(Cd, { + MM = () => (0, QI.jsx)(wd, { + children: (0, QI.jsx)(Yu, { title: "No Connection", href: "#", isOffline: !0 }, "Card-no-connection") }), - iD = ({ + FM = ({ contents: e, activeTab: t }) => { @@ -65997,64 +69970,64 @@ } = bt("gamePage"), r = (0, Ee.useCallback)((e => { var t; return null !== (t = e.media) && void 0 !== t && t.overlay ? { - src: `${yw.configuration.rootUrl}${e.media.overlay.resize}`, + src: `${YI.configuration.rootUrl}${e.media.overlay.resize}`, srcSet: `${e.media.overlay.source} 2x` } : void 0 }), []), i = (0, Ee.useCallback)((e => { var t, n, r; - return null !== (t = e.media) && void 0 !== t && t.thumbnail ? `${yw.configuration.rootUrl}${null===(r=e.media)||void 0===r?void 0:r.thumbnail}` : null !== (n = e.media) && void 0 !== n && n.background ? { - src: `${yw.configuration.rootUrl}${e.media.background.resize}`, + return null !== (t = e.media) && void 0 !== t && t.thumbnail ? `${YI.configuration.rootUrl}${null===(r=e.media)||void 0===r?void 0:r.thumbnail}` : null !== (n = e.media) && void 0 !== n && n.background ? { + src: `${YI.configuration.rootUrl}${e.media.background.resize}`, srcSet: `${e.media.background.source} 2x` } : void 0 }), []); - return (0, _w.jsx)(_w.Fragment, { - children: e[t] && e[t].length > 0 ? (0, _w.jsx)(rp, { - children: e[t].map((e => (0, _w.jsx)(Cd, { + return (0, QI.jsx)(QI.Fragment, { + children: e[t] && e[t].length > 0 ? (0, QI.jsx)(wd, { + children: e[t].map((e => (0, QI.jsx)(Yu, { href: e["meta.button_url"] ? e["meta.button_url"] : e.url, label: e["meta.button_label"] ? e["meta.button_label"] : n("game_page_card_button_label"), title: e.title, excerpt: e.excerpt, external: !0, - subtitle: null !== e && void 0 !== e && e.publish_start ? (0, _w.jsx)(tD, { + subtitle: null !== e && void 0 !== e && e.publish_start ? (0, QI.jsx)(NM, { date: e.publish_start }) : void 0, image: i(e), overlay: r(e) }, `Card-${e.id}`))) - }) : (0, _w.jsx)(rp, { + }) : (0, QI.jsx)(wd, { empty: n("game_page_cards_empty") }) }) }, - aD = (e, t, n) => { - return n ? yw.GameChannelStatus.UNINSTALLING : t && t.status !== yw.InstallationStatus.COMPLETED ? t.status : null !== (r = null === e || void 0 === e ? void 0 : e.status) && void 0 !== r ? r : yw.GameChannelStatus.AVAILABLE; + zM = (e, t, n) => { + return n ? YI.GameChannelStatus.UNINSTALLING : t && t.status !== YI.InstallationStatus.COMPLETED ? t.status : null !== (r = null === e || void 0 === e ? void 0 : e.status) && void 0 !== r ? r : YI.GameChannelStatus.AVAILABLE; var r }, - oD = 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":[]}'), - sD = 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":[]}'), - lD = 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":[]}'), - cD = e => { + VM = 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":[]}'), + UM = 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":[]}'), + BM = 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":[]}'), + GM = e => { var t, n, r, i, a, o, s; - const l = pR((e => e.installer)), - c = pR((e => e.library)), + const l = Wj((e => e.installer)), + c = Wj((e => e.library)), { status: u } = (0, Ee.useMemo)((() => { - const t = Dw(e.gameId, c.installedGames), + const t = uC(e.gameId, c.installedGames), n = null === t || void 0 === t ? void 0 : t.channels.find((t => t.id === e.channelId)), - r = IE(l.installations, e), - i = OE(l.uninstallations, e); + r = aP(l.installations, e), + i = oP(l.uninstallations, e); return { channel: n, - status: aD(n, r, i) + status: zM(n, r, i) } }), [e, l.installations, l.uninstallations, c.installedGames]); return { - displayProgressBar: (u === yw.InstallationStatus.PAUSED || u === yw.InstallationStatus.IN_PROGRESS || u === yw.InstallationStatus.WAITING) && l.progress, - ProgressBarComponent: (0, _w.jsx)(Hd, { + displayProgressBar: (u === YI.InstallationStatus.PAUSED || u === YI.InstallationStatus.IN_PROGRESS || u === YI.InstallationStatus.WAITING) && l.progress, + ProgressBarComponent: (0, QI.jsx)(fd, { state: u, - progress: u === yw.InstallationStatus.IN_PROGRESS && null !== (t = l.progress) && void 0 !== t && t.showProgress ? null === (n = l.progress) || void 0 === n ? void 0 : n.percentage : void 0, - stats: u === yw.InstallationStatus.WAITING ? [] : [{ + progress: u === YI.InstallationStatus.IN_PROGRESS && null !== (t = l.progress) && void 0 !== t && t.showProgress ? null === (n = l.progress) || void 0 === n ? void 0 : n.percentage : void 0, + stats: u === YI.InstallationStatus.WAITING ? [] : [{ label: be("download_speed", { ns: "download" }), @@ -66063,88 +70036,89 @@ label: be("download_left", { ns: "download" }), - value: SE()(Math.max((null !== (i = null === (a = l.progress) || void 0 === a ? void 0 : a.total) && void 0 !== i ? i : 0) - (null !== (o = null === (s = l.progress) || void 0 === s ? void 0 : s.downloaded) && void 0 !== o ? o : 0), 0)) + value: rP()(Math.max((null !== (i = null === (a = l.progress) || void 0 === a ? void 0 : a.total) && void 0 !== i ? i : 0) - (null !== (o = null === (s = l.progress) || void 0 === s ? void 0 : s.downloaded) && void 0 !== o ? o : 0), 0)) }] }) } }, - uD = () => { + $M = () => { var e, t; const { t: n } = bt("gamePage"), { gameId: r - } = kC(), i = pR((e => e.library)), a = pR((e => e.application)), { + } = nD(), i = Wj((e => e.library)), a = Wj((e => e.application)), { reduceMotion: { backgroundVideoDisabled: o, - unessentialAnimationsDisabled: s + unessentialAnimationsDisabled: s, + wipeAnimationsDisabled: l } - } = Ns(), { - selectedGame: l, - selectedChannel: c, - channels: u + } = ts(), { + selectedGame: c, + selectedChannel: u, + channels: d } = (0, Ee.useMemo)((() => { - const e = Dw(null !== r && void 0 !== r ? r : i.channelSelected.gameId, i.availableGames), + const e = uC(null !== r && void 0 !== r ? r : i.channelSelected.gameId, i.availableGames), t = null === e || void 0 === e ? void 0 : e.channels.find((e => e.id === i.channelSelected.channelId)); return { selectedGame: e, selectedChannel: t, channels: i.actions.getChannels(null !== r && void 0 !== r ? r : i.channelSelected.gameId) } - }), [r, i.actions, i.availableGames, i.channelSelected.channelId, i.channelSelected.gameId]), d = (e => { + }), [r, i.actions, i.availableGames, i.channelSelected.channelId, i.channelSelected.gameId]), p = (e => { var t; - const n = pR((e => e.application)), - r = pR((e => e.installer)), - i = pR((e => e.library)), - a = pR((e => e.dialog)), - o = Rw(), + const n = Wj((e => e.application)), + r = Wj((e => e.installer)), + i = Wj((e => e.library)), + a = Wj((e => e.dialog)), + o = cC(), { reduceMotion: { unessentialAnimationsDisabled: s } - } = Ns(), + } = ts(), { status: l, installation: c } = (0, Ee.useMemo)((() => { - const t = Dw(e.gameId, i.installedGames), + const t = uC(e.gameId, i.installedGames), n = null === t || void 0 === t ? void 0 : t.channels.find((t => t.id === e.channelId)), - a = IE(r.installations, e), - o = OE(r.uninstallations, e); + a = aP(r.installations, e), + o = oP(r.uninstallations, e); return { installation: a, - status: aD(n, a, o) + status: zM(n, a, o) } }), [e, i.installedGames, r.installations, r.uninstallations]), u = n.actions.isOffline(), d = { - [yw.InstallationType.INSTALL]: { + [YI.InstallationType.INSTALL]: { titleInProgress: "game_page_installing", titlePaused: "game_page_installing_paused" }, - [yw.InstallationType.UPDATE]: { + [YI.InstallationType.UPDATE]: { titleInProgress: "game_page_updating", titlePaused: "game_page_updating_paused" }, - [yw.InstallationType.VERIFY]: { + [YI.InstallationType.VERIFY]: { titleInProgress: "game_page_verifying", titlePaused: "game_page_verifying_paused" } - } [null !== (t = null === c || void 0 === c ? void 0 : c.type) && void 0 !== t ? t : yw.InstallationType.INSTALL]; + } [null !== (t = null === c || void 0 === c ? void 0 : c.type) && void 0 !== t ? t : YI.InstallationType.INSTALL]; switch (l) { - case yw.InstallationStatus.PAUSED: + case YI.InstallationStatus.PAUSED: return { buttonProps: { children: xt.t(d.titlePaused, { ns: "gamePage" }), iconAnimation: !1, - icon: hI, + icon: HP, disabled: u }, action: () => n.actions.toggleDownloadPopoverOpened() }; - case yw.InstallationStatus.CANCELLING: - case yw.InstallationStatus.IN_PROGRESS: + case YI.InstallationStatus.CANCELLING: + case YI.InstallationStatus.IN_PROGRESS: return { buttonProps: { children: xt.t(d.titleInProgress, { @@ -66152,22 +70126,22 @@ }), loading: !0, disabled: !1, - loadingIcon: s ? hI : MI + loadingIcon: s ? HP : gT }, action: () => n.actions.toggleDownloadPopoverOpened() }; - case yw.GameChannelStatus.INSTALLED: + case YI.GameChannelStatus.INSTALLED: return { buttonProps: { children: xt.t("game_page_launch_game", { ns: "gamePage" }), disabled: u || n.isGameRunning, - icon: s ? bI : sD + icon: s ? eT : UM }, action: () => { i.actions.launchGame(e) } }; - case yw.GameChannelStatus.RUNNING: + case YI.GameChannelStatus.RUNNING: return { buttonProps: { children: xt.t("game_page_game_is_running", { @@ -66179,7 +70153,7 @@ o.window.setMinimizeWindow() } }; - case yw.GameChannelStatus.UNINSTALLING: + case YI.GameChannelStatus.UNINSTALLING: return { buttonProps: { children: xt.t("game_page_uninstalling", { @@ -66189,20 +70163,20 @@ disabled: !0 }, action: () => {} }; - case yw.GameChannelStatus.UPDATE_AVAILABLE: + case YI.GameChannelStatus.UPDATE_AVAILABLE: return { buttonProps: { children: xt.t("game_page_update_game", { ns: "gamePage" }), - icon: s ? xI : lD, + icon: s ? tT : BM, disabled: u }, action: async () => { - r.actions.addInstallationToQueue(e, yw.InstallationType.UPDATE) + r.actions.addInstallationToQueue(e, YI.InstallationType.UPDATE) } }; - case yw.InstallationStatus.ERROR: - case yw.InstallationStatus.WAITING: + case YI.InstallationStatus.ERROR: + case YI.InstallationStatus.WAITING: return { buttonProps: { children: xt.t("game_page_waiting_in_queue", { @@ -66212,15 +70186,15 @@ disabled: !1 }, action: () => n.actions.toggleDownloadPopoverOpened() }; - case yw.InstallationStatus.COMPLETED: - case yw.GameChannelStatus.AVAILABLE: + case YI.InstallationStatus.COMPLETED: + case YI.GameChannelStatus.AVAILABLE: default: return { buttonProps: { children: xt.t("game_page_install_game", { ns: "gamePage" }), - icon: s ? gI : oD, + icon: s ? QP : VM, disabled: u }, action: async () => { await a.actions.showGameStartInstallationDialog(e) @@ -66228,39 +70202,39 @@ } } })(i.channelSelected), { - GameNotAvailableOfflineMessageComponent: p, - UpdateAvailableMessageComponent: h + GameNotAvailableOfflineMessageComponent: h, + UpdateAvailableMessageComponent: f } = (e => { - const t = pR((e => e.library)), - n = pR((e => e.application)), - r = pR((e => e.installer)), + const t = Wj((e => e.library)), + n = Wj((e => e.application)), + r = Wj((e => e.installer)), { channel: i, status: a } = (0, Ee.useMemo)((() => { - const n = Dw(e.gameId, t.installedGames), + const n = uC(e.gameId, t.installedGames), i = null === n || void 0 === n ? void 0 : n.channels.find((t => t.id === e.channelId)), - a = IE(r.installations, e), - o = OE(r.uninstallations, e); + a = aP(r.installations, e), + o = oP(r.uninstallations, e); return { channel: i, - status: aD(i, a, o) + status: zM(i, a, o) } }), [e, t.installedGames, r.installations, r.uninstallations]), o = n.actions.isOffline(); return { - UpdateAvailableMessageComponent: (0, Ee.useMemo)((() => a === yw.GameChannelStatus.UPDATE_AVAILABLE ? (0, _w.jsx)(ft, { + UpdateAvailableMessageComponent: (0, Ee.useMemo)((() => a === YI.GameChannelStatus.UPDATE_AVAILABLE ? (0, QI.jsx)(ft, { i18nKey: "game_page_update_game_is_available", ns: "gamePage", - components: [(0, _w.jsx)(zm, { - href: yw.configuration.patchnotesUrl, + components: [(0, QI.jsx)(am, { + href: YI.configuration.patchnotesUrl, external: !0 })], values: { version: null === i || void 0 === i ? void 0 : i.versionLabel } }) : void 0), [null === i || void 0 === i ? void 0 : i.versionLabel, a]), - GameNotAvailableOfflineMessageComponent: (0, Ee.useMemo)((() => o ? (0, _w.jsx)(ft, { + GameNotAvailableOfflineMessageComponent: (0, Ee.useMemo)((() => o ? (0, QI.jsx)(ft, { i18nKey: "game_page_game_is_not_available_offline", ns: "gamePage", values: { @@ -66269,17 +70243,17 @@ }) : void 0), [e.gameName, o]) } })(i.channelSelected), { - handleChannelSelection: f, - channelSelectorSuffix: m, - setGameSettingsMenuAnchor: g + handleChannelSelection: m, + channelSelectorSuffix: g, + setGameSettingsMenuAnchor: v } = (e => { const { t: t - } = bt("gamePage"), [n, r] = (0, Ee.useState)(null), i = pR((e => e.application)), a = pR((e => e.installer)), o = pR((e => e.library)), s = bC(), { + } = bt("gamePage"), [n, r] = (0, Ee.useState)(null), i = Wj((e => e.application)), a = Wj((e => e.installer)), o = Wj((e => e.library)), s = eD(), { reduceMotion: { wipeAnimationsDisabled: l } - } = Ns(), { + } = ts(), { isGameChannelInstalled: c, isGameChannelInstalling: u, isGameChannelUninstalling: d, @@ -66287,13 +70261,13 @@ } = (0, Ee.useMemo)((() => { var t; const n = o.actions.getInstalledChannel(o.channelSelected), - r = (null === n || void 0 === n ? void 0 : n.status) === yw.GameChannelStatus.INSTALLED || (null === n || void 0 === n ? void 0 : n.status) === yw.GameChannelStatus.UPDATE_AVAILABLE || (null === n || void 0 === n ? void 0 : n.status) === yw.GameChannelStatus.RUNNING, - i = void 0 !== OE(a.uninstallations, e); + r = (null === n || void 0 === n ? void 0 : n.status) === YI.GameChannelStatus.INSTALLED || (null === n || void 0 === n ? void 0 : n.status) === YI.GameChannelStatus.UPDATE_AVAILABLE || (null === n || void 0 === n ? void 0 : n.status) === YI.GameChannelStatus.RUNNING, + i = void 0 !== oP(a.uninstallations, e); return { isGameChannelInstalled: r, - isGameChannelInstalling: void 0 !== IE(a.installations, e), + isGameChannelInstalling: void 0 !== aP(a.installations, e), isGameChannelUninstalling: i, - settingsUrl: rO(`/${yD.SETTINGS}/${yD.SETTINGS_GAMES}`, { + settingsUrl: MT(`/${XM.SETTINGS}/${XM.SETTINGS_GAMES}`, { gameId: null !== (t = e.gameId) && void 0 !== t ? t : o.channelSelected.gameId, channelId: o.channelSelected.channelId }) @@ -66322,23 +70296,23 @@ }; o.actions.setGameChannelSelected(a) }), [e, o.actions, o.availableGames, o.channelSelected.gameId, o.gameSelected]), - channelSelectorSuffix: (0, Ee.useMemo)((() => (0, _w.jsxs)(Jm, { + channelSelectorSuffix: (0, Ee.useMemo)((() => (0, QI.jsxs)(_m, { anchor: n, placement: "bottom-end", - trigger: (0, _w.jsx)(el, { + trigger: (0, QI.jsx)(xs, { "aria-label": t("game_page_settings"), - icon: kI, + icon: nT, size: "small", variant: "plain" }), - children: [(0, _w.jsx)(Zm, { + children: [(0, QI.jsx)(vm, { label: t("game_page_settings"), onClick: f - }), (0, _w.jsx)(Zm, { + }), (0, QI.jsx)(vm, { label: t("game_page_settings_verify"), - onClick: () => a.actions.addInstallationToQueue(e, yw.InstallationType.VERIFY), + onClick: () => a.actions.addInstallationToQueue(e, YI.InstallationType.VERIFY), disabled: u || d || h - }), c && (0, _w.jsx)(Zm, { + }), c && (0, QI.jsx)(vm, { color: "negative", label: t("game_page_settings_uninstall"), onClick: () => a.actions.startUninstallation(e), @@ -66348,114 +70322,114 @@ setGameSettingsMenuAnchor: r } })(i.channelSelected), { - displayProgressBar: v, - ProgressBarComponent: y - } = cD(i.channelSelected), _ = null === (e = a.animations.gamePageEntering) || void 0 === e ? void 0 : e.isAnimating, b = null === (t = a.animations.gamePageEntering) || void 0 === t ? void 0 : t.animState, x = a.actions.isOffline(), k = "SC" === (null === l || void 0 === l ? void 0 : l.id) && (null === c || void 0 === c ? void 0 : c.id) === tA && a.nonOperationalStatus; - return (0, _w.jsxs)(_w.Fragment, { - children: [(0, _w.jsx)(tp, { - image: null === l || void 0 === l ? void 0 : l.bgImage, - video: o || null === l || void 0 === l ? void 0 : l.bgVideo - }), (0, _w.jsx)(ip, { - logo: null === l || void 0 === l ? void 0 : l.logoWide, - animation: null === l || void 0 === l ? void 0 : l.logoAnimation, - playLottie: _ && "entering" === b - }), (0, _w.jsx)(Am, { - children: (0, _w.jsx)(ft, { + displayProgressBar: y, + ProgressBarComponent: _ + } = GM(i.channelSelected), b = null === (e = a.animations.gamePageEntering) || void 0 === e ? void 0 : e.isAnimating, x = null === (t = a.animations.gamePageEntering) || void 0 === t ? void 0 : t.animState, k = a.actions.isOffline(), w = "SC" === (null === c || void 0 === c ? void 0 : c.id) && (null === u || void 0 === u ? void 0 : u.id) === ND && a.nonOperationalStatus; + return (0, QI.jsxs)(QI.Fragment, { + children: [(0, QI.jsx)(kd, { + image: null === c || void 0 === c ? void 0 : c.bgImage, + video: o || null === c || void 0 === c ? void 0 : c.bgVideo + }), (0, QI.jsx)(Sd, { + logo: null === c || void 0 === c ? void 0 : c.logoWide, + animation: null === c || void 0 === c ? void 0 : c.logoAnimation, + playLottie: !!l || b && "entering" === x + }), (0, QI.jsx)(Yf, { + children: (0, QI.jsx)(ft, { i18nKey: "game_page_title", values: { - name: null === l || void 0 === l ? void 0 : l.name + name: null === c || void 0 === c ? void 0 : c.name }, - components: [(0, _w.jsx)("br", {}), (0, _w.jsx)("b", {})], + components: [(0, QI.jsx)("br", {}), (0, QI.jsx)("b", {})], t: n }) - }), (0, _w.jsxs)(ep, { - children: [i.availableGames.length > 0 && (0, _w.jsx)(Xd, { + }), (0, QI.jsxs)(xd, { + children: [i.availableGames.length > 0 && (0, QI.jsx)(_d, { label: n("game_page_channels"), labelType: "classic", className: "sol-c-game-page__channel-selector", - children: (0, _w.jsx)(lg, { - onValueChange: f, - value: null === c || void 0 === c ? void 0 : c.id, - suffix: m, + children: (0, QI.jsx)(Cm, { + onValueChange: m, + value: null === u || void 0 === u ? void 0 : u.id, + suffix: g, wrapperProps: { - ref: g + ref: v }, - children: u.map((({ + children: d.map((({ description: e, label: t, value: n - }) => (0, _w.jsx)(sg, { + }) => (0, QI.jsx)(Im, { description: e, label: t, value: n }, n))) }) - }), (0, _w.jsx)(Jd, { + }), (0, QI.jsx)(bd, { iconAnimation: !s && "hover", - onClick: () => d.action(), - ...d.buttonProps - }), v && y, p && (0, _w.jsx)(op, { - children: p - }), !v && h && (0, _w.jsx)(op, { + onClick: () => p.action(), + ...p.buttonProps + }), y && _, h && (0, QI.jsx)(Od, { children: h - }), !x && k && a.nonOperationalStatus && (0, _w.jsx)(zA, { + }), !y && f && (0, QI.jsx)(Od, { + children: f + }), !k && w && a.nonOperationalStatus && (0, QI.jsx)(_L, { status: a.nonOperationalStatus })] - }), (0, _w.jsx)(nD, {})] + }), (0, QI.jsx)(jM, {})] }) }, - dD = () => { + qM = () => { const { t: e - } = bt("errors"), t = pR((e => e.window)), n = pR((e => e.application)), r = bC(), [i, a] = (0, Ee.useState)(!1), o = (0, Ee.useCallback)((() => t.actions.exitLauncher()), [t]), s = (0, Ee.useCallback)((() => { + } = bt("errors"), t = Wj((e => e.window)), n = Wj((e => e.application)), r = eD(), [i, a] = (0, Ee.useState)(!1), o = (0, Ee.useCallback)((() => t.actions.exitLauncher()), [t]), s = (0, Ee.useCallback)((() => { a(!0); const e = setTimeout((() => { - a(!1), r(`/${yD.SIGN_IN}`), clearTimeout(e) - }), 3 * Cw.second) + a(!1), r(`/${XM.SIGN_IN}`), clearTimeout(e) + }), 3 * aC.second) }), [a, r]); return (0, Ee.useEffect)((() => { - n.connection.mode === yw.ConnectionMode.ONLINE && r(`/${yD.SIGN_IN}`) - }), [n.connection, r]), (0, _w.jsx)(fg, { - children: (0, _w.jsx)(hg, { + n.connection.mode === YI.ConnectionMode.ONLINE && r(`/${XM.SIGN_IN}`) + }), [n.connection, r]), (0, QI.jsx)(Lm, { + children: (0, QI.jsx)(Dm, { title: e("error_sign_in_offline_header_title"), - subtitle: (0, _w.jsx)(ft, { + subtitle: (0, QI.jsx)(ft, { i18nKey: "error_sign_in_offline_header_subtitle", ns: "errors" }), - footer: (0, _w.jsxs)(cl, { + footer: (0, QI.jsxs)(Ps, { align: "end", gap: "100", - children: [(0, _w.jsx)(el, { + children: [(0, QI.jsx)(xs, { variant: "monochrome", size: "large", onClick: o, children: e("error_sign_in_offline_exit") - }), (0, _w.jsx)(el, { + }), (0, QI.jsx)(xs, { loading: i, onClick: s, size: "large", children: e("error_sign_in_offline_retry") })] }), - children: (0, _w.jsxs)(cl, { + children: (0, QI.jsxs)(Ps, { gap: "100", vertical: !0, - children: [(0, _w.jsx)($d, {}), (0, _w.jsx)(Ys, { + children: [(0, QI.jsx)(pd, {}), (0, QI.jsx)(gs, { color: "foreground-weak", className: "sol-u-margin-b-050", - children: (0, _w.jsx)("h2", { + children: (0, QI.jsx)("h2", { children: e("error_sign_in_offline_content_title") }) - }), (0, _w.jsxs)(Ys, { + }), (0, QI.jsxs)(gs, { color: "foreground-weak", - children: [(0, _w.jsx)("span", { + children: [(0, QI.jsx)("span", { children: e("error_sign_in_offline_content_description") - }), (0, _w.jsxs)("ul", { - children: [(0, _w.jsx)("li", { + }), (0, QI.jsxs)("ul", { + children: [(0, QI.jsx)("li", { children: e("error_sign_in_offline_content_description_first") - }), (0, _w.jsx)("li", { + }), (0, QI.jsx)("li", { children: e("error_sign_in_offline_content_description_second") - }), (0, _w.jsx)("li", { + }), (0, QI.jsx)("li", { children: e("error_sign_in_offline_content_description_third") })] })] @@ -66464,21 +70438,20 @@ }) }) }, - pD = () => { - const e = pR((e => e.toasts)), + WM = () => { + const e = Wj((e => e.toasts)), { wipeAnimType: t, isHeaderVisible: n } = (() => { var e, t; - const n = pR((e => e.application)), + const n = Wj((e => e.application)), r = null === (e = n.animations.appLayoutWipe) || void 0 === e ? void 0 : e.isAnimating, i = null === (t = n.animations.appLayoutWipe) || void 0 === t ? void 0 : t.animType, a = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), [o, s] = (0, Ee.useState)(!1), - [l, c] = (0, Ee.useState)(""); - return (0, Ee.useEffect)((() => { - r ? (async () => { + [l, c] = (0, Ee.useState)(""), + u = (0, Ee.useCallback)((async () => { switch (n.actions.setAnimatingAppLayoutWipe("", !1), c(""), i) { case "in": c("in"); @@ -66499,20 +70472,22 @@ c("in"), await new Promise((e => setTimeout(e, a / 2))), c("out") } await new Promise((e => setTimeout(e, a / 2))), n.actions.setAnimatingAppLayoutWipe("", !1), c("") - })() : s(!0) - }), [i, r, n.actions, a]), { + }), [i, a, n.actions]); + return (0, Ee.useEffect)((() => { + r ? u() : s(!0) + }), [r, u]), { wipeAnimType: l, isHeaderVisible: o } })(); - return OR(), (() => { + return sM(), (() => { const { game: { onLaunchGameSuccessfull: e, onLaunchGameFailed: t, onLaunchGameStopped: n } - } = window.launcherAPI, r = pR((e => e.library)); + } = window.launcherAPI, r = Wj((e => e.library)); (0, Ee.useEffect)((() => e((e => { r.actions.setLaunchGameSuccessfull(e) }))), [r.actions, e]), (0, Ee.useEffect)((() => t((e => { @@ -66531,7 +70506,7 @@ onUninstallSuccess: a, onUninstallFailed: o } - } = window.launcherAPI, s = pR((e => e.installer)); + } = window.launcherAPI, s = Wj((e => e.installer)); (0, Ee.useEffect)((() => n((e => { s.actions.setInstallationProgress(e) }))), [s.actions, n]), (0, Ee.useEffect)((() => t((e => { @@ -66553,7 +70528,7 @@ onConnectionAvailable: e, onConnectionUnavailable: t } - } = window.launcherAPI, n = pR((e => e.application)); + } = window.launcherAPI, n = Wj((e => e.application)); (0, Ee.useEffect)((() => e((() => { n.actions.setConnectionAvailable() }))), [n.actions, e]), (0, Ee.useEffect)((() => t((() => { @@ -66571,52 +70546,64 @@ }), [n.actions]) })(), (0, Ee.useEffect)((() => { e.actions.init() - }), [e.actions]), (0, _w.jsx)(_w.Fragment, { - children: (0, _w.jsx)(DI, { - children: (0, _w.jsxs)(fl, { + }), [e.actions]), (0, QI.jsx)(QI.Fragment, { + children: (0, QI.jsx)(hT, { + children: (0, QI.jsxs)(Ns, { className: "sol-u-animation-wipe", "data-sol-animation-wipe": t, - header: n ? (0, _w.jsx)(oA, {}) : void 0, - children: [(0, _w.jsx)(MC, {}), (0, _w.jsx)(lA, {}), (0, _w.jsx)(_g, { + header: n ? (0, QI.jsx)(VD, {}) : void 0, + children: [(0, QI.jsx)(gD, {}), (0, QI.jsx)(BD, {}), (0, QI.jsx)(zm, { toasts: e.list })] }) }) }) }, - hD = () => { + HM = () => { + const e = (0, Ee.useCallback)((() => { + cC().window.setLargeWindow() + }), []); (0, Ee.useEffect)((() => { - Rw().window.setLargeWindow() - }), []) + e() + }), [e]) }, - fD = () => { - const e = pR((e => e.application)), + KM = () => { + const e = Wj((e => e.application)), { wipeAnimationsDisabled: t - } = Ns().reduceMotion, + } = ts().reduceMotion, n = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); - return (0, Ee.useEffect)((() => { - Rw().window.setSmallWindow() - }), []), (0, Ee.useEffect)((() => { + (() => { + const e = (0, Ee.useCallback)((() => { + cC().window.setSmallWindow() + }), []); + (0, Ee.useEffect)((() => { + e() + }), [e]) + })(); + const r = (0, Ee.useCallback)((() => { if (t) { const t = setTimeout((() => { e.actions.setAnimatingAppLayoutWipe("out", !1) }), n); return () => clearTimeout(t) } - }), [e.actions, n]), (0, _w.jsx)(fg, { - children: (0, _w.jsx)(MC, {}) + }), [e.actions, n, t]); + return (0, Ee.useEffect)((() => { + r() + }), [r]), (0, QI.jsx)(Lm, { + children: (0, QI.jsx)(gD, {}) }) }, - mD = () => { + YM = () => { var e; - const t = pR((e => e.library)), - n = pR((e => e.application)), + const t = Wj((e => e.library)), + n = Wj((e => e.application)), r = null === (e = n.animations.appLayoutWipe) || void 0 === e ? void 0 : e.isAnimating, { wipeAnimationsDisabled: i - } = Ns().reduceMotion; - hD(); + } = ts().reduceMotion; + HM(); const a = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), [o, s] = (0, Ee.useState)("is-init"), l = (0, Ee.useCallback)((async () => { @@ -66624,14 +70611,9 @@ }), [t.actions]); (0, Ee.useEffect)((() => { t.installedGames.length > 0 && l() - }), [l, t.installedGames.length]), (0, Ee.useEffect)((() => { - if (i) return n.actions.setAnimatingGamePageEntering(!1, "entered"), void s("is-entered"); - r || "is-init" !== o || (n.actions.setAnimatingGamePageEntering(!0, "entering"), s("is-entering"), setTimeout((() => { - n.actions.setAnimatingGamePageEntering(!1, "entered"), s("is-entered") - }), a / 2 + 2e3)) - }), [r, o, n.actions, a, i]); - const c = (0, Ee.useMemo)((() => Aw(yw.configuration.requestPollingInterval.library.base, yw.configuration.requestPollingInterval.library.window)), []); - return ((e, t) => { + }), [l, t.installedGames.length]); + const c = (0, Ee.useMemo)((() => oC(YI.configuration.requestPollingInterval.library.base, YI.configuration.requestPollingInterval.library.window)), []); + ((e, t) => { const n = (0, Ee.useRef)(e); (0, Ee.useEffect)((() => { n.current = e @@ -66641,26 +70623,39 @@ return () => clearInterval(e) } }), [t]) - })((() => l()), t.installedGames.length > 0 ? c : null), (0, _w.jsx)(Pm, { - navigation: (0, _w.jsx)(FA, {}), + })((() => l()), t.installedGames.length > 0 ? c : null); + const u = (0, Ee.useCallback)((() => { + if (i) return n.actions.setAnimatingGamePageEntering(!1, "entered"), void s("is-entered"); + if (!r && "is-init" === o) { + n.actions.setAnimatingGamePageEntering(!0, "entering"), s("is-entering"); + const e = setTimeout((() => { + n.actions.setAnimatingGamePageEntering(!1, "entered"), s("is-entered") + }), a / 2 + 2e3); + return () => clearTimeout(e) + } + }), [r, o, n.actions, a, i]); + return (0, Ee.useEffect)((() => { + u() + }), [u]), (0, QI.jsx)(Qf, { + navigation: (0, QI.jsx)(yL, {}), "data-sol-animation-gamepage": o, - children: (0, _w.jsx)(MC, {}) + children: (0, QI.jsx)(gD, {}) }) }, - gD = () => { - const e = pR((e => e.application)), - t = pR((e => e.user)), - n = bC(), + QM = () => { + const e = Wj((e => e.application)), + t = Wj((e => e.user)), + n = eD(), { pathname: r - } = yC(), + } = XR(), { t: i } = bt("settingsPage"); - hD(); + HM(); const { wipeAnimationsDisabled: a - } = Ns().reduceMotion, o = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), s = [{ + } = ts().reduceMotion, o = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), s = [{ title: i("settings_nav_items_application"), path: "application" }, { @@ -66680,39 +70675,39 @@ path: "dev", staff: !0 }]; - return (0, _w.jsxs)(pg, { - children: [(0, _w.jsx)(ug, { + return (0, QI.jsxs)(Rm, { + children: [(0, QI.jsx)(Pm, { back: { label: i("settings_common_back"), href: ".." }, title: "Settings", backCallback: () => { - if (a) return void n(yD.HOME); + if (a) return void n(XM.HOME); e.actions.setAnimatingAppLayoutWipe("full-rtl", !0); const t = setTimeout((() => { - n(yD.HOME) + n(XM.HOME) }), o / 2); return () => clearTimeout(t) }, children: s.map((e => { const n = t.identity && t.identity.privileged, - i = iO({ - path: `/${yD.SETTINGS}/${e.path}`, + i = FT({ + path: `/${XM.SETTINGS}/${e.path}`, end: !1 }, r); - return (!e.staff || e.staff && n) && (0, _w.jsx)(dg, { + return (!e.staff || e.staff && n) && (0, QI.jsx)(Tm, { active: Boolean(i), href: e.path, children: e.title }, e.path) })) - }), (0, _w.jsx)(MC, {})] + }), (0, QI.jsx)(gD, {})] }) }; - const vD = () => { - const e = yC(); - return pR((e => e.user)).actions.isLoggedIn() ? (0, _w.jsx)(MC, {}) : (0, _w.jsx)(NC, { + const ZM = () => { + const e = XR(); + return Wj((e => e.user)).actions.isLoggedIn() ? (0, QI.jsx)(gD, {}) : (0, QI.jsx)(mD, { to: "sign-in", replace: !0, state: { @@ -66720,7 +70715,7 @@ } }) }, - yD = { + XM = { HOME: "/", SIGN_IN: "sign-in", SIGN_IN_MFA: "mfa", @@ -66735,21 +70730,21 @@ SETTINGS_DEV: "dev", OFFLINE: "offline" }, - _D = function(e, t) { - return PO({ + JM = function(e, t) { + return uR({ basename: null == t ? void 0 : t.basename, - future: VA({}, null == t ? void 0 : t.future, { + future: bL({}, null == t ? void 0 : t.future, { v7_prependBasename: !0 }), history: (n = { window: null == t ? void 0 : t.window - }, void 0 === n && (n = {}), qI((function(e, t) { + }, void 0 === n && (n = {}), OT((function(e, t) { let { pathname: n = "/", search: r = "", hash: i = "" - } = $I(e.location.hash.substr(1)); - return n.startsWith("/") || n.startsWith(".") || (n = "/" + n), GI("", { + } = ET(e.location.hash.substr(1)); + return n.startsWith("/") || n.startsWith(".") || (n = "/" + n), wT("", { pathname: n, search: r, hash: i @@ -66762,57 +70757,57 @@ n = t.indexOf("#"); r = -1 === n ? t : t.slice(0, n) } - return r + "#" + ("string" === typeof t ? t : WI(t)) + return r + "#" + ("string" === typeof t ? t : ST(t)) }), (function(e, t) { - UI("/" === e.pathname.charAt(0), "relative pathnames are not supported in hash history.push(" + JSON.stringify(t) + ")") + xT("/" === e.pathname.charAt(0), "relative pathnames are not supported in hash history.push(" + JSON.stringify(t) + ")") }), n)), - hydrationData: (null == t ? void 0 : t.hydrationData) || GA(), + hydrationData: (null == t ? void 0 : t.hydrationData) || wL(), routes: e, - mapRouteProperties: zC, + mapRouteProperties: _D, window: null == t ? void 0 : t.window }).initialize(); var n }([{ - element: (0, _w.jsx)(pD, {}), + element: (0, QI.jsx)(WM, {}), loader: async () => { const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); try { - const t = pR.getState().application; + const t = Wj.getState().application; if (t.isAppInitialized) return void t.actions.checkConnection(); - await new Promise((t => setTimeout(t, yw.configuration.appLayoutLoaderWipeTrigger + e / 2))) + await new Promise((t => setTimeout(t, YI.configuration.appLayoutLoaderWipeTrigger + e / 2))) } finally { return null } }, children: [{ - path: yD.HOME, - element: (0, _w.jsx)(vD, {}), + path: XM.HOME, + element: (0, QI.jsx)(ZM, {}), children: [{ - element: (0, _w.jsx)(mD, {}), + element: (0, QI.jsx)(YM, {}), children: [{ index: !0, loader: async () => { - const e = `/game-page/${pR.getState().library.gameSelected}`; - throw mO(e) + const e = `/game-page/${Wj.getState().library.gameSelected}`; + throw YT(e) } }, { - path: yD.GAME_PAGE, - element: (0, _w.jsx)(uD, {}), + path: XM.GAME_PAGE, + element: (0, QI.jsx)($M, {}), loader: async ({ params: e }) => { try { var t; - if (await async function(e = yD.SIGN_IN) { - const t = pR.getState().user, - n = pR.getState().application; - if (n.actions.isOffline() && !n.actions.isOfflineSessionValid() && await rI(), !t.actions.isLoggedIn()) throw mO(e); + if (await async function(e = XM.SIGN_IN) { + const t = Wj.getState().user, + n = Wj.getState().application; + if (n.actions.isOffline() && !n.actions.isOfflineSessionValid() && await jP(), !t.actions.isLoggedIn()) throw YT(e); return t.identity }(), !e.gameId) return null; - const n = pR.getState().library, - r = pR.getState().settings; + const n = Wj.getState().library, + r = Wj.getState().settings; n.gameSelected !== e.gameId && n.actions.setGameSelected(e.gameId); - const i = null !== (t = aI.getQueryData(LE().queryKey)) && void 0 !== t ? t : await aI.fetchQuery(LE()); + const i = null !== (t = FP.getQueryData(hP().queryKey)) && void 0 !== t ? t : await FP.fetchQuery(hP()); if (!i) return null; n.actions.setAvailableGames(i), r.actions.initializeGameSettings(); const a = null === i || void 0 === i ? void 0 : i.find((({ @@ -66836,75 +70831,75 @@ fetchedLibrary: i } } catch (n) { - return null + return window.launcherAPI.log.error(`Not able to load game layout : ${n}`), null } finally { - pR.getState().status.actions.checkStatus() + Wj.getState().status.actions.checkStatus() } } }] }, { - element: (0, _w.jsx)(gD, {}), - path: yD.SETTINGS, + element: (0, QI.jsx)(QM, {}), + path: XM.SETTINGS, children: [{ index: !0, loader: async () => { - throw mO(yD.SETTINGS_APPLICATION) + throw YT(XM.SETTINGS_APPLICATION) } }, { - path: yD.SETTINGS_APPLICATION, - element: (0, _w.jsx)(NR, {}) + path: XM.SETTINGS_APPLICATION, + element: (0, QI.jsx)(mM, {}) }, { - path: yD.SETTINGS_ACCESSIBILITY, - element: (0, _w.jsx)(RR, {}) + path: XM.SETTINGS_ACCESSIBILITY, + element: (0, QI.jsx)(pM, {}) }, { - path: yD.SETTINGS_GAMES, - element: (0, _w.jsx)(ZR, {}) + path: XM.SETTINGS_GAMES, + element: (0, QI.jsx)(TM, {}) }, { - path: yD.SETTINGS_DOWNLOAD, - element: (0, _w.jsx)(jR, {}) + path: XM.SETTINGS_DOWNLOAD, + element: (0, QI.jsx)(vM, {}) }, { - path: yD.SETTINGS_ABOUT, - element: (0, _w.jsx)(bw, {}) + path: XM.SETTINGS_ABOUT, + element: (0, QI.jsx)(ZI, {}) }, { - path: yD.SETTINGS_DEV, - element: (0, _w.jsx)(MR, {}) + path: XM.SETTINGS_DEV, + element: (0, QI.jsx)(gM, {}) }] }] }, { - path: yD.SIGN_IN, - element: (0, _w.jsx)(fD, {}), + path: XM.SIGN_IN, + element: (0, QI.jsx)(KM, {}), loader: async () => { - const e = pR.getState().user, - t = pR.getState().library, - n = pR.getState().application, + const e = Wj.getState().user, + t = Wj.getState().library, + n = Wj.getState().application, r = `/game-page/${t.gameSelected}`, - i = `/${yD.OFFLINE}`; - return e.actions.isLoggedIn() ? mO(r) : n.actions.isOffline() ? mO(i) : null + i = `/${XM.OFFLINE}`; + return e.actions.isLoggedIn() ? YT(r) : n.actions.isOffline() ? YT(i) : null }, children: [{ index: !0, - element: (0, _w.jsx)(XR, {}) + element: (0, QI.jsx)(RM, {}) }, { - path: yD.SIGN_IN_MFA, - element: (0, _w.jsx)(JR, {}) + path: XM.SIGN_IN_MFA, + element: (0, QI.jsx)(DM, {}) }, { - path: yD.SIGN_IN_GAME_PACKAGE_MISSING, - element: (0, _w.jsx)(eD, {}) + path: XM.SIGN_IN_GAME_PACKAGE_MISSING, + element: (0, QI.jsx)(LM, {}) }] }, { - path: yD.OFFLINE, - element: (0, _w.jsx)(dD, {}) + path: XM.OFFLINE, + element: (0, QI.jsx)(qM, {}) }] }]), - bD = () => (0, _w.jsx)(ZA, { - router: _D, - fallbackElement: (0, _w.jsx)(sA, {}) + eF = () => (0, QI.jsx)(TL, { + router: JM, + fallbackElement: (0, QI.jsx)(UD, {}) }); - var xD = n(95), - kD = function() { + var tF = n(95), + nF = function() { return null }; - const wD = e => { + const rF = e => { e && e instanceof Function && n.e(496).then(n.bind(n, 1496)).then((({ getCLS: t, getFID: n, @@ -66915,16 +70910,16 @@ t(e), n(e), r(e), i(e), a(e) })) }; - var SD; - ! function(e = {}, t = Oo) { - window?.__SENTRY__RENDERER_INIT__ ? Qt.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 = [...Io(), cw()]), void 0 === e.stackParser && (e.stackParser = vw), void 0 === e.dsn && (e.dsn = "https://12345@dummy.dsn/12345"), void 0 === e.transport && (e.transport = uw), e.anrDetection && function(e) { + var iF; + ! function(e = {}, t = UI) { + window?.__SENTRY__RENDERER_INIT__ ? Jg.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 = [...VI(), TO()]), void 0 === e.stackParser && (e.stackParser = KI), void 0 === e.dsn && (e.dsn = "https://12345@dummy.dsn/12345"), void 0 === e.transport && (e.transport = jO), e.anrDetection && function(e) { const t = { pollInterval: 1e3, anrThreshold: 5e3, captureStackTrace: !1, ...e }, - n = lw(); + n = PO(); document.addEventListener("visibilitychange", (() => { n.sendStatus({ status: document.visibilityState, @@ -66942,307 +70937,311 @@ }(!0 === e.anrDetection ? {} : e.anrDetection), delete e.initialScope, t(e)) }({ integrations: [((e = {}) => { - Uy || (Uy = !0, $a(By), Ka(By)); + ix || (ix = !0, Jb(ax), nx(ax)); const { enableInp: t, enableLongTask: n, enableLongAnimationFrame: r, _experiments: { - enableInteractions: i + enableInteractions: i, + enableStandaloneClsSpans: a }, - beforeStartSpan: a, - idleTimeout: o, - finalTimeout: s, - childSpanTimeout: l, - markBackgroundSpan: c, - traceFetch: u, - traceXHR: d, - shouldCreateSpanForRequest: p, - enableHTTPTimings: h, - instrumentPageLoad: f, - instrumentNavigation: m + beforeStartSpan: o, + idleTimeout: s, + finalTimeout: l, + childSpanTimeout: c, + markBackgroundSpan: u, + traceFetch: d, + traceXHR: p, + shouldCreateSpanForRequest: h, + enableHTTPTimings: f, + instrumentPageLoad: m, + instrumentNavigation: g } = { - ...Yy, + ...Yx, ...e - }, g = Ty(); - t && jy(), r && PerformanceObserver.supportedEntryTypes.includes("long-animation-frame") ? new PerformanceObserver((e => { - for (const t of e.getEntries()) { - if (!jr()) return; - if (!t.scripts[0]) return; - const e = Iy(kn + t.startTime), - n = Iy(t.duration), - r = { - [hr]: "auto.ui.browser.metrics" - }, - i = t.scripts[0]; - if (i) { - const { - invoker: e, - invokerType: t, - sourceURL: n, - sourceFunctionName: a, - sourceCharPosition: o - } = i; - r["browser.script.invoker"] = e, r["browser.script.invoker_type"] = t, n && (r["code.filepath"] = n), a && (r["code.function"] = a), -1 !== o && (r["browser.script.source_char_position"] = o) + }, v = Db({ + recordClsStandaloneSpans: a || !1 + }); + t && zb(), r && Bg.PerformanceObserver && PerformanceObserver.supportedEntryTypes && PerformanceObserver.supportedEntryTypes.includes("long-animation-frame") ? new PerformanceObserver((e => { + if (wy()) + for (const t of e.getEntries()) { + if (!t.scripts[0]) continue; + const e = Ib(Rv + t.startTime), + n = Ib(t.duration), + r = { + [iy]: "auto.ui.browser.metrics" + }, + i = t.scripts[0], + { + invoker: a, + invokerType: o, + sourceURL: s, + sourceFunctionName: l, + sourceCharPosition: c + } = i; + r["browser.script.invoker"] = a, r["browser.script.invoker_type"] = o, s && (r["code.filepath"] = s), l && (r["code.function"] = l), -1 !== c && (r["browser.script.source_char_position"] = c); + const u = f_({ + name: "Main UI thread blocked", + op: "ui.long-animation-frame", + startTime: e, + attributes: r + }); + u && u.end(e + n) } - const a = yv({ - name: "Main UI thread blocked", - op: "ui.long-animation-frame", - startTime: e, - attributes: r - }); - a && a.end(e + n) - } })).observe({ type: "long-animation-frame", buffered: !0 - }) : n && hy("longtask", (({ + }) : n && hb("longtask", (({ entries: e }) => { - for (const t of e) { - if (!jr()) return; - const e = Iy(kn + t.startTime), - n = Iy(t.duration), - r = yv({ - name: "Main UI thread blocked", - op: "ui.long-task", - startTime: e, - attributes: { - [hr]: "auto.ui.browser.metrics" - } - }); - r && r.end(e + n) - } - })), i && hy("event", (({ - entries: e - }) => { - for (const t of e) { - if (!jr()) return; - if ("click" === t.name) { - const e = Iy(kn + t.startTime), - n = Iy(t.duration), - r = { - name: Bt(t.target), - op: `ui.interaction.${t.name}`, + if (wy()) + for (const t of e) { + const e = Ib(Rv + t.startTime), + n = Ib(t.duration), + r = f_({ + name: "Main UI thread blocked", + op: "ui.long-task", startTime: e, attributes: { - [hr]: "auto.ui.browser.metrics" + [iy]: "auto.ui.browser.metrics" } - }, - i = $t(t.target); - i && (r.attributes["ui.component_name"] = i); - const a = yv(r); - a && a.end(e + n) + }); + r && r.end(e + n) } - } + })), i && hb("event", (({ + entries: e + }) => { + if (wy()) + for (const t of e) + if ("click" === t.name) { + const e = Ib(Rv + t.startTime), + n = Ib(t.duration), + r = { + name: qg(t.target), + op: `ui.interaction.${t.name}`, + startTime: e, + attributes: { + [iy]: "auto.ui.browser.metrics" + } + }, + i = Kg(t.target); + i && (r.attributes["ui.component_name"] = i); + const a = f_(r); + a && a.end(e + n) + } })); - const v = { + const y = { name: void 0, source: void 0 }; - function y(e, t) { + function _(e, t) { const n = "pageload" === t.op, - r = a ? a(t) : t, + r = o ? o(t) : t, i = r.attributes || {}; - t.name !== r.name && (i[ur] = "custom", r.attributes = i), v.name = r.name, v.source = i[ur]; - const c = Vy(r, { - idleTimeout: o, - finalTimeout: s, - childSpanTimeout: l, + t.name !== r.name && (i[ty] = "custom", r.attributes = i), y.name = r.name, y.source = i[ty]; + const u = Zb(r, { + idleTimeout: s, + finalTimeout: l, + childSpanTimeout: c, disableAutoFinish: n, beforeSpanEnd: e => { - g(), Ry(e) + v(), Lb(e, { + recordClsOnPageloadSpan: !a + }) } }); - function u() { - ["interactive", "complete"].includes(da.document.readyState) && e.emit("idleSpanEnableAutoFinish", c) + function d() { + ["interactive", "complete"].includes(Ex.document.readyState) && e.emit("idleSpanEnableAutoFinish", u) } - return n && da.document && (da.document.addEventListener("readystatechange", (() => { - u() - })), u()), c + return n && Ex.document && (Ex.document.addEventListener("readystatechange", (() => { + d() + })), d()), u } return { name: "BrowserTracing", afterAllSetup(e) { - let n, r = da.location && da.location.href; + let n, r = Ex.location && Ex.location.href; e.on("startNavigationSpan", (t => { - zn() === e && (n && !Ar(n).timestamp && (ta && Qt.log(`[Tracing] Finishing current root span with op: ${Ar(n).op}`), n.end()), n = y(e, { + Xv() === e && (n && !my(n).timestamp && (ox && Jg.log(`[Tracing] Finishing current root span with op: ${my(n).op}`), n.end()), n = _(e, { op: "navigation", ...t })) })), e.on("startPageLoadSpan", ((t, r = {}) => { - if (zn() !== e) return; - n && !Ar(n).timestamp && (ta && Qt.log(`[Tracing] Finishing current root span with op: ${Ar(n).op}`), n.end()); - const i = _r(r.sentryTrace || Qy("sentry-trace"), r.baggage || Qy("baggage")); - Mn().setPropagationContext(i), n = y(e, { + if (Xv() !== e) return; + n && !my(n).timestamp && (ox && Jg.log(`[Tracing] Finishing current root span with op: ${my(n).op}`), n.end()); + const i = Iv(r.sentryTrace || Qx("sentry-trace"), r.baggage || Qx("baggage")); + Yv().setPropagationContext(i), n = _(e, { op: "pageload", ...t }) })), e.on("spanEnd", (e => { - const t = Ar(e).op; - if (e !== Mr(e) || "navigation" !== t && "pageload" !== t) return; - const n = Mn(), + const t = my(e).op; + if (e !== ky(e) || "navigation" !== t && "pageload" !== t) return; + const n = Yv(), r = n.getPropagationContext(); n.setPropagationContext({ ...r, - sampled: void 0 !== r.sampled ? r.sampled : Pr(e), - dsc: r.dsc || Ur(e) + sampled: void 0 !== r.sampled ? r.sampled : gy(e), + dsc: r.dsc || Ay(e) }) - })), da.location && (f && function(e, t, n) { - e.emit("startPageLoadSpan", t, n), Mn().setTransactionName(t.name); - const r = jr(), - i = r && Ar(r).op + })), Ex.location && (m && function(e, t, n) { + e.emit("startPageLoadSpan", t, n), Yv().setTransactionName(t.name); + const r = wy(), + i = r && my(r).op }(e, { - name: da.location.pathname, - startTime: kn ? kn / 1e3 : void 0, + name: Ex.location.pathname, + startTime: Rv ? Rv / 1e3 : void 0, attributes: { - [ur]: "url", - [hr]: "auto.pageload.browser" + [ty]: "url", + [iy]: "auto.pageload.browser" } - }), m && Ni((({ + }), g && Kb((({ to: t, from: n }) => { void 0 === n && r && -1 !== r.indexOf(t) ? r = void 0 : n !== t && (r = void 0, function(e, t) { - jn().setPropagationContext(yn()), Mn().setPropagationContext(yn()), e.emit("startNavigationSpan", t), Mn().setTransactionName(t.name); - const n = jr(), - r = n && Ar(n).op + Qv().setPropagationContext(Nv()), Yv().setPropagationContext(Nv()), e.emit("startNavigationSpan", t), Yv().setTransactionName(t.name); + const n = wy(), + r = n && my(n).op }(e, { - name: da.location.pathname, + name: Ex.location.pathname, attributes: { - [ur]: "url", - [hr]: "auto.navigation.browser" + [ty]: "url", + [iy]: "auto.navigation.browser" } })) - }))), c && (da && da.document ? da.document.addEventListener("visibilitychange", (() => { - const e = jr(); + }))), u && (Ex && Ex.document ? Ex.document.addEventListener("visibilitychange", (() => { + const e = wy(); if (!e) return; - const t = Mr(e); - if (da.document.hidden && t) { + const t = ky(e); + if (Ex.document.hidden && t) { const e = "cancelled", { op: n, status: r - } = Ar(t); - ta && Qt.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`), r || t.setStatus({ + } = my(t); + ox && Jg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`), r || t.setStatus({ code: 2, message: e }), t.setAttribute("sentry.cancellation_reason", "document.hidden"), t.end() } - })) : ta && Qt.warn("[Tracing] Could not set up background tab detection due to lack of global document")), i && function(e, t, n, r) { + })) : ox && Jg.warn("[Tracing] Could not set up background tab detection due to lack of global document")), i && function(e, t, n, r) { let i; const a = () => { const a = "ui.action.click", - o = jr(), - s = o && Mr(o); + o = wy(), + s = o && ky(o); if (s) { - const e = Ar(s).op; - if (["navigation", "pageload"].includes(e)) return void(ta && Qt.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`)) + const e = my(s).op; + if (["navigation", "pageload"].includes(e)) return void(ox && Jg.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`)) } - i && (i.setAttribute(fr, "interactionInterrupted"), i.end(), i = void 0), r.name ? i = Vy({ + i && (i.setAttribute(ay, "interactionInterrupted"), i.end(), i = void 0), r.name ? i = Zb({ name: r.name, op: a, attributes: { - [ur]: r.source || "url" + [ty]: r.source || "url" } }, { idleTimeout: e, finalTimeout: t, childSpanTimeout: n - }) : ta && Qt.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`) + }) : ox && Jg.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`) }; - da.document && addEventListener("click", a, { + Ex.document && addEventListener("click", a, { once: !1, capture: !0 }) - }(o, s, l, v), t && function(e) { + }(s, l, c, y), t && function(e) { const t = ({ entries: e }) => { - const t = jr(), - n = t && Mr(t); + const t = wy(), + n = t && ky(t); e.forEach((e => { if (! function(e) { return "duration" in e }(e) || !n) return; const t = e.interactionId; - if (null != t && !My.has(t)) { - if (Ny.length > 10) { - const e = Ny.shift(); - My.delete(e) + if (null != t && !Fb.has(t)) { + if (Mb.length > 10) { + const e = Mb.shift(); + Fb.delete(e) } - Ny.push(t), My.set(t, n) + Mb.push(t), Fb.set(t, n) } })) }; - hy("event", t), hy("first-input", t) - }(), $y({ - traceFetch: u, - traceXHR: d, + hb("event", t), hb("first-input", t) + }(), qx(e, { + traceFetch: d, + traceXHR: p, tracePropagationTargets: e.getOptions().tracePropagationTargets, - shouldCreateSpanForRequest: p, - enableHTTPTimings: h + shouldCreateSpanForRequest: h, + enableHTTPTimings: f }) } } - })(), new tw(SD)] + })(), new _O(iF)] }, (function(e) { const t = { ...e }; - return ea(t, "react"), Zr("react", { + var n, r; + return Oi(t, "react"), n = "react", r = { version: Ee.version - }), Oo(t) + }, Ln().setContext(n, r), Wa(t) })); - const ED = Ee.lazy((() => n.e(803).then(n.bind(n, 803)).then((e => ({ + const aF = Ee.lazy((() => n.e(803).then(n.bind(n, 803)).then((e => ({ default: e.ReactQueryDevtools }))))), - ID = () => { + oF = () => { const [e, t] = Ee.useState(!1), { reduceMotion: n - } = pR((e => e.settings.appSettings.accessibility)); + } = Wj((e => e.settings.appSettings.accessibility)); return (0, Ee.useEffect)((() => { window.toggleDevtools = () => t((e => !e)) }), []), (async () => { - const e = pR.getState().application, - t = pR.getState().library, - n = pR.getState().soundSystem, - r = pR.getState().authentication, - i = pR.getState().settings, - a = pR.getState().installer, - o = pR.getState().status, - s = pR.getState().user; + const e = Wj.getState().application, + t = Wj.getState().library, + n = Wj.getState().soundSystem, + r = Wj.getState().authentication, + i = Wj.getState().settings, + a = Wj.getState().installer, + o = Wj.getState().status, + s = Wj.getState().user; e.isAppInitialized || (await e.actions.initializeApplication(), await n.actions.initializeSoundContext(), await r.actions.initializeAuthentication(), await s.actions.initializeUser(), await t.actions.initializeLibrary(), await i.actions.initializeApplicationSettings(), await i.actions.initializeGameSettings(), await a.actions.initializeInstaller(), await o.actions.initializeStatus()) - })(), (0, _w.jsx)(Ee.StrictMode, { - children: (0, _w.jsx)(Ro, { - fallback: (0, _w.jsx)("p", { + })(), (0, QI.jsx)(Ee.StrictMode, { + children: (0, QI.jsx)(Za, { + fallback: (0, QI.jsx)("p", { children: "An error has occurred" }), - children: (0, _w.jsx)(vR, { - children: (0, _w.jsx)(_R.aH, { - client: aI, - children: (0, _w.jsxs)(Ls, { - reduceMotion: null !== n && void 0 !== n ? n : DT.reduceMotion, - children: [(0, _w.jsx)(Ps, { - value: iP, - children: (0, _w.jsx)(LA.Provider, { - children: (0, _w.jsx)(bD, {}) + children: (0, QI.jsx)(Zj, { + children: (0, QI.jsx)(Jj.aH, { + client: FP, + children: (0, QI.jsxs)(es, { + reduceMotion: null !== n && void 0 !== n ? n : hj.reduceMotion, + children: [(0, QI.jsx)(Qo, { + value: FL, + children: (0, QI.jsx)(fL.Provider, { + children: (0, QI.jsx)(eF, {}) }) - }), (0, _w.jsx)(kD, { + }), (0, QI.jsx)(nF, { initialIsOpen: !0 - }), e && (0, _w.jsx)(Ee.Suspense, { + }), e && (0, QI.jsx)(Ee.Suspense, { fallback: null, - children: (0, _w.jsx)(ED, {}) + children: (0, QI.jsx)(aF, {}) })] }) }) }) - }, HT()) + }, Ij()) }) }; - xD.createRoot(document.getElementById("root")).render((0, _w.jsx)(ID, {})), wD() + tF.createRoot(document.getElementById("root")).render((0, QI.jsx)(oF, {})), rF() })() })(); -//# sourceMappingURL=main.d5394d7f.js.map \ No newline at end of file +//# sourceMappingURL=main.549254fe.js.map +//# debugId=e6864d39-081c-59b1-8d96-f1bfc303b3db \ No newline at end of file