randmarcomps 1.127.0 → 1.128.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.
@@ -60,19 +60,19 @@ 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"]), A, I, M, R, N;
63
- let [O, D] = React.useState(typeof T.defaultValue == "string" ? T.defaultValue : ""), V = i ?? O, L = _t(V), B = React.useCallback((ae) => {
64
- o == null || o(ae), D(ae);
63
+ let [O, D] = React.useState(typeof T.defaultValue == "string" ? T.defaultValue : ""), V = i ?? O, L = _t(V), B = React.useCallback((ee) => {
64
+ o == null || o(ee), D(ee);
65
65
  }, [o]), j = React.useMemo(() => d ? typeof d == "string" ? new RegExp(d) : d : null, [d]), q = React.useRef(null), H = React.useRef(null), G = React.useRef({ value: V, onChange: B, isIOS: typeof window < "u" && ((I = (A = window == null ? void 0 : window.CSS) == null ? void 0 : A.supports) == null ? void 0 : I.call(A, "-webkit-touch-callout", "none")) }), U = React.useRef({ prev: [(M = q.current) == null ? void 0 : M.selectionStart, (R = q.current) == null ? void 0 : R.selectionEnd, (N = q.current) == null ? void 0 : N.selectionDirection] });
66
66
  React.useImperativeHandle(e, () => q.current, []), React.useEffect(() => {
67
- let ae = q.current, fe = H.current;
68
- if (!ae || !fe) return;
69
- G.current.value !== ae.value && G.current.onChange(ae.value), U.current.prev = [ae.selectionStart, ae.selectionEnd, ae.selectionDirection];
67
+ let ee = q.current, de = H.current;
68
+ if (!ee || !de) return;
69
+ G.current.value !== ee.value && G.current.onChange(ee.value), U.current.prev = [ee.selectionStart, ee.selectionEnd, ee.selectionDirection];
70
70
  function he() {
71
- if (document.activeElement !== ae) {
72
- ne(null), oe(null);
71
+ if (document.activeElement !== ee) {
72
+ te(null), ae(null);
73
73
  return;
74
74
  }
75
- let pe = ae.selectionStart, ge = ae.selectionEnd, Pe = ae.selectionDirection, ve = ae.maxLength, xe = ae.value, Se = U.current.prev, _e = -1, Ce = -1, Ee;
75
+ let pe = ee.selectionStart, ge = ee.selectionEnd, Pe = ee.selectionDirection, ve = ee.maxLength, xe = ee.value, Se = U.current.prev, _e = -1, Ce = -1, Ee;
76
76
  if (xe.length !== 0 && pe !== null && ge !== null) {
77
77
  let Me = pe === ge, $e = pe === xe.length && xe.length < ve;
78
78
  if (Me && !$e) {
@@ -92,9 +92,9 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
92
92
  _e !== -1 && Ce !== -1 && _e !== Ce && q.current.setSelectionRange(_e, Ce, Ee);
93
93
  }
94
94
  let we = _e !== -1 ? _e : pe, Te = Ce !== -1 ? Ce : ge, Ae = Ee ?? Pe;
95
- ne(we), oe(Te), U.current.prev = [we, Te, Ae];
95
+ te(we), ae(Te), U.current.prev = [we, Te, Ae];
96
96
  }
97
- if (document.addEventListener("selectionchange", he, { capture: !0 }), he(), document.activeElement === ae && W(!0), !document.getElementById("input-otp-style")) {
97
+ if (document.addEventListener("selectionchange", he, { capture: !0 }), he(), document.activeElement === ee && W(!0), !document.getElementById("input-otp-style")) {
98
98
  let pe = document.createElement("style");
99
99
  if (pe.id = "input-otp-style", document.head.appendChild(pe), pe.sheet) {
100
100
  let ge = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
@@ -102,71 +102,71 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
102
102
  }
103
103
  }
104
104
  let me = () => {
105
- fe && fe.style.setProperty("--root-height", `${ae.clientHeight}px`);
105
+ de && de.style.setProperty("--root-height", `${ee.clientHeight}px`);
106
106
  };
107
107
  me();
108
108
  let ye = new ResizeObserver(me);
109
- return ye.observe(ae), () => {
109
+ return ye.observe(ee), () => {
110
110
  document.removeEventListener("selectionchange", he, { capture: !0 }), ye.disconnect();
111
111
  };
112
112
  }, []);
113
- let [K, F] = React.useState(!1), [z, W] = React.useState(!1), [J, ne] = React.useState(null), [ie, oe] = React.useState(null);
113
+ let [Q, F] = React.useState(!1), [z, W] = React.useState(!1), [Z, te] = React.useState(null), [ne, ae] = React.useState(null);
114
114
  React.useEffect(() => {
115
115
  ht(() => {
116
- var ae, fe, he, me;
117
- (ae = q.current) == null || ae.dispatchEvent(new Event("input"));
118
- let ye = (fe = q.current) == null ? void 0 : fe.selectionStart, pe = (he = q.current) == null ? void 0 : he.selectionEnd, ge = (me = q.current) == null ? void 0 : me.selectionDirection;
119
- ye !== null && pe !== null && (ne(ye), oe(pe), U.current.prev = [ye, pe, ge]);
116
+ var ee, de, he, me;
117
+ (ee = q.current) == null || ee.dispatchEvent(new Event("input"));
118
+ let ye = (de = q.current) == null ? void 0 : de.selectionStart, pe = (he = q.current) == null ? void 0 : he.selectionEnd, ge = (me = q.current) == null ? void 0 : me.selectionDirection;
119
+ ye !== null && pe !== null && (te(ye), ae(pe), U.current.prev = [ye, pe, ge]);
120
120
  });
121
121
  }, [V, z]), React.useEffect(() => {
122
122
  L !== void 0 && V !== L && L.length < l && V.length === l && (m == null || m(V));
123
123
  }, [l, m, L, V]);
124
- let le = Tt({ containerRef: H, inputRef: q, pushPasswordManagerStrategy: g, isFocused: z }), ue = React.useCallback((ae) => {
125
- let fe = ae.currentTarget.value.slice(0, l);
126
- if (fe.length > 0 && j && !j.test(fe)) {
127
- ae.preventDefault();
124
+ let le = Tt({ containerRef: H, inputRef: q, pushPasswordManagerStrategy: g, isFocused: z }), ue = React.useCallback((ee) => {
125
+ let de = ee.currentTarget.value.slice(0, l);
126
+ if (de.length > 0 && j && !j.test(de)) {
127
+ ee.preventDefault();
128
128
  return;
129
129
  }
130
- typeof L == "string" && fe.length < L.length && document.dispatchEvent(new Event("selectionchange")), B(fe);
130
+ typeof L == "string" && de.length < L.length && document.dispatchEvent(new Event("selectionchange")), B(de);
131
131
  }, [l, B, L, j]), se = React.useCallback(() => {
132
- var ae;
132
+ var ee;
133
133
  if (q.current) {
134
- let fe = Math.min(q.current.value.length, l - 1), he = q.current.value.length;
135
- (ae = q.current) == null || ae.setSelectionRange(fe, he), ne(fe), oe(he);
134
+ let de = Math.min(q.current.value.length, l - 1), he = q.current.value.length;
135
+ (ee = q.current) == null || ee.setSelectionRange(de, he), te(de), ae(he);
136
136
  }
137
137
  W(!0);
138
- }, [l]), te = React.useCallback((ae) => {
139
- var fe, he;
138
+ }, [l]), ce = React.useCallback((ee) => {
139
+ var de, he;
140
140
  let me = q.current;
141
- if (!b && (!G.current.isIOS || !ae.clipboardData || !me)) return;
142
- let ye = ae.clipboardData.getData("text/plain"), pe = b ? b(ye) : ye;
143
- ae.preventDefault();
144
- let ge = (fe = q.current) == null ? void 0 : fe.selectionStart, Pe = (he = q.current) == null ? void 0 : he.selectionEnd, ve = (ge !== Pe ? V.slice(0, ge) + pe + V.slice(Pe) : V.slice(0, ge) + pe + V.slice(ge)).slice(0, l);
141
+ if (!b && (!G.current.isIOS || !ee.clipboardData || !me)) return;
142
+ let ye = ee.clipboardData.getData("text/plain"), pe = b ? b(ye) : ye;
143
+ ee.preventDefault();
144
+ let ge = (de = q.current) == null ? void 0 : de.selectionStart, Pe = (he = q.current) == null ? void 0 : he.selectionEnd, ve = (ge !== Pe ? V.slice(0, ge) + pe + V.slice(Pe) : V.slice(0, ge) + pe + V.slice(ge)).slice(0, l);
145
145
  if (ve.length > 0 && j && !j.test(ve)) return;
146
146
  me.value = ve, B(ve);
147
147
  let xe = Math.min(ve.length, l - 1), Se = ve.length;
148
- me.setSelectionRange(xe, Se), ne(xe), oe(Se);
149
- }, [l, B, j, V]), ee = React.useMemo(() => ({ position: "relative", cursor: T.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [T.disabled]), Z = React.useMemo(() => ({ position: "absolute", inset: 0, width: le.willPushPWMBadge ? `calc(100% + ${le.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: le.willPushPWMBadge ? `inset(0 ${le.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" }), [le.PWM_BADGE_SPACE_WIDTH, le.willPushPWMBadge, u]), ce = 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": ie, inputMode: p, pattern: j == null ? void 0 : j.source, "aria-placeholder": f, style: Z, maxLength: l, value: V, ref: q, onPaste: (ae) => {
150
- var fe;
151
- te(ae), (fe = T.onPaste) == null || fe.call(T, ae);
152
- }, onChange: ue, onMouseOver: (ae) => {
153
- var fe;
154
- F(!0), (fe = T.onMouseOver) == null || fe.call(T, ae);
155
- }, onMouseLeave: (ae) => {
156
- var fe;
157
- F(!1), (fe = T.onMouseLeave) == null || fe.call(T, ae);
158
- }, onFocus: (ae) => {
159
- var fe;
160
- se(), (fe = T.onFocus) == null || fe.call(T, ae);
161
- }, onBlur: (ae) => {
162
- var fe;
163
- W(!1), (fe = T.onBlur) == null || fe.call(T, ae);
164
- } })), [ue, se, te, p, Z, l, ie, J, T, j == null ? void 0 : j.source, V]), Q = React.useMemo(() => ({ slots: Array.from({ length: l }).map((ae, fe) => {
148
+ me.setSelectionRange(xe, Se), te(xe), ae(Se);
149
+ }, [l, B, j, V]), oe = React.useMemo(() => ({ position: "relative", cursor: T.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [T.disabled]), J = React.useMemo(() => ({ position: "absolute", inset: 0, width: le.willPushPWMBadge ? `calc(100% + ${le.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: le.willPushPWMBadge ? `inset(0 ${le.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" }), [le.PWM_BADGE_SPACE_WIDTH, le.willPushPWMBadge, u]), ie = 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": Z, "data-input-otp-mse": ne, inputMode: p, pattern: j == null ? void 0 : j.source, "aria-placeholder": f, style: J, maxLength: l, value: V, ref: q, onPaste: (ee) => {
150
+ var de;
151
+ ce(ee), (de = T.onPaste) == null || de.call(T, ee);
152
+ }, onChange: ue, onMouseOver: (ee) => {
153
+ var de;
154
+ F(!0), (de = T.onMouseOver) == null || de.call(T, ee);
155
+ }, onMouseLeave: (ee) => {
156
+ var de;
157
+ F(!1), (de = T.onMouseLeave) == null || de.call(T, ee);
158
+ }, onFocus: (ee) => {
159
+ var de;
160
+ se(), (de = T.onFocus) == null || de.call(T, ee);
161
+ }, onBlur: (ee) => {
162
+ var de;
163
+ W(!1), (de = T.onBlur) == null || de.call(T, ee);
164
+ } })), [ue, se, ce, p, J, l, ne, Z, T, j == null ? void 0 : j.source, V]), K = React.useMemo(() => ({ slots: Array.from({ length: l }).map((ee, de) => {
165
165
  var he;
166
- let me = z && J !== null && ie !== null && (J === ie && fe === J || fe >= J && fe < ie), ye = V[fe] !== void 0 ? V[fe] : null, pe = V[0] !== void 0 ? null : (he = f == null ? void 0 : f[fe]) != null ? he : null;
166
+ let me = z && Z !== null && ne !== null && (Z === ne && de === Z || de >= Z && de < ne), ye = V[de] !== void 0 ? V[de] : null, pe = V[0] !== void 0 ? null : (he = f == null ? void 0 : f[de]) != null ? he : null;
167
167
  return { char: ye, placeholderChar: pe, isActive: me, hasFakeCaret: me && ye === null };
168
- }), isFocused: z, isHovering: !T.disabled && K }), [z, K, l, ie, J, T.disabled, V]), de = React.useMemo(() => C ? C(Q) : React.createElement(jt.Provider, { value: Q }, S), [S, Q, C]);
169
- return React.createElement(React.Fragment, null, E !== null && React.createElement("noscript", null, React.createElement("style", null, E)), React.createElement("div", { ref: H, "data-input-otp-container": !0, style: ee, className: _ }, de, React.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, ce)));
168
+ }), isFocused: z, isHovering: !T.disabled && Q }), [z, Q, l, ne, Z, T.disabled, V]), fe = React.useMemo(() => C ? C(K) : React.createElement(jt.Provider, { value: K }, S), [S, K, C]);
169
+ return React.createElement(React.Fragment, null, E !== null && React.createElement("noscript", null, React.createElement("style", null, E)), React.createElement("div", { ref: H, "data-input-otp-container": !0, style: oe, className: _ }, fe, React.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, ie)));
170
170
  });
171
171
  Lt.displayName = "Input";
172
172
  function $(t, e) {
@@ -277,40 +277,47 @@ const createLucideIcon = (t, e) => {
277
277
  * This source code is licensed under the ISC license.
278
278
  * See the LICENSE file in the root directory of this source tree.
279
279
  */
280
- const __iconNode$E = [
280
+ const __iconNode$F = [
281
281
  ["path", { d: "M12 8V4H8", key: "hb8ula" }],
282
282
  ["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2", key: "enze0r" }],
283
283
  ["path", { d: "M2 14h2", key: "vft8re" }],
284
284
  ["path", { d: "M20 14h2", key: "4cs60a" }],
285
285
  ["path", { d: "M15 13v2", key: "1xurst" }],
286
286
  ["path", { d: "M9 13v2", key: "rq6x2g" }]
287
- ], Bot = createLucideIcon("Bot", __iconNode$E);
287
+ ], Bot = createLucideIcon("Bot", __iconNode$F);
288
288
  /**
289
289
  * @license lucide-react v0.479.0 - ISC
290
290
  *
291
291
  * This source code is licensed under the ISC license.
292
292
  * See the LICENSE file in the root directory of this source tree.
293
293
  */
294
- const __iconNode$D = [
294
+ const __iconNode$E = [
295
295
  ["path", { d: "M8 2v4", key: "1cmpym" }],
296
296
  ["path", { d: "M16 2v4", key: "4m81vk" }],
297
297
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
298
298
  ["path", { d: "M3 10h18", key: "8toen8" }]
299
- ], Calendar = createLucideIcon("Calendar", __iconNode$D);
299
+ ], Calendar = createLucideIcon("Calendar", __iconNode$E);
300
+ /**
301
+ * @license lucide-react v0.479.0 - ISC
302
+ *
303
+ * This source code is licensed under the ISC license.
304
+ * See the LICENSE file in the root directory of this source tree.
305
+ */
306
+ const __iconNode$D = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Check = createLucideIcon("Check", __iconNode$D);
300
307
  /**
301
308
  * @license lucide-react v0.479.0 - ISC
302
309
  *
303
310
  * This source code is licensed under the ISC license.
304
311
  * See the LICENSE file in the root directory of this source tree.
305
312
  */
306
- const __iconNode$C = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Check = createLucideIcon("Check", __iconNode$C);
313
+ const __iconNode$C = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ChevronDown = createLucideIcon("ChevronDown", __iconNode$C);
307
314
  /**
308
315
  * @license lucide-react v0.479.0 - ISC
309
316
  *
310
317
  * This source code is licensed under the ISC license.
311
318
  * See the LICENSE file in the root directory of this source tree.
312
319
  */
313
- const __iconNode$B = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ChevronDown = createLucideIcon("ChevronDown", __iconNode$B);
320
+ const __iconNode$B = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ChevronLeft = createLucideIcon("ChevronLeft", __iconNode$B);
314
321
  /**
315
322
  * @license lucide-react v0.479.0 - ISC
316
323
  *
@@ -1065,13 +1072,13 @@ const fromTheme = (t) => {
1065
1072
  "left-bottom"
1066
1073
  ], R = () => [...M(), isArbitraryVariable, isArbitraryValue], N = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], D = () => [isArbitraryVariable, isArbitraryValue, f], V = () => [isFraction, "full", "auto", ...D()], L = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue], B = () => ["auto", {
1067
1074
  span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
1068
- }, isInteger, isArbitraryVariable, isArbitraryValue], j = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], q = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], U = () => ["auto", ...D()], K = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...D()], F = () => [t, isArbitraryVariable, isArbitraryValue], z = () => [...M(), isArbitraryVariablePosition, isArbitraryPosition, {
1075
+ }, isInteger, isArbitraryVariable, isArbitraryValue], j = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], q = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue], H = () => ["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()], F = () => [t, isArbitraryVariable, isArbitraryValue], z = () => [...M(), isArbitraryVariablePosition, isArbitraryPosition, {
1069
1076
  position: [isArbitraryVariable, isArbitraryValue]
1070
1077
  }], W = () => ["no-repeat", {
1071
1078
  repeat: ["", "x", "y", "space", "round"]
1072
- }], J = () => ["auto", "cover", "contain", isArbitraryVariableSize, isArbitrarySize, {
1079
+ }], Z = () => ["auto", "cover", "contain", isArbitraryVariableSize, isArbitrarySize, {
1073
1080
  size: [isArbitraryVariable, isArbitraryValue]
1074
- }], ne = () => [isPercent$1, isArbitraryVariableLength, isArbitraryLength], ie = () => [
1081
+ }], te = () => [isPercent$1, isArbitraryVariableLength, isArbitraryLength], ne = () => [
1075
1082
  // Deprecated since Tailwind CSS v4.0.0
1076
1083
  "",
1077
1084
  "none",
@@ -1079,14 +1086,14 @@ const fromTheme = (t) => {
1079
1086
  p,
1080
1087
  isArbitraryVariable,
1081
1088
  isArbitraryValue
1082
- ], oe = () => ["", isNumber$2, isArbitraryVariableLength, isArbitraryLength], le = () => ["solid", "dashed", "dotted", "double"], ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], se = () => [isNumber$2, isPercent$1, isArbitraryVariablePosition, isArbitraryPosition], te = () => [
1089
+ ], ae = () => ["", isNumber$2, isArbitraryVariableLength, isArbitraryLength], le = () => ["solid", "dashed", "dotted", "double"], ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], se = () => [isNumber$2, isPercent$1, isArbitraryVariablePosition, isArbitraryPosition], ce = () => [
1083
1090
  // Deprecated since Tailwind CSS v4.0.0
1084
1091
  "",
1085
1092
  "none",
1086
1093
  E,
1087
1094
  isArbitraryVariable,
1088
1095
  isArbitraryValue
1089
- ], ee = () => ["none", isNumber$2, isArbitraryVariable, isArbitraryValue], Z = () => ["none", isNumber$2, isArbitraryVariable, isArbitraryValue], ce = () => [isNumber$2, isArbitraryVariable, isArbitraryValue], Q = () => [isFraction, "full", ...D()];
1096
+ ], oe = () => ["none", isNumber$2, isArbitraryVariable, isArbitraryValue], J = () => ["none", isNumber$2, isArbitraryVariable, isArbitraryValue], ie = () => [isNumber$2, isArbitraryVariable, isArbitraryValue], K = () => [isFraction, "full", ...D()];
1090
1097
  return {
1091
1098
  cacheSize: 500,
1092
1099
  theme: {
@@ -1710,14 +1717,14 @@ const fromTheme = (t) => {
1710
1717
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
1711
1718
  */
1712
1719
  size: [{
1713
- size: K()
1720
+ size: Q()
1714
1721
  }],
1715
1722
  /**
1716
1723
  * Width
1717
1724
  * @see https://tailwindcss.com/docs/width
1718
1725
  */
1719
1726
  w: [{
1720
- w: [d, "screen", ...K()]
1727
+ w: [d, "screen", ...Q()]
1721
1728
  }],
1722
1729
  /**
1723
1730
  * Min-Width
@@ -1729,7 +1736,7 @@ const fromTheme = (t) => {
1729
1736
  "screen",
1730
1737
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1731
1738
  "none",
1732
- ...K()
1739
+ ...Q()
1733
1740
  ]
1734
1741
  }],
1735
1742
  /**
@@ -1747,7 +1754,7 @@ const fromTheme = (t) => {
1747
1754
  {
1748
1755
  screen: [u]
1749
1756
  },
1750
- ...K()
1757
+ ...Q()
1751
1758
  ]
1752
1759
  }],
1753
1760
  /**
@@ -1755,21 +1762,21 @@ const fromTheme = (t) => {
1755
1762
  * @see https://tailwindcss.com/docs/height
1756
1763
  */
1757
1764
  h: [{
1758
- h: ["screen", ...K()]
1765
+ h: ["screen", ...Q()]
1759
1766
  }],
1760
1767
  /**
1761
1768
  * Min-Height
1762
1769
  * @see https://tailwindcss.com/docs/min-height
1763
1770
  */
1764
1771
  "min-h": [{
1765
- "min-h": ["screen", "none", ...K()]
1772
+ "min-h": ["screen", "none", ...Q()]
1766
1773
  }],
1767
1774
  /**
1768
1775
  * Max-Height
1769
1776
  * @see https://tailwindcss.com/docs/max-height
1770
1777
  */
1771
1778
  "max-h": [{
1772
- "max-h": ["screen", ...K()]
1779
+ "max-h": ["screen", ...Q()]
1773
1780
  }],
1774
1781
  // ------------------
1775
1782
  // --- Typography ---
@@ -2052,7 +2059,7 @@ const fromTheme = (t) => {
2052
2059
  * @see https://tailwindcss.com/docs/background-size
2053
2060
  */
2054
2061
  "bg-size": [{
2055
- bg: J()
2062
+ bg: Z()
2056
2063
  }],
2057
2064
  /**
2058
2065
  * Background Image
@@ -2079,21 +2086,21 @@ const fromTheme = (t) => {
2079
2086
  * @see https://tailwindcss.com/docs/gradient-color-stops
2080
2087
  */
2081
2088
  "gradient-from-pos": [{
2082
- from: ne()
2089
+ from: te()
2083
2090
  }],
2084
2091
  /**
2085
2092
  * Gradient Color Stops Via Position
2086
2093
  * @see https://tailwindcss.com/docs/gradient-color-stops
2087
2094
  */
2088
2095
  "gradient-via-pos": [{
2089
- via: ne()
2096
+ via: te()
2090
2097
  }],
2091
2098
  /**
2092
2099
  * Gradient Color Stops To Position
2093
2100
  * @see https://tailwindcss.com/docs/gradient-color-stops
2094
2101
  */
2095
2102
  "gradient-to-pos": [{
2096
- to: ne()
2103
+ to: te()
2097
2104
  }],
2098
2105
  /**
2099
2106
  * Gradient Color Stops From
@@ -2124,175 +2131,175 @@ const fromTheme = (t) => {
2124
2131
  * @see https://tailwindcss.com/docs/border-radius
2125
2132
  */
2126
2133
  rounded: [{
2127
- rounded: ie()
2134
+ rounded: ne()
2128
2135
  }],
2129
2136
  /**
2130
2137
  * Border Radius Start
2131
2138
  * @see https://tailwindcss.com/docs/border-radius
2132
2139
  */
2133
2140
  "rounded-s": [{
2134
- "rounded-s": ie()
2141
+ "rounded-s": ne()
2135
2142
  }],
2136
2143
  /**
2137
2144
  * Border Radius End
2138
2145
  * @see https://tailwindcss.com/docs/border-radius
2139
2146
  */
2140
2147
  "rounded-e": [{
2141
- "rounded-e": ie()
2148
+ "rounded-e": ne()
2142
2149
  }],
2143
2150
  /**
2144
2151
  * Border Radius Top
2145
2152
  * @see https://tailwindcss.com/docs/border-radius
2146
2153
  */
2147
2154
  "rounded-t": [{
2148
- "rounded-t": ie()
2155
+ "rounded-t": ne()
2149
2156
  }],
2150
2157
  /**
2151
2158
  * Border Radius Right
2152
2159
  * @see https://tailwindcss.com/docs/border-radius
2153
2160
  */
2154
2161
  "rounded-r": [{
2155
- "rounded-r": ie()
2162
+ "rounded-r": ne()
2156
2163
  }],
2157
2164
  /**
2158
2165
  * Border Radius Bottom
2159
2166
  * @see https://tailwindcss.com/docs/border-radius
2160
2167
  */
2161
2168
  "rounded-b": [{
2162
- "rounded-b": ie()
2169
+ "rounded-b": ne()
2163
2170
  }],
2164
2171
  /**
2165
2172
  * Border Radius Left
2166
2173
  * @see https://tailwindcss.com/docs/border-radius
2167
2174
  */
2168
2175
  "rounded-l": [{
2169
- "rounded-l": ie()
2176
+ "rounded-l": ne()
2170
2177
  }],
2171
2178
  /**
2172
2179
  * Border Radius Start Start
2173
2180
  * @see https://tailwindcss.com/docs/border-radius
2174
2181
  */
2175
2182
  "rounded-ss": [{
2176
- "rounded-ss": ie()
2183
+ "rounded-ss": ne()
2177
2184
  }],
2178
2185
  /**
2179
2186
  * Border Radius Start End
2180
2187
  * @see https://tailwindcss.com/docs/border-radius
2181
2188
  */
2182
2189
  "rounded-se": [{
2183
- "rounded-se": ie()
2190
+ "rounded-se": ne()
2184
2191
  }],
2185
2192
  /**
2186
2193
  * Border Radius End End
2187
2194
  * @see https://tailwindcss.com/docs/border-radius
2188
2195
  */
2189
2196
  "rounded-ee": [{
2190
- "rounded-ee": ie()
2197
+ "rounded-ee": ne()
2191
2198
  }],
2192
2199
  /**
2193
2200
  * Border Radius End Start
2194
2201
  * @see https://tailwindcss.com/docs/border-radius
2195
2202
  */
2196
2203
  "rounded-es": [{
2197
- "rounded-es": ie()
2204
+ "rounded-es": ne()
2198
2205
  }],
2199
2206
  /**
2200
2207
  * Border Radius Top Left
2201
2208
  * @see https://tailwindcss.com/docs/border-radius
2202
2209
  */
2203
2210
  "rounded-tl": [{
2204
- "rounded-tl": ie()
2211
+ "rounded-tl": ne()
2205
2212
  }],
2206
2213
  /**
2207
2214
  * Border Radius Top Right
2208
2215
  * @see https://tailwindcss.com/docs/border-radius
2209
2216
  */
2210
2217
  "rounded-tr": [{
2211
- "rounded-tr": ie()
2218
+ "rounded-tr": ne()
2212
2219
  }],
2213
2220
  /**
2214
2221
  * Border Radius Bottom Right
2215
2222
  * @see https://tailwindcss.com/docs/border-radius
2216
2223
  */
2217
2224
  "rounded-br": [{
2218
- "rounded-br": ie()
2225
+ "rounded-br": ne()
2219
2226
  }],
2220
2227
  /**
2221
2228
  * Border Radius Bottom Left
2222
2229
  * @see https://tailwindcss.com/docs/border-radius
2223
2230
  */
2224
2231
  "rounded-bl": [{
2225
- "rounded-bl": ie()
2232
+ "rounded-bl": ne()
2226
2233
  }],
2227
2234
  /**
2228
2235
  * Border Width
2229
2236
  * @see https://tailwindcss.com/docs/border-width
2230
2237
  */
2231
2238
  "border-w": [{
2232
- border: oe()
2239
+ border: ae()
2233
2240
  }],
2234
2241
  /**
2235
2242
  * Border Width X
2236
2243
  * @see https://tailwindcss.com/docs/border-width
2237
2244
  */
2238
2245
  "border-w-x": [{
2239
- "border-x": oe()
2246
+ "border-x": ae()
2240
2247
  }],
2241
2248
  /**
2242
2249
  * Border Width Y
2243
2250
  * @see https://tailwindcss.com/docs/border-width
2244
2251
  */
2245
2252
  "border-w-y": [{
2246
- "border-y": oe()
2253
+ "border-y": ae()
2247
2254
  }],
2248
2255
  /**
2249
2256
  * Border Width Start
2250
2257
  * @see https://tailwindcss.com/docs/border-width
2251
2258
  */
2252
2259
  "border-w-s": [{
2253
- "border-s": oe()
2260
+ "border-s": ae()
2254
2261
  }],
2255
2262
  /**
2256
2263
  * Border Width End
2257
2264
  * @see https://tailwindcss.com/docs/border-width
2258
2265
  */
2259
2266
  "border-w-e": [{
2260
- "border-e": oe()
2267
+ "border-e": ae()
2261
2268
  }],
2262
2269
  /**
2263
2270
  * Border Width Top
2264
2271
  * @see https://tailwindcss.com/docs/border-width
2265
2272
  */
2266
2273
  "border-w-t": [{
2267
- "border-t": oe()
2274
+ "border-t": ae()
2268
2275
  }],
2269
2276
  /**
2270
2277
  * Border Width Right
2271
2278
  * @see https://tailwindcss.com/docs/border-width
2272
2279
  */
2273
2280
  "border-w-r": [{
2274
- "border-r": oe()
2281
+ "border-r": ae()
2275
2282
  }],
2276
2283
  /**
2277
2284
  * Border Width Bottom
2278
2285
  * @see https://tailwindcss.com/docs/border-width
2279
2286
  */
2280
2287
  "border-w-b": [{
2281
- "border-b": oe()
2288
+ "border-b": ae()
2282
2289
  }],
2283
2290
  /**
2284
2291
  * Border Width Left
2285
2292
  * @see https://tailwindcss.com/docs/border-width
2286
2293
  */
2287
2294
  "border-w-l": [{
2288
- "border-l": oe()
2295
+ "border-l": ae()
2289
2296
  }],
2290
2297
  /**
2291
2298
  * Divide Width X
2292
2299
  * @see https://tailwindcss.com/docs/border-width#between-children
2293
2300
  */
2294
2301
  "divide-x": [{
2295
- "divide-x": oe()
2302
+ "divide-x": ae()
2296
2303
  }],
2297
2304
  /**
2298
2305
  * Divide Width X Reverse
@@ -2304,7 +2311,7 @@ const fromTheme = (t) => {
2304
2311
  * @see https://tailwindcss.com/docs/border-width#between-children
2305
2312
  */
2306
2313
  "divide-y": [{
2307
- "divide-y": oe()
2314
+ "divide-y": ae()
2308
2315
  }],
2309
2316
  /**
2310
2317
  * Divide Width Y Reverse
@@ -2466,7 +2473,7 @@ const fromTheme = (t) => {
2466
2473
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2467
2474
  */
2468
2475
  "ring-w": [{
2469
- ring: oe()
2476
+ ring: ae()
2470
2477
  }],
2471
2478
  /**
2472
2479
  * Ring Width Inset
@@ -2505,7 +2512,7 @@ const fromTheme = (t) => {
2505
2512
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2506
2513
  */
2507
2514
  "inset-ring-w": [{
2508
- "inset-ring": oe()
2515
+ "inset-ring": ae()
2509
2516
  }],
2510
2517
  /**
2511
2518
  * Inset Ring Color
@@ -2729,7 +2736,7 @@ const fromTheme = (t) => {
2729
2736
  * @see https://tailwindcss.com/docs/mask-size
2730
2737
  */
2731
2738
  "mask-size": [{
2732
- mask: J()
2739
+ mask: Z()
2733
2740
  }],
2734
2741
  /**
2735
2742
  * Mask Type
@@ -2766,7 +2773,7 @@ const fromTheme = (t) => {
2766
2773
  * @see https://tailwindcss.com/docs/blur
2767
2774
  */
2768
2775
  blur: [{
2769
- blur: te()
2776
+ blur: ce()
2770
2777
  }],
2771
2778
  /**
2772
2779
  * Brightness
@@ -2856,7 +2863,7 @@ const fromTheme = (t) => {
2856
2863
  * @see https://tailwindcss.com/docs/backdrop-blur
2857
2864
  */
2858
2865
  "backdrop-blur": [{
2859
- "backdrop-blur": te()
2866
+ "backdrop-blur": ce()
2860
2867
  }],
2861
2868
  /**
2862
2869
  * Backdrop Brightness
@@ -3033,56 +3040,56 @@ const fromTheme = (t) => {
3033
3040
  * @see https://tailwindcss.com/docs/rotate
3034
3041
  */
3035
3042
  rotate: [{
3036
- rotate: ee()
3043
+ rotate: oe()
3037
3044
  }],
3038
3045
  /**
3039
3046
  * Rotate X
3040
3047
  * @see https://tailwindcss.com/docs/rotate
3041
3048
  */
3042
3049
  "rotate-x": [{
3043
- "rotate-x": ee()
3050
+ "rotate-x": oe()
3044
3051
  }],
3045
3052
  /**
3046
3053
  * Rotate Y
3047
3054
  * @see https://tailwindcss.com/docs/rotate
3048
3055
  */
3049
3056
  "rotate-y": [{
3050
- "rotate-y": ee()
3057
+ "rotate-y": oe()
3051
3058
  }],
3052
3059
  /**
3053
3060
  * Rotate Z
3054
3061
  * @see https://tailwindcss.com/docs/rotate
3055
3062
  */
3056
3063
  "rotate-z": [{
3057
- "rotate-z": ee()
3064
+ "rotate-z": oe()
3058
3065
  }],
3059
3066
  /**
3060
3067
  * Scale
3061
3068
  * @see https://tailwindcss.com/docs/scale
3062
3069
  */
3063
3070
  scale: [{
3064
- scale: Z()
3071
+ scale: J()
3065
3072
  }],
3066
3073
  /**
3067
3074
  * Scale X
3068
3075
  * @see https://tailwindcss.com/docs/scale
3069
3076
  */
3070
3077
  "scale-x": [{
3071
- "scale-x": Z()
3078
+ "scale-x": J()
3072
3079
  }],
3073
3080
  /**
3074
3081
  * Scale Y
3075
3082
  * @see https://tailwindcss.com/docs/scale
3076
3083
  */
3077
3084
  "scale-y": [{
3078
- "scale-y": Z()
3085
+ "scale-y": J()
3079
3086
  }],
3080
3087
  /**
3081
3088
  * Scale Z
3082
3089
  * @see https://tailwindcss.com/docs/scale
3083
3090
  */
3084
3091
  "scale-z": [{
3085
- "scale-z": Z()
3092
+ "scale-z": J()
3086
3093
  }],
3087
3094
  /**
3088
3095
  * Scale 3D
@@ -3094,21 +3101,21 @@ const fromTheme = (t) => {
3094
3101
  * @see https://tailwindcss.com/docs/skew
3095
3102
  */
3096
3103
  skew: [{
3097
- skew: ce()
3104
+ skew: ie()
3098
3105
  }],
3099
3106
  /**
3100
3107
  * Skew X
3101
3108
  * @see https://tailwindcss.com/docs/skew
3102
3109
  */
3103
3110
  "skew-x": [{
3104
- "skew-x": ce()
3111
+ "skew-x": ie()
3105
3112
  }],
3106
3113
  /**
3107
3114
  * Skew Y
3108
3115
  * @see https://tailwindcss.com/docs/skew
3109
3116
  */
3110
3117
  "skew-y": [{
3111
- "skew-y": ce()
3118
+ "skew-y": ie()
3112
3119
  }],
3113
3120
  /**
3114
3121
  * Transform
@@ -3136,28 +3143,28 @@ const fromTheme = (t) => {
3136
3143
  * @see https://tailwindcss.com/docs/translate
3137
3144
  */
3138
3145
  translate: [{
3139
- translate: Q()
3146
+ translate: K()
3140
3147
  }],
3141
3148
  /**
3142
3149
  * Translate X
3143
3150
  * @see https://tailwindcss.com/docs/translate
3144
3151
  */
3145
3152
  "translate-x": [{
3146
- "translate-x": Q()
3153
+ "translate-x": K()
3147
3154
  }],
3148
3155
  /**
3149
3156
  * Translate Y
3150
3157
  * @see https://tailwindcss.com/docs/translate
3151
3158
  */
3152
3159
  "translate-y": [{
3153
- "translate-y": Q()
3160
+ "translate-y": K()
3154
3161
  }],
3155
3162
  /**
3156
3163
  * Translate Z
3157
3164
  * @see https://tailwindcss.com/docs/translate
3158
3165
  */
3159
3166
  "translate-z": [{
3160
- "translate-z": Q()
3167
+ "translate-z": K()
3161
3168
  }],
3162
3169
  /**
3163
3170
  * Translate None
@@ -5283,14 +5290,14 @@ const arrow$3 = (t) => ({
5283
5290
  }, _ = getAlignmentAxis(o), E = getAxisLength(_), C = await u.getDimensions(p), S = _ === "y", T = S ? "top" : "left", A = S ? "bottom" : "right", I = S ? "clientHeight" : "clientWidth", M = l.reference[E] + l.reference[_] - b[_] - l.floating[E], R = b[_] - l.reference[_], N = await (u.getOffsetParent == null ? void 0 : u.getOffsetParent(p));
5284
5291
  let O = N ? N[I] : 0;
5285
5292
  (!O || !await (u.isElement == null ? void 0 : u.isElement(N))) && (O = d.floating[I] || l.floating[E]);
5286
- const D = M / 2 - R / 2, V = O / 2 - C[E] / 2 - 1, L = min$2(g[T], V), B = min$2(g[A], V), j = L, q = O - C[E] - B, H = O / 2 - C[E] / 2 + D, G = clamp$1(j, H, q), U = !f.arrow && getAlignment(o) != null && H !== G && l.reference[E] / 2 - (H < j ? L : B) - C[E] / 2 < 0, K = U ? H < j ? H - j : H - q : 0;
5293
+ const D = M / 2 - R / 2, V = O / 2 - C[E] / 2 - 1, L = min$2(g[T], V), B = min$2(g[A], V), j = L, q = O - C[E] - B, H = O / 2 - C[E] / 2 + D, G = clamp$1(j, H, q), U = !f.arrow && getAlignment(o) != null && H !== G && l.reference[E] / 2 - (H < j ? L : B) - C[E] / 2 < 0, Q = U ? H < j ? H - j : H - q : 0;
5287
5294
  return {
5288
- [_]: b[_] + K,
5295
+ [_]: b[_] + Q,
5289
5296
  data: {
5290
5297
  [_]: G,
5291
- centerOffset: H - G - K,
5298
+ centerOffset: H - G - Q,
5292
5299
  ...U && {
5293
- alignmentOffset: K
5300
+ alignmentOffset: Q
5294
5301
  }
5295
5302
  },
5296
5303
  reset: U
@@ -5344,12 +5351,12 @@ const arrow$3 = (t) => ({
5344
5351
  placement: G
5345
5352
  }
5346
5353
  };
5347
- let U = (j = L.filter((K) => K.overflows[0] <= 0).sort((K, F) => K.overflows[1] - F.overflows[1])[0]) == null ? void 0 : j.placement;
5354
+ let U = (j = L.filter((Q) => Q.overflows[0] <= 0).sort((Q, F) => Q.overflows[1] - F.overflows[1])[0]) == null ? void 0 : j.placement;
5348
5355
  if (!U)
5349
5356
  switch (_) {
5350
5357
  case "bestFit": {
5351
5358
  var q;
5352
- const K = (q = L.filter((F) => {
5359
+ const Q = (q = L.filter((F) => {
5353
5360
  if (N) {
5354
5361
  const z = getSideAxis(F.placement);
5355
5362
  return z === A || // Create a bias to the `y` side axis due to horizontal
@@ -5358,7 +5365,7 @@ const arrow$3 = (t) => ({
5358
5365
  }
5359
5366
  return !0;
5360
5367
  }).map((F) => [F.placement, F.overflows.filter((z) => z > 0).reduce((z, W) => z + W, 0)]).sort((F, z) => F[1] - z[1])[0]) == null ? void 0 : q[0];
5361
- K && (U = K);
5368
+ Q && (U = Q);
5362
5369
  break;
5363
5370
  }
5364
5371
  case "initialPlacement":
@@ -6222,7 +6229,7 @@ function useFloating(t) {
6222
6229
  }), [A, I]), U = React.useMemo(() => ({
6223
6230
  reference: M,
6224
6231
  floating: R
6225
- }), [M, R]), K = React.useMemo(() => {
6232
+ }), [M, R]), Q = React.useMemo(() => {
6226
6233
  const F = {
6227
6234
  position: n,
6228
6235
  left: 0,
@@ -6248,8 +6255,8 @@ function useFloating(t) {
6248
6255
  update: q,
6249
6256
  refs: G,
6250
6257
  elements: U,
6251
- floatingStyles: K
6252
- }), [m, q, G, U, K]);
6258
+ floatingStyles: Q
6259
+ }), [m, q, G, U, Q]);
6253
6260
  }
6254
6261
  const arrow$1 = (t) => {
6255
6262
  function e(n) {
@@ -6349,7 +6356,7 @@ var ANCHOR_NAME$1 = "PopperAnchor", PopperAnchor = React.forwardRef(
6349
6356
  PopperAnchor.displayName = ANCHOR_NAME$1;
6350
6357
  var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$5), PopperContent = React.forwardRef(
6351
6358
  (t, e) => {
6352
- var se, te, ee, Z, ce, Q;
6359
+ var se, ce, oe, J, ie, K;
6353
6360
  const {
6354
6361
  __scopePopper: n,
6355
6362
  side: i = "bottom",
@@ -6365,16 +6372,16 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
6365
6372
  updatePositionStrategy: _ = "optimized",
6366
6373
  onPlaced: E,
6367
6374
  ...C
6368
- } = t, S = usePopperContext(CONTENT_NAME$5, n), [T, A] = React.useState(null), I = useComposedRefs(e, (de) => A(de)), [M, R] = 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 : ""), L = typeof m == "number" ? m : { top: 0, right: 0, bottom: 0, left: 0, ...m }, B = Array.isArray(p) ? p : [p], j = B.length > 0, q = {
6375
+ } = t, S = usePopperContext(CONTENT_NAME$5, n), [T, A] = React.useState(null), I = useComposedRefs(e, (fe) => A(fe)), [M, R] = 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 : ""), L = typeof m == "number" ? m : { top: 0, right: 0, bottom: 0, left: 0, ...m }, B = Array.isArray(p) ? p : [p], j = B.length > 0, q = {
6369
6376
  padding: L,
6370
6377
  boundary: B.filter(isNotNull),
6371
6378
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
6372
6379
  altBoundary: j
6373
- }, { refs: H, floatingStyles: G, placement: U, isPositioned: K, middlewareData: F } = useFloating({
6380
+ }, { refs: H, floatingStyles: G, placement: U, isPositioned: Q, middlewareData: F } = useFloating({
6374
6381
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
6375
6382
  strategy: "fixed",
6376
6383
  placement: V,
6377
- whileElementsMounted: (...de) => autoUpdate(...de, {
6384
+ whileElementsMounted: (...fe) => autoUpdate(...fe, {
6378
6385
  animationFrame: _ === "always"
6379
6386
  }),
6380
6387
  elements: {
@@ -6391,20 +6398,20 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
6391
6398
  f && flip({ ...q }),
6392
6399
  size({
6393
6400
  ...q,
6394
- apply: ({ elements: de, rects: ae, availableWidth: fe, availableHeight: he }) => {
6395
- const { width: me, height: ye } = ae.reference, pe = de.floating.style;
6396
- 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`);
6401
+ apply: ({ elements: fe, rects: ee, availableWidth: de, availableHeight: he }) => {
6402
+ const { width: me, height: ye } = ee.reference, pe = fe.floating.style;
6403
+ pe.setProperty("--radix-popper-available-width", `${de}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`);
6397
6404
  }
6398
6405
  }),
6399
6406
  M && arrow({ element: M, padding: d }),
6400
6407
  transformOrigin({ arrowWidth: O, arrowHeight: D }),
6401
6408
  b && hide({ strategy: "referenceHidden", ...q })
6402
6409
  ]
6403
- }), [z, W] = getSideAndAlignFromPlacement(U), J = useCallbackRef$1(E);
6410
+ }), [z, W] = getSideAndAlignFromPlacement(U), Z = useCallbackRef$1(E);
6404
6411
  useLayoutEffect2(() => {
6405
- K && (J == null || J());
6406
- }, [K, J]);
6407
- const ne = (se = F.arrow) == null ? void 0 : se.x, ie = (te = F.arrow) == null ? void 0 : te.y, oe = ((ee = F.arrow) == null ? void 0 : ee.centerOffset) !== 0, [le, ue] = React.useState();
6412
+ Q && (Z == null || Z());
6413
+ }, [Q, Z]);
6414
+ const te = (se = F.arrow) == null ? void 0 : se.x, ne = (ce = F.arrow) == null ? void 0 : ce.y, ae = ((oe = F.arrow) == null ? void 0 : oe.centerOffset) !== 0, [le, ue] = React.useState();
6408
6415
  return useLayoutEffect2(() => {
6409
6416
  T && ue(window.getComputedStyle(T).zIndex);
6410
6417
  }, [T]), /* @__PURE__ */ jsx(
@@ -6414,18 +6421,18 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
6414
6421
  "data-radix-popper-content-wrapper": "",
6415
6422
  style: {
6416
6423
  ...G,
6417
- transform: K ? G.transform : "translate(0, -200%)",
6424
+ transform: Q ? G.transform : "translate(0, -200%)",
6418
6425
  // keep off the page when measuring
6419
6426
  minWidth: "max-content",
6420
6427
  zIndex: le,
6421
6428
  "--radix-popper-transform-origin": [
6422
- (Z = F.transformOrigin) == null ? void 0 : Z.x,
6423
- (ce = F.transformOrigin) == null ? void 0 : ce.y
6429
+ (J = F.transformOrigin) == null ? void 0 : J.x,
6430
+ (ie = F.transformOrigin) == null ? void 0 : ie.y
6424
6431
  ].join(" "),
6425
6432
  // hide the content if using the hide middleware and should be hidden
6426
6433
  // set visibility to hidden and disable pointer events so the UI behaves
6427
6434
  // as if the PopperContent isn't there at all
6428
- ...((Q = F.hide) == null ? void 0 : Q.referenceHidden) && {
6435
+ ...((K = F.hide) == null ? void 0 : K.referenceHidden) && {
6429
6436
  visibility: "hidden",
6430
6437
  pointerEvents: "none"
6431
6438
  }
@@ -6437,9 +6444,9 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
6437
6444
  scope: n,
6438
6445
  placedSide: z,
6439
6446
  onArrowChange: R,
6440
- arrowX: ne,
6441
- arrowY: ie,
6442
- shouldHideArrow: oe,
6447
+ arrowX: te,
6448
+ arrowY: ne,
6449
+ shouldHideArrow: ae,
6443
6450
  children: /* @__PURE__ */ jsx(
6444
6451
  Primitive.div,
6445
6452
  {
@@ -6451,7 +6458,7 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
6451
6458
  ...C.style,
6452
6459
  // if the PopperContent hasn't been placed yet (not all measurements done)
6453
6460
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
6454
- animation: K ? void 0 : "none"
6461
+ animation: Q ? void 0 : "none"
6455
6462
  }
6456
6463
  }
6457
6464
  )
@@ -6805,17 +6812,17 @@ var CONTENT_NAME$4 = "MenuContent", [MenuContentProvider, useMenuContentContext]
6805
6812
  onDismiss: _,
6806
6813
  disableOutsideScroll: E,
6807
6814
  ...C
6808
- } = t, S = useMenuContext(CONTENT_NAME$4, n), T = useMenuRootContext(CONTENT_NAME$4, n), A = usePopperScope$2(n), I = useRovingFocusGroupScope$1(n), M = useCollection$2(n), [R, N] = React.useState(null), O = React.useRef(null), D = useComposedRefs(e, O, S.onContentChange), V = React.useRef(0), L = React.useRef(""), B = React.useRef(0), j = React.useRef(null), q = React.useRef("right"), H = React.useRef(0), G = E ? ReactRemoveScroll : React.Fragment, U = E ? { as: Slot$1, allowPinchZoom: !0 } : void 0, K = (z) => {
6809
- var se, te;
6810
- const W = L.current + z, J = M().filter((ee) => !ee.disabled), ne = document.activeElement, ie = (se = J.find((ee) => ee.ref.current === ne)) == null ? void 0 : se.textValue, oe = J.map((ee) => ee.textValue), le = getNextMatch(oe, W, ie), ue = (te = J.find((ee) => ee.textValue === le)) == null ? void 0 : te.ref.current;
6811
- (function ee(Z) {
6812
- L.current = Z, window.clearTimeout(V.current), Z !== "" && (V.current = window.setTimeout(() => ee(""), 1e3));
6815
+ } = t, S = useMenuContext(CONTENT_NAME$4, n), T = useMenuRootContext(CONTENT_NAME$4, n), A = usePopperScope$2(n), I = useRovingFocusGroupScope$1(n), M = useCollection$2(n), [R, N] = React.useState(null), O = React.useRef(null), D = useComposedRefs(e, O, S.onContentChange), V = React.useRef(0), L = React.useRef(""), B = React.useRef(0), j = React.useRef(null), q = React.useRef("right"), H = React.useRef(0), G = E ? ReactRemoveScroll : React.Fragment, U = E ? { as: Slot$1, allowPinchZoom: !0 } : void 0, Q = (z) => {
6816
+ var se, ce;
6817
+ const W = L.current + z, Z = M().filter((oe) => !oe.disabled), te = document.activeElement, ne = (se = Z.find((oe) => oe.ref.current === te)) == null ? void 0 : se.textValue, ae = Z.map((oe) => oe.textValue), le = getNextMatch(ae, W, ne), ue = (ce = Z.find((oe) => oe.textValue === le)) == null ? void 0 : ce.ref.current;
6818
+ (function oe(J) {
6819
+ L.current = J, window.clearTimeout(V.current), J !== "" && (V.current = window.setTimeout(() => oe(""), 1e3));
6813
6820
  })(W), ue && setTimeout(() => ue.focus());
6814
6821
  };
6815
6822
  React.useEffect(() => () => window.clearTimeout(V.current), []), useFocusGuards();
6816
6823
  const F = React.useCallback((z) => {
6817
- var J, ne;
6818
- return q.current === ((J = j.current) == null ? void 0 : J.side) && isPointerInGraceArea(z, (ne = j.current) == null ? void 0 : ne.area);
6824
+ var Z, te;
6825
+ return q.current === ((Z = j.current) == null ? void 0 : Z.side) && isPointerInGraceArea(z, (te = j.current) == null ? void 0 : te.area);
6819
6826
  }, []);
6820
6827
  return /* @__PURE__ */ jsx(
6821
6828
  MenuContentProvider,
@@ -6892,10 +6899,10 @@ var CONTENT_NAME$4 = "MenuContent", [MenuContentProvider, useMenuContentContext]
6892
6899
  ref: D,
6893
6900
  style: { outline: "none", ...C.style },
6894
6901
  onKeyDown: composeEventHandlers(C.onKeyDown, (z) => {
6895
- const J = z.target.closest("[data-radix-menu-content]") === z.currentTarget, ne = z.ctrlKey || z.altKey || z.metaKey, ie = z.key.length === 1;
6896
- J && (z.key === "Tab" && z.preventDefault(), !ne && ie && K(z.key));
6897
- const oe = O.current;
6898
- if (z.target !== oe || !FIRST_LAST_KEYS.includes(z.key)) return;
6902
+ const Z = z.target.closest("[data-radix-menu-content]") === z.currentTarget, te = z.ctrlKey || z.altKey || z.metaKey, ne = z.key.length === 1;
6903
+ Z && (z.key === "Tab" && z.preventDefault(), !te && ne && Q(z.key));
6904
+ const ae = O.current;
6905
+ if (z.target !== ae || !FIRST_LAST_KEYS.includes(z.key)) return;
6899
6906
  z.preventDefault();
6900
6907
  const ue = M().filter((se) => !se.disabled).map((se) => se.ref.current);
6901
6908
  LAST_KEYS.includes(z.key) && ue.reverse(), focusFirst$1(ue);
@@ -6906,10 +6913,10 @@ var CONTENT_NAME$4 = "MenuContent", [MenuContentProvider, useMenuContentContext]
6906
6913
  onPointerMove: composeEventHandlers(
6907
6914
  t.onPointerMove,
6908
6915
  whenMouse((z) => {
6909
- const W = z.target, J = H.current !== z.clientX;
6910
- if (z.currentTarget.contains(W) && J) {
6911
- const ne = z.clientX > H.current ? "right" : "left";
6912
- q.current = ne, H.current = z.clientX;
6916
+ const W = z.target, Z = H.current !== z.clientX;
6917
+ if (z.currentTarget.contains(W) && Z) {
6918
+ const te = z.clientX > H.current ? "right" : "left";
6919
+ q.current = te, H.current = z.clientX;
6913
6920
  }
6914
6921
  })
6915
6922
  )
@@ -9081,8 +9088,8 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
9081
9088
  const G = () => {
9082
9089
  j(O.current), p == null || p();
9083
9090
  }, U = () => {
9084
- const K = (/* @__PURE__ */ new Date()).getTime() - N.current;
9085
- O.current = O.current - K, window.clearTimeout(D.current), f == null || f();
9091
+ const Q = (/* @__PURE__ */ new Date()).getTime() - N.current;
9092
+ O.current = O.current - Q, window.clearTimeout(D.current), f == null || f();
9086
9093
  };
9087
9094
  return H.addEventListener(VIEWPORT_PAUSE, U), H.addEventListener(VIEWPORT_RESUME, G), () => {
9088
9095
  H.removeEventListener(VIEWPORT_PAUSE, U), H.removeEventListener(VIEWPORT_RESUME, G);
@@ -9131,17 +9138,17 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
9131
9138
  }),
9132
9139
  onPointerMove: composeEventHandlers(t.onPointerMove, (H) => {
9133
9140
  if (!I.current) return;
9134
- const G = H.clientX - I.current.x, U = H.clientY - I.current.y, K = !!M.current, F = ["left", "right"].includes(C.swipeDirection), z = ["left", "up"].includes(C.swipeDirection) ? Math.min : Math.max, W = F ? z(0, G) : 0, J = F ? 0 : z(0, U), ne = H.pointerType === "touch" ? 10 : 2, ie = { x: W, y: J }, oe = { originalEvent: H, delta: ie };
9135
- K ? (M.current = ie, handleAndDispatchCustomEvent(TOAST_SWIPE_MOVE, g, oe, {
9141
+ const G = H.clientX - I.current.x, U = H.clientY - I.current.y, Q = !!M.current, F = ["left", "right"].includes(C.swipeDirection), z = ["left", "up"].includes(C.swipeDirection) ? Math.min : Math.max, W = F ? z(0, G) : 0, Z = F ? 0 : z(0, U), te = H.pointerType === "touch" ? 10 : 2, ne = { x: W, y: Z }, ae = { originalEvent: H, delta: ne };
9142
+ Q ? (M.current = ne, handleAndDispatchCustomEvent(TOAST_SWIPE_MOVE, g, ae, {
9136
9143
  discrete: !1
9137
- })) : isDeltaInDirection(ie, C.swipeDirection, ne) ? (M.current = ie, handleAndDispatchCustomEvent(TOAST_SWIPE_START, m, oe, {
9144
+ })) : isDeltaInDirection(ne, C.swipeDirection, te) ? (M.current = ne, handleAndDispatchCustomEvent(TOAST_SWIPE_START, m, ae, {
9138
9145
  discrete: !1
9139
- }), H.target.setPointerCapture(H.pointerId)) : (Math.abs(G) > ne || Math.abs(U) > ne) && (I.current = null);
9146
+ }), H.target.setPointerCapture(H.pointerId)) : (Math.abs(G) > te || Math.abs(U) > te) && (I.current = null);
9140
9147
  }),
9141
9148
  onPointerUp: composeEventHandlers(t.onPointerUp, (H) => {
9142
9149
  const G = M.current, U = H.target;
9143
9150
  if (U.hasPointerCapture(H.pointerId) && U.releasePointerCapture(H.pointerId), M.current = null, I.current = null, G) {
9144
- const K = H.currentTarget, F = { originalEvent: H, delta: G };
9151
+ const Q = H.currentTarget, F = { originalEvent: H, delta: G };
9145
9152
  isDeltaInDirection(G, C.swipeDirection, C.swipeThreshold) ? handleAndDispatchCustomEvent(TOAST_SWIPE_END, _, F, {
9146
9153
  discrete: !0
9147
9154
  }) : handleAndDispatchCustomEvent(
@@ -9151,7 +9158,7 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
9151
9158
  {
9152
9159
  discrete: !0
9153
9160
  }
9154
- ), K.addEventListener("click", (z) => z.preventDefault(), {
9161
+ ), Q.addEventListener("click", (z) => z.preventDefault(), {
9155
9162
  once: !0
9156
9163
  });
9157
9164
  }
@@ -10142,19 +10149,19 @@ function requireReactIs_development$1() {
10142
10149
  return hasRequiredReactIs_development$1 || (hasRequiredReactIs_development$1 = 1, process.env.NODE_ENV !== "production" && function() {
10143
10150
  var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.server_context"), f = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), E = !1, C = !1, S = !1, T = !1, A = !1, I;
10144
10151
  I = Symbol.for("react.module.reference");
10145
- function M(ae) {
10146
- return !!(typeof ae == "string" || typeof ae == "function" || ae === n || ae === o || A || ae === i || ae === p || ae === m || T || ae === _ || E || C || S || typeof ae == "object" && ae !== null && (ae.$$typeof === b || ae.$$typeof === g || ae.$$typeof === l || ae.$$typeof === u || ae.$$typeof === f || // This needs to include all possible module reference object
10152
+ function M(ee) {
10153
+ return !!(typeof ee == "string" || typeof ee == "function" || ee === n || ee === o || A || ee === i || ee === p || ee === m || T || ee === _ || E || C || S || typeof ee == "object" && ee !== null && (ee.$$typeof === b || ee.$$typeof === g || ee.$$typeof === l || ee.$$typeof === u || ee.$$typeof === f || // This needs to include all possible module reference object
10147
10154
  // types supported by any Flight configuration anywhere since
10148
10155
  // we don't know which Flight build this will end up being used
10149
10156
  // with.
10150
- ae.$$typeof === I || ae.getModuleId !== void 0));
10157
+ ee.$$typeof === I || ee.getModuleId !== void 0));
10151
10158
  }
10152
- function R(ae) {
10153
- if (typeof ae == "object" && ae !== null) {
10154
- var fe = ae.$$typeof;
10155
- switch (fe) {
10159
+ function R(ee) {
10160
+ if (typeof ee == "object" && ee !== null) {
10161
+ var de = ee.$$typeof;
10162
+ switch (de) {
10156
10163
  case t:
10157
- var he = ae.type;
10164
+ var he = ee.type;
10158
10165
  switch (he) {
10159
10166
  case n:
10160
10167
  case o:
@@ -10173,58 +10180,58 @@ function requireReactIs_development$1() {
10173
10180
  case l:
10174
10181
  return me;
10175
10182
  default:
10176
- return fe;
10183
+ return de;
10177
10184
  }
10178
10185
  }
10179
10186
  case e:
10180
- return fe;
10187
+ return de;
10181
10188
  }
10182
10189
  }
10183
10190
  }
10184
- var N = u, O = l, D = t, V = f, L = n, B = b, j = g, q = e, H = o, G = i, U = p, K = m, F = !1, z = !1;
10185
- function W(ae) {
10191
+ var N = u, O = l, D = t, V = f, L = n, B = b, j = g, q = e, H = o, G = i, U = p, Q = m, F = !1, z = !1;
10192
+ function W(ee) {
10186
10193
  return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
10187
10194
  }
10188
- function J(ae) {
10195
+ function Z(ee) {
10189
10196
  return z || (z = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
10190
10197
  }
10191
- function ne(ae) {
10192
- return R(ae) === u;
10198
+ function te(ee) {
10199
+ return R(ee) === u;
10193
10200
  }
10194
- function ie(ae) {
10195
- return R(ae) === l;
10201
+ function ne(ee) {
10202
+ return R(ee) === l;
10196
10203
  }
10197
- function oe(ae) {
10198
- return typeof ae == "object" && ae !== null && ae.$$typeof === t;
10204
+ function ae(ee) {
10205
+ return typeof ee == "object" && ee !== null && ee.$$typeof === t;
10199
10206
  }
10200
- function le(ae) {
10201
- return R(ae) === f;
10207
+ function le(ee) {
10208
+ return R(ee) === f;
10202
10209
  }
10203
- function ue(ae) {
10204
- return R(ae) === n;
10210
+ function ue(ee) {
10211
+ return R(ee) === n;
10205
10212
  }
10206
- function se(ae) {
10207
- return R(ae) === b;
10213
+ function se(ee) {
10214
+ return R(ee) === b;
10208
10215
  }
10209
- function te(ae) {
10210
- return R(ae) === g;
10216
+ function ce(ee) {
10217
+ return R(ee) === g;
10211
10218
  }
10212
- function ee(ae) {
10213
- return R(ae) === e;
10219
+ function oe(ee) {
10220
+ return R(ee) === e;
10214
10221
  }
10215
- function Z(ae) {
10216
- return R(ae) === o;
10222
+ function J(ee) {
10223
+ return R(ee) === o;
10217
10224
  }
10218
- function ce(ae) {
10219
- return R(ae) === i;
10225
+ function ie(ee) {
10226
+ return R(ee) === i;
10220
10227
  }
10221
- function Q(ae) {
10222
- return R(ae) === p;
10228
+ function K(ee) {
10229
+ return R(ee) === p;
10223
10230
  }
10224
- function de(ae) {
10225
- return R(ae) === m;
10231
+ function fe(ee) {
10232
+ return R(ee) === m;
10226
10233
  }
10227
- reactIs_development$1.ContextConsumer = N, reactIs_development$1.ContextProvider = O, reactIs_development$1.Element = D, reactIs_development$1.ForwardRef = V, reactIs_development$1.Fragment = L, reactIs_development$1.Lazy = B, reactIs_development$1.Memo = j, reactIs_development$1.Portal = q, reactIs_development$1.Profiler = H, reactIs_development$1.StrictMode = G, reactIs_development$1.Suspense = U, reactIs_development$1.SuspenseList = K, reactIs_development$1.isAsyncMode = W, reactIs_development$1.isConcurrentMode = J, reactIs_development$1.isContextConsumer = ne, reactIs_development$1.isContextProvider = ie, reactIs_development$1.isElement = oe, reactIs_development$1.isForwardRef = le, reactIs_development$1.isFragment = ue, reactIs_development$1.isLazy = se, reactIs_development$1.isMemo = te, reactIs_development$1.isPortal = ee, reactIs_development$1.isProfiler = Z, reactIs_development$1.isStrictMode = ce, reactIs_development$1.isSuspense = Q, reactIs_development$1.isSuspenseList = de, reactIs_development$1.isValidElementType = M, reactIs_development$1.typeOf = R;
10234
+ reactIs_development$1.ContextConsumer = N, reactIs_development$1.ContextProvider = O, reactIs_development$1.Element = D, reactIs_development$1.ForwardRef = V, reactIs_development$1.Fragment = L, reactIs_development$1.Lazy = B, reactIs_development$1.Memo = j, reactIs_development$1.Portal = q, reactIs_development$1.Profiler = H, reactIs_development$1.StrictMode = G, reactIs_development$1.Suspense = U, reactIs_development$1.SuspenseList = Q, reactIs_development$1.isAsyncMode = W, reactIs_development$1.isConcurrentMode = Z, reactIs_development$1.isContextConsumer = te, reactIs_development$1.isContextProvider = ne, reactIs_development$1.isElement = ae, reactIs_development$1.isForwardRef = le, reactIs_development$1.isFragment = ue, reactIs_development$1.isLazy = se, reactIs_development$1.isMemo = ce, reactIs_development$1.isPortal = oe, reactIs_development$1.isProfiler = J, reactIs_development$1.isStrictMode = ie, reactIs_development$1.isSuspense = K, reactIs_development$1.isSuspenseList = fe, reactIs_development$1.isValidElementType = M, reactIs_development$1.typeOf = R;
10228
10235
  }()), reactIs_development$1;
10229
10236
  }
10230
10237
  var hasRequiredReactIs$1;
@@ -13626,14 +13633,14 @@ var DefaultTooltipContent = function(e) {
13626
13633
  paddingTop: 4,
13627
13634
  paddingBottom: 4,
13628
13635
  color: H.color || "#000"
13629
- }, d), K = H.formatter || g || defaultFormatter, F = H.value, z = H.name, W = F, J = z;
13630
- if (K && W != null && J != null) {
13631
- var ne = K(F, z, H, G, m);
13632
- if (Array.isArray(ne)) {
13633
- var ie = _slicedToArray$b(ne, 2);
13634
- W = ie[0], J = ie[1];
13636
+ }, d), Q = H.formatter || g || defaultFormatter, F = H.value, z = H.name, W = F, Z = z;
13637
+ if (Q && W != null && Z != null) {
13638
+ var te = Q(F, z, H, G, m);
13639
+ if (Array.isArray(te)) {
13640
+ var ne = _slicedToArray$b(te, 2);
13641
+ W = ne[0], Z = ne[1];
13635
13642
  } else
13636
- W = ne;
13643
+ W = te;
13637
13644
  }
13638
13645
  return (
13639
13646
  // eslint-disable-next-line react/no-array-index-key
@@ -13641,9 +13648,9 @@ var DefaultTooltipContent = function(e) {
13641
13648
  className: "recharts-tooltip-item",
13642
13649
  key: "tooltip-item-".concat(G),
13643
13650
  style: U
13644
- }, isNumOrStr(J) ? /* @__PURE__ */ React__default.createElement("span", {
13651
+ }, isNumOrStr(Z) ? /* @__PURE__ */ React__default.createElement("span", {
13645
13652
  className: "recharts-tooltip-item-name"
13646
- }, J) : null, isNumOrStr(J) ? /* @__PURE__ */ React__default.createElement("span", {
13653
+ }, Z) : null, isNumOrStr(Z) ? /* @__PURE__ */ React__default.createElement("span", {
13647
13654
  className: "recharts-tooltip-item-separator"
13648
13655
  }, i) : null, /* @__PURE__ */ React__default.createElement("span", {
13649
13656
  className: "recharts-tooltip-item-value"
@@ -14373,24 +14380,24 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
14373
14380
  containerHeight: o.height
14374
14381
  }), D = _slicedToArray$a(O, 2), V = D[0], L = D[1], B = useCallback(function(q, H) {
14375
14382
  L(function(G) {
14376
- var U = Math.round(q), K = Math.round(H);
14377
- return G.containerWidth === U && G.containerHeight === K ? G : {
14383
+ var U = Math.round(q), Q = Math.round(H);
14384
+ return G.containerWidth === U && G.containerHeight === Q ? G : {
14378
14385
  containerWidth: U,
14379
- containerHeight: K
14386
+ containerHeight: Q
14380
14387
  };
14381
14388
  });
14382
14389
  }, []);
14383
14390
  useEffect(function() {
14384
14391
  var q = function(z) {
14385
- var W, J = z[0].contentRect, ne = J.width, ie = J.height;
14386
- B(ne, ie), (W = N.current) === null || W === void 0 || W.call(N, ne, ie);
14392
+ var W, Z = z[0].contentRect, te = Z.width, ne = Z.height;
14393
+ B(te, ne), (W = N.current) === null || W === void 0 || W.call(N, te, ne);
14387
14394
  };
14388
14395
  C > 0 && (q = throttle(q, C, {
14389
14396
  trailing: !0,
14390
14397
  leading: !1
14391
14398
  }));
14392
- var H = new ResizeObserver(q), G = R.current.getBoundingClientRect(), U = G.width, K = G.height;
14393
- return B(U, K), H.observe(R.current), function() {
14399
+ var H = new ResizeObserver(q), G = R.current.getBoundingClientRect(), U = G.width, Q = G.height;
14400
+ return B(U, Q), H.observe(R.current), function() {
14394
14401
  H.disconnect();
14395
14402
  };
14396
14403
  }, [B, C]);
@@ -14405,12 +14412,12 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
14405
14412
  please check the style of container, or the props width(%s) and height(%s),
14406
14413
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
14407
14414
  height and width.`, G, U, u, f, m, g, n);
14408
- var K = !Array.isArray(_) && getDisplayName(_.type).endsWith("Chart");
14415
+ var Q = !Array.isArray(_) && getDisplayName(_.type).endsWith("Chart");
14409
14416
  return React__default.Children.map(_, function(F) {
14410
14417
  return /* @__PURE__ */ React__default.isValidElement(F) ? /* @__PURE__ */ cloneElement(F, _objectSpread$t({
14411
14418
  width: G,
14412
14419
  height: U
14413
- }, K ? {
14420
+ }, Q ? {
14414
14421
  style: _objectSpread$t({
14415
14422
  height: "100%",
14416
14423
  width: "100%",
@@ -14804,32 +14811,32 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
14804
14811
  }, calculateWordsByLines = function(e, n, i, o, l) {
14805
14812
  var u = e.maxLines, d = e.children, f = e.style, p = e.breakAll, m = isNumber(u), g = d, b = function() {
14806
14813
  var G = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
14807
- return G.reduce(function(U, K) {
14808
- var F = K.word, z = K.width, W = U[U.length - 1];
14814
+ return G.reduce(function(U, Q) {
14815
+ var F = Q.word, z = Q.width, W = U[U.length - 1];
14809
14816
  if (W && (o == null || l || W.width + z + i < Number(o)))
14810
14817
  W.words.push(F), W.width += z + i;
14811
14818
  else {
14812
- var J = {
14819
+ var Z = {
14813
14820
  words: [F],
14814
14821
  width: z
14815
14822
  };
14816
- U.push(J);
14823
+ U.push(Z);
14817
14824
  }
14818
14825
  return U;
14819
14826
  }, []);
14820
14827
  }, _ = b(n), E = function(G) {
14821
- return G.reduce(function(U, K) {
14822
- return U.width > K.width ? U : K;
14828
+ return G.reduce(function(U, Q) {
14829
+ return U.width > Q.width ? U : Q;
14823
14830
  });
14824
14831
  };
14825
14832
  if (!m)
14826
14833
  return _;
14827
14834
  for (var C = "…", S = function(G) {
14828
- var U = g.slice(0, G), K = calculateWordWidths({
14835
+ var U = g.slice(0, G), Q = calculateWordWidths({
14829
14836
  breakAll: p,
14830
14837
  style: f,
14831
14838
  children: U + C
14832
- }).wordsWithComputedWidth, F = b(K), z = F.length > u || E(F).width > Number(o);
14839
+ }).wordsWithComputedWidth, F = b(Q), z = F.length > u || E(F).width > Number(o);
14833
14840
  return [z, F];
14834
14841
  }, T = 0, A = g.length - 1, I = 0, M; T <= A && I <= g.length - 1; ) {
14835
14842
  var R = Math.floor((T + A) / 2), N = R - 1, O = S(N), D = _slicedToArray$8(O, 2), V = D[0], L = D[1], B = S(R), j = _slicedToArray$8(B, 1), q = j[0];
@@ -14902,15 +14909,15 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
14902
14909
  className: clsx("recharts-text", O),
14903
14910
  textAnchor: _,
14904
14911
  fill: T.includes("url") ? DEFAULT_FILL : T
14905
- }), I.map(function(U, K) {
14912
+ }), I.map(function(U, Q) {
14906
14913
  var F = U.words.join(D ? "" : " ");
14907
14914
  return (
14908
14915
  // duplicate words will cause duplicate keys
14909
14916
  // eslint-disable-next-line react/no-array-index-key
14910
14917
  /* @__PURE__ */ React__default.createElement("tspan", {
14911
14918
  x: L,
14912
- dy: K === 0 ? j : d,
14913
- key: "".concat(F, "-").concat(K)
14919
+ dy: Q === 0 ? j : d,
14920
+ key: "".concat(F, "-").concat(Q)
14914
14921
  }, F)
14915
14922
  );
14916
14923
  }));
@@ -15778,8 +15785,8 @@ function formatLocale$1(t) {
15778
15785
  q = D(B) + q, B = "";
15779
15786
  else {
15780
15787
  B = +B;
15781
- var K = B < 0 || 1 / B < 0;
15782
- if (B = isNaN(B) ? f : D(Math.abs(B), I), M && (B = formatTrim(B)), K && +B == 0 && E !== "+" && (K = !1), j = (K ? E === "(" ? E : d : E === "-" || E === "(" ? "" : E) + j, q = (R === "s" ? prefixes[8 + prefixExponent / 3] : "") + q + (K && E === "(" ? ")" : ""), V) {
15788
+ var Q = B < 0 || 1 / B < 0;
15789
+ if (B = isNaN(B) ? f : D(Math.abs(B), I), M && (B = formatTrim(B)), Q && +B == 0 && E !== "+" && (Q = !1), j = (Q ? E === "(" ? E : d : E === "-" || E === "(" ? "" : E) + j, q = (R === "s" ? prefixes[8 + prefixExponent / 3] : "") + q + (Q && E === "(" ? ")" : ""), V) {
15783
15790
  for (H = -1, G = B.length; ++H < G; )
15784
15791
  if (U = B.charCodeAt(H), 48 > U || U > 57) {
15785
15792
  q = (U === 46 ? o + B.slice(H + 1) : B.slice(H)) + q, B = B.slice(0, H);
@@ -16348,7 +16355,7 @@ function newDate(t, e, n) {
16348
16355
  }
16349
16356
  function formatLocale(t) {
16350
16357
  var e = t.dateTime, n = t.date, i = t.time, o = t.periods, l = t.days, u = t.shortDays, d = t.months, f = t.shortMonths, p = formatRe(o), m = formatLookup(o), g = formatRe(l), b = formatLookup(l), _ = formatRe(u), E = formatLookup(u), C = formatRe(d), S = formatLookup(d), T = formatRe(f), A = formatLookup(f), I = {
16351
- a: K,
16358
+ a: Q,
16352
16359
  A: F,
16353
16360
  b: z,
16354
16361
  B: W,
@@ -16364,8 +16371,8 @@ function formatLocale(t) {
16364
16371
  L: formatMilliseconds,
16365
16372
  m: formatMonthNumber,
16366
16373
  M: formatMinutes,
16367
- p: J,
16368
- q: ne,
16374
+ p: Z,
16375
+ q: te,
16369
16376
  Q: formatUnixTimestamp,
16370
16377
  s: formatUnixTimestampSeconds,
16371
16378
  S: formatSeconds,
@@ -16381,8 +16388,8 @@ function formatLocale(t) {
16381
16388
  Z: formatZone,
16382
16389
  "%": formatLiteralPercent
16383
16390
  }, M = {
16384
- a: ie,
16385
- A: oe,
16391
+ a: ne,
16392
+ A: ae,
16386
16393
  b: le,
16387
16394
  B: ue,
16388
16395
  c: null,
@@ -16398,7 +16405,7 @@ function formatLocale(t) {
16398
16405
  m: formatUTCMonthNumber,
16399
16406
  M: formatUTCMinutes,
16400
16407
  p: se,
16401
- q: te,
16408
+ q: ce,
16402
16409
  Q: formatUnixTimestamp,
16403
16410
  s: formatUnixTimestampSeconds,
16404
16411
  S: formatUTCSeconds,
@@ -16448,126 +16455,126 @@ function formatLocale(t) {
16448
16455
  "%": parseLiteralPercent
16449
16456
  };
16450
16457
  I.x = N(n, I), I.X = N(i, I), I.c = N(e, I), M.x = N(n, M), M.X = N(i, M), M.c = N(e, M);
16451
- function N(ee, Z) {
16452
- return function(ce) {
16453
- var Q = [], de = -1, ae = 0, fe = ee.length, he, me, ye;
16454
- for (ce instanceof Date || (ce = /* @__PURE__ */ new Date(+ce)); ++de < fe; )
16455
- ee.charCodeAt(de) === 37 && (Q.push(ee.slice(ae, de)), (me = pads[he = ee.charAt(++de)]) != null ? he = ee.charAt(++de) : me = he === "e" ? " " : "0", (ye = Z[he]) && (he = ye(ce, me)), Q.push(he), ae = de + 1);
16456
- return Q.push(ee.slice(ae, de)), Q.join("");
16458
+ function N(oe, J) {
16459
+ return function(ie) {
16460
+ var K = [], fe = -1, ee = 0, de = oe.length, he, me, ye;
16461
+ for (ie instanceof Date || (ie = /* @__PURE__ */ new Date(+ie)); ++fe < de; )
16462
+ oe.charCodeAt(fe) === 37 && (K.push(oe.slice(ee, fe)), (me = pads[he = oe.charAt(++fe)]) != null ? he = oe.charAt(++fe) : me = he === "e" ? " " : "0", (ye = J[he]) && (he = ye(ie, me)), K.push(he), ee = fe + 1);
16463
+ return K.push(oe.slice(ee, fe)), K.join("");
16457
16464
  };
16458
16465
  }
16459
- function O(ee, Z) {
16460
- return function(ce) {
16461
- var Q = newDate(1900, void 0, 1), de = D(Q, ee, ce += "", 0), ae, fe;
16462
- if (de != ce.length) return null;
16463
- if ("Q" in Q) return new Date(Q.Q);
16464
- if ("s" in Q) return new Date(Q.s * 1e3 + ("L" in Q ? Q.L : 0));
16465
- if (Z && !("Z" in Q) && (Q.Z = 0), "p" in Q && (Q.H = Q.H % 12 + Q.p * 12), Q.m === void 0 && (Q.m = "q" in Q ? Q.q : 0), "V" in Q) {
16466
- if (Q.V < 1 || Q.V > 53) return null;
16467
- "w" in Q || (Q.w = 1), "Z" in Q ? (ae = utcDate(newDate(Q.y, 0, 1)), fe = ae.getUTCDay(), ae = fe > 4 || fe === 0 ? utcMonday.ceil(ae) : utcMonday(ae), ae = utcDay.offset(ae, (Q.V - 1) * 7), Q.y = ae.getUTCFullYear(), Q.m = ae.getUTCMonth(), Q.d = ae.getUTCDate() + (Q.w + 6) % 7) : (ae = localDate(newDate(Q.y, 0, 1)), fe = ae.getDay(), ae = fe > 4 || fe === 0 ? timeMonday.ceil(ae) : timeMonday(ae), ae = timeDay.offset(ae, (Q.V - 1) * 7), Q.y = ae.getFullYear(), Q.m = ae.getMonth(), Q.d = ae.getDate() + (Q.w + 6) % 7);
16468
- } else ("W" in Q || "U" in Q) && ("w" in Q || (Q.w = "u" in Q ? Q.u % 7 : "W" in Q ? 1 : 0), fe = "Z" in Q ? utcDate(newDate(Q.y, 0, 1)).getUTCDay() : localDate(newDate(Q.y, 0, 1)).getDay(), Q.m = 0, Q.d = "W" in Q ? (Q.w + 6) % 7 + Q.W * 7 - (fe + 5) % 7 : Q.w + Q.U * 7 - (fe + 6) % 7);
16469
- return "Z" in Q ? (Q.H += Q.Z / 100 | 0, Q.M += Q.Z % 100, utcDate(Q)) : localDate(Q);
16466
+ function O(oe, J) {
16467
+ return function(ie) {
16468
+ var K = newDate(1900, void 0, 1), fe = D(K, oe, ie += "", 0), ee, de;
16469
+ if (fe != ie.length) return null;
16470
+ if ("Q" in K) return new Date(K.Q);
16471
+ if ("s" in K) return new Date(K.s * 1e3 + ("L" in K ? K.L : 0));
16472
+ if (J && !("Z" in K) && (K.Z = 0), "p" in K && (K.H = K.H % 12 + K.p * 12), K.m === void 0 && (K.m = "q" in K ? K.q : 0), "V" in K) {
16473
+ if (K.V < 1 || K.V > 53) return null;
16474
+ "w" in K || (K.w = 1), "Z" in K ? (ee = utcDate(newDate(K.y, 0, 1)), de = ee.getUTCDay(), ee = de > 4 || de === 0 ? utcMonday.ceil(ee) : utcMonday(ee), ee = utcDay.offset(ee, (K.V - 1) * 7), K.y = ee.getUTCFullYear(), K.m = ee.getUTCMonth(), K.d = ee.getUTCDate() + (K.w + 6) % 7) : (ee = localDate(newDate(K.y, 0, 1)), de = ee.getDay(), ee = de > 4 || de === 0 ? timeMonday.ceil(ee) : timeMonday(ee), ee = timeDay.offset(ee, (K.V - 1) * 7), K.y = ee.getFullYear(), K.m = ee.getMonth(), K.d = ee.getDate() + (K.w + 6) % 7);
16475
+ } else ("W" in K || "U" in K) && ("w" in K || (K.w = "u" in K ? K.u % 7 : "W" in K ? 1 : 0), de = "Z" in K ? utcDate(newDate(K.y, 0, 1)).getUTCDay() : localDate(newDate(K.y, 0, 1)).getDay(), K.m = 0, K.d = "W" in K ? (K.w + 6) % 7 + K.W * 7 - (de + 5) % 7 : K.w + K.U * 7 - (de + 6) % 7);
16476
+ return "Z" in K ? (K.H += K.Z / 100 | 0, K.M += K.Z % 100, utcDate(K)) : localDate(K);
16470
16477
  };
16471
16478
  }
16472
- function D(ee, Z, ce, Q) {
16473
- for (var de = 0, ae = Z.length, fe = ce.length, he, me; de < ae; ) {
16474
- if (Q >= fe) return -1;
16475
- if (he = Z.charCodeAt(de++), he === 37) {
16476
- if (he = Z.charAt(de++), me = R[he in pads ? Z.charAt(de++) : he], !me || (Q = me(ee, ce, Q)) < 0) return -1;
16477
- } else if (he != ce.charCodeAt(Q++))
16479
+ function D(oe, J, ie, K) {
16480
+ for (var fe = 0, ee = J.length, de = ie.length, he, me; fe < ee; ) {
16481
+ if (K >= de) return -1;
16482
+ if (he = J.charCodeAt(fe++), he === 37) {
16483
+ if (he = J.charAt(fe++), me = R[he in pads ? J.charAt(fe++) : he], !me || (K = me(oe, ie, K)) < 0) return -1;
16484
+ } else if (he != ie.charCodeAt(K++))
16478
16485
  return -1;
16479
16486
  }
16480
- return Q;
16487
+ return K;
16481
16488
  }
16482
- function V(ee, Z, ce) {
16483
- var Q = p.exec(Z.slice(ce));
16484
- return Q ? (ee.p = m.get(Q[0].toLowerCase()), ce + Q[0].length) : -1;
16489
+ function V(oe, J, ie) {
16490
+ var K = p.exec(J.slice(ie));
16491
+ return K ? (oe.p = m.get(K[0].toLowerCase()), ie + K[0].length) : -1;
16485
16492
  }
16486
- function L(ee, Z, ce) {
16487
- var Q = _.exec(Z.slice(ce));
16488
- return Q ? (ee.w = E.get(Q[0].toLowerCase()), ce + Q[0].length) : -1;
16493
+ function L(oe, J, ie) {
16494
+ var K = _.exec(J.slice(ie));
16495
+ return K ? (oe.w = E.get(K[0].toLowerCase()), ie + K[0].length) : -1;
16489
16496
  }
16490
- function B(ee, Z, ce) {
16491
- var Q = g.exec(Z.slice(ce));
16492
- return Q ? (ee.w = b.get(Q[0].toLowerCase()), ce + Q[0].length) : -1;
16497
+ function B(oe, J, ie) {
16498
+ var K = g.exec(J.slice(ie));
16499
+ return K ? (oe.w = b.get(K[0].toLowerCase()), ie + K[0].length) : -1;
16493
16500
  }
16494
- function j(ee, Z, ce) {
16495
- var Q = T.exec(Z.slice(ce));
16496
- return Q ? (ee.m = A.get(Q[0].toLowerCase()), ce + Q[0].length) : -1;
16501
+ function j(oe, J, ie) {
16502
+ var K = T.exec(J.slice(ie));
16503
+ return K ? (oe.m = A.get(K[0].toLowerCase()), ie + K[0].length) : -1;
16497
16504
  }
16498
- function q(ee, Z, ce) {
16499
- var Q = C.exec(Z.slice(ce));
16500
- return Q ? (ee.m = S.get(Q[0].toLowerCase()), ce + Q[0].length) : -1;
16505
+ function q(oe, J, ie) {
16506
+ var K = C.exec(J.slice(ie));
16507
+ return K ? (oe.m = S.get(K[0].toLowerCase()), ie + K[0].length) : -1;
16501
16508
  }
16502
- function H(ee, Z, ce) {
16503
- return D(ee, e, Z, ce);
16509
+ function H(oe, J, ie) {
16510
+ return D(oe, e, J, ie);
16504
16511
  }
16505
- function G(ee, Z, ce) {
16506
- return D(ee, n, Z, ce);
16512
+ function G(oe, J, ie) {
16513
+ return D(oe, n, J, ie);
16507
16514
  }
16508
- function U(ee, Z, ce) {
16509
- return D(ee, i, Z, ce);
16515
+ function U(oe, J, ie) {
16516
+ return D(oe, i, J, ie);
16510
16517
  }
16511
- function K(ee) {
16512
- return u[ee.getDay()];
16518
+ function Q(oe) {
16519
+ return u[oe.getDay()];
16513
16520
  }
16514
- function F(ee) {
16515
- return l[ee.getDay()];
16521
+ function F(oe) {
16522
+ return l[oe.getDay()];
16516
16523
  }
16517
- function z(ee) {
16518
- return f[ee.getMonth()];
16524
+ function z(oe) {
16525
+ return f[oe.getMonth()];
16519
16526
  }
16520
- function W(ee) {
16521
- return d[ee.getMonth()];
16527
+ function W(oe) {
16528
+ return d[oe.getMonth()];
16522
16529
  }
16523
- function J(ee) {
16524
- return o[+(ee.getHours() >= 12)];
16530
+ function Z(oe) {
16531
+ return o[+(oe.getHours() >= 12)];
16525
16532
  }
16526
- function ne(ee) {
16527
- return 1 + ~~(ee.getMonth() / 3);
16533
+ function te(oe) {
16534
+ return 1 + ~~(oe.getMonth() / 3);
16528
16535
  }
16529
- function ie(ee) {
16530
- return u[ee.getUTCDay()];
16536
+ function ne(oe) {
16537
+ return u[oe.getUTCDay()];
16531
16538
  }
16532
- function oe(ee) {
16533
- return l[ee.getUTCDay()];
16539
+ function ae(oe) {
16540
+ return l[oe.getUTCDay()];
16534
16541
  }
16535
- function le(ee) {
16536
- return f[ee.getUTCMonth()];
16542
+ function le(oe) {
16543
+ return f[oe.getUTCMonth()];
16537
16544
  }
16538
- function ue(ee) {
16539
- return d[ee.getUTCMonth()];
16545
+ function ue(oe) {
16546
+ return d[oe.getUTCMonth()];
16540
16547
  }
16541
- function se(ee) {
16542
- return o[+(ee.getUTCHours() >= 12)];
16548
+ function se(oe) {
16549
+ return o[+(oe.getUTCHours() >= 12)];
16543
16550
  }
16544
- function te(ee) {
16545
- return 1 + ~~(ee.getUTCMonth() / 3);
16551
+ function ce(oe) {
16552
+ return 1 + ~~(oe.getUTCMonth() / 3);
16546
16553
  }
16547
16554
  return {
16548
- format: function(ee) {
16549
- var Z = N(ee += "", I);
16550
- return Z.toString = function() {
16551
- return ee;
16552
- }, Z;
16555
+ format: function(oe) {
16556
+ var J = N(oe += "", I);
16557
+ return J.toString = function() {
16558
+ return oe;
16559
+ }, J;
16553
16560
  },
16554
- parse: function(ee) {
16555
- var Z = O(ee += "", !1);
16556
- return Z.toString = function() {
16557
- return ee;
16558
- }, Z;
16561
+ parse: function(oe) {
16562
+ var J = O(oe += "", !1);
16563
+ return J.toString = function() {
16564
+ return oe;
16565
+ }, J;
16559
16566
  },
16560
- utcFormat: function(ee) {
16561
- var Z = N(ee += "", M);
16562
- return Z.toString = function() {
16563
- return ee;
16564
- }, Z;
16567
+ utcFormat: function(oe) {
16568
+ var J = N(oe += "", M);
16569
+ return J.toString = function() {
16570
+ return oe;
16571
+ }, J;
16565
16572
  },
16566
- utcParse: function(ee) {
16567
- var Z = O(ee += "", !0);
16568
- return Z.toString = function() {
16569
- return ee;
16570
- }, Z;
16573
+ utcParse: function(oe) {
16574
+ var J = O(oe += "", !0);
16575
+ return J.toString = function() {
16576
+ return oe;
16577
+ }, J;
16571
16578
  }
16572
16579
  };
16573
16580
  }
@@ -17986,9 +17993,9 @@ var ErrorBar = /* @__PURE__ */ function(t) {
17986
17993
  y2: j
17987
17994
  });
17988
17995
  } else if (l === "horizontal") {
17989
- var G = g.scale, U = T + o, K = U - u, F = U + u, z = G(I - N), W = G(I + O);
17996
+ var G = g.scale, U = T + o, Q = U - u, F = U + u, z = G(I - N), W = G(I + O);
17990
17997
  R.push({
17991
- x1: K,
17998
+ x1: Q,
17992
17999
  y1: W,
17993
18000
  x2: F,
17994
18001
  y2: W
@@ -17998,7 +18005,7 @@ var ErrorBar = /* @__PURE__ */ function(t) {
17998
18005
  x2: U,
17999
18006
  y2: W
18000
18007
  }), R.push({
18001
- x1: K,
18008
+ x1: Q,
18002
18009
  y1: z,
18003
18010
  x2: F,
18004
18011
  y2: z
@@ -18006,12 +18013,12 @@ var ErrorBar = /* @__PURE__ */ function(t) {
18006
18013
  }
18007
18014
  return /* @__PURE__ */ React__default.createElement(Layer, _extends$k({
18008
18015
  className: "recharts-errorBar",
18009
- key: "bar-".concat(R.map(function(J) {
18010
- return "".concat(J.x1, "-").concat(J.x2, "-").concat(J.y1, "-").concat(J.y2);
18016
+ key: "bar-".concat(R.map(function(Z) {
18017
+ return "".concat(Z.x1, "-").concat(Z.x2, "-").concat(Z.y1, "-").concat(Z.y2);
18011
18018
  }))
18012
- }, _), R.map(function(J) {
18013
- return /* @__PURE__ */ React__default.createElement("line", _extends$k({}, J, {
18014
- key: "line-".concat(J.x1, "-").concat(J.x2, "-").concat(J.y1, "-").concat(J.y2)
18019
+ }, _), R.map(function(Z) {
18020
+ return /* @__PURE__ */ React__default.createElement("line", _extends$k({}, Z, {
18021
+ key: "line-".concat(Z.x1, "-").concat(Z.x2, "-").concat(Z.y1, "-").concat(Z.y2)
18015
18022
  }));
18016
18023
  }));
18017
18024
  });
@@ -19732,83 +19739,83 @@ var hasRequiredReactIs_development;
19732
19739
  function requireReactIs_development() {
19733
19740
  return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1, process.env.NODE_ENV !== "production" && function() {
19734
19741
  var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, u = t ? Symbol.for("react.provider") : 60109, d = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, m = t ? Symbol.for("react.forward_ref") : 60112, g = t ? Symbol.for("react.suspense") : 60113, b = t ? Symbol.for("react.suspense_list") : 60120, _ = t ? Symbol.for("react.memo") : 60115, E = t ? Symbol.for("react.lazy") : 60116, C = t ? Symbol.for("react.block") : 60121, S = t ? Symbol.for("react.fundamental") : 60117, T = t ? Symbol.for("react.responder") : 60118, A = t ? Symbol.for("react.scope") : 60119;
19735
- function I(Q) {
19736
- return typeof Q == "string" || typeof Q == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
19737
- Q === i || Q === p || Q === l || Q === o || Q === g || Q === b || typeof Q == "object" && Q !== null && (Q.$$typeof === E || Q.$$typeof === _ || Q.$$typeof === u || Q.$$typeof === d || Q.$$typeof === m || Q.$$typeof === S || Q.$$typeof === T || Q.$$typeof === A || Q.$$typeof === C);
19742
+ function I(K) {
19743
+ return typeof K == "string" || typeof K == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
19744
+ K === i || K === p || K === l || K === o || K === g || K === b || typeof K == "object" && K !== null && (K.$$typeof === E || K.$$typeof === _ || K.$$typeof === u || K.$$typeof === d || K.$$typeof === m || K.$$typeof === S || K.$$typeof === T || K.$$typeof === A || K.$$typeof === C);
19738
19745
  }
19739
- function M(Q) {
19740
- if (typeof Q == "object" && Q !== null) {
19741
- var de = Q.$$typeof;
19742
- switch (de) {
19746
+ function M(K) {
19747
+ if (typeof K == "object" && K !== null) {
19748
+ var fe = K.$$typeof;
19749
+ switch (fe) {
19743
19750
  case e:
19744
- var ae = Q.type;
19745
- switch (ae) {
19751
+ var ee = K.type;
19752
+ switch (ee) {
19746
19753
  case f:
19747
19754
  case p:
19748
19755
  case i:
19749
19756
  case l:
19750
19757
  case o:
19751
19758
  case g:
19752
- return ae;
19759
+ return ee;
19753
19760
  default:
19754
- var fe = ae && ae.$$typeof;
19755
- switch (fe) {
19761
+ var de = ee && ee.$$typeof;
19762
+ switch (de) {
19756
19763
  case d:
19757
19764
  case m:
19758
19765
  case E:
19759
19766
  case _:
19760
19767
  case u:
19761
- return fe;
19762
- default:
19763
19768
  return de;
19769
+ default:
19770
+ return fe;
19764
19771
  }
19765
19772
  }
19766
19773
  case n:
19767
- return de;
19774
+ return fe;
19768
19775
  }
19769
19776
  }
19770
19777
  }
19771
- var R = f, N = p, O = d, D = u, V = e, L = m, B = i, j = E, q = _, H = n, G = l, U = o, K = g, F = !1;
19772
- function z(Q) {
19773
- return F || (F = !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(Q) || M(Q) === f;
19778
+ var R = f, N = p, O = d, D = u, V = e, L = m, B = i, j = E, q = _, H = n, G = l, U = o, Q = g, F = !1;
19779
+ function z(K) {
19780
+ return F || (F = !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;
19774
19781
  }
19775
- function W(Q) {
19776
- return M(Q) === p;
19782
+ function W(K) {
19783
+ return M(K) === p;
19777
19784
  }
19778
- function J(Q) {
19779
- return M(Q) === d;
19785
+ function Z(K) {
19786
+ return M(K) === d;
19780
19787
  }
19781
- function ne(Q) {
19782
- return M(Q) === u;
19788
+ function te(K) {
19789
+ return M(K) === u;
19783
19790
  }
19784
- function ie(Q) {
19785
- return typeof Q == "object" && Q !== null && Q.$$typeof === e;
19791
+ function ne(K) {
19792
+ return typeof K == "object" && K !== null && K.$$typeof === e;
19786
19793
  }
19787
- function oe(Q) {
19788
- return M(Q) === m;
19794
+ function ae(K) {
19795
+ return M(K) === m;
19789
19796
  }
19790
- function le(Q) {
19791
- return M(Q) === i;
19797
+ function le(K) {
19798
+ return M(K) === i;
19792
19799
  }
19793
- function ue(Q) {
19794
- return M(Q) === E;
19800
+ function ue(K) {
19801
+ return M(K) === E;
19795
19802
  }
19796
- function se(Q) {
19797
- return M(Q) === _;
19803
+ function se(K) {
19804
+ return M(K) === _;
19798
19805
  }
19799
- function te(Q) {
19800
- return M(Q) === n;
19806
+ function ce(K) {
19807
+ return M(K) === n;
19801
19808
  }
19802
- function ee(Q) {
19803
- return M(Q) === l;
19809
+ function oe(K) {
19810
+ return M(K) === l;
19804
19811
  }
19805
- function Z(Q) {
19806
- return M(Q) === o;
19812
+ function J(K) {
19813
+ return M(K) === o;
19807
19814
  }
19808
- function ce(Q) {
19809
- return M(Q) === g;
19815
+ function ie(K) {
19816
+ return M(K) === g;
19810
19817
  }
19811
- reactIs_development.AsyncMode = R, reactIs_development.ConcurrentMode = N, reactIs_development.ContextConsumer = O, reactIs_development.ContextProvider = D, reactIs_development.Element = V, reactIs_development.ForwardRef = L, reactIs_development.Fragment = B, reactIs_development.Lazy = j, reactIs_development.Memo = q, reactIs_development.Portal = H, reactIs_development.Profiler = G, reactIs_development.StrictMode = U, reactIs_development.Suspense = K, reactIs_development.isAsyncMode = z, reactIs_development.isConcurrentMode = W, reactIs_development.isContextConsumer = J, reactIs_development.isContextProvider = ne, reactIs_development.isElement = ie, reactIs_development.isForwardRef = oe, reactIs_development.isFragment = le, reactIs_development.isLazy = ue, reactIs_development.isMemo = se, reactIs_development.isPortal = te, reactIs_development.isProfiler = ee, reactIs_development.isStrictMode = Z, reactIs_development.isSuspense = ce, reactIs_development.isValidElementType = I, reactIs_development.typeOf = M;
19818
+ reactIs_development.AsyncMode = R, reactIs_development.ConcurrentMode = N, reactIs_development.ContextConsumer = O, reactIs_development.ContextProvider = D, reactIs_development.Element = V, reactIs_development.ForwardRef = L, reactIs_development.Fragment = B, reactIs_development.Lazy = j, reactIs_development.Memo = q, reactIs_development.Portal = H, reactIs_development.Profiler = G, reactIs_development.StrictMode = U, reactIs_development.Suspense = Q, reactIs_development.isAsyncMode = z, reactIs_development.isConcurrentMode = W, reactIs_development.isContextConsumer = Z, reactIs_development.isContextProvider = te, reactIs_development.isElement = ne, reactIs_development.isForwardRef = ae, reactIs_development.isFragment = le, reactIs_development.isLazy = ue, reactIs_development.isMemo = se, reactIs_development.isPortal = ce, reactIs_development.isProfiler = oe, reactIs_development.isStrictMode = J, reactIs_development.isSuspense = ie, reactIs_development.isValidElementType = I, reactIs_development.typeOf = M;
19812
19819
  }()), reactIs_development;
19813
19820
  }
19814
19821
  var hasRequiredReactIs;
@@ -19946,9 +19953,9 @@ function requireFactoryWithTypeCheckers() {
19946
19953
  return factoryWithTypeCheckers = function(d, f) {
19947
19954
  var p = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
19948
19955
  function g(W) {
19949
- var J = W && (p && W[p] || W[m]);
19950
- if (typeof J == "function")
19951
- return J;
19956
+ var Z = W && (p && W[p] || W[m]);
19957
+ if (typeof Z == "function")
19958
+ return Z;
19952
19959
  }
19953
19960
  var b = "<<anonymous>>", _ = {
19954
19961
  array: T("array"),
@@ -19971,209 +19978,209 @@ function requireFactoryWithTypeCheckers() {
19971
19978
  shape: j,
19972
19979
  exact: q
19973
19980
  };
19974
- function E(W, J) {
19975
- return W === J ? W !== 0 || 1 / W === 1 / J : W !== W && J !== J;
19981
+ function E(W, Z) {
19982
+ return W === Z ? W !== 0 || 1 / W === 1 / Z : W !== W && Z !== Z;
19976
19983
  }
19977
- function C(W, J) {
19978
- this.message = W, this.data = J && typeof J == "object" ? J : {}, this.stack = "";
19984
+ function C(W, Z) {
19985
+ this.message = W, this.data = Z && typeof Z == "object" ? Z : {}, this.stack = "";
19979
19986
  }
19980
19987
  C.prototype = Error.prototype;
19981
19988
  function S(W) {
19982
19989
  if (process.env.NODE_ENV !== "production")
19983
- var J = {}, ne = 0;
19984
- function ie(le, ue, se, te, ee, Z, ce) {
19985
- if (te = te || b, Z = Z || se, ce !== n) {
19990
+ var Z = {}, te = 0;
19991
+ function ne(le, ue, se, ce, oe, J, ie) {
19992
+ if (ce = ce || b, J = J || se, ie !== n) {
19986
19993
  if (f) {
19987
- var Q = new Error(
19994
+ var K = new Error(
19988
19995
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
19989
19996
  );
19990
- throw Q.name = "Invariant Violation", Q;
19997
+ throw K.name = "Invariant Violation", K;
19991
19998
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
19992
- var de = te + ":" + se;
19993
- !J[de] && // Avoid spamming the console because they are often not actionable except for lib authors
19994
- ne < 3 && (l(
19995
- "You are manually calling a React.PropTypes validation function for the `" + Z + "` prop on `" + te + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
19996
- ), J[de] = !0, ne++);
19999
+ var fe = ce + ":" + se;
20000
+ !Z[fe] && // Avoid spamming the console because they are often not actionable except for lib authors
20001
+ te < 3 && (l(
20002
+ "You are manually calling a React.PropTypes validation function for the `" + J + "` prop on `" + ce + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
20003
+ ), Z[fe] = !0, te++);
19997
20004
  }
19998
20005
  }
19999
- return ue[se] == null ? le ? ue[se] === null ? new C("The " + ee + " `" + Z + "` is marked as required " + ("in `" + te + "`, but its value is `null`.")) : new C("The " + ee + " `" + Z + "` is marked as required in " + ("`" + te + "`, but its value is `undefined`.")) : null : W(ue, se, te, ee, Z);
20006
+ return ue[se] == null ? le ? ue[se] === null ? new C("The " + oe + " `" + J + "` is marked as required " + ("in `" + ce + "`, but its value is `null`.")) : new C("The " + oe + " `" + J + "` is marked as required in " + ("`" + ce + "`, but its value is `undefined`.")) : null : W(ue, se, ce, oe, J);
20000
20007
  }
20001
- var oe = ie.bind(null, !1);
20002
- return oe.isRequired = ie.bind(null, !0), oe;
20008
+ var ae = ne.bind(null, !1);
20009
+ return ae.isRequired = ne.bind(null, !0), ae;
20003
20010
  }
20004
20011
  function T(W) {
20005
- function J(ne, ie, oe, le, ue, se) {
20006
- var te = ne[ie], ee = U(te);
20007
- if (ee !== W) {
20008
- var Z = K(te);
20012
+ function Z(te, ne, ae, le, ue, se) {
20013
+ var ce = te[ne], oe = U(ce);
20014
+ if (oe !== W) {
20015
+ var J = Q(ce);
20009
20016
  return new C(
20010
- "Invalid " + le + " `" + ue + "` of type " + ("`" + Z + "` supplied to `" + oe + "`, expected ") + ("`" + W + "`."),
20017
+ "Invalid " + le + " `" + ue + "` of type " + ("`" + J + "` supplied to `" + ae + "`, expected ") + ("`" + W + "`."),
20011
20018
  { expectedType: W }
20012
20019
  );
20013
20020
  }
20014
20021
  return null;
20015
20022
  }
20016
- return S(J);
20023
+ return S(Z);
20017
20024
  }
20018
20025
  function A() {
20019
20026
  return S(u);
20020
20027
  }
20021
20028
  function I(W) {
20022
- function J(ne, ie, oe, le, ue) {
20029
+ function Z(te, ne, ae, le, ue) {
20023
20030
  if (typeof W != "function")
20024
- return new C("Property `" + ue + "` of component `" + oe + "` has invalid PropType notation inside arrayOf.");
20025
- var se = ne[ie];
20031
+ return new C("Property `" + ue + "` of component `" + ae + "` has invalid PropType notation inside arrayOf.");
20032
+ var se = te[ne];
20026
20033
  if (!Array.isArray(se)) {
20027
- var te = U(se);
20028
- return new C("Invalid " + le + " `" + ue + "` of type " + ("`" + te + "` supplied to `" + oe + "`, expected an array."));
20034
+ var ce = U(se);
20035
+ return new C("Invalid " + le + " `" + ue + "` of type " + ("`" + ce + "` supplied to `" + ae + "`, expected an array."));
20029
20036
  }
20030
- for (var ee = 0; ee < se.length; ee++) {
20031
- var Z = W(se, ee, oe, le, ue + "[" + ee + "]", n);
20032
- if (Z instanceof Error)
20033
- return Z;
20037
+ for (var oe = 0; oe < se.length; oe++) {
20038
+ var J = W(se, oe, ae, le, ue + "[" + oe + "]", n);
20039
+ if (J instanceof Error)
20040
+ return J;
20034
20041
  }
20035
20042
  return null;
20036
20043
  }
20037
- return S(J);
20044
+ return S(Z);
20038
20045
  }
20039
20046
  function M() {
20040
- function W(J, ne, ie, oe, le) {
20041
- var ue = J[ne];
20047
+ function W(Z, te, ne, ae, le) {
20048
+ var ue = Z[te];
20042
20049
  if (!d(ue)) {
20043
20050
  var se = U(ue);
20044
- return new C("Invalid " + oe + " `" + le + "` of type " + ("`" + se + "` supplied to `" + ie + "`, expected a single ReactElement."));
20051
+ return new C("Invalid " + ae + " `" + le + "` of type " + ("`" + se + "` supplied to `" + ne + "`, expected a single ReactElement."));
20045
20052
  }
20046
20053
  return null;
20047
20054
  }
20048
20055
  return S(W);
20049
20056
  }
20050
20057
  function R() {
20051
- function W(J, ne, ie, oe, le) {
20052
- var ue = J[ne];
20058
+ function W(Z, te, ne, ae, le) {
20059
+ var ue = Z[te];
20053
20060
  if (!t.isValidElementType(ue)) {
20054
20061
  var se = U(ue);
20055
- return new C("Invalid " + oe + " `" + le + "` of type " + ("`" + se + "` supplied to `" + ie + "`, expected a single ReactElement type."));
20062
+ return new C("Invalid " + ae + " `" + le + "` of type " + ("`" + se + "` supplied to `" + ne + "`, expected a single ReactElement type."));
20056
20063
  }
20057
20064
  return null;
20058
20065
  }
20059
20066
  return S(W);
20060
20067
  }
20061
20068
  function N(W) {
20062
- function J(ne, ie, oe, le, ue) {
20063
- if (!(ne[ie] instanceof W)) {
20064
- var se = W.name || b, te = z(ne[ie]);
20065
- return new C("Invalid " + le + " `" + ue + "` of type " + ("`" + te + "` supplied to `" + oe + "`, expected ") + ("instance of `" + se + "`."));
20069
+ function Z(te, ne, ae, le, ue) {
20070
+ if (!(te[ne] instanceof W)) {
20071
+ var se = W.name || b, ce = z(te[ne]);
20072
+ return new C("Invalid " + le + " `" + ue + "` of type " + ("`" + ce + "` supplied to `" + ae + "`, expected ") + ("instance of `" + se + "`."));
20066
20073
  }
20067
20074
  return null;
20068
20075
  }
20069
- return S(J);
20076
+ return S(Z);
20070
20077
  }
20071
20078
  function O(W) {
20072
20079
  if (!Array.isArray(W))
20073
20080
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? l(
20074
20081
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
20075
20082
  ) : l("Invalid argument supplied to oneOf, expected an array.")), u;
20076
- function J(ne, ie, oe, le, ue) {
20077
- for (var se = ne[ie], te = 0; te < W.length; te++)
20078
- if (E(se, W[te]))
20083
+ function Z(te, ne, ae, le, ue) {
20084
+ for (var se = te[ne], ce = 0; ce < W.length; ce++)
20085
+ if (E(se, W[ce]))
20079
20086
  return null;
20080
- var ee = JSON.stringify(W, function(ce, Q) {
20081
- var de = K(Q);
20082
- return de === "symbol" ? String(Q) : Q;
20087
+ var oe = JSON.stringify(W, function(ie, K) {
20088
+ var fe = Q(K);
20089
+ return fe === "symbol" ? String(K) : K;
20083
20090
  });
20084
- return new C("Invalid " + le + " `" + ue + "` of value `" + String(se) + "` " + ("supplied to `" + oe + "`, expected one of " + ee + "."));
20091
+ return new C("Invalid " + le + " `" + ue + "` of value `" + String(se) + "` " + ("supplied to `" + ae + "`, expected one of " + oe + "."));
20085
20092
  }
20086
- return S(J);
20093
+ return S(Z);
20087
20094
  }
20088
20095
  function D(W) {
20089
- function J(ne, ie, oe, le, ue) {
20096
+ function Z(te, ne, ae, le, ue) {
20090
20097
  if (typeof W != "function")
20091
- return new C("Property `" + ue + "` of component `" + oe + "` has invalid PropType notation inside objectOf.");
20092
- var se = ne[ie], te = U(se);
20093
- if (te !== "object")
20094
- return new C("Invalid " + le + " `" + ue + "` of type " + ("`" + te + "` supplied to `" + oe + "`, expected an object."));
20095
- for (var ee in se)
20096
- if (i(se, ee)) {
20097
- var Z = W(se, ee, oe, le, ue + "." + ee, n);
20098
- if (Z instanceof Error)
20099
- return Z;
20098
+ return new C("Property `" + ue + "` of component `" + ae + "` has invalid PropType notation inside objectOf.");
20099
+ var se = te[ne], ce = U(se);
20100
+ if (ce !== "object")
20101
+ return new C("Invalid " + le + " `" + ue + "` of type " + ("`" + ce + "` supplied to `" + ae + "`, expected an object."));
20102
+ for (var oe in se)
20103
+ if (i(se, oe)) {
20104
+ var J = W(se, oe, ae, le, ue + "." + oe, n);
20105
+ if (J instanceof Error)
20106
+ return J;
20100
20107
  }
20101
20108
  return null;
20102
20109
  }
20103
- return S(J);
20110
+ return S(Z);
20104
20111
  }
20105
20112
  function V(W) {
20106
20113
  if (!Array.isArray(W))
20107
20114
  return process.env.NODE_ENV !== "production" && l("Invalid argument supplied to oneOfType, expected an instance of array."), u;
20108
- for (var J = 0; J < W.length; J++) {
20109
- var ne = W[J];
20110
- if (typeof ne != "function")
20115
+ for (var Z = 0; Z < W.length; Z++) {
20116
+ var te = W[Z];
20117
+ if (typeof te != "function")
20111
20118
  return l(
20112
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + F(ne) + " at index " + J + "."
20119
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + F(te) + " at index " + Z + "."
20113
20120
  ), u;
20114
20121
  }
20115
- function ie(oe, le, ue, se, te) {
20116
- for (var ee = [], Z = 0; Z < W.length; Z++) {
20117
- var ce = W[Z], Q = ce(oe, le, ue, se, te, n);
20118
- if (Q == null)
20122
+ function ne(ae, le, ue, se, ce) {
20123
+ for (var oe = [], J = 0; J < W.length; J++) {
20124
+ var ie = W[J], K = ie(ae, le, ue, se, ce, n);
20125
+ if (K == null)
20119
20126
  return null;
20120
- Q.data && i(Q.data, "expectedType") && ee.push(Q.data.expectedType);
20127
+ K.data && i(K.data, "expectedType") && oe.push(K.data.expectedType);
20121
20128
  }
20122
- var de = ee.length > 0 ? ", expected one of type [" + ee.join(", ") + "]" : "";
20123
- return new C("Invalid " + se + " `" + te + "` supplied to " + ("`" + ue + "`" + de + "."));
20129
+ var fe = oe.length > 0 ? ", expected one of type [" + oe.join(", ") + "]" : "";
20130
+ return new C("Invalid " + se + " `" + ce + "` supplied to " + ("`" + ue + "`" + fe + "."));
20124
20131
  }
20125
- return S(ie);
20132
+ return S(ne);
20126
20133
  }
20127
20134
  function L() {
20128
- function W(J, ne, ie, oe, le) {
20129
- return H(J[ne]) ? null : new C("Invalid " + oe + " `" + le + "` supplied to " + ("`" + ie + "`, expected a ReactNode."));
20135
+ function W(Z, te, ne, ae, le) {
20136
+ return H(Z[te]) ? null : new C("Invalid " + ae + " `" + le + "` supplied to " + ("`" + ne + "`, expected a ReactNode."));
20130
20137
  }
20131
20138
  return S(W);
20132
20139
  }
20133
- function B(W, J, ne, ie, oe) {
20140
+ function B(W, Z, te, ne, ae) {
20134
20141
  return new C(
20135
- (W || "React class") + ": " + J + " type `" + ne + "." + ie + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + oe + "`."
20142
+ (W || "React class") + ": " + Z + " type `" + te + "." + ne + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + ae + "`."
20136
20143
  );
20137
20144
  }
20138
20145
  function j(W) {
20139
- function J(ne, ie, oe, le, ue) {
20140
- var se = ne[ie], te = U(se);
20141
- if (te !== "object")
20142
- return new C("Invalid " + le + " `" + ue + "` of type `" + te + "` " + ("supplied to `" + oe + "`, expected `object`."));
20143
- for (var ee in W) {
20144
- var Z = W[ee];
20145
- if (typeof Z != "function")
20146
- return B(oe, le, ue, ee, K(Z));
20147
- var ce = Z(se, ee, oe, le, ue + "." + ee, n);
20148
- if (ce)
20149
- return ce;
20146
+ function Z(te, ne, ae, le, ue) {
20147
+ var se = te[ne], ce = U(se);
20148
+ if (ce !== "object")
20149
+ return new C("Invalid " + le + " `" + ue + "` of type `" + ce + "` " + ("supplied to `" + ae + "`, expected `object`."));
20150
+ for (var oe in W) {
20151
+ var J = W[oe];
20152
+ if (typeof J != "function")
20153
+ return B(ae, le, ue, oe, Q(J));
20154
+ var ie = J(se, oe, ae, le, ue + "." + oe, n);
20155
+ if (ie)
20156
+ return ie;
20150
20157
  }
20151
20158
  return null;
20152
20159
  }
20153
- return S(J);
20160
+ return S(Z);
20154
20161
  }
20155
20162
  function q(W) {
20156
- function J(ne, ie, oe, le, ue) {
20157
- var se = ne[ie], te = U(se);
20158
- if (te !== "object")
20159
- return new C("Invalid " + le + " `" + ue + "` of type `" + te + "` " + ("supplied to `" + oe + "`, expected `object`."));
20160
- var ee = e({}, ne[ie], W);
20161
- for (var Z in ee) {
20162
- var ce = W[Z];
20163
- if (i(W, Z) && typeof ce != "function")
20164
- return B(oe, le, ue, Z, K(ce));
20165
- if (!ce)
20163
+ function Z(te, ne, ae, le, ue) {
20164
+ var se = te[ne], ce = U(se);
20165
+ if (ce !== "object")
20166
+ return new C("Invalid " + le + " `" + ue + "` of type `" + ce + "` " + ("supplied to `" + ae + "`, expected `object`."));
20167
+ var oe = e({}, te[ne], W);
20168
+ for (var J in oe) {
20169
+ var ie = W[J];
20170
+ if (i(W, J) && typeof ie != "function")
20171
+ return B(ae, le, ue, J, Q(ie));
20172
+ if (!ie)
20166
20173
  return new C(
20167
- "Invalid " + le + " `" + ue + "` key `" + Z + "` supplied to `" + oe + "`.\nBad object: " + JSON.stringify(ne[ie], null, " ") + `
20174
+ "Invalid " + le + " `" + ue + "` key `" + J + "` supplied to `" + ae + "`.\nBad object: " + JSON.stringify(te[ne], null, " ") + `
20168
20175
  Valid keys: ` + JSON.stringify(Object.keys(W), null, " ")
20169
20176
  );
20170
- var Q = ce(se, Z, oe, le, ue + "." + Z, n);
20171
- if (Q)
20172
- return Q;
20177
+ var K = ie(se, J, ae, le, ue + "." + J, n);
20178
+ if (K)
20179
+ return K;
20173
20180
  }
20174
20181
  return null;
20175
20182
  }
20176
- return S(J);
20183
+ return S(Z);
20177
20184
  }
20178
20185
  function H(W) {
20179
20186
  switch (typeof W) {
@@ -20188,17 +20195,17 @@ Valid keys: ` + JSON.stringify(Object.keys(W), null, " ")
20188
20195
  return W.every(H);
20189
20196
  if (W === null || d(W))
20190
20197
  return !0;
20191
- var J = g(W);
20192
- if (J) {
20193
- var ne = J.call(W), ie;
20194
- if (J !== W.entries) {
20195
- for (; !(ie = ne.next()).done; )
20196
- if (!H(ie.value))
20198
+ var Z = g(W);
20199
+ if (Z) {
20200
+ var te = Z.call(W), ne;
20201
+ if (Z !== W.entries) {
20202
+ for (; !(ne = te.next()).done; )
20203
+ if (!H(ne.value))
20197
20204
  return !1;
20198
20205
  } else
20199
- for (; !(ie = ne.next()).done; ) {
20200
- var oe = ie.value;
20201
- if (oe && !H(oe[1]))
20206
+ for (; !(ne = te.next()).done; ) {
20207
+ var ae = ne.value;
20208
+ if (ae && !H(ae[1]))
20202
20209
  return !1;
20203
20210
  }
20204
20211
  } else
@@ -20208,37 +20215,37 @@ Valid keys: ` + JSON.stringify(Object.keys(W), null, " ")
20208
20215
  return !1;
20209
20216
  }
20210
20217
  }
20211
- function G(W, J) {
20212
- return W === "symbol" ? !0 : J ? J["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && J instanceof Symbol : !1;
20218
+ function G(W, Z) {
20219
+ return W === "symbol" ? !0 : Z ? Z["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && Z instanceof Symbol : !1;
20213
20220
  }
20214
20221
  function U(W) {
20215
- var J = typeof W;
20216
- return Array.isArray(W) ? "array" : W instanceof RegExp ? "object" : G(J, W) ? "symbol" : J;
20222
+ var Z = typeof W;
20223
+ return Array.isArray(W) ? "array" : W instanceof RegExp ? "object" : G(Z, W) ? "symbol" : Z;
20217
20224
  }
20218
- function K(W) {
20225
+ function Q(W) {
20219
20226
  if (typeof W > "u" || W === null)
20220
20227
  return "" + W;
20221
- var J = U(W);
20222
- if (J === "object") {
20228
+ var Z = U(W);
20229
+ if (Z === "object") {
20223
20230
  if (W instanceof Date)
20224
20231
  return "date";
20225
20232
  if (W instanceof RegExp)
20226
20233
  return "regexp";
20227
20234
  }
20228
- return J;
20235
+ return Z;
20229
20236
  }
20230
20237
  function F(W) {
20231
- var J = K(W);
20232
- switch (J) {
20238
+ var Z = Q(W);
20239
+ switch (Z) {
20233
20240
  case "array":
20234
20241
  case "object":
20235
- return "an " + J;
20242
+ return "an " + Z;
20236
20243
  case "boolean":
20237
20244
  case "date":
20238
20245
  case "regexp":
20239
- return "a " + J;
20246
+ return "a " + Z;
20240
20247
  default:
20241
- return J;
20248
+ return Z;
20242
20249
  }
20243
20250
  }
20244
20251
  function z(W) {
@@ -23178,9 +23185,9 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
23178
23185
  }), O = findAllByType(A, Cell), D = g.map(function(V, L) {
23179
23186
  var B, j, q, H, G, U;
23180
23187
  p ? B = truncateByDomain(p[m + L], R) : (B = getValueByDataKey(V, T), Array.isArray(B) || (B = [N, B]));
23181
- var K = minPointSizeCallback(I, _Bar.defaultProps.minPointSize)(B[1], L);
23188
+ var Q = minPointSizeCallback(I, _Bar.defaultProps.minPointSize)(B[1], L);
23182
23189
  if (E === "horizontal") {
23183
- var F, z = [u.scale(B[0]), u.scale(B[1])], W = z[0], J = z[1];
23190
+ var F, z = [u.scale(B[0]), u.scale(B[1])], W = z[0], Z = z[1];
23184
23191
  j = getCateCoordinateOfBar({
23185
23192
  axis: l,
23186
23193
  ticks: d,
@@ -23188,19 +23195,19 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
23188
23195
  offset: _.offset,
23189
23196
  entry: V,
23190
23197
  index: L
23191
- }), q = (F = J ?? W) !== null && F !== void 0 ? F : void 0, H = _.size;
23192
- var ne = W - J;
23193
- if (G = Number.isNaN(ne) ? 0 : ne, U = {
23198
+ }), q = (F = Z ?? W) !== null && F !== void 0 ? F : void 0, H = _.size;
23199
+ var te = W - Z;
23200
+ if (G = Number.isNaN(te) ? 0 : te, U = {
23194
23201
  x: j,
23195
23202
  y: u.y,
23196
23203
  width: H,
23197
23204
  height: u.height
23198
- }, Math.abs(K) > 0 && Math.abs(G) < Math.abs(K)) {
23199
- var ie = mathSign(G || K) * (Math.abs(K) - Math.abs(G));
23200
- q -= ie, G += ie;
23205
+ }, Math.abs(Q) > 0 && Math.abs(G) < Math.abs(Q)) {
23206
+ var ne = mathSign(G || Q) * (Math.abs(Q) - Math.abs(G));
23207
+ q -= ne, G += ne;
23201
23208
  }
23202
23209
  } else {
23203
- var oe = [l.scale(B[0]), l.scale(B[1])], le = oe[0], ue = oe[1];
23210
+ var ae = [l.scale(B[0]), l.scale(B[1])], le = ae[0], ue = ae[1];
23204
23211
  if (j = le, q = getCateCoordinateOfBar({
23205
23212
  axis: u,
23206
23213
  ticks: f,
@@ -23213,8 +23220,8 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
23213
23220
  y: q,
23214
23221
  width: l.width,
23215
23222
  height: G
23216
- }, Math.abs(K) > 0 && Math.abs(H) < Math.abs(K)) {
23217
- var se = mathSign(H || K) * (Math.abs(K) - Math.abs(H));
23223
+ }, Math.abs(Q) > 0 && Math.abs(H) < Math.abs(Q)) {
23224
+ var se = mathSign(H || Q) * (Math.abs(Q) - Math.abs(H));
23218
23225
  H += se;
23219
23226
  }
23220
23227
  }
@@ -23313,32 +23320,32 @@ var formatAxisMap = function(e, n, i, o, l) {
23313
23320
  var C = n[E], S = C.orientation, T = C.domain, A = C.padding, I = A === void 0 ? {} : A, M = C.mirror, R = C.reversed, N = "".concat(S).concat(M ? "Mirror" : ""), O, D, V, L, B;
23314
23321
  if (C.type === "number" && (C.padding === "gap" || C.padding === "no-gap")) {
23315
23322
  var j = T[1] - T[0], q = 1 / 0, H = C.categoricalDomain.sort();
23316
- if (H.forEach(function(oe, le) {
23317
- le > 0 && (q = Math.min((oe || 0) - (H[le - 1] || 0), q));
23323
+ if (H.forEach(function(ae, le) {
23324
+ le > 0 && (q = Math.min((ae || 0) - (H[le - 1] || 0), q));
23318
23325
  }), Number.isFinite(q)) {
23319
23326
  var G = q / j, U = C.layout === "vertical" ? i.height : i.width;
23320
23327
  if (C.padding === "gap" && (O = G * U / 2), C.padding === "no-gap") {
23321
- var K = getPercentValue(e.barCategoryGap, G * U), F = G * U / 2;
23322
- O = F - K - (F - K) / U * K;
23328
+ var Q = getPercentValue(e.barCategoryGap, G * U), F = G * U / 2;
23329
+ O = F - Q - (F - Q) / U * Q;
23323
23330
  }
23324
23331
  }
23325
23332
  }
23326
23333
  o === "xAxis" ? D = [i.left + (I.left || 0) + (O || 0), i.left + i.width - (I.right || 0) - (O || 0)] : o === "yAxis" ? D = f === "horizontal" ? [i.top + i.height - (I.bottom || 0), i.top + (I.top || 0)] : [i.top + (I.top || 0) + (O || 0), i.top + i.height - (I.bottom || 0) - (O || 0)] : D = C.range, R && (D = [D[1], D[0]]);
23327
- var z = parseScale(C, l, b), W = z.scale, J = z.realScaleType;
23334
+ var z = parseScale(C, l, b), W = z.scale, Z = z.realScaleType;
23328
23335
  W.domain(T).range(D), checkDomainOfScale(W);
23329
- var ne = getTicksOfScale(W, _objectSpread$9(_objectSpread$9({}, C), {}, {
23330
- realScaleType: J
23336
+ var te = getTicksOfScale(W, _objectSpread$9(_objectSpread$9({}, C), {}, {
23337
+ realScaleType: Z
23331
23338
  }));
23332
23339
  o === "xAxis" ? (B = S === "top" && !M || S === "bottom" && M, V = i.left, L = g[N] - B * C.height) : o === "yAxis" && (B = S === "left" && !M || S === "right" && M, V = g[N] - B * C.width, L = i.top);
23333
- var ie = _objectSpread$9(_objectSpread$9(_objectSpread$9({}, C), ne), {}, {
23334
- realScaleType: J,
23340
+ var ne = _objectSpread$9(_objectSpread$9(_objectSpread$9({}, C), te), {}, {
23341
+ realScaleType: Z,
23335
23342
  x: V,
23336
23343
  y: L,
23337
23344
  scale: W,
23338
23345
  width: o === "xAxis" ? i.width : C.width,
23339
23346
  height: o === "yAxis" ? i.height : C.height
23340
23347
  });
23341
- return ie.bandSize = getBandSizeOfAxis(ie, ne), !C.hide && o === "xAxis" ? g[N] += (B ? -1 : 1) * ie.height : C.hide || (g[N] += (B ? -1 : 1) * ie.width), _objectSpread$9(_objectSpread$9({}, _), {}, _defineProperty$c({}, E, ie));
23348
+ return ne.bandSize = getBandSizeOfAxis(ne, te), !C.hide && o === "xAxis" ? g[N] += (B ? -1 : 1) * ne.height : C.hide || (g[N] += (B ? -1 : 1) * ne.width), _objectSpread$9(_objectSpread$9({}, _), {}, _defineProperty$c({}, E, ne));
23342
23349
  }, {});
23343
23350
  }, rectWithPoints = function(e, n) {
23344
23351
  var i = e.x, o = e.y, l = n.x, u = n.y;
@@ -26379,9 +26386,9 @@ var getTooltipContent = function(e, n, i, o) {
26379
26386
  if (E[V])
26380
26387
  return E;
26381
26388
  var L = getDisplayedData(e.data, {
26382
- graphicalItems: o.filter(function(ne) {
26383
- var ie, oe = u in ne.props ? ne.props[u] : (ie = ne.type.defaultProps) === null || ie === void 0 ? void 0 : ie[u];
26384
- return oe === V;
26389
+ graphicalItems: o.filter(function(te) {
26390
+ var ne, ae = u in te.props ? te.props[u] : (ne = te.type.defaultProps) === null || ne === void 0 ? void 0 : ne[u];
26391
+ return ae === V;
26385
26392
  }),
26386
26393
  dataStartIndex: f,
26387
26394
  dataEndIndex: p
@@ -26389,38 +26396,38 @@ var getTooltipContent = function(e, n, i, o) {
26389
26396
  isDomainSpecifiedByUser(T.domain, M, A) && (j = parseSpecifiedDomain(T.domain, null, M), _ && (A === "number" || N !== "auto") && (H = getDomainOfDataByKey(L, I, "category")));
26390
26397
  var G = getDefaultDomainByAxisType(A);
26391
26398
  if (!j || j.length === 0) {
26392
- var U, K = (U = T.domain) !== null && U !== void 0 ? U : G;
26399
+ var U, Q = (U = T.domain) !== null && U !== void 0 ? U : G;
26393
26400
  if (I) {
26394
26401
  if (j = getDomainOfDataByKey(L, I, A), A === "category" && _) {
26395
26402
  var F = hasDuplicate(j);
26396
- R && F ? (q = j, j = range(0, B)) : R || (j = parseDomainOfCategoryAxis(K, j, C).reduce(function(ne, ie) {
26397
- return ne.indexOf(ie) >= 0 ? ne : [].concat(_toConsumableArray(ne), [ie]);
26403
+ R && F ? (q = j, j = range(0, B)) : R || (j = parseDomainOfCategoryAxis(Q, j, C).reduce(function(te, ne) {
26404
+ return te.indexOf(ne) >= 0 ? te : [].concat(_toConsumableArray(te), [ne]);
26398
26405
  }, []));
26399
26406
  } else if (A === "category")
26400
- R ? j = j.filter(function(ne) {
26401
- return ne !== "" && !isNil(ne);
26402
- }) : j = parseDomainOfCategoryAxis(K, j, C).reduce(function(ne, ie) {
26403
- return ne.indexOf(ie) >= 0 || ie === "" || isNil(ie) ? ne : [].concat(_toConsumableArray(ne), [ie]);
26407
+ R ? j = j.filter(function(te) {
26408
+ return te !== "" && !isNil(te);
26409
+ }) : j = parseDomainOfCategoryAxis(Q, j, C).reduce(function(te, ne) {
26410
+ return te.indexOf(ne) >= 0 || ne === "" || isNil(ne) ? te : [].concat(_toConsumableArray(te), [ne]);
26404
26411
  }, []);
26405
26412
  else if (A === "number") {
26406
- var z = parseErrorBarsOfAxis(L, o.filter(function(ne) {
26407
- var ie, oe, le = u in ne.props ? ne.props[u] : (ie = ne.type.defaultProps) === null || ie === void 0 ? void 0 : ie[u], ue = "hide" in ne.props ? ne.props.hide : (oe = ne.type.defaultProps) === null || oe === void 0 ? void 0 : oe.hide;
26413
+ var z = parseErrorBarsOfAxis(L, o.filter(function(te) {
26414
+ var ne, ae, le = u in te.props ? te.props[u] : (ne = te.type.defaultProps) === null || ne === void 0 ? void 0 : ne[u], ue = "hide" in te.props ? te.props.hide : (ae = te.type.defaultProps) === null || ae === void 0 ? void 0 : ae.hide;
26408
26415
  return le === V && (D || !ue);
26409
26416
  }), I, l, m);
26410
26417
  z && (j = z);
26411
26418
  }
26412
26419
  _ && (A === "number" || N !== "auto") && (H = getDomainOfDataByKey(L, I, "category"));
26413
- } else _ ? j = range(0, B) : d && d[V] && d[V].hasStack && A === "number" ? j = b === "expand" ? [0, 1] : getDomainOfStackGroups(d[V].stackGroups, f, p) : j = getDomainOfItemsWithSameAxis(L, o.filter(function(ne) {
26414
- var ie = u in ne.props ? ne.props[u] : ne.type.defaultProps[u], oe = "hide" in ne.props ? ne.props.hide : ne.type.defaultProps.hide;
26415
- return ie === V && (D || !oe);
26420
+ } else _ ? j = range(0, B) : d && d[V] && d[V].hasStack && A === "number" ? j = b === "expand" ? [0, 1] : getDomainOfStackGroups(d[V].stackGroups, f, p) : j = getDomainOfItemsWithSameAxis(L, o.filter(function(te) {
26421
+ var ne = u in te.props ? te.props[u] : te.type.defaultProps[u], ae = "hide" in te.props ? te.props.hide : te.type.defaultProps.hide;
26422
+ return ne === V && (D || !ae);
26416
26423
  }), A, m, !0);
26417
26424
  if (A === "number")
26418
- j = detectReferenceElementsDomain(g, j, V, l, O), K && (j = parseSpecifiedDomain(K, j, M));
26419
- else if (A === "category" && K) {
26420
- var W = K, J = j.every(function(ne) {
26421
- return W.indexOf(ne) >= 0;
26425
+ j = detectReferenceElementsDomain(g, j, V, l, O), Q && (j = parseSpecifiedDomain(Q, j, M));
26426
+ else if (A === "category" && Q) {
26427
+ var W = Q, Z = j.every(function(te) {
26428
+ return W.indexOf(te) >= 0;
26422
26429
  });
26423
- J && (j = W);
26430
+ Z && (j = W);
26424
26431
  }
26425
26432
  }
26426
26433
  return _objectSpread(_objectSpread({}, E), {}, _defineProperty({}, V, _objectSpread(_objectSpread({}, T), {}, {
@@ -26550,34 +26557,34 @@ var getTooltipContent = function(e, n, i, o) {
26550
26557
  return e[n].height;
26551
26558
  }, generateCategoricalChart = function(e) {
26552
26559
  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, A) {
26553
- var I = A.graphicalItems, M = A.stackGroups, R = A.offset, N = A.updateId, O = A.dataStartIndex, D = A.dataEndIndex, V = T.barSize, L = T.layout, B = T.barGap, j = T.barCategoryGap, q = T.maxBarSize, H = getAxisNameByLayout(L), G = H.numericAxisName, U = H.cateAxisName, K = hasGraphicalBarItem(I), F = [];
26560
+ var I = A.graphicalItems, M = A.stackGroups, R = A.offset, N = A.updateId, O = A.dataStartIndex, D = A.dataEndIndex, V = T.barSize, L = T.layout, B = T.barGap, j = T.barCategoryGap, q = T.maxBarSize, H = getAxisNameByLayout(L), G = H.numericAxisName, U = H.cateAxisName, Q = hasGraphicalBarItem(I), F = [];
26554
26561
  return I.forEach(function(z, W) {
26555
- var J = getDisplayedData(T.data, {
26562
+ var Z = getDisplayedData(T.data, {
26556
26563
  graphicalItems: [z],
26557
26564
  dataStartIndex: O,
26558
26565
  dataEndIndex: D
26559
- }), ne = z.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, z.type.defaultProps), z.props) : z.props, ie = ne.dataKey, oe = ne.maxBarSize, le = ne["".concat(G, "Id")], ue = ne["".concat(U, "Id")], se = {}, te = f.reduce(function(Pe, ve) {
26560
- var xe, Se, _e = A["".concat(ve.axisType, "Map")], Ce = ne["".concat(ve.axisType, "Id")];
26566
+ }), te = z.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, z.type.defaultProps), z.props) : z.props, ne = te.dataKey, ae = te.maxBarSize, le = te["".concat(G, "Id")], ue = te["".concat(U, "Id")], se = {}, ce = f.reduce(function(Pe, ve) {
26567
+ var xe, Se, _e = A["".concat(ve.axisType, "Map")], Ce = te["".concat(ve.axisType, "Id")];
26561
26568
  _e && _e[Ce] || ve.axisType === "zAxis" || (process.env.NODE_ENV !== "production" ? invariant(!1, "Specifying a(n) ".concat(ve.axisType, "Id requires a corresponding ").concat(
26562
26569
  ve.axisType,
26563
26570
  "Id on the targeted graphical component "
26564
26571
  ).concat((xe = z == null || (Se = z.type) === null || Se === void 0 ? void 0 : Se.displayName) !== null && xe !== void 0 ? xe : "")) : invariant());
26565
26572
  var Ee = _e[Ce];
26566
26573
  return _objectSpread(_objectSpread({}, Pe), {}, _defineProperty(_defineProperty({}, ve.axisType, Ee), "".concat(ve.axisType, "Ticks"), getTicksOfAxis(Ee)));
26567
- }, se), ee = te[U], Z = te["".concat(U, "Ticks")], ce = M && M[le] && M[le].hasStack && getStackedDataOfItem(z, M[le].stackGroups), Q = getDisplayName(z.type).indexOf("Bar") >= 0, de = getBandSizeOfAxis(ee, Z), ae = [], fe = K && getBarSizeList({
26574
+ }, se), oe = ce[U], J = ce["".concat(U, "Ticks")], ie = M && M[le] && M[le].hasStack && getStackedDataOfItem(z, M[le].stackGroups), K = getDisplayName(z.type).indexOf("Bar") >= 0, fe = getBandSizeOfAxis(oe, J), ee = [], de = Q && getBarSizeList({
26568
26575
  barSize: V,
26569
26576
  stackGroups: M,
26570
- totalSize: getCartesianAxisSize(te, U)
26577
+ totalSize: getCartesianAxisSize(ce, U)
26571
26578
  });
26572
- if (Q) {
26573
- var he, me, ye = isNil(oe) ? q : oe, pe = (he = (me = getBandSizeOfAxis(ee, Z, !0)) !== null && me !== void 0 ? me : ye) !== null && he !== void 0 ? he : 0;
26574
- ae = getBarPosition({
26579
+ if (K) {
26580
+ var he, me, ye = isNil(ae) ? q : ae, pe = (he = (me = getBandSizeOfAxis(oe, J, !0)) !== null && me !== void 0 ? me : ye) !== null && he !== void 0 ? he : 0;
26581
+ ee = getBarPosition({
26575
26582
  barGap: B,
26576
26583
  barCategoryGap: j,
26577
- bandSize: pe !== de ? pe : de,
26578
- sizeList: fe[ue],
26584
+ bandSize: pe !== fe ? pe : fe,
26585
+ sizeList: de[ue],
26579
26586
  maxBarSize: ye
26580
- }), pe !== de && (ae = ae.map(function(Pe) {
26587
+ }), pe !== fe && (ee = ee.map(function(Pe) {
26581
26588
  return _objectSpread(_objectSpread({}, Pe), {}, {
26582
26589
  position: _objectSpread(_objectSpread({}, Pe.position), {}, {
26583
26590
  offset: Pe.position.offset - pe / 2
@@ -26587,21 +26594,21 @@ var getTooltipContent = function(e, n, i, o) {
26587
26594
  }
26588
26595
  var ge = z && z.type && z.type.getComposedData;
26589
26596
  ge && F.push({
26590
- props: _objectSpread(_objectSpread({}, ge(_objectSpread(_objectSpread({}, te), {}, {
26591
- displayedData: J,
26597
+ props: _objectSpread(_objectSpread({}, ge(_objectSpread(_objectSpread({}, ce), {}, {
26598
+ displayedData: Z,
26592
26599
  props: T,
26593
- dataKey: ie,
26600
+ dataKey: ne,
26594
26601
  item: z,
26595
- bandSize: de,
26596
- barPosition: ae,
26602
+ bandSize: fe,
26603
+ barPosition: ee,
26597
26604
  offset: R,
26598
- stackedData: ce,
26605
+ stackedData: ie,
26599
26606
  layout: L,
26600
26607
  dataStartIndex: O,
26601
26608
  dataEndIndex: D
26602
26609
  }))), {}, _defineProperty(_defineProperty(_defineProperty({
26603
26610
  key: z.key || "item-".concat(W)
26604
- }, G, te[G]), U, te[U]), "animationId", N)),
26611
+ }, G, ce[G]), U, ce[U]), "animationId", N)),
26605
26612
  childIndex: parseChildIndex(z, T.children),
26606
26613
  item: z
26607
26614
  });
@@ -26612,22 +26619,22 @@ var getTooltipContent = function(e, n, i, o) {
26612
26619
  props: I
26613
26620
  }))
26614
26621
  return null;
26615
- var O = I.children, D = I.layout, V = I.stackOffset, L = I.data, B = I.reverseStackOrder, j = getAxisNameByLayout(D), q = j.numericAxisName, H = j.cateAxisName, G = findAllByType(O, i), U = getStackGroupsByAxisId(L, G, "".concat(q, "Id"), "".concat(H, "Id"), V, B), K = f.reduce(function(ne, ie) {
26616
- var oe = "".concat(ie.axisType, "Map");
26617
- return _objectSpread(_objectSpread({}, ne), {}, _defineProperty({}, oe, getAxisMap(I, _objectSpread(_objectSpread({}, ie), {}, {
26622
+ var O = I.children, D = I.layout, V = I.stackOffset, L = I.data, B = I.reverseStackOrder, j = getAxisNameByLayout(D), q = j.numericAxisName, H = j.cateAxisName, G = findAllByType(O, i), U = getStackGroupsByAxisId(L, G, "".concat(q, "Id"), "".concat(H, "Id"), V, B), Q = f.reduce(function(te, ne) {
26623
+ var ae = "".concat(ne.axisType, "Map");
26624
+ return _objectSpread(_objectSpread({}, te), {}, _defineProperty({}, ae, getAxisMap(I, _objectSpread(_objectSpread({}, ne), {}, {
26618
26625
  graphicalItems: G,
26619
- stackGroups: ie.axisType === q && U,
26626
+ stackGroups: ne.axisType === q && U,
26620
26627
  dataStartIndex: M,
26621
26628
  dataEndIndex: R
26622
26629
  }))));
26623
- }, {}), F = calculateOffset(_objectSpread(_objectSpread({}, K), {}, {
26630
+ }, {}), F = calculateOffset(_objectSpread(_objectSpread({}, Q), {}, {
26624
26631
  props: I,
26625
26632
  graphicalItems: G
26626
26633
  }), A == null ? void 0 : A.legendBBox);
26627
- Object.keys(K).forEach(function(ne) {
26628
- K[ne] = m(I, K[ne], F, ne.replace("Map", ""), n);
26634
+ Object.keys(Q).forEach(function(te) {
26635
+ Q[te] = m(I, Q[te], F, te.replace("Map", ""), n);
26629
26636
  });
26630
- var z = K["".concat(H, "Map")], W = tooltipTicksGenerator(z), J = b(I, _objectSpread(_objectSpread({}, K), {}, {
26637
+ var z = Q["".concat(H, "Map")], W = tooltipTicksGenerator(z), Z = b(I, _objectSpread(_objectSpread({}, Q), {}, {
26631
26638
  dataStartIndex: M,
26632
26639
  dataEndIndex: R,
26633
26640
  updateId: N,
@@ -26636,11 +26643,11 @@ var getTooltipContent = function(e, n, i, o) {
26636
26643
  offset: F
26637
26644
  }));
26638
26645
  return _objectSpread(_objectSpread({
26639
- formattedGraphicalItems: J,
26646
+ formattedGraphicalItems: Z,
26640
26647
  graphicalItems: G,
26641
26648
  offset: F,
26642
26649
  stackGroups: U
26643
- }, W), K);
26650
+ }, W), Q);
26644
26651
  }, E = /* @__PURE__ */ function(S) {
26645
26652
  function T(A) {
26646
26653
  var I, M, R;
@@ -26791,8 +26798,8 @@ var getTooltipContent = function(e, n, i, o) {
26791
26798
  updateId: L
26792
26799
  }, R.state)));
26793
26800
  else if (N.activeTooltipIndex !== void 0) {
26794
- var q = N.chartX, H = N.chartY, G = N.activeTooltipIndex, U = R.state, K = U.offset, F = U.tooltipTicks;
26795
- if (!K)
26801
+ var q = N.chartX, H = N.chartY, G = N.activeTooltipIndex, U = R.state, Q = U.offset, F = U.tooltipTicks;
26802
+ if (!Q)
26796
26803
  return;
26797
26804
  if (typeof V == "function")
26798
26805
  G = V(F, N);
@@ -26804,23 +26811,23 @@ var getTooltipContent = function(e, n, i, o) {
26804
26811
  break;
26805
26812
  }
26806
26813
  }
26807
- var W = _objectSpread(_objectSpread({}, K), {}, {
26808
- x: K.left,
26809
- y: K.top
26810
- }), J = Math.min(q, W.x + W.width), ne = Math.min(H, W.y + W.height), ie = F[G] && F[G].value, oe = getTooltipContent(R.state, R.props.data, G), le = F[G] ? {
26811
- x: D === "horizontal" ? F[G].coordinate : J,
26812
- y: D === "horizontal" ? ne : F[G].coordinate
26814
+ var W = _objectSpread(_objectSpread({}, Q), {}, {
26815
+ x: Q.left,
26816
+ y: Q.top
26817
+ }), Z = Math.min(q, W.x + W.width), te = Math.min(H, W.y + W.height), ne = F[G] && F[G].value, ae = getTooltipContent(R.state, R.props.data, G), le = F[G] ? {
26818
+ x: D === "horizontal" ? F[G].coordinate : Z,
26819
+ y: D === "horizontal" ? te : F[G].coordinate
26813
26820
  } : originCoordinate;
26814
26821
  R.setState(_objectSpread(_objectSpread({}, N), {}, {
26815
- activeLabel: ie,
26822
+ activeLabel: ne,
26816
26823
  activeCoordinate: le,
26817
- activePayload: oe,
26824
+ activePayload: ae,
26818
26825
  activeTooltipIndex: G
26819
26826
  }));
26820
26827
  } else
26821
26828
  R.setState(N);
26822
26829
  }), _defineProperty(R, "renderCursor", function(N) {
26823
- var O, D = R.state, V = D.isTooltipActive, L = D.activeCoordinate, B = D.activePayload, j = D.offset, q = D.activeTooltipIndex, H = D.tooltipAxisBandSize, G = R.getTooltipEventType(), U = (O = N.props.active) !== null && O !== void 0 ? O : V, K = R.props.layout, F = N.key || "_recharts-cursor";
26830
+ var O, D = R.state, V = D.isTooltipActive, L = D.activeCoordinate, B = D.activePayload, j = D.offset, q = D.activeTooltipIndex, H = D.tooltipAxisBandSize, G = R.getTooltipEventType(), U = (O = N.props.active) !== null && O !== void 0 ? O : V, Q = R.props.layout, F = N.key || "_recharts-cursor";
26824
26831
  return /* @__PURE__ */ React__default.createElement(Cursor, {
26825
26832
  key: F,
26826
26833
  activeCoordinate: L,
@@ -26829,7 +26836,7 @@ var getTooltipContent = function(e, n, i, o) {
26829
26836
  chartName: n,
26830
26837
  element: N,
26831
26838
  isActive: U,
26832
- layout: K,
26839
+ layout: Q,
26833
26840
  offset: j,
26834
26841
  tooltipAxisBandSize: H,
26835
26842
  tooltipEventType: G
@@ -26842,7 +26849,7 @@ var getTooltipContent = function(e, n, i, o) {
26842
26849
  ticks: getTicksOfAxis(q, !0)
26843
26850
  }));
26844
26851
  }), _defineProperty(R, "renderPolarGrid", function(N) {
26845
- var O = N.props, D = O.radialLines, V = O.polarAngles, L = O.polarRadius, B = R.state, j = B.radiusAxisMap, q = B.angleAxisMap, H = getAnyElementOfObject(j), G = getAnyElementOfObject(q), U = G.cx, K = G.cy, F = G.innerRadius, z = G.outerRadius;
26852
+ var O = N.props, D = O.radialLines, V = O.polarAngles, L = O.polarRadius, B = R.state, j = B.radiusAxisMap, q = B.angleAxisMap, H = getAnyElementOfObject(j), G = getAnyElementOfObject(q), U = G.cx, Q = G.cy, F = G.innerRadius, z = G.outerRadius;
26846
26853
  return /* @__PURE__ */ cloneElement(N, {
26847
26854
  polarAngles: Array.isArray(V) ? V : getTicksOfAxis(G, !0).map(function(W) {
26848
26855
  return W.coordinate;
@@ -26851,7 +26858,7 @@ var getTooltipContent = function(e, n, i, o) {
26851
26858
  return W.coordinate;
26852
26859
  }),
26853
26860
  cx: U,
26854
- cy: K,
26861
+ cy: Q,
26855
26862
  innerRadius: F,
26856
26863
  outerRadius: z,
26857
26864
  key: N.key || "polar-grid",
@@ -26877,15 +26884,15 @@ var getTooltipContent = function(e, n, i, o) {
26877
26884
  var N, O = R.props, D = O.children, V = O.accessibilityLayer, L = findChildByType(D, Tooltip);
26878
26885
  if (!L)
26879
26886
  return null;
26880
- var B = R.state, j = B.isTooltipActive, q = B.activeCoordinate, H = B.activePayload, G = B.activeLabel, U = B.offset, K = (N = L.props.active) !== null && N !== void 0 ? N : j;
26887
+ var B = R.state, j = B.isTooltipActive, q = B.activeCoordinate, H = B.activePayload, G = B.activeLabel, U = B.offset, Q = (N = L.props.active) !== null && N !== void 0 ? N : j;
26881
26888
  return /* @__PURE__ */ cloneElement(L, {
26882
26889
  viewBox: _objectSpread(_objectSpread({}, U), {}, {
26883
26890
  x: U.left,
26884
26891
  y: U.top
26885
26892
  }),
26886
- active: K,
26893
+ active: Q,
26887
26894
  label: G,
26888
- payload: K ? H : [],
26895
+ payload: Q ? H : [],
26889
26896
  coordinate: q,
26890
26897
  accessibilityLayer: V
26891
26898
  });
@@ -26905,7 +26912,7 @@ var getTooltipContent = function(e, n, i, o) {
26905
26912
  }), _defineProperty(R, "renderReferenceElement", function(N, O, D) {
26906
26913
  if (!N)
26907
26914
  return null;
26908
- var V = R, L = V.clipPathId, B = R.state, j = B.xAxisMap, q = B.yAxisMap, H = B.offset, G = N.type.defaultProps || {}, U = N.props, K = U.xAxisId, F = K === void 0 ? G.xAxisId : K, z = U.yAxisId, W = z === void 0 ? G.yAxisId : z;
26915
+ var V = R, L = V.clipPathId, B = R.state, j = B.xAxisMap, q = B.yAxisMap, H = B.offset, G = N.type.defaultProps || {}, U = N.props, Q = U.xAxisId, F = Q === void 0 ? G.xAxisId : Q, z = U.yAxisId, W = z === void 0 ? G.yAxisId : z;
26909
26916
  return /* @__PURE__ */ cloneElement(N, {
26910
26917
  key: N.key || "".concat(O, "-").concat(D),
26911
26918
  xAxis: j[F],
@@ -26919,7 +26926,7 @@ var getTooltipContent = function(e, n, i, o) {
26919
26926
  clipPathId: L
26920
26927
  });
26921
26928
  }), _defineProperty(R, "renderActivePoints", function(N) {
26922
- var O = N.item, D = N.activePoint, V = N.basePoint, L = N.childIndex, B = N.isRange, j = [], q = O.props.key, H = O.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, O.item.type.defaultProps), O.item.props) : O.item.props, G = H.activeDot, U = H.dataKey, K = _objectSpread(_objectSpread({
26929
+ var O = N.item, D = N.activePoint, V = N.basePoint, L = N.childIndex, B = N.isRange, j = [], q = O.props.key, H = O.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, O.item.type.defaultProps), O.item.props) : O.item.props, G = H.activeDot, U = H.dataKey, Q = _objectSpread(_objectSpread({
26923
26930
  index: L,
26924
26931
  dataKey: U,
26925
26932
  cx: D.x,
@@ -26931,7 +26938,7 @@ var getTooltipContent = function(e, n, i, o) {
26931
26938
  payload: D.payload,
26932
26939
  value: D.value
26933
26940
  }, filterProps(G, !1)), adaptEventHandlers(G));
26934
- return j.push(T.renderActiveDot(G, K, "".concat(q, "-activePoint-").concat(L))), V ? j.push(T.renderActiveDot(G, _objectSpread(_objectSpread({}, K), {}, {
26941
+ return j.push(T.renderActiveDot(G, Q, "".concat(q, "-activePoint-").concat(L))), V ? j.push(T.renderActiveDot(G, _objectSpread(_objectSpread({}, Q), {}, {
26935
26942
  cx: V.x,
26936
26943
  cy: V.y
26937
26944
  }), "".concat(q, "-basePoint-").concat(L))) : B && j.push(null), j;
@@ -26939,48 +26946,48 @@ var getTooltipContent = function(e, n, i, o) {
26939
26946
  var V = R.filterFormatItem(N, O, D);
26940
26947
  if (!V)
26941
26948
  return null;
26942
- var L = R.getTooltipEventType(), B = R.state, j = B.isTooltipActive, q = B.tooltipAxis, H = B.activeTooltipIndex, G = B.activeLabel, U = R.props.children, K = findChildByType(U, Tooltip), F = V.props, z = F.points, W = F.isRange, J = F.baseLine, ne = V.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, V.item.type.defaultProps), V.item.props) : V.item.props, ie = ne.activeDot, oe = ne.hide, le = ne.activeBar, ue = ne.activeShape, se = !!(!oe && j && K && (ie || le || ue)), te = {};
26943
- L !== "axis" && K && K.props.trigger === "click" ? te = {
26949
+ var L = R.getTooltipEventType(), B = R.state, j = B.isTooltipActive, q = B.tooltipAxis, H = B.activeTooltipIndex, G = B.activeLabel, U = R.props.children, Q = findChildByType(U, Tooltip), F = V.props, z = F.points, W = F.isRange, Z = F.baseLine, te = V.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, V.item.type.defaultProps), V.item.props) : V.item.props, ne = te.activeDot, ae = te.hide, le = te.activeBar, ue = te.activeShape, se = !!(!ae && j && Q && (ne || le || ue)), ce = {};
26950
+ L !== "axis" && Q && Q.props.trigger === "click" ? ce = {
26944
26951
  onClick: combineEventHandlers(R.handleItemMouseEnter, N.props.onClick)
26945
- } : L !== "axis" && (te = {
26952
+ } : L !== "axis" && (ce = {
26946
26953
  onMouseLeave: combineEventHandlers(R.handleItemMouseLeave, N.props.onMouseLeave),
26947
26954
  onMouseEnter: combineEventHandlers(R.handleItemMouseEnter, N.props.onMouseEnter)
26948
26955
  });
26949
- var ee = /* @__PURE__ */ cloneElement(N, _objectSpread(_objectSpread({}, V.props), te));
26950
- function Z(ve) {
26956
+ var oe = /* @__PURE__ */ cloneElement(N, _objectSpread(_objectSpread({}, V.props), ce));
26957
+ function J(ve) {
26951
26958
  return typeof q.dataKey == "function" ? q.dataKey(ve.payload) : null;
26952
26959
  }
26953
26960
  if (se)
26954
26961
  if (H >= 0) {
26955
- var ce, Q;
26962
+ var ie, K;
26956
26963
  if (q.dataKey && !q.allowDuplicatedCategory) {
26957
- var de = typeof q.dataKey == "function" ? Z : "payload.".concat(q.dataKey.toString());
26958
- ce = findEntryInArray(z, de, G), Q = W && J && findEntryInArray(J, de, G);
26964
+ var fe = typeof q.dataKey == "function" ? J : "payload.".concat(q.dataKey.toString());
26965
+ ie = findEntryInArray(z, fe, G), K = W && Z && findEntryInArray(Z, fe, G);
26959
26966
  } else
26960
- ce = z == null ? void 0 : z[H], Q = W && J && J[H];
26967
+ ie = z == null ? void 0 : z[H], K = W && Z && Z[H];
26961
26968
  if (ue || le) {
26962
- var ae = N.props.activeIndex !== void 0 ? N.props.activeIndex : H;
26963
- return [/* @__PURE__ */ cloneElement(N, _objectSpread(_objectSpread(_objectSpread({}, V.props), te), {}, {
26964
- activeIndex: ae
26969
+ var ee = N.props.activeIndex !== void 0 ? N.props.activeIndex : H;
26970
+ return [/* @__PURE__ */ cloneElement(N, _objectSpread(_objectSpread(_objectSpread({}, V.props), ce), {}, {
26971
+ activeIndex: ee
26965
26972
  })), null, null];
26966
26973
  }
26967
- if (!isNil(ce))
26968
- return [ee].concat(_toConsumableArray(R.renderActivePoints({
26974
+ if (!isNil(ie))
26975
+ return [oe].concat(_toConsumableArray(R.renderActivePoints({
26969
26976
  item: V,
26970
- activePoint: ce,
26971
- basePoint: Q,
26977
+ activePoint: ie,
26978
+ basePoint: K,
26972
26979
  childIndex: H,
26973
26980
  isRange: W
26974
26981
  })));
26975
26982
  } else {
26976
- var fe, he = (fe = R.getItemByXY(R.state.activeCoordinate)) !== null && fe !== void 0 ? fe : {
26977
- graphicalItem: ee
26978
- }, me = he.graphicalItem, ye = me.item, pe = ye === void 0 ? N : ye, ge = me.childIndex, Pe = _objectSpread(_objectSpread(_objectSpread({}, V.props), te), {}, {
26983
+ var de, he = (de = R.getItemByXY(R.state.activeCoordinate)) !== null && de !== void 0 ? de : {
26984
+ graphicalItem: oe
26985
+ }, me = he.graphicalItem, ye = me.item, pe = ye === void 0 ? N : ye, ge = me.childIndex, Pe = _objectSpread(_objectSpread(_objectSpread({}, V.props), ce), {}, {
26979
26986
  activeIndex: ge
26980
26987
  });
26981
26988
  return [/* @__PURE__ */ cloneElement(pe, Pe), null, null];
26982
26989
  }
26983
- return W ? [ee, null, null] : [ee, null];
26990
+ return W ? [oe, null, null] : [oe, null];
26984
26991
  }), _defineProperty(R, "renderCustomized", function(N, O, D) {
26985
26992
  return /* @__PURE__ */ cloneElement(N, _objectSpread(_objectSpread({
26986
26993
  key: "recharts-customized-".concat(D)
@@ -27085,14 +27092,14 @@ var getTooltipContent = function(e, n, i, o) {
27085
27092
  return z.type.name === "Scatter";
27086
27093
  });
27087
27094
  U && (G = _objectSpread(_objectSpread({}, G), U.props.points[V].tooltipPosition), B = U.props.points[V].tooltipPayload);
27088
- var K = {
27095
+ var Q = {
27089
27096
  activeTooltipIndex: V,
27090
27097
  isTooltipActive: !0,
27091
27098
  activeLabel: L,
27092
27099
  activePayload: B,
27093
27100
  activeCoordinate: G
27094
27101
  };
27095
- this.setState(K), this.renderCursor(D), this.accessibilityManager.setIndex(V);
27102
+ this.setState(Q), this.renderCursor(D), this.accessibilityManager.setIndex(V);
27096
27103
  }
27097
27104
  }
27098
27105
  }
@@ -27154,9 +27161,9 @@ var getTooltipContent = function(e, n, i, o) {
27154
27161
  return null;
27155
27162
  var L = this.state, B = L.xAxisMap, j = L.yAxisMap, q = this.getTooltipEventType(), H = getTooltipData(this.state, this.props.data, this.props.layout, V);
27156
27163
  if (q !== "axis" && B && j) {
27157
- var G = getAnyElementOfObject(B).scale, U = getAnyElementOfObject(j).scale, K = G && G.invert ? G.invert(O.chartX) : null, F = U && U.invert ? U.invert(O.chartY) : null;
27164
+ var G = getAnyElementOfObject(B).scale, U = getAnyElementOfObject(j).scale, Q = G && G.invert ? G.invert(O.chartX) : null, F = U && U.invert ? U.invert(O.chartY) : null;
27158
27165
  return _objectSpread(_objectSpread({}, O), {}, {
27159
- xValue: K,
27166
+ xValue: Q,
27160
27167
  yValue: F
27161
27168
  }, H);
27162
27169
  }
@@ -27295,10 +27302,10 @@ var getTooltipContent = function(e, n, i, o) {
27295
27302
  graphicalItem: V,
27296
27303
  activeTooltipItem: N,
27297
27304
  itemData: j.data
27298
- }), K = j.activeIndex === void 0 ? U : j.activeIndex;
27305
+ }), Q = j.activeIndex === void 0 ? U : j.activeIndex;
27299
27306
  return {
27300
27307
  graphicalItem: _objectSpread(_objectSpread({}, V), {}, {
27301
- childIndex: K
27308
+ childIndex: Q
27302
27309
  }),
27303
27310
  payload: isScatter(V, N) ? j.data[U] : V.props.data[U]
27304
27311
  };
@@ -27333,7 +27340,7 @@ var getTooltipContent = function(e, n, i, o) {
27333
27340
  I.accessibilityManager.focus();
27334
27341
  };
27335
27342
  }
27336
- var K = this.parseEventsOfWrapper();
27343
+ var Q = this.parseEventsOfWrapper();
27337
27344
  return /* @__PURE__ */ React__default.createElement(ChartLayoutContextProvider, {
27338
27345
  state: this.state,
27339
27346
  width: this.props.width,
@@ -27347,7 +27354,7 @@ var getTooltipContent = function(e, n, i, o) {
27347
27354
  width: O,
27348
27355
  height: D
27349
27356
  }, V)
27350
- }, K, {
27357
+ }, Q, {
27351
27358
  ref: function(z) {
27352
27359
  I.container = z;
27353
27360
  }
@@ -27421,19 +27428,19 @@ var getTooltipContent = function(e, n, i, o) {
27421
27428
  });
27422
27429
  }
27423
27430
  if (!isChildrenEqual(M, T.prevChildren)) {
27424
- var K, F, z, W, J = findChildByType(M, Brush), ne = J && (K = (F = J.props) === null || F === void 0 ? void 0 : F.startIndex) !== null && K !== void 0 ? K : L, ie = J && (z = (W = J.props) === null || W === void 0 ? void 0 : W.endIndex) !== null && z !== void 0 ? z : B, oe = ne !== L || ie !== B, le = !isNil(I), ue = le && !oe ? T.updateId : T.updateId + 1;
27431
+ var Q, F, z, W, Z = findChildByType(M, Brush), te = Z && (Q = (F = Z.props) === null || F === void 0 ? void 0 : F.startIndex) !== null && Q !== void 0 ? Q : L, ne = Z && (z = (W = Z.props) === null || W === void 0 ? void 0 : W.endIndex) !== null && z !== void 0 ? z : B, ae = te !== L || ne !== B, le = !isNil(I), ue = le && !ae ? T.updateId : T.updateId + 1;
27425
27432
  return _objectSpread(_objectSpread({
27426
27433
  updateId: ue
27427
27434
  }, _(_objectSpread(_objectSpread({
27428
27435
  props: S
27429
27436
  }, T), {}, {
27430
27437
  updateId: ue,
27431
- dataStartIndex: ne,
27432
- dataEndIndex: ie
27438
+ dataStartIndex: te,
27439
+ dataEndIndex: ne
27433
27440
  }), T)), {}, {
27434
27441
  prevChildren: M,
27435
- dataStartIndex: ne,
27436
- dataEndIndex: ie
27442
+ dataStartIndex: te,
27443
+ dataEndIndex: ne
27437
27444
  });
27438
27445
  }
27439
27446
  return null;
@@ -28010,8 +28017,8 @@ var lottie = createCommonjsModule(function(module, exports) {
28010
28017
  else L[B].ty === "gr" && D(L[B].it);
28011
28018
  }
28012
28019
  function V(L) {
28013
- var B, j, q, H, G, U, K = L.length;
28014
- for (j = 0; j < K; j += 1) {
28020
+ var B, j, q, H, G, U, Q = L.length;
28021
+ for (j = 0; j < Q; j += 1) {
28015
28022
  if ((B = L[j]).hasMask) {
28016
28023
  var F = B.masksProperties;
28017
28024
  for (H = F.length, q = 0; q < H; q += 1) if (F[q].pt.k.i) F[q].pt.k.c = F[q].cl;
@@ -28667,8 +28674,8 @@ var lottie = createCommonjsModule(function(module, exports) {
28667
28674
  return b && S && (T[m] = n(_[m], _[0], E[m], C[0]), A += T[m].addedLength), g.totalLength = A, g;
28668
28675
  }, getNewSegment: function(p, m, g, b, _, E, C) {
28669
28676
  _ < 0 ? _ = 0 : _ > 1 && (_ = 1);
28670
- var S, T = d(_, C), A = d(E = E > 1 ? 1 : E, C), I = p.length, M = 1 - T, R = 1 - A, N = M * M * M, O = T * M * M * 3, D = T * T * M * 3, V = T * T * T, L = M * M * R, B = T * M * R + M * T * R + M * M * A, j = T * T * R + M * T * A + T * M * A, q = T * T * A, H = M * R * R, G = T * R * R + M * A * R + M * R * A, U = T * A * R + M * A * A + T * R * A, K = T * A * A, F = R * R * R, z = A * R * R + R * A * R + R * R * A, W = A * A * R + R * A * A + A * R * A, J = A * A * A;
28671
- 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 * (L * p[S] + B * g[S] + j * b[S] + q * m[S])) / 1e3, f[4 * S + 2] = t.round(1e3 * (H * p[S] + G * g[S] + U * b[S] + K * m[S])) / 1e3, f[4 * S + 3] = t.round(1e3 * (F * p[S] + z * g[S] + W * b[S] + J * m[S])) / 1e3;
28677
+ var S, T = d(_, C), A = d(E = E > 1 ? 1 : E, C), I = p.length, M = 1 - T, R = 1 - A, N = M * M * M, O = T * M * M * 3, D = T * T * M * 3, V = T * T * T, L = M * M * R, B = T * M * R + M * T * R + M * M * A, j = T * T * R + M * T * A + T * M * A, q = T * T * A, H = M * R * R, G = T * R * R + M * A * R + M * R * A, U = T * A * R + M * A * A + T * R * A, Q = T * A * A, F = R * R * R, z = A * R * R + R * A * R + R * R * A, W = A * A * R + R * A * A + A * R * A, Z = A * A * A;
28678
+ 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 * (L * p[S] + B * g[S] + j * b[S] + q * m[S])) / 1e3, f[4 * S + 2] = t.round(1e3 * (H * p[S] + G * g[S] + U * b[S] + Q * m[S])) / 1e3, f[4 * S + 3] = t.round(1e3 * (F * p[S] + z * g[S] + W * b[S] + Z * m[S])) / 1e3;
28672
28679
  return f;
28673
28680
  }, getPointInSegment: function(p, m, g, b, _, E) {
28674
28681
  var C = d(_, E), S = 1 - C;
@@ -29027,23 +29034,23 @@ var lottie = createCommonjsModule(function(module, exports) {
29027
29034
  return this.shear(n(F), n(z));
29028
29035
  }
29029
29036
  function g(F, z) {
29030
- var W = t(z), J = e(z);
29031
- return this._t(W, J, 0, 0, -J, W, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, n(F), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(W, -J, 0, 0, J, W, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
29037
+ var W = t(z), Z = e(z);
29038
+ return this._t(W, Z, 0, 0, -Z, W, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, n(F), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(W, -Z, 0, 0, Z, W, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
29032
29039
  }
29033
29040
  function b(F, z, W) {
29034
29041
  return W || W === 0 || (W = 1), F === 1 && z === 1 && W === 1 ? this : this._t(F, 0, 0, 0, 0, z, 0, 0, 0, 0, W, 0, 0, 0, 0, 1);
29035
29042
  }
29036
- function _(F, z, W, J, ne, ie, oe, le, ue, se, te, ee, Z, ce, Q, de) {
29037
- return this.props[0] = F, this.props[1] = z, this.props[2] = W, this.props[3] = J, this.props[4] = ne, this.props[5] = ie, this.props[6] = oe, this.props[7] = le, this.props[8] = ue, this.props[9] = se, this.props[10] = te, this.props[11] = ee, this.props[12] = Z, this.props[13] = ce, this.props[14] = Q, this.props[15] = de, this;
29043
+ function _(F, z, W, Z, te, ne, ae, le, ue, se, ce, oe, J, ie, K, fe) {
29044
+ return this.props[0] = F, this.props[1] = z, this.props[2] = W, this.props[3] = Z, this.props[4] = te, this.props[5] = ne, this.props[6] = ae, this.props[7] = le, this.props[8] = ue, this.props[9] = se, this.props[10] = ce, this.props[11] = oe, this.props[12] = J, this.props[13] = ie, this.props[14] = K, this.props[15] = fe, this;
29038
29045
  }
29039
29046
  function E(F, z, W) {
29040
29047
  return W = W || 0, F !== 0 || z !== 0 || W !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, F, z, W, 1) : this;
29041
29048
  }
29042
- function C(F, z, W, J, ne, ie, oe, le, ue, se, te, ee, Z, ce, Q, de) {
29043
- var ae = this.props;
29044
- if (F === 1 && z === 0 && W === 0 && J === 0 && ne === 0 && ie === 1 && oe === 0 && le === 0 && ue === 0 && se === 0 && te === 1 && ee === 0) return ae[12] = ae[12] * F + ae[15] * Z, ae[13] = ae[13] * ie + ae[15] * ce, ae[14] = ae[14] * te + ae[15] * Q, ae[15] *= de, this._identityCalculated = !1, this;
29045
- var fe = ae[0], he = ae[1], me = ae[2], ye = ae[3], pe = ae[4], ge = ae[5], Pe = ae[6], ve = ae[7], xe = ae[8], Se = ae[9], _e = ae[10], Ce = ae[11], Ee = ae[12], we = ae[13], Te = ae[14], Ae = ae[15];
29046
- return ae[0] = fe * F + he * ne + me * ue + ye * Z, ae[1] = fe * z + he * ie + me * se + ye * ce, ae[2] = fe * W + he * oe + me * te + ye * Q, ae[3] = fe * J + he * le + me * ee + ye * de, ae[4] = pe * F + ge * ne + Pe * ue + ve * Z, ae[5] = pe * z + ge * ie + Pe * se + ve * ce, ae[6] = pe * W + ge * oe + Pe * te + ve * Q, ae[7] = pe * J + ge * le + Pe * ee + ve * de, ae[8] = xe * F + Se * ne + _e * ue + Ce * Z, ae[9] = xe * z + Se * ie + _e * se + Ce * ce, ae[10] = xe * W + Se * oe + _e * te + Ce * Q, ae[11] = xe * J + Se * le + _e * ee + Ce * de, ae[12] = Ee * F + we * ne + Te * ue + Ae * Z, ae[13] = Ee * z + we * ie + Te * se + Ae * ce, ae[14] = Ee * W + we * oe + Te * te + Ae * Q, ae[15] = Ee * J + we * le + Te * ee + Ae * de, this._identityCalculated = !1, this;
29049
+ function C(F, z, W, Z, te, ne, ae, le, ue, se, ce, oe, J, ie, K, fe) {
29050
+ var ee = this.props;
29051
+ if (F === 1 && z === 0 && W === 0 && Z === 0 && te === 0 && ne === 1 && ae === 0 && le === 0 && ue === 0 && se === 0 && ce === 1 && oe === 0) return ee[12] = ee[12] * F + ee[15] * J, ee[13] = ee[13] * ne + ee[15] * ie, ee[14] = ee[14] * ce + ee[15] * K, ee[15] *= fe, this._identityCalculated = !1, this;
29052
+ var de = ee[0], he = ee[1], me = ee[2], ye = ee[3], pe = ee[4], ge = ee[5], Pe = ee[6], ve = ee[7], xe = ee[8], Se = ee[9], _e = ee[10], Ce = ee[11], Ee = ee[12], we = ee[13], Te = ee[14], Ae = ee[15];
29053
+ return ee[0] = de * F + he * te + me * ue + ye * J, ee[1] = de * z + he * ne + me * se + ye * ie, ee[2] = de * W + he * ae + me * ce + ye * K, ee[3] = de * Z + he * le + me * oe + ye * fe, ee[4] = pe * F + ge * te + Pe * ue + ve * J, ee[5] = pe * z + ge * ne + Pe * se + ve * ie, ee[6] = pe * W + ge * ae + Pe * ce + ve * K, ee[7] = pe * Z + ge * le + Pe * oe + ve * fe, ee[8] = xe * F + Se * te + _e * ue + Ce * J, ee[9] = xe * z + Se * ne + _e * se + Ce * ie, ee[10] = xe * W + Se * ae + _e * ce + Ce * K, ee[11] = xe * Z + Se * le + _e * oe + Ce * fe, ee[12] = Ee * F + we * te + Te * ue + Ae * J, ee[13] = Ee * z + we * ne + Te * se + Ae * ie, ee[14] = Ee * W + we * ae + Te * ce + Ae * K, ee[15] = Ee * Z + we * le + Te * oe + Ae * fe, this._identityCalculated = !1, this;
29047
29054
  }
29048
29055
  function S(F) {
29049
29056
  var z = F.props;
@@ -29081,25 +29088,25 @@ var lottie = createCommonjsModule(function(module, exports) {
29081
29088
  return F * this.props[2] + z * this.props[6] + W * this.props[10] + this.props[14];
29082
29089
  }
29083
29090
  function V() {
29084
- var F = this.props[0] * this.props[5] - this.props[1] * this.props[4], z = this.props[5] / F, W = -this.props[1] / F, J = -this.props[4] / F, ne = this.props[0] / F, ie = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / F, oe = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / F, le = new Matrix();
29085
- return le.props[0] = z, le.props[1] = W, le.props[4] = J, le.props[5] = ne, le.props[12] = ie, le.props[13] = oe, le;
29091
+ var F = this.props[0] * this.props[5] - this.props[1] * this.props[4], z = this.props[5] / F, W = -this.props[1] / F, Z = -this.props[4] / F, te = this.props[0] / F, ne = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / F, ae = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / F, le = new Matrix();
29092
+ return le.props[0] = z, le.props[1] = W, le.props[4] = Z, le.props[5] = te, le.props[12] = ne, le.props[13] = ae, le;
29086
29093
  }
29087
29094
  function L(F) {
29088
29095
  return this.getInverseMatrix().applyToPointArray(F[0], F[1], F[2] || 0);
29089
29096
  }
29090
29097
  function B(F) {
29091
- var z, W = F.length, J = [];
29092
- for (z = 0; z < W; z += 1) J[z] = L(F[z]);
29093
- return J;
29098
+ var z, W = F.length, Z = [];
29099
+ for (z = 0; z < W; z += 1) Z[z] = L(F[z]);
29100
+ return Z;
29094
29101
  }
29095
29102
  function j(F, z, W) {
29096
- var J = createTypedArray("float32", 6);
29097
- if (this.isIdentity()) J[0] = F[0], J[1] = F[1], J[2] = z[0], J[3] = z[1], J[4] = W[0], J[5] = W[1];
29103
+ var Z = createTypedArray("float32", 6);
29104
+ if (this.isIdentity()) Z[0] = F[0], Z[1] = F[1], Z[2] = z[0], Z[3] = z[1], Z[4] = W[0], Z[5] = W[1];
29098
29105
  else {
29099
- var ne = this.props[0], ie = this.props[1], oe = this.props[4], le = this.props[5], ue = this.props[12], se = this.props[13];
29100
- J[0] = F[0] * ne + F[1] * oe + ue, J[1] = F[0] * ie + F[1] * le + se, J[2] = z[0] * ne + z[1] * oe + ue, J[3] = z[0] * ie + z[1] * le + se, J[4] = W[0] * ne + W[1] * oe + ue, J[5] = W[0] * ie + W[1] * le + se;
29106
+ var te = this.props[0], ne = this.props[1], ae = this.props[4], le = this.props[5], ue = this.props[12], se = this.props[13];
29107
+ Z[0] = F[0] * te + F[1] * ae + ue, Z[1] = F[0] * ne + F[1] * le + se, Z[2] = z[0] * te + z[1] * ae + ue, Z[3] = z[0] * ne + z[1] * le + se, Z[4] = W[0] * te + W[1] * ae + ue, Z[5] = W[0] * ne + W[1] * le + se;
29101
29108
  }
29102
- return J;
29109
+ return Z;
29103
29110
  }
29104
29111
  function q(F, z, W) {
29105
29112
  return this.isIdentity() ? [F, z, W] : [F * this.props[0] + z * this.props[4] + W * this.props[8] + this.props[12], F * this.props[1] + z * this.props[5] + W * this.props[9] + this.props[13], F * this.props[2] + z * this.props[6] + W * this.props[10] + this.props[14]];
@@ -29116,12 +29123,12 @@ var lottie = createCommonjsModule(function(module, exports) {
29116
29123
  function U(F) {
29117
29124
  return F < 1e-6 && F > 0 || F > -1e-6 && F < 0 ? i(1e4 * F) / 1e4 : F;
29118
29125
  }
29119
- function K() {
29126
+ function Q() {
29120
29127
  var F = this.props;
29121
29128
  return "matrix(" + U(F[0]) + "," + U(F[1]) + "," + U(F[4]) + "," + U(F[5]) + "," + U(F[12]) + "," + U(F[13]) + ")";
29122
29129
  }
29123
29130
  return function() {
29124
- 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 = R, this.applyToX = N, this.applyToY = O, this.applyToZ = D, this.applyToPointArray = q, this.applyToTriplePoints = j, this.applyToPointStringified = H, this.toCSS = G, this.to2dCSS = K, this.clone = I, this.cloneFromProps = M, this.equals = A, this.inversePoints = B, this.inversePoint = L, this.getInverseMatrix = V, this._t = this.transform, this.isIdentity = T, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
29131
+ 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 = R, this.applyToX = N, this.applyToY = O, this.applyToZ = D, this.applyToPointArray = q, this.applyToTriplePoints = j, this.applyToPointStringified = H, this.toCSS = G, this.to2dCSS = Q, this.clone = I, this.cloneFromProps = M, this.equals = A, this.inversePoints = B, this.inversePoint = L, this.getInverseMatrix = V, this._t = this.transform, this.isIdentity = T, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
29125
29132
  };
29126
29133
  }();
29127
29134
  function _typeof$3(t) {
@@ -30682,14 +30689,14 @@ var lottie = createCommonjsModule(function(module, exports) {
30682
30689
  t.justifyOffset = 0;
30683
30690
  }
30684
30691
  t.lineWidths = S;
30685
- var U, K, F, z, W = p.a;
30692
+ var U, Q, F, z, W = p.a;
30686
30693
  u = W.length;
30687
- var J = [];
30694
+ var Z = [];
30688
30695
  for (l = 0; l < u; l += 1) {
30689
- for ((U = W[l]).a.sc && (t.strokeColorAnim = !0), U.a.sw && (t.strokeWidthAnim = !0), (U.a.fc || U.a.fh || U.a.fs || U.a.fb) && (t.fillColorAnim = !0), z = 0, F = U.s.b, e = 0; e < n; e += 1) (K = m[e]).anIndexes[l] = z, (F == 1 && K.val !== "" || F == 2 && K.val !== "" && K.val !== " " || F == 3 && (K.n || K.val == " " || e == n - 1) || F == 4 && (K.n || e == n - 1)) && (U.s.rn === 1 && J.push(z), z += 1);
30696
+ for ((U = W[l]).a.sc && (t.strokeColorAnim = !0), U.a.sw && (t.strokeWidthAnim = !0), (U.a.fc || U.a.fh || U.a.fs || U.a.fb) && (t.fillColorAnim = !0), z = 0, F = U.s.b, e = 0; e < n; e += 1) (Q = m[e]).anIndexes[l] = z, (F == 1 && Q.val !== "" || F == 2 && Q.val !== "" && Q.val !== " " || F == 3 && (Q.n || Q.val == " " || e == n - 1) || F == 4 && (Q.n || e == n - 1)) && (U.s.rn === 1 && Z.push(z), z += 1);
30690
30697
  p.a[l].s.totalChars = z;
30691
- var ne, ie = -1;
30692
- if (U.s.rn === 1) for (e = 0; e < n; e += 1) ie != (K = m[e]).anIndexes[l] && (ie = K.anIndexes[l], ne = J.splice(Math.floor(Math.random() * J.length), 1)[0]), K.anIndexes[l] = ne;
30698
+ var te, ne = -1;
30699
+ if (U.s.rn === 1) for (e = 0; e < n; e += 1) ne != (Q = m[e]).anIndexes[l] && (ne = Q.anIndexes[l], te = Z.splice(Math.floor(Math.random() * Z.length), 1)[0]), Q.anIndexes[l] = te;
30693
30700
  }
30694
30701
  t.yOffset = t.finalLineHeight || 1.2 * t.finalSize, t.ls = t.ls || 0, t.ascent = I.ascent * t.finalSize / 100;
30695
30702
  }, TextProperty.prototype.updateDocumentData = function(t, e) {
@@ -30771,9 +30778,9 @@ var lottie = createCommonjsModule(function(module, exports) {
30771
30778
  _ = (E = C[b].points)[g - 1], S = (f = E[g]).partialLength;
30772
30779
  }
30773
30780
  l = B.length, n = 0, i = 0;
30774
- var H, G, U, K, F, z = 1.2 * t.finalSize * 0.714, W = !0;
30781
+ var H, G, U, Q, F, z = 1.2 * t.finalSize * 0.714, W = !0;
30775
30782
  U = N.length;
30776
- var J, ne, ie, oe, le, ue, se, te, ee, Z, ce, Q, de = -1, ae = d, fe = b, he = g, me = -1, ye = "", pe = this.defaultPropsArray;
30783
+ var Z, te, ne, ae, le, ue, se, ce, oe, J, ie, K, fe = -1, ee = d, de = b, he = g, me = -1, ye = "", pe = this.defaultPropsArray;
30777
30784
  if (t.j === 2 || t.j === 1) {
30778
30785
  var ge = 0, Pe = 0, ve = t.j === 2 ? -0.5 : -1, xe = 0, Se = !0;
30779
30786
  for (o = 0; o < l; o += 1) if (B[o].n) {
@@ -30786,7 +30793,7 @@ var lottie = createCommonjsModule(function(module, exports) {
30786
30793
  for (ge && (ge += Pe); xe < o; ) B[xe].animatorJustifyOffset = ge, xe += 1;
30787
30794
  }
30788
30795
  for (o = 0; o < l; o += 1) {
30789
- if (D.reset(), oe = 1, B[o].n) n = 0, i += t.yOffset, i += W ? 1 : 0, d = ae, W = !1, this._hasMaskedPath && (g = he, _ = (E = C[b = fe].points)[g - 1], S = (f = E[g]).partialLength, p = 0), ye = "", ce = "", ee = "", Q = "", pe = this.defaultPropsArray;
30796
+ if (D.reset(), ae = 1, B[o].n) n = 0, i += t.yOffset, i += W ? 1 : 0, d = ee, W = !1, this._hasMaskedPath && (g = he, _ = (E = C[b = de].points)[g - 1], S = (f = E[g]).partialLength, p = 0), ye = "", ie = "", oe = "", K = "", pe = this.defaultPropsArray;
30790
30797
  else {
30791
30798
  if (this._hasMaskedPath) {
30792
30799
  if (me !== B[o].line) {
@@ -30799,30 +30806,30 @@ var lottie = createCommonjsModule(function(module, exports) {
30799
30806
  }
30800
30807
  me = B[o].line;
30801
30808
  }
30802
- de !== B[o].ind && (B[de] && (d += B[de].extra), d += B[o].an / 2, de = B[o].ind), d += R[0] * B[o].an * 5e-3;
30809
+ fe !== B[o].ind && (B[fe] && (d += B[fe].extra), d += B[o].an / 2, fe = B[o].ind), d += R[0] * B[o].an * 5e-3;
30803
30810
  var _e = 0;
30804
30811
  for (G = 0; G < U; G += 1) (H = N[G].a).p.propType && ((F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars)).length ? _e += H.p.v[0] * F[0] : _e += H.p.v[0] * F), H.a.propType && ((F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars)).length ? _e += H.a.v[0] * F[0] : _e += H.a.v[0] * F);
30805
- for (m = !0, this._pathData.a.v && (d = 0.5 * B[0].an + (T - this._pathData.f.v - 0.5 * B[0].an - 0.5 * B[B.length - 1].an) * de / (l - 1), d += this._pathData.f.v); m; ) p + S >= d + _e || !E ? (A = (d + _e - p) / f.partialLength, ne = _.point[0] + (f.point[0] - _.point[0]) * A, ie = _.point[1] + (f.point[1] - _.point[1]) * A, D.translate(-R[0] * B[o].an * 5e-3, -R[1] * z * 0.01), m = !1) : E && (p += f.partialLength, (g += 1) >= E.length && (g = 0, C[b += 1] ? E = C[b].points : M.v.c ? (g = 0, E = C[b = 0].points) : (p -= f.partialLength, E = null)), E && (_ = f, S = (f = E[g]).partialLength));
30806
- J = B[o].an / 2 - B[o].add, D.translate(-J, 0, 0);
30807
- } else J = B[o].an / 2 - B[o].add, D.translate(-J, 0, 0), D.translate(-R[0] * B[o].an * 5e-3, -R[1] * z * 0.01, 0);
30812
+ for (m = !0, this._pathData.a.v && (d = 0.5 * B[0].an + (T - this._pathData.f.v - 0.5 * B[0].an - 0.5 * B[B.length - 1].an) * fe / (l - 1), d += this._pathData.f.v); m; ) p + S >= d + _e || !E ? (A = (d + _e - p) / f.partialLength, te = _.point[0] + (f.point[0] - _.point[0]) * A, ne = _.point[1] + (f.point[1] - _.point[1]) * A, D.translate(-R[0] * B[o].an * 5e-3, -R[1] * z * 0.01), m = !1) : E && (p += f.partialLength, (g += 1) >= E.length && (g = 0, C[b += 1] ? E = C[b].points : M.v.c ? (g = 0, E = C[b = 0].points) : (p -= f.partialLength, E = null)), E && (_ = f, S = (f = E[g]).partialLength));
30813
+ Z = B[o].an / 2 - B[o].add, D.translate(-Z, 0, 0);
30814
+ } else Z = B[o].an / 2 - B[o].add, D.translate(-Z, 0, 0), D.translate(-R[0] * B[o].an * 5e-3, -R[1] * z * 0.01, 0);
30808
30815
  for (G = 0; G < U; G += 1) (H = N[G].a).t.propType && (F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars), n === 0 && t.j === 0 || (this._hasMaskedPath ? F.length ? d += H.t.v * F[0] : d += H.t.v * F : F.length ? n += H.t.v * F[0] : n += H.t.v * F));
30809
30816
  for (t.strokeWidthAnim && (ue = t.sw || 0), t.strokeColorAnim && (le = t.sc ? [t.sc[0], t.sc[1], t.sc[2]] : [0, 0, 0]), t.fillColorAnim && t.fc && (se = [t.fc[0], t.fc[1], t.fc[2]]), G = 0; G < U; G += 1) (H = N[G].a).a.propType && ((F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars)).length ? D.translate(-H.a.v[0] * F[0], -H.a.v[1] * F[1], H.a.v[2] * F[2]) : D.translate(-H.a.v[0] * F, -H.a.v[1] * F, H.a.v[2] * F));
30810
30817
  for (G = 0; G < U; G += 1) (H = N[G].a).s.propType && ((F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars)).length ? D.scale(1 + (H.s.v[0] - 1) * F[0], 1 + (H.s.v[1] - 1) * F[1], 1) : D.scale(1 + (H.s.v[0] - 1) * F, 1 + (H.s.v[1] - 1) * F, 1));
30811
30818
  for (G = 0; G < U; G += 1) {
30812
- if (H = N[G].a, F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars), H.sk.propType && (F.length ? D.skewFromAxis(-H.sk.v * F[0], H.sa.v * F[1]) : D.skewFromAxis(-H.sk.v * F, H.sa.v * F)), H.r.propType && (F.length ? D.rotateZ(-H.r.v * F[2]) : D.rotateZ(-H.r.v * F)), H.ry.propType && (F.length ? D.rotateY(H.ry.v * F[1]) : D.rotateY(H.ry.v * F)), H.rx.propType && (F.length ? D.rotateX(H.rx.v * F[0]) : D.rotateX(H.rx.v * F)), H.o.propType && (F.length ? oe += (H.o.v * F[0] - oe) * F[0] : oe += (H.o.v * F - oe) * F), t.strokeWidthAnim && H.sw.propType && (F.length ? ue += H.sw.v * F[0] : ue += H.sw.v * F), t.strokeColorAnim && H.sc.propType) for (te = 0; te < 3; te += 1) F.length ? le[te] += (H.sc.v[te] - le[te]) * F[0] : le[te] += (H.sc.v[te] - le[te]) * F;
30819
+ if (H = N[G].a, F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars), H.sk.propType && (F.length ? D.skewFromAxis(-H.sk.v * F[0], H.sa.v * F[1]) : D.skewFromAxis(-H.sk.v * F, H.sa.v * F)), H.r.propType && (F.length ? D.rotateZ(-H.r.v * F[2]) : D.rotateZ(-H.r.v * F)), H.ry.propType && (F.length ? D.rotateY(H.ry.v * F[1]) : D.rotateY(H.ry.v * F)), H.rx.propType && (F.length ? D.rotateX(H.rx.v * F[0]) : D.rotateX(H.rx.v * F)), H.o.propType && (F.length ? ae += (H.o.v * F[0] - ae) * F[0] : ae += (H.o.v * F - ae) * F), t.strokeWidthAnim && H.sw.propType && (F.length ? ue += H.sw.v * F[0] : ue += H.sw.v * F), t.strokeColorAnim && H.sc.propType) for (ce = 0; ce < 3; ce += 1) F.length ? le[ce] += (H.sc.v[ce] - le[ce]) * F[0] : le[ce] += (H.sc.v[ce] - le[ce]) * F;
30813
30820
  if (t.fillColorAnim && t.fc) {
30814
- if (H.fc.propType) for (te = 0; te < 3; te += 1) F.length ? se[te] += (H.fc.v[te] - se[te]) * F[0] : se[te] += (H.fc.v[te] - se[te]) * F;
30821
+ if (H.fc.propType) for (ce = 0; ce < 3; ce += 1) F.length ? se[ce] += (H.fc.v[ce] - se[ce]) * F[0] : se[ce] += (H.fc.v[ce] - se[ce]) * F;
30815
30822
  H.fh.propType && (se = F.length ? addHueToRGB(se, H.fh.v * F[0]) : addHueToRGB(se, H.fh.v * F)), H.fs.propType && (se = F.length ? addSaturationToRGB(se, H.fs.v * F[0]) : addSaturationToRGB(se, H.fs.v * F)), H.fb.propType && (se = F.length ? addBrightnessToRGB(se, H.fb.v * F[0]) : addBrightnessToRGB(se, H.fb.v * F));
30816
30823
  }
30817
30824
  }
30818
30825
  for (G = 0; G < U; G += 1) (H = N[G].a).p.propType && (F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars), this._hasMaskedPath ? F.length ? D.translate(0, H.p.v[1] * F[0], -H.p.v[2] * F[1]) : D.translate(0, H.p.v[1] * F, -H.p.v[2] * F) : F.length ? D.translate(H.p.v[0] * F[0], H.p.v[1] * F[1], -H.p.v[2] * F[2]) : D.translate(H.p.v[0] * F, H.p.v[1] * F, -H.p.v[2] * F));
30819
- if (t.strokeWidthAnim && (ee = ue < 0 ? 0 : ue), t.strokeColorAnim && (Z = "rgb(" + Math.round(255 * le[0]) + "," + Math.round(255 * le[1]) + "," + Math.round(255 * le[2]) + ")"), t.fillColorAnim && t.fc && (ce = "rgb(" + Math.round(255 * se[0]) + "," + Math.round(255 * se[1]) + "," + Math.round(255 * se[2]) + ")"), this._hasMaskedPath) {
30826
+ if (t.strokeWidthAnim && (oe = ue < 0 ? 0 : ue), t.strokeColorAnim && (J = "rgb(" + Math.round(255 * le[0]) + "," + Math.round(255 * le[1]) + "," + Math.round(255 * le[2]) + ")"), t.fillColorAnim && t.fc && (ie = "rgb(" + Math.round(255 * se[0]) + "," + Math.round(255 * se[1]) + "," + Math.round(255 * se[2]) + ")"), this._hasMaskedPath) {
30820
30827
  if (D.translate(0, -t.ls), D.translate(0, R[1] * z * 0.01 + i, 0), this._pathData.p.v) {
30821
30828
  I = (f.point[1] - _.point[1]) / (f.point[0] - _.point[0]);
30822
30829
  var Ce = 180 * Math.atan(I) / Math.PI;
30823
30830
  f.point[0] < _.point[0] && (Ce += 180), D.rotate(-Ce * Math.PI / 180);
30824
30831
  }
30825
- D.translate(ne, ie, 0), d -= R[0] * B[o].an * 5e-3, B[o + 1] && de !== B[o + 1].ind && (d += B[o].an / 2, d += 1e-3 * t.tr * t.finalSize);
30832
+ D.translate(te, ne, 0), d -= R[0] * B[o].an * 5e-3, B[o + 1] && fe !== B[o + 1].ind && (d += B[o].an / 2, d += 1e-3 * t.tr * t.finalSize);
30826
30833
  } else {
30827
30834
  switch (D.translate(n, i, 0), t.ps && D.translate(t.ps[0], t.ps[1] + t.ascent, 0), t.j) {
30828
30835
  case 1:
@@ -30831,11 +30838,11 @@ var lottie = createCommonjsModule(function(module, exports) {
30831
30838
  case 2:
30832
30839
  D.translate(B[o].animatorJustifyOffset + t.justifyOffset + (t.boxWidth - t.lineWidths[B[o].line]) / 2, 0, 0);
30833
30840
  }
30834
- D.translate(0, -t.ls), D.translate(J, 0, 0), D.translate(R[0] * B[o].an * 5e-3, R[1] * z * 0.01, 0), n += B[o].l + 1e-3 * t.tr * t.finalSize;
30841
+ D.translate(0, -t.ls), D.translate(Z, 0, 0), D.translate(R[0] * B[o].an * 5e-3, R[1] * z * 0.01, 0), n += B[o].l + 1e-3 * t.tr * t.finalSize;
30835
30842
  }
30836
- 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]], Q = oe;
30843
+ 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 = ae;
30837
30844
  }
30838
- L <= o ? (K = new LetterProps(Q, ee, Z, ce, ye, pe), this.renderedLetters.push(K), L += 1, this.lettersChangedFlag = !0) : (K = this.renderedLetters[o], this.lettersChangedFlag = K.update(Q, ee, Z, ce, ye, pe) || this.lettersChangedFlag);
30845
+ L <= o ? (Q = new LetterProps(K, oe, J, ie, ye, pe), this.renderedLetters.push(Q), L += 1, this.lettersChangedFlag = !0) : (Q = this.renderedLetters[o], this.lettersChangedFlag = Q.update(K, oe, J, ie, ye, pe) || this.lettersChangedFlag);
30839
30846
  }
30840
30847
  }
30841
30848
  }, TextAnimatorProperty.prototype.getValue = function() {
@@ -40131,10 +40138,10 @@ function fetchBaseQuery({
40131
40138
  type: I,
40132
40139
  extraOptions: E
40133
40140
  }) || N;
40134
- const G = (oe) => typeof oe == "object" && (isPlainObject$1(oe) || Array.isArray(oe) || typeof oe.toJSON == "function");
40141
+ const G = (ae) => typeof ae == "object" && (isPlainObject$1(ae) || Array.isArray(ae) || typeof ae.toJSON == "function");
40135
40142
  if (!H.headers.has("content-type") && G(H.body) && H.headers.set("content-type", l), G(H.body) && o(H.headers) && (H.body = JSON.stringify(H.body, u)), O) {
40136
- const oe = ~R.indexOf("?") ? "&" : "?", le = i ? i(O) : new URLSearchParams(stripUndefined(O));
40137
- R += oe + le;
40143
+ const ae = ~R.indexOf("?") ? "&" : "?", le = i ? i(O) : new URLSearchParams(stripUndefined(O));
40144
+ R += ae + le;
40138
40145
  }
40139
40146
  R = joinUrls(t, R);
40140
40147
  const U = new Request(R, H);
@@ -40146,47 +40153,47 @@ function fetchBaseQuery({
40146
40153
  }, L);
40147
40154
  try {
40148
40155
  F = await n(U);
40149
- } catch (oe) {
40156
+ } catch (ae) {
40150
40157
  return {
40151
40158
  error: {
40152
40159
  status: z ? "TIMEOUT_ERROR" : "FETCH_ERROR",
40153
- error: String(oe)
40160
+ error: String(ae)
40154
40161
  },
40155
40162
  meta: M
40156
40163
  };
40157
40164
  } finally {
40158
40165
  W && clearTimeout(W), j == null || j.signal.removeEventListener("abort", j.abort);
40159
40166
  }
40160
- const J = F.clone();
40161
- M.response = J;
40162
- let ne, ie = "";
40167
+ const Z = F.clone();
40168
+ M.response = Z;
40169
+ let te, ne = "";
40163
40170
  try {
40164
- let oe;
40171
+ let ae;
40165
40172
  if (await Promise.all([
40166
- g(F, D).then((le) => ne = le, (le) => oe = le),
40173
+ g(F, D).then((le) => te = le, (le) => ae = le),
40167
40174
  // see https://github.com/node-fetch/node-fetch/issues/665#issuecomment-538995182
40168
40175
  // we *have* to "use up" both streams at the same time or they will stop running in node-fetch scenarios
40169
- J.text().then((le) => ie = le, () => {
40176
+ Z.text().then((le) => ne = le, () => {
40170
40177
  })
40171
- ]), oe) throw oe;
40172
- } catch (oe) {
40178
+ ]), ae) throw ae;
40179
+ } catch (ae) {
40173
40180
  return {
40174
40181
  error: {
40175
40182
  status: "PARSING_ERROR",
40176
40183
  originalStatus: F.status,
40177
- data: ie,
40178
- error: String(oe)
40184
+ data: ne,
40185
+ error: String(ae)
40179
40186
  },
40180
40187
  meta: M
40181
40188
  };
40182
40189
  }
40183
- return V(F, ne) ? {
40184
- data: ne,
40190
+ return V(F, te) ? {
40191
+ data: te,
40185
40192
  meta: M
40186
40193
  } : {
40187
40194
  error: {
40188
40195
  status: F.status,
40189
- data: ne
40196
+ data: te
40190
40197
  },
40191
40198
  meta: M
40192
40199
  };
@@ -40299,7 +40306,7 @@ You must add the middleware for RTK-Query to function correctly!`);
40299
40306
  endpointName: M
40300
40307
  });
40301
40308
  let U;
40302
- const K = {
40309
+ const Q = {
40303
40310
  ...j,
40304
40311
  type: "query",
40305
40312
  subscribe: D,
@@ -40311,48 +40318,48 @@ You must add the middleware for RTK-Query to function correctly!`);
40311
40318
  [forceQueryFnSymbol]: B
40312
40319
  };
40313
40320
  if (isQueryDefinition$1(R))
40314
- U = e(K);
40321
+ U = e(Q);
40315
40322
  else {
40316
40323
  const {
40317
- direction: te,
40318
- initialPageParam: ee
40324
+ direction: ce,
40325
+ initialPageParam: oe
40319
40326
  } = j;
40320
40327
  U = n({
40321
- ...K,
40328
+ ...Q,
40322
40329
  // Supply these even if undefined. This helps with a field existence
40323
40330
  // check over in `buildSlice.ts`
40324
- direction: te,
40325
- initialPageParam: ee
40331
+ direction: ce,
40332
+ initialPageParam: oe
40326
40333
  });
40327
40334
  }
40328
40335
  const F = o.endpoints[M].select(O), z = q(U), W = F(H());
40329
40336
  C(q);
40330
40337
  const {
40331
- requestId: J,
40332
- abort: ne
40333
- } = z, ie = W.requestId !== J, oe = (se = u.get(q)) == null ? void 0 : se[G], le = () => F(H()), ue = Object.assign(B ? (
40338
+ requestId: Z,
40339
+ abort: te
40340
+ } = z, ne = W.requestId !== Z, ae = (se = u.get(q)) == null ? void 0 : se[G], le = () => F(H()), ue = Object.assign(B ? (
40334
40341
  // a query has been forced (upsertQueryData)
40335
40342
  // -> we want to resolve it once data has been written with the data that will be written
40336
40343
  z.then(le)
40337
- ) : ie && !oe ? (
40344
+ ) : ne && !ae ? (
40338
40345
  // a query has been skipped due to a condition and we do not have any currently running query
40339
40346
  // -> we want to resolve it immediately with the current data
40340
40347
  Promise.resolve(W)
40341
40348
  ) : (
40342
40349
  // query just started or one is already in flight
40343
40350
  // -> wait for the running query, then resolve with data from after that
40344
- Promise.all([oe, z]).then(le)
40351
+ Promise.all([ae, z]).then(le)
40345
40352
  ), {
40346
40353
  arg: O,
40347
- requestId: J,
40354
+ requestId: Z,
40348
40355
  subscriptionOptions: L,
40349
40356
  queryCacheKey: G,
40350
- abort: ne,
40357
+ abort: te,
40351
40358
  async unwrap() {
40352
- const te = await ue;
40353
- if (te.isError)
40354
- throw te.error;
40355
- return te.data;
40359
+ const ce = await ue;
40360
+ if (ce.isError)
40361
+ throw ce.error;
40362
+ return ce.data;
40356
40363
  },
40357
40364
  refetch: () => q(N(O, {
40358
40365
  subscribe: !1,
@@ -40361,22 +40368,22 @@ You must add the middleware for RTK-Query to function correctly!`);
40361
40368
  unsubscribe() {
40362
40369
  D && q(f({
40363
40370
  queryCacheKey: G,
40364
- requestId: J
40371
+ requestId: Z
40365
40372
  }));
40366
40373
  },
40367
- updateSubscriptionOptions(te) {
40368
- ue.subscriptionOptions = te, q(m({
40374
+ updateSubscriptionOptions(ce) {
40375
+ ue.subscriptionOptions = ce, q(m({
40369
40376
  endpointName: M,
40370
- requestId: J,
40377
+ requestId: Z,
40371
40378
  queryCacheKey: G,
40372
- options: te
40379
+ options: ce
40373
40380
  }));
40374
40381
  }
40375
40382
  });
40376
- if (!oe && !ie && !B) {
40377
- const te = getOrInsert(u, q, {});
40378
- te[G] = ue, ue.then(() => {
40379
- delete te[G], countObjectKeys$1(te) || u.delete(q);
40383
+ if (!ae && !ne && !B) {
40384
+ const ce = getOrInsert(u, q, {});
40385
+ ce[G] = ue, ue.then(() => {
40386
+ delete ce[G], countObjectKeys$1(ce) || u.delete(q);
40380
40387
  });
40381
40388
  }
40382
40389
  return ue;
@@ -40415,18 +40422,18 @@ You must add the middleware for RTK-Query to function correctly!`);
40415
40422
  requestId: j,
40416
40423
  fixedCacheKey: O
40417
40424
  }));
40418
- }, K = Object.assign(G, {
40425
+ }, Q = Object.assign(G, {
40419
40426
  arg: B.arg,
40420
40427
  requestId: j,
40421
40428
  abort: q,
40422
40429
  unwrap: H,
40423
40430
  reset: U
40424
40431
  }), F = d.get(D) || {};
40425
- return d.set(D, F), F[j] = K, K.then(() => {
40432
+ return d.set(D, F), F[j] = Q, Q.then(() => {
40426
40433
  delete F[j], countObjectKeys$1(F) || d.delete(D);
40427
- }), O && (F[O] = K, K.then(() => {
40428
- F[O] === K && (delete F[O], countObjectKeys$1(F) || d.delete(D));
40429
- })), K;
40434
+ }), O && (F[O] = Q, Q.then(() => {
40435
+ F[O] === Q && (delete F[O], countObjectKeys$1(F) || d.delete(D));
40436
+ })), Q;
40430
40437
  };
40431
40438
  }
40432
40439
  }
@@ -40462,10 +40469,10 @@ function buildThunks({
40462
40469
  const U = o.endpoints[D].select(V)(
40463
40470
  // Work around TS 4.1 mismatch
40464
40471
  q()
40465
- ), K = calculateProvidedBy(H.providesTags, U.data, void 0, V, {}, l);
40472
+ ), Q = calculateProvidedBy(H.providesTags, U.data, void 0, V, {}, l);
40466
40473
  j(o.internalActions.updateProvidedBy({
40467
40474
  queryCacheKey: G,
40468
- providedTags: K
40475
+ providedTags: Q
40469
40476
  }));
40470
40477
  };
40471
40478
  function f(D, V, L = 0) {
@@ -40487,16 +40494,16 @@ function buildThunks({
40487
40494
  };
40488
40495
  if (G.status === "uninitialized")
40489
40496
  return U;
40490
- let K;
40497
+ let Q;
40491
40498
  if ("data" in G)
40492
40499
  if (isDraftable(G.data)) {
40493
40500
  const [F, z, W] = produceWithPatches(G.data, L);
40494
- U.patches.push(...z), U.inversePatches.push(...W), K = F;
40501
+ U.patches.push(...z), U.inversePatches.push(...W), Q = F;
40495
40502
  } else
40496
- K = L(G.data), U.patches.push({
40503
+ Q = L(G.data), U.patches.push({
40497
40504
  op: "replace",
40498
40505
  path: [],
40499
- value: K
40506
+ value: Q
40500
40507
  }), U.inversePatches.push({
40501
40508
  op: "replace",
40502
40509
  path: [],
@@ -40518,7 +40525,7 @@ function buildThunks({
40518
40525
  getState: H,
40519
40526
  extra: G
40520
40527
  }) => {
40521
- var K;
40528
+ var Q;
40522
40529
  const U = n[D.endpointName];
40523
40530
  try {
40524
40531
  let F = b(U, "transformResponse");
@@ -40533,52 +40540,52 @@ function buildThunks({
40533
40540
  forced: D.type === "query" ? E(D, H()) : void 0,
40534
40541
  queryCacheKey: D.type === "query" ? D.queryCacheKey : void 0
40535
40542
  }, W = D.type === "query" ? D[forceQueryFnSymbol] : void 0;
40536
- let J;
40537
- const ne = async (oe, le, ue, se) => {
40538
- if (le == null && oe.pages.length)
40543
+ let Z;
40544
+ const te = async (ae, le, ue, se) => {
40545
+ if (le == null && ae.pages.length)
40539
40546
  return Promise.resolve({
40540
- data: oe
40547
+ data: ae
40541
40548
  });
40542
- const te = {
40549
+ const ce = {
40543
40550
  queryArg: D.originalArgs,
40544
40551
  pageParam: le
40545
- }, ee = await ie(te), Z = se ? f : p;
40552
+ }, oe = await ne(ce), J = se ? f : p;
40546
40553
  return {
40547
40554
  data: {
40548
- pages: Z(oe.pages, ee.data, ue),
40549
- pageParams: Z(oe.pageParams, le, ue)
40555
+ pages: J(ae.pages, oe.data, ue),
40556
+ pageParams: J(ae.pageParams, le, ue)
40550
40557
  }
40551
40558
  };
40552
40559
  };
40553
- async function ie(oe) {
40560
+ async function ne(ae) {
40554
40561
  let le;
40555
40562
  const {
40556
40563
  extraOptions: ue
40557
40564
  } = U;
40558
- if (W ? le = W() : U.query ? le = await e(U.query(oe), z, ue) : le = await U.queryFn(oe, z, ue, (te) => e(te, z, ue)), typeof process < "u" && process.env.NODE_ENV === "development") {
40559
- const te = U.query ? "`baseQuery`" : "`queryFn`";
40560
- let ee;
40565
+ if (W ? le = W() : U.query ? le = await e(U.query(ae), z, ue) : le = await U.queryFn(ae, z, ue, (ce) => e(ce, z, ue)), typeof process < "u" && process.env.NODE_ENV === "development") {
40566
+ const ce = U.query ? "`baseQuery`" : "`queryFn`";
40567
+ let oe;
40561
40568
  if (!le)
40562
- ee = `${te} did not return anything.`;
40569
+ oe = `${ce} did not return anything.`;
40563
40570
  else if (typeof le != "object")
40564
- ee = `${te} did not return an object.`;
40571
+ oe = `${ce} did not return an object.`;
40565
40572
  else if (le.error && le.data)
40566
- ee = `${te} returned an object containing both \`error\` and \`result\`.`;
40573
+ oe = `${ce} returned an object containing both \`error\` and \`result\`.`;
40567
40574
  else if (le.error === void 0 && le.data === void 0)
40568
- ee = `${te} returned an object containing neither a valid \`error\` and \`result\`. At least one of them should not be \`undefined\``;
40575
+ oe = `${ce} returned an object containing neither a valid \`error\` and \`result\`. At least one of them should not be \`undefined\``;
40569
40576
  else
40570
- for (const Z of Object.keys(le))
40571
- if (Z !== "error" && Z !== "data" && Z !== "meta") {
40572
- ee = `The object returned by ${te} has the unknown property ${Z}.`;
40577
+ for (const J of Object.keys(le))
40578
+ if (J !== "error" && J !== "data" && J !== "meta") {
40579
+ oe = `The object returned by ${ce} has the unknown property ${J}.`;
40573
40580
  break;
40574
40581
  }
40575
- ee && console.error(`Error encountered handling the endpoint ${D.endpointName}.
40576
- ${ee}
40582
+ oe && console.error(`Error encountered handling the endpoint ${D.endpointName}.
40583
+ ${oe}
40577
40584
  It needs to return an object with either the shape \`{ data: <value> }\` or \`{ error: <value> }\` that may contain an optional \`meta\` property.
40578
40585
  Object returned was:`, le);
40579
40586
  }
40580
40587
  if (le.error) throw new HandledError(le.error, le.meta);
40581
- const se = await F(le.data, le.meta, oe);
40588
+ const se = await F(le.data, le.meta, ae);
40582
40589
  return {
40583
40590
  ...le,
40584
40591
  data: se
@@ -40586,36 +40593,36 @@ function buildThunks({
40586
40593
  }
40587
40594
  if (D.type === "query" && "infiniteQueryOptions" in U) {
40588
40595
  const {
40589
- infiniteQueryOptions: oe
40596
+ infiniteQueryOptions: ae
40590
40597
  } = U, {
40591
40598
  maxPages: le = 1 / 0
40592
- } = oe;
40599
+ } = ae;
40593
40600
  let ue;
40594
40601
  const se = {
40595
40602
  pages: [],
40596
40603
  pageParams: []
40597
- }, te = (K = u.selectQueryEntry(H(), D.queryCacheKey)) == null ? void 0 : K.data, Z = /* arg.forceRefetch */ E(D, H()) && !D.direction || !te ? se : te;
40598
- if ("direction" in D && D.direction && Z.pages.length) {
40599
- const ce = D.direction === "backward", de = (ce ? getPreviousPageParam : getNextPageParam)(oe, Z);
40600
- ue = await ne(Z, de, le, ce);
40604
+ }, ce = (Q = u.selectQueryEntry(H(), D.queryCacheKey)) == null ? void 0 : Q.data, J = /* arg.forceRefetch */ E(D, H()) && !D.direction || !ce ? se : ce;
40605
+ if ("direction" in D && D.direction && J.pages.length) {
40606
+ const ie = D.direction === "backward", fe = (ie ? getPreviousPageParam : getNextPageParam)(ae, J);
40607
+ ue = await te(J, fe, le, ie);
40601
40608
  } else {
40602
40609
  const {
40603
- initialPageParam: ce = oe.initialPageParam
40604
- } = D, Q = (te == null ? void 0 : te.pageParams) ?? [], de = Q[0] ?? ce, ae = Q.length;
40605
- ue = await ne(Z, de, le), W && (ue = {
40610
+ initialPageParam: ie = ae.initialPageParam
40611
+ } = D, K = (ce == null ? void 0 : ce.pageParams) ?? [], fe = K[0] ?? ie, ee = K.length;
40612
+ ue = await te(J, fe, le), W && (ue = {
40606
40613
  data: ue.data.pages[0]
40607
40614
  });
40608
- for (let fe = 1; fe < ae; fe++) {
40609
- const he = getNextPageParam(oe, ue.data);
40610
- ue = await ne(ue.data, he, le);
40615
+ for (let de = 1; de < ee; de++) {
40616
+ const he = getNextPageParam(ae, ue.data);
40617
+ ue = await te(ue.data, he, le);
40611
40618
  }
40612
40619
  }
40613
- J = ue;
40620
+ Z = ue;
40614
40621
  } else
40615
- J = await ie(D.originalArgs);
40616
- return j(J.data, addShouldAutoBatch({
40622
+ Z = await ne(D.originalArgs);
40623
+ return j(Z.data, addShouldAutoBatch({
40617
40624
  fulfilledTimeStamp: Date.now(),
40618
- baseQueryMeta: J.meta
40625
+ baseQueryMeta: Z.meta
40619
40626
  }));
40620
40627
  } catch (F) {
40621
40628
  let z = F;
@@ -40625,8 +40632,8 @@ function buildThunks({
40625
40632
  return B(await W(z.value, z.meta, D.originalArgs), addShouldAutoBatch({
40626
40633
  baseQueryMeta: z.meta
40627
40634
  }));
40628
- } catch (J) {
40629
- z = J;
40635
+ } catch (Z) {
40636
+ z = Z;
40630
40637
  }
40631
40638
  }
40632
40639
  throw typeof process < "u" && process.env.NODE_ENV !== "production" ? console.error(`An unhandled error occurred processing a request for the endpoint "${D.endpointName}".
@@ -40653,13 +40660,13 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
40653
40660
  getState: L
40654
40661
  }) {
40655
40662
  var F;
40656
- const B = L(), j = u.selectQueryEntry(B, V.queryCacheKey), q = j == null ? void 0 : j.fulfilledTimeStamp, H = V.originalArgs, G = j == null ? void 0 : j.originalArgs, U = n[V.endpointName], K = V.direction;
40663
+ const B = L(), j = u.selectQueryEntry(B, V.queryCacheKey), q = j == null ? void 0 : j.fulfilledTimeStamp, H = V.originalArgs, G = j == null ? void 0 : j.originalArgs, U = n[V.endpointName], Q = V.direction;
40657
40664
  return isUpsertQuery(V) ? !0 : (j == null ? void 0 : j.status) === "pending" ? !1 : E(V, B) || isQueryDefinition$1(U) && ((F = U == null ? void 0 : U.forceRefetch) != null && F.call(U, {
40658
40665
  currentArg: H,
40659
40666
  previousArg: G,
40660
40667
  endpointState: j,
40661
40668
  state: B
40662
- })) ? !0 : !(q && !K);
40669
+ })) ? !0 : !(q && !Q);
40663
40670
  },
40664
40671
  dispatchConditionRejection: !0
40665
40672
  }), S = C(), T = C(), A = createAsyncThunk(`${t}/executeMutation`, _, {
@@ -40669,9 +40676,9 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
40669
40676
  });
40670
40677
  }
40671
40678
  }), I = (D) => "force" in D, M = (D) => "ifOlderThan" in D, R = (D, V, L) => (B, j) => {
40672
- const q = I(L) && L.force, H = M(L) && L.ifOlderThan, G = (K = !0) => {
40679
+ const q = I(L) && L.force, H = M(L) && L.ifOlderThan, G = (Q = !0) => {
40673
40680
  const F = {
40674
- forceRefetch: K,
40681
+ forceRefetch: Q,
40675
40682
  isPrefetch: !0
40676
40683
  };
40677
40684
  return o.endpoints[D].initiate(V, F);
@@ -40679,12 +40686,12 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
40679
40686
  if (q)
40680
40687
  B(G());
40681
40688
  else if (H) {
40682
- const K = U == null ? void 0 : U.fulfilledTimeStamp;
40683
- if (!K) {
40689
+ const Q = U == null ? void 0 : U.fulfilledTimeStamp;
40690
+ if (!Q) {
40684
40691
  B(G());
40685
40692
  return;
40686
40693
  }
40687
- (Number(/* @__PURE__ */ new Date()) - Number(new Date(K))) / 1e3 >= H && B(G());
40694
+ (Number(/* @__PURE__ */ new Date()) - Number(new Date(Q))) / 1e3 >= H && B(G());
40688
40695
  } else
40689
40696
  B(G(!1));
40690
40697
  };
@@ -40787,13 +40794,13 @@ function buildSlice({
40787
40794
  baseQueryMeta: G,
40788
40795
  requestId: U
40789
40796
  } = D;
40790
- let K = produce(B.data, (F) => j(F, V, {
40797
+ let Q = produce(B.data, (F) => j(F, V, {
40791
40798
  arg: H.originalArgs,
40792
40799
  baseQueryMeta: G,
40793
40800
  fulfilledTimeStamp: q,
40794
40801
  requestId: U
40795
40802
  }));
40796
- B.data = K;
40803
+ B.data = Q;
40797
40804
  } else
40798
40805
  B.data = V;
40799
40806
  else
@@ -41020,9 +41027,9 @@ function buildSlice({
41020
41027
  } = u(V);
41021
41028
  for (const [q, H] of Object.entries(L))
41022
41029
  for (const [G, U] of Object.entries(H)) {
41023
- const K = (B = D[q] ?? (D[q] = {}))[j = G || "__internal_without_id"] ?? (B[j] = []);
41030
+ const Q = (B = D[q] ?? (D[q] = {}))[j = G || "__internal_without_id"] ?? (B[j] = []);
41024
41031
  for (const F of U)
41025
- K.includes(F) || K.push(F);
41032
+ Q.includes(F) || Q.push(F);
41026
41033
  }
41027
41034
  }).addMatcher(isAnyOf(isFulfilled(e), isRejectedWithValue(e)), (D, V) => {
41028
41035
  S(D, V);
@@ -41613,7 +41620,7 @@ var THIRTY_TWO_BIT_MAX_TIMER_SECONDS = 2147483647 / 1e3 - 1, buildCacheCollectio
41613
41620
  })]);
41614
41621
  L.catch(() => {
41615
41622
  }), g[I] = D;
41616
- const B = t.endpoints[T].select(N.type === "query" ? A : I), j = M.dispatch((G, U, K) => K), q = {
41623
+ const B = t.endpoints[T].select(N.type === "query" ? A : I), j = M.dispatch((G, U, Q) => Q), q = {
41617
41624
  ...M,
41618
41625
  getCacheEntry: () => B(M.getState()),
41619
41626
  requestId: R,
@@ -41902,7 +41909,7 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
41902
41909
  invalidationBehavior: m
41903
41910
  }, g) {
41904
41911
  enablePatches();
41905
- const b = (ne) => (typeof process < "u" && process.env.NODE_ENV === "development" && (i.includes(ne.type) || console.error(`Tag type '${ne.type}' was used, but not specified in \`tagTypes\`!`)), ne);
41912
+ const b = (te) => (typeof process < "u" && process.env.NODE_ENV === "development" && (i.includes(te.type) || console.error(`Tag type '${te.type}' was used, but not specified in \`tagTypes\`!`)), te);
41906
41913
  Object.assign(e, {
41907
41914
  reducerPath: o,
41908
41915
  endpoints: {},
@@ -41993,11 +42000,11 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
41993
42000
  const {
41994
42001
  buildInitiateQuery: G,
41995
42002
  buildInitiateInfiniteQuery: U,
41996
- buildInitiateMutation: K,
42003
+ buildInitiateMutation: Q,
41997
42004
  getRunningMutationThunk: F,
41998
42005
  getRunningMutationsThunk: z,
41999
42006
  getRunningQueriesThunk: W,
42000
- getRunningQueryThunk: J
42007
+ getRunningQueryThunk: Z
42001
42008
  } = buildInitiate({
42002
42009
  queryThunk: I,
42003
42010
  mutationThunk: R,
@@ -42009,26 +42016,26 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
42009
42016
  return safeAssign$1(e.util, {
42010
42017
  getRunningMutationThunk: F,
42011
42018
  getRunningMutationsThunk: z,
42012
- getRunningQueryThunk: J,
42019
+ getRunningQueryThunk: Z,
42013
42020
  getRunningQueriesThunk: W
42014
42021
  }), {
42015
42022
  name: coreModuleName,
42016
- injectEndpoint(ne, ie) {
42023
+ injectEndpoint(te, ne) {
42017
42024
  var ue;
42018
- const le = (ue = e.endpoints)[ne] ?? (ue[ne] = {});
42019
- isQueryDefinition$1(ie) && safeAssign$1(le, {
42020
- name: ne,
42021
- select: S(ne, ie),
42022
- initiate: G(ne, ie)
42023
- }, L(I, ne)), isMutationDefinition$1(ie) && safeAssign$1(le, {
42024
- name: ne,
42025
+ const le = (ue = e.endpoints)[te] ?? (ue[te] = {});
42026
+ isQueryDefinition$1(ne) && safeAssign$1(le, {
42027
+ name: te,
42028
+ select: S(te, ne),
42029
+ initiate: G(te, ne)
42030
+ }, L(I, te)), isMutationDefinition$1(ne) && safeAssign$1(le, {
42031
+ name: te,
42025
42032
  select: A(),
42026
- initiate: K(ne)
42027
- }, L(R, ne)), isInfiniteQueryDefinition$1(ie) && safeAssign$1(le, {
42028
- name: ne,
42029
- select: T(ne, ie),
42030
- initiate: U(ne, ie)
42031
- }, L(I, ne));
42033
+ initiate: Q(te)
42034
+ }, L(R, te)), isInfiniteQueryDefinition$1(ne) && safeAssign$1(le, {
42035
+ name: te,
42036
+ select: T(te, ne),
42037
+ initiate: U(te, ne)
42038
+ }, L(I, te));
42032
42039
  }
42033
42040
  };
42034
42041
  }
@@ -42470,42 +42477,42 @@ function buildHooks({
42470
42477
  defaultSerializeQueryArgs,
42471
42478
  f.endpointDefinitions[M],
42472
42479
  M
42473
- ), K = useShallowStableValue({
42480
+ ), Q = useShallowStableValue({
42474
42481
  refetchOnReconnect: N,
42475
42482
  refetchOnFocus: O,
42476
42483
  pollingInterval: L,
42477
42484
  skipPollingIfUnfocused: B
42478
- }), F = useRef(!1), z = j.initialPageParam, W = useShallowStableValue(z), J = useRef(void 0);
42485
+ }), F = useRef(!1), z = j.initialPageParam, W = useShallowStableValue(z), Z = useRef(void 0);
42479
42486
  let {
42480
- queryCacheKey: ne,
42481
- requestId: ie
42482
- } = J.current || {}, oe = !1;
42483
- ne && ie && (oe = G.current.isRequestSubscribed(ne, ie));
42484
- const le = !oe && F.current;
42487
+ queryCacheKey: te,
42488
+ requestId: ne
42489
+ } = Z.current || {}, ae = !1;
42490
+ te && ne && (ae = G.current.isRequestSubscribed(te, ne));
42491
+ const le = !ae && F.current;
42485
42492
  return p(() => {
42486
- F.current = oe;
42493
+ F.current = ae;
42487
42494
  }), p(() => {
42488
- le && (J.current = void 0);
42495
+ le && (Z.current = void 0);
42489
42496
  }, [le]), p(() => {
42490
- var te;
42491
- const ue = J.current;
42497
+ var ce;
42498
+ const ue = Z.current;
42492
42499
  if (typeof process < "u" && process.env.NODE_ENV === "removeMeOnCompilation" && console.log(le), U === skipToken) {
42493
- ue == null || ue.unsubscribe(), J.current = void 0;
42500
+ ue == null || ue.unsubscribe(), Z.current = void 0;
42494
42501
  return;
42495
42502
  }
42496
- const se = (te = J.current) == null ? void 0 : te.subscriptionOptions;
42503
+ const se = (ce = Z.current) == null ? void 0 : ce.subscriptionOptions;
42497
42504
  if (!ue || ue.arg !== U) {
42498
42505
  ue == null || ue.unsubscribe();
42499
- const ee = H(q(U, {
42500
- subscriptionOptions: K,
42506
+ const oe = H(q(U, {
42507
+ subscriptionOptions: Q,
42501
42508
  forceRefetch: D,
42502
42509
  ...isInfiniteQueryDefinition(f.endpointDefinitions[M]) ? {
42503
42510
  initialPageParam: W
42504
42511
  } : {}
42505
42512
  }));
42506
- J.current = ee;
42507
- } else K !== se && ue.updateSubscriptionOptions(K);
42508
- }, [H, q, D, U, K, le, W, M]), [J, H, q, K];
42513
+ Z.current = oe;
42514
+ } else Q !== se && ue.updateSubscriptionOptions(Q);
42515
+ }, [H, q, D, U, Q, le, W, M]), [Z, H, q, Q];
42509
42516
  }
42510
42517
  function E(M, R) {
42511
42518
  return (O, {
@@ -42533,10 +42540,10 @@ function buildHooks({
42533
42540
  devModeChecks: {
42534
42541
  identityFunctionCheck: "never"
42535
42542
  }
42536
- }) : q, [q, V]), G = i((F) => H(F, j.current), shallowEqual), U = o(), K = q(U.getState(), j.current);
42543
+ }) : q, [q, V]), G = i((F) => H(F, j.current), shallowEqual), U = o(), Q = q(U.getState(), j.current);
42537
42544
  return useIsomorphicLayoutEffect(() => {
42538
- j.current = K;
42539
- }, [K]), G;
42545
+ j.current = Q;
42546
+ }, [Q]), G;
42540
42547
  };
42541
42548
  }
42542
42549
  function C(M) {
@@ -42566,39 +42573,39 @@ function buildHooks({
42566
42573
  } = {}) => {
42567
42574
  const {
42568
42575
  initiate: j
42569
- } = t.endpoints[M], q = n(), [H, G] = useState(UNINITIALIZED_VALUE), U = useRef(void 0), K = useShallowStableValue({
42576
+ } = t.endpoints[M], q = n(), [H, G] = useState(UNINITIALIZED_VALUE), U = useRef(void 0), Q = useShallowStableValue({
42570
42577
  refetchOnReconnect: D,
42571
42578
  refetchOnFocus: V,
42572
42579
  pollingInterval: L,
42573
42580
  skipPollingIfUnfocused: B
42574
42581
  });
42575
42582
  p(() => {
42576
- var ne, ie;
42577
- const J = (ne = U.current) == null ? void 0 : ne.subscriptionOptions;
42578
- K !== J && ((ie = U.current) == null || ie.updateSubscriptionOptions(K));
42579
- }, [K]);
42580
- const F = useRef(K);
42583
+ var te, ne;
42584
+ const Z = (te = U.current) == null ? void 0 : te.subscriptionOptions;
42585
+ Q !== Z && ((ne = U.current) == null || ne.updateSubscriptionOptions(Q));
42586
+ }, [Q]);
42587
+ const F = useRef(Q);
42581
42588
  p(() => {
42582
- F.current = K;
42583
- }, [K]);
42584
- const z = useCallback(function(J, ne = !1) {
42585
- let ie;
42589
+ F.current = Q;
42590
+ }, [Q]);
42591
+ const z = useCallback(function(Z, te = !1) {
42592
+ let ne;
42586
42593
  return e(() => {
42587
- var oe;
42588
- (oe = U.current) == null || oe.unsubscribe(), U.current = ie = q(j(J, {
42594
+ var ae;
42595
+ (ae = U.current) == null || ae.unsubscribe(), U.current = ne = q(j(Z, {
42589
42596
  subscriptionOptions: F.current,
42590
- forceRefetch: !ne
42591
- })), G(J);
42592
- }), ie;
42597
+ forceRefetch: !te
42598
+ })), G(Z);
42599
+ }), ne;
42593
42600
  }, [q, j]), W = useCallback(() => {
42594
- var J, ne;
42595
- (J = U.current) != null && J.queryCacheKey && q(t.internalActions.removeQueryResult({
42596
- queryCacheKey: (ne = U.current) == null ? void 0 : ne.queryCacheKey
42601
+ var Z, te;
42602
+ (Z = U.current) != null && Z.queryCacheKey && q(t.internalActions.removeQueryResult({
42603
+ queryCacheKey: (te = U.current) == null ? void 0 : te.queryCacheKey
42597
42604
  }));
42598
42605
  }, [q]);
42599
42606
  return useEffect(() => () => {
42600
- var J;
42601
- (J = U == null ? void 0 : U.current) == null || J.unsubscribe();
42607
+ var Z;
42608
+ (Z = U == null ? void 0 : U.current) == null || Z.unsubscribe();
42602
42609
  }, []), useEffect(() => {
42603
42610
  H !== UNINITIALIZED_VALUE && !U.current && z(H, !0);
42604
42611
  }, [H, z]), useMemo(() => [z, H, {
@@ -42642,14 +42649,14 @@ function buildHooks({
42642
42649
  q.current = j;
42643
42650
  }, [j]);
42644
42651
  const H = useCallback(function(G, U) {
42645
- let K;
42652
+ let Q;
42646
42653
  return e(() => {
42647
42654
  var F;
42648
- (F = V.current) == null || F.unsubscribe(), V.current = K = L(B(G, {
42655
+ (F = V.current) == null || F.unsubscribe(), V.current = Q = L(B(G, {
42649
42656
  subscriptionOptions: q.current,
42650
42657
  direction: U
42651
42658
  }));
42652
- }), K;
42659
+ }), Q;
42653
42660
  }, [V, L, B]);
42654
42661
  return C(V), useMemo(() => ({
42655
42662
  trigger: H,
@@ -42694,17 +42701,17 @@ function buildHooks({
42694
42701
  useEffect(() => () => {
42695
42702
  L != null && L.arg.fixedCacheKey || L == null || L.reset();
42696
42703
  }, [L]);
42697
- const j = useCallback(function(J) {
42698
- const ne = V(D(J, {
42704
+ const j = useCallback(function(Z) {
42705
+ const te = V(D(Z, {
42699
42706
  fixedCacheKey: N
42700
42707
  }));
42701
- return B(ne), ne;
42708
+ return B(te), te;
42702
42709
  }, [V, D, N]), {
42703
42710
  requestId: q
42704
42711
  } = L || {}, H = useMemo(() => O({
42705
42712
  fixedCacheKey: N,
42706
42713
  requestId: L == null ? void 0 : L.requestId
42707
- }), [N, L, O]), G = useMemo(() => R ? u([H], R) : H, [R, H]), U = i(G, shallowEqual), K = N == null ? L == null ? void 0 : L.arg.originalArgs : void 0, F = useCallback(() => {
42714
+ }), [N, L, O]), G = useMemo(() => R ? u([H], R) : H, [R, H]), U = i(G, shallowEqual), Q = N == null ? L == null ? void 0 : L.arg.originalArgs : void 0, F = useCallback(() => {
42708
42715
  e(() => {
42709
42716
  L && B(void 0), N && V(t.internalActions.removeMutationResult({
42710
42717
  requestId: q,
@@ -42715,9 +42722,9 @@ function buildHooks({
42715
42722
  useDebugValue(z);
42716
42723
  const W = useMemo(() => ({
42717
42724
  ...U,
42718
- originalArgs: K,
42725
+ originalArgs: Q,
42719
42726
  reset: F
42720
- }), [U, K, F]);
42727
+ }), [U, Q, F]);
42721
42728
  return useMemo(() => [j, W], [j, W]);
42722
42729
  };
42723
42730
  }
@@ -50158,11 +50165,11 @@ function useAIAssistant({ userId: t, apiKey: e }) {
50158
50165
  return;
50159
50166
  }
50160
50167
  try {
50161
- p((K) => [...K, `Calling ${R} with:
50168
+ p((Q) => [...Q, `Calling ${R} with:
50162
50169
  ${JSON.stringify(O, null, 2)}`]);
50163
50170
  const L = await N(O);
50164
50171
  let B, j = null, q = !1;
50165
- if (typeof L == "string" ? B = L : (B = L.summary, j = L.component, q = !0), p((K) => [...K, `${R} returned ${B.length} character(s).`]), console.log(`[Function Response] ${R} returned:`, B), !o) return;
50172
+ if (typeof L == "string" ? B = L : (B = L.summary, j = L.component, q = !0), p((Q) => [...Q, `${R} returned ${B.length} character(s).`]), console.log(`[Function Response] ${R} returned:`, B), !o) return;
50166
50173
  const H = {
50167
50174
  functionResponse: {
50168
50175
  name: R,
@@ -50170,20 +50177,20 @@ function useAIAssistant({ userId: t, apiKey: e }) {
50170
50177
  }
50171
50178
  };
50172
50179
  if (q && j) {
50173
- const K = {
50180
+ const Q = {
50174
50181
  role: "assistant",
50175
50182
  content: j,
50176
50183
  timestamp: /* @__PURE__ */ new Date(),
50177
50184
  isComponent: !0
50178
50185
  };
50179
- d((F) => [...F, K]);
50186
+ d((F) => [...F, Q]);
50180
50187
  }
50181
50188
  const U = {
50182
50189
  role: "assistant",
50183
50190
  content: (await o.sendMessage({ message: [H] })).text,
50184
50191
  timestamp: /* @__PURE__ */ new Date()
50185
50192
  };
50186
- d((K) => [...K, U]);
50193
+ d((Q) => [...Q, U]);
50187
50194
  } catch (L) {
50188
50195
  p((j) => [...j, `${R} failed.`]), console.error("Error executing function:", L);
50189
50196
  const B = {
@@ -52009,7 +52016,7 @@ function PartnerCard({ account: t, action: e, loading: n = !1, withVoice: i = !0
52009
52016
  }
52010
52017
  const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52011
52018
  ({ userId: t, userName: e, apiKey: n, inputRef: i }, o) => {
52012
- var le, ue, se;
52019
+ var se, ce, oe;
52013
52020
  const { data: l } = useGetV4PartnerByApplicationIdBusinessDevelopmentConversationsQuery({ applicationId: t }), [u] = useLazyGetV4PartnerByApplicationIdAccountQuery(), [d] = usePostV4PartnerByApplicationIdAccountFeedbackMutation(), [f] = useLazyGetV4PartnerByApplicationIdBusinessDevelopmentConversationAndConversationIdMessagesQuery(), {
52014
52021
  handleSubmitToBot: p,
52015
52022
  botMessages: m,
@@ -52020,7 +52027,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52020
52027
  } = useAIAssistant({ userId: t, apiKey: n });
52021
52028
  useEffect(() => {
52022
52029
  if (!l) return;
52023
- const te = {
52030
+ const J = {
52024
52031
  partner1: [t, ASSISTANT_ID].sort()[0],
52025
52032
  partner2: [t, ASSISTANT_ID].sort()[1],
52026
52033
  name: "Randmar Assistant",
@@ -52029,136 +52036,136 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52029
52036
  historyFetched: !0,
52030
52037
  messages: [],
52031
52038
  conversationID: -1
52032
- }, ee = l.map((Z) => {
52033
- var ce;
52039
+ }, ie = l.map((K) => {
52040
+ var fe;
52034
52041
  return {
52035
- partner1: [Z.Participant1, Z.Participant2].sort()[0],
52036
- partner2: [Z.Participant1, Z.Participant2].sort()[1],
52037
- name: ((ce = Z.Participant) == null ? void 0 : ce.PublicName) ?? "missing public name",
52042
+ partner1: [K.Participant1, K.Participant2].sort()[0],
52043
+ partner2: [K.Participant1, K.Participant2].sort()[1],
52044
+ name: ((fe = K.Participant) == null ? void 0 : fe.PublicName) ?? "missing public name",
52038
52045
  unread: 0,
52039
- pending: Z.Status != "Approved",
52046
+ pending: K.Status != "Approved",
52040
52047
  historyFetched: !1,
52041
52048
  messages: [],
52042
- conversationID: Z.ConversationId
52049
+ conversationID: K.ConversationId
52043
52050
  };
52044
52051
  });
52045
52052
  setTimeout(() => {
52046
- var Z;
52047
- return (Z = K.current) == null ? void 0 : Z.focus();
52048
- }, 50), D([te, ...ee]);
52053
+ var K;
52054
+ return (K = z.current) == null ? void 0 : K.focus();
52055
+ }, 50), D([J, ...ie]);
52049
52056
  }, [l]);
52050
- const [C, S] = useState("all"), [T, A] = useState([[t, ASSISTANT_ID].sort()[0], [t, ASSISTANT_ID].sort()[1]]), [I, M] = useState(""), [R, N] = useState(null), [O, D] = useState([]), [V, L] = useState(""), [B, j] = useState(null), [q, H] = useState(null), G = useRef(null), U = useRef(null), K = i || U, F = O.filter((te) => {
52051
- const ee = te.name.toLowerCase().includes(V.toLowerCase());
52052
- return C === "all" ? ee : C === "approved" ? ee && !te.pending : C === "pending" ? ee && te.pending : ee;
52057
+ const [C, S] = useState("all"), [T, A] = useState([[t, ASSISTANT_ID].sort()[0], [t, ASSISTANT_ID].sort()[1]]), [I, M] = useState(""), [R, N] = useState(null), [O, D] = useState([]), [V, L] = useState(""), [B, j] = useState(null), [q, H] = useState([]), [G, U] = useState(0), Q = useRef(null), F = useRef(null), z = i || F, W = O.filter((J) => {
52058
+ const ie = J.name.toLowerCase().includes(V.toLowerCase());
52059
+ return C === "all" ? ie : C === "approved" ? ie && !J.pending : C === "pending" ? ie && J.pending : ie;
52053
52060
  });
52054
52061
  useEffect(() => {
52055
- const te = m.at(-1);
52056
- if (!te || te.role != "assistant") return;
52057
- if (te.isComponent) {
52058
- H(te.content);
52062
+ const J = m.at(-1);
52063
+ if (!J || J.role != "assistant") return;
52064
+ if (J.isComponent) {
52065
+ H((K) => [...K, J.content]), U(0);
52059
52066
  return;
52060
52067
  }
52061
- const ee = {
52062
- id: te.timestamp.toString(),
52068
+ const ie = {
52069
+ id: J.timestamp.toString(),
52063
52070
  fromPartnerID: ASSISTANT_ID,
52064
52071
  toPartnerID: t,
52065
52072
  senderName: "Assistant",
52066
- timestamp: te.timestamp.getTime(),
52067
- content: te.content
52073
+ timestamp: J.timestamp.getTime(),
52074
+ content: J.content
52068
52075
  };
52069
- ee.content = marked(ee.content, { async: !1 }), z(ee);
52076
+ ie.content = marked(ie.content, { async: !1 }), Z(ie);
52070
52077
  }, [m]);
52071
- function z(te) {
52072
- const ee = [te.fromPartnerID, te.toPartnerID];
52073
- ee.sort(), D((Z) => {
52074
- let ce = !1;
52075
- const Q = Z.map((de) => de.partner1 !== ee[0] || de.partner2 !== ee[1] || de.messages.findIndex((ae) => ae.id == te.id) !== -1 ? de : (ce = !0, { ...de, unread: de.unread + 1, messages: [...de.messages, te] }));
52076
- return ce && N([ee[0], ee[1]]), Q;
52078
+ function Z(J) {
52079
+ const ie = [J.fromPartnerID, J.toPartnerID];
52080
+ ie.sort(), D((K) => {
52081
+ let fe = !1;
52082
+ const ee = K.map((de) => de.partner1 !== ie[0] || de.partner2 !== ie[1] || de.messages.findIndex((he) => he.id == J.id) !== -1 ? de : (fe = !0, { ...de, unread: de.unread + 1, messages: [...de.messages, J] }));
52083
+ return fe && N([ie[0], ie[1]]), ee;
52077
52084
  });
52078
52085
  }
52079
52086
  useEffect(() => {
52080
- const te = new HubConnectionBuilder().withUrl("https://api.randmar.io/hub", {
52087
+ const J = new HubConnectionBuilder().withUrl("https://api.randmar.io/hub", {
52081
52088
  accessTokenFactory: () => localStorage.getItem("access_token"),
52082
52089
  headers: { "X-Impersonated-Id": t }
52083
52090
  }).configureLogging(LogLevel.Information).withAutomaticReconnect().withHubProtocol(new JsonHubProtocol()).build();
52084
- return te.on("ReceiveMessage", z), te.start().catch((ee) => console.error("Error connecting to SignalR hub:", ee)), j(te), () => {
52085
- te && te.stop();
52091
+ return J.on("ReceiveMessage", Z), J.start().catch((ie) => console.error("Error connecting to SignalR hub:", ie)), j(J), () => {
52092
+ J && J.stop();
52086
52093
  };
52087
52094
  }, [t]), useEffect(() => {
52088
- (R == null ? void 0 : R[0]) !== (T == null ? void 0 : T[0]) || (R == null ? void 0 : R[1]) !== (T == null ? void 0 : T[1]) || (D((te) => te.map((ee) => ee.partner1 === (T == null ? void 0 : T[0]) && ee.partner2 === (T == null ? void 0 : T[1]) ? { ...ee, unread: 0 } : ee)), setTimeout(() => {
52089
- var te;
52090
- return (te = G.current) == null ? void 0 : te.scrollIntoView({ behavior: "smooth" });
52095
+ (R == null ? void 0 : R[0]) !== (T == null ? void 0 : T[0]) || (R == null ? void 0 : R[1]) !== (T == null ? void 0 : T[1]) || (D((J) => J.map((ie) => ie.partner1 === (T == null ? void 0 : T[0]) && ie.partner2 === (T == null ? void 0 : T[1]) ? { ...ie, unread: 0 } : ie)), setTimeout(() => {
52096
+ var J;
52097
+ return (J = Q.current) == null ? void 0 : J.scrollIntoView({ behavior: "smooth" });
52091
52098
  }, 50));
52092
52099
  }, [R, T]), useEffect(() => {
52093
- var ee;
52100
+ var ie;
52094
52101
  if (!T)
52095
52102
  return;
52096
- const te = getActiveChatObject(O, T);
52097
- te && ((ee = K.current) == null || ee.focus(), H(/* @__PURE__ */ jsx(Fragment, {})), u({ applicationId: te.partner1 === t ? te.partner2 : te.partner1 }).then((Z) => {
52098
- Z.data && H(/* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(PartnerCard, { account: Z.data, action: /* @__PURE__ */ jsx(Fragment, {}), withVoice: !1 }) }));
52099
- }), te.historyFetched ? (D((Z) => Z.map((ce) => ce.partner1 === T[0] && ce.partner2 === T[1] ? { ...ce, unread: 0 } : ce)), setTimeout(() => {
52100
- var Z;
52101
- return (Z = G.current) == null ? void 0 : Z.scrollIntoView({ behavior: "smooth" });
52103
+ const J = getActiveChatObject(O, T);
52104
+ J && ((ie = z.current) == null || ie.focus(), U(q.length), u({ applicationId: J.partner1 === t ? J.partner2 : J.partner1 }).then((K) => {
52105
+ K.data && (H((fe) => [...fe, /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(PartnerCard, { account: K.data, action: /* @__PURE__ */ jsx(Fragment, {}), withVoice: !1 }) })]), U(0));
52106
+ }), J.historyFetched ? (D((K) => K.map((fe) => fe.partner1 === T[0] && fe.partner2 === T[1] ? { ...fe, unread: 0 } : fe)), setTimeout(() => {
52107
+ var K;
52108
+ return (K = Q.current) == null ? void 0 : K.scrollIntoView({ behavior: "smooth" });
52102
52109
  }, 50)) : f({
52103
52110
  applicationId: t,
52104
- conversationId: te.conversationID
52105
- }).unwrap().then((Z) => {
52106
- const ce = Z.map((Q) => ({
52107
- id: "history" + Q.MessageId,
52108
- fromPartnerID: Q.SenderId,
52109
- toPartnerID: Q.SenderId == T[0] ? T[1] : T[0],
52110
- senderName: Q.SenderName ?? "missing name",
52111
- timestamp: (/* @__PURE__ */ new Date(Q.SentDate + "Z")).getTime(),
52112
- content: Q.Content ?? "no content"
52111
+ conversationId: J.conversationID
52112
+ }).unwrap().then((K) => {
52113
+ const fe = K.map((ee) => ({
52114
+ id: "history" + ee.MessageId,
52115
+ fromPartnerID: ee.SenderId,
52116
+ toPartnerID: ee.SenderId == T[0] ? T[1] : T[0],
52117
+ senderName: ee.SenderName ?? "missing name",
52118
+ timestamp: (/* @__PURE__ */ new Date(ee.SentDate + "Z")).getTime(),
52119
+ content: ee.Content ?? "no content"
52113
52120
  }));
52114
- D((Q) => Q.map((de) => de.partner1 === T[0] && de.partner2 === T[1] ? {
52121
+ D((ee) => ee.map((de) => de.partner1 === T[0] && de.partner2 === T[1] ? {
52115
52122
  ...de,
52116
- messages: ce,
52123
+ messages: fe,
52117
52124
  historyFetched: !0
52118
52125
  } : de)), setTimeout(() => {
52119
- var Q;
52120
- return (Q = G.current) == null ? void 0 : Q.scrollIntoView({ behavior: "smooth" });
52126
+ var ee;
52127
+ return (ee = Q.current) == null ? void 0 : ee.scrollIntoView({ behavior: "smooth" });
52121
52128
  }, 100);
52122
- }).catch((Z) => {
52123
- console.error("Error fetching conversation messages:", Z);
52129
+ }).catch((K) => {
52130
+ console.error("Error fetching conversation messages:", K);
52124
52131
  }));
52125
52132
  }, [T, f, t]);
52126
- const W = (te, ee, Z) => {
52127
- const ce = {
52133
+ const te = (J, ie, K) => {
52134
+ const fe = {
52128
52135
  id: crypto.randomUUID(),
52129
52136
  senderName: e,
52130
52137
  fromPartnerID: t,
52131
- toPartnerID: ee[0] === t ? ee[1] : ee[0],
52132
- content: te,
52138
+ toPartnerID: ie[0] === t ? ie[1] : ie[0],
52139
+ content: J,
52133
52140
  timestamp: Date.now()
52134
52141
  };
52135
- D((Q) => Q.map((de) => de.partner1 === ee[0] && de.partner2 === ee[1] ? { ...de, messages: [...de.messages, ce] } : de)), N([ee[0], ee[1]]), ce.toPartnerID == ASSISTANT_ID ? p(ce.content) : Z.invoke("NewMessage", ce).catch((Q) => console.error("Error sending message:", Q)), M("");
52136
- }, J = (te, ee) => {
52142
+ D((ee) => ee.map((de) => de.partner1 === ie[0] && de.partner2 === ie[1] ? { ...de, messages: [...de.messages, fe] } : de)), N([ie[0], ie[1]]), fe.toPartnerID == ASSISTANT_ID ? p(fe.content) : K.invoke("NewMessage", fe).catch((ee) => console.error("Error sending message:", ee)), M("");
52143
+ }, ne = (J, ie) => {
52137
52144
  if (!O.length || !B || !g) return !1;
52138
- const Z = O.find((ce) => ce.conversationID === te);
52139
- return Z ? (A([Z.partner1, Z.partner2]), ee && setTimeout(() => W(ee, [Z.partner1, Z.partner2], B), 100), !0) : !1;
52145
+ const K = O.find((fe) => fe.conversationID === J);
52146
+ return K ? (A([K.partner1, K.partner2]), ie && setTimeout(() => te(ie, [K.partner1, K.partner2], B), 100), !0) : !1;
52140
52147
  };
52141
52148
  if (useImperativeHandle(o, () => ({
52142
- setActiveChatAndSendMessage: J
52149
+ setActiveChatAndSendMessage: ne
52143
52150
  })), !g)
52144
52151
  return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
52145
52152
  /* @__PURE__ */ jsx("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4" }),
52146
52153
  /* @__PURE__ */ jsx("p", { children: "Loading API functions..." })
52147
52154
  ] }) }) });
52148
- const ne = () => {
52149
- !I.trim() || !T || !B || (H(/* @__PURE__ */ jsx(Fragment, {})), W(I, T, B));
52150
- }, ie = () => {
52151
- var te = O.find((Z) => Z.partner1 === ASSISTANT_ID || Z.partner2 === ASSISTANT_ID);
52155
+ const ae = () => {
52156
+ !I.trim() || !T || !B || (U(q.length), te(I, T, B));
52157
+ }, le = () => {
52158
+ var J = O.find((K) => K.partner1 === ASSISTANT_ID || K.partner2 === ASSISTANT_ID);
52152
52159
  d({
52153
52160
  applicationId: t,
52154
52161
  emailAddress: e,
52155
52162
  body: {
52156
- messages: te,
52163
+ messages: J,
52157
52164
  debug: b
52158
52165
  }
52159
52166
  });
52160
- }, oe = () => {
52161
- D((te) => te.map((Z) => Z.partner1 !== ASSISTANT_ID && Z.partner2 !== ASSISTANT_ID ? Z : { ...Z, messages: [] })), E();
52167
+ }, ue = () => {
52168
+ D((J) => J.map((K) => K.partner1 !== ASSISTANT_ID && K.partner2 !== ASSISTANT_ID ? K : { ...K, messages: [] })), E();
52162
52169
  };
52163
52170
  return /* @__PURE__ */ jsxs("div", { className: "flex h-[80vh] overflow-hidden", children: [
52164
52171
  /* @__PURE__ */ jsxs("div", { className: "w-[260px] p-4 pt-3 flex flex-col border-r", children: [
@@ -52172,7 +52179,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52172
52179
  placeholder: "Search chats...",
52173
52180
  className: "pl-8 h-9",
52174
52181
  value: V,
52175
- onChange: (te) => L(te.target.value)
52182
+ onChange: (J) => L(J.target.value)
52176
52183
  }
52177
52184
  )
52178
52185
  ] }) }),
@@ -52182,42 +52189,42 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52182
52189
  /* @__PURE__ */ jsx(TabsTrigger, { value: "pending", className: "text-xs col-span-3", children: "Pending" })
52183
52190
  ] }) })
52184
52191
  ] }),
52185
- /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: O.length && /* @__PURE__ */ jsx(ChatList, { userId: t, chats: F.filter((te) => te.partner1 != ASSISTANT_ID && te.partner2 != ASSISTANT_ID), activeChat: getActiveChatObject(O, T) ?? null, onSelectChat: A, assistantChat: O.find((te) => te.partner1 == ASSISTANT_ID || te.partner2 == ASSISTANT_ID) }) })
52192
+ /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: O.length && /* @__PURE__ */ jsx(ChatList, { userId: t, chats: W.filter((J) => J.partner1 != ASSISTANT_ID && J.partner2 != ASSISTANT_ID), activeChat: getActiveChatObject(O, T) ?? null, onSelectChat: A, assistantChat: O.find((J) => J.partner1 == ASSISTANT_ID || J.partner2 == ASSISTANT_ID) }) })
52186
52193
  ] }),
52187
52194
  /* @__PURE__ */ jsx("div", { className: "flex-1 flex flex-col", children: T ? /* @__PURE__ */ jsxs(Fragment, { children: [
52188
52195
  /* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: T[0] == ASSISTANT_ID || T[1] == ASSISTANT_ID ? /* @__PURE__ */ jsxs(Fragment, { children: [
52189
52196
  /* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-none", children: /* @__PURE__ */ jsx(Bot, { className: "text-primary fill-white min-h-full" }) }),
52190
52197
  /* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: "Randmar Assistant" }),
52191
- /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-auto", onClick: () => oe(), children: /* @__PURE__ */ jsx(MessageCircleX, { className: "h-5 w-5" }) }),
52192
- /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-1", confirmationDialog: { title: "Report Issue", content: "This action will send a copy of your chat to Randmar. Send it?", onConfirm: () => ie() }, children: /* @__PURE__ */ jsx(MessageSquareShare, { className: "h-5 w-5" }) })
52198
+ /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-auto", onClick: () => ue(), children: /* @__PURE__ */ jsx(MessageCircleX, { className: "h-5 w-5" }) }),
52199
+ /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-1", confirmationDialog: { title: "Report Issue", content: "This action will send a copy of your chat to Randmar. Send it?", onConfirm: () => le() }, children: /* @__PURE__ */ jsx(MessageSquareShare, { className: "h-5 w-5" }) })
52193
52200
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
52194
52201
  /* @__PURE__ */ jsxs(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-none", children: [
52195
52202
  /* @__PURE__ */ jsx(AvatarImage, { src: `https://api.randmar.io/v4/Partner/${T[0] === t ? T[1] : T[0]}/Account/Logo?height=72&width=72`, className: " object-contain " }),
52196
52203
  /* @__PURE__ */ jsx(AvatarFallback, { children: /* @__PURE__ */ jsx(Handshake, { className: "text-primary fill-white min-h-full" }) })
52197
52204
  ] }),
52198
- /* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: (le = getActiveChatObject(O, T)) == null ? void 0 : le.name })
52205
+ /* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: (se = getActiveChatObject(O, T)) == null ? void 0 : se.name })
52199
52206
  ] }) }),
52200
- (ue = getActiveChatObject(O, T)) != null && ue.pending ? /* @__PURE__ */ jsx("p", { className: "mt-8 p-2 mx-auto", children: "This conversation is still awaiting approval — please check back later." }) : /* @__PURE__ */ jsxs(Fragment, { children: [
52207
+ (ce = getActiveChatObject(O, T)) != null && ce.pending ? /* @__PURE__ */ jsx("p", { className: "mt-8 p-2 mx-auto", children: "This conversation is still awaiting approval — please check back later." }) : /* @__PURE__ */ jsxs(Fragment, { children: [
52201
52208
  /* @__PURE__ */ jsxs(ScrollArea, { className: "flex-1 pl-2 pr-2 bg-slate-50", children: [
52202
52209
  /* @__PURE__ */ jsx(
52203
52210
  ChatMessages,
52204
52211
  {
52205
- messages: ((se = getActiveChatObject(O, T)) == null ? void 0 : se.messages) ?? [],
52212
+ messages: ((oe = getActiveChatObject(O, T)) == null ? void 0 : oe.messages) ?? [],
52206
52213
  currentUserId: t,
52207
52214
  isWaitingForBot: _ && T && (T[0] === ASSISTANT_ID || T[1] === ASSISTANT_ID)
52208
52215
  }
52209
52216
  ),
52210
- /* @__PURE__ */ jsx("div", { ref: G })
52217
+ /* @__PURE__ */ jsx("div", { ref: Q })
52211
52218
  ] }),
52212
52219
  /* @__PURE__ */ jsxs("div", { className: "p-4 border-t flex", children: [
52213
52220
  /* @__PURE__ */ jsx(
52214
52221
  Input,
52215
52222
  {
52216
- ref: K,
52223
+ ref: z,
52217
52224
  placeholder: "Type a message...",
52218
52225
  value: I,
52219
- onChange: (te) => M(te.target.value),
52220
- onKeyDown: (te) => te.key === "Enter" && ne(),
52226
+ onChange: (J) => M(J.target.value),
52227
+ onKeyDown: (J) => J.key === "Enter" && ae(),
52221
52228
  className: "flex-1"
52222
52229
  }
52223
52230
  ),
@@ -52228,7 +52235,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52228
52235
  variant: "default",
52229
52236
  className: "ml-1",
52230
52237
  disabled: _,
52231
- onClick: ne,
52238
+ onClick: ae,
52232
52239
  children: /* @__PURE__ */ jsx(Send, { className: "h-4 w-4" })
52233
52240
  }
52234
52241
  )
@@ -52237,8 +52244,12 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52237
52244
  ] }) : /* @__PURE__ */ jsx("div", { className: "flex-1 flex items-center justify-center text-muted-foreground", children: "Select a chat to start messaging" }) }),
52238
52245
  /* @__PURE__ */ jsxs("div", { className: "w-[480px] flex flex-1 flex-col border-l", children: [
52239
52246
  /* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: /* @__PURE__ */ jsx("p", { className: "h-9 text-base/9", children: "Visuals and System Info" }) }),
52240
- /* @__PURE__ */ jsx(ScrollArea, { className: "flex-4 pl-2 pr-2 bg-slate-50", children: q }),
52241
- /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1 border-t pl-2 pr-2 bg-slate-50", children: /* @__PURE__ */ jsx("div", { className: "space-y-2", children: b.map((te) => /* @__PURE__ */ jsx("p", { className: "text-slate-600", children: te })) }) })
52247
+ /* @__PURE__ */ jsx(ScrollArea, { className: "flex-4 pl-2 pr-2 bg-slate-50", children: G >= 0 && q.length > G && q[q.length - (1 + G)] }),
52248
+ /* @__PURE__ */ jsxs("div", { className: "flex bg-slate-50 border-t pt-1 pb-1 justify-center gap-4", children: [
52249
+ /* @__PURE__ */ jsx(Button, { size: "icon", onClick: () => U((J) => J + 1), children: /* @__PURE__ */ jsx(ChevronLeft, {}) }),
52250
+ /* @__PURE__ */ jsx(Button, { size: "icon", onClick: () => U((J) => J - 1), children: /* @__PURE__ */ jsx(ChevronRight, {}) })
52251
+ ] }),
52252
+ /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1 border-t pl-2 pr-2 bg-slate-50", children: /* @__PURE__ */ jsx("div", { className: "space-y-2", children: b.map((J) => /* @__PURE__ */ jsx("p", { className: "text-slate-600", children: J })) }) })
52242
52253
  ] })
52243
52254
  ] });
52244
52255
  }
@@ -52587,49 +52598,49 @@ function ProductCard({
52587
52598
  syncToShopifyAction: f,
52588
52599
  isSyncToShopifyActionLoading: p = !1
52589
52600
  }) {
52590
- var z, W, J, ne, ie, oe, le, ue, se, te, ee;
52591
- const [m, g] = useState(1), [b, _] = useState(null), [E, C] = useState(0), [S, T] = useState(!1), A = ((z = t == null ? void 0 : t.Distribution) == null ? void 0 : z.Cost) || 0, I = ((W = t == null ? void 0 : t.Distribution) == null ? void 0 : W.RegularPrice) || 0, M = ((J = t == null ? void 0 : t.Distribution) == null ? void 0 : J.Price) || 0;
52601
+ var z, W, Z, te, ne, ae, le, ue, se, ce, oe;
52602
+ const [m, g] = useState(1), [b, _] = useState(null), [E, C] = useState(0), [S, T] = useState(!1), A = ((z = t == null ? void 0 : t.Distribution) == null ? void 0 : z.Cost) || 0, I = ((W = t == null ? void 0 : t.Distribution) == null ? void 0 : W.RegularPrice) || 0, M = ((Z = t == null ? void 0 : t.Distribution) == null ? void 0 : Z.Price) || 0;
52592
52603
  useEffect(() => {
52593
52604
  g(1), _(null), C(0), T(!1);
52594
52605
  }, [t == null ? void 0 : t.RandmarSKU]);
52595
52606
  const [R, N] = useState(null), [O, D] = useState(!1);
52596
52607
  useEffect(() => {
52597
- const Z = async () => {
52608
+ const J = async () => {
52598
52609
  if (t != null && t.ManufacturerId) {
52599
52610
  D(!0);
52600
52611
  try {
52601
- const ce = await fetch(
52612
+ const ie = await fetch(
52602
52613
  `https://api.randmar.io/V4/Partner/${t.ManufacturerId}/Account/Logo?width=60&height=40`
52603
52614
  );
52604
- if (ce.ok) {
52605
- const Q = await ce.blob();
52606
- N(URL.createObjectURL(Q));
52615
+ if (ie.ok) {
52616
+ const K = await ie.blob();
52617
+ N(URL.createObjectURL(K));
52607
52618
  }
52608
- } catch (ce) {
52609
- console.error("Failed to load logo:", ce);
52619
+ } catch (ie) {
52620
+ console.error("Failed to load logo:", ie);
52610
52621
  } finally {
52611
52622
  D(!1);
52612
52623
  }
52613
52624
  }
52614
52625
  };
52615
- t != null && t.ManufacturerId && Z();
52626
+ t != null && t.ManufacturerId && J();
52616
52627
  }, [t == null ? void 0 : t.ManufacturerId]), useEffect(() => {
52617
- var Z;
52628
+ var J;
52618
52629
  if (t && o) {
52619
- const ce = (Z = t.Opportunities) == null ? void 0 : Z.find((Q) => Q.BidNumber == o);
52620
- ce && _(ce);
52630
+ const ie = (J = t.Opportunities) == null ? void 0 : J.find((K) => K.BidNumber == o);
52631
+ ie && _(ie);
52621
52632
  }
52622
52633
  }, [t, o]), useEffect(() => {
52623
52634
  if (!t) return;
52624
- const Z = b != null && b.Price ? b.Price : M;
52625
- C(I > 0 ? Math.round((I - Z) / I * 100) : 0);
52635
+ const J = b != null && b.Price ? b.Price : M;
52636
+ C(I > 0 ? Math.round((I - J) / I * 100) : 0);
52626
52637
  }, [t, b, M, I]), useEffect(() => {
52627
52638
  d || g(1);
52628
52639
  }, [d]);
52629
- const V = (Z) => {
52630
- if (Z.Active !== !0) return !1;
52631
- const ce = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
52632
- return !(Z.EndDate && Z.EndDate.split("T")[0] < ce || Z.StartDate && Z.StartDate.split("T")[0] > ce);
52640
+ const V = (J) => {
52641
+ if (J.Active !== !0) return !1;
52642
+ const ie = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
52643
+ return !(J.EndDate && J.EndDate.split("T")[0] < ie || J.StartDate && J.StartDate.split("T")[0] > ie);
52633
52644
  };
52634
52645
  if (!t)
52635
52646
  return /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, { className: "p-6", children: [
@@ -52696,20 +52707,20 @@ function ProductCard({
52696
52707
  return;
52697
52708
  }
52698
52709
  g(m + 1);
52699
- }, H = (Z) => {
52700
- const ce = parseInt(Z.target.value, 10);
52701
- if (!isNaN(ce) && ce > 0) {
52702
- g(ce);
52710
+ }, H = (J) => {
52711
+ const ie = parseInt(J.target.value, 10);
52712
+ if (!isNaN(ie) && ie > 0) {
52713
+ g(ie);
52703
52714
  return;
52704
52715
  }
52705
52716
  g(void 0);
52706
52717
  }, G = () => {
52707
52718
  (m == null || m < 1) && g(1);
52708
- }, U = ((ie = (ne = t.Distribution) == null ? void 0 : ne.Inventory) == null ? void 0 : ie.reduce((Z, ce) => Z + (ce.AvailableQuantity || 0), 0)) || 0, K = (Z) => {
52719
+ }, U = ((ne = (te = t.Distribution) == null ? void 0 : te.Inventory) == null ? void 0 : ne.reduce((J, ie) => J + (ie.AvailableQuantity || 0), 0)) || 0, Q = (J) => {
52709
52720
  try {
52710
- return new Date(Z).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" });
52711
- } catch (ce) {
52712
- return console.error(ce), Z.split("T")[0] || "N/A";
52721
+ return new Date(J).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" });
52722
+ } catch (ie) {
52723
+ return console.error(ie), J.split("T")[0] || "N/A";
52713
52724
  }
52714
52725
  }, F = () => {
52715
52726
  u && u({ quantity: m ?? 1, bidNumber: (b == null ? void 0 : b.BidNumber) ?? null });
@@ -52773,7 +52784,7 @@ function ProductCard({
52773
52784
  Badge,
52774
52785
  {
52775
52786
  variant: "outline",
52776
- className: `rounded-full px-3 ${(oe = t.ManufacturerCategory) != null && oe.QualificationRequired ? "bg-blue-50 text-blue-700 hover:bg-blue-50" : "bg-neutral-50 text-neutral-700 hover:bg-neutral-50"}`,
52787
+ className: `rounded-full px-3 ${(ae = t.ManufacturerCategory) != null && ae.QualificationRequired ? "bg-blue-50 text-blue-700 hover:bg-blue-50" : "bg-neutral-50 text-neutral-700 hover:bg-neutral-50"}`,
52777
52788
  children: [
52778
52789
  /* @__PURE__ */ jsx(ShieldCheck, { size: "12", className: "mr-1.5" }),
52779
52790
  " ",
@@ -52843,45 +52854,45 @@ function ProductCard({
52843
52854
  /* @__PURE__ */ jsxs("div", { className: "flex gap-6 mt-4", children: [
52844
52855
  /* @__PURE__ */ jsx("div", { className: "flex flex-1", children: B && t.Distribution && /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
52845
52856
  /* @__PURE__ */ jsx("div", { className: "flex items-center", children: "You have " + L.length + (L.length > 1 ? " opportunities" : " opportunity") + " for this product:" }),
52846
- /* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: L.map((Z, ce) => {
52847
- var Q;
52857
+ /* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: L.map((J, ie) => {
52858
+ var K;
52848
52859
  return /* @__PURE__ */ jsxs(
52849
52860
  "div",
52850
52861
  {
52851
52862
  className: `flex justify-between items-center rounded-lg transition-colors py-2 px-4 bg-purple-100 border border-muted
52852
- ${Z.BidNumber == (b == null ? void 0 : b.BidNumber) ? "cursor-pointer border-2 border-purple-900" : V(Z) ? "hover:bg-purple-200 cursor-pointer" : "!bg-neutral-50"}
52863
+ ${J.BidNumber == (b == null ? void 0 : b.BidNumber) ? "cursor-pointer border-2 border-purple-900" : V(J) ? "hover:bg-purple-200 cursor-pointer" : "!bg-neutral-50"}
52853
52864
  `,
52854
52865
  onClick: () => {
52855
- V(Z) && _(
52856
- Z.BidNumber != (b == null ? void 0 : b.BidNumber) ? Z : null
52866
+ V(J) && _(
52867
+ J.BidNumber != (b == null ? void 0 : b.BidNumber) ? J : null
52857
52868
  );
52858
52869
  },
52859
52870
  children: [
52860
52871
  /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
52861
- /* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: Z.Opportunity }),
52872
+ /* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: J.Opportunity }),
52862
52873
  /* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-900", children: [
52863
- Z.BidNumber,
52874
+ J.BidNumber,
52864
52875
  " ",
52865
- !V(Z) && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs mx-1 h-5 bg-gray-100", children: "Currently unavailable" })
52876
+ !V(J) && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs mx-1 h-5 bg-gray-100", children: "Currently unavailable" })
52866
52877
  ] })
52867
52878
  ] }) }),
52868
52879
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end", children: [
52869
52880
  /* @__PURE__ */ jsxs("span", { className: "font-semibold", children: [
52870
52881
  "$",
52871
- (Q = Z.Price) == null ? void 0 : Q.toFixed(2)
52882
+ (K = J.Price) == null ? void 0 : K.toFixed(2)
52872
52883
  ] }),
52873
- Z.Rebate && Z.Rebate > 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-green-600", children: [
52884
+ J.Rebate && J.Rebate > 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-green-600", children: [
52874
52885
  "Rebate: $",
52875
- Z.Rebate.toFixed(2)
52886
+ J.Rebate.toFixed(2)
52876
52887
  ] }),
52877
- Z.EndDate && /* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-600", children: [
52888
+ J.EndDate && /* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-600", children: [
52878
52889
  "Ends: ",
52879
- K(Z.EndDate)
52890
+ Q(J.EndDate)
52880
52891
  ] })
52881
52892
  ] })
52882
52893
  ]
52883
52894
  },
52884
- ce
52895
+ ie
52885
52896
  );
52886
52897
  }) })
52887
52898
  ] }) }),
@@ -52924,7 +52935,7 @@ function ProductCard({
52924
52935
  /* @__PURE__ */ jsxs("div", { className: "flex items-center flex-wrap", children: [
52925
52936
  /* @__PURE__ */ jsxs("span", { className: "text-2xl font-bold whitespace-nowrap", children: [
52926
52937
  /* @__PURE__ */ jsx("span", { children: "$" }),
52927
- b ? (te = (se = t.Opportunities) == null ? void 0 : se.find((Z) => Z.BidNumber == b.BidNumber)) == null ? void 0 : te.Price : M.toFixed(2),
52938
+ b ? (ce = (se = t.Opportunities) == null ? void 0 : se.find((J) => J.BidNumber == b.BidNumber)) == null ? void 0 : ce.Price : M.toFixed(2),
52928
52939
  /* @__PURE__ */ jsx("span", { children: " CAD" })
52929
52940
  ] }),
52930
52941
  E > 0 && /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: [
@@ -52937,7 +52948,7 @@ function ProductCard({
52937
52948
  E,
52938
52949
  "% OFF"
52939
52950
  ] }),
52940
- ((ee = t.InstantRebate) == null ? void 0 : ee.EndDate) && /* @__PURE__ */ jsxs(Fragment, { children: [
52951
+ ((oe = t.InstantRebate) == null ? void 0 : oe.EndDate) && /* @__PURE__ */ jsxs(Fragment, { children: [
52941
52952
  /* @__PURE__ */ jsx("span", { className: "mx-1.5", children: "●" }),
52942
52953
  " Ends ",
52943
52954
  t.InstantRebate.EndDate.split("T")[0]
@@ -52968,7 +52979,7 @@ function ProductCard({
52968
52979
  value: m,
52969
52980
  onChange: H,
52970
52981
  onBlur: G,
52971
- onClick: (Z) => Z.currentTarget.select(),
52982
+ onClick: (J) => J.currentTarget.select(),
52972
52983
  className: `w-12 text-center border-0 focus:ring-0 focus:outline-none ${!t.AvailableToBuy || d || !u ? "text-gray-400" : ""}`,
52973
52984
  disabled: !t.AvailableToBuy || d || !u
52974
52985
  }
@@ -53264,11 +53275,11 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
53264
53275
  {
53265
53276
  scope: t.__scopeSelect,
53266
53277
  onNativeOptionAdd: React.useCallback((U) => {
53267
- H((K) => new Set(K).add(U));
53278
+ H((Q) => new Set(Q).add(U));
53268
53279
  }, []),
53269
53280
  onNativeOptionRemove: React.useCallback((U) => {
53270
- H((K) => {
53271
- const F = new Set(K);
53281
+ H((Q) => {
53282
+ const F = new Set(Q);
53272
53283
  return F.delete(U), F;
53273
53284
  });
53274
53285
  }, []),
@@ -53415,33 +53426,33 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
53415
53426
  }, [I]), useFocusGuards();
53416
53427
  const U = React.useCallback(
53417
53428
  (se) => {
53418
- const [te, ...ee] = j().map((Q) => Q.ref.current), [Z] = ee.slice(-1), ce = document.activeElement;
53419
- for (const Q of se)
53420
- if (Q === ce || (Q == null || Q.scrollIntoView({ block: "nearest" }), Q === te && R && (R.scrollTop = 0), Q === Z && R && (R.scrollTop = R.scrollHeight), Q == null || Q.focus(), document.activeElement !== ce)) return;
53429
+ const [ce, ...oe] = j().map((K) => K.ref.current), [J] = oe.slice(-1), ie = document.activeElement;
53430
+ for (const K of se)
53431
+ if (K === ie || (K == null || K.scrollIntoView({ block: "nearest" }), K === ce && R && (R.scrollTop = 0), K === J && R && (R.scrollTop = R.scrollHeight), K == null || K.focus(), document.activeElement !== ie)) return;
53421
53432
  },
53422
53433
  [j, R]
53423
- ), K = React.useCallback(
53434
+ ), Q = React.useCallback(
53424
53435
  () => U([D, I]),
53425
53436
  [U, D, I]
53426
53437
  );
53427
53438
  React.useEffect(() => {
53428
- q && K();
53429
- }, [q, K]);
53439
+ q && Q();
53440
+ }, [q, Q]);
53430
53441
  const { onOpenChange: F, triggerPointerDownPosRef: z } = A;
53431
53442
  React.useEffect(() => {
53432
53443
  if (I) {
53433
53444
  let se = { x: 0, y: 0 };
53434
- const te = (Z) => {
53435
- var ce, Q;
53445
+ const ce = (J) => {
53446
+ var ie, K;
53436
53447
  se = {
53437
- x: Math.abs(Math.round(Z.pageX) - (((ce = z.current) == null ? void 0 : ce.x) ?? 0)),
53438
- y: Math.abs(Math.round(Z.pageY) - (((Q = z.current) == null ? void 0 : Q.y) ?? 0))
53448
+ x: Math.abs(Math.round(J.pageX) - (((ie = z.current) == null ? void 0 : ie.x) ?? 0)),
53449
+ y: Math.abs(Math.round(J.pageY) - (((K = z.current) == null ? void 0 : K.y) ?? 0))
53439
53450
  };
53440
- }, ee = (Z) => {
53441
- se.x <= 10 && se.y <= 10 ? Z.preventDefault() : I.contains(Z.target) || F(!1), document.removeEventListener("pointermove", te), z.current = null;
53451
+ }, oe = (J) => {
53452
+ se.x <= 10 && se.y <= 10 ? J.preventDefault() : I.contains(J.target) || F(!1), document.removeEventListener("pointermove", ce), z.current = null;
53442
53453
  };
53443
- return z.current !== null && (document.addEventListener("pointermove", te), document.addEventListener("pointerup", ee, { capture: !0, once: !0 })), () => {
53444
- document.removeEventListener("pointermove", te), document.removeEventListener("pointerup", ee, { capture: !0 });
53454
+ return z.current !== null && (document.addEventListener("pointermove", ce), document.addEventListener("pointerup", oe, { capture: !0, once: !0 })), () => {
53455
+ document.removeEventListener("pointermove", ce), document.removeEventListener("pointerup", oe, { capture: !0 });
53445
53456
  };
53446
53457
  }
53447
53458
  }, [I, F, z]), React.useEffect(() => {
@@ -53450,19 +53461,19 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
53450
53461
  window.removeEventListener("blur", se), window.removeEventListener("resize", se);
53451
53462
  };
53452
53463
  }, [F]);
53453
- const [W, J] = useTypeaheadSearch((se) => {
53454
- const te = j().filter((ce) => !ce.disabled), ee = te.find((ce) => ce.ref.current === document.activeElement), Z = findNextItem(te, se, ee);
53455
- Z && setTimeout(() => Z.ref.current.focus());
53456
- }), ne = React.useCallback(
53457
- (se, te, ee) => {
53458
- const Z = !G.current && !ee;
53459
- (A.value !== void 0 && A.value === te || Z) && (V(se), Z && (G.current = !0));
53464
+ const [W, Z] = useTypeaheadSearch((se) => {
53465
+ const ce = j().filter((ie) => !ie.disabled), oe = ce.find((ie) => ie.ref.current === document.activeElement), J = findNextItem(ce, se, oe);
53466
+ J && setTimeout(() => J.ref.current.focus());
53467
+ }), te = React.useCallback(
53468
+ (se, ce, oe) => {
53469
+ const J = !G.current && !oe;
53470
+ (A.value !== void 0 && A.value === ce || J) && (V(se), J && (G.current = !0));
53460
53471
  },
53461
53472
  [A.value]
53462
- ), ie = React.useCallback(() => I == null ? void 0 : I.focus(), [I]), oe = React.useCallback(
53463
- (se, te, ee) => {
53464
- const Z = !G.current && !ee;
53465
- (A.value !== void 0 && A.value === te || Z) && B(se);
53473
+ ), ne = React.useCallback(() => I == null ? void 0 : I.focus(), [I]), ae = React.useCallback(
53474
+ (se, ce, oe) => {
53475
+ const J = !G.current && !oe;
53476
+ (A.value !== void 0 && A.value === ce || J) && B(se);
53466
53477
  },
53467
53478
  [A.value]
53468
53479
  ), le = i === "popper" ? SelectPopperPosition : SelectItemAlignedPosition, ue = le === SelectPopperPosition ? {
@@ -53484,11 +53495,11 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
53484
53495
  content: I,
53485
53496
  viewport: R,
53486
53497
  onViewportChange: N,
53487
- itemRefCallback: ne,
53498
+ itemRefCallback: te,
53488
53499
  selectedItem: D,
53489
- onItemLeave: ie,
53490
- itemTextRefCallback: oe,
53491
- focusSelectedItem: K,
53500
+ onItemLeave: ne,
53501
+ itemTextRefCallback: ae,
53502
+ focusSelectedItem: Q,
53492
53503
  selectedItemText: L,
53493
53504
  position: i,
53494
53505
  isPositioned: q,
@@ -53502,8 +53513,8 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
53502
53513
  se.preventDefault();
53503
53514
  },
53504
53515
  onUnmountAutoFocus: composeEventHandlers(o, (se) => {
53505
- var te;
53506
- (te = A.trigger) == null || te.focus({ preventScroll: !0 }), se.preventDefault();
53516
+ var ce;
53517
+ (ce = A.trigger) == null || ce.focus({ preventScroll: !0 }), se.preventDefault();
53507
53518
  }),
53508
53519
  children: /* @__PURE__ */ jsx(
53509
53520
  DismissableLayer,
@@ -53535,14 +53546,14 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
53535
53546
  ...T.style
53536
53547
  },
53537
53548
  onKeyDown: composeEventHandlers(T.onKeyDown, (se) => {
53538
- const te = se.ctrlKey || se.altKey || se.metaKey;
53539
- if (se.key === "Tab" && se.preventDefault(), !te && se.key.length === 1 && J(se.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(se.key)) {
53540
- let Z = j().filter((ce) => !ce.disabled).map((ce) => ce.ref.current);
53541
- if (["ArrowUp", "End"].includes(se.key) && (Z = Z.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(se.key)) {
53542
- const ce = se.target, Q = Z.indexOf(ce);
53543
- Z = Z.slice(Q + 1);
53549
+ const ce = se.ctrlKey || se.altKey || se.metaKey;
53550
+ if (se.key === "Tab" && se.preventDefault(), !ce && se.key.length === 1 && Z(se.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(se.key)) {
53551
+ let J = j().filter((ie) => !ie.disabled).map((ie) => ie.ref.current);
53552
+ if (["ArrowUp", "End"].includes(se.key) && (J = J.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(se.key)) {
53553
+ const ie = se.target, K = J.indexOf(ie);
53554
+ J = J.slice(K + 1);
53544
53555
  }
53545
- setTimeout(() => U(Z)), se.preventDefault();
53556
+ setTimeout(() => U(J)), se.preventDefault();
53546
53557
  }
53547
53558
  })
53548
53559
  }
@@ -53561,42 +53572,42 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
53561
53572
  if (l.trigger && l.valueNode && d && p && C && S && T) {
53562
53573
  const O = l.trigger.getBoundingClientRect(), D = p.getBoundingClientRect(), V = l.valueNode.getBoundingClientRect(), L = T.getBoundingClientRect();
53563
53574
  if (l.dir !== "rtl") {
53564
- const ce = L.left - D.left, Q = V.left - ce, de = O.left - Q, ae = O.width + de, fe = Math.max(ae, D.width), he = window.innerWidth - CONTENT_MARGIN, me = clamp(Q, [
53575
+ const ie = L.left - D.left, K = V.left - ie, fe = O.left - K, ee = O.width + fe, de = Math.max(ee, D.width), he = window.innerWidth - CONTENT_MARGIN, me = clamp(K, [
53565
53576
  CONTENT_MARGIN,
53566
53577
  // Prevents the content from going off the starting edge of the
53567
53578
  // viewport. It may still go off the ending edge, but this can be
53568
53579
  // controlled by the user since they may want to manage overflow in a
53569
53580
  // specific way.
53570
53581
  // https://github.com/radix-ui/primitives/issues/2049
53571
- Math.max(CONTENT_MARGIN, he - fe)
53582
+ Math.max(CONTENT_MARGIN, he - de)
53572
53583
  ]);
53573
- d.style.minWidth = ae + "px", d.style.left = me + "px";
53584
+ d.style.minWidth = ee + "px", d.style.left = me + "px";
53574
53585
  } else {
53575
- const ce = D.right - L.right, Q = window.innerWidth - V.right - ce, de = window.innerWidth - O.right - Q, ae = O.width + de, fe = Math.max(ae, D.width), he = window.innerWidth - CONTENT_MARGIN, me = clamp(Q, [
53586
+ const ie = D.right - L.right, K = window.innerWidth - V.right - ie, fe = window.innerWidth - O.right - K, ee = O.width + fe, de = Math.max(ee, D.width), he = window.innerWidth - CONTENT_MARGIN, me = clamp(K, [
53576
53587
  CONTENT_MARGIN,
53577
- Math.max(CONTENT_MARGIN, he - fe)
53588
+ Math.max(CONTENT_MARGIN, he - de)
53578
53589
  ]);
53579
- d.style.minWidth = ae + "px", d.style.right = me + "px";
53590
+ d.style.minWidth = ee + "px", d.style.right = me + "px";
53580
53591
  }
53581
- const B = b(), j = window.innerHeight - CONTENT_MARGIN * 2, q = C.scrollHeight, H = window.getComputedStyle(p), G = parseInt(H.borderTopWidth, 10), U = parseInt(H.paddingTop, 10), K = parseInt(H.borderBottomWidth, 10), F = parseInt(H.paddingBottom, 10), z = G + U + q + F + K, W = Math.min(S.offsetHeight * 5, z), J = window.getComputedStyle(C), ne = parseInt(J.paddingTop, 10), ie = parseInt(J.paddingBottom, 10), oe = O.top + O.height / 2 - CONTENT_MARGIN, le = j - oe, ue = S.offsetHeight / 2, se = S.offsetTop + ue, te = G + U + se, ee = z - te;
53582
- if (te <= oe) {
53583
- const ce = B.length > 0 && S === B[B.length - 1].ref.current;
53592
+ const B = b(), j = window.innerHeight - CONTENT_MARGIN * 2, q = C.scrollHeight, H = window.getComputedStyle(p), G = parseInt(H.borderTopWidth, 10), U = parseInt(H.paddingTop, 10), Q = parseInt(H.borderBottomWidth, 10), F = parseInt(H.paddingBottom, 10), z = G + U + q + F + Q, W = Math.min(S.offsetHeight * 5, z), Z = window.getComputedStyle(C), te = parseInt(Z.paddingTop, 10), ne = parseInt(Z.paddingBottom, 10), ae = O.top + O.height / 2 - CONTENT_MARGIN, le = j - ae, ue = S.offsetHeight / 2, se = S.offsetTop + ue, ce = G + U + se, oe = z - ce;
53593
+ if (ce <= ae) {
53594
+ const ie = B.length > 0 && S === B[B.length - 1].ref.current;
53584
53595
  d.style.bottom = "0px";
53585
- const Q = p.clientHeight - C.offsetTop - C.offsetHeight, de = Math.max(
53596
+ const K = p.clientHeight - C.offsetTop - C.offsetHeight, fe = Math.max(
53586
53597
  le,
53587
53598
  ue + // viewport might have padding bottom, include it to avoid a scrollable viewport
53588
- (ce ? ie : 0) + Q + K
53589
- ), ae = te + de;
53590
- d.style.height = ae + "px";
53599
+ (ie ? ne : 0) + K + Q
53600
+ ), ee = ce + fe;
53601
+ d.style.height = ee + "px";
53591
53602
  } else {
53592
- const ce = B.length > 0 && S === B[0].ref.current;
53603
+ const ie = B.length > 0 && S === B[0].ref.current;
53593
53604
  d.style.top = "0px";
53594
- const de = Math.max(
53595
- oe,
53605
+ const fe = Math.max(
53606
+ ae,
53596
53607
  G + C.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
53597
- (ce ? ne : 0) + ue
53598
- ) + ee;
53599
- d.style.height = de + "px", C.scrollTop = te - oe + C.offsetTop;
53608
+ (ie ? te : 0) + ue
53609
+ ) + oe;
53610
+ d.style.height = fe + "px", C.scrollTop = ce - ae + C.offsetTop;
53600
53611
  }
53601
53612
  d.style.margin = `${CONTENT_MARGIN}px 0`, d.style.minHeight = W + "px", d.style.maxHeight = j + "px", i == null || i(), requestAnimationFrame(() => _.current = !0);
53602
53613
  }