/*! For license information please see main.faf78670.js.LICENSE.txt */
!(function () {
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('../../sw.js')
.then(function(registration) {
console.log('Service Worker registered with scope:', registration.scope);
})
.catch(function(err) {
console.log('Service Worker registration failed:', err);
});
});
};
var e = {
470: function (e, t) {
"use strict";
(t.byteLength = function (e) {
var t = l(e),
n = t[0],
r = t[1];
return (3 * (n + r)) / 4 - r;
}),
(t.toByteArray = function (e) {
var t,
n,
o = l(e),
a = o[0],
s = o[1],
u = new i(
(function (e, t, n) {
return (3 * (t + n)) / 4 - n;
})(0, a, s)
),
c = 0,
d = s > 0 ? a - 4 : a;
for (n = 0; n < d; n += 4)
(t =
(r[e.charCodeAt(n)] << 18) |
(r[e.charCodeAt(n + 1)] << 12) |
(r[e.charCodeAt(n + 2)] << 6) |
r[e.charCodeAt(n + 3)]),
(u[c++] = (t >> 16) & 255),
(u[c++] = (t >> 8) & 255),
(u[c++] = 255 & t);
2 === s &&
((t = (r[e.charCodeAt(n)] << 2) | (r[e.charCodeAt(n + 1)] >> 4)),
(u[c++] = 255 & t));
1 === s &&
((t =
(r[e.charCodeAt(n)] << 10) |
(r[e.charCodeAt(n + 1)] << 4) |
(r[e.charCodeAt(n + 2)] >> 2)),
(u[c++] = (t >> 8) & 255),
(u[c++] = 255 & t));
return u;
}),
(t.fromByteArray = function (e) {
for (
var t,
r = e.length,
i = r % 3,
o = [],
a = 16383,
s = 0,
l = r - i;
s < l;
s += a
)
o.push(u(e, s, s + a > l ? l : s + a));
1 === i
? ((t = e[r - 1]), o.push(n[t >> 2] + n[(t << 4) & 63] + "=="))
: 2 === i &&
((t = (e[r - 2] << 8) + e[r - 1]),
o.push(n[t >> 10] + n[(t >> 4) & 63] + n[(t << 2) & 63] + "="));
return o.join("");
});
for (
var n = [],
r = [],
i = "undefined" !== typeof Uint8Array ? Uint8Array : Array,
o =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
a = 0,
s = o.length;
a < s;
++a
)
(n[a] = o[a]), (r[o.charCodeAt(a)] = a);
function l(e) {
var t = e.length;
if (t % 4 > 0)
throw new Error("Invalid string. Length must be a multiple of 4");
var n = e.indexOf("=");
return -1 === n && (n = t), [n, n === t ? 0 : 4 - (n % 4)];
}
function u(e, t, r) {
for (var i, o, a = [], s = t; s < r; s += 3)
(i =
((e[s] << 16) & 16711680) +
((e[s + 1] << 8) & 65280) +
(255 & e[s + 2])),
a.push(
n[((o = i) >> 18) & 63] +
n[(o >> 12) & 63] +
n[(o >> 6) & 63] +
n[63 & o]
);
return a.join("");
}
(r["-".charCodeAt(0)] = 62), (r["_".charCodeAt(0)] = 63);
},
123: function (e, t) {
var n;
!(function () {
"use strict";
var r = {}.hasOwnProperty;
function i() {
for (var e = [], t = 0; t < arguments.length; t++) {
var n = arguments[t];
if (n) {
var o = typeof n;
if ("string" === o || "number" === o) e.push(n);
else if (Array.isArray(n)) {
if (n.length) {
var a = i.apply(null, n);
a && e.push(a);
}
} else if ("object" === o) {
if (
n.toString !== Object.prototype.toString &&
!n.toString.toString().includes("[native code]")
) {
e.push(n.toString());
continue;
}
for (var s in n) r.call(n, s) && n[s] && e.push(s);
}
}
}
return e.join(" ");
}
e.exports
? ((i.default = i), (e.exports = i))
: void 0 ===
(n = function () {
return i;
}.apply(t, [])) || (e.exports = n);
})();
},
161: function (e, t) {
"use strict";
var n;
Object.defineProperty(t, "__esModule", { value: !0 }),
(t.Doctype =
t.CDATA =
t.Tag =
t.Style =
t.Script =
t.Comment =
t.Directive =
t.Text =
t.Root =
t.isTag =
t.ElementType =
void 0),
(function (e) {
(e.Root = "root"),
(e.Text = "text"),
(e.Directive = "directive"),
(e.Comment = "comment"),
(e.Script = "script"),
(e.Style = "style"),
(e.Tag = "tag"),
(e.CDATA = "cdata"),
(e.Doctype = "doctype");
})((n = t.ElementType || (t.ElementType = {}))),
(t.isTag = function (e) {
return (
e.type === n.Tag || e.type === n.Script || e.type === n.Style
);
}),
(t.Root = n.Root),
(t.Text = n.Text),
(t.Directive = n.Directive),
(t.Comment = n.Comment),
(t.Script = n.Script),
(t.Style = n.Style),
(t.Tag = n.Tag),
(t.CDATA = n.CDATA),
(t.Doctype = n.Doctype);
},
203: 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 }),
(t.DomHandler = void 0);
var o = n(161),
a = n(704);
i(n(704), t);
var s = { withStartIndices: !1, withEndIndices: !1, xmlMode: !1 },
l = (function () {
function e(e, t, n) {
(this.dom = []),
(this.root = new a.Document(this.dom)),
(this.done = !1),
(this.tagStack = [this.root]),
(this.lastNode = null),
(this.parser = null),
"function" === typeof t && ((n = t), (t = s)),
"object" === typeof e && ((t = e), (e = void 0)),
(this.callback = null !== e && void 0 !== e ? e : null),
(this.options = null !== t && void 0 !== t ? t : s),
(this.elementCB = null !== n && void 0 !== n ? n : null);
}
return (
(e.prototype.onparserinit = function (e) {
this.parser = e;
}),
(e.prototype.onreset = function () {
(this.dom = []),
(this.root = new a.Document(this.dom)),
(this.done = !1),
(this.tagStack = [this.root]),
(this.lastNode = null),
(this.parser = null);
}),
(e.prototype.onend = function () {
this.done ||
((this.done = !0),
(this.parser = null),
this.handleCallback(null));
}),
(e.prototype.onerror = function (e) {
this.handleCallback(e);
}),
(e.prototype.onclosetag = function () {
this.lastNode = null;
var e = this.tagStack.pop();
this.options.withEndIndices &&
(e.endIndex = this.parser.endIndex),
this.elementCB && this.elementCB(e);
}),
(e.prototype.onopentag = function (e, t) {
var n = this.options.xmlMode ? o.ElementType.Tag : void 0,
r = new a.Element(e, t, void 0, n);
this.addNode(r), this.tagStack.push(r);
}),
(e.prototype.ontext = function (e) {
var t = this.lastNode;
if (t && t.type === o.ElementType.Text)
(t.data += e),
this.options.withEndIndices &&
(t.endIndex = this.parser.endIndex);
else {
var n = new a.Text(e);
this.addNode(n), (this.lastNode = n);
}
}),
(e.prototype.oncomment = function (e) {
if (
this.lastNode &&
this.lastNode.type === o.ElementType.Comment
)
this.lastNode.data += e;
else {
var t = new a.Comment(e);
this.addNode(t), (this.lastNode = t);
}
}),
(e.prototype.oncommentend = function () {
this.lastNode = null;
}),
(e.prototype.oncdatastart = function () {
var e = new a.Text(""),
t = new a.CDATA([e]);
this.addNode(t), (e.parent = t), (this.lastNode = e);
}),
(e.prototype.oncdataend = function () {
this.lastNode = null;
}),
(e.prototype.onprocessinginstruction = function (e, t) {
var n = new a.ProcessingInstruction(e, t);
this.addNode(n);
}),
(e.prototype.handleCallback = function (e) {
if ("function" === typeof this.callback)
this.callback(e, this.dom);
else if (e) throw e;
}),
(e.prototype.addNode = function (e) {
var t = this.tagStack[this.tagStack.length - 1],
n = t.children[t.children.length - 1];
this.options.withStartIndices &&
(e.startIndex = this.parser.startIndex),
this.options.withEndIndices &&
(e.endIndex = this.parser.endIndex),
t.children.push(e),
n && ((e.prev = n), (n.next = e)),
(e.parent = t),
(this.lastNode = null);
}),
e
);
})();
(t.DomHandler = l), (t.default = l);
},
704: function (e, t, n) {
"use strict";
var r =
(this && this.__extends) ||
(function () {
var e = function (t, n) {
return (
(e =
Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array &&
function (e, t) {
e.__proto__ = t;
}) ||
function (e, t) {
for (var n in t)
Object.prototype.hasOwnProperty.call(t, n) &&
(e[n] = t[n]);
}),
e(t, n)
);
};
return function (t, n) {
if ("function" !== typeof n && null !== n)
throw new TypeError(
"Class extends value " +
String(n) +
" is not a constructor or null"
);
function r() {
this.constructor = t;
}
e(t, n),
(t.prototype =
null === n
? Object.create(n)
: ((r.prototype = n.prototype), new r()));
};
})(),
i =
(this && this.__assign) ||
function () {
return (
(i =
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;
}),
i.apply(this, arguments)
);
};
Object.defineProperty(t, "__esModule", { value: !0 }),
(t.cloneNode =
t.hasChildren =
t.isDocument =
t.isDirective =
t.isComment =
t.isText =
t.isCDATA =
t.isTag =
t.Element =
t.Document =
t.CDATA =
t.NodeWithChildren =
t.ProcessingInstruction =
t.Comment =
t.Text =
t.DataNode =
t.Node =
void 0);
var o = n(161),
a = (function () {
function e() {
(this.parent = null),
(this.prev = null),
(this.next = null),
(this.startIndex = null),
(this.endIndex = null);
}
return (
Object.defineProperty(e.prototype, "parentNode", {
get: function () {
return this.parent;
},
set: function (e) {
this.parent = e;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(e.prototype, "previousSibling", {
get: function () {
return this.prev;
},
set: function (e) {
this.prev = e;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(e.prototype, "nextSibling", {
get: function () {
return this.next;
},
set: function (e) {
this.next = e;
},
enumerable: !1,
configurable: !0,
}),
(e.prototype.cloneNode = function (e) {
return void 0 === e && (e = !1), _(this, e);
}),
e
);
})();
t.Node = a;
var s = (function (e) {
function t(t) {
var n = e.call(this) || this;
return (n.data = t), n;
}
return (
r(t, e),
Object.defineProperty(t.prototype, "nodeValue", {
get: function () {
return this.data;
},
set: function (e) {
this.data = e;
},
enumerable: !1,
configurable: !0,
}),
t
);
})(a);
t.DataNode = s;
var l = (function (e) {
function t() {
var t = (null !== e && e.apply(this, arguments)) || this;
return (t.type = o.ElementType.Text), t;
}
return (
r(t, e),
Object.defineProperty(t.prototype, "nodeType", {
get: function () {
return 3;
},
enumerable: !1,
configurable: !0,
}),
t
);
})(s);
t.Text = l;
var u = (function (e) {
function t() {
var t = (null !== e && e.apply(this, arguments)) || this;
return (t.type = o.ElementType.Comment), t;
}
return (
r(t, e),
Object.defineProperty(t.prototype, "nodeType", {
get: function () {
return 8;
},
enumerable: !1,
configurable: !0,
}),
t
);
})(s);
t.Comment = u;
var c = (function (e) {
function t(t, n) {
var r = e.call(this, n) || this;
return (r.name = t), (r.type = o.ElementType.Directive), r;
}
return (
r(t, e),
Object.defineProperty(t.prototype, "nodeType", {
get: function () {
return 1;
},
enumerable: !1,
configurable: !0,
}),
t
);
})(s);
t.ProcessingInstruction = c;
var d = (function (e) {
function t(t) {
var n = e.call(this) || this;
return (n.children = t), n;
}
return (
r(t, e),
Object.defineProperty(t.prototype, "firstChild", {
get: function () {
var e;
return null !== (e = this.children[0]) && void 0 !== e
? e
: null;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(t.prototype, "lastChild", {
get: function () {
return this.children.length > 0
? this.children[this.children.length - 1]
: null;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(t.prototype, "childNodes", {
get: function () {
return this.children;
},
set: function (e) {
this.children = e;
},
enumerable: !1,
configurable: !0,
}),
t
);
})(a);
t.NodeWithChildren = d;
var f = (function (e) {
function t() {
var t = (null !== e && e.apply(this, arguments)) || this;
return (t.type = o.ElementType.CDATA), t;
}
return (
r(t, e),
Object.defineProperty(t.prototype, "nodeType", {
get: function () {
return 4;
},
enumerable: !1,
configurable: !0,
}),
t
);
})(d);
t.CDATA = f;
var h = (function (e) {
function t() {
var t = (null !== e && e.apply(this, arguments)) || this;
return (t.type = o.ElementType.Root), t;
}
return (
r(t, e),
Object.defineProperty(t.prototype, "nodeType", {
get: function () {
return 9;
},
enumerable: !1,
configurable: !0,
}),
t
);
})(d);
t.Document = h;
var p = (function (e) {
function t(t, n, r, i) {
void 0 === r && (r = []),
void 0 === i &&
(i =
"script" === t
? o.ElementType.Script
: "style" === t
? o.ElementType.Style
: o.ElementType.Tag);
var a = e.call(this, r) || this;
return (a.name = t), (a.attribs = n), (a.type = i), a;
}
return (
r(t, e),
Object.defineProperty(t.prototype, "nodeType", {
get: function () {
return 1;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(t.prototype, "tagName", {
get: function () {
return this.name;
},
set: function (e) {
this.name = e;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(t.prototype, "attributes", {
get: function () {
var e = this;
return Object.keys(this.attribs).map(function (t) {
var n, r;
return {
name: t,
value: e.attribs[t],
namespace:
null === (n = e["x-attribsNamespace"]) || void 0 === n
? void 0
: n[t],
prefix:
null === (r = e["x-attribsPrefix"]) || void 0 === r
? void 0
: r[t],
};
});
},
enumerable: !1,
configurable: !0,
}),
t
);
})(d);
function v(e) {
return (0, o.isTag)(e);
}
function m(e) {
return e.type === o.ElementType.CDATA;
}
function g(e) {
return e.type === o.ElementType.Text;
}
function y(e) {
return e.type === o.ElementType.Comment;
}
function b(e) {
return e.type === o.ElementType.Directive;
}
function w(e) {
return e.type === o.ElementType.Root;
}
function _(e, t) {
var n;
if ((void 0 === t && (t = !1), g(e))) n = new l(e.data);
else if (y(e)) n = new u(e.data);
else if (v(e)) {
var r = t ? x(e.children) : [],
o = new p(e.name, i({}, e.attribs), r);
r.forEach(function (e) {
return (e.parent = o);
}),
null != e.namespace && (o.namespace = e.namespace),
e["x-attribsNamespace"] &&
(o["x-attribsNamespace"] = i({}, e["x-attribsNamespace"])),
e["x-attribsPrefix"] &&
(o["x-attribsPrefix"] = i({}, e["x-attribsPrefix"])),
(n = o);
} else if (m(e)) {
r = t ? x(e.children) : [];
var a = new f(r);
r.forEach(function (e) {
return (e.parent = a);
}),
(n = a);
} else if (w(e)) {
r = t ? x(e.children) : [];
var s = new h(r);
r.forEach(function (e) {
return (e.parent = s);
}),
e["x-mode"] && (s["x-mode"] = e["x-mode"]),
(n = s);
} else {
if (!b(e)) throw new Error("Not implemented yet: ".concat(e.type));
var d = new c(e.name, e.data);
null != e["x-name"] &&
((d["x-name"] = e["x-name"]),
(d["x-publicId"] = e["x-publicId"]),
(d["x-systemId"] = e["x-systemId"])),
(n = d);
}
return (
(n.startIndex = e.startIndex),
(n.endIndex = e.endIndex),
null != e.sourceCodeLocation &&
(n.sourceCodeLocation = e.sourceCodeLocation),
n
);
}
function x(e) {
for (
var t = e.map(function (e) {
return _(e, !0);
}),
n = 1;
n < t.length;
n++
)
(t[n].prev = t[n - 1]), (t[n - 1].next = t[n]);
return t;
}
(t.Element = p),
(t.isTag = v),
(t.isCDATA = m),
(t.isText = g),
(t.isComment = y),
(t.isDirective = b),
(t.isDocument = w),
(t.hasChildren = function (e) {
return Object.prototype.hasOwnProperty.call(e, "children");
}),
(t.cloneNode = _);
},
299: function (e, t) {
t.CASE_SENSITIVE_TAG_NAMES = [
"animateMotion",
"animateTransform",
"clipPath",
"feBlend",
"feColorMatrix",
"feComponentTransfer",
"feComposite",
"feConvolveMatrix",
"feDiffuseLighting",
"feDisplacementMap",
"feDropShadow",
"feFlood",
"feFuncA",
"feFuncB",
"feFuncG",
"feFuncR",
"feGaussainBlur",
"feImage",
"feMerge",
"feMergeNode",
"feMorphology",
"feOffset",
"fePointLight",
"feSpecularLighting",
"feSpotLight",
"feTile",
"feTurbulence",
"foreignObject",
"linearGradient",
"radialGradient",
"textPath",
];
},
671: function (e) {
var t = "html",
n = "head",
r = "body",
i = /<([a-zA-Z]+[0-9]?)/,
o = /
/i,
a = //i,
s = function () {
throw new Error(
"This browser does not support `document.implementation.createHTMLDocument`"
);
},
l = function () {
throw new Error(
"This browser does not support `DOMParser.prototype.parseFromString`"
);
},
u = "object" === typeof window && window.DOMParser;
if ("function" === typeof u) {
var c = new u();
s = l = function (e, t) {
return (
t && (e = "<" + t + ">" + e + "" + t + ">"),
c.parseFromString(e, "text/html")
);
};
}
if ("object" === typeof document && document.implementation) {
var d = document.implementation.createHTMLDocument();
s = function (e, t) {
return t
? ((d.documentElement.querySelector(t).innerHTML = e), d)
: ((d.documentElement.innerHTML = e), d);
};
}
var f,
h =
"object" === typeof document
? document.createElement("template")
: {};
h.content &&
(f = function (e) {
return (h.innerHTML = e), h.content.childNodes;
}),
(e.exports = function (e) {
var u,
c,
d,
h,
p = e.match(i);
switch ((p && p[1] && (u = p[1].toLowerCase()), u)) {
case t:
return (
(c = l(e)),
o.test(e) ||
((d = c.querySelector(n)) && d.parentNode.removeChild(d)),
a.test(e) ||
((d = c.querySelector(r)) && d.parentNode.removeChild(d)),
c.querySelectorAll(t)
);
case n:
case r:
return (
(h = (c = s(e)).querySelectorAll(u)),
a.test(e) && o.test(e) ? h[0].parentNode.childNodes : h
);
default:
return f ? f(e) : (d = s(e, r).querySelector(r)).childNodes;
}
});
},
877: function (e, t, n) {
var r = n(671),
i = n(352).formatDOM,
o = /<(![a-zA-Z\s]+)>/;
e.exports = function (e) {
if ("string" !== typeof e)
throw new TypeError("First argument must be a string");
if ("" === e) return [];
var t,
n = e.match(o);
return n && n[1] && (t = n[1]), i(r(e), null, t);
};
},
352: function (e, t, n) {
for (
var r,
i = n(203),
o = n(299).CASE_SENSITIVE_TAG_NAMES,
a = i.Comment,
s = i.Element,
l = i.ProcessingInstruction,
u = i.Text,
c = {},
d = 0,
f = o.length;
d < f;
d++
)
(r = o[d]), (c[r.toLowerCase()] = r);
function h(e) {
for (var t, n = {}, r = 0, i = e.length; r < i; r++)
n[(t = e[r]).name] = t.value;
return n;
}
function p(e) {
var t = (function (e) {
return c[e];
})((e = e.toLowerCase()));
return t || e;
}
(t.formatAttributes = h),
(t.formatDOM = function e(t, n, r) {
n = n || null;
for (var i = [], o = 0, c = t.length; o < c; o++) {
var d,
f = t[o];
switch (f.nodeType) {
case 1:
(d = new s(p(f.nodeName), h(f.attributes))).children = e(
f.childNodes,
d
);
break;
case 3:
d = new u(f.nodeValue);
break;
case 8:
d = new a(f.nodeValue);
break;
default:
continue;
}
var v = i[o - 1] || null;
v && (v.next = d),
(d.parent = n),
(d.prev = v),
(d.next = null),
i.push(d);
}
return (
r &&
(((d = new l(
r.substring(0, r.indexOf(" ")).toLowerCase(),
r
)).next = i[0] || null),
(d.parent = n),
i.unshift(d),
i[1] && (i[1].prev = i[0])),
i
);
});
},
701: function (e, t, n) {
var r = n(474),
i = n(448),
o = n(877);
o = "function" === typeof o.default ? o.default : o;
var a = { lowerCaseAttributeNames: !1 };
function s(e, t) {
if ("string" !== typeof e)
throw new TypeError("First argument must be a string");
return "" === e ? [] : r(o(e, (t = t || {}).htmlparser2 || a), t);
}
(s.domToReact = r),
(s.htmlToDOM = o),
(s.attributesToProps = i),
(s.Element = n(203).Element),
(e.exports = s),
(e.exports.default = s);
},
448: function (e, t, n) {
var r = n(365),
i = n(479);
function o(e) {
return r.possibleStandardNames[e];
}
e.exports = function (e) {
var t,
n,
a,
s,
l,
u = {},
c = (e = e || {}).type && { reset: !0, submit: !0 }[e.type];
for (t in e)
if (((a = e[t]), r.isCustomAttribute(t))) u[t] = a;
else if ((s = o((n = t.toLowerCase()))))
switch (
((l = r.getPropertyInfo(s)),
("checked" !== s && "value" !== s) ||
c ||
(s = o("default" + n)),
(u[s] = a),
l && l.type)
) {
case r.BOOLEAN:
u[s] = !0;
break;
case r.OVERLOADED_BOOLEAN:
"" === a && (u[s] = !0);
}
else i.PRESERVE_CUSTOM_ATTRIBUTES && (u[t] = a);
return i.setStyleProp(e.style, u), u;
};
},
474: function (e, t, n) {
var r = n(313),
i = n(448),
o = n(479),
a = o.setStyleProp,
s = o.canTextBeChildOfNode;
function l(e) {
return (
o.PRESERVE_CUSTOM_ATTRIBUTES &&
"tag" === e.type &&
o.isCustomComponent(e.name, e.attribs)
);
}
e.exports = function e(t, n) {
for (
var o,
u,
c,
d,
f,
h = (n = n || {}).library || r,
p = h.cloneElement,
v = h.createElement,
m = h.isValidElement,
g = [],
y = "function" === typeof n.replace,
b = n.trim,
w = 0,
_ = t.length;
w < _;
w++
)
if (((o = t[w]), y && m((c = n.replace(o)))))
_ > 1 && (c = p(c, { key: c.key || w })), g.push(c);
else if ("text" !== o.type) {
switch (
((d = o.attribs),
l(o) ? a(d.style, d) : d && (d = i(d)),
(f = null),
o.type)
) {
case "script":
case "style":
o.children[0] &&
(d.dangerouslySetInnerHTML = {
__html: o.children[0].data,
});
break;
case "tag":
"textarea" === o.name && o.children[0]
? (d.defaultValue = o.children[0].data)
: o.children && o.children.length && (f = e(o.children, n));
break;
default:
continue;
}
_ > 1 && (d.key = w), g.push(v(o.name, d, f));
} else {
if ((u = !o.data.trim().length) && o.parent && !s(o.parent))
continue;
if (b && u) continue;
g.push(o.data);
}
return 1 === g.length ? g[0] : g;
};
},
479: function (e, t, n) {
var r = n(313),
i = n(206).default;
var o = { reactCompat: !0 };
var a = r.version.split(".")[0] >= 16,
s = new Set([
"tr",
"tbody",
"thead",
"tfoot",
"colgroup",
"table",
"head",
"html",
"frameset",
]);
e.exports = {
PRESERVE_CUSTOM_ATTRIBUTES: a,
invertObject: function (e, t) {
if (!e || "object" !== typeof e)
throw new TypeError("First argument must be an object");
var n,
r,
i = "function" === typeof t,
o = {},
a = {};
for (n in e)
(r = e[n]),
i && (o = t(n, r)) && 2 === o.length
? (a[o[0]] = o[1])
: "string" === typeof r && (a[r] = n);
return a;
},
isCustomComponent: function (e, t) {
if (-1 === e.indexOf("-")) return t && "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;
}
},
setStyleProp: function (e, t) {
if (null !== e && void 0 !== e)
try {
t.style = i(e, o);
} catch (n) {
t.style = {};
}
},
canTextBeChildOfNode: function (e) {
return !s.has(e.name);
},
elementsWithNoTextChildren: s,
};
},
949: function (e) {
var t = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,
n = /\n/g,
r = /^\s*/,
i = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,
o = /^:\s*/,
a = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,
s = /^[;\s]*/,
l = /^\s+|\s+$/g,
u = "";
function c(e) {
return e ? e.replace(l, u) : u;
}
e.exports = function (e, l) {
if ("string" !== typeof e)
throw new TypeError("First argument must be a string");
if (!e) return [];
l = l || {};
var d = 1,
f = 1;
function h(e) {
var t = e.match(n);
t && (d += t.length);
var r = e.lastIndexOf("\n");
f = ~r ? e.length - r : f + e.length;
}
function p() {
var e = { line: d, column: f };
return function (t) {
return (t.position = new v(e)), b(), t;
};
}
function v(e) {
(this.start = e),
(this.end = { line: d, column: f }),
(this.source = l.source);
}
v.prototype.content = e;
var m = [];
function g(t) {
var n = new Error(l.source + ":" + d + ":" + f + ": " + t);
if (
((n.reason = t),
(n.filename = l.source),
(n.line = d),
(n.column = f),
(n.source = e),
!l.silent)
)
throw n;
m.push(n);
}
function y(t) {
var n = t.exec(e);
if (n) {
var r = n[0];
return h(r), (e = e.slice(r.length)), n;
}
}
function b() {
y(r);
}
function w(e) {
var t;
for (e = e || []; (t = _());) !1 !== t && e.push(t);
return e;
}
function _() {
var t = p();
if ("/" == e.charAt(0) && "*" == e.charAt(1)) {
for (
var n = 2;
u != e.charAt(n) &&
("*" != e.charAt(n) || "/" != e.charAt(n + 1));
)
++n;
if (((n += 2), u === e.charAt(n - 1)))
return g("End of comment missing");
var r = e.slice(2, n - 2);
return (
(f += 2),
h(r),
(e = e.slice(n)),
(f += 2),
t({ type: "comment", comment: r })
);
}
}
function x() {
var e = p(),
n = y(i);
if (n) {
if ((_(), !y(o))) return g("property missing ':'");
var r = y(a),
l = e({
type: "declaration",
property: c(n[0].replace(t, u)),
value: r ? c(r[0].replace(t, u)) : u,
});
return y(s), l;
}
}
return (
b(),
(function () {
var e,
t = [];
for (w(t); (e = x());) !1 !== e && (t.push(e), w(t));
return t;
})()
);
};
},
738: function (e, t, n) {
e.exports = (function e(t, n, r) {
function i(a, s) {
if (!n[a]) {
if (!t[a]) {
if (o) return o(a, !0);
var l = new Error("Cannot find module '" + a + "'");
throw ((l.code = "MODULE_NOT_FOUND"), l);
}
var u = (n[a] = { exports: {} });
t[a][0].call(
u.exports,
function (e) {
var n = t[a][1][e];
return i(n || e);
},
u,
u.exports,
e,
t,
n,
r
);
}
return n[a].exports;
}
for (var o = void 0, a = 0; a < r.length; a++) i(r[a]);
return i;
})(
{
1: [
function (e, t, r) {
(function (e) {
"use strict";
var n,
r,
i = e.MutationObserver || e.WebKitMutationObserver;
if (i) {
var o = 0,
a = new i(c),
s = e.document.createTextNode("");
a.observe(s, { characterData: !0 }),
(n = function () {
s.data = o = ++o % 2;
});
} else if (
e.setImmediate ||
"undefined" === typeof e.MessageChannel
)
n =
"document" in e &&
"onreadystatechange" in e.document.createElement("script")
? function () {
var t = e.document.createElement("script");
(t.onreadystatechange = function () {
c(),
(t.onreadystatechange = null),
t.parentNode.removeChild(t),
(t = null);
}),
e.document.documentElement.appendChild(t);
}
: function () {
setTimeout(c, 0);
};
else {
var l = new e.MessageChannel();
(l.port1.onmessage = c),
(n = function () {
l.port2.postMessage(0);
});
}
var u = [];
function c() {
var e, t;
r = !0;
for (var n = u.length; n;) {
for (t = u, u = [], e = -1; ++e < n;) t[e]();
n = u.length;
}
r = !1;
}
function d(e) {
1 !== u.push(e) || r || n();
}
t.exports = d;
}).call(
this,
"undefined" !== typeof n.g
? n.g
: "undefined" !== typeof self
? self
: "undefined" !== typeof window
? window
: {}
);
},
{},
],
2: [
function (e, t, n) {
"use strict";
var r = e(1);
function i() { }
var o = {},
a = ["REJECTED"],
s = ["FULFILLED"],
l = ["PENDING"];
function u(e) {
if ("function" !== typeof e)
throw new TypeError("resolver must be a function");
(this.state = l),
(this.queue = []),
(this.outcome = void 0),
e !== i && h(this, e);
}
function c(e, t, n) {
(this.promise = e),
"function" === typeof t &&
((this.onFulfilled = t),
(this.callFulfilled = this.otherCallFulfilled)),
"function" === typeof n &&
((this.onRejected = n),
(this.callRejected = this.otherCallRejected));
}
function d(e, t, n) {
r(function () {
var r;
try {
r = t(n);
} catch (i) {
return o.reject(e, i);
}
r === e
? o.reject(
e,
new TypeError("Cannot resolve promise with itself")
)
: o.resolve(e, r);
});
}
function f(e) {
var t = e && e.then;
if (
e &&
("object" === typeof e || "function" === typeof e) &&
"function" === typeof t
)
return function () {
t.apply(e, arguments);
};
}
function h(e, t) {
var n = !1;
function r(t) {
n || ((n = !0), o.reject(e, t));
}
function i(t) {
n || ((n = !0), o.resolve(e, t));
}
function a() {
t(i, r);
}
var s = p(a);
"error" === s.status && r(s.value);
}
function p(e, t) {
var n = {};
try {
(n.value = e(t)), (n.status = "success");
} catch (r) {
(n.status = "error"), (n.value = r);
}
return n;
}
function v(e) {
return e instanceof this ? e : o.resolve(new this(i), e);
}
function m(e) {
var t = new this(i);
return o.reject(t, e);
}
function g(e) {
var t = this;
if ("[object Array]" !== Object.prototype.toString.call(e))
return this.reject(new TypeError("must be an array"));
var n = e.length,
r = !1;
if (!n) return this.resolve([]);
for (
var a = new Array(n), s = 0, l = -1, u = new this(i);
++l < n;
)
c(e[l], l);
return u;
function c(e, i) {
function l(e) {
(a[i] = e), ++s !== n || r || ((r = !0), o.resolve(u, a));
}
t.resolve(e).then(l, function (e) {
r || ((r = !0), o.reject(u, e));
});
}
}
function y(e) {
var t = this;
if ("[object Array]" !== Object.prototype.toString.call(e))
return this.reject(new TypeError("must be an array"));
var n = e.length,
r = !1;
if (!n) return this.resolve([]);
for (var a = -1, s = new this(i); ++a < n;) l(e[a]);
return s;
function l(e) {
t.resolve(e).then(
function (e) {
r || ((r = !0), o.resolve(s, e));
},
function (e) {
r || ((r = !0), o.reject(s, e));
}
);
}
}
(t.exports = u),
(u.prototype.catch = function (e) {
return this.then(null, e);
}),
(u.prototype.then = function (e, t) {
if (
("function" !== typeof e && this.state === s) ||
("function" !== typeof t && this.state === a)
)
return this;
var n = new this.constructor(i);
return (
this.state !== l
? d(n, this.state === s ? e : t, this.outcome)
: this.queue.push(new c(n, e, t)),
n
);
}),
(c.prototype.callFulfilled = function (e) {
o.resolve(this.promise, e);
}),
(c.prototype.otherCallFulfilled = function (e) {
d(this.promise, this.onFulfilled, e);
}),
(c.prototype.callRejected = function (e) {
o.reject(this.promise, e);
}),
(c.prototype.otherCallRejected = function (e) {
d(this.promise, this.onRejected, e);
}),
(o.resolve = function (e, t) {
var n = p(f, t);
if ("error" === n.status) return o.reject(e, n.value);
var r = n.value;
if (r) h(e, r);
else {
(e.state = s), (e.outcome = t);
for (var i = -1, a = e.queue.length; ++i < a;)
e.queue[i].callFulfilled(t);
}
return e;
}),
(o.reject = function (e, t) {
(e.state = a), (e.outcome = t);
for (var n = -1, r = e.queue.length; ++n < r;)
e.queue[n].callRejected(t);
return e;
}),
(u.resolve = v),
(u.reject = m),
(u.all = g),
(u.race = y);
},
{ 1: 1 },
],
3: [
function (e, t, r) {
(function (t) {
"use strict";
"function" !== typeof t.Promise && (t.Promise = e(2));
}).call(
this,
"undefined" !== typeof n.g
? n.g
: "undefined" !== typeof self
? self
: "undefined" !== typeof window
? window
: {}
);
},
{ 2: 2 },
],
4: [
function (e, t, n) {
"use strict";
var r =
"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;
};
function i(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function");
}
function o() {
try {
if ("undefined" !== typeof indexedDB) return indexedDB;
if ("undefined" !== typeof webkitIndexedDB)
return webkitIndexedDB;
if ("undefined" !== typeof mozIndexedDB)
return mozIndexedDB;
if ("undefined" !== typeof OIndexedDB) return OIndexedDB;
if ("undefined" !== typeof msIndexedDB) return msIndexedDB;
} catch (e) {
return;
}
}
var a = o();
function s() {
try {
if (!a || !a.open) return !1;
var e =
"undefined" !== typeof openDatabase &&
/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) &&
!/Chrome/.test(navigator.userAgent) &&
!/BlackBerry/.test(navigator.platform),
t =
"function" === typeof fetch &&
-1 !== fetch.toString().indexOf("[native code");
return (
(!e || t) &&
"undefined" !== typeof indexedDB &&
"undefined" !== typeof IDBKeyRange
);
} catch (n) {
return !1;
}
}
function l(e, t) {
(e = e || []), (t = t || {});
try {
return new Blob(e, t);
} catch (i) {
if ("TypeError" !== i.name) throw i;
for (
var n = new (
"undefined" !== typeof BlobBuilder
? BlobBuilder
: "undefined" !== typeof MSBlobBuilder
? MSBlobBuilder
: "undefined" !== typeof MozBlobBuilder
? MozBlobBuilder
: WebKitBlobBuilder
)(),
r = 0;
r < e.length;
r += 1
)
n.append(e[r]);
return n.getBlob(t.type);
}
}
"undefined" === typeof Promise && e(3);
var u = Promise;
function c(e, t) {
t &&
e.then(
function (e) {
t(null, e);
},
function (e) {
t(e);
}
);
}
function d(e, t, n) {
"function" === typeof t && e.then(t),
"function" === typeof n && e.catch(n);
}
function f(e) {
return (
"string" !== typeof e &&
(console.warn(
e + " used as a key, but it is not a string."
),
(e = String(e))),
e
);
}
function h() {
if (
arguments.length &&
"function" === typeof arguments[arguments.length - 1]
)
return arguments[arguments.length - 1];
}
var p = "local-forage-detect-blob-support",
v = void 0,
m = {},
g = Object.prototype.toString,
y = "readonly",
b = "readwrite";
function w(e) {
for (
var t = e.length,
n = new ArrayBuffer(t),
r = new Uint8Array(n),
i = 0;
i < t;
i++
)
r[i] = e.charCodeAt(i);
return n;
}
function _(e) {
return new u(function (t) {
var n = e.transaction(p, b),
r = l([""]);
n.objectStore(p).put(r, "key"),
(n.onabort = function (e) {
e.preventDefault(), e.stopPropagation(), t(!1);
}),
(n.oncomplete = function () {
var e = navigator.userAgent.match(/Chrome\/(\d+)/),
n = navigator.userAgent.match(/Edge\//);
t(n || !e || parseInt(e[1], 10) >= 43);
});
}).catch(function () {
return !1;
});
}
function x(e) {
return "boolean" === typeof v
? u.resolve(v)
: _(e).then(function (e) {
return (v = e);
});
}
function k(e) {
var t = m[e.name],
n = {};
(n.promise = new u(function (e, t) {
(n.resolve = e), (n.reject = t);
})),
t.deferredOperations.push(n),
t.dbReady
? (t.dbReady = t.dbReady.then(function () {
return n.promise;
}))
: (t.dbReady = n.promise);
}
function S(e) {
var t = m[e.name].deferredOperations.pop();
if (t) return t.resolve(), t.promise;
}
function E(e, t) {
var n = m[e.name].deferredOperations.pop();
if (n) return n.reject(t), n.promise;
}
function T(e, t) {
return new u(function (n, r) {
if (((m[e.name] = m[e.name] || M()), e.db)) {
if (!t) return n(e.db);
k(e), e.db.close();
}
var i = [e.name];
t && i.push(e.version);
var o = a.open.apply(a, i);
t &&
(o.onupgradeneeded = function (t) {
var n = o.result;
try {
n.createObjectStore(e.storeName),
t.oldVersion <= 1 && n.createObjectStore(p);
} catch (r) {
if ("ConstraintError" !== r.name) throw r;
console.warn(
'The database "' +
e.name +
'" has been upgraded from version ' +
t.oldVersion +
" to version " +
t.newVersion +
', but the storage "' +
e.storeName +
'" already exists.'
);
}
}),
(o.onerror = function (e) {
e.preventDefault(), r(o.error);
}),
(o.onsuccess = function () {
var t = o.result;
(t.onversionchange = function (e) {
e.target.close();
}),
n(t),
S(e);
});
});
}
function C(e) {
return T(e, !1);
}
function N(e) {
return T(e, !0);
}
function j(e, t) {
if (!e.db) return !0;
var n = !e.db.objectStoreNames.contains(e.storeName),
r = e.version < e.db.version,
i = e.version > e.db.version;
if (
(r &&
(e.version !== t &&
console.warn(
'The database "' +
e.name +
"\" can't be downgraded from version " +
e.db.version +
" to version " +
e.version +
"."
),
(e.version = e.db.version)),
i || n)
) {
if (n) {
var o = e.db.version + 1;
o > e.version && (e.version = o);
}
return !0;
}
return !1;
}
function O(e) {
return new u(function (t, n) {
var r = new FileReader();
(r.onerror = n),
(r.onloadend = function (n) {
var r = btoa(n.target.result || "");
t({
__local_forage_encoded_blob: !0,
data: r,
type: e.type,
});
}),
r.readAsBinaryString(e);
});
}
function A(e) {
return l([w(atob(e.data))], { type: e.type });
}
function P(e) {
return e && e.__local_forage_encoded_blob;
}
function L(e) {
var t = this,
n = t._initReady().then(function () {
var e = m[t._dbInfo.name];
if (e && e.dbReady) return e.dbReady;
});
return d(n, e, e), n;
}
function R(e) {
k(e);
for (
var t = m[e.name], n = t.forages, r = 0;
r < n.length;
r++
) {
var i = n[r];
i._dbInfo.db &&
(i._dbInfo.db.close(), (i._dbInfo.db = null));
}
return (
(e.db = null),
C(e)
.then(function (t) {
return (e.db = t), j(e) ? N(e) : t;
})
.then(function (r) {
e.db = t.db = r;
for (var i = 0; i < n.length; i++) n[i]._dbInfo.db = r;
})
.catch(function (t) {
throw (E(e, t), t);
})
);
}
function D(e, t, n, r) {
void 0 === r && (r = 1);
try {
var i = e.db.transaction(e.storeName, t);
n(null, i);
} catch (o) {
if (
r > 0 &&
(!e.db ||
"InvalidStateError" === o.name ||
"NotFoundError" === o.name)
)
return u
.resolve()
.then(function () {
if (
!e.db ||
("NotFoundError" === o.name &&
!e.db.objectStoreNames.contains(e.storeName) &&
e.version <= e.db.version)
)
return e.db && (e.version = e.db.version + 1), N(e);
})
.then(function () {
return R(e).then(function () {
D(e, t, n, r - 1);
});
})
.catch(n);
n(o);
}
}
function M() {
return {
forages: [],
db: null,
dbReady: null,
deferredOperations: [],
};
}
function I(e) {
var t = this,
n = { db: null };
if (e) for (var r in e) n[r] = e[r];
var i = m[n.name];
i || ((i = M()), (m[n.name] = i)),
i.forages.push(t),
t._initReady || ((t._initReady = t.ready), (t.ready = L));
var o = [];
function a() {
return u.resolve();
}
for (var s = 0; s < i.forages.length; s++) {
var l = i.forages[s];
l !== t && o.push(l._initReady().catch(a));
}
var c = i.forages.slice(0);
return u
.all(o)
.then(function () {
return (n.db = i.db), C(n);
})
.then(function (e) {
return (
(n.db = e), j(n, t._defaultConfig.version) ? N(n) : e
);
})
.then(function (e) {
(n.db = i.db = e), (t._dbInfo = n);
for (var r = 0; r < c.length; r++) {
var o = c[r];
o !== t &&
((o._dbInfo.db = n.db),
(o._dbInfo.version = n.version));
}
});
}
function z(e, t) {
var n = this;
e = f(e);
var r = new u(function (t, r) {
n.ready()
.then(function () {
D(n._dbInfo, y, function (i, o) {
if (i) return r(i);
try {
var a = o.objectStore(n._dbInfo.storeName).get(e);
(a.onsuccess = function () {
var e = a.result;
void 0 === e && (e = null),
P(e) && (e = A(e)),
t(e);
}),
(a.onerror = function () {
r(a.error);
});
} catch (s) {
r(s);
}
});
})
.catch(r);
});
return c(r, t), r;
}
function F(e, t) {
var n = this,
r = new u(function (t, r) {
n.ready()
.then(function () {
D(n._dbInfo, y, function (i, o) {
if (i) return r(i);
try {
var a = o
.objectStore(n._dbInfo.storeName)
.openCursor(),
s = 1;
(a.onsuccess = function () {
var n = a.result;
if (n) {
var r = n.value;
P(r) && (r = A(r));
var i = e(r, n.key, s++);
void 0 !== i ? t(i) : n.continue();
} else t();
}),
(a.onerror = function () {
r(a.error);
});
} catch (l) {
r(l);
}
});
})
.catch(r);
});
return c(r, t), r;
}
function U(e, t, n) {
var r = this;
e = f(e);
var i = new u(function (n, i) {
var o;
r.ready()
.then(function () {
return (
(o = r._dbInfo),
"[object Blob]" === g.call(t)
? x(o.db).then(function (e) {
return e ? t : O(t);
})
: t
);
})
.then(function (t) {
D(r._dbInfo, b, function (o, a) {
if (o) return i(o);
try {
var s = a.objectStore(r._dbInfo.storeName);
null === t && (t = void 0);
var l = s.put(t, e);
(a.oncomplete = function () {
void 0 === t && (t = null), n(t);
}),
(a.onabort = a.onerror =
function () {
var e = l.error
? l.error
: l.transaction.error;
i(e);
});
} catch (u) {
i(u);
}
});
})
.catch(i);
});
return c(i, n), i;
}
function B(e, t) {
var n = this;
e = f(e);
var r = new u(function (t, r) {
n.ready()
.then(function () {
D(n._dbInfo, b, function (i, o) {
if (i) return r(i);
try {
var a = o
.objectStore(n._dbInfo.storeName)
.delete(e);
(o.oncomplete = function () {
t();
}),
(o.onerror = function () {
r(a.error);
}),
(o.onabort = function () {
var e = a.error ? a.error : a.transaction.error;
r(e);
});
} catch (s) {
r(s);
}
});
})
.catch(r);
});
return c(r, t), r;
}
function G(e) {
var t = this,
n = new u(function (e, n) {
t.ready()
.then(function () {
D(t._dbInfo, b, function (r, i) {
if (r) return n(r);
try {
var o = i
.objectStore(t._dbInfo.storeName)
.clear();
(i.oncomplete = function () {
e();
}),
(i.onabort = i.onerror =
function () {
var e = o.error
? o.error
: o.transaction.error;
n(e);
});
} catch (a) {
n(a);
}
});
})
.catch(n);
});
return c(n, e), n;
}
function W(e) {
var t = this,
n = new u(function (e, n) {
t.ready()
.then(function () {
D(t._dbInfo, y, function (r, i) {
if (r) return n(r);
try {
var o = i
.objectStore(t._dbInfo.storeName)
.count();
(o.onsuccess = function () {
e(o.result);
}),
(o.onerror = function () {
n(o.error);
});
} catch (a) {
n(a);
}
});
})
.catch(n);
});
return c(n, e), n;
}
function H(e, t) {
var n = this,
r = new u(function (t, r) {
e < 0
? t(null)
: n
.ready()
.then(function () {
D(n._dbInfo, y, function (i, o) {
if (i) return r(i);
try {
var a = o.objectStore(n._dbInfo.storeName),
s = !1,
l = a.openKeyCursor();
(l.onsuccess = function () {
var n = l.result;
n
? 0 === e || s
? t(n.key)
: ((s = !0), n.advance(e))
: t(null);
}),
(l.onerror = function () {
r(l.error);
});
} catch (u) {
r(u);
}
});
})
.catch(r);
});
return c(r, t), r;
}
function V(e) {
var t = this,
n = new u(function (e, n) {
t.ready()
.then(function () {
D(t._dbInfo, y, function (r, i) {
if (r) return n(r);
try {
var o = i
.objectStore(t._dbInfo.storeName)
.openKeyCursor(),
a = [];
(o.onsuccess = function () {
var t = o.result;
t ? (a.push(t.key), t.continue()) : e(a);
}),
(o.onerror = function () {
n(o.error);
});
} catch (s) {
n(s);
}
});
})
.catch(n);
});
return c(n, e), n;
}
function q(e, t) {
t = h.apply(this, arguments);
var n = this.config();
(e = ("function" !== typeof e && e) || {}).name ||
((e.name = e.name || n.name),
(e.storeName = e.storeName || n.storeName));
var r,
i = this;
if (e.name) {
var o =
e.name === n.name && i._dbInfo.db
? u.resolve(i._dbInfo.db)
: C(e).then(function (t) {
var n = m[e.name],
r = n.forages;
n.db = t;
for (var i = 0; i < r.length; i++)
r[i]._dbInfo.db = t;
return t;
});
r = e.storeName
? o.then(function (t) {
if (t.objectStoreNames.contains(e.storeName)) {
var n = t.version + 1;
k(e);
var r = m[e.name],
i = r.forages;
t.close();
for (var o = 0; o < i.length; o++) {
var s = i[o];
(s._dbInfo.db = null), (s._dbInfo.version = n);
}
var l = new u(function (t, r) {
var i = a.open(e.name, n);
(i.onerror = function (e) {
i.result.close(), r(e);
}),
(i.onupgradeneeded = function () {
i.result.deleteObjectStore(e.storeName);
}),
(i.onsuccess = function () {
var e = i.result;
e.close(), t(e);
});
});
return l
.then(function (e) {
r.db = e;
for (var t = 0; t < i.length; t++) {
var n = i[t];
(n._dbInfo.db = e), S(n._dbInfo);
}
})
.catch(function (t) {
throw (
((E(e, t) || u.resolve()).catch(
function () { }
),
t)
);
});
}
})
: o.then(function (t) {
k(e);
var n = m[e.name],
r = n.forages;
t.close();
for (var i = 0; i < r.length; i++)
r[i]._dbInfo.db = null;
var o = new u(function (t, n) {
var r = a.deleteDatabase(e.name);
(r.onerror = function () {
var e = r.result;
e && e.close(), n(r.error);
}),
(r.onblocked = function () {
console.warn(
'dropInstance blocked for database "' +
e.name +
'" until all open connections are closed'
);
}),
(r.onsuccess = function () {
var e = r.result;
e && e.close(), t(e);
});
});
return o
.then(function (e) {
n.db = e;
for (var t = 0; t < r.length; t++)
S(r[t]._dbInfo);
})
.catch(function (t) {
throw (
((E(e, t) || u.resolve()).catch(function () { }),
t)
);
});
});
} else r = u.reject("Invalid arguments");
return c(r, t), r;
}
var K = {
_driver: "asyncStorage",
_initStorage: I,
_support: s(),
iterate: F,
getItem: z,
setItem: U,
removeItem: B,
clear: G,
length: W,
key: H,
keys: V,
dropInstance: q,
};
function Y() {
return "function" === typeof openDatabase;
}
var $ =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
Q = "~~local_forage_type~",
X = /^~~local_forage_type~([^~]+)~/,
J = "__lfsc__:",
Z = J.length,
ee = "arbf",
te = "blob",
ne = "si08",
re = "ui08",
ie = "uic8",
oe = "si16",
ae = "si32",
se = "ur16",
le = "ui32",
ue = "fl32",
ce = "fl64",
de = Z + ee.length,
fe = Object.prototype.toString;
function he(e) {
var t,
n,
r,
i,
o,
a = 0.75 * e.length,
s = e.length,
l = 0;
"=" === e[e.length - 1] &&
(a--, "=" === e[e.length - 2] && a--);
var u = new ArrayBuffer(a),
c = new Uint8Array(u);
for (t = 0; t < s; t += 4)
(n = $.indexOf(e[t])),
(r = $.indexOf(e[t + 1])),
(i = $.indexOf(e[t + 2])),
(o = $.indexOf(e[t + 3])),
(c[l++] = (n << 2) | (r >> 4)),
(c[l++] = ((15 & r) << 4) | (i >> 2)),
(c[l++] = ((3 & i) << 6) | (63 & o));
return u;
}
function pe(e) {
var t,
n = new Uint8Array(e),
r = "";
for (t = 0; t < n.length; t += 3)
(r += $[n[t] >> 2]),
(r += $[((3 & n[t]) << 4) | (n[t + 1] >> 4)]),
(r += $[((15 & n[t + 1]) << 2) | (n[t + 2] >> 6)]),
(r += $[63 & n[t + 2]]);
return (
n.length % 3 === 2
? (r = r.substring(0, r.length - 1) + "=")
: n.length % 3 === 1 &&
(r = r.substring(0, r.length - 2) + "=="),
r
);
}
function ve(e, t) {
var n = "";
if (
(e && (n = fe.call(e)),
e &&
("[object ArrayBuffer]" === n ||
(e.buffer &&
"[object ArrayBuffer]" === fe.call(e.buffer))))
) {
var r,
i = J;
e instanceof ArrayBuffer
? ((r = e), (i += ee))
: ((r = e.buffer),
"[object Int8Array]" === n
? (i += ne)
: "[object Uint8Array]" === n
? (i += re)
: "[object Uint8ClampedArray]" === n
? (i += ie)
: "[object Int16Array]" === n
? (i += oe)
: "[object Uint16Array]" === n
? (i += se)
: "[object Int32Array]" === n
? (i += ae)
: "[object Uint32Array]" === n
? (i += le)
: "[object Float32Array]" === n
? (i += ue)
: "[object Float64Array]" === n
? (i += ce)
: t(new Error("Failed to get type for BinaryArray"))),
t(i + pe(r));
} else if ("[object Blob]" === n) {
var o = new FileReader();
(o.onload = function () {
var n = Q + e.type + "~" + pe(this.result);
t(J + te + n);
}),
o.readAsArrayBuffer(e);
} else
try {
t(JSON.stringify(e));
} catch (a) {
console.error(
"Couldn't convert value into a JSON string: ",
e
),
t(null, a);
}
}
function me(e) {
if (e.substring(0, Z) !== J) return JSON.parse(e);
var t,
n = e.substring(de),
r = e.substring(Z, de);
if (r === te && X.test(n)) {
var i = n.match(X);
(t = i[1]), (n = n.substring(i[0].length));
}
var o = he(n);
switch (r) {
case ee:
return o;
case te:
return l([o], { type: t });
case ne:
return new Int8Array(o);
case re:
return new Uint8Array(o);
case ie:
return new Uint8ClampedArray(o);
case oe:
return new Int16Array(o);
case se:
return new Uint16Array(o);
case ae:
return new Int32Array(o);
case le:
return new Uint32Array(o);
case ue:
return new Float32Array(o);
case ce:
return new Float64Array(o);
default:
throw new Error("Unkown type: " + r);
}
}
var ge = {
serialize: ve,
deserialize: me,
stringToBuffer: he,
bufferToString: pe,
};
function ye(e, t, n, r) {
e.executeSql(
"CREATE TABLE IF NOT EXISTS " +
t.storeName +
" (id INTEGER PRIMARY KEY, key unique, value)",
[],
n,
r
);
}
function be(e) {
var t = this,
n = { db: null };
if (e)
for (var r in e)
n[r] = "string" !== typeof e[r] ? e[r].toString() : e[r];
var i = new u(function (e, r) {
try {
n.db = openDatabase(
n.name,
String(n.version),
n.description,
n.size
);
} catch (i) {
return r(i);
}
n.db.transaction(function (i) {
ye(
i,
n,
function () {
(t._dbInfo = n), e();
},
function (e, t) {
r(t);
}
);
}, r);
});
return (n.serializer = ge), i;
}
function we(e, t, n, r, i, o) {
e.executeSql(
n,
r,
i,
function (e, a) {
a.code === a.SYNTAX_ERR
? e.executeSql(
"SELECT name FROM sqlite_master WHERE type='table' AND name = ?",
[t.storeName],
function (e, s) {
s.rows.length
? o(e, a)
: ye(
e,
t,
function () {
e.executeSql(n, r, i, o);
},
o
);
},
o
)
: o(e, a);
},
o
);
}
function _e(e, t) {
var n = this;
e = f(e);
var r = new u(function (t, r) {
n.ready()
.then(function () {
var i = n._dbInfo;
i.db.transaction(function (n) {
we(
n,
i,
"SELECT * FROM " +
i.storeName +
" WHERE key = ? LIMIT 1",
[e],
function (e, n) {
var r = n.rows.length
? n.rows.item(0).value
: null;
r && (r = i.serializer.deserialize(r)), t(r);
},
function (e, t) {
r(t);
}
);
});
})
.catch(r);
});
return c(r, t), r;
}
function xe(e, t) {
var n = this,
r = new u(function (t, r) {
n.ready()
.then(function () {
var i = n._dbInfo;
i.db.transaction(function (n) {
we(
n,
i,
"SELECT * FROM " + i.storeName,
[],
function (n, r) {
for (
var o = r.rows, a = o.length, s = 0;
s < a;
s++
) {
var l = o.item(s),
u = l.value;
if (
(u && (u = i.serializer.deserialize(u)),
void 0 !== (u = e(u, l.key, s + 1)))
)
return void t(u);
}
t();
},
function (e, t) {
r(t);
}
);
});
})
.catch(r);
});
return c(r, t), r;
}
function ke(e, t, n, r) {
var i = this;
e = f(e);
var o = new u(function (o, a) {
i.ready()
.then(function () {
void 0 === t && (t = null);
var s = t,
l = i._dbInfo;
l.serializer.serialize(t, function (t, u) {
u
? a(u)
: l.db.transaction(
function (n) {
we(
n,
l,
"INSERT OR REPLACE INTO " +
l.storeName +
" (key, value) VALUES (?, ?)",
[e, t],
function () {
o(s);
},
function (e, t) {
a(t);
}
);
},
function (t) {
if (t.code === t.QUOTA_ERR) {
if (r > 0)
return void o(
ke.apply(i, [e, s, n, r - 1])
);
a(t);
}
}
);
});
})
.catch(a);
});
return c(o, n), o;
}
function Se(e, t, n) {
return ke.apply(this, [e, t, n, 1]);
}
function Ee(e, t) {
var n = this;
e = f(e);
var r = new u(function (t, r) {
n.ready()
.then(function () {
var i = n._dbInfo;
i.db.transaction(function (n) {
we(
n,
i,
"DELETE FROM " + i.storeName + " WHERE key = ?",
[e],
function () {
t();
},
function (e, t) {
r(t);
}
);
});
})
.catch(r);
});
return c(r, t), r;
}
function Te(e) {
var t = this,
n = new u(function (e, n) {
t.ready()
.then(function () {
var r = t._dbInfo;
r.db.transaction(function (t) {
we(
t,
r,
"DELETE FROM " + r.storeName,
[],
function () {
e();
},
function (e, t) {
n(t);
}
);
});
})
.catch(n);
});
return c(n, e), n;
}
function Ce(e) {
var t = this,
n = new u(function (e, n) {
t.ready()
.then(function () {
var r = t._dbInfo;
r.db.transaction(function (t) {
we(
t,
r,
"SELECT COUNT(key) as c FROM " + r.storeName,
[],
function (t, n) {
var r = n.rows.item(0).c;
e(r);
},
function (e, t) {
n(t);
}
);
});
})
.catch(n);
});
return c(n, e), n;
}
function Ne(e, t) {
var n = this,
r = new u(function (t, r) {
n.ready()
.then(function () {
var i = n._dbInfo;
i.db.transaction(function (n) {
we(
n,
i,
"SELECT key FROM " +
i.storeName +
" WHERE id = ? LIMIT 1",
[e + 1],
function (e, n) {
var r = n.rows.length
? n.rows.item(0).key
: null;
t(r);
},
function (e, t) {
r(t);
}
);
});
})
.catch(r);
});
return c(r, t), r;
}
function je(e) {
var t = this,
n = new u(function (e, n) {
t.ready()
.then(function () {
var r = t._dbInfo;
r.db.transaction(function (t) {
we(
t,
r,
"SELECT key FROM " + r.storeName,
[],
function (t, n) {
for (var r = [], i = 0; i < n.rows.length; i++)
r.push(n.rows.item(i).key);
e(r);
},
function (e, t) {
n(t);
}
);
});
})
.catch(n);
});
return c(n, e), n;
}
function Oe(e) {
return new u(function (t, n) {
e.transaction(
function (r) {
r.executeSql(
"SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",
[],
function (n, r) {
for (var i = [], o = 0; o < r.rows.length; o++)
i.push(r.rows.item(o).name);
t({ db: e, storeNames: i });
},
function (e, t) {
n(t);
}
);
},
function (e) {
n(e);
}
);
});
}
function Ae(e, t) {
t = h.apply(this, arguments);
var n = this.config();
(e = ("function" !== typeof e && e) || {}).name ||
((e.name = e.name || n.name),
(e.storeName = e.storeName || n.storeName));
var r,
i = this;
return (
c(
(r = e.name
? new u(function (t) {
var r;
(r =
e.name === n.name
? i._dbInfo.db
: openDatabase(e.name, "", "", 0)),
e.storeName
? t({ db: r, storeNames: [e.storeName] })
: t(Oe(r));
}).then(function (e) {
return new u(function (t, n) {
e.db.transaction(
function (r) {
function i(e) {
return new u(function (t, n) {
r.executeSql(
"DROP TABLE IF EXISTS " + e,
[],
function () {
t();
},
function (e, t) {
n(t);
}
);
});
}
for (
var o = [], a = 0, s = e.storeNames.length;
a < s;
a++
)
o.push(i(e.storeNames[a]));
u.all(o)
.then(function () {
t();
})
.catch(function (e) {
n(e);
});
},
function (e) {
n(e);
}
);
});
})
: u.reject("Invalid arguments")),
t
),
r
);
}
var Pe = {
_driver: "webSQLStorage",
_initStorage: be,
_support: Y(),
iterate: xe,
getItem: _e,
setItem: Se,
removeItem: Ee,
clear: Te,
length: Ce,
key: Ne,
keys: je,
dropInstance: Ae,
};
function Le() {
try {
return (
"undefined" !== typeof localStorage &&
"setItem" in localStorage &&
!!localStorage.setItem
);
} catch (e) {
return !1;
}
}
function Re(e, t) {
var n = e.name + "/";
return (
e.storeName !== t.storeName && (n += e.storeName + "/"), n
);
}
function De() {
var e = "_localforage_support_test";
try {
return (
localStorage.setItem(e, !0),
localStorage.removeItem(e),
!1
);
} catch (t) {
return !0;
}
}
function Me() {
return !De() || localStorage.length > 0;
}
function Ie(e) {
var t = this,
n = {};
if (e) for (var r in e) n[r] = e[r];
return (
(n.keyPrefix = Re(e, t._defaultConfig)),
Me()
? ((t._dbInfo = n), (n.serializer = ge), u.resolve())
: u.reject()
);
}
function ze(e) {
var t = this,
n = t.ready().then(function () {
for (
var e = t._dbInfo.keyPrefix,
n = localStorage.length - 1;
n >= 0;
n--
) {
var r = localStorage.key(n);
0 === r.indexOf(e) && localStorage.removeItem(r);
}
});
return c(n, e), n;
}
function Fe(e, t) {
var n = this;
e = f(e);
var r = n.ready().then(function () {
var t = n._dbInfo,
r = localStorage.getItem(t.keyPrefix + e);
return r && (r = t.serializer.deserialize(r)), r;
});
return c(r, t), r;
}
function Ue(e, t) {
var n = this,
r = n.ready().then(function () {
for (
var t = n._dbInfo,
r = t.keyPrefix,
i = r.length,
o = localStorage.length,
a = 1,
s = 0;
s < o;
s++
) {
var l = localStorage.key(s);
if (0 === l.indexOf(r)) {
var u = localStorage.getItem(l);
if (
(u && (u = t.serializer.deserialize(u)),
void 0 !== (u = e(u, l.substring(i), a++)))
)
return u;
}
}
});
return c(r, t), r;
}
function Be(e, t) {
var n = this,
r = n.ready().then(function () {
var t,
r = n._dbInfo;
try {
t = localStorage.key(e);
} catch (i) {
t = null;
}
return t && (t = t.substring(r.keyPrefix.length)), t;
});
return c(r, t), r;
}
function Ge(e) {
var t = this,
n = t.ready().then(function () {
for (
var e = t._dbInfo,
n = localStorage.length,
r = [],
i = 0;
i < n;
i++
) {
var o = localStorage.key(i);
0 === o.indexOf(e.keyPrefix) &&
r.push(o.substring(e.keyPrefix.length));
}
return r;
});
return c(n, e), n;
}
function We(e) {
var t = this.keys().then(function (e) {
return e.length;
});
return c(t, e), t;
}
function He(e, t) {
var n = this;
e = f(e);
var r = n.ready().then(function () {
var t = n._dbInfo;
localStorage.removeItem(t.keyPrefix + e);
});
return c(r, t), r;
}
function Ve(e, t, n) {
var r = this;
e = f(e);
var i = r.ready().then(function () {
void 0 === t && (t = null);
var n = t;
return new u(function (i, o) {
var a = r._dbInfo;
a.serializer.serialize(t, function (t, r) {
if (r) o(r);
else
try {
localStorage.setItem(a.keyPrefix + e, t), i(n);
} catch (s) {
("QuotaExceededError" !== s.name &&
"NS_ERROR_DOM_QUOTA_REACHED" !== s.name) ||
o(s),
o(s);
}
});
});
});
return c(i, n), i;
}
function qe(e, t) {
if (
((t = h.apply(this, arguments)),
!(e = ("function" !== typeof e && e) || {}).name)
) {
var n = this.config();
(e.name = e.name || n.name),
(e.storeName = e.storeName || n.storeName);
}
var r,
i = this;
return (
(r = e.name
? new u(function (t) {
e.storeName
? t(Re(e, i._defaultConfig))
: t(e.name + "/");
}).then(function (e) {
for (var t = localStorage.length - 1; t >= 0; t--) {
var n = localStorage.key(t);
0 === n.indexOf(e) && localStorage.removeItem(n);
}
})
: u.reject("Invalid arguments")),
c(r, t),
r
);
}
var Ke = {
_driver: "localStorageWrapper",
_initStorage: Ie,
_support: Le(),
iterate: Ue,
getItem: Fe,
setItem: Ve,
removeItem: He,
clear: ze,
length: We,
key: Be,
keys: Ge,
dropInstance: qe,
},
Ye = function (e, t) {
return (
e === t ||
("number" === typeof e &&
"number" === typeof t &&
isNaN(e) &&
isNaN(t))
);
},
$e = function (e, t) {
for (var n = e.length, r = 0; r < n;) {
if (Ye(e[r], t)) return !0;
r++;
}
return !1;
},
Qe =
Array.isArray ||
function (e) {
return (
"[object Array]" === Object.prototype.toString.call(e)
);
},
Xe = {},
Je = {},
Ze = { INDEXEDDB: K, WEBSQL: Pe, LOCALSTORAGE: Ke },
et = [
Ze.INDEXEDDB._driver,
Ze.WEBSQL._driver,
Ze.LOCALSTORAGE._driver,
],
tt = ["dropInstance"],
nt = [
"clear",
"getItem",
"iterate",
"key",
"keys",
"length",
"removeItem",
"setItem",
].concat(tt),
rt = {
description: "",
driver: et.slice(),
name: "localforage",
size: 4980736,
storeName: "keyvaluepairs",
version: 1,
};
function it(e, t) {
e[t] = function () {
var n = arguments;
return e.ready().then(function () {
return e[t].apply(e, n);
});
};
}
function ot() {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e];
if (t)
for (var n in t)
t.hasOwnProperty(n) &&
(Qe(t[n])
? (arguments[0][n] = t[n].slice())
: (arguments[0][n] = t[n]));
}
return arguments[0];
}
var at = (function () {
function e(t) {
for (var n in (i(this, e), Ze))
if (Ze.hasOwnProperty(n)) {
var r = Ze[n],
o = r._driver;
(this[n] = o), Xe[o] || this.defineDriver(r);
}
(this._defaultConfig = ot({}, rt)),
(this._config = ot({}, this._defaultConfig, t)),
(this._driverSet = null),
(this._initDriver = null),
(this._ready = !1),
(this._dbInfo = null),
this._wrapLibraryMethodsWithReady(),
this.setDriver(this._config.driver).catch(
function () { }
);
}
return (
(e.prototype.config = function (e) {
if (
"object" ===
("undefined" === typeof e ? "undefined" : r(e))
) {
if (this._ready)
return new Error(
"Can't call config() after localforage has been used."
);
for (var t in e) {
if (
("storeName" === t &&
(e[t] = e[t].replace(/\W/g, "_")),
"version" === t && "number" !== typeof e[t])
)
return new Error(
"Database version must be a number."
);
this._config[t] = e[t];
}
return (
!("driver" in e) ||
!e.driver ||
this.setDriver(this._config.driver)
);
}
return "string" === typeof e
? this._config[e]
: this._config;
}),
(e.prototype.defineDriver = function (e, t, n) {
var r = new u(function (t, n) {
try {
var r = e._driver,
i = new Error(
"Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver"
);
if (!e._driver) return void n(i);
for (
var o = nt.concat("_initStorage"),
a = 0,
s = o.length;
a < s;
a++
) {
var l = o[a];
if (
(!$e(tt, l) || e[l]) &&
"function" !== typeof e[l]
)
return void n(i);
}
var d = function () {
for (
var t = function (e) {
return function () {
var t = new Error(
"Method " +
e +
" is not implemented by the current driver"
),
n = u.reject(t);
return (
c(n, arguments[arguments.length - 1]), n
);
};
},
n = 0,
r = tt.length;
n < r;
n++
) {
var i = tt[n];
e[i] || (e[i] = t(i));
}
};
d();
var f = function (n) {
Xe[r] &&
console.info(
"Redefining LocalForage driver: " + r
),
(Xe[r] = e),
(Je[r] = n),
t();
};
"_support" in e
? e._support && "function" === typeof e._support
? e._support().then(f, n)
: f(!!e._support)
: f(!0);
} catch (h) {
n(h);
}
});
return d(r, t, n), r;
}),
(e.prototype.driver = function () {
return this._driver || null;
}),
(e.prototype.getDriver = function (e, t, n) {
var r = Xe[e]
? u.resolve(Xe[e])
: u.reject(new Error("Driver not found."));
return d(r, t, n), r;
}),
(e.prototype.getSerializer = function (e) {
var t = u.resolve(ge);
return d(t, e), t;
}),
(e.prototype.ready = function (e) {
var t = this,
n = t._driverSet.then(function () {
return (
null === t._ready && (t._ready = t._initDriver()),
t._ready
);
});
return d(n, e, e), n;
}),
(e.prototype.setDriver = function (e, t, n) {
var r = this;
Qe(e) || (e = [e]);
var i = this._getSupportedDrivers(e);
function o() {
r._config.driver = r.driver();
}
function a(e) {
return (
r._extend(e),
o(),
(r._ready = r._initStorage(r._config)),
r._ready
);
}
function s(e) {
return function () {
var t = 0;
function n() {
for (; t < e.length;) {
var i = e[t];
return (
t++,
(r._dbInfo = null),
(r._ready = null),
r.getDriver(i).then(a).catch(n)
);
}
o();
var s = new Error(
"No available storage method found."
);
return (r._driverSet = u.reject(s)), r._driverSet;
}
return n();
};
}
var l =
null !== this._driverSet
? this._driverSet.catch(function () {
return u.resolve();
})
: u.resolve();
return (
(this._driverSet = l
.then(function () {
var e = i[0];
return (
(r._dbInfo = null),
(r._ready = null),
r.getDriver(e).then(function (e) {
(r._driver = e._driver),
o(),
r._wrapLibraryMethodsWithReady(),
(r._initDriver = s(i));
})
);
})
.catch(function () {
o();
var e = new Error(
"No available storage method found."
);
return (r._driverSet = u.reject(e)), r._driverSet;
})),
d(this._driverSet, t, n),
this._driverSet
);
}),
(e.prototype.supports = function (e) {
return !!Je[e];
}),
(e.prototype._extend = function (e) {
ot(this, e);
}),
(e.prototype._getSupportedDrivers = function (e) {
for (var t = [], n = 0, r = e.length; n < r; n++) {
var i = e[n];
this.supports(i) && t.push(i);
}
return t;
}),
(e.prototype._wrapLibraryMethodsWithReady = function () {
for (var e = 0, t = nt.length; e < t; e++)
it(this, nt[e]);
}),
(e.prototype.createInstance = function (t) {
return new e(t);
}),
e
);
})(),
st = new at();
t.exports = st;
},
{ 3: 3 },
],
},
{},
[4]
)(4);
},
534: function (e, t, n) {
"use strict";
var r = n(313),
i = n(224);
function o(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 a = new Set(),
s = {};
function l(e, t) {
u(e, t), u(e + "Capture", t);
}
function u(e, t) {
for (s[e] = t, e = 0; e < t.length; e++) a.add(t[e]);
}
var c = !(
"undefined" === typeof window ||
"undefined" === typeof window.document ||
"undefined" === typeof window.document.createElement
),
d = Object.prototype.hasOwnProperty,
f =
/^[: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 = {},
p = {};
function v(e, t, n, r, i, o, a) {
(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 = o),
(this.removeEmptyString = a);
}
var m = {};
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style"
.split(" ")
.forEach(function (e) {
m[e] = new v(e, 0, !1, e, null, !1, !1);
}),
[
["acceptCharset", "accept-charset"],
["className", "class"],
["htmlFor", "for"],
["httpEquiv", "http-equiv"],
].forEach(function (e) {
var t = e[0];
m[t] = new v(t, 1, !1, e[1], null, !1, !1);
}),
["contentEditable", "draggable", "spellCheck", "value"].forEach(
function (e) {
m[e] = new v(e, 2, !1, e.toLowerCase(), null, !1, !1);
}
),
[
"autoReverse",
"externalResourcesRequired",
"focusable",
"preserveAlpha",
].forEach(function (e) {
m[e] = new v(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) {
m[e] = new v(e, 3, !1, e.toLowerCase(), null, !1, !1);
}),
["checked", "multiple", "muted", "selected"].forEach(function (e) {
m[e] = new v(e, 3, !0, e, null, !1, !1);
}),
["capture", "download"].forEach(function (e) {
m[e] = new v(e, 4, !1, e, null, !1, !1);
}),
["cols", "rows", "size", "span"].forEach(function (e) {
m[e] = new v(e, 6, !1, e, null, !1, !1);
}),
["rowSpan", "start"].forEach(function (e) {
m[e] = new v(e, 5, !1, e.toLowerCase(), null, !1, !1);
});
var g = /[\-:]([a-z])/g;
function y(e) {
return e[1].toUpperCase();
}
function b(e, t, n, r) {
var i = m.hasOwnProperty(t) ? m[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(p, e) ||
(!d.call(h, e) &&
(f.test(e) ? (p[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(g, y);
m[t] = new v(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(g, y);
m[t] = new v(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(g, y);
m[t] = new v(
t,
1,
!1,
e,
"http://www.w3.org/XML/1998/namespace",
!1,
!1
);
}),
["tabIndex", "crossOrigin"].forEach(function (e) {
m[e] = new v(e, 1, !1, e.toLowerCase(), null, !1, !1);
}),
(m.xlinkHref = new v(
"xlinkHref",
1,
!1,
"xlink:href",
"http://www.w3.org/1999/xlink",
!0,
!1
)),
["src", "href", "action", "formAction"].forEach(function (e) {
m[e] = new v(e, 1, !1, e.toLowerCase(), null, !0, !0);
});
var w = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
_ = Symbol.for("react.element"),
x = Symbol.for("react.portal"),
k = Symbol.for("react.fragment"),
S = Symbol.for("react.strict_mode"),
E = Symbol.for("react.profiler"),
T = Symbol.for("react.provider"),
C = Symbol.for("react.context"),
N = Symbol.for("react.forward_ref"),
j = Symbol.for("react.suspense"),
O = Symbol.for("react.suspense_list"),
A = Symbol.for("react.memo"),
P = Symbol.for("react.lazy");
Symbol.for("react.scope"), Symbol.for("react.debug_trace_mode");
var L = Symbol.for("react.offscreen");
Symbol.for("react.legacy_hidden"),
Symbol.for("react.cache"),
Symbol.for("react.tracing_marker");
var R = Symbol.iterator;
function D(e) {
return null === e || "object" !== typeof e
? null
: "function" === typeof (e = (R && e[R]) || e["@@iterator"])
? e
: null;
}
var M,
I = Object.assign;
function z(e) {
if (void 0 === M)
try {
throw Error();
} catch (n) {
var t = n.stack.trim().match(/\n( *(at )?)/);
M = (t && t[1]) || "";
}
return "\n" + M + 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 (u) {
var r = u;
}
Reflect.construct(e, [], t);
} else {
try {
t.call();
} catch (u) {
r = u;
}
e.call(t.prototype);
}
else {
try {
throw Error();
} catch (u) {
r = u;
}
e();
}
} catch (u) {
if (u && r && "string" === typeof u.stack) {
for (
var i = u.stack.split("\n"),
o = r.stack.split("\n"),
a = i.length - 1,
s = o.length - 1;
1 <= a && 0 <= s && i[a] !== o[s];
)
s--;
for (; 1 <= a && 0 <= s; a--, s--)
if (i[a] !== o[s]) {
if (1 !== a || 1 !== s)
do {
if ((a--, 0 > --s || i[a] !== o[s])) {
var l = "\n" + i[a].replace(" at new ", " at ");
return (
e.displayName &&
l.includes("") &&
(l = l.replace("", e.displayName)),
l
);
}
} while (1 <= a && 0 <= s);
break;
}
}
} finally {
(F = !1), (Error.prepareStackTrace = n);
}
return (e = e ? e.displayName || e.name : "") ? z(e) : "";
}
function B(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 x:
return "Portal";
case E:
return "Profiler";
case S:
return "StrictMode";
case j:
return "Suspense";
case O:
return "SuspenseList";
}
if ("object" === typeof e)
switch (e.$$typeof) {
case C:
return (e.displayName || "Context") + ".Consumer";
case T:
return (e._context.displayName || "Context") + ".Provider";
case N:
var t = e.render;
return (
(e = e.displayName) ||
(e =
"" !== (e = t.displayName || t.name || "")
? "ForwardRef(" + e + ")"
: "ForwardRef"),
e
);
case A:
return null !== (t = e.displayName || null)
? t
: G(e.type) || "Memo";
case P:
(t = e._payload), (e = e._init);
try {
return G(e(t));
} catch (n) { }
}
return null;
}
function W(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 === S ? "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 H(e) {
switch (typeof e) {
case "boolean":
case "number":
case "string":
case "undefined":
case "object":
return e;
default:
return "";
}
}
function V(e) {
var t = e.type;
return (
(e = e.nodeName) &&
"input" === e.toLowerCase() &&
("checkbox" === t || "radio" === t)
);
}
function q(e) {
e._valueTracker ||
(e._valueTracker = (function (e) {
var t = V(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,
o = n.set;
return (
Object.defineProperty(e, t, {
configurable: !0,
get: function () {
return i.call(this);
},
set: function (e) {
(r = "" + e), o.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 K(e) {
if (!e) return !1;
var t = e._valueTracker;
if (!t) return !0;
var n = t.getValue(),
r = "";
return (
e && (r = V(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 $(e, t) {
var n = t.checked;
return I({}, 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 = H(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 X(e, t) {
null != (t = t.checked) && b(e, "checked", t, !1);
}
function J(e, t) {
X(e, t);
var n = H(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, H(t.defaultValue)),
null == t.checked &&
null != t.defaultChecked &&
(e.defaultChecked = !!t.defaultChecked);
}
function Z(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 = "" + H(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(o(91));
return I({}, 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(o(92));
if (te(n)) {
if (1 < n.length) throw Error(o(93));
n = n[0];
}
t = n;
}
null == t && (t = ""), (n = t);
}
e._wrapperState = { initialValue: H(n) };
}
function oe(e, t) {
var n = H(t.value),
r = H(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 ae(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 ue,
ce,
de =
((ce = function (e, t) {
if (
"http://www.w3.org/2000/svg" !== e.namespaceURI ||
"innerHTML" in e
)
e.innerHTML = t;
else {
for (
(ue = ue || document.createElement("div")).innerHTML =
"",
t = ue.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 ce(e, t);
});
}
: ce);
function fe(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,
},
pe = ["Webkit", "ms", "Moz", "O"];
function ve(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 me(e, t) {
for (var n in ((e = e.style), t))
if (t.hasOwnProperty(n)) {
var r = 0 === n.indexOf("--"),
i = ve(n, t[n], r);
"float" === n && (n = "cssFloat"),
r ? e.setProperty(n, i) : (e[n] = i);
}
}
Object.keys(he).forEach(function (e) {
pe.forEach(function (t) {
(t = t + e.charAt(0).toUpperCase() + e.substring(1)),
(he[t] = he[e]);
});
});
var ge = I(
{ 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 ye(e, t) {
if (t) {
if (
ge[e] &&
(null != t.children || null != t.dangerouslySetInnerHTML)
)
throw Error(o(137, e));
if (null != t.dangerouslySetInnerHTML) {
if (null != t.children) throw Error(o(60));
if (
"object" !== typeof t.dangerouslySetInnerHTML ||
!("__html" in t.dangerouslySetInnerHTML)
)
throw Error(o(61));
}
if (null != t.style && "object" !== typeof t.style)
throw Error(o(62));
}
}
function be(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 we = null;
function _e(e) {
return (
(e = e.target || e.srcElement || window).correspondingUseElement &&
(e = e.correspondingUseElement),
3 === e.nodeType ? e.parentNode : e
);
}
var xe = null,
ke = null,
Se = null;
function Ee(e) {
if ((e = bi(e))) {
if ("function" !== typeof xe) throw Error(o(280));
var t = e.stateNode;
t && ((t = _i(t)), xe(e.stateNode, e.type, t));
}
}
function Te(e) {
ke ? (Se ? Se.push(e) : (Se = [e])) : (ke = e);
}
function Ce() {
if (ke) {
var e = ke,
t = Se;
if (((Se = ke = null), Ee(e), t))
for (e = 0; e < t.length; e++) Ee(t[e]);
}
}
function Ne(e, t) {
return e(t);
}
function je() { }
var Oe = !1;
function Ae(e, t, n) {
if (Oe) return e(t, n);
Oe = !0;
try {
return Ne(e, t, n);
} finally {
(Oe = !1), (null !== ke || null !== Se) && (je(), Ce());
}
}
function Pe(e, t) {
var n = e.stateNode;
if (null === n) return null;
var r = _i(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(o(231, t, typeof n));
return n;
}
var Le = !1;
if (c)
try {
var Re = {};
Object.defineProperty(Re, "passive", {
get: function () {
Le = !0;
},
}),
window.addEventListener("test", Re, Re),
window.removeEventListener("test", Re, Re);
} catch (ce) {
Le = !1;
}
function De(e, t, n, r, i, o, a, s, l) {
var u = Array.prototype.slice.call(arguments, 3);
try {
t.apply(n, u);
} catch (c) {
this.onError(c);
}
}
var Me = !1,
Ie = null,
ze = !1,
Fe = null,
Ue = {
onError: function (e) {
(Me = !0), (Ie = e);
},
};
function Be(e, t, n, r, i, o, a, s, l) {
(Me = !1), (Ie = null), De.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 We(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 He(e) {
if (Ge(e) !== e) throw Error(o(188));
}
function Ve(e) {
return null !==
(e = (function (e) {
var t = e.alternate;
if (!t) {
if (null === (t = Ge(e))) throw Error(o(188));
return t !== e ? null : e;
}
for (var n = e, r = t; ;) {
var i = n.return;
if (null === i) break;
var a = i.alternate;
if (null === a) {
if (null !== (r = i.return)) {
n = r;
continue;
}
break;
}
if (i.child === a.child) {
for (a = i.child; a;) {
if (a === n) return He(i), e;
if (a === r) return He(i), t;
a = a.sibling;
}
throw Error(o(188));
}
if (n.return !== r.return) (n = i), (r = a);
else {
for (var s = !1, l = i.child; l;) {
if (l === n) {
(s = !0), (n = i), (r = a);
break;
}
if (l === r) {
(s = !0), (r = i), (n = a);
break;
}
l = l.sibling;
}
if (!s) {
for (l = a.child; l;) {
if (l === n) {
(s = !0), (n = a), (r = i);
break;
}
if (l === r) {
(s = !0), (r = a), (n = i);
break;
}
l = l.sibling;
}
if (!s) throw Error(o(189));
}
}
if (n.alternate !== r) throw Error(o(190));
}
if (3 !== n.tag) throw Error(o(188));
return n.stateNode.current === n ? e : t;
})(e))
? qe(e)
: null;
}
function qe(e) {
if (5 === e.tag || 6 === e.tag) return e;
for (e = e.child; null !== e;) {
var t = qe(e);
if (null !== t) return t;
e = e.sibling;
}
return null;
}
var Ke = i.unstable_scheduleCallback,
Ye = i.unstable_cancelCallback,
$e = i.unstable_shouldYield,
Qe = i.unstable_requestPaint,
Xe = i.unstable_now,
Je = i.unstable_getCurrentPriorityLevel,
Ze = i.unstable_ImmediatePriority,
et = i.unstable_UserBlockingPriority,
tt = i.unstable_NormalPriority,
nt = i.unstable_LowPriority,
rt = i.unstable_IdlePriority,
it = null,
ot = null;
var at = Math.clz32
? Math.clz32
: function (e) {
return 0 === (e >>>= 0) ? 32 : (31 - ((st(e) / lt) | 0)) | 0;
},
st = Math.log,
lt = Math.LN2;
var ut = 64,
ct = 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 ft(e, t) {
var n = e.pendingLanes;
if (0 === n) return 0;
var r = 0,
i = e.suspendedLanes,
o = e.pingedLanes,
a = 268435455 & n;
if (0 !== a) {
var s = a & ~i;
0 !== s ? (r = dt(s)) : 0 !== (o &= a) && (r = dt(o));
} else 0 !== (a = n & ~i) ? (r = dt(a)) : 0 !== o && (r = dt(o));
if (0 === r) return 0;
if (
0 !== t &&
t !== r &&
0 === (t & i) &&
((i = r & -r) >= (o = t & -t) || (16 === i && 0 !== (4194240 & o)))
)
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 - at(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 pt(e) {
return 0 !== (e = -1073741825 & e.pendingLanes)
? e
: 1073741824 & e
? 1073741824
: 0;
}
function vt() {
var e = ut;
return 0 === (4194240 & (ut <<= 1)) && (ut = 64), e;
}
function mt(e) {
for (var t = [], n = 0; 31 > n; n++) t.push(e);
return t;
}
function gt(e, t, n) {
(e.pendingLanes |= t),
536870912 !== t && ((e.suspendedLanes = 0), (e.pingedLanes = 0)),
((e = e.eventTimes)[(t = 31 - at(t))] = n);
}
function yt(e, t) {
var n = (e.entangledLanes |= t);
for (e = e.entanglements; n;) {
var r = 31 - at(n),
i = 1 << r;
(i & t) | (e[r] & t) && (e[r] |= t), (n &= ~i);
}
}
var bt = 0;
function wt(e) {
return 1 < (e &= -e)
? 4 < e
? 0 !== (268435455 & e)
? 16
: 536870912
: 4
: 1;
}
var _t,
xt,
kt,
St,
Et,
Tt = !1,
Ct = [],
Nt = null,
jt = null,
Ot = null,
At = new Map(),
Pt = new Map(),
Lt = [],
Rt =
"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 Dt(e, t) {
switch (e) {
case "focusin":
case "focusout":
Nt = null;
break;
case "dragenter":
case "dragleave":
jt = null;
break;
case "mouseover":
case "mouseout":
Ot = null;
break;
case "pointerover":
case "pointerout":
At.delete(t.pointerId);
break;
case "gotpointercapture":
case "lostpointercapture":
Pt.delete(t.pointerId);
}
}
function Mt(e, t, n, r, i, o) {
return null === e || e.nativeEvent !== o
? ((e = {
blockedOn: t,
domEventName: n,
eventSystemFlags: r,
nativeEvent: o,
targetContainers: [i],
}),
null !== t && null !== (t = bi(t)) && xt(t),
e)
: ((e.eventSystemFlags |= r),
(t = e.targetContainers),
null !== i && -1 === t.indexOf(i) && t.push(i),
e);
}
function It(e) {
var t = yi(e.target);
if (null !== t) {
var n = Ge(t);
if (null !== n)
if (13 === (t = n.tag)) {
if (null !== (t = We(n)))
return (
(e.blockedOn = t),
void Et(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 = $t(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent);
if (null !== n)
return null !== (t = bi(n)) && xt(t), (e.blockedOn = n), !1;
var r = new (n = e.nativeEvent).constructor(n.type, n);
(we = r), n.target.dispatchEvent(r), (we = null), t.shift();
}
return !0;
}
function Ft(e, t, n) {
zt(e) && n.delete(t);
}
function Ut() {
(Tt = !1),
null !== Nt && zt(Nt) && (Nt = null),
null !== jt && zt(jt) && (jt = null),
null !== Ot && zt(Ot) && (Ot = null),
At.forEach(Ft),
Pt.forEach(Ft);
}
function Bt(e, t) {
e.blockedOn === t &&
((e.blockedOn = null),
Tt ||
((Tt = !0),
i.unstable_scheduleCallback(i.unstable_NormalPriority, Ut)));
}
function Gt(e) {
function t(t) {
return Bt(t, e);
}
if (0 < Ct.length) {
Bt(Ct[0], e);
for (var n = 1; n < Ct.length; n++) {
var r = Ct[n];
r.blockedOn === e && (r.blockedOn = null);
}
}
for (
null !== Nt && Bt(Nt, e),
null !== jt && Bt(jt, e),
null !== Ot && Bt(Ot, e),
At.forEach(t),
Pt.forEach(t),
n = 0;
n < Lt.length;
n++
)
(r = Lt[n]).blockedOn === e && (r.blockedOn = null);
for (; 0 < Lt.length && null === (n = Lt[0]).blockedOn;)
It(n), null === n.blockedOn && Lt.shift();
}
var Wt = w.ReactCurrentBatchConfig,
Ht = !0;
function Vt(e, t, n, r) {
var i = bt,
o = Wt.transition;
Wt.transition = null;
try {
(bt = 1), Kt(e, t, n, r);
} finally {
(bt = i), (Wt.transition = o);
}
}
function qt(e, t, n, r) {
var i = bt,
o = Wt.transition;
Wt.transition = null;
try {
(bt = 4), Kt(e, t, n, r);
} finally {
(bt = i), (Wt.transition = o);
}
}
function Kt(e, t, n, r) {
if (Ht) {
var i = $t(e, t, n, r);
if (null === i) Hr(e, t, r, Yt, n), Dt(e, r);
else if (
(function (e, t, n, r, i) {
switch (t) {
case "focusin":
return (Nt = Mt(Nt, e, t, n, r, i)), !0;
case "dragenter":
return (jt = Mt(jt, e, t, n, r, i)), !0;
case "mouseover":
return (Ot = Mt(Ot, e, t, n, r, i)), !0;
case "pointerover":
var o = i.pointerId;
return At.set(o, Mt(At.get(o) || null, e, t, n, r, i)), !0;
case "gotpointercapture":
return (
(o = i.pointerId),
Pt.set(o, Mt(Pt.get(o) || null, e, t, n, r, i)),
!0
);
}
return !1;
})(i, e, t, n, r)
)
r.stopPropagation();
else if ((Dt(e, r), 4 & t && -1 < Rt.indexOf(e))) {
for (; null !== i;) {
var o = bi(i);
if (
(null !== o && _t(o),
null === (o = $t(e, t, n, r)) && Hr(e, t, r, Yt, n),
o === i)
)
break;
i = o;
}
null !== i && r.stopPropagation();
} else Hr(e, t, r, null, n);
}
}
var Yt = null;
function $t(e, t, n, r) {
if (((Yt = null), null !== (e = yi((e = _e(r))))))
if (null === (t = Ge(e))) e = null;
else if (13 === (n = t.tag)) {
if (null !== (e = We(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 (Je()) {
case Ze:
return 1;
case et:
return 4;
case tt:
case nt:
return 16;
case rt:
return 536870912;
default:
return 16;
}
default:
return 16;
}
}
var Xt = null,
Jt = null,
Zt = null;
function en() {
if (Zt) return Zt;
var e,
t,
n = Jt,
r = n.length,
i = "value" in Xt ? Xt.value : Xt.textContent,
o = i.length;
for (e = 0; e < r && n[e] === i[e]; e++);
var a = r - e;
for (t = 1; t <= a && n[r - t] === i[o - t]; t++);
return (Zt = 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 on(e) {
function t(t, n, r, i, o) {
for (var a in ((this._reactName = t),
(this._targetInst = r),
(this.type = n),
(this.nativeEvent = i),
(this.target = o),
(this.currentTarget = null),
e))
e.hasOwnProperty(a) && ((t = e[a]), (this[a] = t ? t(i) : i[a]));
return (
(this.isDefaultPrevented = (
null != i.defaultPrevented
? i.defaultPrevented
: !1 === i.returnValue
)
? nn
: rn),
(this.isPropagationStopped = rn),
this
);
}
return (
I(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 an,
sn,
ln,
un = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
timeStamp: function (e) {
return e.timeStamp || Date.now();
},
defaultPrevented: 0,
isTrusted: 0,
},
cn = on(un),
dn = I({}, un, { view: 0, detail: 0 }),
fn = on(dn),
hn = I({}, dn, {
screenX: 0,
screenY: 0,
clientX: 0,
clientY: 0,
pageX: 0,
pageY: 0,
ctrlKey: 0,
shiftKey: 0,
altKey: 0,
metaKey: 0,
getModifierState: En,
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
? ((an = e.screenX - ln.screenX),
(sn = e.screenY - ln.screenY))
: (sn = an = 0),
(ln = e)),
an);
},
movementY: function (e) {
return "movementY" in e ? e.movementY : sn;
},
}),
pn = on(hn),
vn = on(I({}, hn, { dataTransfer: 0 })),
mn = on(I({}, dn, { relatedTarget: 0 })),
gn = on(
I({}, un, { animationName: 0, elapsedTime: 0, pseudoElement: 0 })
),
yn = I({}, un, {
clipboardData: function (e) {
return "clipboardData" in e
? e.clipboardData
: window.clipboardData;
},
}),
bn = on(yn),
wn = on(I({}, un, { data: 0 })),
_n = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
Up: "ArrowUp",
Right: "ArrowRight",
Down: "ArrowDown",
Del: "Delete",
Win: "OS",
Menu: "ContextMenu",
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified",
},
xn = {
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 Sn(e) {
var t = this.nativeEvent;
return t.getModifierState
? t.getModifierState(e)
: !!(e = kn[e]) && !!t[e];
}
function En() {
return Sn;
}
var Tn = I({}, dn, {
key: function (e) {
if (e.key) {
var t = _n[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
? xn[e.keyCode] || "Unidentified"
: "";
},
code: 0,
location: 0,
ctrlKey: 0,
shiftKey: 0,
altKey: 0,
metaKey: 0,
repeat: 0,
locale: 0,
getModifierState: En,
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;
},
}),
Cn = on(Tn),
Nn = on(
I({}, hn, {
pointerId: 0,
width: 0,
height: 0,
pressure: 0,
tangentialPressure: 0,
tiltX: 0,
tiltY: 0,
twist: 0,
pointerType: 0,
isPrimary: 0,
})
),
jn = on(
I({}, dn, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
altKey: 0,
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
getModifierState: En,
})
),
On = on(
I({}, un, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 })
),
An = I({}, 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,
}),
Pn = on(An),
Ln = [9, 13, 27, 32],
Rn = c && "CompositionEvent" in window,
Dn = null;
c && "documentMode" in document && (Dn = document.documentMode);
var Mn = c && "TextEvent" in window && !Dn,
In = c && (!Rn || (Dn && 8 < Dn && 11 >= Dn)),
zn = String.fromCharCode(32),
Fn = !1;
function Un(e, t) {
switch (e) {
case "keyup":
return -1 !== Ln.indexOf(t.keyCode);
case "keydown":
return 229 !== t.keyCode;
case "keypress":
case "mousedown":
case "focusout":
return !0;
default:
return !1;
}
}
function Bn(e) {
return "object" === typeof (e = e.detail) && "data" in e
? e.data
: null;
}
var Gn = !1;
var Wn = {
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 Hn(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
return "input" === t ? !!Wn[e.type] : "textarea" === t;
}
function Vn(e, t, n, r) {
Te(r),
0 < (t = qr(t, "onChange")).length &&
((n = new cn("onChange", "change", null, n, r)),
e.push({ event: n, listeners: t }));
}
var qn = null,
Kn = null;
function Yn(e) {
zr(e, 0);
}
function $n(e) {
if (K(wi(e))) return e;
}
function Qn(e, t) {
if ("change" === e) return t;
}
var Xn = !1;
if (c) {
var Jn;
if (c) {
var Zn = "oninput" in document;
if (!Zn) {
var er = document.createElement("div");
er.setAttribute("oninput", "return;"),
(Zn = "function" === typeof er.oninput);
}
Jn = Zn;
} else Jn = !1;
Xn = Jn && (!document.documentMode || 9 < document.documentMode);
}
function tr() {
qn && (qn.detachEvent("onpropertychange", nr), (Kn = qn = null));
}
function nr(e) {
if ("value" === e.propertyName && $n(Kn)) {
var t = [];
Vn(t, Kn, e, _e(e)), Ae(Yn, t);
}
}
function rr(e, t, n) {
"focusin" === e
? (tr(), (Kn = n), (qn = t).attachEvent("onpropertychange", nr))
: "focusout" === e && tr();
}
function ir(e) {
if ("selectionchange" === e || "keyup" === e || "keydown" === e)
return $n(Kn);
}
function or(e, t) {
if ("click" === e) return $n(t);
}
function ar(e, t) {
if ("input" === e || "change" === e) return $n(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 ur(e) {
for (; e && e.firstChild;) e = e.firstChild;
return e;
}
function cr(e, t) {
var n,
r = ur(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 = ur(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 fr() {
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 pr(e) {
var t = fr(),
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,
o = Math.min(r.start, i);
(r = void 0 === r.end ? o : Math.min(r.end, i)),
!e.extend && o > r && ((i = r), (r = o), (o = i)),
(i = cr(n, o));
var a = cr(n, r);
i &&
a &&
(1 !== e.rangeCount ||
e.anchorNode !== i.node ||
e.anchorOffset !== i.offset ||
e.focusNode !== a.node ||
e.focusOffset !== a.offset) &&
((t = t.createRange()).setStart(i.node, i.offset),
e.removeAllRanges(),
o > r
? (e.addRange(t), e.extend(a.node, a.offset))
: (t.setEnd(a.node, a.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 vr = c && "documentMode" in document && 11 >= document.documentMode,
mr = null,
gr = null,
yr = null,
br = !1;
function wr(e, t, n) {
var r =
n.window === n
? n.document
: 9 === n.nodeType
? n
: n.ownerDocument;
br ||
null == mr ||
mr !== Y(r) ||
("selectionStart" in (r = mr) && 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,
}),
(yr && lr(yr, r)) ||
((yr = r),
0 < (r = qr(gr, "onSelect")).length &&
((t = new cn("onSelect", "select", null, t, n)),
e.push({ event: t, listeners: r }),
(t.target = mr))));
}
function _r(e, t) {
var n = {};
return (
(n[e.toLowerCase()] = t.toLowerCase()),
(n["Webkit" + e] = "webkit" + t),
(n["Moz" + e] = "moz" + t),
n
);
}
var xr = {
animationend: _r("Animation", "AnimationEnd"),
animationiteration: _r("Animation", "AnimationIteration"),
animationstart: _r("Animation", "AnimationStart"),
transitionend: _r("Transition", "TransitionEnd"),
},
kr = {},
Sr = {};
function Er(e) {
if (kr[e]) return kr[e];
if (!xr[e]) return e;
var t,
n = xr[e];
for (t in n)
if (n.hasOwnProperty(t) && t in Sr) return (kr[e] = n[t]);
return e;
}
c &&
((Sr = document.createElement("div").style),
"AnimationEvent" in window ||
(delete xr.animationend.animation,
delete xr.animationiteration.animation,
delete xr.animationstart.animation),
"TransitionEvent" in window || delete xr.transitionend.transition);
var Tr = Er("animationend"),
Cr = Er("animationiteration"),
Nr = Er("animationstart"),
jr = Er("transitionend"),
Or = new Map(),
Ar =
"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 Pr(e, t) {
Or.set(e, t), l(t, [e]);
}
for (var Lr = 0; Lr < Ar.length; Lr++) {
var Rr = Ar[Lr];
Pr(Rr.toLowerCase(), "on" + (Rr[0].toUpperCase() + Rr.slice(1)));
}
Pr(Tr, "onAnimationEnd"),
Pr(Cr, "onAnimationIteration"),
Pr(Nr, "onAnimationStart"),
Pr("dblclick", "onDoubleClick"),
Pr("focusin", "onFocus"),
Pr("focusout", "onBlur"),
Pr(jr, "onTransitionEnd"),
u("onMouseEnter", ["mouseout", "mouseover"]),
u("onMouseLeave", ["mouseout", "mouseover"]),
u("onPointerEnter", ["pointerout", "pointerover"]),
u("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 Dr =
"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(
" "
),
Mr = new Set(
"cancel close invalid load scroll toggle".split(" ").concat(Dr)
);
function Ir(e, t, n) {
var r = e.type || "unknown-event";
(e.currentTarget = n),
(function (e, t, n, r, i, a, s, l, u) {
if ((Be.apply(this, arguments), Me)) {
if (!Me) throw Error(o(198));
var c = Ie;
(Me = !1), (Ie = null), ze || ((ze = !0), (Fe = c));
}
})(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 o = void 0;
if (t)
for (var a = r.length - 1; 0 <= a; a--) {
var s = r[a],
l = s.instance,
u = s.currentTarget;
if (((s = s.listener), l !== o && i.isPropagationStopped()))
break e;
Ir(i, s, u), (o = l);
}
else
for (a = 0; a < r.length; a++) {
if (
((l = (s = r[a]).instance),
(u = s.currentTarget),
(s = s.listener),
l !== o && i.isPropagationStopped())
)
break e;
Ir(i, s, u), (o = l);
}
}
}
if (ze) throw ((e = Fe), (ze = !1), (Fe = null), e);
}
function Fr(e, t) {
var n = t[vi];
void 0 === n && (n = t[vi] = new Set());
var r = e + "__bubble";
n.has(r) || (Wr(t, e, 2, !1), n.add(r));
}
function Ur(e, t, n) {
var r = 0;
t && (r |= 4), Wr(n, e, r, t);
}
var Br = "_reactListening" + Math.random().toString(36).slice(2);
function Gr(e) {
if (!e[Br]) {
(e[Br] = !0),
a.forEach(function (t) {
"selectionchange" !== t &&
(Mr.has(t) || Ur(t, !1, e), Ur(t, !0, e));
});
var t = 9 === e.nodeType ? e : e.ownerDocument;
null === t || t[Br] || ((t[Br] = !0), Ur("selectionchange", !1, t));
}
}
function Wr(e, t, n, r) {
switch (Qt(t)) {
case 1:
var i = Vt;
break;
case 4:
i = qt;
break;
default:
i = Kt;
}
(n = i.bind(null, t, n, e)),
(i = void 0),
!Le ||
("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 Hr(e, t, n, r, i) {
var o = r;
if (0 === (1 & t) && 0 === (2 & t) && null !== r)
e: for (; ;) {
if (null === r) return;
var a = r.tag;
if (3 === a || 4 === a) {
var s = r.stateNode.containerInfo;
if (s === i || (8 === s.nodeType && s.parentNode === i)) break;
if (4 === a)
for (a = r.return; null !== a;) {
var l = a.tag;
if (
(3 === l || 4 === l) &&
((l = a.stateNode.containerInfo) === i ||
(8 === l.nodeType && l.parentNode === i))
)
return;
a = a.return;
}
for (; null !== s;) {
if (null === (a = yi(s))) return;
if (5 === (l = a.tag) || 6 === l) {
r = o = a;
continue e;
}
s = s.parentNode;
}
}
r = r.return;
}
Ae(function () {
var r = o,
i = _e(n),
a = [];
e: {
var s = Or.get(e);
if (void 0 !== s) {
var l = cn,
u = e;
switch (e) {
case "keypress":
if (0 === tn(n)) break e;
case "keydown":
case "keyup":
l = Cn;
break;
case "focusin":
(u = "focus"), (l = mn);
break;
case "focusout":
(u = "blur"), (l = mn);
break;
case "beforeblur":
case "afterblur":
l = mn;
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 = pn;
break;
case "drag":
case "dragend":
case "dragenter":
case "dragexit":
case "dragleave":
case "dragover":
case "dragstart":
case "drop":
l = vn;
break;
case "touchcancel":
case "touchend":
case "touchmove":
case "touchstart":
l = jn;
break;
case Tr:
case Cr:
case Nr:
l = gn;
break;
case jr:
l = On;
break;
case "scroll":
l = fn;
break;
case "wheel":
l = Pn;
break;
case "copy":
case "cut":
case "paste":
l = bn;
break;
case "gotpointercapture":
case "lostpointercapture":
case "pointercancel":
case "pointerdown":
case "pointermove":
case "pointerout":
case "pointerover":
case "pointerup":
l = Nn;
}
var c = 0 !== (4 & t),
d = !c && "scroll" === e,
f = c ? (null !== s ? s + "Capture" : null) : s;
c = [];
for (var h, p = r; null !== p;) {
var v = (h = p).stateNode;
if (
(5 === h.tag &&
null !== v &&
((h = v),
null !== f &&
null != (v = Pe(p, f)) &&
c.push(Vr(p, v, h))),
d)
)
break;
p = p.return;
}
0 < c.length &&
((s = new l(s, u, null, n, i)),
a.push({ event: s, listeners: c }));
}
}
if (0 === (7 & t)) {
if (
((l = "mouseout" === e || "pointerout" === e),
(!(s = "mouseover" === e || "pointerover" === e) ||
n === we ||
!(u = n.relatedTarget || n.fromElement) ||
(!yi(u) && !u[pi])) &&
(l || s) &&
((s =
i.window === i
? i
: (s = i.ownerDocument)
? s.defaultView || s.parentWindow
: window),
l
? ((l = r),
null !==
(u = (u = n.relatedTarget || n.toElement)
? yi(u)
: null) &&
(u !== (d = Ge(u)) || (5 !== u.tag && 6 !== u.tag)) &&
(u = null))
: ((l = null), (u = r)),
l !== u))
) {
if (
((c = pn),
(v = "onMouseLeave"),
(f = "onMouseEnter"),
(p = "mouse"),
("pointerout" !== e && "pointerover" !== e) ||
((c = Nn),
(v = "onPointerLeave"),
(f = "onPointerEnter"),
(p = "pointer")),
(d = null == l ? s : wi(l)),
(h = null == u ? s : wi(u)),
((s = new c(v, p + "leave", l, n, i)).target = d),
(s.relatedTarget = h),
(v = null),
yi(i) === r &&
(((c = new c(f, p + "enter", u, n, i)).target = h),
(c.relatedTarget = d),
(v = c)),
(d = v),
l && u)
)
e: {
for (f = u, p = 0, h = c = l; h; h = Kr(h)) p++;
for (h = 0, v = f; v; v = Kr(v)) h++;
for (; 0 < p - h;) (c = Kr(c)), p--;
for (; 0 < h - p;) (f = Kr(f)), h--;
for (; p--;) {
if (c === f || (null !== f && c === f.alternate)) break e;
(c = Kr(c)), (f = Kr(f));
}
c = null;
}
else c = null;
null !== l && Yr(a, s, l, c, !1),
null !== u && null !== d && Yr(a, d, u, c, !0);
}
if (
"select" ===
(l =
(s = r ? wi(r) : window).nodeName &&
s.nodeName.toLowerCase()) ||
("input" === l && "file" === s.type)
)
var m = Qn;
else if (Hn(s))
if (Xn) m = ar;
else {
m = ir;
var g = rr;
}
else
(l = s.nodeName) &&
"input" === l.toLowerCase() &&
("checkbox" === s.type || "radio" === s.type) &&
(m = or);
switch (
(m && (m = m(e, r))
? Vn(a, m, n, i)
: (g && g(e, s, r),
"focusout" === e &&
(g = s._wrapperState) &&
g.controlled &&
"number" === s.type &&
ee(s, "number", s.value)),
(g = r ? wi(r) : window),
e)
) {
case "focusin":
(Hn(g) || "true" === g.contentEditable) &&
((mr = g), (gr = r), (yr = null));
break;
case "focusout":
yr = gr = mr = null;
break;
case "mousedown":
br = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
(br = !1), wr(a, n, i);
break;
case "selectionchange":
if (vr) break;
case "keydown":
case "keyup":
wr(a, n, i);
}
var y;
if (Rn)
e: {
switch (e) {
case "compositionstart":
var b = "onCompositionStart";
break e;
case "compositionend":
b = "onCompositionEnd";
break e;
case "compositionupdate":
b = "onCompositionUpdate";
break e;
}
b = void 0;
}
else
Gn
? Un(e, n) && (b = "onCompositionEnd")
: "keydown" === e &&
229 === n.keyCode &&
(b = "onCompositionStart");
b &&
(In &&
"ko" !== n.locale &&
(Gn || "onCompositionStart" !== b
? "onCompositionEnd" === b && Gn && (y = en())
: ((Jt = "value" in (Xt = i) ? Xt.value : Xt.textContent),
(Gn = !0))),
0 < (g = qr(r, b)).length &&
((b = new wn(b, e, null, n, i)),
a.push({ event: b, listeners: g }),
y ? (b.data = y) : null !== (y = Bn(n)) && (b.data = y))),
(y = Mn
? (function (e, t) {
switch (e) {
case "compositionend":
return Bn(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 || (!Rn && Un(e, t))
? ((e = en()), (Zt = Jt = Xt = 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 In && "ko" !== t.locale ? null : t.data;
}
})(e, n)) &&
0 < (r = qr(r, "onBeforeInput")).length &&
((i = new wn("onBeforeInput", "beforeinput", null, n, i)),
a.push({ event: i, listeners: r }),
(i.data = y));
}
zr(a, t);
});
}
function Vr(e, t, n) {
return { instance: e, listener: t, currentTarget: n };
}
function qr(e, t) {
for (var n = t + "Capture", r = []; null !== e;) {
var i = e,
o = i.stateNode;
5 === i.tag &&
null !== o &&
((i = o),
null != (o = Pe(e, n)) && r.unshift(Vr(e, o, i)),
null != (o = Pe(e, t)) && r.push(Vr(e, o, i))),
(e = e.return);
}
return r;
}
function Kr(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 o = t._reactName, a = []; null !== n && n !== r;) {
var s = n,
l = s.alternate,
u = s.stateNode;
if (null !== l && l === r) break;
5 === s.tag &&
null !== u &&
((s = u),
i
? null != (l = Pe(n, o)) && a.unshift(Vr(n, l, s))
: i || (null != (l = Pe(n, o)) && a.push(Vr(n, l, s)))),
(n = n.return);
}
0 !== a.length && e.push({ event: t, listeners: a });
}
var $r = /\r\n?/g,
Qr = /\u0000|\uFFFD/g;
function Xr(e) {
return ("string" === typeof e ? e : "" + e)
.replace($r, "\n")
.replace(Qr, "");
}
function Jr(e, t, n) {
if (((t = Xr(t)), Xr(e) !== t && n)) throw Error(o(425));
}
function Zr() { }
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,
oi = "function" === typeof Promise ? Promise : void 0,
ai =
"function" === typeof queueMicrotask
? queueMicrotask
: "undefined" !== typeof oi
? function (e) {
return oi.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 ui(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 ci(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),
fi = "__reactFiber$" + di,
hi = "__reactProps$" + di,
pi = "__reactContainer$" + di,
vi = "__reactEvents$" + di,
mi = "__reactListeners$" + di,
gi = "__reactHandles$" + di;
function yi(e) {
var t = e[fi];
if (t) return t;
for (var n = e.parentNode; n;) {
if ((t = n[pi] || n[fi])) {
if (
((n = t.alternate),
null !== t.child || (null !== n && null !== n.child))
)
for (e = ci(e); null !== e;) {
if ((n = e[fi])) return n;
e = ci(e);
}
return t;
}
n = (e = n).parentNode;
}
return null;
}
function bi(e) {
return !(e = e[fi] || e[pi]) ||
(5 !== e.tag && 6 !== e.tag && 13 !== e.tag && 3 !== e.tag)
? null
: e;
}
function wi(e) {
if (5 === e.tag || 6 === e.tag) return e.stateNode;
throw Error(o(33));
}
function _i(e) {
return e[hi] || null;
}
var xi = [],
ki = -1;
function Si(e) {
return { current: e };
}
function Ei(e) {
0 > ki || ((e.current = xi[ki]), (xi[ki] = null), ki--);
}
function Ti(e, t) {
ki++, (xi[ki] = e.current), (e.current = t);
}
var Ci = {},
Ni = Si(Ci),
ji = Si(!1),
Oi = Ci;
function Ai(e, t) {
var n = e.type.contextTypes;
if (!n) return Ci;
var r = e.stateNode;
if (r && r.__reactInternalMemoizedUnmaskedChildContext === t)
return r.__reactInternalMemoizedMaskedChildContext;
var i,
o = {};
for (i in n) o[i] = t[i];
return (
r &&
(((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext =
t),
(e.__reactInternalMemoizedMaskedChildContext = o)),
o
);
}
function Pi(e) {
return null !== (e = e.childContextTypes) && void 0 !== e;
}
function Li() {
Ei(ji), Ei(Ni);
}
function Ri(e, t, n) {
if (Ni.current !== Ci) throw Error(o(168));
Ti(Ni, t), Ti(ji, n);
}
function Di(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(o(108, W(e) || "Unknown", i));
return I({}, n, r);
}
function Mi(e) {
return (
(e =
((e = e.stateNode) &&
e.__reactInternalMemoizedMergedChildContext) ||
Ci),
(Oi = Ni.current),
Ti(Ni, e),
Ti(ji, ji.current),
!0
);
}
function Ii(e, t, n) {
var r = e.stateNode;
if (!r) throw Error(o(169));
n
? ((e = Di(e, t, Oi)),
(r.__reactInternalMemoizedMergedChildContext = e),
Ei(ji),
Ei(Ni),
Ti(Ni, e))
: Ei(ji),
Ti(ji, n);
}
var zi = null,
Fi = !1,
Ui = !1;
function Bi(e) {
null === zi ? (zi = [e]) : zi.push(e);
}
function Gi() {
if (!Ui && null !== zi) {
Ui = !0;
var e = 0,
t = bt;
try {
var n = zi;
for (bt = 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)), Ke(Ze, Gi), i);
} finally {
(bt = t), (Ui = !1);
}
}
return null;
}
var Wi = [],
Hi = 0,
Vi = null,
qi = 0,
Ki = [],
Yi = 0,
$i = null,
Qi = 1,
Xi = "";
function Ji(e, t) {
(Wi[Hi++] = qi), (Wi[Hi++] = Vi), (Vi = e), (qi = t);
}
function Zi(e, t, n) {
(Ki[Yi++] = Qi), (Ki[Yi++] = Xi), (Ki[Yi++] = $i), ($i = e);
var r = Qi;
e = Xi;
var i = 32 - at(r) - 1;
(r &= ~(1 << i)), (n += 1);
var o = 32 - at(t) + i;
if (30 < o) {
var a = i - (i % 5);
(o = (r & ((1 << a) - 1)).toString(32)),
(r >>= a),
(i -= a),
(Qi = (1 << (32 - at(t) + i)) | (n << i) | r),
(Xi = o + e);
} else (Qi = (1 << o) | (n << i) | r), (Xi = e);
}
function eo(e) {
null !== e.return && (Ji(e, 1), Zi(e, 1, 0));
}
function to(e) {
for (; e === Vi;)
(Vi = Wi[--Hi]), (Wi[Hi] = null), (qi = Wi[--Hi]), (Wi[Hi] = null);
for (; e === $i;)
($i = Ki[--Yi]),
(Ki[Yi] = null),
(Xi = Ki[--Yi]),
(Ki[Yi] = null),
(Qi = Ki[--Yi]),
(Ki[Yi] = null);
}
var no = null,
ro = null,
io = !1,
oo = null;
function ao(e, t) {
var n = Au(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 so(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), (no = e), (ro = ui(t.firstChild)), !0)
);
case 6:
return (
null !==
(t = "" === e.pendingProps || 3 !== t.nodeType ? null : t) &&
((e.stateNode = t), (no = e), (ro = null), !0)
);
case 13:
return (
null !== (t = 8 !== t.nodeType ? null : t) &&
((n = null !== $i ? { id: Qi, overflow: Xi } : null),
(e.memoizedState = {
dehydrated: t,
treeContext: n,
retryLane: 1073741824,
}),
((n = Au(18, null, null, 0)).stateNode = t),
(n.return = e),
(e.child = n),
(no = e),
(ro = null),
!0)
);
default:
return !1;
}
}
function lo(e) {
return 0 !== (1 & e.mode) && 0 === (128 & e.flags);
}
function uo(e) {
if (io) {
var t = ro;
if (t) {
var n = t;
if (!so(e, t)) {
if (lo(e)) throw Error(o(418));
t = ui(n.nextSibling);
var r = no;
t && so(e, t)
? ao(r, n)
: ((e.flags = (-4097 & e.flags) | 2), (io = !1), (no = e));
}
} else {
if (lo(e)) throw Error(o(418));
(e.flags = (-4097 & e.flags) | 2), (io = !1), (no = e);
}
}
}
function co(e) {
for (
e = e.return;
null !== e && 5 !== e.tag && 3 !== e.tag && 13 !== e.tag;
)
e = e.return;
no = e;
}
function fo(e) {
if (e !== no) return !1;
if (!io) return co(e), (io = !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 = ro))
) {
if (lo(e)) throw (ho(), Error(o(418)));
for (; t;) ao(e, t), (t = ui(t.nextSibling));
}
if ((co(e), 13 === e.tag)) {
if (!(e = null !== (e = e.memoizedState) ? e.dehydrated : null))
throw Error(o(317));
e: {
for (e = e.nextSibling, t = 0; e;) {
if (8 === e.nodeType) {
var n = e.data;
if ("/$" === n) {
if (0 === t) {
ro = ui(e.nextSibling);
break e;
}
t--;
} else ("$" !== n && "$!" !== n && "$?" !== n) || t++;
}
e = e.nextSibling;
}
ro = null;
}
} else ro = no ? ui(e.stateNode.nextSibling) : null;
return !0;
}
function ho() {
for (var e = ro; e;) e = ui(e.nextSibling);
}
function po() {
(ro = no = null), (io = !1);
}
function vo(e) {
null === oo ? (oo = [e]) : oo.push(e);
}
var mo = w.ReactCurrentBatchConfig;
function go(e, t) {
if (e && e.defaultProps) {
for (var n in ((t = I({}, t)), (e = e.defaultProps)))
void 0 === t[n] && (t[n] = e[n]);
return t;
}
return t;
}
var yo = Si(null),
bo = null,
wo = null,
_o = null;
function xo() {
_o = wo = bo = null;
}
function ko(e) {
var t = yo.current;
Ei(yo), (e._currentValue = t);
}
function So(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 Eo(e, t) {
(bo = e),
(_o = wo = null),
null !== (e = e.dependencies) &&
null !== e.firstContext &&
(0 !== (e.lanes & t) && (ws = !0), (e.firstContext = null));
}
function To(e) {
var t = e._currentValue;
if (_o !== e)
if (
((e = { context: e, memoizedValue: t, next: null }), null === wo)
) {
if (null === bo) throw Error(o(308));
(wo = e), (bo.dependencies = { lanes: 0, firstContext: e });
} else wo = wo.next = e;
return t;
}
var Co = null;
function No(e) {
null === Co ? (Co = [e]) : Co.push(e);
}
function jo(e, t, n, r) {
var i = t.interleaved;
return (
null === i
? ((n.next = n), No(t))
: ((n.next = i.next), (i.next = n)),
(t.interleaved = n),
Oo(e, r)
);
}
function Oo(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 Ao = !1;
function Po(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
lastBaseUpdate: null,
shared: { pending: null, interleaved: null, lanes: 0 },
effects: null,
};
}
function Lo(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 Ro(e, t) {
return {
eventTime: e,
lane: t,
tag: 0,
payload: null,
callback: null,
next: null,
};
}
function Do(e, t, n) {
var r = e.updateQueue;
if (null === r) return null;
if (((r = r.shared), 0 !== (2 & Nl))) {
var i = r.pending;
return (
null === i ? (t.next = t) : ((t.next = i.next), (i.next = t)),
(r.pending = t),
Oo(e, n)
);
}
return (
null === (i = r.interleaved)
? ((t.next = t), No(r))
: ((t.next = i.next), (i.next = t)),
(r.interleaved = t),
Oo(e, n)
);
}
function Mo(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), yt(e, n);
}
}
function Io(e, t) {
var n = e.updateQueue,
r = e.alternate;
if (null !== r && n === (r = r.updateQueue)) {
var i = null,
o = null;
if (null !== (n = n.firstBaseUpdate)) {
do {
var a = {
eventTime: n.eventTime,
lane: n.lane,
tag: n.tag,
payload: n.payload,
callback: n.callback,
next: null,
};
null === o ? (i = o = a) : (o = o.next = a), (n = n.next);
} while (null !== n);
null === o ? (i = o = t) : (o = o.next = t);
} else i = o = t;
return (
(n = {
baseState: r.baseState,
firstBaseUpdate: i,
lastBaseUpdate: o,
shared: r.shared,
effects: r.effects,
}),
void (e.updateQueue = n)
);
}
null === (e = n.lastBaseUpdate)
? (n.firstBaseUpdate = t)
: (e.next = t),
(n.lastBaseUpdate = t);
}
function zo(e, t, n, r) {
var i = e.updateQueue;
Ao = !1;
var o = i.firstBaseUpdate,
a = i.lastBaseUpdate,
s = i.shared.pending;
if (null !== s) {
i.shared.pending = null;
var l = s,
u = l.next;
(l.next = null), null === a ? (o = u) : (a.next = u), (a = l);
var c = e.alternate;
null !== c &&
(s = (c = c.updateQueue).lastBaseUpdate) !== a &&
(null === s ? (c.firstBaseUpdate = u) : (s.next = u),
(c.lastBaseUpdate = l));
}
if (null !== o) {
var d = i.baseState;
for (a = 0, c = u = l = null, s = o; ;) {
var f = s.lane,
h = s.eventTime;
if ((r & f) === f) {
null !== c &&
(c = c.next =
{
eventTime: h,
lane: 0,
tag: s.tag,
payload: s.payload,
callback: s.callback,
next: null,
});
e: {
var p = e,
v = s;
switch (((f = t), (h = n), v.tag)) {
case 1:
if ("function" === typeof (p = v.payload)) {
d = p.call(h, d, f);
break e;
}
d = p;
break e;
case 3:
p.flags = (-65537 & p.flags) | 128;
case 0:
if (
null ===
(f =
"function" === typeof (p = v.payload)
? p.call(h, d, f)
: p) ||
void 0 === f
)
break e;
d = I({}, d, f);
break e;
case 2:
Ao = !0;
}
}
null !== s.callback &&
0 !== s.lane &&
((e.flags |= 64),
null === (f = i.effects) ? (i.effects = [s]) : f.push(s));
} else
(h = {
eventTime: h,
lane: f,
tag: s.tag,
payload: s.payload,
callback: s.callback,
next: null,
}),
null === c ? ((u = c = h), (l = d)) : (c = c.next = h),
(a |= f);
if (null === (s = s.next)) {
if (null === (s = i.shared.pending)) break;
(s = (f = s).next),
(f.next = null),
(i.lastBaseUpdate = f),
(i.shared.pending = null);
}
}
if (
(null === c && (l = d),
(i.baseState = l),
(i.firstBaseUpdate = u),
(i.lastBaseUpdate = c),
null !== (t = i.shared.interleaved))
) {
i = t;
do {
(a |= i.lane), (i = i.next);
} while (i !== t);
} else null === o && (i.shared.lanes = 0);
(Ml |= a), (e.lanes = a), (e.memoizedState = d);
}
}
function Fo(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(o(191, i));
i.call(r);
}
}
}
var Uo = new r.Component().refs;
function Bo(e, t, n, r) {
(n =
null === (n = n(r, (t = e.memoizedState))) || void 0 === n
? t
: I({}, t, n)),
(e.memoizedState = n),
0 === e.lanes && (e.updateQueue.baseState = n);
}
var Go = {
isMounted: function (e) {
return !!(e = e._reactInternals) && Ge(e) === e;
},
enqueueSetState: function (e, t, n) {
e = e._reactInternals;
var r = eu(),
i = tu(e),
o = Ro(r, i);
(o.payload = t),
void 0 !== n && null !== n && (o.callback = n),
null !== (t = Do(e, o, i)) && (nu(t, e, i, r), Mo(t, e, i));
},
enqueueReplaceState: function (e, t, n) {
e = e._reactInternals;
var r = eu(),
i = tu(e),
o = Ro(r, i);
(o.tag = 1),
(o.payload = t),
void 0 !== n && null !== n && (o.callback = n),
null !== (t = Do(e, o, i)) && (nu(t, e, i, r), Mo(t, e, i));
},
enqueueForceUpdate: function (e, t) {
e = e._reactInternals;
var n = eu(),
r = tu(e),
i = Ro(n, r);
(i.tag = 2),
void 0 !== t && null !== t && (i.callback = t),
null !== (t = Do(e, i, r)) && (nu(t, e, r, n), Mo(t, e, r));
},
};
function Wo(e, t, n, r, i, o, a) {
return "function" === typeof (e = e.stateNode).shouldComponentUpdate
? e.shouldComponentUpdate(r, o, a)
: !t.prototype ||
!t.prototype.isPureReactComponent ||
!lr(n, r) ||
!lr(i, o);
}
function Ho(e, t, n) {
var r = !1,
i = Ci,
o = t.contextType;
return (
"object" === typeof o && null !== o
? (o = To(o))
: ((i = Pi(t) ? Oi : Ni.current),
(o = (r = null !== (r = t.contextTypes) && void 0 !== r)
? Ai(e, i)
: Ci)),
(t = new t(n, o)),
(e.memoizedState =
null !== t.state && void 0 !== t.state ? t.state : null),
(t.updater = Go),
(e.stateNode = t),
(t._reactInternals = e),
r &&
(((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext =
i),
(e.__reactInternalMemoizedMaskedChildContext = o)),
t
);
}
function Vo(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 && Go.enqueueReplaceState(t, t.state, null);
}
function qo(e, t, n, r) {
var i = e.stateNode;
(i.props = n), (i.state = e.memoizedState), (i.refs = Uo), Po(e);
var o = t.contextType;
"object" === typeof o && null !== o
? (i.context = To(o))
: ((o = Pi(t) ? Oi : Ni.current), (i.context = Ai(e, o))),
(i.state = e.memoizedState),
"function" === typeof (o = t.getDerivedStateFromProps) &&
(Bo(e, t, o, 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 && Go.enqueueReplaceState(i, i.state, null),
zo(e, n, i, r),
(i.state = e.memoizedState)),
"function" === typeof i.componentDidMount && (e.flags |= 4194308);
}
function Ko(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(o(309));
var r = n.stateNode;
}
if (!r) throw Error(o(147, e));
var i = r,
a = "" + e;
return null !== t &&
null !== t.ref &&
"function" === typeof t.ref &&
t.ref._stringRef === a
? t.ref
: ((t = function (e) {
var t = i.refs;
t === Uo && (t = i.refs = {}),
null === e ? delete t[a] : (t[a] = e);
}),
(t._stringRef = a),
t);
}
if ("string" !== typeof e) throw Error(o(284));
if (!n._owner) throw Error(o(290, e));
}
return e;
}
function Yo(e, t) {
throw (
((e = Object.prototype.toString.call(t)),
Error(
o(
31,
"[object Object]" === e
? "object with keys {" + Object.keys(t).join(", ") + "}"
: e
)
))
);
}
function $o(e) {
return (0, e._init)(e._payload);
}
function Qo(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 = Lu(e, t)).index = 0), (e.sibling = null), e;
}
function a(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 = Iu(n, e.mode, r)).return = e), t)
: (((t = i(t, n)).return = e), t);
}
function u(e, t, n, r) {
var o = n.type;
return o === k
? d(e, t, n.props.children, r, n.key)
: null !== t &&
(t.elementType === o ||
("object" === typeof o &&
null !== o &&
o.$$typeof === P &&
$o(o) === t.type))
? (((r = i(t, n.props)).ref = Ko(e, t, n)), (r.return = e), r)
: (((r = Ru(n.type, n.key, n.props, null, e.mode, r)).ref = Ko(
e,
t,
n
)),
(r.return = e),
r);
}
function c(e, t, n, r) {
return null === t ||
4 !== t.tag ||
t.stateNode.containerInfo !== n.containerInfo ||
t.stateNode.implementation !== n.implementation
? (((t = zu(n, e.mode, r)).return = e), t)
: (((t = i(t, n.children || [])).return = e), t);
}
function d(e, t, n, r, o) {
return null === t || 7 !== t.tag
? (((t = Du(n, e.mode, r, o)).return = e), t)
: (((t = i(t, n)).return = e), t);
}
function f(e, t, n) {
if (("string" === typeof t && "" !== t) || "number" === typeof t)
return ((t = Iu("" + t, e.mode, n)).return = e), t;
if ("object" === typeof t && null !== t) {
switch (t.$$typeof) {
case _:
return (
((n = Ru(t.type, t.key, t.props, null, e.mode, n)).ref = Ko(
e,
null,
t
)),
(n.return = e),
n
);
case x:
return ((t = zu(t, e.mode, n)).return = e), t;
case P:
return f(e, (0, t._init)(t._payload), n);
}
if (te(t) || D(t))
return ((t = Du(t, e.mode, n, null)).return = e), t;
Yo(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 _:
return n.key === i ? u(e, t, n, r) : null;
case x:
return n.key === i ? c(e, t, n, r) : null;
case P:
return h(e, t, (i = n._init)(n._payload), r);
}
if (te(n) || D(n)) return null !== i ? null : d(e, t, n, r, null);
Yo(e, n);
}
return null;
}
function p(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 _:
return u(
t,
(e = e.get(null === r.key ? n : r.key) || null),
r,
i
);
case x:
return c(
t,
(e = e.get(null === r.key ? n : r.key) || null),
r,
i
);
case P:
return p(e, t, n, (0, r._init)(r._payload), i);
}
if (te(r) || D(r))
return d(t, (e = e.get(n) || null), r, i, null);
Yo(t, r);
}
return null;
}
function v(i, o, s, l) {
for (
var u = null, c = null, d = o, v = (o = 0), m = null;
null !== d && v < s.length;
v++
) {
d.index > v ? ((m = d), (d = null)) : (m = d.sibling);
var g = h(i, d, s[v], l);
if (null === g) {
null === d && (d = m);
break;
}
e && d && null === g.alternate && t(i, d),
(o = a(g, o, v)),
null === c ? (u = g) : (c.sibling = g),
(c = g),
(d = m);
}
if (v === s.length) return n(i, d), io && Ji(i, v), u;
if (null === d) {
for (; v < s.length; v++)
null !== (d = f(i, s[v], l)) &&
((o = a(d, o, v)),
null === c ? (u = d) : (c.sibling = d),
(c = d));
return io && Ji(i, v), u;
}
for (d = r(i, d); v < s.length; v++)
null !== (m = p(d, i, v, s[v], l)) &&
(e &&
null !== m.alternate &&
d.delete(null === m.key ? v : m.key),
(o = a(m, o, v)),
null === c ? (u = m) : (c.sibling = m),
(c = m));
return (
e &&
d.forEach(function (e) {
return t(i, e);
}),
io && Ji(i, v),
u
);
}
function m(i, s, l, u) {
var c = D(l);
if ("function" !== typeof c) throw Error(o(150));
if (null == (l = c.call(l))) throw Error(o(151));
for (
var d = (c = null), v = s, m = (s = 0), g = null, y = l.next();
null !== v && !y.done;
m++, y = l.next()
) {
v.index > m ? ((g = v), (v = null)) : (g = v.sibling);
var b = h(i, v, y.value, u);
if (null === b) {
null === v && (v = g);
break;
}
e && v && null === b.alternate && t(i, v),
(s = a(b, s, m)),
null === d ? (c = b) : (d.sibling = b),
(d = b),
(v = g);
}
if (y.done) return n(i, v), io && Ji(i, m), c;
if (null === v) {
for (; !y.done; m++, y = l.next())
null !== (y = f(i, y.value, u)) &&
((s = a(y, s, m)),
null === d ? (c = y) : (d.sibling = y),
(d = y));
return io && Ji(i, m), c;
}
for (v = r(i, v); !y.done; m++, y = l.next())
null !== (y = p(v, i, m, y.value, u)) &&
(e &&
null !== y.alternate &&
v.delete(null === y.key ? m : y.key),
(s = a(y, s, m)),
null === d ? (c = y) : (d.sibling = y),
(d = y));
return (
e &&
v.forEach(function (e) {
return t(i, e);
}),
io && Ji(i, m),
c
);
}
return function e(r, o, a, l) {
if (
("object" === typeof a &&
null !== a &&
a.type === k &&
null === a.key &&
(a = a.props.children),
"object" === typeof a && null !== a)
) {
switch (a.$$typeof) {
case _:
e: {
for (var u = a.key, c = o; null !== c;) {
if (c.key === u) {
if ((u = a.type) === k) {
if (7 === c.tag) {
n(r, c.sibling),
((o = i(c, a.props.children)).return = r),
(r = o);
break e;
}
} else if (
c.elementType === u ||
("object" === typeof u &&
null !== u &&
u.$$typeof === P &&
$o(u) === c.type)
) {
n(r, c.sibling),
((o = i(c, a.props)).ref = Ko(r, c, a)),
(o.return = r),
(r = o);
break e;
}
n(r, c);
break;
}
t(r, c), (c = c.sibling);
}
a.type === k
? (((o = Du(a.props.children, r.mode, l, a.key)).return =
r),
(r = o))
: (((l = Ru(
a.type,
a.key,
a.props,
null,
r.mode,
l
)).ref = Ko(r, o, a)),
(l.return = r),
(r = l));
}
return s(r);
case x:
e: {
for (c = a.key; null !== o;) {
if (o.key === c) {
if (
4 === o.tag &&
o.stateNode.containerInfo === a.containerInfo &&
o.stateNode.implementation === a.implementation
) {
n(r, o.sibling),
((o = i(o, a.children || [])).return = r),
(r = o);
break e;
}
n(r, o);
break;
}
t(r, o), (o = o.sibling);
}
((o = zu(a, r.mode, l)).return = r), (r = o);
}
return s(r);
case P:
return e(r, o, (c = a._init)(a._payload), l);
}
if (te(a)) return v(r, o, a, l);
if (D(a)) return m(r, o, a, l);
Yo(r, a);
}
return ("string" === typeof a && "" !== a) || "number" === typeof a
? ((a = "" + a),
null !== o && 6 === o.tag
? (n(r, o.sibling), ((o = i(o, a)).return = r), (r = o))
: (n(r, o), ((o = Iu(a, r.mode, l)).return = r), (r = o)),
s(r))
: n(r, o);
};
}
var Xo = Qo(!0),
Jo = Qo(!1),
Zo = {},
ea = Si(Zo),
ta = Si(Zo),
na = Si(Zo);
function ra(e) {
if (e === Zo) throw Error(o(174));
return e;
}
function ia(e, t) {
switch ((Ti(na, t), Ti(ta, e), Ti(ea, Zo), (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)
);
}
Ei(ea), Ti(ea, t);
}
function oa() {
Ei(ea), Ei(ta), Ei(na);
}
function aa(e) {
ra(na.current);
var t = ra(ea.current),
n = le(t, e.type);
t !== n && (Ti(ta, e), Ti(ea, n));
}
function sa(e) {
ta.current === e && (Ei(ea), Ei(ta));
}
var la = Si(0);
function ua(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 ca = [];
function da() {
for (var e = 0; e < ca.length; e++)
ca[e]._workInProgressVersionPrimary = null;
ca.length = 0;
}
var fa = w.ReactCurrentDispatcher,
ha = w.ReactCurrentBatchConfig,
pa = 0,
va = null,
ma = null,
ga = null,
ya = !1,
ba = !1,
wa = 0,
_a = 0;
function xa() {
throw Error(o(321));
}
function ka(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 Sa(e, t, n, r, i, a) {
if (
((pa = a),
(va = t),
(t.memoizedState = null),
(t.updateQueue = null),
(t.lanes = 0),
(fa.current = null === e || null === e.memoizedState ? ss : ls),
(e = n(r, i)),
ba)
) {
a = 0;
do {
if (((ba = !1), (wa = 0), 25 <= a)) throw Error(o(301));
(a += 1),
(ga = ma = null),
(t.updateQueue = null),
(fa.current = us),
(e = n(r, i));
} while (ba);
}
if (
((fa.current = as),
(t = null !== ma && null !== ma.next),
(pa = 0),
(ga = ma = va = null),
(ya = !1),
t)
)
throw Error(o(300));
return e;
}
function Ea() {
var e = 0 !== wa;
return (wa = 0), e;
}
function Ta() {
var e = {
memoizedState: null,
baseState: null,
baseQueue: null,
queue: null,
next: null,
};
return (
null === ga ? (va.memoizedState = ga = e) : (ga = ga.next = e), ga
);
}
function Ca() {
if (null === ma) {
var e = va.alternate;
e = null !== e ? e.memoizedState : null;
} else e = ma.next;
var t = null === ga ? va.memoizedState : ga.next;
if (null !== t) (ga = t), (ma = e);
else {
if (null === e) throw Error(o(310));
(e = {
memoizedState: (ma = e).memoizedState,
baseState: ma.baseState,
baseQueue: ma.baseQueue,
queue: ma.queue,
next: null,
}),
null === ga ? (va.memoizedState = ga = e) : (ga = ga.next = e);
}
return ga;
}
function Na(e, t) {
return "function" === typeof t ? t(e) : t;
}
function ja(e) {
var t = Ca(),
n = t.queue;
if (null === n) throw Error(o(311));
n.lastRenderedReducer = e;
var r = ma,
i = r.baseQueue,
a = n.pending;
if (null !== a) {
if (null !== i) {
var s = i.next;
(i.next = a.next), (a.next = s);
}
(r.baseQueue = i = a), (n.pending = null);
}
if (null !== i) {
(a = i.next), (r = r.baseState);
var l = (s = null),
u = null,
c = a;
do {
var d = c.lane;
if ((pa & d) === d)
null !== u &&
(u = u.next =
{
lane: 0,
action: c.action,
hasEagerState: c.hasEagerState,
eagerState: c.eagerState,
next: null,
}),
(r = c.hasEagerState ? c.eagerState : e(r, c.action));
else {
var f = {
lane: d,
action: c.action,
hasEagerState: c.hasEagerState,
eagerState: c.eagerState,
next: null,
};
null === u ? ((l = u = f), (s = r)) : (u = u.next = f),
(va.lanes |= d),
(Ml |= d);
}
c = c.next;
} while (null !== c && c !== a);
null === u ? (s = r) : (u.next = l),
sr(r, t.memoizedState) || (ws = !0),
(t.memoizedState = r),
(t.baseState = s),
(t.baseQueue = u),
(n.lastRenderedState = r);
}
if (null !== (e = n.interleaved)) {
i = e;
do {
(a = i.lane), (va.lanes |= a), (Ml |= a), (i = i.next);
} while (i !== e);
} else null === i && (n.lanes = 0);
return [t.memoizedState, n.dispatch];
}
function Oa(e) {
var t = Ca(),
n = t.queue;
if (null === n) throw Error(o(311));
n.lastRenderedReducer = e;
var r = n.dispatch,
i = n.pending,
a = t.memoizedState;
if (null !== i) {
n.pending = null;
var s = (i = i.next);
do {
(a = e(a, s.action)), (s = s.next);
} while (s !== i);
sr(a, t.memoizedState) || (ws = !0),
(t.memoizedState = a),
null === t.baseQueue && (t.baseState = a),
(n.lastRenderedState = a);
}
return [a, r];
}
function Aa() { }
function Pa(e, t) {
var n = va,
r = Ca(),
i = t(),
a = !sr(r.memoizedState, i);
if (
(a && ((r.memoizedState = i), (ws = !0)),
(r = r.queue),
Ha(Da.bind(null, n, r, e), [e]),
r.getSnapshot !== t ||
a ||
(null !== ga && 1 & ga.memoizedState.tag))
) {
if (
((n.flags |= 2048),
Fa(9, Ra.bind(null, n, r, i, t), void 0, null),
null === jl)
)
throw Error(o(349));
0 !== (30 & pa) || La(n, t, i);
}
return i;
}
function La(e, t, n) {
(e.flags |= 16384),
(e = { getSnapshot: t, value: n }),
null === (t = va.updateQueue)
? ((t = { lastEffect: null, stores: null }),
(va.updateQueue = t),
(t.stores = [e]))
: null === (n = t.stores)
? (t.stores = [e])
: n.push(e);
}
function Ra(e, t, n, r) {
(t.value = n), (t.getSnapshot = r), Ma(t) && Ia(e);
}
function Da(e, t, n) {
return n(function () {
Ma(t) && Ia(e);
});
}
function Ma(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
return !sr(e, n);
} catch (r) {
return !0;
}
}
function Ia(e) {
var t = Oo(e, 1);
null !== t && nu(t, e, 1, -1);
}
function za(e) {
var t = Ta();
return (
"function" === typeof e && (e = e()),
(t.memoizedState = t.baseState = e),
(e = {
pending: null,
interleaved: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: Na,
lastRenderedState: e,
}),
(t.queue = e),
(e = e.dispatch = ns.bind(null, va, e)),
[t.memoizedState, e]
);
}
function Fa(e, t, n, r) {
return (
(e = { tag: e, create: t, destroy: n, deps: r, next: null }),
null === (t = va.updateQueue)
? ((t = { lastEffect: null, stores: null }),
(va.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 Ua() {
return Ca().memoizedState;
}
function Ba(e, t, n, r) {
var i = Ta();
(va.flags |= e),
(i.memoizedState = Fa(1 | t, n, void 0, void 0 === r ? null : r));
}
function Ga(e, t, n, r) {
var i = Ca();
r = void 0 === r ? null : r;
var o = void 0;
if (null !== ma) {
var a = ma.memoizedState;
if (((o = a.destroy), null !== r && ka(r, a.deps)))
return void (i.memoizedState = Fa(t, n, o, r));
}
(va.flags |= e), (i.memoizedState = Fa(1 | t, n, o, r));
}
function Wa(e, t) {
return Ba(8390656, 8, e, t);
}
function Ha(e, t) {
return Ga(2048, 8, e, t);
}
function Va(e, t) {
return Ga(4, 2, e, t);
}
function qa(e, t) {
return Ga(4, 4, e, t);
}
function Ka(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 Ya(e, t, n) {
return (
(n = null !== n && void 0 !== n ? n.concat([e]) : null),
Ga(4, 4, Ka.bind(null, t, e), n)
);
}
function $a() { }
function Qa(e, t) {
var n = Ca();
t = void 0 === t ? null : t;
var r = n.memoizedState;
return null !== r && null !== t && ka(t, r[1])
? r[0]
: ((n.memoizedState = [e, t]), e);
}
function Xa(e, t) {
var n = Ca();
t = void 0 === t ? null : t;
var r = n.memoizedState;
return null !== r && null !== t && ka(t, r[1])
? r[0]
: ((e = e()), (n.memoizedState = [e, t]), e);
}
function Ja(e, t, n) {
return 0 === (21 & pa)
? (e.baseState && ((e.baseState = !1), (ws = !0)),
(e.memoizedState = n))
: (sr(n, t) ||
((n = vt()), (va.lanes |= n), (Ml |= n), (e.baseState = !0)),
t);
}
function Za(e, t) {
var n = bt;
(bt = 0 !== n && 4 > n ? n : 4), e(!0);
var r = ha.transition;
ha.transition = {};
try {
e(!1), t();
} finally {
(bt = n), (ha.transition = r);
}
}
function es() {
return Ca().memoizedState;
}
function ts(e, t, n) {
var r = tu(e);
if (
((n = {
lane: r,
action: n,
hasEagerState: !1,
eagerState: null,
next: null,
}),
rs(e))
)
is(t, n);
else if (null !== (n = jo(e, t, n, r))) {
nu(n, e, r, eu()), os(n, t, r);
}
}
function ns(e, t, n) {
var r = tu(e),
i = {
lane: r,
action: n,
hasEagerState: !1,
eagerState: null,
next: null,
};
if (rs(e)) is(t, i);
else {
var o = e.alternate;
if (
0 === e.lanes &&
(null === o || 0 === o.lanes) &&
null !== (o = t.lastRenderedReducer)
)
try {
var a = t.lastRenderedState,
s = o(a, n);
if (((i.hasEagerState = !0), (i.eagerState = s), sr(s, a))) {
var l = t.interleaved;
return (
null === l
? ((i.next = i), No(t))
: ((i.next = l.next), (l.next = i)),
void (t.interleaved = i)
);
}
} catch (u) { }
null !== (n = jo(e, t, i, r)) &&
(nu(n, e, r, (i = eu())), os(n, t, r));
}
}
function rs(e) {
var t = e.alternate;
return e === va || (null !== t && t === va);
}
function is(e, t) {
ba = ya = !0;
var n = e.pending;
null === n ? (t.next = t) : ((t.next = n.next), (n.next = t)),
(e.pending = t);
}
function os(e, t, n) {
if (0 !== (4194240 & n)) {
var r = t.lanes;
(n |= r &= e.pendingLanes), (t.lanes = n), yt(e, n);
}
}
var as = {
readContext: To,
useCallback: xa,
useContext: xa,
useEffect: xa,
useImperativeHandle: xa,
useInsertionEffect: xa,
useLayoutEffect: xa,
useMemo: xa,
useReducer: xa,
useRef: xa,
useState: xa,
useDebugValue: xa,
useDeferredValue: xa,
useTransition: xa,
useMutableSource: xa,
useSyncExternalStore: xa,
useId: xa,
unstable_isNewReconciler: !1,
},
ss = {
readContext: To,
useCallback: function (e, t) {
return (Ta().memoizedState = [e, void 0 === t ? null : t]), e;
},
useContext: To,
useEffect: Wa,
useImperativeHandle: function (e, t, n) {
return (
(n = null !== n && void 0 !== n ? n.concat([e]) : null),
Ba(4194308, 4, Ka.bind(null, t, e), n)
);
},
useLayoutEffect: function (e, t) {
return Ba(4194308, 4, e, t);
},
useInsertionEffect: function (e, t) {
return Ba(4, 2, e, t);
},
useMemo: function (e, t) {
var n = Ta();
return (
(t = void 0 === t ? null : t),
(e = e()),
(n.memoizedState = [e, t]),
e
);
},
useReducer: function (e, t, n) {
var r = Ta();
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, va, e)),
[r.memoizedState, e]
);
},
useRef: function (e) {
return (e = { current: e }), (Ta().memoizedState = e);
},
useState: za,
useDebugValue: $a,
useDeferredValue: function (e) {
return (Ta().memoizedState = e);
},
useTransition: function () {
var e = za(!1),
t = e[0];
return (
(e = Za.bind(null, e[1])), (Ta().memoizedState = e), [t, e]
);
},
useMutableSource: function () { },
useSyncExternalStore: function (e, t, n) {
var r = va,
i = Ta();
if (io) {
if (void 0 === n) throw Error(o(407));
n = n();
} else {
if (((n = t()), null === jl)) throw Error(o(349));
0 !== (30 & pa) || La(r, t, n);
}
i.memoizedState = n;
var a = { value: n, getSnapshot: t };
return (
(i.queue = a),
Wa(Da.bind(null, r, a, e), [e]),
(r.flags |= 2048),
Fa(9, Ra.bind(null, r, a, n, t), void 0, null),
n
);
},
useId: function () {
var e = Ta(),
t = jl.identifierPrefix;
if (io) {
var n = Xi;
(t =
":" +
t +
"R" +
(n = (Qi & ~(1 << (32 - at(Qi) - 1))).toString(32) + n)),
0 < (n = wa++) && (t += "H" + n.toString(32)),
(t += ":");
} else t = ":" + t + "r" + (n = _a++).toString(32) + ":";
return (e.memoizedState = t);
},
unstable_isNewReconciler: !1,
},
ls = {
readContext: To,
useCallback: Qa,
useContext: To,
useEffect: Ha,
useImperativeHandle: Ya,
useInsertionEffect: Va,
useLayoutEffect: qa,
useMemo: Xa,
useReducer: ja,
useRef: Ua,
useState: function () {
return ja(Na);
},
useDebugValue: $a,
useDeferredValue: function (e) {
return Ja(Ca(), ma.memoizedState, e);
},
useTransition: function () {
return [ja(Na)[0], Ca().memoizedState];
},
useMutableSource: Aa,
useSyncExternalStore: Pa,
useId: es,
unstable_isNewReconciler: !1,
},
us = {
readContext: To,
useCallback: Qa,
useContext: To,
useEffect: Ha,
useImperativeHandle: Ya,
useInsertionEffect: Va,
useLayoutEffect: qa,
useMemo: Xa,
useReducer: Oa,
useRef: Ua,
useState: function () {
return Oa(Na);
},
useDebugValue: $a,
useDeferredValue: function (e) {
var t = Ca();
return null === ma
? (t.memoizedState = e)
: Ja(t, ma.memoizedState, e);
},
useTransition: function () {
return [Oa(Na)[0], Ca().memoizedState];
},
useMutableSource: Aa,
useSyncExternalStore: Pa,
useId: es,
unstable_isNewReconciler: !1,
};
function cs(e, t) {
try {
var n = "",
r = t;
do {
(n += B(r)), (r = r.return);
} while (r);
var i = n;
} catch (o) {
i = "\nError generating stack: " + o.message + "\n" + o.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 fs(e, t) {
try {
console.error(t.value);
} catch (n) {
setTimeout(function () {
throw n;
});
}
}
var hs = "function" === typeof WeakMap ? WeakMap : Map;
function ps(e, t, n) {
((n = Ro(-1, n)).tag = 3), (n.payload = { element: null });
var r = t.value;
return (
(n.callback = function () {
Hl || ((Hl = !0), (Vl = r)), fs(0, t);
}),
n
);
}
function vs(e, t, n) {
(n = Ro(-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 () {
fs(0, t);
});
}
var o = e.stateNode;
return (
null !== o &&
"function" === typeof o.componentDidCatch &&
(n.callback = function () {
fs(0, t),
"function" !== typeof r &&
(null === ql ? (ql = new Set([this])) : ql.add(this));
var e = t.stack;
this.componentDidCatch(t.value, {
componentStack: null !== e ? e : "",
});
}),
n
);
}
function ms(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 = Eu.bind(null, e, t, n)), t.then(e, e));
}
function gs(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 ys(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 = Ro(-1, 1)).tag = 2), Do(n, t, 1))),
(n.lanes |= 1)),
e)
: ((e.flags |= 65536), (e.lanes = i), e);
}
var bs = w.ReactCurrentOwner,
ws = !1;
function _s(e, t, n, r) {
t.child = null === e ? Jo(t, null, n, r) : Xo(t, e.child, n, r);
}
function xs(e, t, n, r, i) {
n = n.render;
var o = t.ref;
return (
Eo(t, i),
(r = Sa(e, t, n, r, o, i)),
(n = Ea()),
null === e || ws
? (io && n && eo(t), (t.flags |= 1), _s(e, t, r, i), t.child)
: ((t.updateQueue = e.updateQueue),
(t.flags &= -2053),
(e.lanes &= ~i),
Hs(e, t, i))
);
}
function ks(e, t, n, r, i) {
if (null === e) {
var o = n.type;
return "function" !== typeof o ||
Pu(o) ||
void 0 !== o.defaultProps ||
null !== n.compare ||
void 0 !== n.defaultProps
? (((e = Ru(n.type, null, r, t, t.mode, i)).ref = t.ref),
(e.return = t),
(t.child = e))
: ((t.tag = 15), (t.type = o), Ss(e, t, o, r, i));
}
if (((o = e.child), 0 === (e.lanes & i))) {
var a = o.memoizedProps;
if (
(n = null !== (n = n.compare) ? n : lr)(a, r) &&
e.ref === t.ref
)
return Hs(e, t, i);
}
return (
(t.flags |= 1),
((e = Lu(o, r)).ref = t.ref),
(e.return = t),
(t.child = e)
);
}
function Ss(e, t, n, r, i) {
if (null !== e) {
var o = e.memoizedProps;
if (lr(o, r) && e.ref === t.ref) {
if (((ws = !1), (t.pendingProps = r = o), 0 === (e.lanes & i)))
return (t.lanes = e.lanes), Hs(e, t, i);
0 !== (131072 & e.flags) && (ws = !0);
}
}
return Cs(e, t, n, r, i);
}
function Es(e, t, n) {
var r = t.pendingProps,
i = r.children,
o = null !== e ? e.memoizedState : null;
if ("hidden" === r.mode)
if (0 === (1 & t.mode))
(t.memoizedState = {
baseLanes: 0,
cachePool: null,
transitions: null,
}),
Ti(Ll, Pl),
(Pl |= n);
else {
if (0 === (1073741824 & n))
return (
(e = null !== o ? o.baseLanes | n : n),
(t.lanes = t.childLanes = 1073741824),
(t.memoizedState = {
baseLanes: e,
cachePool: null,
transitions: null,
}),
(t.updateQueue = null),
Ti(Ll, Pl),
(Pl |= e),
null
);
(t.memoizedState = {
baseLanes: 0,
cachePool: null,
transitions: null,
}),
(r = null !== o ? o.baseLanes : n),
Ti(Ll, Pl),
(Pl |= r);
}
else
null !== o
? ((r = o.baseLanes | n), (t.memoizedState = null))
: (r = n),
Ti(Ll, Pl),
(Pl |= r);
return _s(e, t, i, n), t.child;
}
function Ts(e, t) {
var n = t.ref;
((null === e && null !== n) || (null !== e && e.ref !== n)) &&
((t.flags |= 512), (t.flags |= 2097152));
}
function Cs(e, t, n, r, i) {
var o = Pi(n) ? Oi : Ni.current;
return (
(o = Ai(t, o)),
Eo(t, i),
(n = Sa(e, t, n, r, o, i)),
(r = Ea()),
null === e || ws
? (io && r && eo(t), (t.flags |= 1), _s(e, t, n, i), t.child)
: ((t.updateQueue = e.updateQueue),
(t.flags &= -2053),
(e.lanes &= ~i),
Hs(e, t, i))
);
}
function Ns(e, t, n, r, i) {
if (Pi(n)) {
var o = !0;
Mi(t);
} else o = !1;
if ((Eo(t, i), null === t.stateNode))
Ws(e, t), Ho(t, n, r), qo(t, n, r, i), (r = !0);
else if (null === e) {
var a = t.stateNode,
s = t.memoizedProps;
a.props = s;
var l = a.context,
u = n.contextType;
"object" === typeof u && null !== u
? (u = To(u))
: (u = Ai(t, (u = Pi(n) ? Oi : Ni.current)));
var c = n.getDerivedStateFromProps,
d =
"function" === typeof c ||
"function" === typeof a.getSnapshotBeforeUpdate;
d ||
("function" !== typeof a.UNSAFE_componentWillReceiveProps &&
"function" !== typeof a.componentWillReceiveProps) ||
((s !== r || l !== u) && Vo(t, a, r, u)),
(Ao = !1);
var f = t.memoizedState;
(a.state = f),
zo(t, r, a, i),
(l = t.memoizedState),
s !== r || f !== l || ji.current || Ao
? ("function" === typeof c &&
(Bo(t, n, c, r), (l = t.memoizedState)),
(s = Ao || Wo(t, n, s, r, f, l, u))
? (d ||
("function" !== typeof a.UNSAFE_componentWillMount &&
"function" !== typeof a.componentWillMount) ||
("function" === typeof a.componentWillMount &&
a.componentWillMount(),
"function" === typeof a.UNSAFE_componentWillMount &&
a.UNSAFE_componentWillMount()),
"function" === typeof a.componentDidMount &&
(t.flags |= 4194308))
: ("function" === typeof a.componentDidMount &&
(t.flags |= 4194308),
(t.memoizedProps = r),
(t.memoizedState = l)),
(a.props = r),
(a.state = l),
(a.context = u),
(r = s))
: ("function" === typeof a.componentDidMount &&
(t.flags |= 4194308),
(r = !1));
} else {
(a = t.stateNode),
Lo(e, t),
(s = t.memoizedProps),
(u = t.type === t.elementType ? s : go(t.type, s)),
(a.props = u),
(d = t.pendingProps),
(f = a.context),
"object" === typeof (l = n.contextType) && null !== l
? (l = To(l))
: (l = Ai(t, (l = Pi(n) ? Oi : Ni.current)));
var h = n.getDerivedStateFromProps;
(c =
"function" === typeof h ||
"function" === typeof a.getSnapshotBeforeUpdate) ||
("function" !== typeof a.UNSAFE_componentWillReceiveProps &&
"function" !== typeof a.componentWillReceiveProps) ||
((s !== d || f !== l) && Vo(t, a, r, l)),
(Ao = !1),
(f = t.memoizedState),
(a.state = f),
zo(t, r, a, i);
var p = t.memoizedState;
s !== d || f !== p || ji.current || Ao
? ("function" === typeof h &&
(Bo(t, n, h, r), (p = t.memoizedState)),
(u = Ao || Wo(t, n, u, r, f, p, l) || !1)
? (c ||
("function" !== typeof a.UNSAFE_componentWillUpdate &&
"function" !== typeof a.componentWillUpdate) ||
("function" === typeof a.componentWillUpdate &&
a.componentWillUpdate(r, p, l),
"function" === typeof a.UNSAFE_componentWillUpdate &&
a.UNSAFE_componentWillUpdate(r, p, l)),
"function" === typeof a.componentDidUpdate &&
(t.flags |= 4),
"function" === typeof a.getSnapshotBeforeUpdate &&
(t.flags |= 1024))
: ("function" !== typeof a.componentDidUpdate ||
(s === e.memoizedProps && f === e.memoizedState) ||
(t.flags |= 4),
"function" !== typeof a.getSnapshotBeforeUpdate ||
(s === e.memoizedProps && f === e.memoizedState) ||
(t.flags |= 1024),
(t.memoizedProps = r),
(t.memoizedState = p)),
(a.props = r),
(a.state = p),
(a.context = l),
(r = u))
: ("function" !== typeof a.componentDidUpdate ||
(s === e.memoizedProps && f === e.memoizedState) ||
(t.flags |= 4),
"function" !== typeof a.getSnapshotBeforeUpdate ||
(s === e.memoizedProps && f === e.memoizedState) ||
(t.flags |= 1024),
(r = !1));
}
return js(e, t, n, r, o, i);
}
function js(e, t, n, r, i, o) {
Ts(e, t);
var a = 0 !== (128 & t.flags);
if (!r && !a) return i && Ii(t, n, !1), Hs(e, t, o);
(r = t.stateNode), (bs.current = t);
var s =
a && "function" !== typeof n.getDerivedStateFromError
? null
: r.render();
return (
(t.flags |= 1),
null !== e && a
? ((t.child = Xo(t, e.child, null, o)),
(t.child = Xo(t, null, s, o)))
: _s(e, t, s, o),
(t.memoizedState = r.state),
i && Ii(t, n, !0),
t.child
);
}
function Os(e) {
var t = e.stateNode;
t.pendingContext
? Ri(0, t.pendingContext, t.pendingContext !== t.context)
: t.context && Ri(0, t.context, !1),
ia(e, t.containerInfo);
}
function As(e, t, n, r, i) {
return po(), vo(i), (t.flags |= 256), _s(e, t, n, r), t.child;
}
var Ps,
Ls,
Rs,
Ds = { dehydrated: null, treeContext: null, retryLane: 0 };
function Ms(e) {
return { baseLanes: e, cachePool: null, transitions: null };
}
function Is(e, t, n) {
var r,
i = t.pendingProps,
a = la.current,
s = !1,
l = 0 !== (128 & t.flags);
if (
((r = l) ||
(r = (null === e || null !== e.memoizedState) && 0 !== (2 & a)),
r
? ((s = !0), (t.flags &= -129))
: (null !== e && null === e.memoizedState) || (a |= 1),
Ti(la, 1 & a),
null === e)
)
return (
uo(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 = Mu(l, i, 0, null)),
(e = Du(e, i, n, null)),
(s.return = t),
(e.return = t),
(s.sibling = e),
(t.child = s),
(t.child.memoizedState = Ms(n)),
(t.memoizedState = Ds),
e)
: zs(t, l))
);
if (null !== (a = e.memoizedState) && null !== (r = a.dehydrated))
return (function (e, t, n, r, i, a, s) {
if (n)
return 256 & t.flags
? ((t.flags &= -257), Fs(e, t, s, (r = ds(Error(o(422))))))
: null !== t.memoizedState
? ((t.child = e.child), (t.flags |= 128), null)
: ((a = r.fallback),
(i = t.mode),
(r = Mu(
{ mode: "visible", children: r.children },
i,
0,
null
)),
((a = Du(a, i, s, null)).flags |= 2),
(r.return = t),
(a.return = t),
(r.sibling = a),
(t.child = r),
0 !== (1 & t.mode) && Xo(t, e.child, null, s),
(t.child.memoizedState = Ms(s)),
(t.memoizedState = Ds),
a);
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((a = Error(o(419))), r, void 0)))
);
}
if (((l = 0 !== (s & e.childLanes)), ws || l)) {
if (null !== (r = jl)) {
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 !== a.retryLane &&
((a.retryLane = i), Oo(e, i), nu(r, e, i, -1));
}
return vu(), Fs(e, t, s, (r = ds(Error(o(421)))));
}
return "$?" === i.data
? ((t.flags |= 128),
(t.child = e.child),
(t = Cu.bind(null, e)),
(i._reactRetry = t),
null)
: ((e = a.treeContext),
(ro = ui(i.nextSibling)),
(no = t),
(io = !0),
(oo = null),
null !== e &&
((Ki[Yi++] = Qi),
(Ki[Yi++] = Xi),
(Ki[Yi++] = $i),
(Qi = e.id),
(Xi = e.overflow),
($i = t)),
((t = zs(t, r.children)).flags |= 4096),
t);
})(e, t, l, i, r, a, n);
if (s) {
(s = i.fallback), (l = t.mode), (r = (a = e.child).sibling);
var u = { mode: "hidden", children: i.children };
return (
0 === (1 & l) && t.child !== a
? (((i = t.child).childLanes = 0),
(i.pendingProps = u),
(t.deletions = null))
: ((i = Lu(a, u)).subtreeFlags = 14680064 & a.subtreeFlags),
null !== r
? (s = Lu(r, s))
: ((s = Du(s, l, n, null)).flags |= 2),
(s.return = t),
(i.return = t),
(i.sibling = s),
(t.child = i),
(i = s),
(s = t.child),
(l =
null === (l = e.child.memoizedState)
? Ms(n)
: {
baseLanes: l.baseLanes | n,
cachePool: null,
transitions: l.transitions,
}),
(s.memoizedState = l),
(s.childLanes = e.childLanes & ~n),
(t.memoizedState = Ds),
i
);
}
return (
(e = (s = e.child).sibling),
(i = Lu(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 = Mu(
{ mode: "visible", children: t },
e.mode,
0,
null
)).return = e),
(e.child = t)
);
}
function Fs(e, t, n, r) {
return (
null !== r && vo(r),
Xo(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), So(e.return, t, n);
}
function Bs(e, t, n, r, i) {
var o = e.memoizedState;
null === o
? (e.memoizedState = {
isBackwards: t,
rendering: null,
renderingStartTime: 0,
last: r,
tail: n,
tailMode: i,
})
: ((o.isBackwards = t),
(o.rendering = null),
(o.renderingStartTime = 0),
(o.last = r),
(o.tail = n),
(o.tailMode = i));
}
function Gs(e, t, n) {
var r = t.pendingProps,
i = r.revealOrder,
o = r.tail;
if ((_s(e, t, r.children, n), 0 !== (2 & (r = la.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 ((Ti(la, 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 === ua(e) && (i = n),
(n = n.sibling);
null === (n = i)
? ((i = t.child), (t.child = null))
: ((i = n.sibling), (n.sibling = null)),
Bs(t, !1, i, n, o);
break;
case "backwards":
for (n = null, i = t.child, t.child = null; null !== i;) {
if (null !== (e = i.alternate) && null === ua(e)) {
t.child = i;
break;
}
(e = i.sibling), (i.sibling = n), (n = i), (i = e);
}
Bs(t, !0, n, null, o);
break;
case "together":
Bs(t, !1, null, null, void 0);
break;
default:
t.memoizedState = null;
}
return t.child;
}
function Ws(e, t) {
0 === (1 & t.mode) &&
null !== e &&
((e.alternate = null), (t.alternate = null), (t.flags |= 2));
}
function Hs(e, t, n) {
if (
(null !== e && (t.dependencies = e.dependencies),
(Ml |= t.lanes),
0 === (n & t.childLanes))
)
return null;
if (null !== e && t.child !== e.child) throw Error(o(153));
if (null !== t.child) {
for (
n = Lu((e = t.child), e.pendingProps), t.child = n, n.return = t;
null !== e.sibling;
)
(e = e.sibling),
((n = n.sibling = Lu(e, e.pendingProps)).return = t);
n.sibling = null;
}
return t.child;
}
function Vs(e, t) {
if (!io)
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 qs(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 Ks(e, t, n) {
var r = t.pendingProps;
switch ((to(t), t.tag)) {
case 2:
case 16:
case 15:
case 0:
case 11:
case 7:
case 8:
case 12:
case 9:
case 14:
return qs(t), null;
case 1:
case 17:
return Pi(t.type) && Li(), qs(t), null;
case 3:
return (
(r = t.stateNode),
oa(),
Ei(ji),
Ei(Ni),
da(),
r.pendingContext &&
((r.context = r.pendingContext), (r.pendingContext = null)),
(null !== e && null !== e.child) ||
(fo(t)
? (t.flags |= 4)
: null === e ||
(e.memoizedState.isDehydrated && 0 === (256 & t.flags)) ||
((t.flags |= 1024),
null !== oo && (au(oo), (oo = null)))),
qs(t),
null
);
case 5:
sa(t);
var i = ra(na.current);
if (((n = t.type), null !== e && null != t.stateNode))
Ls(e, t, n, r),
e.ref !== t.ref && ((t.flags |= 512), (t.flags |= 2097152));
else {
if (!r) {
if (null === t.stateNode) throw Error(o(166));
return qs(t), null;
}
if (((e = ra(ea.current)), fo(t))) {
(r = t.stateNode), (n = t.type);
var a = t.memoizedProps;
switch (
((r[fi] = t), (r[hi] = a), (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 < Dr.length; i++) Fr(Dr[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, a), Fr("invalid", r);
break;
case "select":
(r._wrapperState = { wasMultiple: !!a.multiple }),
Fr("invalid", r);
break;
case "textarea":
ie(r, a), Fr("invalid", r);
}
for (var l in (ye(n, a), (i = null), a))
if (a.hasOwnProperty(l)) {
var u = a[l];
"children" === l
? "string" === typeof u
? r.textContent !== u &&
(!0 !== a.suppressHydrationWarning &&
Jr(r.textContent, u, e),
(i = ["children", u]))
: "number" === typeof u &&
r.textContent !== "" + u &&
(!0 !== a.suppressHydrationWarning &&
Jr(r.textContent, u, e),
(i = ["children", "" + u]))
: s.hasOwnProperty(l) &&
null != u &&
"onScroll" === l &&
Fr("scroll", r);
}
switch (n) {
case "input":
q(r), Z(r, a, !0);
break;
case "textarea":
q(r), ae(r);
break;
case "select":
case "option":
break;
default:
"function" === typeof a.onClick && (r.onclick = Zr);
}
(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 =
""),
(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[fi] = t),
(e[hi] = r),
Ps(e, t),
(t.stateNode = e);
e: {
switch (((l = be(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 < Dr.length; i++) Fr(Dr[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 = $(e, r)), Fr("invalid", e);
break;
case "option":
default:
i = r;
break;
case "select":
(e._wrapperState = { wasMultiple: !!r.multiple }),
(i = I({}, r, { value: void 0 })),
Fr("invalid", e);
break;
case "textarea":
ie(e, r), (i = re(e, r)), Fr("invalid", e);
}
for (a in (ye(n, i), (u = i)))
if (u.hasOwnProperty(a)) {
var c = u[a];
"style" === a
? me(e, c)
: "dangerouslySetInnerHTML" === a
? null != (c = c ? c.__html : void 0) && de(e, c)
: "children" === a
? "string" === typeof c
? ("textarea" !== n || "" !== c) && fe(e, c)
: "number" === typeof c && fe(e, "" + c)
: "suppressContentEditableWarning" !== a &&
"suppressHydrationWarning" !== a &&
"autoFocus" !== a &&
(s.hasOwnProperty(a)
? null != c && "onScroll" === a && Fr("scroll", e)
: null != c && b(e, a, c, l));
}
switch (n) {
case "input":
q(e), Z(e, r, !1);
break;
case "textarea":
q(e), ae(e);
break;
case "option":
null != r.value &&
e.setAttribute("value", "" + H(r.value));
break;
case "select":
(e.multiple = !!r.multiple),
null != (a = r.value)
? ne(e, !!r.multiple, a, !1)
: null != r.defaultValue &&
ne(e, !!r.multiple, r.defaultValue, !0);
break;
default:
"function" === typeof i.onClick && (e.onclick = Zr);
}
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 qs(t), null;
case 6:
if (e && null != t.stateNode) Rs(0, t, e.memoizedProps, r);
else {
if ("string" !== typeof r && null === t.stateNode)
throw Error(o(166));
if (((n = ra(na.current)), ra(ea.current), fo(t))) {
if (
((r = t.stateNode),
(n = t.memoizedProps),
(r[fi] = t),
(a = r.nodeValue !== n) && null !== (e = no))
)
switch (e.tag) {
case 3:
Jr(r.nodeValue, n, 0 !== (1 & e.mode));
break;
case 5:
!0 !== e.memoizedProps.suppressHydrationWarning &&
Jr(r.nodeValue, n, 0 !== (1 & e.mode));
}
a && (t.flags |= 4);
} else
((r = (9 === n.nodeType ? n : n.ownerDocument).createTextNode(
r
))[fi] = t),
(t.stateNode = r);
}
return qs(t), null;
case 13:
if (
(Ei(la),
(r = t.memoizedState),
null === e ||
(null !== e.memoizedState &&
null !== e.memoizedState.dehydrated))
) {
if (
io &&
null !== ro &&
0 !== (1 & t.mode) &&
0 === (128 & t.flags)
)
ho(), po(), (t.flags |= 98560), (a = !1);
else if (((a = fo(t)), null !== r && null !== r.dehydrated)) {
if (null === e) {
if (!a) throw Error(o(318));
if (
!(a =
null !== (a = t.memoizedState) ? a.dehydrated : null)
)
throw Error(o(317));
a[fi] = t;
} else
po(),
0 === (128 & t.flags) && (t.memoizedState = null),
(t.flags |= 4);
qs(t), (a = !1);
} else null !== oo && (au(oo), (oo = null)), (a = !0);
if (!a) 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 & la.current)
? 0 === Rl && (Rl = 3)
: vu())),
null !== t.updateQueue && (t.flags |= 4),
qs(t),
null);
case 4:
return (
oa(), null === e && Gr(t.stateNode.containerInfo), qs(t), null
);
case 10:
return ko(t.type._context), qs(t), null;
case 19:
if ((Ei(la), null === (a = t.memoizedState))) return qs(t), null;
if (((r = 0 !== (128 & t.flags)), null === (l = a.rendering)))
if (r) Vs(a, !1);
else {
if (0 !== Rl || (null !== e && 0 !== (128 & e.flags)))
for (e = t.child; null !== e;) {
if (null !== (l = ua(e))) {
for (
t.flags |= 128,
Vs(a, !1),
null !== (r = l.updateQueue) &&
((t.updateQueue = r), (t.flags |= 4)),
t.subtreeFlags = 0,
r = n,
n = t.child;
null !== n;
)
(e = r),
((a = n).flags &= 14680066),
null === (l = a.alternate)
? ((a.childLanes = 0),
(a.lanes = e),
(a.child = null),
(a.subtreeFlags = 0),
(a.memoizedProps = null),
(a.memoizedState = null),
(a.updateQueue = null),
(a.dependencies = null),
(a.stateNode = null))
: ((a.childLanes = l.childLanes),
(a.lanes = l.lanes),
(a.child = l.child),
(a.subtreeFlags = 0),
(a.deletions = null),
(a.memoizedProps = l.memoizedProps),
(a.memoizedState = l.memoizedState),
(a.updateQueue = l.updateQueue),
(a.type = l.type),
(e = l.dependencies),
(a.dependencies =
null === e
? null
: {
lanes: e.lanes,
firstContext: e.firstContext,
})),
(n = n.sibling);
return Ti(la, (1 & la.current) | 2), t.child;
}
e = e.sibling;
}
null !== a.tail &&
Xe() > Gl &&
((t.flags |= 128),
(r = !0),
Vs(a, !1),
(t.lanes = 4194304));
}
else {
if (!r)
if (null !== (e = ua(l))) {
if (
((t.flags |= 128),
(r = !0),
null !== (n = e.updateQueue) &&
((t.updateQueue = n), (t.flags |= 4)),
Vs(a, !0),
null === a.tail &&
"hidden" === a.tailMode &&
!l.alternate &&
!io)
)
return qs(t), null;
} else
2 * Xe() - a.renderingStartTime > Gl &&
1073741824 !== n &&
((t.flags |= 128),
(r = !0),
Vs(a, !1),
(t.lanes = 4194304));
a.isBackwards
? ((l.sibling = t.child), (t.child = l))
: (null !== (n = a.last) ? (n.sibling = l) : (t.child = l),
(a.last = l));
}
return null !== a.tail
? ((t = a.tail),
(a.rendering = t),
(a.tail = t.sibling),
(a.renderingStartTime = Xe()),
(t.sibling = null),
(n = la.current),
Ti(la, r ? (1 & n) | 2 : 1 & n),
t)
: (qs(t), null);
case 22:
case 23:
return (
du(),
(r = null !== t.memoizedState),
null !== e &&
(null !== e.memoizedState) !== r &&
(t.flags |= 8192),
r && 0 !== (1 & t.mode)
? 0 !== (1073741824 & Pl) &&
(qs(t), 6 & t.subtreeFlags && (t.flags |= 8192))
: qs(t),
null
);
case 24:
case 25:
return null;
}
throw Error(o(156, t.tag));
}
function Ys(e, t) {
switch ((to(t), t.tag)) {
case 1:
return (
Pi(t.type) && Li(),
65536 & (e = t.flags)
? ((t.flags = (-65537 & e) | 128), t)
: null
);
case 3:
return (
oa(),
Ei(ji),
Ei(Ni),
da(),
0 !== (65536 & (e = t.flags)) && 0 === (128 & e)
? ((t.flags = (-65537 & e) | 128), t)
: null
);
case 5:
return sa(t), null;
case 13:
if (
(Ei(la),
null !== (e = t.memoizedState) && null !== e.dehydrated)
) {
if (null === t.alternate) throw Error(o(340));
po();
}
return 65536 & (e = t.flags)
? ((t.flags = (-65537 & e) | 128), t)
: null;
case 19:
return Ei(la), null;
case 4:
return oa(), null;
case 10:
return ko(t.type._context), null;
case 22:
case 23:
return du(), null;
default:
return null;
}
}
(Ps = 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);
}
}),
(Ls = function (e, t, n, r) {
var i = e.memoizedProps;
if (i !== r) {
(e = t.stateNode), ra(ea.current);
var o,
a = null;
switch (n) {
case "input":
(i = $(e, i)), (r = $(e, r)), (a = []);
break;
case "select":
(i = I({}, i, { value: void 0 })),
(r = I({}, r, { value: void 0 })),
(a = []);
break;
case "textarea":
(i = re(e, i)), (r = re(e, r)), (a = []);
break;
default:
"function" !== typeof i.onClick &&
"function" === typeof r.onClick &&
(e.onclick = Zr);
}
for (c in (ye(n, r), (n = null), i))
if (!r.hasOwnProperty(c) && i.hasOwnProperty(c) && null != i[c])
if ("style" === c) {
var l = i[c];
for (o in l)
l.hasOwnProperty(o) && (n || (n = {}), (n[o] = ""));
} else
"dangerouslySetInnerHTML" !== c &&
"children" !== c &&
"suppressContentEditableWarning" !== c &&
"suppressHydrationWarning" !== c &&
"autoFocus" !== c &&
(s.hasOwnProperty(c)
? a || (a = [])
: (a = a || []).push(c, null));
for (c in r) {
var u = r[c];
if (
((l = null != i ? i[c] : void 0),
r.hasOwnProperty(c) && u !== l && (null != u || null != l))
)
if ("style" === c)
if (l) {
for (o in l)
!l.hasOwnProperty(o) ||
(u && u.hasOwnProperty(o)) ||
(n || (n = {}), (n[o] = ""));
for (o in u)
u.hasOwnProperty(o) &&
l[o] !== u[o] &&
(n || (n = {}), (n[o] = u[o]));
} else n || (a || (a = []), a.push(c, n)), (n = u);
else
"dangerouslySetInnerHTML" === c
? ((u = u ? u.__html : void 0),
(l = l ? l.__html : void 0),
null != u && l !== u && (a = a || []).push(c, u))
: "children" === c
? ("string" !== typeof u && "number" !== typeof u) ||
(a = a || []).push(c, "" + u)
: "suppressContentEditableWarning" !== c &&
"suppressHydrationWarning" !== c &&
(s.hasOwnProperty(c)
? (null != u && "onScroll" === c && Fr("scroll", e),
a || l === u || (a = []))
: (a = a || []).push(c, u));
}
n && (a = a || []).push("style", n);
var c = a;
(t.updateQueue = c) && (t.flags |= 4);
}
}),
(Rs = function (e, t, n, r) {
n !== r && (t.flags |= 4);
});
var $s = !1,
Qs = !1,
Xs = "function" === typeof WeakSet ? WeakSet : Set,
Js = null;
function Zs(e, t) {
var n = e.ref;
if (null !== n)
if ("function" === typeof n)
try {
n(null);
} catch (r) {
Su(e, t, r);
}
else n.current = null;
}
function el(e, t, n) {
try {
n();
} catch (r) {
Su(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 o = i.destroy;
(i.destroy = void 0), void 0 !== o && el(t, n, o);
}
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 ol(e) {
var t = e.alternate;
null !== t && ((e.alternate = null), ol(t)),
(e.child = null),
(e.deletions = null),
(e.sibling = null),
5 === e.tag &&
null !== (t = e.stateNode) &&
(delete t[fi],
delete t[hi],
delete t[vi],
delete t[mi],
delete t[gi]),
(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 al(e) {
return 5 === e.tag || 3 === e.tag || 4 === e.tag;
}
function sl(e) {
e: for (; ;) {
for (; null === e.sibling;) {
if (null === e.return || al(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 = Zr));
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 ul(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 (ul(e, t, n), e = e.sibling; null !== e;)
ul(e, t, n), (e = e.sibling);
}
var cl = null,
dl = !1;
function fl(e, t, n) {
for (n = n.child; null !== n;) hl(e, t, n), (n = n.sibling);
}
function hl(e, t, n) {
if (ot && "function" === typeof ot.onCommitFiberUnmount)
try {
ot.onCommitFiberUnmount(it, n);
} catch (s) { }
switch (n.tag) {
case 5:
Qs || Zs(n, t);
case 6:
var r = cl,
i = dl;
(cl = null),
fl(e, t, n),
(dl = i),
null !== (cl = r) &&
(dl
? ((e = cl),
(n = n.stateNode),
8 === e.nodeType
? e.parentNode.removeChild(n)
: e.removeChild(n))
: cl.removeChild(n.stateNode));
break;
case 18:
null !== cl &&
(dl
? ((e = cl),
(n = n.stateNode),
8 === e.nodeType
? li(e.parentNode, n)
: 1 === e.nodeType && li(e, n),
Gt(e))
: li(cl, n.stateNode));
break;
case 4:
(r = cl),
(i = dl),
(cl = n.stateNode.containerInfo),
(dl = !0),
fl(e, t, n),
(cl = 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 o = i,
a = o.destroy;
(o = o.tag),
void 0 !== a &&
(0 !== (2 & o) || 0 !== (4 & o)) &&
el(n, t, a),
(i = i.next);
} while (i !== r);
}
fl(e, t, n);
break;
case 1:
if (
!Qs &&
(Zs(n, t),
"function" === typeof (r = n.stateNode).componentWillUnmount)
)
try {
(r.props = n.memoizedProps),
(r.state = n.memoizedState),
r.componentWillUnmount();
} catch (s) {
Su(n, t, s);
}
fl(e, t, n);
break;
case 21:
fl(e, t, n);
break;
case 22:
1 & n.mode
? ((Qs = (r = Qs) || null !== n.memoizedState),
fl(e, t, n),
(Qs = r))
: fl(e, t, n);
break;
default:
fl(e, t, n);
}
}
function pl(e) {
var t = e.updateQueue;
if (null !== t) {
e.updateQueue = null;
var n = e.stateNode;
null === n && (n = e.stateNode = new Xs()),
t.forEach(function (t) {
var r = Nu.bind(null, e, t);
n.has(t) || (n.add(t), t.then(r, r));
});
}
}
function vl(e, t) {
var n = t.deletions;
if (null !== n)
for (var r = 0; r < n.length; r++) {
var i = n[r];
try {
var a = e,
s = t,
l = s;
e: for (; null !== l;) {
switch (l.tag) {
case 5:
(cl = l.stateNode), (dl = !1);
break e;
case 3:
case 4:
(cl = l.stateNode.containerInfo), (dl = !0);
break e;
}
l = l.return;
}
if (null === cl) throw Error(o(160));
hl(a, s, i), (cl = null), (dl = !1);
var u = i.alternate;
null !== u && (u.return = null), (i.return = null);
} catch (c) {
Su(i, t, c);
}
}
if (12854 & t.subtreeFlags)
for (t = t.child; null !== t;) ml(t, e), (t = t.sibling);
}
function ml(e, t) {
var n = e.alternate,
r = e.flags;
switch (e.tag) {
case 0:
case 11:
case 14:
case 15:
if ((vl(t, e), gl(e), 4 & r)) {
try {
nl(3, e, e.return), rl(3, e);
} catch (m) {
Su(e, e.return, m);
}
try {
nl(5, e, e.return);
} catch (m) {
Su(e, e.return, m);
}
}
break;
case 1:
vl(t, e), gl(e), 512 & r && null !== n && Zs(n, n.return);
break;
case 5:
if (
(vl(t, e),
gl(e),
512 & r && null !== n && Zs(n, n.return),
32 & e.flags)
) {
var i = e.stateNode;
try {
fe(i, "");
} catch (m) {
Su(e, e.return, m);
}
}
if (4 & r && null != (i = e.stateNode)) {
var a = e.memoizedProps,
s = null !== n ? n.memoizedProps : a,
l = e.type,
u = e.updateQueue;
if (((e.updateQueue = null), null !== u))
try {
"input" === l &&
"radio" === a.type &&
null != a.name &&
X(i, a),
be(l, s);
var c = be(l, a);
for (s = 0; s < u.length; s += 2) {
var d = u[s],
f = u[s + 1];
"style" === d
? me(i, f)
: "dangerouslySetInnerHTML" === d
? de(i, f)
: "children" === d
? fe(i, f)
: b(i, d, f, c);
}
switch (l) {
case "input":
J(i, a);
break;
case "textarea":
oe(i, a);
break;
case "select":
var h = i._wrapperState.wasMultiple;
i._wrapperState.wasMultiple = !!a.multiple;
var p = a.value;
null != p
? ne(i, !!a.multiple, p, !1)
: h !== !!a.multiple &&
(null != a.defaultValue
? ne(i, !!a.multiple, a.defaultValue, !0)
: ne(i, !!a.multiple, a.multiple ? [] : "", !1));
}
i[hi] = a;
} catch (m) {
Su(e, e.return, m);
}
}
break;
case 6:
if ((vl(t, e), gl(e), 4 & r)) {
if (null === e.stateNode) throw Error(o(162));
(i = e.stateNode), (a = e.memoizedProps);
try {
i.nodeValue = a;
} catch (m) {
Su(e, e.return, m);
}
}
break;
case 3:
if (
(vl(t, e),
gl(e),
4 & r && null !== n && n.memoizedState.isDehydrated)
)
try {
Gt(t.containerInfo);
} catch (m) {
Su(e, e.return, m);
}
break;
case 4:
default:
vl(t, e), gl(e);
break;
case 13:
vl(t, e),
gl(e),
8192 & (i = e.child).flags &&
((a = null !== i.memoizedState),
(i.stateNode.isHidden = a),
!a ||
(null !== i.alternate &&
null !== i.alternate.memoizedState) ||
(Bl = Xe())),
4 & r && pl(e);
break;
case 22:
if (
((d = null !== n && null !== n.memoizedState),
1 & e.mode
? ((Qs = (c = Qs) || d), vl(t, e), (Qs = c))
: vl(t, e),
gl(e),
8192 & r)
) {
if (
((c = null !== e.memoizedState),
(e.stateNode.isHidden = c) && !d && 0 !== (1 & e.mode))
)
for (Js = e, d = e.child; null !== d;) {
for (f = Js = d; null !== Js;) {
switch (((p = (h = Js).child), h.tag)) {
case 0:
case 11:
case 14:
case 15:
nl(4, h, h.return);
break;
case 1:
Zs(h, h.return);
var v = h.stateNode;
if ("function" === typeof v.componentWillUnmount) {
(r = h), (n = h.return);
try {
(t = r),
(v.props = t.memoizedProps),
(v.state = t.memoizedState),
v.componentWillUnmount();
} catch (m) {
Su(r, n, m);
}
}
break;
case 5:
Zs(h, h.return);
break;
case 22:
if (null !== h.memoizedState) {
_l(f);
continue;
}
}
null !== p ? ((p.return = h), (Js = p)) : _l(f);
}
d = d.sibling;
}
e: for (d = null, f = e; ;) {
if (5 === f.tag) {
if (null === d) {
d = f;
try {
(i = f.stateNode),
c
? "function" === typeof (a = i.style).setProperty
? a.setProperty("display", "none", "important")
: (a.display = "none")
: ((l = f.stateNode),
(s =
void 0 !== (u = f.memoizedProps.style) &&
null !== u &&
u.hasOwnProperty("display")
? u.display
: null),
(l.style.display = ve("display", s)));
} catch (m) {
Su(e, e.return, m);
}
}
} else if (6 === f.tag) {
if (null === d)
try {
f.stateNode.nodeValue = c ? "" : f.memoizedProps;
} catch (m) {
Su(e, e.return, m);
}
} else if (
((22 !== f.tag && 23 !== f.tag) ||
null === f.memoizedState ||
f === e) &&
null !== f.child
) {
(f.child.return = f), (f = f.child);
continue;
}
if (f === e) break e;
for (; null === f.sibling;) {
if (null === f.return || f.return === e) break e;
d === f && (d = null), (f = f.return);
}
d === f && (d = null),
(f.sibling.return = f.return),
(f = f.sibling);
}
}
break;
case 19:
vl(t, e), gl(e), 4 & r && pl(e);
case 21:
}
}
function gl(e) {
var t = e.flags;
if (2 & t) {
try {
e: {
for (var n = e.return; null !== n;) {
if (al(n)) {
var r = n;
break e;
}
n = n.return;
}
throw Error(o(160));
}
switch (r.tag) {
case 5:
var i = r.stateNode;
32 & r.flags && (fe(i, ""), (r.flags &= -33)),
ul(e, sl(e), i);
break;
case 3:
case 4:
var a = r.stateNode.containerInfo;
ll(e, sl(e), a);
break;
default:
throw Error(o(161));
}
} catch (s) {
Su(e, e.return, s);
}
e.flags &= -3;
}
4096 & t && (e.flags &= -4097);
}
function yl(e, t, n) {
(Js = e), bl(e, t, n);
}
function bl(e, t, n) {
for (var r = 0 !== (1 & e.mode); null !== Js;) {
var i = Js,
o = i.child;
if (22 === i.tag && r) {
var a = null !== i.memoizedState || $s;
if (!a) {
var s = i.alternate,
l = (null !== s && null !== s.memoizedState) || Qs;
s = $s;
var u = Qs;
if ((($s = a), (Qs = l) && !u))
for (Js = i; null !== Js;)
(l = (a = Js).child),
22 === a.tag && null !== a.memoizedState
? xl(i)
: null !== l
? ((l.return = a), (Js = l))
: xl(i);
for (; null !== o;) (Js = o), bl(o, t, n), (o = o.sibling);
(Js = i), ($s = s), (Qs = u);
}
wl(e);
} else
0 !== (8772 & i.subtreeFlags) && null !== o
? ((o.return = i), (Js = o))
: wl(e);
}
}
function wl(e) {
for (; null !== Js;) {
var t = Js;
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
: go(t.type, n.memoizedProps);
r.componentDidUpdate(
i,
n.memoizedState,
r.__reactInternalSnapshotBeforeUpdate
);
}
var a = t.updateQueue;
null !== a && Fo(t, a, 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;
}
Fo(t, s, n);
}
break;
case 5:
var l = t.stateNode;
if (null === n && 4 & t.flags) {
n = l;
var u = t.memoizedProps;
switch (t.type) {
case "button":
case "input":
case "select":
case "textarea":
u.autoFocus && n.focus();
break;
case "img":
u.src && (n.src = u.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 c = t.alternate;
if (null !== c) {
var d = c.memoizedState;
if (null !== d) {
var f = d.dehydrated;
null !== f && Gt(f);
}
}
}
break;
default:
throw Error(o(163));
}
Qs || (512 & t.flags && il(t));
} catch (h) {
Su(t, t.return, h);
}
}
if (t === e) {
Js = null;
break;
}
if (null !== (n = t.sibling)) {
(n.return = t.return), (Js = n);
break;
}
Js = t.return;
}
}
function _l(e) {
for (; null !== Js;) {
var t = Js;
if (t === e) {
Js = null;
break;
}
var n = t.sibling;
if (null !== n) {
(n.return = t.return), (Js = n);
break;
}
Js = t.return;
}
}
function xl(e) {
for (; null !== Js;) {
var t = Js;
try {
switch (t.tag) {
case 0:
case 11:
case 15:
var n = t.return;
try {
rl(4, t);
} catch (l) {
Su(t, n, l);
}
break;
case 1:
var r = t.stateNode;
if ("function" === typeof r.componentDidMount) {
var i = t.return;
try {
r.componentDidMount();
} catch (l) {
Su(t, i, l);
}
}
var o = t.return;
try {
il(t);
} catch (l) {
Su(t, o, l);
}
break;
case 5:
var a = t.return;
try {
il(t);
} catch (l) {
Su(t, a, l);
}
}
} catch (l) {
Su(t, t.return, l);
}
if (t === e) {
Js = null;
break;
}
var s = t.sibling;
if (null !== s) {
(s.return = t.return), (Js = s);
break;
}
Js = t.return;
}
}
var kl,
Sl = Math.ceil,
El = w.ReactCurrentDispatcher,
Tl = w.ReactCurrentOwner,
Cl = w.ReactCurrentBatchConfig,
Nl = 0,
jl = null,
Ol = null,
Al = 0,
Pl = 0,
Ll = Si(0),
Rl = 0,
Dl = null,
Ml = 0,
Il = 0,
zl = 0,
Fl = null,
Ul = null,
Bl = 0,
Gl = 1 / 0,
Wl = null,
Hl = !1,
Vl = null,
ql = null,
Kl = !1,
Yl = null,
$l = 0,
Ql = 0,
Xl = null,
Jl = -1,
Zl = 0;
function eu() {
return 0 !== (6 & Nl) ? Xe() : -1 !== Jl ? Jl : (Jl = Xe());
}
function tu(e) {
return 0 === (1 & e.mode)
? 1
: 0 !== (2 & Nl) && 0 !== Al
? Al & -Al
: null !== mo.transition
? (0 === Zl && (Zl = vt()), Zl)
: 0 !== (e = bt)
? e
: (e = void 0 === (e = window.event) ? 16 : Qt(e.type));
}
function nu(e, t, n, r) {
if (50 < Ql) throw ((Ql = 0), (Xl = null), Error(o(185)));
gt(e, n, r),
(0 !== (2 & Nl) && e === jl) ||
(e === jl && (0 === (2 & Nl) && (Il |= n), 4 === Rl && su(e, Al)),
ru(e, r),
1 === n &&
0 === Nl &&
0 === (1 & t.mode) &&
((Gl = Xe() + 500), Fi && Gi()));
}
function ru(e, t) {
var n = e.callbackNode;
!(function (e, t) {
for (
var n = e.suspendedLanes,
r = e.pingedLanes,
i = e.expirationTimes,
o = e.pendingLanes;
0 < o;
) {
var a = 31 - at(o),
s = 1 << a,
l = i[a];
-1 === l
? (0 !== (s & n) && 0 === (s & r)) || (i[a] = ht(s, t))
: l <= t && (e.expiredLanes |= s),
(o &= ~s);
}
})(e, t);
var r = ft(e, e === jl ? Al : 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), Bi(e);
})(lu.bind(null, e))
: Bi(lu.bind(null, e)),
ai(function () {
0 === (6 & Nl) && Gi();
}),
(n = null);
else {
switch (wt(r)) {
case 1:
n = Ze;
break;
case 4:
n = et;
break;
case 16:
default:
n = tt;
break;
case 536870912:
n = rt;
}
n = ju(n, iu.bind(null, e));
}
(e.callbackPriority = t), (e.callbackNode = n);
}
}
function iu(e, t) {
if (((Jl = -1), (Zl = 0), 0 !== (6 & Nl))) throw Error(o(327));
var n = e.callbackNode;
if (xu() && e.callbackNode !== n) return null;
var r = ft(e, e === jl ? Al : 0);
if (0 === r) return null;
if (0 !== (30 & r) || 0 !== (r & e.expiredLanes) || t) t = mu(e, r);
else {
t = r;
var i = Nl;
Nl |= 2;
var a = pu();
for (
(jl === e && Al === t) ||
((Wl = null), (Gl = Xe() + 500), fu(e, t));
;
)
try {
yu();
break;
} catch (l) {
hu(e, l);
}
xo(),
(El.current = a),
(Nl = i),
null !== Ol ? (t = 0) : ((jl = null), (Al = 0), (t = Rl));
}
if (0 !== t) {
if (
(2 === t && 0 !== (i = pt(e)) && ((r = i), (t = ou(e, i))),
1 === t)
)
throw ((n = Dl), fu(e, 0), su(e, r), ru(e, Xe()), n);
if (6 === t) su(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],
o = i.getSnapshot;
i = i.value;
try {
if (!sr(o(), 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 = mu(e, r)) &&
0 !== (a = pt(e)) &&
((r = a), (t = ou(e, a))),
1 === t))
)
throw ((n = Dl), fu(e, 0), su(e, r), ru(e, Xe()), n);
switch (((e.finishedWork = i), (e.finishedLanes = r), t)) {
case 0:
case 1:
throw Error(o(345));
case 2:
case 5:
_u(e, Ul, Wl);
break;
case 3:
if (
(su(e, r),
(130023424 & r) === r && 10 < (t = Bl + 500 - Xe()))
) {
if (0 !== ft(e, 0)) break;
if (((i = e.suspendedLanes) & r) !== r) {
eu(), (e.pingedLanes |= e.suspendedLanes & i);
break;
}
e.timeoutHandle = ri(_u.bind(null, e, Ul, Wl), t);
break;
}
_u(e, Ul, Wl);
break;
case 4:
if ((su(e, r), (4194240 & r) === r)) break;
for (t = e.eventTimes, i = -1; 0 < r;) {
var s = 31 - at(r);
(a = 1 << s), (s = t[s]) > i && (i = s), (r &= ~a);
}
if (
((r = i),
10 <
(r =
(120 > (r = Xe() - r)
? 120
: 480 > r
? 480
: 1080 > r
? 1080
: 1920 > r
? 1920
: 3e3 > r
? 3e3
: 4320 > r
? 4320
: 1960 * Sl(r / 1960)) - r))
) {
e.timeoutHandle = ri(_u.bind(null, e, Ul, Wl), r);
break;
}
_u(e, Ul, Wl);
break;
default:
throw Error(o(329));
}
}
}
return ru(e, Xe()), e.callbackNode === n ? iu.bind(null, e) : null;
}
function ou(e, t) {
var n = Fl;
return (
e.current.memoizedState.isDehydrated && (fu(e, t).flags |= 256),
2 !== (e = mu(e, t)) && ((t = Ul), (Ul = n), null !== t && au(t)),
e
);
}
function au(e) {
null === Ul ? (Ul = e) : Ul.push.apply(Ul, e);
}
function su(e, t) {
for (
t &= ~zl,
t &= ~Il,
e.suspendedLanes |= t,
e.pingedLanes &= ~t,
e = e.expirationTimes;
0 < t;
) {
var n = 31 - at(t),
r = 1 << n;
(e[n] = -1), (t &= ~r);
}
}
function lu(e) {
if (0 !== (6 & Nl)) throw Error(o(327));
xu();
var t = ft(e, 0);
if (0 === (1 & t)) return ru(e, Xe()), null;
var n = mu(e, t);
if (0 !== e.tag && 2 === n) {
var r = pt(e);
0 !== r && ((t = r), (n = ou(e, r)));
}
if (1 === n) throw ((n = Dl), fu(e, 0), su(e, t), ru(e, Xe()), n);
if (6 === n) throw Error(o(345));
return (
(e.finishedWork = e.current.alternate),
(e.finishedLanes = t),
_u(e, Ul, Wl),
ru(e, Xe()),
null
);
}
function uu(e, t) {
var n = Nl;
Nl |= 1;
try {
return e(t);
} finally {
0 === (Nl = n) && ((Gl = Xe() + 500), Fi && Gi());
}
}
function cu(e) {
null !== Yl && 0 === Yl.tag && 0 === (6 & Nl) && xu();
var t = Nl;
Nl |= 1;
var n = Cl.transition,
r = bt;
try {
if (((Cl.transition = null), (bt = 1), e)) return e();
} finally {
(bt = r), (Cl.transition = n), 0 === (6 & (Nl = t)) && Gi();
}
}
function du() {
(Pl = Ll.current), Ei(Ll);
}
function fu(e, t) {
(e.finishedWork = null), (e.finishedLanes = 0);
var n = e.timeoutHandle;
if ((-1 !== n && ((e.timeoutHandle = -1), ii(n)), null !== Ol))
for (n = Ol.return; null !== n;) {
var r = n;
switch ((to(r), r.tag)) {
case 1:
null !== (r = r.type.childContextTypes) &&
void 0 !== r &&
Li();
break;
case 3:
oa(), Ei(ji), Ei(Ni), da();
break;
case 5:
sa(r);
break;
case 4:
oa();
break;
case 13:
case 19:
Ei(la);
break;
case 10:
ko(r.type._context);
break;
case 22:
case 23:
du();
}
n = n.return;
}
if (
((jl = e),
(Ol = e = Lu(e.current, null)),
(Al = Pl = t),
(Rl = 0),
(Dl = null),
(zl = Il = Ml = 0),
(Ul = Fl = null),
null !== Co)
) {
for (t = 0; t < Co.length; t++)
if (null !== (r = (n = Co[t]).interleaved)) {
n.interleaved = null;
var i = r.next,
o = n.pending;
if (null !== o) {
var a = o.next;
(o.next = i), (r.next = a);
}
n.pending = r;
}
Co = null;
}
return e;
}
function hu(e, t) {
for (; ;) {
var n = Ol;
try {
if ((xo(), (fa.current = as), ya)) {
for (var r = va.memoizedState; null !== r;) {
var i = r.queue;
null !== i && (i.pending = null), (r = r.next);
}
ya = !1;
}
if (
((pa = 0),
(ga = ma = va = null),
(ba = !1),
(wa = 0),
(Tl.current = null),
null === n || null === n.return)
) {
(Rl = 1), (Dl = t), (Ol = null);
break;
}
e: {
var a = e,
s = n.return,
l = n,
u = t;
if (
((t = Al),
(l.flags |= 32768),
null !== u &&
"object" === typeof u &&
"function" === typeof u.then)
) {
var c = u,
d = l,
f = d.tag;
if (0 === (1 & d.mode) && (0 === f || 11 === f || 15 === f)) {
var h = d.alternate;
h
? ((d.updateQueue = h.updateQueue),
(d.memoizedState = h.memoizedState),
(d.lanes = h.lanes))
: ((d.updateQueue = null), (d.memoizedState = null));
}
var p = gs(s);
if (null !== p) {
(p.flags &= -257),
ys(p, s, l, 0, t),
1 & p.mode && ms(a, c, t),
(u = c);
var v = (t = p).updateQueue;
if (null === v) {
var m = new Set();
m.add(u), (t.updateQueue = m);
} else v.add(u);
break e;
}
if (0 === (1 & t)) {
ms(a, c, t), vu();
break e;
}
u = Error(o(426));
} else if (io && 1 & l.mode) {
var g = gs(s);
if (null !== g) {
0 === (65536 & g.flags) && (g.flags |= 256),
ys(g, s, l, 0, t),
vo(cs(u, l));
break e;
}
}
(a = u = cs(u, l)),
4 !== Rl && (Rl = 2),
null === Fl ? (Fl = [a]) : Fl.push(a),
(a = s);
do {
switch (a.tag) {
case 3:
(a.flags |= 65536),
(t &= -t),
(a.lanes |= t),
Io(a, ps(0, u, t));
break e;
case 1:
l = u;
var y = a.type,
b = a.stateNode;
if (
0 === (128 & a.flags) &&
("function" === typeof y.getDerivedStateFromError ||
(null !== b &&
"function" === typeof b.componentDidCatch &&
(null === ql || !ql.has(b))))
) {
(a.flags |= 65536),
(t &= -t),
(a.lanes |= t),
Io(a, vs(a, l, t));
break e;
}
}
a = a.return;
} while (null !== a);
}
wu(n);
} catch (w) {
(t = w), Ol === n && null !== n && (Ol = n = n.return);
continue;
}
break;
}
}
function pu() {
var e = El.current;
return (El.current = as), null === e ? as : e;
}
function vu() {
(0 !== Rl && 3 !== Rl && 2 !== Rl) || (Rl = 4),
null === jl ||
(0 === (268435455 & Ml) && 0 === (268435455 & Il)) ||
su(jl, Al);
}
function mu(e, t) {
var n = Nl;
Nl |= 2;
var r = pu();
for ((jl === e && Al === t) || ((Wl = null), fu(e, t)); ;)
try {
gu();
break;
} catch (i) {
hu(e, i);
}
if ((xo(), (Nl = n), (El.current = r), null !== Ol))
throw Error(o(261));
return (jl = null), (Al = 0), Rl;
}
function gu() {
for (; null !== Ol;) bu(Ol);
}
function yu() {
for (; null !== Ol && !$e();) bu(Ol);
}
function bu(e) {
var t = kl(e.alternate, e, Pl);
(e.memoizedProps = e.pendingProps),
null === t ? wu(e) : (Ol = t),
(Tl.current = null);
}
function wu(e) {
var t = e;
do {
var n = t.alternate;
if (((e = t.return), 0 === (32768 & t.flags))) {
if (null !== (n = Ks(n, t, Pl))) return void (Ol = n);
} else {
if (null !== (n = Ys(n, t)))
return (n.flags &= 32767), void (Ol = n);
if (null === e) return (Rl = 6), void (Ol = null);
(e.flags |= 32768), (e.subtreeFlags = 0), (e.deletions = null);
}
if (null !== (t = t.sibling)) return void (Ol = t);
Ol = t = e;
} while (null !== t);
0 === Rl && (Rl = 5);
}
function _u(e, t, n) {
var r = bt,
i = Cl.transition;
try {
(Cl.transition = null),
(bt = 1),
(function (e, t, n, r) {
do {
xu();
} while (null !== Yl);
if (0 !== (6 & Nl)) throw Error(o(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(o(177));
(e.callbackNode = null), (e.callbackPriority = 0);
var a = 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 - at(n),
o = 1 << i;
(t[i] = 0), (r[i] = -1), (e[i] = -1), (n &= ~o);
}
})(e, a),
e === jl && ((Ol = jl = null), (Al = 0)),
(0 === (2064 & n.subtreeFlags) && 0 === (2064 & n.flags)) ||
Kl ||
((Kl = !0),
ju(tt, function () {
return xu(), null;
})),
(a = 0 !== (15990 & n.flags)),
0 !== (15990 & n.subtreeFlags) || a)
) {
(a = Cl.transition), (Cl.transition = null);
var s = bt;
bt = 1;
var l = Nl;
(Nl |= 4),
(Tl.current = null),
(function (e, t) {
if (((ei = Ht), hr((e = fr())))) {
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,
a = r.focusNode;
r = r.focusOffset;
try {
n.nodeType, a.nodeType;
} catch (_) {
n = null;
break e;
}
var s = 0,
l = -1,
u = -1,
c = 0,
d = 0,
f = e,
h = null;
t: for (; ;) {
for (
var p;
f !== n ||
(0 !== i && 3 !== f.nodeType) ||
(l = s + i),
f !== a ||
(0 !== r && 3 !== f.nodeType) ||
(u = s + r),
3 === f.nodeType &&
(s += f.nodeValue.length),
null !== (p = f.firstChild);
)
(h = f), (f = p);
for (; ;) {
if (f === e) break t;
if (
(h === n && ++c === i && (l = s),
h === a && ++d === r && (u = s),
null !== (p = f.nextSibling))
)
break;
h = (f = h).parentNode;
}
f = p;
}
n =
-1 === l || -1 === u
? null
: { start: l, end: u };
} else n = null;
}
n = n || { start: 0, end: 0 };
} else n = null;
for (
ti = { focusedElem: e, selectionRange: n },
Ht = !1,
Js = t;
null !== Js;
)
if (
((e = (t = Js).child),
0 !== (1028 & t.subtreeFlags) && null !== e)
)
(e.return = t), (Js = e);
else
for (; null !== Js;) {
t = Js;
try {
var v = 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 !== v) {
var m = v.memoizedProps,
g = v.memoizedState,
y = t.stateNode,
b = y.getSnapshotBeforeUpdate(
t.elementType === t.type
? m
: go(t.type, m),
g
);
y.__reactInternalSnapshotBeforeUpdate = b;
}
break;
case 3:
var w = t.stateNode.containerInfo;
1 === w.nodeType
? (w.textContent = "")
: 9 === w.nodeType &&
w.documentElement &&
w.removeChild(w.documentElement);
break;
default:
throw Error(o(163));
}
} catch (_) {
Su(t, t.return, _);
}
if (null !== (e = t.sibling)) {
(e.return = t.return), (Js = e);
break;
}
Js = t.return;
}
(v = tl), (tl = !1);
})(e, n),
ml(n, e),
pr(ti),
(Ht = !!ei),
(ti = ei = null),
(e.current = n),
yl(n, e, i),
Qe(),
(Nl = l),
(bt = s),
(Cl.transition = a);
} else e.current = n;
if (
(Kl && ((Kl = !1), (Yl = e), ($l = i)),
0 === (a = e.pendingLanes) && (ql = null),
(function (e) {
if (ot && "function" === typeof ot.onCommitFiberRoot)
try {
ot.onCommitFiberRoot(
it,
e,
void 0,
128 === (128 & e.current.flags)
);
} catch (t) { }
})(n.stateNode),
ru(e, Xe()),
null !== t)
)
for (r = e.onRecoverableError, n = 0; n < t.length; n++)
r((i = t[n]).value, {
componentStack: i.stack,
digest: i.digest,
});
if (Hl) throw ((Hl = !1), (e = Vl), (Vl = null), e);
0 !== (1 & $l) && 0 !== e.tag && xu(),
0 !== (1 & (a = e.pendingLanes))
? e === Xl
? Ql++
: ((Ql = 0), (Xl = e))
: (Ql = 0),
Gi();
})(e, t, n, r);
} finally {
(Cl.transition = i), (bt = r);
}
return null;
}
function xu() {
if (null !== Yl) {
var e = wt($l),
t = Cl.transition,
n = bt;
try {
if (((Cl.transition = null), (bt = 16 > e ? 16 : e), null === Yl))
var r = !1;
else {
if (((e = Yl), (Yl = null), ($l = 0), 0 !== (6 & Nl)))
throw Error(o(331));
var i = Nl;
for (Nl |= 4, Js = e.current; null !== Js;) {
var a = Js,
s = a.child;
if (0 !== (16 & Js.flags)) {
var l = a.deletions;
if (null !== l) {
for (var u = 0; u < l.length; u++) {
var c = l[u];
for (Js = c; null !== Js;) {
var d = Js;
switch (d.tag) {
case 0:
case 11:
case 15:
nl(8, d, a);
}
var f = d.child;
if (null !== f) (f.return = d), (Js = f);
else
for (; null !== Js;) {
var h = (d = Js).sibling,
p = d.return;
if ((ol(d), d === c)) {
Js = null;
break;
}
if (null !== h) {
(h.return = p), (Js = h);
break;
}
Js = p;
}
}
}
var v = a.alternate;
if (null !== v) {
var m = v.child;
if (null !== m) {
v.child = null;
do {
var g = m.sibling;
(m.sibling = null), (m = g);
} while (null !== m);
}
}
Js = a;
}
}
if (0 !== (2064 & a.subtreeFlags) && null !== s)
(s.return = a), (Js = s);
else
e: for (; null !== Js;) {
if (0 !== (2048 & (a = Js).flags))
switch (a.tag) {
case 0:
case 11:
case 15:
nl(9, a, a.return);
}
var y = a.sibling;
if (null !== y) {
(y.return = a.return), (Js = y);
break e;
}
Js = a.return;
}
}
var b = e.current;
for (Js = b; null !== Js;) {
var w = (s = Js).child;
if (0 !== (2064 & s.subtreeFlags) && null !== w)
(w.return = s), (Js = w);
else
e: for (s = b; null !== Js;) {
if (0 !== (2048 & (l = Js).flags))
try {
switch (l.tag) {
case 0:
case 11:
case 15:
rl(9, l);
}
} catch (x) {
Su(l, l.return, x);
}
if (l === s) {
Js = null;
break e;
}
var _ = l.sibling;
if (null !== _) {
(_.return = l.return), (Js = _);
break e;
}
Js = l.return;
}
}
if (
((Nl = i),
Gi(),
ot && "function" === typeof ot.onPostCommitFiberRoot)
)
try {
ot.onPostCommitFiberRoot(it, e);
} catch (x) { }
r = !0;
}
return r;
} finally {
(bt = n), (Cl.transition = t);
}
}
return !1;
}
function ku(e, t, n) {
(e = Do(e, (t = ps(0, (t = cs(n, t)), 1)), 1)),
(t = eu()),
null !== e && (gt(e, 1, t), ru(e, t));
}
function Su(e, t, n) {
if (3 === e.tag) ku(e, e, n);
else
for (; null !== t;) {
if (3 === t.tag) {
ku(t, e, n);
break;
}
if (1 === t.tag) {
var r = t.stateNode;
if (
"function" === typeof t.type.getDerivedStateFromError ||
("function" === typeof r.componentDidCatch &&
(null === ql || !ql.has(r)))
) {
(t = Do(t, (e = vs(t, (e = cs(n, e)), 1)), 1)),
(e = eu()),
null !== t && (gt(t, 1, e), ru(t, e));
break;
}
}
t = t.return;
}
}
function Eu(e, t, n) {
var r = e.pingCache;
null !== r && r.delete(t),
(t = eu()),
(e.pingedLanes |= e.suspendedLanes & n),
jl === e &&
(Al & n) === n &&
(4 === Rl ||
(3 === Rl && (130023424 & Al) === Al && 500 > Xe() - Bl)
? fu(e, 0)
: (zl |= n)),
ru(e, t);
}
function Tu(e, t) {
0 === t &&
(0 === (1 & e.mode)
? (t = 1)
: ((t = ct), 0 === (130023424 & (ct <<= 1)) && (ct = 4194304)));
var n = eu();
null !== (e = Oo(e, t)) && (gt(e, t, n), ru(e, n));
}
function Cu(e) {
var t = e.memoizedState,
n = 0;
null !== t && (n = t.retryLane), Tu(e, n);
}
function Nu(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(o(314));
}
null !== r && r.delete(t), Tu(e, n);
}
function ju(e, t) {
return Ke(e, t);
}
function Ou(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 Au(e, t, n, r) {
return new Ou(e, t, n, r);
}
function Pu(e) {
return !(!(e = e.prototype) || !e.isReactComponent);
}
function Lu(e, t) {
var n = e.alternate;
return (
null === n
? (((n = Au(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 Ru(e, t, n, r, i, a) {
var s = 2;
if (((r = e), "function" === typeof e)) Pu(e) && (s = 1);
else if ("string" === typeof e) s = 5;
else
e: switch (e) {
case k:
return Du(n.children, i, a, t);
case S:
(s = 8), (i |= 8);
break;
case E:
return (
((e = Au(12, n, t, 2 | i)).elementType = E), (e.lanes = a), e
);
case j:
return (
((e = Au(13, n, t, i)).elementType = j), (e.lanes = a), e
);
case O:
return (
((e = Au(19, n, t, i)).elementType = O), (e.lanes = a), e
);
case L:
return Mu(n, i, a, t);
default:
if ("object" === typeof e && null !== e)
switch (e.$$typeof) {
case T:
s = 10;
break e;
case C:
s = 9;
break e;
case N:
s = 11;
break e;
case A:
s = 14;
break e;
case P:
(s = 16), (r = null);
break e;
}
throw Error(o(130, null == e ? e : typeof e, ""));
}
return (
((t = Au(s, n, t, i)).elementType = e),
(t.type = r),
(t.lanes = a),
t
);
}
function Du(e, t, n, r) {
return ((e = Au(7, e, r, t)).lanes = n), e;
}
function Mu(e, t, n, r) {
return (
((e = Au(22, e, r, t)).elementType = L),
(e.lanes = n),
(e.stateNode = { isHidden: !1 }),
e
);
}
function Iu(e, t, n) {
return ((e = Au(6, e, null, t)).lanes = n), e;
}
function zu(e, t, n) {
return (
((t = Au(
4,
null !== e.children ? e.children : [],
e.key,
t
)).lanes = n),
(t.stateNode = {
containerInfo: e.containerInfo,
pendingChildren: null,
implementation: e.implementation,
}),
t
);
}
function Fu(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 = mt(0)),
(this.expirationTimes = mt(-1)),
(this.entangledLanes =
this.finishedLanes =
this.mutableReadLanes =
this.expiredLanes =
this.pingedLanes =
this.suspendedLanes =
this.pendingLanes =
0),
(this.entanglements = mt(0)),
(this.identifierPrefix = r),
(this.onRecoverableError = i),
(this.mutableSourceEagerHydrationData = null);
}
function Uu(e, t, n, r, i, o, a, s, l) {
return (
(e = new Fu(e, t, n, s, l)),
1 === t ? ((t = 1), !0 === o && (t |= 8)) : (t = 0),
(o = Au(3, null, null, t)),
(e.current = o),
(o.stateNode = e),
(o.memoizedState = {
element: r,
isDehydrated: n,
cache: null,
transitions: null,
pendingSuspenseBoundaries: null,
}),
Po(o),
e
);
}
function Bu(e, t, n) {
var r =
3 < arguments.length && void 0 !== arguments[3]
? arguments[3]
: null;
return {
$$typeof: x,
key: null == r ? null : "" + r,
children: e,
containerInfo: t,
implementation: n,
};
}
function Gu(e) {
if (!e) return Ci;
e: {
if (Ge((e = e._reactInternals)) !== e || 1 !== e.tag)
throw Error(o(170));
var t = e;
do {
switch (t.tag) {
case 3:
t = t.stateNode.context;
break e;
case 1:
if (Pi(t.type)) {
t = t.stateNode.__reactInternalMemoizedMergedChildContext;
break e;
}
}
t = t.return;
} while (null !== t);
throw Error(o(171));
}
if (1 === e.tag) {
var n = e.type;
if (Pi(n)) return Di(e, n, t);
}
return t;
}
function Wu(e, t, n, r, i, o, a, s, l) {
return (
((e = Uu(n, r, !0, e, 0, o, 0, s, l)).context = Gu(null)),
(n = e.current),
((o = Ro((r = eu()), (i = tu(n)))).callback =
void 0 !== t && null !== t ? t : null),
Do(n, o, i),
(e.current.lanes = i),
gt(e, i, r),
ru(e, r),
e
);
}
function Hu(e, t, n, r) {
var i = t.current,
o = eu(),
a = tu(i);
return (
(n = Gu(n)),
null === t.context ? (t.context = n) : (t.pendingContext = n),
((t = Ro(o, a)).payload = { element: e }),
null !== (r = void 0 === r ? null : r) && (t.callback = r),
null !== (e = Do(i, t, a)) && (nu(e, i, a, o), Mo(e, i, a)),
a
);
}
function Vu(e) {
return (e = e.current).child
? (e.child.tag, e.child.stateNode)
: null;
}
function qu(e, t) {
if (null !== (e = e.memoizedState) && null !== e.dehydrated) {
var n = e.retryLane;
e.retryLane = 0 !== n && n < t ? n : t;
}
}
function Ku(e, t) {
qu(e, t), (e = e.alternate) && qu(e, t);
}
kl = function (e, t, n) {
if (null !== e)
if (e.memoizedProps !== t.pendingProps || ji.current) ws = !0;
else {
if (0 === (e.lanes & n) && 0 === (128 & t.flags))
return (
(ws = !1),
(function (e, t, n) {
switch (t.tag) {
case 3:
Os(t), po();
break;
case 5:
aa(t);
break;
case 1:
Pi(t.type) && Mi(t);
break;
case 4:
ia(t, t.stateNode.containerInfo);
break;
case 10:
var r = t.type._context,
i = t.memoizedProps.value;
Ti(yo, r._currentValue), (r._currentValue = i);
break;
case 13:
if (null !== (r = t.memoizedState))
return null !== r.dehydrated
? (Ti(la, 1 & la.current), (t.flags |= 128), null)
: 0 !== (n & t.child.childLanes)
? Is(e, t, n)
: (Ti(la, 1 & la.current),
null !== (e = Hs(e, t, n)) ? e.sibling : null);
Ti(la, 1 & la.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)),
Ti(la, la.current),
r)
)
break;
return null;
case 22:
case 23:
return (t.lanes = 0), Es(e, t, n);
}
return Hs(e, t, n);
})(e, t, n)
);
ws = 0 !== (131072 & e.flags);
}
else (ws = !1), io && 0 !== (1048576 & t.flags) && Zi(t, qi, t.index);
switch (((t.lanes = 0), t.tag)) {
case 2:
var r = t.type;
Ws(e, t), (e = t.pendingProps);
var i = Ai(t, Ni.current);
Eo(t, n), (i = Sa(null, t, r, e, i, n));
var a = Ea();
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),
Pi(r) ? ((a = !0), Mi(t)) : (a = !1),
(t.memoizedState =
null !== i.state && void 0 !== i.state ? i.state : null),
Po(t),
(i.updater = Go),
(t.stateNode = i),
(i._reactInternals = t),
qo(t, r, e, n),
(t = js(null, t, r, !0, a, n)))
: ((t.tag = 0),
io && a && eo(t),
_s(null, t, i, n),
(t = t.child)),
t
);
case 16:
r = t.elementType;
e: {
switch (
(Ws(e, t),
(e = t.pendingProps),
(r = (i = r._init)(r._payload)),
(t.type = r),
(i = t.tag =
(function (e) {
if ("function" === typeof e) return Pu(e) ? 1 : 0;
if (void 0 !== e && null !== e) {
if ((e = e.$$typeof) === N) return 11;
if (e === A) return 14;
}
return 2;
})(r)),
(e = go(r, e)),
i)
) {
case 0:
t = Cs(null, t, r, e, n);
break e;
case 1:
t = Ns(null, t, r, e, n);
break e;
case 11:
t = xs(null, t, r, e, n);
break e;
case 14:
t = ks(null, t, r, go(r.type, e), n);
break e;
}
throw Error(o(306, r, ""));
}
return t;
case 0:
return (
(r = t.type),
(i = t.pendingProps),
Cs(e, t, r, (i = t.elementType === r ? i : go(r, i)), n)
);
case 1:
return (
(r = t.type),
(i = t.pendingProps),
Ns(e, t, r, (i = t.elementType === r ? i : go(r, i)), n)
);
case 3:
e: {
if ((Os(t), null === e)) throw Error(o(387));
(r = t.pendingProps),
(i = (a = t.memoizedState).element),
Lo(e, t),
zo(t, r, null, n);
var s = t.memoizedState;
if (((r = s.element), a.isDehydrated)) {
if (
((a = {
element: r,
isDehydrated: !1,
cache: s.cache,
pendingSuspenseBoundaries: s.pendingSuspenseBoundaries,
transitions: s.transitions,
}),
(t.updateQueue.baseState = a),
(t.memoizedState = a),
256 & t.flags)
) {
t = As(e, t, r, n, (i = cs(Error(o(423)), t)));
break e;
}
if (r !== i) {
t = As(e, t, r, n, (i = cs(Error(o(424)), t)));
break e;
}
for (
ro = ui(t.stateNode.containerInfo.firstChild),
no = t,
io = !0,
oo = null,
n = Jo(t, null, r, n),
t.child = n;
n;
)
(n.flags = (-3 & n.flags) | 4096), (n = n.sibling);
} else {
if ((po(), r === i)) {
t = Hs(e, t, n);
break e;
}
_s(e, t, r, n);
}
t = t.child;
}
return t;
case 5:
return (
aa(t),
null === e && uo(t),
(r = t.type),
(i = t.pendingProps),
(a = null !== e ? e.memoizedProps : null),
(s = i.children),
ni(r, i)
? (s = null)
: null !== a && ni(r, a) && (t.flags |= 32),
Ts(e, t),
_s(e, t, s, n),
t.child
);
case 6:
return null === e && uo(t), null;
case 13:
return Is(e, t, n);
case 4:
return (
ia(t, t.stateNode.containerInfo),
(r = t.pendingProps),
null === e ? (t.child = Xo(t, null, r, n)) : _s(e, t, r, n),
t.child
);
case 11:
return (
(r = t.type),
(i = t.pendingProps),
xs(e, t, r, (i = t.elementType === r ? i : go(r, i)), n)
);
case 7:
return _s(e, t, t.pendingProps, n), t.child;
case 8:
case 12:
return _s(e, t, t.pendingProps.children, n), t.child;
case 10:
e: {
if (
((r = t.type._context),
(i = t.pendingProps),
(a = t.memoizedProps),
(s = i.value),
Ti(yo, r._currentValue),
(r._currentValue = s),
null !== a)
)
if (sr(a.value, s)) {
if (a.children === i.children && !ji.current) {
t = Hs(e, t, n);
break e;
}
} else
for (
null !== (a = t.child) && (a.return = t);
null !== a;
) {
var l = a.dependencies;
if (null !== l) {
s = a.child;
for (var u = l.firstContext; null !== u;) {
if (u.context === r) {
if (1 === a.tag) {
(u = Ro(-1, n & -n)).tag = 2;
var c = a.updateQueue;
if (null !== c) {
var d = (c = c.shared).pending;
null === d
? (u.next = u)
: ((u.next = d.next), (d.next = u)),
(c.pending = u);
}
}
(a.lanes |= n),
null !== (u = a.alternate) && (u.lanes |= n),
So(a.return, n, t),
(l.lanes |= n);
break;
}
u = u.next;
}
} else if (10 === a.tag)
s = a.type === t.type ? null : a.child;
else if (18 === a.tag) {
if (null === (s = a.return)) throw Error(o(341));
(s.lanes |= n),
null !== (l = s.alternate) && (l.lanes |= n),
So(s, n, t),
(s = a.sibling);
} else s = a.child;
if (null !== s) s.return = a;
else
for (s = a; null !== s;) {
if (s === t) {
s = null;
break;
}
if (null !== (a = s.sibling)) {
(a.return = s.return), (s = a);
break;
}
s = s.return;
}
a = s;
}
_s(e, t, i.children, n), (t = t.child);
}
return t;
case 9:
return (
(i = t.type),
(r = t.pendingProps.children),
Eo(t, n),
(r = r((i = To(i)))),
(t.flags |= 1),
_s(e, t, r, n),
t.child
);
case 14:
return (
(i = go((r = t.type), t.pendingProps)),
ks(e, t, r, (i = go(r.type, i)), n)
);
case 15:
return Ss(e, t, t.type, t.pendingProps, n);
case 17:
return (
(r = t.type),
(i = t.pendingProps),
(i = t.elementType === r ? i : go(r, i)),
Ws(e, t),
(t.tag = 1),
Pi(r) ? ((e = !0), Mi(t)) : (e = !1),
Eo(t, n),
Ho(t, r, i),
qo(t, r, i, n),
js(null, t, r, !0, e, n)
);
case 19:
return Gs(e, t, n);
case 22:
return Es(e, t, n);
}
throw Error(o(156, t.tag));
};
var Yu =
"function" === typeof reportError
? reportError
: function (e) {
console.error(e);
};
function $u(e) {
this._internalRoot = e;
}
function Qu(e) {
this._internalRoot = e;
}
function Xu(e) {
return !(
!e ||
(1 !== e.nodeType && 9 !== e.nodeType && 11 !== e.nodeType)
);
}
function Ju(e) {
return !(
!e ||
(1 !== e.nodeType &&
9 !== e.nodeType &&
11 !== e.nodeType &&
(8 !== e.nodeType ||
" react-mount-point-unstable " !== e.nodeValue))
);
}
function Zu() { }
function ec(e, t, n, r, i) {
var o = n._reactRootContainer;
if (o) {
var a = o;
if ("function" === typeof i) {
var s = i;
i = function () {
var e = Vu(a);
s.call(e);
};
}
Hu(t, a, e, i);
} else
a = (function (e, t, n, r, i) {
if (i) {
if ("function" === typeof r) {
var o = r;
r = function () {
var e = Vu(a);
o.call(e);
};
}
var a = Wu(t, r, e, 0, null, !1, 0, "", Zu);
return (
(e._reactRootContainer = a),
(e[pi] = a.current),
Gr(8 === e.nodeType ? e.parentNode : e),
cu(),
a
);
}
for (; (i = e.lastChild);) e.removeChild(i);
if ("function" === typeof r) {
var s = r;
r = function () {
var e = Vu(l);
s.call(e);
};
}
var l = Uu(e, 0, !1, null, 0, !1, 0, "", Zu);
return (
(e._reactRootContainer = l),
(e[pi] = l.current),
Gr(8 === e.nodeType ? e.parentNode : e),
cu(function () {
Hu(t, l, n, r);
}),
l
);
})(n, t, e, i, r);
return Vu(a);
}
(Qu.prototype.render = $u.prototype.render =
function (e) {
var t = this._internalRoot;
if (null === t) throw Error(o(409));
Hu(e, t, null, null);
}),
(Qu.prototype.unmount = $u.prototype.unmount =
function () {
var e = this._internalRoot;
if (null !== e) {
this._internalRoot = null;
var t = e.containerInfo;
cu(function () {
Hu(null, e, null, null);
}),
(t[pi] = null);
}
}),
(Qu.prototype.unstable_scheduleHydration = function (e) {
if (e) {
var t = St();
e = { blockedOn: null, target: e, priority: t };
for (
var n = 0;
n < Lt.length && 0 !== t && t < Lt[n].priority;
n++
);
Lt.splice(n, 0, e), 0 === n && It(e);
}
}),
(_t = function (e) {
switch (e.tag) {
case 3:
var t = e.stateNode;
if (t.current.memoizedState.isDehydrated) {
var n = dt(t.pendingLanes);
0 !== n &&
(yt(t, 1 | n),
ru(t, Xe()),
0 === (6 & Nl) && ((Gl = Xe() + 500), Gi()));
}
break;
case 13:
cu(function () {
var t = Oo(e, 1);
if (null !== t) {
var n = eu();
nu(t, e, 1, n);
}
}),
Ku(e, 1);
}
}),
(xt = function (e) {
if (13 === e.tag) {
var t = Oo(e, 134217728);
if (null !== t) nu(t, e, 134217728, eu());
Ku(e, 134217728);
}
}),
(kt = function (e) {
if (13 === e.tag) {
var t = tu(e),
n = Oo(e, t);
if (null !== n) nu(n, e, t, eu());
Ku(e, t);
}
}),
(St = function () {
return bt;
}),
(Et = function (e, t) {
var n = bt;
try {
return (bt = e), t();
} finally {
bt = n;
}
}),
(xe = function (e, t, n) {
switch (t) {
case "input":
if ((J(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 = _i(r);
if (!i) throw Error(o(90));
K(r), J(r, i);
}
}
}
break;
case "textarea":
oe(e, n);
break;
case "select":
null != (t = n.value) && ne(e, !!n.multiple, t, !1);
}
}),
(Ne = uu),
(je = cu);
var tc = {
usingClientEntryPoint: !1,
Events: [bi, wi, _i, Te, Ce, uu],
},
nc = {
findFiberByHostInstance: yi,
bundleType: 0,
version: "18.2.0",
rendererPackageName: "react-dom",
},
rc = {
bundleType: nc.bundleType,
version: nc.version,
rendererPackageName: nc.rendererPackageName,
rendererConfig: nc.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
overrideProps: null,
overridePropsDeletePath: null,
overridePropsRenamePath: null,
setErrorHandler: null,
setSuspenseHandler: null,
scheduleUpdate: null,
currentDispatcherRef: w.ReactCurrentDispatcher,
findHostInstanceByFiber: function (e) {
return null === (e = Ve(e)) ? null : e.stateNode;
},
findFiberByHostInstance:
nc.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 ic = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (!ic.isDisabled && ic.supportsFiber)
try {
(it = ic.inject(rc)), (ot = ic);
} catch (ce) { }
}
(t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = tc),
(t.createPortal = function (e, t) {
var n =
2 < arguments.length && void 0 !== arguments[2]
? arguments[2]
: null;
if (!Xu(t)) throw Error(o(200));
return Bu(e, t, null, n);
}),
(t.createRoot = function (e, t) {
if (!Xu(e)) throw Error(o(299));
var n = !1,
r = "",
i = Yu;
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 = Uu(e, 1, !1, null, 0, n, 0, r, i)),
(e[pi] = t.current),
Gr(8 === e.nodeType ? e.parentNode : e),
new $u(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(o(188));
throw ((e = Object.keys(e).join(",")), Error(o(268, e)));
}
return (e = null === (e = Ve(t)) ? null : e.stateNode);
}),
(t.flushSync = function (e) {
return cu(e);
}),
(t.hydrate = function (e, t, n) {
if (!Ju(t)) throw Error(o(200));
return ec(null, e, t, !0, n);
}),
(t.hydrateRoot = function (e, t, n) {
if (!Xu(e)) throw Error(o(405));
var r = (null != n && n.hydratedSources) || null,
i = !1,
a = "",
s = Yu;
if (
(null !== n &&
void 0 !== n &&
(!0 === n.unstable_strictMode && (i = !0),
void 0 !== n.identifierPrefix && (a = n.identifierPrefix),
void 0 !== n.onRecoverableError && (s = n.onRecoverableError)),
(t = Wu(t, null, e, 1, null != n ? n : null, i, 0, a, s)),
(e[pi] = 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 Qu(t);
}),
(t.render = function (e, t, n) {
if (!Ju(t)) throw Error(o(200));
return ec(null, e, t, !1, n);
}),
(t.unmountComponentAtNode = function (e) {
if (!Ju(e)) throw Error(o(40));
return (
!!e._reactRootContainer &&
(cu(function () {
ec(null, null, e, !1, function () {
(e._reactRootContainer = null), (e[pi] = null);
});
}),
!0)
);
}),
(t.unstable_batchedUpdates = uu),
(t.unstable_renderSubtreeIntoContainer = function (e, t, n, r) {
if (!Ju(n)) throw Error(o(200));
if (null == e || void 0 === e._reactInternals) throw Error(o(38));
return ec(e, t, n, !1, r);
}),
(t.version = "18.2.0-next-9e3b772b8-20220608");
},
739: function (e, t, n) {
"use strict";
var r = n(168);
(t.createRoot = r.createRoot), (t.hydrateRoot = r.hydrateRoot);
},
168: function (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(534));
},
365: function (e, t, n) {
"use strict";
function r(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) return;
var r,
i,
o = [],
a = !0,
s = !1;
try {
for (
n = n.call(e);
!(a = (r = n.next()).done) &&
(o.push(r.value), !t || o.length !== t);
a = !0
);
} catch (l) {
(s = !0), (i = l);
} finally {
try {
a || null == n.return || n.return();
} finally {
if (s) throw i;
}
}
return o;
})(e, t) ||
(function (e, t) {
if (!e) return;
if ("string" === typeof e) return i(e, t);
var n = Object.prototype.toString.call(e).slice(8, -1);
"Object" === n && e.constructor && (n = e.constructor.name);
if ("Map" === n || "Set" === n) return Array.from(e);
if (
"Arguments" === n ||
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
)
return i(e, t);
})(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 i(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;
}
Object.defineProperty(t, "__esModule", { value: !0 });
function o(e, t, n, r, i, o, a) {
(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 = o),
(this.removeEmptyString = a);
}
var a = {};
[
"children",
"dangerouslySetInnerHTML",
"defaultValue",
"defaultChecked",
"innerHTML",
"suppressContentEditableWarning",
"suppressHydrationWarning",
"style",
].forEach(function (e) {
a[e] = new o(e, 0, !1, e, null, !1, !1);
}),
[
["acceptCharset", "accept-charset"],
["className", "class"],
["htmlFor", "for"],
["httpEquiv", "http-equiv"],
].forEach(function (e) {
var t = r(e, 2),
n = t[0],
i = t[1];
a[n] = new o(n, 1, !1, i, null, !1, !1);
}),
["contentEditable", "draggable", "spellCheck", "value"].forEach(
function (e) {
a[e] = new o(e, 2, !1, e.toLowerCase(), null, !1, !1);
}
),
[
"autoReverse",
"externalResourcesRequired",
"focusable",
"preserveAlpha",
].forEach(function (e) {
a[e] = new o(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",
].forEach(function (e) {
a[e] = new o(e, 3, !1, e.toLowerCase(), null, !1, !1);
}),
["checked", "multiple", "muted", "selected"].forEach(function (e) {
a[e] = new o(e, 3, !0, e, null, !1, !1);
}),
["capture", "download"].forEach(function (e) {
a[e] = new o(e, 4, !1, e, null, !1, !1);
}),
["cols", "rows", "size", "span"].forEach(function (e) {
a[e] = new o(e, 6, !1, e, null, !1, !1);
}),
["rowSpan", "start"].forEach(function (e) {
a[e] = new o(e, 5, !1, e.toLowerCase(), null, !1, !1);
});
var s = /[\-\:]([a-z])/g,
l = function (e) {
return e[1].toUpperCase();
};
[
"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",
].forEach(function (e) {
var t = e.replace(s, l);
a[t] = new o(t, 1, !1, e, null, !1, !1);
}),
[
"xlink:actuate",
"xlink:arcrole",
"xlink:role",
"xlink:show",
"xlink:title",
"xlink:type",
].forEach(function (e) {
var t = e.replace(s, l);
a[t] = new o(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(s, l);
a[t] = new o(
t,
1,
!1,
e,
"http://www.w3.org/XML/1998/namespace",
!1,
!1
);
}),
["tabIndex", "crossOrigin"].forEach(function (e) {
a[e] = new o(e, 1, !1, e.toLowerCase(), null, !1, !1);
});
(a.xlinkHref = new o(
"xlinkHref",
1,
!1,
"xlink:href",
"http://www.w3.org/1999/xlink",
!0,
!1
)),
["src", "href", "action", "formAction"].forEach(function (e) {
a[e] = new o(e, 1, !1, e.toLowerCase(), null, !0, !0);
});
var u = n(402),
c = u.CAMELCASE,
d = u.SAME,
f = u.possibleStandardNames,
h = RegExp.prototype.test.bind(
new RegExp(
"^(data|aria)-[: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]*$"
)
),
p = Object.keys(f).reduce(function (e, t) {
var n = f[t];
return (
n === d
? (e[t] = t)
: n === c
? (e[t.toLowerCase()] = t)
: (e[t] = n),
e
);
}, {});
(t.BOOLEAN = 3),
(t.BOOLEANISH_STRING = 2),
(t.NUMERIC = 5),
(t.OVERLOADED_BOOLEAN = 4),
(t.POSITIVE_NUMERIC = 6),
(t.RESERVED = 0),
(t.STRING = 1),
(t.getPropertyInfo = function (e) {
return a.hasOwnProperty(e) ? a[e] : null;
}),
(t.isCustomAttribute = h),
(t.possibleStandardNames = p);
},
402: function (e, t) {
t.SAME = 0;
(t.CAMELCASE = 1),
(t.possibleStandardNames = {
accept: 0,
acceptCharset: 1,
"accept-charset": "acceptCharset",
accessKey: 1,
action: 0,
allowFullScreen: 1,
alt: 0,
as: 0,
async: 0,
autoCapitalize: 1,
autoComplete: 1,
autoCorrect: 1,
autoFocus: 1,
autoPlay: 1,
autoSave: 1,
capture: 0,
cellPadding: 1,
cellSpacing: 1,
challenge: 0,
charSet: 1,
checked: 0,
children: 0,
cite: 0,
class: "className",
classID: 1,
className: 1,
cols: 0,
colSpan: 1,
content: 0,
contentEditable: 1,
contextMenu: 1,
controls: 0,
controlsList: 1,
coords: 0,
crossOrigin: 1,
dangerouslySetInnerHTML: 1,
data: 0,
dateTime: 1,
default: 0,
defaultChecked: 1,
defaultValue: 1,
defer: 0,
dir: 0,
disabled: 0,
disablePictureInPicture: 1,
disableRemotePlayback: 1,
download: 0,
draggable: 0,
encType: 1,
enterKeyHint: 1,
for: "htmlFor",
form: 0,
formMethod: 1,
formAction: 1,
formEncType: 1,
formNoValidate: 1,
formTarget: 1,
frameBorder: 1,
headers: 0,
height: 0,
hidden: 0,
high: 0,
href: 0,
hrefLang: 1,
htmlFor: 1,
httpEquiv: 1,
"http-equiv": "httpEquiv",
icon: 0,
id: 0,
innerHTML: 1,
inputMode: 1,
integrity: 0,
is: 0,
itemID: 1,
itemProp: 1,
itemRef: 1,
itemScope: 1,
itemType: 1,
keyParams: 1,
keyType: 1,
kind: 0,
label: 0,
lang: 0,
list: 0,
loop: 0,
low: 0,
manifest: 0,
marginWidth: 1,
marginHeight: 1,
max: 0,
maxLength: 1,
media: 0,
mediaGroup: 1,
method: 0,
min: 0,
minLength: 1,
multiple: 0,
muted: 0,
name: 0,
noModule: 1,
nonce: 0,
noValidate: 1,
open: 0,
optimum: 0,
pattern: 0,
placeholder: 0,
playsInline: 1,
poster: 0,
preload: 0,
profile: 0,
radioGroup: 1,
readOnly: 1,
referrerPolicy: 1,
rel: 0,
required: 0,
reversed: 0,
role: 0,
rows: 0,
rowSpan: 1,
sandbox: 0,
scope: 0,
scoped: 0,
scrolling: 0,
seamless: 0,
selected: 0,
shape: 0,
size: 0,
sizes: 0,
span: 0,
spellCheck: 1,
src: 0,
srcDoc: 1,
srcLang: 1,
srcSet: 1,
start: 0,
step: 0,
style: 0,
summary: 0,
tabIndex: 1,
target: 0,
title: 0,
type: 0,
useMap: 1,
value: 0,
width: 0,
wmode: 0,
wrap: 0,
about: 0,
accentHeight: 1,
"accent-height": "accentHeight",
accumulate: 0,
additive: 0,
alignmentBaseline: 1,
"alignment-baseline": "alignmentBaseline",
allowReorder: 1,
alphabetic: 0,
amplitude: 0,
arabicForm: 1,
"arabic-form": "arabicForm",
ascent: 0,
attributeName: 1,
attributeType: 1,
autoReverse: 1,
azimuth: 0,
baseFrequency: 1,
baselineShift: 1,
"baseline-shift": "baselineShift",
baseProfile: 1,
bbox: 0,
begin: 0,
bias: 0,
by: 0,
calcMode: 1,
capHeight: 1,
"cap-height": "capHeight",
clip: 0,
clipPath: 1,
"clip-path": "clipPath",
clipPathUnits: 1,
clipRule: 1,
"clip-rule": "clipRule",
color: 0,
colorInterpolation: 1,
"color-interpolation": "colorInterpolation",
colorInterpolationFilters: 1,
"color-interpolation-filters": "colorInterpolationFilters",
colorProfile: 1,
"color-profile": "colorProfile",
colorRendering: 1,
"color-rendering": "colorRendering",
contentScriptType: 1,
contentStyleType: 1,
cursor: 0,
cx: 0,
cy: 0,
d: 0,
datatype: 0,
decelerate: 0,
descent: 0,
diffuseConstant: 1,
direction: 0,
display: 0,
divisor: 0,
dominantBaseline: 1,
"dominant-baseline": "dominantBaseline",
dur: 0,
dx: 0,
dy: 0,
edgeMode: 1,
elevation: 0,
enableBackground: 1,
"enable-background": "enableBackground",
end: 0,
exponent: 0,
externalResourcesRequired: 1,
fill: 0,
fillOpacity: 1,
"fill-opacity": "fillOpacity",
fillRule: 1,
"fill-rule": "fillRule",
filter: 0,
filterRes: 1,
filterUnits: 1,
floodOpacity: 1,
"flood-opacity": "floodOpacity",
floodColor: 1,
"flood-color": "floodColor",
focusable: 0,
fontFamily: 1,
"font-family": "fontFamily",
fontSize: 1,
"font-size": "fontSize",
fontSizeAdjust: 1,
"font-size-adjust": "fontSizeAdjust",
fontStretch: 1,
"font-stretch": "fontStretch",
fontStyle: 1,
"font-style": "fontStyle",
fontVariant: 1,
"font-variant": "fontVariant",
fontWeight: 1,
"font-weight": "fontWeight",
format: 0,
from: 0,
fx: 0,
fy: 0,
g1: 0,
g2: 0,
glyphName: 1,
"glyph-name": "glyphName",
glyphOrientationHorizontal: 1,
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
glyphOrientationVertical: 1,
"glyph-orientation-vertical": "glyphOrientationVertical",
glyphRef: 1,
gradientTransform: 1,
gradientUnits: 1,
hanging: 0,
horizAdvX: 1,
"horiz-adv-x": "horizAdvX",
horizOriginX: 1,
"horiz-origin-x": "horizOriginX",
ideographic: 0,
imageRendering: 1,
"image-rendering": "imageRendering",
in2: 0,
in: 0,
inlist: 0,
intercept: 0,
k1: 0,
k2: 0,
k3: 0,
k4: 0,
k: 0,
kernelMatrix: 1,
kernelUnitLength: 1,
kerning: 0,
keyPoints: 1,
keySplines: 1,
keyTimes: 1,
lengthAdjust: 1,
letterSpacing: 1,
"letter-spacing": "letterSpacing",
lightingColor: 1,
"lighting-color": "lightingColor",
limitingConeAngle: 1,
local: 0,
markerEnd: 1,
"marker-end": "markerEnd",
markerHeight: 1,
markerMid: 1,
"marker-mid": "markerMid",
markerStart: 1,
"marker-start": "markerStart",
markerUnits: 1,
markerWidth: 1,
mask: 0,
maskContentUnits: 1,
maskUnits: 1,
mathematical: 0,
mode: 0,
numOctaves: 1,
offset: 0,
opacity: 0,
operator: 0,
order: 0,
orient: 0,
orientation: 0,
origin: 0,
overflow: 0,
overlinePosition: 1,
"overline-position": "overlinePosition",
overlineThickness: 1,
"overline-thickness": "overlineThickness",
paintOrder: 1,
"paint-order": "paintOrder",
panose1: 0,
"panose-1": "panose1",
pathLength: 1,
patternContentUnits: 1,
patternTransform: 1,
patternUnits: 1,
pointerEvents: 1,
"pointer-events": "pointerEvents",
points: 0,
pointsAtX: 1,
pointsAtY: 1,
pointsAtZ: 1,
prefix: 0,
preserveAlpha: 1,
preserveAspectRatio: 1,
primitiveUnits: 1,
property: 0,
r: 0,
radius: 0,
refX: 1,
refY: 1,
renderingIntent: 1,
"rendering-intent": "renderingIntent",
repeatCount: 1,
repeatDur: 1,
requiredExtensions: 1,
requiredFeatures: 1,
resource: 0,
restart: 0,
result: 0,
results: 0,
rotate: 0,
rx: 0,
ry: 0,
scale: 0,
security: 0,
seed: 0,
shapeRendering: 1,
"shape-rendering": "shapeRendering",
slope: 0,
spacing: 0,
specularConstant: 1,
specularExponent: 1,
speed: 0,
spreadMethod: 1,
startOffset: 1,
stdDeviation: 1,
stemh: 0,
stemv: 0,
stitchTiles: 1,
stopColor: 1,
"stop-color": "stopColor",
stopOpacity: 1,
"stop-opacity": "stopOpacity",
strikethroughPosition: 1,
"strikethrough-position": "strikethroughPosition",
strikethroughThickness: 1,
"strikethrough-thickness": "strikethroughThickness",
string: 0,
stroke: 0,
strokeDasharray: 1,
"stroke-dasharray": "strokeDasharray",
strokeDashoffset: 1,
"stroke-dashoffset": "strokeDashoffset",
strokeLinecap: 1,
"stroke-linecap": "strokeLinecap",
strokeLinejoin: 1,
"stroke-linejoin": "strokeLinejoin",
strokeMiterlimit: 1,
"stroke-miterlimit": "strokeMiterlimit",
strokeWidth: 1,
"stroke-width": "strokeWidth",
strokeOpacity: 1,
"stroke-opacity": "strokeOpacity",
suppressContentEditableWarning: 1,
suppressHydrationWarning: 1,
surfaceScale: 1,
systemLanguage: 1,
tableValues: 1,
targetX: 1,
targetY: 1,
textAnchor: 1,
"text-anchor": "textAnchor",
textDecoration: 1,
"text-decoration": "textDecoration",
textLength: 1,
textRendering: 1,
"text-rendering": "textRendering",
to: 0,
transform: 0,
typeof: 0,
u1: 0,
u2: 0,
underlinePosition: 1,
"underline-position": "underlinePosition",
underlineThickness: 1,
"underline-thickness": "underlineThickness",
unicode: 0,
unicodeBidi: 1,
"unicode-bidi": "unicodeBidi",
unicodeRange: 1,
"unicode-range": "unicodeRange",
unitsPerEm: 1,
"units-per-em": "unitsPerEm",
unselectable: 0,
vAlphabetic: 1,
"v-alphabetic": "vAlphabetic",
values: 0,
vectorEffect: 1,
"vector-effect": "vectorEffect",
version: 0,
vertAdvY: 1,
"vert-adv-y": "vertAdvY",
vertOriginX: 1,
"vert-origin-x": "vertOriginX",
vertOriginY: 1,
"vert-origin-y": "vertOriginY",
vHanging: 1,
"v-hanging": "vHanging",
vIdeographic: 1,
"v-ideographic": "vIdeographic",
viewBox: 1,
viewTarget: 1,
visibility: 0,
vMathematical: 1,
"v-mathematical": "vMathematical",
vocab: 0,
widths: 0,
wordSpacing: 1,
"word-spacing": "wordSpacing",
writingMode: 1,
"writing-mode": "writingMode",
x1: 0,
x2: 0,
x: 0,
xChannelSelector: 1,
xHeight: 1,
"x-height": "xHeight",
xlinkActuate: 1,
"xlink:actuate": "xlinkActuate",
xlinkArcrole: 1,
"xlink:arcrole": "xlinkArcrole",
xlinkHref: 1,
"xlink:href": "xlinkHref",
xlinkRole: 1,
"xlink:role": "xlinkRole",
xlinkShow: 1,
"xlink:show": "xlinkShow",
xlinkTitle: 1,
"xlink:title": "xlinkTitle",
xlinkType: 1,
"xlink:type": "xlinkType",
xmlBase: 1,
"xml:base": "xmlBase",
xmlLang: 1,
"xml:lang": "xmlLang",
xmlns: 0,
"xml:space": "xmlSpace",
xmlnsXlink: 1,
"xmlns:xlink": "xmlnsXlink",
xmlSpace: 1,
y1: 0,
y2: 0,
y: 0,
yChannelSelector: 1,
z: 0,
zoomAndPan: 1,
});
},
918: function (e, t, n) {
"use strict";
var r = n(313),
i = Symbol.for("react.element"),
o = Symbol.for("react.fragment"),
a = 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 u(e, t, n) {
var r,
o = {},
u = null,
c = null;
for (r in (void 0 !== n && (u = "" + n),
void 0 !== t.key && (u = "" + t.key),
void 0 !== t.ref && (c = t.ref),
t))
a.call(t, r) && !l.hasOwnProperty(r) && (o[r] = t[r]);
if (e && e.defaultProps)
for (r in (t = e.defaultProps)) void 0 === o[r] && (o[r] = t[r]);
return {
$$typeof: i,
type: e,
key: u,
ref: c,
props: o,
_owner: s.current,
};
}
(t.Fragment = o), (t.jsx = u), (t.jsxs = u);
},
306: function (e, t) {
"use strict";
var n = Symbol.for("react.element"),
r = Symbol.for("react.portal"),
i = Symbol.for("react.fragment"),
o = Symbol.for("react.strict_mode"),
a = Symbol.for("react.profiler"),
s = Symbol.for("react.provider"),
l = Symbol.for("react.context"),
u = Symbol.for("react.forward_ref"),
c = Symbol.for("react.suspense"),
d = Symbol.for("react.memo"),
f = Symbol.for("react.lazy"),
h = Symbol.iterator;
var p = {
isMounted: function () {
return !1;
},
enqueueForceUpdate: function () { },
enqueueReplaceState: function () { },
enqueueSetState: function () { },
},
v = Object.assign,
m = {};
function g(e, t, n) {
(this.props = e),
(this.context = t),
(this.refs = m),
(this.updater = n || p);
}
function y() { }
function b(e, t, n) {
(this.props = e),
(this.context = t),
(this.refs = m),
(this.updater = n || p);
}
(g.prototype.isReactComponent = {}),
(g.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");
}),
(g.prototype.forceUpdate = function (e) {
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
}),
(y.prototype = g.prototype);
var w = (b.prototype = new y());
(w.constructor = b), v(w, g.prototype), (w.isPureReactComponent = !0);
var _ = Array.isArray,
x = Object.prototype.hasOwnProperty,
k = { current: null },
S = { key: !0, ref: !0, __self: !0, __source: !0 };
function E(e, t, r) {
var i,
o = {},
a = null,
s = null;
if (null != t)
for (i in (void 0 !== t.ref && (s = t.ref),
void 0 !== t.key && (a = "" + t.key),
t))
x.call(t, i) && !S.hasOwnProperty(i) && (o[i] = t[i]);
var l = arguments.length - 2;
if (1 === l) o.children = r;
else if (1 < l) {
for (var u = Array(l), c = 0; c < l; c++) u[c] = arguments[c + 2];
o.children = u;
}
if (e && e.defaultProps)
for (i in (l = e.defaultProps)) void 0 === o[i] && (o[i] = l[i]);
return {
$$typeof: n,
type: e,
key: a,
ref: s,
props: o,
_owner: k.current,
};
}
function T(e) {
return "object" === typeof e && null !== e && e.$$typeof === n;
}
var C = /\/+/g;
function N(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 j(e, t, i, o, a) {
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 (
(a = a((l = e))),
(e = "" === o ? "." + N(l, 0) : o),
_(a)
? ((i = ""),
null != e && (i = e.replace(C, "$&/") + "/"),
j(a, t, i, "", function (e) {
return e;
}))
: null != a &&
(T(a) &&
(a = (function (e, t) {
return {
$$typeof: n,
type: e.type,
key: t,
ref: e.ref,
props: e.props,
_owner: e._owner,
};
})(
a,
i +
(!a.key || (l && l.key === a.key)
? ""
: ("" + a.key).replace(C, "$&/") + "/") +
e
)),
t.push(a)),
1
);
if (((l = 0), (o = "" === o ? "." : o + ":"), _(e)))
for (var u = 0; u < e.length; u++) {
var c = o + N((s = e[u]), u);
l += j(s, t, i, c, a);
}
else if (
((c = (function (e) {
return null === e || "object" !== typeof e
? null
: "function" === typeof (e = (h && e[h]) || e["@@iterator"])
? e
: null;
})(e)),
"function" === typeof c)
)
for (e = c.call(e), u = 0; !(s = e.next()).done;)
l += j((s = s.value), t, i, (c = o + N(s, u++)), a);
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 O(e, t, n) {
if (null == e) return e;
var r = [],
i = 0;
return (
j(e, r, "", "", function (e) {
return t.call(n, e, i++);
}),
r
);
}
function A(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 P = { current: null },
L = { transition: null },
R = {
ReactCurrentDispatcher: P,
ReactCurrentBatchConfig: L,
ReactCurrentOwner: k,
};
(t.Children = {
map: O,
forEach: function (e, t, n) {
O(
e,
function () {
t.apply(this, arguments);
},
n
);
},
count: function (e) {
var t = 0;
return (
O(e, function () {
t++;
}),
t
);
},
toArray: function (e) {
return (
O(e, function (e) {
return e;
}) || []
);
},
only: function (e) {
if (!T(e))
throw Error(
"React.Children.only expected to receive a single React element child."
);
return e;
},
}),
(t.Component = g),
(t.Fragment = i),
(t.Profiler = a),
(t.PureComponent = b),
(t.StrictMode = o),
(t.Suspense = c),
(t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = R),
(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 = v({}, e.props),
o = e.key,
a = e.ref,
s = e._owner;
if (null != t) {
if (
(void 0 !== t.ref && ((a = t.ref), (s = k.current)),
void 0 !== t.key && (o = "" + t.key),
e.type && e.type.defaultProps)
)
var l = e.type.defaultProps;
for (u in t)
x.call(t, u) &&
!S.hasOwnProperty(u) &&
(i[u] = void 0 === t[u] && void 0 !== l ? l[u] : t[u]);
}
var u = arguments.length - 2;
if (1 === u) i.children = r;
else if (1 < u) {
l = Array(u);
for (var c = 0; c < u; c++) l[c] = arguments[c + 2];
i.children = l;
}
return {
$$typeof: n,
type: e.type,
key: o,
ref: a,
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 = E),
(t.createFactory = function (e) {
var t = E.bind(null, e);
return (t.type = e), t;
}),
(t.createRef = function () {
return { current: null };
}),
(t.forwardRef = function (e) {
return { $$typeof: u, render: e };
}),
(t.isValidElement = T),
(t.lazy = function (e) {
return {
$$typeof: f,
_payload: { _status: -1, _result: e },
_init: A,
};
}),
(t.memo = function (e, t) {
return { $$typeof: d, type: e, compare: void 0 === t ? null : t };
}),
(t.startTransition = function (e) {
var t = L.transition;
L.transition = {};
try {
e();
} finally {
L.transition = t;
}
}),
(t.unstable_act = function () {
throw Error(
"act(...) is not supported in production builds of React."
);
}),
(t.useCallback = function (e, t) {
return P.current.useCallback(e, t);
}),
(t.useContext = function (e) {
return P.current.useContext(e);
}),
(t.useDebugValue = function () { }),
(t.useDeferredValue = function (e) {
return P.current.useDeferredValue(e);
}),
(t.useEffect = function (e, t) {
return P.current.useEffect(e, t);
}),
(t.useId = function () {
return P.current.useId();
}),
(t.useImperativeHandle = function (e, t, n) {
return P.current.useImperativeHandle(e, t, n);
}),
(t.useInsertionEffect = function (e, t) {
return P.current.useInsertionEffect(e, t);
}),
(t.useLayoutEffect = function (e, t) {
return P.current.useLayoutEffect(e, t);
}),
(t.useMemo = function (e, t) {
return P.current.useMemo(e, t);
}),
(t.useReducer = function (e, t, n) {
return P.current.useReducer(e, t, n);
}),
(t.useRef = function (e) {
return P.current.useRef(e);
}),
(t.useState = function (e) {
return P.current.useState(e);
}),
(t.useSyncExternalStore = function (e, t, n) {
return P.current.useSyncExternalStore(e, t, n);
}),
(t.useTransition = function () {
return P.current.useTransition();
}),
(t.version = "18.2.0");
},
313: function (e, t, n) {
"use strict";
e.exports = n(306);
},
417: function (e, t, n) {
"use strict";
e.exports = n(918);
},
95: function (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 < o(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, a = i >>> 1; r < a;) {
var s = 2 * (r + 1) - 1,
l = e[s],
u = s + 1,
c = e[u];
if (0 > o(l, n))
u < i && 0 > o(c, l)
? ((e[r] = c), (e[u] = n), (r = u))
: ((e[r] = l), (e[s] = n), (r = s));
else {
if (!(u < i && 0 > o(c, n))) break e;
(e[r] = c), (e[u] = n), (r = u);
}
}
}
return t;
}
function o(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 a = performance;
t.unstable_now = function () {
return a.now();
};
} else {
var s = Date,
l = s.now();
t.unstable_now = function () {
return s.now() - l;
};
}
var u = [],
c = [],
d = 1,
f = null,
h = 3,
p = !1,
v = !1,
m = !1,
g = "function" === typeof setTimeout ? setTimeout : null,
y = "function" === typeof clearTimeout ? clearTimeout : null,
b = "undefined" !== typeof setImmediate ? setImmediate : null;
function w(e) {
for (var t = r(c); null !== t;) {
if (null === t.callback) i(c);
else {
if (!(t.startTime <= e)) break;
i(c), (t.sortIndex = t.expirationTime), n(u, t);
}
t = r(c);
}
}
function _(e) {
if (((m = !1), w(e), !v))
if (null !== r(u)) (v = !0), L(x);
else {
var t = r(c);
null !== t && R(_, t.startTime - e);
}
}
function x(e, n) {
(v = !1), m && ((m = !1), y(T), (T = -1)), (p = !0);
var o = h;
try {
for (
w(n), f = r(u);
null !== f && (!(f.expirationTime > n) || (e && !j()));
) {
var a = f.callback;
if ("function" === typeof a) {
(f.callback = null), (h = f.priorityLevel);
var s = a(f.expirationTime <= n);
(n = t.unstable_now()),
"function" === typeof s
? (f.callback = s)
: f === r(u) && i(u),
w(n);
} else i(u);
f = r(u);
}
if (null !== f) var l = !0;
else {
var d = r(c);
null !== d && R(_, d.startTime - n), (l = !1);
}
return l;
} finally {
(f = null), (h = o), (p = !1);
}
}
"undefined" !== typeof navigator &&
void 0 !== navigator.scheduling &&
void 0 !== navigator.scheduling.isInputPending &&
navigator.scheduling.isInputPending.bind(navigator.scheduling);
var k,
S = !1,
E = null,
T = -1,
C = 5,
N = -1;
function j() {
return !(t.unstable_now() - N < C);
}
function O() {
if (null !== E) {
var e = t.unstable_now();
N = e;
var n = !0;
try {
n = E(!0, e);
} finally {
n ? k() : ((S = !1), (E = null));
}
} else S = !1;
}
if ("function" === typeof b)
k = function () {
b(O);
};
else if ("undefined" !== typeof MessageChannel) {
var A = new MessageChannel(),
P = A.port2;
(A.port1.onmessage = O),
(k = function () {
P.postMessage(null);
});
} else
k = function () {
g(O, 0);
};
function L(e) {
(E = e), S || ((S = !0), k());
}
function R(e, n) {
T = g(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 () {
v || p || ((v = !0), L(x));
}),
(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"
)
: (C = 0 < e ? Math.floor(1e3 / e) : 5);
}),
(t.unstable_getCurrentPriorityLevel = function () {
return h;
}),
(t.unstable_getFirstCallbackNode = function () {
return r(u);
}),
(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, o) {
var a = t.unstable_now();
switch (
("object" === typeof o && null !== o
? (o = "number" === typeof (o = o.delay) && 0 < o ? a + o : a)
: (o = a),
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: o,
expirationTime: (s = o + s),
sortIndex: -1,
}),
o > a
? ((e.sortIndex = o),
n(c, e),
null === r(u) &&
e === r(c) &&
(m ? (y(T), (T = -1)) : (m = !0), R(_, o - a)))
: ((e.sortIndex = s), n(u, e), v || p || ((v = !0), L(x))),
e
);
}),
(t.unstable_shouldYield = j),
(t.unstable_wrapCallback = function (e) {
var t = h;
return function () {
var n = h;
h = t;
try {
return e.apply(this, arguments);
} finally {
h = n;
}
};
});
},
224: function (e, t, n) {
"use strict";
e.exports = n(95);
},
206: function (e, t, n) {
"use strict";
var r =
(this && this.__importDefault) ||
function (e) {
return e && e.__esModule ? e : { default: e };
};
t.__esModule = !0;
var i = r(n(774)),
o = n(590);
t.default = function (e, t) {
var n = {};
return e && "string" === typeof e
? ((0, i.default)(e, function (e, r) {
e && r && (n[(0, o.camelCase)(e, t)] = r);
}),
n)
: n;
};
},
590: function (e, t) {
"use strict";
(t.__esModule = !0), (t.camelCase = void 0);
var n = /^--[a-zA-Z0-9-]+$/,
r = /-([a-z])/g,
i = /^[^-]+$/,
o = /^-(webkit|moz|ms|o|khtml)-/,
a = /^-(ms)-/,
s = function (e, t) {
return t.toUpperCase();
},
l = function (e, t) {
return "".concat(t, "-");
};
t.camelCase = function (e, t) {
return (
void 0 === t && (t = {}),
(function (e) {
return !e || i.test(e) || n.test(e);
})(e)
? e
: ((e = e.toLowerCase()),
(e = t.reactCompat ? e.replace(a, l) : e.replace(o, l)).replace(
r,
s
))
);
};
},
774: function (e, t, n) {
var r = n(949);
e.exports = function (e, t) {
var n,
i = null;
if (!e || "string" !== typeof e) return i;
for (
var o,
a,
s = r(e),
l = "function" === typeof t,
u = 0,
c = s.length;
u < c;
u++
)
(o = (n = s[u]).property),
(a = n.value),
l ? t(o, a, n) : a && (i || (i = {}), (i[o] = a));
return i;
};
},
},
t = {};
function n(r) {
var i = t[r];
if (void 0 !== i) return i.exports;
var o = (t[r] = { exports: {} });
return e[r].call(o.exports, o, o.exports, n), o.exports;
}
(n.n = function (e) {
var t =
e && e.__esModule
? function () {
return e.default;
}
: function () {
return e;
};
return n.d(t, { a: t }), t;
}),
(n.d = function (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.g = (function () {
if ("object" === typeof globalThis) return globalThis;
try {
return this || new Function("return this")();
} catch (e) {
if ("object" === typeof window) return window;
}
})()),
(n.o = function (e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}),
(function () {
"use strict";
var e = n(313),
t = n(739);
function r(e) {
return (
(r =
"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;
}),
r(e)
);
}
function i() {
i = function () {
return e;
};
var e = {},
t = Object.prototype,
n = t.hasOwnProperty,
o = "function" == typeof Symbol ? Symbol : {},
a = o.iterator || "@@iterator",
s = o.asyncIterator || "@@asyncIterator",
l = o.toStringTag || "@@toStringTag";
function u(e, t, n) {
return (
Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0,
}),
e[t]
);
}
try {
u({}, "");
} catch (N) {
u = function (e, t, n) {
return (e[t] = n);
};
}
function c(e, t, n, r) {
var i = t && t.prototype instanceof h ? t : h,
o = Object.create(i.prototype),
a = new E(r || []);
return (
(o._invoke = (function (e, t, n) {
var r = "suspendedStart";
return function (i, o) {
if ("executing" === r)
throw new Error("Generator is already running");
if ("completed" === r) {
if ("throw" === i) throw o;
return C();
}
for (n.method = i, n.arg = o; ;) {
var a = n.delegate;
if (a) {
var s = x(a, n);
if (s) {
if (s === f) continue;
return s;
}
}
if ("next" === n.method) n.sent = n._sent = n.arg;
else if ("throw" === n.method) {
if ("suspendedStart" === r)
throw ((r = "completed"), n.arg);
n.dispatchException(n.arg);
} else "return" === n.method && n.abrupt("return", n.arg);
r = "executing";
var l = d(e, t, n);
if ("normal" === l.type) {
if (
((r = n.done ? "completed" : "suspendedYield"),
l.arg === f)
)
continue;
return { value: l.arg, done: n.done };
}
"throw" === l.type &&
((r = "completed"), (n.method = "throw"), (n.arg = l.arg));
}
};
})(e, n, a)),
o
);
}
function d(e, t, n) {
try {
return { type: "normal", arg: e.call(t, n) };
} catch (N) {
return { type: "throw", arg: N };
}
}
e.wrap = c;
var f = {};
function h() { }
function p() { }
function v() { }
var m = {};
u(m, a, function () {
return this;
});
var g = Object.getPrototypeOf,
y = g && g(g(T([])));
y && y !== t && n.call(y, a) && (m = y);
var b = (v.prototype = h.prototype = Object.create(m));
function w(e) {
["next", "throw", "return"].forEach(function (t) {
u(e, t, function (e) {
return this._invoke(t, e);
});
});
}
function _(e, t) {
function i(o, a, s, l) {
var u = d(e[o], e, a);
if ("throw" !== u.type) {
var c = u.arg,
f = c.value;
return f && "object" == r(f) && n.call(f, "__await")
? t.resolve(f.__await).then(
function (e) {
i("next", e, s, l);
},
function (e) {
i("throw", e, s, l);
}
)
: t.resolve(f).then(
function (e) {
(c.value = e), s(c);
},
function (e) {
return i("throw", e, s, l);
}
);
}
l(u.arg);
}
var o;
this._invoke = function (e, n) {
function r() {
return new t(function (t, r) {
i(e, n, t, r);
});
}
return (o = o ? o.then(r, r) : r());
};
}
function x(e, t) {
var n = e.iterator[t.method];
if (void 0 === n) {
if (((t.delegate = null), "throw" === t.method)) {
if (
e.iterator.return &&
((t.method = "return"),
(t.arg = void 0),
x(e, t),
"throw" === t.method)
)
return f;
(t.method = "throw"),
(t.arg = new TypeError(
"The iterator does not provide a 'throw' method"
));
}
return f;
}
var r = d(n, e.iterator, t.arg);
if ("throw" === r.type)
return (
(t.method = "throw"), (t.arg = r.arg), (t.delegate = null), f
);
var i = r.arg;
return i
? i.done
? ((t[e.resultName] = i.value),
(t.next = e.nextLoc),
"return" !== t.method &&
((t.method = "next"), (t.arg = void 0)),
(t.delegate = null),
f)
: i
: ((t.method = "throw"),
(t.arg = new TypeError("iterator result is not an object")),
(t.delegate = null),
f);
}
function k(e) {
var t = { tryLoc: e[0] };
1 in e && (t.catchLoc = e[1]),
2 in e && ((t.finallyLoc = e[2]), (t.afterLoc = e[3])),
this.tryEntries.push(t);
}
function S(e) {
var t = e.completion || {};
(t.type = "normal"), delete t.arg, (e.completion = t);
}
function E(e) {
(this.tryEntries = [{ tryLoc: "root" }]),
e.forEach(k, this),
this.reset(!0);
}
function T(e) {
if (e) {
var t = e[a];
if (t) return t.call(e);
if ("function" == typeof e.next) return e;
if (!isNaN(e.length)) {
var r = -1,
i = function t() {
for (; ++r < e.length;)
if (n.call(e, r)) return (t.value = e[r]), (t.done = !1), t;
return (t.value = void 0), (t.done = !0), t;
};
return (i.next = i);
}
}
return { next: C };
}
function C() {
return { value: void 0, done: !0 };
}
return (
(p.prototype = v),
u(b, "constructor", v),
u(v, "constructor", p),
(p.displayName = u(v, l, "GeneratorFunction")),
(e.isGeneratorFunction = function (e) {
var t = "function" == typeof e && e.constructor;
return (
!!t &&
(t === p || "GeneratorFunction" === (t.displayName || t.name))
);
}),
(e.mark = function (e) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(e, v)
: ((e.__proto__ = v), u(e, l, "GeneratorFunction")),
(e.prototype = Object.create(b)),
e
);
}),
(e.awrap = function (e) {
return { __await: e };
}),
w(_.prototype),
u(_.prototype, s, function () {
return this;
}),
(e.AsyncIterator = _),
(e.async = function (t, n, r, i, o) {
void 0 === o && (o = Promise);
var a = new _(c(t, n, r, i), o);
return e.isGeneratorFunction(n)
? a
: a.next().then(function (e) {
return e.done ? e.value : a.next();
});
}),
w(b),
u(b, l, "Generator"),
u(b, a, function () {
return this;
}),
u(b, "toString", function () {
return "[object Generator]";
}),
(e.keys = function (e) {
var t = [];
for (var n in e) t.push(n);
return (
t.reverse(),
function n() {
for (; t.length;) {
var r = t.pop();
if (r in e) return (n.value = r), (n.done = !1), n;
}
return (n.done = !0), n;
}
);
}),
(e.values = T),
(E.prototype = {
constructor: E,
reset: function (e) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = void 0),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = void 0),
this.tryEntries.forEach(S),
!e)
)
for (var t in this)
"t" === t.charAt(0) &&
n.call(this, t) &&
!isNaN(+t.slice(1)) &&
(this[t] = void 0);
},
stop: function () {
this.done = !0;
var e = this.tryEntries[0].completion;
if ("throw" === e.type) throw e.arg;
return this.rval;
},
dispatchException: function (e) {
if (this.done) throw e;
var t = this;
function r(n, r) {
return (
(a.type = "throw"),
(a.arg = e),
(t.next = n),
r && ((t.method = "next"), (t.arg = void 0)),
!!r
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var o = this.tryEntries[i],
a = o.completion;
if ("root" === o.tryLoc) return r("end");
if (o.tryLoc <= this.prev) {
var s = n.call(o, "catchLoc"),
l = n.call(o, "finallyLoc");
if (s && l) {
if (this.prev < o.catchLoc) return r(o.catchLoc, !0);
if (this.prev < o.finallyLoc) return r(o.finallyLoc);
} else if (s) {
if (this.prev < o.catchLoc) return r(o.catchLoc, !0);
} else {
if (!l)
throw new Error("try statement without catch or finally");
if (this.prev < o.finallyLoc) return r(o.finallyLoc);
}
}
}
},
abrupt: function (e, t) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var i = this.tryEntries[r];
if (
i.tryLoc <= this.prev &&
n.call(i, "finallyLoc") &&
this.prev < i.finallyLoc
) {
var o = i;
break;
}
}
o &&
("break" === e || "continue" === e) &&
o.tryLoc <= t &&
t <= o.finallyLoc &&
(o = null);
var a = o ? o.completion : {};
return (
(a.type = e),
(a.arg = t),
o
? ((this.method = "next"), (this.next = o.finallyLoc), f)
: this.complete(a)
);
},
complete: function (e, t) {
if ("throw" === e.type) throw e.arg;
return (
"break" === e.type || "continue" === e.type
? (this.next = e.arg)
: "return" === e.type
? ((this.rval = this.arg = e.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === e.type && t && (this.next = t),
f
);
},
finish: function (e) {
for (var t = this.tryEntries.length - 1; t >= 0; --t) {
var n = this.tryEntries[t];
if (n.finallyLoc === e)
return this.complete(n.completion, n.afterLoc), S(n), f;
}
},
catch: function (e) {
for (var t = this.tryEntries.length - 1; t >= 0; --t) {
var n = this.tryEntries[t];
if (n.tryLoc === e) {
var r = n.completion;
if ("throw" === r.type) {
var i = r.arg;
S(n);
}
return i;
}
}
throw new Error("illegal catch attempt");
},
delegateYield: function (e, t, n) {
return (
(this.delegate = { iterator: T(e), resultName: t, nextLoc: n }),
"next" === this.method && (this.arg = void 0),
f
);
},
}),
e
);
}
function o(e, t, n, r, i, o, a) {
try {
var s = e[o](a),
l = s.value;
} catch (u) {
return void n(u);
}
s.done ? t(l) : Promise.resolve(l).then(r, i);
}
function a(e) {
return function () {
var t = this,
n = arguments;
return new Promise(function (r, i) {
var a = e.apply(t, n);
function s(e) {
o(a, r, i, s, l, "next", e);
}
function l(e) {
o(a, r, i, s, l, "throw", e);
}
s(void 0);
});
};
}
function s(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 l(e, t) {
if (e) {
if ("string" === typeof e) return s(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)
? s(e, t)
: void 0
);
}
}
function u(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,
o = [],
a = !0,
s = !1;
try {
for (
n = n.call(e);
!(a = (r = n.next()).done) &&
(o.push(r.value), !t || o.length !== t);
a = !0
);
} catch (l) {
(s = !0), (i = l);
} finally {
try {
a || null == n.return || n.return();
} finally {
if (s) throw i;
}
}
return o;
}
})(e, t) ||
l(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."
);
})()
);
}
var c = n(417);
function d() {
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsxs)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "44",
height: "44",
viewBox: "0 0 24 24",
strokeWidth: "1.5",
stroke: "#2c3e50",
fill: "none",
strokeLinecap: "round",
strokeLinejoin: "round",
children: [
(0, c.jsx)("path", {
stroke: "none",
d: "M0 0h24v24H0z",
fill: "none",
}),
(0, c.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
(0, c.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" }),
],
}),
});
}
var f,
h,
p,
v = function (e) {
return (0, c.jsx)("div", {
className: e.isOpen
? "Top-window-background modal-reveal"
: "Top-window-background",
children: (0, c.jsxs)("div", {
className: "Top-window-frame",
children: [
(0, c.jsxs)("div", {
className: "Top-window-title",
children: [
e.title,
(0, c.jsx)("div", {
className: "App-button-close",
onClick: function () {
return e.close();
},
children: (0, c.jsx)(d, {}),
}),
],
}),
(0, c.jsx)("div", {
className: "Top-window-content",
children: e.children,
}),
],
}),
});
},
m = n(470);
function g(e) {
var t = new TextEncoder().encode(e);
return m.fromByteArray(t);
}
function y(e) {
var t =
arguments.length > 1 && void 0 !== arguments[1]
? arguments[1]
: "utf-8",
n = m.toByteArray(e);
return new TextDecoder(t).decode(n);
}
function b(e, t) {
var n =
("undefined" !== typeof Symbol && e[Symbol.iterator]) ||
e["@@iterator"];
if (!n) {
if (
Array.isArray(e) ||
(n = l(e)) ||
(t && e && "number" === typeof e.length)
) {
n && (e = n);
var r = 0,
i = function () { };
return {
s: i,
n: function () {
return r >= e.length
? { done: !0 }
: { done: !1, value: e[r++] };
},
e: function (e) {
throw e;
},
f: i,
};
}
throw new TypeError(
"Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
}
var o,
a = !0,
s = !1;
return {
s: function () {
n = n.call(e);
},
n: function () {
var e = n.next();
return (a = e.done), e;
},
e: function (e) {
(s = !0), (o = e);
},
f: function () {
try {
a || null == n.return || n.return();
} finally {
if (s) throw o;
}
},
};
}
function w(e, t) {
var n = [];
return (
t.split("").forEach(function (t, r) {
e[r] !== t && n.push(t);
}),
e.split("").map(function (e, r) {
var i;
return t[r] === e
? { clue: f.Correct, letter: e }
: (i = n.indexOf(e)) > -1
? ((n[i] = ""), { clue: f.Elsewhere, letter: e })
: { clue: f.Absent, letter: e };
})
);
}
function _(e, t, n) {
if (e !== h.Normal) {
var r,
i = 0,
o = b(t);
try {
var a = function () {
var o,
a = r.value,
s = a.letter,
l = a.clue,
u = s.toUpperCase(),
c =
(o = i + 1) +
([, "st", "nd", "rd"][(o % 100 >> 3) ^ 1 && o % 10] || "th");
if (l === f.Correct) {
if (n[i] !== s) return { v: c + " letter must be " + u };
} else if (l === f.Elsewhere && !n.includes(s))
return { v: "Guess must contain " + u };
if (e === h.UltraHard) {
if (l !== f.Correct && n[i] === s)
return { v: c + " letter can't be " + u };
var d = t.filter(function (e) {
return e.letter === s && e.clue !== f.Absent;
}).length,
p = n.split(s).length - 1,
v = t.some(function (e) {
return e.letter === s && e.clue === f.Absent;
}),
m = C[d],
g = 1 !== d ? "s" : "";
if (v) {
if (p !== d)
return 0 === d
? { v: "Guess can't contain ".concat(u) }
: {
v: "Guess must contain exactly "
.concat(m, " ")
.concat(u)
.concat(g),
};
} else if (p < d)
return {
v: "Guess must contain at least "
.concat(m, " ")
.concat(u)
.concat(g),
};
}
++i;
};
for (o.s(); !(r = o.n()).done;) {
var s = a();
if ("object" === typeof s) return s.v;
}
} catch (l) {
o.e(l);
} finally {
o.f();
}
}
}
function x(e) {
return function () {
var t = (e += 1831565813);
return (
(t = Math.imul(t ^ (t >>> 15), 1 | t)),
(((t ^= t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ (t >>> 14)) >>> 0) /
4294967296
);
};
}
function k(e) {
return new URLSearchParams(window.location.search).get(e);
}
function S() {
var e = new Date(),
t = e.getTimezoneOffset();
return (
e.setTime(e.getTime() - 60 * t * 1e3),
Number(e.toISOString().replace(/-/g, "").slice(0, 8))
);
}
!(function (e) {
(e[(e.Absent = 0)] = "Absent"),
(e[(e.Elsewhere = 1)] = "Elsewhere"),
(e[(e.Correct = 2)] = "Correct");
})(f || (f = {})),
(function (e) {
(e[(e.Normal = 0)] = "Normal"),
(e[(e.Hard = 1)] = "Hard"),
(e[(e.UltraHard = 2)] = "UltraHard");
})(h || (h = {})),
(function (e) {
(e[(e.Random = 0)] = "Random"),
(e[(e.Today = 1)] = "Today"),
(e[(e.Challenge = 2)] = "Challenge"),
(e[(e.Tournament = 3)] = "Tournament");
})(p || (p = {}));
var E = Number(k("seed")),
T = function () {
return E
? x(E)
: function () {
return Math.random();
};
};
T();
var C =
"zero one two three four five six seven eight nine ten eleven".split(
" "
);
function N(e, t) {
var n = t;
return (
e &&
(n = (n = (n = (n = (n = (n = (n = (n = n.replace(
new RegExp(/[\xe0\xe1\xe2\xe3\xe4\xe5]/g),
"a"
)).replace(new RegExp(/\xe7/g), "c")).replace(
new RegExp(/[\xe8\xe9\xea\xeb]/g),
"e"
)).replace(new RegExp(/[\xec\xed\xee\xef]/g), "i")).replace(
new RegExp(/\xf1/g),
"n"
)).replace(new RegExp(/[\xf2\xf3\xf4\xf5\xf6]/g), "o")).replace(
new RegExp(/[\xf9\xfa\xfb\xfc]/g),
"u"
)).replace(new RegExp(/[\xfd\xff]/g), "y")),
n
);
}
function j(e, t) {
return e && t
? ""
.concat(document.location.origin)
.concat("en" !== t ? "/".concat(t, "/") : "", "?challenge=")
.concat(g(e))
: "";
}
function O(e, t) {
return e
.map(function (e) {
return w(e, t)
.map(function (e) {
var t;
return [
"\u2b1b",
"\ud83d\udfe8",
"\ud83d\udfe9",
][null !== (t = e.clue) && void 0 !== t ? t : 0];
})
.join("");
})
.join("\n");
}
function A(e, t) {
return e && t
? ""
.concat(document.location.origin)
.concat("en" !== t ? "/".concat(t, "/") : "", "?tour=")
.concat(g(e.join(";").toLocaleLowerCase(t)))
: "";
}
function P(e, t, n) {
return (0, c.jsxs)(
"p",
{
className: "Share-icons-bar",
children: [
(0, c.jsx)("a", {
href: "http://www.twitter.com/share?text=" + e + "&url=" + t,
target: "_blank",
rel: "noopener noreferrer",
children: (0, c.jsx)("img", {
className: "Share-icon",
src: "/images/twitter.svg",
}),
}),
(0, c.jsx)("a", {
href: "https://reddit.com/submit?title=" + e + "&url=" + t,
target: "_blank",
rel: "noopener noreferrer",
children: (0, c.jsx)("img", {
className: "Share-icon",
src: "/images/reddit.svg",
}),
}),
(0, c.jsx)("a", {
href: "https://www.facebook.com/sharer/sharer.php?u=" + t,
target: "_blank",
rel: "noopener noreferrer",
children: (0, c.jsx)("img", {
className: "Share-icon",
src: "/images/facebook.svg",
}),
}),
(0, c.jsx)("a", {
href: "fb-messenger://share/?link=" + t,
target: "_blank",
rel: "noopener noreferrer",
children: (0, c.jsx)("img", {
className: "Share-icon",
src: "/images/facebook-messenger.svg",
}),
}),
(0, c.jsx)("a", {
href: "https://snapchat.com/scan?attachmentUrl=" + t,
target: "_blank",
rel: "noopener noreferrer",
children: (0, c.jsx)("img", {
className: "Share-icon",
src: "/images/snapchat.svg",
}),
}),
(0, c.jsx)("a", {
href: "https://api.whatsapp.com/send?text=" + t,
target: "_blank",
rel: "noopener noreferrer",
children: (0, c.jsx)("img", {
className: "Share-icon",
src: "/images/whatsapp.svg",
}),
}),
],
},
n
);
}
function L(e, t, n) {
var r,
i = e.filter(function (e) {
return e.length === t;
});
do {
r = i[Math.floor(i.length * n())];
} while (/\*/.test(r));
return r;
}
function R(e, t) {
var n = t - e + 1;
return Array.from(new Array(n), function (t, n) {
var r = n + e;
return { value: r, text: r.toString() };
});
}
var D = function (t) {
var n = u((0, e.useState)(t.startLabel), 2),
r = n[0],
i = n[1];
return (0, c.jsx)(
"div",
{
className: t.barClass,
style: t.barStyle,
children: t.labels.map(function (e) {
return (0, c.jsx)(
"button",
{
className: t.buttonClass,
disabled: e.value === r || void 0,
onClick: function (n) {
var o, a;
null === (o = t.onClick) ||
void 0 === o ||
o.call(t, e.value),
e.value !== r &&
(null === (a = t.onChange) ||
void 0 === a ||
a.call(t, e.value)),
i(e.value);
},
children: e.text,
},
e.text
);
}),
},
"ButtonsBar"
);
};
function M(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, r.key, r);
}
}
function I(e, t, n) {
return (
t && M(e.prototype, t),
n && M(e, n),
Object.defineProperty(e, "prototype", { writable: !1 }),
e
);
}
function z(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function");
}
var F = I(function e() {
z(this, e),
(this.len4 = void 0),
(this.len5 = void 0),
(this.len6 = void 0),
(this.len7 = void 0),
(this.len8 = void 0),
(this.len9 = void 0),
(this.len10 = void 0),
(this.len11 = void 0),
(this.len4 = []),
(this.len5 = []),
(this.len6 = []),
(this.len7 = []),
(this.len8 = []),
(this.len9 = []),
(this.len10 = []),
(this.len11 = []);
}),
U = (function () {
function e() {
z(this, e),
(this.lang = void 0),
(this.dict = void 0),
(this.fullyLoaded = void 0),
(this.dict = new F()),
(this.fullyLoaded = !1);
}
return (
I(e, [
{
key: "init",
value: (function () {
var e = a(
i().mark(function e(t, n) {
return i().wrap(
function (e) {
for (; ;)
switch ((e.prev = e.next)) {
case 0:
return (
this.setLang(t),
(e.prev = 1),
(e.next = 4),
this.loadWordPackage(n)
);
case 4:
(this.dict["len".concat(n)] = e.sent),
(e.next = 10);
break;
case 7:
(e.prev = 7),
(e.t0 = e.catch(1)),
console.log(e.t0);
case 10:
case "end":
return e.stop();
}
},
e,
this,
[[1, 7]]
);
})
);
return function (t, n) {
return e.apply(this, arguments);
};
})(),
},
{
key: "setLang",
value: function (e) {
this.lang = e;
},
},
{
key: "checkForWord",
value: function (e) {
var t,
n = e.length;
return null === (t = this.dict["len".concat(n)]) ||
void 0 === t
? void 0
: t.some(function (t) {
return t.toUpperCase() === e.toUpperCase();
});
},
},
{
key: "addWordPackage",
value: (function () {
var e = a(
i().mark(function e(t) {
return i().wrap(
function (e) {
for (; ;)
switch ((e.prev = e.next)) {
case 0:
if (!(this.dict["len".concat(t)].length > 0)) {
e.next = 2;
break;
}
return e.abrupt("return");
case 2:
return (
(e.prev = 2),
(e.next = 5),
this.loadWordPackage(t)
);
case 5:
(this.dict["len".concat(t)] = e.sent),
(e.next = 11);
break;
case 8:
(e.prev = 8),
(e.t0 = e.catch(2)),
console.log(e.t0);
case 11:
case "end":
return e.stop();
}
},
e,
this,
[[2, 8]]
);
})
);
return function (t) {
return e.apply(this, arguments);
};
})(),
},
{
key: "loadWordPackage",
value: (function () {
var e = a(
i().mark(function e(t) {
var n, r;
return i().wrap(
function (e) {
for (; ;)
switch ((e.prev = e.next)) {
case 0:
if (this.lang) {
e.next = 2;
break;
}
throw new Error("No language specified");
case 2:
return (
(e.next = 4),
fetch(
"/dic/"
.concat(this.lang, "/len")
.concat(t, ".json?v=1.2.1")
)
);
case 4:
return (n = e.sent), (e.next = 7), n.json();
case 7:
return (r = e.sent), e.abrupt("return", r);
case 9:
case "end":
return e.stop();
}
},
e,
this
);
})
);
return function (t) {
return e.apply(this, arguments);
};
})(),
},
{
key: "reset",
value: function () {
(this.lang = void 0), (this.dict = new F());
},
},
{
key: "loadFullDict",
value: (function () {
var e = a(
i().mark(function e() {
var t;
return i().wrap(
function (e) {
for (; ;)
switch ((e.prev = e.next)) {
case 0:
t = 4;
case 1:
if (!(t <= 11)) {
e.next = 7;
break;
}
return (e.next = 4), this.addWordPackage(t);
case 4:
t++, (e.next = 1);
break;
case 7:
this.fullyLoaded = !0;
case 8:
case "end":
return e.stop();
}
},
e,
this
);
})
);
return function () {
return e.apply(this, arguments);
};
})(),
},
{
key: "getRandomWord",
value: function (e) {
if (e < 4 || e > 11) throw new Error("Word out of bounds");
var t = e,
n = Math.floor(
this.dict["len".concat(t)].length * Math.random()
);
return this.dict["len".concat(t)][n];
},
},
]),
e
);
})(),
B = new U();
function G() {
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsxs)("div", {
className: "lds-spinner",
children: [
(0, c.jsx)("div", {}),
(0, c.jsx)("div", {}),
(0, c.jsx)("div", {}),
(0, c.jsx)("div", {}),
(0, c.jsx)("div", {}),
(0, c.jsx)("div", {}),
(0, c.jsx)("div", {}),
(0, c.jsx)("div", {}),
(0, c.jsx)("div", {}),
(0, c.jsx)("div", {}),
(0, c.jsx)("div", {}),
(0, c.jsx)("div", {}),
],
}),
});
}
function W(e, t) {
if (t.length < e)
throw new TypeError(
e +
" argument" +
(e > 1 ? "s" : "") +
" required, but only " +
t.length +
" present"
);
}
function H(e) {
return (
(H =
"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;
}),
H(e)
);
}
function V(e) {
return (
W(1, arguments),
e instanceof Date ||
("object" === H(e) &&
"[object Date]" === Object.prototype.toString.call(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;
}),
q(e)
);
}
function K(e) {
W(1, arguments);
var t = Object.prototype.toString.call(e);
return e instanceof Date || ("object" === q(e) && "[object Date]" === t)
? new Date(e.getTime())
: "number" === typeof e || "[object Number]" === t
? new Date(e)
: (("string" !== typeof e && "[object String]" !== t) ||
"undefined" === typeof console ||
(console.warn(
"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"
),
console.warn(new Error().stack)),
new Date(NaN));
}
function Y(e) {
if ((W(1, arguments), !V(e) && "number" !== typeof e)) return !1;
var t = K(e);
return !isNaN(Number(t));
}
function $(e) {
if (null === e || !0 === e || !1 === e) return NaN;
var t = Number(e);
return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
}
function Q(e, t) {
W(2, arguments);
var n = K(e).getTime(),
r = $(t);
return new Date(n + r);
}
function X(e, t) {
W(2, arguments);
var n = $(t);
return Q(e, -n);
}
var J = 864e5;
function Z(e) {
W(1, arguments);
var t = 1,
n = K(e),
r = n.getUTCDay(),
i = (r < t ? 7 : 0) + r - t;
return n.setUTCDate(n.getUTCDate() - i), n.setUTCHours(0, 0, 0, 0), n;
}
function ee(e) {
W(1, arguments);
var t = K(e),
n = t.getUTCFullYear(),
r = new Date(0);
r.setUTCFullYear(n + 1, 0, 4), r.setUTCHours(0, 0, 0, 0);
var i = Z(r),
o = new Date(0);
o.setUTCFullYear(n, 0, 4), o.setUTCHours(0, 0, 0, 0);
var a = Z(o);
return t.getTime() >= i.getTime()
? n + 1
: t.getTime() >= a.getTime()
? n
: n - 1;
}
function te(e) {
W(1, arguments);
var t = ee(e),
n = new Date(0);
n.setUTCFullYear(t, 0, 4), n.setUTCHours(0, 0, 0, 0);
var r = Z(n);
return r;
}
var ne = 6048e5;
var re = {};
function ie() {
return re;
}
function oe(e, t) {
var n, r, i, o, a, s, l, u;
W(1, arguments);
var c = ie(),
d = $(
null !==
(n =
null !==
(r =
null !==
(i =
null !==
(o =
null === t || void 0 === t
? void 0
: t.weekStartsOn) && void 0 !== o
? o
: null === t ||
void 0 === t ||
null === (a = t.locale) ||
void 0 === a ||
null === (s = a.options) ||
void 0 === s
? void 0
: s.weekStartsOn) && void 0 !== i
? i
: c.weekStartsOn) && void 0 !== r
? r
: null === (l = c.locale) ||
void 0 === l ||
null === (u = l.options) ||
void 0 === u
? void 0
: u.weekStartsOn) && void 0 !== n
? n
: 0
);
if (!(d >= 0 && d <= 6))
throw new RangeError(
"weekStartsOn must be between 0 and 6 inclusively"
);
var f = K(e),
h = f.getUTCDay(),
p = (h < d ? 7 : 0) + h - d;
return f.setUTCDate(f.getUTCDate() - p), f.setUTCHours(0, 0, 0, 0), f;
}
function ae(e, t) {
var n, r, i, o, a, s, l, u;
W(1, arguments);
var c = K(e),
d = c.getUTCFullYear(),
f = ie(),
h = $(
null !==
(n =
null !==
(r =
null !==
(i =
null !==
(o =
null === t || void 0 === t
? void 0
: t.firstWeekContainsDate) && void 0 !== o
? o
: null === t ||
void 0 === t ||
null === (a = t.locale) ||
void 0 === a ||
null === (s = a.options) ||
void 0 === s
? void 0
: s.firstWeekContainsDate) && void 0 !== i
? i
: f.firstWeekContainsDate) && void 0 !== r
? r
: null === (l = f.locale) ||
void 0 === l ||
null === (u = l.options) ||
void 0 === u
? void 0
: u.firstWeekContainsDate) && void 0 !== n
? n
: 1
);
if (!(h >= 1 && h <= 7))
throw new RangeError(
"firstWeekContainsDate must be between 1 and 7 inclusively"
);
var p = new Date(0);
p.setUTCFullYear(d + 1, 0, h), p.setUTCHours(0, 0, 0, 0);
var v = oe(p, t),
m = new Date(0);
m.setUTCFullYear(d, 0, h), m.setUTCHours(0, 0, 0, 0);
var g = oe(m, t);
return c.getTime() >= v.getTime()
? d + 1
: c.getTime() >= g.getTime()
? d
: d - 1;
}
function se(e, t) {
var n, r, i, o, a, s, l, u;
W(1, arguments);
var c = ie(),
d = $(
null !==
(n =
null !==
(r =
null !==
(i =
null !==
(o =
null === t || void 0 === t
? void 0
: t.firstWeekContainsDate) && void 0 !== o
? o
: null === t ||
void 0 === t ||
null === (a = t.locale) ||
void 0 === a ||
null === (s = a.options) ||
void 0 === s
? void 0
: s.firstWeekContainsDate) && void 0 !== i
? i
: c.firstWeekContainsDate) && void 0 !== r
? r
: null === (l = c.locale) ||
void 0 === l ||
null === (u = l.options) ||
void 0 === u
? void 0
: u.firstWeekContainsDate) && void 0 !== n
? n
: 1
),
f = ae(e, t),
h = new Date(0);
h.setUTCFullYear(f, 0, d), h.setUTCHours(0, 0, 0, 0);
var p = oe(h, t);
return p;
}
var le = 6048e5;
function ue(e, t) {
for (
var n = e < 0 ? "-" : "", r = Math.abs(e).toString();
r.length < t;
)
r = "0" + r;
return n + r;
}
var ce = {
y: function (e, t) {
var n = e.getUTCFullYear(),
r = n > 0 ? n : 1 - n;
return ue("yy" === t ? r % 100 : r, t.length);
},
M: function (e, t) {
var n = e.getUTCMonth();
return "M" === t ? String(n + 1) : ue(n + 1, 2);
},
d: function (e, t) {
return ue(e.getUTCDate(), t.length);
},
a: function (e, t) {
var n = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
switch (t) {
case "a":
case "aa":
return n.toUpperCase();
case "aaa":
return n;
case "aaaaa":
return n[0];
default:
return "am" === n ? "a.m." : "p.m.";
}
},
h: function (e, t) {
return ue(e.getUTCHours() % 12 || 12, t.length);
},
H: function (e, t) {
return ue(e.getUTCHours(), t.length);
},
m: function (e, t) {
return ue(e.getUTCMinutes(), t.length);
},
s: function (e, t) {
return ue(e.getUTCSeconds(), t.length);
},
S: function (e, t) {
var n = t.length,
r = e.getUTCMilliseconds();
return ue(Math.floor(r * Math.pow(10, n - 3)), t.length);
},
},
de = "midnight",
fe = "noon",
he = "morning",
pe = "afternoon",
ve = "evening",
me = "night",
ge = {
G: function (e, t, n) {
var r = e.getUTCFullYear() > 0 ? 1 : 0;
switch (t) {
case "G":
case "GG":
case "GGG":
return n.era(r, { width: "abbreviated" });
case "GGGGG":
return n.era(r, { width: "narrow" });
default:
return n.era(r, { width: "wide" });
}
},
y: function (e, t, n) {
if ("yo" === t) {
var r = e.getUTCFullYear(),
i = r > 0 ? r : 1 - r;
return n.ordinalNumber(i, { unit: "year" });
}
return ce.y(e, t);
},
Y: function (e, t, n, r) {
var i = ae(e, r),
o = i > 0 ? i : 1 - i;
return "YY" === t
? ue(o % 100, 2)
: "Yo" === t
? n.ordinalNumber(o, { unit: "year" })
: ue(o, t.length);
},
R: function (e, t) {
return ue(ee(e), t.length);
},
u: function (e, t) {
return ue(e.getUTCFullYear(), t.length);
},
Q: function (e, t, n) {
var r = Math.ceil((e.getUTCMonth() + 1) / 3);
switch (t) {
case "Q":
return String(r);
case "QQ":
return ue(r, 2);
case "Qo":
return n.ordinalNumber(r, { unit: "quarter" });
case "QQQ":
return n.quarter(r, {
width: "abbreviated",
context: "formatting",
});
case "QQQQQ":
return n.quarter(r, { width: "narrow", context: "formatting" });
default:
return n.quarter(r, { width: "wide", context: "formatting" });
}
},
q: function (e, t, n) {
var r = Math.ceil((e.getUTCMonth() + 1) / 3);
switch (t) {
case "q":
return String(r);
case "qq":
return ue(r, 2);
case "qo":
return n.ordinalNumber(r, { unit: "quarter" });
case "qqq":
return n.quarter(r, {
width: "abbreviated",
context: "standalone",
});
case "qqqqq":
return n.quarter(r, { width: "narrow", context: "standalone" });
default:
return n.quarter(r, { width: "wide", context: "standalone" });
}
},
M: function (e, t, n) {
var r = e.getUTCMonth();
switch (t) {
case "M":
case "MM":
return ce.M(e, t);
case "Mo":
return n.ordinalNumber(r + 1, { unit: "month" });
case "MMM":
return n.month(r, {
width: "abbreviated",
context: "formatting",
});
case "MMMMM":
return n.month(r, { width: "narrow", context: "formatting" });
default:
return n.month(r, { width: "wide", context: "formatting" });
}
},
L: function (e, t, n) {
var r = e.getUTCMonth();
switch (t) {
case "L":
return String(r + 1);
case "LL":
return ue(r + 1, 2);
case "Lo":
return n.ordinalNumber(r + 1, { unit: "month" });
case "LLL":
return n.month(r, {
width: "abbreviated",
context: "standalone",
});
case "LLLLL":
return n.month(r, { width: "narrow", context: "standalone" });
default:
return n.month(r, { width: "wide", context: "standalone" });
}
},
w: function (e, t, n, r) {
var i = (function (e, t) {
W(1, arguments);
var n = K(e),
r = oe(n, t).getTime() - se(n, t).getTime();
return Math.round(r / le) + 1;
})(e, r);
return "wo" === t
? n.ordinalNumber(i, { unit: "week" })
: ue(i, t.length);
},
I: function (e, t, n) {
var r = (function (e) {
W(1, arguments);
var t = K(e),
n = Z(t).getTime() - te(t).getTime();
return Math.round(n / ne) + 1;
})(e);
return "Io" === t
? n.ordinalNumber(r, { unit: "week" })
: ue(r, t.length);
},
d: function (e, t, n) {
return "do" === t
? n.ordinalNumber(e.getUTCDate(), { unit: "date" })
: ce.d(e, t);
},
D: function (e, t, n) {
var r = (function (e) {
W(1, arguments);
var t = K(e),
n = t.getTime();
t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
var r = t.getTime(),
i = n - r;
return Math.floor(i / J) + 1;
})(e);
return "Do" === t
? n.ordinalNumber(r, { unit: "dayOfYear" })
: ue(r, t.length);
},
E: function (e, t, n) {
var r = e.getUTCDay();
switch (t) {
case "E":
case "EE":
case "EEE":
return n.day(r, {
width: "abbreviated",
context: "formatting",
});
case "EEEEE":
return n.day(r, { width: "narrow", context: "formatting" });
case "EEEEEE":
return n.day(r, { width: "short", context: "formatting" });
default:
return n.day(r, { width: "wide", context: "formatting" });
}
},
e: function (e, t, n, r) {
var i = e.getUTCDay(),
o = (i - r.weekStartsOn + 8) % 7 || 7;
switch (t) {
case "e":
return String(o);
case "ee":
return ue(o, 2);
case "eo":
return n.ordinalNumber(o, { unit: "day" });
case "eee":
return n.day(i, {
width: "abbreviated",
context: "formatting",
});
case "eeeee":
return n.day(i, { width: "narrow", context: "formatting" });
case "eeeeee":
return n.day(i, { width: "short", context: "formatting" });
default:
return n.day(i, { width: "wide", context: "formatting" });
}
},
c: function (e, t, n, r) {
var i = e.getUTCDay(),
o = (i - r.weekStartsOn + 8) % 7 || 7;
switch (t) {
case "c":
return String(o);
case "cc":
return ue(o, t.length);
case "co":
return n.ordinalNumber(o, { unit: "day" });
case "ccc":
return n.day(i, {
width: "abbreviated",
context: "standalone",
});
case "ccccc":
return n.day(i, { width: "narrow", context: "standalone" });
case "cccccc":
return n.day(i, { width: "short", context: "standalone" });
default:
return n.day(i, { width: "wide", context: "standalone" });
}
},
i: function (e, t, n) {
var r = e.getUTCDay(),
i = 0 === r ? 7 : r;
switch (t) {
case "i":
return String(i);
case "ii":
return ue(i, t.length);
case "io":
return n.ordinalNumber(i, { unit: "day" });
case "iii":
return n.day(r, {
width: "abbreviated",
context: "formatting",
});
case "iiiii":
return n.day(r, { width: "narrow", context: "formatting" });
case "iiiiii":
return n.day(r, { width: "short", context: "formatting" });
default:
return n.day(r, { width: "wide", context: "formatting" });
}
},
a: function (e, t, n) {
var r = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
switch (t) {
case "a":
case "aa":
return n.dayPeriod(r, {
width: "abbreviated",
context: "formatting",
});
case "aaa":
return n
.dayPeriod(r, { width: "abbreviated", context: "formatting" })
.toLowerCase();
case "aaaaa":
return n.dayPeriod(r, {
width: "narrow",
context: "formatting",
});
default:
return n.dayPeriod(r, { width: "wide", context: "formatting" });
}
},
b: function (e, t, n) {
var r,
i = e.getUTCHours();
switch (
((r = 12 === i ? fe : 0 === i ? de : i / 12 >= 1 ? "pm" : "am"),
t)
) {
case "b":
case "bb":
return n.dayPeriod(r, {
width: "abbreviated",
context: "formatting",
});
case "bbb":
return n
.dayPeriod(r, { width: "abbreviated", context: "formatting" })
.toLowerCase();
case "bbbbb":
return n.dayPeriod(r, {
width: "narrow",
context: "formatting",
});
default:
return n.dayPeriod(r, { width: "wide", context: "formatting" });
}
},
B: function (e, t, n) {
var r,
i = e.getUTCHours();
switch (((r = i >= 17 ? ve : i >= 12 ? pe : i >= 4 ? he : me), t)) {
case "B":
case "BB":
case "BBB":
return n.dayPeriod(r, {
width: "abbreviated",
context: "formatting",
});
case "BBBBB":
return n.dayPeriod(r, {
width: "narrow",
context: "formatting",
});
default:
return n.dayPeriod(r, { width: "wide", context: "formatting" });
}
},
h: function (e, t, n) {
if ("ho" === t) {
var r = e.getUTCHours() % 12;
return 0 === r && (r = 12), n.ordinalNumber(r, { unit: "hour" });
}
return ce.h(e, t);
},
H: function (e, t, n) {
return "Ho" === t
? n.ordinalNumber(e.getUTCHours(), { unit: "hour" })
: ce.H(e, t);
},
K: function (e, t, n) {
var r = e.getUTCHours() % 12;
return "Ko" === t
? n.ordinalNumber(r, { unit: "hour" })
: ue(r, t.length);
},
k: function (e, t, n) {
var r = e.getUTCHours();
return (
0 === r && (r = 24),
"ko" === t
? n.ordinalNumber(r, { unit: "hour" })
: ue(r, t.length)
);
},
m: function (e, t, n) {
return "mo" === t
? n.ordinalNumber(e.getUTCMinutes(), { unit: "minute" })
: ce.m(e, t);
},
s: function (e, t, n) {
return "so" === t
? n.ordinalNumber(e.getUTCSeconds(), { unit: "second" })
: ce.s(e, t);
},
S: function (e, t) {
return ce.S(e, t);
},
X: function (e, t, n, r) {
var i = (r._originalDate || e).getTimezoneOffset();
if (0 === i) return "Z";
switch (t) {
case "X":
return be(i);
case "XXXX":
case "XX":
return we(i);
default:
return we(i, ":");
}
},
x: function (e, t, n, r) {
var i = (r._originalDate || e).getTimezoneOffset();
switch (t) {
case "x":
return be(i);
case "xxxx":
case "xx":
return we(i);
default:
return we(i, ":");
}
},
O: function (e, t, n, r) {
var i = (r._originalDate || e).getTimezoneOffset();
switch (t) {
case "O":
case "OO":
case "OOO":
return "GMT" + ye(i, ":");
default:
return "GMT" + we(i, ":");
}
},
z: function (e, t, n, r) {
var i = (r._originalDate || e).getTimezoneOffset();
switch (t) {
case "z":
case "zz":
case "zzz":
return "GMT" + ye(i, ":");
default:
return "GMT" + we(i, ":");
}
},
t: function (e, t, n, r) {
var i = r._originalDate || e;
return ue(Math.floor(i.getTime() / 1e3), t.length);
},
T: function (e, t, n, r) {
return ue((r._originalDate || e).getTime(), t.length);
},
};
function ye(e, t) {
var n = e > 0 ? "-" : "+",
r = Math.abs(e),
i = Math.floor(r / 60),
o = r % 60;
if (0 === o) return n + String(i);
var a = t || "";
return n + String(i) + a + ue(o, 2);
}
function be(e, t) {
return e % 60 === 0
? (e > 0 ? "-" : "+") + ue(Math.abs(e) / 60, 2)
: we(e, t);
}
function we(e, t) {
var n = t || "",
r = e > 0 ? "-" : "+",
i = Math.abs(e);
return r + ue(Math.floor(i / 60), 2) + n + ue(i % 60, 2);
}
var _e = ge,
xe = function (e, t) {
switch (e) {
case "P":
return t.date({ width: "short" });
case "PP":
return t.date({ width: "medium" });
case "PPP":
return t.date({ width: "long" });
default:
return t.date({ width: "full" });
}
},
ke = function (e, t) {
switch (e) {
case "p":
return t.time({ width: "short" });
case "pp":
return t.time({ width: "medium" });
case "ppp":
return t.time({ width: "long" });
default:
return t.time({ width: "full" });
}
},
Se = {
p: ke,
P: function (e, t) {
var n,
r = e.match(/(P+)(p+)?/) || [],
i = r[1],
o = r[2];
if (!o) return xe(e, t);
switch (i) {
case "P":
n = t.dateTime({ width: "short" });
break;
case "PP":
n = t.dateTime({ width: "medium" });
break;
case "PPP":
n = t.dateTime({ width: "long" });
break;
default:
n = t.dateTime({ width: "full" });
}
return n
.replace("{{date}}", xe(i, t))
.replace("{{time}}", ke(o, t));
},
},
Ee = Se;
function Te(e) {
var t = new Date(
Date.UTC(
e.getFullYear(),
e.getMonth(),
e.getDate(),
e.getHours(),
e.getMinutes(),
e.getSeconds(),
e.getMilliseconds()
)
);
return t.setUTCFullYear(e.getFullYear()), e.getTime() - t.getTime();
}
var Ce = ["D", "DD"],
Ne = ["YY", "YYYY"];
function je(e) {
return -1 !== Ce.indexOf(e);
}
function Oe(e) {
return -1 !== Ne.indexOf(e);
}
function Ae(e, t, n) {
if ("YYYY" === e)
throw new RangeError(
"Use `yyyy` instead of `YYYY` (in `"
.concat(t, "`) for formatting years to the input `")
.concat(
n,
"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"
)
);
if ("YY" === e)
throw new RangeError(
"Use `yy` instead of `YY` (in `"
.concat(t, "`) for formatting years to the input `")
.concat(
n,
"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"
)
);
if ("D" === e)
throw new RangeError(
"Use `d` instead of `D` (in `"
.concat(t, "`) for formatting days of the month to the input `")
.concat(
n,
"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"
)
);
if ("DD" === e)
throw new RangeError(
"Use `dd` instead of `DD` (in `"
.concat(t, "`) for formatting days of the month to the input `")
.concat(
n,
"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"
)
);
}
var Pe = {
lessThanXSeconds: {
one: "less than a second",
other: "less than {{count}} seconds",
},
xSeconds: { one: "1 second", other: "{{count}} seconds" },
halfAMinute: "half a minute",
lessThanXMinutes: {
one: "less than a minute",
other: "less than {{count}} minutes",
},
xMinutes: { one: "1 minute", other: "{{count}} minutes" },
aboutXHours: { one: "about 1 hour", other: "about {{count}} hours" },
xHours: { one: "1 hour", other: "{{count}} hours" },
xDays: { one: "1 day", other: "{{count}} days" },
aboutXWeeks: { one: "about 1 week", other: "about {{count}} weeks" },
xWeeks: { one: "1 week", other: "{{count}} weeks" },
aboutXMonths: {
one: "about 1 month",
other: "about {{count}} months",
},
xMonths: { one: "1 month", other: "{{count}} months" },
aboutXYears: { one: "about 1 year", other: "about {{count}} years" },
xYears: { one: "1 year", other: "{{count}} years" },
overXYears: { one: "over 1 year", other: "over {{count}} years" },
almostXYears: {
one: "almost 1 year",
other: "almost {{count}} years",
},
},
Le = function (e, t, n) {
var r,
i = Pe[e];
return (
(r =
"string" === typeof i
? i
: 1 === t
? i.one
: i.other.replace("{{count}}", t.toString())),
null !== n && void 0 !== n && n.addSuffix
? n.comparison && n.comparison > 0
? "in " + r
: r + " ago"
: r
);
};
function Re(e) {
return function () {
var t =
arguments.length > 0 && void 0 !== arguments[0]
? arguments[0]
: {},
n = t.width ? String(t.width) : e.defaultWidth,
r = e.formats[n] || e.formats[e.defaultWidth];
return r;
};
}
var De = {
date: Re({
formats: {
full: "EEEE, MMMM do, y",
long: "MMMM do, y",
medium: "MMM d, y",
short: "MM/dd/yyyy",
},
defaultWidth: "full",
}),
time: Re({
formats: {
full: "h:mm:ss a zzzz",
long: "h:mm:ss a z",
medium: "h:mm:ss a",
short: "h:mm a",
},
defaultWidth: "full",
}),
dateTime: Re({
formats: {
full: "{{date}} 'at' {{time}}",
long: "{{date}} 'at' {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}",
},
defaultWidth: "full",
}),
},
Me = {
lastWeek: "'last' eeee 'at' p",
yesterday: "'yesterday at' p",
today: "'today at' p",
tomorrow: "'tomorrow at' p",
nextWeek: "eeee 'at' p",
other: "P",
},
Ie = function (e, t, n, r) {
return Me[e];
};
function ze(e) {
return function (t, n) {
var r;
if (
"formatting" ===
(null !== n && void 0 !== n && n.context
? String(n.context)
: "standalone") &&
e.formattingValues
) {
var i = e.defaultFormattingWidth || e.defaultWidth,
o = null !== n && void 0 !== n && n.width ? String(n.width) : i;
r = e.formattingValues[o] || e.formattingValues[i];
} else {
var a = e.defaultWidth,
s =
null !== n && void 0 !== n && n.width
? String(n.width)
: e.defaultWidth;
r = e.values[s] || e.values[a];
}
return r[e.argumentCallback ? e.argumentCallback(t) : t];
};
}
var Fe = {
ordinalNumber: function (e, t) {
var n = Number(e),
r = n % 100;
if (r > 20 || r < 10)
switch (r % 10) {
case 1:
return n + "st";
case 2:
return n + "nd";
case 3:
return n + "rd";
}
return n + "th";
},
era: ze({
values: {
narrow: ["B", "A"],
abbreviated: ["BC", "AD"],
wide: ["Before Christ", "Anno Domini"],
},
defaultWidth: "wide",
}),
quarter: ze({
values: {
narrow: ["1", "2", "3", "4"],
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"],
},
defaultWidth: "wide",
argumentCallback: function (e) {
return e - 1;
},
}),
month: ze({
values: {
narrow: [
"J",
"F",
"M",
"A",
"M",
"J",
"J",
"A",
"S",
"O",
"N",
"D",
],
abbreviated: [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
],
wide: [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December",
],
},
defaultWidth: "wide",
}),
day: ze({
values: {
narrow: ["S", "M", "T", "W", "T", "F", "S"],
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
wide: [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
],
},
defaultWidth: "wide",
}),
dayPeriod: ze({
values: {
narrow: {
am: "a",
pm: "p",
midnight: "mi",
noon: "n",
morning: "morning",
afternoon: "afternoon",
evening: "evening",
night: "night",
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "midnight",
noon: "noon",
morning: "morning",
afternoon: "afternoon",
evening: "evening",
night: "night",
},
wide: {
am: "a.m.",
pm: "p.m.",
midnight: "midnight",
noon: "noon",
morning: "morning",
afternoon: "afternoon",
evening: "evening",
night: "night",
},
},
defaultWidth: "wide",
formattingValues: {
narrow: {
am: "a",
pm: "p",
midnight: "mi",
noon: "n",
morning: "in the morning",
afternoon: "in the afternoon",
evening: "in the evening",
night: "at night",
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "midnight",
noon: "noon",
morning: "in the morning",
afternoon: "in the afternoon",
evening: "in the evening",
night: "at night",
},
wide: {
am: "a.m.",
pm: "p.m.",
midnight: "midnight",
noon: "noon",
morning: "in the morning",
afternoon: "in the afternoon",
evening: "in the evening",
night: "at night",
},
},
defaultFormattingWidth: "wide",
}),
};
function Ue(e) {
return function (t) {
var n =
arguments.length > 1 && void 0 !== arguments[1]
? arguments[1]
: {},
r = n.width,
i =
(r && e.matchPatterns[r]) || e.matchPatterns[e.defaultMatchWidth],
o = t.match(i);
if (!o) return null;
var a,
s = o[0],
l =
(r && e.parsePatterns[r]) || e.parsePatterns[e.defaultParseWidth],
u = Array.isArray(l)
? Ge(l, function (e) {
return e.test(s);
})
: Be(l, function (e) {
return e.test(s);
});
(a = e.valueCallback ? e.valueCallback(u) : u),
(a = n.valueCallback ? n.valueCallback(a) : a);
var c = t.slice(s.length);
return { value: a, rest: c };
};
}
function Be(e, t) {
for (var n in e) if (e.hasOwnProperty(n) && t(e[n])) return n;
}
function Ge(e, t) {
for (var n = 0; n < e.length; n++) if (t(e[n])) return n;
}
var We,
He = {
ordinalNumber:
((We = {
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
parsePattern: /\d+/i,
valueCallback: function (e) {
return parseInt(e, 10);
},
}),
function (e) {
var t =
arguments.length > 1 && void 0 !== arguments[1]
? arguments[1]
: {},
n = e.match(We.matchPattern);
if (!n) return null;
var r = n[0],
i = e.match(We.parsePattern);
if (!i) return null;
var o = We.valueCallback ? We.valueCallback(i[0]) : i[0];
o = t.valueCallback ? t.valueCallback(o) : o;
var a = e.slice(r.length);
return { value: o, rest: a };
}),
era: Ue({
matchPatterns: {
narrow: /^(b|a)/i,
abbreviated:
/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
wide: /^(before christ|before common era|anno domini|common era)/i,
},
defaultMatchWidth: "wide",
parsePatterns: { any: [/^b/i, /^(a|c)/i] },
defaultParseWidth: "any",
}),
quarter: Ue({
matchPatterns: {
narrow: /^[1234]/i,
abbreviated: /^q[1234]/i,
wide: /^[1234](th|st|nd|rd)? quarter/i,
},
defaultMatchWidth: "wide",
parsePatterns: { any: [/1/i, /2/i, /3/i, /4/i] },
defaultParseWidth: "any",
valueCallback: function (e) {
return e + 1;
},
}),
month: Ue({
matchPatterns: {
narrow: /^[jfmasond]/i,
abbreviated:
/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,
},
defaultMatchWidth: "wide",
parsePatterns: {
narrow: [
/^j/i,
/^f/i,
/^m/i,
/^a/i,
/^m/i,
/^j/i,
/^j/i,
/^a/i,
/^s/i,
/^o/i,
/^n/i,
/^d/i,
],
any: [
/^ja/i,
/^f/i,
/^mar/i,
/^ap/i,
/^may/i,
/^jun/i,
/^jul/i,
/^au/i,
/^s/i,
/^o/i,
/^n/i,
/^d/i,
],
},
defaultParseWidth: "any",
}),
day: Ue({
matchPatterns: {
narrow: /^[smtwf]/i,
short: /^(su|mo|tu|we|th|fr|sa)/i,
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,
},
defaultMatchWidth: "wide",
parsePatterns: {
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],
},
defaultParseWidth: "any",
}),
dayPeriod: Ue({
matchPatterns: {
narrow:
/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,
},
defaultMatchWidth: "any",
parsePatterns: {
any: {
am: /^a/i,
pm: /^p/i,
midnight: /^mi/i,
noon: /^no/i,
morning: /morning/i,
afternoon: /afternoon/i,
evening: /evening/i,
night: /night/i,
},
},
defaultParseWidth: "any",
}),
},
Ve = {
code: "en-US",
formatDistance: Le,
formatLong: De,
formatRelative: Ie,
localize: Fe,
match: He,
options: { weekStartsOn: 0, firstWeekContainsDate: 1 },
},
qe = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,
Ke = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,
Ye = /^'([^]*?)'?$/,
$e = /''/g,
Qe = /[a-zA-Z]/;
function Xe(e) {
var t = e.match(Ye);
return t ? t[1].replace($e, "'") : e;
}
function Je(e, t) {
return W(2, arguments), K(e).getTime() - K(t).getTime();
}
var Ze = {
ceil: Math.ceil,
round: Math.round,
floor: Math.floor,
trunc: function (e) {
return e < 0 ? Math.ceil(e) : Math.floor(e);
},
};
function et(e) {
return e ? Ze[e] : Ze.trunc;
}
var tt = (function () {
function e() {
z(this, e);
}
return (
I(e, null, [
{
key: "createDateStamp",
value: function () {
return (function (e, t, n) {
var r, i, o, a, s, l, u, c, d, f, h, p, v, m, g, y, b, w;
W(2, arguments);
var _ = String(t),
x = ie(),
k =
null !==
(r =
null !==
(i =
null === n || void 0 === n ? void 0 : n.locale) &&
void 0 !== i
? i
: x.locale) && void 0 !== r
? r
: Ve,
S = $(
null !==
(o =
null !==
(a =
null !==
(s =
null !==
(l =
null === n || void 0 === n
? void 0
: n.firstWeekContainsDate) &&
void 0 !== l
? l
: null === n ||
void 0 === n ||
null === (u = n.locale) ||
void 0 === u ||
null === (c = u.options) ||
void 0 === c
? void 0
: c.firstWeekContainsDate) && void 0 !== s
? s
: x.firstWeekContainsDate) && void 0 !== a
? a
: null === (d = x.locale) ||
void 0 === d ||
null === (f = d.options) ||
void 0 === f
? void 0
: f.firstWeekContainsDate) && void 0 !== o
? o
: 1
);
if (!(S >= 1 && S <= 7))
throw new RangeError(
"firstWeekContainsDate must be between 1 and 7 inclusively"
);
var E = $(
null !==
(h =
null !==
(p =
null !==
(v =
null !==
(m =
null === n || void 0 === n
? void 0
: n.weekStartsOn) && void 0 !== m
? m
: null === n ||
void 0 === n ||
null === (g = n.locale) ||
void 0 === g ||
null === (y = g.options) ||
void 0 === y
? void 0
: y.weekStartsOn) && void 0 !== v
? v
: x.weekStartsOn) && void 0 !== p
? p
: null === (b = x.locale) ||
void 0 === b ||
null === (w = b.options) ||
void 0 === w
? void 0
: w.weekStartsOn) && void 0 !== h
? h
: 0
);
if (!(E >= 0 && E <= 6))
throw new RangeError(
"weekStartsOn must be between 0 and 6 inclusively"
);
if (!k.localize)
throw new RangeError(
"locale must contain localize property"
);
if (!k.formatLong)
throw new RangeError(
"locale must contain formatLong property"
);
var T = K(e);
if (!Y(T)) throw new RangeError("Invalid time value");
var C = Te(T),
N = X(T, C),
j = {
firstWeekContainsDate: S,
weekStartsOn: E,
locale: k,
_originalDate: T,
};
return _.match(Ke)
.map(function (e) {
var t = e[0];
return "p" === t || "P" === t
? (0, Ee[t])(e, k.formatLong)
: e;
})
.join("")
.match(qe)
.map(function (r) {
if ("''" === r) return "'";
var i = r[0];
if ("'" === i) return Xe(r);
var o = _e[i];
if (o)
return (
(null !== n &&
void 0 !== n &&
n.useAdditionalWeekYearTokens) ||
!Oe(r) ||
Ae(r, t, String(e)),
(null !== n &&
void 0 !== n &&
n.useAdditionalDayOfYearTokens) ||
!je(r) ||
Ae(r, t, String(e)),
o(N, r, k.localize, j)
);
if (i.match(Qe))
throw new RangeError(
"Format string contains an unescaped latin alphabet character `" +
i +
"`"
);
return r;
})
.join("");
})(new Date(), "yyyy-MM-dd");
},
},
{
key: "getSecondsToNextDay",
value: function () {
return (function (e, t, n) {
W(2, arguments);
var r = Je(e, t) / 1e3;
return et(
null === n || void 0 === n ? void 0 : n.roundingMethod
)(r);
})(
(function () {
var e = new Date(),
t = e.getFullYear(),
n = e.getMonth(),
r = e.getDate(),
i = new Date(0);
return (
i.setFullYear(t, n, r + 1), i.setHours(0, 0, 0, 0), i
);
})(),
new Date()
);
},
},
{
key: "secondsToHuman",
value: function (e) {
var t = e % 60,
n = Math.floor(e / 60) % 60,
r = Math.floor(e / 3600),
i = function (e) {
return e.toString().padStart(2, "0");
};
return 0 === r
? "".concat(i(n), ":").concat(i(t))
: "".concat(i(r), ":").concat(i(n), ":").concat(i(t));
},
},
{
key: "generateTodayTarget",
value: function () {
var e =
arguments.length > 0 && void 0 !== arguments[0]
? arguments[0]
: 5,
t = S(),
n = x(t),
r = L(ot.targets, e, n),
i = ot.loc.charsReplacer(r).toLocaleLowerCase(ot.lang);
console.log(i);
console.log(r);
return { orig: r, safe: i };
},
},
{
key: "readOldStats",
value: function () {
var e = localStorage.getItem("games_history");
return e ? JSON.parse(e) : [];
},
},
{
key: "makeKeysSet",
value: function (e) {
var t = new Set();
return (
e.forEach(function (e) {
e.forEach(function (e) {
"Backspace" !== e && "Enter" !== e && t.add(e);
});
}),
t
);
},
},
]),
e
);
})();
String.prototype.f = function (e) {
for (var t = this, n = 0, r = Object.entries(e); n < r.length; n++) {
var i = u(r[n], 2),
o = i[0],
a = i[1],
s = "{" + o + "}";
t = t.replace(s, String(a));
}
return String(t);
};
var nt = (function () {
function e() {
z(this, e),
(this.challenge_err_invalid =
"Invalid challenge string, playing random game."),
(this.challenge_err_make = "Make your first guess!"),
(this.too_short = "Too short"),
(this.dictionary_err =
"Dictionary not loaded. Please wait a bit."),
(this.invalid_word = "Not a valid word"),
(this.game_end =
"You {verbed}! The answer was {target}. (Enter to {play})"),
(this.game_end_random = "play a random game"),
(this.game_end_again = "play again"),
(this.game_won = "won"),
(this.game_lost = "lost"),
(this.letters = "How many letters in the hidden word"),
(this.letters_len = "{length} letters"),
(this.game_answer =
"The answer was {target}. (Enter to play again)"),
(this.game_result_won = "You WON"),
(this.game_result_lost = "You LOST"),
(this.the_answer = "The answer was"),
(this.win_answer = "You guessed the word"),
(this.dict_uri = "What+is+{word}"),
(this.dict_uri_text = "What is the meaning of this word?"),
(this.time_win = "It took you {time}"),
(this.time_lose = "Your game lasted {time}"),
(this.give_up = "Give up"),
(this.play_again = "Start over"),
(this.new_game = "New Game"),
(this.challenge_clipboard =
"Challenge link copied to clipboard!"),
(this.challenge_link = "Challenge a friend to this word"),
(this.challenge_won = "You won"),
(this.challenge_lost = "You lost"),
(this.challenge_won_t =
"I guessed the word in Wordle in {time}. Can you?"),
(this.challenge_lost_t =
"I couldn't guess this word in Wordle in {time}. Can you?"),
(this.playing_challenge = "playing a challenge game"),
(this.result_clipboard = "Result copied to clipboard!"),
(this.seed_info =
"seed {seed}, length {wordLength}, game {gameNumber}"),
(this.copy_result = "Copy result as emoji"),
(this.close = "Close"),
(this.about = "About"),
(this.settings = "Settings"),
(this.random = "Random"),
(this.todays = "Today's"),
(this.todays_mode = "Today's mode"),
(this.todays_mode_desc = "Some randome text will add it later"),
(this.dark_theme = "Dark theme"),
(this.dark_theme_desc =
"Change colors of the website to dark for better experience"),
(this.color_blind = "Color Blind Mode"),
(this.color_blind_desc = "High contrast colors"),
(this.difficulty_hard = "Hard mode"),
(this.difficulty_hard_hint =
"Green letters must stay fixed, and yellow letters must be reused"),
(this.difficulty_ultra = "Ultra hard mode"),
(this.difficulty_ultra_hint =
"Yellow letters must move away from where they were clued, and gray clues must be obeyed"),
(this.timer = "Hide timer"),
(this.timer_desc = "Hide timer"),
(this.n_timer = "Timer"),
(this.n_timer_desc = "Turn on to show the timer in the game"),
(this.language_title = "Language"),
(this.language_description = "Try Wordle in Various Languages"),
(this.label_enter = null),
(this.label_backspace = null),
(this.gen_title = "Wordle Generator"),
(this.gen_desc =
"Make a game with your own word and share it with friends"),
(this.gen_hint =
"Word must be a valid dictionary word from 4 to 11 letters"),
(this.gen_type = "Type your word here ..."),
(this.gen_ran = "Or make a game with a random word"),
(this.gen_let = "How many letters will be in the random word"),
(this.gen_error = "Word not found"),
(this.gen_copied = "Game created, link copied!"),
(this.gen_create = "Create game and copy link"),
(this.multi = "Create a multi-word game"),
(this.tour_err_param =
"Invalid tournament string, playing random game."),
(this.tour_title = "Wordle Tournament"),
(this.tour_desc =
"Create a game of a series of words that will be guessed one by one. Add 1 to 10 words."),
(this.tour = "Tournament"),
(this.tour_word = "Word {x} of {y}"),
(this.tour_giveup = "Give up, next"),
(this.tour_guess = "Guessed! Next"),
(this.tour_res = "Tournament Results"),
(this.tour_guessed = "You guessed {x} words from {y} in {time}"),
(this.tour_create_btn = "Create your tournament"),
(this.tour_share =
"I played a Wordle tournament and guessed {x} words from {y} in {time}"),
(this.about_page = [
"",
"
",
"
You have to guess the hidden word in {maxGuesses} tries and the color of the letters changes to show how close you are.
",
"
To start the game, just enter any word, for example:
",
"
",
"
T
",
"
A
",
"
B
",
"
L
",
"
E
",
"
",
"
",
"T , B aren't in the target word at all.
",
"A , L is in the word but in the wrong spot.
",
"E is in the word and in the correct spot.
",
"
",
"
Another try to find matching letters in the target word.
",
"
",
"
F
",
"
L
",
"
A
",
"
S
",
"
H
",
"
",
"
So close!
",
"
",
"
F
",
"
L
",
"
A
",
"
M
",
"
E
",
"
",
"
Got it! \ud83c\udfc6
",
"
",
"
",
]),
(this.statistics_title_daily = "Statistics Daily"),
(this.statistics_title_unlim = "Statistics Unlimited"),
(this.statistics_games_played = "Games Played"),
(this.statistics_games_won = "Games Won"),
(this.statistics_win_percent = "% of Wins"),
(this.statistics_best_try = "Best Try"),
(this.statistics_current_streak = "Current Streak"),
(this.statistics_best_streak = "Best Streak"),
(this.statistics_tries_distribution = "Best tries distribution"),
(this.menu_how_to = "How to play"),
(this.menu_create = "Create a game"),
(this.mode_today = "Today"),
(this.mode_unlimited = "Unlimited"),
(this.today_completed1 =
"Today\u2019s Wordle is completed, come back in {time}"),
(this.today_completed2 =
"While waiting you can practice in unlimited Wordle"),
(this.disable_anim = "Disable Animations"),
(this.disable_anim_desc = "Turn on to reduce game animations"),
(this.invert_keys = "Invert Keys"),
(this.invert_keys_desc = "Swap backspace and enter");
}
return (
I(e, [
{
key: "merge",
value: function (e) {
var t = this;
for (var n in t)
(t[n] || null == t[n]) && e[n] && (t[n] = e[n]);
},
},
]),
e
);
})(),
rt = I(function e(t) {
z(this, e),
(this.msg = void 0),
(this.keyboard = void 0),
(this.charsReplacer = void 0),
(this.minLength = void 0),
(this.maxLength = void 0),
(this.disableLengthChange = void 0),
(this.msg = new nt());
var n = t;
if (
(n && n.messages && n.messages && this.msg.merge(n.messages),
n && n.keyboard
? (this.keyboard = n.keyboard)
: (this.keyboard = [
"q w e r t y u i o p",
"a s d f g h j k l",
"Backspace z x c v b n m Enter",
]),
n && n.replace_chars)
) {
var r = n.replace_chars;
this.charsReplacer = function (e) {
var t,
n = e,
i = b(r);
try {
for (i.s(); !(t = i.n()).done;) {
var o = t.value,
a = new RegExp("[" + o[0] + "]", "g");
n = n.replace(a, o[1]);
}
} catch (s) {
i.e(s);
} finally {
i.f();
}
return n;
};
} else
n && void 0 != n.replace_ext_chars
? n.replace_ext_chars
? (this.charsReplacer = function (e) {
return N(!0, e);
})
: (this.charsReplacer = function (e) {
return e;
})
: (this.charsReplacer = function (e) {
return N(!0, e);
});
n
? ((this.minLength = n.minLength ? n.minLength : 4),
(this.maxLength = n.maxLength ? n.maxLength : 11),
(this.disableLengthChange =
!!n.disable_length_change && n.disable_length_change))
: ((this.minLength = 4),
(this.maxLength = 11),
(this.disableLengthChange = !1));
}),
it = (function () {
function e() {
var t;
z(this, e),
(this.version = void 0),
(this.lang = void 0),
(this.length = void 0),
(this.gen = void 0),
(this.targets = void 0),
(this.loc = void 0),
(this.keySet = void 0),
(this.version = "1.2.1"),
(this.lang = (function (e) {
if (e) {
var t,
n =
null === (t = document.getElementById(e)) || void 0 === t
? void 0
: t.getAttribute("lang");
if (n) return n;
}
var r = document.documentElement.getAttribute("lang");
return r ? (r = r.split("-")[0]) : "en";
})("root")),
(this.length = (function (e) {
if (e) {
var t,
n =
null === (t = document.getElementById(e)) || void 0 === t
? void 0
: t.getAttribute("len"),
r = parseInt(n || "");
if (!isNaN(r)) return r;
}
return 5;
})("root")),
(this.gen =
null === (t = document.getElementById("root")) || void 0 === t
? void 0
: t.getAttribute("gen")),
(this.targets = []),
(this.loc = new rt()),
(this.keySet = tt.makeKeysSet(
this.loc.keyboard.map(function (e) {
return e.split(" ");
})
));
}
return (
I(e, [
{
key: "init",
value: (function () {
var e = a(
i().mark(function e() {
return i().wrap(
function (e) {
for (; ;)
switch ((e.prev = e.next)) {
case 0:
return (e.next = 2), this.loadLocale();
case 2:
return (e.next = 4), this.loadTargets();
case 4:
this.keySet = tt.makeKeysSet(
this.loc.keyboard.map(function (e) {
return e.split(" ");
})
);
case 5:
case "end":
return e.stop();
}
},
e,
this
);
})
);
return function () {
return e.apply(this, arguments);
};
})(),
},
{
key: "isValidKey",
value: function (e) {
return this.keySet.has(e);
},
},
{
key: "loadTargets",
value: (function () {
var e = a(
i().mark(function e() {
var t, n;
return i().wrap(
function (e) {
for (; ;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
fetch(
"/dic/"
.concat(this.lang, "/target_")
.concat(this.lang, ".json?v=")
.concat(this.version)
)
);
case 3:
return (t = e.sent), (e.next = 6), t.json();
case 6:
(n = e.sent), (this.targets = n), (e.next = 13);
break;
case 10:
throw (
((e.prev = 10),
(e.t0 = e.catch(0)),
new Error("Error while loading dictionary"))
);
case 13:
case "end":
return e.stop();
}
},
e,
this,
[[0, 10]]
);
})
);
return function () {
return e.apply(this, arguments);
};
})(),
},
{
key: "loadLocale",
value: (function () {
var e = a(
i().mark(function e() {
var t, n;
return i().wrap(
function (e) {
for (; ;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.prev = 0),
(e.next = 3),
fetch(
"/dic/"
.concat(this.lang, "/locale_")
.concat(this.lang, ".json?v=")
.concat(this.version)
)
);
case 3:
return (t = e.sent), (e.next = 6), t.json();
case 6:
(n = e.sent),
(this.loc = new rt(n)),
(e.next = 13);
break;
case 10:
throw (
((e.prev = 10),
(e.t0 = e.catch(0)),
new Error("Error while loading dictionary"))
);
case 13:
case "end":
return e.stop();
}
},
e,
this,
[[0, 10]]
);
})
);
return function () {
return e.apply(this, arguments);
};
})(),
},
]),
e
);
})(),
ot = new it(),
at = function (t) {
var n = t.title,
r = t.close,
i = ot.loc.msg;
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsx)("div", {
style: { overflow: "hidden" },
children: (0, c.jsx)(v, {
title: n,
close: function () {
return r();
},
children: (0, c.jsxs)("div", {
className: "dict-loader__container",
children: [
(0, c.jsx)("div", {
className: "dict-loader__text-container",
children: (0, c.jsx)("div", {
className: "dict-loader__text",
children: i.dictionary_err,
}),
}),
(0, c.jsx)("div", {
className: "dict-loader__spinner",
children: (0, c.jsx)("div", {
className: "dict-loader__spinner-inner",
children: (0, c.jsx)(G, {}),
}),
}),
],
}),
}),
}),
});
};
function st() {
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsxs)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "44",
height: "44",
viewBox: "0 0 24 24",
strokeWidth: "1.5",
stroke: "#2c3e50",
fill: "none",
strokeLinecap: "round",
strokeLinejoin: "round",
children: [
(0, c.jsx)("path", {
stroke: "none",
d: "M0 0h24v24H0z",
fill: "none",
}),
(0, c.jsx)("rect", {
x: "8",
y: "4",
width: "12",
height: "12",
rx: "2",
fill: "none",
}),
(0, c.jsx)("path", {
d: "M16 16v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2h2",
fill: "none",
}),
],
}),
});
}
var lt = function (t) {
var n = ot,
r = n.loc.msg,
o = (0, e.useRef)(null),
s = u((0, e.useState)(!1), 2),
l = s[0],
d = s[1],
f = u(e.useState(!B.fullyLoaded), 2),
h = f[0],
p = f[1],
m = (0, e.useRef)(n.length),
g = R(n.loc.minLength, n.loc.maxLength);
e.useEffect(function () {
if (!B.fullyLoaded) {
p(!0);
try {
y();
} catch (e) {
p(!1);
}
}
}, []);
var y = (function () {
var e = a(
i().mark(function e() {
return i().wrap(function (e) {
for (; ;)
switch ((e.prev = e.next)) {
case 0:
return (e.next = 2), B.loadFullDict();
case 2:
p(!1);
case 3:
case "end":
return e.stop();
}
}, e);
})
);
return function () {
return e.apply(this, arguments);
};
})();
return (0, c.jsx)(e.Fragment, {
children: h
? (0, c.jsx)(at, {
title: r.gen_title,
close: function () {
return t.close();
},
})
: (0, c.jsx)(v, {
title: r.gen_title,
close: function () {
return t.close();
},
children: (0, c.jsxs)("div", {
className: "Generator-content",
children: [
(0, c.jsx)("div", {
className: "Generator-content-text",
children: r.gen_desc,
}),
(0, c.jsx)("div", { style: { height: "40px" } }),
(0, c.jsx)("div", {
className: "Generator-content-text-small",
children: r.gen_hint,
}),
(0, c.jsx)("input", {
ref: o,
type: l ? "password" : "text",
name: "input",
className: "Generator-content-input",
placeholder: r.gen_type,
}),
(0, c.jsxs)("div", {
className: "Generator-random-checkbox",
children: [
(0, c.jsx)("div", {
className: "Generator-random-text",
children: r.gen_ran,
}),
(0, c.jsx)("input", {
className: "App-switch-checkbox",
type: "checkbox",
checked: l,
onChange: function () {
return (
d(!l),
!l &&
o.current &&
(o.current.value = B.getRandomWord(m.current)),
void (l && o.current && (o.current.value = ""))
);
},
}),
],
}),
h &&
(0, c.jsx)("div", {
children: "DICTIONARY IS LOADING...",
}),
l &&
(0, c.jsxs)("div", {
className: "Generator-random-bar",
children: [
(0, c.jsx)("div", {
style: { margin: "10px 0px 15px 0px" },
className: "Generator-random-text",
children: r.gen_let,
}),
(0, c.jsx)(D, {
barStyle: { display: "inline-block" },
buttonClass:
"App-button-circle-fixed Generator-button-label",
startLabel: m.current,
labels: g,
onClick: function (e) {
o.current &&
(o.current.value = B.getRandomWord(e));
},
onChange: function (e) {
m.current = e;
},
}),
],
}),
(0, c.jsxs)("button", {
className: "App-button",
onClick: function () {
if (o.current) {
var e = o.current.value.toLocaleLowerCase(n.lang);
B.checkForWord(e)
? ((i = j(e, ot.lang)),
(a = r.challenge_clipboard),
(s = t.showHint),
navigator.clipboard
? navigator.clipboard
.writeText(i)
.then(function () {
s(a);
})
.catch(function () {
s(i);
})
: s(i))
: t.showHint(r.gen_error);
}
var i, a, s;
},
children: [
(0, c.jsx)("div", {
className: "App-button-icon",
children: (0, c.jsx)(st, {}),
}),
(0, c.jsx)("span", { children: r.gen_create }),
],
}),
(0, c.jsx)("button", {
className: "App-button",
style: { marginBottom: "15px" },
onClick: function () {
t.close(), t.openTour();
},
children: r.multi,
}),
],
}),
}),
});
};
var ut = function (t) {
return (
(0, e.useEffect)(function () {
function e(n) {
document.removeEventListener("mousemove", e), t.close();
}
setTimeout(function () {
return addEventListener("mousemove", e, { once: !0 });
}, 500);
var n = setTimeout(t.close, t.hideDelay);
return function () {
document.removeEventListener("mousemove", e), clearTimeout(n);
};
}, []),
(0, c.jsx)("div", {
className: "Hint-background",
children: (0, c.jsx)("div", {
className: "Hint-window",
children: (0, c.jsx)("div", {
className: "Hint-content",
children: t.children,
}),
}),
})
);
};
function ct(e) {
for (
var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1;
r < t;
r++
)
n[r - 1] = arguments[r];
throw new Error(
"number" === typeof e
? "[MobX] minified error nr: " +
e +
(n.length ? " " + n.map(String).join(",") : "") +
". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts"
: "[MobX] " + e
);
}
var dt = {};
function ft() {
return "undefined" !== typeof globalThis
? globalThis
: "undefined" !== typeof window
? window
: "undefined" !== typeof n.g
? n.g
: "undefined" !== typeof self
? self
: dt;
}
var ht = Object.assign,
pt = Object.getOwnPropertyDescriptor,
vt = Object.defineProperty,
mt = Object.prototype,
gt = [];
Object.freeze(gt);
var yt = {};
Object.freeze(yt);
var bt = "undefined" !== typeof Proxy,
wt = Object.toString();
function _t() {
bt || ct("Proxy not available");
}
function xt(e) {
var t = !1;
return function () {
if (!t) return (t = !0), e.apply(this, arguments);
};
}
var kt = function () { };
function St(e) {
return "function" === typeof e;
}
function Et(e) {
switch (typeof e) {
case "string":
case "symbol":
case "number":
return !0;
}
return !1;
}
function Tt(e) {
return null !== e && "object" === typeof e;
}
function Ct(e) {
if (!Tt(e)) return !1;
var t = Object.getPrototypeOf(e);
if (null == t) return !0;
var n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
return "function" === typeof n && n.toString() === wt;
}
function Nt(e) {
var t = null == e ? void 0 : e.constructor;
return (
!!t &&
("GeneratorFunction" === t.name ||
"GeneratorFunction" === t.displayName)
);
}
function jt(e, t, n) {
vt(e, t, { enumerable: !1, writable: !0, configurable: !0, value: n });
}
function Ot(e, t, n) {
vt(e, t, { enumerable: !1, writable: !1, configurable: !0, value: n });
}
function At(e, t) {
var n = "isMobX" + e;
return (
(t.prototype[n] = !0),
function (e) {
return Tt(e) && !0 === e[n];
}
);
}
function Pt(e) {
return e instanceof Map;
}
function Lt(e) {
return e instanceof Set;
}
var Rt = "undefined" !== typeof Object.getOwnPropertySymbols;
var Dt =
"undefined" !== typeof Reflect && Reflect.ownKeys
? Reflect.ownKeys
: Rt
? function (e) {
return Object.getOwnPropertyNames(e).concat(
Object.getOwnPropertySymbols(e)
);
}
: Object.getOwnPropertyNames;
function Mt(e) {
return null === e ? null : "object" === typeof e ? "" + e : e;
}
function It(e, t) {
return mt.hasOwnProperty.call(e, t);
}
var zt =
Object.getOwnPropertyDescriptors ||
function (e) {
var t = {};
return (
Dt(e).forEach(function (n) {
t[n] = pt(e, n);
}),
t
);
};
function Ft(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, r.key, r);
}
}
function Ut(e, t, n) {
return (
t && Ft(e.prototype, t),
n && Ft(e, n),
Object.defineProperty(e, "prototype", { writable: !1 }),
e
);
}
function Bt() {
return (
(Bt =
Object.assign ||
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;
}),
Bt.apply(this, arguments)
);
}
function Gt(e, t) {
(e.prototype = Object.create(t.prototype)),
(e.prototype.constructor = e),
Wt(e, t);
}
function Wt(e, t) {
return (
(Wt =
Object.setPrototypeOf ||
function (e, t) {
return (e.__proto__ = t), e;
}),
Wt(e, t)
);
}
function Ht(e) {
if (void 0 === e)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called"
);
return e;
}
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 qt(e, t) {
var n =
("undefined" !== typeof Symbol && e[Symbol.iterator]) ||
e["@@iterator"];
if (n) return (n = n.call(e)).next.bind(n);
if (
Array.isArray(e) ||
(n = (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 && e && "number" === typeof e.length)
) {
n && (e = n);
var r = 0;
return function () {
return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
};
}
throw new TypeError(
"Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
}
var Kt = Symbol("mobx-stored-annotations");
function Yt(e) {
return Object.assign(function (t, n) {
$t(t, n, e);
}, e);
}
function $t(e, t, n) {
It(e, Kt) || jt(e, Kt, Bt({}, e[Kt])),
(function (e) {
return e.annotationType_ === rn;
})(n) || (e[Kt][t] = n);
}
var Qt = Symbol("mobx administration"),
Xt = (function () {
function e(e) {
void 0 === e && (e = "Atom"),
(this.name_ = void 0),
(this.isPendingUnobservation_ = !1),
(this.isBeingObserved_ = !1),
(this.observers_ = new Set()),
(this.diffValue_ = 0),
(this.lastAccessedBy_ = 0),
(this.lowestObserverState_ = Jn.NOT_TRACKING_),
(this.onBOL = void 0),
(this.onBUOL = void 0),
(this.name_ = e);
}
var t = e.prototype;
return (
(t.onBO = function () {
this.onBOL &&
this.onBOL.forEach(function (e) {
return e();
});
}),
(t.onBUO = function () {
this.onBUOL &&
this.onBUOL.forEach(function (e) {
return e();
});
}),
(t.reportObserved = function () {
return kr(this);
}),
(t.reportChanged = function () {
_r(), Sr(this), xr();
}),
(t.toString = function () {
return this.name_;
}),
e
);
})(),
Jt = At("Atom", Xt);
function Zt(e, t, n) {
void 0 === t && (t = kt), void 0 === n && (n = kt);
var r,
i = new Xt(e);
return t !== kt && Kr(Vr, i, t, r), n !== kt && qr(i, n), i;
}
var en = {
identity: function (e, t) {
return e === t;
},
structural: function (e, t) {
return go(e, t);
},
default: function (e, t) {
return Object.is
? Object.is(e, t)
: e === t
? 0 !== e || 1 / e === 1 / t
: e !== e && t !== t;
},
shallow: function (e, t) {
return go(e, t, 1);
},
};
function tn(e, t, n) {
return li(e)
? e
: Array.isArray(e)
? Rn.array(e, { name: n })
: Ct(e)
? Rn.object(e, void 0, { name: n })
: Pt(e)
? Rn.map(e, { name: n })
: Lt(e)
? Rn.set(e, { name: n })
: "function" !== typeof e || Br(e) || oi(e)
? e
: Nt(e)
? ri(e)
: Fr(n, e);
}
function nn(e) {
return e;
}
var rn = "override";
function on(e, t) {
return { annotationType_: e, options_: t, make_: an, extend_: sn };
}
function an(e, t, n, r) {
var i;
if (null != (i = this.options_) && i.bound)
return null === this.extend_(e, t, n, !1) ? 0 : 1;
if (r === e.target_) return null === this.extend_(e, t, n, !1) ? 0 : 2;
if (Br(n.value)) return 1;
var o = ln(e, this, t, n, !1);
return vt(r, t, o), 2;
}
function sn(e, t, n, r) {
var i = ln(e, this, t, n);
return e.defineProperty_(t, i, r);
}
function ln(e, t, n, r, i) {
var o, a, s, l, u, c, d, f;
void 0 === i && (i = gr.safeDescriptors),
(f = r),
t.annotationType_,
f.value;
var h,
p = r.value;
null != (o = t.options_) &&
o.bound &&
(p = p.bind(null != (h = e.proxy_) ? h : e.target_));
return {
value: Hn(
null != (a = null == (s = t.options_) ? void 0 : s.name)
? a
: n.toString(),
p,
null != (l = null == (u = t.options_) ? void 0 : u.autoAction) && l,
null != (c = t.options_) && c.bound
? null != (d = e.proxy_)
? d
: e.target_
: void 0
),
configurable: !i || e.isPlainObject_,
enumerable: !1,
writable: !i,
};
}
function un(e, t) {
return { annotationType_: e, options_: t, make_: cn, extend_: dn };
}
function cn(e, t, n, r) {
var i;
if (r === e.target_) return null === this.extend_(e, t, n, !1) ? 0 : 2;
if (
null != (i = this.options_) &&
i.bound &&
(!It(e.target_, t) || !oi(e.target_[t])) &&
null === this.extend_(e, t, n, !1)
)
return 0;
if (oi(n.value)) return 1;
var o = fn(e, this, t, n, !1, !1);
return vt(r, t, o), 2;
}
function dn(e, t, n, r) {
var i,
o = fn(e, this, t, n, null == (i = this.options_) ? void 0 : i.bound);
return e.defineProperty_(t, o, r);
}
function fn(e, t, n, r, i, o) {
var a;
void 0 === o && (o = gr.safeDescriptors),
(a = r),
t.annotationType_,
a.value;
var s,
l = r.value;
(oi(l) || (l = ri(l)), i) &&
((l = l.bind(null != (s = e.proxy_) ? s : e.target_)).isMobXFlow =
!0);
return {
value: l,
configurable: !o || e.isPlainObject_,
enumerable: !1,
writable: !o,
};
}
function hn(e, t) {
return { annotationType_: e, options_: t, make_: pn, extend_: vn };
}
function pn(e, t, n) {
return null === this.extend_(e, t, n, !1) ? 0 : 1;
}
function vn(e, t, n, r) {
return (
(function (e, t, n, r) {
t.annotationType_, r.get;
0;
})(0, this, 0, n),
e.defineComputedProperty_(
t,
Bt({}, this.options_, { get: n.get, set: n.set }),
r
)
);
}
function mn(e, t) {
return { annotationType_: e, options_: t, make_: gn, extend_: yn };
}
function gn(e, t, n) {
return null === this.extend_(e, t, n, !1) ? 0 : 1;
}
function yn(e, t, n, r) {
var i, o;
return (
(function (e, t, n, r) {
t.annotationType_;
0;
})(0, this),
e.defineObservableProperty_(
t,
n.value,
null != (i = null == (o = this.options_) ? void 0 : o.enhancer)
? i
: tn,
r
)
);
}
var bn = wn();
function wn(e) {
return { annotationType_: "true", options_: e, make_: _n, extend_: xn };
}
function _n(e, t, n, r) {
var i, o, a, s;
if (n.get) return zn.make_(e, t, n, r);
if (n.set) {
var l = Hn(t.toString(), n.set);
return r === e.target_
? null ===
e.defineProperty_(t, {
configurable: !gr.safeDescriptors || e.isPlainObject_,
set: l,
})
? 0
: 2
: (vt(r, t, { configurable: !0, set: l }), 2);
}
if (r !== e.target_ && "function" === typeof n.value)
return Nt(n.value)
? (null != (s = this.options_) && s.autoBind ? ri.bound : ri).make_(
e,
t,
n,
r
)
: (null != (a = this.options_) && a.autoBind ? Fr.bound : Fr).make_(
e,
t,
n,
r
);
var u,
c =
!1 === (null == (i = this.options_) ? void 0 : i.deep)
? Rn.ref
: Rn;
"function" === typeof n.value &&
null != (o = this.options_) &&
o.autoBind &&
(n.value = n.value.bind(null != (u = e.proxy_) ? u : e.target_));
return c.make_(e, t, n, r);
}
function xn(e, t, n, r) {
var i, o, a;
if (n.get) return zn.extend_(e, t, n, r);
if (n.set)
return e.defineProperty_(
t,
{
configurable: !gr.safeDescriptors || e.isPlainObject_,
set: Hn(t.toString(), n.set),
},
r
);
"function" === typeof n.value &&
null != (i = this.options_) &&
i.autoBind &&
(n.value = n.value.bind(null != (a = e.proxy_) ? a : e.target_));
return (
!1 === (null == (o = this.options_) ? void 0 : o.deep) ? Rn.ref : Rn
).extend_(e, t, n, r);
}
var kn = { deep: !0, name: void 0, defaultDecorator: void 0, proxy: !0 };
function Sn(e) {
return e || kn;
}
Object.freeze(kn);
var En = mn("observable"),
Tn = mn("observable.ref", { enhancer: nn }),
Cn = mn("observable.shallow", {
enhancer: function (e, t, n) {
return void 0 === e ||
null === e ||
Zi(e) ||
Mi(e) ||
Wi(e) ||
qi(e)
? e
: Array.isArray(e)
? Rn.array(e, { name: n, deep: !1 })
: Ct(e)
? Rn.object(e, void 0, { name: n, deep: !1 })
: Pt(e)
? Rn.map(e, { name: n, deep: !1 })
: Lt(e)
? Rn.set(e, { name: n, deep: !1 })
: void 0;
},
}),
Nn = mn("observable.struct", {
enhancer: function (e, t) {
return go(e, t) ? t : e;
},
}),
jn = Yt(En);
function On(e) {
return !0 === e.deep
? tn
: !1 === e.deep
? nn
: (function (e) {
var t, n;
return e &&
null != (t = null == (n = e.options_) ? void 0 : n.enhancer)
? t
: tn;
})(e.defaultDecorator);
}
function An(e, t, n) {
if (!Et(t))
return li(e)
? e
: Ct(e)
? Rn.object(e, t, n)
: Array.isArray(e)
? Rn.array(e, t)
: Pt(e)
? Rn.map(e, t)
: Lt(e)
? Rn.set(e, t)
: "object" === typeof e && null !== e
? e
: Rn.box(e, t);
$t(e, t, En);
}
Object.assign(An, jn);
var Pn,
Ln,
Rn = ht(An, {
box: function (e, t) {
var n = Sn(t);
return new Qn(e, On(n), n.name, !0, n.equals);
},
array: function (e, t) {
var n = Sn(t);
return (!1 === gr.useProxies || !1 === n.proxy ? fo : Ci)(
e,
On(n),
n.name
);
},
map: function (e, t) {
var n = Sn(t);
return new Gi(e, On(n), n.name);
},
set: function (e, t) {
var n = Sn(t);
return new Vi(e, On(n), n.name);
},
object: function (e, t, n) {
return Qr(
!1 === gr.useProxies || !1 === (null == n ? void 0 : n.proxy)
? Qi({}, n)
: (function (e, t) {
var n, r;
return (
_t(),
(e = Qi(e, t)),
null != (r = (n = e[Qt]).proxy_)
? r
: (n.proxy_ = new Proxy(e, vi))
);
})({}, n),
e,
t
);
},
ref: Yt(Tn),
shallow: Yt(Cn),
deep: jn,
struct: Yt(Nn),
}),
Dn = "computed",
Mn = hn(Dn),
In = hn("computed.struct", { equals: en.structural }),
zn = function (e, t) {
if (Et(t)) return $t(e, t, Mn);
if (Ct(e)) return Yt(hn(Dn, e));
var n = Ct(t) ? t : {};
return (n.get = e), n.name || (n.name = e.name || ""), new er(n);
};
Object.assign(zn, Mn), (zn.struct = Yt(In));
var Fn,
Un = 0,
Bn = 1,
Gn =
null !=
(Pn =
null == (Ln = pt(function () { }, "name"))
? void 0
: Ln.configurable) && Pn,
Wn = {
value: "action",
configurable: !0,
writable: !1,
enumerable: !1,
};
function Hn(e, t, n, r) {
function i() {
return Vn(e, n, t, r || this, arguments);
}
return (
void 0 === n && (n = !1),
(i.isMobxAction = !0),
Gn && ((Wn.value = e), Object.defineProperty(i, "name", Wn)),
i
);
}
function Vn(e, t, n, r, i) {
var o = (function (e, t, n, r) {
var i = !1,
o = 0;
0;
var a = gr.trackingDerivation,
s = !t || !a;
_r();
var l = gr.allowStateChanges;
s && (ur(), (l = Kn(!0)));
var u = dr(!0),
c = {
runAsAction_: s,
prevDerivation_: a,
prevAllowStateChanges_: l,
prevAllowStateReads_: u,
notifySpy_: i,
startTime_: o,
actionId_: Bn++,
parentActionId_: Un,
};
return (Un = c.actionId_), c;
})(0, t);
try {
return n.apply(r, i);
} catch (a) {
throw ((o.error_ = a), a);
} finally {
!(function (e) {
Un !== e.actionId_ && ct(30);
(Un = e.parentActionId_),
void 0 !== e.error_ && (gr.suppressReactionErrors = !0);
Yn(e.prevAllowStateChanges_),
fr(e.prevAllowStateReads_),
xr(),
e.runAsAction_ && cr(e.prevDerivation_);
0;
gr.suppressReactionErrors = !1;
})(o);
}
}
function qn(e, t) {
var n = Kn(e);
try {
return t();
} finally {
Yn(n);
}
}
function Kn(e) {
var t = gr.allowStateChanges;
return (gr.allowStateChanges = e), t;
}
function Yn(e) {
gr.allowStateChanges = e;
}
Fn = Symbol.toPrimitive;
var $n,
Qn = (function (e) {
function t(t, n, r, i, o) {
var a;
return (
void 0 === r && (r = "ObservableValue"),
void 0 === i && (i = !0),
void 0 === o && (o = en.default),
((a = e.call(this, r) || this).enhancer = void 0),
(a.name_ = void 0),
(a.equals = void 0),
(a.hasUnreportedChange_ = !1),
(a.interceptors_ = void 0),
(a.changeListeners_ = void 0),
(a.value_ = void 0),
(a.dehancer = void 0),
(a.enhancer = n),
(a.name_ = r),
(a.equals = o),
(a.value_ = n(t, void 0, r)),
a
);
}
Gt(t, e);
var n = t.prototype;
return (
(n.dehanceValue = function (e) {
return void 0 !== this.dehancer ? this.dehancer(e) : e;
}),
(n.set = function (e) {
this.value_;
if ((e = this.prepareNewValue_(e)) !== gr.UNCHANGED) {
0, this.setNewValue_(e);
}
}),
(n.prepareNewValue_ = function (e) {
if ((or(this), mi(this))) {
var t = yi(this, { object: this, type: Si, newValue: e });
if (!t) return gr.UNCHANGED;
e = t.newValue;
}
return (
(e = this.enhancer(e, this.value_, this.name_)),
this.equals(this.value_, e) ? gr.UNCHANGED : e
);
}),
(n.setNewValue_ = function (e) {
var t = this.value_;
(this.value_ = e),
this.reportChanged(),
bi(this) &&
_i(this, {
type: Si,
object: this,
newValue: e,
oldValue: t,
});
}),
(n.get = function () {
return this.reportObserved(), this.dehanceValue(this.value_);
}),
(n.intercept_ = function (e) {
return gi(this, e);
}),
(n.observe_ = function (e, t) {
return (
t &&
e({
observableKind: "value",
debugObjectName: this.name_,
object: this,
type: Si,
newValue: this.value_,
oldValue: void 0,
}),
wi(this, e)
);
}),
(n.raw = function () {
return this.value_;
}),
(n.toJSON = function () {
return this.get();
}),
(n.toString = function () {
return this.name_ + "[" + this.value_ + "]";
}),
(n.valueOf = function () {
return Mt(this.get());
}),
(n[Fn] = function () {
return this.valueOf();
}),
t
);
})(Xt),
Xn = At("ObservableValue", Qn);
$n = Symbol.toPrimitive;
var Jn,
Zn,
er = (function () {
function e(e) {
(this.dependenciesState_ = Jn.NOT_TRACKING_),
(this.observing_ = []),
(this.newObserving_ = null),
(this.isBeingObserved_ = !1),
(this.isPendingUnobservation_ = !1),
(this.observers_ = new Set()),
(this.diffValue_ = 0),
(this.runId_ = 0),
(this.lastAccessedBy_ = 0),
(this.lowestObserverState_ = Jn.UP_TO_DATE_),
(this.unboundDepsCount_ = 0),
(this.value_ = new nr(null)),
(this.name_ = void 0),
(this.triggeredBy_ = void 0),
(this.isComputing_ = !1),
(this.isRunningSetter_ = !1),
(this.derivation = void 0),
(this.setter_ = void 0),
(this.isTracing_ = Zn.NONE),
(this.scope_ = void 0),
(this.equals_ = void 0),
(this.requiresReaction_ = void 0),
(this.keepAlive_ = void 0),
(this.onBOL = void 0),
(this.onBUOL = void 0),
e.get || ct(31),
(this.derivation = e.get),
(this.name_ = e.name || "ComputedValue"),
e.set && (this.setter_ = Hn("ComputedValue-setter", e.set)),
(this.equals_ =
e.equals ||
(e.compareStructural || e.struct ? en.structural : en.default)),
(this.scope_ = e.context),
(this.requiresReaction_ = e.requiresReaction),
(this.keepAlive_ = !!e.keepAlive);
}
var t = e.prototype;
return (
(t.onBecomeStale_ = function () {
!(function (e) {
if (e.lowestObserverState_ !== Jn.UP_TO_DATE_) return;
(e.lowestObserverState_ = Jn.POSSIBLY_STALE_),
e.observers_.forEach(function (e) {
e.dependenciesState_ === Jn.UP_TO_DATE_ &&
((e.dependenciesState_ = Jn.POSSIBLY_STALE_),
e.onBecomeStale_());
});
})(this);
}),
(t.onBO = function () {
this.onBOL &&
this.onBOL.forEach(function (e) {
return e();
});
}),
(t.onBUO = function () {
this.onBUOL &&
this.onBUOL.forEach(function (e) {
return e();
});
}),
(t.get = function () {
if (
(this.isComputing_ && ct(32, this.name_, this.derivation),
0 !== gr.inBatch ||
0 !== this.observers_.size ||
this.keepAlive_)
) {
if ((kr(this), ir(this))) {
var e = gr.trackingContext;
this.keepAlive_ && !e && (gr.trackingContext = this),
this.trackAndCompute() &&
(function (e) {
if (e.lowestObserverState_ === Jn.STALE_) return;
(e.lowestObserverState_ = Jn.STALE_),
e.observers_.forEach(function (t) {
t.dependenciesState_ === Jn.POSSIBLY_STALE_
? (t.dependenciesState_ = Jn.STALE_)
: t.dependenciesState_ === Jn.UP_TO_DATE_ &&
(e.lowestObserverState_ = Jn.UP_TO_DATE_);
});
})(this),
(gr.trackingContext = e);
}
} else
ir(this) &&
(this.warnAboutUntrackedRead_(),
_r(),
(this.value_ = this.computeValue_(!1)),
xr());
var t = this.value_;
if (rr(t)) throw t.cause;
return t;
}),
(t.set = function (e) {
if (this.setter_) {
this.isRunningSetter_ && ct(33, this.name_),
(this.isRunningSetter_ = !0);
try {
this.setter_.call(this.scope_, e);
} finally {
this.isRunningSetter_ = !1;
}
} else ct(34, this.name_);
}),
(t.trackAndCompute = function () {
var e = this.value_,
t = this.dependenciesState_ === Jn.NOT_TRACKING_,
n = this.computeValue_(!0),
r = t || rr(e) || rr(n) || !this.equals_(e, n);
return r && (this.value_ = n), r;
}),
(t.computeValue_ = function (e) {
this.isComputing_ = !0;
var t,
n = Kn(!1);
if (e) t = ar(this, this.derivation, this.scope_);
else if (!0 === gr.disableErrorBoundaries)
t = this.derivation.call(this.scope_);
else
try {
t = this.derivation.call(this.scope_);
} catch (r) {
t = new nr(r);
}
return Yn(n), (this.isComputing_ = !1), t;
}),
(t.suspend_ = function () {
this.keepAlive_ || (sr(this), (this.value_ = void 0));
}),
(t.observe_ = function (e, t) {
var n = this,
r = !0,
i = void 0;
return Gr(function () {
var o = n.get();
if (!r || t) {
var a = ur();
e({
observableKind: "computed",
debugObjectName: n.name_,
type: Si,
object: n,
newValue: o,
oldValue: i,
}),
cr(a);
}
(r = !1), (i = o);
});
}),
(t.warnAboutUntrackedRead_ = function () { }),
(t.toString = function () {
return this.name_ + "[" + this.derivation.toString() + "]";
}),
(t.valueOf = function () {
return Mt(this.get());
}),
(t[$n] = function () {
return this.valueOf();
}),
e
);
})(),
tr = At("ComputedValue", er);
!(function (e) {
(e[(e.NOT_TRACKING_ = -1)] = "NOT_TRACKING_"),
(e[(e.UP_TO_DATE_ = 0)] = "UP_TO_DATE_"),
(e[(e.POSSIBLY_STALE_ = 1)] = "POSSIBLY_STALE_"),
(e[(e.STALE_ = 2)] = "STALE_");
})(Jn || (Jn = {})),
(function (e) {
(e[(e.NONE = 0)] = "NONE"),
(e[(e.LOG = 1)] = "LOG"),
(e[(e.BREAK = 2)] = "BREAK");
})(Zn || (Zn = {}));
var nr = function (e) {
(this.cause = void 0), (this.cause = e);
};
function rr(e) {
return e instanceof nr;
}
function ir(e) {
switch (e.dependenciesState_) {
case Jn.UP_TO_DATE_:
return !1;
case Jn.NOT_TRACKING_:
case Jn.STALE_:
return !0;
case Jn.POSSIBLY_STALE_:
for (
var t = dr(!0), n = ur(), r = e.observing_, i = r.length, o = 0;
o < i;
o++
) {
var a = r[o];
if (tr(a)) {
if (gr.disableErrorBoundaries) a.get();
else
try {
a.get();
} catch (s) {
return cr(n), fr(t), !0;
}
if (e.dependenciesState_ === Jn.STALE_) return cr(n), fr(t), !0;
}
}
return hr(e), cr(n), fr(t), !1;
}
}
function or(e) { }
function ar(e, t, n) {
var r = dr(!0);
hr(e),
(e.newObserving_ = new Array(e.observing_.length + 100)),
(e.unboundDepsCount_ = 0),
(e.runId_ = ++gr.runId);
var i,
o = gr.trackingDerivation;
if (
((gr.trackingDerivation = e),
gr.inBatch++,
!0 === gr.disableErrorBoundaries)
)
i = t.call(n);
else
try {
i = t.call(n);
} catch (a) {
i = new nr(a);
}
return (
gr.inBatch--,
(gr.trackingDerivation = o),
(function (e) {
for (
var t = e.observing_,
n = (e.observing_ = e.newObserving_),
r = Jn.UP_TO_DATE_,
i = 0,
o = e.unboundDepsCount_,
a = 0;
a < o;
a++
) {
var s = n[a];
0 === s.diffValue_ &&
((s.diffValue_ = 1), i !== a && (n[i] = s), i++),
s.dependenciesState_ > r && (r = s.dependenciesState_);
}
(n.length = i), (e.newObserving_ = null), (o = t.length);
for (; o--;) {
var l = t[o];
0 === l.diffValue_ && br(l, e), (l.diffValue_ = 0);
}
for (; i--;) {
var u = n[i];
1 === u.diffValue_ && ((u.diffValue_ = 0), yr(u, e));
}
r !== Jn.UP_TO_DATE_ &&
((e.dependenciesState_ = r), e.onBecomeStale_());
})(e),
fr(r),
i
);
}
function sr(e) {
var t = e.observing_;
e.observing_ = [];
for (var n = t.length; n--;) br(t[n], e);
e.dependenciesState_ = Jn.NOT_TRACKING_;
}
function lr(e) {
var t = ur();
try {
return e();
} finally {
cr(t);
}
}
function ur() {
var e = gr.trackingDerivation;
return (gr.trackingDerivation = null), e;
}
function cr(e) {
gr.trackingDerivation = e;
}
function dr(e) {
var t = gr.allowStateReads;
return (gr.allowStateReads = e), t;
}
function fr(e) {
gr.allowStateReads = e;
}
function hr(e) {
if (e.dependenciesState_ !== Jn.UP_TO_DATE_) {
e.dependenciesState_ = Jn.UP_TO_DATE_;
for (var t = e.observing_, n = t.length; n--;)
t[n].lowestObserverState_ = Jn.UP_TO_DATE_;
}
}
var pr = function () {
(this.version = 6),
(this.UNCHANGED = {}),
(this.trackingDerivation = null),
(this.trackingContext = null),
(this.runId = 0),
(this.mobxGuid = 0),
(this.inBatch = 0),
(this.pendingUnobservations = []),
(this.pendingReactions = []),
(this.isRunningReactions = !1),
(this.allowStateChanges = !1),
(this.allowStateReads = !0),
(this.enforceActions = !0),
(this.spyListeners = []),
(this.globalReactionErrorHandlers = []),
(this.computedRequiresReaction = !1),
(this.reactionRequiresObservable = !1),
(this.observableRequiresReaction = !1),
(this.disableErrorBoundaries = !1),
(this.suppressReactionErrors = !1),
(this.useProxies = !0),
(this.verifyProxies = !1),
(this.safeDescriptors = !0);
},
vr = !0,
mr = !1,
gr = (function () {
var e = ft();
return (
e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (vr = !1),
e.__mobxGlobals &&
e.__mobxGlobals.version !== new pr().version &&
(vr = !1),
vr
? e.__mobxGlobals
? ((e.__mobxInstanceCount += 1),
e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}),
e.__mobxGlobals)
: ((e.__mobxInstanceCount = 1), (e.__mobxGlobals = new pr()))
: (setTimeout(function () {
mr || ct(35);
}, 1),
new pr())
);
})();
function yr(e, t) {
e.observers_.add(t),
e.lowestObserverState_ > t.dependenciesState_ &&
(e.lowestObserverState_ = t.dependenciesState_);
}
function br(e, t) {
e.observers_.delete(t), 0 === e.observers_.size && wr(e);
}
function wr(e) {
!1 === e.isPendingUnobservation_ &&
((e.isPendingUnobservation_ = !0), gr.pendingUnobservations.push(e));
}
function _r() {
gr.inBatch++;
}
function xr() {
if (0 === --gr.inBatch) {
Cr();
for (var e = gr.pendingUnobservations, t = 0; t < e.length; t++) {
var n = e[t];
(n.isPendingUnobservation_ = !1),
0 === n.observers_.size &&
(n.isBeingObserved_ && ((n.isBeingObserved_ = !1), n.onBUO()),
n instanceof er && n.suspend_());
}
gr.pendingUnobservations = [];
}
}
function kr(e) {
var t = gr.trackingDerivation;
return null !== t
? (t.runId_ !== e.lastAccessedBy_ &&
((e.lastAccessedBy_ = t.runId_),
(t.newObserving_[t.unboundDepsCount_++] = e),
!e.isBeingObserved_ &&
gr.trackingContext &&
((e.isBeingObserved_ = !0), e.onBO())),
!0)
: (0 === e.observers_.size && gr.inBatch > 0 && wr(e), !1);
}
function Sr(e) {
e.lowestObserverState_ !== Jn.STALE_ &&
((e.lowestObserverState_ = Jn.STALE_),
e.observers_.forEach(function (e) {
e.dependenciesState_ === Jn.UP_TO_DATE_ && e.onBecomeStale_(),
(e.dependenciesState_ = Jn.STALE_);
}));
}
var Er = (function () {
function e(e, t, n, r) {
void 0 === e && (e = "Reaction"),
(this.name_ = void 0),
(this.onInvalidate_ = void 0),
(this.errorHandler_ = void 0),
(this.requiresObservable_ = void 0),
(this.observing_ = []),
(this.newObserving_ = []),
(this.dependenciesState_ = Jn.NOT_TRACKING_),
(this.diffValue_ = 0),
(this.runId_ = 0),
(this.unboundDepsCount_ = 0),
(this.isDisposed_ = !1),
(this.isScheduled_ = !1),
(this.isTrackPending_ = !1),
(this.isRunning_ = !1),
(this.isTracing_ = Zn.NONE),
(this.name_ = e),
(this.onInvalidate_ = t),
(this.errorHandler_ = n),
(this.requiresObservable_ = r);
}
var t = e.prototype;
return (
(t.onBecomeStale_ = function () {
this.schedule_();
}),
(t.schedule_ = function () {
this.isScheduled_ ||
((this.isScheduled_ = !0), gr.pendingReactions.push(this), Cr());
}),
(t.isScheduled = function () {
return this.isScheduled_;
}),
(t.runReaction_ = function () {
if (!this.isDisposed_) {
_r(), (this.isScheduled_ = !1);
var e = gr.trackingContext;
if (((gr.trackingContext = this), ir(this))) {
this.isTrackPending_ = !0;
try {
this.onInvalidate_();
} catch (t) {
this.reportExceptionInDerivation_(t);
}
}
(gr.trackingContext = e), xr();
}
}),
(t.track = function (e) {
if (!this.isDisposed_) {
_r();
0, (this.isRunning_ = !0);
var t = gr.trackingContext;
gr.trackingContext = this;
var n = ar(this, e, void 0);
(gr.trackingContext = t),
(this.isRunning_ = !1),
(this.isTrackPending_ = !1),
this.isDisposed_ && sr(this),
rr(n) && this.reportExceptionInDerivation_(n.cause),
xr();
}
}),
(t.reportExceptionInDerivation_ = function (e) {
var t = this;
if (this.errorHandler_) this.errorHandler_(e, this);
else {
if (gr.disableErrorBoundaries) throw e;
var n = "[mobx] uncaught error in '" + this + "'";
gr.suppressReactionErrors || console.error(n, e),
gr.globalReactionErrorHandlers.forEach(function (n) {
return n(e, t);
});
}
}),
(t.dispose = function () {
this.isDisposed_ ||
((this.isDisposed_ = !0),
this.isRunning_ || (_r(), sr(this), xr()));
}),
(t.getDisposer_ = function () {
var e = this.dispose.bind(this);
return (e[Qt] = this), e;
}),
(t.toString = function () {
return "Reaction[" + this.name_ + "]";
}),
(t.trace = function (e) {
void 0 === e && (e = !1),
(function () {
ct("trace() is not available in production builds");
for (
var e = !1, t = arguments.length, n = new Array(t), r = 0;
r < t;
r++
)
n[r] = arguments[r];
"boolean" === typeof n[n.length - 1] && (e = n.pop());
var i = fi(n);
if (!i)
return ct(
"'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly"
);
i.isTracing_ === Zn.NONE &&
console.log("[mobx.trace] '" + i.name_ + "' tracing enabled");
i.isTracing_ = e ? Zn.BREAK : Zn.LOG;
})(this, e);
}),
e
);
})();
var Tr = function (e) {
return e();
};
function Cr() {
gr.inBatch > 0 || gr.isRunningReactions || Tr(Nr);
}
function Nr() {
gr.isRunningReactions = !0;
for (var e = gr.pendingReactions, t = 0; e.length > 0;) {
100 === ++t &&
(console.error("[mobx] cycle in reaction: " + e[0]), e.splice(0));
for (var n = e.splice(0), r = 0, i = n.length; r < i; r++)
n[r].runReaction_();
}
gr.isRunningReactions = !1;
}
var jr = At("Reaction", Er);
var Or = "action",
Ar = "autoAction",
Pr = "",
Lr = on(Or),
Rr = on("action.bound", { bound: !0 }),
Dr = on(Ar, { autoAction: !0 }),
Mr = on("autoAction.bound", { autoAction: !0, bound: !0 });
function Ir(e) {
return function (t, n) {
return St(t)
? Hn(t.name || Pr, t, e)
: St(n)
? Hn(t, n, e)
: Et(n)
? $t(t, n, e ? Dr : Lr)
: Et(t)
? Yt(on(e ? Ar : Or, { name: t, autoAction: e }))
: void 0;
};
}
var zr = Ir(!1);
Object.assign(zr, Lr);
var Fr = Ir(!0);
function Ur(e) {
return Vn(e.name, !1, e, this, void 0);
}
function Br(e) {
return St(e) && !0 === e.isMobxAction;
}
function Gr(e, t) {
var n, r;
void 0 === t && (t = yt);
var i,
o = null != (n = null == (r = t) ? void 0 : r.name) ? n : "Autorun";
if (!t.scheduler && !t.delay)
i = new Er(
o,
function () {
this.track(l);
},
t.onError,
t.requiresObservable
);
else {
var a = Hr(t),
s = !1;
i = new Er(
o,
function () {
s ||
((s = !0),
a(function () {
(s = !1), i.isDisposed_ || i.track(l);
}));
},
t.onError,
t.requiresObservable
);
}
function l() {
e(i);
}
return i.schedule_(), i.getDisposer_();
}
Object.assign(Fr, Dr), (zr.bound = Yt(Rr)), (Fr.bound = Yt(Mr));
var Wr = function (e) {
return e();
};
function Hr(e) {
return e.scheduler
? e.scheduler
: e.delay
? function (t) {
return setTimeout(t, e.delay);
}
: Wr;
}
var Vr = "onBO";
function qr(e, t, n) {
return Kr("onBUO", e, t, n);
}
function Kr(e, t, n, r) {
var i = "function" === typeof r ? ho(t, n) : ho(t),
o = St(r) ? r : n,
a = e + "L";
return (
i[a] ? i[a].add(o) : (i[a] = new Set([o])),
function () {
var e = i[a];
e && (e.delete(o), 0 === e.size && delete i[a]);
}
);
}
var Yr = "always";
function $r(e) {
!0 === e.isolateGlobalState &&
(function () {
if (
((gr.pendingReactions.length ||
gr.inBatch ||
gr.isRunningReactions) &&
ct(36),
(mr = !0),
vr)
) {
var e = ft();
0 === --e.__mobxInstanceCount && (e.__mobxGlobals = void 0),
(gr = new pr());
}
})();
var t = e.useProxies,
n = e.enforceActions;
if (
(void 0 !== t &&
(gr.useProxies =
t === Yr || ("never" !== t && "undefined" !== typeof Proxy)),
"ifavailable" === t && (gr.verifyProxies = !0),
void 0 !== n)
) {
var r = n === Yr ? Yr : "observed" === n;
(gr.enforceActions = r),
(gr.allowStateChanges = !0 !== r && r !== Yr);
}
[
"computedRequiresReaction",
"reactionRequiresObservable",
"observableRequiresReaction",
"disableErrorBoundaries",
"safeDescriptors",
].forEach(function (t) {
t in e && (gr[t] = !!e[t]);
}),
(gr.allowStateReads = !gr.observableRequiresReaction),
e.reactionScheduler &&
(function (e) {
var t = Tr;
Tr = function (n) {
return e(function () {
return t(n);
});
};
})(e.reactionScheduler);
}
function Qr(e, t, n, r) {
var i = zt(t),
o = Qi(e, r)[Qt];
_r();
try {
Dt(i).forEach(function (e) {
o.extend_(e, i[e], !n || !(e in n) || n[e]);
});
} finally {
xr();
}
return e;
}
function Xr(e, t) {
return Jr(ho(e, t));
}
function Jr(e) {
var t,
n = { name: e.name_ };
return (
e.observing_ &&
e.observing_.length > 0 &&
(n.dependencies = ((t = e.observing_), Array.from(new Set(t))).map(
Jr
)),
n
);
}
var Zr = 0;
function ei() {
this.message = "FLOW_CANCELLED";
}
ei.prototype = Object.create(Error.prototype);
var ti = un("flow"),
ni = un("flow.bound", { bound: !0 }),
ri = Object.assign(function (e, t) {
if (Et(t)) return $t(e, t, ti);
var n = e,
r = n.name || "",
i = function () {
var e,
t = this,
i = arguments,
o = ++Zr,
a = zr(r + " - runid: " + o + " - init", n).apply(t, i),
s = void 0,
l = new Promise(function (t, n) {
var i = 0;
function l(e) {
var t;
s = void 0;
try {
t = zr(
r + " - runid: " + o + " - yield " + i++,
a.next
).call(a, e);
} catch (l) {
return n(l);
}
c(t);
}
function u(e) {
var t;
s = void 0;
try {
t = zr(
r + " - runid: " + o + " - yield " + i++,
a.throw
).call(a, e);
} catch (l) {
return n(l);
}
c(t);
}
function c(e) {
if (!St(null == e ? void 0 : e.then))
return e.done
? t(e.value)
: (s = Promise.resolve(e.value)).then(l, u);
e.then(c, n);
}
(e = n), l(void 0);
});
return (
(l.cancel = zr(r + " - runid: " + o + " - cancel", function () {
try {
s && ii(s);
var t = a.return(void 0),
n = Promise.resolve(t.value);
n.then(kt, kt), ii(n), e(new ei());
} catch (r) {
e(r);
}
})),
l
);
};
return (i.isMobXFlow = !0), i;
}, ti);
function ii(e) {
St(e.cancel) && e.cancel();
}
function oi(e) {
return !0 === (null == e ? void 0 : e.isMobXFlow);
}
function ai(e, t) {
if (void 0 === t) return tr(e);
if (!1 === Zi(e)) return !1;
if (!e[Qt].values_.has(t)) return !1;
var n = ho(e, t);
return tr(n);
}
function si(e, t) {
return (
!!e &&
(void 0 !== t
? !!Zi(e) && e[Qt].values_.has(t)
: Zi(e) || !!e[Qt] || Jt(e) || jr(e) || tr(e))
);
}
function li(e) {
return si(e);
}
function ui(e, t, n) {
return e.set(t, n), n;
}
function ci(e, t) {
if (null == e || "object" !== typeof e || e instanceof Date || !li(e))
return e;
if (Xn(e) || tr(e)) return ci(e.get(), t);
if (t.has(e)) return t.get(e);
if (Mi(e)) {
var n = ui(t, e, new Array(e.length));
return (
e.forEach(function (e, r) {
n[r] = ci(e, t);
}),
n
);
}
if (qi(e)) {
var r = ui(t, e, new Set());
return (
e.forEach(function (e) {
r.add(ci(e, t));
}),
r
);
}
if (Wi(e)) {
var i = ui(t, e, new Map());
return (
e.forEach(function (e, n) {
i.set(n, ci(e, t));
}),
i
);
}
var o = ui(t, e, {});
return (
(function (e) {
if (Zi(e)) return e[Qt].ownKeys_();
ct(38);
})(e).forEach(function (n) {
mt.propertyIsEnumerable.call(e, n) && (o[n] = ci(e[n], t));
}),
o
);
}
function di(e, t) {
return ci(e, new Map());
}
function fi(e) {
switch (e.length) {
case 0:
return gr.trackingDerivation;
case 1:
return ho(e[0]);
case 2:
return ho(e[0], e[1]);
}
}
function hi(e, t) {
void 0 === t && (t = void 0), _r();
try {
return e.apply(t);
} finally {
xr();
}
}
function pi(e) {
return e[Qt];
}
ri.bound = Yt(ni);
var vi = {
has: function (e, t) {
return pi(e).has_(t);
},
get: function (e, t) {
return pi(e).get_(t);
},
set: function (e, t, n) {
var r;
return !!Et(t) && (null == (r = pi(e).set_(t, n, !0)) || r);
},
deleteProperty: function (e, t) {
var n;
return !!Et(t) && (null == (n = pi(e).delete_(t, !0)) || n);
},
defineProperty: function (e, t, n) {
var r;
return null == (r = pi(e).defineProperty_(t, n)) || r;
},
ownKeys: function (e) {
return pi(e).ownKeys_();
},
preventExtensions: function (e) {
ct(13);
},
};
function mi(e) {
return void 0 !== e.interceptors_ && e.interceptors_.length > 0;
}
function gi(e, t) {
var n = e.interceptors_ || (e.interceptors_ = []);
return (
n.push(t),
xt(function () {
var e = n.indexOf(t);
-1 !== e && n.splice(e, 1);
})
);
}
function yi(e, t) {
var n = ur();
try {
for (
var r = [].concat(e.interceptors_ || []), i = 0, o = r.length;
i < o && ((t = r[i](t)) && !t.type && ct(14), t);
i++
);
return t;
} finally {
cr(n);
}
}
function bi(e) {
return void 0 !== e.changeListeners_ && e.changeListeners_.length > 0;
}
function wi(e, t) {
var n = e.changeListeners_ || (e.changeListeners_ = []);
return (
n.push(t),
xt(function () {
var e = n.indexOf(t);
-1 !== e && n.splice(e, 1);
})
);
}
function _i(e, t) {
var n = ur(),
r = e.changeListeners_;
if (r) {
for (var i = 0, o = (r = r.slice()).length; i < o; i++) r[i](t);
cr(n);
}
}
function xi(e, t, n) {
var r = Qi(e, n)[Qt];
_r();
try {
0,
null != t ||
(t = (function (e) {
return It(e, Kt) || jt(e, Kt, Bt({}, e[Kt])), e[Kt];
})(e)),
Dt(t).forEach(function (e) {
return r.make_(e, t[e]);
});
} finally {
xr();
}
return e;
}
var ki = "splice",
Si = "update",
Ei = {
get: function (e, t) {
var n = e[Qt];
return t === Qt
? n
: "length" === t
? n.getArrayLength_()
: "string" !== typeof t || isNaN(t)
? It(Ni, t)
? Ni[t]
: e[t]
: n.get_(parseInt(t));
},
set: function (e, t, n) {
var r = e[Qt];
return (
"length" === t && r.setArrayLength_(n),
"symbol" === typeof t || isNaN(t)
? (e[t] = n)
: r.set_(parseInt(t), n),
!0
);
},
preventExtensions: function () {
ct(15);
},
},
Ti = (function () {
function e(e, t, n, r) {
void 0 === e && (e = "ObservableArray"),
(this.owned_ = void 0),
(this.legacyMode_ = void 0),
(this.atom_ = void 0),
(this.values_ = []),
(this.interceptors_ = void 0),
(this.changeListeners_ = void 0),
(this.enhancer_ = void 0),
(this.dehancer = void 0),
(this.proxy_ = void 0),
(this.lastKnownLength_ = 0),
(this.owned_ = n),
(this.legacyMode_ = r),
(this.atom_ = new Xt(e)),
(this.enhancer_ = function (e, n) {
return t(e, n, "ObservableArray[..]");
});
}
var t = e.prototype;
return (
(t.dehanceValue_ = function (e) {
return void 0 !== this.dehancer ? this.dehancer(e) : e;
}),
(t.dehanceValues_ = function (e) {
return void 0 !== this.dehancer && e.length > 0
? e.map(this.dehancer)
: e;
}),
(t.intercept_ = function (e) {
return gi(this, e);
}),
(t.observe_ = function (e, t) {
return (
void 0 === t && (t = !1),
t &&
e({
observableKind: "array",
object: this.proxy_,
debugObjectName: this.atom_.name_,
type: "splice",
index: 0,
added: this.values_.slice(),
addedCount: this.values_.length,
removed: [],
removedCount: 0,
}),
wi(this, e)
);
}),
(t.getArrayLength_ = function () {
return this.atom_.reportObserved(), this.values_.length;
}),
(t.setArrayLength_ = function (e) {
("number" !== typeof e || isNaN(e) || e < 0) &&
ct("Out of range: " + e);
var t = this.values_.length;
if (e !== t)
if (e > t) {
for (var n = new Array(e - t), r = 0; r < e - t; r++)
n[r] = void 0;
this.spliceWithArray_(t, 0, n);
} else this.spliceWithArray_(e, t - e);
}),
(t.updateArrayLength_ = function (e, t) {
e !== this.lastKnownLength_ && ct(16),
(this.lastKnownLength_ += t),
this.legacyMode_ && t > 0 && co(e + t + 1);
}),
(t.spliceWithArray_ = function (e, t, n) {
var r = this;
this.atom_;
var i = this.values_.length;
if (
(void 0 === e
? (e = 0)
: e > i
? (e = i)
: e < 0 && (e = Math.max(0, i + e)),
(t =
1 === arguments.length
? i - e
: void 0 === t || null === t
? 0
: Math.max(0, Math.min(t, i - e))),
void 0 === n && (n = gt),
mi(this))
) {
var o = yi(this, {
object: this.proxy_,
type: ki,
index: e,
removedCount: t,
added: n,
});
if (!o) return gt;
(t = o.removedCount), (n = o.added);
}
if (
((n =
0 === n.length
? n
: n.map(function (e) {
return r.enhancer_(e, void 0);
})),
this.legacyMode_)
) {
var a = n.length - t;
this.updateArrayLength_(i, a);
}
var s = this.spliceItemsIntoValues_(e, t, n);
return (
(0 === t && 0 === n.length) || this.notifyArraySplice_(e, n, s),
this.dehanceValues_(s)
);
}),
(t.spliceItemsIntoValues_ = function (e, t, n) {
var r;
if (n.length < 1e4)
return (r = this.values_).splice.apply(r, [e, t].concat(n));
var i = this.values_.slice(e, e + t),
o = this.values_.slice(e + t);
this.values_.length += n.length - t;
for (var a = 0; a < n.length; a++) this.values_[e + a] = n[a];
for (var s = 0; s < o.length; s++)
this.values_[e + n.length + s] = o[s];
return i;
}),
(t.notifyArrayChildUpdate_ = function (e, t, n) {
var r = !this.owned_ && !1,
i = bi(this),
o =
i || r
? {
observableKind: "array",
object: this.proxy_,
type: Si,
debugObjectName: this.atom_.name_,
index: e,
newValue: t,
oldValue: n,
}
: null;
this.atom_.reportChanged(), i && _i(this, o);
}),
(t.notifyArraySplice_ = function (e, t, n) {
var r = !this.owned_ && !1,
i = bi(this),
o =
i || r
? {
observableKind: "array",
object: this.proxy_,
debugObjectName: this.atom_.name_,
type: ki,
index: e,
removed: n,
added: t,
removedCount: n.length,
addedCount: t.length,
}
: null;
this.atom_.reportChanged(), i && _i(this, o);
}),
(t.get_ = function (e) {
if (e < this.values_.length)
return (
this.atom_.reportObserved(),
this.dehanceValue_(this.values_[e])
);
console.warn(
"[mobx.array] Attempt to read an array index (" +
e +
") that is out of bounds (" +
this.values_.length +
"). Please check length first. Out of bound indices will not be tracked by MobX"
);
}),
(t.set_ = function (e, t) {
var n = this.values_;
if (e < n.length) {
this.atom_;
var r = n[e];
if (mi(this)) {
var i = yi(this, {
type: Si,
object: this.proxy_,
index: e,
newValue: t,
});
if (!i) return;
t = i.newValue;
}
(t = this.enhancer_(t, r)) !== r &&
((n[e] = t), this.notifyArrayChildUpdate_(e, t, r));
} else
e === n.length
? this.spliceWithArray_(e, 0, [t])
: ct(17, e, n.length);
}),
e
);
})();
function Ci(e, t, n, r) {
void 0 === n && (n = "ObservableArray"), void 0 === r && (r = !1), _t();
var i = new Ti(n, t, r, !1);
Ot(i.values_, Qt, i);
var o = new Proxy(i.values_, Ei);
if (((i.proxy_ = o), e && e.length)) {
var a = Kn(!0);
i.spliceWithArray_(0, 0, e), Yn(a);
}
return o;
}
var Ni = {
clear: function () {
return this.splice(0);
},
replace: function (e) {
var t = this[Qt];
return t.spliceWithArray_(0, t.values_.length, e);
},
toJSON: function () {
return this.slice();
},
splice: function (e, t) {
for (
var n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), i = 2;
i < n;
i++
)
r[i - 2] = arguments[i];
var o = this[Qt];
switch (arguments.length) {
case 0:
return [];
case 1:
return o.spliceWithArray_(e);
case 2:
return o.spliceWithArray_(e, t);
}
return o.spliceWithArray_(e, t, r);
},
spliceWithArray: function (e, t, n) {
return this[Qt].spliceWithArray_(e, t, n);
},
push: function () {
for (
var e = this[Qt], t = arguments.length, n = new Array(t), r = 0;
r < t;
r++
)
n[r] = arguments[r];
return e.spliceWithArray_(e.values_.length, 0, n), e.values_.length;
},
pop: function () {
return this.splice(Math.max(this[Qt].values_.length - 1, 0), 1)[0];
},
shift: function () {
return this.splice(0, 1)[0];
},
unshift: function () {
for (
var e = this[Qt], t = arguments.length, n = new Array(t), r = 0;
r < t;
r++
)
n[r] = arguments[r];
return e.spliceWithArray_(0, 0, n), e.values_.length;
},
reverse: function () {
return (
gr.trackingDerivation && ct(37, "reverse"),
this.replace(this.slice().reverse()),
this
);
},
sort: function () {
gr.trackingDerivation && ct(37, "sort");
var e = this.slice();
return e.sort.apply(e, arguments), this.replace(e), this;
},
remove: function (e) {
var t = this[Qt],
n = t.dehanceValues_(t.values_).indexOf(e);
return n > -1 && (this.splice(n, 1), !0);
},
};
function ji(e, t) {
"function" === typeof Array.prototype[e] && (Ni[e] = t(e));
}
function Oi(e) {
return function () {
var t = this[Qt];
t.atom_.reportObserved();
var n = t.dehanceValues_(t.values_);
return n[e].apply(n, arguments);
};
}
function Ai(e) {
return function (t, n) {
var r = this,
i = this[Qt];
return (
i.atom_.reportObserved(),
i.dehanceValues_(i.values_)[e](function (e, i) {
return t.call(n, e, i, r);
})
);
};
}
function Pi(e) {
return function () {
var t = this,
n = this[Qt];
n.atom_.reportObserved();
var r = n.dehanceValues_(n.values_),
i = arguments[0];
return (
(arguments[0] = function (e, n, r) {
return i(e, n, r, t);
}),
r[e].apply(r, arguments)
);
};
}
ji("concat", Oi),
ji("flat", Oi),
ji("includes", Oi),
ji("indexOf", Oi),
ji("join", Oi),
ji("lastIndexOf", Oi),
ji("slice", Oi),
ji("toString", Oi),
ji("toLocaleString", Oi),
ji("every", Ai),
ji("filter", Ai),
ji("find", Ai),
ji("findIndex", Ai),
ji("flatMap", Ai),
ji("forEach", Ai),
ji("map", Ai),
ji("some", Ai),
ji("reduce", Pi),
ji("reduceRight", Pi);
var Li,
Ri,
Di = At("ObservableArrayAdministration", Ti);
function Mi(e) {
return Tt(e) && Di(e[Qt]);
}
var Ii = {},
zi = "add",
Fi = "delete";
(Li = Symbol.iterator), (Ri = Symbol.toStringTag);
var Ui,
Bi,
Gi = (function () {
function e(e, t, n) {
var r = this;
void 0 === t && (t = tn),
void 0 === n && (n = "ObservableMap"),
(this.enhancer_ = void 0),
(this.name_ = void 0),
(this[Qt] = Ii),
(this.data_ = void 0),
(this.hasMap_ = void 0),
(this.keysAtom_ = void 0),
(this.interceptors_ = void 0),
(this.changeListeners_ = void 0),
(this.dehancer = void 0),
(this.enhancer_ = t),
(this.name_ = n),
St(Map) || ct(18),
(this.keysAtom_ = Zt("ObservableMap.keys()")),
(this.data_ = new Map()),
(this.hasMap_ = new Map()),
qn(!0, function () {
r.merge(e);
});
}
var t = e.prototype;
return (
(t.has_ = function (e) {
return this.data_.has(e);
}),
(t.has = function (e) {
var t = this;
if (!gr.trackingDerivation) return this.has_(e);
var n = this.hasMap_.get(e);
if (!n) {
var r = (n = new Qn(
this.has_(e),
nn,
"ObservableMap.key?",
!1
));
this.hasMap_.set(e, r),
qr(r, function () {
return t.hasMap_.delete(e);
});
}
return n.get();
}),
(t.set = function (e, t) {
var n = this.has_(e);
if (mi(this)) {
var r = yi(this, {
type: n ? Si : zi,
object: this,
newValue: t,
name: e,
});
if (!r) return this;
t = r.newValue;
}
return n ? this.updateValue_(e, t) : this.addValue_(e, t), this;
}),
(t.delete = function (e) {
var t = this;
if (
(this.keysAtom_, mi(this)) &&
!yi(this, { type: Fi, object: this, name: e })
)
return !1;
if (this.has_(e)) {
var n = bi(this),
r = n
? {
observableKind: "map",
debugObjectName: this.name_,
type: Fi,
object: this,
oldValue: this.data_.get(e).value_,
name: e,
}
: null;
return (
hi(function () {
var n;
t.keysAtom_.reportChanged(),
null == (n = t.hasMap_.get(e)) || n.setNewValue_(!1),
t.data_.get(e).setNewValue_(void 0),
t.data_.delete(e);
}),
n && _i(this, r),
!0
);
}
return !1;
}),
(t.updateValue_ = function (e, t) {
var n = this.data_.get(e);
if ((t = n.prepareNewValue_(t)) !== gr.UNCHANGED) {
var r = bi(this),
i = r
? {
observableKind: "map",
debugObjectName: this.name_,
type: Si,
object: this,
oldValue: n.value_,
name: e,
newValue: t,
}
: null;
0, n.setNewValue_(t), r && _i(this, i);
}
}),
(t.addValue_ = function (e, t) {
var n = this;
this.keysAtom_,
hi(function () {
var r,
i = new Qn(t, n.enhancer_, "ObservableMap.key", !1);
n.data_.set(e, i),
(t = i.value_),
null == (r = n.hasMap_.get(e)) || r.setNewValue_(!0),
n.keysAtom_.reportChanged();
});
var r = bi(this),
i = r
? {
observableKind: "map",
debugObjectName: this.name_,
type: zi,
object: this,
name: e,
newValue: t,
}
: null;
r && _i(this, i);
}),
(t.get = function (e) {
return this.has(e)
? this.dehanceValue_(this.data_.get(e).get())
: this.dehanceValue_(void 0);
}),
(t.dehanceValue_ = function (e) {
return void 0 !== this.dehancer ? this.dehancer(e) : e;
}),
(t.keys = function () {
return this.keysAtom_.reportObserved(), this.data_.keys();
}),
(t.values = function () {
var e = this,
t = this.keys();
return wo({
next: function () {
var n = t.next(),
r = n.done,
i = n.value;
return { done: r, value: r ? void 0 : e.get(i) };
},
});
}),
(t.entries = function () {
var e = this,
t = this.keys();
return wo({
next: function () {
var n = t.next(),
r = n.done,
i = n.value;
return { done: r, value: r ? void 0 : [i, e.get(i)] };
},
});
}),
(t[Li] = function () {
return this.entries();
}),
(t.forEach = function (e, t) {
for (var n, r = qt(this); !(n = r()).done;) {
var i = n.value,
o = i[0],
a = i[1];
e.call(t, a, o, this);
}
}),
(t.merge = function (e) {
var t = this;
return (
Wi(e) && (e = new Map(e)),
hi(function () {
Ct(e)
? (function (e) {
var t = Object.keys(e);
if (!Rt) return t;
var n = Object.getOwnPropertySymbols(e);
return n.length
? [].concat(
t,
n.filter(function (t) {
return mt.propertyIsEnumerable.call(e, t);
})
)
: t;
})(e).forEach(function (n) {
return t.set(n, e[n]);
})
: Array.isArray(e)
? e.forEach(function (e) {
var n = e[0],
r = e[1];
return t.set(n, r);
})
: Pt(e)
? (e.constructor !== Map && ct(19, e),
e.forEach(function (e, n) {
return t.set(n, e);
}))
: null !== e && void 0 !== e && ct(20, e);
}),
this
);
}),
(t.clear = function () {
var e = this;
hi(function () {
lr(function () {
for (var t, n = qt(e.keys()); !(t = n()).done;) {
var r = t.value;
e.delete(r);
}
});
});
}),
(t.replace = function (e) {
var t = this;
return (
hi(function () {
for (
var n,
r = (function (e) {
if (Pt(e) || Wi(e)) return e;
if (Array.isArray(e)) return new Map(e);
if (Ct(e)) {
var t = new Map();
for (var n in e) t.set(n, e[n]);
return t;
}
return ct(21, e);
})(e),
i = new Map(),
o = !1,
a = qt(t.data_.keys());
!(n = a()).done;
) {
var s = n.value;
if (!r.has(s))
if (t.delete(s)) o = !0;
else {
var l = t.data_.get(s);
i.set(s, l);
}
}
for (var u, c = qt(r.entries()); !(u = c()).done;) {
var d = u.value,
f = d[0],
h = d[1],
p = t.data_.has(f);
if ((t.set(f, h), t.data_.has(f))) {
var v = t.data_.get(f);
i.set(f, v), p || (o = !0);
}
}
if (!o)
if (t.data_.size !== i.size) t.keysAtom_.reportChanged();
else
for (
var m = t.data_.keys(),
g = i.keys(),
y = m.next(),
b = g.next();
!y.done;
) {
if (y.value !== b.value) {
t.keysAtom_.reportChanged();
break;
}
(y = m.next()), (b = g.next());
}
t.data_ = i;
}),
this
);
}),
(t.toString = function () {
return "[object ObservableMap]";
}),
(t.toJSON = function () {
return Array.from(this);
}),
(t.observe_ = function (e, t) {
return wi(this, e);
}),
(t.intercept_ = function (e) {
return gi(this, e);
}),
Ut(e, [
{
key: "size",
get: function () {
return this.keysAtom_.reportObserved(), this.data_.size;
},
},
{
key: Ri,
get: function () {
return "Map";
},
},
]),
e
);
})(),
Wi = At("ObservableMap", Gi);
var Hi = {};
(Ui = Symbol.iterator), (Bi = Symbol.toStringTag);
var Vi = (function () {
function e(e, t, n) {
void 0 === t && (t = tn),
void 0 === n && (n = "ObservableSet"),
(this.name_ = void 0),
(this[Qt] = Hi),
(this.data_ = new Set()),
(this.atom_ = void 0),
(this.changeListeners_ = void 0),
(this.interceptors_ = void 0),
(this.dehancer = void 0),
(this.enhancer_ = void 0),
(this.name_ = n),
St(Set) || ct(22),
(this.atom_ = Zt(this.name_)),
(this.enhancer_ = function (e, r) {
return t(e, r, n);
}),
e && this.replace(e);
}
var t = e.prototype;
return (
(t.dehanceValue_ = function (e) {
return void 0 !== this.dehancer ? this.dehancer(e) : e;
}),
(t.clear = function () {
var e = this;
hi(function () {
lr(function () {
for (var t, n = qt(e.data_.values()); !(t = n()).done;) {
var r = t.value;
e.delete(r);
}
});
});
}),
(t.forEach = function (e, t) {
for (var n, r = qt(this); !(n = r()).done;) {
var i = n.value;
e.call(t, i, i, this);
}
}),
(t.add = function (e) {
var t = this;
if (
(this.atom_, mi(this)) &&
!yi(this, { type: zi, object: this, newValue: e })
)
return this;
if (!this.has(e)) {
hi(function () {
t.data_.add(t.enhancer_(e, void 0)), t.atom_.reportChanged();
});
var n = !1,
r = bi(this),
i = r
? {
observableKind: "set",
debugObjectName: this.name_,
type: zi,
object: this,
newValue: e,
}
: null;
n, r && _i(this, i);
}
return this;
}),
(t.delete = function (e) {
var t = this;
if (
mi(this) &&
!yi(this, { type: Fi, object: this, oldValue: e })
)
return !1;
if (this.has(e)) {
var n = bi(this),
r = n
? {
observableKind: "set",
debugObjectName: this.name_,
type: Fi,
object: this,
oldValue: e,
}
: null;
return (
hi(function () {
t.atom_.reportChanged(), t.data_.delete(e);
}),
n && _i(this, r),
!0
);
}
return !1;
}),
(t.has = function (e) {
return (
this.atom_.reportObserved(),
this.data_.has(this.dehanceValue_(e))
);
}),
(t.entries = function () {
var e = 0,
t = Array.from(this.keys()),
n = Array.from(this.values());
return wo({
next: function () {
var r = e;
return (
(e += 1),
r < n.length
? { value: [t[r], n[r]], done: !1 }
: { done: !0 }
);
},
});
}),
(t.keys = function () {
return this.values();
}),
(t.values = function () {
this.atom_.reportObserved();
var e = this,
t = 0,
n = Array.from(this.data_.values());
return wo({
next: function () {
return t < n.length
? { value: e.dehanceValue_(n[t++]), done: !1 }
: { done: !0 };
},
});
}),
(t.replace = function (e) {
var t = this;
return (
qi(e) && (e = new Set(e)),
hi(function () {
Array.isArray(e) || Lt(e)
? (t.clear(),
e.forEach(function (e) {
return t.add(e);
}))
: null !== e &&
void 0 !== e &&
ct("Cannot initialize set from " + e);
}),
this
);
}),
(t.observe_ = function (e, t) {
return wi(this, e);
}),
(t.intercept_ = function (e) {
return gi(this, e);
}),
(t.toJSON = function () {
return Array.from(this);
}),
(t.toString = function () {
return "[object ObservableSet]";
}),
(t[Ui] = function () {
return this.values();
}),
Ut(e, [
{
key: "size",
get: function () {
return this.atom_.reportObserved(), this.data_.size;
},
},
{
key: Bi,
get: function () {
return "Set";
},
},
]),
e
);
})(),
qi = At("ObservableSet", Vi),
Ki = Object.create(null),
Yi = "remove",
$i = (function () {
function e(e, t, n, r) {
void 0 === t && (t = new Map()),
void 0 === r && (r = bn),
(this.target_ = void 0),
(this.values_ = void 0),
(this.name_ = void 0),
(this.defaultAnnotation_ = void 0),
(this.keysAtom_ = void 0),
(this.changeListeners_ = void 0),
(this.interceptors_ = void 0),
(this.proxy_ = void 0),
(this.isPlainObject_ = void 0),
(this.appliedAnnotations_ = void 0),
(this.pendingKeys_ = void 0),
(this.target_ = e),
(this.values_ = t),
(this.name_ = n),
(this.defaultAnnotation_ = r),
(this.keysAtom_ = new Xt("ObservableObject.keys")),
(this.isPlainObject_ = Ct(this.target_));
}
var t = e.prototype;
return (
(t.getObservablePropValue_ = function (e) {
return this.values_.get(e).get();
}),
(t.setObservablePropValue_ = function (e, t) {
var n = this.values_.get(e);
if (n instanceof er) return n.set(t), !0;
if (mi(this)) {
var r = yi(this, {
type: Si,
object: this.proxy_ || this.target_,
name: e,
newValue: t,
});
if (!r) return null;
t = r.newValue;
}
if ((t = n.prepareNewValue_(t)) !== gr.UNCHANGED) {
var i = bi(this),
o = i
? {
type: Si,
observableKind: "object",
debugObjectName: this.name_,
object: this.proxy_ || this.target_,
oldValue: n.value_,
name: e,
newValue: t,
}
: null;
0, n.setNewValue_(t), i && _i(this, o);
}
return !0;
}),
(t.get_ = function (e) {
return (
gr.trackingDerivation && !It(this.target_, e) && this.has_(e),
this.target_[e]
);
}),
(t.set_ = function (e, t, n) {
return (
void 0 === n && (n = !1),
It(this.target_, e)
? this.values_.has(e)
? this.setObservablePropValue_(e, t)
: n
? Reflect.set(this.target_, e, t)
: ((this.target_[e] = t), !0)
: this.extend_(
e,
{
value: t,
enumerable: !0,
writable: !0,
configurable: !0,
},
this.defaultAnnotation_,
n
)
);
}),
(t.has_ = function (e) {
if (!gr.trackingDerivation) return e in this.target_;
this.pendingKeys_ || (this.pendingKeys_ = new Map());
var t = this.pendingKeys_.get(e);
return (
t ||
((t = new Qn(
e in this.target_,
nn,
"ObservableObject.key?",
!1
)),
this.pendingKeys_.set(e, t)),
t.get()
);
}),
(t.make_ = function (e, t) {
if ((!0 === t && (t = this.defaultAnnotation_), !1 !== t)) {
if ((to(this, t, e), !(e in this.target_))) {
var n;
if (null != (n = this.target_[Kt]) && n[e]) return;
ct(1, t.annotationType_, this.name_ + "." + e.toString());
}
for (var r = this.target_; r && r !== mt;) {
var i = pt(r, e);
if (i) {
var o = t.make_(this, e, i, r);
if (0 === o) return;
if (1 === o) break;
}
r = Object.getPrototypeOf(r);
}
eo(this, t, e);
}
}),
(t.extend_ = function (e, t, n, r) {
if (
(void 0 === r && (r = !1),
!0 === n && (n = this.defaultAnnotation_),
!1 === n)
)
return this.defineProperty_(e, t, r);
to(this, n, e);
var i = n.extend_(this, e, t, r);
return i && eo(this, n, e), i;
}),
(t.defineProperty_ = function (e, t, n) {
void 0 === n && (n = !1);
try {
_r();
var r = this.delete_(e);
if (!r) return r;
if (mi(this)) {
var i = yi(this, {
object: this.proxy_ || this.target_,
name: e,
type: zi,
newValue: t.value,
});
if (!i) return null;
var o = i.newValue;
t.value !== o && (t = Bt({}, t, { value: o }));
}
if (n) {
if (!Reflect.defineProperty(this.target_, e, t)) return !1;
} else vt(this.target_, e, t);
this.notifyPropertyAddition_(e, t.value);
} finally {
xr();
}
return !0;
}),
(t.defineObservableProperty_ = function (e, t, n, r) {
void 0 === r && (r = !1);
try {
_r();
var i = this.delete_(e);
if (!i) return i;
if (mi(this)) {
var o = yi(this, {
object: this.proxy_ || this.target_,
name: e,
type: zi,
newValue: t,
});
if (!o) return null;
t = o.newValue;
}
var a = Ji(e),
s = {
configurable: !gr.safeDescriptors || this.isPlainObject_,
enumerable: !0,
get: a.get,
set: a.set,
};
if (r) {
if (!Reflect.defineProperty(this.target_, e, s)) return !1;
} else vt(this.target_, e, s);
var l = new Qn(t, n, "ObservableObject.key", !1);
this.values_.set(e, l),
this.notifyPropertyAddition_(e, l.value_);
} finally {
xr();
}
return !0;
}),
(t.defineComputedProperty_ = function (e, t, n) {
void 0 === n && (n = !1);
try {
_r();
var r = this.delete_(e);
if (!r) return r;
if (mi(this))
if (
!yi(this, {
object: this.proxy_ || this.target_,
name: e,
type: zi,
newValue: void 0,
})
)
return null;
t.name || (t.name = "ObservableObject.key"),
(t.context = this.proxy_ || this.target_);
var i = Ji(e),
o = {
configurable: !gr.safeDescriptors || this.isPlainObject_,
enumerable: !1,
get: i.get,
set: i.set,
};
if (n) {
if (!Reflect.defineProperty(this.target_, e, o)) return !1;
} else vt(this.target_, e, o);
this.values_.set(e, new er(t)),
this.notifyPropertyAddition_(e, void 0);
} finally {
xr();
}
return !0;
}),
(t.delete_ = function (e, t) {
if ((void 0 === t && (t = !1), !It(this.target_, e))) return !0;
if (
mi(this) &&
!yi(this, {
object: this.proxy_ || this.target_,
name: e,
type: Yi,
})
)
return null;
try {
var n, r;
_r();
var i,
o = bi(this),
a = this.values_.get(e),
s = void 0;
if (!a && o)
s = null == (i = pt(this.target_, e)) ? void 0 : i.value;
if (t) {
if (!Reflect.deleteProperty(this.target_, e)) return !1;
} else delete this.target_[e];
if (
(a &&
(this.values_.delete(e),
a instanceof Qn && (s = a.value_),
Sr(a)),
this.keysAtom_.reportChanged(),
null == (n = this.pendingKeys_) ||
null == (r = n.get(e)) ||
r.set(e in this.target_),
o)
) {
var l = {
type: Yi,
observableKind: "object",
object: this.proxy_ || this.target_,
debugObjectName: this.name_,
oldValue: s,
name: e,
};
0, o && _i(this, l);
}
} finally {
xr();
}
return !0;
}),
(t.observe_ = function (e, t) {
return wi(this, e);
}),
(t.intercept_ = function (e) {
return gi(this, e);
}),
(t.notifyPropertyAddition_ = function (e, t) {
var n,
r,
i = bi(this);
if (i) {
var o = i
? {
type: zi,
observableKind: "object",
debugObjectName: this.name_,
object: this.proxy_ || this.target_,
name: e,
newValue: t,
}
: null;
0, i && _i(this, o);
}
null == (n = this.pendingKeys_) ||
null == (r = n.get(e)) ||
r.set(!0),
this.keysAtom_.reportChanged();
}),
(t.ownKeys_ = function () {
return this.keysAtom_.reportObserved(), Dt(this.target_);
}),
(t.keys_ = function () {
return this.keysAtom_.reportObserved(), Object.keys(this.target_);
}),
e
);
})();
function Qi(e, t) {
var n;
if (It(e, Qt)) return e;
var r =
null != (n = null == t ? void 0 : t.name) ? n : "ObservableObject",
i = new $i(
e,
new Map(),
String(r),
(function (e) {
var t;
return e
? null != (t = e.defaultDecorator)
? t
: wn(e)
: void 0;
})(t)
);
return jt(e, Qt, i), e;
}
var Xi = At("ObservableObjectAdministration", $i);
function Ji(e) {
return (
Ki[e] ||
(Ki[e] = {
get: function () {
return this[Qt].getObservablePropValue_(e);
},
set: function (t) {
return this[Qt].setObservablePropValue_(e, t);
},
})
);
}
function Zi(e) {
return !!Tt(e) && Xi(e[Qt]);
}
function eo(e, t, n) {
var r;
null == (r = e.target_[Kt]) || delete r[n];
}
function to(e, t, n) { }
var no,
ro,
io = lo(0),
oo = 0,
ao = function () { };
(no = ao),
(ro = Array.prototype),
Object.setPrototypeOf
? Object.setPrototypeOf(no.prototype, ro)
: void 0 !== no.prototype.__proto__
? (no.prototype.__proto__ = ro)
: (no.prototype = ro);
var so = (function (e, t, n) {
function r(t, n, r, i) {
var o;
void 0 === r && (r = "ObservableArray"),
void 0 === i && (i = !1),
(o = e.call(this) || this);
var a = new Ti(r, n, i, !0);
if (((a.proxy_ = Ht(o)), Ot(Ht(o), Qt, a), t && t.length)) {
var s = Kn(!0);
o.spliceWithArray(0, 0, t), Yn(s);
}
return Object.defineProperty(Ht(o), "0", io), o;
}
Gt(r, e);
var i = r.prototype;
return (
(i.concat = function () {
this[Qt].atom_.reportObserved();
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return Array.prototype.concat.apply(
this.slice(),
t.map(function (e) {
return Mi(e) ? e.slice() : e;
})
);
}),
(i[n] = function () {
var e = this,
t = 0;
return wo({
next: function () {
return t < e.length
? { value: e[t++], done: !1 }
: { done: !0, value: void 0 };
},
});
}),
Ut(r, [
{
key: "length",
get: function () {
return this[Qt].getArrayLength_();
},
set: function (e) {
this[Qt].setArrayLength_(e);
},
},
{
key: t,
get: function () {
return "Array";
},
},
]),
r
);
})(ao, Symbol.toStringTag, Symbol.iterator);
function lo(e) {
return {
enumerable: !1,
configurable: !0,
get: function () {
return this[Qt].get_(e);
},
set: function (t) {
this[Qt].set_(e, t);
},
};
}
function uo(e) {
vt(so.prototype, "" + e, lo(e));
}
function co(e) {
if (e > oo) {
for (var t = oo; t < e + 100; t++) uo(t);
oo = e;
}
}
function fo(e, t, n) {
return new so(e, t, n);
}
function ho(e, t) {
if ("object" === typeof e && null !== e) {
if (Mi(e)) return void 0 !== t && ct(23), e[Qt].atom_;
if (qi(e)) return e[Qt];
if (Wi(e)) {
if (void 0 === t) return e.keysAtom_;
var n = e.data_.get(t) || e.hasMap_.get(t);
return n || ct(25, t, vo(e)), n;
}
if (Zi(e)) {
if (!t) return ct(26);
var r = e[Qt].values_.get(t);
return r || ct(27, t, vo(e)), r;
}
if (Jt(e) || tr(e) || jr(e)) return e;
} else if (St(e) && jr(e[Qt])) return e[Qt];
ct(28);
}
function po(e, t) {
return (
e || ct(29),
void 0 !== t
? po(ho(e, t))
: Jt(e) || tr(e) || jr(e) || Wi(e) || qi(e)
? e
: e[Qt]
? e[Qt]
: void ct(24, e)
);
}
function vo(e, t) {
var n;
if (void 0 !== t) n = ho(e, t);
else {
if (Br(e)) return e.name;
n = Zi(e) || Wi(e) || qi(e) ? po(e) : ho(e);
}
return n.name_;
}
Object.entries(Ni).forEach(function (e) {
var t = e[0],
n = e[1];
"concat" !== t && jt(so.prototype, t, n);
}),
co(1e3);
var mo = mt.toString;
function go(e, t, n) {
return void 0 === n && (n = -1), yo(e, t, n);
}
function yo(e, t, n, r, i) {
if (e === t) return 0 !== e || 1 / e === 1 / t;
if (null == e || null == t) return !1;
if (e !== e) return t !== t;
var o = typeof e;
if ("function" !== o && "object" !== o && "object" != typeof t)
return !1;
var a = mo.call(e);
if (a !== mo.call(t)) return !1;
switch (a) {
case "[object RegExp]":
case "[object String]":
return "" + e === "" + t;
case "[object Number]":
return +e !== +e
? +t !== +t
: 0 === +e
? 1 / +e === 1 / t
: +e === +t;
case "[object Date]":
case "[object Boolean]":
return +e === +t;
case "[object Symbol]":
return (
"undefined" !== typeof Symbol &&
Symbol.valueOf.call(e) === Symbol.valueOf.call(t)
);
case "[object Map]":
case "[object Set]":
n >= 0 && n++;
}
(e = bo(e)), (t = bo(t));
var s = "[object Array]" === a;
if (!s) {
if ("object" != typeof e || "object" != typeof t) return !1;
var l = e.constructor,
u = t.constructor;
if (
l !== u &&
!(St(l) && l instanceof l && St(u) && u instanceof u) &&
"constructor" in e &&
"constructor" in t
)
return !1;
}
if (0 === n) return !1;
n < 0 && (n = -1), (i = i || []);
for (var c = (r = r || []).length; c--;)
if (r[c] === e) return i[c] === t;
if ((r.push(e), i.push(t), s)) {
if ((c = e.length) !== t.length) return !1;
for (; c--;) if (!yo(e[c], t[c], n - 1, r, i)) return !1;
} else {
var d,
f = Object.keys(e);
if (((c = f.length), Object.keys(t).length !== c)) return !1;
for (; c--;)
if (!It(t, (d = f[c])) || !yo(e[d], t[d], n - 1, r, i)) return !1;
}
return r.pop(), i.pop(), !0;
}
function bo(e) {
return Mi(e)
? e.slice()
: Pt(e) || Wi(e) || Lt(e) || qi(e)
? Array.from(e.entries())
: e;
}
function wo(e) {
return (e[Symbol.iterator] = _o), e;
}
function _o() {
return this;
}
if (
(["Symbol", "Map", "Set"].forEach(function (e) {
"undefined" === typeof ft()[e] &&
ct(
"MobX requires global '" + e + "' to be available or polyfilled"
);
}),
"object" === typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ &&
__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
spy: function (e) {
return (
console.warn("[mobx.spy] Is a no-op in production builds"),
function () { }
);
},
extras: { getDebugName: vo },
$mobx: Qt,
}),
!e.useState)
)
throw new Error("mobx-react-lite requires React with Hooks support");
if (!xi)
throw new Error(
"mobx-react-lite@3 requires mobx at least version 6 to be available"
);
var xo = n(168);
function ko(e) {
e();
}
function So(e) {
return Xr(e);
}
var Eo =
"undefined" === typeof FinalizationRegistry
? void 0
: FinalizationRegistry;
function To(e) {
return {
reaction: e,
mounted: !1,
changedBeforeMount: !1,
cleanAt: Date.now() + Co,
};
}
var Co = 1e4;
var No = function (e) {
var t = "function" === typeof Symbol && Symbol.iterator,
n = t && e[t],
r = 0;
if (n) return n.call(e);
if (e && "number" === typeof e.length)
return {
next: function () {
return (
e && r >= e.length && (e = void 0),
{ value: e && e[r++], done: !e }
);
},
};
throw new TypeError(
t ? "Object is not iterable." : "Symbol.iterator is not defined."
);
};
var jo = Eo
? (function (e) {
var t = new Map(),
n = 1,
r = new e(function (e) {
var n = t.get(e);
n && (n.reaction.dispose(), t.delete(e));
});
return {
addReactionToTrack: function (e, i, o) {
var a = n++;
return (
r.register(o, a, e),
(e.current = To(i)),
(e.current.finalizationRegistryCleanupToken = a),
t.set(a, e.current),
e.current
);
},
recordReactionAsCommitted: function (e) {
r.unregister(e),
e.current &&
e.current.finalizationRegistryCleanupToken &&
t.delete(e.current.finalizationRegistryCleanupToken);
},
forceCleanupTimerToRunNowForTests: function () { },
resetCleanupScheduleForTests: function () { },
};
})(Eo)
: (function () {
var e,
t = new Set();
function n() {
void 0 === e && (e = setTimeout(r, 1e4));
}
function r() {
e = void 0;
var r = Date.now();
t.forEach(function (e) {
var n = e.current;
n &&
r >= n.cleanAt &&
(n.reaction.dispose(), (e.current = null), t.delete(e));
}),
t.size > 0 && n();
}
return {
addReactionToTrack: function (e, r, i) {
var o;
return (e.current = To(r)), (o = e), t.add(o), n(), e.current;
},
recordReactionAsCommitted: function (e) {
t.delete(e);
},
forceCleanupTimerToRunNowForTests: function () {
e && (clearTimeout(e), r());
},
resetCleanupScheduleForTests: function () {
var n, r;
if (t.size > 0) {
try {
for (var i = No(t), o = i.next(); !o.done; o = i.next()) {
var a = o.value,
s = a.current;
s && (s.reaction.dispose(), (a.current = null));
}
} catch (l) {
n = { error: l };
} finally {
try {
o && !o.done && (r = i.return) && r.call(i);
} finally {
if (n) throw n.error;
}
}
t.clear();
}
e && (clearTimeout(e), (e = void 0));
},
};
})(),
Oo = jo.addReactionToTrack,
Ao = jo.recordReactionAsCommitted,
Po =
(jo.resetCleanupScheduleForTests,
jo.forceCleanupTimerToRunNowForTests,
!1);
function Lo() {
return Po;
}
var Ro = function (e, t) {
var n = "function" === typeof Symbol && e[Symbol.iterator];
if (!n) return e;
var r,
i,
o = n.call(e),
a = [];
try {
for (; (void 0 === t || t-- > 0) && !(r = o.next()).done;)
a.push(r.value);
} catch (s) {
i = { error: s };
} finally {
try {
r && !r.done && (n = o.return) && n.call(o);
} finally {
if (i) throw i.error;
}
}
return a;
};
function Do(e) {
return "observer".concat(e);
}
var Mo = function () { };
function Io() {
return new Mo();
}
function zo(t, n) {
if ((void 0 === n && (n = "observed"), Lo())) return t();
var r = Ro(e.useState(Io), 1)[0],
i = Ro(e.useState(), 2)[1],
o = function () {
return i([]);
},
a = e.useRef(null);
if (!a.current)
var s = new Er(Do(n), function () {
l.mounted ? o() : (l.changedBeforeMount = !0);
}),
l = Oo(a, s, r);
var u,
c,
d = a.current.reaction;
if (
(e.useDebugValue(d, So),
e.useEffect(function () {
return (
Ao(a),
a.current
? ((a.current.mounted = !0),
a.current.changedBeforeMount &&
((a.current.changedBeforeMount = !1), o()))
: ((a.current = {
reaction: new Er(Do(n), function () {
o();
}),
mounted: !0,
changedBeforeMount: !1,
cleanAt: 1 / 0,
}),
o()),
function () {
a.current.reaction.dispose(), (a.current = null);
}
);
}, []),
d.track(function () {
try {
u = t();
} catch (e) {
c = e;
}
}),
c)
)
throw c;
return u;
}
var Fo = "function" === typeof Symbol && Symbol.for,
Uo = Fo
? Symbol.for("react.forward_ref")
: "function" === typeof e.forwardRef &&
(0, e.forwardRef)(function (e) {
return null;
}).$$typeof,
Bo = Fo
? Symbol.for("react.memo")
: "function" === typeof e.memo &&
(0, e.memo)(function (e) {
return null;
}).$$typeof;
function Go(t, n) {
var r;
if (Bo && t.$$typeof === Bo)
throw new Error(
"[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you."
);
if (Lo()) return t;
var i =
null !== (r = null === n || void 0 === n ? void 0 : n.forwardRef) &&
void 0 !== r &&
r,
o = t,
a = t.displayName || t.name;
if (
Uo &&
t.$$typeof === Uo &&
((i = !0), "function" !== typeof (o = t.render))
)
throw new Error(
"[mobx-react-lite] `render` property of ForwardRef was not a function"
);
var s,
l,
u = function (e, t) {
return zo(function () {
return o(e, t);
}, a);
};
return (
"" !== a && (u.displayName = a),
t.contextTypes && (u.contextTypes = t.contextTypes),
i && (u = (0, e.forwardRef)(u)),
(u = (0, e.memo)(u)),
(s = t),
(l = u),
Object.keys(s).forEach(function (e) {
Wo[e] ||
Object.defineProperty(
l,
e,
Object.getOwnPropertyDescriptor(s, e)
);
}),
u
);
}
var Wo = {
$$typeof: !0,
render: !0,
compare: !0,
type: !0,
displayName: !0,
};
var Ho, Vo;
function qo(e) {
W(1, arguments);
var t = K(e);
return t.setHours(0, 0, 0, 0), t;
}
function Ko(e, t) {
W(2, arguments);
var n = qo(e),
r = qo(t);
return n.getTime() === r.getTime();
}
!(function (e) {
e || (e = ko), $r({ reactionScheduler: e });
})(xo.unstable_batchedUpdates),
(function (e) {
(e[(e.New = 0)] = "New"),
(e[(e.Playing = 1)] = "Playing"),
(e[(e.Won = 2)] = "Won"),
(e[(e.Lost = 3)] = "Lost");
})(Ho || (Ho = {})),
(function (e) {
(e[(e.Game = 0)] = "Game"),
(e[(e.About = 1)] = "About"),
(e[(e.Settings = 2)] = "Settings"),
(e[(e.Statistics = 3)] = "Statistics");
})(Vo || (Vo = {}));
var Yo = 1e3,
$o = (function () {
function e(t) {
z(this, e),
(this.root = void 0),
(this.gameMode = void 0),
(this.guesses = void 0),
(this.currentGuess = void 0),
(this.target = void 0),
(this.gameLength = void 0),
(this.gameStage = void 0),
(this.tourIndex = void 0),
(this.tourWords = void 0),
(this.tourGuesses = void 0),
(this.rand = void 0),
(this.keyboard_listener = void 0),
(this.root = t),
(this.guesses = []),
(this.currentGuess = ""),
(this.target = { orig: "crane", safe: "crane" }),
(this.gameLength = 5),
(this.gameStage = Ho.New),
(this.tourIndex = 0),
(this.tourWords = []),
(this.tourGuesses = []),
(this.rand = Math.random),
(this.keyboard_listener = this._processKeyboardEvent.bind(this)),
(this.gameMode = p.Random);
}
return (
I(e, [
{
key: "init",
value: function () {
xi(this, {
guesses: Rn,
currentGuess: Rn,
target: Rn,
gameLength: Rn,
gameStage: Rn,
tourIndex: Rn,
tourWords: Rn,
tourGuesses: Rn,
rand: Rn,
gameMode: Rn,
tourGuessed: zn,
setCurrentGuess: zr,
setGuesses: zr,
setTarget: zr,
setGameLength: zr,
setGameStage: zr,
setTourIndex: zr,
appInit: zr,
resetGame: zr,
giveUpGame: zr,
nextRandomGame: zr,
nextTourGame: zr,
addResultToTourGuesses: zr,
setTourWords: zr,
setGameMode: zr,
giveUpTour: zr,
loadDailySave: zr,
}),
this._setupListener();
},
},
{
key: "appInit",
value: function () {
var e = u(
(function () {
try {
var e = k("challenge") || "";
return [y((e = e.replace(/[^\x00-\x7F]/g, ""))), !1];
} catch (t) {
return console.warn(t), ["", !0];
}
})(),
2
),
t = e[0],
n = e[1],
r = u(
(function () {
try {
var e = k("tour");
return e
? [
y((e = e.replace(/[^\x00-\x7F]/g, ""))).split(
";"
),
!1,
]
: [[], !1];
} catch (t) {
return console.warn(t), [[], !0];
}
})(),
2
),
i = r[0],
o = r[1],
a =
"today" ===
(function (e) {
var t;
return (
(null === (t = document.getElementById(e)) ||
void 0 === t
? void 0
: t.getAttribute("mode")) || ""
);
})("root"),
s = (function (e) {
var t,
n =
null === (t = document.getElementById(e)) ||
void 0 === t
? void 0
: t.getAttribute("len");
return n ? Number(n) : void 0;
})("root"),
l = t
? p.Challenge
: i.length > 0
? p.Tournament
: p.Random;
if (
(this.setGameLength(s || 5),
this.setGameMode(l),
n &&
this.root.UiStore.displayHint(
ot.loc.msg.challenge_err_invalid
),
o &&
this.root.UiStore.displayHint(ot.loc.msg.tour_err_param),
n ||
o ||
this.root.UiStore.displayHint(
ot.loc.msg.challenge_err_make
),
l !== p.Challenge || n)
)
if (l !== p.Tournament || o)
if (!a || this.root.PersistenceStore.isDailyFinished)
if (
this.root.PersistenceStore.modeChosen !== p.Today ||
s
)
if (l !== p.Random);
else {
var c = L(ot.targets, this.gameLength, this.rand),
d = ot.loc
.charsReplacer(c)
.toLocaleLowerCase(ot.lang);
this.setTarget({ orig: c, safe: d });
}
else this.loadDailySave();
else this.loadDailySave();
else {
this.setTourWords(i);
var f = this.tourWords[this.tourIndex],
h = ot.loc.charsReplacer(f).toLocaleLowerCase(ot.lang);
this.setTarget({ orig: f, safe: h });
}
else {
this.setGameLength(t.length);
var v = t,
m = ot.loc.charsReplacer(v).toLocaleLowerCase(ot.lang);
this.setTarget({ orig: v, safe: m });
}
},
},
{
key: "loadDailySave",
value: function () {
this.setGameMode(p.Today),
(function (e) {
return W(1, arguments), Ko(e, Date.now());
})(
new Date(this.root.PersistenceStore.dailySave.dateStamp)
) || this.root.PersistenceStore.resetDailySave();
var e =
this.root.PersistenceStore.dailySave.gamesList[ot.lang];
this.resetGame(),
this.setTarget(tt.generateTodayTarget()),
this.setGameStage(e.gameStage),
this.setGuesses(e.guesses),
this.setCurrentGuess(e.currentGuess);
},
},
{
key: "resetGame",
value: function () {
this.setGameStage(Ho.New),
this.setGuesses([]),
this.setCurrentGuess(""),
this.setTarget({ orig: "", safe: "" });
},
},
{
key: "giveUpGame",
value: function () {
this.setGameStage(Ho.Lost),
this.root.PersistenceStore.addGameToStats(
{ win: !1, turn: this.guesses.length },
this.gameMode
),
this.root.UiStore.setShowGameResult(!0),
this.gameMode === p.Today &&
this.root.PersistenceStore.setGameStage(this.gameStage);
},
},
{
key: "giveUpTour",
value: function () {
if (this.tourIndex < this.tourWords.length - 1)
return (
this.addResultToTourGuesses(!1), void this.nextTourGame()
);
this.addResultToTourGuesses(!1),
this.setGameStage(Ho.Lost),
this.root.UiStore.setShowTourResult(!0);
},
},
{
key: "nextTourGame",
value: function () {
if (this.tourIndex < this.tourWords.length - 1) {
this.resetGame(), this.setTourIndex(this.tourIndex + 1);
var e = this.tourWords[this.tourIndex],
t = ot.loc.charsReplacer(e).toLocaleLowerCase(ot.lang);
this.setTarget({ orig: e, safe: t });
}
},
},
{
key: "nextRandomGame",
value: function () {
window.history.replaceState(
{},
document.title,
window.location.pathname
),
this.root.UiStore.setShowGameResult(!1),
this.root.UiStore.setShowTourResult(!1),
this.setGameMode(p.Random),
this.resetGame();
var e = L(ot.targets, this.gameLength, this.rand),
t = ot.loc.charsReplacer(e).toLocaleLowerCase(ot.lang);
this.setTarget({ orig: e, safe: t });
},
},
{
key: "addResultToTourGuesses",
value: function (e) {
this.tourGuesses.push(e);
},
},
{
key: "checkForWinOrLose",
value: function () {
var e = this;
return this.currentGuess === this.target.safe
? this.gameMode === p.Tournament
? (this.tourIndex <= this.tourWords.length - 1 &&
this.addResultToTourGuesses(!0),
void (
this.tourIndex === this.tourWords.length - 1 &&
(this.setGameStage(Ho.Won),
setTimeout(function () {
e.root.UiStore.setShowTourResult(!0);
}, Yo))
))
: (this.setGameStage(Ho.Won),
setTimeout(function () {
e.root.UiStore.setShowGameResult(!0);
}, Yo),
void this.root.PersistenceStore.addGameToStats(
{ win: !0, turn: this.guesses.length },
this.gameMode
))
: 6 === this.guesses.length
? this.gameMode === p.Tournament
? (this.tourIndex <= this.tourWords.length - 1 &&
(this.addResultToTourGuesses(!1),
this.nextTourGame()),
void (
this.tourIndex === this.tourWords.length - 1 &&
(this.setGameStage(Ho.Lost),
setTimeout(function () {
e.root.UiStore.setShowTourResult(!0);
}, Yo))
))
: (this.setGameStage(Ho.Lost),
setTimeout(function () {
e.root.UiStore.setShowGameResult(!0);
}, Yo),
void this.root.PersistenceStore.addGameToStats(
{ win: !1, turn: this.guesses.length },
this.gameMode
))
: void 0;
},
},
{
key: "onKey",
value: function (e) {
switch (e) {
case "Backspace":
return void this._onBackspace();
case "Enter":
return void this._onEnter();
default:
return void this._onChar(e);
}
},
},
{
key: "_setupListener",
value: function () {
document.addEventListener("keydown", this.keyboard_listener);
},
},
{
key: "_processKeyboardEvent",
value: function (e) {
if (
!this.root.UiStore.showGenerator &&
!this.root.UiStore.showGeneratorTour &&
6 !== this.guesses.length
) {
var t = ot.loc.charsReplacer(e.key);
this.onKey(t);
}
},
},
{
key: "_onEnter",
value: function () {
if (this.currentGuess.length === this.target.safe.length)
if (this.root.UiStore.isDictLoading)
this.root.UiStore.displayHint(ot.loc.msg.dictionary_err);
else if (B.checkForWord(this.currentGuess)) {
var e,
t = b(this.guesses);
try {
for (t.s(); !(e = t.n()).done;) {
var n = w(e.value, this.target.safe),
r = _(
this.root.PersistenceStore.difficulty,
n,
this.currentGuess
);
if (r) return void this.root.UiStore.displayHint(r);
}
} catch (i) {
t.e(i);
} finally {
t.f();
}
this.root.UiStore.toggleReveal(),
this.setGuesses(
this.guesses.concat([this.currentGuess])
),
this.checkForWinOrLose(),
this.setCurrentGuess(""),
this.gameMode === p.Today &&
(this.root.PersistenceStore.setGuesses(this.guesses),
this.root.PersistenceStore.setCurrentGuess(
this.currentGuess
),
this.root.PersistenceStore.setGameStage(
this.gameStage
));
} else
this.root.UiStore.displayHint(ot.loc.msg.invalid_word);
else this.root.UiStore.displayHint(ot.loc.msg.too_short);
},
},
{
key: "_onBackspace",
value: function () {
this.setCurrentGuess(this.currentGuess.slice(0, -1)),
this.gameMode === p.Today &&
this.root.PersistenceStore.setCurrentGuess(
this.currentGuess
);
},
},
{
key: "_onChar",
value: function (e) {
this.gameStage !== Ho.Lost &&
this.gameStage !== Ho.Won &&
this.currentGuess.length !== this.target.safe.length &&
ot.isValidKey(e.toLowerCase()) &&
(this.setCurrentGuess(
this.currentGuess +
e
.toLocaleLowerCase(ot.lang)
.slice(0, this.target.safe.length)
),
this.gameMode === p.Today &&
this.root.PersistenceStore.setCurrentGuess(
this.currentGuess
));
},
},
{
key: "setCurrentGuess",
value: function (e) {
this.currentGuess = e;
},
},
{
key: "setGuesses",
value: function (e) {
this.guesses = e;
},
},
{
key: "setGameStage",
value: function (e) {
this.gameStage = e;
},
},
{
key: "setTarget",
value: function (e) {
console.log(e);
this.target = e;
},
},
{
key: "setGameLength",
value: function (e) {
this.gameLength = e;
},
},
{
key: "setTourIndex",
value: function (e) {
this.tourIndex = e;
},
},
{
key: "setTourWords",
value: function (e) {
this.tourWords = e;
},
},
{
key: "setGameMode",
value: function (e) {
this.gameMode = e;
},
},
{
key: "tourGuessed",
get: function () {
return this.tourGuesses.filter(function (e) {
return e;
}).length;
},
},
]),
e
);
})(),
Qo = n(738),
Xo = n.n(Qo),
Jo = new Map(),
Zo = {},
ea = {},
ta = function (e) {
return Boolean(e) && !1 === Array.isArray(e) && "object" === typeof e;
},
na = function (e, t, n) {
void 0 === n && (n = "");
},
ra = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
l(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
l(r.throw(e));
} catch (t) {
o(t);
}
}
function l(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
l((r = r.apply(e, t || [])).next());
});
},
ia = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" === typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n) throw new TypeError("Generator is already executing.");
for (; a;)
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r.return
: o[0]
? r.throw || ((i = r.return) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (((r = 0), i && (o = [2 & o[0], i.value]), o[0])) {
case 0:
case 1:
i = o;
break;
case 4:
return a.label++, { value: o[1], done: !1 };
case 5:
a.label++, (r = o[1]), (o = [0]);
continue;
case 7:
(o = a.ops.pop()), a.trys.pop();
continue;
default:
if (
!(i = (i = a.trys).length > 0 && i[i.length - 1]) &&
(6 === o[0] || 2 === o[0])
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
(a.label = i[1]), (i = o);
break;
}
if (i && a.label < i[2]) {
(a.label = i[2]), a.ops.push(o);
break;
}
i[2] && a.ops.pop(), a.trys.pop();
continue;
}
o = t.call(e, a);
} catch (s) {
(o = [6, s]), (r = 0);
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
oa = (function () {
function e(e) {
this.options = e;
}
return (
(e.prototype.setItem = function (e, t) {
var n;
return ra(this, void 0, void 0, function () {
var r, i, o, a, s, l;
return ia(this, function (u) {
switch (u.label) {
case 0:
return (
(r = this.options),
(i = r.stringify),
(o = void 0 === i || i),
(a = r.debugMode),
void 0 !== a && a,
(s = this.options.expireIn
? Object.assign({}, t, {
__mps__: {
expireInTimestamp:
((c = this.options.expireIn),
new Date().getTime() + c),
},
})
: t),
(l = o ? JSON.stringify(s) : s),
na(0, "".concat(e, " - setItem:"), l),
[
4,
null === (n = this.options.storage) || void 0 === n
? void 0
: n.setItem(e, l),
]
);
case 1:
return u.sent(), [2];
}
var c;
});
});
}),
(e.prototype.getItem = function (e) {
var t, n;
return ra(this, void 0, void 0, function () {
var r, i, o, a, s, l, u;
return ia(this, function (c) {
switch (c.label) {
case 0:
return (
(r = this.options),
(i = r.removeOnExpiration),
(o = void 0 === i || i),
(a = r.debugMode),
void 0 !== a && a,
[
4,
null === (t = this.options.storage) || void 0 === t
? void 0
: t.getItem(e),
]
);
case 1:
s = c.sent();
try {
l = JSON.parse(s) || {};
} catch (d) {
l = s || {};
}
return (
(u = (function (e) {
var t = new Date().getTime();
return new Date(e).getTime() <= t;
})(
null === (n = l.__mps__) || void 0 === n
? void 0
: n.expireInTimestamp
)),
na(0, "".concat(e, " - hasExpired"), u),
u && o ? [4, this.removeItem(e)] : [3, 3]
);
case 2:
c.sent(), (c.label = 3);
case 3:
return (
(l = u ? {} : l),
na(0, "".concat(e, " - (getItem):"), l),
[2, l]
);
}
});
});
}),
(e.prototype.removeItem = function (e) {
var t;
return ra(this, void 0, void 0, function () {
var n;
return ia(this, function (r) {
switch (r.label) {
case 0:
return (
(n = this.options.debugMode),
void 0 !== n && n,
na(
0,
"".concat(e, " - (removeItem): storage was removed")
),
[
4,
null === (t = this.options.storage) || void 0 === t
? void 0
: t.removeItem(e),
]
);
case 1:
return r.sent(), [2];
}
});
});
}),
e
);
})(),
aa = function (e) {
return e.reduce(function (e, t) {
return "string" === typeof t
? (e.push({
key: t,
serialize: function (e) {
return e;
},
deserialize: function (e) {
return e;
},
}),
e)
: (
ta((n = t))
? ["key", "serialize", "deserialize"].every(function (e) {
return (
!(!n.hasOwnProperty(e) || "undefined" === typeof e) ||
(na(
Zo.debugMode,
"".concat(e, " not found in SerializableProperty"),
{ key: e, obj: n }
),
!1)
);
})
: (na(Zo.debugMode, 0, { obj: n }), 0)
)
? (e.push(t), e)
: e;
var n;
}, []);
},
sa = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
l(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
l(r.throw(e));
} catch (t) {
o(t);
}
}
function l(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
l((r = r.apply(e, t || [])).next());
});
},
la = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" === typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n) throw new TypeError("Generator is already executing.");
for (; a;)
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r.return
: o[0]
? r.throw || ((i = r.return) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (((r = 0), i && (o = [2 & o[0], i.value]), o[0])) {
case 0:
case 1:
i = o;
break;
case 4:
return a.label++, { value: o[1], done: !1 };
case 5:
a.label++, (r = o[1]), (o = [0]);
continue;
case 7:
(o = a.ops.pop()), a.trys.pop();
continue;
default:
if (
!(i = (i = a.trys).length > 0 && i[i.length - 1]) &&
(6 === o[0] || 2 === o[0])
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
(a.label = i[1]), (i = o);
break;
}
if (i && a.label < i[2]) {
(a.label = i[2]), a.ops.push(o);
break;
}
i[2] && a.ops.pop(), a.trys.pop();
continue;
}
o = t.call(e, a);
} catch (s) {
(o = [6, s]), (r = 0);
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
ua = (function () {
function e(e, t, n) {
var r, i, o, a, s, l, u;
void 0 === n && (n = {}),
(this.cancelWatch = null),
(this.properties = []),
(this.reactionOptions = {}),
(this.storageAdapter = null),
(this.target = null),
(this.debugMode = !1),
(this.isHydrated = !1),
(this.isPersisting = !1),
(this.storageName = ""),
(this.target = e),
(this.storageName = t.name),
(this.properties = aa(t.properties)),
(this.reactionOptions = Object.assign(
{ fireImmediately: !0 },
ea,
n
)),
(this.debugMode =
null !==
(i =
null !== (r = t.debugMode) && void 0 !== r
? r
: Zo.debugMode) &&
void 0 !== i &&
i),
(this.storageAdapter = new oa({
expireIn:
null !== (o = t.expireIn) && void 0 !== o ? o : Zo.expireIn,
removeOnExpiration:
null ===
(s =
null !== (a = t.removeOnExpiration) && void 0 !== a
? a
: Zo.removeOnExpiration) ||
void 0 === s ||
s,
stringify:
null ===
(u =
null !== (l = t.stringify) && void 0 !== l
? l
: Zo.stringify) ||
void 0 === u ||
u,
storage: t.storage ? t.storage : Zo.storage,
debugMode: this.debugMode,
})),
xi(
this,
{
clearPersistedStore: zr,
hydrateStore: zr,
isHydrated: Rn,
isPersisting: Rn,
pausePersisting: zr,
startPersisting: zr,
stopPersisting: zr,
},
{ autoBind: !0, deep: !1 }
),
this.storageAdapter.options.storage,
this.storageName,
na(
this.debugMode,
"".concat(this.storageName, " - (makePersistable)"),
{
properties: this.properties,
storageAdapter: this.storageAdapter,
reactionOptions: this.reactionOptions,
}
);
}
return (
(e.prototype.init = function () {
return sa(this, void 0, void 0, function () {
return la(this, function (e) {
switch (e.label) {
case 0:
return [4, this.hydrateStore()];
case 1:
return e.sent(), this.startPersisting(), [2, this];
}
});
});
}),
(e.prototype.hydrateStore = function () {
return sa(this, void 0, void 0, function () {
var e,
t,
n,
r = this;
return la(this, function (i) {
switch (i.label) {
case 0:
return (
(e = Boolean(this.cancelWatch)),
this.isPersisting && this.pausePersisting(),
Ur(function () {
(r.isHydrated = !1),
na(
r.debugMode,
"".concat(
r.storageName,
" - (hydrateStore) isHydrated:"
),
r.isHydrated
);
}),
this.storageAdapter && this.target
? [4, this.storageAdapter.getItem(this.storageName)]
: [3, 2]
);
case 1:
(t = i.sent()),
(n = this.target),
t &&
Ur(function () {
r.properties.forEach(function (e) {
var r;
if (
[
n.hasOwnProperty(e.key),
"undefined" !== typeof t[e.key],
].every(Boolean)
) {
var i = t[e.key];
n[e.key] instanceof Gi &&
((r = i),
Array.isArray(r) &&
r.every(function (e) {
return Array.isArray(e);
}))
? (n[e.key] = e.deserialize(new Map(i)))
: (n[e.key] = e.deserialize(i));
}
});
}),
(i.label = 2);
case 2:
return (
Ur(function () {
(r.isHydrated = !0),
na(
r.debugMode,
"".concat(r.storageName, " - isHydrated:"),
r.isHydrated
);
}),
e && this.startPersisting(),
[2]
);
}
});
});
}),
(e.prototype.startPersisting = function () {
var e = this;
if (this.storageAdapter && this.target && !this.cancelWatch) {
var t = this.target;
(this.cancelWatch = (function (e, t, n) {
var r;
void 0 === n && (n = yt);
var i,
o,
a,
s,
l = null != (r = n.name) ? r : "Reaction",
u = zr(
l,
n.onError
? ((i = n.onError),
(o = t),
function () {
try {
return o.apply(this, arguments);
} catch (e) {
i.call(this, e);
}
})
: t
),
c = !n.scheduler && !n.delay,
d = Hr(n),
f = !0,
h = !1,
p = n.compareStructural
? en.structural
: n.equals || en.default,
v = new Er(
l,
function () {
f || c ? m() : h || ((h = !0), d(m));
},
n.onError,
n.requiresObservable
);
function m() {
if (((h = !1), !v.isDisposed_)) {
var t = !1;
v.track(function () {
var n = qn(!1, function () {
return e(v);
});
(t = f || !p(a, n)), (s = a), (a = n);
}),
((f && n.fireImmediately) || (!f && t)) && u(a, s, v),
(f = !1);
}
}
return v.schedule_(), v.getDisposer_();
})(
function () {
var n = {};
return (
e.properties.forEach(function (e) {
var r,
i,
o = ((r = t), (i = e.key), ai(r, i)),
a = Br(t[e.key]);
if ((String(e.key), String(e.key), !o && !a)) {
var s = e.serialize(t[e.key]);
if (s instanceof Gi) {
var l = [];
s.forEach(function (e, t) {
l.push([t, di(e)]);
}),
(s = l);
}
n[e.key] = di(s);
}
}),
n
);
},
function (t) {
return sa(e, void 0, void 0, function () {
return la(this, function (e) {
switch (e.label) {
case 0:
return this.storageAdapter
? [
4,
this.storageAdapter.setItem(
this.storageName,
t
),
]
: [3, 2];
case 1:
e.sent(), (e.label = 2);
case 2:
return [2];
}
});
});
},
this.reactionOptions
)),
(this.isPersisting = !0),
na(
this.debugMode,
"".concat(
this.storageName,
" - (startPersisting) isPersisting:"
),
this.isPersisting
);
}
}),
(e.prototype.pausePersisting = function () {
(this.isPersisting = !1),
na(
this.debugMode,
"".concat(
this.storageName,
" - pausePersisting (isPersisting):"
),
this.isPersisting
),
this.cancelWatch &&
(this.cancelWatch(), (this.cancelWatch = null));
}),
(e.prototype.stopPersisting = function () {
this.pausePersisting(),
na(
this.debugMode,
"".concat(this.storageName, " - (stopPersisting)")
),
Jo.delete(this.target),
(this.cancelWatch = null),
(this.properties = []),
(this.reactionOptions = {}),
(this.storageAdapter = null),
(this.target = null);
}),
(e.prototype.clearPersistedStore = function () {
return sa(this, void 0, void 0, function () {
return la(this, function (e) {
switch (e.label) {
case 0:
return this.storageAdapter
? (na(
this.debugMode,
"".concat(
this.storageName,
" - (clearPersistedStore)"
)
),
[4, this.storageAdapter.removeItem(this.storageName)])
: [3, 2];
case 1:
e.sent(), (e.label = 2);
case 2:
return [2];
}
});
});
}),
(e.prototype.getPersistedStore = function () {
return sa(this, void 0, void 0, function () {
return la(this, function (e) {
return this.storageAdapter
? (na(
this.debugMode,
"".concat(this.storageName, " - (getPersistedStore)")
),
[2, this.storageAdapter.getItem(this.storageName)])
: [2, null];
});
});
}),
e
);
})(),
ca = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
l(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
l(r.throw(e));
} catch (t) {
o(t);
}
}
function l(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
l((r = r.apply(e, t || [])).next());
});
},
da = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" === typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n) throw new TypeError("Generator is already executing.");
for (; a;)
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r.return
: o[0]
? r.throw || ((i = r.return) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (((r = 0), i && (o = [2 & o[0], i.value]), o[0])) {
case 0:
case 1:
i = o;
break;
case 4:
return a.label++, { value: o[1], done: !1 };
case 5:
a.label++, (r = o[1]), (o = [0]);
continue;
case 7:
(o = a.ops.pop()), a.trys.pop();
continue;
default:
if (
!(i = (i = a.trys).length > 0 && i[i.length - 1]) &&
(6 === o[0] || 2 === o[0])
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
(a.label = i[1]), (i = o);
break;
}
if (i && a.label < i[2]) {
(a.label = i[2]), a.ops.push(o);
break;
}
i[2] && a.ops.pop(), a.trys.pop();
continue;
}
o = t.call(e, a);
} catch (s) {
(o = [6, s]), (r = 0);
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
fa = function (e, t, n) {
return ca(void 0, void 0, void 0, function () {
var r;
return da(this, function (i) {
return (
(r = new ua(e, t, n)),
Array.from(Jo.values())
.map(function (e) {
return e.storageName;
})
.includes(r.storageName),
r.storageName,
Jo.set(e, r),
[2, r.init()]
);
});
});
},
ha = function () {
return { currentGuess: "", guesses: [], gameStage: Ho.New };
},
pa = function () {
return {
dateStamp: tt.createDateStamp(),
gamesList: {
cs: ha(),
da: ha(),
de: ha(),
el: ha(),
en: ha(),
es: ha(),
fr: ha(),
hu: ha(),
id: ha(),
ie: ha(),
it: ha(),
kid: ha(),
le: ha(),
nl: ha(),
no: ha(),
ph: ha(),
pl: ha(),
pt: ha(),
ro: ha(),
ru: ha(),
sk: ha(),
sr: ha(),
sv: ha(),
tr: ha(),
ua: ha(),
uk: ha(),
},
};
},
va = (function () {
function e(t) {
z(this, e),
(this.root = void 0),
(this.darkTheme = void 0),
(this.colorBlind = void 0),
(this.difficulty = void 0),
(this.hideTimer = void 0),
(this.showTime = void 0),
(this.statsDaily = void 0),
(this.statsUnlimited = void 0),
(this.dailySave = void 0),
(this.modeChosen = void 0),
(this.disableAnimations = void 0),
(this.invertKeys = void 0),
(this.migrationNeeded = void 0),
(this.needReset = void 0),
(this.root = t),
(this.darkTheme = !1),
(this.colorBlind = !1),
(this.difficulty = 0),
(this.hideTimer = !1),
(this.showTime = !1),
(this.statsDaily = []),
(this.statsUnlimited = []),
(this.dailySave = pa()),
(this.modeChosen = p.Random),
(this.disableAnimations = !1),
(this.invertKeys = !1),
(this.migrationNeeded = !0),
(this.needReset = !0);
}
return (
I(e, [
{
key: "init",
value: function () {
xi(this, {
darkTheme: Rn,
colorBlind: Rn,
difficulty: Rn,
showTime: Rn,
hideTimer: Rn,
disableAnimations: Rn,
invertKeys: Rn,
statsDaily: Rn,
statsUnlimited: Rn,
dailySave: Rn,
modeChosen: Rn,
migrationNeeded: Rn,
needReset: Rn,
isDailyFinished: zn,
toggleDark: zr,
toggleHideTimer: zr,
toggleShowTime: zr,
toggleColorBlind: zr,
toggleDisableAnimations: zr,
toggleInverKeys: zr,
setDifficulty: zr,
addGameToStats: zr,
setCurrentGuess: zr,
setGameStage: zr,
setGuesses: zr,
resetDailySave: zr,
setModeChosen: zr,
migrateStatistics: zr,
}),
fa(this, {
name: "Settings",
properties: [
"showTime",
"darkTheme",
"colorBlind",
"difficulty",
"hideTimer",
"disableAnimations",
"invertKeys",
],
storage: Xo(),
}),
fa(this, {
name: "Mode",
properties: ["modeChosen"],
storage: Xo(),
}),
fa(this, {
name: "Statistics",
properties: [
"statsDaily",
"statsUnlimited",
"migrationNeeded",
],
storage: Xo(),
}),
fa(this, {
name: "DailySave",
properties: ["dailySave", "needReset"],
storage: Xo(),
});
},
},
{
key: "migrateStatistics",
value: function () {
var e = tt.readOldStats();
e.length > 0 &&
((this.statsUnlimited = e),
window.localStorage.removeItem("games_history")),
(this.migrationNeeded = !1);
},
},
{
key: "resetDailySave",
value: function () {
(this.dailySave = pa()), (this.needReset = !1);
},
},
{
key: "isDailyFinished",
get: function () {
return (
!!this.dailySave.gamesList &&
(this.dailySave.gamesList[ot.lang].gameStage === Ho.Won ||
this.dailySave.gamesList[ot.lang].gameStage === Ho.Lost)
);
},
},
{
key: "addGameToStats",
value: function (e, t) {
t !== p.Today
? this.statsUnlimited.push(e)
: this.statsDaily.push(e);
},
},
{
key: "toggleDark",
value: function () {
this.darkTheme = !this.darkTheme;
},
},
{
key: "setDifficulty",
value: function (e) {
this.difficulty = e;
},
},
{
key: "toggleShowTime",
value: function () {
this.showTime = !this.showTime;
},
},
{
key: "toggleDisableAnimations",
value: function () {
this.disableAnimations = !this.disableAnimations;
},
},
{
key: "toggleHideTimer",
value: function () {
this.hideTimer = !this.hideTimer;
},
},
{
key: "toggleInverKeys",
value: function () {
this.invertKeys = !this.invertKeys;
},
},
{
key: "setCurrentGuess",
value: function (e) {
this.dailySave.gamesList[ot.lang].currentGuess = e;
},
},
{
key: "setGuesses",
value: function (e) {
this.dailySave.gamesList[ot.lang].guesses = e;
},
},
{
key: "setGameStage",
value: function (e) {
this.dailySave.gamesList[ot.lang].gameStage = e;
},
},
{
key: "toggleColorBlind",
value: function () {
this.colorBlind = !this.colorBlind;
},
},
{
key: "setModeChosen",
value: function (e) {
this.modeChosen = e;
},
},
]),
e
);
})(),
ma = (function () {
function e(t) {
z(this, e),
(this.root = void 0),
(this.page = void 0),
(this.showGenerator = void 0),
(this.showGeneratorTour = void 0),
(this.isDictLoading = void 0),
(this.hintText = void 0),
(this.showHint = void 0),
(this.showGameResult = void 0),
(this.showTourResult = void 0),
(this.isMobile = void 0),
(this.isRevealing = void 0),
(this.listener = void 0),
(this.timeToNextDayInSeconds = void 0),
(this.interval = void 0),
(this.root = t),
(this.page = Vo.Game),
(this.showGenerator = !1),
(this.showGeneratorTour = !1),
(this.isDictLoading = !0),
(this.showHint = !ot.gen),
(this.hintText = ot.loc.msg.challenge_err_make),
(this.showGameResult = !1),
(this.showTourResult = !1),
(this.isMobile = window.innerWidth < 720),
(this.isRevealing = !1),
(this.listener = this.handleWindowResize.bind(this)),
(this.timeToNextDayInSeconds = tt.getSecondsToNextDay()),
(this.interval = null);
}
return (
I(e, [
{
key: "init",
value: function () {
xi(this, {
page: Rn,
showGenerator: Rn,
showGeneratorTour: Rn,
isDictLoading: Rn,
hintText: Rn,
showHint: Rn,
showGameResult: Rn,
showTourResult: Rn,
isMobile: Rn,
isRevealing: Rn,
timeToNextDayInSeconds: Rn,
setPage: zr,
setShowGenerator: zr,
setShowGeneratorTour: zr,
setIsDictLoading: zr,
setHintText: zr,
setShowHint: zr,
setShowGameResult: zr,
setShowTourResult: zr,
setIsMobile: zr,
subSecond: zr,
toggleReveal: zr,
}),
this._setupListener(),
this._initInterval();
},
},
{
key: "toggleReveal",
value: function () {
var e = this,
t = 200 * (this.root.GameStore.target.safe.length + 1);
(this.isRevealing = !0),
setTimeout(function () {
Ur(function () {
e.isRevealing = !1;
});
}, t);
},
},
{
key: "displayHint",
value: function (e) {
this.setHintText(e), this.setShowHint(!0);
},
},
{
key: "_setupListener",
value: function () {
window.addEventListener("resize", this.listener);
},
},
{
key: "_initInterval",
value: function () {
var e = this;
this.interval = setInterval(function () {
e.subSecond();
}, 1e3);
},
},
{
key: "handleWindowResize",
value: function () {
window.innerWidth < 720
? this.setIsMobile(!0)
: this.setIsMobile(!1);
},
},
{
key: "setIsMobile",
value: function (e) {
this.isMobile = e;
},
},
{
key: "setIsDictLoading",
value: function (e) {
this.isDictLoading = e;
},
},
{
key: "setPage",
value: function (e) {
this.page = e;
},
},
{
key: "setShowGenerator",
value: function (e) {
this.showGenerator = e;
},
},
{
key: "setShowGeneratorTour",
value: function (e) {
this.showGeneratorTour = e;
},
},
{
key: "setShowHint",
value: function (e) {
this.showHint = e;
},
},
{
key: "setHintText",
value: function (e) {
this.hintText = e;
},
},
{
key: "setShowGameResult",
value: function (e) {
this.showGameResult = e;
},
},
{
key: "setShowTourResult",
value: function (e) {
this.showTourResult = e;
},
},
{
key: "subSecond",
value: function () {
this.timeToNextDayInSeconds -= 1;
},
},
]),
e
);
})(),
ga = (function () {
function e() {
z(this, e),
(this.UiStore = void 0),
(this.GameStore = void 0),
(this.PersistenceStore = void 0),
(this.PersistenceStore = new va(this)),
(this.UiStore = new ma(this)),
(this.GameStore = new $o(this)),
this.init();
}
return (
I(e, [
{
key: "init",
value: function () {
this.PersistenceStore.init(),
this.UiStore.init(),
this.GameStore.init();
},
},
]),
e
);
})(),
ya = (0, e.createContext)(void 0);
function ba() {
var t = (0, e.useContext)(ya);
if (void 0 === t)
throw new Error("useRootStore must be used within RootStoreProvider");
return t;
}
function wa() {
return ba().UiStore;
}
function _a() {
return ba().GameStore;
}
function xa() {
return ba().PersistenceStore;
}
function ka(e) {
var t = e.children,
n = new ga();
return (0, c.jsx)(ya.Provider, { value: n, children: t });
}
function Sa() {
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsxs)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "24",
height: "24",
viewBox: "0 0 24 24",
strokeWidth: "2",
stroke: "currentColor",
fill: "none",
strokeLinecap: "round",
strokeLinejoin: "round",
children: [
(0, c.jsx)("path", {
stroke: "none",
d: "M0 0h24v24H0z",
fill: "none",
}),
(0, c.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
(0, c.jsx)("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" }),
(0, c.jsx)("polyline", { points: "11 12 12 12 12 16 13 16" }),
],
}),
});
}
function Ea() {
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsxs)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "24",
height: "24",
viewBox: "0 0 24 24",
strokeWidth: "2",
stroke: "currentColor",
fill: "none",
strokeLinecap: "round",
strokeLinejoin: "round",
children: [
(0, c.jsx)("path", {
stroke: "none",
d: "M0 0h24v24H0z",
fill: "none",
}),
(0, c.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
(0, c.jsx)("line", { x1: "9", y1: "12", x2: "15", y2: "12" }),
(0, c.jsx)("line", { x1: "12", y1: "9", x2: "12", y2: "15" }),
],
}),
});
}
function Ta() {
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsxs)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "24",
height: "24",
viewBox: "0 0 24 24",
strokeWidth: "2",
stroke: "currentColor",
fill: "none",
strokeLinecap: "round",
strokeLinejoin: "round",
children: [
(0, c.jsx)("path", {
stroke: "none",
d: "M0 0h24v24H0z",
fill: "none",
}),
(0, c.jsx)("path", {
d: "M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z",
}),
(0, c.jsx)("circle", { cx: "12", cy: "12", r: "3" }),
],
}),
});
}
function Ca() {
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsxs)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "24",
height: "24",
viewBox: "0 0 24 24",
strokeWidth: "2",
stroke: "currentColor",
fill: "none",
strokeLinecap: "round",
strokeLinejoin: "round",
children: [
(0, c.jsx)("path", {
stroke: "none",
d: "M0 0h24v24H0z",
fill: "none",
}),
(0, c.jsx)("rect", {
x: "3",
y: "12",
width: "6",
height: "8",
rx: "1",
}),
(0, c.jsx)("rect", {
x: "9",
y: "8",
width: "6",
height: "12",
rx: "1",
}),
(0, c.jsx)("rect", {
x: "15",
y: "4",
width: "6",
height: "16",
rx: "1",
}),
(0, c.jsx)("line", { x1: "4", y1: "20", x2: "18", y2: "20" }),
],
}),
});
}
ya.displayName = "StoreContext";
var Na = Go(function () {
var t = _a(),
n = xa(),
r = ot.loc.msg;
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsxs)("div", {
className: "mode-button__container",
children: [
(0, c.jsx)("button", {
className:
t.gameMode !== p.Today
? "mode-button active"
: "mode-button",
onClick: function () {
t.gameMode === p.Today &&
(t.nextRandomGame(), n.setModeChosen(p.Random));
},
children: r.mode_unlimited,
}),
(0, c.jsx)("button", {
className:
t.gameMode === p.Today
? "mode-button active"
: "mode-button",
onClick: function () {
t.gameMode !== p.Today &&
(t.loadDailySave(), n.setModeChosen(p.Today));
},
children: r.mode_today,
}),
],
}),
});
}),
ja = "undefined" !== typeof window ? e.useLayoutEffect : e.useEffect;
var Oa = function (t, n, r, i) {
var o = (0, e.useRef)(n);
ja(
function () {
o.current = n;
},
[n]
),
(0, e.useEffect)(
function () {
var e =
(null === r || void 0 === r ? void 0 : r.current) || window;
if (e && e.addEventListener) {
var n = function (e) {
return o.current(e);
};
return (
e.addEventListener(t, n, i),
function () {
e.removeEventListener(t, n);
}
);
}
},
[t, r, i]
);
};
var Aa = function (e, t) {
var n =
arguments.length > 2 && void 0 !== arguments[2]
? arguments[2]
: "mousedown";
Oa(n, function (n) {
var r = null === e || void 0 === e ? void 0 : e.current;
r && !r.contains(n.target) && t(n);
});
};
function Pa() {
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsxs)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "24",
height: "24",
viewBox: "0 0 24 24",
strokeWidth: "2",
stroke: "currentColor",
fill: "none",
strokeLinecap: "round",
strokeLinejoin: "round",
children: [
(0, c.jsx)("path", {
stroke: "none",
d: "M0 0h24v24H0z",
fill: "none",
}),
(0, c.jsx)("line", { x1: "4", y1: "6", x2: "20", y2: "6" }),
(0, c.jsx)("line", { x1: "4", y1: "12", x2: "20", y2: "12" }),
(0, c.jsx)("line", { x1: "4", y1: "18", x2: "20", y2: "18" }),
],
}),
});
}
var La = function () {
var t = u(e.useState(!1), 2),
n = t[0],
r = t[1],
i = e.useRef(null),
o = wa(),
a = ot.loc.msg;
return (
Aa(i, function () {
n && r(!1);
}),
(0, c.jsx)(e.Fragment, {
children: (0, c.jsx)("div", {
className: "page-icon",
children: (0, c.jsxs)("label", {
className: "dropdown",
ref: i,
style: {
cursor: "pointer",
userSelect: "none",
width: "100%",
height: "100%",
},
children: [
(0, c.jsx)(Pa, {}),
(0, c.jsx)("input", {
type: "checkbox",
checked: n,
onChange: function () {
return r(!n);
},
className: "dd_input",
}),
(0, c.jsxs)("ul", {
className: "dd_menu",
children: [
(0, c.jsx)("li", {
onClick: function () {
o.setPage(Vo.About);
},
children: a.menu_how_to,
}),
(0, c.jsx)("li", {
onClick: function () {
o.setShowGenerator(!0);
},
children: a.menu_create,
}),
],
}),
],
}),
}),
})
);
},
Ra = Go(function () {
var t = wa(),
n = _a(),
r = ot.loc.msg,
i = n.gameStage == Ho.Won || n.gameStage == Ho.Lost;
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsxs)("div", {
className: "App-header",
children: [
(0, c.jsx)("div", {
style: {
display: "flex",
alignItems: "center",
justifyContent: "flex-start",
},
children: (0, c.jsx)(Na, {}),
}),
(0, c.jsx)("div", {
style: {
display: "flex",
alignItems: "center",
justifyContent: "center",
},
children: (0, c.jsxs)("div", {
id: "giveUp_button",
children: [
(0, c.jsx)("button", {
style: { display: i ? "" : "none" },
className: "button-startover",
onClick: function () {
return (
n.gameMode === p.Challenge &&
window.history.replaceState(
{},
document.title,
window.location.pathname
),
t.displayHint(r.challenge_err_make),
void n.nextRandomGame()
);
},
children:
n.gameMode === p.Today ? r.new_game : r.play_again,
}),
(0, c.jsx)("button", {
style: {
display:
n.gameStage === Ho.Playing && n.guesses.length > 0
? ""
: "none",
},
className: "button-giveup",
onClick:
n.gameMode !== p.Tournament
? function () {
var e;
n.giveUpGame(),
null === (e = document.activeElement) ||
void 0 === e ||
e.blur();
}
: function () {
n.tourGuesses.length > n.tourIndex &&
n.tourGuesses[n.tourIndex]
? n.nextTourGame()
: n.giveUpTour();
},
children:
n.gameMode !== p.Tournament
? r.give_up
: n.tourGuesses.length > n.tourIndex &&
n.tourGuesses[n.tourIndex]
? r.tour_guess
: r.tour_giveup,
}),
],
}),
}),
(0, c.jsxs)("div", {
style: {
display: "flex",
alignItems: "center",
justifyContent: "flex-end",
},
children: [
(0, c.jsx)("div", {
id: "open_settings",
className: "App-icon-container",
children: (0, c.jsx)("div", {
className: "page-icon",
onClick: function () {
t.page !== Vo.Settings
? t.setPage(Vo.Settings)
: t.setPage(Vo.Game);
},
children: (0, c.jsx)(Ta, {}),
}),
}),
(0, c.jsx)("div", {
id: "open_statistics",
className: "App-icon-container",
children: (0, c.jsx)("div", {
className: "page-icon",
onClick: function () {
t.page !== Vo.Statistics
? t.setPage(Vo.Statistics)
: t.setPage(Vo.Game);
},
children: (0, c.jsx)(Ca, {}),
}),
}),
!t.isMobile &&
(0, c.jsx)("div", {
id: "open_about",
className: "App-icon-container",
children: (0, c.jsx)("div", {
className: "page-icon",
onClick: function () {
t.page !== Vo.About
? t.setPage(Vo.About)
: t.setPage(Vo.Game);
},
children: (0, c.jsx)(Sa, {}),
}),
}),
!t.isMobile &&
(0, c.jsx)("div", {
id: "open_generator",
className: "App-icon-container",
children: (0, c.jsx)("div", {
className: "page-icon",
onClick: function () {
t.setShowGenerator(!0);
},
children: (0, c.jsx)(Ea, {}),
}),
}),
t.isMobile && (0, c.jsx)(La, {}),
],
}),
],
}),
});
});
function Da(e) {
return (
(function (e) {
if (Array.isArray(e)) return s(e);
})(e) ||
(function (e) {
if (
("undefined" !== typeof Symbol && null != e[Symbol.iterator]) ||
null != e["@@iterator"]
)
return Array.from(e);
})(e) ||
l(e) ||
(function () {
throw new TypeError(
"Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
})()
);
}
var Ma = function (t) {
var n = ot,
r = n.loc.msg,
o = (function (t) {
var n = u((0, e.useState)(t), 2),
r = n[0],
i = n[1],
o = (0, e.useRef)({ value: r, set: i });
return (
o.current.value !== r && (o.current = { value: r, set: i }),
o.current
);
})([{ inputRef: e.createRef(), showRandomBar: !1 }]),
s = u(e.useState(!B.fullyLoaded), 2),
l = s[0],
d = s[1],
f = R(n.loc.minLength, n.loc.maxLength),
h = function (t, r) {
var i,
a,
s =
null === (i = t.inputRef) ||
void 0 === i ||
null === (a = i.current) ||
void 0 === a
? void 0
: a.value.toLocaleLowerCase(n.lang);
if (s) {
if (
(B.fullyLoaded &&
((t.good = B.checkForWord(s)),
(t.word = s),
o.set(Da(o.value))),
s.length > 0 &&
o.value.length < 10 &&
o.value.length - 1 === r)
) {
var l = [].concat(Da(o.value), [
{ showRandomBar: !1, inputRef: e.createRef() },
]);
o.set(l);
}
} else {
for (
t.word = void 0;
!o.value[o.value.length - 1].word &&
o.value[o.value.length - 2] &&
!o.value[o.value.length - 2].word;
)
(o.value[o.value.length - 2].good = void 0), o.value.pop();
(t.good = !(o.value.length - 1 > r) && void 0),
o.set(Da(o.value));
}
},
p = function (e, t) {
if (
((o.value[t].showRandomBar = !e.showRandomBar),
o.set(Da(o.value)),
e.showRandomBar)
) {
var n = e.randLength ? e.randLength : 5;
e.inputRef.current &&
((e.inputRef.current.value = B.getRandomWord(n)), h(e, t));
} else
e.inputRef &&
e.inputRef.current &&
e.word &&
(e.inputRef.current.value = e.word),
h(e, t);
};
e.useEffect(function () {
if (!B.fullyLoaded) {
d(!0);
try {
m();
} catch (e) {
d(!1);
}
}
}, []);
var m = (function () {
var e = a(
i().mark(function e() {
return i().wrap(function (e) {
for (; ;)
switch ((e.prev = e.next)) {
case 0:
return (e.next = 2), B.loadFullDict();
case 2:
d(!1);
case 3:
case "end":
return e.stop();
}
}, e);
})
);
return function () {
return e.apply(this, arguments);
};
})();
return (0, c.jsx)(e.Fragment, {
children: l
? (0, c.jsx)(at, {
title: r.gen_title,
close: function () {
return t.close();
},
})
: (0, c.jsx)(v, {
title: r.tour_title,
close: function () {
return t.close();
},
children: (0, c.jsxs)("div", {
className: "Generator-content",
children: [
(0, c.jsx)("div", {
className: "Generator-content-text",
children: r.tour_desc,
}),
(0, c.jsx)("div", { style: { height: "10px" } }),
o.value.map(function (e, t) {
var n;
return (0, c.jsxs)(
"div",
{
children: [
(0, c.jsxs)("div", {
className: "Generator-content-word",
children: [
(0, c.jsx)("input", {
className:
void 0 === e.good
? "Generator-content-input"
: e.good
? "Generator-content-input-good"
: "Generator-content-input-warn",
style: { minHeight: "35px" },
type: e.showRandomBar ? "password" : "text",
name: "input",
ref: e.inputRef,
disabled: e.showRandomBar,
value: e.showRandomBar
? null === (n = e.word) || void 0 === n
? void 0
: n.replace(/./g, "*")
: e.word,
placeholder: r.gen_type,
onChange: function () {
return h(e, t);
},
}),
(0, c.jsx)("label", {
className: "Generator-content-label",
onClick: function () {
return p(e, t);
},
children: r.random,
}),
(0, c.jsx)("input", {
className: "App-switch-checkbox",
type: "checkbox",
checked: e.showRandomBar,
onChange: function () {
return p(e, t);
},
}),
],
}),
e.showRandomBar &&
(0, c.jsxs)("div", {
className: "Generator-random-bar",
children: [
(0, c.jsx)(D, {
barStyle: { display: "inline-block" },
buttonClass:
"App-button-circle-fixed Generator-button-label",
startLabel: e.randLength
? e.randLength
: 5,
labels: f,
onChange: function (n) {
(e.randLength = n),
o.set(Da(o.value)),
e.inputRef.current &&
((e.inputRef.current.value =
B.getRandomWord(n)),
h(e, t));
},
}),
(0, c.jsx)("hr", {}),
],
}),
],
},
t
);
}),
(0, c.jsxs)("button", {
className: "App-button",
style: { margin: "15px 0px 15px 0px" },
disabled: !(function () {
if (o.value.length <= 1) return !1;
var e,
t = b(o.value);
try {
for (t.s(); !(e = t.n()).done;) {
if (!1 === e.value.good) return !1;
}
} catch (n) {
t.e(n);
} finally {
t.f();
}
return !0;
})(),
onClick: function () {
var e, i, a;
B.fullyLoaded &&
((e = A(
(function (e) {
var t,
n = [],
r = b(e);
try {
for (r.s(); !(t = r.n()).done;) {
var i = t.value;
void 0 !== i.word && n.push(i.word);
}
} catch (o) {
r.e(o);
} finally {
r.f();
}
return n;
})(o.value),
n.lang
)),
(i = r.challenge_clipboard),
(a = t.showHint),
navigator.clipboard
? navigator.clipboard
.writeText(e)
.then(function () {
a(i);
})
.catch(function () {
a(e);
})
: a(e));
},
children: [
(0, c.jsx)("div", {
className: "App-button-icon",
children: (0, c.jsx)(st, {}),
}),
(0, c.jsx)("span", { children: r.gen_create }),
],
}),
],
}),
}),
});
},
Ia = n(701),
za =
(Ia.domToReact, Ia.htmlToDOM, Ia.attributesToProps, Ia.Element, Ia),
Fa = function () {
var e = ot.loc.msg,
t = wa(),
n = e.about_page.join("\n").f({ maxGuesses: 6 });
return (0, c.jsxs)("div", {
className: "App-page",
children: [
(0, c.jsxs)("div", {
className: "App-title",
children: [
(0, c.jsx)("div", {
className: "App-title-content",
children: e.about,
}),
(0, c.jsx)("div", {
className: "App-title-close",
onClick: function () {
t.setPage(Vo.Game);
},
children: (0, c.jsx)(d, {}),
}),
],
}),
(0, c.jsx)("div", { className: "App-about", children: za(n) }),
],
});
},
Ua =
'\x3c!-- Ezoic - incontent_5 - incontent_5 --\x3e\n\n\x3c!-- End Ezoic - incontent_5 - incontent_5 --\x3e',
Ba = !0;
var Ga = function (t) {
var n = function () {
(Ba = !Ba), t.close();
};
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsx)("div", {
className: t.show ? "" : "hidden",
children: (0, c.jsx)(v, {
isOpen: t.show,
title: t.title,
close: n,
children: (0, c.jsxs)("div", {
className: "Result-window-content",
children: [
(0, c.jsx)("span", {
children:
t.gameStage === Ho.Won
? t.messages.win_answer
: t.messages.the_answer,
}),
(0, c.jsx)("div", {
className: "Result-window-answer",
children: t.target.orig,
}),
(0, c.jsx)("a", {
className: "Result-window-link",
href: encodeURI(t.href),
target: "_blank",
rel: "noreferrer",
children: t.messages.dict_uri_text,
}),
(0, c.jsx)("span", {
children:
t.gameStage === Ho.Won
? t.messages.time_win.f({ time: t.elapsedTime })
: t.messages.time_lose.f({ time: t.elapsedTime }),
}),
(0, c.jsx)("button", {
className: "App-button App-button-marked",
onClick: function () {
n(), t.startNextGame();
},
children: t.messages.new_game,
}),
t.children,
(0, c.jsx)("div", {
id: "google-ad__endgame",
className: "ad__container",
dangerouslySetInnerHTML: { __html: Ua },
}),
],
}),
}),
}),
});
},
Wa = !0;
var Ha = function (t) {
var n = ot.loc.msg,
r = t.gameStage == Ho.Won || t.gameStage == Ho.Lost,
i = function () {
(Wa = !Wa), t.close();
};
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsx)("div", {
className: t.show ? "" : "hidden",
children: (0, c.jsx)(v, {
isOpen: t.show,
title: n.tour_res,
close: i,
children: (0, c.jsxs)("div", {
className: "Result-window-content",
children: [
(0, c.jsx)("span", {
children: n.tour_guessed.f({
x: t.tourGuessedCount,
y: t.tourWords.length,
time: t.elapsedTime,
}),
}),
(0, c.jsx)("table", {
className: "Game-rows",
style: { width: "100%", marginBottom: "10px" },
children: (0, c.jsx)("tbody", {
children:
r &&
t.tourWords.map(function (e, n) {
return (0, c.jsx)(
"tr",
{
className: "row",
children: e.split("").map(function (e, r) {
return (0,
c.jsx)("td", { className: t.tourGuesses[n] ? "cell correct" : "cell absent", style: { maxWidth: "40px", height: "40px" }, children: e }, r);
}),
},
n
);
}),
}),
}),
(0, c.jsx)("button", {
className: "App-button App-button-marked",
style: { fontSize: "20px" },
onClick: function () {
i(), t.showGeneratorTour();
},
children: n.tour_create_btn,
}),
t.children,
(0, c.jsx)("div", {
id: "google-ad__endgame-tour",
className: "ad__container",
dangerouslySetInnerHTML: { __html: Ua },
}),
],
}),
}),
}),
});
};
function Va(e, t) {
var n = t.getTime() - e.getTime(),
r = (Math.floor(n / 1e3) % 60).toString().padStart(2, "0");
return (Math.floor(n / 6e4) % 60).toString().padStart(2, "0") + ":" + r;
}
var qa,
Ka = function (t) {
var n = u((0, e.useState)("00:00"), 2),
r = n[0],
i = n[1],
o = (0, e.useRef)(t);
return (
(o.current = t),
(0, e.useEffect)(
function () {
t.gameStage === Ho.New
? i("00:00")
: (t.gameStage !== Ho.Won && t.gameStage !== Ho.Lost) ||
i(Va(o.current.startTs, new Date()));
},
[t.gameStage]
),
(0, e.useEffect)(function () {
var e = setInterval(function () {
o.current.gameStage === Ho.Playing &&
i(Va(o.current.startTs, new Date()));
}, 250);
return function () {
clearInterval(e);
};
}, []),
(0, c.jsx)("div", {
className: "Timer-bar",
children:
t.showTime &&
(0, c.jsx)("div", { className: "Timer-time", children: r }),
})
);
};
!(function (e) {
(e[(e.Absent = 0)] = "Absent"),
(e[(e.Elsewhere = 1)] = "Elsewhere"),
(e[(e.Correct = 2)] = "Correct");
})(qa || (qa = {}));
var Ya = n(123),
$a = n.n(Ya),
Qa = function (t) {
var n = t.value,
r = t.status,
i = t.isRevealing,
o = t.isCompleted,
a = t.disableAnimations,
s = t.position,
l = n && !o,
u = i && o,
d = "".concat(200 * (void 0 === s ? 0 : s), "ms"),
f = $a()("cell", {
correct: r === qa.Correct,
absent: r === qa.Absent,
elsewhere: r === qa.Elsewhere,
"cell-fill-animation": l && !a,
"cell-reveal": u && !a,
});
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsx)("div", {
className: f,
style: { animationDelay: d },
children: (0, c.jsx)("div", {
className: "letter-container",
style: { animationDelay: d },
children: n,
}),
}),
});
},
Xa = (0, e.memo)(Qa),
Ja = function (e) {
var t = e.guess,
n = e.solution,
r = e.isRevealing,
i = e.disableAnimations,
o = t.split(""),
a = (function (e, t) {
var n = e.split(""),
r = t.split(""),
i = n.map(function () {
return !1;
}),
o = Array.from(Array(t.length));
return (
r.forEach(function (e, t) {
if (e === n[t]) return (o[t] = qa.Correct), void (i[t] = !0);
}),
r.forEach(function (e, t) {
if (!o[t]) {
if (n.includes(e)) {
var r = n.findIndex(function (t, n) {
return t === e && !i[n];
});
return r > -1
? ((o[t] = qa.Elsewhere), void (i[r] = !0))
: void (o[t] = qa.Absent);
}
o[t] = qa.Absent;
}
}),
o
);
})(n, t);
return (0, c.jsx)("div", {
className: "row",
children: o.map(function (e, t) {
return (0,
c.jsx)(Xa, { value: e, status: a[t], position: t, isRevealing: r, disableAnimations: i, isCompleted: !0 }, t);
}),
});
},
Za = function (e) {
var t = e.guess,
n = e.solution,
r = e.disableAnimations,
i = t.split(""),
o = Array.from(Array(n.length - i.length));
return (0, c.jsxs)("div", {
className: "row",
children: [
i.map(function (e, t) {
return (0, c.jsx)(Xa, { value: e, disableAnimations: r }, t);
}),
o.map(function (e, t) {
return (0, c.jsx)(Xa, {}, t);
}),
],
});
},
es = function () {
var e = _a(),
t = Array.from(Array(e.target.safe.length));
return (0, c.jsx)("div", {
className: "row",
children: t.map(function (e, t) {
return (0, c.jsx)(Xa, {}, t);
}),
});
},
ts = Go(function () {
var t = _a(),
n = wa(),
r = xa(),
i =
t.guesses.length < 5
? Array.from(Array(5 - t.guesses.length))
: [],
o = r.disableAnimations;
return (0, c.jsxs)(e.Fragment, {
children: [
t.guesses.map(function (e, r) {
return (0,
c.jsx)(Ja, { guess: e, solution: t.target.safe, isRevealing: n.isRevealing && t.guesses.length - 1 === r, disableAnimations: o }, r);
}),
t.guesses.length < 6 &&
(0, c.jsx)(Za, {
guess: t.currentGuess,
solution: t.target.safe,
className: "",
disableAnimations: o,
}),
i.map(function (e, t) {
return (0, c.jsx)(es, {}, t);
}),
],
});
});
function ns() {
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsxs)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "44",
height: "44",
viewBox: "0 0 24 24",
strokeWidth: "1.5",
stroke: "#2c3e50",
fill: "none",
strokeLinecap: "square",
strokeLinejoin: "miter",
children: [
(0, c.jsx)("path", {
stroke: "none",
d: "M0 0h24v24H0z",
fill: "none",
}),
(0, c.jsx)("rect", {
x: "4",
y: "4",
width: "6",
height: "6",
rx: "1",
fill: "inherit",
}),
(0, c.jsx)("rect", {
x: "14",
y: "4",
width: "6",
height: "6",
rx: "1",
fill: "inherit",
}),
(0, c.jsx)("rect", {
x: "4",
y: "14",
width: "6",
height: "6",
rx: "1",
fill: "inherit",
}),
(0, c.jsx)("rect", {
x: "14",
y: "14",
width: "6",
height: "6",
rx: "1",
fill: "inherit",
}),
],
}),
});
}
var rs = Go(function () {
var t = ot,
n = t.loc.msg,
r = xa(),
i = _a(),
o = wa(),
a = function (e) {
o.displayHint(e);
},
s = i.gameStage == Ho.Won || i.gameStage == Ho.Lost,
l = u((0, e.useState)(new Date()), 2),
d = l[0],
f = l[1],
h = function () {
i.gameMode === p.Challenge &&
window.history.replaceState(
{},
document.title,
window.location.pathname
),
a(n.challenge_err_make),
i.nextRandomGame();
};
function v(e, t) {
navigator.clipboard
? navigator.clipboard
.writeText(e)
.then(function () {
a(t);
})
.catch(function () {
a(e);
})
: a(e);
}
(0, e.useEffect)(
function () {
i.gameStage === Ho.Playing &&
(i.gameMode !== p.Tournament ||
(i.gameMode === p.Tournament && 0 === i.tourIndex)) &&
f(new Date());
},
[i.gameStage]
),
(0, e.useEffect)(
function () {
i.gameStage === Ho.New &&
(i.guesses.length > 0 || "" !== i.currentGuess) &&
i.setGameStage(Ho.Playing);
},
[i.currentGuess, i.gameStage, o.showGenerator]
);
var m,
g = (0, e.useMemo)(
function () {
return Va(d, new Date());
},
[i.gameStage]
);
m = r.hideTimer
? i.gameStage === Ho.Won
? n.challenge_won.f({ target: i.target.orig })
: i.gameStage === Ho.Lost
? n.challenge_lost.f({ target: i.target.orig })
: ""
: i.gameStage === Ho.Won
? n.challenge_won_t.f({ time: g })
: i.gameStage === Ho.Lost
? n.challenge_lost_t.f({ time: g })
: "";
var y = n.tour_share.f({ x: 5, y: i.tourWords.length, time: g });
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsxs)("div", {
className: "Game",
children: [
(0, c.jsx)(ts, {}),
s
? (0, c.jsxs)("div", {
className: "Game-challenge-bar",
children: [
(0, c.jsxs)("button", {
className: "App-button",
onClick: function () {
v(j(i.target.orig, ot.lang), n.challenge_clipboard);
},
children: [
(0, c.jsx)("div", {
className: "App-button-icon",
children: (0, c.jsx)(st, {}),
}),
(0, c.jsx)("span", { children: n.challenge_link }),
],
}),
(0, c.jsxs)("button", {
className: "App-button",
onClick: function () {
v(
j(i.target.orig, ot.lang) +
"\n\n" +
O(i.guesses, i.target.safe),
n.result_clipboard
);
},
children: [
(0, c.jsx)("div", {
className: "App-button-icon",
children: (0, c.jsx)(ns, {}),
}),
n.copy_result,
],
}),
P(m, j(i.target.orig, ot.lang)),
],
})
: (0, c.jsx)("div", {
style: {
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "30px",
},
children:
!r.hideTimer &&
(0, c.jsx)(Ka, {
startTs: d,
gameStage: i.gameStage,
showTime: r.showTime,
}),
}),
i.gameMode != p.Challenge || s
? i.gameMode != p.Tournament || s
? void 0
: (0, c.jsxs)("div", {
className: "Game-info-tour",
children: [
(0, c.jsx)("div", {
style: {
textTransform: "uppercase",
fontWeight: "700",
},
children: n.tour,
}),
(0, c.jsx)("div", {
children: n.tour_word.f({
x: i.tourIndex + 1,
y: i.tourWords.length,
}),
}),
],
})
: (0, c.jsx)("div", {
className: "Game-info",
children: n.playing_challenge,
}),
i.gameMode === p.Today &&
s &&
(0, c.jsxs)("div", {
className: "Game-info",
children: [
(0, c.jsx)("div", {
children: n.today_completed1.f({
time: tt.secondsToHuman(o.timeToNextDayInSeconds),
}),
}),
(0, c.jsx)("div", { children: n.today_completed2 }),
],
}),
(0, c.jsxs)(Ga, {
show: o.showGameResult,
close: function () {
return o.setShowGameResult(!1);
},
title:
i.gameStage === Ho.Won
? n.game_result_won
: i.gameStage === Ho.Lost
? n.game_result_lost
: "Error",
target: i.target,
messages: n,
gameStage: i.gameStage,
elapsedTime: g,
href:
"/dictionary.hrml?q=" +
n.dict_uri.f({ word: i.target.orig }) +
"&word=" +
i.target.orig +
"&lang=" +
t.lang,
startNextGame: h,
children: [
(0, c.jsxs)("button", {
className: "App-button",
onClick: function () {
v(j(i.target.orig, ot.lang), n.challenge_clipboard);
},
children: [
(0, c.jsx)("div", {
className: "App-button-icon",
children: (0, c.jsx)(st, {}),
}),
(0, c.jsx)("span", { children: n.challenge_link }),
],
}),
(0, c.jsxs)("button", {
className: "App-button",
onClick: function () {
v(
j(i.target.orig, ot.lang) +
"\n\n" +
O(i.guesses, i.target.safe),
n.result_clipboard
);
},
children: [
(0, c.jsx)("div", {
className: "App-button-icon",
children: (0, c.jsx)(ns, {}),
}),
n.copy_result,
],
}),
P(m, j(i.target.orig, ot.lang)),
],
}),
(0, c.jsx)(Ha, {
show: o.showTourResult,
close: function () {
return o.setShowTourResult(!1);
},
tourWords: i.tourWords,
gameStage: i.gameStage,
tourGuesses: i.tourGuesses,
tourGuessedCount: i.tourGuessed,
elapsedTime: g,
startNextGame: h,
showGeneratorTour: function () {
return o.setShowGeneratorTour(!0);
},
children: P(y, A(i.tourWords, t.lang)),
}),
],
}),
});
}),
is = rs;
var os = function (t) {
var n = u((0, e.useState)("show"), 2),
r = n[0],
i = n[1],
o = function (e) {
"show" != r && (i("show"), e.preventDefault());
},
a = function (e) {
e.target instanceof Element &&
(e.target.matches(".App-button-circle") ||
e.target.matches(".App-button-bar") ||
i("show"));
};
(0, e.useEffect)(
function () {
var e;
return (
null === (e = t.onSelect) ||
void 0 === e ||
e.call(t, "select" === r),
t.underSelection &&
(document.addEventListener("keydown", o),
document.addEventListener("click", a)),
function () {
t.underSelection &&
(document.removeEventListener("click", a),
document.removeEventListener("keydown", o));
}
);
},
[r]
);
var s = R(t.minLength, t.maxLength);
return t.underSelection
? (0, c.jsxs)(e.Fragment, {
children: [
(0, c.jsx)(
"button",
{
id: "select-show-button",
className: "App-button-circle",
onClick: function (e) {
i("show" == r ? "select" : "show");
},
disabled: t.disabled,
children: t.length,
},
"ShowButton"
),
"select" == r &&
(0, c.jsx)(D, {
barClass: t.underSelection
? "App-button-bar App-button-bar-under"
: "App-button-bar",
buttonClass: t.underSelection
? "App-button-circle"
: "App-button-circle-fixed",
startLabel: t.length,
labels: s,
onChange: function (e) {
t.onChange(e), i("show");
},
}),
],
})
: (0, c.jsx)(D, {
barStyle: { margin: "15px 0px 15px 0px" },
buttonClass: t.underSelection
? "App-button-circle"
: "App-button-circle-fixed",
startLabel: t.length,
labels: s,
onChange: function (e) {
t.onChange(e), i("show");
},
});
},
as = Go(function () {
var t = ot,
n = t.loc.msg,
r = _a(),
i = wa(),
o = xa(),
a = function (e) {
o.setDifficulty(e);
};
return (0, c.jsxs)("div", {
className: "App-page",
children: [
(0, c.jsxs)("div", {
className: "App-title",
children: [
(0, c.jsx)("div", {
className: "App-title-content",
children: n.settings,
}),
(0, c.jsx)("div", {
className: "App-title-close",
onClick: function () {
i.setPage(Vo.Game);
},
children: (0, c.jsx)(d, {}),
}),
],
}),
(0, c.jsxs)("div", {
className: "Settings",
children: [
r.gameMode !== p.Today &&
!t.loc.disableLengthChange &&
(0, c.jsxs)(e.Fragment, {
children: [
(0, c.jsxs)("div", {
className: "Settings-setting",
style: {
display: "flex",
flexDirection: "column",
alignItems: "center",
},
children: [
(0, c.jsx)("div", {
className: "Settings-param-title",
children: n.letters,
}),
(0, c.jsx)(os, {
length: r.gameLength,
minLength: ot.loc.minLength,
maxLength: ot.loc.maxLength,
disabled: !1,
onChange: function (e) {
return (
(t = e),
r.setGameLength(t),
r.nextRandomGame(),
void i.displayHint(
ot.loc.msg.challenge_err_make
)
);
var t;
},
}),
],
}),
(0, c.jsx)("hr", {}),
],
}),
(0, c.jsxs)("div", {
className: "Settings-setting",
children: [
(0, c.jsx)("div", {
className: "Settings-param-title",
children: n.difficulty_hard,
}),
(0, c.jsx)("div", {
className: "Settings-param-desc",
children: n.difficulty_hard_hint,
}),
(0, c.jsx)("div", {
className: "Settings-checkbox",
children: (0, c.jsx)("input", {
className: "App-switch-checkbox",
type: "checkbox",
checked: 1 === o.difficulty,
onChange: function () {
return a(1 === o.difficulty ? 0 : 1);
},
}),
}),
],
}),
(0, c.jsx)("hr", {}),
(0, c.jsxs)("div", {
className: "Settings-setting",
children: [
(0, c.jsx)("div", {
className: "Settings-param-title",
children: n.difficulty_ultra,
}),
(0, c.jsx)("div", {
className: "Settings-param-desc",
children: n.difficulty_ultra_hint,
}),
(0, c.jsx)("div", {
className: "Settings-checkbox",
children: (0, c.jsx)("input", {
className: "App-switch-checkbox",
type: "checkbox",
checked: 2 === o.difficulty,
onChange: function () {
return a(2 == o.difficulty ? 0 : 2);
},
}),
}),
],
}),
(0, c.jsx)("hr", {}),
(0, c.jsxs)("div", {
className: "Settings-setting",
children: [
(0, c.jsx)("div", {
className: "Settings-param-title",
children: n.dark_theme,
}),
(0, c.jsx)("div", {
className: "Settings-param-desc",
children: n.dark_theme_desc,
}),
(0, c.jsx)("div", {
className: "Settings-checkbox",
children: (0, c.jsx)("input", {
className: "App-switch-checkbox",
type: "checkbox",
checked: o.darkTheme,
onChange: function () {
o.toggleDark();
},
}),
}),
],
}),
(0, c.jsx)("hr", {}),
(0, c.jsxs)("div", {
className: "Settings-setting",
children: [
(0, c.jsx)("div", {
className: "Settings-param-title",
children: n.color_blind,
}),
(0, c.jsx)("div", {
className: "Settings-param-desc",
children: n.color_blind_desc,
}),
(0, c.jsx)("div", {
className: "Settings-checkbox",
children: (0, c.jsx)("input", {
className: "App-switch-checkbox",
type: "checkbox",
checked: o.colorBlind,
onChange: function () {
o.toggleColorBlind();
},
}),
}),
],
}),
(0, c.jsx)("hr", {}),
(0, c.jsxs)("div", {
className: "Settings-setting",
children: [
(0, c.jsx)("div", {
className: "Settings-param-title",
children: n.disable_anim,
}),
(0, c.jsx)("div", {
className: "Settings-param-desc",
children: n.disable_anim_desc,
}),
(0, c.jsx)("div", {
className: "Settings-checkbox",
children: (0, c.jsx)("input", {
className: "App-switch-checkbox",
type: "checkbox",
checked: o.disableAnimations,
onChange: function () {
o.toggleDisableAnimations();
},
}),
}),
],
}),
(0, c.jsx)("hr", {}),
(0, c.jsxs)("div", {
className: "Settings-setting",
children: [
(0, c.jsx)("div", {
className: "Settings-param-title",
children: n.invert_keys,
}),
(0, c.jsx)("div", {
className: "Settings-param-desc",
children: n.invert_keys_desc,
}),
(0, c.jsx)("div", {
className: "Settings-checkbox",
children: (0, c.jsx)("input", {
className: "App-switch-checkbox",
type: "checkbox",
checked: o.invertKeys,
onChange: function () {
o.toggleInverKeys();
},
}),
}),
],
}),
(0, c.jsx)("hr", {}),
(0, c.jsxs)("div", {
className: "Settings-setting",
children: [
(0, c.jsx)("div", {
className: "Settings-param-title",
children: n.n_timer,
}),
(0, c.jsx)("div", {
className: "Settings-param-desc",
children: n.n_timer_desc,
}),
(0, c.jsx)("div", {
className: "Settings-checkbox",
children: (0, c.jsx)("input", {
className: "App-switch-checkbox",
type: "checkbox",
checked: o.showTime,
onChange: function () {
return o.toggleShowTime();
},
}),
}),
],
}),
],
}),
],
});
});
function ss(e) {
var t = e.value,
n = e.description;
return (0, c.jsxs)("div", {
className: "stat-item",
children: [
(0, c.jsx)("div", { className: "stat-value", children: t }),
(0, c.jsx)("div", { className: "stat-description", children: n }),
],
});
}
var ls = Go(function () {
var e = xa(),
t = wa(),
n = _a(),
r = ot.loc.msg,
i =
n.gameMode === p.Today
? r.statistics_title_daily
: r.statistics_title_unlim,
o = n.gameMode === p.Today ? e.statsDaily : e.statsUnlimited,
a = function (e) {
return e > 0
? (0, c.jsx)("span", {
style: { width: "".concat(e, "%") },
children: "".concat(e, "%"),
})
: (0, c.jsx)(c.Fragment, { children: "".concat(e, "%") });
},
s = function (e) {
return e.length;
},
l = function (e) {
return e.length < 1
? 0
: e.filter(function (e) {
return e.win;
}).length;
},
u = function (e, t) {
return e.length < 1
? 0
: e
.filter(function (e) {
return e.win;
})
.filter(function (e) {
return e.turn === t;
}).length;
},
f = function (e, t) {
if (e.length < 1) return 0;
var n = e.filter(function (e) {
return e.win;
}),
r = n.filter(function (e) {
return e.turn === t;
});
return r.length < 1
? 0
: (100 * (r.length / n.length)).toFixed(0);
};
return (0, c.jsxs)("div", {
className: "App-page",
children: [
(0, c.jsxs)("div", {
className: "App-title",
children: [
(0, c.jsx)("div", {
className: "App-title-content",
children: i,
}),
(0, c.jsx)("div", {
className: "App-title-close",
onClick: function () {
t.setPage(Vo.Game);
},
children: (0, c.jsx)(d, {}),
}),
],
}),
(0, c.jsx)("div", {
className: "app-statistics",
children: (0, c.jsxs)("div", {
className: "stats-content",
children: [
(0, c.jsxs)("div", {
className: "stats-container",
children: [
(0, c.jsx)(ss, {
value: s(o),
description: r.statistics_games_played,
}),
(0, c.jsx)(ss, {
value: l(o),
description: r.statistics_games_won,
}),
(0, c.jsx)(ss, {
value: (function (e) {
return e.length < 1
? 0
: (100 * (l(e) / s(e))).toFixed(0);
})(o),
description: r.statistics_win_percent,
}),
],
}),
(0, c.jsxs)("div", {
className: "stats-container",
children: [
(0, c.jsx)(ss, {
value: (function (e) {
if (e.length < 1) return 0;
var t = 7;
return (
e.forEach(function (e) {
e.win && e.turn < t && (t = e.turn);
}),
7 === t ? 0 : t
);
})(o),
description: r.statistics_best_try,
}),
(0, c.jsx)(ss, {
value: (function (e) {
if (e.length < 1) return 0;
if (!1 === e[e.length - 1].win) return 0;
for (var t = 0, n = e.length - 1; n >= 0; n--) {
if (!e[n].win) return t;
t++;
}
return t;
})(o),
description: r.statistics_current_streak,
}),
(0, c.jsx)(ss, {
value: (function (e) {
if (e.length < 1) return 0;
for (var t = 0, n = 0, r = 0; r < e.length; r++)
e[r].win ? n++ : ((t = Math.max(t, n)), (n = 0));
return Math.max(t, n);
})(o),
description: r.statistics_best_streak,
}),
],
}),
(0, c.jsxs)("div", {
className: "stats-chart",
children: [
(0, c.jsx)("div", {
className: "chart-title",
children: r.statistics_tries_distribution,
}),
(0, c.jsx)("table", {
children: (0, c.jsxs)("tbody", {
children: [
(0, c.jsxs)("tr", {
children: [
(0, c.jsx)("td", {
className: "number",
children: "#1",
}),
(0, c.jsx)("td", {
children: (0, c.jsx)("div", {
className: "percentage",
children: a(f(o, 1)),
}),
}),
(0, c.jsx)("td", {
className: "amount",
children: u(o, 1),
}),
],
}),
(0, c.jsxs)("tr", {
children: [
(0, c.jsx)("td", {
className: "number",
children: "#2",
}),
(0, c.jsx)("td", {
children: (0, c.jsx)("div", {
className: "percentage",
children: a(f(o, 2)),
}),
}),
(0, c.jsx)("td", {
className: "amount",
children: u(o, 2),
}),
],
}),
(0, c.jsxs)("tr", {
children: [
(0, c.jsx)("td", {
className: "number",
children: "#3",
}),
(0, c.jsx)("td", {
children: (0, c.jsx)("div", {
className: "percentage",
children: a(f(o, 3)),
}),
}),
(0, c.jsx)("td", {
className: "amount",
children: u(o, 3),
}),
],
}),
(0, c.jsxs)("tr", {
children: [
(0, c.jsx)("td", {
className: "number",
children: "#4",
}),
(0, c.jsx)("td", {
children: (0, c.jsx)("div", {
className: "percentage",
children: a(f(o, 4)),
}),
}),
(0, c.jsx)("td", {
className: "amount",
children: u(o, 4),
}),
],
}),
(0, c.jsxs)("tr", {
children: [
(0, c.jsx)("td", {
className: "number",
children: "#5",
}),
(0, c.jsx)("td", {
children: (0, c.jsx)("div", {
className: "percentage",
children: a(f(o, 5)),
}),
}),
(0, c.jsx)("td", {
className: "amount",
children: u(o, 5),
}),
],
}),
(0, c.jsxs)("tr", {
children: [
(0, c.jsx)("td", {
className: "number",
children: "#6",
}),
(0, c.jsx)("td", {
children: (0, c.jsx)("div", {
className: "percentage",
children: a(f(o, 6)),
}),
}),
(0, c.jsx)("td", {
className: "amount",
children: u(o, 6),
}),
],
}),
],
}),
}),
],
}),
],
}),
}),
],
});
}),
us = function (t) {
var n = t.currentPage;
return (0, c.jsx)(e.Fragment, {
children: (function (e) {
switch (e) {
case Vo.About:
return (0, c.jsx)(Fa, {});
case Vo.Settings:
return (0, c.jsx)(as, {});
case Vo.Statistics:
return (0, c.jsx)(ls, {});
case Vo.Game:
return (0, c.jsx)(is, {});
default:
return (0, c.jsx)(c.Fragment, {
children: "Something went wrong",
});
}
})(n),
});
},
cs = function (e) {
var t = e.value,
n = e.label,
r = e.onClick,
i = e.status,
o = e.isWide,
a = e.isRevealing,
s = e.delay,
l = e.disableAnimations,
u = $a()("Game-keyboard-button", {
"transition ease-in-out": a && !l,
"Game-keyboard-button-wide": o,
correct: i === qa.Correct,
absent: i === qa.Absent,
elsewhere: i === qa.Elsewhere,
}),
d = { transitionDelay: a && !l ? "".concat(s, "ms") : "unset" };
return (0, c.jsx)("div", {
className: u,
onClick: function () {
return r(t);
},
style: d,
children: n,
});
},
ds = Go(function () {
var t = ot.loc.keyboard.map(function (e) {
return e.split(" ");
}),
n = _a(),
r = wa(),
i = xa(),
o = (function (e, t) {
var n = {},
r = e.split("");
return (
t.forEach(function (e) {
e.split("").forEach(function (e, t) {
return r.includes(e)
? e === r[t]
? (n[e] = qa.Correct)
: n[e] !== qa.Correct
? (n[e] = qa.Elsewhere)
: void 0
: (n[e] = qa.Absent);
});
}),
n
);
})(n.target.safe, n.guesses),
a = 200 * n.target.safe.length,
s = function (e) {
n.onKey(e);
},
l = function (e) {
var t, n;
switch (e) {
case "Backspace":
return null !== (t = ot.loc.msg) &&
void 0 !== t &&
t.label_backspace
? ot.loc.msg.label_backspace
: "\u232b";
case "Enter":
return null !== (n = ot.loc.msg) &&
void 0 !== n &&
n.label_enter
? ot.loc.msg.label_enter
: "Enter";
default:
return e.toLocaleUpperCase(ot.lang);
}
},
u = $a()("Game-keyboard", { hidden: r.page !== Vo.Game });
return (0, c.jsx)(e.Fragment, {
children: (0, c.jsx)("div", {
className: u,
children: t.map(function (e, t) {
return (0, c.jsx)(
"div",
{
className: "Game-keyboard-row",
children: e.map(function (e, n) {
var u = i.invertKeys
? (function (e) {
return "Enter" === e
? "Backspace"
: "Backspace" === e
? "Enter"
: e;
})(e)
: e;
return (0,
c.jsx)(cs, { isWide: u.length > 1, status: o[u], value: u, label: l(u), onClick: s, isRevealing: r.isRevealing, delay: a, disableAnimations: i.disableAnimations }, "".concat(t, "_").concat(n));
}),
},
t
);
}),
}),
});
}),
fs = (0, e.memo)(ds),
hs = Go(function () {
var t = wa(),
n = xa(),
r = _a(),
o = ot,
s = t.page,
l = n.darkTheme,
u = n.colorBlind,
d = function (e) {
t.displayHint(e);
},
f = (function () {
var e = a(
i().mark(function e() {
return i().wrap(function (e) {
for (; ;)
switch ((e.prev = e.next)) {
case 0:
return (e.next = 2), B.addWordPackage(r.gameLength);
case 2:
t.setIsDictLoading(!1);
case 3:
case "end":
return e.stop();
}
}, e);
})
);
return function () {
return e.apply(this, arguments);
};
})(),
h = (function () {
var e = a(
i().mark(function e() {
return i().wrap(function (e) {
for (; ;)
switch ((e.prev = e.next)) {
case 0:
B.loadFullDict(), t.setIsDictLoading(!1);
case 2:
case "end":
return e.stop();
}
}, e);
})
);
return function () {
return e.apply(this, arguments);
};
})();
(0, e.useEffect)(
function () {
var e = [""];
u && e.push("color-blind"),
l && e.push("dark"),
(document.body.className = e.join(" ")),
setTimeout(function () {
document.body.style.transition =
"0.3s background-color ease-out";
}, 1);
},
[l, u]
),
(0, e.useEffect)(function () {
void 0 !== o.gen &&
("word" === o.gen && t.setShowGenerator(!0),
"multi" === o.gen && t.setShowGeneratorTour(!0),
(o.gen = void 0));
}, []);
var v = (function () {
var e = a(
i().mark(function e() {
return i().wrap(function (e) {
for (; ;)
switch ((e.prev = e.next)) {
case 0:
return (
(e.next = 2),
new Promise(function (e, t) {
var n = indexedDB.open("localforage");
(n.onsuccess = function () {
return e();
}),
(n.onerror = function () {
return t();
});
})
);
case 2:
return e.abrupt("return", e.sent);
case 3:
case "end":
return e.stop();
}
}, e);
})
);
return function () {
return e.apply(this, arguments);
};
})();
return (
(0, e.useEffect)(function () {
t.setIsDictLoading(!0);
try {
B.init(o.lang, o.length).then(function () {
v().then(function () {
r.appInit(),
r.gameMode === p.Tournament && h(),
n.needReset && n.resetDailySave(),
n.migrationNeeded && n.migrateStatistics(),
t.setIsDictLoading(!1),
window.ezstandalone &&
(window.ezstandalone.define(113),
window.ezstandalone.enabled
? window.ezstandalone.refresh()
: (window.ezstandalone.enable(),
window.ezstandalone.display()));
});
});
} catch (e) {
console.error(e);
}
}, []),
(0, e.useEffect)(
function () {
if (!B.fullyLoaded) {
t.setIsDictLoading(!0);
try {
f();
} catch (e) {
console.error("Error while loading extra dictionary");
}
}
},
[r.gameLength]
),
(0, c.jsxs)(e.Fragment, {
children: [
n.darkTheme && (0, c.jsx)("div", { className: "overlay" }),
(0, c.jsx)(Ra, {}),
(0, c.jsxs)("div", {
className: "App-container",
children: [
(0, c.jsx)(us, { currentPage: s }),
(0, c.jsx)(fs, {}),
t.showGenerator &&
(0, c.jsx)(lt, {
close: function () {
return t.setShowGenerator(!1);
},
showHint: d,
openTour: function () {
return t.setShowGeneratorTour(!0);
},
}),
t.showGeneratorTour &&
(0, c.jsx)(Ma, {
close: function () {
return t.setShowGeneratorTour(!1);
},
showHint: d,
}),
t.showHint &&
(0, c.jsx)(ut, {
hideDelay: 2e3,
close: function () {
return t.setShowHint(!1);
},
children: t.hintText,
}),
],
}),
],
})
);
}),
ps = hs;
function vs(e, t) {
return (
(vs = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (e, t) {
return (e.__proto__ = t), e;
}),
vs(e, t)
);
}
function ms(e) {
return (
(ms = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (e) {
return e.__proto__ || Object.getPrototypeOf(e);
}),
ms(e)
);
}
function gs(e, t) {
if (t && ("object" === r(t) || "function" === typeof t)) return t;
if (void 0 !== t)
throw new TypeError(
"Derived constructors may only return object or undefined"
);
return (function (e) {
if (void 0 === e)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called"
);
return e;
})(e);
}
function ys(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 = ms(e);
if (t) {
var i = ms(this).constructor;
n = Reflect.construct(r, arguments, i);
} else n = r.apply(this, arguments);
return gs(this, n);
};
}
var bs = (function (e) {
!(function (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 && vs(e, t);
})(n, e);
var t = ys(n);
function n() {
var e;
z(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (
((e = t.call.apply(t, [this].concat(i))).state = {
hasError: !1,
}),
e
);
}
return (
I(
n,
[
{
key: "componentDidCatch",
value: function (e, t) {
console.error("Uncaught error:", e, t);
},
},
{
key: "render",
value: function () {
return this.state.hasError
? (0, c.jsx)("h1", {
children: "Sorry.. there was an error",
})
: this.props.children;
},
},
],
[
{
key: "getDerivedStateFromError",
value: function (e) {
return { hasError: !0 };
},
},
]
),
n
);
})(e.Component),
ws = bs,
_s = t.createRoot(document.getElementById("root"));
ot.init()
.then(function () {
_s.render(
(0, c.jsx)(ws, {
children: (0, c.jsx)(ka, { children: (0, c.jsx)(ps, {}) }),
})
);
})
.catch(function (t) {
_s.render(
(0, c.jsx)(e.Fragment, {
children: (0, c.jsx)("h1", { children: t.message }),
})
);
});
})();
})();