randmarcomps 1.312.0 → 1.314.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/randmarcomps.js +644 -603
- package/dist/randmarcomps.umd.cjs +44 -44
- package/package.json +2 -2
package/dist/randmarcomps.js
CHANGED
|
@@ -66,17 +66,17 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
|
66
66
|
var n = t, { value: o, onChange: l, maxLength: d, textAlign: f = "left", pattern: g, placeholder: b, inputMode: S = "numeric", onComplete: _, pushPasswordManagerStrategy: C = "increase-width", pasteTransformer: E, containerClassName: R, noScriptCSSFallback: A = Nt, render: M, children: I } = n, O = Pt(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), q, z, Q, j, F;
|
|
67
67
|
let [te, ne] = React.useState(typeof O.defaultValue == "string" ? O.defaultValue : ""), oe = o ?? te, ge = _t(oe), se = React.useCallback((Je) => {
|
|
68
68
|
l == null || l(Je), ne(Je);
|
|
69
|
-
}, [l]), Ae = React.useMemo(() => g ? typeof g == "string" ? new RegExp(g) : g : null, [g]), $e = React.useRef(null), Ne = React.useRef(null), Ve = React.useRef({ value: oe, onChange: se, isIOS: typeof window < "u" && ((z = (q = window == null ? void 0 : window.CSS) == null ? void 0 : q.supports) == null ? void 0 : z.call(q, "-webkit-touch-callout", "none")) }),
|
|
69
|
+
}, [l]), Ae = React.useMemo(() => g ? typeof g == "string" ? new RegExp(g) : g : null, [g]), $e = React.useRef(null), Ne = React.useRef(null), Ve = React.useRef({ value: oe, onChange: se, isIOS: typeof window < "u" && ((z = (q = window == null ? void 0 : window.CSS) == null ? void 0 : q.supports) == null ? void 0 : z.call(q, "-webkit-touch-callout", "none")) }), je = React.useRef({ prev: [(Q = $e.current) == null ? void 0 : Q.selectionStart, (j = $e.current) == null ? void 0 : j.selectionEnd, (F = $e.current) == null ? void 0 : F.selectionDirection] });
|
|
70
70
|
React.useImperativeHandle(e, () => $e.current, []), React.useEffect(() => {
|
|
71
71
|
let Je = $e.current, yt = Ne.current;
|
|
72
72
|
if (!Je || !yt) return;
|
|
73
|
-
Ve.current.value !== Je.value && Ve.current.onChange(Je.value),
|
|
73
|
+
Ve.current.value !== Je.value && Ve.current.onChange(Je.value), je.current.prev = [Je.selectionStart, Je.selectionEnd, Je.selectionDirection];
|
|
74
74
|
function Mt() {
|
|
75
75
|
if (document.activeElement !== Je) {
|
|
76
76
|
He(null), tt(null);
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
let Ft = Je.selectionStart, Ke = Je.selectionEnd, it = Je.selectionDirection, et = Je.maxLength, ut = Je.value, ft =
|
|
79
|
+
let Ft = Je.selectionStart, Ke = Je.selectionEnd, it = Je.selectionDirection, et = Je.maxLength, ut = Je.value, ft = je.current.prev, dt = -1, Ct = -1, zt;
|
|
80
80
|
if (ut.length !== 0 && Ft !== null && Ke !== null) {
|
|
81
81
|
let mt = Ft === Ke, xr = Ft === ut.length && ut.length < et;
|
|
82
82
|
if (mt && !xr) {
|
|
@@ -96,7 +96,7 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
|
96
96
|
dt !== -1 && Ct !== -1 && dt !== Ct && $e.current.setSelectionRange(dt, Ct, zt);
|
|
97
97
|
}
|
|
98
98
|
let Yt = dt !== -1 ? dt : Ft, ir = Ct !== -1 ? Ct : Ke, cr = zt ?? it;
|
|
99
|
-
He(Yt), tt(ir),
|
|
99
|
+
He(Yt), tt(ir), je.current.prev = [Yt, ir, cr];
|
|
100
100
|
}
|
|
101
101
|
if (document.addEventListener("selectionchange", Mt, { capture: !0 }), Mt(), document.activeElement === Je && qe(!0), !document.getElementById("input-otp-style")) {
|
|
102
102
|
let Ft = document.createElement("style");
|
|
@@ -120,7 +120,7 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
|
120
120
|
var Je, yt, Mt, qt;
|
|
121
121
|
(Je = $e.current) == null || Je.dispatchEvent(new Event("input"));
|
|
122
122
|
let Ht = (yt = $e.current) == null ? void 0 : yt.selectionStart, Ft = (Mt = $e.current) == null ? void 0 : Mt.selectionEnd, Ke = (qt = $e.current) == null ? void 0 : qt.selectionDirection;
|
|
123
|
-
Ht !== null && Ft !== null && (He(Ht), tt(Ft),
|
|
123
|
+
Ht !== null && Ft !== null && (He(Ht), tt(Ft), je.current.prev = [Ht, Ft, Ke]);
|
|
124
124
|
});
|
|
125
125
|
}, [oe, Le]), React.useEffect(() => {
|
|
126
126
|
ge !== void 0 && oe !== ge && ge.length < d && oe.length === d && (_ == null || _(oe));
|
|
@@ -1510,7 +1510,7 @@ const fromTheme = (t) => {
|
|
|
1510
1510
|
"left-bottom"
|
|
1511
1511
|
], j = () => [...Q(), isArbitraryVariable, isArbitraryValue], F = () => ["auto", "hidden", "clip", "visible", "scroll"], te = () => ["auto", "contain", "none"], ne = () => [isArbitraryVariable, isArbitraryValue, b], oe = () => [isFraction, "full", "auto", ...ne()], ge = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue], se = () => ["auto", {
|
|
1512
1512
|
span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
|
|
1513
|
-
}, isInteger, isArbitraryVariable, isArbitraryValue], Ae = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], $e = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue], Ne = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Ve = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"],
|
|
1513
|
+
}, isInteger, isArbitraryVariable, isArbitraryValue], Ae = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], $e = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue], Ne = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Ve = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], je = () => ["auto", ...ne()], ze = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...ne()], Oe = () => [t, isArbitraryVariable, isArbitraryValue], Le = () => [...Q(), isArbitraryVariablePosition, isArbitraryPosition, {
|
|
1514
1514
|
position: [isArbitraryVariable, isArbitraryValue]
|
|
1515
1515
|
}], qe = () => ["no-repeat", {
|
|
1516
1516
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -2065,63 +2065,63 @@ const fromTheme = (t) => {
|
|
|
2065
2065
|
* @see https://tailwindcss.com/docs/margin
|
|
2066
2066
|
*/
|
|
2067
2067
|
m: [{
|
|
2068
|
-
m:
|
|
2068
|
+
m: je()
|
|
2069
2069
|
}],
|
|
2070
2070
|
/**
|
|
2071
2071
|
* Margin X
|
|
2072
2072
|
* @see https://tailwindcss.com/docs/margin
|
|
2073
2073
|
*/
|
|
2074
2074
|
mx: [{
|
|
2075
|
-
mx:
|
|
2075
|
+
mx: je()
|
|
2076
2076
|
}],
|
|
2077
2077
|
/**
|
|
2078
2078
|
* Margin Y
|
|
2079
2079
|
* @see https://tailwindcss.com/docs/margin
|
|
2080
2080
|
*/
|
|
2081
2081
|
my: [{
|
|
2082
|
-
my:
|
|
2082
|
+
my: je()
|
|
2083
2083
|
}],
|
|
2084
2084
|
/**
|
|
2085
2085
|
* Margin Start
|
|
2086
2086
|
* @see https://tailwindcss.com/docs/margin
|
|
2087
2087
|
*/
|
|
2088
2088
|
ms: [{
|
|
2089
|
-
ms:
|
|
2089
|
+
ms: je()
|
|
2090
2090
|
}],
|
|
2091
2091
|
/**
|
|
2092
2092
|
* Margin End
|
|
2093
2093
|
* @see https://tailwindcss.com/docs/margin
|
|
2094
2094
|
*/
|
|
2095
2095
|
me: [{
|
|
2096
|
-
me:
|
|
2096
|
+
me: je()
|
|
2097
2097
|
}],
|
|
2098
2098
|
/**
|
|
2099
2099
|
* Margin Top
|
|
2100
2100
|
* @see https://tailwindcss.com/docs/margin
|
|
2101
2101
|
*/
|
|
2102
2102
|
mt: [{
|
|
2103
|
-
mt:
|
|
2103
|
+
mt: je()
|
|
2104
2104
|
}],
|
|
2105
2105
|
/**
|
|
2106
2106
|
* Margin Right
|
|
2107
2107
|
* @see https://tailwindcss.com/docs/margin
|
|
2108
2108
|
*/
|
|
2109
2109
|
mr: [{
|
|
2110
|
-
mr:
|
|
2110
|
+
mr: je()
|
|
2111
2111
|
}],
|
|
2112
2112
|
/**
|
|
2113
2113
|
* Margin Bottom
|
|
2114
2114
|
* @see https://tailwindcss.com/docs/margin
|
|
2115
2115
|
*/
|
|
2116
2116
|
mb: [{
|
|
2117
|
-
mb:
|
|
2117
|
+
mb: je()
|
|
2118
2118
|
}],
|
|
2119
2119
|
/**
|
|
2120
2120
|
* Margin Left
|
|
2121
2121
|
* @see https://tailwindcss.com/docs/margin
|
|
2122
2122
|
*/
|
|
2123
2123
|
ml: [{
|
|
2124
|
-
ml:
|
|
2124
|
+
ml: je()
|
|
2125
2125
|
}],
|
|
2126
2126
|
/**
|
|
2127
2127
|
* Space Between X
|
|
@@ -4380,9 +4380,9 @@ var RovingFocusGroupImpl = React.forwardRef((t, e) => {
|
|
|
4380
4380
|
if (ne.target === ne.currentTarget && oe && !O) {
|
|
4381
4381
|
const ge = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS$1);
|
|
4382
4382
|
if (ne.currentTarget.dispatchEvent(ge), !ge.defaultPrevented) {
|
|
4383
|
-
const se = Q().filter((
|
|
4383
|
+
const se = Q().filter((je) => je.focusable), Ae = se.find((je) => je.active), $e = se.find((je) => je.id === M), Ve = [Ae, $e, ...se].filter(
|
|
4384
4384
|
Boolean
|
|
4385
|
-
).map((
|
|
4385
|
+
).map((je) => je.ref.current);
|
|
4386
4386
|
focusFirst$3(Ve, _);
|
|
4387
4387
|
}
|
|
4388
4388
|
}
|
|
@@ -6201,17 +6201,17 @@ const arrow$4 = (t) => ({
|
|
|
6201
6201
|
}, R = getAlignmentAxis(l), A = getAxisLength(R), M = await f.getDimensions(S), I = R === "y", O = I ? "top" : "left", q = I ? "bottom" : "right", z = I ? "clientHeight" : "clientWidth", Q = d.reference[A] + d.reference[R] - E[R] - d.floating[A], j = E[R] - d.reference[R], F = await (f.getOffsetParent == null ? void 0 : f.getOffsetParent(S));
|
|
6202
6202
|
let te = F ? F[z] : 0;
|
|
6203
6203
|
(!te || !await (f.isElement == null ? void 0 : f.isElement(F))) && (te = g.floating[z] || d.floating[A]);
|
|
6204
|
-
const ne = Q / 2 - j / 2, oe = te / 2 - M[A] / 2 - 1, ge = min$3(C[O], oe), se = min$3(C[q], oe), Ae = ge, $e = te - M[A] - se, Ne = te / 2 - M[A] / 2 + ne, Ve = clamp$1(Ae, Ne, $e),
|
|
6204
|
+
const ne = Q / 2 - j / 2, oe = te / 2 - M[A] / 2 - 1, ge = min$3(C[O], oe), se = min$3(C[q], oe), Ae = ge, $e = te - M[A] - se, Ne = te / 2 - M[A] / 2 + ne, Ve = clamp$1(Ae, Ne, $e), je = !b.arrow && getAlignment(l) != null && Ne !== Ve && d.reference[A] / 2 - (Ne < Ae ? ge : se) - M[A] / 2 < 0, ze = je ? Ne < Ae ? Ne - Ae : Ne - $e : 0;
|
|
6205
6205
|
return {
|
|
6206
6206
|
[R]: E[R] + ze,
|
|
6207
6207
|
data: {
|
|
6208
6208
|
[R]: Ve,
|
|
6209
6209
|
centerOffset: Ne - Ve - ze,
|
|
6210
|
-
...
|
|
6210
|
+
...je && {
|
|
6211
6211
|
alignmentOffset: ze
|
|
6212
6212
|
}
|
|
6213
6213
|
},
|
|
6214
|
-
reset:
|
|
6214
|
+
reset: je
|
|
6215
6215
|
};
|
|
6216
6216
|
}
|
|
6217
6217
|
}), flip$2 = function(t) {
|
|
@@ -6264,8 +6264,8 @@ const arrow$4 = (t) => ({
|
|
|
6264
6264
|
placement: Ve
|
|
6265
6265
|
}
|
|
6266
6266
|
};
|
|
6267
|
-
let
|
|
6268
|
-
if (!
|
|
6267
|
+
let je = (Ae = ge.filter((ze) => ze.overflows[0] <= 0).sort((ze, Oe) => ze.overflows[1] - Oe.overflows[1])[0]) == null ? void 0 : Ae.placement;
|
|
6268
|
+
if (!je)
|
|
6269
6269
|
switch (R) {
|
|
6270
6270
|
case "bestFit": {
|
|
6271
6271
|
var $e;
|
|
@@ -6278,17 +6278,17 @@ const arrow$4 = (t) => ({
|
|
|
6278
6278
|
}
|
|
6279
6279
|
return !0;
|
|
6280
6280
|
}).map((Oe) => [Oe.placement, Oe.overflows.filter((Le) => Le > 0).reduce((Le, qe) => Le + qe, 0)]).sort((Oe, Le) => Oe[1] - Le[1])[0]) == null ? void 0 : $e[0];
|
|
6281
|
-
ze && (
|
|
6281
|
+
ze && (je = ze);
|
|
6282
6282
|
break;
|
|
6283
6283
|
}
|
|
6284
6284
|
case "initialPlacement":
|
|
6285
|
-
|
|
6285
|
+
je = g;
|
|
6286
6286
|
break;
|
|
6287
6287
|
}
|
|
6288
|
-
if (l !==
|
|
6288
|
+
if (l !== je)
|
|
6289
6289
|
return {
|
|
6290
6290
|
reset: {
|
|
6291
|
-
placement:
|
|
6291
|
+
placement: je
|
|
6292
6292
|
}
|
|
6293
6293
|
};
|
|
6294
6294
|
}
|
|
@@ -7144,7 +7144,7 @@ function useFloating(t) {
|
|
|
7144
7144
|
floating: te,
|
|
7145
7145
|
setReference: q,
|
|
7146
7146
|
setFloating: z
|
|
7147
|
-
}), [q, z]),
|
|
7147
|
+
}), [q, z]), je = React.useMemo(() => ({
|
|
7148
7148
|
reference: Q,
|
|
7149
7149
|
floating: j
|
|
7150
7150
|
}), [Q, j]), ze = React.useMemo(() => {
|
|
@@ -7153,13 +7153,13 @@ function useFloating(t) {
|
|
|
7153
7153
|
left: 0,
|
|
7154
7154
|
top: 0
|
|
7155
7155
|
};
|
|
7156
|
-
if (!
|
|
7156
|
+
if (!je.floating)
|
|
7157
7157
|
return Oe;
|
|
7158
|
-
const Le = roundByDPR(
|
|
7158
|
+
const Le = roundByDPR(je.floating, _.x), qe = roundByDPR(je.floating, _.y);
|
|
7159
7159
|
return g ? {
|
|
7160
7160
|
...Oe,
|
|
7161
7161
|
transform: "translate(" + Le + "px, " + qe + "px)",
|
|
7162
|
-
...getDPR(
|
|
7162
|
+
...getDPR(je.floating) >= 1.5 && {
|
|
7163
7163
|
willChange: "transform"
|
|
7164
7164
|
}
|
|
7165
7165
|
} : {
|
|
@@ -7167,14 +7167,14 @@ function useFloating(t) {
|
|
|
7167
7167
|
left: Le,
|
|
7168
7168
|
top: qe
|
|
7169
7169
|
};
|
|
7170
|
-
}, [n, g,
|
|
7170
|
+
}, [n, g, je.floating, _.x, _.y]);
|
|
7171
7171
|
return React.useMemo(() => ({
|
|
7172
7172
|
..._,
|
|
7173
7173
|
update: $e,
|
|
7174
7174
|
refs: Ve,
|
|
7175
|
-
elements:
|
|
7175
|
+
elements: je,
|
|
7176
7176
|
floatingStyles: ze
|
|
7177
|
-
}), [_, $e, Ve,
|
|
7177
|
+
}), [_, $e, Ve, je, ze]);
|
|
7178
7178
|
}
|
|
7179
7179
|
const arrow$1 = (t) => {
|
|
7180
7180
|
function e(n) {
|
|
@@ -7272,7 +7272,7 @@ var CONTENT_NAME$7 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
7272
7272
|
boundary: se.filter(isNotNull),
|
|
7273
7273
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
7274
7274
|
altBoundary: Ae
|
|
7275
|
-
}, { refs: Ne, floatingStyles: Ve, placement:
|
|
7275
|
+
}, { refs: Ne, floatingStyles: Ve, placement: je, isPositioned: ze, middlewareData: Oe } = useFloating({
|
|
7276
7276
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
7277
7277
|
strategy: "fixed",
|
|
7278
7278
|
placement: oe,
|
|
@@ -7302,7 +7302,7 @@ var CONTENT_NAME$7 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
7302
7302
|
transformOrigin({ arrowWidth: te, arrowHeight: ne }),
|
|
7303
7303
|
E && hide({ strategy: "referenceHidden", ...$e })
|
|
7304
7304
|
]
|
|
7305
|
-
}), [Le, qe] = getSideAndAlignFromPlacement(
|
|
7305
|
+
}), [Le, qe] = getSideAndAlignFromPlacement(je), Ge = useCallbackRef$1(A);
|
|
7306
7306
|
useLayoutEffect2(() => {
|
|
7307
7307
|
ze && (Ge == null || Ge());
|
|
7308
7308
|
}, [ze, Ge]);
|
|
@@ -7546,7 +7546,7 @@ var CONTENT_NAME$6 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
7546
7546
|
onDismiss: R,
|
|
7547
7547
|
disableOutsideScroll: A,
|
|
7548
7548
|
...M
|
|
7549
|
-
} = t, I = useMenuContext(CONTENT_NAME$6, n), O = useMenuRootContext(CONTENT_NAME$6, n), q = usePopperScope$3(n), z = useRovingFocusGroupScope$1(n), Q = useCollection$2(n), [j, F] = React.useState(null), te = React.useRef(null), ne = useComposedRefs(e, te, I.onContentChange), oe = React.useRef(0), ge = React.useRef(""), se = React.useRef(0), Ae = React.useRef(null), $e = React.useRef("right"), Ne = React.useRef(0), Ve = A ? ReactRemoveScroll : React.Fragment,
|
|
7549
|
+
} = t, I = useMenuContext(CONTENT_NAME$6, n), O = useMenuRootContext(CONTENT_NAME$6, n), q = usePopperScope$3(n), z = useRovingFocusGroupScope$1(n), Q = useCollection$2(n), [j, F] = React.useState(null), te = React.useRef(null), ne = useComposedRefs(e, te, I.onContentChange), oe = React.useRef(0), ge = React.useRef(""), se = React.useRef(0), Ae = React.useRef(null), $e = React.useRef("right"), Ne = React.useRef(0), Ve = A ? ReactRemoveScroll : React.Fragment, je = A ? { as: Slot$2, allowPinchZoom: !0 } : void 0, ze = (Le) => {
|
|
7550
7550
|
var Xe, ot;
|
|
7551
7551
|
const qe = ge.current + Le, Ge = Q().filter((rt) => !rt.disabled), He = document.activeElement, Ze = (Xe = Ge.find((rt) => rt.ref.current === He)) == null ? void 0 : Xe.textValue, tt = Ge.map((rt) => rt.textValue), Ye = getNextMatch(tt, qe, Ze), Qe = (ot = Ge.find((rt) => rt.textValue === Ye)) == null ? void 0 : ot.ref.current;
|
|
7552
7552
|
(function rt(at) {
|
|
@@ -7586,7 +7586,7 @@ var CONTENT_NAME$6 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
7586
7586
|
onPointerGraceIntentChange: React.useCallback((Le) => {
|
|
7587
7587
|
Ae.current = Le;
|
|
7588
7588
|
}, []),
|
|
7589
|
-
children: /* @__PURE__ */ jsx(Ve, { ...
|
|
7589
|
+
children: /* @__PURE__ */ jsx(Ve, { ...je, children: /* @__PURE__ */ jsx(
|
|
7590
7590
|
FocusScope,
|
|
7591
7591
|
{
|
|
7592
7592
|
asChild: !0,
|
|
@@ -9824,12 +9824,12 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
9824
9824
|
if (Ne) {
|
|
9825
9825
|
const Ve = () => {
|
|
9826
9826
|
Ae(te.current), S == null || S();
|
|
9827
|
-
},
|
|
9827
|
+
}, je = () => {
|
|
9828
9828
|
const ze = (/* @__PURE__ */ new Date()).getTime() - F.current;
|
|
9829
9829
|
te.current = te.current - ze, window.clearTimeout(ne.current), b == null || b();
|
|
9830
9830
|
};
|
|
9831
|
-
return Ne.addEventListener(VIEWPORT_PAUSE,
|
|
9832
|
-
Ne.removeEventListener(VIEWPORT_PAUSE,
|
|
9831
|
+
return Ne.addEventListener(VIEWPORT_PAUSE, je), Ne.addEventListener(VIEWPORT_RESUME, Ve), () => {
|
|
9832
|
+
Ne.removeEventListener(VIEWPORT_PAUSE, je), Ne.removeEventListener(VIEWPORT_RESUME, Ve);
|
|
9833
9833
|
};
|
|
9834
9834
|
}
|
|
9835
9835
|
}, [M.viewport, j, b, S, Ae]), React.useEffect(() => {
|
|
@@ -9875,16 +9875,16 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
9875
9875
|
}),
|
|
9876
9876
|
onPointerMove: composeEventHandlers(t.onPointerMove, (Ne) => {
|
|
9877
9877
|
if (!z.current) return;
|
|
9878
|
-
const Ve = Ne.clientX - z.current.x,
|
|
9878
|
+
const Ve = Ne.clientX - z.current.x, je = Ne.clientY - z.current.y, ze = !!Q.current, Oe = ["left", "right"].includes(M.swipeDirection), Le = ["left", "up"].includes(M.swipeDirection) ? Math.min : Math.max, qe = Oe ? Le(0, Ve) : 0, Ge = Oe ? 0 : Le(0, je), He = Ne.pointerType === "touch" ? 10 : 2, Ze = { x: qe, y: Ge }, tt = { originalEvent: Ne, delta: Ze };
|
|
9879
9879
|
ze ? (Q.current = Ze, handleAndDispatchCustomEvent(TOAST_SWIPE_MOVE, C, tt, {
|
|
9880
9880
|
discrete: !1
|
|
9881
9881
|
})) : isDeltaInDirection(Ze, M.swipeDirection, He) ? (Q.current = Ze, handleAndDispatchCustomEvent(TOAST_SWIPE_START, _, tt, {
|
|
9882
9882
|
discrete: !1
|
|
9883
|
-
}), Ne.target.setPointerCapture(Ne.pointerId)) : (Math.abs(Ve) > He || Math.abs(
|
|
9883
|
+
}), Ne.target.setPointerCapture(Ne.pointerId)) : (Math.abs(Ve) > He || Math.abs(je) > He) && (z.current = null);
|
|
9884
9884
|
}),
|
|
9885
9885
|
onPointerUp: composeEventHandlers(t.onPointerUp, (Ne) => {
|
|
9886
|
-
const Ve = Q.current,
|
|
9887
|
-
if (
|
|
9886
|
+
const Ve = Q.current, je = Ne.target;
|
|
9887
|
+
if (je.hasPointerCapture(Ne.pointerId) && je.releasePointerCapture(Ne.pointerId), Q.current = null, z.current = null, Ve) {
|
|
9888
9888
|
const ze = Ne.currentTarget, Oe = { originalEvent: Ne, delta: Ve };
|
|
9889
9889
|
isDeltaInDirection(Ve, M.swipeDirection, M.swipeThreshold) ? handleAndDispatchCustomEvent(TOAST_SWIPE_END, R, Oe, {
|
|
9890
9890
|
discrete: !0
|
|
@@ -11860,7 +11860,7 @@ function fetchBaseQuery({
|
|
|
11860
11860
|
j += tt + Ye;
|
|
11861
11861
|
}
|
|
11862
11862
|
j = joinUrls(t, j);
|
|
11863
|
-
const
|
|
11863
|
+
const je = new Request(j, Ne);
|
|
11864
11864
|
Q = {
|
|
11865
11865
|
request: new Request(j, Ne)
|
|
11866
11866
|
};
|
|
@@ -11868,7 +11868,7 @@ function fetchBaseQuery({
|
|
|
11868
11868
|
Le = !0, Ae.abort();
|
|
11869
11869
|
}, ge);
|
|
11870
11870
|
try {
|
|
11871
|
-
Oe = await n(
|
|
11871
|
+
Oe = await n(je);
|
|
11872
11872
|
} catch (tt) {
|
|
11873
11873
|
return {
|
|
11874
11874
|
error: {
|
|
@@ -12024,7 +12024,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
12024
12024
|
endpointDefinition: j,
|
|
12025
12025
|
endpointName: Q
|
|
12026
12026
|
});
|
|
12027
|
-
let
|
|
12027
|
+
let je;
|
|
12028
12028
|
const ze = {
|
|
12029
12029
|
...Ae,
|
|
12030
12030
|
type: "query",
|
|
@@ -12037,13 +12037,13 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
12037
12037
|
[forceQueryFnSymbol]: se
|
|
12038
12038
|
};
|
|
12039
12039
|
if (isQueryDefinition$1(j))
|
|
12040
|
-
|
|
12040
|
+
je = e(ze);
|
|
12041
12041
|
else {
|
|
12042
12042
|
const {
|
|
12043
12043
|
direction: ot,
|
|
12044
12044
|
initialPageParam: rt
|
|
12045
12045
|
} = Ae;
|
|
12046
|
-
|
|
12046
|
+
je = n({
|
|
12047
12047
|
...ze,
|
|
12048
12048
|
// Supply these even if undefined. This helps with a field existence
|
|
12049
12049
|
// check over in `buildSlice.ts`
|
|
@@ -12051,7 +12051,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
12051
12051
|
initialPageParam: rt
|
|
12052
12052
|
});
|
|
12053
12053
|
}
|
|
12054
|
-
const Oe = l.endpoints[Q].select(te), Le = $e(
|
|
12054
|
+
const Oe = l.endpoints[Q].select(te), Le = $e(je), qe = Oe(Ne());
|
|
12055
12055
|
M($e);
|
|
12056
12056
|
const {
|
|
12057
12057
|
requestId: Ge,
|
|
@@ -12136,7 +12136,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
12136
12136
|
data: Le
|
|
12137
12137
|
})), (Le) => ({
|
|
12138
12138
|
error: Le
|
|
12139
|
-
})),
|
|
12139
|
+
})), je = () => {
|
|
12140
12140
|
ne(S({
|
|
12141
12141
|
requestId: Ae,
|
|
12142
12142
|
fixedCacheKey: te
|
|
@@ -12146,7 +12146,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
12146
12146
|
requestId: Ae,
|
|
12147
12147
|
abort: $e,
|
|
12148
12148
|
unwrap: Ne,
|
|
12149
|
-
reset:
|
|
12149
|
+
reset: je
|
|
12150
12150
|
}), Oe = g.get(ne) || {};
|
|
12151
12151
|
return g.set(ne, Oe), Oe[Ae] = ze, ze.then(() => {
|
|
12152
12152
|
delete Oe[Ae], countObjectKeys$1(Oe) || g.delete(ne);
|
|
@@ -12188,7 +12188,7 @@ function buildThunks({
|
|
|
12188
12188
|
catchSchemaFailure: b,
|
|
12189
12189
|
skipSchemaValidation: S
|
|
12190
12190
|
}) {
|
|
12191
|
-
const _ = (se, Ae, $e, Ne) => (Ve,
|
|
12191
|
+
const _ = (se, Ae, $e, Ne) => (Ve, je) => {
|
|
12192
12192
|
const ze = n[se], Oe = o({
|
|
12193
12193
|
queryArgs: Ae,
|
|
12194
12194
|
endpointDefinition: ze,
|
|
@@ -12201,7 +12201,7 @@ function buildThunks({
|
|
|
12201
12201
|
return;
|
|
12202
12202
|
const Le = l.endpoints[se].select(Ae)(
|
|
12203
12203
|
// Work around TS 4.1 mismatch
|
|
12204
|
-
|
|
12204
|
+
je()
|
|
12205
12205
|
), qe = calculateProvidedBy(ze.providesTags, Le.data, void 0, Ae, {}, d);
|
|
12206
12206
|
Ve(l.internalActions.updateProvidedBy([{
|
|
12207
12207
|
queryCacheKey: Oe,
|
|
@@ -12216,10 +12216,10 @@ function buildThunks({
|
|
|
12216
12216
|
const Ne = [...se, Ae];
|
|
12217
12217
|
return $e && Ne.length > $e ? Ne.slice(1) : Ne;
|
|
12218
12218
|
}
|
|
12219
|
-
const R = (se, Ae, $e, Ne = !0) => (Ve,
|
|
12219
|
+
const R = (se, Ae, $e, Ne = !0) => (Ve, je) => {
|
|
12220
12220
|
const Oe = l.endpoints[se].select(Ae)(
|
|
12221
12221
|
// Work around TS 4.1 mismatch
|
|
12222
|
-
|
|
12222
|
+
je()
|
|
12223
12223
|
), Le = {
|
|
12224
12224
|
patches: [],
|
|
12225
12225
|
inversePatches: [],
|
|
@@ -12254,7 +12254,7 @@ function buildThunks({
|
|
|
12254
12254
|
abort: $e,
|
|
12255
12255
|
rejectWithValue: Ne,
|
|
12256
12256
|
fulfillWithValue: Ve,
|
|
12257
|
-
dispatch:
|
|
12257
|
+
dispatch: je,
|
|
12258
12258
|
getState: ze,
|
|
12259
12259
|
extra: Oe
|
|
12260
12260
|
}) => {
|
|
@@ -12268,7 +12268,7 @@ function buildThunks({
|
|
|
12268
12268
|
const Ye = {
|
|
12269
12269
|
signal: Ae,
|
|
12270
12270
|
abort: $e,
|
|
12271
|
-
dispatch:
|
|
12271
|
+
dispatch: je,
|
|
12272
12272
|
getState: ze,
|
|
12273
12273
|
extra: Oe,
|
|
12274
12274
|
endpoint: se.endpointName,
|
|
@@ -12421,8 +12421,8 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
12421
12421
|
}
|
|
12422
12422
|
};
|
|
12423
12423
|
function O(se, Ae) {
|
|
12424
|
-
const $e = f.selectQueryEntry(Ae, se.queryCacheKey), Ne = f.selectConfig(Ae).refetchOnMountOrArgChange, Ve = $e == null ? void 0 : $e.fulfilledTimeStamp,
|
|
12425
|
-
return
|
|
12424
|
+
const $e = f.selectQueryEntry(Ae, se.queryCacheKey), Ne = f.selectConfig(Ae).refetchOnMountOrArgChange, Ve = $e == null ? void 0 : $e.fulfilledTimeStamp, je = se.forceRefetch ?? (se.subscribe && Ne);
|
|
12425
|
+
return je ? je === !0 || (Number(/* @__PURE__ */ new Date()) - Number(Ve)) / 1e3 >= je : !1;
|
|
12426
12426
|
}
|
|
12427
12427
|
const q = () => createAsyncThunk(`${t}/executeQuery`, I, {
|
|
12428
12428
|
getPendingMeta({
|
|
@@ -12440,13 +12440,13 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
12440
12440
|
getState: $e
|
|
12441
12441
|
}) {
|
|
12442
12442
|
var Ge;
|
|
12443
|
-
const Ne = $e(), Ve = f.selectQueryEntry(Ne, Ae.queryCacheKey),
|
|
12443
|
+
const Ne = $e(), Ve = f.selectQueryEntry(Ne, Ae.queryCacheKey), je = Ve == null ? void 0 : Ve.fulfilledTimeStamp, ze = Ae.originalArgs, Oe = Ve == null ? void 0 : Ve.originalArgs, Le = n[Ae.endpointName], qe = Ae.direction;
|
|
12444
12444
|
return isUpsertQuery(Ae) ? !0 : (Ve == null ? void 0 : Ve.status) === "pending" ? !1 : O(Ae, Ne) || isQueryDefinition$1(Le) && ((Ge = Le == null ? void 0 : Le.forceRefetch) != null && Ge.call(Le, {
|
|
12445
12445
|
currentArg: ze,
|
|
12446
12446
|
previousArg: Oe,
|
|
12447
12447
|
endpointState: Ve,
|
|
12448
12448
|
state: Ne
|
|
12449
|
-
})) ? !0 : !(
|
|
12449
|
+
})) ? !0 : !(je && !qe);
|
|
12450
12450
|
},
|
|
12451
12451
|
dispatchConditionRejection: !0
|
|
12452
12452
|
}), z = q(), Q = q(), j = createAsyncThunk(`${t}/executeMutation`, I, {
|
|
@@ -12456,14 +12456,14 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
12456
12456
|
});
|
|
12457
12457
|
}
|
|
12458
12458
|
}), F = (se) => "force" in se, te = (se) => "ifOlderThan" in se, ne = (se, Ae, $e) => (Ne, Ve) => {
|
|
12459
|
-
const
|
|
12459
|
+
const je = F($e) && $e.force, ze = te($e) && $e.ifOlderThan, Oe = (qe = !0) => {
|
|
12460
12460
|
const Ge = {
|
|
12461
12461
|
forceRefetch: qe,
|
|
12462
12462
|
isPrefetch: !0
|
|
12463
12463
|
};
|
|
12464
12464
|
return l.endpoints[se].initiate(Ae, Ge);
|
|
12465
12465
|
}, Le = l.endpoints[se].select(Ae)(Ve());
|
|
12466
|
-
if (
|
|
12466
|
+
if (je)
|
|
12467
12467
|
Ne(Oe());
|
|
12468
12468
|
else if (ze) {
|
|
12469
12469
|
const qe = Le == null ? void 0 : Le.fulfilledTimeStamp;
|
|
@@ -12570,12 +12570,12 @@ function buildSlice({
|
|
|
12570
12570
|
if ($e.data !== void 0) {
|
|
12571
12571
|
const {
|
|
12572
12572
|
fulfilledTimeStamp: Ve,
|
|
12573
|
-
arg:
|
|
12573
|
+
arg: je,
|
|
12574
12574
|
baseQueryMeta: ze,
|
|
12575
12575
|
requestId: Oe
|
|
12576
12576
|
} = ge;
|
|
12577
12577
|
let Le = produce($e.data, (qe) => Ne(qe, se, {
|
|
12578
|
-
arg:
|
|
12578
|
+
arg: je.originalArgs,
|
|
12579
12579
|
baseQueryMeta: ze,
|
|
12580
12580
|
fulfilledTimeStamp: Ve,
|
|
12581
12581
|
requestId: Oe
|
|
@@ -12633,7 +12633,7 @@ function buildSlice({
|
|
|
12633
12633
|
endpointName: $e,
|
|
12634
12634
|
arg: Ne,
|
|
12635
12635
|
value: Ve
|
|
12636
|
-
} = Ae,
|
|
12636
|
+
} = Ae, je = l[$e];
|
|
12637
12637
|
return {
|
|
12638
12638
|
queryDescription: {
|
|
12639
12639
|
type: "query",
|
|
@@ -12641,7 +12641,7 @@ function buildSlice({
|
|
|
12641
12641
|
originalArgs: Ae.arg,
|
|
12642
12642
|
queryCacheKey: o({
|
|
12643
12643
|
queryArgs: Ne,
|
|
12644
|
-
endpointDefinition:
|
|
12644
|
+
endpointDefinition: je,
|
|
12645
12645
|
endpointName: $e
|
|
12646
12646
|
})
|
|
12647
12647
|
},
|
|
@@ -12693,10 +12693,10 @@ function buildSlice({
|
|
|
12693
12693
|
error: Ne,
|
|
12694
12694
|
payload: Ve
|
|
12695
12695
|
}) => {
|
|
12696
|
-
updateQuerySubstateIfExists(ge, Ae.queryCacheKey, (
|
|
12696
|
+
updateQuerySubstateIfExists(ge, Ae.queryCacheKey, (je) => {
|
|
12697
12697
|
if (!se) {
|
|
12698
|
-
if (
|
|
12699
|
-
|
|
12698
|
+
if (je.requestId !== $e) return;
|
|
12699
|
+
je.status = "rejected", je.error = Ve ?? Ne;
|
|
12700
12700
|
}
|
|
12701
12701
|
});
|
|
12702
12702
|
}).addMatcher(g, (ge, se) => {
|
|
@@ -12778,10 +12778,10 @@ function buildSlice({
|
|
|
12778
12778
|
} of ge.payload) {
|
|
12779
12779
|
O(oe, Ne);
|
|
12780
12780
|
for (const {
|
|
12781
|
-
type:
|
|
12781
|
+
type: je,
|
|
12782
12782
|
id: ze
|
|
12783
12783
|
} of Ve) {
|
|
12784
|
-
const Oe = (Ae = (se = oe.tags)[
|
|
12784
|
+
const Oe = (Ae = (se = oe.tags)[je] ?? (se[je] = {}))[$e = ze || "__internal_without_id"] ?? (Ae[$e] = []);
|
|
12785
12785
|
Oe.includes(Ne) || Oe.push(Ne);
|
|
12786
12786
|
}
|
|
12787
12787
|
oe.keys[Ne] = Ve;
|
|
@@ -12802,9 +12802,9 @@ function buildSlice({
|
|
|
12802
12802
|
const {
|
|
12803
12803
|
provided: Ae
|
|
12804
12804
|
} = f(se);
|
|
12805
|
-
for (const [
|
|
12805
|
+
for (const [je, ze] of Object.entries(Ae))
|
|
12806
12806
|
for (const [Oe, Le] of Object.entries(ze)) {
|
|
12807
|
-
const qe = (Ne = ($e = ge.tags)[
|
|
12807
|
+
const qe = (Ne = ($e = ge.tags)[je] ?? ($e[je] = {}))[Ve = Oe || "__internal_without_id"] ?? (Ne[Ve] = []);
|
|
12808
12808
|
for (const Ge of Le)
|
|
12809
12809
|
qe.includes(Ge) || qe.push(Ge);
|
|
12810
12810
|
}
|
|
@@ -12831,8 +12831,8 @@ function buildSlice({
|
|
|
12831
12831
|
var Ae;
|
|
12832
12832
|
const se = oe.keys[ge] ?? [];
|
|
12833
12833
|
for (const $e of se) {
|
|
12834
|
-
const Ne = $e.type, Ve = $e.id ?? "__internal_without_id",
|
|
12835
|
-
|
|
12834
|
+
const Ne = $e.type, Ve = $e.id ?? "__internal_without_id", je = (Ae = oe.tags[Ne]) == null ? void 0 : Ae[Ve];
|
|
12835
|
+
je && (oe.tags[Ne][Ve] = je.filter((ze) => ze !== ge));
|
|
12836
12836
|
}
|
|
12837
12837
|
delete oe.keys[ge];
|
|
12838
12838
|
}
|
|
@@ -13409,7 +13409,7 @@ var THIRTY_TWO_BIT_MAX_TIMER_SECONDS = 2147483647 / 1e3 - 1, buildCacheCollectio
|
|
|
13409
13409
|
})]);
|
|
13410
13410
|
ge.catch(() => {
|
|
13411
13411
|
}), C[z] = ne;
|
|
13412
|
-
const se = t.endpoints[O].select(isAnyQueryDefinition(F) ? q : z), Ae = Q.dispatch((Ve,
|
|
13412
|
+
const se = t.endpoints[O].select(isAnyQueryDefinition(F) ? q : z), Ae = Q.dispatch((Ve, je, ze) => ze), $e = {
|
|
13413
13413
|
...Q,
|
|
13414
13414
|
getCacheEntry: () => se(Q.getState()),
|
|
13415
13415
|
requestId: j,
|
|
@@ -13776,7 +13776,7 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
13776
13776
|
upsertQueryEntries: Ve.cacheEntriesUpserted
|
|
13777
13777
|
}), safeAssign$1(e.internalActions, Ve);
|
|
13778
13778
|
const {
|
|
13779
|
-
middleware:
|
|
13779
|
+
middleware: je,
|
|
13780
13780
|
actions: ze
|
|
13781
13781
|
} = buildMiddleware({
|
|
13782
13782
|
reducerPath: l,
|
|
@@ -13790,7 +13790,7 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
13790
13790
|
});
|
|
13791
13791
|
safeAssign$1(e.util, ze), safeAssign$1(e, {
|
|
13792
13792
|
reducer: Ne,
|
|
13793
|
-
middleware:
|
|
13793
|
+
middleware: je
|
|
13794
13794
|
});
|
|
13795
13795
|
const {
|
|
13796
13796
|
buildInitiateQuery: Oe,
|
|
@@ -14266,7 +14266,7 @@ function buildHooks({
|
|
|
14266
14266
|
You must add the middleware for RTK-Query to function correctly!`);
|
|
14267
14267
|
Ve.current = Ye;
|
|
14268
14268
|
}
|
|
14269
|
-
const
|
|
14269
|
+
const je = useStableQueryArgs(
|
|
14270
14270
|
oe ? skipToken : j,
|
|
14271
14271
|
// Even if the user provided a per-endpoint `serializeQueryArgs` with
|
|
14272
14272
|
// a consistent return value, _here_ we want to use the default behavior
|
|
@@ -14293,14 +14293,14 @@ function buildHooks({
|
|
|
14293
14293
|
}, [tt]), S(() => {
|
|
14294
14294
|
var Xe;
|
|
14295
14295
|
const Ye = qe.current;
|
|
14296
|
-
if (typeof process < "u" && process.env.NODE_ENV === "removeMeOnCompilation" && console.log(tt),
|
|
14296
|
+
if (typeof process < "u" && process.env.NODE_ENV === "removeMeOnCompilation" && console.log(tt), je === skipToken) {
|
|
14297
14297
|
Ye == null || Ye.unsubscribe(), qe.current = void 0;
|
|
14298
14298
|
return;
|
|
14299
14299
|
}
|
|
14300
14300
|
const Qe = (Xe = qe.current) == null ? void 0 : Xe.subscriptionOptions;
|
|
14301
|
-
if (!Ye || Ye.arg !==
|
|
14301
|
+
if (!Ye || Ye.arg !== je) {
|
|
14302
14302
|
Ye == null || Ye.unsubscribe();
|
|
14303
|
-
const ot = Ne($e(
|
|
14303
|
+
const ot = Ne($e(je, {
|
|
14304
14304
|
subscriptionOptions: ze,
|
|
14305
14305
|
forceRefetch: ne,
|
|
14306
14306
|
...isInfiniteQueryDefinition(b.endpointDefinitions[Q]) ? {
|
|
@@ -14309,7 +14309,7 @@ function buildHooks({
|
|
|
14309
14309
|
}));
|
|
14310
14310
|
qe.current = ot;
|
|
14311
14311
|
} else ze !== Qe && Ye.updateSubscriptionOptions(ze);
|
|
14312
|
-
}, [Ne, $e, ne,
|
|
14312
|
+
}, [Ne, $e, ne, je, ze, tt, Le, Q]), [qe, Ne, $e, ze];
|
|
14313
14313
|
}
|
|
14314
14314
|
function A(Q, j) {
|
|
14315
14315
|
return (te, {
|
|
@@ -14337,7 +14337,7 @@ function buildHooks({
|
|
|
14337
14337
|
devModeChecks: {
|
|
14338
14338
|
identityFunctionCheck: "never"
|
|
14339
14339
|
}
|
|
14340
|
-
}) : $e, [$e, oe]), Ve = o((Oe) => Ne(Oe, Ae.current), shallowEqual$1),
|
|
14340
|
+
}) : $e, [$e, oe]), Ve = o((Oe) => Ne(Oe, Ae.current), shallowEqual$1), je = l(), ze = $e(je.getState(), Ae.current);
|
|
14341
14341
|
return useIsomorphicLayoutEffect$2(() => {
|
|
14342
14342
|
Ae.current = ze;
|
|
14343
14343
|
}, [ze]), Ve;
|
|
@@ -14370,7 +14370,7 @@ function buildHooks({
|
|
|
14370
14370
|
} = {}) => {
|
|
14371
14371
|
const {
|
|
14372
14372
|
initiate: Ae
|
|
14373
|
-
} = t.endpoints[Q], $e = n(), [Ne, Ve] = useState(UNINITIALIZED_VALUE),
|
|
14373
|
+
} = t.endpoints[Q], $e = n(), [Ne, Ve] = useState(UNINITIALIZED_VALUE), je = useRef(void 0), ze = useShallowStableValue({
|
|
14374
14374
|
refetchOnReconnect: ne,
|
|
14375
14375
|
refetchOnFocus: oe,
|
|
14376
14376
|
pollingInterval: ge,
|
|
@@ -14378,8 +14378,8 @@ function buildHooks({
|
|
|
14378
14378
|
});
|
|
14379
14379
|
S(() => {
|
|
14380
14380
|
var He, Ze;
|
|
14381
|
-
const Ge = (He =
|
|
14382
|
-
ze !== Ge && ((Ze =
|
|
14381
|
+
const Ge = (He = je.current) == null ? void 0 : He.subscriptionOptions;
|
|
14382
|
+
ze !== Ge && ((Ze = je.current) == null || Ze.updateSubscriptionOptions(ze));
|
|
14383
14383
|
}, [ze]);
|
|
14384
14384
|
const Oe = useRef(ze);
|
|
14385
14385
|
S(() => {
|
|
@@ -14389,22 +14389,22 @@ function buildHooks({
|
|
|
14389
14389
|
let Ze;
|
|
14390
14390
|
return e(() => {
|
|
14391
14391
|
var tt;
|
|
14392
|
-
(tt =
|
|
14392
|
+
(tt = je.current) == null || tt.unsubscribe(), je.current = Ze = $e(Ae(Ge, {
|
|
14393
14393
|
subscriptionOptions: Oe.current,
|
|
14394
14394
|
forceRefetch: !He
|
|
14395
14395
|
})), Ve(Ge);
|
|
14396
14396
|
}), Ze;
|
|
14397
14397
|
}, [$e, Ae]), qe = useCallback(() => {
|
|
14398
14398
|
var Ge, He;
|
|
14399
|
-
(Ge =
|
|
14400
|
-
queryCacheKey: (He =
|
|
14399
|
+
(Ge = je.current) != null && Ge.queryCacheKey && $e(t.internalActions.removeQueryResult({
|
|
14400
|
+
queryCacheKey: (He = je.current) == null ? void 0 : He.queryCacheKey
|
|
14401
14401
|
}));
|
|
14402
14402
|
}, [$e]);
|
|
14403
14403
|
return useEffect(() => () => {
|
|
14404
14404
|
var Ge;
|
|
14405
|
-
(Ge =
|
|
14405
|
+
(Ge = je == null ? void 0 : je.current) == null || Ge.unsubscribe();
|
|
14406
14406
|
}, []), useEffect(() => {
|
|
14407
|
-
Ne !== UNINITIALIZED_VALUE && !
|
|
14407
|
+
Ne !== UNINITIALIZED_VALUE && !je.current && Le(Ne, !0);
|
|
14408
14408
|
}, [Ne, Le]), useMemo(() => [Le, Ne, {
|
|
14409
14409
|
reset: qe
|
|
14410
14410
|
}], [Le, Ne, qe]);
|
|
@@ -14466,16 +14466,16 @@ function buildHooks({
|
|
|
14466
14466
|
defaultSerializeQueryArgs,
|
|
14467
14467
|
b.endpointDefinitions[Q],
|
|
14468
14468
|
Q
|
|
14469
|
-
),
|
|
14469
|
+
), je = useCallback(() => I(oe), [oe]);
|
|
14470
14470
|
return useMemo(() => ({
|
|
14471
14471
|
trigger: Ne,
|
|
14472
14472
|
/**
|
|
14473
14473
|
* A method to manually refetch data for the query
|
|
14474
14474
|
*/
|
|
14475
|
-
refetch:
|
|
14475
|
+
refetch: je,
|
|
14476
14476
|
fetchNextPage: () => Ne(Ve, "forward"),
|
|
14477
14477
|
fetchPreviousPage: () => Ne(Ve, "backward")
|
|
14478
|
-
}), [
|
|
14478
|
+
}), [je, Ne, Ve]);
|
|
14479
14479
|
}, F = A(Q, C);
|
|
14480
14480
|
return {
|
|
14481
14481
|
useInfiniteQueryState: F,
|
|
@@ -14520,20 +14520,20 @@ function buildHooks({
|
|
|
14520
14520
|
} = ge || {}, Ne = useMemo(() => te({
|
|
14521
14521
|
fixedCacheKey: F,
|
|
14522
14522
|
requestId: ge == null ? void 0 : ge.requestId
|
|
14523
|
-
}), [F, ge, te]), Ve = useMemo(() => j ? f([Ne], j) : Ne, [j, Ne]),
|
|
14523
|
+
}), [F, ge, te]), Ve = useMemo(() => j ? f([Ne], j) : Ne, [j, Ne]), je = o(Ve, shallowEqual$1), ze = F == null ? ge == null ? void 0 : ge.arg.originalArgs : void 0, Oe = useCallback(() => {
|
|
14524
14524
|
e(() => {
|
|
14525
14525
|
ge && se(void 0), F && oe(t.internalActions.removeMutationResult({
|
|
14526
14526
|
requestId: $e,
|
|
14527
14527
|
fixedCacheKey: F
|
|
14528
14528
|
}));
|
|
14529
14529
|
});
|
|
14530
|
-
}, [oe, F, ge, $e]), Le = pick(
|
|
14530
|
+
}, [oe, F, ge, $e]), Le = pick(je, ...COMMON_HOOK_DEBUG_FIELDS, "endpointName");
|
|
14531
14531
|
useDebugValue(Le);
|
|
14532
14532
|
const qe = useMemo(() => ({
|
|
14533
|
-
...
|
|
14533
|
+
...je,
|
|
14534
14534
|
originalArgs: ze,
|
|
14535
14535
|
reset: Oe
|
|
14536
|
-
}), [
|
|
14536
|
+
}), [je, ze, Oe]);
|
|
14537
14537
|
return useMemo(() => [Ae, qe], [Ae, qe]);
|
|
14538
14538
|
};
|
|
14539
14539
|
}
|
|
@@ -15566,6 +15566,15 @@ const emptySplitApi = createApi({
|
|
|
15566
15566
|
method: "DELETE"
|
|
15567
15567
|
})
|
|
15568
15568
|
}),
|
|
15569
|
+
postV4ManufacturerByRouteManufacturerIdOpportunityAndBidNumberResellerResellerIdEmail: t.mutation({
|
|
15570
|
+
query: (e) => ({
|
|
15571
|
+
url: `/V4/Manufacturer/${e.routeManufacturerId}/Opportunity/${e.bidNumber}/Reseller/${e.resellerId}/Email`,
|
|
15572
|
+
method: "POST",
|
|
15573
|
+
params: {
|
|
15574
|
+
emailAddress: e.emailAddress
|
|
15575
|
+
}
|
|
15576
|
+
})
|
|
15577
|
+
}),
|
|
15569
15578
|
postV4ManufacturerByRouteManufacturerIdOpportunityAndBidNumberPartNumberRandmarSku: t.mutation({
|
|
15570
15579
|
query: (e) => ({
|
|
15571
15580
|
url: `/V4/Manufacturer/${e.routeManufacturerId}/Opportunity/${e.bidNumber}/PartNumber/${e.randmarSku}`,
|
|
@@ -16908,7 +16917,7 @@ const emptySplitApi = createApi({
|
|
|
16908
16917
|
})
|
|
16909
16918
|
}),
|
|
16910
16919
|
overrideExisting: !1
|
|
16911
|
-
}), { useGetV4PartnerByApplicationIdAccountQuery, useLazyGetV4PartnerByApplicationIdAccountQuery, useGetV4PartnerByApplicationIdAccountLogoExistsQuery, useGetV4PartnerByApplicationIdAccountManufacturerQuery, useGetV4PartnerByApplicationIdAccountResellerQuery, usePostV4PartnerByApplicationIdAccountDebugFeedbackMutation, usePostV4PartnerByApplicationIdAccountManufacturerAndFieldNameMutation, usePostV4PartnerByApplicationIdAccountResellerAndFieldNameMutation, usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation, useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationsQuery, useLazyGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdMessagesQuery, useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationsHasUnreadsQuery, usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdReadMutation, useLazyGetV4ResellerByRouteResellerIdDocumentAndDocumentNumberPdfQuery, usePostV4ResellerByRouteResellerIdDocumentStatementEmailMutation, useGetV4ManufacturerByRouteManufacturerIdDocumentsActiveOrderDetailsQuery, useGetV4ManufacturerByRouteManufacturerIdInventoryValueQuery, usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdShopifyMutation, useGetV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeQuery, usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeShopifyMutation, useGetV4PartnerByRouteApplicationIdManufacturersQuery, usePostV4ResellerByRouteResellerIdOpportunityAndManufacturerIdBidNumberEmailMutation, usePutV4ResellerByRouteResellerIdOpportunityAndManufacturerIdDefaultMutation, useGetV4PartnerByRouteApplicationIdPartnerAndPartnerIdQuery, usePostV4ResellerByRouteResellerIdProductAndRandmarSkuShopifyMutation, usePutV4ResellerByRouteResellerIdProductAndRandmarSkuRequisitionMutation, useGetV4PartnerByRouteApplicationIdProductAndRandmarSkuQuery, usePostV4ResellerByRouteResellerIdReportProductsEmailMutation, usePostV4ResellerByRouteResellerIdReportInvoicesEmailMutation, usePostV4ResellerByRouteResellerIdReportOpenOrdersEmailMutation, usePostV4ResellerByRouteResellerIdReportAmazonTrackingFileEmailMutation, usePostV4ResellerByRouteResellerIdReportWalmartTrackingFileEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportReorderEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportSalesEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportInventoryEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportOpenOrdersEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportProductsEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportPurchasedOrdersEmailMutation } = injectedRtkApi;
|
|
16920
|
+
}), { useGetV4PartnerByApplicationIdAccountQuery, useLazyGetV4PartnerByApplicationIdAccountQuery, useGetV4PartnerByApplicationIdAccountLogoQuery, useGetV4PartnerByApplicationIdAccountLogoExistsQuery, useGetV4PartnerByApplicationIdAccountManufacturerQuery, useGetV4PartnerByApplicationIdAccountResellerQuery, usePostV4PartnerByApplicationIdAccountDebugFeedbackMutation, usePostV4PartnerByApplicationIdAccountManufacturerAndFieldNameMutation, usePostV4PartnerByApplicationIdAccountResellerAndFieldNameMutation, usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation, useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationsQuery, useLazyGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdMessagesQuery, useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationsHasUnreadsQuery, usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationAndConversationIdReadMutation, useLazyGetV4ResellerByRouteResellerIdDocumentAndDocumentNumberPdfQuery, usePostV4ResellerByRouteResellerIdDocumentStatementEmailMutation, useGetV4ManufacturerByRouteManufacturerIdDocumentsActiveOrderDetailsQuery, useGetV4ManufacturerByRouteManufacturerIdInventoryValueQuery, usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdShopifyMutation, useGetV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeQuery, usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeShopifyMutation, useGetV4PartnerByRouteApplicationIdManufacturersQuery, usePostV4ResellerByRouteResellerIdOpportunityAndManufacturerIdBidNumberEmailMutation, usePutV4ResellerByRouteResellerIdOpportunityAndManufacturerIdDefaultMutation, useGetV4PartnerByRouteApplicationIdPartnerAndPartnerIdQuery, usePostV4ResellerByRouteResellerIdProductAndRandmarSkuShopifyMutation, usePutV4ResellerByRouteResellerIdProductAndRandmarSkuRequisitionMutation, useGetV4PartnerByRouteApplicationIdProductAndRandmarSkuQuery, usePostV4ResellerByRouteResellerIdReportProductsEmailMutation, usePostV4ResellerByRouteResellerIdReportInvoicesEmailMutation, usePostV4ResellerByRouteResellerIdReportOpenOrdersEmailMutation, usePostV4ResellerByRouteResellerIdReportAmazonTrackingFileEmailMutation, usePostV4ResellerByRouteResellerIdReportWalmartTrackingFileEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportReorderEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportSalesEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportInventoryEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportOpenOrdersEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportProductsEmailMutation, usePostV4ManufacturerByRouteManufacturerIdReportPurchasedOrdersEmailMutation } = injectedRtkApi;
|
|
16912
16921
|
injectedRtkApi.enhanceEndpoints({
|
|
16913
16922
|
addTagTypes: ["Cart", "Conversation", "Account", "Unread", "Warehouse", "WarehouseList", "Users", "Integration", "Shopify", "Logs", "Manufacturer"],
|
|
16914
16923
|
endpoints: {
|
|
@@ -17234,6 +17243,46 @@ injectedRtkApi.enhanceEndpoints({
|
|
|
17234
17243
|
return !0;
|
|
17235
17244
|
},
|
|
17236
17245
|
invalidatesTags: ["Manufacturer"]
|
|
17246
|
+
},
|
|
17247
|
+
getV4ResellerByRouteResellerIdDocumentAndDocumentNumberPdf: {
|
|
17248
|
+
query: (t) => ({
|
|
17249
|
+
url: `/V4/Reseller/${t.routeResellerId}/Document/${t.documentNumber}/PDF`,
|
|
17250
|
+
method: "GET",
|
|
17251
|
+
responseHandler: (e) => e.blob()
|
|
17252
|
+
}),
|
|
17253
|
+
transformResponse: (t) => window.URL.createObjectURL(t)
|
|
17254
|
+
},
|
|
17255
|
+
getV4PartnerByApplicationIdAccountLogo: {
|
|
17256
|
+
query: (t) => ({
|
|
17257
|
+
url: `/V4/Partner/${t.applicationId}/Account/Logo?width=${t.width}&height=${t.height}&align=${t.align}`,
|
|
17258
|
+
method: "GET",
|
|
17259
|
+
responseHandler: (e) => e.blob()
|
|
17260
|
+
}),
|
|
17261
|
+
transformResponse: (t) => window.URL.createObjectURL(t)
|
|
17262
|
+
},
|
|
17263
|
+
getV4PartnerByApplicationIdAccountVideo: {
|
|
17264
|
+
query: (t) => ({
|
|
17265
|
+
url: `/V4/Partner/${t.applicationId}/Video`,
|
|
17266
|
+
method: "GET",
|
|
17267
|
+
responseHandler: (e) => e.blob()
|
|
17268
|
+
}),
|
|
17269
|
+
transformResponse: (t) => window.URL.createObjectURL(t)
|
|
17270
|
+
},
|
|
17271
|
+
getProductByRandmarSkuImage: {
|
|
17272
|
+
query: (t) => ({
|
|
17273
|
+
url: `/Product/${t.randmarSku}/Image?width=${t.width}&height=${t.height}`,
|
|
17274
|
+
method: "GET",
|
|
17275
|
+
responseHandler: (e) => e.blob()
|
|
17276
|
+
}),
|
|
17277
|
+
transformResponse: (t) => window.URL.createObjectURL(t)
|
|
17278
|
+
},
|
|
17279
|
+
getProductByProductNumberVideo: {
|
|
17280
|
+
query: (t) => ({
|
|
17281
|
+
url: `/Product/${t.productNumber}/Video`,
|
|
17282
|
+
method: "GET",
|
|
17283
|
+
responseHandler: (e) => e.blob()
|
|
17284
|
+
}),
|
|
17285
|
+
transformResponse: (t) => window.URL.createObjectURL(t)
|
|
17237
17286
|
}
|
|
17238
17287
|
}
|
|
17239
17288
|
});
|
|
@@ -18178,7 +18227,7 @@ function requireReactIs_development$2() {
|
|
|
18178
18227
|
}
|
|
18179
18228
|
}
|
|
18180
18229
|
}
|
|
18181
|
-
var F = f, te = d, ne = t, oe = b, ge = n, se = E, Ae = C, $e = e, Ne = l, Ve = o,
|
|
18230
|
+
var F = f, te = d, ne = t, oe = b, ge = n, se = E, Ae = C, $e = e, Ne = l, Ve = o, je = S, ze = _, Oe = !1, Le = !1;
|
|
18182
18231
|
function qe(Je) {
|
|
18183
18232
|
return Oe || (Oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
18184
18233
|
}
|
|
@@ -18221,7 +18270,7 @@ function requireReactIs_development$2() {
|
|
|
18221
18270
|
function Rt(Je) {
|
|
18222
18271
|
return j(Je) === _;
|
|
18223
18272
|
}
|
|
18224
|
-
reactIs_development$2.ContextConsumer = F, reactIs_development$2.ContextProvider = te, reactIs_development$2.Element = ne, reactIs_development$2.ForwardRef = oe, reactIs_development$2.Fragment = ge, reactIs_development$2.Lazy = se, reactIs_development$2.Memo = Ae, reactIs_development$2.Portal = $e, reactIs_development$2.Profiler = Ne, reactIs_development$2.StrictMode = Ve, reactIs_development$2.Suspense =
|
|
18273
|
+
reactIs_development$2.ContextConsumer = F, reactIs_development$2.ContextProvider = te, reactIs_development$2.Element = ne, reactIs_development$2.ForwardRef = oe, reactIs_development$2.Fragment = ge, reactIs_development$2.Lazy = se, reactIs_development$2.Memo = Ae, reactIs_development$2.Portal = $e, reactIs_development$2.Profiler = Ne, reactIs_development$2.StrictMode = Ve, reactIs_development$2.Suspense = je, reactIs_development$2.SuspenseList = ze, reactIs_development$2.isAsyncMode = qe, reactIs_development$2.isConcurrentMode = Ge, reactIs_development$2.isContextConsumer = He, reactIs_development$2.isContextProvider = Ze, reactIs_development$2.isElement = tt, reactIs_development$2.isForwardRef = Ye, reactIs_development$2.isFragment = Qe, reactIs_development$2.isLazy = Xe, reactIs_development$2.isMemo = ot, reactIs_development$2.isPortal = rt, reactIs_development$2.isProfiler = at, reactIs_development$2.isStrictMode = st, reactIs_development$2.isSuspense = Ue, reactIs_development$2.isSuspenseList = Rt, reactIs_development$2.isValidElementType = Q, reactIs_development$2.typeOf = j;
|
|
18225
18274
|
}()), reactIs_development$2;
|
|
18226
18275
|
}
|
|
18227
18276
|
var hasRequiredReactIs$2;
|
|
@@ -20258,8 +20307,8 @@ function require_equalByTag() {
|
|
|
20258
20307
|
if (Ve)
|
|
20259
20308
|
return Ve == te;
|
|
20260
20309
|
oe |= g, Ae.set(F, te);
|
|
20261
|
-
var
|
|
20262
|
-
return Ae.delete(F),
|
|
20310
|
+
var je = o($e(F), $e(te), oe, ge, se, Ae);
|
|
20311
|
+
return Ae.delete(F), je;
|
|
20263
20312
|
case I:
|
|
20264
20313
|
if (Q)
|
|
20265
20314
|
return Q.call(F) == Q.call(te);
|
|
@@ -21621,7 +21670,7 @@ var DefaultTooltipContent = function(e) {
|
|
|
21621
21670
|
}, $e = (E ? sortBy(_, E) : _).map(function(Ne, Ve) {
|
|
21622
21671
|
if (Ne.type === "none")
|
|
21623
21672
|
return null;
|
|
21624
|
-
var
|
|
21673
|
+
var je = _objectSpread$w({
|
|
21625
21674
|
display: "block",
|
|
21626
21675
|
paddingTop: 4,
|
|
21627
21676
|
paddingBottom: 4,
|
|
@@ -21640,7 +21689,7 @@ var DefaultTooltipContent = function(e) {
|
|
|
21640
21689
|
/* @__PURE__ */ React__default.createElement("li", {
|
|
21641
21690
|
className: "recharts-tooltip-item",
|
|
21642
21691
|
key: "tooltip-item-".concat(Ve),
|
|
21643
|
-
style:
|
|
21692
|
+
style: je
|
|
21644
21693
|
}, isNumOrStr(Ge) ? /* @__PURE__ */ React__default.createElement("span", {
|
|
21645
21694
|
className: "recharts-tooltip-item-name"
|
|
21646
21695
|
}, Ge) : null, isNumOrStr(Ge) ? /* @__PURE__ */ React__default.createElement("span", {
|
|
@@ -22213,8 +22262,8 @@ function requireDebounce() {
|
|
|
22213
22262
|
return I = $e, A = setTimeout(ne, b), O ? Q($e) : R;
|
|
22214
22263
|
}
|
|
22215
22264
|
function F($e) {
|
|
22216
|
-
var Ne = $e - M, Ve = $e - I,
|
|
22217
|
-
return q ? d(
|
|
22265
|
+
var Ne = $e - M, Ve = $e - I, je = b - Ne;
|
|
22266
|
+
return q ? d(je, E - Ve) : je;
|
|
22218
22267
|
}
|
|
22219
22268
|
function te($e) {
|
|
22220
22269
|
var Ne = $e - M, Ve = $e - I;
|
|
@@ -22373,9 +22422,9 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
|
|
|
22373
22422
|
containerHeight: l.height
|
|
22374
22423
|
}), ne = _slicedToArray$a(te, 2), oe = ne[0], ge = ne[1], se = useCallback(function($e, Ne) {
|
|
22375
22424
|
ge(function(Ve) {
|
|
22376
|
-
var
|
|
22377
|
-
return Ve.containerWidth ===
|
|
22378
|
-
containerWidth:
|
|
22425
|
+
var je = Math.round($e), ze = Math.round(Ne);
|
|
22426
|
+
return Ve.containerWidth === je && Ve.containerHeight === ze ? Ve : {
|
|
22427
|
+
containerWidth: je,
|
|
22379
22428
|
containerHeight: ze
|
|
22380
22429
|
};
|
|
22381
22430
|
});
|
|
@@ -22389,8 +22438,8 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
|
|
|
22389
22438
|
trailing: !0,
|
|
22390
22439
|
leading: !1
|
|
22391
22440
|
}));
|
|
22392
|
-
var Ne = new ResizeObserver($e), Ve = j.current.getBoundingClientRect(),
|
|
22393
|
-
return se(
|
|
22441
|
+
var Ne = new ResizeObserver($e), Ve = j.current.getBoundingClientRect(), je = Ve.width, ze = Ve.height;
|
|
22442
|
+
return se(je, ze), Ne.observe(j.current), function() {
|
|
22394
22443
|
Ne.disconnect();
|
|
22395
22444
|
};
|
|
22396
22445
|
}, [se, M]);
|
|
@@ -22400,21 +22449,21 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
|
|
|
22400
22449
|
return null;
|
|
22401
22450
|
warn$1(isPercent(f) || isPercent(b), `The width(%s) and height(%s) are both fixed numbers,
|
|
22402
22451
|
maybe you don't need to use a ResponsiveContainer.`, f, b), warn$1(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
|
|
22403
|
-
var Ve = isPercent(f) ? $e : f,
|
|
22404
|
-
n && n > 0 && (Ve ?
|
|
22452
|
+
var Ve = isPercent(f) ? $e : f, je = isPercent(b) ? Ne : b;
|
|
22453
|
+
n && n > 0 && (Ve ? je = Ve / n : je && (Ve = je * n), E && je > E && (je = E)), warn$1(Ve > 0 || je > 0, `The width(%s) and height(%s) of chart should be greater than 0,
|
|
22405
22454
|
please check the style of container, or the props width(%s) and height(%s),
|
|
22406
22455
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
22407
|
-
height and width.`, Ve,
|
|
22456
|
+
height and width.`, Ve, je, f, b, _, C, n);
|
|
22408
22457
|
var ze = !Array.isArray(R) && getDisplayName(R.type).endsWith("Chart");
|
|
22409
22458
|
return React__default.Children.map(R, function(Oe) {
|
|
22410
22459
|
return /* @__PURE__ */ React__default.isValidElement(Oe) ? /* @__PURE__ */ cloneElement(Oe, _objectSpread$t({
|
|
22411
22460
|
width: Ve,
|
|
22412
|
-
height:
|
|
22461
|
+
height: je
|
|
22413
22462
|
}, ze ? {
|
|
22414
22463
|
style: _objectSpread$t({
|
|
22415
22464
|
height: "100%",
|
|
22416
22465
|
width: "100%",
|
|
22417
|
-
maxHeight:
|
|
22466
|
+
maxHeight: je,
|
|
22418
22467
|
maxWidth: Ve
|
|
22419
22468
|
}, Oe.props.style)
|
|
22420
22469
|
} : {})) : Oe;
|
|
@@ -22804,8 +22853,8 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
22804
22853
|
}, calculateWordsByLines = function(e, n, o, l, d) {
|
|
22805
22854
|
var f = e.maxLines, g = e.children, b = e.style, S = e.breakAll, _ = isNumber$2(f), C = g, E = function() {
|
|
22806
22855
|
var Ve = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
22807
|
-
return Ve.reduce(function(
|
|
22808
|
-
var Oe = ze.word, Le = ze.width, qe =
|
|
22856
|
+
return Ve.reduce(function(je, ze) {
|
|
22857
|
+
var Oe = ze.word, Le = ze.width, qe = je[je.length - 1];
|
|
22809
22858
|
if (qe && (l == null || d || qe.width + Le + o < Number(l)))
|
|
22810
22859
|
qe.words.push(Oe), qe.width += Le + o;
|
|
22811
22860
|
else {
|
|
@@ -22813,22 +22862,22 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
22813
22862
|
words: [Oe],
|
|
22814
22863
|
width: Le
|
|
22815
22864
|
};
|
|
22816
|
-
|
|
22865
|
+
je.push(Ge);
|
|
22817
22866
|
}
|
|
22818
|
-
return
|
|
22867
|
+
return je;
|
|
22819
22868
|
}, []);
|
|
22820
22869
|
}, R = E(n), A = function(Ve) {
|
|
22821
|
-
return Ve.reduce(function(
|
|
22822
|
-
return
|
|
22870
|
+
return Ve.reduce(function(je, ze) {
|
|
22871
|
+
return je.width > ze.width ? je : ze;
|
|
22823
22872
|
});
|
|
22824
22873
|
};
|
|
22825
22874
|
if (!_)
|
|
22826
22875
|
return R;
|
|
22827
22876
|
for (var M = "…", I = function(Ve) {
|
|
22828
|
-
var
|
|
22877
|
+
var je = C.slice(0, Ve), ze = calculateWordWidths({
|
|
22829
22878
|
breakAll: S,
|
|
22830
22879
|
style: b,
|
|
22831
|
-
children:
|
|
22880
|
+
children: je + M
|
|
22832
22881
|
}).wordsWithComputedWidth, Oe = E(ze), Le = Oe.length > f || A(Oe).width > Number(l);
|
|
22833
22882
|
return [Le, Oe];
|
|
22834
22883
|
}, O = 0, q = C.length - 1, z = 0, Q; O <= q && z <= C.length - 1; ) {
|
|
@@ -22902,8 +22951,8 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
22902
22951
|
className: clsx("recharts-text", te),
|
|
22903
22952
|
textAnchor: R,
|
|
22904
22953
|
fill: O.includes("url") ? DEFAULT_FILL : O
|
|
22905
|
-
}), z.map(function(
|
|
22906
|
-
var Oe =
|
|
22954
|
+
}), z.map(function(je, ze) {
|
|
22955
|
+
var Oe = je.words.join(ne ? "" : " ");
|
|
22907
22956
|
return (
|
|
22908
22957
|
// duplicate words will cause duplicate keys
|
|
22909
22958
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -23773,7 +23822,7 @@ function formatLocale$1(t) {
|
|
|
23773
23822
|
var F = M === "$" ? n : M === "#" && /[boxX]/.test(j) ? "0" + j.toLowerCase() : "", te = M === "$" ? o : /[%p]/.test(j) ? f : "", ne = formatTypes[j], oe = /[defgprs%]/.test(j);
|
|
23774
23823
|
z = z === void 0 ? 6 : /[gprs]/.test(j) ? Math.max(1, Math.min(21, z)) : Math.max(0, Math.min(20, z));
|
|
23775
23824
|
function ge(se) {
|
|
23776
|
-
var Ae = F, $e = te, Ne, Ve,
|
|
23825
|
+
var Ae = F, $e = te, Ne, Ve, je;
|
|
23777
23826
|
if (j === "c")
|
|
23778
23827
|
$e = ne(se) + $e, se = "";
|
|
23779
23828
|
else {
|
|
@@ -23781,8 +23830,8 @@ function formatLocale$1(t) {
|
|
|
23781
23830
|
var ze = se < 0 || 1 / se < 0;
|
|
23782
23831
|
if (se = isNaN(se) ? b : ne(Math.abs(se), z), Q && (se = formatTrim(se)), ze && +se == 0 && A !== "+" && (ze = !1), Ae = (ze ? A === "(" ? A : g : A === "-" || A === "(" ? "" : A) + Ae, $e = (j === "s" ? prefixes[8 + prefixExponent / 3] : "") + $e + (ze && A === "(" ? ")" : ""), oe) {
|
|
23783
23832
|
for (Ne = -1, Ve = se.length; ++Ne < Ve; )
|
|
23784
|
-
if (
|
|
23785
|
-
$e = (
|
|
23833
|
+
if (je = se.charCodeAt(Ne), 48 > je || je > 57) {
|
|
23834
|
+
$e = (je === 46 ? l + se.slice(Ne + 1) : se.slice(Ne)) + $e, se = se.slice(0, Ne);
|
|
23786
23835
|
break;
|
|
23787
23836
|
}
|
|
23788
23837
|
}
|
|
@@ -24441,7 +24490,7 @@ function formatLocale(t) {
|
|
|
24441
24490
|
w: parseWeekdayNumberSunday,
|
|
24442
24491
|
W: parseWeekNumberMonday,
|
|
24443
24492
|
x: Ve,
|
|
24444
|
-
X:
|
|
24493
|
+
X: je,
|
|
24445
24494
|
y: parseYear,
|
|
24446
24495
|
Y: parseFullYear,
|
|
24447
24496
|
Z: parseZone,
|
|
@@ -24505,7 +24554,7 @@ function formatLocale(t) {
|
|
|
24505
24554
|
function Ve(rt, at, st) {
|
|
24506
24555
|
return ne(rt, n, at, st);
|
|
24507
24556
|
}
|
|
24508
|
-
function
|
|
24557
|
+
function je(rt, at, st) {
|
|
24509
24558
|
return ne(rt, o, at, st);
|
|
24510
24559
|
}
|
|
24511
24560
|
function ze(rt) {
|
|
@@ -25986,16 +26035,16 @@ var ErrorBar = /* @__PURE__ */ function(t) {
|
|
|
25986
26035
|
y2: Ae
|
|
25987
26036
|
});
|
|
25988
26037
|
} else if (d === "horizontal") {
|
|
25989
|
-
var Ve = C.scale,
|
|
26038
|
+
var Ve = C.scale, je = O + l, ze = je - f, Oe = je + f, Le = Ve(z - F), qe = Ve(z + te);
|
|
25990
26039
|
j.push({
|
|
25991
26040
|
x1: ze,
|
|
25992
26041
|
y1: qe,
|
|
25993
26042
|
x2: Oe,
|
|
25994
26043
|
y2: qe
|
|
25995
26044
|
}), j.push({
|
|
25996
|
-
x1:
|
|
26045
|
+
x1: je,
|
|
25997
26046
|
y1: Le,
|
|
25998
|
-
x2:
|
|
26047
|
+
x2: je,
|
|
25999
26048
|
y2: qe
|
|
26000
26049
|
}), j.push({
|
|
26001
26050
|
x1: ze,
|
|
@@ -27768,7 +27817,7 @@ function requireReactIs_development$1() {
|
|
|
27768
27817
|
}
|
|
27769
27818
|
}
|
|
27770
27819
|
}
|
|
27771
|
-
var j = b, F = S, te = g, ne = f, oe = e, ge = _, se = o, Ae = A, $e = R, Ne = n, Ve = d,
|
|
27820
|
+
var j = b, F = S, te = g, ne = f, oe = e, ge = _, se = o, Ae = A, $e = R, Ne = n, Ve = d, je = l, ze = C, Oe = !1;
|
|
27772
27821
|
function Le(Ue) {
|
|
27773
27822
|
return Oe || (Oe = !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.")), qe(Ue) || Q(Ue) === b;
|
|
27774
27823
|
}
|
|
@@ -27808,7 +27857,7 @@ function requireReactIs_development$1() {
|
|
|
27808
27857
|
function st(Ue) {
|
|
27809
27858
|
return Q(Ue) === C;
|
|
27810
27859
|
}
|
|
27811
|
-
reactIs_development$1.AsyncMode = j, reactIs_development$1.ConcurrentMode = F, reactIs_development$1.ContextConsumer = te, reactIs_development$1.ContextProvider = ne, reactIs_development$1.Element = oe, reactIs_development$1.ForwardRef = ge, reactIs_development$1.Fragment = se, reactIs_development$1.Lazy = Ae, reactIs_development$1.Memo = $e, reactIs_development$1.Portal = Ne, reactIs_development$1.Profiler = Ve, reactIs_development$1.StrictMode =
|
|
27860
|
+
reactIs_development$1.AsyncMode = j, reactIs_development$1.ConcurrentMode = F, reactIs_development$1.ContextConsumer = te, reactIs_development$1.ContextProvider = ne, reactIs_development$1.Element = oe, reactIs_development$1.ForwardRef = ge, reactIs_development$1.Fragment = se, reactIs_development$1.Lazy = Ae, reactIs_development$1.Memo = $e, reactIs_development$1.Portal = Ne, reactIs_development$1.Profiler = Ve, reactIs_development$1.StrictMode = je, reactIs_development$1.Suspense = ze, reactIs_development$1.isAsyncMode = Le, reactIs_development$1.isConcurrentMode = qe, reactIs_development$1.isContextConsumer = Ge, reactIs_development$1.isContextProvider = He, reactIs_development$1.isElement = Ze, reactIs_development$1.isForwardRef = tt, reactIs_development$1.isFragment = Ye, reactIs_development$1.isLazy = Qe, reactIs_development$1.isMemo = Xe, reactIs_development$1.isPortal = ot, reactIs_development$1.isProfiler = rt, reactIs_development$1.isStrictMode = at, reactIs_development$1.isSuspense = st, reactIs_development$1.isValidElementType = z, reactIs_development$1.typeOf = Q;
|
|
27812
27861
|
}()), reactIs_development$1;
|
|
27813
27862
|
}
|
|
27814
27863
|
var hasRequiredReactIs$1;
|
|
@@ -28003,7 +28052,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28003
28052
|
}
|
|
28004
28053
|
function O(qe) {
|
|
28005
28054
|
function Ge(He, Ze, tt, Ye, Qe, Xe) {
|
|
28006
|
-
var ot = He[Ze], rt =
|
|
28055
|
+
var ot = He[Ze], rt = je(ot);
|
|
28007
28056
|
if (rt !== qe) {
|
|
28008
28057
|
var at = ze(ot);
|
|
28009
28058
|
return new M(
|
|
@@ -28024,7 +28073,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28024
28073
|
return new M("Property `" + Qe + "` of component `" + tt + "` has invalid PropType notation inside arrayOf.");
|
|
28025
28074
|
var Xe = He[Ze];
|
|
28026
28075
|
if (!Array.isArray(Xe)) {
|
|
28027
|
-
var ot =
|
|
28076
|
+
var ot = je(Xe);
|
|
28028
28077
|
return new M("Invalid " + Ye + " `" + Qe + "` of type " + ("`" + ot + "` supplied to `" + tt + "`, expected an array."));
|
|
28029
28078
|
}
|
|
28030
28079
|
for (var rt = 0; rt < Xe.length; rt++) {
|
|
@@ -28040,7 +28089,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28040
28089
|
function qe(Ge, He, Ze, tt, Ye) {
|
|
28041
28090
|
var Qe = Ge[He];
|
|
28042
28091
|
if (!g(Qe)) {
|
|
28043
|
-
var Xe =
|
|
28092
|
+
var Xe = je(Qe);
|
|
28044
28093
|
return new M("Invalid " + tt + " `" + Ye + "` of type " + ("`" + Xe + "` supplied to `" + Ze + "`, expected a single ReactElement."));
|
|
28045
28094
|
}
|
|
28046
28095
|
return null;
|
|
@@ -28051,7 +28100,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28051
28100
|
function qe(Ge, He, Ze, tt, Ye) {
|
|
28052
28101
|
var Qe = Ge[He];
|
|
28053
28102
|
if (!t.isValidElementType(Qe)) {
|
|
28054
|
-
var Xe =
|
|
28103
|
+
var Xe = je(Qe);
|
|
28055
28104
|
return new M("Invalid " + tt + " `" + Ye + "` of type " + ("`" + Xe + "` supplied to `" + Ze + "`, expected a single ReactElement type."));
|
|
28056
28105
|
}
|
|
28057
28106
|
return null;
|
|
@@ -28089,7 +28138,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28089
28138
|
function Ge(He, Ze, tt, Ye, Qe) {
|
|
28090
28139
|
if (typeof qe != "function")
|
|
28091
28140
|
return new M("Property `" + Qe + "` of component `" + tt + "` has invalid PropType notation inside objectOf.");
|
|
28092
|
-
var Xe = He[Ze], ot =
|
|
28141
|
+
var Xe = He[Ze], ot = je(Xe);
|
|
28093
28142
|
if (ot !== "object")
|
|
28094
28143
|
return new M("Invalid " + Ye + " `" + Qe + "` of type " + ("`" + ot + "` supplied to `" + tt + "`, expected an object."));
|
|
28095
28144
|
for (var rt in Xe)
|
|
@@ -28137,7 +28186,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28137
28186
|
}
|
|
28138
28187
|
function Ae(qe) {
|
|
28139
28188
|
function Ge(He, Ze, tt, Ye, Qe) {
|
|
28140
|
-
var Xe = He[Ze], ot =
|
|
28189
|
+
var Xe = He[Ze], ot = je(Xe);
|
|
28141
28190
|
if (ot !== "object")
|
|
28142
28191
|
return new M("Invalid " + Ye + " `" + Qe + "` of type `" + ot + "` " + ("supplied to `" + tt + "`, expected `object`."));
|
|
28143
28192
|
for (var rt in qe) {
|
|
@@ -28154,7 +28203,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28154
28203
|
}
|
|
28155
28204
|
function $e(qe) {
|
|
28156
28205
|
function Ge(He, Ze, tt, Ye, Qe) {
|
|
28157
|
-
var Xe = He[Ze], ot =
|
|
28206
|
+
var Xe = He[Ze], ot = je(Xe);
|
|
28158
28207
|
if (ot !== "object")
|
|
28159
28208
|
return new M("Invalid " + Ye + " `" + Qe + "` of type `" + ot + "` " + ("supplied to `" + tt + "`, expected `object`."));
|
|
28160
28209
|
var rt = e({}, He[Ze], qe);
|
|
@@ -28211,14 +28260,14 @@ Valid keys: ` + JSON.stringify(Object.keys(qe), null, " ")
|
|
|
28211
28260
|
function Ve(qe, Ge) {
|
|
28212
28261
|
return qe === "symbol" ? !0 : Ge ? Ge["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && Ge instanceof Symbol : !1;
|
|
28213
28262
|
}
|
|
28214
|
-
function
|
|
28263
|
+
function je(qe) {
|
|
28215
28264
|
var Ge = typeof qe;
|
|
28216
28265
|
return Array.isArray(qe) ? "array" : qe instanceof RegExp ? "object" : Ve(Ge, qe) ? "symbol" : Ge;
|
|
28217
28266
|
}
|
|
28218
28267
|
function ze(qe) {
|
|
28219
28268
|
if (typeof qe > "u" || qe === null)
|
|
28220
28269
|
return "" + qe;
|
|
28221
|
-
var Ge =
|
|
28270
|
+
var Ge = je(qe);
|
|
28222
28271
|
if (Ge === "object") {
|
|
28223
28272
|
if (qe instanceof Date)
|
|
28224
28273
|
return "date";
|
|
@@ -31176,7 +31225,7 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
31176
31225
|
var A = e.layout, M = n.type.defaultProps, I = M !== void 0 ? _objectSpread$a(_objectSpread$a({}, M), n.props) : n.props, O = I.dataKey, q = I.children, z = I.minPointSize, Q = A === "horizontal" ? f : d, j = S ? Q.scale.domain() : null, F = getBaseValueOfBar({
|
|
31177
31226
|
numericAxis: Q
|
|
31178
31227
|
}), te = findAllByType(q, Cell), ne = C.map(function(oe, ge) {
|
|
31179
|
-
var se, Ae, $e, Ne, Ve,
|
|
31228
|
+
var se, Ae, $e, Ne, Ve, je;
|
|
31180
31229
|
S ? se = truncateByDomain(S[_ + ge], j) : (se = getValueByDataKey(oe, O), Array.isArray(se) || (se = [F, se]));
|
|
31181
31230
|
var ze = minPointSizeCallback(z, _Bar.defaultProps.minPointSize)(se[1], ge);
|
|
31182
31231
|
if (A === "horizontal") {
|
|
@@ -31190,7 +31239,7 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
31190
31239
|
index: ge
|
|
31191
31240
|
}), $e = (Oe = Ge ?? qe) !== null && Oe !== void 0 ? Oe : void 0, Ne = R.size;
|
|
31192
31241
|
var He = qe - Ge;
|
|
31193
|
-
if (Ve = Number.isNaN(He) ? 0 : He,
|
|
31242
|
+
if (Ve = Number.isNaN(He) ? 0 : He, je = {
|
|
31194
31243
|
x: Ae,
|
|
31195
31244
|
y: f.y,
|
|
31196
31245
|
width: Ne,
|
|
@@ -31208,7 +31257,7 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
31208
31257
|
offset: R.offset,
|
|
31209
31258
|
entry: oe,
|
|
31210
31259
|
index: ge
|
|
31211
|
-
}), Ne = Qe - Ye, Ve = R.size,
|
|
31260
|
+
}), Ne = Qe - Ye, Ve = R.size, je = {
|
|
31212
31261
|
x: d.x,
|
|
31213
31262
|
y: $e,
|
|
31214
31263
|
width: d.width,
|
|
@@ -31225,7 +31274,7 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
31225
31274
|
height: Ve,
|
|
31226
31275
|
value: S ? se : se[1],
|
|
31227
31276
|
payload: oe,
|
|
31228
|
-
background:
|
|
31277
|
+
background: je
|
|
31229
31278
|
}, te && te[ge] && te[ge].props), {}, {
|
|
31230
31279
|
tooltipPayload: [getTooltipItem(n, oe)],
|
|
31231
31280
|
tooltipPosition: {
|
|
@@ -31316,10 +31365,10 @@ var formatAxisMap = function(e, n, o, l, d) {
|
|
|
31316
31365
|
if (Ne.forEach(function(tt, Ye) {
|
|
31317
31366
|
Ye > 0 && ($e = Math.min((tt || 0) - (Ne[Ye - 1] || 0), $e));
|
|
31318
31367
|
}), Number.isFinite($e)) {
|
|
31319
|
-
var Ve = $e / Ae,
|
|
31320
|
-
if (M.padding === "gap" && (te = Ve *
|
|
31321
|
-
var ze = getPercentValue(e.barCategoryGap, Ve *
|
|
31322
|
-
te = Oe - ze - (Oe - ze) /
|
|
31368
|
+
var Ve = $e / Ae, je = M.layout === "vertical" ? o.height : o.width;
|
|
31369
|
+
if (M.padding === "gap" && (te = Ve * je / 2), M.padding === "no-gap") {
|
|
31370
|
+
var ze = getPercentValue(e.barCategoryGap, Ve * je), Oe = Ve * je / 2;
|
|
31371
|
+
te = Oe - ze - (Oe - ze) / je * ze;
|
|
31323
31372
|
}
|
|
31324
31373
|
}
|
|
31325
31374
|
}
|
|
@@ -33328,7 +33377,7 @@ var Area = /* @__PURE__ */ function(t) {
|
|
|
33328
33377
|
var O = this.state.isAnimationFinished, q = g.length === 1, z = clsx("recharts-area", b), Q = C && C.allowDataOverflow, j = E && E.allowDataOverflow, F = Q || j, te = isNil(I) ? this.id : I, ne = (o = filterProps(f, !1)) !== null && o !== void 0 ? o : {
|
|
33329
33378
|
r: 3,
|
|
33330
33379
|
strokeWidth: 2
|
|
33331
|
-
}, oe = ne.r, ge = oe === void 0 ? 3 : oe, se = ne.strokeWidth, Ae = se === void 0 ? 2 : se, $e = hasClipDot(f) ? f : {}, Ne = $e.clipDot, Ve = Ne === void 0 ? !0 : Ne,
|
|
33380
|
+
}, oe = ne.r, ge = oe === void 0 ? 3 : oe, se = ne.strokeWidth, Ae = se === void 0 ? 2 : se, $e = hasClipDot(f) ? f : {}, Ne = $e.clipDot, Ve = Ne === void 0 ? !0 : Ne, je = ge * 2 + Ae;
|
|
33332
33381
|
return /* @__PURE__ */ React__default.createElement(Layer, {
|
|
33333
33382
|
className: z
|
|
33334
33383
|
}, Q || j ? /* @__PURE__ */ React__default.createElement("defs", null, /* @__PURE__ */ React__default.createElement("clipPath", {
|
|
@@ -33341,10 +33390,10 @@ var Area = /* @__PURE__ */ function(t) {
|
|
|
33341
33390
|
})), !Ve && /* @__PURE__ */ React__default.createElement("clipPath", {
|
|
33342
33391
|
id: "clipPath-dots-".concat(te)
|
|
33343
33392
|
}, /* @__PURE__ */ React__default.createElement("rect", {
|
|
33344
|
-
x: _ -
|
|
33345
|
-
y: S -
|
|
33346
|
-
width: R +
|
|
33347
|
-
height: A +
|
|
33393
|
+
x: _ - je / 2,
|
|
33394
|
+
y: S - je / 2,
|
|
33395
|
+
width: R + je,
|
|
33396
|
+
height: A + je
|
|
33348
33397
|
}))) : null, q ? null : this.renderArea(F, te), (f || q) && this.renderDots(F, Ve, te), (!M || O) && LabelList.renderCallByParent(this.props, g));
|
|
33349
33398
|
}
|
|
33350
33399
|
}], [{
|
|
@@ -34389,7 +34438,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34389
34438
|
isDomainSpecifiedByUser(O.domain, Q, q) && (Ae = parseSpecifiedDomain(O.domain, null, Q), R && (q === "number" || F !== "auto") && (Ne = getDomainOfDataByKey(ge, z, "category")));
|
|
34390
34439
|
var Ve = getDefaultDomainByAxisType(q);
|
|
34391
34440
|
if (!Ae || Ae.length === 0) {
|
|
34392
|
-
var
|
|
34441
|
+
var je, ze = (je = O.domain) !== null && je !== void 0 ? je : Ve;
|
|
34393
34442
|
if (z) {
|
|
34394
34443
|
if (Ae = getDomainOfDataByKey(ge, z, q), q === "category" && R) {
|
|
34395
34444
|
var Oe = hasDuplicate(Ae);
|
|
@@ -34550,13 +34599,13 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34550
34599
|
return e[n].height;
|
|
34551
34600
|
}, generateCategoricalChart = function(e) {
|
|
34552
34601
|
var n = e.chartName, o = e.GraphicalChild, l = e.defaultTooltipEventType, d = l === void 0 ? "axis" : l, f = e.validateTooltipEventTypes, g = f === void 0 ? ["axis"] : f, b = e.axisComponents, S = e.legendContent, _ = e.formatAxisMap, C = e.defaultProps, E = function(O, q) {
|
|
34553
|
-
var z = q.graphicalItems, Q = q.stackGroups, j = q.offset, F = q.updateId, te = q.dataStartIndex, ne = q.dataEndIndex, oe = O.barSize, ge = O.layout, se = O.barGap, Ae = O.barCategoryGap, $e = O.maxBarSize, Ne = getAxisNameByLayout(ge), Ve = Ne.numericAxisName,
|
|
34602
|
+
var z = q.graphicalItems, Q = q.stackGroups, j = q.offset, F = q.updateId, te = q.dataStartIndex, ne = q.dataEndIndex, oe = O.barSize, ge = O.layout, se = O.barGap, Ae = O.barCategoryGap, $e = O.maxBarSize, Ne = getAxisNameByLayout(ge), Ve = Ne.numericAxisName, je = Ne.cateAxisName, ze = hasGraphicalBarItem(z), Oe = [];
|
|
34554
34603
|
return z.forEach(function(Le, qe) {
|
|
34555
34604
|
var Ge = getDisplayedData(O.data, {
|
|
34556
34605
|
graphicalItems: [Le],
|
|
34557
34606
|
dataStartIndex: te,
|
|
34558
34607
|
dataEndIndex: ne
|
|
34559
|
-
}), He = Le.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, Le.type.defaultProps), Le.props) : Le.props, Ze = He.dataKey, tt = He.maxBarSize, Ye = He["".concat(Ve, "Id")], Qe = He["".concat(
|
|
34608
|
+
}), He = Le.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, Le.type.defaultProps), Le.props) : Le.props, Ze = He.dataKey, tt = He.maxBarSize, Ye = He["".concat(Ve, "Id")], Qe = He["".concat(je, "Id")], Xe = {}, ot = b.reduce(function(it, et) {
|
|
34560
34609
|
var ut, ft, dt = q["".concat(et.axisType, "Map")], Ct = He["".concat(et.axisType, "Id")];
|
|
34561
34610
|
dt && dt[Ct] || et.axisType === "zAxis" || (process.env.NODE_ENV !== "production" ? invariant$1(!1, "Specifying a(n) ".concat(et.axisType, "Id requires a corresponding ").concat(
|
|
34562
34611
|
et.axisType,
|
|
@@ -34564,10 +34613,10 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34564
34613
|
).concat((ut = Le == null || (ft = Le.type) === null || ft === void 0 ? void 0 : ft.displayName) !== null && ut !== void 0 ? ut : "")) : invariant$1());
|
|
34565
34614
|
var zt = dt[Ct];
|
|
34566
34615
|
return _objectSpread(_objectSpread({}, it), {}, _defineProperty(_defineProperty({}, et.axisType, zt), "".concat(et.axisType, "Ticks"), getTicksOfAxis(zt)));
|
|
34567
|
-
}, Xe), rt = ot[
|
|
34616
|
+
}, Xe), rt = ot[je], at = ot["".concat(je, "Ticks")], st = Q && Q[Ye] && Q[Ye].hasStack && getStackedDataOfItem(Le, Q[Ye].stackGroups), Ue = getDisplayName(Le.type).indexOf("Bar") >= 0, Rt = getBandSizeOfAxis(rt, at), Je = [], yt = ze && getBarSizeList({
|
|
34568
34617
|
barSize: oe,
|
|
34569
34618
|
stackGroups: Q,
|
|
34570
|
-
totalSize: getCartesianAxisSize(ot,
|
|
34619
|
+
totalSize: getCartesianAxisSize(ot, je)
|
|
34571
34620
|
});
|
|
34572
34621
|
if (Ue) {
|
|
34573
34622
|
var Mt, qt, Ht = isNil(tt) ? $e : tt, Ft = (Mt = (qt = getBandSizeOfAxis(rt, at, !0)) !== null && qt !== void 0 ? qt : Ht) !== null && Mt !== void 0 ? Mt : 0;
|
|
@@ -34601,7 +34650,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34601
34650
|
dataEndIndex: ne
|
|
34602
34651
|
}))), {}, _defineProperty(_defineProperty(_defineProperty({
|
|
34603
34652
|
key: Le.key || "item-".concat(qe)
|
|
34604
|
-
}, Ve, ot[Ve]),
|
|
34653
|
+
}, Ve, ot[Ve]), je, ot[je]), "animationId", F)),
|
|
34605
34654
|
childIndex: parseChildIndex(Le, O.children),
|
|
34606
34655
|
item: Le
|
|
34607
34656
|
});
|
|
@@ -34612,11 +34661,11 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34612
34661
|
props: z
|
|
34613
34662
|
}))
|
|
34614
34663
|
return null;
|
|
34615
|
-
var te = z.children, ne = z.layout, oe = z.stackOffset, ge = z.data, se = z.reverseStackOrder, Ae = getAxisNameByLayout(ne), $e = Ae.numericAxisName, Ne = Ae.cateAxisName, Ve = findAllByType(te, o),
|
|
34664
|
+
var te = z.children, ne = z.layout, oe = z.stackOffset, ge = z.data, se = z.reverseStackOrder, Ae = getAxisNameByLayout(ne), $e = Ae.numericAxisName, Ne = Ae.cateAxisName, Ve = findAllByType(te, o), je = getStackGroupsByAxisId(ge, Ve, "".concat($e, "Id"), "".concat(Ne, "Id"), oe, se), ze = b.reduce(function(He, Ze) {
|
|
34616
34665
|
var tt = "".concat(Ze.axisType, "Map");
|
|
34617
34666
|
return _objectSpread(_objectSpread({}, He), {}, _defineProperty({}, tt, getAxisMap(z, _objectSpread(_objectSpread({}, Ze), {}, {
|
|
34618
34667
|
graphicalItems: Ve,
|
|
34619
|
-
stackGroups: Ze.axisType === $e &&
|
|
34668
|
+
stackGroups: Ze.axisType === $e && je,
|
|
34620
34669
|
dataStartIndex: Q,
|
|
34621
34670
|
dataEndIndex: j
|
|
34622
34671
|
}))));
|
|
@@ -34632,14 +34681,14 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34632
34681
|
dataEndIndex: j,
|
|
34633
34682
|
updateId: F,
|
|
34634
34683
|
graphicalItems: Ve,
|
|
34635
|
-
stackGroups:
|
|
34684
|
+
stackGroups: je,
|
|
34636
34685
|
offset: Oe
|
|
34637
34686
|
}));
|
|
34638
34687
|
return _objectSpread(_objectSpread({
|
|
34639
34688
|
formattedGraphicalItems: Ge,
|
|
34640
34689
|
graphicalItems: Ve,
|
|
34641
34690
|
offset: Oe,
|
|
34642
|
-
stackGroups:
|
|
34691
|
+
stackGroups: je
|
|
34643
34692
|
}, qe), ze);
|
|
34644
34693
|
}, A = /* @__PURE__ */ function(I) {
|
|
34645
34694
|
function O(q) {
|
|
@@ -34791,7 +34840,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34791
34840
|
updateId: ge
|
|
34792
34841
|
}, j.state)));
|
|
34793
34842
|
else if (F.activeTooltipIndex !== void 0) {
|
|
34794
|
-
var $e = F.chartX, Ne = F.chartY, Ve = F.activeTooltipIndex,
|
|
34843
|
+
var $e = F.chartX, Ne = F.chartY, Ve = F.activeTooltipIndex, je = j.state, ze = je.offset, Oe = je.tooltipTicks;
|
|
34795
34844
|
if (!ze)
|
|
34796
34845
|
return;
|
|
34797
34846
|
if (typeof oe == "function")
|
|
@@ -34820,7 +34869,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34820
34869
|
} else
|
|
34821
34870
|
j.setState(F);
|
|
34822
34871
|
}), _defineProperty(j, "renderCursor", function(F) {
|
|
34823
|
-
var te, ne = j.state, oe = ne.isTooltipActive, ge = ne.activeCoordinate, se = ne.activePayload, Ae = ne.offset, $e = ne.activeTooltipIndex, Ne = ne.tooltipAxisBandSize, Ve = j.getTooltipEventType(),
|
|
34872
|
+
var te, ne = j.state, oe = ne.isTooltipActive, ge = ne.activeCoordinate, se = ne.activePayload, Ae = ne.offset, $e = ne.activeTooltipIndex, Ne = ne.tooltipAxisBandSize, Ve = j.getTooltipEventType(), je = (te = F.props.active) !== null && te !== void 0 ? te : oe, ze = j.props.layout, Oe = F.key || "_recharts-cursor";
|
|
34824
34873
|
return /* @__PURE__ */ React__default.createElement(Cursor, {
|
|
34825
34874
|
key: Oe,
|
|
34826
34875
|
activeCoordinate: ge,
|
|
@@ -34828,7 +34877,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34828
34877
|
activeTooltipIndex: $e,
|
|
34829
34878
|
chartName: n,
|
|
34830
34879
|
element: F,
|
|
34831
|
-
isActive:
|
|
34880
|
+
isActive: je,
|
|
34832
34881
|
layout: ze,
|
|
34833
34882
|
offset: Ae,
|
|
34834
34883
|
tooltipAxisBandSize: Ne,
|
|
@@ -34842,7 +34891,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34842
34891
|
ticks: getTicksOfAxis($e, !0)
|
|
34843
34892
|
}));
|
|
34844
34893
|
}), _defineProperty(j, "renderPolarGrid", function(F) {
|
|
34845
|
-
var te = F.props, ne = te.radialLines, oe = te.polarAngles, ge = te.polarRadius, se = j.state, Ae = se.radiusAxisMap, $e = se.angleAxisMap, Ne = getAnyElementOfObject(Ae), Ve = getAnyElementOfObject($e),
|
|
34894
|
+
var te = F.props, ne = te.radialLines, oe = te.polarAngles, ge = te.polarRadius, se = j.state, Ae = se.radiusAxisMap, $e = se.angleAxisMap, Ne = getAnyElementOfObject(Ae), Ve = getAnyElementOfObject($e), je = Ve.cx, ze = Ve.cy, Oe = Ve.innerRadius, Le = Ve.outerRadius;
|
|
34846
34895
|
return /* @__PURE__ */ cloneElement(F, {
|
|
34847
34896
|
polarAngles: Array.isArray(oe) ? oe : getTicksOfAxis(Ve, !0).map(function(qe) {
|
|
34848
34897
|
return qe.coordinate;
|
|
@@ -34850,7 +34899,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34850
34899
|
polarRadius: Array.isArray(ge) ? ge : getTicksOfAxis(Ne, !0).map(function(qe) {
|
|
34851
34900
|
return qe.coordinate;
|
|
34852
34901
|
}),
|
|
34853
|
-
cx:
|
|
34902
|
+
cx: je,
|
|
34854
34903
|
cy: ze,
|
|
34855
34904
|
innerRadius: Oe,
|
|
34856
34905
|
outerRadius: Le,
|
|
@@ -34877,11 +34926,11 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34877
34926
|
var F, te = j.props, ne = te.children, oe = te.accessibilityLayer, ge = findChildByType(ne, Tooltip);
|
|
34878
34927
|
if (!ge)
|
|
34879
34928
|
return null;
|
|
34880
|
-
var se = j.state, Ae = se.isTooltipActive, $e = se.activeCoordinate, Ne = se.activePayload, Ve = se.activeLabel,
|
|
34929
|
+
var se = j.state, Ae = se.isTooltipActive, $e = se.activeCoordinate, Ne = se.activePayload, Ve = se.activeLabel, je = se.offset, ze = (F = ge.props.active) !== null && F !== void 0 ? F : Ae;
|
|
34881
34930
|
return /* @__PURE__ */ cloneElement(ge, {
|
|
34882
|
-
viewBox: _objectSpread(_objectSpread({},
|
|
34883
|
-
x:
|
|
34884
|
-
y:
|
|
34931
|
+
viewBox: _objectSpread(_objectSpread({}, je), {}, {
|
|
34932
|
+
x: je.left,
|
|
34933
|
+
y: je.top
|
|
34885
34934
|
}),
|
|
34886
34935
|
active: ze,
|
|
34887
34936
|
label: Ve,
|
|
@@ -34905,7 +34954,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34905
34954
|
}), _defineProperty(j, "renderReferenceElement", function(F, te, ne) {
|
|
34906
34955
|
if (!F)
|
|
34907
34956
|
return null;
|
|
34908
|
-
var oe = j, ge = oe.clipPathId, se = j.state, Ae = se.xAxisMap, $e = se.yAxisMap, Ne = se.offset, Ve = F.type.defaultProps || {},
|
|
34957
|
+
var oe = j, ge = oe.clipPathId, se = j.state, Ae = se.xAxisMap, $e = se.yAxisMap, Ne = se.offset, Ve = F.type.defaultProps || {}, je = F.props, ze = je.xAxisId, Oe = ze === void 0 ? Ve.xAxisId : ze, Le = je.yAxisId, qe = Le === void 0 ? Ve.yAxisId : Le;
|
|
34909
34958
|
return /* @__PURE__ */ cloneElement(F, {
|
|
34910
34959
|
key: F.key || "".concat(te, "-").concat(ne),
|
|
34911
34960
|
xAxis: Ae[Oe],
|
|
@@ -34919,9 +34968,9 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34919
34968
|
clipPathId: ge
|
|
34920
34969
|
});
|
|
34921
34970
|
}), _defineProperty(j, "renderActivePoints", function(F) {
|
|
34922
|
-
var te = F.item, ne = F.activePoint, oe = F.basePoint, ge = F.childIndex, se = F.isRange, Ae = [], $e = te.props.key, Ne = te.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, te.item.type.defaultProps), te.item.props) : te.item.props, Ve = Ne.activeDot,
|
|
34971
|
+
var te = F.item, ne = F.activePoint, oe = F.basePoint, ge = F.childIndex, se = F.isRange, Ae = [], $e = te.props.key, Ne = te.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, te.item.type.defaultProps), te.item.props) : te.item.props, Ve = Ne.activeDot, je = Ne.dataKey, ze = _objectSpread(_objectSpread({
|
|
34923
34972
|
index: ge,
|
|
34924
|
-
dataKey:
|
|
34973
|
+
dataKey: je,
|
|
34925
34974
|
cx: ne.x,
|
|
34926
34975
|
cy: ne.y,
|
|
34927
34976
|
r: 4,
|
|
@@ -34939,7 +34988,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34939
34988
|
var oe = j.filterFormatItem(F, te, ne);
|
|
34940
34989
|
if (!oe)
|
|
34941
34990
|
return null;
|
|
34942
|
-
var ge = j.getTooltipEventType(), se = j.state, Ae = se.isTooltipActive, $e = se.tooltipAxis, Ne = se.activeTooltipIndex, Ve = se.activeLabel,
|
|
34991
|
+
var ge = j.getTooltipEventType(), se = j.state, Ae = se.isTooltipActive, $e = se.tooltipAxis, Ne = se.activeTooltipIndex, Ve = se.activeLabel, je = j.props.children, ze = findChildByType(je, Tooltip), Oe = oe.props, Le = Oe.points, qe = Oe.isRange, Ge = Oe.baseLine, He = oe.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, oe.item.type.defaultProps), oe.item.props) : oe.item.props, Ze = He.activeDot, tt = He.hide, Ye = He.activeBar, Qe = He.activeShape, Xe = !!(!tt && Ae && ze && (Ze || Ye || Qe)), ot = {};
|
|
34943
34992
|
ge !== "axis" && ze && ze.props.trigger === "click" ? ot = {
|
|
34944
34993
|
onClick: combineEventHandlers(j.handleItemMouseEnter, F.props.onClick)
|
|
34945
34994
|
} : ge !== "axis" && (ot = {
|
|
@@ -35080,11 +35129,11 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35080
35129
|
} : {
|
|
35081
35130
|
y: Ae,
|
|
35082
35131
|
x: $e
|
|
35083
|
-
},
|
|
35132
|
+
}, je = this.state.formattedGraphicalItems.find(function(Oe) {
|
|
35084
35133
|
var Le = Oe.item;
|
|
35085
35134
|
return Le.type.name === "Scatter";
|
|
35086
35135
|
});
|
|
35087
|
-
|
|
35136
|
+
je && (Ve = _objectSpread(_objectSpread({}, Ve), je.props.points[oe].tooltipPosition), se = je.props.points[oe].tooltipPayload);
|
|
35088
35137
|
var ze = {
|
|
35089
35138
|
activeTooltipIndex: oe,
|
|
35090
35139
|
isTooltipActive: !0,
|
|
@@ -35154,7 +35203,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35154
35203
|
return null;
|
|
35155
35204
|
var ge = this.state, se = ge.xAxisMap, Ae = ge.yAxisMap, $e = this.getTooltipEventType(), Ne = getTooltipData(this.state, this.props.data, this.props.layout, oe);
|
|
35156
35205
|
if ($e !== "axis" && se && Ae) {
|
|
35157
|
-
var Ve = getAnyElementOfObject(se).scale,
|
|
35206
|
+
var Ve = getAnyElementOfObject(se).scale, je = getAnyElementOfObject(Ae).scale, ze = Ve && Ve.invert ? Ve.invert(te.chartX) : null, Oe = je && je.invert ? je.invert(te.chartY) : null;
|
|
35158
35207
|
return _objectSpread(_objectSpread({}, te), {}, {
|
|
35159
35208
|
xValue: ze,
|
|
35160
35209
|
yValue: Oe
|
|
@@ -35291,16 +35340,16 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35291
35340
|
payload: Ve
|
|
35292
35341
|
};
|
|
35293
35342
|
} else if (isFunnel(oe, F) || isPie(oe, F) || isScatter(oe, F)) {
|
|
35294
|
-
var
|
|
35343
|
+
var je = getActiveShapeIndexForTooltip({
|
|
35295
35344
|
graphicalItem: oe,
|
|
35296
35345
|
activeTooltipItem: F,
|
|
35297
35346
|
itemData: Ae.data
|
|
35298
|
-
}), ze = Ae.activeIndex === void 0 ?
|
|
35347
|
+
}), ze = Ae.activeIndex === void 0 ? je : Ae.activeIndex;
|
|
35299
35348
|
return {
|
|
35300
35349
|
graphicalItem: _objectSpread(_objectSpread({}, oe), {}, {
|
|
35301
35350
|
childIndex: ze
|
|
35302
35351
|
}),
|
|
35303
|
-
payload: isScatter(oe, F) ? Ae.data[
|
|
35352
|
+
payload: isScatter(oe, F) ? Ae.data[je] : oe.props.data[je]
|
|
35304
35353
|
};
|
|
35305
35354
|
}
|
|
35306
35355
|
}
|
|
@@ -35326,8 +35375,8 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35326
35375
|
desc: Ae
|
|
35327
35376
|
}), this.renderClipPath(), renderByOrder(j, this.renderMap)));
|
|
35328
35377
|
if (this.props.accessibilityLayer) {
|
|
35329
|
-
var Ve,
|
|
35330
|
-
Ne.tabIndex = (Ve = this.props.tabIndex) !== null && Ve !== void 0 ? Ve : 0, Ne.role = (
|
|
35378
|
+
var Ve, je;
|
|
35379
|
+
Ne.tabIndex = (Ve = this.props.tabIndex) !== null && Ve !== void 0 ? Ve : 0, Ne.role = (je = this.props.role) !== null && je !== void 0 ? je : "application", Ne.onKeyDown = function(Oe) {
|
|
35331
35380
|
z.accessibilityManager.keyboardEvent(Oe);
|
|
35332
35381
|
}, Ne.onFocus = function() {
|
|
35333
35382
|
z.accessibilityManager.focus();
|
|
@@ -35406,10 +35455,10 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35406
35455
|
isTooltipActive: O.isTooltipActive
|
|
35407
35456
|
}, Ve = _objectSpread(_objectSpread({}, getTooltipData(O, z, te)), {}, {
|
|
35408
35457
|
updateId: O.updateId + 1
|
|
35409
|
-
}),
|
|
35410
|
-
return _objectSpread(_objectSpread(_objectSpread({},
|
|
35458
|
+
}), je = _objectSpread(_objectSpread(_objectSpread({}, $e), Ne), Ve);
|
|
35459
|
+
return _objectSpread(_objectSpread(_objectSpread({}, je), R(_objectSpread({
|
|
35411
35460
|
props: I
|
|
35412
|
-
},
|
|
35461
|
+
}, je), O)), {}, {
|
|
35413
35462
|
prevDataKey: q,
|
|
35414
35463
|
prevData: z,
|
|
35415
35464
|
prevWidth: j,
|
|
@@ -35913,9 +35962,9 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
35913
35962
|
var oe, ge, se, Ae, $e, Ne, Ve = te.length;
|
|
35914
35963
|
for (ge = 0; ge < Ve; ge += 1) if ("ks" in (oe = te[ge]) && !oe.completed) {
|
|
35915
35964
|
if (oe.completed = !0, oe.hasMask) {
|
|
35916
|
-
var
|
|
35917
|
-
for (Ae =
|
|
35918
|
-
else for (Ne =
|
|
35965
|
+
var je = oe.masksProperties;
|
|
35966
|
+
for (Ae = je.length, se = 0; se < Ae; se += 1) if (je[se].pt.k.i) R(je[se].pt.k);
|
|
35967
|
+
else for (Ne = je[se].pt.k.length, $e = 0; $e < Ne; $e += 1) je[se].pt.k[$e].s && R(je[se].pt.k[$e].s[0]), je[se].pt.k[$e].e && R(je[se].pt.k[$e].e[0]);
|
|
35919
35968
|
}
|
|
35920
35969
|
oe.ty === 0 ? (oe.layers = C(oe.refId, ne), _(oe.layers, ne)) : oe.ty === 4 ? E(oe.shapes) : oe.ty === 5 && j(oe);
|
|
35921
35970
|
}
|
|
@@ -36003,12 +36052,12 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
36003
36052
|
else ge[se].ty === "gr" && ne(ge[se].it);
|
|
36004
36053
|
}
|
|
36005
36054
|
function oe(ge) {
|
|
36006
|
-
var se, Ae, $e, Ne, Ve,
|
|
36055
|
+
var se, Ae, $e, Ne, Ve, je, ze = ge.length;
|
|
36007
36056
|
for (Ae = 0; Ae < ze; Ae += 1) {
|
|
36008
36057
|
if ((se = ge[Ae]).hasMask) {
|
|
36009
36058
|
var Oe = se.masksProperties;
|
|
36010
36059
|
for (Ne = Oe.length, $e = 0; $e < Ne; $e += 1) if (Oe[$e].pt.k.i) Oe[$e].pt.k.c = Oe[$e].cl;
|
|
36011
|
-
else for (
|
|
36060
|
+
else for (je = Oe[$e].pt.k.length, Ve = 0; Ve < je; Ve += 1) Oe[$e].pt.k[Ve].s && (Oe[$e].pt.k[Ve].s[0].c = Oe[$e].cl), Oe[$e].pt.k[Ve].e && (Oe[$e].pt.k[Ve].e[0].c = Oe[$e].cl);
|
|
36012
36061
|
}
|
|
36013
36062
|
se.ty === 4 && ne(se.shapes);
|
|
36014
36063
|
}
|
|
@@ -36660,8 +36709,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
36660
36709
|
return E && I && (O[_] = n(R[_], R[0], A[_], M[0]), q += O[_].addedLength), C.totalLength = q, C;
|
|
36661
36710
|
}, getNewSegment: function(S, _, C, E, R, A, M) {
|
|
36662
36711
|
R < 0 ? R = 0 : R > 1 && (R = 1);
|
|
36663
|
-
var I, O = g(R, M), q = g(A = A > 1 ? 1 : A, M), z = S.length, Q = 1 - O, j = 1 - q, F = Q * Q * Q, te = O * Q * Q * 3, ne = O * O * Q * 3, oe = O * O * O, ge = Q * Q * j, se = O * Q * j + Q * O * j + Q * Q * q, Ae = O * O * j + Q * O * q + O * Q * q, $e = O * O * q, Ne = Q * j * j, Ve = O * j * j + Q * q * j + Q * j * q,
|
|
36664
|
-
for (I = 0; I < z; I += 1) b[4 * I] = t.round(1e3 * (F * S[I] + te * C[I] + ne * E[I] + oe * _[I])) / 1e3, b[4 * I + 1] = t.round(1e3 * (ge * S[I] + se * C[I] + Ae * E[I] + $e * _[I])) / 1e3, b[4 * I + 2] = t.round(1e3 * (Ne * S[I] + Ve * C[I] +
|
|
36712
|
+
var I, O = g(R, M), q = g(A = A > 1 ? 1 : A, M), z = S.length, Q = 1 - O, j = 1 - q, F = Q * Q * Q, te = O * Q * Q * 3, ne = O * O * Q * 3, oe = O * O * O, ge = Q * Q * j, se = O * Q * j + Q * O * j + Q * Q * q, Ae = O * O * j + Q * O * q + O * Q * q, $e = O * O * q, Ne = Q * j * j, Ve = O * j * j + Q * q * j + Q * j * q, je = O * q * j + Q * q * q + O * j * q, ze = O * q * q, Oe = j * j * j, Le = q * j * j + j * q * j + j * j * q, qe = q * q * j + j * q * q + q * j * q, Ge = q * q * q;
|
|
36713
|
+
for (I = 0; I < z; I += 1) b[4 * I] = t.round(1e3 * (F * S[I] + te * C[I] + ne * E[I] + oe * _[I])) / 1e3, b[4 * I + 1] = t.round(1e3 * (ge * S[I] + se * C[I] + Ae * E[I] + $e * _[I])) / 1e3, b[4 * I + 2] = t.round(1e3 * (Ne * S[I] + Ve * C[I] + je * E[I] + ze * _[I])) / 1e3, b[4 * I + 3] = t.round(1e3 * (Oe * S[I] + Le * C[I] + qe * E[I] + Ge * _[I])) / 1e3;
|
|
36665
36714
|
return b;
|
|
36666
36715
|
}, getPointInSegment: function(S, _, C, E, R, A) {
|
|
36667
36716
|
var M = g(R, A), I = 1 - M;
|
|
@@ -36886,8 +36935,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
36886
36935
|
if (E >= se.t - this.offsetTime) F = 1;
|
|
36887
36936
|
else if (E < ge.t - this.offsetTime) F = 0;
|
|
36888
36937
|
else {
|
|
36889
|
-
var
|
|
36890
|
-
Ae.__fnct ?
|
|
36938
|
+
var je;
|
|
36939
|
+
Ae.__fnct ? je = Ae.__fnct : (je = BezierFactory.getBezierEasing(ge.o.x, ge.o.y, ge.i.x, ge.i.y).get, Ae.__fnct = je), F = je((E - (ge.t - this.offsetTime)) / (se.t - this.offsetTime - (ge.t - this.offsetTime)));
|
|
36891
36940
|
}
|
|
36892
36941
|
I = se.s ? se.s[0] : ge.e[0];
|
|
36893
36942
|
}
|
|
@@ -37106,12 +37155,12 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
37106
37155
|
for (var Oe = 0, Le = this.props, qe = "matrix3d("; Oe < 16; ) qe += o(1e4 * Le[Oe]) / 1e4, qe += Oe === 15 ? ")" : ",", Oe += 1;
|
|
37107
37156
|
return qe;
|
|
37108
37157
|
}
|
|
37109
|
-
function
|
|
37158
|
+
function je(Oe) {
|
|
37110
37159
|
return Oe < 1e-6 && Oe > 0 || Oe > -1e-6 && Oe < 0 ? o(1e4 * Oe) / 1e4 : Oe;
|
|
37111
37160
|
}
|
|
37112
37161
|
function ze() {
|
|
37113
37162
|
var Oe = this.props;
|
|
37114
|
-
return "matrix(" +
|
|
37163
|
+
return "matrix(" + je(Oe[0]) + "," + je(Oe[1]) + "," + je(Oe[4]) + "," + je(Oe[5]) + "," + je(Oe[12]) + "," + je(Oe[13]) + ")";
|
|
37115
37164
|
}
|
|
37116
37165
|
return function() {
|
|
37117
37166
|
this.reset = l, this.rotate = d, this.rotateX = f, this.rotateY = g, this.rotateZ = b, this.skew = _, this.skewFromAxis = C, this.shear = S, this.scale = E, this.setTransform = R, this.translate = A, this.transform = M, this.multiply = I, this.applyToPoint = j, this.applyToX = F, this.applyToY = te, this.applyToZ = ne, this.applyToPointArray = $e, this.applyToTriplePoints = Ae, this.applyToPointStringified = Ne, this.toCSS = Ve, this.to2dCSS = ze, this.clone = z, this.cloneFromProps = Q, this.equals = q, this.inversePoints = se, this.inversePoint = ge, this.getInverseMatrix = oe, this._t = this.transform, this.isIdentity = O, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
@@ -38675,14 +38724,14 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
38675
38724
|
t.justifyOffset = 0;
|
|
38676
38725
|
}
|
|
38677
38726
|
t.lineWidths = I;
|
|
38678
|
-
var
|
|
38727
|
+
var je, ze, Oe, Le, qe = S.a;
|
|
38679
38728
|
f = qe.length;
|
|
38680
38729
|
var Ge = [];
|
|
38681
38730
|
for (d = 0; d < f; d += 1) {
|
|
38682
|
-
for ((
|
|
38731
|
+
for ((je = qe[d]).a.sc && (t.strokeColorAnim = !0), je.a.sw && (t.strokeWidthAnim = !0), (je.a.fc || je.a.fh || je.a.fs || je.a.fb) && (t.fillColorAnim = !0), Le = 0, Oe = je.s.b, e = 0; e < n; e += 1) (ze = _[e]).anIndexes[d] = Le, (Oe == 1 && ze.val !== "" || Oe == 2 && ze.val !== "" && ze.val !== " " || Oe == 3 && (ze.n || ze.val == " " || e == n - 1) || Oe == 4 && (ze.n || e == n - 1)) && (je.s.rn === 1 && Ge.push(Le), Le += 1);
|
|
38683
38732
|
S.a[d].s.totalChars = Le;
|
|
38684
38733
|
var He, Ze = -1;
|
|
38685
|
-
if (
|
|
38734
|
+
if (je.s.rn === 1) for (e = 0; e < n; e += 1) Ze != (ze = _[e]).anIndexes[d] && (Ze = ze.anIndexes[d], He = Ge.splice(Math.floor(Math.random() * Ge.length), 1)[0]), ze.anIndexes[d] = He;
|
|
38686
38735
|
}
|
|
38687
38736
|
t.yOffset = t.finalLineHeight || 1.2 * t.finalSize, t.ls = t.ls || 0, t.ascent = z.ascent * t.finalSize / 100;
|
|
38688
38737
|
}, TextProperty.prototype.updateDocumentData = function(t, e) {
|
|
@@ -38764,8 +38813,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
38764
38813
|
R = (A = M[E].points)[C - 1], I = (b = A[C]).partialLength;
|
|
38765
38814
|
}
|
|
38766
38815
|
d = se.length, n = 0, o = 0;
|
|
38767
|
-
var Ne, Ve,
|
|
38768
|
-
|
|
38816
|
+
var Ne, Ve, je, ze, Oe, Le = 1.2 * t.finalSize * 0.714, qe = !0;
|
|
38817
|
+
je = F.length;
|
|
38769
38818
|
var Ge, He, Ze, tt, Ye, Qe, Xe, ot, rt, at, st, Ue, Rt = -1, Je = g, yt = E, Mt = C, qt = -1, Ht = "", Ft = this.defaultPropsArray;
|
|
38770
38819
|
if (t.j === 2 || t.j === 1) {
|
|
38771
38820
|
var Ke = 0, it = 0, et = t.j === 2 ? -0.5 : -1, ut = 0, ft = !0;
|
|
@@ -38773,7 +38822,7 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
38773
38822
|
for (Ke && (Ke += it); ut < l; ) se[ut].animatorJustifyOffset = Ke, ut += 1;
|
|
38774
38823
|
Ke = 0, ft = !0;
|
|
38775
38824
|
} else {
|
|
38776
|
-
for (Ve = 0; Ve <
|
|
38825
|
+
for (Ve = 0; Ve < je; Ve += 1) (Ne = F[Ve].a).t.propType && (ft && t.j === 2 && (it += Ne.t.v * et), (Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars)).length ? Ke += Ne.t.v * Oe[0] * et : Ke += Ne.t.v * Oe * et);
|
|
38777
38826
|
ft = !1;
|
|
38778
38827
|
}
|
|
38779
38828
|
for (Ke && (Ke += it); ut < l; ) se[ut].animatorJustifyOffset = Ke, ut += 1;
|
|
@@ -38794,21 +38843,21 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
38794
38843
|
}
|
|
38795
38844
|
Rt !== se[l].ind && (se[Rt] && (g += se[Rt].extra), g += se[l].an / 2, Rt = se[l].ind), g += j[0] * se[l].an * 5e-3;
|
|
38796
38845
|
var dt = 0;
|
|
38797
|
-
for (Ve = 0; Ve <
|
|
38846
|
+
for (Ve = 0; Ve < je; Ve += 1) (Ne = F[Ve].a).p.propType && ((Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars)).length ? dt += Ne.p.v[0] * Oe[0] : dt += Ne.p.v[0] * Oe), Ne.a.propType && ((Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars)).length ? dt += Ne.a.v[0] * Oe[0] : dt += Ne.a.v[0] * Oe);
|
|
38798
38847
|
for (_ = !0, this._pathData.a.v && (g = 0.5 * se[0].an + (O - this._pathData.f.v - 0.5 * se[0].an - 0.5 * se[se.length - 1].an) * Rt / (d - 1), g += this._pathData.f.v); _; ) S + I >= g + dt || !A ? (q = (g + dt - S) / b.partialLength, He = R.point[0] + (b.point[0] - R.point[0]) * q, Ze = R.point[1] + (b.point[1] - R.point[1]) * q, ne.translate(-j[0] * se[l].an * 5e-3, -j[1] * Le * 0.01), _ = !1) : A && (S += b.partialLength, (C += 1) >= A.length && (C = 0, M[E += 1] ? A = M[E].points : Q.v.c ? (C = 0, A = M[E = 0].points) : (S -= b.partialLength, A = null)), A && (R = b, I = (b = A[C]).partialLength));
|
|
38799
38848
|
Ge = se[l].an / 2 - se[l].add, ne.translate(-Ge, 0, 0);
|
|
38800
38849
|
} else Ge = se[l].an / 2 - se[l].add, ne.translate(-Ge, 0, 0), ne.translate(-j[0] * se[l].an * 5e-3, -j[1] * Le * 0.01, 0);
|
|
38801
|
-
for (Ve = 0; Ve <
|
|
38802
|
-
for (t.strokeWidthAnim && (Qe = t.sw || 0), t.strokeColorAnim && (Ye = t.sc ? [t.sc[0], t.sc[1], t.sc[2]] : [0, 0, 0]), t.fillColorAnim && t.fc && (Xe = [t.fc[0], t.fc[1], t.fc[2]]), Ve = 0; Ve <
|
|
38803
|
-
for (Ve = 0; Ve <
|
|
38804
|
-
for (Ve = 0; Ve <
|
|
38850
|
+
for (Ve = 0; Ve < je; Ve += 1) (Ne = F[Ve].a).t.propType && (Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars), n === 0 && t.j === 0 || (this._hasMaskedPath ? Oe.length ? g += Ne.t.v * Oe[0] : g += Ne.t.v * Oe : Oe.length ? n += Ne.t.v * Oe[0] : n += Ne.t.v * Oe));
|
|
38851
|
+
for (t.strokeWidthAnim && (Qe = t.sw || 0), t.strokeColorAnim && (Ye = t.sc ? [t.sc[0], t.sc[1], t.sc[2]] : [0, 0, 0]), t.fillColorAnim && t.fc && (Xe = [t.fc[0], t.fc[1], t.fc[2]]), Ve = 0; Ve < je; Ve += 1) (Ne = F[Ve].a).a.propType && ((Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars)).length ? ne.translate(-Ne.a.v[0] * Oe[0], -Ne.a.v[1] * Oe[1], Ne.a.v[2] * Oe[2]) : ne.translate(-Ne.a.v[0] * Oe, -Ne.a.v[1] * Oe, Ne.a.v[2] * Oe));
|
|
38852
|
+
for (Ve = 0; Ve < je; Ve += 1) (Ne = F[Ve].a).s.propType && ((Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars)).length ? ne.scale(1 + (Ne.s.v[0] - 1) * Oe[0], 1 + (Ne.s.v[1] - 1) * Oe[1], 1) : ne.scale(1 + (Ne.s.v[0] - 1) * Oe, 1 + (Ne.s.v[1] - 1) * Oe, 1));
|
|
38853
|
+
for (Ve = 0; Ve < je; Ve += 1) {
|
|
38805
38854
|
if (Ne = F[Ve].a, Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars), Ne.sk.propType && (Oe.length ? ne.skewFromAxis(-Ne.sk.v * Oe[0], Ne.sa.v * Oe[1]) : ne.skewFromAxis(-Ne.sk.v * Oe, Ne.sa.v * Oe)), Ne.r.propType && (Oe.length ? ne.rotateZ(-Ne.r.v * Oe[2]) : ne.rotateZ(-Ne.r.v * Oe)), Ne.ry.propType && (Oe.length ? ne.rotateY(Ne.ry.v * Oe[1]) : ne.rotateY(Ne.ry.v * Oe)), Ne.rx.propType && (Oe.length ? ne.rotateX(Ne.rx.v * Oe[0]) : ne.rotateX(Ne.rx.v * Oe)), Ne.o.propType && (Oe.length ? tt += (Ne.o.v * Oe[0] - tt) * Oe[0] : tt += (Ne.o.v * Oe - tt) * Oe), t.strokeWidthAnim && Ne.sw.propType && (Oe.length ? Qe += Ne.sw.v * Oe[0] : Qe += Ne.sw.v * Oe), t.strokeColorAnim && Ne.sc.propType) for (ot = 0; ot < 3; ot += 1) Oe.length ? Ye[ot] += (Ne.sc.v[ot] - Ye[ot]) * Oe[0] : Ye[ot] += (Ne.sc.v[ot] - Ye[ot]) * Oe;
|
|
38806
38855
|
if (t.fillColorAnim && t.fc) {
|
|
38807
38856
|
if (Ne.fc.propType) for (ot = 0; ot < 3; ot += 1) Oe.length ? Xe[ot] += (Ne.fc.v[ot] - Xe[ot]) * Oe[0] : Xe[ot] += (Ne.fc.v[ot] - Xe[ot]) * Oe;
|
|
38808
38857
|
Ne.fh.propType && (Xe = Oe.length ? addHueToRGB(Xe, Ne.fh.v * Oe[0]) : addHueToRGB(Xe, Ne.fh.v * Oe)), Ne.fs.propType && (Xe = Oe.length ? addSaturationToRGB(Xe, Ne.fs.v * Oe[0]) : addSaturationToRGB(Xe, Ne.fs.v * Oe)), Ne.fb.propType && (Xe = Oe.length ? addBrightnessToRGB(Xe, Ne.fb.v * Oe[0]) : addBrightnessToRGB(Xe, Ne.fb.v * Oe));
|
|
38809
38858
|
}
|
|
38810
38859
|
}
|
|
38811
|
-
for (Ve = 0; Ve <
|
|
38860
|
+
for (Ve = 0; Ve < je; Ve += 1) (Ne = F[Ve].a).p.propType && (Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars), this._hasMaskedPath ? Oe.length ? ne.translate(0, Ne.p.v[1] * Oe[0], -Ne.p.v[2] * Oe[1]) : ne.translate(0, Ne.p.v[1] * Oe, -Ne.p.v[2] * Oe) : Oe.length ? ne.translate(Ne.p.v[0] * Oe[0], Ne.p.v[1] * Oe[1], -Ne.p.v[2] * Oe[2]) : ne.translate(Ne.p.v[0] * Oe, Ne.p.v[1] * Oe, -Ne.p.v[2] * Oe));
|
|
38812
38861
|
if (t.strokeWidthAnim && (rt = Qe < 0 ? 0 : Qe), t.strokeColorAnim && (at = "rgb(" + Math.round(255 * Ye[0]) + "," + Math.round(255 * Ye[1]) + "," + Math.round(255 * Ye[2]) + ")"), t.fillColorAnim && t.fc && (st = "rgb(" + Math.round(255 * Xe[0]) + "," + Math.round(255 * Xe[1]) + "," + Math.round(255 * Xe[2]) + ")"), this._hasMaskedPath) {
|
|
38813
38862
|
if (ne.translate(0, -t.ls), ne.translate(0, j[1] * Le * 0.01 + o, 0), this._pathData.p.v) {
|
|
38814
38863
|
z = (b.point[1] - R.point[1]) / (b.point[0] - R.point[0]);
|
|
@@ -53932,8 +53981,8 @@ ${_.description}` : _.summary || `${S.toUpperCase()} ${C[C.length - 1]}`,
|
|
|
53932
53981
|
let F = `https://api.randmar.io${f}`;
|
|
53933
53982
|
try {
|
|
53934
53983
|
M.forEach((Ne) => {
|
|
53935
|
-
const Ve = `{${Ne}}`,
|
|
53936
|
-
F = F.replace(Ve, j[
|
|
53984
|
+
const Ve = `{${Ne}}`, je = Ne;
|
|
53985
|
+
F = F.replace(Ve, j[je]);
|
|
53937
53986
|
});
|
|
53938
53987
|
const ne = localStorage.getItem("access_token"), oe = {
|
|
53939
53988
|
method: S.toUpperCase(),
|
|
@@ -53943,8 +53992,8 @@ ${_.description}` : _.summary || `${S.toUpperCase()} ${C[C.length - 1]}`,
|
|
|
53943
53992
|
}
|
|
53944
53993
|
}, ge = [];
|
|
53945
53994
|
if ((((te = _.parameters) == null ? void 0 : te.filter((Ne) => Ne.in === "query")) || []).forEach((Ne) => {
|
|
53946
|
-
const Ve = Ne.name,
|
|
53947
|
-
|
|
53995
|
+
const Ve = Ne.name, je = j[Ve];
|
|
53996
|
+
je && ge.push(`${Ne.name}=${encodeURIComponent(je)}`);
|
|
53948
53997
|
}), ge.length > 0 && (F += `?${ge.join("&")}`), S === "post" || S === "put") {
|
|
53949
53998
|
const Ve = j[bodyKey];
|
|
53950
53999
|
Ve && (oe.body = Ve);
|
|
@@ -54055,8 +54104,8 @@ function useAIAssistant({ userId: t, smartAndSlow: e = !1 }) {
|
|
|
54055
54104
|
},
|
|
54056
54105
|
prettyName: "Fetching the account details of the specified user.",
|
|
54057
54106
|
details: "GET Partner Account",
|
|
54058
|
-
handler: async function(
|
|
54059
|
-
const Oe =
|
|
54107
|
+
handler: async function(je) {
|
|
54108
|
+
const Oe = je["user_id"], Le = await q({ applicationId: Oe });
|
|
54060
54109
|
return JSON.stringify(Le.data);
|
|
54061
54110
|
}
|
|
54062
54111
|
};
|
|
@@ -54070,10 +54119,10 @@ function useAIAssistant({ userId: t, smartAndSlow: e = !1 }) {
|
|
|
54070
54119
|
const Ne = $e.name ?? "", Ve = E.find((ze) => ze.declaration.name === Ne);
|
|
54071
54120
|
if (Ve === void 0)
|
|
54072
54121
|
return console.error(`Function ${Ne} not found`), "";
|
|
54073
|
-
const
|
|
54122
|
+
const je = $e.args || {};
|
|
54074
54123
|
try {
|
|
54075
|
-
C((Le) => [...Le, [`${Ve.prettyName}`, `${Ve.details} where ${JSON.stringify(
|
|
54076
|
-
const ze = await Ve.handler(
|
|
54124
|
+
C((Le) => [...Le, [`${Ve.prettyName}`, `${Ve.details} where ${JSON.stringify(je, null, 2)}`]]);
|
|
54125
|
+
const ze = await Ve.handler(je), Oe = {
|
|
54077
54126
|
content: /* @__PURE__ */ jsx(AiGeneratedContent, { data: JSON.parse(ze), prompt: "You are a UX master. Display the data in a compact way. Viewport is phone sized. Don't use vertical scroll areas." }),
|
|
54078
54127
|
timestamp: /* @__PURE__ */ new Date(),
|
|
54079
54128
|
isComponent: !0
|
|
@@ -54100,7 +54149,7 @@ function useAIAssistant({ userId: t, smartAndSlow: e = !1 }) {
|
|
|
54100
54149
|
return;
|
|
54101
54150
|
}
|
|
54102
54151
|
o("Using Randmar API...");
|
|
54103
|
-
const
|
|
54152
|
+
const je = [];
|
|
54104
54153
|
for (const Oe of Ve) {
|
|
54105
54154
|
const Le = await j(Oe), qe = {
|
|
54106
54155
|
functionResponse: {
|
|
@@ -54108,10 +54157,10 @@ function useAIAssistant({ userId: t, smartAndSlow: e = !1 }) {
|
|
|
54108
54157
|
response: { content: Le }
|
|
54109
54158
|
}
|
|
54110
54159
|
};
|
|
54111
|
-
|
|
54160
|
+
je.push(qe);
|
|
54112
54161
|
}
|
|
54113
54162
|
o("Composing response...");
|
|
54114
|
-
const ze = await f.sendMessage({ message:
|
|
54163
|
+
const ze = await f.sendMessage({ message: je });
|
|
54115
54164
|
await F(ze, Ne - 1);
|
|
54116
54165
|
};
|
|
54117
54166
|
useEffect(() => {
|
|
@@ -54133,7 +54182,7 @@ function useAIAssistant({ userId: t, smartAndSlow: e = !1 }) {
|
|
|
54133
54182
|
}
|
|
54134
54183
|
const oe = async ($e, Ne) => {
|
|
54135
54184
|
try {
|
|
54136
|
-
const
|
|
54185
|
+
const je = [$e.trim()];
|
|
54137
54186
|
if (Ne) {
|
|
54138
54187
|
o("Receiving attached file...");
|
|
54139
54188
|
let Oe = new Blob(
|
|
@@ -54155,13 +54204,13 @@ function useAIAssistant({ userId: t, smartAndSlow: e = !1 }) {
|
|
|
54155
54204
|
});
|
|
54156
54205
|
if (qe.state === "FAILED")
|
|
54157
54206
|
throw new Error("File processing failed.");
|
|
54158
|
-
|
|
54207
|
+
je.push({ fileData: { fileUri: qe.uri, mimeType: qe.mimeType } });
|
|
54159
54208
|
}
|
|
54160
54209
|
o("Thinking...");
|
|
54161
|
-
const ze = await f.sendMessage({ message:
|
|
54210
|
+
const ze = await f.sendMessage({ message: je });
|
|
54162
54211
|
await F(ze);
|
|
54163
|
-
} catch (
|
|
54164
|
-
console.error("[debug] error sending message:",
|
|
54212
|
+
} catch (je) {
|
|
54213
|
+
console.error("[debug] error sending message:", je), ge({
|
|
54165
54214
|
content: "I'm sorry, I encountered an error processing your request. Please try again later.",
|
|
54166
54215
|
timestamp: /* @__PURE__ */ new Date()
|
|
54167
54216
|
});
|
|
@@ -57787,12 +57836,12 @@ function requireInlineStyleParser() {
|
|
|
57787
57836
|
var $e = Q(), Ne = te(o);
|
|
57788
57837
|
if (Ne) {
|
|
57789
57838
|
if (ge(), !te(l)) return F("property missing ':'");
|
|
57790
|
-
var Ve = te(d),
|
|
57839
|
+
var Ve = te(d), je = $e({
|
|
57791
57840
|
type: R,
|
|
57792
57841
|
property: A(Ne[0].replace(t, C)),
|
|
57793
57842
|
value: Ve ? A(Ve[0].replace(t, C)) : C
|
|
57794
57843
|
});
|
|
57795
|
-
return te(f),
|
|
57844
|
+
return te(f), je;
|
|
57796
57845
|
}
|
|
57797
57846
|
}
|
|
57798
57847
|
function Ae() {
|
|
@@ -59795,7 +59844,7 @@ function createDOMPurify() {
|
|
|
59795
59844
|
ERB_EXPR: $e,
|
|
59796
59845
|
TMPLIT_EXPR: Ne,
|
|
59797
59846
|
DATA_ATTR: Ve,
|
|
59798
|
-
ARIA_ATTR:
|
|
59847
|
+
ARIA_ATTR: je,
|
|
59799
59848
|
IS_SCRIPT_OR_DATA: ze,
|
|
59800
59849
|
ATTR_WHITESPACE: Oe,
|
|
59801
59850
|
CUSTOM_ELEMENT: Le
|
|
@@ -59972,7 +60021,7 @@ function createDOMPurify() {
|
|
|
59972
60021
|
if (Ke && (It === "id" || It === "name") && (Ut in n || Ut in mn))
|
|
59973
60022
|
return !1;
|
|
59974
60023
|
if (!(rt && !Xe[It] && regExpTest(Ve, It))) {
|
|
59975
|
-
if (!(ot && regExpTest(
|
|
60024
|
+
if (!(ot && regExpTest(je, It))) {
|
|
59976
60025
|
if (!Ze[It] || Xe[It]) {
|
|
59977
60026
|
if (
|
|
59978
60027
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
@@ -60482,7 +60531,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60482
60531
|
}, 50);
|
|
60483
60532
|
})();
|
|
60484
60533
|
}, [g, o, t]);
|
|
60485
|
-
const [ge, se] = useState("approved"), [Ae, $e] = useState([t, ASSISTANT_ID]), [Ne, Ve] = useState(""), [
|
|
60534
|
+
const [ge, se] = useState("approved"), [Ae, $e] = useState([t, ASSISTANT_ID]), [Ne, Ve] = useState(""), [je, ze] = useState(null), [Oe, Le] = useState([]), [qe, Ge] = useState(""), [He, Ze] = useState(null), tt = useRef(null), Ye = useRef(null), [Qe, Xe] = useState(null), [ot, rt] = useState([]), [at, st] = useState([]), Ue = n || Ye, Rt = useRef(null), { toast: Je } = useToast(), yt = () => Oe.find((pt) => pt.partner1 === (Ae == null ? void 0 : Ae[0]) && pt.partner2 === (Ae == null ? void 0 : Ae[1])), Mt = () => (Ae == null ? void 0 : Ae[0]) === ASSISTANT_ID || (Ae == null ? void 0 : Ae[1]) === ASSISTANT_ID;
|
|
60486
60535
|
function qt() {
|
|
60487
60536
|
const pt = yt();
|
|
60488
60537
|
pt && (Mt() || O({ routeApplicationId: t, conversationId: pt.conversationID }));
|
|
@@ -60558,13 +60607,13 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60558
60607
|
Ft(Zt), Zt.toPartnerID == ASSISTANT_ID ? (z(Zt.content, Qe ?? void 0), Qe && rt((Kt) => [...Kt, Qe.name])) : He.invoke("NewMessage", Zt).catch((Kt) => console.error("Error sending message:", Kt)), Ve(""), Xe(null), Rt.current && (Rt.current.value = "");
|
|
60559
60608
|
}, it = (pt, Zt) => ze([pt, Zt]);
|
|
60560
60609
|
if (useEffect(() => {
|
|
60561
|
-
if (
|
|
60562
|
-
const pt = Oe.find((Kt) => Kt.conversationID ===
|
|
60563
|
-
if (pt && (pt.pending && se("pending"), $e([pt.partner1, pt.partner2]), !(
|
|
60564
|
-
var Zt =
|
|
60610
|
+
if (je === null) return;
|
|
60611
|
+
const pt = Oe.find((Kt) => Kt.conversationID === je[0]);
|
|
60612
|
+
if (pt && (pt.pending && se("pending"), $e([pt.partner1, pt.partner2]), !(je[0] === -1 && !F) && !(je[0] !== -1 && !He))) {
|
|
60613
|
+
var Zt = je[1];
|
|
60565
60614
|
ze(null), Zt && Ke(Zt);
|
|
60566
60615
|
}
|
|
60567
|
-
}, [
|
|
60616
|
+
}, [je, Oe, se, $e, F, He]), useImperativeHandle(f, () => ({
|
|
60568
60617
|
setActiveChatAndSendMessage: it
|
|
60569
60618
|
})), !F)
|
|
60570
60619
|
return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
@@ -61123,13 +61172,13 @@ var getValueAndMessage = (t) => isObject(t) && !isRegex(t) ? t : {
|
|
|
61123
61172
|
return {};
|
|
61124
61173
|
const z = g ? g[0] : f, Q = (Ae) => {
|
|
61125
61174
|
l && z.reportValidity && (z.setCustomValidity(isBoolean(Ae) ? "" : Ae || ""), z.reportValidity());
|
|
61126
|
-
}, j = {}, F = isRadioInput(f), te = isCheckBoxInput(f), ne = F || te, oe = (I || isFileInput(f)) && isUndefined(f.value) && isUndefined(q) || isHTMLElement(f) && f.value === "" || q === "" || Array.isArray(q) && !q.length, ge = appendErrors.bind(null, M, o, j), se = (Ae, $e, Ne, Ve = INPUT_VALIDATION_RULES.maxLength,
|
|
61175
|
+
}, j = {}, F = isRadioInput(f), te = isCheckBoxInput(f), ne = F || te, oe = (I || isFileInput(f)) && isUndefined(f.value) && isUndefined(q) || isHTMLElement(f) && f.value === "" || q === "" || Array.isArray(q) && !q.length, ge = appendErrors.bind(null, M, o, j), se = (Ae, $e, Ne, Ve = INPUT_VALIDATION_RULES.maxLength, je = INPUT_VALIDATION_RULES.minLength) => {
|
|
61127
61176
|
const ze = Ae ? $e : Ne;
|
|
61128
61177
|
j[M] = {
|
|
61129
|
-
type: Ae ? Ve :
|
|
61178
|
+
type: Ae ? Ve : je,
|
|
61130
61179
|
message: ze,
|
|
61131
61180
|
ref: f,
|
|
61132
|
-
...ge(Ae ? Ve :
|
|
61181
|
+
...ge(Ae ? Ve : je, ze)
|
|
61133
61182
|
};
|
|
61134
61183
|
};
|
|
61135
61184
|
if (d ? !Array.isArray(q) || !q.length : b && (!ne && (oe || isNullOrUndefined(q)) || isBoolean(q) && !q || te && !getCheckboxValue(g).isValid || F && !getRadioValue(g).isValid)) {
|
|
@@ -61146,11 +61195,11 @@ var getValueAndMessage = (t) => isObject(t) && !isRegex(t) ? t : {
|
|
|
61146
61195
|
let Ae, $e;
|
|
61147
61196
|
const Ne = getValueAndMessage(E), Ve = getValueAndMessage(C);
|
|
61148
61197
|
if (!isNullOrUndefined(q) && !isNaN(q)) {
|
|
61149
|
-
const
|
|
61150
|
-
isNullOrUndefined(Ne.value) || (Ae =
|
|
61198
|
+
const je = f.valueAsNumber || q && +q;
|
|
61199
|
+
isNullOrUndefined(Ne.value) || (Ae = je > Ne.value), isNullOrUndefined(Ve.value) || ($e = je < Ve.value);
|
|
61151
61200
|
} else {
|
|
61152
|
-
const
|
|
61153
|
-
isString(Ne.value) && q && (Ae = Oe ? ze(q) > ze(Ne.value) : Le ? q > Ne.value :
|
|
61201
|
+
const je = f.valueAsDate || new Date(q), ze = (qe) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + qe), Oe = f.type == "time", Le = f.type == "week";
|
|
61202
|
+
isString(Ne.value) && q && (Ae = Oe ? ze(q) > ze(Ne.value) : Le ? q > Ne.value : je > new Date(Ne.value)), isString(Ve.value) && q && ($e = Oe ? ze(q) < ze(Ve.value) : Le ? q < Ve.value : je < new Date(Ve.value));
|
|
61154
61203
|
}
|
|
61155
61204
|
if ((Ae || $e) && (se(!!Ae, Ne.message, Ve.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min), !o))
|
|
61156
61205
|
return Q(j[M].message), j;
|
|
@@ -61397,7 +61446,7 @@ function createFormControl(t = {}) {
|
|
|
61397
61446
|
const ft = it[ut], dt = Ke + "." + ut, Ct = get(o, dt);
|
|
61398
61447
|
(g.array.has(Ke) || isObject(ft) || Ct && !Ct._f) && !isDateObject(ft) ? Ve(dt, ft, et) : Ne(dt, ft, et);
|
|
61399
61448
|
}
|
|
61400
|
-
},
|
|
61449
|
+
}, je = (Ke, it, et = {}) => {
|
|
61401
61450
|
const ut = get(o, Ke), ft = g.array.has(Ke), dt = cloneObject(it);
|
|
61402
61451
|
set(d, Ke, dt), ft ? (E.array.next({
|
|
61403
61452
|
name: Ke,
|
|
@@ -61600,7 +61649,7 @@ function createFormControl(t = {}) {
|
|
|
61600
61649
|
}), ut)
|
|
61601
61650
|
throw ut;
|
|
61602
61651
|
}, Rt = (Ke, it = {}) => {
|
|
61603
|
-
get(o, Ke) && (isUndefined(it.defaultValue) ?
|
|
61652
|
+
get(o, Ke) && (isUndefined(it.defaultValue) ? je(Ke, cloneObject(get(l, Ke))) : (je(Ke, it.defaultValue), set(l, Ke, cloneObject(it.defaultValue))), it.keepTouched || unset(n.touchedFields, Ke), it.keepDirty || (unset(n.dirtyFields, Ke), n.isDirty = it.defaultValue ? se(Ke, cloneObject(get(l, Ke))) : se()), it.keepError || (unset(n.errors, Ke), _.isValid && M()), E.state.next({ ...n }));
|
|
61604
61653
|
}, Je = (Ke, it = {}) => {
|
|
61605
61654
|
const et = Ke ? cloneObject(Ke) : l, ut = cloneObject(et), ft = isEmptyObject$1(Ke), dt = ft ? l : ut;
|
|
61606
61655
|
if (it.keepDefaultValues || (l = et), !it.keepValues) {
|
|
@@ -61610,7 +61659,7 @@ function createFormControl(t = {}) {
|
|
|
61610
61659
|
...Object.keys(getDirtyFields(l, d))
|
|
61611
61660
|
]);
|
|
61612
61661
|
for (const zt of Array.from(Ct))
|
|
61613
|
-
get(n.dirtyFields, zt) ? set(dt, zt, get(d, zt)) :
|
|
61662
|
+
get(n.dirtyFields, zt) ? set(dt, zt, get(d, zt)) : je(zt, get(dt, zt));
|
|
61614
61663
|
} else {
|
|
61615
61664
|
if (isWeb && isUndefined(Ke))
|
|
61616
61665
|
for (const Ct of g.mount) {
|
|
@@ -61627,7 +61676,7 @@ function createFormControl(t = {}) {
|
|
|
61627
61676
|
}
|
|
61628
61677
|
}
|
|
61629
61678
|
for (const Ct of g.mount)
|
|
61630
|
-
|
|
61679
|
+
je(Ct, get(dt, Ct));
|
|
61631
61680
|
}
|
|
61632
61681
|
d = cloneObject(dt), E.array.next({
|
|
61633
61682
|
values: { ...dt }
|
|
@@ -61730,7 +61779,7 @@ function createFormControl(t = {}) {
|
|
|
61730
61779
|
register: rt,
|
|
61731
61780
|
handleSubmit: Ue,
|
|
61732
61781
|
watch: tt,
|
|
61733
|
-
setValue:
|
|
61782
|
+
setValue: je,
|
|
61734
61783
|
getValues: qe,
|
|
61735
61784
|
reset: yt,
|
|
61736
61785
|
resetField: Rt,
|
|
@@ -61945,7 +61994,7 @@ function requireReactIs_development() {
|
|
|
61945
61994
|
}
|
|
61946
61995
|
}
|
|
61947
61996
|
}
|
|
61948
|
-
var j = b, F = S, te = g, ne = f, oe = e, ge = _, se = o, Ae = A, $e = R, Ne = n, Ve = d,
|
|
61997
|
+
var j = b, F = S, te = g, ne = f, oe = e, ge = _, se = o, Ae = A, $e = R, Ne = n, Ve = d, je = l, ze = C, Oe = !1;
|
|
61949
61998
|
function Le(Ue) {
|
|
61950
61999
|
return Oe || (Oe = !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.")), qe(Ue) || Q(Ue) === b;
|
|
61951
62000
|
}
|
|
@@ -61985,7 +62034,7 @@ function requireReactIs_development() {
|
|
|
61985
62034
|
function st(Ue) {
|
|
61986
62035
|
return Q(Ue) === C;
|
|
61987
62036
|
}
|
|
61988
|
-
reactIs_development.AsyncMode = j, reactIs_development.ConcurrentMode = F, reactIs_development.ContextConsumer = te, reactIs_development.ContextProvider = ne, reactIs_development.Element = oe, reactIs_development.ForwardRef = ge, reactIs_development.Fragment = se, reactIs_development.Lazy = Ae, reactIs_development.Memo = $e, reactIs_development.Portal = Ne, reactIs_development.Profiler = Ve, reactIs_development.StrictMode =
|
|
62037
|
+
reactIs_development.AsyncMode = j, reactIs_development.ConcurrentMode = F, reactIs_development.ContextConsumer = te, reactIs_development.ContextProvider = ne, reactIs_development.Element = oe, reactIs_development.ForwardRef = ge, reactIs_development.Fragment = se, reactIs_development.Lazy = Ae, reactIs_development.Memo = $e, reactIs_development.Portal = Ne, reactIs_development.Profiler = Ve, reactIs_development.StrictMode = je, reactIs_development.Suspense = ze, reactIs_development.isAsyncMode = Le, reactIs_development.isConcurrentMode = qe, reactIs_development.isContextConsumer = Ge, reactIs_development.isContextProvider = He, reactIs_development.isElement = Ze, reactIs_development.isForwardRef = tt, reactIs_development.isFragment = Ye, reactIs_development.isLazy = Qe, reactIs_development.isMemo = Xe, reactIs_development.isPortal = ot, reactIs_development.isProfiler = rt, reactIs_development.isStrictMode = at, reactIs_development.isSuspense = st, reactIs_development.isValidElementType = z, reactIs_development.typeOf = Q;
|
|
61989
62038
|
}()), reactIs_development;
|
|
61990
62039
|
}
|
|
61991
62040
|
var hasRequiredReactIs;
|
|
@@ -63918,27 +63967,20 @@ function BillingCard({ appID: t, reseller: e, isLoading: n, withoutReports: o, u
|
|
|
63918
63967
|
icon: CreditCard
|
|
63919
63968
|
}
|
|
63920
63969
|
], [j] = useLazyGetV4ResellerByRouteResellerIdDocumentAndDocumentNumberPdfQuery(), F = async (ge) => {
|
|
63921
|
-
var se;
|
|
63922
63970
|
S(!1), ge ? C(!0) : R(!0);
|
|
63971
|
+
let se = "";
|
|
63923
63972
|
try {
|
|
63924
|
-
const $e = await j({
|
|
63973
|
+
const $e = (await j({
|
|
63925
63974
|
routeResellerId: t,
|
|
63926
63975
|
documentNumber: `ST${t}`
|
|
63927
|
-
});
|
|
63928
|
-
if (!$e.
|
|
63976
|
+
})).data;
|
|
63977
|
+
if (!$e.url || !$e.filename)
|
|
63929
63978
|
throw new Error("No data received for download.");
|
|
63930
|
-
|
|
63931
|
-
|
|
63932
|
-
if (Fe) {
|
|
63933
|
-
const qe = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(Fe);
|
|
63934
|
-
qe != null && qe[1] && (ze = qe[1].replace(/['"]/g, ""));
|
|
63935
|
-
}
|
|
63936
|
-
const Oe = new Blob([$e.data], { type: "application/pdf" }), Le = window.URL.createObjectURL(Oe);
|
|
63937
|
-
if (ge)
|
|
63938
|
-
window.open(Le);
|
|
63979
|
+
if (se = $e.url, ge)
|
|
63980
|
+
window.open(se);
|
|
63939
63981
|
else {
|
|
63940
|
-
const
|
|
63941
|
-
|
|
63982
|
+
const Ne = document.createElement("a");
|
|
63983
|
+
Ne.href = se, Ne.download = $e.filename, document.body.appendChild(Ne), Ne.click(), Ne.remove();
|
|
63942
63984
|
}
|
|
63943
63985
|
d({
|
|
63944
63986
|
title: "Success",
|
|
@@ -63952,7 +63994,9 @@ function BillingCard({ appID: t, reseller: e, isLoading: n, withoutReports: o, u
|
|
|
63952
63994
|
variant: "destructive"
|
|
63953
63995
|
});
|
|
63954
63996
|
} finally {
|
|
63955
|
-
ge ? C(!1) : R(!1)
|
|
63997
|
+
ge ? C(!1) : R(!1), se && setTimeout(() => {
|
|
63998
|
+
window.URL.revokeObjectURL(se);
|
|
63999
|
+
}, 1e3);
|
|
63956
64000
|
}
|
|
63957
64001
|
}, [te] = usePostV4ResellerByRouteResellerIdDocumentStatementEmailMutation(), ne = async () => {
|
|
63958
64002
|
if (!q || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(q)) {
|
|
@@ -64135,24 +64179,24 @@ $10 with opportunities under $1,000` : t === "D" ? "$15 under $1,500" : t === "E
|
|
|
64135
64179
|
useEffect(() => {
|
|
64136
64180
|
I(E((n == null ? void 0 : n.Priority) ?? "")), q(R((n == null ? void 0 : n.ShippingProfile) ?? "")), Q(A(n == null ? void 0 : n.PriceProfile));
|
|
64137
64181
|
}, [n]);
|
|
64138
|
-
const ne = async (Ve,
|
|
64182
|
+
const ne = async (Ve, je, ze, Oe) => {
|
|
64139
64183
|
try {
|
|
64140
|
-
(await _({ applicationId: o, fieldName: Ve, newValue:
|
|
64184
|
+
(await _({ applicationId: o, fieldName: Ve, newValue: je })).error ? d({ title: "Error", description: Oe, variant: "destructive" }) : d({ title: "Success", description: ze, variant: "success" });
|
|
64141
64185
|
} catch {
|
|
64142
64186
|
d({ title: "Error", description: "An unexpected error occurred", variant: "destructive" });
|
|
64143
64187
|
}
|
|
64144
64188
|
}, oe = async (Ve) => {
|
|
64145
64189
|
I(Ve);
|
|
64146
|
-
const
|
|
64147
|
-
ne("Priority",
|
|
64190
|
+
const je = j(Ve);
|
|
64191
|
+
ne("Priority", je, `Priority updated to ${je}`, "Failed to update priority");
|
|
64148
64192
|
}, ge = async (Ve) => {
|
|
64149
64193
|
q(Ve);
|
|
64150
|
-
const
|
|
64151
|
-
ne("ShippingProfile",
|
|
64194
|
+
const je = F(Ve);
|
|
64195
|
+
ne("ShippingProfile", je, `Shipping profile updated to ${je}`, "Failed to update shipping profile");
|
|
64152
64196
|
}, se = async (Ve) => {
|
|
64153
64197
|
Q(Ve);
|
|
64154
|
-
const
|
|
64155
|
-
ne("PriceProfile",
|
|
64198
|
+
const je = te(Ve);
|
|
64199
|
+
ne("PriceProfile", je, `Pricing profile updated to ${je}`, "Failed to update pricing profile");
|
|
64156
64200
|
}, Ae = async () => {
|
|
64157
64201
|
try {
|
|
64158
64202
|
const Ve = await _({ applicationId: o, fieldName: "Tier", newValue: b });
|
|
@@ -64658,36 +64702,33 @@ const PartnerLogo = ({
|
|
|
64658
64702
|
height: o = 64,
|
|
64659
64703
|
align: l = ""
|
|
64660
64704
|
}) => {
|
|
64661
|
-
const d = useRef(null),
|
|
64705
|
+
const d = useRef(null), f = useIntersectionObserver({
|
|
64662
64706
|
elementRef: d,
|
|
64663
64707
|
threshold: 0.1,
|
|
64664
64708
|
rootMargin: "100px",
|
|
64665
64709
|
freezeOnceVisible: !0
|
|
64666
64710
|
}), {
|
|
64667
|
-
data:
|
|
64668
|
-
isFetching:
|
|
64711
|
+
data: g,
|
|
64712
|
+
isFetching: b,
|
|
64713
|
+
isSuccess: S
|
|
64669
64714
|
} = useGetV4PartnerByApplicationIdAccountLogoExistsQuery(
|
|
64670
64715
|
{ applicationId: t ?? "" },
|
|
64671
|
-
{ skip: !t || !
|
|
64672
|
-
)
|
|
64673
|
-
|
|
64674
|
-
|
|
64675
|
-
|
|
64676
|
-
|
|
64677
|
-
|
|
64678
|
-
|
|
64679
|
-
|
|
64680
|
-
|
|
64681
|
-
}
|
|
64682
|
-
|
|
64683
|
-
|
|
64684
|
-
g(!1);
|
|
64685
|
-
}));
|
|
64686
|
-
}, [t, C, E]);
|
|
64687
|
-
const R = "No Logo", A = e || (t ? `Partner ID: ${t}` : "Logo not available (no ID)");
|
|
64716
|
+
{ skip: !t || !f }
|
|
64717
|
+
), {
|
|
64718
|
+
data: _,
|
|
64719
|
+
isFetching: C
|
|
64720
|
+
} = useGetV4PartnerByApplicationIdAccountLogoQuery(
|
|
64721
|
+
{
|
|
64722
|
+
applicationId: t ?? "",
|
|
64723
|
+
width: n,
|
|
64724
|
+
height: o,
|
|
64725
|
+
align: l
|
|
64726
|
+
},
|
|
64727
|
+
{ skip: !S || g != !0 }
|
|
64728
|
+
), E = "No Logo", R = e || (t ? `Partner ID: ${t}` : "Logo not available (no ID)");
|
|
64688
64729
|
return /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 100, children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
64689
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx("div", { className: "flex h-full w-full cursor-default", ref: d, children: !
|
|
64690
|
-
/* @__PURE__ */ jsx(TooltipContent, { side: "top", align: "center", children:
|
|
64730
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx("div", { className: "flex h-full w-full cursor-default", ref: d, children: !f || b || C ? /* @__PURE__ */ jsx(Skeleton, { className: "h-full w-full rounded-sm" }) : _ ? /* @__PURE__ */ jsx("img", { src: _, alt: R, className: "h-full w-full object-contain rounded-sm" }) : /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center border border-dashed border-border rounded-sm bg-muted/20 p-1", title: R, children: /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground font-mono text-center leading-none", children: E }) }) }) }),
|
|
64731
|
+
/* @__PURE__ */ jsx(TooltipContent, { side: "top", align: "center", children: R })
|
|
64691
64732
|
] }) });
|
|
64692
64733
|
};
|
|
64693
64734
|
function ManufacturerCard({
|
|
@@ -68053,10 +68094,10 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
68053
68094
|
6: b + " const class extends export import super"
|
|
68054
68095
|
}, _ = /^in(stanceof)?$/, C = new RegExp("[" + f + "]"), E = new RegExp("[" + f + d + "]");
|
|
68055
68096
|
function R(V, ae) {
|
|
68056
|
-
for (var Be = 65536,
|
|
68057
|
-
if (Be += ae[
|
|
68097
|
+
for (var Be = 65536, Fe = 0; Fe < ae.length; Fe += 2) {
|
|
68098
|
+
if (Be += ae[Fe], Be > V)
|
|
68058
68099
|
return !1;
|
|
68059
|
-
if (Be += ae[
|
|
68100
|
+
if (Be += ae[Fe + 1], Be >= V)
|
|
68060
68101
|
return !0;
|
|
68061
68102
|
}
|
|
68062
68103
|
return !1;
|
|
@@ -68161,14 +68202,14 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
68161
68202
|
}
|
|
68162
68203
|
function ge(V, ae, Be) {
|
|
68163
68204
|
Be === void 0 && (Be = V.length);
|
|
68164
|
-
for (var
|
|
68165
|
-
var We = V.charCodeAt(
|
|
68205
|
+
for (var Fe = ae; Fe < Be; Fe++) {
|
|
68206
|
+
var We = V.charCodeAt(Fe);
|
|
68166
68207
|
if (oe(We))
|
|
68167
|
-
return
|
|
68208
|
+
return Fe < Be - 1 && We === 13 && V.charCodeAt(Fe + 1) === 10 ? Fe + 2 : Fe + 1;
|
|
68168
68209
|
}
|
|
68169
68210
|
return -1;
|
|
68170
68211
|
}
|
|
68171
|
-
var se = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ae = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, $e = Object.prototype, Ne = $e.hasOwnProperty, Ve = $e.toString,
|
|
68212
|
+
var se = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ae = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, $e = Object.prototype, Ne = $e.hasOwnProperty, Ve = $e.toString, je = Object.hasOwn || function(V, ae) {
|
|
68172
68213
|
return Ne.call(V, ae);
|
|
68173
68214
|
}, ze = Array.isArray || function(V) {
|
|
68174
68215
|
return Ve.call(V) === "[object Array]";
|
|
@@ -68185,15 +68226,15 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
68185
68226
|
He.prototype.offset = function(ae) {
|
|
68186
68227
|
return new He(this.line, this.column + ae);
|
|
68187
68228
|
};
|
|
68188
|
-
var Ze = function(ae, Be,
|
|
68189
|
-
this.start = Be, this.end =
|
|
68229
|
+
var Ze = function(ae, Be, Fe) {
|
|
68230
|
+
this.start = Be, this.end = Fe, ae.sourceFile !== null && (this.source = ae.sourceFile);
|
|
68190
68231
|
};
|
|
68191
68232
|
function tt(V, ae) {
|
|
68192
|
-
for (var Be = 1,
|
|
68193
|
-
var We = ge(V,
|
|
68233
|
+
for (var Be = 1, Fe = 0; ; ) {
|
|
68234
|
+
var We = ge(V, Fe, ae);
|
|
68194
68235
|
if (We < 0)
|
|
68195
|
-
return new He(Be, ae -
|
|
68196
|
-
++Be,
|
|
68236
|
+
return new He(Be, ae - Fe);
|
|
68237
|
+
++Be, Fe = We;
|
|
68197
68238
|
}
|
|
68198
68239
|
}
|
|
68199
68240
|
var Ye = {
|
|
@@ -68220,21 +68261,21 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
68220
68261
|
function Xe(V) {
|
|
68221
68262
|
var ae = {};
|
|
68222
68263
|
for (var Be in Ye)
|
|
68223
|
-
ae[Be] = V &&
|
|
68264
|
+
ae[Be] = V && je(V, Be) ? V[Be] : Ye[Be];
|
|
68224
68265
|
if (ae.ecmaVersion === "latest" ? ae.ecmaVersion = 1e8 : ae.ecmaVersion == null ? (!Qe && typeof console == "object" && console.warn && (Qe = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
68225
68266
|
Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion = 11) : ae.ecmaVersion >= 2015 && (ae.ecmaVersion -= 2009), ae.allowReserved == null && (ae.allowReserved = ae.ecmaVersion < 5), (!V || V.allowHashBang == null) && (ae.allowHashBang = ae.ecmaVersion >= 14), ze(ae.onToken)) {
|
|
68226
|
-
var
|
|
68267
|
+
var Fe = ae.onToken;
|
|
68227
68268
|
ae.onToken = function(We) {
|
|
68228
|
-
return
|
|
68269
|
+
return Fe.push(We);
|
|
68229
68270
|
};
|
|
68230
68271
|
}
|
|
68231
68272
|
return ze(ae.onComment) && (ae.onComment = ot(ae, ae.onComment)), ae;
|
|
68232
68273
|
}
|
|
68233
68274
|
function ot(V, ae) {
|
|
68234
|
-
return function(Be,
|
|
68275
|
+
return function(Be, Fe, We, lt, ct, $t) {
|
|
68235
68276
|
var Dt = {
|
|
68236
68277
|
type: Be ? "Block" : "Line",
|
|
68237
|
-
value:
|
|
68278
|
+
value: Fe,
|
|
68238
68279
|
start: We,
|
|
68239
68280
|
end: lt
|
|
68240
68281
|
};
|
|
@@ -68245,13 +68286,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68245
68286
|
function Ft(V, ae) {
|
|
68246
68287
|
return at | (V ? st : 0) | (ae ? Ue : 0);
|
|
68247
68288
|
}
|
|
68248
|
-
var Ke = 0, it = 1, et = 2, ut = 3, ft = 4, dt = 5, Ct = function(ae, Be,
|
|
68289
|
+
var Ke = 0, it = 1, et = 2, ut = 3, ft = 4, dt = 5, Ct = function(ae, Be, Fe) {
|
|
68249
68290
|
this.options = ae = Xe(ae), this.sourceFile = ae.sourceFile, this.keywords = Le(S[ae.ecmaVersion >= 6 ? 6 : ae.sourceType === "module" ? "5module" : 5]);
|
|
68250
68291
|
var We = "";
|
|
68251
68292
|
ae.allowReserved !== !0 && (We = g[ae.ecmaVersion >= 6 ? 6 : ae.ecmaVersion === 5 ? 5 : 3], ae.sourceType === "module" && (We += " await")), this.reservedWords = Le(We);
|
|
68252
68293
|
var lt = (We ? We + " " : "") + g.strict;
|
|
68253
|
-
this.reservedWordsStrict = Le(lt), this.reservedWordsStrictBind = Le(lt + " " + g.strictBind), this.input = String(Be), this.containsEsc = !1,
|
|
68254
|
-
`,
|
|
68294
|
+
this.reservedWordsStrict = Le(lt), this.reservedWordsStrictBind = Le(lt + " " + g.strictBind), this.input = String(Be), this.containsEsc = !1, Fe ? (this.pos = Fe, this.lineStart = this.input.lastIndexOf(`
|
|
68295
|
+
`, Fe - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(te).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = F.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = ae.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && ae.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(rt), this.regexpState = null, this.privateNameStack = [];
|
|
68255
68296
|
}, zt = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
|
|
68256
68297
|
Ct.prototype.parse = function() {
|
|
68257
68298
|
var ae = this.options.program || this.startNode();
|
|
@@ -68286,13 +68327,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68286
68327
|
}, Ct.extend = function() {
|
|
68287
68328
|
for (var ae = [], Be = arguments.length; Be--; )
|
|
68288
68329
|
ae[Be] = arguments[Be];
|
|
68289
|
-
for (var
|
|
68290
|
-
|
|
68291
|
-
return
|
|
68330
|
+
for (var Fe = this, We = 0; We < ae.length; We++)
|
|
68331
|
+
Fe = ae[We](Fe);
|
|
68332
|
+
return Fe;
|
|
68292
68333
|
}, Ct.parse = function(ae, Be) {
|
|
68293
68334
|
return new this(Be, ae).parse();
|
|
68294
|
-
}, Ct.parseExpressionAt = function(ae, Be,
|
|
68295
|
-
var We = new this(
|
|
68335
|
+
}, Ct.parseExpressionAt = function(ae, Be, Fe) {
|
|
68336
|
+
var We = new this(Fe, ae, Be);
|
|
68296
68337
|
return We.nextToken(), We.parseExpression();
|
|
68297
68338
|
}, Ct.tokenizer = function(ae, Be) {
|
|
68298
68339
|
return new this(Be, ae);
|
|
@@ -68308,8 +68349,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68308
68349
|
return !1;
|
|
68309
68350
|
if ((ae[1] || ae[2]) === "use strict") {
|
|
68310
68351
|
Ae.lastIndex = V + ae[0].length;
|
|
68311
|
-
var Be = Ae.exec(this.input),
|
|
68312
|
-
return We === ";" || We === "}" || te.test(Be[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(We) || We === "!" && this.input.charAt(
|
|
68352
|
+
var Be = Ae.exec(this.input), Fe = Be.index + Be[0].length, We = this.input.charAt(Fe);
|
|
68353
|
+
return We === ";" || We === "}" || te.test(Be[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(We) || We === "!" && this.input.charAt(Fe + 1) === "=");
|
|
68313
68354
|
}
|
|
68314
68355
|
V += ae[0].length, Ae.lastIndex = V, V += Ae.exec(this.input)[0].length, this.input[V] === ";" && V++;
|
|
68315
68356
|
}
|
|
@@ -68348,10 +68389,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68348
68389
|
}, Yt.checkExpressionErrors = function(V, ae) {
|
|
68349
68390
|
if (!V)
|
|
68350
68391
|
return !1;
|
|
68351
|
-
var Be = V.shorthandAssign,
|
|
68392
|
+
var Be = V.shorthandAssign, Fe = V.doubleProto;
|
|
68352
68393
|
if (!ae)
|
|
68353
|
-
return Be >= 0 ||
|
|
68354
|
-
Be >= 0 && this.raise(Be, "Shorthand property assignments are valid only in destructuring patterns"),
|
|
68394
|
+
return Be >= 0 || Fe >= 0;
|
|
68395
|
+
Be >= 0 && this.raise(Be, "Shorthand property assignments are valid only in destructuring patterns"), Fe >= 0 && this.raiseRecoverable(Fe, "Redefinition of __proto__ property");
|
|
68355
68396
|
}, Yt.checkYieldAwaitInDefaultParams = function() {
|
|
68356
68397
|
this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos) && this.raise(this.yieldPos, "Yield expression cannot be a default value"), this.awaitPos && this.raise(this.awaitPos, "Await expression cannot be a default value");
|
|
68357
68398
|
}, Yt.isSimpleAssignTarget = function(V) {
|
|
@@ -68365,8 +68406,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68365
68406
|
V.body.push(Be);
|
|
68366
68407
|
}
|
|
68367
68408
|
if (this.inModule)
|
|
68368
|
-
for (var
|
|
68369
|
-
var lt = We[
|
|
68409
|
+
for (var Fe = 0, We = Object.keys(this.undefinedExports); Fe < We.length; Fe += 1) {
|
|
68410
|
+
var lt = We[Fe];
|
|
68370
68411
|
this.raiseRecoverable(this.undefinedExports[lt].start, "Export '" + lt + "' is not defined");
|
|
68371
68412
|
}
|
|
68372
68413
|
return this.adaptDirectivePrologue(V.body), this.next(), V.sourceType = this.options.sourceType, this.finishNode(V, "Program");
|
|
@@ -68376,17 +68417,17 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68376
68417
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
68377
68418
|
return !1;
|
|
68378
68419
|
Ae.lastIndex = this.pos;
|
|
68379
|
-
var ae = Ae.exec(this.input), Be = this.pos + ae[0].length,
|
|
68380
|
-
if (
|
|
68420
|
+
var ae = Ae.exec(this.input), Be = this.pos + ae[0].length, Fe = this.input.charCodeAt(Be);
|
|
68421
|
+
if (Fe === 91 || Fe === 92)
|
|
68381
68422
|
return !0;
|
|
68382
68423
|
if (V)
|
|
68383
68424
|
return !1;
|
|
68384
|
-
if (
|
|
68425
|
+
if (Fe === 123 || Fe > 55295 && Fe < 56320)
|
|
68385
68426
|
return !0;
|
|
68386
|
-
if (A(
|
|
68387
|
-
for (var We = Be + 1; M(
|
|
68427
|
+
if (A(Fe, !0)) {
|
|
68428
|
+
for (var We = Be + 1; M(Fe = this.input.charCodeAt(We), !0); )
|
|
68388
68429
|
++We;
|
|
68389
|
-
if (
|
|
68430
|
+
if (Fe === 92 || Fe > 55295 && Fe < 56320)
|
|
68390
68431
|
return !0;
|
|
68391
68432
|
var lt = this.input.slice(Be, We);
|
|
68392
68433
|
if (!_.test(lt))
|
|
@@ -68400,11 +68441,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68400
68441
|
var V = Ae.exec(this.input), ae = this.pos + V[0].length, Be;
|
|
68401
68442
|
return !te.test(this.input.slice(this.pos, ae)) && this.input.slice(ae, ae + 8) === "function" && (ae + 8 === this.input.length || !(M(Be = this.input.charCodeAt(ae + 8)) || Be > 55295 && Be < 56320));
|
|
68402
68443
|
}, mt.parseStatement = function(V, ae, Be) {
|
|
68403
|
-
var
|
|
68404
|
-
switch (this.isLet(V) && (
|
|
68444
|
+
var Fe = this.type, We = this.startNode(), lt;
|
|
68445
|
+
switch (this.isLet(V) && (Fe = F._var, lt = "let"), Fe) {
|
|
68405
68446
|
case F._break:
|
|
68406
68447
|
case F._continue:
|
|
68407
|
-
return this.parseBreakContinueStatement(We,
|
|
68448
|
+
return this.parseBreakContinueStatement(We, Fe.keyword);
|
|
68408
68449
|
case F._debugger:
|
|
68409
68450
|
return this.parseDebuggerStatement(We);
|
|
68410
68451
|
case F._do:
|
|
@@ -68438,28 +68479,28 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68438
68479
|
return this.parseEmptyStatement(We);
|
|
68439
68480
|
case F._export:
|
|
68440
68481
|
case F._import:
|
|
68441
|
-
if (this.options.ecmaVersion > 10 &&
|
|
68482
|
+
if (this.options.ecmaVersion > 10 && Fe === F._import) {
|
|
68442
68483
|
Ae.lastIndex = this.pos;
|
|
68443
68484
|
var ct = Ae.exec(this.input), $t = this.pos + ct[0].length, Dt = this.input.charCodeAt($t);
|
|
68444
68485
|
if (Dt === 40 || Dt === 46)
|
|
68445
68486
|
return this.parseExpressionStatement(We, this.parseExpression());
|
|
68446
68487
|
}
|
|
68447
|
-
return this.options.allowImportExportEverywhere || (ae || this.raise(this.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")),
|
|
68488
|
+
return this.options.allowImportExportEverywhere || (ae || this.raise(this.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")), Fe === F._import ? this.parseImport(We) : this.parseExport(We, Be);
|
|
68448
68489
|
default:
|
|
68449
68490
|
if (this.isAsyncFunction())
|
|
68450
68491
|
return V && this.unexpected(), this.next(), this.parseFunctionStatement(We, !0, !V);
|
|
68451
68492
|
var er = this.value, Jt = this.parseExpression();
|
|
68452
|
-
return
|
|
68493
|
+
return Fe === F.name && Jt.type === "Identifier" && this.eat(F.colon) ? this.parseLabeledStatement(We, er, Jt, V) : this.parseExpressionStatement(We, Jt);
|
|
68453
68494
|
}
|
|
68454
68495
|
}, mt.parseBreakContinueStatement = function(V, ae) {
|
|
68455
68496
|
var Be = ae === "break";
|
|
68456
68497
|
this.next(), this.eat(F.semi) || this.insertSemicolon() ? V.label = null : this.type !== F.name ? this.unexpected() : (V.label = this.parseIdent(), this.semicolon());
|
|
68457
|
-
for (var
|
|
68458
|
-
var We = this.labels[
|
|
68498
|
+
for (var Fe = 0; Fe < this.labels.length; ++Fe) {
|
|
68499
|
+
var We = this.labels[Fe];
|
|
68459
68500
|
if ((V.label == null || We.name === V.label.name) && (We.kind != null && (Be || We.kind === "loop") || V.label && Be))
|
|
68460
68501
|
break;
|
|
68461
68502
|
}
|
|
68462
|
-
return
|
|
68503
|
+
return Fe === this.labels.length && this.raise(V.start, "Unsyntactic " + ae), this.finishNode(V, Be ? "BreakStatement" : "ContinueStatement");
|
|
68463
68504
|
}, mt.parseDebuggerStatement = function(V) {
|
|
68464
68505
|
return this.next(), this.semicolon(), this.finishNode(V, "DebuggerStatement");
|
|
68465
68506
|
}, mt.parseDoStatement = function(V) {
|
|
@@ -68471,8 +68512,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68471
68512
|
return ae > -1 && this.unexpected(ae), this.parseFor(V, null);
|
|
68472
68513
|
var Be = this.isLet();
|
|
68473
68514
|
if (this.type === F._var || this.type === F._const || Be) {
|
|
68474
|
-
var
|
|
68475
|
-
return this.next(), this.parseVar(
|
|
68515
|
+
var Fe = this.startNode(), We = Be ? "let" : this.value;
|
|
68516
|
+
return this.next(), this.parseVar(Fe, !0, We), this.finishNode(Fe, "VariableDeclaration"), (this.type === F._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && Fe.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === F._in ? ae > -1 && this.unexpected(ae) : V.await = ae > -1), this.parseForIn(V, Fe)) : (ae > -1 && this.unexpected(ae), this.parseFor(V, Fe));
|
|
68476
68517
|
}
|
|
68477
68518
|
var lt = this.isContextual("let"), ct = !1, $t = this.containsEsc, Dt = new cr(), er = this.start, Jt = ae > -1 ? this.parseExprSubscripts(Dt, "await") : this.parseExpression(!0, Dt);
|
|
68478
68519
|
return this.type === F._in || (ct = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (ae > -1 ? (this.type === F._in && this.unexpected(ae), V.await = !0) : ct && this.options.ecmaVersion >= 8 && (Jt.start === er && !$t && Jt.type === "Identifier" && Jt.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (V.await = !1)), lt && ct && this.raise(Jt.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(Jt, !1, Dt), this.checkLValPattern(Jt), this.parseForIn(V, Jt)) : (this.checkExpressionErrors(Dt, !0), ae > -1 && this.unexpected(ae), this.parseFor(V, Jt));
|
|
@@ -68486,8 +68527,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68486
68527
|
this.next(), V.discriminant = this.parseParenExpression(), V.cases = [], this.expect(F.braceL), this.labels.push(pt), this.enterScope(0);
|
|
68487
68528
|
for (var ae, Be = !1; this.type !== F.braceR; )
|
|
68488
68529
|
if (this.type === F._case || this.type === F._default) {
|
|
68489
|
-
var
|
|
68490
|
-
ae && this.finishNode(ae, "SwitchCase"), V.cases.push(ae = this.startNode()), ae.consequent = [], this.next(),
|
|
68530
|
+
var Fe = this.type === F._case;
|
|
68531
|
+
ae && this.finishNode(ae, "SwitchCase"), V.cases.push(ae = this.startNode()), ae.consequent = [], this.next(), Fe ? ae.test = this.parseExpression() : (Be && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), Be = !0, ae.test = null), this.expect(F.colon);
|
|
68491
68532
|
} else
|
|
68492
68533
|
ae || this.unexpected(), ae.consequent.push(this.parseStatement(null));
|
|
68493
68534
|
return this.exitScope(), ae && this.finishNode(ae, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(V, "SwitchStatement");
|
|
@@ -68512,7 +68553,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68512
68553
|
return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), V.object = this.parseParenExpression(), V.body = this.parseStatement("with"), this.finishNode(V, "WithStatement");
|
|
68513
68554
|
}, mt.parseEmptyStatement = function(V) {
|
|
68514
68555
|
return this.next(), this.finishNode(V, "EmptyStatement");
|
|
68515
|
-
}, mt.parseLabeledStatement = function(V, ae, Be,
|
|
68556
|
+
}, mt.parseLabeledStatement = function(V, ae, Be, Fe) {
|
|
68516
68557
|
for (var We = 0, lt = this.labels; We < lt.length; We += 1) {
|
|
68517
68558
|
var ct = lt[We];
|
|
68518
68559
|
ct.name === ae && this.raise(Be.start, "Label '" + ae + "' is already declared");
|
|
@@ -68524,13 +68565,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68524
68565
|
else
|
|
68525
68566
|
break;
|
|
68526
68567
|
}
|
|
68527
|
-
return this.labels.push({ name: ae, kind: $t, statementStart: this.start }), V.body = this.parseStatement(
|
|
68568
|
+
return this.labels.push({ name: ae, kind: $t, statementStart: this.start }), V.body = this.parseStatement(Fe ? Fe.indexOf("label") === -1 ? Fe + "label" : Fe : "label"), this.labels.pop(), V.label = Be, this.finishNode(V, "LabeledStatement");
|
|
68528
68569
|
}, mt.parseExpressionStatement = function(V, ae) {
|
|
68529
68570
|
return V.expression = ae, this.semicolon(), this.finishNode(V, "ExpressionStatement");
|
|
68530
68571
|
}, mt.parseBlock = function(V, ae, Be) {
|
|
68531
68572
|
for (V === void 0 && (V = !0), ae === void 0 && (ae = this.startNode()), ae.body = [], this.expect(F.braceL), V && this.enterScope(0); this.type !== F.braceR; ) {
|
|
68532
|
-
var
|
|
68533
|
-
ae.body.push(
|
|
68573
|
+
var Fe = this.parseStatement(null);
|
|
68574
|
+
ae.body.push(Fe);
|
|
68534
68575
|
}
|
|
68535
68576
|
return Be && (this.strict = !1), this.next(), V && this.exitScope(), this.finishNode(ae, "BlockStatement");
|
|
68536
68577
|
}, mt.parseFor = function(V, ae) {
|
|
@@ -68538,10 +68579,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68538
68579
|
}, mt.parseForIn = function(V, ae) {
|
|
68539
68580
|
var Be = this.type === F._in;
|
|
68540
68581
|
return this.next(), ae.type === "VariableDeclaration" && ae.declarations[0].init != null && (!Be || this.options.ecmaVersion < 8 || this.strict || ae.kind !== "var" || ae.declarations[0].id.type !== "Identifier") && this.raise(ae.start, (Be ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"), V.left = ae, V.right = Be ? this.parseExpression() : this.parseMaybeAssign(), this.expect(F.parenR), V.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(V, Be ? "ForInStatement" : "ForOfStatement");
|
|
68541
|
-
}, mt.parseVar = function(V, ae, Be,
|
|
68582
|
+
}, mt.parseVar = function(V, ae, Be, Fe) {
|
|
68542
68583
|
for (V.declarations = [], V.kind = Be; ; ) {
|
|
68543
68584
|
var We = this.startNode();
|
|
68544
|
-
if (this.parseVarId(We, Be), this.eat(F.eq) ? We.init = this.parseMaybeAssign(ae) : !
|
|
68585
|
+
if (this.parseVarId(We, Be), this.eat(F.eq) ? We.init = this.parseMaybeAssign(ae) : !Fe && Be === "const" && !(this.type === F._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !Fe && We.id.type !== "Identifier" && !(ae && (this.type === F._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : We.init = null, V.declarations.push(this.finishNode(We, "VariableDeclarator")), !this.eat(F.comma))
|
|
68545
68586
|
break;
|
|
68546
68587
|
}
|
|
68547
68588
|
return V;
|
|
@@ -68549,8 +68590,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68549
68590
|
V.id = this.parseBindingAtom(), this.checkLValPattern(V.id, ae === "var" ? it : et, !1);
|
|
68550
68591
|
};
|
|
68551
68592
|
var Kt = 1, sr = 2, ar = 4;
|
|
68552
|
-
mt.parseFunction = function(V, ae, Be,
|
|
68553
|
-
this.initFunction(V), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !
|
|
68593
|
+
mt.parseFunction = function(V, ae, Be, Fe, We) {
|
|
68594
|
+
this.initFunction(V), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !Fe) && (this.type === F.star && ae & sr && this.unexpected(), V.generator = this.eat(F.star)), this.options.ecmaVersion >= 8 && (V.async = !!Fe), ae & Kt && (V.id = ae & ar && this.type !== F.name ? null : this.parseIdent(), V.id && !(ae & sr) && this.checkLValSimple(V.id, this.strict || V.generator || V.async ? this.treatFunctionsAsVar ? it : et : ut));
|
|
68554
68595
|
var lt = this.yieldPos, ct = this.awaitPos, $t = this.awaitIdentPos;
|
|
68555
68596
|
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ft(V.async, V.generator)), ae & Kt || (V.id = this.type === F.name ? this.parseIdent() : null), this.parseFunctionParams(V), this.parseFunctionBody(V, Be, !1, We), this.yieldPos = lt, this.awaitPos = ct, this.awaitIdentPos = $t, this.finishNode(V, ae & Kt ? "FunctionDeclaration" : "FunctionExpression");
|
|
68556
68597
|
}, mt.parseFunctionParams = function(V) {
|
|
@@ -68559,26 +68600,26 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68559
68600
|
this.next();
|
|
68560
68601
|
var Be = this.strict;
|
|
68561
68602
|
this.strict = !0, this.parseClassId(V, ae), this.parseClassSuper(V);
|
|
68562
|
-
var
|
|
68603
|
+
var Fe = this.enterClassBody(), We = this.startNode(), lt = !1;
|
|
68563
68604
|
for (We.body = [], this.expect(F.braceL); this.type !== F.braceR; ) {
|
|
68564
68605
|
var ct = this.parseClassElement(V.superClass !== null);
|
|
68565
|
-
ct && (We.body.push(ct), ct.type === "MethodDefinition" && ct.kind === "constructor" ? (lt && this.raiseRecoverable(ct.start, "Duplicate constructor in the same class"), lt = !0) : ct.key && ct.key.type === "PrivateIdentifier" && Sr(
|
|
68606
|
+
ct && (We.body.push(ct), ct.type === "MethodDefinition" && ct.kind === "constructor" ? (lt && this.raiseRecoverable(ct.start, "Duplicate constructor in the same class"), lt = !0) : ct.key && ct.key.type === "PrivateIdentifier" && Sr(Fe, ct) && this.raiseRecoverable(ct.key.start, "Identifier '#" + ct.key.name + "' has already been declared"));
|
|
68566
68607
|
}
|
|
68567
68608
|
return this.strict = Be, this.next(), V.body = this.finishNode(We, "ClassBody"), this.exitClassBody(), this.finishNode(V, ae ? "ClassDeclaration" : "ClassExpression");
|
|
68568
68609
|
}, mt.parseClassElement = function(V) {
|
|
68569
68610
|
if (this.eat(F.semi))
|
|
68570
68611
|
return null;
|
|
68571
|
-
var ae = this.options.ecmaVersion, Be = this.startNode(),
|
|
68612
|
+
var ae = this.options.ecmaVersion, Be = this.startNode(), Fe = "", We = !1, lt = !1, ct = "method", $t = !1;
|
|
68572
68613
|
if (this.eatContextual("static")) {
|
|
68573
68614
|
if (ae >= 13 && this.eat(F.braceL))
|
|
68574
68615
|
return this.parseClassStaticBlock(Be), Be;
|
|
68575
|
-
this.isClassElementNameStart() || this.type === F.star ? $t = !0 :
|
|
68616
|
+
this.isClassElementNameStart() || this.type === F.star ? $t = !0 : Fe = "static";
|
|
68576
68617
|
}
|
|
68577
|
-
if (Be.static = $t, !
|
|
68618
|
+
if (Be.static = $t, !Fe && ae >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === F.star) && !this.canInsertSemicolon() ? lt = !0 : Fe = "async"), !Fe && (ae >= 9 || !lt) && this.eat(F.star) && (We = !0), !Fe && !lt && !We) {
|
|
68578
68619
|
var Dt = this.value;
|
|
68579
|
-
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? ct = Dt :
|
|
68620
|
+
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? ct = Dt : Fe = Dt);
|
|
68580
68621
|
}
|
|
68581
|
-
if (
|
|
68622
|
+
if (Fe ? (Be.computed = !1, Be.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), Be.key.name = Fe, this.finishNode(Be.key, "Identifier")) : this.parseClassElementName(Be), ae < 13 || this.type === F.parenL || ct !== "method" || We || lt) {
|
|
68582
68623
|
var er = !Be.static && Tr(Be, "constructor"), Jt = er && V;
|
|
68583
68624
|
er && ct !== "method" && this.raise(Be.key.start, "Constructor can't have get/set modifier"), Be.kind = er ? "constructor" : ct, this.parseClassMethod(Be, We, lt, Jt);
|
|
68584
68625
|
} else
|
|
@@ -68588,10 +68629,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68588
68629
|
return this.type === F.name || this.type === F.privateId || this.type === F.num || this.type === F.string || this.type === F.bracketL || this.type.keyword;
|
|
68589
68630
|
}, mt.parseClassElementName = function(V) {
|
|
68590
68631
|
this.type === F.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), V.computed = !1, V.key = this.parsePrivateIdent()) : this.parsePropertyName(V);
|
|
68591
|
-
}, mt.parseClassMethod = function(V, ae, Be,
|
|
68632
|
+
}, mt.parseClassMethod = function(V, ae, Be, Fe) {
|
|
68592
68633
|
var We = V.key;
|
|
68593
68634
|
V.kind === "constructor" ? (ae && this.raise(We.start, "Constructor can't be a generator"), Be && this.raise(We.start, "Constructor can't be an async method")) : V.static && Tr(V, "prototype") && this.raise(We.start, "Classes may not have a static property named prototype");
|
|
68594
|
-
var lt = V.value = this.parseMethod(ae, Be,
|
|
68635
|
+
var lt = V.value = this.parseMethod(ae, Be, Fe);
|
|
68595
68636
|
return V.kind === "get" && lt.params.length !== 0 && this.raiseRecoverable(lt.start, "getter should have no params"), V.kind === "set" && lt.params.length !== 1 && this.raiseRecoverable(lt.start, "setter should have exactly one param"), V.kind === "set" && lt.params[0].type === "RestElement" && this.raiseRecoverable(lt.params[0].start, "Setter cannot use rest params"), this.finishNode(V, "MethodDefinition");
|
|
68596
68637
|
}, mt.parseClassField = function(V) {
|
|
68597
68638
|
if (Tr(V, "constructor") ? this.raise(V.key.start, "Classes can't have a field named 'constructor'") : V.static && Tr(V, "prototype") && this.raise(V.key.start, "Classes can't have a static field named 'prototype'"), this.eat(F.eq)) {
|
|
@@ -68618,18 +68659,18 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68618
68659
|
}, mt.exitClassBody = function() {
|
|
68619
68660
|
var V = this.privateNameStack.pop(), ae = V.declared, Be = V.used;
|
|
68620
68661
|
if (this.options.checkPrivateFields)
|
|
68621
|
-
for (var
|
|
68662
|
+
for (var Fe = this.privateNameStack.length, We = Fe === 0 ? null : this.privateNameStack[Fe - 1], lt = 0; lt < Be.length; ++lt) {
|
|
68622
68663
|
var ct = Be[lt];
|
|
68623
|
-
|
|
68664
|
+
je(ae, ct.name) || (We ? We.used.push(ct) : this.raiseRecoverable(ct.start, "Private field '#" + ct.name + "' must be declared in an enclosing class"));
|
|
68624
68665
|
}
|
|
68625
68666
|
};
|
|
68626
68667
|
function Sr(V, ae) {
|
|
68627
|
-
var Be = ae.key.name,
|
|
68628
|
-
return ae.type === "MethodDefinition" && (ae.kind === "get" || ae.kind === "set") && (We = (ae.static ? "s" : "i") + ae.kind),
|
|
68668
|
+
var Be = ae.key.name, Fe = V[Be], We = "true";
|
|
68669
|
+
return ae.type === "MethodDefinition" && (ae.kind === "get" || ae.kind === "set") && (We = (ae.static ? "s" : "i") + ae.kind), Fe === "iget" && We === "iset" || Fe === "iset" && We === "iget" || Fe === "sget" && We === "sset" || Fe === "sset" && We === "sget" ? (V[Be] = "true", !1) : Fe ? !0 : (V[Be] = We, !1);
|
|
68629
68670
|
}
|
|
68630
68671
|
function Tr(V, ae) {
|
|
68631
|
-
var Be = V.computed,
|
|
68632
|
-
return !Be && (
|
|
68672
|
+
var Be = V.computed, Fe = V.key;
|
|
68673
|
+
return !Be && (Fe.type === "Identifier" && Fe.name === ae || Fe.type === "Literal" && Fe.value === ae);
|
|
68633
68674
|
}
|
|
68634
68675
|
mt.parseExportAllDeclaration = function(V, ae) {
|
|
68635
68676
|
return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (V.exported = this.parseModuleExportName(), this.checkExport(ae, V.exported, this.lastTokStart)) : V.exported = null), this.expectContextual("from"), this.type !== F.string && this.unexpected(), V.source = this.parseExprAtom(), this.semicolon(), this.finishNode(V, "ExportAllDeclaration");
|
|
@@ -68644,8 +68685,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68644
68685
|
if (V.declaration = null, V.specifiers = this.parseExportSpecifiers(ae), this.eatContextual("from"))
|
|
68645
68686
|
this.type !== F.string && this.unexpected(), V.source = this.parseExprAtom();
|
|
68646
68687
|
else {
|
|
68647
|
-
for (var Be = 0,
|
|
68648
|
-
var We =
|
|
68688
|
+
for (var Be = 0, Fe = V.specifiers; Be < Fe.length; Be += 1) {
|
|
68689
|
+
var We = Fe[Be];
|
|
68649
68690
|
this.checkUnreserved(We.local), this.checkLocalExport(We.local), We.local.type === "Literal" && this.raise(We.local.start, "A string literal cannot be used as an exported binding without `from`.");
|
|
68650
68691
|
}
|
|
68651
68692
|
V.source = null;
|
|
@@ -68664,18 +68705,18 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68664
68705
|
var Be = this.startNode();
|
|
68665
68706
|
return this.parseClass(Be, "nullableID");
|
|
68666
68707
|
} else {
|
|
68667
|
-
var
|
|
68668
|
-
return this.semicolon(),
|
|
68708
|
+
var Fe = this.parseMaybeAssign();
|
|
68709
|
+
return this.semicolon(), Fe;
|
|
68669
68710
|
}
|
|
68670
68711
|
}, mt.checkExport = function(V, ae, Be) {
|
|
68671
|
-
V && (typeof ae != "string" && (ae = ae.type === "Identifier" ? ae.name : ae.value),
|
|
68712
|
+
V && (typeof ae != "string" && (ae = ae.type === "Identifier" ? ae.name : ae.value), je(V, ae) && this.raiseRecoverable(Be, "Duplicate export '" + ae + "'"), V[ae] = !0);
|
|
68672
68713
|
}, mt.checkPatternExport = function(V, ae) {
|
|
68673
68714
|
var Be = ae.type;
|
|
68674
68715
|
if (Be === "Identifier")
|
|
68675
68716
|
this.checkExport(V, ae, ae.start);
|
|
68676
68717
|
else if (Be === "ObjectPattern")
|
|
68677
|
-
for (var
|
|
68678
|
-
var lt = We[
|
|
68718
|
+
for (var Fe = 0, We = ae.properties; Fe < We.length; Fe += 1) {
|
|
68719
|
+
var lt = We[Fe];
|
|
68679
68720
|
this.checkPatternExport(V, lt);
|
|
68680
68721
|
}
|
|
68681
68722
|
else if (Be === "ArrayPattern")
|
|
@@ -68686,8 +68727,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68686
68727
|
else Be === "Property" ? this.checkPatternExport(V, ae.value) : Be === "AssignmentPattern" ? this.checkPatternExport(V, ae.left) : Be === "RestElement" && this.checkPatternExport(V, ae.argument);
|
|
68687
68728
|
}, mt.checkVariableExport = function(V, ae) {
|
|
68688
68729
|
if (V)
|
|
68689
|
-
for (var Be = 0,
|
|
68690
|
-
var We =
|
|
68730
|
+
for (var Be = 0, Fe = ae; Be < Fe.length; Be += 1) {
|
|
68731
|
+
var We = Fe[Be];
|
|
68691
68732
|
this.checkPatternExport(V, We.id);
|
|
68692
68733
|
}
|
|
68693
68734
|
}, mt.shouldParseExportStatement = function() {
|
|
@@ -68756,8 +68797,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68756
68797
|
break;
|
|
68757
68798
|
case "ObjectExpression":
|
|
68758
68799
|
V.type = "ObjectPattern", Be && this.checkPatternErrors(Be, !0);
|
|
68759
|
-
for (var
|
|
68760
|
-
var lt = We[
|
|
68800
|
+
for (var Fe = 0, We = V.properties; Fe < We.length; Fe += 1) {
|
|
68801
|
+
var lt = We[Fe];
|
|
68761
68802
|
this.toAssignable(lt, ae), lt.type === "RestElement" && (lt.argument.type === "ArrayPattern" || lt.argument.type === "ObjectPattern") && this.raise(lt.argument.start, "Unexpected token");
|
|
68762
68803
|
}
|
|
68763
68804
|
break;
|
|
@@ -68788,8 +68829,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68788
68829
|
else Be && this.checkPatternErrors(Be, !0);
|
|
68789
68830
|
return V;
|
|
68790
68831
|
}, pr.toAssignableList = function(V, ae) {
|
|
68791
|
-
for (var Be = V.length,
|
|
68792
|
-
var We = V[
|
|
68832
|
+
for (var Be = V.length, Fe = 0; Fe < Be; Fe++) {
|
|
68833
|
+
var We = V[Fe];
|
|
68793
68834
|
We && this.toAssignable(We, ae);
|
|
68794
68835
|
}
|
|
68795
68836
|
if (Be) {
|
|
@@ -68813,7 +68854,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68813
68854
|
return this.parseObj(!0);
|
|
68814
68855
|
}
|
|
68815
68856
|
return this.parseIdent();
|
|
68816
|
-
}, pr.parseBindingList = function(V, ae, Be,
|
|
68857
|
+
}, pr.parseBindingList = function(V, ae, Be, Fe) {
|
|
68817
68858
|
for (var We = [], lt = !0; !this.eat(V); )
|
|
68818
68859
|
if (lt ? lt = !1 : this.expect(F.comma), ae && this.type === F.comma)
|
|
68819
68860
|
We.push(null);
|
|
@@ -68825,7 +68866,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68825
68866
|
this.parseBindingListItem(ct), We.push(ct), this.type === F.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(V);
|
|
68826
68867
|
break;
|
|
68827
68868
|
} else
|
|
68828
|
-
We.push(this.parseAssignableListItem(
|
|
68869
|
+
We.push(this.parseAssignableListItem(Fe));
|
|
68829
68870
|
}
|
|
68830
68871
|
return We;
|
|
68831
68872
|
}, pr.parseAssignableListItem = function(V) {
|
|
@@ -68836,31 +68877,31 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68836
68877
|
}, pr.parseMaybeDefault = function(V, ae, Be) {
|
|
68837
68878
|
if (Be = Be || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(F.eq))
|
|
68838
68879
|
return Be;
|
|
68839
|
-
var
|
|
68840
|
-
return
|
|
68880
|
+
var Fe = this.startNodeAt(V, ae);
|
|
68881
|
+
return Fe.left = Be, Fe.right = this.parseMaybeAssign(), this.finishNode(Fe, "AssignmentPattern");
|
|
68841
68882
|
}, pr.checkLValSimple = function(V, ae, Be) {
|
|
68842
68883
|
ae === void 0 && (ae = Ke);
|
|
68843
|
-
var
|
|
68884
|
+
var Fe = ae !== Ke;
|
|
68844
68885
|
switch (V.type) {
|
|
68845
68886
|
case "Identifier":
|
|
68846
|
-
this.strict && this.reservedWordsStrictBind.test(V.name) && this.raiseRecoverable(V.start, (
|
|
68887
|
+
this.strict && this.reservedWordsStrictBind.test(V.name) && this.raiseRecoverable(V.start, (Fe ? "Binding " : "Assigning to ") + V.name + " in strict mode"), Fe && (ae === et && V.name === "let" && this.raiseRecoverable(V.start, "let is disallowed as a lexically bound name"), Be && (je(Be, V.name) && this.raiseRecoverable(V.start, "Argument name clash"), Be[V.name] = !0), ae !== dt && this.declareName(V.name, ae, V.start));
|
|
68847
68888
|
break;
|
|
68848
68889
|
case "ChainExpression":
|
|
68849
68890
|
this.raiseRecoverable(V.start, "Optional chaining cannot appear in left-hand side");
|
|
68850
68891
|
break;
|
|
68851
68892
|
case "MemberExpression":
|
|
68852
|
-
|
|
68893
|
+
Fe && this.raiseRecoverable(V.start, "Binding member expression");
|
|
68853
68894
|
break;
|
|
68854
68895
|
case "ParenthesizedExpression":
|
|
68855
|
-
return
|
|
68896
|
+
return Fe && this.raiseRecoverable(V.start, "Binding parenthesized expression"), this.checkLValSimple(V.expression, ae, Be);
|
|
68856
68897
|
default:
|
|
68857
|
-
this.raise(V.start, (
|
|
68898
|
+
this.raise(V.start, (Fe ? "Binding" : "Assigning to") + " rvalue");
|
|
68858
68899
|
}
|
|
68859
68900
|
}, pr.checkLValPattern = function(V, ae, Be) {
|
|
68860
68901
|
switch (ae === void 0 && (ae = Ke), V.type) {
|
|
68861
68902
|
case "ObjectPattern":
|
|
68862
|
-
for (var
|
|
68863
|
-
var lt = We[
|
|
68903
|
+
for (var Fe = 0, We = V.properties; Fe < We.length; Fe += 1) {
|
|
68904
|
+
var lt = We[Fe];
|
|
68864
68905
|
this.checkLValInnerPattern(lt, ae, Be);
|
|
68865
68906
|
}
|
|
68866
68907
|
break;
|
|
@@ -68888,8 +68929,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68888
68929
|
this.checkLValPattern(V, ae, Be);
|
|
68889
68930
|
}
|
|
68890
68931
|
};
|
|
68891
|
-
var yr = function(ae, Be,
|
|
68892
|
-
this.token = ae, this.isExpr = !!Be, this.preserveSpace = !!
|
|
68932
|
+
var yr = function(ae, Be, Fe, We, lt) {
|
|
68933
|
+
this.token = ae, this.isExpr = !!Be, this.preserveSpace = !!Fe, this.override = We, this.generator = !!lt;
|
|
68893
68934
|
}, tr = {
|
|
68894
68935
|
b_stat: new yr("{", !1),
|
|
68895
68936
|
b_expr: new yr("{", !0),
|
|
@@ -68957,27 +68998,27 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68957
68998
|
var Xt = Ct.prototype;
|
|
68958
68999
|
Xt.checkPropClash = function(V, ae, Be) {
|
|
68959
69000
|
if (!(this.options.ecmaVersion >= 9 && V.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (V.computed || V.method || V.shorthand))) {
|
|
68960
|
-
var
|
|
68961
|
-
switch (
|
|
69001
|
+
var Fe = V.key, We;
|
|
69002
|
+
switch (Fe.type) {
|
|
68962
69003
|
case "Identifier":
|
|
68963
|
-
We =
|
|
69004
|
+
We = Fe.name;
|
|
68964
69005
|
break;
|
|
68965
69006
|
case "Literal":
|
|
68966
|
-
We = String(
|
|
69007
|
+
We = String(Fe.value);
|
|
68967
69008
|
break;
|
|
68968
69009
|
default:
|
|
68969
69010
|
return;
|
|
68970
69011
|
}
|
|
68971
69012
|
var lt = V.kind;
|
|
68972
69013
|
if (this.options.ecmaVersion >= 6) {
|
|
68973
|
-
We === "__proto__" && lt === "init" && (ae.proto && (Be ? Be.doubleProto < 0 && (Be.doubleProto =
|
|
69014
|
+
We === "__proto__" && lt === "init" && (ae.proto && (Be ? Be.doubleProto < 0 && (Be.doubleProto = Fe.start) : this.raiseRecoverable(Fe.start, "Redefinition of __proto__ property")), ae.proto = !0);
|
|
68974
69015
|
return;
|
|
68975
69016
|
}
|
|
68976
69017
|
We = "$" + We;
|
|
68977
69018
|
var ct = ae[We];
|
|
68978
69019
|
if (ct) {
|
|
68979
69020
|
var $t;
|
|
68980
|
-
lt === "init" ? $t = this.strict && ct.init || ct.get || ct.set : $t = ct.init || ct[lt], $t && this.raiseRecoverable(
|
|
69021
|
+
lt === "init" ? $t = this.strict && ct.init || ct.get || ct.set : $t = ct.init || ct[lt], $t && this.raiseRecoverable(Fe.start, "Redefinition of property");
|
|
68981
69022
|
} else
|
|
68982
69023
|
ct = ae[We] = {
|
|
68983
69024
|
init: !1,
|
|
@@ -68987,9 +69028,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68987
69028
|
ct[lt] = !0;
|
|
68988
69029
|
}
|
|
68989
69030
|
}, Xt.parseExpression = function(V, ae) {
|
|
68990
|
-
var Be = this.start,
|
|
69031
|
+
var Be = this.start, Fe = this.startLoc, We = this.parseMaybeAssign(V, ae);
|
|
68991
69032
|
if (this.type === F.comma) {
|
|
68992
|
-
var lt = this.startNodeAt(Be,
|
|
69033
|
+
var lt = this.startNodeAt(Be, Fe);
|
|
68993
69034
|
for (lt.expressions = [We]; this.eat(F.comma); )
|
|
68994
69035
|
lt.expressions.push(this.parseMaybeAssign(V, ae));
|
|
68995
69036
|
return this.finishNode(lt, "SequenceExpression");
|
|
@@ -69001,55 +69042,55 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69001
69042
|
return this.parseYield(V);
|
|
69002
69043
|
this.exprAllowed = !1;
|
|
69003
69044
|
}
|
|
69004
|
-
var
|
|
69005
|
-
ae ? (We = ae.parenthesizedAssign, lt = ae.trailingComma, ct = ae.doubleProto, ae.parenthesizedAssign = ae.trailingComma = -1) : (ae = new cr(),
|
|
69045
|
+
var Fe = !1, We = -1, lt = -1, ct = -1;
|
|
69046
|
+
ae ? (We = ae.parenthesizedAssign, lt = ae.trailingComma, ct = ae.doubleProto, ae.parenthesizedAssign = ae.trailingComma = -1) : (ae = new cr(), Fe = !0);
|
|
69006
69047
|
var $t = this.start, Dt = this.startLoc;
|
|
69007
69048
|
(this.type === F.parenL || this.type === F.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = V === "await");
|
|
69008
69049
|
var er = this.parseMaybeConditional(V, ae);
|
|
69009
69050
|
if (Be && (er = Be.call(this, er, $t, Dt)), this.type.isAssign) {
|
|
69010
69051
|
var Jt = this.startNodeAt($t, Dt);
|
|
69011
|
-
return Jt.operator = this.value, this.type === F.eq && (er = this.toAssignable(er, !1, ae)),
|
|
69052
|
+
return Jt.operator = this.value, this.type === F.eq && (er = this.toAssignable(er, !1, ae)), Fe || (ae.parenthesizedAssign = ae.trailingComma = ae.doubleProto = -1), ae.shorthandAssign >= er.start && (ae.shorthandAssign = -1), this.type === F.eq ? this.checkLValPattern(er) : this.checkLValSimple(er), Jt.left = er, this.next(), Jt.right = this.parseMaybeAssign(V), ct > -1 && (ae.doubleProto = ct), this.finishNode(Jt, "AssignmentExpression");
|
|
69012
69053
|
} else
|
|
69013
|
-
|
|
69054
|
+
Fe && this.checkExpressionErrors(ae, !0);
|
|
69014
69055
|
return We > -1 && (ae.parenthesizedAssign = We), lt > -1 && (ae.trailingComma = lt), er;
|
|
69015
69056
|
}, Xt.parseMaybeConditional = function(V, ae) {
|
|
69016
|
-
var Be = this.start,
|
|
69057
|
+
var Be = this.start, Fe = this.startLoc, We = this.parseExprOps(V, ae);
|
|
69017
69058
|
if (this.checkExpressionErrors(ae))
|
|
69018
69059
|
return We;
|
|
69019
69060
|
if (this.eat(F.question)) {
|
|
69020
|
-
var lt = this.startNodeAt(Be,
|
|
69061
|
+
var lt = this.startNodeAt(Be, Fe);
|
|
69021
69062
|
return lt.test = We, lt.consequent = this.parseMaybeAssign(), this.expect(F.colon), lt.alternate = this.parseMaybeAssign(V), this.finishNode(lt, "ConditionalExpression");
|
|
69022
69063
|
}
|
|
69023
69064
|
return We;
|
|
69024
69065
|
}, Xt.parseExprOps = function(V, ae) {
|
|
69025
|
-
var Be = this.start,
|
|
69026
|
-
return this.checkExpressionErrors(ae) || We.start === Be && We.type === "ArrowFunctionExpression" ? We : this.parseExprOp(We, Be,
|
|
69027
|
-
}, Xt.parseExprOp = function(V, ae, Be,
|
|
69066
|
+
var Be = this.start, Fe = this.startLoc, We = this.parseMaybeUnary(ae, !1, !1, V);
|
|
69067
|
+
return this.checkExpressionErrors(ae) || We.start === Be && We.type === "ArrowFunctionExpression" ? We : this.parseExprOp(We, Be, Fe, -1, V);
|
|
69068
|
+
}, Xt.parseExprOp = function(V, ae, Be, Fe, We) {
|
|
69028
69069
|
var lt = this.type.binop;
|
|
69029
|
-
if (lt != null && (!We || this.type !== F._in) && lt >
|
|
69070
|
+
if (lt != null && (!We || this.type !== F._in) && lt > Fe) {
|
|
69030
69071
|
var ct = this.type === F.logicalOR || this.type === F.logicalAND, $t = this.type === F.coalesce;
|
|
69031
69072
|
$t && (lt = F.logicalAND.binop);
|
|
69032
69073
|
var Dt = this.value;
|
|
69033
69074
|
this.next();
|
|
69034
69075
|
var er = this.start, Jt = this.startLoc, mr = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, We), er, Jt, lt, We), jr = this.buildBinary(ae, Be, V, mr, Dt, ct || $t);
|
|
69035
|
-
return (ct && this.type === F.coalesce || $t && (this.type === F.logicalOR || this.type === F.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(jr, ae, Be,
|
|
69076
|
+
return (ct && this.type === F.coalesce || $t && (this.type === F.logicalOR || this.type === F.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(jr, ae, Be, Fe, We);
|
|
69036
69077
|
}
|
|
69037
69078
|
return V;
|
|
69038
|
-
}, Xt.buildBinary = function(V, ae, Be,
|
|
69039
|
-
|
|
69079
|
+
}, Xt.buildBinary = function(V, ae, Be, Fe, We, lt) {
|
|
69080
|
+
Fe.type === "PrivateIdentifier" && this.raise(Fe.start, "Private identifier can only be left side of binary expression");
|
|
69040
69081
|
var ct = this.startNodeAt(V, ae);
|
|
69041
|
-
return ct.left = Be, ct.operator = We, ct.right =
|
|
69042
|
-
}, Xt.parseMaybeUnary = function(V, ae, Be,
|
|
69082
|
+
return ct.left = Be, ct.operator = We, ct.right = Fe, this.finishNode(ct, lt ? "LogicalExpression" : "BinaryExpression");
|
|
69083
|
+
}, Xt.parseMaybeUnary = function(V, ae, Be, Fe) {
|
|
69043
69084
|
var We = this.start, lt = this.startLoc, ct;
|
|
69044
69085
|
if (this.isContextual("await") && this.canAwait)
|
|
69045
|
-
ct = this.parseAwait(
|
|
69086
|
+
ct = this.parseAwait(Fe), ae = !0;
|
|
69046
69087
|
else if (this.type.prefix) {
|
|
69047
69088
|
var $t = this.startNode(), Dt = this.type === F.incDec;
|
|
69048
|
-
$t.operator = this.value, $t.prefix = !0, this.next(), $t.argument = this.parseMaybeUnary(null, !0, Dt,
|
|
69089
|
+
$t.operator = this.value, $t.prefix = !0, this.next(), $t.argument = this.parseMaybeUnary(null, !0, Dt, Fe), this.checkExpressionErrors(V, !0), Dt ? this.checkLValSimple($t.argument) : this.strict && $t.operator === "delete" && dr($t.argument) ? this.raiseRecoverable($t.start, "Deleting local variable in strict mode") : $t.operator === "delete" && Ir($t.argument) ? this.raiseRecoverable($t.start, "Private fields can not be deleted") : ae = !0, ct = this.finishNode($t, Dt ? "UpdateExpression" : "UnaryExpression");
|
|
69049
69090
|
} else if (!ae && this.type === F.privateId)
|
|
69050
|
-
(
|
|
69091
|
+
(Fe || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), ct = this.parsePrivateIdent(), this.type !== F._in && this.unexpected();
|
|
69051
69092
|
else {
|
|
69052
|
-
if (ct = this.parseExprSubscripts(V,
|
|
69093
|
+
if (ct = this.parseExprSubscripts(V, Fe), this.checkExpressionErrors(V))
|
|
69053
69094
|
return ct;
|
|
69054
69095
|
for (; this.type.postfix && !this.canInsertSemicolon(); ) {
|
|
69055
69096
|
var er = this.startNodeAt(We, lt);
|
|
@@ -69060,7 +69101,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69060
69101
|
if (ae)
|
|
69061
69102
|
this.unexpected(this.lastTokStart);
|
|
69062
69103
|
else
|
|
69063
|
-
return this.buildBinary(We, lt, ct, this.parseMaybeUnary(null, !1, !1,
|
|
69104
|
+
return this.buildBinary(We, lt, ct, this.parseMaybeUnary(null, !1, !1, Fe), "**", !1);
|
|
69064
69105
|
else
|
|
69065
69106
|
return ct;
|
|
69066
69107
|
};
|
|
@@ -69071,14 +69112,14 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69071
69112
|
return V.type === "MemberExpression" && V.property.type === "PrivateIdentifier" || V.type === "ChainExpression" && Ir(V.expression) || V.type === "ParenthesizedExpression" && Ir(V.expression);
|
|
69072
69113
|
}
|
|
69073
69114
|
Xt.parseExprSubscripts = function(V, ae) {
|
|
69074
|
-
var Be = this.start,
|
|
69115
|
+
var Be = this.start, Fe = this.startLoc, We = this.parseExprAtom(V, ae);
|
|
69075
69116
|
if (We.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")")
|
|
69076
69117
|
return We;
|
|
69077
|
-
var lt = this.parseSubscripts(We, Be,
|
|
69118
|
+
var lt = this.parseSubscripts(We, Be, Fe, !1, ae);
|
|
69078
69119
|
return V && lt.type === "MemberExpression" && (V.parenthesizedAssign >= lt.start && (V.parenthesizedAssign = -1), V.parenthesizedBind >= lt.start && (V.parenthesizedBind = -1), V.trailingComma >= lt.start && (V.trailingComma = -1)), lt;
|
|
69079
|
-
}, Xt.parseSubscripts = function(V, ae, Be,
|
|
69120
|
+
}, Xt.parseSubscripts = function(V, ae, Be, Fe, We) {
|
|
69080
69121
|
for (var lt = this.options.ecmaVersion >= 8 && V.type === "Identifier" && V.name === "async" && this.lastTokEnd === V.end && !this.canInsertSemicolon() && V.end - V.start === 5 && this.potentialArrowAt === V.start, ct = !1; ; ) {
|
|
69081
|
-
var $t = this.parseSubscript(V, ae, Be,
|
|
69122
|
+
var $t = this.parseSubscript(V, ae, Be, Fe, lt, ct, We);
|
|
69082
69123
|
if ($t.optional && (ct = !0), $t === V || $t.type === "ArrowFunctionExpression") {
|
|
69083
69124
|
if (ct) {
|
|
69084
69125
|
var Dt = this.startNodeAt(ae, Be);
|
|
@@ -69090,16 +69131,16 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69090
69131
|
}
|
|
69091
69132
|
}, Xt.shouldParseAsyncArrow = function() {
|
|
69092
69133
|
return !this.canInsertSemicolon() && this.eat(F.arrow);
|
|
69093
|
-
}, Xt.parseSubscriptAsyncArrow = function(V, ae, Be,
|
|
69094
|
-
return this.parseArrowExpression(this.startNodeAt(V, ae), Be, !0,
|
|
69095
|
-
}, Xt.parseSubscript = function(V, ae, Be,
|
|
69134
|
+
}, Xt.parseSubscriptAsyncArrow = function(V, ae, Be, Fe) {
|
|
69135
|
+
return this.parseArrowExpression(this.startNodeAt(V, ae), Be, !0, Fe);
|
|
69136
|
+
}, Xt.parseSubscript = function(V, ae, Be, Fe, We, lt, ct) {
|
|
69096
69137
|
var $t = this.options.ecmaVersion >= 11, Dt = $t && this.eat(F.questionDot);
|
|
69097
|
-
|
|
69138
|
+
Fe && Dt && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
69098
69139
|
var er = this.eat(F.bracketL);
|
|
69099
69140
|
if (er || Dt && this.type !== F.parenL && this.type !== F.backQuote || this.eat(F.dot)) {
|
|
69100
69141
|
var Jt = this.startNodeAt(ae, Be);
|
|
69101
69142
|
Jt.object = V, er ? (Jt.property = this.parseExpression(), this.expect(F.bracketR)) : this.type === F.privateId && V.type !== "Super" ? Jt.property = this.parsePrivateIdent() : Jt.property = this.parseIdent(this.options.allowReserved !== "never"), Jt.computed = !!er, $t && (Jt.optional = Dt), V = this.finishNode(Jt, "MemberExpression");
|
|
69102
|
-
} else if (!
|
|
69143
|
+
} else if (!Fe && this.eat(F.parenL)) {
|
|
69103
69144
|
var mr = new cr(), jr = this.yieldPos, Qr = this.awaitPos, Hr = this.awaitIdentPos;
|
|
69104
69145
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
69105
69146
|
var dn = this.parseExprList(F.parenR, this.options.ecmaVersion >= 8, !1, mr);
|
|
@@ -69116,12 +69157,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69116
69157
|
return V;
|
|
69117
69158
|
}, Xt.parseExprAtom = function(V, ae, Be) {
|
|
69118
69159
|
this.type === F.slash && this.readRegexp();
|
|
69119
|
-
var
|
|
69160
|
+
var Fe, We = this.potentialArrowAt === this.start;
|
|
69120
69161
|
switch (this.type) {
|
|
69121
69162
|
case F._super:
|
|
69122
|
-
return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"),
|
|
69163
|
+
return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), Fe = this.startNode(), this.next(), this.type === F.parenL && !this.allowDirectSuper && this.raise(Fe.start, "super() call outside constructor of a subclass"), this.type !== F.dot && this.type !== F.bracketL && this.type !== F.parenL && this.unexpected(), this.finishNode(Fe, "Super");
|
|
69123
69164
|
case F._this:
|
|
69124
|
-
return
|
|
69165
|
+
return Fe = this.startNode(), this.next(), this.finishNode(Fe, "ThisExpression");
|
|
69125
69166
|
case F.name:
|
|
69126
69167
|
var lt = this.start, ct = this.startLoc, $t = this.containsEsc, Dt = this.parseIdent(!1);
|
|
69127
69168
|
if (this.options.ecmaVersion >= 8 && !$t && Dt.name === "async" && !this.canInsertSemicolon() && this.eat(F._function))
|
|
@@ -69135,23 +69176,23 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69135
69176
|
return Dt;
|
|
69136
69177
|
case F.regexp:
|
|
69137
69178
|
var er = this.value;
|
|
69138
|
-
return
|
|
69179
|
+
return Fe = this.parseLiteral(er.value), Fe.regex = { pattern: er.pattern, flags: er.flags }, Fe;
|
|
69139
69180
|
case F.num:
|
|
69140
69181
|
case F.string:
|
|
69141
69182
|
return this.parseLiteral(this.value);
|
|
69142
69183
|
case F._null:
|
|
69143
69184
|
case F._true:
|
|
69144
69185
|
case F._false:
|
|
69145
|
-
return
|
|
69186
|
+
return Fe = this.startNode(), Fe.value = this.type === F._null ? null : this.type === F._true, Fe.raw = this.type.keyword, this.next(), this.finishNode(Fe, "Literal");
|
|
69146
69187
|
case F.parenL:
|
|
69147
69188
|
var Jt = this.start, mr = this.parseParenAndDistinguishExpression(We, ae);
|
|
69148
69189
|
return V && (V.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(mr) && (V.parenthesizedAssign = Jt), V.parenthesizedBind < 0 && (V.parenthesizedBind = Jt)), mr;
|
|
69149
69190
|
case F.bracketL:
|
|
69150
|
-
return
|
|
69191
|
+
return Fe = this.startNode(), this.next(), Fe.elements = this.parseExprList(F.bracketR, !0, !0, V), this.finishNode(Fe, "ArrayExpression");
|
|
69151
69192
|
case F.braceL:
|
|
69152
69193
|
return this.overrideContext(tr.b_expr), this.parseObj(!1, V);
|
|
69153
69194
|
case F._function:
|
|
69154
|
-
return
|
|
69195
|
+
return Fe = this.startNode(), this.next(), this.parseFunction(Fe, 0);
|
|
69155
69196
|
case F._class:
|
|
69156
69197
|
return this.parseClass(this.startNode(), !1);
|
|
69157
69198
|
case F._new:
|
|
@@ -69194,7 +69235,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69194
69235
|
}, Xt.shouldParseArrow = function(V) {
|
|
69195
69236
|
return !this.canInsertSemicolon();
|
|
69196
69237
|
}, Xt.parseParenAndDistinguishExpression = function(V, ae) {
|
|
69197
|
-
var Be = this.start,
|
|
69238
|
+
var Be = this.start, Fe = this.startLoc, We, lt = this.options.ecmaVersion >= 8;
|
|
69198
69239
|
if (this.options.ecmaVersion >= 6) {
|
|
69199
69240
|
this.next();
|
|
69200
69241
|
var ct = this.start, $t = this.startLoc, Dt = [], er = !0, Jt = !1, mr = new cr(), jr = this.yieldPos, Qr = this.awaitPos, Hr;
|
|
@@ -69209,19 +69250,19 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69209
69250
|
Dt.push(this.parseMaybeAssign(!1, mr, this.parseParenItem));
|
|
69210
69251
|
var dn = this.lastTokEnd, zr = this.lastTokEndLoc;
|
|
69211
69252
|
if (this.expect(F.parenR), V && this.shouldParseArrow(Dt) && this.eat(F.arrow))
|
|
69212
|
-
return this.checkPatternErrors(mr, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = jr, this.awaitPos = Qr, this.parseParenArrowList(Be,
|
|
69253
|
+
return this.checkPatternErrors(mr, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = jr, this.awaitPos = Qr, this.parseParenArrowList(Be, Fe, Dt, ae);
|
|
69213
69254
|
(!Dt.length || Jt) && this.unexpected(this.lastTokStart), Hr && this.unexpected(Hr), this.checkExpressionErrors(mr, !0), this.yieldPos = jr || this.yieldPos, this.awaitPos = Qr || this.awaitPos, Dt.length > 1 ? (We = this.startNodeAt(ct, $t), We.expressions = Dt, this.finishNodeAt(We, "SequenceExpression", dn, zr)) : We = Dt[0];
|
|
69214
69255
|
} else
|
|
69215
69256
|
We = this.parseParenExpression();
|
|
69216
69257
|
if (this.options.preserveParens) {
|
|
69217
|
-
var Gr = this.startNodeAt(Be,
|
|
69258
|
+
var Gr = this.startNodeAt(Be, Fe);
|
|
69218
69259
|
return Gr.expression = We, this.finishNode(Gr, "ParenthesizedExpression");
|
|
69219
69260
|
} else
|
|
69220
69261
|
return We;
|
|
69221
69262
|
}, Xt.parseParenItem = function(V) {
|
|
69222
69263
|
return V;
|
|
69223
|
-
}, Xt.parseParenArrowList = function(V, ae, Be,
|
|
69224
|
-
return this.parseArrowExpression(this.startNodeAt(V, ae), Be, !1,
|
|
69264
|
+
}, Xt.parseParenArrowList = function(V, ae, Be, Fe) {
|
|
69265
|
+
return this.parseArrowExpression(this.startNodeAt(V, ae), Be, !1, Fe);
|
|
69225
69266
|
};
|
|
69226
69267
|
var mn = [];
|
|
69227
69268
|
Xt.parseNew = function() {
|
|
@@ -69233,8 +69274,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69233
69274
|
var Be = this.containsEsc;
|
|
69234
69275
|
return V.property = this.parseIdent(!0), V.property.name !== "target" && this.raiseRecoverable(V.property.start, "The only valid meta property for new is 'new.target'"), Be && this.raiseRecoverable(V.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(V.start, "'new.target' can only be used in functions and class static block"), this.finishNode(V, "MetaProperty");
|
|
69235
69276
|
}
|
|
69236
|
-
var
|
|
69237
|
-
return V.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0),
|
|
69277
|
+
var Fe = this.start, We = this.startLoc;
|
|
69278
|
+
return V.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), Fe, We, !0, !1), this.eat(F.parenL) ? V.arguments = this.parseExprList(F.parenR, this.options.ecmaVersion >= 8, !1) : V.arguments = mn, this.finishNode(V, "NewExpression");
|
|
69238
69279
|
}, Xt.parseTemplateElement = function(V) {
|
|
69239
69280
|
var ae = V.isTagged, Be = this.startNode();
|
|
69240
69281
|
return this.type === F.invalidTemplate ? (ae || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), Be.value = {
|
|
@@ -69252,17 +69293,17 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69252
69293
|
ae === void 0 && (ae = !1);
|
|
69253
69294
|
var Be = this.startNode();
|
|
69254
69295
|
this.next(), Be.expressions = [];
|
|
69255
|
-
var
|
|
69256
|
-
for (Be.quasis = [
|
|
69257
|
-
this.type === F.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(F.dollarBraceL), Be.expressions.push(this.parseExpression()), this.expect(F.braceR), Be.quasis.push(
|
|
69296
|
+
var Fe = this.parseTemplateElement({ isTagged: ae });
|
|
69297
|
+
for (Be.quasis = [Fe]; !Fe.tail; )
|
|
69298
|
+
this.type === F.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(F.dollarBraceL), Be.expressions.push(this.parseExpression()), this.expect(F.braceR), Be.quasis.push(Fe = this.parseTemplateElement({ isTagged: ae }));
|
|
69258
69299
|
return this.next(), this.finishNode(Be, "TemplateLiteral");
|
|
69259
69300
|
}, Xt.isAsyncProp = function(V) {
|
|
69260
69301
|
return !V.computed && V.key.type === "Identifier" && V.key.name === "async" && (this.type === F.name || this.type === F.num || this.type === F.string || this.type === F.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === F.star) && !te.test(this.input.slice(this.lastTokEnd, this.start));
|
|
69261
69302
|
}, Xt.parseObj = function(V, ae) {
|
|
69262
|
-
var Be = this.startNode(),
|
|
69303
|
+
var Be = this.startNode(), Fe = !0, We = {};
|
|
69263
69304
|
for (Be.properties = [], this.next(); !this.eat(F.braceR); ) {
|
|
69264
|
-
if (
|
|
69265
|
-
|
|
69305
|
+
if (Fe)
|
|
69306
|
+
Fe = !1;
|
|
69266
69307
|
else if (this.expect(F.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(F.braceR))
|
|
69267
69308
|
break;
|
|
69268
69309
|
var lt = this.parseProperty(V, ae);
|
|
@@ -69270,12 +69311,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69270
69311
|
}
|
|
69271
69312
|
return this.finishNode(Be, V ? "ObjectPattern" : "ObjectExpression");
|
|
69272
69313
|
}, Xt.parseProperty = function(V, ae) {
|
|
69273
|
-
var Be = this.startNode(),
|
|
69314
|
+
var Be = this.startNode(), Fe, We, lt, ct;
|
|
69274
69315
|
if (this.options.ecmaVersion >= 9 && this.eat(F.ellipsis))
|
|
69275
69316
|
return V ? (Be.argument = this.parseIdent(!1), this.type === F.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(Be, "RestElement")) : (Be.argument = this.parseMaybeAssign(!1, ae), this.type === F.comma && ae && ae.trailingComma < 0 && (ae.trailingComma = this.start), this.finishNode(Be, "SpreadElement"));
|
|
69276
|
-
this.options.ecmaVersion >= 6 && (Be.method = !1, Be.shorthand = !1, (V || ae) && (lt = this.start, ct = this.startLoc), V || (
|
|
69317
|
+
this.options.ecmaVersion >= 6 && (Be.method = !1, Be.shorthand = !1, (V || ae) && (lt = this.start, ct = this.startLoc), V || (Fe = this.eat(F.star)));
|
|
69277
69318
|
var $t = this.containsEsc;
|
|
69278
|
-
return this.parsePropertyName(Be), !V && !$t && this.options.ecmaVersion >= 8 && !
|
|
69319
|
+
return this.parsePropertyName(Be), !V && !$t && this.options.ecmaVersion >= 8 && !Fe && this.isAsyncProp(Be) ? (We = !0, Fe = this.options.ecmaVersion >= 9 && this.eat(F.star), this.parsePropertyName(Be)) : We = !1, this.parsePropertyValue(Be, V, Fe, We, lt, ct, ae, $t), this.finishNode(Be, "Property");
|
|
69279
69320
|
}, Xt.parseGetterSetter = function(V) {
|
|
69280
69321
|
V.kind = V.key.name, this.parsePropertyName(V), V.value = this.parseMethod(!1);
|
|
69281
69322
|
var ae = V.kind === "get" ? 0 : 1;
|
|
@@ -69284,8 +69325,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69284
69325
|
V.kind === "get" ? this.raiseRecoverable(Be, "getter should have no params") : this.raiseRecoverable(Be, "setter should have exactly one param");
|
|
69285
69326
|
} else
|
|
69286
69327
|
V.kind === "set" && V.value.params[0].type === "RestElement" && this.raiseRecoverable(V.value.params[0].start, "Setter cannot use rest params");
|
|
69287
|
-
}, Xt.parsePropertyValue = function(V, ae, Be,
|
|
69288
|
-
(Be ||
|
|
69328
|
+
}, Xt.parsePropertyValue = function(V, ae, Be, Fe, We, lt, ct, $t) {
|
|
69329
|
+
(Be || Fe) && this.type === F.colon && this.unexpected(), this.eat(F.colon) ? (V.value = ae ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, ct), V.kind = "init") : this.options.ecmaVersion >= 6 && this.type === F.parenL ? (ae && this.unexpected(), V.kind = "init", V.method = !0, V.value = this.parseMethod(Be, Fe)) : !ae && !$t && this.options.ecmaVersion >= 5 && !V.computed && V.key.type === "Identifier" && (V.key.name === "get" || V.key.name === "set") && this.type !== F.comma && this.type !== F.braceR && this.type !== F.eq ? ((Be || Fe) && this.unexpected(), this.parseGetterSetter(V)) : this.options.ecmaVersion >= 6 && !V.computed && V.key.type === "Identifier" ? ((Be || Fe) && this.unexpected(), this.checkUnreserved(V.key), V.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = We), V.kind = "init", ae ? V.value = this.parseMaybeDefault(We, lt, this.copyNode(V.key)) : this.type === F.eq && ct ? (ct.shorthandAssign < 0 && (ct.shorthandAssign = this.start), V.value = this.parseMaybeDefault(We, lt, this.copyNode(V.key))) : V.value = this.copyNode(V.key), V.shorthand = !0) : this.unexpected();
|
|
69289
69330
|
}, Xt.parsePropertyName = function(V) {
|
|
69290
69331
|
if (this.options.ecmaVersion >= 6) {
|
|
69291
69332
|
if (this.eat(F.bracketL))
|
|
@@ -69296,15 +69337,15 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69296
69337
|
}, Xt.initFunction = function(V) {
|
|
69297
69338
|
V.id = null, this.options.ecmaVersion >= 6 && (V.generator = V.expression = !1), this.options.ecmaVersion >= 8 && (V.async = !1);
|
|
69298
69339
|
}, Xt.parseMethod = function(V, ae, Be) {
|
|
69299
|
-
var
|
|
69300
|
-
return this.initFunction(
|
|
69301
|
-
}, Xt.parseArrowExpression = function(V, ae, Be,
|
|
69340
|
+
var Fe = this.startNode(), We = this.yieldPos, lt = this.awaitPos, ct = this.awaitIdentPos;
|
|
69341
|
+
return this.initFunction(Fe), this.options.ecmaVersion >= 6 && (Fe.generator = V), this.options.ecmaVersion >= 8 && (Fe.async = !!ae), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ft(ae, Fe.generator) | yt | (Be ? Mt : 0)), this.expect(F.parenL), Fe.params = this.parseBindingList(F.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(Fe, !1, !0, !1), this.yieldPos = We, this.awaitPos = lt, this.awaitIdentPos = ct, this.finishNode(Fe, "FunctionExpression");
|
|
69342
|
+
}, Xt.parseArrowExpression = function(V, ae, Be, Fe) {
|
|
69302
69343
|
var We = this.yieldPos, lt = this.awaitPos, ct = this.awaitIdentPos;
|
|
69303
|
-
return this.enterScope(Ft(Be, !1) | Rt), this.initFunction(V), this.options.ecmaVersion >= 8 && (V.async = !!Be), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, V.params = this.toAssignableList(ae, !0), this.parseFunctionBody(V, !0, !1,
|
|
69304
|
-
}, Xt.parseFunctionBody = function(V, ae, Be,
|
|
69344
|
+
return this.enterScope(Ft(Be, !1) | Rt), this.initFunction(V), this.options.ecmaVersion >= 8 && (V.async = !!Be), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, V.params = this.toAssignableList(ae, !0), this.parseFunctionBody(V, !0, !1, Fe), this.yieldPos = We, this.awaitPos = lt, this.awaitIdentPos = ct, this.finishNode(V, "ArrowFunctionExpression");
|
|
69345
|
+
}, Xt.parseFunctionBody = function(V, ae, Be, Fe) {
|
|
69305
69346
|
var We = ae && this.type !== F.braceL, lt = this.strict, ct = !1;
|
|
69306
69347
|
if (We)
|
|
69307
|
-
V.body = this.parseMaybeAssign(
|
|
69348
|
+
V.body = this.parseMaybeAssign(Fe), V.expression = !0, this.checkParams(V, !1);
|
|
69308
69349
|
else {
|
|
69309
69350
|
var $t = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(V.params);
|
|
69310
69351
|
(!lt || $t) && (ct = this.strictDirective(this.end), ct && $t && this.raiseRecoverable(V.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
|
|
@@ -69314,31 +69355,31 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69314
69355
|
this.exitScope();
|
|
69315
69356
|
}, Xt.isSimpleParamList = function(V) {
|
|
69316
69357
|
for (var ae = 0, Be = V; ae < Be.length; ae += 1) {
|
|
69317
|
-
var
|
|
69318
|
-
if (
|
|
69358
|
+
var Fe = Be[ae];
|
|
69359
|
+
if (Fe.type !== "Identifier")
|
|
69319
69360
|
return !1;
|
|
69320
69361
|
}
|
|
69321
69362
|
return !0;
|
|
69322
69363
|
}, Xt.checkParams = function(V, ae) {
|
|
69323
|
-
for (var Be = /* @__PURE__ */ Object.create(null),
|
|
69324
|
-
var lt = We[
|
|
69364
|
+
for (var Be = /* @__PURE__ */ Object.create(null), Fe = 0, We = V.params; Fe < We.length; Fe += 1) {
|
|
69365
|
+
var lt = We[Fe];
|
|
69325
69366
|
this.checkLValInnerPattern(lt, it, ae ? null : Be);
|
|
69326
69367
|
}
|
|
69327
|
-
}, Xt.parseExprList = function(V, ae, Be,
|
|
69368
|
+
}, Xt.parseExprList = function(V, ae, Be, Fe) {
|
|
69328
69369
|
for (var We = [], lt = !0; !this.eat(V); ) {
|
|
69329
69370
|
if (lt)
|
|
69330
69371
|
lt = !1;
|
|
69331
69372
|
else if (this.expect(F.comma), ae && this.afterTrailingComma(V))
|
|
69332
69373
|
break;
|
|
69333
69374
|
var ct = void 0;
|
|
69334
|
-
Be && this.type === F.comma ? ct = null : this.type === F.ellipsis ? (ct = this.parseSpread(
|
|
69375
|
+
Be && this.type === F.comma ? ct = null : this.type === F.ellipsis ? (ct = this.parseSpread(Fe), Fe && this.type === F.comma && Fe.trailingComma < 0 && (Fe.trailingComma = this.start)) : ct = this.parseMaybeAssign(!1, Fe), We.push(ct);
|
|
69335
69376
|
}
|
|
69336
69377
|
return We;
|
|
69337
69378
|
}, Xt.checkUnreserved = function(V) {
|
|
69338
|
-
var ae = V.start, Be = V.end,
|
|
69339
|
-
if (this.inGenerator &&
|
|
69379
|
+
var ae = V.start, Be = V.end, Fe = V.name;
|
|
69380
|
+
if (this.inGenerator && Fe === "yield" && this.raiseRecoverable(ae, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && Fe === "await" && this.raiseRecoverable(ae, "Cannot use 'await' as identifier inside an async function"), this.currentThisScope().inClassFieldInit && Fe === "arguments" && this.raiseRecoverable(ae, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (Fe === "arguments" || Fe === "await") && this.raise(ae, "Cannot use " + Fe + " in class static initialization block"), this.keywords.test(Fe) && this.raise(ae, "Unexpected keyword '" + Fe + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(ae, Be).indexOf("\\") !== -1)) {
|
|
69340
69381
|
var We = this.strict ? this.reservedWordsStrict : this.reservedWords;
|
|
69341
|
-
We.test(
|
|
69382
|
+
We.test(Fe) && (!this.inAsync && Fe === "await" && this.raiseRecoverable(ae, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(ae, "The keyword '" + Fe + "' is reserved"));
|
|
69342
69383
|
}
|
|
69343
69384
|
}, Xt.parseIdent = function(V) {
|
|
69344
69385
|
var ae = this.parseIdentNode();
|
|
@@ -69362,8 +69403,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69362
69403
|
Br.raise = function(V, ae) {
|
|
69363
69404
|
var Be = tt(this.input, V);
|
|
69364
69405
|
ae += " (" + Be.line + ":" + Be.column + ")";
|
|
69365
|
-
var
|
|
69366
|
-
throw
|
|
69406
|
+
var Fe = new SyntaxError(ae);
|
|
69407
|
+
throw Fe.pos = V, Fe.loc = Be, Fe.raisedAt = this.pos, Fe;
|
|
69367
69408
|
}, Br.raiseRecoverable = Br.raise, Br.curPosition = function() {
|
|
69368
69409
|
if (this.options.locations)
|
|
69369
69410
|
return new He(this.curLine, this.pos - this.lineStart);
|
|
@@ -69378,27 +69419,27 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69378
69419
|
}, wr.treatFunctionsAsVarInScope = function(V) {
|
|
69379
69420
|
return V.flags & at || !this.inModule && V.flags & rt;
|
|
69380
69421
|
}, wr.declareName = function(V, ae, Be) {
|
|
69381
|
-
var
|
|
69422
|
+
var Fe = !1;
|
|
69382
69423
|
if (ae === et) {
|
|
69383
69424
|
var We = this.currentScope();
|
|
69384
|
-
|
|
69425
|
+
Fe = We.lexical.indexOf(V) > -1 || We.functions.indexOf(V) > -1 || We.var.indexOf(V) > -1, We.lexical.push(V), this.inModule && We.flags & rt && delete this.undefinedExports[V];
|
|
69385
69426
|
} else if (ae === ft) {
|
|
69386
69427
|
var lt = this.currentScope();
|
|
69387
69428
|
lt.lexical.push(V);
|
|
69388
69429
|
} else if (ae === ut) {
|
|
69389
69430
|
var ct = this.currentScope();
|
|
69390
|
-
this.treatFunctionsAsVar ?
|
|
69431
|
+
this.treatFunctionsAsVar ? Fe = ct.lexical.indexOf(V) > -1 : Fe = ct.lexical.indexOf(V) > -1 || ct.var.indexOf(V) > -1, ct.functions.push(V);
|
|
69391
69432
|
} else
|
|
69392
69433
|
for (var $t = this.scopeStack.length - 1; $t >= 0; --$t) {
|
|
69393
69434
|
var Dt = this.scopeStack[$t];
|
|
69394
69435
|
if (Dt.lexical.indexOf(V) > -1 && !(Dt.flags & Je && Dt.lexical[0] === V) || !this.treatFunctionsAsVarInScope(Dt) && Dt.functions.indexOf(V) > -1) {
|
|
69395
|
-
|
|
69436
|
+
Fe = !0;
|
|
69396
69437
|
break;
|
|
69397
69438
|
}
|
|
69398
69439
|
if (Dt.var.push(V), this.inModule && Dt.flags & rt && delete this.undefinedExports[V], Dt.flags & Ht)
|
|
69399
69440
|
break;
|
|
69400
69441
|
}
|
|
69401
|
-
|
|
69442
|
+
Fe && this.raiseRecoverable(Be, "Identifier '" + V + "' has already been declared");
|
|
69402
69443
|
}, wr.checkLocalExport = function(V) {
|
|
69403
69444
|
this.scopeStack[0].lexical.indexOf(V.name) === -1 && this.scopeStack[0].var.indexOf(V.name) === -1 && (this.undefinedExports[V.name] = V);
|
|
69404
69445
|
}, wr.currentScope = function() {
|
|
@@ -69416,21 +69457,21 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69416
69457
|
return ae;
|
|
69417
69458
|
}
|
|
69418
69459
|
};
|
|
69419
|
-
var Vr = function(ae, Be,
|
|
69420
|
-
this.type = "", this.start = Be, this.end = 0, ae.options.locations && (this.loc = new Ze(ae,
|
|
69460
|
+
var Vr = function(ae, Be, Fe) {
|
|
69461
|
+
this.type = "", this.start = Be, this.end = 0, ae.options.locations && (this.loc = new Ze(ae, Fe)), ae.options.directSourceFile && (this.sourceFile = ae.options.directSourceFile), ae.options.ranges && (this.range = [Be, 0]);
|
|
69421
69462
|
}, Lr = Ct.prototype;
|
|
69422
69463
|
Lr.startNode = function() {
|
|
69423
69464
|
return new Vr(this, this.start, this.startLoc);
|
|
69424
69465
|
}, Lr.startNodeAt = function(V, ae) {
|
|
69425
69466
|
return new Vr(this, V, ae);
|
|
69426
69467
|
};
|
|
69427
|
-
function _r(V, ae, Be,
|
|
69428
|
-
return V.type = ae, V.end = Be, this.options.locations && (V.loc.end =
|
|
69468
|
+
function _r(V, ae, Be, Fe) {
|
|
69469
|
+
return V.type = ae, V.end = Be, this.options.locations && (V.loc.end = Fe), this.options.ranges && (V.range[1] = Be), V;
|
|
69429
69470
|
}
|
|
69430
69471
|
Lr.finishNode = function(V, ae) {
|
|
69431
69472
|
return _r.call(this, V, ae, this.lastTokEnd, this.lastTokEndLoc);
|
|
69432
|
-
}, Lr.finishNodeAt = function(V, ae, Be,
|
|
69433
|
-
return _r.call(this, V, ae, Be,
|
|
69473
|
+
}, Lr.finishNodeAt = function(V, ae, Be, Fe) {
|
|
69474
|
+
return _r.call(this, V, ae, Be, Fe);
|
|
69434
69475
|
}, Lr.copyNode = function(V) {
|
|
69435
69476
|
var ae = new Vr(this, V.start, this.startLoc);
|
|
69436
69477
|
for (var Be in V)
|
|
@@ -69479,8 +69520,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69479
69520
|
};
|
|
69480
69521
|
Fr.prototype.separatedFrom = function(ae) {
|
|
69481
69522
|
for (var Be = this; Be; Be = Be.parent)
|
|
69482
|
-
for (var
|
|
69483
|
-
if (Be.base ===
|
|
69523
|
+
for (var Fe = ae; Fe; Fe = Fe.parent)
|
|
69524
|
+
if (Be.base === Fe.base && Be !== Fe)
|
|
69484
69525
|
return !0;
|
|
69485
69526
|
return !1;
|
|
69486
69527
|
}, Fr.prototype.sibling = function() {
|
|
@@ -69489,28 +69530,28 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69489
69530
|
var Cr = function(ae) {
|
|
69490
69531
|
this.parser = ae, this.validFlags = "gim" + (ae.options.ecmaVersion >= 6 ? "uy" : "") + (ae.options.ecmaVersion >= 9 ? "s" : "") + (ae.options.ecmaVersion >= 13 ? "d" : "") + (ae.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = ur[ae.options.ecmaVersion >= 14 ? 14 : ae.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
|
|
69491
69532
|
};
|
|
69492
|
-
Cr.prototype.reset = function(ae, Be,
|
|
69493
|
-
var We =
|
|
69494
|
-
this.start = ae | 0, this.source = Be + "", this.flags =
|
|
69533
|
+
Cr.prototype.reset = function(ae, Be, Fe) {
|
|
69534
|
+
var We = Fe.indexOf("v") !== -1, lt = Fe.indexOf("u") !== -1;
|
|
69535
|
+
this.start = ae | 0, this.source = Be + "", this.flags = Fe, We && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV = !0, this.switchN = !0) : (this.switchU = lt && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = lt && this.parser.options.ecmaVersion >= 9);
|
|
69495
69536
|
}, Cr.prototype.raise = function(ae) {
|
|
69496
69537
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + ae);
|
|
69497
69538
|
}, Cr.prototype.at = function(ae, Be) {
|
|
69498
69539
|
Be === void 0 && (Be = !1);
|
|
69499
|
-
var
|
|
69540
|
+
var Fe = this.source, We = Fe.length;
|
|
69500
69541
|
if (ae >= We)
|
|
69501
69542
|
return -1;
|
|
69502
|
-
var lt =
|
|
69543
|
+
var lt = Fe.charCodeAt(ae);
|
|
69503
69544
|
if (!(Be || this.switchU) || lt <= 55295 || lt >= 57344 || ae + 1 >= We)
|
|
69504
69545
|
return lt;
|
|
69505
|
-
var ct =
|
|
69546
|
+
var ct = Fe.charCodeAt(ae + 1);
|
|
69506
69547
|
return ct >= 56320 && ct <= 57343 ? (lt << 10) + ct - 56613888 : lt;
|
|
69507
69548
|
}, Cr.prototype.nextIndex = function(ae, Be) {
|
|
69508
69549
|
Be === void 0 && (Be = !1);
|
|
69509
|
-
var
|
|
69550
|
+
var Fe = this.source, We = Fe.length;
|
|
69510
69551
|
if (ae >= We)
|
|
69511
69552
|
return We;
|
|
69512
|
-
var lt =
|
|
69513
|
-
return !(Be || this.switchU) || lt <= 55295 || lt >= 57344 || ae + 1 >= We || (ct =
|
|
69553
|
+
var lt = Fe.charCodeAt(ae), ct;
|
|
69554
|
+
return !(Be || this.switchU) || lt <= 55295 || lt >= 57344 || ae + 1 >= We || (ct = Fe.charCodeAt(ae + 1)) < 56320 || ct > 57343 ? ae + 1 : ae + 2;
|
|
69514
69555
|
}, Cr.prototype.current = function(ae) {
|
|
69515
69556
|
return ae === void 0 && (ae = !1), this.at(this.pos, ae);
|
|
69516
69557
|
}, Cr.prototype.lookahead = function(ae) {
|
|
@@ -69521,19 +69562,19 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69521
69562
|
return Be === void 0 && (Be = !1), this.current(Be) === ae ? (this.advance(Be), !0) : !1;
|
|
69522
69563
|
}, Cr.prototype.eatChars = function(ae, Be) {
|
|
69523
69564
|
Be === void 0 && (Be = !1);
|
|
69524
|
-
for (var
|
|
69525
|
-
var ct = lt[We], $t = this.at(
|
|
69565
|
+
for (var Fe = this.pos, We = 0, lt = ae; We < lt.length; We += 1) {
|
|
69566
|
+
var ct = lt[We], $t = this.at(Fe, Be);
|
|
69526
69567
|
if ($t === -1 || $t !== ct)
|
|
69527
69568
|
return !1;
|
|
69528
|
-
|
|
69569
|
+
Fe = this.nextIndex(Fe, Be);
|
|
69529
69570
|
}
|
|
69530
|
-
return this.pos =
|
|
69571
|
+
return this.pos = Fe, !0;
|
|
69531
69572
|
}, Vt.validateRegExpFlags = function(V) {
|
|
69532
|
-
for (var ae = V.validFlags, Be = V.flags,
|
|
69573
|
+
for (var ae = V.validFlags, Be = V.flags, Fe = !1, We = !1, lt = 0; lt < Be.length; lt++) {
|
|
69533
69574
|
var ct = Be.charAt(lt);
|
|
69534
|
-
ae.indexOf(ct) === -1 && this.raise(V.start, "Invalid regular expression flag"), Be.indexOf(ct, lt + 1) > -1 && this.raise(V.start, "Duplicate regular expression flag"), ct === "u" && (
|
|
69575
|
+
ae.indexOf(ct) === -1 && this.raise(V.start, "Invalid regular expression flag"), Be.indexOf(ct, lt + 1) > -1 && this.raise(V.start, "Duplicate regular expression flag"), ct === "u" && (Fe = !0), ct === "v" && (We = !0);
|
|
69535
69576
|
}
|
|
69536
|
-
this.options.ecmaVersion >= 15 &&
|
|
69577
|
+
this.options.ecmaVersion >= 15 && Fe && We && this.raise(V.start, "Invalid regular expression flag");
|
|
69537
69578
|
};
|
|
69538
69579
|
function On(V) {
|
|
69539
69580
|
for (var ae in V)
|
|
@@ -69545,8 +69586,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69545
69586
|
}, Vt.regexp_pattern = function(V) {
|
|
69546
69587
|
V.pos = 0, V.lastIntValue = 0, V.lastStringValue = "", V.lastAssertionIsQuantifiable = !1, V.numCapturingParens = 0, V.maxBackReference = 0, V.groupNames = /* @__PURE__ */ Object.create(null), V.backReferenceNames.length = 0, V.branchID = null, this.regexp_disjunction(V), V.pos !== V.source.length && (V.eat(41) && V.raise("Unmatched ')'"), (V.eat(93) || V.eat(125)) && V.raise("Lone quantifier brackets")), V.maxBackReference > V.numCapturingParens && V.raise("Invalid escape");
|
|
69547
69588
|
for (var ae = 0, Be = V.backReferenceNames; ae < Be.length; ae += 1) {
|
|
69548
|
-
var
|
|
69549
|
-
V.groupNames[
|
|
69589
|
+
var Fe = Be[ae];
|
|
69590
|
+
V.groupNames[Fe] || V.raise("Invalid named capture referenced");
|
|
69550
69591
|
}
|
|
69551
69592
|
}, Vt.regexp_disjunction = function(V) {
|
|
69552
69593
|
var ae = this.options.ecmaVersion >= 16;
|
|
@@ -69580,9 +69621,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69580
69621
|
}, Vt.regexp_eatBracedQuantifier = function(V, ae) {
|
|
69581
69622
|
var Be = V.pos;
|
|
69582
69623
|
if (V.eat(123)) {
|
|
69583
|
-
var
|
|
69584
|
-
if (this.regexp_eatDecimalDigits(V) && (
|
|
69585
|
-
return We !== -1 && We <
|
|
69624
|
+
var Fe = 0, We = -1;
|
|
69625
|
+
if (this.regexp_eatDecimalDigits(V) && (Fe = V.lastIntValue, V.eat(44) && this.regexp_eatDecimalDigits(V) && (We = V.lastIntValue), V.eat(125)))
|
|
69626
|
+
return We !== -1 && We < Fe && !ae && V.raise("numbers out of order in {} quantifier"), !0;
|
|
69586
69627
|
V.switchU && !ae && V.raise("Incomplete quantifier"), V.pos = Be;
|
|
69587
69628
|
}
|
|
69588
69629
|
return !1;
|
|
@@ -69638,8 +69679,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69638
69679
|
var ae = this.options.ecmaVersion >= 16, Be = V.groupNames[V.lastStringValue];
|
|
69639
69680
|
if (Be)
|
|
69640
69681
|
if (ae)
|
|
69641
|
-
for (var
|
|
69642
|
-
var lt = We[
|
|
69682
|
+
for (var Fe = 0, We = Be; Fe < We.length; Fe += 1) {
|
|
69683
|
+
var lt = We[Fe];
|
|
69643
69684
|
lt.separatedFrom(V.branchID) || V.raise("Duplicate capture group name");
|
|
69644
69685
|
}
|
|
69645
69686
|
else
|
|
@@ -69661,15 +69702,15 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69661
69702
|
}
|
|
69662
69703
|
return !1;
|
|
69663
69704
|
}, Vt.regexp_eatRegExpIdentifierStart = function(V) {
|
|
69664
|
-
var ae = V.pos, Be = this.options.ecmaVersion >= 11,
|
|
69665
|
-
return V.advance(Be),
|
|
69705
|
+
var ae = V.pos, Be = this.options.ecmaVersion >= 11, Fe = V.current(Be);
|
|
69706
|
+
return V.advance(Be), Fe === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(V, Be) && (Fe = V.lastIntValue), Vn(Fe) ? (V.lastIntValue = Fe, !0) : (V.pos = ae, !1);
|
|
69666
69707
|
};
|
|
69667
69708
|
function Vn(V) {
|
|
69668
69709
|
return A(V, !0) || V === 36 || V === 95;
|
|
69669
69710
|
}
|
|
69670
69711
|
Vt.regexp_eatRegExpIdentifierPart = function(V) {
|
|
69671
|
-
var ae = V.pos, Be = this.options.ecmaVersion >= 11,
|
|
69672
|
-
return V.advance(Be),
|
|
69712
|
+
var ae = V.pos, Be = this.options.ecmaVersion >= 11, Fe = V.current(Be);
|
|
69713
|
+
return V.advance(Be), Fe === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(V, Be) && (Fe = V.lastIntValue), Dn(Fe) ? (V.lastIntValue = Fe, !0) : (V.pos = ae, !1);
|
|
69673
69714
|
};
|
|
69674
69715
|
function Dn(V) {
|
|
69675
69716
|
return M(V, !0) || V === 36 || V === 95 || V === 8204 || V === 8205;
|
|
@@ -69718,11 +69759,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69718
69759
|
}
|
|
69719
69760
|
Vt.regexp_eatRegExpUnicodeEscapeSequence = function(V, ae) {
|
|
69720
69761
|
ae === void 0 && (ae = !1);
|
|
69721
|
-
var Be = V.pos,
|
|
69762
|
+
var Be = V.pos, Fe = ae || V.switchU;
|
|
69722
69763
|
if (V.eat(117)) {
|
|
69723
69764
|
if (this.regexp_eatFixedHexDigits(V, 4)) {
|
|
69724
69765
|
var We = V.lastIntValue;
|
|
69725
|
-
if (
|
|
69766
|
+
if (Fe && We >= 55296 && We <= 56319) {
|
|
69726
69767
|
var lt = V.pos;
|
|
69727
69768
|
if (V.eat(92) && V.eat(117) && this.regexp_eatFixedHexDigits(V, 4)) {
|
|
69728
69769
|
var ct = V.lastIntValue;
|
|
@@ -69733,9 +69774,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69733
69774
|
}
|
|
69734
69775
|
return !0;
|
|
69735
69776
|
}
|
|
69736
|
-
if (
|
|
69777
|
+
if (Fe && V.eat(123) && this.regexp_eatHexDigits(V) && V.eat(125) && Bn(V.lastIntValue))
|
|
69737
69778
|
return !0;
|
|
69738
|
-
|
|
69779
|
+
Fe && V.raise("Invalid unicode escape"), V.pos = Be;
|
|
69739
69780
|
}
|
|
69740
69781
|
return !1;
|
|
69741
69782
|
};
|
|
@@ -69766,9 +69807,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69766
69807
|
var Be = !1;
|
|
69767
69808
|
if (V.switchU && this.options.ecmaVersion >= 9 && ((Be = ae === 80) || ae === 112)) {
|
|
69768
69809
|
V.lastIntValue = -1, V.advance();
|
|
69769
|
-
var
|
|
69770
|
-
if (V.eat(123) && (
|
|
69771
|
-
return Be &&
|
|
69810
|
+
var Fe;
|
|
69811
|
+
if (V.eat(123) && (Fe = this.regexp_eatUnicodePropertyValueExpression(V)) && V.eat(125))
|
|
69812
|
+
return Be && Fe === Er && V.raise("Invalid property name"), Fe;
|
|
69772
69813
|
V.raise("Invalid property name");
|
|
69773
69814
|
}
|
|
69774
69815
|
return Tn;
|
|
@@ -69781,8 +69822,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69781
69822
|
if (this.regexp_eatUnicodePropertyName(V) && V.eat(61)) {
|
|
69782
69823
|
var Be = V.lastStringValue;
|
|
69783
69824
|
if (this.regexp_eatUnicodePropertyValue(V)) {
|
|
69784
|
-
var
|
|
69785
|
-
return this.regexp_validateUnicodePropertyNameAndValue(V, Be,
|
|
69825
|
+
var Fe = V.lastStringValue;
|
|
69826
|
+
return this.regexp_validateUnicodePropertyNameAndValue(V, Be, Fe), Or;
|
|
69786
69827
|
}
|
|
69787
69828
|
}
|
|
69788
69829
|
if (V.pos = ae, this.regexp_eatLoneUnicodePropertyNameOrValue(V)) {
|
|
@@ -69791,7 +69832,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69791
69832
|
}
|
|
69792
69833
|
return Tn;
|
|
69793
69834
|
}, Vt.regexp_validateUnicodePropertyNameAndValue = function(V, ae, Be) {
|
|
69794
|
-
|
|
69835
|
+
je(V.unicodeProperties.nonBinary, ae) || V.raise("Invalid property name"), V.unicodeProperties.nonBinary[ae].test(Be) || V.raise("Invalid property value");
|
|
69795
69836
|
}, Vt.regexp_validateUnicodePropertyNameOrValue = function(V, ae) {
|
|
69796
69837
|
if (V.unicodeProperties.binary.test(ae))
|
|
69797
69838
|
return Or;
|
|
@@ -69845,8 +69886,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69845
69886
|
}
|
|
69846
69887
|
V.pos = ae;
|
|
69847
69888
|
}
|
|
69848
|
-
var
|
|
69849
|
-
return
|
|
69889
|
+
var Fe = V.current();
|
|
69890
|
+
return Fe !== 93 ? (V.lastIntValue = Fe, V.advance(), !0) : !1;
|
|
69850
69891
|
}, Vt.regexp_eatClassEscape = function(V) {
|
|
69851
69892
|
var ae = V.pos;
|
|
69852
69893
|
if (V.eat(98))
|
|
@@ -69864,18 +69905,18 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69864
69905
|
if (!this.regexp_eatClassSetRange(V))
|
|
69865
69906
|
if (Be = this.regexp_eatClassSetOperand(V)) {
|
|
69866
69907
|
Be === Er && (ae = Er);
|
|
69867
|
-
for (var
|
|
69908
|
+
for (var Fe = V.pos; V.eatChars([38, 38]); ) {
|
|
69868
69909
|
if (V.current() !== 38 && (Be = this.regexp_eatClassSetOperand(V))) {
|
|
69869
69910
|
Be !== Er && (ae = Or);
|
|
69870
69911
|
continue;
|
|
69871
69912
|
}
|
|
69872
69913
|
V.raise("Invalid character in character class");
|
|
69873
69914
|
}
|
|
69874
|
-
if (
|
|
69915
|
+
if (Fe !== V.pos)
|
|
69875
69916
|
return ae;
|
|
69876
69917
|
for (; V.eatChars([45, 45]); )
|
|
69877
69918
|
this.regexp_eatClassSetOperand(V) || V.raise("Invalid character in character class");
|
|
69878
|
-
if (
|
|
69919
|
+
if (Fe !== V.pos)
|
|
69879
69920
|
return ae;
|
|
69880
69921
|
} else
|
|
69881
69922
|
V.raise("Invalid character in character class");
|
|
@@ -69890,8 +69931,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69890
69931
|
if (this.regexp_eatClassSetCharacter(V)) {
|
|
69891
69932
|
var Be = V.lastIntValue;
|
|
69892
69933
|
if (V.eat(45) && this.regexp_eatClassSetCharacter(V)) {
|
|
69893
|
-
var
|
|
69894
|
-
return Be !== -1 &&
|
|
69934
|
+
var Fe = V.lastIntValue;
|
|
69935
|
+
return Be !== -1 && Fe !== -1 && Be > Fe && V.raise("Range out of order in character class"), !0;
|
|
69895
69936
|
}
|
|
69896
69937
|
V.pos = ae;
|
|
69897
69938
|
}
|
|
@@ -69901,9 +69942,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69901
69942
|
}, Vt.regexp_eatNestedClass = function(V) {
|
|
69902
69943
|
var ae = V.pos;
|
|
69903
69944
|
if (V.eat(91)) {
|
|
69904
|
-
var Be = V.eat(94),
|
|
69945
|
+
var Be = V.eat(94), Fe = this.regexp_classContents(V);
|
|
69905
69946
|
if (V.eat(93))
|
|
69906
|
-
return Be &&
|
|
69947
|
+
return Be && Fe === Er && V.raise("Negated character class may contain strings"), Fe;
|
|
69907
69948
|
V.pos = ae;
|
|
69908
69949
|
}
|
|
69909
69950
|
if (V.eat(92)) {
|
|
@@ -70006,7 +70047,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70006
70047
|
Vt.regexp_eatFixedHexDigits = function(V, ae) {
|
|
70007
70048
|
var Be = V.pos;
|
|
70008
70049
|
V.lastIntValue = 0;
|
|
70009
|
-
for (var
|
|
70050
|
+
for (var Fe = 0; Fe < ae; ++Fe) {
|
|
70010
70051
|
var We = V.current();
|
|
70011
70052
|
if (!En(We))
|
|
70012
70053
|
return V.pos = Be, !1;
|
|
@@ -70050,12 +70091,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70050
70091
|
}, rr.skipBlockComment = function() {
|
|
70051
70092
|
var V = this.options.onComment && this.curPosition(), ae = this.pos, Be = this.input.indexOf("*/", this.pos += 2);
|
|
70052
70093
|
if (Be === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = Be + 2, this.options.locations)
|
|
70053
|
-
for (var
|
|
70054
|
-
++this.curLine, We = this.lineStart =
|
|
70094
|
+
for (var Fe = void 0, We = ae; (Fe = ge(this.input, We, this.pos)) > -1; )
|
|
70095
|
+
++this.curLine, We = this.lineStart = Fe;
|
|
70055
70096
|
this.options.onComment && this.options.onComment(!0, this.input.slice(ae + 2, Be), ae, this.pos, V, this.curPosition());
|
|
70056
70097
|
}, rr.skipLineComment = function(V) {
|
|
70057
|
-
for (var ae = this.pos, Be = this.options.onComment && this.curPosition(),
|
|
70058
|
-
|
|
70098
|
+
for (var ae = this.pos, Be = this.options.onComment && this.curPosition(), Fe = this.input.charCodeAt(this.pos += V); this.pos < this.input.length && !oe(Fe); )
|
|
70099
|
+
Fe = this.input.charCodeAt(++this.pos);
|
|
70059
70100
|
this.options.onComment && this.options.onComment(!1, this.input.slice(ae + V, this.pos), ae, this.pos, Be, this.curPosition());
|
|
70060
70101
|
}, rr.skipSpace = function() {
|
|
70061
70102
|
e:
|
|
@@ -70106,8 +70147,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70106
70147
|
var V = this.input.charCodeAt(this.pos + 1);
|
|
70107
70148
|
return this.exprAllowed ? (++this.pos, this.readRegexp()) : V === 61 ? this.finishOp(F.assign, 2) : this.finishOp(F.slash, 1);
|
|
70108
70149
|
}, rr.readToken_mult_modulo_exp = function(V) {
|
|
70109
|
-
var ae = this.input.charCodeAt(this.pos + 1), Be = 1,
|
|
70110
|
-
return this.options.ecmaVersion >= 7 && V === 42 && ae === 42 && (++Be,
|
|
70150
|
+
var ae = this.input.charCodeAt(this.pos + 1), Be = 1, Fe = V === 42 ? F.star : F.modulo;
|
|
70151
|
+
return this.options.ecmaVersion >= 7 && V === 42 && ae === 42 && (++Be, Fe = F.starstar, ae = this.input.charCodeAt(this.pos + 2)), ae === 61 ? this.finishOp(F.assign, Be + 1) : this.finishOp(Fe, Be);
|
|
70111
70152
|
}, rr.readToken_pipe_amp = function(V) {
|
|
70112
70153
|
var ae = this.input.charCodeAt(this.pos + 1);
|
|
70113
70154
|
if (ae === V) {
|
|
@@ -70142,8 +70183,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70142
70183
|
}
|
|
70143
70184
|
if (ae === 63) {
|
|
70144
70185
|
if (V >= 12) {
|
|
70145
|
-
var
|
|
70146
|
-
if (
|
|
70186
|
+
var Fe = this.input.charCodeAt(this.pos + 2);
|
|
70187
|
+
if (Fe === 61)
|
|
70147
70188
|
return this.finishOp(F.assign, 3);
|
|
70148
70189
|
}
|
|
70149
70190
|
return this.finishOp(F.coalesce, 2);
|
|
@@ -70237,17 +70278,17 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70237
70278
|
}, rr.readRegexp = function() {
|
|
70238
70279
|
for (var V, ae, Be = this.pos; ; ) {
|
|
70239
70280
|
this.pos >= this.input.length && this.raise(Be, "Unterminated regular expression");
|
|
70240
|
-
var
|
|
70241
|
-
if (te.test(
|
|
70281
|
+
var Fe = this.input.charAt(this.pos);
|
|
70282
|
+
if (te.test(Fe) && this.raise(Be, "Unterminated regular expression"), V)
|
|
70242
70283
|
V = !1;
|
|
70243
70284
|
else {
|
|
70244
|
-
if (
|
|
70285
|
+
if (Fe === "[")
|
|
70245
70286
|
ae = !0;
|
|
70246
|
-
else if (
|
|
70287
|
+
else if (Fe === "]" && ae)
|
|
70247
70288
|
ae = !1;
|
|
70248
|
-
else if (
|
|
70289
|
+
else if (Fe === "/" && !ae)
|
|
70249
70290
|
break;
|
|
70250
|
-
V =
|
|
70291
|
+
V = Fe === "\\";
|
|
70251
70292
|
}
|
|
70252
70293
|
++this.pos;
|
|
70253
70294
|
}
|
|
@@ -70264,9 +70305,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70264
70305
|
}
|
|
70265
70306
|
return this.finishToken(F.regexp, { pattern: We, flags: ct, value: Dt });
|
|
70266
70307
|
}, rr.readInt = function(V, ae, Be) {
|
|
70267
|
-
for (var
|
|
70308
|
+
for (var Fe = this.options.ecmaVersion >= 12 && ae === void 0, We = Be && this.input.charCodeAt(this.pos) === 48, lt = this.pos, ct = 0, $t = 0, Dt = 0, er = ae ?? 1 / 0; Dt < er; ++Dt, ++this.pos) {
|
|
70268
70309
|
var Jt = this.input.charCodeAt(this.pos), mr = void 0;
|
|
70269
|
-
if (
|
|
70310
|
+
if (Fe && Jt === 95) {
|
|
70270
70311
|
We && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), $t === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), Dt === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), $t = Jt;
|
|
70271
70312
|
continue;
|
|
70272
70313
|
}
|
|
@@ -70274,7 +70315,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70274
70315
|
break;
|
|
70275
70316
|
$t = Jt, ct = ct * V + mr;
|
|
70276
70317
|
}
|
|
70277
|
-
return
|
|
70318
|
+
return Fe && $t === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === lt || ae != null && this.pos - lt !== ae ? null : ct;
|
|
70278
70319
|
};
|
|
70279
70320
|
function Hn(V, ae) {
|
|
70280
70321
|
return ae ? parseInt(V, 8) : parseFloat(V.replace(/_/g, ""));
|
|
@@ -70292,12 +70333,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70292
70333
|
!V && this.readInt(10, void 0, !0) === null && this.raise(ae, "Invalid number");
|
|
70293
70334
|
var Be = this.pos - ae >= 2 && this.input.charCodeAt(ae) === 48;
|
|
70294
70335
|
Be && this.strict && this.raise(ae, "Invalid number");
|
|
70295
|
-
var
|
|
70296
|
-
if (!Be && !V && this.options.ecmaVersion >= 11 &&
|
|
70336
|
+
var Fe = this.input.charCodeAt(this.pos);
|
|
70337
|
+
if (!Be && !V && this.options.ecmaVersion >= 11 && Fe === 110) {
|
|
70297
70338
|
var We = In(this.input.slice(ae, this.pos));
|
|
70298
70339
|
return ++this.pos, A(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(F.num, We);
|
|
70299
70340
|
}
|
|
70300
|
-
Be && /[89]/.test(this.input.slice(ae, this.pos)) && (Be = !1),
|
|
70341
|
+
Be && /[89]/.test(this.input.slice(ae, this.pos)) && (Be = !1), Fe === 46 && !Be && (++this.pos, this.readInt(10), Fe = this.input.charCodeAt(this.pos)), (Fe === 69 || Fe === 101) && !Be && (Fe = this.input.charCodeAt(++this.pos), (Fe === 43 || Fe === 45) && ++this.pos, this.readInt(10) === null && this.raise(ae, "Invalid number")), A(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
70301
70342
|
var lt = Hn(this.input.slice(ae, this.pos), Be);
|
|
70302
70343
|
return this.finishToken(F.num, lt);
|
|
70303
70344
|
}, rr.readCodePoint = function() {
|
|
@@ -70312,10 +70353,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70312
70353
|
}, rr.readString = function(V) {
|
|
70313
70354
|
for (var ae = "", Be = ++this.pos; ; ) {
|
|
70314
70355
|
this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
|
|
70315
|
-
var
|
|
70316
|
-
if (
|
|
70356
|
+
var Fe = this.input.charCodeAt(this.pos);
|
|
70357
|
+
if (Fe === V)
|
|
70317
70358
|
break;
|
|
70318
|
-
|
|
70359
|
+
Fe === 92 ? (ae += this.input.slice(Be, this.pos), ae += this.readEscapedChar(!1), Be = this.pos) : Fe === 8232 || Fe === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (oe(Fe) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
|
|
70319
70360
|
}
|
|
70320
70361
|
return ae += this.input.slice(Be, this.pos++), this.finishToken(F.string, ae);
|
|
70321
70362
|
};
|
|
@@ -70413,8 +70454,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70413
70454
|
}
|
|
70414
70455
|
default:
|
|
70415
70456
|
if (ae >= 48 && ae <= 55) {
|
|
70416
|
-
var
|
|
70417
|
-
return We > 255 && (
|
|
70457
|
+
var Fe = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], We = parseInt(Fe, 8);
|
|
70458
|
+
return We > 255 && (Fe = Fe.slice(0, -1), We = parseInt(Fe, 8)), this.pos += Fe.length - 1, ae = this.input.charCodeAt(this.pos), (Fe !== "0" || ae === 56 || ae === 57) && (this.strict || V) && this.invalidStringToken(this.pos - 1 - Fe.length, V ? "Octal literal in template string" : "Octal literal in strict mode"), String.fromCharCode(We);
|
|
70418
70459
|
}
|
|
70419
70460
|
return oe(ae) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(ae);
|
|
70420
70461
|
}
|
|
@@ -70423,16 +70464,16 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70423
70464
|
return Be === null && this.invalidStringToken(ae, "Bad character escape sequence"), Be;
|
|
70424
70465
|
}, rr.readWord1 = function() {
|
|
70425
70466
|
this.containsEsc = !1;
|
|
70426
|
-
for (var V = "", ae = !0, Be = this.pos,
|
|
70467
|
+
for (var V = "", ae = !0, Be = this.pos, Fe = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
|
|
70427
70468
|
var We = this.fullCharCodeAtPos();
|
|
70428
|
-
if (M(We,
|
|
70469
|
+
if (M(We, Fe))
|
|
70429
70470
|
this.pos += We <= 65535 ? 1 : 2;
|
|
70430
70471
|
else if (We === 92) {
|
|
70431
70472
|
this.containsEsc = !0, V += this.input.slice(Be, this.pos);
|
|
70432
70473
|
var lt = this.pos;
|
|
70433
70474
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
70434
70475
|
var ct = this.readCodePoint();
|
|
70435
|
-
(ae ? A : M)(ct,
|
|
70476
|
+
(ae ? A : M)(ct, Fe) || this.invalidStringToken(lt, "Invalid Unicode escape"), V += qe(ct), Be = this.pos;
|
|
70436
70477
|
} else
|
|
70437
70478
|
break;
|
|
70438
70479
|
ae = !1;
|
|
@@ -73795,7 +73836,7 @@ function ProductCard({
|
|
|
73795
73836
|
applicationId: t
|
|
73796
73837
|
}, {
|
|
73797
73838
|
skip: !t || !S
|
|
73798
|
-
}), Ne = ((at = e == null ? void 0 : e.Distribution) == null ? void 0 : at.Cost) || 0, Ve = ((st = e == null ? void 0 : e.Distribution) == null ? void 0 : st.RegularPrice) || 0,
|
|
73839
|
+
}), Ne = ((at = e == null ? void 0 : e.Distribution) == null ? void 0 : at.Cost) || 0, Ve = ((st = e == null ? void 0 : e.Distribution) == null ? void 0 : st.RegularPrice) || 0, je = ((Ue = e == null ? void 0 : e.Distribution) == null ? void 0 : Ue.Price) || 0, ze = useMemo(() => {
|
|
73799
73840
|
var et;
|
|
73800
73841
|
return !((et = e == null ? void 0 : e.Distribution) != null && et.Inventory) || e.Distribution.Inventory.length === 0 ? 0 : e.Distribution.Inventory.reduce((ut, ft) => ut + (ft.PurchaseOrderQuantity || 0), 0);
|
|
73801
73842
|
}, [(Rt = e == null ? void 0 : e.Distribution) == null ? void 0 : Rt.Inventory]);
|
|
@@ -73809,9 +73850,9 @@ function ProductCard({
|
|
|
73809
73850
|
}
|
|
73810
73851
|
}, [e, o]), useEffect(() => {
|
|
73811
73852
|
if (!e) return;
|
|
73812
|
-
const et = R != null && R.Price ? R.Price :
|
|
73853
|
+
const et = R != null && R.Price ? R.Price : je;
|
|
73813
73854
|
I(Ve > 0 ? Math.round((Ve - et) / Ve * 100) : 0);
|
|
73814
|
-
}, [e, R,
|
|
73855
|
+
}, [e, R, je, Ve]), useEffect(() => {
|
|
73815
73856
|
d || E(1);
|
|
73816
73857
|
}, [d]);
|
|
73817
73858
|
const Oe = (et) => {
|
|
@@ -74197,7 +74238,7 @@ function ProductCard({
|
|
|
74197
74238
|
formatMoney(Ne)
|
|
74198
74239
|
] }) }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
74199
74240
|
/* @__PURE__ */ jsxs("div", { className: "flex products-center flex-wrap", children: [
|
|
74200
|
-
/* @__PURE__ */ jsx("span", { className: "text-2xl font-bold whitespace-nowrap", children: formatMoney((R ? (Ke = (Ft = e.Opportunities) == null ? void 0 : Ft.find((et) => et.BidNumber == R.BidNumber)) == null ? void 0 : Ke.Price :
|
|
74241
|
+
/* @__PURE__ */ jsx("span", { className: "text-2xl font-bold whitespace-nowrap", children: formatMoney((R ? (Ke = (Ft = e.Opportunities) == null ? void 0 : Ft.find((et) => et.BidNumber == R.BidNumber)) == null ? void 0 : Ke.Price : je) ?? 0) }),
|
|
74201
74242
|
M > 0 && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: formatMoney(Ve) })
|
|
74202
74243
|
] }),
|
|
74203
74244
|
M > 0 && /* @__PURE__ */ jsx("div", { className: "flex products-center", children: /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "bg-red-50 text-red-700 rounded-full px-3 whitespace-nowrap", children: [
|
|
@@ -74744,7 +74785,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
74744
74785
|
var He;
|
|
74745
74786
|
return Array.from(((He = j.current) == null ? void 0 : He.querySelectorAll(ce)) || []);
|
|
74746
74787
|
}
|
|
74747
|
-
function
|
|
74788
|
+
function je(He) {
|
|
74748
74789
|
let Ze = Ve()[He];
|
|
74749
74790
|
Ze && te.setState("value", Ze.getAttribute(T));
|
|
74750
74791
|
}
|
|
@@ -74758,10 +74799,10 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
74758
74799
|
for (; tt && !Ye; ) tt = He > 0 ? we(tt, N) : De(tt, N), Ye = tt == null ? void 0 : tt.querySelector(ce);
|
|
74759
74800
|
Ye ? te.setState("value", Ye.getAttribute(T)) : ze(He);
|
|
74760
74801
|
}
|
|
74761
|
-
let Le = () =>
|
|
74802
|
+
let Le = () => je(Ve().length - 1), qe = (He) => {
|
|
74762
74803
|
He.preventDefault(), He.metaKey ? Le() : He.altKey ? Oe(1) : ze(1);
|
|
74763
74804
|
}, Ge = (He) => {
|
|
74764
|
-
He.preventDefault(), He.metaKey ?
|
|
74805
|
+
He.preventDefault(), He.metaKey ? je(0) : He.altKey ? Oe(-1) : ze(-1);
|
|
74765
74806
|
};
|
|
74766
74807
|
return React.createElement(Primitive.div, { ref: e, tabIndex: -1, ...O, "cmdk-root": "", onKeyDown: (He) => {
|
|
74767
74808
|
var Ze;
|
|
@@ -74787,7 +74828,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
74787
74828
|
break;
|
|
74788
74829
|
}
|
|
74789
74830
|
case "Home": {
|
|
74790
|
-
He.preventDefault(),
|
|
74831
|
+
He.preventDefault(), je(0);
|
|
74791
74832
|
break;
|
|
74792
74833
|
}
|
|
74793
74834
|
case "End": {
|
|
@@ -75147,7 +75188,7 @@ const salesChannels = [
|
|
|
75147
75188
|
{ id: "other-market", label: "Other (please specify)" }
|
|
75148
75189
|
];
|
|
75149
75190
|
function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
75150
|
-
const { toast: n } = useToast(), [o, l] = useState(!1), [d, f] = useState(!1), [g, b] = useState(!1), [S, _] = useState(""), [C, E] = useState(""), [R, A] = useState(!1), [M, I] = useState(""), [O, q] = useState(""), [z, Q] = useState([]), [j, F] = useState(""), [te, ne] = useState(""), [oe, ge] = useState([]), [se, Ae] = useState(""), [$e, Ne] = useState(""), [Ve] = usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation(), { sendMessage:
|
|
75191
|
+
const { toast: n } = useToast(), [o, l] = useState(!1), [d, f] = useState(!1), [g, b] = useState(!1), [S, _] = useState(""), [C, E] = useState(""), [R, A] = useState(!1), [M, I] = useState(""), [O, q] = useState(""), [z, Q] = useState([]), [j, F] = useState(""), [te, ne] = useState(""), [oe, ge] = useState([]), [se, Ae] = useState(""), [$e, Ne] = useState(""), [Ve] = usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation(), { sendMessage: je } = useChat(), ze = () => {
|
|
75151
75192
|
_(""), E("");
|
|
75152
75193
|
}, Oe = () => {
|
|
75153
75194
|
I(""), q(""), Q([]), F(""), ne(""), ge([]), Ae(""), Ne("");
|
|
@@ -75170,7 +75211,7 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
75170
75211
|
return;
|
|
75171
75212
|
}
|
|
75172
75213
|
const ot = (rt = Xe.data) == null ? void 0 : rt.ConversationId;
|
|
75173
|
-
ot &&
|
|
75214
|
+
ot && je(ot) ? (l(!1), ze()) : n({ title: "Could not send message", description: "Try again later.", variant: "destructive" });
|
|
75174
75215
|
}).catch((Xe) => {
|
|
75175
75216
|
console.error(Xe), n({ title: "Could not initiate chat", description: "Try again later.", variant: "destructive" });
|
|
75176
75217
|
}).finally(() => {
|
|
@@ -75205,7 +75246,7 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
75205
75246
|
return;
|
|
75206
75247
|
}
|
|
75207
75248
|
const Ue = (Rt = st.data) == null ? void 0 : Rt.ConversationId;
|
|
75208
|
-
Ue &&
|
|
75249
|
+
Ue && je(Ue) ? (f(!1), Oe()) : n({ title: "Could not send message", description: "Try again later.", variant: "destructive" });
|
|
75209
75250
|
}).catch((st) => {
|
|
75210
75251
|
console.error(st), n({ title: "Could not initiate chat", description: "Try again later.", variant: "destructive" });
|
|
75211
75252
|
}).finally(() => {
|
|
@@ -75377,7 +75418,7 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
75377
75418
|
defaultProp: g,
|
|
75378
75419
|
onChange: b,
|
|
75379
75420
|
caller: SELECT_NAME
|
|
75380
|
-
}), se = React.useRef(null), Ae = I ? A || !!I.closest("form") : !0, [$e, Ne] = React.useState(/* @__PURE__ */ new Set()), Ve = Array.from($e).map((
|
|
75421
|
+
}), se = React.useRef(null), Ae = I ? A || !!I.closest("form") : !0, [$e, Ne] = React.useState(/* @__PURE__ */ new Set()), Ve = Array.from($e).map((je) => je.props.value).join(";");
|
|
75381
75422
|
return /* @__PURE__ */ jsx(Root2$6, { ...M, children: /* @__PURE__ */ jsxs(
|
|
75382
75423
|
SelectProvider,
|
|
75383
75424
|
{
|
|
@@ -75402,13 +75443,13 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
75402
75443
|
SelectNativeOptionsProvider,
|
|
75403
75444
|
{
|
|
75404
75445
|
scope: t.__scopeSelect,
|
|
75405
|
-
onNativeOptionAdd: React.useCallback((
|
|
75406
|
-
Ne((ze) => new Set(ze).add(
|
|
75446
|
+
onNativeOptionAdd: React.useCallback((je) => {
|
|
75447
|
+
Ne((ze) => new Set(ze).add(je));
|
|
75407
75448
|
}, []),
|
|
75408
|
-
onNativeOptionRemove: React.useCallback((
|
|
75449
|
+
onNativeOptionRemove: React.useCallback((je) => {
|
|
75409
75450
|
Ne((ze) => {
|
|
75410
75451
|
const Oe = new Set(ze);
|
|
75411
|
-
return Oe.delete(
|
|
75452
|
+
return Oe.delete(je), Oe;
|
|
75412
75453
|
});
|
|
75413
75454
|
}, []),
|
|
75414
75455
|
children: n
|
|
@@ -75423,7 +75464,7 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
75423
75464
|
name: _,
|
|
75424
75465
|
autoComplete: C,
|
|
75425
75466
|
value: oe,
|
|
75426
|
-
onChange: (
|
|
75467
|
+
onChange: (je) => ge(je.target.value),
|
|
75427
75468
|
disabled: E,
|
|
75428
75469
|
form: A,
|
|
75429
75470
|
children: [
|
|
@@ -75552,7 +75593,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
75552
75593
|
React.useEffect(() => {
|
|
75553
75594
|
if (z) return hideOthers(z);
|
|
75554
75595
|
}, [z]), useFocusGuards();
|
|
75555
|
-
const
|
|
75596
|
+
const je = React.useCallback(
|
|
75556
75597
|
(Xe) => {
|
|
75557
75598
|
const [ot, ...rt] = Ae().map((Ue) => Ue.ref.current), [at] = rt.slice(-1), st = document.activeElement;
|
|
75558
75599
|
for (const Ue of Xe)
|
|
@@ -75560,8 +75601,8 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
75560
75601
|
},
|
|
75561
75602
|
[Ae, j]
|
|
75562
75603
|
), ze = React.useCallback(
|
|
75563
|
-
() =>
|
|
75564
|
-
[
|
|
75604
|
+
() => je([ne, z]),
|
|
75605
|
+
[je, ne, z]
|
|
75565
75606
|
);
|
|
75566
75607
|
React.useEffect(() => {
|
|
75567
75608
|
$e && ze();
|
|
@@ -75681,7 +75722,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
75681
75722
|
const st = Xe.target, Ue = at.indexOf(st);
|
|
75682
75723
|
at = at.slice(Ue + 1);
|
|
75683
75724
|
}
|
|
75684
|
-
setTimeout(() =>
|
|
75725
|
+
setTimeout(() => je(at)), Xe.preventDefault();
|
|
75685
75726
|
}
|
|
75686
75727
|
})
|
|
75687
75728
|
}
|
|
@@ -75717,7 +75758,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
75717
75758
|
]);
|
|
75718
75759
|
g.style.minWidth = Je + "px", g.style.right = qt + "px";
|
|
75719
75760
|
}
|
|
75720
|
-
const se = E(), Ae = window.innerHeight - CONTENT_MARGIN * 2, $e = M.scrollHeight, Ne = window.getComputedStyle(S), Ve = parseInt(Ne.borderTopWidth, 10),
|
|
75761
|
+
const se = E(), Ae = window.innerHeight - CONTENT_MARGIN * 2, $e = M.scrollHeight, Ne = window.getComputedStyle(S), Ve = parseInt(Ne.borderTopWidth, 10), je = parseInt(Ne.paddingTop, 10), ze = parseInt(Ne.borderBottomWidth, 10), Oe = parseInt(Ne.paddingBottom, 10), Le = Ve + je + $e + Oe + ze, qe = Math.min(I.offsetHeight * 5, Le), Ge = window.getComputedStyle(M), He = parseInt(Ge.paddingTop, 10), Ze = parseInt(Ge.paddingBottom, 10), tt = te.top + te.height / 2 - CONTENT_MARGIN, Ye = Ae - tt, Qe = I.offsetHeight / 2, Xe = I.offsetTop + Qe, ot = Ve + je + Xe, rt = Le - ot;
|
|
75721
75762
|
if (ot <= tt) {
|
|
75722
75763
|
const st = se.length > 0 && I === se[se.length - 1].ref.current;
|
|
75723
75764
|
g.style.bottom = "0px";
|
|
@@ -89807,11 +89848,11 @@ function requireWithSelector_development() {
|
|
|
89807
89848
|
}
|
|
89808
89849
|
return te = $e, $e;
|
|
89809
89850
|
}
|
|
89810
|
-
var Ve = F,
|
|
89851
|
+
var Ve = F, je = te;
|
|
89811
89852
|
if (o(Ve, Ae))
|
|
89812
|
-
return
|
|
89853
|
+
return je;
|
|
89813
89854
|
var ze = R(Ae);
|
|
89814
|
-
return A !== void 0 && A(
|
|
89855
|
+
return A !== void 0 && A(je, ze) ? je : (F = Ae, te = ze, ze);
|
|
89815
89856
|
}, oe = E === void 0 ? null : E, ge = function() {
|
|
89816
89857
|
return ne(C());
|
|
89817
89858
|
}, se = oe === null ? void 0 : function() {
|
|
@@ -92012,14 +92053,14 @@ function ProductOverviewPage({
|
|
|
92012
92053
|
skip: !g
|
|
92013
92054
|
}), [C, E] = useState("stats"), [R, A] = useState(!1);
|
|
92014
92055
|
useEffect(() => {
|
|
92015
|
-
var Ne, Ve,
|
|
92056
|
+
var Ne, Ve, je, ze, Oe, Le, qe, Ge;
|
|
92016
92057
|
if (_ || !S) {
|
|
92017
92058
|
A(!1);
|
|
92018
92059
|
return;
|
|
92019
92060
|
}
|
|
92020
92061
|
const Ae = {
|
|
92021
92062
|
stats: (((Ne = S == null ? void 0 : S.SalesStatistics) == null ? void 0 : Ne.length) ?? 0) <= 0,
|
|
92022
|
-
inventory: (((
|
|
92063
|
+
inventory: (((je = (Ve = S == null ? void 0 : S.Distribution) == null ? void 0 : Ve.Inventory) == null ? void 0 : je.length) ?? 0) <= 0,
|
|
92023
92064
|
opportunities: (((ze = S == null ? void 0 : S.Opportunities) == null ? void 0 : ze.length) ?? 0) <= 0,
|
|
92024
92065
|
orders: (((Oe = S == null ? void 0 : S.ActiveOrderDetails) == null ? void 0 : Oe.length) ?? 0) <= 0 && (((Le = S == null ? void 0 : S.Returns) == null ? void 0 : Le.length) ?? 0) <= 0,
|
|
92025
92066
|
invoices: (((qe = S == null ? void 0 : S.CompletedOrderDetails) == null ? void 0 : qe.length) ?? 0) <= 0,
|
|
@@ -92397,11 +92438,11 @@ function OpportunitiesTable({
|
|
|
92397
92438
|
id: "actions",
|
|
92398
92439
|
header: "Actions",
|
|
92399
92440
|
cell: ({ row: ne }) => {
|
|
92400
|
-
var Ve,
|
|
92441
|
+
var Ve, je;
|
|
92401
92442
|
const oe = ne.original;
|
|
92402
92443
|
if (!oe.BidNumber)
|
|
92403
92444
|
return /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: "Actions unavailable" });
|
|
92404
|
-
const ge = oe.BidNumber, se = (Ve = l[ge]) == null ? void 0 : Ve.isSettingDefault, Ae = (_ == null ? void 0 : _.BidNumber) === ge && ((
|
|
92445
|
+
const ge = oe.BidNumber, se = (Ve = l[ge]) == null ? void 0 : Ve.isSettingDefault, Ae = (_ == null ? void 0 : _.BidNumber) === ge && ((je = l[ge]) == null ? void 0 : je.isSendingReport), $e = se || Ae, Ne = oe.CanBeSetAsDefault === !0;
|
|
92405
92446
|
return /* @__PURE__ */ jsxs("div", { className: "flex space-x-2", children: [
|
|
92406
92447
|
/* @__PURE__ */ jsx("a", { href: `/${t}/Opportunity/${oe.ManufacturerId}/${oe.BidNumber}`, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", className: "flex items-center", children: [
|
|
92407
92448
|
/* @__PURE__ */ jsx(Star, { className: "mr-2 h-4 w-4" }),
|