randmarcomps 1.149.0 → 1.150.0
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.
- package/dist/randmarcomps.js +742 -726
- package/dist/randmarcomps.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -60,11 +60,11 @@ function Tt({ containerRef: t, inputRef: e, pushPasswordManagerStrategy: n, isFo
|
|
|
60
60
|
}
|
|
61
61
|
var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
62
62
|
var n = t, { value: i, onChange: o, maxLength: l, textAlign: u = "left", pattern: d, placeholder: f, inputMode: p = "numeric", onComplete: m, pushPasswordManagerStrategy: g = "increase-width", pasteTransformer: b, containerClassName: _, noScriptCSSFallback: E = Nt, render: C, children: S } = n, T = Pt(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), R, I, M, A, N;
|
|
63
|
-
let [O, D] = React.useState(typeof T.defaultValue == "string" ? T.defaultValue : ""), V = i ?? O,
|
|
63
|
+
let [O, D] = React.useState(typeof T.defaultValue == "string" ? T.defaultValue : ""), V = i ?? O, j = _t(V), B = React.useCallback((ee) => {
|
|
64
64
|
o == null || o(ee), D(ee);
|
|
65
|
-
}, [o]), F = React.useMemo(() => d ? typeof d == "string" ? new RegExp(d) : d : null, [d]),
|
|
66
|
-
React.useImperativeHandle(e, () =>
|
|
67
|
-
let ee =
|
|
65
|
+
}, [o]), F = React.useMemo(() => d ? typeof d == "string" ? new RegExp(d) : d : null, [d]), L = React.useRef(null), q = React.useRef(null), G = React.useRef({ value: V, onChange: B, isIOS: typeof window < "u" && ((I = (R = window == null ? void 0 : window.CSS) == null ? void 0 : R.supports) == null ? void 0 : I.call(R, "-webkit-touch-callout", "none")) }), U = React.useRef({ prev: [(M = L.current) == null ? void 0 : M.selectionStart, (A = L.current) == null ? void 0 : A.selectionEnd, (N = L.current) == null ? void 0 : N.selectionDirection] });
|
|
66
|
+
React.useImperativeHandle(e, () => L.current, []), React.useEffect(() => {
|
|
67
|
+
let ee = L.current, fe = q.current;
|
|
68
68
|
if (!ee || !fe) return;
|
|
69
69
|
G.current.value !== ee.value && G.current.onChange(ee.value), U.current.prev = [ee.selectionStart, ee.selectionEnd, ee.selectionDirection];
|
|
70
70
|
function he() {
|
|
@@ -89,7 +89,7 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
|
89
89
|
xe = Ie + Re, Ce = Ie + Re + 1;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
xe !== -1 && Ce !== -1 && xe !== Ce &&
|
|
92
|
+
xe !== -1 && Ce !== -1 && xe !== Ce && L.current.setSelectionRange(xe, Ce, Ee);
|
|
93
93
|
}
|
|
94
94
|
let we = xe !== -1 ? xe : pe, Te = Ce !== -1 ? Ce : ge, Ae = Ee ?? _e;
|
|
95
95
|
ne(we), le(Te), U.current.prev = [we, Te, Ae];
|
|
@@ -114,39 +114,39 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
|
114
114
|
React.useEffect(() => {
|
|
115
115
|
ht(() => {
|
|
116
116
|
var ee, fe, he, me;
|
|
117
|
-
(ee =
|
|
118
|
-
let ye = (fe =
|
|
117
|
+
(ee = L.current) == null || ee.dispatchEvent(new Event("input"));
|
|
118
|
+
let ye = (fe = L.current) == null ? void 0 : fe.selectionStart, pe = (he = L.current) == null ? void 0 : he.selectionEnd, ge = (me = L.current) == null ? void 0 : me.selectionDirection;
|
|
119
119
|
ye !== null && pe !== null && (ne(ye), le(pe), U.current.prev = [ye, pe, ge]);
|
|
120
120
|
});
|
|
121
121
|
}, [V, z]), React.useEffect(() => {
|
|
122
|
-
|
|
123
|
-
}, [l, m,
|
|
124
|
-
let ie = Tt({ containerRef: q, inputRef:
|
|
122
|
+
j !== void 0 && V !== j && j.length < l && V.length === l && (m == null || m(V));
|
|
123
|
+
}, [l, m, j, V]);
|
|
124
|
+
let ie = Tt({ containerRef: q, inputRef: L, pushPasswordManagerStrategy: g, isFocused: z }), ue = React.useCallback((ee) => {
|
|
125
125
|
let fe = ee.currentTarget.value.slice(0, l);
|
|
126
126
|
if (fe.length > 0 && F && !F.test(fe)) {
|
|
127
127
|
ee.preventDefault();
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
|
-
typeof
|
|
131
|
-
}, [l, B,
|
|
130
|
+
typeof j == "string" && fe.length < j.length && document.dispatchEvent(new Event("selectionchange")), B(fe);
|
|
131
|
+
}, [l, B, j, F]), ae = React.useCallback(() => {
|
|
132
132
|
var ee;
|
|
133
|
-
if (
|
|
134
|
-
let fe = Math.min(
|
|
135
|
-
(ee =
|
|
133
|
+
if (L.current) {
|
|
134
|
+
let fe = Math.min(L.current.value.length, l - 1), he = L.current.value.length;
|
|
135
|
+
(ee = L.current) == null || ee.setSelectionRange(fe, he), ne(fe), le(he);
|
|
136
136
|
}
|
|
137
137
|
W(!0);
|
|
138
138
|
}, [l]), ce = React.useCallback((ee) => {
|
|
139
139
|
var fe, he;
|
|
140
|
-
let me =
|
|
140
|
+
let me = L.current;
|
|
141
141
|
if (!b && (!G.current.isIOS || !ee.clipboardData || !me)) return;
|
|
142
142
|
let ye = ee.clipboardData.getData("text/plain"), pe = b ? b(ye) : ye;
|
|
143
143
|
ee.preventDefault();
|
|
144
|
-
let ge = (fe =
|
|
144
|
+
let ge = (fe = L.current) == null ? void 0 : fe.selectionStart, _e = (he = L.current) == null ? void 0 : he.selectionEnd, ve = (ge !== _e ? V.slice(0, ge) + pe + V.slice(_e) : V.slice(0, ge) + pe + V.slice(ge)).slice(0, l);
|
|
145
145
|
if (ve.length > 0 && F && !F.test(ve)) return;
|
|
146
146
|
me.value = ve, B(ve);
|
|
147
147
|
let Se = Math.min(ve.length, l - 1), Pe = ve.length;
|
|
148
148
|
me.setSelectionRange(Se, Pe), ne(Se), le(Pe);
|
|
149
|
-
}, [l, B, F, V]), se = React.useMemo(() => ({ position: "relative", cursor: T.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [T.disabled]), te = React.useMemo(() => ({ position: "absolute", inset: 0, width: ie.willPushPWMBadge ? `calc(100% + ${ie.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: ie.willPushPWMBadge ? `inset(0 ${ie.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: u, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [ie.PWM_BADGE_SPACE_WIDTH, ie.willPushPWMBadge, u]), Z = React.useMemo(() => React.createElement("input", bt(St({ autoComplete: T.autoComplete || "one-time-code" }, T), { "data-input-otp": !0, "data-input-otp-placeholder-shown": V.length === 0 || void 0, "data-input-otp-mss": J, "data-input-otp-mse": oe, inputMode: p, pattern: F == null ? void 0 : F.source, "aria-placeholder": f, style: te, maxLength: l, value: V, ref:
|
|
149
|
+
}, [l, B, F, V]), se = React.useMemo(() => ({ position: "relative", cursor: T.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [T.disabled]), te = React.useMemo(() => ({ position: "absolute", inset: 0, width: ie.willPushPWMBadge ? `calc(100% + ${ie.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: ie.willPushPWMBadge ? `inset(0 ${ie.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: u, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [ie.PWM_BADGE_SPACE_WIDTH, ie.willPushPWMBadge, u]), Z = React.useMemo(() => React.createElement("input", bt(St({ autoComplete: T.autoComplete || "one-time-code" }, T), { "data-input-otp": !0, "data-input-otp-placeholder-shown": V.length === 0 || void 0, "data-input-otp-mss": J, "data-input-otp-mse": oe, inputMode: p, pattern: F == null ? void 0 : F.source, "aria-placeholder": f, style: te, maxLength: l, value: V, ref: L, onPaste: (ee) => {
|
|
150
150
|
var fe;
|
|
151
151
|
ce(ee), (fe = T.onPaste) == null || fe.call(T, ee);
|
|
152
152
|
}, onChange: ue, onMouseOver: (ee) => {
|
|
@@ -1080,9 +1080,9 @@ const fromTheme = (t) => {
|
|
|
1080
1080
|
"bottom-left",
|
|
1081
1081
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1082
1082
|
"left-bottom"
|
|
1083
|
-
], A = () => [...M(), isArbitraryVariable, isArbitraryValue], N = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], D = () => [isArbitraryVariable, isArbitraryValue, f], V = () => [isFraction, "full", "auto", ...D()],
|
|
1083
|
+
], A = () => [...M(), isArbitraryVariable, isArbitraryValue], N = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], D = () => [isArbitraryVariable, isArbitraryValue, f], V = () => [isFraction, "full", "auto", ...D()], j = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue], B = () => ["auto", {
|
|
1084
1084
|
span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
|
|
1085
|
-
}, isInteger, isArbitraryVariable, isArbitraryValue], F = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue],
|
|
1085
|
+
}, isInteger, isArbitraryVariable, isArbitraryValue], F = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], L = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], U = () => ["auto", ...D()], Q = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...D()], H = () => [t, isArbitraryVariable, isArbitraryValue], z = () => [...M(), isArbitraryVariablePosition, isArbitraryPosition, {
|
|
1086
1086
|
position: [isArbitraryVariable, isArbitraryValue]
|
|
1087
1087
|
}], W = () => ["no-repeat", {
|
|
1088
1088
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -1408,7 +1408,7 @@ const fromTheme = (t) => {
|
|
|
1408
1408
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1409
1409
|
*/
|
|
1410
1410
|
"grid-cols": [{
|
|
1411
|
-
"grid-cols":
|
|
1411
|
+
"grid-cols": j()
|
|
1412
1412
|
}],
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Grid Column Start / End
|
|
@@ -1436,7 +1436,7 @@ const fromTheme = (t) => {
|
|
|
1436
1436
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1437
1437
|
*/
|
|
1438
1438
|
"grid-rows": [{
|
|
1439
|
-
"grid-rows":
|
|
1439
|
+
"grid-rows": j()
|
|
1440
1440
|
}],
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Grid Row Start / End
|
|
@@ -1471,14 +1471,14 @@ const fromTheme = (t) => {
|
|
|
1471
1471
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1472
1472
|
*/
|
|
1473
1473
|
"auto-cols": [{
|
|
1474
|
-
"auto-cols":
|
|
1474
|
+
"auto-cols": L()
|
|
1475
1475
|
}],
|
|
1476
1476
|
/**
|
|
1477
1477
|
* Grid Auto Rows
|
|
1478
1478
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1479
1479
|
*/
|
|
1480
1480
|
"auto-rows": [{
|
|
1481
|
-
"auto-rows":
|
|
1481
|
+
"auto-rows": L()
|
|
1482
1482
|
}],
|
|
1483
1483
|
/**
|
|
1484
1484
|
* Gap
|
|
@@ -3851,11 +3851,11 @@ var DISMISSABLE_LAYER_NAME = "DismissableLayer", CONTEXT_UPDATE = "dismissableLa
|
|
|
3851
3851
|
onDismiss: d,
|
|
3852
3852
|
...f
|
|
3853
3853
|
} = t, p = React.useContext(DismissableLayerContext), [m, g] = React.useState(null), b = (m == null ? void 0 : m.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, _] = React.useState({}), E = useComposedRefs(e, (O) => g(O)), C = Array.from(p.layers), [S] = [...p.layersWithOutsidePointerEventsDisabled].slice(-1), T = C.indexOf(S), R = m ? C.indexOf(m) : -1, I = p.layersWithOutsidePointerEventsDisabled.size > 0, M = R >= T, A = usePointerDownOutside((O) => {
|
|
3854
|
-
const D = O.target, V = [...p.branches].some((
|
|
3854
|
+
const D = O.target, V = [...p.branches].some((j) => j.contains(D));
|
|
3855
3855
|
!M || V || (o == null || o(O), u == null || u(O), O.defaultPrevented || d == null || d());
|
|
3856
3856
|
}, b), N = useFocusOutside((O) => {
|
|
3857
3857
|
const D = O.target;
|
|
3858
|
-
[...p.branches].some((
|
|
3858
|
+
[...p.branches].some((j) => j.contains(D)) || (l == null || l(O), u == null || u(O), O.defaultPrevented || d == null || d());
|
|
3859
3859
|
}, b);
|
|
3860
3860
|
return useEscapeKeydown((O) => {
|
|
3861
3861
|
R === p.layers.size - 1 && (i == null || i(O), !O.defaultPrevented && d && (O.preventDefault(), d()));
|
|
@@ -5324,7 +5324,7 @@ const arrow$3 = (t) => ({
|
|
|
5324
5324
|
}, _ = getAlignmentAxis(o), E = getAxisLength(_), C = await u.getDimensions(p), S = _ === "y", T = S ? "top" : "left", R = S ? "bottom" : "right", I = S ? "clientHeight" : "clientWidth", M = l.reference[E] + l.reference[_] - b[_] - l.floating[E], A = b[_] - l.reference[_], N = await (u.getOffsetParent == null ? void 0 : u.getOffsetParent(p));
|
|
5325
5325
|
let O = N ? N[I] : 0;
|
|
5326
5326
|
(!O || !await (u.isElement == null ? void 0 : u.isElement(N))) && (O = d.floating[I] || l.floating[E]);
|
|
5327
|
-
const D = M / 2 - A / 2, V = O / 2 - C[E] / 2 - 1,
|
|
5327
|
+
const D = M / 2 - A / 2, V = O / 2 - C[E] / 2 - 1, j = min$2(g[T], V), B = min$2(g[R], V), F = j, L = O - C[E] - B, q = O / 2 - C[E] / 2 + D, G = clamp$1(F, q, L), U = !f.arrow && getAlignment(o) != null && q !== G && l.reference[E] / 2 - (q < F ? j : B) - C[E] / 2 < 0, Q = U ? q < F ? q - F : q - L : 0;
|
|
5328
5328
|
return {
|
|
5329
5329
|
[_]: b[_] + Q,
|
|
5330
5330
|
data: {
|
|
@@ -5364,12 +5364,12 @@ const arrow$3 = (t) => ({
|
|
|
5364
5364
|
const T = getSide(o), R = getSideAxis(d), I = getSide(d) === d, M = await (f.isRTL == null ? void 0 : f.isRTL(p.floating)), A = b || (I || !C ? [getOppositePlacement(d)] : getExpandedPlacements(d)), N = E !== "none";
|
|
5365
5365
|
!b && N && A.push(...getOppositeAxisPlacements(d, C, E, M));
|
|
5366
5366
|
const O = [d, ...A], D = await detectOverflow(e, S), V = [];
|
|
5367
|
-
let
|
|
5367
|
+
let j = ((i = l.flip) == null ? void 0 : i.overflows) || [];
|
|
5368
5368
|
if (m && V.push(D[T]), g) {
|
|
5369
5369
|
const q = getAlignmentSides(o, u, M);
|
|
5370
5370
|
V.push(D[q[0]], D[q[1]]);
|
|
5371
5371
|
}
|
|
5372
|
-
if (
|
|
5372
|
+
if (j = [...j, {
|
|
5373
5373
|
placement: o,
|
|
5374
5374
|
overflows: V
|
|
5375
5375
|
}], !V.every((q) => q <= 0)) {
|
|
@@ -5379,18 +5379,18 @@ const arrow$3 = (t) => ({
|
|
|
5379
5379
|
return {
|
|
5380
5380
|
data: {
|
|
5381
5381
|
index: q,
|
|
5382
|
-
overflows:
|
|
5382
|
+
overflows: j
|
|
5383
5383
|
},
|
|
5384
5384
|
reset: {
|
|
5385
5385
|
placement: G
|
|
5386
5386
|
}
|
|
5387
5387
|
};
|
|
5388
|
-
let U = (F =
|
|
5388
|
+
let U = (F = j.filter((Q) => Q.overflows[0] <= 0).sort((Q, H) => Q.overflows[1] - H.overflows[1])[0]) == null ? void 0 : F.placement;
|
|
5389
5389
|
if (!U)
|
|
5390
5390
|
switch (_) {
|
|
5391
5391
|
case "bestFit": {
|
|
5392
|
-
var
|
|
5393
|
-
const Q = (
|
|
5392
|
+
var L;
|
|
5393
|
+
const Q = (L = j.filter((H) => {
|
|
5394
5394
|
if (N) {
|
|
5395
5395
|
const z = getSideAxis(H.placement);
|
|
5396
5396
|
return z === R || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -5398,7 +5398,7 @@ const arrow$3 = (t) => ({
|
|
|
5398
5398
|
z === "y";
|
|
5399
5399
|
}
|
|
5400
5400
|
return !0;
|
|
5401
|
-
}).map((H) => [H.placement, H.overflows.filter((z) => z > 0).reduce((z, W) => z + W, 0)]).sort((H, z) => H[1] - z[1])[0]) == null ? void 0 :
|
|
5401
|
+
}).map((H) => [H.placement, H.overflows.filter((z) => z > 0).reduce((z, W) => z + W, 0)]).sort((H, z) => H[1] - z[1])[0]) == null ? void 0 : L[0];
|
|
5402
5402
|
Q && (U = Q);
|
|
5403
5403
|
break;
|
|
5404
5404
|
}
|
|
@@ -5641,8 +5641,8 @@ const offset$2 = function(t) {
|
|
|
5641
5641
|
const R = C - m.top - m.bottom, I = E - m.left - m.right, M = min$2(C - m[S], R), A = min$2(E - m[T], I), N = !e.middlewareData.shift;
|
|
5642
5642
|
let O = M, D = A;
|
|
5643
5643
|
if ((n = e.middlewareData.shift) != null && n.enabled.x && (D = I), (i = e.middlewareData.shift) != null && i.enabled.y && (O = R), N && !b) {
|
|
5644
|
-
const
|
|
5645
|
-
_ ? D = E - 2 * (
|
|
5644
|
+
const j = max$2(m.left, 0), B = max$2(m.right, 0), F = max$2(m.top, 0), L = max$2(m.bottom, 0);
|
|
5645
|
+
_ ? D = E - 2 * (j !== 0 || B !== 0 ? j + B : max$2(m.left, m.right)) : O = C - 2 * (F !== 0 || L !== 0 ? F + L : max$2(m.top, m.bottom));
|
|
5646
5646
|
}
|
|
5647
5647
|
await f({
|
|
5648
5648
|
...e,
|
|
@@ -6217,7 +6217,7 @@ function useFloating(t) {
|
|
|
6217
6217
|
H !== N.current && (N.current = H, C(H));
|
|
6218
6218
|
}, []), I = React.useCallback((H) => {
|
|
6219
6219
|
H !== O.current && (O.current = H, T(H));
|
|
6220
|
-
}, []), M = l || E, A = u || S, N = React.useRef(null), O = React.useRef(null), D = React.useRef(m), V = f != null,
|
|
6220
|
+
}, []), M = l || E, A = u || S, N = React.useRef(null), O = React.useRef(null), D = React.useRef(m), V = f != null, j = useLatestRef(f), B = useLatestRef(o), F = useLatestRef(p), L = React.useCallback(() => {
|
|
6221
6221
|
if (!N.current || !O.current)
|
|
6222
6222
|
return;
|
|
6223
6223
|
const H = {
|
|
@@ -6250,11 +6250,11 @@ function useFloating(t) {
|
|
|
6250
6250
|
q.current = !1;
|
|
6251
6251
|
}), []), index(() => {
|
|
6252
6252
|
if (M && (N.current = M), A && (O.current = A), M && A) {
|
|
6253
|
-
if (
|
|
6254
|
-
return
|
|
6255
|
-
|
|
6253
|
+
if (j.current)
|
|
6254
|
+
return j.current(M, A, L);
|
|
6255
|
+
L();
|
|
6256
6256
|
}
|
|
6257
|
-
}, [M, A,
|
|
6257
|
+
}, [M, A, L, j, V]);
|
|
6258
6258
|
const G = React.useMemo(() => ({
|
|
6259
6259
|
reference: N,
|
|
6260
6260
|
floating: O,
|
|
@@ -6286,11 +6286,11 @@ function useFloating(t) {
|
|
|
6286
6286
|
}, [n, d, U.floating, m.x, m.y]);
|
|
6287
6287
|
return React.useMemo(() => ({
|
|
6288
6288
|
...m,
|
|
6289
|
-
update:
|
|
6289
|
+
update: L,
|
|
6290
6290
|
refs: G,
|
|
6291
6291
|
elements: U,
|
|
6292
6292
|
floatingStyles: Q
|
|
6293
|
-
}), [m,
|
|
6293
|
+
}), [m, L, G, U, Q]);
|
|
6294
6294
|
}
|
|
6295
6295
|
const arrow$1 = (t) => {
|
|
6296
6296
|
function e(n) {
|
|
@@ -6406,8 +6406,8 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
6406
6406
|
updatePositionStrategy: _ = "optimized",
|
|
6407
6407
|
onPlaced: E,
|
|
6408
6408
|
...C
|
|
6409
|
-
} = t, S = usePopperContext(CONTENT_NAME$5, n), [T, R] = React.useState(null), I = useComposedRefs(e, (de) => R(de)), [M, A] = React.useState(null), N = useSize(M), O = (N == null ? void 0 : N.width) ?? 0, D = (N == null ? void 0 : N.height) ?? 0, V = i + (l !== "center" ? "-" + l : ""),
|
|
6410
|
-
padding:
|
|
6409
|
+
} = t, S = usePopperContext(CONTENT_NAME$5, n), [T, R] = React.useState(null), I = useComposedRefs(e, (de) => R(de)), [M, A] = React.useState(null), N = useSize(M), O = (N == null ? void 0 : N.width) ?? 0, D = (N == null ? void 0 : N.height) ?? 0, V = i + (l !== "center" ? "-" + l : ""), j = typeof m == "number" ? m : { top: 0, right: 0, bottom: 0, left: 0, ...m }, B = Array.isArray(p) ? p : [p], F = B.length > 0, L = {
|
|
6410
|
+
padding: j,
|
|
6411
6411
|
boundary: B.filter(isNotNull),
|
|
6412
6412
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
6413
6413
|
altBoundary: F
|
|
@@ -6427,11 +6427,11 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
6427
6427
|
mainAxis: !0,
|
|
6428
6428
|
crossAxis: !1,
|
|
6429
6429
|
limiter: g === "partial" ? limitShift() : void 0,
|
|
6430
|
-
...
|
|
6430
|
+
...L
|
|
6431
6431
|
}),
|
|
6432
|
-
f && flip({ ...
|
|
6432
|
+
f && flip({ ...L }),
|
|
6433
6433
|
size({
|
|
6434
|
-
...
|
|
6434
|
+
...L,
|
|
6435
6435
|
apply: ({ elements: de, rects: ee, availableWidth: fe, availableHeight: he }) => {
|
|
6436
6436
|
const { width: me, height: ye } = ee.reference, pe = de.floating.style;
|
|
6437
6437
|
pe.setProperty("--radix-popper-available-width", `${fe}px`), pe.setProperty("--radix-popper-available-height", `${he}px`), pe.setProperty("--radix-popper-anchor-width", `${me}px`), pe.setProperty("--radix-popper-anchor-height", `${ye}px`);
|
|
@@ -6439,7 +6439,7 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
6439
6439
|
}),
|
|
6440
6440
|
M && arrow({ element: M, padding: d }),
|
|
6441
6441
|
transformOrigin({ arrowWidth: O, arrowHeight: D }),
|
|
6442
|
-
b && hide({ strategy: "referenceHidden", ...
|
|
6442
|
+
b && hide({ strategy: "referenceHidden", ...L })
|
|
6443
6443
|
]
|
|
6444
6444
|
}), [z, W] = getSideAndAlignFromPlacement(U), J = useCallbackRef$1(E);
|
|
6445
6445
|
useLayoutEffect2(() => {
|
|
@@ -6635,9 +6635,9 @@ var RovingFocusGroupImpl = React.forwardRef((t, e) => {
|
|
|
6635
6635
|
onFocus: composeEventHandlers(t.onFocus, (D) => {
|
|
6636
6636
|
const V = !A.current;
|
|
6637
6637
|
if (D.target === D.currentTarget && V && !T) {
|
|
6638
|
-
const
|
|
6639
|
-
if (D.currentTarget.dispatchEvent(
|
|
6640
|
-
const B = M().filter((U) => U.focusable), F = B.find((U) => U.active),
|
|
6638
|
+
const j = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);
|
|
6639
|
+
if (D.currentTarget.dispatchEvent(j), !j.defaultPrevented) {
|
|
6640
|
+
const B = M().filter((U) => U.focusable), F = B.find((U) => U.active), L = B.find((U) => U.id === C), G = [F, L, ...B].filter(
|
|
6641
6641
|
Boolean
|
|
6642
6642
|
).map((U) => U.ref.current);
|
|
6643
6643
|
focusFirst$2(G, m);
|
|
@@ -6849,23 +6849,23 @@ var CONTENT_NAME$4 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
6849
6849
|
onDismiss: _,
|
|
6850
6850
|
disableOutsideScroll: E,
|
|
6851
6851
|
...C
|
|
6852
|
-
} = t, S = useMenuContext(CONTENT_NAME$4, n), T = useMenuRootContext(CONTENT_NAME$4, n), R = usePopperScope$2(n), I = useRovingFocusGroupScope$1(n), M = useCollection$2(n), [A, N] = React.useState(null), O = React.useRef(null), D = useComposedRefs(e, O, S.onContentChange), V = React.useRef(0),
|
|
6852
|
+
} = t, S = useMenuContext(CONTENT_NAME$4, n), T = useMenuRootContext(CONTENT_NAME$4, n), R = usePopperScope$2(n), I = useRovingFocusGroupScope$1(n), M = useCollection$2(n), [A, N] = React.useState(null), O = React.useRef(null), D = useComposedRefs(e, O, S.onContentChange), V = React.useRef(0), j = React.useRef(""), B = React.useRef(0), F = React.useRef(null), L = React.useRef("right"), q = React.useRef(0), G = E ? ReactRemoveScroll : React.Fragment, U = E ? { as: Slot$1, allowPinchZoom: !0 } : void 0, Q = (z) => {
|
|
6853
6853
|
var ae, ce;
|
|
6854
|
-
const W =
|
|
6854
|
+
const W = j.current + z, J = M().filter((se) => !se.disabled), ne = document.activeElement, oe = (ae = J.find((se) => se.ref.current === ne)) == null ? void 0 : ae.textValue, le = J.map((se) => se.textValue), ie = getNextMatch(le, W, oe), ue = (ce = J.find((se) => se.textValue === ie)) == null ? void 0 : ce.ref.current;
|
|
6855
6855
|
(function se(te) {
|
|
6856
|
-
|
|
6856
|
+
j.current = te, window.clearTimeout(V.current), te !== "" && (V.current = window.setTimeout(() => se(""), 1e3));
|
|
6857
6857
|
})(W), ue && setTimeout(() => ue.focus());
|
|
6858
6858
|
};
|
|
6859
6859
|
React.useEffect(() => () => window.clearTimeout(V.current), []), useFocusGuards();
|
|
6860
6860
|
const H = React.useCallback((z) => {
|
|
6861
6861
|
var J, ne;
|
|
6862
|
-
return
|
|
6862
|
+
return L.current === ((J = F.current) == null ? void 0 : J.side) && isPointerInGraceArea(z, (ne = F.current) == null ? void 0 : ne.area);
|
|
6863
6863
|
}, []);
|
|
6864
6864
|
return /* @__PURE__ */ jsx(
|
|
6865
6865
|
MenuContentProvider,
|
|
6866
6866
|
{
|
|
6867
6867
|
scope: n,
|
|
6868
|
-
searchRef:
|
|
6868
|
+
searchRef: j,
|
|
6869
6869
|
onItemEnter: React.useCallback(
|
|
6870
6870
|
(z) => {
|
|
6871
6871
|
H(z) && z.preventDefault();
|
|
@@ -6945,7 +6945,7 @@ var CONTENT_NAME$4 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
6945
6945
|
LAST_KEYS.includes(z.key) && ue.reverse(), focusFirst$1(ue);
|
|
6946
6946
|
}),
|
|
6947
6947
|
onBlur: composeEventHandlers(t.onBlur, (z) => {
|
|
6948
|
-
z.currentTarget.contains(z.target) || (window.clearTimeout(V.current),
|
|
6948
|
+
z.currentTarget.contains(z.target) || (window.clearTimeout(V.current), j.current = "");
|
|
6949
6949
|
}),
|
|
6950
6950
|
onPointerMove: composeEventHandlers(
|
|
6951
6951
|
t.onPointerMove,
|
|
@@ -6953,7 +6953,7 @@ var CONTENT_NAME$4 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
6953
6953
|
const W = z.target, J = q.current !== z.clientX;
|
|
6954
6954
|
if (z.currentTarget.contains(W) && J) {
|
|
6955
6955
|
const ne = z.clientX > q.current ? "right" : "left";
|
|
6956
|
-
|
|
6956
|
+
L.current = ne, q.current = z.clientX;
|
|
6957
6957
|
}
|
|
6958
6958
|
})
|
|
6959
6959
|
)
|
|
@@ -8991,8 +8991,8 @@ var VIEWPORT_NAME$2 = "ToastViewport", VIEWPORT_DEFAULT_HOTKEY = ["F8"], VIEWPOR
|
|
|
8991
8991
|
(A = p.current) == null || A.focus();
|
|
8992
8992
|
return;
|
|
8993
8993
|
}
|
|
8994
|
-
const F = C({ tabbingDirection: V ? "backwards" : "forwards" }),
|
|
8995
|
-
focusFirst(F.slice(
|
|
8994
|
+
const F = C({ tabbingDirection: V ? "backwards" : "forwards" }), L = F.findIndex((q) => q === D);
|
|
8995
|
+
focusFirst(F.slice(L + 1)) ? R.preventDefault() : V ? (N = p.current) == null || N.focus() : (O = m.current) == null || O.focus();
|
|
8996
8996
|
}
|
|
8997
8997
|
};
|
|
8998
8998
|
return S.addEventListener("keydown", T), () => S.removeEventListener("keydown", T);
|
|
@@ -9113,7 +9113,7 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
9113
9113
|
onSwipeCancel: b,
|
|
9114
9114
|
onSwipeEnd: _,
|
|
9115
9115
|
...E
|
|
9116
|
-
} = t, C = useToastProviderContext(TOAST_NAME, n), [S, T] = React.useState(null), R = useComposedRefs(e, (q) => T(q)), I = React.useRef(null), M = React.useRef(null), A = o || C.duration, N = React.useRef(0), O = React.useRef(A), D = React.useRef(0), { onToastAdd: V, onToastRemove:
|
|
9116
|
+
} = t, C = useToastProviderContext(TOAST_NAME, n), [S, T] = React.useState(null), R = useComposedRefs(e, (q) => T(q)), I = React.useRef(null), M = React.useRef(null), A = o || C.duration, N = React.useRef(0), O = React.useRef(A), D = React.useRef(0), { onToastAdd: V, onToastRemove: j } = C, B = useCallbackRef$1(() => {
|
|
9117
9117
|
var G;
|
|
9118
9118
|
(S == null ? void 0 : S.contains(document.activeElement)) && ((G = C.viewport) == null || G.focus()), u();
|
|
9119
9119
|
}), F = React.useCallback(
|
|
@@ -9137,17 +9137,17 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
9137
9137
|
}
|
|
9138
9138
|
}, [C.viewport, A, f, p, F]), React.useEffect(() => {
|
|
9139
9139
|
l && !C.isClosePausedRef.current && F(A);
|
|
9140
|
-
}, [l, A, C.isClosePausedRef, F]), React.useEffect(() => (V(), () =>
|
|
9141
|
-
const
|
|
9140
|
+
}, [l, A, C.isClosePausedRef, F]), React.useEffect(() => (V(), () => j()), [V, j]);
|
|
9141
|
+
const L = React.useMemo(() => S ? getAnnounceTextContent(S) : null, [S]);
|
|
9142
9142
|
return C.viewport ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9143
|
-
|
|
9143
|
+
L && /* @__PURE__ */ jsx(
|
|
9144
9144
|
ToastAnnounce,
|
|
9145
9145
|
{
|
|
9146
9146
|
__scopeToast: n,
|
|
9147
9147
|
role: "status",
|
|
9148
9148
|
"aria-live": i === "foreground" ? "assertive" : "polite",
|
|
9149
9149
|
"aria-atomic": !0,
|
|
9150
|
-
children:
|
|
9150
|
+
children: L
|
|
9151
9151
|
}
|
|
9152
9152
|
),
|
|
9153
9153
|
/* @__PURE__ */ jsx(ToastInteractiveProvider, { scope: n, onClose: B, children: ReactDOM.createPortal(
|
|
@@ -10228,7 +10228,7 @@ function requireReactIs_development$1() {
|
|
|
10228
10228
|
}
|
|
10229
10229
|
}
|
|
10230
10230
|
}
|
|
10231
|
-
var N = u, O = l, D = t, V = f,
|
|
10231
|
+
var N = u, O = l, D = t, V = f, j = n, B = b, F = g, L = e, q = o, G = i, U = p, Q = m, H = !1, z = !1;
|
|
10232
10232
|
function W(ee) {
|
|
10233
10233
|
return H || (H = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
10234
10234
|
}
|
|
@@ -10271,7 +10271,7 @@ function requireReactIs_development$1() {
|
|
|
10271
10271
|
function de(ee) {
|
|
10272
10272
|
return A(ee) === m;
|
|
10273
10273
|
}
|
|
10274
|
-
reactIs_development$1.ContextConsumer = N, reactIs_development$1.ContextProvider = O, reactIs_development$1.Element = D, reactIs_development$1.ForwardRef = V, reactIs_development$1.Fragment =
|
|
10274
|
+
reactIs_development$1.ContextConsumer = N, reactIs_development$1.ContextProvider = O, reactIs_development$1.Element = D, reactIs_development$1.ForwardRef = V, reactIs_development$1.Fragment = j, reactIs_development$1.Lazy = B, reactIs_development$1.Memo = F, reactIs_development$1.Portal = L, reactIs_development$1.Profiler = q, reactIs_development$1.StrictMode = G, reactIs_development$1.Suspense = U, reactIs_development$1.SuspenseList = Q, reactIs_development$1.isAsyncMode = W, reactIs_development$1.isConcurrentMode = J, reactIs_development$1.isContextConsumer = ne, reactIs_development$1.isContextProvider = oe, reactIs_development$1.isElement = le, reactIs_development$1.isForwardRef = ie, reactIs_development$1.isFragment = ue, reactIs_development$1.isLazy = ae, reactIs_development$1.isMemo = ce, reactIs_development$1.isPortal = se, reactIs_development$1.isProfiler = te, reactIs_development$1.isStrictMode = Z, reactIs_development$1.isSuspense = K, reactIs_development$1.isSuspenseList = de, reactIs_development$1.isValidElementType = M, reactIs_development$1.typeOf = A;
|
|
10275
10275
|
}()), reactIs_development$1;
|
|
10276
10276
|
}
|
|
10277
10277
|
var hasRequiredReactIs$1;
|
|
@@ -12281,7 +12281,7 @@ function require_equalByTag() {
|
|
|
12281
12281
|
if (hasRequired_equalByTag) return _equalByTag;
|
|
12282
12282
|
hasRequired_equalByTag = 1;
|
|
12283
12283
|
var t = require_Symbol(), e = require_Uint8Array(), n = requireEq(), i = require_equalArrays(), o = require_mapToArray(), l = require_setToArray(), u = 1, d = 2, f = "[object Boolean]", p = "[object Date]", m = "[object Error]", g = "[object Map]", b = "[object Number]", _ = "[object RegExp]", E = "[object Set]", C = "[object String]", S = "[object Symbol]", T = "[object ArrayBuffer]", R = "[object DataView]", I = t ? t.prototype : void 0, M = I ? I.valueOf : void 0;
|
|
12284
|
-
function A(N, O, D, V,
|
|
12284
|
+
function A(N, O, D, V, j, B, F) {
|
|
12285
12285
|
switch (D) {
|
|
12286
12286
|
case R:
|
|
12287
12287
|
if (N.byteLength != O.byteLength || N.byteOffset != O.byteOffset)
|
|
@@ -12299,16 +12299,16 @@ function require_equalByTag() {
|
|
|
12299
12299
|
case C:
|
|
12300
12300
|
return N == O + "";
|
|
12301
12301
|
case g:
|
|
12302
|
-
var
|
|
12302
|
+
var L = o;
|
|
12303
12303
|
case E:
|
|
12304
12304
|
var q = V & u;
|
|
12305
|
-
if (
|
|
12305
|
+
if (L || (L = l), N.size != O.size && !q)
|
|
12306
12306
|
return !1;
|
|
12307
12307
|
var G = F.get(N);
|
|
12308
12308
|
if (G)
|
|
12309
12309
|
return G == O;
|
|
12310
12310
|
V |= d, F.set(N, O);
|
|
12311
|
-
var U = i(
|
|
12311
|
+
var U = i(L(N), L(O), V, j, B, F);
|
|
12312
12312
|
return F.delete(N), U;
|
|
12313
12313
|
case S:
|
|
12314
12314
|
if (M)
|
|
@@ -12447,10 +12447,10 @@ var _baseIsTypedArray, hasRequired_baseIsTypedArray;
|
|
|
12447
12447
|
function require_baseIsTypedArray() {
|
|
12448
12448
|
if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
|
|
12449
12449
|
hasRequired_baseIsTypedArray = 1;
|
|
12450
|
-
var t = require_baseGetTag(), e = requireIsLength(), n = requireIsObjectLike(), i = "[object Arguments]", o = "[object Array]", l = "[object Boolean]", u = "[object Date]", d = "[object Error]", f = "[object Function]", p = "[object Map]", m = "[object Number]", g = "[object Object]", b = "[object RegExp]", _ = "[object Set]", E = "[object String]", C = "[object WeakMap]", S = "[object ArrayBuffer]", T = "[object DataView]", R = "[object Float32Array]", I = "[object Float64Array]", M = "[object Int8Array]", A = "[object Int16Array]", N = "[object Int32Array]", O = "[object Uint8Array]", D = "[object Uint8ClampedArray]", V = "[object Uint16Array]",
|
|
12451
|
-
B[R] = B[I] = B[M] = B[A] = B[N] = B[O] = B[D] = B[V] = B[
|
|
12452
|
-
function F(
|
|
12453
|
-
return n(
|
|
12450
|
+
var t = require_baseGetTag(), e = requireIsLength(), n = requireIsObjectLike(), i = "[object Arguments]", o = "[object Array]", l = "[object Boolean]", u = "[object Date]", d = "[object Error]", f = "[object Function]", p = "[object Map]", m = "[object Number]", g = "[object Object]", b = "[object RegExp]", _ = "[object Set]", E = "[object String]", C = "[object WeakMap]", S = "[object ArrayBuffer]", T = "[object DataView]", R = "[object Float32Array]", I = "[object Float64Array]", M = "[object Int8Array]", A = "[object Int16Array]", N = "[object Int32Array]", O = "[object Uint8Array]", D = "[object Uint8ClampedArray]", V = "[object Uint16Array]", j = "[object Uint32Array]", B = {};
|
|
12451
|
+
B[R] = B[I] = B[M] = B[A] = B[N] = B[O] = B[D] = B[V] = B[j] = !0, B[i] = B[o] = B[S] = B[l] = B[T] = B[u] = B[d] = B[f] = B[p] = B[m] = B[g] = B[b] = B[_] = B[E] = B[C] = !1;
|
|
12452
|
+
function F(L) {
|
|
12453
|
+
return n(L) && e(L.length) && !!B[t(L)];
|
|
12454
12454
|
}
|
|
12455
12455
|
return _baseIsTypedArray = F, _baseIsTypedArray;
|
|
12456
12456
|
}
|
|
@@ -12609,8 +12609,8 @@ function require_equalObjects() {
|
|
|
12609
12609
|
A || (A = T == "constructor");
|
|
12610
12610
|
}
|
|
12611
12611
|
if (M && !A) {
|
|
12612
|
-
var V = l.constructor,
|
|
12613
|
-
V !=
|
|
12612
|
+
var V = l.constructor, j = u.constructor;
|
|
12613
|
+
V != j && "constructor" in l && "constructor" in u && !(typeof V == "function" && V instanceof V && typeof j == "function" && j instanceof j) && (M = !1);
|
|
12614
12614
|
}
|
|
12615
12615
|
return m.delete(l), m.delete(u), M;
|
|
12616
12616
|
}
|
|
@@ -12675,7 +12675,7 @@ function require_baseIsEqualDeep() {
|
|
|
12675
12675
|
function E(C, S, T, R, I, M) {
|
|
12676
12676
|
var A = l(C), N = l(S), O = A ? m : o(C), D = N ? m : o(S);
|
|
12677
12677
|
O = O == p ? g : O, D = D == p ? g : D;
|
|
12678
|
-
var V = O == g,
|
|
12678
|
+
var V = O == g, j = D == g, B = O == D;
|
|
12679
12679
|
if (B && u(C)) {
|
|
12680
12680
|
if (!u(S))
|
|
12681
12681
|
return !1;
|
|
@@ -12684,9 +12684,9 @@ function require_baseIsEqualDeep() {
|
|
|
12684
12684
|
if (B && !V)
|
|
12685
12685
|
return M || (M = new t()), A || d(C) ? e(C, S, T, R, I, M) : n(C, S, O, T, R, I, M);
|
|
12686
12686
|
if (!(T & f)) {
|
|
12687
|
-
var F = V && _.call(C, "__wrapped__"),
|
|
12688
|
-
if (F ||
|
|
12689
|
-
var q = F ? C.value() : C, G =
|
|
12687
|
+
var F = V && _.call(C, "__wrapped__"), L = j && _.call(S, "__wrapped__");
|
|
12688
|
+
if (F || L) {
|
|
12689
|
+
var q = F ? C.value() : C, G = L ? S.value() : S;
|
|
12690
12690
|
return M || (M = new t()), I(q, G, T, R, M);
|
|
12691
12691
|
}
|
|
12692
12692
|
}
|
|
@@ -13668,7 +13668,7 @@ var DefaultTooltipContent = function(e) {
|
|
|
13668
13668
|
var F = {
|
|
13669
13669
|
padding: 0,
|
|
13670
13670
|
margin: 0
|
|
13671
|
-
},
|
|
13671
|
+
}, L = (b ? sortBy(m, b) : m).map(function(q, G) {
|
|
13672
13672
|
if (q.type === "none")
|
|
13673
13673
|
return null;
|
|
13674
13674
|
var U = _objectSpread$w({
|
|
@@ -13705,7 +13705,7 @@ var DefaultTooltipContent = function(e) {
|
|
|
13705
13705
|
return /* @__PURE__ */ React__default.createElement("ul", {
|
|
13706
13706
|
className: "recharts-tooltip-item-list",
|
|
13707
13707
|
style: F
|
|
13708
|
-
},
|
|
13708
|
+
}, L);
|
|
13709
13709
|
}
|
|
13710
13710
|
return null;
|
|
13711
13711
|
}, M = _objectSpread$w({
|
|
@@ -13718,14 +13718,14 @@ var DefaultTooltipContent = function(e) {
|
|
|
13718
13718
|
margin: 0
|
|
13719
13719
|
}, p), N = !isNil(C), O = N ? C : "", D = clsx("recharts-default-tooltip", _), V = clsx("recharts-tooltip-label", E);
|
|
13720
13720
|
N && S && m !== void 0 && m !== null && (O = S(C, m));
|
|
13721
|
-
var
|
|
13721
|
+
var j = R ? {
|
|
13722
13722
|
role: "status",
|
|
13723
13723
|
"aria-live": "assertive"
|
|
13724
13724
|
} : {};
|
|
13725
13725
|
return /* @__PURE__ */ React__default.createElement("div", _extends$m({
|
|
13726
13726
|
className: D,
|
|
13727
13727
|
style: M
|
|
13728
|
-
},
|
|
13728
|
+
}, j), /* @__PURE__ */ React__default.createElement("p", {
|
|
13729
13729
|
className: V,
|
|
13730
13730
|
style: A
|
|
13731
13731
|
}, /* @__PURE__ */ React__default.isValidElement(O) ? O : "".concat(O)), I());
|
|
@@ -14255,39 +14255,39 @@ function requireDebounce() {
|
|
|
14255
14255
|
if (typeof d != "function")
|
|
14256
14256
|
throw new TypeError(i);
|
|
14257
14257
|
f = n(f) || 0, t(p) && (T = !!p.leading, R = "maxWait" in p, b = R ? o(n(p.maxWait) || 0, f) : b, I = "trailing" in p ? !!p.trailing : I);
|
|
14258
|
-
function M(
|
|
14258
|
+
function M(L) {
|
|
14259
14259
|
var q = m, G = g;
|
|
14260
|
-
return m = g = void 0, S =
|
|
14260
|
+
return m = g = void 0, S = L, _ = d.apply(G, q), _;
|
|
14261
14261
|
}
|
|
14262
|
-
function A(
|
|
14263
|
-
return S =
|
|
14262
|
+
function A(L) {
|
|
14263
|
+
return S = L, E = setTimeout(D, f), T ? M(L) : _;
|
|
14264
14264
|
}
|
|
14265
|
-
function N(
|
|
14266
|
-
var q =
|
|
14265
|
+
function N(L) {
|
|
14266
|
+
var q = L - C, G = L - S, U = f - q;
|
|
14267
14267
|
return R ? l(U, b - G) : U;
|
|
14268
14268
|
}
|
|
14269
|
-
function O(
|
|
14270
|
-
var q =
|
|
14269
|
+
function O(L) {
|
|
14270
|
+
var q = L - C, G = L - S;
|
|
14271
14271
|
return C === void 0 || q >= f || q < 0 || R && G >= b;
|
|
14272
14272
|
}
|
|
14273
14273
|
function D() {
|
|
14274
|
-
var
|
|
14275
|
-
if (O(
|
|
14276
|
-
return V(
|
|
14277
|
-
E = setTimeout(D, N(
|
|
14274
|
+
var L = e();
|
|
14275
|
+
if (O(L))
|
|
14276
|
+
return V(L);
|
|
14277
|
+
E = setTimeout(D, N(L));
|
|
14278
14278
|
}
|
|
14279
|
-
function V(
|
|
14280
|
-
return E = void 0, I && m ? M(
|
|
14279
|
+
function V(L) {
|
|
14280
|
+
return E = void 0, I && m ? M(L) : (m = g = void 0, _);
|
|
14281
14281
|
}
|
|
14282
|
-
function
|
|
14282
|
+
function j() {
|
|
14283
14283
|
E !== void 0 && clearTimeout(E), S = 0, m = C = g = E = void 0;
|
|
14284
14284
|
}
|
|
14285
14285
|
function B() {
|
|
14286
14286
|
return E === void 0 ? _ : V(e());
|
|
14287
14287
|
}
|
|
14288
14288
|
function F() {
|
|
14289
|
-
var
|
|
14290
|
-
if (m = arguments, g = this, C =
|
|
14289
|
+
var L = e(), q = O(L);
|
|
14290
|
+
if (m = arguments, g = this, C = L, q) {
|
|
14291
14291
|
if (E === void 0)
|
|
14292
14292
|
return A(C);
|
|
14293
14293
|
if (R)
|
|
@@ -14295,7 +14295,7 @@ function requireDebounce() {
|
|
|
14295
14295
|
}
|
|
14296
14296
|
return E === void 0 && (E = setTimeout(D, f)), _;
|
|
14297
14297
|
}
|
|
14298
|
-
return F.cancel =
|
|
14298
|
+
return F.cancel = j, F.flush = B, F;
|
|
14299
14299
|
}
|
|
14300
14300
|
return debounce_1 = u, debounce_1;
|
|
14301
14301
|
}
|
|
@@ -14421,9 +14421,9 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
|
|
|
14421
14421
|
var O = useState({
|
|
14422
14422
|
containerWidth: o.width,
|
|
14423
14423
|
containerHeight: o.height
|
|
14424
|
-
}), D = _slicedToArray$a(O, 2), V = D[0],
|
|
14425
|
-
|
|
14426
|
-
var U = Math.round(
|
|
14424
|
+
}), D = _slicedToArray$a(O, 2), V = D[0], j = D[1], B = useCallback(function(L, q) {
|
|
14425
|
+
j(function(G) {
|
|
14426
|
+
var U = Math.round(L), Q = Math.round(q);
|
|
14427
14427
|
return G.containerWidth === U && G.containerHeight === Q ? G : {
|
|
14428
14428
|
containerWidth: U,
|
|
14429
14429
|
containerHeight: Q
|
|
@@ -14431,26 +14431,26 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
|
|
|
14431
14431
|
});
|
|
14432
14432
|
}, []);
|
|
14433
14433
|
useEffect(function() {
|
|
14434
|
-
var
|
|
14434
|
+
var L = function(z) {
|
|
14435
14435
|
var W, J = z[0].contentRect, ne = J.width, oe = J.height;
|
|
14436
14436
|
B(ne, oe), (W = N.current) === null || W === void 0 || W.call(N, ne, oe);
|
|
14437
14437
|
};
|
|
14438
|
-
C > 0 && (
|
|
14438
|
+
C > 0 && (L = throttle(L, C, {
|
|
14439
14439
|
trailing: !0,
|
|
14440
14440
|
leading: !1
|
|
14441
14441
|
}));
|
|
14442
|
-
var q = new ResizeObserver(
|
|
14442
|
+
var q = new ResizeObserver(L), G = A.current.getBoundingClientRect(), U = G.width, Q = G.height;
|
|
14443
14443
|
return B(U, Q), q.observe(A.current), function() {
|
|
14444
14444
|
q.disconnect();
|
|
14445
14445
|
};
|
|
14446
14446
|
}, [B, C]);
|
|
14447
14447
|
var F = useMemo(function() {
|
|
14448
|
-
var
|
|
14449
|
-
if (
|
|
14448
|
+
var L = V.containerWidth, q = V.containerHeight;
|
|
14449
|
+
if (L < 0 || q < 0)
|
|
14450
14450
|
return null;
|
|
14451
14451
|
warn$1(isPercent(u) || isPercent(f), `The width(%s) and height(%s) are both fixed numbers,
|
|
14452
14452
|
maybe you don't need to use a ResponsiveContainer.`, u, f), warn$1(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
|
|
14453
|
-
var G = isPercent(u) ?
|
|
14453
|
+
var G = isPercent(u) ? L : u, U = isPercent(f) ? q : f;
|
|
14454
14454
|
n && n > 0 && (G ? U = G / n : U && (G = U * n), b && U > b && (U = b)), warn$1(G > 0 || U > 0, `The width(%s) and height(%s) of chart should be greater than 0,
|
|
14455
14455
|
please check the style of container, or the props width(%s) and height(%s),
|
|
14456
14456
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
@@ -14882,9 +14882,9 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
14882
14882
|
}).wordsWithComputedWidth, H = b(Q), z = H.length > u || E(H).width > Number(o);
|
|
14883
14883
|
return [z, H];
|
|
14884
14884
|
}, T = 0, R = g.length - 1, I = 0, M; T <= R && I <= g.length - 1; ) {
|
|
14885
|
-
var A = Math.floor((T + R) / 2), N = A - 1, O = S(N), D = _slicedToArray$8(O, 2), V = D[0],
|
|
14886
|
-
if (!V && !
|
|
14887
|
-
M =
|
|
14885
|
+
var A = Math.floor((T + R) / 2), N = A - 1, O = S(N), D = _slicedToArray$8(O, 2), V = D[0], j = D[1], B = S(A), F = _slicedToArray$8(B, 1), L = F[0];
|
|
14886
|
+
if (!V && !L && (T = A + 1), V && L && (R = A - 1), !V && L) {
|
|
14887
|
+
M = j;
|
|
14888
14888
|
break;
|
|
14889
14889
|
}
|
|
14890
14890
|
I++;
|
|
@@ -14929,7 +14929,7 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
14929
14929
|
}, [R.breakAll, R.children, R.maxLines, g, R.style, R.width]), M = R.dx, A = R.dy, N = R.angle, O = R.className, D = R.breakAll, V = _objectWithoutProperties$c(R, _excluded2$5);
|
|
14930
14930
|
if (!isNumOrStr(i) || !isNumOrStr(l))
|
|
14931
14931
|
return null;
|
|
14932
|
-
var
|
|
14932
|
+
var j = i + (isNumber(M) ? M : 0), B = l + (isNumber(A) ? A : 0), F;
|
|
14933
14933
|
switch (C) {
|
|
14934
14934
|
case "start":
|
|
14935
14935
|
F = reduceCSSCalc("calc(".concat(p, ")"));
|
|
@@ -14941,13 +14941,13 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
14941
14941
|
F = reduceCSSCalc("calc(".concat(I.length - 1, " * -").concat(d, ")"));
|
|
14942
14942
|
break;
|
|
14943
14943
|
}
|
|
14944
|
-
var
|
|
14944
|
+
var L = [];
|
|
14945
14945
|
if (g) {
|
|
14946
14946
|
var q = I[0].width, G = R.width;
|
|
14947
|
-
|
|
14947
|
+
L.push("scale(".concat((isNumber(G) ? G / q : 1) / q, ")"));
|
|
14948
14948
|
}
|
|
14949
|
-
return N &&
|
|
14950
|
-
x:
|
|
14949
|
+
return N && L.push("rotate(".concat(N, ", ").concat(j, ", ").concat(B, ")")), L.length && (V.transform = L.join(" ")), /* @__PURE__ */ React__default.createElement("text", _extends$l({}, filterProps(V, !0), {
|
|
14950
|
+
x: j,
|
|
14951
14951
|
y: B,
|
|
14952
14952
|
className: clsx("recharts-text", O),
|
|
14953
14953
|
textAnchor: _,
|
|
@@ -14958,7 +14958,7 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
14958
14958
|
// duplicate words will cause duplicate keys
|
|
14959
14959
|
// eslint-disable-next-line react/no-array-index-key
|
|
14960
14960
|
/* @__PURE__ */ React__default.createElement("tspan", {
|
|
14961
|
-
x:
|
|
14961
|
+
x: j,
|
|
14962
14962
|
dy: Q === 0 ? F : d,
|
|
14963
14963
|
key: "".concat(H, "-").concat(Q)
|
|
14964
14964
|
}, H)
|
|
@@ -15822,42 +15822,42 @@ function formatLocale$1(t) {
|
|
|
15822
15822
|
A === "n" ? (R = !0, A = "g") : formatTypes[A] || (I === void 0 && (I = 12), M = !0, A = "g"), (S || b === "0" && _ === "=") && (S = !0, b = "0", _ = "=");
|
|
15823
15823
|
var N = C === "$" ? n : C === "#" && /[boxX]/.test(A) ? "0" + A.toLowerCase() : "", O = C === "$" ? i : /[%p]/.test(A) ? u : "", D = formatTypes[A], V = /[defgprs%]/.test(A);
|
|
15824
15824
|
I = I === void 0 ? 6 : /[gprs]/.test(A) ? Math.max(1, Math.min(21, I)) : Math.max(0, Math.min(20, I));
|
|
15825
|
-
function
|
|
15826
|
-
var F = N,
|
|
15825
|
+
function j(B) {
|
|
15826
|
+
var F = N, L = O, q, G, U;
|
|
15827
15827
|
if (A === "c")
|
|
15828
|
-
|
|
15828
|
+
L = D(B) + L, B = "";
|
|
15829
15829
|
else {
|
|
15830
15830
|
B = +B;
|
|
15831
15831
|
var Q = B < 0 || 1 / B < 0;
|
|
15832
|
-
if (B = isNaN(B) ? f : D(Math.abs(B), I), M && (B = formatTrim(B)), Q && +B == 0 && E !== "+" && (Q = !1), F = (Q ? E === "(" ? E : d : E === "-" || E === "(" ? "" : E) + F,
|
|
15832
|
+
if (B = isNaN(B) ? f : D(Math.abs(B), I), M && (B = formatTrim(B)), Q && +B == 0 && E !== "+" && (Q = !1), F = (Q ? E === "(" ? E : d : E === "-" || E === "(" ? "" : E) + F, L = (A === "s" ? prefixes[8 + prefixExponent / 3] : "") + L + (Q && E === "(" ? ")" : ""), V) {
|
|
15833
15833
|
for (q = -1, G = B.length; ++q < G; )
|
|
15834
15834
|
if (U = B.charCodeAt(q), 48 > U || U > 57) {
|
|
15835
|
-
|
|
15835
|
+
L = (U === 46 ? o + B.slice(q + 1) : B.slice(q)) + L, B = B.slice(0, q);
|
|
15836
15836
|
break;
|
|
15837
15837
|
}
|
|
15838
15838
|
}
|
|
15839
15839
|
}
|
|
15840
15840
|
R && !S && (B = e(B, 1 / 0));
|
|
15841
|
-
var H = F.length + B.length +
|
|
15842
|
-
switch (R && S && (B = e(z + B, z.length ? T -
|
|
15841
|
+
var H = F.length + B.length + L.length, z = H < T ? new Array(T - H + 1).join(b) : "";
|
|
15842
|
+
switch (R && S && (B = e(z + B, z.length ? T - L.length : 1 / 0), z = ""), _) {
|
|
15843
15843
|
case "<":
|
|
15844
|
-
B = F + B +
|
|
15844
|
+
B = F + B + L + z;
|
|
15845
15845
|
break;
|
|
15846
15846
|
case "=":
|
|
15847
|
-
B = F + z + B +
|
|
15847
|
+
B = F + z + B + L;
|
|
15848
15848
|
break;
|
|
15849
15849
|
case "^":
|
|
15850
|
-
B = z.slice(0, H = z.length >> 1) + F + B +
|
|
15850
|
+
B = z.slice(0, H = z.length >> 1) + F + B + L + z.slice(H);
|
|
15851
15851
|
break;
|
|
15852
15852
|
default:
|
|
15853
|
-
B = z + F + B +
|
|
15853
|
+
B = z + F + B + L;
|
|
15854
15854
|
break;
|
|
15855
15855
|
}
|
|
15856
15856
|
return l(B);
|
|
15857
15857
|
}
|
|
15858
|
-
return
|
|
15858
|
+
return j.toString = function() {
|
|
15859
15859
|
return g + "";
|
|
15860
|
-
},
|
|
15860
|
+
}, j;
|
|
15861
15861
|
}
|
|
15862
15862
|
function m(g, b) {
|
|
15863
15863
|
var _ = p((g = formatSpecifier(g), g.type = "f", g)), E = Math.max(-8, Math.min(8, Math.floor(exponent(b) / 3))) * 3, C = Math.pow(10, -E), S = prefixes[8 + E / 3];
|
|
@@ -16464,10 +16464,10 @@ function formatLocale(t) {
|
|
|
16464
16464
|
Z: formatUTCZone,
|
|
16465
16465
|
"%": formatLiteralPercent
|
|
16466
16466
|
}, A = {
|
|
16467
|
-
a:
|
|
16467
|
+
a: j,
|
|
16468
16468
|
A: B,
|
|
16469
16469
|
b: F,
|
|
16470
|
-
B:
|
|
16470
|
+
B: L,
|
|
16471
16471
|
c: q,
|
|
16472
16472
|
d: parseDayOfMonth,
|
|
16473
16473
|
e: parseDayOfMonth,
|
|
@@ -16533,7 +16533,7 @@ function formatLocale(t) {
|
|
|
16533
16533
|
var K = p.exec(te.slice(Z));
|
|
16534
16534
|
return K ? (se.p = m.get(K[0].toLowerCase()), Z + K[0].length) : -1;
|
|
16535
16535
|
}
|
|
16536
|
-
function
|
|
16536
|
+
function j(se, te, Z) {
|
|
16537
16537
|
var K = _.exec(te.slice(Z));
|
|
16538
16538
|
return K ? (se.w = E.get(K[0].toLowerCase()), Z + K[0].length) : -1;
|
|
16539
16539
|
}
|
|
@@ -16545,7 +16545,7 @@ function formatLocale(t) {
|
|
|
16545
16545
|
var K = T.exec(te.slice(Z));
|
|
16546
16546
|
return K ? (se.m = R.get(K[0].toLowerCase()), Z + K[0].length) : -1;
|
|
16547
16547
|
}
|
|
16548
|
-
function
|
|
16548
|
+
function L(se, te, Z) {
|
|
16549
16549
|
var K = C.exec(te.slice(Z));
|
|
16550
16550
|
return K ? (se.m = S.get(K[0].toLowerCase()), Z + K[0].length) : -1;
|
|
16551
16551
|
}
|
|
@@ -17410,10 +17410,10 @@ var divide = /* @__PURE__ */ function() {
|
|
|
17410
17410
|
for (; !i[0] && i.length > 1; ) i.shift();
|
|
17411
17411
|
}
|
|
17412
17412
|
return function(i, o, l, u) {
|
|
17413
|
-
var d, f, p, m, g, b, _, E, C, S, T, R, I, M, A, N, O, D, V = i.constructor,
|
|
17413
|
+
var d, f, p, m, g, b, _, E, C, S, T, R, I, M, A, N, O, D, V = i.constructor, j = i.s == o.s ? 1 : -1, B = i.d, F = o.d;
|
|
17414
17414
|
if (!i.s) return new V(i);
|
|
17415
17415
|
if (!o.s) throw Error(decimalError + "Division by zero");
|
|
17416
|
-
for (f = i.e - o.e, O = F.length, A = B.length, _ = new V(
|
|
17416
|
+
for (f = i.e - o.e, O = F.length, A = B.length, _ = new V(j), E = _.d = [], p = 0; F[p] == (B[p] || 0); ) ++p;
|
|
17417
17417
|
if (F[p] > (B[p] || 0) && --f, l == null ? R = l = V.precision : u ? R = l + (getBase10Exponent(i) - getBase10Exponent(o)) + 1 : R = l, R < 0) return new V(0);
|
|
17418
17418
|
if (R = R / LOG_BASE + 2 | 0, p = 0, O == 1)
|
|
17419
17419
|
for (m = 0, F = F[0], R++; (p < A || m) && R--; p++)
|
|
@@ -18018,21 +18018,21 @@ var ErrorBar = /* @__PURE__ */ function(t) {
|
|
|
18018
18018
|
} else
|
|
18019
18019
|
N = O = M;
|
|
18020
18020
|
if (l === "vertical") {
|
|
18021
|
-
var V = m.scale,
|
|
18021
|
+
var V = m.scale, j = R + o, B = j + u, F = j - u, L = V(I - N), q = V(I + O);
|
|
18022
18022
|
A.push({
|
|
18023
18023
|
x1: q,
|
|
18024
18024
|
y1: B,
|
|
18025
18025
|
x2: q,
|
|
18026
18026
|
y2: F
|
|
18027
18027
|
}), A.push({
|
|
18028
|
-
x1:
|
|
18029
|
-
y1:
|
|
18028
|
+
x1: L,
|
|
18029
|
+
y1: j,
|
|
18030
18030
|
x2: q,
|
|
18031
|
-
y2:
|
|
18031
|
+
y2: j
|
|
18032
18032
|
}), A.push({
|
|
18033
|
-
x1:
|
|
18033
|
+
x1: L,
|
|
18034
18034
|
y1: B,
|
|
18035
|
-
x2:
|
|
18035
|
+
x2: L,
|
|
18036
18036
|
y2: F
|
|
18037
18037
|
});
|
|
18038
18038
|
} else if (l === "horizontal") {
|
|
@@ -19527,7 +19527,7 @@ var getDeltaAngle = function(e, n) {
|
|
|
19527
19527
|
isExternal: !0,
|
|
19528
19528
|
cornerRadius: u,
|
|
19529
19529
|
cornerIsExternal: f
|
|
19530
|
-
}), O = N.circleTangency, D = N.lineTangency, V = N.theta,
|
|
19530
|
+
}), O = N.circleTangency, D = N.lineTangency, V = N.theta, j = getTangentCircle({
|
|
19531
19531
|
cx: n,
|
|
19532
19532
|
cy: i,
|
|
19533
19533
|
radius: o,
|
|
@@ -19536,7 +19536,7 @@ var getDeltaAngle = function(e, n) {
|
|
|
19536
19536
|
isExternal: !0,
|
|
19537
19537
|
cornerRadius: u,
|
|
19538
19538
|
cornerIsExternal: f
|
|
19539
|
-
}), B =
|
|
19539
|
+
}), B = j.circleTangency, F = j.lineTangency, L = j.theta, q = f ? Math.abs(p - m) : Math.abs(p - m) - V - L;
|
|
19540
19540
|
if (q < 0 && u === 0)
|
|
19541
19541
|
return "".concat(A, "L").concat(n, ",").concat(i, "Z");
|
|
19542
19542
|
A += "L".concat(F.x, ",").concat(F.y, `
|
|
@@ -19818,7 +19818,7 @@ function requireReactIs_development() {
|
|
|
19818
19818
|
}
|
|
19819
19819
|
}
|
|
19820
19820
|
}
|
|
19821
|
-
var A = f, N = p, O = d, D = u, V = e,
|
|
19821
|
+
var A = f, N = p, O = d, D = u, V = e, j = m, B = i, F = E, L = _, q = n, G = l, U = o, Q = g, H = !1;
|
|
19822
19822
|
function z(K) {
|
|
19823
19823
|
return H || (H = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), W(K) || M(K) === f;
|
|
19824
19824
|
}
|
|
@@ -19858,7 +19858,7 @@ function requireReactIs_development() {
|
|
|
19858
19858
|
function Z(K) {
|
|
19859
19859
|
return M(K) === g;
|
|
19860
19860
|
}
|
|
19861
|
-
reactIs_development.AsyncMode = A, reactIs_development.ConcurrentMode = N, reactIs_development.ContextConsumer = O, reactIs_development.ContextProvider = D, reactIs_development.Element = V, reactIs_development.ForwardRef =
|
|
19861
|
+
reactIs_development.AsyncMode = A, reactIs_development.ConcurrentMode = N, reactIs_development.ContextConsumer = O, reactIs_development.ContextProvider = D, reactIs_development.Element = V, reactIs_development.ForwardRef = j, reactIs_development.Fragment = B, reactIs_development.Lazy = F, reactIs_development.Memo = L, reactIs_development.Portal = q, reactIs_development.Profiler = G, reactIs_development.StrictMode = U, reactIs_development.Suspense = Q, reactIs_development.isAsyncMode = z, reactIs_development.isConcurrentMode = W, reactIs_development.isContextConsumer = J, reactIs_development.isContextProvider = ne, reactIs_development.isElement = oe, reactIs_development.isForwardRef = le, reactIs_development.isFragment = ie, reactIs_development.isLazy = ue, reactIs_development.isMemo = ae, reactIs_development.isPortal = ce, reactIs_development.isProfiler = se, reactIs_development.isStrictMode = te, reactIs_development.isSuspense = Z, reactIs_development.isValidElementType = I, reactIs_development.typeOf = M;
|
|
19862
19862
|
}()), reactIs_development;
|
|
19863
19863
|
}
|
|
19864
19864
|
var hasRequiredReactIs;
|
|
@@ -20014,12 +20014,12 @@ function requireFactoryWithTypeCheckers() {
|
|
|
20014
20014
|
element: M(),
|
|
20015
20015
|
elementType: A(),
|
|
20016
20016
|
instanceOf: N,
|
|
20017
|
-
node:
|
|
20017
|
+
node: j(),
|
|
20018
20018
|
objectOf: D,
|
|
20019
20019
|
oneOf: O,
|
|
20020
20020
|
oneOfType: V,
|
|
20021
20021
|
shape: F,
|
|
20022
|
-
exact:
|
|
20022
|
+
exact: L
|
|
20023
20023
|
};
|
|
20024
20024
|
function E(W, J) {
|
|
20025
20025
|
return W === J ? W !== 0 || 1 / W === 1 / J : W !== W && J !== J;
|
|
@@ -20174,7 +20174,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
20174
20174
|
}
|
|
20175
20175
|
return S(oe);
|
|
20176
20176
|
}
|
|
20177
|
-
function
|
|
20177
|
+
function j() {
|
|
20178
20178
|
function W(J, ne, oe, le, ie) {
|
|
20179
20179
|
return q(J[ne]) ? null : new C("Invalid " + le + " `" + ie + "` supplied to " + ("`" + oe + "`, expected a ReactNode."));
|
|
20180
20180
|
}
|
|
@@ -20202,7 +20202,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
20202
20202
|
}
|
|
20203
20203
|
return S(J);
|
|
20204
20204
|
}
|
|
20205
|
-
function
|
|
20205
|
+
function L(W) {
|
|
20206
20206
|
function J(ne, oe, le, ie, ue) {
|
|
20207
20207
|
var ae = ne[oe], ce = U(ae);
|
|
20208
20208
|
if (ce !== "object")
|
|
@@ -21345,8 +21345,8 @@ var Animate = /* @__PURE__ */ function(t) {
|
|
|
21345
21345
|
duration: R,
|
|
21346
21346
|
easing: M
|
|
21347
21347
|
}), R]);
|
|
21348
|
-
var
|
|
21349
|
-
transition:
|
|
21348
|
+
var j = getTransitionVal(V, R, M), B = _objectSpread$i(_objectSpread$i(_objectSpread$i({}, D.style), A), {}, {
|
|
21349
|
+
transition: j
|
|
21350
21350
|
});
|
|
21351
21351
|
return [].concat(_toConsumableArray$2(C), [B, R, O]).filter(identity);
|
|
21352
21352
|
};
|
|
@@ -23099,9 +23099,9 @@ var Bar = /* @__PURE__ */ function(t) {
|
|
|
23099
23099
|
height: D
|
|
23100
23100
|
});
|
|
23101
23101
|
}
|
|
23102
|
-
var V = interpolateNumber$2(0, S.width),
|
|
23102
|
+
var V = interpolateNumber$2(0, S.width), j = V(E);
|
|
23103
23103
|
return _objectSpread$a(_objectSpread$a({}, S), {}, {
|
|
23104
|
-
width:
|
|
23104
|
+
width: j
|
|
23105
23105
|
});
|
|
23106
23106
|
});
|
|
23107
23107
|
return /* @__PURE__ */ React__default.createElement(Layer, null, i.renderRectanglesStatically(C));
|
|
@@ -23225,10 +23225,10 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
23225
23225
|
return null;
|
|
23226
23226
|
var E = e.layout, C = n.type.defaultProps, S = C !== void 0 ? _objectSpread$a(_objectSpread$a({}, C), n.props) : n.props, T = S.dataKey, R = S.children, I = S.minPointSize, M = E === "horizontal" ? u : l, A = p ? M.scale.domain() : null, N = getBaseValueOfBar({
|
|
23227
23227
|
numericAxis: M
|
|
23228
|
-
}), O = findAllByType(R, Cell), D = g.map(function(V,
|
|
23229
|
-
var B, F,
|
|
23230
|
-
p ? B = truncateByDomain(p[m +
|
|
23231
|
-
var Q = minPointSizeCallback(I, _Bar.defaultProps.minPointSize)(B[1],
|
|
23228
|
+
}), O = findAllByType(R, Cell), D = g.map(function(V, j) {
|
|
23229
|
+
var B, F, L, q, G, U;
|
|
23230
|
+
p ? B = truncateByDomain(p[m + j], A) : (B = getValueByDataKey(V, T), Array.isArray(B) || (B = [N, B]));
|
|
23231
|
+
var Q = minPointSizeCallback(I, _Bar.defaultProps.minPointSize)(B[1], j);
|
|
23232
23232
|
if (E === "horizontal") {
|
|
23233
23233
|
var H, z = [u.scale(B[0]), u.scale(B[1])], W = z[0], J = z[1];
|
|
23234
23234
|
F = getCateCoordinateOfBar({
|
|
@@ -23237,8 +23237,8 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
23237
23237
|
bandSize: o,
|
|
23238
23238
|
offset: _.offset,
|
|
23239
23239
|
entry: V,
|
|
23240
|
-
index:
|
|
23241
|
-
}),
|
|
23240
|
+
index: j
|
|
23241
|
+
}), L = (H = J ?? W) !== null && H !== void 0 ? H : void 0, q = _.size;
|
|
23242
23242
|
var ne = W - J;
|
|
23243
23243
|
if (G = Number.isNaN(ne) ? 0 : ne, U = {
|
|
23244
23244
|
x: F,
|
|
@@ -23247,20 +23247,20 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
23247
23247
|
height: u.height
|
|
23248
23248
|
}, Math.abs(Q) > 0 && Math.abs(G) < Math.abs(Q)) {
|
|
23249
23249
|
var oe = mathSign(G || Q) * (Math.abs(Q) - Math.abs(G));
|
|
23250
|
-
|
|
23250
|
+
L -= oe, G += oe;
|
|
23251
23251
|
}
|
|
23252
23252
|
} else {
|
|
23253
23253
|
var le = [l.scale(B[0]), l.scale(B[1])], ie = le[0], ue = le[1];
|
|
23254
|
-
if (F = ie,
|
|
23254
|
+
if (F = ie, L = getCateCoordinateOfBar({
|
|
23255
23255
|
axis: u,
|
|
23256
23256
|
ticks: f,
|
|
23257
23257
|
bandSize: o,
|
|
23258
23258
|
offset: _.offset,
|
|
23259
23259
|
entry: V,
|
|
23260
|
-
index:
|
|
23260
|
+
index: j
|
|
23261
23261
|
}), q = ue - ie, G = _.size, U = {
|
|
23262
23262
|
x: l.x,
|
|
23263
|
-
y:
|
|
23263
|
+
y: L,
|
|
23264
23264
|
width: l.width,
|
|
23265
23265
|
height: G
|
|
23266
23266
|
}, Math.abs(Q) > 0 && Math.abs(q) < Math.abs(Q)) {
|
|
@@ -23270,17 +23270,17 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
23270
23270
|
}
|
|
23271
23271
|
return _objectSpread$a(_objectSpread$a(_objectSpread$a({}, V), {}, {
|
|
23272
23272
|
x: F,
|
|
23273
|
-
y:
|
|
23273
|
+
y: L,
|
|
23274
23274
|
width: q,
|
|
23275
23275
|
height: G,
|
|
23276
23276
|
value: p ? B : B[1],
|
|
23277
23277
|
payload: V,
|
|
23278
23278
|
background: U
|
|
23279
|
-
}, O && O[
|
|
23279
|
+
}, O && O[j] && O[j].props), {}, {
|
|
23280
23280
|
tooltipPayload: [getTooltipItem(n, V)],
|
|
23281
23281
|
tooltipPosition: {
|
|
23282
23282
|
x: F + q / 2,
|
|
23283
|
-
y:
|
|
23283
|
+
y: L + G / 2
|
|
23284
23284
|
}
|
|
23285
23285
|
});
|
|
23286
23286
|
});
|
|
@@ -23360,13 +23360,13 @@ var formatAxisMap = function(e, n, i, o, l) {
|
|
|
23360
23360
|
bottomMirror: d - i.bottom
|
|
23361
23361
|
}, b = !!findChildByType(p, Bar);
|
|
23362
23362
|
return m.reduce(function(_, E) {
|
|
23363
|
-
var C = n[E], S = C.orientation, T = C.domain, R = C.padding, I = R === void 0 ? {} : R, M = C.mirror, A = C.reversed, N = "".concat(S).concat(M ? "Mirror" : ""), O, D, V,
|
|
23363
|
+
var C = n[E], S = C.orientation, T = C.domain, R = C.padding, I = R === void 0 ? {} : R, M = C.mirror, A = C.reversed, N = "".concat(S).concat(M ? "Mirror" : ""), O, D, V, j, B;
|
|
23364
23364
|
if (C.type === "number" && (C.padding === "gap" || C.padding === "no-gap")) {
|
|
23365
|
-
var F = T[1] - T[0],
|
|
23365
|
+
var F = T[1] - T[0], L = 1 / 0, q = C.categoricalDomain.sort(compareValues);
|
|
23366
23366
|
if (q.forEach(function(le, ie) {
|
|
23367
|
-
ie > 0 && (
|
|
23368
|
-
}), Number.isFinite(
|
|
23369
|
-
var G =
|
|
23367
|
+
ie > 0 && (L = Math.min((le || 0) - (q[ie - 1] || 0), L));
|
|
23368
|
+
}), Number.isFinite(L)) {
|
|
23369
|
+
var G = L / F, U = C.layout === "vertical" ? i.height : i.width;
|
|
23370
23370
|
if (C.padding === "gap" && (O = G * U / 2), C.padding === "no-gap") {
|
|
23371
23371
|
var Q = getPercentValue(e.barCategoryGap, G * U), H = G * U / 2;
|
|
23372
23372
|
O = H - Q - (H - Q) / U * Q;
|
|
@@ -23379,11 +23379,11 @@ var formatAxisMap = function(e, n, i, o, l) {
|
|
|
23379
23379
|
var ne = getTicksOfScale(W, _objectSpread$9(_objectSpread$9({}, C), {}, {
|
|
23380
23380
|
realScaleType: J
|
|
23381
23381
|
}));
|
|
23382
|
-
o === "xAxis" ? (B = S === "top" && !M || S === "bottom" && M, V = i.left,
|
|
23382
|
+
o === "xAxis" ? (B = S === "top" && !M || S === "bottom" && M, V = i.left, j = g[N] - B * C.height) : o === "yAxis" && (B = S === "left" && !M || S === "right" && M, V = g[N] - B * C.width, j = i.top);
|
|
23383
23383
|
var oe = _objectSpread$9(_objectSpread$9(_objectSpread$9({}, C), ne), {}, {
|
|
23384
23384
|
realScaleType: J,
|
|
23385
23385
|
x: V,
|
|
23386
|
-
y:
|
|
23386
|
+
y: j,
|
|
23387
23387
|
scale: W,
|
|
23388
23388
|
width: o === "xAxis" ? i.width : C.width,
|
|
23389
23389
|
height: o === "yAxis" ? i.height : C.height
|
|
@@ -23840,7 +23840,7 @@ function ReferenceLineImpl(t) {
|
|
|
23840
23840
|
}), E = isNumOrStr(e), C = isNumOrStr(n), S = i && i.length === 2, T = getEndPoints(_, E, C, S, b, t.position, m.orientation, g.orientation, t);
|
|
23841
23841
|
if (!T)
|
|
23842
23842
|
return null;
|
|
23843
|
-
var R = _slicedToArray$1(T, 2), I = R[0], M = I.x, A = I.y, N = R[1], O = N.x, D = N.y, V = ifOverflowMatches(t, "hidden") ? "url(#".concat(p, ")") : void 0,
|
|
23843
|
+
var R = _slicedToArray$1(T, 2), I = R[0], M = I.x, A = I.y, N = R[1], O = N.x, D = N.y, V = ifOverflowMatches(t, "hidden") ? "url(#".concat(p, ")") : void 0, j = _objectSpread$8(_objectSpread$8({
|
|
23844
23844
|
clipPath: V
|
|
23845
23845
|
}, filterProps(t, !0)), {}, {
|
|
23846
23846
|
x1: M,
|
|
@@ -23850,7 +23850,7 @@ function ReferenceLineImpl(t) {
|
|
|
23850
23850
|
});
|
|
23851
23851
|
return /* @__PURE__ */ React__default.createElement(Layer, {
|
|
23852
23852
|
className: clsx("recharts-reference-line", d)
|
|
23853
|
-
}, renderLine(u,
|
|
23853
|
+
}, renderLine(u, j), Label$1.renderCallByParent(t, rectWithCoords({
|
|
23854
23854
|
x1: M,
|
|
23855
23855
|
y1: A,
|
|
23856
23856
|
x2: O,
|
|
@@ -25022,14 +25022,14 @@ function CartesianGrid(t) {
|
|
|
25022
25022
|
warn$1(Array.isArray(V), "horizontalCoordinatesGenerator should return Array but instead it returned [".concat(_typeof$6(V), "]")), Array.isArray(V) && (N = V);
|
|
25023
25023
|
}
|
|
25024
25024
|
if ((!O || !O.length) && isFunction$1(M)) {
|
|
25025
|
-
var
|
|
25025
|
+
var j = T && T.length, B = M({
|
|
25026
25026
|
xAxis: R ? _objectSpread$3(_objectSpread$3({}, R), {}, {
|
|
25027
|
-
ticks:
|
|
25027
|
+
ticks: j ? T : R.ticks
|
|
25028
25028
|
}) : void 0,
|
|
25029
25029
|
width: d,
|
|
25030
25030
|
height: f,
|
|
25031
25031
|
offset: p
|
|
25032
|
-
},
|
|
25032
|
+
}, j ? !0 : C);
|
|
25033
25033
|
warn$1(Array.isArray(B), "verticalCoordinatesGenerator should return Array but instead it returned [".concat(_typeof$6(B), "]")), Array.isArray(B) && (O = B);
|
|
25034
25034
|
}
|
|
25035
25035
|
return /* @__PURE__ */ React__default.createElement("g", {
|
|
@@ -25326,12 +25326,12 @@ var Area = /* @__PURE__ */ function(t) {
|
|
|
25326
25326
|
var R = T.t;
|
|
25327
25327
|
if (C) {
|
|
25328
25328
|
var I = C.length / d.length, M = d.map(function(D, V) {
|
|
25329
|
-
var
|
|
25330
|
-
if (C[
|
|
25331
|
-
var B = C[
|
|
25329
|
+
var j = Math.floor(V * I);
|
|
25330
|
+
if (C[j]) {
|
|
25331
|
+
var B = C[j], F = interpolateNumber$2(B.x, D.x), L = interpolateNumber$2(B.y, D.y);
|
|
25332
25332
|
return _objectSpread$2(_objectSpread$2({}, D), {}, {
|
|
25333
25333
|
x: F(R),
|
|
25334
|
-
y:
|
|
25334
|
+
y: L(R)
|
|
25335
25335
|
});
|
|
25336
25336
|
}
|
|
25337
25337
|
return D;
|
|
@@ -25344,12 +25344,12 @@ var Area = /* @__PURE__ */ function(t) {
|
|
|
25344
25344
|
A = O(R);
|
|
25345
25345
|
} else
|
|
25346
25346
|
A = f.map(function(D, V) {
|
|
25347
|
-
var
|
|
25348
|
-
if (S[
|
|
25349
|
-
var B = S[
|
|
25347
|
+
var j = Math.floor(V * I);
|
|
25348
|
+
if (S[j]) {
|
|
25349
|
+
var B = S[j], F = interpolateNumber$2(B.x, D.x), L = interpolateNumber$2(B.y, D.y);
|
|
25350
25350
|
return _objectSpread$2(_objectSpread$2({}, D), {}, {
|
|
25351
25351
|
x: F(R),
|
|
25352
|
-
y:
|
|
25352
|
+
y: L(R)
|
|
25353
25353
|
});
|
|
25354
25354
|
}
|
|
25355
25355
|
return D;
|
|
@@ -25378,7 +25378,7 @@ var Area = /* @__PURE__ */ function(t) {
|
|
|
25378
25378
|
var T = this.state.isAnimationFinished, R = d.length === 1, I = clsx("recharts-area", f), M = g && g.allowDataOverflow, A = b && b.allowDataOverflow, N = M || A, O = isNil(S) ? this.id : S, D = (i = filterProps(u, !1)) !== null && i !== void 0 ? i : {
|
|
25379
25379
|
r: 3,
|
|
25380
25380
|
strokeWidth: 2
|
|
25381
|
-
}, V = D.r,
|
|
25381
|
+
}, V = D.r, j = V === void 0 ? 3 : V, B = D.strokeWidth, F = B === void 0 ? 2 : B, L = hasClipDot(u) ? u : {}, q = L.clipDot, G = q === void 0 ? !0 : q, U = j * 2 + F;
|
|
25382
25382
|
return /* @__PURE__ */ React__default.createElement(Layer, {
|
|
25383
25383
|
className: I
|
|
25384
25384
|
}, M || A ? /* @__PURE__ */ React__default.createElement("defs", null, /* @__PURE__ */ React__default.createElement("clipPath", {
|
|
@@ -26428,22 +26428,22 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26428
26428
|
var S, T = C.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, C.type.defaultProps), C.props) : C.props, R = T.type, I = T.dataKey, M = T.allowDataOverflow, A = T.allowDuplicatedCategory, N = T.scale, O = T.ticks, D = T.includeHidden, V = T[u];
|
|
26429
26429
|
if (E[V])
|
|
26430
26430
|
return E;
|
|
26431
|
-
var
|
|
26431
|
+
var j = getDisplayedData(e.data, {
|
|
26432
26432
|
graphicalItems: o.filter(function(ne) {
|
|
26433
26433
|
var oe, le = u in ne.props ? ne.props[u] : (oe = ne.type.defaultProps) === null || oe === void 0 ? void 0 : oe[u];
|
|
26434
26434
|
return le === V;
|
|
26435
26435
|
}),
|
|
26436
26436
|
dataStartIndex: f,
|
|
26437
26437
|
dataEndIndex: p
|
|
26438
|
-
}), B =
|
|
26439
|
-
isDomainSpecifiedByUser(T.domain, M, R) && (F = parseSpecifiedDomain(T.domain, null, M), _ && (R === "number" || N !== "auto") && (q = getDomainOfDataByKey(
|
|
26438
|
+
}), B = j.length, F, L, q;
|
|
26439
|
+
isDomainSpecifiedByUser(T.domain, M, R) && (F = parseSpecifiedDomain(T.domain, null, M), _ && (R === "number" || N !== "auto") && (q = getDomainOfDataByKey(j, I, "category")));
|
|
26440
26440
|
var G = getDefaultDomainByAxisType(R);
|
|
26441
26441
|
if (!F || F.length === 0) {
|
|
26442
26442
|
var U, Q = (U = T.domain) !== null && U !== void 0 ? U : G;
|
|
26443
26443
|
if (I) {
|
|
26444
|
-
if (F = getDomainOfDataByKey(
|
|
26444
|
+
if (F = getDomainOfDataByKey(j, I, R), R === "category" && _) {
|
|
26445
26445
|
var H = hasDuplicate(F);
|
|
26446
|
-
A && H ? (
|
|
26446
|
+
A && H ? (L = F, F = range(0, B)) : A || (F = parseDomainOfCategoryAxis(Q, F, C).reduce(function(ne, oe) {
|
|
26447
26447
|
return ne.indexOf(oe) >= 0 ? ne : [].concat(_toConsumableArray(ne), [oe]);
|
|
26448
26448
|
}, []));
|
|
26449
26449
|
} else if (R === "category")
|
|
@@ -26453,14 +26453,14 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26453
26453
|
return ne.indexOf(oe) >= 0 || oe === "" || isNil(oe) ? ne : [].concat(_toConsumableArray(ne), [oe]);
|
|
26454
26454
|
}, []);
|
|
26455
26455
|
else if (R === "number") {
|
|
26456
|
-
var z = parseErrorBarsOfAxis(
|
|
26456
|
+
var z = parseErrorBarsOfAxis(j, o.filter(function(ne) {
|
|
26457
26457
|
var oe, le, ie = u in ne.props ? ne.props[u] : (oe = ne.type.defaultProps) === null || oe === void 0 ? void 0 : oe[u], ue = "hide" in ne.props ? ne.props.hide : (le = ne.type.defaultProps) === null || le === void 0 ? void 0 : le.hide;
|
|
26458
26458
|
return ie === V && (D || !ue);
|
|
26459
26459
|
}), I, l, m);
|
|
26460
26460
|
z && (F = z);
|
|
26461
26461
|
}
|
|
26462
|
-
_ && (R === "number" || N !== "auto") && (q = getDomainOfDataByKey(
|
|
26463
|
-
} else _ ? F = range(0, B) : d && d[V] && d[V].hasStack && R === "number" ? F = b === "expand" ? [0, 1] : getDomainOfStackGroups(d[V].stackGroups, f, p) : F = getDomainOfItemsWithSameAxis(
|
|
26462
|
+
_ && (R === "number" || N !== "auto") && (q = getDomainOfDataByKey(j, I, "category"));
|
|
26463
|
+
} else _ ? F = range(0, B) : d && d[V] && d[V].hasStack && R === "number" ? F = b === "expand" ? [0, 1] : getDomainOfStackGroups(d[V].stackGroups, f, p) : F = getDomainOfItemsWithSameAxis(j, o.filter(function(ne) {
|
|
26464
26464
|
var oe = u in ne.props ? ne.props[u] : ne.type.defaultProps[u], le = "hide" in ne.props ? ne.props.hide : ne.type.defaultProps.hide;
|
|
26465
26465
|
return oe === V && (D || !le);
|
|
26466
26466
|
}), R, m, !0);
|
|
@@ -26477,7 +26477,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26477
26477
|
axisType: l,
|
|
26478
26478
|
domain: F,
|
|
26479
26479
|
categoricalDomain: q,
|
|
26480
|
-
duplicateDomain:
|
|
26480
|
+
duplicateDomain: L,
|
|
26481
26481
|
originalDomain: (S = T.domain) !== null && S !== void 0 ? S : G,
|
|
26482
26482
|
isCategorical: _,
|
|
26483
26483
|
layout: m
|
|
@@ -26495,8 +26495,8 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26495
26495
|
C++;
|
|
26496
26496
|
var A;
|
|
26497
26497
|
return E ? A = range(0, _) : d && d[I] && d[I].hasStack ? (A = getDomainOfStackGroups(d[I].stackGroups, f, p), A = detectReferenceElementsDomain(g, A, I, l)) : (A = parseSpecifiedDomain(M, getDomainOfItemsWithSameAxis(b, i.filter(function(N) {
|
|
26498
|
-
var O, D, V = u in N.props ? N.props[u] : (O = N.type.defaultProps) === null || O === void 0 ? void 0 : O[u],
|
|
26499
|
-
return V === I && !
|
|
26498
|
+
var O, D, V = u in N.props ? N.props[u] : (O = N.type.defaultProps) === null || O === void 0 ? void 0 : O[u], j = "hide" in N.props ? N.props.hide : (D = N.type.defaultProps) === null || D === void 0 ? void 0 : D.hide;
|
|
26499
|
+
return V === I && !j;
|
|
26500
26500
|
}), "number", m), o.defaultProps.allowDataOverflow), A = detectReferenceElementsDomain(g, A, I, l)), _objectSpread(_objectSpread({}, S), {}, _defineProperty({}, I, _objectSpread(_objectSpread({
|
|
26501
26501
|
axisType: l
|
|
26502
26502
|
}, o.defaultProps), {}, {
|
|
@@ -26600,7 +26600,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26600
26600
|
return e[n].height;
|
|
26601
26601
|
}, generateCategoricalChart = function(e) {
|
|
26602
26602
|
var n = e.chartName, i = e.GraphicalChild, o = e.defaultTooltipEventType, l = o === void 0 ? "axis" : o, u = e.validateTooltipEventTypes, d = u === void 0 ? ["axis"] : u, f = e.axisComponents, p = e.legendContent, m = e.formatAxisMap, g = e.defaultProps, b = function(T, R) {
|
|
26603
|
-
var I = R.graphicalItems, M = R.stackGroups, A = R.offset, N = R.updateId, O = R.dataStartIndex, D = R.dataEndIndex, V = T.barSize,
|
|
26603
|
+
var I = R.graphicalItems, M = R.stackGroups, A = R.offset, N = R.updateId, O = R.dataStartIndex, D = R.dataEndIndex, V = T.barSize, j = T.layout, B = T.barGap, F = T.barCategoryGap, L = T.maxBarSize, q = getAxisNameByLayout(j), G = q.numericAxisName, U = q.cateAxisName, Q = hasGraphicalBarItem(I), H = [];
|
|
26604
26604
|
return I.forEach(function(z, W) {
|
|
26605
26605
|
var J = getDisplayedData(T.data, {
|
|
26606
26606
|
graphicalItems: [z],
|
|
@@ -26620,7 +26620,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26620
26620
|
totalSize: getCartesianAxisSize(ce, U)
|
|
26621
26621
|
});
|
|
26622
26622
|
if (K) {
|
|
26623
|
-
var he, me, ye = isNil(le) ?
|
|
26623
|
+
var he, me, ye = isNil(le) ? L : le, pe = (he = (me = getBandSizeOfAxis(se, te, !0)) !== null && me !== void 0 ? me : ye) !== null && he !== void 0 ? he : 0;
|
|
26624
26624
|
ee = getBarPosition({
|
|
26625
26625
|
barGap: B,
|
|
26626
26626
|
barCategoryGap: F,
|
|
@@ -26646,7 +26646,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26646
26646
|
barPosition: ee,
|
|
26647
26647
|
offset: A,
|
|
26648
26648
|
stackedData: Z,
|
|
26649
|
-
layout:
|
|
26649
|
+
layout: j,
|
|
26650
26650
|
dataStartIndex: O,
|
|
26651
26651
|
dataEndIndex: D
|
|
26652
26652
|
}))), {}, _defineProperty(_defineProperty(_defineProperty({
|
|
@@ -26662,11 +26662,11 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26662
26662
|
props: I
|
|
26663
26663
|
}))
|
|
26664
26664
|
return null;
|
|
26665
|
-
var O = I.children, D = I.layout, V = I.stackOffset,
|
|
26665
|
+
var O = I.children, D = I.layout, V = I.stackOffset, j = I.data, B = I.reverseStackOrder, F = getAxisNameByLayout(D), L = F.numericAxisName, q = F.cateAxisName, G = findAllByType(O, i), U = getStackGroupsByAxisId(j, G, "".concat(L, "Id"), "".concat(q, "Id"), V, B), Q = f.reduce(function(ne, oe) {
|
|
26666
26666
|
var le = "".concat(oe.axisType, "Map");
|
|
26667
26667
|
return _objectSpread(_objectSpread({}, ne), {}, _defineProperty({}, le, getAxisMap(I, _objectSpread(_objectSpread({}, oe), {}, {
|
|
26668
26668
|
graphicalItems: G,
|
|
26669
|
-
stackGroups: oe.axisType ===
|
|
26669
|
+
stackGroups: oe.axisType === L && U,
|
|
26670
26670
|
dataStartIndex: M,
|
|
26671
26671
|
dataEndIndex: A
|
|
26672
26672
|
}))));
|
|
@@ -26696,14 +26696,14 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26696
26696
|
var I, M, A;
|
|
26697
26697
|
return _classCallCheck(this, T), A = _callSuper(this, T, [R]), _defineProperty(A, "eventEmitterSymbol", Symbol("rechartsEventEmitter")), _defineProperty(A, "accessibilityManager", new AccessibilityManager()), _defineProperty(A, "handleLegendBBoxUpdate", function(N) {
|
|
26698
26698
|
if (N) {
|
|
26699
|
-
var O = A.state, D = O.dataStartIndex, V = O.dataEndIndex,
|
|
26699
|
+
var O = A.state, D = O.dataStartIndex, V = O.dataEndIndex, j = O.updateId;
|
|
26700
26700
|
A.setState(_objectSpread({
|
|
26701
26701
|
legendBBox: N
|
|
26702
26702
|
}, _({
|
|
26703
26703
|
props: A.props,
|
|
26704
26704
|
dataStartIndex: D,
|
|
26705
26705
|
dataEndIndex: V,
|
|
26706
|
-
updateId:
|
|
26706
|
+
updateId: j
|
|
26707
26707
|
}, _objectSpread(_objectSpread({}, A.state), {}, {
|
|
26708
26708
|
legendBBox: N
|
|
26709
26709
|
}))));
|
|
@@ -26783,8 +26783,8 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26783
26783
|
}), _defineProperty(A, "handleOuterEvent", function(N) {
|
|
26784
26784
|
var O = getReactEventByType(N), D = get$1(A.props, "".concat(O));
|
|
26785
26785
|
if (O && isFunction$1(D)) {
|
|
26786
|
-
var V,
|
|
26787
|
-
/.*touch.*/i.test(O) ?
|
|
26786
|
+
var V, j;
|
|
26787
|
+
/.*touch.*/i.test(O) ? j = A.getMouseInfo(N.changedTouches[0]) : j = A.getMouseInfo(N), D((V = j) !== null && V !== void 0 ? V : {}, N);
|
|
26788
26788
|
}
|
|
26789
26789
|
}), _defineProperty(A, "handleClick", function(N) {
|
|
26790
26790
|
var O = A.getMouseInfo(N);
|
|
@@ -26829,7 +26829,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26829
26829
|
}), _defineProperty(A, "triggerSyncEvent", function(N) {
|
|
26830
26830
|
A.props.syncId !== void 0 && eventCenter.emit(SYNC_EVENT, A.props.syncId, N, A.eventEmitterSymbol);
|
|
26831
26831
|
}), _defineProperty(A, "applySyncEvent", function(N) {
|
|
26832
|
-
var O = A.props, D = O.layout, V = O.syncMethod,
|
|
26832
|
+
var O = A.props, D = O.layout, V = O.syncMethod, j = A.state.updateId, B = N.dataStartIndex, F = N.dataEndIndex;
|
|
26833
26833
|
if (N.dataStartIndex !== void 0 || N.dataEndIndex !== void 0)
|
|
26834
26834
|
A.setState(_objectSpread({
|
|
26835
26835
|
dataStartIndex: B,
|
|
@@ -26838,10 +26838,10 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26838
26838
|
props: A.props,
|
|
26839
26839
|
dataStartIndex: B,
|
|
26840
26840
|
dataEndIndex: F,
|
|
26841
|
-
updateId:
|
|
26841
|
+
updateId: j
|
|
26842
26842
|
}, A.state)));
|
|
26843
26843
|
else if (N.activeTooltipIndex !== void 0) {
|
|
26844
|
-
var
|
|
26844
|
+
var L = N.chartX, q = N.chartY, G = N.activeTooltipIndex, U = A.state, Q = U.offset, H = U.tooltipTicks;
|
|
26845
26845
|
if (!Q)
|
|
26846
26846
|
return;
|
|
26847
26847
|
if (typeof V == "function")
|
|
@@ -26857,7 +26857,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26857
26857
|
var W = _objectSpread(_objectSpread({}, Q), {}, {
|
|
26858
26858
|
x: Q.left,
|
|
26859
26859
|
y: Q.top
|
|
26860
|
-
}), J = Math.min(
|
|
26860
|
+
}), J = Math.min(L, W.x + W.width), ne = Math.min(q, W.y + W.height), oe = H[G] && H[G].value, le = getTooltipContent(A.state, A.props.data, G), ie = H[G] ? {
|
|
26861
26861
|
x: D === "horizontal" ? H[G].coordinate : J,
|
|
26862
26862
|
y: D === "horizontal" ? ne : H[G].coordinate
|
|
26863
26863
|
} : originCoordinate;
|
|
@@ -26870,12 +26870,12 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26870
26870
|
} else
|
|
26871
26871
|
A.setState(N);
|
|
26872
26872
|
}), _defineProperty(A, "renderCursor", function(N) {
|
|
26873
|
-
var O, D = A.state, V = D.isTooltipActive,
|
|
26873
|
+
var O, D = A.state, V = D.isTooltipActive, j = D.activeCoordinate, B = D.activePayload, F = D.offset, L = D.activeTooltipIndex, q = D.tooltipAxisBandSize, G = A.getTooltipEventType(), U = (O = N.props.active) !== null && O !== void 0 ? O : V, Q = A.props.layout, H = N.key || "_recharts-cursor";
|
|
26874
26874
|
return /* @__PURE__ */ React__default.createElement(Cursor, {
|
|
26875
26875
|
key: H,
|
|
26876
|
-
activeCoordinate:
|
|
26876
|
+
activeCoordinate: j,
|
|
26877
26877
|
activePayload: B,
|
|
26878
|
-
activeTooltipIndex:
|
|
26878
|
+
activeTooltipIndex: L,
|
|
26879
26879
|
chartName: n,
|
|
26880
26880
|
element: N,
|
|
26881
26881
|
isActive: U,
|
|
@@ -26885,19 +26885,19 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26885
26885
|
tooltipEventType: G
|
|
26886
26886
|
});
|
|
26887
26887
|
}), _defineProperty(A, "renderPolarAxis", function(N, O, D) {
|
|
26888
|
-
var V = get$1(N, "type.axisType"),
|
|
26889
|
-
return /* @__PURE__ */ cloneElement(N, _objectSpread(_objectSpread({},
|
|
26890
|
-
className: clsx(V,
|
|
26888
|
+
var V = get$1(N, "type.axisType"), j = get$1(A.state, "".concat(V, "Map")), B = N.type.defaultProps, F = B !== void 0 ? _objectSpread(_objectSpread({}, B), N.props) : N.props, L = j && j[F["".concat(V, "Id")]];
|
|
26889
|
+
return /* @__PURE__ */ cloneElement(N, _objectSpread(_objectSpread({}, L), {}, {
|
|
26890
|
+
className: clsx(V, L.className),
|
|
26891
26891
|
key: N.key || "".concat(O, "-").concat(D),
|
|
26892
|
-
ticks: getTicksOfAxis(
|
|
26892
|
+
ticks: getTicksOfAxis(L, !0)
|
|
26893
26893
|
}));
|
|
26894
26894
|
}), _defineProperty(A, "renderPolarGrid", function(N) {
|
|
26895
|
-
var O = N.props, D = O.radialLines, V = O.polarAngles,
|
|
26895
|
+
var O = N.props, D = O.radialLines, V = O.polarAngles, j = O.polarRadius, B = A.state, F = B.radiusAxisMap, L = B.angleAxisMap, q = getAnyElementOfObject(F), G = getAnyElementOfObject(L), U = G.cx, Q = G.cy, H = G.innerRadius, z = G.outerRadius;
|
|
26896
26896
|
return /* @__PURE__ */ cloneElement(N, {
|
|
26897
26897
|
polarAngles: Array.isArray(V) ? V : getTicksOfAxis(G, !0).map(function(W) {
|
|
26898
26898
|
return W.coordinate;
|
|
26899
26899
|
}),
|
|
26900
|
-
polarRadius: Array.isArray(
|
|
26900
|
+
polarRadius: Array.isArray(j) ? j : getTicksOfAxis(q, !0).map(function(W) {
|
|
26901
26901
|
return W.coordinate;
|
|
26902
26902
|
}),
|
|
26903
26903
|
cx: U,
|
|
@@ -26908,27 +26908,27 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26908
26908
|
radialLines: D
|
|
26909
26909
|
});
|
|
26910
26910
|
}), _defineProperty(A, "renderLegend", function() {
|
|
26911
|
-
var N = A.state.formattedGraphicalItems, O = A.props, D = O.children, V = O.width,
|
|
26911
|
+
var N = A.state.formattedGraphicalItems, O = A.props, D = O.children, V = O.width, j = O.height, B = A.props.margin || {}, F = V - (B.left || 0) - (B.right || 0), L = getLegendProps({
|
|
26912
26912
|
children: D,
|
|
26913
26913
|
formattedGraphicalItems: N,
|
|
26914
26914
|
legendWidth: F,
|
|
26915
26915
|
legendContent: p
|
|
26916
26916
|
});
|
|
26917
|
-
if (!
|
|
26917
|
+
if (!L)
|
|
26918
26918
|
return null;
|
|
26919
|
-
var q =
|
|
26919
|
+
var q = L.item, G = _objectWithoutProperties(L, _excluded);
|
|
26920
26920
|
return /* @__PURE__ */ cloneElement(q, _objectSpread(_objectSpread({}, G), {}, {
|
|
26921
26921
|
chartWidth: V,
|
|
26922
|
-
chartHeight:
|
|
26922
|
+
chartHeight: j,
|
|
26923
26923
|
margin: B,
|
|
26924
26924
|
onBBoxUpdate: A.handleLegendBBoxUpdate
|
|
26925
26925
|
}));
|
|
26926
26926
|
}), _defineProperty(A, "renderTooltip", function() {
|
|
26927
|
-
var N, O = A.props, D = O.children, V = O.accessibilityLayer,
|
|
26928
|
-
if (!
|
|
26927
|
+
var N, O = A.props, D = O.children, V = O.accessibilityLayer, j = findChildByType(D, Tooltip);
|
|
26928
|
+
if (!j)
|
|
26929
26929
|
return null;
|
|
26930
|
-
var B = A.state, F = B.isTooltipActive,
|
|
26931
|
-
return /* @__PURE__ */ cloneElement(
|
|
26930
|
+
var B = A.state, F = B.isTooltipActive, L = B.activeCoordinate, q = B.activePayload, G = B.activeLabel, U = B.offset, Q = (N = j.props.active) !== null && N !== void 0 ? N : F;
|
|
26931
|
+
return /* @__PURE__ */ cloneElement(j, {
|
|
26932
26932
|
viewBox: _objectSpread(_objectSpread({}, U), {}, {
|
|
26933
26933
|
x: U.left,
|
|
26934
26934
|
y: U.top
|
|
@@ -26936,11 +26936,11 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26936
26936
|
active: Q,
|
|
26937
26937
|
label: G,
|
|
26938
26938
|
payload: Q ? q : [],
|
|
26939
|
-
coordinate:
|
|
26939
|
+
coordinate: L,
|
|
26940
26940
|
accessibilityLayer: V
|
|
26941
26941
|
});
|
|
26942
26942
|
}), _defineProperty(A, "renderBrush", function(N) {
|
|
26943
|
-
var O = A.props, D = O.margin, V = O.data,
|
|
26943
|
+
var O = A.props, D = O.margin, V = O.data, j = A.state, B = j.offset, F = j.dataStartIndex, L = j.dataEndIndex, q = j.updateId;
|
|
26944
26944
|
return /* @__PURE__ */ cloneElement(N, {
|
|
26945
26945
|
key: N.key || "_recharts-brush",
|
|
26946
26946
|
onChange: combineEventHandlers(A.handleBrushChange, N.props.onChange),
|
|
@@ -26949,28 +26949,28 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26949
26949
|
y: isNumber(N.props.y) ? N.props.y : B.top + B.height + B.brushBottom - (D.bottom || 0),
|
|
26950
26950
|
width: isNumber(N.props.width) ? N.props.width : B.width,
|
|
26951
26951
|
startIndex: F,
|
|
26952
|
-
endIndex:
|
|
26952
|
+
endIndex: L,
|
|
26953
26953
|
updateId: "brush-".concat(q)
|
|
26954
26954
|
});
|
|
26955
26955
|
}), _defineProperty(A, "renderReferenceElement", function(N, O, D) {
|
|
26956
26956
|
if (!N)
|
|
26957
26957
|
return null;
|
|
26958
|
-
var V = A,
|
|
26958
|
+
var V = A, j = V.clipPathId, B = A.state, F = B.xAxisMap, L = B.yAxisMap, q = B.offset, G = N.type.defaultProps || {}, U = N.props, Q = U.xAxisId, H = Q === void 0 ? G.xAxisId : Q, z = U.yAxisId, W = z === void 0 ? G.yAxisId : z;
|
|
26959
26959
|
return /* @__PURE__ */ cloneElement(N, {
|
|
26960
26960
|
key: N.key || "".concat(O, "-").concat(D),
|
|
26961
26961
|
xAxis: F[H],
|
|
26962
|
-
yAxis:
|
|
26962
|
+
yAxis: L[W],
|
|
26963
26963
|
viewBox: {
|
|
26964
26964
|
x: q.left,
|
|
26965
26965
|
y: q.top,
|
|
26966
26966
|
width: q.width,
|
|
26967
26967
|
height: q.height
|
|
26968
26968
|
},
|
|
26969
|
-
clipPathId:
|
|
26969
|
+
clipPathId: j
|
|
26970
26970
|
});
|
|
26971
26971
|
}), _defineProperty(A, "renderActivePoints", function(N) {
|
|
26972
|
-
var O = N.item, D = N.activePoint, V = N.basePoint,
|
|
26973
|
-
index:
|
|
26972
|
+
var O = N.item, D = N.activePoint, V = N.basePoint, j = N.childIndex, B = N.isRange, F = [], L = O.props.key, q = O.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, O.item.type.defaultProps), O.item.props) : O.item.props, G = q.activeDot, U = q.dataKey, Q = _objectSpread(_objectSpread({
|
|
26973
|
+
index: j,
|
|
26974
26974
|
dataKey: U,
|
|
26975
26975
|
cx: D.x,
|
|
26976
26976
|
cy: D.y,
|
|
@@ -26981,30 +26981,30 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26981
26981
|
payload: D.payload,
|
|
26982
26982
|
value: D.value
|
|
26983
26983
|
}, filterProps(G, !1)), adaptEventHandlers(G));
|
|
26984
|
-
return F.push(T.renderActiveDot(G, Q, "".concat(
|
|
26984
|
+
return F.push(T.renderActiveDot(G, Q, "".concat(L, "-activePoint-").concat(j))), V ? F.push(T.renderActiveDot(G, _objectSpread(_objectSpread({}, Q), {}, {
|
|
26985
26985
|
cx: V.x,
|
|
26986
26986
|
cy: V.y
|
|
26987
|
-
}), "".concat(
|
|
26987
|
+
}), "".concat(L, "-basePoint-").concat(j))) : B && F.push(null), F;
|
|
26988
26988
|
}), _defineProperty(A, "renderGraphicChild", function(N, O, D) {
|
|
26989
26989
|
var V = A.filterFormatItem(N, O, D);
|
|
26990
26990
|
if (!V)
|
|
26991
26991
|
return null;
|
|
26992
|
-
var
|
|
26993
|
-
|
|
26992
|
+
var j = A.getTooltipEventType(), B = A.state, F = B.isTooltipActive, L = B.tooltipAxis, q = B.activeTooltipIndex, G = B.activeLabel, U = A.props.children, Q = findChildByType(U, Tooltip), H = V.props, z = H.points, W = H.isRange, J = H.baseLine, ne = V.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, V.item.type.defaultProps), V.item.props) : V.item.props, oe = ne.activeDot, le = ne.hide, ie = ne.activeBar, ue = ne.activeShape, ae = !!(!le && F && Q && (oe || ie || ue)), ce = {};
|
|
26993
|
+
j !== "axis" && Q && Q.props.trigger === "click" ? ce = {
|
|
26994
26994
|
onClick: combineEventHandlers(A.handleItemMouseEnter, N.props.onClick)
|
|
26995
|
-
} :
|
|
26995
|
+
} : j !== "axis" && (ce = {
|
|
26996
26996
|
onMouseLeave: combineEventHandlers(A.handleItemMouseLeave, N.props.onMouseLeave),
|
|
26997
26997
|
onMouseEnter: combineEventHandlers(A.handleItemMouseEnter, N.props.onMouseEnter)
|
|
26998
26998
|
});
|
|
26999
26999
|
var se = /* @__PURE__ */ cloneElement(N, _objectSpread(_objectSpread({}, V.props), ce));
|
|
27000
27000
|
function te(ve) {
|
|
27001
|
-
return typeof
|
|
27001
|
+
return typeof L.dataKey == "function" ? L.dataKey(ve.payload) : null;
|
|
27002
27002
|
}
|
|
27003
27003
|
if (ae)
|
|
27004
27004
|
if (q >= 0) {
|
|
27005
27005
|
var Z, K;
|
|
27006
|
-
if (
|
|
27007
|
-
var de = typeof
|
|
27006
|
+
if (L.dataKey && !L.allowDuplicatedCategory) {
|
|
27007
|
+
var de = typeof L.dataKey == "function" ? te : "payload.".concat(L.dataKey.toString());
|
|
27008
27008
|
Z = findEntryInArray(z, de, G), K = W && J && findEntryInArray(J, de, G);
|
|
27009
27009
|
} else
|
|
27010
27010
|
Z = z == null ? void 0 : z[q], K = W && J && J[q];
|
|
@@ -27124,12 +27124,12 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27124
27124
|
if (D) {
|
|
27125
27125
|
var V = D.props.defaultIndex;
|
|
27126
27126
|
if (!(typeof V != "number" || V < 0 || V > this.state.tooltipTicks.length - 1)) {
|
|
27127
|
-
var
|
|
27127
|
+
var j = this.state.tooltipTicks[V] && this.state.tooltipTicks[V].value, B = getTooltipContent(this.state, A, V, j), F = this.state.tooltipTicks[V].coordinate, L = (this.state.offset.top + N) / 2, q = O === "horizontal", G = q ? {
|
|
27128
27128
|
x: F,
|
|
27129
|
-
y:
|
|
27129
|
+
y: L
|
|
27130
27130
|
} : {
|
|
27131
27131
|
y: F,
|
|
27132
|
-
x:
|
|
27132
|
+
x: L
|
|
27133
27133
|
}, U = this.state.formattedGraphicalItems.find(function(H) {
|
|
27134
27134
|
var z = H.item;
|
|
27135
27135
|
return z.type.name === "Scatter";
|
|
@@ -27138,7 +27138,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27138
27138
|
var Q = {
|
|
27139
27139
|
activeTooltipIndex: V,
|
|
27140
27140
|
isTooltipActive: !0,
|
|
27141
|
-
activeLabel:
|
|
27141
|
+
activeLabel: j,
|
|
27142
27142
|
activePayload: B,
|
|
27143
27143
|
activeCoordinate: G
|
|
27144
27144
|
};
|
|
@@ -27202,8 +27202,8 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27202
27202
|
}, D = A.width / M.offsetWidth || 1, V = this.inRange(O.chartX, O.chartY, D);
|
|
27203
27203
|
if (!V)
|
|
27204
27204
|
return null;
|
|
27205
|
-
var
|
|
27206
|
-
if (
|
|
27205
|
+
var j = this.state, B = j.xAxisMap, F = j.yAxisMap, L = this.getTooltipEventType(), q = getTooltipData(this.state, this.props.data, this.props.layout, V);
|
|
27206
|
+
if (L !== "axis" && B && F) {
|
|
27207
27207
|
var G = getAnyElementOfObject(B).scale, U = getAnyElementOfObject(F).scale, Q = G && G.invert ? G.invert(O.chartX) : null, H = U && U.invert ? U.invert(O.chartY) : null;
|
|
27208
27208
|
return _objectSpread(_objectSpread({}, O), {}, {
|
|
27209
27209
|
xValue: Q,
|
|
@@ -27217,14 +27217,14 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27217
27217
|
value: function(I, M) {
|
|
27218
27218
|
var A = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, N = this.props.layout, O = I / A, D = M / A;
|
|
27219
27219
|
if (N === "horizontal" || N === "vertical") {
|
|
27220
|
-
var V = this.state.offset,
|
|
27221
|
-
return
|
|
27220
|
+
var V = this.state.offset, j = O >= V.left && O <= V.left + V.width && D >= V.top && D <= V.top + V.height;
|
|
27221
|
+
return j ? {
|
|
27222
27222
|
x: O,
|
|
27223
27223
|
y: D
|
|
27224
27224
|
} : null;
|
|
27225
27225
|
}
|
|
27226
|
-
var B = this.state, F = B.angleAxisMap,
|
|
27227
|
-
if (F &&
|
|
27226
|
+
var B = this.state, F = B.angleAxisMap, L = B.radiusAxisMap;
|
|
27227
|
+
if (F && L) {
|
|
27228
27228
|
var q = getAnyElementOfObject(F);
|
|
27229
27229
|
return inRangeOfSector({
|
|
27230
27230
|
x: O,
|
|
@@ -27321,9 +27321,9 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27321
27321
|
var M = this.state, A = M.formattedGraphicalItems, N = M.activeItem;
|
|
27322
27322
|
if (A && A.length)
|
|
27323
27323
|
for (var O = 0, D = A.length; O < D; O++) {
|
|
27324
|
-
var V = A[O],
|
|
27325
|
-
if (
|
|
27326
|
-
var q = (
|
|
27324
|
+
var V = A[O], j = V.props, B = V.item, F = B.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, B.type.defaultProps), B.props) : B.props, L = getDisplayName(B.type);
|
|
27325
|
+
if (L === "Bar") {
|
|
27326
|
+
var q = (j.data || []).find(function(H) {
|
|
27327
27327
|
return isInRectangle(I, H);
|
|
27328
27328
|
});
|
|
27329
27329
|
if (q)
|
|
@@ -27331,8 +27331,8 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27331
27331
|
graphicalItem: V,
|
|
27332
27332
|
payload: q
|
|
27333
27333
|
};
|
|
27334
|
-
} else if (
|
|
27335
|
-
var G = (
|
|
27334
|
+
} else if (L === "RadialBar") {
|
|
27335
|
+
var G = (j.data || []).find(function(H) {
|
|
27336
27336
|
return inRangeOfSector(I, H);
|
|
27337
27337
|
});
|
|
27338
27338
|
if (G)
|
|
@@ -27362,8 +27362,8 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27362
27362
|
var I = this;
|
|
27363
27363
|
if (!validateWidthHeight(this))
|
|
27364
27364
|
return null;
|
|
27365
|
-
var M = this.props, A = M.children, N = M.className, O = M.width, D = M.height, V = M.style,
|
|
27366
|
-
if (
|
|
27365
|
+
var M = this.props, A = M.children, N = M.className, O = M.width, D = M.height, V = M.style, j = M.compact, B = M.title, F = M.desc, L = _objectWithoutProperties(M, _excluded2), q = filterProps(L, !1);
|
|
27366
|
+
if (j)
|
|
27367
27367
|
return /* @__PURE__ */ React__default.createElement(ChartLayoutContextProvider, {
|
|
27368
27368
|
state: this.state,
|
|
27369
27369
|
width: this.props.width,
|
|
@@ -27425,7 +27425,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27425
27425
|
reverseStackOrder: !1,
|
|
27426
27426
|
syncMethod: "index"
|
|
27427
27427
|
}, g)), _defineProperty(E, "getDerivedStateFromProps", function(S, T) {
|
|
27428
|
-
var R = S.dataKey, I = S.data, M = S.children, A = S.width, N = S.height, O = S.layout, D = S.stackOffset, V = S.margin,
|
|
27428
|
+
var R = S.dataKey, I = S.data, M = S.children, A = S.width, N = S.height, O = S.layout, D = S.stackOffset, V = S.margin, j = T.dataStartIndex, B = T.dataEndIndex;
|
|
27429
27429
|
if (T.updateId === void 0) {
|
|
27430
27430
|
var F = createDefaultState(S);
|
|
27431
27431
|
return _objectSpread(_objectSpread(_objectSpread({}, F), {}, {
|
|
@@ -27446,7 +27446,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27446
27446
|
});
|
|
27447
27447
|
}
|
|
27448
27448
|
if (R !== T.prevDataKey || I !== T.prevData || A !== T.prevWidth || N !== T.prevHeight || O !== T.prevLayout || D !== T.prevStackOffset || !shallowEqual$1(V, T.prevMargin)) {
|
|
27449
|
-
var
|
|
27449
|
+
var L = createDefaultState(S), q = {
|
|
27450
27450
|
// (chartX, chartY) are (0,0) in default state, but we want to keep the last mouse position to avoid
|
|
27451
27451
|
// any flickering
|
|
27452
27452
|
chartX: T.chartX,
|
|
@@ -27456,7 +27456,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27456
27456
|
isTooltipActive: T.isTooltipActive
|
|
27457
27457
|
}, G = _objectSpread(_objectSpread({}, getTooltipData(T, I, O)), {}, {
|
|
27458
27458
|
updateId: T.updateId + 1
|
|
27459
|
-
}), U = _objectSpread(_objectSpread(_objectSpread({},
|
|
27459
|
+
}), U = _objectSpread(_objectSpread(_objectSpread({}, L), q), G);
|
|
27460
27460
|
return _objectSpread(_objectSpread(_objectSpread({}, U), _(_objectSpread({
|
|
27461
27461
|
props: S
|
|
27462
27462
|
}, U), T)), {}, {
|
|
@@ -27471,7 +27471,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27471
27471
|
});
|
|
27472
27472
|
}
|
|
27473
27473
|
if (!isChildrenEqual(M, T.prevChildren)) {
|
|
27474
|
-
var Q, H, z, W, J = findChildByType(M, Brush), ne = J && (Q = (H = J.props) === null || H === void 0 ? void 0 : H.startIndex) !== null && Q !== void 0 ? Q :
|
|
27474
|
+
var Q, H, z, W, J = findChildByType(M, Brush), ne = J && (Q = (H = J.props) === null || H === void 0 ? void 0 : H.startIndex) !== null && Q !== void 0 ? Q : j, oe = J && (z = (W = J.props) === null || W === void 0 ? void 0 : W.endIndex) !== null && z !== void 0 ? z : B, le = ne !== j || oe !== B, ie = !isNil(I), ue = ie && !le ? T.updateId : T.updateId + 1;
|
|
27475
27475
|
return _objectSpread(_objectSpread({
|
|
27476
27476
|
updateId: ue
|
|
27477
27477
|
}, _(_objectSpread(_objectSpread({
|
|
@@ -27967,20 +27967,20 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
27967
27967
|
}(function(f) {
|
|
27968
27968
|
if (l.dataManager || (l.dataManager = function() {
|
|
27969
27969
|
function m(O, D) {
|
|
27970
|
-
var V,
|
|
27971
|
-
for (
|
|
27970
|
+
var V, j, B, F, L, q, G = O.length;
|
|
27971
|
+
for (j = 0; j < G; j += 1) if ("ks" in (V = O[j]) && !V.completed) {
|
|
27972
27972
|
if (V.completed = !0, V.hasMask) {
|
|
27973
27973
|
var U = V.masksProperties;
|
|
27974
27974
|
for (F = U.length, B = 0; B < F; B += 1) if (U[B].pt.k.i) _(U[B].pt.k);
|
|
27975
|
-
else for (q = U[B].pt.k.length,
|
|
27975
|
+
else for (q = U[B].pt.k.length, L = 0; L < q; L += 1) U[B].pt.k[L].s && _(U[B].pt.k[L].s[0]), U[B].pt.k[L].e && _(U[B].pt.k[L].e[0]);
|
|
27976
27976
|
}
|
|
27977
27977
|
V.ty === 0 ? (V.layers = g(V.refId, D), m(V.layers, D)) : V.ty === 4 ? b(V.shapes) : V.ty === 5 && A(V);
|
|
27978
27978
|
}
|
|
27979
27979
|
}
|
|
27980
27980
|
function g(O, D) {
|
|
27981
|
-
var V = function(
|
|
27982
|
-
for (var F = 0,
|
|
27983
|
-
if (B[F].id ===
|
|
27981
|
+
var V = function(j, B) {
|
|
27982
|
+
for (var F = 0, L = B.length; F < L; ) {
|
|
27983
|
+
if (B[F].id === j) return B[F];
|
|
27984
27984
|
F += 1;
|
|
27985
27985
|
}
|
|
27986
27986
|
return null;
|
|
@@ -27988,9 +27988,9 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
27988
27988
|
return V ? V.layers.__used ? JSON.parse(JSON.stringify(V.layers)) : (V.layers.__used = !0, V.layers) : null;
|
|
27989
27989
|
}
|
|
27990
27990
|
function b(O) {
|
|
27991
|
-
var D, V,
|
|
27991
|
+
var D, V, j;
|
|
27992
27992
|
for (D = O.length - 1; D >= 0; D -= 1) if (O[D].ty === "sh") if (O[D].ks.k.i) _(O[D].ks.k);
|
|
27993
|
-
else for (
|
|
27993
|
+
else for (j = O[D].ks.k.length, V = 0; V < j; V += 1) O[D].ks.k[V].s && _(O[D].ks.k[V].s[0]), O[D].ks.k[V].e && _(O[D].ks.k[V].e[0]);
|
|
27994
27994
|
else O[D].ty === "gr" && b(O[D].it);
|
|
27995
27995
|
}
|
|
27996
27996
|
function _(O) {
|
|
@@ -28004,76 +28004,76 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
28004
28004
|
var C, S = /* @__PURE__ */ function() {
|
|
28005
28005
|
var O = [4, 4, 14];
|
|
28006
28006
|
function D(V) {
|
|
28007
|
-
var
|
|
28008
|
-
for (
|
|
28007
|
+
var j, B, F, L = V.length;
|
|
28008
|
+
for (j = 0; j < L; j += 1) V[j].ty === 5 && (B = V[j], F = void 0, F = B.t.d, B.t.d = { k: [{ s: F, t: 0 }] });
|
|
28009
28009
|
}
|
|
28010
28010
|
return function(V) {
|
|
28011
28011
|
if (E(O, V.v) && (D(V.layers), V.assets)) {
|
|
28012
|
-
var
|
|
28013
|
-
for (
|
|
28012
|
+
var j, B = V.assets.length;
|
|
28013
|
+
for (j = 0; j < B; j += 1) V.assets[j].layers && D(V.assets[j].layers);
|
|
28014
28014
|
}
|
|
28015
28015
|
};
|
|
28016
28016
|
}(), T = (C = [4, 7, 99], function(O) {
|
|
28017
28017
|
if (O.chars && !E(C, O.v)) {
|
|
28018
28018
|
var D, V = O.chars.length;
|
|
28019
28019
|
for (D = 0; D < V; D += 1) {
|
|
28020
|
-
var
|
|
28021
|
-
|
|
28020
|
+
var j = O.chars[D];
|
|
28021
|
+
j.data && j.data.shapes && (b(j.data.shapes), j.data.ip = 0, j.data.op = 99999, j.data.st = 0, j.data.sr = 1, j.data.ks = { p: { k: [0, 0], a: 0 }, s: { k: [100, 100], a: 0 }, a: { k: [0, 0], a: 0 }, r: { k: 0, a: 0 }, o: { k: 100, a: 0 } }, O.chars[D].t || (j.data.shapes.push({ ty: "no" }), j.data.shapes[0].it.push({ p: { k: [0, 0], a: 0 }, s: { k: [100, 100], a: 0 }, a: { k: [0, 0], a: 0 }, r: { k: 0, a: 0 }, o: { k: 100, a: 0 }, sk: { k: 0, a: 0 }, sa: { k: 0, a: 0 }, ty: "tr" })));
|
|
28022
28022
|
}
|
|
28023
28023
|
}
|
|
28024
28024
|
}), R = /* @__PURE__ */ function() {
|
|
28025
28025
|
var O = [5, 7, 15];
|
|
28026
28026
|
function D(V) {
|
|
28027
|
-
var
|
|
28028
|
-
for (
|
|
28027
|
+
var j, B, F, L = V.length;
|
|
28028
|
+
for (j = 0; j < L; j += 1) V[j].ty === 5 && (B = V[j], F = void 0, typeof (F = B.t.p).a == "number" && (F.a = { a: 0, k: F.a }), typeof F.p == "number" && (F.p = { a: 0, k: F.p }), typeof F.r == "number" && (F.r = { a: 0, k: F.r }));
|
|
28029
28029
|
}
|
|
28030
28030
|
return function(V) {
|
|
28031
28031
|
if (E(O, V.v) && (D(V.layers), V.assets)) {
|
|
28032
|
-
var
|
|
28033
|
-
for (
|
|
28032
|
+
var j, B = V.assets.length;
|
|
28033
|
+
for (j = 0; j < B; j += 1) V.assets[j].layers && D(V.assets[j].layers);
|
|
28034
28034
|
}
|
|
28035
28035
|
};
|
|
28036
28036
|
}(), I = /* @__PURE__ */ function() {
|
|
28037
28037
|
var O = [4, 1, 9];
|
|
28038
|
-
function D(
|
|
28039
|
-
var B, F,
|
|
28040
|
-
for (B = 0; B < q; B += 1) if (
|
|
28041
|
-
else if (
|
|
28042
|
-
else
|
|
28038
|
+
function D(j) {
|
|
28039
|
+
var B, F, L, q = j.length;
|
|
28040
|
+
for (B = 0; B < q; B += 1) if (j[B].ty === "gr") D(j[B].it);
|
|
28041
|
+
else if (j[B].ty === "fl" || j[B].ty === "st") if (j[B].c.k && j[B].c.k[0].i) for (L = j[B].c.k.length, F = 0; F < L; F += 1) j[B].c.k[F].s && (j[B].c.k[F].s[0] /= 255, j[B].c.k[F].s[1] /= 255, j[B].c.k[F].s[2] /= 255, j[B].c.k[F].s[3] /= 255), j[B].c.k[F].e && (j[B].c.k[F].e[0] /= 255, j[B].c.k[F].e[1] /= 255, j[B].c.k[F].e[2] /= 255, j[B].c.k[F].e[3] /= 255);
|
|
28042
|
+
else j[B].c.k[0] /= 255, j[B].c.k[1] /= 255, j[B].c.k[2] /= 255, j[B].c.k[3] /= 255;
|
|
28043
28043
|
}
|
|
28044
|
-
function V(
|
|
28045
|
-
var B, F =
|
|
28046
|
-
for (B = 0; B < F; B += 1)
|
|
28044
|
+
function V(j) {
|
|
28045
|
+
var B, F = j.length;
|
|
28046
|
+
for (B = 0; B < F; B += 1) j[B].ty === 4 && D(j[B].shapes);
|
|
28047
28047
|
}
|
|
28048
|
-
return function(
|
|
28049
|
-
if (E(O,
|
|
28050
|
-
var B, F =
|
|
28051
|
-
for (B = 0; B < F; B += 1)
|
|
28048
|
+
return function(j) {
|
|
28049
|
+
if (E(O, j.v) && (V(j.layers), j.assets)) {
|
|
28050
|
+
var B, F = j.assets.length;
|
|
28051
|
+
for (B = 0; B < F; B += 1) j.assets[B].layers && V(j.assets[B].layers);
|
|
28052
28052
|
}
|
|
28053
28053
|
};
|
|
28054
28054
|
}(), M = /* @__PURE__ */ function() {
|
|
28055
28055
|
var O = [4, 4, 18];
|
|
28056
|
-
function D(
|
|
28057
|
-
var B, F,
|
|
28058
|
-
for (B =
|
|
28059
|
-
else for (
|
|
28060
|
-
else
|
|
28056
|
+
function D(j) {
|
|
28057
|
+
var B, F, L;
|
|
28058
|
+
for (B = j.length - 1; B >= 0; B -= 1) if (j[B].ty === "sh") if (j[B].ks.k.i) j[B].ks.k.c = j[B].closed;
|
|
28059
|
+
else for (L = j[B].ks.k.length, F = 0; F < L; F += 1) j[B].ks.k[F].s && (j[B].ks.k[F].s[0].c = j[B].closed), j[B].ks.k[F].e && (j[B].ks.k[F].e[0].c = j[B].closed);
|
|
28060
|
+
else j[B].ty === "gr" && D(j[B].it);
|
|
28061
28061
|
}
|
|
28062
|
-
function V(
|
|
28063
|
-
var B, F,
|
|
28062
|
+
function V(j) {
|
|
28063
|
+
var B, F, L, q, G, U, Q = j.length;
|
|
28064
28064
|
for (F = 0; F < Q; F += 1) {
|
|
28065
|
-
if ((B =
|
|
28065
|
+
if ((B = j[F]).hasMask) {
|
|
28066
28066
|
var H = B.masksProperties;
|
|
28067
|
-
for (q = H.length,
|
|
28068
|
-
else for (U = H[
|
|
28067
|
+
for (q = H.length, L = 0; L < q; L += 1) if (H[L].pt.k.i) H[L].pt.k.c = H[L].cl;
|
|
28068
|
+
else for (U = H[L].pt.k.length, G = 0; G < U; G += 1) H[L].pt.k[G].s && (H[L].pt.k[G].s[0].c = H[L].cl), H[L].pt.k[G].e && (H[L].pt.k[G].e[0].c = H[L].cl);
|
|
28069
28069
|
}
|
|
28070
28070
|
B.ty === 4 && D(B.shapes);
|
|
28071
28071
|
}
|
|
28072
28072
|
}
|
|
28073
|
-
return function(
|
|
28074
|
-
if (E(O,
|
|
28075
|
-
var B, F =
|
|
28076
|
-
for (B = 0; B < F; B += 1)
|
|
28073
|
+
return function(j) {
|
|
28074
|
+
if (E(O, j.v) && (V(j.layers), j.assets)) {
|
|
28075
|
+
var B, F = j.assets.length;
|
|
28076
|
+
for (B = 0; B < F; B += 1) j.assets[B].layers && V(j.assets[B].layers);
|
|
28077
28077
|
}
|
|
28078
28078
|
};
|
|
28079
28079
|
}();
|
|
@@ -28083,8 +28083,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
28083
28083
|
var N = { completeData: function(O) {
|
|
28084
28084
|
O.__complete || (I(O), S(O), T(O), R(O), M(O), m(O.layers, O.assets), function(D, V) {
|
|
28085
28085
|
if (D) {
|
|
28086
|
-
var
|
|
28087
|
-
for (
|
|
28086
|
+
var j = 0, B = D.length;
|
|
28087
|
+
for (j = 0; j < B; j += 1) D[j].t === 1 && (D[j].data.layers = g(D[j].data.refId, V), m(D[j].data.layers, V));
|
|
28088
28088
|
}
|
|
28089
28089
|
}(O.chars, O.assets), O.__complete = !0);
|
|
28090
28090
|
} };
|
|
@@ -28717,8 +28717,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
28717
28717
|
return b && S && (T[m] = n(_[m], _[0], E[m], C[0]), R += T[m].addedLength), g.totalLength = R, g;
|
|
28718
28718
|
}, getNewSegment: function(p, m, g, b, _, E, C) {
|
|
28719
28719
|
_ < 0 ? _ = 0 : _ > 1 && (_ = 1);
|
|
28720
|
-
var S, T = d(_, C), R = d(E = E > 1 ? 1 : E, C), I = p.length, M = 1 - T, A = 1 - R, N = M * M * M, O = T * M * M * 3, D = T * T * M * 3, V = T * T * T,
|
|
28721
|
-
for (S = 0; S < I; S += 1) f[4 * S] = t.round(1e3 * (N * p[S] + O * g[S] + D * b[S] + V * m[S])) / 1e3, f[4 * S + 1] = t.round(1e3 * (
|
|
28720
|
+
var S, T = d(_, C), R = d(E = E > 1 ? 1 : E, C), I = p.length, M = 1 - T, A = 1 - R, N = M * M * M, O = T * M * M * 3, D = T * T * M * 3, V = T * T * T, j = M * M * A, B = T * M * A + M * T * A + M * M * R, F = T * T * A + M * T * R + T * M * R, L = T * T * R, q = M * A * A, G = T * A * A + M * R * A + M * A * R, U = T * R * A + M * R * R + T * A * R, Q = T * R * R, H = A * A * A, z = R * A * A + A * R * A + A * A * R, W = R * R * A + A * R * R + R * A * R, J = R * R * R;
|
|
28721
|
+
for (S = 0; S < I; S += 1) f[4 * S] = t.round(1e3 * (N * p[S] + O * g[S] + D * b[S] + V * m[S])) / 1e3, f[4 * S + 1] = t.round(1e3 * (j * p[S] + B * g[S] + F * b[S] + L * m[S])) / 1e3, f[4 * S + 2] = t.round(1e3 * (q * p[S] + G * g[S] + U * b[S] + Q * m[S])) / 1e3, f[4 * S + 3] = t.round(1e3 * (H * p[S] + z * g[S] + W * b[S] + J * m[S])) / 1e3;
|
|
28722
28722
|
return f;
|
|
28723
28723
|
}, getPointInSegment: function(p, m, g, b, _, E) {
|
|
28724
28724
|
var C = d(_, E), S = 1 - C;
|
|
@@ -28769,9 +28769,9 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
28769
28769
|
e._lastPoint = g, e._lastAddedLength = D - M.points[g].partialLength, e._lastKeyframeIndex = E;
|
|
28770
28770
|
}
|
|
28771
28771
|
} else {
|
|
28772
|
-
var V,
|
|
28772
|
+
var V, j, B, F, L;
|
|
28773
28773
|
if (C = o.s.length, T = l.s || o.e, this.sh && o.h !== 1) t >= R ? (n[0] = T[0], n[1] = T[1], n[2] = T[2]) : t <= I ? (n[0] = o.s[0], n[1] = o.s[1], n[2] = o.s[2]) : quaternionToEuler(n, slerp(createQuaternion(o.s), createQuaternion(T), (t - I) / (R - I)));
|
|
28774
|
-
else for (E = 0; E < C; E += 1) o.h !== 1 && (t >= R ? p = 1 : t < I ? p = 0 : (o.o.x.constructor === Array ? (u.__fnct || (u.__fnct = []), u.__fnct[E] ? b = u.__fnct[E] : (V = o.o.x[E] === void 0 ? o.o.x[0] : o.o.x[E],
|
|
28774
|
+
else for (E = 0; E < C; E += 1) o.h !== 1 && (t >= R ? p = 1 : t < I ? p = 0 : (o.o.x.constructor === Array ? (u.__fnct || (u.__fnct = []), u.__fnct[E] ? b = u.__fnct[E] : (V = o.o.x[E] === void 0 ? o.o.x[0] : o.o.x[E], j = o.o.y[E] === void 0 ? o.o.y[0] : o.o.y[E], B = o.i.x[E] === void 0 ? o.i.x[0] : o.i.x[E], F = o.i.y[E] === void 0 ? o.i.y[0] : o.i.y[E], b = BezierFactory.getBezierEasing(V, j, B, F).get, u.__fnct[E] = b)) : u.__fnct ? b = u.__fnct : (V = o.o.x, j = o.o.y, B = o.i.x, F = o.i.y, b = BezierFactory.getBezierEasing(V, j, B, F).get, o.keyframeMetadata = b), p = b((t - I) / (R - I)))), T = l.s || o.e, L = o.h === 1 ? o.s[E] : o.s[E] + (T[E] - o.s[E]) * p, this.propType === "multidimensional" ? n[E] = L : n = L;
|
|
28775
28775
|
}
|
|
28776
28776
|
return e.lastIndex = _, n;
|
|
28777
28777
|
}
|
|
@@ -28938,17 +28938,17 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
28938
28938
|
if (b < V[0].t - this.offsetTime) C = V[0].s[0], T = !0, D = 0;
|
|
28939
28939
|
else if (b >= V[V.length - 1].t - this.offsetTime) C = V[V.length - 1].s ? V[V.length - 1].s[0] : V[V.length - 2].e[0], T = !0;
|
|
28940
28940
|
else {
|
|
28941
|
-
for (var
|
|
28942
|
-
if (F = this.keyframesMetadata[
|
|
28941
|
+
for (var j, B, F, L = D, q = V.length - 1, G = !0; G && (j = V[L], !((B = V[L + 1]).t - this.offsetTime > b)); ) L < q - 1 ? L += 1 : G = !1;
|
|
28942
|
+
if (F = this.keyframesMetadata[L] || {}, D = L, !(T = j.h === 1)) {
|
|
28943
28943
|
if (b >= B.t - this.offsetTime) N = 1;
|
|
28944
|
-
else if (b <
|
|
28944
|
+
else if (b < j.t - this.offsetTime) N = 0;
|
|
28945
28945
|
else {
|
|
28946
28946
|
var U;
|
|
28947
|
-
F.__fnct ? U = F.__fnct : (U = BezierFactory.getBezierEasing(
|
|
28947
|
+
F.__fnct ? U = F.__fnct : (U = BezierFactory.getBezierEasing(j.o.x, j.o.y, j.i.x, j.i.y).get, F.__fnct = U), N = U((b - (j.t - this.offsetTime)) / (B.t - this.offsetTime - (j.t - this.offsetTime)));
|
|
28948
28948
|
}
|
|
28949
|
-
S = B.s ? B.s[0] :
|
|
28949
|
+
S = B.s ? B.s[0] : j.e[0];
|
|
28950
28950
|
}
|
|
28951
|
-
C =
|
|
28951
|
+
C = j.s[0];
|
|
28952
28952
|
}
|
|
28953
28953
|
for (M = _._length, A = C.i[0].length, E.lastIndex = D, R = 0; R < M; R += 1) for (I = 0; I < A; I += 1) O = T ? C.i[R][I] : C.i[R][I] + (S.i[R][I] - C.i[R][I]) * N, _.i[R][I] = O, O = T ? C.o[R][I] : C.o[R][I] + (S.o[R][I] - C.o[R][I]) * N, _.o[R][I] = O, O = T ? C.v[R][I] : C.v[R][I] + (S.v[R][I] - C.v[R][I]) * N, _.v[R][I] = O;
|
|
28954
28954
|
}
|
|
@@ -29010,13 +29010,13 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
29010
29010
|
return b.prototype = { reset: n, getValue: function() {
|
|
29011
29011
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
29012
29012
|
}, convertStarToPath: function() {
|
|
29013
|
-
var _, E, C, S, T = 2 * Math.floor(this.pt.v), R = 2 * Math.PI / T, I = !0, M = this.or.v, A = this.ir.v, N = this.os.v, O = this.is.v, D = 2 * Math.PI * M / (2 * T), V = 2 * Math.PI * A / (2 * T),
|
|
29014
|
-
|
|
29013
|
+
var _, E, C, S, T = 2 * Math.floor(this.pt.v), R = 2 * Math.PI / T, I = !0, M = this.or.v, A = this.ir.v, N = this.os.v, O = this.is.v, D = 2 * Math.PI * M / (2 * T), V = 2 * Math.PI * A / (2 * T), j = -Math.PI / 2;
|
|
29014
|
+
j += this.r.v;
|
|
29015
29015
|
var B = this.data.d === 3 ? -1 : 1;
|
|
29016
29016
|
for (this.v._length = 0, _ = 0; _ < T; _ += 1) {
|
|
29017
29017
|
C = I ? N : O, S = I ? D : V;
|
|
29018
|
-
var F = (E = I ? M : A) * Math.cos(
|
|
29019
|
-
F += +this.p.v[0],
|
|
29018
|
+
var F = (E = I ? M : A) * Math.cos(j), L = E * Math.sin(j), q = F === 0 && L === 0 ? 0 : L / Math.sqrt(F * F + L * L), G = F === 0 && L === 0 ? 0 : -F / Math.sqrt(F * F + L * L);
|
|
29019
|
+
F += +this.p.v[0], L += +this.p.v[1], this.v.setTripleAt(F, L, F - q * S * C * B, L - G * S * C * B, F + q * S * C * B, L + G * S * C * B, _, !0), I = !I, j += R * B;
|
|
29020
29020
|
}
|
|
29021
29021
|
}, convertPolygonToPath: function() {
|
|
29022
29022
|
var _, E = Math.floor(this.pt.v), C = 2 * Math.PI / E, S = this.or.v, T = this.os.v, R = 2 * Math.PI * S / (4 * E), I = 0.5 * -Math.PI, M = this.data.d === 3 ? -1 : 1;
|
|
@@ -29134,12 +29134,12 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
29134
29134
|
var H = this.props[0] * this.props[5] - this.props[1] * this.props[4], z = this.props[5] / H, W = -this.props[1] / H, J = -this.props[4] / H, ne = this.props[0] / H, oe = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / H, le = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / H, ie = new Matrix();
|
|
29135
29135
|
return ie.props[0] = z, ie.props[1] = W, ie.props[4] = J, ie.props[5] = ne, ie.props[12] = oe, ie.props[13] = le, ie;
|
|
29136
29136
|
}
|
|
29137
|
-
function
|
|
29137
|
+
function j(H) {
|
|
29138
29138
|
return this.getInverseMatrix().applyToPointArray(H[0], H[1], H[2] || 0);
|
|
29139
29139
|
}
|
|
29140
29140
|
function B(H) {
|
|
29141
29141
|
var z, W = H.length, J = [];
|
|
29142
|
-
for (z = 0; z < W; z += 1) J[z] =
|
|
29142
|
+
for (z = 0; z < W; z += 1) J[z] = j(H[z]);
|
|
29143
29143
|
return J;
|
|
29144
29144
|
}
|
|
29145
29145
|
function F(H, z, W) {
|
|
@@ -29151,7 +29151,7 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
29151
29151
|
}
|
|
29152
29152
|
return J;
|
|
29153
29153
|
}
|
|
29154
|
-
function
|
|
29154
|
+
function L(H, z, W) {
|
|
29155
29155
|
return this.isIdentity() ? [H, z, W] : [H * this.props[0] + z * this.props[4] + W * this.props[8] + this.props[12], H * this.props[1] + z * this.props[5] + W * this.props[9] + this.props[13], H * this.props[2] + z * this.props[6] + W * this.props[10] + this.props[14]];
|
|
29156
29156
|
}
|
|
29157
29157
|
function q(H, z) {
|
|
@@ -29171,7 +29171,7 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
29171
29171
|
return "matrix(" + U(H[0]) + "," + U(H[1]) + "," + U(H[4]) + "," + U(H[5]) + "," + U(H[12]) + "," + U(H[13]) + ")";
|
|
29172
29172
|
}
|
|
29173
29173
|
return function() {
|
|
29174
|
-
this.reset = o, this.rotate = l, this.rotateX = u, this.rotateY = d, this.rotateZ = f, this.skew = m, this.skewFromAxis = g, this.shear = p, this.scale = b, this.setTransform = _, this.translate = E, this.transform = C, this.multiply = S, this.applyToPoint = A, this.applyToX = N, this.applyToY = O, this.applyToZ = D, this.applyToPointArray =
|
|
29174
|
+
this.reset = o, this.rotate = l, this.rotateX = u, this.rotateY = d, this.rotateZ = f, this.skew = m, this.skewFromAxis = g, this.shear = p, this.scale = b, this.setTransform = _, this.translate = E, this.transform = C, this.multiply = S, this.applyToPoint = A, this.applyToX = N, this.applyToY = O, this.applyToZ = D, this.applyToPointArray = L, this.applyToTriplePoints = F, this.applyToPointStringified = q, this.toCSS = G, this.to2dCSS = Q, this.clone = I, this.cloneFromProps = M, this.equals = R, this.inversePoints = B, this.inversePoint = j, this.getInverseMatrix = V, this._t = this.transform, this.isIdentity = T, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
29175
29175
|
};
|
|
29176
29176
|
}();
|
|
29177
29177
|
function _typeof$3(t) {
|
|
@@ -30552,10 +30552,10 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30552
30552
|
if (p.t === 1) (m.e._mdf || g) && (T.setAttribute("x2", M[0]), T.setAttribute("y2", M[1]), R && !m.g._collapsable && (m.of.setAttribute("x2", M[0]), m.of.setAttribute("y2", M[1])));
|
|
30553
30553
|
else if ((m.s._mdf || m.e._mdf || g) && (S = Math.sqrt(Math.pow(I[0] - M[0], 2) + Math.pow(I[1] - M[1], 2)), T.setAttribute("r", S), R && !m.g._collapsable && m.of.setAttribute("r", S)), m.e._mdf || m.h._mdf || m.a._mdf || g) {
|
|
30554
30554
|
S || (S = Math.sqrt(Math.pow(I[0] - M[0], 2) + Math.pow(I[1] - M[1], 2)));
|
|
30555
|
-
var
|
|
30555
|
+
var j = Math.atan2(M[1] - I[1], M[0] - I[0]), B = m.h.v;
|
|
30556
30556
|
B >= 1 ? B = 0.99 : B <= -1 && (B = -0.99);
|
|
30557
|
-
var F = S * B,
|
|
30558
|
-
T.setAttribute("fx",
|
|
30557
|
+
var F = S * B, L = Math.cos(j + m.a.v) * F + I[0], q = Math.sin(j + m.a.v) * F + I[1];
|
|
30558
|
+
T.setAttribute("fx", L), T.setAttribute("fy", q), R && !m.g._collapsable && (m.of.setAttribute("fx", L), m.of.setAttribute("fy", q));
|
|
30559
30559
|
}
|
|
30560
30560
|
}
|
|
30561
30561
|
function f(p, m, g) {
|
|
@@ -30701,11 +30701,11 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30701
30701
|
var e, n, i, o, l, u, d, f = this.elem.globalData.fontManager, p = this.data, m = [], g = 0, b = p.m.g, _ = 0, E = 0, C = 0, S = [], T = 0, R = 0, I = f.getFontByName(t.f), M = 0, A = getFontProperties(I);
|
|
30702
30702
|
t.fWeight = A.weight, t.fStyle = A.style, t.finalSize = t.s, t.finalText = this.buildFinalText(t.t), n = t.finalText.length, t.finalLineHeight = t.lh;
|
|
30703
30703
|
var N, O = t.tr / 1e3 * t.finalSize;
|
|
30704
|
-
if (t.sz) for (var D, V,
|
|
30704
|
+
if (t.sz) for (var D, V, j = !0, B = t.sz[0], F = t.sz[1]; j; ) {
|
|
30705
30705
|
D = 0, T = 0, n = (V = this.buildFinalText(t.t)).length, O = t.tr / 1e3 * t.finalSize;
|
|
30706
|
-
var
|
|
30707
|
-
for (e = 0; e < n; e += 1) N = V[e].charCodeAt(0), i = !1, V[e] === " " ?
|
|
30708
|
-
D += I.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize && F < D ? (t.finalSize -= 1, t.finalLineHeight = t.finalSize * t.lh / t.s) : (t.finalText = V, n = t.finalText.length,
|
|
30706
|
+
var L = -1;
|
|
30707
|
+
for (e = 0; e < n; e += 1) N = V[e].charCodeAt(0), i = !1, V[e] === " " ? L = e : N !== 13 && N !== 3 || (T = 0, i = !0, D += t.finalLineHeight || 1.2 * t.finalSize), f.chars ? (d = f.getCharData(V[e], I.fStyle, I.fFamily), M = i ? 0 : d.w * t.finalSize / 100) : M = f.measureText(V[e], t.f, t.finalSize), T + M > B && V[e] !== " " ? (L === -1 ? n += 1 : e = L, D += t.finalLineHeight || 1.2 * t.finalSize, V.splice(e, L === e ? 1 : 0, "\r"), L = -1, T = 0) : (T += M, T += O);
|
|
30708
|
+
D += I.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize && F < D ? (t.finalSize -= 1, t.finalLineHeight = t.finalSize * t.lh / t.s) : (t.finalText = V, n = t.finalText.length, j = !1);
|
|
30709
30709
|
}
|
|
30710
30710
|
T = -O, M = 0;
|
|
30711
30711
|
var q, G = 0;
|
|
@@ -30810,12 +30810,12 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30810
30810
|
}, TextAnimatorProperty.prototype.getMeasures = function(t, e) {
|
|
30811
30811
|
if (this.lettersChangedFlag = e, this._mdf || this._isFirstFrame || e || this._hasMaskedPath && this._pathData.m._mdf) {
|
|
30812
30812
|
this._isFirstFrame = !1;
|
|
30813
|
-
var n, i, o, l, u, d, f, p, m, g, b, _, E, C, S, T, R, I, M, A = this._moreOptions.alignment.v, N = this._animatorsData, O = this._textData, D = this.mHelper, V = this._renderType,
|
|
30813
|
+
var n, i, o, l, u, d, f, p, m, g, b, _, E, C, S, T, R, I, M, A = this._moreOptions.alignment.v, N = this._animatorsData, O = this._textData, D = this.mHelper, V = this._renderType, j = this.renderedLetters.length, B = t.l;
|
|
30814
30814
|
if (this._hasMaskedPath) {
|
|
30815
30815
|
if (M = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
30816
|
-
var F,
|
|
30817
|
-
for (this._pathData.r.v && (
|
|
30818
|
-
o = l, M.v.c && (F = bez.buildBezierData(
|
|
30816
|
+
var F, L = M.v;
|
|
30817
|
+
for (this._pathData.r.v && (L = L.reverse()), u = { tLength: 0, segments: [] }, l = L._length - 1, T = 0, o = 0; o < l; o += 1) F = bez.buildBezierData(L.v[o], L.v[o + 1], [L.o[o][0] - L.v[o][0], L.o[o][1] - L.v[o][1]], [L.i[o + 1][0] - L.v[o + 1][0], L.i[o + 1][1] - L.v[o + 1][1]]), u.tLength += F.segmentLength, u.segments.push(F), T += F.segmentLength;
|
|
30818
|
+
o = l, M.v.c && (F = bez.buildBezierData(L.v[o], L.v[0], [L.o[o][0] - L.v[o][0], L.o[o][1] - L.v[o][1]], [L.i[0][0] - L.v[0][0], L.i[0][1] - L.v[0][1]]), u.tLength += F.segmentLength, u.segments.push(F), T += F.segmentLength), this._pathData.pi = u;
|
|
30819
30819
|
}
|
|
30820
30820
|
if (u = this._pathData.pi, d = this._pathData.f.v, b = 0, g = 1, p = 0, m = !0, C = u.segments, d < 0 && M.v.c) for (u.tLength < Math.abs(d) && (d = -Math.abs(d) % u.tLength), g = (E = C[b = C.length - 1].points).length - 1; d < 0; ) d += E[g].partialLength, (g -= 1) < 0 && (g = (E = C[b -= 1].points).length - 1);
|
|
30821
30821
|
_ = (E = C[b].points)[g - 1], S = (f = E[g]).partialLength;
|
|
@@ -30885,7 +30885,7 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30885
30885
|
}
|
|
30886
30886
|
V === "html" ? ye = D.toCSS() : V === "svg" ? ye = D.to2dCSS() : pe = [D.props[0], D.props[1], D.props[2], D.props[3], D.props[4], D.props[5], D.props[6], D.props[7], D.props[8], D.props[9], D.props[10], D.props[11], D.props[12], D.props[13], D.props[14], D.props[15]], K = le;
|
|
30887
30887
|
}
|
|
30888
|
-
|
|
30888
|
+
j <= o ? (Q = new LetterProps(K, se, te, Z, ye, pe), this.renderedLetters.push(Q), j += 1, this.lettersChangedFlag = !0) : (Q = this.renderedLetters[o], this.lettersChangedFlag = Q.update(K, se, te, Z, ye, pe) || this.lettersChangedFlag);
|
|
30889
30889
|
}
|
|
30890
30890
|
}
|
|
30891
30891
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -32594,9 +32594,9 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
32594
32594
|
S.propertyGroup = propertyGroupFactory(S, C);
|
|
32595
32595
|
var T = function(I, M, A) {
|
|
32596
32596
|
var N, O = function(V) {
|
|
32597
|
-
for (var
|
|
32598
|
-
if (N[
|
|
32599
|
-
|
|
32597
|
+
for (var j = 0, B = N.length; j < B; ) {
|
|
32598
|
+
if (N[j]._name === V || N[j].mn === V || N[j].propertyIndex === V || N[j].ix === V || N[j].ind === V) return N[j];
|
|
32599
|
+
j += 1;
|
|
32600
32600
|
}
|
|
32601
32601
|
return typeof V == "number" ? N[V - 1] : null;
|
|
32602
32602
|
};
|
|
@@ -32800,12 +32800,12 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
32800
32800
|
return (O - N) * V + D;
|
|
32801
32801
|
}
|
|
32802
32802
|
if (g === "continue") {
|
|
32803
|
-
var
|
|
32803
|
+
var j = this.getValueAtTime(A / this.comp.globalData.frameRate, 0), B = this.getValueAtTime((A - 1e-3) / this.comp.globalData.frameRate, 0);
|
|
32804
32804
|
if (this.pv.length) {
|
|
32805
|
-
for (T = (R = new Array(
|
|
32805
|
+
for (T = (R = new Array(j.length)).length, S = 0; S < T; S += 1) R[S] = j[S] + (j[S] - B[S]) * ((I - A) / this.comp.globalData.frameRate) / 5e-4;
|
|
32806
32806
|
return R;
|
|
32807
32807
|
}
|
|
32808
|
-
return
|
|
32808
|
+
return j + (I - A) / 1e-3 * (j - B);
|
|
32809
32809
|
}
|
|
32810
32810
|
}
|
|
32811
32811
|
return this.getValueAtTime(((I - C) % E + C) / this.comp.globalData.frameRate, 0);
|
|
@@ -32827,12 +32827,12 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
32827
32827
|
return D - (O - N) * V;
|
|
32828
32828
|
}
|
|
32829
32829
|
if (g === "continue") {
|
|
32830
|
-
var
|
|
32830
|
+
var j = this.getValueAtTime(A / this.comp.globalData.frameRate, 0), B = this.getValueAtTime((A + 1e-3) / this.comp.globalData.frameRate, 0);
|
|
32831
32831
|
if (this.pv.length) {
|
|
32832
|
-
for (T = (R = new Array(
|
|
32832
|
+
for (T = (R = new Array(j.length)).length, S = 0; S < T; S += 1) R[S] = j[S] + (j[S] - B[S]) * (A - I) / 1e-3;
|
|
32833
32833
|
return R;
|
|
32834
32834
|
}
|
|
32835
|
-
return
|
|
32835
|
+
return j + (j - B) * (A - I) / 1e-3;
|
|
32836
32836
|
}
|
|
32837
32837
|
}
|
|
32838
32838
|
return this.getValueAtTime((E - ((A - I) % E + A)) / this.comp.globalData.frameRate, 0);
|
|
@@ -34063,13 +34063,13 @@ var SCROLL_AREA_NAME = "ScrollArea", [createScrollAreaContext, createScrollAreaS
|
|
|
34063
34063
|
dir: o,
|
|
34064
34064
|
scrollHideDelay: l = 600,
|
|
34065
34065
|
...u
|
|
34066
|
-
} = t, [d, f] = React.useState(null), [p, m] = React.useState(null), [g, b] = React.useState(null), [_, E] = React.useState(null), [C, S] = React.useState(null), [T, R] = React.useState(0), [I, M] = React.useState(0), [A, N] = React.useState(!1), [O, D] = React.useState(!1), V = useComposedRefs(e, (B) => f(B)),
|
|
34066
|
+
} = t, [d, f] = React.useState(null), [p, m] = React.useState(null), [g, b] = React.useState(null), [_, E] = React.useState(null), [C, S] = React.useState(null), [T, R] = React.useState(0), [I, M] = React.useState(0), [A, N] = React.useState(!1), [O, D] = React.useState(!1), V = useComposedRefs(e, (B) => f(B)), j = useDirection(o);
|
|
34067
34067
|
return /* @__PURE__ */ jsx(
|
|
34068
34068
|
ScrollAreaProvider,
|
|
34069
34069
|
{
|
|
34070
34070
|
scope: n,
|
|
34071
34071
|
type: i,
|
|
34072
|
-
dir:
|
|
34072
|
+
dir: j,
|
|
34073
34073
|
scrollHideDelay: l,
|
|
34074
34074
|
scrollArea: d,
|
|
34075
34075
|
viewport: p,
|
|
@@ -34089,7 +34089,7 @@ var SCROLL_AREA_NAME = "ScrollArea", [createScrollAreaContext, createScrollAreaS
|
|
|
34089
34089
|
children: /* @__PURE__ */ jsx(
|
|
34090
34090
|
Primitive.div,
|
|
34091
34091
|
{
|
|
34092
|
-
dir:
|
|
34092
|
+
dir: j,
|
|
34093
34093
|
...u,
|
|
34094
34094
|
ref: V,
|
|
34095
34095
|
style: {
|
|
@@ -34388,14 +34388,14 @@ var ScrollAreaScrollbarHover = React.forwardRef((t, e) => {
|
|
|
34388
34388
|
} = t, _ = useScrollAreaContext(SCROLLBAR_NAME, n), [E, C] = React.useState(null), S = useComposedRefs(e, (V) => C(V)), T = React.useRef(null), R = React.useRef(""), I = _.viewport, M = i.content - i.viewport, A = useCallbackRef$1(m), N = useCallbackRef$1(f), O = useDebounceCallback(g, 10);
|
|
34389
34389
|
function D(V) {
|
|
34390
34390
|
if (T.current) {
|
|
34391
|
-
const
|
|
34392
|
-
p({ x:
|
|
34391
|
+
const j = V.clientX - T.current.left, B = V.clientY - T.current.top;
|
|
34392
|
+
p({ x: j, y: B });
|
|
34393
34393
|
}
|
|
34394
34394
|
}
|
|
34395
34395
|
return React.useEffect(() => {
|
|
34396
|
-
const V = (
|
|
34397
|
-
const B =
|
|
34398
|
-
(E == null ? void 0 : E.contains(B)) && A(
|
|
34396
|
+
const V = (j) => {
|
|
34397
|
+
const B = j.target;
|
|
34398
|
+
(E == null ? void 0 : E.contains(B)) && A(j, M);
|
|
34399
34399
|
};
|
|
34400
34400
|
return document.addEventListener("wheel", V, { passive: !1 }), () => document.removeEventListener("wheel", V, { passive: !1 });
|
|
34401
34401
|
}, [I, E, M, A]), React.useEffect(N, [i, N]), useResizeObserver(E, O), useResizeObserver(_.content, O), /* @__PURE__ */ jsx(
|
|
@@ -34419,8 +34419,8 @@ var ScrollAreaScrollbarHover = React.forwardRef((t, e) => {
|
|
|
34419
34419
|
}),
|
|
34420
34420
|
onPointerMove: composeEventHandlers(t.onPointerMove, D),
|
|
34421
34421
|
onPointerUp: composeEventHandlers(t.onPointerUp, (V) => {
|
|
34422
|
-
const
|
|
34423
|
-
|
|
34422
|
+
const j = V.target;
|
|
34423
|
+
j.hasPointerCapture(V.pointerId) && j.releasePointerCapture(V.pointerId), document.body.style.webkitUserSelect = R.current, _.viewport && (_.viewport.style.scrollBehavior = ""), T.current = null;
|
|
34424
34424
|
})
|
|
34425
34425
|
}
|
|
34426
34426
|
)
|
|
@@ -36618,7 +36618,7 @@ function requireNode() {
|
|
|
36618
36618
|
return A = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(D, V) {
|
|
36619
36619
|
D.__proto__ = V;
|
|
36620
36620
|
} || function(D, V) {
|
|
36621
|
-
for (var
|
|
36621
|
+
for (var j in V) Object.prototype.hasOwnProperty.call(V, j) && (D[j] = V[j]);
|
|
36622
36622
|
}, A(N, O);
|
|
36623
36623
|
};
|
|
36624
36624
|
return function(N, O) {
|
|
@@ -36852,10 +36852,10 @@ function requireNode() {
|
|
|
36852
36852
|
/** @class */
|
|
36853
36853
|
function(A) {
|
|
36854
36854
|
t(N, A);
|
|
36855
|
-
function N(O, D, V,
|
|
36856
|
-
V === void 0 && (V = []),
|
|
36855
|
+
function N(O, D, V, j) {
|
|
36856
|
+
V === void 0 && (V = []), j === void 0 && (j = O === "script" ? n.ElementType.Script : O === "style" ? n.ElementType.Style : n.ElementType.Tag);
|
|
36857
36857
|
var B = A.call(this, V) || this;
|
|
36858
|
-
return B.name = O, B.attribs = D, B.type =
|
|
36858
|
+
return B.name = O, B.attribs = D, B.type = j, B;
|
|
36859
36859
|
}
|
|
36860
36860
|
return Object.defineProperty(N.prototype, "nodeType", {
|
|
36861
36861
|
get: function() {
|
|
@@ -36881,12 +36881,12 @@ function requireNode() {
|
|
|
36881
36881
|
get: function() {
|
|
36882
36882
|
var O = this;
|
|
36883
36883
|
return Object.keys(this.attribs).map(function(D) {
|
|
36884
|
-
var V,
|
|
36884
|
+
var V, j;
|
|
36885
36885
|
return {
|
|
36886
36886
|
name: D,
|
|
36887
36887
|
value: O.attribs[D],
|
|
36888
36888
|
namespace: (V = O["x-attribsNamespace"]) === null || V === void 0 ? void 0 : V[D],
|
|
36889
|
-
prefix: (
|
|
36889
|
+
prefix: (j = O["x-attribsPrefix"]) === null || j === void 0 ? void 0 : j[D]
|
|
36890
36890
|
};
|
|
36891
36891
|
});
|
|
36892
36892
|
},
|
|
@@ -36933,14 +36933,14 @@ function requireNode() {
|
|
|
36933
36933
|
O = new u(A.data);
|
|
36934
36934
|
else if (b(A)) {
|
|
36935
36935
|
var D = N ? M(A.children) : [], V = new g(A.name, e({}, A.attribs), D);
|
|
36936
|
-
D.forEach(function(
|
|
36937
|
-
return
|
|
36936
|
+
D.forEach(function(L) {
|
|
36937
|
+
return L.parent = V;
|
|
36938
36938
|
}), A.namespace != null && (V.namespace = A.namespace), A["x-attribsNamespace"] && (V["x-attribsNamespace"] = e({}, A["x-attribsNamespace"])), A["x-attribsPrefix"] && (V["x-attribsPrefix"] = e({}, A["x-attribsPrefix"])), O = V;
|
|
36939
36939
|
} else if (_(A)) {
|
|
36940
|
-
var D = N ? M(A.children) : [],
|
|
36940
|
+
var D = N ? M(A.children) : [], j = new p(D);
|
|
36941
36941
|
D.forEach(function(q) {
|
|
36942
|
-
return q.parent =
|
|
36943
|
-
}), O =
|
|
36942
|
+
return q.parent = j;
|
|
36943
|
+
}), O = j;
|
|
36944
36944
|
} else if (T(A)) {
|
|
36945
36945
|
var D = N ? M(A.children) : [], B = new m(D);
|
|
36946
36946
|
D.forEach(function(q) {
|
|
@@ -37722,8 +37722,8 @@ function requireLib$1() {
|
|
|
37722
37722
|
function d(A) {
|
|
37723
37723
|
return p.hasOwnProperty(A) ? p[A] : null;
|
|
37724
37724
|
}
|
|
37725
|
-
function f(A, N, O, D, V,
|
|
37726
|
-
this.acceptsBooleans = N === n || N === i || N === o, this.attributeName = D, this.attributeNamespace = V, this.mustUseProperty = O, this.propertyName = A, this.type = N, this.sanitizeURL =
|
|
37725
|
+
function f(A, N, O, D, V, j, B) {
|
|
37726
|
+
this.acceptsBooleans = N === n || N === i || N === o, this.attributeName = D, this.attributeNamespace = V, this.mustUseProperty = O, this.propertyName = A, this.type = N, this.sanitizeURL = j, this.removeEmptyString = B;
|
|
37727
37727
|
}
|
|
37728
37728
|
const p = {};
|
|
37729
37729
|
[
|
|
@@ -38144,30 +38144,30 @@ function requireInlineStyleParser() {
|
|
|
38144
38144
|
if (!C) return [];
|
|
38145
38145
|
S = S || {};
|
|
38146
38146
|
var T = 1, R = 1;
|
|
38147
|
-
function I(
|
|
38148
|
-
var q =
|
|
38147
|
+
function I(L) {
|
|
38148
|
+
var q = L.match(e);
|
|
38149
38149
|
q && (T += q.length);
|
|
38150
|
-
var G =
|
|
38151
|
-
R = ~G ?
|
|
38150
|
+
var G = L.lastIndexOf(f);
|
|
38151
|
+
R = ~G ? L.length - G : R + L.length;
|
|
38152
38152
|
}
|
|
38153
38153
|
function M() {
|
|
38154
|
-
var
|
|
38154
|
+
var L = { line: T, column: R };
|
|
38155
38155
|
return function(q) {
|
|
38156
|
-
return q.position = new A(
|
|
38156
|
+
return q.position = new A(L), D(), q;
|
|
38157
38157
|
};
|
|
38158
38158
|
}
|
|
38159
|
-
function A(
|
|
38160
|
-
this.start =
|
|
38159
|
+
function A(L) {
|
|
38160
|
+
this.start = L, this.end = { line: T, column: R }, this.source = S.source;
|
|
38161
38161
|
}
|
|
38162
38162
|
A.prototype.content = C;
|
|
38163
|
-
function N(
|
|
38163
|
+
function N(L) {
|
|
38164
38164
|
var q = new Error(
|
|
38165
|
-
S.source + ":" + T + ":" + R + ": " +
|
|
38165
|
+
S.source + ":" + T + ":" + R + ": " + L
|
|
38166
38166
|
);
|
|
38167
|
-
if (q.reason =
|
|
38167
|
+
if (q.reason = L, q.filename = S.source, q.line = T, q.column = R, q.source = C, !S.silent) throw q;
|
|
38168
38168
|
}
|
|
38169
|
-
function O(
|
|
38170
|
-
var q =
|
|
38169
|
+
function O(L) {
|
|
38170
|
+
var q = L.exec(C);
|
|
38171
38171
|
if (q) {
|
|
38172
38172
|
var G = q[0];
|
|
38173
38173
|
return I(G), C = C.slice(G.length), q;
|
|
@@ -38176,31 +38176,31 @@ function requireInlineStyleParser() {
|
|
|
38176
38176
|
function D() {
|
|
38177
38177
|
O(n);
|
|
38178
38178
|
}
|
|
38179
|
-
function V(
|
|
38179
|
+
function V(L) {
|
|
38180
38180
|
var q;
|
|
38181
|
-
for (
|
|
38182
|
-
q !== !1 &&
|
|
38183
|
-
return
|
|
38181
|
+
for (L = L || []; q = j(); )
|
|
38182
|
+
q !== !1 && L.push(q);
|
|
38183
|
+
return L;
|
|
38184
38184
|
}
|
|
38185
|
-
function
|
|
38186
|
-
var
|
|
38185
|
+
function j() {
|
|
38186
|
+
var L = M();
|
|
38187
38187
|
if (!(p != C.charAt(0) || m != C.charAt(1))) {
|
|
38188
38188
|
for (var q = 2; g != C.charAt(q) && (m != C.charAt(q) || p != C.charAt(q + 1)); )
|
|
38189
38189
|
++q;
|
|
38190
38190
|
if (q += 2, g === C.charAt(q - 1))
|
|
38191
38191
|
return N("End of comment missing");
|
|
38192
38192
|
var G = C.slice(2, q - 2);
|
|
38193
|
-
return R += 2, I(G), C = C.slice(q), R += 2,
|
|
38193
|
+
return R += 2, I(G), C = C.slice(q), R += 2, L({
|
|
38194
38194
|
type: b,
|
|
38195
38195
|
comment: G
|
|
38196
38196
|
});
|
|
38197
38197
|
}
|
|
38198
38198
|
}
|
|
38199
38199
|
function B() {
|
|
38200
|
-
var
|
|
38200
|
+
var L = M(), q = O(i);
|
|
38201
38201
|
if (q) {
|
|
38202
|
-
if (
|
|
38203
|
-
var G = O(l), U =
|
|
38202
|
+
if (j(), !O(o)) return N("property missing ':'");
|
|
38203
|
+
var G = O(l), U = L({
|
|
38204
38204
|
type: _,
|
|
38205
38205
|
property: E(q[0].replace(t, g)),
|
|
38206
38206
|
value: G ? E(G[0].replace(t, g)) : g
|
|
@@ -38209,11 +38209,11 @@ function requireInlineStyleParser() {
|
|
|
38209
38209
|
}
|
|
38210
38210
|
}
|
|
38211
38211
|
function F() {
|
|
38212
|
-
var
|
|
38213
|
-
V(
|
|
38212
|
+
var L = [];
|
|
38213
|
+
V(L);
|
|
38214
38214
|
for (var q; q = B(); )
|
|
38215
|
-
q !== !1 && (
|
|
38216
|
-
return
|
|
38215
|
+
q !== !1 && (L.push(q), V(L));
|
|
38216
|
+
return L;
|
|
38217
38217
|
}
|
|
38218
38218
|
return D(), F();
|
|
38219
38219
|
};
|
|
@@ -39500,12 +39500,12 @@ function createSelectorCreator(t, ...e) {
|
|
|
39500
39500
|
O,
|
|
39501
39501
|
d
|
|
39502
39502
|
), V.shouldRun) {
|
|
39503
|
-
const
|
|
39503
|
+
const j = collectInputSelectorResults(
|
|
39504
39504
|
R,
|
|
39505
39505
|
arguments
|
|
39506
39506
|
);
|
|
39507
39507
|
V.run(
|
|
39508
|
-
{ inputSelectorResults: O, inputSelectorResultsCopy:
|
|
39508
|
+
{ inputSelectorResults: O, inputSelectorResultsCopy: j },
|
|
39509
39509
|
{ memoize: g, memoizeOptions: S },
|
|
39510
39510
|
arguments
|
|
39511
39511
|
);
|
|
@@ -39784,9 +39784,9 @@ var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXI
|
|
|
39784
39784
|
name: "ConditionError",
|
|
39785
39785
|
message: "Aborted due to condition callback returning false."
|
|
39786
39786
|
};
|
|
39787
|
-
const D = new Promise((V,
|
|
39787
|
+
const D = new Promise((V, j) => {
|
|
39788
39788
|
C = () => {
|
|
39789
|
-
|
|
39789
|
+
j({
|
|
39790
39790
|
name: "AbortError",
|
|
39791
39791
|
message: S || "Aborted"
|
|
39792
39792
|
});
|
|
@@ -39805,8 +39805,8 @@ var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXI
|
|
|
39805
39805
|
requestId: _,
|
|
39806
39806
|
signal: E.signal,
|
|
39807
39807
|
abort: T,
|
|
39808
|
-
rejectWithValue: (V,
|
|
39809
|
-
fulfillWithValue: (V,
|
|
39808
|
+
rejectWithValue: (V, j) => new RejectWithValue(V, j),
|
|
39809
|
+
fulfillWithValue: (V, j) => new FulfillWithMeta(V, j)
|
|
39810
39810
|
})).then((V) => {
|
|
39811
39811
|
if (V instanceof RejectWithValue)
|
|
39812
39812
|
throw V;
|
|
@@ -39940,10 +39940,10 @@ function buildCreateSlice({
|
|
|
39940
39940
|
function O(D = b) {
|
|
39941
39941
|
const V = getOrInsertComputed(_, A, () => /* @__PURE__ */ new WeakMap());
|
|
39942
39942
|
return getOrInsertComputed(V, D, () => {
|
|
39943
|
-
const
|
|
39943
|
+
const j = {};
|
|
39944
39944
|
for (const [B, F] of Object.entries(o.selectors ?? {}))
|
|
39945
|
-
|
|
39946
|
-
return
|
|
39945
|
+
j[B] = wrapSelector(F, D, () => getOrInsertComputed(E, D, T), A);
|
|
39946
|
+
return j;
|
|
39947
39947
|
});
|
|
39948
39948
|
}
|
|
39949
39949
|
return {
|
|
@@ -40180,15 +40180,15 @@ function fetchBaseQuery({
|
|
|
40180
40180
|
params: O = void 0,
|
|
40181
40181
|
responseHandler: D = f ?? "json",
|
|
40182
40182
|
validateStatus: V = p ?? defaultValidateStatus,
|
|
40183
|
-
timeout:
|
|
40183
|
+
timeout: j = d,
|
|
40184
40184
|
...B
|
|
40185
40185
|
} = typeof b == "string" ? {
|
|
40186
40186
|
url: b
|
|
40187
|
-
} : b, F,
|
|
40188
|
-
|
|
40187
|
+
} : b, F, L = _.signal;
|
|
40188
|
+
j && (F = new AbortController(), _.signal.addEventListener("abort", F.abort), L = F.signal);
|
|
40189
40189
|
let q = {
|
|
40190
40190
|
...m,
|
|
40191
|
-
signal:
|
|
40191
|
+
signal: L,
|
|
40192
40192
|
...B
|
|
40193
40193
|
};
|
|
40194
40194
|
N = new Headers(stripUndefined(N)), q.headers = await e(N, {
|
|
@@ -40212,7 +40212,7 @@ function fetchBaseQuery({
|
|
|
40212
40212
|
};
|
|
40213
40213
|
let H, z = !1, W = F && setTimeout(() => {
|
|
40214
40214
|
z = !0, F.abort();
|
|
40215
|
-
},
|
|
40215
|
+
}, j);
|
|
40216
40216
|
try {
|
|
40217
40217
|
H = await n(U);
|
|
40218
40218
|
} catch (le) {
|
|
@@ -40360,10 +40360,10 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40360
40360
|
const N = (O, {
|
|
40361
40361
|
subscribe: D = !0,
|
|
40362
40362
|
forceRefetch: V,
|
|
40363
|
-
subscriptionOptions:
|
|
40363
|
+
subscriptionOptions: j,
|
|
40364
40364
|
[forceQueryFnSymbol]: B,
|
|
40365
40365
|
...F
|
|
40366
|
-
} = {}) => (
|
|
40366
|
+
} = {}) => (L, q) => {
|
|
40367
40367
|
var ae;
|
|
40368
40368
|
const G = t({
|
|
40369
40369
|
queryArgs: O,
|
|
@@ -40376,7 +40376,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40376
40376
|
type: "query",
|
|
40377
40377
|
subscribe: D,
|
|
40378
40378
|
forceRefetch: V,
|
|
40379
|
-
subscriptionOptions:
|
|
40379
|
+
subscriptionOptions: j,
|
|
40380
40380
|
endpointName: M,
|
|
40381
40381
|
originalArgs: O,
|
|
40382
40382
|
queryCacheKey: G,
|
|
@@ -40397,12 +40397,12 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40397
40397
|
initialPageParam: se
|
|
40398
40398
|
});
|
|
40399
40399
|
}
|
|
40400
|
-
const H = o.endpoints[M].select(O), z =
|
|
40401
|
-
C(
|
|
40400
|
+
const H = o.endpoints[M].select(O), z = L(U), W = H(q());
|
|
40401
|
+
C(L);
|
|
40402
40402
|
const {
|
|
40403
40403
|
requestId: J,
|
|
40404
40404
|
abort: ne
|
|
40405
|
-
} = z, oe = W.requestId !== J, le = (ae = u.get(
|
|
40405
|
+
} = z, oe = W.requestId !== J, le = (ae = u.get(L)) == null ? void 0 : ae[G], ie = () => H(q()), ue = Object.assign(B ? (
|
|
40406
40406
|
// a query has been forced (upsertQueryData)
|
|
40407
40407
|
// -> we want to resolve it once data has been written with the data that will be written
|
|
40408
40408
|
z.then(ie)
|
|
@@ -40417,7 +40417,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40417
40417
|
), {
|
|
40418
40418
|
arg: O,
|
|
40419
40419
|
requestId: J,
|
|
40420
|
-
subscriptionOptions:
|
|
40420
|
+
subscriptionOptions: j,
|
|
40421
40421
|
queryCacheKey: G,
|
|
40422
40422
|
abort: ne,
|
|
40423
40423
|
async unwrap() {
|
|
@@ -40426,18 +40426,18 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40426
40426
|
throw ce.error;
|
|
40427
40427
|
return ce.data;
|
|
40428
40428
|
},
|
|
40429
|
-
refetch: () =>
|
|
40429
|
+
refetch: () => L(N(O, {
|
|
40430
40430
|
subscribe: !1,
|
|
40431
40431
|
forceRefetch: !0
|
|
40432
40432
|
})),
|
|
40433
40433
|
unsubscribe() {
|
|
40434
|
-
D &&
|
|
40434
|
+
D && L(f({
|
|
40435
40435
|
queryCacheKey: G,
|
|
40436
40436
|
requestId: J
|
|
40437
40437
|
}));
|
|
40438
40438
|
},
|
|
40439
40439
|
updateSubscriptionOptions(ce) {
|
|
40440
|
-
ue.subscriptionOptions = ce,
|
|
40440
|
+
ue.subscriptionOptions = ce, L(m({
|
|
40441
40441
|
endpointName: M,
|
|
40442
40442
|
requestId: J,
|
|
40443
40443
|
queryCacheKey: G,
|
|
@@ -40446,9 +40446,9 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40446
40446
|
}
|
|
40447
40447
|
});
|
|
40448
40448
|
if (!le && !oe && !B) {
|
|
40449
|
-
const ce = getOrInsert(u,
|
|
40449
|
+
const ce = getOrInsert(u, L, {});
|
|
40450
40450
|
ce[G] = ue, ue.then(() => {
|
|
40451
|
-
delete ce[G], countObjectKeys$1(ce) || u.delete(
|
|
40451
|
+
delete ce[G], countObjectKeys$1(ce) || u.delete(L);
|
|
40452
40452
|
});
|
|
40453
40453
|
}
|
|
40454
40454
|
return ue;
|
|
@@ -40466,17 +40466,17 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40466
40466
|
track: N = !0,
|
|
40467
40467
|
fixedCacheKey: O
|
|
40468
40468
|
} = {}) => (D, V) => {
|
|
40469
|
-
const
|
|
40469
|
+
const j = i({
|
|
40470
40470
|
type: "mutation",
|
|
40471
40471
|
endpointName: M,
|
|
40472
40472
|
originalArgs: A,
|
|
40473
40473
|
track: N,
|
|
40474
40474
|
fixedCacheKey: O
|
|
40475
|
-
}), B = D(
|
|
40475
|
+
}), B = D(j);
|
|
40476
40476
|
C(D);
|
|
40477
40477
|
const {
|
|
40478
40478
|
requestId: F,
|
|
40479
|
-
abort:
|
|
40479
|
+
abort: L,
|
|
40480
40480
|
unwrap: q
|
|
40481
40481
|
} = B, G = asSafePromise(B.unwrap().then((z) => ({
|
|
40482
40482
|
data: z
|
|
@@ -40490,7 +40490,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40490
40490
|
}, Q = Object.assign(G, {
|
|
40491
40491
|
arg: B.arg,
|
|
40492
40492
|
requestId: F,
|
|
40493
|
-
abort:
|
|
40493
|
+
abort: L,
|
|
40494
40494
|
unwrap: q,
|
|
40495
40495
|
reset: U
|
|
40496
40496
|
}), H = d.get(D) || {};
|
|
@@ -40534,7 +40534,7 @@ function buildThunks({
|
|
|
40534
40534
|
catchSchemaFailure: f,
|
|
40535
40535
|
skipSchemaValidation: p
|
|
40536
40536
|
}) {
|
|
40537
|
-
const m = (B, F,
|
|
40537
|
+
const m = (B, F, L, q) => (G, U) => {
|
|
40538
40538
|
const Q = n[B], H = i({
|
|
40539
40539
|
queryArgs: F,
|
|
40540
40540
|
endpointDefinition: Q,
|
|
@@ -40542,7 +40542,7 @@ function buildThunks({
|
|
|
40542
40542
|
});
|
|
40543
40543
|
if (G(o.internalActions.queryResultPatched({
|
|
40544
40544
|
queryCacheKey: H,
|
|
40545
|
-
patches:
|
|
40545
|
+
patches: L
|
|
40546
40546
|
})), !q)
|
|
40547
40547
|
return;
|
|
40548
40548
|
const z = o.endpoints[B].select(F)(
|
|
@@ -40554,15 +40554,15 @@ function buildThunks({
|
|
|
40554
40554
|
providedTags: W
|
|
40555
40555
|
}]));
|
|
40556
40556
|
};
|
|
40557
|
-
function g(B, F,
|
|
40557
|
+
function g(B, F, L = 0) {
|
|
40558
40558
|
const q = [F, ...B];
|
|
40559
|
-
return
|
|
40559
|
+
return L && q.length > L ? q.slice(0, -1) : q;
|
|
40560
40560
|
}
|
|
40561
|
-
function b(B, F,
|
|
40561
|
+
function b(B, F, L = 0) {
|
|
40562
40562
|
const q = [...B, F];
|
|
40563
|
-
return
|
|
40563
|
+
return L && q.length > L ? q.slice(1) : q;
|
|
40564
40564
|
}
|
|
40565
|
-
const _ = (B, F,
|
|
40565
|
+
const _ = (B, F, L, q = !0) => (G, U) => {
|
|
40566
40566
|
const H = o.endpoints[B].select(F)(
|
|
40567
40567
|
// Work around TS 4.1 mismatch
|
|
40568
40568
|
U()
|
|
@@ -40576,10 +40576,10 @@ function buildThunks({
|
|
|
40576
40576
|
let W;
|
|
40577
40577
|
if ("data" in H)
|
|
40578
40578
|
if (isDraftable(H.data)) {
|
|
40579
|
-
const [J, ne, oe] = produceWithPatches(H.data,
|
|
40579
|
+
const [J, ne, oe] = produceWithPatches(H.data, L);
|
|
40580
40580
|
z.patches.push(...ne), z.inversePatches.push(...oe), W = J;
|
|
40581
40581
|
} else
|
|
40582
|
-
W =
|
|
40582
|
+
W = L(H.data), z.patches.push({
|
|
40583
40583
|
op: "replace",
|
|
40584
40584
|
path: [],
|
|
40585
40585
|
value: W
|
|
@@ -40589,15 +40589,15 @@ function buildThunks({
|
|
|
40589
40589
|
value: H.data
|
|
40590
40590
|
});
|
|
40591
40591
|
return z.patches.length === 0 || G(o.util.patchQueryData(B, F, z.patches, q)), z;
|
|
40592
|
-
}, E = (B, F,
|
|
40592
|
+
}, E = (B, F, L) => (q) => q(o.endpoints[B].initiate(F, {
|
|
40593
40593
|
subscribe: !1,
|
|
40594
40594
|
forceRefetch: !0,
|
|
40595
40595
|
[forceQueryFnSymbol]: () => ({
|
|
40596
|
-
data:
|
|
40596
|
+
data: L
|
|
40597
40597
|
})
|
|
40598
40598
|
})), C = (B, F) => B.query && B[F] ? B[F] : defaultTransformResponse, S = async (B, {
|
|
40599
40599
|
signal: F,
|
|
40600
|
-
abort:
|
|
40600
|
+
abort: L,
|
|
40601
40601
|
rejectWithValue: q,
|
|
40602
40602
|
fulfillWithValue: G,
|
|
40603
40603
|
dispatch: U,
|
|
@@ -40613,7 +40613,7 @@ function buildThunks({
|
|
|
40613
40613
|
let le = C(z, "transformResponse");
|
|
40614
40614
|
const ie = {
|
|
40615
40615
|
signal: F,
|
|
40616
|
-
abort:
|
|
40616
|
+
abort: L,
|
|
40617
40617
|
dispatch: U,
|
|
40618
40618
|
getState: Q,
|
|
40619
40619
|
extra: H,
|
|
@@ -40767,26 +40767,26 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
40767
40767
|
}
|
|
40768
40768
|
};
|
|
40769
40769
|
function T(B, F) {
|
|
40770
|
-
const
|
|
40770
|
+
const L = u.selectQueryEntry(F, B.queryCacheKey), q = u.selectConfig(F).refetchOnMountOrArgChange, G = L == null ? void 0 : L.fulfilledTimeStamp, U = B.forceRefetch ?? (B.subscribe && q);
|
|
40771
40771
|
return U ? U === !0 || (Number(/* @__PURE__ */ new Date()) - Number(G)) / 1e3 >= U : !1;
|
|
40772
40772
|
}
|
|
40773
40773
|
const R = () => createAsyncThunk(`${t}/executeQuery`, S, {
|
|
40774
40774
|
getPendingMeta({
|
|
40775
40775
|
arg: F
|
|
40776
40776
|
}) {
|
|
40777
|
-
const
|
|
40777
|
+
const L = n[F.endpointName];
|
|
40778
40778
|
return addShouldAutoBatch({
|
|
40779
40779
|
startedTimeStamp: Date.now(),
|
|
40780
|
-
...isInfiniteQueryDefinition$1(
|
|
40780
|
+
...isInfiniteQueryDefinition$1(L) ? {
|
|
40781
40781
|
direction: F.direction
|
|
40782
40782
|
} : {}
|
|
40783
40783
|
});
|
|
40784
40784
|
},
|
|
40785
40785
|
condition(F, {
|
|
40786
|
-
getState:
|
|
40786
|
+
getState: L
|
|
40787
40787
|
}) {
|
|
40788
40788
|
var J;
|
|
40789
|
-
const q =
|
|
40789
|
+
const q = L(), G = u.selectQueryEntry(q, F.queryCacheKey), U = G == null ? void 0 : G.fulfilledTimeStamp, Q = F.originalArgs, H = G == null ? void 0 : G.originalArgs, z = n[F.endpointName], W = F.direction;
|
|
40790
40790
|
return isUpsertQuery(F) ? !0 : (G == null ? void 0 : G.status) === "pending" ? !1 : T(F, q) || isQueryDefinition$1(z) && ((J = z == null ? void 0 : z.forceRefetch) != null && J.call(z, {
|
|
40791
40791
|
currentArg: Q,
|
|
40792
40792
|
previousArg: H,
|
|
@@ -40801,8 +40801,8 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
40801
40801
|
startedTimeStamp: Date.now()
|
|
40802
40802
|
});
|
|
40803
40803
|
}
|
|
40804
|
-
}), N = (B) => "force" in B, O = (B) => "ifOlderThan" in B, D = (B, F,
|
|
40805
|
-
const U = N(
|
|
40804
|
+
}), N = (B) => "force" in B, O = (B) => "ifOlderThan" in B, D = (B, F, L) => (q, G) => {
|
|
40805
|
+
const U = N(L) && L.force, Q = O(L) && L.ifOlderThan, H = (W = !0) => {
|
|
40806
40806
|
const J = {
|
|
40807
40807
|
forceRefetch: W,
|
|
40808
40808
|
isPrefetch: !0
|
|
@@ -40823,11 +40823,11 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
40823
40823
|
};
|
|
40824
40824
|
function V(B) {
|
|
40825
40825
|
return (F) => {
|
|
40826
|
-
var
|
|
40827
|
-
return ((q = (
|
|
40826
|
+
var L, q;
|
|
40827
|
+
return ((q = (L = F == null ? void 0 : F.meta) == null ? void 0 : L.arg) == null ? void 0 : q.endpointName) === B;
|
|
40828
40828
|
};
|
|
40829
40829
|
}
|
|
40830
|
-
function
|
|
40830
|
+
function j(B, F) {
|
|
40831
40831
|
return {
|
|
40832
40832
|
matchPending: isAllOf(isPending(B), V(F)),
|
|
40833
40833
|
matchFulfilled: isAllOf(isFulfilled(B), V(F)),
|
|
@@ -40842,7 +40842,7 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
40842
40842
|
updateQueryData: _,
|
|
40843
40843
|
upsertQueryData: E,
|
|
40844
40844
|
patchQueryData: m,
|
|
40845
|
-
buildMatchThunkActions:
|
|
40845
|
+
buildMatchThunkActions: j
|
|
40846
40846
|
};
|
|
40847
40847
|
}
|
|
40848
40848
|
function getNextPageParam(t, {
|
|
@@ -40889,49 +40889,49 @@ function buildSlice({
|
|
|
40889
40889
|
config: p
|
|
40890
40890
|
}) {
|
|
40891
40891
|
const m = createAction(`${t}/resetApiState`);
|
|
40892
|
-
function g(V,
|
|
40893
|
-
var
|
|
40894
|
-
V[
|
|
40892
|
+
function g(V, j, B, F) {
|
|
40893
|
+
var L;
|
|
40894
|
+
V[L = j.queryCacheKey] ?? (V[L] = {
|
|
40895
40895
|
status: "uninitialized",
|
|
40896
|
-
endpointName:
|
|
40897
|
-
}), updateQuerySubstateIfExists(V,
|
|
40896
|
+
endpointName: j.endpointName
|
|
40897
|
+
}), updateQuerySubstateIfExists(V, j.queryCacheKey, (q) => {
|
|
40898
40898
|
q.status = "pending", q.requestId = B && q.requestId ? (
|
|
40899
40899
|
// for `upsertQuery` **updates**, keep the current `requestId`
|
|
40900
40900
|
q.requestId
|
|
40901
40901
|
) : (
|
|
40902
40902
|
// for normal queries or `upsertQuery` **inserts** always update the `requestId`
|
|
40903
40903
|
F.requestId
|
|
40904
|
-
),
|
|
40904
|
+
), j.originalArgs !== void 0 && (q.originalArgs = j.originalArgs), q.startedTimeStamp = F.startedTimeStamp;
|
|
40905
40905
|
const G = o[F.arg.endpointName];
|
|
40906
|
-
isInfiniteQueryDefinition$1(G) && "direction" in
|
|
40906
|
+
isInfiniteQueryDefinition$1(G) && "direction" in j && (q.direction = j.direction);
|
|
40907
40907
|
});
|
|
40908
40908
|
}
|
|
40909
|
-
function b(V,
|
|
40910
|
-
updateQuerySubstateIfExists(V,
|
|
40911
|
-
if (
|
|
40909
|
+
function b(V, j, B, F) {
|
|
40910
|
+
updateQuerySubstateIfExists(V, j.arg.queryCacheKey, (L) => {
|
|
40911
|
+
if (L.requestId !== j.requestId && !F) return;
|
|
40912
40912
|
const {
|
|
40913
40913
|
merge: q
|
|
40914
|
-
} = o[
|
|
40915
|
-
if (
|
|
40916
|
-
if (
|
|
40914
|
+
} = o[j.arg.endpointName];
|
|
40915
|
+
if (L.status = "fulfilled", q)
|
|
40916
|
+
if (L.data !== void 0) {
|
|
40917
40917
|
const {
|
|
40918
40918
|
fulfilledTimeStamp: G,
|
|
40919
40919
|
arg: U,
|
|
40920
40920
|
baseQueryMeta: Q,
|
|
40921
40921
|
requestId: H
|
|
40922
|
-
} =
|
|
40923
|
-
let z = produce(
|
|
40922
|
+
} = j;
|
|
40923
|
+
let z = produce(L.data, (W) => q(W, B, {
|
|
40924
40924
|
arg: U.originalArgs,
|
|
40925
40925
|
baseQueryMeta: Q,
|
|
40926
40926
|
fulfilledTimeStamp: G,
|
|
40927
40927
|
requestId: H
|
|
40928
40928
|
}));
|
|
40929
|
-
|
|
40929
|
+
L.data = z;
|
|
40930
40930
|
} else
|
|
40931
|
-
|
|
40931
|
+
L.data = B;
|
|
40932
40932
|
else
|
|
40933
|
-
|
|
40934
|
-
delete
|
|
40933
|
+
L.data = o[j.arg.endpointName].structuralSharing ?? !0 ? copyWithStructuralSharing(isDraft(L.data) ? original(L.data) : L.data, B) : B;
|
|
40934
|
+
delete L.error, L.fulfilledTimeStamp = j.fulfilledTimeStamp;
|
|
40935
40935
|
});
|
|
40936
40936
|
}
|
|
40937
40937
|
const _ = createSlice({
|
|
@@ -40941,33 +40941,33 @@ function buildSlice({
|
|
|
40941
40941
|
removeQueryResult: {
|
|
40942
40942
|
reducer(V, {
|
|
40943
40943
|
payload: {
|
|
40944
|
-
queryCacheKey:
|
|
40944
|
+
queryCacheKey: j
|
|
40945
40945
|
}
|
|
40946
40946
|
}) {
|
|
40947
|
-
delete V[
|
|
40947
|
+
delete V[j];
|
|
40948
40948
|
},
|
|
40949
40949
|
prepare: prepareAutoBatched()
|
|
40950
40950
|
},
|
|
40951
40951
|
cacheEntriesUpserted: {
|
|
40952
|
-
reducer(V,
|
|
40953
|
-
for (const B of
|
|
40952
|
+
reducer(V, j) {
|
|
40953
|
+
for (const B of j.payload) {
|
|
40954
40954
|
const {
|
|
40955
40955
|
queryDescription: F,
|
|
40956
|
-
value:
|
|
40956
|
+
value: L
|
|
40957
40957
|
} = B;
|
|
40958
40958
|
g(V, F, !0, {
|
|
40959
40959
|
arg: F,
|
|
40960
|
-
requestId:
|
|
40961
|
-
startedTimeStamp:
|
|
40960
|
+
requestId: j.meta.requestId,
|
|
40961
|
+
startedTimeStamp: j.meta.timestamp
|
|
40962
40962
|
}), b(
|
|
40963
40963
|
V,
|
|
40964
40964
|
{
|
|
40965
40965
|
arg: F,
|
|
40966
|
-
requestId:
|
|
40967
|
-
fulfilledTimeStamp:
|
|
40966
|
+
requestId: j.meta.requestId,
|
|
40967
|
+
fulfilledTimeStamp: j.meta.timestamp,
|
|
40968
40968
|
baseQueryMeta: {}
|
|
40969
40969
|
},
|
|
40970
|
-
|
|
40970
|
+
L,
|
|
40971
40971
|
// We know we're upserting here
|
|
40972
40972
|
!0
|
|
40973
40973
|
);
|
|
@@ -40976,19 +40976,19 @@ function buildSlice({
|
|
|
40976
40976
|
prepare: (V) => ({
|
|
40977
40977
|
payload: V.map((F) => {
|
|
40978
40978
|
const {
|
|
40979
|
-
endpointName:
|
|
40979
|
+
endpointName: L,
|
|
40980
40980
|
arg: q,
|
|
40981
40981
|
value: G
|
|
40982
|
-
} = F, U = o[
|
|
40982
|
+
} = F, U = o[L];
|
|
40983
40983
|
return {
|
|
40984
40984
|
queryDescription: {
|
|
40985
40985
|
type: "query",
|
|
40986
|
-
endpointName:
|
|
40986
|
+
endpointName: L,
|
|
40987
40987
|
originalArgs: F.arg,
|
|
40988
40988
|
queryCacheKey: i({
|
|
40989
40989
|
queryArgs: q,
|
|
40990
40990
|
endpointDefinition: U,
|
|
40991
|
-
endpointName:
|
|
40991
|
+
endpointName: L
|
|
40992
40992
|
})
|
|
40993
40993
|
},
|
|
40994
40994
|
value: G
|
|
@@ -41004,11 +41004,11 @@ function buildSlice({
|
|
|
41004
41004
|
queryResultPatched: {
|
|
41005
41005
|
reducer(V, {
|
|
41006
41006
|
payload: {
|
|
41007
|
-
queryCacheKey:
|
|
41007
|
+
queryCacheKey: j,
|
|
41008
41008
|
patches: B
|
|
41009
41009
|
}
|
|
41010
41010
|
}) {
|
|
41011
|
-
updateQuerySubstateIfExists(V,
|
|
41011
|
+
updateQuerySubstateIfExists(V, j, (F) => {
|
|
41012
41012
|
F.data = applyPatches(F.data, B.concat());
|
|
41013
41013
|
});
|
|
41014
41014
|
},
|
|
@@ -41016,42 +41016,42 @@ function buildSlice({
|
|
|
41016
41016
|
}
|
|
41017
41017
|
},
|
|
41018
41018
|
extraReducers(V) {
|
|
41019
|
-
V.addCase(e.pending, (
|
|
41019
|
+
V.addCase(e.pending, (j, {
|
|
41020
41020
|
meta: B,
|
|
41021
41021
|
meta: {
|
|
41022
41022
|
arg: F
|
|
41023
41023
|
}
|
|
41024
41024
|
}) => {
|
|
41025
|
-
const
|
|
41026
|
-
g(
|
|
41027
|
-
}).addCase(e.fulfilled, (
|
|
41025
|
+
const L = isUpsertQuery(F);
|
|
41026
|
+
g(j, F, L, B);
|
|
41027
|
+
}).addCase(e.fulfilled, (j, {
|
|
41028
41028
|
meta: B,
|
|
41029
41029
|
payload: F
|
|
41030
41030
|
}) => {
|
|
41031
|
-
const
|
|
41032
|
-
b(
|
|
41033
|
-
}).addCase(e.rejected, (
|
|
41031
|
+
const L = isUpsertQuery(B.arg);
|
|
41032
|
+
b(j, B, F, L);
|
|
41033
|
+
}).addCase(e.rejected, (j, {
|
|
41034
41034
|
meta: {
|
|
41035
41035
|
condition: B,
|
|
41036
41036
|
arg: F,
|
|
41037
|
-
requestId:
|
|
41037
|
+
requestId: L
|
|
41038
41038
|
},
|
|
41039
41039
|
error: q,
|
|
41040
41040
|
payload: G
|
|
41041
41041
|
}) => {
|
|
41042
|
-
updateQuerySubstateIfExists(
|
|
41042
|
+
updateQuerySubstateIfExists(j, F.queryCacheKey, (U) => {
|
|
41043
41043
|
if (!B) {
|
|
41044
|
-
if (U.requestId !==
|
|
41044
|
+
if (U.requestId !== L) return;
|
|
41045
41045
|
U.status = "rejected", U.error = G ?? q;
|
|
41046
41046
|
}
|
|
41047
41047
|
});
|
|
41048
|
-
}).addMatcher(d, (
|
|
41048
|
+
}).addMatcher(d, (j, B) => {
|
|
41049
41049
|
const {
|
|
41050
41050
|
queries: F
|
|
41051
41051
|
} = u(B);
|
|
41052
|
-
for (const [
|
|
41052
|
+
for (const [L, q] of Object.entries(F))
|
|
41053
41053
|
// do not rehydrate entries that were currently in flight.
|
|
41054
|
-
((q == null ? void 0 : q.status) === "fulfilled" || (q == null ? void 0 : q.status) === "rejected") && (L
|
|
41054
|
+
((q == null ? void 0 : q.status) === "fulfilled" || (q == null ? void 0 : q.status) === "rejected") && (j[L] = q);
|
|
41055
41055
|
});
|
|
41056
41056
|
}
|
|
41057
41057
|
}), E = createSlice({
|
|
@@ -41060,52 +41060,52 @@ function buildSlice({
|
|
|
41060
41060
|
reducers: {
|
|
41061
41061
|
removeMutationResult: {
|
|
41062
41062
|
reducer(V, {
|
|
41063
|
-
payload:
|
|
41063
|
+
payload: j
|
|
41064
41064
|
}) {
|
|
41065
|
-
const B = getMutationCacheKey(
|
|
41065
|
+
const B = getMutationCacheKey(j);
|
|
41066
41066
|
B in V && delete V[B];
|
|
41067
41067
|
},
|
|
41068
41068
|
prepare: prepareAutoBatched()
|
|
41069
41069
|
}
|
|
41070
41070
|
},
|
|
41071
41071
|
extraReducers(V) {
|
|
41072
|
-
V.addCase(n.pending, (
|
|
41072
|
+
V.addCase(n.pending, (j, {
|
|
41073
41073
|
meta: B,
|
|
41074
41074
|
meta: {
|
|
41075
41075
|
requestId: F,
|
|
41076
|
-
arg:
|
|
41076
|
+
arg: L,
|
|
41077
41077
|
startedTimeStamp: q
|
|
41078
41078
|
}
|
|
41079
41079
|
}) => {
|
|
41080
|
-
|
|
41080
|
+
L.track && (j[getMutationCacheKey(B)] = {
|
|
41081
41081
|
requestId: F,
|
|
41082
41082
|
status: "pending",
|
|
41083
|
-
endpointName:
|
|
41083
|
+
endpointName: L.endpointName,
|
|
41084
41084
|
startedTimeStamp: q
|
|
41085
41085
|
});
|
|
41086
|
-
}).addCase(n.fulfilled, (
|
|
41086
|
+
}).addCase(n.fulfilled, (j, {
|
|
41087
41087
|
payload: B,
|
|
41088
41088
|
meta: F
|
|
41089
41089
|
}) => {
|
|
41090
|
-
F.arg.track && updateMutationSubstateIfExists(
|
|
41091
|
-
|
|
41090
|
+
F.arg.track && updateMutationSubstateIfExists(j, F, (L) => {
|
|
41091
|
+
L.requestId === F.requestId && (L.status = "fulfilled", L.data = B, L.fulfilledTimeStamp = F.fulfilledTimeStamp);
|
|
41092
41092
|
});
|
|
41093
|
-
}).addCase(n.rejected, (
|
|
41093
|
+
}).addCase(n.rejected, (j, {
|
|
41094
41094
|
payload: B,
|
|
41095
41095
|
error: F,
|
|
41096
|
-
meta:
|
|
41096
|
+
meta: L
|
|
41097
41097
|
}) => {
|
|
41098
|
-
|
|
41099
|
-
q.requestId ===
|
|
41098
|
+
L.arg.track && updateMutationSubstateIfExists(j, L, (q) => {
|
|
41099
|
+
q.requestId === L.requestId && (q.status = "rejected", q.error = B ?? F);
|
|
41100
41100
|
});
|
|
41101
|
-
}).addMatcher(d, (
|
|
41101
|
+
}).addMatcher(d, (j, B) => {
|
|
41102
41102
|
const {
|
|
41103
41103
|
mutations: F
|
|
41104
41104
|
} = u(B);
|
|
41105
|
-
for (const [
|
|
41105
|
+
for (const [L, q] of Object.entries(F))
|
|
41106
41106
|
// do not rehydrate entries that were currently in flight.
|
|
41107
41107
|
((q == null ? void 0 : q.status) === "fulfilled" || (q == null ? void 0 : q.status) === "rejected") && // only rehydrate endpoints that were persisted using a `fixedCacheKey`
|
|
41108
|
-
|
|
41108
|
+
L !== (q == null ? void 0 : q.requestId) && (j[L] = q);
|
|
41109
41109
|
});
|
|
41110
41110
|
}
|
|
41111
41111
|
}), C = {
|
|
@@ -41116,18 +41116,18 @@ function buildSlice({
|
|
|
41116
41116
|
initialState: C,
|
|
41117
41117
|
reducers: {
|
|
41118
41118
|
updateProvidedBy: {
|
|
41119
|
-
reducer(V,
|
|
41120
|
-
var B, F,
|
|
41119
|
+
reducer(V, j) {
|
|
41120
|
+
var B, F, L;
|
|
41121
41121
|
for (const {
|
|
41122
41122
|
queryCacheKey: q,
|
|
41123
41123
|
providedTags: G
|
|
41124
|
-
} of
|
|
41124
|
+
} of j.payload) {
|
|
41125
41125
|
T(V, q);
|
|
41126
41126
|
for (const {
|
|
41127
41127
|
type: U,
|
|
41128
41128
|
id: Q
|
|
41129
41129
|
} of G) {
|
|
41130
|
-
const H = (F = (B = V.tags)[U] ?? (B[U] = {}))[
|
|
41130
|
+
const H = (F = (B = V.tags)[U] ?? (B[U] = {}))[L = Q || "__internal_without_id"] ?? (F[L] = []);
|
|
41131
41131
|
H.includes(q) || H.push(q);
|
|
41132
41132
|
}
|
|
41133
41133
|
V.keys[q] = G;
|
|
@@ -41137,28 +41137,28 @@ function buildSlice({
|
|
|
41137
41137
|
}
|
|
41138
41138
|
},
|
|
41139
41139
|
extraReducers(V) {
|
|
41140
|
-
V.addCase(_.actions.removeQueryResult, (
|
|
41140
|
+
V.addCase(_.actions.removeQueryResult, (j, {
|
|
41141
41141
|
payload: {
|
|
41142
41142
|
queryCacheKey: B
|
|
41143
41143
|
}
|
|
41144
41144
|
}) => {
|
|
41145
|
-
T(
|
|
41146
|
-
}).addMatcher(d, (
|
|
41147
|
-
var
|
|
41145
|
+
T(j, B);
|
|
41146
|
+
}).addMatcher(d, (j, B) => {
|
|
41147
|
+
var L, q, G;
|
|
41148
41148
|
const {
|
|
41149
41149
|
provided: F
|
|
41150
41150
|
} = u(B);
|
|
41151
41151
|
for (const [U, Q] of Object.entries(F))
|
|
41152
41152
|
for (const [H, z] of Object.entries(Q)) {
|
|
41153
|
-
const W = (q = (
|
|
41153
|
+
const W = (q = (L = j.tags)[U] ?? (L[U] = {}))[G = H || "__internal_without_id"] ?? (q[G] = []);
|
|
41154
41154
|
for (const J of z)
|
|
41155
41155
|
W.includes(J) || W.push(J);
|
|
41156
41156
|
}
|
|
41157
|
-
}).addMatcher(isAnyOf(isFulfilled(e), isRejectedWithValue(e)), (
|
|
41158
|
-
R(
|
|
41159
|
-
}).addMatcher(_.actions.cacheEntriesUpserted.match, (
|
|
41157
|
+
}).addMatcher(isAnyOf(isFulfilled(e), isRejectedWithValue(e)), (j, B) => {
|
|
41158
|
+
R(j, [B]);
|
|
41159
|
+
}).addMatcher(_.actions.cacheEntriesUpserted.match, (j, B) => {
|
|
41160
41160
|
const F = B.payload.map(({
|
|
41161
|
-
queryDescription:
|
|
41161
|
+
queryDescription: L,
|
|
41162
41162
|
value: q
|
|
41163
41163
|
}) => ({
|
|
41164
41164
|
type: "UNKNOWN",
|
|
@@ -41166,30 +41166,30 @@ function buildSlice({
|
|
|
41166
41166
|
meta: {
|
|
41167
41167
|
requestStatus: "fulfilled",
|
|
41168
41168
|
requestId: "UNKNOWN",
|
|
41169
|
-
arg:
|
|
41169
|
+
arg: L
|
|
41170
41170
|
}
|
|
41171
41171
|
}));
|
|
41172
|
-
R(
|
|
41172
|
+
R(j, F);
|
|
41173
41173
|
});
|
|
41174
41174
|
}
|
|
41175
41175
|
});
|
|
41176
|
-
function T(V,
|
|
41176
|
+
function T(V, j) {
|
|
41177
41177
|
var F;
|
|
41178
|
-
const B = V.keys[
|
|
41179
|
-
for (const
|
|
41180
|
-
const q =
|
|
41181
|
-
U && (V.tags[q][G] = U.filter((Q) => Q !==
|
|
41178
|
+
const B = V.keys[j] ?? [];
|
|
41179
|
+
for (const L of B) {
|
|
41180
|
+
const q = L.type, G = L.id ?? "__internal_without_id", U = (F = V.tags[q]) == null ? void 0 : F[G];
|
|
41181
|
+
U && (V.tags[q][G] = U.filter((Q) => Q !== j));
|
|
41182
41182
|
}
|
|
41183
|
-
delete V.keys[
|
|
41183
|
+
delete V.keys[j];
|
|
41184
41184
|
}
|
|
41185
|
-
function R(V,
|
|
41186
|
-
const B =
|
|
41187
|
-
const
|
|
41185
|
+
function R(V, j) {
|
|
41186
|
+
const B = j.map((F) => {
|
|
41187
|
+
const L = calculateProvidedByThunk(F, "providesTags", o, f), {
|
|
41188
41188
|
queryCacheKey: q
|
|
41189
41189
|
} = F.meta.arg;
|
|
41190
41190
|
return {
|
|
41191
41191
|
queryCacheKey: q,
|
|
41192
|
-
providedTags:
|
|
41192
|
+
providedTags: L
|
|
41193
41193
|
};
|
|
41194
41194
|
});
|
|
41195
41195
|
S.caseReducers.updateProvidedBy(V, S.actions.updateProvidedBy(B));
|
|
@@ -41198,9 +41198,9 @@ function buildSlice({
|
|
|
41198
41198
|
name: `${t}/subscriptions`,
|
|
41199
41199
|
initialState,
|
|
41200
41200
|
reducers: {
|
|
41201
|
-
updateSubscriptionOptions(V,
|
|
41201
|
+
updateSubscriptionOptions(V, j) {
|
|
41202
41202
|
},
|
|
41203
|
-
unsubscribeQueryResult(V,
|
|
41203
|
+
unsubscribeQueryResult(V, j) {
|
|
41204
41204
|
},
|
|
41205
41205
|
internal_getRTKQSubscriptions() {
|
|
41206
41206
|
}
|
|
@@ -41210,8 +41210,8 @@ function buildSlice({
|
|
|
41210
41210
|
initialState,
|
|
41211
41211
|
reducers: {
|
|
41212
41212
|
subscriptionsUpdated: {
|
|
41213
|
-
reducer(V,
|
|
41214
|
-
return applyPatches(V,
|
|
41213
|
+
reducer(V, j) {
|
|
41214
|
+
return applyPatches(V, j.payload);
|
|
41215
41215
|
},
|
|
41216
41216
|
prepare: prepareAutoBatched()
|
|
41217
41217
|
}
|
|
@@ -41226,22 +41226,22 @@ function buildSlice({
|
|
|
41226
41226
|
},
|
|
41227
41227
|
reducers: {
|
|
41228
41228
|
middlewareRegistered(V, {
|
|
41229
|
-
payload:
|
|
41229
|
+
payload: j
|
|
41230
41230
|
}) {
|
|
41231
|
-
V.middlewareRegistered = V.middlewareRegistered === "conflict" || l !==
|
|
41231
|
+
V.middlewareRegistered = V.middlewareRegistered === "conflict" || l !== j ? "conflict" : !0;
|
|
41232
41232
|
}
|
|
41233
41233
|
},
|
|
41234
41234
|
extraReducers: (V) => {
|
|
41235
|
-
V.addCase(onOnline, (
|
|
41236
|
-
|
|
41237
|
-
}).addCase(onOffline, (
|
|
41238
|
-
|
|
41239
|
-
}).addCase(onFocus, (
|
|
41240
|
-
|
|
41241
|
-
}).addCase(onFocusLost, (
|
|
41242
|
-
|
|
41243
|
-
}).addMatcher(d, (
|
|
41244
|
-
...
|
|
41235
|
+
V.addCase(onOnline, (j) => {
|
|
41236
|
+
j.online = !0;
|
|
41237
|
+
}).addCase(onOffline, (j) => {
|
|
41238
|
+
j.online = !1;
|
|
41239
|
+
}).addCase(onFocus, (j) => {
|
|
41240
|
+
j.focused = !0;
|
|
41241
|
+
}).addCase(onFocusLost, (j) => {
|
|
41242
|
+
j.focused = !1;
|
|
41243
|
+
}).addMatcher(d, (j) => ({
|
|
41244
|
+
...j
|
|
41245
41245
|
}));
|
|
41246
41246
|
}
|
|
41247
41247
|
}), N = combineReducers({
|
|
@@ -41250,7 +41250,7 @@ function buildSlice({
|
|
|
41250
41250
|
provided: S.reducer,
|
|
41251
41251
|
subscriptions: M.reducer,
|
|
41252
41252
|
config: A.reducer
|
|
41253
|
-
}), O = (V,
|
|
41253
|
+
}), O = (V, j) => N(m.match(j) ? void 0 : V, j), D = {
|
|
41254
41254
|
...A.actions,
|
|
41255
41255
|
..._.actions,
|
|
41256
41256
|
...I.actions,
|
|
@@ -41343,17 +41343,17 @@ function buildSelectors({
|
|
|
41343
41343
|
...getRequestStatusFlags(O.status)
|
|
41344
41344
|
}, {
|
|
41345
41345
|
isLoading: V,
|
|
41346
|
-
isError:
|
|
41346
|
+
isError: j,
|
|
41347
41347
|
direction: B
|
|
41348
|
-
} = D, F = B === "forward",
|
|
41348
|
+
} = D, F = B === "forward", L = B === "backward";
|
|
41349
41349
|
return {
|
|
41350
41350
|
...D,
|
|
41351
41351
|
hasNextPage: T(A, D.data),
|
|
41352
41352
|
hasPreviousPage: R(A, D.data),
|
|
41353
41353
|
isFetchingNextPage: V && F,
|
|
41354
|
-
isFetchingPreviousPage: V &&
|
|
41355
|
-
isFetchNextPageError:
|
|
41356
|
-
isFetchPreviousPageError:
|
|
41354
|
+
isFetchingPreviousPage: V && L,
|
|
41355
|
+
isFetchNextPageError: j && F,
|
|
41356
|
+
isFetchPreviousPageError: j && L
|
|
41357
41357
|
};
|
|
41358
41358
|
}
|
|
41359
41359
|
return g(I, M, N);
|
|
@@ -41380,8 +41380,8 @@ function buildSelectors({
|
|
|
41380
41380
|
// no id: invalidate all queries that provide this type
|
|
41381
41381
|
flatten(Object.values(D))
|
|
41382
41382
|
)) ?? [];
|
|
41383
|
-
for (const
|
|
41384
|
-
N.add(
|
|
41383
|
+
for (const j of V)
|
|
41384
|
+
N.add(j);
|
|
41385
41385
|
}
|
|
41386
41386
|
return flatten(Array.from(N.values()).map((O) => {
|
|
41387
41387
|
const D = A.queries[O];
|
|
@@ -41713,8 +41713,8 @@ var THIRTY_TWO_BIT_MAX_TIMER_SECONDS = 2147483647 / 1e3 - 1, buildCacheCollectio
|
|
|
41713
41713
|
const E = (T, R, I) => {
|
|
41714
41714
|
const M = C(T);
|
|
41715
41715
|
function A(N, O, D, V) {
|
|
41716
|
-
const
|
|
41717
|
-
!
|
|
41716
|
+
const j = u(I, O), B = u(R.getState(), O);
|
|
41717
|
+
!j && B && S(N, V, O, R, D);
|
|
41718
41718
|
}
|
|
41719
41719
|
if (i.pending.match(T))
|
|
41720
41720
|
A(T.meta.arg.endpointName, M, T.meta.requestId, T.meta.arg.originalArgs);
|
|
@@ -41726,9 +41726,9 @@ var THIRTY_TWO_BIT_MAX_TIMER_SECONDS = 2147483647 / 1e3 - 1, buildCacheCollectio
|
|
|
41726
41726
|
const {
|
|
41727
41727
|
endpointName: D,
|
|
41728
41728
|
originalArgs: V,
|
|
41729
|
-
queryCacheKey:
|
|
41729
|
+
queryCacheKey: j
|
|
41730
41730
|
} = N;
|
|
41731
|
-
A(D,
|
|
41731
|
+
A(D, j, T.meta.requestId, V), b(j, O, {});
|
|
41732
41732
|
}
|
|
41733
41733
|
else if (o.pending.match(T))
|
|
41734
41734
|
R.getState()[e].mutations[M] && S(T.meta.arg.endpointName, T.meta.arg.originalArgs, M, R, T.meta.requestId);
|
|
@@ -41748,22 +41748,22 @@ var THIRTY_TWO_BIT_MAX_TIMER_SECONDS = 2147483647 / 1e3 - 1, buildCacheCollectio
|
|
|
41748
41748
|
if (!O) return;
|
|
41749
41749
|
const D = {}, V = new Promise((G) => {
|
|
41750
41750
|
D.cacheEntryRemoved = G;
|
|
41751
|
-
}),
|
|
41751
|
+
}), j = Promise.race([new Promise((G) => {
|
|
41752
41752
|
D.valueResolved = G;
|
|
41753
41753
|
}), V.then(() => {
|
|
41754
41754
|
throw neverResolvedError;
|
|
41755
41755
|
})]);
|
|
41756
|
-
|
|
41756
|
+
j.catch(() => {
|
|
41757
41757
|
}), g[I] = D;
|
|
41758
|
-
const B = t.endpoints[T].select(isAnyQueryDefinition(N) ? R : I), F = M.dispatch((G, U, Q) => Q),
|
|
41758
|
+
const B = t.endpoints[T].select(isAnyQueryDefinition(N) ? R : I), F = M.dispatch((G, U, Q) => Q), L = {
|
|
41759
41759
|
...M,
|
|
41760
41760
|
getCacheEntry: () => B(M.getState()),
|
|
41761
41761
|
requestId: A,
|
|
41762
41762
|
extra: F,
|
|
41763
41763
|
updateCachedData: isAnyQueryDefinition(N) ? (G) => M.dispatch(t.util.updateQueryData(T, R, G)) : void 0,
|
|
41764
|
-
cacheDataLoaded:
|
|
41764
|
+
cacheDataLoaded: j,
|
|
41765
41765
|
cacheEntryRemoved: V
|
|
41766
|
-
}, q = O(R,
|
|
41766
|
+
}, q = O(R, L);
|
|
41767
41767
|
Promise.resolve(q).catch((G) => {
|
|
41768
41768
|
if (G !== neverResolvedError)
|
|
41769
41769
|
throw G;
|
|
@@ -42079,10 +42079,10 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
42079
42079
|
infiniteQueryThunk: O,
|
|
42080
42080
|
mutationThunk: D,
|
|
42081
42081
|
patchQueryData: V,
|
|
42082
|
-
updateQueryData:
|
|
42082
|
+
updateQueryData: j,
|
|
42083
42083
|
upsertQueryData: B,
|
|
42084
42084
|
prefetch: F,
|
|
42085
|
-
buildMatchThunkActions:
|
|
42085
|
+
buildMatchThunkActions: L
|
|
42086
42086
|
} = buildThunks({
|
|
42087
42087
|
baseQuery: n,
|
|
42088
42088
|
reducerPath: o,
|
|
@@ -42115,7 +42115,7 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
42115
42115
|
});
|
|
42116
42116
|
safeAssign$1(e.util, {
|
|
42117
42117
|
patchQueryData: V,
|
|
42118
|
-
updateQueryData:
|
|
42118
|
+
updateQueryData: j,
|
|
42119
42119
|
upsertQueryData: B,
|
|
42120
42120
|
prefetch: F,
|
|
42121
42121
|
resetApiState: G.resetApiState,
|
|
@@ -42168,15 +42168,15 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
42168
42168
|
name: ie,
|
|
42169
42169
|
select: I(ie, ue),
|
|
42170
42170
|
initiate: H(ie, ue)
|
|
42171
|
-
},
|
|
42171
|
+
}, L(N, ie)), isMutationDefinition$1(ue) && safeAssign$1(ce, {
|
|
42172
42172
|
name: ie,
|
|
42173
42173
|
select: A(),
|
|
42174
42174
|
initiate: W(ie)
|
|
42175
|
-
},
|
|
42175
|
+
}, L(D, ie)), isInfiniteQueryDefinition$1(ue) && safeAssign$1(ce, {
|
|
42176
42176
|
name: ie,
|
|
42177
42177
|
select: M(ie, ue),
|
|
42178
42178
|
initiate: z(ie, ue)
|
|
42179
|
-
},
|
|
42179
|
+
}, L(N, ie));
|
|
42180
42180
|
}
|
|
42181
42181
|
};
|
|
42182
42182
|
}
|
|
@@ -42532,26 +42532,26 @@ function buildHooks({
|
|
|
42532
42532
|
if (A != null && A.endpointName && M.isUninitialized) {
|
|
42533
42533
|
const {
|
|
42534
42534
|
endpointName: F
|
|
42535
|
-
} = A,
|
|
42535
|
+
} = A, L = f.endpointDefinitions[F];
|
|
42536
42536
|
N !== skipToken && d({
|
|
42537
42537
|
queryArgs: A.originalArgs,
|
|
42538
|
-
endpointDefinition:
|
|
42538
|
+
endpointDefinition: L,
|
|
42539
42539
|
endpointName: F
|
|
42540
42540
|
}) === d({
|
|
42541
42541
|
queryArgs: N,
|
|
42542
|
-
endpointDefinition:
|
|
42542
|
+
endpointDefinition: L,
|
|
42543
42543
|
endpointName: F
|
|
42544
42544
|
}) && (A = void 0);
|
|
42545
42545
|
}
|
|
42546
42546
|
let O = M.isSuccess ? M.data : A == null ? void 0 : A.data;
|
|
42547
42547
|
O === void 0 && (O = M.data);
|
|
42548
|
-
const D = O !== void 0, V = M.isLoading,
|
|
42548
|
+
const D = O !== void 0, V = M.isLoading, j = (!A || A.isLoading || A.isUninitialized) && !D && V, B = M.isSuccess || D && (V && !(A != null && A.isError) || M.isUninitialized);
|
|
42549
42549
|
return {
|
|
42550
42550
|
...M,
|
|
42551
42551
|
data: O,
|
|
42552
42552
|
currentData: M.data,
|
|
42553
42553
|
isFetching: V,
|
|
42554
|
-
isLoading:
|
|
42554
|
+
isLoading: j,
|
|
42555
42555
|
isSuccess: B
|
|
42556
42556
|
};
|
|
42557
42557
|
}
|
|
@@ -42559,26 +42559,26 @@ function buildHooks({
|
|
|
42559
42559
|
if (A != null && A.endpointName && M.isUninitialized) {
|
|
42560
42560
|
const {
|
|
42561
42561
|
endpointName: F
|
|
42562
|
-
} = A,
|
|
42562
|
+
} = A, L = f.endpointDefinitions[F];
|
|
42563
42563
|
N !== skipToken && d({
|
|
42564
42564
|
queryArgs: A.originalArgs,
|
|
42565
|
-
endpointDefinition:
|
|
42565
|
+
endpointDefinition: L,
|
|
42566
42566
|
endpointName: F
|
|
42567
42567
|
}) === d({
|
|
42568
42568
|
queryArgs: N,
|
|
42569
|
-
endpointDefinition:
|
|
42569
|
+
endpointDefinition: L,
|
|
42570
42570
|
endpointName: F
|
|
42571
42571
|
}) && (A = void 0);
|
|
42572
42572
|
}
|
|
42573
42573
|
let O = M.isSuccess ? M.data : A == null ? void 0 : A.data;
|
|
42574
42574
|
O === void 0 && (O = M.data);
|
|
42575
|
-
const D = O !== void 0, V = M.isLoading,
|
|
42575
|
+
const D = O !== void 0, V = M.isLoading, j = (!A || A.isLoading || A.isUninitialized) && !D && V, B = M.isSuccess || V && D;
|
|
42576
42576
|
return {
|
|
42577
42577
|
...M,
|
|
42578
42578
|
data: O,
|
|
42579
42579
|
currentData: M.data,
|
|
42580
42580
|
isFetching: V,
|
|
42581
|
-
isLoading:
|
|
42581
|
+
isLoading: j,
|
|
42582
42582
|
isSuccess: B
|
|
42583
42583
|
};
|
|
42584
42584
|
}
|
|
@@ -42594,12 +42594,12 @@ function buildHooks({
|
|
|
42594
42594
|
refetchOnFocus: O,
|
|
42595
42595
|
refetchOnMountOrArgChange: D,
|
|
42596
42596
|
skip: V = !1,
|
|
42597
|
-
pollingInterval:
|
|
42597
|
+
pollingInterval: j = 0,
|
|
42598
42598
|
skipPollingIfUnfocused: B = !1,
|
|
42599
42599
|
...F
|
|
42600
42600
|
} = {}) {
|
|
42601
42601
|
const {
|
|
42602
|
-
initiate:
|
|
42602
|
+
initiate: L
|
|
42603
42603
|
} = t.endpoints[M], q = n(), G = useRef(void 0);
|
|
42604
42604
|
if (!G.current) {
|
|
42605
42605
|
const ie = q(t.internalActions.internal_getRTKQSubscriptions());
|
|
@@ -42621,7 +42621,7 @@ function buildHooks({
|
|
|
42621
42621
|
), Q = useShallowStableValue({
|
|
42622
42622
|
refetchOnReconnect: N,
|
|
42623
42623
|
refetchOnFocus: O,
|
|
42624
|
-
pollingInterval:
|
|
42624
|
+
pollingInterval: j,
|
|
42625
42625
|
skipPollingIfUnfocused: B
|
|
42626
42626
|
}), H = F.initialPageParam, z = useShallowStableValue(H), W = useRef(void 0);
|
|
42627
42627
|
let {
|
|
@@ -42642,7 +42642,7 @@ function buildHooks({
|
|
|
42642
42642
|
const ue = (ae = W.current) == null ? void 0 : ae.subscriptionOptions;
|
|
42643
42643
|
if (!ie || ie.arg !== U) {
|
|
42644
42644
|
ie == null || ie.unsubscribe();
|
|
42645
|
-
const ce = q(
|
|
42645
|
+
const ce = q(L(U, {
|
|
42646
42646
|
subscriptionOptions: Q,
|
|
42647
42647
|
forceRefetch: D,
|
|
42648
42648
|
...isInfiniteQueryDefinition(f.endpointDefinitions[M]) ? {
|
|
@@ -42651,7 +42651,7 @@ function buildHooks({
|
|
|
42651
42651
|
}));
|
|
42652
42652
|
W.current = ce;
|
|
42653
42653
|
} else Q !== ue && ie.updateSubscriptionOptions(Q);
|
|
42654
|
-
}, [q,
|
|
42654
|
+
}, [q, L, D, U, Q, le, z, M]), [W, q, L, Q];
|
|
42655
42655
|
}
|
|
42656
42656
|
function E(M, A) {
|
|
42657
42657
|
return (O, {
|
|
@@ -42659,15 +42659,15 @@ function buildHooks({
|
|
|
42659
42659
|
selectFromResult: V
|
|
42660
42660
|
} = {}) => {
|
|
42661
42661
|
const {
|
|
42662
|
-
select:
|
|
42663
|
-
} = t.endpoints[M], B = useStableQueryArgs(D ? skipToken : O, d, f.endpointDefinitions[M], M), F = useRef(void 0),
|
|
42662
|
+
select: j
|
|
42663
|
+
} = t.endpoints[M], B = useStableQueryArgs(D ? skipToken : O, d, f.endpointDefinitions[M], M), F = useRef(void 0), L = useMemo(() => (
|
|
42664
42664
|
// Normally ts-ignores are bad and should be avoided, but we're
|
|
42665
42665
|
// already casting this selector to be `Selector<any>` anyway,
|
|
42666
42666
|
// so the inconsistencies don't matter here
|
|
42667
42667
|
// @ts-ignore
|
|
42668
42668
|
u([
|
|
42669
42669
|
// @ts-ignore
|
|
42670
|
-
|
|
42670
|
+
j(B),
|
|
42671
42671
|
(H, z) => z,
|
|
42672
42672
|
(H) => B
|
|
42673
42673
|
], A, {
|
|
@@ -42675,11 +42675,11 @@ function buildHooks({
|
|
|
42675
42675
|
resultEqualityCheck: shallowEqual
|
|
42676
42676
|
}
|
|
42677
42677
|
})
|
|
42678
|
-
), [
|
|
42678
|
+
), [j, B]), q = useMemo(() => V ? u([L], V, {
|
|
42679
42679
|
devModeChecks: {
|
|
42680
42680
|
identityFunctionCheck: "never"
|
|
42681
42681
|
}
|
|
42682
|
-
}) :
|
|
42682
|
+
}) : L, [L, V]), G = i((H) => q(H, F.current), shallowEqual), U = o(), Q = L(U.getState(), F.current);
|
|
42683
42683
|
return useIsomorphicLayoutEffect(() => {
|
|
42684
42684
|
F.current = Q;
|
|
42685
42685
|
}, [Q]), G;
|
|
@@ -42697,25 +42697,25 @@ function buildHooks({
|
|
|
42697
42697
|
}
|
|
42698
42698
|
function T(M) {
|
|
42699
42699
|
const A = (D, V = {}) => {
|
|
42700
|
-
const [
|
|
42701
|
-
return C(
|
|
42700
|
+
const [j] = _(M, D, V);
|
|
42701
|
+
return C(j), useMemo(() => ({
|
|
42702
42702
|
/**
|
|
42703
42703
|
* A method to manually refetch data for the query
|
|
42704
42704
|
*/
|
|
42705
|
-
refetch: () => S(
|
|
42706
|
-
}), [
|
|
42705
|
+
refetch: () => S(j)
|
|
42706
|
+
}), [j]);
|
|
42707
42707
|
}, N = ({
|
|
42708
42708
|
refetchOnReconnect: D,
|
|
42709
42709
|
refetchOnFocus: V,
|
|
42710
|
-
pollingInterval:
|
|
42710
|
+
pollingInterval: j = 0,
|
|
42711
42711
|
skipPollingIfUnfocused: B = !1
|
|
42712
42712
|
} = {}) => {
|
|
42713
42713
|
const {
|
|
42714
42714
|
initiate: F
|
|
42715
|
-
} = t.endpoints[M],
|
|
42715
|
+
} = t.endpoints[M], L = n(), [q, G] = useState(UNINITIALIZED_VALUE), U = useRef(void 0), Q = useShallowStableValue({
|
|
42716
42716
|
refetchOnReconnect: D,
|
|
42717
42717
|
refetchOnFocus: V,
|
|
42718
|
-
pollingInterval:
|
|
42718
|
+
pollingInterval: j,
|
|
42719
42719
|
skipPollingIfUnfocused: B
|
|
42720
42720
|
});
|
|
42721
42721
|
p(() => {
|
|
@@ -42731,17 +42731,17 @@ function buildHooks({
|
|
|
42731
42731
|
let oe;
|
|
42732
42732
|
return e(() => {
|
|
42733
42733
|
var le;
|
|
42734
|
-
(le = U.current) == null || le.unsubscribe(), U.current = oe =
|
|
42734
|
+
(le = U.current) == null || le.unsubscribe(), U.current = oe = L(F(J, {
|
|
42735
42735
|
subscriptionOptions: H.current,
|
|
42736
42736
|
forceRefetch: !ne
|
|
42737
42737
|
})), G(J);
|
|
42738
42738
|
}), oe;
|
|
42739
|
-
}, [
|
|
42739
|
+
}, [L, F]), W = useCallback(() => {
|
|
42740
42740
|
var J, ne;
|
|
42741
|
-
(J = U.current) != null && J.queryCacheKey &&
|
|
42741
|
+
(J = U.current) != null && J.queryCacheKey && L(t.internalActions.removeQueryResult({
|
|
42742
42742
|
queryCacheKey: (ne = U.current) == null ? void 0 : ne.queryCacheKey
|
|
42743
42743
|
}));
|
|
42744
|
-
}, [
|
|
42744
|
+
}, [L]);
|
|
42745
42745
|
return useEffect(() => () => {
|
|
42746
42746
|
var J;
|
|
42747
42747
|
(J = U == null ? void 0 : U.current) == null || J.unsubscribe();
|
|
@@ -42756,47 +42756,47 @@ function buildHooks({
|
|
|
42756
42756
|
useQuerySubscription: A,
|
|
42757
42757
|
useLazyQuerySubscription: N,
|
|
42758
42758
|
useLazyQuery(D) {
|
|
42759
|
-
const [V,
|
|
42759
|
+
const [V, j, {
|
|
42760
42760
|
reset: B
|
|
42761
|
-
}] = N(D), F = O(
|
|
42761
|
+
}] = N(D), F = O(j, {
|
|
42762
42762
|
...D,
|
|
42763
|
-
skip:
|
|
42764
|
-
}),
|
|
42765
|
-
lastArg:
|
|
42766
|
-
}), [
|
|
42763
|
+
skip: j === UNINITIALIZED_VALUE
|
|
42764
|
+
}), L = useMemo(() => ({
|
|
42765
|
+
lastArg: j
|
|
42766
|
+
}), [j]);
|
|
42767
42767
|
return useMemo(() => [V, {
|
|
42768
42768
|
...F,
|
|
42769
42769
|
reset: B
|
|
42770
|
-
},
|
|
42770
|
+
}, L], [V, F, B, L]);
|
|
42771
42771
|
},
|
|
42772
42772
|
useQuery(D, V) {
|
|
42773
|
-
const
|
|
42773
|
+
const j = A(D, V), B = O(D, {
|
|
42774
42774
|
selectFromResult: D === skipToken || V != null && V.skip ? void 0 : noPendingQueryStateSelector,
|
|
42775
42775
|
...V
|
|
42776
42776
|
}), F = pick(B, ...COMMON_HOOK_DEBUG_FIELDS);
|
|
42777
42777
|
return useDebugValue(F), useMemo(() => ({
|
|
42778
42778
|
...B,
|
|
42779
|
-
...
|
|
42780
|
-
}), [B,
|
|
42779
|
+
...j
|
|
42780
|
+
}), [B, j]);
|
|
42781
42781
|
}
|
|
42782
42782
|
};
|
|
42783
42783
|
}
|
|
42784
42784
|
function R(M) {
|
|
42785
42785
|
const A = (O, D = {}) => {
|
|
42786
|
-
const [V,
|
|
42786
|
+
const [V, j, B, F] = _(M, O, D), L = useRef(F);
|
|
42787
42787
|
p(() => {
|
|
42788
|
-
|
|
42788
|
+
L.current = F;
|
|
42789
42789
|
}, [F]);
|
|
42790
42790
|
const q = useCallback(function(Q, H) {
|
|
42791
42791
|
let z;
|
|
42792
42792
|
return e(() => {
|
|
42793
42793
|
var W;
|
|
42794
|
-
(W = V.current) == null || W.unsubscribe(), V.current = z =
|
|
42795
|
-
subscriptionOptions:
|
|
42794
|
+
(W = V.current) == null || W.unsubscribe(), V.current = z = j(B(Q, {
|
|
42795
|
+
subscriptionOptions: L.current,
|
|
42796
42796
|
direction: H
|
|
42797
42797
|
}));
|
|
42798
42798
|
}), z;
|
|
42799
|
-
}, [V,
|
|
42799
|
+
}, [V, j, B]);
|
|
42800
42800
|
C(V);
|
|
42801
42801
|
const G = useStableQueryArgs(
|
|
42802
42802
|
D.skip ? skipToken : O,
|
|
@@ -42825,18 +42825,18 @@ function buildHooks({
|
|
|
42825
42825
|
useInfiniteQuery(O, D) {
|
|
42826
42826
|
const {
|
|
42827
42827
|
refetch: V,
|
|
42828
|
-
fetchNextPage:
|
|
42828
|
+
fetchNextPage: j,
|
|
42829
42829
|
fetchPreviousPage: B
|
|
42830
42830
|
} = A(O, D), F = N(O, {
|
|
42831
42831
|
selectFromResult: O === skipToken || D != null && D.skip ? void 0 : noPendingQueryStateSelector,
|
|
42832
42832
|
...D
|
|
42833
|
-
}),
|
|
42834
|
-
return useDebugValue(
|
|
42833
|
+
}), L = pick(F, ...COMMON_HOOK_DEBUG_FIELDS, "hasNextPage", "hasPreviousPage");
|
|
42834
|
+
return useDebugValue(L), useMemo(() => ({
|
|
42835
42835
|
...F,
|
|
42836
|
-
fetchNextPage:
|
|
42836
|
+
fetchNextPage: j,
|
|
42837
42837
|
fetchPreviousPage: B,
|
|
42838
42838
|
refetch: V
|
|
42839
|
-
}), [F,
|
|
42839
|
+
}), [F, j, B, V]);
|
|
42840
42840
|
}
|
|
42841
42841
|
};
|
|
42842
42842
|
}
|
|
@@ -42848,28 +42848,28 @@ function buildHooks({
|
|
|
42848
42848
|
const {
|
|
42849
42849
|
select: O,
|
|
42850
42850
|
initiate: D
|
|
42851
|
-
} = t.endpoints[M], V = n(), [
|
|
42851
|
+
} = t.endpoints[M], V = n(), [j, B] = useState();
|
|
42852
42852
|
useEffect(() => () => {
|
|
42853
|
-
|
|
42854
|
-
}, [
|
|
42853
|
+
j != null && j.arg.fixedCacheKey || j == null || j.reset();
|
|
42854
|
+
}, [j]);
|
|
42855
42855
|
const F = useCallback(function(J) {
|
|
42856
42856
|
const ne = V(D(J, {
|
|
42857
42857
|
fixedCacheKey: N
|
|
42858
42858
|
}));
|
|
42859
42859
|
return B(ne), ne;
|
|
42860
42860
|
}, [V, D, N]), {
|
|
42861
|
-
requestId:
|
|
42862
|
-
} =
|
|
42861
|
+
requestId: L
|
|
42862
|
+
} = j || {}, q = useMemo(() => O({
|
|
42863
42863
|
fixedCacheKey: N,
|
|
42864
|
-
requestId:
|
|
42865
|
-
}), [N,
|
|
42864
|
+
requestId: j == null ? void 0 : j.requestId
|
|
42865
|
+
}), [N, j, O]), G = useMemo(() => A ? u([q], A) : q, [A, q]), U = i(G, shallowEqual), Q = N == null ? j == null ? void 0 : j.arg.originalArgs : void 0, H = useCallback(() => {
|
|
42866
42866
|
e(() => {
|
|
42867
|
-
|
|
42868
|
-
requestId:
|
|
42867
|
+
j && B(void 0), N && V(t.internalActions.removeMutationResult({
|
|
42868
|
+
requestId: L,
|
|
42869
42869
|
fixedCacheKey: N
|
|
42870
42870
|
}));
|
|
42871
42871
|
});
|
|
42872
|
-
}, [V, N,
|
|
42872
|
+
}, [V, N, j, L]), z = pick(U, ...COMMON_HOOK_DEBUG_FIELDS, "endpointName");
|
|
42873
42873
|
useDebugValue(z);
|
|
42874
42874
|
const W = useMemo(() => ({
|
|
42875
42875
|
...U,
|
|
@@ -47441,9 +47441,9 @@ function generateContentConfigToMldev(t, e, n) {
|
|
|
47441
47441
|
const R = getValueByPath(e, [
|
|
47442
47442
|
"safetySettings"
|
|
47443
47443
|
]);
|
|
47444
|
-
n !== void 0 && R != null && (Array.isArray(R) ? setValueByPath(n, ["safetySettings"], R.map((
|
|
47444
|
+
n !== void 0 && R != null && (Array.isArray(R) ? setValueByPath(n, ["safetySettings"], R.map((j) => safetySettingToMldev(t, j))) : setValueByPath(n, ["safetySettings"], R));
|
|
47445
47445
|
const I = getValueByPath(e, ["tools"]);
|
|
47446
|
-
n !== void 0 && I != null && (Array.isArray(I) ? setValueByPath(n, ["tools"], tTools(t, tTools(t, I).map((
|
|
47446
|
+
n !== void 0 && I != null && (Array.isArray(I) ? setValueByPath(n, ["tools"], tTools(t, tTools(t, I).map((j) => toolToMldev(t, tTool(t, j))))) : setValueByPath(n, ["tools"], tTools(t, I)));
|
|
47447
47447
|
const M = getValueByPath(e, ["toolConfig"]);
|
|
47448
47448
|
if (n !== void 0 && M != null && setValueByPath(n, ["toolConfig"], toolConfigToMldev(t, M)), getValueByPath(e, ["labels"]) !== void 0)
|
|
47449
47449
|
throw new Error("labels parameter is not supported in Gemini API.");
|
|
@@ -47855,9 +47855,9 @@ function generateContentConfigToVertex(t, e, n) {
|
|
|
47855
47855
|
const I = getValueByPath(e, [
|
|
47856
47856
|
"safetySettings"
|
|
47857
47857
|
]);
|
|
47858
|
-
n !== void 0 && I != null && (Array.isArray(I) ? setValueByPath(n, ["safetySettings"], I.map((
|
|
47858
|
+
n !== void 0 && I != null && (Array.isArray(I) ? setValueByPath(n, ["safetySettings"], I.map((L) => safetySettingToVertex(t, L))) : setValueByPath(n, ["safetySettings"], I));
|
|
47859
47859
|
const M = getValueByPath(e, ["tools"]);
|
|
47860
|
-
n !== void 0 && M != null && (Array.isArray(M) ? setValueByPath(n, ["tools"], tTools(t, tTools(t, M).map((
|
|
47860
|
+
n !== void 0 && M != null && (Array.isArray(M) ? setValueByPath(n, ["tools"], tTools(t, tTools(t, M).map((L) => toolToVertex(t, tTool(t, L))))) : setValueByPath(n, ["tools"], tTools(t, M)));
|
|
47861
47861
|
const A = getValueByPath(e, ["toolConfig"]);
|
|
47862
47862
|
n !== void 0 && A != null && setValueByPath(n, ["toolConfig"], toolConfigToVertex(t, A));
|
|
47863
47863
|
const N = getValueByPath(e, ["labels"]);
|
|
@@ -47874,8 +47874,8 @@ function generateContentConfigToVertex(t, e, n) {
|
|
|
47874
47874
|
"mediaResolution"
|
|
47875
47875
|
]);
|
|
47876
47876
|
V != null && setValueByPath(i, ["mediaResolution"], V);
|
|
47877
|
-
const
|
|
47878
|
-
|
|
47877
|
+
const j = getValueByPath(e, ["speechConfig"]);
|
|
47878
|
+
j != null && setValueByPath(i, ["speechConfig"], speechConfigToVertex(t, tSpeechConfig(t, j)));
|
|
47879
47879
|
const B = getValueByPath(e, [
|
|
47880
47880
|
"audioTimestamp"
|
|
47881
47881
|
]);
|
|
@@ -50188,8 +50188,8 @@ ${p.description}` : p.summary || `${f.toUpperCase()} ${m[m.length - 1]}`,
|
|
|
50188
50188
|
try {
|
|
50189
50189
|
let I = `https://api.randmar.io${l}`;
|
|
50190
50190
|
E.forEach((B) => {
|
|
50191
|
-
const F = `{${B}}`,
|
|
50192
|
-
I = I.replace(F, T[
|
|
50191
|
+
const F = `{${B}}`, L = B;
|
|
50192
|
+
I = I.replace(F, T[L]);
|
|
50193
50193
|
});
|
|
50194
50194
|
const M = localStorage.getItem("access_token"), A = {
|
|
50195
50195
|
method: f.toUpperCase(),
|
|
@@ -50199,8 +50199,8 @@ ${p.description}` : p.summary || `${f.toUpperCase()} ${m[m.length - 1]}`,
|
|
|
50199
50199
|
}
|
|
50200
50200
|
}, N = [];
|
|
50201
50201
|
if ((((R = p.parameters) == null ? void 0 : R.filter((B) => B.in === "query")) || []).forEach((B) => {
|
|
50202
|
-
const F = B.name,
|
|
50203
|
-
|
|
50202
|
+
const F = B.name, L = T[F];
|
|
50203
|
+
L && N.push(`${B.name}=${encodeURIComponent(L)}`);
|
|
50204
50204
|
}), N.length > 0 && (I += `?${N.join("&")}`), f === "post" || f === "put") {
|
|
50205
50205
|
const F = T[bodyKey];
|
|
50206
50206
|
F && (A.body = F);
|
|
@@ -50210,9 +50210,9 @@ ${p.description}` : p.summary || `${f.toUpperCase()} ${m[m.length - 1]}`,
|
|
|
50210
50210
|
const B = await D.text();
|
|
50211
50211
|
throw console.error(`[API Function] Error response: ${B}`), new Error(`Error ${D.status}: ${B}`);
|
|
50212
50212
|
}
|
|
50213
|
-
const V = await D.json(),
|
|
50214
|
-
return
|
|
50215
|
-
component:
|
|
50213
|
+
const V = await D.json(), j = getComponent(l, V);
|
|
50214
|
+
return j ? {
|
|
50215
|
+
component: j,
|
|
50216
50216
|
summary: JSON.stringify(V, null, 2)
|
|
50217
50217
|
} : JSON.stringify(V, null, 2);
|
|
50218
50218
|
} catch (I) {
|
|
@@ -50336,13 +50336,13 @@ function useAIAssistant({ userId: t, apiKey: e }) {
|
|
|
50336
50336
|
p((U) => [...U, `Calling ${O} with:
|
|
50337
50337
|
${JSON.stringify(V, null, 2)}`]);
|
|
50338
50338
|
const F = await D(V);
|
|
50339
|
-
let
|
|
50340
|
-
return typeof F == "string" ?
|
|
50339
|
+
let L, q = null, G = !1;
|
|
50340
|
+
return typeof F == "string" ? L = F : (L = F.summary, q = F.component, G = !0), p((U) => [...U, `${O} returned ${L.length} character(s).`]), o ? (G && q && I({
|
|
50341
50341
|
role: "assistant",
|
|
50342
50342
|
content: q,
|
|
50343
50343
|
timestamp: /* @__PURE__ */ new Date(),
|
|
50344
50344
|
isComponent: !0
|
|
50345
|
-
}),
|
|
50345
|
+
}), L) : "";
|
|
50346
50346
|
} catch {
|
|
50347
50347
|
return p((F) => [...F, `${O} failed.`]), "";
|
|
50348
50348
|
}
|
|
@@ -50352,31 +50352,31 @@ function useAIAssistant({ userId: t, apiKey: e }) {
|
|
|
50352
50352
|
try {
|
|
50353
50353
|
const D = await o.sendMessage({ message: N.trim() }), V = D.functionCalls;
|
|
50354
50354
|
if (V && V.length > 0) {
|
|
50355
|
-
p((
|
|
50356
|
-
const
|
|
50357
|
-
for (const
|
|
50358
|
-
const q = await T(
|
|
50355
|
+
p((L) => [...L, `${V.length} function(s) need to be called.`]), i("Using Randmar API...");
|
|
50356
|
+
const j = [];
|
|
50357
|
+
for (const L of V) {
|
|
50358
|
+
const q = await T(L), G = {
|
|
50359
50359
|
functionResponse: {
|
|
50360
|
-
name:
|
|
50360
|
+
name: L.name,
|
|
50361
50361
|
response: { content: q }
|
|
50362
50362
|
}
|
|
50363
50363
|
};
|
|
50364
|
-
|
|
50364
|
+
j.push(G);
|
|
50365
50365
|
}
|
|
50366
50366
|
i("Composing response...");
|
|
50367
50367
|
const F = {
|
|
50368
50368
|
role: "assistant",
|
|
50369
|
-
content: (await o.sendMessage({ message:
|
|
50369
|
+
content: (await o.sendMessage({ message: j })).text,
|
|
50370
50370
|
timestamp: /* @__PURE__ */ new Date()
|
|
50371
50371
|
};
|
|
50372
50372
|
I(F);
|
|
50373
50373
|
} else {
|
|
50374
|
-
const
|
|
50374
|
+
const j = {
|
|
50375
50375
|
role: "assistant",
|
|
50376
50376
|
content: D.text,
|
|
50377
50377
|
timestamp: /* @__PURE__ */ new Date()
|
|
50378
50378
|
};
|
|
50379
|
-
I(
|
|
50379
|
+
I(j);
|
|
50380
50380
|
}
|
|
50381
50381
|
} catch (D) {
|
|
50382
50382
|
console.error("Error sending message:", D), I({
|
|
@@ -52080,8 +52080,8 @@ function PartnerCard({ account: t, action: e, loading: n = !1, withVoice: i = !0
|
|
|
52080
52080
|
try {
|
|
52081
52081
|
const V = await fetch(R.logoUrl);
|
|
52082
52082
|
if (V.ok) {
|
|
52083
|
-
const
|
|
52084
|
-
M && (o && URL.revokeObjectURL(o), l(URL.createObjectURL(
|
|
52083
|
+
const j = await V.blob();
|
|
52084
|
+
M && (o && URL.revokeObjectURL(o), l(URL.createObjectURL(j)));
|
|
52085
52085
|
} else
|
|
52086
52086
|
throw new Error(`Failed to load logo: ${V.status}`);
|
|
52087
52087
|
} catch (V) {
|
|
@@ -52093,8 +52093,8 @@ function PartnerCard({ account: t, action: e, loading: n = !1, withVoice: i = !0
|
|
|
52093
52093
|
try {
|
|
52094
52094
|
const V = await fetch(R.videoExistsUrl);
|
|
52095
52095
|
if (V.ok) {
|
|
52096
|
-
const
|
|
52097
|
-
M && g(
|
|
52096
|
+
const j = await V.text();
|
|
52097
|
+
M && g(j.toLowerCase() === "true");
|
|
52098
52098
|
} else
|
|
52099
52099
|
throw new Error(`Failed to check video: ${V.status}`);
|
|
52100
52100
|
} catch (V) {
|
|
@@ -52283,8 +52283,8 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
52283
52283
|
return (de = W.current) == null ? void 0 : de.focus();
|
|
52284
52284
|
}, 50), V([Z, ...K]);
|
|
52285
52285
|
}, [l]);
|
|
52286
|
-
const [S, T] = useState("all"), [R, I] = useState([[t, ASSISTANT_ID].sort()[0], [t, ASSISTANT_ID].sort()[1]]), [M, A] = useState(""), [N, O] = useState(null), [D, V] = useState([]), [
|
|
52287
|
-
const K = Z.name.toLowerCase().includes(
|
|
52286
|
+
const [S, T] = useState("all"), [R, I] = useState([[t, ASSISTANT_ID].sort()[0], [t, ASSISTANT_ID].sort()[1]]), [M, A] = useState(""), [N, O] = useState(null), [D, V] = useState([]), [j, B] = useState(""), [F, L] = useState(null), [q, G] = useState([]), [U, Q] = useState(0), H = useRef(null), z = useRef(null), W = i || z, J = D.filter((Z) => {
|
|
52287
|
+
const K = Z.name.toLowerCase().includes(j.toLowerCase());
|
|
52288
52288
|
return S === "all" ? K : S === "approved" ? K && !Z.pending : S === "pending" ? K && Z.pending : K;
|
|
52289
52289
|
});
|
|
52290
52290
|
useEffect(() => {
|
|
@@ -52318,7 +52318,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
52318
52318
|
accessTokenFactory: () => localStorage.getItem("access_token"),
|
|
52319
52319
|
headers: { "X-Impersonated-Id": t }
|
|
52320
52320
|
}).configureLogging(LogLevel.Information).withAutomaticReconnect().withHubProtocol(new JsonHubProtocol()).build();
|
|
52321
|
-
return Z.on("ReceiveMessage", ne), Z.start().catch((K) => console.error("Error connecting to SignalR hub:", K)),
|
|
52321
|
+
return Z.on("ReceiveMessage", ne), Z.start().catch((K) => console.error("Error connecting to SignalR hub:", K)), L(Z), () => {
|
|
52322
52322
|
Z && Z.stop();
|
|
52323
52323
|
};
|
|
52324
52324
|
}, [t]), useEffect(() => {
|
|
@@ -52408,7 +52408,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
52408
52408
|
{
|
|
52409
52409
|
placeholder: "Search chats...",
|
|
52410
52410
|
className: "pl-8 h-9",
|
|
52411
|
-
value:
|
|
52411
|
+
value: j,
|
|
52412
52412
|
onChange: (Z) => B(Z.target.value)
|
|
52413
52413
|
}
|
|
52414
52414
|
)
|
|
@@ -52617,6 +52617,12 @@ function ResellerCard({
|
|
|
52617
52617
|
actions: n,
|
|
52618
52618
|
loading: i = !1
|
|
52619
52619
|
}) {
|
|
52620
|
+
const o = (p) => p === void 0 ? "n/a" : new Intl.NumberFormat("en-CA", {
|
|
52621
|
+
style: "currency",
|
|
52622
|
+
currency: "CAD",
|
|
52623
|
+
minimumFractionDigits: 0,
|
|
52624
|
+
maximumFractionDigits: 0
|
|
52625
|
+
}).format(p);
|
|
52620
52626
|
if (i || !t)
|
|
52621
52627
|
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
52622
52628
|
/* @__PURE__ */ jsx(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -52628,7 +52634,7 @@ function ResellerCard({
|
|
|
52628
52634
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-48" })
|
|
52629
52635
|
] })
|
|
52630
52636
|
] }) }),
|
|
52631
|
-
/* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsx("div", { className: "flex flex-col space-y-2", children: /* @__PURE__ */ jsxs("div", { className: "space-y-1 pt-2", children: [
|
|
52637
|
+
/* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsx("div", { className: "flex", children: /* @__PURE__ */ jsx("div", { className: "flex flex-col flex-1 space-y-2", children: /* @__PURE__ */ jsxs("div", { className: "space-y-1 pt-2", children: [
|
|
52632
52638
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
52633
52639
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
|
|
52634
52640
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32" })
|
|
@@ -52641,21 +52647,21 @@ function ResellerCard({
|
|
|
52641
52647
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
|
|
52642
52648
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-36" })
|
|
52643
52649
|
] })
|
|
52644
|
-
] }) }) }),
|
|
52650
|
+
] }) }) }) }),
|
|
52645
52651
|
/* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between pt-2 gap-2", children: [
|
|
52646
52652
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-24" }),
|
|
52647
52653
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-40" })
|
|
52648
52654
|
] })
|
|
52649
52655
|
] });
|
|
52650
|
-
const
|
|
52656
|
+
const l = t.ResellerId || "N/A", u = t.PublicName || "N/A", d = [t.City, t.Province, t.Country].filter(Boolean), f = d.length > 0 ? d.join(", ") : "Location not provided";
|
|
52651
52657
|
return /* @__PURE__ */ jsxs(Card, { className: "reseller-theme", children: [
|
|
52652
52658
|
/* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: [
|
|
52653
52659
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
52654
52660
|
/* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md", children: /* @__PURE__ */ jsx(
|
|
52655
52661
|
"img",
|
|
52656
52662
|
{
|
|
52657
|
-
src: `https://api.randmar.io/V4/Partner/${
|
|
52658
|
-
alt: `${
|
|
52663
|
+
src: `https://api.randmar.io/V4/Partner/${l}/Account/Logo?width=64&height=64`,
|
|
52664
|
+
alt: `${u}'s logo`,
|
|
52659
52665
|
className: "max-h-10 w-auto object-contain"
|
|
52660
52666
|
}
|
|
52661
52667
|
) }),
|
|
@@ -52663,33 +52669,43 @@ function ResellerCard({
|
|
|
52663
52669
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
52664
52670
|
/* @__PURE__ */ jsx("span", { className: "text-xs text-primary", children: "Reseller" }),
|
|
52665
52671
|
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: "|" }),
|
|
52666
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children:
|
|
52672
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: l })
|
|
52667
52673
|
] }),
|
|
52668
52674
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold", children: t.PublicName || "N/A" }),
|
|
52669
52675
|
t.Name && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t.Name }),
|
|
52670
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children:
|
|
52676
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: f })
|
|
52671
52677
|
] })
|
|
52672
52678
|
] }),
|
|
52673
52679
|
!!t.OnHold && t.OnHold !== 0 && /* @__PURE__ */ jsx(Badge, { variant: "warning", children: "On Hold" })
|
|
52674
52680
|
] }),
|
|
52675
|
-
/* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */
|
|
52676
|
-
|
|
52677
|
-
/* @__PURE__ */
|
|
52678
|
-
|
|
52679
|
-
|
|
52680
|
-
|
|
52681
|
-
/* @__PURE__ */
|
|
52682
|
-
|
|
52683
|
-
|
|
52684
|
-
|
|
52685
|
-
/* @__PURE__ */
|
|
52686
|
-
|
|
52687
|
-
|
|
52688
|
-
|
|
52689
|
-
/* @__PURE__ */
|
|
52690
|
-
|
|
52681
|
+
/* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
|
|
52682
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col flex-1 space-y-2", children: /* @__PURE__ */ jsxs("div", { className: "space-y-1 pt-2", children: [
|
|
52683
|
+
t.Phone && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
52684
|
+
/* @__PURE__ */ jsx(Phone, { className: "h-4 w-4" }),
|
|
52685
|
+
/* @__PURE__ */ jsx("span", { children: t.Phone })
|
|
52686
|
+
] }),
|
|
52687
|
+
t.PublicEmail && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
52688
|
+
/* @__PURE__ */ jsx(Mail, { className: "h-4 w-4" }),
|
|
52689
|
+
/* @__PURE__ */ jsx("span", { children: t.PublicEmail })
|
|
52690
|
+
] }),
|
|
52691
|
+
t.Website && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
52692
|
+
/* @__PURE__ */ jsx(Globe, { className: "h-4 w-4" }),
|
|
52693
|
+
/* @__PURE__ */ jsx("span", { children: t.Website })
|
|
52694
|
+
] }),
|
|
52695
|
+
t.CurrencyCode && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
52696
|
+
/* @__PURE__ */ jsx(DollarSign, { className: "h-4 w-4" }),
|
|
52697
|
+
/* @__PURE__ */ jsx("span", { children: t.CurrencyCode })
|
|
52698
|
+
] })
|
|
52699
|
+
] }) }),
|
|
52700
|
+
(t == null ? void 0 : t.SalesData) && /* @__PURE__ */ jsxs("div", { className: "border-l pl-2 ml-2 flex flex-col text-sm", children: [
|
|
52701
|
+
/* @__PURE__ */ jsx("strong", { className: "", children: "YTD" }),
|
|
52702
|
+
/* @__PURE__ */ jsx("p", { children: o(t == null ? void 0 : t.SalesData.SalesYearToDay) }),
|
|
52703
|
+
/* @__PURE__ */ jsx("strong", { className: "mt-2", children: "3 mo." }),
|
|
52704
|
+
/* @__PURE__ */ jsx("p", { children: o(t == null ? void 0 : t.SalesData.SalesLast3Months) }),
|
|
52705
|
+
/* @__PURE__ */ jsx("strong", { className: "mt-2", children: "30 days" }),
|
|
52706
|
+
/* @__PURE__ */ jsx("p", { children: o(t == null ? void 0 : t.SalesData.SalesLast30Days) })
|
|
52691
52707
|
] })
|
|
52692
|
-
] }) })
|
|
52708
|
+
] }) }),
|
|
52693
52709
|
(n || e) && /* @__PURE__ */ jsxs(CardFooter, { className: `flex pt-2 gap-2 ${n ? "justify-between" : "justify-end"}`, children: [
|
|
52694
52710
|
n && n,
|
|
52695
52711
|
e && /* @__PURE__ */ jsx(Button, { className: "flex items-center gap-1", asChild: !0, children: /* @__PURE__ */ jsxs(Link, { to: e, target: "_blank", children: [
|
|
@@ -53007,12 +53023,12 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
53007
53023
|
defaultProp: o ?? !1,
|
|
53008
53024
|
onChange: l,
|
|
53009
53025
|
caller: SELECT_NAME
|
|
53010
|
-
}), [V,
|
|
53026
|
+
}), [V, j] = useControllableState({
|
|
53011
53027
|
prop: u,
|
|
53012
53028
|
defaultProp: d,
|
|
53013
53029
|
onChange: f,
|
|
53014
53030
|
caller: SELECT_NAME
|
|
53015
|
-
}), B = React.useRef(null), F = S ? E || !!S.closest("form") : !0, [
|
|
53031
|
+
}), B = React.useRef(null), F = S ? E || !!S.closest("form") : !0, [L, q] = React.useState(/* @__PURE__ */ new Set()), G = Array.from(L).map((U) => U.props.value).join(";");
|
|
53016
53032
|
return /* @__PURE__ */ jsx(Root2$4, { ...C, children: /* @__PURE__ */ jsxs(
|
|
53017
53033
|
SelectProvider,
|
|
53018
53034
|
{
|
|
@@ -53026,7 +53042,7 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
53026
53042
|
onValueNodeHasChildrenChange: A,
|
|
53027
53043
|
contentId: useId(),
|
|
53028
53044
|
value: V,
|
|
53029
|
-
onValueChange:
|
|
53045
|
+
onValueChange: j,
|
|
53030
53046
|
open: O,
|
|
53031
53047
|
onOpenChange: D,
|
|
53032
53048
|
dir: N,
|
|
@@ -53058,12 +53074,12 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
53058
53074
|
name: m,
|
|
53059
53075
|
autoComplete: g,
|
|
53060
53076
|
value: V,
|
|
53061
|
-
onChange: (U) =>
|
|
53077
|
+
onChange: (U) => j(U.target.value),
|
|
53062
53078
|
disabled: b,
|
|
53063
53079
|
form: E,
|
|
53064
53080
|
children: [
|
|
53065
53081
|
V === void 0 ? /* @__PURE__ */ jsx("option", { value: "" }) : null,
|
|
53066
|
-
Array.from(
|
|
53082
|
+
Array.from(L)
|
|
53067
53083
|
]
|
|
53068
53084
|
},
|
|
53069
53085
|
G
|
|
@@ -53181,9 +53197,9 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
53181
53197
|
avoidCollisions: S,
|
|
53182
53198
|
//
|
|
53183
53199
|
...T
|
|
53184
|
-
} = t, R = useSelectContext(CONTENT_NAME, n), [I, M] = React.useState(null), [A, N] = React.useState(null), O = useComposedRefs(e, (ae) => M(ae)), [D, V] = React.useState(null), [
|
|
53200
|
+
} = t, R = useSelectContext(CONTENT_NAME, n), [I, M] = React.useState(null), [A, N] = React.useState(null), O = useComposedRefs(e, (ae) => M(ae)), [D, V] = React.useState(null), [j, B] = React.useState(
|
|
53185
53201
|
null
|
|
53186
|
-
), F = useCollection(n), [
|
|
53202
|
+
), F = useCollection(n), [L, q] = React.useState(!1), G = React.useRef(!1);
|
|
53187
53203
|
React.useEffect(() => {
|
|
53188
53204
|
if (I) return hideOthers(I);
|
|
53189
53205
|
}, [I]), useFocusGuards();
|
|
@@ -53199,8 +53215,8 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
53199
53215
|
[U, D, I]
|
|
53200
53216
|
);
|
|
53201
53217
|
React.useEffect(() => {
|
|
53202
|
-
|
|
53203
|
-
}, [
|
|
53218
|
+
L && Q();
|
|
53219
|
+
}, [L, Q]);
|
|
53204
53220
|
const { onOpenChange: H, triggerPointerDownPosRef: z } = R;
|
|
53205
53221
|
React.useEffect(() => {
|
|
53206
53222
|
if (I) {
|
|
@@ -53263,9 +53279,9 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
53263
53279
|
onItemLeave: oe,
|
|
53264
53280
|
itemTextRefCallback: le,
|
|
53265
53281
|
focusSelectedItem: Q,
|
|
53266
|
-
selectedItemText:
|
|
53282
|
+
selectedItemText: j,
|
|
53267
53283
|
position: i,
|
|
53268
|
-
isPositioned:
|
|
53284
|
+
isPositioned: L,
|
|
53269
53285
|
searchRef: W,
|
|
53270
53286
|
children: /* @__PURE__ */ jsx(ReactRemoveScroll, { as: Slot, allowPinchZoom: !0, children: /* @__PURE__ */ jsx(
|
|
53271
53287
|
FocusScope,
|
|
@@ -53333,9 +53349,9 @@ SelectContentImpl.displayName = CONTENT_IMPL_NAME;
|
|
|
53333
53349
|
var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedPosition = React.forwardRef((t, e) => {
|
|
53334
53350
|
const { __scopeSelect: n, onPlaced: i, ...o } = t, l = useSelectContext(CONTENT_NAME, n), u = useSelectContentContext(CONTENT_NAME, n), [d, f] = React.useState(null), [p, m] = React.useState(null), g = useComposedRefs(e, (O) => m(O)), b = useCollection(n), _ = React.useRef(!1), E = React.useRef(!0), { viewport: C, selectedItem: S, selectedItemText: T, focusSelectedItem: R } = u, I = React.useCallback(() => {
|
|
53335
53351
|
if (l.trigger && l.valueNode && d && p && C && S && T) {
|
|
53336
|
-
const O = l.trigger.getBoundingClientRect(), D = p.getBoundingClientRect(), V = l.valueNode.getBoundingClientRect(),
|
|
53352
|
+
const O = l.trigger.getBoundingClientRect(), D = p.getBoundingClientRect(), V = l.valueNode.getBoundingClientRect(), j = T.getBoundingClientRect();
|
|
53337
53353
|
if (l.dir !== "rtl") {
|
|
53338
|
-
const Z =
|
|
53354
|
+
const Z = j.left - D.left, K = V.left - Z, de = O.left - K, ee = O.width + de, fe = Math.max(ee, D.width), he = window.innerWidth - CONTENT_MARGIN, me = clamp(K, [
|
|
53339
53355
|
CONTENT_MARGIN,
|
|
53340
53356
|
// Prevents the content from going off the starting edge of the
|
|
53341
53357
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -53346,13 +53362,13 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
53346
53362
|
]);
|
|
53347
53363
|
d.style.minWidth = ee + "px", d.style.left = me + "px";
|
|
53348
53364
|
} else {
|
|
53349
|
-
const Z = D.right -
|
|
53365
|
+
const Z = D.right - j.right, K = window.innerWidth - V.right - Z, de = window.innerWidth - O.right - K, ee = O.width + de, fe = Math.max(ee, D.width), he = window.innerWidth - CONTENT_MARGIN, me = clamp(K, [
|
|
53350
53366
|
CONTENT_MARGIN,
|
|
53351
53367
|
Math.max(CONTENT_MARGIN, he - fe)
|
|
53352
53368
|
]);
|
|
53353
53369
|
d.style.minWidth = ee + "px", d.style.right = me + "px";
|
|
53354
53370
|
}
|
|
53355
|
-
const B = b(), F = window.innerHeight - CONTENT_MARGIN * 2,
|
|
53371
|
+
const B = b(), F = window.innerHeight - CONTENT_MARGIN * 2, L = C.scrollHeight, q = window.getComputedStyle(p), G = parseInt(q.borderTopWidth, 10), U = parseInt(q.paddingTop, 10), Q = parseInt(q.borderBottomWidth, 10), H = parseInt(q.paddingBottom, 10), z = G + U + L + H + Q, W = Math.min(S.offsetHeight * 5, z), J = window.getComputedStyle(C), ne = parseInt(J.paddingTop, 10), oe = parseInt(J.paddingBottom, 10), le = O.top + O.height / 2 - CONTENT_MARGIN, ie = F - le, ue = S.offsetHeight / 2, ae = S.offsetTop + ue, ce = G + U + ae, se = z - ce;
|
|
53356
53372
|
if (ce <= le) {
|
|
53357
53373
|
const Z = B.length > 0 && S === B[B.length - 1].ref.current;
|
|
53358
53374
|
d.style.bottom = "0px";
|
|
@@ -54445,13 +54461,13 @@ function ProductCard({
|
|
|
54445
54461
|
] })
|
|
54446
54462
|
] })
|
|
54447
54463
|
] }) });
|
|
54448
|
-
const
|
|
54464
|
+
const j = (t == null ? void 0 : t.Opportunities) || [], B = j.length > 0, F = () => {
|
|
54449
54465
|
if (m == null) {
|
|
54450
54466
|
g(1);
|
|
54451
54467
|
return;
|
|
54452
54468
|
}
|
|
54453
54469
|
m > 1 && g(m - 1);
|
|
54454
|
-
},
|
|
54470
|
+
}, L = () => {
|
|
54455
54471
|
if (m == null) {
|
|
54456
54472
|
g(1);
|
|
54457
54473
|
return;
|
|
@@ -54603,8 +54619,8 @@ function ProductCard({
|
|
|
54603
54619
|
] }),
|
|
54604
54620
|
/* @__PURE__ */ jsxs("div", { className: "flex gap-6 mt-4", children: [
|
|
54605
54621
|
/* @__PURE__ */ jsx("div", { className: "flex flex-1", children: B && t.Distribution && /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
|
|
54606
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: "You have " +
|
|
54607
|
-
/* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children:
|
|
54622
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: "You have " + j.length + (j.length > 1 ? " opportunities" : " opportunity") + " for this product:" }),
|
|
54623
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: j.map((te, Z) => {
|
|
54608
54624
|
var K;
|
|
54609
54625
|
return /* @__PURE__ */ jsxs(
|
|
54610
54626
|
"div",
|
|
@@ -54740,7 +54756,7 @@ function ProductCard({
|
|
|
54740
54756
|
variant: "ghost",
|
|
54741
54757
|
size: "icon",
|
|
54742
54758
|
className: "rounded-l-none",
|
|
54743
|
-
onClick:
|
|
54759
|
+
onClick: L,
|
|
54744
54760
|
disabled: !t.AvailableToBuy || d || !u,
|
|
54745
54761
|
children: "+"
|
|
54746
54762
|
}
|