aquasis-fe-components 1.2.14-r → 1.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@ import './index.css';var pT = Object.defineProperty;
|
|
|
2
2
|
var gT = (e, t, n) => t in e ? pT(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var P3 = (e, t, n) => gT(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as u from "react";
|
|
5
|
-
import ee, { version as hT, isValidElement as oo, useContext as Ht, createContext as I2, useRef as Be, useLayoutEffect as vT, useEffect as
|
|
5
|
+
import ee, { version as hT, isValidElement as oo, useContext as Ht, createContext as I2, useRef as Be, useLayoutEffect as vT, useEffect as Mt, useState as Et, forwardRef as Cr, useMemo as Xt, Children as Yl, createRef as bT, useCallback as hr, useImperativeHandle as l2, cloneElement as av, Component as ov, createElement as q2, Fragment as yT } from "react";
|
|
6
6
|
import * as CT from "react-dom";
|
|
7
7
|
import wi, { createPortal as iv, unstable_batchedUpdates as cv, flushSync as zi } from "react-dom";
|
|
8
8
|
var Sa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -5844,7 +5844,7 @@ const Ck = function(e) {
|
|
|
5844
5844
|
};
|
|
5845
5845
|
}, []), [r, n];
|
|
5846
5846
|
};
|
|
5847
|
-
var Bb = Vn() ? vT :
|
|
5847
|
+
var Bb = Vn() ? vT : Mt;
|
|
5848
5848
|
const Sk = function() {
|
|
5849
5849
|
var e = u.useRef(null);
|
|
5850
5850
|
function t() {
|
|
@@ -5948,18 +5948,18 @@ function wk(e, t, n, r) {
|
|
|
5948
5948
|
!pe && t && c && (ge = qc), pe && t && o && (ge = Gc), (pe && !t && s || !pe && f && !t && s) && (ge = Yc);
|
|
5949
5949
|
var Ce = G(ge);
|
|
5950
5950
|
ge && (e || Ce[s1]) ? (I(ge), oe()) : I(b2);
|
|
5951
|
-
}, [t]),
|
|
5951
|
+
}, [t]), Mt(function() {
|
|
5952
5952
|
// Cancel appear
|
|
5953
5953
|
(k === qc && !c || // Cancel enter
|
|
5954
5954
|
k === Gc && !o || // Cancel leave
|
|
5955
5955
|
k === Yc && !s) && I(b2);
|
|
5956
|
-
}, [c, o, s]),
|
|
5956
|
+
}, [c, o, s]), Mt(function() {
|
|
5957
5957
|
return function() {
|
|
5958
5958
|
H.current = !1, clearTimeout(F.current);
|
|
5959
5959
|
};
|
|
5960
5960
|
}, []);
|
|
5961
5961
|
var ie = u.useRef(!1);
|
|
5962
|
-
|
|
5962
|
+
Mt(function() {
|
|
5963
5963
|
O && (ie.current = !0), O !== void 0 && k === b2 && ((ie.current || O) && (M == null || M(O)), ie.current = !0);
|
|
5964
5964
|
}, [O, k]);
|
|
5965
5965
|
var fe = _;
|
|
@@ -6564,7 +6564,7 @@ var Kk = `
|
|
|
6564
6564
|
}
|
|
6565
6565
|
`, qk = function(t) {
|
|
6566
6566
|
var n = Ht(nd), r = n.csp, a = n.prefixCls, o = Kk;
|
|
6567
|
-
a && (o = o.replace(/anticon/g, a)),
|
|
6567
|
+
a && (o = o.replace(/anticon/g, a)), Mt(function() {
|
|
6568
6568
|
var i = t.current, c = a0(i);
|
|
6569
6569
|
X1(o, "@ant-design-icons", {
|
|
6570
6570
|
prepend: !0,
|
|
@@ -7427,13 +7427,13 @@ var $e = {
|
|
|
7427
7427
|
}
|
|
7428
7428
|
return [!!t, n];
|
|
7429
7429
|
}, SF = ["className", "style", "classNames", "styles"], ty = function(t) {
|
|
7430
|
-
var n = t.configList, r = t.placement, a = t.prefixCls, o = t.className, i = t.style, c = t.motion, l = t.onAllNoticeRemoved, s = t.onNoticeClose, d = t.stack, f = Ht(Zb), m = f.classNames, p = Be({}), h =
|
|
7430
|
+
var n = t.configList, r = t.placement, a = t.prefixCls, o = t.className, i = t.style, c = t.motion, l = t.onAllNoticeRemoved, s = t.onNoticeClose, d = t.stack, f = Ht(Zb), m = f.classNames, p = Be({}), h = Et(null), v = ne(h, 2), g = v[0], y = v[1], b = Et([]), C = ne(b, 2), x = C[0], S = C[1], L = n.map(function(I) {
|
|
7431
7431
|
return {
|
|
7432
7432
|
config: I,
|
|
7433
7433
|
key: String(I.key)
|
|
7434
7434
|
};
|
|
7435
7435
|
}), E = CF(d), M = ne(E, 2), w = M[0], z = M[1], O = z.offset, T = z.threshold, D = z.gap, $ = w && (x.length > 0 || L.length <= T), R = typeof c == "function" ? c(r) : c;
|
|
7436
|
-
return
|
|
7436
|
+
return Mt(function() {
|
|
7437
7437
|
w && x.length > 1 && S(function(I) {
|
|
7438
7438
|
return I.filter(function(N) {
|
|
7439
7439
|
return L.some(function(P) {
|
|
@@ -7442,7 +7442,7 @@ var $e = {
|
|
|
7442
7442
|
});
|
|
7443
7443
|
});
|
|
7444
7444
|
});
|
|
7445
|
-
}, [x, L, w]),
|
|
7445
|
+
}, [x, L, w]), Mt(function() {
|
|
7446
7446
|
var I;
|
|
7447
7447
|
if (w && p.current[(I = L[L.length - 1]) === null || I === void 0 ? void 0 : I.key]) {
|
|
7448
7448
|
var N;
|
|
@@ -9452,13 +9452,13 @@ function Ej(e) {
|
|
|
9452
9452
|
};
|
|
9453
9453
|
}
|
|
9454
9454
|
function hy(e) {
|
|
9455
|
-
var t = e.targetRef, n = e.containerRef, r = e.direction, a = e.onDragChange, o = e.onDragChangeComplete, i = e.calculate, c = e.color, l = e.disabledDrag, s =
|
|
9455
|
+
var t = e.targetRef, n = e.containerRef, r = e.direction, a = e.onDragChange, o = e.onDragChangeComplete, i = e.calculate, c = e.color, l = e.disabledDrag, s = Et({
|
|
9456
9456
|
x: 0,
|
|
9457
9457
|
y: 0
|
|
9458
9458
|
}), d = ne(s, 2), f = d[0], m = d[1], p = Be(null), h = Be(null);
|
|
9459
|
-
|
|
9459
|
+
Mt(function() {
|
|
9460
9460
|
m(i());
|
|
9461
|
-
}, [c]),
|
|
9461
|
+
}, [c]), Mt(function() {
|
|
9462
9462
|
return function() {
|
|
9463
9463
|
document.removeEventListener("mousemove", p.current), document.removeEventListener("mouseup", h.current), document.removeEventListener("touchmove", p.current), document.removeEventListener("touchend", h.current), p.current = null, h.current = null;
|
|
9464
9464
|
};
|
|
@@ -10943,8 +10943,8 @@ const _B = {
|
|
|
10943
10943
|
getPrefixCls: I,
|
|
10944
10944
|
direction: N,
|
|
10945
10945
|
button: P
|
|
10946
|
-
} = Ht(st), _ = (n = w ?? (P == null ? void 0 : P.autoInsertSpace)) !== null && n !== void 0 ? n : !0, A = I("btn", i), [k, H, F] = zB(A), V = Ht(br), W = h ?? V, J = Ht(dy), X = Xt(() => AB(o), [o]), [q, ae] =
|
|
10947
|
-
|
|
10946
|
+
} = Ht(st), _ = (n = w ?? (P == null ? void 0 : P.autoInsertSpace)) !== null && n !== void 0 ? n : !0, A = I("btn", i), [k, H, F] = zB(A), V = Ht(br), W = h ?? V, J = Ht(dy), X = Xt(() => AB(o), [o]), [q, ae] = Et(X.loading), [Q, G] = Et(!1), te = mr(t, /* @__PURE__ */ bT()), U = Yl.count(y) === 1 && !b && !Jc(D);
|
|
10947
|
+
Mt(() => {
|
|
10948
10948
|
let ze = null;
|
|
10949
10949
|
X.delay > 0 ? ze = setTimeout(() => {
|
|
10950
10950
|
ze = null, ae(!0);
|
|
@@ -10953,7 +10953,7 @@ const _B = {
|
|
|
10953
10953
|
ze && (clearTimeout(ze), ze = null);
|
|
10954
10954
|
}
|
|
10955
10955
|
return Fe;
|
|
10956
|
-
}, [X]),
|
|
10956
|
+
}, [X]), Mt(() => {
|
|
10957
10957
|
if (!te || !te.current || !_)
|
|
10958
10958
|
return;
|
|
10959
10959
|
const ze = te.current.textContent;
|
|
@@ -11498,9 +11498,9 @@ var XB = function(t) {
|
|
|
11498
11498
|
}
|
|
11499
11499
|
i && oe.keyCode === $e.TAB && P.current.changeActive(!oe.shiftKey);
|
|
11500
11500
|
}
|
|
11501
|
-
|
|
11501
|
+
Mt(function() {
|
|
11502
11502
|
i && (H(!0), V());
|
|
11503
|
-
}, [i]),
|
|
11503
|
+
}, [i]), Mt(function() {
|
|
11504
11504
|
return function() {
|
|
11505
11505
|
clearTimeout(ae.current);
|
|
11506
11506
|
};
|
|
@@ -13574,14 +13574,14 @@ function _y() {
|
|
|
13574
13574
|
t[n] = arguments[n];
|
|
13575
13575
|
var r = t[0], a = t[1], o = a === void 0 ? {} : a, i = JB(o) ? {
|
|
13576
13576
|
form: o
|
|
13577
|
-
} : o, c = i.form, l =
|
|
13577
|
+
} : o, c = i.form, l = Et(), s = ne(l, 2), d = s[0], f = s[1], m = Xt(function() {
|
|
13578
13578
|
return G9(d);
|
|
13579
13579
|
}, [d]), p = Be(m);
|
|
13580
13580
|
p.current = m;
|
|
13581
13581
|
var h = Ht(da), v = c || h, g = v && v._init;
|
|
13582
13582
|
process.env.NODE_ENV !== "production" && dt(t.length === 2 ? c ? g : !0 : g, "useWatch requires a form instance since it can not auto detect from context.");
|
|
13583
13583
|
var y = _n(r), b = Be(y);
|
|
13584
|
-
return b.current = y, BH(y),
|
|
13584
|
+
return b.current = y, BH(y), Mt(
|
|
13585
13585
|
function() {
|
|
13586
13586
|
if (g) {
|
|
13587
13587
|
var C = v.getFieldsValue, x = v.getInternalHooks, S = x(Y2), L = S.registerWatch, E = function(O, T) {
|
|
@@ -16147,9 +16147,9 @@ function dW(e) {
|
|
|
16147
16147
|
return "+ ".concat(e.length, " ...");
|
|
16148
16148
|
}
|
|
16149
16149
|
function fW(e, t) {
|
|
16150
|
-
var n = e.prefixCls, r = n === void 0 ? "rc-overflow" : n, a = e.data, o = a === void 0 ? [] : a, i = e.renderItem, c = e.renderRawItem, l = e.itemKey, s = e.itemWidth, d = s === void 0 ? 10 : s, f = e.ssr, m = e.style, p = e.className, h = e.maxCount, v = e.renderRest, g = e.renderRawRest, y = e.suffix, b = e.component, C = b === void 0 ? "div" : b, x = e.itemComponent, S = e.onVisibleChange, L = mt(e, uW), E = f === "full", M = oW(), w = Yo(M, null), z = ne(w, 2), O = z[0], T = z[1], D = O || 0, $ = Yo(M, /* @__PURE__ */ new Map()), R = ne($, 2), I = R[0], N = R[1], P = Yo(M, 0), _ = ne(P, 2), A = _[0], k = _[1], H = Yo(M, 0), F = ne(H, 2), V = F[0], W = F[1], J = Yo(M, 0), X = ne(J, 2), q = X[0], ae = X[1], Q =
|
|
16150
|
+
var n = e.prefixCls, r = n === void 0 ? "rc-overflow" : n, a = e.data, o = a === void 0 ? [] : a, i = e.renderItem, c = e.renderRawItem, l = e.itemKey, s = e.itemWidth, d = s === void 0 ? 10 : s, f = e.ssr, m = e.style, p = e.className, h = e.maxCount, v = e.renderRest, g = e.renderRawRest, y = e.suffix, b = e.component, C = b === void 0 ? "div" : b, x = e.itemComponent, S = e.onVisibleChange, L = mt(e, uW), E = f === "full", M = oW(), w = Yo(M, null), z = ne(w, 2), O = z[0], T = z[1], D = O || 0, $ = Yo(M, /* @__PURE__ */ new Map()), R = ne($, 2), I = R[0], N = R[1], P = Yo(M, 0), _ = ne(P, 2), A = _[0], k = _[1], H = Yo(M, 0), F = ne(H, 2), V = F[0], W = F[1], J = Yo(M, 0), X = ne(J, 2), q = X[0], ae = X[1], Q = Et(null), G = ne(Q, 2), K = G[0], te = G[1], U = Et(null), oe = ne(U, 2), re = oe[0], ue = oe[1], ie = u.useMemo(function() {
|
|
16151
16151
|
return re === null && E ? Number.MAX_SAFE_INTEGER : re || 0;
|
|
16152
|
-
}, [re, O]), fe =
|
|
16152
|
+
}, [re, O]), fe = Et(!1), pe = ne(fe, 2), ge = pe[0], Ce = pe[1], he = "".concat(r, "-item"), be = Math.max(A, V), Ee = h === gC, Ne = o.length && Ee, Pe = h === hC, He = Ne || typeof h == "number" && o.length > h, De = Xt(function() {
|
|
16153
16153
|
var Je = o;
|
|
16154
16154
|
return Ne ? O === null && E ? Je = o : Je = o.slice(0, Math.min(o.length, D / d)) : typeof h == "number" && (Je = o.slice(0, h)), Je;
|
|
16155
16155
|
}, [o, d, O, h, Ne]), ze = Xt(function() {
|
|
@@ -16354,7 +16354,7 @@ var im = function(t) {
|
|
|
16354
16354
|
}, CW = function(t) {
|
|
16355
16355
|
var n = t.id, r = t.prefixCls, a = t.values, o = t.open, i = t.searchValue, c = t.autoClearSearchValue, l = t.inputRef, s = t.placeholder, d = t.disabled, f = t.mode, m = t.showSearch, p = t.autoFocus, h = t.autoComplete, v = t.activeDescendantId, g = t.tabIndex, y = t.removeIcon, b = t.maxTagCount, C = t.maxTagTextLength, x = t.maxTagPlaceholder, S = x === void 0 ? function(te) {
|
|
16356
16356
|
return "+ ".concat(te.length, " ...");
|
|
16357
|
-
} : x, L = t.tagRender, E = t.onToggleOpen, M = t.onRemove, w = t.onInputChange, z = t.onInputPaste, O = t.onInputKeyDown, T = t.onInputMouseDown, D = t.onInputCompositionStart, $ = t.onInputCompositionEnd, R = u.useRef(null), I =
|
|
16357
|
+
} : x, L = t.tagRender, E = t.onToggleOpen, M = t.onRemove, w = t.onInputChange, z = t.onInputPaste, O = t.onInputKeyDown, T = t.onInputMouseDown, D = t.onInputCompositionStart, $ = t.onInputCompositionEnd, R = u.useRef(null), I = Et(0), N = ne(I, 2), P = N[0], _ = N[1], A = Et(!1), k = ne(A, 2), H = k[0], F = k[1], V = "".concat(r, "-selection"), W = o || f === "multiple" && c === !1 || f === "tags" ? i : "", J = f === "tags" || f === "multiple" && c === !1 || m && (o || H);
|
|
16358
16358
|
bW(function() {
|
|
16359
16359
|
_(R.current.scrollWidth);
|
|
16360
16360
|
}, [W]);
|
|
@@ -17766,7 +17766,7 @@ function GW(e, t, n) {
|
|
|
17766
17766
|
var v = e(p);
|
|
17767
17767
|
c.current.get(v), h ? (c.current.set(v, h), f()) : c.current.delete(v);
|
|
17768
17768
|
}
|
|
17769
|
-
return
|
|
17769
|
+
return Mt(function() {
|
|
17770
17770
|
return d;
|
|
17771
17771
|
}, []), [m, f, l.current, o];
|
|
17772
17772
|
}
|
|
@@ -17998,7 +17998,7 @@ function tU(e, t) {
|
|
|
17998
17998
|
return Object.values($.maps).reduce(function(We, Ge) {
|
|
17999
17999
|
return We + Ge;
|
|
18000
18000
|
}, 0);
|
|
18001
|
-
}, [$.id, $.maps]), P = I && d && (Math.max(i * d.length, N) > o || !!v), _ = h === "rtl", A = Z(r, j({}, "".concat(r, "-rtl"), _), a), k = d || ZW, H = Be(), F = Be(), V = Be(), W =
|
|
18001
|
+
}, [$.id, $.maps]), P = I && d && (Math.max(i * d.length, N) > o || !!v), _ = h === "rtl", A = Z(r, j({}, "".concat(r, "-rtl"), _), a), k = d || ZW, H = Be(), F = Be(), V = Be(), W = Et(0), J = ne(W, 2), X = J[0], q = J[1], ae = Et(0), Q = ne(ae, 2), G = Q[0], K = Q[1], te = Et(!1), U = ne(te, 2), oe = U[0], re = U[1], ue = function() {
|
|
18002
18002
|
re(!0);
|
|
18003
18003
|
}, ie = function() {
|
|
18004
18004
|
re(!1);
|
|
@@ -18263,13 +18263,13 @@ var aU = function(t, n) {
|
|
|
18263
18263
|
}
|
|
18264
18264
|
g(U.value, G, te);
|
|
18265
18265
|
};
|
|
18266
|
-
|
|
18266
|
+
Mt(function() {
|
|
18267
18267
|
H(y !== !1 ? N(0) : -1);
|
|
18268
18268
|
}, [T.length, s]);
|
|
18269
18269
|
var F = u.useCallback(function(Q) {
|
|
18270
18270
|
return x.has(Q) && l !== "combobox";
|
|
18271
18271
|
}, [l, xe(x).toString(), x.size]);
|
|
18272
|
-
|
|
18272
|
+
Mt(function() {
|
|
18273
18273
|
var Q = setTimeout(function() {
|
|
18274
18274
|
if (!c && i && x.size === 1) {
|
|
18275
18275
|
var K = Array.from(x)[0], te = T.findIndex(function(U) {
|
|
@@ -22664,8 +22664,8 @@ const Im = {
|
|
|
22664
22664
|
onBreakpoint: g
|
|
22665
22665
|
} = e, y = gq(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
|
|
22666
22666
|
siderHook: b
|
|
22667
|
-
} = Ht(dq), [C, x] =
|
|
22668
|
-
|
|
22667
|
+
} = Ht(dq), [C, x] = Et("collapsed" in e ? e.collapsed : i), [S, L] = Et(!1);
|
|
22668
|
+
Mt(() => {
|
|
22669
22669
|
"collapsed" in e && x(e.collapsed);
|
|
22670
22670
|
}, [e.collapsed]);
|
|
22671
22671
|
const E = (N, P) => {
|
|
@@ -22675,7 +22675,7 @@ const Im = {
|
|
|
22675
22675
|
} = Ht(st), w = M("layout-sider", n), [z, O, T] = pq(w), D = Be();
|
|
22676
22676
|
D.current = (N) => {
|
|
22677
22677
|
L(N.matches), g == null || g(N.matches), C !== N.matches && E(N.matches, "responsive");
|
|
22678
|
-
},
|
|
22678
|
+
}, Mt(() => {
|
|
22679
22679
|
function N(_) {
|
|
22680
22680
|
return D.current(_);
|
|
22681
22681
|
}
|
|
@@ -22701,7 +22701,7 @@ const Im = {
|
|
|
22701
22701
|
P == null || P.removeListener(N);
|
|
22702
22702
|
}
|
|
22703
22703
|
};
|
|
22704
|
-
}, [h]),
|
|
22704
|
+
}, [h]), Mt(() => {
|
|
22705
22705
|
const N = hq("ant-sider-");
|
|
22706
22706
|
return b.addSider(N), () => b.removeSider(N);
|
|
22707
22707
|
}, []);
|
|
@@ -30864,13 +30864,13 @@ var LY = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "fa
|
|
|
30864
30864
|
process.env.NODE_ENV !== "production" && (u5.displayName = "PlusOutlined");
|
|
30865
30865
|
const _s = /* @__PURE__ */ I2(null);
|
|
30866
30866
|
var MY = function(t) {
|
|
30867
|
-
var n = t.activeTabOffset, r = t.horizontal, a = t.rtl, o = t.indicator, i = o === void 0 ? {} : o, c = i.size, l = i.align, s = l === void 0 ? "center" : l, d =
|
|
30867
|
+
var n = t.activeTabOffset, r = t.horizontal, a = t.rtl, o = t.indicator, i = o === void 0 ? {} : o, c = i.size, l = i.align, s = l === void 0 ? "center" : l, d = Et(), f = ne(d, 2), m = f[0], p = f[1], h = Be(), v = ee.useCallback(function(y) {
|
|
30868
30868
|
return typeof c == "function" ? c(y) : typeof c == "number" ? c : y;
|
|
30869
30869
|
}, [c]);
|
|
30870
30870
|
function g() {
|
|
30871
30871
|
It.cancel(h.current);
|
|
30872
30872
|
}
|
|
30873
|
-
return
|
|
30873
|
+
return Mt(function() {
|
|
30874
30874
|
var y = {};
|
|
30875
30875
|
if (n)
|
|
30876
30876
|
if (r) {
|
|
@@ -30917,7 +30917,7 @@ function Ym(e, t) {
|
|
|
30917
30917
|
}
|
|
30918
30918
|
var zY = 0.1, Xm = 0.01, Tl = 20, Qm = Math.pow(0.995, Tl);
|
|
30919
30919
|
function NY(e, t) {
|
|
30920
|
-
var n =
|
|
30920
|
+
var n = Et(), r = ne(n, 2), a = r[0], o = r[1], i = Et(0), c = ne(i, 2), l = c[0], s = c[1], d = Et(0), f = ne(d, 2), m = f[0], p = f[1], h = Et(), v = ne(h, 2), g = v[0], y = v[1], b = Be();
|
|
30921
30921
|
function C(w) {
|
|
30922
30922
|
var z = w.touches[0], O = z.screenX, T = z.screenY;
|
|
30923
30923
|
o({
|
|
@@ -30993,7 +30993,7 @@ function NY(e, t) {
|
|
|
30993
30993
|
}, []);
|
|
30994
30994
|
}
|
|
30995
30995
|
function dx(e) {
|
|
30996
|
-
var t =
|
|
30996
|
+
var t = Et(0), n = ne(t, 2), r = n[0], a = n[1], o = Be(0), i = Be();
|
|
30997
30997
|
return i.current = e, ta(function() {
|
|
30998
30998
|
var c;
|
|
30999
30999
|
(c = i.current) === null || c === void 0 || c.call(i);
|
|
@@ -31002,7 +31002,7 @@ function dx(e) {
|
|
|
31002
31002
|
};
|
|
31003
31003
|
}
|
|
31004
31004
|
function $Y(e) {
|
|
31005
|
-
var t = Be([]), n =
|
|
31005
|
+
var t = Be([]), n = Et({}), r = ne(n, 2), a = r[1], o = Be(typeof e == "function" ? e() : e), i = dx(function() {
|
|
31006
31006
|
var l = o.current;
|
|
31007
31007
|
t.current.forEach(function(s) {
|
|
31008
31008
|
l = s(l);
|
|
@@ -31089,7 +31089,7 @@ var px = /* @__PURE__ */ u.forwardRef(function(e, t) {
|
|
|
31089
31089
|
});
|
|
31090
31090
|
process.env.NODE_ENV !== "production" && (Tu.displayName = "ExtraContent");
|
|
31091
31091
|
var RY = /* @__PURE__ */ u.forwardRef(function(e, t) {
|
|
31092
|
-
var n = e.prefixCls, r = e.id, a = e.tabs, o = e.locale, i = e.mobile, c = e.more, l = c === void 0 ? {} : c, s = e.style, d = e.className, f = e.editable, m = e.tabBarGutter, p = e.rtl, h = e.removeAriaLabel, v = e.onTabClick, g = e.getPopupContainer, y = e.popupClassName, b =
|
|
31092
|
+
var n = e.prefixCls, r = e.id, a = e.tabs, o = e.locale, i = e.mobile, c = e.more, l = c === void 0 ? {} : c, s = e.style, d = e.className, f = e.editable, m = e.tabBarGutter, p = e.rtl, h = e.removeAriaLabel, v = e.onTabClick, g = e.getPopupContainer, y = e.popupClassName, b = Et(!1), C = ne(b, 2), x = C[0], S = C[1], L = Et(null), E = ne(L, 2), M = E[0], w = E[1], z = l.icon, O = z === void 0 ? "More" : z, T = "".concat(r, "-more-popup"), D = "".concat(n, "-dropdown"), $ = M !== null ? "".concat(T, "-").concat(M) : null, R = o == null ? void 0 : o.dropdownAriaLabel;
|
|
31093
31093
|
function I(F, V) {
|
|
31094
31094
|
F.preventDefault(), F.stopPropagation(), f.onEdit("remove", {
|
|
31095
31095
|
key: V,
|
|
@@ -31162,10 +31162,10 @@ var RY = /* @__PURE__ */ u.forwardRef(function(e, t) {
|
|
|
31162
31162
|
break;
|
|
31163
31163
|
}
|
|
31164
31164
|
}
|
|
31165
|
-
|
|
31165
|
+
Mt(function() {
|
|
31166
31166
|
var F = document.getElementById($);
|
|
31167
31167
|
F && F.scrollIntoView && F.scrollIntoView(!1);
|
|
31168
|
-
}, [M]),
|
|
31168
|
+
}, [M]), Mt(function() {
|
|
31169
31169
|
x || w(null);
|
|
31170
31170
|
}, [x]);
|
|
31171
31171
|
var A = j({}, p ? "marginRight" : "marginLeft", m);
|
|
@@ -31276,12 +31276,12 @@ var TY = function(t) {
|
|
|
31276
31276
|
!O && v && v({
|
|
31277
31277
|
direction: me > ye ? "top" : "bottom"
|
|
31278
31278
|
});
|
|
31279
|
-
}), N = ne(I, 2), P = N[0], _ = N[1], A =
|
|
31279
|
+
}), N = ne(I, 2), P = N[0], _ = N[1], A = Et([0, 0]), k = ne(A, 2), H = k[0], F = k[1], V = Et([0, 0]), W = ne(V, 2), J = W[0], X = W[1], q = Et([0, 0]), ae = ne(q, 2), Q = ae[0], G = ae[1], K = Et([0, 0]), te = ne(K, 2), U = te[0], oe = te[1], re = $Y(/* @__PURE__ */ new Map()), ue = ne(re, 2), ie = ue[0], fe = ue[1], pe = wY(C, ie, J[0]), ge = cl(H, O), Ce = cl(J, O), he = cl(Q, O), be = cl(U, O), Ee = Math.floor(ge) < Math.floor(Ce + he), Ne = Ee ? ge - be : ge - he, Pe = "".concat(b, "-nav-operations-hidden"), He = 0, De = 0;
|
|
31280
31280
|
O && c ? (He = 0, De = Math.max(0, Ce - Ne)) : (He = Math.min(0, Ne - Ce), De = 0);
|
|
31281
31281
|
function ze(me) {
|
|
31282
31282
|
return me < He ? He : me > De ? De : me;
|
|
31283
31283
|
}
|
|
31284
|
-
var Fe = Be(null), ke =
|
|
31284
|
+
var Fe = Be(null), ke = Et(), Me = ne(ke, 2), se = Me[0], Se = Me[1];
|
|
31285
31285
|
function ve() {
|
|
31286
31286
|
Se(Date.now());
|
|
31287
31287
|
}
|
|
@@ -31296,7 +31296,7 @@ var TY = function(t) {
|
|
|
31296
31296
|
});
|
|
31297
31297
|
}
|
|
31298
31298
|
return Ee ? (O ? Re(R, me) : Re(_, ye), de(), ve(), !0) : !1;
|
|
31299
|
-
}),
|
|
31299
|
+
}), Mt(function() {
|
|
31300
31300
|
return de(), se && (Fe.current = setTimeout(function() {
|
|
31301
31301
|
Se(0);
|
|
31302
31302
|
}, 100)), de;
|
|
@@ -31370,7 +31370,7 @@ var TY = function(t) {
|
|
|
31370
31370
|
}), Re;
|
|
31371
31371
|
});
|
|
31372
31372
|
};
|
|
31373
|
-
|
|
31373
|
+
Mt(function() {
|
|
31374
31374
|
tt();
|
|
31375
31375
|
}, [C.map(function(me) {
|
|
31376
31376
|
return me.key;
|
|
@@ -31390,9 +31390,9 @@ var TY = function(t) {
|
|
|
31390
31390
|
indicator: g,
|
|
31391
31391
|
rtl: c
|
|
31392
31392
|
}), Ye = Ct.style;
|
|
31393
|
-
|
|
31393
|
+
Mt(function() {
|
|
31394
31394
|
Xe();
|
|
31395
|
-
}, [i, He, De, Zm(ht), Zm(pe), O]),
|
|
31395
|
+
}, [i, He, De, Zm(ht), Zm(pe), O]), Mt(function() {
|
|
31396
31396
|
at();
|
|
31397
31397
|
}, [c]);
|
|
31398
31398
|
var Ae = !!Ue.length, Ke = "".concat(b, "-nav-wrap"), ct, gt, Nt, ce;
|
|
@@ -31531,8 +31531,8 @@ var BY = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
|
|
|
31531
31531
|
return (i || []).filter(function(U) {
|
|
31532
31532
|
return U && nt(U) === "object" && "key" in U;
|
|
31533
31533
|
});
|
|
31534
|
-
}, [i]), D = c === "rtl", $ = jY(f), R =
|
|
31535
|
-
|
|
31534
|
+
}, [i]), D = c === "rtl", $ = jY(f), R = Et(!1), I = ne(R, 2), N = I[0], P = I[1];
|
|
31535
|
+
Mt(function() {
|
|
31536
31536
|
P(ys());
|
|
31537
31537
|
}, []);
|
|
31538
31538
|
var _ = Jt(function() {
|
|
@@ -31541,12 +31541,12 @@ var BY = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
|
|
|
31541
31541
|
}, {
|
|
31542
31542
|
value: l,
|
|
31543
31543
|
defaultValue: s
|
|
31544
|
-
}), A = ne(_, 2), k = A[0], H = A[1], F =
|
|
31544
|
+
}), A = ne(_, 2), k = A[0], H = A[1], F = Et(function() {
|
|
31545
31545
|
return T.findIndex(function(U) {
|
|
31546
31546
|
return U.key === k;
|
|
31547
31547
|
});
|
|
31548
31548
|
}), V = ne(F, 2), W = V[0], J = V[1];
|
|
31549
|
-
|
|
31549
|
+
Mt(function() {
|
|
31550
31550
|
var U = T.findIndex(function(re) {
|
|
31551
31551
|
return re.key === k;
|
|
31552
31552
|
});
|
|
@@ -31561,7 +31561,7 @@ var BY = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
|
|
|
31561
31561
|
var X = Jt(null, {
|
|
31562
31562
|
value: n
|
|
31563
31563
|
}), q = ne(X, 2), ae = q[0], Q = q[1];
|
|
31564
|
-
|
|
31564
|
+
Mt(function() {
|
|
31565
31565
|
n || (Q("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : tp)), tp += 1);
|
|
31566
31566
|
}, []);
|
|
31567
31567
|
function G(U, oe) {
|
|
@@ -36052,11 +36052,11 @@ function Ax(e, t) {
|
|
|
36052
36052
|
}, [e, t]);
|
|
36053
36053
|
}
|
|
36054
36054
|
var jQ = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"], BQ = /* @__PURE__ */ Cr(function(e, t) {
|
|
36055
|
-
var n = e.autoComplete, r = e.onChange, a = e.onFocus, o = e.onBlur, i = e.onPressEnter, c = e.onKeyDown, l = e.onKeyUp, s = e.prefixCls, d = s === void 0 ? "rc-input" : s, f = e.disabled, m = e.htmlSize, p = e.className, h = e.maxLength, v = e.suffix, g = e.showCount, y = e.count, b = e.type, C = b === void 0 ? "text" : b, x = e.classes, S = e.classNames, L = e.styles, E = e.onCompositionStart, M = e.onCompositionEnd, w = mt(e, jQ), z =
|
|
36055
|
+
var n = e.autoComplete, r = e.onChange, a = e.onFocus, o = e.onBlur, i = e.onPressEnter, c = e.onKeyDown, l = e.onKeyUp, s = e.prefixCls, d = s === void 0 ? "rc-input" : s, f = e.disabled, m = e.htmlSize, p = e.className, h = e.maxLength, v = e.suffix, g = e.showCount, y = e.count, b = e.type, C = b === void 0 ? "text" : b, x = e.classes, S = e.classNames, L = e.styles, E = e.onCompositionStart, M = e.onCompositionEnd, w = mt(e, jQ), z = Et(!1), O = ne(z, 2), T = O[0], D = O[1], $ = Be(!1), R = Be(!1), I = Be(null), N = Be(null), P = function(be) {
|
|
36056
36056
|
I.current && Dx(I.current, be);
|
|
36057
36057
|
}, _ = Jt(e.defaultValue, {
|
|
36058
36058
|
value: e.value
|
|
36059
|
-
}), A = ne(_, 2), k = A[0], H = A[1], F = k == null ? "" : String(k), V =
|
|
36059
|
+
}), A = ne(_, 2), k = A[0], H = A[1], F = k == null ? "" : String(k), V = Et(null), W = ne(V, 2), J = W[0], X = W[1], q = Ax(y, g), ae = q.max || h, Q = q.strategy(F), G = !!ae && Q > ae;
|
|
36060
36060
|
l2(t, function() {
|
|
36061
36061
|
var he;
|
|
36062
36062
|
return {
|
|
@@ -36076,7 +36076,7 @@ var jQ = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
36076
36076
|
input: I.current,
|
|
36077
36077
|
nativeElement: ((he = N.current) === null || he === void 0 ? void 0 : he.nativeElement) || I.current
|
|
36078
36078
|
};
|
|
36079
|
-
}),
|
|
36079
|
+
}), Mt(function() {
|
|
36080
36080
|
D(function(he) {
|
|
36081
36081
|
return he && f ? !1 : he;
|
|
36082
36082
|
});
|
|
@@ -36094,7 +36094,7 @@ var jQ = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
36094
36094
|
return;
|
|
36095
36095
|
H(Pe), I.current && g0(I.current, be, r, Pe);
|
|
36096
36096
|
};
|
|
36097
|
-
|
|
36097
|
+
Mt(function() {
|
|
36098
36098
|
if (J) {
|
|
36099
36099
|
var he;
|
|
36100
36100
|
(he = I.current) === null || he === void 0 || he.setSelectionRange.apply(he, xe(J));
|
|
@@ -36230,7 +36230,7 @@ function VQ(e, t) {
|
|
|
36230
36230
|
return [r, a];
|
|
36231
36231
|
}
|
|
36232
36232
|
var WQ = function() {
|
|
36233
|
-
var t =
|
|
36233
|
+
var t = Et(!1), n = ne(t, 2), r = n[0], a = n[1];
|
|
36234
36234
|
return _t(function() {
|
|
36235
36235
|
a(ys());
|
|
36236
36236
|
}, []), r;
|
|
@@ -36297,7 +36297,7 @@ const GQ = function() {
|
|
|
36297
36297
|
var e = Be(0), t = function() {
|
|
36298
36298
|
It.cancel(e.current);
|
|
36299
36299
|
};
|
|
36300
|
-
return
|
|
36300
|
+
return Mt(function() {
|
|
36301
36301
|
return t;
|
|
36302
36302
|
}, []), function(n) {
|
|
36303
36303
|
t(), e.current = It(function() {
|
|
@@ -37074,7 +37074,7 @@ function jx(e, t) {
|
|
|
37074
37074
|
!((a = e.current) === null || a === void 0) && a.input && ((o = e.current) === null || o === void 0 ? void 0 : o.input.getAttribute("type")) === "password" && (!((i = e.current) === null || i === void 0) && i.input.hasAttribute("value")) && ((c = e.current) === null || c === void 0 || c.input.removeAttribute("value"));
|
|
37075
37075
|
}));
|
|
37076
37076
|
};
|
|
37077
|
-
return
|
|
37077
|
+
return Mt(() => (t && r(), () => n.current.forEach((a) => {
|
|
37078
37078
|
a && clearTimeout(a);
|
|
37079
37079
|
})), []), r;
|
|
37080
37080
|
}
|
|
@@ -37154,7 +37154,7 @@ const Ec = /* @__PURE__ */ Cr((e, t) => {
|
|
|
37154
37154
|
} = Ht(Kn), F = La(A, o), V = oJ(e) || !!k, W = Be(V);
|
|
37155
37155
|
if (process.env.NODE_ENV !== "production") {
|
|
37156
37156
|
const U = Vt("Input");
|
|
37157
|
-
|
|
37157
|
+
Mt(() => {
|
|
37158
37158
|
var oe;
|
|
37159
37159
|
V && !W.current && process.env.NODE_ENV !== "production" && U(document.activeElement === ((oe = z.current) === null || oe === void 0 ? void 0 : oe.input), "usage", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), W.current = V;
|
|
37160
37160
|
}, [V]);
|
|
@@ -37433,7 +37433,7 @@ const yJ = (e) => e ? /* @__PURE__ */ u.createElement(js, null) : /* @__PURE__ *
|
|
|
37433
37433
|
action: r = "click",
|
|
37434
37434
|
visibilityToggle: a = !0,
|
|
37435
37435
|
iconRender: o = yJ
|
|
37436
|
-
} = e, i = u.useContext(br), c = n ?? i, l = typeof a == "object" && a.visible !== void 0, [s, d] =
|
|
37436
|
+
} = e, i = u.useContext(br), c = n ?? i, l = typeof a == "object" && a.visible !== void 0, [s, d] = Et(() => l ? a.visible : !1), f = Be(null);
|
|
37437
37437
|
u.useEffect(() => {
|
|
37438
37438
|
l && d(a.visible);
|
|
37439
37439
|
}, [l, a]);
|
|
@@ -37695,7 +37695,7 @@ var wJ = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "classNa
|
|
|
37695
37695
|
},
|
|
37696
37696
|
nativeElement: ((Me = q.current) === null || Me === void 0 ? void 0 : Me.nativeElement) || Q()
|
|
37697
37697
|
};
|
|
37698
|
-
}),
|
|
37698
|
+
}), Mt(function() {
|
|
37699
37699
|
H(function(Me) {
|
|
37700
37700
|
return !C && Me;
|
|
37701
37701
|
});
|
|
@@ -39139,7 +39139,7 @@ function NZ(e) {
|
|
|
39139
39139
|
name: t
|
|
39140
39140
|
} = e;
|
|
39141
39141
|
const n = Vt("Form");
|
|
39142
|
-
|
|
39142
|
+
Mt(() => {
|
|
39143
39143
|
if (t)
|
|
39144
39144
|
return sl[t] = (sl[t] || 0) + 1, process.env.NODE_ENV !== "production" && n(sl[t] <= 1, "usage", "There exist multiple Form with same `name`."), () => {
|
|
39145
39145
|
sl[t] -= 1;
|
|
@@ -39981,7 +39981,7 @@ var Mc = /* @__PURE__ */ u.createContext(null), JZ = function(t) {
|
|
|
39981
39981
|
flipY: !1
|
|
39982
39982
|
};
|
|
39983
39983
|
function ZZ(e, t, n, r) {
|
|
39984
|
-
var a = Be(null), o = Be([]), i =
|
|
39984
|
+
var a = Be(null), o = Be([]), i = Et(ul), c = ne(i, 2), l = c[0], s = c[1], d = function(h) {
|
|
39985
39985
|
s(ul), v1(ul, l) || r == null || r({
|
|
39986
39986
|
transform: ul,
|
|
39987
39987
|
action: h
|
|
@@ -40039,7 +40039,7 @@ function fL(e, t, n, r) {
|
|
|
40039
40039
|
}
|
|
40040
40040
|
var Ka = 1, eee = 1;
|
|
40041
40041
|
function tee(e, t, n, r, a, o, i) {
|
|
40042
|
-
var c = a.rotate, l = a.scale, s = a.x, d = a.y, f =
|
|
40042
|
+
var c = a.rotate, l = a.scale, s = a.x, d = a.y, f = Et(!1), m = ne(f, 2), p = m[0], h = m[1], v = Be({
|
|
40043
40043
|
diffX: 0,
|
|
40044
40044
|
diffY: 0,
|
|
40045
40045
|
transformX: 0,
|
|
@@ -40070,7 +40070,7 @@ function tee(e, t, n, r, a, o, i) {
|
|
|
40070
40070
|
S.deltaY > 0 && (M = Ka / M), i(M, "wheel", S.clientX, S.clientY);
|
|
40071
40071
|
}
|
|
40072
40072
|
};
|
|
40073
|
-
return
|
|
40073
|
+
return Mt(function() {
|
|
40074
40074
|
var x, S, L, E;
|
|
40075
40075
|
if (t) {
|
|
40076
40076
|
L = P1(window, "mouseup", b, !1), E = P1(window, "mousemove", y, !1);
|
|
@@ -40103,15 +40103,15 @@ function nee(e) {
|
|
|
40103
40103
|
});
|
|
40104
40104
|
}
|
|
40105
40105
|
function mL(e) {
|
|
40106
|
-
var t = e.src, n = e.isCustomPlaceholder, r = e.fallback, a =
|
|
40107
|
-
|
|
40106
|
+
var t = e.src, n = e.isCustomPlaceholder, r = e.fallback, a = Et(n ? "loading" : "normal"), o = ne(a, 2), i = o[0], c = o[1], l = Be(!1), s = i === "error";
|
|
40107
|
+
Mt(function() {
|
|
40108
40108
|
var p = !0;
|
|
40109
40109
|
return nee(t).then(function(h) {
|
|
40110
40110
|
!h && p && c("error");
|
|
40111
40111
|
}), function() {
|
|
40112
40112
|
p = !1;
|
|
40113
40113
|
};
|
|
40114
|
-
}, [t]),
|
|
40114
|
+
}, [t]), Mt(function() {
|
|
40115
40115
|
n && !l.current ? c("loading") : s && c("normal");
|
|
40116
40116
|
}, [t]);
|
|
40117
40117
|
var d = function() {
|
|
@@ -40138,7 +40138,7 @@ function ree(e, t, n, r) {
|
|
|
40138
40138
|
return [c, l];
|
|
40139
40139
|
}
|
|
40140
40140
|
function aee(e, t, n, r, a, o, i) {
|
|
40141
|
-
var c = a.rotate, l = a.scale, s = a.x, d = a.y, f =
|
|
40141
|
+
var c = a.rotate, l = a.scale, s = a.x, d = a.y, f = Et(!1), m = ne(f, 2), p = m[0], h = m[1], v = Be({
|
|
40142
40142
|
point1: {
|
|
40143
40143
|
x: 0,
|
|
40144
40144
|
y: 0
|
|
@@ -40207,7 +40207,7 @@ function aee(e, t, n, r, a, o, i) {
|
|
|
40207
40207
|
O && o(B({}, O), "dragRebound");
|
|
40208
40208
|
}
|
|
40209
40209
|
};
|
|
40210
|
-
return
|
|
40210
|
+
return Mt(function() {
|
|
40211
40211
|
var x;
|
|
40212
40212
|
return n && t && (x = P1(window, "touchmove", function(S) {
|
|
40213
40213
|
return S.preventDefault();
|
|
@@ -40235,8 +40235,8 @@ var oee = ["fallback", "src", "imgRef"], iee = ["prefixCls", "src", "alt", "imag
|
|
|
40235
40235
|
}
|
|
40236
40236
|
}, o, s));
|
|
40237
40237
|
}, pL = function(t) {
|
|
40238
|
-
var n = t.prefixCls, r = t.src, a = t.alt, o = t.imageInfo, i = t.fallback, c = t.movable, l = c === void 0 ? !0 : c, s = t.onClose, d = t.visible, f = t.icons, m = f === void 0 ? {} : f, p = t.rootClassName, h = t.closeIcon, v = t.getContainer, g = t.current, y = g === void 0 ? 0 : g, b = t.count, C = b === void 0 ? 1 : b, x = t.countRender, S = t.scaleStep, L = S === void 0 ? 0.5 : S, E = t.minScale, M = E === void 0 ? 1 : E, w = t.maxScale, z = w === void 0 ? 50 : w, O = t.transitionName, T = O === void 0 ? "zoom" : O, D = t.maskTransitionName, $ = D === void 0 ? "fade" : D, R = t.imageRender, I = t.imgCommonProps, N = t.toolbarRender, P = t.onTransform, _ = t.onChange, A = mt(t, iee), k = Be(), H = Ht(Mc), F = H && C > 1, V = H && C >= 1, W =
|
|
40239
|
-
|
|
40238
|
+
var n = t.prefixCls, r = t.src, a = t.alt, o = t.imageInfo, i = t.fallback, c = t.movable, l = c === void 0 ? !0 : c, s = t.onClose, d = t.visible, f = t.icons, m = f === void 0 ? {} : f, p = t.rootClassName, h = t.closeIcon, v = t.getContainer, g = t.current, y = g === void 0 ? 0 : g, b = t.count, C = b === void 0 ? 1 : b, x = t.countRender, S = t.scaleStep, L = S === void 0 ? 0.5 : S, E = t.minScale, M = E === void 0 ? 1 : E, w = t.maxScale, z = w === void 0 ? 50 : w, O = t.transitionName, T = O === void 0 ? "zoom" : O, D = t.maskTransitionName, $ = D === void 0 ? "fade" : D, R = t.imageRender, I = t.imgCommonProps, N = t.toolbarRender, P = t.onTransform, _ = t.onChange, A = mt(t, iee), k = Be(), H = Ht(Mc), F = H && C > 1, V = H && C >= 1, W = Et(!0), J = ne(W, 2), X = J[0], q = J[1], ae = ZZ(k, M, z, P), Q = ae.transform, G = ae.resetTransform, K = ae.updateTransform, te = ae.dispatchZoomChange, U = tee(k, l, d, L, Q, K, te), oe = U.isMoving, re = U.onMouseDown, ue = U.onWheel, ie = aee(k, l, d, M, Q, K, te), fe = ie.isTouching, pe = ie.onTouchStart, ge = ie.onTouchMove, Ce = ie.onTouchEnd, he = Q.rotate, be = Q.scale, Ee = Z(j({}, "".concat(n, "-moving"), oe));
|
|
40239
|
+
Mt(function() {
|
|
40240
40240
|
X || q(!0);
|
|
40241
40241
|
}, [X]);
|
|
40242
40242
|
var Ne = function() {
|
|
@@ -40275,7 +40275,7 @@ var oee = ["fallback", "src", "imgRef"], iee = ["prefixCls", "src", "alt", "imag
|
|
|
40275
40275
|
scale: 1
|
|
40276
40276
|
}, "doubleClick") : te(Ka + L, "doubleClick", lt.clientX, lt.clientY));
|
|
40277
40277
|
};
|
|
40278
|
-
|
|
40278
|
+
Mt(function() {
|
|
40279
40279
|
var Ve = P1(window, "keydown", Se, !1);
|
|
40280
40280
|
return function() {
|
|
40281
40281
|
Ve.remove();
|
|
@@ -40394,12 +40394,12 @@ function lee(e) {
|
|
|
40394
40394
|
var see = ["visible", "onVisibleChange", "getContainer", "current", "movable", "minScale", "maxScale", "countRender", "closeIcon", "onChange", "onTransform", "toolbarRender", "imageRender"], uee = ["src"], dee = function(t) {
|
|
40395
40395
|
var n, r = t.previewPrefixCls, a = r === void 0 ? "rc-image-preview" : r, o = t.children, i = t.icons, c = i === void 0 ? {} : i, l = t.items, s = t.preview, d = t.fallback, f = nt(s) === "object" ? s : {}, m = f.visible, p = f.onVisibleChange, h = f.getContainer, v = f.current, g = f.movable, y = f.minScale, b = f.maxScale, C = f.countRender, x = f.closeIcon, S = f.onChange, L = f.onTransform, E = f.toolbarRender, M = f.imageRender, w = mt(f, see), z = lee(l), O = ne(z, 3), T = O[0], D = O[1], $ = O[2], R = Jt(0, {
|
|
40396
40396
|
value: v
|
|
40397
|
-
}), I = ne(R, 2), N = I[0], P = I[1], _ =
|
|
40397
|
+
}), I = ne(R, 2), N = I[0], P = I[1], _ = Et(!1), A = ne(_, 2), k = A[0], H = A[1], F = ((n = T[N]) === null || n === void 0 ? void 0 : n.data) || {}, V = F.src, W = mt(F, uee), J = Jt(!!m, {
|
|
40398
40398
|
value: m,
|
|
40399
40399
|
onChange: function(fe, pe) {
|
|
40400
40400
|
p == null || p(fe, pe, N);
|
|
40401
40401
|
}
|
|
40402
|
-
}), X = ne(J, 2), q = X[0], ae = X[1], Q =
|
|
40402
|
+
}), X = ne(J, 2), q = X[0], ae = X[1], Q = Et(null), G = ne(Q, 2), K = G[0], te = G[1], U = u.useCallback(function(ie, fe, pe, ge) {
|
|
40403
40403
|
var Ce = $ ? T.findIndex(function(he) {
|
|
40404
40404
|
return he.data.src === fe;
|
|
40405
40405
|
}) : T.findIndex(function(he) {
|
|
@@ -40471,7 +40471,7 @@ var mee = ["src", "alt", "onPreviewClose", "prefixCls", "previewPrefixCls", "pla
|
|
|
40471
40471
|
src: n,
|
|
40472
40472
|
isCustomPlaceholder: E,
|
|
40473
40473
|
fallback: d
|
|
40474
|
-
}), K = ne(G, 3), te = K[0], U = K[1], oe = K[2], re =
|
|
40474
|
+
}), K = ne(G, 3), te = K[0], U = K[1], oe = K[2], re = Et(null), ue = ne(re, 2), ie = ue[0], fe = ue[1], pe = Ht(Mc), ge = !!v, Ce = function() {
|
|
40475
40475
|
Q(!1), fe(null);
|
|
40476
40476
|
}, he = Z(i, C, S, j({}, "".concat(i, "-error"), oe === "error")), be = Xt(function() {
|
|
40477
40477
|
var He = {};
|
|
@@ -41122,7 +41122,7 @@ var LL = function(t) {
|
|
|
41122
41122
|
return Math.max(1, Math.min(zt, H2(void 0, K, m)));
|
|
41123
41123
|
}
|
|
41124
41124
|
}), oe = ne(U, 2), re = oe[0], ue = oe[1], ie = ee.useState(re), fe = ne(ie, 2), pe = fe[0], ge = fe[1];
|
|
41125
|
-
|
|
41125
|
+
Mt(function() {
|
|
41126
41126
|
ge(re);
|
|
41127
41127
|
}, [re]);
|
|
41128
41128
|
var Ce = y !== P4, he = "current" in t;
|
|
@@ -43430,7 +43430,7 @@ var _te = {
|
|
|
43430
43430
|
gapPosition: "bottom"
|
|
43431
43431
|
}, kte = function() {
|
|
43432
43432
|
var t = Be([]), n = Be(null);
|
|
43433
|
-
return
|
|
43433
|
+
return Mt(function() {
|
|
43434
43434
|
var r = Date.now(), a = !1;
|
|
43435
43435
|
t.current.forEach(function(o) {
|
|
43436
43436
|
if (o) {
|
|
@@ -45265,7 +45265,7 @@ function Rre(e, t, n) {
|
|
|
45265
45265
|
});
|
|
45266
45266
|
}
|
|
45267
45267
|
function SE(e) {
|
|
45268
|
-
var t = Be(e), n =
|
|
45268
|
+
var t = Be(e), n = Et({}), r = ne(n, 2), a = r[1], o = Be(null), i = Be([]);
|
|
45269
45269
|
function c(l) {
|
|
45270
45270
|
i.current.push(l);
|
|
45271
45271
|
var s = Promise.resolve();
|
|
@@ -45278,7 +45278,7 @@ function SE(e) {
|
|
|
45278
45278
|
}
|
|
45279
45279
|
});
|
|
45280
45280
|
}
|
|
45281
|
-
return
|
|
45281
|
+
return Mt(function() {
|
|
45282
45282
|
return function() {
|
|
45283
45283
|
o.current = null;
|
|
45284
45284
|
};
|
|
@@ -45297,7 +45297,7 @@ function Ire(e) {
|
|
|
45297
45297
|
function o() {
|
|
45298
45298
|
return t.current;
|
|
45299
45299
|
}
|
|
45300
|
-
return
|
|
45300
|
+
return Mt(function() {
|
|
45301
45301
|
return r;
|
|
45302
45302
|
}, []), [a, o];
|
|
45303
45303
|
}
|
|
@@ -46419,7 +46419,7 @@ function Xu(e, t) {
|
|
|
46419
46419
|
}), xe(n);
|
|
46420
46420
|
}
|
|
46421
46421
|
function i1e(e) {
|
|
46422
|
-
const [t, n] =
|
|
46422
|
+
const [t, n] = Et(null);
|
|
46423
46423
|
return [hr((o, i, c) => {
|
|
46424
46424
|
const l = t ?? o, s = Math.min(l || 0, o), d = Math.max(l || 0, o), f = i.slice(s, d + 1).map((h) => e(h)), m = f.some((h) => !c.has(h)), p = [];
|
|
46425
46425
|
return f.forEach((h) => {
|
|
@@ -49006,7 +49006,7 @@ function V1e(e, t) {
|
|
|
49006
49006
|
function W1e(e, t, n) {
|
|
49007
49007
|
const r = n && typeof n == "object" ? n : {}, {
|
|
49008
49008
|
total: a = 0
|
|
49009
|
-
} = r, o = H1e(r, ["total"]), [i, c] =
|
|
49009
|
+
} = r, o = H1e(r, ["total"]), [i, c] = Et(() => ({
|
|
49010
49010
|
current: "defaultCurrent" in o ? o.defaultCurrent : 1,
|
|
49011
49011
|
pageSize: "defaultPageSize" in o ? o.defaultPageSize : jE
|
|
49012
49012
|
})), l = SL(i, o, {
|
|
@@ -51393,7 +51393,7 @@ function F4(e, t) {
|
|
|
51393
51393
|
}
|
|
51394
51394
|
const W2e = (e) => {
|
|
51395
51395
|
const t = Be();
|
|
51396
|
-
return
|
|
51396
|
+
return Mt(() => {
|
|
51397
51397
|
t.current = e;
|
|
51398
51398
|
}), t.current;
|
|
51399
51399
|
}, U2e = (e, t, n) => Xt(() => e === !0 ? {
|
|
@@ -54657,7 +54657,7 @@ const JE = {
|
|
|
54657
54657
|
}
|
|
54658
54658
|
};
|
|
54659
54659
|
function i8({ children: e }) {
|
|
54660
|
-
const [t, n] =
|
|
54660
|
+
const [t, n] = Et(zr), r = Xl((l) => {
|
|
54661
54661
|
var s;
|
|
54662
54662
|
return (s = l == null ? void 0 : l.app) == null ? void 0 : s.theme;
|
|
54663
54663
|
}), a = Xl((l) => {
|
|
@@ -54692,7 +54692,7 @@ function i8({ children: e }) {
|
|
|
54692
54692
|
],
|
|
54693
54693
|
[]
|
|
54694
54694
|
);
|
|
54695
|
-
return
|
|
54695
|
+
return Mt(() => {
|
|
54696
54696
|
const l = w0.get(J1.Language), s = c.find((d) => d.language === l);
|
|
54697
54697
|
s !== void 0 && (n(s.code), Jn.locale(l.toLowerCase()));
|
|
54698
54698
|
}, [a, c]), /* @__PURE__ */ we.jsx(Kr, { theme: i, locale: t, children: e });
|
|
@@ -55101,7 +55101,7 @@ function zoe({
|
|
|
55101
55101
|
}
|
|
55102
55102
|
const Noe = (e, t) => {
|
|
55103
55103
|
const n = Be();
|
|
55104
|
-
return
|
|
55104
|
+
return Mt(() => {
|
|
55105
55105
|
n.current = e;
|
|
55106
55106
|
}, [e, t]), n.current;
|
|
55107
55107
|
}, oM = (e, t, n, r) => e.getFixedT(t, n, r), $oe = (e, t, n, r) => hr(oM(e, t, n, r), [e, t, n, r]), Ooe = (e, t = {}) => {
|
|
@@ -55128,11 +55128,11 @@ const Noe = (e, t) => {
|
|
|
55128
55128
|
} = i;
|
|
55129
55129
|
let s = a || ((S = o.options) == null ? void 0 : S.defaultNS);
|
|
55130
55130
|
s = t1(s) ? [s] : s || ["translation"], (E = (L = o.reportNamespaces).addUsedNamespaces) == null || E.call(L, s);
|
|
55131
|
-
const d = (o.isInitialized || o.initializedStoreOnce) && s.every((M) => poe(M, o, i)), f = $oe(o, t.lng || null, i.nsMode === "fallback" ? s : s[0], l), m = () => f, p = () => oM(o, t.lng || null, i.nsMode === "fallback" ? s : s[0], l), [h, v] =
|
|
55131
|
+
const d = (o.isInitialized || o.initializedStoreOnce) && s.every((M) => poe(M, o, i)), f = $oe(o, t.lng || null, i.nsMode === "fallback" ? s : s[0], l), m = () => f, p = () => oM(o, t.lng || null, i.nsMode === "fallback" ? s : s[0], l), [h, v] = Et(m);
|
|
55132
55132
|
let g = s.join();
|
|
55133
55133
|
t.lng && (g = `${t.lng}${g}`);
|
|
55134
55134
|
const y = Noe(g), b = Be(!0);
|
|
55135
|
-
|
|
55135
|
+
Mt(() => {
|
|
55136
55136
|
const {
|
|
55137
55137
|
bindI18n: M,
|
|
55138
55138
|
bindI18nStore: w
|
|
@@ -55148,7 +55148,7 @@ const Noe = (e, t) => {
|
|
|
55148
55148
|
return M && (o == null || o.on(M, z)), w && (o == null || o.store.on(w, z)), () => {
|
|
55149
55149
|
b.current = !1, o && (M == null || M.split(" ").forEach((O) => o.off(O, z))), w && o && w.split(" ").forEach((O) => o.store.off(O, z));
|
|
55150
55150
|
};
|
|
55151
|
-
}, [o, g]),
|
|
55151
|
+
}, [o, g]), Mt(() => {
|
|
55152
55152
|
b.current && d && v(m);
|
|
55153
55153
|
}, [o, l, d]);
|
|
55154
55154
|
const C = [h, o, d];
|
|
@@ -71273,8 +71273,8 @@ const _h = "https://aquasis.freshdesk.com/api/v2/", V$e = "UtA4JWhMo8w4eWzzgo9",
|
|
|
71273
71273
|
iconName: "paper-plane",
|
|
71274
71274
|
icon: [512, 512, [61913], "f1d8", "M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]
|
|
71275
71275
|
}, { Title: Fh } = Bo, Zr = "HELPDESK.FORM", K$e = "GENERAL.MESSAGES", q$e = ({ onCancel: e }) => {
|
|
71276
|
-
const [t, n] =
|
|
71277
|
-
|
|
71276
|
+
const [t, n] = Et(!1), [r] = mn.useForm(), a = zc(), { requiredField: o } = Y5(), i = yo(J1.AppName);
|
|
71277
|
+
Mt(() => {
|
|
71278
71278
|
Yn.changeLanguage(a);
|
|
71279
71279
|
}, [a]);
|
|
71280
71280
|
const c = [
|
|
@@ -71399,8 +71399,8 @@ const _h = "https://aquasis.freshdesk.com/api/v2/", V$e = "UtA4JWhMo8w4eWzzgo9",
|
|
|
71399
71399
|
};
|
|
71400
71400
|
ple.add(kze);
|
|
71401
71401
|
const G$e = ({ size: e }) => {
|
|
71402
|
-
const [t, n] =
|
|
71403
|
-
|
|
71402
|
+
const [t, n] = Et(!1), r = zc(), a = () => n((c) => !c), o = () => n(!1);
|
|
71403
|
+
Mt(() => {
|
|
71404
71404
|
Yn.changeLanguage(r);
|
|
71405
71405
|
}, [r]);
|
|
71406
71406
|
const i = () => {
|
|
@@ -72265,9 +72265,9 @@ const SOe = {
|
|
|
72265
72265
|
function MOe(e) {
|
|
72266
72266
|
const t = (r) => {
|
|
72267
72267
|
const { language: a, theme: o } = r, i = Poe();
|
|
72268
|
-
return
|
|
72268
|
+
return Mt(() => {
|
|
72269
72269
|
i(EOe(a)), Yn.changeLanguage(a);
|
|
72270
|
-
}, [a]),
|
|
72270
|
+
}, [a]), Mt(() => {
|
|
72271
72271
|
i(LOe(o));
|
|
72272
72272
|
}, [o]), /* @__PURE__ */ we.jsx(e, { ...r });
|
|
72273
72273
|
};
|
|
@@ -73767,12 +73767,7 @@ const tPe = async () => {
|
|
|
73767
73767
|
] }, a)) })
|
|
73768
73768
|
] }) });
|
|
73769
73769
|
}, cPe = Cr(({ changeSlide: e }, t) => {
|
|
73770
|
-
const [n, r] =
|
|
73771
|
-
Et(() => {
|
|
73772
|
-
var s;
|
|
73773
|
-
o != null && o.length && ((s = t.current) == null || s.goTo(o == null ? void 0 : o.length));
|
|
73774
|
-
}, [o == null ? void 0 : o.length]);
|
|
73775
|
-
const i = (s) => ({ file: d, fileList: f }) => {
|
|
73770
|
+
const [n, r] = Et([]), a = mn.useFormInstance(), o = mn.useWatch(Wt.ReleasePages, a), i = (s) => ({ file: d, fileList: f }) => {
|
|
73776
73771
|
const m = s[0], p = s[1], h = o[m];
|
|
73777
73772
|
r(f), jae(d.originFileObj, (v) => {
|
|
73778
73773
|
a.setFieldValue(Wt.ReleasePages, o.toSpliced(m, 1, { ...h, [p]: v }));
|
|
@@ -73837,8 +73832,8 @@ const tPe = async () => {
|
|
|
73837
73832
|
beforeCloseModal: a,
|
|
73838
73833
|
afterSubmit: o
|
|
73839
73834
|
}) => {
|
|
73840
|
-
const [i, c] =
|
|
73841
|
-
|
|
73835
|
+
const [i, c] = Et(!1), [l, s] = Et(!1), [d, f] = Et(0), [m] = mn.useForm(), p = zc(), { getColor: h } = Toe(), v = Be(null), { requiredField: g } = Y5(), { data: y } = mT(), b = mn.useWatch(Wt.ReleasePages, m), C = (P, _) => f(_), x = () => m.resetFields();
|
|
73836
|
+
Mt(() => {
|
|
73842
73837
|
n && (c(!0), m.setFieldsValue({
|
|
73843
73838
|
...n,
|
|
73844
73839
|
[Wt.ReleasePages]: n[Wt.ReleasePages].map((P) => ({
|
|
@@ -73988,8 +73983,8 @@ const tPe = async () => {
|
|
|
73988
73983
|
] });
|
|
73989
73984
|
}, { Title: sPe, Text: uPe } = Bo, dPe = () => {
|
|
73990
73985
|
var E, M;
|
|
73991
|
-
const [e, t] =
|
|
73992
|
-
|
|
73986
|
+
const [e, t] = Et(!1), [n, r] = Et(!1), [a, o] = Et(0), i = zc(), c = Be(null), l = yo(J1.AppId), s = yo(J1.UserId), { data: d } = mT(), { data: f } = oPe({ idApp: l, lastDeployed: !0, userId: s }), m = f == null ? void 0 : f[0], p = d == null ? void 0 : d.find((w) => w.id === l);
|
|
73987
|
+
Mt(() => {
|
|
73993
73988
|
if (f != null && f.length) {
|
|
73994
73989
|
const w = f[0], z = !w.readRelease && !!w.isDeployed;
|
|
73995
73990
|
t(z);
|
|
@@ -1072,4 +1072,4 @@ This could lead to inefficient memoization and unnecessary re-renders.
|
|
|
1072
1072
|
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},aOe=(e,t,n)=>{const{memoize:r,memoizeOptions:o}=t,{inputSelectorResults:a,inputSelectorResultsCopy:i}=e,c=r(()=>({}),...o);if(!(c.apply(null,a)===c.apply(null,i))){let s;try{throw new Error}catch(d){({stack:s}=d)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
1073
1073
|
This means your output selector will likely run more frequently than intended.
|
|
1074
1074
|
Avoid returning a new reference inside your input selector, e.g.
|
|
1075
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:a,secondInputs:i,stack:s})}},iOe={inputStabilityCheck:"once",identityFunctionCheck:"once"};function cOe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function lOe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function sOe(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var $T=e=>Array.isArray(e)?e:[e];function uOe(e){const t=Array.isArray(e[0])?e[0]:e;return sOe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function PT(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var dOe=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...iOe,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:oOe},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:aOe}}},fOe=class{constructor(e){this.value=e}deref(){return this.value}},mOe=typeof WeakRef<"u"?WeakRef:fOe,pOe=0,IT=1;function r3(){return{s:pOe,v:void 0,o:null,p:null}}function TT(e,t={}){let n=r3();const{resultEqualityCheck:r}=t;let o,a=0;function i(){var f;let c=n;const{length:l}=arguments;for(let m=0,p=l;m<p;m++){const h=arguments[m];if(typeof h=="function"||typeof h=="object"&&h!==null){let v=c.o;v===null&&(c.o=v=new WeakMap);const g=v.get(h);g===void 0?(c=r3(),v.set(h,c)):c=g}else{let v=c.p;v===null&&(c.p=v=new Map);const g=v.get(h);g===void 0?(c=r3(),v.set(h,c)):c=g}}const s=c;let d;if(c.s===IT)d=c.v;else if(d=e.apply(null,arguments),a++,r){const m=((f=o==null?void 0:o.deref)==null?void 0:f.call(o))??o;m!=null&&r(m,d)&&(d=m,a!==0&&a--),o=typeof d=="object"&&d!==null||typeof d=="function"?new mOe(d):d}return s.s=IT,s.v=d,d}return i.clearCache=()=>{n=r3(),i.resetResultsCount()},i.resultsCount=()=>a,i.resetResultsCount=()=>{a=0},i}function gOe(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let a=0,i=0,c,l={},s=o.pop();typeof s=="object"&&(l=s,s=o.pop()),cOe(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const d={...n,...l},{memoize:f,memoizeOptions:m=[],argsMemoize:p=TT,argsMemoizeOptions:h=[],devModeChecks:v={}}=d,g=$T(m),y=$T(h),b=uOe(o),C=f(function(){return a++,s.apply(null,arguments)},...g);let x=!0;const S=p(function(){i++;const L=PT(b,arguments);if(c=C.apply(null,L),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:w,inputStabilityCheck:M}=dOe(x,v);if(w.shouldRun&&w.run(s,L,c),M.shouldRun){const z=PT(b,arguments);M.run({inputSelectorResults:L,inputSelectorResultsCopy:z},{memoize:f,memoizeOptions:g},arguments)}x&&(x=!1)}return c},...y);return Object.assign(S,{resultFunc:s,memoizedResultFunc:C,dependencies:b,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>c,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var hOe=gOe(TT),vOe=Object.assign((e,t=hOe)=>{lOe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(a=>e[a]);return t(r,(...a)=>a.reduce((i,c,l)=>(i[n[l]]=c,i),{}))},{withTypes:()=>vOe});function RT(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(process.env.NODE_ENV==="production"?tr(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>KNe(r)&&r.type===e,n}function DT(e){return o2(e)?OT(e,()=>{}):e}function AT(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(process.env.NODE_ENV==="production"?tr(10):"No insert provided for key not already in map");const r=n.insert(t,e);return e.set(t,r),r}function _T(e){const t={},n=[];let r;const o={addCase(a,i){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?tr(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?tr(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const c=typeof a=="string"?a:a.type;if(!c)throw new Error(process.env.NODE_ENV==="production"?tr(28):"`builder.addCase` cannot be called with an empty action type");if(c in t)throw new Error(process.env.NODE_ENV==="production"?tr(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${c}'`);return t[c]=i,o},addMatcher(a,i){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?tr(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:a,reducer:i}),o},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?tr(31):"`builder.addDefaultCase` can only be called once");return r=a,o}};return e(o),[t,n,r]}function bOe(e){return typeof e=="function"}function yOe(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?tr(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,o]=_T(t),a;if(bOe(e))a=()=>DT(e());else{const c=DT(e);a=()=>c}function i(c=a(),l){let s=[n[l.type],...r.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return s.filter(d=>!!d).length===0&&(s=[o]),s.reduce((d,f)=>{if(f)if(vo(d)){const p=f(d,l);return p===void 0?d:p}else{if(o2(d))return OT(d,m=>f(m,l));{const m=f(d,l);if(m===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return d},c)}return i.getInitialState=a,i}var COe=Symbol.for("rtk-slice-createasyncthunk");function SOe(e,t){return`${e}/${t}`}function xOe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[COe];return function(o){const{name:a,reducerPath:i=a}=o;if(!a)throw new Error(process.env.NODE_ENV==="production"?tr(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const c=(typeof o.reducers=="function"?o.reducers(wOe()):o.reducers)||{},l=Object.keys(c),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(C,x){const S=typeof C=="string"?C:C.type;if(!S)throw new Error(process.env.NODE_ENV==="production"?tr(12):"`context.addCase` cannot be called with an empty action type");if(S in s.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?tr(13):"`context.addCase` cannot be called with two reducers for the same action type: "+S);return s.sliceCaseReducersByType[S]=x,d},addMatcher(C,x){return s.sliceMatchers.push({matcher:C,reducer:x}),d},exposeAction(C,x){return s.actionCreators[C]=x,d},exposeCaseReducer(C,x){return s.sliceCaseReducersByName[C]=x,d}};l.forEach(C=>{const x=c[C],S={reducerName:C,type:SOe(a,C),createNotation:typeof o.reducers=="function"};zOe(x)?OOe(S,x,d,t):MOe(S,x,d)});function f(){if(process.env.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?tr(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[C={},x=[],S=void 0]=typeof o.extraReducers=="function"?_T(o.extraReducers):[o.extraReducers],E={...C,...s.sliceCaseReducersByType};return yOe(o.initialState,L=>{for(let w in E)L.addCase(w,E[w]);for(let w of s.sliceMatchers)L.addMatcher(w.matcher,w.reducer);for(let w of x)L.addMatcher(w.matcher,w.reducer);S&&L.addDefaultCase(S)})}const m=C=>C,p=new Map;let h;function v(C,x){return h||(h=f()),h(C,x)}function g(){return h||(h=f()),h.getInitialState()}function y(C,x=!1){function S(L){let w=L[C];if(typeof w>"u"){if(x)w=g();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?tr(15):"selectSlice returned undefined for an uninjected slice reducer")}return w}function E(L=m){const w=AT(p,x,{insert:()=>new WeakMap});return AT(w,L,{insert:()=>{const M={};for(const[z,P]of Object.entries(o.selectors??{}))M[z]=EOe(P,L,g,x);return M}})}return{reducerPath:C,getSelectors:E,get selectors(){return E(S)},selectSlice:S}}const b={name:a,reducer:v,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:g,...y(i),injectInto(C,{reducerPath:x,...S}={}){const E=x??i;return C.inject({reducerPath:E,reducer:v},S),{...b,...y(E,!0)}}};return b}}function EOe(e,t,n,r){function o(a,...i){let c=t(a);if(typeof c>"u"){if(r)c=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?tr(16):"selectState returned undefined for an uninjected slice reducer")}return e(c,...i)}return o.unwrapped=e,o}var LOe=xOe();function wOe(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function MOe({type:e,reducerName:t,createNotation:n},r,o){let a,i;if("reducer"in r){if(n&&!NOe(r))throw new Error(process.env.NODE_ENV==="production"?tr(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=r.reducer,i=r.prepare}else a=r;o.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,i?RT(e,i):RT(e))}function zOe(e){return e._reducerDefinitionType==="asyncThunk"}function NOe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function OOe({type:e,reducerName:t},n,r,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?tr(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:i,pending:c,rejected:l,settled:s,options:d}=n,f=o(e,a,d);r.exposeAction(t,f),i&&r.addCase(f.fulfilled,i),c&&r.addCase(f.pending,c),l&&r.addCase(f.rejected,l),s&&r.addMatcher(f.settled,s),r.exposeCaseReducer(t,{fulfilled:i||o3,pending:c||o3,rejected:l||o3,settled:s||o3})}function o3(){}function tr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const $Oe={theme:$c.Light},POe=LOe({name:"AppState",initialState:$Oe,reducers:{updTheme:(e,{payload:t})=>{e.theme=t},updLanguage:(e,{payload:t})=>{e.language=t}}}),{updTheme:IOe,updLanguage:TOe}=POe.actions;function ROe(e){const t=r=>{const{language:o,theme:a}=r,i=Voe();return O.useEffect(()=>{i(TOe(o)),Un.changeLanguage(o)},[o]),O.useEffect(()=>{i(IOe(a))},[a]),Me.jsx(e,{...r})};return z7(r=>{var o,a;return{language:(o=r==null?void 0:r.app)==null?void 0:o.language,theme:(a=r==null?void 0:r.app)==null?void 0:a.theme}})(t)}function wc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xo(e,t)}var Mc=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var o=this,a=r||function(){};return this.listeners.push(a),this.onSubscribe(),function(){o.listeners=o.listeners.filter(function(i){return i!==a}),o.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}(),a3=typeof window>"u";function lr(){}function DOe(e,t){return typeof e=="function"?e(t):e}function V5(e){return typeof e=="number"&&e>=0&&e!==1/0}function i3(e){return Array.isArray(e)?e:[e]}function kT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c3(e,t,n){return u3(e)?typeof t=="function"?le({},n,{queryKey:e,queryFn:t}):le({},t,{queryKey:e}):e}function P2(e,t,n){return u3(e)?[le({},t,{queryKey:e}),n]:[e||{},t]}function AOe(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function FT(e,t){var n=e.active,r=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,c=e.queryKey,l=e.stale;if(u3(c)){if(r){if(t.queryHash!==W5(c,t.options))return!1}else if(!l3(t.queryKey,c))return!1}var s=AOe(n,a);if(s==="none")return!1;if(s!=="all"){var d=t.isActive();if(s==="active"&&!d||s==="inactive"&&d)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof o=="boolean"&&t.isFetching()!==o||i&&!i(t))}function jT(e,t){var n=e.exact,r=e.fetching,o=e.predicate,a=e.mutationKey;if(u3(a)){if(!t.options.mutationKey)return!1;if(n){if(Co(t.options.mutationKey)!==Co(a))return!1}else if(!l3(t.options.mutationKey,a))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function W5(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||Co;return n(e)}function Co(e){var t=i3(e);return _Oe(t)}function _Oe(e){return JSON.stringify(e,function(t,n){return U5(n)?Object.keys(n).sort().reduce(function(r,o){return r[o]=n[o],r},{}):n})}function l3(e,t){return BT(i3(e),i3(t))}function BT(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!BT(e[n],t[n])}):!1}function s3(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||U5(e)&&U5(t)){for(var r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),a=o.length,i=n?[]:{},c=0,l=0;l<a;l++){var s=n?l:o[l];i[s]=s3(e[s],t[s]),i[s]===e[s]&&c++}return r===a&&c===r?e:i}return t}function kOe(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function U5(e){if(!HT(e))return!1;var t=e.constructor;if(typeof t>"u")return!0;var n=t.prototype;return!(!HT(n)||!n.hasOwnProperty("isPrototypeOf"))}function HT(e){return Object.prototype.toString.call(e)==="[object Object]"}function u3(e){return typeof e=="string"||Array.isArray(e)}function FOe(e){return new Promise(function(t){setTimeout(t,e)})}function VT(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function WT(){if(typeof AbortController=="function")return new AbortController}var jOe=function(e){wc(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(o){var a;if(!a3&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),function(){window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},n.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(c){typeof c=="boolean"?i.setFocused(c):i.onFocus()})},n.setFocused=function(o){this.focused=o,o&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(o){o()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(Mc),zc=new jOe,BOe=function(e){wc(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(o){var a;if(!a3&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),function(){window.removeEventListener("online",i),window.removeEventListener("offline",i)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},n.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(c){typeof c=="boolean"?i.setOnline(c):i.onOnline()})},n.setOnline=function(o){this.online=o,o&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(o){o()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(Mc),d3=new BOe;function HOe(e){return Math.min(1e3*Math.pow(2,e),3e4)}function f3(e){return typeof(e==null?void 0:e.cancel)=="function"}var UT=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function m3(e){return e instanceof UT}var KT=function(t){var n=this,r=!1,o,a,i,c;this.abort=t.abort,this.cancel=function(m){return o==null?void 0:o(m)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(m,p){i=m,c=p});var l=function(p){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(p),a==null||a(),i(p))},s=function(p){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(p),a==null||a(),c(p))},d=function(){return new Promise(function(p){a=p,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){a=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},f=function m(){if(!n.isResolved){var p;try{p=t.fn()}catch(h){p=Promise.reject(h)}o=function(v){if(!n.isResolved&&(s(new UT(v)),n.abort==null||n.abort(),f3(p)))try{p.cancel()}catch{}},n.isTransportCancelable=f3(p),Promise.resolve(p).then(l).catch(function(h){var v,g;if(!n.isResolved){var y=(v=t.retry)!=null?v:3,b=(g=t.retryDelay)!=null?g:HOe,C=typeof b=="function"?b(n.failureCount,h):b,x=y===!0||typeof y=="number"&&n.failureCount<y||typeof y=="function"&&y(n.failureCount,h);if(r||!x){s(h);return}n.failureCount++,t.onFail==null||t.onFail(n.failureCount,h),FOe(C).then(function(){if(!zc.isFocused()||!d3.isOnline())return d()}).then(function(){r?s(h):m()})}})}};f()},VOe=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(n){n()},this.batchNotifyFn=function(n){n()}}var t=e.prototype;return t.batch=function(r){var o;this.transactions++;try{o=r()}finally{this.transactions--,this.transactions||this.flush()}return o},t.schedule=function(r){var o=this;this.transactions?this.queue.push(r):VT(function(){o.notifyFn(r)})},t.batchCalls=function(r){var o=this;return function(){for(var a=arguments.length,i=new Array(a),c=0;c<a;c++)i[c]=arguments[c];o.schedule(function(){r.apply(void 0,i)})}},t.flush=function(){var r=this,o=this.queue;this.queue=[],o.length&&VT(function(){r.batchNotifyFn(function(){o.forEach(function(a){r.notifyFn(a)})})})},t.setNotifyFunction=function(r){this.notifyFn=r},t.setBatchNotifyFunction=function(r){this.batchNotifyFn=r},e}(),wn=new VOe,qT=console;function p3(){return qT}function WOe(e){qT=e}var UOe=function(){function e(n){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.cache=n.cache,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.initialState=n.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=n.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(r){var o;this.options=le({},this.defaultOptions,r),this.meta=r==null?void 0:r.meta,this.cacheTime=Math.max(this.cacheTime||0,(o=this.options.cacheTime)!=null?o:5*60*1e3)},t.setDefaultOptions=function(r){this.defaultOptions=r},t.scheduleGc=function(){var r=this;this.clearGcTimeout(),V5(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){r.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(r,o){var a,i,c=this.state.data,l=DOe(r,c);return(a=(i=this.options).isDataEqual)!=null&&a.call(i,c,l)?l=c:this.options.structuralSharing!==!1&&(l=s3(c,l)),this.dispatch({data:l,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt}),l},t.setState=function(r,o){this.dispatch({type:"setState",state:r,setStateOptions:o})},t.cancel=function(r){var o,a=this.promise;return(o=this.retryer)==null||o.cancel(r),a?a.then(lr).catch(lr):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(r){return r.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(r){return r.getCurrentResult().isStale})},t.isStaleByTime=function(r){return r===void 0&&(r=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!kT(this.state.dataUpdatedAt,r)},t.onFocus=function(){var r,o=this.observers.find(function(a){return a.shouldFetchOnWindowFocus()});o&&o.refetch(),(r=this.retryer)==null||r.continue()},t.onOnline=function(){var r,o=this.observers.find(function(a){return a.shouldFetchOnReconnect()});o&&o.refetch(),(r=this.retryer)==null||r.continue()},t.addObserver=function(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))},t.removeObserver=function(r){this.observers.indexOf(r)!==-1&&(this.observers=this.observers.filter(function(o){return o!==r}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:r}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(r,o){var a=this,i,c,l;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var s;return(s=this.retryer)==null||s.continueRetry(),this.promise}}if(r&&this.setOptions(r),!this.options.queryFn){var d=this.observers.find(function(b){return b.options.queryFn});d&&this.setOptions(d.options)}var f=i3(this.queryKey),m=WT(),p={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(p,"signal",{enumerable:!0,get:function(){if(m)return a.abortSignalConsumed=!0,m.signal}});var h=function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(p)):Promise.reject("Missing queryFn")},v={fetchOptions:o,options:this.options,queryKey:f,state:this.state,fetchFn:h,meta:this.meta};if((i=this.options.behavior)!=null&&i.onFetch){var g;(g=this.options.behavior)==null||g.onFetch(v)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((c=v.fetchOptions)==null?void 0:c.meta)){var y;this.dispatch({type:"fetch",meta:(y=v.fetchOptions)==null?void 0:y.meta})}return this.retryer=new KT({fn:v.fetchFn,abort:m==null||(l=m.abort)==null?void 0:l.bind(m),onSuccess:function(C){a.setData(C),a.cache.config.onSuccess==null||a.cache.config.onSuccess(C,a),a.cacheTime===0&&a.optionalRemove()},onError:function(C){m3(C)&&C.silent||a.dispatch({type:"error",error:C}),m3(C)||(a.cache.config.onError==null||a.cache.config.onError(C,a),p3().error(C)),a.cacheTime===0&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(r){var o=this;this.state=this.reducer(this.state,r),wn.batch(function(){o.observers.forEach(function(a){a.onQueryUpdate(r)}),o.cache.notify({query:o,type:"queryUpdated",action:r})})},t.getDefaultState=function(r){var o=typeof r.initialData=="function"?r.initialData():r.initialData,a=typeof r.initialData<"u",i=a?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0,c=typeof o<"u";return{data:o,dataUpdateCount:0,dataUpdatedAt:c?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:c?"success":"idle"}},t.reducer=function(r,o){var a,i;switch(o.type){case"failed":return le({},r,{fetchFailureCount:r.fetchFailureCount+1});case"pause":return le({},r,{isPaused:!0});case"continue":return le({},r,{isPaused:!1});case"fetch":return le({},r,{fetchFailureCount:0,fetchMeta:(a=o.meta)!=null?a:null,isFetching:!0,isPaused:!1},!r.dataUpdatedAt&&{error:null,status:"loading"});case"success":return le({},r,{data:o.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=o.dataUpdatedAt)!=null?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var c=o.error;return m3(c)&&c.revert&&this.revertState?le({},this.revertState):le({},r,{error:c,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return le({},r,{isInvalidated:!0});case"setState":return le({},r,o.state);default:return r}},e}(),KOe=function(e){wc(t,e);function t(r){var o;return o=e.call(this)||this,o.config=r||{},o.queries=[],o.queriesMap={},o}var n=t.prototype;return n.build=function(o,a,i){var c,l=a.queryKey,s=(c=a.queryHash)!=null?c:W5(l,a),d=this.get(s);return d||(d=new UOe({cache:this,queryKey:l,queryHash:s,options:o.defaultQueryOptions(a),state:i,defaultOptions:o.getQueryDefaults(l),meta:a.meta}),this.add(d)),d},n.add=function(o){this.queriesMap[o.queryHash]||(this.queriesMap[o.queryHash]=o,this.queries.push(o),this.notify({type:"queryAdded",query:o}))},n.remove=function(o){var a=this.queriesMap[o.queryHash];a&&(o.destroy(),this.queries=this.queries.filter(function(i){return i!==o}),a===o&&delete this.queriesMap[o.queryHash],this.notify({type:"queryRemoved",query:o}))},n.clear=function(){var o=this;wn.batch(function(){o.queries.forEach(function(a){o.remove(a)})})},n.get=function(o){return this.queriesMap[o]},n.getAll=function(){return this.queries},n.find=function(o,a){var i=P2(o,a),c=i[0];return typeof c.exact>"u"&&(c.exact=!0),this.queries.find(function(l){return FT(c,l)})},n.findAll=function(o,a){var i=P2(o,a),c=i[0];return Object.keys(c).length>0?this.queries.filter(function(l){return FT(c,l)}):this.queries},n.notify=function(o){var a=this;wn.batch(function(){a.listeners.forEach(function(i){i(o)})})},n.onFocus=function(){var o=this;wn.batch(function(){o.queries.forEach(function(a){a.onFocus()})})},n.onOnline=function(){var o=this;wn.batch(function(){o.queries.forEach(function(a){a.onOnline()})})},t}(Mc),qOe=function(){function e(n){this.options=le({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||GOe(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(o){return o!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(lr).catch(lr)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,o,a=this.state.status==="loading",i=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),i=i.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(c){c!==r.state.context&&r.dispatch({type:"loading",context:c,variables:r.state.variables})})),i.then(function(){return r.executeMutation()}).then(function(c){o=c,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(o,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(o,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(o,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:o}),o}).catch(function(c){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(c,r.state.variables,r.state.context,r),p3().error(c),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(c,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,c,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:c}),c})})},t.executeMutation=function(){var r=this,o;return this.retryer=new KT({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var o=this;this.state=YOe(this.state,r),wn.batch(function(){o.observers.forEach(function(a){a.onMutationUpdate(r)}),o.mutationCache.notify(o)})},e}();function GOe(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function YOe(e,t){switch(t.type){case"failed":return le({},e,{failureCount:e.failureCount+1});case"pause":return le({},e,{isPaused:!0});case"continue":return le({},e,{isPaused:!1});case"loading":return le({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return le({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return le({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return le({},e,t.state);default:return e}}var XOe=function(e){wc(t,e);function t(r){var o;return o=e.call(this)||this,o.config=r||{},o.mutations=[],o.mutationId=0,o}var n=t.prototype;return n.build=function(o,a,i){var c=new qOe({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(a),state:i,defaultOptions:a.mutationKey?o.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(c),c},n.add=function(o){this.mutations.push(o),this.notify(o)},n.remove=function(o){this.mutations=this.mutations.filter(function(a){return a!==o}),o.cancel(),this.notify(o)},n.clear=function(){var o=this;wn.batch(function(){o.mutations.forEach(function(a){o.remove(a)})})},n.getAll=function(){return this.mutations},n.find=function(o){return typeof o.exact>"u"&&(o.exact=!0),this.mutations.find(function(a){return jT(o,a)})},n.findAll=function(o){return this.mutations.filter(function(a){return jT(o,a)})},n.notify=function(o){var a=this;wn.batch(function(){a.listeners.forEach(function(i){i(o)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var o=this.mutations.filter(function(a){return a.state.isPaused});return wn.batch(function(){return o.reduce(function(a,i){return a.then(function(){return i.continue().catch(lr)})},Promise.resolve())})},t}(Mc);function QOe(){return{onFetch:function(t){t.fetchFn=function(){var n,r,o,a,i,c,l=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,s=(o=t.fetchOptions)==null||(a=o.meta)==null?void 0:a.fetchMore,d=s==null?void 0:s.pageParam,f=(s==null?void 0:s.direction)==="forward",m=(s==null?void 0:s.direction)==="backward",p=((i=t.state.data)==null?void 0:i.pages)||[],h=((c=t.state.data)==null?void 0:c.pageParams)||[],v=WT(),g=v==null?void 0:v.signal,y=h,b=!1,C=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},x=function($,T,R,N){return y=N?[T].concat(y):[].concat(y,[T]),N?[R].concat($):[].concat($,[R])},S=function($,T,R,N){if(b)return Promise.reject("Cancelled");if(typeof R>"u"&&!T&&$.length)return Promise.resolve($);var I={queryKey:t.queryKey,signal:g,pageParam:R,meta:t.meta},k=C(I),_=Promise.resolve(k).then(function(V){return x($,R,V,N)});if(f3(k)){var F=_;F.cancel=k.cancel}return _},E;if(!p.length)E=S([]);else if(f){var L=typeof d<"u",w=L?d:GT(t.options,p);E=S(p,L,w)}else if(m){var M=typeof d<"u",z=M?d:JOe(t.options,p);E=S(p,M,z,!0)}else(function(){y=[];var A=typeof t.options.getNextPageParam>"u",$=l&&p[0]?l(p[0],0,p):!0;E=$?S([],A,h[0]):Promise.resolve(x([],h[0],p[0]));for(var T=function(I){E=E.then(function(k){var _=l&&p[I]?l(p[I],I,p):!0;if(_){var F=A?h[I]:GT(t.options,k);return S(k,A,F)}return Promise.resolve(x(k,h[I],p[I]))})},R=1;R<p.length;R++)T(R)})();var P=E.then(function(A){return{pages:A,pageParams:y}}),D=P;return D.cancel=function(){b=!0,v==null||v.abort(),f3(E)&&E.cancel()},P}}}}function GT(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function JOe(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var ZOe=function(){function e(n){n===void 0&&(n={}),this.queryCache=n.queryCache||new KOe,this.mutationCache=n.mutationCache||new XOe,this.defaultOptions=n.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var r=this;this.unsubscribeFocus=zc.subscribe(function(){zc.isFocused()&&d3.isOnline()&&(r.mutationCache.onFocus(),r.queryCache.onFocus())}),this.unsubscribeOnline=d3.subscribe(function(){zc.isFocused()&&d3.isOnline()&&(r.mutationCache.onOnline(),r.queryCache.onOnline())})},t.unmount=function(){var r,o;(r=this.unsubscribeFocus)==null||r.call(this),(o=this.unsubscribeOnline)==null||o.call(this)},t.isFetching=function(r,o){var a=P2(r,o),i=a[0];return i.fetching=!0,this.queryCache.findAll(i).length},t.isMutating=function(r){return this.mutationCache.findAll(le({},r,{fetching:!0})).length},t.getQueryData=function(r,o){var a;return(a=this.queryCache.find(r,o))==null?void 0:a.state.data},t.getQueriesData=function(r){return this.getQueryCache().findAll(r).map(function(o){var a=o.queryKey,i=o.state,c=i.data;return[a,c]})},t.setQueryData=function(r,o,a){var i=c3(r),c=this.defaultQueryOptions(i);return this.queryCache.build(this,c).setData(o,a)},t.setQueriesData=function(r,o,a){var i=this;return wn.batch(function(){return i.getQueryCache().findAll(r).map(function(c){var l=c.queryKey;return[l,i.setQueryData(l,o,a)]})})},t.getQueryState=function(r,o){var a;return(a=this.queryCache.find(r,o))==null?void 0:a.state},t.removeQueries=function(r,o){var a=P2(r,o),i=a[0],c=this.queryCache;wn.batch(function(){c.findAll(i).forEach(function(l){c.remove(l)})})},t.resetQueries=function(r,o,a){var i=this,c=P2(r,o,a),l=c[0],s=c[1],d=this.queryCache,f=le({},l,{active:!0});return wn.batch(function(){return d.findAll(l).forEach(function(m){m.reset()}),i.refetchQueries(f,s)})},t.cancelQueries=function(r,o,a){var i=this,c=P2(r,o,a),l=c[0],s=c[1],d=s===void 0?{}:s;typeof d.revert>"u"&&(d.revert=!0);var f=wn.batch(function(){return i.queryCache.findAll(l).map(function(m){return m.cancel(d)})});return Promise.all(f).then(lr).catch(lr)},t.invalidateQueries=function(r,o,a){var i,c,l,s=this,d=P2(r,o,a),f=d[0],m=d[1],p=le({},f,{active:(i=(c=f.refetchActive)!=null?c:f.active)!=null?i:!0,inactive:(l=f.refetchInactive)!=null?l:!1});return wn.batch(function(){return s.queryCache.findAll(f).forEach(function(h){h.invalidate()}),s.refetchQueries(p,m)})},t.refetchQueries=function(r,o,a){var i=this,c=P2(r,o,a),l=c[0],s=c[1],d=wn.batch(function(){return i.queryCache.findAll(l).map(function(m){return m.fetch(void 0,le({},s,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),f=Promise.all(d).then(lr);return s!=null&&s.throwOnError||(f=f.catch(lr)),f},t.fetchQuery=function(r,o,a){var i=c3(r,o,a),c=this.defaultQueryOptions(i);typeof c.retry>"u"&&(c.retry=!1);var l=this.queryCache.build(this,c);return l.isStaleByTime(c.staleTime)?l.fetch(c):Promise.resolve(l.state.data)},t.prefetchQuery=function(r,o,a){return this.fetchQuery(r,o,a).then(lr).catch(lr)},t.fetchInfiniteQuery=function(r,o,a){var i=c3(r,o,a);return i.behavior=QOe(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(r,o,a){return this.fetchInfiniteQuery(r,o,a).then(lr).catch(lr)},t.cancelMutations=function(){var r=this,o=wn.batch(function(){return r.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(o).then(lr).catch(lr)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,o){var a=this.queryDefaults.find(function(i){return Co(r)===Co(i.queryKey)});a?a.defaultOptions=o:this.queryDefaults.push({queryKey:r,defaultOptions:o})},t.getQueryDefaults=function(r){var o;return r?(o=this.queryDefaults.find(function(a){return l3(r,a.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(r,o){var a=this.mutationDefaults.find(function(i){return Co(r)===Co(i.mutationKey)});a?a.defaultOptions=o:this.mutationDefaults.push({mutationKey:r,defaultOptions:o})},t.getMutationDefaults=function(r){var o;return r?(o=this.mutationDefaults.find(function(a){return l3(r,a.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var o=le({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=W5(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:le({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),e$e=function(e){wc(t,e);function t(r,o){var a;return a=e.call(this)||this,a.client=r,a.options=o,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(o),a}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),YT(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return K5(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return K5(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(o,a){var i=this.options,c=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();var l=this.hasListeners();l&&XT(this.currentQuery,c,this.options,i)&&this.executeFetch(),this.updateResult(a),l&&(this.currentQuery!==c||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();var s=this.computeRefetchInterval();l&&(this.currentQuery!==c||this.options.enabled!==i.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)},n.getOptimisticResult=function(o){var a=this.client.defaultQueryObserverOptions(o),i=this.client.getQueryCache().build(this.client,a);return this.createResult(i,a)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(o,a){var i=this,c={},l=function(d){i.trackedProps.includes(d)||i.trackedProps.push(d)};return Object.keys(o).forEach(function(s){Object.defineProperty(c,s,{configurable:!1,enumerable:!0,get:function(){return l(s),o[s]}})}),(a.useErrorBoundary||a.suspense)&&l("error"),c},n.getNextResult=function(o){var a=this;return new Promise(function(i,c){var l=a.subscribe(function(s){s.isFetching||(l(),s.isError&&(o!=null&&o.throwOnError)?c(s.error):i(s))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(o){return this.fetch(le({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},n.fetchOptimistic=function(o){var a=this,i=this.client.defaultQueryObserverOptions(o),c=this.client.getQueryCache().build(this.client,i);return c.fetch().then(function(){return a.createResult(c,i)})},n.fetch=function(o){var a=this;return this.executeFetch(o).then(function(){return a.updateResult(),a.currentResult})},n.executeFetch=function(o){this.updateQuery();var a=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(a=a.catch(lr)),a},n.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(a3||this.currentResult.isStale||!V5(this.options.staleTime))){var a=kT(this.currentResult.dataUpdatedAt,this.options.staleTime),i=a+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},i)}},n.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},n.updateRefetchInterval=function(o){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(a3||this.options.enabled===!1||!V5(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||zc.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(o,a){var i=this.currentQuery,c=this.options,l=this.currentResult,s=this.currentResultState,d=this.currentResultOptions,f=o!==i,m=f?o.state:this.currentQueryInitialState,p=f?this.currentResult:this.previousQueryResult,h=o.state,v=h.dataUpdatedAt,g=h.error,y=h.errorUpdatedAt,b=h.isFetching,C=h.status,x=!1,S=!1,E;if(a.optimisticResults){var L=this.hasListeners(),w=!L&&YT(o,a),M=L&&XT(o,i,a,c);(w||M)&&(b=!0,v||(C="loading"))}if(a.keepPreviousData&&!h.dataUpdateCount&&(p!=null&&p.isSuccess)&&C!=="error")E=p.data,v=p.dataUpdatedAt,C=p.status,x=!0;else if(a.select&&typeof h.data<"u")if(l&&h.data===(s==null?void 0:s.data)&&a.select===this.selectFn)E=this.selectResult;else try{this.selectFn=a.select,E=a.select(h.data),a.structuralSharing!==!1&&(E=s3(l==null?void 0:l.data,E)),this.selectResult=E,this.selectError=null}catch(D){p3().error(D),this.selectError=D}else E=h.data;if(typeof a.placeholderData<"u"&&typeof E>"u"&&(C==="loading"||C==="idle")){var z;if(l!=null&&l.isPlaceholderData&&a.placeholderData===(d==null?void 0:d.placeholderData))z=l.data;else if(z=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof z<"u")try{z=a.select(z),a.structuralSharing!==!1&&(z=s3(l==null?void 0:l.data,z)),this.selectError=null}catch(D){p3().error(D),this.selectError=D}typeof z<"u"&&(C="success",E=z,S=!0)}this.selectError&&(g=this.selectError,E=this.selectResult,y=Date.now(),C="error");var P={status:C,isLoading:C==="loading",isSuccess:C==="success",isError:C==="error",isIdle:C==="idle",data:E,dataUpdatedAt:v,error:g,errorUpdatedAt:y,failureCount:h.fetchFailureCount,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>m.dataUpdateCount||h.errorUpdateCount>m.errorUpdateCount,isFetching:b,isRefetching:b&&C!=="loading",isLoadingError:C==="error"&&h.dataUpdatedAt===0,isPlaceholderData:S,isPreviousData:x,isRefetchError:C==="error"&&h.dataUpdatedAt!==0,isStale:q5(o,a),refetch:this.refetch,remove:this.remove};return P},n.shouldNotifyListeners=function(o,a){if(!a)return!0;var i=this.options,c=i.notifyOnChangeProps,l=i.notifyOnChangePropsExclusions;if(!c&&!l||c==="tracked"&&!this.trackedProps.length)return!0;var s=c==="tracked"?this.trackedProps:c;return Object.keys(o).some(function(d){var f=d,m=o[f]!==a[f],p=s==null?void 0:s.some(function(v){return v===d}),h=l==null?void 0:l.some(function(v){return v===d});return m&&!h&&(!s||p)})},n.updateResult=function(o){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!kOe(this.currentResult,a)){var i={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(i.listeners=!0),this.notify(le({},i,o))}},n.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var a=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),o.addObserver(this))}},n.onQueryUpdate=function(o){var a={};o.type==="success"?a.onSuccess=!0:o.type==="error"&&!m3(o.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},n.notify=function(o){var a=this;wn.batch(function(){o.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):o.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)}),o.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t}(Mc);function t$e(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function YT(e,t){return t$e(e,t)||e.state.dataUpdatedAt>0&&K5(e,t,t.refetchOnMount)}function K5(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&q5(e,t)}return!1}function XT(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&q5(e,n)}function q5(e,t){return e.isStaleByTime(t.staleTime)}var n$e=Tn.unstable_batchedUpdates;wn.setBatchNotifyFunction(n$e);var r$e=console;WOe(r$e);var QT=O.createContext(void 0),JT=O.createContext(!1);function ZT(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=QT),window.ReactQueryClientContext):QT}var o$e=function(){var t=O.useContext(ZT(O.useContext(JT)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},eR=function(t){var n=t.client,r=t.contextSharing,o=r===void 0?!1:r,a=t.children;O.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var i=ZT(o);return O.createElement(JT.Provider,{value:o},O.createElement(i.Provider,{value:n},a))};function a$e(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var i$e=O.createContext(a$e()),c$e=function(){return O.useContext(i$e)};function l$e(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function s$e(e,t){var n=O.useRef(!1),r=O.useState(0),o=r[1],a=o$e(),i=c$e(),c=a.defaultQueryObserverOptions(e);c.optimisticResults=!0,c.onError&&(c.onError=wn.batchCalls(c.onError)),c.onSuccess&&(c.onSuccess=wn.batchCalls(c.onSuccess)),c.onSettled&&(c.onSettled=wn.batchCalls(c.onSettled)),c.suspense&&(typeof c.staleTime!="number"&&(c.staleTime=1e3),c.cacheTime===0&&(c.cacheTime=1)),(c.suspense||c.useErrorBoundary)&&(i.isReset()||(c.retryOnMount=!1));var l=O.useState(function(){return new t(a,c)}),s=l[0],d=s.getOptimisticResult(c);if(O.useEffect(function(){n.current=!0,i.clearReset();var f=s.subscribe(wn.batchCalls(function(){n.current&&o(function(m){return m+1})}));return s.updateResult(),function(){n.current=!1,f()}},[i,s]),O.useEffect(function(){s.setOptions(c,{listeners:!1})},[c,s]),c.suspense&&d.isLoading)throw s.fetchOptimistic(c).then(function(f){var m=f.data;c.onSuccess==null||c.onSuccess(m),c.onSettled==null||c.onSettled(m,null)}).catch(function(f){i.clearReset(),c.onError==null||c.onError(f),c.onSettled==null||c.onSettled(void 0,f)});if(d.isError&&!i.isReset()&&!d.isFetching&&l$e(c.suspense,c.useErrorBoundary,[d.error,s.getCurrentQuery()]))throw d.error;return c.notifyOnChangeProps==="tracked"&&(d=s.trackResult(d,c)),d}function tR(e,t,n){var r=c3(e,t,n);return s$e(r,e$e)}var Bt=(e=>(e.App="idApp",e.Version="version",e.DeployDate="releaseDate",e.ReleasePages="gaReleasePages",e.Fields="gaReleasePagesContent",e.Title="title",e.Description="description",e.Image="idFile",e.Order="order",e.NoImage="noImage",e))(Bt||{}),G5=(e=>(e.GetApps="GetApps",e.GetReleases="GetReleases",e))(G5||{});const u$e=async()=>{const e=window.globalAuthUrl,{data:t}=await ho.get(`${e}/getApps`);return t},d$e=async e=>{const t=window.globalAuthUrl,{data:n}=await ho.post(`${t}/ListReleases`,e);return n},f$e=async e=>{const t=window.globalAuthUrl,{data:n}=await ho.post(`${t}/MaintainReleases`,e);return n},m$e=async(e,t)=>{const n=window.globalAuthUrl,{data:r}=await ho.post(`${n}/ReadNotification`,{idRelease:e,userId:t});return r},nR=()=>tR([G5.GetApps],async()=>await u$e()),p$e=e=>{const{idApp:t,userId:n,lastDeployed:r}=e;return tR([G5.GetReleases,t,n,r],async()=>await d$e(e),{enabled:!!t})},g$e=({index:e})=>{const{requiredField:t}=Td();return Me.jsx(cn.List,{name:[e,Bt.Fields],children:(n,{remove:r})=>Me.jsxs(Me.Fragment,{children:[Me.jsx(j0,{fieldName:"idReleasePage",hidden:!0}),Me.jsx(p1,{gap:16,vertical:!0,children:n.map(({key:o,name:a,...i})=>Me.jsxs(p1,{gap:6,align:"center",children:[Me.jsxs(p1,{vertical:!0,gap:2,style:{width:"100%"},children:[Me.jsx(cn.Item,{...i,name:[a,Bt.Title],rules:t,noStyle:!0,children:Me.jsx(w1,{placeholder:It("RELEASE-NOTES.FORM.FIELDS.TITLE"),maxLength:500})}),Me.jsx(cn.Item,{...i,name:[a,Bt.Description],rules:t,noStyle:!0,children:Me.jsx(h8,{autoSize:{minRows:2},placeholder:It("RELEASE-NOTES.FORM.FIELDS.DESCRIPTION")})})]}),Me.jsx(cn.Item,{noStyle:!0,children:Me.jsx(mr,{title:It("GENERAL.REMOVE"),children:Me.jsx(mn,{type:"text",icon:Me.jsx(yS,{}),onClick:()=>r(a),disabled:n.length===1})})})]},o))})]})})},h$e=O.forwardRef(({changeSlide:e},t)=>{const[n,r]=O.useState([]),o=cn.useFormInstance(),a=cn.useWatch(Bt.ReleasePages,o);O.useEffect(()=>{var s;a!=null&&a.length&&((s=t.current)==null||s.goTo(a==null?void 0:a.length))},[a==null?void 0:a.length]);const i=s=>({file:d,fileList:f})=>{const m=s[0],p=s[1],h=a[m];r(f),Z2e(d.originFileObj,v=>{o.setFieldValue(Bt.ReleasePages,a.toSpliced(m,1,{...h,[p]:v}))})},c=s=>()=>{var h;const d=a==null?void 0:a[s],m=[...((h=a==null?void 0:a[s])==null?void 0:h[Bt.Fields])??[],{}],p=a.toSpliced(s,1,{...d,[Bt.Fields]:m});o.setFieldValue(Bt.ReleasePages,p)},l=Me.jsx(L1,{justify:"center",align:"middle",children:Me.jsxs(Ms,{direction:"vertical",children:[Me.jsx("p",{className:"ant-upload-drag-icon",children:Me.jsx(_8,{})}),Me.jsx("p",{className:"ant-upload-text",children:It("GENERAL.UPLOAD_LABEL")}),Me.jsx("p",{className:"ant-upload-hint",children:It("GENERAL.JPG_PNG_WARNING")})]})});return Me.jsx(cn.List,{name:Bt.ReleasePages,children:s=>Me.jsxs(Me.Fragment,{children:[Me.jsx(j0,{fieldName:"idRelease",hidden:!0}),Me.jsx(j0,{fieldName:"idReleasePage",hidden:!0}),Me.jsx(t8,{infinite:!1,ref:t,beforeChange:e,adaptiveHeight:!0,children:s.map(({key:d,name:f,...m})=>{var v,g;const p=(v=a==null?void 0:a[f])==null?void 0:v[Bt.Image],h=(g=a==null?void 0:a[f])==null?void 0:g[Bt.NoImage];return Me.jsx("div",{children:Me.jsxs(L1,{gutter:[8,16],style:{marginBottom:35},children:[Me.jsx(cr,{span:24,children:Me.jsxs(L1,{gutter:8,children:[Me.jsx(cr,{span:h?24:12,children:Me.jsx(g$e,{index:f})}),!h&&Me.jsx(cr,{span:12,children:Me.jsx(eo,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:Me.jsx(cn.Item,{...m,name:[f,Bt.Image],noStyle:!0,children:Me.jsx(wd,{listType:"picture",className:"release-notes-image",showUploadList:!1,fileList:n,beforeUpload:eoe,onChange:i([f,Bt.Image]),children:p?Me.jsx(Is,{src:p,preview:!1,style:{maxHeight:600}}):l})})})})]})}),Me.jsx(cr,{span:8,children:Me.jsxs(p1,{vertical:!0,children:[Me.jsx(cn.Item,{children:Me.jsx(mn,{type:"dashed",onClick:c(f),icon:Me.jsx(Hu,{}),block:!0,children:It("RELEASE-NOTES.FORM.ADD_NEW_FIELD")})}),Me.jsx(pze,{fieldName:[f,Bt.NoImage],label:It("GENERAL.DO_NOT_USE_IMAGE"),onChange:y=>{const b=y.target.checked,C=a.map((x,S)=>({...x,[Bt.NoImage]:S===f?b:x[Bt.NoImage],[Bt.Image]:S===f&&b?void 0:x[Bt.Image]}));o.setFieldValue(Bt.ReleasePages,C)}})]})})]})},d)})})]})})}),a2="RELEASE-NOTES",v$e=({addBtnLabel:e,addBtnTooltipText:t,release2edit:n,beforeOpenModal:r,beforeCloseModal:o,afterSubmit:a})=>{const[i,c]=O.useState(!1),[l,s]=O.useState(!1),[d,f]=O.useState(0),[m]=cn.useForm(),p=ec(),{getColor:h}=Koe(),v=O.useRef(null),{requiredField:g}=Td(),{data:y}=nR(),b=cn.useWatch(Bt.ReleasePages,m),C=(I,k)=>f(k),x=()=>m.resetFields();O.useEffect(()=>{n&&(c(!0),m.setFieldsValue({...n,[Bt.ReleasePages]:n[Bt.ReleasePages].map(I=>({...I,[Bt.Image]:qx(I[Bt.Image])})),[Bt.DeployDate]:Yn(n[Bt.DeployDate])}))},[n]);const S=()=>{r?new Promise(I=>I(r())).then(()=>c(!0)):c(!0)},E=()=>{o?new Promise(I=>I(o())).then(()=>c(!1)):c(!1)},L=()=>m.setFieldValue(Bt.ReleasePages,[...b,{[Bt.Fields]:[{}]}]),w=()=>m.setFieldValue(Bt.ReleasePages,b.filter((I,k)=>k!==d)),M=I=>{const k={...I,[Bt.DeployDate]:Yn(I[Bt.DeployDate]).format(cD),[Bt.ReleasePages]:I[Bt.ReleasePages].map((_,F)=>({..._,[Bt.Image]:toe(_[Bt.Image]),order:F,[Bt.Fields]:_[Bt.Fields].map((V,j)=>({...V,order:j}))}))};f$e(k).then(()=>{x(),As.success(It("GENERAL.MESSAGES.SUCCESS.ITEM_CREATE",{item:It(`${a2}.TEXT_SINGULAR`)})),a&&a()}).catch(_=>{var V;const F=((V=_.response)==null?void 0:V.data)??[];Fs.error({message:It("GENERAL.ERROR"),description:Me.jsx(T8,{dataSource:F,renderItem:j=>Me.jsx(T8.Item,{children:It(`GENERAL.MESSAGES.ERROR.RELEASE_NOTE.${j.error}`)})})})}).finally(E)},z=d===0,P=d===(b==null?void 0:b.length)-1,D=(b==null?void 0:b.length)<=1,A=Me.jsxs(p1,{justify:"flex-end",gap:8,children:[Me.jsx(mn,{type:"dashed",icon:Me.jsx(A1,{icon:q$}),onClick:()=>{var I;return(I=v.current)==null?void 0:I.prev()},disabled:z,children:It("GENERAL.BACK")}),Me.jsx(mn,{type:"dashed",iconPosition:"end",icon:Me.jsx(A1,{icon:G$}),onClick:()=>{var I;return(I=v.current)==null?void 0:I.next()},disabled:P,children:It("GENERAL.NEXT")}),Me.jsx(mn,{type:"dashed",danger:!0,icon:Me.jsx(A1,{icon:GN}),onClick:w,disabled:D,children:It(`${a2}.REMOVE_CURRENT_SLIDE`)}),Me.jsx(mn,{type:"dashed",icon:Me.jsx(A1,{icon:LP}),onClick:L,children:It(`${a2}.ADD_NEW_SLIDE`)}),Me.jsx(mn,{type:"primary",icon:Me.jsx(A1,{icon:DN}),onClick:()=>m.submit(),children:It("GENERAL.SAVE")})]}),$=I=>{s(t?I:!1)},T={[Bt.ReleasePages]:[{[Bt.Fields]:[{}]}],[Bt.DeployDate]:Yn()},R=noe(y??[],"appName","id"),N=O.useMemo(()=>It(`${a2}.${n?"UPD_RELEASE_NOTE":"ADD_RELEASE_NOTE"}`),[p]);return Me.jsxs(Me.Fragment,{children:[Me.jsx(mr,{title:t,open:l,onOpenChange:$,children:Me.jsx(mn,{type:"primary",icon:Me.jsx(A1,{icon:Hz}),shape:e?"default":"circle",onClick:S,children:e})}),Me.jsx(Tr,{open:i,title:N,onCancel:E,width:"60%",footer:A,destroyOnClose:!0,children:Me.jsxs(cn,{form:m,layout:"vertical",initialValues:T,onFinish:M,children:[Me.jsx(j0,{fieldName:"idRelease",hidden:!0}),Me.jsxs(L1,{gutter:10,children:[Me.jsx(cr,{span:8,children:Me.jsx(fze,{fieldName:Bt.App,label:It(`${a2}.FORM.FIELDS.APP`),placeholder:It(`${a2}.FORM.FIELDS.APP`,{context:"PLACEHOLDER"}),options:R,rules:g})}),Me.jsx(cr,{span:8,children:Me.jsx(F0,{fieldName:Bt.Version,label:It(`${a2}.FORM.FIELDS.VERSION`),placeholder:"0.0.0",tooltip:It(`${a2}.FORM.FIELDS.VERSION`,{context:"TOOLTIP"}),normalize:I=>I.replace(/\s/,".").replace(/[.]{2}/g,".").replace(/^[^0-9]|[^0-9.\b]/g,""),rules:[...g,()=>({validator(I,k){var V,j;const _=/[^0-9]$/,F=(j=(V=k==null?void 0:k.split("."))==null?void 0:V.filter(Boolean))==null?void 0:j.length;return _.test(k)?Promise.reject(new Error(It("GENERAL.FORM.ERRORS.VERSION"))):F>3||F<3?Promise.reject(new Error(It("GENERAL.FORM.ERRORS.FORMAT"))):Promise.resolve()}})]})}),Me.jsx(cr,{span:8,children:Me.jsx(mze,{fieldName:Bt.DeployDate,label:It(`${a2}.FORM.FIELDS.DEPLOY_DATE`),format:iD,rules:g})}),Me.jsx(cr,{span:24,children:Me.jsx(eo,{styles:{body:{background:h("PrimaryColorBgContainer")}},children:Me.jsx(h$e,{ref:v,changeSlide:C})})})]})]})})]})},{Title:b$e,Text:y$e}=Sa,C$e=()=>{var L,w;const[e,t]=O.useState(!1),[n,r]=O.useState(!1),[o,a]=O.useState(0),i=ec(),c=O.useRef(null),l=xa(k1.AppId),s=xa(k1.UserId),{data:d}=nR(),{data:f}=p$e({idApp:l,lastDeployed:!0,userId:s}),m=f==null?void 0:f[0],p=d==null?void 0:d.find(M=>M.id===l);O.useEffect(()=>{if(f!=null&&f.length){const M=f[0],z=!M.readRelease&&!!M.isDeployed;t(z)}},[f]);const h=()=>{const M=f==null?void 0:f[0];n&&(M!=null&&M.isDeployed)&&m$e(M==null?void 0:M.idRelease,s),t(!1)},v=()=>{var M;return(M=c.current)==null?void 0:M.next()},g=()=>{var M;return(M=c.current)==null?void 0:M.prev()},y=M=>a(M),b=o===0,C=o===(((L=m==null?void 0:m.gaReleasePages)==null?void 0:L.length)??0)-1,x=M=>r(M.target.checked),S=Me.jsxs(p1,{justify:"space-between",align:"center",children:[Me.jsx(Z1,{checked:n,onChange:x,children:It("RELEASE-NOTES.FORM.FIELDS.DO_NOT_SHOW_AGAIN")}),Me.jsxs(p1,{gap:8,children:[!b&&Me.jsx(mn,{onClick:g,children:It("Prev")}),!C&&Me.jsx(mn,{type:"primary",onClick:v,children:It("GENERAL.ACTIONS.NEXT")}),C&&Me.jsx(mn,{type:"primary",onClick:h,children:It("GENERAL.ACTIONS.CLOSE")})]})]}),E=O.useMemo(()=>It("RELEASE-NOTES.WHATS_NEWS",{app:p==null?void 0:p.appName,version:m==null?void 0:m.version}),[i]);return Me.jsx(Tr,{open:e,title:E,onCancel:h,width:"70%",footer:S,children:Me.jsx(t8,{infinite:!1,ref:c,afterChange:y,children:(w=m==null?void 0:m.gaReleasePages)==null?void 0:w.map(({idFile:M,gaReleasePagesContent:z},P)=>Me.jsx("div",{children:Me.jsxs(L1,{gutter:[16,16],style:{marginBottom:35},children:[Me.jsx(cr,{span:M?12:24,children:Me.jsx(p1,{gap:16,vertical:!0,children:z.map(({title:D,description:A},$)=>Me.jsxs(p1,{vertical:!0,children:[Me.jsx(b$e,{level:5,children:D}),Me.jsx(y$e,{style:{opacity:.5},children:A})]},`${P}-${$}`))})}),!!M&&Me.jsx(cr,{span:12,children:Me.jsx(p1,{justify:"center",children:Me.jsx(eo,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:Me.jsx(Is,{src:qx(M),style:{maxHeight:600,borderRadius:8}})})})})]})},P))})})},rR=new ZOe({defaultOptions:{queries:{retry:2}}}),S$e=ROe(({showAddBtn:e,...t})=>e?Me.jsx(Nd,{children:Me.jsx(eR,{client:rR,children:Me.jsx(v$e,{...t})})}):Me.jsx(Nd,{children:Me.jsx(eR,{client:rR,children:Me.jsx(C$e,{})})}));ur.Helpdesk=WNe,ur.ReleaseNote=S$e,Object.defineProperty(ur,Symbol.toStringTag,{value:"Module"})});
|
|
1075
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:a,secondInputs:i,stack:s})}},iOe={inputStabilityCheck:"once",identityFunctionCheck:"once"};function cOe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function lOe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function sOe(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var $T=e=>Array.isArray(e)?e:[e];function uOe(e){const t=Array.isArray(e[0])?e[0]:e;return sOe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function PT(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var dOe=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...iOe,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:oOe},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:aOe}}},fOe=class{constructor(e){this.value=e}deref(){return this.value}},mOe=typeof WeakRef<"u"?WeakRef:fOe,pOe=0,IT=1;function r3(){return{s:pOe,v:void 0,o:null,p:null}}function TT(e,t={}){let n=r3();const{resultEqualityCheck:r}=t;let o,a=0;function i(){var f;let c=n;const{length:l}=arguments;for(let m=0,p=l;m<p;m++){const h=arguments[m];if(typeof h=="function"||typeof h=="object"&&h!==null){let v=c.o;v===null&&(c.o=v=new WeakMap);const g=v.get(h);g===void 0?(c=r3(),v.set(h,c)):c=g}else{let v=c.p;v===null&&(c.p=v=new Map);const g=v.get(h);g===void 0?(c=r3(),v.set(h,c)):c=g}}const s=c;let d;if(c.s===IT)d=c.v;else if(d=e.apply(null,arguments),a++,r){const m=((f=o==null?void 0:o.deref)==null?void 0:f.call(o))??o;m!=null&&r(m,d)&&(d=m,a!==0&&a--),o=typeof d=="object"&&d!==null||typeof d=="function"?new mOe(d):d}return s.s=IT,s.v=d,d}return i.clearCache=()=>{n=r3(),i.resetResultsCount()},i.resultsCount=()=>a,i.resetResultsCount=()=>{a=0},i}function gOe(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let a=0,i=0,c,l={},s=o.pop();typeof s=="object"&&(l=s,s=o.pop()),cOe(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const d={...n,...l},{memoize:f,memoizeOptions:m=[],argsMemoize:p=TT,argsMemoizeOptions:h=[],devModeChecks:v={}}=d,g=$T(m),y=$T(h),b=uOe(o),C=f(function(){return a++,s.apply(null,arguments)},...g);let x=!0;const S=p(function(){i++;const L=PT(b,arguments);if(c=C.apply(null,L),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:w,inputStabilityCheck:M}=dOe(x,v);if(w.shouldRun&&w.run(s,L,c),M.shouldRun){const z=PT(b,arguments);M.run({inputSelectorResults:L,inputSelectorResultsCopy:z},{memoize:f,memoizeOptions:g},arguments)}x&&(x=!1)}return c},...y);return Object.assign(S,{resultFunc:s,memoizedResultFunc:C,dependencies:b,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>c,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var hOe=gOe(TT),vOe=Object.assign((e,t=hOe)=>{lOe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(a=>e[a]);return t(r,(...a)=>a.reduce((i,c,l)=>(i[n[l]]=c,i),{}))},{withTypes:()=>vOe});function RT(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(process.env.NODE_ENV==="production"?tr(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>KNe(r)&&r.type===e,n}function DT(e){return o2(e)?OT(e,()=>{}):e}function AT(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(process.env.NODE_ENV==="production"?tr(10):"No insert provided for key not already in map");const r=n.insert(t,e);return e.set(t,r),r}function _T(e){const t={},n=[];let r;const o={addCase(a,i){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?tr(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?tr(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const c=typeof a=="string"?a:a.type;if(!c)throw new Error(process.env.NODE_ENV==="production"?tr(28):"`builder.addCase` cannot be called with an empty action type");if(c in t)throw new Error(process.env.NODE_ENV==="production"?tr(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${c}'`);return t[c]=i,o},addMatcher(a,i){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?tr(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:a,reducer:i}),o},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?tr(31):"`builder.addDefaultCase` can only be called once");return r=a,o}};return e(o),[t,n,r]}function bOe(e){return typeof e=="function"}function yOe(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?tr(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,o]=_T(t),a;if(bOe(e))a=()=>DT(e());else{const c=DT(e);a=()=>c}function i(c=a(),l){let s=[n[l.type],...r.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return s.filter(d=>!!d).length===0&&(s=[o]),s.reduce((d,f)=>{if(f)if(vo(d)){const p=f(d,l);return p===void 0?d:p}else{if(o2(d))return OT(d,m=>f(m,l));{const m=f(d,l);if(m===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return d},c)}return i.getInitialState=a,i}var COe=Symbol.for("rtk-slice-createasyncthunk");function SOe(e,t){return`${e}/${t}`}function xOe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[COe];return function(o){const{name:a,reducerPath:i=a}=o;if(!a)throw new Error(process.env.NODE_ENV==="production"?tr(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const c=(typeof o.reducers=="function"?o.reducers(wOe()):o.reducers)||{},l=Object.keys(c),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(C,x){const S=typeof C=="string"?C:C.type;if(!S)throw new Error(process.env.NODE_ENV==="production"?tr(12):"`context.addCase` cannot be called with an empty action type");if(S in s.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?tr(13):"`context.addCase` cannot be called with two reducers for the same action type: "+S);return s.sliceCaseReducersByType[S]=x,d},addMatcher(C,x){return s.sliceMatchers.push({matcher:C,reducer:x}),d},exposeAction(C,x){return s.actionCreators[C]=x,d},exposeCaseReducer(C,x){return s.sliceCaseReducersByName[C]=x,d}};l.forEach(C=>{const x=c[C],S={reducerName:C,type:SOe(a,C),createNotation:typeof o.reducers=="function"};zOe(x)?OOe(S,x,d,t):MOe(S,x,d)});function f(){if(process.env.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?tr(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[C={},x=[],S=void 0]=typeof o.extraReducers=="function"?_T(o.extraReducers):[o.extraReducers],E={...C,...s.sliceCaseReducersByType};return yOe(o.initialState,L=>{for(let w in E)L.addCase(w,E[w]);for(let w of s.sliceMatchers)L.addMatcher(w.matcher,w.reducer);for(let w of x)L.addMatcher(w.matcher,w.reducer);S&&L.addDefaultCase(S)})}const m=C=>C,p=new Map;let h;function v(C,x){return h||(h=f()),h(C,x)}function g(){return h||(h=f()),h.getInitialState()}function y(C,x=!1){function S(L){let w=L[C];if(typeof w>"u"){if(x)w=g();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?tr(15):"selectSlice returned undefined for an uninjected slice reducer")}return w}function E(L=m){const w=AT(p,x,{insert:()=>new WeakMap});return AT(w,L,{insert:()=>{const M={};for(const[z,P]of Object.entries(o.selectors??{}))M[z]=EOe(P,L,g,x);return M}})}return{reducerPath:C,getSelectors:E,get selectors(){return E(S)},selectSlice:S}}const b={name:a,reducer:v,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:g,...y(i),injectInto(C,{reducerPath:x,...S}={}){const E=x??i;return C.inject({reducerPath:E,reducer:v},S),{...b,...y(E,!0)}}};return b}}function EOe(e,t,n,r){function o(a,...i){let c=t(a);if(typeof c>"u"){if(r)c=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?tr(16):"selectState returned undefined for an uninjected slice reducer")}return e(c,...i)}return o.unwrapped=e,o}var LOe=xOe();function wOe(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function MOe({type:e,reducerName:t,createNotation:n},r,o){let a,i;if("reducer"in r){if(n&&!NOe(r))throw new Error(process.env.NODE_ENV==="production"?tr(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=r.reducer,i=r.prepare}else a=r;o.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,i?RT(e,i):RT(e))}function zOe(e){return e._reducerDefinitionType==="asyncThunk"}function NOe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function OOe({type:e,reducerName:t},n,r,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?tr(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:i,pending:c,rejected:l,settled:s,options:d}=n,f=o(e,a,d);r.exposeAction(t,f),i&&r.addCase(f.fulfilled,i),c&&r.addCase(f.pending,c),l&&r.addCase(f.rejected,l),s&&r.addMatcher(f.settled,s),r.exposeCaseReducer(t,{fulfilled:i||o3,pending:c||o3,rejected:l||o3,settled:s||o3})}function o3(){}function tr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const $Oe={theme:$c.Light},POe=LOe({name:"AppState",initialState:$Oe,reducers:{updTheme:(e,{payload:t})=>{e.theme=t},updLanguage:(e,{payload:t})=>{e.language=t}}}),{updTheme:IOe,updLanguage:TOe}=POe.actions;function ROe(e){const t=r=>{const{language:o,theme:a}=r,i=Voe();return O.useEffect(()=>{i(TOe(o)),Un.changeLanguage(o)},[o]),O.useEffect(()=>{i(IOe(a))},[a]),Me.jsx(e,{...r})};return z7(r=>{var o,a;return{language:(o=r==null?void 0:r.app)==null?void 0:o.language,theme:(a=r==null?void 0:r.app)==null?void 0:a.theme}})(t)}function wc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xo(e,t)}var Mc=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var o=this,a=r||function(){};return this.listeners.push(a),this.onSubscribe(),function(){o.listeners=o.listeners.filter(function(i){return i!==a}),o.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}(),a3=typeof window>"u";function lr(){}function DOe(e,t){return typeof e=="function"?e(t):e}function V5(e){return typeof e=="number"&&e>=0&&e!==1/0}function i3(e){return Array.isArray(e)?e:[e]}function kT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c3(e,t,n){return u3(e)?typeof t=="function"?le({},n,{queryKey:e,queryFn:t}):le({},t,{queryKey:e}):e}function P2(e,t,n){return u3(e)?[le({},t,{queryKey:e}),n]:[e||{},t]}function AOe(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function FT(e,t){var n=e.active,r=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,c=e.queryKey,l=e.stale;if(u3(c)){if(r){if(t.queryHash!==W5(c,t.options))return!1}else if(!l3(t.queryKey,c))return!1}var s=AOe(n,a);if(s==="none")return!1;if(s!=="all"){var d=t.isActive();if(s==="active"&&!d||s==="inactive"&&d)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof o=="boolean"&&t.isFetching()!==o||i&&!i(t))}function jT(e,t){var n=e.exact,r=e.fetching,o=e.predicate,a=e.mutationKey;if(u3(a)){if(!t.options.mutationKey)return!1;if(n){if(Co(t.options.mutationKey)!==Co(a))return!1}else if(!l3(t.options.mutationKey,a))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function W5(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||Co;return n(e)}function Co(e){var t=i3(e);return _Oe(t)}function _Oe(e){return JSON.stringify(e,function(t,n){return U5(n)?Object.keys(n).sort().reduce(function(r,o){return r[o]=n[o],r},{}):n})}function l3(e,t){return BT(i3(e),i3(t))}function BT(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!BT(e[n],t[n])}):!1}function s3(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||U5(e)&&U5(t)){for(var r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),a=o.length,i=n?[]:{},c=0,l=0;l<a;l++){var s=n?l:o[l];i[s]=s3(e[s],t[s]),i[s]===e[s]&&c++}return r===a&&c===r?e:i}return t}function kOe(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function U5(e){if(!HT(e))return!1;var t=e.constructor;if(typeof t>"u")return!0;var n=t.prototype;return!(!HT(n)||!n.hasOwnProperty("isPrototypeOf"))}function HT(e){return Object.prototype.toString.call(e)==="[object Object]"}function u3(e){return typeof e=="string"||Array.isArray(e)}function FOe(e){return new Promise(function(t){setTimeout(t,e)})}function VT(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function WT(){if(typeof AbortController=="function")return new AbortController}var jOe=function(e){wc(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(o){var a;if(!a3&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),function(){window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},n.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(c){typeof c=="boolean"?i.setFocused(c):i.onFocus()})},n.setFocused=function(o){this.focused=o,o&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(o){o()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(Mc),zc=new jOe,BOe=function(e){wc(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(o){var a;if(!a3&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),function(){window.removeEventListener("online",i),window.removeEventListener("offline",i)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},n.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(c){typeof c=="boolean"?i.setOnline(c):i.onOnline()})},n.setOnline=function(o){this.online=o,o&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(o){o()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(Mc),d3=new BOe;function HOe(e){return Math.min(1e3*Math.pow(2,e),3e4)}function f3(e){return typeof(e==null?void 0:e.cancel)=="function"}var UT=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function m3(e){return e instanceof UT}var KT=function(t){var n=this,r=!1,o,a,i,c;this.abort=t.abort,this.cancel=function(m){return o==null?void 0:o(m)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(m,p){i=m,c=p});var l=function(p){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(p),a==null||a(),i(p))},s=function(p){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(p),a==null||a(),c(p))},d=function(){return new Promise(function(p){a=p,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){a=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},f=function m(){if(!n.isResolved){var p;try{p=t.fn()}catch(h){p=Promise.reject(h)}o=function(v){if(!n.isResolved&&(s(new UT(v)),n.abort==null||n.abort(),f3(p)))try{p.cancel()}catch{}},n.isTransportCancelable=f3(p),Promise.resolve(p).then(l).catch(function(h){var v,g;if(!n.isResolved){var y=(v=t.retry)!=null?v:3,b=(g=t.retryDelay)!=null?g:HOe,C=typeof b=="function"?b(n.failureCount,h):b,x=y===!0||typeof y=="number"&&n.failureCount<y||typeof y=="function"&&y(n.failureCount,h);if(r||!x){s(h);return}n.failureCount++,t.onFail==null||t.onFail(n.failureCount,h),FOe(C).then(function(){if(!zc.isFocused()||!d3.isOnline())return d()}).then(function(){r?s(h):m()})}})}};f()},VOe=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(n){n()},this.batchNotifyFn=function(n){n()}}var t=e.prototype;return t.batch=function(r){var o;this.transactions++;try{o=r()}finally{this.transactions--,this.transactions||this.flush()}return o},t.schedule=function(r){var o=this;this.transactions?this.queue.push(r):VT(function(){o.notifyFn(r)})},t.batchCalls=function(r){var o=this;return function(){for(var a=arguments.length,i=new Array(a),c=0;c<a;c++)i[c]=arguments[c];o.schedule(function(){r.apply(void 0,i)})}},t.flush=function(){var r=this,o=this.queue;this.queue=[],o.length&&VT(function(){r.batchNotifyFn(function(){o.forEach(function(a){r.notifyFn(a)})})})},t.setNotifyFunction=function(r){this.notifyFn=r},t.setBatchNotifyFunction=function(r){this.batchNotifyFn=r},e}(),wn=new VOe,qT=console;function p3(){return qT}function WOe(e){qT=e}var UOe=function(){function e(n){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.cache=n.cache,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.initialState=n.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=n.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(r){var o;this.options=le({},this.defaultOptions,r),this.meta=r==null?void 0:r.meta,this.cacheTime=Math.max(this.cacheTime||0,(o=this.options.cacheTime)!=null?o:5*60*1e3)},t.setDefaultOptions=function(r){this.defaultOptions=r},t.scheduleGc=function(){var r=this;this.clearGcTimeout(),V5(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){r.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(r,o){var a,i,c=this.state.data,l=DOe(r,c);return(a=(i=this.options).isDataEqual)!=null&&a.call(i,c,l)?l=c:this.options.structuralSharing!==!1&&(l=s3(c,l)),this.dispatch({data:l,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt}),l},t.setState=function(r,o){this.dispatch({type:"setState",state:r,setStateOptions:o})},t.cancel=function(r){var o,a=this.promise;return(o=this.retryer)==null||o.cancel(r),a?a.then(lr).catch(lr):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(r){return r.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(r){return r.getCurrentResult().isStale})},t.isStaleByTime=function(r){return r===void 0&&(r=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!kT(this.state.dataUpdatedAt,r)},t.onFocus=function(){var r,o=this.observers.find(function(a){return a.shouldFetchOnWindowFocus()});o&&o.refetch(),(r=this.retryer)==null||r.continue()},t.onOnline=function(){var r,o=this.observers.find(function(a){return a.shouldFetchOnReconnect()});o&&o.refetch(),(r=this.retryer)==null||r.continue()},t.addObserver=function(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))},t.removeObserver=function(r){this.observers.indexOf(r)!==-1&&(this.observers=this.observers.filter(function(o){return o!==r}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:r}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(r,o){var a=this,i,c,l;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var s;return(s=this.retryer)==null||s.continueRetry(),this.promise}}if(r&&this.setOptions(r),!this.options.queryFn){var d=this.observers.find(function(b){return b.options.queryFn});d&&this.setOptions(d.options)}var f=i3(this.queryKey),m=WT(),p={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(p,"signal",{enumerable:!0,get:function(){if(m)return a.abortSignalConsumed=!0,m.signal}});var h=function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(p)):Promise.reject("Missing queryFn")},v={fetchOptions:o,options:this.options,queryKey:f,state:this.state,fetchFn:h,meta:this.meta};if((i=this.options.behavior)!=null&&i.onFetch){var g;(g=this.options.behavior)==null||g.onFetch(v)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((c=v.fetchOptions)==null?void 0:c.meta)){var y;this.dispatch({type:"fetch",meta:(y=v.fetchOptions)==null?void 0:y.meta})}return this.retryer=new KT({fn:v.fetchFn,abort:m==null||(l=m.abort)==null?void 0:l.bind(m),onSuccess:function(C){a.setData(C),a.cache.config.onSuccess==null||a.cache.config.onSuccess(C,a),a.cacheTime===0&&a.optionalRemove()},onError:function(C){m3(C)&&C.silent||a.dispatch({type:"error",error:C}),m3(C)||(a.cache.config.onError==null||a.cache.config.onError(C,a),p3().error(C)),a.cacheTime===0&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(r){var o=this;this.state=this.reducer(this.state,r),wn.batch(function(){o.observers.forEach(function(a){a.onQueryUpdate(r)}),o.cache.notify({query:o,type:"queryUpdated",action:r})})},t.getDefaultState=function(r){var o=typeof r.initialData=="function"?r.initialData():r.initialData,a=typeof r.initialData<"u",i=a?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0,c=typeof o<"u";return{data:o,dataUpdateCount:0,dataUpdatedAt:c?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:c?"success":"idle"}},t.reducer=function(r,o){var a,i;switch(o.type){case"failed":return le({},r,{fetchFailureCount:r.fetchFailureCount+1});case"pause":return le({},r,{isPaused:!0});case"continue":return le({},r,{isPaused:!1});case"fetch":return le({},r,{fetchFailureCount:0,fetchMeta:(a=o.meta)!=null?a:null,isFetching:!0,isPaused:!1},!r.dataUpdatedAt&&{error:null,status:"loading"});case"success":return le({},r,{data:o.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=o.dataUpdatedAt)!=null?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var c=o.error;return m3(c)&&c.revert&&this.revertState?le({},this.revertState):le({},r,{error:c,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return le({},r,{isInvalidated:!0});case"setState":return le({},r,o.state);default:return r}},e}(),KOe=function(e){wc(t,e);function t(r){var o;return o=e.call(this)||this,o.config=r||{},o.queries=[],o.queriesMap={},o}var n=t.prototype;return n.build=function(o,a,i){var c,l=a.queryKey,s=(c=a.queryHash)!=null?c:W5(l,a),d=this.get(s);return d||(d=new UOe({cache:this,queryKey:l,queryHash:s,options:o.defaultQueryOptions(a),state:i,defaultOptions:o.getQueryDefaults(l),meta:a.meta}),this.add(d)),d},n.add=function(o){this.queriesMap[o.queryHash]||(this.queriesMap[o.queryHash]=o,this.queries.push(o),this.notify({type:"queryAdded",query:o}))},n.remove=function(o){var a=this.queriesMap[o.queryHash];a&&(o.destroy(),this.queries=this.queries.filter(function(i){return i!==o}),a===o&&delete this.queriesMap[o.queryHash],this.notify({type:"queryRemoved",query:o}))},n.clear=function(){var o=this;wn.batch(function(){o.queries.forEach(function(a){o.remove(a)})})},n.get=function(o){return this.queriesMap[o]},n.getAll=function(){return this.queries},n.find=function(o,a){var i=P2(o,a),c=i[0];return typeof c.exact>"u"&&(c.exact=!0),this.queries.find(function(l){return FT(c,l)})},n.findAll=function(o,a){var i=P2(o,a),c=i[0];return Object.keys(c).length>0?this.queries.filter(function(l){return FT(c,l)}):this.queries},n.notify=function(o){var a=this;wn.batch(function(){a.listeners.forEach(function(i){i(o)})})},n.onFocus=function(){var o=this;wn.batch(function(){o.queries.forEach(function(a){a.onFocus()})})},n.onOnline=function(){var o=this;wn.batch(function(){o.queries.forEach(function(a){a.onOnline()})})},t}(Mc),qOe=function(){function e(n){this.options=le({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||GOe(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(o){return o!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(lr).catch(lr)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,o,a=this.state.status==="loading",i=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),i=i.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(c){c!==r.state.context&&r.dispatch({type:"loading",context:c,variables:r.state.variables})})),i.then(function(){return r.executeMutation()}).then(function(c){o=c,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(o,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(o,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(o,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:o}),o}).catch(function(c){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(c,r.state.variables,r.state.context,r),p3().error(c),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(c,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,c,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:c}),c})})},t.executeMutation=function(){var r=this,o;return this.retryer=new KT({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var o=this;this.state=YOe(this.state,r),wn.batch(function(){o.observers.forEach(function(a){a.onMutationUpdate(r)}),o.mutationCache.notify(o)})},e}();function GOe(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function YOe(e,t){switch(t.type){case"failed":return le({},e,{failureCount:e.failureCount+1});case"pause":return le({},e,{isPaused:!0});case"continue":return le({},e,{isPaused:!1});case"loading":return le({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return le({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return le({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return le({},e,t.state);default:return e}}var XOe=function(e){wc(t,e);function t(r){var o;return o=e.call(this)||this,o.config=r||{},o.mutations=[],o.mutationId=0,o}var n=t.prototype;return n.build=function(o,a,i){var c=new qOe({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(a),state:i,defaultOptions:a.mutationKey?o.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(c),c},n.add=function(o){this.mutations.push(o),this.notify(o)},n.remove=function(o){this.mutations=this.mutations.filter(function(a){return a!==o}),o.cancel(),this.notify(o)},n.clear=function(){var o=this;wn.batch(function(){o.mutations.forEach(function(a){o.remove(a)})})},n.getAll=function(){return this.mutations},n.find=function(o){return typeof o.exact>"u"&&(o.exact=!0),this.mutations.find(function(a){return jT(o,a)})},n.findAll=function(o){return this.mutations.filter(function(a){return jT(o,a)})},n.notify=function(o){var a=this;wn.batch(function(){a.listeners.forEach(function(i){i(o)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var o=this.mutations.filter(function(a){return a.state.isPaused});return wn.batch(function(){return o.reduce(function(a,i){return a.then(function(){return i.continue().catch(lr)})},Promise.resolve())})},t}(Mc);function QOe(){return{onFetch:function(t){t.fetchFn=function(){var n,r,o,a,i,c,l=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,s=(o=t.fetchOptions)==null||(a=o.meta)==null?void 0:a.fetchMore,d=s==null?void 0:s.pageParam,f=(s==null?void 0:s.direction)==="forward",m=(s==null?void 0:s.direction)==="backward",p=((i=t.state.data)==null?void 0:i.pages)||[],h=((c=t.state.data)==null?void 0:c.pageParams)||[],v=WT(),g=v==null?void 0:v.signal,y=h,b=!1,C=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},x=function($,T,R,N){return y=N?[T].concat(y):[].concat(y,[T]),N?[R].concat($):[].concat($,[R])},S=function($,T,R,N){if(b)return Promise.reject("Cancelled");if(typeof R>"u"&&!T&&$.length)return Promise.resolve($);var I={queryKey:t.queryKey,signal:g,pageParam:R,meta:t.meta},k=C(I),_=Promise.resolve(k).then(function(V){return x($,R,V,N)});if(f3(k)){var F=_;F.cancel=k.cancel}return _},E;if(!p.length)E=S([]);else if(f){var L=typeof d<"u",w=L?d:GT(t.options,p);E=S(p,L,w)}else if(m){var M=typeof d<"u",z=M?d:JOe(t.options,p);E=S(p,M,z,!0)}else(function(){y=[];var A=typeof t.options.getNextPageParam>"u",$=l&&p[0]?l(p[0],0,p):!0;E=$?S([],A,h[0]):Promise.resolve(x([],h[0],p[0]));for(var T=function(I){E=E.then(function(k){var _=l&&p[I]?l(p[I],I,p):!0;if(_){var F=A?h[I]:GT(t.options,k);return S(k,A,F)}return Promise.resolve(x(k,h[I],p[I]))})},R=1;R<p.length;R++)T(R)})();var P=E.then(function(A){return{pages:A,pageParams:y}}),D=P;return D.cancel=function(){b=!0,v==null||v.abort(),f3(E)&&E.cancel()},P}}}}function GT(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function JOe(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var ZOe=function(){function e(n){n===void 0&&(n={}),this.queryCache=n.queryCache||new KOe,this.mutationCache=n.mutationCache||new XOe,this.defaultOptions=n.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var r=this;this.unsubscribeFocus=zc.subscribe(function(){zc.isFocused()&&d3.isOnline()&&(r.mutationCache.onFocus(),r.queryCache.onFocus())}),this.unsubscribeOnline=d3.subscribe(function(){zc.isFocused()&&d3.isOnline()&&(r.mutationCache.onOnline(),r.queryCache.onOnline())})},t.unmount=function(){var r,o;(r=this.unsubscribeFocus)==null||r.call(this),(o=this.unsubscribeOnline)==null||o.call(this)},t.isFetching=function(r,o){var a=P2(r,o),i=a[0];return i.fetching=!0,this.queryCache.findAll(i).length},t.isMutating=function(r){return this.mutationCache.findAll(le({},r,{fetching:!0})).length},t.getQueryData=function(r,o){var a;return(a=this.queryCache.find(r,o))==null?void 0:a.state.data},t.getQueriesData=function(r){return this.getQueryCache().findAll(r).map(function(o){var a=o.queryKey,i=o.state,c=i.data;return[a,c]})},t.setQueryData=function(r,o,a){var i=c3(r),c=this.defaultQueryOptions(i);return this.queryCache.build(this,c).setData(o,a)},t.setQueriesData=function(r,o,a){var i=this;return wn.batch(function(){return i.getQueryCache().findAll(r).map(function(c){var l=c.queryKey;return[l,i.setQueryData(l,o,a)]})})},t.getQueryState=function(r,o){var a;return(a=this.queryCache.find(r,o))==null?void 0:a.state},t.removeQueries=function(r,o){var a=P2(r,o),i=a[0],c=this.queryCache;wn.batch(function(){c.findAll(i).forEach(function(l){c.remove(l)})})},t.resetQueries=function(r,o,a){var i=this,c=P2(r,o,a),l=c[0],s=c[1],d=this.queryCache,f=le({},l,{active:!0});return wn.batch(function(){return d.findAll(l).forEach(function(m){m.reset()}),i.refetchQueries(f,s)})},t.cancelQueries=function(r,o,a){var i=this,c=P2(r,o,a),l=c[0],s=c[1],d=s===void 0?{}:s;typeof d.revert>"u"&&(d.revert=!0);var f=wn.batch(function(){return i.queryCache.findAll(l).map(function(m){return m.cancel(d)})});return Promise.all(f).then(lr).catch(lr)},t.invalidateQueries=function(r,o,a){var i,c,l,s=this,d=P2(r,o,a),f=d[0],m=d[1],p=le({},f,{active:(i=(c=f.refetchActive)!=null?c:f.active)!=null?i:!0,inactive:(l=f.refetchInactive)!=null?l:!1});return wn.batch(function(){return s.queryCache.findAll(f).forEach(function(h){h.invalidate()}),s.refetchQueries(p,m)})},t.refetchQueries=function(r,o,a){var i=this,c=P2(r,o,a),l=c[0],s=c[1],d=wn.batch(function(){return i.queryCache.findAll(l).map(function(m){return m.fetch(void 0,le({},s,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),f=Promise.all(d).then(lr);return s!=null&&s.throwOnError||(f=f.catch(lr)),f},t.fetchQuery=function(r,o,a){var i=c3(r,o,a),c=this.defaultQueryOptions(i);typeof c.retry>"u"&&(c.retry=!1);var l=this.queryCache.build(this,c);return l.isStaleByTime(c.staleTime)?l.fetch(c):Promise.resolve(l.state.data)},t.prefetchQuery=function(r,o,a){return this.fetchQuery(r,o,a).then(lr).catch(lr)},t.fetchInfiniteQuery=function(r,o,a){var i=c3(r,o,a);return i.behavior=QOe(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(r,o,a){return this.fetchInfiniteQuery(r,o,a).then(lr).catch(lr)},t.cancelMutations=function(){var r=this,o=wn.batch(function(){return r.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(o).then(lr).catch(lr)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,o){var a=this.queryDefaults.find(function(i){return Co(r)===Co(i.queryKey)});a?a.defaultOptions=o:this.queryDefaults.push({queryKey:r,defaultOptions:o})},t.getQueryDefaults=function(r){var o;return r?(o=this.queryDefaults.find(function(a){return l3(r,a.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(r,o){var a=this.mutationDefaults.find(function(i){return Co(r)===Co(i.mutationKey)});a?a.defaultOptions=o:this.mutationDefaults.push({mutationKey:r,defaultOptions:o})},t.getMutationDefaults=function(r){var o;return r?(o=this.mutationDefaults.find(function(a){return l3(r,a.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var o=le({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=W5(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:le({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),e$e=function(e){wc(t,e);function t(r,o){var a;return a=e.call(this)||this,a.client=r,a.options=o,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(o),a}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),YT(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return K5(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return K5(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(o,a){var i=this.options,c=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();var l=this.hasListeners();l&&XT(this.currentQuery,c,this.options,i)&&this.executeFetch(),this.updateResult(a),l&&(this.currentQuery!==c||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();var s=this.computeRefetchInterval();l&&(this.currentQuery!==c||this.options.enabled!==i.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)},n.getOptimisticResult=function(o){var a=this.client.defaultQueryObserverOptions(o),i=this.client.getQueryCache().build(this.client,a);return this.createResult(i,a)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(o,a){var i=this,c={},l=function(d){i.trackedProps.includes(d)||i.trackedProps.push(d)};return Object.keys(o).forEach(function(s){Object.defineProperty(c,s,{configurable:!1,enumerable:!0,get:function(){return l(s),o[s]}})}),(a.useErrorBoundary||a.suspense)&&l("error"),c},n.getNextResult=function(o){var a=this;return new Promise(function(i,c){var l=a.subscribe(function(s){s.isFetching||(l(),s.isError&&(o!=null&&o.throwOnError)?c(s.error):i(s))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(o){return this.fetch(le({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},n.fetchOptimistic=function(o){var a=this,i=this.client.defaultQueryObserverOptions(o),c=this.client.getQueryCache().build(this.client,i);return c.fetch().then(function(){return a.createResult(c,i)})},n.fetch=function(o){var a=this;return this.executeFetch(o).then(function(){return a.updateResult(),a.currentResult})},n.executeFetch=function(o){this.updateQuery();var a=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(a=a.catch(lr)),a},n.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(a3||this.currentResult.isStale||!V5(this.options.staleTime))){var a=kT(this.currentResult.dataUpdatedAt,this.options.staleTime),i=a+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},i)}},n.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},n.updateRefetchInterval=function(o){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(a3||this.options.enabled===!1||!V5(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||zc.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(o,a){var i=this.currentQuery,c=this.options,l=this.currentResult,s=this.currentResultState,d=this.currentResultOptions,f=o!==i,m=f?o.state:this.currentQueryInitialState,p=f?this.currentResult:this.previousQueryResult,h=o.state,v=h.dataUpdatedAt,g=h.error,y=h.errorUpdatedAt,b=h.isFetching,C=h.status,x=!1,S=!1,E;if(a.optimisticResults){var L=this.hasListeners(),w=!L&&YT(o,a),M=L&&XT(o,i,a,c);(w||M)&&(b=!0,v||(C="loading"))}if(a.keepPreviousData&&!h.dataUpdateCount&&(p!=null&&p.isSuccess)&&C!=="error")E=p.data,v=p.dataUpdatedAt,C=p.status,x=!0;else if(a.select&&typeof h.data<"u")if(l&&h.data===(s==null?void 0:s.data)&&a.select===this.selectFn)E=this.selectResult;else try{this.selectFn=a.select,E=a.select(h.data),a.structuralSharing!==!1&&(E=s3(l==null?void 0:l.data,E)),this.selectResult=E,this.selectError=null}catch(D){p3().error(D),this.selectError=D}else E=h.data;if(typeof a.placeholderData<"u"&&typeof E>"u"&&(C==="loading"||C==="idle")){var z;if(l!=null&&l.isPlaceholderData&&a.placeholderData===(d==null?void 0:d.placeholderData))z=l.data;else if(z=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof z<"u")try{z=a.select(z),a.structuralSharing!==!1&&(z=s3(l==null?void 0:l.data,z)),this.selectError=null}catch(D){p3().error(D),this.selectError=D}typeof z<"u"&&(C="success",E=z,S=!0)}this.selectError&&(g=this.selectError,E=this.selectResult,y=Date.now(),C="error");var P={status:C,isLoading:C==="loading",isSuccess:C==="success",isError:C==="error",isIdle:C==="idle",data:E,dataUpdatedAt:v,error:g,errorUpdatedAt:y,failureCount:h.fetchFailureCount,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>m.dataUpdateCount||h.errorUpdateCount>m.errorUpdateCount,isFetching:b,isRefetching:b&&C!=="loading",isLoadingError:C==="error"&&h.dataUpdatedAt===0,isPlaceholderData:S,isPreviousData:x,isRefetchError:C==="error"&&h.dataUpdatedAt!==0,isStale:q5(o,a),refetch:this.refetch,remove:this.remove};return P},n.shouldNotifyListeners=function(o,a){if(!a)return!0;var i=this.options,c=i.notifyOnChangeProps,l=i.notifyOnChangePropsExclusions;if(!c&&!l||c==="tracked"&&!this.trackedProps.length)return!0;var s=c==="tracked"?this.trackedProps:c;return Object.keys(o).some(function(d){var f=d,m=o[f]!==a[f],p=s==null?void 0:s.some(function(v){return v===d}),h=l==null?void 0:l.some(function(v){return v===d});return m&&!h&&(!s||p)})},n.updateResult=function(o){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!kOe(this.currentResult,a)){var i={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(i.listeners=!0),this.notify(le({},i,o))}},n.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var a=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),o.addObserver(this))}},n.onQueryUpdate=function(o){var a={};o.type==="success"?a.onSuccess=!0:o.type==="error"&&!m3(o.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},n.notify=function(o){var a=this;wn.batch(function(){o.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):o.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)}),o.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t}(Mc);function t$e(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function YT(e,t){return t$e(e,t)||e.state.dataUpdatedAt>0&&K5(e,t,t.refetchOnMount)}function K5(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&q5(e,t)}return!1}function XT(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&q5(e,n)}function q5(e,t){return e.isStaleByTime(t.staleTime)}var n$e=Tn.unstable_batchedUpdates;wn.setBatchNotifyFunction(n$e);var r$e=console;WOe(r$e);var QT=O.createContext(void 0),JT=O.createContext(!1);function ZT(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=QT),window.ReactQueryClientContext):QT}var o$e=function(){var t=O.useContext(ZT(O.useContext(JT)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},eR=function(t){var n=t.client,r=t.contextSharing,o=r===void 0?!1:r,a=t.children;O.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var i=ZT(o);return O.createElement(JT.Provider,{value:o},O.createElement(i.Provider,{value:n},a))};function a$e(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var i$e=O.createContext(a$e()),c$e=function(){return O.useContext(i$e)};function l$e(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function s$e(e,t){var n=O.useRef(!1),r=O.useState(0),o=r[1],a=o$e(),i=c$e(),c=a.defaultQueryObserverOptions(e);c.optimisticResults=!0,c.onError&&(c.onError=wn.batchCalls(c.onError)),c.onSuccess&&(c.onSuccess=wn.batchCalls(c.onSuccess)),c.onSettled&&(c.onSettled=wn.batchCalls(c.onSettled)),c.suspense&&(typeof c.staleTime!="number"&&(c.staleTime=1e3),c.cacheTime===0&&(c.cacheTime=1)),(c.suspense||c.useErrorBoundary)&&(i.isReset()||(c.retryOnMount=!1));var l=O.useState(function(){return new t(a,c)}),s=l[0],d=s.getOptimisticResult(c);if(O.useEffect(function(){n.current=!0,i.clearReset();var f=s.subscribe(wn.batchCalls(function(){n.current&&o(function(m){return m+1})}));return s.updateResult(),function(){n.current=!1,f()}},[i,s]),O.useEffect(function(){s.setOptions(c,{listeners:!1})},[c,s]),c.suspense&&d.isLoading)throw s.fetchOptimistic(c).then(function(f){var m=f.data;c.onSuccess==null||c.onSuccess(m),c.onSettled==null||c.onSettled(m,null)}).catch(function(f){i.clearReset(),c.onError==null||c.onError(f),c.onSettled==null||c.onSettled(void 0,f)});if(d.isError&&!i.isReset()&&!d.isFetching&&l$e(c.suspense,c.useErrorBoundary,[d.error,s.getCurrentQuery()]))throw d.error;return c.notifyOnChangeProps==="tracked"&&(d=s.trackResult(d,c)),d}function tR(e,t,n){var r=c3(e,t,n);return s$e(r,e$e)}var Bt=(e=>(e.App="idApp",e.Version="version",e.DeployDate="releaseDate",e.ReleasePages="gaReleasePages",e.Fields="gaReleasePagesContent",e.Title="title",e.Description="description",e.Image="idFile",e.Order="order",e.NoImage="noImage",e))(Bt||{}),G5=(e=>(e.GetApps="GetApps",e.GetReleases="GetReleases",e))(G5||{});const u$e=async()=>{const e=window.globalAuthUrl,{data:t}=await ho.get(`${e}/getApps`);return t},d$e=async e=>{const t=window.globalAuthUrl,{data:n}=await ho.post(`${t}/ListReleases`,e);return n},f$e=async e=>{const t=window.globalAuthUrl,{data:n}=await ho.post(`${t}/MaintainReleases`,e);return n},m$e=async(e,t)=>{const n=window.globalAuthUrl,{data:r}=await ho.post(`${n}/ReadNotification`,{idRelease:e,userId:t});return r},nR=()=>tR([G5.GetApps],async()=>await u$e()),p$e=e=>{const{idApp:t,userId:n,lastDeployed:r}=e;return tR([G5.GetReleases,t,n,r],async()=>await d$e(e),{enabled:!!t})},g$e=({index:e})=>{const{requiredField:t}=Td();return Me.jsx(cn.List,{name:[e,Bt.Fields],children:(n,{remove:r})=>Me.jsxs(Me.Fragment,{children:[Me.jsx(j0,{fieldName:"idReleasePage",hidden:!0}),Me.jsx(p1,{gap:16,vertical:!0,children:n.map(({key:o,name:a,...i})=>Me.jsxs(p1,{gap:6,align:"center",children:[Me.jsxs(p1,{vertical:!0,gap:2,style:{width:"100%"},children:[Me.jsx(cn.Item,{...i,name:[a,Bt.Title],rules:t,noStyle:!0,children:Me.jsx(w1,{placeholder:It("RELEASE-NOTES.FORM.FIELDS.TITLE"),maxLength:500})}),Me.jsx(cn.Item,{...i,name:[a,Bt.Description],rules:t,noStyle:!0,children:Me.jsx(h8,{autoSize:{minRows:2},placeholder:It("RELEASE-NOTES.FORM.FIELDS.DESCRIPTION")})})]}),Me.jsx(cn.Item,{noStyle:!0,children:Me.jsx(mr,{title:It("GENERAL.REMOVE"),children:Me.jsx(mn,{type:"text",icon:Me.jsx(yS,{}),onClick:()=>r(a),disabled:n.length===1})})})]},o))})]})})},h$e=O.forwardRef(({changeSlide:e},t)=>{const[n,r]=O.useState([]),o=cn.useFormInstance(),a=cn.useWatch(Bt.ReleasePages,o),i=s=>({file:d,fileList:f})=>{const m=s[0],p=s[1],h=a[m];r(f),Z2e(d.originFileObj,v=>{o.setFieldValue(Bt.ReleasePages,a.toSpliced(m,1,{...h,[p]:v}))})},c=s=>()=>{var h;const d=a==null?void 0:a[s],m=[...((h=a==null?void 0:a[s])==null?void 0:h[Bt.Fields])??[],{}],p=a.toSpliced(s,1,{...d,[Bt.Fields]:m});o.setFieldValue(Bt.ReleasePages,p)},l=Me.jsx(L1,{justify:"center",align:"middle",children:Me.jsxs(Ms,{direction:"vertical",children:[Me.jsx("p",{className:"ant-upload-drag-icon",children:Me.jsx(_8,{})}),Me.jsx("p",{className:"ant-upload-text",children:It("GENERAL.UPLOAD_LABEL")}),Me.jsx("p",{className:"ant-upload-hint",children:It("GENERAL.JPG_PNG_WARNING")})]})});return Me.jsx(cn.List,{name:Bt.ReleasePages,children:s=>Me.jsxs(Me.Fragment,{children:[Me.jsx(j0,{fieldName:"idRelease",hidden:!0}),Me.jsx(j0,{fieldName:"idReleasePage",hidden:!0}),Me.jsx(t8,{infinite:!1,ref:t,beforeChange:e,adaptiveHeight:!0,children:s.map(({key:d,name:f,...m})=>{var v,g;const p=(v=a==null?void 0:a[f])==null?void 0:v[Bt.Image],h=(g=a==null?void 0:a[f])==null?void 0:g[Bt.NoImage];return Me.jsx("div",{children:Me.jsxs(L1,{gutter:[8,16],style:{marginBottom:35},children:[Me.jsx(cr,{span:24,children:Me.jsxs(L1,{gutter:8,children:[Me.jsx(cr,{span:h?24:12,children:Me.jsx(g$e,{index:f})}),!h&&Me.jsx(cr,{span:12,children:Me.jsx(eo,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:Me.jsx(cn.Item,{...m,name:[f,Bt.Image],noStyle:!0,children:Me.jsx(wd,{listType:"picture",className:"release-notes-image",showUploadList:!1,fileList:n,beforeUpload:eoe,onChange:i([f,Bt.Image]),children:p?Me.jsx(Is,{src:p,preview:!1,style:{maxHeight:600}}):l})})})})]})}),Me.jsx(cr,{span:8,children:Me.jsxs(p1,{vertical:!0,children:[Me.jsx(cn.Item,{children:Me.jsx(mn,{type:"dashed",onClick:c(f),icon:Me.jsx(Hu,{}),block:!0,children:It("RELEASE-NOTES.FORM.ADD_NEW_FIELD")})}),Me.jsx(pze,{fieldName:[f,Bt.NoImage],label:It("GENERAL.DO_NOT_USE_IMAGE"),onChange:y=>{const b=y.target.checked,C=a.map((x,S)=>({...x,[Bt.NoImage]:S===f?b:x[Bt.NoImage],[Bt.Image]:S===f&&b?void 0:x[Bt.Image]}));o.setFieldValue(Bt.ReleasePages,C)}})]})})]})},d)})})]})})}),a2="RELEASE-NOTES",v$e=({addBtnLabel:e,addBtnTooltipText:t,release2edit:n,beforeOpenModal:r,beforeCloseModal:o,afterSubmit:a})=>{const[i,c]=O.useState(!1),[l,s]=O.useState(!1),[d,f]=O.useState(0),[m]=cn.useForm(),p=ec(),{getColor:h}=Koe(),v=O.useRef(null),{requiredField:g}=Td(),{data:y}=nR(),b=cn.useWatch(Bt.ReleasePages,m),C=(I,k)=>f(k),x=()=>m.resetFields();O.useEffect(()=>{n&&(c(!0),m.setFieldsValue({...n,[Bt.ReleasePages]:n[Bt.ReleasePages].map(I=>({...I,[Bt.Image]:qx(I[Bt.Image])})),[Bt.DeployDate]:Yn(n[Bt.DeployDate])}))},[n]);const S=()=>{r?new Promise(I=>I(r())).then(()=>c(!0)):c(!0)},E=()=>{o?new Promise(I=>I(o())).then(()=>c(!1)):c(!1)},L=()=>m.setFieldValue(Bt.ReleasePages,[...b,{[Bt.Fields]:[{}]}]),w=()=>m.setFieldValue(Bt.ReleasePages,b.filter((I,k)=>k!==d)),M=I=>{const k={...I,[Bt.DeployDate]:Yn(I[Bt.DeployDate]).format(cD),[Bt.ReleasePages]:I[Bt.ReleasePages].map((_,F)=>({..._,[Bt.Image]:toe(_[Bt.Image]),order:F,[Bt.Fields]:_[Bt.Fields].map((V,j)=>({...V,order:j}))}))};f$e(k).then(()=>{x(),As.success(It("GENERAL.MESSAGES.SUCCESS.ITEM_CREATE",{item:It(`${a2}.TEXT_SINGULAR`)})),a&&a()}).catch(_=>{var V;const F=((V=_.response)==null?void 0:V.data)??[];Fs.error({message:It("GENERAL.ERROR"),description:Me.jsx(T8,{dataSource:F,renderItem:j=>Me.jsx(T8.Item,{children:It(`GENERAL.MESSAGES.ERROR.RELEASE_NOTE.${j.error}`)})})})}).finally(E)},z=d===0,P=d===(b==null?void 0:b.length)-1,D=(b==null?void 0:b.length)<=1,A=Me.jsxs(p1,{justify:"flex-end",gap:8,children:[Me.jsx(mn,{type:"dashed",icon:Me.jsx(A1,{icon:q$}),onClick:()=>{var I;return(I=v.current)==null?void 0:I.prev()},disabled:z,children:It("GENERAL.BACK")}),Me.jsx(mn,{type:"dashed",iconPosition:"end",icon:Me.jsx(A1,{icon:G$}),onClick:()=>{var I;return(I=v.current)==null?void 0:I.next()},disabled:P,children:It("GENERAL.NEXT")}),Me.jsx(mn,{type:"dashed",danger:!0,icon:Me.jsx(A1,{icon:GN}),onClick:w,disabled:D,children:It(`${a2}.REMOVE_CURRENT_SLIDE`)}),Me.jsx(mn,{type:"dashed",icon:Me.jsx(A1,{icon:LP}),onClick:L,children:It(`${a2}.ADD_NEW_SLIDE`)}),Me.jsx(mn,{type:"primary",icon:Me.jsx(A1,{icon:DN}),onClick:()=>m.submit(),children:It("GENERAL.SAVE")})]}),$=I=>{s(t?I:!1)},T={[Bt.ReleasePages]:[{[Bt.Fields]:[{}]}],[Bt.DeployDate]:Yn()},R=noe(y??[],"appName","id"),N=O.useMemo(()=>It(`${a2}.${n?"UPD_RELEASE_NOTE":"ADD_RELEASE_NOTE"}`),[p]);return Me.jsxs(Me.Fragment,{children:[Me.jsx(mr,{title:t,open:l,onOpenChange:$,children:Me.jsx(mn,{type:"primary",icon:Me.jsx(A1,{icon:Hz}),shape:e?"default":"circle",onClick:S,children:e})}),Me.jsx(Tr,{open:i,title:N,onCancel:E,width:"60%",footer:A,destroyOnClose:!0,children:Me.jsxs(cn,{form:m,layout:"vertical",initialValues:T,onFinish:M,children:[Me.jsx(j0,{fieldName:"idRelease",hidden:!0}),Me.jsxs(L1,{gutter:10,children:[Me.jsx(cr,{span:8,children:Me.jsx(fze,{fieldName:Bt.App,label:It(`${a2}.FORM.FIELDS.APP`),placeholder:It(`${a2}.FORM.FIELDS.APP`,{context:"PLACEHOLDER"}),options:R,rules:g})}),Me.jsx(cr,{span:8,children:Me.jsx(F0,{fieldName:Bt.Version,label:It(`${a2}.FORM.FIELDS.VERSION`),placeholder:"0.0.0",tooltip:It(`${a2}.FORM.FIELDS.VERSION`,{context:"TOOLTIP"}),normalize:I=>I.replace(/\s/,".").replace(/[.]{2}/g,".").replace(/^[^0-9]|[^0-9.\b]/g,""),rules:[...g,()=>({validator(I,k){var V,j;const _=/[^0-9]$/,F=(j=(V=k==null?void 0:k.split("."))==null?void 0:V.filter(Boolean))==null?void 0:j.length;return _.test(k)?Promise.reject(new Error(It("GENERAL.FORM.ERRORS.VERSION"))):F>3||F<3?Promise.reject(new Error(It("GENERAL.FORM.ERRORS.FORMAT"))):Promise.resolve()}})]})}),Me.jsx(cr,{span:8,children:Me.jsx(mze,{fieldName:Bt.DeployDate,label:It(`${a2}.FORM.FIELDS.DEPLOY_DATE`),format:iD,rules:g})}),Me.jsx(cr,{span:24,children:Me.jsx(eo,{styles:{body:{background:h("PrimaryColorBgContainer")}},children:Me.jsx(h$e,{ref:v,changeSlide:C})})})]})]})})]})},{Title:b$e,Text:y$e}=Sa,C$e=()=>{var L,w;const[e,t]=O.useState(!1),[n,r]=O.useState(!1),[o,a]=O.useState(0),i=ec(),c=O.useRef(null),l=xa(k1.AppId),s=xa(k1.UserId),{data:d}=nR(),{data:f}=p$e({idApp:l,lastDeployed:!0,userId:s}),m=f==null?void 0:f[0],p=d==null?void 0:d.find(M=>M.id===l);O.useEffect(()=>{if(f!=null&&f.length){const M=f[0],z=!M.readRelease&&!!M.isDeployed;t(z)}},[f]);const h=()=>{const M=f==null?void 0:f[0];n&&(M!=null&&M.isDeployed)&&m$e(M==null?void 0:M.idRelease,s),t(!1)},v=()=>{var M;return(M=c.current)==null?void 0:M.next()},g=()=>{var M;return(M=c.current)==null?void 0:M.prev()},y=M=>a(M),b=o===0,C=o===(((L=m==null?void 0:m.gaReleasePages)==null?void 0:L.length)??0)-1,x=M=>r(M.target.checked),S=Me.jsxs(p1,{justify:"space-between",align:"center",children:[Me.jsx(Z1,{checked:n,onChange:x,children:It("RELEASE-NOTES.FORM.FIELDS.DO_NOT_SHOW_AGAIN")}),Me.jsxs(p1,{gap:8,children:[!b&&Me.jsx(mn,{onClick:g,children:It("Prev")}),!C&&Me.jsx(mn,{type:"primary",onClick:v,children:It("GENERAL.ACTIONS.NEXT")}),C&&Me.jsx(mn,{type:"primary",onClick:h,children:It("GENERAL.ACTIONS.CLOSE")})]})]}),E=O.useMemo(()=>It("RELEASE-NOTES.WHATS_NEWS",{app:p==null?void 0:p.appName,version:m==null?void 0:m.version}),[i]);return Me.jsx(Tr,{open:e,title:E,onCancel:h,width:"70%",footer:S,children:Me.jsx(t8,{infinite:!1,ref:c,afterChange:y,children:(w=m==null?void 0:m.gaReleasePages)==null?void 0:w.map(({idFile:M,gaReleasePagesContent:z},P)=>Me.jsx("div",{children:Me.jsxs(L1,{gutter:[16,16],style:{marginBottom:35},children:[Me.jsx(cr,{span:M?12:24,children:Me.jsx(p1,{gap:16,vertical:!0,children:z.map(({title:D,description:A},$)=>Me.jsxs(p1,{vertical:!0,children:[Me.jsx(b$e,{level:5,children:D}),Me.jsx(y$e,{style:{opacity:.5},children:A})]},`${P}-${$}`))})}),!!M&&Me.jsx(cr,{span:12,children:Me.jsx(p1,{justify:"center",children:Me.jsx(eo,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:Me.jsx(Is,{src:qx(M),style:{maxHeight:600,borderRadius:8}})})})})]})},P))})})},rR=new ZOe({defaultOptions:{queries:{retry:2}}}),S$e=ROe(({showAddBtn:e,...t})=>e?Me.jsx(Nd,{children:Me.jsx(eR,{client:rR,children:Me.jsx(v$e,{...t})})}):Me.jsx(Nd,{children:Me.jsx(eR,{client:rR,children:Me.jsx(C$e,{})})}));ur.Helpdesk=WNe,ur.ReleaseNote=S$e,Object.defineProperty(ur,Symbol.toStringTag,{value:"Module"})});
|