RSILauncherEnhance/main.js
2024-09-09 21:22:00 +08:00

58860 lines
2.8 MiB
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see main.ee192c58.js.LICENSE.txt */
(() => {
const SC_TOOLBOX_ENABLED_LOCALIZATION = "en";
const SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST = false;
var e = {
1114: (e, t, n) => {
"use strict";
var r = n(1479),
i = n(4811);
function a(e) {
for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]);
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
}
var o = new Set,
s = {};
function l(e, t) {
c(e, t), c(e + "Capture", t)
}
function c(e, t) {
for (s[e] = t, e = 0; e < t.length; e++) o.add(t[e])
}
var u = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement),
d = Object.prototype.hasOwnProperty,
p = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,
h = {},
f = {};
function m(e, t, n, r, i, a, o) {
this.acceptsBooleans = 2 === t || 3 === t || 4 === t, this.attributeName = r, this.attributeNamespace = i, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = a, this.removeEmptyString = o
}
var g = {};
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e) {
g[e] = new m(e, 0, !1, e, null, !1, !1)
})), [
["acceptCharset", "accept-charset"],
["className", "class"],
["htmlFor", "for"],
["httpEquiv", "http-equiv"]
].forEach((function(e) {
var t = e[0];
g[t] = new m(t, 1, !1, e[1], null, !1, !1)
})), ["contentEditable", "draggable", "spellCheck", "value"].forEach((function(e) {
g[e] = new m(e, 2, !1, e.toLowerCase(), null, !1, !1)
})), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach((function(e) {
g[e] = new m(e, 2, !1, e, null, !1, !1)
})), "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e) {
g[e] = new m(e, 3, !1, e.toLowerCase(), null, !1, !1)
})), ["checked", "multiple", "muted", "selected"].forEach((function(e) {
g[e] = new m(e, 3, !0, e, null, !1, !1)
})), ["capture", "download"].forEach((function(e) {
g[e] = new m(e, 4, !1, e, null, !1, !1)
})), ["cols", "rows", "size", "span"].forEach((function(e) {
g[e] = new m(e, 6, !1, e, null, !1, !1)
})), ["rowSpan", "start"].forEach((function(e) {
g[e] = new m(e, 5, !1, e.toLowerCase(), null, !1, !1)
}));
var v = /[\-:]([a-z])/g;
function _(e) {
return e[1].toUpperCase()
}
function y(e, t, n, r) {
var i = g.hasOwnProperty(t) ? g[t] : null;
(null !== i ? 0 !== i.type : r || !(2 < t.length) || "o" !== t[0] && "O" !== t[0] || "n" !== t[1] && "N" !== t[1]) && (function(e, t, n, r) {
if (null === t || "undefined" === typeof t || function(e, t, n, r) {
if (null !== n && 0 === n.type) return !1;
switch (typeof t) {
case "function":
case "symbol":
return !0;
case "boolean":
return !r && (null !== n ? !n.acceptsBooleans : "data-" !== (e = e.toLowerCase().slice(0, 5)) && "aria-" !== e);
default:
return !1
}
}(e, t, n, r)) return !0;
if (r) return !1;
if (null !== n) switch (n.type) {
case 3:
return !t;
case 4:
return !1 === t;
case 5:
return isNaN(t);
case 6:
return isNaN(t) || 1 > t
}
return !1
}(t, n, i, r) && (n = null), r || null === i ? function(e) {
return !!d.call(f, e) || !d.call(h, e) && (p.test(e) ? f[e] = !0 : (h[e] = !0, !1))
}(t) && (null === n ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : i.mustUseProperty ? e[i.propertyName] = null === n ? 3 !== i.type && "" : n : (t = i.attributeName, r = i.attributeNamespace, null === n ? e.removeAttribute(t) : (n = 3 === (i = i.type) || 4 === i && !0 === n ? "" : "" + n, r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n))))
}
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e) {
var t = e.replace(v, _);
g[t] = new m(t, 1, !1, e, null, !1, !1)
})), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e) {
var t = e.replace(v, _);
g[t] = new m(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1)
})), ["xml:base", "xml:lang", "xml:space"].forEach((function(e) {
var t = e.replace(v, _);
g[t] = new m(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1)
})), ["tabIndex", "crossOrigin"].forEach((function(e) {
g[e] = new m(e, 1, !1, e.toLowerCase(), null, !1, !1)
})), g.xlinkHref = new m("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach((function(e) {
g[e] = new m(e, 1, !1, e.toLowerCase(), null, !0, !0)
}));
var b = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
x = Symbol.for("react.element"),
w = Symbol.for("react.portal"),
k = Symbol.for("react.fragment"),
E = Symbol.for("react.strict_mode"),
S = Symbol.for("react.profiler"),
O = Symbol.for("react.provider"),
P = Symbol.for("react.context"),
I = Symbol.for("react.forward_ref"),
A = Symbol.for("react.suspense"),
C = Symbol.for("react.suspense_list"),
R = Symbol.for("react.memo"),
T = Symbol.for("react.lazy");
Symbol.for("react.scope"), Symbol.for("react.debug_trace_mode");
var D = Symbol.for("react.offscreen");
Symbol.for("react.legacy_hidden"), Symbol.for("react.cache"), Symbol.for("react.tracing_marker");
var N = Symbol.iterator;
function L(e) {
return null === e || "object" !== typeof e ? null : "function" === typeof(e = N && e[N] || e["@@iterator"]) ? e : null
}
var j, M = Object.assign;
function z(e) {
if (void 0 === j) try {
throw Error()
} catch (n) {
var t = n.stack.trim().match(/\n( *(at )?)/);
j = t && t[1] || ""
}
return "\n" + j + e
}
var F = !1;
function U(e, t) {
if (!e || F) return "";
F = !0;
var n = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
if (t)
if (t = function() {
throw Error()
}, Object.defineProperty(t.prototype, "props", {
set: function() {
throw Error()
}
}), "object" === typeof Reflect && Reflect.construct) {
try {
Reflect.construct(t, [])
} catch (c) {
var r = c
}
Reflect.construct(e, [], t)
} else {
try {
t.call()
} catch (c) {
r = c
}
e.call(t.prototype)
}
else {
try {
throw Error()
} catch (c) {
r = c
}
e()
}
} catch (c) {
if (c && r && "string" === typeof c.stack) {
for (var i = c.stack.split("\n"), a = r.stack.split("\n"), o = i.length - 1, s = a.length - 1; 1 <= o && 0 <= s && i[o] !== a[s];) s--;
for (; 1 <= o && 0 <= s; o--, s--)
if (i[o] !== a[s]) {
if (1 !== o || 1 !== s)
do {
if (o--, 0 > --s || i[o] !== a[s]) {
var l = "\n" + i[o].replace(" at new ", " at ");
return e.displayName && l.includes("<anonymous>") && (l = l.replace("<anonymous>", e.displayName)), l
}
} while (1 <= o && 0 <= s);
break
}
}
} finally {
F = !1, Error.prepareStackTrace = n
}
return (e = e ? e.displayName || e.name : "") ? z(e) : ""
}
function V(e) {
switch (e.tag) {
case 5:
return z(e.type);
case 16:
return z("Lazy");
case 13:
return z("Suspense");
case 19:
return z("SuspenseList");
case 0:
case 2:
case 15:
return e = U(e.type, !1);
case 11:
return e = U(e.type.render, !1);
case 1:
return e = U(e.type, !0);
default:
return ""
}
}
function G(e) {
if (null == e) return null;
if ("function" === typeof e) return e.displayName || e.name || null;
if ("string" === typeof e) return e;
switch (e) {
case k:
return "Fragment";
case w:
return "Portal";
case S:
return "Profiler";
case E:
return "StrictMode";
case A:
return "Suspense";
case C:
return "SuspenseList"
}
if ("object" === typeof e) switch (e.$$typeof) {
case P:
return (e.displayName || "Context") + ".Consumer";
case O:
return (e._context.displayName || "Context") + ".Provider";
case I:
var t = e.render;
return (e = e.displayName) || (e = "" !== (e = t.displayName || t.name || "") ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
case R:
return null !== (t = e.displayName || null) ? t : G(e.type) || "Memo";
case T:
t = e._payload, e = e._init;
try {
return G(e(t))
} catch (n) {}
}
return null
}
function B(e) {
var t = e.type;
switch (e.tag) {
case 24:
return "Cache";
case 9:
return (t.displayName || "Context") + ".Consumer";
case 10:
return (t._context.displayName || "Context") + ".Provider";
case 18:
return "DehydratedFragment";
case 11:
return e = (e = t.render).displayName || e.name || "", t.displayName || ("" !== e ? "ForwardRef(" + e + ")" : "ForwardRef");
case 7:
return "Fragment";
case 5:
return t;
case 4:
return "Portal";
case 3:
return "Root";
case 6:
return "Text";
case 16:
return G(t);
case 8:
return t === E ? "StrictMode" : "Mode";
case 22:
return "Offscreen";
case 12:
return "Profiler";
case 21:
return "Scope";
case 13:
return "Suspense";
case 19:
return "SuspenseList";
case 25:
return "TracingMarker";
case 1:
case 0:
case 17:
case 2:
case 14:
case 15:
if ("function" === typeof t) return t.displayName || t.name || null;
if ("string" === typeof t) return t
}
return null
}
function $(e) {
switch (typeof e) {
case "boolean":
case "number":
case "string":
case "undefined":
case "object":
return e;
default:
return ""
}
}
function q(e) {
var t = e.type;
return (e = e.nodeName) && "input" === e.toLowerCase() && ("checkbox" === t || "radio" === t)
}
function W(e) {
e._valueTracker || (e._valueTracker = function(e) {
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) {
var i = n.get,
a = n.set;
return Object.defineProperty(e, t, {
configurable: !0,
get: function() {
return i.call(this)
},
set: function(e) {
r = "" + e, a.call(this, e)
}
}), Object.defineProperty(e, t, {
enumerable: n.enumerable
}), {
getValue: function() {
return r
},
setValue: function(e) {
r = "" + e
},
stopTracking: function() {
e._valueTracker = null, delete e[t]
}
}
}
}(e))
}
function H(e) {
if (!e) return !1;
var t = e._valueTracker;
if (!t) return !0;
var n = t.getValue(),
r = "";
return e && (r = q(e) ? e.checked ? "true" : "false" : e.value), (e = r) !== n && (t.setValue(e), !0)
}
function Y(e) {
if ("undefined" === typeof(e = e || ("undefined" !== typeof document ? document : void 0))) return null;
try {
return e.activeElement || e.body
} catch (t) {
return e.body
}
}
function K(e, t) {
var n = t.checked;
return M({}, t, {
defaultChecked: void 0,
defaultValue: void 0,
value: void 0,
checked: null != n ? n : e._wrapperState.initialChecked
})
}
function Q(e, t) {
var n = null == t.defaultValue ? "" : t.defaultValue,
r = null != t.checked ? t.checked : t.defaultChecked;
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
}
}
function Z(e, t) {
null != (t = t.checked) && y(e, "checked", t, !1)
}
function X(e, t) {
Z(e, t);
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, $(t.defaultValue)), null == t.checked && null != t.defaultChecked && (e.defaultChecked = !!t.defaultChecked)
}
function J(e, t, n) {
if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) {
var r = t.type;
if (!("submit" !== r && "reset" !== r || void 0 !== t.value && null !== t.value)) return;
t = "" + e._wrapperState.initialValue, n || t === e.value || (e.value = t), e.defaultValue = t
}
"" !== (n = e.name) && (e.name = ""), e.defaultChecked = !!e._wrapperState.initialChecked, "" !== n && (e.name = n)
}
function ee(e, t, n) {
"number" === t && Y(e.ownerDocument) === e || (null == n ? e.defaultValue = "" + e._wrapperState.initialValue : e.defaultValue !== "" + n && (e.defaultValue = "" + n))
}
var te = Array.isArray;
function ne(e, t, n, r) {
if (e = e.options, t) {
t = {};
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 = "" + $(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])
}
null !== t && (t.selected = !0)
}
}
function re(e, t) {
if (null != t.dangerouslySetInnerHTML) throw Error(a(91));
return M({}, t, {
value: void 0,
defaultValue: void 0,
children: "" + e._wrapperState.initialValue
})
}
function ie(e, t) {
var n = t.value;
if (null == n) {
if (n = t.children, t = t.defaultValue, null != n) {
if (null != t) throw Error(a(92));
if (te(n)) {
if (1 < n.length) throw Error(a(93));
n = n[0]
}
t = n
}
null == t && (t = ""), n = t
}
e._wrapperState = {
initialValue: $(n)
}
}
function ae(e, t) {
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)
}
function oe(e) {
var t = e.textContent;
t === e._wrapperState.initialValue && "" !== t && null !== t && (e.value = t)
}
function se(e) {
switch (e) {
case "svg":
return "http://www.w3.org/2000/svg";
case "math":
return "http://www.w3.org/1998/Math/MathML";
default:
return "http://www.w3.org/1999/xhtml"
}
}
function le(e, t) {
return null == e || "http://www.w3.org/1999/xhtml" === e ? se(t) : "http://www.w3.org/2000/svg" === e && "foreignObject" === t ? "http://www.w3.org/1999/xhtml" : e
}
var ce, ue, de = (ue = function(e, t) {
if ("http://www.w3.org/2000/svg" !== e.namespaceURI || "innerHTML" in e) e.innerHTML = t;
else {
for ((ce = ce || document.createElement("div")).innerHTML = "<svg>" + t.valueOf().toString() + "</svg>", t = ce.firstChild; e.firstChild;) e.removeChild(e.firstChild);
for (; t.firstChild;) e.appendChild(t.firstChild)
}
}, "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function(e, t, n, r) {
MSApp.execUnsafeLocalFunction((function() {
return ue(e, t)
}))
} : ue);
function pe(e, t) {
if (t) {
var n = e.firstChild;
if (n && n === e.lastChild && 3 === n.nodeType) return void(n.nodeValue = t)
}
e.textContent = t
}
var he = {
animationIterationCount: !0,
aspectRatio: !0,
borderImageOutset: !0,
borderImageSlice: !0,
borderImageWidth: !0,
boxFlex: !0,
boxFlexGroup: !0,
boxOrdinalGroup: !0,
columnCount: !0,
columns: !0,
flex: !0,
flexGrow: !0,
flexPositive: !0,
flexShrink: !0,
flexNegative: !0,
flexOrder: !0,
gridArea: !0,
gridRow: !0,
gridRowEnd: !0,
gridRowSpan: !0,
gridRowStart: !0,
gridColumn: !0,
gridColumnEnd: !0,
gridColumnSpan: !0,
gridColumnStart: !0,
fontWeight: !0,
lineClamp: !0,
lineHeight: !0,
opacity: !0,
order: !0,
orphans: !0,
tabSize: !0,
widows: !0,
zIndex: !0,
zoom: !0,
fillOpacity: !0,
floodOpacity: !0,
stopOpacity: !0,
strokeDasharray: !0,
strokeDashoffset: !0,
strokeMiterlimit: !0,
strokeOpacity: !0,
strokeWidth: !0
},
fe = ["Webkit", "ms", "Moz", "O"];
function me(e, t, n) {
return null == t || "boolean" === typeof t || "" === t ? "" : n || "number" !== typeof t || 0 === t || he.hasOwnProperty(e) && he[e] ? ("" + t).trim() : t + "px"
}
function ge(e, t) {
for (var n in e = e.style, t)
if (t.hasOwnProperty(n)) {
var r = 0 === n.indexOf("--"),
i = me(n, t[n], r);
"float" === n && (n = "cssFloat"), r ? e.setProperty(n, i) : e[n] = i
}
}
Object.keys(he).forEach((function(e) {
fe.forEach((function(t) {
t = t + e.charAt(0).toUpperCase() + e.substring(1), he[t] = he[e]
}))
}));
var ve = M({
menuitem: !0
}, {
area: !0,
base: !0,
br: !0,
col: !0,
embed: !0,
hr: !0,
img: !0,
input: !0,
keygen: !0,
link: !0,
meta: !0,
param: !0,
source: !0,
track: !0,
wbr: !0
});
function _e(e, t) {
if (t) {
if (ve[e] && (null != t.children || null != t.dangerouslySetInnerHTML)) throw Error(a(137, e));
if (null != t.dangerouslySetInnerHTML) {
if (null != t.children) throw Error(a(60));
if ("object" !== typeof t.dangerouslySetInnerHTML || !("__html" in t.dangerouslySetInnerHTML)) throw Error(a(61))
}
if (null != t.style && "object" !== typeof t.style) throw Error(a(62))
}
}
function ye(e, t) {
if (-1 === e.indexOf("-")) return "string" === typeof t.is;
switch (e) {
case "annotation-xml":
case "color-profile":
case "font-face":
case "font-face-src":
case "font-face-uri":
case "font-face-format":
case "font-face-name":
case "missing-glyph":
return !1;
default:
return !0
}
}
var be = null;
function xe(e) {
return (e = e.target || e.srcElement || window).correspondingUseElement && (e = e.correspondingUseElement), 3 === e.nodeType ? e.parentNode : e
}
var we = null,
ke = null,
Ee = null;
function Se(e) {
if (e = yi(e)) {
if ("function" !== typeof we) throw Error(a(280));
var t = e.stateNode;
t && (t = xi(t), we(e.stateNode, e.type, t))
}
}
function Oe(e) {
ke ? Ee ? Ee.push(e) : Ee = [e] : ke = e
}
function Pe() {
if (ke) {
var e = ke,
t = Ee;
if (Ee = ke = null, Se(e), t)
for (e = 0; e < t.length; e++) Se(t[e])
}
}
function Ie(e, t) {
return e(t)
}
function Ae() {}
var Ce = !1;
function Re(e, t, n) {
if (Ce) return e(t, n);
Ce = !0;
try {
return Ie(e, t, n)
} finally {
Ce = !1, (null !== ke || null !== Ee) && (Ae(), Pe())
}
}
function Te(e, t) {
var n = e.stateNode;
if (null === n) return null;
var r = xi(n);
if (null === r) return null;
n = r[t];
e: switch (t) {
case "onClick":
case "onClickCapture":
case "onDoubleClick":
case "onDoubleClickCapture":
case "onMouseDown":
case "onMouseDownCapture":
case "onMouseMove":
case "onMouseMoveCapture":
case "onMouseUp":
case "onMouseUpCapture":
case "onMouseEnter":
(r = !r.disabled) || (r = !("button" === (e = e.type) || "input" === e || "select" === e || "textarea" === e)), e = !r;
break e;
default:
e = !1
}
if (e) return null;
if (n && "function" !== typeof n) throw Error(a(231, t, typeof n));
return n
}
var De = !1;
if (u) try {
var Ne = {};
Object.defineProperty(Ne, "passive", {
get: function() {
De = !0
}
}), window.addEventListener("test", Ne, Ne), window.removeEventListener("test", Ne, Ne)
} catch (ue) {
De = !1
}
function Le(e, t, n, r, i, a, o, s, l) {
var c = Array.prototype.slice.call(arguments, 3);
try {
t.apply(n, c)
} catch (u) {
this.onError(u)
}
}
var je = !1,
Me = null,
ze = !1,
Fe = null,
Ue = {
onError: function(e) {
je = !0, Me = e
}
};
function Ve(e, t, n, r, i, a, o, s, l) {
je = !1, Me = null, Le.apply(Ue, arguments)
}
function Ge(e) {
var t = e,
n = e;
if (e.alternate)
for (; t.return;) t = t.return;
else {
e = t;
do {
0 !== (4098 & (t = e).flags) && (n = t.return), e = t.return
} while (e)
}
return 3 === t.tag ? n : null
}
function Be(e) {
if (13 === e.tag) {
var t = e.memoizedState;
if (null === t && (null !== (e = e.alternate) && (t = e.memoizedState)), null !== t) return t.dehydrated
}
return null
}
function $e(e) {
if (Ge(e) !== e) throw Error(a(188))
}
function qe(e) {
return null !== (e = function(e) {
var t = e.alternate;
if (!t) {
if (null === (t = Ge(e))) throw Error(a(188));
return t !== e ? null : e
}
for (var n = e, r = t;;) {
var i = n.return;
if (null === i) break;
var o = i.alternate;
if (null === o) {
if (null !== (r = i.return)) {
n = r;
continue
}
break
}
if (i.child === o.child) {
for (o = i.child; o;) {
if (o === n) return $e(i), e;
if (o === r) return $e(i), t;
o = o.sibling
}
throw Error(a(188))
}
if (n.return !== r.return) n = i, r = o;
else {
for (var s = !1, l = i.child; l;) {
if (l === n) {
s = !0, n = i, r = o;
break
}
if (l === r) {
s = !0, r = i, n = o;
break
}
l = l.sibling
}
if (!s) {
for (l = o.child; l;) {
if (l === n) {
s = !0, n = o, r = i;
break
}
if (l === r) {
s = !0, r = o, n = i;
break
}
l = l.sibling
}
if (!s) throw Error(a(189))
}
}
if (n.alternate !== r) throw Error(a(190))
}
if (3 !== n.tag) throw Error(a(188));
return n.stateNode.current === n ? e : t
}(e)) ? We(e) : null
}
function We(e) {
if (5 === e.tag || 6 === e.tag) return e;
for (e = e.child; null !== e;) {
var t = We(e);
if (null !== t) return t;
e = e.sibling
}
return null
}
var He = i.unstable_scheduleCallback,
Ye = i.unstable_cancelCallback,
Ke = i.unstable_shouldYield,
Qe = i.unstable_requestPaint,
Ze = i.unstable_now,
Xe = i.unstable_getCurrentPriorityLevel,
Je = i.unstable_ImmediatePriority,
et = i.unstable_UserBlockingPriority,
tt = i.unstable_NormalPriority,
nt = i.unstable_LowPriority,
rt = i.unstable_IdlePriority,
it = null,
at = null;
var ot = Math.clz32 ? Math.clz32 : function(e) {
return e >>>= 0, 0 === e ? 32 : 31 - (st(e) / lt | 0) | 0
},
st = Math.log,
lt = Math.LN2;
var ct = 64,
ut = 4194304;
function dt(e) {
switch (e & -e) {
case 1:
return 1;
case 2:
return 2;
case 4:
return 4;
case 8:
return 8;
case 16:
return 16;
case 32:
return 32;
case 64:
case 128:
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
case 262144:
case 524288:
case 1048576:
case 2097152:
return 4194240 & e;
case 4194304:
case 8388608:
case 16777216:
case 33554432:
case 67108864:
return 130023424 & e;
case 134217728:
return 134217728;
case 268435456:
return 268435456;
case 536870912:
return 536870912;
case 1073741824:
return 1073741824;
default:
return e
}
}
function pt(e, t) {
var n = e.pendingLanes;
if (0 === n) return 0;
var r = 0,
i = e.suspendedLanes,
a = e.pingedLanes,
o = 268435455 & n;
if (0 !== o) {
var s = o & ~i;
0 !== s ? r = dt(s) : 0 !== (a &= o) && (r = dt(a))
} else 0 !== (o = n & ~i) ? r = dt(o) : 0 !== a && (r = dt(a));
if (0 === r) return 0;
if (0 !== t && t !== r && 0 === (t & i) && ((i = r & -r) >= (a = t & -t) || 16 === i && 0 !== (4194240 & a))) return t;
if (0 !== (4 & r) && (r |= 16 & n), 0 !== (t = e.entangledLanes))
for (e = e.entanglements, t &= r; 0 < t;) i = 1 << (n = 31 - ot(t)), r |= e[n], t &= ~i;
return r
}
function ht(e, t) {
switch (e) {
case 1:
case 2:
case 4:
return t + 250;
case 8:
case 16:
case 32:
case 64:
case 128:
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
case 262144:
case 524288:
case 1048576:
case 2097152:
return t + 5e3;
default:
return -1
}
}
function ft(e) {
return 0 !== (e = -1073741825 & e.pendingLanes) ? e : 1073741824 & e ? 1073741824 : 0
}
function mt() {
var e = ct;
return 0 === (4194240 & (ct <<= 1)) && (ct = 64), e
}
function gt(e) {
for (var t = [], n = 0; 31 > n; n++) t.push(e);
return t
}
function vt(e, t, n) {
e.pendingLanes |= t, 536870912 !== t && (e.suspendedLanes = 0, e.pingedLanes = 0), (e = e.eventTimes)[t = 31 - ot(t)] = n
}
function _t(e, t) {
var n = e.entangledLanes |= t;
for (e = e.entanglements; n;) {
var r = 31 - ot(n),
i = 1 << r;
i & t | e[r] & t && (e[r] |= t), n &= ~i
}
}
var yt = 0;
function bt(e) {
return 1 < (e &= -e) ? 4 < e ? 0 !== (268435455 & e) ? 16 : 536870912 : 4 : 1
}
var xt, wt, kt, Et, St, Ot = !1,
Pt = [],
It = null,
At = null,
Ct = null,
Rt = new Map,
Tt = new Map,
Dt = [],
Nt = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
function Lt(e, t) {
switch (e) {
case "focusin":
case "focusout":
It = null;
break;
case "dragenter":
case "dragleave":
At = null;
break;
case "mouseover":
case "mouseout":
Ct = null;
break;
case "pointerover":
case "pointerout":
Rt.delete(t.pointerId);
break;
case "gotpointercapture":
case "lostpointercapture":
Tt.delete(t.pointerId)
}
}
function jt(e, t, n, r, i, a) {
return null === e || e.nativeEvent !== a ? (e = {
blockedOn: t,
domEventName: n,
eventSystemFlags: r,
nativeEvent: a,
targetContainers: [i]
}, null !== t && (null !== (t = yi(t)) && wt(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, null !== i && -1 === t.indexOf(i) && t.push(i), e)
}
function Mt(e) {
var t = _i(e.target);
if (null !== t) {
var n = Ge(t);
if (null !== n)
if (13 === (t = n.tag)) {
if (null !== (t = Be(n))) return e.blockedOn = t, void St(e.priority, (function() {
kt(n)
}))
} else if (3 === t && n.stateNode.current.memoizedState.isDehydrated) return void(e.blockedOn = 3 === n.tag ? n.stateNode.containerInfo : null)
}
e.blockedOn = null
}
function zt(e) {
if (null !== e.blockedOn) return !1;
for (var t = e.targetContainers; 0 < t.length;) {
var n = Kt(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent);
if (null !== n) return null !== (t = yi(n)) && wt(t), e.blockedOn = n, !1;
var r = new(n = e.nativeEvent).constructor(n.type, n);
be = r, n.target.dispatchEvent(r), be = null, t.shift()
}
return !0
}
function Ft(e, t, n) {
zt(e) && n.delete(t)
}
function Ut() {
Ot = !1, null !== It && zt(It) && (It = null), null !== At && zt(At) && (At = null), null !== Ct && zt(Ct) && (Ct = null), Rt.forEach(Ft), Tt.forEach(Ft)
}
function Vt(e, t) {
e.blockedOn === t && (e.blockedOn = null, Ot || (Ot = !0, i.unstable_scheduleCallback(i.unstable_NormalPriority, Ut)))
}
function Gt(e) {
function t(t) {
return Vt(t, e)
}
if (0 < Pt.length) {
Vt(Pt[0], e);
for (var n = 1; n < Pt.length; n++) {
var r = Pt[n];
r.blockedOn === e && (r.blockedOn = null)
}
}
for (null !== It && Vt(It, e), null !== At && Vt(At, e), null !== Ct && Vt(Ct, e), Rt.forEach(t), Tt.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;) Mt(n), null === n.blockedOn && Dt.shift()
}
var Bt = b.ReactCurrentBatchConfig,
$t = !0;
function qt(e, t, n, r) {
var i = yt,
a = Bt.transition;
Bt.transition = null;
try {
yt = 1, Ht(e, t, n, r)
} finally {
yt = i, Bt.transition = a
}
}
function Wt(e, t, n, r) {
var i = yt,
a = Bt.transition;
Bt.transition = null;
try {
yt = 4, Ht(e, t, n, r)
} finally {
yt = i, Bt.transition = a
}
}
function Ht(e, t, n, r) {
if ($t) {
var i = Kt(e, t, n, r);
if (null === i) $r(e, t, r, Yt, n), Lt(e, r);
else if (function(e, t, n, r, i) {
switch (t) {
case "focusin":
return It = jt(It, e, t, n, r, i), !0;
case "dragenter":
return At = jt(At, e, t, n, r, i), !0;
case "mouseover":
return Ct = jt(Ct, e, t, n, r, i), !0;
case "pointerover":
var a = i.pointerId;
return Rt.set(a, jt(Rt.get(a) || null, e, t, n, r, i)), !0;
case "gotpointercapture":
return a = i.pointerId, Tt.set(a, jt(Tt.get(a) || null, e, t, n, r, i)), !0
}
return !1
}(i, e, t, n, r)) r.stopPropagation();
else if (Lt(e, r), 4 & t && -1 < Nt.indexOf(e)) {
for (; null !== i;) {
var a = yi(i);
if (null !== a && xt(a), null === (a = Kt(e, t, n, r)) && $r(e, t, r, Yt, n), a === i) break;
i = a
}
null !== i && r.stopPropagation()
} else $r(e, t, r, null, n)
}
}
var Yt = null;
function Kt(e, t, n, r) {
if (Yt = null, null !== (e = _i(e = xe(r))))
if (null === (t = Ge(e))) e = null;
else if (13 === (n = t.tag)) {
if (null !== (e = Be(t))) return e;
e = null
} else if (3 === n) {
if (t.stateNode.current.memoizedState.isDehydrated) return 3 === t.tag ? t.stateNode.containerInfo : null;
e = null
} else t !== e && (e = null);
return Yt = e, null
}
function Qt(e) {
switch (e) {
case "cancel":
case "click":
case "close":
case "contextmenu":
case "copy":
case "cut":
case "auxclick":
case "dblclick":
case "dragend":
case "dragstart":
case "drop":
case "focusin":
case "focusout":
case "input":
case "invalid":
case "keydown":
case "keypress":
case "keyup":
case "mousedown":
case "mouseup":
case "paste":
case "pause":
case "play":
case "pointercancel":
case "pointerdown":
case "pointerup":
case "ratechange":
case "reset":
case "resize":
case "seeked":
case "submit":
case "touchcancel":
case "touchend":
case "touchstart":
case "volumechange":
case "change":
case "selectionchange":
case "textInput":
case "compositionstart":
case "compositionend":
case "compositionupdate":
case "beforeblur":
case "afterblur":
case "beforeinput":
case "blur":
case "fullscreenchange":
case "focus":
case "hashchange":
case "popstate":
case "select":
case "selectstart":
return 1;
case "drag":
case "dragenter":
case "dragexit":
case "dragleave":
case "dragover":
case "mousemove":
case "mouseout":
case "mouseover":
case "pointermove":
case "pointerout":
case "pointerover":
case "scroll":
case "toggle":
case "touchmove":
case "wheel":
case "mouseenter":
case "mouseleave":
case "pointerenter":
case "pointerleave":
return 4;
case "message":
switch (Xe()) {
case Je:
return 1;
case et:
return 4;
case tt:
case nt:
return 16;
case rt:
return 536870912;
default:
return 16
}
default:
return 16
}
}
var Zt = null,
Xt = null,
Jt = null;
function en() {
if (Jt) return Jt;
var e, t, n = Xt,
r = n.length,
i = "value" in Zt ? Zt.value : Zt.textContent,
a = i.length;
for (e = 0; e < r && n[e] === i[e]; e++);
var o = r - e;
for (t = 1; t <= o && n[r - t] === i[a - t]; t++);
return Jt = i.slice(e, 1 < t ? 1 - t : void 0)
}
function tn(e) {
var t = e.keyCode;
return "charCode" in e ? 0 === (e = e.charCode) && 13 === t && (e = 13) : e = t, 10 === e && (e = 13), 32 <= e || 13 === e ? e : 0
}
function nn() {
return !0
}
function rn() {
return !1
}
function an(e) {
function t(t, n, r, i, a) {
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 M(t.prototype, {
preventDefault: function() {
this.defaultPrevented = !0;
var e = this.nativeEvent;
e && (e.preventDefault ? e.preventDefault() : "unknown" !== typeof e.returnValue && (e.returnValue = !1), this.isDefaultPrevented = nn)
},
stopPropagation: function() {
var e = this.nativeEvent;
e && (e.stopPropagation ? e.stopPropagation() : "unknown" !== typeof e.cancelBubble && (e.cancelBubble = !0), this.isPropagationStopped = nn)
},
persist: function() {},
isPersistent: nn
}), t
}
var on, sn, ln, cn = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
timeStamp: function(e) {
return e.timeStamp || Date.now()
},
defaultPrevented: 0,
isTrusted: 0
},
un = an(cn),
dn = M({}, cn, {
view: 0,
detail: 0
}),
pn = an(dn),
hn = M({}, dn, {
screenX: 0,
screenY: 0,
clientX: 0,
clientY: 0,
pageX: 0,
pageY: 0,
ctrlKey: 0,
shiftKey: 0,
altKey: 0,
metaKey: 0,
getModifierState: Sn,
button: 0,
buttons: 0,
relatedTarget: function(e) {
return void 0 === e.relatedTarget ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget
},
movementX: function(e) {
return "movementX" in e ? e.movementX : (e !== ln && (ln && "mousemove" === e.type ? (on = e.screenX - ln.screenX, sn = e.screenY - ln.screenY) : sn = on = 0, ln = e), on)
},
movementY: function(e) {
return "movementY" in e ? e.movementY : sn
}
}),
fn = an(hn),
mn = an(M({}, hn, {
dataTransfer: 0
})),
gn = an(M({}, dn, {
relatedTarget: 0
})),
vn = an(M({}, cn, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0
})),
_n = M({}, cn, {
clipboardData: function(e) {
return "clipboardData" in e ? e.clipboardData : window.clipboardData
}
}),
yn = an(_n),
bn = an(M({}, cn, {
data: 0
})),
xn = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
Up: "ArrowUp",
Right: "ArrowRight",
Down: "ArrowDown",
Del: "Delete",
Win: "OS",
Menu: "ContextMenu",
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified"
},
wn = {
8: "Backspace",
9: "Tab",
12: "Clear",
13: "Enter",
16: "Shift",
17: "Control",
18: "Alt",
19: "Pause",
20: "CapsLock",
27: "Escape",
32: " ",
33: "PageUp",
34: "PageDown",
35: "End",
36: "Home",
37: "ArrowLeft",
38: "ArrowUp",
39: "ArrowRight",
40: "ArrowDown",
45: "Insert",
46: "Delete",
112: "F1",
113: "F2",
114: "F3",
115: "F4",
116: "F5",
117: "F6",
118: "F7",
119: "F8",
120: "F9",
121: "F10",
122: "F11",
123: "F12",
144: "NumLock",
145: "ScrollLock",
224: "Meta"
},
kn = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey"
};
function En(e) {
var t = this.nativeEvent;
return t.getModifierState ? t.getModifierState(e) : !!(e = kn[e]) && !!t[e]
}
function Sn() {
return En
}
var On = M({}, dn, {
key: function(e) {
if (e.key) {
var t = xn[e.key] || e.key;
if ("Unidentified" !== t) return t
}
return "keypress" === e.type ? 13 === (e = tn(e)) ? "Enter" : String.fromCharCode(e) : "keydown" === e.type || "keyup" === e.type ? wn[e.keyCode] || "Unidentified" : ""
},
code: 0,
location: 0,
ctrlKey: 0,
shiftKey: 0,
altKey: 0,
metaKey: 0,
repeat: 0,
locale: 0,
getModifierState: Sn,
charCode: function(e) {
return "keypress" === e.type ? tn(e) : 0
},
keyCode: function(e) {
return "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0
},
which: function(e) {
return "keypress" === e.type ? tn(e) : "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0
}
}),
Pn = an(On),
In = an(M({}, hn, {
pointerId: 0,
width: 0,
height: 0,
pressure: 0,
tangentialPressure: 0,
tiltX: 0,
tiltY: 0,
twist: 0,
pointerType: 0,
isPrimary: 0
})),
An = an(M({}, dn, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
altKey: 0,
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
getModifierState: Sn
})),
Cn = an(M({}, cn, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0
})),
Rn = M({}, hn, {
deltaX: function(e) {
return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0
},
deltaY: function(e) {
return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0
},
deltaZ: 0,
deltaMode: 0
}),
Tn = an(Rn),
Dn = [9, 13, 27, 32],
Nn = u && "CompositionEvent" in window,
Ln = null;
u && "documentMode" in document && (Ln = document.documentMode);
var jn = u && "TextEvent" in window && !Ln,
Mn = u && (!Nn || Ln && 8 < Ln && 11 >= Ln),
zn = String.fromCharCode(32),
Fn = !1;
function Un(e, t) {
switch (e) {
case "keyup":
return -1 !== Dn.indexOf(t.keyCode);
case "keydown":
return 229 !== t.keyCode;
case "keypress":
case "mousedown":
case "focusout":
return !0;
default:
return !1
}
}
function Vn(e) {
return "object" === typeof(e = e.detail) && "data" in e ? e.data : null
}
var Gn = !1;
var Bn = {
color: !0,
date: !0,
datetime: !0,
"datetime-local": !0,
email: !0,
month: !0,
number: !0,
password: !0,
range: !0,
search: !0,
tel: !0,
text: !0,
time: !0,
url: !0,
week: !0
};
function $n(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
return "input" === t ? !!Bn[e.type] : "textarea" === t
}
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 Wn = null,
Hn = null;
function Yn(e) {
zr(e, 0)
}
function Kn(e) {
if (H(bi(e))) return e
}
function Qn(e, t) {
if ("change" === e) return t
}
var Zn = !1;
if (u) {
var Xn;
if (u) {
var Jn = "oninput" in document;
if (!Jn) {
var er = document.createElement("div");
er.setAttribute("oninput", "return;"), Jn = "function" === typeof er.oninput
}
Xn = Jn
} else Xn = !1;
Zn = Xn && (!document.documentMode || 9 < document.documentMode)
}
function tr() {
Wn && (Wn.detachEvent("onpropertychange", nr), Hn = Wn = null)
}
function nr(e) {
if ("value" === e.propertyName && Kn(Hn)) {
var t = [];
qn(t, Hn, e, xe(e)), Re(Yn, t)
}
}
function rr(e, t, n) {
"focusin" === e ? (tr(), Hn = n, (Wn = t).attachEvent("onpropertychange", nr)) : "focusout" === e && tr()
}
function ir(e) {
if ("selectionchange" === e || "keyup" === e || "keydown" === e) return Kn(Hn)
}
function ar(e, t) {
if ("click" === e) return Kn(t)
}
function or(e, t) {
if ("input" === e || "change" === e) return Kn(t)
}
var sr = "function" === typeof Object.is ? Object.is : function(e, t) {
return e === t && (0 !== e || 1 / e === 1 / t) || e !== e && t !== t
};
function lr(e, t) {
if (sr(e, t)) return !0;
if ("object" !== typeof e || null === e || "object" !== typeof t || null === t) return !1;
var n = Object.keys(e),
r = Object.keys(t);
if (n.length !== r.length) return !1;
for (r = 0; r < n.length; r++) {
var i = n[r];
if (!d.call(t, i) || !sr(e[i], t[i])) return !1
}
return !0
}
function cr(e) {
for (; e && e.firstChild;) e = e.firstChild;
return e
}
function ur(e, t) {
var n, r = cr(e);
for (e = 0; r;) {
if (3 === r.nodeType) {
if (n = e + r.textContent.length, e <= t && n >= t) return {
node: r,
offset: t - e
};
e = n
}
e: {
for (; r;) {
if (r.nextSibling) {
r = r.nextSibling;
break e
}
r = r.parentNode
}
r = void 0
}
r = cr(r)
}
}
function dr(e, t) {
return !(!e || !t) && (e === t || (!e || 3 !== e.nodeType) && (t && 3 === t.nodeType ? dr(e, t.parentNode) : "contains" in e ? e.contains(t) : !!e.compareDocumentPosition && !!(16 & e.compareDocumentPosition(t))))
}
function pr() {
for (var e = window, t = Y(); t instanceof e.HTMLIFrameElement;) {
try {
var n = "string" === typeof t.contentWindow.location.href
} catch (r) {
n = !1
}
if (!n) break;
t = Y((e = t.contentWindow).document)
}
return t
}
function hr(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
return t && ("input" === t && ("text" === e.type || "search" === e.type || "tel" === e.type || "url" === e.type || "password" === e.type) || "textarea" === t || "true" === e.contentEditable)
}
function fr(e) {
var t = pr(),
n = e.focusedElem,
r = e.selectionRange;
if (t !== n && n && n.ownerDocument && dr(n.ownerDocument.documentElement, n)) {
if (null !== r && hr(n))
if (t = r.start, void 0 === (e = r.end) && (e = t), "selectionStart" in n) n.selectionStart = t, n.selectionEnd = Math.min(e, n.value.length);
else if ((e = (t = n.ownerDocument || document) && t.defaultView || window).getSelection) {
e = e.getSelection();
var i = n.textContent.length,
a = Math.min(r.start, i);
r = void 0 === r.end ? a : Math.min(r.end, i), !e.extend && a > r && (i = r, r = a, a = i), i = ur(n, a);
var o = ur(n, r);
i && o && (1 !== e.rangeCount || e.anchorNode !== i.node || e.anchorOffset !== i.offset || e.focusNode !== o.node || e.focusOffset !== o.offset) && ((t = t.createRange()).setStart(i.node, i.offset), e.removeAllRanges(), a > r ? (e.addRange(t), e.extend(o.node, o.offset)) : (t.setEnd(o.node, o.offset), e.addRange(t)))
}
for (t = [], e = n; e = e.parentNode;) 1 === e.nodeType && t.push({
element: e,
left: e.scrollLeft,
top: e.scrollTop
});
for ("function" === typeof n.focus && n.focus(), n = 0; n < t.length; n++)(e = t[n]).element.scrollLeft = e.left, e.element.scrollTop = e.top
}
}
var mr = u && "documentMode" in document && 11 >= document.documentMode,
gr = null,
vr = null,
_r = null,
yr = !1;
function br(e, t, n) {
var r = n.window === n ? n.document : 9 === n.nodeType ? n : n.ownerDocument;
yr || null == gr || gr !== Y(r) || ("selectionStart" in (r = gr) && hr(r) ? r = {
start: r.selectionStart,
end: r.selectionEnd
} : r = {
anchorNode: (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection()).anchorNode,
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
}, _r && lr(_r, r) || (_r = r, 0 < (r = Wr(vr, "onSelect")).length && (t = new un("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
}), t.target = gr)))
}
function xr(e, t) {
var n = {};
return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n
}
var wr = {
animationend: xr("Animation", "AnimationEnd"),
animationiteration: xr("Animation", "AnimationIteration"),
animationstart: xr("Animation", "AnimationStart"),
transitionend: xr("Transition", "TransitionEnd")
},
kr = {},
Er = {};
function Sr(e) {
if (kr[e]) return kr[e];
if (!wr[e]) return e;
var t, n = wr[e];
for (t in n)
if (n.hasOwnProperty(t) && t in Er) return kr[e] = n[t];
return e
}
u && (Er = document.createElement("div").style, "AnimationEvent" in window || (delete wr.animationend.animation, delete wr.animationiteration.animation, delete wr.animationstart.animation), "TransitionEvent" in window || delete wr.transitionend.transition);
var Or = Sr("animationend"),
Pr = Sr("animationiteration"),
Ir = Sr("animationstart"),
Ar = Sr("transitionend"),
Cr = new Map,
Rr = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
function Tr(e, t) {
Cr.set(e, t), l(t, [e])
}
for (var Dr = 0; Dr < Rr.length; Dr++) {
var Nr = Rr[Dr];
Tr(Nr.toLowerCase(), "on" + (Nr[0].toUpperCase() + Nr.slice(1)))
}
Tr(Or, "onAnimationEnd"), Tr(Pr, "onAnimationIteration"), Tr(Ir, "onAnimationStart"), Tr("dblclick", "onDoubleClick"), Tr("focusin", "onFocus"), Tr("focusout", "onBlur"), Tr(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 Lr = "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(" "),
jr = new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));
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 (Ve.apply(this, arguments), je) {
if (!je) throw Error(a(198));
var u = Me;
je = !1, Me = null, ze || (ze = !0, Fe = u)
}
}(r, t, void 0, e), e.currentTarget = null
}
function zr(e, t) {
t = 0 !== (4 & t);
for (var n = 0; n < e.length; n++) {
var r = e[n],
i = r.event;
r = r.listeners;
e: {
var a = void 0;
if (t)
for (var o = r.length - 1; 0 <= o; o--) {
var s = r[o],
l = s.instance,
c = s.currentTarget;
if (s = s.listener, l !== a && i.isPropagationStopped()) break e;
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;
Mr(i, s, c), a = l
}
}
}
if (ze) throw e = Fe, ze = !1, Fe = null, e
}
function Fr(e, t) {
var n = t[mi];
void 0 === n && (n = t[mi] = new Set);
var r = e + "__bubble";
n.has(r) || (Br(t, e, 2, !1), n.add(r))
}
function Ur(e, t, n) {
var r = 0;
t && (r |= 4), Br(n, e, r, t)
}
var Vr = "_reactListening" + Math.random().toString(36).slice(2);
function Gr(e) {
if (!e[Vr]) {
e[Vr] = !0, o.forEach((function(t) {
"selectionchange" !== t && (jr.has(t) || Ur(t, !1, e), Ur(t, !0, e))
}));
var t = 9 === e.nodeType ? e : e.ownerDocument;
null === t || t[Vr] || (t[Vr] = !0, Ur("selectionchange", !1, t))
}
}
function Br(e, t, n, r) {
switch (Qt(t)) {
case 1:
var i = qt;
break;
case 4:
i = Wt;
break;
default:
i = Ht
}
n = i.bind(null, t, n, e), i = void 0, !De || "touchstart" !== t && "touchmove" !== t && "wheel" !== t || (i = !0), r ? void 0 !== i ? e.addEventListener(t, n, {
capture: !0,
passive: i
}) : e.addEventListener(t, n, !0) : void 0 !== i ? e.addEventListener(t, n, {
passive: i
}) : e.addEventListener(t, n, !1)
}
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;
var o = r.tag;
if (3 === o || 4 === o) {
var s = r.stateNode.containerInfo;
if (s === i || 8 === s.nodeType && s.parentNode === i) break;
if (4 === o)
for (o = r.return; null !== o;) {
var l = o.tag;
if ((3 === l || 4 === l) && ((l = o.stateNode.containerInfo) === i || 8 === l.nodeType && l.parentNode === i)) return;
o = o.return
}
for (; null !== s;) {
if (null === (o = _i(s))) return;
if (5 === (l = o.tag) || 6 === l) {
r = a = o;
continue e
}
s = s.parentNode
}
}
r = r.return
}
Re((function() {
var r = a,
i = xe(n),
o = [];
e: {
var s = Cr.get(e);
if (void 0 !== s) {
var l = un,
c = e;
switch (e) {
case "keypress":
if (0 === tn(n)) break e;
case "keydown":
case "keyup":
l = Pn;
break;
case "focusin":
c = "focus", l = gn;
break;
case "focusout":
c = "blur", l = gn;
break;
case "beforeblur":
case "afterblur":
l = gn;
break;
case "click":
if (2 === n.button) break e;
case "auxclick":
case "dblclick":
case "mousedown":
case "mousemove":
case "mouseup":
case "mouseout":
case "mouseover":
case "contextmenu":
l = fn;
break;
case "drag":
case "dragend":
case "dragenter":
case "dragexit":
case "dragleave":
case "dragover":
case "dragstart":
case "drop":
l = mn;
break;
case "touchcancel":
case "touchend":
case "touchmove":
case "touchstart":
l = An;
break;
case Or:
case Pr:
case Ir:
l = vn;
break;
case Ar:
l = Cn;
break;
case "scroll":
l = pn;
break;
case "wheel":
l = Tn;
break;
case "copy":
case "cut":
case "paste":
l = yn;
break;
case "gotpointercapture":
case "lostpointercapture":
case "pointercancel":
case "pointerdown":
case "pointermove":
case "pointerout":
case "pointerover":
case "pointerup":
l = In
}
var u = 0 !== (4 & t),
d = !u && "scroll" === e,
p = u ? null !== s ? s + "Capture" : null : s;
u = [];
for (var h, f = r; null !== f;) {
var m = (h = f).stateNode;
if (5 === h.tag && null !== m && (h = m, null !== p && (null != (m = Te(f, p)) && u.push(qr(f, m, h)))), d) break;
f = f.return
}
0 < u.length && (s = new l(s, c, null, n, i), o.push({
event: s,
listeners: u
}))
}
}
if (0 === (7 & t)) {
if (l = "mouseout" === e || "pointerout" === e, (!(s = "mouseover" === e || "pointerover" === e) || n === be || !(c = n.relatedTarget || n.fromElement) || !_i(c) && !c[fi]) && (l || s) && (s = i.window === i ? i : (s = i.ownerDocument) ? s.defaultView || s.parentWindow : window, l ? (l = r, null !== (c = (c = n.relatedTarget || n.toElement) ? _i(c) : null) && (c !== (d = Ge(c)) || 5 !== c.tag && 6 !== c.tag) && (c = null)) : (l = null, c = r), l !== c)) {
if (u = fn, m = "onMouseLeave", p = "onMouseEnter", f = "mouse", "pointerout" !== e && "pointerover" !== e || (u = In, m = "onPointerLeave", p = "onPointerEnter", f = "pointer"), d = null == l ? s : bi(l), h = null == c ? s : bi(c), (s = new u(m, f + "leave", l, n, i)).target = d, s.relatedTarget = h, m = null, _i(i) === r && ((u = new u(p, f + "enter", c, n, i)).target = h, u.relatedTarget = d, m = u), d = m, l && c) e: {
for (p = c, f = 0, h = u = l; h; h = Hr(h)) f++;
for (h = 0, m = p; m; m = Hr(m)) h++;
for (; 0 < f - h;) u = Hr(u),
f--;
for (; 0 < h - f;) p = Hr(p),
h--;
for (; f--;) {
if (u === p || null !== p && u === p.alternate) break e;
u = Hr(u), p = Hr(p)
}
u = null
}
else u = null;
null !== l && Yr(o, s, l, u, !1), null !== c && null !== d && Yr(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 ($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)) ? 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":
($n(v) || "true" === v.contentEditable) && (gr = v, vr = r, _r = null);
break;
case "focusout":
_r = vr = gr = null;
break;
case "mousedown":
yr = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
yr = !1, br(o, n, i);
break;
case "selectionchange":
if (mr) break;
case "keydown":
case "keyup":
br(o, n, i)
}
var _;
if (Nn) e: {
switch (e) {
case "compositionstart":
var y = "onCompositionStart";
break e;
case "compositionend":
y = "onCompositionEnd";
break e;
case "compositionupdate":
y = "onCompositionUpdate";
break e
}
y = void 0
}
else Gn ? Un(e, n) && (y = "onCompositionEnd") : "keydown" === e && 229 === n.keyCode && (y = "onCompositionStart");
y && (Mn && "ko" !== n.locale && (Gn || "onCompositionStart" !== y ? "onCompositionEnd" === y && Gn && (_ = en()) : (Xt = "value" in (Zt = i) ? Zt.value : Zt.textContent, Gn = !0)), 0 < (v = Wr(r, y)).length && (y = new bn(y, e, null, n, i), o.push({
event: y,
listeners: v
}), _ ? y.data = _ : null !== (_ = Vn(n)) && (y.data = _))), (_ = jn ? function(e, t) {
switch (e) {
case "compositionend":
return Vn(t);
case "keypress":
return 32 !== t.which ? null : (Fn = !0, zn);
case "textInput":
return (e = t.data) === zn && Fn ? null : e;
default:
return null
}
}(e, n) : function(e, t) {
if (Gn) return "compositionend" === e || !Nn && Un(e, t) ? (e = en(), Jt = Xt = Zt = null, Gn = !1, e) : null;
switch (e) {
case "paste":
default:
return null;
case "keypress":
if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) {
if (t.char && 1 < t.char.length) return t.char;
if (t.which) return String.fromCharCode(t.which)
}
return null;
case "compositionend":
return Mn && "ko" !== t.locale ? null : t.data
}
}(e, n)) && (0 < (r = Wr(r, "onBeforeInput")).length && (i = new bn("onBeforeInput", "beforeinput", null, n, i), o.push({
event: i,
listeners: r
}), i.data = _))
}
zr(o, t)
}))
}
function qr(e, t, n) {
return {
instance: e,
listener: t,
currentTarget: n
}
}
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 = Te(e, n)) && r.unshift(qr(e, a, i)), null != (a = Te(e, t)) && r.push(qr(e, a, i))), e = e.return
}
return r
}
function Hr(e) {
if (null === e) return null;
do {
e = e.return
} while (e && 5 !== e.tag);
return e || null
}
function Yr(e, t, n, r, i) {
for (var a = t._reactName, o = []; null !== n && n !== r;) {
var s = n,
l = s.alternate,
c = s.stateNode;
if (null !== l && l === r) break;
5 === s.tag && null !== c && (s = c, i ? null != (l = Te(n, a)) && o.unshift(qr(n, l, s)) : i || null != (l = Te(n, a)) && o.push(qr(n, l, s))), n = n.return
}
0 !== o.length && e.push({
event: t,
listeners: o
})
}
var Kr = /\r\n?/g,
Qr = /\u0000|\uFFFD/g;
function Zr(e) {
return ("string" === typeof e ? e : "" + e).replace(Kr, "\n").replace(Qr, "")
}
function Xr(e, t, n) {
if (t = Zr(t), Zr(e) !== t && n) throw Error(a(425))
}
function Jr() {}
var ei = null,
ti = null;
function ni(e, t) {
return "textarea" === e || "noscript" === e || "string" === typeof t.children || "number" === typeof t.children || "object" === typeof t.dangerouslySetInnerHTML && null !== t.dangerouslySetInnerHTML && null != t.dangerouslySetInnerHTML.__html
}
var ri = "function" === typeof setTimeout ? setTimeout : void 0,
ii = "function" === typeof clearTimeout ? clearTimeout : void 0,
ai = "function" === typeof Promise ? Promise : void 0,
oi = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof ai ? function(e) {
return ai.resolve(null).then(e).catch(si)
} : ri;
function si(e) {
setTimeout((function() {
throw e
}))
}
function li(e, t) {
var n = t,
r = 0;
do {
var i = n.nextSibling;
if (e.removeChild(n), i && 8 === i.nodeType)
if ("/$" === (n = i.data)) {
if (0 === r) return e.removeChild(i), void Gt(t);
r--
} else "$" !== n && "$?" !== n && "$!" !== n || r++;
n = i
} while (n);
Gt(t)
}
function ci(e) {
for (; null != e; e = e.nextSibling) {
var t = e.nodeType;
if (1 === t || 3 === t) break;
if (8 === t) {
if ("$" === (t = e.data) || "$!" === t || "$?" === t) break;
if ("/$" === t) return null
}
}
return e
}
function ui(e) {
e = e.previousSibling;
for (var t = 0; e;) {
if (8 === e.nodeType) {
var n = e.data;
if ("$" === n || "$!" === n || "$?" === n) {
if (0 === t) return e;
t--
} else "/$" === n && t++
}
e = e.previousSibling
}
return null
}
var di = Math.random().toString(36).slice(2),
pi = "__reactFiber$" + di,
hi = "__reactProps$" + di,
fi = "__reactContainer$" + di,
mi = "__reactEvents$" + di,
gi = "__reactListeners$" + di,
vi = "__reactHandles$" + di;
function _i(e) {
var t = e[pi];
if (t) return t;
for (var n = e.parentNode; n;) {
if (t = n[fi] || n[pi]) {
if (n = t.alternate, null !== t.child || null !== n && null !== n.child)
for (e = ui(e); null !== e;) {
if (n = e[pi]) return n;
e = ui(e)
}
return t
}
n = (e = n).parentNode
}
return null
}
function yi(e) {
return !(e = e[pi] || e[fi]) || 5 !== e.tag && 6 !== e.tag && 13 !== e.tag && 3 !== e.tag ? null : e
}
function bi(e) {
if (5 === e.tag || 6 === e.tag) return e.stateNode;
throw Error(a(33))
}
function xi(e) {
return e[hi] || null
}
var wi = [],
ki = -1;
function Ei(e) {
return {
current: e
}
}
function Si(e) {
0 > ki || (e.current = wi[ki], wi[ki] = null, ki--)
}
function Oi(e, t) {
ki++, wi[ki] = e.current, e.current = t
}
var Pi = {},
Ii = Ei(Pi),
Ai = Ei(!1),
Ci = Pi;
function Ri(e, t) {
var n = e.type.contextTypes;
if (!n) return Pi;
var r = e.stateNode;
if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) return r.__reactInternalMemoizedMaskedChildContext;
var i, a = {};
for (i in n) a[i] = t[i];
return r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t, e.__reactInternalMemoizedMaskedChildContext = a), a
}
function Ti(e) {
return null !== (e = e.childContextTypes) && void 0 !== e
}
function Di() {
Si(Ai), Si(Ii)
}
function Ni(e, t, n) {
if (Ii.current !== Pi) throw Error(a(168));
Oi(Ii, t), Oi(Ai, n)
}
function Li(e, t, n) {
var r = e.stateNode;
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, B(e) || "Unknown", i));
return M({}, n, r)
}
function ji(e) {
return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || Pi, Ci = Ii.current, Oi(Ii, e), Oi(Ai, Ai.current), !0
}
function Mi(e, t, n) {
var r = e.stateNode;
if (!r) throw Error(a(169));
n ? (e = Li(e, t, Ci), r.__reactInternalMemoizedMergedChildContext = e, Si(Ai), Si(Ii), Oi(Ii, e)) : Si(Ai), Oi(Ai, n)
}
var zi = null,
Fi = !1,
Ui = !1;
function Vi(e) {
null === zi ? zi = [e] : zi.push(e)
}
function Gi() {
if (!Ui && null !== zi) {
Ui = !0;
var e = 0,
t = yt;
try {
var n = zi;
for (yt = 1; e < n.length; e++) {
var r = n[e];
do {
r = r(!0)
} while (null !== r)
}
zi = null, Fi = !1
} catch (i) {
throw null !== zi && (zi = zi.slice(e + 1)), He(Je, Gi), i
} finally {
yt = t, Ui = !1
}
}
return null
}
var Bi = [],
$i = 0,
qi = null,
Wi = 0,
Hi = [],
Yi = 0,
Ki = null,
Qi = 1,
Zi = "";
function Xi(e, t) {
Bi[$i++] = Wi, Bi[$i++] = qi, qi = e, Wi = t
}
function Ji(e, t, n) {
Hi[Yi++] = Qi, Hi[Yi++] = Zi, Hi[Yi++] = Ki, Ki = e;
var r = Qi;
e = Zi;
var i = 32 - ot(r) - 1;
r &= ~(1 << i), n += 1;
var a = 32 - ot(t) + i;
if (30 < a) {
var o = i - i % 5;
a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Qi = 1 << 32 - ot(t) + i | n << i | r, Zi = a + e
} else Qi = 1 << a | n << i | r, Zi = e
}
function ea(e) {
null !== e.return && (Xi(e, 1), Ji(e, 1, 0))
}
function ta(e) {
for (; e === qi;) qi = Bi[--$i], Bi[$i] = null, Wi = Bi[--$i], Bi[$i] = null;
for (; e === Ki;) Ki = Hi[--Yi], Hi[Yi] = null, Zi = Hi[--Yi], Hi[Yi] = null, Qi = Hi[--Yi], Hi[Yi] = null
}
var na = null,
ra = null,
ia = !1,
aa = null;
function oa(e, t) {
var n = Rc(5, null, null, 0);
n.elementType = "DELETED", n.stateNode = t, n.return = e, null === (t = e.deletions) ? (e.deletions = [n], e.flags |= 16) : t.push(n)
}
function sa(e, t) {
switch (e.tag) {
case 5:
var n = e.type;
return null !== (t = 1 !== t.nodeType || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t) && (e.stateNode = t, na = e, ra = ci(t.firstChild), !0);
case 6:
return null !== (t = "" === e.pendingProps || 3 !== t.nodeType ? null : t) && (e.stateNode = t, na = e, ra = null, !0);
case 13:
return null !== (t = 8 !== t.nodeType ? null : t) && (n = null !== Ki ? {
id: Qi,
overflow: Zi
} : null, e.memoizedState = {
dehydrated: t,
treeContext: n,
retryLane: 1073741824
}, (n = Rc(18, null, null, 0)).stateNode = t, n.return = e, e.child = n, na = e, ra = null, !0);
default:
return !1
}
}
function la(e) {
return 0 !== (1 & e.mode) && 0 === (128 & e.flags)
}
function ca(e) {
if (ia) {
var t = ra;
if (t) {
var n = t;
if (!sa(e, t)) {
if (la(e)) throw Error(a(418));
t = ci(n.nextSibling);
var r = na;
t && sa(e, t) ? oa(r, n) : (e.flags = -4097 & e.flags | 2, ia = !1, na = e)
}
} else {
if (la(e)) throw Error(a(418));
e.flags = -4097 & e.flags | 2, ia = !1, na = e
}
}
}
function ua(e) {
for (e = e.return; null !== e && 5 !== e.tag && 3 !== e.tag && 13 !== e.tag;) e = e.return;
na = e
}
function da(e) {
if (e !== na) return !1;
if (!ia) return ua(e), ia = !0, !1;
var t;
if ((t = 3 !== e.tag) && !(t = 5 !== e.tag) && (t = "head" !== (t = e.type) && "body" !== t && !ni(e.type, e.memoizedProps)), t && (t = ra)) {
if (la(e)) throw pa(), Error(a(418));
for (; t;) oa(e, t), t = ci(t.nextSibling)
}
if (ua(e), 13 === e.tag) {
if (!(e = null !== (e = e.memoizedState) ? e.dehydrated : null)) throw Error(a(317));
e: {
for (e = e.nextSibling, t = 0; e;) {
if (8 === e.nodeType) {
var n = e.data;
if ("/$" === n) {
if (0 === t) {
ra = ci(e.nextSibling);
break e
}
t--
} else "$" !== n && "$!" !== n && "$?" !== n || t++
}
e = e.nextSibling
}
ra = null
}
} else ra = na ? ci(e.stateNode.nextSibling) : null;
return !0
}
function pa() {
for (var e = ra; e;) e = ci(e.nextSibling)
}
function ha() {
ra = na = null, ia = !1
}
function fa(e) {
null === aa ? aa = [e] : aa.push(e)
}
var ma = b.ReactCurrentBatchConfig;
function ga(e, t) {
if (e && e.defaultProps) {
for (var n in t = M({}, t), e = e.defaultProps) void 0 === t[n] && (t[n] = e[n]);
return t
}
return t
}
var va = Ei(null),
_a = null,
ya = null,
ba = null;
function xa() {
ba = ya = _a = null
}
function wa(e) {
var t = va.current;
Si(va), e._currentValue = t
}
function ka(e, t, n) {
for (; null !== e;) {
var r = e.alternate;
if ((e.childLanes & t) !== t ? (e.childLanes |= t, null !== r && (r.childLanes |= t)) : null !== r && (r.childLanes & t) !== t && (r.childLanes |= t), e === n) break;
e = e.return
}
}
function Ea(e, t) {
_a = e, ba = ya = null, null !== (e = e.dependencies) && null !== e.firstContext && (0 !== (e.lanes & t) && (bs = !0), e.firstContext = null)
}
function Sa(e) {
var t = e._currentValue;
if (ba !== e)
if (e = {
context: e,
memoizedValue: t,
next: null
}, null === ya) {
if (null === _a) throw Error(a(308));
ya = e, _a.dependencies = {
lanes: 0,
firstContext: e
}
} else ya = ya.next = e;
return t
}
var Oa = null;
function Pa(e) {
null === Oa ? Oa = [e] : Oa.push(e)
}
function Ia(e, t, n, r) {
var i = t.interleaved;
return null === i ? (n.next = n, Pa(t)) : (n.next = i.next, i.next = n), t.interleaved = n, Aa(e, r)
}
function Aa(e, t) {
e.lanes |= t;
var n = e.alternate;
for (null !== n && (n.lanes |= t), n = e, e = e.return; null !== e;) e.childLanes |= t, null !== (n = e.alternate) && (n.childLanes |= t), n = e, e = e.return;
return 3 === n.tag ? n.stateNode : null
}
var Ca = !1;
function Ra(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
lastBaseUpdate: null,
shared: {
pending: null,
interleaved: null,
lanes: 0
},
effects: null
}
}
function Ta(e, t) {
e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
baseState: e.baseState,
firstBaseUpdate: e.firstBaseUpdate,
lastBaseUpdate: e.lastBaseUpdate,
shared: e.shared,
effects: e.effects
})
}
function Da(e, t) {
return {
eventTime: e,
lane: t,
tag: 0,
payload: null,
callback: null,
next: null
}
}
function Na(e, t, n) {
var r = e.updateQueue;
if (null === r) return null;
if (r = r.shared, 0 !== (2 & Il)) {
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, Pa(r)) : (t.next = i.next, i.next = t), r.interleaved = t, Aa(e, n)
}
function La(e, t, n) {
if (null !== (t = t.updateQueue) && (t = t.shared, 0 !== (4194240 & n))) {
var r = t.lanes;
n |= r &= e.pendingLanes, t.lanes = n, _t(e, n)
}
}
function ja(e, t) {
var n = e.updateQueue,
r = e.alternate;
if (null !== r && n === (r = r.updateQueue)) {
var i = null,
a = null;
if (null !== (n = n.firstBaseUpdate)) {
do {
var o = {
eventTime: n.eventTime,
lane: n.lane,
tag: n.tag,
payload: n.payload,
callback: n.callback,
next: null
};
null === a ? i = a = o : a = a.next = o, n = n.next
} while (null !== n);
null === a ? i = a = t : a = a.next = t
} else i = a = t;
return n = {
baseState: r.baseState,
firstBaseUpdate: i,
lastBaseUpdate: a,
shared: r.shared,
effects: r.effects
}, void(e.updateQueue = n)
}
null === (e = n.lastBaseUpdate) ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t
}
function Ma(e, t, n, r) {
var i = e.updateQueue;
Ca = !1;
var a = i.firstBaseUpdate,
o = i.lastBaseUpdate,
s = i.shared.pending;
if (null !== s) {
i.shared.pending = null;
var l = s,
c = l.next;
l.next = null, null === o ? a = c : o.next = c, o = l;
var u = e.alternate;
null !== u && ((s = (u = u.updateQueue).lastBaseUpdate) !== o && (null === s ? u.firstBaseUpdate = c : s.next = c, u.lastBaseUpdate = l))
}
if (null !== a) {
var d = i.baseState;
for (o = 0, u = c = l = null, s = a;;) {
var p = s.lane,
h = s.eventTime;
if ((r & p) === p) {
null !== u && (u = u.next = {
eventTime: h,
lane: 0,
tag: s.tag,
payload: s.payload,
callback: s.callback,
next: null
});
e: {
var f = e,
m = s;
switch (p = t, h = n, m.tag) {
case 1:
if ("function" === typeof(f = m.payload)) {
d = f.call(h, d, p);
break e
}
d = f;
break e;
case 3:
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 = M({}, d, p);
break e;
case 2:
Ca = !0
}
}
null !== s.callback && 0 !== s.lane && (e.flags |= 64, null === (p = i.effects) ? i.effects = [s] : p.push(s))
} else h = {
eventTime: h,
lane: p,
tag: s.tag,
payload: s.payload,
callback: s.callback,
next: null
}, null === u ? (c = u = h, l = d) : u = u.next = h, o |= p;
if (null === (s = s.next)) {
if (null === (s = i.shared.pending)) break;
s = (p = s).next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null
}
}
if (null === u && (l = d), i.baseState = l, i.firstBaseUpdate = c, i.lastBaseUpdate = u, null !== (t = i.shared.interleaved)) {
i = t;
do {
o |= i.lane, i = i.next
} while (i !== t)
} else null === a && (i.shared.lanes = 0);
jl |= o, e.lanes = o, e.memoizedState = d
}
}
function za(e, t, n) {
if (e = t.effects, t.effects = null, null !== e)
for (t = 0; t < e.length; t++) {
var r = e[t],
i = r.callback;
if (null !== i) {
if (r.callback = null, r = n, "function" !== typeof i) throw Error(a(191, i));
i.call(r)
}
}
}
var Fa = (new r.Component).refs;
function Ua(e, t, n, r) {
n = null === (n = n(r, t = e.memoizedState)) || void 0 === n ? t : M({}, t, n), e.memoizedState = n, 0 === e.lanes && (e.updateQueue.baseState = n)
}
var Va = {
isMounted: function(e) {
return !!(e = e._reactInternals) && Ge(e) === e
},
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
var r = ec(),
i = tc(e),
a = Da(r, i);
a.payload = t, void 0 !== n && null !== n && (a.callback = n), null !== (t = Na(e, a, i)) && (nc(t, e, i, r), La(t, e, i))
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
var r = ec(),
i = tc(e),
a = Da(r, i);
a.tag = 1, a.payload = t, void 0 !== n && null !== n && (a.callback = n), null !== (t = Na(e, a, i)) && (nc(t, e, i, r), La(t, e, i))
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
var n = ec(),
r = tc(e),
i = Da(n, r);
i.tag = 2, void 0 !== t && null !== t && (i.callback = t), null !== (t = Na(e, i, r)) && (nc(t, e, r, n), La(t, e, r))
}
};
function Ga(e, t, n, r, i, a, o) {
return "function" === typeof(e = e.stateNode).shouldComponentUpdate ? e.shouldComponentUpdate(r, a, o) : !t.prototype || !t.prototype.isPureReactComponent || (!lr(n, r) || !lr(i, a))
}
function Ba(e, t, n) {
var r = !1,
i = Pi,
a = t.contextType;
return "object" === typeof a && null !== a ? a = Sa(a) : (i = Ti(t) ? Ci : Ii.current, a = (r = null !== (r = t.contextTypes) && void 0 !== r) ? Ri(e, i) : Pi), t = new t(n, a), e.memoizedState = null !== t.state && void 0 !== t.state ? t.state : null, t.updater = Va, 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 && Va.enqueueReplaceState(t, t.state, null)
}
function qa(e, t, n, r) {
var i = e.stateNode;
i.props = n, i.state = e.memoizedState, i.refs = Fa, Ra(e);
var a = t.contextType;
"object" === typeof a && null !== a ? i.context = Sa(a) : (a = Ti(t) ? Ci : Ii.current, i.context = Ri(e, a)), i.state = e.memoizedState, "function" === typeof(a = t.getDerivedStateFromProps) && (Ua(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 && Va.enqueueReplaceState(i, i.state, null), Ma(e, n, i, r), i.state = e.memoizedState), "function" === typeof i.componentDidMount && (e.flags |= 4194308)
}
function Wa(e, t, n) {
if (null !== (e = n.ref) && "function" !== typeof e && "object" !== typeof e) {
if (n._owner) {
if (n = n._owner) {
if (1 !== n.tag) throw Error(a(309));
var r = n.stateNode
}
if (!r) throw Error(a(147, e));
var i = r,
o = "" + e;
return null !== t && null !== t.ref && "function" === typeof t.ref && t.ref._stringRef === o ? t.ref : (t = function(e) {
var t = i.refs;
t === Fa && (t = i.refs = {}), null === e ? delete t[o] : t[o] = e
}, t._stringRef = o, t)
}
if ("string" !== typeof e) throw Error(a(284));
if (!n._owner) throw Error(a(290, e))
}
return e
}
function Ha(e, t) {
throw e = Object.prototype.toString.call(t), Error(a(31, "[object Object]" === e ? "object with keys {" + Object.keys(t).join(", ") + "}" : e))
}
function Ya(e) {
return (0, e._init)(e._payload)
}
function Ka(e) {
function t(t, n) {
if (e) {
var r = t.deletions;
null === r ? (t.deletions = [n], t.flags |= 16) : r.push(n)
}
}
function n(n, r) {
if (!e) return null;
for (; null !== r;) t(n, r), r = r.sibling;
return null
}
function r(e, t) {
for (e = new Map; null !== t;) null !== t.key ? e.set(t.key, t) : e.set(t.index, t), t = t.sibling;
return e
}
function i(e, t) {
return (e = Dc(e, t)).index = 0, e.sibling = null, e
}
function o(t, n, r) {
return t.index = r, e ? null !== (r = t.alternate) ? (r = r.index) < n ? (t.flags |= 2, n) : r : (t.flags |= 2, n) : (t.flags |= 1048576, n)
}
function s(t) {
return e && null === t.alternate && (t.flags |= 2), t
}
function l(e, t, n, r) {
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 === k ? d(e, t, n.props.children, r, n.key) : null !== t && (t.elementType === a || "object" === typeof a && null !== a && a.$$typeof === T && Ya(a) === t.type) ? ((r = i(t, n.props)).ref = Wa(e, t, n), r.return = e, r) : ((r = Nc(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) {
return null === t || 4 !== t.tag || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? ((t = zc(n, e.mode, r)).return = e, t) : ((t = i(t, n.children || [])).return = e, t)
}
function d(e, t, n, r, a) {
return null === t || 7 !== t.tag ? ((t = Lc(n, e.mode, r, a)).return = e, t) : ((t = i(t, n)).return = e, t)
}
function p(e, t, n) {
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 = Nc(t.type, t.key, t.props, null, e.mode, n)).ref = Wa(e, null, t), n.return = e, n;
case w:
return (t = zc(t, e.mode, n)).return = e, t;
case T:
return p(e, (0, t._init)(t._payload), n)
}
if (te(t) || L(t)) return (t = Lc(t, e.mode, n, null)).return = e, t;
Ha(e, t)
}
return null
}
function h(e, t, n, r) {
var i = null !== t ? t.key : null;
if ("string" === typeof n && "" !== n || "number" === typeof n) return null !== i ? null : l(e, t, "" + n, r);
if ("object" === typeof n && null !== n) {
switch (n.$$typeof) {
case x:
return n.key === i ? c(e, t, n, r) : null;
case w:
return n.key === i ? u(e, t, n, r) : null;
case T:
return h(e, t, (i = n._init)(n._payload), r)
}
if (te(n) || L(n)) return null !== i ? null : d(e, t, n, r, null);
Ha(e, n)
}
return null
}
function f(e, t, n, r, i) {
if ("string" === typeof r && "" !== r || "number" === typeof r) return l(t, e = e.get(n) || null, "" + r, i);
if ("object" === typeof r && null !== r) {
switch (r.$$typeof) {
case x:
return c(t, e = e.get(null === r.key ? n : r.key) || null, r, i);
case w:
return u(t, e = e.get(null === r.key ? n : r.key) || null, r, i);
case T:
return f(e, t, n, (0, r._init)(r._payload), i)
}
if (te(r) || L(r)) return d(t, e = e.get(n) || null, r, i, null);
Ha(t, r)
}
return null
}
function m(i, a, s, l) {
for (var c = null, u = null, d = a, m = a = 0, g = null; null !== d && m < s.length; m++) {
d.index > m ? (g = d, d = null) : g = d.sibling;
var v = h(i, d, s[m], l);
if (null === v) {
null === d && (d = g);
break
}
e && d && null === v.alternate && t(i, d), a = o(v, a, m), null === u ? c = v : u.sibling = v, u = v, d = g
}
if (m === s.length) return n(i, d), ia && Xi(i, m), c;
if (null === d) {
for (; m < s.length; m++) null !== (d = p(i, s[m], l)) && (a = o(d, a, m), null === u ? c = d : u.sibling = d, u = d);
return ia && Xi(i, m), c
}
for (d = r(i, d); m < s.length; m++) null !== (g = f(d, i, m, s[m], l)) && (e && null !== g.alternate && d.delete(null === g.key ? m : g.key), a = o(g, a, m), null === u ? c = g : u.sibling = g, u = g);
return e && d.forEach((function(e) {
return t(i, e)
})), ia && Xi(i, m), c
}
function g(i, s, l, c) {
var u = L(l);
if ("function" !== typeof u) throw Error(a(150));
if (null == (l = u.call(l))) throw Error(a(151));
for (var d = u = null, m = s, g = s = 0, v = null, _ = l.next(); null !== m && !_.done; g++, _ = l.next()) {
m.index > g ? (v = m, m = null) : v = m.sibling;
var y = h(i, m, _.value, c);
if (null === y) {
null === m && (m = v);
break
}
e && m && null === y.alternate && t(i, m), s = o(y, s, g), null === d ? u = y : d.sibling = y, d = y, m = v
}
if (_.done) return n(i, m), ia && Xi(i, g), u;
if (null === m) {
for (; !_.done; g++, _ = l.next()) null !== (_ = p(i, _.value, c)) && (s = o(_, s, g), null === d ? u = _ : d.sibling = _, d = _);
return ia && Xi(i, g), u
}
for (m = r(i, m); !_.done; g++, _ = l.next()) null !== (_ = f(m, i, g, _.value, c)) && (e && null !== _.alternate && m.delete(null === _.key ? g : _.key), s = o(_, s, g), null === d ? u = _ : d.sibling = _, d = _);
return e && m.forEach((function(e) {
return t(i, e)
})), ia && Xi(i, g), u
}
return function e(r, a, o, l) {
if ("object" === typeof o && null !== o && o.type === k && null === o.key && (o = o.props.children), "object" === typeof o && null !== o) {
switch (o.$$typeof) {
case x:
e: {
for (var c = o.key, u = a; null !== u;) {
if (u.key === c) {
if ((c = o.type) === k) {
if (7 === u.tag) {
n(r, u.sibling), (a = i(u, o.props.children)).return = r, r = a;
break e
}
} else if (u.elementType === c || "object" === typeof c && null !== c && c.$$typeof === T && Ya(c) === u.type) {
n(r, u.sibling), (a = i(u, o.props)).ref = Wa(r, u, o), a.return = r, r = a;
break e
}
n(r, u);
break
}
t(r, u), u = u.sibling
}
o.type === k ? ((a = Lc(o.props.children, r.mode, l, o.key)).return = r, r = a) : ((l = Nc(o.type, o.key, o.props, null, r.mode, l)).ref = Wa(r, a, o), l.return = r, r = l)
}
return s(r);
case w:
e: {
for (u = o.key; null !== a;) {
if (a.key === u) {
if (4 === a.tag && a.stateNode.containerInfo === o.containerInfo && a.stateNode.implementation === o.implementation) {
n(r, a.sibling), (a = i(a, o.children || [])).return = r, r = a;
break e
}
n(r, a);
break
}
t(r, a), a = a.sibling
}(a = zc(o, r.mode, l)).return = r,
r = a
}
return s(r);
case T:
return e(r, a, (u = o._init)(o._payload), l)
}
if (te(o)) return m(r, a, o, l);
if (L(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 = Mc(o, r.mode, l)).return = r, r = a), s(r)) : n(r, a)
}
}
var Qa = Ka(!0),
Za = Ka(!1),
Xa = {},
Ja = Ei(Xa),
eo = Ei(Xa),
to = Ei(Xa);
function no(e) {
if (e === Xa) throw Error(a(174));
return e
}
function ro(e, t) {
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, "");
break;
default:
t = le(t = (e = 8 === e ? t.parentNode : t).namespaceURI || null, e = e.tagName)
}
Si(Ja), Oi(Ja, t)
}
function io() {
Si(Ja), Si(eo), Si(to)
}
function ao(e) {
no(to.current);
var t = no(Ja.current),
n = le(t, e.type);
t !== n && (Oi(eo, e), Oi(Ja, n))
}
function oo(e) {
eo.current === e && (Si(Ja), Si(eo))
}
var so = Ei(0);
function lo(e) {
for (var t = e; null !== t;) {
if (13 === t.tag) {
var n = t.memoizedState;
if (null !== n && (null === (n = n.dehydrated) || "$?" === n.data || "$!" === n.data)) return t
} else if (19 === t.tag && void 0 !== t.memoizedProps.revealOrder) {
if (0 !== (128 & t.flags)) return t
} else if (null !== t.child) {
t.child.return = t, t = t.child;
continue
}
if (t === e) break;
for (; null === t.sibling;) {
if (null === t.return || t.return === e) return null;
t = t.return
}
t.sibling.return = t.return, t = t.sibling
}
return null
}
var co = [];
function uo() {
for (var e = 0; e < co.length; e++) co[e]._workInProgressVersionPrimary = null;
co.length = 0
}
var po = b.ReactCurrentDispatcher,
ho = b.ReactCurrentBatchConfig,
fo = 0,
mo = null,
go = null,
vo = null,
_o = !1,
yo = !1,
bo = 0,
xo = 0;
function wo() {
throw Error(a(321))
}
function ko(e, t) {
if (null === t) return !1;
for (var n = 0; n < t.length && n < e.length; n++)
if (!sr(e[n], t[n])) return !1;
return !0
}
function Eo(e, t, n, r, i, o) {
if (fo = o, mo = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, po.current = null === e || null === e.memoizedState ? ss : ls, e = n(r, i), yo) {
o = 0;
do {
if (yo = !1, bo = 0, 25 <= o) throw Error(a(301));
o += 1, vo = go = null, t.updateQueue = null, po.current = cs, e = n(r, i)
} while (yo)
}
if (po.current = os, t = null !== go && null !== go.next, fo = 0, vo = go = mo = null, _o = !1, t) throw Error(a(300));
return e
}
function So() {
var e = 0 !== bo;
return bo = 0, e
}
function Oo() {
var e = {
memoizedState: null,
baseState: null,
baseQueue: null,
queue: null,
next: null
};
return null === vo ? mo.memoizedState = vo = e : vo = vo.next = e, vo
}
function Po() {
if (null === go) {
var e = mo.alternate;
e = null !== e ? e.memoizedState : null
} else e = go.next;
var t = null === vo ? mo.memoizedState : vo.next;
if (null !== t) vo = t, go = e;
else {
if (null === e) throw Error(a(310));
e = {
memoizedState: (go = e).memoizedState,
baseState: go.baseState,
baseQueue: go.baseQueue,
queue: go.queue,
next: null
}, null === vo ? mo.memoizedState = vo = e : vo = vo.next = e
}
return vo
}
function Io(e, t) {
return "function" === typeof t ? t(e) : t
}
function Ao(e) {
var t = Po(),
n = t.queue;
if (null === n) throw Error(a(311));
n.lastRenderedReducer = e;
var r = go,
i = r.baseQueue,
o = n.pending;
if (null !== o) {
if (null !== i) {
var s = i.next;
i.next = o.next, o.next = s
}
r.baseQueue = i = o, n.pending = null
}
if (null !== i) {
o = i.next, r = r.baseState;
var l = s = null,
c = null,
u = o;
do {
var d = u.lane;
if ((fo & d) === d) null !== c && (c = c.next = {
lane: 0,
action: u.action,
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
}), r = u.hasEagerState ? u.eagerState : e(r, u.action);
else {
var p = {
lane: d,
action: u.action,
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
};
null === c ? (l = c = p, s = r) : c = c.next = p, mo.lanes |= d, jl |= d
}
u = u.next
} while (null !== u && u !== o);
null === c ? s = r : c.next = l, sr(r, t.memoizedState) || (bs = !0), t.memoizedState = r, t.baseState = s, t.baseQueue = c, n.lastRenderedState = r
}
if (null !== (e = n.interleaved)) {
i = e;
do {
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 Co(e) {
var t = Po(),
n = t.queue;
if (null === n) throw Error(a(311));
n.lastRenderedReducer = e;
var r = n.dispatch,
i = n.pending,
o = t.memoizedState;
if (null !== i) {
n.pending = null;
var s = i = i.next;
do {
o = e(o, s.action), s = s.next
} while (s !== i);
sr(o, t.memoizedState) || (bs = !0), t.memoizedState = o, null === t.baseQueue && (t.baseState = o), n.lastRenderedState = o
}
return [o, r]
}
function Ro() {}
function To(e, t) {
var n = mo,
r = Po(),
i = t(),
o = !sr(r.memoizedState, i);
if (o && (r.memoizedState = i, bs = !0), r = r.queue, $o(Lo.bind(null, n, r, e), [e]), r.getSnapshot !== t || o || null !== vo && 1 & vo.memoizedState.tag) {
if (n.flags |= 2048, Fo(9, No.bind(null, n, r, i, t), void 0, null), null === Al) throw Error(a(349));
0 !== (30 & fo) || Do(n, t, i)
}
return i
}
function Do(e, t, n) {
e.flags |= 16384, e = {
getSnapshot: t,
value: n
}, null === (t = mo.updateQueue) ? (t = {
lastEffect: null,
stores: null
}, mo.updateQueue = t, t.stores = [e]) : null === (n = t.stores) ? t.stores = [e] : n.push(e)
}
function No(e, t, n, r) {
t.value = n, t.getSnapshot = r, jo(t) && Mo(e)
}
function Lo(e, t, n) {
return n((function() {
jo(t) && Mo(e)
}))
}
function jo(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
return !sr(e, n)
} catch (r) {
return !0
}
}
function Mo(e) {
var t = Aa(e, 1);
null !== t && nc(t, e, 1, -1)
}
function zo(e) {
var t = Oo();
return "function" === typeof e && (e = e()), t.memoizedState = t.baseState = e, e = {
pending: null,
interleaved: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: Io,
lastRenderedState: e
}, t.queue = e, e = e.dispatch = ns.bind(null, mo, e), [t.memoizedState, e]
}
function Fo(e, t, n, r) {
return e = {
tag: e,
create: t,
destroy: n,
deps: r,
next: null
}, null === (t = mo.updateQueue) ? (t = {
lastEffect: null,
stores: null
}, mo.updateQueue = t, t.lastEffect = e.next = e) : null === (n = t.lastEffect) ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e
}
function Uo() {
return Po().memoizedState
}
function Vo(e, t, n, r) {
var i = Oo();
mo.flags |= e, i.memoizedState = Fo(1 | t, n, void 0, void 0 === r ? null : r)
}
function Go(e, t, n, r) {
var i = Po();
r = void 0 === r ? null : r;
var a = void 0;
if (null !== go) {
var o = go.memoizedState;
if (a = o.destroy, null !== r && ko(r, o.deps)) return void(i.memoizedState = Fo(t, n, a, r))
}
mo.flags |= e, i.memoizedState = Fo(1 | t, n, a, r)
}
function Bo(e, t) {
return Vo(8390656, 8, e, t)
}
function $o(e, t) {
return Go(2048, 8, e, t)
}
function qo(e, t) {
return Go(4, 2, e, t)
}
function Wo(e, t) {
return Go(4, 4, e, t)
}
function Ho(e, t) {
return "function" === typeof t ? (e = e(), t(e), function() {
t(null)
}) : null !== t && void 0 !== t ? (e = e(), t.current = e, function() {
t.current = null
}) : void 0
}
function Yo(e, t, n) {
return n = null !== n && void 0 !== n ? n.concat([e]) : null, Go(4, 4, Ho.bind(null, t, e), n)
}
function Ko() {}
function Qo(e, t) {
var n = Po();
t = void 0 === t ? null : t;
var r = n.memoizedState;
return null !== r && null !== t && ko(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e)
}
function Zo(e, t) {
var n = Po();
t = void 0 === t ? null : t;
var r = n.memoizedState;
return null !== r && null !== t && ko(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, jl |= n, e.baseState = !0), t)
}
function Jo(e, t) {
var n = yt;
yt = 0 !== n && 4 > n ? n : 4, e(!0);
var r = ho.transition;
ho.transition = {};
try {
e(!1), t()
} finally {
yt = n, ho.transition = r
}
}
function es() {
return Po().memoizedState
}
function ts(e, t, n) {
var r = tc(e);
if (n = {
lane: r,
action: n,
hasEagerState: !1,
eagerState: null,
next: null
}, rs(e)) is(t, n);
else if (null !== (n = Ia(e, t, n, r))) {
nc(n, e, r, ec()), as(n, t, r)
}
}
function ns(e, t, n) {
var r = tc(e),
i = {
lane: r,
action: n,
hasEagerState: !1,
eagerState: null,
next: null
};
if (rs(e)) is(t, i);
else {
var a = e.alternate;
if (0 === e.lanes && (null === a || 0 === a.lanes) && null !== (a = t.lastRenderedReducer)) try {
var o = t.lastRenderedState,
s = a(o, n);
if (i.hasEagerState = !0, i.eagerState = s, sr(s, o)) {
var l = t.interleaved;
return null === l ? (i.next = i, Pa(t)) : (i.next = l.next, l.next = i), void(t.interleaved = i)
}
} catch (c) {}
null !== (n = Ia(e, t, i, r)) && (nc(n, e, r, i = ec()), as(n, t, r))
}
}
function rs(e) {
var t = e.alternate;
return e === mo || null !== t && t === mo
}
function is(e, t) {
yo = _o = !0;
var n = e.pending;
null === n ? t.next = t : (t.next = n.next, n.next = t), e.pending = t
}
function as(e, t, n) {
if (0 !== (4194240 & n)) {
var r = t.lanes;
n |= r &= e.pendingLanes, t.lanes = n, _t(e, n)
}
}
var os = {
readContext: Sa,
useCallback: wo,
useContext: wo,
useEffect: wo,
useImperativeHandle: wo,
useInsertionEffect: wo,
useLayoutEffect: wo,
useMemo: wo,
useReducer: wo,
useRef: wo,
useState: wo,
useDebugValue: wo,
useDeferredValue: wo,
useTransition: wo,
useMutableSource: wo,
useSyncExternalStore: wo,
useId: wo,
unstable_isNewReconciler: !1
},
ss = {
readContext: Sa,
useCallback: function(e, t) {
return Oo().memoizedState = [e, void 0 === t ? null : t], e
},
useContext: Sa,
useEffect: Bo,
useImperativeHandle: function(e, t, n) {
return n = null !== n && void 0 !== n ? n.concat([e]) : null, Vo(4194308, 4, Ho.bind(null, t, e), n)
},
useLayoutEffect: function(e, t) {
return Vo(4194308, 4, e, t)
},
useInsertionEffect: function(e, t) {
return Vo(4, 2, e, t)
},
useMemo: function(e, t) {
var n = Oo();
return t = void 0 === t ? null : t, e = e(), n.memoizedState = [e, t], e
},
useReducer: function(e, t, n) {
var r = Oo();
return t = void 0 !== n ? n(t) : t, r.memoizedState = r.baseState = t, e = {
pending: null,
interleaved: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: e,
lastRenderedState: t
}, r.queue = e, e = e.dispatch = ts.bind(null, mo, e), [r.memoizedState, e]
},
useRef: function(e) {
return e = {
current: e
}, Oo().memoizedState = e
},
useState: zo,
useDebugValue: Ko,
useDeferredValue: function(e) {
return Oo().memoizedState = e
},
useTransition: function() {
var e = zo(!1),
t = e[0];
return e = Jo.bind(null, e[1]), Oo().memoizedState = e, [t, e]
},
useMutableSource: function() {},
useSyncExternalStore: function(e, t, n) {
var r = mo,
i = Oo();
if (ia) {
if (void 0 === n) throw Error(a(407));
n = n()
} else {
if (n = t(), null === Al) throw Error(a(349));
0 !== (30 & fo) || Do(r, t, n)
}
i.memoizedState = n;
var o = {
value: n,
getSnapshot: t
};
return i.queue = o, Bo(Lo.bind(null, r, o, e), [e]), r.flags |= 2048, Fo(9, No.bind(null, r, o, n, t), void 0, null), n
},
useId: function() {
var e = Oo(),
t = Al.identifierPrefix;
if (ia) {
var n = Zi;
t = ":" + t + "R" + (n = (Qi & ~(1 << 32 - ot(Qi) - 1)).toString(32) + n), 0 < (n = bo++) && (t += "H" + n.toString(32)), t += ":"
} else t = ":" + t + "r" + (n = xo++).toString(32) + ":";
return e.memoizedState = t
},
unstable_isNewReconciler: !1
},
ls = {
readContext: Sa,
useCallback: Qo,
useContext: Sa,
useEffect: $o,
useImperativeHandle: Yo,
useInsertionEffect: qo,
useLayoutEffect: Wo,
useMemo: Zo,
useReducer: Ao,
useRef: Uo,
useState: function() {
return Ao(Io)
},
useDebugValue: Ko,
useDeferredValue: function(e) {
return Xo(Po(), go.memoizedState, e)
},
useTransition: function() {
return [Ao(Io)[0], Po().memoizedState]
},
useMutableSource: Ro,
useSyncExternalStore: To,
useId: es,
unstable_isNewReconciler: !1
},
cs = {
readContext: Sa,
useCallback: Qo,
useContext: Sa,
useEffect: $o,
useImperativeHandle: Yo,
useInsertionEffect: qo,
useLayoutEffect: Wo,
useMemo: Zo,
useReducer: Co,
useRef: Uo,
useState: function() {
return Co(Io)
},
useDebugValue: Ko,
useDeferredValue: function(e) {
var t = Po();
return null === go ? t.memoizedState = e : Xo(t, go.memoizedState, e)
},
useTransition: function() {
return [Co(Io)[0], Po().memoizedState]
},
useMutableSource: Ro,
useSyncExternalStore: To,
useId: es,
unstable_isNewReconciler: !1
};
function us(e, t) {
try {
var n = "",
r = t;
do {
n += V(r), r = r.return
} while (r);
var i = n
} catch (a) {
i = "\nError generating stack: " + a.message + "\n" + a.stack
}
return {
value: e,
source: t,
stack: i,
digest: null
}
}
function ds(e, t, n) {
return {
value: e,
source: null,
stack: null != n ? n : null,
digest: null != t ? t : null
}
}
function ps(e, t) {
try {
console.error(t.value)
} catch (n) {
setTimeout((function() {
throw n
}))
}
}
var hs = "function" === typeof WeakMap ? WeakMap : Map;
function fs(e, t, n) {
(n = Da(-1, n)).tag = 3, n.payload = {
element: null
};
var r = t.value;
return n.callback = function() {
$l || ($l = !0, ql = r), ps(0, t)
}, n
}
function ms(e, t, n) {
(n = Da(-1, n)).tag = 3;
var r = e.type.getDerivedStateFromError;
if ("function" === typeof r) {
var i = t.value;
n.payload = function() {
return r(i)
}, n.callback = function() {
ps(0, t)
}
}
var a = e.stateNode;
return null !== a && "function" === typeof a.componentDidCatch && (n.callback = function() {
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 : ""
})
}), n
}
function gs(e, t, n) {
var r = e.pingCache;
if (null === r) {
r = e.pingCache = new hs;
var i = new Set;
r.set(t, i)
} else void 0 === (i = r.get(t)) && (i = new Set, r.set(t, i));
i.has(n) || (i.add(n), e = Sc.bind(null, e, t, n), t.then(e, e))
}
function vs(e) {
do {
var t;
if ((t = 13 === e.tag) && (t = null === (t = e.memoizedState) || null !== t.dehydrated), t) return e;
e = e.return
} while (null !== e);
return null
}
function _s(e, t, n, r, i) {
return 0 === (1 & e.mode) ? (e === t ? e.flags |= 65536 : (e.flags |= 128, n.flags |= 131072, n.flags &= -52805, 1 === n.tag && (null === n.alternate ? n.tag = 17 : ((t = Da(-1, 1)).tag = 2, Na(n, t, 1))), n.lanes |= 1), e) : (e.flags |= 65536, e.lanes = i, e)
}
var ys = b.ReactCurrentOwner,
bs = !1;
function xs(e, t, n, r) {
t.child = null === e ? Za(t, null, n, r) : Qa(t, e.child, n, r)
}
function ws(e, t, n, r, i) {
n = n.render;
var a = t.ref;
return Ea(t, i), r = Eo(e, t, n, r, a, i), n = So(), 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 ks(e, t, n, r, i) {
if (null === e) {
var a = n.type;
return "function" !== typeof a || Tc(a) || void 0 !== a.defaultProps || null !== n.compare || void 0 !== n.defaultProps ? ((e = Nc(n.type, null, r, t, t.mode, i)).ref = t.ref, e.return = t, t.child = e) : (t.tag = 15, t.type = a, Es(e, t, a, r, i))
}
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 $s(e, t, i)
}
return t.flags |= 1, (e = Dc(a, r)).ref = t.ref, e.return = t, t.child = e
}
function Es(e, t, n, r, i) {
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, $s(e, t, i);
0 !== (131072 & e.flags) && (bs = !0)
}
}
return Ps(e, t, n, r, i)
}
function Ss(e, t, n) {
var r = t.pendingProps,
i = r.children,
a = null !== e ? e.memoizedState : null;
if ("hidden" === r.mode)
if (0 === (1 & t.mode)) t.memoizedState = {
baseLanes: 0,
cachePool: null,
transitions: null
}, Oi(Dl, Tl), Tl |= 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, Oi(Dl, Tl), Tl |= e, null;
t.memoizedState = {
baseLanes: 0,
cachePool: null,
transitions: null
}, r = null !== a ? a.baseLanes : n, Oi(Dl, Tl), Tl |= r
}
else null !== a ? (r = a.baseLanes | n, t.memoizedState = null) : r = n, Oi(Dl, Tl), Tl |= r;
return xs(e, t, i, n), t.child
}
function Os(e, t) {
var n = t.ref;
(null === e && null !== n || null !== e && e.ref !== n) && (t.flags |= 512, t.flags |= 2097152)
}
function Ps(e, t, n, r, i) {
var a = Ti(n) ? Ci : Ii.current;
return a = Ri(t, a), Ea(t, i), n = Eo(e, t, n, r, a, i), r = So(), 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 Is(e, t, n, r, i) {
if (Ti(n)) {
var a = !0;
ji(t)
} else a = !1;
if (Ea(t, i), null === t.stateNode) Bs(e, t), Ba(t, n, r), qa(t, n, r, i), r = !0;
else if (null === e) {
var o = t.stateNode,
s = t.memoizedProps;
o.props = s;
var l = o.context,
c = n.contextType;
"object" === typeof c && null !== c ? c = Sa(c) : c = Ri(t, c = Ti(n) ? Ci : Ii.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) && $a(t, o, r, c), Ca = !1;
var p = t.memoizedState;
o.state = p, Ma(t, r, o, i), l = t.memoizedState, s !== r || p !== l || Ai.current || Ca ? ("function" === typeof u && (Ua(t, n, u, r), l = t.memoizedState), (s = Ca || Ga(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, Ta(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 = Sa(l) : l = Ri(t, l = Ti(n) ? Ci : Ii.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) && $a(t, o, r, l), Ca = !1, p = t.memoizedState, o.state = p, Ma(t, r, o, i);
var f = t.memoizedState;
s !== d || p !== f || Ai.current || Ca ? ("function" === typeof h && (Ua(t, n, h, r), f = t.memoizedState), (c = Ca || Ga(t, n, c, r, p, f, l) || !1) ? (u || "function" !== typeof o.UNSAFE_componentWillUpdate && "function" !== typeof o.componentWillUpdate || ("function" === typeof o.componentWillUpdate && o.componentWillUpdate(r, f, l), "function" === typeof o.UNSAFE_componentWillUpdate && o.UNSAFE_componentWillUpdate(r, f, l)), "function" === typeof o.componentDidUpdate && (t.flags |= 4), "function" === typeof o.getSnapshotBeforeUpdate && (t.flags |= 1024)) : ("function" !== typeof o.componentDidUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), "function" !== typeof o.getSnapshotBeforeUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = f), o.props = r, o.state = f, o.context = l, r = c) : ("function" !== typeof o.componentDidUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), "function" !== typeof o.getSnapshotBeforeUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), r = !1)
}
return As(e, t, n, r, a, i)
}
function As(e, t, n, r, i, a) {
Os(e, t);
var o = 0 !== (128 & t.flags);
if (!r && !o) return i && Mi(t, n, !1), $s(e, t, a);
r = t.stateNode, ys.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 && Mi(t, n, !0), t.child
}
function Cs(e) {
var t = e.stateNode;
t.pendingContext ? Ni(0, t.pendingContext, t.pendingContext !== t.context) : t.context && Ni(0, t.context, !1), ro(e, t.containerInfo)
}
function Rs(e, t, n, r, i) {
return ha(), fa(i), t.flags |= 256, xs(e, t, n, r), t.child
}
var Ts, Ds, Ns, Ls = {
dehydrated: null,
treeContext: null,
retryLane: 0
};
function js(e) {
return {
baseLanes: e,
cachePool: null,
transitions: null
}
}
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), 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 = jc(l, i, 0, null), e = Lc(e, i, n, null), s.return = t, e.return = t, s.sibling = e, t.child = s, t.child.memoizedState = js(n), t.memoizedState = Ls, e) : zs(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, Fs(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 = Lc(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 = Ls, o);
if (0 === (1 & t.mode)) return Fs(e, t, s, null);
if ("$!" === i.data) {
if (r = i.nextSibling && i.nextSibling.dataset) var l = r.dgst;
return r = l, Fs(e, t, s, r = ds(o = Error(a(419)), r, void 0))
}
if (l = 0 !== (s & e.childLanes), bs || l) {
if (null !== (r = Al)) {
switch (s & -s) {
case 4:
i = 2;
break;
case 16:
i = 8;
break;
case 64:
case 128:
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
case 262144:
case 524288:
case 1048576:
case 2097152:
case 4194304:
case 8388608:
case 16777216:
case 33554432:
case 67108864:
i = 32;
break;
case 536870912:
i = 268435456;
break;
default:
i = 0
}
0 !== (i = 0 !== (i & (r.suspendedLanes | s)) ? 0 : i) && i !== o.retryLane && (o.retryLane = i, Aa(e, i), nc(r, e, i, -1))
}
return mc(), Fs(e, t, s, r = ds(Error(a(421))))
}
return "$?" === i.data ? (t.flags |= 128, t.child = e.child, t = Pc.bind(null, e), i._reactRetry = t, null) : (e = o.treeContext, ra = ci(i.nextSibling), na = t, ia = !0, aa = null, null !== e && (Hi[Yi++] = Qi, Hi[Yi++] = Zi, Hi[Yi++] = Ki, Qi = e.id, Zi = e.overflow, Ki = t), t = zs(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;
var c = {
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 = Lc(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
}, s.memoizedState = l, s.childLanes = e.childLanes & ~n, t.memoizedState = Ls, i
}
return e = (s = e.child).sibling, i = Dc(s, {
mode: "visible",
children: i.children
}), 0 === (1 & t.mode) && (i.lanes = n), i.return = t, i.sibling = null, null !== e && (null === (n = t.deletions) ? (t.deletions = [e], t.flags |= 16) : n.push(e)), t.child = i, t.memoizedState = null, i
}
function zs(e, t) {
return (t = jc({
mode: "visible",
children: t
}, e.mode, 0, null)).return = e, e.child = t
}
function Fs(e, t, n, r) {
return null !== r && fa(r), Qa(t, e.child, null, n), (e = zs(t, t.pendingProps.children)).flags |= 2, t.memoizedState = null, e
}
function Us(e, t, n) {
e.lanes |= t;
var r = e.alternate;
null !== r && (r.lanes |= t), ka(e.return, t, n)
}
function Vs(e, t, n, r, i) {
var a = e.memoizedState;
null === a ? e.memoizedState = {
isBackwards: t,
rendering: null,
renderingStartTime: 0,
last: r,
tail: n,
tailMode: i
} : (a.isBackwards = t, a.rendering = null, a.renderingStartTime = 0, a.last = r, a.tail = n, a.tailMode = i)
}
function Gs(e, t, n) {
var r = t.pendingProps,
i = r.revealOrder,
a = r.tail;
if (xs(e, t, r.children, n), 0 !== (2 & (r = so.current))) r = 1 & r | 2, t.flags |= 128;
else {
if (null !== e && 0 !== (128 & e.flags)) e: for (e = t.child; null !== e;) {
if (13 === e.tag) null !== e.memoizedState && Us(e, n, t);
else if (19 === e.tag) Us(e, n, t);
else if (null !== e.child) {
e.child.return = e, e = e.child;
continue
}
if (e === t) break e;
for (; null === e.sibling;) {
if (null === e.return || e.return === t) break e;
e = e.return
}
e.sibling.return = e.return, e = e.sibling
}
r &= 1
}
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;
null === (n = i) ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), Vs(t, !1, i, n, a);
break;
case "backwards":
for (n = null, i = t.child, t.child = null; null !== i;) {
if (null !== (e = i.alternate) && null === lo(e)) {
t.child = i;
break
}
e = i.sibling, i.sibling = n, n = i, i = e
}
Vs(t, !0, n, null, a);
break;
case "together":
Vs(t, !1, null, null, void 0);
break;
default:
t.memoizedState = null
}
return t.child
}
function Bs(e, t) {
0 === (1 & t.mode) && null !== e && (e.alternate = null, t.alternate = null, t.flags |= 2)
}
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;
n.sibling = null
}
return t.child
}
function qs(e, t) {
if (!ia) switch (e.tailMode) {
case "hidden":
t = e.tail;
for (var n = null; null !== t;) null !== t.alternate && (n = t), t = t.sibling;
null === n ? e.tail = null : n.sibling = null;
break;
case "collapsed":
n = e.tail;
for (var r = null; null !== n;) null !== n.alternate && (r = n), n = n.sibling;
null === r ? t || null === e.tail ? e.tail = null : e.tail.sibling = null : r.sibling = null
}
}
function Ws(e) {
var t = null !== e.alternate && e.alternate.child === e.child,
n = 0,
r = 0;
if (t)
for (var i = e.child; null !== i;) n |= i.lanes | i.childLanes, r |= 14680064 & i.subtreeFlags, r |= 14680064 & i.flags, i.return = e, i = i.sibling;
else
for (i = e.child; null !== i;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;
return e.subtreeFlags |= r, e.childLanes = n, t
}
function Hs(e, t, n) {
var r = t.pendingProps;
switch (ta(t), t.tag) {
case 2:
case 16:
case 15:
case 0:
case 11:
case 7:
case 8:
case 12:
case 9:
case 14:
return Ws(t), null;
case 1:
case 17:
return Ti(t.type) && Di(), Ws(t), null;
case 3:
return r = t.stateNode, io(), Si(Ai), Si(Ii), 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);
if (n = t.type, null !== e && null != t.stateNode) Ds(e, t, n, r), e.ref !== t.ref && (t.flags |= 512, t.flags |= 2097152);
else {
if (!r) {
if (null === t.stateNode) throw Error(a(166));
return Ws(t), null
}
if (e = no(Ja.current), da(t)) {
r = t.stateNode, n = t.type;
var o = t.memoizedProps;
switch (r[pi] = t, r[hi] = o, e = 0 !== (1 & t.mode), n) {
case "dialog":
Fr("cancel", r), Fr("close", r);
break;
case "iframe":
case "object":
case "embed":
Fr("load", r);
break;
case "video":
case "audio":
for (i = 0; i < Lr.length; i++) Fr(Lr[i], r);
break;
case "source":
Fr("error", r);
break;
case "img":
case "image":
case "link":
Fr("error", r), Fr("load", r);
break;
case "details":
Fr("toggle", r);
break;
case "input":
Q(r, o), Fr("invalid", r);
break;
case "select":
r._wrapperState = {
wasMultiple: !!o.multiple
}, Fr("invalid", r);
break;
case "textarea":
ie(r, o), Fr("invalid", r)
}
for (var l in _e(n, o), i = null, o)
if (o.hasOwnProperty(l)) {
var c = o[l];
"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 && Fr("scroll", r)
} switch (n) {
case "input":
W(r), J(r, o, !0);
break;
case "textarea":
W(r), oe(r);
break;
case "select":
case "option":
break;
default:
"function" === typeof o.onClick && (r.onclick = Jr)
}
r = i, t.updateQueue = r, null !== r && (t.flags |= 4)
} else {
l = 9 === i.nodeType ? i : i.ownerDocument, "http://www.w3.org/1999/xhtml" === e && (e = se(n)), "http://www.w3.org/1999/xhtml" === e ? "script" === n ? ((e = l.createElement("div")).innerHTML = "<script><\/script>", e = e.removeChild(e.firstChild)) : "string" === typeof r.is ? e = l.createElement(n, {
is: r.is
}) : (e = l.createElement(n), "select" === n && (l = e, r.multiple ? l.multiple = !0 : r.size && (l.size = r.size))) : e = l.createElementNS(e, n), e[pi] = t, e[hi] = r, Ts(e, t), t.stateNode = e;
e: {
switch (l = ye(n, r), n) {
case "dialog":
Fr("cancel", e), Fr("close", e), i = r;
break;
case "iframe":
case "object":
case "embed":
Fr("load", e), i = r;
break;
case "video":
case "audio":
for (i = 0; i < Lr.length; i++) Fr(Lr[i], e);
i = r;
break;
case "source":
Fr("error", e), i = r;
break;
case "img":
case "image":
case "link":
Fr("error", e), Fr("load", e), i = r;
break;
case "details":
Fr("toggle", e), i = r;
break;
case "input":
Q(e, r), i = K(e, r), Fr("invalid", e);
break;
case "option":
default:
i = r;
break;
case "select":
e._wrapperState = {
wasMultiple: !!r.multiple
}, i = M({}, r, {
value: void 0
}), Fr("invalid", e);
break;
case "textarea":
ie(e, r), i = re(e, r), Fr("invalid", e)
}
for (o in _e(n, i), c = i)
if (c.hasOwnProperty(o)) {
var u = c[o];
"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 && Fr("scroll", e) : null != u && y(e, o, u, l))
} switch (n) {
case "input":
W(e), J(e, r, !1);
break;
case "textarea":
W(e), oe(e);
break;
case "option":
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);
break;
default:
"function" === typeof i.onClick && (e.onclick = Jr)
}
switch (n) {
case "button":
case "input":
case "select":
case "textarea":
r = !!r.autoFocus;
break e;
case "img":
r = !0;
break e;
default:
r = !1
}
}
r && (t.flags |= 4)
}
null !== t.ref && (t.flags |= 512, t.flags |= 2097152)
}
return Ws(t), null;
case 6:
if (e && null != t.stateNode) Ns(0, t, e.memoizedProps, r);
else {
if ("string" !== typeof r && null === t.stateNode) throw Error(a(166));
if (n = no(to.current), no(Ja.current), da(t)) {
if (r = t.stateNode, n = t.memoizedProps, r[pi] = t, (o = r.nodeValue !== n) && null !== (e = na)) switch (e.tag) {
case 3:
Xr(r.nodeValue, n, 0 !== (1 & e.mode));
break;
case 5:
!0 !== e.memoizedProps.suppressHydrationWarning && Xr(r.nodeValue, n, 0 !== (1 & e.mode))
}
o && (t.flags |= 4)
} else(r = (9 === n.nodeType ? n : n.ownerDocument).createTextNode(r))[pi] = t, t.stateNode = r
}
return Ws(t), null;
case 13:
if (Si(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;
else if (o = da(t), null !== r && null !== r.dehydrated) {
if (null === e) {
if (!o) throw Error(a(318));
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;
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 === Nl && (Nl = 3) : mc())), null !== t.updateQueue && (t.flags |= 4), Ws(t), null);
case 4:
return io(), null === e && Gr(t.stateNode.containerInfo), Ws(t), null;
case 10:
return wa(t.type._context), Ws(t), null;
case 19:
if (Si(so), null === (o = t.memoizedState)) return Ws(t), null;
if (r = 0 !== (128 & t.flags), null === (l = o.rendering))
if (r) qs(o, !1);
else {
if (0 !== Nl || null !== e && 0 !== (128 & e.flags))
for (e = t.child; null !== e;) {
if (null !== (l = lo(e))) {
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 Oi(so, 1 & so.current | 2), t.child
}
e = e.sibling
}
null !== o.tail && Ze() > Gl && (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), qs(o, !0), null === o.tail && "hidden" === o.tailMode && !l.alternate && !ia) return Ws(t), null
} else 2 * Ze() - o.renderingStartTime > Gl && 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, 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 & Tl) && (Ws(t), 6 & t.subtreeFlags && (t.flags |= 8192)) : Ws(t), null;
case 24:
case 25:
return null
}
throw Error(a(156, t.tag))
}
function Ys(e, t) {
switch (ta(t), t.tag) {
case 1:
return Ti(t.type) && Di(), 65536 & (e = t.flags) ? (t.flags = -65537 & e | 128, t) : null;
case 3:
return io(), Si(Ai), Si(Ii), uo(), 0 !== (65536 & (e = t.flags)) && 0 === (128 & e) ? (t.flags = -65537 & e | 128, t) : null;
case 5:
return oo(t), null;
case 13:
if (Si(so), null !== (e = t.memoizedState) && null !== e.dehydrated) {
if (null === t.alternate) throw Error(a(340));
ha()
}
return 65536 & (e = t.flags) ? (t.flags = -65537 & e | 128, t) : null;
case 19:
return Si(so), null;
case 4:
return io(), null;
case 10:
return wa(t.type._context), null;
case 22:
case 23:
return dc(), null;
default:
return null
}
}
Ts = function(e, t) {
for (var n = t.child; null !== n;) {
if (5 === n.tag || 6 === n.tag) e.appendChild(n.stateNode);
else if (4 !== n.tag && null !== n.child) {
n.child.return = n, n = n.child;
continue
}
if (n === t) break;
for (; null === n.sibling;) {
if (null === n.return || n.return === t) return;
n = n.return
}
n.sibling.return = n.return, n = n.sibling
}
}, Ds = function(e, t, n, r) {
var i = e.memoizedProps;
if (i !== r) {
e = t.stateNode, no(Ja.current);
var a, o = null;
switch (n) {
case "input":
i = K(e, i), r = K(e, r), o = [];
break;
case "select":
i = M({}, i, {
value: void 0
}), r = M({}, r, {
value: void 0
}), o = [];
break;
case "textarea":
i = re(e, i), r = re(e, r), o = [];
break;
default:
"function" !== typeof i.onClick && "function" === typeof r.onClick && (e.onclick = Jr)
}
for (u in _e(n, r), n = null, i)
if (!r.hasOwnProperty(u) && i.hasOwnProperty(u) && null != i[u])
if ("style" === u) {
var l = i[u];
for (a in l) l.hasOwnProperty(a) && (n || (n = {}), n[a] = "")
} else "dangerouslySetInnerHTML" !== u && "children" !== u && "suppressContentEditableWarning" !== u && "suppressHydrationWarning" !== u && "autoFocus" !== u && (s.hasOwnProperty(u) ? o || (o = []) : (o = o || []).push(u, null));
for (u in r) {
var c = r[u];
if (l = null != i ? i[u] : void 0, r.hasOwnProperty(u) && c !== l && (null != c || null != l))
if ("style" === u)
if (l) {
for (a in l) !l.hasOwnProperty(a) || c && c.hasOwnProperty(a) || (n || (n = {}), n[a] = "");
for (a in c) c.hasOwnProperty(a) && l[a] !== c[a] && (n || (n = {}), n[a] = c[a])
} else n || (o || (o = []), o.push(u, n)), n = c;
else "dangerouslySetInnerHTML" === u ? (c = c ? c.__html : void 0, l = l ? l.__html : void 0, null != c && l !== c && (o = o || []).push(u, c)) : "children" === u ? "string" !== typeof c && "number" !== typeof c || (o = o || []).push(u, "" + c) : "suppressContentEditableWarning" !== u && "suppressHydrationWarning" !== u && (s.hasOwnProperty(u) ? (null != c && "onScroll" === u && Fr("scroll", e), o || l === c || (o = [])) : (o = o || []).push(u, c))
}
n && (o = o || []).push("style", n);
var u = o;
(t.updateQueue = u) && (t.flags |= 4)
}
}, Ns = function(e, t, n, r) {
n !== r && (t.flags |= 4)
};
var Ks = !1,
Qs = !1,
Zs = "function" === typeof WeakSet ? WeakSet : Set,
Xs = null;
function Js(e, t) {
var n = e.ref;
if (null !== n)
if ("function" === typeof n) try {
n(null)
} catch (r) {
Ec(e, t, r)
} else n.current = null
}
function el(e, t, n) {
try {
n()
} catch (r) {
Ec(e, t, r)
}
}
var tl = !1;
function nl(e, t, n) {
var r = t.updateQueue;
if (null !== (r = null !== r ? r.lastEffect : null)) {
var i = r = r.next;
do {
if ((i.tag & e) === e) {
var a = i.destroy;
i.destroy = void 0, void 0 !== a && el(t, n, a)
}
i = i.next
} while (i !== r)
}
}
function rl(e, t) {
if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) {
var n = t = t.next;
do {
if ((n.tag & e) === e) {
var r = n.create;
n.destroy = r()
}
n = n.next
} while (n !== t)
}
}
function il(e) {
var t = e.ref;
if (null !== t) {
var n = e.stateNode;
e.tag, e = n, "function" === typeof t ? t(e) : t.current = e
}
}
function al(e) {
var t = e.alternate;
null !== t && (e.alternate = null, al(t)), e.child = null, e.deletions = null, e.sibling = null, 5 === e.tag && (null !== (t = e.stateNode) && (delete t[pi], delete t[hi], delete t[mi], delete t[gi], delete t[vi])), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null
}
function ol(e) {
return 5 === e.tag || 3 === e.tag || 4 === e.tag
}
function sl(e) {
e: for (;;) {
for (; null === e.sibling;) {
if (null === e.return || ol(e.return)) return null;
e = e.return
}
for (e.sibling.return = e.return, e = e.sibling; 5 !== e.tag && 6 !== e.tag && 18 !== e.tag;) {
if (2 & e.flags) continue e;
if (null === e.child || 4 === e.tag) continue e;
e.child.return = e, e = e.child
}
if (!(2 & e.flags)) return e.stateNode
}
}
function ll(e, t, n) {
var r = e.tag;
if (5 === r || 6 === r) e = e.stateNode, t ? 8 === n.nodeType ? n.parentNode.insertBefore(e, t) : n.insertBefore(e, t) : (8 === n.nodeType ? (t = n.parentNode).insertBefore(e, n) : (t = n).appendChild(e), null !== (n = n._reactRootContainer) && void 0 !== n || null !== t.onclick || (t.onclick = Jr));
else if (4 !== r && null !== (e = e.child))
for (ll(e, t, n), e = e.sibling; null !== e;) ll(e, t, n), e = e.sibling
}
function cl(e, t, n) {
var r = e.tag;
if (5 === r || 6 === r) e = e.stateNode, t ? n.insertBefore(e, t) : n.appendChild(e);
else if (4 !== r && null !== (e = e.child))
for (cl(e, t, n), e = e.sibling; null !== e;) cl(e, t, n), e = e.sibling
}
var ul = null,
dl = !1;
function pl(e, t, n) {
for (n = n.child; null !== n;) hl(e, t, n), n = n.sibling
}
function hl(e, t, n) {
if (at && "function" === typeof at.onCommitFiberUnmount) try {
at.onCommitFiberUnmount(it, n)
} catch (s) {}
switch (n.tag) {
case 5:
Qs || Js(n, t);
case 6:
var r = ul,
i = dl;
ul = null, pl(e, t, n), dl = i, null !== (ul = r) && (dl ? (e = ul, n = n.stateNode, 8 === e.nodeType ? e.parentNode.removeChild(n) : e.removeChild(n)) : ul.removeChild(n.stateNode));
break;
case 18:
null !== ul && (dl ? (e = ul, n = n.stateNode, 8 === e.nodeType ? li(e.parentNode, n) : 1 === e.nodeType && li(e, n), Gt(e)) : li(ul, n.stateNode));
break;
case 4:
r = ul, i = dl, ul = n.stateNode.containerInfo, dl = !0, pl(e, t, n), ul = r, dl = i;
break;
case 0:
case 11:
case 14:
case 15:
if (!Qs && (null !== (r = n.updateQueue) && null !== (r = r.lastEffect))) {
i = r = r.next;
do {
var a = i,
o = a.destroy;
a = a.tag, void 0 !== o && (0 !== (2 & a) || 0 !== (4 & a)) && el(n, t, o), i = i.next
} while (i !== r)
}
pl(e, t, n);
break;
case 1:
if (!Qs && (Js(n, t), "function" === typeof(r = n.stateNode).componentWillUnmount)) try {
r.props = n.memoizedProps, r.state = n.memoizedState, r.componentWillUnmount()
} catch (s) {
Ec(n, t, s)
}
pl(e, t, n);
break;
case 21:
pl(e, t, n);
break;
case 22:
1 & n.mode ? (Qs = (r = Qs) || null !== n.memoizedState, pl(e, t, n), Qs = r) : pl(e, t, n);
break;
default:
pl(e, t, n)
}
}
function fl(e) {
var t = e.updateQueue;
if (null !== t) {
e.updateQueue = null;
var n = e.stateNode;
null === n && (n = e.stateNode = new Zs), t.forEach((function(t) {
var r = Ic.bind(null, e, t);
n.has(t) || (n.add(t), t.then(r, r))
}))
}
}
function ml(e, t) {
var n = t.deletions;
if (null !== n)
for (var r = 0; r < n.length; r++) {
var i = n[r];
try {
var o = e,
s = t,
l = s;
e: for (; null !== l;) {
switch (l.tag) {
case 5:
ul = l.stateNode, dl = !1;
break e;
case 3:
case 4:
ul = l.stateNode.containerInfo, dl = !0;
break e
}
l = l.return
}
if (null === ul) throw Error(a(160));
hl(o, s, i), ul = null, dl = !1;
var c = i.alternate;
null !== c && (c.return = null), i.return = null
} catch (u) {
Ec(i, t, u)
}
}
if (12854 & t.subtreeFlags)
for (t = t.child; null !== t;) gl(t, e), t = t.sibling
}
function gl(e, t) {
var n = e.alternate,
r = e.flags;
switch (e.tag) {
case 0:
case 11:
case 14:
case 15:
if (ml(t, e), vl(e), 4 & r) {
try {
nl(3, e, e.return), rl(3, e)
} catch (g) {
Ec(e, e.return, g)
}
try {
nl(5, e, e.return)
} catch (g) {
Ec(e, e.return, g)
}
}
break;
case 1:
ml(t, e), vl(e), 512 & r && null !== n && Js(n, n.return);
break;
case 5:
if (ml(t, e), vl(e), 512 & r && null !== n && Js(n, n.return), 32 & e.flags) {
var i = e.stateNode;
try {
pe(i, "")
} catch (g) {
Ec(e, e.return, g)
}
}
if (4 & r && null != (i = e.stateNode)) {
var o = e.memoizedProps,
s = null !== n ? n.memoizedProps : o,
l = e.type,
c = e.updateQueue;
if (e.updateQueue = null, null !== c) try {
"input" === l && "radio" === o.type && null != o.name && Z(i, o), ye(l, s);
var u = ye(l, o);
for (s = 0; s < c.length; s += 2) {
var d = c[s],
p = c[s + 1];
"style" === d ? ge(i, p) : "dangerouslySetInnerHTML" === d ? de(i, p) : "children" === d ? pe(i, p) : y(i, d, p, u)
}
switch (l) {
case "input":
X(i, o);
break;
case "textarea":
ae(i, o);
break;
case "select":
var h = i._wrapperState.wasMultiple;
i._wrapperState.wasMultiple = !!o.multiple;
var f = o.value;
null != f ? ne(i, !!o.multiple, f, !1) : h !== !!o.multiple && (null != o.defaultValue ? ne(i, !!o.multiple, o.defaultValue, !0) : ne(i, !!o.multiple, o.multiple ? [] : "", !1))
}
i[hi] = o
} catch (g) {
Ec(e, e.return, g)
}
}
break;
case 6:
if (ml(t, e), vl(e), 4 & r) {
if (null === e.stateNode) throw Error(a(162));
i = e.stateNode, o = e.memoizedProps;
try {
i.nodeValue = o
} catch (g) {
Ec(e, e.return, g)
}
}
break;
case 3:
if (ml(t, e), vl(e), 4 & r && null !== n && n.memoizedState.isDehydrated) try {
Gt(t.containerInfo)
} catch (g) {
Ec(e, e.return, g)
}
break;
case 4:
default:
ml(t, e), vl(e);
break;
case 13:
ml(t, e), vl(e), 8192 & (i = e.child).flags && (o = null !== i.memoizedState, i.stateNode.isHidden = o, !o || null !== i.alternate && null !== i.alternate.memoizedState || (Vl = Ze())), 4 & r && fl(e);
break;
case 22:
if (d = null !== n && null !== n.memoizedState, 1 & e.mode ? (Qs = (u = Qs) || d, ml(t, e), Qs = u) : ml(t, e), vl(e), 8192 & r) {
if (u = null !== e.memoizedState, (e.stateNode.isHidden = u) && !d && 0 !== (1 & e.mode))
for (Xs = e, d = e.child; null !== d;) {
for (p = Xs = d; null !== Xs;) {
switch (f = (h = Xs).child, h.tag) {
case 0:
case 11:
case 14:
case 15:
nl(4, h, h.return);
break;
case 1:
Js(h, h.return);
var m = h.stateNode;
if ("function" === typeof m.componentWillUnmount) {
r = h, n = h.return;
try {
t = r, m.props = t.memoizedProps, m.state = t.memoizedState, m.componentWillUnmount()
} catch (g) {
Ec(r, n, g)
}
}
break;
case 5:
Js(h, h.return);
break;
case 22:
if (null !== h.memoizedState) {
xl(p);
continue
}
}
null !== f ? (f.return = h, Xs = f) : xl(p)
}
d = d.sibling
}
e: for (d = null, p = e;;) {
if (5 === p.tag) {
if (null === d) {
d = p;
try {
i = p.stateNode, u ? "function" === typeof(o = i.style).setProperty ? o.setProperty("display", "none", "important") : o.display = "none" : (l = p.stateNode, s = void 0 !== (c = p.memoizedProps.style) && null !== c && c.hasOwnProperty("display") ? c.display : null, l.style.display = me("display", s))
} catch (g) {
Ec(e, e.return, g)
}
}
} else if (6 === p.tag) {
if (null === d) try {
p.stateNode.nodeValue = u ? "" : p.memoizedProps
} catch (g) {
Ec(e, e.return, g)
}
} else if ((22 !== p.tag && 23 !== p.tag || null === p.memoizedState || p === e) && null !== p.child) {
p.child.return = p, p = p.child;
continue
}
if (p === e) break e;
for (; null === p.sibling;) {
if (null === p.return || p.return === e) break e;
d === p && (d = null), p = p.return
}
d === p && (d = null), p.sibling.return = p.return, p = p.sibling
}
}
break;
case 19:
ml(t, e), vl(e), 4 & r && fl(e);
case 21:
}
}
function vl(e) {
var t = e.flags;
if (2 & t) {
try {
e: {
for (var n = e.return; null !== n;) {
if (ol(n)) {
var r = n;
break e
}
n = n.return
}
throw Error(a(160))
}
switch (r.tag) {
case 5:
var i = r.stateNode;
32 & r.flags && (pe(i, ""), r.flags &= -33), cl(e, sl(e), i);
break;
case 3:
case 4:
var o = r.stateNode.containerInfo;
ll(e, sl(e), o);
break;
default:
throw Error(a(161))
}
}
catch (s) {
Ec(e, e.return, s)
}
e.flags &= -3
}
4096 & t && (e.flags &= -4097)
}
function _l(e, t, n) {
Xs = e, yl(e, t, n)
}
function yl(e, t, n) {
for (var r = 0 !== (1 & e.mode); null !== Xs;) {
var i = Xs,
a = i.child;
if (22 === i.tag && r) {
var o = null !== i.memoizedState || Ks;
if (!o) {
var s = i.alternate,
l = null !== s && null !== s.memoizedState || Qs;
s = Ks;
var c = Qs;
if (Ks = o, (Qs = l) && !c)
for (Xs = i; null !== Xs;) l = (o = Xs).child, 22 === o.tag && null !== o.memoizedState ? wl(i) : null !== l ? (l.return = o, Xs = l) : wl(i);
for (; null !== a;) Xs = a, yl(a, t, n), a = a.sibling;
Xs = i, Ks = s, Qs = c
}
bl(e)
} else 0 !== (8772 & i.subtreeFlags) && null !== a ? (a.return = i, Xs = a) : bl(e)
}
}
function bl(e) {
for (; null !== Xs;) {
var t = Xs;
if (0 !== (8772 & t.flags)) {
var n = t.alternate;
try {
if (0 !== (8772 & t.flags)) switch (t.tag) {
case 0:
case 11:
case 15:
Qs || rl(5, t);
break;
case 1:
var r = t.stateNode;
if (4 & t.flags && !Qs)
if (null === n) r.componentDidMount();
else {
var i = t.elementType === t.type ? n.memoizedProps : ga(t.type, n.memoizedProps);
r.componentDidUpdate(i, n.memoizedState, r.__reactInternalSnapshotBeforeUpdate)
} var o = t.updateQueue;
null !== o && za(t, o, r);
break;
case 3:
var s = t.updateQueue;
if (null !== s) {
if (n = null, null !== t.child) switch (t.child.tag) {
case 5:
case 1:
n = t.child.stateNode
}
za(t, s, n)
}
break;
case 5:
var l = t.stateNode;
if (null === n && 4 & t.flags) {
n = l;
var c = t.memoizedProps;
switch (t.type) {
case "button":
case "input":
case "select":
case "textarea":
c.autoFocus && n.focus();
break;
case "img":
c.src && (n.src = c.src)
}
}
break;
case 6:
case 4:
case 12:
case 19:
case 17:
case 21:
case 22:
case 23:
case 25:
break;
case 13:
if (null === t.memoizedState) {
var u = t.alternate;
if (null !== u) {
var d = u.memoizedState;
if (null !== d) {
var p = d.dehydrated;
null !== p && Gt(p)
}
}
}
break;
default:
throw Error(a(163))
}
Qs || 512 & t.flags && il(t)
} catch (h) {
Ec(t, t.return, h)
}
}
if (t === e) {
Xs = null;
break
}
if (null !== (n = t.sibling)) {
n.return = t.return, Xs = n;
break
}
Xs = t.return
}
}
function xl(e) {
for (; null !== Xs;) {
var t = Xs;
if (t === e) {
Xs = null;
break
}
var n = t.sibling;
if (null !== n) {
n.return = t.return, Xs = n;
break
}
Xs = t.return
}
}
function wl(e) {
for (; null !== Xs;) {
var t = Xs;
try {
switch (t.tag) {
case 0:
case 11:
case 15:
var n = t.return;
try {
rl(4, t)
} catch (l) {
Ec(t, n, l)
}
break;
case 1:
var r = t.stateNode;
if ("function" === typeof r.componentDidMount) {
var i = t.return;
try {
r.componentDidMount()
} catch (l) {
Ec(t, i, l)
}
}
var a = t.return;
try {
il(t)
} catch (l) {
Ec(t, a, l)
}
break;
case 5:
var o = t.return;
try {
il(t)
} catch (l) {
Ec(t, o, l)
}
}
} catch (l) {
Ec(t, t.return, l)
}
if (t === e) {
Xs = null;
break
}
var s = t.sibling;
if (null !== s) {
s.return = t.return, Xs = s;
break
}
Xs = t.return
}
}
var kl, El = Math.ceil,
Sl = b.ReactCurrentDispatcher,
Ol = b.ReactCurrentOwner,
Pl = b.ReactCurrentBatchConfig,
Il = 0,
Al = null,
Cl = null,
Rl = 0,
Tl = 0,
Dl = Ei(0),
Nl = 0,
Ll = null,
jl = 0,
Ml = 0,
zl = 0,
Fl = null,
Ul = null,
Vl = 0,
Gl = 1 / 0,
Bl = null,
$l = !1,
ql = null,
Wl = null,
Hl = !1,
Yl = null,
Kl = 0,
Ql = 0,
Zl = null,
Xl = -1,
Jl = 0;
function ec() {
return 0 !== (6 & Il) ? Ze() : -1 !== Xl ? Xl : Xl = Ze()
}
function tc(e) {
return 0 === (1 & e.mode) ? 1 : 0 !== (2 & Il) && 0 !== Rl ? Rl & -Rl : null !== ma.transition ? (0 === Jl && (Jl = mt()), Jl) : 0 !== (e = yt) ? e : e = void 0 === (e = window.event) ? 16 : Qt(e.type)
}
function nc(e, t, n, r) {
if (50 < Ql) throw Ql = 0, Zl = null, Error(a(185));
vt(e, n, r), 0 !== (2 & Il) && e === Al || (e === Al && (0 === (2 & Il) && (Ml |= n), 4 === Nl && sc(e, Rl)), rc(e, r), 1 === n && 0 === Il && 0 === (1 & t.mode) && (Gl = Ze() + 500, Fi && Gi()))
}
function rc(e, t) {
var n = e.callbackNode;
! function(e, t) {
for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes; 0 < a;) {
var o = 31 - ot(a),
s = 1 << o,
l = i[o]; - 1 === l ? 0 !== (s & n) && 0 === (s & r) || (i[o] = ht(s, t)) : l <= t && (e.expiredLanes |= s), a &= ~s
}
}(e, t);
var r = pt(e, e === Al ? Rl : 0);
if (0 === r) null !== n && Ye(n), e.callbackNode = null, e.callbackPriority = 0;
else if (t = r & -r, e.callbackPriority !== t) {
if (null != n && Ye(n), 1 === t) 0 === e.tag ? function(e) {
Fi = !0, Vi(e)
}(lc.bind(null, e)) : Vi(lc.bind(null, e)), oi((function() {
0 === (6 & Il) && Gi()
})), n = null;
else {
switch (bt(r)) {
case 1:
n = Je;
break;
case 4:
n = et;
break;
case 16:
default:
n = tt;
break;
case 536870912:
n = rt
}
n = Ac(n, ic.bind(null, e))
}
e.callbackPriority = t, e.callbackNode = n
}
}
function ic(e, t) {
if (Xl = -1, Jl = 0, 0 !== (6 & Il)) throw Error(a(327));
var n = e.callbackNode;
if (wc() && e.callbackNode !== n) return null;
var r = pt(e, e === Al ? Rl : 0);
if (0 === r) return null;
if (0 !== (30 & r) || 0 !== (r & e.expiredLanes) || t) t = gc(e, r);
else {
t = r;
var i = Il;
Il |= 2;
var o = fc();
for (Al === e && Rl === t || (Bl = null, Gl = Ze() + 500, pc(e, t));;) try {
_c();
break
} catch (l) {
hc(e, l)
}
xa(), Sl.current = o, Il = i, null !== Cl ? t = 0 : (Al = null, Rl = 0, t = Nl)
}
if (0 !== t) {
if (2 === t && (0 !== (i = ft(e)) && (r = i, t = ac(e, i))), 1 === t) throw n = Ll, pc(e, 0), sc(e, r), rc(e, Ze()), n;
if (6 === t) sc(e, r);
else {
if (i = e.current.alternate, 0 === (30 & r) && ! function(e) {
for (var t = e;;) {
if (16384 & t.flags) {
var n = t.updateQueue;
if (null !== n && null !== (n = n.stores))
for (var r = 0; r < n.length; r++) {
var i = n[r],
a = i.getSnapshot;
i = i.value;
try {
if (!sr(a(), i)) return !1
} catch (s) {
return !1
}
}
}
if (n = t.child, 16384 & t.subtreeFlags && null !== n) n.return = t, t = n;
else {
if (t === e) break;
for (; null === t.sibling;) {
if (null === t.return || t.return === e) return !0;
t = t.return
}
t.sibling.return = t.return, t = t.sibling
}
}
return !0
}(i) && (2 === (t = gc(e, r)) && (0 !== (o = ft(e)) && (r = o, t = ac(e, o))), 1 === t)) throw n = Ll, pc(e, 0), sc(e, r), rc(e, Ze()), n;
switch (e.finishedWork = i, e.finishedLanes = r, t) {
case 0:
case 1:
throw Error(a(345));
case 2:
case 5:
xc(e, Ul, Bl);
break;
case 3:
if (sc(e, r), (130023424 & r) === r && 10 < (t = Vl + 500 - Ze())) {
if (0 !== pt(e, 0)) break;
if (((i = e.suspendedLanes) & r) !== r) {
ec(), e.pingedLanes |= e.suspendedLanes & i;
break
}
e.timeoutHandle = ri(xc.bind(null, e, Ul, Bl), t);
break
}
xc(e, Ul, Bl);
break;
case 4:
if (sc(e, r), (4194240 & r) === r) break;
for (t = e.eventTimes, i = -1; 0 < r;) {
var s = 31 - ot(r);
o = 1 << s, (s = t[s]) > i && (i = s), r &= ~o
}
if (r = i, 10 < (r = (120 > (r = Ze() - r) ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * El(r / 1960)) - r)) {
e.timeoutHandle = ri(xc.bind(null, e, Ul, Bl), r);
break
}
xc(e, Ul, Bl);
break;
default:
throw Error(a(329))
}
}
}
return rc(e, Ze()), e.callbackNode === n ? ic.bind(null, e) : null
}
function ac(e, t) {
var n = Fl;
return e.current.memoizedState.isDehydrated && (pc(e, t).flags |= 256), 2 !== (e = gc(e, t)) && (t = Ul, Ul = n, null !== t && oc(t)), e
}
function oc(e) {
null === Ul ? Ul = e : Ul.push.apply(Ul, e)
}
function sc(e, t) {
for (t &= ~zl, 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
}
}
function lc(e) {
if (0 !== (6 & Il)) throw Error(a(327));
wc();
var t = pt(e, 0);
if (0 === (1 & t)) return rc(e, Ze()), null;
var n = gc(e, t);
if (0 !== e.tag && 2 === n) {
var r = ft(e);
0 !== r && (t = r, n = ac(e, r))
}
if (1 === n) throw n = Ll, pc(e, 0), sc(e, t), rc(e, Ze()), n;
if (6 === n) throw Error(a(345));
return e.finishedWork = e.current.alternate, e.finishedLanes = t, xc(e, Ul, Bl), rc(e, Ze()), null
}
function cc(e, t) {
var n = Il;
Il |= 1;
try {
return e(t)
} finally {
0 === (Il = n) && (Gl = Ze() + 500, Fi && Gi())
}
}
function uc(e) {
null !== Yl && 0 === Yl.tag && 0 === (6 & Il) && wc();
var t = Il;
Il |= 1;
var n = Pl.transition,
r = yt;
try {
if (Pl.transition = null, yt = 1, e) return e()
} finally {
yt = r, Pl.transition = n, 0 === (6 & (Il = t)) && Gi()
}
}
function dc() {
Tl = Dl.current, Si(Dl)
}
function pc(e, t) {
e.finishedWork = null, e.finishedLanes = 0;
var n = e.timeoutHandle;
if (-1 !== n && (e.timeoutHandle = -1, ii(n)), null !== Cl)
for (n = Cl.return; null !== n;) {
var r = n;
switch (ta(r), r.tag) {
case 1:
null !== (r = r.type.childContextTypes) && void 0 !== r && Di();
break;
case 3:
io(), Si(Ai), Si(Ii), uo();
break;
case 5:
oo(r);
break;
case 4:
io();
break;
case 13:
case 19:
Si(so);
break;
case 10:
wa(r.type._context);
break;
case 22:
case 23:
dc()
}
n = n.return
}
if (Al = e, Cl = e = Dc(e.current, null), Rl = Tl = t, Nl = 0, Ll = null, zl = Ml = jl = 0, Ul = Fl = 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;
if (null !== a) {
var o = a.next;
a.next = i, r.next = o
}
n.pending = r
} Oa = null
}
return e
}
function hc(e, t) {
for (;;) {
var n = Cl;
try {
if (xa(), po.current = os, _o) {
for (var r = mo.memoizedState; null !== r;) {
var i = r.queue;
null !== i && (i.pending = null), r = r.next
}
_o = !1
}
if (fo = 0, vo = go = mo = null, yo = !1, bo = 0, Ol.current = null, null === n || null === n.return) {
Nl = 1, Ll = t, Cl = null;
break
}
e: {
var o = e,
s = n.return,
l = n,
c = t;
if (t = Rl, l.flags |= 32768, null !== c && "object" === typeof c && "function" === typeof c.then) {
var u = c,
d = l,
p = d.tag;
if (0 === (1 & d.mode) && (0 === p || 11 === p || 15 === p)) {
var h = d.alternate;
h ? (d.updateQueue = h.updateQueue, d.memoizedState = h.memoizedState, d.lanes = h.lanes) : (d.updateQueue = null, d.memoizedState = null)
}
var f = vs(s);
if (null !== f) {
f.flags &= -257, _s(f, s, l, 0, t), 1 & f.mode && gs(o, u, t), c = u;
var m = (t = f).updateQueue;
if (null === m) {
var g = new Set;
g.add(c), t.updateQueue = g
} else m.add(c);
break e
}
if (0 === (1 & t)) {
gs(o, u, t), mc();
break e
}
c = Error(a(426))
} else if (ia && 1 & l.mode) {
var v = vs(s);
if (null !== v) {
0 === (65536 & v.flags) && (v.flags |= 256), _s(v, s, l, 0, t), fa(us(c, l));
break e
}
}
o = c = us(c, l),
4 !== Nl && (Nl = 2),
null === Fl ? Fl = [o] : Fl.push(o),
o = s;do {
switch (o.tag) {
case 3:
o.flags |= 65536, t &= -t, o.lanes |= t, ja(o, fs(0, c, t));
break e;
case 1:
l = c;
var _ = o.type,
y = o.stateNode;
if (0 === (128 & o.flags) && ("function" === typeof _.getDerivedStateFromError || null !== y && "function" === typeof y.componentDidCatch && (null === Wl || !Wl.has(y)))) {
o.flags |= 65536, t &= -t, o.lanes |= t, ja(o, ms(o, l, t));
break e
}
}
o = o.return
} while (null !== o)
}
bc(n)
} catch (b) {
t = b, Cl === n && null !== n && (Cl = n = n.return);
continue
}
break
}
}
function fc() {
var e = Sl.current;
return Sl.current = os, null === e ? os : e
}
function mc() {
0 !== Nl && 3 !== Nl && 2 !== Nl || (Nl = 4), null === Al || 0 === (268435455 & jl) && 0 === (268435455 & Ml) || sc(Al, Rl)
}
function gc(e, t) {
var n = Il;
Il |= 2;
var r = fc();
for (Al === e && Rl === t || (Bl = null, pc(e, t));;) try {
vc();
break
} catch (i) {
hc(e, i)
}
if (xa(), Il = n, Sl.current = r, null !== Cl) throw Error(a(261));
return Al = null, Rl = 0, Nl
}
function vc() {
for (; null !== Cl;) yc(Cl)
}
function _c() {
for (; null !== Cl && !Ke();) yc(Cl)
}
function yc(e) {
var t = kl(e.alternate, e, Tl);
e.memoizedProps = e.pendingProps, null === t ? bc(e) : Cl = t, Ol.current = null
}
function bc(e) {
var t = e;
do {
var n = t.alternate;
if (e = t.return, 0 === (32768 & t.flags)) {
if (null !== (n = Hs(n, t, Tl))) return void(Cl = n)
} else {
if (null !== (n = Ys(n, t))) return n.flags &= 32767, void(Cl = n);
if (null === e) return Nl = 6, void(Cl = null);
e.flags |= 32768, e.subtreeFlags = 0, e.deletions = null
}
if (null !== (t = t.sibling)) return void(Cl = t);
Cl = t = e
} while (null !== t);
0 === Nl && (Nl = 5)
}
function xc(e, t, n) {
var r = yt,
i = Pl.transition;
try {
Pl.transition = null, yt = 1,
function(e, t, n, r) {
do {
wc()
} while (null !== Yl);
if (0 !== (6 & Il)) throw Error(a(327));
n = e.finishedWork;
var i = e.finishedLanes;
if (null === n) return null;
if (e.finishedWork = null, e.finishedLanes = 0, n === e.current) throw Error(a(177));
e.callbackNode = null, e.callbackPriority = 0;
var o = n.lanes | n.childLanes;
if (function(e, t) {
var n = e.pendingLanes & ~t;
e.pendingLanes = t, e.suspendedLanes = 0, e.pingedLanes = 0, e.expiredLanes &= t, e.mutableReadLanes &= t, e.entangledLanes &= t, t = e.entanglements;
var r = e.eventTimes;
for (e = e.expirationTimes; 0 < n;) {
var i = 31 - ot(n),
a = 1 << i;
t[i] = 0, r[i] = -1, e[i] = -1, n &= ~a
}
}(e, o), e === Al && (Cl = Al = null, Rl = 0), 0 === (2064 & n.subtreeFlags) && 0 === (2064 & n.flags) || Hl || (Hl = !0, Ac(tt, (function() {
return wc(), null
}))), o = 0 !== (15990 & n.flags), 0 !== (15990 & n.subtreeFlags) || o) {
o = Pl.transition, Pl.transition = null;
var s = yt;
yt = 1;
var l = Il;
Il |= 4, Ol.current = null,
function(e, t) {
if (ei = $t, hr(e = pr())) {
if ("selectionStart" in e) var n = {
start: e.selectionStart,
end: e.selectionEnd
};
else e: {
var r = (n = (n = e.ownerDocument) && n.defaultView || window).getSelection && n.getSelection();
if (r && 0 !== r.rangeCount) {
n = r.anchorNode;
var i = r.anchorOffset,
o = r.focusNode;
r = r.focusOffset;
try {
n.nodeType, o.nodeType
} catch (x) {
n = null;
break e
}
var s = 0,
l = -1,
c = -1,
u = 0,
d = 0,
p = e,
h = null;
t: for (;;) {
for (var f; p !== n || 0 !== i && 3 !== p.nodeType || (l = s + i), p !== o || 0 !== r && 3 !== p.nodeType || (c = s + r), 3 === p.nodeType && (s += p.nodeValue.length), null !== (f = p.firstChild);) h = p, p = f;
for (;;) {
if (p === e) break t;
if (h === n && ++u === i && (l = s), h === o && ++d === r && (c = s), null !== (f = p.nextSibling)) break;
h = (p = h).parentNode
}
p = f
}
n = -1 === l || -1 === c ? null : {
start: l,
end: c
}
} else n = null
}
n = n || {
start: 0,
end: 0
}
} else n = null;
for (ti = {
focusedElem: e,
selectionRange: n
}, $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;) {
t = Xs;
try {
var m = t.alternate;
if (0 !== (1024 & t.flags)) switch (t.tag) {
case 0:
case 11:
case 15:
case 5:
case 6:
case 4:
case 17:
break;
case 1:
if (null !== m) {
var g = m.memoizedProps,
v = m.memoizedState,
_ = t.stateNode,
y = _.getSnapshotBeforeUpdate(t.elementType === t.type ? g : ga(t.type, g), v);
_.__reactInternalSnapshotBeforeUpdate = y
}
break;
case 3:
var b = t.stateNode.containerInfo;
1 === b.nodeType ? b.textContent = "" : 9 === b.nodeType && b.documentElement && b.removeChild(b.documentElement);
break;
default:
throw Error(a(163))
}
} catch (x) {
Ec(t, t.return, x)
}
if (null !== (e = t.sibling)) {
e.return = t.return, Xs = e;
break
}
Xs = t.return
}
m = tl, tl = !1
}(e, n), gl(n, e), fr(ti), $t = !!ei, ti = ei = null, e.current = n, _l(n, e, i), Qe(), Il = l, yt = s, Pl.transition = o
} else e.current = n;
if (Hl && (Hl = !1, Yl = e, Kl = 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) {}
}(n.stateNode), rc(e, Ze()), null !== t)
for (r = e.onRecoverableError, n = 0; n < t.length; n++) i = t[n], r(i.value, {
componentStack: i.stack,
digest: i.digest
});
if ($l) throw $l = !1, e = ql, ql = null, e;
0 !== (1 & Kl) && 0 !== e.tag && wc(), o = e.pendingLanes, 0 !== (1 & o) ? e === Zl ? Ql++ : (Ql = 0, Zl = e) : Ql = 0, Gi()
}(e, t, n, r)
} finally {
Pl.transition = i, yt = r
}
return null
}
function wc() {
if (null !== Yl) {
var e = bt(Kl),
t = Pl.transition,
n = yt;
try {
if (Pl.transition = null, yt = 16 > e ? 16 : e, null === Yl) var r = !1;
else {
if (e = Yl, Yl = null, Kl = 0, 0 !== (6 & Il)) throw Error(a(331));
var i = Il;
for (Il |= 4, Xs = e.current; null !== Xs;) {
var o = Xs,
s = o.child;
if (0 !== (16 & Xs.flags)) {
var l = o.deletions;
if (null !== l) {
for (var c = 0; c < l.length; c++) {
var u = l[c];
for (Xs = u; null !== Xs;) {
var d = Xs;
switch (d.tag) {
case 0:
case 11:
case 15:
nl(8, d, o)
}
var p = d.child;
if (null !== p) p.return = d, Xs = p;
else
for (; null !== Xs;) {
var h = (d = Xs).sibling,
f = d.return;
if (al(d), d === u) {
Xs = null;
break
}
if (null !== h) {
h.return = f, Xs = h;
break
}
Xs = f
}
}
}
var m = o.alternate;
if (null !== m) {
var g = m.child;
if (null !== g) {
m.child = null;
do {
var v = g.sibling;
g.sibling = null, g = v
} while (null !== g)
}
}
Xs = o
}
}
if (0 !== (2064 & o.subtreeFlags) && null !== s) s.return = o, Xs = s;
else e: for (; null !== Xs;) {
if (0 !== (2048 & (o = Xs).flags)) switch (o.tag) {
case 0:
case 11:
case 15:
nl(9, o, o.return)
}
var _ = o.sibling;
if (null !== _) {
_.return = o.return, Xs = _;
break e
}
Xs = o.return
}
}
var y = e.current;
for (Xs = y; null !== Xs;) {
var b = (s = Xs).child;
if (0 !== (2064 & s.subtreeFlags) && null !== b) b.return = s, Xs = b;
else e: for (s = y; null !== Xs;) {
if (0 !== (2048 & (l = Xs).flags)) try {
switch (l.tag) {
case 0:
case 11:
case 15:
rl(9, l)
}
} catch (w) {
Ec(l, l.return, w)
}
if (l === s) {
Xs = null;
break e
}
var x = l.sibling;
if (null !== x) {
x.return = l.return, Xs = x;
break e
}
Xs = l.return
}
}
if (Il = i, Gi(), at && "function" === typeof at.onPostCommitFiberRoot) try {
at.onPostCommitFiberRoot(it, e)
} catch (w) {}
r = !0
}
return r
} finally {
yt = n, Pl.transition = t
}
}
return !1
}
function kc(e, t, n) {
e = Na(e, t = fs(0, t = us(n, t), 1), 1), t = ec(), null !== e && (vt(e, 1, t), rc(e, t))
}
function Ec(e, t, n) {
if (3 === e.tag) kc(e, e, n);
else
for (; null !== t;) {
if (3 === t.tag) {
kc(t, e, n);
break
}
if (1 === t.tag) {
var r = t.stateNode;
if ("function" === typeof t.type.getDerivedStateFromError || "function" === typeof r.componentDidCatch && (null === Wl || !Wl.has(r))) {
t = Na(t, e = ms(t, e = us(n, e), 1), 1), e = ec(), null !== t && (vt(t, 1, e), rc(t, e));
break
}
}
t = t.return
}
}
function Sc(e, t, n) {
var r = e.pingCache;
null !== r && r.delete(t), t = ec(), e.pingedLanes |= e.suspendedLanes & n, Al === e && (Rl & n) === n && (4 === Nl || 3 === Nl && (130023424 & Rl) === Rl && 500 > Ze() - Vl ? pc(e, 0) : zl |= n), rc(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 Pc(e) {
var t = e.memoizedState,
n = 0;
null !== t && (n = t.retryLane), Oc(e, n)
}
function Ic(e, t) {
var n = 0;
switch (e.tag) {
case 13:
var r = e.stateNode,
i = e.memoizedState;
null !== i && (n = i.retryLane);
break;
case 19:
r = e.stateNode;
break;
default:
throw Error(a(314))
}
null !== r && r.delete(t), Oc(e, n)
}
function Ac(e, t) {
return He(e, t)
}
function Cc(e, t, n, r) {
this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null
}
function Rc(e, t, n, r) {
return new Cc(e, t, n, r)
}
function Tc(e) {
return !(!(e = e.prototype) || !e.isReactComponent)
}
function Dc(e, t) {
var n = e.alternate;
return null === n ? ((n = Rc(e.tag, t, e.key, e.mode)).elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = 14680064 & e.flags, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = null === t ? null : {
lanes: t.lanes,
firstContext: t.firstContext
}, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n
}
function Nc(e, t, n, r, i, o) {
var s = 2;
if (r = e, "function" === typeof e) Tc(e) && (s = 1);
else if ("string" === typeof e) s = 5;
else e: switch (e) {
case k:
return Lc(n.children, i, o, t);
case E:
s = 8, i |= 8;
break;
case S:
return (e = Rc(12, n, t, 2 | i)).elementType = S, e.lanes = o, e;
case A:
return (e = Rc(13, n, t, i)).elementType = A, e.lanes = o, e;
case C:
return (e = Rc(19, n, t, i)).elementType = C, e.lanes = o, e;
case D:
return jc(n, i, o, t);
default:
if ("object" === typeof e && null !== e) switch (e.$$typeof) {
case O:
s = 10;
break e;
case P:
s = 9;
break e;
case I:
s = 11;
break e;
case R:
s = 14;
break e;
case T:
s = 16, r = null;
break e
}
throw Error(a(130, null == e ? e : typeof e, ""))
}
return (t = Rc(s, n, t, i)).elementType = e, t.type = r, t.lanes = o, t
}
function Lc(e, t, n, r) {
return (e = Rc(7, e, r, t)).lanes = n, e
}
function jc(e, t, n, r) {
return (e = Rc(22, e, r, t)).elementType = D, e.lanes = n, e.stateNode = {
isHidden: !1
}, e
}
function Mc(e, t, n) {
return (e = Rc(6, e, null, t)).lanes = n, e
}
function zc(e, t, n) {
return (t = Rc(4, null !== e.children ? e.children : [], e.key, t)).lanes = n, t.stateNode = {
containerInfo: e.containerInfo,
pendingChildren: null,
implementation: e.implementation
}, t
}
function Fc(e, t, n, r, i) {
this.tag = t, this.containerInfo = e, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = gt(0), this.expirationTimes = gt(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = gt(0), this.identifierPrefix = r, this.onRecoverableError = i, this.mutableSourceEagerHydrationData = null
}
function Uc(e, t, n, r, i, a, o, s, l) {
return e = new Fc(e, t, n, s, l), 1 === t ? (t = 1, !0 === a && (t |= 8)) : t = 0, a = Rc(3, null, null, t), e.current = a, a.stateNode = e, a.memoizedState = {
element: r,
isDehydrated: n,
cache: null,
transitions: null,
pendingSuspenseBoundaries: null
}, Ra(a), e
}
function Vc(e, t, n) {
var r = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
return {
$$typeof: w,
key: null == r ? null : "" + r,
children: e,
containerInfo: t,
implementation: n
}
}
function Gc(e) {
if (!e) return Pi;
e: {
if (Ge(e = e._reactInternals) !== e || 1 !== e.tag) throw Error(a(170));
var t = e;do {
switch (t.tag) {
case 3:
t = t.stateNode.context;
break e;
case 1:
if (Ti(t.type)) {
t = t.stateNode.__reactInternalMemoizedMergedChildContext;
break e
}
}
t = t.return
} while (null !== t);
throw Error(a(171))
}
if (1 === e.tag) {
var n = e.type;
if (Ti(n)) return Li(e, n, t)
}
return t
}
function Bc(e, t, n, r, i, a, o, s, l) {
return (e = Uc(n, r, !0, e, 0, a, 0, s, l)).context = Gc(null), n = e.current, (a = Da(r = ec(), i = tc(n))).callback = void 0 !== t && null !== t ? t : null, Na(n, a, i), e.current.lanes = i, vt(e, i, r), rc(e, r), e
}
function $c(e, t, n, r) {
var i = t.current,
a = ec(),
o = tc(i);
return n = Gc(n), null === t.context ? t.context = n : t.pendingContext = n, (t = Da(a, o)).payload = {
element: e
}, null !== (r = void 0 === r ? null : r) && (t.callback = r), null !== (e = Na(i, t, o)) && (nc(e, i, o, a), La(e, i, o)), o
}
function qc(e) {
return (e = e.current).child ? (e.child.tag, e.child.stateNode) : null
}
function Wc(e, t) {
if (null !== (e = e.memoizedState) && null !== e.dehydrated) {
var n = e.retryLane;
e.retryLane = 0 !== n && n < t ? n : t
}
}
function Hc(e, t) {
Wc(e, t), (e = e.alternate) && Wc(e, t)
}
kl = function(e, t, n) {
if (null !== e)
if (e.memoizedProps !== t.pendingProps || Ai.current) bs = !0;
else {
if (0 === (e.lanes & n) && 0 === (128 & t.flags)) return bs = !1,
function(e, t, n) {
switch (t.tag) {
case 3:
Cs(t), ha();
break;
case 5:
ao(t);
break;
case 1:
Ti(t.type) && ji(t);
break;
case 4:
ro(t, t.stateNode.containerInfo);
break;
case 10:
var r = t.type._context,
i = t.memoizedProps.value;
Oi(va, r._currentValue), r._currentValue = i;
break;
case 13:
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 Gs(e, t, n);
t.flags |= 128
}
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, Ss(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, Wi, t.index);
switch (t.lanes = 0, t.tag) {
case 2:
var r = t.type;
Bs(e, t), e = t.pendingProps;
var i = Ri(t, Ii.current);
Ea(t, n), i = Eo(null, t, r, e, i, n);
var o = So();
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, Ti(r) ? (o = !0, ji(t)) : o = !1, t.memoizedState = null !== i.state && void 0 !== i.state ? i.state : null, Ra(t), i.updater = Va, 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: {
switch (Bs(e, t), e = t.pendingProps, r = (i = r._init)(r._payload), t.type = r, i = t.tag = function(e) {
if ("function" === typeof e) return Tc(e) ? 1 : 0;
if (void 0 !== e && null !== e) {
if ((e = e.$$typeof) === I) return 11;
if (e === R) return 14
}
return 2
}(r), e = ga(r, e), i) {
case 0:
t = Ps(null, t, r, e, n);
break e;
case 1:
t = Is(null, t, r, e, n);
break e;
case 11:
t = ws(null, t, r, e, n);
break e;
case 14:
t = ks(null, t, r, ga(r.type, e), n);
break e
}
throw Error(a(306, r, ""))
}
return t;
case 0:
return r = t.type, i = t.pendingProps, Ps(e, t, r, i = t.elementType === r ? i : ga(r, i), n);
case 1:
return r = t.type, i = t.pendingProps, Is(e, t, r, i = t.elementType === r ? i : ga(r, i), n);
case 3:
e: {
if (Cs(t), null === e) throw Error(a(387));r = t.pendingProps,
i = (o = t.memoizedState).element,
Ta(e, t),
Ma(t, r, null, n);
var s = t.memoizedState;
if (r = s.element, o.isDehydrated) {
if (o = {
element: r,
isDehydrated: !1,
cache: s.cache,
pendingSuspenseBoundaries: s.pendingSuspenseBoundaries,
transitions: s.transitions
}, t.updateQueue.baseState = o, t.memoizedState = o, 256 & t.flags) {
t = Rs(e, t, r, n, i = us(Error(a(423)), t));
break e
}
if (r !== i) {
t = Rs(e, t, r, n, i = us(Error(a(424)), t));
break e
}
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 = $s(e, t, n);
break e
}
xs(e, t, r, n)
}
t = t.child
}
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), Os(e, t), xs(e, t, s, n), t.child;
case 6:
return null === e && ca(t), null;
case 13:
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:
return r = t.type, i = t.pendingProps, ws(e, t, r, i = t.elementType === r ? i : ga(r, i), n);
case 7:
return xs(e, t, t.pendingProps, n), t.child;
case 8:
case 12:
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, Oi(va, r._currentValue), r._currentValue = s, null !== o)
if (sr(o.value, s)) {
if (o.children === i.children && !Ai.current) {
t = $s(e, t, n);
break e
}
} else
for (null !== (o = t.child) && (o.return = t); null !== o;) {
var l = o.dependencies;
if (null !== l) {
s = o.child;
for (var c = l.firstContext; null !== c;) {
if (c.context === r) {
if (1 === o.tag) {
(c = Da(-1, n & -n)).tag = 2;
var u = o.updateQueue;
if (null !== u) {
var d = (u = u.shared).pending;
null === d ? c.next = c : (c.next = d.next, d.next = c), u.pending = c
}
}
o.lanes |= n, null !== (c = o.alternate) && (c.lanes |= n), ka(o.return, n, t), l.lanes |= n;
break
}
c = c.next
}
} else if (10 === o.tag) s = o.type === t.type ? null : o.child;
else if (18 === o.tag) {
if (null === (s = o.return)) throw Error(a(341));
s.lanes |= n, null !== (l = s.alternate) && (l.lanes |= n), ka(s, n, t), s = o.sibling
} else s = o.child;
if (null !== s) s.return = o;
else
for (s = o; null !== s;) {
if (s === t) {
s = null;
break
}
if (null !== (o = s.sibling)) {
o.return = s.return, s = o;
break
}
s = s.return
}
o = s
}
xs(e, t, i.children, n),
t = t.child
}
return t;
case 9:
return i = t.type, r = t.pendingProps.children, Ea(t, n), r = r(i = Sa(i)), t.flags |= 1, xs(e, t, r, n), t.child;
case 14:
return i = ga(r = t.type, t.pendingProps), ks(e, t, r, i = ga(r.type, i), n);
case 15:
return Es(e, t, t.type, t.pendingProps, n);
case 17:
return r = t.type, i = t.pendingProps, i = t.elementType === r ? i : ga(r, i), Bs(e, t), t.tag = 1, Ti(r) ? (e = !0, ji(t)) : e = !1, Ea(t, n), Ba(t, r, i), qa(t, r, i, n), As(null, t, r, !0, e, n);
case 19:
return Gs(e, t, n);
case 22:
return Ss(e, t, n)
}
throw Error(a(156, t.tag))
};
var Yc = "function" === typeof reportError ? reportError : function(e) {
console.error(e)
};
function Kc(e) {
this._internalRoot = e
}
function Qc(e) {
this._internalRoot = e
}
function Zc(e) {
return !(!e || 1 !== e.nodeType && 9 !== e.nodeType && 11 !== e.nodeType)
}
function Xc(e) {
return !(!e || 1 !== e.nodeType && 9 !== e.nodeType && 11 !== e.nodeType && (8 !== e.nodeType || " react-mount-point-unstable " !== e.nodeValue))
}
function Jc() {}
function eu(e, t, n, r, i) {
var a = n._reactRootContainer;
if (a) {
var o = a;
if ("function" === typeof i) {
var s = i;
i = function() {
var e = qc(o);
s.call(e)
}
}
$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 = qc(o);
a.call(e)
}
}
var o = Bc(t, r, e, 0, null, !1, 0, "", Jc);
return e._reactRootContainer = o, e[fi] = o.current, Gr(8 === e.nodeType ? e.parentNode : e), uc(), o
}
for (; i = e.lastChild;) e.removeChild(i);
if ("function" === typeof r) {
var s = r;
r = function() {
var e = qc(l);
s.call(e)
}
}
var l = Uc(e, 0, !1, null, 0, !1, 0, "", Jc);
return e._reactRootContainer = l, e[fi] = l.current, Gr(8 === e.nodeType ? e.parentNode : e), uc((function() {
$c(t, l, n, r)
})), l
}(n, t, e, i, r);
return qc(o)
}
Qc.prototype.render = Kc.prototype.render = function(e) {
var t = this._internalRoot;
if (null === t) throw Error(a(409));
$c(e, t, null, null)
}, Qc.prototype.unmount = Kc.prototype.unmount = function() {
var e = this._internalRoot;
if (null !== e) {
this._internalRoot = null;
var t = e.containerInfo;
uc((function() {
$c(null, e, null, null)
})), t[fi] = null
}
}, Qc.prototype.unstable_scheduleHydration = function(e) {
if (e) {
var t = Et();
e = {
blockedOn: null,
target: e,
priority: t
};
for (var n = 0; n < Dt.length && 0 !== t && t < Dt[n].priority; n++);
Dt.splice(n, 0, e), 0 === n && Mt(e)
}
}, xt = function(e) {
switch (e.tag) {
case 3:
var t = e.stateNode;
if (t.current.memoizedState.isDehydrated) {
var n = dt(t.pendingLanes);
0 !== n && (_t(t, 1 | n), rc(t, Ze()), 0 === (6 & Il) && (Gl = Ze() + 500, Gi()))
}
break;
case 13:
uc((function() {
var t = Aa(e, 1);
if (null !== t) {
var n = ec();
nc(t, e, 1, n)
}
})), Hc(e, 1)
}
}, wt = function(e) {
if (13 === e.tag) {
var t = Aa(e, 134217728);
if (null !== t) nc(t, e, 134217728, ec());
Hc(e, 134217728)
}
}, kt = function(e) {
if (13 === e.tag) {
var t = tc(e),
n = Aa(e, t);
if (null !== n) nc(n, e, t, ec());
Hc(e, t)
}
}, Et = function() {
return yt
}, St = function(e, t) {
var n = yt;
try {
return yt = e, t()
} finally {
yt = n
}
}, we = function(e, t, n) {
switch (t) {
case "input":
if (X(e, n), t = n.name, "radio" === n.type && null != t) {
for (n = e; n.parentNode;) n = n.parentNode;
for (n = n.querySelectorAll("input[name=" + JSON.stringify("" + t) + '][type="radio"]'), t = 0; t < n.length; t++) {
var r = n[t];
if (r !== e && r.form === e.form) {
var i = xi(r);
if (!i) throw Error(a(90));
H(r), X(r, i)
}
}
}
break;
case "textarea":
ae(e, n);
break;
case "select":
null != (t = n.value) && ne(e, !!n.multiple, t, !1)
}
}, Ie = cc, Ae = uc;
var tu = {
usingClientEntryPoint: !1,
Events: [yi, bi, xi, Oe, Pe, cc]
},
nu = {
findFiberByHostInstance: _i,
bundleType: 0,
version: "18.2.0",
rendererPackageName: "react-dom"
},
ru = {
bundleType: nu.bundleType,
version: nu.version,
rendererPackageName: nu.rendererPackageName,
rendererConfig: nu.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
overrideProps: null,
overridePropsDeletePath: null,
overridePropsRenamePath: null,
setErrorHandler: null,
setSuspenseHandler: null,
scheduleUpdate: null,
currentDispatcherRef: b.ReactCurrentDispatcher,
findHostInstanceByFiber: function(e) {
return null === (e = qe(e)) ? null : e.stateNode
},
findFiberByHostInstance: nu.findFiberByHostInstance || function() {
return null
},
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.2.0-next-9e3b772b8-20220608"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var iu = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (!iu.isDisabled && iu.supportsFiber) try {
it = iu.inject(ru), at = iu
} catch (ue) {}
}
t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = tu, t.createPortal = function(e, t) {
var n = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
if (!Zc(t)) throw Error(a(200));
return Vc(e, t, null, n)
}, t.createRoot = function(e, t) {
if (!Zc(e)) throw Error(a(299));
var n = !1,
r = "",
i = Yc;
return null !== t && void 0 !== t && (!0 === t.unstable_strictMode && (n = !0), void 0 !== t.identifierPrefix && (r = t.identifierPrefix), void 0 !== t.onRecoverableError && (i = t.onRecoverableError)), t = Uc(e, 1, !1, null, 0, n, 0, r, i), e[fi] = t.current, Gr(8 === e.nodeType ? e.parentNode : e), new Kc(t)
}, t.findDOMNode = function(e) {
if (null == e) return null;
if (1 === e.nodeType) return e;
var t = e._reactInternals;
if (void 0 === t) {
if ("function" === typeof e.render) throw Error(a(188));
throw e = Object.keys(e).join(","), Error(a(268, e))
}
return e = null === (e = qe(t)) ? null : e.stateNode
}, t.flushSync = function(e) {
return uc(e)
}, t.hydrate = function(e, t, n) {
if (!Xc(t)) throw Error(a(200));
return eu(null, e, t, !0, n)
}, t.hydrateRoot = function(e, t, n) {
if (!Zc(e)) throw Error(a(405));
var r = null != n && n.hydratedSources || null,
i = !1,
o = "",
s = Yc;
if (null !== n && void 0 !== n && (!0 === n.unstable_strictMode && (i = !0), void 0 !== n.identifierPrefix && (o = n.identifierPrefix), void 0 !== n.onRecoverableError && (s = n.onRecoverableError)), t = Bc(t, null, e, 1, null != n ? n : null, i, 0, o, s), e[fi] = t.current, Gr(e), r)
for (e = 0; e < r.length; e++) i = (i = (n = r[e])._getVersion)(n._source), null == t.mutableSourceEagerHydrationData ? t.mutableSourceEagerHydrationData = [n, i] : t.mutableSourceEagerHydrationData.push(n, i);
return new Qc(t)
}, t.render = function(e, t, n) {
if (!Xc(t)) throw Error(a(200));
return eu(null, e, t, !1, n)
}, t.unmountComponentAtNode = function(e) {
if (!Xc(e)) throw Error(a(40));
return !!e._reactRootContainer && (uc((function() {
eu(null, null, e, !1, (function() {
e._reactRootContainer = null, e[fi] = null
}))
})), !0)
}, t.unstable_batchedUpdates = cc, t.unstable_renderSubtreeIntoContainer = function(e, t, n, r) {
if (!Xc(n)) throw Error(a(200));
if (null == e || void 0 === e._reactInternals) throw Error(a(38));
return eu(e, t, n, !1, r)
}, t.version = "18.2.0-next-9e3b772b8-20220608"
},
95: (e, t, n) => {
"use strict";
var r = n(8508);
t.createRoot = r.createRoot, t.hydrateRoot = r.hydrateRoot
},
8508: (e, t, n) => {
"use strict";
! function e() {
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE) try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)
} catch (t) {
console.error(t)
}
}(), e.exports = n(1114)
},
8316: (e, t, n) => {
"use strict";
var r = n(1479),
i = Symbol.for("react.element"),
a = Symbol.for("react.fragment"),
o = Object.prototype.hasOwnProperty,
s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
l = {
key: !0,
ref: !0,
__self: !0,
__source: !0
};
function c(e, t, n) {
var r, a = {},
c = null,
u = null;
for (r in void 0 !== n && (c = "" + n), void 0 !== t.key && (c = "" + t.key), void 0 !== t.ref && (u = t.ref), t) o.call(t, r) && !l.hasOwnProperty(r) && (a[r] = t[r]);
if (e && e.defaultProps)
for (r in t = e.defaultProps) void 0 === a[r] && (a[r] = t[r]);
return {
$$typeof: i,
type: e,
key: c,
ref: u,
props: a,
_owner: s.current
}
}
t.Fragment = a, t.jsx = c, t.jsxs = c
},
984: (e, t) => {
"use strict";
var n = Symbol.for("react.element"),
r = Symbol.for("react.portal"),
i = Symbol.for("react.fragment"),
a = Symbol.for("react.strict_mode"),
o = Symbol.for("react.profiler"),
s = Symbol.for("react.provider"),
l = Symbol.for("react.context"),
c = Symbol.for("react.forward_ref"),
u = Symbol.for("react.suspense"),
d = Symbol.for("react.memo"),
p = Symbol.for("react.lazy"),
h = Symbol.iterator;
var f = {
isMounted: function() {
return !1
},
enqueueForceUpdate: function() {},
enqueueReplaceState: function() {},
enqueueSetState: function() {}
},
m = Object.assign,
g = {};
function v(e, t, n) {
this.props = e, this.context = t, this.refs = g, this.updater = n || f
}
function _() {}
function y(e, t, n) {
this.props = e, this.context = t, this.refs = g, this.updater = n || f
}
v.prototype.isReactComponent = {}, v.prototype.setState = function(e, t) {
if ("object" !== typeof e && "function" !== typeof e && null != e) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
this.updater.enqueueSetState(this, e, t, "setState")
}, v.prototype.forceUpdate = function(e) {
this.updater.enqueueForceUpdate(this, e, "forceUpdate")
}, _.prototype = v.prototype;
var b = y.prototype = new _;
b.constructor = y, m(b, v.prototype), b.isPureReactComponent = !0;
var x = Array.isArray,
w = Object.prototype.hasOwnProperty,
k = {
current: null
},
E = {
key: !0,
ref: !0,
__self: !0,
__source: !0
};
function S(e, t, r) {
var i, a = {},
o = null,
s = null;
if (null != t)
for (i in void 0 !== t.ref && (s = t.ref), void 0 !== t.key && (o = "" + t.key), t) w.call(t, i) && !E.hasOwnProperty(i) && (a[i] = t[i]);
var l = arguments.length - 2;
if (1 === l) a.children = r;
else if (1 < l) {
for (var c = Array(l), u = 0; u < l; u++) c[u] = arguments[u + 2];
a.children = c
}
if (e && e.defaultProps)
for (i in l = e.defaultProps) void 0 === a[i] && (a[i] = l[i]);
return {
$$typeof: n,
type: e,
key: o,
ref: s,
props: a,
_owner: k.current
}
}
function O(e) {
return "object" === typeof e && null !== e && e.$$typeof === n
}
var P = /\/+/g;
function I(e, t) {
return "object" === typeof e && null !== e && null != e.key ? function(e) {
var t = {
"=": "=0",
":": "=2"
};
return "$" + e.replace(/[=:]/g, (function(e) {
return t[e]
}))
}("" + e.key) : t.toString(36)
}
function A(e, t, i, a, o) {
var s = typeof e;
"undefined" !== s && "boolean" !== s || (e = null);
var l = !1;
if (null === e) l = !0;
else switch (s) {
case "string":
case "number":
l = !0;
break;
case "object":
switch (e.$$typeof) {
case n:
case r:
l = !0
}
}
if (l) return o = o(l = e), e = "" === a ? "." + I(l, 0) : a, x(o) ? (i = "", null != e && (i = e.replace(P, "$&/") + "/"), A(o, t, i, "", (function(e) {
return e
}))) : null != o && (O(o) && (o = function(e, t) {
return {
$$typeof: n,
type: e.type,
key: t,
ref: e.ref,
props: e.props,
_owner: e._owner
}
}(o, i + (!o.key || l && l.key === o.key ? "" : ("" + o.key).replace(P, "$&/") + "/") + e)), t.push(o)), 1;
if (l = 0, a = "" === a ? "." : a + ":", x(e))
for (var c = 0; c < e.length; c++) {
var u = a + I(s = e[c], c);
l += A(s, t, i, u, o)
} else if (u = function(e) {
return null === e || "object" !== typeof e ? null : "function" === typeof(e = h && e[h] || e["@@iterator"]) ? e : null
}(e), "function" === typeof u)
for (e = u.call(e), c = 0; !(s = e.next()).done;) l += A(s = s.value, t, i, u = a + I(s, c++), o);
else if ("object" === s) throw t = String(e), Error("Objects are not valid as a React child (found: " + ("[object Object]" === t ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
return l
}
function C(e, t, n) {
if (null == e) return e;
var r = [],
i = 0;
return A(e, r, "", "", (function(e) {
return t.call(n, e, i++)
})), r
}
function R(e) {
if (-1 === e._status) {
var t = e._result;
(t = t()).then((function(t) {
0 !== e._status && -1 !== e._status || (e._status = 1, e._result = t)
}), (function(t) {
0 !== e._status && -1 !== e._status || (e._status = 2, e._result = t)
})), -1 === e._status && (e._status = 0, e._result = t)
}
if (1 === e._status) return e._result.default;
throw e._result
}
var T = {
current: null
},
D = {
transition: null
},
N = {
ReactCurrentDispatcher: T,
ReactCurrentBatchConfig: D,
ReactCurrentOwner: k
};
t.Children = {
map: C,
forEach: function(e, t, n) {
C(e, (function() {
t.apply(this, arguments)
}), n)
},
count: function(e) {
var t = 0;
return C(e, (function() {
t++
})), t
},
toArray: function(e) {
return C(e, (function(e) {
return e
})) || []
},
only: function(e) {
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 = y, t.StrictMode = a, t.Suspense = u, t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = N, t.cloneElement = function(e, t, r) {
if (null === e || void 0 === e) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
var i = m({}, e.props),
a = e.key,
o = e.ref,
s = e._owner;
if (null != t) {
if (void 0 !== t.ref && (o = t.ref, s = k.current), void 0 !== t.key && (a = "" + t.key), e.type && e.type.defaultProps) var l = e.type.defaultProps;
for (c in t) w.call(t, c) && !E.hasOwnProperty(c) && (i[c] = void 0 === t[c] && void 0 !== l ? l[c] : t[c])
}
var c = arguments.length - 2;
if (1 === c) i.children = r;
else if (1 < c) {
l = Array(c);
for (var u = 0; u < c; u++) l[u] = arguments[u + 2];
i.children = l
}
return {
$$typeof: n,
type: e.type,
key: a,
ref: o,
props: i,
_owner: s
}
}, t.createContext = function(e) {
return (e = {
$$typeof: l,
_currentValue: e,
_currentValue2: e,
_threadCount: 0,
Provider: null,
Consumer: null,
_defaultValue: null,
_globalName: null
}).Provider = {
$$typeof: s,
_context: e
}, e.Consumer = e
}, t.createElement = S, t.createFactory = function(e) {
var t = S.bind(null, e);
return t.type = e, t
}, t.createRef = function() {
return {
current: null
}
}, t.forwardRef = function(e) {
return {
$$typeof: c,
render: e
}
}, t.isValidElement = O, t.lazy = function(e) {
return {
$$typeof: p,
_payload: {
_status: -1,
_result: e
},
_init: R
}
}, t.memo = function(e, t) {
return {
$$typeof: d,
type: e,
compare: void 0 === t ? null : t
}
}, t.startTransition = function(e) {
var t = D.transition;
D.transition = {};
try {
e()
} finally {
D.transition = t
}
}, t.unstable_act = function() {
throw Error("act(...) is not supported in production builds of React.")
}, t.useCallback = function(e, t) {
return T.current.useCallback(e, t)
}, t.useContext = function(e) {
return T.current.useContext(e)
}, t.useDebugValue = function() {}, t.useDeferredValue = function(e) {
return T.current.useDeferredValue(e)
}, t.useEffect = function(e, t) {
return T.current.useEffect(e, t)
}, t.useId = function() {
return T.current.useId()
}, t.useImperativeHandle = function(e, t, n) {
return T.current.useImperativeHandle(e, t, n)
}, t.useInsertionEffect = function(e, t) {
return T.current.useInsertionEffect(e, t)
}, t.useLayoutEffect = function(e, t) {
return T.current.useLayoutEffect(e, t)
}, t.useMemo = function(e, t) {
return T.current.useMemo(e, t)
}, t.useReducer = function(e, t, n) {
return T.current.useReducer(e, t, n)
}, t.useRef = function(e) {
return T.current.useRef(e)
}, t.useState = function(e) {
return T.current.useState(e)
}, t.useSyncExternalStore = function(e, t, n) {
return T.current.useSyncExternalStore(e, t, n)
}, t.useTransition = function() {
return T.current.useTransition()
}, t.version = "18.2.0"
},
1479: (e, t, n) => {
"use strict";
e.exports = n(984)
},
4499: (e, t, n) => {
"use strict";
e.exports = n(8316)
},
6854: (e, t) => {
"use strict";
function n(e, t) {
var n = e.length;
e.push(t);
e: for (; 0 < n;) {
var r = n - 1 >>> 1,
i = e[r];
if (!(0 < a(i, t))) break e;
e[r] = t, e[n] = i, n = r
}
}
function r(e) {
return 0 === e.length ? null : e[0]
}
function i(e) {
if (0 === e.length) return null;
var t = e[0],
n = e.pop();
if (n !== t) {
e[0] = n;
e: for (var r = 0, i = e.length, o = i >>> 1; r < o;) {
var s = 2 * (r + 1) - 1,
l = e[s],
c = s + 1,
u = e[c];
if (0 > a(l, n)) c < i && 0 > a(u, l) ? (e[r] = u, e[c] = n, r = c) : (e[r] = l, e[s] = n, r = s);
else {
if (!(c < i && 0 > a(u, n))) break e;
e[r] = u, e[c] = n, r = c
}
}
}
return t
}
function a(e, t) {
var n = e.sortIndex - t.sortIndex;
return 0 !== n ? n : e.id - t.id
}
if ("object" === typeof performance && "function" === typeof performance.now) {
var o = performance;
t.unstable_now = function() {
return o.now()
}
} else {
var s = Date,
l = s.now();
t.unstable_now = function() {
return s.now() - l
}
}
var c = [],
u = [],
d = 1,
p = null,
h = 3,
f = !1,
m = !1,
g = !1,
v = "function" === typeof setTimeout ? setTimeout : null,
_ = "function" === typeof clearTimeout ? clearTimeout : null,
y = "undefined" !== typeof setImmediate ? setImmediate : null;
function b(e) {
for (var t = r(u); null !== t;) {
if (null === t.callback) i(u);
else {
if (!(t.startTime <= e)) break;
i(u), t.sortIndex = t.expirationTime, n(c, t)
}
t = r(u)
}
}
function x(e) {
if (g = !1, b(e), !m)
if (null !== r(c)) m = !0, D(w);
else {
var t = r(u);
null !== t && N(x, t.startTime - e)
}
}
function w(e, n) {
m = !1, g && (g = !1, _(O), O = -1), f = !0;
var a = h;
try {
for (b(n), p = r(c); null !== p && (!(p.expirationTime > n) || e && !A());) {
var o = p.callback;
if ("function" === typeof o) {
p.callback = null, h = p.priorityLevel;
var s = o(p.expirationTime <= n);
n = t.unstable_now(), "function" === typeof s ? p.callback = s : p === r(c) && i(c), b(n)
} else i(c);
p = r(c)
}
if (null !== p) var l = !0;
else {
var d = r(u);
null !== d && N(x, d.startTime - n), l = !1
}
return l
} finally {
p = null, h = a, f = !1
}
}
"undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
var k, E = !1,
S = null,
O = -1,
P = 5,
I = -1;
function A() {
return !(t.unstable_now() - I < P)
}
function C() {
if (null !== S) {
var e = t.unstable_now();
I = e;
var n = !0;
try {
n = S(!0, e)
} finally {
n ? k() : (E = !1, S = null)
}
} else E = !1
}
if ("function" === typeof y) k = function() {
y(C)
};
else if ("undefined" !== typeof MessageChannel) {
var R = new MessageChannel,
T = R.port2;
R.port1.onmessage = C, k = function() {
T.postMessage(null)
}
} else k = function() {
v(C, 0)
};
function D(e) {
S = e, E || (E = !0, k())
}
function N(e, n) {
O = v((function() {
e(t.unstable_now())
}), n)
}
t.unstable_IdlePriority = 5, t.unstable_ImmediatePriority = 1, t.unstable_LowPriority = 4, t.unstable_NormalPriority = 3, t.unstable_Profiling = null, t.unstable_UserBlockingPriority = 2, t.unstable_cancelCallback = function(e) {
e.callback = null
}, t.unstable_continueExecution = function() {
m || f || (m = !0, D(w))
}, 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") : P = 0 < e ? Math.floor(1e3 / e) : 5
}, t.unstable_getCurrentPriorityLevel = function() {
return h
}, t.unstable_getFirstCallbackNode = function() {
return r(c)
}, t.unstable_next = function(e) {
switch (h) {
case 1:
case 2:
case 3:
var t = 3;
break;
default:
t = h
}
var n = h;
h = t;
try {
return e()
} finally {
h = n
}
}, t.unstable_pauseExecution = function() {}, t.unstable_requestPaint = function() {}, t.unstable_runWithPriority = function(e, t) {
switch (e) {
case 1:
case 2:
case 3:
case 4:
case 5:
break;
default:
e = 3
}
var n = h;
h = e;
try {
return t()
} finally {
h = n
}
}, t.unstable_scheduleCallback = function(e, i, a) {
var o = t.unstable_now();
switch ("object" === typeof a && null !== a ? a = "number" === typeof(a = a.delay) && 0 < a ? o + a : o : a = o, e) {
case 1:
var s = -1;
break;
case 2:
s = 250;
break;
case 5:
s = 1073741823;
break;
case 4:
s = 1e4;
break;
default:
s = 5e3
}
return e = {
id: d++,
callback: i,
priorityLevel: e,
startTime: a,
expirationTime: s = a + s,
sortIndex: -1
}, a > o ? (e.sortIndex = a, n(u, e), null === r(c) && e === r(u) && (g ? (_(O), O = -1) : g = !0, N(x, a - o))) : (e.sortIndex = s, n(c, e), m || f || (m = !0, D(w))), e
}, t.unstable_shouldYield = A, t.unstable_wrapCallback = function(e) {
var t = h;
return function() {
var n = h;
h = t;
try {
return e.apply(this, arguments)
} finally {
h = n
}
}
}
},
4811: (e, t, n) => {
"use strict";
e.exports = n(6854)
},
8776: (e, t, n) => {
"use strict";
function r() {
return !("undefined" !== typeof __SENTRY_BROWSER_BUNDLE__ && __SENTRY_BROWSER_BUNDLE__) && "[object process]" === Object.prototype.toString.call("undefined" !== typeof process ? process : 0)
}
function i(e, t) {
return e.require(t)
}
n.d(t, {
l$: () => i,
KV: () => r
}), e = n.hmd(e)
},
9361: (e, t, n) => {
"use strict";
n.d(t, {
ph: () => u,
yW: () => c
});
var r = n(8776),
i = n(6752);
e = n.hmd(e);
const a = (0, i.Rf)(),
o = {
nowSeconds: () => Date.now() / 1e3
};
const s = (0, r.KV)() ? function() {
try {
return (0, r.l$)(e, "perf_hooks").performance
} catch (t) {
return
}
}() : function() {
const {
performance: e
} = a;
if (!e || !e.now) return;
return {
now: () => e.now(),
timeOrigin: Date.now() - e.now()
}
}(),
l = void 0 === s ? o : {
nowSeconds: () => (s.timeOrigin + s.now()) / 1e3
},
c = o.nowSeconds.bind(o),
u = l.nowSeconds.bind(l);
let d;
(() => {
const {
performance: e
} = a;
if (!e || !e.now) return void(d = "none");
const t = 36e5,
n = e.now(),
r = Date.now(),
i = e.timeOrigin ? Math.abs(e.timeOrigin + n - r) : t,
o = i < t,
s = e.timing && e.timing.navigationStart,
l = "number" === typeof s ? Math.abs(s + n - r) : t;
o || l < t ? i <= l ? (d = "timeOrigin", e.timeOrigin) : d = "navigationStart" : d = "dateNow"
})()
},
6752: (e, t, n) => {
"use strict";
function r(e) {
return e && e.Math == Math ? e : void 0
}
n.d(t, {
Rf: () => a,
YO: () => o,
n2: () => i
});
const i = "object" == typeof globalThis && r(globalThis) || "object" == typeof window && r(window) || "object" == typeof self && r(self) || "object" == typeof n.g && r(n.g) || function() {
return this
}() || {};
function a() {
return i
}
function o(e, t, n) {
const r = n || i,
a = r.__SENTRY__ = r.__SENTRY__ || {};
return a[e] || (a[e] = t())
}
},
2968: (e, t, n) => {
"use strict";
function r(e) {
return e && e.Math == Math ? e : void 0
}
n.d(t, {
R: () => a,
Y: () => o
});
var i = "object" == typeof globalThis && r(globalThis) || "object" == typeof window && r(window) || "object" == typeof self && r(self) || "object" == typeof n.g && r(n.g) || function() {
return this
}() || {};
function a() {
return i
}
function o(e, t, n) {
var r = n || i,
a = r.__SENTRY__ = r.__SENTRY__ || {};
return a[e] || (a[e] = t())
}
},
9509: (e, t, n) => {
"use strict";
function r() {
return !("undefined" !== typeof __SENTRY_BROWSER_BUNDLE__ && __SENTRY_BROWSER_BUNDLE__) && "[object process]" === Object.prototype.toString.call("undefined" !== typeof process ? process : 0)
}
function i(e, t) {
return e.require(t)
}
n.d(t, {
l$: () => i,
KV: () => r
}), e = n.hmd(e)
},
9846: (e, t, n) => {
"use strict";
n.d(t, {
ph: () => c,
yW: () => l
});
var r = n(2968),
i = n(9509);
e = n.hmd(e);
var a = {
nowSeconds: () => Date.now() / 1e3
};
var o = (0, i.KV)() ? function() {
try {
return (0, i.l$)(e, "perf_hooks").performance
} catch (t) {
return
}
}() : function() {
const {
performance: e
} = (0, r.R)();
if (e && e.now) return {
now: () => e.now(),
timeOrigin: Date.now() - e.now()
}
}(),
s = void 0 === o ? a : {
nowSeconds: () => (o.timeOrigin + o.now()) / 1e3
},
l = a.nowSeconds.bind(a),
c = s.nowSeconds.bind(s);
let u;
(() => {
const {
performance: e
} = (0, r.R)();
if (e && e.now) {
var t = 36e5,
n = e.now(),
i = Date.now(),
a = e.timeOrigin ? Math.abs(e.timeOrigin + n - i) : t,
o = a < t,
s = e.timing && e.timing.navigationStart,
l = "number" === typeof s ? Math.abs(s + n - i) : t;
return o || l < t ? a <= l ? (u = "timeOrigin", e.timeOrigin) : (u = "navigationStart", s) : (u = "dateNow", i)
}
u = "none"
})()
},
1438: e => {
"use strict";
e.exports = function(e, t) {
if ("string" === typeof e) return o(e);
if ("number" === typeof e) return a(e, t);
return null
}, e.exports.format = a, e.exports.parse = o;
var t = /\B(?=(\d{3})+(?!\d))/g,
n = /(?:\.0*|(\.[^0]+)0+)$/,
r = {
b: 1,
kb: 1024,
mb: 1 << 20,
gb: 1 << 30,
tb: Math.pow(1024, 4),
pb: Math.pow(1024, 5)
},
i = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;
function a(e, i) {
if (!Number.isFinite(e)) return null;
var a = Math.abs(e),
o = i && i.thousandsSeparator || "",
s = i && i.unitSeparator || "",
l = i && void 0 !== i.decimalPlaces ? i.decimalPlaces : 2,
c = Boolean(i && i.fixedDecimals),
u = i && i.unit || "";
u && r[u.toLowerCase()] || (u = a >= r.pb ? "PB" : a >= r.tb ? "TB" : a >= r.gb ? "GB" : a >= r.mb ? "MB" : a >= r.kb ? "KB" : "B");
var d = (e / r[u.toLowerCase()]).toFixed(l);
return c || (d = d.replace(n, "$1")), o && (d = d.split(".").map((function(e, n) {
return 0 === n ? e.replace(t, o) : e
})).join(".")), d + s + u
}
function o(e) {
if ("number" === typeof e && !isNaN(e)) return e;
if ("string" !== typeof e) return null;
var t, n = i.exec(e),
a = "b";
return n ? (t = parseFloat(n[1]), a = n[4].toLowerCase()) : (t = parseInt(e, 10), a = "b"), isNaN(t) ? null : Math.floor(r[a] * t)
}
},
9948: e => {
"use strict";
var t = function(e) {
return function(e) {
return !!e && "object" === typeof e
}(e) && ! function(e) {
var t = Object.prototype.toString.call(e);
return "[object RegExp]" === t || "[object Date]" === t || function(e) {
return e.$$typeof === n
}(e)
}(e)
};
var n = "function" === typeof Symbol && Symbol.for ? Symbol.for("react.element") : 60103;
function r(e, t) {
return !1 !== t.clone && t.isMergeableObject(e) ? l((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
var n
}
function i(e, t, n) {
return e.concat(t).map((function(e) {
return r(e, n)
}))
}
function a(e) {
return Object.keys(e).concat(function(e) {
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter((function(t) {
return e.propertyIsEnumerable(t)
})) : []
}(e))
}
function o(e, t) {
try {
return t in e
} catch (n) {
return !1
}
}
function s(e, t, n) {
var i = {};
return n.isMergeableObject(e) && a(e).forEach((function(t) {
i[t] = r(e[t], n)
})), a(t).forEach((function(a) {
(function(e, t) {
return o(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t))
})(e, a) || (o(e, a) && n.isMergeableObject(t[a]) ? i[a] = function(e, t) {
if (!t.customMerge) return l;
var n = t.customMerge(e);
return "function" === typeof n ? n : l
}(a, n)(e[a], t[a], n) : i[a] = r(t[a], n))
})), i
}
function l(e, n, a) {
(a = a || {}).arrayMerge = a.arrayMerge || i, a.isMergeableObject = a.isMergeableObject || t, a.cloneUnlessOtherwiseSpecified = r;
var o = Array.isArray(n);
return o === Array.isArray(e) ? o ? a.arrayMerge(e, n, a) : s(e, n, a) : r(n, a)
}
l.all = function(e, t) {
if (!Array.isArray(e)) throw new Error("first argument should be an array");
return e.reduce((function(e, n) {
return l(e, n, t)
}), {})
};
var c = l;
e.exports = c
},
2110: (e, t, n) => {
"use strict";
var r = n(8309),
i = {
childContextTypes: !0,
contextType: !0,
contextTypes: !0,
defaultProps: !0,
displayName: !0,
getDefaultProps: !0,
getDerivedStateFromError: !0,
getDerivedStateFromProps: !0,
mixins: !0,
propTypes: !0,
type: !0
},
a = {
name: !0,
length: !0,
prototype: !0,
caller: !0,
callee: !0,
arguments: !0,
arity: !0
},
o = {
$$typeof: !0,
compare: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0,
type: !0
},
s = {};
function l(e) {
return r.isMemo(e) ? o : s[e.$$typeof] || i
}
s[r.ForwardRef] = {
$$typeof: !0,
render: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0
}, s[r.Memo] = o;
var c = Object.defineProperty,
u = Object.getOwnPropertyNames,
d = Object.getOwnPropertySymbols,
p = Object.getOwnPropertyDescriptor,
h = Object.getPrototypeOf,
f = Object.prototype;
e.exports = function e(t, n, r) {
if ("string" !== typeof n) {
if (f) {
var i = h(n);
i && i !== f && e(t, i, r)
}
var o = u(n);
d && (o = o.concat(d(n)));
for (var s = l(t), m = l(n), g = 0; g < o.length; ++g) {
var v = o[g];
if (!a[v] && (!r || !r[v]) && (!m || !m[v]) && (!s || !s[v])) {
var _ = p(n, v);
try {
c(t, v, _)
} catch (y) {}
}
}
}
return t
}
},
746: (e, t) => {
"use strict";
var n = "function" === typeof Symbol && Symbol.for,
r = n ? Symbol.for("react.element") : 60103,
i = n ? Symbol.for("react.portal") : 60106,
a = n ? Symbol.for("react.fragment") : 60107,
o = n ? Symbol.for("react.strict_mode") : 60108,
s = n ? Symbol.for("react.profiler") : 60114,
l = n ? Symbol.for("react.provider") : 60109,
c = n ? Symbol.for("react.context") : 60110,
u = n ? Symbol.for("react.async_mode") : 60111,
d = n ? Symbol.for("react.concurrent_mode") : 60111,
p = n ? Symbol.for("react.forward_ref") : 60112,
h = n ? Symbol.for("react.suspense") : 60113,
f = n ? Symbol.for("react.suspense_list") : 60120,
m = n ? Symbol.for("react.memo") : 60115,
g = n ? Symbol.for("react.lazy") : 60116,
v = n ? Symbol.for("react.block") : 60121,
_ = n ? Symbol.for("react.fundamental") : 60117,
y = n ? Symbol.for("react.responder") : 60118,
b = n ? Symbol.for("react.scope") : 60119;
function x(e) {
if ("object" === typeof e && null !== e) {
var t = e.$$typeof;
switch (t) {
case r:
switch (e = e.type) {
case u:
case d:
case a:
case s:
case o:
case h:
return e;
default:
switch (e = e && e.$$typeof) {
case c:
case p:
case g:
case m:
case l:
return e;
default:
return t
}
}
case i:
return t
}
}
}
function w(e) {
return x(e) === d
}
t.AsyncMode = u, t.ConcurrentMode = d, t.ContextConsumer = c, t.ContextProvider = l, t.Element = r, t.ForwardRef = p, t.Fragment = a, t.Lazy = g, t.Memo = m, t.Portal = i, t.Profiler = s, t.StrictMode = o, t.Suspense = h, t.isAsyncMode = function(e) {
return w(e) || x(e) === u
}, t.isConcurrentMode = w, t.isContextConsumer = function(e) {
return x(e) === c
}, t.isContextProvider = function(e) {
return x(e) === l
}, t.isElement = function(e) {
return "object" === typeof e && null !== e && e.$$typeof === r
}, t.isForwardRef = function(e) {
return x(e) === p
}, t.isFragment = function(e) {
return x(e) === a
}, t.isLazy = function(e) {
return x(e) === g
}, t.isMemo = function(e) {
return x(e) === m
}, t.isPortal = function(e) {
return x(e) === i
}, t.isProfiler = function(e) {
return x(e) === s
}, t.isStrictMode = function(e) {
return x(e) === o
}, t.isSuspense = function(e) {
return x(e) === h
}, t.isValidElementType = function(e) {
return "string" === typeof e || "function" === typeof e || e === a || e === d || e === s || e === o || e === h || e === f || "object" === typeof e && null !== e && (e.$$typeof === g || e.$$typeof === m || e.$$typeof === l || e.$$typeof === c || e.$$typeof === p || e.$$typeof === _ || e.$$typeof === y || e.$$typeof === b || e.$$typeof === v)
}, t.typeOf = x
},
8309: (e, t, n) => {
"use strict";
e.exports = n(746)
},
1561: (e, t, n) => {
"use strict";
var r = n(1479);
var i = "function" === typeof Object.is ? Object.is : function(e, t) {
return e === t && (0 !== e || 1 / e === 1 / t) || e !== e && t !== t
},
a = r.useState,
o = r.useEffect,
s = r.useLayoutEffect,
l = r.useDebugValue;
function c(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
return !i(e, n)
} catch (r) {
return !0
}
}
var u = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? function(e, t) {
return t()
} : function(e, t) {
var n = t(),
r = a({
inst: {
value: n,
getSnapshot: t
}
}),
i = r[0].inst,
u = r[1];
return s((function() {
i.value = n, i.getSnapshot = t, c(i) && u({
inst: i
})
}), [e, n, t]), o((function() {
return c(i) && u({
inst: i
}), e((function() {
c(i) && u({
inst: i
})
}))
}), [e]), l(n), n
};
t.useSyncExternalStore = void 0 !== r.useSyncExternalStore ? r.useSyncExternalStore : u
},
7595: (e, t, n) => {
"use strict";
var r = n(1479),
i = n(7248);
var a = "function" === typeof Object.is ? Object.is : function(e, t) {
return e === t && (0 !== e || 1 / e === 1 / t) || e !== e && t !== t
},
o = i.useSyncExternalStore,
s = r.useRef,
l = r.useEffect,
c = r.useMemo,
u = r.useDebugValue;
t.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
var d = s(null);
if (null === d.current) {
var p = {
hasValue: !1,
value: null
};
d.current = p
} else p = d.current;
d = c((function() {
function e(e) {
if (!l) {
if (l = !0, o = e, e = r(e), void 0 !== i && p.hasValue) {
var t = p.value;
if (i(t, e)) return s = t
}
return s = e
}
if (t = s, a(o, e)) return t;
var n = r(e);
return void 0 !== i && i(t, n) ? t : (o = e, s = n)
}
var o, s, l = !1,
c = void 0 === n ? null : n;
return [function() {
return e(t())
}, null === c ? void 0 : function() {
return e(c())
}]
}), [t, n, r, i]);
var h = o(e, d[0], d[1]);
return l((function() {
p.hasValue = !0, p.value = h
}), [h]), u(h), h
}
},
7248: (e, t, n) => {
"use strict";
e.exports = n(1561)
},
327: (e, t, n) => {
"use strict";
e.exports = n(7595)
},
7399: e => {
e.exports = {
area: !0,
base: !0,
br: !0,
col: !0,
embed: !0,
hr: !0,
img: !0,
input: !0,
link: !0,
meta: !0,
param: !0,
source: !0,
track: !0,
wbr: !0
}
},
4379: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = {
env: {
local: {
apiUrl: "https://rsi-platform.local.dev/api/launcher/v3",
rootUrl: "https://rsi-platform.local.dev/heap/"
},
reviewapp: {
apiUrl: void 0,
rootUrl: void 0
},
staging: {
apiUrl: "https://staging.cloudimperiumgames.com/api/launcher/v3",
rootUrl: "https://staging.cloudimperiumgames.com"
},
ptu: {
apiUrl: "https://ptu.cloudimperiumgames.com/api/launcher/v3",
rootUrl: "https://ptu.cloudimperiumgames.com"
},
eptu: {
apiUrl: "https://ptu.cloudimperiumgames.com/api/launcher/v3",
rootUrl: "https://ptu.cloudimperiumgames.com"
},
prod: {
apiUrl: "https://robertsspaceindustries.com/api/launcher/v3",
rootUrl: "https://robertsspaceindustries.com"
}
},
infoApp: {
appName: "RSI Launcher",
companyName: "Cloud Imperium Games",
defaultLibraryFolder: "Roberts Space Industries",
defaultLibraryPath: "C:\\Program Files\\"
},
sentry: {
minidumpUrl: "https://sentry.cloudimperiumgames.com/api/47/minidump/?sentry_key=6d91dc2ae1b74c9e80ee11bbf507df58",
dsn: "https://6d91dc2ae1b74c9e80ee11bbf507df58@sentry.cloudimperiumgames.com/47"
},
rootUrl: "https://robertsspaceindustries.com",
enlistUrl: "https://robertsspaceindustries.com/enlist",
recoverUrl: "https://robertsspaceindustries.com/connect",
websiteUrl: "https://robertsspaceindustries.com",
issueCouncilUrl: "https://issue-council.robertsspaceindustries.com",
installerErrorKnowledgeDatabaseUrl: "https://support.robertsspaceindustries.com/hc/en-us/articles/22514899089431-Error-2000",
copyPTUAccountSupportUrl: "https://support.robertsspaceindustries.com/hc/en-us/articles/360000668488-Install-the-Star-Citizen-PTU",
spectrumUrl: "https://robertsspaceindustries.com/spectrum/community/SC",
communityHubUrl: "https://robertsspaceindustries.com/community-hub",
supportUrl: "https://support.robertsspaceindustries.com",
statusUrl: "https://status.robertsspaceindustries.com",
welcomeHubUrl: "https://robertsspaceindustries.com/playstarcitizen",
analyticsUrl: "https://launcher2.robertsspaceindustries.com",
defaultAvatarUrl: "https://cdn.robertsspaceindustries.com/static/images/account/avatar_default.jpg",
playnowUrl: "https://robertsspaceindustries.com/star-citizen/play-now",
patchnotesUrl: "https://robertsspaceindustries.com/patch-notes",
minimumRequirementsUrl: "https://support.robertsspaceindustries.com/hc/en-us/articles/360042417374-Star-Citizen-Minimum-System-Requirements",
filesSupportUrl: "https://support.robertsspaceindustries.com/hc/en-us/articles/360000065688-Send-In-Game-Files-for-RSI-Support",
assetsDirectory: "./assets",
sounds: {
open: "/sounds/phazein.wav",
error: "/sounds/website_ui_rejection.wav",
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"
},
gameAssets: [{
id: "SC",
logo: "/logos/sc-game-logo-small.svg",
logoWide: "/logos/sc-game-logo-wide.svg",
logoAnimation: "/logos/sc-logo-animation.json",
bgImage: "/images/sc_bg_fallback.jpg",
bgVideo: "/videos/sc_bg_video.webm"
}, {
id: "SQ42",
logo: "/logos/sq42-game-logo-small.svg",
bgImage: "/images/sc_bg_evocati.jpg"
}],
authenticationExpiry: 2592e6,
loginDataRemovalTimeout: 3e5,
appLayoutLoaderWipeTrigger: 2500,
requestPollingInterval: {
library: {
base: 6e5,
window: 1e4
},
gamePageContent: {
base: 6e5,
window: 1e4
},
status: {
base: 6e4,
window: 1e3
}
}
};
t.default = n
},
2222: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
},
a = this && this.__importDefault || function(e) {
return e && e.__esModule ? e : {
default: e
}
};
Object.defineProperty(t, "__esModule", {
value: !0
}), t.configuration = void 0, i(n(375), t), i(n(2335), t);
var o = n(4379);
Object.defineProperty(t, "configuration", {
enumerable: !0,
get: function() {
return a(o).default
}
})
},
5396: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.analytics = void 0, t.analytics = {
ANALYTICS_SEND_EVENT: "analytics@send-event",
ANALYTICS_SEND_EVENT_FAILED: "analytics@send-event-failed",
ANALYTICS_SEND_EVENT_SUCCESSFUL: "analytics@send-event-successful"
}
},
9316: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(5396), t)
},
5543: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.autoUpdater = void 0, t.autoUpdater = {
AUTOUPDATER_CHECKING_FOR_UPDATE: "checking-for-update",
AUTOUPDATER_CHECK_NOW: "autoupdater@check-now",
AUTOUPDATER_DOWNLOAD_PROGRESS: "autoupdater@download-progress",
AUTOUPDATER_ERROR: "autoupdater@error",
AUTOUPDATER_UPDATE_AVAILABLE: "autoupdater@update-available",
AUTOUPDATER_UPDATE_NOT_AVAILABLE: "autoupdater@update-not-available",
AUTOUPDATER_UPDATE_DOWNLOADED: "autoupdater@update-downloaded",
AUTOUPDATER_UPDATE_RESTART: "auto-updater@update-restart",
AUTOUPDATER_UPDATE_DISMISS: "auto-updater@update-dismiss",
AUTOUPDATER_QUIT_INSTALL_ERROR: "auto-updater@update-quit-install-error",
AUTOUPDATER_NEW_VERSION_INSTALLED: "auto-updater@new-version-installed"
}
},
6735: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(5543), t)
},
4726: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.config = void 0, t.config = {
GET_GLOBAL: "get-global",
GET_APP_PATH: "get-app-path"
}
},
2383: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(4726), t)
},
3520: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.dialog = void 0, t.dialog = {
SHOW_OPEN_DIALOG: "dialog@show-open-dialog",
SHOW_LIBRARY_FOLDER_DIALOG: "dialog@show-library-folder"
}
},
8762: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(3520), t)
},
5116: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.channel = void 0, t.channel = {
SELECT_GAME_CHANNEL: "select-game-channel"
}
},
2859: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(5116), t)
},
5376: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.gameFiles = void 0, t.gameFiles = {
GAME_FILES_INITIALIZE_WATCHER: "game-files@initialize-watcher",
GAME_FILES_CHANGED: "game-files@game-files-changed",
GAME_FILES_REMOVE_USER_FOLDER: "game-files@remove-user-folder",
GAME_FILES_REMOVE_USER_FOLDER_FAILED: "game-files@remove-user-folder-failed",
GAME_FILES_REMOVE_USER_FOLDER_SICCESSFUL: "game-files@remove-user-folder-successful",
GAME_FILES_CHECK_USER_FOLDER_EXISTS: "game-files@check-user-folder-exists",
GAME_FILES_REMOVE_SHADERS_FOLDER: "game-files@remove-shaders-folder",
GAME_FILES_REMOVE_SHADERS_FOLDER_FAILED: "game-files@remove-shaders-folder-failed",
GAME_FILES_REMOVE_SHADERS_FOLDER_SUCCESSFUL: "game-files@remove-shaders-folder-successful",
GAME_FILES_CHECK_SHADERS_FOLDER_EXISTS: "game-files@check-shaders-folder-exists"
}
},
7433: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(5376), t)
},
2466: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(9316), t), i(n(6735), t), i(n(2383), t), i(n(8762), t), i(n(2859), t), i(n(7433), t), i(n(8675), t), i(n(5465), t), i(n(8533), t), i(n(6423), t), i(n(3081), t), i(n(712), t), i(n(3621), t), i(n(730), t), i(n(5535), t), i(n(6305), t)
},
8675: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(4925), t)
},
4925: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.installer = void 0, t.installer = {
INSTALLER_FIX_PERMISSIONS: "installer@fix-permissions",
INSTALLER_FIX_PERMISSIONS_SUCCESSFUL: "installer@fix-permissions-successful",
INSTALLER_FIX_PERMISSIONS_FAILED: "installer@fix-permissions-failed",
INSTALLER_DOWNLOAD_START: "installer@initial-download-start",
INSTALLER_RETRIEVE_REMOTE_FILE_START: "installer@retrieve-remote-file-list-start",
INSTALLER_UPDATE_FILE_P4K_START: "installer@update-files-inside-p4k-start",
INSTALLER_UPDATE_LOOSE_FILE_START: "installer@update-loose-files-start",
INSTALLER_UPDATE_PK4_START: "installer@update-p4k-structure-start",
INSTALLER_DOWNLOAD_PROGRESS: "installer@initial-download-progress",
INSTALLER_RETRIEVE_REMOTE_FILE_PROGRESS: "installer@retrieve-remote-file-list-progress",
INSTALLER_UPDATE_FILE_P4K_PROGRESS: "installer@update-files-inside-p4k-progress",
INSTALLER_UPDATE_LOOSE_FILE_PROGRESS: "installer@update-loose-files-progress",
COMPUTE_FILE_LIST_DIFFERENCE_START: "installer@compute-file-list-difference-start",
COMPUTE_FILE_LIST_DIFFERENCE_END: "installer@compute-file-list-difference-end",
INSTALLER_DOWNLOAD_END: "installer@initial-download-end",
INSTALLER_RETRIEVE_REMOTE_FILE_END: "installer@retrieve-remote-file-list-end",
INSTALLER_UPDATE_FILE_P4K_END: "installer@update-files-inside-p4k-end",
INSTALLER_UPDATE_LOOSE_FILE_END: "installer@update-loose-files-end",
INSTALLER_UPDATE_PK4_END: "installer@update-p4k-structure-end",
INSTALLER_PAUSE: "installer@pause",
INSTALLER_PAUSE_SUCCESSFUL: "installer@pause-successful",
INSTALLER_PAUSE_FAILED: "installer@pause-failed",
INSTALLER_RESUME: "installer@resume",
INSTALLER_RESUME_SUCCESSFUL: "installer@resume-successful",
INSTALLER_RESUME_FAILED: "installer@resume-failed",
INSTALLER_CANCEL: "installer@cancel",
INSTALLER_CANCEL_SUCCESSFUL: "installer@cancel-successful",
INSTALLER_CANCEL_FAILED: "installer@cancel-failed",
INSTALLER_SET_OPTIONS: "installer@set-option",
INSTALLER_SET_OPTION_SUCCESSFUL: "installer@set-option-successful",
INSTALLER_INSTALL: "installer@install",
INSTALLER_INSTALL_SUCCESSFUL: "installer@install-successful",
INSTALLER_INSTALL_FAILED: "installer@install-failed",
INSTALLER_INSTALL_PROGRESS: "installer@install-progress",
INSTALLER_UNINSTALL: "installer@uninstall",
INSTALLER_UNINSTALL_SUCCESSFUL: "installer@uninstall-successful",
INSTALLER_UNINSTALL_FAILED: "installer@uninstall-failed"
}
},
5465: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(670), t)
},
670: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.launcher = void 0, t.launcher = {
LAUNCHER_LAUNCH: "launcher@launch",
LAUNCHER_LAUNCH_SUCCESSFUL: "launcher@launch-successful",
LAUNCHER_LAUNCH_FAILED: "launcher@launch-failed",
LAUNCHER_LAUNCH_STOPPED: "launcher@launch-stopped",
LAUNCHER_IS_GAME_RUNNING: "launcher@is-game-running",
LAUNCHER_KILL_GAME_PROCESS: "launcher@kill-game-process",
LAUNCHER_GET_RELEASE_OBJECT: "launcher@get-game-release-object"
}
},
8533: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(1829), t)
},
1829: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.library = void 0, t.library = {
CHANGE_LIBRARY_FOLDER: "change-library-folder"
}
},
6423: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(6717), t)
},
6717: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.logger = void 0, t.logger = {
LOGGER_LOG_EVENT: "logger@log-event",
LOGGER_GET_LOGS: "logger@get-logs"
}
},
3081: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(469), t)
},
469: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.notification = void 0, t.notification = {
NATIVE_NOTIFICATION_SHOW: "native-notification@show-notification"
}
},
712: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(4692), t)
},
4692: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.settings = void 0, t.settings = {
GET_ANIMATION_SYSTEM_SETTINGS: "settings@get-animation-system-settings",
RESTART_APP: "settings@restart-app"
}
},
3621: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(3542), t)
},
3542: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.signIn = void 0, t.signIn = {
USER_AUTO_SIGNIN: "user@auto-sign-in",
USER_SIGNIN: "user@sign-in",
USER_SIGNOUT: "user@signOut"
}
},
730: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(8171), t)
},
8171: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.store = void 0, t.store = {
STORE_SET: "store-set",
STORE_SET_SUCCESS: "store-set-success",
STORE_SET_ERROR: "store-set-error",
STORE_GET: "store-get",
STORE_CLEAR: "store-clear",
STORE_CLEAR_SUCCESS: "store-clear-success",
STORE_CLEAR_ERROR: "store-clear-error"
}
},
5535: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(933), t)
},
933: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.tray = void 0, t.tray = {
TRAY_UPDATE_MENU: "tray@update-menu",
TRAY_MENU_ITEM_CLICKED: "tray@menu-item-clicked"
}
},
6305: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(3672), t)
},
3672: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.window = void 0, t.window = {
WINDOW_OPEN_INTERNAL: "window@open-internal",
WINDOW_OPEN_EXTERNAL: "window@open-external",
WINDOW_MINIMIZE: "window@minimize",
WINDOW_RESTORE: "window@restore",
WINDOW_HIDE: "window@hide",
WINDOW_SHOW: "window@show",
WINDOW_QUIT: "window@quit",
WINDOW_CLOSE: "window@close",
WINDOW_SET_SMALL: "window@create-small",
WINDOW_SET_LARGE: "window@create-large",
WINDOW_OPEN: "window@open",
WINDOW_IS_MINIMIZED: "window@is-minimized",
WINDOW_HIDE_SUCCESSFUL: "window@hide-successful",
WINDOW_SHOW_SUCCESSFUL: "window@show-successful",
WINDOW_QUIT_SUCCESSFUL: "window@quit-successful"
}
},
375: (e, t, n) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.ipcEvents = void 0;
const r = n(2466);
t.ipcEvents = {
analytics: r.analytics,
autoUpdater: r.autoUpdater,
config: r.config,
dialog: r.dialog,
channel: r.channel,
gameFiles: r.gameFiles,
installer: r.installer,
launcher: r.launcher,
library: r.library,
notification: r.notification,
logger: r.logger,
settings: r.settings,
signIn: r.signIn,
store: r.store,
tray: r.tray,
window: r.window
}
},
2335: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(1012), t)
},
8096: (e, t) => {
"use strict";
var n;
Object.defineProperty(t, "__esModule", {
value: !0
}), t.AnalyticsEventName = void 0,
function(e) {
e.APP_OPEN = "App:Open", e.APP_CLOSE = "App:Close", e.APP_SIGNEDIN = "App:SignedIn", e.APP_SIGNEDOUT = "App:SignedOut", e.APP_INSTALL_START = "App:Install:Start", e.APP_INSTALL_STOP = "App:Install:Stop", e.APP_INSTALL_SUCCESS = "App:Install:Success", e.APP_INSTALL_ERROR = "App:Install:Error", e.APP_VERIFY_START = "App:Verify:Start", e.APP_VERIFY_STOP = "App:Verify:Stop", e.APP_VERIFY_SUCCESS = "App:Verify:Success", e.APP_VERIFY_ERROR = "App:Verify:Error", e.APP_UPDATE_START = "App:Update:Start", e.APP_UPDATE_STOP = "App:Update:Stop", e.APP_UPDATE_SUCCESS = "App:Update:Success", e.APP_UPDATE_ERROR = "App:Update:Error", e.APP_UNINSTALL_START = "App:Uninstall:Start", e.APP_UNINSTALL_SUCCESS = "App:Uninstall:Success", e.APP_UNINSTALL_ERROR = "App:Uninstall:Error", e.APP_LAUNCH_START = "App:Launch:Start", e.APP_LAUNCH_STOP = "App:Launch:Stop", e.APP_LAUNCH_ERROR = "App:Launch:Error", e.OLD_APP_LAUNCH_START = "App:Launcher:Start", e.OLD_APP_LAUNCH_STOP = "App:Launcher:Stop", e.OLD_APP_LAUNCH_ERROR = "App:Launcher:Error"
}(n || (t.AnalyticsEventName = n = {}))
},
5708: (e, t) => {
"use strict";
var n;
Object.defineProperty(t, "__esModule", {
value: !0
}), t.AutoUpdateDialogStates = void 0,
function(e) {
e.AVAILABLE = "available", e.NOT_AVAILABLE = "not-available", e.QUIT_GAME = "quit-game", e.ERROR = "error"
}(n || (t.AutoUpdateDialogStates = n = {}))
},
2700: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.GenericError = t.errorsCodes = t.errorsNames = void 0, t.errorsNames = {
ERR_UNKNOWN: "GenericError",
ERR_LOGOUT_FAILED: "logoutFailed",
ERR_DISPLAY_AGREEMENT: "DisplayAgreementErr"
}, t.errorsCodes = {
ERR_UNKNOWN: "GenericError",
ERR_LOGOUT_FAILED: "logoutFailed",
ERR_DISPLAY_AGREEMENT: "DisplayAgreementErr"
};
class n extends Error {
constructor({
message: e = "Unknown Error",
code: r = t.errorsNames.ERR_UNKNOWN,
payload: i = null
}) {
super(e), Object.setPrototypeOf(this, n.prototype), this.code = r, this.payload = i
}
}
t.GenericError = n
},
6994: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(2700), t), i(n(728), t), i(n(6565), t), i(n(2358), t), i(n(2299), t)
},
728: (e, t, n) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.CancelError = t.Error21Error = t.NetworkDefaultError = t.NetworkTooManyFilesFailedError = t.NetworkFailedToRecieveHandshakeError = t.NetworkCouldNotResolveHostError = t.ExceptionU00Error = t.InvalidArgumentTypeError = t.P4KError = t.IOError = t.FixPermissionError = t.BasePackGenericError = t.DownloadUnsuccessfullError = t.PatcherGenericError = t.BasePackP4kCorruptedError = t.PatcherUnknownNetworkError = t.RetrieveManifestError = t.Pk4CorruptedError = t.FileInUseError = t.WritePermissionsError = t.DiskFullError = t.NotMappedError = t.MDFileHeaderNotFoundError = t.InvalidMDFileHeaderError = t.InvalidMDFileError = t.InstallerError = t.LauncherSpecificInstallerErrorsCodes = t.InstallerErrorsNames = t.InitialDownloadErrorsNames = t.PatcherErrorsNames = void 0;
const r = n(2700);
t.PatcherErrorsNames = {
ERR_DISK_FULL: "DiskFullError",
ERR_WRITE_PERMISSION: "WritePermissionError",
ERR_FILE_IN_USE: "FileInUseError",
ERR_RETRIEVE_MANIFEST: "RetrieveManifestError",
ERR_P4K_CORRUPTED: "P4kCorruptedError",
ERR_BASE_P4K_CORRUPTED: "BaseP4kCorruptedError",
ERR_UNKNOWN_NETWORK_ERROR: "UnknownNetworkError",
ERR_PATCHER_UNKNOWN: "GenericPatchInstallerError",
ERR_DOWNLOAD_UNSUCCESSFULL: "DownloadUnsuccessfullError",
ERR_IO_ERROR: "IOError",
ERR_P4K_ERROR: "P4KError",
ERR_INVALID_ARGUMENT_TYPE: "InvalidArgumentTypeError",
ERR_EXCEPTION_U_00: "ExceptionU00Error",
ERR_NETWORK_COULD_NOT_RESOLVE_HOST: "NetworkCouldNotResolveHostError",
ERR_NETWORK_FAILED_TO_RECEIVE_HANDSHAKE: "NetworkFailedToReceiveHandshakeError",
ERR_NETWORK_TOO_MANY_FILES_FAILED: "NetworkTooMAnyFilesFailedError",
ERR_NETWORK_DEFAULT: "NetworkDefaultError",
ERR_ERROR_21: "Error21Error"
}, t.InitialDownloadErrorsNames = {
ERR_INIT_UNKNOWN: "GenericInitialDownloadError",
ERR_INVALID_MD_FILE: "InvalidMDFileError",
ERR_INVALID_MD_FILE_HEADER: "InvalidMDFileHeaderError",
ERR_MD_FILE_HEADER_NOT_FOUND: "MDFileHeaderNotFoundError",
ERR_NOT_MAPPED_ERRORS: "NotMappedErrors"
}, t.InstallerErrorsNames = Object.assign(Object.assign(Object.assign({}, t.PatcherErrorsNames), t.InitialDownloadErrorsNames), {
ERR_INSTALL_UNKNOWN: "GenericInstallerError",
ERR_FIX_PERMISSIONS: "FixPermissionsError",
ERR_CANCEL_FAIL: "CancelFailError"
});
t.LauncherSpecificInstallerErrorsCodes = Object.assign(Object.assign({
ERR_INSTALL_UNKNOWN: "2000",
ERR_FIX_PERMISSIONS: "2001",
ERR_CANCEL_FAIL: "2002"
}, {
ERR_DISK_FULL: "5000",
ERR_WRITE_PERMISSION: "5001",
ERR_FILE_IN_USE: "5002",
ERR_RETRIEVE_MANIFEST: "5003",
ERR_P4K_CORRUPTED: "5004",
ERR_UNKNOWN_NETWORK_ERROR: "5005",
ERR_BASE_P4K_CORRUPTED: "5006",
ERR_PATCHER_UNKNOWN: "5007",
ERR_DOWNLOAD_UNSUCCESSFULL: "5008",
ERR_IO_ERROR: "5009",
ERR_P4K_ERROR: "5010",
ERR_INVALID_ARGUMENT_TYPE: "5011",
ERR_EXCEPTION_U_00: "5013",
ERR_NETWORK_COULD_NOT_RESOLVE_HOST: "5015",
ERR_NETWORK_FAILED_TO_RECEIVE_HANDSHAKE: "5016",
ERR_NETWORK_TOO_MANY_FILES_FAILED: "5017",
ERR_NETWORK_DEFAULT: "5018",
ERR_ERROR_21: "5021"
}), {
ERR_INIT_UNKNOWN: "3000",
ERR_INVALID_MD_FILE: "3001",
ERR_INVALID_MD_FILE_HEADER: "3003",
ERR_MD_FILE_HEADER_NOT_FOUND: "3004",
ERR_NOT_MAPPED_ERRORS: "3005"
});
class i extends r.GenericError {
constructor({
message: e,
code: n = t.LauncherSpecificInstallerErrorsCodes.ERR_INSTALL_UNKNOWN,
payload: r
}) {
super({
message: e,
code: n,
payload: r
}), Object.setPrototypeOf(this, i.prototype), this.code = n, this.payload = r
}
}
t.InstallerError = i;
class a extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_INVALID_MD_FILE,
payload: n
}), Object.setPrototypeOf(this, a.prototype)
}
}
t.InvalidMDFileError = a;
t.InvalidMDFileHeaderError = class extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_INVALID_MD_FILE_HEADER,
payload: n
}), Object.setPrototypeOf(this, a.prototype)
}
};
t.MDFileHeaderNotFoundError = class extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_MD_FILE_HEADER_NOT_FOUND,
payload: n
}), Object.setPrototypeOf(this, a.prototype)
}
};
t.NotMappedError = class extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_NOT_MAPPED_ERRORS,
payload: n
}), Object.setPrototypeOf(this, a.prototype)
}
};
class o extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_DISK_FULL,
payload: n
}), Object.setPrototypeOf(this, o.prototype)
}
}
t.DiskFullError = o;
class s extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_WRITE_PERMISSION,
payload: n
}), Object.setPrototypeOf(this, s.prototype)
}
}
t.WritePermissionsError = s;
class l extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_FILE_IN_USE,
payload: n
}), Object.setPrototypeOf(this, l.prototype)
}
}
t.FileInUseError = l;
class c extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_P4K_CORRUPTED,
payload: n
}), Object.setPrototypeOf(this, c.prototype)
}
}
t.Pk4CorruptedError = c;
class u extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_RETRIEVE_MANIFEST,
payload: n
}), Object.setPrototypeOf(this, u.prototype)
}
}
t.RetrieveManifestError = u;
class d extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_UNKNOWN_NETWORK_ERROR,
payload: n
}), Object.setPrototypeOf(this, d.prototype)
}
}
t.PatcherUnknownNetworkError = d;
class p extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_BASE_P4K_CORRUPTED,
payload: n
}), Object.setPrototypeOf(this, p.prototype)
}
}
t.BasePackP4kCorruptedError = p;
class h extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_PATCHER_UNKNOWN,
payload: n
}), Object.setPrototypeOf(this, h.prototype)
}
}
t.PatcherGenericError = h;
t.DownloadUnsuccessfullError = class extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_DOWNLOAD_UNSUCCESSFULL,
payload: n
}), Object.setPrototypeOf(this, h.prototype)
}
};
class f extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_INIT_UNKNOWN,
payload: n
}), Object.setPrototypeOf(this, f.prototype)
}
}
t.BasePackGenericError = f;
class m extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_FIX_PERMISSIONS,
payload: n
}), Object.setPrototypeOf(this, m.prototype)
}
}
t.FixPermissionError = m;
t.IOError = class extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_IO_ERROR,
payload: n
}), Object.setPrototypeOf(this, m.prototype)
}
};
t.P4KError = class extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_P4K_ERROR,
payload: n
}), Object.setPrototypeOf(this, m.prototype)
}
};
t.InvalidArgumentTypeError = class extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_INVALID_ARGUMENT_TYPE,
payload: n
}), Object.setPrototypeOf(this, m.prototype)
}
};
t.ExceptionU00Error = class extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_EXCEPTION_U_00,
payload: n
}), Object.setPrototypeOf(this, m.prototype)
}
};
t.NetworkCouldNotResolveHostError = class extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_NETWORK_COULD_NOT_RESOLVE_HOST,
payload: n
}), Object.setPrototypeOf(this, m.prototype)
}
};
t.NetworkFailedToRecieveHandshakeError = class extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_NETWORK_FAILED_TO_RECEIVE_HANDSHAKE,
payload: n
}), Object.setPrototypeOf(this, m.prototype)
}
};
t.NetworkTooManyFilesFailedError = class extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_NETWORK_TOO_MANY_FILES_FAILED,
payload: n
}), Object.setPrototypeOf(this, m.prototype)
}
};
t.NetworkDefaultError = class extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_NETWORK_DEFAULT,
payload: n
}), Object.setPrototypeOf(this, m.prototype)
}
};
t.Error21Error = class extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_ERROR_21,
payload: n
}), Object.setPrototypeOf(this, m.prototype)
}
};
t.CancelError = class extends i {
constructor(e, n) {
super({
message: e,
code: t.LauncherSpecificInstallerErrorsCodes.ERR_CANCEL_FAIL,
payload: n
}), Object.setPrototypeOf(this, m.prototype)
}
}
},
6565: (e, t, n) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.serializerInstallerErrors = void 0;
const r = n(728);
t.serializerInstallerErrors = e => {
const {
code: t,
message: n,
payload: i
} = e;
switch (console.log(e), t) {
case r.InstallerErrorsNames.ERR_INVALID_MD_FILE:
return new r.InvalidMDFileError(n, i);
case r.InstallerErrorsNames.ERR_INVALID_MD_FILE_HEADER:
return new r.InvalidMDFileHeaderError(n, i);
case r.InstallerErrorsNames.ERR_MD_FILE_HEADER_NOT_FOUND:
return new r.MDFileHeaderNotFoundError(n, i);
case r.InstallerErrorsNames.ERR_NOT_MAPPED_ERRORS:
return new r.NotMappedError(n, i);
case r.InstallerErrorsNames.ERR_DISK_FULL:
return new r.DiskFullError(n, i);
case r.InstallerErrorsNames.ERR_FILE_IN_USE:
return new r.FileInUseError(n, i);
case r.InstallerErrorsNames.ERR_WRITE_PERMISSION:
return new r.WritePermissionsError(n, i);
case r.InstallerErrorsNames.ERR_P4K_CORRUPTED:
return new r.Pk4CorruptedError(n, i);
case r.InstallerErrorsNames.ERR_RETRIEVE_MANIFEST:
return new r.RetrieveManifestError(n, i);
case r.InstallerErrorsNames.ERR_UNKNOWN_NETWORK_ERROR:
return new r.PatcherUnknownNetworkError(n, i);
case r.InstallerErrorsNames.ERR_BASE_P4K_CORRUPTED:
return new r.BasePackP4kCorruptedError(n, i);
case r.InstallerErrorsNames.ERR_DOWNLOAD_UNSUCCESSFULL:
return new r.DownloadUnsuccessfullError(n, i);
case r.InstallerErrorsNames.ERR_PATCHER_UNKNOWN:
return new r.PatcherGenericError(n, i);
case r.InstallerErrorsNames.ERR_INIT_UNKNOWN:
return new r.BasePackGenericError(n, i);
case r.InstallerErrorsNames.ERR_FIX_PERMISSIONS:
return new r.FixPermissionError(n, i);
case r.InstallerErrorsNames.ERR_IO_ERROR:
return new r.IOError(n, i);
case r.InstallerErrorsNames.ERR_P4K_ERROR:
return new r.P4KError(n, i);
case r.InstallerErrorsNames.ERR_INVALID_ARGUMENT_TYPE:
return new r.InvalidArgumentTypeError(n, i);
case r.InstallerErrorsNames.ERR_EXCEPTION_U_00:
return new r.ExceptionU00Error(n, i);
case r.InstallerErrorsNames.ERR_NETWORK_COULD_NOT_RESOLVE_HOST:
case r.InstallerErrorsNames.ERR_NETWORK_FAILED_TO_RECEIVE_HANDSHAKE:
return new r.NetworkFailedToRecieveHandshakeError(n, i);
case r.InstallerErrorsNames.ERR_NETWORK_DEFAULT:
return new r.NetworkDefaultError(n, i);
case r.InstallerErrorsNames.ERR_ERROR_21:
return new r.Error21Error(n, i);
default:
return new r.InstallerError({
code: r.LauncherSpecificInstallerErrorsCodes.ERR_INSTALL_UNKNOWN,
message: n,
payload: i
})
}
}
},
2358: (e, t, n) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.GameCrashError = t.EACError = t.NoGameFilesError = t.LaunchError = t.LaunchErrorsNames = void 0;
const r = n(2700);
t.LaunchErrorsNames = {
ERR_LAUNCH_NO_GAME_FILES: "ENOENT",
ERR_LAUNCH_UNKNOWN: "UnknownLaunchError",
ERR_LAUNCH_EAC: "30",
ERR_LAUNCH_GAME_CRASH: "GameCrashLaunchError"
};
const i = "6000",
a = "6001",
o = "6002",
s = "7000";
class l extends r.GenericError {
constructor({
message: e,
code: t = a,
payload: n
}) {
super({
message: e,
code: t,
payload: n
}), Object.setPrototypeOf(this, l.prototype), this.code = t, this.payload = n
}
}
t.LaunchError = l;
class c extends l {
constructor(e, t) {
super({
message: e,
code: i,
payload: t
}), Object.setPrototypeOf(this, c.prototype)
}
}
t.NoGameFilesError = c;
class u extends l {
constructor(e, t) {
super({
message: e,
code: o,
payload: t
}), Object.setPrototypeOf(this, u.prototype)
}
}
t.EACError = u;
class d extends l {
constructor(e, t) {
super({
message: e,
code: s,
payload: t
}), Object.setPrototypeOf(this, d.prototype)
}
}
t.GameCrashError = d
},
2299: (e, t, n) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.serializerLaunchErrors = void 0;
const r = n(2358);
t.serializerLaunchErrors = e => {
const {
code: t,
message: n,
payload: i
} = e;
switch (t) {
case r.LaunchErrorsNames.ERR_LAUNCH_NO_GAME_FILES:
return new r.NoGameFilesError(n, i);
case r.LaunchErrorsNames.ERR_LAUNCH_EAC:
return new r.EACError(n, i);
default:
return new r.LaunchError({
code: r.LaunchErrorsNames.ERR_LAUNCH_UNKNOWN,
message: n,
payload: i
})
}
}
},
2087: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
})
},
1012: function(e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) {
void 0 === r && (r = n);
var i = Object.getOwnPropertyDescriptor(t, n);
i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
enumerable: !0,
get: function() {
return t[n]
}
}), Object.defineProperty(e, r, i)
} : function(e, t, n, r) {
void 0 === r && (r = n), e[r] = t[n]
}),
i = this && this.__exportStar || function(e, t) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n)
};
Object.defineProperty(t, "__esModule", {
value: !0
}), i(n(6994), t), i(n(8096), t), i(n(2087), t), i(n(5708), t), i(n(4208), t), i(n(7735), t), i(n(3010), t), i(n(4764), t), i(n(9056), t), i(n(4724), t), i(n(6840), t)
},
4208: (e, t) => {
"use strict";
var n, r, i;
Object.defineProperty(t, "__esModule", {
value: !0
}), t.InstallerOptions = t.InstallationStatus = t.InstallationType = void 0,
function(e) {
e.INSTALL = "install", e.VERIFY = "verify", e.UPDATE = "update"
}(n || (t.InstallationType = n = {})),
function(e) {
e.WAITING = "waiting", e.CANCELLING = "cancelling", e.IN_PROGRESS = "in-progress", e.PAUSED = "paused", e.COMPLETED = "completed", e.ERROR = "error"
}(r || (t.InstallationStatus = r = {})),
function(e) {
e.ConcurrentTransfers = "concurrentTransfers", e.MaximumDownloadBandwidth = "maximumDownloadBandwidth", e.MaximumTransfersInFlight = "maximumTransfersInFlight", e.RetriesPerFile = "retriesPerFile"
}(i || (t.InstallerOptions = i = {}))
},
3010: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
})
},
7735: (e, t) => {
"use strict";
var n;
Object.defineProperty(t, "__esModule", {
value: !0
}), t.GameChannelStatus = void 0,
function(e) {
e.AVAILABLE = "available", e.INSTALLED = "installed", e.RUNNING = "running", e.UNINSTALLING = "uninstalling", e.UPDATE_AVAILABLE = "update-available"
}(n || (t.GameChannelStatus = n = {}))
},
4724: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
})
},
9056: (e, t) => {
"use strict";
var n, r, i;
Object.defineProperty(t, "__esModule", {
value: !0
}), t.SystemStatusOrder = t.RSISystemName = t.RSISystemStatus = void 0,
function(e) {
e.MAJOR = "major", e.PARTIAL = "partial", e.DEGRADED = "degraded", e.MAINTENANCE = "maintenance", e.OPERATIONAL = "operational"
}(n || (t.RSISystemStatus = n = {})),
function(e) {
e.PLATFORM = "Platform", e.PERSISTENTE_UNIVERSE = "Persistent Universe", e.ARENA_COMMANDER = "Arena Commander"
}(r || (t.RSISystemName = r = {})),
function(e) {
e[e.MAJOR = 0] = "MAJOR", e[e.PARTIAL = 1] = "PARTIAL", e[e.DEGRADED = 2] = "DEGRADED", e[e.MAINTENANCE = 3] = "MAINTENANCE", e[e.OPERATIONAL = 4] = "OPERATIONAL"
}(i || (t.SystemStatusOrder = i = {}))
},
4764: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
})
},
6840: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
})
},
1901: (e, t, n) => {
"use strict";
n.d(t, {
N: () => a
});
var r = n(8974),
i = n(5391),
a = new class extends r.l {
#e = !0;
#t;
#n;
constructor() {
super(), this.#n = e => {
if (!i.sk && window.addEventListener) {
const t = () => e(!0),
n = () => e(!1);
return window.addEventListener("online", t, !1), window.addEventListener("offline", n, !1), () => {
window.removeEventListener("online", t), window.removeEventListener("offline", n)
}
}
}
}
onSubscribe() {
this.#t || this.setEventListener(this.#n)
}
onUnsubscribe() {
this.hasListeners() || (this.#t?.(), this.#t = void 0)
}
setEventListener(e) {
this.#n = e, this.#t?.(), this.#t = e(this.setOnline.bind(this))
}
setOnline(e) {
this.#e !== e && (this.#e = e, this.listeners.forEach((t => {
t(e)
})))
}
isOnline() {
return this.#e
}
}
},
8974: (e, t, n) => {
"use strict";
n.d(t, {
l: () => r
});
var r = class {
constructor() {
this.listeners = new Set, this.subscribe = this.subscribe.bind(this)
}
subscribe(e) {
return this.listeners.add(e), this.onSubscribe(), () => {
this.listeners.delete(e), this.onUnsubscribe()
}
}
hasListeners() {
return this.listeners.size > 0
}
onSubscribe() {}
onUnsubscribe() {}
}
},
5391: (e, t, n) => {
"use strict";
n.d(t, {
A4: () => y,
Ht: () => w,
Kp: () => s,
PN: () => o,
Rm: () => u,
SE: () => a,
VS: () => f,
VX: () => x,
X7: () => c,
Ym: () => d,
ZT: () => i,
_v: () => _,
_x: () => l,
oE: () => b,
sk: () => r,
to: () => p
});
var r = "undefined" === typeof window || "Deno" in window;
function i() {}
function a(e, t) {
return "function" === typeof e ? e(t) : e
}
function o(e) {
return "number" === typeof e && e >= 0 && e !== 1 / 0
}
function s(e, t) {
return Math.max(e + (t || 0) - Date.now(), 0)
}
function l(e, t) {
const {
type: n = "all",
exact: r,
fetchStatus: i,
predicate: a,
queryKey: o,
stale: s
} = e;
if (o)
if (r) {
if (t.queryHash !== u(o, t.options)) return !1
} else if (!p(t.queryKey, o)) return !1;
if ("all" !== n) {
const e = t.isActive();
if ("active" === n && !e) return !1;
if ("inactive" === n && e) return !1
}
return ("boolean" !== typeof s || t.isStale() === s) && (("undefined" === typeof i || i === t.state.fetchStatus) && !(a && !a(t)))
}
function c(e, t) {
const {
exact: n,
status: r,
predicate: i,
mutationKey: a
} = e;
if (a) {
if (!t.options.mutationKey) return !1;
if (n) {
if (d(t.options.mutationKey) !== d(a)) return !1
} else if (!p(t.options.mutationKey, a)) return !1
}
return (!r || t.state.status === r) && !(i && !i(t))
}
function u(e, t) {
return (t?.queryKeyHashFn || d)(e)
}
function d(e) {
return JSON.stringify(e, ((e, t) => g(t) ? Object.keys(t).sort().reduce(((e, n) => (e[n] = t[n], e)), {}) : t))
}
function p(e, t) {
return e === t || typeof e === typeof t && (!(!e || !t || "object" !== typeof e || "object" !== typeof t) && !Object.keys(t).some((n => !p(e[n], t[n]))))
}
function h(e, t) {
if (e === t) return e;
const n = m(e) && m(t);
if (n || g(e) && g(t)) {
const r = n ? e.length : Object.keys(e).length,
i = n ? t : Object.keys(t),
a = i.length,
o = n ? [] : {};
let s = 0;
for (let l = 0; l < a; l++) {
const r = n ? l : i[l];
o[r] = h(e[r], t[r]), o[r] === e[r] && s++
}
return r === a && s === r ? e : o
}
return t
}
function f(e, t) {
if (e && !t || t && !e) return !1;
for (const n in e)
if (e[n] !== t[n]) return !1;
return !0
}
function m(e) {
return Array.isArray(e) && e.length === Object.keys(e).length
}
function g(e) {
if (!v(e)) return !1;
const t = e.constructor;
if ("undefined" === typeof t) return !0;
const n = t.prototype;
return !!v(n) && !!n.hasOwnProperty("isPrototypeOf")
}
function v(e) {
return "[object Object]" === Object.prototype.toString.call(e)
}
function _(e) {
return new Promise((t => {
setTimeout(t, e)
}))
}
function y(e) {
_(0).then(e)
}
function b(e, t, n) {
return "function" === typeof n.structuralSharing ? n.structuralSharing(e, t) : !1 !== n.structuralSharing ? h(e, t) : t
}
function x(e, t, n = 0) {
const r = [...e, t];
return n && r.length > n ? r.slice(1) : r
}
function w(e, t, n = 0) {
const r = [t, ...e];
return n && r.length > n ? r.slice(0, -1) : r
}
},
3713: (e, t, n) => {
"use strict";
n.d(t, {
NL: () => a,
aH: () => o
});
var r = n(1479),
i = r.createContext(void 0),
a = e => {
const t = r.useContext(i);
if (e) return e;
if (!t) throw new Error("No QueryClient set, use QueryClientProvider to set one");
return t
},
o = ({
client: e,
children: t
}) => (r.useEffect((() => (e.mount(), () => {
e.unmount()
})), [e]), r.createElement(i.Provider, {
value: e
}, t))
}
},
t = {};
function n(r) {
var i = t[r];
if (void 0 !== i) return i.exports;
var a = t[r] = {
id: r,
loaded: !1,
exports: {}
};
return e[r].call(a.exports, a, a.exports, n), a.loaded = !0, a.exports
}
n.m = e, n.n = e => {
var t = e && e.__esModule ? () => e.default : () => e;
return n.d(t, {
a: t
}), t
}, (() => {
var e, t = Object.getPrototypeOf ? e => Object.getPrototypeOf(e) : e => e.__proto__;
n.t = function(r, i) {
if (1 & i && (r = this(r)), 8 & i) return r;
if ("object" === typeof r && r) {
if (4 & i && r.__esModule) return r;
if (16 & i && "function" === typeof r.then) return r
}
var a = Object.create(null);
n.r(a);
var o = {};
e = e || [null, t({}), t([]), t(t)];
for (var s = 2 & i && r;
"object" == typeof s && !~e.indexOf(s); s = t(s)) Object.getOwnPropertyNames(s).forEach((e => o[e] = () => r[e]));
return o.default = () => r, n.d(a, o), a
}
})(), n.d = (e, t) => {
for (var r in t) n.o(t, r) && !n.o(e, r) && Object.defineProperty(e, r, {
enumerable: !0,
get: t[r]
})
}, n.f = {}, n.e = e => Promise.all(Object.keys(n.f).reduce(((t, r) => (n.f[r](e, t), t)), [])), n.u = e => "static/js/" + e + "." + {
496: "25235a38",
569: "7c5bec35",
803: "5b23f8e0"
} [e] + ".chunk.js", n.miniCssF = e => {}, n.g = function() {
if ("object" === typeof globalThis) return globalThis;
try {
return this || new Function("return this")()
} catch (e) {
if ("object" === typeof window) return window
}
}(), n.hmd = e => ((e = Object.create(e)).children || (e.children = []), Object.defineProperty(e, "exports", {
enumerable: !0,
set: () => {
throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: " + e.id)
}
}), e), n.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t), (() => {
var e = {},
t = "@rsilauncher/app-renderer:";
n.l = (r, i, a, o) => {
if (e[r]) e[r].push(i);
else {
var s, l;
if (void 0 !== a)
for (var c = document.getElementsByTagName("script"), u = 0; u < c.length; u++) {
var d = c[u];
if (d.getAttribute("src") == r || d.getAttribute("data-webpack") == t + a) {
s = d;
break
}
}
s || (l = !0, (s = document.createElement("script")).charset = "utf-8", s.timeout = 120, n.nc && s.setAttribute("nonce", n.nc), s.setAttribute("data-webpack", t + a), s.src = r), e[r] = [i];
var p = (t, n) => {
s.onerror = s.onload = null, clearTimeout(h);
var i = e[r];
if (delete e[r], s.parentNode && s.parentNode.removeChild(s), i && i.forEach((e => e(n))), t) return t(n)
},
h = setTimeout(p.bind(null, void 0, {
type: "timeout",
target: s
}), 12e4);
s.onerror = p.bind(null, s.onerror), s.onload = p.bind(null, s.onload), l && document.head.appendChild(s)
}
}
})(), n.r = e => {
"undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(e, "__esModule", {
value: !0
})
}, n.p = "./", (() => {
var e = {
179: 0
};
n.f.j = (t, r) => {
var i = n.o(e, t) ? e[t] : void 0;
if (0 !== i)
if (i) r.push(i[2]);
else {
var a = new Promise(((n, r) => i = e[t] = [n, r]));
r.push(i[2] = a);
var o = n.p + n.u(t),
s = new Error;
n.l(o, (r => {
if (n.o(e, t) && (0 !== (i = e[t]) && (e[t] = void 0), i)) {
var a = r && ("load" === r.type ? "missing" : r.type),
o = r && r.target && r.target.src;
s.message = "Loading chunk " + t + " failed.\n(" + a + ": " + o + ")", s.name = "ChunkLoadError", s.type = a, s.request = o, i[1](s)
}
}), "chunk-" + t, t)
}
};
var t = (t, r) => {
var i, a, [o, s, l] = r,
c = 0;
if (o.some((t => 0 !== e[t]))) {
for (i in s) n.o(s, i) && (n.m[i] = s[i]);
if (l) l(n)
}
for (t && t(r); c < o.length; c++) a = o[c], n.o(e, a) && e[a] && e[a][0](), e[a] = 0
},
r = globalThis.webpackChunk_rsilauncher_app_renderer = globalThis.webpackChunk_rsilauncher_app_renderer || [];
r.forEach(t.bind(null, 0)), r.push = t.bind(null, r.push.bind(r))
})(), (() => {
"use strict";
var e = {};
n.r(e), n.d(e, {
FunctionToString: () => uS,
InboundFilters: () => ES
});
var t = {};
n.r(t), n.d(t, {
Breadcrumbs: () => qO,
Dedupe: () => eP,
GlobalHandlers: () => AO,
HttpContext: () => JO,
LinkedErrors: () => QO,
TryCatch: () => jO
});
var r = {};
n.r(r), n.d(r, {
EventToMain: () => fP,
ScopeToMain: () => hP
});
const i = {
agreements: {
agreement_fetch_info_error: "Could not retrieve agreement from server at this time, please wait a minute and try again.",
agreement_declined: "Agreement has been declined"
},
appHeader: {
app_header_menu: "Menu",
app_header_volume: "Volume",
app_header_volume_mute: "Mute",
app_header_volume_unmute: "Unmute",
app_header_account: "Account",
app_header_account_name: "Name",
app_header_account_moniker: "@Community Moniker",
app_header_menu_get_help: "Get Help",
app_header_menu_spectrum: "Spectrum",
app_header_menu_issue_council: "Issue Council",
app_header_menu_discover: "Discover",
app_header_menu_exit_the_app: "Exit the app",
app_header_menu_settings: "Settings",
app_header_actions_download: "Downloads",
app_header_actions_menu_rsi_status: "RSI Status",
app_header_actions_menu_rsi_account: "RSI Account",
app_header_actions_menu_log_out: "Log out",
app_header_loading: "Entering the verse\u2026"
},
autoUpdate: {
auto_update_dialog_close: "Close",
auto_update_dialog_title: "App Update Available",
auto_update_dialog_sub_title: "Version {{version}}",
auto_update_dialog_no_update_content: "You've already run the latest version of the RSI Launcher.<0/>Thanks for being up to date!",
auto_update_dialog_no_update_action_primary_label: "Continue",
auto_update_dialog_update_available_content: "A new version of the RSI Launcher is available for installation. This application will close and relaunch...",
auto_update_dialog_update_available_action_primary_label: "Install and Restart",
auto_update_dialog_update_available_action_secondary_label: "Install later",
auto_update_dialog_update_install_failed_content: "Unable to update to the newer version of the Launcher, please retry installation or contact <0>customer support</0>",
auto_update_dialog_update_install_failed_action_primary_label: "Retry Install",
auto_update_dialog_update_install_failed_action_secondary_label: "Install Later",
auto_update_dialog_update_quit_game_content: "A game session is currently running. If you want to install the new version of the Launcher, it will close the current game session and progression might be lost",
auto_update_dialog_update_quit_game_action_primary_label: "Quit Game and Install",
auto_update_dialog_update_quit_game_action_secondary_label: "Try Later",
auto_update_toast_update_installed: "Newer version of Launcher has been successfully installed"
},
contextMenu: {
context_menu_copy: "Copy",
context_menu_paste: "Paste",
context_menu_cut: "Cut",
context_menu_select_all: "Select all"
},
dialog: {
dialog_warning_logout_title: "Logout",
dialog_warning_logout_text: "Do you really want to log out of your account ?",
dialog_warning_logout_game_running_text: "Do you really want to log out of your account while the game is running? Progress might be lost.",
dialog_warning_logout_confirm: "Logout",
dialog_warning_logout_error: "An error occured while logging out. Your session might have expired try login again",
dialog_action_cancel: "Cancel",
dialog_action_confirm: "Confirm",
dialog_action_acknowledge: "Acknowledge",
dialog_action_ok: "OK",
dialog_action_retry: "Retry",
dialog_action_close: "Close",
dialog_action_accept: "Accept",
dialog_action_decline: "Decline",
dialog_action_verify: "Verify",
dialog_action_install: "Install Game",
dialog_action_relaunch: "Relaunch",
dialog_action_discard: "Discard",
dialog_action_cancel_download: "Cancel download",
dialog_warning_back_launcher: "Go back to Launcher",
dialog_warning_exit_app_title: "Exit App",
dialog_warning_exit_app_text: "Do you really want to exit the app ?",
dialog_warning_exit_app_checkbox: "Don't show this again",
dialog_warning_exit_app_game_running_text: "Are you sure you want to exit the app while the game is still running?",
dialog_warning_exit_app_confirm: "Exit the app",
dialog_warning_uninstall_title: "Uninstall {{game}} - {{channel}}",
dialog_warning_uninstall_text: "Would you like to uninstall this game channel from your computer? Please note that the game files will be uninstalled for all users on this machine.",
dialog_warning_uninstall_userFolder_checkbox: "Keep my user folder (keybindings and settings preferences)",
dialog_warning_uninstall_userFolder_checkbox_description: "Location: {{path}}",
dialog_warning_uninstall_confirm: "Uninstall Game",
dialog_settings_reset_title: "Reset Settings",
dialog_settings_reset_content: "Are you sure you want to reset your game settings?",
dialog_settings_reset_button: "Reset to default",
dialog_settings_game_not_installed_title: "The game is not installed",
dialog_settings_game_not_installed_content: "The game you are trying to verify is not currently installed at this location. Please install the game first and try again.",
dialog_cancel_installation_title: "Cancel download",
dialog_cancel_installation_content: "Do you really want to cancel the download of {{info}} ?",
dialog_cancel_installation_content_keep_files_downloaded: "Keep already downloaded files",
dialog_start_installation_title: "Install {{game}} - {{channel}}",
dialog_start_installation_content_location: "The game will be installed at the following location:",
dialog_start_installation_content_location_settings: "You can change the game location in the Game Settings.",
dialog_start_installation_action_go_to_settings: "Game Settings",
dialog_start_installation_action_install: "Install",
dialog_launch_check_update_available_title: "Game version update",
dialog_launch_check_update_available_content: "A new version of {{game}} - {{channel}} is available. Please update to access the game.",
dialog_discover_title: "The Launcher has a new UI!",
dialog_discover_content: "The RSI Launcher has a brand-new look! We have prepared a little tour to show you around.",
dialog_discover_start: "Start tour",
dialog_discover_skip: "Skip",
dialog_debug_cache_clear_title: "Clear Launcher Cache",
dialog_debug_cache_clear_content: "This action will clear the Launcher cache and log you out, do you really want to proceed?",
dialog_debug_cache_clear_button: "Proceed"
},
discover: {
step_done_label: "Enter Now",
step_menu_title: "Launcher App Menu",
step_menu_description: "Quick access to settings and useful resources can be found in this menu, such as Support, Spectrum, and Issue Council.",
step_status_title: "Status",
step_status_description: "Monitor the status of RSI services here. If there are any performance or service interruptions, you will see it here.",
step_download_title: "Download Management",
step_download_description: "Follow the progress of your game downloads / updates, pause the current download, or quickly access the download settings here.",
"step_user-profile_title": "User Profile",
"step_user-profile_description": "See which account is currently logged-in here. Use this menu to directly access your RSI account page or log out if you need to switch accounts. ",
step_last_title: "Launcher Evolution",
step_last_description: "The RSI Launcher will continue to evolve through time. Please do not hesitate to give us your feedback on Issue Council. Thank you for supporting the development."
},
download: {
download_empty: "There is no download in the queue.",
download_phase: "Phase",
download_status: "Status",
download_speed: "Speed",
download_left: "Left",
download_files_left: "Files left",
download_title: "Downloads",
download_settings: "Download Settings",
download_play: "Play",
download_pause: "Pause",
download_initializing: "Initializing\u2026",
download_update_manifest: "Downloading update manifest",
download_manifest: "Downloading manifest",
downloaded_update_manifest: "Update manifest downloaded",
download_analysing_install: "Analyzing current installation",
download_checking_files: "Checking files - This can take a few minutes",
download_base_pack: "Downloading base pack",
download_updating_game_files: "Updating game files",
download_updating_game_content: "Updating game content",
download_completed: "Completed",
download_waiting: "Waiting in queue",
download_cancelling: "Cancelling",
download_resume: "Resume",
download_cancel: "Cancel",
download_remove: "Remove",
download_error: "Error",
download_toast_install_success: "Installation has been completed",
download_toast_update_success: "Update has been completed",
download_toast_verify_success: "Verify has been completed",
download_toast_install_cancel_success: "Download has been canceled",
download_toast_uninstall_success: "{{game}} - {{channel}} has been uninstalled",
download_toast_uninstall_fail: "{{game}} - {{channel}} could not be uninstalled",
download_type_install: "Installation",
download_type_update: "Update",
download_type_verify: "Verify"
},
errors: {
error_game_package_missing_title: "Missing a game package",
error_game_package_missing_subtitle: "You need to purchase a game package to access the game and log-in",
error_game_package_missing_retry: "Retry Sign In",
error_game_package_missing_support: "Customer Support",
error_internal_error: "Internal Error",
error_not_authenticated: "You are not authenticated",
error_invalid_claims: "Invalid claims",
error_authentication_mfa: "Authentication requires mfa",
"error_sign-in_failed": "Sign in failed. You may have entered the wrong credentials.",
error_sign_in_not_authorized: "You don't have the permission to sign in.",
error_captcha_invalid: "Captcha is invalid",
error_session_expired: "Your session has expired. Please confirm your password again.",
error_wrong_credentials: "You may have entered the wrong credentials, the account does not exist, or has not been activated (1032)",
error_max_login_attempt: "Maximum number of failed login attempts exceeded. (1034)",
error_wrong_mfa_code: "Two-factor authentication failed. You may have entered and incorrect or expired code (1037)",
error_captcha_required: "Sign in failed. You may have entered the wrong credentials.",
error_installer_basepack_invalid_title: "Basepack - Invalid Files",
error_installer_basepack_invalid_content: "Something went wrong while downloading the game, please try again. Error code: {{ code }}",
error_installer_disc_full_title: "Insufficient Disk Space",
error_installer_disc_full_content: "Your hard drive does not have the available space required. Free space or move your library folder to a larger disk. Error code: {{ code }}",
error_installer_permissions_title: "Filesystem Permission Error",
error_installer_permissions_content: "The patcher encountered a permissions issue when writing to disk. Please check your library folder permissions and try again. Error code: {{ code }}",
error_installer_permissions_action: "Fix permissions",
error_installer_file_in_use_title: "File In Use",
error_installer_file_in_use_content: "The game files are in use. Please close any game files you may have open, then try again. Error code: {{ code }}",
error_installer_pk4_corrupted_title: "Game Files Are Corrupted",
error_installer_pk4_corrupted_content: "Your game files are corrupted and unrecoverable. Error code: {{ code }}",
error_installer_retrieve_manifest_title: "Cannot Retrieve Update Manifest",
error_installer_retrieve_manifest_content: "A network error occurred fetching the update manifest. Please check your internet connection, restart the launcher, and try again. Error code: {{ code }}",
error_installer_unknown_network_title: "Unknown Network Error",
error_installer_unknown_network_content: "Please check your network access and try again. Error code: {{ code }}",
error_installer_base_p4k_corrupted_title: "Base Pack Verification Error",
error_installer_base_p4k_corrupted_content: "Failed to verify Basepack.Please retry or <0>report a bug</0> if the problem persists. Make sure to include your <1>logs.</1>",
error_installer_init_download_title: "Initial Download - Base Pack - Error",
error_installer_patcher_title: "Data Patcher Error",
error_installer_title: "Installer Error",
error_installer_patcher_generic_content: "An error has occured during the installation process. Find more information on the <0>Knowledge base</0>. Please <1>report a bug</1> if the problem persists. Make sure to include your <2>logs</2>. Error code: {{ code }}",
error_installer_generic_content: "An error has occured during the installation process. Please <0>report a bug</0> if the problem persists. Make sure to include your <1>logs</1>. Error code: {{ code }}",
error_generic_title: "Launcher Error",
error_generic_content: "Something went wrong. Please <0>report a bug</0> if the problem persists. Make sure to include your <1>logs.</1> Error code: {{ code }}",
error_os_requirements_title: "Minimum Requirements Not Met",
error_os_requirements_text: "Your computer does not meet the <0>minimum requirements</0> to run {{ game }}.",
error_cpu_requirements_title: "Unsupported Hardware Detected",
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</0> and try again. Error code: {{ code }}",
error_launch_game_title: "{{ game }} Has Stopped Running Unexpectedly",
error_launch_game_content: "Try to relaunch the game. If this problem persists, please verify your installation files.",
error_launch_unknown_title: "Launcher - Unknown Error",
error_launch_unknown_content: "Something went wrong on Launch. Please, verify game files.<2></2> Please <0>report a bug</0> if the problem persists. Make sure to include your <1>logs.</1> Error code: {{ code }}",
error_launch_no_game_files_title: "Launch - Game Files Not Found",
error_launch_no_game_files_content: "Something went wrong on game launch. Could not retrieve game files. Please verify game files. Error code: {{ code }}",
error_launch_EAC_title: "Launch - EAC error",
error_launch_EAC_content: "Something went wrong on Launch. EAC detected corrupted files. Please verify game files. Error code: {{ code }}",
error_launch_game_crash_title: "Game error",
error_launch_game_crash_content: "Something went wrong while playing the game. Please <0>report a bug</0> if the problem persists. Make sure to include your <1>logs.</1> Error code: {{ code }}",
error_launch_game_running_title: "Game Is Already Running",
error_launch_game_running_content: "The game is already running",
error_launch_check_update_unavailable_title: "Check Game Version Failed",
error_launch_check_update_unavailable_content: "Something went wrong while checking your game version. Please <0>report a bug</0> if the problem persists. Make sure to include your <1>logs.</1> Error code: {{ code }}",
error_api_denied_request_title: "API Denied Request",
error_api_denied_request_content: "Something went wrong. It appears that your session is expired or has been denied. You have been logged out. Please try again.",
error_api_validation_failed: "API Request validation failed",
error_api_too_many_requests_title: "Too Many Requests",
error_api_too_many_requests_content: "API is currently overloaded, please try again in a couple of minutes.",
error_api_unavailable: "API is unavailable. Please try again in a few minutes.",
error_api_internal_server_error: "Our servers are experiencing difficulties. Please try again in a few minutes.",
error_api_auth_expired_content: "Your session has expired. Please confirm your password again.",
error_api_auth_expired_title: "Session Expired",
error_api_platform_auth_title: "Platform Auth Error",
error_api_platform_auth_content: "Unable to authenticate to authenticate on {{ id }} platform : {{ error }}",
error_network_issue_title: "Network Issue",
error_network_issue_content: "Network connection cannot be established. Please check your network status and attempt to connect again."
},
form: {
sign_in_title: "Sign in to the RSI Launcher",
sign_in_email: "Email",
sign_in_password: "Password",
sign_in_remember_me: "Remember me",
sign_in_forgot_password: "Forgot password?",
sign_in_captcha: "Captcha",
sign_in_captcha_refresh: "Refresh",
sign_in_captcha_help: "Enter the text you see in the image above.",
sign_in_no_account: "No account?",
sign_in_create_account: "Create one!",
sign_in_submit: "Sign in",
sign_in_loading: "Signing in\u2026",
sign_in_mfa_title: "We need to verify your identity",
sign_in_mfa_subtitle: "Protecting your account is important to us. We sent an authentication code to the email address attached to your account.",
sign_in_mfa_code_label: "Authentification code",
sign_in_mfa_code_help: "Enter the code sent to your email or from your authenticator. Alternatively use a backup code.",
sign_in_mfa_device_label: "Device name",
sign_in_mfa_device_help: "Enter a name for your current device.",
sign_in_mfa_duration_label: "Trust this device for",
sign_in_mfa_duration_help: "Allow this device to skip MFA for a selected amount of time. If this is a shared or public device we recommend \u201cthis session only\u201d.",
sign_in_mfa_session: "This session only",
sign_in_mfa_day: "One day",
sign_in_mfa_week: "One week",
sign_in_mfa_month: "One month",
sign_in_mfa_year: "One year",
sign_in_mfa_back_sign_in: "Back",
sign_in_mfa_submit: "Authenticate",
error_field_is_required: "This field is required",
error_email_field_is_required: "An email adress is required",
error_password_field_is_required: "A password is required",
error_code_required: "You must enter your code",
error_device_required: "You must enter your device name",
error_device_min_length: "Your device name must be at least 3 characters in length",
text_field_show_password: "Show password",
text_field_hide_password: "Hide password"
},
gamePage: {
game_page_title: "Get into the<0/><1>{{name}} Universe</1>",
game_page_nav_title_one: "Game",
game_page_nav_title_other: "Games",
game_page_game_is_running: "Game is running",
game_page_installing: "Installing\u2026",
game_page_installing_paused: "Install paused",
game_page_updating: "Updating\u2026",
game_page_updating_paused: "Update paused",
game_page_verifying: "Verifying\u2026",
game_page_uninstalling: "Uninstalling",
game_page_verifying_paused: "Verify paused",
game_page_update_game: "Update Game",
game_page_launch_game: "Launch Game",
game_page_install_game: "Install Game",
game_page_waiting_in_queue: "Waiting in queue",
game_page_channels: "Game Environment",
game_page_settings: "Game Settings",
game_page_settings_verify: "Verify game files",
game_page_settings_uninstall: "Uninstall game",
game_page_update_game_is_available: "Read about {{version}} features, <0>see patch notes</0>",
game_page_status_under_maintenance: "We have ongoing maintenance on one of our services.",
game_page_status_issue: "We are working on resolving an issue. Enter at your own risk.",
game_page_status_more_information: "For more information check out the <0>status page</0>.",
game_page_cards_empty: "No content available for now",
game_page_cards_loading: "Loading content.",
game_page_cards_tab_community: "Community",
"game_page_cards_tab_comm-links": "Comm-Links",
"game_page_cards_tab_new-citizens": "New Citizens",
"game_page_cards_tab_patch-notes": "Patch Notes",
game_page_card_button_label: "Read More"
},
settingsPage: {
settings_about_title: "About",
settings_application_title: "Application",
settings_games_title: "Games",
settings_download_title: "Download",
settings_dev_title: "Dev / QA",
settings_nav_items_application: "Application",
settings_nav_items_accessibility: "Accessibility",
settings_nav_items_games: "Games",
settings_nav_items_about: "About",
settings_nav_items_download: "Download",
settings_nav_items_dev: "DEV \ud83d\ude80",
settings_about_logo_alt: "Cloud Imperium\xa9",
settings_about_copyright: "\xa9 2012 - {{year}} Cloud Imperium Rights LLC and Cloud Imperium Rights Ltd",
settings_about_launcher_version: "Launcher version:",
settings_application_window_behavior_title: "Window Behavior",
settings_application_window_behavior_description: "This option will allow you to quit the app when the window is closed.",
settings_application_window_behavior_close_to_quit: "Enable close-to-quit",
settings_application_debug_tools_title: "Launcher debug tools",
settings_application_debug_tools_description: "If you have trouble with the Launcher, clearing the cache may solve the issue. You may also need to locate your logs file, this can be useful for reporting a bug on the Launcher <iclink>Issue Council</iclink>.",
settings_application_debug_tools_label: "Debug tools",
settings_application_debug_tools_button_clear_cache: "Clear Launcher Cache",
settings_application_debug_tools_button_get_logs: "Get Logs",
settings_application_debug_tools_button_cache_clear_success: "Cache Cleared",
settings_accessibility_title: "Accessibility",
settings_accessibility_reduce_motion_title: "Reduce Motion",
settings_accessibility_reduce_motion_description: "Reduce the number of animations in the Launcher such as background videos, icon animations and page transitions.",
settings_accessibility_reduce_motion_system_sync_title: "Sync with operating system",
settings_accessibility_reduce_motion_system_sync_description: "Follow operating system Reduce Motion preferences",
settings_accessibility_reduce_motion_background_video_toggle_title: "Disable background video",
settings_accessibility_reduce_motion_background_video_toggle_description: "Replace the video loop with a static image",
settings_accessibility_reduce_motion_unessential_animation_toggle_title: "Disable non-essential animations",
settings_accessibility_reduce_motion_unessential_animation_toggle_description: "Decorative icons, logos, mouse interactions...",
settings_accessibility_reduce_motion_transition_effects_toggle_title: "Disable transition effects",
settings_accessibility_reduce_motion_transition_effects_toggle_description: "Animations between sections (pages, tabs...)",
settings_accessibility_reduce_motion_information_enabled: "Operating system Reduce Motion is activated.",
settings_accessibility_reduce_motion_information_disabled: "Operating system Reduce Motion is deactivated.",
settings_accessibility_reduce_motion_information_restart_link_label: "Your changes will be applied on next launch. <iclink>Restart now</iclink>.",
settings_games_installation_title: "Game location",
settings_games_installation_description: "This is the path of your game folder location.",
settings_games_installation_information: "If your game is already installed at a different location, select it here, then hit Verify.",
settings_games_installation_path_title: "Game location complete path:",
settings_games_installation_library_folder_success: "Path updated",
settings_games_installation_library_folder_change: "Change",
settings_games_installation_library_folder_label: "RSI Library Location",
settings_games_game_files_title: "Game Files",
settings_games_game_files_description: "Install/Uninstall this game channel or verify if the game files are installed correctly on your computer.",
settings_games_game_files_verify_files: "Verify Game",
settings_games_game_files_verifying_files: "Verifying game",
settings_games_game_files_install_files: "Install Game",
settings_games_game_files_installing_files: "Installing",
settings_games_game_files_uninstall_files: "Uninstall Game",
settings_games_game_files_uninstalling_files: "Uninstalling",
settings_games_game_files_process_paused: "Paused",
settings_common_reset: "Reset all changes",
settings_common_reset_confirmation: "Changes have been reset for this game channel",
settings_common_accordion_open_all: "Expand all",
settings_common_accordion_close_all: "Collapse all",
settings_common_back: "Back",
settings_common_saved: "Saved",
settings_download_main_title: "Bandwidth usage",
settings_download_main_content: "Adjust the bandwidth usage of the download to optimize your internet speed",
settings_download_concurrent_title: "Concurrent Download",
settings_download_concurrent_desc: "Adjust the maximum number of simultaneous downloads allowed at once, optimizing your download experience to match your preferences and network capabilities.",
settings_download_speed_title: "Download Speed Limit",
settings_download_speed_desc: "Regulate download speed by setting a cap on the data transfer rate per second for each concurrent download connection.",
settings_application_discover_behavior_title: "Discover Behavior",
settings_application_discover_behavior_description: "The discover is only displayed at the first visit (or by clicking the Discover button in RSI menu). This option will allow you to re-enable Discover on load for testing purpose.",
settings_application_discover_behavior_isDiscoverDone: "isDiscoverDone",
settings_games_launch_command_line: "Additional command line arguments",
settings_games_launch_disclaimer: "This action will apply the next time you\u2019ll launch the game",
settings_games_launch_hostname: "Universe Host",
settings_games_launch_port: "Universe Port",
settings_games_launch_executable: "Executable",
settings_games_launch_launch_options: "Launcher Options"
},
status: {
status_title: "RSI Status",
status_empty: "There is no status available.",
status_last_updated: "Last updated {{time}}",
status_last_updated_empty: "No data available at the moment.",
status_more_information: "More information",
status_major: "Major Outage",
status_partial: "Partial Outage",
status_degraded: "Degraded Performances",
status_maintenance: "Under Maintenance",
status_operational: "Operational"
},
tray: {
tray_website: "Visit website",
tray_report_bug: "Report a bug",
tray_spectrum: "Spectrum",
tray_community_hub: "Community hub",
tray_support: "Support",
tray_mute: "Mute sound",
tray_unmute: "Unmute sound",
tray_logout: "Log out",
tray_quit: "Quit"
}
},
a = {
agreements: {
agreement_fetch_info_error: "Impossible de r\xe9cup\xe9rer l'accord du serveur pour le moment, veuillez patienter une minute et r\xe9essayer.",
agreement_declined: "L'accord a \xe9t\xe9 refus\xe9 "
},
appHeader: {
app_header_menu: "Menu",
app_header_volume: "Volume",
app_header_volume_mute: "D\xe9sactiver le son",
app_header_volume_unmute: "Activer le son",
app_header_account: "Compte",
app_header_account_name: "Nom",
app_header_account_moniker: "@Surnom de la Communaut\xe9",
app_header_menu_get_help: "Obtenir de l'aide",
app_header_menu_spectrum: "Spectrum",
app_header_menu_issue_council: "Issue Council",
app_header_menu_discover: "D\xe9couvrir",
app_header_menu_exit_the_app: "Quitter l'application",
app_header_menu_settings: "param\xe8tres",
app_header_actions_download: "T\xe9l\xe9chargements",
app_header_actions_menu_rsi_account: "Compte RSI",
app_header_actions_menu_log_out: "Se d\xe9connecter",
app_header_actions_menu_rsi_status: "Statut RSI",
app_header_loading: "Entering the verse\u2026"
},
autoUpdate: {
auto_update_dialog_close: "Fermer",
auto_update_dialog_title: "Version de l'application",
auto_update_dialog_sub_title: "Version {{version}}",
auto_update_dialog_no_update_content: "Vous avez d\xe9j\xe0 la derni\xe8re version du Launcher RSI.<0/>Merci d'\xeatre \xe0 jour !",
auto_update_dialog_no_update_action_primary_label: "Continuer",
auto_update_dialog_update_available_content: "Une nouvelle version du Launcher RSI est disponible, vous pouvez l'installer.<0/>L'application se fermera et se relancera une fois l'installation termin\xe9e.",
auto_update_dialog_update_available_action_primary_label: "Installer plus tard",
auto_update_dialog_update_available_action_secondary_label: "Installer et red\xe9marrer",
auto_update_dialog_update_install_failed_content: "La mise \xe0 jour de la nouvelle version a \xe9chou\xe9e, merci de r\xe9essayer ou contacter le <0>support client</0>",
auto_update_dialog_update_install_failed_action_primary_label: "R\xe9essayez l'installation",
auto_update_dialog_update_install_failed_action_secondary_label: "Installer plus tard",
auto_update_dialog_update_quit_game_content: "Vous avez actuellement une session de jeu en cours. Si vous souhaitez continuer et installer la nouvelle version, le jeu sera ferm\xe9 et votre progression risque d'\xeatre perdue",
auto_update_dialog_update_quit_game_action_primary_label: "Quitter le jeu et installer",
auto_update_dialog_update_quit_game_action_secondary_label: "Essayer plus tard",
auto_update_toast_update_installed: "La nouvelle version de l'application a \xe9t\xe9 install\xe9e"
},
contextMenu: {
context_menu_copy: "Copier",
context_menu_paste: "Coller",
context_menu_cut: "Couper",
context_menu_select_all: "Tout selectionner"
},
dialog: {
dialog_warning_logout_title: "Quitter l'application",
dialog_warning_logout_text: "\xcates-vous s\xfbr de vouloir de vous d\xe9connecter?",
dialog_warning_logout_game_running_text: "\xcates-vous s\xfbr de vouloir vous d\xe9connecter lorsque le jeu est en cours d'ex\xe9cution? Les progr\xe8s pourraient \xeatre perdus.",
dialog_warning_logout_confirm: "Quitter",
dialog_warning_logout_error: "Une erreur est apparue lorsque vous avez essay\xe9 de vous d\xe9connecter. Votre session pourrait \xeatre expir\xe9e. Essayez de vous connecter \xe0 nouveau.",
dialog_action_cancel: " Annuler",
dialog_action_confirm: "Confirmer",
dialog_action_acknowledge: "Affirmer",
dialog_action_ok: "OK",
dialog_action_close: "Fermer",
dialog_action_retry: "R\xe9-essayer",
dialog_action_accept: "Accepter",
dialog_action_decline: "Decliner",
dialog_action_verify: "Verify",
dialog_action_install: "Installer le jeu",
dialog_action_relaunch: "Relancer",
dialog_warning_back_launcher: "Retour vers le launcher",
dialog_warning_exit_app_title: "Quitter l'application",
dialog_warning_exit_app_text: "\xcates-vous s\xfbr de vouloir quitter l'application lorsque le jeu est en cours d'ex\xe9cution? Les progr\xe8s pourraient \xeatre perdus.",
dialog_warning_exit_app_checkbox: "Ne plus afficher ce message",
dialog_warning_exit_app_game_running_text: "\xcates-vous s\xfbr de vouloir quitter l'application ?",
dialog_warning_exit_app_confirm: "Quitter l'application",
dialog_warning_uninstall_title: "D\xe9sinstallation {{game}} - {{channel}}",
dialog_warning_uninstall_text: "Voulez-vous d\xe9sinstaller ce jeu de votre ordinateur ? Veuillez not\xe9 que les fichiers du jeu seront supprim\xe9s pour tous les utilisateurs de cette machine.",
dialog_warning_uninstall_userFolder_checkbox: "Garder mon dossier utilisateur (raccourcis clavier et pr\xe9f\xe9rences de param\xe8tres)",
dialog_warning_uninstall_userFolder_checkbox_description: "Position: {{path}}",
dialog_warning_uninstall_confirm: "D\xe9sinstaller le jeu",
dialog_settings_reset_title: "R\xe9initialiser les options",
dialog_settings_reset_content: "\xcates-vous s\xfbr de vouloir r\xe9initialiser vos param\xe8tres de jeu ?",
dialog_settings_reset_button: "R\xe9initialiser les options par d\xe9faut",
dialog_settings_game_not_installed_title: "Le jeu n'est pas install\xe9",
dialog_settings_game_not_installed_content: "Le jeu que vous essayez de v\xe9rifier n'est pas actuellement install\xe9 \xe0 cet emplacement. Veuillez d'abord installer le jeu et r\xe9essayer.",
dialog_cancel_installation_content_keep_files_downloaded: "Garder les fichiers d\xe9j\xe0 t\xe9l\xe9charg\xe9s",
dialog_start_installation_title: "Installation {{game}} - {{channel}}",
dialog_start_installation_content_location: "Le jeu va \xeatre install\xe9 \xe0 l'emplacement suivant:",
dialog_start_installation_content_location_settings: "Vous pouvez changer l'emplacement du jeu dans les param\xe8tres de jeu.",
dialog_start_installation_action_go_to_settings: "Param\xe8tres de Jeu",
dialog_start_installation_action_install: "Installer",
dialog_launch_check_update_available_title: "Mise \xe0 jour du jeu",
dialog_launch_check_update_available_content: "Une nouvelle version de {{game}} - {{channel}} est disponible. S'il vous plait, mettez \xe0 jour votre jeu pour le lancer.",
dialog_discover_title: "Le Launcher a une nouvelle interface utilisateur !",
dialog_discover_content: "Le Launcher RSI a un tout nouveau look ! Nous avons pr\xe9par\xe9 une petite visite pour vous montrer les alentours.",
dialog_discover_start: "Commencer la visite",
dialog_discover_skip: "Passer",
dialog_debug_cache_clear_title: "Vider le cache du Launcher",
dialog_debug_cache_clear_content: "Cette action va vider le cache du Launcher et vous d\xe9connecter, voulez-vous vraiment continuer ?",
dialog_debug_cache_clear_button: "Continuer"
},
discover: {
step_done_label: "Enter Now",
step_menu_title: "Menu de l'application du Launcher",
step_menu_description: "Acc\xe8s rapide aux param\xe8tres et aux ressources utiles telles que le support, Spectrum et le Issue Council.",
step_status_title: "Statut",
step_status_description: "Surveillez l'\xe9tat des services RSI. Si des probl\xe8mes de performance ou des interruptions de service se produisent, vous les verrez ici.",
step_download_title: "Gestion des t\xe9l\xe9chargements",
step_download_description: "Suivez la progression de vos t\xe9l\xe9chargements et mises \xe0 jour de jeux, mettez en pause le t\xe9l\xe9chargement en cours ou acc\xe9dez rapidement aux param\xe8tres de t\xe9l\xe9chargement.",
"step_user-profile_title": "Profil utilisateur",
"step_user-profile_description": "Voyez quel utilisateur est actuellement connect\xe9 et acc\xe9dez rapidement \xe0 la page du compte. Utilisez ce menu pour vous d\xe9connecter si vous devez changer de compte.",
step_last_title: "\xc9volution du Launcher",
step_last_description: "Le Launcher RSI continuera \xe0 \xe9voluer avec le temps. N'h\xe9sitez pas \xe0 nous donner vos commentaires sur le Issue Council. Merci de soutenir le d\xe9veloppement."
},
download: {
download_empty: "Il n'y a pas de t\xe9l\xe9chargment en attente.",
download_phase: "Phase",
download_status: "Status",
download_speed: "Vitesse",
download_left: "Restant",
download_files_left: "Fichiers restant",
download_title: "T\xe9l\xe9chargements",
download_settings: "Param\xe8tres de t\xe9l\xe9chargment",
download_play: "Lecture",
download_pause: "Arret",
download_initializing: "Initialisation\u2026",
download_update_manifest: "T\xe9l\xe9chargement du manifeste mis \xe0 jour",
download_manifest: "T\xe9l\xe9chargement du manifeste",
downloaded_update_manifest: "Mise \xe0 jour du manifeste t\xe9l\xe9charg\xe9",
download_analysing_install: "Analyse de l'installation actuelle",
download_checking_files: "V\xe9rification des fichiers - Cela peut prendre quelques minutes",
download_base_pack: "T\xe9l\xe9chargement du pack de base",
download_updating_game_files: "Mise \xe0 jour des fichiers du jeu",
download_updating_game_content: "Mise \xe0 jour du contenu du jeu",
download_completed: "Complet\xe9",
download_cancelling: "Annulation",
download_resume: "Reprendre",
download_cancel: "Annuler",
download_remove: "Supprimer",
download_error: "Erreur",
download_toast_install_success: "L'installation est termin\xe9e",
download_toast_update_success: "L'update est termin\xe9e",
download_toast_verify_success: "La verification des fichiers est termin\xe9e",
download_toast_install_cancel_success: "Le t\xe9l\xe9chargement a \xe9t\xe9 annul\xe9",
download_toast_uninstall_success: "{{game}} - {{channel}} a \xe9t\xe9 d\xe9sinstall\xe9",
download_toast_uninstall_fail: "{{game}} - {{channel}} n'a pas pu \xeatre d\xe9sinstall\xe9",
download_type_install: "Installation",
download_type_update: "Mise \xe0 jour",
download_type_verify: "V\xe9rification"
},
errors: {
error_game_package_missing_title: "Il manque un package de jeu",
error_game_package_missing_subtitle: "Vous devez acheter un package de jeu pour vous connecter et acc\xe9der au jeu, visitez <0>Jouer maintenant</0>",
error_game_package_missing_retry: "R\xe9essayez de me connecter",
error_game_package_missing_support: "Assistance client",
error_internal_error: "Erreur interne",
error_not_authenticated: "Vous n'\xeates pas authentifi\xe9",
error_invalid_claims: "R\xe9clamations invalides",
error_authentication_mfa: "L'authentification n\xe9cessite mfa",
"error_sign-in_failed": "La connexion a \xe9chou\xe9. Vous avez peut-\xeatre saisi de mauvaises informations d'identification.",
error_sign_in_not_authorized: "Vous n'\xeates pas autoris\xe9 \xe0 vous connecter.",
error_captcha_invalid: "Le captcha n'est pas valide",
error_session_expired: "Votre session a expir\xe9. Veuillez confirmer \xe0 nouveau votre mot de passe.",
error_wrong_credentials: "La connexion a \xe9chou\xe9. Vous avez peut-\xeatre saisi des informations d'identification erron\xe9es, ou le compte n'existe pas, ou n'a pas \xe9t\xe9 activ\xe9. (1032)",
error_max_login_attempt: "Nombre maximum de tentatives de connexion \xe9chou\xe9es d\xe9pass\xe9. (1034)",
error_wrong_mfa_code: "Le code n'est pas valide ou est d\xe9j\xe0 utilis\xe9 (1037)",
error_captcha_required: "La connexion a \xe9chou\xe9. Vous avez peut-\xeatre saisi de mauvaises informations d'identification.",
error_installer_basepack_invalid_title: "Basepack - Fichiers Invalides",
error_installer_basepack_invalid_content: "Quelque chose s'est mal pass\xe9 lors du t\xe9l\xe9chargement du jeu, veuillez r\xe9essayer. Code d'erreur\xa0: {{ code }}",
error_installer_disc_full_title: "Espace disque insuffisant",
error_installer_disc_full_content: "Votre disque dur ne dispose pas de l'espace disponible requis. Lib\xe9rez de l'espace ou d\xe9placez votre dossier biblioth\xe8que vers un disque plus grand. Code d'erreur\xa0: {{ code }}",
error_installer_permissions_title: "Erreur d'autorisation du syst\xe8me de fichiers",
error_installer_permissions_content: "Le patcher a rencontr\xe9 un probl\xe8me d'autorisations lors de l'\xe9criture sur le disque. Veuillez v\xe9rifier les autorisations de votre dossier de biblioth\xe8que et r\xe9essayer. Code d'erreur\xa0: {{ code }}",
error_installer_permissions_action: "Corriger les autorisations",
error_installer_file_in_use_title: "Fichier en cours d'utilisation",
error_installer_file_in_use_content: "Les fichiers du jeu sont en cours d'utilisation. Veuillez fermer le jeu et le lanceur et r\xe9essayer. Code d'erreur\xa0: {{ code }}",
error_installer_pk4_corrupted_title: "Les fichiers du jeu sont corrompus",
error_installer_pk4_corrupted_content: "Vos fichiers de jeu sont corrompus et irr\xe9cup\xe9rables. Code d'erreur\xa0: {{ code }}",
error_installer_retrieve_manifest_title: "Impossible de r\xe9cup\xe9rer le manifeste de mise \xe0 jour",
error_installer_retrieve_manifest_content: "Une erreur r\xe9seau s'est produite lors de la r\xe9cup\xe9ration du manifeste de mise \xe0 jour. Veuillez v\xe9rifier votre connexion Internet, red\xe9marrer le lanceur et r\xe9essayer. Code d'erreur\xa0: {{ code }}",
error_installer_unknown_network_title: "Erreur r\xe9seau",
error_installer_unknown_network_content: "Veuillez v\xe9rifier votre acc\xe8s r\xe9seau et r\xe9essayer. Erreur r\xe9seau inconnue. Code d'erreur\xa0: {{ code }}",
error_installer_base_p4k_corrupted_title: "Erreur de v\xe9rification du pack de base",
error_installer_base_p4k_corrupted_content: "\xc9chec de la v\xe9rification du Basepack. Veuillez r\xe9essayer ou <0>signaler un bug</0> si le probl\xe8me persiste. Assurez-vous d'inclure vos <1>journaux.</1>",
error_installer_init_download_title: "T\xe9l\xe9chargement initial - Basepack - Erreur",
error_installer_patcher_title: "Erreur de Data Patcher",
error_installer_title: "Erreur de l'installateur",
error_installer_patcher_generic_content: "Une erreur s'est produite lors du processus d'installation. Trouvez plus d'information dans la <0>base de connaissances</0>. Veuillez <1>signaler un bug</1> si le probl\xe8me persiste. Assurez-vous d'inclure vos <2>journaux</2>. Code d'erreur : {{ code }}",
error_installer_generic_content: "Une erreur s'est produite lors du processus d'installation. Veuillez <0>signaler un bug</0> si le probl\xe8me persiste. Assurez-vous d'inclure vos <1>journaux</1>. Code d'erreur : {{ code }}",
error_generic_title: "Erreur du lanceur",
error_generic_content: "Quelque chose s'est mal pass\xe9. Veuillez<0>signaler un bug</0> si le probl\xe8me persiste. Assurez-vous d'inclure vos <1>journaux.</1> Code d'erreur\xa0: {{ code } }",
error_os_requirements_title: "Exigences minimales non remplies",
error_os_requirements_text: "Votre ordinateur ne r\xe9pond pas \xe0 la <0>configuration minimale</0> pour ex\xe9cuter {{ game }}.",
error_cpu_requirements_title: "Mat\xe9riel non pris en charge d\xe9tect\xe9",
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</0> et r\xe9essayer. Code d'erreur\xa0: {{ code }}",
error_launch_game_title: "{{ game }} a cess\xe9 de fonctionner de mani\xe8re inattendue",
error_launch_game_content: "Essayez de relancer le jeu. Si ce probl\xe8me persiste, veuillez v\xe9rifier vos fichiers d'installation.",
error_launch_unknown_title: "Lanceur - Erreur inconnue",
error_launch_unknown_content: "Quelque chose s'est mal pass\xe9 lors du lancement. Veuillez v\xe9rifier les fichiers du jeu.<3/> Veuillez <0>signaler un bug</0> si le probl\xe8me persiste. Assurez-vous d'inclure vos <1>journaux.</1 ><3/>Code d'erreur\xa0: {{ code }}",
error_launch_no_game_files_title: "Lancement - Fichiers de jeu introuvables",
error_launch_no_game_files_content: "Quelque chose s'est mal pass\xe9 lors du lancement du jeu. Impossible de r\xe9cup\xe9rer les fichiers du jeu. Veuillez v\xe9rifier les fichiers du jeu. Code d'erreur\xa0: {{ code }}",
error_launch_EAC_title: "Lancement - Erreur EAC",
error_launch_EAC_content: "Quelque chose s'est mal pass\xe9 au lancement. EAC a d\xe9tect\xe9 des fichiers corrompus. Veuillez v\xe9rifier les fichiers du jeu. Code d'erreur\xa0: {{ code }}",
error_launch_game_crash_title: "Erreur de jeu",
error_launch_game_crash_content: "Quelque chose s'est mal pass\xe9 pendant le jeu. Veuillez <0>signaler un bug</0> si le probl\xe8me persiste. Assurez-vous d'inclure vos <1>journaux.</1> Code d'erreur\xa0: {{ code }}",
error_launch_game_running_title: "Le jeu est d\xe9j\xe0 en cours",
error_launch_game_running_content: "Le jeu est d\xe9j\xe0 en cours d'ex\xe9cution",
error_launch_check_update_unavailable_title: "V\xe9rification de la version a \xe9chou\xe9",
error_launch_check_update_unavailable_content: "Quelque chose s'est mal pass\xe9 pendant la v\xe9rification de la version du jeu. Veuillez <0>signaler un bug</0> si le probl\xe8me persiste. Assurez-vous d'inclure vos <1>journaux.</1> Code d'erreur\xa0: {{ code }}",
error_api_denied_request_title: "Demande API refus\xe9e",
error_api_denied_request_content: "Quelque chose s'est mal pass\xe9. Il semble que votre session a expir\xe9 ou a \xe9t\xe9 refus\xe9e. Vous avez \xe9t\xe9 d\xe9connect\xe9. Veuillez r\xe9essayer.",
error_api_validation_failed: "La validation de la requ\xeate API a \xe9chou\xe9",
error_api_too_many_requests_title: "Trop de requ\xeates",
error_api_too_many_requests_content: "L'API est surcharg\xe9e. Veuillez r\xe9essayer dans quelques minutes.",
error_api_unavailable: "L'API n'est pas disponible. Veuillez r\xe9essayer dans quelques minutes.",
error_api_internal_server_error: "Nos serveurs rencontrent des difficult\xe9s. Veuillez r\xe9essayer dans quelques minutes.",
error_api_auth_expired_content: "Votre session a expir\xe9. Veuillez confirmer \xe0 nouveau votre mot de passe.",
error_api_auth_expired_title: "Session expir\xe9e",
error_api_platform_auth_title: "Erreur d'authentification de la plateforme",
error_api_platform_auth_content: "Impossible de s'authentifier sur la plateforme {{ id }}\xa0: {{ error }}",
error_network_issue_title: "Probl\xe8me de r\xe9seau",
error_network_issue_content: "La connexion r\xe9seau ne peut pas \xeatre \xe9tablie. Veuillez v\xe9rifier l'\xe9tat de votre r\xe9seau et tenter de vous connecter \xe0 nouveau."
},
form: {
sign_in_title: "Se connecter au RSI Launcher",
sign_in_email: "E-mail",
sign_in_password: "Mot de passe",
sign_in_remember_me: "Se souvenir de moi",
sign_in_forgot_password: "Mot de passe oubli\xe9",
sign_in_captcha: "Captcha",
sign_in_captcha_refresh: "Actualiser",
sign_in_captcha_help: "Entrez le texte que vous voyez dans l'image ci-dessus.",
sign_in_no_account: "Pas de compte?",
sign_in_create_account: "Cr\xe9er un compte.",
sign_in_submit: "Connexion",
sign_in_loading: "Connexion en cours\u2026",
sign_in_mfa_title: "Nous devons v\xe9rifier votre identit\xe9",
sign_in_mfa_subtitle: "La protection de votre compte est importante pour nous. Nous avons envoy\xe9 un code d'authentification sur la bo\xeete mail attach\xe9e \xe0 votre compte.",
sign_in_mfa_code_label: "Code d'authentification",
sign_in_mfa_code_help: "Entrez le code envoy\xe9 \xe0 votre email ou depuis votre authentificateur. Vous pouvez \xe9galement utiliser un code de secours.",
sign_in_mfa_device_label: "Nom de l'appareil",
sign_in_mfa_device_help: "Entrez un nom pour votre appareil actuel.",
sign_in_mfa_duration_label: "Se fier \xe0 cet appareil pendant",
sign_in_mfa_duration_help: "Autorisez cet appareil \xe0 ignorer MFA pendant une dur\xe9e s\xe9lectionn\xe9e. S'il s'agit d'un appareil partag\xe9 ou public, nous recommandons \xab cette session uniquement \xbb.",
sign_in_mfa_session: "Cette session uniquement",
sign_in_mfa_day: "Un jour",
sign_in_mfa_week: "Une semaine",
sign_in_mfa_month: "Un mois",
sign_in_mfa_year: "Une ann\xe9e",
sign_in_mfa_back_sign_in: "Retour",
sign_in_mfa_submit: "Authentication",
error_field_is_required: "Ce champs est obligatoire",
error_email_field_is_required: "Une adresse email est obligatoire",
error_password_field_is_required: "Un mot de passe est obligatoire",
error_code_required: "Le code est obligatoire",
error_device_required: "Le nom de l'appareil est obligatoire",
error_device_min_length: "Le nom de l'appareil doit etre d'au moins 3 caracteres",
text_field_show_password: "Afficher le mot de passe",
text_field_hide_password: "Masquer le mot de passe"
},
gamePage: {
game_page_title: "Entrez dans l\u2019univers de<0/><1>{{name}}</1>",
game_page_nav_title_one: "Jeu",
game_page_nav_title_other: "Jeux",
game_page_game_is_running: "Le jeu tourne",
game_page_installing: "Installation\u2026",
game_page_installing_paused: "Installation en pause",
game_page_updating: "Mise a jour\u2026",
game_page_updating_paused: "Mise \xe0 jour en pause",
game_page_verifying: "Verification\u2026",
game_page_verifying_paused: "V\xe9rification en pause",
game_page_update_game: "Mise a jour du jeu",
game_page_launch_game: "Lancer le jeu",
game_page_install_game: "Installer le jeu",
game_page_waiting_in_queue: "En attente dans la queue",
game_page_channels: "Environnement de jeu",
game_page_settings: "Param\xe8tres de jeu",
game_page_settings_verify: "V\xe9rification des fichiers de jeu",
game_page_settings_uninstall: "D\xe9sinstallation de jeu",
game_page_update_game_is_available: "Lire au sujet des fonctionnalit\xe9s de {{version}} , <0>voir patch notes</0>",
game_page_status_under_maintenance: "Nous avons une maintenance continue sur un de nos services.",
game_page_status_issue: "Nous travaillons \xe0 r\xe9soudre un probl\xe8me. Entrez \xe0 vos risques et p\xe9rils.",
game_page_status_more_information: "Pour plus d'informations, visitez le <0>page d'\xe9tat</0>.",
game_page_cards_empty: "Aucun contenu disponible",
game_page_cards_loading: "Chargement du contenu.",
game_page_cards_tab_community: "Communit\xe9",
"game_page_cards_tab_comm-links": "Communiqu\xe9s",
"game_page_cards_tab_new-citizens": "Nouveaux Citoyens",
"game_page_cards_tab_patch-notes": "Notes de Patch",
game_page_card_button_label: "En savoir plus"
},
settingsPage: {
settings_about_title: "\xc0 propos",
settings_application_title: "Application",
settings_games_title: "Jeux",
settings_download_title: "T\xe9l\xe9chargement",
settings_nav_items_application: "Application",
settings_nav_items_accessibility: "Accessibilit\xe9",
settings_dev_title: "Dev / QA",
settings_nav_items_games: "Jeux",
settings_nav_items_about: "\xc0 propos",
settings_nav_items_download: "T\xe9l\xe9chargement",
settings_nav_items_dev: "DEV \ud83d\ude80",
settings_about_logo_alt: "Cloud Imperium\xa9",
settings_about_copyright: "\xa9 2012 - {{year}} Cloud Imperium Rights LLC et Cloud Imperium Rights Ltd",
settings_about_launcher_version: "Version du Launcher :",
settings_application_window_behavior_title: "Comportement de la fen\xeatre",
settings_application_window_behavior_description: "Cette option vous permettra de quitter l'application lorsque la fen\xeatre sera ferm\xe9e.",
settings_application_window_behavior_close_to_quit: "Activer la fermeture proche",
settings_application_debug_tools_title: "Outils de d\xe9bogage du Launcher",
settings_application_debug_tools_description: "Si vous rencontrez des probl\xe8mes avec le Launcher, vider le cache peut r\xe9soudre le probl\xe8me. Vous pourriez \xe9galement avoir besoin de localiser votre fichier de logs, cela peut \xeatre utile pour signaler un bug sur le <iclink>Issue Council</iclink> du Launcher.",
settings_application_debug_tools_label: "Debug tools",
settings_application_debug_tools_button_clear_cache: "Vider le cache du Launcher",
settings_application_debug_tools_button_get_logs: "Obtenir les logs",
settings_application_debug_tools_button_cache_clear_success: "Cache Cleared",
settings_accessibility_title: "Accessibilit\xe9s",
settings_accessibility_reduce_motion_title: "R\xe9duire les animations",
settings_accessibility_reduce_motion_description: "R\xe9duire le nombre d'animations dans le lanceur, telles que les vid\xe9os d'arri\xe8re-plan, les animations d'ic\xf4nes et les transitions de page.",
settings_accessibility_reduce_motion_system_sync_title: "Synchroniser avec le syst\xe8me d'exploitation",
settings_accessibility_reduce_motion_system_sync_description: "Suivre les pr\xe9f\xe9rences de r\xe9duction des animations du syst\xe8me d'exploitation",
settings_accessibility_reduce_motion_background_video_toggle_title: "D\xe9sactiver la vid\xe9o d'arri\xe8re-plan",
settings_accessibility_reduce_motion_background_video_toggle_description: "Remplacer la boucle vid\xe9o par une image statique",
settings_accessibility_reduce_motion_unessential_animation_toggle_title: "D\xe9sactiver les animations non essentielles",
settings_accessibility_reduce_motion_unessential_animation_toggle_description: "Ic\xf4nes d\xe9coratives, logos, interactions de la souris...",
settings_accessibility_reduce_motion_transition_effects_toggle_title: "D\xe9sactiver les effets de transition",
settings_accessibility_reduce_motion_transition_effects_toggle_description: "Animations entre les sections (pages, onglets...)",
settings_accessibility_reduce_motion_information_enabled: "La r\xe9duction des animations du syst\xe8me d'exploitation est activ\xe9e.",
settings_accessibility_reduce_motion_information_disabled: "La r\xe9duction des animations du syst\xe8me d'exploitation est d\xe9sactiv\xe9e.",
settings_accessibility_reduce_motion_information_restart_link_label: "Vos modifications seront appliqu\xe9es au prochain lancement. <iclink>Red\xe9marrer maintenant</iclink>.",
settings_games_installation_title: "Emplacement du jeu",
settings_games_installation_description: "Il s'agit du chemin de l'emplacement de votre dossier de jeu.",
settings_games_installation_information: "Si votre jeu est d\xe9j\xe0 install\xe9 \xe0 un autre emplacement, s\xe9lectionnez-le ici, puis cliquez sur V\xe9rifier.",
settings_games_installation_path_title: "Chemin d'installation complet:",
settings_games_installation_library_folder_success: "Chemin mis \xe0 jour",
settings_games_installation_library_folder_change: "Modifier",
settings_games_installation_library_folder_label: "Emplacement de la biblioth\xe8que RSI",
settings_games_game_files_title: "Fichiers du jeu",
settings_games_game_files_description: "V\xe9rifiez si les fichiers du jeu sont correctement install\xe9s. Si le jeu n'est pas encore install\xe9, cela installera le jeu.",
settings_games_game_files_verify_files: "V\xe9rifier",
settings_games_game_files_verifying_files: "V\xe9rification en cours",
settings_games_game_files_install_files: "Installer",
settings_games_game_files_installing_files: "Installation en cours",
settings_games_game_files_uninstall_files: "D\xe9sinstaller",
settings_games_game_files_uninstalling_files: "D\xe9sinstallation en cours",
settings_games_game_files_process_paused: "En pause",
settings_common_reset: "R\xe9initialiser toutes les modifications",
settings_common_reset_confirmation: "Les modifications ont \xe9t\xe9 r\xe9initialis\xe9es pour cette cha\xeene de jeu",
settings_common_accordion_open_all: "Tout ouvrir",
settings_common_accordion_close_all: "Tout fermer",
settings_common_back: "Retour",
settings_common_saved: "Enregistr\xe9",
settings_download_main_title: "Utilisation de la bande passante",
settings_download_main_content: "Ajustez l'utilisation de la bande passante du t\xe9l\xe9chargement pour optimiser votre vitesse Internet",
settings_download_concurrent_title: "T\xe9l\xe9chargement simultan\xe9",
settings_download_concurrent_desc: "Ajustez le nombre maximum de t\xe9l\xe9chargements simultan\xe9s autoris\xe9s \xe0 la fois, en optimisant votre exp\xe9rience de t\xe9l\xe9chargement en fonction de vos pr\xe9f\xe9rences et des capacit\xe9s de votre r\xe9seau.",
settings_download_speed_title: "Limitation de vitesse de t\xe9l\xe9chargement",
settings_download_speed_desc: "R\xe9gulez la vitesse de t\xe9l\xe9chargement en fixant un plafond sur le taux de transfert de donn\xe9es par seconde pour chaque connexion de t\xe9l\xe9chargement simultan\xe9e.",
settings_games_launch_command_line: "Arguments de ligne de commande suppl\xe9mentaires",
settings_games_launch_disclaimer: "Cette action s'appliquera la prochaine fois que vous lancerez le jeu",
settings_games_launch_hostname: "Universe Host",
settings_games_launch_port: "Universe Port",
settings_games_launch_executable: "Executable",
settings_games_launch_launch_options: "Launcher Options"
},
status: {
status_title: "RSI Status",
status_empty: "Aucun statut disponible.",
status_last_updated: "Date de derni\xe8re mise \xe0 jour {{time}}",
status_last_updated_empty: "Aucune donn\xe9e disponible pour le moment.",
status_more_information: "Plus d'information",
status_major: "Panne majeure",
status_partial: "Panne partielle",
status_degraded: "Performances d\xe9grad\xe9es",
status_maintenance: "En maintenance",
status_operational: "Op\xe9rationnel"
},
tray: {
tray_website: "Visiter le site",
tray_report_bug: "Signaler un bug",
tray_spectrum: "Spectrum",
tray_community_hub: "Community hub",
tray_support: "Obtenir de l'aide",
tray_mute: "D\xe9sactiver le son",
tray_unmute: "Activer le son",
tray_logout: "Se d\xe9connecter",
tray_quit: "Quitter l'application"
}
},
SC_TOOLBOX_LOCALIZATION_ZHCN_MAP = {
agreements: {
agreement_fetch_info_error: "暂时无法从服务器获取协议,请稍等一分钟后再试。",
agreement_declined: "协议被拒绝"
},
appHeader: {
app_header_menu: "菜单",
app_header_volume: "音量",
app_header_volume_mute: "静音",
app_header_volume_unmute: "取消静音",
app_header_account: "账户",
app_header_account_name: "用户名",
app_header_account_moniker: "@社区昵称",
app_header_menu_get_help: "获取帮助",
app_header_menu_spectrum: "光谱",
app_header_menu_issue_council: "问题理事会",
app_header_menu_discover: "探索启动器",
app_header_menu_exit_the_app: "退出程序",
app_header_menu_settings: "设置",
app_header_actions_download: "下载",
app_header_actions_menu_rsi_status: "RSI 状态",
app_header_actions_menu_rsi_account: "RSI 账户",
app_header_actions_menu_log_out: "登出",
app_header_loading: "正在进入宇宙…"
},
autoUpdate: {
auto_update_dialog_close: "关闭",
auto_update_dialog_title: "有可用的更新",
auto_update_dialog_sub_title: "版本{{version}}",
auto_update_dialog_no_update_content: "您当前正在运行的就是 RSI 启动器的最新版本。<0/>感谢您保持更新!",
auto_update_dialog_no_update_action_primary_label: "继续",
auto_update_dialog_update_available_content: "有新的 RSI 启动器版本可安装。程序将会关闭并重新启动。",
auto_update_dialog_update_available_action_primary_label: "安装并重新启动",
auto_update_dialog_update_available_action_secondary_label: "稍后安装",
auto_update_dialog_update_install_failed_content: "无法更新至最新版本的启动器,请重新安装或联系<0>客户支持</0>",
auto_update_dialog_update_install_failed_action_primary_label: "重新安装",
auto_update_dialog_update_install_failed_action_secondary_label: "稍后安装",
auto_update_dialog_update_quit_game_content: "游戏会话当前正在运行。如果你想要安装新版本启动器,将会关闭当前游戏会话,当前游戏进度可能会丢失",
auto_update_dialog_update_quit_game_action_primary_label: "退出游戏并安装",
auto_update_dialog_update_quit_game_action_secondary_label: "稍后再试",
auto_update_toast_update_installed: "成功安装新版本启动器"
},
contextMenu: {
context_menu_copy: "复制",
context_menu_paste: "粘贴",
context_menu_cut: "剪切",
context_menu_select_all: "全选"
},
dialog: {
dialog_warning_logout_title: "登出",
dialog_warning_logout_text: "你确定要登出账户吗?",
dialog_warning_logout_game_running_text: "你确定要在游戏运行时登出账户吗?当前游戏进度可能会丢失。",
dialog_warning_logout_confirm: "登出",
dialog_warning_logout_error: "登出时发生错误。你的会话可能已经过期。请尝试重新登录。",
dialog_action_cancel: "取消",
dialog_action_confirm: "确认",
dialog_action_acknowledge: "我已知悉",
dialog_action_ok: "OK",
dialog_action_retry: "再次尝试",
dialog_action_close: "关闭",
dialog_action_accept: "同意",
dialog_action_decline: "拒绝",
dialog_action_verify: "验证文件",
dialog_action_install: "安装游戏",
dialog_action_relaunch: "重新启动",
dialog_action_discard: "放弃",
dialog_action_cancel_download: "取消下载",
dialog_warning_back_launcher: "返回启动器",
dialog_warning_exit_app_title: "退出程序",
dialog_warning_exit_app_text: "你确定要退出应用吗?",
dialog_warning_exit_app_checkbox: "不再显示",
dialog_warning_exit_app_game_running_text: "你确定要在游戏运行时退出应用吗?",
dialog_warning_exit_app_confirm: "退出程序",
dialog_warning_uninstall_title: "卸载 {{game}} - {{channel}}",
dialog_warning_uninstall_text: "你确定要从你的电脑卸载该游戏吗?请注意,你的电脑上的所有用户都会卸载该游戏文件。",
dialog_warning_uninstall_userFolder_checkbox: "保留用户文件夹(按键绑定和设置偏好)",
dialog_warning_uninstall_userFolder_checkbox_description: "目录位置:{{path}}",
dialog_warning_uninstall_confirm: "卸载游戏",
dialog_settings_reset_title: "重置设置",
dialog_settings_reset_content: "你确定要重置你的游戏设置吗?",
dialog_settings_reset_button: "重置至默认",
dialog_settings_game_not_installed_title: "游戏未安装",
dialog_settings_game_not_installed_content: "当前你尝试验证文件的位置并未安装游戏。请先安装游戏后重试。",
dialog_cancel_installation_title: "取消下载",
dialog_cancel_installation_content: "你确定要取消下载{{info}}吗?",
dialog_cancel_installation_content_keep_files_downloaded: "保留已下载的文件",
dialog_start_installation_title: "安装 {{game}} - {{channel}}",
dialog_start_installation_content_location: "游戏将安装在以下位置",
dialog_start_installation_content_location_settings: "你可以在游戏设置中更改游戏位置",
dialog_start_installation_action_go_to_settings: "游戏设置",
dialog_start_installation_action_install: "安装",
dialog_launch_check_update_available_title: "游戏版本更新",
dialog_launch_check_update_available_content: "一个新的游戏版本 {{game}} - {{channel}} 可用。请更新后再进入游戏。",
dialog_discover_title: "启动器更新了 UI ",
dialog_discover_content: "RSI 启动器的外观焕然一新!我准备了一个小旅程带你去看看有什么变化。",
dialog_discover_start: "开启旅程",
dialog_discover_skip: "跳过",
dialog_debug_cache_clear_title: "清除启动器缓存",
dialog_debug_cache_clear_content: "此操作将清除启动器缓存并退出登录,你确定要继续吗?",
dialog_debug_cache_clear_button: "继续"
},
discover: {
step_done_label: "立即进入",
step_menu_title: "启动器应用菜单",
step_menu_description: "在此菜单中可快速访设置和其他有用的资源,例如:支持、光谱和问题理事会。",
step_status_title: "状态",
step_status_description: "在此可查看 RSI 各项服务的状态。如果有任何性能问题或服务中断,你可以在此处看到。",
step_download_title: "下载管理",
step_download_description: "查看下载/更新进度、暂停当前下载或快速访问下载设置。",
"step_user-profile_title": "用户档案",
"step_user-profile_description": "查看当前登录的账户。使用此菜单可快速访问你的 RSI 账户界面。如果你需要切换账号,可在此登出。",
step_last_title: "启动器发展",
step_last_description: "RSI 启动器会随着时间的推移不断发展。请随时在问题理事会向我们反馈问题。感谢你对我们开发的支持。"
},
download: {
download_empty: "下载队列中没有下载任务。",
download_phase: "阶段",
download_status: "状态",
download_speed: "速度",
download_left: "剩余",
download_files_left: "剩余文件",
download_title: "下载任务",
download_settings: "下载设置",
download_play: "开始",
download_pause: "暂停",
download_initializing: "正在初始化…",
download_update_manifest: "正在下载更新文件清单",
download_manifest: "正在下载文件清单",
downloaded_update_manifest: "更新文件清单已下载",
download_analysing_install: "正在验证安装文件",
download_checking_files: "正在验证文件 - 需要几分钟",
download_base_pack: "正在下载基础文件包",
download_updating_game_files: "正在更新游戏文件",
download_updating_game_content: "正在更新游戏内容",
download_completed: "完成",
download_waiting: "正在排队",
download_cancelling: "正在取消",
download_resume: "继续",
download_cancel: "取消",
download_remove: "移除",
download_error: "错误",
download_toast_install_success: "安装已完成",
download_toast_update_success: "更新已完成",
download_toast_verify_success: "文件验证已完成",
download_toast_install_cancel_success: "下载已取消",
download_toast_uninstall_success: "{{game}} - {{channel}} 已卸载",
download_toast_uninstall_fail: "{{game}} - {{channel}} 无法卸载",
download_type_install: "安装",
download_type_update: "更新",
download_type_verify: "验证文件"
},
errors: {
error_game_package_missing_title: "没有游戏资格包",
error_game_package_missing_subtitle: "你需要购买一个游戏资格包以登录访问游戏。",
error_game_package_missing_retry: "重试登录",
error_game_package_missing_support: "客户支持",
error_internal_error: "内部错误",
error_not_authenticated: "你未通过身份验证",
error_invalid_claims: "无效声明",
error_authentication_mfa: "身份验证需要mfa",
error_sign_in_failed: "登入失败。你可能输入了错误的凭证。",
error_sign_in_not_authorized: "你没有登入权限。",
error_captcha_invalid: "验证码无效",
error_session_expired: "你的会话已过期。请再次确认你的密码。",
error_wrong_credentials: "你可能输入了错误的凭证、账户不存在或账户未激活(1032)",
error_max_login_attempt: "已超过登入失败的最大次数。(1034)",
error_wrong_mfa_code: "双重验证失败。你可能输入了错误的或过期的验证码(1037)",
error_captcha_required: "登入失败。你可能输入了错误的凭证。",
error_installer_basepack_invalid_title: "基础文件包 - 文件无效",
error_installer_basepack_invalid_content: "下载游戏时出现错误,请重试。错误代码:{{code}}",
error_installer_disc_full_title: "磁盘空间不足",
error_installer_disc_full_content: "你的磁盘没有足够的可用空间。请清理出空间或将目录移动至空间更大的磁盘。错误代码:{{code}}",
error_installer_permissions_title: "文件系统权限错误",
error_installer_permissions_content: "修补程序在写入时遇到权限问题。请检查目录权限并重试。错误代码:{{code}}",
error_installer_permissions_action: "修复权限",
error_installer_file_in_use_title: "文件被占用",
error_installer_file_in_use_content: "游戏文件正在被占用。请关闭你打开的游戏文件后重试。错误代码:{{code}}",
error_installer_pk4_corrupted_title: "游戏文件已损坏",
error_installer_pk4_corrupted_content: "你的游戏文件已损坏且无法恢复。错误代码:{{code}}",
error_installer_retrieve_manifest_title: "无法获取更新文件清单",
error_installer_retrieve_manifest_content: "获取更新文件清单时发生网络错误。请检查你的网络连接-并重启启动器后重试。错误代码:{{code}}",
error_installer_unknown_network_title: "未知网络错误",
error_installer_unknown_network_content: "请检查你的网络并重试。错误代码:{{code}}",
error_installer_base_p4k_corrupted_title: "基础文件包验证错误",
error_installer_base_p4k_corrupted_content: "基础文件包验证失败,请重试。如果问题依然存在,请<0>汇报漏洞</0>。别忘了附上你的<1>日志文件。</1>",
error_installer_init_download_title: "下载初始化 - 基础文件包 - 错误",
error_installer_patcher_title: "数据修补程序错误",
error_installer_title: "安装程序错误",
error_installer_patcher_generic_content: "安装时出现错误。可在<0>知识库</0>中查阅更多相关信息。如果问题依然存在,请<1>汇报漏洞</1>。请同时附上你的<2>日志文件</2>。错误代码:{{code}}",
error_installer_generic_content: "安装时出现错误。如果问题依然存在,请<0>汇报漏洞</0>。请同时附上你的<1>日志文件</1>。错误代码:{{code}}",
error_generic_title: "启动器错误",
error_generic_content: "出现错误。如果问题依然存在,请<0>汇报漏洞</0>。请同时附上你的<1>日志文件</1>。错误代码:{{code}}",
error_os_requirements_title: "未达到最低配置要求",
error_os_requirements_text: "你的电脑未达到运行 {{ game }} 的<0>最低配置要求</0>",
error_cpu_requirements_title: "检测到不支持的硬件",
error_cpu_requirements_text: "游戏需要一个支持 AVX 指令集的 CPU 才能运行。",
error_launch_account_not_found_title: "复制你的账户到 PTU ",
error_launch_account_not_found_content: "想要游玩公共测试宇宙PTU你需要复制账户到 PTU。请按照以下步骤<0>这里</0>并重试。错误代码:{{code}}",
error_launch_game_title: "{{game}} 意外停止运行",
error_launch_game_content: "尝试重新启动游戏。如果问题依然存在,请验证你的安装文件。",
error_launch_unknown_title: "启动器 - 未知错误",
error_launch_unknown_content: "启动游戏时出现错误。请验证游戏文件完整性。<2></2> 如果问题依然存在,请<0>汇报漏洞</0>。请同时附上你的<1>日志文件</1>。错误代码:{{code}}",
error_launch_no_game_files_title: "启动器 - 未找到游戏文件",
error_launch_no_game_files_content: "启动游戏时出现错误。无法检索到游戏文件。请验证游戏文件完整性。错误代码:{{code}}",
error_launch_EAC_title: "启动器 - EAC 错误",
error_launch_EAC_content: "启动游戏时出现错误。EAC 检测到文件损坏。请验证游戏文件完整性。错误代码:{{code}}",
error_launch_game_crash_title: "游戏错误",
error_launch_game_crash_content: "游戏运行时出现错误。如果问题依然存在,请<0>汇报漏洞</0>。请同时附上你的<1>日志文件</1>。错误代码:{{code}}",
error_launch_game_running_title: "游戏正在运行",
error_launch_game_running_content: "游戏已经处于运行状态",
error_launch_check_update_unavailable_title: "检查游戏版本失败",
error_launch_check_update_unavailable_content: "检查游戏版本时出现错误。如果问题依然存在,请<0>汇报漏洞</0>。请同时附上你的<1>日志文件</1>。错误代码:{{code}}",
error_api_denied_request_title: "API 拒绝请求",
error_api_denied_request_content: "出现错误。你的会话似乎已过期或被拒绝。你已登出,请重试。",
error_api_validation_failed: "API 请求验证失败",
error_api_too_many_requests_title: "请求过多",
error_api_too_many_requests_content: "API 当前过载。请稍等几分钟后重试。",
error_api_unavailable: "API 不可用。请稍等几分钟后重试。",
error_api_internal_server_error: "我们的服务器遇到困难。请稍等几分钟后重试。",
error_api_auth_expired_content: "你的会话已过期。请再次确认你的密码。",
error_api_auth_expired_title: "会话已过期",
error_api_platform_auth_title: "平台验证错误",
error_api_platform_auth_content: "无法在 {{id}} 平台进行验证 {{error}}",
error_network_issue_title: "网络问题",
error_network_issue_content: "无法建立网络连接。请检查你的网络状态后尝试重新连接。"
},
form: {
sign_in_title: "登入 RSI 启动器",
sign_in_email: "邮箱",
sign_in_password: "密码",
sign_in_remember_me: "记住密码",
sign_in_forgot_password: "忘记密码?",
sign_in_captcha: "验证码",
sign_in_captcha_refresh: "刷新",
sign_in_captcha_help: "输入上方图像中的文本。",
sign_in_no_account: "没有账户?",
sign_in_create_account: "创建一个!",
sign_in_submit: "登入",
sign_in_loading: "正在登入…",
sign_in_mfa_title: "我们需要验证你的身份",
sign_in_mfa_subtitle: "保护你的账户对于我们来说是非常重要的。我们向你账户绑定的邮箱发送了验证码。",
sign_in_mfa_code_label: "验证码",
sign_in_mfa_code_help: "输入发送到你的邮箱的代码或验证器中的代码。或者使用备用代码。",
sign_in_mfa_device_label: "设备名称",
sign_in_mfa_device_help: "为你当前设备输入一个名称。",
sign_in_mfa_duration_label: "信任这个设备",
sign_in_mfa_duration_help: "允许设备在选定的时间内跳过MFA验证。如果这是一个共享或公共设备我们建议你选择“仅当前会话”。",
sign_in_mfa_session: "仅当前会话",
sign_in_mfa_day: "一天",
sign_in_mfa_week: "一周",
sign_in_mfa_month: "一个月",
sign_in_mfa_year: "一年",
sign_in_mfa_back_sign_in: "返回",
sign_in_mfa_submit: "验证身份",
error_field_is_required: "必须输入该字段",
error_email_field_is_required: "需要输入一个邮箱地址",
error_password_field_is_required: "需要输入密码",
error_code_required: "你必须输入你的代码",
error_device_required: "你必须输入你的设备名称",
error_device_min_length: "你的设备名称最少需要3个字符",
text_field_show_password: "显示密码",
text_field_hide_password: "隐藏密码"
},
gamePage: {
game_page_title: "进入<0/><1>{{name}} 宇宙</1>",
game_page_nav_title: "游戏",
game_page_nav_title_one: "游戏",
game_page_nav_title_other: "游戏",
game_page_game_is_running: "游戏正在运行",
game_page_installing: "正在安装…",
game_page_installing_paused: "安装已暂停",
game_page_updating: "正在更新…",
game_page_updating_paused: "更新已暂停",
game_page_verifying: "正在验证文件…",
game_page_uninstalling: "正在卸载",
game_page_verifying_paused: "验证已暂停",
game_page_update_game: "更新游戏",
game_page_launch_game: "启动游戏",
game_page_install_game: "安装游戏",
game_page_waiting_in_queue: "正在排队",
game_page_channels: "游戏环境",
game_page_settings: "游戏设置",
game_page_settings_verify: "验证游戏文件",
game_page_settings_uninstall: "卸载游戏",
game_page_update_game_is_available: "了解 {{version}} 新内容,<0>请查看补丁说明</0>",
game_page_status_under_maintenance: "我们正在对其中一项服务进行维护。",
game_page_status_issue: "我们正在解决一个问题。请自行承担风险。",
game_page_status_more_information: "想要获取更多信息请查阅<0>状态页面</0>",
game_page_cards_empty: "目前没有可用的内容",
game_page_cards_loading: "正在加载内容。",
game_page_cards_tab_community: "社区",
"game_page_cards_tab_comm-links": "通讯链接",
"game_page_cards_tab_new-citizens": "新手指南",
"game_page_cards_tab_patch-notes": "补丁说明",
game_page_card_button_label: "查看更多"
},
settingsPage: {
settings_about_title: "关于",
settings_application_title: "程序",
settings_games_title: "游戏",
settings_download_title: "下载",
settings_dev_title: "Dev / QA",
settings_nav_items_application: "程序",
settings_nav_items_accessibility: "辅助功能",
settings_nav_items_games: "游戏",
settings_nav_items_about: "关于",
settings_nav_items_download: "下载",
settings_nav_items_dev: "DEV \ud83d\ude80",
settings_about_logo_alt: "CloudImperium©",
settings_about_copyright: "© 2012 - {{year}} Cloud Imperium Rights LLC and Cloud Imperium Rights Ltd",
settings_about_launcher_version: "启动器版本",
settings_application_window_behavior_title: "窗口行为",
settings_application_window_behavior_description: "此选项允许你在关闭窗口时退出该程序。",
settings_application_window_behavior_close_to_quit: "启用 关闭窗口直接退出程序",
settings_application_debug_tools_title: "启动器调试工具",
settings_application_debug_tools_description: "如果你在使用启动器时遇到问题,清除缓存可能可以解决问题。你还需要找到你的日志文件,这可在你向<iclink>问题理事会</iclink>报告启动器问题时提供帮助。",
settings_application_debug_tools_label: "调试工具",
settings_application_debug_tools_button_clear_cache: "清除缓存",
settings_application_debug_tools_button_get_logs: "获取日志文件",
settings_application_debug_tools_button_cache_clear_success: "缓存已清除",
settings_accessibility_title: "辅助功能",
settings_accessibility_reduce_motion_title: "动画减弱",
settings_accessibility_reduce_motion_description: "减弱启动器中的动画。例如:背景视频、图标动画和页面过渡动画。",
settings_accessibility_reduce_motion_system_sync_title: "与操作系统同步",
settings_accessibility_reduce_motion_system_sync_description: "跟随操作系统的动画减弱设置偏好",
settings_accessibility_reduce_motion_background_video_toggle_title: "禁用背景视频",
settings_accessibility_reduce_motion_background_video_toggle_description: "将背景视频替换成一张静态图片",
settings_accessibility_reduce_motion_unessential_animation_toggle_title: "禁用非必要动画",
settings_accessibility_reduce_motion_unessential_animation_toggle_description: "装饰性图标、标志、光标交互...",
settings_accessibility_reduce_motion_transition_effects_toggle_title: "禁用页面过渡效果",
settings_accessibility_reduce_motion_transition_effects_toggle_description: "各部分(页面、选项卡...)之间的过渡动画",
settings_accessibility_reduce_motion_information_enabled: "操作系统的动画减弱已启用。",
settings_accessibility_reduce_motion_information_disabled: "操作系统的动画减弱已停用。",
settings_accessibility_reduce_motion_information_restart_link_label: "下次启动才会应用当前更改。<iclink>现在重新启动</iclink>。",
settings_games_installation_title: "游戏位置",
settings_games_installation_description: "这是你的游戏文件夹的路径。",
settings_games_installation_information: "如果你的游戏已经安装在其他位置,在这里选择位置,然后点击验证文件。",
settings_games_installation_path_title: "游戏位置完整路径",
settings_games_installation_library_folder_success: "路径已更新",
settings_games_installation_library_folder_change: "更改",
settings_games_installation_library_folder_label: "RSI 目录位置",
settings_games_game_files_title: "游戏文件",
settings_games_game_files_description: "安装/卸载此游戏频道或验证已安装的游戏文件完整性。",
settings_games_game_files_verify_files: "验证游戏文件",
settings_games_game_files_verifying_files: "正在验证游戏文件",
settings_games_game_files_install_files: "安装游戏",
settings_games_game_files_installing_files: "正在安装",
settings_games_game_files_uninstall_files: "卸载游戏",
settings_games_game_files_uninstalling_files: "正在卸载",
settings_games_game_files_process_paused: "已暂停",
settings_common_reset: "重置所有更改",
settings_common_reset_confirmation: "此游戏频道的更改已被重置",
settings_common_accordion_open_all: "全部展开",
settings_common_accordion_close_all: "全部折叠",
settings_common_back: "返回",
settings_common_saved: "已保存",
settings_download_main_title: "带宽使用",
settings_download_main_content: "调整下行带宽以优化网速",
settings_download_concurrent_title: "同时下载数",
settings_download_concurrent_desc: "调整同时下载的最大文件数。优化你的下载体验以匹配你的偏好和网络。",
settings_download_speed_title: "限制下载速度",
settings_download_speed_desc: "通过为每个并发下载连接设置每秒数据传输速率上限来调节下载速度。",
settings_application_discover_behavior_title: "探索行为",
settings_application_discover_behavior_description: "启动器探索仅在首次进入启动器时显示(或通过点击 RSI 菜单中的 探索 按钮)。此选项将允许您在负载时重新启用 探索 以进行测试。",
settings_application_discover_behavior_isDiscoverDone: "isDiscoverDone",
settings_games_launch_command_line: "其他命令行参数",
settings_games_launch_disclaimer: "此操作将在你下次\u2019ll启动游戏时应用",
settings_games_launch_hostname: "宇宙 Host",
settings_games_launch_port: "宇宙端口",
settings_games_launch_executable: "可执行",
settings_games_launch_launch_options: "启动器选项"
},
status: {
status_title: "RSI 状态",
status_empty: "无状态可用。",
status_last_updated: "最后一次更新 {{time}}",
status_last_updated_empty: "当前无可用数据。",
status_more_information: "更多信息",
status_major: "完全中断",
status_partial: "部分中断",
status_degraded: "性能降低",
status_maintenance: "正在维护",
status_operational: "正常运行"
},
tray: {
tray_website: "访问网站",
tray_report_bug: "汇报漏洞",
tray_spectrum: "光谱",
tray_community_hub: "社区中心",
tray_support: "支持",
tray_mute: "静音",
tray_unmute: "取消静音",
tray_logout: "登出",
tray_quit: "退出"
}
},
SC_TOOLBOX_LOCALIZATION_ZHTW_MAP = SC_TOOLBOX_LOCALIZATION_ZHTW_MAP = {
agreements: {
agreement_fetch_info_error: "暫時無法從伺服器取得協議,請稍等一分鐘後再試。",
agreement_declined: "協議被拒絕"
},
appHeader: {
app_header_menu: "選單",
app_header_volume: "音量",
app_header_volume_mute: "靜音",
app_header_volume_unmute: "取消靜音",
app_header_account: "帳戶",
app_header_account_name: "使用者名稱",
app_header_account_moniker: "@社群暱稱",
app_header_menu_get_help: "取得幫助",
app_header_menu_spectrum: "Spectrum",
app_header_menu_issue_council: "問題與建議中心",
app_header_menu_discover: "探索啟動器功能",
app_header_menu_exit_the_app: "關閉程式",
app_header_menu_settings: "設定",
app_header_actions_download: "下載",
app_header_actions_menu_rsi_status: "RSI 狀態",
app_header_actions_menu_rsi_account: "RSI 帳戶",
app_header_actions_menu_log_out: "登出",
app_header_loading: "正在進入宇宙…"
},
autoUpdate: {
auto_update_dialog_close: "關閉",
auto_update_dialog_title: "有更新等待安裝",
auto_update_dialog_sub_title: "版本{{version}}",
auto_update_dialog_no_update_content: "您目前正在執行的就是 RSI 啟動器的最新版本。<0/>感謝您保持更新!",
auto_update_dialog_no_update_action_primary_label: "繼續",
auto_update_dialog_update_available_content: "有新的 RSI 啟動器版本可安裝。程式將會關閉並重新啟動。",
auto_update_dialog_update_available_action_primary_label: "安裝並重新啟動",
auto_update_dialog_update_available_action_secondary_label: "稍後安裝",
auto_update_dialog_update_install_failed_content: "無法更新至最新版本的啟動器,請重新安裝或聯繫<0>客戶支援</0>",
auto_update_dialog_update_install_failed_action_primary_label: "重新安裝",
auto_update_dialog_update_install_failed_action_secondary_label: "稍後安裝",
auto_update_dialog_update_quit_game_content: "遊戲工作階段目前正在執行。如果你想要安裝新版本啟動器,將會關閉目前遊戲工作階段,正在進行的遊戲進度可能會遺失",
auto_update_dialog_update_quit_game_action_primary_label: "退出遊戲並安裝",
auto_update_dialog_update_quit_game_action_secondary_label: "稍後再試",
auto_update_toast_update_installed: "成功安裝新版本啟動器"
},
contextMenu: {
context_menu_copy: "複製",
context_menu_paste: "貼上",
context_menu_cut: "剪下",
context_menu_select_all: "全選"
},
dialog: {
dialog_warning_logout_title: "登出",
dialog_warning_logout_text: "你確定要登出帳戶嗎?",
dialog_warning_logout_game_running_text: "你確定要在遊戲執行時登出帳戶嗎?正在進行的遊戲進度可能會遺失。",
dialog_warning_logout_confirm: "登出",
dialog_warning_logout_error: "登出時發生錯誤。你的工作階段可能已經過期。請嘗試重新登入。",
dialog_action_cancel: "取消",
dialog_action_confirm: "確認",
dialog_action_acknowledge: "我已了解",
dialog_action_ok: "OK",
dialog_action_retry: "再次嘗試",
dialog_action_close: "關閉",
dialog_action_accept: "同意",
dialog_action_decline: "拒絕",
dialog_action_verify: "驗證文件",
dialog_action_install: "安裝遊戲",
dialog_action_relaunch: "重新啟動",
dialog_action_discard: "放棄",
dialog_action_cancel_download: "取消下載",
dialog_warning_back_launcher: "返回啟動器",
dialog_warning_exit_app_title: "關閉程式",
dialog_warning_exit_app_text: "你確定要退出應用程式嗎?",
dialog_warning_exit_app_checkbox: "不再顯示",
dialog_warning_exit_app_game_running_text: "你確定要在遊戲執行時退出應用程式嗎?",
dialog_warning_exit_app_confirm: "關閉程式",
dialog_warning_uninstall_title: "移除 {{game}} - {{channel}}",
dialog_warning_uninstall_text: "你確定要從你的電腦移除該遊戲嗎?請注意,你的電腦上的所有使用者都會移除該遊戲文件。",
dialog_warning_uninstall_userFolder_checkbox: "保留使用者資料夾(按鍵綁定和設定偏好)",
dialog_warning_uninstall_userFolder_checkbox_description: "目錄位置:{{path}}",
dialog_warning_uninstall_confirm: "移除遊戲",
dialog_settings_reset_title: "重設設定",
dialog_settings_reset_content: "你確定要重設你的遊戲設定嗎?",
dialog_settings_reset_button: "復原預設",
dialog_settings_game_not_installed_title: "尚未安裝遊戲",
dialog_settings_game_not_installed_content: "目前你嘗試驗證文件的位置並未安裝遊戲。請先安裝遊戲後重試。",
dialog_cancel_installation_title: "取消下載",
dialog_cancel_installation_content: "你確定要取消下載{{info}}嗎?",
dialog_cancel_installation_content_keep_files_downloaded: "保留已下載的文件",
dialog_start_installation_title: "安裝 {{game}} - {{channel}}",
dialog_start_installation_content_location: "遊戲將安裝在以下位置",
dialog_start_installation_content_location_settings: "你可以在遊戲設定中更改遊戲位置",
dialog_start_installation_action_go_to_settings: "遊戲設定",
dialog_start_installation_action_install: "安裝",
dialog_launch_check_update_available_title: "遊戲版本更新",
dialog_launch_check_update_available_content: "一個新的遊戲版本 {{game}} - {{channel}} 可安裝。請更新後再進入遊戲。",
dialog_discover_title: "啟動器更新了 UI ",
dialog_discover_content: "RSI 啟動器的外觀現在已經煥然一新!我們準備了一小段旅程來引領你去看看有什麼樣的改變。",
dialog_discover_start: "開始旅程",
dialog_discover_skip: "跳過",
dialog_debug_cache_clear_title: "清除啟動器快取",
dialog_debug_cache_clear_content: "此操作將清除啟動器快取並退出登入,你確定要繼續嗎?",
dialog_debug_cache_clear_button: "繼續"
},
discover: {
step_done_label: "立即進入",
step_menu_title: "啟動器應用選單",
step_menu_description: "在此選單中可快速訪設定和其他有用的資源例如支援、Spectrum和問題與建議中心。",
step_status_title: "狀態",
step_status_description: "在此可查看 RSI 各項服務的狀態。如果有任何性能問題或服務中斷,你可以在此處看到。",
step_download_title: "下載管理",
step_download_description: "查看下載/更新進度、暫停目前下載或快速更改下載設定。",
"step_user-profile_title": "使用者檔案",
"step_user-profile_description": "查看目前登入的帳戶。使用此選單能夠快速瀏覽你的 RSI 帳戶介面。如果你需要切換帳號,可以在此處進行登出。",
step_last_title: "啟動器路線圖",
step_last_description: "RSI 啟動器會隨著時間的推移不斷發展。請隨時在問題與建議中心向我們回饋問題。感謝你對我們開發的支援。"
},
download: {
download_empty: "下載佇列中沒有下載任務。",
download_phase: "階段",
download_status: "狀態",
download_speed: "速度",
download_left: "剩餘",
download_files_left: "剩餘文件",
download_title: "下載任務",
download_settings: "下載設定",
download_play: "開始",
download_pause: "暫停",
download_initializing: "正在初始化…",
download_update_manifest: "正在下載更新文件清單",
download_manifest: "正在下載文件清單",
downloaded_update_manifest: "更新文件清單已下載",
download_analysing_install: "正在驗證安裝文件",
download_checking_files: "正在驗證文件 - 需要幾分鐘",
download_base_pack: "正在下載基礎文件包",
download_updating_game_files: "正在更新遊戲文件",
download_updating_game_content: "正在更新遊戲內容",
download_completed: "完成",
download_waiting: "正在排隊",
download_cancelling: "正在取消",
download_resume: "繼續",
download_cancel: "取消",
download_remove: "移除",
download_error: "錯誤",
download_toast_install_success: "安裝已完成",
download_toast_update_success: "更新已完成",
download_toast_verify_success: "文件驗證已完成",
download_toast_install_cancel_success: "下載已取消",
download_toast_uninstall_success: "{{game}} - {{channel}} 已移除",
download_toast_uninstall_fail: "{{game}} - {{channel}} 無法移除",
download_type_install: "安裝",
download_type_update: "更新",
download_type_verify: "驗證文件"
},
errors: {
error_game_package_missing_title: "沒有遊戲資格包",
error_game_package_missing_subtitle: "你需要購買一個遊戲資格包才能夠登入遊戲。",
error_game_package_missing_retry: "重新登入",
error_game_package_missing_support: "客戶支援",
error_internal_error: "內部錯誤",
error_not_authenticated: "你未通過身份驗證",
error_invalid_claims: "無效宣告",
error_authentication_mfa: "身份驗證需要mfa",
error_sign_in_failed: "登入失敗。你可能輸入了錯誤的憑證。",
error_sign_in_not_authorized: "你沒有登入權限。",
error_captcha_invalid: "驗證碼無效",
error_session_expired: "你的工作階段已過期。請再次確認你的密碼。",
error_wrong_credentials: "你可能輸入了錯誤的憑證、帳戶不存在或帳戶未啟用(1032)",
error_max_login_attempt: "已超過登入失敗的最大次數。(1034)",
error_wrong_mfa_code: "雙重驗證失敗。你可能輸入了錯誤的或過期的驗證碼(1037)",
error_captcha_required: "登入失敗。你可能輸入了錯誤的憑證。",
error_installer_basepack_invalid_title: "基礎文件包 - 文件無效",
error_installer_basepack_invalid_content: "下載遊戲時出現錯誤,請重試。錯誤代碼:{{code}}",
error_installer_disc_full_title: "磁碟空間不足",
error_installer_disc_full_content: "你的磁碟沒有足夠的可用空間。請清理出空間或將目錄移動至空間更大的磁碟。錯誤代碼:{{code}}",
error_installer_permissions_title: "文件系統權限錯誤",
error_installer_permissions_content: "修補程式在寫入時遇到權限問題。請檢查目錄權限並重試。錯誤代碼:{{code}}",
error_installer_permissions_action: "修復權限",
error_installer_file_in_use_title: "文件被佔用",
error_installer_file_in_use_content: "遊戲文件正在被佔用。請關閉你打開的遊戲文件後重試。錯誤代碼:{{code}}",
error_installer_pk4_corrupted_title: "遊戲文件已損壞",
error_installer_pk4_corrupted_content: "你的遊戲文件已損壞且無法復原。錯誤代碼:{{code}}",
error_installer_retrieve_manifest_title: "無法取得更新文件清單",
error_installer_retrieve_manifest_content: "取得更新文件清單時發生網路錯誤。請檢查你的網路連接-並重啟啟動器後重試。錯誤代碼:{{code}}",
error_installer_unknown_network_title: "未知網路錯誤",
error_installer_unknown_network_content: "請檢查你的網路並重試。錯誤代碼:{{code}}",
error_installer_base_p4k_corrupted_title: "基礎文件包驗證錯誤",
error_installer_base_p4k_corrupted_content: "基礎文件包驗證失敗,請重試。如果問題依然存在,請<0>回報漏洞</0>。別忘了附上你的<1>日誌檔案。</1>",
error_installer_init_download_title: "下載初始化 - 基礎文件包 - 錯誤",
error_installer_patcher_title: "資料修補程式錯誤",
error_installer_title: "安裝程式錯誤",
error_installer_patcher_generic_content: "安裝時出現錯誤。可在<0>知識庫</0>中查閱更多相關資訊。如果問題依然存在,請<1>回報漏洞</1>。請同時附上你的<2>日誌檔案</2>。錯誤代碼:{{code}}",
error_installer_generic_content: "安裝時出現錯誤。如果問題依然存在,請<0>回報漏洞</0>。請同時附上你的<1>日誌檔案</1>。錯誤代碼:{{code}}",
error_generic_title: "啟動器錯誤",
error_generic_content: "出現錯誤。如果問題依然存在,請<0>回報漏洞</0>。請同時附上你的<1>日誌檔案</1>。錯誤代碼:{{code}}",
error_os_requirements_title: "未達到最低配置要求",
error_os_requirements_text: "你的電腦未達到執行 {{ game }} 的<0>最低配置要求</0>",
error_cpu_requirements_title: "檢測到不支援的硬體",
error_cpu_requirements_text: "遊戲需要一個支援 AVX 指令集的 CPU 才能執行。",
error_launch_account_not_found_title: "將你的帳戶複製到 PTU ",
error_launch_account_not_found_content: "想要遊玩公共測試宇宙PTU你需要複製帳戶到 PTU。請按照以下步驟<0>這裡</0>並重試。錯誤代碼:{{code}}",
error_launch_game_title: "{{game}} 意外停止執行",
error_launch_game_content: "嘗試重新啟動遊戲。如果問題依然存在,請驗證你的安裝文件。",
error_launch_unknown_title: "啟動器 - 未知錯誤",
error_launch_unknown_content: "啟動遊戲時出現錯誤。請驗證遊戲文件完整性。<2></2> 如果問題依然存在,請<0>回報漏洞</0>。請同時附上你的<1>日誌檔案</1>。錯誤代碼:{{code}}",
error_launch_no_game_files_title: "啟動器 - 未找到遊戲文件",
error_launch_no_game_files_content: "啟動遊戲時出現錯誤。無法檢索到遊戲文件。請驗證遊戲文件完整性。錯誤代碼:{{code}}",
error_launch_EAC_title: "啟動器 - EAC 錯誤",
error_launch_EAC_content: "啟動遊戲時出現錯誤。EAC 檢測到文件損壞。請驗證遊戲文件完整性。錯誤代碼:{{code}}",
error_launch_game_crash_title: "遊戲錯誤",
error_launch_game_crash_content: "遊戲執行時出現錯誤。如果問題依然存在,請<0>回報漏洞</0>。請同時附上你的<1>日誌檔案</1>。錯誤代碼:{{code}}",
error_launch_game_running_title: "遊戲正在執行",
error_launch_game_running_content: "遊戲已經處於執行狀態",
error_launch_check_update_unavailable_title: "檢查遊戲版本失敗",
error_launch_check_update_unavailable_content: "檢查遊戲版本時出現錯誤。如果問題依然存在,請<0>回報漏洞</0>。請同時附上你的<1>日誌檔案</1>。錯誤代碼:{{code}}",
error_api_denied_request_title: "API 拒絕請求",
error_api_denied_request_content: "出現錯誤。你的工作階段似乎已過期或被拒絕。你已登出,請重試。",
error_api_validation_failed: "API 請求驗證失敗",
error_api_too_many_requests_title: "請求過多",
error_api_too_many_requests_content: "API 目前過載。請稍等幾分鐘後重試。",
error_api_unavailable: "API 不可用。請稍等幾分鐘後重試。",
error_api_internal_server_error: "我們的伺服器遇到困難。請稍等幾分鐘後重試。",
error_api_auth_expired_content: "你的工作階段已過期。請再次確認你的密碼。",
error_api_auth_expired_title: "工作階段已過期",
error_api_platform_auth_title: "平台驗證錯誤",
error_api_platform_auth_content: "無法在 {{id}} 平台進行驗證 {{error}}",
error_network_issue_title: "網路問題",
error_network_issue_content: "無法建立網路連接。請檢查你的網路狀態後嘗試重新連接。"
},
form: {
sign_in_title: "登入 RSI 啟動器",
sign_in_email: "電子信箱",
sign_in_password: "密碼",
sign_in_remember_me: "記住密碼",
sign_in_forgot_password: "忘記密碼?",
sign_in_captcha: "驗證碼",
sign_in_captcha_refresh: "重新整理",
sign_in_captcha_help: "輸入上方圖像中的文字。",
sign_in_no_account: "沒有帳戶?",
sign_in_create_account: "建立一個!",
sign_in_submit: "登入",
sign_in_loading: "正在登入…",
sign_in_mfa_title: "我們需要驗證你的身份",
sign_in_mfa_subtitle: "保護你的帳戶對於我們來說是非常重要的。我們向你帳戶綁定的電子信箱發送了驗證碼。",
sign_in_mfa_code_label: "驗證碼",
sign_in_mfa_code_help: "輸入發送到你的電子信箱的程式碼或驗證器中的程式碼。或者使用備用程式碼。",
sign_in_mfa_device_label: "裝置名稱",
sign_in_mfa_device_help: "為你目前裝置輸入一個名稱。",
sign_in_mfa_duration_label: "信任這個裝置",
sign_in_mfa_duration_help: "允許裝置在選定的時間內跳過MFA驗證。如果這是一個共享或公共裝置我們建議你選擇“僅目前工作階段”。",
sign_in_mfa_session: "僅目前工作階段",
sign_in_mfa_day: "一天",
sign_in_mfa_week: "一週",
sign_in_mfa_month: "一個月",
sign_in_mfa_year: "一年",
sign_in_mfa_back_sign_in: "返回",
sign_in_mfa_submit: "驗證身份",
error_field_is_required: "必須輸入該欄位",
error_email_field_is_required: "需要輸入一個電子信箱地址",
error_password_field_is_required: "需要輸入密碼",
error_code_required: "你必須輸入你的程式碼",
error_device_required: "你必須輸入你的裝置名稱",
error_device_min_length: "你的裝置名稱最少需要3個字元",
text_field_show_password: "顯示密碼",
text_field_hide_password: "隱藏密碼"
},
gamePage: {
game_page_title: "進入<0/><1>{{name}} 宇宙</1>",
game_page_nav_title: "遊戲",
game_page_nav_title_one: "遊戲",
game_page_nav_title_other: "遊戲",
game_page_game_is_running: "遊戲正在執行",
game_page_installing: "正在安裝…",
game_page_installing_paused: "安裝已暫停",
game_page_updating: "正在更新…",
game_page_updating_paused: "更新已暫停",
game_page_verifying: "正在驗證文件…",
game_page_uninstalling: "正在移除",
game_page_verifying_paused: "驗證已暫停",
game_page_update_game: "更新遊戲",
game_page_launch_game: "啟動遊戲",
game_page_install_game: "安裝遊戲",
game_page_waiting_in_queue: "正在排隊",
game_page_channels: "遊戲環境",
game_page_settings: "遊戲設定",
game_page_settings_verify: "驗證遊戲文件",
game_page_settings_uninstall: "移除遊戲",
game_page_update_game_is_available: "了解 {{version}} 新內容,<0>請查看補丁說明</0>",
game_page_status_under_maintenance: "我們正在對其中一項服務進行維護。",
game_page_status_issue: "我們正在解決一個問題。請自行承擔風險。",
game_page_status_more_information: "想要取得更多資訊請查閱<0>狀態頁面</0>",
game_page_cards_empty: "目前沒有可用的內容",
game_page_cards_loading: "正在載入內容。",
game_page_cards_tab_community: "社群",
"game_page_cards_tab_comm-links": "通訊連結",
"game_page_cards_tab_new-citizens": "新手指南",
"game_page_cards_tab_patch-notes": "補丁說明",
game_page_card_button_label: "查看更多"
},
settingsPage: {
settings_about_title: "關於啟動器",
settings_application_title: "一般設定",
settings_games_title: "遊戲檔案",
settings_download_title: "下載設定",
settings_dev_title: "Dev / QA",
settings_nav_items_application: "程式",
settings_nav_items_accessibility: "輔助功能",
settings_nav_items_games: "遊戲",
settings_nav_items_about: "關於",
settings_nav_items_download: "下載",
settings_nav_items_dev: "DEV \ud83d\ude80",
settings_about_logo_alt: "CloudImperium©",
settings_about_copyright: "© 2012 - {{year}} Cloud Imperium Rights LLC and Cloud Imperium Rights Ltd",
settings_about_launcher_version: "啟動器版本",
settings_application_window_behavior_title: "關閉設定",
settings_application_window_behavior_description: "此功能將會停用啟動器最小化,並在你關閉視窗後直接關閉啟動器。",
settings_application_window_behavior_close_to_quit: "啟用 關閉視窗直接關閉程式",
settings_application_debug_tools_title: "啟動器除錯工具",
settings_application_debug_tools_description: "如果你在使用啟動器時遇到問題,清除快取可能可以解決問題。你還需要找到你的日誌檔案,這可在你向<iclink>問題與建議中心</iclink>報告啟動器問題時提供幫助。",
settings_application_debug_tools_label: "除錯工具",
settings_application_debug_tools_button_clear_cache: "清除快取",
settings_application_debug_tools_button_get_logs: "取得日誌檔案",
settings_application_debug_tools_button_cache_clear_success: "快取已清除",
settings_accessibility_title: "輔助功能",
settings_accessibility_reduce_motion_title: "減少動畫效果",
settings_accessibility_reduce_motion_description: "減少啟動器中的動畫效果。例如:背景影片、圖示動畫和頁面轉換動畫。",
settings_accessibility_reduce_motion_system_sync_title: "與系統同步",
settings_accessibility_reduce_motion_system_sync_description: "與系統的動畫減少設定同步",
settings_accessibility_reduce_motion_background_video_toggle_title: "停用背景影片",
settings_accessibility_reduce_motion_background_video_toggle_description: "使用靜態圖片取代背景影片",
settings_accessibility_reduce_motion_unessential_animation_toggle_title: "停用非必要動畫",
settings_accessibility_reduce_motion_unessential_animation_toggle_description: "裝飾性圖示、標誌、游標互動...",
settings_accessibility_reduce_motion_transition_effects_toggle_title: "停用頁面轉換效果",
settings_accessibility_reduce_motion_transition_effects_toggle_description: "各部分(頁面、頁籤...)之間的過渡動畫",
settings_accessibility_reduce_motion_information_enabled: "系統的動畫減少已啟用。",
settings_accessibility_reduce_motion_information_restart_link_label: "下次啟動時才會套用目前變更。<iclink>立刻重新啟動</iclink>。",
settings_games_installation_title: "遊戲位置",
settings_games_installation_description: "這是你的遊戲資料夾的路徑。",
settings_games_installation_information: "如果你的遊戲已經安裝在其他位置,在這裡選擇位置,然後點擊驗證文件。",
settings_games_installation_path_title: "遊戲位置完整路徑",
settings_games_installation_library_folder_success: "路徑已更新",
settings_games_installation_library_folder_change: "更改",
settings_games_installation_library_folder_label: "RSI 目錄位置",
settings_games_game_files_title: "遊戲文件",
settings_games_game_files_description: "安裝/移除此遊戲頻道或驗證已安裝的遊戲文件完整性。",
settings_games_game_files_verify_files: "驗證遊戲文件",
settings_games_game_files_verifying_files: "正在驗證遊戲文件",
settings_games_game_files_install_files: "安裝遊戲",
settings_games_game_files_installing_files: "正在安裝",
settings_games_game_files_uninstall_files: "移除遊戲",
settings_games_game_files_uninstalling_files: "正在移除",
settings_games_game_files_process_paused: "已暫停",
settings_common_reset: "重設所有更改",
settings_common_reset_confirmation: "此遊戲頻道的更改已被重設",
settings_common_accordion_open_all: "展開全部",
settings_common_accordion_close_all: "收起全部",
settings_common_back: "返回",
settings_common_saved: "已儲存",
settings_download_main_title: "下載限制",
settings_download_main_content: "調整下載速度來改善網路速率",
settings_download_concurrent_title: "同時下載數",
settings_download_concurrent_desc: "調整同時下載的最大文件數。提升你的下載體驗來匹配你的個人習慣和網路環境。",
settings_download_speed_title: "限制下載速度",
settings_download_speed_desc: "設定每秒資料傳輸速率上限以調節下載速率。",
settings_application_discover_behavior_title: "探索功能",
settings_application_discover_behavior_description: "啟動器探索僅在首次進入啟動器時顯示(或透過點擊 RSI 選單中的 探索 按鈕)。此選項將允許您在負載時重新啟用 探索 以進行測試。",
settings_application_discover_behavior_isDiscoverDone: "isDiscoverDone",
settings_games_launch_command_line: "其他命令列參數",
settings_games_launch_disclaimer: "此操作將在你下次\u2019ll啟動遊戲時應用",
settings_games_launch_hostname: "宇宙 Host",
settings_games_launch_port: "宇宙埠",
settings_games_launch_executable: "可執行",
settings_games_launch_launch_options: "啟動器選項"
},
status: {
status_title: "RSI 伺服器狀態",
status_empty: "暫無狀態可顯示。",
status_last_updated: "最後更新於 {{time}}",
status_last_updated_empty: "目前沒有資料。",
status_more_information: "更多資訊",
status_major: "完全斷線",
status_partial: "部分斷線",
status_degraded: "性能較差",
status_maintenance: "正在維護",
status_operational: "正常執行"
},
tray: {
tray_website: "瀏覽網站",
tray_report_bug: "回報漏洞",
tray_spectrum: "Spectrum",
tray_community_hub: "社群中心",
tray_support: "支援",
tray_mute: "靜音",
tray_unmute: "取消靜音",
tray_logout: "登出",
tray_quit: "退出"
}
};
function o(e) {
return o = "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
}, o(e)
}
function s(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}
function l(e) {
var t = function(e, t) {
if ("object" !== o(e) || null === e) return e;
var n = e[Symbol.toPrimitive];
if (void 0 !== n) {
var r = n.call(e, t || "default");
if ("object" !== o(r)) return r;
throw new TypeError("@@toPrimitive must return a primitive value.")
}
return ("string" === t ? String : Number)(e)
}(e, "string");
return "symbol" === o(t) ? t : String(t)
}
function c(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, l(r.key), r)
}
}
function u(e, t, n) {
return t && c(e.prototype, t), n && c(e, n), Object.defineProperty(e, "prototype", {
writable: !1
}), e
}
function d(e) {
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e
}
function p(e, t) {
return p = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
return e.__proto__ = t, e
}, p(e, t)
}
function h(e, t) {
if ("function" !== typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
writable: !0,
configurable: !0
}
}), Object.defineProperty(e, "prototype", {
writable: !1
}), t && p(e, t)
}
function f(e, t) {
if (t && ("object" === o(t) || "function" === typeof t)) return t;
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
return d(e)
}
function m(e) {
return m = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
return e.__proto__ || Object.getPrototypeOf(e)
}, m(e)
}
function g(e, t, n) {
return (t = l(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e
}
function v(e, t) {
(null == t || t > e.length) && (t = e.length);
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
return r
}
function _(e) {
return function(e) {
if (Array.isArray(e)) return e
}(e) || function(e) {
if ("undefined" !== typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e)
}(e) || function(e, t) {
if (e) {
if ("string" === typeof e) return v(e, t);
var n = Object.prototype.toString.call(e).slice(8, -1);
return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? v(e, t) : void 0
}
}(e) || function() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}()
}
function y(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}))), n.push.apply(n, r)
}
return n
}
function b(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {};
t % 2 ? y(Object(n), !0).forEach((function(t) {
g(e, t, n[t])
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y(Object(n)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
}))
}
return e
}
var x = {
type: "logger",
log: function(e) {
this.output("log", e)
},
warn: function(e) {
this.output("warn", e)
},
error: function(e) {
this.output("error", e)
},
output: function(e, t) {
console && console[e] && console[e].apply(console, t)
}
},
w = new(function() {
function e(t) {
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
s(this, e), this.init(t, n)
}
return u(e, [{
key: "init",
value: function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
this.prefix = t.prefix || "i18next:", this.logger = e || x, this.options = t, this.debug = t.debug
}
}, {
key: "setDebug",
value: function(e) {
this.debug = e
}
}, {
key: "log",
value: function() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
return this.forward(t, "log", "", !0)
}
}, {
key: "warn",
value: function() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
return this.forward(t, "warn", "", !0)
}
}, {
key: "error",
value: function() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
return this.forward(t, "error", "")
}
}, {
key: "deprecate",
value: function() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
return this.forward(t, "warn", "WARNING DEPRECATED: ", !0)
}
}, {
key: "forward",
value: function(e, t, n, r) {
return r && !this.debug ? null : ("string" === typeof e[0] && (e[0] = "".concat(n).concat(this.prefix, " ").concat(e[0])), this.logger[t](e))
}
}, {
key: "create",
value: function(t) {
return new e(this.logger, b(b({}, {
prefix: "".concat(this.prefix, ":").concat(t, ":")
}), this.options))
}
}, {
key: "clone",
value: function(t) {
return (t = t || this.options).prefix = t.prefix || this.prefix, new e(this.logger, t)
}
}]), e
}()),
k = function() {
function e() {
s(this, e), this.observers = {}
}
return u(e, [{
key: "on",
value: function(e, t) {
var n = this;
return e.split(" ").forEach((function(e) {
n.observers[e] = n.observers[e] || [], n.observers[e].push(t)
})), this
}
}, {
key: "off",
value: function(e, t) {
this.observers[e] && (t ? this.observers[e] = this.observers[e].filter((function(e) {
return e !== t
})) : delete this.observers[e])
}
}, {
key: "emit",
value: 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];
if (this.observers[e]) {
var i = [].concat(this.observers[e]);
i.forEach((function(e) {
e.apply(void 0, n)
}))
}
if (this.observers["*"]) {
var a = [].concat(this.observers["*"]);
a.forEach((function(t) {
t.apply(t, [e].concat(n))
}))
}
}
}]), e
}();
function E() {
var e, t, n = new Promise((function(n, r) {
e = n, t = r
}));
return n.resolve = e, n.reject = t, n
}
function S(e) {
return null == e ? "" : "" + e
}
function O(e, t, n) {
e.forEach((function(e) {
t[e] && (n[e] = t[e])
}))
}
function P(e, t, n) {
function r(e) {
return e && e.indexOf("###") > -1 ? e.replace(/###/g, ".") : e
}
function i() {
return !e || "string" === typeof e
}
for (var a = "string" !== typeof t ? [].concat(t) : t.split("."); a.length > 1;) {
if (i()) return {};
var o = r(a.shift());
!e[o] && n && (e[o] = new n), e = Object.prototype.hasOwnProperty.call(e, o) ? e[o] : {}
}
return i() ? {} : {
obj: e,
k: r(a.shift())
}
}
function I(e, t, n) {
var r = P(e, t, Object);
r.obj[r.k] = n
}
function A(e, t) {
var n = P(e, t),
r = n.obj,
i = n.k;
if (r) return r[i]
}
function C(e, t, n) {
var r = A(e, n);
return void 0 !== r ? r : A(t, n)
}
function R(e, t, n) {
for (var r in t) "__proto__" !== r && "constructor" !== r && (r in e ? "string" === typeof e[r] || e[r] instanceof String || "string" === typeof t[r] || t[r] instanceof String ? n && (e[r] = t[r]) : R(e[r], t[r], n) : e[r] = t[r]);
return e
}
function T(e) {
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&")
}
var D = {
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
'"': "&quot;",
"'": "&#39;",
"/": "&#x2F;"
};
function N(e) {
return "string" === typeof e ? e.replace(/[&<>"'\/]/g, (function(e) {
return D[e]
})) : e
}
var L = "undefined" !== typeof window && window.navigator && "undefined" === typeof window.navigator.userAgentData && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1,
j = [" ", ",", "?", "!", ";"];
function M(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}))), n.push.apply(n, r)
}
return n
}
function z(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {};
t % 2 ? M(Object(n), !0).forEach((function(t) {
g(e, t, n[t])
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M(Object(n)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
}))
}
return e
}
function F(e) {
var t = function() {
if ("undefined" === typeof Reflect || !Reflect.construct) return !1;
if (Reflect.construct.sham) return !1;
if ("function" === typeof Proxy) return !0;
try {
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))), !0
} catch (e) {
return !1
}
}();
return function() {
var n, r = m(e);
if (t) {
var i = m(this).constructor;
n = Reflect.construct(r, arguments, i)
} else n = r.apply(this, arguments);
return f(this, n)
}
}
function U(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : ".";
if (e) {
if (e[t]) return e[t];
for (var r = t.split(n), i = e, a = 0; a < r.length; ++a) {
if (!i) return;
if ("string" === typeof i[r[a]] && a + 1 < r.length) return;
if (void 0 === i[r[a]]) {
for (var o = 2, s = r.slice(a, a + o).join(n), l = i[s]; void 0 === l && r.length > a + o;) o++, l = i[s = r.slice(a, a + o).join(n)];
if (void 0 === l) return;
if (null === l) return null;
if (t.endsWith(s)) {
if ("string" === typeof l) return l;
if (s && "string" === typeof l[s]) return l[s]
}
var c = r.slice(a + o).join(n);
return c ? U(l, c, n) : void 0
}
i = i[r[a]]
}
return i
}
}
var V = function(e) {
h(n, e);
var t = F(n);
function n(e) {
var r, i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {
ns: ["translation"],
defaultNS: "translation"
};
return s(this, n), r = t.call(this), L && k.call(d(r)), r.data = e || {}, r.options = i, void 0 === r.options.keySeparator && (r.options.keySeparator = "."), void 0 === r.options.ignoreJSONStructure && (r.options.ignoreJSONStructure = !0), r
}
return u(n, [{
key: "addNamespaces",
value: function(e) {
this.options.ns.indexOf(e) < 0 && this.options.ns.push(e)
}
}, {
key: "removeNamespaces",
value: function(e) {
var t = this.options.ns.indexOf(e);
t > -1 && this.options.ns.splice(t, 1)
}
}, {
key: "getResource",
value: function(e, t, n) {
var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {},
i = void 0 !== r.keySeparator ? r.keySeparator : this.options.keySeparator,
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 = A(this.data, o);
return s || !a || "string" !== typeof n ? s : U(this.data && this.data[e] && this.data[e][t], n, i)
}
}, {
key: "addResource",
value: function(e, t, n, r) {
var i = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : {
silent: !1
},
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)
}
}, {
key: "addResources",
value: function(e, t, n) {
var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {
silent: !1
};
for (var i in n) "string" !== typeof n[i] && "[object Array]" !== Object.prototype.toString.apply(n[i]) || this.addResource(e, t, i, n[i], {
silent: !0
});
r.silent || this.emit("added", e, t, n)
}
}, {
key: "addResourceBundle",
value: function(e, t, n, r, i) {
var a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : {
silent: !1
},
o = [e, t];
e.indexOf(".") > -1 && (r = n, n = t, t = (o = e.split("."))[1]), this.addNamespaces(t);
var s = A(this.data, o) || {};
r ? R(s, n, i) : s = z(z({}, s), n), I(this.data, o, s), a.silent || this.emit("added", e, t, n)
}
}, {
key: "removeResourceBundle",
value: function(e, t) {
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t)
}
}, {
key: "hasResourceBundle",
value: function(e, t) {
return void 0 !== this.getResource(e, t)
}
}, {
key: "getResourceBundle",
value: function(e, t) {
return t || (t = this.options.defaultNS), "v1" === this.options.compatibilityAPI ? z(z({}, {}), this.getResource(e, t)) : this.getResource(e, t)
}
}, {
key: "getDataByLanguage",
value: function(e) {
return this.data[e]
}
}, {
key: "hasLanguageSomeTranslations",
value: function(e) {
var t = this.getDataByLanguage(e);
return !!(t && Object.keys(t) || []).find((function(e) {
return t[e] && Object.keys(t[e]).length > 0
}))
}
}, {
key: "toJSON",
value: function() {
return this.data
}
}]), n
}(k),
G = {
processors: {},
addPostProcessor: function(e) {
this.processors[e.name] = e
},
handle: function(e, t, n, r, i) {
var a = this;
return e.forEach((function(e) {
a.processors[e] && (t = a.processors[e].process(t, n, r, i))
})), t
}
};
function B(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}))), n.push.apply(n, r)
}
return n
}
function $(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {};
t % 2 ? B(Object(n), !0).forEach((function(t) {
g(e, t, n[t])
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B(Object(n)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
}))
}
return e
}
function q(e) {
var t = function() {
if ("undefined" === typeof Reflect || !Reflect.construct) return !1;
if (Reflect.construct.sham) return !1;
if ("function" === typeof Proxy) return !0;
try {
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))), !0
} catch (e) {
return !1
}
}();
return function() {
var n, r = m(e);
if (t) {
var i = m(this).constructor;
n = Reflect.construct(r, arguments, i)
} else n = r.apply(this, arguments);
return f(this, n)
}
}
var W = {},
H = function(e) {
h(n, e);
var t = q(n);
function n(e) {
var r, i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
return s(this, n), r = t.call(this), L && k.call(d(r)), O(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, d(r)), r.options = i, void 0 === r.options.keySeparator && (r.options.keySeparator = "."), r.logger = w.create("translator"), r
}
return u(n, [{
key: "changeLanguage",
value: function(e) {
e && (this.language = e)
}
}, {
key: "exists",
value: function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {
interpolation: {}
};
if (void 0 === e || null === e) return !1;
var n = this.resolve(e, t);
return n && void 0 !== n.res
}
}, {
key: "extractFromKey",
value: function(e, t) {
var n = void 0 !== t.nsSeparator ? t.nsSeparator : this.options.nsSeparator;
void 0 === n && (n = ":");
var r = void 0 !== t.keySeparator ? t.keySeparator : this.options.keySeparator,
i = t.ns || this.options.defaultNS || [],
a = n && e.indexOf(n) > -1,
o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && ! function(e, t, n) {
t = t || "", n = n || "";
var r = j.filter((function(e) {
return t.indexOf(e) < 0 && n.indexOf(e) < 0
}));
if (0 === r.length) return !0;
var i = new RegExp("(".concat(r.map((function(e) {
return "?" === e ? "\\?" : e
})).join("|"), ")")),
a = !i.test(e);
if (!a) {
var o = e.indexOf(n);
o > 0 && !i.test(e.substring(0, o)) && (a = !0)
}
return a
}(e, n, r);
if (a && !o) {
var s = e.match(this.interpolator.nestingRegexp);
if (s && s.length > 0) return {
key: e,
namespaces: i
};
var l = e.split(n);
(n !== r || n === r && this.options.ns.indexOf(l[0]) > -1) && (i = l.shift()), e = l.join(r)
}
return "string" === typeof i && (i = [i]), {
key: e,
namespaces: i
}
}
}, {
key: "translate",
value: function(e, t, r) {
var i = this;
if ("object" !== o(t) && this.options.overloadTranslationOptionHandler && (t = this.options.overloadTranslationOptionHandler(arguments)), t || (t = {}), void 0 === e || null === e) return "";
Array.isArray(e) || (e = [String(e)]);
var a = void 0 !== t.returnDetails ? t.returnDetails : this.options.returnDetails,
s = void 0 !== t.keySeparator ? t.keySeparator : this.options.keySeparator,
l = this.extractFromKey(e[e.length - 1], t),
c = l.key,
u = l.namespaces,
d = u[u.length - 1],
p = t.lng || this.language,
h = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
if (p && "cimode" === p.toLowerCase()) {
if (h) {
var f = t.nsSeparator || this.options.nsSeparator;
return a ? (m.res = "".concat(d).concat(f).concat(c), m) : "".concat(d).concat(f).concat(c)
}
return a ? (m.res = c, m) : c
}
var m = this.resolve(e, t),
g = m && m.res,
v = m && m.usedKey || c,
_ = m && m.exactUsedKey || c,
y = Object.prototype.toString.apply(g),
b = ["[object Number]", "[object Function]", "[object RegExp]"],
x = void 0 !== t.joinArrays ? t.joinArrays : this.options.joinArrays,
w = !this.i18nFormat || this.i18nFormat.handleAsObject,
k = "string" !== typeof g && "boolean" !== typeof g && "number" !== typeof g;
if (w && g && k && b.indexOf(y) < 0 && ("string" !== typeof x || "[object Array]" !== y)) {
if (!t.returnObjects && !this.options.returnObjects) {
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
var E = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, g, $($({}, t), {}, {
ns: u
})) : "key '".concat(c, " (").concat(this.language, ")' returned an object instead of string.");
return a ? (m.res = E, m) : E
}
if (s) {
var S = "[object Array]" === y,
O = S ? [] : {},
P = S ? _ : v;
for (var I in g)
if (Object.prototype.hasOwnProperty.call(g, I)) {
var A = "".concat(P).concat(s).concat(I);
O[I] = this.translate(A, $($({}, t), {
joinArrays: !1,
ns: u
})), O[I] === A && (O[I] = g[I])
} g = O
}
} else if (w && "string" === typeof x && "[object Array]" === y)(g = g.join(x)) && (g = this.extendTranslation(g, e, t, r));
else {
var C = !1,
R = !1,
T = void 0 !== t.count && "string" !== typeof t.count,
D = n.hasDefaultValue(t),
N = T ? this.pluralResolver.getSuffix(p, t.count, t) : "",
L = t["defaultValue".concat(N)] || t.defaultValue;
!this.isValidLookup(g) && D && (C = !0, g = L), this.isValidLookup(g) || (R = !0, g = c);
var j = t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey,
M = j && R ? void 0 : g,
z = D && L !== g && this.options.updateMissing;
if (R || C || z) {
if (this.logger.log(z ? "updateKey" : "missingKey", p, d, c, z ? L : g), s) {
var F = this.resolve(c, $($({}, t), {}, {
keySeparator: !1
}));
F && F.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")
}
var U = [],
V = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
if ("fallback" === this.options.saveMissingTo && V && V[0])
for (var G = 0; G < V.length; G++) U.push(V[G]);
else "all" === this.options.saveMissingTo ? U = this.languageUtils.toResolveHierarchy(t.lng || this.language) : U.push(t.lng || this.language);
var B = function(e, n, r) {
var a = D && r !== g ? r : M;
i.options.missingKeyHandler ? i.options.missingKeyHandler(e, d, n, a, z, t) : i.backendConnector && i.backendConnector.saveMissing && i.backendConnector.saveMissing(e, d, n, a, z, t), i.emit("missingKey", e, d, n, g)
};
this.options.saveMissing && (this.options.saveMissingPlurals && T ? U.forEach((function(e) {
i.pluralResolver.getSuffixes(e, t).forEach((function(n) {
B([e], c + n, t["defaultValue".concat(n)] || L)
}))
})) : B(U, c, L))
}
g = this.extendTranslation(g, e, t, m, r), R && g === c && this.options.appendNamespaceToMissingKey && (g = "".concat(d, ":").concat(c)), (R || C) && this.options.parseMissingKeyHandler && (g = "v1" !== this.options.compatibilityAPI ? this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(d, ":").concat(c) : c, C ? g : void 0) : this.options.parseMissingKeyHandler(g))
}
return a ? (m.res = g, m) : g
}
}, {
key: "extendTranslation",
value: function(e, t, n, r, i) {
var a = this;
if (this.i18nFormat && this.i18nFormat.parse) e = this.i18nFormat.parse(e, $($({}, this.options.interpolation.defaultVariables), n), r.usedLng, r.usedNS, r.usedKey, {
resolved: r
});
else if (!n.skipInterpolation) {
n.interpolation && this.interpolator.init($($({}, n), {
interpolation: $($({}, this.options.interpolation), n.interpolation)
}));
var o, s = "string" === typeof e && (n && n.interpolation && void 0 !== n.interpolation.skipOnVariables ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
if (s) {
var l = e.match(this.interpolator.nestingRegexp);
o = l && l.length
}
var c = n.replace && "string" !== typeof n.replace ? n.replace : n;
if (this.options.interpolation.defaultVariables && (c = $($({}, this.options.interpolation.defaultVariables), c)), e = this.interpolator.interpolate(e, c, n.lng || this.language, n), s) {
var u = e.match(this.interpolator.nestingRegexp);
o < (u && u.length) && (n.nest = !1)
}!1 !== n.nest && (e = this.interpolator.nest(e, (function() {
for (var e = arguments.length, r = new Array(e), o = 0; o < e; o++) r[o] = arguments[o];
return i && i[0] === r[0] && !n.context ? (a.logger.warn("It seems you are nesting recursively key: ".concat(r[0], " in key: ").concat(t[0])), null) : a.translate.apply(a, r.concat([t]))
}), n)), n.interpolation && this.interpolator.reset()
}
var d = n.postProcess || this.options.postProcess,
p = "string" === typeof d ? [d] : d;
return void 0 !== e && null !== e && p && p.length && !1 !== n.applyPostProcessor && (e = G.handle(p, e, t, this.options && this.options.postProcessPassResolved ? $({
i18nResolved: r
}, n) : n, this)), e
}
}, {
key: "resolve",
value: function(e) {
var t, n, r, i, a, o = this,
s = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
return "string" === typeof e && (e = [e]), e.forEach((function(e) {
if (!o.isValidLookup(t)) {
var l = o.extractFromKey(e, s),
c = l.key;
n = c;
var u = l.namespaces;
o.options.fallbackNS && (u = u.concat(o.options.fallbackNS));
var d = void 0 !== s.count && "string" !== typeof s.count,
p = d && !s.ordinal && 0 === s.count && o.pluralResolver.shouldUseIntlApi(),
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) {
if (!o.isValidLookup(t)) {
i = n;
var a, l = [c];
if (o.i18nFormat && o.i18nFormat.addLookupKeys) o.i18nFormat.addLookupKeys(l, c, n, e, s);
else {
var u;
d && (u = o.pluralResolver.getSuffix(n, s.count, s));
var f = "".concat(o.options.pluralSeparator, "zero");
if (d && (l.push(c + u), p && l.push(c + f)), h) {
var m = "".concat(c).concat(o.options.contextSeparator).concat(s.context);
l.push(m), d && (l.push(m + u), p && l.push(m + f))
}
}
for (; a = l.pop();) o.isValidLookup(t) || (r = a, t = o.getResource(n, e, a, s))
}
})))
}))
}
})), {
res: t,
usedKey: n,
exactUsedKey: r,
usedLng: i,
usedNS: a
}
}
}, {
key: "isValidLookup",
value: function(e) {
return void 0 !== e && !(!this.options.returnNull && null === e) && !(!this.options.returnEmptyString && "" === e)
}
}, {
key: "getResource",
value: function(e, t, n) {
var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {};
return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(e, t, n, r) : this.resourceStore.getResource(e, t, n, r)
}
}], [{
key: "hasDefaultValue",
value: function(e) {
var t = "defaultValue";
for (var n in e)
if (Object.prototype.hasOwnProperty.call(e, n) && t === n.substring(0, t.length) && void 0 !== e[n]) return !0;
return !1
}
}]), n
}(k);
function Y(e) {
return e.charAt(0).toUpperCase() + e.slice(1)
}
var K = function() {
function e(t) {
s(this, e), this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = w.create("languageUtils")
}
return u(e, [{
key: "getScriptPartFromCode",
value: function(e) {
if (!e || e.indexOf("-") < 0) return null;
var t = e.split("-");
return 2 === t.length ? null : (t.pop(), "x" === t[t.length - 1].toLowerCase() ? null : this.formatLanguageCode(t.join("-")))
}
}, {
key: "getLanguagePartFromCode",
value: function(e) {
if (!e || e.indexOf("-") < 0) return e;
var t = e.split("-");
return this.formatLanguageCode(t[0])
}
}, {
key: "formatLanguageCode",
value: function(e) {
if ("string" === typeof e && e.indexOf("-") > -1) {
var t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"],
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] = Y(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] = Y(n[1].toLowerCase())), t.indexOf(n[2].toLowerCase()) > -1 && (n[2] = Y(n[2].toLowerCase()))), n.join("-")
}
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e
}
}, {
key: "isSupportedCode",
value: function(e) {
return ("languageOnly" === this.options.load || this.options.nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1
}
}, {
key: "getBestMatchFromCodes",
value: function(e) {
var t, n = this;
return e ? (e.forEach((function(e) {
if (!t) {
var r = n.formatLanguageCode(e);
n.options.supportedLngs && !n.isSupportedCode(r) || (t = r)
}
})), !t && this.options.supportedLngs && e.forEach((function(e) {
if (!t) {
var r = n.getLanguagePartFromCode(e);
if (n.isSupportedCode(r)) return t = r;
t = n.options.supportedLngs.find((function(e) {
if (0 === e.indexOf(r)) return e
}))
}
})), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t) : null
}
}, {
key: "getFallbackCodes",
value: function(e, t) {
if (!e) return [];
if ("function" === typeof e && (e = e(t)), "string" === typeof e && (e = [e]), "[object Array]" === Object.prototype.toString.apply(e)) return e;
if (!t) return e.default || [];
var n = e[t];
return n || (n = e[this.getScriptPartFromCode(t)]), n || (n = e[this.formatLanguageCode(t)]), n || (n = e[this.getLanguagePartFromCode(t)]), n || (n = e.default), n || []
}
}, {
key: "toResolveHierarchy",
value: function(e, t) {
var n = this,
r = this.getFallbackCodes(t || this.options.fallbackLng || [], e),
i = [],
a = function(e) {
e && (n.isSupportedCode(e) ? i.push(e) : n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))
};
return "string" === typeof e && e.indexOf("-") > -1 ? ("languageOnly" !== this.options.load && a(this.formatLanguageCode(e)), "languageOnly" !== this.options.load && "currentOnly" !== this.options.load && a(this.getScriptPartFromCode(e)), "currentOnly" !== this.options.load && a(this.getLanguagePartFromCode(e))) : "string" === typeof e && a(this.formatLanguageCode(e)), r.forEach((function(e) {
i.indexOf(e) < 0 && a(n.formatLanguageCode(e))
})), i
}
}]), e
}(),
Q = [{
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
nr: [1, 2],
fc: 1
}, {
lngs: ["af", "an", "ast", "az", "bg", "bn", "ca", "da", "de", "dev", "el", "en", "eo", "es", "et", "eu", "fi", "fo", "fur", "fy", "gl", "gu", "ha", "hi", "hu", "hy", "ia", "it", "kk", "kn", "ku", "lb", "mai", "ml", "mn", "mr", "nah", "nap", "nb", "ne", "nl", "nn", "no", "nso", "pa", "pap", "pms", "ps", "pt-PT", "rm", "sco", "se", "si", "so", "son", "sq", "sv", "sw", "ta", "te", "tk", "ur", "yo"],
nr: [1, 2],
fc: 2
}, {
lngs: ["ay", "bo", "cgg", "fa", "ht", "id", "ja", "jbo", "ka", "km", "ko", "ky", "lo", "ms", "sah", "su", "th", "tt", "ug", "vi", "wo", "zh"],
nr: [1],
fc: 3
}, {
lngs: ["be", "bs", "cnr", "dz", "hr", "ru", "sr", "uk"],
nr: [1, 2, 5],
fc: 4
}, {
lngs: ["ar"],
nr: [0, 1, 2, 3, 11, 100],
fc: 5
}, {
lngs: ["cs", "sk"],
nr: [1, 2, 5],
fc: 6
}, {
lngs: ["csb", "pl"],
nr: [1, 2, 5],
fc: 7
}, {
lngs: ["cy"],
nr: [1, 2, 3, 8],
fc: 8
}, {
lngs: ["fr"],
nr: [1, 2],
fc: 9
}, {
lngs: ["ga"],
nr: [1, 2, 3, 7, 11],
fc: 10
}, {
lngs: ["gd"],
nr: [1, 2, 3, 20],
fc: 11
}, {
lngs: ["is"],
nr: [1, 2],
fc: 12
}, {
lngs: ["jv"],
nr: [0, 1],
fc: 13
}, {
lngs: ["kw"],
nr: [1, 2, 3, 4],
fc: 14
}, {
lngs: ["lt"],
nr: [1, 2, 10],
fc: 15
}, {
lngs: ["lv"],
nr: [1, 2, 0],
fc: 16
}, {
lngs: ["mk"],
nr: [1, 2],
fc: 17
}, {
lngs: ["mnk"],
nr: [0, 1, 2],
fc: 18
}, {
lngs: ["mt"],
nr: [1, 2, 11, 20],
fc: 19
}, {
lngs: ["or"],
nr: [2, 1],
fc: 2
}, {
lngs: ["ro"],
nr: [1, 2, 20],
fc: 20
}, {
lngs: ["sl"],
nr: [5, 1, 2, 3],
fc: 21
}, {
lngs: ["he", "iw"],
nr: [1, 2, 20, 21],
fc: 22
}],
Z = {
1: function(e) {
return Number(e > 1)
},
2: function(e) {
return Number(1 != e)
},
3: function(e) {
return 0
},
4: function(e) {
return Number(e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2)
},
5: function(e) {
return Number(0 == e ? 0 : 1 == e ? 1 : 2 == e ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5)
},
6: function(e) {
return Number(1 == e ? 0 : e >= 2 && e <= 4 ? 1 : 2)
},
7: function(e) {
return Number(1 == e ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2)
},
8: function(e) {
return Number(1 == e ? 0 : 2 == e ? 1 : 8 != e && 11 != e ? 2 : 3)
},
9: function(e) {
return Number(e >= 2)
},
10: function(e) {
return Number(1 == e ? 0 : 2 == e ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4)
},
11: function(e) {
return Number(1 == e || 11 == e ? 0 : 2 == e || 12 == e ? 1 : e > 2 && e < 20 ? 2 : 3)
},
12: function(e) {
return Number(e % 10 != 1 || e % 100 == 11)
},
13: function(e) {
return Number(0 !== e)
},
14: function(e) {
return Number(1 == e ? 0 : 2 == e ? 1 : 3 == e ? 2 : 3)
},
15: function(e) {
return Number(e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2)
},
16: function(e) {
return Number(e % 10 == 1 && e % 100 != 11 ? 0 : 0 !== e ? 1 : 2)
},
17: function(e) {
return Number(1 == e || e % 10 == 1 && e % 100 != 11 ? 0 : 1)
},
18: function(e) {
return Number(0 == e ? 0 : 1 == e ? 1 : 2)
},
19: function(e) {
return Number(1 == e ? 0 : 0 == e || e % 100 > 1 && e % 100 < 11 ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3)
},
20: function(e) {
return Number(1 == e ? 0 : 0 == e || e % 100 > 0 && e % 100 < 20 ? 1 : 2)
},
21: function(e) {
return Number(e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0)
},
22: function(e) {
return Number(1 == e ? 0 : 2 == e ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3)
}
},
X = ["v1", "v2", "v3"],
J = {
zero: 0,
one: 1,
two: 2,
few: 3,
many: 4,
other: 5
};
function ee() {
var e = {};
return Q.forEach((function(t) {
t.lngs.forEach((function(n) {
e[n] = {
numbers: t.nr,
plurals: Z[t.fc]
}
}))
})), e
}
var te = function() {
function e(t) {
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
s(this, e), this.languageUtils = t, this.options = n, this.logger = w.create("pluralResolver"), this.options.compatibilityJSON && "v4" !== this.options.compatibilityJSON || "undefined" !== typeof Intl && Intl.PluralRules || (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = ee()
}
return u(e, [{
key: "addRule",
value: function(e, t) {
this.rules[e] = t
}
}, {
key: "getRule",
value: function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
if (this.shouldUseIntlApi()) try {
return new Intl.PluralRules(e, {
type: t.ordinal ? "ordinal" : "cardinal"
})
} catch (n) {
return
}
return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)]
}
}, {
key: "needsPlural",
value: function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
n = this.getRule(e, t);
return this.shouldUseIntlApi() ? n && n.resolvedOptions().pluralCategories.length > 1 : n && n.numbers.length > 1
}
}, {
key: "getPluralFormsOfKey",
value: function(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
return this.getSuffixes(e, n).map((function(e) {
return "".concat(t).concat(e)
}))
}
}, {
key: "getSuffixes",
value: function(e) {
var t = this,
n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
r = this.getRule(e, n);
return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((function(e, t) {
return J[e] - J[t]
})).map((function(e) {
return "".concat(t.options.prepend).concat(e)
})) : r.numbers.map((function(r) {
return t.getSuffix(e, r, n)
})) : []
}
}, {
key: "getSuffix",
value: function(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
r = this.getRule(e, n);
return r ? this.shouldUseIntlApi() ? "".concat(this.options.prepend).concat(r.select(t)) : this.getSuffixRetroCompatible(r, t) : (this.logger.warn("no plural rule found for: ".concat(e)), "")
}
}, {
key: "getSuffixRetroCompatible",
value: function(e, t) {
var n = this,
r = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t)),
i = e.numbers[r];
this.options.simplifyPluralSuffix && 2 === e.numbers.length && 1 === e.numbers[0] && (2 === i ? i = "plural" : 1 === i && (i = ""));
var a = function() {
return n.options.prepend && i.toString() ? n.options.prepend + i.toString() : i.toString()
};
return "v1" === this.options.compatibilityJSON ? 1 === i ? "" : "number" === typeof i ? "_plural_".concat(i.toString()) : a() : "v2" === this.options.compatibilityJSON || this.options.simplifyPluralSuffix && 2 === e.numbers.length && 1 === e.numbers[0] ? a() : this.options.prepend && r.toString() ? this.options.prepend + r.toString() : r.toString()
}
}, {
key: "shouldUseIntlApi",
value: function() {
return !X.includes(this.options.compatibilityJSON)
}
}]), e
}();
function ne(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}))), n.push.apply(n, r)
}
return n
}
function re(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {};
t % 2 ? ne(Object(n), !0).forEach((function(t) {
g(e, t, n[t])
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ne(Object(n)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
}))
}
return e
}
var ie = function() {
function e() {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
s(this, e), this.logger = w.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(e) {
return e
}, this.init(t)
}
return u(e, [{
key: "init",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
e.interpolation || (e.interpolation = {
escapeValue: !0
});
var t = e.interpolation;
this.escape = void 0 !== t.escape ? t.escape : N, this.escapeValue = void 0 === t.escapeValue || t.escapeValue, this.useRawValueToEscape = void 0 !== t.useRawValueToEscape && t.useRawValueToEscape, this.prefix = t.prefix ? T(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? T(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? T(t.nestingPrefix) : t.nestingPrefixEscaped || T("$t("), this.nestingSuffix = t.nestingSuffix ? T(t.nestingSuffix) : t.nestingSuffixEscaped || T(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = void 0 !== t.alwaysFormat && t.alwaysFormat, this.resetRegExp()
}
}, {
key: "reset",
value: function() {
this.options && this.init(this.options)
}
}, {
key: "resetRegExp",
value: function() {
var e = "".concat(this.prefix, "(.+?)").concat(this.suffix);
this.regexp = new RegExp(e, "g");
var t = "".concat(this.prefix).concat(this.unescapePrefix, "(.+?)").concat(this.unescapeSuffix).concat(this.suffix);
this.regexpUnescape = new RegExp(t, "g");
var n = "".concat(this.nestingPrefix, "(.+?)").concat(this.nestingSuffix);
this.nestingRegexp = new RegExp(n, "g")
}
}, {
key: "interpolate",
value: function(e, t, n, r) {
var i, a, o, s = this,
l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
function c(e) {
return e.replace(/\$/g, "$$$$")
}
var u = function(e) {
if (e.indexOf(s.formatSeparator) < 0) {
var i = C(t, l, e);
return s.alwaysFormat ? s.format(i, void 0, n, re(re(re({}, r), t), {}, {
interpolationkey: e
})) : i
}
var a = e.split(s.formatSeparator),
o = a.shift().trim(),
c = a.join(s.formatSeparator).trim();
return s.format(C(t, l, o), c, n, re(re(re({}, r), t), {}, {
interpolationkey: o
}))
};
this.resetRegExp();
var d = r && r.missingInterpolationHandler || this.options.missingInterpolationHandler,
p = r && r.interpolation && void 0 !== r.interpolation.skipOnVariables ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
return [{
regex: this.regexpUnescape,
safeValue: function(e) {
return c(e)
}
}, {
regex: this.regexp,
safeValue: function(e) {
return s.escapeValue ? c(s.escape(e)) : c(e)
}
}].forEach((function(t) {
for (o = 0; i = t.regex.exec(e);) {
var n = i[1].trim();
if (void 0 === (a = u(n)))
if ("function" === typeof d) {
var l = d(e, i, r);
a = "string" === typeof l ? l : ""
} else if (r && r.hasOwnProperty(n)) a = "";
else {
if (p) {
a = i[0];
continue
}
s.logger.warn("missed to pass in variable ".concat(n, " for interpolating ").concat(e)), a = ""
} else "string" === typeof a || s.useRawValueToEscape || (a = S(a));
var c = t.safeValue(a);
if (e = e.replace(i[0], c), p ? (t.regex.lastIndex += a.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, ++o >= s.maxReplaces) break
}
})), e
}
}, {
key: "nest",
value: function(e, t) {
var n, r, i, a = this,
o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
function s(e, t) {
var n = this.nestingOptionsSeparator;
if (e.indexOf(n) < 0) return e;
var r = e.split(new RegExp("".concat(n, "[ ]*{"))),
a = "{".concat(r[1]);
e = r[0];
var o = (a = this.interpolate(a, i)).match(/'/g),
s = a.match(/"/g);
(o && o.length % 2 === 0 && !s || s.length % 2 !== 0) && (a = a.replace(/'/g, '"'));
try {
i = JSON.parse(a), t && (i = re(re({}, t), i))
} catch (l) {
return this.logger.warn("failed parsing options string in nesting for key ".concat(e), l), "".concat(e).concat(n).concat(a)
}
return delete i.defaultValue, e
}
for (; n = this.nestingRegexp.exec(e);) {
var l = [];
(i = (i = re({}, o)).replace && "string" !== typeof i.replace ? i.replace : i).applyPostProcessor = !1, delete i.defaultValue;
var c = !1;
if (-1 !== n[0].indexOf(this.formatSeparator) && !/{.*}/.test(n[1])) {
var u = n[1].split(this.formatSeparator).map((function(e) {
return e.trim()
}));
n[1] = u.shift(), l = u, c = !0
}
if ((r = t(s.call(this, n[1].trim(), i), i)) && n[0] === e && "string" !== typeof r) return r;
"string" !== typeof r && (r = S(r)), r || (this.logger.warn("missed to resolve ".concat(n[1], " for nesting ").concat(e)), r = ""), c && (r = l.reduce((function(e, t) {
return a.format(e, t, o.lng, re(re({}, o), {}, {
interpolationkey: n[1].trim()
}))
}), r.trim())), e = e.replace(n[0], r), this.regexp.lastIndex = 0
}
return e
}
}]), e
}();
function ae(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}))), n.push.apply(n, r)
}
return n
}
function oe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {};
t % 2 ? ae(Object(n), !0).forEach((function(t) {
g(e, t, n[t])
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ae(Object(n)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
}))
}
return e
}
function se(e) {
var t = {};
return function(n, r, i) {
var a = r + JSON.stringify(i),
o = t[a];
return o || (o = e(r, i), t[a] = o), o(n)
}
}
var le = function() {
function e() {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
s(this, e), this.logger = w.create("formatter"), this.options = t, this.formats = {
number: se((function(e, t) {
var n = new Intl.NumberFormat(e, t);
return function(e) {
return n.format(e)
}
})),
currency: se((function(e, t) {
var n = new Intl.NumberFormat(e, oe(oe({}, t), {}, {
style: "currency"
}));
return function(e) {
return n.format(e)
}
})),
datetime: se((function(e, t) {
var n = new Intl.DateTimeFormat(e, oe({}, t));
return function(e) {
return n.format(e)
}
})),
relativetime: se((function(e, t) {
var n = new Intl.RelativeTimeFormat(e, oe({}, t));
return function(e) {
return n.format(e, t.range || "day")
}
})),
list: se((function(e, t) {
var n = new Intl.ListFormat(e, oe({}, t));
return function(e) {
return n.format(e)
}
}))
}, this.init(t)
}
return u(e, [{
key: "init",
value: function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {
interpolation: {}
},
n = t.interpolation;
this.formatSeparator = n.formatSeparator ? n.formatSeparator : n.formatSeparator || ","
}
}, {
key: "add",
value: function(e, t) {
this.formats[e.toLowerCase().trim()] = t
}
}, {
key: "addCached",
value: function(e, t) {
this.formats[e.toLowerCase().trim()] = se(t)
}
}, {
key: "format",
value: function(e, t, n, r) {
var i = this,
a = t.split(this.formatSeparator).reduce((function(e, t) {
var a = function(e) {
var t = e.toLowerCase().trim(),
n = {};
if (e.indexOf("(") > -1) {
var r = e.split("(");
t = r[0].toLowerCase().trim();
var i = r[1].substring(0, r[1].length - 1);
"currency" === t && i.indexOf(":") < 0 ? n.currency || (n.currency = i.trim()) : "relativetime" === t && i.indexOf(":") < 0 ? n.range || (n.range = i.trim()) : i.split(";").forEach((function(e) {
if (e) {
var t = _(e.split(":")),
r = t[0],
i = t.slice(1).join(":").trim().replace(/^'+|'+$/g, "");
n[r.trim()] || (n[r.trim()] = i), "false" === i && (n[r.trim()] = !1), "true" === i && (n[r.trim()] = !0), isNaN(i) || (n[r.trim()] = parseInt(i, 10))
}
}))
}
return {
formatName: t,
formatOptions: n
}
}(t),
o = a.formatName,
s = a.formatOptions;
if (i.formats[o]) {
var l = e;
try {
var c = r && r.formatParams && r.formatParams[r.interpolationkey] || {},
u = c.locale || c.lng || r.locale || r.lng || n;
l = i.formats[o](e, u, oe(oe(oe({}, s), r), c))
} catch (d) {
i.logger.warn(d)
}
return l
}
return i.logger.warn("there was no format function for ".concat(o)), e
}), e);
return a
}
}]), e
}();
function ce(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}))), n.push.apply(n, r)
}
return n
}
function ue(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {};
t % 2 ? ce(Object(n), !0).forEach((function(t) {
g(e, t, n[t])
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ce(Object(n)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
}))
}
return e
}
function de(e) {
var t = function() {
if ("undefined" === typeof Reflect || !Reflect.construct) return !1;
if (Reflect.construct.sham) return !1;
if ("function" === typeof Proxy) return !0;
try {
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))), !0
} catch (e) {
return !1
}
}();
return function() {
var n, r = m(e);
if (t) {
var i = m(this).constructor;
n = Reflect.construct(r, arguments, i)
} else n = r.apply(this, arguments);
return f(this, n)
}
}
var pe = function(e) {
h(n, e);
var t = de(n);
function n(e, r, i) {
var a, o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {};
return s(this, n), a = t.call(this), L && k.call(d(a)), a.backend = e, a.store = r, a.services = i, a.languageUtils = i.languageUtils, a.options = o, a.logger = w.create("backendConnector"), a.waitingReads = [], a.maxParallelReads = o.maxParallelReads || 10, a.readingCalls = 0, a.maxRetries = o.maxRetries >= 0 ? o.maxRetries : 5, a.retryTimeout = o.retryTimeout >= 1 ? o.retryTimeout : 350, a.state = {}, a.queue = [], a.backend && a.backend.init && a.backend.init(i, o.backend, o), a
}
return u(n, [{
key: "queueLoad",
value: function(e, t, n, r) {
var i = this,
a = {},
o = {},
s = {},
l = {};
return e.forEach((function(e) {
var r = !0;
t.forEach((function(t) {
var s = "".concat(e, "|").concat(t);
!n.reload && i.store.hasResourceBundle(e, t) ? i.state[s] = 2 : i.state[s] < 0 || (1 === i.state[s] ? void 0 === o[s] && (o[s] = !0) : (i.state[s] = 1, r = !1, void 0 === o[s] && (o[s] = !0), void 0 === a[s] && (a[s] = !0), void 0 === l[t] && (l[t] = !0)))
})), r || (s[e] = !0)
})), (Object.keys(a).length || Object.keys(o).length) && this.queue.push({
pending: o,
pendingCount: Object.keys(o).length,
loaded: {},
errors: [],
callback: r
}), {
toLoad: Object.keys(a),
pending: Object.keys(o),
toLoadLanguages: Object.keys(s),
toLoadNamespaces: Object.keys(l)
}
}
}, {
key: "loaded",
value: function(e, t, n) {
var r = e.split("|"),
i = r[0],
a = r[1];
t && this.emit("failedLoading", i, a, t), n && this.store.addResourceBundle(i, a, n), this.state[e] = t ? -1 : 2;
var o = {};
this.queue.forEach((function(n) {
! function(e, t, n, r) {
var i = P(e, t, Object),
a = i.obj,
o = i.k;
a[o] = a[o] || [], r && (a[o] = a[o].concat(n)), r || a[o].push(n)
}(n.loaded, [i], a),
function(e, t) {
void 0 !== e.pending[t] && (delete e.pending[t], e.pendingCount--)
}(n, e), t && n.errors.push(t), 0 !== n.pendingCount || n.done || (Object.keys(n.loaded).forEach((function(e) {
o[e] || (o[e] = {});
var t = n.loaded[e];
t.length && t.forEach((function(t) {
void 0 === o[e][t] && (o[e][t] = !0)
}))
})), n.done = !0, n.errors.length ? n.callback(n.errors) : n.callback())
})), this.emit("loaded", o), this.queue = this.queue.filter((function(e) {
return !e.done
}))
}
}, {
key: "read",
value: function(e, t, n) {
var r = this,
i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0,
a = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : this.retryTimeout,
o = arguments.length > 5 ? arguments[5] : void 0;
if (!e.length) return o(null, {});
if (this.readingCalls >= this.maxParallelReads) this.waitingReads.push({
lng: e,
ns: t,
fcName: n,
tried: i,
wait: a,
callback: o
});
else {
this.readingCalls++;
var s = function(s, l) {
if (r.readingCalls--, r.waitingReads.length > 0) {
var c = r.waitingReads.shift();
r.read(c.lng, c.ns, c.fcName, c.tried, c.wait, c.callback)
}
s && l && i < r.maxRetries ? setTimeout((function() {
r.read.call(r, e, t, n, i + 1, 2 * a, o)
}), a) : o(s, l)
},
l = this.backend[n].bind(this.backend);
if (2 !== l.length) return l(e, t, s);
try {
var c = l(e, t);
c && "function" === typeof c.then ? c.then((function(e) {
return s(null, e)
})).catch(s) : s(null, c)
} catch (u) {
s(u)
}
}
}
}, {
key: "prepareLoading",
value: function(e, t) {
var n = this,
r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
i = arguments.length > 3 ? arguments[3] : void 0;
if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), i && i();
"string" === typeof e && (e = this.languageUtils.toResolveHierarchy(e)), "string" === typeof t && (t = [t]);
var a = this.queueLoad(e, t, r, i);
if (!a.toLoad.length) return a.pending.length || i(), null;
a.toLoad.forEach((function(e) {
n.loadOne(e)
}))
}
}, {
key: "load",
value: function(e, t, n) {
this.prepareLoading(e, t, {}, n)
}
}, {
key: "reload",
value: function(e, t, n) {
this.prepareLoading(e, t, {
reload: !0
}, n)
}
}, {
key: "loadOne",
value: function(e) {
var t = this,
n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "",
r = e.split("|"),
i = r[0],
a = r[1];
this.read(i, a, "read", void 0, void 0, (function(r, o) {
r && t.logger.warn("".concat(n, "loading namespace ").concat(a, " for language ").concat(i, " failed"), r), !r && o && t.logger.log("".concat(n, "loaded namespace ").concat(a, " for language ").concat(i), o), t.loaded(e, r, o)
}))
}
}, {
key: "saveMissing",
value: function(e, t, n, r, i) {
var a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : {},
o = arguments.length > 6 && void 0 !== arguments[6] ? arguments[6] : function() {};
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) this.logger.warn('did not save key "'.concat(n, '" as the namespace "').concat(t, '" 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!!!");
else if (void 0 !== n && null !== n && "" !== n) {
if (this.backend && this.backend.create) {
var s = ue(ue({}, a), {}, {
isUpdate: i
}),
l = this.backend.create.bind(this.backend);
if (l.length < 6) try {
var c;
(c = 5 === l.length ? l(e, t, n, r, s) : l(e, t, n, r)) && "function" === typeof c.then ? c.then((function(e) {
return o(null, e)
})).catch(o) : o(null, c)
} catch (u) {
o(u)
} else l(e, t, n, r, o, s)
}
e && e[0] && this.store.addResource(e[0], t, n, r)
}
}
}]), n
}(k);
function he() {
return {
debug: !1,
initImmediate: !0,
ns: ["translation"],
defaultNS: ["translation"],
fallbackLng: ["dev"],
fallbackNS: !1,
supportedLngs: !1,
nonExplicitSupportedLngs: !1,
load: "all",
preload: !1,
simplifyPluralSuffix: !0,
keySeparator: ".",
nsSeparator: ":",
pluralSeparator: "_",
contextSeparator: "_",
partialBundledLanguages: !1,
saveMissing: !1,
updateMissing: !1,
saveMissingTo: "fallback",
saveMissingPlurals: !0,
missingKeyHandler: !1,
missingInterpolationHandler: !1,
postProcess: !1,
postProcessPassResolved: !1,
returnNull: !0,
returnEmptyString: !0,
returnObjects: !1,
joinArrays: !1,
returnedObjectHandler: !1,
parseMissingKeyHandler: !1,
appendNamespaceToMissingKey: !1,
appendNamespaceToCIMode: !1,
overloadTranslationOptionHandler: function(e) {
var t = {};
if ("object" === o(e[1]) && (t = e[1]), "string" === typeof e[1] && (t.defaultValue = e[1]), "string" === typeof e[2] && (t.tDescription = e[2]), "object" === o(e[2]) || "object" === o(e[3])) {
var n = e[3] || e[2];
Object.keys(n).forEach((function(e) {
t[e] = n[e]
}))
}
return t
},
interpolation: {
escapeValue: !0,
format: function(e, t, n, r) {
return e
},
prefix: "{{",
suffix: "}}",
formatSeparator: ",",
unescapePrefix: "-",
nestingPrefix: "$t(",
nestingSuffix: ")",
nestingOptionsSeparator: ",",
maxReplaces: 1e3,
skipOnVariables: !0
}
}
}
function fe(e) {
return "string" === typeof e.ns && (e.ns = [e.ns]), "string" === typeof e.fallbackLng && (e.fallbackLng = [e.fallbackLng]), "string" === typeof e.fallbackNS && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e
}
function me(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}))), n.push.apply(n, r)
}
return n
}
function ge(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {};
t % 2 ? me(Object(n), !0).forEach((function(t) {
g(e, t, n[t])
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : me(Object(n)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
}))
}
return e
}
function ve(e) {
var t = function() {
if ("undefined" === typeof Reflect || !Reflect.construct) return !1;
if (Reflect.construct.sham) return !1;
if ("function" === typeof Proxy) return !0;
try {
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))), !0
} catch (e) {
return !1
}
}();
return function() {
var n, r = m(e);
if (t) {
var i = m(this).constructor;
n = Reflect.construct(r, arguments, i)
} else n = r.apply(this, arguments);
return f(this, n)
}
}
function _e() {}
function ye(e) {
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t) {
"function" === typeof e[t] && (e[t] = e[t].bind(e))
}))
}
var be = function(e) {
h(n, e);
var t = ve(n);
function n() {
var e, r = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
i = arguments.length > 1 ? arguments[1] : void 0;
if (s(this, n), e = t.call(this), L && k.call(d(e)), e.options = fe(r), e.services = {}, e.logger = w, e.modules = {
external: []
}, ye(d(e)), i && !e.isInitialized && !r.isClone) {
if (!e.options.initImmediate) return e.init(r, i), f(e, d(e));
setTimeout((function() {
e.init(r, i)
}), 0)
}
return e
}
return u(n, [{
key: "init",
value: function() {
var e = this,
t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
n = arguments.length > 1 ? arguments[1] : void 0;
"function" === typeof t && (n = t, t = {}), !t.defaultNS && !1 !== t.defaultNS && t.ns && ("string" === typeof t.ns ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
var r = he();
function i(e) {
return e ? "function" === typeof e ? new e : e : null
}
if (this.options = ge(ge(ge({}, r), this.options), fe(t)), "v1" !== this.options.compatibilityAPI && (this.options.interpolation = ge(ge({}, r.interpolation), this.options.interpolation)), void 0 !== t.keySeparator && (this.options.userDefinedKeySeparator = t.keySeparator), void 0 !== t.nsSeparator && (this.options.userDefinedNsSeparator = t.nsSeparator), !this.options.isClone) {
var a;
this.modules.logger ? w.init(i(this.modules.logger), this.options) : w.init(null, this.options), this.modules.formatter ? a = this.modules.formatter : "undefined" !== typeof Intl && (a = le);
var o = new K(this.options);
this.store = new V(this.options.resources, this.options);
var s = this.services;
s.logger = w, s.resourceStore = this.store, s.languageUtils = o, s.pluralResolver = new te(o, {
prepend: this.options.pluralSeparator,
compatibilityJSON: this.options.compatibilityJSON,
simplifyPluralSuffix: this.options.simplifyPluralSuffix
}), !a || this.options.interpolation.format && this.options.interpolation.format !== r.interpolation.format || (s.formatter = i(a), s.formatter.init(s, this.options), this.options.interpolation.format = s.formatter.format.bind(s.formatter)), s.interpolator = new ie(this.options), s.utils = {
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
}, s.backendConnector = new pe(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 H(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) {
t.init && t.init(e)
}))
}
if (this.format = this.options.interpolation.format, n || (n = _e), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
var l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
l.length > 0 && "dev" !== l[0] && (this.options.lng = l[0])
}
this.services.languageDetector || this.options.lng || this.logger.warn("init: no languageDetector is used and no lng is defined");
var c = ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"];
c.forEach((function(t) {
e[t] = function() {
var n;
return (n = e.store)[t].apply(n, arguments)
}
}));
var u = ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"];
u.forEach((function(t) {
e[t] = function() {
var n;
return (n = e.store)[t].apply(n, arguments), e
}
}));
var d = E(),
p = function() {
var t = function(t, r) {
e.isInitialized && !e.initializedStoreOnce && e.logger.warn("init: i18next is already initialized. You should call init just once!"), e.isInitialized = !0, e.options.isClone || e.logger.log("initialized", e.options), e.emit("initialized", e.options), d.resolve(r), n(t, r)
};
if (e.languages && "v1" !== e.options.compatibilityAPI && !e.isInitialized) return t(null, e.t.bind(e));
e.changeLanguage(e.options.lng, t)
};
return this.options.resources || !this.options.initImmediate ? p() : setTimeout(p, 0), d
}
}, {
key: "loadResources",
value: function(e) {
var t = this,
n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : _e,
r = n,
i = "string" === typeof e ? e : this.language;
if ("function" === typeof e && (r = e), !this.options.resources || this.options.partialBundledLanguages) {
if (i && "cimode" === i.toLowerCase()) return r();
var a = [],
o = function(e) {
e && t.services.languageUtils.toResolveHierarchy(e).forEach((function(e) {
a.indexOf(e) < 0 && a.push(e)
}))
};
if (i) o(i);
else {
var s = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
s.forEach((function(e) {
return o(e)
}))
}
this.options.preload && this.options.preload.forEach((function(e) {
return o(e)
})), this.services.backendConnector.load(a, this.options.ns, (function(e) {
e || t.resolvedLanguage || !t.language || t.setResolvedLanguage(t.language), r(e)
}))
} else r(null)
}
}, {
key: "reloadResources",
value: function(e, t, n) {
var r = E();
return e || (e = this.languages), t || (t = this.options.ns), n || (n = _e), this.services.backendConnector.reload(e, t, (function(e) {
r.resolve(), n(e)
})), r
}
}, {
key: "use",
value: function(e) {
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
return "backend" === e.type && (this.modules.backend = e), ("logger" === e.type || e.log && e.warn && e.error) && (this.modules.logger = e), "languageDetector" === e.type && (this.modules.languageDetector = e), "i18nFormat" === e.type && (this.modules.i18nFormat = e), "postProcessor" === e.type && G.addPostProcessor(e), "formatter" === e.type && (this.modules.formatter = e), "3rdParty" === e.type && this.modules.external.push(e), this
}
}, {
key: "setResolvedLanguage",
value: function(e) {
if (e && this.languages && !(["cimode", "dev"].indexOf(e) > -1))
for (var t = 0; t < this.languages.length; t++) {
var n = this.languages[t];
if (!(["cimode", "dev"].indexOf(n) > -1) && this.store.hasLanguageSomeTranslations(n)) {
this.resolvedLanguage = n;
break
}
}
}
}, {
key: "changeLanguage",
value: function(e, t) {
var n = this;
this.isLanguageChangingTo = e;
var r = E();
this.emit("languageChanging", e);
var i = function(e) {
n.language = e, n.languages = n.services.languageUtils.toResolveHierarchy(e), n.resolvedLanguage = void 0, n.setResolvedLanguage(e)
},
a = function(a) {
e || a || !n.services.languageDetector || (a = []);
var o = "string" === typeof a ? a : n.services.languageUtils.getBestMatchFromCodes(a);
o && (n.language || i(o), n.translator.language || n.translator.changeLanguage(o), n.services.languageDetector && n.services.languageDetector.cacheUserLanguage && n.services.languageDetector.cacheUserLanguage(o)), n.loadResources(o, (function(e) {
! function(e, a) {
a ? (i(a), n.translator.changeLanguage(a), n.isLanguageChangingTo = void 0, n.emit("languageChanged", a), n.logger.log("languageChanged", a)) : n.isLanguageChangingTo = void 0, r.resolve((function() {
return n.t.apply(n, arguments)
})), t && t(e, (function() {
return n.t.apply(n, arguments)
}))
}(e, o)
}))
};
return e || !this.services.languageDetector || this.services.languageDetector.async ? !e && this.services.languageDetector && this.services.languageDetector.async ? 0 === this.services.languageDetector.detect.length ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e) : a(this.services.languageDetector.detect()), r
}
}, {
key: "getFixedT",
value: function(e, t, n) {
var r = this,
i = function e(t, i) {
var a;
if ("object" !== o(i)) {
for (var s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), c = 2; c < s; c++) l[c - 2] = arguments[c];
a = r.options.overloadTranslationOptionHandler([t, i].concat(l))
} else a = ge({}, i);
a.lng = a.lng || e.lng, a.lngs = a.lngs || e.lngs, a.ns = a.ns || e.ns, a.keyPrefix = a.keyPrefix || n || e.keyPrefix;
var u, d = r.options.keySeparator || ".";
return u = a.keyPrefix && Array.isArray(t) ? t.map((function(e) {
return "".concat(a.keyPrefix).concat(d).concat(e)
})) : a.keyPrefix ? "".concat(a.keyPrefix).concat(d).concat(t) : t, r.t(u, a)
};
return "string" === typeof e ? i.lng = e : i.lngs = e, i.ns = t, i.keyPrefix = n, i
}
}, {
key: "t",
value: function() {
var e;
return this.translator && (e = this.translator).translate.apply(e, arguments)
}
}, {
key: "exists",
value: function() {
var e;
return this.translator && (e = this.translator).exists.apply(e, arguments)
}
}, {
key: "setDefaultNamespace",
value: function(e) {
this.options.defaultNS = e
}
}, {
key: "hasLoadedNamespace",
value: function(e) {
var t = this,
n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
if (!this.isInitialized) return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
if (!this.languages || !this.languages.length) return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
var r = this.resolvedLanguage || this.languages[0],
i = !!this.options && this.options.fallbackLng,
a = this.languages[this.languages.length - 1];
if ("cimode" === r.toLowerCase()) return !0;
var o = function(e, n) {
var r = t.services.backendConnector.state["".concat(e, "|").concat(n)];
return -1 === r || 2 === r
};
if (n.precheck) {
var s = n.precheck(this, o);
if (void 0 !== s) return s
}
return !!this.hasResourceBundle(r, e) || (!(this.services.backendConnector.backend && (!this.options.resources || this.options.partialBundledLanguages)) || !(!o(r, e) || i && !o(a, e)))
}
}, {
key: "loadNamespaces",
value: function(e, t) {
var n = this,
r = E();
return this.options.ns ? ("string" === typeof e && (e = [e]), e.forEach((function(e) {
n.options.ns.indexOf(e) < 0 && n.options.ns.push(e)
})), this.loadResources((function(e) {
r.resolve(), t && t(e)
})), r) : (t && t(), Promise.resolve())
}
}, {
key: "loadLanguages",
value: function(e, t) {
var n = E();
"string" === typeof e && (e = [e]);
var r = this.options.preload || [],
i = e.filter((function(e) {
return r.indexOf(e) < 0
}));
return i.length ? (this.options.preload = r.concat(i), this.loadResources((function(e) {
n.resolve(), t && t(e)
})), n) : (t && t(), Promise.resolve())
}
}, {
key: "dir",
value: function(e) {
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl";
var t = this.services && this.services.languageUtils || new K(he());
return ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"].indexOf(t.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr"
}
}, {
key: "cloneInstance",
value: function() {
var e = this,
t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : _e,
i = ge(ge(ge({}, this.options), t), {
isClone: !0
}),
a = new n(i);
void 0 === t.debug && void 0 === t.prefix || (a.logger = a.logger.clone(t));
var o = ["store", "services", "language"];
return o.forEach((function(t) {
a[t] = e[t]
})), a.services = ge({}, this.services), a.services.utils = {
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
}, a.translator = new H(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 = {
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
}, a
}
}, {
key: "toJSON",
value: function() {
return {
options: this.options,
store: this.store,
language: this.language,
languages: this.languages,
resolvedLanguage: this.resolvedLanguage
}
}
}]), n
}(k);
g(be, "createInstance", (function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
t = arguments.length > 1 ? arguments[1] : void 0;
return new be(e, t)
}));
var xe = be.createInstance();
xe.createInstance = be.createInstance;
xe.createInstance, xe.dir, xe.init, xe.loadResources, xe.reloadResources, xe.use, xe.changeLanguage, xe.getFixedT;
var we = xe.t;
xe.exists, xe.setDefaultNamespace, xe.hasLoadedNamespace, xe.loadNamespaces, xe.loadLanguages;
function ke(e) {
return ke = "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
}, ke(e)
}
function Ee(e) {
var t = function(e, t) {
if ("object" !== ke(e) || null === e) return e;
var n = e[Symbol.toPrimitive];
if (void 0 !== n) {
var r = n.call(e, t || "default");
if ("object" !== ke(r)) return r;
throw new TypeError("@@toPrimitive must return a primitive value.")
}
return ("string" === t ? String : Number)(e)
}(e, "string");
return "symbol" === ke(t) ? t : String(t)
}
function Se(e, t, n) {
return (t = Ee(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e
}
function Oe(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
}
var Pe = n(1479),
Ie = n.t(Pe, 2),
Ae = n(7399),
Ce = n.n(Ae),
Re = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
function Te(e) {
var t = {
type: "tag",
name: "",
voidElement: !1,
attrs: {},
children: []
},
n = e.match(/<\/?([^\s]+?)[/\s>]/);
if (n && (t.name = n[1], (Ce()[n[1]] || "/" === e.charAt(e.length - 2)) && (t.voidElement = !0), t.name.startsWith("!--"))) {
var r = e.indexOf("--\x3e");
return {
type: "comment",
comment: -1 !== r ? e.slice(4, r) : ""
}
}
for (var i = new RegExp(Re), a = null; null !== (a = i.exec(e));)
if (a[0].trim())
if (a[1]) {
var o = a[1].trim(),
s = [o, ""];
o.indexOf("=") > -1 && (s = o.split("=")), t.attrs[s[0]] = s[1], i.lastIndex--
} else a[2] && (t.attrs[a[2]] = a[3].trim().substring(1, a[3].length - 1));
return t
}
var De = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,
Ne = /^\s*$/,
Le = Object.create(null);
function je(e, t) {
switch (t.type) {
case "text":
return e + t.content;
case "tag":
return e += "<" + t.name + (t.attrs ? function(e) {
var t = [];
for (var n in e) t.push(n + '="' + e[n] + '"');
return t.length ? " " + t.join(" ") : ""
}(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? e : e + t.children.reduce(je, "") + "</" + t.name + ">";
case "comment":
return e + "\x3c!--" + t.comment + "--\x3e"
}
}
var Me = {
parse: function(e, t) {
t || (t = {}), t.components || (t.components = Le);
var n, r = [],
i = [],
a = -1,
o = !1;
if (0 !== e.indexOf("<")) {
var s = e.indexOf("<");
r.push({
type: "text",
content: -1 === s ? e : e.substring(0, s)
})
}
return e.replace(De, (function(s, l) {
if (o) {
if (s !== "</" + n.name + ">") return;
o = !1
}
var c, u = "/" !== s.charAt(1),
d = s.startsWith("\x3c!--"),
p = l + s.length,
h = e.charAt(p);
if (d) {
var f = Te(s);
return a < 0 ? (r.push(f), r) : ((c = i[a]).children.push(f), r)
}
if (u && (a++, "tag" === (n = Te(s)).type && t.components[n.name] && (n.type = "component", o = !0), n.voidElement || o || !h || "<" === h || n.children.push({
type: "text",
content: e.slice(p, e.indexOf("<", p))
}), 0 === a && r.push(n), (c = i[a - 1]) && c.children.push(n), i[a] = n), (!u || n.voidElement) && (a > -1 && (n.voidElement || n.name === s.slice(2, -1)) && (a--, n = -1 === a ? r : i[a]), !o && "<" !== h && h)) {
c = -1 === a ? r : i[a].children;
var m = e.indexOf("<", p),
g = e.slice(p, -1 === m ? void 0 : m);
Ne.test(g) && (g = " "), (m > -1 && a + c.length >= 0 || " " !== g) && c.push({
type: "text",
content: g
})
}
})), r
},
stringify: function(e) {
return e.reduce((function(e, t) {
return e + je("", t)
}), "")
}
};
const ze = Me;
function Fe() {
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)
}
}
var Ue = {};
function Ve() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
"string" === typeof t[0] && Ue[t[0]] || ("string" === typeof t[0] && (Ue[t[0]] = new Date), Fe.apply(void 0, t))
}
function Ge(e, t, n) {
e.loadNamespaces(t, (function() {
if (e.isInitialized) n();
else {
e.on("initialized", (function t() {
setTimeout((function() {
e.off("initialized", t)
}), 0), n()
}))
}
}))
}
function Be(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
r = t.languages[0],
i = !!t.options && t.options.fallbackLng,
a = t.languages[t.languages.length - 1];
if ("cimode" === r.toLowerCase()) return !0;
var o = function(e, n) {
var r = t.services.backendConnector.state["".concat(e, "|").concat(n)];
return -1 === r || 2 === r
};
return !(n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !o(t.isLanguageChangingTo, e)) && (!!t.hasResourceBundle(r, e) || (!(t.services.backendConnector.backend && (!t.options.resources || t.options.partialBundledLanguages)) || !(!o(r, e) || i && !o(a, e))))
}
function $e(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
if (!t.languages || !t.languages.length) return Ve("i18n.languages were undefined or empty", t.languages), !0;
var r = void 0 !== t.options.ignoreJSONStructure;
return r ? t.hasLoadedNamespace(e, {
precheck: function(t, r) {
if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !r(t.isLanguageChangingTo, e)) return !1
}
}) : Be(e, t, n)
}
var qe = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,
We = {
"&amp;": "&",
"&#38;": "&",
"&lt;": "<",
"&#60;": "<",
"&gt;": ">",
"&#62;": ">",
"&apos;": "'",
"&#39;": "'",
"&quot;": '"',
"&#34;": '"',
"&nbsp;": " ",
"&#160;": " ",
"&copy;": "\xa9",
"&#169;": "\xa9",
"&reg;": "\xae",
"&#174;": "\xae",
"&hellip;": "\u2026",
"&#8230;": "\u2026",
"&#x2F;": "/",
"&#47;": "/"
},
He = function(e) {
return We[e]
};
function Ye(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}))), n.push.apply(n, r)
}
return n
}
function Ke(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {};
t % 2 ? Ye(Object(n), !0).forEach((function(t) {
Se(e, t, n[t])
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ye(Object(n)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
}))
}
return e
}
var Qe, Ze = {
bindI18n: "languageChanged",
bindI18nStore: "",
transEmptyNodeValue: "",
transSupportBasicHtmlNodes: !0,
transWrapTextNodes: "",
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
useSuspense: !0,
unescape: function(e) {
return e.replace(qe, He)
}
};
function Xe() {
return Ze
}
function Je() {
return Qe
}
var et = ["format"],
tt = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
function nt(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}))), n.push.apply(n, r)
}
return n
}
function rt(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {};
t % 2 ? nt(Object(n), !0).forEach((function(t) {
Se(e, t, n[t])
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : nt(Object(n)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
}))
}
return e
}
function it(e, t) {
if (!e) return !1;
var n = e.props ? e.props.children : e.children;
return t ? n.length > 0 : !!n
}
function at(e) {
return e ? e.props ? e.props.children : e.children : []
}
function ot(e) {
return Array.isArray(e) ? e : [e]
}
function st(e, t) {
if (!e) return "";
var n = "",
r = ot(e),
i = t.transSupportBasicHtmlNodes && t.transKeepBasicHtmlNodesFor ? t.transKeepBasicHtmlNodesFor : [];
return r.forEach((function(e, r) {
if ("string" === typeof e) n += "".concat(e);
else if ((0, Pe.isValidElement)(e)) {
var a = Object.keys(e.props).length,
o = i.indexOf(e.type) > -1,
s = e.props.children;
if (!s && o && 0 === a) n += "<".concat(e.type, "/>");
else if (s || o && 0 === a)
if (e.props.i18nIsDynamicList) n += "<".concat(r, "></").concat(r, ">");
else if (o && 1 === a && "string" === typeof s) n += "<".concat(e.type, ">").concat(s, "</").concat(e.type, ">");
else {
var l = st(s, t);
n += "<".concat(r, ">").concat(l, "</").concat(r, ">")
} else n += "<".concat(r, "></").concat(r, ">")
} else if (null === e) Fe("Trans: the passed in value is invalid - seems you passed in a null child.");
else if ("object" === ke(e)) {
var c = e.format,
u = Oe(e, et),
d = Object.keys(u);
if (1 === d.length) {
var p = c ? "".concat(d[0], ", ").concat(c) : d[0];
n += "{{".concat(p, "}}")
} else Fe("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.", e)
} else Fe("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
}
function lt(e, t, n, r, i, a) {
if ("" === t) return [];
var o = r.transKeepBasicHtmlNodesFor || [],
s = t && new RegExp(o.join("|")).test(t);
if (!e && !s) return [t];
var l = {};
! function e(t) {
ot(t).forEach((function(t) {
"string" !== typeof t && (it(t) ? e(at(t)) : "object" !== ke(t) || (0, Pe.isValidElement)(t) || Object.assign(l, t))
}))
}(e);
var c = ze.parse("<0>".concat(t, "</0>")),
u = rt(rt({}, l), i);
function d(e, t, n) {
var r = at(e),
i = h(r, t.children, n);
return function(e) {
return "[object Array]" === Object.prototype.toString.call(e) && e.every((function(e) {
return (0, Pe.isValidElement)(e)
}))
}(r) && 0 === i.length ? r : i
}
function p(e, t, n, r, i) {
e.dummy && (e.children = t), n.push((0, Pe.cloneElement)(e, rt(rt({}, e.props), {}, {
key: r
}), i ? void 0 : t))
}
function h(t, i, l) {
var c = ot(t);
return ot(i).reduce((function(t, i, f) {
var m = i.children && i.children[0] && i.children[0].content && n.services.interpolator.interpolate(i.children[0].content, u, n.language);
if ("tag" === i.type) {
var g = c[parseInt(i.name, 10)];
!g && 1 === l.length && l[0][i.name] && (g = l[0][i.name]), g || (g = {});
var v = 0 !== Object.keys(i.attrs).length ? function(e, t) {
var n = rt({}, t);
return n.props = Object.assign(e.props, t.props), n
}({
props: i.attrs
}, g) : g,
_ = (0, Pe.isValidElement)(v),
y = _ && it(i, !0) && !i.voidElement,
b = s && "object" === ke(v) && v.dummy && !_,
x = "object" === ke(e) && null !== e && Object.hasOwnProperty.call(e, i.name);
if ("string" === typeof v) {
var w = n.services.interpolator.interpolate(v, u, n.language);
t.push(w)
} else if (it(v) || y) {
p(v, d(v, i, l), t, f)
} else if (b) {
var k = h(c, i.children, l);
t.push((0, Pe.cloneElement)(v, rt(rt({}, v.props), {}, {
key: f
}), k))
} else if (Number.isNaN(parseFloat(i.name))) {
if (x) p(v, d(v, i, l), t, f, i.voidElement);
else if (r.transSupportBasicHtmlNodes && o.indexOf(i.name) > -1)
if (i.voidElement) t.push((0, Pe.createElement)(i.name, {
key: "".concat(i.name, "-").concat(f)
}));
else {
var E = h(c, i.children, l);
t.push((0, Pe.createElement)(i.name, {
key: "".concat(i.name, "-").concat(f)
}, E))
}
else if (i.voidElement) t.push("<".concat(i.name, " />"));
else {
var S = h(c, i.children, l);
t.push("<".concat(i.name, ">").concat(S, "</").concat(i.name, ">"))
}
} else if ("object" !== ke(v) || _) 1 === i.children.length && m ? t.push((0, Pe.cloneElement)(v, rt(rt({}, v.props), {}, {
key: f
}), m)) : t.push((0, Pe.cloneElement)(v, rt(rt({}, v.props), {}, {
key: f
})));
else {
var O = i.children[0] ? m : null;
O && t.push(O)
}
} else if ("text" === i.type) {
var P = r.transWrapTextNodes,
I = a ? r.unescape(n.services.interpolator.interpolate(i.content, u, n.language)) : n.services.interpolator.interpolate(i.content, u, n.language);
P ? t.push((0, Pe.createElement)(P, {
key: "".concat(i.name, "-").concat(f)
}, I)) : t.push(I)
}
return t
}), [])
}
return at(h([{
dummy: !0,
children: e || []
}], c, ot(e || []))[0])
}
function ct(e) {
var t = e.children,
n = e.count,
r = e.parent,
i = e.i18nKey,
a = e.context,
o = e.tOptions,
s = void 0 === o ? {} : o,
l = e.values,
c = e.defaults,
u = e.components,
d = e.ns,
p = e.i18n,
h = e.t,
f = e.shouldUnescape,
m = Oe(e, tt),
g = p || Je();
if (!g) return Ve("You will need to pass in an i18next instance by using i18nextReactModule"), t;
var v = h || g.t.bind(g) || function(e) {
return e
};
a && (s.context = a);
var _ = rt(rt({}, Xe()), g.options && g.options.react),
y = d || v.ns || g.options && g.options.defaultNS;
y = "string" === typeof y ? [y] : y || ["translation"];
var b = c || st(t, _) || _.transEmptyNodeValue || i,
x = _.hashTransKey,
w = i || (x ? x(b) : b),
k = l ? s.interpolation : {
interpolation: rt(rt({}, s.interpolation), {}, {
prefix: "#$?",
suffix: "?$#"
})
},
E = rt(rt(rt(rt({}, s), {}, {
count: n
}, l), k), {}, {
defaultValue: b,
ns: y
}),
S = lt(u || t, w ? v(w, E) : b, g, _, E, f),
O = void 0 !== r ? r : _.defaultTransParent;
return O ? (0, Pe.createElement)(O, m, S) : S
}
function ut(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ee(r.key), r)
}
}
var dt = {
type: "3rdParty",
init: function(e) {
! function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
Ze = Ke(Ke({}, Ze), e)
}(e.options.react),
function(e) {
Qe = e
}(e)
}
};
var pt = (0, Pe.createContext)(),
ht = function() {
function e() {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this.usedNamespaces = {}
}
var t, n, r;
return t = e, n = [{
key: "addUsedNamespaces",
value: function(e) {
var t = this;
e.forEach((function(e) {
t.usedNamespaces[e] || (t.usedNamespaces[e] = !0)
}))
}
}, {
key: "getUsedNamespaces",
value: function() {
return Object.keys(this.usedNamespaces)
}
}], n && ut(t.prototype, n), r && ut(t, r), Object.defineProperty(t, "prototype", {
writable: !1
}), e
}();
var ft = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
function mt(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}))), n.push.apply(n, r)
}
return n
}
function gt(e) {
var t = e.children,
n = e.count,
r = e.parent,
i = e.i18nKey,
a = e.context,
o = e.tOptions,
s = void 0 === o ? {} : o,
l = e.values,
c = e.defaults,
u = e.components,
d = e.ns,
p = e.i18n,
h = e.t,
f = e.shouldUnescape,
m = Oe(e, ft),
g = (0, Pe.useContext)(pt) || {},
v = g.i18n,
_ = g.defaultNS,
y = p || v || Je(),
b = h || y && y.t.bind(y);
return ct(function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {};
t % 2 ? mt(Object(n), !0).forEach((function(t) {
Se(e, t, n[t])
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : mt(Object(n)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
}))
}
return e
}({
children: t,
count: n,
parent: r,
i18nKey: i,
context: a,
tOptions: s,
values: l,
defaults: c,
components: u,
ns: d || b && b.ns || _ || y && y.options && y.options.defaultNS,
i18n: y,
t: h,
shouldUnescape: f
}, m))
}
function vt(e, t) {
(null == t || t > e.length) && (t = e.length);
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
return r
}
function _t(e, t) {
return function(e) {
if (Array.isArray(e)) return e
}(e) || function(e, t) {
var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
if (null != n) {
var r, i, a, o, s = [],
l = !0,
c = !1;
try {
if (a = (n = n.call(e)).next, 0 === t) {
if (Object(n) !== n) return;
l = !1
} else
for (; !(l = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); l = !0);
} catch (u) {
c = !0, i = u
} finally {
try {
if (!l && null != n.return && (o = n.return(), Object(o) !== o)) return
} finally {
if (c) throw i
}
}
return s
}
}(e, t) || function(e, t) {
if (e) {
if ("string" === typeof e) return vt(e, t);
var n = Object.prototype.toString.call(e).slice(8, -1);
return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? vt(e, t) : void 0
}
}(e, t) || function() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}()
}
function yt(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}))), n.push.apply(n, r)
}
return n
}
function bt(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {};
t % 2 ? yt(Object(n), !0).forEach((function(t) {
Se(e, t, n[t])
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yt(Object(n)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
}))
}
return e
}
var xt = function(e, t) {
var n = (0, Pe.useRef)();
return (0, Pe.useEffect)((function() {
n.current = t ? n.current : e
}), [e, t]), n.current
};
function wt(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
n = t.i18n,
r = (0, Pe.useContext)(pt) || {},
i = r.i18n,
a = r.defaultNS,
o = n || i || Je();
if (o && !o.reportNamespaces && (o.reportNamespaces = new ht), !o) {
Ve("You will need to pass in an i18next instance by using initReactI18next");
var s = function(e) {
return Array.isArray(e) ? e[e.length - 1] : e
},
l = [s, {}, !1];
return l.t = s, l.i18n = {}, l.ready = !1, l
}
o.options.react && void 0 !== o.options.react.wait && Ve("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
var c = bt(bt(bt({}, Xe()), o.options.react), t),
u = c.useSuspense,
d = c.keyPrefix,
p = e || a || o.options && o.options.defaultNS;
p = "string" === typeof p ? [p] : p || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(p);
var h = (o.isInitialized || o.initializedStoreOnce) && p.every((function(e) {
return $e(e, o, c)
}));
function f() {
return o.getFixedT(null, "fallback" === c.nsMode ? p : p[0], d)
}
var m = (0, Pe.useState)(f),
g = _t(m, 2),
v = g[0],
_ = g[1],
y = p.join(),
b = xt(y),
x = (0, Pe.useRef)(!0);
(0, Pe.useEffect)((function() {
var e = c.bindI18n,
t = c.bindI18nStore;
function n() {
x.current && _(f)
}
return x.current = !0, h || u || Ge(o, p, (function() {
x.current && _(f)
})), h && b && b !== y && x.current && _(f), e && o && o.on(e, n), t && o && o.store.on(t, n),
function() {
x.current = !1, e && o && e.split(" ").forEach((function(e) {
return o.off(e, n)
})), t && o && t.split(" ").forEach((function(e) {
return o.store.off(e, n)
}))
}
}), [o, y]);
var w = (0, Pe.useRef)(!0);
(0, Pe.useEffect)((function() {
x.current && !w.current && _(f), w.current = !1
}), [o, d]);
var k = [v, o, h];
if (k.t = v, k.i18n = o, k.ready = h, h) return k;
if (!h && !u) return k;
throw new Promise((function(e) {
Ge(o, p, (function() {
e()
}))
}))
}
xe.use(dt).init({
resources: {
en: i,
fr: a,
zh_CN: SC_TOOLBOX_LOCALIZATION_ZHCN_MAP,
zh_TW: SC_TOOLBOX_LOCALIZATION_ZHTW_MAP,
},
lng: SC_TOOLBOX_ENABLED_LOCALIZATION,
interpolation: {
escapeValue: !1
},
returnNull: !1
});
const kt = xe,
Et = "7.18.0";
var St = n(6752);
const Ot = ["debug", "info", "warn", "error", "log", "assert", "trace"];
function Pt(e) {
if (!("console" in St.n2)) return e();
const t = St.n2.console,
n = {};
Ot.forEach((e => {
const r = t[e] && t[e].__sentry_original__;
e in t && r && (n[e] = t[e], t[e] = r)
}));
try {
return e()
} finally {
Object.keys(n).forEach((e => {
t[e] = n[e]
}))
}
}
function It() {
let e = !1;
const t = {
enable: () => {
e = !0
},
disable: () => {
e = !1
}
};
return "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__ ? Ot.forEach((n => {
t[n] = (...t) => {
e && Pt((() => {
St.n2.console[n](`Sentry Logger [${n}]:`, ...t)
}))
}
})) : Ot.forEach((e => {
t[e] = () => {}
})), t
}
let At;
At = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__ ? (0, St.YO)("logger", It) : It();
const Ct = Object.prototype.toString;
function Rt(e) {
switch (Ct.call(e)) {
case "[object Error]":
case "[object Exception]":
case "[object DOMException]":
return !0;
default:
return Ut(e, Error)
}
}
function Tt(e, t) {
return Ct.call(e) === `[object ${t}]`
}
function Dt(e) {
return Tt(e, "ErrorEvent")
}
function Nt(e) {
return Tt(e, "DOMError")
}
function Lt(e) {
return Tt(e, "String")
}
function jt(e) {
return null === e || "object" !== typeof e && "function" !== typeof e
}
function Mt(e) {
return Tt(e, "Object")
}
function zt(e) {
return "undefined" !== typeof Event && Ut(e, Event)
}
function Ft(e) {
return Boolean(e && e.then && "function" === typeof e.then)
}
function Ut(e, t) {
try {
return e instanceof t
} catch (n) {
return !1
}
}
const Vt = (0, St.Rf)();
function Gt(e, t) {
try {
let n = e;
const r = 5,
i = 80,
a = [];
let o = 0,
s = 0;
const l = " > ",
c = l.length;
let u;
for (; n && o++ < r && (u = Bt(n, t), !("html" === u || o > 1 && s + a.length * c + u.length >= i));) a.push(u), s += u.length, n = n.parentNode;
return a.reverse().join(l)
} catch (n) {
return "<unknown>"
}
}
function Bt(e, t) {
const n = e,
r = [];
let i, a, o, s, l;
if (!n || !n.tagName) return "";
r.push(n.tagName.toLowerCase());
const c = t && t.length ? t.filter((e => n.getAttribute(e))).map((e => [e, n.getAttribute(e)])) : null;
if (c && c.length) c.forEach((e => {
r.push(`[${e[0]}="${e[1]}"]`)
}));
else if (n.id && r.push(`#${n.id}`), i = n.className, i && Lt(i))
for (a = i.split(/\s+/), l = 0; l < a.length; l++) r.push(`.${a[l]}`);
const u = ["type", "name", "title", "alt"];
for (l = 0; l < u.length; l++) o = u[l], s = n.getAttribute(o), s && r.push(`[${o}="${s}"]`);
return r.join("")
}
function $t(e, t = 0) {
return "string" !== typeof e || 0 === t || e.length <= t ? e : `${e.substr(0,t)}...`
}
function qt(e, t) {
if (!Array.isArray(e)) return "";
const n = [];
for (let i = 0; i < e.length; i++) {
const t = e[i];
try {
n.push(String(t))
} catch (r) {
n.push("[value cannot be serialized]")
}
}
return n.join(t)
}
function Wt(e, t) {
return !!Lt(e) && (Tt(t, "RegExp") ? t.test(e) : "string" === typeof t && -1 !== e.indexOf(t))
}
function Ht(e, t, n) {
if (!(t in e)) return;
const r = e[t],
i = n(r);
if ("function" === typeof i) try {
Kt(i, r)
} catch (a) {}
e[t] = i
}
function Yt(e, t, n) {
Object.defineProperty(e, t, {
value: n,
writable: !0,
configurable: !0
})
}
function Kt(e, t) {
const n = t.prototype || {};
e.prototype = t.prototype = n, Yt(e, "__sentry_original__", t)
}
function Qt(e) {
return e.__sentry_original__
}
function Zt(e) {
if (Rt(e)) return {
message: e.message,
name: e.name,
stack: e.stack,
...Jt(e)
};
if (zt(e)) {
const t = {
type: e.type,
target: Xt(e.target),
currentTarget: Xt(e.currentTarget),
...Jt(e)
};
return "undefined" !== typeof CustomEvent && Ut(e, CustomEvent) && (t.detail = e.detail), t
}
return e
}
function Xt(e) {
try {
return t = e, "undefined" !== typeof Element && Ut(t, Element) ? Gt(e) : Object.prototype.toString.call(e)
} catch (n) {
return "<unknown>"
}
var t
}
function Jt(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 en(e, t = 40) {
const n = Object.keys(Zt(e));
if (n.sort(), !n.length) return "[object has no keys]";
if (n[0].length >= t) return $t(n[0], t);
for (let r = n.length; r > 0; r--) {
const e = n.slice(0, r).join(", ");
if (!(e.length > t)) return r === n.length ? e : $t(e, t)
}
return ""
}
function tn(e) {
return nn(e, new Map)
}
function nn(e, t) {
if (Mt(e)) {
const n = t.get(e);
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] = nn(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(nn(e, t))
})), r
}
return e
}
function rn() {
const e = St.n2,
t = e.crypto || e.msCrypto;
if (t && t.randomUUID) return t.randomUUID().replace(/-/g, "");
const n = t && t.getRandomValues ? () => t.getRandomValues(new Uint8Array(1))[0] : () => 16 * Math.random();
return ([1e7] + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, (e => (e ^ (15 & n()) >> e / 4).toString(16)))
}
function an(e) {
return e.exception && e.exception.values ? e.exception.values[0] : void 0
}
function on(e) {
const {
message: t,
event_id: n
} = e;
if (t) return t;
const r = an(e);
return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "<unknown>" : n || "<unknown>"
}
function sn(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 ln(e, t) {
const n = an(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 cn(e) {
if (e && e.__sentry_captured__) return !0;
try {
Yt(e, "__sentry_captured__", !0)
} catch (t) {}
return !1
}
function un(e) {
return Array.isArray(e) ? e : [e]
}
const dn = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/];
class pn {
static __initStatic() {
this.id = "InboundFilters"
}
__init() {
this.name = pn.id
}
constructor(e = {}) {
this._options = e, pn.prototype.__init.call(this)
}
setupOnce(e, t) {
const n = e => {
const n = t();
if (n) {
const t = n.getIntegration(pn);
if (t) {
const r = n.getClient(),
i = r ? r.getOptions() : {},
a = function(e = {}, t = {}) {
return {
allowUrls: [...e.allowUrls || [], ...t.allowUrls || []],
denyUrls: [...e.denyUrls || [], ...t.denyUrls || []],
ignoreErrors: [...e.ignoreErrors || [], ...t.ignoreErrors || [], ...dn],
ignoreInternal: void 0 === e.ignoreInternal || e.ignoreInternal
}
}(t._options, i);
return function(e, t) {
if (t.ignoreInternal && function(e) {
try {
return "SentryError" === e.exception.values[0].type
} catch (t) {}
return !1
}(e)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${on(e)}`), !0;
if (function(e, t) {
if (!t || !t.length) return !1;
return function(e) {
if (e.message) return [e.message];
if (e.exception) try {
const {
type: t = "",
value: n = ""
} = e.exception.values && e.exception.values[0] || {};
return [`${n}`, `${t}: ${n}`]
} catch (Cp) {
return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.error(`Cannot extract message for event ${on(e)}`), []
}
return []
}(e).some((e => t.some((t => Wt(e, t)))))
}(e, t.ignoreErrors)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${on(e)}`), !0;
if (function(e, t) {
if (!t || !t.length) return !1;
const n = hn(e);
return !!n && t.some((e => Wt(n, e)))
}(e, t.denyUrls)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${on(e)}.\nUrl: ${hn(e)}`), !0;
if (! function(e, t) {
if (!t || !t.length) return !0;
const n = hn(e);
return !n || t.some((e => Wt(n, e)))
}(e, t.allowUrls)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${on(e)}.\nUrl: ${hn(e)}`), !0;
return !1
}(e, a) ? null : e
}
}
return e
};
n.id = this.name, e(n)
}
}
function hn(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 && "<anonymous>" !== n.filename && "[native code]" !== n.filename) return n.filename || null
}
return null
}(n) : null
} catch (Cp) {
return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.error(`Cannot extract url for event ${on(e)}`), null
}
}
let fn;
pn.__initStatic();
class mn {
constructor() {
mn.prototype.__init.call(this)
}
static __initStatic() {
this.id = "FunctionToString"
}
__init() {
this.name = mn.id
}
setupOnce() {
fn = Function.prototype.toString, Function.prototype.toString = function(...e) {
const t = Qt(this) || this;
return fn.apply(t, e)
}
}
}
mn.__initStatic();
var gn, vn = n(9361),
_n = n(8776);
function yn(e) {
return new xn((t => {
t(e)
}))
}
function bn(e) {
return new xn(((t, n) => {
n(e)
}))
}! function(e) {
e[e.PENDING = 0] = "PENDING";
e[e.RESOLVED = 1] = "RESOLVED";
e[e.REJECTED = 2] = "REJECTED"
}(gn || (gn = {}));
class xn {
__init() {
this._state = gn.PENDING
}
__init2() {
this._handlers = []
}
constructor(e) {
xn.prototype.__init.call(this), xn.prototype.__init2.call(this), xn.prototype.__init3.call(this), xn.prototype.__init4.call(this), xn.prototype.__init5.call(this), xn.prototype.__init6.call(this);
try {
e(this._resolve, this._reject)
} catch (t) {
this._reject(t)
}
}
then(e, t) {
return new xn(((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 xn(((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)
}))
}))
}
__init3() {
this._resolve = e => {
this._setResult(gn.RESOLVED, e)
}
}
__init4() {
this._reject = e => {
this._setResult(gn.REJECTED, e)
}
}
__init5() {
this._setResult = (e, t) => {
this._state === gn.PENDING && (Ft(t) ? t.then(this._resolve, this._reject) : (this._state = e, this._value = t, this._executeHandlers()))
}
}
__init6() {
this._executeHandlers = () => {
if (this._state === gn.PENDING) return;
const e = this._handlers.slice();
this._handlers = [], e.forEach((e => {
e[0] || (this._state === gn.RESOLVED && e[1](this._value), this._state === gn.REJECTED && e[2](this._value), e[0] = !0)
}))
}
}
}
function wn(e) {
const t = (0, vn.ph)(),
n = {
sid: rn(),
init: !0,
timestamp: t,
started: t,
duration: 0,
status: "ok",
errors: 0,
ignoreDuration: !1,
toJSON: () => function(e) {
return tn({
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,
attrs: {
release: e.release,
environment: e.environment,
ip_address: e.ipAddress,
user_agent: e.userAgent
}
})
}(n)
};
return e && kn(n, e), n
}
function kn(e, t = {}) {
if (t.user && (!e.ipAddress && t.user.ip_address && (e.ipAddress = t.user.ip_address), e.did || t.did || (e.did = t.user.id || t.user.email || t.user.username)), e.timestamp = t.timestamp || (0, vn.ph)(), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = 32 === t.sid.length ? t.sid : rn()), 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)
}
class En {
constructor() {
this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}
}
static clone(e) {
const t = new En;
return e && (t._breadcrumbs = [...e._breadcrumbs], t._tags = {
...e._tags
}, t._extra = {
...e._extra
}, t._contexts = {
...e._contexts
}, t._user = e._user, t._level = e._level, t._span = e._span, t._session = e._session, t._transactionName = e._transactionName, t._fingerprint = e._fingerprint, t._eventProcessors = [...e._eventProcessors], t._requestSession = e._requestSession, t._attachments = [...e._attachments]), t
}
addScopeListener(e) {
this._scopeListeners.push(e)
}
addEventProcessor(e) {
return this._eventProcessors.push(e), this
}
setUser(e) {
return this._user = e || {}, this._session && kn(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 = {
...this._contexts,
[e]: t
}, this._notifyScopeListeners(), this
}
setSpan(e) {
return this._span = e, this._notifyScopeListeners(), this
}
getSpan() {
return this._span
}
getTransaction() {
const e = this.getSpan();
return e && e.transaction
}
setSession(e) {
return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this
}
getSession() {
return this._session
}
update(e) {
if (!e) return this;
if ("function" === typeof e) {
const t = e(this);
return t instanceof En ? t : this
}
return e instanceof En ? (this._tags = {
...this._tags,
...e._tags
}, this._extra = {
...this._extra,
...e._extra
}, this._contexts = {
...this._contexts,
...e._contexts
}, e._user && Object.keys(e._user).length && (this._user = e._user), e._level && (this._level = e._level), e._fingerprint && (this._fingerprint = e._fingerprint), e._requestSession && (this._requestSession = e._requestSession)) : Mt(e) && (this._tags = {
...this._tags,
...e.tags
}, this._extra = {
...this._extra,
...e.extra
}, this._contexts = {
...this._contexts,
...e.contexts
}, e.user && (this._user = e.user), e.level && (this._level = e.level), e.fingerprint && (this._fingerprint = e.fingerprint), e.requestSession && (this._requestSession = e.requestSession)), 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._span = void 0, this._session = void 0, this._notifyScopeListeners(), this._attachments = [], this
}
addBreadcrumb(e, t) {
const n = "number" === typeof t ? t : 100;
if (n <= 0) return this;
const r = {
timestamp: (0, vn.yW)(),
...e
};
return this._breadcrumbs = [...this._breadcrumbs, r].slice(-n), this._notifyScopeListeners(), this
}
clearBreadcrumbs() {
return this._breadcrumbs = [], this._notifyScopeListeners(), this
}
addAttachment(e) {
return this._attachments.push(e), this
}
getAttachments() {
return this._attachments
}
clearAttachments() {
return this._attachments = [], this
}
applyToEvent(e, t = {}) {
if (this._extra && Object.keys(this._extra).length && (e.extra = {
...this._extra,
...e.extra
}), this._tags && Object.keys(this._tags).length && (e.tags = {
...this._tags,
...e.tags
}), this._user && Object.keys(this._user).length && (e.user = {
...this._user,
...e.user
}), this._contexts && Object.keys(this._contexts).length && (e.contexts = {
...this._contexts,
...e.contexts
}), this._level && (e.level = this._level), this._transactionName && (e.transaction = this._transactionName), this._span) {
e.contexts = {
trace: this._span.getTraceContext(),
...e.contexts
};
const t = this._span.transaction && this._span.transaction.name;
t && (e.tags = {
transaction: t,
...e.tags
})
}
return this._applyFingerprint(e), e.breadcrumbs = [...e.breadcrumbs || [], ...this._breadcrumbs], e.breadcrumbs = e.breadcrumbs.length > 0 ? e.breadcrumbs : void 0, e.sdkProcessingMetadata = {
...e.sdkProcessingMetadata,
...this._sdkProcessingMetadata
}, this._notifyEventProcessors([...Sn(), ...this._eventProcessors], e, t)
}
setSDKProcessingMetadata(e) {
return this._sdkProcessingMetadata = {
...this._sdkProcessingMetadata,
...e
}, this
}
_notifyEventProcessors(e, t, n, r = 0) {
return new xn(((i, a) => {
const o = e[r];
if (null === t || "function" !== typeof o) i(t);
else {
const s = o({
...t
}, n);
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && o.id && null === s && At.log(`Event processor "${o.id}" dropped event`), Ft(s) ? s.then((t => this._notifyEventProcessors(e, t, n, r + 1).then(i))).then(null, a) : this._notifyEventProcessors(e, s, n, r + 1).then(i).then(null, a)
}
}))
}
_notifyScopeListeners() {
this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach((e => {
e(this)
})), this._notifyingListeners = !1)
}
_applyFingerprint(e) {
e.fingerprint = e.fingerprint ? un(e.fingerprint) : [], this._fingerprint && (e.fingerprint = e.fingerprint.concat(this._fingerprint)), e.fingerprint && !e.fingerprint.length && delete e.fingerprint
}
}
function Sn() {
return (0, St.YO)("globalEventProcessors", (() => []))
}
function On(e) {
Sn().push(e)
}
const Pn = 100;
class In {
__init() {
this._stack = [{}]
}
constructor(e, t = new En, n = 4) {
this._version = n, In.prototype.__init.call(this), this.getStackTop().scope = t, e && this.bindClient(e)
}
isOlderThan(e) {
return this._version < e
}
bindClient(e) {
this.getStackTop().client = e, e && e.setupIntegrations && e.setupIntegrations()
}
pushScope() {
const e = En.clone(this.getScope());
return this.getStack().push({
client: this.getClient(),
scope: e
}), e
}
popScope() {
return !(this.getStack().length <= 1) && !!this.getStack().pop()
}
withScope(e) {
const t = this.pushScope();
try {
e(t)
} finally {
this.popScope()
}
}
getClient() {
return this.getStackTop().client
}
getScope() {
return this.getStackTop().scope
}
getStack() {
return this._stack
}
getStackTop() {
return this._stack[this._stack.length - 1]
}
captureException(e, t) {
const n = this._lastEventId = t && t.event_id ? t.event_id : rn(),
r = new Error("Sentry syntheticException");
return this._withClient(((i, a) => {
i.captureException(e, {
originalException: e,
syntheticException: r,
...t,
event_id: n
}, a)
})), n
}
captureMessage(e, t, n) {
const r = this._lastEventId = n && n.event_id ? n.event_id : rn(),
i = new Error(e);
return this._withClient(((a, o) => {
a.captureMessage(e, t, {
originalException: e,
syntheticException: i,
...n,
event_id: r
}, o)
})), r
}
captureEvent(e, t) {
const n = t && t.event_id ? t.event_id : rn();
return "transaction" !== e.type && (this._lastEventId = n), this._withClient(((r, i) => {
r.captureEvent(e, {
...t,
event_id: n
}, i)
})), n
}
lastEventId() {
return this._lastEventId
}
addBreadcrumb(e, t) {
const {
scope: n,
client: r
} = this.getStackTop();
if (!n || !r) return;
const {
beforeBreadcrumb: i = null,
maxBreadcrumbs: a = Pn
} = r.getOptions && r.getOptions() || {};
if (a <= 0) return;
const o = {
timestamp: (0, vn.yW)(),
...e
},
s = i ? Pt((() => i(o, t))) : o;
null !== s && n.addBreadcrumb(s, a)
}
setUser(e) {
const t = this.getScope();
t && t.setUser(e)
}
setTags(e) {
const t = this.getScope();
t && t.setTags(e)
}
setExtras(e) {
const t = this.getScope();
t && t.setExtras(e)
}
setTag(e, t) {
const n = this.getScope();
n && n.setTag(e, t)
}
setExtra(e, t) {
const n = this.getScope();
n && n.setExtra(e, t)
}
setContext(e, t) {
const n = this.getScope();
n && n.setContext(e, t)
}
configureScope(e) {
const {
scope: t,
client: n
} = this.getStackTop();
t && n && e(t)
}
run(e) {
const t = Cn(this);
try {
e(this)
} finally {
Cn(t)
}
}
getIntegration(e) {
const t = this.getClient();
if (!t) return null;
try {
return t.getIntegration(e)
} catch (n) {
return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn(`Cannot retrieve integration ${e.id} from the current Hub`), null
}
}
startTransaction(e, t) {
return this._callExtensionMethod("startTransaction", e, t)
}
traceHeaders() {
return this._callExtensionMethod("traceHeaders")
}
captureSession(e = !1) {
if (e) return this.endSession();
this._sendSessionUpdate()
}
endSession() {
const e = this.getStackTop(),
t = e && e.scope,
n = t && t.getSession();
n && function(e, t) {
let n = {};
t ? n = {
status: t
} : "ok" === e.status && (n = {
status: "exited"
}), kn(e, n)
}(n), this._sendSessionUpdate(), t && t.setSession()
}
startSession(e) {
const {
scope: t,
client: n
} = this.getStackTop(), {
release: r,
environment: i
} = n && n.getOptions() || {}, {
userAgent: a
} = St.n2.navigator || {}, o = wn({
release: r,
environment: i,
...t && {
user: t.getUser()
},
...a && {
userAgent: a
},
...e
});
if (t) {
const e = t.getSession && t.getSession();
e && "ok" === e.status && kn(e, {
status: "exited"
}), this.endSession(), t.setSession(o)
}
return o
}
shouldSendDefaultPii() {
const e = this.getClient(),
t = e && e.getOptions();
return Boolean(t && t.sendDefaultPii)
}
_sendSessionUpdate() {
const {
scope: e,
client: t
} = this.getStackTop();
if (!e) return;
const n = e.getSession();
n && t && t.captureSession && t.captureSession(n)
}
_withClient(e) {
const {
scope: t,
client: n
} = this.getStackTop();
n && e(n, t)
}
_callExtensionMethod(e, ...t) {
const n = An().__SENTRY__;
if (n && n.extensions && "function" === typeof n.extensions[e]) return n.extensions[e].apply(this, t);
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn(`Extension method ${e} couldn't be found, doing nothing.`)
}
}
function An() {
return St.n2.__SENTRY__ = St.n2.__SENTRY__ || {
extensions: {},
hub: void 0
}, St.n2
}
function Cn(e) {
const t = An(),
n = Dn(t);
return Nn(t, e), n
}
function Rn() {
const e = An();
return Tn(e) && !Dn(e).isOlderThan(4) || Nn(e, new In), (0, _n.KV)() ? function(e) {
try {
const t = An().__SENTRY__,
n = t && t.extensions && t.extensions.domain && t.extensions.domain.active;
if (!n) return Dn(e);
if (!Tn(n) || Dn(n).isOlderThan(4)) {
const t = Dn(e).getStackTop();
Nn(n, new In(t.client, En.clone(t.scope)))
}
return Dn(n)
} catch (t) {
return Dn(e)
}
}(e) : Dn(e)
}
function Tn(e) {
return !!(e && e.__SENTRY__ && e.__SENTRY__.hub)
}
function Dn(e) {
return (0, St.YO)("hub", (() => new In), e)
}
function Nn(e, t) {
if (!e) return !1;
return (e.__SENTRY__ = e.__SENTRY__ || {}).hub = t, !0
}
const Ln = [];
function jn(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 ? un(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 (-1 !== a) {
const [e] = i.splice(a, 1);
i.push(e)
}
return i
}
class Mn 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
}
}
const zn = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
function Fn(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 Un(e) {
return {
protocol: e.protocol,
publicKey: e.publicKey || "",
pass: e.pass || "",
host: e.host,
port: e.port || "",
path: e.path || "",
projectId: e.projectId
}
}
function Vn(e) {
const t = "string" === typeof e ? function(e) {
const t = zn.exec(e);
if (!t) throw new Mn(`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 Un({
host: a,
pass: i,
path: l,
projectId: c,
port: o,
protocol: n,
publicKey: r
})
}(e) : Un(e);
return function(e) {
if ("undefined" !== typeof __SENTRY_DEBUG__ && !__SENTRY_DEBUG__) return;
const {
port: t,
projectId: n,
protocol: r
} = e;
if (["protocol", "publicKey", "host", "projectId"].forEach((t => {
if (!e[t]) throw new Mn(`Invalid Sentry Dsn: ${t} missing`)
})), !n.match(/^\d+$/)) throw new Mn(`Invalid Sentry Dsn: Invalid projectId ${n}`);
if (! function(e) {
return "http" === e || "https" === e
}(r)) throw new Mn(`Invalid Sentry Dsn: Invalid protocol ${r}`);
if (t && isNaN(parseInt(t, 10))) throw new Mn(`Invalid Sentry Dsn: Invalid port ${t}`)
}(t), t
}
function Gn(e) {
const t = e.protocol ? `${e.protocol}:` : "",
n = e.port ? `:${e.port}` : "";
return `${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`
}
function Bn(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 $n(e, t = {}) {
const n = "string" === typeof t ? t : t.tunnel,
r = "string" !== typeof t && t._metadata ? t._metadata.sdk : void 0;
return n || `${function(e){return`${Gn(e)}${e.projectId}/envelope/`}(e)}?${Bn(e,r)}`
}
function qn(...e) {
const t = e.sort(((e, t) => e[0] - t[0])).map((e => e[1]));
return (e, n = 0) => {
const r = [];
for (const i of e.split("\n").slice(n)) {
const e = i.replace(/\(error: (.*)\)/, "$1");
for (const n of t) {
const t = n(e);
if (t) {
r.push(t);
break
}
}
}
return function(e) {
if (!e.length) return [];
let t = e;
const n = t[0].function || "",
r = t[t.length - 1].function || ""; - 1 === n.indexOf("captureMessage") && -1 === n.indexOf("captureException") || (t = t.slice(1)); - 1 !== r.indexOf("sentryWrapped") && (t = t.slice(0, -1));
return t.slice(0, 50).map((e => ({
...e,
filename: e.filename || t[0].filename,
function: e.function || "?"
}))).reverse()
}(r)
}
}
const Wn = "<anonymous>";
function Hn(e) {
try {
return e && "function" === typeof e && e.name || Wn
} catch (t) {
return Wn
}
}
const Yn = (0, St.Rf)();
function Kn() {
if (!("fetch" in Yn)) return !1;
try {
return new Headers, new Request("http://www.example.com"), new Response, !0
} catch (e) {
return !1
}
}
function Qn(e) {
return e && /^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())
}
const Zn = (0, St.Rf)(),
Xn = {},
Jn = {};
function er(e) {
if (!Jn[e]) switch (Jn[e] = !0, e) {
case "console":
! function() {
if (!("console" in Zn)) return;
Ot.forEach((function(e) {
e in Zn.console && Ht(Zn.console, e, (function(t) {
return function(...n) {
nr("console", {
args: n,
level: e
}), t && t.apply(Zn.console, n)
}
}))
}))
}();
break;
case "dom":
! function() {
if (!("document" in Zn)) return;
const e = nr.bind(null, "dom"),
t = lr(e, !0);
Zn.document.addEventListener("click", t, !1), Zn.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((t => {
const n = Zn[t] && Zn[t].prototype;
n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (Ht(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 = lr(e);
o.handler = r, t.call(this, n, r, i)
}
o.refCount += 1
} catch (a) {}
return t.call(this, n, r, i)
}
})), Ht(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 -= 1, 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)
}
})))
}))
}();
break;
case "xhr":
! function() {
if (!("XMLHttpRequest" in Zn)) return;
const e = XMLHttpRequest.prototype;
Ht(e, "open", (function(e) {
return function(...t) {
const n = this,
r = t[1],
i = n.__sentry_xhr__ = {
method: Lt(t[0]) ? t[0].toUpperCase() : t[0],
url: t[1]
};
Lt(r) && "POST" === i.method && r.match(/sentry_key/) && (n.__sentry_own_request__ = !0);
const a = function() {
if (4 === n.readyState) {
try {
i.status_code = n.status
} catch (e) {}
nr("xhr", {
args: t,
endTimestamp: Date.now(),
startTimestamp: Date.now(),
xhr: n
})
}
};
return "onreadystatechange" in n && "function" === typeof n.onreadystatechange ? Ht(n, "onreadystatechange", (function(e) {
return function(...t) {
return a(), e.apply(n, t)
}
})) : n.addEventListener("readystatechange", a), e.apply(n, t)
}
})), Ht(e, "send", (function(e) {
return function(...t) {
return this.__sentry_xhr__ && void 0 !== t[0] && (this.__sentry_xhr__.body = t[0]), nr("xhr", {
args: t,
startTimestamp: Date.now(),
xhr: this
}), e.apply(this, t)
}
}))
}();
break;
case "fetch":
! function() {
if (! function() {
if (!Kn()) return !1;
if (Qn(Yn.fetch)) return !0;
let e = !1;
const t = Yn.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 = Qn(n.contentWindow.fetch)), t.head.removeChild(n)
} catch (n) {
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n)
}
return e
}()) return;
Ht(Zn, "fetch", (function(e) {
return function(...t) {
const n = {
args: t,
fetchData: {
method: rr(t),
url: ir(t)
},
startTimestamp: Date.now()
};
return nr("fetch", {
...n
}), e.apply(Zn, t).then((e => (nr("fetch", {
...n,
endTimestamp: Date.now(),
response: e
}), e)), (e => {
throw nr("fetch", {
...n,
endTimestamp: Date.now(),
error: e
}), e
}))
}
}))
}();
break;
case "history":
! function() {
if (! function() {
const e = Yn.chrome,
t = e && e.app && e.app.runtime,
n = "history" in Yn && !!Yn.history.pushState && !!Yn.history.replaceState;
return !t && n
}()) return;
const e = Zn.onpopstate;
function t(e) {
return function(...t) {
const n = t.length > 2 ? t[2] : void 0;
if (n) {
const e = ar,
t = String(n);
ar = t, nr("history", {
from: e,
to: t
})
}
return e.apply(this, t)
}
}
Zn.onpopstate = function(...t) {
const n = Zn.location.href,
r = ar;
if (ar = n, nr("history", {
from: r,
to: n
}), e) try {
return e.apply(this, t)
} catch (i) {}
}, Ht(Zn.history, "pushState", t), Ht(Zn.history, "replaceState", t)
}();
break;
case "error":
cr = Zn.onerror, Zn.onerror = function(e, t, n, r, i) {
return nr("error", {
column: r,
error: i,
line: n,
msg: e,
url: t
}), !!cr && cr.apply(this, arguments)
};
break;
case "unhandledrejection":
ur = Zn.onunhandledrejection, Zn.onunhandledrejection = function(e) {
return nr("unhandledrejection", e), !ur || ur.apply(this, arguments)
};
break;
default:
return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn("unknown instrumentation type:", e))
}
}
function tr(e, t) {
Xn[e] = Xn[e] || [], Xn[e].push(t), er(e)
}
function nr(e, t) {
if (e && Xn[e])
for (const r of Xn[e] || []) try {
r(t)
} catch (n) {
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Hn(r)}\nError:`, n)
}
}
function rr(e = []) {
return "Request" in Zn && Ut(e[0], Request) && e[0].method ? String(e[0].method).toUpperCase() : e[1] && e[1].method ? String(e[1].method).toUpperCase() : "GET"
}
function ir(e = []) {
return "string" === typeof e[0] ? e[0] : "Request" in Zn && Ut(e[0], Request) ? e[0].url : String(e[0])
}
let ar;
let or, sr;
function lr(e, t = !1) {
return n => {
if (!n || sr === n) return;
if (function(e) {
if ("keypress" !== e.type) return !1;
try {
const t = e.target;
if (!t || !t.tagName) return !0;
if ("INPUT" === t.tagName || "TEXTAREA" === t.tagName || t.isContentEditable) return !1
} catch (t) {}
return !0
}(n)) return;
const r = "keypress" === n.type ? "input" : n.type;
(void 0 === or || function(e, t) {
if (!e) return !0;
if (e.type !== t.type) return !0;
try {
if (e.target !== t.target) return !0
} catch (n) {}
return !1
}(sr, n)) && (e({
event: n,
name: r,
global: t
}), sr = n), clearTimeout(or), or = Zn.setTimeout((() => {
or = void 0
}), 1e3)
}
}
let cr = null;
let ur = null;
function dr(e, t = 1 / 0, n = 1 / 0) {
try {
return hr("", e, t, n)
} catch (r) {
return {
ERROR: `**non-serializable** (${r})`
}
}
}
function pr(e, t = 3, n = 102400) {
const r = dr(e, t);
return i = r,
function(e) {
return ~-encodeURI(e).split(/%..|./).length
}(JSON.stringify(i)) > n ? pr(e, t - 1, n) : r;
var i
}
function hr(e, t, r = 1 / 0, i = 1 / 0, a = 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 [o, s] = a;
if (null === t || ["number", "boolean", "string"].includes(typeof t) && ("number" !== typeof(l = t) || l === l)) return t;
var l;
const c = function(e, t) {
try {
return "domain" === e && t && "object" === typeof t && t._events ? "[Domain]" : "domainEmitter" === e ? "[DomainEmitter]" : "undefined" !== typeof n.g && t === n.g ? "[Global]" : "undefined" !== typeof window && t === window ? "[Window]" : "undefined" !== typeof document && t === document ? "[Document]" : function(e) {
return Mt(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e
}(t) ? "[SyntheticEvent]" : "number" === typeof t && t !== t ? "[NaN]" : void 0 === t ? "[undefined]" : "function" === typeof t ? `[Function: ${Hn(t)}]` : "symbol" === typeof t ? `[${String(t)}]` : "bigint" === typeof t ? `[BigInt: ${String(t)}]` : `[object ${Object.getPrototypeOf(t).constructor.name}]`
} catch (r) {
return `**non-serializable** (${r})`
}
}(e, t);
if (!c.startsWith("[object ")) return c;
if (t.__sentry_skip_normalization__) return t;
if (0 === r) return c.replace("object ", "");
if (o(t)) return "[Circular ~]";
const u = t;
if (u && "function" === typeof u.toJSON) try {
return hr("", u.toJSON(), r - 1, i, a)
} catch (f) {}
const d = Array.isArray(t) ? [] : {};
let p = 0;
const h = Zt(t);
for (const n in h) {
if (!Object.prototype.hasOwnProperty.call(h, n)) continue;
if (p >= i) {
d[n] = "[MaxProperties ~]";
break
}
const e = h[n];
d[n] = hr(n, e, r - 1, i, a), p += 1
}
return s(t), d
}
function fr(e, t = []) {
return [e, t]
}
function mr(e, t) {
const [n, r] = e;
return [n, [...r, t]]
}
function gr(e, t) {
e[1].forEach((e => {
const n = e[0].type;
t(e, n)
}))
}
function vr(e, t) {
return (t || new TextEncoder).encode(e)
}
function _r(e, t) {
const [n, r] = e;
let i = JSON.stringify(n);
function a(e) {
"string" === typeof i ? i = "string" === typeof e ? i + e : [vr(i, t), e] : i.push("string" === typeof e ? vr(e, t) : e)
}
for (const s of r) {
const [e, t] = s;
if (a(`\n${JSON.stringify(e)}\n`), "string" === typeof t || t instanceof Uint8Array) a(t);
else {
let e;
try {
e = JSON.stringify(t)
} catch (o) {
e = JSON.stringify(dr(t))
}
a(e)
}
}
return "string" === typeof i ? i : 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
}(i)
}
function yr(e, t) {
const n = "string" === typeof e.data ? vr(e.data, t) : e.data;
return [tn({
type: "attachment",
length: n.length,
filename: e.filename,
content_type: e.contentType,
attachment_type: e.attachmentType
}), n]
}
const br = {
session: "session",
sessions: "session",
attachment: "attachment",
transaction: "transaction",
event: "error",
client_report: "internal",
user_report: "default"
};
function xr(e) {
return br[e]
}
function wr(e) {
if (!e || !e.sdk) return;
const {
name: t,
version: n
} = e.sdk;
return {
name: t,
version: n
}
}
function kr(e, t, n, r) {
const i = wr(n),
a = 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 && {
dsn: Fn(r)
},
..."transaction" === e.type && i && {
trace: tn({
...i
})
}
}
}(e, i, r, t);
delete e.sdkProcessingMetadata;
return fr(o, [
[{
type: a
}, e]
])
}
const Er = "Not capturing exception because it's already been captured.";
class Sr {
__init() {
this._integrations = {}
}
__init2() {
this._integrationsInitialized = !1
}
__init3() {
this._numProcessing = 0
}
__init4() {
this._outcomes = {}
}
constructor(e) {
if (Sr.prototype.__init.call(this), Sr.prototype.__init2.call(this), Sr.prototype.__init3.call(this), Sr.prototype.__init4.call(this), this._options = e, e.dsn) {
this._dsn = Vn(e.dsn);
const t = $n(this._dsn, e);
this._transport = e.transport({
recordDroppedEvent: this.recordDroppedEvent.bind(this),
...e.transportOptions,
url: t
})
} else("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn("No DSN provided, client will not do anything.")
}
captureException(e, t, n) {
if (cn(e)) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.log(Er));
let r = t && t.event_id;
return this._process(this.eventFromException(e, t).then((e => this._captureEvent(e, t, n))).then((e => {
r = e
}))), r
}
captureMessage(e, t, n, r) {
let i = n && n.event_id;
const a = jt(e) ? this.eventFromMessage(String(e), t, n) : this.eventFromException(e, n);
return this._process(a.then((e => this._captureEvent(e, n, r))).then((e => {
i = e
}))), i
}
captureEvent(e, t, n) {
if (t && t.originalException && cn(t.originalException)) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.log(Er));
let r = t && t.event_id;
return this._process(this._captureEvent(e, t, n).then((e => {
r = e
}))), r
}
captureSession(e) {
this._isEnabled() ? "string" !== typeof e.release ? ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn("Discarded session because of missing or non-string release") : (this.sendSession(e), kn(e, {
init: !1
})) : ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn("SDK not enabled, will not capture session.")
}
getDsn() {
return this._dsn
}
getOptions() {
return this._options
}
getTransport() {
return this._transport
}
flush(e) {
const t = this._transport;
return t ? 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, e)))
}
setupIntegrations() {
this._isEnabled() && !this._integrationsInitialized && (this._integrations = function(e) {
const t = {};
return e.forEach((e => {
t[e.name] = e, -1 === Ln.indexOf(e.name) && (e.setupOnce(On, Rn), Ln.push(e.name), ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.log(`Integration installed: ${e.name}`))
})), t
}(this._options.integrations), this._integrationsInitialized = !0)
}
getIntegrationById(e) {
return this._integrations[e]
}
getIntegration(e) {
try {
return this._integrations[e.id] || null
} catch (t) {
return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn(`Cannot retrieve integration ${e.id} from the current Client`), null
}
}
sendEvent(e, t = {}) {
if (this._dsn) {
let n = kr(e, this._dsn, this._options._metadata, this._options.tunnel);
for (const e of t.attachments || []) n = mr(n, yr(e, this._options.transportOptions && this._options.transportOptions.textEncoder));
this._sendEnvelope(n)
}
}
sendSession(e) {
if (this._dsn) {
const t = function(e, t, n, r) {
const i = wr(n);
return fr({
sent_at: (new Date).toISOString(),
...i && {
sdk: i
},
...!!r && {
dsn: Fn(t)
}
}, ["aggregates" in e ? [{
type: "sessions"
}, e] : [{
type: "session"
}, e]])
}(e, this._dsn, this._options._metadata, this._options.tunnel);
this._sendEnvelope(t)
}
}
recordDroppedEvent(e, t) {
if (this._options.sendClientReports) {
const n = `${e}:${t}`;
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.log(`Adding outcome: "${n}"`), this._outcomes[n] = this._outcomes[n] + 1 || 1
}
}
_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) && (kn(e, {
...n && {
status: "crashed"
},
errors: e.errors || Number(r || n)
}), this.captureSession(e))
}
_isClientDoneProcessing(e) {
return new xn((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._dsn
}
_prepareEvent(e, t, n) {
const {
normalizeDepth: r = 3,
normalizeMaxBreadth: i = 1e3
} = this.getOptions(), a = {
...e,
event_id: e.event_id || t.event_id || rn(),
timestamp: e.timestamp || (0, vn.yW)()
};
this._applyClientOptions(a), this._applyIntegrationsMetadata(a);
let o = n;
t.captureContext && (o = En.clone(o).update(t.captureContext));
let s = yn(a);
if (o) {
const e = [...t.attachments || [], ...o.getAttachments()];
e.length && (t.attachments = e), s = o.applyToEvent(a, t)
}
return s.then((e => "number" === typeof r && r > 0 ? this._normalizeEvent(e, r, i) : e))
}
_normalizeEvent(e, t, n) {
if (!e) return null;
const r = {
...e,
...e.breadcrumbs && {
breadcrumbs: e.breadcrumbs.map((e => ({
...e,
...e.data && {
data: dr(e.data, t, n)
}
})))
},
...e.user && {
user: dr(e.user, t, n)
},
...e.contexts && {
contexts: dr(e.contexts, t, n)
},
...e.extra && {
extra: dr(e.extra, t, n)
}
};
return e.contexts && e.contexts.trace && r.contexts && (r.contexts.trace = e.contexts.trace, e.contexts.trace.data && (r.contexts.trace.data = dr(e.contexts.trace.data, t, n))), e.spans && (r.spans = e.spans.map((e => (e.data && (e.data = dr(e.data, t, n)), e)))), r
}
_applyClientOptions(e) {
const t = this.getOptions(),
{
environment: n,
release: r,
dist: i,
maxValueLength: a = 250
} = t;
"environment" in e || (e.environment = "environment" in t ? n : "production"), void 0 === e.release && void 0 !== r && (e.release = r), void 0 === e.dist && void 0 !== i && (e.dist = i), e.message && (e.message = $t(e.message, a));
const o = e.exception && e.exception.values && e.exception.values[0];
o && o.value && (o.value = $t(o.value, a));
const s = e.request;
s && s.url && (s.url = $t(s.url, a))
}
_applyIntegrationsMetadata(e) {
const t = Object.keys(this._integrations);
t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t])
}
_captureEvent(e, t = {}, n) {
return this._processEvent(e, t, n).then((e => e.event_id), (e => {
if ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) {
const t = e;
"log" === t.logLevel ? At.log(t.message) : At.warn(t)
}
}))
}
_processEvent(e, t, n) {
const r = this.getOptions(),
{
sampleRate: i
} = r;
if (!this._isEnabled()) return bn(new Mn("SDK not enabled, will not capture event.", "log"));
const a = "transaction" === e.type,
o = a ? "beforeSendTransaction" : "beforeSend",
s = r[o];
return !a && "number" === typeof i && Math.random() > i ? (this.recordDroppedEvent("sample_rate", "error"), bn(new Mn(`Discarding event because it's not included in the random sample (sampling rate = ${i})`, "log"))) : this._prepareEvent(e, t, n).then((n => {
if (null === n) throw this.recordDroppedEvent("event_processor", e.type || "error"), new Mn("An event processor returned `null`, will not send event.", "log");
if (t.data && !0 === t.data.__sentry__ || !s) return n;
return function(e, t) {
const n = `\`${t}\` must return \`null\` or a valid event.`;
if (Ft(e)) return e.then((e => {
if (!Mt(e) && null !== e) throw new Mn(n);
return e
}), (e => {
throw new Mn(`\`${t}\` rejected with ${e}`)
}));
if (!Mt(e) && null !== e) throw new Mn(n);
return e
}(s(n, t), o)
})).then((r => {
if (null === r) throw this.recordDroppedEvent("before_send", e.type || "error"), new Mn(`\`${o}\` returned \`null\`, will not send event.`, "log");
const i = n && n.getSession();
!a && i && this._updateSessionFromEvent(i, r);
const s = r.transaction_info;
if (a && s && r.transaction !== e.transaction) {
const e = "custom";
r.transaction_info = {
...s,
source: e,
changes: [...s.changes, {
source: e,
timestamp: r.timestamp,
propagations: s.propagations
}]
}
}
return this.sendEvent(r, t), r
})).then(null, (e => {
if (e instanceof Mn) throw e;
throw this.captureException(e, {
data: {
__sentry__: !0
},
originalException: e
}), new Mn(`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 += 1, e.then((e => (this._numProcessing -= 1, e)), (e => (this._numProcessing -= 1, e)))
}
_sendEnvelope(e) {
this._transport && this._dsn ? this._transport.send(e).then(null, (e => {
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.error("Error while sending event:", e)
})) : ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.error("Transport disabled")
}
_clearOutcomes() {
const e = this._outcomes;
return this._outcomes = {}, Object.keys(e).map((t => {
const [n, r] = t.split(":");
return {
reason: n,
category: r,
quantity: e[t]
}
}))
}
}
function Or(e, t) {
const n = Ir(e, t),
r = {
type: t && t.name,
value: Cr(t)
};
return n.length && (r.stacktrace = {
frames: n
}), void 0 === r.type && "" === r.value && (r.value = "Unrecoverable error caught"), r
}
function Pr(e, t) {
return {
exception: {
values: [Or(e, t)]
}
}
}
function Ir(e, t) {
const n = t.stacktrace || t.stack || "",
r = function(e) {
if (e) {
if ("number" === typeof e.framesToPop) return e.framesToPop;
if (Ar.test(e.message)) return 1
}
return 0
}(t);
try {
return e(n, r)
} catch (i) {}
return []
}
const Ar = /Minified React error #\d+;/i;
function Cr(e) {
const t = e && e.message;
return t ? t.error && "string" === typeof t.error.message ? t.error.message : t : "No error message"
}
function Rr(e, t, n, r, i) {
let a;
if (Dt(t) && t.error) {
return Pr(e, t.error)
}
if (Nt(t) || Tt(t, "DOMException")) {
const i = t;
if ("stack" in t) a = Pr(e, t);
else {
const t = i.name || (Nt(i) ? "DOMError" : "DOMException"),
o = i.message ? `${t}: ${i.message}` : t;
a = Tr(e, o, n, r), sn(a, o)
}
return "code" in i && (a.tags = {
...a.tags,
"DOMException.code": `${i.code}`
}), a
}
if (Rt(t)) return Pr(e, t);
if (Mt(t) || zt(t)) {
return a = function(e, t, n, r) {
const i = Rn().getClient(),
a = i && i.getOptions().normalizeDepth,
o = {
exception: {
values: [{
type: zt(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error",
value: `Non-Error ${r?"promise rejection":"exception"} captured with keys: ${en(t)}`
}]
},
extra: {
__serialized__: pr(t, a)
}
};
if (n) {
const t = Ir(e, n);
t.length && (o.exception.values[0].stacktrace = {
frames: t
})
}
return o
}(e, t, n, i), ln(a, {
synthetic: !0
}), a
}
return a = Tr(e, t, n, r), sn(a, `${t}`, void 0), ln(a, {
synthetic: !0
}), a
}
function Tr(e, t, n, r) {
const i = {
message: t
};
if (r && n) {
const r = Ir(e, n);
r.length && (i.exception = {
values: [{
value: t,
stacktrace: {
frames: r
}
}]
})
}
return i
}
function Dr(e, t) {
return Rn().captureException(e, {
captureContext: t
})
}
function Nr(e) {
Rn().withScope(e)
}
const Lr = St.n2;
let jr = 0;
function Mr() {
return jr > 0
}
function zr() {
jr += 1, setTimeout((() => {
jr -= 1
}))
}
function Fr(e, t = {}, n) {
if ("function" !== typeof e) return e;
try {
const t = e.__sentry_wrapped__;
if (t) return t;
if (Qt(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 => Fr(e, t)));
return e.apply(this, i)
} catch (nl) {
throw zr(), Nr((n => {
n.addEventProcessor((e => (t.mechanism && (sn(e, void 0, void 0), ln(e, t.mechanism)), e.extra = {
...e.extra,
arguments: r
}, e))), Dr(nl)
})), nl
}
};
try {
for (const t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t])
} catch (a) {}
Kt(r, e), Yt(e, "__sentry_wrapped__", r);
try {
Object.getOwnPropertyDescriptor(r, "name").configurable && Object.defineProperty(r, "name", {
get: () => e.name
})
} catch (a) {}
return r
}
const Ur = ["fatal", "error", "warning", "log", "info", "debug"];
function Vr(e) {
return "warn" === e ? "warning" : Ur.includes(e) ? e : "log"
}
function Gr(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],
relative: t[5] + n + r
}
}
const Br = "Breadcrumbs";
class $r {
static __initStatic() {
this.id = Br
}
__init() {
this.name = $r.id
}
constructor(e) {
$r.prototype.__init.call(this), this.options = {
console: !0,
dom: !0,
fetch: !0,
history: !0,
sentry: !0,
xhr: !0,
...e
}
}
setupOnce() {
this.options.console && tr("console", qr), this.options.dom && tr("dom", function(e) {
function t(t) {
let n, r = "object" === typeof e ? e.serializeAttribute : void 0;
"string" === typeof r && (r = [r]);
try {
n = t.event.target ? Gt(t.event.target, r) : Gt(t.event, r)
} catch (i) {
n = "<unknown>"
}
0 !== n.length && Rn().addBreadcrumb({
category: `ui.${t.name}`,
message: n
}, {
event: t.event,
name: t.name,
global: t.global
})
}
return t
}(this.options.dom)), this.options.xhr && tr("xhr", Wr), this.options.fetch && tr("fetch", Hr), this.options.history && tr("history", Yr)
}
}
function qr(e) {
for (let n = 0; n < e.args.length; n++)
if ("ref=Ref<" === e.args[n]) {
e.args[n + 1] = "viewRef";
break
} const t = {
category: "console",
data: {
arguments: e.args,
logger: "console"
},
level: Vr(e.level),
message: qt(e.args, " ")
};
if ("assert" === e.level) {
if (!1 !== e.args[0]) return;
t.message = `Assertion failed: ${qt(e.args.slice(1)," ")||"console.assert"}`, t.data.arguments = e.args.slice(1)
}
Rn().addBreadcrumb(t, {
input: e.args,
level: e.level
})
}
function Wr(e) {
if (e.endTimestamp) {
if (e.xhr.__sentry_own_request__) return;
const {
method: t,
url: n,
status_code: r,
body: i
} = e.xhr.__sentry_xhr__ || {};
Rn().addBreadcrumb({
category: "xhr",
data: {
method: t,
url: n,
status_code: r
},
type: "http"
}, {
xhr: e.xhr,
input: i
})
} else;
}
function Hr(e) {
e.endTimestamp && (e.fetchData.url.match(/sentry_key/) && "POST" === e.fetchData.method || (e.error ? Rn().addBreadcrumb({
category: "fetch",
data: e.fetchData,
level: "error",
type: "http"
}, {
data: e.error,
input: e.args
}) : Rn().addBreadcrumb({
category: "fetch",
data: {
...e.fetchData,
status_code: e.response.status
},
type: "http"
}, {
input: e.args,
response: e.response
})))
}
function Yr(e) {
let t = e.from,
n = e.to;
const r = Gr(Lr.location.href);
let i = Gr(t);
const a = Gr(n);
i.path || (i = r), r.protocol === a.protocol && r.host === a.host && (n = a.relative), r.protocol === i.protocol && r.host === i.host && (t = i.relative), Rn().addBreadcrumb({
category: "navigation",
data: {
from: t,
to: n
}
})
}
$r.__initStatic();
class Kr extends Sr {
constructor(e) {
e._metadata = e._metadata || {}, e._metadata.sdk = e._metadata.sdk || {
name: "sentry.javascript.browser",
packages: [{
name: "npm:@sentry/browser",
version: Et
}],
version: Et
}, super(e), e.sendClientReports && Lr.document && Lr.document.addEventListener("visibilitychange", (() => {
"hidden" === Lr.document.visibilityState && this._flushOutcomes()
}))
}
eventFromException(e, t) {
return function(e, t, n, r) {
const i = Rr(e, t, n && n.syntheticException || void 0, r);
return ln(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 = Tr(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)
}
sendEvent(e, t) {
const n = this.getIntegrationById(Br);
n && n.options && n.options.sentry && Rn().addBreadcrumb({
category: "sentry." + ("transaction" === e.type ? "transaction" : "event"),
event_id: e.event_id,
level: e.level,
message: on(e)
}, {
event: e
}), super.sendEvent(e, t)
}
_prepareEvent(e, t, n) {
return e.platform = e.platform || "javascript", super._prepareEvent(e, t, n)
}
_flushOutcomes() {
const e = this._clearOutcomes();
if (0 === e.length) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.log("No outcomes to send"));
if (!this._dsn) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.log("No dsn provided, will not send outcomes"));
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.log("Sending outcomes:", e);
const t = $n(this._dsn, this._options),
n = (r = e, fr((i = this._options.tunnel && Fn(this._dsn)) ? {
dsn: i
} : {}, [
[{
type: "client_report"
}, {
timestamp: a || (0, vn.yW)(),
discarded_events: r
}]
]));
var r, i, a;
try {
const e = "[object Navigator]" === Object.prototype.toString.call(Lr && Lr.navigator);
if (e && "function" === typeof Lr.navigator.sendBeacon && !this._options.transportOptions) {
Lr.navigator.sendBeacon.bind(Lr.navigator)(t, _r(n))
} else this._sendEnvelope(n)
} catch (o) {
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.error(o)
}
}
}
const Qr = "?";
function Zr(e, t, n, r) {
const i = {
filename: e,
function: t,
in_app: !0
};
return void 0 !== n && (i.lineno = n), void 0 !== r && (i.colno = r), i
}
const Xr = /^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,
Jr = /\((\S*)(?::(\d+))(?::(\d+))\)/,
ei = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,
ti = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i,
ni = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,
ri = qn(...[
[30, e => {
const t = Xr.exec(e);
if (t) {
if (t[2] && 0 === t[2].indexOf("eval")) {
const e = Jr.exec(t[2]);
e && (t[2] = e[1], t[3] = e[2], t[4] = e[3])
}
const [e, n] = ii(t[1] || Qr, t[2]);
return Zr(n, e, t[3] ? +t[3] : void 0, t[4] ? +t[4] : void 0)
}
}],
[50, e => {
const t = ei.exec(e);
if (t) {
if (t[3] && t[3].indexOf(" > eval") > -1) {
const e = ti.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] || Qr;
return [n, e] = ii(n, e), Zr(e, n, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0)
}
}],
[40, e => {
const t = ni.exec(e);
return t ? Zr(t[2], t[1] || Qr, +t[3], t[4] ? +t[4] : void 0) : void 0
}]
]),
ii = (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] : Qr, n ? `safari-extension:${t}` : `safari-web-extension:${t}`] : [e, t]
},
ai = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"];
class oi {
static __initStatic() {
this.id = "TryCatch"
}
__init() {
this.name = oi.id
}
constructor(e) {
oi.prototype.__init.call(this), this._options = {
XMLHttpRequest: !0,
eventTarget: !0,
requestAnimationFrame: !0,
setInterval: !0,
setTimeout: !0,
...e
}
}
setupOnce() {
this._options.setTimeout && Ht(Lr, "setTimeout", si), this._options.setInterval && Ht(Lr, "setInterval", si), this._options.requestAnimationFrame && Ht(Lr, "requestAnimationFrame", li), this._options.XMLHttpRequest && "XMLHttpRequest" in Lr && Ht(XMLHttpRequest.prototype, "send", ci);
const e = this._options.eventTarget;
if (e) {
(Array.isArray(e) ? e : ai).forEach(ui)
}
}
}
function si(e) {
return function(...t) {
const n = t[0];
return t[0] = Fr(n, {
mechanism: {
data: {
function: Hn(e)
},
handled: !0,
type: "instrument"
}
}), e.apply(this, t)
}
}
function li(e) {
return function(t) {
return e.apply(this, [Fr(t, {
mechanism: {
data: {
function: "requestAnimationFrame",
handler: Hn(e)
},
handled: !0,
type: "instrument"
}
})])
}
}
function ci(e) {
return function(...t) {
const n = this;
return ["onload", "onerror", "onprogress", "onreadystatechange"].forEach((e => {
e in n && "function" === typeof n[e] && Ht(n, e, (function(t) {
const n = {
mechanism: {
data: {
function: e,
handler: Hn(t)
},
handled: !0,
type: "instrument"
}
},
r = Qt(t);
return r && (n.mechanism.data.handler = Hn(r)), Fr(t, n)
}))
})), e.apply(this, t)
}
}
function ui(e) {
const t = Lr,
n = t[e] && t[e].prototype;
n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (Ht(n, "addEventListener", (function(t) {
return function(n, r, i) {
try {
"function" === typeof r.handleEvent && (r.handleEvent = Fr(r.handleEvent, {
mechanism: {
data: {
function: "handleEvent",
handler: Hn(r),
target: e
},
handled: !0,
type: "instrument"
}
}))
} catch (a) {}
return t.apply(this, [n, Fr(r, {
mechanism: {
data: {
function: "addEventListener",
handler: Hn(r),
target: e
},
handled: !0,
type: "instrument"
}
}), i])
}
})), Ht(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)
}
})))
}
oi.__initStatic();
class di {
static __initStatic() {
this.id = "GlobalHandlers"
}
__init() {
this.name = di.id
}
__init2() {
this._installFunc = {
onerror: pi,
onunhandledrejection: hi
}
}
constructor(e) {
di.prototype.__init.call(this), di.prototype.__init2.call(this), this._options = {
onerror: !0,
onunhandledrejection: !0,
...e
}
}
setupOnce() {
Error.stackTraceLimit = 50;
const e = this._options;
for (const n in e) {
const r = this._installFunc[n];
r && e[n] && (t = n, ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.log(`Global Handler attached: ${t}`), r(), this._installFunc[n] = void 0)
}
var t
}
}
function pi() {
tr("error", (e => {
const [t, n, r] = gi();
if (!t.getIntegration(di)) return;
const {
msg: i,
url: a,
line: o,
column: s,
error: l
} = e;
if (Mr() || l && l.__sentry_own_request__) return;
const c = void 0 === l && Lt(i) ? function(e, t, n, r) {
const i = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
let a = Dt(e) ? e.message : e,
o = "Error";
const s = a.match(i);
s && (o = s[1], a = s[2]);
const l = {
exception: {
values: [{
type: o,
value: a
}]
}
};
return fi(l, t, n, r)
}(i, a, o, s) : fi(Rr(n, l || i, void 0, r, !1), a, o, s);
c.level = "error", mi(t, l, c, "onerror")
}))
}
function hi() {
tr("unhandledrejection", (e => {
const [t, n, r] = gi();
if (!t.getIntegration(di)) return;
let i = e;
try {
"reason" in e ? i = e.reason : "detail" in e && "reason" in e.detail && (i = e.detail.reason)
} catch (o) {}
if (Mr() || i && i.__sentry_own_request__) return !0;
const a = jt(i) ? {
exception: {
values: [{
type: "UnhandledRejection",
value: `Non-Error promise rejection captured with value: ${String(i)}`
}]
}
} : Rr(n, i, void 0, r, !0);
a.level = "error", mi(t, i, a, "onunhandledrejection")
}))
}
function fi(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 = Lt(t) && t.length > 0 ? t : function() {
try {
return Vt.document.location.href
} catch (Cp) {
return ""
}
}();
return 0 === l.length && l.push({
colno: c,
filename: d,
function: "?",
in_app: !0,
lineno: u
}), e
}
function mi(e, t, n, r) {
ln(n, {
handled: !1,
type: r
}), e.captureEvent(n, {
originalException: t
})
}
function gi() {
const e = Rn(),
t = e.getClient(),
n = t && t.getOptions() || {
stackParser: () => [],
attachStacktrace: !1
};
return [e, n.stackParser, n.attachStacktrace]
}
di.__initStatic();
class vi {
static __initStatic() {
this.id = "LinkedErrors"
}
__init() {
this.name = vi.id
}
constructor(e = {}) {
vi.prototype.__init.call(this), this._key = e.key || "cause", this._limit = e.limit || 5
}
setupOnce() {
const e = Rn().getClient();
e && On(((t, n) => {
const r = Rn().getIntegration(vi);
return r ? function(e, t, n, r, i) {
if (!r.exception || !r.exception.values || !i || !Ut(i.originalException, Error)) return r;
const a = _i(e, n, i.originalException, t);
return r.exception.values = [...a, ...r.exception.values], r
}(e.getOptions().stackParser, r._key, r._limit, t, n) : t
}))
}
}
function _i(e, t, n, r, i = []) {
if (!Ut(n[r], Error) || i.length + 1 >= t) return i;
const a = Or(e, n[r]);
return _i(e, t, n[r], r, [a, ...i])
}
vi.__initStatic();
class yi {
constructor() {
yi.prototype.__init.call(this)
}
static __initStatic() {
this.id = "Dedupe"
}
__init() {
this.name = yi.id
}
setupOnce(e, t) {
const n = e => {
const n = t().getIntegration(yi);
if (n) {
try {
if (function(e, t) {
if (!t) return !1;
if (function(e, t) {
const n = e.message,
r = t.message;
if (!n && !r) return !1;
if (n && !r || !n && r) return !1;
if (n !== r) return !1;
if (!xi(e, t)) return !1;
if (!bi(e, t)) return !1;
return !0
}(e, t)) return !0;
if (function(e, t) {
const n = wi(t),
r = wi(e);
if (!n || !r) return !1;
if (n.type !== r.type || n.value !== r.value) return !1;
if (!xi(e, t)) return !1;
if (!bi(e, t)) return !1;
return !0
}(e, t)) return !0;
return !1
}(e, n._previousEvent)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn("Event dropped due to being a duplicate of previously captured event."), null
} catch (r) {
return n._previousEvent = e
}
return n._previousEvent = e
}
return e
};
n.id = this.name, e(n)
}
}
function bi(e, t) {
let n = ki(e),
r = ki(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 xi(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 wi(e) {
return e.exception && e.exception.values && e.exception.values[0]
}
function ki(e) {
const t = e.exception;
if (t) try {
return t.values[0].stacktrace.frames
} catch (n) {
return
}
}
yi.__initStatic();
class Ei {
constructor() {
Ei.prototype.__init.call(this)
}
static __initStatic() {
this.id = "HttpContext"
}
__init() {
this.name = Ei.id
}
setupOnce() {
On((e => {
if (Rn().getIntegration(Ei)) {
if (!Lr.navigator && !Lr.location && !Lr.document) return e;
const t = e.request && e.request.url || Lr.location && Lr.location.href,
{
referrer: n
} = Lr.document || {},
{
userAgent: r
} = Lr.navigator || {},
i = {
...t && {
url: t
},
headers: {
...e.request && e.request.headers,
...n && {
Referer: n
},
...r && {
"User-Agent": r
}
}
};
return {
...e,
request: i
}
}
return e
}))
}
}
function Si(e) {
const t = [];
function n(e) {
return t.splice(t.indexOf(e), 1)[0]
}
return {
$: t,
add: function(r) {
if (!(void 0 === e || t.length < e)) return bn(new Mn("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 xn(((n, r) => {
let i = t.length;
if (!i) return n(!0);
const a = setTimeout((() => {
e && e > 0 && n(!1)
}), e);
t.forEach((e => {
yn(e).then((() => {
--i || (clearTimeout(a), n(!0))
}), r)
}))
}))
}
}
}
Ei.__initStatic();
function Oi(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] = s.split(":", 2), n = parseInt(e, 10), a = 1e3 * (isNaN(n) ? 60 : n);
if (t)
for (const o of t.split(";")) i[o] = r + a;
else i.all = r + a
} 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 Pi(e, t, n = Si(e.bufferSize || 30)) {
let r = {};
return {
send: function(i) {
const a = [];
if (gr(i, ((t, n) => {
const i = xr(n);
! function(e, t, n = Date.now()) {
return function(e, t) {
return e[t] || e.all || 0
}(e, t) > n
}(r, i) ? a.push(t): e.recordDroppedEvent("ratelimit_backoff", i)
})), 0 === a.length) return yn();
const o = fr(i[0], a),
s = t => {
gr(o, ((n, r) => {
e.recordDroppedEvent(t, xr(r))
}))
};
return n.add((() => t({
body: _r(o, e.textEncoder)
}).then((e => {
void 0 !== e.statusCode && (e.statusCode < 200 || e.statusCode >= 300) && ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn(`Sentry responded with status code ${e.statusCode} to sent event.`), r = Oi(r, e)
}), (e => {
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.error("Failed while sending event:", e), s("network_error")
})))).then((e => e), (e => {
if (e instanceof Mn) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.error("Skipped sending event because buffer is full."), s("queue_overflow"), yn();
throw e
}))
},
flush: e => n.drain(e)
}
}
let Ii;
function Ai(e, t = function() {
if (Ii) return Ii;
if (Qn(Lr.fetch)) return Ii = Lr.fetch.bind(Lr);
const e = Lr.document;
let t = Lr.fetch;
if (e && "function" === typeof e.createElement) try {
const n = e.createElement("iframe");
n.hidden = !0, e.head.appendChild(n);
const r = n.contentWindow;
r && r.fetch && (t = r.fetch), e.head.removeChild(n)
} catch (n) {
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n)
}
return Ii = t.bind(Lr)
}()) {
return Pi(e, (function(n) {
const r = {
body: n.body,
method: "POST",
referrerPolicy: "origin",
headers: e.headers,
keepalive: n.body.length <= 65536,
...e.fetchOptions
};
try {
return t(e.url, r).then((e => ({
statusCode: e.status,
headers: {
"x-sentry-rate-limits": e.headers.get("X-Sentry-Rate-Limits"),
"retry-after": e.headers.get("Retry-After")
}
})))
} catch (i) {
return Ii = void 0, bn(i)
}
}))
}
function Ci(e) {
return Pi(e, (function(t) {
return new xn(((n, r) => {
const i = new XMLHttpRequest;
i.onerror = r, i.onreadystatechange = () => {
4 === i.readyState && n({
statusCode: i.status,
headers: {
"x-sentry-rate-limits": i.getResponseHeader("X-Sentry-Rate-Limits"),
"retry-after": i.getResponseHeader("Retry-After")
}
})
}, i.open("POST", e.url);
for (const t in e.headers) Object.prototype.hasOwnProperty.call(e.headers, t) && i.setRequestHeader(t, e.headers[t]);
i.send(t.body)
}))
}))
}
const Ri = [new pn, new mn, new oi, new $r, new di, new vi, new yi, new Ei];
function Ti(e = {}) {
void 0 === e.defaultIntegrations && (e.defaultIntegrations = Ri), void 0 === e.release && Lr.SENTRY_RELEASE && Lr.SENTRY_RELEASE.id && (e.release = Lr.SENTRY_RELEASE.id), void 0 === e.autoSessionTracking && (e.autoSessionTracking = !0), void 0 === e.sendClientReports && (e.sendClientReports = !0);
const t = {
...e,
stackParser: (n = e.stackParser || ri, Array.isArray(n) ? qn(...n) : n),
integrations: jn(e),
transport: e.transport || (Kn() ? Ai : Ci)
};
var n;
! function(e, t) {
!0 === t.debug && ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__ ? At.enable() : console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));
const n = Rn(),
r = n.getScope();
r && r.update(t.initialScope);
const i = new e(t);
n.bindClient(i)
}(Kr, t), e.autoSessionTracking && function() {
if ("undefined" === typeof Lr.document) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));
const e = Rn();
if (!e.captureSession) return;
Ni(e), tr("history", (({
from: e,
to: t
}) => {
void 0 !== e && e !== t && Ni(Rn())
}))
}()
}
function Di(e = {}, t = Rn()) {
if (!Lr.document) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.error("Global document not defined in showReportDialog call"));
const {
client: n,
scope: r
} = t.getStackTop(), i = e.dsn || n && n.getDsn();
if (!i) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.error("DSN not configured for showReportDialog call"));
r && (e.user = {
...r.getUser(),
...e.user
}), e.eventId || (e.eventId = t.lastEventId());
const a = Lr.document.createElement("script");
a.async = !0, a.src = function(e, t) {
const n = Vn(e),
r = `${Gn(n)}embed/error-page/`;
let i = `dsn=${Fn(n)}`;
for (const a in t)
if ("dsn" !== a)
if ("user" === a) {
const e = t.user;
if (!e) continue;
e.name && (i += `&name=${encodeURIComponent(e.name)}`), e.email && (i += `&email=${encodeURIComponent(e.email)}`)
} else i += `&${encodeURIComponent(a)}=${encodeURIComponent(t[a])}`;
return `${r}?${i}`
}(i, e), e.onLoad && (a.onload = e.onLoad);
const o = Lr.document.head || Lr.document.body;
o ? o.appendChild(a) : ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.error("Not injecting report dialog. No injection point found in HTML")
}
function Ni(e) {
e.startSession({
ignoreDuration: !0
}), e.captureSession()
}
n(2110);
const Li = {
componentStack: null,
error: null,
eventId: null
};
class ji extends Pe.Component {
constructor(...e) {
super(...e), ji.prototype.__init.call(this), ji.prototype.__init2.call(this)
}
__init() {
this.state = Li
}
componentDidCatch(e, {
componentStack: t
}) {
const {
beforeCapture: n,
onError: r,
showDialog: i,
dialogOptions: a
} = this.props;
Nr((o => {
if (function(e) {
const t = e.match(/^([^.]+)/);
return null !== t && parseInt(t[0]) >= 17
}(Pe.version)) {
const n = new Error(e.message);
n.name = `React ErrorBoundary ${n.name}`, n.stack = t, e.cause = n
}
n && n(o, e, t);
const s = Dr(e, {
contexts: {
react: {
componentStack: t
}
}
});
r && r(e, t, s), i && Di({
...a,
eventId: s
}), this.setState({
error: e,
componentStack: t,
eventId: s
})
}))
}
componentDidMount() {
const {
onMount: e
} = this.props;
e && e()
}
componentWillUnmount() {
const {
error: e,
componentStack: t,
eventId: n
} = this.state, {
onUnmount: r
} = this.props;
r && r(e, t, n)
}
__init2() {
this.resetErrorBoundary = () => {
const {
onReset: e
} = this.props, {
error: t,
componentStack: n,
eventId: r
} = this.state;
e && e(t, n, r), this.setState(Li)
}
}
render() {
const {
fallback: e,
children: t
} = this.props, {
error: n,
componentStack: r,
eventId: i
} = this.state;
if (n) {
let t;
return t = "function" === typeof e ? e({
error: n,
componentStack: r,
resetError: this.resetErrorBoundary,
eventId: i
}) : e, Pe.isValidElement(t) ? t : (e && ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && At.warn("fallback did not produce a valid ReactElement"), null)
}
return "function" === typeof t ? t() : t
}
}
var Mi, zi = n(8508),
Fi = n.t(zi, 2);
function Ui() {
return Ui = 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
}, Ui.apply(this, arguments)
}! function(e) {
e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE"
}(Mi || (Mi = {}));
const Vi = "popstate";
function Gi(e, t) {
if (!1 === e || null === e || "undefined" === typeof e) throw new Error(t)
}
function Bi(e, t) {
if (!e) {
"undefined" !== typeof console && console.warn(t);
try {
throw new Error(t)
} catch (n) {}
}
}
function $i(e, t) {
return {
usr: e.state,
key: e.key,
idx: t
}
}
function qi(e, t, n, r) {
return void 0 === n && (n = null), Ui({
pathname: "string" === typeof e ? e : e.pathname,
search: "",
hash: ""
}, "string" === typeof t ? Hi(t) : t, {
state: n,
key: t && t.key || r || Math.random().toString(36).substr(2, 8)
})
}
function Wi(e) {
let {
pathname: t = "/",
search: n = "",
hash: r = ""
} = e;
return n && "?" !== n && (t += "?" === n.charAt(0) ? n : "?" + n), r && "#" !== r && (t += "#" === r.charAt(0) ? r : "#" + r), t
}
function Hi(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
n >= 0 && (t.hash = e.substr(n), e = e.substr(0, n));
let r = e.indexOf("?");
r >= 0 && (t.search = e.substr(r), e = e.substr(0, r)), e && (t.pathname = e)
}
return t
}
function Yi(e, t, n, r) {
void 0 === r && (r = {});
let {
window: i = document.defaultView,
v5Compat: a = !1
} = r, o = i.history, s = Mi.Pop, l = null, c = u();
function u() {
return (o.state || {
idx: null
}).idx
}
function d() {
s = Mi.Pop;
let e = u(),
t = null == e ? null : e - c;
c = e, l && l({
action: s,
location: h.location,
delta: t
})
}
function p(e) {
let t = "null" !== i.location.origin ? i.location.origin : i.location.href,
n = "string" === typeof e ? e : Wi(e);
return Gi(t, "No window.location.(origin|href) available to create URL for href: " + n), new URL(n, t)
}
null == c && (c = 0, o.replaceState(Ui({}, o.state, {
idx: c
}), ""));
let h = {
get action() {
return s
},
get location() {
return e(i, o)
},
listen(e) {
if (l) throw new Error("A history only accepts one active listener");
return i.addEventListener(Vi, d), l = e, () => {
i.removeEventListener(Vi, d), l = null
}
},
createHref: e => t(i, e),
createURL: p,
encodeLocation(e) {
let t = p(e);
return {
pathname: t.pathname,
search: t.search,
hash: t.hash
}
},
push: function(e, t) {
s = Mi.Push;
let r = qi(h.location, e, t);
n && n(r, e), c = u() + 1;
let d = $i(r, c),
p = h.createHref(r);
try {
o.pushState(d, "", p)
} catch (f) {
if (f instanceof DOMException && "DataCloneError" === f.name) throw f;
i.location.assign(p)
}
a && l && l({
action: s,
location: h.location,
delta: 1
})
},
replace: function(e, t) {
s = Mi.Replace;
let r = qi(h.location, e, t);
n && n(r, e), c = u();
let i = $i(r, c),
d = h.createHref(r);
o.replaceState(i, "", d), a && l && l({
action: s,
location: h.location,
delta: 0
})
},
go: e => o.go(e)
};
return h
}
var Ki;
! function(e) {
e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error"
}(Ki || (Ki = {}));
const Qi = new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]);
function Zi(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 (Gi(!0 !== e.index || !e.children, "Cannot specify children on an index route"), Gi(!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 = Ui({}, e, t(e), {
id: o
});
return r[o] = n, n
} {
let n = Ui({}, e, t(e), {
id: o,
children: void 0
});
return r[o] = n, e.children && (n.children = Zi(e.children, t, a, r)), n
}
}))
}
function Xi(e, t, n) {
void 0 === n && (n = "/");
let r = la(("string" === typeof t ? Hi(t) : t).pathname || "/", n);
if (null == r) return null;
let i = Ji(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]));
return n ? e[e.length - 1] - t[t.length - 1] : 0
}(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 = ia(i[o], sa(r));
return a
}
function Ji(e, t, n, r) {
void 0 === t && (t = []), void 0 === n && (n = []), void 0 === r && (r = "");
let i = (e, i, a) => {
let o = {
relativePath: void 0 === a ? e.path || "" : a,
caseSensitive: !0 === e.caseSensitive,
childrenIndex: i,
route: e
};
o.relativePath.startsWith("/") && (Gi(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 = pa([r, o.relativePath]),
l = n.concat(o);
e.children && e.children.length > 0 && (Gi(!0 !== e.index, 'Index routes must not have child routes. Please remove all child routes from route path "' + s + '".'), Ji(e.children, t, l, s)), (null != e.path || e.index) && t.push({
path: s,
score: ra(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 ea(e.path)) i(e, t, r);
else i(e, t)
})), t
}
function ea(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 = ea(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 ta = /^:\w+$/,
na = e => "*" === e;
function ra(e, t) {
let n = e.split("/"),
r = n.length;
return n.some(na) && (r += -2), t && (r += 2), n.filter((e => !na(e))).reduce(((e, t) => e + (ta.test(t) ? 3 : "" === t ? 1 : 10)), r)
}
function ia(e, t) {
let {
routesMeta: n
} = e, r = {}, i = "/", a = [];
for (let o = 0; o < n.length; ++o) {
let e = n[o],
s = o === n.length - 1,
l = "/" === i ? t : t.slice(i.length) || "/",
c = oa({
path: e.relativePath,
caseSensitive: e.caseSensitive,
end: s
}, l);
if (!c) return null;
Object.assign(r, c.params);
let u = e.route;
a.push({
params: r,
pathname: pa([i, c.pathname]),
pathnameBase: ha(pa([i, c.pathnameBase])),
route: u
}), "/" !== c.pathnameBase && (i = pa([i, c.pathnameBase]))
}
return a
}
function aa(e, t) {
void 0 === t && (t = {});
let n = e;
n.endsWith("*") && "*" !== n && !n.endsWith("/*") && (Bi(!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) => {
if (n === r.length - 1 && "*" === e) {
return i(t["*"])
}
const a = e.match(/^:(\w+)(\??)$/);
if (a) {
const [, e, n] = a;
let r = t[e];
return Gi("?" === n || null != r, 'Missing ":' + e + '" param'), i(r)
}
return e.replace(/\?$/g, "")
})).filter((e => !!e)).join("/")
}
function oa(e, t) {
"string" === typeof e && (e = {
path: e,
caseSensitive: !1,
end: !0
});
let [n, r] = function(e, t, n) {
void 0 === t && (t = !1);
void 0 === n && (n = !0);
Bi("*" === 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,
isOptional: null != n
}), n ? "/?([^\\/]+)?" : "/([^\\/]+)")));
e.endsWith("*") ? (r.push({
paramName: "*"
}), i += "*" === e || "/*" === e ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : "" !== e && "/" !== e && (i += "(?:(?=\\/|$))");
let a = new RegExp(i, t ? void 0 : "i");
return [a, r]
}(e.path, e.caseSensitive, e.end), i = t.match(n);
if (!i) return null;
let a = i[0],
o = a.replace(/(.)\/+$/, "$1"),
s = i.slice(1);
return {
params: r.reduce(((e, t, n) => {
let {
paramName: r,
isOptional: i
} = t;
if ("*" === r) {
let e = s[n] || "";
o = a.slice(0, a.length - e.length).replace(/(.)\/+$/, "$1")
}
const l = s[n];
return e[r] = i && !l ? void 0 : function(e, t) {
try {
return decodeURIComponent(e)
} catch (n) {
return Bi(!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
}), {}),
pathname: a,
pathnameBase: o,
pattern: e
}
}
function sa(e) {
try {
return decodeURI(e)
} catch (t) {
return Bi(!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 la(e, t) {
if ("/" === t) return e;
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
let n = t.endsWith("/") ? t.length - 1 : t.length,
r = e.charAt(n);
return r && "/" !== r ? null : e.slice(n) || "/"
}
function ca(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 <Link to="..."> and the router will parse it for you.'
}
function ua(e) {
return e.filter(((e, t) => 0 === t || e.route.path && e.route.path.length > 0))
}
function da(e, t, n, r) {
let i;
void 0 === r && (r = !1), "string" === typeof e ? i = Hi(e) : (i = Ui({}, e), Gi(!i.pathname || !i.pathname.includes("?"), ca("?", "pathname", "search", i)), Gi(!i.pathname || !i.pathname.includes("#"), ca("#", "pathname", "hash", i)), Gi(!i.search || !i.search.includes("#"), ca("#", "search", "hash", i)));
let a, o = "" === e || "" === i.pathname,
s = o ? "/" : i.pathname;
if (null == s) a = n;
else if (r) {
let e = t[t.length - 1].replace(/^\//, "").split("/");
if (s.startsWith("..")) {
let t = s.split("/");
for (;
".." === t[0];) t.shift(), e.pop();
i.pathname = t.join("/")
}
a = "/" + e.join("/")
} else {
let e = t.length - 1;
if (s.startsWith("..")) {
let t = s.split("/");
for (;
".." === t[0];) t.shift(), e -= 1;
i.pathname = t.join("/")
}
a = e >= 0 ? t[e] : "/"
}
let l = function(e, t) {
void 0 === t && (t = "/");
let {
pathname: n,
search: r = "",
hash: i = ""
} = "string" === typeof e ? Hi(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)
})), n.length > 1 ? n.join("/") : "/"
}(n, t) : t;
return {
pathname: a,
search: fa(r),
hash: ma(i)
}
}(i, a),
c = s && "/" !== s && s.endsWith("/"),
u = (o || "." === s) && n.endsWith("/");
return l.pathname.endsWith("/") || !c && !u || (l.pathname += "/"), l
}
const pa = e => e.join("/").replace(/\/\/+/g, "/"),
ha = e => e.replace(/\/+$/, "").replace(/^\/*/, "/"),
fa = e => e && "?" !== e ? e.startsWith("?") ? e : "?" + e : "",
ma = e => e && "#" !== e ? e.startsWith("#") ? e : "#" + e : "";
class ga extends Error {}
const va = 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, Ui({}, n, {
headers: r
}))
};
class _a {
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 ya(e) {
return null != e && "number" === typeof e.status && "string" === typeof e.statusText && "boolean" === typeof e.internal && "data" in e
}
const ba = ["post", "put", "patch", "delete"],
xa = new Set(ba),
wa = ["get", ...ba],
ka = new Set(wa),
Ea = new Set([301, 302, 303, 307, 308]),
Sa = new Set([307, 308]),
Oa = {
state: "idle",
location: void 0,
formMethod: void 0,
formAction: void 0,
formEncType: void 0,
formData: void 0,
json: void 0,
text: void 0
},
Pa = {
state: "idle",
data: void 0,
formMethod: void 0,
formAction: void 0,
formEncType: void 0,
formData: void 0,
json: void 0,
text: void 0
},
Ia = {
state: "unblocked",
proceed: void 0,
reset: void 0,
location: void 0
},
Aa = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,
Ca = e => ({
hasErrorBoundary: Boolean(e.hasErrorBoundary)
}),
Ra = "remix-router-transitions";
function Ta(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 (Gi(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 = Ca;
let a, o = {},
s = Zi(e.routes, i, void 0, o),
l = e.basename || "/",
c = Ui({
v7_fetcherPersist: !1,
v7_normalizeFormMethod: !1,
v7_prependBasename: !1
}, e.future),
u = null,
d = new Set,
p = null,
h = null,
f = null,
m = null != e.hydrationData,
g = Xi(s, e.history.location, l),
v = null;
if (null == g) {
let t = Ka(404, {
pathname: e.history.location.pathname
}),
{
matches: n,
route: r
} = Ya(s);
g = n, v = {
[r.id]: t
}
}
let _, y, b = !g.some((e => e.route.lazy)) && (!g.some((e => e.route.loader)) || null != e.hydrationData),
x = {
historyAction: e.history.action,
location: e.history.location,
matches: g,
initialized: b,
navigation: Oa,
restoreScrollPosition: null == e.hydrationData && null,
preventScrollReset: !1,
revalidation: "idle",
loaderData: e.hydrationData && e.hydrationData.loaderData || {},
actionData: e.hydrationData && e.hydrationData.actionData || null,
errors: e.hydrationData && e.hydrationData.errors || v,
fetchers: new Map,
blockers: new Map
},
w = Mi.Pop,
k = !1,
E = !1,
S = new Map,
O = null,
P = !1,
I = !1,
A = [],
C = [],
R = new Map,
T = 0,
D = -1,
N = new Map,
L = new Set,
j = new Map,
M = new Map,
z = new Set,
F = new Map,
U = new Map,
V = !1;
function G(e, t) {
void 0 === t && (t = {}), x = Ui({}, x, e);
let n = [],
r = [];
c.v7_fetcherPersist && x.fetchers.forEach(((e, t) => {
"idle" === e.state && (z.has(t) ? r.push(t) : n.push(t))
})), [...d].forEach((e => e(x, {
deletedFetchers: r,
unstable_viewTransitionOpts: t.viewTransitionOpts,
unstable_flushSync: !0 === t.flushSync
}))), c.v7_fetcherPersist && (n.forEach((e => x.fetchers.delete(e))), r.forEach((e => Z(e))))
}
function B(t, n, r) {
var i, o;
let l, {
flushSync: c
} = void 0 === r ? {} : r,
u = null != x.actionData && null != x.navigation.formMethod && ro(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 ? Wa(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, Ia))));
let h, f = !0 === k || null != x.navigation.formMethod && ro(x.navigation.formMethod) && !0 !== (null == (o = t.state) ? void 0 : o._isRedirect);
if (a && (s = a, a = void 0), P || w === Mi.Pop || (w === Mi.Push ? e.history.push(t, t.state) : w === Mi.Replace && e.history.replace(t, t.state)), w === Mi.Pop) {
let e = S.get(x.location.pathname);
e && e.has(t.pathname) ? h = {
currentLocation: x.location,
nextLocation: t
} : S.has(t.pathname) && (h = {
currentLocation: t,
nextLocation: x.location
})
} else if (E) {
let e = S.get(x.location.pathname);
e ? e.add(t.pathname) : (e = new Set([t.pathname]), S.set(x.location.pathname, e)), h = {
currentLocation: x.location,
nextLocation: t
}
}
G(Ui({}, n, {
actionData: l,
loaderData: d,
historyAction: w,
location: t,
initialized: !0,
navigation: Oa,
revalidation: "idle",
restoreScrollPosition: se(t, n.matches || x.matches),
preventScrollReset: f,
blockers: p
}), {
viewTransitionOpts: h,
flushSync: !0 === c
}), w = Mi.Pop, k = !1, E = !1, P = !1, I = !1, A = [], C = []
}
async function $(t, n, r) {
y && y.abort(), y = null, w = t, P = !0 === (r && r.startUninterruptedRevalidation),
function(e, t) {
if (p && f) {
let n = oe(e, t);
p[n] = f()
}
}(x.location, x.matches), k = !0 === (r && r.preventScrollReset), E = !0 === (r && r.enableViewTransition);
let c = a || s,
u = r && r.overrideNavigation,
d = Xi(c, n, l),
h = !0 === (r && r.flushSync);
if (!d) {
let e = Ka(404, {
pathname: n.pathname
}),
{
matches: t,
route: r
} = Ya(c);
return ae(), void B(n, {
matches: t,
loaderData: {},
errors: {
[r.id]: e
}
}, {
flushSync: h
})
}
if (x.initialized && !I && function(e, t) {
if (e.pathname !== t.pathname || e.search !== t.search) return !1;
if ("" === e.hash) return "" !== t.hash;
if (e.hash === t.hash) return !0;
if ("" !== t.hash) return !0;
return !1
}(x.location, n) && !(r && r.submission && ro(r.submission.formMethod))) return void B(n, {
matches: d
}, {
flushSync: h
});
y = new AbortController;
let m, g, v = Va(e.history, n, y.signal, r && r.submission);
if (r && r.pendingError) g = {
[Ha(d).route.id]: r.pendingError
};
else if (r && r.submission && ro(r.submission.formMethod)) {
let e = await async function(e, t, n, r, a) {
void 0 === a && (a = {});
H();
let s, c = function(e, t) {
let n = {
state: "submitting",
location: e,
formMethod: t.formMethod,
formAction: t.formAction,
formEncType: t.formEncType,
formData: t.formData,
json: t.json,
text: t.text
};
return n
}(t, n);
G({
navigation: c
}, {
flushSync: !0 === a.flushSync
});
let u = so(r, t);
if (u.route.action || u.route.lazy) {
if (s = await Ua("action", e, u, r, o, i, l), e.signal.aborted) return {
shortCircuited: !0
}
} else s = {
type: Ki.error,
error: Ka(405, {
method: e.method,
pathname: t.pathname,
routeId: u.route.id
})
};
if (eo(s)) {
let e;
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 (Ja(s)) {
let e = Ha(r, u.route.id);
return !0 !== (a && a.replace) && (w = Mi.Push), {
pendingActionData: {},
pendingActionError: {
[e.route.id]: s.error
}
}
}
if (Xa(s)) throw Ka(400, {
type: "defer-action"
});
return {
pendingActionData: {
[u.route.id]: s.data
}
}
}(v, n, r.submission, d, {
replace: r.replace,
flushSync: h
});
if (e.shortCircuited) return;
m = e.pendingActionData, g = e.pendingActionError, u = co(n, r.submission), h = !1, v = new Request(v.url, {
signal: v.signal
})
}
let {
shortCircuited: _,
loaderData: b,
errors: S
} = await async function(t, n, r, i, o, c, u, d, p, h) {
let f = i || co(n, o),
m = o || c || lo(f),
g = a || s,
[v, _] = ja(e.history, x, r, m, n, I, A, C, z, j, L, g, l, p, h);
if (ae((e => !(r && r.some((t => t.route.id === e))) || v && v.some((t => t.route.id === e)))), D = ++T, 0 === v.length && 0 === _.length) {
let e = ee();
return B(n, Ui({
matches: r,
loaderData: {},
errors: h || null
}, p ? {
actionData: p
} : {}, e ? {
fetchers: new Map(x.fetchers)
} : {}), {
flushSync: d
}), {
shortCircuited: !0
}
}
if (!P) {
_.forEach((e => {
let t = x.fetchers.get(e.key),
n = uo(void 0, t ? t.data : void 0);
x.fetchers.set(e.key, n)
}));
let e = p || x.actionData;
G(Ui({
navigation: f
}, e ? 0 === Object.keys(e).length ? {
actionData: null
} : {
actionData: e
} : {}, _.length > 0 ? {
fetchers: new Map(x.fetchers)
} : {}), {
flushSync: d
})
}
_.forEach((e => {
R.has(e.key) && X(e.key), e.controller && R.set(e.key, e.controller)
}));
let b = () => _.forEach((e => X(e.key)));
y && y.signal.addEventListener("abort", b);
let {
results: w,
loaderResults: k,
fetcherResults: E
} = await W(x.matches, r, v, _, t);
if (t.signal.aborted) return {
shortCircuited: !0
};
y && y.signal.removeEventListener("abort", b);
_.forEach((e => R.delete(e.key)));
let S = Qa(w);
if (S) {
if (S.idx >= v.length) {
let e = _[S.idx - v.length].key;
L.add(e)
}
return await q(x, S.result, {
replace: u
}), {
shortCircuited: !0
}
}
let {
loaderData: O,
errors: N
} = qa(x, r, v, k, h, _, E, F);
F.forEach(((e, t) => {
e.subscribe((n => {
(n || e.done) && F.delete(t)
}))
}));
let M = ee(),
U = te(D),
V = M || U || _.length > 0;
return Ui({
loaderData: O,
errors: N
}, V ? {
fetchers: new Map(x.fetchers)
} : {})
}(v, n, d, u, r && r.submission, r && r.fetcherSubmission, r && r.replace, h, m, g);
_ || (y = null, B(n, Ui({
matches: d
}, m ? {
actionData: m
} : {}, {
loaderData: b,
errors: S
})))
}
async function q(r, i, a) {
let {
submission: o,
fetcherSubmission: s,
replace: c
} = void 0 === a ? {} : a;
i.revalidate && (I = !0);
let u = qi(r.location, i.location, {
_isRedirect: !0
});
if (Gi(u, "Expected a location on the redirect navigation"), n) {
let n = !1;
if (i.reloadDocument) n = !0;
else if (Aa.test(i.location)) {
const r = e.history.createURL(i.location);
n = r.origin !== t.location.origin || null == la(r.pathname, l)
}
if (n) return void(c ? t.location.replace(i.location) : t.location.assign(i.location))
}
y = null;
let d = !0 === c ? Mi.Replace : Mi.Push,
{
formMethod: p,
formAction: h,
formEncType: f
} = r.navigation;
!o && !s && p && h && f && (o = lo(r.navigation));
let m = o || s;
if (Sa.has(i.status) && m && ro(m.formMethod)) await $(d, u, {
submission: Ui({}, m, {
formAction: i.location
}),
preventScrollReset: k
});
else {
let e = co(u, o);
await $(d, u, {
overrideNavigation: e,
fetcherSubmission: s,
preventScrollReset: k
})
}
}
async function W(t, n, r, a, s) {
let c = await Promise.all([...r.map((e => Ua("loader", s, e, n, o, i, l))), ...a.map((t => {
if (t.matches && t.match && t.controller) return Ua("loader", Va(e.history, t.path, t.controller.signal), t.match, t.matches, o, i, l);
return {
type: Ki.error,
error: Ka(404, {
pathname: t.path
})
}
}))]),
u = c.slice(0, r.length),
d = c.slice(r.length);
return await Promise.all([io(t, r, u, u.map((() => s.signal)), !1, x.loaderData), io(t, a.map((e => e.match)), d, a.map((e => e.controller ? e.controller.signal : null)), !0)]), {
results: c,
loaderResults: u,
fetcherResults: d
}
}
function H() {
I = !0, A.push(...ae()), j.forEach(((e, t) => {
R.has(t) && (C.push(t), X(t))
}))
}
function Y(e, t, n) {
void 0 === n && (n = {}), x.fetchers.set(e, t), G({
fetchers: new Map(x.fetchers)
}, {
flushSync: !0 === (n && n.flushSync)
})
}
function K(e, t, n, r) {
void 0 === r && (r = {});
let i = Ha(x.matches, t);
Z(e), G({
errors: {
[i.route.id]: n
},
fetchers: new Map(x.fetchers)
}, {
flushSync: !0 === (r && r.flushSync)
})
}
function Q(e) {
return c.v7_fetcherPersist && (M.set(e, (M.get(e) || 0) + 1), z.has(e) && z.delete(e)), x.fetchers.get(e) || Pa
}
function Z(e) {
let t = x.fetchers.get(e);
!R.has(e) || t && "loading" === t.state && N.has(e) || X(e), j.delete(e), N.delete(e), L.delete(e), z.delete(e), x.fetchers.delete(e)
}
function X(e) {
let t = R.get(e);
Gi(t, "Expected fetch controller: " + e), t.abort(), R.delete(e)
}
function J(e) {
for (let t of e) {
let e = po(Q(t).data);
x.fetchers.set(t, e)
}
}
function ee() {
let e = [],
t = !1;
for (let n of L) {
let r = x.fetchers.get(n);
Gi(r, "Expected fetcher: " + n), "loading" === r.state && (L.delete(n), e.push(n), t = !0)
}
return J(e), t
}
function te(e) {
let t = [];
for (let [n, r] of N)
if (r < e) {
let e = x.fetchers.get(n);
Gi(e, "Expected fetcher: " + n), "loading" === e.state && (X(n), N.delete(n), t.push(n))
} return J(t), t.length > 0
}
function ne(e) {
x.blockers.delete(e), U.delete(e)
}
function re(e, t) {
let n = x.blockers.get(e) || Ia;
Gi("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), G({
blockers: r
})
}
function ie(e) {
let {
currentLocation: t,
nextLocation: n,
historyAction: r
} = e;
if (0 === U.size) return;
U.size > 1 && Bi(!1, "A router only supports one blocker at a time");
let i = Array.from(U.entries()),
[a, o] = i[i.length - 1],
s = x.blockers.get(a);
return s && "proceeding" === s.state ? void 0 : o({
currentLocation: t,
nextLocation: n,
historyAction: r
}) ? a : void 0
}
function ae(e) {
let t = [];
return F.forEach(((n, r) => {
e && !e(r) || (n.cancel(), t.push(r), F.delete(r))
})), t
}
function oe(e, t) {
if (h) {
let n = h(e, t.map((e => function(e, t) {
let {
route: n,
pathname: r,
params: i
} = e;
return {
id: n.id,
pathname: r,
params: i,
data: t[n.id],
handle: n.handle
}
}(e, x.loaderData))));
return n || e.key
}
return e.key
}
function se(e, t) {
if (p) {
let n = oe(e, t),
r = p[n];
if ("number" === typeof r) return r
}
return null
}
return _ = {
get basename() {
return l
},
get state() {
return x
},
get routes() {
return s
},
get window() {
return t
},
initialize: function() {
if (u = e.history.listen((t => {
let {
action: n,
location: r,
delta: i
} = t;
if (V) return void(V = !1);
Bi(0 === U.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,
historyAction: n
});
return a && null != i ? (V = !0, e.history.go(-1 * i), void re(a, {
state: "blocked",
location: r,
proceed() {
re(a, {
state: "proceeding",
proceed: void 0,
reset: void 0,
location: r
}), e.history.go(i)
},
reset() {
let e = new Map(x.blockers);
e.set(a, Ia), G({
blockers: e
})
}
})) : $(n, r)
})), n) {
! function(e, t) {
try {
let n = e.sessionStorage.getItem(Ra);
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 || []))
}
} catch (n) {}
}(t, S);
let e = () => function(e, t) {
if (t.size > 0) {
let r = {};
for (let [e, n] of t) r[e] = [...n];
try {
e.sessionStorage.setItem(Ra, JSON.stringify(r))
} catch (n) {
Bi(!1, "Failed to save applied view transitions in sessionStorage (" + n + ").")
}
}
}(t, S);
t.addEventListener("pagehide", e), O = () => t.removeEventListener("pagehide", e)
}
return x.initialized || $(Mi.Pop, x.location), _
},
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 === Oa) {
m = !0;
let e = se(x.location, x.matches);
null != e && G({
restoreScrollPosition: e
})
}
return () => {
p = null, f = null, h = null
}
},
navigate: async function t(n, r) {
if ("number" === typeof n) return void e.history.go(n);
let i = Da(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
} = Na(c.v7_normalizeFormMethod, !1, i, r),
u = x.location,
d = qi(x.location, a, r && r.state);
d = Ui({}, d, e.history.encodeLocation(d));
let p = r && null != r.replace ? r.replace : void 0,
h = Mi.Push;
!0 === p ? h = Mi.Replace : !1 === p || null != o && ro(o.formMethod) && o.formAction === x.location.pathname + x.location.search && (h = Mi.Replace);
let f = r && "preventScrollReset" in r ? !0 === r.preventScrollReset : void 0,
m = !0 === (r && r.unstable_flushSync),
g = ie({
currentLocation: u,
nextLocation: d,
historyAction: h
});
if (!g) return await $(h, d, {
submission: o,
pendingError: s,
preventScrollReset: f,
replace: r && r.replace,
enableViewTransition: r && r.unstable_viewTransition,
flushSync: m
});
re(g, {
state: "blocked",
location: d,
proceed() {
re(g, {
state: "proceeding",
proceed: void 0,
reset: void 0,
location: d
}), t(n, r)
},
reset() {
let e = new Map(x.blockers);
e.set(g, Ia), G({
blockers: e
})
}
})
},
fetch: function(t, n, u, d) {
if (r) throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");
R.has(t) && X(t);
let p = !0 === (d && d.unstable_flushSync),
h = a || s,
f = Da(x.location, x.matches, l, c.v7_prependBasename, u, n, null == d ? void 0 : d.relative),
m = Xi(h, f, l);
if (!m) return void K(t, n, Ka(404, {
pathname: f
}), {
flushSync: p
});
let {
path: g,
submission: v,
error: _
} = Na(c.v7_normalizeFormMethod, !0, f, d);
if (_) return void K(t, n, _, {
flushSync: p
});
let b = so(m, g);
k = !0 === (d && d.preventScrollReset), v && ro(v.formMethod) ? async function(t, n, r, c, u, d, p) {
if (H(), j.delete(t), !c.route.action && !c.route.lazy) {
let e = Ka(405, {
method: p.formMethod,
pathname: r,
routeId: n
});
return void K(t, n, e, {
flushSync: d
})
}
let h = x.fetchers.get(t);
Y(t, function(e, t) {
let n = {
state: "submitting",
formMethod: e.formMethod,
formAction: e.formAction,
formEncType: e.formEncType,
formData: e.formData,
json: e.json,
text: e.text,
data: t ? t.data : void 0
};
return n
}(p, h), {
flushSync: d
});
let f = new AbortController,
m = Va(e.history, r, f.signal, p);
R.set(t, f);
let g = T,
v = await Ua("action", m, c, u, o, i, l);
if (m.signal.aborted) return void(R.get(t) === f && R.delete(t));
if (z.has(t)) return void Y(t, po(void 0));
if (eo(v)) return R.delete(t), D > g ? void Y(t, po(void 0)) : (L.add(t), Y(t, uo(p)), q(x, v, {
fetcherSubmission: p
}));
if (Ja(v)) return void K(t, n, v.error);
if (Xa(v)) throw Ka(400, {
type: "defer-action"
});
let _ = x.navigation.location || x.location,
b = Va(e.history, _, f.signal),
k = a || s,
E = "idle" !== x.navigation.state ? Xi(k, x.navigation.location, l) : x.matches;
Gi(E, "Didn't find any matches after fetcher action");
let S = ++T;
N.set(t, S);
let O = uo(p, v.data);
x.fetchers.set(t, O);
let [P, M] = ja(e.history, x, E, p, _, I, A, C, z, j, L, k, l, {
[c.route.id]: v.data
}, void 0);
M.filter((e => e.key !== t)).forEach((e => {
let t = e.key,
n = x.fetchers.get(t),
r = uo(void 0, n ? n.data : void 0);
x.fetchers.set(t, r), R.has(t) && X(t), e.controller && R.set(t, e.controller)
})), G({
fetchers: new Map(x.fetchers)
});
let U = () => M.forEach((e => X(e.key)));
f.signal.addEventListener("abort", U);
let {
results: V,
loaderResults: $,
fetcherResults: Q
} = await W(x.matches, E, P, M, b);
if (f.signal.aborted) return;
f.signal.removeEventListener("abort", U), N.delete(t), R.delete(t), M.forEach((e => R.delete(e.key)));
let Z = Qa(V);
if (Z) {
if (Z.idx >= P.length) {
let e = M[Z.idx - P.length].key;
L.add(e)
}
return q(x, Z.result)
}
let {
loaderData: J,
errors: ee
} = qa(x, x.matches, P, $, void 0, M, Q, F);
if (x.fetchers.has(t)) {
let e = po(v.data);
x.fetchers.set(t, e)
}
te(S), "loading" === x.navigation.state && S > D ? (Gi(w, "Expected pending action"), y && y.abort(), B(x.navigation.location, {
matches: E,
loaderData: J,
errors: ee,
fetchers: new Map(x.fetchers)
})) : (G({
errors: ee,
loaderData: Wa(x.loaderData, J, E, ee),
fetchers: new Map(x.fetchers)
}), I = !1)
}(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);
Y(t, uo(u, d ? d.data : void 0), {
flushSync: c
});
let p = new AbortController,
h = Va(e.history, r, p.signal);
R.set(t, p);
let f = T,
m = await Ua("loader", h, a, s, o, i, l);
Xa(m) && (m = await ao(m, h.signal, !0) || m);
R.get(t) === p && R.delete(t);
if (h.signal.aborted) return;
if (z.has(t)) return void Y(t, po(void 0));
if (eo(m)) return D > f ? void Y(t, po(void 0)) : (L.add(t), void await q(x, m));
if (Ja(m)) return void K(t, n, m.error);
Gi(!Xa(m), "Unhandled fetcher deferred data"), Y(t, po(m.data))
}(t, n, g, b, m, p, v))
},
revalidate: function() {
H(), G({
revalidation: "loading"
}), "submitting" !== x.navigation.state && ("idle" !== x.navigation.state ? $(w || x.historyAction, x.navigation.location, {
overrideNavigation: x.navigation
}) : $(x.historyAction, x.location, {
startUninterruptedRevalidation: !0
}))
},
createHref: t => e.history.createHref(t),
encodeLocation: t => e.history.encodeLocation(t),
getFetcher: Q,
deleteFetcher: function(e) {
if (c.v7_fetcherPersist) {
let t = (M.get(e) || 0) - 1;
t <= 0 ? (M.delete(e), z.add(e)) : M.set(e, t)
} else Z(e);
G({
fetchers: new Map(x.fetchers)
})
},
dispose: function() {
u && u(), O && O(), d.clear(), y && y.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) || Ia;
return U.get(e) !== t && U.set(e, t), n
},
deleteBlocker: ne,
_internalFetchControllers: R,
_internalActiveDeferreds: F,
_internalSetRoutes: function(e) {
o = {}, a = Zi(e, i, void 0, o)
}
}, _
}
Symbol("deferred");
function Da(e, t, n, r, i, a, o) {
let s, l;
if (a) {
s = [];
for (let e of t)
if (s.push(e), e.route.id === a) {
l = e;
break
}
} else s = t, l = t[t.length - 1];
let c = da(i || ".", ua(s).map((e => e.pathnameBase)), la(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 || oo(c.search) || (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), r && "/" !== n && (c.pathname = "/" === c.pathname ? n : pa([n, c.pathname])), Wi(c)
}
function Na(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 && !no(r.formMethod)) return {
path: n,
error: Ka(405, {
method: r.formMethod
})
};
let i, a, o = () => ({
path: n,
error: Ka(400, {
type: "invalid-body"
})
}),
s = r.formMethod || "get",
l = e ? s.toUpperCase() : s.toLowerCase(),
c = Za(n);
if (void 0 !== r.body) {
if ("text/plain" === r.formEncType) {
if (!ro(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"
}), "") : String(r.body);
return {
path: n,
submission: {
formMethod: l,
formAction: c,
formEncType: r.formEncType,
formData: void 0,
json: void 0,
text: e
}
}
}
if ("application/json" === r.formEncType) {
if (!ro(l)) return o();
try {
let e = "string" === typeof r.body ? JSON.parse(r.body) : r.body;
return {
path: n,
submission: {
formMethod: l,
formAction: c,
formEncType: r.formEncType,
formData: void 0,
json: e,
text: void 0
}
}
} catch (p) {
return o()
}
}
}
if (Gi("function" === typeof FormData, "FormData is not available in this environment"), r.formData) i = Ga(r.formData), a = r.formData;
else if (r.body instanceof FormData) i = Ga(r.body), a = r.body;
else if (r.body instanceof URLSearchParams) i = r.body, a = Ba(i);
else if (null == r.body) i = new URLSearchParams, a = new FormData;
else try {
i = new URLSearchParams(r.body), a = Ba(i)
} catch (p) {
return o()
}
let u = {
formMethod: l,
formAction: c,
formEncType: r && r.formEncType || "application/x-www-form-urlencoded",
formData: a,
json: void 0,
text: void 0
};
if (ro(u.formMethod)) return {
path: n,
submission: u
};
let d = Hi(n);
return t && d.search && oo(d.search) && i.append("index", ""), d.search = "?" + i, {
path: Wi(d),
submission: u
}
}
function La(e, t) {
let n = e;
if (t) {
let r = e.findIndex((e => e.route.id === t));
r >= 0 && (n = e.slice(0, r))
}
return n
}
function ja(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),
_ = f ? Object.keys(f)[0] : void 0,
y = La(n, _).filter(((e, n) => {
if (e.route.lazy) return !0;
if (null == e.route.loader) return !1;
if (function(e, t, n) {
let r = !t || n.route.id !== t.route.id,
i = void 0 === e[n.route.id];
return r || i
}(t.loaderData, t.matches[n], e) || o.some((t => t === e.route.id))) return !0;
let i = t.matches[n],
s = e;
return za(e, Ui({
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 || Ma(i, s)
}))
})),
b = [];
return c.forEach(((e, i) => {
if (!n.some((t => t.route.id === e.routeId)) || l.has(i)) return;
let o = Xi(d, e.path, p);
if (!o) return void b.push({
key: i,
routeId: e.routeId,
path: e.path,
matches: null,
match: null,
controller: null
});
let c = t.fetchers.get(i),
h = so(o, e.path),
f = !1;
f = !u.has(i) && (!!s.includes(i) || (c && "idle" !== c.state && void 0 === c.data ? a : za(h, Ui({
currentUrl: g,
currentParams: t.matches[t.matches.length - 1].params,
nextUrl: v,
nextParams: n[n.length - 1].params
}, r, {
actionResult: m,
defaultShouldRevalidate: a
})))), f && b.push({
key: i,
routeId: e.routeId,
path: e.path,
matches: o,
match: h,
controller: new AbortController
})
})), [y, b]
}
function Ma(e, t) {
let n = e.route.path;
return e.pathname !== t.pathname || null != n && n.endsWith("*") && e.params["*"] !== t.params["*"]
}
function za(e, t) {
if (e.route.shouldRevalidate) {
let n = e.route.shouldRevalidate(t);
if ("boolean" === typeof n) return n
}
return t.defaultShouldRevalidate
}
async function Fa(e, t, n) {
if (!e.lazy) return;
let r = await e.lazy();
if (!e.lazy) return;
let i = n[e.id];
Gi(i, "No route found in manifest");
let a = {};
for (let o in r) {
let e = void 0 !== i[o] && "hasErrorBoundary" !== o;
Bi(!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 || Qi.has(o) || (a[o] = r[o])
}
Object.assign(i, a), Object.assign(i, Ui({}, t(i), {
lazy: void 0
}))
}
async function Ua(e, t, n, r, i, a, o, s) {
let l, c, u;
void 0 === s && (s = {});
let d = e => {
let r, i = new Promise(((e, t) => r = t));
return u = () => r(), t.signal.addEventListener("abort", u), Promise.race([e({
request: t,
params: n.params,
context: s.requestContext
}), i])
};
try {
let r = n.route[e];
if (n.route.lazy)
if (r) {
let e, t = await Promise.all([d(r).catch((t => {
e = t
})), Fa(n.route, a, i)]);
if (e) throw e;
c = t[0]
} else {
if (await Fa(n.route, a, i), r = n.route[e], !r) {
if ("action" === e) {
let e = new URL(t.url),
r = e.pathname + e.search;
throw Ka(405, {
method: t.method,
pathname: r,
routeId: n.route.id
})
}
return {
type: Ki.data,
data: void 0
}
}
c = await d(r)
}
else {
if (!r) {
let e = new URL(t.url);
throw Ka(404, {
pathname: e.pathname + e.search
})
}
c = await d(r)
}
Gi(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 = Ki.error, c = f
} finally {
u && t.signal.removeEventListener("abort", u)
}
if (to(c)) {
let e, i = c.status;
if (Ea.has(i)) {
let e = c.headers.get("Location");
if (Gi(e, "Redirects returned/thrown from loaders/actions must have a Location header"), Aa.test(e)) {
if (!s.isStaticRequest) {
let n = new URL(t.url),
r = e.startsWith("//") ? new URL(n.protocol + e) : new URL(e),
i = null != la(r.pathname, o);
r.origin === n.origin && i && (e = r.pathname + r.search + r.hash)
}
} else e = Da(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: Ki.redirect,
status: i,
location: e,
revalidate: null !== c.headers.get("X-Remix-Revalidate"),
reloadDocument: null !== c.headers.get("X-Remix-Reload-Document")
}
}
if (s.isRouteRequest) {
throw {
type: l === Ki.error ? Ki.error : Ki.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 === Ki.error ? {
type: l,
error: new _a(i, c.statusText, e),
headers: c.headers
} : {
type: Ki.data,
data: e,
statusCode: c.status,
headers: c.headers
}
}
return l === Ki.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: Ki.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: Ki.data,
data: c
};
var p, h
}
function Va(e, t, n, r) {
let i = e.createURL(Za(t)).toString(),
a = {
signal: n
};
if (r && ro(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 = Ga(r.formData) : a.body = r.formData
}
return new Request(i, a)
}
function Ga(e) {
let t = new URLSearchParams;
for (let [n, r] of e.entries()) t.append(n, "string" === typeof r ? r : r.name);
return t
}
function Ba(e) {
let t = new FormData;
for (let [n, r] of e.entries()) t.append(n, r);
return t
}
function $a(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 (Gi(!eo(n), "Cannot handle redirect results in processLoaderData"), Ja(n)) {
let t = Ha(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 = ya(n.error) ? n.error.status : 500), n.headers && (c[d] = n.headers)
} else Xa(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,
statusCode: a || 200,
loaderHeaders: c
}
}
function qa(e, t, n, r, i, a, o, s) {
let {
loaderData: l,
errors: c
} = $a(t, n, r, i, s);
for (let u = 0; u < a.length; u++) {
let {
key: t,
match: n,
controller: r
} = a[u];
Gi(void 0 !== o && void 0 !== o[u], "Did not find corresponding fetcher result");
let i = o[u];
if (!r || !r.signal.aborted)
if (Ja(i)) {
let r = Ha(e.matches, null == n ? void 0 : n.route.id);
c && c[r.route.id] || (c = Ui({}, c, {
[r.route.id]: i.error
})), e.fetchers.delete(t)
} else if (eo(i)) Gi(!1, "Unhandled fetcher revalidation redirect");
else if (Xa(i)) Gi(!1, "Unhandled fetcher deferred data");
else {
let n = po(i.data);
e.fetchers.set(t, n)
}
}
return {
loaderData: l,
errors: c
}
}
function Wa(e, t, n, r) {
let i = Ui({}, 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
}
return i
}
function Ha(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 Ya(e) {
let t = 1 === e.length ? e[0] : e.find((e => e.index || !e.path || "/" === e.path)) || {
id: "__shim-error-route__"
};
return {
matches: [{
params: {},
pathname: "",
pathnameBase: "",
route: t
}],
route: t
}
}
function Ka(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 _a(e || 500, o, new Error(s), !0)
}
function Qa(e) {
for (let t = e.length - 1; t >= 0; t--) {
let n = e[t];
if (eo(n)) return {
result: n,
idx: t
}
}
}
function Za(e) {
return Wi(Ui({}, "string" === typeof e ? Hi(e) : e, {
hash: ""
}))
}
function Xa(e) {
return e.type === Ki.deferred
}
function Ja(e) {
return e.type === Ki.error
}
function eo(e) {
return (e && e.type) === Ki.redirect
}
function to(e) {
return null != e && "number" === typeof e.status && "string" === typeof e.statusText && "object" === typeof e.headers && "undefined" !== typeof e.body
}
function no(e) {
return ka.has(e.toLowerCase())
}
function ro(e) {
return xa.has(e.toLowerCase())
}
async function io(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 && !Ma(c, l) && void 0 !== (a && a[l.route.id]);
if (Xa(s) && (i || u)) {
let e = r[o];
Gi(e, "Expected an AbortSignal for revalidating fetcher deferred result"), await ao(s, e, i).then((e => {
e && (n[o] = e || n[o])
}))
}
}
}
async function ao(e, t, n) {
if (void 0 === n && (n = !1), !await e.deferredData.resolveData(t)) {
if (n) try {
return {
type: Ki.data,
data: e.deferredData.unwrappedData
}
} catch (r) {
return {
type: Ki.error,
error: r
}
}
return {
type: Ki.data,
data: e.deferredData.data
}
}
}
function oo(e) {
return new URLSearchParams(e).getAll("index").some((e => "" === e))
}
function so(e, t) {
let n = "string" === typeof t ? Hi(t).search : t.search;
if (e[e.length - 1].route.index && oo(n || "")) return e[e.length - 1];
let r = ua(e);
return r[r.length - 1]
}
function lo(e) {
let {
formMethod: t,
formAction: n,
formEncType: r,
text: i,
formData: a,
json: o
} = e;
if (t && n && r) return null != i ? {
formMethod: t,
formAction: n,
formEncType: r,
formData: void 0,
json: void 0,
text: i
} : null != a ? {
formMethod: t,
formAction: n,
formEncType: r,
formData: a,
json: void 0,
text: void 0
} : void 0 !== o ? {
formMethod: t,
formAction: n,
formEncType: r,
formData: void 0,
json: o,
text: void 0
} : void 0
}
function co(e, t) {
if (t) {
return {
state: "loading",
location: e,
formMethod: t.formMethod,
formAction: t.formAction,
formEncType: t.formEncType,
formData: t.formData,
json: t.json,
text: t.text
}
}
return {
state: "loading",
location: e,
formMethod: void 0,
formAction: void 0,
formEncType: void 0,
formData: void 0,
json: void 0,
text: void 0
}
}
function uo(e, t) {
if (e) {
return {
state: "loading",
formMethod: e.formMethod,
formAction: e.formAction,
formEncType: e.formEncType,
formData: e.formData,
json: e.json,
text: e.text,
data: t
}
}
return {
state: "loading",
formMethod: void 0,
formAction: void 0,
formEncType: void 0,
formData: void 0,
json: void 0,
text: void 0,
data: t
}
}
function po(e) {
return {
state: "idle",
formMethod: void 0,
formAction: void 0,
formEncType: void 0,
formData: void 0,
json: void 0,
text: void 0,
data: e
}
}
function ho() {
return ho = 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
}, ho.apply(this, arguments)
}
const fo = Pe.createContext(null);
const mo = Pe.createContext(null);
const go = Pe.createContext(null);
const vo = Pe.createContext(null);
const _o = Pe.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
const yo = Pe.createContext(null);
function bo() {
return null != Pe.useContext(vo)
}
function xo() {
return bo() || Gi(!1), Pe.useContext(vo).location
}
function wo(e) {
Pe.useContext(go).static || Pe.useLayoutEffect(e)
}
function ko() {
let {
isDataRoute: e
} = Pe.useContext(_o);
return e ? function() {
let {
router: e
} = Lo(Do.UseNavigateStable), t = Mo(No.UseNavigateStable), n = Pe.useRef(!1);
wo((() => {
n.current = !0
}));
let r = Pe.useCallback((function(r, i) {
void 0 === i && (i = {}), n.current && ("number" === typeof r ? e.navigate(r) : e.navigate(r, ho({
fromRouteId: t
}, i)))
}), [e, t]);
return r
}() : function() {
bo() || Gi(!1);
let e = Pe.useContext(fo),
{
basename: t,
navigator: n
} = Pe.useContext(go),
{
matches: r
} = Pe.useContext(_o),
{
pathname: i
} = xo(),
a = JSON.stringify(ua(r).map((e => e.pathnameBase))),
o = Pe.useRef(!1);
wo((() => {
o.current = !0
}));
let s = Pe.useCallback((function(r, s) {
if (void 0 === s && (s = {}), !o.current) return;
if ("number" === typeof r) return void n.go(r);
let l = da(r, JSON.parse(a), i, "path" === s.relative);
null == e && "/" !== t && (l.pathname = "/" === l.pathname ? t : pa([t, l.pathname])), (s.replace ? n.replace : n.push)(l, s.state, s)
}), [t, n, a, i, e]);
return s
}()
}
const Eo = Pe.createContext(null);
function So() {
let {
matches: e
} = Pe.useContext(_o), t = e[e.length - 1];
return t ? t.params : {}
}
function Oo(e, t) {
let {
relative: n
} = void 0 === t ? {} : t, {
matches: r
} = Pe.useContext(_o), {
pathname: i
} = xo(), a = JSON.stringify(ua(r).map((e => e.pathnameBase)));
return Pe.useMemo((() => da(e, JSON.parse(a), i, "path" === n)), [e, a, i, n])
}
function Po(e, t, n) {
bo() || Gi(!1);
let {
navigator: r
} = Pe.useContext(go), {
matches: i
} = Pe.useContext(_o), a = i[i.length - 1], o = a ? a.params : {}, s = (a && a.pathname, a ? a.pathnameBase : "/");
a && a.route;
let l, c = xo();
if (t) {
var u;
let e = "string" === typeof t ? Hi(t) : t;
"/" === s || (null == (u = e.pathname) ? void 0 : u.startsWith(s)) || Gi(!1), l = e
} else l = c;
let d = l.pathname || "/",
p = Xi(e, {
pathname: "/" === s ? d : d.slice(s.length) || "/"
});
let h = To(p && p.map((e => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
pathname: pa([s, r.encodeLocation ? r.encodeLocation(e.pathname).pathname : e.pathname]),
pathnameBase: "/" === e.pathnameBase ? s : pa([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase).pathname : e.pathnameBase])
}))), i, n);
return t && h ? Pe.createElement(vo.Provider, {
value: {
location: ho({
pathname: "/",
search: "",
hash: "",
state: null,
key: "default"
}, l),
navigationType: Mi.Pop
}
}, h) : h
}
function Io() {
let e = function() {
var e;
let t = Pe.useContext(yo),
n = jo(No.UseRouteError),
r = Mo(No.UseRouteError);
if (t) return t;
return null == (e = n.errors) ? void 0 : e[r]
}(),
t = ya(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 = {
padding: "0.5rem",
backgroundColor: r
};
return Pe.createElement(Pe.Fragment, null, Pe.createElement("h2", null, "Unexpected Application Error!"), Pe.createElement("h3", {
style: {
fontStyle: "italic"
}
}, t), n ? Pe.createElement("pre", {
style: i
}, n) : null, null)
}
const Ao = Pe.createElement(Io, null);
class Co extends Pe.Component {
constructor(e) {
super(e), this.state = {
location: e.location,
revalidation: e.revalidation,
error: e.error
}
}
static getDerivedStateFromError(e) {
return {
error: e
}
}
static getDerivedStateFromProps(e, t) {
return t.location !== e.location || "idle" !== t.revalidation && "idle" === e.revalidation ? {
error: e.error,
location: e.location,
revalidation: e.revalidation
} : {
error: e.error || t.error,
location: t.location,
revalidation: e.revalidation || t.revalidation
}
}
componentDidCatch(e, t) {
console.error("React Router caught the following error during render", e, t)
}
render() {
return this.state.error ? Pe.createElement(_o.Provider, {
value: this.props.routeContext
}, Pe.createElement(yo.Provider, {
value: this.state.error,
children: this.props.component
})) : this.props.children
}
}
function Ro(e) {
let {
routeContext: t,
match: n,
children: r
} = e, i = Pe.useContext(fo);
return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), Pe.createElement(_o.Provider, {
value: t
}, r)
}
function To(e, t, n) {
var r;
if (void 0 === t && (t = []), void 0 === n && (n = null), null == e) {
var i;
if (null == (i = n) || !i.errors) return null;
e = n.matches
}
let a = e,
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 || Gi(!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 || Ao);
let c = t.concat(a.slice(0, i + 1)),
u = () => {
let t;
return t = s ? l : r.route.Component ? Pe.createElement(r.route.Component, null) : r.route.element ? r.route.element : e, Pe.createElement(Ro, {
match: r,
routeContext: {
outlet: e,
matches: c,
isDataRoute: null != n
},
children: t
})
};
return n && (r.route.ErrorBoundary || r.route.errorElement || 0 === i) ? Pe.createElement(Co, {
location: n.location,
revalidation: n.revalidation,
component: l,
error: s,
children: u(),
routeContext: {
outlet: null,
matches: c,
isDataRoute: !0
}
}) : u()
}), null)
}
var Do = function(e) {
return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e
}(Do || {}),
No = 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
}(No || {});
function Lo(e) {
let t = Pe.useContext(fo);
return t || Gi(!1), t
}
function jo(e) {
let t = Pe.useContext(mo);
return t || Gi(!1), t
}
function Mo(e) {
let t = function(e) {
let t = Pe.useContext(_o);
return t || Gi(!1), t
}(),
n = t.matches[t.matches.length - 1];
return n.route.id || Gi(!1), n.route.id
}
Ie.startTransition;
function zo(e) {
let {
to: t,
replace: n,
state: r,
relative: i
} = e;
bo() || Gi(!1);
let {
matches: a
} = Pe.useContext(_o), {
pathname: o
} = xo(), s = ko(), l = da(t, ua(a).map((e => e.pathnameBase)), o, "path" === i), c = JSON.stringify(l);
return Pe.useEffect((() => s(JSON.parse(c), {
replace: n,
state: r,
relative: i
})), [s, c, i, n, r]), null
}
function Fo(e) {
return function(e) {
let t = Pe.useContext(_o).outlet;
return t ? Pe.createElement(Eo.Provider, {
value: e
}, t) : t
}(e.context)
}
function Uo(e) {
let {
basename: t = "/",
children: n = null,
location: r,
navigationType: i = Mi.Pop,
navigator: a,
static: o = !1
} = e;
bo() && Gi(!1);
let s = t.replace(/^\/*/, "/"),
l = Pe.useMemo((() => ({
basename: s,
navigator: a,
static: o
})), [s, a, o]);
"string" === typeof r && (r = Hi(r));
let {
pathname: c = "/",
search: u = "",
hash: d = "",
state: p = null,
key: h = "default"
} = r, f = Pe.useMemo((() => {
let e = la(c, s);
return null == e ? null : {
location: {
pathname: e,
search: u,
hash: d,
state: p,
key: h
},
navigationType: i
}
}), [s, c, u, d, p, h, i]);
return null == f ? null : Pe.createElement(go.Provider, {
value: l
}, Pe.createElement(vo.Provider, {
children: n,
value: f
}))
}
new Promise((() => {}));
class Vo extends Pe.Component {
constructor(e) {
super(e), this.state = {
error: null
}
}
static getDerivedStateFromError(e) {
return {
error: e
}
}
componentDidCatch(e, t) {
console.error("<Await> caught the following error during render", e, t)
}
render() {
let {
children: e,
errorElement: t,
resolve: n
} = this.props, r = null, i = AwaitRenderStatus.pending;
if (n instanceof Promise)
if (this.state.error) {
AwaitRenderStatus.error;
let e = this.state.error;
Promise.reject().catch((() => {})), Object.defineProperty(r, "_tracked", {
get: () => !0
}), Object.defineProperty(r, "_error", {
get: () => e
})
} else n._tracked ? (n, void 0 !== r._error ? AwaitRenderStatus.error : void 0 !== r._data ? AwaitRenderStatus.success : AwaitRenderStatus.pending) : (AwaitRenderStatus.pending, Object.defineProperty(n, "_tracked", {
get: () => !0
}), n.then((e => Object.defineProperty(n, "_data", {
get: () => e
})), (e => Object.defineProperty(n, "_error", {
get: () => e
}))));
else AwaitRenderStatus.success, Promise.resolve(), Object.defineProperty(r, "_tracked", {
get: () => !0
}), Object.defineProperty(r, "_data", {
get: () => n
});
if (i === AwaitRenderStatus.error && r._error instanceof AbortedDeferredError) throw neverSettledPromise;
if (i === AwaitRenderStatus.error && !t) throw r._error;
if (i === AwaitRenderStatus.error) return React.createElement(AwaitContext.Provider, {
value: r,
children: t
});
if (i === AwaitRenderStatus.success) return React.createElement(AwaitContext.Provider, {
value: r,
children: e
});
throw r
}
}
function Go(e) {
let t = {
hasErrorBoundary: null != e.ErrorBoundary || null != e.errorElement
};
return e.Component && Object.assign(t, {
element: Pe.createElement(e.Component),
Component: void 0
}), e.ErrorBoundary && Object.assign(t, {
errorElement: Pe.createElement(e.ErrorBoundary),
ErrorBoundary: void 0
}), t
}
function Bo() {
return Bo = 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
}, Bo.apply(this, arguments)
}
function $o(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
}
new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
const qo = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"];
function Wo() {
var e;
let t = null == (e = window) ? void 0 : e.__staticRouterHydrationData;
return t && t.errors && (t = Bo({}, t, {
errors: Ho(t.errors)
})), t
}
function Ho(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 _a(a.status, a.statusText, a.data, !0 === a.internal);
else if (a && "Error" === a.__type) {
if (a.__subType) {
let e = window[a.__subType];
if ("function" === typeof e) try {
let t = new e(a.message);
t.stack = "", n[i] = t
} catch (r) {}
}
if (null == n[i]) {
let e = new Error(a.message);
e.stack = "", n[i] = e
}
} else n[i] = a;
return n
}
const Yo = Pe.createContext({
isTransitioning: !1
});
const Ko = Pe.createContext(new Map);
const Qo = Ie.startTransition,
Zo = Fi.flushSync;
function Xo(e) {
Zo ? Zo(e) : e()
}
class Jo {
constructor() {
this.status = "pending", this.promise = new Promise(((e, t) => {
this.resolve = t => {
"pending" === this.status && (this.status = "resolved", e(t))
}, this.reject = e => {
"pending" === this.status && (this.status = "rejected", t(e))
}
}))
}
}
function es(e) {
let {
fallbackElement: t,
router: n,
future: r
} = e, [i, a] = Pe.useState(n.state), [o, s] = Pe.useState(), [l, c] = Pe.useState({
isTransitioning: !1
}), [u, d] = Pe.useState(), [p, h] = Pe.useState(), [f, m] = Pe.useState(), g = Pe.useRef(new Map), {
v7_startTransition: v
} = r || {}, _ = Pe.useCallback((e => {
v ? function(e) {
Qo ? Qo(e) : e()
}(e) : e()
}), [v]), y = Pe.useCallback(((e, t) => {
let {
deletedFetchers: r,
unstable_flushSync: i,
unstable_viewTransitionOpts: o
} = t;
r.forEach((e => g.current.delete(e))), e.fetchers.forEach(((e, t) => {
void 0 !== e.data && g.current.set(t, e.data)
}));
let l = null == n.window || "function" !== typeof n.window.document.startViewTransition;
if (o && !l) {
if (i) {
Xo((() => {
p && (u && u.resolve(), p.skipTransition()), c({
isTransitioning: !0,
flushSync: !0,
currentLocation: o.currentLocation,
nextLocation: o.nextLocation
})
}));
let t = n.window.document.startViewTransition((() => {
Xo((() => a(e)))
}));
return t.finished.finally((() => {
Xo((() => {
d(void 0), h(void 0), s(void 0), c({
isTransitioning: !1
})
}))
})), void Xo((() => h(t)))
}
p ? (u && u.resolve(), p.skipTransition(), m({
state: e,
currentLocation: o.currentLocation,
nextLocation: o.nextLocation
})) : (s(e), c({
isTransitioning: !0,
flushSync: !1,
currentLocation: o.currentLocation,
nextLocation: o.nextLocation
}))
} else i ? Xo((() => a(e))) : _((() => a(e)))
}), [n.window, p, u, g, _]);
Pe.useLayoutEffect((() => n.subscribe(y)), [n, y]), Pe.useEffect((() => {
l.isTransitioning && !l.flushSync && d(new Jo)
}), [l]), Pe.useEffect((() => {
if (u && o && n.window) {
let e = o,
t = u.promise,
r = n.window.document.startViewTransition((async () => {
_((() => a(e))), await t
}));
r.finished.finally((() => {
d(void 0), h(void 0), s(void 0), c({
isTransitioning: !1
})
})), h(r)
}
}), [_, o, u, n.window]), Pe.useEffect((() => {
u && o && i.location.key === o.location.key && u.resolve()
}), [u, p, i.location, o]), Pe.useEffect((() => {
!l.isTransitioning && f && (s(f.state), c({
isTransitioning: !0,
flushSync: !1,
currentLocation: f.currentLocation,
nextLocation: f.nextLocation
}), m(void 0))
}), [l.isTransitioning, f]);
let b = Pe.useMemo((() => ({
createHref: n.createHref,
encodeLocation: n.encodeLocation,
go: e => n.navigate(e),
push: (e, t, r) => n.navigate(e, {
state: t,
preventScrollReset: null == r ? void 0 : r.preventScrollReset
}),
replace: (e, t, r) => n.navigate(e, {
replace: !0,
state: t,
preventScrollReset: null == r ? void 0 : r.preventScrollReset
})
})), [n]),
x = n.basename || "/",
w = Pe.useMemo((() => ({
router: n,
navigator: b,
static: !1,
basename: x
})), [n, b, x]);
return Pe.createElement(Pe.Fragment, null, Pe.createElement(fo.Provider, {
value: w
}, Pe.createElement(mo.Provider, {
value: i
}, Pe.createElement(Ko.Provider, {
value: g.current
}, Pe.createElement(Yo.Provider, {
value: l
}, Pe.createElement(Uo, {
basename: x,
location: i.location,
navigationType: i.historyAction,
navigator: b
}, i.initialized ? Pe.createElement(ts, {
routes: n.routes,
state: i
}) : t))))), null)
}
function ts(e) {
let {
routes: t,
state: n
} = e;
return Po(t, void 0, n)
}
const ns = "undefined" !== typeof window && "undefined" !== typeof window.document && "undefined" !== typeof window.document.createElement,
rs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,
is = Pe.forwardRef((function(e, t) {
let n, {
onClick: r,
relative: i,
reloadDocument: a,
replace: o,
state: s,
target: l,
to: c,
preventScrollReset: u,
unstable_viewTransition: d
} = e,
p = $o(e, qo),
{
basename: h
} = Pe.useContext(go),
f = !1;
if ("string" === typeof c && rs.test(c) && (n = c, ns)) try {
let e = new URL(window.location.href),
t = c.startsWith("//") ? new URL(e.protocol + c) : new URL(c),
n = la(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;
bo() || Gi(!1);
let {
basename: r,
navigator: i
} = Pe.useContext(go), {
hash: a,
pathname: o,
search: s
} = Oo(e, {
relative: n
}), l = o;
return "/" !== r && (l = "/" === o ? r : pa([r, o])), i.createHref({
pathname: l,
search: s,
hash: a
})
}(c, {
relative: i
}),
g = function(e, t) {
let {
target: n,
replace: r,
state: i,
preventScrollReset: a,
relative: o,
unstable_viewTransition: s
} = void 0 === t ? {} : t, l = ko(), c = xo(), u = Oo(e, {
relative: o
});
return Pe.useCallback((t => {
if (function(e, t) {
return 0 === e.button && (!t || "_self" === t) && ! function(e) {
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey)
}(e)
}(t, n)) {
t.preventDefault();
let n = void 0 !== r ? r : Wi(c) === Wi(u);
l(e, {
replace: n,
state: i,
preventScrollReset: a,
relative: o,
unstable_viewTransition: s
})
}
}), [c, l, u, r, i, n, e, a, o, s])
}(c, {
replace: o,
state: s,
target: l,
preventScrollReset: u,
relative: i,
unstable_viewTransition: d
});
return Pe.createElement("a", Bo({}, p, {
href: n || m,
onClick: f || a ? r : function(e) {
r && r(e), e.defaultPrevented || g(e)
},
ref: t,
target: l
}))
}));
var as, os;
(function(e) {
e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState"
})(as || (as = {})),
function(e) {
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration"
}(os || (os = {}));
function ss(e, t) {
void 0 === t && (t = {});
var n = t.insertAt;
if (e && "undefined" != typeof document) {
var r = document.head || document.getElementsByTagName("head")[0],
i = document.createElement("style");
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))
}
}
ss('@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:"<color>";inherits:true;initial-value:#0000}@property --_thumb-color{syntax:"<color>";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 ls, cs, us, ds, ps, hs, fs, ms, gs = {
exports: {}
},
vs = {};
gs.exports = function() {
if (ls) return vs;
ls = 1;
var e = Symbol.for("react.element"),
t = Symbol.for("react.fragment"),
n = Object.prototype.hasOwnProperty,
r = Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
i = {
key: !0,
ref: !0,
__self: !0,
__source: !0
};
function a(t, a, o) {
var s, l = {},
c = null,
u = null;
for (s in void 0 !== o && (c = "" + o), void 0 !== a.key && (c = "" + a.key), void 0 !== a.ref && (u = a.ref), a) n.call(a, s) && !i.hasOwnProperty(s) && (l[s] = a[s]);
if (t && t.defaultProps)
for (s in a = t.defaultProps) void 0 === l[s] && (l[s] = a[s]);
return {
$$typeof: e,
type: t,
key: c,
ref: u,
props: l,
_owner: r.current
}
}
return vs.Fragment = t, vs.jsx = a, vs.jsxs = a, vs
}();
var _s = gs.exports;
ss('@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 ys = (0, Pe.createContext)(null);
ss('@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 bs = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
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"
}))
},
xs = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
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"
}))
},
ws = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
d: "M11.564 6.68a.75.75 0 1 0-1.061-1.06l-3.47 3.47L5.43 7.485a.75.75 0 0 0-1.06 1.061l2.133 2.133a.75.75 0 0 0 1.06 0l4-4Z"
}), Pe.createElement("path", {
fillRule: "evenodd",
d: "M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-1.5 0a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z",
clipRule: "evenodd"
}))
},
ks = 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 Pe.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",
vectorEffect: "non-scaling-stroke",
viewBox: "0 0 16 16",
focusable: !1,
"aria-labelledby": n
}, r), t ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
fill: "none",
stroke: "currentColor",
strokeLinecap: "round",
strokeLinejoin: "round",
strokeWidth: 1.5,
d: "m2.821 8.765 3.453 3.453 7.081-7.082",
pathLength: 1
}))
},
Es = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
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"
}))
},
Ss = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
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"
}))
},
Os = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
fillRule: "evenodd",
d: "M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Z",
clipRule: "evenodd"
}), Pe.createElement("path", {
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"
}))
},
Ps = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
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"
}))
},
Is = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
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"
}))
},
As = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
d: "m14.124 9.492-.813-.792-.813.792a.523.523 0 0 1-.726 0 .49.49 0 0 1 0-.706l.813-.792-.813-.792a.49.49 0 0 1 0-.706.523.523 0 0 1 .726 0l.813.792.813-.792a.523.523 0 0 1 .726 0c.2.195.2.51 0 .706l-.814.792.814.792c.2.195.2.511 0 .706a.523.523 0 0 1-.726 0Z"
}), Pe.createElement("path", {
fillRule: "evenodd",
d: "M7.497 4.864 4.974 6.31a2.5 2.5 0 0 1-1.243.331H2.497v2.73h1.234a2.5 2.5 0 0 1 1.243.331l2.523 1.446V4.864Zm.003-1.73A1 1 0 0 1 8.997 4v8.01a1 1 0 0 1-1.497.868l-3.272-1.875a1 1 0 0 0-.497-.133H1.997a1 1 0 0 1-1-1V6.14a1 1 0 0 1 1-1h1.734a1 1 0 0 0 .497-.132L7.5 3.134Z",
clipRule: "evenodd"
}))
},
Cs = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
d: "M2.475 3.137a.974.974 0 0 0-.975.971v9.23c0 .537.437.972.975.972h9.267a.974.974 0 0 0 .976-.972V8.45a.73.73 0 0 0-.732-.729.73.73 0 0 0-.73.76l-.001 4.372H2.963V4.594h3.902v-.002a.73.73 0 0 0 .67-.727.73.73 0 0 0-.67-.726v-.002h-4.39Z"
}), Pe.createElement("path", {
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"
}))
},
Rs = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
d: "M8 2.75a5.25 5.25 0 1 0 2.73 9.736.75.75 0 0 1 .78 1.28 6.75 6.75 0 1 1 2.552-8.737.75.75 0 1 1-1.346.661A5.25 5.25 0 0 0 8 2.75Z",
"transform-origin": "center center"
}, Pe.createElement("animateTransform", {
attributeName: "transform",
dur: "800ms",
repeatCount: "indefinite",
to: 360,
type: "rotate"
})))
},
Ts = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
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"
}))
},
Ds = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
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"
}))
},
Ns = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
fillRule: "evenodd",
d: "M2.712 8C3.77 9.642 5.778 11 8 11c2.222 0 4.231-1.358 5.287-3C12.232 6.358 10.223 5 8 5S3.769 6.358 2.712 8Zm-1.497-.418C2.428 5.408 5.009 3.5 8 3.5s5.572 1.908 6.785 4.082a.857.857 0 0 1 0 .836C13.572 10.592 10.991 12.5 8 12.5s-5.572-1.908-6.785-4.082a.857.857 0 0 1 0-.836Z",
clipRule: "evenodd"
}), Pe.createElement("path", {
fillRule: "evenodd",
d: "M8 8.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM8 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",
clipRule: "evenodd"
}))
},
Ls = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
fillRule: "evenodd",
d: "M1.388 12.68a.787.787 0 0 1 .168-1.093l1.41-1.04a8.02 8.02 0 0 1-1.751-2.129.857.857 0 0 1 0-.836C2.428 5.408 5.009 3.5 8 3.5a7.41 7.41 0 0 1 3.384.838l1.61-1.188a.769.769 0 0 1 1.081.17.787.787 0 0 1-.168 1.093L9.899 7.37a2 2 0 0 1-3.061 2.258l-4.37 3.222a.769.769 0 0 1-1.081-.17Zm7.477-6.484A2 2 0 0 0 6.02 8.293L4.211 9.63A6.685 6.685 0 0 1 2.711 8C3.77 6.358 5.778 5 8 5a5.77 5.77 0 0 1 1.994.363l-1.13.833Z",
clipRule: "evenodd"
}), Pe.createElement("path", {
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"
}))
},
js = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
d: "M14 8c0 .71-.411 1.393-1.146 1.9a.602.602 0 0 1-.252.093.727.727 0 0 1-.285-.017.52.52 0 0 1-.225-.12.277.277 0 0 1-.092-.183V6.326a.277.277 0 0 1 .092-.183.52.52 0 0 1 .226-.12c.09-.024.19-.03.285-.016a.602.602 0 0 1 .251.092C13.59 6.607 14 7.29 14 8Z"
}), Pe.createElement("path", {
fillRule: "evenodd",
d: "M7.497 4.864 4.974 6.31a2.5 2.5 0 0 1-1.243.331H2.497v2.73h1.234a2.5 2.5 0 0 1 1.243.331l2.523 1.446V4.864Zm.003-1.73A1 1 0 0 1 8.997 4v8.01a1 1 0 0 1-1.497.868l-3.272-1.875a1 1 0 0 0-.497-.133H1.997a1 1 0 0 1-1-1V6.14a1 1 0 0 1 1-1h1.734a1 1 0 0 0 .497-.132L7.5 3.134Z",
clipRule: "evenodd"
}))
},
Ms = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
fillRule: "evenodd",
d: "M7.539 4.862 4.873 6.306c-.368.217-.786.33-1.21.33H2.46v2.727h1.202c.424 0 .842.114 1.21.33l2.666 1.445V4.862Zm.003-1.728C8.192 2.752 9 3.234 9 4v8c0 .767-.809 1.248-1.458.867l-3.395-1.873a.956.956 0 0 0-.484-.132H1.974a.987.987 0 0 1-.974-1V6.138c0-.551.436-.999.974-.999h1.689a.95.95 0 0 0 .484-.132l3.395-1.872Z",
clipRule: "evenodd"
}), Pe.createElement("path", {
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"
}))
},
zs = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
d: "M11.951 3.485a.783.783 0 0 1 .159-.252.71.71 0 0 1 .517-.227.71.71 0 0 1 .518.228c2.473 2.63 2.473 6.912 0 9.543a.708.708 0 0 1-.517.23.709.709 0 0 1-.517-.229.807.807 0 0 1-.214-.55c0-.207.076-.405.213-.552 1.904-2.024 1.904-5.318 0-7.342a.783.783 0 0 1-.159-.253.824.824 0 0 1 0-.596Z"
}), Pe.createElement("path", {
d: "M11.01 5.081c.09.04.17.097.238.17v.001c.34.362.61.79.794 1.263a4.11 4.11 0 0 1 0 2.983 3.91 3.91 0 0 1-.794 1.263.73.73 0 0 1-.237.169.692.692 0 0 1-.796-.168.825.825 0 0 1-.001-1.102c.203-.217.365-.475.475-.76a2.473 2.473 0 0 0 0-1.79 2.352 2.352 0 0 0-.476-.759.786.786 0 0 1-.158-.253.825.825 0 0 1 .16-.849.729.729 0 0 1 .237-.169.69.69 0 0 1 .559.001Z"
}), Pe.createElement("path", {
fillRule: "evenodd",
d: "M7.5 4.864 4.977 6.31a2.5 2.5 0 0 1-1.243.331H2.5v2.73h1.234a2.5 2.5 0 0 1 1.243.331L7.5 11.148V4.864Zm.003-1.73A1 1 0 0 1 9 4v8.01a1 1 0 0 1-1.497.868L4.23 11.004a1 1 0 0 0-.497-.133H2a1 1 0 0 1-1-1v-3.73a1 1 0 0 1 1-1h1.734a1 1 0 0 0 .497-.132l3.272-1.875Z",
clipRule: "evenodd"
}))
},
Fs = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
fillRule: "evenodd",
d: "M8 3.184 2.675 13.431h10.65L8 3.184Zm.887-1.545a1 1 0 0 0-1.775 0L.965 13.47a1 1 0 0 0 .887 1.461h12.296a1 1 0 0 0 .887-1.46L8.887 1.638Z",
clipRule: "evenodd"
}), Pe.createElement("path", {
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"
}))
};
function Us() {
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;
else if ("object" == typeof t)
if (Array.isArray(t))
for (n = 0; n < t.length; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
else
for (n in t) t[n] && (i && (i += " "), i += n);
return i
}(e)) && (r && (r += " "), r += t);
return r
}
let Vs = e => (0, Pe.forwardRef)(e),
Gs = (...e) => t => e.forEach((e => {
((e, t) => {
if (null != e) {
if ("function" == typeof e) return void e(t);
try {
e.current = t
} catch (Ne) {
throw Error(`Cannot assign value '${t}' to ref '${e}'`)
}
}
})(e, t)
})),
Bs = (...e) => {
let t = {
...e[0]
};
for (let n = 1; n < e.length; n++) {
let r = e[n];
for (let e in r) {
let n = t[e],
i = r[e];
"className" === e && "string" == typeof n && "string" == typeof i ? t[e] = [n, i].join(" ").trim() : "style" === e && "object" == typeof n && "object" == typeof i ? t[e] = {
...n,
...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
}
}
return t
},
$s = (e, t = []) => {
let n = (0, Pe.useRef)(e);
return (0, Pe.useEffect)((() => {
n.current = e
})), (0, Pe.useCallback)(((...e) => n.current?.(...e)), t)
},
qs = ({
value: e,
defaultValue: t,
onChange: n,
shouldUpdate: r = ((e, t) => e !== t)
}) => {
let i = $s(n, []),
a = $s(r),
[o, s] = (0, Pe.useState)(t),
l = void 0 !== e,
c = l ? e : o,
u = $s((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]
};
function Ws(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 Hs(e) {
void 0 === e && (e = {});
var t, n, r, i, a, o, s = e.onResize,
l = (0, Pe.useRef)(void 0);
l.current = s;
var c = e.round || Math.round,
u = (0, Pe.useRef)(),
d = (0, Pe.useState)({
width: void 0,
height: void 0
}),
p = d[0],
h = d[1],
f = (0, Pe.useRef)(!1);
(0, Pe.useEffect)((function() {
return f.current = !1,
function() {
f.current = !0
}
}), []);
var m = (0, Pe.useRef)({
width: void 0,
height: void 0
}),
g = (t = (0, Pe.useCallback)((function(t) {
return u.current && u.current.box === e.box && u.current.round === c || (u.current = {
box: e.box,
round: c,
instance: new ResizeObserver((function(t) {
var n = t[0],
r = "border-box" === e.box ? "borderBoxSize" : "device-pixel-content-box" === e.box ? "devicePixelContentBoxSize" : "contentBoxSize",
i = Ws(n, r, "inlineSize"),
a = Ws(n, r, "blockSize"),
o = i ? c(i) : void 0,
s = a ? c(a) : void 0;
if (m.current.width !== o || m.current.height !== s) {
var u = {
width: o,
height: s
};
m.current.width = o, m.current.height = s, l.current ? l.current(u) : f.current || h(u)
}
}))
}), u.current.instance.observe(t, {
box: e.box
}),
function() {
u.current && u.current.instance.unobserve(t)
}
}), [e.box, c]), n = e.ref, r = (0, Pe.useRef)(null), (i = (0, Pe.useRef)(null)).current = n, a = (0, Pe.useRef)(null), (0, Pe.useEffect)((function() {
o()
})), o = (0, Pe.useCallback)((function() {
var e = a.current,
n = i.current,
o = e || (n ? n instanceof Element ? n : n.current : null);
r.current && r.current.element === o && r.current.subscriber === t || (r.current && r.current.cleanup && r.current.cleanup(), r.current = {
element: o,
subscriber: t,
cleanup: o ? t(o) : void 0
})
}), [t]), (0, Pe.useEffect)((function() {
return function() {
r.current && r.current.cleanup && (r.current.cleanup(), r.current = null)
}
}), []), (0, Pe.useCallback)((function(e) {
a.current = e, o()
}), [o]));
return (0, Pe.useMemo)((function() {
return {
ref: g,
width: p.width,
height: p.height
}
}), [g, p.width, p.height])
}
let Ys = ({
content: e,
ref: t
} = {}) => {
let [n, r] = (0, Pe.useState)({
block: !1,
inline: !1
}), i = n.block || n.inline, a = (0, Pe.useRef)(null), o = t || a, s = (0, Pe.useCallback)((() => {
if (o.current) {
let e = window.getComputedStyle(o.current),
t = parseFloat(e.lineHeight),
n = !!e.webkitLineClamp,
i = Math.floor(o.current.scrollHeight / t) > Math.floor(o.current.offsetHeight / t);
r({
block: n ? i : o.current.offsetHeight < o.current.scrollHeight,
inline: o.current.offsetWidth < o.current.scrollWidth
})
}
}), [o]);
return Hs({
ref: o,
onResize: s
}), (0, Pe.useEffect)(s, [e, s]), (0, Pe.useMemo)((() => ({
ref: o,
hasOverflow: i,
...n
})), [i, o, n])
},
Ks = e => {
let t = (0, Pe.useId)();
return e ?? t
},
Qs = "loading",
Zs = "loaded",
Xs = "error",
Js = ({
crossOrigin: e,
src: t,
srcSet: n
}) => {
let [r, i] = (0, Pe.useState)(Qs);
return (0, Pe.useEffect)((() => {
if (!t && !n) return void i(Xs);
let r = () => {
i(Zs)
},
a = () => {
i(Xs)
},
o = new Image;
return e && (o.crossOrigin = e), t && (o.src = t), n && (o.srcset = n), o.addEventListener("load", r), o.addEventListener("error", a), () => {
o.removeEventListener("load", r), o.removeEventListener("error", a)
}
}), [e, t, n]), r
},
el = "undefined" != typeof document ? Pe.useLayoutEffect : Pe.useEffect,
tl = (0, Pe.createContext)(void 0),
nl = tl.Provider;
var rl = {
exports: {}
};
hs = rl.exports, "undefined" != typeof navigator && (rl.exports = function() {
var e, t, n, r, i, a, o, s, l, c, u = "",
d = !1,
p = function() {
return u
};
function h(e) {
return document.createElement(e)
}
function f(e, t) {
var n, r, i = e.length;
for (n = 0; n < i; n += 1)
for (var a in r = e[n].prototype) Object.prototype.hasOwnProperty.call(r, a) && (t.prototype[a] = r[a])
}
var m = function() {
function e(e) {
this.audios = [], this.audioFactory = e, this._volume = 1, this._isMuted = !1
}
return e.prototype = {
addAudio: function(e) {
this.audios.push(e)
},
pause: function() {
var e, t = this.audios.length;
for (e = 0; e < t; e += 1) this.audios[e].pause()
},
resume: function() {
var e, t = this.audios.length;
for (e = 0; e < t; e += 1) this.audios[e].resume()
},
setRate: function(e) {
var t, n = this.audios.length;
for (t = 0; t < n; t += 1) this.audios[t].setRate(e)
},
createAudio: function(e) {
return this.audioFactory ? this.audioFactory(e) : window.Howl ? new window.Howl({
src: [e]
}) : {
isPlaying: !1,
play: function() {
this.isPlaying = !0
},
seek: function() {
this.isPlaying = !1
},
playing: function() {},
rate: function() {},
setVolume: function() {}
}
},
setAudioFactory: function(e) {
this.audioFactory = e
},
setVolume: function(e) {
this._volume = e, this._updateVolume()
},
mute: function() {
this._isMuted = !0, this._updateVolume()
},
unmute: function() {
this._isMuted = !1, this._updateVolume()
},
getVolume: function() {
return this._volume
},
_updateVolume: function() {
var e, t = this.audios.length;
for (e = 0; e < t; e += 1) this.audios[e].volume(this._volume * (this._isMuted ? 0 : 1))
}
},
function() {
return new e
}
}(),
g = function() {
function e(e, t) {
var n, r = 0,
i = [];
switch (e) {
case "int16":
case "uint8c":
n = 1;
break;
default:
n = 1.1
}
for (r = 0; r < t; r += 1) i.push(n);
return i
}
return "function" == typeof Uint8ClampedArray && "function" == typeof Float32Array ? function(t, n) {
return "float32" === t ? new Float32Array(n) : "int16" === t ? new Int16Array(n) : "uint8c" === t ? new Uint8ClampedArray(n) : e(t, n)
} : e
}();
function v(e) {
return Array.apply(null, {
length: e
})
}
var _ = !0,
y = null,
b = "",
x = /^((?!chrome|android).)*safari/i.test(navigator.userAgent),
w = Math.pow,
k = Math.sqrt,
E = Math.floor,
S = Math.min,
O = 150,
P = Math.PI / 180;
function I(e, t, n, r) {
this.type = e, this.currentTime = t, this.totalTime = n, this.direction = r < 0 ? -1 : 1
}
function A(e, t) {
this.type = e, this.direction = t < 0 ? -1 : 1
}
function C(e, t, n, r) {
this.type = e, this.currentLoop = n, this.totalLoops = t, this.direction = r < 0 ? -1 : 1
}
function R(e, t, n) {
this.type = e, this.firstFrame = t, this.totalFrames = n
}
function T(e, t) {
this.type = e, this.target = t
}
function D(e, t) {
this.type = "renderFrameError", this.nativeError = e, this.currentTime = t
}
function N(e) {
this.type = "configError", this.nativeError = e
}
var L = (e = 0, function() {
return b + "__lottie_element_" + (e += 1)
});
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:
r = n, i = u, a = l;
break;
case 1:
r = c, i = n, a = l;
break;
case 2:
r = l, i = n, a = u;
break;
case 3:
r = l, i = c, a = n;
break;
case 4:
r = u, i = l, a = n;
break;
case 5:
r = n, i = l, a = c
}
return [r, i, a]
}
function M(e, t, n) {
var r, i = Math.max(e, t, n),
a = Math.min(e, t, n),
o = i - a;
switch (i) {
case a:
r = 0;
break;
case e:
r = (t - n + o * (t < n ? 6 : 0)) / (6 * o);
break;
case t:
r = (n - e + 2 * o) / (6 * o);
break;
case n:
r = (e - t + 4 * o) / (6 * o)
}
return [r, 0 === i ? 0 : o / i, i / 255]
}
function z(e, t) {
var n = M(255 * e[0], 255 * e[1], 255 * e[2]);
return n[1] += t, n[1] > 1 ? n[1] = 1 : n[1] <= 0 && (n[1] = 0), j(n[0], n[1], n[2])
}
function F(e, t) {
var n = M(255 * e[0], 255 * e[1], 255 * e[2]);
return n[2] += t, n[2] > 1 ? n[2] = 1 : n[2] < 0 && (n[2] = 0), j(n[0], n[1], n[2])
}
function U(e, t) {
var n = M(255 * e[0], 255 * e[1], 255 * e[2]);
return n[0] += t / 360, n[0] > 1 ? n[0] -= 1 : n[0] < 0 && (n[0] += 1), 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
}();
var V = function() {
return y
},
G = function(e) {
O = e
},
B = function() {
return O
};
function $(e) {
return document.createElementNS("http://www.w3.org/2000/svg", 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 W = function() {
var e, t, n = 1,
r = [],
i = {
onmessage: function() {},
postMessage: function(t) {
e({
data: t
})
}
},
a = {
postMessage: function(e) {
i.onmessage({
data: e
})
}
};
function o() {
t || ((t = function(t) {
if (window.Worker && window.Blob && d) {
var n = new Blob(["var _workerSelf = self; self.onmessage = ", t.toString()], {
type: "text/javascript"
}),
r = URL.createObjectURL(n);
return new Worker(r)
}
return e = t, i
}((function(e) {
if (a.dataManager || (a.dataManager = function() {
function e(i, a) {
var o, s, l, c, u, d, p = i.length;
for (s = 0; s < p; s += 1)
if ("ks" in (o = i[s]) && !o.completed) {
if (o.completed = !0, o.hasMask) {
var h = o.masksProperties;
for (l = 0, c = h.length; l < c; l += 1)
if (h[l].pt.k.i) r(h[l].pt.k);
else
for (u = 0, d = h[l].pt.k.length; u < d; u += 1) h[l].pt.k[u].s && r(h[l].pt.k[u].s[0]), h[l].pt.k[u].e && r(h[l].pt.k[u].e[0])
}
0 === o.ty ? (o.layers = t(o.refId, a), e(o.layers, a)) : 4 === o.ty ? n(o.shapes) : 5 === o.ty && 0 === o.t.a.length && o.t.p
}
}
function t(e, t) {
var n = function(e, t) {
for (var n = 0, r = t.length; n < r;) {
if (t[n].id === e) return t[n];
n += 1
}
return null
}(e, t);
return n ? n.layers.__used ? JSON.parse(JSON.stringify(n.layers)) : (n.layers.__used = !0, n.layers) : null
}
function n(e) {
var t, i, a;
for (t = e.length - 1; t >= 0; t -= 1)
if ("sh" === e[t].ty)
if (e[t].ks.k.i) r(e[t].ks.k);
else
for (i = 0, a = e[t].ks.k.length; i < a; i += 1) e[t].ks.k[i].s && r(e[t].ks.k[i].s[0]), e[t].ks.k[i].e && r(e[t].ks.k[i].e[0]);
else "gr" === e[t].ty && n(e[t].it)
}
function r(e) {
var t, n = e.i.length;
for (t = 0; t < n; t += 1) e.i[t][0] += e.v[t][0], e.i[t][1] += e.v[t][1], e.o[t][0] += e.v[t][0], e.o[t][1] += e.v[t][1]
}
function i(e, t) {
var n = t ? t.split(".") : [100, 100, 100];
return e[0] > n[0] || !(n[0] > e[0]) && (e[1] > n[1] || !(n[1] > e[1]) && (e[2] > n[2] || !(n[2] > e[2]) && null))
}
var a, o = function() {
var e = [4, 4, 14];
function t(e) {
var t, n = e.length;
for (t = 0; t < n; t += 1) 5 === e[t].ty && function(e) {
var t = e.t.d;
e.t.d = {
k: [{
s: t,
t: 0
}]
}
}(e[t])
}
return function(n) {
if (i(e, n.v) && (t(n.layers), n.assets)) {
var r, a = n.assets.length;
for (r = 0; r < a; r += 1) n.assets[r].layers && t(n.assets[r].layers)
}
}
}(),
s = (a = [4, 7, 99], function(e) {
if (e.chars && !i(a, e.v)) {
var t, r = e.chars.length;
for (t = 0; t < r; t += 1) {
var o = e.chars[t];
o.data && o.data.shapes && (n(o.data.shapes), o.data.ip = 0, o.data.op = 99999, o.data.st = 0, o.data.sr = 1, o.data.ks = {
p: {
k: [0, 0],
a: 0
},
s: {
k: [100, 100],
a: 0
},
a: {
k: [0, 0],
a: 0
},
r: {
k: 0,
a: 0
},
o: {
k: 100,
a: 0
}
}, e.chars[t].t || (o.data.shapes.push({
ty: "no"
}), o.data.shapes[0].it.push({
p: {
k: [0, 0],
a: 0
},
s: {
k: [100, 100],
a: 0
},
a: {
k: [0, 0],
a: 0
},
r: {
k: 0,
a: 0
},
o: {
k: 100,
a: 0
},
sk: {
k: 0,
a: 0
},
sa: {
k: 0,
a: 0
},
ty: "tr"
})))
}
}
}),
l = function() {
var e = [5, 7, 15];
function t(e) {
var t, n = e.length;
for (t = 0; t < n; t += 1) 5 === e[t].ty && function(e) {
var t = e.t.p;
"number" == typeof t.a && (t.a = {
a: 0,
k: t.a
}), "number" == typeof t.p && (t.p = {
a: 0,
k: t.p
}), "number" == typeof t.r && (t.r = {
a: 0,
k: t.r
})
}(e[t])
}
return function(n) {
if (i(e, n.v) && (t(n.layers), n.assets)) {
var r, a = n.assets.length;
for (r = 0; r < a; r += 1) n.assets[r].layers && t(n.assets[r].layers)
}
}
}(),
c = function() {
var e = [4, 1, 9];
function t(e) {
var t, n = e.length;
for (t = 0; t < n; t += 1) 4 === e[t].ty && function e(t) {
var n, r, i, a = t.length;
for (n = 0; n < a; n += 1)
if ("gr" === t[n].ty) e(t[n].it);
else if ("fl" === t[n].ty || "st" === t[n].ty)
if (t[n].c.k && t[n].c.k[0].i)
for (r = 0, i = t[n].c.k.length; r < i; r += 1) t[n].c.k[r].s && (t[n].c.k[r].s[0] /= 255, t[n].c.k[r].s[1] /= 255, t[n].c.k[r].s[2] /= 255, t[n].c.k[r].s[3] /= 255), t[n].c.k[r].e && (t[n].c.k[r].e[0] /= 255, t[n].c.k[r].e[1] /= 255, t[n].c.k[r].e[2] /= 255, t[n].c.k[r].e[3] /= 255);
else t[n].c.k[0] /= 255, t[n].c.k[1] /= 255, t[n].c.k[2] /= 255, t[n].c.k[3] /= 255
}(e[t].shapes)
}
return function(n) {
if (i(e, n.v) && (t(n.layers), n.assets)) {
var r, a = n.assets.length;
for (r = 0; r < a; r += 1) n.assets[r].layers && t(n.assets[r].layers)
}
}
}(),
u = function() {
var e = [4, 4, 18];
function t(e) {
var t, n, r, i, a, o, s = e.length;
for (n = 0; n < s; n += 1) {
if ((t = e[n]).hasMask) {
var l = t.masksProperties;
for (r = 0, i = l.length; r < i; r += 1)
if (l[r].pt.k.i) l[r].pt.k.c = l[r].cl;
else
for (a = 0, o = l[r].pt.k.length; a < o; a += 1) l[r].pt.k[a].s && (l[r].pt.k[a].s[0].c = l[r].cl), l[r].pt.k[a].e && (l[r].pt.k[a].e[0].c = l[r].cl)
}
4 === t.ty && function e(t) {
var n, r, i;
for (n = t.length - 1; n >= 0; n -= 1)
if ("sh" === t[n].ty)
if (t[n].ks.k.i) t[n].ks.k.c = t[n].closed;
else
for (r = 0, i = t[n].ks.k.length; r < i; r += 1) t[n].ks.k[r].s && (t[n].ks.k[r].s[0].c = t[n].closed), t[n].ks.k[r].e && (t[n].ks.k[r].e[0].c = t[n].closed);
else "gr" === t[n].ty && e(t[n].it)
}(t.shapes)
}
}
return function(n) {
if (i(e, n.v) && (t(n.layers), n.assets)) {
var r, a = n.assets.length;
for (r = 0; r < a; r += 1) n.assets[r].layers && t(n.assets[r].layers)
}
}
}(),
d = {
completeData: function(n) {
n.__complete || (c(n), o(n), s(n), l(n), u(n), e(n.layers, n.assets), function(n, r) {
if (n) {
var i = 0,
a = n.length;
for (i = 0; i < a; i += 1) 1 === n[i].t && (n[i].data.layers = t(n[i].data.refId, r), e(n[i].data.layers, r))
}
}(n.chars, n.assets), n.__complete = !0)
}
};
return d.checkColors = c, d.checkChars = s, d.checkPathProperties = l, d.checkShapes = u, d.completeLayers = e, d
}()), 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" === 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) {
var a, o = new XMLHttpRequest;
try {
o.responseType = "json"
} catch (e) {}
o.onreadystatechange = function() {
if (4 === o.readyState)
if (200 === o.status) r(a = e(o));
else try {
a = e(o), r(a)
} catch (e) {
i && i(e)
}
};
try {
o.open("GET", t, !0)
} catch (e) {
o.open("GET", n + "/" + t, !0)
}
o.send()
}
}
}()), "loadAnimation" === e.data.type) a.assetLoader.load(e.data.path, e.data.fullPath, (function(t) {
a.dataManager.completeData(t), a.postMessage({
id: e.data.id,
payload: t,
status: "success"
})
}), (function() {
a.postMessage({
id: e.data.id,
status: "error"
})
}));
else if ("complete" === e.data.type) {
var t = e.data.animation;
a.dataManager.completeData(t), a.postMessage({
id: e.data.id,
payload: t,
status: "success"
})
} else "loadData" === e.data.type && a.assetLoader.load(e.data.path, e.data.fullPath, (function(t) {
a.postMessage({
id: e.data.id,
payload: t,
status: "success"
})
}), (function() {
a.postMessage({
id: e.data.id,
status: "error"
})
}))
}))).onmessage = function(e) {
var t = e.data,
n = t.id,
i = r[n];
r[n] = null, "success" === t.status ? i.onComplete(t.payload) : i.onError && i.onError()
})
}
function s(e, t) {
var i = "processId_" + (n += 1);
return r[i] = {
onComplete: e,
onError: t
}, i
}
return {
loadAnimation: function(e, n, r) {
o();
var i = s(n, r);
t.postMessage({
type: "loadAnimation",
path: e,
fullPath: window.location.origin + window.location.pathname,
id: i
})
},
loadData: function(e, n, r) {
o();
var i = s(n, r);
t.postMessage({
type: "loadData",
path: e,
fullPath: window.location.origin + window.location.pathname,
id: i
})
},
completeAnimation: function(e, n, r) {
o();
var i = s(n, r);
t.postMessage({
type: "complete",
animation: e,
id: i
})
}
}
}(),
H = function() {
var e, t, n = ((e = h("canvas")).width = 1, e.height = 1, (t = e.getContext("2d")).fillStyle = "rgba(0,0,0,0)", t.fillRect(0, 0, 1, 1), e);
function r() {
this.loadedAssets += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null)
}
function i() {
this.loadedFootagesCount += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null)
}
function a(e, t, n) {
var r = "";
if (e.e) r = e.p;
else if (t) {
var i = e.p; - 1 !== i.indexOf("images/") && (i = i.split("/")[1]), r = t + i
} else r = n + (e.u ? e.u : "") + e.p;
return r
}
function o(e) {
var t = 0,
n = setInterval(function() {
(e.getBBox().width || t > 500) && (this._imageLoaded(), clearInterval(n)), t += 1
}.bind(this), 50)
}
function s(e) {
var t = {
assetData: e
},
n = a(e, this.assetsPath, this.path);
return W.loadData(n, function(e) {
t.img = e, this._footageLoaded()
}.bind(this), function() {
t.img = {}, this._footageLoaded()
}.bind(this)), t
}
function l() {
this._imageLoaded = r.bind(this), this._footageLoaded = i.bind(this), this.testImageLoaded = o.bind(this), this.createFootageData = s.bind(this), this.assetsPath = "", this.path = "", this.totalImages = 0, this.totalFootages = 0, this.loadedAssets = 0, this.loadedFootagesCount = 0, this.imagesLoadedCb = null, this.images = []
}
return l.prototype = {
loadAssets: function(e, t) {
this.imagesLoadedCb = t;
var n, r = e.length;
for (n = 0; n < r; n += 1) e[n].layers || (e[n].t && "seq" !== e[n].t ? 3 === e[n].t && (this.totalFootages += 1, this.images.push(this.createFootageData(e[n]))) : (this.totalImages += 1, this.images.push(this._createImageData(e[n]))))
},
setAssetsPath: function(e) {
this.assetsPath = e || ""
},
setPath: function(e) {
this.path = e || ""
},
loadedImages: function() {
return this.totalImages === this.loadedAssets
},
loadedFootages: function() {
return this.totalFootages === this.loadedFootagesCount
},
destroy: function() {
this.imagesLoadedCb = null, this.images.length = 0
},
getAsset: function(e) {
for (var t = 0, n = this.images.length; t < n;) {
if (this.images[t].assetData === e) return this.images[t].img;
t += 1
}
return null
},
createImgData: function(e) {
var t = a(e, this.assetsPath, this.path),
r = h("img");
r.crossOrigin = "anonymous", r.addEventListener("load", this._imageLoaded, !1), r.addEventListener("error", function() {
i.img = n, this._imageLoaded()
}.bind(this), !1), r.src = t;
var i = {
img: r,
assetData: e
};
return i
},
createImageData: function(e) {
var t = a(e, this.assetsPath, this.path),
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);
var i = {
img: r,
assetData: e
};
return i
},
imageLoaded: r,
footageLoaded: i,
setCacheType: function(e, t) {
"svg" === e ? (this._elementHelper = t, this._createImageData = this.createImageData.bind(this)) : this._createImageData = this.createImgData.bind(this)
}
}, l
}();
function Y() {}
Y.prototype = {
triggerEvent: function(e, t) {
if (this._cbs[e])
for (var n = this._cbs[e], r = 0; r < n.length; r += 1) n[r](t)
},
addEventListener: function(e, t) {
return this._cbs[e] || (this._cbs[e] = []), this._cbs[e].push(t),
function() {
this.removeEventListener(e, t)
}.bind(this)
},
removeEventListener: function(e, t) {
if (t) {
if (this._cbs[e]) {
for (var n = 0, r = this._cbs[e].length; n < r;) this._cbs[e][n] === t && (this._cbs[e].splice(n, 1), n -= 1, r -= 1), n += 1;
this._cbs[e].length || (this._cbs[e] = null)
}
} else this._cbs[e] = null
}
};
var K = function() {
function e(e) {
this.compositions.push(e)
}
return function() {
function t(e) {
for (var t = 0, n = this.compositions.length; t < n;) {
if (this.compositions[t].data && this.compositions[t].data.nm === e) return this.compositions[t].prepareFrame && this.compositions[t].data.xt && this.compositions[t].prepareFrame(this.currentFrame), this.compositions[t].compInterface;
t += 1
}
return null
}
return t.compositions = [], t.currentFrame = 0, t.registerComposition = e, t
}
}(),
Q = {};
function Z(e) {
return (Z = "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 X = function() {
this._cbs = [], this.name = "", this.path = "", this.isLoaded = !1, this.currentFrame = 0, this.currentRawFrame = 0, this.firstFrame = 0, this.totalFrames = 0, this.frameRate = 0, this.frameMult = 0, this.playSpeed = 1, this.playDirection = 1, this.playCount = 0, this.animationData = {}, this.assets = [], this.isPaused = !0, this.autoplay = !1, this.loop = !0, this.renderer = null, this.animationID = L(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = _, this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = K(), this.imagePreloader = new H, this.audioController = m(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new I("drawnFrame", 0, 0, 0), this.expressionsPlugin = V()
};
f([Y], X), X.prototype.setParams = function(e) {
(e.wrapper || e.container) && (this.wrapper = e.wrapper || e.container);
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")), W.loadAnimation(e.path, this.configAnimation, this.onSetupError))
}, X.prototype.onSetupError = function() {
this.trigger("data_failed")
}, X.prototype.setupAnimation = function(e) {
W.completeAnimation(e, this.configAnimation)
}, X.prototype.setData = function(e, t) {
t && "object" !== Z(t) && (t = JSON.parse(t));
var n = {
wrapper: e,
animationData: t
},
r = e.attributes;
n.path = r.getNamedItem("data-animation-path") ? r.getNamedItem("data-animation-path").value : r.getNamedItem("data-bm-path") ? r.getNamedItem("data-bm-path").value : r.getNamedItem("bm-path") ? r.getNamedItem("bm-path").value : "", n.animType = r.getNamedItem("data-anim-type") ? r.getNamedItem("data-anim-type").value : r.getNamedItem("data-bm-type") ? r.getNamedItem("data-bm-type").value : r.getNamedItem("bm-type") ? r.getNamedItem("bm-type").value : r.getNamedItem("data-bm-renderer") ? r.getNamedItem("data-bm-renderer").value : r.getNamedItem("bm-renderer") ? r.getNamedItem("bm-renderer").value : function() {
if (Q.canvas) return "canvas";
for (var e in Q)
if (Q[e]) return e;
return ""
}() || "canvas";
var i = r.getNamedItem("data-anim-loop") ? r.getNamedItem("data-anim-loop").value : r.getNamedItem("data-bm-loop") ? r.getNamedItem("data-bm-loop").value : r.getNamedItem("bm-loop") ? r.getNamedItem("bm-loop").value : "";
"false" === i ? n.loop = !1 : "true" === i ? n.loop = !0 : "" !== i && (n.loop = parseInt(i, 10));
var a = r.getNamedItem("data-anim-autoplay") ? r.getNamedItem("data-anim-autoplay").value : r.getNamedItem("data-bm-autoplay") ? r.getNamedItem("data-bm-autoplay").value : !r.getNamedItem("bm-autoplay") || r.getNamedItem("bm-autoplay").value;
n.autoplay = "false" !== a, n.name = r.getNamedItem("data-name") ? r.getNamedItem("data-name").value : r.getNamedItem("data-bm-name") ? r.getNamedItem("data-bm-name").value : r.getNamedItem("bm-name") ? r.getNamedItem("bm-name").value : "", "false" === (r.getNamedItem("data-anim-prerender") ? r.getNamedItem("data-anim-prerender").value : r.getNamedItem("data-bm-prerender") ? r.getNamedItem("data-bm-prerender").value : r.getNamedItem("bm-prerender") ? r.getNamedItem("bm-prerender").value : "") && (n.prerender = !1), n.path ? this.setParams(n) : this.trigger("destroy")
}, X.prototype.includeLayers = function(e) {
e.op > this.animationData.op && (this.animationData.op = e.op, this.totalFrames = Math.floor(e.op - this.animationData.ip));
var t, n, r = this.animationData.layers,
i = r.length,
a = e.layers,
o = a.length;
for (n = 0; n < o; n += 1)
for (t = 0; t < i;) {
if (r[t].id === a[n].id) {
r[t] = a[n];
break
}
t += 1
}
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, W.completeAnimation(this.animationData, this.onSegmentComplete)
}, X.prototype.onSegmentComplete = function(e) {
this.animationData = e;
var t = V();
t && t.initExpressions(this), this.loadNextSegment()
}, X.prototype.loadNextSegment = function() {
var e = this.animationData.segments;
if (!e || 0 === e.length || !this.autoloadSegments) return this.trigger("data_ready"), void(this.timeCompleted = this.totalFrames);
var t = e.shift();
this.timeCompleted = t.time * this.frameRate;
var n = this.path + this.fileName + "_" + this.segmentPos + ".json";
this.segmentPos += 1, W.loadData(n, this.includeLayers.bind(this), function() {
this.trigger("data_failed")
}.bind(this))
}, X.prototype.loadSegments = function() {
this.animationData.segments || (this.timeCompleted = this.totalFrames), this.loadNextSegment()
}, X.prototype.imagesLoaded = function() {
this.trigger("loaded_images"), this.checkLoaded()
}, X.prototype.preloadImages = function() {
this.imagePreloader.setAssetsPath(this.assetsPath), this.imagePreloader.setPath(this.path), this.imagePreloader.loadAssets(this.animationData.assets, this.imagesLoaded.bind(this))
}, X.prototype.configAnimation = function(e) {
if (this.renderer) try {
this.animationData = e, this.initialSegment ? (this.totalFrames = Math.floor(this.initialSegment[1] - this.initialSegment[0]), this.firstFrame = Math.round(this.initialSegment[0])) : (this.totalFrames = Math.floor(this.animationData.op - this.animationData.ip), this.firstFrame = Math.round(this.animationData.ip)), this.renderer.configAnimation(e), e.assets || (e.assets = []), this.assets = this.animationData.assets, this.frameRate = this.animationData.fr, this.frameMult = this.animationData.fr / 1e3, this.renderer.searchExtraCompositions(e.assets), this.markers = function(e) {
for (var t = [], n = 0; n < e.length; n += 1) {
var r = e[n],
i = {
time: r.tm,
duration: r.dr
};
try {
i.payload = JSON.parse(e[n].cm)
} catch (t) {
try {
i.payload = function(e) {
for (var t, n = e.split("\r\n"), r = {}, i = 0, a = 0; a < n.length; a += 1) 2 === (t = n[a].split(":")).length && (r[t[0]] = t[1].trim(), i += 1);
if (0 === i) throw Error();
return r
}(e[n].cm)
} catch (t) {
i.payload = {
name: e[n].cm
}
}
}
t.push(i)
}
return t
}(e.markers || []), this.trigger("config_ready"), this.preloadImages(), this.loadSegments(), this.updaFrameModifier(), this.waitForFontsLoaded(), this.isPaused && this.audioController.pause()
} catch (e) {
this.triggerConfigError(e)
}
}, X.prototype.waitForFontsLoaded = function() {
this.renderer && (this.renderer.globalData.fontManager.isLoaded ? this.checkLoaded() : setTimeout(this.waitForFontsLoaded.bind(this), 20))
}, X.prototype.checkLoaded = function() {
if (!this.isLoaded && this.renderer.globalData.fontManager.isLoaded && (this.imagePreloader.loadedImages() || "canvas" !== this.renderer.rendererType) && this.imagePreloader.loadedFootages()) {
this.isLoaded = !0;
var e = V();
e && e.initExpressions(this), this.renderer.initItems(), setTimeout(function() {
this.trigger("DOMLoaded")
}.bind(this), 0), this.gotoFrame(), this.autoplay && this.play()
}
}, X.prototype.resize = function(e, t) {
var n = "number" == typeof e ? e : void 0,
r = "number" == typeof t ? t : void 0;
this.renderer.updateContainerSize(n, r)
}, X.prototype.setSubframe = function(e) {
this.isSubframeEnabled = !!e
}, X.prototype.gotoFrame = function() {
this.currentFrame = this.isSubframeEnabled ? this.currentRawFrame : ~~this.currentRawFrame, this.timeCompleted !== this.totalFrames && this.currentFrame > this.timeCompleted && (this.currentFrame = this.timeCompleted), this.trigger("enterFrame"), this.renderFrame(), this.trigger("drawnFrame")
}, X.prototype.renderFrame = function() {
if (!1 !== this.isLoaded && this.renderer) try {
this.expressionsPlugin && this.expressionsPlugin.resetFrame(), this.renderer.renderFrame(this.currentFrame + this.firstFrame)
} catch (e) {
this.triggerRenderFrameError(e)
}
}, X.prototype.play = function(e) {
(!e || this.name === e) && !0 === this.isPaused && (this.isPaused = !1, this.trigger("_play"), this.audioController.resume(), this._idle && (this._idle = !1, this.trigger("_active")))
}, X.prototype.pause = function(e) {
e && this.name !== e || !1 !== this.isPaused || (this.isPaused = !0, this.trigger("_pause"), this._idle = !0, this.trigger("_idle"), this.audioController.pause())
}, X.prototype.togglePause = function(e) {
e && this.name !== e || (!0 === this.isPaused ? this.play() : this.pause())
}, X.prototype.stop = function(e) {
e && this.name !== e || (this.pause(), this.playCount = 0, this._completedLoop = !1, this.setCurrentRawFrameValue(0))
}, X.prototype.getMarkerData = function(e) {
for (var t, n = 0; n < this.markers.length; n += 1)
if ((t = this.markers[n]).payload && t.payload.name === e) return t;
return null
}, X.prototype.goToAndStop = function(e, t, n) {
if (!n || this.name === n) {
if (isNaN(Number(e))) {
var r = this.getMarkerData(e);
r && this.goToAndStop(r.time, !0)
} else t ? this.setCurrentRawFrameValue(e) : this.setCurrentRawFrameValue(e * this.frameModifier);
this.pause()
}
}, X.prototype.goToAndPlay = function(e, t, n) {
if (!n || this.name === n) {
var r = Number(e);
if (isNaN(r)) {
var i = this.getMarkerData(e);
i && (i.duration ? this.playSegments([i.time, i.time + i.duration], !0) : this.goToAndStop(i.time, !0))
} else this.goToAndStop(r, t, n);
this.play()
}
}, X.prototype.advanceTime = function(e) {
if (!0 !== this.isPaused && !1 !== this.isLoaded) {
var t = this.currentRawFrame + e * this.frameModifier,
n = !1;
t >= this.totalFrames - 1 && this.frameModifier > 0 ? this.loop && this.playCount !== this.loop ? t >= this.totalFrames ? (this.playCount += 1, this.checkSegments(t % this.totalFrames) || (this.setCurrentRawFrameValue(t % this.totalFrames), this._completedLoop = !0, this.trigger("loopComplete"))) : this.setCurrentRawFrameValue(t) : this.checkSegments(t > this.totalFrames ? t % this.totalFrames : 0) || (n = !0, t = this.totalFrames - 1) : t < 0 ? this.checkSegments(t % this.totalFrames) || (!this.loop || this.playCount-- <= 0 && !0 !== this.loop ? (n = !0, t = 0) : (this.setCurrentRawFrameValue(this.totalFrames + t % this.totalFrames), this._completedLoop ? this.trigger("loopComplete") : this._completedLoop = !0)) : this.setCurrentRawFrameValue(t), n && (this.setCurrentRawFrameValue(t), this.pause(), this.trigger("complete"))
}
}, X.prototype.adjustSegment = function(e, t) {
this.playCount = 0, e[1] < e[0] ? (this.frameModifier > 0 && (this.playSpeed < 0 ? this.setSpeed(-this.playSpeed) : this.setDirection(-1)), this.totalFrames = e[0] - e[1], this.timeCompleted = this.totalFrames, this.firstFrame = e[1], this.setCurrentRawFrameValue(this.totalFrames - .001 - t)) : e[1] > e[0] && (this.frameModifier < 0 && (this.playSpeed < 0 ? this.setSpeed(-this.playSpeed) : this.setDirection(1)), this.totalFrames = e[1] - e[0], this.timeCompleted = this.totalFrames, this.firstFrame = e[0], this.setCurrentRawFrameValue(.001 + t)), this.trigger("segmentStart")
}, X.prototype.setSegment = function(e, t) {
var n = -1;
this.isPaused && (this.currentRawFrame + this.firstFrame < e ? n = e : this.currentRawFrame + this.firstFrame > t && (n = t - e)), this.firstFrame = e, this.totalFrames = t - e, this.timeCompleted = this.totalFrames, -1 !== n && this.goToAndStop(n, !0)
}, X.prototype.playSegments = function(e, t) {
if (t && (this.segments.length = 0), "object" === Z(e[0])) {
var n, r = e.length;
for (n = 0; n < r; n += 1) this.segments.push(e[n])
} else this.segments.push(e);
this.segments.length && t && this.adjustSegment(this.segments.shift(), 0), this.isPaused && this.play()
}, X.prototype.resetSegments = function(e) {
this.segments.length = 0, this.segments.push([this.animationData.ip, this.animationData.op]), e && this.checkSegments(0)
}, X.prototype.checkSegments = function(e) {
return !!this.segments.length && (this.adjustSegment(this.segments.shift(), e), !0)
}, X.prototype.destroy = function(e) {
(!e || this.name === e) && this.renderer && (this.renderer.destroy(), this.imagePreloader.destroy(), this.trigger("destroy"), this._cbs = null, this.onEnterFrame = null, this.onLoopComplete = null, this.onComplete = null, this.onSegmentStart = null, this.onDestroy = null, this.renderer = null, this.expressionsPlugin = null, this.imagePreloader = null, this.projectInterface = null)
}, X.prototype.setCurrentRawFrameValue = function(e) {
this.currentRawFrame = e, this.gotoFrame()
}, X.prototype.setSpeed = function(e) {
this.playSpeed = e, this.updaFrameModifier()
}, X.prototype.setDirection = function(e) {
this.playDirection = e < 0 ? -1 : 1, this.updaFrameModifier()
}, X.prototype.setLoop = function(e) {
this.loop = e
}, X.prototype.setVolume = function(e, t) {
t && this.name !== t || this.audioController.setVolume(e)
}, X.prototype.getVolume = function() {
return this.audioController.getVolume()
}, X.prototype.mute = function(e) {
e && this.name !== e || this.audioController.mute()
}, X.prototype.unmute = function(e) {
e && this.name !== e || this.audioController.unmute()
}, X.prototype.updaFrameModifier = function() {
this.frameModifier = this.frameMult * this.playSpeed * this.playDirection, this.audioController.setRate(this.playSpeed * this.playDirection)
}, X.prototype.getPath = function() {
return this.path
}, X.prototype.getAssetsPath = function(e) {
var t = "";
if (e.e) t = e.p;
else if (this.assetsPath) {
var n = e.p; - 1 !== n.indexOf("images/") && (n = n.split("/")[1]), t = this.assetsPath + n
} else t = this.path + (e.u ? e.u : "") + e.p;
return t
}, X.prototype.getAssetData = function(e) {
for (var t = 0, n = this.assets.length; t < n;) {
if (e === this.assets[t].id) return this.assets[t];
t += 1
}
return null
}, X.prototype.hide = function() {
this.renderer.hide()
}, X.prototype.show = function() {
this.renderer.show()
}, X.prototype.getDuration = function(e) {
return e ? this.totalFrames : this.totalFrames / this.frameRate
}, X.prototype.updateDocumentData = function(e, t, n) {
try {
this.renderer.getElementByPath(e).updateDocumentData(t, n)
} catch (e) {}
}, X.prototype.trigger = function(e) {
if (this._cbs && this._cbs[e]) switch (e) {
case "enterFrame":
this.triggerEvent(e, new I(e, this.currentFrame, this.totalFrames, this.frameModifier));
break;
case "drawnFrame":
this.drawnFrameEvent.currentTime = this.currentFrame, this.drawnFrameEvent.totalTime = this.totalFrames, this.drawnFrameEvent.direction = this.frameModifier, this.triggerEvent(e, this.drawnFrameEvent);
break;
case "loopComplete":
this.triggerEvent(e, new C(e, this.loop, this.playCount, this.frameMult));
break;
case "complete":
this.triggerEvent(e, new A(e, this.frameMult));
break;
case "segmentStart":
this.triggerEvent(e, new R(e, this.firstFrame, this.totalFrames));
break;
case "destroy":
this.triggerEvent(e, new T(e, this));
break;
default:
this.triggerEvent(e)
}
"enterFrame" === e && this.onEnterFrame && this.onEnterFrame.call(this, new I(e, this.currentFrame, this.totalFrames, this.frameMult)), "loopComplete" === e && this.onLoopComplete && this.onLoopComplete.call(this, new C(e, this.loop, this.playCount, this.frameMult)), "complete" === e && this.onComplete && this.onComplete.call(this, new A(e, this.frameMult)), "segmentStart" === e && this.onSegmentStart && this.onSegmentStart.call(this, new R(e, this.firstFrame, this.totalFrames)), "destroy" === e && this.onDestroy && this.onDestroy.call(this, new T(e, this))
}, X.prototype.triggerRenderFrameError = function(e) {
var t = new D(e, this.currentFrame);
this.triggerEvent("error", t), this.onError && this.onError.call(this, t)
}, X.prototype.triggerConfigError = function(e) {
var t = new N(e, this.currentFrame);
this.triggerEvent("error", t), this.onError && this.onError.call(this, t)
};
var J = function() {
var e = {},
t = [],
n = 0,
r = 0,
i = 0,
a = !0,
o = !1;
function s(e) {
for (var n = 0, i = e.target; n < r;) t[n].animation !== i || (t.splice(n, 1), n -= 1, r -= 1, i.isPaused || u()), n += 1
}
function l(e, n) {
if (!e) return null;
for (var i = 0; i < r;) {
if (t[i].elem === e && null !== t[i].elem) return t[i].animation;
i += 1
}
var a = new X;
return d(a, e), a.setData(e, n), a
}
function c() {
i += 1, m()
}
function u() {
i -= 1
}
function d(e, n) {
e.addEventListener("destroy", s), e.addEventListener("_active", c), e.addEventListener("_idle", u), t.push({
elem: n,
animation: e
}), r += 1
}
function p(e) {
var s, l = e - n;
for (s = 0; s < r; s += 1) t[s].animation.advanceTime(l);
n = e, i && !o ? window.requestAnimationFrame(p) : a = !0
}
function f(e) {
n = e, window.requestAnimationFrame(p)
}
function m() {
!o && i && a && (window.requestAnimationFrame(f), a = !1)
}
return e.registerAnimation = l, e.loadAnimation = function(e) {
var t = new X;
return d(t, null), t.setParams(e), t
}, e.setSpeed = function(e, n) {
var i;
for (i = 0; i < r; i += 1) t[i].animation.setSpeed(e, n)
}, e.setDirection = function(e, n) {
var i;
for (i = 0; i < r; i += 1) t[i].animation.setDirection(e, n)
}, e.play = function(e) {
var n;
for (n = 0; n < r; n += 1) t[n].animation.play(e)
}, e.pause = function(e) {
var n;
for (n = 0; n < r; n += 1) t[n].animation.pause(e)
}, e.stop = function(e) {
var n;
for (n = 0; n < r; n += 1) t[n].animation.stop(e)
}, e.togglePause = function(e) {
var n;
for (n = 0; n < r; n += 1) t[n].animation.togglePause(e)
}, e.searchAnimations = function(e, t, n) {
var r, i = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))),
a = i.length;
for (r = 0; r < a; r += 1) n && i[r].setAttribute("data-bm-type", n), l(i[r], e);
if (t && 0 === a) {
n || (n = "svg");
var o = document.getElementsByTagName("body")[0];
o.innerText = "";
var s = h("div");
s.style.width = "100%", s.style.height = "100%", s.setAttribute("data-bm-type", n), o.appendChild(s), l(s, e)
}
}, e.resize = function() {
var e;
for (e = 0; e < r; e += 1) t[e].animation.resize()
}, e.goToAndStop = function(e, n, i) {
var a;
for (a = 0; a < r; a += 1) t[a].animation.goToAndStop(e, n, i)
}, e.destroy = function(e) {
var n;
for (n = r - 1; n >= 0; n -= 1) t[n].animation.destroy(e)
}, e.freeze = function() {
o = !0
}, e.unfreeze = function() {
o = !1, m()
}, e.setVolume = function(e, n) {
var i;
for (i = 0; i < r; i += 1) t[i].animation.setVolume(e, n)
}, e.mute = function(e) {
var n;
for (n = 0; n < r; n += 1) t[n].animation.mute(e)
}, e.unmute = function(e) {
var n;
for (n = 0; n < r; n += 1) t[n].animation.unmute(e)
}, e.getRegisteredAnimations = function() {
var e, n = t.length,
r = [];
for (e = 0; e < n; e += 1) r.push(t[e].animation);
return r
}, e
}(),
ee = function() {
var e = {
getBezierEasing: function(e, n, r, i, o) {
var s = o || ("bez_" + e + "_" + n + "_" + r + "_" + i).replace(/\./g, "p");
if (t[s]) return t[s];
var l = new a([e, n, r, i]);
return t[s] = l, l
}
},
t = {},
n = "function" == typeof Float32Array;
function r(e, t, n) {
return (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e
}
function i(e, t, n) {
return 3 * (1 - 3 * n + 3 * t) * e * e + 2 * (3 * n - 6 * t) * e + 3 * t
}
function a(e) {
this._p = e, this._mSampleValues = n ? new Float32Array(11) : Array(11), this._precomputed = !1, this.get = this.get.bind(this)
}
return a.prototype = {
get: function(e) {
var t = this._p[0],
n = this._p[1],
i = this._p[2],
a = this._p[3];
return this._precomputed || this._precompute(), t === n && i === a ? e : 0 === e ? 0 : 1 === e ? 1 : r(this._getTForX(e), n, a)
},
_precompute: function() {
var e = this._p[0],
t = this._p[1],
n = this._p[2],
r = this._p[3];
this._precomputed = !0, (e !== t || n !== r) && this._calcSampleValues()
},
_calcSampleValues: function() {
for (var e = this._p[0], t = this._p[2], n = 0; n < 11; ++n) this._mSampleValues[n] = r(.1 * n, e, t)
},
_getTForX: function(e) {
for (var t = this._p[0], n = this._p[2], a = this._mSampleValues, o = 0, s = 1; 10 !== s && a[s] <= e; ++s) o += .1;
var l = o + (e - a[--s]) / (a[s + 1] - a[s]) * .1,
c = i(l, t, n);
return c >= .001 ? function(e, t, n, a) {
for (var o = 0; o < 4; ++o) {
var s = i(t, n, a);
if (0 === s) break;
t -= (r(t, n, a) - e) / s
}
return t
}(e, l, t, n) : 0 === c ? l : function(e, t, n, i, a) {
var o, s, l = 0;
do {
(o = r(s = t + (n - t) / 2, i, a) - e) > 0 ? n = s : t = s
} while (Math.abs(o) > 1e-7 && ++l < 10);
return s
}(e, o, o + .1, t, n)
}
}, e
}(),
te = function(e) {
return e.concat(v(e.length))
},
ne = function(e, t, n) {
var r = 0,
i = e,
a = v(i);
return {
newElement: function() {
var e;
return r ? e = a[r -= 1] : e = t(), e
},
release: function(e) {
r === i && (a = te(a), i *= 2), n && n(e), a[r] = e, r += 1
}
}
},
re = ne(8, (function() {
return {
addedLength: 0,
percents: g("float32", B()),
lengths: g("float32", B())
}
})),
ie = ne(8, (function() {
return {
lengths: [],
totalLength: 0
}
}), (function(e) {
var t, n = e.lengths.length;
for (t = 0; t < n; t += 1) re.release(e.lengths[t]);
e.lengths.length = 0
})),
ae = function() {
var e, t = Math;
function n(e, t, n, r, i, a) {
var o = e * r + t * i + n * a - i * r - a * e - n * t;
return o > -.001 && o < .001
}
var r = function(e, t, n, r) {
var i, a, o, s, l, c, u = B(),
d = 0,
p = [],
h = [],
f = re.newElement();
for (i = 0, o = n.length; i < u; i += 1) {
for (a = 0, l = i / (u - 1), c = 0; a < o; a += 1) s = w(1 - l, 3) * e[a] + 3 * w(1 - l, 2) * l * n[a] + 3 * (1 - l) * w(l, 2) * r[a] + w(l, 3) * t[a], p[a] = s, null !== h[a] && (c += w(p[a] - h[a], 2)), h[a] = p[a];
c && (d += c = k(c)), f.percents[i] = l, f.lengths[i] = d
}
return f.addedLength = d, f
};
function i(e) {
this.segmentLength = 0, this.points = Array(e)
}
function a(e, t) {
this.partialLength = e, this.point = t
}
var o = (e = {}, function(t, r, o, s) {
var l = (t[0] + "_" + t[1] + "_" + r[0] + "_" + r[1] + "_" + o[0] + "_" + o[1] + "_" + s[0] + "_" + s[1]).replace(/\./g, "p");
if (!e[l]) {
var c, u, d, p, h, f, m, g = B(),
_ = 0,
y = null;
2 === t.length && (t[0] !== r[0] || t[1] !== r[1]) && n(t[0], t[1], r[0], r[1], t[0] + o[0], t[1] + o[1]) && n(t[0], t[1], r[0], r[1], r[0] + s[0], r[1] + s[1]) && (g = 2);
var b = new i(g);
for (c = 0, d = o.length; c < g; c += 1) {
for (u = 0, m = v(d), h = c / (g - 1), f = 0; u < d; u += 1) p = w(1 - h, 3) * t[u] + 3 * w(1 - h, 2) * h * (t[u] + o[u]) + 3 * (1 - h) * w(h, 2) * (r[u] + s[u]) + w(h, 3) * r[u], m[u] = p, null !== y && (f += w(m[u] - y[u], 2));
_ += f = k(f), b.points[c] = new a(f, m), y = m
}
b.segmentLength = _, e[l] = b
}
return e[l]
});
function s(e, t) {
var n = t.percents,
r = t.lengths,
i = n.length,
a = E((i - 1) * e),
o = e * t.addedLength,
s = 0;
if (a === i - 1 || 0 === a || o === r[a]) return n[a];
for (var l = r[a] > o ? -1 : 1, c = !0; c;)
if (r[a] <= o && r[a + 1] > o ? (s = (o - r[a]) / (r[a + 1] - r[a]), c = !1) : a += l, a < 0 || a >= i - 1) {
if (a === i - 1) return n[a];
c = !1
} return n[a] + (n[a + 1] - n[a]) * s
}
var l = g("float32", 8);
return {
getSegmentsLength: function(e) {
var t, n = ie.newElement(),
i = e.c,
a = e.v,
o = e.o,
s = e.i,
l = e._length,
c = n.lengths,
u = 0;
for (t = 0; t < l - 1; t += 1) c[t] = r(a[t], a[t + 1], o[t], s[t + 1]), u += c[t].addedLength;
return i && l && (c[t] = r(a[t], a[0], o[t], s[0]), u += c[t].addedLength), n.totalLength = u, n
},
getNewSegment: function(e, n, r, i, a, o, c) {
a < 0 ? a = 0 : a > 1 && (a = 1);
var u, d = s(a, c),
p = s(o = o > 1 ? 1 : o, c),
h = e.length,
f = 1 - d,
m = 1 - p,
g = f * f * f,
v = d * f * f * 3,
_ = d * d * f * 3,
y = d * d * d,
b = f * f * m,
x = d * f * m + f * d * m + f * f * p,
w = d * d * m + f * d * p + d * f * p,
k = d * d * p,
E = f * m * m,
S = d * m * m + f * p * m + f * m * p,
O = d * p * m + f * p * p + d * m * p,
P = d * p * p,
I = m * m * m,
A = p * m * m + m * p * m + m * m * p,
C = p * p * m + m * p * p + p * m * p,
R = p * p * p;
for (u = 0; u < h; u += 1) l[4 * u] = t.round(1e3 * (g * e[u] + v * r[u] + _ * i[u] + y * n[u])) / 1e3, l[4 * u + 1] = t.round(1e3 * (b * e[u] + x * r[u] + w * i[u] + k * n[u])) / 1e3, l[4 * u + 2] = t.round(1e3 * (E * e[u] + S * r[u] + O * i[u] + P * n[u])) / 1e3, l[4 * u + 3] = t.round(1e3 * (I * e[u] + A * r[u] + C * i[u] + R * n[u])) / 1e3;
return l
},
getPointInSegment: function(e, n, r, i, a, o) {
var l = s(a, o),
c = 1 - l;
return [t.round(1e3 * (c * c * c * e[0] + (l * c * c + c * l * c + c * c * l) * r[0] + (l * l * c + c * l * l + l * c * l) * i[0] + l * l * l * n[0])) / 1e3, t.round(1e3 * (c * c * c * e[1] + (l * c * c + c * l * c + c * c * l) * r[1] + (l * l * c + c * l * l + l * c * l) * i[1] + l * l * l * n[1])) / 1e3]
},
buildBezierData: o,
pointOnLine2D: n,
pointOnLine3D: function(e, r, i, a, o, s, l, c, u) {
if (0 === i && 0 === s && 0 === u) return n(e, r, a, o, l, c);
var d, p = t.sqrt(t.pow(a - e, 2) + t.pow(o - r, 2) + t.pow(s - i, 2)),
h = t.sqrt(t.pow(l - e, 2) + t.pow(c - r, 2) + t.pow(u - i, 2)),
f = t.sqrt(t.pow(l - a, 2) + t.pow(c - o, 2) + t.pow(u - s, 2));
return (d = p > h ? p > f ? p - h - f : f - h - p : f > h ? f - h - p : h - p - f) > -1e-4 && d < 1e-4
}
}
}(),
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, w, k, E, S, O, I, A, C, R, T = this.offsetTime;
"multidimensional" === this.propType && (V = g("float32", this.pv.length));
for (var D = t.lastIndex, N = D, L = this.keyframes.length - 1, j = !0; j;) {
if (G = this.keyframes[N], B = this.keyframes[N + 1], N === L - 1 && e >= B.t - T) {
G.h && (G = B), D = 0;
break
}
if (B.t - T > e) {
D = N;
break
}
N < L - 1 ? N += 1 : (D = 0, j = !1)
}
$ = this.keyframesMetadata[N] || {};
var M = B.t - T,
z = G.t - T;
if (G.to) {
$.bezierData || ($.bezierData = ae.buildBezierData(G.s, B.s || G.e, G.to, G.ti));
var F = $.bezierData;
if (e >= M || e < z) {
var U = e >= M ? F.points.length - 1 : 0;
for (q = 0, W = F.points[U].point.length; q < W; q += 1) V[q] = F.points[U].point[q]
} else {
$.__fnct ? Q = $.__fnct : (Q = ee.getBezierEasing(G.o.x, G.o.y, G.i.x, G.i.y, G.n).get, $.__fnct = Q), H = Q((e - z) / (M - z));
var V, G, B, $, q, W, H, Y, K, Q, Z, X, J = F.segmentLength * H,
te = t.lastFrame < e && t._lastKeyframeIndex === N ? t._lastAddedLength : 0;
for (K = t.lastFrame < e && t._lastKeyframeIndex === N ? t._lastPoint : 0, j = !0, Y = F.points.length; j;) {
if (te += F.points[K].partialLength, 0 === J || 0 === H || K === F.points.length - 1) {
for (q = 0, W = F.points[K].point.length; q < W; q += 1) V[q] = F.points[K].point[q];
break
}
if (J >= te && J < te + F.points[K + 1].partialLength) {
for (q = 0, X = (J - te) / F.points[K + 1].partialLength, W = F.points[K].point.length; q < W; q += 1) V[q] = F.points[K].point[q] + (F.points[K + 1].point[q] - F.points[K].point[q]) * X;
break
}
K < Y - 1 ? K += 1 : j = !1
}
t._lastPoint = K, t._lastAddedLength = te - F.points[K].partialLength, t._lastKeyframeIndex = N
}
} else if (L = G.s.length, Z = B.s || G.e, this.sh && 1 !== G.h) e >= M ? (V[0] = Z[0], V[1] = Z[1], V[2] = Z[2]) : e <= z ? (V[0] = G.s[0], V[1] = G.s[1], V[2] = G.s[2]) : (b = V, w = (n = le(G.s), r = le(Z), i = (e - z) / (M - z), u = [], d = n[0], p = n[1], h = n[2], f = n[3], m = r[0], v = r[1], (o = d * m + p * v + h * (_ = r[2]) + f * (y = 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 * _, u[3] = l * f + c * y, x = u)[0], k = x[1], E = x[2], S = x[3], b[0] = Math.atan2(2 * k * S - 2 * w * E, 1 - 2 * k * k - 2 * E * E) / P, b[1] = Math.asin(2 * w * k + 2 * E * S) / P, b[2] = Math.atan2(2 * w * S - 2 * k * E, 1 - 2 * w * w - 2 * E * E) / P);
else
for (N = 0; N < L; N += 1) 1 !== G.h && (e >= M ? H = 1 : e < z ? H = 0 : (G.o.x.constructor === Array ? ($.__fnct || ($.__fnct = []), $.__fnct[N] ? Q = $.__fnct[N] : (O = void 0 === G.o.x[N] ? G.o.x[0] : G.o.x[N], I = void 0 === G.o.y[N] ? G.o.y[0] : G.o.y[N], A = void 0 === G.i.x[N] ? G.i.x[0] : G.i.x[N], C = void 0 === G.i.y[N] ? G.i.y[0] : G.i.y[N], Q = ee.getBezierEasing(O, I, A, C).get, $.__fnct[N] = Q)) : $.__fnct ? Q = $.__fnct : (O = G.o.x, I = G.o.y, A = G.i.x, C = G.i.y, Q = ee.getBezierEasing(O, I, A, C).get, G.keyframeMetadata = Q), H = Q((e - z) / (M - z)))), Z = B.s || G.e, R = 1 === G.h ? G.s[N] : G.s[N] + (Z[N] - G.s[N]) * H, "multidimensional" === this.propType ? V[N] = R : V = R;
return t.lastIndex = D, V
}
function le(e) {
var t = e[0] * P,
n = e[1] * P,
r = e[2] * P,
i = Math.cos(t / 2),
a = Math.cos(n / 2),
o = Math.cos(r / 2),
s = Math.sin(t / 2),
l = Math.sin(n / 2),
c = Math.sin(r / 2);
return [s * l * o + i * a * c, s * a * o + i * l * c, i * l * o - s * a * c, i * a * o - s * l * c]
}
function ce() {
var e = this.comp.renderedFrame - this.offsetTime,
t = this.keyframes[0].t - this.offsetTime,
n = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
if (!(e === this._caching.lastFrame || -999999 !== this._caching.lastFrame && (this._caching.lastFrame >= n && e >= n || this._caching.lastFrame < t && e < t))) {
this._caching.lastFrame >= e && (this._caching._lastKeyframeIndex = -1, this._caching.lastIndex = 0);
var r = this.interpolateValue(e, this._caching);
this.pv = r
}
return this._caching.lastFrame = e, this.pv
}
function ue(e) {
var t;
if ("unidimensional" === this.propType) t = e * this.mult, oe(this.v - t) > 1e-5 && (this.v = t, this._mdf = !0);
else
for (var n = 0, r = this.v.length; n < r;) t = e[n] * this.mult, oe(this.v[n] - t) > 1e-5 && (this.v[n] = t, this._mdf = !0), n += 1
}
function de() {
if (this.elem.globalData.frameId !== this.frameId && this.effectsSequence.length) {
if (this.lock) return void this.setVValue(this.pv);
this.lock = !0, this._mdf = this._isFirstFrame;
var e, t = this.effectsSequence.length,
n = this.kf ? this.pv : this.data.k;
for (e = 0; e < t; e += 1) n = this.effectsSequence[e](n);
this.setVValue(n), this._isFirstFrame = !1, this.lock = !1, this.frameId = this.elem.globalData.frameId
}
}
function pe(e) {
this.effectsSequence.push(e), this.container.addDynamicProperty(this)
}
function he(e, t, n, r) {
this.propType = "unidimensional", this.mult = n || 1, this.data = t, this.v = n ? t.k * n : t.k, this.pv = t.k, this._mdf = !1, this.elem = e, this.container = r, this.comp = e.comp, this.k = !1, this.kf = !1, this.vel = 0, this.effectsSequence = [], this._isFirstFrame = !0, this.getValue = de, this.setVValue = ue, this.addEffect = pe
}
function fe(e, t, n, r) {
this.propType = "multidimensional", this.mult = n || 1, this.data = t, this._mdf = !1, this.elem = e, this.container = r, this.comp = e.comp, this.k = !1, this.kf = !1, this.frameId = -1;
var i, a = t.k.length;
for (i = 0, this.v = g("float32", a), this.pv = g("float32", a), this.vel = g("float32", a); i < a; i += 1) this.v[i] = t.k[i] * this.mult, this.pv[i] = t.k[i];
this._isFirstFrame = !0, this.effectsSequence = [], this.getValue = de, this.setVValue = ue, this.addEffect = pe
}
function me(e, t, n, r) {
this.propType = "unidimensional", this.keyframes = t.k, this.keyframesMetadata = [], this.offsetTime = e.data.st, this.frameId = -1, this._caching = {
lastFrame: -999999,
lastIndex: 0,
value: 0,
_lastKeyframeIndex: -1
}, this.k = !0, this.kf = !0, this.data = t, this.mult = n || 1, this.elem = e, this.container = r, this.comp = e.comp, this.v = -999999, this.pv = -999999, this._isFirstFrame = !0, this.getValue = de, this.setVValue = ue, this.interpolateValue = se, this.effectsSequence = [ce.bind(this)], this.addEffect = pe
}
function ge(e, t, n, r) {
this.propType = "multidimensional";
var i, a, o, s, l, c = t.k.length;
for (i = 0; i < c - 1; i += 1) t.k[i].to && t.k[i].s && t.k[i + 1] && t.k[i + 1].s && (a = t.k[i].s, o = t.k[i + 1].s, s = t.k[i].to, l = t.k[i].ti, (2 === a.length && !(a[0] === o[0] && a[1] === o[1]) && ae.pointOnLine2D(a[0], a[1], o[0], o[1], a[0] + s[0], a[1] + s[1]) && ae.pointOnLine2D(a[0], a[1], o[0], o[1], o[0] + l[0], o[1] + l[1]) || 3 === a.length && !(a[0] === o[0] && a[1] === o[1] && a[2] === o[2]) && ae.pointOnLine3D(a[0], a[1], a[2], o[0], o[1], o[2], a[0] + s[0], a[1] + s[1], a[2] + s[2]) && ae.pointOnLine3D(a[0], a[1], a[2], o[0], o[1], o[2], o[0] + l[0], o[1] + l[1], o[2] + l[2])) && (t.k[i].to = null, t.k[i].ti = null), a[0] === o[0] && a[1] === o[1] && 0 === s[0] && 0 === s[1] && 0 === l[0] && 0 === l[1] && (2 === a.length || a[2] === o[2] && 0 === s[2] && 0 === l[2]) && (t.k[i].to = null, t.k[i].ti = null));
this.effectsSequence = [ce.bind(this)], this.data = t, this.keyframes = t.k, this.keyframesMetadata = [], this.offsetTime = e.data.st, this.k = !0, this.kf = !0, this._isFirstFrame = !0, this.mult = n || 1, this.elem = e, this.container = r, this.comp = e.comp, this.getValue = de, this.setVValue = ue, this.interpolateValue = se, this.frameId = -1;
var u = t.k[0].s.length;
for (i = 0, this.v = g("float32", u), this.pv = g("float32", u); i < u; i += 1) this.v[i] = -999999, this.pv[i] = -999999;
this._caching = {
lastFrame: -999999,
lastIndex: 0,
value: g("float32", u)
}, this.addEffect = pe
}
var ve = {
getProp: function(e, t, n, r, i) {
var a;
if (t.sid && (t = e.globalData.slotManager.getProp(t)), t.k.length)
if ("number" == typeof t.k[0]) a = new fe(e, t, r, i);
else switch (n) {
case 0:
a = new me(e, t, r, i);
break;
case 1:
a = new ge(e, t, r, i)
} else a = new he(e, t, r, i);
return a.effectsSequence.length && i.addDynamicProperty(a), a
}
};
function _e() {}
_e.prototype = {
addDynamicProperty: function(e) {
-1 === this.dynamicProperties.indexOf(e) && (this.dynamicProperties.push(e), this.container.addDynamicProperty(this), this._isAnimated = !0)
},
iterateDynamicProperties: function() {
this._mdf = !1;
var e, t = this.dynamicProperties.length;
for (e = 0; e < t; e += 1) this.dynamicProperties[e].getValue(), this.dynamicProperties[e]._mdf && (this._mdf = !0)
},
initDynamicPropertyContainer: function(e) {
this.container = e, this.dynamicProperties = [], this._mdf = !1, this._isAnimated = !1
}
};
var ye = ne(8, (function() {
return g("float32", 2)
}));
function be() {
this.c = !1, this._length = 0, this._maxLength = 8, this.v = v(this._maxLength), this.o = v(this._maxLength), this.i = v(this._maxLength)
}
be.prototype.setPathData = function(e, t) {
this.c = e, this.setLength(t);
for (var n = 0; n < t;) this.v[n] = ye.newElement(), this.o[n] = ye.newElement(), this.i[n] = ye.newElement(), n += 1
}, be.prototype.setLength = function(e) {
for (; this._maxLength < e;) this.doubleArrayLength();
this._length = e
}, be.prototype.doubleArrayLength = function() {
this.v = this.v.concat(v(this._maxLength)), this.i = this.i.concat(v(this._maxLength)), this.o = this.o.concat(v(this._maxLength)), this._maxLength *= 2
}, be.prototype.setXYAt = function(e, t, n, r, i) {
var a;
switch (this._length = Math.max(this._length, r + 1), this._length >= this._maxLength && this.doubleArrayLength(), n) {
case "v":
a = this.v;
break;
case "i":
a = this.i;
break;
case "o":
a = this.o;
break;
default:
a = []
}
a[r] && (!a[r] || i) || (a[r] = ye.newElement()), a[r][0] = e, a[r][1] = t
}, be.prototype.setTripleAt = function(e, t, n, r, i, a, o, s) {
this.setXYAt(e, t, "v", o, s), this.setXYAt(n, r, "o", o, s), this.setXYAt(i, a, "i", o, s)
}, be.prototype.reverse = function() {
var e, t = new be;
t.setPathData(this.c, this._length);
var n = this.v,
r = this.o,
i = this.i,
a = 0;
this.c && (t.setTripleAt(n[0][0], n[0][1], i[0][0], i[0][1], r[0][0], r[0][1], 0, !1), a = 1);
var o = this._length - 1,
s = this._length;
for (e = a; e < s; e += 1) t.setTripleAt(n[o][0], n[o][1], i[o][0], i[o][1], r[o][0], r[o][1], e, !1), o -= 1;
return t
}, be.prototype.length = function() {
return this._length
};
var xe = ((t = ne(4, (function() {
return new be
}), (function(e) {
var t, n = e._length;
for (t = 0; t < n; t += 1) ye.release(e.v[t]), ye.release(e.i[t]), ye.release(e.o[t]), e.v[t] = null, e.i[t] = null, e.o[t] = null;
e._length = 0, e.c = !1
}))).clone = function(e) {
var n, r = t.newElement(),
i = void 0 === e._length ? e.v.length : e._length;
for (r.setLength(i), r.c = e.c, n = 0; n < i; n += 1) r.setTripleAt(e.v[n][0], e.v[n][1], e.o[n][0], e.o[n][1], e.i[n][0], e.i[n][1], n);
return r
}, t);
function we() {
this._length = 0, this._maxLength = 4, this.shapes = v(this._maxLength)
}
we.prototype.addShape = function(e) {
this._length === this._maxLength && (this.shapes = this.shapes.concat(v(this._maxLength)), this._maxLength *= 2), this.shapes[this._length] = e, this._length += 1
}, we.prototype.releaseShapes = function() {
var e;
for (e = 0; e < this._length; e += 1) xe.release(this.shapes[e]);
this._length = 0
};
var ke = (n = 0, r = 4, i = v(4), {
newShapeCollection: function() {
var e;
return n ? e = i[n -= 1] : e = new we, e
},
release: function(e) {
var t, a = e._length;
for (t = 0; t < a; t += 1) xe.release(e.shapes[t]);
e._length = 0, n === r && (i = te(i), r *= 2), i[n] = e, n += 1
}
}),
Ee = function() {
function e(e, t, n) {
var r = n.lastIndex,
i = this.keyframes;
if (e < i[0].t - this.offsetTime) a = i[0].s[0], s = !0, r = 0;
else if (e >= i[i.length - 1].t - this.offsetTime) a = i[i.length - 1].s ? i[i.length - 1].s[0] : i[i.length - 2].e[0], s = !0;
else {
for (var a, o, s, l, c, u, d, p, h, f, m, g, v, _ = r, y = i.length - 1, b = !0; b && (f = i[_], !((m = i[_ + 1]).t - this.offsetTime > e));) _ < y - 1 ? _ += 1 : b = !1;
g = this.keyframesMetadata[_] || {}, r = _, (s = 1 === f.h) || (e >= m.t - this.offsetTime ? p = 1 : e < f.t - this.offsetTime ? p = 0 : (g.__fnct ? v = g.__fnct : (v = ee.getBezierEasing(f.o.x, f.o.y, f.i.x, f.i.y).get, g.__fnct = v), p = v((e - (f.t - this.offsetTime)) / (m.t - this.offsetTime - (f.t - this.offsetTime)))), o = m.s ? m.s[0] : f.e[0]), a = f.s[0]
}
for (l = 0, u = t._length, d = a.i[0].length, n.lastIndex = r; l < u; l += 1)
for (c = 0; c < d; c += 1) h = s ? a.i[l][c] : a.i[l][c] + (o.i[l][c] - a.i[l][c]) * p, t.i[l][c] = h, h = s ? a.o[l][c] : a.o[l][c] + (o.o[l][c] - a.o[l][c]) * p, t.o[l][c] = h, h = s ? a.v[l][c] : a.v[l][c] + (o.v[l][c] - a.v[l][c]) * p, t.v[l][c] = h
}
function t() {
var e = this.comp.renderedFrame - this.offsetTime,
t = this.keyframes[0].t - this.offsetTime,
n = this.keyframes[this.keyframes.length - 1].t - this.offsetTime,
r = this._caching.lastFrame;
return -999999 !== r && (r < t && e < t || r > n && e > n) || (this._caching.lastIndex = r < e ? this._caching.lastIndex : 0, this.interpolateShape(e, this.pv, this._caching)), this._caching.lastFrame = e, this.pv
}
function n() {
this.paths = this.localShapeCollection
}
function r(e) {
! function(e, t) {
if (e._length !== t._length || e.c !== t.c) return !1;
var n, r = e._length;
for (n = 0; n < r; n += 1)
if (e.v[n][0] !== t.v[n][0] || e.v[n][1] !== t.v[n][1] || e.o[n][0] !== t.o[n][0] || e.o[n][1] !== t.o[n][1] || e.i[n][0] !== t.i[n][0] || e.i[n][1] !== t.i[n][1]) return !1;
return !0
}(this.v, e) && (this.v = xe.clone(e), this.localShapeCollection.releaseShapes(), this.localShapeCollection.addShape(this.v), this._mdf = !0, this.paths = this.localShapeCollection)
}
function i() {
if (this.elem.globalData.frameId !== this.frameId) {
if (!this.effectsSequence.length) return void(this._mdf = !1);
if (this.lock) return void this.setVValue(this.pv);
this.lock = !0, this._mdf = !1, e = this.kf ? this.pv : this.data.ks ? this.data.ks.k : this.data.pt.k;
var e, t, n = this.effectsSequence.length;
for (t = 0; t < n; t += 1) e = this.effectsSequence[t](e);
this.setVValue(e), this.lock = !1, this.frameId = this.elem.globalData.frameId
}
}
function a(e, t, r) {
this.propType = "shape", this.comp = e.comp, this.container = e, this.elem = e, this.data = t, this.k = !1, this.kf = !1, this._mdf = !1;
var i = 3 === r ? t.pt.k : t.ks.k;
this.v = xe.clone(i), this.pv = xe.clone(this.v), this.localShapeCollection = ke.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.reset = n, this.effectsSequence = []
}
function o(e) {
this.effectsSequence.push(e), this.container.addDynamicProperty(this)
}
function s(e, r, i) {
this.propType = "shape", this.comp = e.comp, this.elem = e, this.container = e, this.offsetTime = e.data.st, this.keyframes = 3 === i ? r.pt.k : r.ks.k, this.keyframesMetadata = [], this.k = !0, this.kf = !0;
var a = this.keyframes[0].s[0].i.length;
this.v = xe.newElement(), this.v.setPathData(this.keyframes[0].s[0].c, a), this.pv = xe.clone(this.v), this.localShapeCollection = ke.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.lastFrame = -999999, this.reset = n, this._caching = {
lastFrame: -999999,
lastIndex: 0
}, this.effectsSequence = [t.bind(this)]
}
a.prototype.interpolateShape = e, a.prototype.getValue = i, a.prototype.setVValue = r, a.prototype.addEffect = o, s.prototype.getValue = i, s.prototype.interpolateShape = e, s.prototype.setVValue = r, s.prototype.addEffect = o;
var l = function() {
function e(e, t) {
this.v = xe.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = ke.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d = t.d, this.elem = e, this.comp = e.comp, this.frameId = -1, this.initDynamicPropertyContainer(e), this.p = ve.getProp(e, t.p, 1, 0, this), this.s = ve.getProp(e, t.s, 1, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertEllToPath())
}
return e.prototype = {
reset: n,
getValue: function() {
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertEllToPath())
},
convertEllToPath: function() {
var e = this.p.v[0],
t = this.p.v[1],
n = this.s.v[0] / 2,
r = this.s.v[1] / 2,
i = 3 !== this.d,
a = this.v;
a.v[0][0] = e, a.v[0][1] = t - r, a.v[1][0] = i ? e + n : e - n, a.v[1][1] = t, a.v[2][0] = e, a.v[2][1] = t + r, a.v[3][0] = i ? e - n : e + n, a.v[3][1] = t, a.i[0][0] = i ? e - .5519 * n : e + .5519 * n, a.i[0][1] = t - r, a.i[1][0] = i ? e + n : e - n, a.i[1][1] = t - .5519 * r, a.i[2][0] = i ? e + .5519 * n : e - .5519 * n, a.i[2][1] = t + r, a.i[3][0] = i ? e - n : e + n, a.i[3][1] = t + .5519 * r, a.o[0][0] = i ? e + .5519 * n : e - .5519 * n, a.o[0][1] = t - r, a.o[1][0] = i ? e + n : e - n, a.o[1][1] = t + .5519 * r, a.o[2][0] = i ? e - .5519 * n : e + .5519 * n, a.o[2][1] = t + r, a.o[3][0] = i ? e - n : e + n, a.o[3][1] = t - .5519 * r
}
}, f([_e], e), e
}(),
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, P, this), this.or = ve.getProp(e, t.or, 0, 0, this), this.os = ve.getProp(e, t.os, 0, .01, this), this.localShapeCollection = ke.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,
getValue: function() {
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath())
},
convertStarToPath: function() {
var e, t, n, r, i = 2 * Math.floor(this.pt.v),
a = 2 * Math.PI / i,
o = !0,
s = this.or.v,
l = this.ir.v,
c = this.os.v,
u = this.is.v,
d = 2 * Math.PI * s / (2 * i),
p = 2 * Math.PI * l / (2 * i),
h = -Math.PI / 2;
h += this.r.v;
var f = 3 === this.data.d ? -1 : 1;
for (e = 0, this.v._length = 0; e < i; e += 1) {
n = o ? c : u, r = o ? d : p;
var m = (t = o ? s : l) * Math.cos(h),
g = t * Math.sin(h),
v = 0 === m && 0 === g ? 0 : g / Math.sqrt(m * m + g * g),
_ = 0 === m && 0 === g ? 0 : -m / Math.sqrt(m * m + g * g);
m += +this.p.v[0], g += +this.p.v[1], this.v.setTripleAt(m, g, m - v * r * n * f, g - _ * r * n * f, m + v * r * n * f, g + _ * r * n * f, e, !0), o = !o, h += a * f
}
},
convertPolygonToPath: function() {
var e, t = Math.floor(this.pt.v),
n = 2 * Math.PI / t,
r = this.or.v,
i = this.os.v,
a = 2 * Math.PI * r / (4 * t),
o = -.5 * Math.PI,
s = 3 === this.data.d ? -1 : 1;
for (o += this.r.v, this.v._length = 0, e = 0; e < t; e += 1) {
var l = r * Math.cos(o),
c = r * Math.sin(o),
u = 0 === l && 0 === c ? 0 : c / Math.sqrt(l * l + c * c),
d = 0 === l && 0 === c ? 0 : -l / Math.sqrt(l * l + c * c);
l += +this.p.v[0], c += +this.p.v[1], this.v.setTripleAt(l, c, l - u * a * i * s, c - d * a * i * s, l + u * a * i * s, c + d * a * i * s, e, !0), o += n * s
}
this.paths.length = 0, this.paths[0] = this.v
}
}, f([_e], e), e
}(),
u = function() {
function e(e, t) {
this.v = xe.newElement(), this.v.c = !0, this.localShapeCollection = ke.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem = e, this.comp = e.comp, this.frameId = -1, this.d = t.d, this.initDynamicPropertyContainer(e), this.p = ve.getProp(e, t.p, 1, 0, this), this.s = ve.getProp(e, t.s, 1, 0, this), this.r = ve.getProp(e, t.r, 0, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertRectToPath())
}
return e.prototype = {
convertRectToPath: function() {
var e = this.p.v[0],
t = this.p.v[1],
n = this.s.v[0] / 2,
r = this.s.v[1] / 2,
i = S(n, r, this.r.v),
a = .44810000000000005 * i;
this.v._length = 0, 2 === this.d || 1 === this.d ? (this.v.setTripleAt(e + n, t - r + i, e + n, t - r + i, e + n, t - r + a, 0, !0), this.v.setTripleAt(e + n, t + r - i, e + n, t + r - a, e + n, t + r - i, 1, !0), 0 !== i ? (this.v.setTripleAt(e + n - i, t + r, e + n - i, t + r, e + n - a, t + r, 2, !0), this.v.setTripleAt(e - n + i, t + r, e - n + a, t + r, e - n + i, t + r, 3, !0), this.v.setTripleAt(e - n, t + r - i, e - n, t + r - i, e - n, t + r - a, 4, !0), this.v.setTripleAt(e - n, t - r + i, e - n, t - r + a, e - n, t - r + i, 5, !0), this.v.setTripleAt(e - n + i, t - r, e - n + i, t - r, e - n + a, t - r, 6, !0), this.v.setTripleAt(e + n - i, t - r, e + n - a, t - r, e + n - i, t - r, 7, !0)) : (this.v.setTripleAt(e - n, t + r, e - n + a, t + r, e - n, t + r, 2), this.v.setTripleAt(e - n, t - r, e - n, t - r + a, e - n, t - r, 3))) : (this.v.setTripleAt(e + n, t - r + i, e + n, t - r + a, e + n, t - r + i, 0, !0), 0 !== i ? (this.v.setTripleAt(e + n - i, t - r, e + n - i, t - r, e + n - a, t - r, 1, !0), this.v.setTripleAt(e - n + i, t - r, e - n + a, t - r, e - n + i, t - r, 2, !0), this.v.setTripleAt(e - n, t - r + i, e - n, t - r + i, e - n, t - r + a, 3, !0), this.v.setTripleAt(e - n, t + r - i, e - n, t + r - a, e - n, t + r - i, 4, !0), this.v.setTripleAt(e - n + i, t + r, e - n + i, t + r, e - n + a, t + r, 5, !0), this.v.setTripleAt(e + n - i, t + r, e + n - a, t + r, e + n - i, t + r, 6, !0), this.v.setTripleAt(e + n, t + r - i, e + n, t + r - i, e + n, t + r - a, 7, !0)) : (this.v.setTripleAt(e - n, t - r, e - n + a, t - r, e - n, t - r, 1, !0), this.v.setTripleAt(e - n, t + r, e - n, t + r - a, e - n, t + r, 2, !0), this.v.setTripleAt(e + n, t + r, e + n - a, t + r, e + n, t + r, 3, !0)))
},
getValue: function() {
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertRectToPath())
},
reset: n
}, f([_e], e), e
}(),
d = {
getShapeProp: function(e, t, n) {
var r;
return 3 === n || 4 === n ? r = (3 === n ? t.pt : t.ks).k.length ? new s(e, t, n) : new a(e, t, n) : 5 === n ? r = new u(e, t) : 6 === n ? r = new l(e, t) : 7 === n && (r = new c(e, t)), r.k && e.addDynamicProperty(r), r
},
getConstructorFunction: function() {
return a
},
getKeyframedConstructorFunction: function() {
return s
}
};
return d
}(),
Se = function() {
var e = Math.cos,
t = Math.sin,
n = Math.tan,
r = Math.round;
function i() {
return this.props[0] = 1, this.props[1] = 0, this.props[2] = 0, this.props[3] = 0, this.props[4] = 0, this.props[5] = 1, this.props[6] = 0, this.props[7] = 0, this.props[8] = 0, this.props[9] = 0, this.props[10] = 1, this.props[11] = 0, this.props[12] = 0, this.props[13] = 0, this.props[14] = 0, this.props[15] = 1, this
}
function a(n) {
if (0 === n) return this;
var r = e(n),
i = t(n);
return this._t(r, -i, 0, 0, i, r, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)
}
function o(n) {
if (0 === n) return this;
var r = e(n),
i = t(n);
return this._t(1, 0, 0, 0, 0, r, -i, 0, 0, i, r, 0, 0, 0, 0, 1)
}
function s(n) {
if (0 === n) return this;
var r = e(n),
i = t(n);
return this._t(r, 0, i, 0, 0, 1, 0, 0, -i, 0, r, 0, 0, 0, 0, 1)
}
function l(n) {
if (0 === n) return this;
var r = e(n),
i = t(n);
return this._t(r, -i, 0, 0, i, r, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)
}
function c(e, t) {
return this._t(1, t, e, 1, 0, 0)
}
function u(e, t) {
return this.shear(n(e), n(t))
}
function d(r, i) {
var a = e(i),
o = t(i);
return this._t(a, o, 0, 0, -o, a, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, n(r), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(a, -o, 0, 0, o, a, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)
}
function p(e, t, n) {
return n || 0 === n || (n = 1), 1 === e && 1 === t && 1 === n ? this : this._t(e, 0, 0, 0, 0, t, 0, 0, 0, 0, n, 0, 0, 0, 0, 1)
}
function h(e, t, n, r, i, a, o, s, l, c, u, d, p, h, f, m) {
return this.props[0] = e, this.props[1] = t, this.props[2] = n, this.props[3] = r, this.props[4] = i, this.props[5] = a, this.props[6] = o, this.props[7] = s, this.props[8] = l, this.props[9] = c, this.props[10] = u, this.props[11] = d, this.props[12] = p, this.props[13] = h, this.props[14] = f, this.props[15] = m, this
}
function f(e, t, n) {
return n = n || 0, 0 !== e || 0 !== t || 0 !== n ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, e, t, n, 1) : this
}
function m(e, t, n, r, i, a, o, s, l, c, u, d, p, h, f, m) {
var g = this.props;
if (1 === e && 0 === t && 0 === n && 0 === r && 0 === i && 1 === a && 0 === o && 0 === s && 0 === l && 0 === c && 1 === u && 0 === d) return g[12] = g[12] * e + g[15] * p, g[13] = g[13] * a + g[15] * h, g[14] = g[14] * u + g[15] * f, g[15] *= m, this._identityCalculated = !1, this;
var v = g[0],
_ = g[1],
y = g[2],
b = g[3],
x = g[4],
w = g[5],
k = g[6],
E = g[7],
S = g[8],
O = g[9],
P = g[10],
I = g[11],
A = g[12],
C = g[13],
R = g[14],
T = g[15];
return g[0] = v * e + _ * i + y * l + b * p, g[1] = v * t + _ * a + y * c + b * h, g[2] = v * n + _ * o + y * u + b * f, g[3] = v * r + _ * s + y * d + b * m, g[4] = x * e + w * i + k * l + E * p, g[5] = x * t + w * a + k * c + E * h, g[6] = x * n + w * o + k * u + E * f, g[7] = x * r + w * s + k * d + E * m, g[8] = S * e + O * i + P * l + I * p, g[9] = S * t + O * a + P * c + I * h, g[10] = S * n + O * o + P * u + I * f, g[11] = S * r + O * s + P * d + I * m, g[12] = A * e + C * i + R * l + T * p, g[13] = A * t + C * a + R * c + T * h, g[14] = A * n + C * o + R * u + T * f, g[15] = A * r + C * s + R * d + T * m, this._identityCalculated = !1, this
}
function v(e) {
var t = e.props;
return this.transform(t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8], t[9], t[10], t[11], t[12], t[13], t[14], t[15])
}
function _() {
return this._identityCalculated || (this._identity = !(1 !== this.props[0] || 0 !== this.props[1] || 0 !== this.props[2] || 0 !== this.props[3] || 0 !== this.props[4] || 1 !== this.props[5] || 0 !== this.props[6] || 0 !== this.props[7] || 0 !== this.props[8] || 0 !== this.props[9] || 1 !== this.props[10] || 0 !== this.props[11] || 0 !== this.props[12] || 0 !== this.props[13] || 0 !== this.props[14] || 1 !== this.props[15]), this._identityCalculated = !0), this._identity
}
function y(e) {
for (var t = 0; t < 16;) {
if (e.props[t] !== this.props[t]) return !1;
t += 1
}
return !0
}
function b(e) {
var t;
for (t = 0; t < 16; t += 1) e.props[t] = this.props[t];
return e
}
function x(e) {
var t;
for (t = 0; t < 16; t += 1) this.props[t] = e[t]
}
function w(e, t, n) {
return {
x: e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12],
y: e * this.props[1] + t * this.props[5] + n * this.props[9] + this.props[13],
z: e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14]
}
}
function k(e, t, n) {
return e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12]
}
function E(e, t, n) {
return e * this.props[1] + t * this.props[5] + n * this.props[9] + this.props[13]
}
function S(e, t, n) {
return e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14]
}
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,
r = -this.props[4] / e,
i = this.props[0] / e,
a = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / e,
o = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / e,
s = new Se;
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 P(e) {
return this.getInverseMatrix().applyToPointArray(e[0], e[1], e[2] || 0)
}
function I(e) {
var t, n = e.length,
r = [];
for (t = 0; t < n; t += 1) r[t] = P(e[t]);
return r
}
function A(e, t, n) {
var r = g("float32", 6);
if (this.isIdentity()) r[0] = e[0], r[1] = e[1], r[2] = t[0], r[3] = t[1], r[4] = n[0], r[5] = n[1];
else {
var i = this.props[0],
a = this.props[1],
o = this.props[4],
s = this.props[5],
l = this.props[12],
c = this.props[13];
r[0] = e[0] * i + e[1] * o + l, r[1] = e[0] * a + e[1] * s + c, r[2] = t[0] * i + t[1] * o + l, r[3] = t[0] * a + t[1] * s + c, r[4] = n[0] * i + n[1] * o + l, r[5] = n[0] * a + n[1] * s + c
}
return r
}
function C(e, t, n) {
return this.isIdentity() ? [e, t, n] : [e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12], e * this.props[1] + t * this.props[5] + n * this.props[9] + this.props[13], e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14]]
}
function R(e, t) {
if (this.isIdentity()) return e + "," + t;
var n = this.props;
return Math.round(100 * (e * n[0] + t * n[4] + n[12])) / 100 + "," + Math.round(100 * (e * n[1] + t * n[5] + n[13])) / 100
}
function T() {
for (var e = 0, t = this.props, n = "matrix3d("; e < 16;) n += r(1e4 * t[e]) / 1e4 + (15 === e ? ")" : ","), e += 1;
return n
}
function D(e) {
return e < 1e-6 && e > 0 || e > -1e-6 && e < 0 ? r(1e4 * e) / 1e4 : e
}
function N() {
var e = this.props;
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 = w, this.applyToX = k, this.applyToY = E, this.applyToZ = S, this.applyToPointArray = C, this.applyToTriplePoints = A, this.applyToPointStringified = R, this.toCSS = T, this.to2dCSS = N, this.clone = b, this.cloneFromProps = x, this.equals = y, this.inversePoints = I, this.inversePoint = P, this.getInverseMatrix = O, this._t = this.transform, this.isIdentity = _, this._identity = !0, this._identityCalculated = !1, this.props = g("float32", 16), this.reset()
}
}();
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 Pe = {};
function Ie() {
J.searchAnimations()
}
Pe.play = J.play, Pe.pause = J.pause, Pe.setLocationHref = function(e) {
! function(e) {
u = e
}(e)
}, Pe.togglePause = J.togglePause, Pe.setSpeed = J.setSpeed, Pe.setDirection = J.setDirection, Pe.stop = J.stop, Pe.searchAnimations = Ie, Pe.registerAnimation = J.registerAnimation, Pe.loadAnimation = function(e) {
return J.loadAnimation(e)
}, Pe.setSubframeRendering = function(e) {
! function(e) {
_ = !!e
}(e)
}, Pe.resize = J.resize, Pe.goToAndStop = J.goToAndStop, Pe.destroy = J.destroy, Pe.setQuality = function(e) {
if ("string" == typeof e) switch (e) {
case "high":
G(200);
break;
default:
case "medium":
G(50);
break;
case "low":
G(10)
} else !isNaN(e) && e > 1 && G(e)
}, Pe.inBrowser = function() {
return "undefined" != typeof navigator
}, Pe.installPlugin = function(e, t) {
"expressions" === e && function(e) {
y = e
}(t)
}, Pe.freeze = J.freeze, Pe.unfreeze = J.unfreeze, Pe.setVolume = J.setVolume, Pe.mute = J.mute, Pe.unmute = J.unmute, Pe.getRegisteredAnimations = J.getRegisteredAnimations, Pe.useWebWorker = function(e) {
d = !!e
}, Pe.setIDPrefix = function(e) {
! function(e) {
b = e
}(e)
}, Pe.__getFactory = function(e) {
switch (e) {
case "propertyFactory":
return ve;
case "shapePropertyFactory":
return Ee;
case "matrix":
return Se;
default:
return null
}
}, Pe.version = "5.12.2";
var Ae = "",
Ce = document.getElementsByTagName("script"),
Re = Ce[Ce.length - 1] || {
src: ""
};
Ae = Re.src ? Re.src.replace(/^[^\?]+\??/, "") : "",
function(e) {
for (var t = Ae.split("&"), n = 0; n < t.length; n += 1) {
var r = t[n].split("=");
if ("renderer" == decodeURIComponent(r[0])) return decodeURIComponent(r[1])
}
}();
var Te = setInterval((function() {
"complete" === document.readyState && (clearInterval(Te), Ie())
}), 100);
try {
"object" !== Oe(hs) && (window.bodymovin = Pe)
} catch (e) {}
var De = (o = {}, (a = {}).registerModifier = function(e, t) {
o[e] || (o[e] = t)
}, a.getModifier = function(e, t, n) {
return new o[e](t, n)
}, a);
function Ne() {}
function Le() {}
function je() {}
Ne.prototype.initModifierProperties = function() {}, Ne.prototype.addShapeToModifier = function() {}, Ne.prototype.addShape = function(e) {
if (!this.closed) {
e.sh.container.addDynamicProperty(e.sh);
var t = {
shape: e.sh,
data: e,
localShapeCollection: ke.newShapeCollection()
};
this.shapes.push(t), this.addShapeToModifier(t), this._isAnimated && e.setAsAnimated()
}
}, Ne.prototype.init = function(e, t) {
this.shapes = [], this.elem = e, this.initDynamicPropertyContainer(e), this.initModifierProperties(e, t), this.frameId = -999999, this.closed = !1, this.k = !1, this.dynamicProperties.length ? this.k = !0 : this.getValue(!0)
}, Ne.prototype.processKeys = function() {
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties())
}, f([_e], Ne), f([Ne], Le), Le.prototype.initModifierProperties = function(e, t) {
this.s = ve.getProp(e, t.s, 0, .01, this), this.e = ve.getProp(e, t.e, 0, .01, this), this.o = ve.getProp(e, t.o, 0, 0, this), this.sValue = 0, this.eValue = 0, this.getValue = this.processKeys, this.m = t.m, this._isAnimated = !!this.s.effectsSequence.length || !!this.e.effectsSequence.length || !!this.o.effectsSequence.length
}, Le.prototype.addShapeToModifier = function(e) {
e.pathsData = []
}, Le.prototype.calculateShapeEdges = function(e, t, n, r, i) {
var a, o, s = [];
t <= 1 ? s.push({
s: e,
e: t
}) : e >= 1 ? s.push({
s: e - 1,
e: t - 1
}) : (s.push({
s: e,
e: 1
}), s.push({
s: 0,
e: t - 1
}));
var l = [],
c = s.length;
for (a = 0; a < c; a += 1)(o = s[a]).e * i < r || o.s * i > r + n || l.push([o.s * i <= r ? 0 : (o.s * i - r) / n, o.e * i >= r + n ? 1 : (o.e * i - r) / n]);
return l.length || l.push([0, 0]), l
}, Le.prototype.releasePathsData = function(e) {
var t, n = e.length;
for (t = 0; t < n; t += 1) ie.release(e[t]);
return e.length = 0, e
}, Le.prototype.processShapes = function(e) {
if (this._mdf || e) {
var t = this.o.v % 360 / 360;
if (t < 0 && (t += 1), (a = this.s.v > 1 ? 1 + t : this.s.v < 0 ? 0 + t : this.s.v + t) > (o = this.e.v > 1 ? 1 + t : this.e.v < 0 ? 0 + t : this.e.v + t)) {
var n = a;
a = o, o = n
}
a = 1e-4 * Math.round(1e4 * a), o = 1e-4 * Math.round(1e4 * o), this.sValue = a, this.eValue = o
} else a = this.sValue, o = this.eValue;
var r = this.shapes.length,
i = 0;
if (o === a)
for (l = 0; l < r; l += 1) this.shapes[l].localShapeCollection.releaseShapes(), this.shapes[l].shape._mdf = !0, this.shapes[l].shape.paths = this.shapes[l].localShapeCollection, this._mdf && (this.shapes[l].pathsData.length = 0);
else if (1 === o && 0 === a || 0 === o && 1 === a) {
if (this._mdf)
for (l = 0; l < r; l += 1) this.shapes[l].pathsData.length = 0, this.shapes[l].shape._mdf = !0
} else {
var a, o, s, l, c, u, d, p, h, f, m, g, v = [];
for (l = 0; l < r; l += 1)
if ((f = this.shapes[l]).shape._mdf || this._mdf || e || 2 === this.m) {
if (u = (s = f.shape.paths)._length, h = 0, !f.shape._mdf && f.pathsData.length) h = f.totalShapeLength;
else {
for (c = 0, d = this.releasePathsData(f.pathsData); c < u; c += 1) p = ae.getSegmentsLength(s.shapes[c]), d.push(p), h += p.totalLength;
f.totalShapeLength = h, f.pathsData = d
}
i += h, f.shape._mdf = !0
} else f.shape.paths = f.localShapeCollection;
var _ = a,
y = o,
b = 0;
for (l = r - 1; l >= 0; l -= 1)
if ((f = this.shapes[l]).shape._mdf) {
for ((m = f.localShapeCollection).releaseShapes(), 2 === this.m && r > 1 ? (g = this.calculateShapeEdges(a, o, f.totalShapeLength, b, i), b += f.totalShapeLength) : g = [
[_, y]
], u = g.length, c = 0; c < u; c += 1) {
_ = g[c][0], y = g[c][1], v.length = 0, y <= 1 ? v.push({
s: f.totalShapeLength * _,
e: f.totalShapeLength * y
}) : _ >= 1 ? v.push({
s: f.totalShapeLength * (_ - 1),
e: f.totalShapeLength * (y - 1)
}) : (v.push({
s: f.totalShapeLength * _,
e: f.totalShapeLength
}), v.push({
s: 0,
e: f.totalShapeLength * (y - 1)
}));
var x = this.addShapes(f, v[0]);
if (v[0].s !== v[0].e) {
if (v.length > 1)
if (f.shape.paths.shapes[f.shape.paths._length - 1].c) {
var w = x.pop();
this.addPaths(x, m), x = this.addShapes(f, v[1], w)
} else this.addPaths(x, m), x = this.addShapes(f, v[1]);
this.addPaths(x, m)
}
}
f.shape.paths = m
}
}
}, Le.prototype.addPaths = function(e, t) {
var n, r = e.length;
for (n = 0; n < r; n += 1) t.addShape(e[n])
}, Le.prototype.addSegment = function(e, t, n, r, i, a, o) {
i.setXYAt(t[0], t[1], "o", a), i.setXYAt(n[0], n[1], "i", a + 1), o && i.setXYAt(e[0], e[1], "v", a), i.setXYAt(r[0], r[1], "v", a + 1)
}, Le.prototype.addSegmentFromArray = function(e, t, n, r) {
t.setXYAt(e[1], e[5], "o", n), t.setXYAt(e[2], e[6], "i", n + 1), r && t.setXYAt(e[0], e[4], "v", n), t.setXYAt(e[3], e[7], "v", n + 1)
}, Le.prototype.addShapes = function(e, t, n) {
var r, i, a, o, s, l, c, u, d = e.pathsData,
p = e.shape.paths.shapes,
h = e.shape.paths._length,
f = 0,
m = [],
g = !0;
for (n ? (s = n._length, u = n._length) : (n = xe.newElement(), s = 0, u = 0), m.push(n), r = 0; r < h; r += 1) {
for (i = 1, l = d[r].lengths, n.c = p[r].c, a = p[r].c ? l.length : l.length + 1; i < a; i += 1)
if (f + (o = l[i - 1]).addedLength < t.s) f += o.addedLength, n.c = !1;
else {
if (f > t.e) {
n.c = !1;
break
}
t.s <= f && t.e >= f + o.addedLength ? (this.addSegment(p[r].v[i - 1], p[r].o[i - 1], p[r].i[i], p[r].v[i], n, s, g), g = !1) : (c = ae.getNewSegment(p[r].v[i - 1], p[r].v[i], p[r].o[i - 1], p[r].i[i], (t.s - f) / o.addedLength, (t.e - f) / o.addedLength, l[i - 1]), this.addSegmentFromArray(c, n, s, g), g = !1, n.c = !1), f += o.addedLength, s += 1
} if (p[r].c && l.length) {
if (o = l[i - 1], f <= t.e) {
var v = l[i - 1].addedLength;
t.s <= f && t.e >= f + v ? (this.addSegment(p[r].v[i - 1], p[r].o[i - 1], p[r].i[0], p[r].v[0], n, s, g), g = !1) : (c = ae.getNewSegment(p[r].v[i - 1], p[r].v[0], p[r].o[i - 1], p[r].i[0], (t.s - f) / v, (t.e - f) / v, l[i - 1]), this.addSegmentFromArray(c, n, s, g), g = !1, n.c = !1)
} else n.c = !1;
f += o.addedLength, s += 1
}
if (n._length && (n.setXYAt(n.v[u][0], n.v[u][1], "i", u), n.setXYAt(n.v[n._length - 1][0], n.v[n._length - 1][1], "o", n._length - 1)), f > t.e) break;
r < h - 1 && (n = xe.newElement(), g = !0, m.push(n), s = 0)
}
return m
}, f([Ne], je), je.prototype.initModifierProperties = function(e, t) {
this.getValue = this.processKeys, this.amount = ve.getProp(e, t.a, 0, null, this), this._isAnimated = !!this.amount.effectsSequence.length
}, je.prototype.processPath = function(e, t) {
var n, r, i, a, o, s, l = t / 100,
c = [0, 0],
u = e._length,
d = 0;
for (d = 0; d < u; d += 1) c[0] += e.v[d][0], c[1] += e.v[d][1];
c[0] /= u, c[1] /= u;
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
}, je.prototype.processShapes = function(e) {
var t, n, r, i, a, o, s = this.shapes.length,
l = this.amount.v;
if (0 !== l)
for (n = 0; n < s; n += 1) {
if (o = (a = this.shapes[n]).localShapeCollection, a.shape._mdf || this._mdf || e)
for (o.releaseShapes(), a.shape._mdf = !0, t = a.shape.paths.shapes, i = a.shape.paths._length, r = 0; r < i; r += 1) o.addShape(this.processPath(t[r], l));
a.shape.paths = a.localShapeCollection
}
this.dynamicProperties.length || (this._mdf = !1)
};
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 Se, this.pre = new Se, this.appliedTransformations = 0, this.initDynamicPropertyContainer(n || e), t.p && t.p.s ? (this.px = ve.getProp(e, t.p.x, 0, 0, this), this.py = ve.getProp(e, t.p.y, 0, 0, this), t.p.z && (this.pz = ve.getProp(e, t.p.z, 0, 0, this))) : this.p = ve.getProp(e, t.p || {
k: [0, 0, 0]
}, 1, 0, this), t.rx) {
if (this.rx = ve.getProp(e, t.rx, 0, P, this), this.ry = ve.getProp(e, t.ry, 0, P, this), this.rz = ve.getProp(e, t.rz, 0, P, this), t.or.k[0].ti) {
var r, 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, P, this), this.or.sh = !0
} else this.r = ve.getProp(e, t.r || {
k: 0
}, 0, P, this);
t.sk && (this.sk = ve.getProp(e, t.sk, 0, P, this), this.sa = ve.getProp(e, t.sa, 0, P, 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]
}, 1, .01, this), t.o ? this.o = ve.getProp(e, t.o, 0, .01, e) : this.o = {
_mdf: !1,
v: 1
}, this._isDirty = !0, this.dynamicProperties.length || this.getValue(!0)
}
return t.prototype = {
applyToMatrix: function(e) {
var t = this._mdf;
this.iterateDynamicProperties(), this._mdf = this._mdf || t, this.a && e.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.s && e.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && e.skewFromAxis(-this.sk.v, this.sa.v), this.r ? e.rotate(-this.r.v) : e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.data.p.s ? this.data.p.z ? e.translate(this.px.v, this.py.v, -this.pz.v) : e.translate(this.px.v, this.py.v, 0) : e.translate(this.p.v[0], this.p.v[1], -this.p.v[2])
},
getValue: function(t) {
if (this.elem.globalData.frameId !== this.frameId) {
if (this._isDirty && (this.precalculateMatrix(), this._isDirty = !1), this.iterateDynamicProperties(), this._mdf || t) {
var n;
if (this.v.cloneFromProps(this.pre.props), this.appliedTransformations < 1 && this.v.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.appliedTransformations < 2 && this.v.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && this.appliedTransformations < 3 && this.v.skewFromAxis(-this.sk.v, this.sa.v), this.r && this.appliedTransformations < 4 ? this.v.rotate(-this.r.v) : !this.r && this.appliedTransformations < 4 && this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.autoOriented) {
if (n = this.elem.globalData.frameRate, this.p && this.p.keyframes && this.p.getValueAtTime) this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (r = this.p.getValueAtTime((this.p.keyframes[0].t + .01) / n, 0), i = this.p.getValueAtTime(this.p.keyframes[0].t / n, 0)) : this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t ? (r = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / n, 0), i = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - .05) / n, 0)) : (r = this.p.pv, i = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - .01) / n, this.p.offsetTime));
else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
r = [], i = [];
var r, i, a = this.px,
o = this.py;
a._caching.lastFrame + a.offsetTime <= a.keyframes[0].t ? (r[0] = a.getValueAtTime((a.keyframes[0].t + .01) / n, 0), r[1] = o.getValueAtTime((o.keyframes[0].t + .01) / n, 0), i[0] = a.getValueAtTime(a.keyframes[0].t / n, 0), i[1] = o.getValueAtTime(o.keyframes[0].t / n, 0)) : a._caching.lastFrame + a.offsetTime >= a.keyframes[a.keyframes.length - 1].t ? (r[0] = a.getValueAtTime(a.keyframes[a.keyframes.length - 1].t / n, 0), r[1] = o.getValueAtTime(o.keyframes[o.keyframes.length - 1].t / n, 0), i[0] = a.getValueAtTime((a.keyframes[a.keyframes.length - 1].t - .01) / n, 0), i[1] = o.getValueAtTime((o.keyframes[o.keyframes.length - 1].t - .01) / n, 0)) : (r = [a.pv, o.pv], i[0] = a.getValueAtTime((a._caching.lastFrame + a.offsetTime - .01) / n, a.offsetTime), i[1] = o.getValueAtTime((o._caching.lastFrame + o.offsetTime - .01) / n, o.offsetTime))
} else r = i = e;
this.v.rotate(-Math.atan2(r[1] - i[1], r[0] - i[0]))
}
this.data.p && this.data.p.s ? this.data.p.z ? this.v.translate(this.px.v, this.py.v, -this.pz.v) : this.v.translate(this.px.v, this.py.v, 0) : this.v.translate(this.p.v[0], this.p.v[1], -this.p.v[2])
}
this.frameId = this.elem.globalData.frameId
}
},
precalculateMatrix: function() {
if (this.appliedTransformations = 0, this.pre.reset(), !this.a.effectsSequence.length && (this.pre.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.appliedTransformations = 1, !this.s.effectsSequence.length)) {
if (this.pre.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.appliedTransformations = 2, this.sk) {
if (this.sk.effectsSequence.length || this.sa.effectsSequence.length) return;
this.pre.skewFromAxis(-this.sk.v, this.sa.v), this.appliedTransformations = 3
}
this.r ? this.r.effectsSequence.length || (this.pre.rotate(-this.r.v), this.appliedTransformations = 4) : this.rz.effectsSequence.length || this.ry.effectsSequence.length || this.rx.effectsSequence.length || this.or.effectsSequence.length || (this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.appliedTransformations = 4)
}
},
autoOrient: function() {}
}, f([_e], t), t.prototype.addDynamicProperty = function(e) {
this._addDynamicProperty(e), this.elem.addDynamicProperty(e), this._isDirty = !0
}, t.prototype._addDynamicProperty = _e.prototype.addDynamicProperty, {
getTransformProperty: function(e, n, r) {
return new t(e, n, r)
}
}
}();
function ze() {}
function Fe() {}
function Ue(e, t) {
return 1e5 * Math.abs(e - t) <= Math.min(Math.abs(e), Math.abs(t))
}
function Ve(e) {
return 1e-5 >= Math.abs(e)
}
function Ge(e, t, n) {
return [e[0] * (1 - n) + t[0] * n, e[1] * (1 - n) + t[1] * n]
}
function Be(e, t, n, r) {
return [3 * t - e - 3 * n + r, 3 * e - 6 * t + 3 * n, -3 * e + 3 * t, e]
}
function $e(e) {
return new qe(e, e, e, e, !1)
}
function qe(e, t, n, r, i) {
i && Je(e, t) && (t = Ge(e, r, 1 / 3)), i && Je(n, r) && (n = Ge(e, r, 2 / 3));
var a = Be(e[0], t[0], n[0], r[0]),
o = Be(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 We(e, t) {
var n = e.points[0][t],
r = e.points[e.points.length - 1][t];
if (n > r) {
var i = r;
r = n, n = i
}
for (var a = function(e, t, n) {
if (0 === e) return [];
var r = t * t - 4 * e * n;
if (r < 0) return [];
var i = -t / (2 * e);
if (0 === r) return [i];
var a = Math.sqrt(r) / (2 * e);
return [i - a, i + a]
}(3 * e.a[t], 2 * e.b[t], e.c[t]), o = 0; o < a.length; o += 1)
if (a[o] > 0 && a[o] < 1) {
var s = e.point(a[o])[t];
s < n ? n = s : s > r && (r = s)
} return {
min: n,
max: r
}
}
function He(e, t, n) {
var r = e.boundingBox();
return {
cx: r.cx,
cy: r.cy,
width: r.width,
height: r.height,
bez: e,
t: (t + n) / 2,
t1: t,
t2: n
}
}
function Ye(e) {
var t = e.bez.split(.5);
return [He(t[0], e.t1, e.t), He(t[1], e.t, e.t2)]
}
function Ke(e, t) {
return [e[1] * t[2] - e[2] * t[1], e[2] * t[0] - e[0] * t[2], e[0] * t[1] - e[1] * t[0]]
}
function Qe(e, t, n, r) {
var i = [e[0], e[1], 1],
a = [t[0], t[1], 1],
o = [n[0], n[1], 1],
s = [r[0], r[1], 1],
l = Ke(Ke(i, a), Ke(o, s));
return Ve(l[2]) ? null : [l[0] / l[2], l[1] / l[2]]
}
function Ze(e, t, n) {
return [e[0] + Math.cos(t) * n, e[1] - Math.sin(t) * n]
}
function Xe(e, t) {
return Math.hypot(e[0] - t[0], e[1] - t[1])
}
function Je(e, t) {
return Ue(e[0], t[0]) && Ue(e[1], t[1])
}
function et() {}
function tt(e, t, n, r, i, a, o) {
var s = n - Math.PI / 2,
l = n + Math.PI / 2,
c = t[0] + Math.cos(n) * r * i,
u = t[1] - Math.sin(n) * r * i;
e.setTripleAt(c, u, c + Math.cos(s) * a, u - Math.sin(s) * a, c + Math.cos(l) * o, u - Math.sin(l) * o, e.length())
}
function nt(e, t, n, r, i, a, o) {
var s, l, c, u, d, p, h, f = (s = 0 === n ? t.length() - 1 : n - 1, l = (n + 1) % t.length(), c = t.v[s], Math.atan2(0, 1) - Math.atan2((d = [(u = t.v[l])[0] - c[0], u[1] - c[1]], h = [Math.cos(p = -.5 * Math.PI) * d[0] - Math.sin(p) * d[1], Math.sin(p) * d[0] + Math.cos(p) * d[1]])[1], h[0])),
m = t.v[n % t._length],
g = t.v[0 === n ? t._length - 1 : n - 1],
v = t.v[(n + 1) % t._length],
_ = 2 === a ? Math.sqrt(Math.pow(m[0] - g[0], 2) + Math.pow(m[1] - g[1], 2)) : 0,
y = 2 === a ? Math.sqrt(Math.pow(m[0] - v[0], 2) + Math.pow(m[1] - v[1], 2)) : 0;
tt(e, t.v[n % t._length], f, o, r, y / (2 * (i + 1)), _ / (2 * (i + 1)))
}
function rt(e, t, n) {
var r = Math.atan2(t[0] - e[0], t[1] - e[1]);
return [Ze(e, r, n), Ze(t, r, n)]
}
function it(e, t) {
n = (l = rt(e.points[0], e.points[1], t))[0], r = l[1], i = (l = rt(e.points[1], e.points[2], t))[0], a = l[1], o = (l = rt(e.points[2], e.points[3], t))[0], s = l[1];
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 qe(n, c, u, s)
}
function at(e, t, n, r, i) {
var a = t.points[3],
o = n.points[0];
if (3 === r || Je(a, o)) return a;
if (2 === r) {
var s = -t.tangentAngle(1),
l = -n.tangentAngle(0) + Math.PI,
c = Qe(a, Ze(a, s + Math.PI / 2, 100), o, Ze(o, s + Math.PI / 2, 100)),
u = c ? Xe(c, a) : Xe(a, o) / 2,
d = Ze(a, s, 2 * u * .5519);
return e.setXYAt(d[0], d[1], "o", e.length() - 1), d = Ze(o, l, 2 * u * .5519), e.setTripleAt(o[0], o[1], o[0], o[1], d[0], d[1], e.length()), o
}
var p = Qe(Je(a, t.points[2]) ? t.points[0] : t.points[2], a, o, Je(o, n.points[1]) ? n.points[3] : n.points[1]);
return p && Xe(p, a) < i ? (e.setTripleAt(p[0], p[1], p[0], p[1], p[0], p[1], e.length()), p) : a
}
function ot(e, t) {
var n = e.intersections(t);
return n.length && Ue(n[0][0], 1) && n.shift(), n.length ? n[0] : null
}
function st(e, t) {
var n = e.slice(),
r = t.slice(),
i = ot(e[e.length - 1], t[0]);
return i && (n[e.length - 1] = e[e.length - 1].split(i[0])[0], r[0] = t[0].split(i[1])[1]), e.length > 1 && t.length > 1 && (i = ot(e[0], t[t.length - 1])) ? [
[e[0].split(i[0])[0]],
[t[t.length - 1].split(i[1])[1]]
] : [n, r]
}
function lt(e, t) {
var n, r, i, a, o = e.inflectionPoints();
if (0 === o.length) return [it(e, t)];
if (1 === o.length || Ue(o[1], 1)) return n = (i = e.split(o[0]))[0], r = i[1], [it(n, t), it(r, t)];
n = (i = e.split(o[0]))[0];
var s = (o[1] - o[0]) / (1 - o[0]);
return a = (i = i[1].split(s))[0], r = i[1], [it(n, t), it(a, t), it(r, t)]
}
function ct() {}
function ut(e) {
for (var t = e.fStyle ? e.fStyle.split(" ") : [], n = "normal", r = "normal", i = t.length, a = 0; a < i; a += 1) switch (t[a].toLowerCase()) {
case "italic":
r = "italic";
break;
case "bold":
n = "700";
break;
case "black":
n = "900";
break;
case "medium":
n = "500";
break;
case "regular":
case "normal":
n = "400";
break;
case "light":
case "thin":
n = "200"
}
return {
style: r,
weight: e.fWeight || n
}
}
f([Ne], ze), ze.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 = 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 Se, this.rMatrix = new Se, this.sMatrix = new Se, this.tMatrix = new Se, this.matrix = new Se
}, ze.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),
l = r.s.v[1] + (1 - r.s.v[1]) * (1 - i);
e.translate(r.p.v[0] * o * i, r.p.v[1] * o * i, r.p.v[2]), t.translate(-r.a.v[0], -r.a.v[1], r.a.v[2]), t.rotate(-r.r.v * o * i), t.translate(r.a.v[0], r.a.v[1], r.a.v[2]), n.translate(-r.a.v[0], -r.a.v[1], r.a.v[2]), n.scale(a ? 1 / s : s, a ? 1 / l : l), n.translate(r.a.v[0], r.a.v[1], r.a.v[2])
}, ze.prototype.init = function(e, t, n, r) {
for (this.elem = e, this.arr = t, this.pos = n, this.elemsData = r, this._currentCopies = 0, this._elements = [], this._groups = [], this.frameId = -1, this.initDynamicPropertyContainer(e), this.initModifierProperties(e, t[n]); n > 0;) n -= 1, this._elements.unshift(t[n]);
this.dynamicProperties.length ? this.k = !0 : this.getValue(!0)
}, ze.prototype.resetElements = function(e) {
var t, n = e.length;
for (t = 0; t < n; t += 1) e[t]._processed = !1, "gr" === e[t].ty && this.resetElements(e[t].it)
}, ze.prototype.cloneElements = function(e) {
var t = JSON.parse(JSON.stringify(e));
return this.resetElements(t), t
}, ze.prototype.changeGroupRender = function(e, t) {
var n, r = e.length;
for (n = 0; n < r; n += 1) e[n]._render = t, "gr" === e[n].ty && this.changeGroupRender(e[n].it, t)
}, ze.prototype.processShapes = function(e) {
var t = !1;
if (this._mdf || e) {
var n, r, i, a, o, s, l, c, u = Math.ceil(this.c.v);
if (this._groups.length < u) {
for (; this._groups.length < u;) {
var d = {
it: this.cloneElements(this._elements),
ty: "gr"
};
d.it.push({
a: {
a: 0,
ix: 1,
k: [0, 0]
},
nm: "Transform",
o: {
a: 0,
ix: 7,
k: 100
},
p: {
a: 0,
ix: 2,
k: [0, 0]
},
r: {
a: 1,
ix: 6,
k: [{
s: 0,
e: 0,
t: 0
}, {
s: 0,
e: 0,
t: 1
}]
},
s: {
a: 0,
ix: 3,
k: [100, 100]
},
sa: {
a: 0,
ix: 5,
k: 0
},
sk: {
a: 0,
ix: 4,
k: 0
},
ty: "tr"
}), this.arr.splice(0, 0, d), this._groups.splice(0, 0, d), this._currentCopies += 1
}
this.elem.reloadShapes(), t = !0
}
for (i = 0, o = 0; i <= this._groups.length - 1; i += 1) {
if (s = o < u, this._groups[i]._render = s, this.changeGroupRender(this._groups[i].it, s), !s) {
var p = this.elemsData[i].it,
h = p[p.length - 1];
0 !== h.transform.op.v ? (h.transform.op._mdf = !0, h.transform.op.v = 0) : h.transform.op._mdf = !1
}
o += 1
}
this._currentCopies = u;
var f = this.o.v,
m = f % 1,
g = f > 0 ? Math.floor(f) : Math.ceil(f),
v = this.pMatrix.props,
_ = this.rMatrix.props,
y = this.sMatrix.props;
this.pMatrix.reset(), this.rMatrix.reset(), this.sMatrix.reset(), this.tMatrix.reset(), this.matrix.reset();
var b = 0;
if (f > 0) {
for (; b < g;) this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), b += 1;
m && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, m, !1), b += m)
} else if (f < 0) {
for (; b > g;) this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !0), b -= 1;
m && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -m, !0), b -= m)
}
for (i = 1 === this.data.m ? 0 : this._currentCopies - 1, a = 1 === this.data.m ? 1 : -1, o = this._currentCopies; o;) {
if (c = (r = (n = this.elemsData[i].it)[n.length - 1].transform.mProps.v.props).length, n[n.length - 1].transform.mProps._mdf = !0, n[n.length - 1].transform.op._mdf = !0, n[n.length - 1].transform.op.v = 1 === this._currentCopies ? this.so.v : this.so.v + (this.eo.v - this.so.v) * (i / (this._currentCopies - 1)), 0 !== b) {
for ((0 !== i && 1 === a || i !== this._currentCopies - 1 && -1 === a) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), this.matrix.transform(_[0], _[1], _[2], _[3], _[4], _[5], _[6], _[7], _[8], _[9], _[10], _[11], _[12], _[13], _[14], _[15]), this.matrix.transform(y[0], y[1], y[2], y[3], y[4], y[5], y[6], y[7], y[8], y[9], y[10], y[11], y[12], y[13], y[14], y[15]), this.matrix.transform(v[0], v[1], v[2], v[3], v[4], v[5], v[6], v[7], v[8], v[9], v[10], v[11], v[12], v[13], v[14], v[15]), l = 0; l < c; l += 1) r[l] = this.matrix.props[l];
this.matrix.reset()
} else
for (this.matrix.reset(), l = 0; l < c; l += 1) r[l] = this.matrix.props[l];
b += 1, o -= 1, i += a
}
} else
for (o = this._currentCopies, i = 0, a = 1; o;) r = (n = this.elemsData[i].it)[n.length - 1].transform.mProps.v.props, n[n.length - 1].transform.mProps._mdf = !1, n[n.length - 1].transform.op._mdf = !1, o -= 1, i += a;
return t
}, ze.prototype.addShape = function() {}, f([Ne], Fe), Fe.prototype.initModifierProperties = function(e, t) {
this.getValue = this.processKeys, this.rd = ve.getProp(e, t.r, 0, null, this), this._isAnimated = !!this.rd.effectsSequence.length
}, Fe.prototype.processPath = function(e, t) {
var n, r, i, a, o, s, l, c, u, d, p, h, f, m = xe.newElement();
m.c = e.c;
var g = e._length,
v = 0;
for (n = 0; n < g; n += 1) r = e.v[n], a = e.o[n], i = e.i[n], r[0] === a[0] && r[1] === a[1] && r[0] === i[0] && r[1] === i[1] ? 0 !== n && n !== g - 1 || e.c ? (o = 0 === n ? e.v[g - 1] : e.v[n - 1], l = (s = Math.sqrt(Math.pow(r[0] - o[0], 2) + Math.pow(r[1] - o[1], 2))) ? Math.min(s / 2, t) / s : 0, c = h = r[0] + (o[0] - r[0]) * l, u = f = r[1] - (r[1] - o[1]) * l, d = c - .5519 * (c - r[0]), p = u - .5519 * (u - r[1]), m.setTripleAt(c, u, d, p, h, f, v), v += 1, o = n === g - 1 ? e.v[0] : e.v[n + 1], l = (s = Math.sqrt(Math.pow(r[0] - o[0], 2) + Math.pow(r[1] - o[1], 2))) ? Math.min(s / 2, t) / s : 0, c = d = r[0] + (o[0] - r[0]) * l, u = p = r[1] + (o[1] - r[1]) * l, h = c - .5519 * (c - r[0]), f = u - .5519 * (u - r[1]), m.setTripleAt(c, u, d, p, h, f, v)) : m.setTripleAt(r[0], r[1], a[0], a[1], i[0], i[1], v) : m.setTripleAt(e.v[n][0], e.v[n][1], e.o[n][0], e.o[n][1], e.i[n][0], e.i[n][1], v), v += 1;
return m
}, Fe.prototype.processShapes = function(e) {
var t, n, r, i, a, o, s = this.shapes.length,
l = this.rd.v;
if (0 !== l)
for (n = 0; n < s; n += 1) {
if (o = (a = this.shapes[n]).localShapeCollection, a.shape._mdf || this._mdf || e)
for (o.releaseShapes(), a.shape._mdf = !0, t = a.shape.paths.shapes, i = a.shape.paths._length, r = 0; r < i; r += 1) o.addShape(this.processPath(t[r], l));
a.shape.paths = a.localShapeCollection
}
this.dynamicProperties.length || (this._mdf = !1)
}, 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]]
}, 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]]
}, qe.prototype.tangentAngle = function(e) {
var t = this.derivative(e);
return Math.atan2(t[1], t[0])
}, qe.prototype.normalAngle = function(e) {
var t = this.derivative(e);
return Math.atan2(t[0], t[1])
}, qe.prototype.inflectionPoints = function() {
var e = this.a[1] * this.b[0] - this.a[0] * this.b[1];
if (Ve(e)) return [];
var t = -.5 * (this.a[1] * this.c[0] - this.a[0] * this.c[1]) / e,
n = t * t - 1 / 3 * (this.b[1] * this.c[0] - this.b[0] * this.c[1]) / e;
if (n < 0) return [];
var r = Math.sqrt(n);
return Ve(r) ? r > 0 && r < 1 ? [t] : [] : [t - r, t + r].filter((function(e) {
return e > 0 && e < 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 = Ge(this.points[0], this.points[1], e),
n = Ge(this.points[1], this.points[2], e),
r = Ge(this.points[2], this.points[3], e),
i = Ge(t, n, e),
a = Ge(n, r, e),
o = Ge(i, a, e);
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: We(this, 0),
y: We(this, 1)
}
}, qe.prototype.boundingBox = function() {
var e = this.bounds();
return {
left: e.x.min,
right: e.x.max,
top: e.y.min,
bottom: e.y.max,
width: e.x.max - e.x.min,
height: e.y.max - e.y.min,
cx: (e.x.max + e.x.min) / 2,
cy: (e.y.max + e.y.min) / 2
}
}, 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) {
if (2 * Math.abs(t.cx - n.cx) < t.width + n.width && 2 * Math.abs(t.cy - n.cy) < t.height + n.height) {
if (r >= o || t.width <= i && t.height <= i && n.width <= i && n.height <= i) return void a.push([t.t, n.t]);
var s = Ye(t),
l = Ye(n);
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
}, qe.shapeSegment = function(e, t) {
var n = (t + 1) % e.length();
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 qe(e.v[n], e.i[n], e.o[t], e.v[t], !0)
}, f([Ne], 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) {
var i = e._length,
a = xe.newElement();
if (a.c = e.c, e.c || (i -= 1), 0 === i) return a;
var o = -1,
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) {
var s = (o + 1) / (r + 1),
l = 2 === i ? Math.sqrt(Math.pow(t.points[3][0] - t.points[0][0], 2) + Math.pow(t.points[3][1] - t.points[0][1], 2)) : 0,
c = t.normalAngle(s);
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 ? 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,
l = this.amplitude.v,
c = Math.max(0, Math.round(this.frequency.v)),
u = this.pointsType.v;
if (0 !== l)
for (n = 0; n < s; n += 1) {
if (o = (a = this.shapes[n]).localShapeCollection, a.shape._mdf || this._mdf || e)
for (o.releaseShapes(), a.shape._mdf = !0, t = a.shape.paths.shapes, i = a.shape.paths._length, r = 0; r < i; r += 1) o.addShape(this.processPath(t[r], l, c, u));
a.shape.paths = a.localShapeCollection
}
this.dynamicProperties.length || (this._mdf = !1)
}, f([Ne], ct), ct.prototype.initModifierProperties = function(e, t) {
this.getValue = this.processKeys, this.amount = ve.getProp(e, t.a, 0, null, this), this.miterLimit = ve.getProp(e, t.ml, 0, null, this), this.lineJoin = t.lj, this._isAnimated = 0 !== this.amount.effectsSequence.length
}, ct.prototype.processPath = function(e, t, n, r) {
var i, a, o, s = xe.newElement();
s.c = e.c;
var l = e.length();
e.c || (l -= 1);
var c = [];
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 = 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
}(c);
var u = null,
d = null;
for (i = 0; i < c.length; i += 1) {
var p = c[i];
for (d && (u = at(s, d, p[0], n, r)), d = p[p.length - 1], a = 0; a < p.length; a += 1) o = p[a], u && Je(o.points[0], u) ? s.setXYAt(o.points[1][0], o.points[1][1], "o", s.length() - 1) : s.setTripleAt(o.points[0][0], o.points[0][1], o.points[1][0], o.points[1][1], o.points[0][0], o.points[0][1], s.length()), s.setTripleAt(o.points[3][0], o.points[3][1], o.points[3][0], o.points[3][1], o.points[2][0], o.points[2][1], s.length()), u = o.points[3]
}
return c.length && at(s, d, c[0][0], n, r), s
}, ct.prototype.processShapes = function(e) {
var t, n, r, i, a, o, s = this.shapes.length,
l = this.amount.v,
c = this.miterLimit.v,
u = this.lineJoin;
if (0 !== l)
for (n = 0; n < s; n += 1) {
if (o = (a = this.shapes[n]).localShapeCollection, a.shape._mdf || this._mdf || e)
for (o.releaseShapes(), a.shape._mdf = !0, t = a.shape.paths.shapes, i = a.shape.paths._length, r = 0; r < i; r += 1) o.addShape(this.processPath(t[r], l, u, c));
a.shape.paths = a.localShapeCollection
}
this.dynamicProperties.length || (this._mdf = !1)
};
var dt = function() {
var e = {
w: 0,
size: 0,
shapes: [],
data: {
shapes: []
}
},
t = [];
t = t.concat([2304, 2305, 2306, 2307, 2362, 2363, 2364, 2364, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2387, 2388, 2389, 2390, 2391, 2402, 2403]);
var n = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
function r(e, t) {
var n = h("span");
n.setAttribute("aria-hidden", !0), n.style.fontFamily = t;
var r = h("span");
r.innerText = "giItT1WQy@!-/#", n.style.position = "absolute", n.style.left = "-10000px", n.style.top = "-10000px", n.style.fontSize = "300px", n.style.fontVariant = "normal", n.style.fontStyle = "normal", n.style.fontWeight = "normal", n.style.letterSpacing = "0", n.appendChild(r), document.body.appendChild(n);
var i = r.offsetWidth;
return r.style.fontFamily = function(e) {
var t, n = e.split(","),
r = n.length,
i = [];
for (t = 0; t < r; t += 1) "sans-serif" !== n[t] && "monospace" !== n[t] && i.push(n[t]);
return i.join(",")
}(e) + ", " + t, {
node: r,
w: i,
parent: n
}
}
function i(e, t) {
var n, r = document.body && t ? "svg" : "canvas",
i = ut(e);
if ("svg" === r) {
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");
o.font = i.style + " " + i.weight + " 100px " + e.fFamily, n = o
}
return {
measureText: function(e) {
return "svg" === r ? (n.textContent = e, n.getComputedTextLength()) : n.measureText(e).width
}
}
}
function a(e) {
var t = 0,
n = e.charCodeAt(0);
if (n >= 55296 && n <= 56319) {
var r = e.charCodeAt(1);
r >= 56320 && r <= 57343 && (t = 1024 * (n - 55296) + r - 56320 + 65536)
}
return t
}
function o(e) {
var t = a(e);
return t >= 127462 && t <= 127487
}
var s = function() {
this.fonts = [], this.chars = null, this.typekitLoaded = 0, this.isLoaded = !1, this._warned = !1, this.initTime = Date.now(), this.setIsLoadedBinded = this.setIsLoaded.bind(this), this.checkLoadedFontsBinded = this.checkLoadedFonts.bind(this)
};
return s.isModifier = function(e, t) {
var r = e.toString(16) + t.toString(16);
return -1 !== n.indexOf(r)
}, s.isZeroWidthJoiner = function(e) {
return 8205 === e
}, s.isFlagEmoji = function(e) {
return o(e.substr(0, 2)) && o(e.substr(2, 2))
}, s.isRegionalCode = o, s.isCombinedCharacter = function(e) {
return -1 !== t.indexOf(e)
}, s.isRegionalFlag = function(e, t) {
var n = a(e.substr(t, 2));
if (127988 !== n) return !1;
var r = 0;
for (t += 2; r < 5;) {
if ((n = a(e.substr(t, 2))) < 917601 || n > 917626) return !1;
r += 1, t += 2
}
return 917631 === a(e.substr(t, 2))
}, s.isVariationSelector = function(e) {
return 65039 === e
}, s.BLACK_FLAG_CODE_POINT = 127988, s.prototype = {
addChars: function(e) {
if (e) {
this.chars || (this.chars = []);
var t, n, r, i = e.length,
a = this.chars.length;
for (t = 0; t < i; t += 1) {
for (n = 0, r = !1; n < a;) this.chars[n].style === e[t].style && this.chars[n].fFamily === e[t].fFamily && this.chars[n].ch === e[t].ch && (r = !0), n += 1;
r || (this.chars.push(e[t]), a += 1)
}
}
},
addFonts: function(e, t) {
if (e) {
if (this.chars) return this.isLoaded = !0, void(this.fonts = e.list);
if (!document.body) return this.isLoaded = !0, e.list.forEach((function(e) {
e.helper = i(e), e.cache = {}
})), void(this.fonts = e.list);
var n = e.list,
a = n.length,
o = a;
for (s = 0; s < a; s += 1) {
var s, l, c, u = !0;
if (n[s].loaded = !1, n[s].monoCase = r(n[s].fFamily, "monospace"), n[s].sansCase = r(n[s].fFamily, "sans-serif"), n[s].fPath) {
if ("p" === n[s].fOrigin || 3 === n[s].origin) {
if ((l = document.querySelectorAll('style[f-forigin="p"][f-family="' + n[s].fFamily + '"], style[f-origin="3"][f-family="' + n[s].fFamily + '"]')).length > 0 && (u = !1), u) {
var d = h("style");
d.setAttribute("f-forigin", n[s].fOrigin), d.setAttribute("f-origin", n[s].origin), d.setAttribute("f-family", n[s].fFamily), d.type = "text/css", d.innerText = "@font-face {font-family: " + n[s].fFamily + "; font-style: normal; src: url('" + n[s].fPath + "');}", t.appendChild(d)
}
} else if ("g" === n[s].fOrigin || 1 === n[s].origin) {
for (c = 0, l = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'); c < l.length; c += 1) - 1 !== l[c].href.indexOf(n[s].fPath) && (u = !1);
if (u) {
var p = h("link");
p.setAttribute("f-forigin", n[s].fOrigin), p.setAttribute("f-origin", n[s].origin), p.type = "text/css", p.rel = "stylesheet", p.href = n[s].fPath, document.body.appendChild(p)
}
} else if ("t" === n[s].fOrigin || 2 === n[s].origin) {
for (c = 0, l = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'); c < l.length; c += 1) n[s].fPath === l[c].src && (u = !1);
if (u) {
var f = h("link");
f.setAttribute("f-forigin", n[s].fOrigin), f.setAttribute("f-origin", n[s].origin), f.setAttribute("rel", "stylesheet"), f.setAttribute("href", n[s].fPath), t.appendChild(f)
}
}
} else n[s].loaded = !0, o -= 1;
n[s].helper = i(n[s], t), n[s].cache = {}, this.fonts.push(n[s])
}
0 === o ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100)
} else this.isLoaded = !0
},
getCharData: function(t, n, r) {
for (var i = 0, a = this.chars.length; i < a;) {
if (this.chars[i].ch === t && this.chars[i].style === n && this.chars[i].fFamily === r) return this.chars[i];
i += 1
}
return ("string" == typeof t && 13 !== t.charCodeAt(0) || !t) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", t, n, r)), e
},
getFontByName: function(e) {
for (var t = 0, n = this.fonts.length; t < n;) {
if (this.fonts[t].fName === e) return this.fonts[t];
t += 1
}
return this.fonts[0]
},
measureText: function(e, t, n) {
var r = this.getFontByName(t);
if (!r.cache[e]) {
var i = r.helper;
if (" " === e) {
var a = i.measureText("|" + e + "|"),
o = i.measureText("||");
r.cache[e] = (a - o) / 100
} else r.cache[e] = i.measureText(e) / 100
}
return r.cache[e] * n
},
checkLoadedFonts: function() {
var e, t, n, r = this.fonts.length,
i = r;
for (e = 0; e < r; e += 1) this.fonts[e].loaded ? i -= 1 : "n" === this.fonts[e].fOrigin || 0 === this.fonts[e].origin ? this.fonts[e].loaded = !0 : (t = this.fonts[e].monoCase.node, n = this.fonts[e].monoCase.w, t.offsetWidth !== n ? (i -= 1, this.fonts[e].loaded = !0) : (t = this.fonts[e].sansCase.node, n = this.fonts[e].sansCase.w, t.offsetWidth !== n && (i -= 1, this.fonts[e].loaded = !0)), this.fonts[e].loaded && (this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent), this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));
0 !== i && Date.now() - this.initTime < 5e3 ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10)
},
setIsLoaded: function() {
this.isLoaded = !0
}
}, s
}();
function pt(e) {
this.animationData = e
}
function ht() {}
pt.prototype.getProp = function(e) {
return this.animationData.slots && this.animationData.slots[e.sid] ? Object.assign(e, this.animationData.slots[e.sid].p) : e
}, ht.prototype = {
initRenderable: function() {
this.isInRange = !1, this.hidden = !1, this.isTransparent = !1, this.renderableComponents = []
},
addRenderableComponent: function(e) {
-1 === this.renderableComponents.indexOf(e) && this.renderableComponents.push(e)
},
removeRenderableComponent: function(e) {
-1 !== this.renderableComponents.indexOf(e) && this.renderableComponents.splice(this.renderableComponents.indexOf(e), 1)
},
prepareRenderableFrame: function(e) {
this.checkLayerLimits(e)
},
checkTransparency: function() {
this.finalTransform.mProp.o.v <= 0 ? !this.isTransparent && this.globalData.renderConfig.hideOnTransparent && (this.isTransparent = !0, this.hide()) : this.isTransparent && (this.isTransparent = !1, this.show())
},
checkLayerLimits: function(e) {
this.data.ip - this.data.st <= e && this.data.op - this.data.st > e ? !0 !== this.isInRange && (this.globalData._mdf = !0, this._mdf = !0, this.isInRange = !0, this.show()) : !1 !== this.isInRange && (this.globalData._mdf = !0, this.isInRange = !1, this.hide())
},
renderRenderable: function() {
var e, t = this.renderableComponents.length;
for (e = 0; e < t; e += 1) this.renderableComponents[e].renderFrame(this._isFirstFrame)
},
sourceRectAtTime: function() {
return {
top: 0,
left: 0,
width: 100,
height: 100
}
},
getLayerSize: function() {
return 5 === this.data.ty ? {
w: this.data.textData.width,
h: this.data.textData.height
} : {
w: this.data.width,
h: this.data.height
}
}
};
var ft = (s = {
0: "source-over",
1: "multiply",
2: "screen",
3: "overlay",
4: "darken",
5: "lighten",
6: "color-dodge",
7: "color-burn",
8: "hard-light",
9: "soft-light",
10: "difference",
11: "exclusion",
12: "hue",
13: "saturation",
14: "color",
15: "luminosity"
}, function(e) {
return s[e] || ""
});
function mt(e, t, n) {
this.p = ve.getProp(t, e.v, 0, 0, n)
}
function gt(e, t, n) {
this.p = ve.getProp(t, e.v, 0, 0, n)
}
function vt(e, t, n) {
this.p = ve.getProp(t, e.v, 1, 0, n)
}
function _t(e, t, n) {
this.p = ve.getProp(t, e.v, 1, 0, n)
}
function yt(e, t, n) {
this.p = ve.getProp(t, e.v, 0, 0, n)
}
function bt(e, t, n) {
this.p = ve.getProp(t, e.v, 0, 0, n)
}
function xt(e, t, n) {
this.p = ve.getProp(t, e.v, 0, 0, n)
}
function wt() {
this.p = {}
}
function kt(e, t) {
var n, r, i = e.ef || [];
this.effectElements = [];
var a = i.length;
for (n = 0; n < a; n += 1) r = new Et(i[n], t), this.effectElements.push(r)
}
function Et(e, t) {
this.init(e, t)
}
function St() {}
function Ot() {}
function Pt(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)
}
function It(e, t, n) {
this.initFrame(), this.initRenderable(), this.assetData = t.getAssetData(e.refId), this.initBaseData(e, t, n), this._isPlaying = !1, this._canPlay = !1;
var r = this.globalData.getAssetsPath(this.assetData);
this.audio = this.globalData.audioController.createAudio(r), this._currentTime = 0, this.globalData.audioController.addAudio(this), this._volumeMultiplier = 1, this._volume = 1, this._previousVolume = null, this.tm = e.tm ? ve.getProp(this, e.tm, 0, t.frameRate, this) : {
_placeholder: !0
}, this.lv = ve.getProp(this, e.au && e.au.lv ? e.au.lv : {
k: [100]
}, 1, .01, this)
}
function At() {}
f([_e], Et), Et.prototype.getValue = Et.prototype.iterateDynamicProperties, Et.prototype.init = function(e, t) {
this.data = e, this.effectElements = [], this.initDynamicPropertyContainer(t);
var n, r, i = this.data.ef.length,
a = this.data.ef;
for (n = 0; n < i; n += 1) {
switch (r = null, a[n].ty) {
case 0:
r = new mt(a[n], t, this);
break;
case 1:
r = new gt(a[n], t, this);
break;
case 2:
r = new vt(a[n], t, this);
break;
case 3:
r = new _t(a[n], t, this);
break;
case 4:
case 7:
r = new xt(a[n], t, this);
break;
case 10:
r = new yt(a[n], t, this);
break;
case 11:
r = new bt(a[n], t, this);
break;
case 5:
r = new kt(a[n], t);
break;
default:
r = new wt(a[n])
}
r && this.effectElements.push(r)
}
}, St.prototype = {
checkMasks: function() {
if (!this.data.hasMask) return !1;
for (var e = 0, t = this.data.masksProperties.length; e < t;) {
if ("n" !== this.data.masksProperties[e].mode && !1 !== this.data.masksProperties[e].cl) return !0;
e += 1
}
return !1
},
initExpressions: function() {},
setBlendMode: function() {
var e = ft(this.data.bm);
(this.baseElement || this.layerElement).style["mix-blend-mode"] = e
},
initBaseData: function(e, t, n) {
this.globalData = t, this.comp = n, this.data = e, this.layerId = L(), this.data.sr || (this.data.sr = 1), this.effectsManager = new kt(this.data, this, this.dynamicProperties)
},
getType: function() {
return this.type
},
sourceRectAtTime: function() {}
}, Ot.prototype = {
initFrame: function() {
this._isFirstFrame = !1, this.dynamicProperties = [], this._mdf = !1
},
prepareProperties: function(e, t) {
var n, r = this.dynamicProperties.length;
for (n = 0; n < r; n += 1)(t || this._isParent && "transform" === this.dynamicProperties[n].propType) && (this.dynamicProperties[n].getValue(), this.dynamicProperties[n]._mdf && (this.globalData._mdf = !0, this._mdf = !0))
},
addDynamicProperty: function(e) {
-1 === this.dynamicProperties.indexOf(e) && this.dynamicProperties.push(e)
}
}, Pt.prototype.prepareFrame = function() {}, f([ht, St, Ot], Pt), Pt.prototype.getBaseElement = function() {
return null
}, Pt.prototype.renderFrame = function() {}, Pt.prototype.destroy = function() {}, Pt.prototype.initExpressions = function() {}, Pt.prototype.getFootageData = function() {
return this.footageData
}, It.prototype.prepareFrame = function(e) {
if (this.prepareRenderableFrame(e, !0), this.prepareProperties(e, !0), this.tm._placeholder) this._currentTime = e / this.data.sr;
else {
var t = this.tm.v;
this._currentTime = t
}
this._volume = this.lv.v[0];
var n = this._volume * this._volumeMultiplier;
this._previousVolume !== n && (this._previousVolume = n, this.audio.volume(n))
}, f([ht, St, Ot], It), It.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))
}, It.prototype.show = function() {}, It.prototype.hide = function() {
this.audio.pause(), this._isPlaying = !1
}, It.prototype.pause = function() {
this.audio.pause(), this._isPlaying = !1, this._canPlay = !1
}, It.prototype.resume = function() {
this._canPlay = !0
}, It.prototype.setRate = function(e) {
this.audio.rate(e)
}, It.prototype.volume = function(e) {
this._volumeMultiplier = e, this._previousVolume = e * this._volume, this.audio.volume(this._previousVolume)
}, It.prototype.getBaseElement = function() {
return null
}, It.prototype.destroy = function() {}, It.prototype.sourceRectAtTime = function() {}, It.prototype.initExpressions = function() {}, At.prototype.checkLayers = function(e) {
var t, n, r = this.layers.length;
for (this.completeLayers = !0, t = r - 1; t >= 0; t -= 1) !this.elements[t] && (n = this.layers[t]).ip - n.st <= e - this.layers[t].st && n.op - n.st > e - this.layers[t].st && this.buildItem(t), this.completeLayers = !!this.elements[t] && this.completeLayers;
this.checkPendingElements()
}, At.prototype.createItem = function(e) {
switch (e.ty) {
case 2:
return this.createImage(e);
case 0:
return this.createComp(e);
case 1:
return this.createSolid(e);
case 3:
default:
return this.createNull(e);
case 4:
return this.createShape(e);
case 5:
return this.createText(e);
case 6:
return this.createAudio(e);
case 13:
return this.createCamera(e);
case 15:
return this.createFootage(e)
}
}, At.prototype.createCamera = function() {
throw Error("You're using a 3d camera. Try the html renderer.")
}, At.prototype.createAudio = function(e) {
return new It(e, this.globalData, this)
}, At.prototype.createFootage = function(e) {
return new Pt(e, this.globalData, this)
}, At.prototype.buildAllItems = function() {
var e, t = this.layers.length;
for (e = 0; e < t; e += 1) this.buildItem(e);
this.checkPendingElements()
}, At.prototype.includeLayers = function(e) {
this.completeLayers = !1;
var t, n, r = e.length,
i = this.layers.length;
for (t = 0; t < r; t += 1)
for (n = 0; n < i;) {
if (this.layers[n].id === e[t].id) {
this.layers[n] = e[t];
break
}
n += 1
}
}, At.prototype.setProjectInterface = function(e) {
this.globalData.projectInterface = e
}, At.prototype.initItems = function() {
this.globalData.progressiveLoad || this.buildAllItems()
}, At.prototype.buildElementParenting = function(e, t, n) {
for (var r = this.elements, i = this.layers, a = 0, o = i.length; a < o;) i[a].ind == t && (r[a] && !0 !== r[a] ? (n.push(r[a]), r[a].setAsParent(), void 0 !== i[a].parent ? this.buildElementParenting(e, i[a].parent, n) : e.setHierarchy(n)) : (this.buildItem(a), this.addPendingElement(e))), a += 1
}, At.prototype.addPendingElement = function(e) {
this.pendingElements.push(e)
}, At.prototype.searchExtraCompositions = function(e) {
var t, n = e.length;
for (t = 0; t < n; t += 1)
if (e[t].xt) {
var r = this.createComp(e[t]);
r.initExpressions(), this.globalData.projectInterface.registerComposition(r)
}
}, At.prototype.getElementById = function(e) {
var t, n = this.elements.length;
for (t = 0; t < n; t += 1)
if (this.elements[t].data.ind === e) return this.elements[t];
return null
}, At.prototype.getElementByPath = function(e) {
var t = e.shift();
if ("number" == typeof t) n = this.elements[t];
else {
var n, r, i = this.elements.length;
for (r = 0; r < i; r += 1)
if (this.elements[r].data.nm === t) {
n = this.elements[r];
break
}
}
return 0 === e.length ? n : n.getElementByPath(e)
}, At.prototype.setupGlobalData = function(e, t) {
this.globalData.fontManager = new dt, this.globalData.slotManager = new pt(e), this.globalData.fontManager.addChars(e.chars), this.globalData.fontManager.addFonts(e.fonts, t), this.globalData.getAssetData = this.animationItem.getAssetData.bind(this.animationItem), this.globalData.getAssetsPath = this.animationItem.getAssetsPath.bind(this.animationItem), this.globalData.imageLoader = this.animationItem.imagePreloader, this.globalData.audioController = this.animationItem.audioController, this.globalData.frameId = 0, this.globalData.frameRate = e.fr, this.globalData.nm = e.nm, this.globalData.compSize = {
w: e.w,
h: e.h
}
};
var Ct = "transformEFfect";
function Rt() {}
function Tt(e, t, n) {
this.data = e, this.element = t, this.globalData = n, this.storedData = [], this.masksProperties = this.data.masksProperties || [], this.maskElement = null;
var r = this.globalData.defs,
i = this.masksProperties ? this.masksProperties.length : 0;
this.viewData = v(i), this.solidPath = "";
var a = this.masksProperties,
o = 0,
s = [],
l = L(),
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 = $("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: Ee.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 = L(), (_ = $("filter")).setAttribute("id", x), (y = $("feMorphology")).setAttribute("operator", "erode"), y.setAttribute("in", "SourceGraphic"), y.setAttribute("radius", "0"), _.appendChild(y), r.appendChild(_), h.setAttribute("stroke", "s" === a[d].mode ? "#000000" : "#ffffff")) : (y = null, b = null), this.storedData[d] = {
elem: h,
x: b,
expan: y,
lastPath: "",
lastOperator: "",
filterId: x,
lastRadius: 0
}, "i" === a[d].mode) {
m = s.length;
var d, h, f, m, g, _, y, b, x, w = $("g");
for (f = 0; f < m; f += 1) w.appendChild(s[f]);
var k = $("mask");
k.setAttribute("mask-type", "alpha"), k.setAttribute("id", l + "_" + o), k.appendChild(h), r.appendChild(k), w.setAttribute("mask", "url(" + p() + "#" + l + "_" + o + ")"), s.length = 0, s.push(w)
} else s.push(h);
a[d].inv && !this.solidPath && (this.solidPath = this.createLayerSolidPath()), this.viewData[d] = {
elem: h,
lastPath: "",
op: ve.getProp(this.element, a[d].o, 0, .01, this.element),
prop: Ee.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 = $(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)
}
Rt.prototype = {
initTransform: function() {
var e = new Se;
this.finalTransform = {
mProp: this.data.ks ? Me.getTransformProperty(this, this.data.ks, this) : {
o: 0
},
_matMdf: !1,
_localMatMdf: !1,
_opMdf: !1,
mat: e,
localMat: e,
localOpacity: 1
}, this.data.ao && (this.finalTransform.mProp.autoOriented = !0), this.data.ty
},
renderTransform: function() {
if (this.finalTransform._opMdf = this.finalTransform.mProp.o._mdf || this._isFirstFrame, this.finalTransform._matMdf = this.finalTransform.mProp._mdf || this._isFirstFrame, this.hierarchy) {
var e, t = this.finalTransform.mat,
n = 0,
r = this.hierarchy.length;
if (!this.finalTransform._matMdf)
for (; n < r;) {
if (this.hierarchy[n].finalTransform.mProp._mdf) {
this.finalTransform._matMdf = !0;
break
}
n += 1
}
if (this.finalTransform._matMdf)
for (e = this.finalTransform.mProp.v.props, t.cloneFromProps(e), n = 0; n < r; n += 1) t.multiply(this.hierarchy[n].finalTransform.mProp.v)
}
this.finalTransform._matMdf && (this.finalTransform._localMatMdf = this.finalTransform._matMdf), this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v)
},
renderLocalTransform: function() {
if (this.localTransforms) {
var e = 0,
t = this.localTransforms.length;
if (this.finalTransform._localMatMdf = this.finalTransform._matMdf, !this.finalTransform._localMatMdf || !this.finalTransform._opMdf)
for (; e < t;) this.localTransforms[e]._mdf && (this.finalTransform._localMatMdf = !0), this.localTransforms[e]._opMdf && !this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v, this.finalTransform._opMdf = !0), e += 1;
if (this.finalTransform._localMatMdf) {
var n = this.finalTransform.localMat;
for (this.localTransforms[0].matrix.clone(n), e = 1; e < t; e += 1) {
var r = this.localTransforms[e].matrix;
n.multiply(r)
}
n.multiply(this.finalTransform.mat)
}
if (this.finalTransform._opMdf) {
var i = this.finalTransform.localOpacity;
for (e = 0; e < t; e += 1) i *= .01 * this.localTransforms[e].opacity;
this.finalTransform.localOpacity = i
}
}
},
searchEffectTransforms: function() {
if (this.renderableEffectsManager) {
var e = this.renderableEffectsManager.getEffects(Ct);
if (e.length) {
this.localTransforms = [], this.finalTransform.localMat = new Se;
var t = 0,
n = e.length;
for (t = 0; t < n; t += 1) this.localTransforms.push(e[t])
}
}
},
globalToLocal: function(e) {
var t, n, r = [];
r.push(this.finalTransform);
for (var i = !0, a = this.comp; i;) a.finalTransform ? (a.data.hasMask && r.splice(0, 0, a.finalTransform), a = a.comp) : i = !1;
var o = r.length;
for (t = 0; t < o; t += 1) n = r[t].mat.applyToPointArray(0, 0, 0), e = [e[0] - n[0], e[1] - n[1], 0];
return e
},
mHelper: new Se
}, Tt.prototype.getMaskProperty = function(e) {
return this.viewData[e].prop
}, Tt.prototype.renderFrame = function(e) {
var t, n = this.element.finalTransform.mat,
r = this.masksProperties.length;
for (t = 0; t < r; t += 1)
if ((this.viewData[t].prop._mdf || e) && this.drawPath(this.masksProperties[t], this.viewData[t].prop.v, this.viewData[t]), (this.viewData[t].op._mdf || e) && this.viewData[t].elem.setAttribute("fill-opacity", this.viewData[t].op.v), "n" !== this.masksProperties[t].mode && (this.viewData[t].invRect && (this.element.finalTransform.mProp._mdf || e) && this.viewData[t].invRect.setAttribute("transform", n.getInverseMatrix().to2dCSS()), this.storedData[t].x && (this.storedData[t].x._mdf || e))) {
var i = this.storedData[t].expan;
this.storedData[t].x.v < 0 ? ("erode" !== this.storedData[t].lastOperator && (this.storedData[t].lastOperator = "erode", this.storedData[t].elem.setAttribute("filter", "url(" + p() + "#" + this.storedData[t].filterId + ")")), i.setAttribute("radius", -this.storedData[t].x.v)) : ("dilate" !== this.storedData[t].lastOperator && (this.storedData[t].lastOperator = "dilate", this.storedData[t].elem.setAttribute("filter", null)), this.storedData[t].elem.setAttribute("stroke-width", 2 * this.storedData[t].x.v))
}
}, Tt.prototype.getMaskelement = function() {
return this.maskElement
}, Tt.prototype.createLayerSolidPath = function() {
return "M0,0 h" + this.globalData.compSize.w + " v" + this.globalData.compSize.h + " h-" + this.globalData.compSize.w + " v-" + this.globalData.compSize.h + " "
}, Tt.prototype.drawPath = function(e, t, n) {
var r, i, a = " M" + t.v[0][0] + "," + t.v[0][1];
for (r = 1, i = t._length; r < i; r += 1) a += " C" + t.o[r - 1][0] + "," + t.o[r - 1][1] + " " + t.i[r][0] + "," + t.i[r][1] + " " + t.v[r][0] + "," + t.v[r][1];
if (t.c && i > 1 && (a += " C" + t.o[r - 1][0] + "," + t.o[r - 1][1] + " " + t.i[0][0] + "," + t.i[0][1] + " " + t.v[0][0] + "," + t.v[0][1]), n.lastPath !== a) {
var o = "";
n.elem && (t.c && (o = e.inv ? this.solidPath + a : a), n.elem.setAttribute("d", o)), n.lastPath = a
}
}, Tt.prototype.destroy = function() {
this.element = null, this.globalData = null, this.maskElement = null, this.data = null, this.masksProperties = null
};
var Dt = ((l = {}).createFilter = function(e, t) {
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 = $("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),
Nt = (c = {
maskType: !0,
svgLumaHidden: !0,
offscreenCanvas: "undefined" != typeof OffscreenCanvas
}, (/MSIE 10/i.test(navigator.userAgent) || /MSIE 9/i.test(navigator.userAgent) || /rv:11.0/i.test(navigator.userAgent) || /Edge\/\d./i.test(navigator.userAgent)) && (c.maskType = !1), /firefox/i.test(navigator.userAgent) && (c.svgLumaHidden = !1), c),
Lt = {},
jt = "filter_result_";
function Mt(e) {
var t, n, r = "SourceGraphic",
i = e.data.ef ? e.data.ef.length : 0,
a = L(),
o = Dt.createFilter(a, !0),
s = 0;
for (t = 0, this.filters = []; t < i; t += 1) {
n = null;
var l = e.data.ef[t].ty;
Lt[l] && (n = new Lt[l].effect(o, e.effectsManager.effectElements[t], e, jt + s, r), r = jt + s, Lt[l].countsAsEffect && (s += 1)), n && this.filters.push(n)
}
s && (e.globalData.defs.appendChild(o), e.layerElement.setAttribute("filter", "url(" + p() + "#" + a + ")")), this.filters.length && e.addRenderableComponent(this)
}
function zt() {}
function Ft() {}
function Ut() {}
function Vt(e, t, n) {
this.assetData = t.getAssetData(e.refId), this.assetData && this.assetData.sid && (this.assetData = t.slotManager.getProp(this.assetData)), this.initElement(e, t, n), this.sourceRect = {
top: 0,
left: 0,
width: this.assetData.w,
height: this.assetData.h
}
}
function Gt(e, t) {
this.elem = e, this.pos = t
}
function Bt() {}
Mt.prototype.renderFrame = function(e) {
var t, n = this.filters.length;
for (t = 0; t < n; t += 1) this.filters[t].renderFrame(e)
}, 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
}, zt.prototype = {
initRendererElement: function() {
this.layerElement = $("g")
},
createContainerElements: function() {
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 = $("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 = $("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 = L();
if (n.setAttribute("id", i), n.appendChild(r), this.globalData.defs.appendChild(n), this.checkMasks()) {
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 + ")")
}
0 !== this.data.bm && this.setBlendMode()
},
renderElement: function() {
this.finalTransform._localMatMdf && this.transformedElement.setAttribute("transform", this.finalTransform.localMat.to2dCSS()), this.finalTransform._opMdf && this.transformedElement.setAttribute("opacity", this.finalTransform.localOpacity)
},
destroyBaseElement: function() {
this.layerElement = null, this.matteElement = null, this.maskManager.destroy()
},
getBaseElement: function() {
return this.data.hd ? null : this.baseElement
},
createRenderableComponents: function() {
this.maskManager = new Tt(this.data, this, this.globalData), this.renderableEffectsManager = new Mt(this), this.searchEffectTransforms()
},
getMatte: function(e) {
if (this.matteMasks || (this.matteMasks = {}), !this.matteMasks[e]) {
var t, n, r, i, a = this.layerId + "_" + e;
if (1 === e || 3 === e) {
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), Nt.maskType || 1 !== e || (o.setAttribute("mask-type", "luminance"), t = L(), 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 = $("mask");
s.setAttribute("id", a), s.setAttribute("mask-type", "alpha");
var l = $("g");
s.appendChild(l), t = L(), n = Dt.createFilter(t);
var c = $("feComponentTransfer");
c.setAttribute("in", "SourceGraphic"), n.appendChild(c);
var u = $("feFuncA");
u.setAttribute("type", "table"), u.setAttribute("tableValues", "1.0 0.0"), c.appendChild(u), this.globalData.defs.appendChild(n);
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), Nt.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
}
return this.matteMasks[e]
},
setMatte: function(e) {
this.matteElement && this.matteElement.setAttribute("mask", "url(" + p() + "#" + e + ")")
}
}, Ft.prototype = {
initHierarchy: function() {
this.hierarchy = [], this._isParent = !1, this.checkParenting()
},
setHierarchy: function(e) {
this.hierarchy = e
},
setAsParent: function() {
this._isParent = !0
},
checkParenting: function() {
void 0 !== this.data.parent && this.comp.buildElementParenting(this, this.data.parent, [])
}
}, f([ht, function(e) {
function t() {}
return t.prototype = {
initElement: function(e, t, n) {
this.initFrame(), this.initBaseData(e, t, n), this.initTransform(e, t, n), this.initHierarchy(), this.initRenderable(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), this.createContent(), this.hide()
},
hide: function() {
this.hidden || this.isInRange && !this.isTransparent || ((this.baseElement || this.layerElement).style.display = "none", this.hidden = !0)
},
show: function() {
this.isInRange && !this.isTransparent && (this.data.hd || ((this.baseElement || this.layerElement).style.display = "block"), this.hidden = !1, this._isFirstFrame = !0)
},
renderFrame: function() {
this.data.hd || this.hidden || (this.renderTransform(), this.renderRenderable(), this.renderLocalTransform(), this.renderElement(), this.renderInnerContent(), this._isFirstFrame && (this._isFirstFrame = !1))
},
renderInnerContent: function() {},
prepareFrame: function(e) {
this._mdf = !1, this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange), this.checkTransparency()
},
destroy: function() {
this.innerElem = null, this.destroyBaseElement()
}
}, t
}()], Ut), f([St, Rt, zt, Ft, Ot, Ut], Vt), Vt.prototype.createContent = function() {
var e = this.globalData.getAssetsPath(this.assetData);
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)
}, Vt.prototype.sourceRectAtTime = function() {
return this.sourceRect
}, Bt.prototype = {
addShapeToModifiers: function(e) {
var t, n = this.shapeModifiers.length;
for (t = 0; t < n; t += 1) this.shapeModifiers[t].addShape(e)
},
isShapeInAnimatedModifiers: function(e) {
for (var t = this.shapeModifiers.length; 0 < t;)
if (this.shapeModifiers[0].isAnimatedWithShape(e)) return !0;
return !1
},
renderModifiers: function() {
if (this.shapeModifiers.length) {
var e, t = this.shapes.length;
for (e = 0; e < t; e += 1) this.shapes[e].sh.reset();
for (e = (t = this.shapeModifiers.length) - 1; e >= 0 && !this.shapeModifiers[e].processShapes(this._isFirstFrame); e -= 1);
}
},
searchProcessedElement: function(e) {
for (var t = this.processedElements, n = 0, r = t.length; n < r;) {
if (t[n].elem === e) return t[n].pos;
n += 1
}
return 0
},
addProcessedElement: function(e, t) {
for (var n = this.processedElements, r = n.length; r;)
if (n[r -= 1].elem === e) return void(n[r].pos = t);
n.push(new Gt(e, t))
},
prepareFrame: function(e) {
this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange)
}
};
var $t = {
1: "butt",
2: "round",
3: "square"
},
qt = {
1: "miter",
2: "round",
3: "bevel"
};
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) {
this._isAnimated = !0;
break
}
r += 1
}
}
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 = $("path"), this.msElem = null
}
function Yt(e, t, n, r) {
this.elem = e, this.frameId = -1, this.dataProps = v(t.length), this.renderer = n, this.k = !1, this.dashStr = "", this.dashArray = g("float32", t.length ? t.length - 1 : 0), this.dashoffset = g("float32", 1), this.initDynamicPropertyContainer(r);
var i, a, o = t.length || 0;
for (i = 0; i < o; i += 1) a = ve.getProp(e, t[i].v, 0, 0, this), this.k = a.k || this.k, this.dataProps[i] = {
n: t[i].n,
p: a
};
this.k || this.getValue(!0), this._isAnimated = this.k
}
function Kt(e, t, n) {
this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.o = ve.getProp(e, t.o, 0, .01, this), this.w = ve.getProp(e, t.w, 0, null, this), this.d = new Yt(e, t.d || {}, "svg", this), this.c = ve.getProp(e, t.c, 1, 255, this), this.style = n, this._isAnimated = !!this._isAnimated
}
function Qt(e, t, n) {
this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.o = ve.getProp(e, t.o, 0, .01, this), this.c = ve.getProp(e, t.c, 1, 255, this), this.style = n
}
function Zt(e, t, n) {
this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.style = n
}
function Xt(e, t, n) {
this.data = t, this.c = g("uint8c", 4 * t.p);
var r = t.k.k[0].s ? t.k.k[0].s.length - 4 * t.p : t.k.k.length - 4 * t.p;
this.o = g("float32", r), this._cmdf = !1, this._omdf = !1, this._collapsable = this.checkCollapsable(), this._hasOpacity = r, this.initDynamicPropertyContainer(n), this.prop = ve.getProp(e, t.k, 1, null, this), this.k = this.prop.k, this.getValue(!0)
}
function Jt(e, t, n) {
this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.initGradientData(e, t, n)
}
function en(e, t, n) {
this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.w = ve.getProp(e, t.w, 0, null, this), this.d = new Yt(e, t.d || {}, "svg", this), this.initGradientData(e, t, n), this._isAnimated = !!this._isAnimated
}
function tn() {
this.it = [], this.prevViewData = [], this.gr = $("g")
}
function nn(e, t, n) {
this.transform = {
mProps: e,
op: t,
container: n
}, this.elements = [], this._isAnimated = this.transform.mProps.dynamicProperties.length || this.transform.op.effectsSequence.length
}
Wt.prototype.setAsAnimated = function() {
this._isAnimated = !0
}, Ht.prototype.reset = function() {
this.d = "", this._mdf = !1
}, Yt.prototype.getValue = function(e) {
if ((this.elem.globalData.frameId !== this.frameId || e) && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf = this._mdf || e, this._mdf)) {
var t = 0,
n = this.dataProps.length;
for ("svg" === this.renderer && (this.dashStr = ""), t = 0; t < n; t += 1) "o" !== this.dataProps[t].n ? "svg" === this.renderer ? this.dashStr += " " + this.dataProps[t].p.v : this.dashArray[t] = this.dataProps[t].p.v : this.dashoffset[0] = this.dataProps[t].p.v
}
}, f([_e], Yt), f([_e], Kt), f([_e], Qt), f([_e], Zt), Xt.prototype.comparePoints = function(e, t) {
for (var n = 0, r = this.o.length / 2; n < r;) {
if (Math.abs(e[4 * n] - e[4 * t + 2 * n]) > .01) return !1;
n += 1
}
return !0
}, Xt.prototype.checkCollapsable = function() {
if (this.o.length / 2 != this.c.length / 4) return !1;
if (this.data.k.k[0].s)
for (var e = 0, t = this.data.k.k.length; e < t;) {
if (!this.comparePoints(this.data.k.k[e].s, this.data.p)) return !1;
e += 1
} else if (!this.comparePoints(this.data.k.k, this.data.p)) return !1;
return !0
}, Xt.prototype.getValue = function(e) {
if (this.prop.getValue(), this._mdf = !1, this._cmdf = !1, this._omdf = !1, this.prop._mdf || e) {
var t, n, r, i = 4 * this.data.p;
for (t = 0; t < i; t += 1) n = t % 4 == 0 ? 100 : 255, r = Math.round(this.prop.v[t] * n), this.c[t] !== r && (this.c[t] = r, this._cmdf = !e);
if (this.o.length)
for (i = this.prop.v.length, t = 4 * this.data.p; t < i; t += 1) n = t % 2 == 0 ? 100 : 1, r = t % 2 == 0 ? Math.round(100 * this.prop.v[t]) : this.prop.v[t], this.o[t - 4 * this.data.p] !== r && (this.o[t - 4 * this.data.p] = r, this._omdf = !e);
this._mdf = !e
}
}, f([_e], Xt), Jt.prototype.initGradientData = function(e, t, n) {
this.o = ve.getProp(e, t.o, 0, .01, this), this.s = ve.getProp(e, t.s, 1, null, this), this.e = ve.getProp(e, t.e, 1, null, this), this.h = ve.getProp(e, t.h || {
k: 0
}, 0, .01, this), this.a = ve.getProp(e, t.a || {
k: 0
}, 0, P, this), this.g = new Xt(e, t.g, this), this.style = n, this.stops = [], this.setGradientData(n.pElem, t), this.setGradientOpacity(t, n), this._isAnimated = !!this._isAnimated
}, Jt.prototype.setGradientData = function(e, t) {
var n, r, i, a = L(),
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 = $("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 = $("mask"),
o = $("path");
a.appendChild(o);
var s = L(),
l = L();
a.setAttribute("id", l);
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 = $("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([_e], Jt), f([Jt, _e], en);
var rn = function(e, t, n, r) {
if (0 === t) return "";
var i, a = e.o,
o = e.i,
s = e.v,
l = " M" + r.applyToPointStringified(s[0][0], s[0][1]);
for (i = 1; i < t; i += 1) l += " C" + r.applyToPointStringified(a[i - 1][0], a[i - 1][1]) + " " + r.applyToPointStringified(o[i][0], o[i][1]) + " " + r.applyToPointStringified(s[i][0], s[i][1]);
return n && t && (l += " C" + r.applyToPointStringified(a[i - 1][0], a[i - 1][1]) + " " + r.applyToPointStringified(o[0][0], o[0][1]) + " " + r.applyToPointStringified(s[0][0], s[0][1]) + "z"), l
},
an = function() {
var e = new Se,
t = new Se;
function n(e, t, n) {
(n || t.transform.op._mdf) && t.transform.container.setAttribute("opacity", t.transform.op.v), (n || t.transform.mProps._mdf) && t.transform.container.setAttribute("transform", t.transform.mProps.v.to2dCSS())
}
function r() {}
function i(n, r, i) {
var a, o, s, l, c, u, d, p, h, f, m = r.styles.length,
g = r.lvl;
for (u = 0; u < m; u += 1) {
if (l = r.sh._mdf || i, r.styles[u].lvl < g) {
for (p = t.reset(), h = g - r.styles[u].lvl, f = r.transformers.length - 1; !l && h > 0;) l = r.transformers[f].mProps._mdf || l, h -= 1, f -= 1;
if (l)
for (h = g - r.styles[u].lvl, f = r.transformers.length - 1; h > 0;) p.multiply(r.transformers[f].mProps.v), h -= 1, f -= 1
} else p = e;
if (o = (d = r.sh.paths)._length, l) {
for (a = 0, s = ""; a < o; a += 1)(c = d.shapes[a]) && c._length && (s += rn(c, c._length, c.c, p));
r.caches[u] = s
} else s = r.caches[u];
r.styles[u].d += !0 === n.hd ? "" : s, r.styles[u]._mdf = l || r.styles[u]._mdf
}
}
function a(e, t, n) {
var r = t.style;
(t.c._mdf || n) && r.pElem.setAttribute("fill", "rgb(" + E(t.c.v[0]) + "," + E(t.c.v[1]) + "," + E(t.c.v[2]) + ")"), (t.o._mdf || n) && r.pElem.setAttribute("fill-opacity", t.o.v)
}
function o(e, t, n) {
s(e, t, n), l(e, t, n)
}
function s(e, t, n) {
var r, i, a, o, s, l = t.gf,
c = t.g._hasOpacity,
u = t.s.v,
d = t.e.v;
if (t.o._mdf || n) {
var p = "gf" === e.ty ? "fill-opacity" : "stroke-opacity";
t.style.pElem.setAttribute(p, t.o.v)
}
if (t.s._mdf || n) {
var h = 1 === e.t ? "x1" : "cx",
f = "x1" === h ? "y1" : "cy";
l.setAttribute(h, u[0]), l.setAttribute(f, u[1]), c && !t.g._collapsable && (t.of.setAttribute(h, u[0]), t.of.setAttribute(f, u[1]))
}
if (t.g._cmdf || n) {
r = t.cst;
var m = t.g.c;
for (i = 0, a = r.length; i < a; i += 1)(o = r[i]).setAttribute("offset", m[4 * i] + "%"), o.setAttribute("stop-color", "rgb(" + m[4 * i + 1] + "," + m[4 * i + 2] + "," + m[4 * i + 3] + ")")
}
if (c && (t.g._omdf || n)) {
var g = t.g.o;
for (i = 0, a = (r = t.g._collapsable ? t.cst : t.ost).length; i < a; i += 1) o = r[i], t.g._collapsable || o.setAttribute("offset", g[2 * i] + "%"), o.setAttribute("stop-opacity", g[2 * i + 1])
}
if (1 === e.t)(t.e._mdf || n) && (l.setAttribute("x2", d[0]), l.setAttribute("y2", d[1]), c && !t.g._collapsable && (t.of.setAttribute("x2", d[0]), t.of.setAttribute("y2", d[1])));
else if ((t.s._mdf || t.e._mdf || n) && (s = Math.sqrt(Math.pow(u[0] - d[0], 2) + Math.pow(u[1] - d[1], 2)), l.setAttribute("r", s), c && !t.g._collapsable && t.of.setAttribute("r", s)), t.e._mdf || t.h._mdf || t.a._mdf || n) {
s || (s = Math.sqrt(Math.pow(u[0] - d[0], 2) + Math.pow(u[1] - d[1], 2)));
var v = Math.atan2(d[1] - u[1], d[0] - u[0]),
_ = t.h.v;
_ >= 1 ? _ = .99 : _ <= -1 && (_ = -.99);
var y = s * _,
b = Math.cos(v + t.a.v) * y + u[0],
x = Math.sin(v + t.a.v) * y + u[1];
l.setAttribute("fx", b), l.setAttribute("fy", x), c && !t.g._collapsable && (t.of.setAttribute("fx", b), t.of.setAttribute("fy", x))
}
}
function l(e, t, n) {
var r = t.style,
i = t.d;
i && (i._mdf || n) && i.dashStr && (r.pElem.setAttribute("stroke-dasharray", i.dashStr), r.pElem.setAttribute("stroke-dashoffset", i.dashoffset[0])), t.c && (t.c._mdf || n) && r.pElem.setAttribute("stroke", "rgb(" + E(t.c.v[0]) + "," + E(t.c.v[1]) + "," + E(t.c.v[2]) + ")"), (t.o._mdf || n) && r.pElem.setAttribute("stroke-opacity", t.o.v), (t.w._mdf || n) && (r.pElem.setAttribute("stroke-width", t.w.v), r.msElem && r.msElem.setAttribute("stroke-width", t.w.v))
}
return {
createRenderFunction: function(e) {
switch (e.ty) {
case "fl":
return a;
case "gf":
return s;
case "gs":
return o;
case "st":
return l;
case "sh":
case "el":
case "rc":
case "sr":
return i;
case "tr":
return n;
case "no":
return r;
default:
return null
}
}
}
}();
function on(e, t, n) {
this.shapes = [], this.shapesData = e.shapes, this.stylesList = [], this.shapeModifiers = [], this.itemsData = [], this.processedElements = [], this.animatedContents = [], this.initElement(e, t, n), this.prevViewData = []
}
function sn(e, t, n, r, i, a) {
this.o = e, this.sw = t, this.sc = n, this.fc = r, this.m = i, this.p = a, this._mdf = {
o: !0,
sw: !!t,
sc: !!n,
fc: !!r,
m: !0,
p: !0
}
}
function ln(e, t) {
this._frameId = -999999, this.pv = "", this.v = "", this.kf = !1, this._isFirstFrame = !0, this._mdf = !1, t.d && t.d.sid && (t.d = e.globalData.slotManager.getProp(t.d)), this.data = t, this.elem = e, this.comp = this.elem.comp, this.keysIndex = 0, this.canResize = !1, this.minimumFontSize = 1, this.effectsSequence = [], this.currentData = {
ascent: 0,
boxWidth: this.defaultBoxWidth,
f: "",
fStyle: "",
fWeight: "",
fc: "",
j: "",
justifyOffset: "",
l: [],
lh: 0,
lineWidths: [],
ls: "",
of: "",
s: "",
sc: "",
sw: 0,
t: 0,
tr: 0,
sz: 0,
ps: null,
fillColorAnim: !1,
strokeColorAnim: !1,
strokeWidthAnim: !1,
yOffset: 0,
finalSize: 0,
finalText: [],
finalLineHeight: 0,
__complete: !1
}, this.copyData(this.currentData, this.data.d.k[0].s), this.searchProperty() || this.completeTextData(this.currentData)
}
f([St, Rt, zt, Bt, Ft, Ot, Ut], on), on.prototype.initSecondaryElement = function() {}, on.prototype.identityMatrix = new Se, on.prototype.buildExpressionInterface = function() {}, on.prototype.createContent = function() {
this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], !0), this.filterUniqueShapes()
}, on.prototype.filterUniqueShapes = function() {
var e, t, n, r, i = this.shapes.length,
a = this.stylesList.length,
o = [],
s = !1;
for (n = 0; n < a; n += 1) {
for (e = 0, r = this.stylesList[n], s = !1, o.length = 0; e < i; e += 1) - 1 !== (t = this.shapes[e]).styles.indexOf(r) && (o.push(t), s = t._isAnimated || s);
o.length > 1 && s && this.setShapesAsAnimated(o)
}
}, on.prototype.setShapesAsAnimated = function(e) {
var t, n = e.length;
for (t = 0; t < n; t += 1) e[t].setAsAnimated()
}, on.prototype.createStyleElement = function(e, t) {
var n, r = new Ht(e, t),
i = r.pElem;
return "st" === e.ty ? n = new Kt(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 = 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 Wt(t, n, Ee.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;) {
if (this.animatedContents[n].element === t) return;
n += 1
}
this.animatedContents.push({
fn: an.createRenderFunction(e),
element: t,
data: e
})
}, on.prototype.setElementStyles = function(e) {
var t, n = e.styles,
r = this.stylesList.length;
for (t = 0; t < r; t += 1) this.stylesList[t].closed || n.push(this.stylesList[t])
}, on.prototype.reloadShapes = function() {
this._isFirstFrame = !0;
var e, t = this.itemsData.length;
for (e = 0; e < t; e += 1) this.prevViewData[e] = this.itemsData[e];
for (this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], !0), this.filterUniqueShapes(), t = this.dynamicProperties.length, e = 0; e < t; e += 1) this.dynamicProperties[e].getValue();
this.renderModifiers()
}, on.prototype.searchShapes = function(e, t, n, r, i, a, o) {
var s, l, c, u, d, p, h = [].concat(a),
f = e.length - 1,
m = [],
g = [];
for (s = f; s >= 0; s -= 1) {
if ((p = this.searchProcessedElement(e[s])) ? t[s] = n[p - 1] : e[s]._render = o, "fl" === e[s].ty || "st" === e[s].ty || "gf" === e[s].ty || "gs" === e[s].ty || "no" === e[s].ty) p ? t[s].style.closed = !1 : t[s] = this.createStyleElement(e[s], i), e[s]._render && t[s].style.pElem.parentNode !== r && r.appendChild(t[s].style.pElem), m.push(t[s].style);
else if ("gr" === e[s].ty) {
if (p)
for (l = 0, c = t[s].it.length; l < c; l += 1) t[s].prevViewData[l] = t[s].it[l];
else t[s] = this.createGroupElement(e[s]);
this.searchShapes(e[s].it, t[s].it, t[s].prevViewData, t[s].gr, i + 1, h, o), e[s]._render && t[s].gr.parentNode !== r && r.appendChild(t[s].gr)
} else "tr" === e[s].ty ? (p || (t[s] = this.createTransformElement(e[s], r)), u = t[s].transform, h.push(u)) : "sh" === e[s].ty || "rc" === e[s].ty || "el" === e[s].ty || "sr" === e[s].ty ? (p || (t[s] = this.createShapeElement(e[s], h, i)), this.setElementStyles(t[s])) : "tm" === e[s].ty || "rd" === e[s].ty || "ms" === e[s].ty || "pb" === e[s].ty || "zz" === e[s].ty || "op" === e[s].ty ? (p ? (d = t[s]).closed = !1 : ((d = De.getModifier(e[s].ty)).init(this, e[s]), t[s] = d, this.shapeModifiers.push(d)), g.push(d)) : "rp" === e[s].ty && (p ? (d = t[s]).closed = !0 : (d = De.getModifier(e[s].ty), t[s] = d, d.init(this, e, s, t), this.shapeModifiers.push(d), o = !1), g.push(d));
this.addProcessedElement(e[s], s + 1)
}
for (s = 0, f = m.length; s < f; s += 1) m[s].closed = !0;
for (s = 0, f = g.length; s < f; s += 1) g[s].closed = !0
}, on.prototype.renderInnerContent = function() {
this.renderModifiers();
var e, t = this.stylesList.length;
for (e = 0; e < t; e += 1) this.stylesList[e].reset();
for (this.renderShape(), e = 0; e < t; e += 1)(this.stylesList[e]._mdf || this._isFirstFrame) && (this.stylesList[e].msElem && (this.stylesList[e].msElem.setAttribute("d", this.stylesList[e].d), this.stylesList[e].d = "M0 0" + this.stylesList[e].d), this.stylesList[e].pElem.setAttribute("d", this.stylesList[e].d || "M0 0"))
}, on.prototype.renderShape = function() {
var e, t, n = this.animatedContents.length;
for (e = 0; e < n; e += 1) t = this.animatedContents[e], (this._isFirstFrame || t.element._isAnimated) && !0 !== t.data && t.fn(t.data, t.element, this._isFirstFrame)
}, on.prototype.destroy = function() {
this.destroyBaseElement(), this.shapesData = null, this.itemsData = null
}, sn.prototype.update = function(e, t, n, r, i, a) {
this._mdf.o = !1, this._mdf.sw = !1, this._mdf.sc = !1, this._mdf.fc = !1, this._mdf.m = !1, this._mdf.p = !1;
var o = !1;
return this.o !== e && (this.o = e, this._mdf.o = !0, o = !0), this.sw !== t && (this.sw = t, this._mdf.sw = !0, o = !0), this.sc !== n && (this.sc = n, this._mdf.sc = !0, o = !0), this.fc !== r && (this.fc = r, this._mdf.fc = !0, o = !0), this.m !== i && (this.m = i, this._mdf.m = !0, o = !0), a.length && (this.p[0] !== a[0] || this.p[1] !== a[1] || this.p[4] !== a[4] || this.p[5] !== a[5] || this.p[12] !== a[12] || this.p[13] !== a[13]) && (this.p = a, this._mdf.p = !0, o = !0), o
}, ln.prototype.defaultBoxWidth = [0, 0], ln.prototype.copyData = function(e, t) {
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
return e
}, ln.prototype.setCurrentData = function(e) {
e.__complete || this.completeTextData(e), this.currentData = e, this.currentData.boxWidth = this.currentData.boxWidth || this.defaultBoxWidth, this._mdf = !0
}, ln.prototype.searchProperty = function() {
return this.searchKeyframes()
}, ln.prototype.searchKeyframes = function() {
return this.kf = this.data.d.k.length > 1, this.kf && this.addEffect(this.getKeyframeValue.bind(this)), this.kf
}, ln.prototype.addEffect = function(e) {
this.effectsSequence.push(e), this.elem.addDynamicProperty(this)
}, ln.prototype.getValue = function(e) {
if (this.elem.globalData.frameId !== this.frameId && this.effectsSequence.length || e) {
this.currentData.t = this.data.d.k[this.keysIndex].s.t;
var t, n = this.currentData,
r = this.keysIndex;
if (this.lock) return void this.setCurrentData(this.currentData);
this.lock = !0, this._mdf = !1;
var i = this.effectsSequence.length,
a = e || this.data.d.k[this.keysIndex].s;
for (t = 0; t < i; t += 1) a = r !== this.keysIndex ? this.effectsSequence[t](a, a.t) : this.effectsSequence[t](this.currentData, a.t);
n !== a && this.setCurrentData(a), this.v = this.currentData, this.pv = this.v, this.lock = !1, this.frameId = this.elem.globalData.frameId
}
}, ln.prototype.getKeyframeValue = function() {
for (var e = this.data.d.k, t = this.elem.comp.renderedFrame, n = 0, r = e.length; n <= r - 1 && n !== r - 1 && !(e[n + 1].t > t);) n += 1;
return this.keysIndex !== n && (this.keysIndex = n), this.data.d.k[this.keysIndex].s
}, ln.prototype.buildFinalText = function(e) {
for (var t, n, r = [], i = 0, a = e.length, o = !1, s = !1, l = ""; i < a;) o = s, s = !1, t = e.charCodeAt(i), l = e.charAt(i), dt.isCombinedCharacter(t) ? o = !0 : t >= 55296 && t <= 56319 ? dt.isRegionalFlag(e, i) ? l = e.substr(i, 14) : (n = e.charCodeAt(i + 1)) >= 56320 && n <= 57343 && (dt.isModifier(t, n) ? (l = e.substr(i, 2), o = !0) : l = dt.isFlagEmoji(e.substr(i, 4)) ? e.substr(i, 4) : e.substr(i, 2)) : t > 56319 ? (n = e.charCodeAt(i + 1), dt.isVariationSelector(t) && (o = !0)) : dt.isZeroWidthJoiner(t) && (o = !0, s = !0), o ? (r[r.length - 1] += l, o = !1) : r.push(l), i += l.length;
return r
}, ln.prototype.completeTextData = function(e) {
e.__complete = !0;
var t = this.elem.globalData.fontManager,
n = this.data,
r = [],
i = 0,
a = n.m.g,
o = 0,
s = 0,
l = 0,
c = [],
u = 0,
d = 0,
p = t.getFontByName(e.f),
h = 0,
f = ut(p);
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, w, k, E, S, O = !0, P = e.sz[0], I = e.sz[1]; O;) {
E = 0, u = 0, v = (S = this.buildFinalText(e.t)).length, m = e.tr / 1e3 * e.finalSize;
var A = -1;
for (g = 0; g < v; g += 1) k = S[g].charCodeAt(0), _ = !1, " " === S[g] ? A = g : (13 === k || 3 === k) && (u = 0, _ = !0, E += e.finalLineHeight || 1.2 * e.finalSize), t.chars ? (w = t.getCharData(S[g], p.fStyle, p.fFamily), h = _ ? 0 : w.w * e.finalSize / 100) : h = t.measureText(S[g], e.f, e.finalSize), u + h > P && " " !== S[g] ? (-1 === A ? v += 1 : g = A, E += e.finalLineHeight || 1.2 * e.finalSize, S.splice(g, A === g ? 1 : 0, "\r"), A = -1, u = 0) : u += h + m;
E += p.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && I < E ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = S, v = e.finalText.length, O = !1)
}
u = -m, h = 0;
var C = 0;
for (g = 0; g < v; g += 1)
if (_ = !1, 13 === (k = (D = e.finalText[g]).charCodeAt(0)) || 3 === k ? (C = 0, c.push(u), d = u > d ? u : d, u = -2 * m, y = "", _ = !0, l += 1) : y = D, t.chars ? (w = t.getCharData(D, p.fStyle, t.getFontByName(e.f).fFamily), h = _ ? 0 : w.w * e.finalSize / 100) : h = t.measureText(y, e.f, e.finalSize), " " === D ? C += h + m : (u += h + m + C, C = 0), r.push({
l: h,
an: h,
add: o,
n: _,
anIndexes: [],
val: y,
line: l,
animatorJustifyOffset: 0
}), 2 == a) {
if (o += h, "" === y || " " === y || g === v - 1) {
for (("" === y || " " === y) && (o -= h); s <= g;) r[s].an = o, r[s].ind = i, r[s].extra = h, s += 1;
i += 1, o = 0
}
} else if (3 == a) {
if (o += h, "" === y || g === v - 1) {
for ("" === y && (o -= h); s <= g;) r[s].an = o, r[s].ind = i, r[s].extra = h, s += 1;
o = 0, i += 1
}
} else r[i].ind = i, r[i].extra = 0, i += 1;
if (e.l = r, d = u > d ? u : d, c.push(u), e.sz) e.boxWidth = e.sz[0], e.justifyOffset = 0;
else switch (e.boxWidth = d, e.j) {
case 1:
e.justifyOffset = -e.boxWidth;
break;
case 2:
e.justifyOffset = -e.boxWidth / 2;
break;
default:
e.justifyOffset = 0
}
e.lineWidths = c;
var R = n.a;
x = R.length;
var T = [];
for (b = 0; b < x; b += 1) {
for ((N = R[b]).a.sc && (e.strokeColorAnim = !0), N.a.sw && (e.strokeWidthAnim = !0), (N.a.fc || N.a.fh || N.a.fs || N.a.fb) && (e.fillColorAnim = !0), M = 0, j = N.s.b, g = 0; g < v; g += 1)(L = r[g]).anIndexes[b] = M, (1 == j && "" !== L.val || 2 == j && "" !== L.val && " " !== L.val || 3 == j && (L.n || " " == L.val || g == v - 1) || 4 == j && (L.n || g == v - 1)) && (1 === N.s.rn && T.push(M), M += 1);
n.a[b].s.totalChars = M;
var D, N, L, j, M, z, F = -1;
if (1 === N.s.rn)
for (g = 0; g < v; g += 1) F != (L = r[g]).anIndexes[b] && (F = L.anIndexes[b], z = T.splice(Math.floor(Math.random() * T.length), 1)[0]), L.anIndexes[b] = z
}
e.yOffset = e.finalLineHeight || 1.2 * e.finalSize, e.ls = e.ls || 0, e.ascent = p.ascent * e.finalSize / 100
}, ln.prototype.updateDocumentData = function(e, t) {
t = void 0 === t ? this.keysIndex : t;
var n = this.copyData({}, this.data.d.k[t].s);
n = this.copyData(n, e), this.data.d.k[t].s = n, this.recalculate(t), this.setCurrentData(n), this.elem.addDynamicProperty(this)
}, ln.prototype.recalculate = function(e) {
var t = this.data.d.k[e].s;
t.__complete = !1, this.keysIndex = 0, this._isFirstFrame = !0, this.getValue(t)
}, ln.prototype.canResizeFont = function(e) {
this.canResize = e, this.recalculate(this.keysIndex), this.elem.addDynamicProperty(this)
}, ln.prototype.setMinimumFontSize = function(e) {
this.minimumFontSize = Math.floor(e) || 1, this.recalculate(this.keysIndex), this.elem.addDynamicProperty(this)
};
var cn = function() {
var e = Math.max,
t = Math.min,
n = Math.floor;
function r(e, t) {
this._currentTextLength = -1, this.k = !1, this.data = t, this.elem = e, this.comp = e.comp, this.finalS = 0, this.finalE = 0, this.initDynamicPropertyContainer(e), this.s = ve.getProp(e, t.s || {
k: 0
}, 0, 0, this), this.e = "e" in t ? ve.getProp(e, t.e, 0, 0, this) : {
v: 100
}, this.o = ve.getProp(e, t.o || {
k: 0
}, 0, 0, this), this.xe = ve.getProp(e, t.xe || {
k: 0
}, 0, 0, this), this.ne = ve.getProp(e, t.ne || {
k: 0
}, 0, 0, this), this.sm = ve.getProp(e, t.sm || {
k: 100
}, 0, 0, this), this.a = ve.getProp(e, t.a, 0, .01, this), this.dynamicProperties.length || this.getValue()
}
return r.prototype = {
getMult: function(r) {
this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
var i = 0,
a = 0,
o = 1,
s = 1;
this.ne.v > 0 ? i = this.ne.v / 100 : a = -this.ne.v / 100, this.xe.v > 0 ? o = 1 - this.xe.v / 100 : s = 1 + this.xe.v / 100;
var l = ee.getBezierEasing(i, a, o, s).get,
c = 0,
u = this.finalS,
d = this.finalE,
p = this.data.sh;
if (2 === p) c = l(c = d === u ? r >= d ? 1 : 0 : e(0, t(.5 / (d - u) + (r - u) / (d - u), 1)));
else if (3 === p) c = l(c = d === u ? r >= d ? 0 : 1 : 1 - e(0, t(.5 / (d - u) + (r - u) / (d - u), 1)));
else if (4 === p) d === u ? c = 0 : (c = e(0, t(.5 / (d - u) + (r - u) / (d - u), 1))) < .5 ? c *= 2 : c = 1 - 2 * (c - .5), c = l(c);
else if (5 === p) {
if (d === u) c = 0;
else {
var h = d - u,
f = -h / 2 + (r = t(e(0, r + .5 - u), d - u)),
m = h / 2;
c = Math.sqrt(1 - f * f / (m * m))
}
c = l(c)
} else 6 === p ? c = l(c = d === u ? 0 : (1 + Math.cos(Math.PI + 2 * Math.PI * (r = t(e(0, r + .5 - u), d - u)) / (d - u))) / 2) : (r >= n(u) && (c = e(0, t(r - u < 0 ? t(d, 1) - (u - r) : d - r, 1))), c = l(c));
if (100 !== this.sm.v) {
var g = .01 * this.sm.v;
0 === g && (g = 1e-8);
var v = .5 - .5 * g;
c < v ? c = 0 : (c = (c - v) / g) > 1 && (c = 1)
}
return c * this.a.v
},
getValue: function(e) {
this.iterateDynamicProperties(), this._mdf = e || this._mdf, this._currentTextLength = this.elem.textProperty.currentData.l.length || 0, e && 2 === this.data.r && (this.e.v = this._currentTextLength);
var t = 2 === this.data.r ? 1 : 100 / this.data.totalChars,
n = this.o.v / t,
r = this.s.v / t + n,
i = this.e.v / t + n;
if (r > i) {
var a = r;
r = i, i = a
}
this.finalS = r, this.finalE = i
}
}, f([_e], r), {
getTextSelectorProp: function(e, t, n) {
return new r(e, t)
}
}
}();
function un(e, t, n) {
var r = {
propType: !1
},
i = ve.getProp,
a = t.a;
this.a = {
r: a.r ? i(e, a.r, 0, P, n) : r,
rx: a.rx ? i(e, a.rx, 0, P, n) : r,
ry: a.ry ? i(e, a.ry, 0, P, n) : r,
sk: a.sk ? i(e, a.sk, 0, P, n) : r,
sa: a.sa ? i(e, a.sa, 0, P, 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,
p: a.p ? i(e, a.p, 1, 0, n) : r,
sw: a.sw ? i(e, a.sw, 0, 0, n) : r,
sc: a.sc ? i(e, a.sc, 1, 0, n) : r,
fc: a.fc ? i(e, a.fc, 1, 0, n) : r,
fh: a.fh ? i(e, a.fh, 0, 0, n) : r,
fs: a.fs ? i(e, a.fs, 0, .01, n) : r,
fb: a.fb ? i(e, a.fb, 0, .01, n) : r,
t: a.t ? i(e, a.t, 0, 0, n) : r
}, this.s = cn.getTextSelectorProp(e, t.s, n), this.s.t = t.s.t
}
function dn(e, t, n) {
this._isFirstFrame = !0, this._hasMaskedPath = !1, this._frameId = -1, this._textData = e, this._renderType = t, this._elem = n, this._animatorsData = v(this._textData.a.length), this._pathData = {}, this._moreOptions = {
alignment: {}
}, this.renderedLetters = [], this.lettersChangedFlag = !1, this.initDynamicPropertyContainer(n)
}
function pn() {}
dn.prototype.searchProperties = function() {
var e, t, n = this._textData.a.length,
r = ve.getProp;
for (e = 0; e < n; e += 1) t = this._textData.a[e], this._animatorsData[e] = new un(this._elem, t, this);
this._textData.p && "m" in this._textData.p ? (this._pathData = {
a: r(this._elem, this._textData.p.a, 0, 0, this),
f: r(this._elem, this._textData.p.f, 0, 0, this),
l: r(this._elem, this._textData.p.l, 0, 0, this),
r: r(this._elem, this._textData.p.r, 0, 0, this),
p: r(this._elem, this._textData.p.p, 0, 0, this),
m: this._elem.maskManager.getMaskProperty(this._textData.p.m)
}, this._hasMaskedPath = !0) : this._hasMaskedPath = !1, this._moreOptions.alignment = r(this._elem, this._textData.m.a, 1, 0, this)
}, dn.prototype.getMeasures = function(e, t) {
if (this.lettersChangedFlag = t, this._mdf || this._isFirstFrame || t || this._hasMaskedPath && this._pathData.m._mdf) {
this._isFirstFrame = !1;
var n, r, i, a, o, s, l, c, u, d, p, h, f, m, g, v, _, y = this._moreOptions.alignment.v,
b = this._animatorsData,
x = this._textData,
w = this.mHelper,
k = this._renderType,
E = this.renderedLetters.length,
S = e.l;
if (this._hasMaskedPath) {
if (W = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
var O, P, I, A, C, R, T, D, N, L, j, M, V, G, B, $, q, W, H, Y = W.v;
for (this._pathData.r.v && (Y = Y.reverse()), C = {
tLength: 0,
segments: []
}, A = Y._length - 1, $ = 0, I = 0; I < A; I += 1) H = ae.buildBezierData(Y.v[I], Y.v[I + 1], [Y.o[I][0] - Y.v[I][0], Y.o[I][1] - Y.v[I][1]], [Y.i[I + 1][0] - Y.v[I + 1][0], Y.i[I + 1][1] - Y.v[I + 1][1]]), C.tLength += H.segmentLength, C.segments.push(H), $ += H.segmentLength;
I = A, W.v.c && (H = ae.buildBezierData(Y.v[I], Y.v[0], [Y.o[I][0] - Y.v[I][0], Y.o[I][1] - Y.v[I][1]], [Y.i[0][0] - Y.v[0][0], Y.i[0][1] - Y.v[0][1]]), C.tLength += H.segmentLength, C.segments.push(H), $ += H.segmentLength), this._pathData.pi = C
}
if (C = this._pathData.pi, R = this._pathData.f.v, j = 0, L = 1, D = 0, N = !0, G = C.segments, R < 0 && W.v.c)
for (C.tLength < Math.abs(R) && (R = -Math.abs(R) % C.tLength), L = (V = G[j = G.length - 1].points).length - 1; R < 0;) R += V[L].partialLength, (L -= 1) < 0 && (L = (V = G[j -= 1].points).length - 1);
M = (V = G[j].points)[L - 1], B = (T = V[L]).partialLength
}
A = S.length, O = 0, P = 0;
var K = 1.2 * e.finalSize * .714,
Q = !0;
i = b.length;
var Z = -1,
X = R,
J = j,
ee = L,
te = -1,
ne = "",
re = this.defaultPropsArray;
if (2 === e.j || 1 === e.j) {
var ie = 0,
oe = 0,
se = 2 === e.j ? -.5 : -1,
le = 0,
ce = !0;
for (I = 0; I < A; I += 1)
if (S[I].n) {
for (ie && (ie += oe); le < I;) S[le].animatorJustifyOffset = ie, le += 1;
ie = 0, ce = !0
} else {
for (r = 0; r < i; r += 1)(n = b[r].a).t.propType && (ce && 2 === e.j && (oe += n.t.v * se), (o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars)).length ? ie += n.t.v * o[0] * se : ie += n.t.v * o * se);
ce = !1
} for (ie && (ie += oe); le < I;) S[le].animatorJustifyOffset = ie, le += 1
}
for (I = 0; I < A; I += 1) {
if (w.reset(), u = 1, S[I].n) O = 0, P += e.yOffset + (Q ? 1 : 0), R = X, Q = !1, this._hasMaskedPath && (L = ee, M = (V = G[j = J].points)[L - 1], B = (T = V[L]).partialLength, D = 0), ne = "", v = "", m = "", _ = "", re = this.defaultPropsArray;
else {
if (this._hasMaskedPath) {
if (te !== S[I].line) {
switch (e.j) {
case 1:
R += $ - e.lineWidths[S[I].line];
break;
case 2:
R += ($ - e.lineWidths[S[I].line]) / 2
}
te = S[I].line
}
Z !== S[I].ind && (S[Z] && (R += S[Z].extra), R += S[I].an / 2, Z = S[I].ind), R += y[0] * S[I].an * .005;
var ue = 0;
for (r = 0; r < i; r += 1)(n = b[r].a).p.propType && ((o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars)).length ? ue += n.p.v[0] * o[0] : ue += n.p.v[0] * o), n.a.propType && ((o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars)).length ? ue += n.a.v[0] * o[0] : ue += n.a.v[0] * o);
for (N = !0, this._pathData.a.v && (R = .5 * S[0].an + ($ - this._pathData.f.v - .5 * S[0].an - .5 * S[S.length - 1].an) * Z / (A - 1) + this._pathData.f.v); N;) D + B >= R + ue || !V ? (q = (R + ue - D) / T.partialLength, l = M.point[0] + (T.point[0] - M.point[0]) * q, c = M.point[1] + (T.point[1] - M.point[1]) * q, w.translate(-y[0] * S[I].an * .005, -y[1] * K * .01), N = !1) : V && (D += T.partialLength, (L += 1) >= V.length && (L = 0, G[j += 1] ? V = G[j].points : W.v.c ? (L = 0, V = G[j = 0].points) : (D -= T.partialLength, V = null)), V && (M = T, B = (T = V[L]).partialLength));
s = S[I].an / 2 - S[I].add, w.translate(-s, 0, 0)
} else s = S[I].an / 2 - S[I].add, w.translate(-s, 0, 0), w.translate(-y[0] * S[I].an * .005, -y[1] * K * .01, 0);
for (r = 0; r < i; r += 1)(n = b[r].a).t.propType && (o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars), (0 !== O || 0 !== e.j) && (this._hasMaskedPath ? o.length ? R += n.t.v * o[0] : R += 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(S[I].anIndexes[r], x.a[r].s.totalChars)).length ? w.translate(-n.a.v[0] * o[0], -n.a.v[1] * o[1], n.a.v[2] * o[2]) : w.translate(-n.a.v[0] * o, -n.a.v[1] * o, n.a.v[2] * o));
for (r = 0; r < i; r += 1)(n = b[r].a).s.propType && ((o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars)).length ? w.scale(1 + (n.s.v[0] - 1) * o[0], 1 + (n.s.v[1] - 1) * o[1], 1) : w.scale(1 + (n.s.v[0] - 1) * o, 1 + (n.s.v[1] - 1) * o, 1));
for (r = 0; r < i; r += 1) {
if (n = b[r].a, o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars), n.sk.propType && (o.length ? w.skewFromAxis(-n.sk.v * o[0], n.sa.v * o[1]) : w.skewFromAxis(-n.sk.v * o, n.sa.v * o)), n.r.propType && (o.length ? w.rotateZ(-n.r.v * o[2]) : w.rotateZ(-n.r.v * o)), n.ry.propType && (o.length ? w.rotateY(n.ry.v * o[1]) : w.rotateY(n.ry.v * o)), n.rx.propType && (o.length ? w.rotateX(n.rx.v * o[0]) : w.rotateX(n.rx.v * o)), n.o.propType && (o.length ? u += (n.o.v * o[0] - u) * o[0] : u += (n.o.v * o - u) * o), e.strokeWidthAnim && n.sw.propType && (o.length ? p += n.sw.v * o[0] : p += n.sw.v * o), e.strokeColorAnim && n.sc.propType)
for (f = 0; f < 3; f += 1) o.length ? d[f] += (n.sc.v[f] - d[f]) * o[0] : d[f] += (n.sc.v[f] - d[f]) * o;
if (e.fillColorAnim && e.fc) {
if (n.fc.propType)
for (f = 0; f < 3; f += 1) o.length ? h[f] += (n.fc.v[f] - h[f]) * o[0] : h[f] += (n.fc.v[f] - h[f]) * o;
n.fh.propType && (h = o.length ? U(h, n.fh.v * o[0]) : U(h, n.fh.v * o)), n.fs.propType && (h = o.length ? z(h, n.fs.v * o[0]) : z(h, n.fs.v * o)), n.fb.propType && (h = o.length ? F(h, n.fb.v * o[0]) : F(h, n.fb.v * o))
}
}
for (r = 0; r < i; r += 1)(n = b[r].a).p.propType && (o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars), this._hasMaskedPath ? o.length ? w.translate(0, n.p.v[1] * o[0], -n.p.v[2] * o[1]) : w.translate(0, n.p.v[1] * o, -n.p.v[2] * o) : o.length ? w.translate(n.p.v[0] * o[0], n.p.v[1] * o[1], -n.p.v[2] * o[2]) : w.translate(n.p.v[0] * o, n.p.v[1] * o, -n.p.v[2] * o));
if (e.strokeWidthAnim && (m = p < 0 ? 0 : p), e.strokeColorAnim && (g = "rgb(" + Math.round(255 * d[0]) + "," + Math.round(255 * d[1]) + "," + Math.round(255 * d[2]) + ")"), e.fillColorAnim && e.fc && (v = "rgb(" + Math.round(255 * h[0]) + "," + Math.round(255 * h[1]) + "," + Math.round(255 * h[2]) + ")"), this._hasMaskedPath) {
if (w.translate(0, -e.ls), w.translate(0, y[1] * K * .01 + P, 0), this._pathData.p.v) {
var de = 180 * Math.atan((T.point[1] - M.point[1]) / (T.point[0] - M.point[0])) / Math.PI;
T.point[0] < M.point[0] && (de += 180), w.rotate(-de * Math.PI / 180)
}
w.translate(l, c, 0), R -= y[0] * S[I].an * .005, S[I + 1] && Z !== S[I + 1].ind && (R += S[I].an / 2 + .001 * e.tr * e.finalSize)
} else {
switch (w.translate(O, P, 0), e.ps && w.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) {
case 1:
w.translate(S[I].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[S[I].line]), 0, 0);
break;
case 2:
w.translate(S[I].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[S[I].line]) / 2, 0, 0)
}
w.translate(0, -e.ls), w.translate(s, 0, 0), w.translate(y[0] * S[I].an * .005, y[1] * K * .01, 0), O += S[I].l + .001 * e.tr * e.finalSize
}
"html" === k ? ne = w.toCSS() : "svg" === k ? ne = w.to2dCSS() : re = [w.props[0], w.props[1], w.props[2], w.props[3], w.props[4], w.props[5], w.props[6], w.props[7], w.props[8], w.props[9], w.props[10], w.props[11], w.props[12], w.props[13], w.props[14], w.props[15]], _ = u
}
E <= I ? (a = new sn(_, m, g, v, ne, re), this.renderedLetters.push(a), E += 1, this.lettersChangedFlag = !0) : (a = this.renderedLetters[I], this.lettersChangedFlag = a.update(_, m, g, v, ne, re) || this.lettersChangedFlag)
}
}
}, dn.prototype.getValue = function() {
this._elem.globalData.frameId !== this._frameId && (this._frameId = this._elem.globalData.frameId, this.iterateDynamicProperties())
}, dn.prototype.mHelper = new Se, dn.prototype.defaultPropsArray = [], f([_e], dn), pn.prototype.initElement = function(e, t, n) {
this.lettersChangedFlag = !0, this.initFrame(), this.initBaseData(e, t, n), this.textProperty = new ln(this, e.t, this.dynamicProperties), this.textAnimator = new dn(e.t, this.renderType, this), this.initTransform(e, t, n), this.initHierarchy(), this.initRenderable(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), this.createContent(), this.hide(), this.textAnimator.searchProperties(this.dynamicProperties)
}, pn.prototype.prepareFrame = function(e) {
this._mdf = !1, this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange)
}, pn.prototype.createPathShape = function(e, t) {
var n, r, i = t.length,
a = "";
for (n = 0; n < i; n += 1) "sh" === t[n].ty && (a += rn(r = t[n].ks.k, r.i.length, !0, e));
return a
}, pn.prototype.updateDocumentData = function(e, t) {
this.textProperty.updateDocumentData(e, t)
}, pn.prototype.canResizeFont = function(e) {
this.textProperty.canResizeFont(e)
}, pn.prototype.setMinimumFontSize = function(e) {
this.textProperty.setMinimumFontSize(e)
}, pn.prototype.applyTextPropertiesToMatrix = function(e, t, n, r, i) {
switch (e.ps && t.translate(e.ps[0], e.ps[1] + e.ascent, 0), t.translate(0, -e.ls, 0), e.j) {
case 1:
t.translate(e.justifyOffset + (e.boxWidth - e.lineWidths[n]), 0, 0);
break;
case 2:
t.translate(e.justifyOffset + (e.boxWidth - e.lineWidths[n]) / 2, 0, 0)
}
t.translate(r, i, 0)
}, pn.prototype.buildColor = function(e) {
return "rgb(" + Math.round(255 * e[0]) + "," + Math.round(255 * e[1]) + "," + Math.round(255 * e[2]) + ")"
}, pn.prototype.emptyProp = new sn, pn.prototype.destroy = function() {}, pn.prototype.validateText = function() {
(this.textProperty._mdf || this.textProperty._isFirstFrame) && (this.buildNewText(), this.textProperty._isFirstFrame = !1, this.textProperty._mdf = !1)
};
var hn = {
shapes: []
};
function fn(e, t, n) {
this.textSpans = [], this.renderType = "svg", this.initElement(e, t, n)
}
function mn(e, t, n) {
this.initElement(e, t, n)
}
function gn(e, t, n) {
this.initFrame(), this.initBaseData(e, t, n), this.initFrame(), this.initTransform(e, t, n), this.initHierarchy()
}
function vn() {}
function _n() {}
function yn(e, t, n) {
this.layers = e.layers, this.supports3d = !0, this.completeLayers = !1, this.pendingElements = [], this.elements = this.layers ? v(this.layers.length) : [], this.initElement(e, t, n), this.tm = e.tm ? ve.getProp(this, e.tm, 0, t.frameRate, this) : {
_placeholder: !0
}
}
function bn(e, t) {
this.animationItem = e, this.layers = null, this.renderedFrame = -1, this.svgElement = $("svg");
var n = "";
if (t && t.title) {
var r = $("title"),
i = L();
r.setAttribute("id", i), r.textContent = t.title, this.svgElement.appendChild(r), n += i
}
if (t && t.description) {
var a = $("desc"),
o = L();
a.setAttribute("id", o), a.textContent = t.description, this.svgElement.appendChild(a), n += " " + o
}
n && this.svgElement.setAttribute("aria-labelledby", n);
var s = $("defs");
this.svgElement.appendChild(s);
var l = $("g");
this.svgElement.appendChild(l), this.layerElement = l, this.renderConfig = {
preserveAspectRatio: t && t.preserveAspectRatio || "xMidYMid meet",
imagePreserveAspectRatio: t && t.imagePreserveAspectRatio || "xMidYMid slice",
contentVisibility: t && t.contentVisibility || "visible",
progressiveLoad: t && t.progressiveLoad || !1,
hideOnTransparent: !(t && !1 === t.hideOnTransparent),
viewBoxOnly: t && t.viewBoxOnly || !1,
viewBoxSize: t && t.viewBoxSize || !1,
className: t && t.className || "",
id: t && t.id || "",
focusable: t && t.focusable,
filterSize: {
width: t && t.filterSize && t.filterSize.width || "100%",
height: t && t.filterSize && t.filterSize.height || "100%",
x: t && t.filterSize && t.filterSize.x || "0%",
y: t && t.filterSize && t.filterSize.y || "0%"
},
width: t && t.width,
height: t && t.height,
runExpressions: !t || void 0 === t.runExpressions || t.runExpressions
}, this.globalData = {
_mdf: !1,
frameNum: -1,
defs: s,
renderConfig: this.renderConfig
}, this.elements = [], this.pendingElements = [], this.destroyed = !1, this.rendererType = "svg"
}
return f([St, Rt, zt, Ft, Ot, Ut, 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
}, fn.prototype.buildShapeData = function(e, t) {
if (e.shapes && e.shapes.length) {
var n = e.shapes[0];
if (n.it) {
var r = n.it[n.it.length - 1];
r.s && (r.s.k[0] = t, r.s.k[1] = t)
}
}
return e
}, fn.prototype.buildNewText = function() {
this.addDynamicProperty(this);
var e = this.textProperty.currentData;
this.renderedLetters = v(e ? e.l.length : 0), e.fc ? this.layerElement.setAttribute("fill", this.buildColor(e.fc)) : this.layerElement.setAttribute("fill", "rgba(0,0,0,0)"), e.sc && (this.layerElement.setAttribute("stroke", this.buildColor(e.sc)), this.layerElement.setAttribute("stroke-width", e.sw)), this.layerElement.setAttribute("font-size", e.finalSize);
var t = this.globalData.fontManager.getFontByName(e.f);
if (t.fClass) this.layerElement.setAttribute("class", t.fClass);
else {
this.layerElement.setAttribute("font-family", t.fFamily);
var n = e.fWeight,
r = e.fStyle;
this.layerElement.setAttribute("font-style", r), this.layerElement.setAttribute("font-weight", n)
}
this.layerElement.setAttribute("aria-label", e.t);
var i = e.l || [],
a = !!this.globalData.fontManager.chars;
m = i.length;
var o = this.mHelper,
s = this.data.singleShape,
l = 0,
c = 0,
u = !0,
d = .001 * e.tr * e.finalSize;
if (!s || a || e.sz) {
var p = this.textSpans.length;
for (f = 0; f < m; f += 1) {
if (this.textSpans[f] || (this.textSpans[f] = {
span: null,
childSpan: null,
glyph: null
}), !a || !s || 0 === 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 = $("g");
g.appendChild(h), this.textSpans[f].childSpan = h
}
this.textSpans[f].span = g, this.layerElement.appendChild(g)
}
g.style.display = "inherit"
}
if (o.reset(), s && (i[f].n && (l = -d, c += e.yOffset + (u ? 1 : 0), u = !1), this.applyTextPropertiesToMatrix(e, o, i[f].line, l, c), l += (i[f].l || 0) + d), a) {
if (1 === (_ = this.globalData.fontManager.getCharData(e.finalText[f], t.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily)).t) y = new yn(_.data, this.globalData, this);
else {
var f, m, g, _, y, b = hn;
_.data && _.data.shapes && (b = this.buildShapeData(_.data, e.finalSize)), y = new on(b, this.globalData, this)
}
if (this.textSpans[f].glyph) {
var x = this.textSpans[f].glyph;
this.textSpans[f].childSpan.removeChild(x.layerElement), x.destroy()
}
this.textSpans[f].glyph = y, y._debug = !0, y.prepareFrame(0), y.renderFrame(), this.textSpans[f].childSpan.appendChild(y.layerElement), 1 === _.t && this.textSpans[f].childSpan.setAttribute("transform", "scale(" + e.finalSize / 100 + "," + e.finalSize / 100 + ")")
} else s && g.setAttribute("transform", "translate(" + o.props[12] + "," + o.props[13] + ")"), g.textContent = i[f].val, g.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve")
}
s && g && g.setAttribute("d", "")
} else {
var w = this.textContainer,
k = "start";
switch (e.j) {
case 1:
k = "end";
break;
case 2:
k = "middle";
break;
default:
k = "start"
}
w.setAttribute("text-anchor", k), w.setAttribute("letter-spacing", d);
var E = this.buildTextContents(e.finalText);
for (f = 0, m = E.length, c = e.ps ? e.ps[1] + e.ascent : 0; f < m; f += 1)(g = this.textSpans[f].span || $("tspan")).textContent = E[f], g.setAttribute("x", 0), g.setAttribute("y", c), g.style.display = "inherit", w.appendChild(g), this.textSpans[f] || (this.textSpans[f] = {
span: null,
glyph: null
}), this.textSpans[f].span = g, c += e.finalLineHeight;
this.layerElement.appendChild(w)
}
for (; f < this.textSpans.length;) this.textSpans[f].span.style.display = "none", f += 1;
this._sizeChanged = !0
}, fn.prototype.sourceRectAtTime = function() {
if (this.prepareFrame(this.comp.renderedFrame - this.data.st), this.renderInnerContent(), this._sizeChanged) {
this._sizeChanged = !1;
var e = this.layerElement.getBBox();
this.bbox = {
top: e.y,
left: e.x,
width: e.width,
height: e.height
}
}
return this.bbox
}, fn.prototype.getValue = function() {
var e, t, n = this.textSpans.length;
for (e = 0, this.renderedFrame = this.comp.renderedFrame; e < n; e += 1)(t = this.textSpans[e].glyph) && (t.prepareFrame(this.comp.renderedFrame - this.data.st), t._mdf && (this._mdf = !0))
}, fn.prototype.renderInnerContent = function() {
if (this.validateText(), (!this.data.singleShape || this._mdf) && (this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag), this.lettersChangedFlag || this.textAnimator.lettersChangedFlag)) {
this._sizeChanged = !0;
var e, t, n, r, i, a = this.textAnimator.renderedLetters,
o = this.textProperty.currentData.l;
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([Vt], mn), mn.prototype.createContent = function() {
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([St, Rt, Ft, Ot], gn), f([At], vn), vn.prototype.createNull = function(e) {
return new gn(e, this.globalData, this)
}, vn.prototype.createShape = function(e) {
return new on(e, this.globalData, this)
}, vn.prototype.createText = function(e) {
return new fn(e, this.globalData, this)
}, vn.prototype.createImage = function(e) {
return new Vt(e, this.globalData, this)
}, vn.prototype.createSolid = function(e) {
return new mn(e, this.globalData, this)
}, vn.prototype.configAnimation = function(e) {
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 = $("clipPath"),
r = $("rect");
r.setAttribute("width", e.w), r.setAttribute("height", e.h), r.setAttribute("x", 0), r.setAttribute("y", 0);
var i = L();
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)
}, vn.prototype.destroy = function() {
this.animationItem.wrapper && (this.animationItem.wrapper.innerText = ""), this.layerElement = null, this.globalData.defs = null;
var e, t = this.layers ? this.layers.length : 0;
for (e = 0; e < t; e += 1) this.elements[e] && this.elements[e].destroy && this.elements[e].destroy();
this.elements.length = 0, this.destroyed = !0, this.animationItem = null
}, vn.prototype.updateContainerSize = function() {}, vn.prototype.findIndexByInd = function(e) {
var t = 0,
n = this.layers.length;
for (t = 0; t < n; t += 1)
if (this.layers[t].ind === e) return t;
return -1
}, vn.prototype.buildItem = function(e) {
var t = this.elements;
if (!t[e] && 99 !== this.layers[e].ty) {
t[e] = !0;
var n = this.createItem(this.layers[e]);
if (t[e] = n, V() && (0 === this.layers[e].ty && this.globalData.projectInterface.registerComposition(n), n.initExpressions()), this.appendElementInPos(n, e), this.layers[e].tt) {
var r = "tp" in this.layers[e] ? this.findIndexByInd(this.layers[e].tp) : e - 1;
if (-1 === r) return;
if (this.elements[r] && !0 !== this.elements[r]) {
var i = t[r].getMatte(this.layers[e].tt);
n.setMatte(i)
} else this.buildItem(r), this.addPendingElement(n)
}
}
}, vn.prototype.checkPendingElements = function() {
for (; this.pendingElements.length;) {
var e = this.pendingElements.pop();
if (e.checkParenting(), e.data.tt)
for (var t = 0, n = this.elements.length; t < n;) {
if (this.elements[t] === e) {
var r = "tp" in e.data ? this.findIndexByInd(e.data.tp) : t - 1,
i = this.elements[r].getMatte(this.layers[t].tt);
e.setMatte(i);
break
}
t += 1
}
}
}, vn.prototype.renderFrame = function(e) {
if (this.renderedFrame !== e && !this.destroyed) {
null === e ? e = this.renderedFrame : this.renderedFrame = e, this.globalData.frameNum = e, this.globalData.frameId += 1, this.globalData.projectInterface.currentFrame = e, this.globalData._mdf = !1;
var t, n = this.layers.length;
for (this.completeLayers || this.checkLayers(e), t = n - 1; t >= 0; t -= 1)(this.completeLayers || this.elements[t]) && this.elements[t].prepareFrame(e - this.layers[t].st);
if (this.globalData._mdf)
for (t = 0; t < n; t += 1)(this.completeLayers || this.elements[t]) && this.elements[t].renderFrame()
}
}, vn.prototype.appendElementInPos = function(e, t) {
var n, r = e.getBaseElement();
if (r) {
for (var i = 0; i < t;) this.elements[i] && !0 !== this.elements[i] && this.elements[i].getBaseElement() && (n = this.elements[i].getBaseElement()), i += 1;
n ? this.layerElement.insertBefore(r, n) : this.layerElement.appendChild(r)
}
}, vn.prototype.hide = function() {
this.layerElement.style.display = "none"
}, vn.prototype.show = function() {
this.layerElement.style.display = "block"
}, f([St, Rt, Ft, Ot, Ut], _n), _n.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()
}, _n.prototype.prepareFrame = function(e) {
if (this._mdf = !1, this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange), this.isInRange || this.data.xt) {
if (this.tm._placeholder) this.renderedFrame = e / this.data.sr;
else {
var t, n = this.tm.v;
n === this.data.op && (n = this.data.op - 1), this.renderedFrame = n
}
var r = this.elements.length;
for (this.completeLayers || this.checkLayers(this.renderedFrame), t = r - 1; t >= 0; t -= 1)(this.completeLayers || this.elements[t]) && (this.elements[t].prepareFrame(this.renderedFrame - this.layers[t].st), this.elements[t]._mdf && (this._mdf = !0))
}
}, _n.prototype.renderInnerContent = function() {
var e, t = this.layers.length;
for (e = 0; e < t; e += 1)(this.completeLayers || this.elements[e]) && this.elements[e].renderFrame()
}, _n.prototype.setElements = function(e) {
this.elements = e
}, _n.prototype.getElements = function() {
return this.elements
}, _n.prototype.destroyElements = function() {
var e, t = this.layers.length;
for (e = 0; e < t; e += 1) this.elements[e] && this.elements[e].destroy()
}, _n.prototype.destroy = function() {
this.destroyElements(), this.destroyBaseElement()
}, f([vn, _n, zt], yn), yn.prototype.createComp = function(e) {
return new yn(e, this.globalData, this)
}, f([vn], bn), bn.prototype.createComp = function(e) {
return new yn(e, this.globalData, this)
}, Q.svg = bn, De.registerModifier("tm", Le), De.registerModifier("pb", je), De.registerModifier("rp", ze), De.registerModifier("rd", Fe), De.registerModifier("zz", et), De.registerModifier("op", ct), Pe
}());
var il = (fs = rl.exports) && fs.__esModule && Object.prototype.hasOwnProperty.call(fs, "default") ? fs.default : fs;
let al = (0, Pe.createContext)(null),
ol = ({
children: e,
...t
}) => {
let n = (({
direction: e,
reduceMotion: t
}) => ((0, Pe.useEffect)((() => {
e ? document.documentElement.setAttribute("dir", e) : document.documentElement.removeAttribute("dir"), t ? (document.documentElement.style.setProperty("--sol-prefers-reduced-motion", t.unessentialAnimationsDisabled ? "reduce" : "no-preference"), document.documentElement.style.setProperty("--sol-motion-anim-wipe-duration", t.wipeAnimationsDisabled ? "0" : "var(--sol-motion-1500)")) : document.documentElement.style.removeProperty("--sol-prefers-reduced-motion")
}), [e, t]), (0, Pe.useMemo)((() => ({
direction: e,
reduceMotion: t
})), [e, t])))(t);
return (0, Pe.createElement)(al.Provider, {
value: n
}, e)
},
sl = () => (0, Pe.useContext)(al) ?? {},
ll = "loading",
cl = "loaded",
ul = "error",
dl = (e, {
bounce: t,
fallback: n,
loop: r = !0,
isPlaying: i = !0,
waitForCompletion: a = !0,
forcePlay: o = !1,
onError: s,
onLoad: l,
onLoop: c,
onStart: u,
onPause: d,
onStop: p
} = {}, h) => {
let f = (0, Pe.useRef)(),
m = (0, Pe.useRef)(null),
g = (0, Pe.useRef)(!1),
v = sl().reduceMotion?.unessentialAnimationsDisabled,
[_, y] = (0, Pe.useState)(ll),
b = !e || v && !o || _ === ul;
(0, Pe.useEffect)((() => {
if (!m.current || !e || v && !o && n) return;
f.current = il.loadAnimation({
..."string" == typeof e ? {
path: e
} : {
animationData: e
},
container: m.current,
autoplay: !1,
loop: !1,
rendererSettings: {
focusable: !1,
viewBoxOnly: !0
}
});
let i = () => {
y(ul), s && s()
},
a = () => {
y(cl), l && l()
},
u = () => {
if (g.current) return f.current?.stop(), g.current = !1, void(p && p());
t && (1 === f.current?.playDirection ? (f.current?.setDirection(-1), f.current?.play()) : f.current?.setDirection(1)), r && 1 === f.current?.playDirection && (f.current?.stop(), f.current?.play(), c && c())
};
return f.current?.addEventListener("DOMLoaded", a), f.current?.addEventListener("data_failed", i), f.current?.addEventListener("complete", u), () => {
f.current?.removeEventListener("DOMLoaded", a), f.current?.removeEventListener("data_failed", i), f.current?.removeEventListener("complete", u), f.current?.destroy(), f.current = void 0
}
}), [t, n, r, s, l, c, p, v, e]);
let x = (0, Pe.useCallback)((() => {
f.current?.play(), g.current = !1, u && u()
}), [u]),
w = (0, Pe.useCallback)((() => {
f.current?.pause(), d && d()
}), [d]),
k = (0, Pe.useCallback)((() => {
f.current && a ? g.current = !0 : (f.current?.stop(), p && p())
}), [p, a]);
(0, Pe.useEffect)((() => _ === cl && i ? x() : k()), [i, v, x, _, k]);
let E = (0, Pe.useCallback)((({
children: e,
...t
}) => (0, Pe.createElement)("span", {
children: b ? n ?? e : null,
ref: b ? void 0 : m,
...t
})), [n, b]);
return (0, Pe.useMemo)((() => Object.assign(E, {
Animation: E,
animation: f,
ref: m,
start: x,
pause: w,
stop: k
})), [E, w, x, k])
},
pl = (...e) => (0, Pe.useMemo)((() => Gs(...e)), e),
hl = ({
ref: e,
onScroll: t
} = {}) => {
let [n, r] = (0, Pe.useState)({
blockStart: !0,
blockEnd: !1,
inlineStart: !0,
inlineEnd: !1,
once: {
blockStart: !1,
blockEnd: !1,
inlineStart: !1,
inlineEnd: !1
}
}), i = (0, Pe.useRef)(null), a = e || i, o = (0, Pe.useCallback)((() => {
let e = a.current;
if (!e) return;
let n = Math.round(Math.abs(e.scrollTop)),
i = Math.round(e.scrollHeight - e.clientHeight),
o = Math.round(Math.abs(e.scrollLeft)),
s = Math.round(e.scrollWidth - e.clientWidth),
l = n <= 0,
c = n >= i,
u = o <= 0,
d = o >= s;
r((e => ({
blockStart: l,
blockEnd: c,
inlineStart: u,
inlineEnd: d,
once: {
blockStart: e.once.blockStart || l,
blockEnd: e.once.blockEnd || c,
inlineStart: e.once.inlineStart || u,
inlineEnd: e.once.inlineEnd || d
}
}))), t?.({
blockStart: l,
blockEnd: c,
inlineStart: u,
inlineEnd: d
})
}), [t, a]);
return Hs({
ref: a,
onResize: o
}), (0, Pe.useEffect)((() => {
let e = a.current;
if (e) return e.addEventListener("scroll", o, {
passive: !0
}), () => e.removeEventListener("scroll", o, !1)
}), [o, a]), (0, Pe.useMemo)((() => ({
ref: a,
...n
})), [a, n])
},
fl = (0, Pe.createContext)(null),
ml = ({
children: e,
...t
}) => {
let n = (e => {
let {
name: t
} = e, n = (0, Pe.useMemo)((() => ({
"data-sol-theme": t
})), [t]), r = (0, Pe.useCallback)((e => Bs(e, n)), [n]);
return (0, Pe.useMemo)((() => ({
...e,
props: n,
getProps: r
})), [e, n, r])
})(t);
return (0, Pe.createElement)(fl.Provider, {
value: n
}, "function" == typeof e ? e(n) : e)
},
gl = () => (0, Pe.useContext)(fl) ?? {},
vl = (0, Pe.forwardRef)((({
children: e,
disabled: t,
external: n,
href: r,
onClick: i,
...a
}, o) => {
let s = (0, Pe.useContext)(tl) ?? "a";
return t ? _s.jsx("a", {
"aria-disabled": "true",
ref: o,
role: "link",
...a,
children: e
}) : _s.jsx(s, {
href: r,
onClick: i,
ref: o,
rel: n ? "noopener noreferrer" : void 0,
target: n ? "_blank" : void 0,
...a,
children: e
})
})),
_l = (0, Pe.forwardRef)((({
decorative: e,
disabled: t,
disableFocus: n,
loading: r,
...i
}, a) => {
let o = !!r,
s = t ?? o;
if ((e => "href" in e)(i)) return _s.jsx(vl, {
"aria-busy": !!o || void 0,
disabled: s,
ref: a,
tabIndex: n ? -1 : void 0,
...i
});
let {
onClick: l,
...c
} = i;
return _s.jsx(e ? "span" : "button", {
"aria-busy": !!o || void 0,
"aria-disabled": !!s || void 0,
onClick: s ? void 0 : l,
ref: a,
tabIndex: n || s ? -1 : void 0,
type: e ? void 0 : "button",
...c
})
}));
ss("@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 yl = (0, Pe.forwardRef)((({
isPlaying: e,
source: t,
...n
}, r) => {
let {
ref: i
} = dl(t, {
isPlaying: e
});
return _s.jsx("span", {
ref: Gs(i, r),
...n
})
})),
bl = (0, Pe.forwardRef)((({
className: e,
color: t,
size: n,
source: r,
style: i,
isPlaying: a = !0,
...o
}, s) => {
let l = {
"aria-hidden": !0,
className: Us("sol-c-icon", t && `sol-u-color-${t}`, e),
ref: s,
style: {
...n && {
"--sol-c-icon-size": `var(--sol-size-${n})`
},
...i
},
...o
};
return (0, Pe.isValidElement)(r) ? (0, Pe.cloneElement)(r, l) : "function" == typeof r ? _s.jsx(r, {
...l
}) : _s.jsx(yl, {
isPlaying: a,
source: r,
...l,
ref: s
})
}));
ss("@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 xl = Vs((({
align: e,
as: t,
children: n,
className: r,
color: i,
decoration: a,
italic: o,
style: s,
multiline: l,
offset: c,
transform: u,
truncate: d,
variant: p = "body-m",
visuallyHidden: h,
...f
}, m) => {
let g = (0, Pe.useMemo)((() => t || (h && !l ? "span" : l ? "div" : "p")), [t, l, h]),
v = Us("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),
_ = {
...d && "number" == typeof d && d > 1 && {
"--sol-u-text-truncate": d
},
...s
};
return (0, Pe.createElement)(g, {
className: v,
ref: m,
style: _,
...f
}, n)
})),
wl = "center",
kl = "default",
El = "medium",
Sl = "default",
Ol = (0, Pe.forwardRef)((({
align: e = wl,
children: t,
className: n,
color: r = kl,
controlled: i,
disableOffset: a,
endIcon: o,
fullWidth: s,
loading: l,
loadingIcon: c = Rs,
loadingIconAnimation: u = !0,
onMouseEnter: d,
onMouseLeave: p,
selected: h,
size: f = El,
icon: m,
iconAnimation: g = !0,
uppercase: v,
variant: _ = Sl,
...y
}, b) => {
let [x, w] = (0, Pe.useState)(!1), k = (0, Pe.useCallback)((e => {
w(!0), d?.(e)
}), [d]), E = (0, Pe.useCallback)((e => {
w(!1), p?.(e)
}), [p]), S = "string" == typeof l, O = l && c ? c : m, P = (0, Pe.useMemo)((() => {
if (l) switch (u) {
case "hover":
return x;
case "not-hover":
return !x;
default:
return u
}
switch (g) {
case "hover":
return x;
case "not-hover":
return !x;
default:
return g
}
}), [g, x, l, u]), I = (0, Pe.useMemo)((() => {
switch (f) {
case "large":
case "medium":
return "button-m";
case "small":
return "button-s"
}
}), [f]), A = Us("sol-c-button", e && e !== wl && `sol-c-button--align-${e}`, r && r !== kl && `sol-c-button--${r}`, i && "sol-c-button--controlled", s && "sol-c-button--full-width", f && f !== El && `sol-c-button--${f}`, _ && _ !== Sl && `sol-c-button--${_}`, n);
return _s.jsxs(_l, {
"aria-pressed": h,
className: A,
loading: !!l,
onMouseEnter: k,
onMouseLeave: E,
ref: b,
...y,
children: [O && _s.jsx(bl, {
className: "sol-c-button__icon sol-c-button__icon--start",
isPlaying: P,
source: O
}), S && _s.jsx("span", {
className: "sol-u-hide-visually",
role: "status",
children: l
}), t && _s.jsx(xl, {
"aria-hidden": S,
as: "span",
className: "sol-c-button__content",
offset: !a,
transform: v || "default" === _ ? "uppercase" : void 0,
variant: I,
children: t
}), o && _s.jsx(bl, {
className: "sol-c-button__icon sol-c-button__icon--end",
source: o
})]
})
})),
Pl = e => "object" == typeof e && null != e && 1 === e.nodeType,
Il = (e, t) => (!t || "hidden" !== e) && "visible" !== e && "clip" !== e,
Al = (e, t) => {
if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
let n = getComputedStyle(e, null);
return Il(n.overflowY, t) || Il(n.overflowX, t) || (e => {
let t = (e => {
if (!e.ownerDocument || !e.ownerDocument.defaultView) return null;
try {
return e.ownerDocument.defaultView.frameElement
} catch (e) {
return null
}
})(e);
return !!t && (t.clientHeight < e.scrollHeight || t.clientWidth < e.scrollWidth)
})(e)
}
return !1
},
Cl = (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,
Rl = e => {
let t = e.parentElement;
return null == t ? e.getRootNode().host || null : t
},
Tl = (e, t) => {
var n, r, i, a;
if ("undefined" == typeof document) return [];
let {
scrollMode: o,
block: s,
inline: l,
boundary: c,
skipOverflowHiddenElements: u
} = t, d = "function" == typeof c ? c : e => e !== c;
if (!Pl(e)) throw TypeError("Invalid target");
let p = document.scrollingElement || document.documentElement,
h = [],
f = e;
for (; Pl(f) && d(f);) {
if ((f = Rl(f)) === p) {
h.push(f);
break
}
null != f && f === document.body && Al(f) && !Al(document.documentElement) || null != f && Al(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,
{
scrollX: v,
scrollY: _
} = window,
{
height: y,
width: b,
top: x,
right: w,
bottom: k,
left: E
} = e.getBoundingClientRect(),
{
top: S,
right: O,
bottom: P,
left: I
} = (e => {
let t = window.getComputedStyle(e);
return {
top: parseFloat(t.scrollMarginTop) || 0,
right: parseFloat(t.scrollMarginRight) || 0,
bottom: parseFloat(t.scrollMarginBottom) || 0,
left: parseFloat(t.scrollMarginLeft) || 0
}
})(e),
A = "start" === s || "nearest" === s ? x - S : "end" === s ? k + P : x + y / 2 - S + P,
C = "center" === l ? E + b / 2 - I + O : "end" === l ? w + O : E - I,
R = [];
for (let T = 0; T < h.length; T++) {
let e = h[T],
{
height: t,
width: n,
top: r,
right: i,
bottom: a,
left: c
} = e.getBoundingClientRect();
if ("if-needed" === o && x >= 0 && E >= 0 && k <= g && w <= m && x >= r && k <= a && E >= c && w <= i) break;
let u = getComputedStyle(e),
d = parseInt(u.borderLeftWidth, 10),
f = parseInt(u.borderTopWidth, 10),
S = parseInt(u.borderRightWidth, 10),
O = parseInt(u.borderBottomWidth, 10),
P = 0,
I = 0,
D = "offsetWidth" in e ? e.offsetWidth - e.clientWidth - d - S : 0,
N = "offsetHeight" in e ? e.offsetHeight - e.clientHeight - f - O : 0,
L = "offsetWidth" in e ? 0 === e.offsetWidth ? 0 : n / e.offsetWidth : 0,
j = "offsetHeight" in e ? 0 === e.offsetHeight ? 0 : t / e.offsetHeight : 0;
if (p === e) P = "start" === s ? A : "end" === s ? A - g : "nearest" === s ? Cl(_, _ + g, g, f, O, _ + A, _ + A + y, y) : A - g / 2, I = "start" === l ? C : "center" === l ? C - m / 2 : "end" === l ? C - m : Cl(v, v + m, m, d, S, v + C, v + C + b, b), P = Math.max(0, P + _), I = Math.max(0, I + v);
else {
P = "start" === s ? A - r - f : "end" === s ? A - a + O + N : "nearest" === s ? Cl(r, a, t, f, O + N, A, A + y, y) : A - (r + t / 2) + N / 2, I = "start" === l ? C - c - d : "center" === l ? C - (c + n / 2) + D / 2 : "end" === l ? C - i + S + D : Cl(c, i, n, d, S + D, C, C + b, b);
let {
scrollLeft: o,
scrollTop: u
} = e;
P = 0 === j ? 0 : Math.max(0, Math.min(u + P / j, e.scrollHeight - t / j + N)), I = 0 === L ? 0 : Math.max(0, Math.min(o + I / L, e.scrollWidth - n / L + D)), A += u - P, C += o - I
}
R.push({
el: e,
top: P,
left: I
})
}
return R
},
Dl = (0, Pe.forwardRef)((({
children: e,
className: t,
id: n,
keepMounted: r,
open: i,
onOpenChange: a,
prefix: o,
scrollIntoView: s,
suffix: l,
title: c,
...u
}, d) => {
let p = (0, Pe.useRef)(null),
h = (0, Pe.useRef)(null),
f = (0, Pe.useId)(),
m = n ?? f,
{
getIsOpen: g,
register: v,
toggle: _,
unregister: y
} = (() => {
let e = (0, Pe.useContext)(ys);
if (!e) throw Error("Accordion components must be wrapped in <Accordion />");
return e
})(),
b = g(m),
[x, w] = (0, Pe.useState)(!!i);
(0, Pe.useLayoutEffect)((() => (v(m, i), () => y(m))), [m, i, v, y]), (0, Pe.useEffect)((() => {
b && (w(!0), s && p.current && function(e, t) {
if (!e.isConnected || !(e => {
let t = e;
for (; t && t.parentNode;) {
if (t.parentNode === document) return !0;
t = t.parentNode instanceof ShadowRoot ? t.parentNode.host : t.parentNode
}
return !1
})(e)) return;
let n = (e => {
let t = window.getComputedStyle(e);
return {
top: parseFloat(t.scrollMarginTop) || 0,
right: parseFloat(t.scrollMarginRight) || 0,
bottom: parseFloat(t.scrollMarginBottom) || 0,
left: parseFloat(t.scrollMarginLeft) || 0
}
})(e);
if ("object" == typeof t && "function" == typeof t.behavior) return t.behavior(Tl(e, t));
let r = "boolean" == typeof t || null == t ? void 0 : t.behavior;
for (let {
el: i,
top: a,
left: o
}
of Tl(e, (e => !1 === e ? {
block: "end",
inline: "nearest"
} : e === Object(e) && 0 !== Object.keys(e).length ? e : {
block: "start",
inline: "nearest"
})(t))) {
let e = a - n.top + n.bottom,
t = o - n.left + n.right;
i.scroll({
top: e,
left: t,
behavior: r
})
}
}(p.current, {
block: "start",
scrollMode: "if-needed"
})), a?.(b)
}), [b, a, s]);
let k = (0, Pe.useCallback)((() => _(m)), [m, _]),
E = (0, Pe.useCallback)((() => {
_(m, !1), h.current?.focus()
}), [m, _]),
S = (0, Pe.useCallback)((() => {
b || w(!1)
}), [b]),
O = pl(p, d),
P = Us("sol-c-accordion__item", b && "sol-c-accordion__item--open", t);
return _s.jsxs("div", {
className: P,
id: m,
ref: O,
...u,
children: [_s.jsxs("button", {
"aria-controls": m + "-content",
"aria-expanded": b,
className: "sol-c-accordion__header",
id: m + "-header",
onClick: k,
type: "button",
ref: h,
children: ["function" == typeof o ? o({
isOpen: b
}) : o, _s.jsx(xl, {
as: "span",
className: "sol-c-accordion__title",
offset: !0,
variant: "emphasis-m",
children: "function" == typeof c ? c({
isOpen: b
}) : c
}), "function" == typeof l ? l({
isOpen: b
}) : l, _s.jsx(bs, {
className: "sol-c-accordion__icon sol-c-accordion__icon--plus"
}), _s.jsx(Ts, {
className: "sol-c-accordion__icon sol-c-accordion__icon--minus"
})]
}), _s.jsx("div", {
"aria-labelledby": m + "-header",
className: "sol-c-accordion__content",
hidden: !b,
id: m + "-content",
role: "region",
onTransitionEnd: S,
children: (r || x) && _s.jsx("div", {
className: "sol-c-accordion__wrapper",
children: "function" == typeof e ? e({
close: E,
isOpen: x
}) : e
})
})]
})
})),
Nl = (0, Pe.forwardRef)((({
className: e,
closeAll: t,
children: n,
openAll: r,
...i
}, a) => {
let o = (() => {
let [e, t] = (0, Pe.useState)({}), n = (0, Pe.useCallback)(((e, n) => t((t => ({
...t,
[e]: n ?? !1
})))), []), r = (0, Pe.useCallback)((e => t((({
[e]: t,
...n
}) => n))), []), i = (0, Pe.useCallback)((t => !!e[t]), [e]), a = (0, Pe.useCallback)(((e, n) => t((t => ({
...t,
[e]: n ?? !t[e]
})))), []), o = (0, Pe.useCallback)((t => Object.entries(e).forEach((([e, n]) => a(e, t ?? !n)))), [e, a]);
return (0, Pe.useMemo)((() => ({
register: n,
unregister: r,
getIsOpen: i,
toggle: a,
size: Object.keys(e).length,
allOpen: Object.values(e).every((e => e)),
allClosed: Object.values(e).every((e => !e)),
closeAll: () => o(!1),
openAll: () => o(!0)
})), [i, e, n, a, o, r])
})(),
s = Us("sol-c-accordion", e);
return _s.jsx(ys.Provider, {
value: o,
children: _s.jsxs("div", {
className: s,
ref: a,
...i,
children: [o.size > 2 && _s.jsxs("div", {
className: "sol-c-accordion__actions",
children: [r && _s.jsx(Ol, {
className: "sol-c-accordion__action",
disabled: o.allOpen,
onClick: o.openAll,
size: "small",
variant: "plain",
children: r
}), t && _s.jsx(Ol, {
className: "sol-c-accordion__action",
disabled: o.allClosed,
onClick: o.closeAll,
size: "small",
variant: "plain",
children: t
})]
}), _s.jsx("div", {
className: "sol-c-accordion__items",
children: n
})]
})
})
}));
ss("@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)}}"), ss("@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}}");
Vs((({
align: e,
as: t = "div",
className: n,
children: r,
fill: i,
...a
}, o) => {
let s = Us("sol-c-stack__item", e && `sol-c-stack__item--${e}`, i && "sol-c-stack__item--fill", n);
return (0, Pe.createElement)(t, {
className: s,
ref: o,
...a
}, r)
}));
let Ll = Vs((({
align: e,
as: t = "div",
children: n,
className: r,
gap: i,
justify: a,
reverse: o,
vertical: s,
wrap: l,
...c
}, u) => {
let d = Us("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, Pe.createElement)(t, {
className: d,
ref: u,
...c
}, n)
})),
jl = (0, Pe.forwardRef)((({
className: e,
...t
}, n) => {
let r = Us("sol-c-app-header__actions", e);
return _s.jsx(Ll, {
align: "center",
className: r,
justify: "end",
gap: "050",
ref: n,
...t
})
})),
Ml = (0, Pe.forwardRef)((({
alwaysOnTop: e,
children: t,
className: n,
hasAvatar: r,
label: i,
style: a,
...o
}, s) => {
let l = Us("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 _s.jsx(Ol, {
"aria-label": t && i ? i : void 0,
className: l,
disableOffset: !!t,
ref: s,
size: "medium",
style: c,
variant: "plain",
...o,
children: t ?? i
})
})),
zl = Vs((({
as: e = "div",
className: t,
...n
}, r) => {
let i = Us("sol-c-app-header__separator", t);
return _s.jsx(e, {
"aria-hidden": "true",
className: i,
ref: r,
...n
})
})),
Fl = (0, Pe.forwardRef)((({
actions: e,
children: t,
className: n,
...r
}, i) => {
let a = Us("sol-c-app-header", n);
return _s.jsxs(Ll, {
as: "header",
className: a,
gap: "050",
ref: i,
...r,
children: [t, e && _s.jsx(jl, {
children: e
})]
})
}));
ss("@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 Ul = (0, Pe.forwardRef)((({
children: e,
className: t,
header: n,
...r
}, i) => {
let a = Us("sol-c-app-layout", t);
return _s.jsxs("div", {
className: a,
ref: i,
...r,
children: [n && (0, Pe.cloneElement)(n, {
className: "sol-c-app-layout__header"
}), _s.jsx("main", {
className: "sol-c-app-layout__main",
children: e
})]
})
}));
ss("@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 Vl = Vs((({
as: e = "span",
alt: t,
className: n,
src: r,
srcSet: i,
...a
}, o) => {
let s = Js({
src: r,
srcSet: i
}),
l = Us("sol-c-avatar", n);
return _s.jsx(e, {
className: l,
"aria-label": r && s !== Xs ? void 0 : t,
ref: o,
...a,
children: r && s !== Xs && _s.jsx("img", {
alt: t ?? "",
className: Us("sol-c-avatar__image", s === Zs && "sol-c-avatar__image--loaded"),
src: r,
srcSet: i
})
})
}));
function Gl(e) {
return $l(e) ? (e.nodeName || "").toLowerCase() : "#document"
}
function Bl(e) {
var t;
return (null == e || null == (t = e.ownerDocument) ? void 0 : t.defaultView) || window
}
function $l(e) {
return e instanceof Node || e instanceof Bl(e).Node
}
function ql(e) {
return e instanceof Element || e instanceof Bl(e).Element
}
function Wl(e) {
return e instanceof HTMLElement || e instanceof Bl(e).HTMLElement
}
function Hl(e) {
return "undefined" != typeof ShadowRoot && (e instanceof ShadowRoot || e instanceof Bl(e).ShadowRoot)
}
function Yl(e) {
let t = e.activeElement;
for (; null != (null == (n = t) || null == (r = n.shadowRoot) ? void 0 : r.activeElement);) {
var n, r;
t = t.shadowRoot.activeElement
}
return t
}
function Kl(e, t) {
if (!e || !t) return !1;
let n = t.getRootNode && t.getRootNode();
if (e.contains(t)) return !0;
if (n && Hl(n)) {
let n = t;
for (; n;) {
if (e === n) return !0;
n = n.parentNode || n.host
}
}
return !1
}
function Ql() {
let e = navigator.userAgentData;
return null != e && e.platform ? e.platform : navigator.platform
}
function Zl(e) {
return 0 === e.mozInputSource && !!e.isTrusted || (ec() && e.pointerType ? "click" === e.type && 1 === e.buttons : 0 === e.detail && !e.pointerType)
}
function Xl(e) {
return !ec() && 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 Jl() {
return /apple/i.test(navigator.vendor)
}
function ec() {
let e = /android/i;
return e.test(Ql()) || e.test(function() {
let e = navigator.userAgentData;
return e && Array.isArray(e.brands) ? e.brands.map((e => {
let {
brand: t,
version: n
} = e;
return t + "/" + n
})).join(" ") : navigator.userAgent
}())
}
function tc() {
return Ql().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints
}
function nc(e, t) {
let n = ["mouse", "pen"];
return t || n.push("", void 0), n.includes(e)
}
function rc(e) {
return (null == e ? void 0 : e.ownerDocument) || document
}
function ic(e, t) {
return null != t && ("composedPath" in e ? e.composedPath().includes(t) : null != e.target && t.contains(e.target))
}
function ac(e) {
return "composedPath" in e ? e.composedPath()[0] : e.target
}
function oc(e) {
return Wl(e) && e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")
}
function sc(e) {
e.preventDefault(), e.stopPropagation()
}
ss("@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__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)}}"), ss("@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 lc = Math.floor,
cc = Math.min,
uc = Math.max,
dc = Math.round,
pc = Math.floor,
hc = e => ({
x: e,
y: e
}),
fc = {
left: "right",
right: "left",
bottom: "top",
top: "bottom"
},
mc = {
start: "end",
end: "start"
};
function gc(e, t) {
return "function" == typeof e ? e(t) : e
}
function vc(e) {
return e.split("-")[0]
}
function _c(e) {
return e.split("-")[1]
}
function yc(e) {
return "x" === e ? "y" : "x"
}
function bc(e) {
return "y" === e ? "height" : "width"
}
function xc(e) {
return ["top", "bottom"].includes(vc(e)) ? "y" : "x"
}
function wc(e) {
return e.replace(/start|end/g, (e => mc[e]))
}
function kc(e) {
return e.replace(/left|right|bottom|top/g, (e => fc[e]))
}
function Ec(e) {
return "number" != typeof e ? {
top: 0,
right: 0,
bottom: 0,
left: 0,
...e
} : {
top: e,
right: e,
bottom: e,
left: e
}
}
function Sc(e) {
return {
...e,
top: e.y,
left: e.x,
right: e.x + e.width,
bottom: e.y + e.height
}
}
function Oc(e, t, n) {
let r, {
reference: i,
floating: a
} = e,
o = xc(t),
s = yc(xc(t)),
l = bc(s),
c = vc(t),
u = "y" === o,
d = i.x + i.width / 2 - a.width / 2,
p = i.y + i.height / 2 - a.height / 2,
h = i[l] / 2 - a[l] / 2;
switch (c) {
case "top":
r = {
x: d,
y: i.y - a.height
};
break;
case "bottom":
r = {
x: d,
y: i.y + i.height
};
break;
case "right":
r = {
x: i.x + i.width,
y: p
};
break;
case "left":
r = {
x: i.x - a.width,
y: p
};
break;
default:
r = {
x: i.x,
y: i.y
}
}
switch (_c(t)) {
case "start":
r[s] -= h * (n && u ? -1 : 1);
break;
case "end":
r[s] += h * (n && u ? -1 : 1)
}
return r
}
async function Pc(e, t) {
var n;
void 0 === t && (t = {});
let {
x: r,
y: i,
platform: a,
rects: o,
elements: s,
strategy: l
} = e, {
boundary: c = "clippingAncestors",
rootBoundary: u = "viewport",
elementContext: d = "floating",
altBoundary: p = !1,
padding: h = 0
} = gc(t, e), f = Ec(h), m = s[p ? "floating" === d ? "reference" : "floating" : d], g = Sc(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,
strategy: l
})), v = "floating" === d ? {
...o.floating,
x: r,
y: i
} : o.reference, _ = await (null == a.getOffsetParent ? void 0 : a.getOffsetParent(s.floating)), y = await (null == a.isElement ? void 0 : a.isElement(_)) && await (null == a.getScale ? void 0 : a.getScale(_)) || {
x: 1,
y: 1
}, b = Sc(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
rect: v,
offsetParent: _,
strategy: l
}) : v);
return {
top: (g.top - b.top + f.top) / y.y,
bottom: (b.bottom - g.bottom + f.bottom) / y.y,
left: (g.left - b.left + f.left) / y.x,
right: (b.right - g.right + f.right) / y.x
}
}
let Ic = e => ({
name: "arrow",
options: e,
async fn(t) {
let {
x: n,
y: r,
placement: i,
rects: a,
platform: o,
elements: s
} = t, {
element: l,
padding: c = 0
} = gc(e, t) || {};
if (null == l) return {};
let u = Ec(c),
d = {
x: n,
y: r
},
p = yc(xc(i)),
h = bc(p),
f = await o.getDimensions(l),
m = "y" === p,
g = m ? "clientHeight" : "clientWidth",
v = a.reference[h] + a.reference[p] - d[p] - a.floating[h],
_ = d[p] - a.reference[p],
y = await (null == o.getOffsetParent ? void 0 : o.getOffsetParent(l)),
b = y ? y[g] : 0;
b && await (null == o.isElement ? void 0 : o.isElement(y)) || (b = s.floating[g] || a.floating[h]);
let x = b / 2 - f[h] / 2 - 1,
w = cc(u[m ? "top" : "left"], x),
k = cc(u[m ? "bottom" : "right"], x),
E = b - f[h] - k,
S = b / 2 - f[h] / 2 + (v / 2 - _ / 2),
O = uc(w, cc(S, E)),
P = null != _c(i) && S != O && a.reference[h] / 2 - (S < w ? w : k) - f[h] / 2 < 0 ? S < w ? w - S : E - S : 0;
return {
[p]: d[p] - P,
data: {
[p]: O,
centerOffset: S - O + P
}
}
}
});
let Ac = function(e) {
return void 0 === e && (e = 0), {
name: "offset",
options: e,
async fn(t) {
let {
x: n,
y: r
} = t, i = await async function(e, t) {
let {
placement: n,
platform: r,
elements: i
} = e, a = await (null == r.isRTL ? void 0 : r.isRTL(i.floating)), o = vc(n), s = _c(n), l = "y" === xc(n), c = ["left", "top"].includes(o) ? -1 : 1, u = a && l ? -1 : 1, d = gc(t, e), {
mainAxis: p,
crossAxis: h,
alignmentAxis: f
} = "number" == typeof d ? {
mainAxis: d,
crossAxis: 0,
alignmentAxis: null
} : {
mainAxis: 0,
crossAxis: 0,
alignmentAxis: null,
...d
};
return s && "number" == typeof f && (h = "end" === s ? -1 * f : f), l ? {
x: h * u,
y: p * c
} : {
x: p * c,
y: h * u
}
}(t, e);
return {
x: n + i.x,
y: r + i.y,
data: i
}
}
}
},
Cc = function(e) {
return void 0 === e && (e = {}), {
name: "shift",
options: e,
async fn(t) {
let {
x: n,
y: r,
placement: i
} = t, {
mainAxis: a = !0,
crossAxis: o = !1,
limiter: s = {
fn: e => {
let {
x: t,
y: n
} = e;
return {
x: t,
y: n
}
}
},
...l
} = gc(e, t), c = {
x: n,
y: r
}, u = await Pc(t, l), d = xc(vc(i)), p = yc(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 = uc(e, cc(h, t))
}
if (o) {
let e = "y" === d ? "bottom" : "right",
t = f + u["y" === d ? "top" : "left"],
n = f - u[e];
f = uc(t, cc(f, n))
}
let m = s.fn({
...t,
[p]: h,
[d]: f
});
return {
...m,
data: {
x: m.x - n,
y: m.y - r
}
}
}
}
},
Rc = function(e) {
return void 0 === e && (e = {}), {
name: "size",
options: e,
async fn(t) {
let n, r, {
placement: i,
rects: a,
platform: o,
elements: s
} = t,
{
apply: l = (() => {}),
...c
} = gc(e, t),
u = await Pc(t, c),
d = vc(i),
p = _c(i),
h = "y" === xc(i),
{
width: f,
height: m
} = a.floating;
"top" === d || "bottom" === d ? (n = d, r = p === (await (null == o.isRTL ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (r = d, n = "end" === p ? "top" : "bottom");
let g = m - u[n],
v = f - u[r],
_ = !t.middlewareData.shift,
y = g,
b = v;
if (h) {
let e = f - u.left - u.right;
b = p || _ ? cc(v, e) : e
} else {
let e = m - u.top - u.bottom;
y = p || _ ? cc(g, e) : e
}
if (_ && !p) {
let e = uc(u.left, 0),
t = uc(u.right, 0),
n = uc(u.top, 0),
r = uc(u.bottom, 0);
h ? b = f - 2 * (0 !== e || 0 !== t ? e + t : uc(u.left, u.right)) : y = m - 2 * (0 !== n || 0 !== r ? n + r : uc(u.top, u.bottom))
}
await l({
...t,
availableWidth: b,
availableHeight: y
});
let x = await o.getDimensions(s.floating);
return f !== x.width || m !== x.height ? {
reset: {
rects: !0
}
} : {}
}
}
};
function Tc(e) {
return Lc(e) ? (e.nodeName || "").toLowerCase() : "#document"
}
function Dc(e) {
var t;
return (null == e || null == (t = e.ownerDocument) ? void 0 : t.defaultView) || window
}
function Nc(e) {
var t;
return null == (t = (Lc(e) ? e.ownerDocument : e.document) || window.document) ? void 0 : t.documentElement
}
function Lc(e) {
return e instanceof Node || e instanceof Dc(e).Node
}
function jc(e) {
return e instanceof Element || e instanceof Dc(e).Element
}
function Mc(e) {
return e instanceof HTMLElement || e instanceof Dc(e).HTMLElement
}
function zc(e) {
return "undefined" != typeof ShadowRoot && (e instanceof ShadowRoot || e instanceof Dc(e).ShadowRoot)
}
function Fc(e) {
let {
overflow: t,
overflowX: n,
overflowY: r,
display: i
} = Bc(e);
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i)
}
function Uc(e) {
let t = Vc(),
n = Bc(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 Vc() {
return "undefined" != typeof CSS && !!CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")
}
function Gc(e) {
return ["html", "body", "#document"].includes(Tc(e))
}
function Bc(e) {
return Dc(e).getComputedStyle(e)
}
function $c(e) {
return jc(e) ? {
scrollLeft: e.scrollLeft,
scrollTop: e.scrollTop
} : {
scrollLeft: e.pageXOffset,
scrollTop: e.pageYOffset
}
}
function qc(e) {
if ("html" === Tc(e)) return e;
let t = e.assignedSlot || e.parentNode || zc(e) && e.host || Nc(e);
return zc(t) ? t.host : t
}
function Wc(e, t) {
var n;
void 0 === t && (t = []);
let r = function e(t) {
let n = qc(t);
return Gc(n) ? t.ownerDocument ? t.ownerDocument.body : t.body : Mc(n) && Fc(n) ? n : e(n)
}(e),
i = r === (null == (n = e.ownerDocument) ? void 0 : n.body),
a = Dc(r);
return i ? t.concat(a, a.visualViewport || [], Fc(r) ? r : []) : t.concat(r, Wc(r))
}
function Hc(e) {
let t = Bc(e),
n = parseFloat(t.width) || 0,
r = parseFloat(t.height) || 0,
i = Mc(e),
a = i ? e.offsetWidth : n,
o = i ? e.offsetHeight : r,
s = dc(n) !== a || dc(r) !== o;
return s && (n = a, r = o), {
width: n,
height: r,
$: s
}
}
function Yc(e) {
return jc(e) ? e : e.contextElement
}
function Kc(e) {
let t = Yc(e);
if (!Mc(t)) return hc(1);
let n = t.getBoundingClientRect(),
{
width: r,
height: i,
$: a
} = Hc(t),
o = (a ? dc(n.width) : n.width) / r,
s = (a ? dc(n.height) : n.height) / i;
return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
x: o,
y: s
}
}
let Qc = hc(0);
function Zc(e) {
let t = Dc(e);
return Vc() && t.visualViewport ? {
x: t.visualViewport.offsetLeft,
y: t.visualViewport.offsetTop
} : Qc
}
function Xc(e, t, n, r) {
var i;
void 0 === t && (t = !1), void 0 === n && (n = !1);
let a = e.getBoundingClientRect(),
o = Yc(e),
s = hc(1);
t && (r ? jc(r) && (s = Kc(r)) : s = Kc(e));
let l = (void 0 === (i = n) && (i = !1), !r || i && r !== Dc(o) || !i ? hc(0) : Zc(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 = Dc(o),
t = r && jc(r) ? Dc(r) : r,
n = e.frameElement;
for (; n && r && t !== e;) {
let e = Kc(n),
t = n.getBoundingClientRect(),
r = Bc(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 = Dc(n).frameElement
}
}
return Sc({
width: d,
height: p,
x: c,
y: u
})
}
function Jc(e) {
return Xc(Nc(e)).left + $c(e).scrollLeft
}
function eu(e, t, n) {
let r;
if ("viewport" === t) r = function(e, t) {
let n = Dc(e),
r = Nc(e),
i = n.visualViewport,
a = r.clientWidth,
o = r.clientHeight,
s = 0,
l = 0;
if (i) {
a = i.width, o = i.height;
let e = Vc();
(!e || e && "fixed" === t) && (s = i.offsetLeft, l = i.offsetTop)
}
return {
width: a,
height: o,
x: s,
y: l
}
}(e, n);
else if ("document" === t) r = function(e) {
let t = Nc(e),
n = $c(e),
r = e.ownerDocument.body,
i = uc(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth),
a = uc(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight),
o = -n.scrollLeft + Jc(e),
s = -n.scrollTop;
return "rtl" === Bc(r).direction && (o += uc(t.clientWidth, r.clientWidth) - i), {
width: i,
height: a,
x: o,
y: s
}
}(Nc(e));
else if (jc(t)) r = function(e, t) {
let n = Xc(e, !0, "fixed" === t),
r = n.top + e.clientTop,
i = n.left + e.clientLeft,
a = Mc(e) ? Kc(e) : hc(1);
return {
width: e.clientWidth * a.x,
height: e.clientHeight * a.y,
x: i * a.x,
y: r * a.y
}
}(t, n);
else {
let n = Zc(e);
r = {
...t,
x: t.x - n.x,
y: t.y - n.y
}
}
return Sc(r)
}
function tu(e, t) {
return Mc(e) && "fixed" !== Bc(e).position ? t ? t(e) : e.offsetParent : null
}
function nu(e, t) {
let n = Dc(e);
if (!Mc(e)) return n;
let r = tu(e, t);
for (; r && ["table", "td", "th"].includes(Tc(r)) && "static" === Bc(r).position;) r = tu(r, t);
return r && ("html" === Tc(r) || "body" === Tc(r) && "static" === Bc(r).position && !Uc(r)) ? n : r || function(e) {
let t = qc(e);
for (; Mc(t) && !Gc(t);) {
if (Uc(t)) return t;
t = qc(t)
}
return null
}(e) || n
}
let ru = {
convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
let {
rect: t,
offsetParent: n,
strategy: r
} = e, i = Mc(n), a = Nc(n);
if (n === a) return t;
let o = {
scrollLeft: 0,
scrollTop: 0
},
s = hc(1),
l = hc(0);
if ((i || !i && "fixed" !== r) && (("body" !== Tc(n) || Fc(a)) && (o = $c(n)), Mc(n))) {
let e = Xc(n);
s = Kc(n), l.x = e.x + n.clientLeft, l.y = e.y + n.clientTop
}
return {
width: t.width * s.x,
height: t.height * s.y,
x: t.x * s.x - o.scrollLeft * s.x + l.x,
y: t.y * s.y - o.scrollTop * s.y + l.y
}
},
getDocumentElement: Nc,
getClippingRect: function(e) {
let {
element: t,
boundary: n,
rootBoundary: r,
strategy: i
} = e, a = "clippingAncestors" === n ? function(e, t) {
let n = t.get(e);
if (n) return n;
let r = Wc(e).filter((e => jc(e) && "body" !== Tc(e))),
i = null,
a = "fixed" === Bc(e).position,
o = a ? qc(e) : e;
for (; jc(o) && !Gc(o);) {
let t = Bc(o),
n = Uc(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 = qc(t);
return !(r === n || !jc(r) || Gc(r)) && ("fixed" === Bc(r).position || e(r, n))
}(e, o);
s ? r = r.filter((e => e !== o)) : i = t, o = qc(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 = eu(t, n, i);
return e.top = uc(r.top, e.top), e.right = cc(r.right, e.right), e.bottom = cc(r.bottom, e.bottom), e.left = uc(r.left, e.left), e
}), eu(t, s, i));
return {
width: l.right - l.left,
height: l.bottom - l.top,
x: l.left,
y: l.top
}
},
getOffsetParent: nu,
getElementRects: async function(e) {
let {
reference: t,
floating: n,
strategy: r
} = e, i = this.getOffsetParent || nu, a = this.getDimensions;
return {
reference: function(e, t, n) {
let r = Mc(t),
i = Nc(t),
a = "fixed" === n,
o = Xc(e, !0, a, t),
s = {
scrollLeft: 0,
scrollTop: 0
},
l = hc(0);
if (r || !r && !a)
if (("body" !== Tc(t) || Fc(i)) && (s = $c(t)), r) {
let e = Xc(t, !0, a, t);
l.x = e.x + t.clientLeft, l.y = e.y + t.clientTop
} else i && (l.x = Jc(i));
return {
x: o.left + s.scrollLeft - l.x,
y: o.top + s.scrollTop - l.y,
width: o.width,
height: o.height
}
}(t, await i(n), r),
floating: {
x: 0,
y: 0,
...await a(n)
}
}
},
getClientRects: function(e) {
return Array.from(e.getClientRects())
},
getDimensions: function(e) {
return Hc(e)
},
getScale: Kc,
isElement: jc,
isRTL: function(e) {
return "rtl" === Bc(e).direction
}
};
function iu(e, t, n, r) {
let i;
void 0 === r && (r = {});
let {
ancestorScroll: a = !0,
ancestorResize: o = !0,
elementResize: s = "function" == typeof ResizeObserver,
layoutShift: l = "function" == typeof IntersectionObserver,
animationFrame: c = !1
} = r, u = Yc(e), d = a || o ? [...u ? Wc(u) : [], ...Wc(t)] : [];
d.forEach((e => {
a && e.addEventListener("scroll", n, {
passive: !0
}), o && e.addEventListener("resize", n)
}));
let p = u && l ? function(e, t) {
let n, r = null,
i = Nc(e);
function a() {
clearTimeout(n), r && r.disconnect(), r = null
}
return function o(s, l) {
void 0 === s && (s = !1), void 0 === l && (l = 1), a();
let {
left: c,
top: u,
width: d,
height: p
} = e.getBoundingClientRect();
if (s || t(), !d || !p) return;
let h = {
rootMargin: -pc(u) + "px " + -pc(i.clientWidth - (c + d)) + "px " + -pc(i.clientHeight - (u + p)) + "px " + -pc(c) + "px",
threshold: uc(0, cc(1, l)) || 1
},
f = !0;
function m(e) {
let t = e[0].intersectionRatio;
if (t !== l) {
if (!f) return o();
t ? o(!1, t) : n = setTimeout((() => {
o(!1, 1e-7)
}), 100)
}
f = !1
}
try {
r = new IntersectionObserver(m, {
...h,
root: i.ownerDocument
})
} catch (e) {
r = new IntersectionObserver(m, h)
}
r.observe(e)
}(!0), a
}(u, n) : null,
h = -1,
f = null;
s && (f = new ResizeObserver((e => {
let [r] = e;
r && r.target === u && f && (f.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame((() => {
f && f.observe(t)
}))), n()
})), u && !c && f.observe(u), f.observe(t));
let m = c ? Xc(e) : null;
return c && function t() {
let r = Xc(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 => {
a && e.removeEventListener("scroll", n), o && e.removeEventListener("resize", n)
})), p && p(), f && f.disconnect(), f = null, c && cancelAnimationFrame(i)
}
}
let au = (e, t, n) => {
let r = new Map,
i = {
platform: ru,
...n
},
a = {
...i.platform,
_c: r
};
return (async (e, t, n) => {
let {
placement: r = "bottom",
strategy: i = "absolute",
middleware: a = [],
platform: o
} = n, s = a.filter(Boolean), l = await (null == o.isRTL ? void 0 : o.isRTL(t)), c = await o.getElementRects({
reference: e,
floating: t,
strategy: i
}), {
x: u,
y: d
} = Oc(c, r, l), p = r, h = {}, f = 0;
for (let m = 0; m < s.length; m++) {
let {
name: n,
fn: a
} = s[m], {
x: g,
y: v,
data: _,
reset: y
} = await a({
x: u,
y: d,
initialPlacement: r,
placement: p,
strategy: i,
middlewareData: h,
rects: c,
platform: o,
elements: {
reference: e,
floating: t
}
});
u = null != g ? g : u, d = null != v ? v : d, h = {
...h,
[n]: {
...h[n],
..._
}
}, y && f <= 50 && (f++, "object" == typeof y && (y.placement && (p = y.placement), y.rects && (c = !0 === y.rects ? await o.getElementRects({
reference: e,
floating: t,
strategy: i
}) : y.rects), ({
x: u,
y: d
} = Oc(c, p, l))), m = -1)
}
return {
x: u,
y: d,
placement: p,
strategy: i,
middlewareData: h
}
})(e, t, {
...i,
platform: a
})
},
ou = e => ({
name: "arrow",
options: e,
fn(t) {
let {
element: n,
padding: r
} = "function" == typeof e ? e(t) : e;
if (n && {}.hasOwnProperty.call(n, "current")) {
if (null != n.current) return Ic({
element: n.current,
padding: r
}).fn(t)
} else if (n) return Ic({
element: n,
padding: r
}).fn(t);
return {}
}
});
var su = "undefined" != typeof document ? Pe.useLayoutEffect : Pe.useEffect;
function lu(e, t) {
let n, r, i;
if (e === t) return !0;
if (typeof e != typeof t) return !1;
if ("function" == typeof e && e.toString() === t.toString()) return !0;
if (e && t && "object" == typeof e) {
if (Array.isArray(e)) {
if ((n = e.length) != t.length) return !1;
for (r = n; 0 != r--;)
if (!lu(e[r], t[r])) return !1;
return !0
}
if ((n = (i = Object.keys(e)).length) !== Object.keys(t).length) return !1;
for (r = n; 0 != r--;)
if (!{}.hasOwnProperty.call(t, i[r])) return !1;
for (r = n; 0 != r--;) {
let n = i[r];
if (("_owner" !== n || !e.$$typeof) && !lu(e[n], t[n])) return !1
}
return !0
}
return e != e && t != t
}
function cu(e) {
if ("undefined" == typeof window) return 1;
return (e.ownerDocument.defaultView || window).devicePixelRatio || 1
}
function uu(e, t) {
let n = cu(e);
return Math.round(t * n) / n
}
function du(e) {
let t = Pe.useRef(e);
return su((() => {
t.current = e
})), t
}
var pu = 'input,select,textarea,a[href],button,[tabindex]:not(slot),audio[controls],video[controls],[contenteditable]:not([contenteditable="false"]),details>summary:first-of-type,details',
hu = "undefined" == typeof Element,
fu = hu ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
mu = !hu && Element.prototype.getRootNode ? function(e) {
return e.getRootNode()
} : function(e) {
return e.ownerDocument
},
gu = function e(t, n, r) {
for (var i = [], a = Array.from(t); a.length;) {
var o = a.shift();
if ("SLOT" === o.tagName) {
var s = o.assignedElements(),
l = e(s.length ? s : o.children, !0, r);
r.flatten ? i.push.apply(i, l) : i.push({
scopeParent: o,
candidates: l
})
} else {
fu.call(o, pu) && 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) {
var d = e(!0 === c ? o.children : c.children, !0, r);
r.flatten ? i.push.apply(i, d) : i.push({
scopeParent: o,
candidates: d
})
} else a.unshift.apply(a, o.children)
}
}
return i
},
vu = 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
},
_u = function(e, t) {
return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex
},
yu = function(e) {
return "INPUT" === e.tagName
},
bu = function(e) {
var t = e.getBoundingClientRect(),
n = t.width,
r = t.height;
return 0 === n && 0 === r
},
xu = function(e, t) {
var n = t.displayCheck,
r = t.getShadowRoot;
if ("hidden" === getComputedStyle(e).visibility) return !0;
var i = fu.call(e, "details>summary:first-of-type") ? e.parentElement : e;
if (fu.call(i, "details:not([open]) *")) return !0;
if (n && "full" !== n && "legacy-full" !== n) {
if ("non-zero-area" === n) return bu(e)
} else {
if ("function" == typeof r) {
for (var a = e; e;) {
var o = e.parentElement,
s = mu(e);
if (o && !o.shadowRoot && !0 === r(o)) return bu(e);
e = e.assignedSlot ? e.assignedSlot : o || s === e.ownerDocument ? o : s.host
}
e = a
}
if (function(e) {
for (var t, n, r = mu(e).host, i = !!(null !== (t = r) && void 0 !== t && t.ownerDocument.contains(r) || e.ownerDocument.contains(e)); !i && r;) i = !(null === (n = r = mu(r).host) || void 0 === n || !n.ownerDocument.contains(r));
return i
}(e)) return !e.getClientRects().length;
if ("legacy-full" !== n) return !0
}
return !1
},
wu = function(e, t) {
var n, r, i;
return !(yu(n = t) && "radio" === n.type && ! function(e) {
if (!e.name) return !0;
var t, n = e.form || mu(e),
r = function(e) {
return n.querySelectorAll('input[type="radio"][name="' + e + '"]')
};
if ("undefined" != typeof window && void 0 !== window.CSS && "function" == typeof window.CSS.escape) t = r(window.CSS.escape(e.name));
else try {
t = r(e.name)
} catch (e) {
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", e.message), !1
}
var i = function(e, t) {
for (var n = 0; n < e.length; n++)
if (e[n].checked && e[n].form === t) return e[n]
}(t, e.form);
return !i || i === e
}(n) || 0 > vu(t)) && (r = e, !((i = t).disabled || yu(i) && "hidden" === i.type || xu(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))
for (var t = e.parentElement; t;) {
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 !!fu.call(t, "fieldset[disabled] *") || !r.contains(e)
}
return !0
}
t = t.parentElement
}
return !1
}(i)))
},
ku = function(e) {
var t = parseInt(e.getAttribute("tabindex"), 10);
return !!isNaN(t) || t >= 0
},
Eu = function e(t) {
var n = [],
r = [];
return t.forEach((function(t, i) {
var a = !!t.scopeParent,
o = a ? t.scopeParent : t,
s = vu(o, a),
l = a ? e(t.candidates) : o;
0 === s ? a ? n.push.apply(n, l) : n.push(o) : r.push({
documentOrder: i,
tabIndex: s,
item: t,
isScope: a,
content: l
})
})), r.sort(_u).reduce((function(e, t) {
return t.isScope ? e.push.apply(e, t.content) : e.push(t.content), e
}), []).concat(n)
},
Su = function(e, t) {
return Eu((t = t || {}).getShadowRoot ? gu([e], t.includeContainer, {
filter: wu.bind(null, t),
flatten: !1,
getShadowRoot: t.getShadowRoot,
shadowRootFilter: ku
}) : function(e, t, n) {
var r = Array.prototype.slice.apply(e.querySelectorAll(pu));
return t && fu.call(e, pu) && r.unshift(e), r.filter(n)
}(e, t.includeContainer, wu.bind(null, t)))
};
function Ou(e) {
return Pe.useMemo((() => e.every((e => null == e)) ? null : t => {
e.forEach((e => {
"function" == typeof e ? e(t) : null != e && (e.current = t)
}))
}), e)
}
let Pu = Ie["useInsertionEffect".toString()] || (e => e());
function Iu(e) {
let t = Pe.useRef((() => {
0
}));
return Pu((() => {
t.current = e
})), Pe.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 Au = "ArrowUp",
Cu = "ArrowDown",
Ru = "ArrowLeft",
Tu = "ArrowRight";
function Du(e, t, n) {
return Math.floor(e / t) !== n
}
function Nu(e, t) {
return t < 0 || t >= e.current.length
}
function Lu(e, t) {
return Mu(e, {
disabledIndices: t
})
}
function ju(e, t) {
return Mu(e, {
decrement: !0,
startingIndex: e.current.length,
disabledIndices: t
})
}
function Mu(e, t) {
let {
startingIndex: n = -1,
decrement: r = !1,
disabledIndices: i,
amount: a = 1
} = void 0 === t ? {} : t, o = e.current, s = i ? e => i.includes(e) : e => {
let t = o[e];
return null == t || t.hasAttribute("disabled") || "true" === t.getAttribute("aria-disabled")
}, l = n;
do {
l += r ? -a : a
} while (l >= 0 && l <= o.length - 1 && s(l));
return l
}
let zu = 0;
function Fu(e, t) {
void 0 === t && (t = {});
let {
preventScroll: n = !1,
cancelPrevious: r = !0,
sync: i = !1
} = t;
r && cancelAnimationFrame(zu);
let a = () => null == e ? void 0 : e.focus({
preventScroll: n
});
i ? a() : zu = requestAnimationFrame(a)
}
var Uu = "undefined" != typeof document ? Pe.useLayoutEffect : Pe.useEffect;
function Vu(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 Gu = Pe.createContext({
register: () => {},
unregister: () => {},
map: new Map,
elementsRef: {
current: []
}
});
function Bu(e) {
let {
children: t,
elementsRef: n,
labelsRef: r
} = e, [i, a] = Pe.useState((() => new Map)), o = Pe.useCallback((e => {
a((t => new Map(t).set(e, null)))
}), []), s = Pe.useCallback((e => {
a((t => {
let n = new Map(t);
return n.delete(e), n
}))
}), []);
return Uu((() => {
let e = new Map(i);
Array.from(e.keys()).sort(Vu).forEach(((t, n) => {
e.set(t, n)
})), ! function(e, t) {
if (e.size !== t.size) return !1;
for (let [n, r] of e.entries())
if (r !== t.get(n)) return !1;
return !0
}(i, e) && a(e)
}), [i]), Pe.createElement(Gu.Provider, {
value: Pe.useMemo((() => ({
register: o,
unregister: s,
map: i,
elementsRef: n,
labelsRef: r
})), [o, s, i, n, r])
}, t)
}
function $u(e) {
let {
label: t
} = void 0 === e ? {} : e, [n, r] = Pe.useState(null), i = Pe.useRef(null), {
register: a,
unregister: o,
map: s,
elementsRef: l,
labelsRef: c
} = Pe.useContext(Gu), u = Pe.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 Uu((() => {
let e = i.current;
if (e) return a(e), () => {
o(e)
}
}), [a, o]), Uu((() => {
let e = i.current ? s.get(i.current) : null;
null != e && r(e)
}), [s]), Pe.useMemo((() => ({
ref: u,
index: null == n ? -1 : n
})), [n, u])
}
function qu() {
return (qu = 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
}).apply(this, arguments)
}
let Wu = !1,
Hu = 0,
Yu = () => "floating-ui-" + Hu++,
Ku = Ie["useId".toString()] || function() {
let [e, t] = Pe.useState((() => Wu ? Yu() : void 0));
return Uu((() => {
null == e && t(Yu())
}), []), Pe.useEffect((() => {
Wu || (Wu = !0)
}), []), e
},
Qu = Pe.forwardRef((function(e, t) {
let {
context: {
placement: n,
elements: {
floating: r
},
middlewareData: {
arrow: i
}
},
width: a = 14,
height: o = 7,
tipRadius: s = 0,
strokeWidth: l = 0,
staticOffset: c,
stroke: u,
d: d,
style: {
transform: p,
...h
} = {},
...f
} = e, m = Ku();
if (!r) return null;
l *= 2;
let g = l / 2,
v = a / 2 * (-s / 8 + 1),
_ = o / 2 * s / 4,
[y, b] = n.split("-"),
x = ru.isRTL(r),
w = !!d,
k = c && "end" === b ? "right" : "left";
c && x && (k = "end" === b ? "left" : "right");
let E = null != (null == i ? void 0 : i.x) ? c || i.x : "",
S = null != (null == i ? void 0 : i.y) ? c || i.y : "",
O = d || "M0,0 H" + a + " L" + (a - v) + "," + (o - _) + " Q" + a / 2 + "," + o + " " + v + "," + (o - _) + " Z";
return Pe.createElement("svg", qu({}, f, {
"aria-hidden": !0,
ref: t,
width: w ? a : a + l,
height: a,
viewBox: "0 0 " + a + " " + (o > a ? o : a),
style: {
position: "absolute",
pointerEvents: "none",
[k]: E,
[c && "end" === b ? "bottom" : "top"]: S,
[y]: "top" === y || "bottom" === y || w ? "100%" : "calc(100% - " + l / 2 + "px)",
transform: "" + {
top: w ? "rotate(180deg)" : "",
left: w ? "rotate(90deg)" : "rotate(-90deg)",
bottom: w ? "" : "rotate(180deg)",
right: w ? "rotate(-90deg)" : "rotate(90deg)"
} [y] + (null != p ? p : ""),
...h
}
}), l > 0 && Pe.createElement("path", {
clipPath: "url(#" + m + ")",
fill: "none",
stroke: u,
strokeWidth: l + (d ? 0 : 1),
d: O
}), Pe.createElement("path", {
stroke: l && !d ? f.fill : "none",
d: O
}), Pe.createElement("clipPath", {
id: m
}, Pe.createElement("rect", {
x: -g,
y: g * (w ? -1 : 1),
width: a + l,
height: a
})))
}));
function Zu() {
let e = new Map;
return {
emit(t, n) {
var r;
null == (r = e.get(t)) || r.forEach((e => e(n)))
},
on(t, n) {
e.set(t, [...e.get(t) || [], n])
},
off(t, n) {
var r;
e.set(t, (null == (r = e.get(t)) ? void 0 : r.filter((e => e !== n))) || [])
}
}
}
let Xu = Pe.createContext(null),
Ju = Pe.createContext(null),
ed = () => {
var e;
return (null == (e = Pe.useContext(Xu)) ? void 0 : e.id) || null
},
td = () => Pe.useContext(Ju);
function nd(e) {
let t = Ku(),
n = td(),
r = ed(),
i = e || r;
return Uu((() => {
let e = {
id: t,
parentId: i
};
return null == n || n.addNode(e), () => {
null == n || n.removeNode(e)
}
}), [n, t, i]), t
}
function rd(e) {
let {
children: t,
id: n
} = e, r = ed();
return Pe.createElement(Xu.Provider, {
value: Pe.useMemo((() => ({
id: n,
parentId: r
})), [n, r])
}, t)
}
function id(e) {
let {
children: t
} = e, n = Pe.useRef([]), r = Pe.useCallback((e => {
n.current = [...n.current, e]
}), []), i = Pe.useCallback((e => {
n.current = n.current.filter((t => t !== e))
}), []), a = Pe.useState((() => Zu()))[0];
return Pe.createElement(Ju.Provider, {
value: Pe.useMemo((() => ({
nodesRef: n,
addNode: r,
removeNode: i,
events: a
})), [n, r, i, a])
}, t)
}
function ad(e) {
return "data-floating-ui-" + e
}
function od(e) {
let t = (0, Pe.useRef)(e);
return Uu((() => {
t.current = e
})), t
}
let sd = ad("safe-polygon");
function ld(e, t, n) {
return n && !nc(n) ? 0 : "number" == typeof e ? e : null == e ? void 0 : e[t]
}
function cd(e, t) {
let n = e.filter((e => {
var n;
return e.parentId === t && (null == (n = e.context) ? void 0 : n.open)
})),
r = n;
for (; r.length;) r = e.filter((e => {
var t;
return null == (t = r) ? void 0 : t.some((t => {
var n;
return e.parentId === t.id && (null == (n = e.context) ? void 0 : n.open)
}))
})), n = n.concat(r);
return n
}
let ud = new WeakMap,
dd = new WeakSet,
pd = {},
hd = 0,
fd = e => e && (e.host || fd(e.parentNode));
function md(e, t, n) {
void 0 === t && (t = !1), void 0 === n && (n = !1);
let r = rc(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 = fd(t);
return e.contains(n) ? n : null
})).filter((e => null != e)))(t, e),
s = new Set,
l = new Set(o),
c = [];
pd[i] || (pd[i] = new WeakMap);
let u = pd[i];
return o.forEach((function e(t) {
t && !s.has(t) && (s.add(t), t.parentNode && e(t.parentNode))
})),
function e(t) {
!t || l.has(t) || Array.prototype.forEach.call(t.children, (t => {
if (s.has(t)) e(t);
else {
let e = a ? t.getAttribute(a) : null,
n = null !== e && "false" !== e,
r = (ud.get(t) || 0) + 1,
o = (u.get(t) || 0) + 1;
ud.set(t, r), u.set(t, o), c.push(t), 1 === r && n && dd.add(t), 1 === o && t.setAttribute(i, ""), !n && a && t.setAttribute(a, "true")
}
}))
}(t), s.clear(), hd++, () => {
c.forEach((e => {
let t = (ud.get(e) || 0) - 1,
n = (u.get(e) || 0) - 1;
ud.set(e, t), u.set(e, n), t || (!dd.has(e) && a && e.removeAttribute(a), dd.delete(e)), n || e.removeAttribute(i)
})), --hd || (ud = new WeakMap, ud = new WeakMap, dd = new WeakSet, pd = {})
}
}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))), r, t, n)
}
let gd = () => ({
getShadowRoot: !0,
displayCheck: "function" == typeof ResizeObserver && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
});
function vd(e, t) {
let n = Su(e, gd());
"prev" === t && n.reverse();
let r = n.indexOf(Yl(rc(e)));
return n.slice(r + 1)[0]
}
function _d() {
return vd(document.body, "next")
}
function yd() {
return vd(document.body, "prev")
}
function bd(e, t) {
let n = t || e.currentTarget,
r = e.relatedTarget;
return !r || !Kl(n, r)
}
let xd = {
border: 0,
clip: "rect(0 0 0 0)",
height: "1px",
margin: "-1px",
overflow: "hidden",
padding: 0,
position: "fixed",
whiteSpace: "nowrap",
width: "1px",
top: 0,
left: 0
};
function wd(e) {
"Tab" === e.key && (e.target, clearTimeout(undefined))
}
let kd = Pe.forwardRef((function(e, t) {
let [n, r] = Pe.useState();
Uu((() => (Jl() && r("button"), document.addEventListener("keydown", wd), () => {
document.removeEventListener("keydown", wd)
})), []);
let i = {
ref: t,
tabIndex: 0,
role: n,
"aria-hidden": !n || void 0,
[ad("focus-guard")]: "",
style: xd
};
return Pe.createElement("span", qu({}, e, i))
})),
Ed = Pe.createContext(null);
function Sd(e) {
let {
children: t,
id: n,
root: r = null,
preserveTabOrder: i = !0
} = e, a = function(e) {
let {
id: t,
root: n
} = void 0 === e ? {} : e, [r, i] = Pe.useState(null), a = Ku(), o = Od(), s = Pe.useMemo((() => ({
id: t,
root: n,
portalContext: o,
uniqueId: a
})), [t, n, o, a]), l = Pe.useRef();
return Uu((() => () => {
null == r || r.remove()
}), [r, s]), Uu((() => {
if (l.current === s) return;
l.current = s;
let {
id: e,
root: t,
portalContext: n,
uniqueId: r
} = s, a = e ? document.getElementById(e) : null, o = ad("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 && !ql(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");
l.id = r, l.setAttribute(o, ""), (a = s || a).appendChild(l), i(l)
}
}), [s]), r
}({
id: n,
root: r
}), [o, s] = Pe.useState(null), l = Pe.useRef(null), c = Pe.useRef(null), u = Pe.useRef(null), d = Pe.useRef(null), p = !!o && !o.modal && o.open && i && !(!r && !a);
return Pe.useEffect((() => {
if (a && i && (null == o || !o.modal)) return a.addEventListener("focusin", e, !0), a.addEventListener("focusout", e, !0), () => {
a.removeEventListener("focusin", e, !0), a.removeEventListener("focusout", e, !0)
};
function e(e) {
if (a && bd(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) {
Su(e, gd()).forEach((e => {
e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1")
}))
})(a)
}
}
}), [a, i, null == o ? void 0 : o.modal]), Pe.createElement(Ed.Provider, {
value: Pe.useMemo((() => ({
preserveTabOrder: i,
beforeOutsideRef: l,
afterOutsideRef: c,
beforeInsideRef: u,
afterInsideRef: d,
portalNode: a,
setFocusManagerState: s
})), [i, a])
}, p && a && Pe.createElement(kd, {
"data-type": "outside",
ref: l,
onFocus: e => {
if (bd(e, a)) {
var t;
null == (t = u.current) || t.focus()
} else {
let e = yd() || (null == o ? void 0 : o.refs.domReference.current);
null == e || e.focus()
}
}
}), p && a && Pe.createElement("span", {
"aria-owns": a.id,
style: xd
}), a && (0, zi.createPortal)(t, a), p && a && Pe.createElement(kd, {
"data-type": "outside",
ref: c,
onFocus: e => {
if (bd(e, a)) {
var t;
null == (t = d.current) || t.focus()
} else {
let t = _d() || (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 Od = () => Pe.useContext(Ed),
Pd = Pe.forwardRef((function(e, t) {
return Pe.createElement("button", qu({}, e, {
type: "button",
ref: t,
tabIndex: -1,
style: xd
}))
}));
function Id(e) {
let {
context: t,
children: n,
disabled: r = !1,
order: i = ["content"],
guards: a = !0,
initialFocus: o = 0,
returnFocus: s = !0,
modal: l = !0,
visuallyHiddenDismiss: c = !1,
closeOnFocusOut: u = !0
} = e, {
open: d,
refs: p,
nodeId: h,
onOpenChange: f,
events: m,
dataRef: g,
elements: {
domReference: v,
floating: _
}
} = t, y = "number" == typeof o && o < 0, b = "combobox" === (null == v ? void 0 : v.getAttribute("role")) && oc(v) && y, x = !b && l, w = !("undefined" != typeof HTMLElement && "inert" in HTMLElement.prototype) || a, k = od(i), E = od(o), S = od(s), O = td(), P = Od(), I = Pe.useRef(null), A = Pe.useRef(null), C = Pe.useRef(!1), R = Pe.useRef(null), T = Pe.useRef(!1), D = null != P, N = Pe.useCallback((function(e) {
return void 0 === e && (e = _), e ? Su(e, gd()) : []
}), [_]), L = Pe.useCallback((e => {
let t = N(e);
return k.current.map((e => v && "reference" === e ? v : _ && "floating" === e ? _ : t)).filter(Boolean).flat()
}), [v, _, k, N]);
function j(e) {
return !r && c && x ? Pe.createElement(Pd, {
ref: "start" === e ? I : A,
onClick: e => f(!1, e.nativeEvent)
}, "string" == typeof c ? c : "Dismiss") : null
}
Pe.useEffect((() => {
if (r || !x) return;
function e(e) {
if ("Tab" === e.key) {
Kl(_, Yl(rc(_))) && 0 === N().length && !b && sc(e);
let t = L(),
n = ac(e);
"reference" === k.current[0] && n === v && (sc(e), e.shiftKey ? Fu(t[t.length - 1]) : Fu(t[1])), "floating" === k.current[1] && n === _ && e.shiftKey && (sc(e), Fu(t[0]))
}
}
let t = rc(_);
return t.addEventListener("keydown", e), () => {
t.removeEventListener("keydown", e)
}
}), [r, v, _, x, k, p, b, N, L]), Pe.useEffect((() => {
if (!r && u && _ && Wl(v)) return v.addEventListener("focusout", t), v.addEventListener("pointerdown", e), x || _.addEventListener("focusout", t), () => {
v.removeEventListener("focusout", t), v.removeEventListener("pointerdown", e), x || _.removeEventListener("focusout", t)
};
function e() {
T.current = !0, setTimeout((() => {
T.current = !1
}))
}
function t(e) {
let t = e.relatedTarget;
queueMicrotask((() => {
let n = !(Kl(v, t) || Kl(_, t) || Kl(t, _) || Kl(null == P ? void 0 : P.portalNode, t) || null != t && t.hasAttribute(ad("focus-guard")) || O && (cd(O.nodesRef.current, h).find((e => {
var n, r;
return Kl(null == (n = e.context) ? void 0 : n.elements.floating, t) || Kl(null == (r = e.context) ? void 0 : r.elements.domReference, t)
})) || function(e, t) {
var n;
let r = [],
i = null == (n = e.find((e => e.id === t))) ? void 0 : n.parentId;
for (; i;) {
let t = e.find((e => e.id === i));
i = null == t ? void 0 : t.parentId, t && (r = r.concat(t))
}
return r
}(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 && !T.current && t !== R.current && (C.current = !0, f(!1, e))
}))
}
}), [r, v, _, x, h, O, P, f, u]), Pe.useEffect((() => {
var e;
if (r) return;
let t = Array.from((null == P || null == (e = P.portalNode) ? void 0 : e.querySelectorAll("[" + ad("portal") + "]")) || []);
if (_) {
let e = [_, ...t, I.current, A.current, k.current.includes("reference") || b ? v : null].filter((e => null != e)),
n = l || b ? md(e, w, !w) : md(e);
return () => {
n()
}
}
}), [r, v, _, l, k, P, b, w]), Uu((() => {
if (r || !_) return;
let e = Yl(rc(_));
queueMicrotask((() => {
let t = L(_),
n = E.current,
r = ("number" == typeof n ? t[n] : n.current) || _,
i = Kl(_, e);
y || i || !d || Fu(r, {
preventScroll: r === _
})
}))
}), [r, d, _, y, L, E]), Uu((() => {
if (r || !_) return;
let e = !1,
t = rc(_),
n = Yl(t),
i = g.current;
function a(t) {
let {
reason: n,
event: r,
nested: i
} = t;
"escape-key" === n && p.domReference.current && (R.current = p.domReference.current), "hover" === n && "mouseleave" === r.type && (C.current = !0), "outside-press" === n && (i ? (C.current = !1, e = !0) : C.current = !(Zl(r) || Xl(r)))
}
return R.current = n, m.on("openchange", a), () => {
m.off("openchange", a);
let r = Yl(t),
o = Kl(_, r) || O && cd(O.nodesRef.current, h).some((e => {
var t;
return Kl(null == (t = e.context) ? void 0 : t.elements.floating, r)
}));
(o || i.openEvent && ["click", "mousedown"].includes(i.openEvent.type)) && p.domReference.current && (R.current = p.domReference.current), S.current && Wl(R.current) && !C.current && (n === r || r === t.body || o) && Fu(R.current, {
cancelPrevious: !1,
preventScroll: e
})
}
}), [r, _, S, g, p, m, O, h]), Uu((() => {
if (!r && P) return P.setFocusManagerState({
modal: x,
closeOnFocusOut: u,
open: d,
onOpenChange: f,
refs: p
}), () => {
P.setFocusManagerState(null)
}
}), [r, P, x, d, f, p, u]), Uu((() => {
if (r || !_ || "function" != typeof MutationObserver || y) return;
let e = () => {
let e = _.getAttribute("tabindex");
k.current.includes("floating") || Yl(rc(_)) !== p.domReference.current && 0 === N().length ? "0" !== e && _.setAttribute("tabindex", "0") : "-1" !== e && _.setAttribute("tabindex", "-1")
};
e();
let t = new MutationObserver(e);
return t.observe(_, {
childList: !0,
subtree: !0,
attributes: !0
}), () => {
t.disconnect()
}
}), [r, _, p, k, N, y]);
let M = !r && w && (D || x);
return Pe.createElement(Pe.Fragment, null, M && Pe.createElement(kd, {
"data-type": "inside",
ref: null == P ? void 0 : P.beforeInsideRef,
onFocus: e => {
if (x) {
let e = L();
Fu("reference" === i[0] ? e[0] : e[e.length - 1])
} else if (null != P && P.preserveTabOrder && P.portalNode)
if (C.current = !1, bd(e, P.portalNode)) {
let e = _d() || v;
null == e || e.focus()
} else {
var t;
null == (t = P.beforeOutsideRef.current) || t.focus()
}
}
}), !b && j("start"), n, j("end"), M && Pe.createElement(kd, {
"data-type": "inside",
ref: null == P ? void 0 : P.afterInsideRef,
onFocus: e => {
if (x) Fu(L()[0]);
else if (null != P && P.preserveTabOrder && P.portalNode)
if (u && (C.current = !0), bd(e, P.portalNode)) {
let e = yd() || v;
null == e || e.focus()
} else {
var t;
null == (t = P.afterOutsideRef.current) || t.focus()
}
}
}))
}
let Ad = new Set,
Cd = Pe.forwardRef((function(e, t) {
let {
lockScroll: n = !1,
...r
} = e, i = Ku();
return Uu((() => {
if (!n) return;
Ad.add(i);
let e = /iP(hone|ad|od)|iOS/.test(Ql()),
t = document.body.style,
r = Math.round(document.documentElement.getBoundingClientRect().left) + document.documentElement.scrollLeft ? "paddingLeft" : "paddingRight",
a = window.innerWidth - document.documentElement.clientWidth,
o = t.left ? parseFloat(t.left) : window.pageXOffset,
s = t.top ? parseFloat(t.top) : window.pageYOffset;
if (t.overflow = "hidden", a && (t[r] = a + "px"), e) {
var l, c;
let e = (null == (l = window.visualViewport) ? void 0 : l.offsetLeft) || 0,
n = (null == (c = window.visualViewport) ? void 0 : c.offsetTop) || 0;
Object.assign(t, {
position: "fixed",
top: -(s - Math.floor(n)) + "px",
left: -(o - Math.floor(e)) + "px",
right: "0"
})
}
return () => {
Ad.delete(i), 0 === Ad.size && (Object.assign(t, {
overflow: "",
[r]: ""
}), e && (Object.assign(t, {
position: "",
top: "",
left: "",
right: ""
}), window.scrollTo(o, s)))
}
}), [i, n]), Pe.createElement("div", qu({
ref: t
}, r, {
style: {
position: "fixed",
overflow: "auto",
top: 0,
right: 0,
bottom: 0,
left: 0,
...r.style
}
}))
}));
function Rd(e) {
return Wl(e.target) && "BUTTON" === e.target.tagName
}
function Td(e, t) {
void 0 === t && (t = {});
let {
open: n,
onOpenChange: r,
dataRef: i,
elements: {
domReference: a
}
} = e, {
enabled: o = !0,
event: s = "click",
toggle: l = !0,
ignoreMouse: c = !1,
keyboardHandlers: u = !0
} = t, d = Pe.useRef(), p = Pe.useRef(!1);
return Pe.useMemo((() => o ? {
reference: {
onPointerDown(e) {
d.current = e.pointerType
},
onMouseDown(e) {
0 !== e.button || nc(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 : nc(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 || Rd(e) || (" " !== e.key || oc(a) || (e.preventDefault(), p.current = !0), "Enter" === e.key && r(!n || !l, e.nativeEvent, "click"))
},
onKeyUp(e) {
!e.defaultPrevented && u && !Rd(e) && !oc(a) && " " === e.key && p.current && (p.current = !1, r(!n || !l, e.nativeEvent, "click"))
}
}
} : {}), [o, i, s, c, u, a, l, n, r])
}
let Dd = {
pointerdown: "onPointerDown",
mousedown: "onMouseDown",
click: "onClick"
},
Nd = {
pointerdown: "onPointerDownCapture",
mousedown: "onMouseDownCapture",
click: "onClickCapture"
},
Ld = e => {
var t, n;
return {
escapeKey: "boolean" == typeof e ? e : null != (t = null == e ? void 0 : e.escapeKey) && t,
outsidePress: "boolean" == typeof e ? e : null == (n = null == e ? void 0 : e.outsidePress) || n
}
};
function jd(e, t) {
void 0 === t && (t = {});
let {
open: n,
onOpenChange: r,
nodeId: i,
elements: {
reference: a,
domReference: o,
floating: s
},
dataRef: l
} = e, {
enabled: c = !0,
escapeKey: u = !0,
outsidePress: d = !0,
outsidePressEvent: p = "pointerdown",
referencePress: h = !1,
referencePressEvent: f = "pointerdown",
ancestorScroll: m = !1,
bubbles: g,
capture: v
} = t, _ = td(), y = Iu("function" == typeof d ? d : () => !1), b = "function" == typeof d ? y : d, x = Pe.useRef(!1), w = Pe.useRef(!1), {
escapeKey: k,
outsidePress: E
} = Ld(g), {
escapeKey: S,
outsidePress: O
} = Ld(v), P = Iu((e => {
if (!n || !c || !u || "Escape" !== e.key) return;
let t = _ ? cd(_.nodesRef.current, i) : [];
if (!k && (e.stopPropagation(), t.length > 0)) {
let e = !0;
if (t.forEach((t => {
var n;
null == (n = t.context) || !n.open || t.context.dataRef.current.__escapeKeyBubbles || (e = !1)
})), !e) return
}
r(!1, "nativeEvent" in e ? e.nativeEvent : e, "escape-key")
})), I = Iu((e => {
var t;
let n = () => {
var t;
P(e), null == (t = ac(e)) || t.removeEventListener("keydown", n)
};
null == (t = ac(e)) || t.addEventListener("keydown", n)
})), A = Iu((e => {
let t = x.current;
x.current = !1;
let n = w.current;
if (w.current = !1, "click" === p && n || t || "function" == typeof b && !b(e)) return;
let a = ac(e),
l = "[" + ad("inert") + "]",
c = rc(s).querySelectorAll(l),
u = ql(a) ? a : null;
for (; u && !["html", "body", "#document"].includes(Gl(u));) {
let e = function(e) {
var t;
if ("html" === Gl(e)) return e;
let n = e.assignedSlot || e.parentNode || Hl(e) && e.host || (null == (t = ($l(e) ? e.ownerDocument : e.document) || window.document) ? void 0 : t.documentElement);
return Hl(n) ? n.host : n
}(u);
if (e === rc(s).body || !ql(e)) break;
u = e
}
if (c.length && ql(a) && !a.matches("html,body") && !Kl(a, s) && Array.from(c).every((e => !Kl(u, e)))) return;
if (Wl(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" === Bl(a).getComputedStyle(a).direction && (r = e.offsetX <= a.offsetWidth - a.clientWidth)
}
if (r || t && e.offsetY > a.clientHeight) return
}
let d = _ && cd(_.nodesRef.current, i).some((t => {
var n;
return ic(e, null == (n = t.context) ? void 0 : n.elements.floating)
}));
if (ic(e, s) || ic(e, o) || d) return;
let h = _ ? cd(_.nodesRef.current, i) : [];
if (h.length > 0) {
let e = !0;
if (h.forEach((t => {
var n;
null == (n = t.context) || !n.open || t.context.dataRef.current.__outsidePressBubbles || (e = !1)
})), !e) return
}
r(!1, e, "outside-press")
})), C = Iu((e => {
var t;
let n = () => {
var t;
A(e), null == (t = ac(e)) || t.removeEventListener(p, n)
};
null == (t = ac(e)) || t.addEventListener(p, n)
}));
return Pe.useEffect((() => {
if (!n || !c) return;
function e(e) {
r(!1, e, "ancestor-scroll")
}
l.current.__escapeKeyBubbles = k, l.current.__outsidePressBubbles = E;
let t = rc(s);
u && t.addEventListener("keydown", S ? I : P, S), b && t.addEventListener(p, O ? C : A, O);
let i = [];
return m && (ql(o) && (i = Wc(o)), ql(s) && (i = i.concat(Wc(s))), !ql(a) && a && a.contextElement && (i = i.concat(Wc(a.contextElement)))), (i = i.filter((e => {
var n;
return e !== (null == (n = t.defaultView) ? void 0 : n.visualViewport)
}))).forEach((t => {
t.addEventListener("scroll", e, {
passive: !0
})
})), () => {
u && t.removeEventListener("keydown", S ? I : P, S), b && t.removeEventListener(p, O ? C : A, O), i.forEach((t => {
t.removeEventListener("scroll", e)
}))
}
}), [l, s, o, a, u, b, p, n, r, m, c, k, E, P, S, I, A, O, C]), Pe.useEffect((() => {
x.current = !1
}), [b, p]), Pe.useMemo((() => c ? {
reference: {
onKeyDown: P,
[Dd[f]]: e => {
h && r(!1, e.nativeEvent, "reference-press")
}
},
floating: {
onKeyDown: P,
onMouseDown() {
w.current = !0
},
onMouseUp() {
w.current = !0
},
[Nd[p]]: () => {
x.current = !0
}
}
} : {}), [c, h, p, f, r, P])
}
function Md(e) {
var t;
void 0 === e && (e = {});
let {
open: n = !1,
onOpenChange: r,
nodeId: i
} = e;
let [a, o] = Pe.useState(null), s = (null == (t = e.elements) ? void 0 : t.reference) || a, l = function(e) {
void 0 === e && (e = {});
let {
placement: t = "bottom",
strategy: n = "absolute",
middleware: r = [],
platform: i,
elements: {
reference: a,
floating: o
} = {},
transform: s = !0,
whileElementsMounted: l,
open: c
} = e, [u, d] = Pe.useState({
x: 0,
y: 0,
strategy: n,
placement: t,
middlewareData: {},
isPositioned: !1
}), [p, h] = Pe.useState(r);
lu(p, r) || h(r);
let [f, m] = Pe.useState(null), [g, v] = Pe.useState(null), _ = Pe.useCallback((e => {
e != w.current && (w.current = e, m(e))
}), [m]), y = Pe.useCallback((e => {
e !== k.current && (k.current = e, v(e))
}), [v]), b = a || f, x = o || g, w = Pe.useRef(null), k = Pe.useRef(null), E = Pe.useRef(u), S = du(l), O = du(i), P = Pe.useCallback((() => {
if (!w.current || !k.current) return;
let e = {
placement: t,
strategy: n,
middleware: p
};
O.current && (e.platform = O.current), au(w.current, k.current, e).then((e => {
let t = {
...e,
isPositioned: !0
};
I.current && !lu(E.current, t) && (E.current = t, zi.flushSync((() => {
d(t)
})))
}))
}), [p, t, n, O]);
su((() => {
!1 === c && E.current.isPositioned && (E.current.isPositioned = !1, d((e => ({
...e,
isPositioned: !1
}))))
}), [c]);
let I = Pe.useRef(!1);
su((() => (I.current = !0, () => {
I.current = !1
})), []), su((() => {
if (b && (w.current = b), x && (k.current = x), b && x) {
if (S.current) return S.current(b, x, P);
P()
}
}), [b, x, P, S]);
let A = Pe.useMemo((() => ({
reference: w,
floating: k,
setReference: _,
setFloating: y
})), [_, y]),
C = Pe.useMemo((() => ({
reference: b,
floating: x
})), [b, x]),
R = Pe.useMemo((() => {
let e = {
position: n,
left: 0,
top: 0
};
if (!C.floating) return e;
let t = uu(C.floating, u.x),
r = uu(C.floating, u.y);
return s ? {
...e,
transform: "translate(" + t + "px, " + r + "px)",
...cu(C.floating) >= 1.5 && {
willChange: "transform"
}
} : {
position: n,
left: t,
top: r
}
}), [n, s, C.floating, u.x, u.y]);
return Pe.useMemo((() => ({
...u,
update: P,
refs: A,
elements: C,
floatingStyles: R
})), [u, P, A, C, R])
}(e), c = td(), u = null != ed(), d = Iu(((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 = Pe.useRef(null), h = Pe.useRef({}), f = Pe.useState((() => Zu()))[0], m = Ku(), g = Pe.useCallback((e => {
let t = ql(e) ? {
getBoundingClientRect: () => e.getBoundingClientRect(),
contextElement: e
} : e;
l.refs.setReference(t)
}), [l.refs]), v = Pe.useCallback((e => {
(ql(e) || null === e) && (p.current = e, o(e)), (ql(l.refs.reference.current) || null === l.refs.reference.current || null !== e && !ql(e)) && l.refs.setReference(e)
}), [l.refs]), _ = Pe.useMemo((() => ({
...l.refs,
setReference: v,
setPositionReference: g,
domReference: p
})), [l.refs, v, g]), y = Pe.useMemo((() => ({
...l.elements,
domReference: s
})), [l.elements, s]), b = Pe.useMemo((() => ({
...l,
refs: _,
elements: y,
dataRef: h,
nodeId: i,
floatingId: m,
events: f,
open: n,
onOpenChange: d
})), [l, i, m, f, n, d, _, y]);
return Uu((() => {
let e = null == c ? void 0 : c.nodesRef.current.find((e => e.id === i));
e && (e.context = b)
})), Pe.useMemo((() => ({
...l,
context: b,
refs: _,
elements: y
})), [l, _, y, b])
}
function zd(e, t, n) {
let r = new Map;
return {
..."floating" === n && {
tabIndex: -1
},
...e,
...t.map((e => e ? e[n] : null)).concat(e).reduce(((e, t) => (t && Object.entries(t).forEach((t => {
let [n, i] = t;
var a;
0 === n.indexOf("on") ? (r.has(n) || r.set(n, []), "function" == typeof i && (null == (a = r.get(n)) || a.push(i), e[n] = function() {
for (var e, t = arguments.length, i = Array(t), a = 0; a < t; a++) i[a] = arguments[a];
return null == (e = r.get(n)) ? void 0 : e.map((e => e(...i))).find((e => void 0 !== e))
})) : e[n] = i
})), e)), {})
}
}
function Fd(e) {
void 0 === e && (e = []);
let t = e,
n = Pe.useCallback((t => zd(t, e, "reference")), t),
r = Pe.useCallback((t => zd(t, e, "floating")), t),
i = Pe.useCallback((t => zd(t, e, "item")), e.map((e => null == e ? void 0 : e.item)));
return Pe.useMemo((() => ({
getReferenceProps: n,
getFloatingProps: r,
getItemProps: i
})), [n, r, i])
}
let Ud = !1;
function Vd(e, t, n) {
switch (e) {
case "vertical":
return t;
case "horizontal":
return n;
default:
return t || n
}
}
function Gd(e, t) {
return Vd(t, e === Au || e === Cu, e === Ru || e === Tu)
}
function Bd(e, t, n) {
return Vd(t, e === Cu, n ? e === Ru : e === Tu) || "Enter" === e || " " == e || "" === e
}
function $d(e, t, n) {
return Vd(t, n ? e === Tu : e === Ru, e === Au)
}
function qd(e, t) {
let {
open: n,
onOpenChange: r,
refs: i,
elements: {
domReference: a,
floating: o
}
} = e, {
listRef: s,
activeIndex: l,
onNavigate: c = (() => {}),
enabled: u = !0,
selectedIndex: d = null,
allowEscape: p = !1,
loop: h = !1,
nested: f = !1,
rtl: m = !1,
virtual: g = !1,
focusItemOnOpen: v = "auto",
focusItemOnHover: _ = !0,
openOnArrowKeyDown: y = !0,
disabledIndices: b,
orientation: x = "vertical",
cols: w = 1,
scrollItemIntoView: k = !0,
virtualItemRef: E
} = t, S = ed(), O = td(), P = Iu(c), I = Pe.useRef(v), A = Pe.useRef(null != d ? d : -1), C = Pe.useRef(null), R = Pe.useRef(!0), T = Pe.useRef(P), D = Pe.useRef(!!o), N = Pe.useRef(!1), L = Pe.useRef(!1), j = od(b), M = od(n), z = od(k), [F, U] = Pe.useState(), [V, G] = Pe.useState(), B = Iu((function(e, t, n) {
void 0 === n && (n = !1);
let r = e.current[t.current];
r && (g ? (U(r.id), null == O || O.events.emit("virtualfocus", r), E && (E.current = r)) : Fu(r, {
preventScroll: !0,
sync: !(!tc() || !Jl()) && (Ud || N.current)
}), requestAnimationFrame((() => {
let e = z.current;
e && r && (n || !R.current) && (null == r.scrollIntoView || r.scrollIntoView("boolean" == typeof e ? {
block: "nearest",
inline: "nearest"
} : e))
})))
}));
Uu((() => {
document.createElement("div").focus({
get preventScroll() {
return Ud = !0, !1
}
})
}), []), Uu((() => {
u && (n && o ? I.current && null != d && (L.current = !0, P(d)) : D.current && (A.current = -1, T.current(null)))
}), [u, n, o, d, P]), Uu((() => {
if (u && n && o)
if (null == l) {
if (N.current = !1, null == d && (D.current && (A.current = -1, B(s, A)), !D.current && I.current && (null != C.current || !0 === I.current && null == C.current))) {
let e = 0,
t = () => {
if (null == s.current[0]) {
if (e < 2) {
(e ? requestAnimationFrame : queueMicrotask)(t)
}
e++
} else A.current = null == C.current || Bd(C.current, x, m) || f ? Lu(s, j.current) : ju(s, j.current), C.current = null, P(A.current)
};
t()
}
} else Nu(s, l) || (A.current = l, B(s, A, L.current), L.current = !1)
}), [u, n, o, l, d, f, s, x, m, P, B, j]), Uu((() => {
var e, t;
if (!u || o || !O || g || !D.current) return;
let n = O.nodesRef.current,
r = null == (e = n.find((e => e.id === S))) || null == (t = e.context) ? void 0 : t.elements.floating,
i = Yl(rc(o)),
a = n.some((e => e.context && Kl(e.context.elements.floating, i)));
r && !a && R.current && r.focus({
preventScroll: !0
})
}), [u, o, O, S, g]), Uu((() => {
if (u && O && g && !S) return O.events.on("virtualfocus", e), () => {
O.events.off("virtualfocus", e)
};
function e(e) {
G(e.id), E && (E.current = e)
}
}), [u, O, g, S, E]), Uu((() => {
T.current = P, D.current = !!o
})), Uu((() => {
n || (C.current = null)
}), [n]);
let $ = null != l,
q = Pe.useMemo((() => {
function e(e) {
if (!n) return;
let t = s.current.indexOf(e); - 1 !== t && P(t)
}
let t = {
onFocus(t) {
let {
currentTarget: n
} = t;
e(n)
},
onClick: e => {
let {
currentTarget: t
} = e;
return t.focus({
preventScroll: !0
})
},
..._ && {
onMouseMove(t) {
let {
currentTarget: n
} = t;
e(n)
},
onPointerLeave(e) {
let {
pointerType: t
} = e;
R.current && "touch" !== t && (A.current = -1, B(s, A), P(null), g || Fu(i.floating.current, {
preventScroll: !0
}))
}
}
};
return t
}), [n, i, B, _, s, P, g]);
return Pe.useMemo((() => {
if (!u) return {};
let e = j.current;
function t(t) {
if (R.current = !1, N.current = !0, !M.current && t.currentTarget === i.floating.current) return;
if (f && $d(t.key, x, m)) return sc(t), r(!1, t.nativeEvent, "list-navigation"), void(Wl(a) && !g && a.focus());
let o = A.current,
l = Lu(s, e),
c = ju(s, e);
if ("Home" === t.key && (sc(t), A.current = l, P(A.current)), "End" === t.key && (sc(t), A.current = c, P(A.current)), (!(w > 1) || (A.current = function(e, t) {
let {
event: n,
orientation: r,
loop: i,
cols: a,
disabledIndices: o,
minIndex: s,
maxIndex: l,
prevIndex: c,
stopEvent: u = !1
} = t, d = c;
if (n.key === Au) {
if (u && sc(n), -1 === c) d = l;
else if (d = Mu(e, {
startingIndex: d,
amount: a,
decrement: !0,
disabledIndices: o
}), i && (c - a < s || d < 0)) {
let e = c % a,
t = l % a,
n = l - (t - e);
d = t === e ? l : t > e ? n : n - a
}
Nu(e, d) && (d = c)
}
if (n.key === Cu && (u && sc(n), -1 === c ? d = s : (d = Mu(e, {
startingIndex: c,
amount: a,
disabledIndices: o
}), i && c + a > l && (d = Mu(e, {
startingIndex: c % a - a,
amount: a,
disabledIndices: o
}))), Nu(e, d) && (d = c)), "both" === r) {
let t = lc(c / a);
n.key === Tu && (u && sc(n), c % a != a - 1 ? (d = Mu(e, {
startingIndex: c,
disabledIndices: o
}), i && Du(d, a, t) && (d = Mu(e, {
startingIndex: c - c % a - 1,
disabledIndices: o
}))) : i && (d = Mu(e, {
startingIndex: c - c % a - 1,
disabledIndices: o
})), Du(d, a, t) && (d = c)), n.key === Ru && (u && sc(n), c % a != 0 ? (d = Mu(e, {
startingIndex: c,
disabledIndices: o,
decrement: !0
}), i && Du(d, a, t) && (d = Mu(e, {
startingIndex: c + (a - c % a),
decrement: !0,
disabledIndices: o
}))) : i && (d = Mu(e, {
startingIndex: c + (a - c % a),
decrement: !0,
disabledIndices: o
})), Du(d, a, t) && (d = c));
let r = lc(l / a) === t;
Nu(e, d) && (d = i && r ? n.key === Ru ? l : Mu(e, {
startingIndex: c - c % a - 1,
disabledIndices: o
}) : c)
}
return d
}(s, {
event: t,
orientation: x,
loop: h,
cols: w,
disabledIndices: e,
minIndex: l,
maxIndex: c,
prevIndex: A.current,
stopEvent: !0
}), P(A.current), "both" !== x)) && Gd(t.key, x)) {
if (sc(t), n && !g && Yl(t.currentTarget.ownerDocument) === t.currentTarget) return A.current = Bd(t.key, x, m) ? l : c, void P(A.current);
Bd(t.key, x, m) ? A.current = h ? o >= c ? p && o !== s.current.length ? -1 : l : Mu(s, {
startingIndex: o,
disabledIndices: e
}) : Math.min(c, Mu(s, {
startingIndex: o,
disabledIndices: e
})) : A.current = h ? o <= l ? p && -1 !== o ? s.current.length : c : Mu(s, {
startingIndex: o,
decrement: !0,
disabledIndices: e
}) : Math.max(l, Mu(s, {
startingIndex: o,
decrement: !0,
disabledIndices: e
})), Nu(s, A.current) ? P(null) : P(A.current)
}
}
function o(e) {
"auto" === v && Zl(e.nativeEvent) && (I.current = !0)
}
let l = g && n && $ && {
"aria-activedescendant": V || F
},
c = s.current.find((e => (null == e ? void 0 : e.id) === F));
return {
reference: {
...l,
onKeyDown(i) {
var a, o, l, u, p, h;
R.current = !1;
let v = 0 === i.key.indexOf("Arrow"),
_ = (a = i.key, Vd(x, m ? a === Ru : a === Tu, a === Cu)),
b = $d(i.key, x, m),
w = Gd(i.key, x),
k = (f ? _ : w) || "Enter" === i.key || "" === i.key.trim();
if (g && n) {
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), cd(o, r).forEach((e => {
t(e.id, i + 1)
}))
}(l, 0), o.find((t => t.id === e))) : null;
if (v && a && E) {
let e = new KeyboardEvent("keydown", {
key: i.key,
bubbles: !0
});
if (_ || 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 : _ ? c : null;
n && (sc(i), n.dispatchEvent(e), G(void 0))
}
if (w && a.context && a.context.open && a.parentId && i.currentTarget !== a.context.elements.domReference) return sc(i), void(null == (h = a.context.elements.domReference) || h.dispatchEvent(e))
}
return t(i)
}
if (n || y || !v) {
if (k && (C.current = f && w ? null : i.key), f) return void(_ && (sc(i), n ? (A.current = Lu(s, e), P(A.current)) : r(!0, i.nativeEvent, "list-navigation")));
w && (null != d && (A.current = d), sc(i), !n && y ? r(!0, i.nativeEvent, "list-navigation") : t(i), n && P(A.current))
}
},
onFocus() {
n && P(null)
},
onPointerDown: function(e) {
I.current = v, "auto" === v && Xl(e.nativeEvent) && (I.current = !0)
},
onMouseDown: o,
onClick: o
},
floating: {
"aria-orientation": "both" === x ? void 0 : x,
...l,
onKeyDown: t,
onPointerMove() {
R.current = !0
}
},
item: q
}
}), [a, i, F, V, j, M, s, u, x, m, g, n, $, f, d, y, p, w, h, v, P, r, q, O, E])
}
function Wd(e, t) {
void 0 === t && (t = {});
let {
open: n,
floatingId: r
} = e, {
enabled: i = !0,
role: a = "dialog"
} = t, o = Ku();
return Pe.useMemo((() => {
if (!i) return {};
let e = {
id: r,
..."label" !== a && {
role: a
}
};
return "tooltip" === a || "label" === a ? {
reference: {
["aria-" + ("label" === a ? "labelledby" : "describedby")]: n ? r : void 0
},
floating: e
} : {
reference: {
"aria-expanded": n ? "true" : "false",
"aria-haspopup": "alertdialog" === a ? "dialog" : a,
"aria-controls": n ? r : void 0,
..."listbox" === a && {
role: "combobox"
},
..."menu" === a && {
id: o
}
},
floating: {
...e,
..."menu" === a && {
"aria-labelledby": o
}
}
}
}), [i, a, n, r, o])
}
function Hd(e, t) {
void 0 === t && (t = {});
let {
open: n,
elements: {
floating: r
}
} = e, {
duration: i = 250
} = t, a = ("number" == typeof i ? i : i.close) || 0, [o, s] = Pe.useState(!1), [l, c] = Pe.useState("unmounted"), u = function(e, t) {
let [n, r] = Pe.useState(e);
return e && !n && r(!0), Pe.useEffect((() => {
if (!e) {
let e = setTimeout((() => r(!1)), t);
return () => clearTimeout(e)
}
}), [e, t]), n
}(n, a);
return Uu((() => {
o && !u && c("unmounted")
}), [o, u]), Uu((() => {
if (r) {
if (n) {
c("initial");
let e = requestAnimationFrame((() => {
c("open")
}));
return () => {
cancelAnimationFrame(e)
}
}
s(!0), c("close")
}
}), [n, r]), {
isMounted: u,
status: l
}
}
function Yd(e, t) {
var n;
let {
open: r,
dataRef: i
} = e, {
listRef: a,
activeIndex: o,
onMatch: s,
onTypingChange: l,
enabled: c = !0,
findMatch: u = null,
resetMs: d = 750,
ignoreKeys: p = [],
selectedIndex: h = null
} = t, f = Pe.useRef(), m = Pe.useRef(""), g = Pe.useRef(null != (n = null != h ? h : o) ? n : -1), v = Pe.useRef(null), _ = Iu(s), y = Iu(l), b = od(u), x = od(p);
return Uu((() => {
r && (clearTimeout(f.current), v.current = null, m.current = "")
}), [r]), Uu((() => {
var e;
r && "" === m.current && (g.current = null != (e = null != h ? h : o) ? e : -1)
}), [r, h, o]), Pe.useMemo((() => {
if (!c) return {};
function e(e) {
e ? i.current.typing || (i.current.typing = e, y(e)) : i.current.typing && (i.current.typing = e, y(e))
}
function t(e, t, n) {
let r = b.current ? b.current(t, n) : t.find((e => 0 === (null == e ? void 0 : e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));
return r ? e.indexOf(r) : -1
}
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 && sc(n)), null == i || x.current.includes(n.key) || 1 !== n.key.length || n.ctrlKey || n.metaKey || n.altKey) return;
r && " " !== n.key && (sc(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())
}));
o && m.current === n.key && (m.current = "", g.current = v.current), m.current += n.key, clearTimeout(f.current), f.current = setTimeout((() => {
m.current = "", g.current = v.current, e(!1)
}), d);
let s = g.current,
l = t(i, [...i.slice((s || 0) + 1), ...i.slice(0, (s || 0) + 1)], m.current); - 1 !== l ? (_(l), v.current = l) : " " !== n.key && (m.current = "", e(!1))
}
return {
reference: {
onKeyDown: n
},
floating: {
onKeyDown: n,
onKeyUp(t) {
" " === t.key && e(!1)
}
}
}
}), [c, r, i, a, d, x, b, _, y])
}
function Kd(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];
a >= r != c >= r && n <= (l - e) * (r - a) / (c - a) + e && (i = !i)
}
return i
}
let Qd = {
none: 0,
small: 8,
medium: 12,
large: 16
},
Zd = (0, Pe.forwardRef)((({
children: e,
className: t,
content: n,
interactive: r = !0,
offset: i = "medium",
placement: a = "top",
style: o,
title: s,
...l
}, c) => {
var u;
let [d, p] = (0, Pe.useState)(!1), h = (0, Pe.useRef)(null), {
floatingStyles: f,
refs: m,
context: g,
placement: v
} = Md({
open: d,
onOpenChange: p,
placement: a,
whileElementsMounted: iu,
middleware: [ou({
element: h
}), {
name: "flip",
options: u = {
fallbackAxisSideDirection: "start",
crossAxis: a.includes("-")
},
async fn(e) {
var t, n, r, i;
let {
placement: a,
middlewareData: o,
rects: s,
initialPlacement: l,
platform: c,
elements: d
} = e, {
mainAxis: p = !0,
crossAxis: h = !0,
fallbackPlacements: f,
fallbackStrategy: m = "bestFit",
fallbackAxisSideDirection: g = "none",
flipAlignment: v = !0,
..._
} = gc(u, e), y = vc(a), b = vc(l) === l, x = await (null == c.isRTL ? void 0 : c.isRTL(d.floating)), w = f || (b || !v ? [kc(l)] : function(e) {
let t = kc(e);
return [wc(e), t, wc(t)]
}(l));
f || "none" === g || w.push(... function(e, t, n, r) {
let i = _c(e),
a = function(e, t, n) {
let r = ["left", "right"],
i = ["right", "left"];
switch (e) {
case "top":
case "bottom":
return n ? t ? i : r : t ? r : i;
case "left":
case "right":
return t ? ["top", "bottom"] : ["bottom", "top"];
default:
return []
}
}(vc(e), "start" === n, r);
return i && (a = a.map((e => e + "-" + i)), t && (a = a.concat(a.map(wc)))), a
}(l, v, g, x));
let k = [l, ...w],
E = await Pc(e, _),
S = [],
O = (null == (t = o.flip) ? void 0 : t.overflows) || [];
if (p && S.push(E[y]), h) {
let e = function(e, t, n) {
void 0 === n && (n = !1);
let r = _c(e),
i = yc(xc(e)),
a = bc(i),
o = "x" === i ? r === (n ? "end" : "start") ? "right" : "left" : "start" === r ? "bottom" : "top";
return t.reference[a] > t.floating[a] && (o = kc(o)), [o, kc(o)]
}(a, s, x);
S.push(E[e[0]], E[e[1]])
}
if (O = [...O, {
placement: a,
overflows: S
}], !S.every((e => e <= 0))) {
let e = ((null == (n = o.flip) ? void 0 : n.index) || 0) + 1,
t = k[e];
if (t) return {
data: {
index: e,
overflows: O
},
reset: {
placement: t
}
};
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 = 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
}
case "initialPlacement":
s = l
}
if (a !== s) return {
reset: {
placement: s
}
}
}
return {}
}
}, Ac(Qd[i]), Cc({
padding: Qd[i]
})],
transform: !1
}), {
getReferenceProps: _,
getFloatingProps: y
} = Fd([jd(g), function(e, t) {
void 0 === t && (t = {});
let {
open: n,
onOpenChange: r,
events: i,
refs: a,
elements: {
floating: o,
domReference: s
}
} = e, {
enabled: l = !0,
visibleOnly: c = !0
} = t, u = Pe.useRef(!1), d = Pe.useRef(), p = Pe.useRef(!0);
return Pe.useEffect((() => {
if (!l) return;
let e = Bl(s);
function t() {
!n && Wl(s) && s === Yl(rc(s)) && (u.current = !0)
}
function r() {
p.current = !0
}
return e.addEventListener("blur", t), e.addEventListener("keydown", r, !0), () => {
e.removeEventListener("blur", t), e.removeEventListener("keydown", r, !0)
}
}), [o, s, n, l]), Pe.useEffect((() => {
if (l) return i.on("openchange", e), () => {
i.off("openchange", e)
};
function e(e) {
let {
reason: t
} = e;
("reference-press" === t || "escape-key" === t) && (u.current = !0)
}
}), [i, l]), Pe.useEffect((() => () => {
clearTimeout(d.current)
}), []), Pe.useMemo((() => l ? {
reference: {
onPointerDown(e) {
Xl(e.nativeEvent) || (p.current = !1)
},
onMouseLeave() {
u.current = !1
},
onFocus(e) {
if (u.current) return;
let t = ac(e.nativeEvent);
if (c && ql(t)) try {
if (Jl() && tc()) throw Error();
if (!t.matches(":focus-visible")) return
} catch (e) {
if (!p.current && !oc(t)) return
}
r(!0, e.nativeEvent, "focus")
},
onBlur(e) {
u.current = !1;
let t = e.relatedTarget,
n = ql(t) && t.hasAttribute(ad("focus-guard")) && "outside" === t.getAttribute("data-type");
d.current = window.setTimeout((() => {
let i = Yl(s ? s.ownerDocument : document);
if (t || i !== s) {
if (Kl(a.floating.current, t) || Kl(s, t) || n) return;
r(!1, e.nativeEvent, "focus")
}
}))
}
}
} : {}), [l, c, s, a, r])
}(g), function(e, t) {
void 0 === t && (t = {});
let {
open: n,
onOpenChange: r,
dataRef: i,
events: a,
elements: {
domReference: o,
floating: s
},
refs: l
} = e, {
enabled: c = !0,
delay: u = 0,
handleClose: d = null,
mouseOnly: p = !1,
restMs: h = 0,
move: f = !0
} = t, m = td(), g = ed(), v = od(d), _ = od(u), y = Pe.useRef(), b = Pe.useRef(), x = Pe.useRef(), w = Pe.useRef(), k = Pe.useRef(!0), E = Pe.useRef(!1), S = Pe.useRef((() => {})), O = Pe.useCallback((() => {
var e;
let t = null == (e = i.current.openEvent) ? void 0 : e.type;
return (null == t ? void 0 : t.includes("mouse")) && "mousedown" !== t
}), [i]);
Pe.useEffect((() => {
if (c) return a.on("openchange", e), () => {
a.off("openchange", e)
};
function e(e) {
let {
open: t
} = e;
t || (clearTimeout(b.current), clearTimeout(w.current), k.current = !0)
}
}), [c, a]), Pe.useEffect((() => {
if (!c || !v.current || !n) return;
function e(e) {
O() && r(!1, e, "hover")
}
let t = rc(s).documentElement;
return t.addEventListener("mouseleave", e), () => {
t.removeEventListener("mouseleave", e)
}
}), [s, n, r, c, v, i, O]);
let P = Pe.useCallback((function(e, t, n) {
void 0 === t && (t = !0), void 0 === n && (n = "hover");
let i = ld(_.current, "close", y.current);
i && !x.current ? (clearTimeout(b.current), b.current = setTimeout((() => r(!1, e, n)), i)) : t && (clearTimeout(b.current), r(!1, e, n))
}), [_, r]),
I = Pe.useCallback((() => {
S.current(), x.current = void 0
}), []),
A = Pe.useCallback((() => {
if (E.current) {
let e = rc(l.floating.current).body;
e.style.pointerEvents = "", e.removeAttribute(sd), E.current = !1
}
}), [l]);
return Pe.useEffect((() => {
if (c && ql(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)
};
function t() {
return !!i.current.openEvent && ["click", "mousedown"].includes(i.current.openEvent.type)
}
function a(e) {
if (clearTimeout(b.current), k.current = !1, p && !nc(y.current) || h > 0 && 0 === ld(_.current, "open")) return;
let t = ld(_.current, "open", y.current);
t ? b.current = setTimeout((() => {
r(!0, e, "hover")
}), t) : r(!0, e, "hover")
}
function l(r) {
if (t()) return;
S.current();
let i = rc(s);
if (clearTimeout(w.current), v.current) {
n || clearTimeout(b.current), x.current = v.current({
...e,
tree: m,
x: r.clientX,
y: r.clientY,
onClose() {
A(), I(), P(r, !0, "safe-polygon")
}
});
let t = x.current;
return i.addEventListener("mousemove", t), void(S.current = () => {
i.removeEventListener("mousemove", t)
})
}("touch" !== y.current || !Kl(s, r.relatedTarget)) && P(r)
}
function u(n) {
t() || null == v.current || v.current({
...e,
tree: m,
x: n.clientX,
y: n.clientY,
onClose() {
A(), I(), P(n)
}
})(n)
}
}), [o, s, c, e, p, h, f, P, I, A, r, n, m, _, v, i]), Uu((() => {
var e, t, r;
if (c && n && null != (e = v.current) && e.__options.blockPointerEvents && O()) {
let e = rc(s).body;
if (e.setAttribute(sd, ""), e.style.pointerEvents = "none", E.current = !0, ql(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, O]), Uu((() => {
n || (y.current = void 0, I(), A())
}), [n, I, A]), Pe.useEffect((() => () => {
I(), clearTimeout(b.current), clearTimeout(w.current), A()
}), [c, o, I, A]), Pe.useMemo((() => {
if (!c) return {};
function e(e) {
y.current = e.pointerType
}
return {
reference: {
onPointerDown: e,
onPointerEnter: e,
onMouseMove(e) {
n || 0 === h || (clearTimeout(w.current), w.current = setTimeout((() => {
k.current || r(!0, e.nativeEvent, "hover")
}), h))
}
},
floating: {
onMouseEnter() {
clearTimeout(b.current)
},
onMouseLeave(e) {
P(e.nativeEvent, !1)
}
}
}
}), [c, h, n, r, P])
}(g, {
move: !1,
handleClose: r ? function(e) {
let t;
void 0 === e && (e = {});
let {
buffer: n = .5,
blockPointerEvents: r = !1,
requireIntent: i = !0
} = e, a = !1, o = null, s = null, l = performance.now(), c = e => {
let {
x: r,
y: c,
placement: u,
elements: d,
onClose: p,
nodeId: h,
tree: f
} = e;
return function(e) {
function m() {
clearTimeout(t), p()
}
if (clearTimeout(t), !d.domReference || !d.floating || null == u || null == r || null == c) return;
let {
clientX: g,
clientY: v
} = e, _ = [g, v], y = ac(e), b = "mouseleave" === e.type, x = Kl(d.floating, y), w = Kl(d.domReference, y), k = d.domReference.getBoundingClientRect(), E = d.floating.getBoundingClientRect(), S = u.split("-")[0], O = r > E.right - E.width / 2, P = c > E.bottom - E.height / 2, I = _[0] >= k.x && _[0] <= k.x + k.width && _[1] >= k.y && _[1] <= k.y + k.height, A = E.width > k.width, C = E.height > k.height, R = (A ? k : E).left, T = (A ? k : E).right, D = (C ? k : E).top, N = (C ? k : E).bottom;
if (x && (a = !0, !b)) return;
if (w && (a = !1), w && !b) return void(a = !0);
if (b && ql(e.relatedTarget) && Kl(d.floating, e.relatedTarget) || f && cd(f.nodesRef.current, h).some((e => {
let {
context: t
} = e;
return null == t ? void 0 : t.open
}))) return;
if ("top" === S && c >= k.bottom - 1 || "bottom" === S && c <= k.top + 1 || "left" === S && r >= k.right - 1 || "right" === S && r <= k.left + 1) return m();
let L = [];
switch (S) {
case "top":
L = [
[R, k.top + 1],
[R, E.bottom - 1],
[T, E.bottom - 1],
[T, k.top + 1]
];
break;
case "bottom":
L = [
[R, E.top + 1],
[R, k.bottom - 1],
[T, k.bottom - 1],
[T, E.top + 1]
];
break;
case "left":
L = [
[E.right - 1, N],
[E.right - 1, D],
[k.left + 1, D],
[k.left + 1, N]
];
break;
case "right":
L = [
[k.right - 1, N],
[k.right - 1, D],
[E.left + 1, D],
[E.left + 1, N]
]
}
if (!Kd([g, v], L)) {
if (a && !I) return m();
if (!b && i) {
let t = function(e, t) {
let n = performance.now(),
r = n - l;
if (null === o || null === s || 0 === r) return o = e, s = t, l = n, null;
let i = e - o,
a = t - s;
return o = e, s = t, l = n, Math.sqrt(i * i + a * a) / r
}(e.clientX, e.clientY);
if (null !== t && t < .1) return m()
}
Kd([g, v], function(e) {
let [t, r] = e;
switch (S) {
case "top": {
let e = [
[E.left, O || A ? E.bottom - n : E.top],
[E.right, O ? A ? E.bottom - n : E.top : E.bottom - n]
];
return [
[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 = [
[E.left, O || A ? E.top + n : E.bottom],
[E.right, O ? A ? E.top + n : E.bottom : E.top + n]
];
return [
[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 [...[
[P || C ? E.right - n : E.left, E.top],
[P ? C ? E.right - n : E.left : E.right - n, E.bottom]
],
[t + n + 1, C ? r + n / 2 : P ? r + 4 * n : r - 4 * n],
[t + n + 1, C ? r - n / 2 : P ? r + 4 * n : r - 4 * n]
];
case "right": {
let e = [
[P || C ? E.left + n : E.right, E.top],
[P ? C ? E.left + n : E.right : E.left + n, E.bottom]
];
return [
[t - n, C ? r + n / 2 : P ? r + 4 * n : r - 4 * n],
[t - n, C ? r - n / 2 : P ? r + 4 * n : r - 4 * n], ...e
]
}
}
}([r, c])) ? !a && i && (t = window.setTimeout(m, 40)) : m()
}
}
};
return c.__options = {
blockPointerEvents: r
}, c
}() : null
}), Wd(g, {
role: "tooltip"
})]), {
isMounted: b,
status: x
} = Hd(g), w = e.ref, k = Ou([m.setReference, w, c]), {
name: E
} = gl(), S = Us("sol-c-tooltip sol-u-transition-floating", r && "sol-c-tooltip--interactive", t);
return _s.jsxs(_s.Fragment, {
children: [(0, Pe.cloneElement)(e, _({
ref: k
})), b && _s.jsx(Sd, {
children: _s.jsxs(xl, {
as: "div",
className: S,
"data-sol-placement": v,
"data-sol-status": x,
"data-sol-theme": E,
ref: m.setFloating,
style: {
...f,
...o
},
color: "foreground-weak",
variant: "body-s",
...y(l),
children: [s && _s.jsx(xl, {
className: "sol-c-tooltip__title",
color: "foreground",
variant: "emphasis-s",
offset: !0,
children: s
}), n, _s.jsx(Qu, {
className: "sol-c-tooltip__arrow",
context: g,
ref: h,
tipRadius: 2
})]
})
})]
})
})),
Xd = (0, Pe.forwardRef)((({
enabled: e = !0,
children: t,
...n
}, r) => e ? _s.jsx(Zd, {
ref: r,
...n,
children: t
}) : t)),
Jd = Vs((({
as: e = "article",
className: t,
excerpt: n,
external: r,
href: i,
icon: a,
id: o,
image: s,
label: l,
onClick: c,
overlay: u,
subtitle: d,
title: p,
...h
}, f) => {
let m = Js({
..."string" == typeof s ? {
src: s
} : s
}),
g = Js({
..."string" == typeof u ? {
src: u
} : u
}),
v = (0, Pe.useRef)(null),
_ = Ks(o),
{
ref: y,
hasOverflow: b
} = Ys({
content: p
}),
x = (0, Pe.useCallback)((e => {
v.current?.click(), c?.(e)
}), [c]),
w = Us("sol-c-card", s && "sol-c-card--wide", t);
return _s.jsxs(e, {
className: w,
"data-sol-button-group": !0,
id: o,
onClick: x,
ref: f,
...h,
children: [_s.jsxs("div", {
className: "sol-c-card__wrapper",
children: [_s.jsxs(Ll, {
className: "sol-c-card__content",
gap: "150",
vertical: !0,
justify: "end",
children: [_s.jsxs(Ll, {
className: "sol-c-card__heading",
gap: "025",
vertical: !0,
children: [_s.jsx(Xd, {
content: p,
placement: "right",
interactive: !1,
enabled: b,
children: _s.jsx(xl, {
className: "sol-c-card__title",
color: "foreground",
ref: y,
variant: "heading-xs",
truncate: 3,
children: _s.jsx(vl, {
"aria-describedby": l ? _ + "-button" : void 0,
className: "sol-c-card__link",
external: r,
href: i,
ref: v,
children: p
})
})
}), d && _s.jsx(xl, {
className: "sol-c-card__subtitle",
color: "foreground-weak",
variant: "body-xxs",
children: d
})]
}), n && _s.jsx(xl, {
className: "sol-c-card__excerpt",
color: "foreground-weak",
variant: "body-xs",
truncate: 5,
children: n
}), l && _s.jsx(Ol, {
"aria-hidden": "true",
className: "sol-c-card__button",
controlled: !0,
decorative: !0,
icon: r ? Cs : a,
id: _ + "-button",
size: "small",
variant: "plain",
children: l
})]
}), s && _s.jsx("div", {
className: "sol-c-card__media",
children: _s.jsx("img", {
className: Us("sol-c-card__image", m === Zs && "sol-c-card__image--loaded"),
..."string" == typeof s ? {
src: s
} : s,
alt: ""
})
})]
}), s && u && _s.jsx("div", {
"aria-hidden": "true",
className: "sol-c-card__overlay",
children: _s.jsx("img", {
className: Us("sol-c-card__image", g === Zs && "sol-c-card__image--loaded"),
..."string" == typeof u ? {
src: u
} : u,
alt: ""
})
})]
})
}));
ss('@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}}'), ss("@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 ep = Vs((({
children: e,
className: t,
icon: n = Os,
type: r = "informative",
...i
}, a) => {
let o = Us("sol-c-inline-message", `sol-u-color-status-${r}`, t);
return _s.jsxs(Ll, {
className: o,
gap: "050",
ref: a,
...i,
children: [n && _s.jsx(bl, {
className: "sol-c-inline-message__icon",
source: n
}), _s.jsx(xl, {
variant: "body-xs",
children: e
})]
})
})),
tp = (0, Pe.createContext)(null),
np = e => (0, Pe.useContext)(tp)?.getProps(e) ?? e;
ss("@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 rp = (0, Pe.createContext)(null),
ip = () => {
let e = (0, Pe.useContext)(rp);
if (!e) throw Error("FieldGroup components must be wrapped in <FieldGroup />");
return e
},
ap = (0, Pe.forwardRef)((({
className: e,
id: t,
...n
}, r) => {
let i = Ks(t),
{
registerMessage: a,
unregisterMessage: o
} = ip();
(0, Pe.useLayoutEffect)((() => (a(i), () => o(i))), [i, a, o]);
let s = Us("sol-c-choice-group__help", e);
return _s.jsx(xl, {
className: s,
color: "foreground-weak",
id: i,
ref: r,
variant: "body-xs",
...n
})
})),
op = (0, Pe.forwardRef)((({
className: e,
id: t,
...n
}, r) => {
let i = Ks(t),
{
registerMessage: a,
unregisterMessage: o
} = ip();
(0, Pe.useLayoutEffect)((() => (a(i), () => o(i))), [i, a, o]);
let s = Us("sol-c-choice-group__feedback", e);
return _s.jsx(ep, {
"aria-live": "polite",
className: s,
id: i,
ref: r,
type: "negative",
...n
})
})),
sp = (0, Pe.forwardRef)((({
className: e,
...t
}, n) => _s.jsx(Ll, {
className: Us("sol-c-field-group__messages", e),
gap: "100",
ref: n,
vertical: !0,
...t
}))),
lp = (0, Pe.forwardRef)((({
"aria-describedby": e,
"aria-labelledby": t,
children: n,
className: r,
description: i,
error: a,
information: o,
help: s,
id: l,
title: c,
gap: u = "100",
...d
}, p) => {
let h = Ks(l),
f = (() => {
let [e, t] = (0, Pe.useState)([]), n = (0, Pe.useCallback)((e => t((t => [...t, e]))), []), r = (0, Pe.useCallback)((e => t((t => t.filter((t => t !== e))))), []);
return (0, Pe.useMemo)((() => ({
messagesId: e,
registerMessage: n,
unregisterMessage: r
})), [e, n, r])
})(),
{
messagesId: m
} = f,
g = Us("sol-c-field-group", r),
v = (0, Pe.useMemo)((() => {
let t = e ? [e] : [];
return i && t.push(`${h}-description`), m && t.push(...m), t.join(" ")
}), [e, i, m, h]),
_ = (0, Pe.useMemo)((() => {
let e = t ? [t] : [];
return c && e.push(`${h}-title`), e.join(" ")
}), [t, h, c]);
return _s.jsx(rp.Provider, {
value: f,
children: _s.jsxs(Ll, {
align: "start",
"aria-describedby": v,
"aria-labelledby": _,
className: g,
gap: u,
id: h,
ref: p,
role: "group",
vertical: !0,
...d,
children: [(c || i) && _s.jsxs(Ll, {
className: "sol-c-field-group__header",
gap: "050",
vertical: !0,
children: [c && _s.jsx(xl, {
className: "sol-c-field-group__title",
color: "foreground",
id: h + "-title",
variant: "emphasis-s",
children: c
}), i && _s.jsx(xl, {
className: "sol-c-field-group__description",
color: "foreground-weak",
id: h + "-description",
variant: "body-m",
children: i
})]
}), n, (a || o || s) && _s.jsxs(sp, {
children: [a && _s.jsx(op, {
children: a
}), o && _s.jsx(op, {
type: "informative",
children: o
}), s && _s.jsx(ap, {
children: s
})]
})]
})
})
})),
cp = Vs((({
as: e = "div",
className: t,
disabled: n,
required: r,
children: i,
visuallyHiddenLabel: a,
description: o,
defaultChecked: s,
checked: l,
indeterminate: c,
name: u,
value: d,
onBlur: p,
onChange: h,
onFocus: f,
success: m,
warning: g,
error: v,
type: _ = "checkbox",
inputProps: y = {},
inputRef: b,
...x
}, w) => {
let k = Us("sol-c-choice", n && "sol-c-choice--disabled", `sol-c-choice--${_}`, t),
E = (0, Pe.useMemo)((() => _s.jsxs(xl, {
as: "span",
className: "sol-c-choice__label",
color: "foreground",
variant: "label-m",
visuallyHidden: a,
children: [i, r && _s.jsx("span", {
"aria-hidden": "true",
children: "*"
})]
})), [i, r, a]),
S = !!c && "checkbox" === _,
O = (0, Pe.useRef)(null),
P = (0, Pe.useMemo)((() => v ? _s.jsx(ep, {
className: "sol-c-choice__feedback",
type: "negative",
children: v
}) : m ? _s.jsx(ep, {
className: "sol-c-choice__feedback",
icon: ws,
type: "positive",
children: m
}) : g ? _s.jsx(ep, {
className: "sol-c-choice__feedback",
icon: Fs,
type: "notice",
children: g
}) : null), [v, m, g]);
return (0, Pe.useLayoutEffect)((() => {
O.current && (O.current.indeterminate = S)
}), [S]), _s.jsxs(e, {
className: k,
ref: w,
...x,
children: [_s.jsxs("label", {
className: "sol-c-choice__wrapper",
children: [(0, Pe.createElement)("input", np(Bs(y, {
"aria-checked": S ? "mixed" : l ? "true" : "false",
"aria-required": !!r || void 0,
checked: l,
className: "sol-c-choice__input",
defaultChecked: s,
disabled: n,
name: u,
onBlur: p,
onChange: h,
onFocus: f,
ref: Gs(O, b),
role: "toggle" === _ ? "switch" : void 0,
type: "toggle" === _ ? "checkbox" : _,
value: d
}))), "radio" !== _ && _s.jsx(ks, {
className: "sol-c-choice__icon sol-c-choice__icon--check"
}), "checkbox" === _ && _s.jsx(Ts, {
className: "sol-c-choice__icon sol-c-choice__icon--indeterminate"
}), "toggle" === _ && _s.jsx(Ss, {
className: "sol-c-choice__icon sol-c-choice__icon--cross"
}), o ? _s.jsxs(Ll, {
vertical: !0,
children: [E, _s.jsx(xl, {
as: "span",
className: "sol-c-choice__description",
color: "foreground-weak",
variant: "body-xs",
children: o
})]
}) : E]
}), P]
})
})),
up = ({
condition: e,
children: t,
wrap: n
}) => e ? (0, Pe.cloneElement)(n(t)) : t;
ss('@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 dp = (0, Pe.createContext)(null),
pp = () => {
let e = (0, Pe.useContext)(dp);
if (!e) throw Error("Dialog components must be wrapped in <Dialog />");
return e
},
hp = (Vs((({
as: e = "p",
id: t,
onClick: n,
...r
}, i) => {
let {
setDescriptionId: a
} = pp(), o = (0, Pe.useId)();
return el((() => (a(t ?? o), () => a(void 0))), [t, o, a]), _s.jsx(e, {
id: t ?? o,
ref: i,
...r
})
})), ({
actions: e,
children: t,
onScrollToEnd: n,
type: r
}) => {
let {
setIsOpen: i
} = pp(), {
ref: a,
blockStart: o,
blockEnd: s,
once: {
blockEnd: l
}
} = hl({
onScroll({
blockEnd: e
}) {
e && n && n()
}
}), c = (0, Pe.useCallback)((({
close: e,
onClick: t
}) => n => {
n.stopPropagation(), e && i(!1), t && t(n)
}), [i]), u = (0, Pe.useCallback)((() => i(!1)), [i]);
return _s.jsxs(_s.Fragment, {
children: [t && _s.jsx("div", {
className: "sol-c-dialog__wrapper",
"data-sol-scroll-start": o,
"data-sol-scroll-end": s,
children: _s.jsx(xl, {
className: "sol-c-dialog__content",
color: "foreground-weak",
multiline: !0,
ref: a,
children: "function" == typeof t ? t({
close: u
}) : t
})
}), e && _s.jsx(Ll, {
className: "sol-c-dialog__actions",
gap: "100",
justify: "end",
children: ("function" == typeof e ? e({
hasScrolled: l
}) : e).map((({
className: e,
close: t = !0,
disabledUntilScrolled: n,
label: i,
onClick: a,
...o
}, s, u) => _s.jsx(Ol, {
className: Us("sol-c-dialog__action", e),
color: r,
disabled: n && !l,
onClick: c({
close: t,
onClick: a
}),
size: "medium",
variant: s === u.length - 1 ? "default" : "monochrome",
...o,
children: i
}, s)))
})]
})
}),
fp = (0, Pe.forwardRef)((({
actions: e,
alert: t,
children: n,
className: r,
close: i = true,
defaultOpen: a,
open: o,
onScrollToEnd: s,
onOpenChange: l,
overlay: c = true,
title: u,
trigger: d,
type: p,
...h
}, f) => {
let m = (0, Pe.useId)(),
g = (({
alert: e = !1,
defaultOpen: t,
open: n,
onOpenChange: r
} = {}) => {
let [i, a] = (0, Pe.useState)(t), [o, s] = (0, Pe.useState)(), l = n ?? i, c = r ?? a, u = nd(), d = Md({
open: l,
onOpenChange: c,
nodeId: u
}), {
context: p
} = d, h = Fd([Td(p), jd(p, {
bubbles: !1,
enabled: !e
}), Wd(p, {
role: e ? "alertdialog" : "dialog"
})]), f = Hd(p);
return el((() => (l ? document.body.setAttribute("data-sol-dialog", "") : document.body.removeAttribute("data-sol-dialog"), () => {
document.body.removeAttribute("data-sol-dialog")
})), [l]), (0, Pe.useMemo)((() => ({
isOpen: l,
setIsOpen: c,
descriptionId: o,
setDescriptionId: s,
nodeId: u,
...d,
...h,
...f
})), [l, c, o, u, d, h, f])
})({
alert: t,
defaultOpen: a,
open: o,
onOpenChange: l
}),
{
refs: v,
context: _,
getReferenceProps: y,
getFloatingProps: b,
isMounted: x,
isOpen: w,
setIsOpen: k,
status: E,
descriptionId: S,
nodeId: O
} = g,
P = Ou([v.setReference, ...d ? [d.ref] : [], f]),
{
name: I
} = gl(),
A = Us("sol-c-dialog", e && "sol-c-dialog--has-actions", c && "sol-c-dialog--overlay", r);
return _s.jsx(dp.Provider, {
value: g,
children: _s.jsxs(rd, {
id: O,
children: [d && (0, Pe.cloneElement)("function" == typeof d ? d({
isOpen: w
}) : d, y({
ref: P
})), x && _s.jsx(Sd, {
children: _s.jsx(Cd, {
className: A,
"data-sol-status": E,
"data-sol-theme": I,
lockScroll: !0,
style: {
overflow: "hidden"
},
children: _s.jsx(Id, {
context: _,
children: _s.jsxs("div", {
"aria-labelledby": u ? m : void 0,
"aria-describedby": S,
className: "sol-c-dialog__element",
ref: v.setFloating,
...b(h),
children: [(i || u) && _s.jsxs(Ll, {
className: "sol-c-dialog__header",
gap: "100",
children: [u && _s.jsx(xl, {
className: "sol-c-dialog__title",
color: "foreground",
id: m,
offset: !0,
variant: "heading-xs",
children: u
}), i && _s.jsx(Ol, {
"aria-label": "string" == typeof i ? i : "Close",
className: "sol-c-dialog__close sol-c-dialog__close--wide-click",
icon: Ss,
onClick: () => k(!1),
size: "small",
variant: "monochrome"
})]
}), _s.jsx(hp, {
actions: e,
onScrollToEnd: s,
type: p,
children: n
})]
})
})
})
})]
})
})
})),
mp = (0, Pe.forwardRef)(((e, t) => null == ed() ? _s.jsx(id, {
children: _s.jsx(fp, {
ref: t,
...e
})
}) : _s.jsx(fp, {
ref: t,
...e
})));
ss("@layer components{.sol-c-divider{block-size:0;border-block-start-width:var(--sol-border-1);color:var(--sol-color-surface-3)}}");
let gp = (0, Pe.forwardRef)((({
className: e,
color: t,
spacing: n,
...r
}, i) => {
let a = Us("sol-c-divider", t && `sol-u-color-${t}`, n && `sol-u-margin-b-${n}`, e);
return _s.jsx("hr", {
className: a,
ref: i,
...r
})
}));
ss('@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)}}'), ss('@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 vp = (0, Pe.forwardRef)((({
className: e,
disabled: t,
max: n = 100,
value: r,
status: i,
...a
}, o) => {
let s = Us("sol-c-progress", t && "sol-c-progress--disabled", i && `sol-u-color-status-${i}`, e);
return _s.jsx("progress", {
className: s,
max: n,
ref: o,
value: r,
...a
})
})),
_p = Vs((({
actions: e,
as: t = "div",
state: n = "in-progress",
className: r,
id: i,
progress: a,
stats: o,
subtitle: s,
title: l,
...c
}, u) => {
let d = Ks(i),
p = Us("sol-c-download-progress", r),
h = "completed" === n,
f = "error" === n,
m = l || s,
g = o && 0 !== o.length,
v = e && 0 !== e.length,
_ = [l && d + "-title", s && d + "-subtitle"].filter(Boolean).join(" ");
return _s.jsxs(t, {
className: p,
id: d,
ref: u,
...c,
children: [m && _s.jsxs(Ll, {
className: "sol-c-download-progress__header",
gap: "050",
justify: "space-between",
children: [l && _s.jsx(xl, {
color: "foreground-weak",
className: "sol-c-download-progress__title",
id: d + "-title",
variant: "body-s",
truncate: !0,
children: l
}), s && _s.jsx(xl, {
color: "foreground-weak",
className: "sol-c-download-progress__subtitle",
id: d + "-subtitle",
variant: "body-s",
truncate: !0,
children: s
})]
}), _s.jsx(vp, {
"aria-labelledby": _,
className: Us("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 && _s.jsx(Ll, {
as: "ul",
className: "sol-c-download-progress__stats",
gap: "050",
children: o.map((({
fill: e,
label: t,
value: n
}, r) => _s.jsxs(xl, {
as: "li",
className: Us("sol-c-download-progress__stat", e && "sol-c-download-progress__stat--fill"),
color: "foreground-weak",
variant: "body-xxs",
truncate: !0,
children: [_s.jsx("strong", {
className: "sol-c-download-progress__label",
children: t
}), ": ", n]
}, r)))
}), v && _s.jsx(Ll, {
gap: "050",
className: "sol-c-download-progress__actions",
children: e.map((({
className: e,
label: t,
tooltip: n,
...r
}, i) => _s.jsx(Xd, {
content: n,
enabled: !!n,
interactive: !1,
children: _s.jsx(Ol, {
"aria-label": t,
className: Us("sol-c-download-progress__action", e),
size: "small",
variant: "plain",
...r
})
}, i)))
})]
})
}));
ss('@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 yp = (0, Pe.createContext)(null),
bp = () => (0, Pe.useContext)(yp),
xp = (0, Pe.forwardRef)((({
className: e,
id: t,
...n
}, r) => {
let {
feedbackId: i,
setHasFeedback: a
} = bp();
(0, Pe.useLayoutEffect)((() => (a(!0, t), () => a(!1))), [t, a]);
let o = Us("sol-c-field__feedback", e);
return _s.jsx(ep, {
"aria-live": "polite",
className: o,
id: i,
ref: r,
type: "negative",
...n
})
})),
wp = (0, Pe.forwardRef)((({
className: e,
id: t,
...n
}, r) => {
let {
helpId: i,
setHasHelp: a
} = bp();
(0, Pe.useLayoutEffect)((() => (a(!0, t), () => a(!1))), [t, a]);
let o = Us("sol-c-field__help", e);
return _s.jsx(xl, {
className: o,
color: "foreground-weak",
id: i,
ref: r,
variant: "body-xs",
...n
})
})),
kp = (0, Pe.forwardRef)((({
children: e,
className: t,
id: n,
disabled: r,
invalid: i,
required: a,
label: o,
labelType: s,
necessityIndicator: l,
horizontal: c,
error: u,
help: d,
success: p,
warning: h,
...f
}, m) => {
let g = (({
id: e,
disabled: t = !1,
invalid: n = !1,
required: r = !1,
label: i,
labelType: a = "floating",
necessityIndicator: o
}) => {
let s = (0, Pe.useId)(),
[l = (e ? `${e}-input` : s), c] = (0, Pe.useState)(),
[u = `${e??l}-feedback`, d] = (0, Pe.useState)(),
[p = `${e??l}-help`, h] = (0, Pe.useState)(),
f = `${e??l}-label`,
[m = t, g] = (0, Pe.useState)(),
[v = n, _] = (0, Pe.useState)(),
[y = r, b] = (0, Pe.useState)(),
[x, w] = (0, Pe.useState)(!1),
[k, E] = (0, Pe.useState)(!1),
[S, O] = (0, Pe.useState)(null),
[P, I] = (0, Pe.useState)("label"),
A = (0, Pe.useMemo)((() => "label" !== P ? {
id: f,
onClick() {
m || S?.focus()
}
} : {
htmlFor: l
}), [l, S, m, P, f]),
C = S || "floating" !== a ? a : "classic",
R = (0, Pe.useCallback)((e => {
let t = e ? [e] : [];
return x && t.push(u), k && t.push(p), t.length ? t.join(" ") : void 0
}), [u, x, k, p]),
T = (0, Pe.useCallback)((e => {
let t = e ? [e] : [];
return "label" !== P && t.push(f, l), t.length ? t.join(" ") : void 0
}), [l, P, f]);
return (0, Pe.useMemo)((() => ({
inputId: l,
feedbackId: u,
helpId: p,
labelId: f,
hasFeedback: x,
hasHelp: k,
isDisabled: m,
isInvalid: v,
isRequired: y,
label: i,
labelElementType: P,
labelProps: A,
labelType: C,
necessityIndicator: o,
setInputId: c,
setInputRef: O,
setLabelElementType: I,
setHasFeedback: (e, t) => {
w(e), d(t)
},
setHasHelp: (e, t) => {
E(e), h(t)
},
setIsDisabled: g,
setIsInvalid: _,
setIsRequired: b,
getDescribedby: R,
getLabelledby: T
})), [l, u, p, f, x, k, m, v, y, i, P, C, A, o, R, T])
})({
id: n,
disabled: r,
invalid: i,
required: a,
label: o,
labelType: s,
necessityIndicator: l
}),
{
isDisabled: v,
isInvalid: _,
isRequired: y,
labelType: b,
labelElementType: x,
labelProps: w
} = g,
k = Us("sol-c-field", c && "sol-c-field--horizontal", v && "sol-c-field--disabled", _ && "sol-c-field--invalid", y && "sol-c-field--required", t),
E = (0, Pe.useMemo)((() => "floating" !== b && o ? _s.jsxs(Ll, {
as: x,
align: "baseline",
className: Us("sol-c-field__label", "hidden" === b && "sol-u-hide-visually"),
gap: "025",
wrap: !0,
...w,
children: [_s.jsx(xl, {
as: "span",
color: "foreground-weak",
variant: "label-m",
children: o
}), l && _s.jsxs(xl, {
"aria-hidden": !!y || void 0,
as: "span",
color: "foreground-weak",
variant: "label-s",
transform: "lowercase",
children: ["(", l, ")"]
})]
}) : null), [y, x, o, w, b, l]),
S = (0, Pe.useMemo)((() => u ? _s.jsx(xp, {
children: u
}) : p ? _s.jsx(xp, {
icon: ws,
type: "positive",
children: p
}) : h ? _s.jsx(xp, {
icon: Fs,
type: "notice",
children: h
}) : null), [u, p, h]);
return _s.jsx(yp.Provider, {
value: g,
children: _s.jsxs("div", {
className: k,
id: n,
ref: m,
...f,
children: [E, _s.jsx(Ll, {
className: "sol-c-field__content",
gap: "100",
children: e
}), S, d && _s.jsx(wp, {
children: d
})]
})
})
}));
ss("@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 Ep = (0, Pe.forwardRef)((({
children: e,
className: t,
icon: n,
iconAnimation: r = !0,
loading: i,
loadingIcon: a = Rs,
loadingIconAnimation: o = !0,
onKeyDown: s,
onKeyUp: l,
onMouseDown: c,
onMouseEnter: u,
onMouseLeave: d,
onMouseUp: p,
...h
}, f) => {
let [m, g] = (0, Pe.useState)(!1), [v, _] = (0, Pe.useState)(!1), [y, b] = (0, Pe.useState)(!1), x = (0, Pe.useCallback)((e => {
("Space" === e.code || "Enter" === e.code) && (_(!1), g(!0)), s && s(e)
}), [s]), w = (0, Pe.useCallback)((e => {
("Space" === e.code || "Enter" === e.code) && (_(!0), g(!1)), l && l(e)
}), [l]), k = (0, Pe.useCallback)((e => {
_(!1), g(!0), c?.(e)
}), [c]), E = (0, Pe.useCallback)((e => {
b(!0), u?.(e)
}), [u]), S = (0, Pe.useCallback)((e => {
b(!1), d?.(e)
}), [d]), O = (0, Pe.useCallback)((e => {
_(!0), g(!1), p?.(e)
}), [p]), P = i && a ? a : n, I = (0, Pe.useMemo)((() => {
if (i) switch (o) {
case "hover":
return y;
case "not-hover":
return !y;
default:
return o
}
switch (r) {
case "hover":
return y;
case "not-hover":
return !y;
default:
return r
}
}), [r, y, i, o]), A = Us("sol-c-game-button", m && "sol-c-game-button--pressed", v && "sol-c-game-button--released", t);
return _s.jsxs(_l, {
className: A,
loading: i,
onKeyDown: x,
onKeyUp: w,
onMouseDown: k,
onMouseEnter: E,
onMouseLeave: S,
onMouseUp: O,
ref: f,
...h,
children: [_s.jsx("span", {
"aria-hidden": "true",
className: "sol-c-game-button__border"
}), _s.jsxs("span", {
className: "sol-c-game-button__wrapper",
children: [P && _s.jsx(bl, {
className: "sol-c-game-button__icon",
isPlaying: I,
source: P
}), _s.jsx("span", {
className: "sol-c-game-button__label",
children: e
})]
}), _s.jsx("span", {
"aria-hidden": "true",
className: "sol-c-game-button__holo"
})]
})
}));
ss('@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}}.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 Sp = Vs((({
children: e,
className: t,
title: n,
...r
}, i) => {
let a = Us("sol-c-game-page__actions", t);
return _s.jsx(Ll, {
className: a,
gap: "150",
ref: i,
vertical: !0,
...r,
children: e
})
})),
Op = Vs((({
as: e = "div",
className: t,
image: n,
video: r,
...i
}, a) => {
let o = Us("sol-c-game-page__background", t),
[s, l] = (0, Pe.useState)(!0),
c = (0, Pe.useRef)(null);
return (0, Pe.useEffect)((() => {
s || c.current?.play()
}), [s]), _s.jsxs(e, {
"aria-hidden": "true",
className: o,
ref: a,
...i,
children: [n && _s.jsx("img", {
alt: "",
className: "sol-c-game-page__image",
..."string" == typeof n ? {
src: n
} : n
}), r && _s.jsx("video", {
ref: c,
className: "sol-c-game-page__video " + (s ? "" : "sol-c-game-page__video--is-loaded"),
disableRemotePlayback: !0,
loop: !0,
muted: !0,
playsInline: !0,
poster: n && "string" == typeof n ? n : void 0,
preload: "auto",
src: "string" == typeof r ? r : void 0,
onCanPlayThrough: () => l(!1),
children: Array.isArray(r) && r.map(((e, t) => _s.jsx("source", {
...e
}, t)))
})]
})
}));
var Pp = "undefined" != typeof window ? Pe.useLayoutEffect : Pe.useEffect;
let Ip = Vs((({
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, w, k, E, S, O, P, I, A, C, R, T, D, N, L, j, M;
let {
ref: z,
inlineStart: F,
inlineEnd: U
} = hl(), {
events: V
} = (m = void 0 === (f = (h = {
isMounted: !!t
}).decayRate) ? .95 : f, v = void 0 === (g = h.safeDisplacement) ? 10 : g, y = void 0 !== (_ = h.applyRubberBandEffect) && _, x = void 0 === (b = h.activeMouseButton) ? "Left" : b, k = void 0 === (w = h.isMounted) || w, E = (0, Pe.useRef)({
isMouseDown: !1,
isDraggingX: !1,
isDraggingY: !1,
initialMouseX: 0,
initialMouseY: 0,
lastMouseX: 0,
lastMouseY: 0,
scrollSpeedX: 0,
scrollSpeedY: 0,
lastScrollX: 0,
lastScrollY: 0
}), S = !1, O = !1, P = 0, I = 0, A = 1 / 60 * 1e3, Pp((function() {
k && (S = "scroll" === window.getComputedStyle(z.current).overflowX, O = "scroll" === window.getComputedStyle(z.current).overflowY, P = z.current.scrollWidth - z.current.clientWidth, I = z.current.scrollHeight - z.current.clientHeight, o = window.getComputedStyle(z.current).cursor, s = [], l = [], c = [], z.current.childNodes.forEach((function(e) {
s.push(window.getComputedStyle(e).cursor), l.push("none" === window.getComputedStyle(e).transform ? "" : window.getComputedStyle(e).transform), c.push("none" === window.getComputedStyle(e).transition ? "" : window.getComputedStyle(e).transition)
})))
}), [k]), C = function() {
var e = E.current.scrollSpeedX * A,
t = E.current.scrollSpeedY * A,
n = z.current.scrollLeft + e,
r = z.current.scrollTop + t;
z.current.scrollLeft = n, z.current.scrollTop = r, E.current.lastScrollX = n, E.current.lastScrollY = r
}, R = function(e) {
var t = e.clientX - E.current.initialMouseX,
n = e.clientY - E.current.initialMouseY,
r = z.current,
i = r.clientWidth,
a = r.clientHeight,
o = 0,
s = 0;
S && O ? (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)) : S ? o = .3 * i * Math.sign(t) * Math.log10(1 + .5 * Math.abs(t) / i) : O && (s = .3 * a * Math.sign(n) * Math.log10(1 + .5 * Math.abs(n) / a)), z.current.childNodes.forEach((function(e) {
e.style.transform = "translate3d(" + o + "px, " + s + "px, 0px)", e.style.transition = "transform 0ms"
}))
}, T = function() {
z.current.childNodes.forEach((function(e, t) {
e.style.transform = l[t], e.style.transition = c[t]
}))
}, D = function() {
d = setInterval((function() {
var e = E.current.scrollSpeedX * m;
E.current.scrollSpeedX = e;
var t = z.current.scrollLeft <= 0,
n = z.current.scrollLeft >= P;
C(), (.05 > Math.abs(e) || E.current.isMouseDown || t || n) && (E.current.scrollSpeedX = 0, clearInterval(d))
}), A), p = setInterval((function() {
var e = E.current.scrollSpeedY * m;
E.current.scrollSpeedY = e;
var t = z.current.scrollTop <= 0,
n = z.current.scrollTop >= I;
C(), (.05 > Math.abs(e) || E.current.isMouseDown || t || n) && (E.current.scrollSpeedY = 0, clearInterval(p))
}), A), E.current.isDraggingX = !1, E.current.isDraggingY = !1, y && (z.current.childNodes.forEach((function(e) {
e.style.transform = "translate3d(0px, 0px, 0px)", e.style.transition = "transform 250ms"
})), u = setTimeout(T, 250))
}, N = function(e) {
e.preventDefault(), e.stopImmediatePropagation()
}, L = function(e) {
var t = E.current.isDraggingX || E.current.isDraggingY,
n = E.current.initialMouseX - e.clientX,
r = E.current.initialMouseY - e.clientY,
i = t && (Math.abs(n) > v || Math.abs(r) > v);
i ? z.current.childNodes.forEach((function(e) {
e.addEventListener("click", N)
})) : z.current.childNodes.forEach((function(e) {
e.removeEventListener("click", N)
})), E.current.isMouseDown = !1, E.current.lastMouseX = 0, E.current.lastMouseY = 0, z.current.style.cursor = o, z.current.childNodes.forEach((function(e, t) {
e.style.cursor = s[t]
})), i && D()
}, j = function(e) {
if (E.current.isMouseDown) {
e.preventDefault();
var t = E.current.lastMouseX - e.clientX;
E.current.lastMouseX = e.clientX, E.current.scrollSpeedX = t / A, E.current.isDraggingX = !0;
var n = E.current.lastMouseY - e.clientY;
E.current.lastMouseY = e.clientY, E.current.scrollSpeedY = n / A, E.current.isDraggingY = !0, z.current.style.cursor = "grabbing", z.current.childNodes.forEach((function(e) {
e.style.cursor = "grabbing"
}));
var r = z.current.scrollLeft <= 0 && S,
i = z.current.scrollLeft >= P && S,
a = z.current.scrollTop <= 0 && O,
o = z.current.scrollTop >= I && O;
(r || i || a || o) && y && R(e), C()
}
}, M = function() {
P = z.current.scrollWidth - z.current.clientWidth, I = z.current.scrollHeight - z.current.clientHeight
}, (0, Pe.useEffect)((function() {
return k && (window.addEventListener("mouseup", L), window.addEventListener("mousemove", j), window.addEventListener("resize", M)),
function() {
window.removeEventListener("mouseup", L), window.removeEventListener("mousemove", j), window.removeEventListener("resize", M), clearInterval(d), clearInterval(p), clearTimeout(u)
}
}), [k]), {
events: {
onMouseDown: function(e) {
var t;
t = e.buttons, ("Left" === x && 1 === t || "Middle" === x && 4 === t || "Right" === x && 2 === t) && (E.current.isMouseDown = !0, E.current.lastMouseX = e.clientX, E.current.lastMouseY = e.clientY, E.current.initialMouseX = e.clientX, E.current.initialMouseY = e.clientY)
}
}
}), G = Us("sol-c-game-page__content", n);
return _s.jsx(e, {
className: G,
"data-sol-scroll-start": F,
"data-sol-scroll-end": U,
ref: a,
...i,
children: t ? _s.jsx("ul", {
className: "sol-c-game-page__cards",
"data-sol-scrollbar-hidden": "true",
ref: z,
...V,
children: Pe.Children.map(t, ((e, t) => _s.jsx("li", {
className: "sol-c-game-page__card",
children: e
}, t)))
}) : r && _s.jsx(xl, {
className: "sol-c-game-page__empty",
variant: "heading-xs",
children: r
})
})
})),
Ap = Vs((({
as: e = "div",
animation: t,
playLottie: n = !1,
className: r,
logo: i,
...a
}, o) => {
let s = Us("sol-c-game-page__header", r),
[l, c] = (0, Pe.useState)(!1);
(0, Pe.useEffect)((() => {
n && c(!0)
}), [n]);
let u = dl(t, {
loop: !1,
isPlaying: l
});
return _s.jsx(e, {
"aria-hidden": "true",
className: s,
ref: o,
...a,
children: _s.jsx(u, {
className: "sol-c-game-page__logo",
children: i && _s.jsx("img", {
alt: "",
src: i
})
})
})
}));
ss("@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 Cp = Vs((({
as: e = "p",
children: t,
className: n,
status: r,
...i
}, a) => {
let {
ref: o,
hasOverflow: s
} = Ys(), l = Us("sol-c-tag", r && `sol-u-background-status-${r}-fill sol-u-color-status-${r}-fill-contrast`, n);
return _s.jsx(Xd, {
content: t,
enabled: s,
children: _s.jsx(e, {
className: l,
ref: a,
...i,
children: _s.jsx(xl, {
as: "span",
className: "sol-c-tag__label",
ref: o,
truncate: !0,
variant: "label-s",
children: t
})
})
})
})),
Rp = Vs((({
className: e,
status: t,
title: n,
...r
}, i) => {
let a = Us("sol-c-game-page__message", e),
o = _s.jsx(xl, {
className: a,
ref: i,
color: "foreground-weak",
variant: "body-s",
...r
});
return n ? _s.jsxs(Ll, {
gap: "050",
vertical: !0,
align: "start",
children: [_s.jsx(Cp, {
as: "h2",
status: t,
children: n
}), o]
}) : o
})),
Tp = (0, Pe.forwardRef)((({
active: e,
className: t,
icon: n,
label: r,
...i
}, a) => {
let o = Us("sol-c-game-page__tab", t),
s = {
[i.href ? "aria-current" : "aria-pressed"]: !!e || void 0,
className: o,
ref: a,
...i
};
return _s.jsxs(_l, {
...s,
children: [r && _s.jsx(xl, {
as: "span",
variant: "button-m",
children: r
}), n && _s.jsx(bl, {
source: n
})]
})
}));
var Dp = Object.defineProperty,
Np = {};
((e, t) => {
for (var n in t) Dp(e, n, {
get: t[n],
enumerable: !0
})
})(Np, {
assign: () => dh,
colors: () => lh,
createStringInterpolator: () => cs,
skipAnimation: () => ch,
to: () => us,
willAdvance: () => uh
});
var Lp = Zp(),
jp = e => Hp(e, Lp),
Mp = Zp();
jp.write = e => Hp(e, Mp);
var zp = Zp();
jp.onStart = e => Hp(e, zp);
var Fp = Zp();
jp.onFrame = e => Hp(e, Fp);
var Up = Zp();
jp.onFinish = e => Hp(e, Up);
var Vp = [];
jp.setTimeout = (e, t) => {
let n = jp.now() + t,
r = () => {
let e = Vp.findIndex((e => e.cancel == r));
~e && Vp.splice(e, 1), qp -= ~e ? 1 : 0
},
i = {
time: n,
handler: e,
cancel: r
};
return Vp.splice(Gp(n), 0, i), qp += 1, Yp(), i
};
var Gp = e => ~(~Vp.findIndex((t => t.time > e)) || ~Vp.length);
jp.cancel = e => {
zp.delete(e), Fp.delete(e), Up.delete(e), Lp.delete(e), Mp.delete(e)
}, jp.sync = e => {
Wp = !0, jp.batchedUpdates(e), Wp = !1
}, jp.throttle = e => {
let t;
function n() {
try {
e(...t)
} finally {
t = null
}
}
function r(...e) {
t = e, jp.onStart(n)
}
return r.handler = e, r.cancel = () => {
zp.delete(n), t = null
}, r
};
var Bp = "undefined" != typeof window ? window.requestAnimationFrame : () => {};
jp.use = e => Bp = e, jp.now = "undefined" != typeof performance ? () => performance.now() : Date.now, jp.batchedUpdates = e => e(), jp.catch = console.error, jp.frameLoop = "always", jp.advance = () => {
"demand" !== jp.frameLoop ? console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand") : Qp()
};
var $p = -1,
qp = 0,
Wp = !1;
function Hp(e, t) {
Wp ? (t.delete(e), e(0)) : (t.add(e), Yp())
}
function Yp() {
$p < 0 && ($p = 0, "demand" !== jp.frameLoop && Bp(Kp))
}
function Kp() {
~$p && (Bp(Kp), jp.batchedUpdates(Qp))
}
function Qp() {
let e = $p;
$p = jp.now();
let t = Gp($p);
t && (Xp(Vp.splice(0, t), (e => e.handler())), qp -= t), qp ? (zp.flush(), Lp.flush(e ? Math.min(64, $p - e) : 16.667), Fp.flush(), Mp.flush(), Up.flush()) : $p = -1
}
function Zp() {
let e = new Set,
t = e;
return {
add(n) {
qp += t != e || e.has(n) ? 0 : 1, e.add(n)
},
delete: n => (qp -= t == e && e.has(n) ? 1 : 0, e.delete(n)),
flush(n) {
t.size && (e = new Set, qp -= t.size, Xp(t, (t => t(n) && e.add(t))), qp += e.size, t = e)
}
}
}
function Xp(e, t) {
e.forEach((e => {
try {
t(e)
} catch (e) {
jp.catch(e)
}
}))
}
function Jp() {}
var eh = {
arr: Array.isArray,
obj: e => !!e && "Object" === e.constructor.name,
fun: e => "function" == typeof e,
str: e => "string" == typeof e,
num: e => "number" == typeof e,
und: e => void 0 === e
};
function th(e, t) {
if (eh.arr(e)) {
if (!eh.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 nh = (e, t) => e.forEach(t);
function rh(e, t, n) {
if (eh.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 ih = e => eh.und(e) ? [] : eh.arr(e) ? e : [e];
function ah(e, t) {
if (e.size) {
let n = Array.from(e);
e.clear(), nh(n, t)
}
}
var oh = (e, ...t) => ah(e, (e => e(...t))),
sh = () => "undefined" == typeof window || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent),
lh = null,
ch = !1,
uh = Jp,
dh = e => {
e.to && (us = e.to), e.now && (jp.now = e.now), void 0 !== e.colors && (lh = e.colors), null != e.skipAnimation && (ch = e.skipAnimation), e.createStringInterpolator && (cs = e.createStringInterpolator), e.requestAnimationFrame && jp.use(e.requestAnimationFrame), e.batchedUpdates && (jp.batchedUpdates = e.batchedUpdates), e.willAdvance && (uh = e.willAdvance), e.frameLoop && (jp.frameLoop = e.frameLoop)
},
ph = new Set,
hh = [],
fh = [],
mh = 0,
gh = {
get idle() {
return !ph.size && !hh.length
},
start(e) {
mh > e.priority ? (ph.add(e), jp.onStart(vh)) : (_h(e), jp(bh))
},
advance: bh,
sort(e) {
if (mh) jp.onFrame((() => gh.sort(e)));
else {
let t = hh.indexOf(e);
~t && (hh.splice(t, 1), yh(e))
}
},
clear() {
hh = [], ph.clear()
}
};
function vh() {
ph.forEach(_h), ph.clear(), jp(bh)
}
function _h(e) {
hh.includes(e) || yh(e)
}
function yh(e) {
hh.splice(function(e, t) {
let n = e.findIndex(t);
return n < 0 ? e.length : n
}(hh, (t => t.priority > e.priority)), 0, e)
}
function bh(e) {
let t = fh;
for (let n = 0; n < hh.length; n++) {
let r = hh[n];
mh = r.priority, r.idle || (uh(r), r.advance(e), r.idle || t.push(r))
}
return mh = 0, (fh = hh).length = 0, (hh = t).length > 0
}
var xh = "[-+]?\\d*\\.?\\d+",
wh = xh + "%";
function kh(...e) {
return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)"
}
var Eh = RegExp("rgb" + kh(xh, xh, xh)),
Sh = RegExp("rgba" + kh(xh, xh, xh, xh)),
Oh = RegExp("hsl" + kh(xh, wh, wh)),
Ph = RegExp("hsla" + kh(xh, wh, wh, xh)),
Ih = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
Ah = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
Ch = /^#([0-9a-fA-F]{6})$/,
Rh = /^#([0-9a-fA-F]{8})$/;
function Th(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 Dh(e, t, n) {
let r = n < .5 ? n * (1 + t) : n + t - n * t,
i = 2 * n - r,
a = Th(i, r, e + 1 / 3),
o = Th(i, r, e),
s = Th(i, r, e - 1 / 3);
return Math.round(255 * a) << 24 | Math.round(255 * o) << 16 | Math.round(255 * s) << 8
}
function Nh(e) {
let t = parseInt(e, 10);
return t < 0 ? 0 : t > 255 ? 255 : t
}
function Lh(e) {
return (parseFloat(e) % 360 + 360) % 360 / 360
}
function jh(e) {
let t = parseFloat(e);
return t < 0 ? 0 : t > 1 ? 255 : Math.round(255 * t)
}
function Mh(e) {
let t = parseFloat(e);
return t < 0 ? 0 : t > 100 ? 1 : t / 100
}
function zh(e) {
let t, n = "number" == typeof e ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = Ch.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : lh && void 0 !== lh[e] ? lh[e] : (t = Eh.exec(e)) ? (Nh(t[1]) << 24 | Nh(t[2]) << 16 | Nh(t[3]) << 8 | 255) >>> 0 : (t = Sh.exec(e)) ? (Nh(t[1]) << 24 | Nh(t[2]) << 16 | Nh(t[3]) << 8 | jh(t[4])) >>> 0 : (t = Ih.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + "ff", 16) >>> 0 : (t = Rh.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = Ah.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + t[4] + t[4], 16) >>> 0 : (t = Oh.exec(e)) ? (255 | Dh(Lh(t[1]), Mh(t[2]), Mh(t[3]))) >>> 0 : (t = Ph.exec(e)) ? (Dh(Lh(t[1]), Mh(t[2]), Mh(t[3])) | jh(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 (eh.fun(e)) return e;
if (eh.arr(e)) return Fh({
range: e,
output: t,
extrapolate: n
});
if (eh.str(e.output[0])) return cs(e);
let r = e.output,
i = e.range || [0, 1],
a = e.extrapolateLeft || e.extrapolate || "extend",
o = e.extrapolateRight || e.extrapolate || "extend",
s = e.easing || (e => e);
return t => {
let n = function(e, t) {
for (var n = 1; n < t.length - 1 && !(t[n] >= e); ++n);
return n - 1
}(t, i);
return function(e, t, n, r, i, a, o, s, l) {
let c = l ? l(e) : e;
if (c < t) {
if ("identity" === o) return c;
"clamp" === o && (c = t)
}
if (c > n) {
if ("identity" === s) return c;
"clamp" === s && (c = n)
}
return r === i ? r : t === n ? e <= t ? r : i : (t === -1 / 0 ? c = -c : n === 1 / 0 ? c -= t : c = (c - t) / (n - t), c = a(c), r === -1 / 0 ? c = -c : i === 1 / 0 ? c += r : c = c * (i - r) + r, c)
}(t, i[n], i[n + 1], r[n], r[n + 1], s, a, o, e.map)
}
},
Uh = Symbol.for("FluidValue.get"),
Vh = Symbol.for("FluidValue.observers"),
Gh = e => !(!e || !e[Uh]),
Bh = e => e && e[Uh] ? e[Uh]() : e,
$h = e => e[Vh] || null;
function qh(e, t) {
let n = e[Vh];
n && n.forEach((e => {
e.eventObserved ? e.eventObserved(t) : e(t)
}))
}
var Wh = class {
constructor(e) {
if (!e && !(e = this.get)) throw Error("Unknown getter");
Hh(this, e)
}
},
Hh = (e, t) => Qh(e, Uh, t);
function Yh(e, t) {
if (e[Uh]) {
let n = e[Vh];
n || Qh(e, Vh, n = new Set), !n.has(t) && (n.add(t), e.observerAdded && e.observerAdded(n.size, t))
}
return t
}
function Kh(e, t) {
let n = e[Vh];
if (n && n.has(t)) {
let r = n.size - 1;
r ? n.delete(t) : e[Vh] = null, e.observerRemoved && e.observerRemoved(r, t)
}
}
var Qh = (e, t, n) => Object.defineProperty(e, t, {
value: n,
writable: !0,
configurable: !0
}),
Zh = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
Xh = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,
Jh = RegExp(`(${Zh.source})(%|[a-z]+)`, "i"),
ef = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,
tf = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,
nf = e => {
let [t, n] = rf(e);
if (!t || sh()) 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 && tf.test(n)) return nf(n);
if (n) return n
}
return e
},
rf = e => {
let t = tf.exec(e);
if (!t) return [, ];
let [, n, r] = t;
return [n, r]
},
af = (e, t, n, r, i) => `rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,
of = e => {
ds || (ds = lh ? RegExp(`(${Object.keys(lh).join("|")})(?!\\w)`, "g") : /^\b$/);
let t = e.output.map((e => Bh(e).replace(tf, nf).replace(Xh, zh).replace(ds, zh))),
n = t.map((e => e.match(Zh).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({
...e,
output: t
})));
return e => {
let n = !Jh.test(t[0]) && t.find((e => Jh.test(e)))?.replace(Zh, ""),
r = 0;
return t[0].replace(Zh, (() => `${i[r++](e)}${n||""}`)).replace(ef, af)
}
},
sf = "react-spring: ",
lf = e => {
let t = !1;
if ("function" != typeof e) throw TypeError(`${sf}once requires a function parameter`);
return (...n) => {
t || (e(...n), t = !0)
}
},
cf = lf(console.warn),
uf = lf(console.warn);
function df(e) {
return eh.str(e) && ("#" == e[0] || /\d/.test(e) || !sh() && tf.test(e) || e in (lh || {}))
}
var pf = sh() ? Pe.useEffect : Pe.useLayoutEffect;
function hf() {
let e = (0, Pe.useState)()[1],
t = (() => {
let e = (0, Pe.useRef)(!1);
return pf((() => (e.current = !0, () => {
e.current = !1
})), []), e
})();
return () => {
t.current && e(Math.random())
}
}
var ff = e => (0, Pe.useEffect)(e, mf),
mf = [];
function gf(e) {
let t = (0, Pe.useRef)();
return (0, Pe.useEffect)((() => {
t.current = e
})), t.current
}
var vf = Symbol.for("Animated:node"),
_f = e => e && e[vf],
yf = (e, t) => ((e, t, n) => Object.defineProperty(e, t, {
value: n,
writable: !0,
configurable: !0
}))(e, vf, t),
bf = e => e && e[vf] && e[vf].getPayload(),
xf = class {
constructor() {
yf(this, this)
}
getPayload() {
return this.payload || []
}
},
wf = class extends xf {
constructor(e) {
super(), this._value = e, this.done = !0, this.durationProgress = 0, eh.num(this._value) && (this.lastPosition = this._value)
}
static create(e) {
return new wf(e)
}
getPayload() {
return [this]
}
getValue() {
return this._value
}
setValue(e, t) {
return eh.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, eh.num(this._value) && (this.elapsedTime = 0, this.durationProgress = 0, this.lastPosition = this._value, e && (this.lastVelocity = null), this.v0 = null)
}
},
kf = class extends wf {
constructor(e) {
super(0), this._string = null, this._toString = Fh({
output: [e, e]
})
}
static create(e) {
return new kf(e)
}
getValue() {
let e = this._string;
return null == e ? this._string = this._toString(this._value) : e
}
setValue(e) {
if (eh.str(e)) {
if (e == this._string) return !1;
this._string = e, this._value = 1
} else {
if (!super.setValue(e)) return !1;
this._string = null
}
return !0
}
reset(e) {
e && (this._toString = Fh({
output: [this.getValue(), e]
})), this._value = 0, super.reset()
}
},
Ef = {
dependencies: null
},
Sf = class extends xf {
constructor(e) {
super(), this.source = e, this.setValue(e)
}
getValue(e) {
let t = {};
return rh(this.source, ((n, r) => {
(e => !!e && e[vf] === e)(n) ? t[r] = n.getValue(e): Gh(n) ? t[r] = Bh(n) : e || (t[r] = n)
})), t
}
setValue(e) {
this.source = e, this.payload = this._makePayload(e)
}
reset() {
this.payload && nh(this.payload, (e => e.reset()))
}
_makePayload(e) {
if (e) {
let t = new Set;
return rh(e, this._addToPayload, t), Array.from(t)
}
}
_addToPayload(e) {
Ef.dependencies && Gh(e) && Ef.dependencies.add(e);
let t = bf(e);
t && nh(t, (e => this.add(e)))
}
},
Of = class extends Sf {
constructor(e) {
super(e)
}
static create(e) {
return new Of(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(Pf)), !0)
}
};
function Pf(e) {
return (df(e) ? kf : wf).create(e)
}
function If(e) {
let t = _f(e);
return t ? t.constructor : eh.arr(e) ? Of : df(e) ? kf : wf
}
var Af = (e, t) => {
let n = !eh.fun(e) || e.prototype && e.prototype.isReactComponent;
return (0, Pe.forwardRef)(((r, i) => {
let a = (0, Pe.useRef)(null),
o = n && (0, Pe.useCallback)((e => {
a.current = (i && (eh.fun(i) ? i(e) : i.current = e), e)
}), [i]),
[s, l] = function(e, t) {
let n = new Set;
return Ef.dependencies = n, e.style && (e = {
...e,
style: t.createAnimatedStyle(e.style)
}), e = new Sf(e), Ef.dependencies = null, [e, n]
}(r, t),
c = hf(),
u = () => {
let e = a.current;
n && !e || !1 === (!!e && t.applyAnimatedValues(e, s.getValue(!0))) && c()
},
d = new Cf(u, l),
p = (0, Pe.useRef)();
pf((() => (p.current = d, nh(l, (e => Yh(e, d))), () => {
p.current && (nh(p.current.deps, (e => Kh(e, p.current))), jp.cancel(p.current.update))
}))), (0, Pe.useEffect)(u, []), ff((() => () => {
let e = p.current;
nh(e.deps, (t => Kh(t, e)))
}));
let h = t.getComponentProps(s.getValue());
return Pe.createElement(e, {
...h,
ref: o
})
}))
},
Cf = class {
constructor(e, t) {
this.update = e, this.deps = t
}
eventObserved(e) {
"change" == e.type && jp.write(this.update)
}
},
Rf = Symbol.for("AnimatedComponent"),
Tf = e => eh.str(e) ? e : e && eh.str(e.displayName) ? e.displayName : eh.fun(e) && e.name || null;
function Df(e, ...t) {
return eh.fun(e) ? e(...t) : e
}
var Nf = (e, t) => !0 === e || !!(t && e && (eh.fun(e) ? e(t) : ih(e).includes(t))),
Lf = (e, t) => eh.obj(e) ? t && e[t] : e,
jf = (e, t) => !0 === e.default ? e[t] : e.default ? e.default[t] : void 0,
Mf = e => e,
zf = (e, t = Mf) => {
let n = Ff;
e.default && !0 !== e.default && (n = Object.keys(e = e.default));
let r = {};
for (let i of n) {
let n = t(e[i], i);
eh.und(n) || (r[i] = n)
}
return r
},
Ff = ["config", "onProps", "onStart", "onChange", "onPause", "onResume", "onRest"],
Uf = {
config: 1,
from: 1,
to: 1,
ref: 1,
loop: 1,
reset: 1,
pause: 1,
cancel: 1,
reverse: 1,
immediate: 1,
default: 1,
delay: 1,
onProps: 1,
onStart: 1,
onChange: 1,
onPause: 1,
onResume: 1,
onRest: 1,
onResolve: 1,
items: 1,
trail: 1,
sort: 1,
expires: 1,
initial: 1,
enter: 1,
update: 1,
leave: 1,
children: 1,
onDestroyed: 1,
keys: 1,
callId: 1,
parentId: 1
};
function Vf(e) {
let t = function(e) {
let t = {},
n = 0;
if (rh(e, ((e, r) => {
!Uf[r] && (t[r] = e, n++)
})), n) return t
}(e);
if (t) {
let n = {
to: t
};
return rh(e, ((e, r) => r in t || (n[r] = e))), n
}
return {
...e
}
}
function Gf(e) {
return e = Bh(e), eh.arr(e) ? e.map(Gf) : df(e) ? Np.createStringInterpolator({
range: [0, 1],
output: [e, e]
})(1) : e
}
function Bf(e) {
for (let t in e) return !0;
return !1
}
function $f(e) {
return eh.fun(e) || eh.arr(e) && eh.obj(e[0])
}
function qf(e, t) {
e.ref?.delete(e), t?.delete(e)
}
function Wf(e, t) {
t && e.ref !== t && (e.ref?.delete(e), t.add(e), e.ref = t)
}
var Hf = {
tension: 170,
friction: 26,
mass: 1,
damping: 1,
easing: e => e,
clamp: !1
};
function Yf(e, t) {
if (eh.und(t.decay)) {
let n = !eh.und(t.tension) || !eh.und(t.friction);
!n && eh.und(t.frequency) && eh.und(t.damping) && eh.und(t.mass) || (e.duration = void 0, e.decay = void 0), n && (e.frequency = void 0)
} else e.duration = void 0
}
var Kf = [];
function Qf(e, {
key: t,
props: n,
defaultProps: r,
state: i,
actions: a
}) {
return new Promise(((o, s) => {
let l, c, u = Nf(n.cancel ?? r?.cancel, t);
if (u) h();
else {
eh.und(n.pause) || (i.paused = Nf(n.pause, t));
let e = r?.pause;
!0 !== e && (e = i.paused || Nf(e, t)), l = Df(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 - jp.now()
}
function p() {
l > 0 && !Np.skipAnimation ? (i.delayed = !0, c = jp.setTimeout(h, l), i.pauseQueue.add(d), i.timeouts.add(c)) : h()
}
function h() {
i.delayed && (i.delayed = !1), i.pauseQueue.delete(d), i.timeouts.delete(c), e <= (i.cancelId || 0) && (u = !0);
try {
a.start({
...n,
callId: e,
cancel: u
}, o)
} catch (e) {
s(e)
}
}
}))
}
var Zf = (e, t) => 1 == t.length ? t[0] : t.some((e => e.cancelled)) ? em(e.get()) : t.every((e => e.noop)) ? Xf(e.get()) : Jf(e.get(), t.every((e => e.finished))),
Xf = e => ({
value: e,
noop: !0,
finished: !0,
cancelled: !1
}),
Jf = (e, t, n = !1) => ({
value: e,
finished: t,
cancelled: n
}),
em = e => ({
value: e,
cancelled: !0,
finished: !1
});
function tm(e, t, n, r) {
let {
callId: i,
parentId: a,
onRest: o
} = t, {
asyncTo: s,
promise: l
} = n;
return a || e !== s || t.reset ? n.promise = (async () => {
let c, u, d;
n.asyncId = i, n.asyncTo = e;
let p = zf(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) && em(r) || i !== n.asyncId && Jf(r, !1);
if (t) throw e.result = t, u(e), e
},
m = (e, t) => {
let a = new rm,
o = new im;
return (async () => {
if (Np.skipAnimation) throw nm(n), o.result = Jf(r, !1), u(o), o;
f(a);
let s = eh.obj(e) ? {
...e
} : {
...t,
to: e
};
s.parentId = i, rh(p, ((e, t) => {
eh.und(s[t]) && (s[t] = e)
}));
let l = await r.start(s);
return f(a), n.paused && await new Promise((e => {
n.resumeQueue.add(e)
})), l
})()
};
if (Np.skipAnimation) return nm(n), Jf(r, !1);
try {
let t;
t = eh.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 = Jf(r.get(), !0, !1)
} catch (e) {
if (e instanceof rm) d = e.result;
else {
if (!(e instanceof im)) 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 eh.fun(o) && jp.batchedUpdates((() => {
o(d, r, r.item)
})), d
})() : l
}
function nm(e, t) {
ah(e.timeouts, (e => e.cancel())), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t)
}
var rm = 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.")
}
},
im = class extends Error {
constructor() {
super("SkipAnimationSignal")
}
},
am = e => e instanceof sm,
om = 1,
sm = class extends Wh {
constructor() {
super(...arguments), this.id = om++, this._priority = 0
}
get priority() {
return this._priority
}
set priority(e) {
this._priority != e && (this._priority = e, this._onPriorityChange(e))
}
get() {
let e = _f(this);
return e && e.getValue()
}
to(...e) {
return Np.to(this, e)
}
interpolate(...e) {
return cf(`${sf}The "interpolate" function is deprecated in v9 (use "to" instead)`), Np.to(this, e)
}
toJSON() {
return this.get()
}
observerAdded(e) {
1 == e && this._attach()
}
observerRemoved(e) {
0 == e && this._detach()
}
_attach() {}
_detach() {}
_onChange(e, t = !1) {
qh(this, {
type: "change",
parent: this,
value: e,
idle: t
})
}
_onPriorityChange(e) {
this.idle || gh.sort(this), qh(this, {
type: "priority",
parent: this,
priority: e
})
}
},
lm = Symbol.for("SpringPhase"),
cm = e => (1 & e[lm]) > 0,
um = e => (2 & e[lm]) > 0,
dm = e => (4 & e[lm]) > 0,
pm = (e, t) => t ? e[lm] |= 3 : e[lm] &= -3,
hm = (e, t) => t ? e[lm] |= 4 : e[lm] &= -5,
fm = class extends sm {
constructor(e, t) {
if (super(), this.animation = new class {
constructor() {
this.changed = !1, this.values = Kf, this.toValues = null, this.fromValues = Kf, this.config = new class {
constructor() {
this.velocity = 0, Object.assign(this, Hf)
}
}, this.immediate = !1
}
}, this.defaultProps = {}, this._state = {
paused: !1,
delayed: !1,
pauseQueue: new Set,
resumeQueue: new Set,
timeouts: new Set
}, this._pendingCalls = new Set, this._lastCallId = 0, this._lastToId = 0, this._memoizedDuration = 0, !eh.und(e) || !eh.und(t)) {
let n = eh.obj(e) ? {
...e
} : {
...t,
from: e
};
eh.und(n.default) && (n.default = !0), this.start(n)
}
}
get idle() {
return !(um(this) || this._state.asyncTo) || dm(this)
}
get goal() {
return Bh(this.animation.to)
}
get velocity() {
let e = _f(this);
return e instanceof wf ? e.lastVelocity || 0 : e.getPayload().map((e => e.lastVelocity || 0))
}
get hasAnimated() {
return cm(this)
}
get isAnimating() {
return um(this)
}
get isPaused() {
return dm(this)
}
get isDelayed() {
return this._state.delayed
}
advance(e) {
let t = !0,
n = !1,
r = this.animation,
{
toValues: i
} = r,
{
config: a
} = r,
o = bf(r.to);
!o && Gh(r.to) && (i = ih(Bh(r.to))), r.values.forEach(((s, l) => {
if (s.done) return;
let c = s.constructor == kf ? 1 : o ? o[l].lastPosition : i[l],
u = r.immediate,
d = c;
if (!u) {
let t;
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 = eh.arr(a.velocity) ? a.velocity[l] : a.velocity,
p = a.precision || (i == c ? .005 : Math.min(1, .001 * Math.abs(c - i)));
if (eh.und(a.duration))
if (a.decay) {
let e = !0 === a.decay ? .998 : a.decay,
r = Math.exp(-(1 - e) * n);
d = i + o / (1 - e) * (1 - r), u = Math.abs(s.lastPosition - d) <= p, t = o * r
} else {
t = null == s.lastVelocity ? o : s.lastVelocity;
let n = a.restVelocity || p / 10,
r = a.clamp ? 0 : a.bounce,
l = !eh.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) {
l && (d == c || d > c == h) && (t = -t * r, d = c), t += 1 * ((-1e-6 * a.tension * (d - c) + -.001 * a.friction * t) / a.mass), d += 1 * t
}
}
else {
let r = 1;
a.duration > 0 && (this._memoizedDuration !== a.duration && (this._memoizedDuration = a.duration, s.durationProgress > 0 && (s.elapsedTime = a.duration * s.durationProgress, n = s.elapsedTime += e)), r = (r = (a.progress || 0) + n / this._memoizedDuration) > 1 ? 1 : r < 0 ? 0 : r, s.durationProgress = r), t = ((d = i + a.easing(r) * (c - i)) - s.lastPosition) / e, u = 1 == r
}
s.lastVelocity = t, Number.isNaN(d) && (console.warn("Got NaN while animating:", this), u = !0)
}
o && !o[l].done && (u = !1), u ? s.done = !0 : t = !1, s.setValue(d, a.round) && (n = !0)
}));
let s = _f(this),
l = s.getValue();
if (t) {
let e = Bh(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 jp.batchedUpdates((() => {
this._stop(), this._focus(e), this._set(e)
})), this
}
pause() {
this._update({
pause: !0
})
}
resume() {
this._update({
pause: !1
})
}
finish() {
if (um(this)) {
let {
to: e,
config: t
} = this.animation;
jp.batchedUpdates((() => {
this._onStart(), t.decay || this._set(e, !1), this._stop()
}))
}
return this
}
update(e) {
return (this.queue || (this.queue = [])).push(e), this
}
start(e, t) {
let n;
return eh.und(e) ? (n = this.queue || [], this.queue = []) : n = [eh.obj(e) ? e : {
...t,
to: e
}], Promise.all(n.map((e => this._update(e)))).then((e => Zf(this, e)))
}
stop(e) {
let {
to: t
} = this.animation;
return this._focus(this.get()), nm(this._state, e && this._lastCallId), jp.batchedUpdates((() => this._stop(t, e))), this
}
reset() {
this._update({
reset: !0
})
}
eventObserved(e) {
"change" == e.type ? this._start() : "priority" == e.type && (this.priority = e.priority + 1)
}
_prepareNode(e) {
let t = this.key || "",
{
to: n,
from: r
} = e;
(null == (n = eh.obj(n) ? n[t] : n) || $f(n)) && (n = void 0), null == (r = eh.obj(r) ? r[t] : r) && (r = void 0);
let i = {
to: n,
from: r
};
return cm(this) || (e.reverse && ([n, r] = [r, n]), r = Bh(r), eh.und(r) ? _f(this) || this._set(n) : this._set(r)), i
}
_update({
...e
}, t) {
let {
key: n,
defaultProps: r
} = this;
e.default && Object.assign(r, zf(e, ((e, t) => /^on/.test(t) ? Lf(e, n) : e))), bm(this, e, "onProps"), xm(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 Qf(++this._lastCallId, {
key: n,
props: e,
defaultProps: r,
state: a,
actions: {
pause: () => {
dm(this) || (hm(this, !0), oh(a.pauseQueue), xm(this, "onPause", Jf(this, mm(this, this.animation.to)), this))
},
resume: () => {
dm(this) && (hm(this, !1), um(this) && this._resume(), oh(a.resumeQueue), xm(this, "onResume", Jf(this, mm(this, this.animation.to)), this))
},
start: this._merge.bind(this, i)
}
}).then((n => {
if (e.loop && n.finished && (!t || !n.noop)) {
let t = gm(e);
if (t) return this._update(t, !0)
}
return n
}))
}
_merge(e, t, n) {
if (t.cancel) return this.stop(!0), n(em(this));
let r = !eh.und(e.to),
i = !eh.und(e.from);
if (r || i) {
if (!(t.callId > this._lastToId)) return n(em(this));
this._lastToId = t.callId
}
let {
key: a,
defaultProps: o,
animation: s
} = this, {
to: l,
from: c
} = s, {
to: u = l,
from: d = c
} = e;
i && !r && (!t.default || eh.und(u)) && (u = d), t.reverse && ([u, d] = [d, u]);
let p = !th(d, c);
p && (s.from = d), d = Bh(d);
let h = !th(u, l);
h && this._focus(u);
let f = $f(t.to),
{
config: m
} = s,
{
decay: g,
velocity: v
} = m;
(r || i) && (m.velocity = 0), t.config && !f && function(e, t, n) {
for (let o in n && (Yf(n = {
...n
}, t), t = {
...n,
...t
}), Yf(e, t), Object.assign(e, t), Hf) null == e[o] && (e[o] = Hf[o]);
let {
frequency: r,
damping: i
} = e, {
mass: a
} = e;
eh.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, Df(t.config, a), t.config !== o.config ? Df(o.config, a) : void 0);
let _ = _f(this);
if (!_ || eh.und(u)) return n(Jf(this, !0));
let y = eh.und(t.reset) ? i && !t.default : !eh.und(d) && Nf(t.reset, a),
b = y ? d : this.get(),
x = Gf(u),
w = eh.num(x) || eh.arr(x) || df(x),
k = !f && (!w || Nf(o.immediate || t.immediate, a));
if (h) {
let e = If(u);
if (e !== _.constructor) {
if (!k) throw Error(`Cannot animate between ${_.constructor.name} and ${e.name}, as the "to" prop suggests`);
_ = this._set(x)
}
}
let E = _.constructor,
S = Gh(u),
O = !1;
if (!S) {
let e = y || !cm(this) && p;
(h || e) && (S = !(O = th(Gf(b), x))), (th(s.immediate, k) || k) && th(m.decay, g) && th(m.velocity, v) || (S = !0)
}
if (O && um(this) && (s.changed && !y ? S = !0 : S || this._stop(l)), !f && ((S || Gh(l)) && (s.values = _.getPayload(), s.toValues = Gh(u) ? null : E == kf ? [1] : ih(x)), s.immediate == k || (s.immediate = k, k || y || this._set(l)), S)) {
let {
onRest: e
} = s;
nh(ym, (e => bm(this, t, e)));
let r = Jf(this, mm(this, l));
oh(this._pendingCalls, r), this._pendingCalls.add(n), s.changed && jp.batchedUpdates((() => {
s.changed = !y, e?.(r, this), y ? Df(o.onRest, r) : s.onStart?.(r, this)
}))
}
y && this._set(b), f ? n(tm(t.to, t, this._state, this)) : S ? this._start() : um(this) && !h ? this._pendingCalls.add(n) : n(Xf(b))
}
_focus(e) {
let t = this.animation;
e !== t.to && ($h(this) && this._detach(), t.to = e, $h(this) && this._attach())
}
_attach() {
let e = 0,
{
to: t
} = this.animation;
Gh(t) && (Yh(t, this), am(t) && (e = t.priority + 1)), this.priority = e
}
_detach() {
let {
to: e
} = this.animation;
Gh(e) && Kh(e, this)
}
_set(e, t = !0) {
let n = Bh(e);
if (!eh.und(n)) {
let e = _f(this);
if (!e || !th(n, e.getValue())) {
let r = If(n);
e && e.constructor == r ? e.setValue(n) : yf(this, r.create(n)), e && jp.batchedUpdates((() => {
this._onChange(n, t)
}))
}
}
return _f(this)
}
_onStart() {
let e = this.animation;
e.changed || (e.changed = !0, xm(this, "onStart", Jf(this, mm(this, e.to)), this))
}
_onChange(e, t) {
t || (this._onStart(), Df(this.animation.onChange, e, this)), Df(this.defaultProps.onChange, e, this), super._onChange(e, t)
}
_start() {
let e = this.animation;
_f(this).reset(Bh(e.to)), e.immediate || (e.fromValues = e.values.map((e => e.lastPosition))), um(this) || (pm(this, !0), dm(this) || this._resume())
}
_resume() {
Np.skipAnimation ? this.finish() : gh.start(this)
}
_stop(e, t) {
if (um(this)) {
pm(this, !1);
let n = this.animation;
nh(n.values, (e => {
e.done = !0
})), n.toValues && (n.onChange = n.onPause = n.onResume = void 0), qh(this, {
type: "idle",
parent: this
});
let r = t ? em(this.get()) : Jf(this.get(), mm(this, e ?? n.to));
oh(this._pendingCalls, r), n.changed && (n.changed = !1, xm(this, "onRest", r, this))
}
}
};
function mm(e, t) {
let n = Gf(t);
return th(Gf(e.get()), n)
}
function gm(e, t = e.loop, n = e.to) {
let r = Df(t);
if (r) {
let i = !0 !== r && Vf(r),
a = (i || e).reverse,
o = !i || i.reset;
return vm({
...e,
loop: t,
default: !1,
pause: void 0,
to: !a || $f(n) ? n : void 0,
from: o ? e.from : void 0,
reset: o,
...i
})
}
}
function vm(e) {
let {
to: t,
from: n
} = e = Vf(e), r = new Set;
return eh.obj(t) && _m(t, r), eh.obj(n) && _m(n, r), e.keys = r.size ? Array.from(r) : null, e
}
function _m(e, t) {
rh(e, ((e, n) => null != e && t.add(n)))
}
var ym = ["onStart", "onRest", "onChange", "onPause", "onResume"];
function bm(e, t, n) {
e.animation[n] = t[n] !== jf(t, n) ? Lf(t[n], e.key) : void 0
}
function xm(e, t, ...n) {
e.animation[t]?.(...n), e.defaultProps[t]?.(...n)
}
var wm = ["onStart", "onChange", "onRest"],
km = 1,
Em = class {
constructor(e, t) {
this.id = km++, 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,
timeouts: new Set
}, this._events = {
onStart: new Map,
onChange: new Map,
onRest: new Map
}, this._onFrame = this._onFrame.bind(this), t && (this._flush = t), e && this.start({
default: !0,
...e
})
}
get idle() {
return !this._state.asyncTo && Object.values(this.springs).every((e => e.idle && !e.isDelayed && !e.isPaused))
}
get item() {
return this._item
}
set item(e) {
this._item = e
}
get() {
let e = {};
return this.each(((t, n) => e[n] = t.get())), e
}
set(e) {
for (let t in e) {
let n = e[t];
eh.und(n) || this.springs[t].set(n)
}
}
update(e) {
return e && this.queue.push(vm(e)), this
}
start(e) {
let {
queue: t
} = this;
return e ? t = ih(e).map(vm) : this.queue = [], this._flush ? this._flush(this, t) : (Rm(this, t), Sm(this, t))
}
stop(e, t) {
if (!!e !== e && (t = e), t) {
let n = this.springs;
nh(ih(t), (t => n[t].stop(!!e)))
} else nm(this._state, this._lastAsyncId), this.each((t => t.stop(!!e)));
return this
}
pause(e) {
if (eh.und(e)) this.start({
pause: !0
});
else {
let t = this.springs;
nh(ih(e), (e => t[e].pause()))
}
return this
}
resume(e) {
if (eh.und(e)) this.start({
pause: !1
});
else {
let t = this.springs;
nh(ih(e), (e => t[e].resume()))
}
return this
}
each(e) {
rh(this.springs, e)
}
_onFrame() {
let {
onStart: e,
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, ah(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 && ah(t, (([e, t]) => {
t.value = o, e(t, this, this._item)
})), a && (this._started = !1, ah(n, (([e, t]) => {
t.value = o, e(t, this, this._item)
})))
}
eventObserved(e) {
if ("change" == e.type) this._changed.add(e.parent), e.idle || this._active.add(e.parent);
else {
if ("idle" != e.type) return;
this._active.delete(e.parent)
}
jp.onFrame(this._onFrame)
}
};
function Sm(e, t) {
return Promise.all(t.map((t => Om(e, t)))).then((t => Zf(e, t)))
}
async function Om(e, t, n) {
let {
keys: r,
to: i,
from: a,
loop: o,
onRest: s,
onResolve: l
} = t, c = eh.obj(t.default) && t.default;
o && (t.loop = !1), !1 === i && (t.to = null), !1 === a && (t.from = null);
let u = eh.arr(i) || eh.fun(i) ? i : void 0;
u ? (t.to = void 0, t.onRest = void 0, c && (c.onRest = void 0)) : nh(wm, (n => {
let r = t[n];
if (eh.fun(r)) {
let i = e._events[n];
t[n] = ({
finished: e,
cancelled: t
}) => {
let n = i.get(r);
n ? (e || (n.finished = !1), t && (n.cancelled = !0)) : i.set(r, {
value: null,
finished: e || !1,
cancelled: t || !1
})
}, c && (c[n] = t[n])
}
}));
let d = e._state;
!d.paused === t.pause ? (d.paused = t.pause, oh(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 === jf(t, "cancel");
(u || h && d.asyncId) && p.push(Qf(++e._lastAsyncId, {
props: t,
state: d,
actions: {
pause: Jp,
resume: Jp,
start(t, n) {
h ? (nm(d, e._lastAsyncId), n(em(e))) : (t.onRest = s, n(tm(u, t, d, e)))
}
}
})), d.paused && await new Promise((e => {
d.resumeQueue.add(e)
}));
let f = Zf(e, await Promise.all(p));
if (o && f.finished && (!n || !f.noop)) {
let n = gm(t, o, i);
if (n) return Rm(e, [n]), Om(e, n, !0)
}
return l && jp.batchedUpdates((() => l(f, e, e.item))), f
}
function Pm(e, t) {
let n = {
...e.springs
};
return t && nh(ih(t), (e => {
eh.und(e.keys) && (e = vm(e)), eh.obj(e.to) || (e = {
...e,
to: void 0
}), Cm(n, e, (e => Am(e)))
})), Im(e, n), n
}
function Im(e, t) {
rh(t, ((t, n) => {
e.springs[n] || (e.springs[n] = t, Yh(t, e))
}))
}
function Am(e, t) {
let n = new fm;
return n.key = e, t && Yh(n, t), n
}
function Cm(e, t, n) {
t.keys && nh(t.keys, (r => {
(e[r] || (e[r] = n(r)))._prepareNode(t)
}))
}
function Rm(e, t) {
nh(t, (t => {
Cm(e.springs, t, (t => Am(t, e)))
}))
}
var Tm = ({
children: e,
...t
}) => {
let n = (0, Pe.useContext)(Dm),
r = t.pause || !!n.pause,
i = t.immediate || !!n.immediate;
t = function(e, t) {
let [n] = (0, Pe.useState)((() => ({
inputs: t,
result: e()
}))), r = (0, Pe.useRef)(), i = r.current, a = i;
if (a) {
let n = !!(t && a.inputs && function(e, t) {
if (e.length !== t.length) return !1;
for (let n = 0; n < e.length; n++)
if (e[n] !== t[n]) return !1;
return !0
}(t, a.inputs));
n || (a = {
inputs: t,
result: e()
})
} else a = n;
return (0, Pe.useEffect)((() => {
r.current = a, i == n && (n.inputs = n.result = void 0)
}), [a]), a.result
}((() => ({
pause: r,
immediate: i
})), [r, i]);
let {
Provider: a
} = Dm;
return Pe.createElement(a, {
value: t
}, e)
},
Dm = (Object.assign(Tm, Pe.createContext({})), Tm.Provider._context = Tm, Tm.Consumer._context = Tm, Tm);
Tm.Provider = Dm.Provider, Tm.Consumer = Dm.Consumer;
var Nm = () => {
let e = [],
t = function(t) {
uf(`${sf}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 nh(e, ((e, i) => {
if (eh.und(t)) r.push(e.start());
else {
let a = n(t, e, i);
a && r.push(e.start(a))
}
})), r
};
t.current = e, t.add = function(t) {
e.includes(t) || e.push(t)
}, t.delete = function(t) {
let n = e.indexOf(t);
~n && e.splice(n, 1)
}, t.pause = function() {
return nh(e, (e => e.pause(...arguments))), this
}, t.resume = function() {
return nh(e, (e => e.resume(...arguments))), this
}, t.set = function(t) {
nh(e, ((e, n) => {
let r = eh.fun(t) ? t(n, e) : t;
r && e.set(r)
}))
}, t.start = function(t) {
let n = [];
return nh(e, ((e, r) => {
if (eh.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 nh(e, (e => e.stop(...arguments))), this
}, t.update = function(t) {
return nh(e, ((e, n) => e.update(this._getProps(t, e, n)))), this
};
let n = function(e, t, n) {
return eh.fun(e) ? e(n, t) : e
};
return t._getProps = n, t
};
function Lm(e, t) {
let n = eh.fun(e),
[
[r], i
] = function(e, t, n) {
let r = eh.fun(t) && t;
r && !n && (n = []);
let i = (0, Pe.useMemo)((() => r || 3 == arguments.length ? Nm() : void 0), []),
a = (0, Pe.useRef)(0),
o = hf(),
s = (0, Pe.useMemo)((() => ({
ctrls: [],
queue: [],
flush(e, t) {
let n = Pm(e, t),
r = a.current > 0 && !s.queue.length && !Object.keys(n).some((t => !e.springs[t]));
return r ? Sm(e, t) : new Promise((r => {
Im(e, n), s.queue.push((() => {
r(Sm(e, t))
})), o()
}))
}
})), []),
l = (0, Pe.useRef)([...s.ctrls]),
c = [],
u = gf(e) || 0;
function d(e, n) {
for (let i = e; i < n; i++) {
let e = l.current[i] || (l.current[i] = new Em(null, s.flush)),
n = r ? r(i, e) : t[i];
n && (c[i] = function(e) {
let t = vm(e);
return eh.und(t.default) && (t.default = zf(t)), t
}(n))
}
}(0, Pe.useMemo)((() => {
nh(l.current.slice(e, u), (e => {
qf(e, i), e.stop(!0)
})), l.current.length = e, d(u, e)
}), [e]), (0, Pe.useMemo)((() => {
d(0, Math.min(u, e))
}), n);
let p = l.current.map(((e, t) => Pm(e, c[t]))),
h = (0, Pe.useContext)(Tm),
f = gf(h),
m = h !== f && Bf(h);
pf((() => {
a.current++, s.ctrls = l.current;
let {
queue: e
} = s;
e.length && (s.queue = [], nh(e, (e => e()))), nh(l.current, ((e, t) => {
i?.add(e), m && e.start({
default: h
});
let n = c[t];
n && (Wf(e, n.ref), e.ref ? e.queue.push(n) : e.start(n))
}))
})), ff((() => () => {
nh(s.ctrls, (e => e.stop(!0)))
}));
let g = p.map((e => ({
...e
})));
return i ? [g, i] : g
}(1, n ? e : [e], n ? t || [] : t);
return n || 2 == arguments.length ? [r, i] : r
}
var jm = 1,
Mm = class extends sm {
constructor(e, t) {
super(), this.source = e, this.idle = !0, this._active = new Set, this.calc = Fh(...t);
let n = this._get(),
r = If(n);
yf(this, r.create(n))
}
advance(e) {
let t = this._get();
th(t, this.get()) || (_f(this).setValue(t), this._onChange(t, this.idle)), !this.idle && Fm(this._active) && Um(this)
}
_get() {
let e = eh.arr(this.source) ? this.source.map(Bh) : ih(Bh(this.source));
return this.calc(...e)
}
_start() {
this.idle && !Fm(this._active) && (this.idle = !1, nh(bf(this), (e => {
e.done = !1
})), Np.skipAnimation ? (jp.batchedUpdates((() => this.advance())), Um(this)) : gh.start(this))
}
_attach() {
let e = 1;
nh(ih(this.source), (t => {
Gh(t) && Yh(t, this), am(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1))
})), this.priority = e, this._start()
}
_detach() {
nh(ih(this.source), (e => {
Gh(e) && Kh(e, this)
})), this._active.clear(), Um(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 = ih(this.source).reduce(((e, t) => Math.max(e, (am(t) ? t.priority : 0) + 1)), 0))
}
};
function zm(e) {
return !1 !== e.idle
}
function Fm(e) {
return !e.size || Array.from(e).every(zm)
}
function Um(e) {
e.idle || (e.idle = !0, nh(bf(e), (e => {
e.done = !0
})), qh(e, {
type: "idle",
parent: e
}))
}
Np.assign({
createStringInterpolator: of,
to: (e, t) => new Mm(e, t)
});
var Vm = /^--/,
Gm = {},
Bm = {
animationIterationCount: !0,
borderImageOutset: !0,
borderImageSlice: !0,
borderImageWidth: !0,
boxFlex: !0,
boxFlexGroup: !0,
boxOrdinalGroup: !0,
columnCount: !0,
columns: !0,
flex: !0,
flexGrow: !0,
flexPositive: !0,
flexShrink: !0,
flexNegative: !0,
flexOrder: !0,
gridRow: !0,
gridRowEnd: !0,
gridRowSpan: !0,
gridRowStart: !0,
gridColumn: !0,
gridColumnEnd: !0,
gridColumnSpan: !0,
gridColumnStart: !0,
fontWeight: !0,
lineClamp: !0,
lineHeight: !0,
opacity: !0,
order: !0,
orphans: !0,
tabSize: !0,
widows: !0,
zIndex: !0,
zoom: !0,
fillOpacity: !0,
floodOpacity: !0,
stopOpacity: !0,
strokeDasharray: !0,
strokeDashoffset: !0,
strokeMiterlimit: !0,
strokeOpacity: !0,
strokeWidth: !0
},
$m = ["Webkit", "Ms", "Moz", "O"];
Bm = Object.keys(Bm).reduce(((e, t) => ($m.forEach((n => e[((e, t) => e + t.charAt(0).toUpperCase() + t.substring(1))(n, t)] = e[t])), e)), Bm);
var qm = /^(matrix|translate|scale|rotate|skew)/,
Wm = /^(translate)/,
Hm = /^(rotate|skew)/,
Ym = (e, t) => eh.num(e) && 0 !== e ? e + t : e,
Km = (e, t) => eh.arr(e) ? e.every((e => Km(e, t))) : eh.num(e) ? e === t : parseFloat(e) === t,
Qm = class extends Sf {
constructor({
x: e,
y: t,
z: n,
...r
}) {
let i = [],
a = [];
(e || t || n) && (i.push([e || 0, t || 0, n || 0]), a.push((e => [`translate3d(${e.map((e=>Ym(e,"px"))).join(",")})`, Km(e, 0)]))), rh(r, ((e, t) => {
if ("transform" === t) i.push([e || ""]), a.push((e => [e, "" === e]));
else if (qm.test(t)) {
if (delete r[t], eh.und(e)) return;
let n = Wm.test(t) ? "px" : Hm.test(t) ? "deg" : "";
i.push(ih(e)), a.push("rotate3d" === t ? ([e, t, r, i]) => [`rotate3d(${e},${t},${r},${Ym(i,n)})`, Km(i, 0)] : e => [`${t}(${e.map((e=>Ym(e,n))).join(",")})`, Km(e, t.startsWith("scale") ? 1 : 0)])
}
})), i.length && (r.transform = new Zm(i, a)), super(r)
}
},
Zm = class extends Wh {
constructor(e, t) {
super(), this.inputs = e, this.transforms = t, this._value = null
}
get() {
return this._value || (this._value = this._get())
}
_get() {
let e = "",
t = !0;
return nh(this.inputs, ((n, r) => {
let i = Bh(n[0]),
[a, o] = this.transforms[r](eh.arr(i) ? i : n.map(Bh));
e += " " + a, t = t && o
})), t ? "none" : e
}
observerAdded(e) {
1 == e && nh(this.inputs, (e => nh(e, (e => Gh(e) && Yh(e, this)))))
}
observerRemoved(e) {
0 == e && nh(this.inputs, (e => nh(e, (e => Gh(e) && Kh(e, this)))))
}
eventObserved(e) {
"change" == e.type && (this._value = null), qh(this, e)
}
};
Np.assign({
batchedUpdates: zi.unstable_batchedUpdates,
createStringInterpolator: of,
colors: {
transparent: 0,
aliceblue: 4042850303,
antiquewhite: 4209760255,
aqua: 16777215,
aquamarine: 2147472639,
azure: 4043309055,
beige: 4126530815,
bisque: 4293182719,
black: 255,
blanchedalmond: 4293643775,
blue: 65535,
blueviolet: 2318131967,
brown: 2771004159,
burlywood: 3736635391,
burntsienna: 3934150143,
cadetblue: 1604231423,
chartreuse: 2147418367,
chocolate: 3530104575,
coral: 4286533887,
cornflowerblue: 1687547391,
cornsilk: 4294499583,
crimson: 3692313855,
cyan: 16777215,
darkblue: 35839,
darkcyan: 9145343,
darkgoldenrod: 3095792639,
darkgray: 2846468607,
darkgreen: 6553855,
darkgrey: 2846468607,
darkkhaki: 3182914559,
darkmagenta: 2332068863,
darkolivegreen: 1433087999,
darkorange: 4287365375,
darkorchid: 2570243327,
darkred: 2332033279,
darksalmon: 3918953215,
darkseagreen: 2411499519,
darkslateblue: 1211993087,
darkslategray: 793726975,
darkslategrey: 793726975,
darkturquoise: 13554175,
darkviolet: 2483082239,
deeppink: 4279538687,
deepskyblue: 12582911,
dimgray: 1768516095,
dimgrey: 1768516095,
dodgerblue: 512819199,
firebrick: 2988581631,
floralwhite: 4294635775,
forestgreen: 579543807,
fuchsia: 4278255615,
gainsboro: 3705462015,
ghostwhite: 4177068031,
gold: 4292280575,
goldenrod: 3668254975,
gray: 2155905279,
green: 8388863,
greenyellow: 2919182335,
grey: 2155905279,
honeydew: 4043305215,
hotpink: 4285117695,
indianred: 3445382399,
indigo: 1258324735,
ivory: 4294963455,
khaki: 4041641215,
lavender: 3873897215,
lavenderblush: 4293981695,
lawngreen: 2096890111,
lemonchiffon: 4294626815,
lightblue: 2916673279,
lightcoral: 4034953471,
lightcyan: 3774873599,
lightgoldenrodyellow: 4210742015,
lightgray: 3553874943,
lightgreen: 2431553791,
lightgrey: 3553874943,
lightpink: 4290167295,
lightsalmon: 4288707327,
lightseagreen: 548580095,
lightskyblue: 2278488831,
lightslategray: 2005441023,
lightslategrey: 2005441023,
lightsteelblue: 2965692159,
lightyellow: 4294959359,
lime: 16711935,
limegreen: 852308735,
linen: 4210091775,
magenta: 4278255615,
maroon: 2147483903,
mediumaquamarine: 1724754687,
mediumblue: 52735,
mediumorchid: 3126187007,
mediumpurple: 2473647103,
mediumseagreen: 1018393087,
mediumslateblue: 2070474495,
mediumspringgreen: 16423679,
mediumturquoise: 1221709055,
mediumvioletred: 3340076543,
midnightblue: 421097727,
mintcream: 4127193855,
mistyrose: 4293190143,
moccasin: 4293178879,
navajowhite: 4292783615,
navy: 33023,
oldlace: 4260751103,
olive: 2155872511,
olivedrab: 1804477439,
orange: 4289003775,
orangered: 4282712319,
orchid: 3664828159,
palegoldenrod: 4008225535,
palegreen: 2566625535,
paleturquoise: 2951671551,
palevioletred: 3681588223,
papayawhip: 4293907967,
peachpuff: 4292524543,
peru: 3448061951,
pink: 4290825215,
plum: 3718307327,
powderblue: 2967529215,
purple: 2147516671,
rebeccapurple: 1714657791,
red: 4278190335,
rosybrown: 3163525119,
royalblue: 1097458175,
saddlebrown: 2336560127,
salmon: 4202722047,
sandybrown: 4104413439,
seagreen: 780883967,
seashell: 4294307583,
sienna: 2689740287,
silver: 3233857791,
skyblue: 2278484991,
slateblue: 1784335871,
slategray: 1887473919,
slategrey: 1887473919,
snow: 4294638335,
springgreen: 16744447,
steelblue: 1182971135,
tan: 3535047935,
teal: 8421631,
thistle: 3636451583,
tomato: 4284696575,
turquoise: 1088475391,
violet: 4001558271,
wheat: 4125012991,
white: 4294967295,
whitesmoke: 4126537215,
yellow: 4294902015,
yellowgreen: 2597139199
}
});
var Xm = ((e, {
applyAnimatedValues: t = (() => !1),
createAnimatedStyle: n = (e => new Sf(e)),
getComponentProps: r = (e => e)
} = {}) => {
let i = {
applyAnimatedValues: t,
createAnimatedStyle: n,
getComponentProps: r
},
a = e => {
let t = Tf(e) || "Anonymous";
return (e = eh.str(e) ? a[e] || (a[e] = Af(e, i)) : e[Rf] || (e[Rf] = Af(e, i))).displayName = `Animated(${t})`, e
};
return rh(e, ((t, n) => {
eh.arr(e) && (n = Tf(t)), a[n] = a(t)
})), {
animated: a
}
})(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"], {
applyAnimatedValues: function(e, t) {
if (!e.nodeType || !e.setAttribute) return !1;
let n = "filter" === e.nodeName || e.parentNode && "filter" === e.parentNode.nodeName,
{
style: r,
children: i,
scrollTop: a,
scrollLeft: o,
viewBox: s,
...l
} = t,
c = Object.values(l),
u = Object.keys(l).map((t => n || e.hasAttribute(t) ? t : Gm[t] || (Gm[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 || Vm.test(p) || Bm.hasOwnProperty(p) && Bm[p] ? ("" + d).trim() : d + "px";
Vm.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 Qm(e),
getComponentProps: ({
scrollTop: e,
scrollLeft: t,
...n
}) => n
}).animated;
let Jm = Vs((({
as: e = "nav",
children: t,
className: n,
...r
}, i) => {
let [a, o] = (0, Pe.useState)(!1), s = Us("sol-c-game-page__tabs", n), l = (0, Pe.useRef)(null), {
unessentialAnimationsDisabled: c
} = sl().reduceMotion, [u] = Lm((() => ({
from: {
width: 0,
left: 0,
opacity: 0
},
to: async e => {
let t = l.current?.querySelector('[aria-pressed="true"], [aria-current="true"]'),
n = e => Number(getComputedStyle(t).getPropertyValue(e).match(/\d+/));
if (t) {
let r = n("padding-left"),
i = n("padding-right");
a || (o(!0), await e({
left: t.offsetLeft + r,
width: t.offsetWidth - r - i,
immediate: !0
})), await e({
left: t.offsetLeft + r,
width: t.offsetWidth - r - i
})
} else o(!1);
await e({
opacity: 1,
delay: 1500
})
},
config: {
duration: 100
}
})), [t]);
return _s.jsxs(e, {
className: s,
ref: Gs(l, i),
...r,
children: [t, !c && _s.jsx(Xm.div, {
"aria-hidden": "true",
className: "sol-c-game-page__tabs-indicator",
style: u
})]
})
})),
eg = Vs((({
className: e,
...t
}, n) => {
let r = Us("sol-c-game-page__title", e);
return _s.jsx(xl, {
as: "h1",
className: r,
ref: n,
color: "foreground",
variant: "heading-s",
...t
})
})),
tg = Vs((({
as: e = "div",
children: t,
className: n,
navigation: r,
theme: i,
...a
}, o) => {
let s = Us("sol-c-game-page", n);
return _s.jsxs(e, {
className: s,
ref: o,
...a,
children: [r && _s.jsx("div", {
className: "sol-c-game-page__navigation",
children: r
}), i ? _s.jsx(ml, {
name: i,
children: ({
getProps: e
}) => _s.jsx("div", {
...e({
className: "sol-c-game-page__wrapper"
}),
children: t
})
}) : _s.jsx("div", {
className: "sol-c-game-page__wrapper",
children: t
})]
})
}));
ss("@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 ng = (0, Pe.forwardRef)((({
active: e,
className: t,
logo: n,
name: r,
...i
}, a) => {
let o = Us("sol-c-game-switcher__item", t),
s = Js({
src: n
});
return _s.jsxs(_l, {
"aria-current": e ? "true" : void 0,
className: o,
ref: a,
...i,
style: {
"--sol-c-game-switcher-logo": n && s === Zs ? `url("${n}")` : void 0
},
children: [(!n || s === Xs) && _s.jsx(xl, {
"aria-hidden": "true",
className: "sol-c-game-switcher__fallback",
offset: !0,
variant: "heading-l",
children: r.slice(0, 2).toLocaleUpperCase()
}), _s.jsx("span", {
className: "sol-u-hide-visually",
children: r
})]
})
})),
rg = Vs((({
as: e = "nav",
children: t,
className: n,
id: r,
items: i,
title: a,
...o
}, s) => {
let l = Ks(r) + "-label",
c = Us("sol-c-game-switcher", n),
u = (0, Pe.useRef)(null),
[d, p] = (0, Pe.useState)(!1),
[h] = Lm((() => ({
from: {
height: 0,
top: 0,
opacity: 0
},
to: async e => {
let t = u.current?.querySelector('[aria-current="true"]');
t ? (d || (p(!0), await e({
top: t.offsetTop,
height: t.offsetHeight,
immediate: !0
})), await e({
top: t.offsetTop,
height: t.offsetHeight,
opacity: 1
})) : (p(!1), await e({
opacity: 0
}))
}
})), [t]);
return _s.jsxs(e, {
"aria-labelledby": a ? l : void 0,
className: c,
ref: Gs(u, s),
...o,
children: [a && _s.jsx(xl, {
align: "center",
className: "sol-c-game-switcher__title",
id: l,
variant: "emphasis-s",
transform: "uppercase",
truncate: !0,
children: a
}), i?.map(((e, t) => e.name && _s.jsx(ng, {
...e
}, t))), t, _s.jsx(Xm.div, {
"aria-hidden": "true",
className: "sol-c-game-switcher__indicator",
style: h
})]
})
}));
function ig() {
return (ig = 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
}).apply(this, arguments)
}
ss('@layer components{.sol-c-input{--_border-color:var(--sol-color-interactive);--_border-width:var(--sol-border-1);--_block-size:var(--sol-size-300);--_icon-size:var(--sol-size-100);--_padding:var(--sol-size-100);--_separator-color:var(--sol-color-surface-2);--_separator-size:var(--sol-size-150);--_separator-width:var(--sol-border-1);align-items:flex-start;background:var(--sol-color-surface-0);cursor:var(--sol-cursor-interactive);display:flex;flex:1;gap:var(--_padding);padding-inline:var(--_padding);position:relative}.sol-c-input:before{border:var(--_border-width) solid var(--_border-color);border-radius:inherit;content:"";inset:0;pointer-events:none;position:absolute;transition:border-color var(--sol-motion-250)}.sol-c-input:hover{--_border-color:var(--sol-color-interactive-hovered)}.sol-c-input:has(.sol-c-input__element:focus){--_border-color:var(--sol-color-interactive-pressed);--_border-width:var(--sol-focus-width)}.sol-c-input--disabled{opacity:.4;pointer-events:none}.sol-c-input--invalid{--_border-color:var(--sol-color-interactive-negative)}.sol-c-input--invalid:hover{--_border-color:var(--sol-color-interactive-negative-hovered)}.sol-c-input--invalid:has(.sol-c-input__element:focus){--_border-color:var(--sol-color-interactive-negative-pressed)}.sol-c-input--has-start-icon,.sol-c-input:has(.sol-c-input__icon--start){--_offset-start:calc(var(--_icon-size) + var(--_padding))}.sol-c-input--has-end-icon,.sol-c-input:has(.sol-c-input__icon--end){--_offset-end:calc(var(--_padding) + var(--_icon-size))}.sol-c-input__element{align-items:center;background:#0000 none;border:0;border-radius:0;box-shadow:none;display:flex;flex:1;font:1rem/1.5 sans-serif;inline-size:100%;margin-block:0;margin-inline-end:calc((var(--_padding) + var(--_offset-end, 0px))*-1);margin-inline-start:calc((var(--_padding) + var(--_offset-start, 0px))*-1);min-block-size:var(--_block-size);padding-block:var(--sol-size-025);padding-inline-end:calc(var(--_padding) + var(--_offset-end, 0px));padding-inline-start:calc(var(--_padding) + var(--_offset-start, 0px));position:relative;text-align:start;text-overflow:ellipsis}.sol-c-input__element:is(textarea){block-size:calc(var(--_block-size)*2);padding-block:var(--sol-size-075);resize:vertical;scroll-padding-block:var(--sol-size-075)}.sol-c-input__element:is(select){appearance:none}.sol-c-input__element:is(select) optgroup,.sol-c-input__element:is(select) optgroup:checked,.sol-c-input__element:is(select) option,.sol-c-input__element:is(select) option:checked{background:var(--sol-color-surface-0)}.sol-c-input__element[type=number]{appearance:textfield}.sol-c-input__element[type=number]::-webkit-inner-spin-button,.sol-c-input__element[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}.sol-c-input__element:is(button)[data-placeholder]:empty:before{content:attr(data-placeholder);display:block;pointer-events:none}.sol-c-input__element:is(button)[data-placeholder]:before,.sol-c-input__element:is(input,textarea)::placeholder,.sol-c-input__element:is(select):has(option[value=""]:not(:empty):checked){color:var(--sol-color-foreground-weak);opacity:1;transition:opacity var(--sol-motion-250)}.sol-c-input__element:focus,.sol-c-input__element:focus-visible{outline:none}.sol-c-input__floating{--_label-size:var(--sol-text-label-xs-line-height);--_label-offset:calc(var(--_label-size)/2);display:flex;flex:1;position:relative}.sol-c-input__floating .sol-c-input__element{padding-block-start:calc(var(--_label-offset) + var(--_label-size))}.sol-c-input__floating .sol-c-input__element:not(:focus):is(input,textarea)::placeholder,.sol-c-input__floating .sol-c-input__element:not(:focus):is(select):has(option[value=""]:not(:empty):checked),.sol-c-input__floating .sol-c-input__element:not(:focus,[aria-expanded=true]):is(button)[data-placeholder]:before{opacity:0}.sol-c-input__label{inset-block-start:var(--_label-offset);inset-inline:0;pointer-events:none;position:absolute;z-index:3}.sol-c-input__label:before{background:var(--sol-color-surface-0);content:"";opacity:.8;position:absolute;top:calc(var(--sol-size-025)*-1);user-select:none;width:100%;block-size:calc(var(--_label-size) + var(--sol-size-025)*2);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);pointer-events:none;position:relative}.sol-c-input__prefix>*,.sol-c-input__suffix>*{pointer-events:auto}.sol-c-input__separator{background:var(--_separator-color);block-size:var(--_separator-size);inline-size:var(--_separator-width);margin-block:calc((var(--_block-size) - var(--_separator-size))/2)}}');
var ag = function(e, t) {
"function" != typeof e ? e.current = t : e(t)
},
og = function() {},
sg = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"],
lg = Pe.forwardRef((function(e, t) {
e.cacheMeasurements, e.maxRows, e.minRows;
var n = e.onChange;
e.onHeightChange;
var r = function(e, t) {
if (null == e) return {};
var n = {};
for (var r in e)
if (Object.prototype.hasOwnProperty.call(e, r)) {
if (t.indexOf(r) >= 0) continue;
n[r] = e[r]
} return n
}(e, sg);
r.value;
var i = function(e, t) {
var n = (0, Pe.useRef)();
return (0, Pe.useCallback)((function(r) {
e.current = r, n.current && ag(n.current, null), n.current = t, t && ag(t, r)
}), [t])
}(Pe.useRef(null), t);
return Pe.useRef(0), Pe.useRef(), Pe.createElement("textarea", ig({}, r, {
onChange: void 0 === n ? og : n,
ref: i
}))
}));
let cg = (0, Pe.forwardRef)((({
as: e,
className: t,
id: n,
"aria-describedby": r,
"aria-labelledby": i,
disabled: a,
invalid: o,
required: s,
placeholder: l = " ",
type: c,
endIcon: u,
icon: d,
prefix: p,
suffix: h,
showPasswordLabel: f = "Show password",
hidePasswordLabel: m = "Hide password",
wrapperProps: g,
...v
}, _) => {
let y = (0, Pe.useRef)(null),
b = (0, Pe.useId)(),
x = bp(),
[w, k] = (0, Pe.useState)(!1),
E = x?.inputId ?? n ?? b,
S = pl(_, y);
(0, Pe.useLayoutEffect)((() => {
x && y.current && (x.setInputRef(y.current), x.setInputId(E), null != a && x.setIsDisabled(a), null != o && x.setIsInvalid(o), null != s && x.setIsRequired(s), "button" === e && x.setLabelElementType("span"))
}), [e, a, x, E, o, s]), (0, Pe.useEffect)((() => {
if ("password" === c && y.current) {
let e = y.current.form,
t = () => k(!1);
return e?.addEventListener("submit", t), () => e?.removeEventListener("submit", t)
}
}), [c]);
let O = x?.isDisabled ?? a,
P = x?.isInvalid ?? o,
I = x?.isRequired ?? s,
A = x?.getDescribedby(r) ?? r,
C = x?.getLabelledby(i) ?? i,
R = (0, Pe.useMemo)((() => x ? _s.jsxs(Ll, {
align: "baseline",
as: x.labelElementType,
className: "sol-c-input__label",
gap: "025",
...x.labelProps,
children: [_s.jsx(xl, {
as: "span",
className: "sol-c-input__label-text",
color: "foreground-weak",
truncate: !0,
children: x.label
}), x.necessityIndicator && _s.jsxs(xl, {
"aria-hidden": !!I || void 0,
as: "span",
className: "sol-c-input__label-indicator",
color: "foreground-weak",
transform: "lowercase",
children: ["(", x.necessityIndicator, ")"]
})]
}) : null), [x, I]),
T = (0, Pe.useMemo)((() => "password" === c ? _s.jsxs(_s.Fragment, {
children: [_s.jsx(Ol, {
"aria-label": w ? m : f,
color: P ? "negative" : void 0,
icon: w ? Ls : Ns,
onClick: () => k(!w),
size: "small",
variant: "plain"
}), h]
}) : h), [m, P, w, f, h, c]),
D = "select" === e ? Is : u,
N = Us("sol-c-input", D && "sol-c-input--has-end-icon", d && "sol-c-input--has-start-icon", O && "sol-c-input--disabled", P && "sol-c-input--invalid", I && "sol-c-input--required", g?.className),
L = Us("sol-c-input__element", t),
j = (0, Pe.createElement)(e ? "textarea" === e ? lg : e : "input", {
"aria-describedby": A,
"aria-labelledby": C,
"aria-required": !!I || void 0,
"aria-invalid": !!P || void 0,
autoComplete: "password" === c ? "off" : void 0,
className: L,
disabled: O,
id: E,
placeholder: l,
"data-placeholder": l,
ref: S,
type: "password" === c && w ? "text" : c,
...v
});
return _s.jsxs("div", {
...g,
className: N,
children: [p && _s.jsx("span", {
className: "sol-c-input__prefix",
children: p
}), p && d && _s.jsx("span", {
"aria-hidden": !0,
className: "sol-c-input__separator"
}), d && _s.jsx(bl, {
className: "sol-c-input__icon sol-c-input__icon--start",
source: d
}), x && x.label && "floating" === x.labelType ? _s.jsxs("div", {
className: "sol-c-input__floating",
children: [R, j, "textarea" === e && _s.jsx(Ds, {
className: "sol-c-input__icon sol-c-input__icon--resize"
})]
}) : j, D && _s.jsx(bl, {
className: "sol-c-input__icon sol-c-input__icon--end",
source: D
}), D && T && _s.jsx("span", {
"aria-hidden": !0,
className: "sol-c-input__separator"
}), T && _s.jsx("span", {
className: "sol-c-input__suffix",
children: T
})]
})
}));
ss("@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 ug = Vs((({
children: e,
className: t,
external: n,
icon: r,
startIcon: i,
inherit: a,
...o
}, s) => {
let l = Us("sol-c-link", n && "sol-c-link--external", a && "sol-c-link--inherit", t);
return _s.jsxs(vl, {
className: l,
external: n,
ref: s,
...o,
children: [i && _s.jsx(bl, {
className: "sol-c-link__icon sol-c-link__icon--start",
source: i
}), e, r && _s.jsxs("span", {
className: "sol-c-link__orphan",
children: ["\ufeff", _s.jsx(bl, {
className: "sol-c-link__icon sol-c-link__icon--end",
source: r
})]
})]
})
}));
ss('@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 dg = {
none: 0,
small: 8,
medium: 12,
large: 16
},
pg = (0, Pe.createContext)(null),
hg = () => {
let e = (0, Pe.useContext)(pg);
if (!e) throw Error("Listbox components must be wrapped in <Listbox />");
return e
},
fg = ((0, Pe.forwardRef)((({
children: e,
className: t,
label: n,
...r
}, i) => {
let a = (0, Pe.useId)(),
{
isMounted: o
} = hg();
if (!o) return _s.jsx(_s.Fragment, {
children: e
});
let s = Us("sol-c-listbox__group", t);
return _s.jsxs("li", {
className: s,
ref: i,
role: "presentation",
...r,
children: [_s.jsx(xl, {
id: a,
"aria-hidden": "true",
className: "sol-c-listbox__label",
color: "foreground-highlight",
variant: "body-s-bold",
children: n
}), _s.jsx("ul", {
"aria-labelledby": a,
className: "sol-c-listbox__items",
role: "group",
children: e
})]
})
})), (0, Pe.memo)((0, Pe.forwardRef)((({
children: e,
active: t,
disabled: n,
selected: r,
getItemProps: i,
onSelect: a,
...o
}, s) => _s.jsxs("li", {
"aria-selected": r,
"aria-disabled": n,
ref: s,
role: "option",
tabIndex: t ? 0 : -1,
...i({
onClick: a,
onKeyDown(e) {
["Enter", "Tab"].includes(e.key) && a(), [" ", "Tab"].includes(e.key) && e.preventDefault()
},
onKeyUp(e) {
" " === e.key && a()
}
}),
...o,
children: [_s.jsx(xl, {
as: "span",
className: "sol-c-listbox__content",
color: "foreground",
truncate: !0,
variant: "label-m",
children: e
}), r && _s.jsx(bl, {
className: "sol-c-listbox__icon",
color: "foreground",
source: xs
})]
}))))),
mg = (0, Pe.forwardRef)((({
children: e,
className: t,
disabled: n = !1,
id: r,
label: i,
value: a,
...o
}, s) => {
let {
ref: l,
index: c
} = $u({
label: n ? null : i
}), {
getItemProps: u,
activeIndex: d,
selectedIndex: p,
setSelectedIndex: h,
setIsOpen: f,
value: m,
setValue: g,
setLabel: v,
allowEmpty: _,
isMounted: y
} = hg();
el((() => {
a === m && c !== p && (h(c), v(e ?? i))
}), [e, c, m, i, p, v, h, a]);
let b = (0, Pe.useCallback)((() => {
n || (c === p && _ ? (h(null), g(""), v("")) : (h(c), g(a), v(e ?? i)), f(!1))
}), [_, e, n, c, i, p, v, f, h, g, a]),
x = Ou([s, l]);
if (!y) return _s.jsx("li", {
ref: x,
children: i
});
let w = !n && c === p,
k = !n && c === d,
E = Us("sol-c-listbox__item", k && "sol-c-listbox__item--active", t);
return _s.jsx(fg, {
className: E,
ref: x,
active: k,
disabled: n,
selected: w,
getItemProps: u,
onSelect: b,
...o,
children: e ?? i
})
})),
gg = (0, Pe.forwardRef)((({
allowEmpty: e,
anchor: t,
children: n,
className: r,
defaultValue: i = "",
loop: a = !0,
name: o,
offset: s = "small",
onChange: l,
onValueChange: c,
overlay: u = !1,
placement: d = "bottom-start",
style: p,
trigger: h,
value: f,
empty: m = "",
...g
}, v) => {
let _ = (({
allowEmpty: e,
anchor: t,
loop: n,
offset: r = "small",
placement: i,
value: a,
defaultValue: o,
onValueChange: s
} = {}) => {
let [l, c] = qs({
value: a,
defaultValue: o,
onChange: s
}), [u, d] = (0, Pe.useState)(!1), [p, h] = (0, Pe.useState)(null), [f, m] = (0, Pe.useState)(null), [g, v] = (0, Pe.useState)(null), _ = (0, Pe.useRef)([]), y = (0, Pe.useRef)([]), b = Md({
open: u,
onOpenChange: d,
placement: i,
whileElementsMounted: iu,
middleware: [Ac({
mainAxis: dg[r],
alignmentAxis: 0
}), Cc({
padding: dg[r]
}), Rc({
apply({
availableHeight: e,
availableWidth: t,
elements: n,
rects: r
}) {
n.floating.style.setProperty("--sol-c-listbox-available-height", `${e}px`), Object.assign(n.floating.style, {
maxInlineSize: `${t}px`,
inlineSize: `${r.reference.width}px`
})
},
padding: dg[r]
})],
transform: !1
}), {
context: x,
refs: {
setPositionReference: w
}
} = b;
(0, Pe.useEffect)((() => {
t && w(t)
}), [t, w]), (0, Pe.useEffect)((() => {
e && !l && (h(null), m(null), v(null))
}), [e, l]);
let k = Fd([Td(x), jd(x), Wd(x, {
role: "listbox"
}), qd(x, {
listRef: _,
activeIndex: p,
selectedIndex: f,
onNavigate: h,
loop: n
}), Yd(x, {
listRef: y,
activeIndex: p,
selectedIndex: f,
onMatch: h
})]),
E = Hd(x);
return (0, Pe.useMemo)((() => ({
isOpen: u,
setIsOpen: d,
elementsRef: _,
labelsRef: y,
allowEmpty: e,
activeIndex: p,
selectedIndex: f,
setSelectedIndex: m,
label: g,
setLabel: v,
value: l,
setValue: c,
...b,
...k,
...E
})), [u, e, p, f, g, l, c, b, k, E])
})({
allowEmpty: e,
anchor: t,
defaultValue: i,
loop: a,
offset: s,
onValueChange(e) {
l?.({
target: {
name: o,
value: e
}
}), c?.(e)
},
placement: d,
value: f
}),
{
floatingStyles: y,
refs: b,
context: x,
placement: w,
getReferenceProps: k,
getFloatingProps: E,
isOpen: S,
value: O,
label: P,
isMounted: I,
status: A,
elementsRef: C,
labelsRef: R
} = _,
T = Ou([v, b.setReference, h.ref]),
{
name: D
} = gl(),
N = Us("sol-c-listbox", "sol-u-transition-floating", r);
return _s.jsx(Bu, {
elementsRef: C,
labelsRef: R,
children: _s.jsxs(pg.Provider, {
value: _,
children: [(0, Pe.cloneElement)("function" == typeof h ? h({
isOpen: S,
label: P,
value: O
}) : h, k({
ref: T
}), h.props?.children || P || m), I ? _s.jsx(Sd, {
children: _s.jsx(up, {
condition: u,
wrap: e => _s.jsx(Cd, {
"data-sol-listbox-overlay": !0,
children: e
}),
children: _s.jsx(Id, {
context: x,
modal: !1,
children: _s.jsx("ul", {
className: N,
"data-sol-placement": w,
"data-sol-status": A,
"data-sol-theme": D,
ref: b.setFloating,
role: "listbox",
style: {
...y,
...p
},
...E(g),
children: n
})
})
})
}) : _s.jsx("ul", {
hidden: !0,
children: n
}), o && _s.jsx("input", {
type: "hidden",
name: o,
value: O
})]
})
})
}));
ss("@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 vg = {
v: "5.9.0",
fr: 29.9700012207031,
ip: 0,
op: 120.0000048877,
w: 336,
h: 205,
nm: "RSI Loader V4 - Export",
ddd: 0,
assets: [{
id: "comp_0",
nm: "RSI Loader V4",
fr: 29.9700012207031,
layers: [{
ddd: 0,
ind: 1,
ty: 4,
nm: "Bars strokes 2",
sr: 1,
ks: {
o: {
a: 1,
k: [{
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 27,
s: [0]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 28.951,
s: [100]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 30.959,
s: [0]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 32.958,
s: [100]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 34.959,
s: [0]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 36.955,
s: [100]
}, {
t: 41.9512517087094,
s: [0]
}],
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[-4.209, 36.009],
[13.79, -36.165],
[4.292, -36.165],
[-13.79, 36.009]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [592.395, 35.96],
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: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[13.853, -36.165],
[-4.103, 36.009],
[-13.79, 36.009],
[4.378, -36.165]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [568.269, 35.959],
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: 2,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[14.318, -36.052],
[3.722, -36.052],
[-14.276, 35.811],
[-3.976, 35.811]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [543.532, 36.002],
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 4",
np: 2,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[3.933, -35.751],
[-14.15, 35.751],
[-3.933, 35.751],
[14.15, -35.751]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [324.455, 271.453],
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 6",
np: 2,
cix: 2,
bm: 0,
ix: 4,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[4.165, -35.751],
[-13.918, 35.751],
[-4.292, 35.751],
[13.918, -35.751]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [300.641, 271.453],
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 7",
np: 2,
cix: 2,
bm: 0,
ix: 5,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[14.171, -35.595],
[-4.08, 35.751],
[-14.171, 35.751],
[4.25, -35.625]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [276.055, 271.453],
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 8",
np: 2,
cix: 2,
bm: 0,
ix: 6,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "tm",
s: {
a: 0,
k: 100,
ix: 1
},
e: {
a: 0,
k: 0,
ix: 2
},
o: {
a: 0,
k: -131,
ix: 3
},
m: 1,
ix: 8,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: !1
}, {
ty: "st",
c: {
a: 0,
k: [.996078431373, .729411764706, .282352941176, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: !1
}],
ip: 27.0000010997325,
op: 42.0000017106951,
st: -6.00000024438501,
bm: 0
}, {
ddd: 0,
ind: 2,
ty: 4,
nm: "RSI strokes 6",
sr: 1,
ks: {
o: {
a: 1,
k: [{
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 27.049,
s: [0]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 29,
s: [100]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 31.008,
s: [0]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 33.006,
s: [100]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 35.008,
s: [0]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 37.004,
s: [100]
}, {
t: 42.0000017106951,
s: [0]
}],
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[2.62, -153.308],
[2.661, -153.477],
[75.755, -153.308],
[-1.859, 153.477],
[-75.755, 153.477],
[2.325, -153.308]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [616.974, 153.727],
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: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[-6.591, -4.164],
[0, 0],
[3.253, -13.754],
[0, 0],
[14.787, 0],
[0, 0],
[0, 0],
[0, 0],
[-1.225, 4.164],
[6.549, 4.585],
[0, 0],
[-3.295, 13.711],
[0, 0],
[-14.365, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[1.648, -6.645]
],
o: [
[0, 0],
[11.914, 7.907],
[0, 0],
[-3.252, 13.712],
[0, 0],
[0, 0],
[0, 0],
[6.548, 0],
[1.648, -5.426],
[0, 0],
[-11.915, -7.907],
[0, 0],
[3.295, -13.712],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-6.548, 0],
[-1.647, 6.687]
],
v: [
[-23.999, -57.306],
[93.414, 21.261],
[108.624, 61.219],
[91.808, 128.136],
[58.98, 153.499],
[-88.853, 153.499],
[-70.769, 81.996],
[18.336, 81.996],
[31.053, 73.248],
[24.884, 59.115],
[-93.373, -20.715],
[-108.583, -60.629],
[-91.768, -127.967],
[-59.742, -153.329],
[109.891, -153.499],
[109.85, -153.329],
[91.766, -82.249],
[91.724, -81.996],
[91.64, -81.996],
[-18.253, -82.249],
[-31.393, -73.121]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [423.595, 153.749],
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 5",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[1.606, -5.426],
[8.239, -4.122]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[6.548, 0],
[-1.225, 4.164],
[0, 0]
],
v: [
[-43.749, -10.347],
[-43.2, -12.576],
[-25.709, -82.269],
[58.876, -82.269],
[68.339, -74.362],
[56.003, -61.071]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [
[0, 0],
[1.225, 4.585],
[0, 0],
[0, 0],
[-4.099, 16.656],
[0, 0],
[19.307, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-14.366, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[-4.943, 0],
[0, 0],
[0, 0],
[13.562, -6.645],
[0, 0],
[4.943, -18.717],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[3.295, 13.711],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[71.593, 81.933],
[60.904, 73.605],
[48.609, 20.82],
[104.885, -7.445],
[134.038, -44.458],
[153.346, -119.282],
[127.067, -153.393],
[-81.098, -153.393],
[-158.29, 153.393],
[-85.197, 153.393],
[-66.312, 78.989],
[-17.048, 54.047],
[.613, 128.031],
[32.217, 153.393],
[90.521, 153.393],
[108.562, 81.891],
[71.593, 81.891]
],
c: !0
},
ix: 2
},
nm: "Path 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Merge Paths 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [158.539, 153.77],
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 9",
np: 4,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "tm",
s: {
a: 0,
k: 0,
ix: 1
},
e: {
a: 0,
k: 100,
ix: 2
},
o: {
a: 0,
k: 0,
ix: 3
},
m: 1,
ix: 5,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: !1
}, {
ty: "st",
c: {
a: 0,
k: [1, 1, 1, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: !1
}],
ip: 27.0000010997325,
op: 42.0000017106951,
st: 28.0000011404634,
bm: 0
}, {
ddd: 0,
ind: 3,
ty: 0,
nm: "RSI filled 3",
refId: "comp_1",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [540, 540, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [540, 540, 0],
ix: 1,
l: 2
},
s: {
a: 0,
k: [100, 100, 100],
ix: 6,
l: 2
}
},
ao: 0,
hasMask: !0,
masksProperties: [{
inv: !1,
mode: "a",
pt: {
a: 1,
k: [{
i: {
x: .14,
y: 1
},
o: {
x: .86,
y: 0
},
t: 92,
s: [{
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[973, 292],
[854, 765],
[158, 772],
[274, 300]
],
c: !0
}]
}, {
t: 117.000004765508,
s: [{
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[1647, 292],
[1528.001, 765],
[834, 773],
[954, 301]
],
c: !0
}]
}],
ix: 1
},
o: {
a: 1,
k: [{
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 0,
s: [100]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 3,
s: [40]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 6,
s: [100]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 9,
s: [40]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 12,
s: [100]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 15,
s: [40]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 18,
s: [100]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 21,
s: [40]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 24,
s: [100]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 27,
s: [10]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 29,
s: [100]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 31,
s: [10]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 33,
s: [100]
}, {
i: {
x: [.833],
y: [.833]
},
o: {
x: [.167],
y: [.167]
},
t: 35,
s: [10]
}, {
t: 37.0000015070409,
s: [100]
}],
ix: 3
},
x: {
a: 0,
k: 0,
ix: 4
},
nm: "Mask 1"
}],
w: 1080,
h: 1080,
ip: 0,
op: 120.0000048877,
st: 0,
bm: 0
}]
}, {
id: "comp_1",
nm: "RSI filled 3",
fr: 29.9700012207031,
layers: [{
ddd: 0,
ind: 1,
ty: 0,
nm: "RSI Filled logo",
refId: "comp_2",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [540, 540, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [540, 540, 0],
ix: 1,
l: 2
},
s: {
a: 0,
k: [100, 100, 100],
ix: 6,
l: 2
}
},
ao: 0,
hasMask: !0,
masksProperties: [{
inv: !1,
mode: "a",
pt: {
a: 1,
k: [{
i: {
x: .14,
y: 1
},
o: {
x: .86,
y: 0
},
t: 30,
s: [{
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[259, 293],
[140, 766],
[-750, 774],
[-740, 302]
],
c: !0
}]
}, {
t: 55.0000022401959,
s: [{
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[963, 293],
[844, 766],
[150, 774],
[270, 302]
],
c: !0
}]
}],
ix: 1
},
o: {
a: 0,
k: 100,
ix: 3
},
x: {
a: 0,
k: 0,
ix: 4
},
nm: "Mask 1"
}],
w: 1080,
h: 1080,
ip: 25.0000010182709,
op: 146.000005946702,
st: -21.0000008553475,
bm: 0
}, {
ddd: 0,
ind: 2,
ty: 4,
nm: "Bars strokes",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[-4.209, 36.009],
[13.79, -36.165],
[4.292, -36.165],
[-13.79, 36.009]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [592.395, 35.96],
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: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[13.853, -36.165],
[-4.103, 36.009],
[-13.79, 36.009],
[4.378, -36.165]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [568.269, 35.959],
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: 2,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[14.318, -36.052],
[3.722, -36.052],
[-14.276, 35.811],
[-3.976, 35.811]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [543.532, 36.002],
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 4",
np: 2,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[3.933, -35.751],
[-14.15, 35.751],
[-3.933, 35.751],
[14.15, -35.751]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [324.455, 271.453],
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 6",
np: 2,
cix: 2,
bm: 0,
ix: 4,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[4.165, -35.751],
[-13.918, 35.751],
[-4.292, 35.751],
[13.918, -35.751]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [300.641, 271.453],
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 7",
np: 2,
cix: 2,
bm: 0,
ix: 5,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[14.171, -35.595],
[-4.08, 35.751],
[-14.171, 35.751],
[4.25, -35.625]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [276.055, 271.453],
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 8",
np: 2,
cix: 2,
bm: 0,
ix: 6,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "tm",
s: {
a: 0,
k: 100,
ix: 1
},
e: {
a: 1,
k: [{
i: {
x: [.833],
y: [.818]
},
o: {
x: [.4],
y: [0]
},
t: 17,
s: [100]
}, {
t: 29.0000011811942,
s: [0]
}],
ix: 2
},
o: {
a: 1,
k: [{
i: {
x: [.833],
y: [.818]
},
o: {
x: [.4],
y: [0]
},
t: 17,
s: [-59]
}, {
t: 29.0000011811942,
s: [-131]
}],
ix: 3
},
m: 1,
ix: 8,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: !1
}, {
ty: "st",
c: {
a: 0,
k: [1, .627450980392, 0, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: !1
}],
ip: 15.0000006109625,
op: 126.000005132085,
st: -18.000000733155,
bm: 0
}, {
ddd: 0,
ind: 3,
ty: 4,
nm: "RSI strokes 7",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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],
[1.606, -5.426],
[8.239, -4.122]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[6.548, 0],
[-1.225, 4.164],
[0, 0]
],
v: [
[-43.749, -10.347],
[-43.2, -12.576],
[-25.709, -82.269],
[58.876, -82.269],
[68.339, -74.362],
[56.003, -61.071]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Merge Paths 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [158.539, 153.77],
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 9",
np: 3,
cix: 2,
bm: 0,
ix: 1,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "tm",
s: {
a: 1,
k: [{
i: {
x: [.8],
y: [1]
},
o: {
x: [.66],
y: [0]
},
t: 0,
s: [75]
}, {
t: 27.0000010997325,
s: [0]
}],
ix: 1
},
e: {
a: 1,
k: [{
i: {
x: [.8],
y: [1]
},
o: {
x: [.66],
y: [0]
},
t: 0,
s: [75]
}, {
t: 27.0000010997325,
s: [100]
}],
ix: 2
},
o: {
a: 1,
k: [{
i: {
x: [.764],
y: [1]
},
o: {
x: [.382],
y: [0]
},
t: 0,
s: [-40]
}, {
t: 27.0000010997325,
s: [0]
}],
ix: 3
},
m: 1,
ix: 3,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: !1
}, {
ty: "st",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: !1
}],
ip: 0,
op: 120.0000048877,
st: 0,
bm: 0
}, {
ddd: 0,
ind: 4,
ty: 4,
nm: "RSI strokes 6",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[2.62, -153.308],
[2.661, -153.477],
[75.755, -153.308],
[-1.859, 153.477],
[-75.755, 153.477],
[2.325, -153.308]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [616.974, 153.727],
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: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[-6.591, -4.164],
[0, 0],
[3.253, -13.754],
[0, 0],
[14.787, 0],
[0, 0],
[0, 0],
[0, 0],
[-1.225, 4.164],
[6.549, 4.585],
[0, 0],
[-3.295, 13.711],
[0, 0],
[-14.365, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[1.648, -6.645]
],
o: [
[0, 0],
[11.914, 7.907],
[0, 0],
[-3.252, 13.712],
[0, 0],
[0, 0],
[0, 0],
[6.548, 0],
[1.648, -5.426],
[0, 0],
[-11.915, -7.907],
[0, 0],
[3.295, -13.712],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-6.548, 0],
[-1.647, 6.687]
],
v: [
[-23.999, -57.306],
[93.414, 21.261],
[108.624, 61.219],
[91.808, 128.136],
[58.98, 153.499],
[-88.853, 153.499],
[-70.769, 81.996],
[18.336, 81.996],
[31.053, 73.248],
[24.884, 59.115],
[-93.373, -20.715],
[-108.583, -60.629],
[-91.768, -127.967],
[-59.742, -153.329],
[109.891, -153.499],
[109.85, -153.329],
[91.766, -82.249],
[91.724, -81.996],
[91.64, -81.996],
[-18.253, -82.249],
[-31.393, -73.121]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [423.595, 153.749],
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 5",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[1.225, 4.585],
[0, 0],
[0, 0],
[-4.099, 16.656],
[0, 0],
[19.307, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-14.366, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[-4.943, 0],
[0, 0],
[0, 0],
[13.562, -6.645],
[0, 0],
[4.943, -18.717],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[3.295, 13.711],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[71.593, 81.933],
[60.904, 73.605],
[48.609, 20.82],
[104.885, -7.445],
[134.038, -44.458],
[153.346, -119.282],
[127.067, -153.393],
[-81.098, -153.393],
[-158.29, 153.393],
[-85.197, 153.393],
[-66.312, 78.989],
[-17.048, 54.047],
[.613, 128.031],
[32.217, 153.393],
[90.521, 153.393],
[108.562, 81.891],
[71.593, 81.891]
],
c: !0
},
ix: 2
},
nm: "Path 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Merge Paths 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [158.539, 153.77],
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 9",
np: 3,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "tm",
s: {
a: 1,
k: [{
i: {
x: [.8],
y: [1]
},
o: {
x: [.66],
y: [0]
},
t: 0,
s: [75]
}, {
t: 27.0000010997325,
s: [75]
}],
ix: 1
},
e: {
a: 1,
k: [{
i: {
x: [.8],
y: [1]
},
o: {
x: [.66],
y: [0]
},
t: 0,
s: [75]
}, {
t: 27.0000010997325,
s: [50]
}],
ix: 2
},
o: {
a: 1,
k: [{
i: {
x: [.764],
y: [1]
},
o: {
x: [.382],
y: [0]
},
t: 0,
s: [-40]
}, {
t: 27.0000010997325,
s: [0]
}],
ix: 3
},
m: 1,
ix: 5,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: !1
}, {
ty: "st",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: !1
}],
ip: 0,
op: 120.0000048877,
st: 0,
bm: 0
}, {
ddd: 0,
ind: 5,
ty: 4,
nm: "RSI strokes 5",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[2.62, -153.308],
[2.661, -153.477],
[75.755, -153.308],
[-1.859, 153.477],
[-75.755, 153.477],
[2.325, -153.308]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [616.974, 153.727],
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: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[-6.591, -4.164],
[0, 0],
[3.253, -13.754],
[0, 0],
[14.787, 0],
[0, 0],
[0, 0],
[0, 0],
[-1.225, 4.164],
[6.549, 4.585],
[0, 0],
[-3.295, 13.711],
[0, 0],
[-14.365, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[1.648, -6.645]
],
o: [
[0, 0],
[11.914, 7.907],
[0, 0],
[-3.252, 13.712],
[0, 0],
[0, 0],
[0, 0],
[6.548, 0],
[1.648, -5.426],
[0, 0],
[-11.915, -7.907],
[0, 0],
[3.295, -13.712],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-6.548, 0],
[-1.647, 6.687]
],
v: [
[-23.999, -57.306],
[93.414, 21.261],
[108.624, 61.219],
[91.808, 128.136],
[58.98, 153.499],
[-88.853, 153.499],
[-70.769, 81.996],
[18.336, 81.996],
[31.053, 73.248],
[24.884, 59.115],
[-93.373, -20.715],
[-108.583, -60.629],
[-91.768, -127.967],
[-59.742, -153.329],
[109.891, -153.499],
[109.85, -153.329],
[91.766, -82.249],
[91.724, -81.996],
[91.64, -81.996],
[-18.253, -82.249],
[-31.393, -73.121]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [423.595, 153.749],
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 5",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[1.225, 4.585],
[0, 0],
[0, 0],
[-4.099, 16.656],
[0, 0],
[19.307, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-14.366, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[-4.943, 0],
[0, 0],
[0, 0],
[13.562, -6.645],
[0, 0],
[4.943, -18.717],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[3.295, 13.711],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[71.593, 81.933],
[60.904, 73.605],
[48.609, 20.82],
[104.885, -7.445],
[134.038, -44.458],
[153.346, -119.282],
[127.067, -153.393],
[-81.098, -153.393],
[-158.29, 153.393],
[-85.197, 153.393],
[-66.312, 78.989],
[-17.048, 54.047],
[.613, 128.031],
[32.217, 153.393],
[90.521, 153.393],
[108.562, 81.891],
[71.593, 81.891]
],
c: !0
},
ix: 2
},
nm: "Path 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Merge Paths 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [158.539, 153.77],
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 9",
np: 3,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "tm",
s: {
a: 1,
k: [{
i: {
x: [.8],
y: [1]
},
o: {
x: [.66],
y: [0]
},
t: 0,
s: [25]
}, {
t: 27.0000010997325,
s: [50]
}],
ix: 1
},
e: {
a: 1,
k: [{
i: {
x: [.8],
y: [1]
},
o: {
x: [.66],
y: [0]
},
t: 0,
s: [25]
}, {
t: 27.0000010997325,
s: [25]
}],
ix: 2
},
o: {
a: 1,
k: [{
i: {
x: [.764],
y: [1]
},
o: {
x: [.382],
y: [0]
},
t: 0,
s: [-40]
}, {
t: 27.0000010997325,
s: [0]
}],
ix: 3
},
m: 1,
ix: 5,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: !1
}, {
ty: "st",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: !1
}],
ip: 0,
op: 120.0000048877,
st: 0,
bm: 0
}, {
ddd: 0,
ind: 6,
ty: 4,
nm: "RSI strokes 4",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[2.62, -153.308],
[2.661, -153.477],
[75.755, -153.308],
[-1.859, 153.477],
[-75.755, 153.477],
[2.325, -153.308]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [616.974, 153.727],
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: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[-6.591, -4.164],
[0, 0],
[3.253, -13.754],
[0, 0],
[14.787, 0],
[0, 0],
[0, 0],
[0, 0],
[-1.225, 4.164],
[6.549, 4.585],
[0, 0],
[-3.295, 13.711],
[0, 0],
[-14.365, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[1.648, -6.645]
],
o: [
[0, 0],
[11.914, 7.907],
[0, 0],
[-3.252, 13.712],
[0, 0],
[0, 0],
[0, 0],
[6.548, 0],
[1.648, -5.426],
[0, 0],
[-11.915, -7.907],
[0, 0],
[3.295, -13.712],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-6.548, 0],
[-1.647, 6.687]
],
v: [
[-23.999, -57.306],
[93.414, 21.261],
[108.624, 61.219],
[91.808, 128.136],
[58.98, 153.499],
[-88.853, 153.499],
[-70.769, 81.996],
[18.336, 81.996],
[31.053, 73.248],
[24.884, 59.115],
[-93.373, -20.715],
[-108.583, -60.629],
[-91.768, -127.967],
[-59.742, -153.329],
[109.891, -153.499],
[109.85, -153.329],
[91.766, -82.249],
[91.724, -81.996],
[91.64, -81.996],
[-18.253, -82.249],
[-31.393, -73.121]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [423.595, 153.749],
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 5",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[1.225, 4.585],
[0, 0],
[0, 0],
[-4.099, 16.656],
[0, 0],
[19.307, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-14.366, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[-4.943, 0],
[0, 0],
[0, 0],
[13.562, -6.645],
[0, 0],
[4.943, -18.717],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[3.295, 13.711],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[71.593, 81.933],
[60.904, 73.605],
[48.609, 20.82],
[104.885, -7.445],
[134.038, -44.458],
[153.346, -119.282],
[127.067, -153.393],
[-81.098, -153.393],
[-158.29, 153.393],
[-85.197, 153.393],
[-66.312, 78.989],
[-17.048, 54.047],
[.613, 128.031],
[32.217, 153.393],
[90.521, 153.393],
[108.562, 81.891],
[71.593, 81.891]
],
c: !0
},
ix: 2
},
nm: "Path 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Merge Paths 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [158.539, 153.77],
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 9",
np: 3,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "tm",
s: {
a: 1,
k: [{
i: {
x: [.8],
y: [1]
},
o: {
x: [.66],
y: [0]
},
t: 0,
s: [100]
}, {
t: 27.0000010997325,
s: [100]
}],
ix: 1
},
e: {
a: 1,
k: [{
i: {
x: [.8],
y: [1]
},
o: {
x: [.66],
y: [0]
},
t: 0,
s: [100]
}, {
t: 27.0000010997325,
s: [75]
}],
ix: 2
},
o: {
a: 1,
k: [{
i: {
x: [.764],
y: [1]
},
o: {
x: [.382],
y: [0]
},
t: 0,
s: [-40]
}, {
t: 27.0000010997325,
s: [0]
}],
ix: 3
},
m: 1,
ix: 5,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: !1
}, {
ty: "st",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: !1
}],
ip: 0,
op: 120.0000048877,
st: 0,
bm: 0
}, {
ddd: 0,
ind: 7,
ty: 4,
nm: "RSI strokes 3",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[2.62, -153.308],
[2.661, -153.477],
[75.755, -153.308],
[-1.859, 153.477],
[-75.755, 153.477],
[2.325, -153.308]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [616.974, 153.727],
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: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[-6.591, -4.164],
[0, 0],
[3.253, -13.754],
[0, 0],
[14.787, 0],
[0, 0],
[0, 0],
[0, 0],
[-1.225, 4.164],
[6.549, 4.585],
[0, 0],
[-3.295, 13.711],
[0, 0],
[-14.365, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[1.648, -6.645]
],
o: [
[0, 0],
[11.914, 7.907],
[0, 0],
[-3.252, 13.712],
[0, 0],
[0, 0],
[0, 0],
[6.548, 0],
[1.648, -5.426],
[0, 0],
[-11.915, -7.907],
[0, 0],
[3.295, -13.712],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-6.548, 0],
[-1.647, 6.687]
],
v: [
[-23.999, -57.306],
[93.414, 21.261],
[108.624, 61.219],
[91.808, 128.136],
[58.98, 153.499],
[-88.853, 153.499],
[-70.769, 81.996],
[18.336, 81.996],
[31.053, 73.248],
[24.884, 59.115],
[-93.373, -20.715],
[-108.583, -60.629],
[-91.768, -127.967],
[-59.742, -153.329],
[109.891, -153.499],
[109.85, -153.329],
[91.766, -82.249],
[91.724, -81.996],
[91.64, -81.996],
[-18.253, -82.249],
[-31.393, -73.121]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [423.595, 153.749],
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 5",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[1.225, 4.585],
[0, 0],
[0, 0],
[-4.099, 16.656],
[0, 0],
[19.307, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-14.366, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[-4.943, 0],
[0, 0],
[0, 0],
[13.562, -6.645],
[0, 0],
[4.943, -18.717],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[3.295, 13.711],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[71.593, 81.933],
[60.904, 73.605],
[48.609, 20.82],
[104.885, -7.445],
[134.038, -44.458],
[153.346, -119.282],
[127.067, -153.393],
[-81.098, -153.393],
[-158.29, 153.393],
[-85.197, 153.393],
[-66.312, 78.989],
[-17.048, 54.047],
[.613, 128.031],
[32.217, 153.393],
[90.521, 153.393],
[108.562, 81.891],
[71.593, 81.891]
],
c: !0
},
ix: 2
},
nm: "Path 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Merge Paths 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [158.539, 153.77],
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 9",
np: 3,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "tm",
s: {
a: 1,
k: [{
i: {
x: [.8],
y: [1]
},
o: {
x: [.66],
y: [0]
},
t: 0,
s: [0]
}, {
t: 27.0000010997325,
s: [0]
}],
ix: 1
},
e: {
a: 1,
k: [{
i: {
x: [.8],
y: [1]
},
o: {
x: [.66],
y: [0]
},
t: 0,
s: [0]
}, {
t: 27.0000010997325,
s: [25]
}],
ix: 2
},
o: {
a: 1,
k: [{
i: {
x: [.764],
y: [1]
},
o: {
x: [.382],
y: [0]
},
t: 0,
s: [-40]
}, {
t: 27.0000010997325,
s: [0]
}],
ix: 3
},
m: 1,
ix: 5,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: !1
}, {
ty: "st",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: !1
}],
ip: 0,
op: 120.0000048877,
st: 0,
bm: 0
}]
}, {
id: "comp_2",
nm: "RSI Filled logo",
fr: 29.9700012207031,
layers: [{
ddd: 0,
ind: 1,
ty: 4,
nm: "Copyright",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [912.856, 378.542, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [18.617, 18.788, 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, 2.315],
[2.643, 0]
],
o: [
[0, 0],
[0, 0],
[2.643, 0],
[0, -2.382],
[0, 0]
],
v: [
[-2.676, -5.97],
[-2.676, -.215],
[-.1, -.215],
[3.337, -3.026],
[-.1, -5.97]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [
[0, -4.829],
[2.775, -.529],
[0, 0],
[.297, 0],
[0, 0],
[.165, .331],
[0, 0],
[0, 0],
[0, 0],
[.264, 0],
[0, 0],
[0, .265],
[0, 0],
[-.231, 0],
[-2.113, 0]
],
o: [
[0, 3.638],
[0, 0],
[.199, .198],
[0, 0],
[-.429, 0],
[0, 0],
[0, 0],
[0, 0],
[0, .298],
[0, 0],
[-.297, 0],
[0, 0],
[0, -.199],
[2.213, -.199],
[5.254, 0]
],
v: [
[7.4, -3.159],
[3.666, 2.497],
[7.829, 9.145],
[7.63, 9.542],
[4.194, 9.542],
[3.436, 9.112],
[-.628, 2.762],
[-2.676, 2.762],
[-2.676, 9.178],
[-2.973, 9.509],
[-6.309, 9.509],
[-6.639, 9.178],
[-6.639, -8.88],
[-6.342, -9.178],
[.329, -9.41]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ind: 2,
ty: "sh",
ix: 3,
ks: {
a: 0,
k: {
i: [
[0, 10.849],
[10.736, 0],
[0, -10.881],
[-10.736, 0]
],
o: [
[0, -10.848],
[-10.736, 0],
[0, 10.849],
[10.768, 0]
],
v: [
[15.592, -.017],
[-.033, -15.793],
[-15.658, -.017],
[-.033, 15.76]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 3",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ind: 3,
ty: "sh",
ix: 4,
ks: {
a: 0,
k: {
i: [
[0, 12.734],
[-12.618, 0],
[0, -12.7],
[12.619, 0]
],
o: [
[0, -12.733],
[12.619, 0],
[0, 12.734],
[-12.618, 0]
],
v: [
[-18.366, -.017],
[-.001, -18.538],
[18.366, -.017],
[-.001, 18.538]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 4",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les trac\xe9s 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [18.617, 18.788],
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: "Groupe 1",
np: 6,
cix: 2,
bm: 0,
ix: 1,
mn: "ADBE Vector Group",
hd: !1
}],
ip: 0,
op: 183.000007453743,
st: 18.000000733155,
bm: 0
}, {
ddd: 0,
ind: 2,
ty: 4,
nm: "Robert",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [291.859, 707.315, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [94.996, 12.931, 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],
[-.676, .883],
[.042, 2.272],
[0, 0],
[.676, .841],
[2.07, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[.675, .841],
[1.987, 0],
[0, 0],
[.633, -.883],
[0, -2.272],
[0, 0],
[-.634, -.883],
[-2.071, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-.676, -.841],
[-2.07, 0]
],
o: [
[2.07, 0],
[.676, -.883],
[0, 0],
[0, -2.271],
[-.676, -.883],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, -2.061],
[-.677, -.842],
[0, 0],
[-2.028, 0],
[-.634, .842],
[0, 0],
[0, 2.271],
[.633, .884],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 2.272],
[.676, .883],
[0, 0]
],
v: [
[5.788, 12.681],
[9.886, 11.377],
[10.859, 6.666],
[10.859, 3.175],
[9.886, -1.535],
[5.788, -2.839],
[-5.535, -2.839],
[-5.535, -8.138],
[5.958, -8.138],
[5.958, -5.068],
[10.562, -6.541],
[10.562, -7.087],
[9.549, -11.419],
[5.535, -12.681],
[-5.111, -12.681],
[-9.167, -11.378],
[-10.14, -6.666],
[-10.14, -3.848],
[-9.167, .862],
[-5.111, 2.166],
[6.169, 2.166],
[6.169, 7.802],
[-6.252, 7.802],
[-6.252, 4.648],
[-10.9, 5.951],
[-10.9, 6.666],
[-9.886, 11.377],
[-5.788, 12.681]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [178.841, 12.931],
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: "Groupe 1",
np: 2,
cix: 2,
bm: 0,
ix: 1,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[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]
],
v: [
[2.535, -8.054],
[2.535, 12.639],
[-2.62, 12.639],
[-2.62, -8.054],
[-11.196, -8.054],
[-11.196, -12.639],
[11.196, -12.639],
[11.196, -8.054]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [152.816, 12.931],
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: "Groupe 2",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[-.253, -.253],
[0, -.715],
[0, 0],
[.254, -.295],
[.507, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[.296, .294],
[0, 0],
[0, .714],
[-.295, .294],
[0, 0],
[0, 0],
[0, 0],
[.507, 0]
],
v: [
[4.098, -7.739],
[4.521, -6.225],
[4.521, -3.154],
[4.14, -1.64],
[2.958, -1.219],
[-6.465, -1.219],
[-6.465, -8.117],
[2.958, -8.117]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-.677, .799],
[0, 1.724],
[0, 0],
[.675, .798],
[1.733, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[1.69, 0],
[.675, -.8],
[0, 0],
[0, -1.683],
[-.677, -.799],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[-3.084, 3.154],
[4.478, 12.66],
[4.478, 12.618],
[11.534, 12.618],
[2.873, 3.112],
[4.901, 3.112],
[8.493, 1.935],
[9.506, -1.808],
[9.506, -7.739],
[8.493, -11.482],
[4.901, -12.66],
[-11.534, -12.66],
[-11.534, 12.66],
[-6.465, 12.66],
[-6.465, 3.154]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les trac\xe9s 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [129.112, 12.91],
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: "Groupe 3",
np: 4,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[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],
[0, 0],
[0, 0]
],
v: [
[-10.076, 12.639],
[-10.076, -12.639],
[9.908, -12.639],
[9.908, -8.265],
[-4.923, -8.265],
[-4.923, -2.755],
[3.74, -2.755],
[3.74, 1.662],
[-4.923, 1.662],
[-4.923, 7.802],
[10.076, 7.802],
[10.076, 12.639]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [100.234, 12.931],
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: "Groupe 4",
np: 2,
cix: 2,
bm: 0,
ix: 4,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[-.253, -.252],
[0, -.631],
[0, 0],
[.296, -.253],
[.507, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[.296, .294],
[0, 0],
[0, .63],
[-.253, .252],
[0, 0],
[0, 0],
[0, 0],
[.507, 0]
],
v: [
[5.154, -8.118],
[5.619, -6.73],
[5.619, -4.29],
[5.196, -2.944],
[4.014, -2.566],
[-5.535, -2.566],
[-5.535, -8.454],
[4.014, -8.454]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [
[-.253, -.294],
[0, -.842],
[0, 0],
[0, 0],
[.296, -.295],
[.591, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[.296, .378],
[0, 0],
[0, 0],
[0, .841],
[-.295, .294],
[0, 0],
[0, 0],
[0, 0],
[.591, 0]
],
v: [
[5.324, 2.103],
[5.747, 3.87],
[5.788, 3.87],
[5.788, 5.804],
[5.365, 7.529],
[4.057, 7.991],
[-5.493, 7.991],
[-5.493, 1.682],
[4.057, 1.682]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ind: 2,
ty: "sh",
ix: 3,
ks: {
a: 0,
k: {
i: [
[0, 0],
[-.929, .841],
[0, 1.598],
[0, 0],
[2.197, .463],
[0, 2.398],
[0, 0],
[.676, .798],
[1.733, 0],
[0, 0],
[0, 0]
],
o: [
[2.071, 0],
[.93, -.841],
[0, 0],
[0, -2.777],
[2.112, -.42],
[0, 0],
[0, -1.724],
[-.676, -.799],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[4.689, 12.66],
[9.21, 11.398],
[10.605, 7.697],
[10.605, 4.459],
[7.309, -.379],
[10.479, -4.627],
[10.479, -7.697],
[9.464, -11.44],
[5.872, -12.66],
[-10.605, -12.66],
[-10.605, 12.66]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 3",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les trac\xe9s 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [71.906, 12.952],
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: "Groupe 5",
np: 5,
cix: 2,
bm: 0,
ix: 5,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[6.76, -8.012],
[-6.846, -8.012],
[-6.846, 7.803],
[6.76, 7.803]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [
[.634, -.84],
[2.07, 0],
[0, 0],
[.633, .842],
[0, 2.272],
[0, 0],
[-.634, .841],
[-2.028, 0],
[0, 0],
[-.634, -.884],
[0, -2.272],
[0, 0]
],
o: [
[-.634, .842],
[0, 0],
[-2.071, 0],
[-.634, -.84],
[0, 0],
[0, -2.272],
[.633, -.884],
[0, 0],
[2.07, 0],
[.634, .883],
[0, 0],
[0, 2.272]
],
v: [
[10.943, 11.377],
[6.887, 12.639],
[-6.887, 12.639],
[-10.943, 11.377],
[-11.915, 6.667],
[-11.915, -6.624],
[-10.943, -11.334],
[-6.887, -12.639],
[6.887, -12.639],
[10.943, -11.334],
[11.915, -6.624],
[11.915, 6.667]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les trac\xe9s 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [40.978, 12.93],
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: "Groupe 6",
np: 4,
cix: 2,
bm: 0,
ix: 6,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[.295, .295],
[.507, 0],
[0, 0],
[0, 0],
[0, 0],
[-.296, .294],
[0, .714]
],
o: [
[0, -.714],
[-.254, -.253],
[0, 0],
[0, 0],
[0, 0],
[.507, 0],
[.253, -.295],
[0, 0]
],
v: [
[4.521, -6.225],
[4.099, -7.739],
[2.958, -8.117],
[-6.464, -8.117],
[-6.464, -1.219],
[2.958, -1.219],
[4.141, -1.64],
[4.521, -3.154]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-.676, -.799],
[0, -1.683],
[0, 0],
[.676, -.8],
[1.69, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[1.733, 0],
[.676, .799],
[0, 0],
[0, 1.724],
[-.676, .799],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[4.479, 12.66],
[-3.084, 3.154],
[-6.464, 3.154],
[-6.464, 12.66],
[-11.534, 12.66],
[-11.534, -12.66],
[4.901, -12.66],
[8.492, -11.482],
[9.506, -7.739],
[9.506, -1.808],
[8.492, 1.935],
[4.901, 3.113],
[2.873, 3.113],
[11.534, 12.618],
[4.479, 12.618]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les trac\xe9s 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [11.784, 12.91],
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: "Groupe 7",
np: 4,
cix: 2,
bm: 0,
ix: 7,
mn: "ADBE Vector Group",
hd: !1
}],
ip: 0,
op: 180.00000733155,
st: 0,
bm: 0
}, {
ddd: 0,
ind: 3,
ty: 4,
nm: "Space",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [473.661, 707.314, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [65.632, 12.931, 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, 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],
[0, 0],
[0, 0]
],
v: [
[-10.077, 12.639],
[-10.077, -12.639],
[9.908, -12.639],
[9.908, -8.265],
[-4.923, -8.265],
[-4.923, -2.755],
[3.738, -2.755],
[3.738, 1.662],
[-4.923, 1.662],
[-4.923, 7.802],
[10.077, 7.802],
[10.077, 12.639]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [120.938, 12.931],
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: "Groupe 1",
np: 2,
cix: 2,
bm: 0,
ix: 1,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[-.676, .842],
[.042, 2.314],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[.634, .884],
[2.07, 0],
[0, 0],
[.633, -.883],
[0, -2.272],
[0, 0],
[-.634, -.841],
[-2.07, 0]
],
o: [
[2.028, 0],
[.676, -.841],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, -2.272],
[-.676, -.883],
[0, 0],
[-2.07, 0],
[-.634, .841],
[0, 0],
[0, 2.271],
[.676, .842],
[0, 0]
],
v: [
[5.598, 12.639],
[9.654, 11.377],
[10.626, 6.624],
[10.626, 3.638],
[5.472, 2.208],
[5.472, 7.802],
[-5.514, 7.802],
[-5.514, -8.013],
[5.472, -8.013],
[5.472, -3.133],
[10.626, -4.227],
[10.626, -6.624],
[9.654, -11.335],
[5.598, -12.639],
[-5.598, -12.639],
[-9.696, -11.335],
[-10.668, -6.624],
[-10.668, 6.667],
[-9.696, 11.377],
[-5.598, 12.639]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [91.995, 12.931],
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: "Groupe 2",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0]
],
v: [
[-.253, -6.688],
[-4.014, 2.482],
[3.338, 2.482]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [
[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]
],
v: [
[7.479, 12.66],
[5.239, 7.15],
[-5.873, 7.15],
[-8.07, 12.66],
[-13.225, 12.66],
[-2.536, -12.66],
[2.408, -12.66],
[13.225, 12.66]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les trac\xe9s 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [64.259, 12.91],
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: "Groupe 3",
np: 4,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[-.253, -.253],
[0, -.715],
[0, 0],
[.254, -.294],
[.508, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[.296, .294],
[0, 0],
[0, .715],
[-.253, .294],
[0, 0],
[0, 0],
[0, 0],
[.508, 0]
],
v: [
[5.07, -7.739],
[5.493, -6.225],
[5.493, -3.491],
[5.111, -1.977],
[3.929, -1.556],
[-5.493, -1.556],
[-5.493, -8.117],
[3.929, -8.117]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [
[0, 0],
[-.676, .798],
[0, 1.724],
[0, 0],
[.677, .798],
[1.731, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[1.689, 0],
[.677, -.8],
[0, 0],
[0, -1.683],
[-.676, -.799],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[5.916, 2.86],
[9.506, 1.683],
[10.52, -2.103],
[10.52, -7.739],
[9.506, -11.482],
[5.916, -12.66],
[-10.52, -12.66],
[-10.52, 12.66],
[-5.45, 12.66],
[-5.45, 2.86]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les trac\xe9s 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [40.811, 12.91],
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: "Groupe 4",
np: 4,
cix: 2,
bm: 0,
ix: 4,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[.676, -.882],
[2.07, 0],
[0, 0],
[.676, .883],
[0, 2.271],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[.676, .884],
[0, 2.271],
[0, 0],
[-.634, .842],
[-2.071, 0],
[0, 0],
[-.677, -.842],
[0, -2.061],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-.676, -.883],
[0, -2.272],
[0, 0]
],
o: [
[-.676, .883],
[0, 0],
[-2.071, 0],
[-.676, -.841],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-2.071, 0],
[-.676, -.883],
[0, 0],
[0, -2.272],
[.634, -.884],
[0, 0],
[1.986, 0],
[.675, .841],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[2.07, 0],
[.676, .841],
[0, 0],
[0, 2.271]
],
v: [
[9.908, 11.377],
[5.81, 12.681],
[-5.767, 12.681],
[-9.866, 11.377],
[-10.879, 6.667],
[-10.879, 5.951],
[-6.232, 4.648],
[-6.232, 7.802],
[6.232, 7.802],
[6.232, 2.166],
[-5.048, 2.166],
[-9.147, .862],
[-10.12, -3.848],
[-10.12, -6.666],
[-9.147, -11.377],
[-5.048, -12.681],
[5.598, -12.681],
[9.612, -11.419],
[10.625, -7.087],
[10.625, -6.54],
[6.021, -5.068],
[6.021, -8.138],
[-5.513, -8.138],
[-5.513, -2.839],
[5.81, -2.839],
[9.908, -1.535],
[10.879, 3.176],
[10.879, 6.667]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [11.129, 12.931],
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: "Groupe 5",
np: 2,
cix: 2,
bm: 0,
ix: 5,
mn: "ADBE Vector Group",
hd: !1
}],
ip: 0,
op: 180.00000733155,
st: 0,
bm: 0
}, {
ddd: 0,
ind: 4,
ty: 4,
nm: "Industries",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [685.798, 707.293, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [125.669, 12.952, 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: [
[.677, -.882],
[2.069, 0],
[0, 0],
[.676, .883],
[0, 2.271],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[.634, .884],
[0, 2.271],
[0, 0],
[-.634, .842],
[-2.028, 0],
[0, 0],
[-.677, -.842],
[0, -2.061],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-.676, -.883],
[0, -2.272],
[0, 0]
],
o: [
[-.676, .883],
[0, 0],
[-2.071, 0],
[-.675, -.841],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-2.071, 0],
[-.634, -.883],
[0, 0],
[0, -2.272],
[.634, -.884],
[0, 0],
[1.987, 0],
[.675, .841],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[2.07, 0],
[.676, .841],
[0, 0],
[.084, 2.271]
],
v: [
[9.866, 11.377],
[5.769, 12.681],
[-5.809, 12.681],
[-9.908, 11.377],
[-10.879, 6.667],
[-10.879, 5.951],
[-6.231, 4.648],
[-6.231, 7.802],
[6.189, 7.802],
[6.189, 2.166],
[-5.09, 2.166],
[-9.147, .862],
[-10.118, -3.848],
[-10.118, -6.666],
[-9.147, -11.377],
[-5.09, -12.681],
[5.556, -12.681],
[9.571, -11.419],
[10.584, -7.087],
[10.584, -6.54],
[5.978, -5.068],
[5.978, -8.138],
[-5.556, -8.138],
[-5.556, -2.839],
[5.725, -2.839],
[9.824, -1.535],
[10.796, 3.176],
[10.796, 6.667]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [240.209, 12.973],
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: "Groupe 1",
np: 2,
cix: 2,
bm: 0,
ix: 1,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[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],
[0, 0],
[0, 0]
],
v: [
[-10.077, -12.639],
[-10.077, 12.639],
[10.077, 12.639],
[10.077, 7.802],
[-4.923, 7.802],
[-4.923, 1.662],
[3.739, 1.662],
[3.739, -2.755],
[-4.923, -2.755],
[-4.923, -8.265],
[9.908, -8.265],
[9.908, -12.639]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [212.536, 12.973],
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: "Groupe 2",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[2.577, -12.66],
[-2.577, -12.66],
[-2.577, 12.66],
[2.577, 12.66]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [191.094, 12.994],
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: "Groupe 3",
np: 2,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[-.254, -.253],
[0, -.715],
[0, 0],
[.253, -.295],
[.507, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[.295, .294],
[0, 0],
[0, .714],
[-.253, .294],
[0, 0],
[0, 0],
[0, 0],
[.507, 0]
],
v: [
[4.141, -7.739],
[4.562, -6.225],
[4.562, -3.154],
[4.182, -1.64],
[3, -1.219],
[-6.422, -1.219],
[-6.422, -8.117],
[3, -8.117]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-.675, .799],
[0, 1.724],
[0, 0],
[.676, .798],
[1.731, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[1.689, 0],
[.676, -.8],
[0, 0],
[0, -1.683],
[-.675, -.799],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[-3.084, 3.154],
[4.479, 12.66],
[4.479, 12.618],
[11.534, 12.618],
[2.872, 3.112],
[4.901, 3.112],
[8.492, 1.935],
[9.507, -1.808],
[9.507, -7.739],
[8.492, -11.482],
[4.901, -12.66],
[-11.534, -12.66],
[-11.534, 12.66],
[-6.464, 12.66],
[-6.464, 3.154]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les trac\xe9s 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [170.898, 12.953],
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: "Groupe 4",
np: 4,
cix: 2,
bm: 0,
ix: 4,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[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]
],
v: [
[2.535, -8.054],
[2.535, 12.639],
[-2.619, 12.639],
[-2.619, -8.054],
[-11.196, -8.054],
[-11.196, -12.639],
[11.196, -12.639],
[11.196, -8.054]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [143.647, 12.973],
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: "Groupe 5",
np: 2,
cix: 2,
bm: 0,
ix: 5,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[-.676, .883],
[.041, 2.272],
[0, 0],
[.676, .841],
[2.07, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[.676, .841],
[1.986, 0],
[0, 0],
[.633, -.883],
[0, -2.272],
[0, 0],
[-.634, -.883],
[-2.071, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-.676, -.841],
[-2.07, 0]
],
o: [
[2.07, 0],
[.676, -.883],
[0, 0],
[0, -2.271],
[-.677, -.883],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, -2.061],
[-.676, -.842],
[0, 0],
[-2.028, 0],
[-.634, .842],
[0, 0],
[0, 2.271],
[.633, .884],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 2.272],
[.676, .883],
[0, 0]
],
v: [
[5.81, 12.681],
[9.908, 11.377],
[10.838, 6.666],
[10.838, 3.175],
[9.866, -1.535],
[5.768, -2.839],
[-5.556, -2.839],
[-5.556, -8.138],
[5.979, -8.138],
[5.979, -5.068],
[10.584, -6.541],
[10.584, -7.087],
[9.57, -11.419],
[5.556, -12.681],
[-5.09, -12.681],
[-9.146, -11.378],
[-10.118, -6.666],
[-10.118, -3.848],
[-9.146, .862],
[-5.09, 2.166],
[6.19, 2.166],
[6.19, 7.802],
[-6.231, 7.802],
[-6.231, 4.648],
[-10.879, 5.951],
[-10.879, 6.666],
[-9.865, 11.377],
[-5.767, 12.681]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [117.557, 12.974],
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: "Groupe 6",
np: 2,
cix: 2,
bm: 0,
ix: 6,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[.633, -.841],
[2.071, 0],
[0, 0],
[.677, .842],
[0, 2.271],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[-.634, .842],
[0, 0],
[-2.069, 0],
[-.675, -.841],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-.043, 2.271]
],
v: [
[9.95, 11.377],
[5.893, 12.639],
[-5.937, 12.639],
[-9.993, 11.377],
[-10.964, 6.667],
[-10.964, -12.639],
[-5.809, -12.639],
[-5.809, 7.802],
[5.852, 7.802],
[5.852, -12.639],
[10.964, -12.639],
[10.964, 6.667]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [87.561, 12.973],
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: "Groupe 7",
np: 2,
cix: 2,
bm: 0,
ix: 7,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[-1.015, -1.303],
[0, -2.566],
[1.226, -1.22],
[2.746, 0],
[0, 0],
[0, 0]
],
o: [
[1.775, 0],
[1.056, 1.305],
[0, 2.902],
[-1.224, 1.219],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[.697, -8.075],
[4.923, -6.099],
[6.486, -.294],
[4.626, 5.889],
[-1.372, 7.74],
[-6.613, 7.74],
[-6.613, -8.075]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [
[0, 0],
[-1.605, 1.346],
[0, 4.921],
[1.859, 2.187],
[3.677, 0],
[0, 0],
[0, 0]
],
o: [
[3.76, 0],
[2.746, -2.313],
[0, -3.954],
[-1.859, -2.187],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[-.444, 12.66],
[7.626, 10.642],
[11.767, -.168],
[8.978, -9.379],
[.697, -12.66],
[-11.767, -12.66],
[-11.767, 12.66]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les trac\xe9s 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [57.563, 12.994],
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: "Groupe 8",
np: 4,
cix: 2,
bm: 0,
ix: 8,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[-2.577, -12.66],
[2.577, -12.66],
[2.577, 12.66],
[-2.577, 12.66]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [2.827, 12.994],
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: "Groupe 9",
np: 2,
cix: 2,
bm: 0,
ix: 9,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[.148, .197],
[0, -.8],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-.224, -.267],
[-.09, -.105],
[0, 0],
[.015, .469],
[0, .274],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[.039, .047],
[.04, .05]
],
o: [
[.085, 1.051],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[.354, .406],
[.125, .147],
[0, 0],
[-.017, -.655],
[-.021, -.674],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-.028, -.037],
[-.033, -.043],
[-.123, -.151]
],
v: [
[-6.76, -3.765],
[-6.675, -.988],
[-6.675, 12.682],
[-11.408, 12.682],
[-11.408, -12.639],
[-7.69, -12.639],
[5.535, 2.251],
[6.396, 3.259],
[6.718, 3.638],
[6.802, 3.722],
[6.753, 2.035],
[6.718, .609],
[6.718, -12.682],
[11.408, -12.682],
[11.408, 12.639],
[7.689, 12.639],
[-6.126, -2.965],
[-6.226, -3.092],
[-6.337, -3.231]
],
c: !0
},
ix: 2
},
nm: "Trac\xe9 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [25.558, 12.932],
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: "Groupe 10",
np: 2,
cix: 2,
bm: 0,
ix: 10,
mn: "ADBE Vector Group",
hd: !1
}],
ip: 0,
op: 180.00000733155,
st: 0,
bm: 0
}, {
ddd: 0,
ind: 5,
ty: 4,
nm: "RSI",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[2.62, -153.308],
[2.661, -153.477],
[75.755, -153.308],
[-1.859, 153.477],
[-75.755, 153.477],
[2.325, -153.308]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fill 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [616.974, 153.727],
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: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[-3.021, 35.54],
[14.978, -35.54],
[3.104, -35.54],
[-14.977, 35.54]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [1, .627450980392, 0, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fill 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [591.645, 35.96],
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: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[14.978, -35.54],
[-2.978, 35.54],
[-14.977, 35.54],
[3.191, -35.54]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [1, .627450980392, 0, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fill 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [567.519, 35.959],
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: 3,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
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: [
[15.505, -35.583],
[15.211, -35.583],
[15.253, -35.751],
[2.578, -35.751],
[2.534, -35.583],
[-15.464, 35.498],
[-15.505, 35.751],
[-2.831, 35.751],
[-2.789, 35.498]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [1, .627450980392, 0, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fill 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [542.782, 36.002],
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 4",
np: 2,
cix: 2,
bm: 0,
ix: 4,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[-6.591, -4.164],
[0, 0],
[3.253, -13.754],
[0, 0],
[14.787, 0],
[0, 0],
[0, 0],
[0, 0],
[-1.225, 4.164],
[6.549, 4.585],
[0, 0],
[-3.295, 13.711],
[0, 0],
[-14.365, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[1.648, -6.645]
],
o: [
[0, 0],
[11.914, 7.907],
[0, 0],
[-3.252, 13.712],
[0, 0],
[0, 0],
[0, 0],
[6.548, 0],
[1.648, -5.426],
[0, 0],
[-11.915, -7.907],
[0, 0],
[3.295, -13.712],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-6.548, 0],
[-1.647, 6.687]
],
v: [
[-23.999, -57.306],
[93.414, 21.261],
[108.624, 61.219],
[91.808, 128.136],
[58.98, 153.499],
[-88.853, 153.499],
[-70.769, 81.996],
[18.336, 81.996],
[31.053, 73.248],
[24.884, 59.115],
[-93.373, -20.715],
[-108.583, -60.629],
[-91.768, -127.967],
[-59.742, -153.329],
[109.891, -153.499],
[109.85, -153.329],
[91.766, -82.249],
[91.724, -81.996],
[91.64, -81.996],
[-18.253, -82.249],
[-31.393, -73.121]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fill 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [423.595, 153.749],
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 5",
np: 2,
cix: 2,
bm: 0,
ix: 5,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[2.683, -35.751],
[-15.4, 35.751],
[-2.683, 35.751],
[15.4, -35.751]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [1, .627450980392, 0, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fill 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [324.455, 271.453],
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 6",
np: 2,
cix: 2,
bm: 0,
ix: 6,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[2.915, -35.751],
[-15.168, 35.751],
[-3.042, 35.751],
[15.168, -35.751]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [1, .627450980392, 0, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fill 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [300.141, 271.453],
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 7",
np: 2,
cix: 2,
bm: 0,
ix: 7,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[3.042, -35.751],
[15.421, -35.751],
[-2.83, 35.751],
[-15.421, 35.751],
[3, -35.625]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [1, .627450980392, 0, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fill 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [275.805, 271.453],
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 8",
np: 2,
cix: 2,
bm: 0,
ix: 8,
mn: "ADBE Vector Group",
hd: !1
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[1.606, -5.426],
[8.239, -4.122]
],
o: [
[0, 0],
[0, 0],
[0, 0],
[6.548, 0],
[-1.225, 4.164],
[0, 0]
],
v: [
[-43.749, -10.347],
[-43.2, -12.576],
[-25.709, -82.269],
[58.876, -82.269],
[68.339, -74.362],
[56.003, -61.071]
],
c: !0
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [
[0, 0],
[1.225, 4.585],
[0, 0],
[0, 0],
[-4.099, 16.656],
[0, 0],
[19.307, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[-14.366, 0],
[0, 0],
[0, 0],
[0, 0]
],
o: [
[-4.943, 0],
[0, 0],
[0, 0],
[13.562, -6.645],
[0, 0],
[4.943, -18.717],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[3.295, 13.711],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
],
v: [
[71.593, 81.933],
[60.904, 73.605],
[48.609, 20.82],
[104.885, -7.445],
[134.038, -44.458],
[153.346, -119.282],
[127.067, -153.393],
[-81.098, -153.393],
[-158.29, 153.393],
[-85.197, 153.393],
[-66.312, 78.989],
[-17.048, 54.047],
[.613, 128.031],
[32.217, 153.393],
[90.521, 153.393],
[108.562, 81.891],
[71.593, 81.891]
],
c: !0
},
ix: 2
},
nm: "Path 2",
mn: "ADBE Vector Shape - Group",
hd: !1
}, {
ty: "mm",
mm: 1,
nm: "Merge Paths 1",
mn: "ADBE Vector Filter - Merge",
hd: !1
}, {
ty: "fl",
c: {
a: 0,
k: [.737254901961, .745098039216, .752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fill 1",
mn: "ADBE Vector Graphic - Fill",
hd: !1
}, {
ty: "tr",
p: {
a: 0,
k: [158.539, 153.77],
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 9",
np: 4,
cix: 2,
bm: 0,
ix: 9,
mn: "ADBE Vector Group",
hd: !1
}],
ip: 0,
op: 180.00000733155,
st: 0,
bm: 0
}]
}],
layers: [{
ddd: 0,
ind: 1,
ty: 0,
nm: "RSI Loader V4",
refId: "comp_0",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [168, 102.5, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [540, 540, 0],
ix: 1,
l: 2
},
s: {
a: 0,
k: [39, 39, 100],
ix: 6,
l: 2
}
},
ao: 0,
w: 1080,
h: 1080,
ip: 0,
op: 120.0000048877,
st: 0,
bm: 0
}],
markers: []
};
let _g = Vs((({
as: e = "div",
children: t,
handleAnimWipeTrigger: n,
className: r,
...i
}, a) => {
let o = Us("sol-c-loading", r);
n?.();
let s = dl(vg, {
loop: !1,
forcePlay: !0
});
return _s.jsxs(Ll, {
align: "center",
className: o,
gap: "150",
justify: "center",
vertical: !0,
ref: a,
...i,
children: [_s.jsx(s, {
className: "sol-c-loading__animation"
}), t && _s.jsx(xl, {
align: "center",
className: "sol-c-loading__text",
variant: "body-l",
children: t
})]
})
}));
ss("@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 yg = {
none: 0,
small: 8,
medium: 12,
large: 16
},
bg = (0, Pe.createContext)(null),
xg = () => {
let e = (0, Pe.useContext)(bg);
if (!e) throw Error("Menu components must be wrapped in <Menu />");
return e
},
wg = (0, Pe.forwardRef)((({
className: e,
close: t = !0,
disabled: n,
label: r,
onClick: i,
...a
}, o) => {
let {
ref: s,
index: l
} = $u({
label: n ? null : r
}), {
getItemProps: c,
activeIndex: u,
setIsOpen: d
} = xg(), p = Us("sol-c-menu__item", e), h = (0, Pe.useCallback)((e => {
t && d(!1), i && i(e)
}), [t, i, d]);
return _s.jsx(Ol, {
align: "start",
className: p,
disabled: n,
fullWidth: !0,
ref: Ou([s, o]),
role: "menuitem",
tabIndex: n || l !== u ? -1 : 0,
variant: "plain",
...a,
...c({
onClick: h
}),
children: r
})
})),
kg = Vs((({
className: e,
close: t = !1,
onClick: n,
subtitle: r,
title: i,
...a
}, o) => {
let s = Us("sol-c-menu__title", e),
{
setIsOpen: l
} = xg(),
c = (0, Pe.useCallback)((e => {
t && l(!1), n && n(e)
}), [t, n, l]);
return _s.jsxs(Ll, {
"aria-disabled": "true",
className: s,
onClick: c,
ref: o,
vertical: !0,
...a,
children: [_s.jsx(xl, {
offset: !0,
variant: "emphasis-m",
truncate: 1,
children: i
}), r && _s.jsx(xl, {
color: "foreground-weak",
variant: "body-xs",
children: r
})]
})
})),
Eg = (0, Pe.forwardRef)((({
anchor: e,
children: t,
className: n,
offset: r = "small",
overlay: i = !1,
placement: a = "bottom-start",
loop: o = !0,
style: s,
trigger: l,
...c
}, u) => {
let d = (({
anchor: e,
loop: t,
offset: n = "small",
placement: r
} = {}) => {
let [i, a] = (0, Pe.useState)(null), [o, s] = (0, Pe.useState)(!1), l = (0, Pe.useRef)([]), c = (0, Pe.useRef)([]), u = Md({
open: o,
onOpenChange: s,
placement: r,
whileElementsMounted: iu,
middleware: [Ac({
mainAxis: yg[n],
alignmentAxis: 0
}), Rc({
apply({
availableWidth: e,
availableHeight: t,
elements: n,
rects: r
}) {
Object.assign(n.floating.style, {
maxInlineSize: `${e}px`,
maxBlockSize: `${t}px`
})
},
padding: yg[n]
})],
transform: !1
}), {
context: d,
refs: {
setPositionReference: p
}
} = u;
(0, Pe.useEffect)((() => {
e && p(e)
}), [e, p]);
let h = Fd([Td(d), jd(d), qd(d, {
activeIndex: i,
listRef: l,
loop: t,
onNavigate: a
}), Yd(d, {
activeIndex: i,
enabled: o,
listRef: c,
onMatch: a
}), Wd(d, {
role: "menu"
})]),
f = Hd(d);
return (0, Pe.useMemo)((() => ({
isOpen: o,
setIsOpen: s,
elementsRef: l,
labelsRef: c,
activeIndex: i,
...u,
...h,
...f
})), [o, s, i, u, h, f])
})({
anchor: e,
loop: o,
offset: r,
placement: a
}),
{
floatingStyles: p,
refs: h,
context: f,
placement: m,
getReferenceProps: g,
getFloatingProps: v,
isOpen: _,
isMounted: y,
status: b,
elementsRef: x,
labelsRef: w
} = d,
k = Ou([h.setReference, l.ref, u]),
{
name: E
} = gl(),
S = Us("sol-c-menu sol-u-transition-floating", n);
return _s.jsx(Bu, {
elementsRef: x,
labelsRef: w,
children: _s.jsxs(bg.Provider, {
value: d,
children: [(0, Pe.cloneElement)("function" == typeof l ? l({
isOpen: _
}) : l, g({
ref: k
})), y && _s.jsx(Sd, {
children: _s.jsx(up, {
condition: i,
wrap: e => _s.jsx(Cd, {
"data-sol-menu-overlay": !0,
children: e
}),
children: _s.jsx(Id, {
context: f,
visuallyHiddenDismiss: !0,
initialFocus: -1,
modal: !1,
children: _s.jsx("div", {
className: S,
"data-sol-placement": m,
"data-sol-status": b,
"data-sol-theme": E,
ref: h.setFloating,
style: {
...p,
...s
},
...v(c),
children: t
})
})
})
})]
})
})
}));
ss("@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 Sg = {
none: 0,
small: 8,
medium: 12,
large: 16
},
Og = (0, Pe.createContext)(null),
Pg = () => {
let e = (0, Pe.useContext)(Og);
if (!e) throw Error("Popover components must be wrapped in <Popover />");
return e
},
Ig = (Vs((({
as: e = "p",
id: t,
onClick: n,
...r
}, i) => {
let {
setDescriptionId: a
} = Pg(), o = Ks(t);
return el((() => (a(o), () => a(void 0))), [o, a]), _s.jsx(e, {
id: o,
ref: i,
...r
})
})), Vs((({
as: e = "p",
id: t,
onClick: n,
...r
}, i) => {
let {
setLabelId: a
} = Pg(), o = Ks(t);
return el((() => (a(o), () => a(void 0))), [o, a]), _s.jsx(e, {
id: o,
ref: i,
...r
})
}))),
Ag = (0, Pe.forwardRef)((({
anchor: e,
children: t,
className: n,
close: r,
defaultOpen: i,
footer: a,
fullWidth: o,
modal: s = !0,
offset: l = "small",
open: c,
onOpenChange: u,
overlay: d = !1,
placement: p = "bottom-start",
style: h,
title: f,
trigger: m,
...g
}, v) => {
let _ = (({
anchor: e,
defaultOpen: t,
offset: n = "small",
open: r,
onOpenChange: i,
placement: a
} = {}) => {
let [o, s] = (0, Pe.useState)(t), [l, c] = (0, Pe.useState)(), [u, d] = (0, Pe.useState)(), p = r ?? o, h = i ?? s, f = nd(), m = Md({
open: p,
onOpenChange: h,
nodeId: f,
placement: a,
whileElementsMounted: iu,
middleware: [Ac({
mainAxis: Sg[n],
alignmentAxis: 0
}), Cc({
padding: Sg[n]
}), Rc({
apply({
availableHeight: e,
elements: t
}) {
Object.assign(t.floating.style, {
maxBlockSize: `${e}px`
})
},
padding: Sg[n]
})],
transform: !1
}), {
context: g,
refs: {
setPositionReference: v
}
} = m;
(0, Pe.useEffect)((() => {
e && v(e)
}), [e, v]);
let _ = Fd([Td(g), jd(g, {
bubbles: !1,
outsidePress: e => !e.target.closest("[data-sol-popover-ignore]")
}), Wd(g)]),
y = Hd(g);
return (0, Pe.useMemo)((() => ({
isOpen: p,
setIsOpen: h,
labelId: l,
setLabelId: c,
descriptionId: u,
setDescriptionId: d,
nodeId: f,
...m,
..._,
...y
})), [p, h, l, u, f, m, _, y])
})({
anchor: e,
defaultOpen: i,
offset: l,
open: c,
onOpenChange: u,
placement: p
}),
{
floatingStyles: y,
refs: b,
context: x,
placement: w,
getReferenceProps: k,
getFloatingProps: E,
isMounted: S,
isOpen: O,
setIsOpen: P,
status: I,
labelId: A,
descriptionId: C,
nodeId: R
} = _,
T = Ou([b.setReference, (m ?? t).ref, v]),
{
name: D
} = gl(),
N = Us("sol-c-popover sol-u-transition-floating", o && "sol-c-popover--full-width", n);
return _s.jsx(Og.Provider, {
value: _,
children: _s.jsxs(rd, {
id: R,
children: [(0, Pe.cloneElement)("function" == typeof m ? m({
isOpen: O
}) : m, k({
ref: T
})), S && _s.jsx(Sd, {
children: _s.jsx(up, {
condition: d,
wrap: e => _s.jsx(Cd, {
"data-sol-popover-overlay": !0,
children: e
}),
children: _s.jsx(Id, {
context: x,
modal: s,
children: _s.jsxs("div", {
"aria-labelledby": A,
"aria-describedby": C,
className: N,
"data-sol-placement": w,
"data-sol-status": I,
"data-sol-theme": D,
ref: b.setFloating,
style: {
...y,
...h
},
...E(g),
children: [(r || f) && _s.jsxs(Ll, {
align: "start",
className: "sol-c-popover__header",
gap: "050",
justify: "end",
children: [f && _s.jsx(xl, {
as: Ig,
className: "sol-c-popover__title",
color: "foreground",
offset: !0,
variant: "emphasis-m",
children: f
}), r && _s.jsx(Ol, {
"aria-label": "string" == typeof r ? r : "Close",
className: "sol-c-popover__close",
icon: Ss,
onClick: () => P(!1),
size: "small",
variant: "monochrome"
})]
}), _s.jsx(xl, {
className: "sol-c-popover__content",
color: "foreground-weak",
variant: "body-s",
multiline: !0,
children: t
}), a && _s.jsx(Ll, {
align: "center",
className: "sol-c-popover__footer",
gap: "100",
justify: "space-between",
children: a
})]
})
})
})
})]
})
})
})),
Cg = (0, Pe.forwardRef)(((e, t) => null == ed() ? _s.jsx(id, {
children: _s.jsx(Ag, {
ref: t,
...e
})
}) : _s.jsx(Ag, {
ref: t,
...e
})));
ss("@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 Rg = ({
className: e,
...t
}) => {
let n = Us("sol-c-rsi-logo", e);
return _s.jsxs("svg", {
className: n,
xmlns: "http://www.w3.org/2000/svg",
height: "16",
fill: "currentColor",
viewBox: "0 0 216 80",
...t,
children: [_s.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"
}), _s.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"
})]
})
};
ss("@layer components{.sol-c-select{cursor:var(--sol-cursor-interactive)}}");
let Tg = (0, Pe.forwardRef)((({
children: e,
description: t,
label: n,
...r
}, i) => _s.jsx(mg, {
label: n,
ref: i,
...r,
children: t ? _s.jsxs(Ll, {
as: "span",
vertical: !0,
children: [_s.jsx(xl, {
as: "span",
color: "foreground",
variant: "label-m",
truncate: !0,
children: e ?? n
}), t && _s.jsx(xl, {
as: "span",
color: "foreground-weak",
variant: "body-xs",
truncate: !0,
children: t
})]
}) : e ?? n
}))),
Dg = (0, Pe.forwardRef)((({
allowEmpty: e,
children: t,
className: n,
defaultValue: r,
empty: i,
listboxProps: a,
name: o,
onChange: s,
onValueChange: l,
value: c,
wrapperProps: u,
...d
}, p) => {
let h = Us("sol-c-select", n),
[f, m] = (0, Pe.useState)(null);
return _s.jsx(gg, {
trigger: ({
isOpen: e
}) => _s.jsx(cg, {
as: "button",
className: h,
type: "button",
endIcon: e ? Ps : Is,
wrapperProps: Bs({
ref: m
}, u),
...d
}),
...Bs({
anchor: f,
allowEmpty: e,
defaultValue: r,
empty: i,
name: o,
onChange: s,
onValueChange: l,
ref: p,
value: c
}, a),
children: t
})
}));
ss('@layer components{.sol-c-settings{border-block-start:var(--sol-border-1) solid var(--sol-color-surface-3);display:flex;flex:1;overflow:hidden}.sol-c-settings__navigation{background:var(--sol-color-surface-1);display:flex;flex:1 0 auto;flex-direction:column;gap:var(--sol-size-100);inline-size:25%;max-inline-size:25rem;min-inline-size:17.5rem;overflow:auto;padding:var(--sol-size-250);padding-inline:clamp(var(--sol-size-200),2.5vw,var(--sol-size-250))}.sol-c-settings__header{align-items:center;display:flex;gap:var(--sol-size-100);margin-block-end:var(--sol-size-300)}.sol-c-settings__header:has(.sol-c-settings__back):has(.sol-c-settings__label):before{background:var(--sol-color-surface-3);block-size:var(--sol-size-300);content:"";inline-size:var(--sol-border-1)}.sol-c-settings__back{order:-1}.sol-c-settings__label{padding-inline-start:var(--sol-size-075)}.sol-c-settings__content{flex:1;overflow:auto;padding:var(--sol-size-250)}@supports (scrollbar-gutter:stable) and (selector(::-webkit-scrollbar)){.sol-c-settings__content{padding-inline-end:calc(var(--sol-size-250) - var(--sol-scrollbar-width));scrollbar-gutter:stable}}.sol-c-settings__title{margin-block-end:var(--sol-size-300)}.sol-c-settings__back,.sol-c-settings__content>*,.sol-c-settings__header,.sol-c-settings__item,.sol-c-settings__navigation,.sol-c-settings__navigation>*{animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:calc(var(--sol-motion-anim-wipe-duration)/2);opacity:0}.sol-c-settings__back,.sol-c-settings__navigation,.sol-c-settings__navigation>*{transform:translateX(calc(var(--sol-size-125)*-1))}.sol-c-settings__back{animation-delay:calc(.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item{opacity:0}.sol-c-settings__item:first-child{animation-delay:calc(.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(2){animation-delay:calc(.2s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(3){animation-delay:calc(.3s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(4){animation-delay:calc(.4s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(5){animation-delay:calc(.5s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(6){animation-delay:calc(.6s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(7){animation-delay:calc(.7s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(8){animation-delay:calc(.8s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(9){animation-delay:calc(.9s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(10){animation-delay:calc(1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__content>*{animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;opacity:0;transform:translateY(var(--sol-size-075))}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:first-child{animation-delay:calc(.4s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(2){animation-delay:calc(.5s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(3){animation-delay:calc(.6s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(4){animation-delay:calc(.7s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(5){animation-delay:calc(.8s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(6){animation-delay:calc(.9s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(7){animation-delay:calc(1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(8){animation-delay:calc(1.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(9){animation-delay:calc(1.2s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(10){animation-delay:calc(1.3s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:first-child{animation-delay:calc(.2s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(2){animation-delay:calc(.3s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(3){animation-delay:calc(.4s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(4){animation-delay:calc(.5s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(5){animation-delay:calc(.6s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(6){animation-delay:calc(.7s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(7){animation-delay:calc(.8s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(8){animation-delay:calc(.9s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(9){animation-delay:calc(1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(10){animation-delay:calc(1.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__content>:first-child,.sol-c-settings__navigation>:first-child{animation-delay:.1s}.sol-c-settings__content>:nth-child(2),.sol-c-settings__navigation>:nth-child(2){animation-delay:.2s}.sol-c-settings__content>:nth-child(3),.sol-c-settings__navigation>:nth-child(3){animation-delay:.3s}.sol-c-settings__content>:nth-child(4),.sol-c-settings__navigation>:nth-child(4){animation-delay:.4s}.sol-c-settings__content>:nth-child(5),.sol-c-settings__navigation>:nth-child(5){animation-delay:.5s}.sol-c-settings__content>:nth-child(6),.sol-c-settings__navigation>:nth-child(6){animation-delay:.6s}.sol-c-settings__content>:nth-child(7),.sol-c-settings__navigation>:nth-child(7){animation-delay:.7s}.sol-c-settings__content>:nth-child(8),.sol-c-settings__navigation>:nth-child(8){animation-delay:.8s}.sol-c-settings__content>:nth-child(9),.sol-c-settings__navigation>:nth-child(9){animation-delay:.9s}.sol-c-settings__content>:nth-child(10),.sol-c-settings__navigation>:nth-child(10){animation-delay:1s}}');
let Ng = (0, Pe.forwardRef)((({
children: e,
className: t,
title: n,
...r
}, i) => {
let a = Us("sol-c-settings__content", t);
return _s.jsxs("div", {
className: a,
ref: i,
...r,
children: [n && _s.jsx(xl, {
as: "h1",
className: "sol-c-settings__title",
variant: "heading-m",
children: n
}), e]
})
})),
Lg = (0, Pe.forwardRef)((({
back: e,
children: t,
className: n,
title: r,
backCallback: i,
...a
}, o) => {
let s = Us("sol-c-settings__navigation", n);
return _s.jsxs("div", {
className: s,
ref: o,
...a,
children: [(e || r) && _s.jsxs("div", {
className: "sol-c-settings__header",
children: [e && _s.jsx(Ol, {
"aria-label": e.label,
className: "sol-c-settings__back",
icon: Es,
size: "large",
variant: "monochrome",
onClick: e => {
e.preventDefault(), i?.()
},
...e
}), r && _s.jsx(xl, {
className: "sol-c-settings__label",
offset: !0,
variant: "heading-s",
children: r
})]
}), t]
})
})),
jg = (0, Pe.forwardRef)((({
children: e,
className: t,
active: n,
...r
}, i) => {
let a = Us("sol-c-settings__item", t);
return _s.jsx(Ol, {
"aria-current": n ? "true" : void 0,
className: a,
fullWidth: !0,
align: "start",
ref: i,
selected: n,
size: "medium",
variant: "plain",
...r,
children: e
})
})),
Mg = Vs((({
as: e = "div",
children: t,
className: n,
...r
}, i) => {
let a = Us("sol-c-settings", n),
[o, s] = (0, Pe.useState)(!0);
return (0, Pe.useEffect)((() => {
let e = setTimeout((() => s(!1)), 2e3);
return () => clearTimeout(e)
}), []), _s.jsx(e, {
className: a,
"data-animation-fade": o,
ref: i,
...r,
children: t
})
}));
ss('@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 zg = Vs((({
as: e = "div",
children: t,
className: n,
footer: r,
subtitle: i,
title: a,
...o
}, s) => {
let l = Us("sol-c-sign-in__content", r && "sol-c-sign-in__content--has-footer", n),
c = (0, Pe.useRef)(null),
{
blockEnd: u
} = hl({
ref: c
});
return _s.jsxs(e, {
className: l,
ref: s,
...o,
children: [_s.jsx("div", {
className: "sol-c-sign-in__wrapper",
"data-sol-scroll-end": u,
children: _s.jsxs(Ll, {
className: "sol-c-sign-in__container",
gap: "150",
ref: c,
vertical: !0,
children: [(a || i) && _s.jsxs(Ll, {
className: "sol-c-sign-in__header",
gap: "050",
vertical: !0,
children: [a && _s.jsx(xl, {
as: "h1",
className: "sol-c-sign-in__title",
color: "foreground",
variant: "heading-s",
children: a
}), i && _s.jsx(xl, {
className: "sol-c-sign-in__subtitle",
color: "foreground-weak",
variant: "body-m",
children: i
})]
}), t]
})
}), r && _s.jsx(Ll, {
align: "center",
justify: "space-between",
className: "sol-c-sign-in__footer",
children: r
})]
})
})),
Fg = Vs((({
as: e = "div",
children: t,
className: n,
...r
}, i) => {
let a = Us("sol-c-sign-in", n);
return _s.jsxs(e, {
className: a,
ref: i,
...r,
children: [_s.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: _s.jsxs("g", {
fill: "#BCBEC0",
children: [_s.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"
}), _s.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"
}), _s.jsx("path", {
d: "M32.669 124.984v-8.778h6.926v1.517h-5.141v1.914h3.002v1.534h-3.002v2.132h5.2v1.681h-6.986Z"
}), _s.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"
}), _s.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"
}), _s.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"
}), _s.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"
}), _s.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"
}), _s.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"
}), _s.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"
}), _s.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"
}), _s.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"
}), _s.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"
}), _s.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"
}), _s.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"
}), _s.jsx("path", {
d: "m214.709.057.014-.059 25.338.06-26.905 106.526h-25.62L214.608.057h.104-.003Z"
})]
})
}), _s.jsx("div", {
className: "sol-c-sign-in__content-wrapper",
children: t
})]
})
}));
ss('@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 Ug = (e, t) => t < e ? e : e + (t - e) / 2,
Vg = (0, Pe.forwardRef)((({
className: e,
defaultValue: t,
max: n = 100,
min: r = 0,
style: i,
onChange: a,
onValueChange: o,
showProgress: s = !1,
value: l,
...c
}, u) => {
let [d, p] = qs({
value: l,
defaultValue: t ?? Ug(r, n),
onChange: o
}), h = (0, Pe.useCallback)((e => {
p(parseFloat(e.target.value)), a && a(e)
}), [a, p]), f = (d - r) / (n - r) * 100, m = Us("sol-c-slider", e), g = {
...s && {
"--sol-c-slider-progress": `${f}%`
},
...i
};
return _s.jsx("input", {
className: m,
max: n,
min: r,
onChange: h,
ref: u,
style: g,
type: "range",
value: d,
...c
})
}));
ss("@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 Gg = "informative",
Bg = (0, Pe.forwardRef)((({
actions: e,
children: t,
className: n,
close: r = true,
closeOnClick: i = true,
closeOnEsc: a = true,
duration: o = 4e3,
icon: s,
id: l,
onClick: c,
onClose: u,
pauseOnBlur: d = true,
title: p,
type: h = Gg,
...f
}, m) => {
let g = (0, Pe.useId)(),
v = l ?? g,
_ = v + "-label",
y = v + "-description",
{
pause: b,
resume: x,
clear: w
} = ((e, t = 1 / 0, n = !0) => {
let r = $s(e),
i = (0, Pe.useRef)(null),
a = (0, Pe.useRef)(null),
o = (0, Pe.useRef)(t),
s = (0, Pe.useCallback)((() => {
i.current && (clearTimeout(i.current), i.current = null)
}), []),
l = (0, Pe.useCallback)((() => {
s(), null !== a.current && (o.current -= Date.now() - a.current, a.current = null)
}), [s]),
c = (0, Pe.useCallback)((() => {
i.current || t === 1 / 0 || (a.current = Date.now(), i.current = setTimeout((() => {
s(), r()
}), t))
}), [r, s, t]);
return (0, Pe.useEffect)((() => (n && c(), s)), [n, s, t, c]), (0, Pe.useMemo)((() => ({
clear: s,
pause: l,
resume: c
})), [s, l, c])
})((() => u && u(v)), o, !d || (document.hasFocus() ?? !0)),
k = (0, Pe.useCallback)((() => {
u && u(v), w()
}), [w, v, u]);
(0, Pe.useEffect)((() => {
if (d) return window.addEventListener("blur", b), window.addEventListener("focus", x), () => {
window.removeEventListener("blur", b), window.removeEventListener("focus", x)
}
}), [b, d, x]), (0, Pe.useEffect)((() => {
if (a && u) {
let e = e => {
("Escape" === e.key || "Esc" === e.key) && k()
};
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e)
}
}), [k, a, v, u]);
let E = (0, Pe.useCallback)((e => {
c && c(e), i && k()
}), [k, i, c]),
S = (0, Pe.useCallback)((e => {
e.stopPropagation(), k()
}), [k]),
O = (0, Pe.useCallback)((() => {
b()
}), [b]),
P = (0, Pe.useCallback)((() => {
x()
}), [x]),
I = (0, Pe.useCallback)((({
close: e,
onClick: t
}) => n => {
n.stopPropagation(), e && k(), t && t(n)
}), [k]),
A = Us("sol-c-toast", h && h !== Gg && `sol-c-toast--${h}`, n),
C = p || !p && t,
R = t && p;
return _s.jsxs("div", {
"aria-describedby": R ? y : void 0,
"aria-labelledby": C ? _ : void 0,
className: A,
id: v,
ref: m,
onClick: E,
onMouseEnter: O,
onMouseLeave: P,
...f,
children: [s && _s.jsx(bl, {
className: "sol-c-toast__icon",
size: "150",
source: s
}), (p || t || e) && _s.jsxs(Ll, {
className: "sol-c-toast__container",
gap: "075",
vertical: !0,
children: [(p || t) && _s.jsxs(Ll, {
gap: "025",
vertical: !0,
children: [C && _s.jsx(xl, {
className: "sol-c-toast__title",
color: "foreground",
id: _,
offset: !0,
variant: "emphasis-m",
children: p ?? t
}), R && _s.jsx(xl, {
className: "sol-c-toast__content",
color: "foreground-weak",
id: y,
variant: "body-s",
children: t
})]
}), e && _s.jsx(Ll, {
align: "center",
className: "sol-c-toast__actions",
gap: "050",
wrap: !0,
children: e.map((({
close: e = !0,
label: t,
onClick: n,
...r
}, i) => _s.jsx(Ol, {
color: "informative" !== h ? h : "default",
size: "medium",
variant: i > 0 ? "monochrome" : "default",
...r,
className: Us("sol-c-toast__action", r.className),
onClick: I({
close: e,
onClick: n
}),
children: t
}, i)))
})]
}), r && _s.jsx(Ol, {
"aria-label": "string" == typeof r ? r : "Close",
className: "sol-c-toast__close",
icon: Ss,
onClick: S,
size: "small",
variant: "monochrome"
})]
})
}));
ss('@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, Pe.forwardRef)((({
className: e,
style: t,
toasts: n,
component: r = Bg,
...i
}, a) => {
let o = (0, Pe.useMemo)((() => new WeakMap), []),
[s, l] = (0, Pe.useState)(0);
el((() => l(document.querySelector(".sol-c-app-header")?.clientHeight ?? 0)), []);
let c = function(e, t, n) {
let r = eh.fun(t) && t,
{
reset: i,
sort: a,
trail: o = 0,
expires: s = !0,
exitBeforeEnter: l = !1,
onDestroyed: c,
ref: u,
config: d
} = r ? r() : t,
p = (0, Pe.useMemo)((() => r || 3 == arguments.length ? Nm() : void 0), []),
h = ih(e),
f = [],
m = (0, Pe.useRef)(null),
g = i ? null : m.current;
pf((() => {
m.current = f
})), ff((() => (nh(f, (e => {
p?.add(e.ctrl), e.ctrl.ref = p
})), () => {
nh(m.current, (e => {
e.expired && clearTimeout(e.expirationId), qf(e.ctrl, p), e.ctrl.stop(!0)
}))
})));
let v = function(e, {
key: t,
keys: n = t
}, r) {
if (null === n) {
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) : jm++
}))
}
return eh.und(n) ? e : eh.fun(n) ? e.map(n) : ih(n)
}(h, r ? r() : t, g),
_ = i && m.current || [];
pf((() => nh(_, (({
ctrl: e,
item: t,
key: n
}) => {
qf(e, p), Df(c, t, n)
}))));
let y = [];
if (g && nh(g, ((e, t) => {
e.expired ? (clearTimeout(e.expirationId), _.push(e)) : ~(t = y[t] = v.indexOf(e.key)) && (f[t] = e)
})), nh(h, ((e, t) => {
f[t] || (f[t] = {
key: v[t],
item: e,
phase: "mount",
ctrl: new Em
}, f[t].ctrl.item = e)
})), y.length) {
let e = -1,
{
leave: n
} = r ? r() : t;
nh(y, ((t, r) => {
let i = g[r];
~t ? (e = f.indexOf(i), f[e] = {
...i,
item: h[t]
}) : n && f.splice(++e, 0, i)
}))
}
eh.fun(a) && f.sort(((e, t) => a(e.item, t.item)));
let b = -o,
x = hf(),
w = zf(t),
k = new Map,
E = (0, Pe.useRef)(new Map),
S = (0, Pe.useRef)(!1);
nh(f, ((e, n) => {
let i, a, c = e.key,
p = e.phase,
h = r ? r() : t,
f = Df(h.delay || 0, c);
if ("mount" == p) i = h.enter, a = "enter";
else {
let e = 0 > v.indexOf(c);
if ("leave" != p)
if (e) i = h.leave, a = "leave";
else {
if (!(i = h.update)) return;
a = "update"
}
else {
if (e) return;
i = h.enter, a = "enter"
}
}
if (i = Df(i, e.item, n), !(i = eh.obj(i) ? Vf(i) : {
to: i
}).config) {
let t = d || w.config;
i.config = Df(t, e.item, n, a)
}
b += o;
let _ = {
...w,
delay: f + b,
ref: u,
immediate: h.immediate,
reset: !1,
...i
};
if ("enter" == a && eh.und(_.from)) {
let i = r ? r() : t,
a = eh.und(i.initial) || g ? i.from : i.initial;
_.from = Df(a, e.item, n)
}
let {
onResolve: y
} = _;
_.onResolve = e => {
Df(y, e);
let t = m.current,
n = t.find((e => e.key === c));
if (n) {
if (e.cancelled && "update" != n.phase) return;
if (n.ctrl.idle) {
let e = t.every((e => e.ctrl.idle));
if ("leave" == n.phase) {
let t = Df(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)))
}
}
e && t.some((e => e.expired)) && (E.current.delete(n), l && (S.current = !0), x())
}
}
};
let O = Pm(e.ctrl, _);
"leave" === a && l ? E.current.set(e, {
phase: a,
springs: O,
payload: _
}) : k.set(e, {
phase: a,
springs: O,
payload: _
})
}));
let O = (0, Pe.useContext)(Tm),
P = gf(O),
I = O !== P && Bf(O);
pf((() => {
I && nh(f, (e => {
e.ctrl.start({
default: O
})
}))
}), [O]), nh(k, ((e, t) => {
if (E.current.size) {
let e = f.findIndex((e => e.key === t.key));
f.splice(e, 1)
}
})), pf((() => {
nh(E.current.size ? E.current : k, (({
phase: e,
payload: t
}, n) => {
let {
ctrl: r
} = n;
n.phase = e, p?.add(r), I && "enter" == e && r.start({
default: O
}), t && (Wf(r, t.ref), !r.ref && !p || S.current ? (r.start(t), S.current && (S.current = !1)) : r.update(t))
}))
}), void 0);
let A = e => Pe.createElement(Pe.Fragment, null, f.map(((t, n) => {
let {
springs: r
} = k.get(t) || t.ctrl, i = e({
...r
}, t.item, t, n);
return i && i.type ? Pe.createElement(i.type, {
...i.props,
key: eh.str(t.key) || eh.num(t.key) ? t.key : t.ctrl.id,
ref: i.ref
}) : i
})));
return p ? [A, p] : A
}(n, {
from: {
height: 0,
transform: "translate(100%, 0px)"
},
enter: e => async t => {
await t({
transform: `translate(100%, -${o.get(e).scrollHeight}px)`,
immediate: !0
}), await t({
height: o.get(e).scrollHeight,
transform: "translate(0%, 0px)",
scale: 1,
opacity: 1
})
},
leave: {
opacity: 0,
scale: .95,
height: 0
},
config: {
tension: 210,
friction: 30
}
}),
u = Us("sol-c-toasts", e),
d = {
...t,
top: s
};
return _s.jsx("ul", {
"aria-live": "polite",
className: u,
ref: a,
style: d,
...i,
children: c(((e, t) => _s.jsx(Xm.li, {
className: "sol-c-toasts__wrapper",
ref: e => e && o.set(t, e),
style: e,
children: _s.jsx(r, {
role: "status",
...t
})
})))
})
}));
ss("@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 qg = ({
targetInfo: e,
disableMaskInteraction: t,
padding: n,
radius: r,
tourRoot: i,
close: a,
disableCloseOnClick: o,
maskId: s
}) => {
let {
width: l,
height: c
} = Hs({
ref: i
}), u = `clip-path-${s}`, d = (0, Pe.useMemo)((() => {
if (!e) return "";
let {
dims: {
height: t,
width: i
},
coords: {
x: a,
y: o
}
} = 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 _s.jsxs("svg", {
style: {
height: c,
width: l,
pointerEvents: t ? "auto" : "none"
},
children: [e && _s.jsx("defs", {
children: _s.jsx("clipPath", {
id: u,
children: _s.jsx("path", {
d: d
})
})
}), _s.jsx("rect", {
onClick: o ? void 0 : a,
x: 0,
y: 0,
width: l,
height: c,
pointerEvents: "auto",
clipPath: e ? `url(#${u})` : void 0,
fill: "currentColor"
})]
})
},
Wg = ({
allSteps: e,
close: t,
counterSeparator: n,
doneLabel: r,
next: i,
nextLabel: a,
skipLabel: o,
stepContent: {
title: s,
description: l
},
stepIndex: c
}) => {
let u = c === e.length - 1;
return _s.jsxs(Ll, {
className: "sol-c-tutorial",
vertical: !0,
gap: "050",
children: [_s.jsxs(Ll, {
className: "sol-c-tutorial__content",
gap: "025",
vertical: !0,
children: [_s.jsx(xl, {
as: "h2",
color: "foreground",
variant: "emphasis-m",
children: s
}), l && _s.jsx(xl, {
color: "foreground-weak",
className: "sol-u-margin-bs-050",
variant: "body-s",
children: l
})]
}), _s.jsxs(Ll, {
align: "center",
className: "sol-c-tutorial__footer",
gap: "050",
children: [_s.jsxs(xl, {
className: "sol-c-tutorial__counter sol-u-margin-ie-auto",
color: "foreground-weak",
variant: "body-xs",
children: [c + 1, n, e.length]
}), !u && _s.jsx(Ol, {
onClick: () => t(),
variant: "plain",
children: o
}), _s.jsx(Ol, {
onClick: () => {
u ? t() : i()
},
children: u ? r : a
})]
})]
})
},
Hg = '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 Yg(e) {
return {
x: e.scrollLeft,
y: e.scrollTop
}
}
function Kg(e, t) {
let n = Yg(e);
return {
x: t.x + n.x,
y: t.y + n.y
}
}
function Qg(e, t) {
if (t && e) {
if (sv(e)) return Kg(e, t);
{
let n = av(e);
return Kg(e, {
x: t.x - n.x,
y: t.y - n.y
})
}
}
}
function Zg(e, t, n) {
return {
x: e.x + t.width / 2 - n.width / 2,
y: e.y + t.height / 2 - n.height / 2
}
}
function Xg(e, t, n, r, i) {
if (!e || !t || !n) return;
let a = r || av(t),
o = i || av(n),
s = ov(t),
l = ov(n),
{
coords: c,
dims: u
} = lv(a, s, o, l);
return Zg(c, u, hv(e))
}
function Jg(e, t, n) {
if (!e) return;
return Zg(n || mv(e), hv(e), t ? ov(t) : {
height: 0,
width: 0
})
}
function ev(e, t, n, r) {
let i = Jg(e, t),
a = i,
o = a => !r || _v(e, n) && _v(e, t, a, !0) ? i : Jg(e, t, yv(e, Xg(e, t, n, a)));
return (e, t, n, r) => {
if (t.orientation === ps.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 iv(n, t.coords) > iv(a, e.coords) ? e : (a = n, t)
}
}
}
function tv(e) {
let {
target: t,
tooltip: n,
padding: r,
tooltipSeparation: i,
orientationPreferences: a,
getPositionFromCandidates: o,
root: s,
disableAutoScroll: l,
allowForeignTarget: c,
selector: u
} = e, d = t ? Jg(s, n, yv(s, function(e, t) {
let n = ov(t);
return Zg(av(t), n, hv(e))
}(s, t))) : Jg(s, n), p = Qg(s, d);
if (!n || !s) return;
if (!t) return {
orientation: null,
coords: p
};
let h = c && pv(s, u),
f = l || h,
m = function(e, t, n, r, i) {
let a;
if (!e || !t) return;
let o = ov(t),
s = av(e),
l = ov(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 = Zg(s, l, o),
g = [{
orientation: ps.EAST,
coords: {
x: d,
y: u
}
}, {
orientation: ps.SOUTH,
coords: {
x: c,
y: p
}
}, {
orientation: ps.WEST,
coords: {
x: h,
y: u
}
}, {
orientation: ps.NORTH,
coords: {
x: c,
y: f
}
}];
{
let e = s.x - (o.width - l.width) + n,
t = s.y - (o.height - l.height) + n,
r = s.x - n,
i = s.y - n;
a = [{
orientation: ps.EASTNORTH,
coords: {
x: d,
y: i
}
}, {
orientation: ps.EASTSOUTH,
coords: {
x: d,
y: t
}
}, {
orientation: ps.SOUTHEAST,
coords: {
x: e,
y: p
}
}, {
orientation: ps.SOUTHWEST,
coords: {
x: r,
y: p
}
}, {
orientation: ps.WESTSOUTH,
coords: {
x: h,
y: t
}
}, {
orientation: ps.WESTNORTH,
coords: {
x: h,
y: i
}
}, {
orientation: ps.NORTHWEST,
coords: {
x: r,
y: f
}
}, {
orientation: ps.NORTHEAST,
coords: {
x: e,
y: f
}
}]
}
return [...g, ...a, {
orientation: ps.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(ev(t, n, r, !1), void 0);
let a = hv(t),
o = gv(t),
s = mv(t),
l = vv(t),
c = ov(n),
u = ov(r),
d = av(r),
p = e => lv(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)
})),
f = h.filter((e => {
let t = e.coords,
{
dims: n
} = p(t);
return cv(n, a)
})),
m = f.filter((e => {
let t = e.coords,
{
dims: n,
coords: r
} = p(t);
return uv(n, a, r, s)
})),
g = m.length > 0 ? m : f;
return (g.length > 0 ? g : h).reduce(ev(t, n, r, !0), void 0)
}
}(e, s, n, t, f)),
v = g(function(e, t) {
if (!t || 0 === t.length) return e;
if (1 !== t.length) return e.filter((e => -1 !== t.indexOf(e.orientation)));
{
let n = e.find((e => e.orientation === t[0]));
return n ? [n] : e
}
}(m, a));
if (!v) return {
orientation: ps.CENTER,
coords: p
};
let _ = {
orientation: v.orientation,
coords: Qg(s, v.coords)
};
return h ? {
orientation: _.orientation,
coords: function(e, t, n, r) {
if (!e) return t;
let i = Yg(e),
a = hv(e),
o = i.x + a.width,
s = i.y + a.height,
l = i.x + r,
c = i.y + r,
u = o - n.width - r,
d = s - n.height - r,
p = t.x,
h = t.y;
return t.x < l ? p = l : t.x + n.width > u && (p = u), t.y < c ? h = c : t.y + n.height > d && (h = d), {
x: p,
y: h
}
}(s, _.coords, ov(n), r + i)
} : _
}
function nv(e) {
return !!e && (!!e.x || 0 === e.x) && (!!e.y || 0 === e.y)
}
function rv(e) {
return !!e && (!!e.height || 0 === e.height) && (!!e.width || 0 === e.height) && !(e.height < 0) && !(e.width < 0)
}
function iv(e, t) {
if (nv(e) && nv(t)) return Math.sqrt(Math.pow(Math.abs(e.x - t.x), 2) + Math.pow(Math.abs(e.y - t.y), 2))
}
function av(e) {
if (!e) return;
let t = e.getBoundingClientRect();
return {
x: t.left,
y: t.top
}
}
function ov(e) {
if (!e) return;
let t = e.getBoundingClientRect();
return {
width: t.width,
height: t.height
}
}
function sv(e) {
return e.isSameNode(document.body) || e.isSameNode(document.scrollingElement) || e.isSameNode(document.documentElement)
}
function lv(e, t, n, r) {
let i = (e, t) => ({
left: e.x,
right: e.x + t.width,
top: e.y,
bottom: e.y + t.height
}),
a = (e, t, n) => e > t ? n ? e : t : n ? t : e,
o = i(e, t),
s = i(n, r),
l = a(o.left, s.left, !1),
c = a(o.right, s.right, !0),
u = a(o.top, s.top, !1);
return {
coords: {
x: l,
y: u
},
dims: {
height: a(o.bottom, s.bottom, !0) - u,
width: c - l
}
}
}
function cv(e, t) {
return !(!rv(e) || !rv(t)) && e.height <= t.height && e.width <= t.width
}
function uv(e, t, n, r) {
if (!rv(e) || !rv(t)) return !1;
let i = nv(n) ? n : {
x: 0,
y: 0
},
a = nv(r) ? r : {
x: 0,
y: 0
},
o = cv(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 dv(e, t, n) {
if (t) {
let e = function(e, t) {
let n = e.querySelectorAll(Hg),
r = [];
return t && e.matches(Hg) && r.push(e), n.length > 0 && n.forEach((e => r.push(e))), r
}(t, n);
if (e.length > 0) return {
start: e[0],
end: e[e.length - 1]
}
}
return {
start: e,
end: e
}
}
function pv(e, t) {
return !e.querySelector(t)
}
function hv(e) {
return {
width: e.clientWidth,
height: e.clientHeight
}
}
function fv(e) {
return {
width: e.scrollWidth,
height: e.scrollHeight
}
}
function mv(e) {
return sv(e) ? {
x: 0,
y: 0
} : av(e)
}
function gv(e) {
let t = Yg(e),
n = mv(e);
return {
x: n.x - t.x,
y: n.y - t.y
}
}
function vv(e) {
let t = gv(e),
{
width: n,
height: r
} = fv(e);
return {
x: t.x + n,
y: t.y + r
}
}
function _v(e, t, n, r) {
if (!e || !t) return !1;
let i = n && (r ? Qg(e, n) : n) || Qg(e, av(t)),
a = ov(t),
o = Qg(e, mv(e));
return uv(a, hv(e), i, o)
}
function yv(e, t) {
let n = hv(e),
r = gv(e),
i = vv(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 bv(e) {
let {
targetInfo: t,
disableMaskInteraction: n,
padding: r,
radius: i,
tourRoot: a,
close: o,
disableCloseOnClick: s,
maskId: l
} = e, {
width: c,
height: u
} = fv(a), d = `clip-path-${l}`;
return _s.jsxs("svg", {
style: {
height: u,
width: c,
pointerEvents: n ? "auto" : "none"
},
children: [t && _s.jsx("defs", {
children: _s.jsx("clipPath", {
id: d,
children: _s.jsx("path", {
d: (e => {
if (!e) return "";
let {
dims: t,
coords: n
} = e, a = n.y - r, o = n.x - r, s = n.x + t.width + r, l = n.y + t.height + r;
return i > 0 ? `M 0, 0\n L 0, ${u}\n L ${o}, ${u}\n L ${o}, ${a+i}\n Q ${o}, ${a}, ${o+i}, ${a}\n L ${s-i}, ${a}\n Q ${s}, ${a}, ${s}, ${a+i}\n L ${s}, ${l-i}\n Q ${s}, ${l}, ${s-i}, ${l}\n L ${o+i}, ${l}\n Q ${o}, ${l}, ${o}, ${l-i}\n L ${o}, ${u}\n L ${c}, ${u}\n L ${c}, 0` : `M 0, 0\n L 0, ${u}\n L ${o}, ${u}\n L ${o}, ${a}\n L ${s}, ${a}\n L ${s}, ${l}\n L ${o}, ${l}\n L ${o}, ${u}\n L ${c}, ${u}\n L ${c}, 0`
})(t)
})
})
}), _s.jsx("rect", {
onClick: s ? void 0 : o,
x: 0,
y: 0,
width: c,
height: u,
fill: "black",
fillOpacity: .3,
pointerEvents: "auto",
clipPath: t ? `url(#${d})` : void 0
})]
})
}(ms = ps || (ps = {})).EAST = "east", ms.SOUTH = "south", ms.WEST = "west", ms.NORTH = "north", ms.CENTER = "center", ms.EASTNORTH = "east-north", ms.EASTSOUTH = "east-south", ms.SOUTHEAST = "south-east", ms.SOUTHWEST = "south-west", ms.WESTSOUTH = "west-south", ms.WESTNORTH = "west-north", ms.NORTHWEST = "north-west", ms.NORTHEAST = "north-east";
let xv = {
cursor: "pointer",
padding: "4px 16px",
textAlign: "center",
border: 0,
borderRadius: 3,
backgroundColor: "#0084ff",
color: "#fff",
fontSize: 14,
margin: 4
},
wv = {
tooltip: {
display: "flex",
flexDirection: "column",
zIndex: 9999,
fontFamily: "Roboto, sans-serif",
fontSize: 14,
backgroundColor: "white",
padding: "10px 10px 5px 10px",
borderRadius: "5px",
boxShadow: "0 3px 8px 0 rgba(0,0,0,.25)",
color: "#4d4d4d",
minWidth: 215,
maxWidth: 285
},
footer: {
display: "flex",
justifyContent: "center",
marginTop: 4
},
title: {
margin: 4,
fontSize: 24
},
description: {
margin: 4
},
primaryButton: {
...xv,
backgroundColor: "#0084ff",
color: "#ffffff"
},
secondaryButton: {
...xv,
backgroundColor: "#8400ff",
color: "#fff",
border: "solid 1px #8400ff"
},
tertiaryButton: {
...xv,
marginRight: "auto",
backgroundColor: "transparent",
color: "#025c53",
border: "solid 1px #025c53"
},
disabledButton: {
...xv,
backgroundColor: "#bebebe",
color: "#989898",
cursor: "default"
}
};
function kv(e) {
let {
next: t,
prev: n,
close: r,
stepContent: {
title: i,
description: a,
customTitleRenderer: o,
customDescriptionRenderer: s,
customFooterRenderer: l,
disableClose: c,
disableNext: u,
disablePrev: d,
nextLabel: p,
prevLabel: h,
closeLabel: f
},
stepIndex: m,
allSteps: g,
styles: v
} = {
styles: wv,
...e
}, _ = {
...v.tooltip
}, y = void 0 !== d ? d : 0 === m, b = void 0 !== u ? u : m + 1 === g.length;
return _s.jsxs("div", {
style: _,
children: [o ? o(i, e) : i && _s.jsx("div", {
style: v.title,
children: i
}), s ? s(a, e) : _s.jsx("div", {
style: v.description,
children: a
}), l ? l(e) : _s.jsxs("div", {
style: v.footer,
children: [_s.jsx("button", {
onClick: () => r(),
style: {
...v.tertiaryButton,
...c && v.disabledButton
},
disabled: c,
children: f || "close"
}), _s.jsx("button", {
onClick: n,
disabled: y,
style: {
...v.secondaryButton,
...y && v.disabledButton
},
children: h || "prev"
}), _s.jsx("button", {
onClick: () => t(),
disabled: b,
style: {
...v.primaryButton,
...b && v.disabledButton
},
children: p || "next"
})]
})]
})
}
function Ev(e, t) {
return `${e}${t?`-${t}`:""}`
}
function Sv(e) {
let {
start: t,
end: n,
beforeStart: r,
afterEnd: i,
lightningRod: a
} = e;
return e => {
9 === e.keyCode && (e.shiftKey && e.target === t ? (e.preventDefault(), r ? r.focus() : n.focus()) : e.shiftKey || e.target !== n ? e.target === a && (e.preventDefault(), t.focus()) : (e.preventDefault(), i ? i.focus() : t.focus()))
}
}
function Ov(e) {
let {
root: t,
tooltip: n,
target: r,
disableAutoScroll: i,
allowForeignTarget: a,
selector: o
} = e;
return !!t && !!n && !!r && !i && (a && o ? !pv(t, o) : function(e) {
let {
root: t,
tooltip: n,
tooltipPosition: r,
target: i
} = e;
return !_v(t, n, r) || !_v(t, i) && cv(ov(i), hv(t))
}({
...e
}))
}
let Pv = {
maskPadding: 5,
maskRadius: 0,
tooltipSeparation: 10,
transition: "top 300ms ease, left 300ms ease",
disableMaskInteraction: !1,
disableCloseOnClick: !1,
zIndex: 9999,
renderTolerance: 2,
updateInterval: 500
},
Iv = e => {
let {
steps: t,
initialStepIndex: n,
isOpen: r
} = e, i = void 0 !== r, [a, o] = (0, Pe.useState)(void 0 == r), [s, l] = (0, Pe.useState)(void 0), [c, u] = (0, Pe.useState)(void 0), [d, p] = (0, Pe.useState)(n || 0), [h, f] = (0, Pe.useState)(void 0), m = (0, Pe.useRef)([]), g = (0, Pe.useRef)(void 0), v = (0, Pe.useRef)(void 0), _ = (0, Pe.useRef)(void 0), y = (0, Pe.useRef)(void 0), b = t[d], x = i ? r : a, w = {
...Pv,
...e,
...b
}, {
selector: k,
maskPadding: E,
maskRadius: S,
disableMaskInteraction: O,
disableCloseOnClick: P,
tooltipSeparation: I,
transition: A,
orientationPreferences: C,
customTooltipRenderer: R,
zIndex: T,
rootSelector: D,
customNextFunc: N,
customPrevFunc: L,
customCloseFunc: j,
disableClose: M,
disableNext: z,
disablePrev: F,
disableAutoScroll: U,
identifier: V,
getPositionFromCandidates: G,
movingTarget: B,
renderTolerance: $,
updateInterval: q,
disableMask: W,
setUpdateListener: H,
removeUpdateListener: Y,
disableListeners: K,
disableSmoothScroll: Q,
debug: Z,
allowForeignTarget: X,
nextOnTargetClick: J,
validateNextOnTargetClick: ee,
renderMask: te
} = w;
(0, Pe.useEffect)((() => ie), []), (0, Pe.useEffect)((() => {
let e;
D && (e = document.querySelector(D)), e || (e = function e(t) {
let n = (e, t) => getComputedStyle(e, null).getPropertyValue(t);
return !t || sv(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)
}(v.current)), !1 !== x && e !== h && f(e)
}), [D, v.current, x]), (0, Pe.useEffect)((() => {
Z && console.log(`walktour debug (${V?`${V}, `:""}${d}):`, {
"options:": w,
"tour logic:": oe,
"previous state/vars:": {
isOpenState: a,
tourRoot: h,
target: s,
tooltipPosition: c,
targetPosition: _,
currentStepIndex: d,
targetSize: y
}
}), g.current && x ? (g.current.focus(), ne()) : ie()
}), [d, b, x, h, g.current]);
let ne = () => {
ie();
let e = g.current;
if (!h || !e) return l(null), u(null), _.current = null, void(y.current = null);
let t = X ? document : h,
n = () => t.querySelector(k),
r = n(),
i = Qg(h, av(r)),
a = ov(r),
o = W ? 0 : E,
s = tv({
target: r,
tooltip: e,
padding: o,
tooltipSeparation: I,
orientationPreferences: C,
root: h,
getPositionFromCandidates: G,
disableAutoScroll: U,
allowForeignTarget: X,
selector: k
});
l(r), u(s), _.current = i, y.current = a;
let c = ((e, t, n) => {
let r, i, a;
if (!e) return;
let {
start: o,
end: s
} = dv(e, e), {
start: l,
end: c
} = dv(void 0, t, !0);
t && !n && l && c && (i = l, r = c, a = Sv({
start: l,
end: c,
beforeStart: s,
afterEnd: o
}), t.addEventListener("keydown", a));
let u = Sv({
start: o,
end: s,
beforeStart: r,
afterEnd: i,
lightningRod: e
});
return e.addEventListener("keydown", u), () => {
t && t.removeEventListener("keydown", a), e.removeEventListener("keydown", u)
}
})(e, r, O);
if (m.current.push(c), Ov({
disableAutoScroll: U,
allowForeignTarget: X,
selector: k,
root: h,
target: r,
tooltip: e,
tooltipPosition: s.coords
}) && function(e, t, n) {
if (!e || !t) return;
if ("scrollBehavior" in document.documentElement.style && !n) {
let n = {
top: t.y,
left: t.x,
behavior: "smooth"
};
e.scrollTo(n)
} else e.scrollTop = t.y, e.scrollLeft = t.x
}(h, Xg(h, e, r, s.coords, i), Q), !K) {
let t = () => {
let t = n();
(function(e) {
let {
root: t,
tooltip: n
} = e;
return !!t && !!n && (function(e) {
let {
root: t,
target: n,
targetCoords: r,
targetDims: i,
rerenderTolerance: a
} = e;
if (!n && !r && !i) return !1;
if (!n && r && i || n && !r && !i) return !0;
let o = ov(n),
s = Qg(t, av(n)),
l = function(e, t) {
if (rv(e) && rv(t)) return Math.abs(e.height * e.width - t.height * t.width)
}(o, i) > a,
c = iv(s, r) > a;
return l || c
}({
...e
}) || Ov({
...e
}) || function(e) {
let {
target: t,
root: n,
tooltip: r,
tooltipPosition: i
} = e;
return !(t || !n || !r) && 0 !== iv(tv({
...e
}).coords, i)
}({
...e
}))
})({
root: h,
tooltipPosition: s.coords,
tooltip: e,
target: t,
disableAutoScroll: U,
rerenderTolerance: $,
targetCoords: _.current,
targetDims: y.current,
allowForeignTarget: X,
selector: k,
getPositionFromCandidates: G,
orientationPreferences: C,
padding: o,
tooltipSeparation: I
}) && ne()
},
i = function(e) {
let {
update: t,
customSetListener: n,
customRemoveListener: r,
event: i
} = {
event: "resize",
...e
};
return n && r ? (n(t), () => r(t)) : (window.addEventListener(i, t), () => window.removeEventListener(i, t))
}({
update: function(e, t = 300) {
let n;
return (...r) => {
n && window.clearTimeout(n), n = window.setTimeout((() => e(...r)), t)
}
}(t),
customSetListener: H,
customRemoveListener: Y
});
if (m.current.push(i), B && (r || k)) {
let e = function(e, t) {
let n = window.setInterval(e, t);
return () => window.clearInterval(n)
}(t, q);
m.current.push(e)
}
if (J && r) {
let e = ((e, t, n) => {
if (!e) return;
let r = () => {
(async (e, t) => {
t ? await t() && e() : e()
})((() => {
t(!0), e.removeEventListener("click", r)
}), n)
};
return e.addEventListener("click", r), () => e.removeEventListener("click", r)
})(r, oe.next, ee);
m.current.push(e)
}
}
},
re = e => {
e >= t.length || e < 0 || p(e)
},
ie = () => {
m.current.forEach((e => e())), m.current = []
},
ae = {
next: () => re(d + 1),
prev: () => re(d - 1),
close: e => (e => {
e && re(0), i || o(!1), ie(), s && s.focus()
})(e),
goToStep: re,
stepContent: {
...w
},
stepIndex: d,
allSteps: t,
tooltipPosition: c
},
oe = {
...ae,
...N && {
next: e => N(ae, e)
},
...L && {
prev: () => L(ae)
},
...j && {
close: () => j(ae)
}
},
se = e => {
switch (e.key) {
case "Escape":
e.preventDefault(), M || oe.close();
break;
case "ArrowRight":
e.preventDefault(), z || oe.next();
break;
case "ArrowLeft":
e.preventDefault(), F || oe.prev()
}
};
if (!x || !b) return null;
let le = {
position: "absolute",
top: 0,
left: 0,
zIndex: T,
visibility: c ? "visible" : "hidden",
pointerEvents: "none"
},
ce = {
position: "absolute",
top: c?.coords?.y,
left: c?.coords?.x,
transition: A,
pointerEvents: "auto"
},
ue = te || bv,
de = () => _s.jsx("div", {
ref: e => v.current = e,
id: Ev("walktour-portal", V),
style: le,
children: h && _s.jsxs(_s.Fragment, {
children: [!W && _s.jsx(ue, {
maskId: Ev("walktour-mask", V),
targetInfo: function(e, t) {
if (!e || !t) return;
let n = ov(t);
return {
coords: Qg(e, av(t)),
dims: n
}
}(h, s),
disableMaskInteraction: O,
disableCloseOnClick: P,
padding: E,
radius: S,
tourRoot: h,
close: oe.close
}), _s.jsx("div", {
ref: e => g.current = e,
id: Ev("walktour-tooltip-container", V),
style: ce,
onKeyDown: se,
tabIndex: 0,
children: R ? R(oe) : _s.jsx(kv, {
...oe
})
})]
})
});
return h ? (0, zi.createPortal)(de(), sv(h) ? document.body : h) : de()
},
Av = (e, t) => (t ? {
bottom: ps.SOUTH,
"bottom-end": ps.SOUTHWEST,
"bottom-start": ps.SOUTHEAST,
left: ps.EAST,
"left-end": ps.EASTSOUTH,
"left-start": ps.EASTNORTH,
right: ps.WEST,
"right-end": ps.WESTSOUTH,
"right-start": ps.WESTNORTH,
top: ps.NORTH,
"top-end": ps.NORTHWEST,
"top-start": ps.NORTHEAST
} : {
bottom: ps.SOUTH,
"bottom-end": ps.SOUTHEAST,
"bottom-start": ps.SOUTHWEST,
left: ps.WEST,
"left-end": ps.WESTSOUTH,
"left-start": ps.WESTNORTH,
right: ps.EAST,
"right-end": ps.EASTSOUTH,
"right-start": ps.EASTNORTH,
top: ps.NORTH,
"top-end": ps.NORTHEAST,
"top-start": ps.NORTHWEST
})[e],
Cv = (e, t) => e.map((({
selector: e,
title: n,
description: r,
placement: i = "bottom-start",
padding: a = 4
}) => ({
selector: e ?? "sol-tutorial-fullscreen",
title: n,
description: r,
maskPadding: a,
orientationPreferences: [Av(i, t)]
}))),
Rv = ({
children: e,
counterSeparator: t = " of ",
doneLabel: n = "Done",
nextLabel: r = "Next",
onOpenChange: i,
open: a = !1,
skipLabel: o = "Skip",
steps: s
}) => {
let {
direction: l = "ltr"
} = sl(), [c, u] = qs({
value: a,
onChange: i
}), d = {
counterSeparator: t,
doneLabel: n,
nextLabel: r,
skipLabel: o
};
return _s.jsxs(_s.Fragment, {
children: [_s.jsx(Iv, {
customTooltipRenderer: e => _s.jsx(Wg, {
...d,
...e
}),
disableMaskInteraction: !0,
disableCloseOnClick: !0,
maskRadius: 4,
renderMask: e => _s.jsx(qg, {
...e
}),
isOpen: c,
customCloseFunc: ({
close: e
}) => {
e(!0), u(!1), i?.(!1)
},
tooltipSeparation: 4,
steps: Cv(s, "rtl" === l)
}), e]
})
},
Tv = Vs((({
buttonRef: e,
className: t,
disabled: n,
label: r = "Volume",
muteLabel: i = "Mute",
onChange: a,
sliderRef: o,
unmuteLabel: s = "Unmute",
value: l = 0,
...c
}, u) => {
let d = (0, Pe.useId)(),
[p, h] = qs({
value: l,
onChange: a
}),
[f, m] = (0, Pe.useState)(0),
g = (0, Pe.useCallback)((e => h(e)), [h]),
v = (0, Pe.useCallback)((() => {
0 !== p ? (m(p), h(0)) : h(0 === f ? 50 : f)
}), [f, h, p]),
_ = (0, Pe.useMemo)((() => {
switch (!0) {
case p >= 50:
return zs;
case p >= 25:
return Ms;
case p >= 1:
return js;
default:
return As
}
}), [p]),
y = Us("sol-c-volume-slider", t);
return _s.jsxs(Ll, {
align: "center",
className: y,
gap: "025",
ref: u,
...c,
children: [_s.jsx(Ol, {
"aria-controls": d,
"aria-label": 0 === p ? s : i,
className: "sol-c-volume-slider__button",
disabled: n,
onClick: v,
ref: e,
size: "small",
icon: _,
variant: "plain"
}), _s.jsx(Vg, {
id: d,
"aria-label": r,
"aria-valuetext": `${p}%`,
className: "sol-c-volume-slider__slider",
disabled: n,
min: 0,
max: 100,
onValueChange: g,
ref: o,
showProgress: !0,
value: p,
style: {
"--sol-c-slider-size": "var(--sol-size-500)"
}
})]
})
}));
const Dv = "ErrMultiStepRequired",
Nv = "ErrMultiStepWrongCode",
Lv = "ErrConnectivity",
jv = "ErrNotAuthenticated",
Mv = "ErrClaimsInvalid",
zv = "ErrUnknown",
Fv = "ErrMaxThrottleLogin",
Uv = "errAuthExpired",
Vv = "ErrCaptchaRequiredLauncher",
Gv = "ErrInvalidChallengeCode",
Bv = "ErrDeprecatedApi",
$v = "ErrAgreementsRequired",
qv = "ErrExpiredToken",
Wv = "ErrNoGamePackage",
Hv = "ErrWrongPassword_email",
Yv = "ServerDeniedRequest",
Kv = "ErrTooManyRequests",
Qv = "ErrServiceUnavailable",
Zv = "ErrInternalServerError",
Xv = "ErrValidationFailed",
Jv = "ErrAccountNotFound";
class e_ extends Error {
constructor(e = "Unknown Error", t = zv, n = null) {
super(e), this.code = void 0, this.payload = void 0, Object.setPrototypeOf(this, e_.prototype), this.code = t, this.payload = n, window.launcherAPI.log.error("Internal error:", t, n)
}
}
class t_ extends e_ {
constructor(e, t) {
super(e, Dv, t), Object.setPrototypeOf(this, t_.prototype)
}
}
class n_ extends e_ {
constructor(e, t = null) {
super(e, Nv, t), Object.setPrototypeOf(this, n_.prototype)
}
}
class r_ extends e_ {
constructor(e, t = null) {
super(e, Uv, t), Object.setPrototypeOf(this, r_.prototype)
}
}
class i_ extends e_ {
constructor(e, t = null) {
super(e, Mv, t), Object.setPrototypeOf(this, i_.prototype)
}
}
class a_ extends e_ {
constructor(e, t = null) {
super(e, jv, t), Object.setPrototypeOf(this, a_.prototype)
}
}
class o_ extends e_ {
constructor(e, t = null) {
super(e, Fv, t), Object.setPrototypeOf(this, o_.prototype)
}
}
class s_ extends e_ {
constructor(e, t) {
super(e, Vv, t), Object.setPrototypeOf(this, s_.prototype)
}
}
class l_ extends e_ {
constructor(e, t = null) {
super(e, Gv, t), Object.setPrototypeOf(this, l_.prototype)
}
}
class c_ extends e_ {
constructor(e, t = null) {
super(e, $v, t), Object.setPrototypeOf(this, c_.prototype)
}
}
class u_ extends e_ {
constructor(e, t = null) {
super(e, qv, t), Object.setPrototypeOf(this, u_.prototype)
}
}
class d_ extends e_ {
constructor(e, t = null) {
super(e, Wv, t), Object.setPrototypeOf(this, d_.prototype)
}
}
class p_ extends e_ {
constructor(e, t = null) {
super(e, Hv, t), Object.setPrototypeOf(this, p_.prototype)
}
}
class h_ extends e_ {
constructor(e, t = null) {
super(e, Xv, t), Object.setPrototypeOf(this, h_.prototype)
}
}
class f_ extends e_ {
constructor(e, t = null) {
super(e, Jv, t), Object.setPrototypeOf(this, f_.prototype)
}
}
class m_ extends e_ {
constructor(e, t = null) {
super(e, Yv, t), Object.setPrototypeOf(this, m_.prototype)
}
}
class g_ extends e_ {
constructor(e, t = null) {
super(e, Kv, t), Object.setPrototypeOf(this, g_.prototype)
}
}
class v_ extends e_ {
constructor(e, t = null) {
super(e, Qv, t), Object.setPrototypeOf(this, v_.prototype)
}
}
class __ extends e_ {
constructor(e, t = null) {
super(e, Zv, t), Object.setPrototypeOf(this, __.prototype)
}
}
class y_ extends e_ {
constructor(e, t = null) {
super(e, Lv, t), Object.setPrototypeOf(this, y_.prototype)
}
}
class b_ extends e_ {
constructor(e, t = null) {
super(e, Qv, t), Object.setPrototypeOf(this, b_.prototype)
}
}
const x_ = e => {
switch (e.code) {
case jv:
return new a_(kt.t("error_not_authenticated", {
ns: "errors"
}), e.data);
case Fv:
return new o_(kt.t("error_max_login_attempt", {
ns: "errors"
}), e.data);
case Mv:
return new i_(kt.t("error_invalid_claims", {
ns: "errors"
}), e.data);
case Dv:
return new t_(kt.t("error_authentication_mfa", {
ns: "errors"
}), e.data);
case Nv:
return new n_(kt.t("error_wrong_mfa_code", {
ns: "errors"
}), e.data);
case Vv:
return new s_(kt.t("error_captcha_required", {
ns: "errors"
}), e.data);
case Gv:
return new l_(kt.t("error_captcha_invalid", {
ns: "errors"
}), e.data);
case Uv:
return new r_(kt.t("error_session_expired", {
ns: "errors"
}), e.data);
case $v:
return new c_(e.msg, e.data);
case qv:
return new u_(e.msg, e.data);
case Wv:
return new d_(e.msg, e.data);
case Hv:
return new p_(kt.t("error_wrong_credentials", {
ns: "errors"
}), e.data);
case Xv:
return new h_(kt.t("error_api_validation_failed", {
ns: "errors"
}), e.data);
case Jv:
return new f_(kt.t("error_api_validation_failed", {
ns: "errors"
}), e.data);
default:
return new e_(e.msg, e.code, e.data)
}
};
class w_ {
constructor(e) {
this.baseUrl = void 0, this.baseUrl = e
}
isMediaResponse(e) {
return "image/png" === e.headers.get("content-type")
}
async handleResponse(e) {
if (429 === e.status) throw new g_(kt.t("error_api_too_many_requests_content", {
ns: "errors"
}));
if (503 === e.status) throw new v_(kt.t("error_api_unavailable", {
ns: "errors"
}));
if (e.status >= 500 && e.status < 600) throw new __(kt.t("error_api_internal_server_error", {
ns: "errors"
}));
if (403 === e.status || 401 === e.status) throw new m_(kt.t("error_api_denied_request_content", {
ns: "errors"
}));
if (!e.ok) throw new Error(`Request failed with status: ${e.status}`);
return this.isMediaResponse(e) ? e : await e.json()
}
async handleRequest(e, t, n, r, i) {
const a = this.baseUrl + "://" + e,
o = new Headers;
o.set("Content-Type", "application/json"), r && r.forEach((e => {
o.set(e.key, e.value)
}));
const s = {
method: t,
mode: "cors",
headers: o,
...i
};
let l;
"GET" !== t && (s.body = JSON.stringify(n));
try {
l = await fetch(a, s)
} catch (c) {
throw new y_("Could not connect to server", c)
}
return this.handleResponse(l)
}
async get(e) {
return this.handleRequest(e, "GET", void 0, void 0, void 0)
}
async post(e, t, n, r) {
return this.handleRequest(e, "POST", t, n, r)
}
}
const k_ = e => ({
...e,
media: void 0
}),
E_ = e => ({
...e,
publish_start: void 0,
time_created: void 0
}),
S_ = (e, t) => {
const n = new Date(e.publish_start || 0).getTime();
return new Date(t.publish_start || 0).getTime() - n
},
O_ = (e, t) => (e.weight || 0) - (t.weight || 0),
P_ = (e, t) => e.weight - t.weight,
I_ = e => ({
...e,
publish_start: e.publish_start ? e.publish_start + " UTC" : void 0,
time_created: e.time_created ? e.time_created + " UTC" : void 0
}),
A_ = (e, t = "div") => (0, Pe.createElement)(t, {
dangerouslySetInnerHTML: {
__html: e
}
}),
C_ = {
year: 31536e6,
month: 2628e6,
day: 864e5,
hour: 36e5,
minute: 6e4,
second: 1e3
},
R_ = (e, t = "short", {
showTime: n = !0,
...r
} = {}) => {
const i = new Date(e);
switch (t) {
case "short":
case "long":
return new Intl.DateTimeFormat("default", {
dateStyle: t,
...r,
...n && {
timeStyle: "short"
}
}).format(i);
case "relative":
return ((e, t = new Date, n = {}) => {
const r = e.getTime() - t.getTime();
for (const [i, a] of Object.entries(C_))
if (Math.abs(r) > a || "second" === i) return new Intl.RelativeTimeFormat("default", {
numeric: "auto",
localeMatcher: "lookup",
...n
}).format(Math.round(r / a), i)
})(i, new Date, r)
}
},
T_ = e => {
if ("string" === typeof e || "number" === typeof e) return e.toString();
if (!(0, Pe.isValidElement)(e)) return "";
if ("function" === typeof e.type && e.type.prototype instanceof Pe.Component) {
const t = new e.type(e.props).render();
return T_(t)
}
if ("function" === typeof e.type) {
const t = e.type(e.props);
return T_(t)
}
const {
children: t
} = e.props;
return Array.isArray(t) ? t.map((e => T_(e))).join("") : T_(t)
},
D_ = () => window.launcherAPI,
N_ = (e, t) => {
var n;
return null !== (n = t.find((({
id: t
}) => t === e))) && void 0 !== n ? n : null
},
L_ = e => {
let t = e;
return t.includes("\\\\") && (t = t.replace("\\\\", "\\")), t.endsWith("\\") || (t = `${t}\\`), t
},
j_ = e => "expires" in e && e.expires && e.expires <= Date.now(),
M_ = 2e3;
var z_ = n(2222);
const F_ = {
[z_.RSISystemStatus.MAJOR]: "negative",
[z_.RSISystemStatus.PARTIAL]: "negative",
[z_.RSISystemStatus.DEGRADED]: "notice",
[z_.RSISystemStatus.MAINTENANCE]: "neutral",
[z_.RSISystemStatus.OPERATIONAL]: "positive"
},
U_ = e => F_[e],
V_ = window.envVars.reviewAppRootUrl,
G_ = e => {
var t;
const n = z_.configuration.env,
r = Pk.getState().application.platformMaster;
return ("reviewapp" === r ? V_ : null !== (t = n[r].rootUrl) && void 0 !== t ? t : z_.configuration.rootUrl) + e
};
class B_ {
constructor(e) {
this.success = void 0, this.message = void 0, this.success = e.success, this.message = e.message || null
}
static success() {
return new B_({
success: !0
})
}
static fail(e) {
return new B_({
success: !1,
message: e
})
}
}
class $_ extends Error {
constructor(e, t) {
super(e), this.result = void 0, Object.defineProperty(this, "name", {
value: "AuthorizationError",
writable: !0
}), Error.captureStackTrace(this, $_), this.result = t
}
}
var q_ = e => "checkbox" === e.type,
W_ = e => e instanceof Date,
H_ = e => null == e;
const Y_ = e => "object" === typeof e;
var K_ = e => !H_(e) && !Array.isArray(e) && Y_(e) && !W_(e),
Q_ = e => K_(e) && e.target ? q_(e.target) ? e.target.checked : e.target.value : e,
Z_ = (e, t) => e.has((e => e.substring(0, e.search(/\.\d+(\.|$)/)) || e)(t)),
X_ = e => Array.isArray(e) ? e.filter(Boolean) : [],
J_ = e => void 0 === e,
ey = (e, t, n) => {
if (!t || !K_(e)) return n;
const r = X_(t.split(/[,[\].]+?/)).reduce(((e, t) => H_(e) ? e : e[t]), e);
return J_(r) || r === e ? J_(e[t]) ? n : e[t] : r
};
const ty = "blur",
ny = "focusout",
ry = "change",
iy = "onBlur",
ay = "onChange",
oy = "onSubmit",
sy = "onTouched",
ly = "all",
cy = "max",
uy = "min",
dy = "maxLength",
py = "minLength",
hy = "pattern",
fy = "required",
my = "validate",
gy = Pe.createContext(null),
vy = () => Pe.useContext(gy);
var _y = (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] !== ly && (t._proxyFormState[i] = !r || ly), n && (n[i] = !0), e[i]
}
});
return i
},
yy = e => K_(e) && !Object.keys(e).length,
by = (e, t, n, r) => {
n(e);
const {
name: i,
...a
} = e;
return yy(a) || Object.keys(a).length >= Object.keys(t).length || Object.keys(a).find((e => t[e] === (!r || ly)))
},
xy = e => Array.isArray(e) ? e : [e],
wy = (e, t, n) => n && t ? e === t : !e || !t || e === t || xy(e).some((e => e && (e.startsWith(t) || t.startsWith(e))));
function ky(e) {
const t = Pe.useRef(e);
t.current = e, Pe.useEffect((() => {
const n = !e.disabled && t.current.subject.subscribe({
next: t.current.next
});
return () => {
n && n.unsubscribe()
}
}), [e.disabled])
}
var Ey = e => "string" === typeof e,
Sy = (e, t, n, r, i) => Ey(e) ? (r && t.watch.add(e), ey(n, e, i)) : Array.isArray(e) ? e.map((e => (r && t.watch.add(e), ey(n, e)))) : (r && (t.watchAll = !0), n),
Oy = "undefined" !== typeof window && "undefined" !== typeof window.HTMLElement && "undefined" !== typeof document;
function Py(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 (Oy && (e instanceof Blob || e instanceof FileList) || !n && !K_(e)) return e;
if (t = n ? [] : {}, Array.isArray(e) || (e => {
const t = e.constructor && e.constructor.prototype;
return K_(t) && t.hasOwnProperty("isPrototypeOf")
})(e))
for (const n in e) t[n] = Py(e[n]);
else t = e
}
return t
}
function Iy(e) {
const t = vy(),
{
name: n,
control: r = t.control,
shouldUnregister: i
} = e,
a = Z_(r._names.array, n),
o = function(e) {
const t = vy(),
{
control: n = t.control,
name: r,
defaultValue: i,
disabled: a,
exact: o
} = e || {},
s = Pe.useRef(r);
s.current = r, ky({
disabled: a,
subject: n._subjects.watch,
next: e => {
wy(s.current, e.name, o) && c(Py(Sy(s.current, n._names, e.values || n._formValues, !1, i)))
}
});
const [l, c] = Pe.useState(n._getWatch(r, i));
return Pe.useEffect((() => n._removeUnmounted())), l
}({
control: r,
name: n,
defaultValue: ey(r._formValues, n, ey(r._defaultValues, n, e.defaultValue)),
exact: !0
}),
s = function(e) {
const t = vy(),
{
control: n = t.control,
disabled: r,
name: i,
exact: a
} = e || {},
[o, s] = Pe.useState(n._formState),
l = Pe.useRef(!0),
c = Pe.useRef({
isDirty: !1,
isLoading: !1,
dirtyFields: !1,
touchedFields: !1,
isValidating: !1,
isValid: !1,
errors: !1
}),
u = Pe.useRef(i);
return u.current = i, ky({
disabled: r,
next: e => l.current && wy(u.current, e.name, a) && by(e, c.current, n._updateFormState) && s({
...n._formState,
...e
}),
subject: n._subjects.state
}), Pe.useEffect((() => {
l.current = !0;
const e = n._proxyFormState.isDirty && n._getDirty();
return e !== n._formState.isDirty && n._subjects.state.next({
isDirty: e
}), c.current.isValid && n._updateValid(!0), () => {
l.current = !1
}
}), [n]), _y(o, n, c.current, !1)
}({
control: r,
name: n
}),
l = Pe.useRef(r.register(n, {
...e.rules,
value: o
}));
return Pe.useEffect((() => {
const e = (e, t) => {
const n = ey(r._fields, e);
n && (n._f.mount = t)
};
return e(n, !0), () => {
const t = r._options.shouldUnregister || i;
(a ? t && !r._stateFlags.action : t) ? r.unregister(n): e(n, !1)
}
}), [n, r, a, i]), {
field: {
name: n,
value: o,
onChange: Pe.useCallback((e => l.current.onChange({
target: {
value: Q_(e),
name: n
},
type: ry
})), [n]),
onBlur: Pe.useCallback((() => l.current.onBlur({
target: {
value: ey(r._formValues, n),
name: n
},
type: ty
})), [n, r]),
ref: e => {
const t = ey(r._fields, n);
t && e && (t._f.ref = {
focus: () => e.focus(),
select: () => e.select(),
setCustomValidity: t => e.setCustomValidity(t),
reportValidity: () => e.reportValidity()
})
}
},
formState: s,
fieldState: Object.defineProperties({}, {
invalid: {
enumerable: !0,
get: () => !!ey(s.errors, n)
},
isDirty: {
enumerable: !0,
get: () => !!ey(s.dirtyFields, n)
},
isTouched: {
enumerable: !0,
get: () => !!ey(s.touchedFields, n)
},
error: {
enumerable: !0,
get: () => ey(s.errors, n)
}
})
}
}
var Ay = (e, t, n, r, i) => t ? {
...n[e],
types: {
...n[e] && n[e].types ? n[e].types : {},
[r]: i || !0
}
} : {},
Cy = e => /^\w*$/.test(e),
Ry = e => X_(e.replace(/["|']|\]/g, "").split(/\.|\[/));
function Ty(e, t, n) {
let r = -1;
const i = Cy(t) ? [t] : Ry(t),
a = i.length,
o = a - 1;
for (; ++r < a;) {
const t = i[r];
let a = n;
if (r !== o) {
const n = e[t];
a = K_(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : []
}
e[t] = a, e = e[t]
}
return e
}
const Dy = (e, t, n) => {
for (const r of n || Object.keys(e)) {
const n = ey(e, r);
if (n) {
const {
_f: e,
...r
} = n;
if (e && t(e.name)) {
if (e.ref.focus) {
e.ref.focus();
break
}
if (e.refs && e.refs[0].focus) {
e.refs[0].focus();
break
}
} else K_(r) && Dy(r, t)
}
}
};
var Ny = e => ({
isOnSubmit: !e || e === oy,
isOnBlur: e === iy,
isOnChange: e === ay,
isOnAll: e === ly,
isOnTouch: e === sy
}),
Ly = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((t => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length))))),
jy = (e, t, n) => {
const r = X_(ey(e, n));
return Ty(r, "root", t[n]), Ty(e, n, r), e
},
My = e => "boolean" === typeof e,
zy = e => "file" === e.type,
Fy = e => "function" === typeof e,
Uy = e => {
if (!Oy) return !1;
const t = e ? e.ownerDocument : 0;
return e instanceof(t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement)
},
Vy = e => Ey(e) || Pe.isValidElement(e),
Gy = e => "radio" === e.type,
By = e => e instanceof RegExp;
const $y = {
value: !1,
isValid: !1
},
qy = {
value: !0,
isValid: !0
};
var Wy = e => {
if (Array.isArray(e)) {
if (e.length > 1) {
const t = e.filter((e => e && e.checked && !e.disabled)).map((e => e.value));
return {
value: t,
isValid: !!t.length
}
}
return e[0].checked && !e[0].disabled ? e[0].attributes && !J_(e[0].attributes.value) ? J_(e[0].value) || "" === e[0].value ? qy : {
value: e[0].value,
isValid: !0
} : qy : $y
}
return $y
};
const Hy = {
isValid: !1,
value: null
};
var Yy = e => Array.isArray(e) ? e.reduce(((e, t) => t && t.checked && !t.disabled ? {
isValid: !0,
value: t.value
} : e), Hy) : Hy;
function Ky(e, t, n = "validate") {
if (Vy(e) || Array.isArray(e) && e.every(Vy) || My(e) && !e) return {
type: n,
message: Vy(e) ? e : "",
ref: t
}
}
var Qy = e => K_(e) && !By(e) ? e : {
value: e,
message: ""
},
Zy = async (e, t, n, r, i) => {
const {
ref: a,
refs: o,
required: s,
maxLength: l,
minLength: c,
min: u,
max: d,
pattern: p,
validate: h,
name: f,
valueAsNumber: m,
mount: g,
disabled: v
} = e._f, _ = ey(t, f);
if (!g || v) return {};
const y = o ? o[0] : a,
b = e => {
r && y.reportValidity && (y.setCustomValidity(My(e) ? "" : e || ""), y.reportValidity())
},
x = {},
w = Gy(a),
k = q_(a),
E = w || k,
S = (m || zy(a)) && J_(a.value) && J_(_) || Uy(a) && "" === a.value || "" === _ || Array.isArray(_) && !_.length,
O = Ay.bind(null, f, n, x),
P = (e, t, n, r = dy, i = py) => {
const o = e ? t : n;
x[f] = {
type: e ? r : i,
message: o,
ref: a,
...O(e ? r : i, o)
}
};
if (i ? !Array.isArray(_) || !_.length : s && (!E && (S || H_(_)) || My(_) && !_ || k && !Wy(o).isValid || w && !Yy(o).isValid)) {
const {
value: e,
message: t
} = Vy(s) ? {
value: !!s,
message: s
} : Qy(s);
if (e && (x[f] = {
type: fy,
message: t,
ref: y,
...O(fy, t)
}, !n)) return b(t), x
}
if (!S && (!H_(u) || !H_(d))) {
let e, t;
const r = Qy(d),
i = Qy(u);
if (H_(_) || isNaN(_)) {
const n = a.valueAsDate || new Date(_),
o = e => new Date((new Date).toDateString() + " " + e),
s = "time" == a.type,
l = "week" == a.type;
Ey(r.value) && _ && (e = s ? o(_) > o(r.value) : l ? _ > r.value : n > new Date(r.value)), Ey(i.value) && _ && (t = s ? o(_) < o(i.value) : l ? _ < i.value : n < new Date(i.value))
} else {
const n = a.valueAsNumber || (_ ? +_ : _);
H_(r.value) || (e = n > r.value), H_(i.value) || (t = n < i.value)
}
if ((e || t) && (P(!!e, r.message, i.message, cy, uy), !n)) return b(x[f].message), x
}
if ((l || c) && !S && (Ey(_) || i && Array.isArray(_))) {
const e = Qy(l),
t = Qy(c),
r = !H_(e.value) && _.length > e.value,
i = !H_(t.value) && _.length < t.value;
if ((r || i) && (P(r, e.message, t.message), !n)) return b(x[f].message), x
}
if (p && !S && Ey(_)) {
const {
value: e,
message: t
} = Qy(p);
if (By(e) && !_.match(e) && (x[f] = {
type: hy,
message: t,
ref: a,
...O(hy, t)
}, !n)) return b(t), x
}
if (h)
if (Fy(h)) {
const e = Ky(await h(_, t), y);
if (e && (x[f] = {
...e,
...O(my, e.message)
}, !n)) return b(e.message), x
} else if (K_(h)) {
let e = {};
for (const r in h) {
if (!yy(e) && !n) break;
const i = Ky(await h[r](_, t), y, r);
i && (e = {
...i,
...O(r, i.message)
}, b(i.message), n && (x[f] = e))
}
if (!yy(e) && (x[f] = {
ref: y,
...e
}, !n)) return x
}
return b(!0), x
};
function Xy(e, t) {
const n = Array.isArray(t) ? t : Cy(t) ? [t] : Ry(t),
r = 1 === n.length ? e : function(e, t) {
const n = t.slice(0, -1).length;
let r = 0;
for (; r < n;) e = J_(e) ? r++ : e[t[r++]];
return e
}(e, n),
i = n.length - 1,
a = n[i];
return r && delete r[a], 0 !== i && (K_(r) && yy(r) || Array.isArray(r) && function(e) {
for (const t in e)
if (!J_(e[t])) return !1;
return !0
}(r)) && Xy(e, n.slice(0, -1)), e
}
function Jy() {
let e = [];
return {
get observers() {
return e
},
next: t => {
for (const n of e) n.next(t)
},
subscribe: t => (e.push(t), {
unsubscribe: () => {
e = e.filter((e => e !== t))
}
}),
unsubscribe: () => {
e = []
}
}
}
var eb = e => H_(e) || !Y_(e);
function tb(e, t) {
if (eb(e) || eb(t)) return e === t;
if (W_(e) && W_(t)) return e.getTime() === t.getTime();
const n = Object.keys(e),
r = Object.keys(t);
if (n.length !== r.length) return !1;
for (const i of n) {
const n = e[i];
if (!r.includes(i)) return !1;
if ("ref" !== i) {
const e = t[i];
if (W_(n) && W_(e) || K_(n) && K_(e) || Array.isArray(n) && Array.isArray(e) ? !tb(n, e) : n !== e) return !1
}
}
return !0
}
var nb = e => "select-multiple" === e.type,
rb = e => Uy(e) && e.isConnected,
ib = e => {
for (const t in e)
if (Fy(e[t])) return !0;
return !1
};
function ab(e, t = {}) {
const n = Array.isArray(e);
if (K_(e) || n)
for (const r in e) Array.isArray(e[r]) || K_(e[r]) && !ib(e[r]) ? (t[r] = Array.isArray(e[r]) ? [] : {}, ab(e[r], t[r])) : H_(e[r]) || (t[r] = !0);
return t
}
function ob(e, t, n) {
const r = Array.isArray(e);
if (K_(e) || r)
for (const i in e) Array.isArray(e[i]) || K_(e[i]) && !ib(e[i]) ? J_(t) || eb(n[i]) ? n[i] = Array.isArray(e[i]) ? ab(e[i], []) : {
...ab(e[i])
} : ob(e[i], H_(t) ? {} : t[i], n[i]) : tb(e[i], t[i]) ? delete n[i] : n[i] = !0;
return n
}
var sb = (e, t) => ob(e, t, ab(t)),
lb = (e, {
valueAsNumber: t,
valueAsDate: n,
setValueAs: r
}) => J_(e) ? e : t ? "" === e ? NaN : e ? +e : e : n && Ey(e) ? new Date(e) : r ? r(e) : e;
function cb(e) {
const t = e.ref;
if (!(e.refs ? e.refs.every((e => e.disabled)) : t.disabled)) return zy(t) ? t.files : Gy(t) ? Yy(e.refs).value : nb(t) ? [...t.selectedOptions].map((({
value: e
}) => e)) : q_(t) ? Wy(e.refs).value : lb(J_(t.value) ? e.ref.value : t.value, e)
}
var ub = e => J_(e) ? e : By(e) ? e.source : K_(e) ? By(e.value) ? e.value.source : e.value : e;
function db(e, t, n) {
const r = ey(e, n);
if (r || Cy(n)) return {
error: r,
name: n
};
const i = n.split(".");
for (; i.length;) {
const r = i.join("."),
a = ey(t, r),
o = ey(e, r);
if (a && !Array.isArray(a) && n !== r) return {
name: n
};
if (o && o.type) return {
name: r,
error: o
};
i.pop()
}
return {
name: n
}
}
const pb = {
mode: oy,
reValidateMode: ay,
shouldFocusError: !0
};
function hb(e = {}, t) {
let n = {
...pb,
...e
};
const r = e.resetOptions && e.resetOptions.keepDirtyValues;
let i, a = {
submitCount: 0,
isDirty: !1,
isLoading: !0,
isValidating: !1,
isSubmitted: !1,
isSubmitting: !1,
isSubmitSuccessful: !1,
isValid: !1,
touchedFields: {},
dirtyFields: {},
errors: {}
},
o = {},
s = K_(n.defaultValues) && Py(n.defaultValues) || {},
l = n.shouldUnregister ? {} : Py(s),
c = {
action: !1,
mount: !1,
watch: !1
},
u = {
mount: new Set,
unMount: new Set,
array: new Set,
watch: new Set
},
d = 0;
const p = {
isDirty: !1,
dirtyFields: !1,
touchedFields: !1,
isValidating: !1,
isValid: !1,
errors: !1
},
h = {
watch: Jy(),
array: Jy(),
state: Jy()
},
f = Ny(n.mode),
m = Ny(n.reValidateMode),
g = n.criteriaMode === ly,
v = async e => {
if (p.isValid || e) {
const e = n.resolver ? yy((await w()).errors) : await k(o, !0);
e !== a.isValid && (a.isValid = e, h.state.next({
isValid: e
}))
}
}, _ = e => p.isValidating && h.state.next({
isValidating: e
}), y = (e, t, n, r) => {
const i = ey(o, e);
if (i) {
const a = ey(l, e, J_(n) ? ey(s, e) : n);
J_(a) || r && r.defaultChecked || t ? Ty(l, e, t ? a : cb(i._f)) : O(e, a), c.mount && v()
}
}, b = (e, t, n, r, i) => {
let o = !1,
l = !1;
const c = {
name: e
};
if (!n || r) {
p.isDirty && (l = a.isDirty, a.isDirty = c.isDirty = E(), o = l !== c.isDirty);
const n = tb(ey(s, e), t);
l = ey(a.dirtyFields, e), n ? Xy(a.dirtyFields, e) : Ty(a.dirtyFields, e, !0), c.dirtyFields = a.dirtyFields, o = o || p.dirtyFields && l !== !n
}
if (n) {
const t = ey(a.touchedFields, e);
t || (Ty(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 = ey(a.errors, t),
l = p.isValid && My(n) && a.isValid !== n;
var c;
if (e.delayError && r ? (c = () => ((e, t) => {
Ty(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 ? Ty(a.errors, t, r) : Xy(a.errors, t)), (r ? !tb(s, r) : s) || !yy(o) || l) {
const e = {
...o,
...l && My(n) ? {
isValid: n
} : {},
errors: a.errors,
name: t
};
a = {
...a,
...e
}, h.state.next(e)
}
_(!1)
}, w = async e => await n.resolver(l, n.context, ((e, t, n, r) => {
const i = {};
for (const a of e) {
const e = ey(t, a);
e && Ty(i, a, e._f)
}
return {
criteriaMode: n,
names: [...e],
fields: i,
shouldUseNativeValidation: r
}
})(e || u.mount, o, n.criteriaMode, n.shouldUseNativeValidation)), k = async (e, t, r = {
valid: !0
}) => {
for (const i in e) {
const o = e[i];
if (o) {
const {
_f: e,
...i
} = o;
if (e) {
const i = u.array.has(e.name),
s = await Zy(o, l, g, n.shouldUseNativeValidation, i);
if (s[e.name] && (r.valid = !1, t)) break;
!t && (ey(s, e.name) ? i ? jy(a.errors, s, e.name) : Ty(a.errors, e.name, s[e.name]) : Xy(a.errors, e.name))
}
i && await k(i, t, r)
}
}
return r.valid
}, E = (e, t) => (e && t && Ty(l, e, t), !tb(R(), s)), S = (e, t, n) => Sy(e, u, {
...c.mount ? l : J_(t) ? s : Ey(e) ? {
[e]: t
} : t
}, n, t), O = (e, t, n = {}) => {
const r = ey(o, e);
let i = t;
if (r) {
const n = r._f;
n && (!n.disabled && Ty(l, e, lb(t, n)), i = Uy(n.ref) && H_(t) ? "" : t, nb(n.ref) ? [...n.ref.options].forEach((e => e.selected = i.includes(e.value))) : n.refs ? q_(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)) : zy(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 && C(e)
}, P = (e, t, n) => {
for (const r in t) {
const i = t[r],
a = `${e}.${r}`,
s = ey(o, a);
!u.array.has(e) && eb(i) && (!s || s._f) || W_(i) ? O(a, i, n) : P(a, i, n)
}
}, I = (e, n, r = {}) => {
const i = ey(o, e),
d = u.array.has(e),
f = Py(n);
Ty(l, e, f), d ? (h.array.next({
name: e,
values: l
}), (p.isDirty || p.dirtyFields) && r.shouldDirty && (a.dirtyFields = sb(s, l), h.state.next({
name: e,
dirtyFields: a.dirtyFields,
isDirty: E(e, f)
}))) : !i || i._f || H_(f) ? O(e, f, r) : P(e, f, r), Ly(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 = ey(o, r);
if (s) {
let d, y;
const E = t.type ? cb(s._f) : Q_(e),
S = e.type === ty || e.type === ny,
O = !((c = s._f).mount && (c.required || c.min || c.max || c.maxLength || c.minLength || c.pattern || c.validate)) && !n.resolver && !ey(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))(S, ey(a.touchedFields, r), a.isSubmitted, m, f),
P = Ly(r, u, S);
Ty(l, r, E), S ? (s._f.onBlur && s._f.onBlur(e), i && i(0)) : s._f.onChange && s._f.onChange(e);
const I = b(r, E, S, !1),
A = !yy(I) || P;
if (!S && h.watch.next({
name: r,
type: e.type
}), O) return p.isValid && v(), A && h.state.next({
name: r,
...P ? {} : I
});
if (!S && P && h.state.next({}), _(!0), n.resolver) {
const {
errors: e
} = await w([r]), t = db(a.errors, o, r), n = db(e, o, t.name || r);
d = n.error, r = n.name, y = yy(e)
} else d = (await Zy(s, l, g, n.shouldUseNativeValidation))[r], d ? y = !1 : p.isValid && (y = await k(o, !0));
s._f.deps && C(s._f.deps), x(r, y, d, I)
}
var c
}, C = async (e, t = {}) => {
let r, i;
const s = xy(e);
if (_(!0), n.resolver) {
const t = await (async e => {
const {
errors: t
} = await w();
if (e)
for (const n of e) {
const e = ey(t, n);
e ? Ty(a.errors, n, e) : Xy(a.errors, n)
} else a.errors = t;
return t
})(J_(e) ? e : s);
r = yy(t), i = e ? !s.some((e => ey(t, e))) : r
} else e ? (i = (await Promise.all(s.map((async e => {
const t = ey(o, e);
return await k(t && t._f ? {
[e]: t
} : t)
})))).every(Boolean), (i || a.isValid) && v()) : i = r = await k(o);
return h.state.next({
...!Ey(e) || p.isValid && r !== a.isValid ? {} : {
name: e
},
...n.resolver || !e ? {
isValid: r
} : {},
errors: a.errors,
isValidating: !1
}), t.shouldFocus && !i && Dy(o, (e => e && ey(a.errors, e)), e ? s : u.mount), i
}, R = e => {
const t = {
...s,
...c.mount ? l : {}
};
return J_(e) ? t : Ey(e) ? ey(t, e) : e.map((e => ey(t, e)))
}, T = (e, t) => ({
invalid: !!ey((t || a).errors, e),
isDirty: !!ey((t || a).dirtyFields, e),
isTouched: !!ey((t || a).touchedFields, e),
error: ey((t || a).errors, e)
}), D = (e, t = {}) => {
for (const r of e ? xy(e) : u.mount) u.mount.delete(r), u.array.delete(r), ey(o, r) && (t.keepValue || (Xy(o, r), Xy(l, r)), !t.keepError && Xy(a.errors, r), !t.keepDirty && Xy(a.dirtyFields, r), !t.keepTouched && Xy(a.touchedFields, r), !n.shouldUnregister && !t.keepDefaultValue && Xy(s, r));
h.watch.next({}), h.state.next({
...a,
...t.keepDirty ? {
isDirty: E()
} : {}
}), !t.keepIsValid && v()
}, N = (e, t = {}) => {
let r = ey(o, e);
const i = My(t.disabled);
return Ty(o, e, {
...r || {},
_f: {
...r && r._f ? r._f : {
ref: {
name: e
}
},
name: e,
mount: !0,
...t
}
}), u.mount.add(e), r ? i && Ty(l, e, t.disabled ? void 0 : ey(l, e, cb(r._f))) : y(e, !0, t.value), {
...i ? {
disabled: t.disabled
} : {},
...n.shouldUseNativeValidation ? {
required: !!t.required,
min: ub(t.min),
max: ub(t.max),
minLength: ub(t.minLength),
maxLength: ub(t.maxLength),
pattern: ub(t.pattern)
} : {},
name: e,
onChange: A,
onBlur: A,
ref: i => {
if (i) {
N(e, t), r = ey(o, e);
const n = J_(i.value) && i.querySelectorAll && i.querySelectorAll("input,select,textarea")[0] || i,
a = (e => Gy(e) || q_(e))(n),
l = r._f.refs || [];
if (a ? l.find((e => e === n)) : n === r._f.ref) return;
Ty(o, e, {
_f: {
...r._f,
...a ? {
refs: [...l.filter(rb), n, ...Array.isArray(ey(s, e)) ? [{}] : []],
ref: {
type: n.type,
name: e
}
} : {
ref: n
}
}
}), y(e, !1, void 0, n)
} else r = ey(o, e, {}), r._f && (r._f.mount = !1), (n.shouldUnregister || t.shouldUnregister) && (!Z_(u.array, e) || !c.action) && u.unMount.add(e)
}
}
}, L = () => n.shouldFocusError && Dy(o, (e => e && ey(a.errors, e)), u.mount), j = (n, i = {}) => {
const d = n || s,
f = Py(d),
m = n && !yy(n) ? f : s;
if (i.keepDefaultValues || (s = d), !i.keepValues) {
if (i.keepDirtyValues || r)
for (const e of u.mount) ey(a.dirtyFields, e) ? Ty(m, e, ey(l, e)) : I(e, ey(m, e));
else {
if (Oy && J_(n))
for (const e of u.mount) {
const t = ey(o, e);
if (t && t._f) {
const e = Array.isArray(t._f.refs) ? t._f.refs[0] : t._f.ref;
if (Uy(e)) {
const t = e.closest("form");
if (t) {
t.reset();
break
}
}
}
}
o = {}
}
l = e.shouldUnregister ? i.keepDefaultValues ? Py(s) : {} : f, h.array.next({
values: m
}), h.watch.next({
values: m
})
}
u = {
mount: new Set,
unMount: new Set,
array: new Set,
watch: new Set,
watchAll: !1,
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 || tb(n, s)),
isSubmitted: !!i.keepIsSubmitted && a.isSubmitted,
dirtyFields: i.keepDirty || i.keepDirtyValues ? a.dirtyFields : i.keepDefaultValues && n ? sb(s, n) : {},
touchedFields: i.keepTouched ? a.touchedFields : {},
errors: i.keepErrors ? a.errors : {},
isSubmitting: !1,
isSubmitSuccessful: !1
})
}, M = (e, t) => j(Fy(e) ? e(l) : e, t);
return Fy(n.defaultValues) && n.defaultValues().then((e => {
M(e, n.resetOptions), h.state.next({
isLoading: !1
})
})), {
control: {
register: N,
unregister: D,
getFieldState: T,
_executeSchema: w,
_focusError: L,
_getWatch: S,
_getDirty: E,
_updateValid: v,
_removeUnmounted: () => {
for (const e of u.unMount) {
const t = ey(o, e);
t && (t._f.refs ? t._f.refs.every((e => !rb(e))) : !rb(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(ey(o, e))) {
const t = n(ey(o, e), r.argA, r.argB);
i && Ty(o, e, t)
}
if (u && Array.isArray(ey(a.errors, e))) {
const t = n(ey(a.errors, e), r.argA, r.argB);
i && Ty(a.errors, e, t), ((e, t) => {
!X_(ey(e, t)).length && Xy(e, t)
})(a.errors, e)
}
if (p.touchedFields && u && Array.isArray(ey(a.touchedFields, e))) {
const t = n(ey(a.touchedFields, e), r.argA, r.argB);
i && Ty(a.touchedFields, e, t)
}
p.dirtyFields && (a.dirtyFields = sb(s, l)), h.state.next({
name: e,
isDirty: E(e, t),
dirtyFields: a.dirtyFields,
errors: a.errors,
isValid: a.isValid
})
} else Ty(l, e, t)
},
_getFieldArray: t => X_(ey(c.mount ? l : s, t, e.shouldUnregister ? ey(s, t, []) : [])),
_reset: j,
_updateFormState: e => {
a = {
...a,
...e
}
},
_subjects: h,
_proxyFormState: p,
get _fields() {
return o
},
get _formValues() {
return l
},
get _stateFlags() {
return c
},
set _stateFlags(e) {
c = e
},
get _defaultValues() {
return s
},
get _names() {
return u
},
set _names(e) {
u = e
},
get _formState() {
return a
},
set _formState(e) {
a = e
},
get _options() {
return n
},
set _options(e) {
n = {
...n,
...e
}
}
},
trigger: C,
register: N,
handleSubmit: (e, t) => async r => {
r && (r.preventDefault && r.preventDefault(), r.persist && r.persist());
let i = Py(l);
if (h.state.next({
isSubmitting: !0
}), n.resolver) {
const {
errors: e,
values: t
} = await w();
a.errors = e, i = t
} else await k(o);
yy(a.errors) ? (h.state.next({
errors: {}
}), await e(i, r)) : (t && await t({
...a.errors
}, r), L()), h.state.next({
isSubmitted: !0,
isSubmitting: !1,
isSubmitSuccessful: yy(a.errors),
submitCount: a.submitCount + 1,
errors: a.errors
})
},
watch: (e, t) => Fy(e) ? h.watch.subscribe({
next: n => e(S(void 0, t), n)
}) : S(e, t, !0),
setValue: I,
getValues: R,
reset: M,
resetField: (e, t = {}) => {
ey(o, e) && (J_(t.defaultValue) ? I(e, ey(s, e)) : (I(e, t.defaultValue), Ty(s, e, t.defaultValue)), t.keepTouched || Xy(a.touchedFields, e), t.keepDirty || (Xy(a.dirtyFields, e), a.isDirty = t.defaultValue ? E(e, ey(s, e)) : E()), t.keepError || (Xy(a.errors, e), p.isValid && v()), h.state.next({
...a
}))
},
clearErrors: e => {
e ? xy(e).forEach((e => Xy(a.errors, e))) : a.errors = {}, h.state.next({
errors: a.errors
})
},
unregister: D,
setError: (e, t, n) => {
const r = (ey(o, e, {
_f: {}
})._f || {}).ref;
Ty(a.errors, e, {
...t,
ref: r
}), h.state.next({
name: e,
errors: a.errors,
isValid: !1
}), n && n.shouldFocus && r && r.focus && r.focus()
},
setFocus: (e, t = {}) => {
const n = ey(o, e),
r = n && n._f;
if (r) {
const e = r.refs ? r.refs[0] : r.ref;
e.focus && (e.focus(), t.shouldSelect && e.select())
}
},
getFieldState: T
}
}
function fb(e = {}) {
const t = Pe.useRef(),
[n, r] = Pe.useState({
isDirty: !1,
isValidating: !1,
isLoading: !0,
isSubmitted: !1,
isSubmitting: !1,
isSubmitSuccessful: !1,
isValid: !1,
submitCount: 0,
dirtyFields: {},
touchedFields: {},
errors: {},
defaultValues: Fy(e.defaultValues) ? void 0 : e.defaultValues
});
t.current || (t.current = {
...hb(e, (() => r((e => ({
...e
}))))),
formState: n
});
const i = t.current.control;
return i._options = e, ky({
subject: i._subjects.state,
next: e => {
by(e, i._proxyFormState, i._updateFormState, !0) && r({
...i._formState
})
}
}), Pe.useEffect((() => {
i._stateFlags.mount || (i._updateValid(), i._stateFlags.mount = !0), i._stateFlags.watch && (i._stateFlags.watch = !1, i._subjects.state.next({})), i._removeUnmounted()
})), Pe.useEffect((() => {
e.values && !tb(e.values, i._defaultValues) && i._reset(e.values, i._options.resetOptions)
}), [e.values, i]), Pe.useEffect((() => {
n.submitCount && i._focusError()
}), [i, n.submitCount]), t.current.formState = _y(n, i), t.current
}
var mb = n(5391);
var gb = function() {
let e = [],
t = 0,
n = e => {
e()
},
r = e => {
e()
};
const i = r => {
t ? e.push(r) : (0, mb.A4)((() => {
n(r)
}))
},
a = () => {
const t = e;
e = [], t.length && (0, mb.A4)((() => {
r((() => {
t.forEach((e => {
n(e)
}))
}))
}))
};
return {
batch: e => {
let n;
t++;
try {
n = e()
} finally {
t--, t || a()
}
return n
},
batchCalls: e => (...t) => {
i((() => {
e(...t)
}))
},
schedule: i,
setNotifyFunction: e => {
n = e
},
setBatchNotifyFunction: e => {
r = e
}
}
}(),
vb = class {
#r;
destroy() {
this.clearGcTimeout()
}
scheduleGc() {
this.clearGcTimeout(), (0, mb.PN)(this.gcTime) && (this.#r = setTimeout((() => {
this.optionalRemove()
}), this.gcTime))
}
updateGcTime(e) {
this.gcTime = Math.max(this.gcTime || 0, e ?? (mb.sk ? 1 / 0 : 3e5))
}
clearGcTimeout() {
this.#r && (clearTimeout(this.#r), this.#r = void 0)
}
},
_b = n(8974),
yb = new class extends _b.l {
#i;
#t;
#n;
constructor() {
super(), this.#n = e => {
if (!mb.sk && window.addEventListener) {
const t = () => e();
return window.addEventListener("visibilitychange", t, !1), () => {
window.removeEventListener("visibilitychange", t)
}
}
}
}
onSubscribe() {
this.#t || this.setEventListener(this.#n)
}
onUnsubscribe() {
this.hasListeners() || (this.#t?.(), this.#t = void 0)
}
setEventListener(e) {
this.#n = e, this.#t?.(), this.#t = e((e => {
"boolean" === typeof e ? this.setFocused(e) : this.onFocus()
}))
}
setFocused(e) {
this.#i !== e && (this.#i = e, this.onFocus())
}
onFocus() {
this.listeners.forEach((e => {
e()
}))
}
isFocused() {
return "boolean" === typeof this.#i ? this.#i : "hidden" !== globalThis.document?.visibilityState
}
},
bb = n(1901);
function xb(e) {
return Math.min(1e3 * 2 ** e, 3e4)
}
function wb(e) {
return "online" !== (e ?? "online") || bb.N.isOnline()
}
var kb = class {
constructor(e) {
this.revert = e?.revert, this.silent = e?.silent
}
};
function Eb(e) {
return e instanceof kb
}
function Sb(e) {
let t, n, r, i = !1,
a = 0,
o = !1;
const s = new Promise(((e, t) => {
n = e, r = t
})),
l = () => !yb.isFocused() || "always" !== e.networkMode && !bb.N.isOnline(),
c = r => {
o || (o = !0, e.onSuccess?.(r), t?.(), n(r))
},
u = n => {
o || (o = !0, e.onError?.(n), t?.(), r(n))
},
d = () => new Promise((n => {
t = e => {
const t = o || !l();
return t && n(e), t
}, e.onPause?.()
})).then((() => {
t = void 0, o || e.onContinue?.()
})),
p = () => {
if (o) return;
let t;
try {
t = e.fn()
} catch (n) {
t = Promise.reject(n)
}
Promise.resolve(t).then(c).catch((t => {
if (o) return;
const n = e.retry ?? (mb.sk ? 0 : 3),
r = e.retryDelay ?? xb,
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, mb._v)(s).then((() => {
if (l()) return d()
})).then((() => {
i ? u(t) : p()
}))) : u(t)
}))
};
return wb(e.networkMode) ? p() : d().then(p), {
promise: s,
cancel: t => {
o || (u(new kb(t)), e.abort?.())
},
continue: () => {
const e = t?.();
return e ? s : Promise.resolve()
},
cancelRetry: () => {
i = !0
},
continueRetry: () => {
i = !1
}
}
}
var Ob = class extends vb {
constructor(e) {
super(), this.mutationId = e.mutationId, this.#a = e.defaultOptions, this.#o = e.mutationCache, this.#s = [], this.state = e.state || {
context: void 0,
data: void 0,
error: null,
failureCount: 0,
failureReason: null,
isPaused: !1,
status: "idle",
variables: void 0,
submittedAt: 0
}, this.setOptions(e.options), this.scheduleGc()
}
#s;
#a;
#o;
#l;
setOptions(e) {
this.options = {
...this.#a,
...e
}, this.updateGcTime(this.options.gcTime)
}
get meta() {
return this.options.meta
}
addObserver(e) {
this.#s.includes(e) || (this.#s.push(e), this.clearGcTimeout(), this.#o.notify({
type: "observerAdded",
mutation: this,
observer: e
}))
}
removeObserver(e) {
this.#s = this.#s.filter((t => t !== e)), this.scheduleGc(), this.#o.notify({
type: "observerRemoved",
mutation: this,
observer: e
})
}
optionalRemove() {
this.#s.length || ("pending" === this.state.status ? this.scheduleGc() : this.#o.remove(this))
}
continue () {
return this.#l?.continue() ?? this.execute(this.state.variables)
}
async execute(e) {
const t = () => (this.#l = Sb({
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
onFail: (e, t) => {
this.#c({
type: "failed",
failureCount: e,
error: t
})
},
onPause: () => {
this.#c({
type: "pause"
})
},
onContinue: () => {
this.#c({
type: "continue"
})
},
retry: this.options.retry ?? 0,
retryDelay: this.options.retryDelay,
networkMode: this.options.networkMode
}), this.#l.promise),
n = "pending" === this.state.status;
try {
if (!n) {
this.#c({
type: "pending",
variables: e
}), await (this.#o.config.onMutate?.(e, this));
const t = await (this.options.onMutate?.(e));
t !== this.state.context && this.#c({
type: "pending",
context: t,
variables: e
})
}
const r = await t();
return await (this.#o.config.onSuccess?.(r, e, this.state.context, this)), await (this.options.onSuccess?.(r, e, this.state.context)), await (this.#o.config.onSettled?.(r, null, this.state.variables, this.state.context, this)), await (this.options.onSettled?.(r, null, e, this.state.context)), this.#c({
type: "success",
data: r
}), r
} catch (r) {
try {
throw await (this.#o.config.onError?.(r, e, this.state.context, this)), await (this.options.onError?.(r, e, this.state.context)), await (this.#o.config.onSettled?.(void 0, r, this.state.variables, this.state.context, this)), await (this.options.onSettled?.(void 0, r, e, this.state.context)), r
} finally {
this.#c({
type: "error",
error: r
})
}
}
}
#c(e) {
this.state = (t => {
switch (e.type) {
case "failed":
return {
...t, failureCount: e.failureCount, failureReason: e.error
};
case "pause":
return {
...t, isPaused: !0
};
case "continue":
return {
...t, isPaused: !1
};
case "pending":
return {
...t, context: e.context, data: void 0, failureCount: 0, failureReason: null, error: null, isPaused: !wb(this.options.networkMode), status: "pending", variables: e.variables, submittedAt: Date.now()
};
case "success":
return {
...t, data: e.data, failureCount: 0, failureReason: null, error: null, status: "success", isPaused: !1
};
case "error":
return {
...t, data: void 0, error: e.error, failureCount: t.failureCount + 1, failureReason: e.error, isPaused: !1, status: "error"
}
}
})(this.state), gb.batch((() => {
this.#s.forEach((t => {
t.onMutationUpdate(e)
})), this.#o.notify({
mutation: this,
type: "updated",
action: e
})
}))
}
};
var Pb = class extends _b.l {
constructor(e, t) {
super(), this.#u = void 0, this.#d = e, this.setOptions(t), this.bindMethods(), this.#p()
}
#d;
#u;
#h;
#f;
bindMethods() {
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this)
}
setOptions(e) {
const t = this.options;
this.options = this.#d.defaultMutationOptions(e), (0, mb.VS)(t, this.options) || this.#d.getMutationCache().notify({
type: "observerOptionsUpdated",
mutation: this.#h,
observer: this
}), this.#h?.setOptions(this.options)
}
onUnsubscribe() {
this.hasListeners() || this.#h?.removeObserver(this)
}
onMutationUpdate(e) {
this.#p(), this.#m(e)
}
getCurrentResult() {
return this.#u
}
reset() {
this.#h = void 0, this.#p(), this.#m()
}
mutate(e, t) {
return this.#f = t, this.#h?.removeObserver(this), this.#h = this.#d.getMutationCache().build(this.#d, this.options), this.#h.addObserver(this), this.#h.execute(e)
}
#p() {
const e = this.#h?.state ?? {
context: void 0,
data: void 0,
error: null,
failureCount: 0,
failureReason: null,
isPaused: !1,
status: "idle",
variables: void 0,
submittedAt: 0
};
this.#u = {
...e,
isPending: "pending" === e.status,
isSuccess: "success" === e.status,
isError: "error" === e.status,
isIdle: "idle" === e.status,
mutate: this.mutate,
reset: this.reset
}
}
#m(e) {
gb.batch((() => {
this.#f && this.hasListeners() && ("success" === e?.type ? (this.#f.onSuccess?.(e.data, this.#u.variables, this.#u.context), this.#f.onSettled?.(e.data, null, this.#u.variables, this.#u.context)) : "error" === e?.type && (this.#f.onError?.(e.error, this.#u.variables, this.#u.context), this.#f.onSettled?.(void 0, e.error, this.#u.variables, this.#u.context))), this.listeners.forEach((e => {
e(this.#u)
}))
}))
}
},
Ib = n(3713);
function Ab(e, t) {
return "function" === typeof e ? e(...t) : !!e
}
function Cb(e, t) {
const n = (0, Ib.NL)(t),
[r] = Pe.useState((() => new Pb(n, e)));
Pe.useEffect((() => {
r.setOptions(e)
}), [r, e]);
const i = Pe.useSyncExternalStore(Pe.useCallback((e => r.subscribe(gb.batchCalls(e))), [r]), (() => r.getCurrentResult()), (() => r.getCurrentResult())),
a = Pe.useCallback(((e, t) => {
r.mutate(e, t).catch(Rb)
}), [r]);
if (i.error && Ab(r.options.throwOnError, [i.error])) throw i.error;
return {
...i,
mutate: a,
mutateAsync: i.mutate
}
}
function Rb() {}
const {
store: {
setValueToStore: Tb
}
} = D_();
function Db(e, t, n, r) {
const i = Date.now() + z_.configuration.authenticationExpiry;
var a;
e && (Tb("identity", {
username: null !== t && void 0 !== t ? t : "",
displayName: r.displayname,
nickname: r.nickname,
privileged: null !== (a = r.privileged) && void 0 !== a && a,
avatar: r.avatar,
heapAccountId: r.heapAccountId,
trackingMetricsId: r.trackingMetricsId
}), Tb("session", {
...r.session,
expires: i
}));
Tb("device", n)
}
function Nb(e, t) {
var n;
const {
user: r
} = Pk.getState(), {
actions: {
setSession: i,
setIdentity: a
}
} = r;
i(t.session), a({
username: null !== e && void 0 !== e ? e : "",
displayName: t.displayname,
nickname: t.nickname,
avatar: t.avatar,
privileged: null !== (n = t.privileged) && void 0 !== n && n,
heapAccountId: t.heapAccountId,
trackingMetricsId: t.trackingMetricsId
})
}
const Lb = ({
session_name: e,
session_id: t
}) => ({
cookie: `${e}`,
key: `X-${e}`,
value: t,
expires: Date.now() + z_.configuration.authenticationExpiry
}),
jb = {
cancelOnUnmount: !0,
cancelOnConditionChange: !0
},
Mb = (e, t, n, r = jb) => {
const i = {
...jb,
...r || {}
},
a = (0, Pe.useRef)(),
o = (0, Pe.useRef)(e),
[s, l] = (0, Pe.useState)(!1),
c = (e => {
const t = (0, Pe.useRef)();
return (0, Pe.useEffect)((() => (t.current = e, () => {
t.current = void 0
}))), t.current
})(n),
u = (0, Pe.useCallback)((() => {
a.current && (clearTimeout(a.current), l(!0))
}), []);
return (0, Pe.useEffect)((() => {
var t;
"function" === typeof(t = e) && t.constructor && t.call && t.apply && (o.current = e)
}), [e]), (0, Pe.useEffect)((() => {
n && "number" === typeof t && (a.current = setTimeout((() => {
o.current()
}), t))
}), [n, t]), (0, Pe.useEffect)((() => {
c && n !== c && i.cancelOnConditionChange && u()
}), [n, r]), (0, Pe.useEffect)((() => () => {
i.cancelOnUnmount && u()
}), []), [s, u]
};
var zb = n(4499);
const Fb = (0, Pe.createContext)({}),
Ub = ({
children: e
}) => {
const {
window: {
onSetHideWindowSuccessFul: t,
onSetShowWindowSuccessFul: n
}
} = window.launcherAPI, r = Pk.getState().application, [i, a] = (0, Pe.useState)(!1);
return (0, Pe.useEffect)((() => {
const e = t((() => {
a(!0), r.actions.setWindowMinimized(!0)
})),
i = n((() => {
a(!1), r.actions.setWindowMinimized(!1)
}));
return () => {
e(), i()
}
}), [r.actions, t, n]), (0, zb.jsx)(Fb.Provider, {
value: {
isMinimized: i
},
children: e
})
},
Vb = [{
id: "website",
action: () => window.open(z_.configuration.websiteUrl, "_blank")
}, {
id: "report_bug",
action: () => window.open(z_.configuration.issueCouncilUrl, "_blank")
}, {
id: "spectrum",
action: () => window.open(z_.configuration.spectrumUrl, "_blank")
}, {
id: "community_hub",
action: () => window.open(z_.configuration.communityHubUrl, "_blank")
}, {
id: "support",
action: () => window.open(z_.configuration.supportUrl, "_blank")
}],
Gb = () => {
const {
t: e
} = wt("tray"), {
tray: {
onMenuItemClicked: t,
updateMenu: n
}
} = D_(), {
isMinimized: r
} = (() => {
const e = (0, Pe.useContext)(Fb);
if (!e) throw new Error("useTheme must be used within a ThemeProvider");
return e
})(), {
exitLauncher: i,
logoutLauncher: a
} = Pk((e => e.window.actions)), {
identity: o
} = Pk((e => e.user)), {
volume: s,
actions: {
mute: l,
unmute: c
}
} = Pk((e => e.soundSystem)), u = 0 === s, d = !!o, p = (0, Pe.useMemo)((() => [...Vb, {
id: "logout",
action: a,
visible: d
}, {
id: "mute",
action: l,
visible: !u && !r
}, {
id: "unmute",
action: c,
visible: u && !r
}, {
id: "quit",
action: i
}]), [i, r, u, d, a, l, c]), h = p.map((({
action: t,
id: n,
visible: r
}) => ({
id: n,
label: e(`tray_${n}`),
visible: r
})));
n(h), (0, Pe.useEffect)((() => {
const e = t((e => {
var t;
return null === (t = p.find((t => t.id === e))) || void 0 === t ? void 0 : t.action()
}));
return e
}), [p, t])
},
Bb = {
ACCOUNT_CHECK: "account/check",
ACCOUNT_CLAIMS: "account/claims",
AGREEMENTS_ACCEPT: "agreements/accept",
AGREEMENTS_GET: "agreements/get",
CONTENT_COMM_LINKS: "content/news",
CONTENT_PATCHNOTES: "content/patchNotes",
CONTENT_LAUNCHER_CARDS: "content/cards",
GAMES_CLAIMS: "games/claims",
GAMES_LIBRARY: "games/library",
GAMES_RELEASE: "games/release",
GAMES_TOKEN: "games/token",
SIGN_IN_CAPTCHA: "signin/captcha",
SIGN_IN_CLAIMS: "signin/claims",
SIGN_IN_MULTISTEP: "signin/multiStep",
SIGN_IN: "signin",
SIGN_OUT: "signout",
WARNINGS_GET: "warnings/get",
WARNINGS: "warnings"
};
class $b extends w_ {
set session(e) {
this._session = e
}
get session() {
return this._session
}
set device(e) {
this._device = e
}
get device() {
return this._device
}
set platformEnv(e) {
this._platformEnv = e
}
get platformEnv() {
return this._platformEnv
}
set platformClaims(e) {
this._platformClaims = e
}
get platformClaims() {
return this._platformClaims
}
get endpoints() {
return this._endpoints
}
constructor() {
super($b.BASE_URL), this._platformEnv = null, this._session = null, this._device = null, this._platformClaims = null, this._endpoints = void 0, this._endpoints = Bb, 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 $b.instance || ($b.instance = new $b), $b.instance
}
async call({
platformId: e = this._platformEnv,
endpoint: t,
payload: n,
session: r = this._session,
device: i = this._device,
options: a
}) {
const o = this.handleSession(r, i);
this.handleUrl(e);
try {
const e = await this.post(t, n, o, a);
if (e.code === Bv) throw new e_("Launcher update required.", Bv, e);
if (e.success) return e;
throw x_(e)
} catch (s) {
throw s instanceof u_ && (this.platformClaims = null), s
}
}
handleSession(e, t) {
const n = [];
if (e) {
if (j_(e)) throw this._session = null, new r_(kt.t("error_api_auth_expired_content", {
ns: "errors"
}));
n.push({
key: e.key,
value: e.value
})
}
return t && n.push({
key: t.key,
value: t.value
}), n
}
handleUrl(e) {
this.baseUrl = `${$b.BASE_URL}${e?`+${e}`:""}`
}
async callImage({
endpoint: e,
payload: t = {},
session: n = this._session,
device: r = this._device,
options: i
}) {
try {
const a = this.handleSession(n, r),
o = await this.post(e, t, a, i),
s = await o.arrayBuffer();
return window.btoa(String.fromCharCode(...new Uint8Array(s)))
} catch (a) {
throw a
}
}
}
$b.instance = void 0, $b.BASE_URL = "rsi";
class qb {
constructor(e) {
this.rsi = void 0, this.rsi = e
}
async getWarnings() {
return (await this.rsi.call({
endpoint: this.rsi.endpoints.WARNINGS
})).data
}
async getWarningInfo(e) {
return (await this.rsi.call({
endpoint: this.rsi.endpoints.WARNINGS_GET,
payload: {
warning_id: e
}
})).data
}
async checkAgreements() {
return (await this.rsi.call({
endpoint: this.rsi.endpoints.ACCOUNT_CHECK
})).data
}
async getAgreementInfo(e, t) {
return (await this.rsi.call({
endpoint: this.rsi.endpoints.AGREEMENTS_GET,
payload: {
agreement_id: e,
type: t
}
})).data
}
async acceptAgreement(e, t) {
return (await this.rsi.call({
endpoint: this.rsi.endpoints.AGREEMENTS_ACCEPT,
payload: {
agreement_id: e,
type: t
}
})).data
}
}
function Wb({
badges: e
}, t) {
const n = Object.values(e);
for (const r of t)
if (-1 === n.indexOf(r)) return !1;
return !0
}
function Hb({
badges: e
}, t) {
const n = Object.values(e);
for (const r of t)
if (n.indexOf(r) > -1) return !0;
return !1
}
function Yb(e) {
return Hb(e, ["Staff", "QA"])
}
class Kb {
constructor(e, t) {
this.rsi = void 0, this.policy = void 0, this.rsi = e, this.policy = t
}
async getCaptcha() {
return `data:image/png;base64,${await this.rsi.callImage({endpoint:this.rsi.endpoints.SIGN_IN_CAPTCHA})}`
}
async signOut() {
const e = await this.rsi.call({
endpoint: this.rsi.endpoints.SIGN_OUT
});
return this.rsi.session = null, e
}
async signIn({
username: e,
password: t,
captcha: n,
remember: r,
launcherVersion: i
}) {
try {
const a = await this.rsi.call({
endpoint: this.rsi.endpoints.SIGN_IN,
payload: {
username: e,
password: t,
captcha: n,
remember: r,
launcherVersion: i
}
});
if (a.success) {
await this.verifyPolicy(a.data);
const e = Lb(a.data);
return this.rsi.session = e, {
code: a.code,
success: a.success,
msg: a.msg,
data: {
requiresMfa: !1,
requiresCaptcha: !1,
heapAccountId: a.data.account_id,
trackingMetricsId: a.data.tracking_metrics_id,
agreements: a.data.agreements,
session: e,
privileged: Yb(a.data),
displayname: a.data.displayname,
nickname: a.data.nickname,
avatar: a.data.avatar
}
}
}
throw x_(a)
} catch (a) {
throw a instanceof s_ && (this.rsi.session = Lb(a.payload)), a instanceof t_ && (this.rsi.session = Lb(a.payload), this.rsi.device = (({
device_header: e,
device_id: t
}) => ({
cookie: "_rsi_device",
key: `${e}`,
value: t
}))(a.payload)), a instanceof $_ && (this.rsi.session = null, this.rsi.device = null), a
}
}
async signInMfa({
codeMfa: e,
deviceName: t,
duration: n
}) {
const r = await this.rsi.call({
endpoint: this.rsi.endpoints.SIGN_IN_MULTISTEP,
payload: {
code: e,
device_name: t,
duration: n,
device_type: "computer"
}
});
if (r.success) {
await this.verifyPolicy(r.data);
const e = Lb(r.data);
return this.rsi.session = e, {
code: r.code,
success: r.success,
msg: r.msg,
data: {
requiresMfa: !1,
requiresCaptcha: !1,
heapAccountId: r.data.account_id,
trackingMetricsId: r.data.tracking_metrics_id,
agreements: r.data.agreements,
session: e,
privileged: Yb(r.data),
displayname: r.data.displayname,
nickname: r.data.nickname,
avatar: r.data.avatar
}
}
}
throw x_(r)
}
async verifyPolicy(e) {
const {
launcherVersion: t
} = await window.launcherAPI.game.getGlobalConfig();
if (t.includes("-rc.")) return this.policy.verify("signin:release-candidate", e)
}
}
class Qb {
constructor(e) {
this.api = void 0, this.api = e
}
async getCommLinks(e, t) {
return (await this.api.call({
endpoint: this.api.endpoints.CONTENT_COMM_LINKS,
payload: {
game_id: e,
channel_id: t,
allow_null_channel: "true"
}
})).data.resultset
}
async getPatchNotes(e, t) {
return (await this.api.call({
endpoint: this.api.endpoints.CONTENT_PATCHNOTES,
payload: {
game_id: e,
channel_id: t,
allow_null_channel: "true"
}
})).data.resultset
}
async getLauncherCards(e, t) {
return (await this.api.call({
endpoint: this.api.endpoints.CONTENT_LAUNCHER_CARDS,
payload: {
game_id: e,
channel_id: t,
allow_null_channel: "true"
}
})).data.resultset
}
async getContent(e, t) {
const [n, r, i] = await Promise.all([this.getCommLinks(e, t), this.getPatchNotes(e, t), this.getLauncherCards(e, t)]);
return {
commLinks: n,
patchNotes: r,
launcherCards: i
}
}
}
class Zb {
constructor(e) {
this.rsi = void 0, this.libraryTimeout = 1e4, this.rsi = e
}
async getGameClaims() {
return (await this.rsi.call({
endpoint: this.rsi.endpoints.GAMES_CLAIMS
})).data
}
async getPlatformClaims() {
if (!this.rsi.platformClaims) {
const e = await this.rsi.call({
endpoint: this.rsi.endpoints.ACCOUNT_CLAIMS
});
return this.rsi.platformClaims = e.data, e.data
}
return this.rsi.platformClaims
}
async getSignInSession(e) {
const t = await this.getPlatformClaims(),
n = await this.rsi.call({
platformId: e,
endpoint: this.rsi.endpoints.SIGN_IN_CLAIMS,
payload: {
claims: t
}
});
return Lb(n.data)
}
async getLibrary() {
const e = await this.getGameClaims(),
t = (await this.rsi.call({
endpoint: this.rsi.endpoints.GAMES_LIBRARY,
payload: {
claims: e
},
options: {
signal: AbortSignal.timeout(this.libraryTimeout)
}
})).data.games.map((e => {
const {
id: t,
name: n,
channels: r
} = e, i = Object.values(r).map((({
id: e,
name: t,
version: n,
versionLabel: r,
platformId: i,
servicesEndpoint: a,
nid: o,
network: s,
installDir: l
}) => ({
id: e,
name: null !== t && void 0 !== t ? t : e,
version: n,
versionLabel: r,
platformId: i,
servicesEndpoint: a,
nid: o,
network: s,
installDir: l,
status: z_.GameChannelStatus.AVAILABLE
})));
return {
id: t,
name: n,
channels: i
}
}));
return t
}
async getRelease({
gameId: e,
channelId: t
}) {
const n = await this.getGameClaims();
return (await this.rsi.call({
endpoint: this.rsi.endpoints.GAMES_RELEASE,
payload: {
claims: n,
gameId: e,
channelId: t
}
})).data
}
async getGameToken(e, t, n) {
const r = await this.getGameClaims();
return (await this.rsi.call({
platformId: e,
endpoint: this.rsi.endpoints.GAMES_TOKEN,
session: n,
payload: {
claims: r,
gameId: t
}
})).data
}
}
const Xb = {
STATUS_PAGE: "index"
};
class Jb extends w_ {
constructor() {
super(Jb.BASE_URL), this._endpoints = void 0, this._endpoints = Xb
}
async getStatus() {
try {
return await this.get(this._endpoints.STATUS_PAGE)
} catch (e) {
throw new b_("Could not connect to status API", e)
}
}
}
Jb.BASE_URL = "status";
class ex {
constructor(...e) {
this.handlers = void 0, this.name = "AnyPermissionEvaluator", this.handlers = (null !== e && void 0 !== e ? e : []).slice()
}
async evaluate(e, t) {
const n = [];
for (const a of this.handlers) {
const r = await a.evaluate(e, t);
n.push({
handlerName: a.name,
result: r
})
}
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 B_.fail(`At least one permission evaluator must succeed. Evaluation results:\n${i}`)
}
}
class tx {
constructor() {
this.name = "IsStaffPermissionEvaluator"
}
evaluate(e) {
return e.badges && function(e) {
return Wb(e, ["Staff"])
}(e) ? B_.success() : B_.fail()
}
}
class nx {
constructor() {
this.name = "IsQAPermissionEvaluator"
}
evaluate(e) {
return e.badges && function(e) {
return Wb(e, ["QA"])
}(e) ? B_.success() : B_.fail()
}
}
class rx {
constructor() {
this.name = "IsEvocatiPermissionEvaluator"
}
evaluate(e) {
return e.badges && function(e) {
return Wb(e, ["Evocati Test Flight"])
}(e) ? B_.success() : B_.fail()
}
}
class ix {
constructor(e) {
this.evaluators = new Map;
for (const t of e) this.evaluators.set(t[0], t[1])
}
async evaluate(e, t) {
const n = this.notNullEvaluator(e);
return await n.evaluate(t)
}
async verify(e, t) {
const n = await this.evaluate(e, t);
if (!n.success) throw new $_(`Permission '${e}' verification failed`, n)
}
notNullEvaluator(e) {
const t = this.evaluators.get(e);
if (!t) throw new Error(`No evaluator found for permission named '${e}'`);
return t
}
}
let ax, ox;
! function(e) {
e.COMM_LINKS = "Comm-Links", e.PATCH_NOTES = "Patch-Notes"
}(ax || (ax = {})),
function(e) {
e.EULA = "eula", e.TOS = "tos", e.DISCLAIMER = "disclaimer"
}(ox || (ox = {}));
const sx = 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 = $b.getInstance(), this.content = new Qb(this.rsi), this.policy = function() {
const e = new tx,
t = new nx,
n = new rx,
r = new ex(e, t),
i = new Map([
["signin:release-candidate", new ex(r, n)]
]);
return new ix(i)
}(), this.authentication = new Kb(this.rsi, this.policy), this.games = new Zb(this.rsi), this.agreements = new qb(this.rsi), this.status = new Jb
}
};
class lx {
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");
this.soundRoot = document.createElement("div"), this.soundRoot.id = "SoundRoot", this.soundRoot.style.height = "0px", this.soundRoot.style.overflow = "hidden", t ? t.remove() : document.body.appendChild(this.soundRoot)
}
setGain(e) {
return this.gain = e, this.gainNode.gain.value = e / 100, this.gain
}
getGain() {
return this.gain
}
mute() {
this.isMuted || (this.gainNode.gain.value = 0, this.isMuted = !0)
}
unmute() {
this.isMuted && (this.gainNode.gain.value = this.gain, this.isMuted = !1)
}
async playSound(e, t = !1) {
return new Promise(((n, r) => {
if (this.soundMap.has(e)) {
const r = new Audio(this.soundMap.get(e));
r.loop = t, this.soundRoot.appendChild(r);
this.audioContext.createMediaElementSource(r).connect(this.gainNode), r.play(), r.addEventListener("ended", (() => {
r.remove(), n(null)
}))
} else r(new Error(`[SoundSystem] Sound with id "${e}" was not found`))
}))
}
async playBackgroundTrack(e = !1) {
return new Promise(((t, n) => {
let r = this.trackTitleList[Math.floor(Math.random() * this.trackTitleList.length)];
if (this.currentBgTrack && (this.currentBgTrack.audioNode.pause(), this.currentBgTrack.audioNode.remove(), e && (r = this.currentBgTrack.trackTitle)), this.trackMap.has(r)) {
const e = new Audio(this.trackMap.get(r));
this.soundRoot.appendChild(e);
const n = this.audioContext.createMediaElementSource(e),
i = this.audioContext.createGain();
i.gain.setValueAtTime(.01, 0), i.gain.linearRampToValueAtTime(1, 5), i.connect(this.gainNode), n.connect(i), this.currentBgTrack = {
trackTitle: r,
audioNode: e,
fadeNode: i
}, e.play(), e.addEventListener("ended", (() => {
e.remove(), this.playBackgroundTrack(), t(null)
}))
} else n(new Error(`[SoundSystem] Track with id "${r}" was not found`))
}))
}
async stopBackgroundTrack() {
this.currentBgTrack && (this.currentBgTrack.audioNode.pause(), this.currentBgTrack.audioNode.remove(), this.currentBgTrack = null)
}
async restartBackgroundTrack() {
this.playBackgroundTrack(!0)
}
}
let cx;
! function(e) {
e.DISPLAY_WARNING_DIALOG = "displayWarningDialog", e.DISPLAY_ACKNOWLEDGE_DIALOG = "displayAcknowledgeDialog", e.DISPLAY_INLINE_MESSAGE = "displayInlineMessage", e.EXECUTE_CALLBACK = "executeCallback"
}(cx || (cx = {}));
const ux = async e => {
const t = Pk.getState().dialog,
n = Array.isArray(e) ? e : [e];
for (const {
handler: r,
error: i
}
of n) {
if (r.skip) return;
switch (r.type) {
case cx.DISPLAY_WARNING_DIALOG:
return void await t.actions.showWarningDialogErrorOccured(r.args);
case cx.DISPLAY_ACKNOWLEDGE_DIALOG:
return void await t.actions.showAcknowledgeDialogErrorOccured(r.args);
case cx.EXECUTE_CALLBACK:
return void await r.args.callback();
default:
console.error("error", i.message)
}
}
}, dx = e => {
switch (e.code) {
case z_.errorsCodes.ERR_LOGOUT_FAILED:
return {
handler: {
type: cx.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: kt.t("dialog_warning_logout_title", {
ns: "dialog"
}),
content: kt.t("dialog_warning_logout_error", {
ns: "dialog"
})
}
}, error: e
};
case z_.errorsCodes.ERR_DISPLAY_AGREEMENT:
return {
handler: {
type: cx.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
content: kt.t("agreement_fetch_info_error", {
ns: "agreements"
})
}
}, error: e
};
default:
return {
handler: {
type: cx.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {}
}, error: e
}
}
};
var px = n(1438),
hx = n.n(px);
const fx = (e, t) => {
let n = {
...t,
speed: e.info.speed > 0 ? hx().format(e.info.speed, {
decimalPlaces: 1
}) : "0"
};
switch (e.phase) {
case z_.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_START:
n = {
...n,
currentPhase: kt.t("download_update_manifest", {
ns: "download"
})
};
break;
case z_.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_PROGRESS: {
const t = e.info.total > 0 && e.info.total < 107374182400;
n = {
...n,
currentPhase: kt.t("download_manifest", {
ns: "download"
}),
showProgress: !0,
downloaded: t ? e.info.downloaded : 0,
total: t ? e.info.total : 0,
percentage: t ? e.info.downloaded / e.info.total * 100 : 0
}
}
break;
case z_.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_END:
n = {
...n,
currentPhase: kt.t("downloaded_update_manifest", {
ns: "download"
})
};
break;
case z_.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_START:
n = {
...n,
currentPhase: kt.t("download_analysing_install", {
ns: "download"
})
};
break;
case z_.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_END:
case z_.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_START:
break;
case z_.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_END:
n = {
...n,
isPausable: !1
};
break;
case z_.ipcEvents.installer.INSTALLER_UPDATE_PK4_START:
n = {
...n,
isPausable: !1,
showProgress: !1,
progressUndeterminate: !0,
percentage: 4.48,
currentPhase: kt.t("download_checking_files", {
ns: "download"
})
};
break;
case z_.ipcEvents.installer.INSTALLER_UPDATE_PK4_END:
n = {
...n,
isPausable: !1,
showProgress: !1,
progressUndeterminate: !1
};
break;
case z_.ipcEvents.installer.INSTALLER_DOWNLOAD_PROGRESS: {
const t = e.info.total > 0 && e.info.total < 107374182400;
n = {
...n,
isPausable: !0,
showProgress: !0,
currentPhase: kt.t("download_base_pack", {
ns: "download"
}),
downloaded: t ? e.info.downloaded : 0,
total: t ? e.info.total : 0,
percentage: t ? e.info.downloaded / e.info.total * 100 : 0,
filesDone: 0,
filesTotal: 1
}
}
break;
case z_.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_PROGRESS: {
const r = e.info.total > 0 && e.info.total < 107374182400 && e.info.filesTotal > 0;
n = {
...n,
showProgress: !0,
currentPhase: kt.t("download_updating_game_files", {
ns: "download"
}),
downloaded: r ? e.info.downloaded : 0,
total: r ? e.info.total : 0,
percentage: r ? e.info.downloaded / e.info.total * 100 : 0,
filesDone: r ? e.info.filesDone : 0,
filesTotal: r ? e.info.filesTotal : 0,
isPausable: (null === t || void 0 === t ? void 0 : t.filesDone) !== (null === t || void 0 === t ? void 0 : t.filesTotal)
}
}
break;
case z_.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_START:
break;
case z_.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_END:
n = {
...n,
isPausable: !1
};
break;
case z_.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_PROGRESS: {
const r = e.info.total > 0 && e.info.total < 107374182400 && e.info.filesTotal > 0;
n = {
...n,
showProgress: !0,
currentPhase: kt.t("download_updating_game_content", {
ns: "download"
}),
downloaded: r ? e.info.downloaded : 0,
total: r ? e.info.total : 0,
percentage: r ? e.info.downloaded / e.info.total * 100 : 0,
filesDone: r ? e.info.filesDone : 0,
filesTotal: r ? e.info.filesTotal : 0,
isPausable: (null === t || void 0 === t ? void 0 : t.filesDone) !== (null === t || void 0 === t ? void 0 : t.filesTotal)
}
}
}
return n
},
mx = (e, t) => e.find((e => e.game.gameId === t.gameId && e.game.channelId === t.channelId)),
gx = (e, t) => e.find((e => e.gameId === t.gameId && e.channelId === t.channelId)),
vx = e => e.find((e => e.status === z_.InstallationStatus.IN_PROGRESS || e.status === z_.InstallationStatus.PAUSED || e.status === z_.InstallationStatus.CANCELLING)),
_x = e => e.find((e => e.status === z_.InstallationStatus.CANCELLING)),
yx = (e, t) => `${e.gameId}-${e.channelId}` === `${t.gameId}-${t.channelId}`,
bx = (e, t) => e.filter((e => !yx(e.game, t))),
xx = async (e, t) => {
const {
application: n,
agreements: r
} = Pk.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()
}, wx = (e, t, n, r) => e.map((e => yx(e.game, t) ? {
...e,
status: n,
options: null !== r && void 0 !== r ? r : e.options
} : e)), kx = (e, t) => e + (Math.floor(Math.random() * t) + 1), Ex = () => ({
queryKey: ["library"],
queryFn: async () => sx.games.getLibrary()
});
var Sx = class extends vb {
constructor(e) {
super(), this.#g = !1, this.#a = e.defaultOptions, this.#v(e.options), this.#s = [], this.#_ = e.cache, this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#y = e.state || function(e) {
const t = "function" === typeof e.initialData ? e.initialData() : e.initialData,
n = "undefined" !== typeof t,
r = n ? "function" === typeof e.initialDataUpdatedAt ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
return {
data: t,
dataUpdateCount: 0,
dataUpdatedAt: n ? r ?? Date.now() : 0,
error: null,
errorUpdateCount: 0,
errorUpdatedAt: 0,
fetchFailureCount: 0,
fetchFailureReason: null,
fetchMeta: null,
isInvalidated: !1,
status: n ? "success" : "pending",
fetchStatus: "idle"
}
}(this.options), this.state = this.#y, this.scheduleGc()
}
#y;
#b;
#_;
#x;
#l;
#s;
#a;
#g;
get meta() {
return this.options.meta
}
#v(e) {
this.options = {
...this.#a,
...e
}, this.updateGcTime(this.options.gcTime)
}
optionalRemove() {
this.#s.length || "idle" !== this.state.fetchStatus || this.#_.remove(this)
}
setData(e, t) {
const n = (0, mb.oE)(this.state.data, e, this.options);
return this.#c({
data: n,
type: "success",
dataUpdatedAt: t?.updatedAt,
manual: t?.manual
}), n
}
setState(e, t) {
this.#c({
type: "setState",
state: e,
setStateOptions: t
})
}
cancel(e) {
const t = this.#x;
return this.#l?.cancel(e), t ? t.then(mb.ZT).catch(mb.ZT) : Promise.resolve()
}
destroy() {
super.destroy(), this.cancel({
silent: !0
})
}
reset() {
this.destroy(), this.setState(this.#y)
}
isActive() {
return this.#s.some((e => !1 !== e.options.enabled))
}
isDisabled() {
return this.getObserversCount() > 0 && !this.isActive()
}
isStale() {
return this.state.isInvalidated || !this.state.dataUpdatedAt || this.#s.some((e => e.getCurrentResult().isStale))
}
isStaleByTime(e = 0) {
return this.state.isInvalidated || !this.state.dataUpdatedAt || !(0, mb.Kp)(this.state.dataUpdatedAt, e)
}
onFocus() {
const e = this.#s.find((e => e.shouldFetchOnWindowFocus()));
e?.refetch({
cancelRefetch: !1
}), this.#l?.continue()
}
onOnline() {
const e = this.#s.find((e => e.shouldFetchOnReconnect()));
e?.refetch({
cancelRefetch: !1
}), this.#l?.continue()
}
addObserver(e) {
this.#s.includes(e) || (this.#s.push(e), this.clearGcTimeout(), this.#_.notify({
type: "observerAdded",
query: this,
observer: e
}))
}
removeObserver(e) {
this.#s.includes(e) && (this.#s = this.#s.filter((t => t !== e)), this.#s.length || (this.#l && (this.#g ? this.#l.cancel({
revert: !0
}) : this.#l.cancelRetry()), this.scheduleGc()), this.#_.notify({
type: "observerRemoved",
query: this,
observer: e
}))
}
getObserversCount() {
return this.#s.length
}
invalidate() {
this.state.isInvalidated || this.#c({
type: "invalidate"
})
}
fetch(e, t) {
if ("idle" !== this.state.fetchStatus)
if (this.state.dataUpdatedAt && t?.cancelRefetch) this.cancel({
silent: !0
});
else if (this.#x) return this.#l?.continueRetry(), this.#x;
if (e && this.#v(e), !this.options.queryFn) {
const e = this.#s.find((e => e.options.queryFn));
e && this.#v(e.options)
}
const n = new AbortController,
r = {
queryKey: this.queryKey,
meta: this.meta
},
i = e => {
Object.defineProperty(e, "signal", {
enumerable: !0,
get: () => (this.#g = !0, n.signal)
})
};
i(r);
const a = {
fetchOptions: t,
options: this.options,
queryKey: this.queryKey,
state: this.state,
fetchFn: () => this.options.queryFn ? (this.#g = !1, this.options.persister ? this.options.persister(this.options.queryFn, r, this) : this.options.queryFn(r)) : Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`))
};
i(a), this.options.behavior?.onFetch(a, this), this.#b = this.state, "idle" !== this.state.fetchStatus && this.state.fetchMeta === a.fetchOptions?.meta || this.#c({
type: "fetch",
meta: a.fetchOptions?.meta
});
const o = e => {
Eb(e) && e.silent || this.#c({
type: "error",
error: e
}), Eb(e) || (this.#_.config.onError?.(e, this), this.#_.config.onSettled?.(this.state.data, e, this)), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1
};
return this.#l = Sb({
fn: a.fetchFn,
abort: n.abort.bind(n),
onSuccess: e => {
"undefined" !== typeof e ? (this.setData(e), this.#_.config.onSuccess?.(e, this), this.#_.config.onSettled?.(e, this.state.error, this), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1) : o(new Error(`${this.queryHash} data is undefined`))
},
onError: o,
onFail: (e, t) => {
this.#c({
type: "failed",
failureCount: e,
error: t
})
},
onPause: () => {
this.#c({
type: "pause"
})
},
onContinue: () => {
this.#c({
type: "continue"
})
},
retry: a.options.retry,
retryDelay: a.options.retryDelay,
networkMode: a.options.networkMode
}), this.#x = this.#l.promise, this.#x
}
#c(e) {
this.state = (t => {
switch (e.type) {
case "failed":
return {
...t, fetchFailureCount: e.failureCount, fetchFailureReason: e.error
};
case "pause":
return {
...t, fetchStatus: "paused"
};
case "continue":
return {
...t, fetchStatus: "fetching"
};
case "fetch":
return {
...t, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: e.meta ?? null, fetchStatus: wb(this.options.networkMode) ? "fetching" : "paused", ...!t.dataUpdatedAt && {
error: null,
status: "pending"
}
};
case "success":
return {
...t, data: e.data, dataUpdateCount: t.dataUpdateCount + 1, dataUpdatedAt: e.dataUpdatedAt ?? Date.now(), error: null, isInvalidated: !1, status: "success", ...!e.manual && {
fetchStatus: "idle",
fetchFailureCount: 0,
fetchFailureReason: null
}
};
case "error":
const n = e.error;
return Eb(n) && n.revert && this.#b ? {
...this.#b,
fetchStatus: "idle"
} : {
...t,
error: n,
errorUpdateCount: t.errorUpdateCount + 1,
errorUpdatedAt: Date.now(),
fetchFailureCount: t.fetchFailureCount + 1,
fetchFailureReason: n,
fetchStatus: "idle",
status: "error"
};
case "invalidate":
return {
...t, isInvalidated: !0
};
case "setState":
return {
...t, ...e.state
}
}
})(this.state), gb.batch((() => {
this.#s.forEach((e => {
e.onQueryUpdate()
})), this.#_.notify({
query: this,
type: "updated",
action: e
})
}))
}
};
var Ox = class extends _b.l {
constructor(e = {}) {
super(), this.config = e, this.#w = new Map
}
#w;
build(e, t, n) {
const r = t.queryKey,
i = t.queryHash ?? (0, mb.Rm)(r, t);
let a = this.get(i);
return a || (a = new Sx({
cache: this,
queryKey: r,
queryHash: i,
options: e.defaultQueryOptions(t),
state: n,
defaultOptions: e.getQueryDefaults(r)
}), this.add(a)), a
}
add(e) {
this.#w.has(e.queryHash) || (this.#w.set(e.queryHash, e), this.notify({
type: "added",
query: e
}))
}
remove(e) {
const t = this.#w.get(e.queryHash);
t && (e.destroy(), t === e && this.#w.delete(e.queryHash), this.notify({
type: "removed",
query: e
}))
}
clear() {
gb.batch((() => {
this.getAll().forEach((e => {
this.remove(e)
}))
}))
}
get(e) {
return this.#w.get(e)
}
getAll() {
return [...this.#w.values()]
}
find(e) {
const t = {
exact: !0,
...e
};
return this.getAll().find((e => (0, mb._x)(t, e)))
}
findAll(e = {}) {
const t = this.getAll();
return Object.keys(e).length > 0 ? t.filter((t => (0, mb._x)(e, t))) : t
}
notify(e) {
gb.batch((() => {
this.listeners.forEach((t => {
t(e)
}))
}))
}
onFocus() {
gb.batch((() => {
this.getAll().forEach((e => {
e.onFocus()
}))
}))
}
onOnline() {
gb.batch((() => {
this.getAll().forEach((e => {
e.onOnline()
}))
}))
}
},
Px = class extends _b.l {
constructor(e = {}) {
super(), this.config = e, this.#k = [], this.#E = 0
}
#k;
#E;
#S;
build(e, t, n) {
const r = new Ob({
mutationCache: this,
mutationId: ++this.#E,
options: e.defaultMutationOptions(t),
state: n
});
return this.add(r), r
}
add(e) {
this.#k.push(e), this.notify({
type: "added",
mutation: e
})
}
remove(e) {
this.#k = this.#k.filter((t => t !== e)), this.notify({
type: "removed",
mutation: e
})
}
clear() {
gb.batch((() => {
this.#k.forEach((e => {
this.remove(e)
}))
}))
}
getAll() {
return this.#k
}
find(e) {
const t = {
exact: !0,
...e
};
return this.#k.find((e => (0, mb.X7)(t, e)))
}
findAll(e = {}) {
return this.#k.filter((t => (0, mb.X7)(e, t)))
}
notify(e) {
gb.batch((() => {
this.listeners.forEach((t => {
t(e)
}))
}))
}
resumePausedMutations() {
return this.#S = (this.#S ?? Promise.resolve()).then((() => {
const e = this.#k.filter((e => e.state.isPaused));
return gb.batch((() => e.reduce(((e, t) => e.then((() => t.continue().catch(mb.ZT)))), Promise.resolve())))
})).then((() => {
this.#S = void 0
})), this.#S
}
};
function Ix(e) {
return {
onFetch: (t, n) => {
const r = async () => {
const n = t.options,
r = t.fetchOptions?.meta?.fetchMore?.direction,
i = t.state.data?.pages || [],
a = t.state.data?.pageParams || [],
o = {
pages: [],
pageParams: []
};
let s = !1;
const l = t.options.queryFn || (() => Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),
c = async (e, n, r) => {
if (s) return Promise.reject();
if (null == n && e.pages.length) return Promise.resolve(e);
const i = {
queryKey: t.queryKey,
pageParam: n,
direction: r ? "backward" : "forward",
meta: t.options.meta
};
var a;
a = i, Object.defineProperty(a, "signal", {
enumerable: !0,
get: () => (t.signal.aborted ? s = !0 : t.signal.addEventListener("abort", (() => {
s = !0
})), t.signal)
});
const o = await l(i),
{
maxPages: c
} = t.options,
u = r ? mb.Ht : mb.VX;
return {
pages: u(e.pages, o, c),
pageParams: u(e.pageParams, n, c)
}
};
let u;
if (r && i.length) {
const e = "backward" === r,
t = {
pages: i,
pageParams: a
},
o = (e ? Cx : Ax)(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 = Ax(n, u);
u = await c(u, e)
}
}
return u
};
t.options.persister ? t.fetchFn = () => t.options.persister?.(r, {
queryKey: t.queryKey,
meta: t.options.meta,
signal: t.signal
}, n) : t.fetchFn = r
}
}
}
function Ax(e, {
pages: t,
pageParams: n
}) {
const r = t.length - 1;
return e.getNextPageParam(t[r], t, n[r], n)
}
function Cx(e, {
pages: t,
pageParams: n
}) {
return e.getPreviousPageParam?.(t[0], t, n[0], n)
}
const Rx = async e => {
switch (!0) {
case e instanceof m_:
return await Pk.getState().authentication.actions.logout(), void await Pk.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: kt.t("error_api_denied_request_title", {
ns: "errors"
}),
content: e.message
});
case e instanceof g_:
await Pk.getState().authentication.actions.logout(), await Pk.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: kt.t("error_api_too_many_requests_title", {
ns: "errors"
}),
content: e.message
});
break;
case e instanceof y_:
return await Pk.getState().authentication.actions.logout(), va(RE.HOME), void await Pk.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: kt.t("error_network_issue_title", {
ns: "errors"
}),
content: kt.t("error_network_issue_content", {
ns: "errors"
})
});
case e instanceof r_:
return await Pk.getState().authentication.actions.logout(), va(RE.HOME), void await Pk.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: kt.t("error_api_auth_expired_title", {
ns: "errors"
}),
content: e.message
});
case e instanceof u_:
await Pk.getState().authentication.actions.logout(), await Pk.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: kt.t("error_api_auth_expired_title", {
ns: "errors"
}),
content: kt.t("error_api_auth_expired_content", {
ns: "errors"
})
});
break;
case e instanceof p_:
case e instanceof t_:
case e instanceof d_:
case e instanceof $_:
case e instanceof n_:
case e instanceof s_:
case e instanceof l_:
break;
case e instanceof a_:
Pk.getState().authentication.actions.logout(), await Pk.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: kt.t("error_generic_title", {
ns: "errors"
}),
content: e.message
});
break;
case e instanceof o_:
case e instanceof c_:
case e instanceof b_:
break;
default:
await Pk.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: kt.t("error_generic_title", {
ns: "errors"
}),
content: e.message
})
}
}, Tx = new class {
#O;
#o;
#a;
#P;
#I;
#A;
#C;
#R;
constructor(e = {}) {
this.#O = e.queryCache || new Ox, this.#o = e.mutationCache || new Px, this.#a = e.defaultOptions || {}, this.#P = new Map, this.#I = new Map, this.#A = 0
}
mount() {
this.#A++, 1 === this.#A && (this.#C = yb.subscribe((() => {
yb.isFocused() && (this.resumePausedMutations(), this.#O.onFocus())
})), this.#R = bb.N.subscribe((() => {
bb.N.isOnline() && (this.resumePausedMutations(), this.#O.onOnline())
})))
}
unmount() {
this.#A--, 0 === this.#A && (this.#C?.(), this.#C = void 0, this.#R?.(), this.#R = void 0)
}
isFetching(e) {
return this.#O.findAll({
...e,
fetchStatus: "fetching"
}).length
}
isMutating(e) {
return this.#o.findAll({
...e,
status: "pending"
}).length
}
getQueryData(e) {
return this.#O.find({
queryKey: e
})?.state.data
}
ensureQueryData(e) {
const t = this.getQueryData(e.queryKey);
return void 0 !== t ? Promise.resolve(t) : this.fetchQuery(e)
}
getQueriesData(e) {
return this.getQueryCache().findAll(e).map((({
queryKey: e,
state: t
}) => [e, t.data]))
}
setQueryData(e, t, n) {
const r = this.#O.find({
queryKey: e
})?.state.data,
i = (0, mb.SE)(t, r);
if ("undefined" === typeof i) return;
const a = this.defaultQueryOptions({
queryKey: e
});
return this.#O.build(this, a).setData(i, {
...n,
manual: !0
})
}
setQueriesData(e, t, n) {
return gb.batch((() => this.getQueryCache().findAll(e).map((({
queryKey: e
}) => [e, this.setQueryData(e, t, n)]))))
}
getQueryState(e) {
return this.#O.find({
queryKey: e
})?.state
}
removeQueries(e) {
const t = this.#O;
gb.batch((() => {
t.findAll(e).forEach((e => {
t.remove(e)
}))
}))
}
resetQueries(e, t) {
const n = this.#O,
r = {
type: "active",
...e
};
return gb.batch((() => (n.findAll(e).forEach((e => {
e.reset()
})), this.refetchQueries(r, t))))
}
cancelQueries(e = {}, t = {}) {
const n = {
revert: !0,
...t
},
r = gb.batch((() => this.#O.findAll(e).map((e => e.cancel(n)))));
return Promise.all(r).then(mb.ZT).catch(mb.ZT)
}
invalidateQueries(e = {}, t = {}) {
return gb.batch((() => {
if (this.#O.findAll(e).forEach((e => {
e.invalidate()
})), "none" === e.refetchType) return Promise.resolve();
const n = {
...e,
type: e.refetchType ?? e.type ?? "active"
};
return this.refetchQueries(n, t)
}))
}
refetchQueries(e = {}, t) {
const n = {
...t,
cancelRefetch: t?.cancelRefetch ?? !0
},
r = gb.batch((() => this.#O.findAll(e).filter((e => !e.isDisabled())).map((e => {
let t = e.fetch(void 0, n);
return n.throwOnError || (t = t.catch(mb.ZT)), "paused" === e.state.fetchStatus ? Promise.resolve() : t
}))));
return Promise.all(r).then(mb.ZT)
}
fetchQuery(e) {
const t = this.defaultQueryOptions(e);
"undefined" === typeof t.retry && (t.retry = !1);
const n = this.#O.build(this, t);
return n.isStaleByTime(t.staleTime) ? n.fetch(t) : Promise.resolve(n.state.data)
}
prefetchQuery(e) {
return this.fetchQuery(e).then(mb.ZT).catch(mb.ZT)
}
fetchInfiniteQuery(e) {
return e.behavior = Ix(e.pages), this.fetchQuery(e)
}
prefetchInfiniteQuery(e) {
return this.fetchInfiniteQuery(e).then(mb.ZT).catch(mb.ZT)
}
resumePausedMutations() {
return this.#o.resumePausedMutations()
}
getQueryCache() {
return this.#O
}
getMutationCache() {
return this.#o
}
getDefaultOptions() {
return this.#a
}
setDefaultOptions(e) {
this.#a = e
}
setQueryDefaults(e, t) {
this.#P.set((0, mb.Ym)(e), {
queryKey: e,
defaultOptions: t
})
}
getQueryDefaults(e) {
const t = [...this.#P.values()];
let n = {};
return t.forEach((t => {
(0, mb.to)(e, t.queryKey) && (n = {
...n,
...t.defaultOptions
})
})), n
}
setMutationDefaults(e, t) {
this.#I.set((0, mb.Ym)(e), {
mutationKey: e,
defaultOptions: t
})
}
getMutationDefaults(e) {
const t = [...this.#I.values()];
let n = {};
return t.forEach((t => {
(0, mb.to)(e, t.mutationKey) && (n = {
...n,
...t.defaultOptions
})
})), n
}
defaultQueryOptions(e) {
if (e?._defaulted) return e;
const t = {
...this.#a.queries,
...e?.queryKey && this.getQueryDefaults(e.queryKey),
...e,
_defaulted: !0
};
return t.queryHash || (t.queryHash = (0, mb.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 : {
...this.#a.mutations,
...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
...e,
_defaulted: !0
}
}
clear() {
this.#O.clear(), this.#o.clear()
}
}({
defaultOptions: {
queries: {
gcTime: 12e5,
staleTime: 3e5
}
},
mutationCache: new Px({
onError: async e => {
await Rx(e), window.launcherAPI.log.error("[Mutation] Error: ", e)
}
}),
queryCache: new Ox({
onError: async e => {
await Rx(e), window.launcherAPI.log.error("[Query] Error: ", e)
}
})
}), Dx = (e, t) => ({
agreements: {
warningHasBeenAccepted: !1,
actions: {
checkWarnings: async () => {
const n = t();
try {
const t = await Tx.fetchQuery({
queryKey: ["warnings"],
queryFn: async () => sx.agreements.getWarnings()
}),
r = t ? t[0] : null;
if (!(r && r.id && !n.agreements.warningHasBeenAccepted)) return !0;
const i = await Tx.fetchQuery((e => ({
queryKey: ["warningInfo"],
queryFn: async () => sx.agreements.getWarningInfo(e)
}))(r.id)),
{
title: a,
body: o
} = i,
s = await n.dialog.actions.showWarningsDialog(a, o);
return e((e => ({
agreements: {
...e.agreements,
warningHasBeenAccepted: s.resolved
}
}))), s.resolved
} catch (r) {
return console.error("[Warnings] warnings error", r), !1
}
},
checkAgreements: async () => {
const e = t();
try {
const t = await Tx.fetchQuery({
queryKey: ["agreements"],
queryFn: async () => sx.agreements.checkAgreements()
});
return t.auth ? await e.agreements.actions.checkWarnings() : t.auth
} catch (n) {
return n instanceof c_ && e.agreements.actions.checkAgreementsFailure(n)
}
},
async checkAgreementsFailure(e) {
var n;
const r = null !== (n = e.payload.agreements) && void 0 !== n ? n : [],
i = t();
try {
const e = [ox.EULA, ox.TOS, ox.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
}
},
displayAgreement: async n => {
const r = t(),
[i, ...a] = n;
e((e => ({
installer: {
...e.installer,
isDownloadPopoverOpened: !1
}
})));
try {
const e = await Tx.fetchQuery(((e, t) => ({
queryKey: ["agreementInfo"],
queryFn: async () => sx.agreements.getAgreementInfo(e, t)
}))(i.id, i.type)),
{
title: t,
subtitle: n,
body: o
} = e,
s = await r.dialog.actions.showAgreementsDialog(t, n, o);
if (s.resolved) {
await Tx.fetchQuery(((e, t) => ({
queryKey: ["agreementAccept"],
queryFn: async () => sx.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()
}
return s.resolved
} catch (o) {
if (o instanceof Error) {
const e = new z_.GenericError({
code: z_.errorsNames.ERR_DISPLAY_AGREEMENT,
message: `[Agreement] displaying agreements error ${o}`,
payload: {
error: o
}
});
await ux(dx(e))
}
return console.error("[Agreements] - error displaying agreements", o), !1
}
}
}
}
}), Nx = (e = {
launcherVersion: "unknown",
patcherVersion: "unknown",
environment: "prod"
}, t = !1, n = !1, r = !1, i = !1, a, o = !1, s = !1, l = !1, c = {
appLayoutWipe: {
isAnimating: !0,
animType: "out"
},
gamePageEntering: {
isAnimating: !1,
animState: ""
}
}) => ({
launcherVersion: e.launcherVersion,
patcherVersion: e.patcherVersion,
platformMaster: e.environment,
isGameRunning: t,
isWindowMinimized: r,
isStatusPopoverOpened: i,
isDownloadPopoverOpened: o,
nonOperationalStatus: a,
isAppInitialized: n,
readyToPlay: s,
isDiscoverStarted: l,
animations: c
}), Lx = (e, t) => ({
application: {
...Nx(),
actions: {
initializeApplication: async () => {
const {
launcherVersion: t,
patcherVersion: n,
environment: r
} = await window.launcherAPI.game.getGlobalConfig(), i = await window.launcherAPI.game.isGameProcessRunning(), a = Nx({
launcherVersion: t,
patcherVersion: n,
environment: r
}, i, !0);
e((e => ({
application: {
...e.application,
...a
}
})))
},
toggleDownloadPopoverOpened: () => {
const {
application: e
} = t();
e.actions.setDownloadPopoverOpened(!e.isDownloadPopoverOpened)
},
setDownloadPopoverOpened: n => {
const {
installer: r
} = t();
n || r.actions.clearCompletedInstallations(), e((e => ({
application: {
...e.application,
isDownloadPopoverOpened: n
}
})))
},
setStatusPopoverOpened: t => {
e((e => ({
application: {
...e.application,
isStatusPopoverOpened: t
}
})))
},
setNonOperationalStatus: t => {
e((e => ({
application: {
...e.application,
nonOperationalStatus: t
}
})))
},
setWindowMinimized: t => {
e((e => ({
application: {
...e.application,
isWindowMinimized: t
}
})))
},
resetApplication: () => e((e => ({
application: {
...e.application,
...Nx(),
launcherVersion: e.application.launcherVersion,
patcherVersion: e.application.patcherVersion,
platformMaster: e.application.platformMaster
}
}))),
isMinimumWindowsVersion: async () => {
const e = t(),
{
osMetMinimumRequirements: n
} = await window.launcherAPI.game.getGlobalConfig();
return n || (await e.dialog.actions.showOsRequirementsDialog(e.library.channelSelected), !1)
},
isRespectingCPUCapabilites: async () => {
const e = t(),
{
cpuMetRequirements: n
} = await window.launcherAPI.game.getGlobalConfig();
return n || (await e.dialog.actions.showCpuRequirementsDialog(), !1)
},
setAnimatingAppLayoutWipe: (t, n) => {
e((e => ({
application: {
...e.application,
animations: {
appLayoutWipe: {
animType: t,
isAnimating: n || !1
}
}
}
})))
},
setAnimatingGamePageEntering: (t, n) => {
e((e => ({
application: {
...e.application,
animations: {
gamePageEntering: {
isAnimating: t,
animState: n || ""
}
}
}
})))
},
setDiscoverStarted: t => {
e((e => ({
application: {
...e.application,
isDiscoverStarted: null !== t && void 0 !== t ? t : e.application.isDiscoverStarted
}
})))
}
}
}
}), jx = (e = null) => ({
typeAuth: "password",
captcha: null,
mfaAuthenticationInfo: null,
session: e,
trackingMetricsId: null
}), Mx = (e, t) => ({
authentication: {
...jx(),
actions: {
initializeAuthentication: async () => {
const t = await window.launcherAPI.store.getValueFromStore("session");
e((e => ({
authentication: {
...e.authentication,
session: t
}
})))
},
fetchCaptcha: async () => {
const t = await sx.authentication.getCaptcha();
e((e => ({
authentication: {
...e.authentication,
captcha: t
}
})))
},
logout: async () => {
const e = t();
try {
window.launcherAPI.store.setValueToStore("session", null), window.launcherAPI.store.setValueToStore("identity", null), e.authentication.actions.resetAuthentication(), e.application.actions.resetApplication(), e.user.actions.resetUser();
(e.user.sessions[e.application.platformMaster] && Object.keys(e.user.sessions[e.application.platformMaster] || {}).length > 0 ? e.user.sessions[e.application.platformMaster] : null) && sx.authentication.signOut(), sx.rsi.session = null, D_().authentication.setSignOut()
} catch (n) {
if (n instanceof Error) {
const e = new z_.GenericError({
code: z_.errorsNames.ERR_LOGOUT_FAILED,
message: `[Logout] Error: Failed ${n}`,
payload: null
});
throw await ux(dx(e)), n
}
}
},
resetAuthentication: () => e((e => ({
authentication: {
...e.authentication,
...jx()
}
})))
}
}
});
let zx = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
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"
}))
},
Fx = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
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"
}))
},
Ux = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
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"
}))
},
Vx = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
fillRule: "evenodd",
d: "M3.068 12.967a7 7 0 1 0 9.864-9.934 7 7 0 0 0-9.864 9.934Zm.549-1.644a5.5 5.5 0 0 1 7.706-7.706l-7.706 7.706Zm1.06 1.06 7.707-7.705a5.5 5.5 0 0 1-7.706 7.706Z",
clipRule: "evenodd"
}))
},
Gx = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
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"
}))
},
Bx = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
fillRule: "evenodd",
d: "M2.5 3.8v6h8.815a2 2 0 0 1 1.302.481l.883.758V3.8h-11ZM15 3.3a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h9.315a.5.5 0 0 1 .325.12l2.535 2.172a.5.5 0 0 0 .825-.38V3.3Z",
clipRule: "evenodd"
}))
},
$x = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
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"
}))
},
qx = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
fillRule: "evenodd",
d: "M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Z",
clipRule: "evenodd"
}), Pe.createElement("path", {
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"
}))
},
Wx = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
d: "M7.25 1h1.5v3.519l.6-.598A.75.75 0 1 1 10.387 5l-1.86 1.856a.748.748 0 0 1-1.055 0L5.463 5a.748.748 0 0 1 .481-1.326c.22 0 .419.095.556.247l.75.598V.999Zm5.25 10.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"
}), Pe.createElement("path", {
fillRule: "evenodd",
d: "M2.5 3.75c0-.69.56-1.25 1.25-1.25H6V1H3.75A2.75 2.75 0 0 0 1 3.75v8.5A2.75 2.75 0 0 0 3.75 15h8.5A2.75 2.75 0 0 0 15 12.25v-8.5A2.75 2.75 0 0 0 12.25 1H10v1.5h2.25c.69 0 1.25.56 1.25 1.25V8.5h-11V3.75Zm0 6.25v2.25c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V10h-11Z",
clipRule: "evenodd"
}))
},
Hx = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
d: "M1.716 13.5a.75.75 0 0 0 0 1.5H14.25a.75.75 0 1 0-.023-1.5H1.716Z"
}))
},
Yx = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
d: "M2.475 3.137a.974.974 0 0 0-.975.971v9.23c0 .537.437.972.975.972h9.267a.974.974 0 0 0 .976-.972V8.45a.73.73 0 0 0-.732-.729.73.73 0 0 0-.73.76l-.001 4.372H2.963V4.594h3.902v-.002a.73.73 0 0 0 .67-.727.73.73 0 0 0-.67-.726v-.002h-4.39Z"
}), Pe.createElement("path", {
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"
}))
},
Kx = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
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"
}))
},
Qx = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
fillRule: "evenodd",
d: "M3.01 2.715v10.57L12.588 8 3.01 2.715Zm10.9 4.307a1.105 1.105 0 0 1 0 1.956L3.272 14.847c-.788.435-1.773-.109-1.773-.978V2.13c0-.87.985-1.413 1.773-.978l10.636 5.869Z",
clipRule: "evenodd"
}))
},
Zx = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
fillRule: "evenodd",
d: "m7.334 3.874-.782.295a4.088 4.088 0 0 0-1.151.66l-.648.533-1.32-.455-.396.687 1.056.917-.135.825a4.1 4.1 0 0 0-.06.664c0 .208.021.426.06.664l.135.825-1.056.917.396.688 1.32-.455.648.532c.335.274.723.498 1.151.66l.782.295.268 1.374h.793l.268-1.374.782-.295a4.09 4.09 0 0 0 1.15-.66l.649-.532 1.32.455.396-.688-1.056-.917.135-.825c.038-.238.06-.456.06-.664 0-.208-.022-.426-.06-.664l-.135-.825 1.056-.917-.397-.687-1.319.455-.648-.532a4.088 4.088 0 0 0-1.151-.66l-.782-.296L8.395 2.5h-.793l-.268 1.374Zm2.641-1.108L9.71 1.404A.5.5 0 0 0 9.219 1H6.778a.5.5 0 0 0-.49.404L6.02 2.766a5.588 5.588 0 0 0-1.572.904l-1.307-.45a.5.5 0 0 0-.596.222l-1.22 2.116a.5.5 0 0 0 .105.627l1.047.91c-.048.295-.08.596-.08.905 0 .309.032.61.08.905l-1.047.91a.5.5 0 0 0-.105.627l1.22 2.116a.5.5 0 0 0 .596.223l1.307-.451a5.59 5.59 0 0 0 1.572.904l.266 1.362a.5.5 0 0 0 .49.404H9.22a.5.5 0 0 0 .49-.404l.266-1.362a5.59 5.59 0 0 0 1.573-.904l1.306.45a.5.5 0 0 0 .596-.222l1.22-2.116a.5.5 0 0 0-.104-.627l-1.047-.91c.048-.295.08-.596.08-.905 0-.309-.032-.61-.08-.905l1.047-.91a.5.5 0 0 0 .105-.627l-1.22-2.116a.5.5 0 0 0-.597-.223l-1.306.451a5.587 5.587 0 0 0-1.573-.904Z",
clipRule: "evenodd"
}), Pe.createElement("path", {
fillRule: "evenodd",
d: "M9 8a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm1.5 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z",
clipRule: "evenodd"
}))
},
Xx = 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 Pe.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 ? Pe.createElement("title", {
id: n
}, t) : null, Pe.createElement("path", {
fillRule: "evenodd",
d: "M8 3.184 2.675 13.431h10.65L8 3.184Zm.887-1.545a1 1 0 0 0-1.775 0L.965 13.47a1 1 0 0 0 .887 1.461h12.296a1 1 0 0 0 .887-1.46L8.887 1.638Z",
clipRule: "evenodd"
}), Pe.createElement("path", {
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"
}))
};
const Jx = "autoUpdate",
ew = (e, t = {}) => kt.t(e, {
ns: Jx,
...t
}),
tw = (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: ew("auto_update_dialog_close"),
title: ew("auto_update_dialog_title"),
onOpenChange: () => {
r()
}
};
switch (t.state) {
case z_.AutoUpdateDialogStates.AVAILABLE:
return {
...a, children: (0, zb.jsxs)(zb.Fragment, {
children: [(0, zb.jsx)(xl, {
variant: "emphasis-s",
as: "h4",
children: ew("auto_update_dialog_sub_title", {
version: t.updateInfo.version
})
}), (0, zb.jsx)(gt, {
i18nKey: "auto_update_dialog_update_available_content",
t: kt.t,
ns: Jx,
components: [(0, zb.jsx)("br", {})]
})]
}), actions: [{
label: ew("auto_update_dialog_update_available_action_secondary_label")
}, {
label: ew("auto_update_dialog_update_available_action_primary_label"),
onClick: () => i()
}]
};
case z_.AutoUpdateDialogStates.ERROR:
return {
...a, type: "negative", children: (0, zb.jsxs)(zb.Fragment, {
children: [(0, zb.jsx)(xl, {
variant: "emphasis-s",
as: "h4",
children: ew("auto_update_dialog_sub_title", {
version: t.updateInfo.version
})
}), (0, zb.jsx)(gt, {
i18nKey: "auto_update_dialog_update_install_failed_content",
t: kt.t,
ns: Jx,
components: [(0, zb.jsx)(ug, {
href: z_.configuration.supportUrl,
external: !0
})]
})]
}), actions: [{
label: ew("auto_update_dialog_update_install_failed_action_secondary_label")
}, {
label: ew("auto_update_dialog_update_install_failed_action_primary_label"),
onClick: () => i()
}]
};
case z_.AutoUpdateDialogStates.QUIT_GAME:
return {
...a, type: "negative", children: (0, zb.jsxs)(zb.Fragment, {
children: [(0, zb.jsx)(xl, {
variant: "emphasis-s",
as: "h4",
children: ew("auto_update_dialog_sub_title", {
version: t.updateInfo.version
})
}), ew("auto_update_dialog_update_quit_game_content")]
}), actions: [{
label: ew("auto_update_dialog_update_quit_game_action_secondary_label")
}, {
label: ew("auto_update_dialog_update_quit_game_action_primary_label"),
onClick: () => i(!0)
}]
};
default:
return {
...a, children: (0, zb.jsxs)(zb.Fragment, {
children: [(0, zb.jsx)(xl, {
variant: "emphasis-s",
as: "h4",
children: ew("auto_update_dialog_sub_title", {
version: t.updateInfo.version
})
}), (0, zb.jsx)(gt, {
i18nKey: "auto_update_dialog_no_update_content",
t: kt.t,
ns: Jx,
components: [(0, zb.jsx)("br", {})]
})]
}), actions: [{
label: ew("auto_update_dialog_no_update_action_primary_label")
}]
}
}
},
nw = {
dialog: {}
},
rw = (e, t) => ({
autoUpdate: {
...nw,
actions: {
async closeDialog() {
var n;
const r = t();
null === (n = window.launcherAPI.autoUpdate) || void 0 === n || n.dismissUpdate(), e({
autoUpdate: {
...r.autoUpdate,
dialog: {}
}
})
},
displayDialog(n) {
const r = t();
e({
autoUpdate: {
...r.autoUpdate,
dialog: tw(r, n)
}
})
}
}
}
});
var iw = function() {
return iw = 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
}, iw.apply(this, arguments)
},
aw = 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) {
var i = 0;
for (r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]])
}
return n
},
ow = Symbol("NiceModalId"),
sw = {},
lw = Pe.createContext(sw),
cw = Pe.createContext(null),
uw = {},
dw = {},
pw = 0,
hw = function() {
throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")
},
fw = function() {
return "_nice_modal_" + pw++
},
mw = function(e, t) {
var n, r, i;
switch (void 0 === e && (e = sw), t.type) {
case "nice-modal/show":
var a = t.payload,
o = a.modalId,
s = a.args;
return iw(iw({}, e), ((n = {})[o] = iw(iw({}, e[o]), {
id: o,
args: s,
visible: !!dw[o],
delayVisible: !dw[o]
}), n));
case "nice-modal/hide":
return e[o = t.payload.modalId] ? iw(iw({}, e), ((r = {})[o] = iw(iw({}, e[o]), {
visible: !1
}), r)) : e;
case "nice-modal/remove":
o = t.payload.modalId;
var l = iw({}, e);
return delete l[o], l;
case "nice-modal/set-flags":
var c = t.payload,
u = (o = c.modalId, c.flags);
return iw(iw({}, e), ((i = {})[o] = iw(iw({}, e[o]), u), i));
default:
return e
}
};
var gw = {},
vw = {},
_w = function(e) {
return "string" === typeof e ? e : (e[ow] || (e[ow] = fw()), e[ow])
};
function yw(e, t) {
var n = _w(e);
if ("string" === typeof e || uw[n] || kw(n, e), hw(function(e, t) {
return {
type: "nice-modal/show",
payload: {
modalId: e,
args: t
}
}
}(n, t)), !gw[n]) {
var r, i, a = new Promise((function(e, t) {
r = e, i = t
}));
gw[n] = {
resolve: r,
reject: i,
promise: a
}
}
return gw[n].promise
}
function bw(e) {
var t = _w(e);
if (hw(function(e) {
return {
type: "nice-modal/hide",
payload: {
modalId: e
}
}
}(t)), delete gw[t], !vw[t]) {
var n, r, i = new Promise((function(e, t) {
n = e, r = t
}));
vw[t] = {
resolve: n,
reject: r,
promise: i
}
}
return vw[t].promise
}
var xw = function(e) {
var t = _w(e);
hw(function(e) {
return {
type: "nice-modal/remove",
payload: {
modalId: e
}
}
}(t)), delete gw[t], delete vw[t]
};
function ww(e, t) {
var n = (0, Pe.useContext)(lw),
r = (0, Pe.useContext)(cw),
i = null,
a = e && "string" !== typeof e;
if (!(i = e ? _w(e) : r)) throw new Error("No modal id found in NiceModal.useModal.");
var o = i;
(0, Pe.useEffect)((function() {
a && !uw[o] && kw(o, e, t)
}), [a, o, e, t]);
var s = n[o],
l = (0, Pe.useCallback)((function(e) {
return yw(o, e)
}), [o]),
c = (0, Pe.useCallback)((function() {
return bw(o)
}), [o]),
u = (0, Pe.useCallback)((function() {
return xw(o)
}), [o]),
d = (0, Pe.useCallback)((function(e) {
var t;
null === (t = gw[o]) || void 0 === t || t.resolve(e), delete gw[o]
}), [o]),
p = (0, Pe.useCallback)((function(e) {
var t;
null === (t = gw[o]) || void 0 === t || t.reject(e), delete gw[o]
}), [o]),
h = (0, Pe.useCallback)((function(e) {
var t;
null === (t = vw[o]) || void 0 === t || t.resolve(e), delete vw[o]
}), [o]);
return (0, Pe.useMemo)((function() {
return {
id: o,
args: null === s || void 0 === s ? void 0 : s.args,
visible: !!(null === s || void 0 === s ? void 0 : s.visible),
keepMounted: !!(null === s || void 0 === s ? void 0 : s.keepMounted),
show: l,
hide: c,
remove: u,
resolve: d,
reject: p,
resolveHide: h
}
}), [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 kw = function(e, t, n) {
uw[e] ? uw[e].props = n : uw[e] = {
comp: t,
props: n
}
},
Ew = function() {
var e = (0, Pe.useContext)(lw),
t = Object.keys(e).filter((function(t) {
return !!e[t]
}));
t.forEach((function(e) {
uw[e] || dw[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 uw[e]
})).map((function(e) {
return iw({
id: e
}, uw[e])
}));
return Pe.createElement(Pe.Fragment, null, n.map((function(e) {
return Pe.createElement(e.comp, iw({
key: e.id,
id: e.id
}, e.props))
})))
},
Sw = function(e) {
var t = e.children,
n = (0, Pe.useReducer)(mw, sw),
r = n[0];
return hw = n[1], Pe.createElement(lw.Provider, {
value: r
}, t, Pe.createElement(Ew, null))
},
Ow = function(e) {
return {
visible: e.visible,
onOk: function() {
return e.hide()
},
onCancel: function() {
return e.hide()
},
afterClose: function() {
e.resolveHide(), e.keepMounted || e.remove()
}
}
},
Pw = function(e) {
return {
visible: e.visible,
onClose: function() {
return e.hide()
},
afterVisibleChange: function(t) {
t || e.resolveHide(), !t && !e.keepMounted && e.remove()
}
}
},
Iw = {
Provider: function(e) {
var t = e.children,
n = e.dispatch,
r = e.modals;
return n && r ? (hw = n, Pe.createElement(lw.Provider, {
value: r
}, t, Pe.createElement(Ew, null))) : Pe.createElement(Sw, null, t)
},
ModalDef: function(e) {
var t = e.id,
n = e.component;
return (0, Pe.useEffect)((function() {
return kw(t, n),
function() {
! function(e) {
delete uw[e]
}(t)
}
}), [t, n]), null
},
ModalHolder: function(e) {
var t, n = e.modal,
r = e.handler,
i = void 0 === r ? {} : r,
a = aw(e, ["modal", "handler"]),
o = (0, Pe.useMemo)((function() {
return fw()
}), []),
s = "string" === typeof n ? null === (t = uw[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, Pe.useCallback)((function(e) {
return yw(o, e)
}), [o]), i.hide = (0, Pe.useCallback)((function() {
return bw(o)
}), [o]), Pe.createElement(s, iw({
id: o
}, a))
},
NiceModalContext: lw,
create: function(e) {
return function(t) {
var n, r = t.defaultVisible,
i = t.keepMounted,
a = t.id,
o = aw(t, ["defaultVisible", "keepMounted", "id"]),
s = ww(a),
l = s.args,
c = s.show,
u = (0, Pe.useContext)(lw),
d = !!u[a];
(0, Pe.useEffect)((function() {
return r && c(), dw[a] = !0,
function() {
delete dw[a]
}
}), [a, c, r]), (0, Pe.useEffect)((function() {
i && hw(function(e, t) {
return {
type: "nice-modal/set-flags",
payload: {
modalId: e,
flags: t
}
}
}(a, {
keepMounted: !0
}))
}), [a, i]);
var p = null === (n = u[a]) || void 0 === n ? void 0 : n.delayVisible;
return (0, Pe.useEffect)((function() {
p && c(l)
}), [p, l, c]), d ? Pe.createElement(cw.Provider, {
value: a
}, Pe.createElement(e, iw({}, o, l))) : null
}
},
register: kw,
getModal: function(e) {
var t;
return null === (t = uw[e]) || void 0 === t ? void 0 : t.comp
},
show: yw,
hide: bw,
remove: xw,
useModal: ww,
reducer: mw,
antdModal: Ow,
antdDrawer: Pw,
muiDialog: function(e) {
return {
open: e.visible,
onClose: function() {
return e.hide()
},
onExited: function() {
e.resolveHide(), !e.keepMounted && e.remove()
}
}
},
bootstrapDialog: function(e) {
return {
show: e.visible,
onHide: function() {
return e.hide()
},
onExited: function() {
e.resolveHide(), !e.keepMounted && e.remove()
}
}
}
};
const Aw = Iw;
class Cw extends Error {}
const Rw = async () => {
const e = Pk.getState().library,
t = Pk.getState().user,
n = e.channelSelected.platformId,
r = e.channelSelected.gameId;
if (!t.identity || !t.identity.username || !t.identity.heapAccountId) throw new Error("Identification of the user cannot be retrieved");
const i = await t.actions.getSession(n),
a = await Tx.fetchQuery(((e, t, n) => ({
queryKey: [`gameToken-${e}-${t}-${n.value}`],
queryFn: async () => sx.games.getGameToken(e, t, n)
}))(n, r, i));
return {
username: t.identity.username,
heapAccountId: t.identity.heapAccountId,
sessionToken: i,
gameToken: a
}
}, Tw = (e, t, n) => {
const r = e.find((({
id: e
}) => e === t.gameId)),
i = null === r || void 0 === r ? void 0 : r.channels.find((({
id: e
}) => e === t.channelId));
if (!r || !i) return e;
const a = r.channels.filter((e => e.id !== t.channelId)),
o = {
...r,
channels: [...a, {
...i,
status: n
}]
};
return [...e.filter((e => e.id !== t.gameId)), o]
}, Dw = async e => {
try {
var t, n, r, i, a, o, s, l;
const c = Pk.getState().settings,
{
gameId: u,
channelId: d,
gameName: p,
channelName: h,
platformId: f
} = e,
m = await Tx.fetchQuery(((e, t) => ({
queryKey: ["games", e, t],
queryFn: async () => sx.games.getRelease({
gameId: e,
channelId: t
})
}))(u, d)),
g = await c.actions.getChannelGameSettings({
platformId: f,
gameId: u,
gameName: p,
channelId: d,
channelName: h
});
return {
...m,
gameId: u,
gameName: p,
channelId: d,
channelName: h,
platformId: f,
eacSandbox: !1,
libraryFolder: c.library.defaultLibraryFolder,
servicesEndpoint: null !== (t = null === g || void 0 === g ? void 0 : g.servicesEndpoint) && void 0 !== t ? t : m.servicesEndpoint,
installDir: null !== (n = null === g || void 0 === g ? void 0 : g.installDir) && void 0 !== n ? n : m.installDir,
network: null !== (r = null === g || void 0 === g ? void 0 : g.network) && void 0 !== r ? r : m.network,
port: null !== (i = null !== (a = null === g || void 0 === g ? void 0 : g.port) && void 0 !== a ? a : m.universePort) && void 0 !== i ? i : 8e3,
hostname: null !== (o = null === g || void 0 === g ? void 0 : g.hostname) && void 0 !== o ? o : m.universeHost,
executable: null !== (s = null === g || void 0 === g ? void 0 : g.executable) && void 0 !== s ? s : m.executable,
launchOptions: null !== (l = null === g || void 0 === g ? void 0 : g.launchOptions) && void 0 !== l ? l : m.launchOptions
}
} catch (c) {
throw new Cw("We could not get any information about the game")
}
}, Nw = (e, t) => t > e, Lw = {
LIVE: 20,
PTU: 19,
SHADOW: 18,
QA: 17,
DEV: 16,
EPTU: 15,
KOSMODROM: 14,
CANAVERAL: 13,
THE_OCHO: 12,
STARBASE: 11,
SQ42: 10
}, jw = (e, t) => (Lw[t] || 0) - (Lw[e] || 0), Mw = "LIVE", zw = {
platformId: "prod",
gameId: "SC",
gameName: "Star Citizen",
channelId: Mw,
channelName: "Live Release"
}, Fw = (e = [], t = []) => ({
availableGames: t,
installedGames: e,
gameSelected: zw.gameId,
channelSelected: zw
}), Uw = (e, t) => ({
library: {
...Fw(),
actions: {
initializeLibrary: async () => {
const t = await window.launcherAPI.store.getValueFromStore("library.installed");
e((e => ({
library: {
...e.library,
...Fw(t, e.library.availableGames)
}
})))
},
setAvailableGames: t => {
var n;
const r = null !== (n = z_.configuration.gameAssets) && void 0 !== n ? n : [],
i = z_.configuration.assetsDirectory;
e((e => ({
library: {
...e.library,
availableGames: t.map((e => {
const t = r.find((t => t.id === e.id));
return {
...e,
logo: i + (null === t || void 0 === t ? void 0 : t.logo),
logoWide: i + (null === t || void 0 === t ? void 0 : t.logoWide),
logoAnimation: i + (null === t || void 0 === t ? void 0 : t.logoAnimation),
bgImage: i + (null === t || void 0 === t ? void 0 : t.bgImage),
bgVideo: i + (null === t || void 0 === t ? void 0 : t.bgVideo)
}
}))
}
})))
},
setGameSelected: t => e((e => ({
library: {
...e.library,
gameSelected: t
}
}))),
setGameChannelSelected: async t => {
e((e => ({
library: {
...e.library,
channelSelected: t
}
})));
const n = await Dw(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)
},
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) => jw(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) => jw(e.id, t.id)))
},
getAvailableGamesChannelsWeightSorted: () => {
const {
availableGames: e
} = t().library;
return e.map((e => ({
...e,
channels: e.channels.sort(((e, t) => jw(e.id, t.id)))
})))
},
getAvailableChannel: e => {
const {
actions: n
} = t().library;
return n.getAvailableChannelsSorted(e.gameId).find((t => t.id === e.channelId))
},
getInstalledChannel: e => {
const {
actions: n
} = t().library;
return n.getInstalledChannelsSorted(e.gameId).find((t => t.id === e.channelId))
},
getChannels: e => t().library.actions.getAvailableChannelsSorted(e).map((e => ({
label: e.id,
description: e.versionLabel,
value: e.id
}))),
addInstalledGameChannel: async n => {
var r, i, a, o;
const {
library: s
} = t(), l = null !== (r = s.availableGames.find((({
id: e
}) => e === n.gameId))) && void 0 !== r ? r : null, c = null === l || void 0 === l ? void 0 : l.channels.find((({
id: e,
platformId: t
}) => e === n.channelId && t === n.platformId));
if (!c || !l) return;
const u = null !== (i = s.installedGames.find((({
id: e
}) => e === n.gameId))) && void 0 !== i ? i : null,
d = null !== (a = null === u || void 0 === u ? void 0 : u.channels.find((({
id: e
}) => e === n.channelId))) && void 0 !== a ? a : null;
if (d) return;
const p = {
...null !== u && void 0 !== u ? u : l,
channels: [...null !== (o = null === u || void 0 === u ? void 0 : u.channels) && void 0 !== o ? o : [], {
...c,
status: z_.GameChannelStatus.AVAILABLE
}]
};
e((e => ({
library: {
...e.library,
installedGames: [...e.library.installedGames.filter((e => e.id !== p.id)), p]
}
})))
},
saveInstalledGameChannel: async n => {
const {
library: r
} = t(), i = Tw(r.installedGames, n, z_.GameChannelStatus.INSTALLED);
e((e => ({
library: {
...e.library,
installedGames: i
}
}))), window.launcherAPI.store.setValueToStore("library.installed", i)
},
removeInstalledGameChannel: async n => {
var r, i;
const {
library: a
} = t(), o = null !== (r = a.installedGames.find((({
id: e
}) => e === n.gameId))) && void 0 !== r ? r : null, s = null !== (i = null === o || void 0 === o ? void 0 : o.channels.find((({
id: e
}) => e === n.channelId))) && void 0 !== i ? i : null;
if (!o || !s) return;
const l = {
...o,
channels: o.channels.filter((e => e.id !== n.channelId))
},
c = [...a.installedGames.filter((e => e.id !== l.id)), l];
e((e => ({
library: {
...e.library,
installedGames: c
}
}))), window.launcherAPI.store.setValueToStore("library.installed", c)
},
launchGame: async n => {
const {
library: r,
soundSystem: i,
dialog: a
} = t(), o = r.actions.getInstalledChannel(n);
if (!N_(r.channelSelected.gameId, r.availableGames) || !o) return;
if (await window.launcherAPI.game.isGameProcessRunning()) await t().dialog.actions.showAcknowledgeDialogErrorOccured({
title: kt.t("error_launch_game_running_title", {
ns: "errors"
}),
content: kt.t("error_launch_game_running_content", {
ns: "errors"
})
});
else try {
var s;
const t = await Dw(n);
if (Nw(o.version, t.version)) {
const t = Tw(r.installedGames, n, z_.GameChannelStatus.UPDATE_AVAILABLE);
return e((e => ({
library: {
...e.library,
installedGames: t
}
}))), window.launcherAPI.store.setValueToStore("library.installed", t), void await a.actions.showGameChannelUpdateAvailableDialog(n)
}
if (!await xx(n.gameId, n.channelId)) return;
const l = await Rw(),
c = D_(),
u = {
...t,
libraryFolder: t.libraryFolder,
network: {},
nickname: null !== (s = l.username) && void 0 !== s ? s : "",
token: l.sessionToken.value,
authToken: l.gameToken.token
};
i.actions.changeVolume(0, 2e3), c.window.setMinimizeWindow(), c.game.launchGame(u)
} catch (l) {
if (window.launcherAPI.log.error(`Not able to launch the game : ${l}`), l instanceof u_) throw console.error("[Launch Claims] - expired token error", l), l;
if (l instanceof f_) return void await a.actions.showAcknowledgeDialogErrorOccured({
title: kt.t("error_launch_account_not_found_title", {
ns: "errors"
}),
content: (0, zb.jsx)(gt, {
i18nKey: "error_launch_account_not_found_content",
t: kt.t,
ns: "errors",
components: [(0, zb.jsx)(ug, {
href: z_.configuration.copyPTUAccountSupportUrl,
external: !0
})],
values: {
code: 8005
}
})
});
if (l instanceof Cw) return void await a.actions.showAcknowledgeDialogErrorOccured({
title: kt.t("error_launch_check_update_unavailable_title", {
ns: "errors"
}),
content: (0, zb.jsx)(gt, {
i18nKey: "error_launch_check_update_unavailable_content",
t: kt.t,
ns: "errors",
components: [(0, zb.jsx)(ug, {
href: z_.configuration.issueCouncilUrl,
external: !0
}), (0, zb.jsx)(ug, {
href: z_.configuration.filesSupportUrl,
external: !0
})],
values: {
code: 6004
}
})
});
await Pk.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: kt.t("error_launch_unknown_title"),
content: kt.t("error_launch_unknown_content", {
code: "6001"
})
})
}
},
setLaunchGameSuccessfull(t) {
e((e => ({
agreements: {
...e.agreements,
warningHasBeenAccepted: !1
},
application: {
...e.application,
isGameRunning: t.isGameRunning
},
library: {
...e.library,
installedGames: Tw(e.library.installedGames, t, z_.GameChannelStatus.RUNNING)
}
})))
},
async setLaunchGameFailed(n) {
const {
soundSystem: r
} = t(), {
payload: i
} = n, a = {
gameId: i.gameId,
channelId: i.channelId,
platformId: i.platformId,
gameName: i.gameName,
channelName: i.channelName
};
e((e => ({
application: {
...e.application,
isGameRunning: !1
},
library: {
...e.library,
installedGames: Tw(e.library.installedGames, a, z_.GameChannelStatus.INSTALLED)
}
}))), r.actions.unmute(), window.launcherAPI.window.setRestoreWindow();
const o = (0, z_.serializerLaunchErrors)(n);
await ux((e => {
const t = Pk.getState().installer,
{
gameId: n,
platformId: r,
channelId: i,
gameName: a,
channelName: o
} = e.payload,
s = {
gameId: n,
platformId: r,
channelId: i,
gameName: a,
channelName: o
};
switch (!0) {
case e instanceof z_.NoGameFilesError:
return {
handler: {
type: cx.DISPLAY_WARNING_DIALOG,
args: {
title: kt.t("error_launch_no_game_files_title", {
ns: "errors"
}),
content: kt.t("error_launch_no_game_files_content", {
code: e.code,
ns: "errors"
}),
primaryCallback: async () => {
t.actions.addInstallationToQueue(s, z_.InstallationType.VERIFY)
},
primaryLabel: kt.t("dialog_action_verify", {
ns: "dialog"
})
}
}, error: e
};
case e instanceof z_.EACError:
return {
handler: {
type: cx.DISPLAY_WARNING_DIALOG,
args: {
title: kt.t("error_launch_EAC_title", {
ns: "errors"
}),
content: kt.t("error_launch_EAC_content", {
code: e.code,
ns: "errors"
}),
primaryCallback: async () => {
t.actions.addInstallationToQueue(s, z_.InstallationType.VERIFY)
},
primaryLabel: kt.t("dialog_action_verify", {
ns: "dialog"
})
}
}, error: e
};
default:
return {
handler: {
type: cx.DISPLAY_WARNING_DIALOG,
args: {
title: kt.t("error_launch_unknown_title", {
ns: "errors"
}),
content: (0, zb.jsx)(gt, {
i18nKey: "error_launch_unknown_content",
t: kt.t,
ns: "errors",
components: [(0, zb.jsx)(ug, {
href: z_.configuration.issueCouncilUrl,
external: !0
}), (0, zb.jsx)(ug, {
href: z_.configuration.filesSupportUrl,
external: !0
}), (0, zb.jsx)("br", {})],
values: {
code: null === e || void 0 === e ? void 0 : e.code
}
}),
primaryCallback: async () => {
t.actions.addInstallationToQueue(s, z_.InstallationType.VERIFY)
},
primaryLabel: kt.t("dialog_action_verify", {
ns: "dialog"
})
}
}, error: e
}
}
})(o))
},
async setLaunchGameStopped(n) {
const {
soundSystem: r
} = t();
e((e => ({
application: {
...e.application,
isGameRunning: !1
},
library: {
...e.library,
installedGames: Tw(e.library.installedGames, n, z_.GameChannelStatus.INSTALLED)
}
})));
const i = await Dw(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)
},
checkForGameChannelUpdates: async () => {
try {
const {
library: n
} = t(), r = await Tx.fetchQuery(Ex()), i = e => e.channels.map((t => {
const n = null === r || void 0 === r ? void 0 : r.find((({
id: t
}) => t === e.id)),
i = null === n || void 0 === n ? void 0 : n.channels.find((({
id: e
}) => e === t.id));
return i && Nw(t.version, i.version) ? {
...t,
versionLabel: i.versionLabel,
version: i.version,
status: z_.GameChannelStatus.UPDATE_AVAILABLE
} : t
})), a = n.installedGames.map((e => ({
...e,
channels: i(e)
})));
e((e => ({
library: {
...e.library,
installedGames: a
}
})));
const o = n.installedGames.map((e => ({
...e,
channels: i(e).map((e => ({
...e,
status: e.status === z_.GameChannelStatus.RUNNING ? z_.GameChannelStatus.INSTALLED : e.status
})))
})));
window.launcherAPI.store.setValueToStore("library.installed", o)
} catch (n) {
throw new Cw
}
}
}
}
}), Vw = (e, t) => {
const n = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
return {
dialog: {
actions: {
showExitAppDialog: e => {
const r = t(),
i = r.settings.appSettings.accessibility.reduceMotion.wipeAnimationsDisabled;
return Aw.show(zk, {
title: xe.t("dialog_warning_exit_app_title", {
ns: "dialog"
}),
content: (0, zb.jsx)(lp, {
description: xe.t(e ? "dialog_warning_exit_app_game_running_text" : "dialog_warning_exit_app_text", {
ns: "dialog"
}),
gap: "100",
children: (0, zb.jsx)(cp, {
name: "hideDialog",
value: "checked",
children: (0, zb.jsx)(gt, {
i18nKey: "dialog_warning_exit_app_checkbox",
t: xe.t,
ns: "dialog"
})
})
}),
primaryLabel: xe.t("dialog_warning_exit_app_confirm", {
ns: "dialog"
}),
primaryCallback: () => {
if (i) return void D_().window.setQuitWindow();
r.application.actions.setAnimatingAppLayoutWipe("in", !0);
const e = setTimeout((() => {
D_().window.setQuitWindow()
}), n / 2);
return () => clearTimeout(e)
}
})
},
showDiscoverDialog: () => {
const e = t();
return Aw.show(Fk, {
title: xe.t("dialog_discover_title", {
ns: "dialog"
}),
content: xe.t("dialog_discover_content", {
ns: "dialog"
}),
typeDialog: "default",
primaryLabel: xe.t("dialog_discover_start", {
ns: "dialog"
}),
primaryCallback: () => e.application.actions.setDiscoverStarted(!0),
secondaryLabel: xe.t("dialog_discover_skip", {
ns: "dialog"
}),
secondaryCallback: () => {
e.application.actions.setDiscoverStarted(!1), e.settings.actions.saveApplicationSettings({
name: "isDiscoverDone",
value: !0
})
}
})
},
showLogoutDialog: e => {
const r = t(),
i = r.settings.appSettings.accessibility.reduceMotion.wipeAnimationsDisabled;
return Aw.show(Fk, {
title: xe.t("dialog_warning_logout_title", {
ns: "dialog"
}),
content: xe.t(e ? "dialog_warning_logout_game_running_text" : "dialog_warning_logout_text", {
ns: "dialog"
}),
primaryLabel: xe.t("dialog_warning_logout_confirm", {
ns: "dialog"
}),
primaryCallback: () => {
if (i) return void r.authentication.actions.logout();
r.application.actions.setAnimatingAppLayoutWipe("in", !0);
const e = setTimeout((() => {
r.authentication.actions.logout()
}), n / 2);
return () => clearTimeout(e)
}
})
},
showOsRequirementsDialog: e => Aw.show(Mk, {
title: xe.t("error_os_requirements_title", {
ns: "errors"
}),
content: (0, zb.jsx)(gt, {
i18nKey: "error_os_requirements_text",
t: xe.t,
ns: "errors",
components: [(0, zb.jsx)(ug, {
href: z_.configuration.minimumRequirementsUrl,
external: !0
})],
values: {
game: e.gameName
}
})
}),
showCpuRequirementsDialog: () => Aw.show(Mk, {
title: xe.t("error_cpu_requirements_title", {
ns: "errors"
}),
content: xe.t("error_cpu_requirements_text", {
ns: "errors"
})
}),
showWarningDialogErrorOccured: ({
title: e,
content: t,
primaryCallback: n,
primaryLabel: r,
secondaryLabel: i,
secondaryCallback: a,
error: o
}) => Aw.show(Fk, {
title: null !== e && void 0 !== e ? e : xe.t("error_generic_title", {
ns: "errors"
}),
content: null !== t && void 0 !== t ? t : (0, zb.jsx)(gt, {
i18nKey: "error_generic_content",
t: xe.t,
ns: "errors",
components: [(0, zb.jsx)(ug, {
href: z_.configuration.issueCouncilUrl,
external: !0
}), (0, zb.jsx)(ug, {
href: z_.configuration.filesSupportUrl,
external: !0
})],
values: {
code: null === o || void 0 === o ? void 0 : o.code,
message: null === o || void 0 === o ? void 0 : o.message
}
}),
primaryLabel: null !== r && void 0 !== r ? r : xe.t("dialog_action_ok", {
ns: "dialog"
}),
primaryCallback: () => null === n || void 0 === n ? void 0 : n(),
secondaryLabel: null !== i && void 0 !== i ? i : xe.t("dialog_action_cancel", {
ns: "dialog"
}),
secondaryCallback: () => null === a || void 0 === a ? void 0 : a()
}),
showWarningDialogCacheClear: () => Aw.show(Fk, {
title: xe.t("dialog_debug_cache_clear_title", {
ns: "dialog"
}),
content: xe.t("dialog_debug_cache_clear_content", {
ns: "dialog"
}),
typeDialog: "default",
primaryLabel: xe.t("dialog_debug_cache_clear_button", {
ns: "dialog"
}),
primaryCallback: () => {
window.launcherAPI.store.clearStore()
},
secondaryLabel: xe.t("dialog_action_cancel", {
ns: "dialog"
})
}),
showAcknowledgeDialogErrorOccured: ({
title: e,
content: t,
primaryCallback: n,
primaryLabel: r,
error: i
}) => Aw.show(Mk, {
title: null !== e && void 0 !== e ? e : xe.t("error_generic_title", {
ns: "errors"
}),
content: null !== t && void 0 !== t ? t : (0, zb.jsx)(gt, {
i18nKey: "error_generic_content",
t: xe.t,
ns: "errors",
components: [(0, zb.jsx)(ug, {
href: z_.configuration.issueCouncilUrl,
external: !0
}), (0, zb.jsx)(ug, {
href: z_.configuration.filesSupportUrl,
external: !0
})],
values: {
code: null === i || void 0 === i ? void 0 : i.code
}
}),
primaryCallback: () => null === n || void 0 === n ? void 0 : n(),
primaryLabel: null !== r && void 0 !== r ? r : void 0
}),
showWarningsDialog: (e, t) => Aw.show(Fk, {
title: e,
typeDialog: "positive",
content: A_(t),
secondaryLabel: xe.t("dialog_action_close", {
ns: "dialog"
}),
primaryLabel: xe.t("dialog_action_acknowledge", {
ns: "dialog"
})
}),
showAgreementsDialog: (e, t, n) => Aw.show(Fk, {
title: e,
typeDialog: "positive",
content: A_(`<h1>${t}</h1>${n}`),
secondaryLabel: xe.t("dialog_action_decline", {
ns: "dialog"
}),
primaryLabel: xe.t("dialog_action_accept", {
ns: "dialog"
}),
disablePrimaryUntilScrolled: !0
}),
showResetSettingsDialog: e => {
const n = t();
return Aw.show(Fk, {
title: xe.t("dialog_settings_reset_title", {
ns: "dialog"
}),
content: xe.t("dialog_settings_reset_content", {
ns: "dialog"
}),
secondaryLabel: xe.t("dialog_action_cancel", {
ns: "dialog"
}),
primaryLabel: xe.t("dialog_settings_reset_button", {
ns: "dialog"
}),
primaryCallback: () => {
n.settings.actions.resetChannelGameSettings(e)
}
})
},
showGameNotInstalledDialog: e => {
const n = t();
return Aw.show(Fk, {
title: xe.t("dialog_settings_game_not_installed_title", {
ns: "dialog"
}),
content: xe.t("dialog_settings_game_not_installed_content", {
ns: "dialog"
}),
secondaryLabel: xe.t("dialog_action_cancel", {
ns: "dialog"
}),
primaryLabel: xe.t("dialog_action_install", {
ns: "dialog"
}),
primaryCallback: () => {
n.installer.actions.addInstallationToQueue(e, z_.InstallationType.INSTALL)
}
})
},
showGameStartInstallationDialog: async e => {
const r = t(),
i = r.settings.appSettings.accessibility.reduceMotion.wipeAnimationsDisabled,
a = await Dw(e);
return Aw.show(Fk, {
typeDialog: "default",
title: xe.t("dialog_start_installation_title", {
ns: "dialog",
game: e.gameName,
channel: e.channelName
}),
content: (0, zb.jsxs)(Ll, {
role: "group",
gap: "100",
vertical: !0,
children: [(0, zb.jsxs)(Ll, {
role: "group",
gap: "0",
vertical: !0,
children: [(0, zb.jsx)("p", {
children: xe.t("dialog_start_installation_content_location", {
ns: "dialog"
})
}), (0, zb.jsxs)("p", {
children: [(0, zb.jsx)("span", {
className: "sol-u-color-foreground",
children: L_(r.settings.library.defaultLibraryFolder)
}), a.installDir, "\\", e.channelId]
})]
}), (0, zb.jsx)("p", {
children: xe.t("dialog_start_installation_content_location_settings", {
ns: "dialog"
})
})]
}),
secondaryLabel: xe.t("dialog_start_installation_action_go_to_settings", {
ns: "dialog"
}),
secondaryCallback: () => {
const t = aa(`/${RE.SETTINGS}/${RE.SETTINGS_GAMES}`, {
gameId: e.gameId,
channelId: e.channelId
});
if (!i) return void(window.location.hash = t);
r.application.actions.setAnimatingAppLayoutWipe("full", !0);
const a = setTimeout((() => {
window.location.hash = t
}), n / 2);
return () => clearTimeout(a)
},
primaryLabel: xe.t("dialog_start_installation_action_install", {
ns: "dialog"
}),
primaryCallback: () => {
r.installer.actions.addInstallationToQueue(e, z_.InstallationType.INSTALL)
}
})
},
showGameCancelInstallationDialog: e => {
const n = t();
return Aw.show(Fk, {
title: xe.t("dialog_cancel_installation_title", {
ns: "dialog"
}),
content: (0, zb.jsxs)(Ll, {
role: "group",
gap: "100",
vertical: !0,
children: [(0, zb.jsx)("p", {
children: xe.t("dialog_cancel_installation_content", {
ns: "dialog",
info: `${e.game.gameName} - ${e.release?e.release.versionLabel+" - ":""}${e.game.channelId}`
})
}), e.type === z_.InstallationType.INSTALL && (0, zb.jsx)(cp, {
type: "checkbox",
onChange: t => n.installer.actions.setInstallationOptions(e.game, {
keepFilesOnCancel: t.target.checked
}),
children: xe.t("dialog_cancel_installation_content_keep_files_downloaded", {
ns: "dialog"
})
})]
}),
secondaryLabel: xe.t("dialog_action_discard", {
ns: "dialog"
}),
primaryLabel: xe.t("dialog_action_cancel_download", {
ns: "dialog"
}),
secondaryCallback: () => {
n.application.actions.setDownloadPopoverOpened(!0)
},
primaryCallback: () => {
n.installer.actions.removeInstallation(e.game), n.application.actions.setDownloadPopoverOpened(!0)
}
})
},
showGameChannelUpdateAvailableDialog: e => Aw.show(Mk, {
typeDialog: "positive",
title: xe.t("dialog_launch_check_update_available_title", {
ns: "dialog"
}),
content: xe.t("dialog_launch_check_update_available_content", {
ns: "dialog",
game: e.gameName,
channel: e.channelName
})
}),
showWarningUninstallDialog: e => Aw.show(zk, {
title: xe.t("dialog_warning_uninstall_title", {
game: e.gameName,
channel: e.channelName,
ns: "dialog"
}),
content: (0, zb.jsx)(lp, {
description: xe.t("dialog_warning_uninstall_text", {
ns: "dialog"
}),
gap: "100",
children: (0, zb.jsx)(cp, {
name: "keepUserFolder",
value: "checked",
description: we("dialog_warning_uninstall_userFolder_checkbox_description", {
ns: "dialog",
path: L_(`${e.libraryFolder}\\${e.installDir}\\${e.channelId}\\user`)
}),
defaultChecked: !0,
children: (0, zb.jsx)(gt, {
i18nKey: "dialog_warning_uninstall_userFolder_checkbox",
t: xe.t,
ns: "dialog"
})
})
}),
secondaryLabel: xe.t("dialog_action_cancel", {
ns: "dialog"
}),
primaryLabel: xe.t("dialog_warning_uninstall_confirm", {
ns: "dialog"
})
})
}
}
}
}, Gw = (e, t) => ({
installer: {
installations: [],
uninstallations: [],
requirementsValidated: !1,
actions: {
initializeInstaller: () => {},
resetInstaller: () => {
e((e => ({
installer: {
...e.installer,
installations: [],
uninstallations: [],
requirementsValidated: !1
}
})))
},
addInstallationToQueue: (n, r) => {
const {
installer: i,
application: a
} = t();
mx(i.installations, n) || (e((e => ({
installer: {
...e.installer,
installations: [...e.installer.installations, {
game: n,
status: z_.InstallationStatus.WAITING,
type: r
}]
}
}))), a.actions.setDownloadPopoverOpened(!0), i.actions.processInstallationQueue())
},
processInstallationQueue: async () => {
const {
installer: e
} = t();
if (vx(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 === z_.InstallationStatus.WAITING));
if (0 === n.length) return;
const r = n[0];
await e.actions.startInstallation(r.game, {
skipRequirements: !0,
skipAnalitics: !1
})
},
clearCompletedInstallations: () => {
e((e => ({
installer: {
...e.installer,
installations: e.installer.installations.filter((e => e.status !== z_.InstallationStatus.COMPLETED && e.status !== z_.InstallationStatus.ERROR))
}
})))
},
startInstallation: async (n, r = {
skipRequirements: !1,
skipAnalitics: !1
}) => {
const {
installer: {
installations: i,
requirementsValidated: a,
actions: o
},
settings: s,
application: l,
library: c
} = t(), {
gameId: u,
gameName: d,
channelId: p,
channelName: h
} = n;
if (!a) {
l.actions.setDownloadPopoverOpened(!1);
const t = await xx();
if (l.actions.setDownloadPopoverOpened(!0), !t) return void o.cancelInstallation(n);
e((e => ({
installer: {
...e.installer,
requirementsValidated: !0
}
})))
}
const f = vx(i);
if (f && !yx(f.game, n)) return void console.warn(`Cannot start the installation of ${n} since the installer is already running`);
const m = mx(i, n);
if (m) try {
const t = await Dw(n);
e((e => ({
installer: {
...e.installer,
installations: i.map((e => yx(e.game, n) ? {
...e,
status: z_.InstallationStatus.IN_PROGRESS,
release: t
} : e))
}
}))), l.actions.setDownloadPopoverOpened(!0);
const a = {
...t,
gameName: d,
channelName: h,
libraryFolder: s.library.defaultLibraryFolder,
forcePatcher: !1,
verify: m.type === z_.InstallationType.VERIFY
};
if (D_().installer.setInstall(a), c.actions.addInstalledGameChannel(n), !r.skipAnalitics) {
const e = {
[z_.InstallationType.INSTALL]: z_.AnalyticsEventName.APP_INSTALL_START,
[z_.InstallationType.VERIFY]: z_.AnalyticsEventName.APP_VERIFY_START,
[z_.InstallationType.UPDATE]: z_.AnalyticsEventName.APP_UPDATE_START
} [m.type];
window.launcherAPI.analytics.setAnalyticsEvent(e, {
Game: m.game.gameId,
Channel: m.game.channelId,
Environment: m.game.platformId
})
}
} catch (g) {
console.error("[Start Installation] Error : ", g)
} else console.warn(`Cannot start the installation of ${n} since the installation is not in queue`)
},
startUninstallation: async n => {
const {
dialog: r
} = t(), i = await Dw(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 => ({
installer: {
...e.installer,
uninstallations: [...e.installer.uninstallations, n]
}
}))))
},
cancelInstallation: async n => {
const {
application: r,
installer: i,
dialog: a
} = t(), o = mx(i.installations, n);
o ? o.status === z_.InstallationStatus.IN_PROGRESS || o.status === z_.InstallationStatus.PAUSED ? (r.actions.setDownloadPopoverOpened(!1), await a.actions.showGameCancelInstallationDialog(o)) : (e((e => ({
installer: {
...e.installer,
installations: bx(e.installer.installations, n)
}
}))), await i.actions.processInstallationQueue()) : console.warn("We could not clear the installation because the game is not in the queue")
},
removeInstallation: n => {
var r, i;
const {
installer: a
} = t(), o = mx(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,
gameName: o.game.gameName,
channelName: o.game.channelName,
libraryFolder: o.release.libraryFolder,
forcePatcher: !1,
verify: o.type === z_.InstallationType.VERIFY
},
l = o.type !== z_.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 === z_.InstallationType.INSTALL ? wx(e.installer.installations, n, z_.InstallationStatus.CANCELLING) : bx(e.installer.installations, n)
}
})));
const c = {
[z_.InstallationType.INSTALL]: z_.AnalyticsEventName.APP_INSTALL_STOP,
[z_.InstallationType.VERIFY]: z_.AnalyticsEventName.APP_VERIFY_STOP,
[z_.InstallationType.UPDATE]: z_.AnalyticsEventName.APP_UPDATE_STOP
} [o.type];
window.launcherAPI.analytics.setAnalyticsEvent(c, {
Game: o.game.gameId,
Channel: o.game.channelId,
Environment: o.game.platformId
})
},
pauseInstallation: n => {
const {
installer: {
installations: r,
progress: i
}
} = t(), a = mx(r, n);
if (a && a.status !== z_.InstallationStatus.PAUSED) {
if (e((e => ({
installer: {
...e.installer,
progress: e.installer.progress ? {
...e.installer.progress,
speed: "0"
} : void 0,
installations: wx(e.installer.installations, n, z_.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")
},
resumeInstallation: n => {
const {
installer: {
installations: r
}
} = t(), i = mx(r, n);
if (i && i.status === z_.InstallationStatus.PAUSED) return e((e => ({
installer: {
...e.installer,
installations: wx(e.installer.installations, n, z_.InstallationStatus.IN_PROGRESS)
}
}))), window.launcherAPI.installer.setInstallResume();
console.warn("We could not resume the installation because the game is not in the queue")
},
retryFailedInstallation: n => {
var r;
const {
installer: {
installations: i
}
} = t(), a = mx(i, n);
a && a.status === z_.InstallationStatus.ERROR ? 0 !== (null === (r = a.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) && e((e => {
var t, r;
return {
installer: {
...e.installer,
installations: wx(e.installer.installations, n, z_.InstallationStatus.WAITING, {
...a.options,
numberOfRetriesLeft: (null !== (t = null === (r = a.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) && void 0 !== t ? t : 3) - 1
})
}
}
})) : console.warn("We could not resume the installation because the game is not in the queue")
},
setInstallationOptions: (n, r) => {
const {
installer: {
installations: i
}
} = t();
mx(i, n) ? e((e => ({
installer: {
...e.installer,
installations: e.installer.installations.map((e => yx(e.game, n) ? {
...e,
options: r
} : e))
}
}))) : console.warn("We could not set options to the installation because the game is not in the queue")
},
setInstallationProgress: n => {
const {
installer: {
installations: r,
progress: i
}
} = t();
vx(r) ? e((e => ({
installer: {
...e.installer,
progress: fx(n, i)
}
}))) : console.warn("We could not update info about download progression since there is no installation in progress")
},
setInstallationSuccess: async n => {
const {
installer: r,
library: i,
settings: a
} = t();
if (!r.progress) return void console.warn("We could not end the installation because the event is strange", n);
const o = {
gameId: n.gameId,
gameName: n.gameName,
channelId: n.channelId,
channelName: n.channelName,
platformId: n.platformId
},
s = mx(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: {
...e.installer,
progress: void 0
}
}))), void r.actions.startInstallation(s.game, {
skipRequirements: !0,
skipAnalitics: !0
});
e((e => ({
installer: {
...e.installer,
progress: void 0,
installations: wx(e.installer.installations, o, z_.InstallationStatus.COMPLETED)
}
}))), r.actions.setInstallSuccessToast(s.game), i.actions.saveInstalledGameChannel(o);
const l = {
...s.game,
installDir: s.release.installDir
};
await a.actions.saveChannelGameSettings(l), await r.actions.processInstallationQueue();
const c = {
[z_.InstallationType.INSTALL]: z_.AnalyticsEventName.APP_INSTALL_SUCCESS,
[z_.InstallationType.VERIFY]: z_.AnalyticsEventName.APP_VERIFY_SUCCESS,
[z_.InstallationType.UPDATE]: z_.AnalyticsEventName.APP_UPDATE_SUCCESS
} [s.type];
window.launcherAPI.analytics.setAnalyticsEvent(c, {
Game: s.game.gameId,
Channel: s.game.channelId,
Environment: s.game.platformId
})
},
setInstallationFailed: async n => {
const {
installer: r,
application: i
} = t(), a = mx(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: wx(e.installer.installations, a.game, z_.InstallationStatus.ERROR)
}
})));
const o = (0, z_.serializerInstallerErrors)(n);
await ux((e => {
var t, n, r;
const i = Pk.getState().installer,
a = Pk.getState().library,
{
gameId: o,
platformId: s,
channelId: l,
gameName: c,
channelName: u
} = e.payload,
d = null !== (t = {
gameId: o,
gameName: c,
channelId: l,
channelName: u,
platformId: s
}) && void 0 !== t ? t : a.channelSelected,
p = mx(i.installations, d);
switch (!0) {
case e instanceof z_.InvalidMDFileError:
return {
handler: {
type: cx.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: kt.t("error_installer_basepack_invalid_title", {
ns: "errors"
}),
content: kt.t("error_installer_basepack_invalid_content", {
code: e.code,
ns: "errors"
})
}
}, error: e
};
case e instanceof z_.InvalidMDFileHeaderError:
case e instanceof z_.NotMappedError:
return {
handler: {
type: cx.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: kt.t("error_installer_init_download_title", {
ns: "errors"
}),
content: (0, zb.jsx)(gt, {
i18nKey: "error_installer_generic_content",
t: kt.t,
ns: "errors",
components: [(0, zb.jsx)(ug, {
href: z_.configuration.issueCouncilUrl,
external: !0
}), (0, zb.jsx)(ug, {
href: z_.configuration.filesSupportUrl,
external: !0
})],
values: {
code: null === e || void 0 === e ? void 0 : e.code
}
})
}
}, error: e
};
case e instanceof z_.DiskFullError:
return {
handler: {
type: cx.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: kt.t("error_installer_disc_full_title", {
ns: "errors"
}),
content: kt.t("error_installer_disc_full_content", {
code: e.code,
ns: "errors"
})
}
}, error: e
};
case e instanceof z_.WritePermissionsError:
return {
handler: {
type: cx.DISPLAY_WARNING_DIALOG,
args: {
title: kt.t("error_installer_permissions_title", {
ns: "errors"
}),
content: kt.t("error_installer_permissions_content", {
code: e.code,
ns: "errors"
}),
primaryCallback: async () => {
await i.actions.setPermissions(d)
},
primaryLabel: kt.t("error_installer_permissions_action", {
ns: "errors"
})
}
}, error: e
};
case e instanceof z_.FileInUseError:
return {
handler: {
type: cx.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: kt.t("error_installer_file_in_use_title", {
ns: "errors"
}),
content: kt.t("error_installer_file_in_use_content", {
code: e.code,
ns: "errors"
})
}
}, error: e
};
case e instanceof z_.Pk4CorruptedError:
return {
handler: {
type: cx.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: kt.t("error_installer_pk4_corrupted_title", {
ns: "errors"
}),
content: kt.t("error_installer_pk4_corrupted_content", {
code: e.code,
ns: "errors"
})
}
}, error: e
};
case e instanceof z_.RetrieveManifestError:
return {
handler: {
type: cx.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: kt.t("error_installer_retrieve_manifest_title", {
ns: "errors"
}),
content: kt.t("error_installer_retrieve_manifest_content", {
code: e.code,
ns: "errors"
})
}
}, error: e
};
case e instanceof z_.PatcherUnknownNetworkError:
return {
handler: {
type: cx.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: kt.t("error_installer_unknown_network_title", {
ns: "errors"
}),
content: kt.t("error_installer_unknown_network_content", {
code: e.code,
ns: "errors"
})
}
}, error: e
};
case e instanceof z_.BasePackP4kCorruptedError:
return {
handler: {
type: cx.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: kt.t("error_installer_base_p4k_corrupted_title", {
ns: "errors"
}),
content: (0, zb.jsx)(gt, {
i18nKey: "error_installer_base_p4k_corrupted_content",
t: kt.t,
ns: "errors",
components: [(0, zb.jsx)(ug, {
href: z_.configuration.issueCouncilUrl,
external: !0
}), (0, zb.jsx)(ug, {
href: z_.configuration.filesSupportUrl,
external: !0
})],
values: {
code: null === e || void 0 === e ? void 0 : e.code
}
})
}
}, error: e
};
case e instanceof z_.DownloadUnsuccessfullError:
return [{
handler: {
type: cx.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: kt.t("error_installer_base_p4k_corrupted_title", {
ns: "errors"
}),
content: (0, zb.jsx)(gt, {
i18nKey: "error_installer_base_p4k_corrupted_content",
t: kt.t,
ns: "errors",
components: [(0, zb.jsx)(ug, {
href: z_.configuration.issueCouncilUrl,
external: !0
}), (0, zb.jsx)(ug, {
href: z_.configuration.filesSupportUrl,
external: !0
})],
values: {
code: null === e || void 0 === e ? void 0 : e.code
}
}),
primaryCallback: async () => {
i.actions.addInstallationToQueue(d, z_.InstallationType.VERIFY)
},
primaryLabel: kt.t("dialog_action_verify", {
ns: "dialog"
})
}
},
error: e
}];
default:
const t = () => e.code === z_.InitialDownloadErrorsNames.ERR_INIT_UNKNOWN ? kt.t("error_installer_init_download_title", {
ns: "errors"
}) : e.code === z_.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? kt.t("error_installer_patcher_title", {
ns: "errors"
}) : kt.t("error_installer_title", {
ns: "errors"
}),
a = () => e.code === z_.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? (0, zb.jsx)(gt, {
i18nKey: "error_installer_patcher_generic_content",
t: kt.t,
ns: "errors",
components: [(0, zb.jsx)(ug, {
href: z_.configuration.installerErrorKnowledgeDatabaseUrl,
external: !0
}), (0, zb.jsx)(ug, {
href: z_.configuration.issueCouncilUrl,
external: !0
}), (0, zb.jsx)(ug, {
href: z_.configuration.filesSupportUrl,
external: !0
})],
values: {
code: null === e || void 0 === e ? void 0 : e.code
}
}) : (0, zb.jsx)(gt, {
i18nKey: "error_installer_generic_content",
t: kt.t,
ns: "errors",
components: [(0, zb.jsx)(ug, {
href: z_.configuration.issueCouncilUrl,
external: !0
}), (0, zb.jsx)(ug, {
href: z_.configuration.filesSupportUrl,
external: !0
})],
values: {
code: null === e || void 0 === e ? void 0 : e.code
}
});
return {
handler: {
type: cx.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: t(),
content: a()
}
}, error: e
}
}
})(o)), i.actions.setDownloadPopoverOpened(!0), await r.actions.processInstallationQueue();
const s = {
[z_.InstallationType.INSTALL]: z_.AnalyticsEventName.APP_INSTALL_ERROR,
[z_.InstallationType.VERIFY]: z_.AnalyticsEventName.APP_VERIFY_ERROR,
[z_.InstallationType.UPDATE]: z_.AnalyticsEventName.APP_UPDATE_ERROR
} [a.type];
window.launcherAPI.analytics.setAnalyticsEvent(s, {
Game: a.game.gameId,
Channel: a.game.channelId,
Environment: a.game.platformId,
ErrorCode: o.code,
ErrorMessage: o.message
})
},
setCancelationSuccess: async () => {
const {
installer: n,
toasts: r
} = t(), i = _x(n.installations);
i && e((e => ({
installer: {
...e.installer,
progress: void 0,
installations: [...bx(e.installer.installations, i.game)]
}
}))), r.actions.add({
type: "negative",
title: xe.t("download_toast_install_cancel_success", {
ns: "download"
}),
icon: qx
}), await n.actions.processInstallationQueue()
},
setCancelationFailed: async n => {
const {
installer: r
} = t();
console.error(n);
const i = _x(r.installations);
i && e((e => ({
installer: {
...e.installer,
progress: void 0,
installations: [...bx(e.installer.installations, i.game)]
}
}))), await r.actions.processInstallationQueue()
},
setUninstallationSuccess: async n => {
const {
installer: r,
library: i,
settings: a
} = t();
gx(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(z_.AnalyticsEventName.APP_UNINSTALL_SUCCESS, {
Game: n.gameId,
Channel: n.channelId,
Environment: n.platformId
}), r.actions.setUninstallSuccessToast(n)) : console.warn("We could not end the uninstallation because the channel was not process", n)
},
setUninstallationFailed: n => {
const {
installer: r
} = t(), {
payload: i
} = n, a = gx(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(z_.AnalyticsEventName.APP_UNINSTALL_ERROR, {
Game: a.gameId,
Channel: a.channelId,
Environment: a.platformId,
ErrorCode: n.code,
ErrorMessage: n.message
}), 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 Rw(),
n = await Dw(e);
if (t) {
const e = {
...n,
network: {},
nickname: t.username,
token: t.sessionToken.value,
authToken: t.gameToken.token
};
window.launcherAPI.installer.setFixPermissions(e)
}
},
setInstallSuccessToast: e => {
const {
installer: {
installations: n
},
toasts: r
} = t(), i = mx(n, e);
if (!i || i.status !== z_.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 z_.InstallationType.INSTALL:
return xe.t("download_toast_install_success", {
ns: "download"
});
case z_.InstallationType.VERIFY:
return xe.t("download_toast_verify_success", {
ns: "download"
});
case z_.InstallationType.UPDATE:
return xe.t("download_toast_update_success", {
ns: "download"
})
}
})(),
type: "positive",
closeOnClick: !1
})
},
setUninstallSuccessToast: e => {
const {
toasts: n
} = t();
return n.actions.add({
title: xe.t("download_toast_uninstall_success", {
ns: "download",
game: e.gameName,
channel: e.channelName
}),
type: "positive",
closeOnClick: !1
})
},
setUninstallFailToast: e => {
const {
toasts: n
} = t();
return n.actions.add({
title: xe.t("download_toast_uninstall_fail", {
ns: "download",
game: e.gameName,
channel: e.channelName
}),
type: "negative",
closeOnClick: !1
})
}
}
}
}), Bw = [{
label: "Unlimited",
value: 0
}, {
label: "25 MB/s",
value: 26214400
}, {
label: "15 MB/s",
value: 15728640
}, {
label: "10 MB/s",
value: 10485760
}, {
label: "5 MB/s",
value: 5242880
}, {
label: "2 MB/s",
value: 2097152
}, {
label: "1.5 MB/s",
value: 1572864
}, {
label: "1 MB/s",
value: 1048576
}, {
label: "512 KB/s",
value: 524288
}, {
label: "256 KB/s",
value: 262144
}, {
label: "128 KB/s",
value: 131072
}], $w = SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST ? [{
label: "!1024",
value: 1024
}, {
label: "!512",
value: 512
}, {
label: "!256",
value: 256
}, {
label: "!128",
value: 128
}, {
label: "CIG-MAX (25)",
value: 25
}, {
label: "20",
value: 20
}, {
label: "15",
value: 15
}, {
label: "10",
value: 10
}, {
label: "5",
value: 5
}] : [{
label: "Max",
value: 25
}, {
label: "20",
value: 20
}, {
label: "15",
value: 15
}, {
label: "10",
value: 10
}, {
label: "5",
value: 5
}], qw = {
reduceMotion: {
syncWithSystem: !1,
backgroundVideoDisabled: !1,
unessentialAnimationsDisabled: !1,
wipeAnimationsDisabled: !1
}
}, Ww = {
appSettings: {
quitOnWindowClose: !1,
hideQuitWarning: !1,
isDiscoverDone: !1,
download: {
concurrentTransfers: $w[0].value,
maximumDownloadBandwidth: Bw[0].value
},
accessibility: qw
},
library: {
defaultLibraryFolder: ""
}
}, Hw = ({
defaultLibraryFolder: e = "",
gamesSettings: t = [],
quitOnWindowClose: n = Ww.appSettings.quitOnWindowClose,
hideQuitWarning: r = Ww.appSettings.hideQuitWarning,
isDiscoverDone: i = Ww.appSettings.isDiscoverDone,
download: a = Ww.appSettings.download,
accessibility: o = Ww.appSettings.accessibility
} = {}) => ({
...Ww,
appSettings: {
...Ww.appSettings,
quitOnWindowClose: n,
hideQuitWarning: r,
isDiscoverDone: i,
download: a,
accessibility: o
},
library: {
...Ww.library,
defaultLibraryFolder: e
},
gamesSettings: t
}), Yw = (e, t) => ({
settings: {
...Hw(),
actions: {
initializeApplicationSettings: async () => {
var n;
const r = null !== (n = await window.launcherAPI.store.getValueFromStore("library.libraryFolder")) && void 0 !== n ? n : `${z_.configuration.infoApp.defaultLibraryPath}${z_.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"),
s = await window.launcherAPI.store.getValueFromStore("application.download"),
l = await t().settings.actions.getAccessibilitySettingsFromPersistentStore();
e((e => ({
settings: {
...e.settings,
...Hw({
defaultLibraryFolder: L_(r),
gamesSettings: e.settings.gamesSettings,
quitOnWindowClose: i,
hideQuitWarning: a,
isDiscoverDone: o,
download: s,
accessibility: l
})
}
})))
},
initializeGameSettings: async () => {
const {
library: n
} = t(), r = await window.launcherAPI.store.getValueFromStore("library.settings"), i = n.actions.getAvailableGamesChannelsWeightSorted().map((e => e.channels.map((t => ({
...r.find((n => n.channelId === t.id && n.gameId === e.id)),
gameId: e.id,
gameName: e.name,
channelId: t.id,
channelName: t.name,
platformId: t.platformId,
installDir: t.installDir
})))));
e((e => ({
settings: {
...e.settings,
gamesSettings: i.flat()
}
})))
},
getChannelDefaultGameSettings: e => {
const {
settings: n
} = t(), {
gameId: r,
channelId: i,
platformId: a,
gameName: o,
channelName: s
} = e;
return {
gameId: r,
gameName: o,
channelId: i,
channelName: s,
platformId: a,
libraryFolder: n.library.defaultLibraryFolder
}
},
getChannelGameSettings: async e => {
var t;
const n = await window.launcherAPI.store.getValueFromStore("library.settings");
return null !== (t = null === n || void 0 === n ? void 0 : n.find((({
gameId: t,
channelId: n
}) => t === (null === e || void 0 === e ? void 0 : e.gameId) && n === e.channelId))) && void 0 !== t ? t : null
},
resetChannelGameSettings: async n => {
const r = t(),
{
gameId: i,
channelId: a
} = n;
try {
const {
gamesSettings: t
} = r.settings, o = r.settings.actions.getChannelDefaultGameSettings(n);
let s = [...t.filter((e => e.channelId !== a)), o].sort(((e, t) => jw(e.channelId, t.channelId)));
e((e => ({
settings: {
...e.settings,
gamesSettings: s
}
})));
const l = (await window.launcherAPI.store.getValueFromStore("library.settings")).filter((e => e.gameId !== i || e.channelId !== a));
window.launcherAPI.store.setValueToStore("library.settings", l)
} catch (o) {
console.error("[ResetSettings - error]", o)
}
},
saveLibraryFolder: async n => {
e((e => ({
settings: {
...e.settings,
library: {
...e.library,
defaultLibraryFolder: n
}
}
}))), window.launcherAPI.store.setValueToStore("library.libraryFolder", n), window.launcherAPI.settings.setLibraryFolder(n), await t().settings.actions.initializeGameSettings()
},
saveChannelGameSettings: async n => {
const {
channelId: r
} = n, {
gamesSettings: i
} = t().settings;
let a = [...i.filter((e => e.channelId !== r)), n].sort(((e, t) => jw(e.channelId, t.channelId)));
e((e => ({
settings: {
...e.settings,
gamesSettings: a
}
})));
const o = await window.launcherAPI.store.getValueFromStore("library.settings");
if (o) {
const e = [...o.filter((e => e.channelId !== r)), {
...n
}].sort(((e, t) => jw(e.channelId, t.channelId)));
window.launcherAPI.store.setValueToStore("library.settings", e)
} else window.launcherAPI.store.setValueToStore("library.settings", a)
},
saveApplicationSettings: async t => {
e((e => ({
settings: {
...e.settings,
appSettings: {
...e.settings.appSettings,
[t.name]: t.value
}
}
}))), window.launcherAPI.store.setValueToStore(`application.${t.name}`, t.value)
},
getAccessibilitySettingsFromPersistentStore: async () => await window.launcherAPI.store.getValueFromStore("application.settings.accessibility"),
getAccessibilitySettings: () => t().settings.appSettings.accessibility,
setAccessibilitySettingsToPersistentStore: async e => {
e.forEach((e => {
window.launcherAPI.store.setValueToStore(`application.settings.accessibility.reduceMotion.${e.id}`, e.value)
}))
},
setAccessibilitySettings: t => {
const n = t.reduce(((e, t) => (e[t.id] = t.value, e)), {});
e((e => ({
...e,
settings: {
...e.settings,
appSettings: {
...e.settings.appSettings,
accessibility: {
...e.settings.appSettings.accessibility,
reduceMotion: {
...e.settings.appSettings.accessibility.reduceMotion,
...n
}
}
}
}
})))
},
setDownloadSettings: (e, t) => {
window.launcherAPI.installer.setDownloadOptions({
name: e,
value: t
}), window.launcherAPI.store.setValueToStore(`application.download.${e}`, t)
},
onSetDownloadSettingsSuccess: async e => {
const n = {
...t().settings.appSettings.download,
[e.name]: e.value
};
await t().settings.actions.saveApplicationSettings({
name: "download",
value: n
})
},
debugGetLogs: async () => {
window.launcherAPI.settings.openLogsFolder()
},
getAnimationSystemSettings: async () => await window.launcherAPI.settings.getAnimationSystemSettings(),
restartApp: () => window.launcherAPI.settings.restartApp()
}
}
});
let Kw = null;
const Qw = e => Object.entries(e).reduce(((e, [t, n]) => ({
...e,
[t]: `${z_.configuration.assetsDirectory}${n}`
})), {}),
Zw = e => ({
volume: null !== e && void 0 !== e ? e : 50,
previousVolume: null,
system: null,
soundList: Qw(z_.configuration.sounds),
trackList: Qw(z_.configuration.musics)
}),
Xw = (e, t) => ({
soundSystem: {
...Zw(),
actions: {
initializeSoundContext: async () => {
var t;
const n = await window.launcherAPI.store.getValueFromStore("application.volume"),
r = Zw(n);
Kw = null !== (t = Kw) && void 0 !== t ? t : new lx({
sounds: r.soundList,
musics: r.trackList,
volume: r.volume
}), e((e => ({
soundSystem: {
...e.soundSystem,
...r,
system: Kw
}
}))), Kw.playSound("open"), Kw.playBackgroundTrack()
},
changeVolume: (n, r = 0) => {
const i = t().soundSystem.system;
if (!i) return;
let a = t().soundSystem.volume;
const o = setInterval((() => {
r > 0 && a !== n ? a = a < n ? Math.min(a + 1, n) : Math.max(a - 1, n) : clearInterval(o);
const t = r > 0 ? a : n;
e((e => ({
soundSystem: {
...e.soundSystem,
previousVolume: a,
volume: t
}
}))), window.launcherAPI.store.setValueToStore("application.volume", t), i.setGain(t)
}), r ? r / (n > a ? n - a : a - n) : 0)
},
mute: () => {
e((e => ({
soundSystem: {
...e.soundSystem,
previousVolume: e.soundSystem.volume
}
}))), t().soundSystem.actions.changeVolume(0)
},
unmute: () => {
var n;
t().soundSystem.actions.changeVolume(null !== (n = t().soundSystem.previousVolume) && void 0 !== n ? n : 50), e((e => ({
soundSystem: {
...e.soundSystem,
previousVolume: null
}
})))
}
}
}
}),
Jw = async () => {
const {
application: e,
user: t,
status: n
} = Pk.getState();
if (t.actions.isLoggedIn() || ek(n.intervalId), !e.isWindowMinimized) try {
const t = await Tx.fetchQuery({
queryKey: ["rsiStatus"],
queryFn: async () => sx.status.getStatus(),
staleTime: 0
}),
n = null === t || void 0 === t ? void 0 : t.systems.filter((e => (e.name === z_.RSISystemName.PERSISTENTE_UNIVERSE || e.name === z_.RSISystemName.ARENA_COMMANDER) && e.status !== z_.RSISystemStatus.OPERATIONAL)).sort(((e, t) => z_.SystemStatusOrder[e.status.toUpperCase()] - z_.SystemStatusOrder[t.status.toUpperCase()])).map((e => e.status)).shift();
e.actions.setNonOperationalStatus(n), Pk.setState((e => ({
...e,
status: {
...e.status,
...t,
lastRequestDate: (new Date).toISOString()
}
})))
} catch (r) {
console.error("ERROR", r), ek(n.intervalId)
}
}, ek = e => {
const t = Pk.getState().application;
clearInterval(e), t.actions.setNonOperationalStatus(void 0), Pk.setState((e => ({
...e,
status: {
...e.status,
...tk()
}
})))
}, tk = () => ({
is: "",
cStateVersion: "",
apiVersion: "",
title: "",
languageCodeHTML: "",
languageCode: "",
baseURL: "",
description: "",
summaryStatus: void 0,
categories: [],
systems: [],
buildDate: "",
buildTime: "",
buildTimezone: "",
colorBrand: "",
colorOk: "",
colorDisrupted: "",
colorDown: "",
colorNotice: "",
alwaysKeepBrandColor: "",
logo: "",
googleAnalytics: "",
lastRequestDate: "",
intervalId: ""
}), nk = e => ({
status: {
...tk(),
actions: {
initializeStatus: async () => {
e((e => ({
status: {
...e.status,
...tk()
}
})))
},
checkStatus: async () => {
if (!Pk.getState().status.intervalId) {
await Jw();
const e = setInterval(Jw, kx(z_.configuration.requestPollingInterval.status.base, z_.configuration.requestPollingInterval.status.window));
Pk.setState({
status: {
...Pk.getState().status,
intervalId: e
}
})
}
}
}
}
}), rk = {
randomUUID: "undefined" !== typeof crypto && crypto.randomUUID && crypto.randomUUID.bind(crypto)
};
let ik;
const ak = new Uint8Array(16);
function ok() {
if (!ik && (ik = "undefined" !== typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ik)) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
return ik(ak)
}
const sk = [];
for (let n = 0; n < 256; ++n) sk.push((n + 256).toString(16).slice(1));
function lk(e, t = 0) {
return (sk[e[t + 0]] + sk[e[t + 1]] + sk[e[t + 2]] + sk[e[t + 3]] + "-" + sk[e[t + 4]] + sk[e[t + 5]] + "-" + sk[e[t + 6]] + sk[e[t + 7]] + "-" + sk[e[t + 8]] + sk[e[t + 9]] + "-" + sk[e[t + 10]] + sk[e[t + 11]] + sk[e[t + 12]] + sk[e[t + 13]] + sk[e[t + 14]] + sk[e[t + 15]]).toLowerCase()
}
const ck = function(e, t, n) {
if (rk.randomUUID && !t && !e) return rk.randomUUID();
const r = (e = e || {}).random || (e.rng || ok)();
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 lk(r)
},
uk = {
list: []
},
dk = (e, t) => ({
toasts: {
...uk,
actions: {
async init() {
const e = t();
window.launcherAPI.autoUpdate.onNewVersionInstalled((() => {
e.toasts.actions.add({
title: ew("auto_update_toast_update_installed"),
type: "positive",
icon: qx,
closeOnClick: !1
}, !0)
}))
},
async add(n, r = !1) {
const i = await window.launcherAPI.window.isMinimized(),
a = t(),
o = ck();
r && window.launcherAPI.notification.show({
title: T_(n.title),
body: T_(n.children)
}), i || e({
toasts: {
...a.toasts,
list: [...a.toasts.list, {
...n,
id: o,
onClose: e => a.toasts.actions.remove(e)
}]
}
})
},
remove(n) {
const r = t();
e({
toasts: {
...r.toasts,
list: r.toasts.list.filter((e => e.id !== n))
}
})
}
}
}
}),
pk = (e = null, t = null, n = {}) => ({
identity: e,
device: t,
sessions: n
}),
hk = (e, t) => ({
user: {
...pk(),
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 = pk(n, r, i ? {
[t]: i
} : {});
var o, s, l;
n && D_().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 : ""
});
e((e => ({
user: {
...e.user,
...a
}
})))
},
isLoggedIn: (e, n) => {
var r, i;
const {
application: a,
user: o
} = t(), s = null !== (r = o.sessions[a.platformMaster]) && void 0 !== r ? r : e;
return !(!(null !== (i = o.identity) && void 0 !== i ? i : n) || !s || j_(s))
},
getSession: async e => {
const {
application: n,
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 && "expires" in e)(i) && !j_(i)) return i;
const a = await Tx.fetchQuery((o = e, {
queryKey: [`signinSession-${o}`],
queryFn: async () => sx.games.getSignInSession(o)
}));
var o;
if (!a) throw new e_(`Not able to log-in to ${e} platform.`, zv);
return r.actions.setSession(a, e), a
},
setSession: (n, r) => {
const {
application: i
} = t(), a = null !== r && void 0 !== r ? r : i.platformMaster;
e((e => ({
user: {
...e.user,
sessions: {
...e.user.sessions,
[a]: {
...e.user.sessions[a],
...n
}
}
}
})))
},
setIdentity: t => {
e((e => ({
user: {
...e.user,
identity: {
...e.user.identity,
...t
}
}
})))
},
resetUser: () => e((e => ({
user: {
...e.user,
...pk(),
device: e.user.device
}
})))
}
}
}),
fk = (e, t) => ({
window: {
actions: {
openInternalWindow: async (e, t) => {
const n = Pk.getState().application,
r = Pk.getState().user,
i = n.platformMaster,
a = r.sessions[i],
o = r.device,
s = [{
name: "viewed_cookie_notif",
value: "1",
sameSite: "unspecified"
}, {
name: "viewed_privacy_notif",
value: "1",
sameSite: "unspecified"
}];
s.push({
name: a.cookie,
value: a.value,
sameSite: "unspecified"
}), o && s.push({
name: o.cookie,
value: o.value,
sameSite: "unspecified"
}), window.launcherAPI.window.setOpenInternalWindow(e, s, t)
},
openUserAccount: e => {
t().window.actions.openInternalWindow(e, {
target: "website",
reload: !0
})
},
openDiscover: () => t().dialog.actions.showDiscoverDialog(),
exitLauncher: () => {
const e = t();
if (e.application.isGameRunning) return e.dialog.actions.showExitAppDialog(e.application.isGameRunning);
D_().window.setQuitWindow()
},
closeLauncher: async () => {
const n = t(),
r = n.settings.appSettings.quitOnWindowClose,
i = n.settings.appSettings.hideQuitWarning,
a = n.settings.appSettings.accessibility.reduceMotion.wipeAnimationsDisabled,
o = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)),
s = () => {
r ? D_().window.setQuitWindow() : D_().window.setCloseWindow()
};
if (i || !r) {
if (a) {
n.application.actions.setAnimatingAppLayoutWipe("in", !0);
const e = setTimeout(s, o / 2);
return () => clearTimeout(e)
}
return s()
}
const l = await n.dialog.actions.showExitAppDialog(n.application.isGameRunning),
c = Boolean(l.results && l.results.hideDialog);
c && (e((e => ({
settings: {
...e.settings,
application: {
...e.settings.appSettings,
hideQuitWarning: c
}
}
}))), await t().settings.actions.saveApplicationSettings({
name: "hideQuitWarning",
value: c
}))
},
logoutLauncher: () => {
const e = t();
return e.dialog.actions.showLogoutDialog(e.application.isGameRunning)
}
}
}
}),
mk = e => {
let t;
const n = new Set,
r = (e, r) => {
const i = "function" === typeof e ? e(t) : e;
if (!Object.is(i, t)) {
const e = t;
t = (null != r ? r : "object" !== typeof i) ? i : Object.assign({}, t, i), n.forEach((n => n(t, e)))
}
},
i = () => t,
a = {
setState: r,
getState: i,
subscribe: e => (n.add(e), () => n.delete(e)),
destroy: () => {
console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."), n.clear()
}
};
return t = e(r, i, a), a
},
gk = e => e ? mk(e) : mk;
var vk = n(327);
const {
useDebugValue: _k
} = Pe, {
useSyncExternalStoreWithSelector: yk
} = vk;
let bk = !1;
const xk = 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 ? gk(e) : e,
n = (e, n) => function(e, t = e.getState, n) {
n && !bk && (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"), bk = !0);
const r = yk(e.subscribe, e.getState, e.getServerState || e.getState, t, n);
return _k(r), r
}(t, e, n);
return Object.assign(n, t), n
},
wk = e => e ? xk(e) : xk;
const kk = new Map,
Ek = e => {
const t = kk.get(e);
return t ? Object.fromEntries(Object.entries(t.stores).map((([e, t]) => [e, t.getState()]))) : {}
},
Sk = (e, t = {}) => (n, r, i) => {
const {
enabled: a,
anonymousActionType: o,
store: s,
...l
} = t;
let c;
try {
c = (null == a || a) && window.__REDUX_DEVTOOLS_EXTENSION__
} catch (m) {}
if (!c) return a && console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"), e(n, r, i);
const {
connection: u,
...d
} = ((e, t, n) => {
if (void 0 === e) return {
type: "untracked",
connection: t.connect(n)
};
const r = kk.get(n.name);
if (r) return {
type: "tracked",
store: e,
...r
};
const i = {
connection: t.connect(n),
stores: {}
};
return kk.set(n.name, i), {
type: "tracked",
store: e,
...i
}
})(s, c, l);
let p = !0;
i.setState = (e, t, a) => {
const c = n(e, t);
if (!p) return c;
const d = void 0 === a ? {
type: o || "anonymous"
} : "string" === typeof a ? {
type: a
} : a;
return void 0 === s ? (null == u || u.send(d, r()), c) : (null == u || u.send({
...d,
type: `${s}/${d.type}`
}, {
...Ek(l.name),
[s]: i.getState()
}), c)
};
const h = (...e) => {
const t = p;
p = !1, n(...e), p = t
},
f = e(i.setState, r, i);
if ("untracked" === d.type ? null == u || u.init(f) : (d.stores[d.store] = i, null == u || u.init(Object.fromEntries(Object.entries(d.stores).map((([e, t]) => [e, e === d.store ? f : t.getState()]))))), i.dispatchFromDevtools && "function" === typeof i.dispatch) {
let e = !1;
const t = i.dispatch;
i.dispatch = (...n) => {
"__setState" !== n[0].type || e || (console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'), e = !0), t(...n)
}
}
return u.subscribe((e => {
var t;
switch (e.type) {
case "ACTION":
return "string" !== typeof e.payload ? void console.error("[zustand devtools middleware] Unsupported action format") : Ok(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);
1 !== Object.keys(e.state).length && console.error('\n [zustand devtools middleware] Unsupported __setState action format. \n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');
const t = e.state[s];
if (void 0 === t || null === t) return;
JSON.stringify(i.getState()) !== JSON.stringify(t) && h(t)
}
}));
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(Ek(l.name));
case "COMMIT":
return void 0 === s ? void(null == u || u.init(i.getState())) : null == u ? void 0 : u.init(Ek(l.name));
case "ROLLBACK":
return Ok(e.state, (e => {
if (void 0 === s) return h(e), void(null == u || u.init(i.getState()));
h(e[s]), null == u || u.init(Ek(l.name))
}));
case "JUMP_TO_STATE":
case "JUMP_TO_ACTION":
return Ok(e.state, (e => {
void 0 !== s ? JSON.stringify(i.getState()) !== JSON.stringify(e[s]) && h(e[s]) : h(e)
}));
case "IMPORT_STATE": {
const {
nextLiftedState: n
} = e.payload, r = null == (t = n.computedStates.slice(-1)[0]) ? void 0 : t.state;
if (!r) return;
return h(void 0 === s ? r : r[s]), void(null == u || u.send(null, n))
}
case "PAUSE_RECORDING":
return p = !p
}
return
}
})), f
},
Ok = (e, t) => {
let n;
try {
n = JSON.parse(e)
} catch (r) {
console.error("[zustand devtools middleware] Could not parse the received json", r)
}
void 0 !== n && t(n)
};
const Pk = wk()(Sk(((...e) => ({
...Dx(...e),
...Lx(...e),
...Mx(...e),
...Yw(...e),
...Xw(...e),
...nk(...e),
...hk(...e),
...rw(...e),
...Gw(...e),
...Vw(...e),
...dk(...e),
...Uw(...e),
...fk(...e)
})), {
name: "launcher-store",
enabled: !0
})),
Ik = ({
children: e
}) => {
const t = Pk((e => e.application)),
n = Pk((e => e.settings)),
r = Pk((e => e.window)),
i = Pk((e => e.user)),
{
t: a
} = wt("discover"),
o = i.actions.isLoggedIn(),
s = t.isDiscoverStarted,
l = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
return (0, Pe.useEffect)((() => {
if (!n.appSettings.isDiscoverDone && o) {
const e = setTimeout((() => {
r.actions.openDiscover()
}), l);
return () => clearTimeout(e)
}
}), [o]), (0, zb.jsx)(zb.Fragment, {
children: (0, zb.jsx)(Rv, {
open: s,
onOpenChange: e => {
e || (t.actions.setDiscoverStarted(!1), n.actions.saveApplicationSettings({
name: "isDiscoverDone",
value: !0
}))
},
doneLabel: a("step_done_label"),
steps: [{
selector: '[data-sol-discover="menu"]',
title: a("step_menu_title"),
description: a("step_menu_description")
}, {
selector: '[data-sol-discover="status"]',
title: a("step_status_title"),
description: a("step_status_description"),
placement: "bottom-end"
}, {
selector: '[data-sol-discover="download"]',
title: a("step_download_title"),
description: a("step_download_description"),
placement: "bottom-end"
}, {
selector: '[data-sol-discover="user-profile"]',
title: a("step_user-profile_title"),
description: a("step_user-profile_description"),
placement: "bottom-end"
}, {
title: a("step_last_title"),
description: a("step_last_description")
}],
children: e
})
})
},
Ak = 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":[]}'),
Ck = ({
labelItem: e
}) => {
const [t, n] = (0, Pe.useState)(!1), {
t: r
} = wt("download"), i = ko(), a = Pk((e => e.installer)), o = Pk((e => e.application)), {
wipeAnimationsDisabled: s
} = sl().reduceMotion, l = (0, Pe.useMemo)((() => a.installations.find((e => e.status === z_.InstallationStatus.IN_PROGRESS || e.status === z_.InstallationStatus.PAUSED))), [a.installations]), c = e => {
o.actions.setDownloadPopoverOpened(e)
}, u = (0, Pe.useCallback)((e => {
var t, n, i, o;
return e.status === z_.InstallationStatus.COMPLETED ? [{
label: r("download_status"),
value: r("download_completed")
}] : e.status === z_.InstallationStatus.WAITING ? [{
label: r("download_status"),
value: r("download_waiting")
}] : e.status === z_.InstallationStatus.CANCELLING ? [{
label: r("download_status"),
value: r("download_cancelling")
}] : e.status === z_.InstallationStatus.ERROR ? [{
label: r("download_status"),
value: r("download_error")
}] : !a.progress || e.status !== z_.InstallationStatus.IN_PROGRESS && e.status !== z_.InstallationStatus.PAUSED ? void 0 : a.progress.progressUndeterminate ? [{
label: r("download_phase"),
value: a.progress.currentPhase
}] : [{
fill: !0,
label: r("download_phase"),
value: a.progress.currentPhase
}, {
label: r("download_speed"),
value: `${a.progress.speed}/s`
}, {
label: r("download_left"),
value: hx()(Math.max((null !== (t = a.progress.total) && void 0 !== t ? t : 0) - (null !== (n = a.progress.downloaded) && void 0 !== n ? n : 0), 0))
}, {
label: r("download_files_left"),
value: Math.max((null !== (i = a.progress.filesTotal) && void 0 !== i ? i : 0) - (null !== (o = a.progress.filesDone) && void 0 !== o ? o : 0), 0)
}]
}), [r, a.progress]), d = (0, Pe.useCallback)((e => {
var t, n;
return e.status === z_.InstallationStatus.IN_PROGRESS || e.status === z_.InstallationStatus.PAUSED || e.status === z_.InstallationStatus.CANCELLING ? [{
disabled: e.status === z_.InstallationStatus.CANCELLING || !(null !== (t = a.progress) && void 0 !== t && t.isPausable),
icon: e.status === z_.InstallationStatus.PAUSED ? Qx : Kx,
label: e.status === z_.InstallationStatus.PAUSED ? r("download_resume") : r("download_pause"),
tooltip: e.status === z_.InstallationStatus.PAUSED ? r("download_resume") : r("download_pause"),
onClick: e.status === z_.InstallationStatus.PAUSED ? () => a.actions.resumeInstallation(e.game) : () => a.actions.pauseInstallation(e.game)
}, {
disabled: e.status === z_.InstallationStatus.CANCELLING || !(null !== (n = a.progress) && void 0 !== n && n.isPausable),
icon: Vx,
label: r("download_cancel"),
tooltip: r("download_cancel"),
onClick: () => a.actions.cancelInstallation(e.game)
}] : [{
icon: Gx,
label: r("download_remove"),
tooltip: r("download_remove"),
onClick: () => a.actions.cancelInstallation(e.game)
}]
}), [r, a.progress, a.actions]);
return (0, zb.jsx)(Cg, {
title: r("download_title"),
offset: "large",
placement: "bottom-end",
footer: (0, zb.jsx)(Ol, {
size: "small",
variant: "plain",
icon: Zx,
onClick: () => (() => {
const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
if (c(!1), s) return void i(`${RE.SETTINGS}/${RE.SETTINGS_DOWNLOAD}`);
o.actions.setAnimatingAppLayoutWipe("full", !0);
const t = setTimeout((() => {
i(`${RE.SETTINGS}/${RE.SETTINGS_DOWNLOAD}`)
}), e / 2);
return () => clearTimeout(t)
})(),
children: r("download_settings")
}),
fullWidth: !0,
trigger: (0, zb.jsx)(Ml, {
"data-test-id": "download",
"data-sol-discover": "download",
icon: (0, zb.jsx)(bl, {
source: Ak,
isPlaying: void 0 !== l && !o.isDownloadPopoverOpened && !t
}),
label: e,
onMouseEnter: () => n(!0),
onMouseLeave: () => n(!1)
}),
open: o.isDownloadPopoverOpened,
onOpenChange: e => c(e),
children: a.installations.length > 0 ? a.installations.map(((e, t) => ((e, t) => {
var n;
return (0, zb.jsxs)(zb.Fragment, {
children: [0 !== e && (0, zb.jsx)(gp, {
spacing: "100"
}), (0, zb.jsx)(_p, {
title: `${t.game.gameName} - ${t.release?t.release.versionLabel+" - ":""}${t.game.channelId}`,
subtitle: r(`download_type_${t.type}`),
state: t.status,
actions: d(t),
progress: t.status === z_.InstallationStatus.IN_PROGRESS && null !== (n = a.progress) && void 0 !== n && n.showProgress ? a.progress.percentage : void 0,
stats: u(t)
}, `${t.game.gameId}-${t.game.channelId}`)]
})
})(t, e))) : r("download_empty")
})
},
Rk = 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":[]}'),
Tk = ({
title: e,
status: t,
label: n
}) => (0, zb.jsxs)(Ll, {
as: "dl",
align: "center",
gap: "100",
justify: "space-between",
children: [(0, zb.jsx)(xl, {
as: "dt",
color: "foreground-weak",
variant: "body-m",
children: e
}), (0, zb.jsx)(Cp, {
as: "dd",
status: U_(t),
children: null !== n && void 0 !== n ? n : "-"
})]
}),
Dk = ({
labelItem: e
}) => {
const [t, n] = (0, Pe.useState)(!1), {
t: r
} = wt("status"), i = Pk((e => e.status)), a = Pk((e => e.application)), o = i.systems && i.systems.length > 0, s = (0, Pe.useMemo)((() => {
if (!t && !a.isStatusPopoverOpened && i.summaryStatus && i.summaryStatus !== z_.RSISystemStatus.OPERATIONAL) return "status-" + U_(i.summaryStatus)
}), [t, a.isStatusPopoverOpened, i.summaryStatus]);
return (0, zb.jsx)(Cg, {
title: r("status_title"),
offset: "large",
placement: "bottom-end",
fullWidth: !0,
trigger: (0, zb.jsx)(Ml, {
"data-test-id": "status",
"data-sol-discover": "status",
icon: (0, zb.jsx)(bl, {
color: s,
source: Rk,
isPlaying: !a.isStatusPopoverOpened && !t && i.summaryStatus !== z_.RSISystemStatus.OPERATIONAL
}),
label: e,
onMouseEnter: () => n(!0),
onMouseLeave: () => n(!1)
}),
open: a.isStatusPopoverOpened,
onOpenChange: e => {
a.actions.setStatusPopoverOpened(e)
},
footer: (0, zb.jsxs)(zb.Fragment, {
children: [(0, zb.jsx)(Ol, {
external: !0,
href: z_.configuration.statusUrl,
size: "small",
endIcon: Yx,
variant: "plain",
children: r("status_more_information")
}), (0, zb.jsx)(xl, {
color: "foreground-weak",
variant: "body-xs",
children: i.lastRequestDate ? r("status_last_updated", {
time: R_(i.lastRequestDate, "relative")
}) : r("status_last_updated_empty")
})]
}),
children: (0, zb.jsx)(Ll, {
vertical: !0,
gap: "100",
children: o ? i.systems.map((e => (0, zb.jsx)(Tk, {
title: e.name,
status: e.status,
label: r("status_" + e.status)
}, e.name))) : r("status_empty")
})
})
},
Nk = () => {
var e, t, n, r, i, a;
const o = ko(),
{
t: s
} = wt("appHeader"),
l = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)),
{
window: {
setMinimizeWindow: c
}
} = D_(),
u = Pk((e => e.application)),
d = Pk((e => e.user)),
p = Pk((e => e.soundSystem)),
h = Pk((e => e.window)),
f = Pk((e => e.installer)),
{
wipeAnimationsDisabled: m
} = sl().reduceMotion,
{
isLoggedIn: g
} = d.actions,
v = void 0 !== vx(f.installations),
_ = (0, Pe.useMemo)((() => {
var e;
const t = null === (e = d.identity) || void 0 === e ? void 0 : e.avatar;
return t ? t.match(/^https?:\/\//) ? t : G_(t) : z_.configuration.defaultAvatarUrl
}), [null === (e = d.identity) || void 0 === e ? void 0 : e.avatar]),
y = (0, Pe.useMemo)((() => {
var e;
const t = null === (e = d.identity) || void 0 === e ? void 0 : e.nickname;
return t ? G_(`/citizens/${t}`) : z_.configuration.playnowUrl
}), [null === (t = d.identity) || void 0 === t ? void 0 : t.nickname]);
return (0, zb.jsxs)(Fl, {
children: [(0, zb.jsxs)(Eg, {
offset: "large",
trigger: (0, zb.jsx)(Ml, {
"data-test-id": "rsi-menu",
"data-sol-discover": "menu",
endIcon: Fx,
label: s("app_header_menu"),
children: (0, zb.jsx)(Rg, {})
}),
children: [g() && (0, zb.jsx)(wg, {
onClick: () => {
if (m) return void o(RE.SETTINGS);
u.actions.setAnimatingAppLayoutWipe("full", !0);
const e = setTimeout((() => {
o(RE.SETTINGS)
}), l / 2);
return () => clearTimeout(e)
},
label: s("app_header_menu_settings"),
disabled: window.location.hash.includes(RE.SETTINGS)
}), (0, zb.jsx)(wg, {
external: !0,
endIcon: Yx,
href: z_.configuration.supportUrl,
label: s("app_header_menu_get_help"),
"data-test-id": "rsi-menu-help"
}), (0, zb.jsx)(wg, {
external: !0,
endIcon: Yx,
href: z_.configuration.spectrumUrl,
label: s("app_header_menu_spectrum")
}), (0, zb.jsx)(wg, {
external: !0,
endIcon: Yx,
href: z_.configuration.issueCouncilUrl,
label: s("app_header_menu_issue_council")
}), (0, zb.jsx)(wg, {
label: s("app_header_menu_discover"),
"data-test-id": "rsi-menu-discover",
onClick: () => {
if (window.location.hash.includes(RE.SETTINGS)) {
if (m) return void o(RE.HOME);
u.actions.setAnimatingAppLayoutWipe("full", !0);
const e = setTimeout((() => {
o(RE.HOME), h.actions.openDiscover()
}), l / 2);
return () => clearTimeout(e)
}
h.actions.openDiscover()
},
disabled: v
}), (0, zb.jsx)(wg, {
label: s("app_header_menu_exit_the_app"),
"data-test-id": "rsi-menu-exit",
onClick: e => {
e.preventDefault(), h.actions.exitLauncher()
}
})]
}), (0, zb.jsx)(Tv, {
value: p.volume,
label: s("app_header_volume"),
muteLabel: s("app_header_volume_mute"),
unmuteLabel: s("app_header_volume_unmute"),
onChange: e => {
p.actions.changeVolume(e)
}
}), (0, zb.jsxs)(jl, {
children: [g() && (0, zb.jsxs)(zb.Fragment, {
children: [(0, zb.jsx)(Dk, {
labelItem: s("app_header_actions_menu_rsi_status")
}), (0, zb.jsx)(zl, {}), (0, zb.jsx)(Ck, {
labelItem: s("app_header_actions_download")
}), (0, zb.jsxs)(Eg, {
offset: "large",
placement: "bottom-end",
trigger: (0, zb.jsx)(Ml, {
"data-test-id": "avatar-menu",
"data-sol-discover": "user-profile",
hasAvatar: !0,
label: s("app_header_account"),
children: (0, zb.jsx)(Vl, {
"data-test-id": "avatar-img",
src: _
})
}),
children: [(0, zb.jsx)(kg, {
"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, zb.jsx)(wg, {
external: !0,
href: y,
endIcon: Yx,
label: s("app_header_actions_menu_rsi_account"),
"data-test-id": "avatar-url"
}), (0, zb.jsx)(wg, {
"data-test-id": "avatar-logout",
label: s("app_header_actions_menu_log_out"),
onClick: e => {
e.preventDefault(), h.actions.logoutLauncher()
}
})]
})]
}), (0, zb.jsx)(Ml, {
alwaysOnTop: !0,
"aria-label": "Minimize",
onClick: c,
disableFocus: !0,
icon: Hx
}), (0, zb.jsx)(Ml, {
alwaysOnTop: !0,
"aria-label": "Close",
onClick: e => {
e.preventDefault(), h.actions.closeLauncher()
},
disableFocus: !0,
icon: Gx
})]
})]
})
},
Lk = () => {
const [e, t] = (0, Pe.useState)("");
return (0, Pe.useEffect)((() => {
const e = setTimeout((() => t("in")), z_.configuration.appLayoutLoaderWipeTrigger);
return () => clearTimeout(e)
}), []), (0, zb.jsx)(Ul, {
className: "sol-u-animation-wipe",
"data-sol-animation-wipe": e,
children: (0, zb.jsx)(_g, {})
})
},
jk = () => {
const e = Pk((e => e.autoUpdate));
return (() => {
const e = Pk((e => e.autoUpdate)),
{
onUpdateDownloaded: t,
onQuitInstallError: n
} = window.launcherAPI.autoUpdate;
(0, Pe.useEffect)((() => t((t => e.actions.displayDialog(t)))), [e.actions, t]), (0, Pe.useEffect)((() => n((t => e.actions.displayDialog(t)))), [e.actions, n])
})(), (0, zb.jsx)(mp, {
...e.dialog
})
},
Mk = Aw.create((({
title: e,
content: t,
primaryCallback: n,
primaryLabel: r,
typeDialog: i
}) => {
const a = ww(),
{
t: o
} = wt(["dialog"]),
s = {
close: !1,
label: null !== r && void 0 !== r ? r : o("dialog_action_ok", {
ns: "dialog"
}),
onClick: () => {
null === n || void 0 === n || n(), a.resolve({
resolved: !0
}), a.hide()
}
};
return (0, zb.jsx)(mp, {
open: a.visible,
onOpenChange: e => a[e ? "show" : "hide"](),
title: e,
type: null !== i && void 0 !== i ? i : "negative",
close: o("dialog_action_close"),
actions: [s],
children: t
})
}));
Aw.register("acknowledgement-dialog", Mk);
const zk = Aw.create((({
title: e,
content: t,
primaryCallback: n,
primaryLabel: r,
typeDialog: i,
secondaryCallback: a,
secondaryLabel: o
}) => {
const s = ww(),
{
t: l
} = wt(["dialog"]),
c = [{
label: null !== o && void 0 !== o ? o : l("dialog_warning_back_launcher", {
ns: "dialog"
}),
close: !1,
onClick: () => {
null === a || void 0 === a || a(), s.resolve({
resolved: !1
}), s.hide()
}
}, {
label: null !== r && void 0 !== r ? r : l("dialog_action_confirm", {
ns: "dialog"
}),
type: "submit",
form: "exitAppForm",
close: !1
}];
return (0, zb.jsx)(mp, {
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, zb.jsx)("form", {
id: "exitAppForm",
onSubmit: e => {
e.preventDefault();
const t = e.target,
r = new FormData(t),
i = Object.fromEntries(r.entries());
s.resolve({
resolved: !0,
results: i
}), s.hide(), null === n || void 0 === n || n()
},
children: t
})
})
}));
Aw.register("form-dialog", zk);
const Fk = Aw.create((({
title: e,
content: t,
primaryCallback: n,
primaryLabel: r,
typeDialog: i,
secondaryCallback: a,
secondaryLabel: o,
disablePrimaryUntilScrolled: s
}) => {
const l = ww(),
{
t: c
} = wt(["dialog"]),
u = {
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()
}
},
d = {
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()
}
};
return (0, zb.jsx)(mp, {
open: l.visible,
onOpenChange: e => l[e ? "show" : "hide"](),
title: e,
type: null !== i && void 0 !== i ? i : "negative",
close: c("dialog_action_close"),
actions: [u, d],
children: t
})
}));
Aw.register("warning-confirm-dialog", Fk);
const Uk = e => {
var t, n, r;
const i = Pk((e => e.library)),
a = Pk((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
} = sl().reduceMotion,
l = ko(),
c = So(),
{
t: u
} = wt("gamePage"),
d = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)),
[p, h] = (0, Pe.useState)(c.gameId),
f = (({
location: e,
delay: t
}) => {
const n = ko(),
r = (0, Pe.useRef)(n);
return (0, Pe.useEffect)((() => {
const n = setTimeout((() => {
e && r.current(e)
}), t);
return () => clearTimeout(n)
}), [e, t]), r.current
})({
location: `game-page/${p}`,
delay: d / 2
});
return (0, zb.jsx)(rg, {
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, zb.jsx)(ng, {
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))
})
},
Vk = ({
status: e
}) => {
const {
t: t
} = wt(["gamePage", "status"]), n = e === z_.RSISystemStatus.MAINTENANCE ? t("game_page_status_under_maintenance", {
ns: "gamePage"
}) : t("game_page_status_issue", {
ns: "gamePage"
});
return (0, zb.jsxs)(Rp, {
title: t("status_" + e, {
ns: "status"
}),
status: U_(e),
children: [n, " ", (0, zb.jsx)(gt, {
i18nKey: "game_page_status_more_information",
ns: "gamePage",
components: [(0, zb.jsx)(ug, {
external: !0,
href: z_.configuration.statusUrl
})]
})]
})
},
Gk = (0, Pe.forwardRef)((({
children: e,
href: t = "",
...n
}, r) => t.startsWith("http") ? (0, zb.jsx)("a", {
href: t,
ref: r,
rel: "noopener noreferrer",
target: "_blank",
...n,
children: e
}) : (0, zb.jsx)(is, {
ref: r,
to: t,
...n,
children: e
}))),
Bk = ({
children: e,
control: t,
name: n,
defaultValue: r,
required: i,
rules: a,
selectProps: o,
...s
}) => {
var l;
const {
field: {
value: c,
onBlur: u,
onChange: d,
ref: p
},
fieldState: {
error: h,
invalid: f
}
} = Iy({
name: n,
control: t,
defaultValue: r,
rules: {
required: i,
...a
}
});
return (0, zb.jsx)(kp, {
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, zb.jsx)(Dg, {
name: n,
value: null !== c && void 0 !== c ? c : "",
onBlur: u,
onChange: d,
ref: p,
...o,
children: e
})
})
},
$k = ({
control: e,
name: t,
defaultValue: n,
required: r,
rules: i,
type: a,
inputProps: o,
...s
}) => {
var l;
const {
field: {
value: c,
onBlur: u,
onChange: d,
ref: p
},
fieldState: {
error: h,
invalid: f
}
} = Iy({
name: t,
control: e,
defaultValue: n,
rules: {
required: r,
...i
}
}), {
t: m
} = wt("form");
return (0, zb.jsx)(kp, {
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, zb.jsx)(cg, {
name: t,
value: null !== c && void 0 !== c ? c : "",
onBlur: u,
onChange: d,
ref: p,
hidePasswordLabel: m("text_field_show_password"),
showPasswordLabel: m("text_field_hide_password"),
type: a,
...o
})
})
},
qk = () => {
const e = Pk((e => e.toasts)),
{
wipeAnimType: t,
isHeaderVisible: n
} = (() => {
var e, t;
const n = Pk((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, Pe.useState)(!1),
[l, c] = (0, Pe.useState)("");
return (0, Pe.useEffect)((() => {
r ? (async () => {
switch (n.actions.setAnimatingAppLayoutWipe("", !1), c(""), i) {
case "in":
c("in");
break;
case "in-rtl":
c("in-rtl");
break;
case "out":
c("out"), s(!0);
break;
case "out-rtl":
c("out-rtl"), s(!0);
break;
case "full-rtl":
c("in-rtl"), await new Promise((e => setTimeout(e, a / 2))), c("out-rtl");
break;
default:
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]), {
wipeAnimType: l,
isHeaderVisible: o
}
})();
return Gb(), (() => {
const {
game: {
onLaunchGameSuccessfull: e,
onLaunchGameFailed: t,
onLaunchGameStopped: n
}
} = window.launcherAPI, r = Pk((e => e.library));
(0, Pe.useEffect)((() => e((e => {
r.actions.setLaunchGameSuccessfull(e)
}))), [r.actions, e]), (0, Pe.useEffect)((() => t((e => {
r.actions.setLaunchGameFailed(e)
}))), [r.actions, t]), (0, Pe.useEffect)((() => n((e => {
r.actions.setLaunchGameStopped(e)
}))), [r.actions, n])
})(), (() => {
const {
installer: {
onInstallFailed: e,
onInstallSuccess: t,
onInstallProgress: n,
onCancelationSuccess: r,
onCancelationFailed: i,
onUninstallSuccess: a,
onUninstallFailed: o
}
} = window.launcherAPI, s = Pk((e => e.installer));
(0, Pe.useEffect)((() => n((e => {
s.actions.setInstallationProgress(e)
}))), [s.actions, n]), (0, Pe.useEffect)((() => t((e => {
s.actions.setInstallationSuccess(e)
}))), [s.actions, t]), (0, Pe.useEffect)((() => e((e => {
s.actions.setInstallationFailed(e)
}))), [s.actions, e]), (0, Pe.useEffect)((() => r((() => {
s.actions.setCancelationSuccess()
}))), [s.actions, r]), (0, Pe.useEffect)((() => i((e => {
s.actions.setCancelationFailed(e)
}))), [s.actions, i]), (0, Pe.useEffect)((() => a((e => {
s.actions.setUninstallationSuccess(e)
}))), [s.actions, a]), (0, Pe.useEffect)((() => o((e => {
s.actions.setUninstallationFailed(e)
}))), [s.actions, o])
})(), (0, Pe.useEffect)((() => {
e.actions.init()
}), [e.actions]), (0, zb.jsx)(zb.Fragment, {
children: (0, zb.jsx)(Ik, {
children: (0, zb.jsxs)(Ul, {
className: "sol-u-animation-wipe",
"data-sol-animation-wipe": t,
header: n ? (0, zb.jsx)(Nk, {}) : void 0,
children: [(0, zb.jsx)(Fo, {}), (0, zb.jsx)(jk, {}), (0, zb.jsx)($g, {
toasts: e.list
})]
})
})
})
},
Wk = () => {
(0, Pe.useEffect)((() => {
D_().window.setLargeWindow()
}), [])
},
Hk = () => {
const e = Pk((e => e.application)),
{
wipeAnimationsDisabled: t
} = sl().reduceMotion,
n = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
return (0, Pe.useEffect)((() => {
D_().window.setSmallWindow()
}), []), (0, Pe.useEffect)((() => {
if (t) {
const t = setTimeout((() => {
e.actions.setAnimatingAppLayoutWipe("out", !1)
}), n);
return () => clearTimeout(t)
}
}), [e.actions, n]), (0, zb.jsx)(Fg, {
children: (0, zb.jsx)(Fo, {})
})
},
Yk = () => {
var e;
const t = Pk((e => e.library)),
n = Pk((e => e.application)),
r = null === (e = n.animations.appLayoutWipe) || void 0 === e ? void 0 : e.isAnimating,
{
wipeAnimationsDisabled: i
} = sl().reduceMotion;
Wk();
const a = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)),
[o, s] = (0, Pe.useState)("is-init"),
l = (0, Pe.useCallback)((async () => {
await t.actions.checkForGameChannelUpdates()
}), [t.actions]);
return (0, Pe.useEffect)((() => {
t.installedGames.length > 0 && l()
}), [l, t.installedGames.length]), (0, Pe.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]), ((e, t) => {
const n = (0, Pe.useRef)(e);
(0, Pe.useEffect)((() => {
n.current = e
}), [e]), (0, Pe.useEffect)((() => {
if (null !== t) {
const e = setInterval((() => n.current()), t);
return () => clearInterval(e)
}
}), [t])
})(l, t.installedGames.length > 0 ? kx(z_.configuration.requestPollingInterval.library.base, z_.configuration.requestPollingInterval.library.window) : null), (0, zb.jsx)(tg, {
navigation: (0, zb.jsx)(Uk, {}),
"data-sol-animation-gamepage": o,
children: (0, zb.jsx)(Fo, {})
})
},
Kk = () => {
const e = Pk((e => e.application)),
t = Pk((e => e.user)),
n = ko(),
{
pathname: r
} = xo(),
{
t: i
} = wt("settingsPage");
Wk();
const {
wipeAnimationsDisabled: a
} = sl().reduceMotion, o = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), s = [{
title: i("settings_nav_items_application"),
path: "application"
}, {
title: i("settings_nav_items_accessibility"),
path: "accessibility"
}, {
title: i("settings_nav_items_games"),
path: "games"
}, {
title: i("settings_nav_items_download"),
path: "download"
}, {
title: i("settings_nav_items_about"),
path: "about"
}, {
title: i("settings_nav_items_dev"),
path: "dev",
staff: !0
}];
return (0, zb.jsxs)(Mg, {
children: [(0, zb.jsx)(Lg, {
back: {
label: i("settings_common_back"),
href: ".."
},
title: "Settings",
backCallback: () => {
if (a) return void n(RE.HOME);
e.actions.setAnimatingAppLayoutWipe("full-rtl", !0);
const t = setTimeout((() => {
n(RE.HOME)
}), o / 2);
return () => clearTimeout(t)
},
children: s.map((e => {
const n = t.identity && t.identity.privileged,
i = oa({
path: `/${RE.SETTINGS}/${e.path}`,
end: !1
}, r);
return (!e.staff || e.staff && n) && (0, zb.jsx)(jg, {
active: Boolean(i),
href: e.path,
children: e.title
}, e.path)
}))
}), (0, zb.jsx)(Fo, {})]
})
},
Qk = () => {
var e;
const {
t: t
} = wt("settingsPage");
return (0, zb.jsx)(Ng, {
title: t("settings_about_title"),
children: (0, zb.jsxs)(xl, {
color: "foreground-weak",
variant: "body-m",
multiline: !0,
children: [(0, zb.jsx)("img", {
src: `${z_.configuration.assetsDirectory}/logos/cig-logo.svg`,
alt: t("settings_about_logo_alt"),
width: "120"
}), (0, zb.jsx)("p", {
children: t("settings_about_copyright", {
year: (new Date).getFullYear()
})
}), (0, zb.jsx)("hr", {}), (0, zb.jsxs)("p", {
children: [(0, zb.jsx)("strong", {
children: t("settings_about_launcher_version")
}), " ", null !== (e = "2.0.3 (beta)") ? e : "\u2013"]
})]
})
})
};
function Zk(e, t, n) {
var r = this,
i = (0, Pe.useRef)(null),
a = (0, Pe.useRef)(0),
o = (0, Pe.useRef)(null),
s = (0, Pe.useRef)([]),
l = (0, Pe.useRef)(),
c = (0, Pe.useRef)(),
u = (0, Pe.useRef)(e),
d = (0, Pe.useRef)(!0);
u.current = e;
var p = "undefined" != typeof window,
h = !t && 0 !== t && p;
if ("function" != typeof e) throw new TypeError("Expected a function");
t = +t || 0;
var f = !!(n = n || {}).leading,
m = !("trailing" in n) || !!n.trailing,
g = "maxWait" in n,
v = "debounceOnServer" in n && !!n.debounceOnServer,
_ = g ? Math.max(+n.maxWait || 0, t) : null;
(0, Pe.useEffect)((function() {
return d.current = !0,
function() {
d.current = !1
}
}), []);
var y = (0, Pe.useMemo)((function() {
var e = function(e) {
var t = s.current,
n = l.current;
return s.current = l.current = null, a.current = e, c.current = u.current.apply(n, t)
},
n = function(e, t) {
h && cancelAnimationFrame(o.current), o.current = h ? requestAnimationFrame(e) : setTimeout(e, t)
},
y = function(e) {
if (!d.current) return !1;
var n = e - i.current;
return !i.current || n >= t || n < 0 || g && e - a.current >= _
},
b = function(t) {
return o.current = null, m && s.current ? e(t) : (s.current = l.current = null, c.current)
},
x = function e() {
var r = Date.now();
if (y(r)) return b(r);
if (d.current) {
var o = t - (r - i.current),
s = g ? Math.min(o, _ - (r - a.current)) : o;
n(e, s)
}
},
w = function() {
if (p || v) {
var u = Date.now(),
h = y(u);
if (s.current = [].slice.call(arguments), l.current = r, i.current = u, h) {
if (!o.current && d.current) return a.current = i.current, n(x, t), f ? e(i.current) : c.current;
if (g) return n(x, t), e(i.current)
}
return o.current || n(x, t), c.current
}
};
return w.cancel = function() {
o.current && (h ? cancelAnimationFrame(o.current) : clearTimeout(o.current)), a.current = 0, s.current = i.current = l.current = o.current = null
}, w.isPending = function() {
return !!o.current
}, w.flush = function() {
return o.current ? b(Date.now()) : c.current
}, w
}), [f, g, t, _, m, h, p, v]);
return y
}
function Xk(e, t, n) {
var r = void 0 === n ? {} : n,
i = r.leading,
a = r.trailing;
return Zk(e, t, {
maxWait: t,
leading: void 0 === i || i,
trailing: void 0 === a || a
})
}
const Jk = () => {
const [e, t] = (0, Pe.useState)(!1), [n, r] = (0, Pe.useState)([{
id: "backgroundVideoDisabled",
title: "settings_accessibility_reduce_motion_background_video_toggle_title",
description: "settings_accessibility_reduce_motion_background_video_toggle_description",
value: !1,
dirty: null
}, {
id: "unessentialAnimationsDisabled",
title: "settings_accessibility_reduce_motion_unessential_animation_toggle_title",
description: "settings_accessibility_reduce_motion_unessential_animation_toggle_description",
value: !1,
dirty: null
}, {
id: "wipeAnimationsDisabled",
title: "settings_accessibility_reduce_motion_transition_effects_toggle_title",
description: "settings_accessibility_reduce_motion_transition_effects_toggle_description",
value: !1,
dirty: null
}]), [i, a] = (0, Pe.useState)({
id: "syncWithSystem",
title: "settings_accessibility_reduce_motion_system_sync_title",
description: "settings_accessibility_reduce_motion_system_sync_description",
value: !1,
dirty: null
}), {
t: o
} = wt("settingsPage"), s = Pk((e => e.settings)), l = Xk((async e => await s.actions.setAccessibilitySettingsToPersistentStore(e)), 400), c = (0, Pe.useCallback)((() => {
const e = n.some((e => e.dirty)),
t = i.dirty;
return e || t
}), [n, i]), u = (0, Pe.useCallback)((async () => {
var e;
const n = s.actions.getAccessibilitySettings(),
i = null !== (e = await s.actions.getAccessibilitySettingsFromPersistentStore()) && void 0 !== e ? e : qw,
o = await s.actions.getAnimationSystemSettings();
t(o.prefersReducedMotion), a((e => {
const t = n.reduceMotion.syncWithSystem !== i.reduceMotion.syncWithSystem;
return {
...e,
value: i.reduceMotion.syncWithSystem,
dirty: t
}
})), i.reduceMotion.syncWithSystem ? r((e => e.map((e => {
const t = n.reduceMotion[e.id] !== o.prefersReducedMotion;
return t && (l([{
id: e.id,
value: o.prefersReducedMotion
}]), s.actions.setAccessibilitySettings([{
id: e.id,
value: o.prefersReducedMotion
}])), {
...e,
value: o.prefersReducedMotion,
dirty: t
}
})))) : r((e => e.map((e => {
const t = i.reduceMotion[e.id],
r = n.reduceMotion[e.id] !== t;
return {
...e,
value: t,
dirty: r
}
}))))
}), [s.actions]), d = (0, Pe.useCallback)((async (e, t) => {
r((n => n.map((n => n.id === t ? {
...n,
value: e,
dirty: !0
} : n)))), l([{
id: t,
value: e
}])
}), [l]), p = (0, Pe.useCallback)((async e => {
const o = await s.actions.getAnimationSystemSettings();
t(o.prefersReducedMotion), r((t => t.map((t => ({
...t,
value: !!e && o.prefersReducedMotion,
dirty: !0
}))))), a((t => ({
...t,
value: e,
dirty: !0
})));
const c = [...n.map((t => ({
id: t.id,
value: !!e && o.prefersReducedMotion
}))), ...i && [{
id: "syncWithSystem",
value: e
}]];
l(c)
}), [l]);
return (0, Pe.useEffect)((() => {
u()
}), []), (0, zb.jsxs)(lp, {
title: o("settings_accessibility_reduce_motion_title"),
description: o("settings_accessibility_reduce_motion_description"),
children: [(0, zb.jsx)(cp, {
checked: i.value,
type: "checkbox",
onChange: ({
target: {
checked: e
}
}) => p(e),
description: o(i.description),
warning: i.dirty,
children: o(i.title)
}), (0, zb.jsx)(Ll, {
vertical: !0,
gap: "100",
className: "sol-u-padding-is-250",
children: n.map((e => (0, zb.jsx)(cp, {
type: "toggle",
description: o(e.description),
checked: e.value,
onChange: ({
target: {
checked: t
}
}) => d(t, e.id),
disabled: i.value,
warning: e.dirty,
children: o(e.title)
}, e.id)))
}), i.value && (0, zb.jsx)(sp, {
className: "sol-u-padding-is-250",
children: (0, zb.jsx)(op, {
type: "informative",
children: o("settings_accessibility_reduce_motion_information_" + (e ? "enabled" : "disabled"))
})
}), c() && (0, zb.jsx)(op, {
className: "sol-u-margin-bs-150",
type: "notice",
icon: Xx,
children: (0, zb.jsx)(gt, {
i18nKey: "settings_accessibility_reduce_motion_information_restart_link_label",
ns: "settingsPage",
components: {
iclink: (0, zb.jsx)(ug, {
href: "#",
onClick: () => s.actions.restartApp(),
inherit: !0
})
}
})
})]
})
},
eE = () => {
const {
t: e
} = wt("settingsPage");
return (0, zb.jsx)(Ng, {
title: e("settings_accessibility_title"),
children: (0, zb.jsx)(Jk, {})
})
},
tE = () => {
const e = Pk((e => e.dialog)),
t = Pk((e => e.settings)),
{
t: n
} = wt("settingsPage"),
[r, i] = (0, Pe.useState)(!1),
[a, o] = (0, Pe.useState)(null);
Mb((() => {
o(null), i(!1)
}), M_, r), (0, Pe.useEffect)((() => {
const e = window.launcherAPI.store.onClearStoreSuccess((() => {
i(!0), o({
id: "isCacheCleared",
message: n("settings_common_saved")
})
})),
t = window.launcherAPI.store.onClearStoreError((() => {
i(!1), o(null)
}));
return () => {
e(), t()
}
}), []);
const s = (0, Pe.useCallback)((async () => {
a && o(null), await e.actions.showWarningDialogCacheClear()
}), [e.actions, a]),
l = (0, Pe.useCallback)((async () => {
t.actions.debugGetLogs()
}), [t.actions]);
return (0, zb.jsx)(lp, {
title: n("settings_application_debug_tools_title"),
description: (0, zb.jsx)(gt, {
i18nKey: "settings_application_debug_tools_description",
ns: "settingsPage",
components: {
iclink: (0, zb.jsx)(ug, {
href: z_.configuration.issueCouncilUrl,
label: n("app_header_menu_issue_council"),
external: !0
})
}
}),
children: (0, zb.jsxs)(kp, {
horizontal: !0,
success: a && a.message,
label: n("settings_application_debug_tools_label"),
labelType: "hidden",
children: [(0, zb.jsx)(Ol, {
onClick: () => s(),
type: "button",
children: n("settings_application_debug_tools_button_clear_cache")
}), (0, zb.jsx)(Ol, {
onClick: () => l(),
type: "button",
children: n("settings_application_debug_tools_button_get_logs")
})]
})
})
},
nE = () => {
const e = Pk((e => e.settings)),
[t, n] = (0, Pe.useState)(e.appSettings.quitOnWindowClose),
[r, i] = (0, Pe.useState)(!1),
[a, o] = (0, Pe.useState)(null),
{
t: s
} = wt("settingsPage");
Mb((() => {
o(null), i(!1)
}), M_, r), (0, Pe.useEffect)((() => {
const e = window.launcherAPI.store.onSetValueToStoreSuccess((e => {
"application.quitOnWindowClose" === e.key && (i(!0), o({
id: "quitOnWindowClose",
message: s("settings_common_saved")
}))
})),
t = window.launcherAPI.store.onSetValueToStoreError((e => {
"application.quitOnWindowClose" === e.key && (i(!1), o(null))
}));
return () => {
e(), t()
}
}), []), (0, Pe.useEffect)((() => {
n(e.appSettings.quitOnWindowClose)
}), [e.appSettings.quitOnWindowClose]);
const l = Xk((async t => await e.actions.saveApplicationSettings({
name: "quitOnWindowClose",
value: t
})), 400),
c = (0, Pe.useCallback)((async e => {
a && o(null), n(e), l(e)
}), [l, a]);
return (0, zb.jsx)(lp, {
title: s("settings_application_window_behavior_title"),
description: s("settings_application_window_behavior_description"),
children: (0, zb.jsx)(cp, {
type: "toggle",
checked: t,
onChange: ({
target: {
checked: e
}
}) => c(e),
success: a && a.message,
children: s("settings_application_window_behavior_close_to_quit")
})
})
},
rE = () => {
const {
t: e
} = wt("settingsPage");
return (0, zb.jsxs)(Ng, {
title: e("settings_application_title"),
children: [(0, zb.jsx)(nE, {}), (0, zb.jsx)(gp, {
spacing: "250"
}), (0, zb.jsx)(tE, {})]
})
},
iE = () => {
const e = Pk((e => e.settings)),
[t, n] = (0, Pe.useState)(e.appSettings.isDiscoverDone),
[r, i] = (0, Pe.useState)(!1),
[a, o] = (0, Pe.useState)(null),
{
t: s
} = wt("settingsPage");
Mb((() => {
o(null), i(!1)
}), M_, r), (0, Pe.useEffect)((() => {
const e = window.launcherAPI.store.onSetValueToStoreSuccess((e => {
"application.isDiscoverDone" === e.key && (i(!0), o({
id: "isDiscoverDone",
message: s("settings_common_saved")
}))
})),
t = window.launcherAPI.store.onSetValueToStoreError((e => {
"application.isDiscoverDone" === e.key && (i(!1), o(null))
}));
return () => {
e(), t()
}
}), []), (0, Pe.useEffect)((() => {
n(e.appSettings.isDiscoverDone)
}), [e.appSettings.isDiscoverDone]);
const l = Xk((async t => await e.actions.saveApplicationSettings({
name: "isDiscoverDone",
value: t
})), 400),
c = (0, Pe.useCallback)((async e => {
a && o(null), n(e), l(e)
}), [l, a]);
return (0, zb.jsx)(Ng, {
title: s("settings_dev_title"),
children: (0, zb.jsx)(lp, {
title: s("settings_application_discover_behavior_title"),
description: s("settings_application_discover_behavior_description"),
children: (0, zb.jsx)(cp, {
type: "toggle",
checked: t,
onChange: ({
target: {
checked: e
}
}) => c(e),
success: a && a.message,
children: s("settings_application_discover_behavior_isDiscoverDone")
})
})
})
},
aE = () => {
const {
t: e
} = wt("settingsPage"), t = Pk((e => e.settings)), n = {
[z_.InstallerOptions.ConcurrentTransfers]: t.appSettings.download.concurrentTransfers,
[z_.InstallerOptions.MaximumDownloadBandwidth]: t.appSettings.download.maximumDownloadBandwidth
}, [r, i] = (0, Pe.useState)(n), [a, o] = (0, Pe.useState)(!1), [s, l] = (0, Pe.useState)(null);
(0, Pe.useEffect)((() => {
const e = window.launcherAPI.installer.onSetDownloadOptionsSuccess((e => {
t.actions.onSetDownloadSettingsSuccess(e), o(!0)
}));
return () => {
e()
}
}), [t.actions]), Mb((() => {
o(!1)
}), M_, a);
const c = (0, Pe.useCallback)((async (e, n) => {
const r = parseInt(n, 10);
l(e), i((t => ({
...t,
[e]: r
}))), t.actions.setDownloadSettings(e, r)
}), [t.actions]);
return (0, zb.jsx)(Ng, {
title: e("settings_download_title"),
children: (0, zb.jsxs)(lp, {
title: e("settings_download_main_title"),
description: e("settings_download_main_content"),
children: [(0, zb.jsx)(kp, {
horizontal: !0,
label: e("settings_download_concurrent_title"),
success: s === z_.InstallerOptions.ConcurrentTransfers && a ? e("settings_common_saved") : null,
help: e("settings_download_concurrent_desc"),
children: (0, zb.jsx)(Dg, {
onValueChange: e => c(z_.InstallerOptions.ConcurrentTransfers, e),
value: r[z_.InstallerOptions.ConcurrentTransfers].toString(),
children: $w.map((e => (0, zb.jsx)(Tg, {
value: e.value.toString(),
label: e.label
}, e.label)))
})
}), (0, zb.jsx)(kp, {
horizontal: !0,
label: e("settings_download_speed_title"),
success: s === z_.InstallerOptions.MaximumDownloadBandwidth && a ? e("settings_common_saved") : null,
help: e("settings_download_speed_desc"),
children: (0, zb.jsx)(Dg, {
onValueChange: e => c(z_.InstallerOptions.MaximumDownloadBandwidth, e),
value: r[z_.InstallerOptions.MaximumDownloadBandwidth].toString(),
children: Bw.map((e => (0, zb.jsx)(Tg, {
value: e.value.toString(),
label: e.label
}, e.label)))
})
})]
})
})
};
let oE;
! function(e) {
e.HOSTNAME = "hostname", e.PORT = "port", e.EXECUTABLE = "executable", e.LAUNCHOPTIONS = "launchOptions"
}(oE || (oE = {}));
const sE = e => {
var t, n, r, i;
const {
t: a
} = wt("settingsPage"), o = Pk((e => e.settings)), s = e.gameSettings, l = {
[oE.HOSTNAME]: null !== (t = s.hostname) && void 0 !== t ? t : "",
[oE.PORT]: null !== (n = s.port) && void 0 !== n ? n : null,
[oE.EXECUTABLE]: null !== (r = s.executable) && void 0 !== r ? r : "",
[oE.LAUNCHOPTIONS]: null !== (i = s.launchOptions) && void 0 !== i ? i : ""
}, [c, u] = (0, Pe.useState)(!1), [d, p] = (0, Pe.useState)(null), [h, f] = (0, Pe.useState)(l);
Mb((() => {
p(null), u(!1)
}), M_, c);
const m = Xk((async (e, t) => {
const n = Object.fromEntries(Object.entries({
...h,
[e]: v(e, t)
}).filter((([e, t]) => null != t && "" !== t)));
0 === Object.values(n).length ? await o.actions.resetChannelGameSettings(s) : await o.actions.saveChannelGameSettings({
...n,
gameId: s.gameId,
gameName: s.gameName,
channelId: s.channelId,
channelName: s.channelName,
platformId: s.platformId
}), u(!0), p({
id: e,
message: a("settings_common_saved")
})
}), 600),
g = (0, Pe.useCallback)((async e => {
d && p(null), f({
...h,
[e.target.name]: v(e.target.name, e.target.value)
}), m(e.target.name, e.target.value)
}), [h, m, d]),
v = (e, t) => {
var n;
return e === oE.PORT ? "" === t ? null : parseInt(t) : e !== oE.LAUNCHOPTIONS ? null !== (n = t.trim()) && void 0 !== n ? n : "" : null !== t && void 0 !== t ? t : ""
};
return (0, zb.jsxs)(zb.Fragment, {
children: [(0, zb.jsx)(gp, {
spacing: "250"
}), (0, zb.jsxs)(lp, {
title: a("settings_games_launch_command_line"),
description: a("settings_games_launch_disclaimer"),
children: [(0, zb.jsx)(kp, {
horizontal: !0,
label: a("settings_games_launch_hostname"),
necessityIndicator: "Optional",
success: d && d.id === oE.HOSTNAME ? a("settings_common_saved") : null,
children: (0, zb.jsx)(cg, {
value: null === h || void 0 === h ? void 0 : h.hostname,
name: oE.HOSTNAME,
onChange: e => g(e)
})
}), (0, zb.jsx)(kp, {
horizontal: !0,
label: a("settings_games_launch_port"),
necessityIndicator: "Optional",
success: d && d.id === oE.PORT ? a("settings_common_saved") : null,
children: (0, zb.jsx)(cg, {
value: null === (null === h || void 0 === h ? void 0 : h.port) ? "" : null === h || void 0 === h ? void 0 : h.port,
name: oE.PORT,
type: "number",
onChange: e => g(e)
})
}), (0, zb.jsx)(kp, {
horizontal: !0,
label: a("settings_games_launch_executable"),
necessityIndicator: "Optional",
success: d && d.id === oE.EXECUTABLE ? a("settings_common_saved") : null,
children: (0, zb.jsx)(cg, {
value: null === h || void 0 === h ? void 0 : h.executable,
name: oE.EXECUTABLE,
onChange: e => g(e)
})
}), (0, zb.jsx)(kp, {
horizontal: !0,
label: a("settings_games_launch_launch_options"),
necessityIndicator: "Optional",
success: d && d.id === oE.LAUNCHOPTIONS ? a("settings_common_saved") : null,
children: (0, zb.jsx)(cg, {
as: "textarea",
value: null === h || void 0 === h ? void 0 : h.launchOptions,
name: oE.LAUNCHOPTIONS,
onChange: e => g(e)
})
})]
})]
})
},
lE = ({
open: e = !1,
...t
}) => {
var n, r;
const i = Pk((e => e.application)),
a = Pk((e => e.installer)),
o = Pk((e => e.library)),
s = Pk((e => e.settings)),
l = Pk((e => e.user)),
{
platformId: c,
gameId: u,
gameName: d,
channelId: p,
channelName: h,
installDir: f
} = t.item,
{
t: m
} = wt("settingsPage"),
g = (0, Pe.useMemo)((() => ({
platformId: c,
gameId: u,
gameName: d,
channelId: p,
channelName: h
})), [c, u, d, p, h]),
v = (0, Pe.useMemo)((() => {
var e;
return (null === (e = o.actions.getInstalledChannel(g)) || void 0 === e ? void 0 : e.status) === z_.GameChannelStatus.INSTALLED
}), [o, g]),
_ = (0, Pe.useMemo)((() => mx(a.installations, g)), [a, g]),
y = (0, Pe.useMemo)((() => gx(a.uninstallations, g)), [a, g]),
b = (0, Pe.useCallback)((e => {
const t = o.availableGames.find((t => t.id === e.gameId));
return null === t || void 0 === t ? void 0 : t.logo
}), [o.availableGames])(g),
x = _ && _.type === z_.InstallationType.VERIFY && _.status !== z_.InstallationStatus.COMPLETED,
w = _ && _.type === z_.InstallationType.INSTALL && _.status !== z_.InstallationStatus.COMPLETED,
k = void 0 !== y,
E = (0, Pe.useCallback)((e => _ && _.type === e ? i.actions.setDownloadPopoverOpened(!0) : a.actions.addInstallationToQueue(g, e)), [i.actions, g, _, a.actions]),
S = (0, Pe.useCallback)((() => a.actions.startUninstallation(t.item)), [a.actions, t.item]),
O = (0, Pe.useMemo)((() => x && (null === _ || void 0 === _ ? void 0 : _.status) === z_.InstallationStatus.PAUSED ? $x : x ? Ak : void 0), [null === _ || void 0 === _ ? void 0 : _.status, x]),
P = x && (null === _ || void 0 === _ ? void 0 : _.status) === z_.InstallationStatus.PAUSED ? m("settings_games_game_files_process_paused") : m(x ? "settings_games_game_files_verifying_files" : "settings_games_game_files_verify_files"),
I = w && _.status === z_.InstallationStatus.PAUSED ? m("settings_games_game_files_process_paused") : m(w ? "settings_games_game_files_installing_files" : "settings_games_game_files_install_files"),
A = m(k ? "settings_games_game_files_uninstalling_files" : "settings_games_game_files_uninstall_files"),
C = null !== (n = null === (r = l.identity) || void 0 === r ? void 0 : r.privileged) && void 0 !== n && n;
return (0, zb.jsxs)(Dl, {
prefix: (0, zb.jsx)("img", {
src: b,
alt: "",
width: "32"
}),
open: e,
title: `${d} - ${p}`,
children: [(0, zb.jsx)(lp, {
title: m("settings_games_installation_path_title"),
description: (0, zb.jsxs)(zb.Fragment, {
children: [(0, zb.jsx)("span", {
className: "sol-u-color-foreground",
children: L_(s.library.defaultLibraryFolder)
}), f, "\\", p]
})
}), (0, zb.jsx)(gp, {
spacing: "250"
}), (0, zb.jsx)(lp, {
title: m("settings_games_game_files_title"),
description: m("settings_games_game_files_description"),
children: (0, zb.jsxs)(Ll, {
vertical: !1,
gap: "100",
children: [(0, zb.jsx)(Ol, {
onClick: () => E(z_.InstallationType.VERIFY),
disabled: i.isGameRunning || w || k,
loading: x,
loadingIcon: O,
children: P
}), !v && (0, zb.jsx)(Ol, {
onClick: () => E(z_.InstallationType.INSTALL),
disabled: i.isGameRunning || x,
loading: w,
loadingIcon: O,
icon: w ? void 0 : Wx,
children: I
}), v && (0, zb.jsx)(Ol, {
variant: "plain",
color: "negative",
onClick: S,
disabled: i.isGameRunning || x,
loading: k,
loadingIcon: O,
children: A
})]
})
}), C ? (0, zb.jsx)(sE, {
gameSettings: t.item
}) : null]
}, `${d}${p}`)
},
cE = () => {
const e = Pk((e => e.settings)),
t = Pk((e => e.installer)),
n = Pk((e => e.application)),
r = e.gamesSettings,
{
t: i
} = wt("settingsPage"),
{
gameId: a,
channelId: o
} = So(),
[s, l] = (0, Pe.useState)(!1);
Mb((() => {
u(null), l(!1)
}), M_, s);
const [c, u] = (0, Pe.useState)(null), d = (0, Pe.useMemo)((() => r.find((e => e.gameId === a && e.channelId === o))), [o, a, r]), p = r.map((e => (0, zb.jsx)(lE, {
item: e,
open: e === d
}, `${e.gameName}${e.channelId}`))), h = (0, Pe.useCallback)((async () => {
const t = e.library.defaultLibraryFolder,
n = await window.launcherAPI.settings.openLibraryFolderDialog(t);
if (n.length > 0) {
const t = L_(n[0]);
e.actions.saveLibraryFolder(t), u({
id: "library",
message: i("settings_games_installation_library_folder_success")
}), l(!0)
}
}), [e.actions]);
return (0, zb.jsxs)(Ng, {
title: i("settings_games_title"),
children: [(0, zb.jsxs)(lp, {
title: i("settings_games_installation_title"),
description: i("settings_games_installation_description"),
children: [(0, zb.jsx)(ep, {
type: "informative",
children: i("settings_games_installation_information")
}), (0, zb.jsxs)(kp, {
horizontal: !0,
label: i("settings_games_installation_library_folder_label"),
success: c && "library" === c.id ? c.message : null,
children: [(0, zb.jsx)(cg, {
readOnly: !0,
value: e.library.defaultLibraryFolder
}), (0, zb.jsx)(Ol, {
disabled: t.installations.length > 0 || n.isGameRunning,
onClick: () => h(),
type: "button",
children: i("settings_games_installation_library_folder_change")
})]
})]
}), (0, zb.jsx)(Nl, {
openAll: i("settings_common_accordion_open_all"),
closeAll: i("settings_common_accordion_close_all"),
children: p,
className: 1 === p.length ? "sol-u-margin-bs-250" : ""
})]
})
},
uE = () => {
const {
t: e
} = wt("form"), {
isPending: t,
submitSignIn: n,
register: r,
handleSubmit: i,
captcha: a,
refreshCaptcha: o,
serverError: s,
control: l
} = (() => {
const {
t: e
} = wt("errors"), t = ko(), [n, r] = Pe.useState(null), i = Pk((e => e.authentication)), {
captcha: a,
session: o,
typeAuth: s,
actions: {
resetAuthentication: l,
fetchCaptcha: c
}
} = i, u = Pk((e => e.user)), {
device: d
} = u, p = Pk((e => e.application)).launcherVersion, {
handleSubmit: h,
register: f,
setError: m,
formState: {
errors: g
},
resetField: v,
control: _
} = fb(), {
authentication: {
onSignInSuccess: y
}
} = D_(), {
mutate: b,
isPending: x
} = Cb({
mutationFn: ({
username: e,
password: t,
captcha: n,
remember: r,
launcherVersion: i
}) => sx.authentication.signIn({
username: e,
password: t,
captcha: n,
remember: r,
launcherVersion: i
}),
onSuccess: (e, t) => k(e, t),
onError: async (e, t) => await w(e, t)
}), w = async (n, i) => {
const {
remember: a,
captcha: o
} = i;
if (o && c(), n instanceof s_) {
const e = await sx.authentication.getCaptcha();
Pk.setState((t => ({
authentication: {
...t.authentication,
captcha: e,
session: sx.rsi.session
}
})))
}
if (n instanceof d_) throw t(RE.SIGN_IN_GAME_PACKAGE_MISSING);
if (n instanceof l_) return m("captcha", {
type: "custom",
message: null === n || void 0 === n ? void 0 : n.message
}), void v("captcha", {
keepDirty: !0,
keepError: !0,
keepTouched: !0,
defaultValue: ""
});
if (n instanceof t_) {
const e = (({
device_id: e,
new_device: t,
prompt: n,
device_name: r,
device_type: i
}) => {
const a = !e && !t;
return {
type: n.includes("authenticator") ? "authenticator" : "email",
deviceInfo: {
registered: a,
name: a ? r : "My Device",
type: i
}
}
})(n.payload),
r = "multi-factor";
throw Pk.setState((t => ({
authentication: {
...t.authentication,
typeAuth: r,
mfaAuthenticationInfo: e,
session: null,
captcha: null
},
user: {
...t.user,
identity: {
...t.user.identity,
username: i.username
},
device: sx.rsi.device
}
}))), t(RE.SIGN_IN_MFA, {
state: {
remember: a
}
})
}
if (n instanceof $_) return r(e("error_sign_in_not_authorized")), void Pk.setState((e => ({
authentication: {
...e.authentication,
session: null,
trackingMetricsId: null
},
user: {
...e.user,
identity: null
}
})));
r(n.message)
}, k = (e, n) => {
l();
const r = n.remember,
{
data: i
} = e;
throw Db(r, n.username, d, i), y({
accountName: n.username,
trackingMetricsId: i.trackingMetricsId,
heapAccountId: i.heapAccountId
}), Nb(n.username, i), Pk.setState((e => ({
authentication: {
...e.authentication,
remember: r
}
}))), t(RE.HOME)
};
return {
refreshCaptcha: () => {
o && c()
},
submitSignIn: e => {
const t = {
...e,
launcherVersion: p
};
r(null), b(t)
},
mutateSignIn: b,
handleSubmit: h,
register: f,
control: _,
typeAuth: s,
captcha: a,
isPending: x,
formErrors: g,
serverError: n
}
})(), c = (0, Pe.useMemo)((() => (0, zb.jsxs)(zb.Fragment, {
children: [(0, zb.jsxs)(xl, {
className: "footer__sign-up",
color: "foreground-weak",
variant: "body-m",
children: [e("sign_in_no_account"), (0, zb.jsx)(ug, {
external: !0,
href: z_.configuration.enlistUrl,
"data-test-id": "enlist",
children: e("sign_in_create_account")
})]
}), (0, zb.jsx)(Ol, {
className: "footer__sign-in-button",
loading: t && e("sign_in_loading"),
size: "large",
type: "submit",
"data-test-id": "sign_in_submit",
children: e("sign_in_submit")
})]
})), [t]);
return (0, zb.jsxs)(zg, {
as: "form",
"data-test-id": "sign-in-form",
title: e("sign_in_title"),
footer: c,
onSubmit: i(n),
children: [s && (0, zb.jsx)(ep, {
type: "negative",
children: s
}), (0, zb.jsx)($k, {
control: l,
name: "username",
rules: {
required: {
value: !0,
message: e("error_email_field_is_required")
}
},
label: e("sign_in_email"),
disabled: t,
"data-test-id": "email",
inputProps: {
id: "email"
}
}), (0, zb.jsx)($k, {
control: l,
name: "password",
rules: {
required: {
value: !0,
message: e("error_password_field_is_required")
}
},
label: e("sign_in_password"),
type: "password",
disabled: t,
"data-test-id": "password",
inputProps: {
id: "password"
}
}), (0, zb.jsxs)(Ll, {
align: "center",
gap: "100",
justify: "space-between",
children: [(0, zb.jsx)(cp, {
label: e("sign_in_remember_me"),
inputProps: r("remember"),
"data-test-id": "remember",
children: e("sign_in_remember_me")
}), (0, zb.jsx)(ug, {
href: z_.configuration.recoverUrl,
external: !0,
"data-test-id": "recover",
children: e("sign_in_forgot_password")
})]
}), a && (0, zb.jsxs)(zb.Fragment, {
children: [(0, zb.jsx)("img", {
id: "captcha",
src: a,
alt: ""
}), (0, zb.jsx)($k, {
control: l,
name: "captcha",
rules: {
required: {
value: !0,
message: e("error_field_is_required")
}
},
label: e("sign_in_captcha"),
help: e("sign_in_captcha_help"),
disabled: t,
"data-test-id": "captcha",
inputProps: {
"aria-describedby": "captcha",
suffix: (0, zb.jsx)(Ol, {
"aria-label": e("sign_in_captcha_refresh"),
"aria-controls": "captcha",
disabled: t,
icon: Ux,
variant: "plain",
size: "small",
onClick: o
})
}
})]
})]
})
},
dE = () => {
const e = Pk((e => e.application)),
t = Pk((e => e.authentication)),
{
t: n
} = wt("form"),
{
serverError: r,
submitSignInMfa: i,
handleSubmit: a,
isPending: o,
control: s
} = (() => {
const e = ko(),
[t, n] = Pe.useState(null),
r = xo(),
{
t: i
} = wt("errors"),
a = Pk((e => e.authentication)),
{
actions: {
resetAuthentication: o
}
} = a,
s = Pk((e => e.user)),
{
identity: l,
device: c
} = s,
{
handleSubmit: u,
register: d,
formState: {
errors: p
},
control: h
} = fb(),
{
authentication: {
onSignInSuccess: f
}
} = D_(),
{
mutate: m,
isPending: g
} = Cb({
mutationFn: ({
codeMfa: e,
deviceName: t,
duration: n
}) => sx.authentication.signInMfa({
codeMfa: e,
deviceName: t,
duration: n
}),
onSuccess: e => _(e),
onError: e => v(e)
}),
v = t => {
if (t instanceof n_) n(i("error_wrong_mfa_code"));
else {
if (t instanceof d_) throw e(`../${RE.SIGN_IN_GAME_PACKAGE_MISSING}`);
n(t instanceof $_ ? i("error_sign_in_not_authorized", {
ns: "errors"
}) : t.message)
}
},
_ = t => {
var n;
o();
const i = r.state.remember,
{
data: a
} = t;
throw Db(i, null === l || void 0 === l ? void 0 : l.username, c, a), f({
accountName: null !== (n = null === l || void 0 === l ? void 0 : l.username) && void 0 !== n ? n : "",
trackingMetricsId: a.trackingMetricsId,
heapAccountId: a.heapAccountId
}), Nb(null === l || void 0 === l ? void 0 : l.username, a), e(RE.HOME)
};
return {
isPending: g,
submitSignInMfa: e => {
const t = {
codeMfa: e.codeMfa,
deviceName: e.deviceName,
duration: e.duration
};
n(null), m(t)
},
mutateMfaSignIn: m,
handleSubmit: u,
register: d,
control: h,
errors: p,
serverError: t
}
})(),
l = [{
label: n("sign_in_mfa_session"),
value: "session"
}, {
label: n("sign_in_mfa_day"),
value: "day"
}, {
label: n("sign_in_mfa_week"),
value: "week"
}, {
label: n("sign_in_mfa_month"),
value: "month"
}, {
label: n("sign_in_mfa_year"),
value: "year"
}],
c = l[3].value,
u = (0, Pe.useCallback)((() => {
e.actions.initializeApplication(), t.actions.resetAuthentication()
}), []),
d = (0, Pe.useMemo)((() => (0, zb.jsxs)(zb.Fragment, {
children: [(0, zb.jsx)(Ol, {
disabled: o,
onClick: u,
variant: "plain",
href: "..",
icon: zx,
size: "large",
children: n("sign_in_mfa_back_sign_in")
}), (0, zb.jsx)(Ol, {
loading: o && n("sign_in_loading"),
size: "large",
type: "submit",
children: n("sign_in_mfa_submit")
})]
})), [o, u]);
return (0, zb.jsxs)(zg, {
as: "form",
title: n("sign_in_mfa_title"),
subtitle: n("sign_in_mfa_subtitle"),
footer: d,
onSubmit: a(i),
children: [r && (0, zb.jsx)(ep, {
type: "negative",
children: r
}), (0, zb.jsx)($k, {
control: s,
name: "codeMfa",
rules: {
required: {
value: !0,
message: n("error_code_required")
}
},
help: n("sign_in_mfa_code_help"),
label: n("sign_in_mfa_code_label")
}), (0, zb.jsx)($k, {
control: s,
name: "deviceName",
rules: {
minLength: {
value: 3,
message: n("error_device_min_length")
},
required: {
value: !0,
message: n("error_device_required")
}
},
help: n("sign_in_mfa_device_help"),
label: n("sign_in_mfa_device_label")
}), (0, zb.jsx)(Bk, {
control: s,
name: "duration",
label: n("sign_in_mfa_duration_label"),
help: n("sign_in_mfa_duration_help"),
defaultValue: c,
children: l.map((({
label: e,
value: t
}) => (0, zb.jsx)(Tg, {
value: t,
children: e
}, t)))
})]
})
},
pE = () => {
const {
t: e
} = wt("errors");
return (0, zb.jsx)(zg, {
title: e("error_game_package_missing_title"),
subtitle: (0, zb.jsx)(gt, {
i18nKey: "error_game_package_missing_subtitle",
ns: "errors",
components: [(0, zb.jsx)(ug, {
href: z_.configuration.playnowUrl,
external: !0
})]
}),
footer: (0, zb.jsxs)(zb.Fragment, {
children: [(0, zb.jsx)(Ol, {
href: z_.configuration.supportUrl,
external: !0,
variant: "plain",
icon: Bx,
size: "large",
children: e("error_game_package_missing_support")
}), (0, zb.jsx)(Ol, {
href: `/${RE.SIGN_IN}`,
size: "large",
children: e("error_game_package_missing_retry")
})]
}),
children: (0, zb.jsx)("video", {
autoPlay: !0,
loop: !0,
muted: !0,
playsInline: !0,
src: z_.configuration.assetsDirectory + "/videos/no-game-package.mp4",
style: {
borderRadius: "var(--sol-radius-8)"
}
})
})
},
hE = ({
date: e
}) => (0, zb.jsx)(Xd, {
content: R_(e, "long"),
placement: "bottom",
interactive: !1,
children: (0, zb.jsx)("time", {
dateTime: e,
children: R_(e, "relative")
})
});
var fE = class extends _b.l {
constructor(e, t) {
super(), this.#T = void 0, this.#D = void 0, this.#u = void 0, this.#N = new Set, this.#d = e, this.options = t, this.#L = null, this.bindMethods(), this.setOptions(t)
}
#d;
#T;
#D;
#u;
#j;
#M;
#L;
#z;
#F;
#U;
#V;
#G;
#B;
#N;
bindMethods() {
this.refetch = this.refetch.bind(this)
}
onSubscribe() {
1 === this.listeners.size && (this.#T.addObserver(this), mE(this.#T, this.options) ? this.#$() : this.updateResult(), this.#q())
}
onUnsubscribe() {
this.hasListeners() || this.destroy()
}
shouldFetchOnReconnect() {
return gE(this.#T, this.options, this.options.refetchOnReconnect)
}
shouldFetchOnWindowFocus() {
return gE(this.#T, this.options, this.options.refetchOnWindowFocus)
}
destroy() {
this.listeners = new Set, this.#W(), this.#H(), this.#T.removeObserver(this)
}
setOptions(e, t) {
const n = this.options,
r = this.#T;
if (this.options = this.#d.defaultQueryOptions(e), (0, mb.VS)(n, this.options) || this.#d.getQueryCache().notify({
type: "observerOptionsUpdated",
query: this.#T,
observer: this
}), "undefined" !== typeof this.options.enabled && "boolean" !== typeof this.options.enabled) throw new Error("Expected enabled to be a boolean");
this.options.queryKey || (this.options.queryKey = n.queryKey), this.#Y();
const i = this.hasListeners();
i && vE(this.#T, r, this.options, n) && this.#$(), this.updateResult(t), !i || this.#T === r && this.options.enabled === n.enabled && this.options.staleTime === n.staleTime || this.#K();
const a = this.#Q();
!i || this.#T === r && this.options.enabled === n.enabled && a === this.#B || this.#Z(a)
}
getOptimisticResult(e) {
const t = this.#d.getQueryCache().build(this.#d, e),
n = this.createResult(t, e);
return function(e, t) {
if (!(0, mb.VS)(e.getCurrentResult(), t)) return !0;
return !1
}(this, n) && (this.#u = n, this.#M = this.options, this.#j = this.#T.state), n
}
getCurrentResult() {
return this.#u
}
trackResult(e) {
const t = {};
return Object.keys(e).forEach((n => {
Object.defineProperty(t, n, {
configurable: !1,
enumerable: !0,
get: () => (this.#N.add(n), e[n])
})
})), t
}
getCurrentQuery() {
return this.#T
}
refetch({
...e
} = {}) {
return this.fetch({
...e
})
}
fetchOptimistic(e) {
const t = this.#d.defaultQueryOptions(e),
n = this.#d.getQueryCache().build(this.#d, t);
return n.isFetchingOptimistic = !0, n.fetch().then((() => this.createResult(n, t)))
}
fetch(e) {
return this.#$({
...e,
cancelRefetch: e.cancelRefetch ?? !0
}).then((() => (this.updateResult(), this.#u)))
}
#$(e) {
this.#Y();
let t = this.#T.fetch(this.options, e);
return e?.throwOnError || (t = t.catch(mb.ZT)), t
}
#K() {
if (this.#W(), mb.sk || this.#u.isStale || !(0, mb.PN)(this.options.staleTime)) return;
const e = (0, mb.Kp)(this.#u.dataUpdatedAt, this.options.staleTime) + 1;
this.#V = setTimeout((() => {
this.#u.isStale || this.updateResult()
}), e)
}
#Q() {
return ("function" === typeof this.options.refetchInterval ? this.options.refetchInterval(this.#T) : this.options.refetchInterval) ?? !1
}
#Z(e) {
this.#H(), this.#B = e, !mb.sk && !1 !== this.options.enabled && (0, mb.PN)(this.#B) && 0 !== this.#B && (this.#G = setInterval((() => {
(this.options.refetchIntervalInBackground || yb.isFocused()) && this.#$()
}), this.#B))
}
#q() {
this.#K(), this.#Z(this.#Q())
}
#W() {
this.#V && (clearTimeout(this.#V), this.#V = void 0)
}
#H() {
this.#G && (clearInterval(this.#G), this.#G = void 0)
}
createResult(e, t) {
const n = this.#T,
r = this.options,
i = this.#u,
a = this.#j,
o = this.#M,
s = e !== n ? e.state : this.#D,
{
state: l
} = e;
let c, {
error: u,
errorUpdatedAt: d,
fetchStatus: p,
status: h
} = l,
f = !1;
if (t._optimisticResults) {
const i = this.hasListeners(),
a = !i && mE(e, t),
o = i && vE(e, n, t, r);
(a || o) && (p = wb(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.#z) c = this.#F;
else try {
this.#z = t.select, c = t.select(l.data), c = (0, mb.oE)(i?.data, c, t), this.#F = c, this.#L = null
} catch (y) {
this.#L = y
} else c = l.data;
if ("undefined" !== typeof t.placeholderData && "undefined" === typeof c && "pending" === h) {
let e;
if (i?.isPlaceholderData && t.placeholderData === o?.placeholderData) e = i.data;
else if (e = "function" === typeof t.placeholderData ? t.placeholderData(this.#U?.state.data, this.#U) : t.placeholderData, t.select && "undefined" !== typeof e) try {
e = t.select(e), this.#L = null
} catch (y) {
this.#L = y
}
"undefined" !== typeof e && (h = "success", c = (0, mb.oE)(i?.data, e, t), f = !0)
}
this.#L && (u = this.#L, c = this.#F, d = Date.now(), h = "error");
const m = "fetching" === p,
g = "pending" === h,
v = "error" === h,
_ = g && m;
return {
status: h,
fetchStatus: p,
isPending: g,
isSuccess: "success" === h,
isError: v,
isInitialLoading: _,
isLoading: _,
data: c,
dataUpdatedAt: l.dataUpdatedAt,
error: u,
errorUpdatedAt: d,
failureCount: l.fetchFailureCount,
failureReason: l.fetchFailureReason,
errorUpdateCount: l.errorUpdateCount,
isFetched: l.dataUpdateCount > 0 || l.errorUpdateCount > 0,
isFetchedAfterMount: l.dataUpdateCount > s.dataUpdateCount || l.errorUpdateCount > s.errorUpdateCount,
isFetching: m,
isRefetching: m && !g,
isLoadingError: v && 0 === l.dataUpdatedAt,
isPaused: "paused" === p,
isPlaceholderData: f,
isRefetchError: v && 0 !== l.dataUpdatedAt,
isStale: _E(e, t),
refetch: this.refetch
}
}
updateResult(e) {
const t = this.#u,
n = this.createResult(this.#T, this.options);
if (this.#j = this.#T.state, this.#M = this.options, (0, mb.VS)(n, t)) return;
void 0 !== this.#j.data && (this.#U = this.#T), this.#u = n;
const r = {};
!1 !== e?.listeners && (() => {
if (!t) return !0;
const {
notifyOnChangeProps: e
} = this.options, n = "function" === typeof e ? e() : e;
if ("all" === n || !n && !this.#N.size) return !0;
const r = new Set(n ?? this.#N);
return this.options.throwOnError && r.add("error"), Object.keys(this.#u).some((e => {
const n = e;
return this.#u[n] !== t[n] && r.has(n)
}))
})() && (r.listeners = !0), this.#m({
...r,
...e
})
}
#Y() {
const e = this.#d.getQueryCache().build(this.#d, this.options);
if (e === this.#T) return;
const t = this.#T;
this.#T = e, this.#D = e.state, this.hasListeners() && (t?.removeObserver(this), e.addObserver(this))
}
onQueryUpdate() {
this.updateResult(), this.hasListeners() && this.#q()
}
#m(e) {
gb.batch((() => {
e.listeners && this.listeners.forEach((e => {
e(this.#u)
})), this.#d.getQueryCache().notify({
query: this.#T,
type: "observerResultsUpdated"
})
}))
}
};
function mE(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 && gE(e, t, t.refetchOnMount)
}
function gE(e, t, n) {
if (!1 !== t.enabled) {
const r = "function" === typeof n ? n(e) : n;
return "always" === r || !1 !== r && _E(e, t)
}
return !1
}
function vE(e, t, n, r) {
return !1 !== n.enabled && (e !== t || !1 === r.enabled) && (!n.suspense || "error" !== e.state.status) && _E(e, n)
}
function _E(e, t) {
return e.isStaleByTime(t.staleTime)
}
function yE() {
let e = !1;
return {
clearReset: () => {
e = !1
},
reset: () => {
e = !0
},
isReset: () => e
}
}
var bE = Pe.createContext(yE()),
xE = Pe.createContext(!1);
xE.Provider;
function wE(e, t, n) {
const r = (0, Ib.NL)(n),
i = Pe.useContext(xE),
a = Pe.useContext(bE),
o = r.defaultQueryOptions(e);
o._optimisticResults = i ? "isRestoring" : "optimistic", (e => {
e.suspense && "number" !== typeof e.staleTime && (e.staleTime = 1e3)
})(o), ((e, t) => {
(e.suspense || e.throwOnError) && (t.isReset() || (e.retryOnMount = !1))
})(o, a), (e => {
Pe.useEffect((() => {
e.clearReset()
}), [e])
})(a);
const [s] = Pe.useState((() => new t(r, o))), l = s.getOptimisticResult(o);
if (Pe.useSyncExternalStore(Pe.useCallback((e => {
const t = i ? () => {} : s.subscribe(gb.batchCalls(e));
return s.updateResult(), t
}), [s, i]), (() => s.getCurrentResult()), (() => s.getCurrentResult())), Pe.useEffect((() => {
s.setOptions(o, {
listeners: !1
})
}), [o, s]), ((e, t, n) => e?.suspense && ((e, t) => e.isLoading && e.isFetching && !t)(t, n))(o, l, i)) throw ((e, t, n) => t.fetchOptimistic(e).catch((() => {
n.clearReset()
})))(o, s, a);
if ((({
result: e,
errorResetBoundary: t,
throwOnError: n,
query: r
}) => e.isError && !t.isReset() && !e.isFetching && Ab(n, [e.error, r]))({
result: l,
errorResetBoundary: a,
throwOnError: o.throwOnError,
query: s.getCurrentQuery()
})) throw l.error;
return o.notifyOnChangeProps ? l : s.trackResult(l)
}
const kE = ({
channelId: e,
gameId: t
}) => {
const {
data: n,
isLoading: r
} = function(e, t) {
return wE(e, fE, t)
}(((e, t) => ({
queryKey: [`platformContent-${e}-${t}`],
queryFn: async () => sx.content.getContent(e, t),
enabled: !Pk.getState().application.isWindowMinimized,
select: e => ({
commLinks: e.commLinks.map(I_),
patchNotes: e.patchNotes.map(I_),
launcherCards: e.launcherCards.map(I_)
}),
refetchInterval: kx(z_.configuration.requestPollingInterval.gamePageContent.base, z_.configuration.requestPollingInterval.gamePageContent.window),
refetchOnWindowFocus: !1,
staleTime: 0,
gcTime: 0
}))(t, e));
return {
...(0, Pe.useMemo)((() => {
var e, t, r;
const i = null !== (e = null === n || void 0 === n ? void 0 : n.commLinks) && void 0 !== e ? e : [],
a = null !== (t = null === n || void 0 === n ? void 0 : n.patchNotes) && void 0 !== t ? t : [],
o = null !== (r = null === n || void 0 === n ? void 0 : n.launcherCards) && void 0 !== r ? r : [],
s = [],
l = {};
l[`${ax.COMM_LINKS}`] = i.map(k_).sort(S_).slice(0, 8), l[`${ax.PATCH_NOTES}`] = a, o.map(E_).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(O_), r || s.push(e.channel)
}));
return {
dynamicContentSections: s.sort(P_).map((e => e.name)),
contents: l
}
}), [n]),
isLoading: r
}
},
EE = () => {
const {
t: e
} = wt("gamePage"), {
channelSelected: t
} = Pk().library, [n, r] = (0, Pe.useState)(ax.COMM_LINKS), {
dynamicContentSections: i,
contents: a,
isLoading: o
} = kE({
gameId: t.gameId,
channelId: t.channelId
}), s = (0, Pe.useMemo)((() => {
const e = [ax.PATCH_NOTES],
t = [...i, ax.COMM_LINKS, ax.PATCH_NOTES].filter((t => {
const n = e.find((e => e === t));
return !(0 === a[t].length && n)
}));
return r(t[0]), t
}), [i, a]), l = e => {
var t;
return null !== (t = e.media) && void 0 !== t && t.overlay ? {
src: `${z_.configuration.rootUrl}${e.media.overlay.resize}`,
srcSet: `${e.media.overlay.source} 2x`
} : void 0
}, c = e => {
var t, n, r;
return null !== (t = e.media) && void 0 !== t && t.thumbnail ? `${z_.configuration.rootUrl}${null===(r=e.media)||void 0===r?void 0:r.thumbnail}` : null !== (n = e.media) && void 0 !== n && n.background ? {
src: `${z_.configuration.rootUrl}${e.media.background.resize}`,
srcSet: `${e.media.background.source} 2x`
} : void 0
};
return o && 0 === i.length ? (0, zb.jsx)(Ip, {
empty: e("game_page_cards_loading")
}) : (0, zb.jsxs)(zb.Fragment, {
children: [(0, zb.jsx)(Jm, {
children: s.map((t => (0, zb.jsx)(Tp, {
label: e(`game_page_cards_tab_${t&&t.toLowerCase()}`),
active: n === t,
onClick: () => r(t)
}, t)))
}), a[n] && a[n].length > 0 ? (0, zb.jsx)(Ip, {
children: a[n].map((t => (0, zb.jsx)(Jd, {
href: t["meta.button_url"] ? t["meta.button_url"] : t.url,
label: t["meta.button_label"] ? t["meta.button_label"] : e("game_page_card_button_label"),
title: t.title,
excerpt: t.excerpt,
external: !0,
subtitle: null !== t && void 0 !== t && t.publish_start ? (0, zb.jsx)(hE, {
date: t.publish_start
}) : void 0,
image: c(t),
overlay: l(t)
}, `Card-${t.id}`)))
}) : (0, zb.jsx)(Ip, {
empty: e("game_page_cards_empty")
})]
})
},
SE = 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":[]}'),
OE = 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":[]}'),
PE = 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":[]}'),
IE = (e, t, n, r, i) => {
var a;
const {
installer: o,
library: s,
application: l,
dialog: c
} = Pk.getState(), u = D_(), d = e.find((e => e.id === r.gameId)), p = null === d || void 0 === d ? void 0 : d.channels.find((e => e.id === r.channelId)), h = mx(t, r), f = ((e, t, n) => {
return n ? z_.GameChannelStatus.UNINSTALLING : t && t.status !== z_.InstallationStatus.COMPLETED ? t.status : null !== (r = null === e || void 0 === e ? void 0 : e.status) && void 0 !== r ? r : z_.GameChannelStatus.AVAILABLE;
var r
})(p, h, gx(n, r)), m = {
[z_.InstallationType.INSTALL]: {
titleInProgress: "game_page_installing",
titlePaused: "game_page_installing_paused"
},
[z_.InstallationType.UPDATE]: {
titleInProgress: "game_page_updating",
titlePaused: "game_page_updating_paused"
},
[z_.InstallationType.VERIFY]: {
titleInProgress: "game_page_verifying",
titlePaused: "game_page_verifying_paused"
}
} [null !== (a = null === h || void 0 === h ? void 0 : h.type) && void 0 !== a ? a : z_.InstallationType.INSTALL];
switch (f) {
case z_.InstallationStatus.PAUSED:
return {
status: f, buttonProps: {
children: kt.t(m.titlePaused, {
ns: "gamePage"
}),
iconAnimation: !1,
icon: $x
}, action: () => l.actions.toggleDownloadPopoverOpened()
};
case z_.InstallationStatus.CANCELLING:
case z_.InstallationStatus.IN_PROGRESS:
return {
status: f, buttonProps: {
children: kt.t(m.titleInProgress, {
ns: "gamePage"
}),
loading: !0,
disabled: !1,
loadingIcon: Ak
}, action: () => l.actions.toggleDownloadPopoverOpened()
};
case z_.GameChannelStatus.INSTALLED:
return {
status: f, buttonProps: {
children: kt.t("game_page_launch_game", {
ns: "gamePage"
}),
disabled: i,
icon: OE
}, action: () => {
s.actions.launchGame(r)
}
};
case z_.GameChannelStatus.RUNNING:
return {
status: f, buttonProps: {
children: kt.t("game_page_game_is_running", {
ns: "gamePage"
}),
loading: !0,
disabled: !1
}, action: () => {
u.window.setMinimizeWindow()
}
};
case z_.GameChannelStatus.UNINSTALLING:
return {
status: f, buttonProps: {
children: kt.t("game_page_uninstalling", {
ns: "gamePage"
}),
loading: !0,
disabled: !0
}, action: () => {}
};
case z_.GameChannelStatus.UPDATE_AVAILABLE:
return {
status: f, buttonProps: {
children: kt.t("game_page_update_game", {
ns: "gamePage"
}),
icon: PE
}, message: (0, zb.jsx)(gt, {
i18nKey: "game_page_update_game_is_available",
ns: "gamePage",
components: [(0, zb.jsx)(ug, {
href: z_.configuration.patchnotesUrl,
external: !0
})],
values: {
version: null === p || void 0 === p ? void 0 : p.versionLabel
}
}), action: async () => {
o.actions.addInstallationToQueue(r, z_.InstallationType.UPDATE)
}
};
case z_.InstallationStatus.ERROR:
case z_.InstallationStatus.WAITING:
return {
status: f, buttonProps: {
children: kt.t("game_page_waiting_in_queue", {
ns: "gamePage"
}),
loading: !0,
disabled: !1
}, action: () => l.actions.toggleDownloadPopoverOpened()
};
case z_.InstallationStatus.COMPLETED:
case z_.GameChannelStatus.AVAILABLE:
default:
return {
status: f, buttonProps: {
children: kt.t("game_page_install_game", {
ns: "gamePage"
}),
icon: SE
}, action: async () => {
await c.actions.showGameStartInstallationDialog(r)
}
}
}
},
AE = () => {
var e, t, n, r;
const {
t: i
} = wt("gamePage"), {
gameId: a
} = So(), o = ko(), s = Pk((e => e.library)), l = Pk((e => e.installer)), c = Pk((e => e.application)), [u, d] = (0, Pe.useState)(null), {
backgroundVideoDisabled: p
} = sl().reduceMotion, {
gameStatus: h,
gameChannel: f,
game: m,
handleChannelSelection: g,
settingsUrl: v,
channels: _
} = (0, Pe.useMemo)((() => ({
game: N_(null !== a && void 0 !== a ? a : s.channelSelected.gameId, s.availableGames),
gameChannel: s.channelSelected,
channels: s.actions.getChannels(null !== a && void 0 !== a ? a : s.channelSelected.gameId),
gameStatus: IE(s.installedGames, l.installations, l.uninstallations, s.channelSelected, c.isGameRunning),
settingsUrl: aa(`/${RE.SETTINGS}/${RE.SETTINGS_GAMES}`, {
gameId: null !== a && void 0 !== a ? a : s.channelSelected.gameId,
channelId: s.channelSelected.channelId
}),
handleChannelSelection: e => {
const t = s.actions.getAvailableChannelsSorted(null !== a && void 0 !== a ? a : s.channelSelected.gameId).find((t => t.id === e)),
n = s.availableGames.find((e => e.id === s.gameSelected));
if (!t || !n) return;
const r = {
gameId: n.id,
gameName: n.name,
channelId: t.id,
platformId: t.platformId,
channelName: t.name
};
s.actions.setGameChannelSelected(r)
}
})), [s.channelSelected, s.availableGames, s.installedGames, s.actions, s.gameSelected, l.installations, l.uninstallations, c.isGameRunning, a]), y = (0, Pe.useMemo)((() => {
var e;
return (null === (e = s.actions.getInstalledChannel(f)) || void 0 === e ? void 0 : e.status) === z_.GameChannelStatus.INSTALLED
}), [s, f]), b = void 0 !== gx(l.uninstallations, f), x = null === (e = c.animations.gamePageEntering) || void 0 === e ? void 0 : e.isAnimating, w = null === (t = c.animations.gamePageEntering) || void 0 === t ? void 0 : t.animState, {
wipeAnimationsDisabled: k,
unessentialAnimationsDisabled: E
} = sl().reduceMotion, S = (0, Pe.useCallback)((() => {
if (k) return void o(v);
const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
c.actions.setAnimatingAppLayoutWipe("full", !0);
const t = setTimeout((() => {
o(v)
}), e / 2);
return () => clearTimeout(t)
}), [c.actions, o, v, k]), O = (0, Pe.useMemo)((() => (0, zb.jsxs)(Eg, {
anchor: u,
placement: "bottom-end",
trigger: (0, zb.jsx)(Ol, {
"aria-label": i("game_page_settings"),
icon: Zx,
size: "small",
variant: "plain"
}),
children: [(0, zb.jsx)(wg, {
label: i("game_page_settings"),
onClick: S
}), (0, zb.jsx)(wg, {
label: i("game_page_settings_verify"),
onClick: () => l.actions.addInstallationToQueue(f, z_.InstallationType.VERIFY),
disabled: b
}), y && (0, zb.jsx)(wg, {
label: i("game_page_settings_uninstall"),
onClick: () => l.actions.startUninstallation(f),
disabled: b
})]
})), [u, i, S, y, l.actions, f, b]), P = "SC" === a && f.channelId === Mw && c.nonOperationalStatus, I = h.status === z_.InstallationStatus.PAUSED || h.status === z_.InstallationStatus.IN_PROGRESS || h.status === z_.InstallationStatus.WAITING;
return (0, zb.jsxs)(zb.Fragment, {
children: [(0, zb.jsx)(Op, {
image: null === m || void 0 === m ? void 0 : m.bgImage,
video: p || null === m || void 0 === m ? void 0 : m.bgVideo
}), (0, zb.jsx)(Ap, {
logo: null === m || void 0 === m ? void 0 : m.logoWide,
animation: null === m || void 0 === m ? void 0 : m.logoAnimation,
playLottie: x && "entering" === w
}), (0, zb.jsx)(eg, {
children: (0, zb.jsx)(gt, {
i18nKey: "game_page_title",
values: {
name: null === m || void 0 === m ? void 0 : m.name
},
components: [(0, zb.jsx)("br", {}), (0, zb.jsx)("b", {})],
t: i
})
}), (0, zb.jsxs)(Sp, {
children: [s.availableGames.length > 0 && (0, zb.jsx)(kp, {
label: i("game_page_channels"),
labelType: "classic",
className: "sol-c-game-page__channel-selector",
children: (0, zb.jsx)(Dg, {
onValueChange: g,
value: f.channelId,
suffix: O,
wrapperProps: {
ref: d
},
children: _.map((({
description: e,
label: t,
value: n
}) => (0, zb.jsx)(Tg, {
description: e,
label: t,
value: n
}, n)))
})
}), (0, zb.jsx)(Ep, {
iconAnimation: !E && "hover",
onClick: () => h.action(),
...h.buttonProps
}), I && l.progress && (0, zb.jsx)(_p, {
state: h.status,
progress: h.status === z_.InstallationStatus.IN_PROGRESS && l.progress.showProgress ? l.progress.percentage : void 0,
stats: h.status === z_.InstallationStatus.WAITING ? [] : [{
label: i("download_speed", {
ns: "download"
}),
value: `${l.progress.speed}/s`
}, {
label: i("download_left", {
ns: "download"
}),
value: hx()(Math.max((null !== (n = l.progress.total) && void 0 !== n ? n : 0) - (null !== (r = l.progress.downloaded) && void 0 !== r ? r : 0), 0))
}]
}), !I && h.message ? (0, zb.jsx)(Rp, {
children: h.message
}) : null, P && c.nonOperationalStatus && (0, zb.jsx)(Vk, {
status: c.nonOperationalStatus
})]
}), (0, zb.jsx)(EE, {})]
})
};
const CE = () => {
const e = xo();
return Pk((e => e.user)).actions.isLoggedIn() ? (0, zb.jsx)(Fo, {}) : (0, zb.jsx)(zo, {
to: "sign-in",
replace: !0,
state: {
from: e
}
})
},
RE = {
HOME: "/",
SIGN_IN: "sign-in",
SIGN_IN_MFA: "mfa",
SIGN_IN_GAME_PACKAGE_MISSING: "game-package-missing",
GAME_PAGE: "game-page/:gameId",
SETTINGS: "settings",
SETTINGS_APPLICATION: "application",
SETTINGS_ACCESSIBILITY: "accessibility",
SETTINGS_GAMES: "games/:gameId?/:channelId?",
SETTINGS_ABOUT: "about",
SETTINGS_DOWNLOAD: "download",
SETTINGS_DEV: "dev"
},
TE = function(e, t) {
return Ta({
basename: null == t ? void 0 : t.basename,
future: Bo({}, null == t ? void 0 : t.future, {
v7_prependBasename: !0
}),
history: (n = {
window: null == t ? void 0 : t.window
}, void 0 === n && (n = {}), Yi((function(e, t) {
let {
pathname: n = "/",
search: r = "",
hash: i = ""
} = Hi(e.location.hash.substr(1));
return n.startsWith("/") || n.startsWith(".") || (n = "/" + n), qi("", {
pathname: n,
search: r,
hash: i
}, t.state && t.state.usr || null, t.state && t.state.key || "default")
}), (function(e, t) {
let n = e.document.querySelector("base"),
r = "";
if (n && n.getAttribute("href")) {
let t = e.location.href,
n = t.indexOf("#");
r = -1 === n ? t : t.slice(0, n)
}
return r + "#" + ("string" === typeof t ? t : Wi(t))
}), (function(e, t) {
Bi("/" === e.pathname.charAt(0), "relative pathnames are not supported in hash history.push(" + JSON.stringify(t) + ")")
}), n)),
hydrationData: (null == t ? void 0 : t.hydrationData) || Wo(),
routes: e,
mapRouteProperties: Go,
window: null == t ? void 0 : t.window
}).initialize();
var n
}([{
element: (0, zb.jsx)(qk, {}),
loader: async () => {
const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
try {
if (Pk.getState().application.isAppInitialized) return;
await new Promise((t => setTimeout(t, z_.configuration.appLayoutLoaderWipeTrigger + e / 2)))
} finally {
return null
}
},
children: [{
path: RE.HOME,
element: (0, zb.jsx)(CE, {}),
children: [{
element: (0, zb.jsx)(Yk, {}),
children: [{
index: !0,
loader: async () => {
const e = `/game-page/${Pk.getState().library.gameSelected}`;
throw va(e)
}
}, {
path: RE.GAME_PAGE,
element: (0, zb.jsx)(AE, {}),
loader: async ({
params: e
}) => {
try {
var t;
if (await async function(e = RE.SIGN_IN) {
const t = Pk.getState().user,
n = await window.launcherAPI.store.getValueFromStore("session"),
r = await window.launcherAPI.store.getValueFromStore("identity");
if (!t.actions.isLoggedIn(n, r)) throw va(e);
return t.identity
}(), !e.gameId) return null;
const n = Pk.getState().library,
r = Pk.getState().settings,
i = Pk.getState().status;
n.gameSelected !== e.gameId && n.actions.setGameSelected(e.gameId);
const a = null !== (t = Tx.getQueryData(Ex().queryKey)) && void 0 !== t ? t : await Tx.fetchQuery(Ex());
if (!a) return null;
n.actions.setAvailableGames(a), r.actions.initializeGameSettings();
const o = null === a || void 0 === a ? void 0 : a.find((({
id: e
}) => n.gameSelected === e));
if (!o) return null;
const s = (await window.launcherAPI.store.getValueFromStore("library.defaults")).find((t => t.gameId === e.gameId));
if (s) n.actions.setGameChannelSelected(s);
else {
const t = o.channels[0],
r = e.gameId === n.channelSelected.gameId ? n.channelSelected : {
gameId: t.id,
gameName: t.name,
channelId: t.id,
platformId: t.platformId,
channelName: t.name
};
n.actions.setGameChannelSelected(r)
}
return i.actions.checkStatus(), {
fetchedLibrary: a
}
} catch (n) {
return null
}
}
}]
}, {
element: (0, zb.jsx)(Kk, {}),
path: RE.SETTINGS,
children: [{
index: !0,
loader: async () => {
throw va(RE.SETTINGS_APPLICATION)
}
}, {
path: RE.SETTINGS_APPLICATION,
element: (0, zb.jsx)(rE, {})
}, {
path: RE.SETTINGS_ACCESSIBILITY,
element: (0, zb.jsx)(eE, {})
}, {
path: RE.SETTINGS_GAMES,
element: (0, zb.jsx)(cE, {})
}, {
path: RE.SETTINGS_DOWNLOAD,
element: (0, zb.jsx)(aE, {})
}, {
path: RE.SETTINGS_ABOUT,
element: (0, zb.jsx)(Qk, {})
}, {
path: RE.SETTINGS_DEV,
element: (0, zb.jsx)(iE, {})
}]
}]
}, {
path: RE.SIGN_IN,
element: (0, zb.jsx)(Hk, {}),
loader: async () => {
const e = Pk.getState().user,
t = `/game-page/${Pk.getState().library.gameSelected}`;
return e.actions.isLoggedIn() ? va(t) : null
},
children: [{
index: !0,
element: (0, zb.jsx)(uE, {})
}, {
path: RE.SIGN_IN_MFA,
element: (0, zb.jsx)(dE, {})
}, {
path: RE.SIGN_IN_GAME_PACKAGE_MISSING,
element: (0, zb.jsx)(pE, {})
}]
}]
}]),
DE = () => (0, zb.jsx)(es, {
router: TE,
fallbackElement: (0, zb.jsx)(Lk, {})
});
var NE = n(95),
LE = function() {
return null
},
jE = n(2968),
ME = Object.prototype.toString;
function zE(e) {
switch (ME.call(e)) {
case "[object Error]":
case "[object Exception]":
case "[object DOMException]":
return !0;
default:
return HE(e, Error)
}
}
function FE(e, t) {
return ME.call(e) === `[object ${t}]`
}
function UE(e) {
return FE(e, "ErrorEvent")
}
function VE(e) {
return FE(e, "DOMError")
}
function GE(e) {
return FE(e, "String")
}
function BE(e) {
return null === e || "object" !== typeof e && "function" !== typeof e
}
function $E(e) {
return FE(e, "Object")
}
function qE(e) {
return "undefined" !== typeof Event && HE(e, Event)
}
function WE(e) {
return Boolean(e && e.then && "function" === typeof e.then)
}
function HE(e, t) {
try {
return e instanceof t
} catch (n) {
return !1
}
}
function YE(e, t) {
try {
let i = e;
var n = [];
let a = 0,
o = 0;
var r = " > ".length;
let s;
for (; i && a++ < 5 && (s = KE(i, t), !("html" === s || a > 1 && o + n.length * r + s.length >= 80));) n.push(s), o += s.length, i = i.parentNode;
return n.reverse().join(" > ")
} catch (i) {
return "<unknown>"
}
}
function KE(e, t) {
var n = e,
r = [];
let i, a, o, s, l;
if (!n || !n.tagName) return "";
r.push(n.tagName.toLowerCase());
var c = t && t.length ? t.filter((e => n.getAttribute(e))).map((e => [e, n.getAttribute(e)])) : null;
if (c && c.length) c.forEach((e => {
r.push(`[${e[0]}="${e[1]}"]`)
}));
else if (n.id && r.push(`#${n.id}`), i = n.className, i && GE(i))
for (a = i.split(/\s+/), l = 0; l < a.length; l++) r.push(`.${a[l]}`);
var u = ["type", "name", "title", "alt"];
for (l = 0; l < u.length; l++) o = u[l], s = n.getAttribute(o), s && r.push(`[${o}="${s}"]`);
return r.join("")
}
function QE(e, t = 0) {
return "string" !== typeof e || 0 === t || e.length <= t ? e : `${e.substr(0,t)}...`
}
function ZE(e, t) {
if (!Array.isArray(e)) return "";
var n = [];
for (let a = 0; a < e.length; a++) {
var r = e[a];
try {
n.push(String(r))
} catch (i) {
n.push("[value cannot be serialized]")
}
}
return n.join(t)
}
function XE(e, t) {
return !!GE(e) && (FE(t, "RegExp") ? t.test(e) : "string" === typeof t && -1 !== e.indexOf(t))
}
function JE(e, t, n) {
if (t in e) {
var r = e[t],
i = n(r);
if ("function" === typeof i) try {
tS(i, r)
} catch (a) {}
e[t] = i
}
}
function eS(e, t, n) {
Object.defineProperty(e, t, {
value: n,
writable: !0,
configurable: !0
})
}
function tS(e, t) {
var n = t.prototype || {};
e.prototype = t.prototype = n, eS(e, "__sentry_original__", t)
}
function nS(e) {
return e.__sentry_original__
}
function rS(e) {
if (zE(e)) return {
message: e.message,
name: e.name,
stack: e.stack,
...aS(e)
};
if (qE(e)) {
var t = {
type: e.type,
target: iS(e.target),
currentTarget: iS(e.currentTarget),
...aS(e)
};
return "undefined" !== typeof CustomEvent && HE(e, CustomEvent) && (t.detail = e.detail), t
}
return e
}
function iS(e) {
try {
return t = e, "undefined" !== typeof Element && HE(t, Element) ? YE(e) : Object.prototype.toString.call(e)
} catch (n) {
return "<unknown>"
}
var t
}
function aS(e) {
if ("object" === typeof e && null !== e) {
var t = {};
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
return t
}
return {}
}
function oS(e, t = 40) {
var n = Object.keys(rS(e));
if (n.sort(), !n.length) return "[object has no keys]";
if (n[0].length >= t) return QE(n[0], t);
for (let i = n.length; i > 0; i--) {
var r = n.slice(0, i).join(", ");
if (!(r.length > t)) return i === n.length ? r : QE(r, t)
}
return ""
}
function sS(e) {
return lS(e, new Map)
}
function lS(e, t) {
if ($E(e)) {
if (void 0 !== (i = t.get(e))) return i;
var n = {};
for (var r of (t.set(e, n), Object.keys(e))) "undefined" !== typeof e[r] && (n[r] = lS(e[r], t));
return n
}
if (Array.isArray(e)) {
var i;
if (void 0 !== (i = t.get(e))) return i;
n = [];
return t.set(e, n), e.forEach((e => {
n.push(lS(e, t))
})), n
}
return e
}
let cS;
class uS {
constructor() {
uS.prototype.__init.call(this)
}
static __initStatic() {
this.id = "FunctionToString"
}
__init() {
this.name = uS.id
}
setupOnce() {
cS = Function.prototype.toString, Function.prototype.toString = function(...e) {
var t = nS(this) || this;
return cS.apply(t, e)
}
}
}
uS.__initStatic();
var dS = (0, jE.R)(),
pS = ["debug", "info", "warn", "error", "log", "assert", "trace"];
function hS(e) {
var t = (0, jE.R)();
if (!("console" in t)) return e();
var n = t.console,
r = {};
pS.forEach((e => {
var i = n[e] && n[e].__sentry_original__;
e in t.console && i && (r[e] = n[e], n[e] = i)
}));
try {
return e()
} finally {
Object.keys(r).forEach((e => {
n[e] = r[e]
}))
}
}
function fS() {
let e = !1;
var t = {
enable: () => {
e = !0
},
disable: () => {
e = !1
}
};
return "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__ ? pS.forEach((n => {
t[n] = (...t) => {
e && hS((() => {
dS.console[n](`Sentry Logger [${n}]:`, ...t)
}))
}
})) : pS.forEach((e => {
t[e] = () => {}
})), t
}
let mS;
function gS() {
var e = (0, jE.R)(),
t = e.crypto || e.msCrypto;
if (t && t.randomUUID) return t.randomUUID().replace(/-/g, "");
var n = t && t.getRandomValues ? () => t.getRandomValues(new Uint8Array(1))[0] : () => 16 * Math.random();
return ([1e7] + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, (e => (e ^ (15 & n()) >> e / 4).toString(16)))
}
function vS(e) {
return e.exception && e.exception.values ? e.exception.values[0] : void 0
}
function _S(e) {
const {
message: t,
event_id: n
} = e;
if (t) return t;
var r = vS(e);
return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "<unknown>" : n || "<unknown>"
}
function yS(e, t, n) {
var 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 bS(e, t) {
var n = vS(e);
if (n) {
var r = n.mechanism;
if (n.mechanism = {
type: "generic",
handled: !0,
...r,
...t
}, t && "data" in t) {
var i = {
...r && r.data,
...t.data
};
n.mechanism.data = i
}
}
}
mS = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__ ? (0, jE.Y)("logger", fS) : fS();
function xS(e) {
if (e && e.__sentry_captured__) return !0;
try {
eS(e, "__sentry_captured__", !0)
} catch (t) {}
return !1
}
function wS(e) {
return Array.isArray(e) ? e : [e]
}
var kS = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/];
class ES {
static __initStatic() {
this.id = "InboundFilters"
}
__init() {
this.name = ES.id
}
constructor(e = {}) {
this._options = e, ES.prototype.__init.call(this)
}
setupOnce(e, t) {
var n = e => {
var n = t();
if (n) {
var r = n.getIntegration(ES);
if (r) {
var i = n.getClient(),
a = i ? i.getOptions() : {},
o = function(e = {}, t = {}) {
return {
allowUrls: [...e.allowUrls || [], ...t.allowUrls || []],
denyUrls: [...e.denyUrls || [], ...t.denyUrls || []],
ignoreErrors: [...e.ignoreErrors || [], ...t.ignoreErrors || [], ...kS],
ignoreInternal: void 0 === e.ignoreInternal || e.ignoreInternal
}
}(r._options, a);
return function(e, t) {
if (t.ignoreInternal && function(e) {
try {
return "SentryError" === e.exception.values[0].type
} catch (t) {}
return !1
}(e)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${_S(e)}`), !0;
if (function(e, t) {
if (!t || !t.length) return !1;
return function(e) {
if (e.message) return [e.message];
if (e.exception) try {
const {
type: t = "",
value: n = ""
} = e.exception.values && e.exception.values[0] || {};
return [`${n}`, `${t}: ${n}`]
} catch (Cp) {
return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.error(`Cannot extract message for event ${_S(e)}`), []
}
return []
}(e).some((e => t.some((t => XE(e, t)))))
}(e, t.ignoreErrors)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${_S(e)}`), !0;
if (function(e, t) {
if (!t || !t.length) return !1;
var n = SS(e);
return !!n && t.some((e => XE(n, e)))
}(e, t.denyUrls)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${_S(e)}.\nUrl: ${SS(e)}`), !0;
if (! function(e, t) {
if (!t || !t.length) return !0;
var n = SS(e);
return !n || t.some((e => XE(n, e)))
}(e, t.allowUrls)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${_S(e)}.\nUrl: ${SS(e)}`), !0;
return !1
}(e, o) ? null : e
}
}
return e
};
n.id = this.name, e(n)
}
}
function SS(e) {
try {
let n;
try {
n = e.exception.values[0].stacktrace.frames
} catch (t) {}
return n ? function(e = []) {
for (let n = e.length - 1; n >= 0; n--) {
var t = e[n];
if (t && "<anonymous>" !== t.filename && "[native code]" !== t.filename) return t.filename || null
}
return null
}(n) : null
} catch (Cp) {
return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.error(`Cannot extract url for event ${_S(e)}`), null
}
}
ES.__initStatic();
var OS, PS = n(9846),
IS = n(9509);
function AS(e) {
return new RS((t => {
t(e)
}))
}
function CS(e) {
return new RS(((t, n) => {
n(e)
}))
}! function(e) {
e[e.PENDING = 0] = "PENDING";
e[e.RESOLVED = 1] = "RESOLVED";
e[e.REJECTED = 2] = "REJECTED"
}(OS || (OS = {}));
class RS {
__init() {
this._state = OS.PENDING
}
__init2() {
this._handlers = []
}
constructor(e) {
RS.prototype.__init.call(this), RS.prototype.__init2.call(this), RS.prototype.__init3.call(this), RS.prototype.__init4.call(this), RS.prototype.__init5.call(this), RS.prototype.__init6.call(this);
try {
e(this._resolve, this._reject)
} catch (t) {
this._reject(t)
}
}
then(e, t) {
return new RS(((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 RS(((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)
}))
}))
}
__init3() {
this._resolve = e => {
this._setResult(OS.RESOLVED, e)
}
}
__init4() {
this._reject = e => {
this._setResult(OS.REJECTED, e)
}
}
__init5() {
this._setResult = (e, t) => {
this._state === OS.PENDING && (WE(t) ? t.then(this._resolve, this._reject) : (this._state = e, this._value = t, this._executeHandlers()))
}
}
__init6() {
this._executeHandlers = () => {
if (this._state !== OS.PENDING) {
var e = this._handlers.slice();
this._handlers = [], e.forEach((e => {
e[0] || (this._state === OS.RESOLVED && e[1](this._value), this._state === OS.REJECTED && e[2](this._value), e[0] = !0)
}))
}
}
}
}
function TS(e) {
var t = (0, PS.ph)(),
n = {
sid: gS(),
init: !0,
timestamp: t,
started: t,
duration: 0,
status: "ok",
errors: 0,
ignoreDuration: !1,
toJSON: () => function(e) {
return sS({
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,
attrs: {
release: e.release,
environment: e.environment,
ip_address: e.ipAddress,
user_agent: e.userAgent
}
})
}(n)
};
return e && DS(n, e), n
}
function DS(e, t = {}) {
if (t.user && (!e.ipAddress && t.user.ip_address && (e.ipAddress = t.user.ip_address), e.did || t.did || (e.did = t.user.id || t.user.email || t.user.username)), e.timestamp = t.timestamp || (0, PS.ph)(), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = 32 === t.sid.length ? t.sid : gS()), void 0 !== t.init && (e.init = t.init), !e.did && t.did && (e.did = `${t.did}`), "number" === typeof t.started && (e.started = t.started), e.ignoreDuration) e.duration = void 0;
else if ("number" === typeof t.duration) e.duration = t.duration;
else {
var n = e.timestamp - e.started;
e.duration = n >= 0 ? n : 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)
}
class NS {
constructor() {
this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}
}
static clone(e) {
var t = new NS;
return e && (t._breadcrumbs = [...e._breadcrumbs], t._tags = {
...e._tags
}, t._extra = {
...e._extra
}, t._contexts = {
...e._contexts
}, t._user = e._user, t._level = e._level, t._span = e._span, t._session = e._session, t._transactionName = e._transactionName, t._fingerprint = e._fingerprint, t._eventProcessors = [...e._eventProcessors], t._requestSession = e._requestSession, t._attachments = [...e._attachments]), t
}
addScopeListener(e) {
this._scopeListeners.push(e)
}
addEventProcessor(e) {
return this._eventProcessors.push(e), this
}
setUser(e) {
return this._user = e || {}, this._session && DS(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 = {
...this._contexts,
[e]: t
}, this._notifyScopeListeners(), this
}
setSpan(e) {
return this._span = e, this._notifyScopeListeners(), this
}
getSpan() {
return this._span
}
getTransaction() {
var e = this.getSpan();
return e && e.transaction
}
setSession(e) {
return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this
}
getSession() {
return this._session
}
update(e) {
if (!e) return this;
if ("function" === typeof e) {
var t = e(this);
return t instanceof NS ? t : this
}
return e instanceof NS ? (this._tags = {
...this._tags,
...e._tags
}, this._extra = {
...this._extra,
...e._extra
}, this._contexts = {
...this._contexts,
...e._contexts
}, e._user && Object.keys(e._user).length && (this._user = e._user), e._level && (this._level = e._level), e._fingerprint && (this._fingerprint = e._fingerprint), e._requestSession && (this._requestSession = e._requestSession)) : $E(e) && (this._tags = {
...this._tags,
...e.tags
}, this._extra = {
...this._extra,
...e.extra
}, this._contexts = {
...this._contexts,
...e.contexts
}, e.user && (this._user = e.user), e.level && (this._level = e.level), e.fingerprint && (this._fingerprint = e.fingerprint), e.requestSession && (this._requestSession = e.requestSession)), 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._span = void 0, this._session = void 0, this._notifyScopeListeners(), this._attachments = [], this
}
addBreadcrumb(e, t) {
var n = "number" === typeof t ? t : 100;
if (n <= 0) return this;
var r = {
timestamp: (0, PS.yW)(),
...e
};
return this._breadcrumbs = [...this._breadcrumbs, r].slice(-n), this._notifyScopeListeners(), this
}
clearBreadcrumbs() {
return this._breadcrumbs = [], this._notifyScopeListeners(), this
}
addAttachment(e) {
return this._attachments.push(e), this
}
getAttachments() {
return this._attachments
}
clearAttachments() {
return this._attachments = [], this
}
applyToEvent(e, t = {}) {
if (this._extra && Object.keys(this._extra).length && (e.extra = {
...this._extra,
...e.extra
}), this._tags && Object.keys(this._tags).length && (e.tags = {
...this._tags,
...e.tags
}), this._user && Object.keys(this._user).length && (e.user = {
...this._user,
...e.user
}), this._contexts && Object.keys(this._contexts).length && (e.contexts = {
...this._contexts,
...e.contexts
}), this._level && (e.level = this._level), this._transactionName && (e.transaction = this._transactionName), this._span) {
e.contexts = {
trace: this._span.getTraceContext(),
...e.contexts
};
var n = this._span.transaction && this._span.transaction.name;
n && (e.tags = {
transaction: n,
...e.tags
})
}
return this._applyFingerprint(e), e.breadcrumbs = [...e.breadcrumbs || [], ...this._breadcrumbs], e.breadcrumbs = e.breadcrumbs.length > 0 ? e.breadcrumbs : void 0, e.sdkProcessingMetadata = {
...e.sdkProcessingMetadata,
...this._sdkProcessingMetadata
}, this._notifyEventProcessors([...LS(), ...this._eventProcessors], e, t)
}
setSDKProcessingMetadata(e) {
return this._sdkProcessingMetadata = {
...this._sdkProcessingMetadata,
...e
}, this
}
_notifyEventProcessors(e, t, n, r = 0) {
return new RS(((i, a) => {
var o = e[r];
if (null === t || "function" !== typeof o) i(t);
else {
var s = o({
...t
}, n);
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && o.id && null === s && mS.log(`Event processor "${o.id}" dropped event`), WE(s) ? s.then((t => this._notifyEventProcessors(e, t, n, r + 1).then(i))).then(null, a) : this._notifyEventProcessors(e, s, n, r + 1).then(i).then(null, a)
}
}))
}
_notifyScopeListeners() {
this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach((e => {
e(this)
})), this._notifyingListeners = !1)
}
_applyFingerprint(e) {
e.fingerprint = e.fingerprint ? wS(e.fingerprint) : [], this._fingerprint && (e.fingerprint = e.fingerprint.concat(this._fingerprint)), e.fingerprint && !e.fingerprint.length && delete e.fingerprint
}
}
function LS() {
return (0, jE.Y)("globalEventProcessors", (() => []))
}
function jS(e) {
LS().push(e)
}
var MS = 100;
class zS {
__init() {
this._stack = [{}]
}
constructor(e, t = new NS, n = 4) {
this._version = n, zS.prototype.__init.call(this), this.getStackTop().scope = t, e && this.bindClient(e)
}
isOlderThan(e) {
return this._version < e
}
bindClient(e) {
this.getStackTop().client = e, e && e.setupIntegrations && e.setupIntegrations()
}
pushScope() {
var e = NS.clone(this.getScope());
return this.getStack().push({
client: this.getClient(),
scope: e
}), e
}
popScope() {
return !(this.getStack().length <= 1) && !!this.getStack().pop()
}
withScope(e) {
var t = this.pushScope();
try {
e(t)
} finally {
this.popScope()
}
}
getClient() {
return this.getStackTop().client
}
getScope() {
return this.getStackTop().scope
}
getStack() {
return this._stack
}
getStackTop() {
return this._stack[this._stack.length - 1]
}
captureException(e, t) {
var n = this._lastEventId = t && t.event_id ? t.event_id : gS(),
r = new Error("Sentry syntheticException");
return this._withClient(((i, a) => {
i.captureException(e, {
originalException: e,
syntheticException: r,
...t,
event_id: n
}, a)
})), n
}
captureMessage(e, t, n) {
var r = this._lastEventId = n && n.event_id ? n.event_id : gS(),
i = new Error(e);
return this._withClient(((a, o) => {
a.captureMessage(e, t, {
originalException: e,
syntheticException: i,
...n,
event_id: r
}, o)
})), r
}
captureEvent(e, t) {
var n = t && t.event_id ? t.event_id : gS();
return "transaction" !== e.type && (this._lastEventId = n), this._withClient(((r, i) => {
r.captureEvent(e, {
...t,
event_id: n
}, i)
})), n
}
lastEventId() {
return this._lastEventId
}
addBreadcrumb(e, t) {
const {
scope: n,
client: r
} = this.getStackTop();
if (!n || !r) return;
const {
beforeBreadcrumb: i = null,
maxBreadcrumbs: a = MS
} = r.getOptions && r.getOptions() || {};
if (!(a <= 0)) {
var o = {
timestamp: (0, PS.yW)(),
...e
},
s = i ? hS((() => i(o, t))) : o;
null !== s && n.addBreadcrumb(s, a)
}
}
setUser(e) {
var t = this.getScope();
t && t.setUser(e)
}
setTags(e) {
var t = this.getScope();
t && t.setTags(e)
}
setExtras(e) {
var t = this.getScope();
t && t.setExtras(e)
}
setTag(e, t) {
var n = this.getScope();
n && n.setTag(e, t)
}
setExtra(e, t) {
var n = this.getScope();
n && n.setExtra(e, t)
}
setContext(e, t) {
var n = this.getScope();
n && n.setContext(e, t)
}
configureScope(e) {
const {
scope: t,
client: n
} = this.getStackTop();
t && n && e(t)
}
run(e) {
var t = US(this);
try {
e(this)
} finally {
US(t)
}
}
getIntegration(e) {
var t = this.getClient();
if (!t) return null;
try {
return t.getIntegration(e)
} catch (n) {
return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn(`Cannot retrieve integration ${e.id} from the current Hub`), null
}
}
startTransaction(e, t) {
return this._callExtensionMethod("startTransaction", e, t)
}
traceHeaders() {
return this._callExtensionMethod("traceHeaders")
}
captureSession(e = !1) {
if (e) return this.endSession();
this._sendSessionUpdate()
}
endSession() {
var e = this.getStackTop(),
t = e && e.scope,
n = t && t.getSession();
n && function(e, t) {
let n = {};
t ? n = {
status: t
} : "ok" === e.status && (n = {
status: "exited"
}), DS(e, n)
}(n), this._sendSessionUpdate(), t && t.setSession()
}
startSession(e) {
const {
scope: t,
client: n
} = this.getStackTop(), {
release: r,
environment: i
} = n && n.getOptions() || {};
var a = (0, jE.R)();
const {
userAgent: o
} = a.navigator || {};
var s = TS({
release: r,
environment: i,
...t && {
user: t.getUser()
},
...o && {
userAgent: o
},
...e
});
if (t) {
var l = t.getSession && t.getSession();
l && "ok" === l.status && DS(l, {
status: "exited"
}), this.endSession(), t.setSession(s)
}
return s
}
shouldSendDefaultPii() {
var e = this.getClient(),
t = e && e.getOptions();
return Boolean(t && t.sendDefaultPii)
}
_sendSessionUpdate() {
const {
scope: e,
client: t
} = this.getStackTop();
if (e) {
var n = e.getSession();
n && t && t.captureSession && t.captureSession(n)
}
}
_withClient(e) {
const {
scope: t,
client: n
} = this.getStackTop();
n && e(n, t)
}
_callExtensionMethod(e, ...t) {
var n = FS().__SENTRY__;
if (n && n.extensions && "function" === typeof n.extensions[e]) return n.extensions[e].apply(this, t);
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn(`Extension method ${e} couldn't be found, doing nothing.`)
}
}
function FS() {
var e = (0, jE.R)();
return e.__SENTRY__ = e.__SENTRY__ || {
extensions: {},
hub: void 0
}, e
}
function US(e) {
var t = FS(),
n = BS(t);
return $S(t, e), n
}
function VS() {
var e = FS();
return GS(e) && !BS(e).isOlderThan(4) || $S(e, new zS), (0, IS.KV)() ? function(e) {
try {
var t = FS().__SENTRY__,
n = t && t.extensions && t.extensions.domain && t.extensions.domain.active;
if (!n) return BS(e);
if (!GS(n) || BS(n).isOlderThan(4)) {
var r = BS(e).getStackTop();
$S(n, new zS(r.client, NS.clone(r.scope)))
}
return BS(n)
} catch (i) {
return BS(e)
}
}(e) : BS(e)
}
function GS(e) {
return !!(e && e.__SENTRY__ && e.__SENTRY__.hub)
}
function BS(e) {
return (0, jE.Y)("hub", (() => new zS), e)
}
function $S(e, t) {
return !!e && ((e.__SENTRY__ = e.__SENTRY__ || {}).hub = t, !0)
}
function qS(e) {
let t, n = e[0],
r = 1;
for (; r < e.length;) {
var 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 WS(...e) {
var t = e.sort(((e, t) => e[0] - t[0])).map((e => e[1]));
return (e, n = 0) => {
var r = [];
for (var i of e.split("\n").slice(n)) {
var a = i.replace(/\(error: (.*)\)/, "$1");
for (var o of t) {
var s = o(a);
if (s) {
r.push(s);
break
}
}
}
return HS(r)
}
}
function HS(e) {
if (!e.length) return [];
let t = e;
var n = t[0].function || "",
r = t[t.length - 1].function || "";
return -1 === n.indexOf("captureMessage") && -1 === n.indexOf("captureException") || (t = t.slice(1)), -1 !== r.indexOf("sentryWrapped") && (t = t.slice(0, -1)), t.slice(0, 50).map((e => ({
...e,
filename: e.filename || t[0].filename,
function: e.function || "?"
}))).reverse()
}
var YS = "<anonymous>";
function KS(e) {
try {
return e && "function" === typeof e && e.name || YS
} catch (t) {
return YS
}
}
function QS(e) {
var t = /^\s*[-]{4,}$/,
n = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
return r => {
if (r.match(t)) return {
filename: r
};
var i = r.match(n);
if (!i) return;
let a, o, s, l, c;
if (i[1]) {
s = i[1];
let e = s.lastIndexOf(".");
if ("." === s[e - 1] && e--, e > 0) {
a = s.substr(0, e), o = s.substr(e + 1);
var u = a.indexOf(".Module");
u > 0 && (s = s.substr(u + 1), a = a.substr(0, u))
}
l = void 0
}
o && (l = a, c = o), "<anonymous>" === o && (c = void 0, s = void 0), void 0 === s && (c = c || "<anonymous>", s = l ? `${l}.${c}` : c);
var d = qS([i, "access", e => e[2], "optionalAccess", e => e.startsWith, "call", e => e("file://")]) ? i[2].substr(7) : i[2],
p = !("native" === i[5] || d && !d.startsWith("/") && !d.startsWith(".") && 1 !== d.indexOf(":\\")) && void 0 !== d && !d.includes("node_modules/");
return {
filename: d,
module: qS([e, "optionalCall", e => e(d)]),
function: s,
lineno: parseInt(i[3], 10) || void 0,
colno: parseInt(i[4], 10) || void 0,
in_app: p
}
}
}
function ZS() {
if (!("fetch" in (0, jE.R)())) return !1;
try {
return new Headers, new Request("http://www.example.com"), new Response, !0
} catch (e) {
return !1
}
}
function XS(e) {
return e && /^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())
}
var JS = (0, jE.R)(),
eO = {},
tO = {};
function nO(e) {
if (!tO[e]) switch (tO[e] = !0, e) {
case "console":
! function() {
if (!("console" in JS)) return;
pS.forEach((function(e) {
e in JS.console && JE(JS.console, e, (function(t) {
return function(...n) {
iO("console", {
args: n,
level: e
}), t && t.apply(JS.console, n)
}
}))
}))
}();
break;
case "dom":
! function() {
if (!("document" in JS)) return;
var e = iO.bind(null, "dom"),
t = uO(e, !0);
JS.document.addEventListener("click", t, !1), JS.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((t => {
var n = JS[t] && JS[t].prototype;
n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (JE(n, "addEventListener", (function(t) {
return function(n, r, i) {
if ("click" === n || "keypress" == n) try {
var a = this,
o = a.__sentry_instrumentation_handlers__ = a.__sentry_instrumentation_handlers__ || {},
s = o[n] = o[n] || {
refCount: 0
};
if (!s.handler) {
var l = uO(e);
s.handler = l, t.call(this, n, l, i)
}
s.refCount += 1
} catch (c) {}
return t.call(this, n, r, i)
}
})), JE(n, "removeEventListener", (function(e) {
return function(t, n, r) {
if ("click" === t || "keypress" == t) try {
var i = this,
a = i.__sentry_instrumentation_handlers__ || {},
o = a[t];
o && (o.refCount -= 1, o.refCount <= 0 && (e.call(this, t, o.handler, r), o.handler = void 0, delete a[t]), 0 === Object.keys(a).length && delete i.__sentry_instrumentation_handlers__)
} catch (s) {}
return e.call(this, t, n, r)
}
})))
}))
}();
break;
case "xhr":
! function() {
if (!("XMLHttpRequest" in JS)) return;
var e = XMLHttpRequest.prototype;
JE(e, "open", (function(e) {
return function(...t) {
var n = this,
r = t[1],
i = n.__sentry_xhr__ = {
method: GE(t[0]) ? t[0].toUpperCase() : t[0],
url: t[1]
};
GE(r) && "POST" === i.method && r.match(/sentry_key/) && (n.__sentry_own_request__ = !0);
var a = function() {
if (4 === n.readyState) {
try {
i.status_code = n.status
} catch (e) {}
iO("xhr", {
args: t,
endTimestamp: Date.now(),
startTimestamp: Date.now(),
xhr: n
})
}
};
return "onreadystatechange" in n && "function" === typeof n.onreadystatechange ? JE(n, "onreadystatechange", (function(e) {
return function(...t) {
return a(), e.apply(n, t)
}
})) : n.addEventListener("readystatechange", a), e.apply(n, t)
}
})), JE(e, "send", (function(e) {
return function(...t) {
return this.__sentry_xhr__ && void 0 !== t[0] && (this.__sentry_xhr__.body = t[0]), iO("xhr", {
args: t,
startTimestamp: Date.now(),
xhr: this
}), e.apply(this, t)
}
}))
}();
break;
case "fetch":
! function() {
if (! function() {
if (!ZS()) return !1;
var e = (0, jE.R)();
if (XS(e.fetch)) return !0;
let t = !1;
var n = e.document;
if (n && "function" === typeof n.createElement) try {
var r = n.createElement("iframe");
r.hidden = !0, n.head.appendChild(r), r.contentWindow && r.contentWindow.fetch && (t = XS(r.contentWindow.fetch)), n.head.removeChild(r)
} catch (i) {
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", i)
}
return t
}()) return;
JE(JS, "fetch", (function(e) {
return function(...t) {
var n = {
args: t,
fetchData: {
method: aO(t),
url: oO(t)
},
startTimestamp: Date.now()
};
return iO("fetch", {
...n
}), e.apply(JS, t).then((e => (iO("fetch", {
...n,
endTimestamp: Date.now(),
response: e
}), e)), (e => {
throw iO("fetch", {
...n,
endTimestamp: Date.now(),
error: e
}), e
}))
}
}))
}();
break;
case "history":
! function() {
if (! function() {
var e = (0, jE.R)(),
t = e.chrome,
n = t && t.app && t.app.runtime,
r = "history" in e && !!e.history.pushState && !!e.history.replaceState;
return !n && r
}()) return;
var e = JS.onpopstate;
function t(e) {
return function(...t) {
var n = t.length > 2 ? t[2] : void 0;
if (n) {
var r = sO,
i = String(n);
sO = i, iO("history", {
from: r,
to: i
})
}
return e.apply(this, t)
}
}
JS.onpopstate = function(...t) {
var n = JS.location.href,
r = sO;
if (sO = n, iO("history", {
from: r,
to: n
}), e) try {
return e.apply(this, t)
} catch (i) {}
}, JE(JS.history, "pushState", t), JE(JS.history, "replaceState", t)
}();
break;
case "error":
dO = JS.onerror, JS.onerror = function(e, t, n, r, i) {
return iO("error", {
column: r,
error: i,
line: n,
msg: e,
url: t
}), !!dO && dO.apply(this, arguments)
};
break;
case "unhandledrejection":
pO = JS.onunhandledrejection, JS.onunhandledrejection = function(e) {
return iO("unhandledrejection", e), !pO || pO.apply(this, arguments)
};
break;
default:
return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn("unknown instrumentation type:", e))
}
}
function rO(e, t) {
eO[e] = eO[e] || [], eO[e].push(t), nO(e)
}
function iO(e, t) {
if (e && eO[e])
for (var n of eO[e] || []) try {
n(t)
} catch (r) {
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${KS(n)}\nError:`, r)
}
}
function aO(e = []) {
return "Request" in JS && HE(e[0], Request) && e[0].method ? String(e[0].method).toUpperCase() : e[1] && e[1].method ? String(e[1].method).toUpperCase() : "GET"
}
function oO(e = []) {
return "string" === typeof e[0] ? e[0] : "Request" in JS && HE(e[0], Request) ? e[0].url : String(e[0])
}
let sO;
let lO, cO;
function uO(e, t = !1) {
return n => {
if (n && cO !== n && ! function(e) {
if ("keypress" !== e.type) return !1;
try {
var t = e.target;
if (!t || !t.tagName) return !0;
if ("INPUT" === t.tagName || "TEXTAREA" === t.tagName || t.isContentEditable) return !1
} catch (n) {}
return !0
}(n)) {
var r = "keypress" === n.type ? "input" : n.type;
(void 0 === lO || function(e, t) {
if (!e) return !0;
if (e.type !== t.type) return !0;
try {
if (e.target !== t.target) return !0
} catch (n) {}
return !1
}(cO, n)) && (e({
event: n,
name: r,
global: t
}), cO = n), clearTimeout(lO), lO = JS.setTimeout((() => {
lO = void 0
}), 1e3)
}
}
}
let dO = null;
let pO = null;
function hO(e, t = 1 / 0, n = 1 / 0) {
try {
return mO("", e, t, n)
} catch (r) {
return {
ERROR: `**non-serializable** (${r})`
}
}
}
function fO(e, t = 3, n = 102400) {
var r, i = hO(e, t);
return r = i,
function(e) {
return ~-encodeURI(e).split(/%..|./).length
}(JSON.stringify(r)) > n ? fO(e, t - 1, n) : i
}
function mO(e, t, r = 1 / 0, i = 1 / 0, a = function() {
var 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 [o, s] = a;
if (null === t || ["number", "boolean", "string"].includes(typeof t) && ("number" !== typeof(l = t) || l === l)) return t;
var l, c = function(e, t) {
try {
return "domain" === e && t && "object" === typeof t && t._events ? "[Domain]" : "domainEmitter" === e ? "[DomainEmitter]" : "undefined" !== typeof n.g && t === n.g ? "[Global]" : "undefined" !== typeof window && t === window ? "[Window]" : "undefined" !== typeof document && t === document ? "[Document]" : function(e) {
return $E(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e
}(t) ? "[SyntheticEvent]" : "number" === typeof t && t !== t ? "[NaN]" : void 0 === t ? "[undefined]" : "function" === typeof t ? `[Function: ${KS(t)}]` : "symbol" === typeof t ? `[${String(t)}]` : "bigint" === typeof t ? `[BigInt: ${String(t)}]` : `[object ${Object.getPrototypeOf(t).constructor.name}]`
} catch (r) {
return `**non-serializable** (${r})`
}
}(e, t);
if (!c.startsWith("[object ")) return c;
if (t.__sentry_skip_normalization__) return t;
if (0 === r) return c.replace("object ", "");
if (o(t)) return "[Circular ~]";
var u = t;
if (u && "function" === typeof u.toJSON) try {
return mO("", u.toJSON(), r - 1, i, a)
} catch (g) {}
var d = Array.isArray(t) ? [] : {};
let p = 0;
var h = rS(t);
for (var f in h)
if (Object.prototype.hasOwnProperty.call(h, f)) {
if (p >= i) {
d[f] = "[MaxProperties ~]";
break
}
var m = h[f];
d[f] = mO(f, m, r - 1, i, a), p += 1
} return s(t), d
}
function gO(e, t) {
var n = _O(e, t),
r = {
type: t && t.name,
value: bO(t)
};
return n.length && (r.stacktrace = {
frames: n
}), void 0 === r.type && "" === r.value && (r.value = "Unrecoverable error caught"), r
}
function vO(e, t) {
return {
exception: {
values: [gO(e, t)]
}
}
}
function _O(e, t) {
var n = t.stacktrace || t.stack || "",
r = function(e) {
if (e) {
if ("number" === typeof e.framesToPop) return e.framesToPop;
if (yO.test(e.message)) return 1
}
return 0
}(t);
try {
return e(n, r)
} catch (i) {}
return []
}
var yO = /Minified React error #\d+;/i;
function bO(e) {
var t = e && e.message;
return t ? t.error && "string" === typeof t.error.message ? t.error.message : t : "No error message"
}
function xO(e, t, n, r, i) {
let a;
if (UE(t) && t.error) return vO(e, t.error);
if (VE(t) || FE(t, "DOMException")) {
var o = t;
if ("stack" in t) a = vO(e, t);
else {
var s = o.name || (VE(o) ? "DOMError" : "DOMException"),
l = o.message ? `${s}: ${o.message}` : s;
a = wO(e, l, n, r), yS(a, l)
}
return "code" in o && (a.tags = {
...a.tags,
"DOMException.code": `${o.code}`
}), a
}
return zE(t) ? vO(e, t) : $E(t) || qE(t) ? (a = function(e, t, n, r) {
var i = VS().getClient(),
a = i && i.getOptions().normalizeDepth,
o = {
exception: {
values: [{
type: qE(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error",
value: `Non-Error ${r?"promise rejection":"exception"} captured with keys: ${oS(t)}`
}]
},
extra: {
__serialized__: fO(t, a)
}
};
if (n) {
var s = _O(e, n);
s.length && (o.exception.values[0].stacktrace = {
frames: s
})
}
return o
}(e, t, n, i), bS(a, {
synthetic: !0
}), a) : (a = wO(e, t, n, r), yS(a, `${t}`, void 0), bS(a, {
synthetic: !0
}), a)
}
function wO(e, t, n, r) {
var i = {
message: t
};
if (r && n) {
var a = _O(e, n);
a.length && (i.exception = {
values: [{
value: t,
stacktrace: {
frames: a
}
}]
})
}
return i
}
function kO(e, t) {
return VS().captureException(e, {
captureContext: t
})
}
function EO(e) {
VS().withScope(e)
}
let SO = 0;
function OO() {
return SO > 0
}
function PO() {
SO += 1, setTimeout((() => {
SO -= 1
}))
}
function IO(e, t = {}, n) {
if ("function" !== typeof e) return e;
try {
var r = e.__sentry_wrapped__;
if (r) return r;
if (nS(e)) return e
} catch (o) {
return e
}
var i = function() {
var r = Array.prototype.slice.call(arguments);
try {
n && "function" === typeof n && n.apply(this, arguments);
var i = r.map((e => IO(e, t)));
return e.apply(this, i)
} catch (nl) {
throw PO(), EO((n => {
n.addEventProcessor((e => (t.mechanism && (yS(e, void 0, void 0), bS(e, t.mechanism)), e.extra = {
...e.extra,
arguments: r
}, e))), kO(nl)
})), nl
}
};
try {
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && (i[a] = e[a])
} catch (s) {}
tS(i, e), eS(e, "__sentry_wrapped__", i);
try {
Object.getOwnPropertyDescriptor(i, "name").configurable && Object.defineProperty(i, "name", {
get: () => e.name
})
} catch (s) {}
return i
}
class AO {
static __initStatic() {
this.id = "GlobalHandlers"
}
__init() {
this.name = AO.id
}
__init2() {
this._installFunc = {
onerror: CO,
onunhandledrejection: RO
}
}
constructor(e) {
AO.prototype.__init.call(this), AO.prototype.__init2.call(this), this._options = {
onerror: !0,
onunhandledrejection: !0,
...e
}
}
setupOnce() {
Error.stackTraceLimit = 50;
var e, t = this._options;
for (var n in t) {
var r = this._installFunc[n];
r && t[n] && (e = n, ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.log(`Global Handler attached: ${e}`), r(), this._installFunc[n] = void 0)
}
}
}
function CO() {
rO("error", (e => {
const [t, n, r] = NO();
if (!t.getIntegration(AO)) return;
const {
msg: i,
url: a,
line: o,
column: s,
error: l
} = e;
if (!(OO() || l && l.__sentry_own_request__)) {
var c = void 0 === l && GE(i) ? function(e, t, n, r) {
var i = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
let a = UE(e) ? e.message : e,
o = "Error";
var s = a.match(i);
s && (o = s[1], a = s[2]);
var l = {
exception: {
values: [{
type: o,
value: a
}]
}
};
return TO(l, t, n, r)
}(i, a, o, s) : TO(xO(n, l || i, void 0, r, !1), a, o, s);
c.level = "error", DO(t, l, c, "onerror")
}
}))
}
function RO() {
rO("unhandledrejection", (e => {
const [t, n, r] = NO();
if (!t.getIntegration(AO)) return;
let i = e;
try {
"reason" in e ? i = e.reason : "detail" in e && "reason" in e.detail && (i = e.detail.reason)
} catch (o) {}
if (OO() || i && i.__sentry_own_request__) return !0;
var a = BE(i) ? {
exception: {
values: [{
type: "UnhandledRejection",
value: `Non-Error promise rejection captured with value: ${String(i)}`
}]
}
} : xO(n, i, void 0, r, !0);
a.level = "error", DO(t, i, a, "onunhandledrejection")
}))
}
function TO(e, t, n, r) {
var 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 = GE(t) && t.length > 0 ? t : function() {
var e = (0, jE.R)();
try {
return e.document.location.href
} catch (Cp) {
return ""
}
}();
return 0 === l.length && l.push({
colno: c,
filename: d,
function: "?",
in_app: !0,
lineno: u
}), e
}
function DO(e, t, n, r) {
bS(n, {
handled: !1,
type: r
}), e.captureEvent(n, {
originalException: t
})
}
function NO() {
var e = VS(),
t = e.getClient(),
n = t && t.getOptions() || {
stackParser: () => [],
attachStacktrace: !1
};
return [e, n.stackParser, n.attachStacktrace]
}
AO.__initStatic();
var LO = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"];
class jO {
static __initStatic() {
this.id = "TryCatch"
}
__init() {
this.name = jO.id
}
constructor(e) {
jO.prototype.__init.call(this), this._options = {
XMLHttpRequest: !0,
eventTarget: !0,
requestAnimationFrame: !0,
setInterval: !0,
setTimeout: !0,
...e
}
}
setupOnce() {
var e = (0, jE.R)();
this._options.setTimeout && JE(e, "setTimeout", MO), this._options.setInterval && JE(e, "setInterval", MO), this._options.requestAnimationFrame && JE(e, "requestAnimationFrame", zO), this._options.XMLHttpRequest && "XMLHttpRequest" in e && JE(XMLHttpRequest.prototype, "send", FO);
var t = this._options.eventTarget;
t && (Array.isArray(t) ? t : LO).forEach(UO)
}
}
function MO(e) {
return function(...t) {
var n = t[0];
return t[0] = IO(n, {
mechanism: {
data: {
function: KS(e)
},
handled: !0,
type: "instrument"
}
}), e.apply(this, t)
}
}
function zO(e) {
return function(t) {
return e.apply(this, [IO(t, {
mechanism: {
data: {
function: "requestAnimationFrame",
handler: KS(e)
},
handled: !0,
type: "instrument"
}
})])
}
}
function FO(e) {
return function(...t) {
var n = this;
return ["onload", "onerror", "onprogress", "onreadystatechange"].forEach((e => {
e in n && "function" === typeof n[e] && JE(n, e, (function(t) {
var n = {
mechanism: {
data: {
function: e,
handler: KS(t)
},
handled: !0,
type: "instrument"
}
},
r = nS(t);
return r && (n.mechanism.data.handler = KS(r)), IO(t, n)
}))
})), e.apply(this, t)
}
}
function UO(e) {
var t = (0, jE.R)(),
n = t[e] && t[e].prototype;
n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (JE(n, "addEventListener", (function(t) {
return function(n, r, i) {
try {
"function" === typeof r.handleEvent && (r.handleEvent = IO(r.handleEvent, {
mechanism: {
data: {
function: "handleEvent",
handler: KS(r),
target: e
},
handled: !0,
type: "instrument"
}
}))
} catch (a) {}
return t.apply(this, [n, IO(r, {
mechanism: {
data: {
function: "addEventListener",
handler: KS(r),
target: e
},
handled: !0,
type: "instrument"
}
}), i])
}
})), JE(n, "removeEventListener", (function(e) {
return function(t, n, r) {
var i = n;
try {
var a = i && i.__sentry_wrapped__;
a && e.call(this, t, a, r)
} catch (o) {}
return e.call(this, t, i, r)
}
})))
}
jO.__initStatic();
var VO = ["fatal", "error", "warning", "log", "info", "debug"];
function GO(e) {
return "warn" === e ? "warning" : VO.includes(e) ? e : "log"
}
function BO(e) {
if (!e) return {};
var t = e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);
if (!t) return {};
var n = t[6] || "",
r = t[8] || "";
return {
host: t[4],
path: t[5],
protocol: t[2],
relative: t[5] + n + r
}
}
var $O = "Breadcrumbs";
class qO {
static __initStatic() {
this.id = $O
}
__init() {
this.name = qO.id
}
constructor(e) {
qO.prototype.__init.call(this), this.options = {
console: !0,
dom: !0,
fetch: !0,
history: !0,
sentry: !0,
xhr: !0,
...e
}
}
setupOnce() {
this.options.console && rO("console", WO), this.options.dom && rO("dom", function(e) {
function t(t) {
let n, r = "object" === typeof e ? e.serializeAttribute : void 0;
"string" === typeof r && (r = [r]);
try {
n = t.event.target ? YE(t.event.target, r) : YE(t.event, r)
} catch (i) {
n = "<unknown>"
}
0 !== n.length && VS().addBreadcrumb({
category: `ui.${t.name}`,
message: n
}, {
event: t.event,
name: t.name,
global: t.global
})
}
return t
}(this.options.dom)), this.options.xhr && rO("xhr", HO), this.options.fetch && rO("fetch", YO), this.options.history && rO("history", KO)
}
}
function WO(e) {
var t = {
category: "console",
data: {
arguments: e.args,
logger: "console"
},
level: GO(e.level),
message: ZE(e.args, " ")
};
if ("assert" === e.level) {
if (!1 !== e.args[0]) return;
t.message = `Assertion failed: ${ZE(e.args.slice(1)," ")||"console.assert"}`, t.data.arguments = e.args.slice(1)
}
VS().addBreadcrumb(t, {
input: e.args,
level: e.level
})
}
function HO(e) {
if (e.endTimestamp) {
if (e.xhr.__sentry_own_request__) return;
const {
method: t,
url: n,
status_code: r,
body: i
} = e.xhr.__sentry_xhr__ || {};
VS().addBreadcrumb({
category: "xhr",
data: {
method: t,
url: n,
status_code: r
},
type: "http"
}, {
xhr: e.xhr,
input: i
})
} else;
}
function YO(e) {
e.endTimestamp && (e.fetchData.url.match(/sentry_key/) && "POST" === e.fetchData.method || (e.error ? VS().addBreadcrumb({
category: "fetch",
data: e.fetchData,
level: "error",
type: "http"
}, {
data: e.error,
input: e.args
}) : VS().addBreadcrumb({
category: "fetch",
data: {
...e.fetchData,
status_code: e.response.status
},
type: "http"
}, {
input: e.args,
response: e.response
})))
}
function KO(e) {
var t = (0, jE.R)();
let n = e.from,
r = e.to;
var i = BO(t.location.href);
let a = BO(n);
var o = BO(r);
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), VS().addBreadcrumb({
category: "navigation",
data: {
from: n,
to: r
}
})
}
qO.__initStatic();
class QO {
static __initStatic() {
this.id = "LinkedErrors"
}
__init() {
this.name = QO.id
}
constructor(e = {}) {
QO.prototype.__init.call(this), this._key = e.key || "cause", this._limit = e.limit || 5
}
setupOnce() {
var e = VS().getClient();
e && jS(((t, n) => {
var r = VS().getIntegration(QO);
return r ? function(e, t, n, r, i) {
if (!r.exception || !r.exception.values || !i || !HE(i.originalException, Error)) return r;
var a = ZO(e, n, i.originalException, t);
return r.exception.values = [...a, ...r.exception.values], r
}(e.getOptions().stackParser, r._key, r._limit, t, n) : t
}))
}
}
function ZO(e, t, n, r, i = []) {
if (!HE(n[r], Error) || i.length + 1 >= t) return i;
var a = gO(e, n[r]);
return ZO(e, t, n[r], r, [a, ...i])
}
QO.__initStatic();
var XO = (0, jE.R)();
class JO {
constructor() {
JO.prototype.__init.call(this)
}
static __initStatic() {
this.id = "HttpContext"
}
__init() {
this.name = JO.id
}
setupOnce() {
jS((e => {
if (VS().getIntegration(JO)) {
if (!XO.navigator && !XO.location && !XO.document) return e;
var t = e.request && e.request.url || XO.location && XO.location.href;
const {
referrer: r
} = XO.document || {}, {
userAgent: i
} = XO.navigator || {};
var n = {
...t && {
url: t
},
headers: {
...e.request && e.request.headers,
...r && {
Referer: r
},
...i && {
"User-Agent": i
}
}
};
return {
...e,
request: n
}
}
return e
}))
}
}
JO.__initStatic();
class eP {
constructor() {
eP.prototype.__init.call(this)
}
static __initStatic() {
this.id = "Dedupe"
}
__init() {
this.name = eP.id
}
setupOnce(e, t) {
var n = e => {
var n = t().getIntegration(eP);
if (n) {
try {
if (function(e, t) {
if (!t) return !1;
if (function(e, t) {
var n = e.message,
r = t.message;
if (!n && !r) return !1;
if (n && !r || !n && r) return !1;
if (n !== r) return !1;
if (!nP(e, t)) return !1;
if (!tP(e, t)) return !1;
return !0
}(e, t)) return !0;
if (function(e, t) {
var n = rP(t),
r = rP(e);
if (!n || !r) return !1;
if (n.type !== r.type || n.value !== r.value) return !1;
if (!nP(e, t)) return !1;
if (!tP(e, t)) return !1;
return !0
}(e, t)) return !0;
return !1
}(e, n._previousEvent)) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn("Event dropped due to being a duplicate of previously captured event."), null
} catch (r) {
return n._previousEvent = e
}
return n._previousEvent = e
}
return e
};
n.id = this.name, e(n)
}
}
function tP(e, t) {
let n = iP(e),
r = iP(t);
if (!n && !r) return !0;
if (n && !r || !n && r) return !1;
if (r.length !== n.length) return !1;
for (let o = 0; o < r.length; o++) {
var i = r[o],
a = n[o];
if (i.filename !== a.filename || i.lineno !== a.lineno || i.colno !== a.colno || i.function !== a.function) return !1
}
return !0
}
function nP(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 rP(e) {
return e.exception && e.exception.values && e.exception.values[0]
}
function iP(e) {
var t = e.exception;
if (t) try {
return t.values[0].stacktrace.frames
} catch (n) {
return
}
}
eP.__initStatic();
let aP = {};
var oP = (0, jE.R)();
oP.Sentry && oP.Sentry.Integrations && (aP = oP.Sentry.Integrations);
var sP = {
...aP,
...e,
...t
};
const lP = "sentry-ipc";
var cP;
! function(e) {
e.PING = "sentry-electron.ping", e.EVENT = "sentry-electron.event", e.SCOPE = "sentry-electron.scope"
}(cP || (cP = {}));
var uP;
n(9948);
let dP;
function pP() {
return dP || (dP = window.__SENTRY_IPC__ ? window.__SENTRY_IPC__ : (mS.log("IPC was not configured in preload script, falling back to custom protocol and fetch"), fetch(`${lP}://${cP.PING}/sentry_key`).catch((() => console.error("Sentry SDK failed to establish connection with the Electron main process.\n - Ensure you have initialized the SDK in the main process\n - If your renderers use custom sessions, be sure to set 'getSessions' in the main process options\n - If you are bundling your main process code and using Electron < v5, you'll need to manually configure a preload script"))), {
sendScope: e => {
fetch(`${lP}://${cP.SCOPE}/sentry_key`, {
method: "POST",
body: e
}).catch((() => {}))
},
sendEvent: e => {
fetch(`${lP}://${cP.EVENT}/sentry_key`, {
method: "POST",
body: e
}).catch((() => {}))
}
})), dP
}! function(e) {
e[e.Classic = 1] = "Classic", e[e.Protocol = 2] = "Protocol", e[e.Both = 3] = "Both"
}(uP || (uP = {}));
class hP {
constructor() {
this.name = hP.id
}
setupOnce() {
this._setupScopeListener()
}
_setupScopeListener() {
const e = VS().getScope();
if (e) {
const t = pP();
e.addScopeListener((n => {
t.sendScope(JSON.stringify(hO(n, 20, 2e3))), e.clearBreadcrumbs(), e.clearAttachments()
}))
}
}
}
hP.id = "ScopeToMain";
class fP {
constructor() {
this.name = fP.id
}
setupOnce(e) {
const t = pP();
e((e => (e.breadcrumbs = e.breadcrumbs || [], delete e.environment, t.sendEvent(JSON.stringify(hO(e, 20, 2e3))), null)))
}
}
fP.id = "EventToMain";
var mP = [];
function gP(e) {
var t = e.defaultIntegrations || [],
n = e.integrations;
let r;
t.forEach((e => {
e.isDefaultInstance = !0
})), r = Array.isArray(n) ? [...t, ...n] : "function" === typeof n ? wS(n(t)) : t;
var i = function(e) {
var t = {};
return e.forEach((e => {
const {
name: n
} = e;
var r = t[n];
r && !r.isDefaultInstance && e.isDefaultInstance || (t[n] = e)
})), Object.values(t)
}(r),
a = i.findIndex((e => "Debug" === e.name));
if (-1 !== a) {
const [e] = i.splice(a, 1);
i.push(e)
}
return i
}
class vP extends Error {
constructor(e, t = "warn") {
super(e), this.message = e, this.name = new.target.prototype.constructor.name, Object.setPrototypeOf(this, new.target.prototype), this.logLevel = t
}
}
var _P = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
function yP(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 bP(e) {
return {
protocol: e.protocol,
publicKey: e.publicKey || "",
pass: e.pass || "",
host: e.host,
port: e.port || "",
path: e.path || "",
projectId: e.projectId
}
}
function xP(e) {
var t = "string" === typeof e ? function(e) {
var t = _P.exec(e);
if (!t) throw new vP(`Invalid Sentry Dsn: ${e}`);
const [n, r, i = "", a, o = "", s] = t.slice(1);
let l = "",
c = s;
var u = c.split("/");
if (u.length > 1 && (l = u.slice(0, -1).join("/"), c = u.pop()), c) {
var d = c.match(/^\d+/);
d && (c = d[0])
}
return bP({
host: a,
pass: i,
path: l,
projectId: c,
port: o,
protocol: n,
publicKey: r
})
}(e) : bP(e);
return function(e) {
if ("undefined" !== typeof __SENTRY_DEBUG__ && !__SENTRY_DEBUG__) return;
const {
port: t,
projectId: n,
protocol: r
} = e;
if (["protocol", "publicKey", "host", "projectId"].forEach((t => {
if (!e[t]) throw new vP(`Invalid Sentry Dsn: ${t} missing`)
})), !n.match(/^\d+$/)) throw new vP(`Invalid Sentry Dsn: Invalid projectId ${n}`);
if (! function(e) {
return "http" === e || "https" === e
}(r)) throw new vP(`Invalid Sentry Dsn: Invalid protocol ${r}`);
if (t && isNaN(parseInt(t, 10))) throw new vP(`Invalid Sentry Dsn: Invalid port ${t}`)
}(t), t
}
function wP(e, t = []) {
return [e, t]
}
function kP(e, t) {
const [n, r] = e;
return [n, [...r, t]]
}
function EP(e, t) {
e[1].forEach((e => {
var n = e[0].type;
t(e, n)
}))
}
function SP(e, t) {
return (t || new TextEncoder).encode(e)
}
function OP(e, t) {
const [n, r] = e;
let i = JSON.stringify(n);
function a(e) {
"string" === typeof i ? i = "string" === typeof e ? i + e : [SP(i, t), e] : i.push("string" === typeof e ? SP(e, t) : e)
}
for (var o of r) {
const [e, t] = o;
if (a(`\n${JSON.stringify(e)}\n`), "string" === typeof t || t instanceof Uint8Array) a(t);
else {
let e;
try {
e = JSON.stringify(t)
} catch (s) {
e = JSON.stringify(hO(t))
}
a(e)
}
}
return "string" === typeof i ? i : function(e) {
var t = e.reduce(((e, t) => e + t.length), 0),
n = new Uint8Array(t);
let r = 0;
for (var i of e) n.set(i, r), r += i.length;
return n
}(i)
}
function PP(e, t) {
var n = "string" === typeof e.data ? SP(e.data, t) : e.data;
return [sS({
type: "attachment",
length: n.length,
filename: e.filename,
content_type: e.contentType,
attachment_type: e.attachmentType
}), n]
}
var IP = {
session: "session",
sessions: "session",
attachment: "attachment",
transaction: "transaction",
event: "error",
client_report: "internal",
user_report: "default"
};
function AP(e) {
return IP[e]
}
function CP(e) {
var t = e.protocol ? `${e.protocol}:` : "",
n = e.port ? `:${e.port}` : "";
return `${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`
}
function RP(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 TP(e, t = {}) {
var n = "string" === typeof t ? t : t.tunnel,
r = "string" !== typeof t && t._metadata ? t._metadata.sdk : void 0;
return n || `${function(e){return`${CP(e)}${e.projectId}/envelope/`}(e)}?${RP(e,r)}`
}
function DP(e) {
if (!e || !e.sdk) return;
const {
name: t,
version: n
} = e.sdk;
return {
name: t,
version: n
}
}
function NP(e, t, n, r) {
var i = DP(n),
a = 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);
var o = function(e, t, n, r) {
var i = e.sdkProcessingMetadata && e.sdkProcessingMetadata.dynamicSamplingContext;
return {
event_id: e.event_id,
sent_at: (new Date).toISOString(),
...t && {
sdk: t
},
...!!n && {
dsn: yP(r)
},
..."transaction" === e.type && i && {
trace: sS({
...i
})
}
}
}(e, i, r, t);
return delete e.sdkProcessingMetadata, wP(o, [
[{
type: a
}, e]
])
}
var LP = "Not capturing exception because it's already been captured.";
class jP {
__init() {
this._integrations = {}
}
__init2() {
this._integrationsInitialized = !1
}
__init3() {
this._numProcessing = 0
}
__init4() {
this._outcomes = {}
}
constructor(e) {
if (jP.prototype.__init.call(this), jP.prototype.__init2.call(this), jP.prototype.__init3.call(this), jP.prototype.__init4.call(this), this._options = e, e.dsn) {
this._dsn = xP(e.dsn);
var t = TP(this._dsn, e);
this._transport = e.transport({
recordDroppedEvent: this.recordDroppedEvent.bind(this),
...e.transportOptions,
url: t
})
} else("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn("No DSN provided, client will not do anything.")
}
captureException(e, t, n) {
if (xS(e)) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.log(LP));
let r = t && t.event_id;
return this._process(this.eventFromException(e, t).then((e => this._captureEvent(e, t, n))).then((e => {
r = e
}))), r
}
captureMessage(e, t, n, r) {
let i = n && n.event_id;
var a = BE(e) ? this.eventFromMessage(String(e), t, n) : this.eventFromException(e, n);
return this._process(a.then((e => this._captureEvent(e, n, r))).then((e => {
i = e
}))), i
}
captureEvent(e, t, n) {
if (t && t.originalException && xS(t.originalException)) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.log(LP));
let r = t && t.event_id;
return this._process(this._captureEvent(e, t, n).then((e => {
r = e
}))), r
}
captureSession(e) {
this._isEnabled() ? "string" !== typeof e.release ? ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn("Discarded session because of missing or non-string release") : (this.sendSession(e), DS(e, {
init: !1
})) : ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn("SDK not enabled, will not capture session.")
}
getDsn() {
return this._dsn
}
getOptions() {
return this._options
}
getTransport() {
return this._transport
}
flush(e) {
var t = this._transport;
return t ? this._isClientDoneProcessing(e).then((n => t.flush(e).then((e => n && e)))) : AS(!0)
}
close(e) {
return this.flush(e).then((e => (this.getOptions().enabled = !1, e)))
}
setupIntegrations() {
this._isEnabled() && !this._integrationsInitialized && (this._integrations = function(e) {
var t = {};
return e.forEach((e => {
t[e.name] = e, -1 === mP.indexOf(e.name) && (e.setupOnce(jS, VS), mP.push(e.name), ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.log(`Integration installed: ${e.name}`))
})), t
}(this._options.integrations), this._integrationsInitialized = !0)
}
getIntegrationById(e) {
return this._integrations[e]
}
getIntegration(e) {
try {
return this._integrations[e.id] || null
} catch (t) {
return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn(`Cannot retrieve integration ${e.id} from the current Client`), null
}
}
sendEvent(e, t = {}) {
if (this._dsn) {
let r = NP(e, this._dsn, this._options._metadata, this._options.tunnel);
for (var n of t.attachments || []) r = kP(r, PP(n, this._options.transportOptions && this._options.transportOptions.textEncoder));
this._sendEnvelope(r)
}
}
sendSession(e) {
if (this._dsn) {
var t = function(e, t, n, r) {
var i = DP(n);
return wP({
sent_at: (new Date).toISOString(),
...i && {
sdk: i
},
...!!r && {
dsn: yP(t)
}
}, ["aggregates" in e ? [{
type: "sessions"
}, e] : [{
type: "session"
}, e]])
}(e, this._dsn, this._options._metadata, this._options.tunnel);
this._sendEnvelope(t)
}
}
recordDroppedEvent(e, t) {
if (this._options.sendClientReports) {
var n = `${e}:${t}`;
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.log(`Adding outcome: "${n}"`), this._outcomes[n] = this._outcomes[n] + 1 || 1
}
}
_updateSessionFromEvent(e, t) {
let n = !1,
r = !1;
var i = t.exception && t.exception.values;
if (i)
for (var a of (r = !0, i)) {
var o = a.mechanism;
if (o && !1 === o.handled) {
n = !0;
break
}
}
var s = "ok" === e.status;
(s && 0 === e.errors || s && n) && (DS(e, {
...n && {
status: "crashed"
},
errors: e.errors || Number(r || n)
}), this.captureSession(e))
}
_isClientDoneProcessing(e) {
return new RS((t => {
let n = 0;
var 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._dsn
}
_prepareEvent(e, t, n) {
const {
normalizeDepth: r = 3,
normalizeMaxBreadth: i = 1e3
} = this.getOptions();
var a = {
...e,
event_id: e.event_id || t.event_id || gS(),
timestamp: e.timestamp || (0, PS.yW)()
};
this._applyClientOptions(a), this._applyIntegrationsMetadata(a);
let o = n;
t.captureContext && (o = NS.clone(o).update(t.captureContext));
let s = AS(a);
if (o) {
var l = [...t.attachments || [], ...o.getAttachments()];
l.length && (t.attachments = l), s = o.applyToEvent(a, t)
}
return s.then((e => "number" === typeof r && r > 0 ? this._normalizeEvent(e, r, i) : e))
}
_normalizeEvent(e, t, n) {
if (!e) return null;
var r = {
...e,
...e.breadcrumbs && {
breadcrumbs: e.breadcrumbs.map((e => ({
...e,
...e.data && {
data: hO(e.data, t, n)
}
})))
},
...e.user && {
user: hO(e.user, t, n)
},
...e.contexts && {
contexts: hO(e.contexts, t, n)
},
...e.extra && {
extra: hO(e.extra, t, n)
}
};
return e.contexts && e.contexts.trace && r.contexts && (r.contexts.trace = e.contexts.trace, e.contexts.trace.data && (r.contexts.trace.data = hO(e.contexts.trace.data, t, n))), e.spans && (r.spans = e.spans.map((e => (e.data && (e.data = hO(e.data, t, n)), e)))), r
}
_applyClientOptions(e) {
var t = this.getOptions();
const {
environment: n,
release: r,
dist: i,
maxValueLength: a = 250
} = t;
"environment" in e || (e.environment = "environment" in t ? n : "production"), void 0 === e.release && void 0 !== r && (e.release = r), void 0 === e.dist && void 0 !== i && (e.dist = i), e.message && (e.message = QE(e.message, a));
var o = e.exception && e.exception.values && e.exception.values[0];
o && o.value && (o.value = QE(o.value, a));
var s = e.request;
s && s.url && (s.url = QE(s.url, a))
}
_applyIntegrationsMetadata(e) {
var t = Object.keys(this._integrations);
t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t])
}
_captureEvent(e, t = {}, n) {
return this._processEvent(e, t, n).then((e => e.event_id), (e => {
if ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) {
var t = e;
"log" === t.logLevel ? mS.log(t.message) : mS.warn(t)
}
}))
}
_processEvent(e, t, n) {
const {
beforeSend: r,
sampleRate: i
} = this.getOptions();
if (!this._isEnabled()) return CS(new vP("SDK not enabled, will not capture event.", "log"));
var a = "transaction" === e.type;
return !a && "number" === typeof i && Math.random() > i ? (this.recordDroppedEvent("sample_rate", "error"), CS(new vP(`Discarding event because it's not included in the random sample (sampling rate = ${i})`, "log"))) : this._prepareEvent(e, t, n).then((n => {
if (null === n) throw this.recordDroppedEvent("event_processor", e.type || "error"), new vP("An event processor returned null, will not send event.", "log");
return t.data && !0 === t.data.__sentry__ || a || !r ? n : function(e) {
var t = "`beforeSend` method has to return `null` or a valid event.";
if (WE(e)) return e.then((e => {
if (!$E(e) && null !== e) throw new vP(t);
return e
}), (e => {
throw new vP(`beforeSend rejected with ${e}`)
}));
if (!$E(e) && null !== e) throw new vP(t);
return e
}(r(n, t))
})).then((r => {
if (null === r) throw this.recordDroppedEvent("before_send", e.type || "error"), new vP("`beforeSend` returned `null`, will not send event.", "log");
var i = n && n.getSession();
!a && i && this._updateSessionFromEvent(i, r);
var o = r.transaction_info;
if (a && o && r.transaction !== e.transaction) {
var s = "custom";
r.transaction_info = {
...o,
source: s,
changes: [...o.changes, {
source: s,
timestamp: r.timestamp,
propagations: o.propagations
}]
}
}
return this.sendEvent(r, t), r
})).then(null, (e => {
if (e instanceof vP) throw e;
throw this.captureException(e, {
data: {
__sentry__: !0
},
originalException: e
}), new vP(`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 += 1, e.then((e => (this._numProcessing -= 1, e)), (e => (this._numProcessing -= 1, e)))
}
_sendEnvelope(e) {
this._transport && this._dsn ? this._transport.send(e).then(null, (e => {
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.error("Error while sending event:", e)
})) : ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.error("Transport disabled")
}
_clearOutcomes() {
var e = this._outcomes;
return this._outcomes = {}, Object.keys(e).map((t => {
const [n, r] = t.split(":");
return {
reason: n,
category: r,
quantity: e[t]
}
}))
}
}
var MP = "7.15.0";
var zP = (0, jE.R)();
class FP extends jP {
constructor(e) {
e._metadata = e._metadata || {}, e._metadata.sdk = e._metadata.sdk || {
name: "sentry.javascript.browser",
packages: [{
name: "npm:@sentry/browser",
version: MP
}],
version: MP
}, super(e), e.sendClientReports && zP.document && zP.document.addEventListener("visibilitychange", (() => {
"hidden" === zP.document.visibilityState && this._flushOutcomes()
}))
}
eventFromException(e, t) {
return function(e, t, n, r) {
var i = xO(e, t, n && n.syntheticException || void 0, r);
return bS(i), i.level = "error", n && n.event_id && (i.event_id = n.event_id), AS(i)
}(this._options.stackParser, e, t, this._options.attachStacktrace)
}
eventFromMessage(e, t = "info", n) {
return function(e, t, n = "info", r, i) {
var a = wO(e, t, r && r.syntheticException || void 0, i);
return a.level = n, r && r.event_id && (a.event_id = r.event_id), AS(a)
}(this._options.stackParser, e, t, n, this._options.attachStacktrace)
}
sendEvent(e, t) {
var n = this.getIntegrationById($O);
n && n.options && n.options.sentry && VS().addBreadcrumb({
category: "sentry." + ("transaction" === e.type ? "transaction" : "event"),
event_id: e.event_id,
level: e.level,
message: _S(e)
}, {
event: e
}), super.sendEvent(e, t)
}
_prepareEvent(e, t, n) {
return e.platform = e.platform || "javascript", super._prepareEvent(e, t, n)
}
_flushOutcomes() {
var e = this._clearOutcomes();
if (0 !== e.length)
if (this._dsn) {
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.log("Sending outcomes:", e);
var t, n, r, i = TP(this._dsn, this._options),
a = (t = e, wP((n = this._options.tunnel && yP(this._dsn)) ? {
dsn: n
} : {}, [
[{
type: "client_report"
}, {
timestamp: r || (0, PS.yW)(),
discarded_events: t
}]
]));
try {
var o = (0, jE.R)();
if ("[object Navigator]" === Object.prototype.toString.call(o && o.navigator) && "function" === typeof o.navigator.sendBeacon && !this._options.transportOptions) o.navigator.sendBeacon.bind(o.navigator)(i, OP(a));
else this._sendEnvelope(a)
} catch (s) {
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.error(s)
}
} else("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.log("No dsn provided, will not send outcomes");
else("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.log("No outcomes to send")
}
}
var UP = "?";
function VP(e, t, n, r) {
var i = {
filename: e,
function: t,
in_app: !0
};
return void 0 !== n && (i.lineno = n), void 0 !== r && (i.colno = r), i
}
var GP = /^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,
BP = /\((\S*)(?::(\d+))(?::(\d+))\)/,
$P = [30, e => {
var t = GP.exec(e);
if (t) {
if (t[2] && 0 === t[2].indexOf("eval")) {
var n = BP.exec(t[2]);
n && (t[2] = n[1], t[3] = n[2], t[4] = n[3])
}
const [e, r] = KP(t[1] || UP, t[2]);
return VP(r, e, t[3] ? +t[3] : void 0, t[4] ? +t[4] : void 0)
}
}],
qP = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,
WP = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i,
HP = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,
YP = WS(...[$P, [50, e => {
var t = qP.exec(e);
if (t) {
if (t[3] && t[3].indexOf(" > eval") > -1) {
var n = WP.exec(t[3]);
n && (t[1] = t[1] || "eval", t[3] = n[1], t[4] = n[2], t[5] = "")
}
let e = t[3],
r = t[1] || UP;
return [r, e] = KP(r, e), VP(e, r, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0)
}
}],
[40, e => {
var t = HP.exec(e);
return t ? VP(t[2], t[1] || UP, +t[3], t[4] ? +t[4] : void 0) : void 0
}]
]),
KP = (e, t) => {
var n = -1 !== e.indexOf("safari-extension"),
r = -1 !== e.indexOf("safari-web-extension");
return n || r ? [-1 !== e.indexOf("@") ? e.split("@")[0] : UP, n ? `safari-extension:${t}` : `safari-web-extension:${t}`] : [e, t]
};
function QP(e) {
var t = [];
function n(e) {
return t.splice(t.indexOf(e), 1)[0]
}
return {
$: t,
add: function(r) {
if (!(void 0 === e || t.length < e)) return CS(new vP("Not adding Promise because buffer limit was reached."));
var 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 RS(((n, r) => {
let i = t.length;
if (!i) return n(!0);
var a = setTimeout((() => {
e && e > 0 && n(!1)
}), e);
t.forEach((e => {
AS(e).then((() => {
--i || (clearTimeout(a), n(!0))
}), r)
}))
}))
}
}
}
function ZP(e, {
statusCode: t,
headers: n
}, r = Date.now()) {
var i = {
...e
},
a = n && n["x-sentry-rate-limits"],
o = n && n["retry-after"];
if (a)
for (var s of a.trim().split(",")) {
const [e, t] = s.split(":", 2);
var l = parseInt(e, 10),
c = 1e3 * (isNaN(l) ? 60 : l);
if (t)
for (var u of t.split(";")) i[u] = r + c;
else i.all = r + c
} else o ? i.all = r + function(e, t = Date.now()) {
var n = parseInt(`${e}`, 10);
if (!isNaN(n)) return 1e3 * n;
var r = Date.parse(`${e}`);
return isNaN(r) ? 6e4 : r - t
}(o, r) : 429 === t && (i.all = r + 6e4);
return i
}
function XP(e, t, n = QP(e.bufferSize || 30)) {
let r = {};
return {
send: function(i) {
var a = [];
if (EP(i, ((t, n) => {
var i = AP(n);
! function(e, t, n = Date.now()) {
return function(e, t) {
return e[t] || e.all || 0
}(e, t) > n
}(r, i) ? a.push(t): e.recordDroppedEvent("ratelimit_backoff", i)
})), 0 === a.length) return AS();
var o = wP(i[0], a),
s = t => {
EP(o, ((n, r) => {
e.recordDroppedEvent(t, AP(r))
}))
};
return n.add((() => t({
body: OP(o, e.textEncoder)
}).then((e => {
void 0 !== e.statusCode && (e.statusCode < 200 || e.statusCode >= 300) && ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn(`Sentry responded with status code ${e.statusCode} to sent event.`), r = ZP(r, e)
}), (e => {
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.error("Failed while sending event:", e), s("network_error")
})))).then((e => e), (e => {
if (e instanceof vP) return ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.error("Skipped sending event because buffer is full."), s("queue_overflow"), AS();
throw e
}))
},
flush: e => n.drain(e)
}
}
var JP = (0, jE.R)();
let eI;
function tI(e, t = function() {
if (eI) return eI;
if (XS(JP.fetch)) return eI = JP.fetch.bind(JP);
var e = JP.document;
let t = JP.fetch;
if (e && "function" === typeof e.createElement) try {
var n = e.createElement("iframe");
n.hidden = !0, e.head.appendChild(n);
var r = n.contentWindow;
r && r.fetch && (t = r.fetch), e.head.removeChild(n)
} catch (i) {
("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", i)
}
return eI = t.bind(JP)
}()) {
return XP(e, (function(n) {
var r = {
body: n.body,
method: "POST",
referrerPolicy: "origin",
headers: e.headers,
keepalive: n.body.length <= 65536,
...e.fetchOptions
};
return t(e.url, r).then((e => ({
statusCode: e.status,
headers: {
"x-sentry-rate-limits": e.headers.get("X-Sentry-Rate-Limits"),
"retry-after": e.headers.get("Retry-After")
}
})))
}))
}
function nI(e) {
return XP(e, (function(t) {
return new RS(((n, r) => {
var i = new XMLHttpRequest;
for (var a in i.onerror = r, i.onreadystatechange = () => {
4 === i.readyState && n({
statusCode: i.status,
headers: {
"x-sentry-rate-limits": i.getResponseHeader("X-Sentry-Rate-Limits"),
"retry-after": i.getResponseHeader("Retry-After")
}
})
}, i.open("POST", e.url), e.headers) Object.prototype.hasOwnProperty.call(e.headers, a) && i.setRequestHeader(a, e.headers[a]);
i.send(t.body)
}))
}))
}
var rI = [new ES, new uS, new jO, new qO, new AO, new QO, new eP, new JO];
function iI(e = {}) {
if (void 0 === e.defaultIntegrations && (e.defaultIntegrations = rI), void 0 === e.release) {
var t = (0, jE.R)();
t.SENTRY_RELEASE && t.SENTRY_RELEASE.id && (e.release = t.SENTRY_RELEASE.id)
}
void 0 === e.autoSessionTracking && (e.autoSessionTracking = !0), void 0 === e.sendClientReports && (e.sendClientReports = !0);
var n, r = {
...e,
stackParser: (n = e.stackParser || YP, Array.isArray(n) ? WS(...n) : n),
integrations: gP(e),
transport: e.transport || (ZS() ? tI : nI)
};
! function(e, t) {
!0 === t.debug && ("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__ ? mS.enable() : console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));
var n = VS(),
r = n.getScope();
r && r.update(t.initialScope);
var i = new e(t);
n.bindClient(i)
}(FP, r), e.autoSessionTracking && function() {
var e = (0, jE.R)(),
t = e.document;
if ("undefined" === typeof t) return void(("undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__) && mS.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));
var n = VS();
if (!n.captureSession) return;
aI(n), rO("history", (({
from: e,
to: t
}) => {
void 0 !== e && e !== t && aI(VS())
}))
}()
}
function aI(e) {
e.startSession({
ignoreDuration: !0
}), e.captureSession()
}
const [, oI] = $P, [, sI] = [90, QS(lI)];
var lI;
const cI = (e, t = 0) => {
const n = [];
for (const r of e.split("\n").slice(t)) {
const e = oI(r),
t = sI(r);
e && !1 !== (null === t || void 0 === t ? void 0 : t.in_app) ? n.push(e) : t && n.push(sS(t))
}
return HS(n)
},
uI = [...rI, new hP, new fP];
Object.assign(Object.assign({}, r), sP);
const dI = e => {
e && e instanceof Function && n.e(496).then(n.bind(n, 1496)).then((({
getCLS: t,
getFID: n,
getFCP: r,
getLCP: i,
getTTFB: a
}) => {
t(e), n(e), r(e), i(e), a(e)
}))
};
! function(e = {}, t = iI) {
! function(e) {
const t = "undefined" !== typeof window ? "renderer" : "main";
if (t !== e) throw new Error(`This code is intended to run in the Electron ${e} process but is currently running in the ${t} process.\nThis can occur if a bundler picks the wrong entry point.\n\nYou can work around this by using a relative import:\nimport * as Sentry from '@sentry/electron/${t}';`)
}("renderer"), (null === window || void 0 === window ? void 0 : window.__SENTRY__RENDERER_INIT__) ? mS.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 = uI), void 0 === e.stackParser && (e.stackParser = cI), void 0 === e.dsn && (e.dsn = "https://12345@dummy.dsn/12345"), delete e.initialScope, t(e))
}({
dsn: z_.configuration.sentry.dsn,
environment: "production",
enabled: !0
}, (e => {
return (t = e)._metadata = t._metadata || {}, t._metadata.sdk = t._metadata.sdk || {
name: "sentry.javascript.react",
packages: [{
name: "npm:@sentry/react",
version: Et
}],
version: Et
}, void Ti(t);
var t
}));
const pI = Pe.lazy((() => n.e(803).then(n.bind(n, 803)).then((e => ({
default: e.ReactQueryDevtools
}))))),
hI = () => {
const [e, t] = Pe.useState(!1), {
reduceMotion: n
} = Pk((e => e.settings.appSettings.accessibility));
return (0, Pe.useEffect)((() => {
window.toggleDevtools = () => t((e => !e))
}), []), (() => {
const e = Pk.getState().application,
t = Pk.getState().library,
n = Pk.getState().soundSystem,
r = Pk.getState().authentication,
i = Pk.getState().settings,
a = Pk.getState().installer,
o = Pk.getState().status,
s = Pk.getState().user;
e.isAppInitialized || Promise.all([e.actions.initializeApplication(), t.actions.initializeLibrary(), n.actions.initializeSoundContext(), r.actions.initializeAuthentication(), i.actions.initializeApplicationSettings(), a.actions.initializeInstaller(), o.actions.initializeStatus(), s.actions.initializeUser()])
})(), (0, zb.jsx)(Pe.StrictMode, {
children: (0, zb.jsx)(ji, {
fallback: (0, zb.jsx)("p", {
children: "An error has occurred"
}),
children: (0, zb.jsx)(ol, {
reduceMotion: null !== n && void 0 !== n ? n : {
syncWithSystem: !1,
backgroundVideoDisabled: !1,
unessentialAnimationsDisabled: !1,
wipeAnimationsDisabled: !1
},
children: (0, zb.jsx)(Ub, {
children: (0, zb.jsxs)(Ib.aH, {
client: Tx,
children: [(0, zb.jsx)(nl, {
value: Gk,
children: (0, zb.jsx)(Aw.Provider, {
children: (0, zb.jsx)(DE, {})
})
}), (0, zb.jsx)(LE, {
initialIsOpen: !0
}), e && (0, zb.jsx)(Pe.Suspense, {
fallback: null,
children: (0, zb.jsx)(pI, {})
})]
})
})
})
}, ck())
})
};
NE.createRoot(document.getElementById("root")).render((0, zb.jsx)(hI, {})), dI()
})()
})();
//# sourceMappingURL=main.ee192c58.js.map