randmarcomps 1.312.0 → 1.313.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 +604 -580
- 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}`,
|
|
@@ -17234,6 +17243,26 @@ 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, e, n) => {
|
|
17254
|
+
var d;
|
|
17255
|
+
const o = (d = e == null ? void 0 : e.response) == null ? void 0 : d.headers.get("content-disposition");
|
|
17256
|
+
let l = `${n.documentNumber}.pdf`;
|
|
17257
|
+
if (o) {
|
|
17258
|
+
const f = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(o);
|
|
17259
|
+
f != null && f[1] && (l = f[1].replace(/['"]/g, ""));
|
|
17260
|
+
}
|
|
17261
|
+
return {
|
|
17262
|
+
url: window.URL.createObjectURL(t),
|
|
17263
|
+
filename: l
|
|
17264
|
+
};
|
|
17265
|
+
}
|
|
17237
17266
|
}
|
|
17238
17267
|
}
|
|
17239
17268
|
});
|
|
@@ -18178,7 +18207,7 @@ function requireReactIs_development$2() {
|
|
|
18178
18207
|
}
|
|
18179
18208
|
}
|
|
18180
18209
|
}
|
|
18181
|
-
var F = f, te = d, ne = t, oe = b, ge = n, se = E, Ae = C, $e = e, Ne = l, Ve = o,
|
|
18210
|
+
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
18211
|
function qe(Je) {
|
|
18183
18212
|
return Oe || (Oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
18184
18213
|
}
|
|
@@ -18221,7 +18250,7 @@ function requireReactIs_development$2() {
|
|
|
18221
18250
|
function Rt(Je) {
|
|
18222
18251
|
return j(Je) === _;
|
|
18223
18252
|
}
|
|
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 =
|
|
18253
|
+
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
18254
|
}()), reactIs_development$2;
|
|
18226
18255
|
}
|
|
18227
18256
|
var hasRequiredReactIs$2;
|
|
@@ -20258,8 +20287,8 @@ function require_equalByTag() {
|
|
|
20258
20287
|
if (Ve)
|
|
20259
20288
|
return Ve == te;
|
|
20260
20289
|
oe |= g, Ae.set(F, te);
|
|
20261
|
-
var
|
|
20262
|
-
return Ae.delete(F),
|
|
20290
|
+
var je = o($e(F), $e(te), oe, ge, se, Ae);
|
|
20291
|
+
return Ae.delete(F), je;
|
|
20263
20292
|
case I:
|
|
20264
20293
|
if (Q)
|
|
20265
20294
|
return Q.call(F) == Q.call(te);
|
|
@@ -21621,7 +21650,7 @@ var DefaultTooltipContent = function(e) {
|
|
|
21621
21650
|
}, $e = (E ? sortBy(_, E) : _).map(function(Ne, Ve) {
|
|
21622
21651
|
if (Ne.type === "none")
|
|
21623
21652
|
return null;
|
|
21624
|
-
var
|
|
21653
|
+
var je = _objectSpread$w({
|
|
21625
21654
|
display: "block",
|
|
21626
21655
|
paddingTop: 4,
|
|
21627
21656
|
paddingBottom: 4,
|
|
@@ -21640,7 +21669,7 @@ var DefaultTooltipContent = function(e) {
|
|
|
21640
21669
|
/* @__PURE__ */ React__default.createElement("li", {
|
|
21641
21670
|
className: "recharts-tooltip-item",
|
|
21642
21671
|
key: "tooltip-item-".concat(Ve),
|
|
21643
|
-
style:
|
|
21672
|
+
style: je
|
|
21644
21673
|
}, isNumOrStr(Ge) ? /* @__PURE__ */ React__default.createElement("span", {
|
|
21645
21674
|
className: "recharts-tooltip-item-name"
|
|
21646
21675
|
}, Ge) : null, isNumOrStr(Ge) ? /* @__PURE__ */ React__default.createElement("span", {
|
|
@@ -22213,8 +22242,8 @@ function requireDebounce() {
|
|
|
22213
22242
|
return I = $e, A = setTimeout(ne, b), O ? Q($e) : R;
|
|
22214
22243
|
}
|
|
22215
22244
|
function F($e) {
|
|
22216
|
-
var Ne = $e - M, Ve = $e - I,
|
|
22217
|
-
return q ? d(
|
|
22245
|
+
var Ne = $e - M, Ve = $e - I, je = b - Ne;
|
|
22246
|
+
return q ? d(je, E - Ve) : je;
|
|
22218
22247
|
}
|
|
22219
22248
|
function te($e) {
|
|
22220
22249
|
var Ne = $e - M, Ve = $e - I;
|
|
@@ -22373,9 +22402,9 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
|
|
|
22373
22402
|
containerHeight: l.height
|
|
22374
22403
|
}), ne = _slicedToArray$a(te, 2), oe = ne[0], ge = ne[1], se = useCallback(function($e, Ne) {
|
|
22375
22404
|
ge(function(Ve) {
|
|
22376
|
-
var
|
|
22377
|
-
return Ve.containerWidth ===
|
|
22378
|
-
containerWidth:
|
|
22405
|
+
var je = Math.round($e), ze = Math.round(Ne);
|
|
22406
|
+
return Ve.containerWidth === je && Ve.containerHeight === ze ? Ve : {
|
|
22407
|
+
containerWidth: je,
|
|
22379
22408
|
containerHeight: ze
|
|
22380
22409
|
};
|
|
22381
22410
|
});
|
|
@@ -22389,8 +22418,8 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
|
|
|
22389
22418
|
trailing: !0,
|
|
22390
22419
|
leading: !1
|
|
22391
22420
|
}));
|
|
22392
|
-
var Ne = new ResizeObserver($e), Ve = j.current.getBoundingClientRect(),
|
|
22393
|
-
return se(
|
|
22421
|
+
var Ne = new ResizeObserver($e), Ve = j.current.getBoundingClientRect(), je = Ve.width, ze = Ve.height;
|
|
22422
|
+
return se(je, ze), Ne.observe(j.current), function() {
|
|
22394
22423
|
Ne.disconnect();
|
|
22395
22424
|
};
|
|
22396
22425
|
}, [se, M]);
|
|
@@ -22400,21 +22429,21 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
|
|
|
22400
22429
|
return null;
|
|
22401
22430
|
warn$1(isPercent(f) || isPercent(b), `The width(%s) and height(%s) are both fixed numbers,
|
|
22402
22431
|
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 ?
|
|
22432
|
+
var Ve = isPercent(f) ? $e : f, je = isPercent(b) ? Ne : b;
|
|
22433
|
+
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
22434
|
please check the style of container, or the props width(%s) and height(%s),
|
|
22406
22435
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
22407
|
-
height and width.`, Ve,
|
|
22436
|
+
height and width.`, Ve, je, f, b, _, C, n);
|
|
22408
22437
|
var ze = !Array.isArray(R) && getDisplayName(R.type).endsWith("Chart");
|
|
22409
22438
|
return React__default.Children.map(R, function(Oe) {
|
|
22410
22439
|
return /* @__PURE__ */ React__default.isValidElement(Oe) ? /* @__PURE__ */ cloneElement(Oe, _objectSpread$t({
|
|
22411
22440
|
width: Ve,
|
|
22412
|
-
height:
|
|
22441
|
+
height: je
|
|
22413
22442
|
}, ze ? {
|
|
22414
22443
|
style: _objectSpread$t({
|
|
22415
22444
|
height: "100%",
|
|
22416
22445
|
width: "100%",
|
|
22417
|
-
maxHeight:
|
|
22446
|
+
maxHeight: je,
|
|
22418
22447
|
maxWidth: Ve
|
|
22419
22448
|
}, Oe.props.style)
|
|
22420
22449
|
} : {})) : Oe;
|
|
@@ -22804,8 +22833,8 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
22804
22833
|
}, calculateWordsByLines = function(e, n, o, l, d) {
|
|
22805
22834
|
var f = e.maxLines, g = e.children, b = e.style, S = e.breakAll, _ = isNumber$2(f), C = g, E = function() {
|
|
22806
22835
|
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 =
|
|
22836
|
+
return Ve.reduce(function(je, ze) {
|
|
22837
|
+
var Oe = ze.word, Le = ze.width, qe = je[je.length - 1];
|
|
22809
22838
|
if (qe && (l == null || d || qe.width + Le + o < Number(l)))
|
|
22810
22839
|
qe.words.push(Oe), qe.width += Le + o;
|
|
22811
22840
|
else {
|
|
@@ -22813,22 +22842,22 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
22813
22842
|
words: [Oe],
|
|
22814
22843
|
width: Le
|
|
22815
22844
|
};
|
|
22816
|
-
|
|
22845
|
+
je.push(Ge);
|
|
22817
22846
|
}
|
|
22818
|
-
return
|
|
22847
|
+
return je;
|
|
22819
22848
|
}, []);
|
|
22820
22849
|
}, R = E(n), A = function(Ve) {
|
|
22821
|
-
return Ve.reduce(function(
|
|
22822
|
-
return
|
|
22850
|
+
return Ve.reduce(function(je, ze) {
|
|
22851
|
+
return je.width > ze.width ? je : ze;
|
|
22823
22852
|
});
|
|
22824
22853
|
};
|
|
22825
22854
|
if (!_)
|
|
22826
22855
|
return R;
|
|
22827
22856
|
for (var M = "…", I = function(Ve) {
|
|
22828
|
-
var
|
|
22857
|
+
var je = C.slice(0, Ve), ze = calculateWordWidths({
|
|
22829
22858
|
breakAll: S,
|
|
22830
22859
|
style: b,
|
|
22831
|
-
children:
|
|
22860
|
+
children: je + M
|
|
22832
22861
|
}).wordsWithComputedWidth, Oe = E(ze), Le = Oe.length > f || A(Oe).width > Number(l);
|
|
22833
22862
|
return [Le, Oe];
|
|
22834
22863
|
}, O = 0, q = C.length - 1, z = 0, Q; O <= q && z <= C.length - 1; ) {
|
|
@@ -22902,8 +22931,8 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
22902
22931
|
className: clsx("recharts-text", te),
|
|
22903
22932
|
textAnchor: R,
|
|
22904
22933
|
fill: O.includes("url") ? DEFAULT_FILL : O
|
|
22905
|
-
}), z.map(function(
|
|
22906
|
-
var Oe =
|
|
22934
|
+
}), z.map(function(je, ze) {
|
|
22935
|
+
var Oe = je.words.join(ne ? "" : " ");
|
|
22907
22936
|
return (
|
|
22908
22937
|
// duplicate words will cause duplicate keys
|
|
22909
22938
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -23773,7 +23802,7 @@ function formatLocale$1(t) {
|
|
|
23773
23802
|
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
23803
|
z = z === void 0 ? 6 : /[gprs]/.test(j) ? Math.max(1, Math.min(21, z)) : Math.max(0, Math.min(20, z));
|
|
23775
23804
|
function ge(se) {
|
|
23776
|
-
var Ae = F, $e = te, Ne, Ve,
|
|
23805
|
+
var Ae = F, $e = te, Ne, Ve, je;
|
|
23777
23806
|
if (j === "c")
|
|
23778
23807
|
$e = ne(se) + $e, se = "";
|
|
23779
23808
|
else {
|
|
@@ -23781,8 +23810,8 @@ function formatLocale$1(t) {
|
|
|
23781
23810
|
var ze = se < 0 || 1 / se < 0;
|
|
23782
23811
|
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
23812
|
for (Ne = -1, Ve = se.length; ++Ne < Ve; )
|
|
23784
|
-
if (
|
|
23785
|
-
$e = (
|
|
23813
|
+
if (je = se.charCodeAt(Ne), 48 > je || je > 57) {
|
|
23814
|
+
$e = (je === 46 ? l + se.slice(Ne + 1) : se.slice(Ne)) + $e, se = se.slice(0, Ne);
|
|
23786
23815
|
break;
|
|
23787
23816
|
}
|
|
23788
23817
|
}
|
|
@@ -24441,7 +24470,7 @@ function formatLocale(t) {
|
|
|
24441
24470
|
w: parseWeekdayNumberSunday,
|
|
24442
24471
|
W: parseWeekNumberMonday,
|
|
24443
24472
|
x: Ve,
|
|
24444
|
-
X:
|
|
24473
|
+
X: je,
|
|
24445
24474
|
y: parseYear,
|
|
24446
24475
|
Y: parseFullYear,
|
|
24447
24476
|
Z: parseZone,
|
|
@@ -24505,7 +24534,7 @@ function formatLocale(t) {
|
|
|
24505
24534
|
function Ve(rt, at, st) {
|
|
24506
24535
|
return ne(rt, n, at, st);
|
|
24507
24536
|
}
|
|
24508
|
-
function
|
|
24537
|
+
function je(rt, at, st) {
|
|
24509
24538
|
return ne(rt, o, at, st);
|
|
24510
24539
|
}
|
|
24511
24540
|
function ze(rt) {
|
|
@@ -25986,16 +26015,16 @@ var ErrorBar = /* @__PURE__ */ function(t) {
|
|
|
25986
26015
|
y2: Ae
|
|
25987
26016
|
});
|
|
25988
26017
|
} else if (d === "horizontal") {
|
|
25989
|
-
var Ve = C.scale,
|
|
26018
|
+
var Ve = C.scale, je = O + l, ze = je - f, Oe = je + f, Le = Ve(z - F), qe = Ve(z + te);
|
|
25990
26019
|
j.push({
|
|
25991
26020
|
x1: ze,
|
|
25992
26021
|
y1: qe,
|
|
25993
26022
|
x2: Oe,
|
|
25994
26023
|
y2: qe
|
|
25995
26024
|
}), j.push({
|
|
25996
|
-
x1:
|
|
26025
|
+
x1: je,
|
|
25997
26026
|
y1: Le,
|
|
25998
|
-
x2:
|
|
26027
|
+
x2: je,
|
|
25999
26028
|
y2: qe
|
|
26000
26029
|
}), j.push({
|
|
26001
26030
|
x1: ze,
|
|
@@ -27768,7 +27797,7 @@ function requireReactIs_development$1() {
|
|
|
27768
27797
|
}
|
|
27769
27798
|
}
|
|
27770
27799
|
}
|
|
27771
|
-
var j = b, F = S, te = g, ne = f, oe = e, ge = _, se = o, Ae = A, $e = R, Ne = n, Ve = d,
|
|
27800
|
+
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
27801
|
function Le(Ue) {
|
|
27773
27802
|
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
27803
|
}
|
|
@@ -27808,7 +27837,7 @@ function requireReactIs_development$1() {
|
|
|
27808
27837
|
function st(Ue) {
|
|
27809
27838
|
return Q(Ue) === C;
|
|
27810
27839
|
}
|
|
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 =
|
|
27840
|
+
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
27841
|
}()), reactIs_development$1;
|
|
27813
27842
|
}
|
|
27814
27843
|
var hasRequiredReactIs$1;
|
|
@@ -28003,7 +28032,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28003
28032
|
}
|
|
28004
28033
|
function O(qe) {
|
|
28005
28034
|
function Ge(He, Ze, tt, Ye, Qe, Xe) {
|
|
28006
|
-
var ot = He[Ze], rt =
|
|
28035
|
+
var ot = He[Ze], rt = je(ot);
|
|
28007
28036
|
if (rt !== qe) {
|
|
28008
28037
|
var at = ze(ot);
|
|
28009
28038
|
return new M(
|
|
@@ -28024,7 +28053,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28024
28053
|
return new M("Property `" + Qe + "` of component `" + tt + "` has invalid PropType notation inside arrayOf.");
|
|
28025
28054
|
var Xe = He[Ze];
|
|
28026
28055
|
if (!Array.isArray(Xe)) {
|
|
28027
|
-
var ot =
|
|
28056
|
+
var ot = je(Xe);
|
|
28028
28057
|
return new M("Invalid " + Ye + " `" + Qe + "` of type " + ("`" + ot + "` supplied to `" + tt + "`, expected an array."));
|
|
28029
28058
|
}
|
|
28030
28059
|
for (var rt = 0; rt < Xe.length; rt++) {
|
|
@@ -28040,7 +28069,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28040
28069
|
function qe(Ge, He, Ze, tt, Ye) {
|
|
28041
28070
|
var Qe = Ge[He];
|
|
28042
28071
|
if (!g(Qe)) {
|
|
28043
|
-
var Xe =
|
|
28072
|
+
var Xe = je(Qe);
|
|
28044
28073
|
return new M("Invalid " + tt + " `" + Ye + "` of type " + ("`" + Xe + "` supplied to `" + Ze + "`, expected a single ReactElement."));
|
|
28045
28074
|
}
|
|
28046
28075
|
return null;
|
|
@@ -28051,7 +28080,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28051
28080
|
function qe(Ge, He, Ze, tt, Ye) {
|
|
28052
28081
|
var Qe = Ge[He];
|
|
28053
28082
|
if (!t.isValidElementType(Qe)) {
|
|
28054
|
-
var Xe =
|
|
28083
|
+
var Xe = je(Qe);
|
|
28055
28084
|
return new M("Invalid " + tt + " `" + Ye + "` of type " + ("`" + Xe + "` supplied to `" + Ze + "`, expected a single ReactElement type."));
|
|
28056
28085
|
}
|
|
28057
28086
|
return null;
|
|
@@ -28089,7 +28118,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28089
28118
|
function Ge(He, Ze, tt, Ye, Qe) {
|
|
28090
28119
|
if (typeof qe != "function")
|
|
28091
28120
|
return new M("Property `" + Qe + "` of component `" + tt + "` has invalid PropType notation inside objectOf.");
|
|
28092
|
-
var Xe = He[Ze], ot =
|
|
28121
|
+
var Xe = He[Ze], ot = je(Xe);
|
|
28093
28122
|
if (ot !== "object")
|
|
28094
28123
|
return new M("Invalid " + Ye + " `" + Qe + "` of type " + ("`" + ot + "` supplied to `" + tt + "`, expected an object."));
|
|
28095
28124
|
for (var rt in Xe)
|
|
@@ -28137,7 +28166,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28137
28166
|
}
|
|
28138
28167
|
function Ae(qe) {
|
|
28139
28168
|
function Ge(He, Ze, tt, Ye, Qe) {
|
|
28140
|
-
var Xe = He[Ze], ot =
|
|
28169
|
+
var Xe = He[Ze], ot = je(Xe);
|
|
28141
28170
|
if (ot !== "object")
|
|
28142
28171
|
return new M("Invalid " + Ye + " `" + Qe + "` of type `" + ot + "` " + ("supplied to `" + tt + "`, expected `object`."));
|
|
28143
28172
|
for (var rt in qe) {
|
|
@@ -28154,7 +28183,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28154
28183
|
}
|
|
28155
28184
|
function $e(qe) {
|
|
28156
28185
|
function Ge(He, Ze, tt, Ye, Qe) {
|
|
28157
|
-
var Xe = He[Ze], ot =
|
|
28186
|
+
var Xe = He[Ze], ot = je(Xe);
|
|
28158
28187
|
if (ot !== "object")
|
|
28159
28188
|
return new M("Invalid " + Ye + " `" + Qe + "` of type `" + ot + "` " + ("supplied to `" + tt + "`, expected `object`."));
|
|
28160
28189
|
var rt = e({}, He[Ze], qe);
|
|
@@ -28211,14 +28240,14 @@ Valid keys: ` + JSON.stringify(Object.keys(qe), null, " ")
|
|
|
28211
28240
|
function Ve(qe, Ge) {
|
|
28212
28241
|
return qe === "symbol" ? !0 : Ge ? Ge["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && Ge instanceof Symbol : !1;
|
|
28213
28242
|
}
|
|
28214
|
-
function
|
|
28243
|
+
function je(qe) {
|
|
28215
28244
|
var Ge = typeof qe;
|
|
28216
28245
|
return Array.isArray(qe) ? "array" : qe instanceof RegExp ? "object" : Ve(Ge, qe) ? "symbol" : Ge;
|
|
28217
28246
|
}
|
|
28218
28247
|
function ze(qe) {
|
|
28219
28248
|
if (typeof qe > "u" || qe === null)
|
|
28220
28249
|
return "" + qe;
|
|
28221
|
-
var Ge =
|
|
28250
|
+
var Ge = je(qe);
|
|
28222
28251
|
if (Ge === "object") {
|
|
28223
28252
|
if (qe instanceof Date)
|
|
28224
28253
|
return "date";
|
|
@@ -31176,7 +31205,7 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
31176
31205
|
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
31206
|
numericAxis: Q
|
|
31178
31207
|
}), te = findAllByType(q, Cell), ne = C.map(function(oe, ge) {
|
|
31179
|
-
var se, Ae, $e, Ne, Ve,
|
|
31208
|
+
var se, Ae, $e, Ne, Ve, je;
|
|
31180
31209
|
S ? se = truncateByDomain(S[_ + ge], j) : (se = getValueByDataKey(oe, O), Array.isArray(se) || (se = [F, se]));
|
|
31181
31210
|
var ze = minPointSizeCallback(z, _Bar.defaultProps.minPointSize)(se[1], ge);
|
|
31182
31211
|
if (A === "horizontal") {
|
|
@@ -31190,7 +31219,7 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
31190
31219
|
index: ge
|
|
31191
31220
|
}), $e = (Oe = Ge ?? qe) !== null && Oe !== void 0 ? Oe : void 0, Ne = R.size;
|
|
31192
31221
|
var He = qe - Ge;
|
|
31193
|
-
if (Ve = Number.isNaN(He) ? 0 : He,
|
|
31222
|
+
if (Ve = Number.isNaN(He) ? 0 : He, je = {
|
|
31194
31223
|
x: Ae,
|
|
31195
31224
|
y: f.y,
|
|
31196
31225
|
width: Ne,
|
|
@@ -31208,7 +31237,7 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
31208
31237
|
offset: R.offset,
|
|
31209
31238
|
entry: oe,
|
|
31210
31239
|
index: ge
|
|
31211
|
-
}), Ne = Qe - Ye, Ve = R.size,
|
|
31240
|
+
}), Ne = Qe - Ye, Ve = R.size, je = {
|
|
31212
31241
|
x: d.x,
|
|
31213
31242
|
y: $e,
|
|
31214
31243
|
width: d.width,
|
|
@@ -31225,7 +31254,7 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
31225
31254
|
height: Ve,
|
|
31226
31255
|
value: S ? se : se[1],
|
|
31227
31256
|
payload: oe,
|
|
31228
|
-
background:
|
|
31257
|
+
background: je
|
|
31229
31258
|
}, te && te[ge] && te[ge].props), {}, {
|
|
31230
31259
|
tooltipPayload: [getTooltipItem(n, oe)],
|
|
31231
31260
|
tooltipPosition: {
|
|
@@ -31316,10 +31345,10 @@ var formatAxisMap = function(e, n, o, l, d) {
|
|
|
31316
31345
|
if (Ne.forEach(function(tt, Ye) {
|
|
31317
31346
|
Ye > 0 && ($e = Math.min((tt || 0) - (Ne[Ye - 1] || 0), $e));
|
|
31318
31347
|
}), 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) /
|
|
31348
|
+
var Ve = $e / Ae, je = M.layout === "vertical" ? o.height : o.width;
|
|
31349
|
+
if (M.padding === "gap" && (te = Ve * je / 2), M.padding === "no-gap") {
|
|
31350
|
+
var ze = getPercentValue(e.barCategoryGap, Ve * je), Oe = Ve * je / 2;
|
|
31351
|
+
te = Oe - ze - (Oe - ze) / je * ze;
|
|
31323
31352
|
}
|
|
31324
31353
|
}
|
|
31325
31354
|
}
|
|
@@ -33328,7 +33357,7 @@ var Area = /* @__PURE__ */ function(t) {
|
|
|
33328
33357
|
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
33358
|
r: 3,
|
|
33330
33359
|
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,
|
|
33360
|
+
}, 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
33361
|
return /* @__PURE__ */ React__default.createElement(Layer, {
|
|
33333
33362
|
className: z
|
|
33334
33363
|
}, Q || j ? /* @__PURE__ */ React__default.createElement("defs", null, /* @__PURE__ */ React__default.createElement("clipPath", {
|
|
@@ -33341,10 +33370,10 @@ var Area = /* @__PURE__ */ function(t) {
|
|
|
33341
33370
|
})), !Ve && /* @__PURE__ */ React__default.createElement("clipPath", {
|
|
33342
33371
|
id: "clipPath-dots-".concat(te)
|
|
33343
33372
|
}, /* @__PURE__ */ React__default.createElement("rect", {
|
|
33344
|
-
x: _ -
|
|
33345
|
-
y: S -
|
|
33346
|
-
width: R +
|
|
33347
|
-
height: A +
|
|
33373
|
+
x: _ - je / 2,
|
|
33374
|
+
y: S - je / 2,
|
|
33375
|
+
width: R + je,
|
|
33376
|
+
height: A + je
|
|
33348
33377
|
}))) : null, q ? null : this.renderArea(F, te), (f || q) && this.renderDots(F, Ve, te), (!M || O) && LabelList.renderCallByParent(this.props, g));
|
|
33349
33378
|
}
|
|
33350
33379
|
}], [{
|
|
@@ -34389,7 +34418,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34389
34418
|
isDomainSpecifiedByUser(O.domain, Q, q) && (Ae = parseSpecifiedDomain(O.domain, null, Q), R && (q === "number" || F !== "auto") && (Ne = getDomainOfDataByKey(ge, z, "category")));
|
|
34390
34419
|
var Ve = getDefaultDomainByAxisType(q);
|
|
34391
34420
|
if (!Ae || Ae.length === 0) {
|
|
34392
|
-
var
|
|
34421
|
+
var je, ze = (je = O.domain) !== null && je !== void 0 ? je : Ve;
|
|
34393
34422
|
if (z) {
|
|
34394
34423
|
if (Ae = getDomainOfDataByKey(ge, z, q), q === "category" && R) {
|
|
34395
34424
|
var Oe = hasDuplicate(Ae);
|
|
@@ -34550,13 +34579,13 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34550
34579
|
return e[n].height;
|
|
34551
34580
|
}, generateCategoricalChart = function(e) {
|
|
34552
34581
|
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,
|
|
34582
|
+
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
34583
|
return z.forEach(function(Le, qe) {
|
|
34555
34584
|
var Ge = getDisplayedData(O.data, {
|
|
34556
34585
|
graphicalItems: [Le],
|
|
34557
34586
|
dataStartIndex: te,
|
|
34558
34587
|
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(
|
|
34588
|
+
}), 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
34589
|
var ut, ft, dt = q["".concat(et.axisType, "Map")], Ct = He["".concat(et.axisType, "Id")];
|
|
34561
34590
|
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
34591
|
et.axisType,
|
|
@@ -34564,10 +34593,10 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34564
34593
|
).concat((ut = Le == null || (ft = Le.type) === null || ft === void 0 ? void 0 : ft.displayName) !== null && ut !== void 0 ? ut : "")) : invariant$1());
|
|
34565
34594
|
var zt = dt[Ct];
|
|
34566
34595
|
return _objectSpread(_objectSpread({}, it), {}, _defineProperty(_defineProperty({}, et.axisType, zt), "".concat(et.axisType, "Ticks"), getTicksOfAxis(zt)));
|
|
34567
|
-
}, Xe), rt = ot[
|
|
34596
|
+
}, 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
34597
|
barSize: oe,
|
|
34569
34598
|
stackGroups: Q,
|
|
34570
|
-
totalSize: getCartesianAxisSize(ot,
|
|
34599
|
+
totalSize: getCartesianAxisSize(ot, je)
|
|
34571
34600
|
});
|
|
34572
34601
|
if (Ue) {
|
|
34573
34602
|
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 +34630,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34601
34630
|
dataEndIndex: ne
|
|
34602
34631
|
}))), {}, _defineProperty(_defineProperty(_defineProperty({
|
|
34603
34632
|
key: Le.key || "item-".concat(qe)
|
|
34604
|
-
}, Ve, ot[Ve]),
|
|
34633
|
+
}, Ve, ot[Ve]), je, ot[je]), "animationId", F)),
|
|
34605
34634
|
childIndex: parseChildIndex(Le, O.children),
|
|
34606
34635
|
item: Le
|
|
34607
34636
|
});
|
|
@@ -34612,11 +34641,11 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34612
34641
|
props: z
|
|
34613
34642
|
}))
|
|
34614
34643
|
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),
|
|
34644
|
+
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
34645
|
var tt = "".concat(Ze.axisType, "Map");
|
|
34617
34646
|
return _objectSpread(_objectSpread({}, He), {}, _defineProperty({}, tt, getAxisMap(z, _objectSpread(_objectSpread({}, Ze), {}, {
|
|
34618
34647
|
graphicalItems: Ve,
|
|
34619
|
-
stackGroups: Ze.axisType === $e &&
|
|
34648
|
+
stackGroups: Ze.axisType === $e && je,
|
|
34620
34649
|
dataStartIndex: Q,
|
|
34621
34650
|
dataEndIndex: j
|
|
34622
34651
|
}))));
|
|
@@ -34632,14 +34661,14 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34632
34661
|
dataEndIndex: j,
|
|
34633
34662
|
updateId: F,
|
|
34634
34663
|
graphicalItems: Ve,
|
|
34635
|
-
stackGroups:
|
|
34664
|
+
stackGroups: je,
|
|
34636
34665
|
offset: Oe
|
|
34637
34666
|
}));
|
|
34638
34667
|
return _objectSpread(_objectSpread({
|
|
34639
34668
|
formattedGraphicalItems: Ge,
|
|
34640
34669
|
graphicalItems: Ve,
|
|
34641
34670
|
offset: Oe,
|
|
34642
|
-
stackGroups:
|
|
34671
|
+
stackGroups: je
|
|
34643
34672
|
}, qe), ze);
|
|
34644
34673
|
}, A = /* @__PURE__ */ function(I) {
|
|
34645
34674
|
function O(q) {
|
|
@@ -34791,7 +34820,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34791
34820
|
updateId: ge
|
|
34792
34821
|
}, j.state)));
|
|
34793
34822
|
else if (F.activeTooltipIndex !== void 0) {
|
|
34794
|
-
var $e = F.chartX, Ne = F.chartY, Ve = F.activeTooltipIndex,
|
|
34823
|
+
var $e = F.chartX, Ne = F.chartY, Ve = F.activeTooltipIndex, je = j.state, ze = je.offset, Oe = je.tooltipTicks;
|
|
34795
34824
|
if (!ze)
|
|
34796
34825
|
return;
|
|
34797
34826
|
if (typeof oe == "function")
|
|
@@ -34820,7 +34849,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34820
34849
|
} else
|
|
34821
34850
|
j.setState(F);
|
|
34822
34851
|
}), _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(),
|
|
34852
|
+
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
34853
|
return /* @__PURE__ */ React__default.createElement(Cursor, {
|
|
34825
34854
|
key: Oe,
|
|
34826
34855
|
activeCoordinate: ge,
|
|
@@ -34828,7 +34857,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34828
34857
|
activeTooltipIndex: $e,
|
|
34829
34858
|
chartName: n,
|
|
34830
34859
|
element: F,
|
|
34831
|
-
isActive:
|
|
34860
|
+
isActive: je,
|
|
34832
34861
|
layout: ze,
|
|
34833
34862
|
offset: Ae,
|
|
34834
34863
|
tooltipAxisBandSize: Ne,
|
|
@@ -34842,7 +34871,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34842
34871
|
ticks: getTicksOfAxis($e, !0)
|
|
34843
34872
|
}));
|
|
34844
34873
|
}), _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),
|
|
34874
|
+
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
34875
|
return /* @__PURE__ */ cloneElement(F, {
|
|
34847
34876
|
polarAngles: Array.isArray(oe) ? oe : getTicksOfAxis(Ve, !0).map(function(qe) {
|
|
34848
34877
|
return qe.coordinate;
|
|
@@ -34850,7 +34879,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34850
34879
|
polarRadius: Array.isArray(ge) ? ge : getTicksOfAxis(Ne, !0).map(function(qe) {
|
|
34851
34880
|
return qe.coordinate;
|
|
34852
34881
|
}),
|
|
34853
|
-
cx:
|
|
34882
|
+
cx: je,
|
|
34854
34883
|
cy: ze,
|
|
34855
34884
|
innerRadius: Oe,
|
|
34856
34885
|
outerRadius: Le,
|
|
@@ -34877,11 +34906,11 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34877
34906
|
var F, te = j.props, ne = te.children, oe = te.accessibilityLayer, ge = findChildByType(ne, Tooltip);
|
|
34878
34907
|
if (!ge)
|
|
34879
34908
|
return null;
|
|
34880
|
-
var se = j.state, Ae = se.isTooltipActive, $e = se.activeCoordinate, Ne = se.activePayload, Ve = se.activeLabel,
|
|
34909
|
+
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
34910
|
return /* @__PURE__ */ cloneElement(ge, {
|
|
34882
|
-
viewBox: _objectSpread(_objectSpread({},
|
|
34883
|
-
x:
|
|
34884
|
-
y:
|
|
34911
|
+
viewBox: _objectSpread(_objectSpread({}, je), {}, {
|
|
34912
|
+
x: je.left,
|
|
34913
|
+
y: je.top
|
|
34885
34914
|
}),
|
|
34886
34915
|
active: ze,
|
|
34887
34916
|
label: Ve,
|
|
@@ -34905,7 +34934,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34905
34934
|
}), _defineProperty(j, "renderReferenceElement", function(F, te, ne) {
|
|
34906
34935
|
if (!F)
|
|
34907
34936
|
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 || {},
|
|
34937
|
+
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
34938
|
return /* @__PURE__ */ cloneElement(F, {
|
|
34910
34939
|
key: F.key || "".concat(te, "-").concat(ne),
|
|
34911
34940
|
xAxis: Ae[Oe],
|
|
@@ -34919,9 +34948,9 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34919
34948
|
clipPathId: ge
|
|
34920
34949
|
});
|
|
34921
34950
|
}), _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,
|
|
34951
|
+
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
34952
|
index: ge,
|
|
34924
|
-
dataKey:
|
|
34953
|
+
dataKey: je,
|
|
34925
34954
|
cx: ne.x,
|
|
34926
34955
|
cy: ne.y,
|
|
34927
34956
|
r: 4,
|
|
@@ -34939,7 +34968,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34939
34968
|
var oe = j.filterFormatItem(F, te, ne);
|
|
34940
34969
|
if (!oe)
|
|
34941
34970
|
return null;
|
|
34942
|
-
var ge = j.getTooltipEventType(), se = j.state, Ae = se.isTooltipActive, $e = se.tooltipAxis, Ne = se.activeTooltipIndex, Ve = se.activeLabel,
|
|
34971
|
+
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
34972
|
ge !== "axis" && ze && ze.props.trigger === "click" ? ot = {
|
|
34944
34973
|
onClick: combineEventHandlers(j.handleItemMouseEnter, F.props.onClick)
|
|
34945
34974
|
} : ge !== "axis" && (ot = {
|
|
@@ -35080,11 +35109,11 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35080
35109
|
} : {
|
|
35081
35110
|
y: Ae,
|
|
35082
35111
|
x: $e
|
|
35083
|
-
},
|
|
35112
|
+
}, je = this.state.formattedGraphicalItems.find(function(Oe) {
|
|
35084
35113
|
var Le = Oe.item;
|
|
35085
35114
|
return Le.type.name === "Scatter";
|
|
35086
35115
|
});
|
|
35087
|
-
|
|
35116
|
+
je && (Ve = _objectSpread(_objectSpread({}, Ve), je.props.points[oe].tooltipPosition), se = je.props.points[oe].tooltipPayload);
|
|
35088
35117
|
var ze = {
|
|
35089
35118
|
activeTooltipIndex: oe,
|
|
35090
35119
|
isTooltipActive: !0,
|
|
@@ -35154,7 +35183,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35154
35183
|
return null;
|
|
35155
35184
|
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
35185
|
if ($e !== "axis" && se && Ae) {
|
|
35157
|
-
var Ve = getAnyElementOfObject(se).scale,
|
|
35186
|
+
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
35187
|
return _objectSpread(_objectSpread({}, te), {}, {
|
|
35159
35188
|
xValue: ze,
|
|
35160
35189
|
yValue: Oe
|
|
@@ -35291,16 +35320,16 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35291
35320
|
payload: Ve
|
|
35292
35321
|
};
|
|
35293
35322
|
} else if (isFunnel(oe, F) || isPie(oe, F) || isScatter(oe, F)) {
|
|
35294
|
-
var
|
|
35323
|
+
var je = getActiveShapeIndexForTooltip({
|
|
35295
35324
|
graphicalItem: oe,
|
|
35296
35325
|
activeTooltipItem: F,
|
|
35297
35326
|
itemData: Ae.data
|
|
35298
|
-
}), ze = Ae.activeIndex === void 0 ?
|
|
35327
|
+
}), ze = Ae.activeIndex === void 0 ? je : Ae.activeIndex;
|
|
35299
35328
|
return {
|
|
35300
35329
|
graphicalItem: _objectSpread(_objectSpread({}, oe), {}, {
|
|
35301
35330
|
childIndex: ze
|
|
35302
35331
|
}),
|
|
35303
|
-
payload: isScatter(oe, F) ? Ae.data[
|
|
35332
|
+
payload: isScatter(oe, F) ? Ae.data[je] : oe.props.data[je]
|
|
35304
35333
|
};
|
|
35305
35334
|
}
|
|
35306
35335
|
}
|
|
@@ -35326,8 +35355,8 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35326
35355
|
desc: Ae
|
|
35327
35356
|
}), this.renderClipPath(), renderByOrder(j, this.renderMap)));
|
|
35328
35357
|
if (this.props.accessibilityLayer) {
|
|
35329
|
-
var Ve,
|
|
35330
|
-
Ne.tabIndex = (Ve = this.props.tabIndex) !== null && Ve !== void 0 ? Ve : 0, Ne.role = (
|
|
35358
|
+
var Ve, je;
|
|
35359
|
+
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
35360
|
z.accessibilityManager.keyboardEvent(Oe);
|
|
35332
35361
|
}, Ne.onFocus = function() {
|
|
35333
35362
|
z.accessibilityManager.focus();
|
|
@@ -35406,10 +35435,10 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35406
35435
|
isTooltipActive: O.isTooltipActive
|
|
35407
35436
|
}, Ve = _objectSpread(_objectSpread({}, getTooltipData(O, z, te)), {}, {
|
|
35408
35437
|
updateId: O.updateId + 1
|
|
35409
|
-
}),
|
|
35410
|
-
return _objectSpread(_objectSpread(_objectSpread({},
|
|
35438
|
+
}), je = _objectSpread(_objectSpread(_objectSpread({}, $e), Ne), Ve);
|
|
35439
|
+
return _objectSpread(_objectSpread(_objectSpread({}, je), R(_objectSpread({
|
|
35411
35440
|
props: I
|
|
35412
|
-
},
|
|
35441
|
+
}, je), O)), {}, {
|
|
35413
35442
|
prevDataKey: q,
|
|
35414
35443
|
prevData: z,
|
|
35415
35444
|
prevWidth: j,
|
|
@@ -35913,9 +35942,9 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
35913
35942
|
var oe, ge, se, Ae, $e, Ne, Ve = te.length;
|
|
35914
35943
|
for (ge = 0; ge < Ve; ge += 1) if ("ks" in (oe = te[ge]) && !oe.completed) {
|
|
35915
35944
|
if (oe.completed = !0, oe.hasMask) {
|
|
35916
|
-
var
|
|
35917
|
-
for (Ae =
|
|
35918
|
-
else for (Ne =
|
|
35945
|
+
var je = oe.masksProperties;
|
|
35946
|
+
for (Ae = je.length, se = 0; se < Ae; se += 1) if (je[se].pt.k.i) R(je[se].pt.k);
|
|
35947
|
+
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
35948
|
}
|
|
35920
35949
|
oe.ty === 0 ? (oe.layers = C(oe.refId, ne), _(oe.layers, ne)) : oe.ty === 4 ? E(oe.shapes) : oe.ty === 5 && j(oe);
|
|
35921
35950
|
}
|
|
@@ -36003,12 +36032,12 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
36003
36032
|
else ge[se].ty === "gr" && ne(ge[se].it);
|
|
36004
36033
|
}
|
|
36005
36034
|
function oe(ge) {
|
|
36006
|
-
var se, Ae, $e, Ne, Ve,
|
|
36035
|
+
var se, Ae, $e, Ne, Ve, je, ze = ge.length;
|
|
36007
36036
|
for (Ae = 0; Ae < ze; Ae += 1) {
|
|
36008
36037
|
if ((se = ge[Ae]).hasMask) {
|
|
36009
36038
|
var Oe = se.masksProperties;
|
|
36010
36039
|
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 (
|
|
36040
|
+
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
36041
|
}
|
|
36013
36042
|
se.ty === 4 && ne(se.shapes);
|
|
36014
36043
|
}
|
|
@@ -36660,8 +36689,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
36660
36689
|
return E && I && (O[_] = n(R[_], R[0], A[_], M[0]), q += O[_].addedLength), C.totalLength = q, C;
|
|
36661
36690
|
}, getNewSegment: function(S, _, C, E, R, A, M) {
|
|
36662
36691
|
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] +
|
|
36692
|
+
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;
|
|
36693
|
+
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
36694
|
return b;
|
|
36666
36695
|
}, getPointInSegment: function(S, _, C, E, R, A) {
|
|
36667
36696
|
var M = g(R, A), I = 1 - M;
|
|
@@ -36886,8 +36915,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
36886
36915
|
if (E >= se.t - this.offsetTime) F = 1;
|
|
36887
36916
|
else if (E < ge.t - this.offsetTime) F = 0;
|
|
36888
36917
|
else {
|
|
36889
|
-
var
|
|
36890
|
-
Ae.__fnct ?
|
|
36918
|
+
var je;
|
|
36919
|
+
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
36920
|
}
|
|
36892
36921
|
I = se.s ? se.s[0] : ge.e[0];
|
|
36893
36922
|
}
|
|
@@ -37106,12 +37135,12 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
37106
37135
|
for (var Oe = 0, Le = this.props, qe = "matrix3d("; Oe < 16; ) qe += o(1e4 * Le[Oe]) / 1e4, qe += Oe === 15 ? ")" : ",", Oe += 1;
|
|
37107
37136
|
return qe;
|
|
37108
37137
|
}
|
|
37109
|
-
function
|
|
37138
|
+
function je(Oe) {
|
|
37110
37139
|
return Oe < 1e-6 && Oe > 0 || Oe > -1e-6 && Oe < 0 ? o(1e4 * Oe) / 1e4 : Oe;
|
|
37111
37140
|
}
|
|
37112
37141
|
function ze() {
|
|
37113
37142
|
var Oe = this.props;
|
|
37114
|
-
return "matrix(" +
|
|
37143
|
+
return "matrix(" + je(Oe[0]) + "," + je(Oe[1]) + "," + je(Oe[4]) + "," + je(Oe[5]) + "," + je(Oe[12]) + "," + je(Oe[13]) + ")";
|
|
37115
37144
|
}
|
|
37116
37145
|
return function() {
|
|
37117
37146
|
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 +38704,14 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
38675
38704
|
t.justifyOffset = 0;
|
|
38676
38705
|
}
|
|
38677
38706
|
t.lineWidths = I;
|
|
38678
|
-
var
|
|
38707
|
+
var je, ze, Oe, Le, qe = S.a;
|
|
38679
38708
|
f = qe.length;
|
|
38680
38709
|
var Ge = [];
|
|
38681
38710
|
for (d = 0; d < f; d += 1) {
|
|
38682
|
-
for ((
|
|
38711
|
+
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
38712
|
S.a[d].s.totalChars = Le;
|
|
38684
38713
|
var He, Ze = -1;
|
|
38685
|
-
if (
|
|
38714
|
+
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
38715
|
}
|
|
38687
38716
|
t.yOffset = t.finalLineHeight || 1.2 * t.finalSize, t.ls = t.ls || 0, t.ascent = z.ascent * t.finalSize / 100;
|
|
38688
38717
|
}, TextProperty.prototype.updateDocumentData = function(t, e) {
|
|
@@ -38764,8 +38793,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
38764
38793
|
R = (A = M[E].points)[C - 1], I = (b = A[C]).partialLength;
|
|
38765
38794
|
}
|
|
38766
38795
|
d = se.length, n = 0, o = 0;
|
|
38767
|
-
var Ne, Ve,
|
|
38768
|
-
|
|
38796
|
+
var Ne, Ve, je, ze, Oe, Le = 1.2 * t.finalSize * 0.714, qe = !0;
|
|
38797
|
+
je = F.length;
|
|
38769
38798
|
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
38799
|
if (t.j === 2 || t.j === 1) {
|
|
38771
38800
|
var Ke = 0, it = 0, et = t.j === 2 ? -0.5 : -1, ut = 0, ft = !0;
|
|
@@ -38773,7 +38802,7 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
38773
38802
|
for (Ke && (Ke += it); ut < l; ) se[ut].animatorJustifyOffset = Ke, ut += 1;
|
|
38774
38803
|
Ke = 0, ft = !0;
|
|
38775
38804
|
} else {
|
|
38776
|
-
for (Ve = 0; Ve <
|
|
38805
|
+
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
38806
|
ft = !1;
|
|
38778
38807
|
}
|
|
38779
38808
|
for (Ke && (Ke += it); ut < l; ) se[ut].animatorJustifyOffset = Ke, ut += 1;
|
|
@@ -38794,21 +38823,21 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
38794
38823
|
}
|
|
38795
38824
|
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
38825
|
var dt = 0;
|
|
38797
|
-
for (Ve = 0; Ve <
|
|
38826
|
+
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
38827
|
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
38828
|
Ge = se[l].an / 2 - se[l].add, ne.translate(-Ge, 0, 0);
|
|
38800
38829
|
} 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 <
|
|
38830
|
+
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));
|
|
38831
|
+
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));
|
|
38832
|
+
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));
|
|
38833
|
+
for (Ve = 0; Ve < je; Ve += 1) {
|
|
38805
38834
|
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
38835
|
if (t.fillColorAnim && t.fc) {
|
|
38807
38836
|
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
38837
|
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
38838
|
}
|
|
38810
38839
|
}
|
|
38811
|
-
for (Ve = 0; Ve <
|
|
38840
|
+
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
38841
|
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
38842
|
if (ne.translate(0, -t.ls), ne.translate(0, j[1] * Le * 0.01 + o, 0), this._pathData.p.v) {
|
|
38814
38843
|
z = (b.point[1] - R.point[1]) / (b.point[0] - R.point[0]);
|
|
@@ -53932,8 +53961,8 @@ ${_.description}` : _.summary || `${S.toUpperCase()} ${C[C.length - 1]}`,
|
|
|
53932
53961
|
let F = `https://api.randmar.io${f}`;
|
|
53933
53962
|
try {
|
|
53934
53963
|
M.forEach((Ne) => {
|
|
53935
|
-
const Ve = `{${Ne}}`,
|
|
53936
|
-
F = F.replace(Ve, j[
|
|
53964
|
+
const Ve = `{${Ne}}`, je = Ne;
|
|
53965
|
+
F = F.replace(Ve, j[je]);
|
|
53937
53966
|
});
|
|
53938
53967
|
const ne = localStorage.getItem("access_token"), oe = {
|
|
53939
53968
|
method: S.toUpperCase(),
|
|
@@ -53943,8 +53972,8 @@ ${_.description}` : _.summary || `${S.toUpperCase()} ${C[C.length - 1]}`,
|
|
|
53943
53972
|
}
|
|
53944
53973
|
}, ge = [];
|
|
53945
53974
|
if ((((te = _.parameters) == null ? void 0 : te.filter((Ne) => Ne.in === "query")) || []).forEach((Ne) => {
|
|
53946
|
-
const Ve = Ne.name,
|
|
53947
|
-
|
|
53975
|
+
const Ve = Ne.name, je = j[Ve];
|
|
53976
|
+
je && ge.push(`${Ne.name}=${encodeURIComponent(je)}`);
|
|
53948
53977
|
}), ge.length > 0 && (F += `?${ge.join("&")}`), S === "post" || S === "put") {
|
|
53949
53978
|
const Ve = j[bodyKey];
|
|
53950
53979
|
Ve && (oe.body = Ve);
|
|
@@ -54055,8 +54084,8 @@ function useAIAssistant({ userId: t, smartAndSlow: e = !1 }) {
|
|
|
54055
54084
|
},
|
|
54056
54085
|
prettyName: "Fetching the account details of the specified user.",
|
|
54057
54086
|
details: "GET Partner Account",
|
|
54058
|
-
handler: async function(
|
|
54059
|
-
const Oe =
|
|
54087
|
+
handler: async function(je) {
|
|
54088
|
+
const Oe = je["user_id"], Le = await q({ applicationId: Oe });
|
|
54060
54089
|
return JSON.stringify(Le.data);
|
|
54061
54090
|
}
|
|
54062
54091
|
};
|
|
@@ -54070,10 +54099,10 @@ function useAIAssistant({ userId: t, smartAndSlow: e = !1 }) {
|
|
|
54070
54099
|
const Ne = $e.name ?? "", Ve = E.find((ze) => ze.declaration.name === Ne);
|
|
54071
54100
|
if (Ve === void 0)
|
|
54072
54101
|
return console.error(`Function ${Ne} not found`), "";
|
|
54073
|
-
const
|
|
54102
|
+
const je = $e.args || {};
|
|
54074
54103
|
try {
|
|
54075
|
-
C((Le) => [...Le, [`${Ve.prettyName}`, `${Ve.details} where ${JSON.stringify(
|
|
54076
|
-
const ze = await Ve.handler(
|
|
54104
|
+
C((Le) => [...Le, [`${Ve.prettyName}`, `${Ve.details} where ${JSON.stringify(je, null, 2)}`]]);
|
|
54105
|
+
const ze = await Ve.handler(je), Oe = {
|
|
54077
54106
|
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
54107
|
timestamp: /* @__PURE__ */ new Date(),
|
|
54079
54108
|
isComponent: !0
|
|
@@ -54100,7 +54129,7 @@ function useAIAssistant({ userId: t, smartAndSlow: e = !1 }) {
|
|
|
54100
54129
|
return;
|
|
54101
54130
|
}
|
|
54102
54131
|
o("Using Randmar API...");
|
|
54103
|
-
const
|
|
54132
|
+
const je = [];
|
|
54104
54133
|
for (const Oe of Ve) {
|
|
54105
54134
|
const Le = await j(Oe), qe = {
|
|
54106
54135
|
functionResponse: {
|
|
@@ -54108,10 +54137,10 @@ function useAIAssistant({ userId: t, smartAndSlow: e = !1 }) {
|
|
|
54108
54137
|
response: { content: Le }
|
|
54109
54138
|
}
|
|
54110
54139
|
};
|
|
54111
|
-
|
|
54140
|
+
je.push(qe);
|
|
54112
54141
|
}
|
|
54113
54142
|
o("Composing response...");
|
|
54114
|
-
const ze = await f.sendMessage({ message:
|
|
54143
|
+
const ze = await f.sendMessage({ message: je });
|
|
54115
54144
|
await F(ze, Ne - 1);
|
|
54116
54145
|
};
|
|
54117
54146
|
useEffect(() => {
|
|
@@ -54133,7 +54162,7 @@ function useAIAssistant({ userId: t, smartAndSlow: e = !1 }) {
|
|
|
54133
54162
|
}
|
|
54134
54163
|
const oe = async ($e, Ne) => {
|
|
54135
54164
|
try {
|
|
54136
|
-
const
|
|
54165
|
+
const je = [$e.trim()];
|
|
54137
54166
|
if (Ne) {
|
|
54138
54167
|
o("Receiving attached file...");
|
|
54139
54168
|
let Oe = new Blob(
|
|
@@ -54155,13 +54184,13 @@ function useAIAssistant({ userId: t, smartAndSlow: e = !1 }) {
|
|
|
54155
54184
|
});
|
|
54156
54185
|
if (qe.state === "FAILED")
|
|
54157
54186
|
throw new Error("File processing failed.");
|
|
54158
|
-
|
|
54187
|
+
je.push({ fileData: { fileUri: qe.uri, mimeType: qe.mimeType } });
|
|
54159
54188
|
}
|
|
54160
54189
|
o("Thinking...");
|
|
54161
|
-
const ze = await f.sendMessage({ message:
|
|
54190
|
+
const ze = await f.sendMessage({ message: je });
|
|
54162
54191
|
await F(ze);
|
|
54163
|
-
} catch (
|
|
54164
|
-
console.error("[debug] error sending message:",
|
|
54192
|
+
} catch (je) {
|
|
54193
|
+
console.error("[debug] error sending message:", je), ge({
|
|
54165
54194
|
content: "I'm sorry, I encountered an error processing your request. Please try again later.",
|
|
54166
54195
|
timestamp: /* @__PURE__ */ new Date()
|
|
54167
54196
|
});
|
|
@@ -57787,12 +57816,12 @@ function requireInlineStyleParser() {
|
|
|
57787
57816
|
var $e = Q(), Ne = te(o);
|
|
57788
57817
|
if (Ne) {
|
|
57789
57818
|
if (ge(), !te(l)) return F("property missing ':'");
|
|
57790
|
-
var Ve = te(d),
|
|
57819
|
+
var Ve = te(d), je = $e({
|
|
57791
57820
|
type: R,
|
|
57792
57821
|
property: A(Ne[0].replace(t, C)),
|
|
57793
57822
|
value: Ve ? A(Ve[0].replace(t, C)) : C
|
|
57794
57823
|
});
|
|
57795
|
-
return te(f),
|
|
57824
|
+
return te(f), je;
|
|
57796
57825
|
}
|
|
57797
57826
|
}
|
|
57798
57827
|
function Ae() {
|
|
@@ -59795,7 +59824,7 @@ function createDOMPurify() {
|
|
|
59795
59824
|
ERB_EXPR: $e,
|
|
59796
59825
|
TMPLIT_EXPR: Ne,
|
|
59797
59826
|
DATA_ATTR: Ve,
|
|
59798
|
-
ARIA_ATTR:
|
|
59827
|
+
ARIA_ATTR: je,
|
|
59799
59828
|
IS_SCRIPT_OR_DATA: ze,
|
|
59800
59829
|
ATTR_WHITESPACE: Oe,
|
|
59801
59830
|
CUSTOM_ELEMENT: Le
|
|
@@ -59972,7 +60001,7 @@ function createDOMPurify() {
|
|
|
59972
60001
|
if (Ke && (It === "id" || It === "name") && (Ut in n || Ut in mn))
|
|
59973
60002
|
return !1;
|
|
59974
60003
|
if (!(rt && !Xe[It] && regExpTest(Ve, It))) {
|
|
59975
|
-
if (!(ot && regExpTest(
|
|
60004
|
+
if (!(ot && regExpTest(je, It))) {
|
|
59976
60005
|
if (!Ze[It] || Xe[It]) {
|
|
59977
60006
|
if (
|
|
59978
60007
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
@@ -60482,7 +60511,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60482
60511
|
}, 50);
|
|
60483
60512
|
})();
|
|
60484
60513
|
}, [g, o, t]);
|
|
60485
|
-
const [ge, se] = useState("approved"), [Ae, $e] = useState([t, ASSISTANT_ID]), [Ne, Ve] = useState(""), [
|
|
60514
|
+
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
60515
|
function qt() {
|
|
60487
60516
|
const pt = yt();
|
|
60488
60517
|
pt && (Mt() || O({ routeApplicationId: t, conversationId: pt.conversationID }));
|
|
@@ -60558,13 +60587,13 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60558
60587
|
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
60588
|
}, it = (pt, Zt) => ze([pt, Zt]);
|
|
60560
60589
|
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 =
|
|
60590
|
+
if (je === null) return;
|
|
60591
|
+
const pt = Oe.find((Kt) => Kt.conversationID === je[0]);
|
|
60592
|
+
if (pt && (pt.pending && se("pending"), $e([pt.partner1, pt.partner2]), !(je[0] === -1 && !F) && !(je[0] !== -1 && !He))) {
|
|
60593
|
+
var Zt = je[1];
|
|
60565
60594
|
ze(null), Zt && Ke(Zt);
|
|
60566
60595
|
}
|
|
60567
|
-
}, [
|
|
60596
|
+
}, [je, Oe, se, $e, F, He]), useImperativeHandle(f, () => ({
|
|
60568
60597
|
setActiveChatAndSendMessage: it
|
|
60569
60598
|
})), !F)
|
|
60570
60599
|
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 +61152,13 @@ var getValueAndMessage = (t) => isObject(t) && !isRegex(t) ? t : {
|
|
|
61123
61152
|
return {};
|
|
61124
61153
|
const z = g ? g[0] : f, Q = (Ae) => {
|
|
61125
61154
|
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,
|
|
61155
|
+
}, 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
61156
|
const ze = Ae ? $e : Ne;
|
|
61128
61157
|
j[M] = {
|
|
61129
|
-
type: Ae ? Ve :
|
|
61158
|
+
type: Ae ? Ve : je,
|
|
61130
61159
|
message: ze,
|
|
61131
61160
|
ref: f,
|
|
61132
|
-
...ge(Ae ? Ve :
|
|
61161
|
+
...ge(Ae ? Ve : je, ze)
|
|
61133
61162
|
};
|
|
61134
61163
|
};
|
|
61135
61164
|
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 +61175,11 @@ var getValueAndMessage = (t) => isObject(t) && !isRegex(t) ? t : {
|
|
|
61146
61175
|
let Ae, $e;
|
|
61147
61176
|
const Ne = getValueAndMessage(E), Ve = getValueAndMessage(C);
|
|
61148
61177
|
if (!isNullOrUndefined(q) && !isNaN(q)) {
|
|
61149
|
-
const
|
|
61150
|
-
isNullOrUndefined(Ne.value) || (Ae =
|
|
61178
|
+
const je = f.valueAsNumber || q && +q;
|
|
61179
|
+
isNullOrUndefined(Ne.value) || (Ae = je > Ne.value), isNullOrUndefined(Ve.value) || ($e = je < Ve.value);
|
|
61151
61180
|
} else {
|
|
61152
|
-
const
|
|
61153
|
-
isString(Ne.value) && q && (Ae = Oe ? ze(q) > ze(Ne.value) : Le ? q > Ne.value :
|
|
61181
|
+
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";
|
|
61182
|
+
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
61183
|
}
|
|
61155
61184
|
if ((Ae || $e) && (se(!!Ae, Ne.message, Ve.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min), !o))
|
|
61156
61185
|
return Q(j[M].message), j;
|
|
@@ -61397,7 +61426,7 @@ function createFormControl(t = {}) {
|
|
|
61397
61426
|
const ft = it[ut], dt = Ke + "." + ut, Ct = get(o, dt);
|
|
61398
61427
|
(g.array.has(Ke) || isObject(ft) || Ct && !Ct._f) && !isDateObject(ft) ? Ve(dt, ft, et) : Ne(dt, ft, et);
|
|
61399
61428
|
}
|
|
61400
|
-
},
|
|
61429
|
+
}, je = (Ke, it, et = {}) => {
|
|
61401
61430
|
const ut = get(o, Ke), ft = g.array.has(Ke), dt = cloneObject(it);
|
|
61402
61431
|
set(d, Ke, dt), ft ? (E.array.next({
|
|
61403
61432
|
name: Ke,
|
|
@@ -61600,7 +61629,7 @@ function createFormControl(t = {}) {
|
|
|
61600
61629
|
}), ut)
|
|
61601
61630
|
throw ut;
|
|
61602
61631
|
}, Rt = (Ke, it = {}) => {
|
|
61603
|
-
get(o, Ke) && (isUndefined(it.defaultValue) ?
|
|
61632
|
+
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
61633
|
}, Je = (Ke, it = {}) => {
|
|
61605
61634
|
const et = Ke ? cloneObject(Ke) : l, ut = cloneObject(et), ft = isEmptyObject$1(Ke), dt = ft ? l : ut;
|
|
61606
61635
|
if (it.keepDefaultValues || (l = et), !it.keepValues) {
|
|
@@ -61610,7 +61639,7 @@ function createFormControl(t = {}) {
|
|
|
61610
61639
|
...Object.keys(getDirtyFields(l, d))
|
|
61611
61640
|
]);
|
|
61612
61641
|
for (const zt of Array.from(Ct))
|
|
61613
|
-
get(n.dirtyFields, zt) ? set(dt, zt, get(d, zt)) :
|
|
61642
|
+
get(n.dirtyFields, zt) ? set(dt, zt, get(d, zt)) : je(zt, get(dt, zt));
|
|
61614
61643
|
} else {
|
|
61615
61644
|
if (isWeb && isUndefined(Ke))
|
|
61616
61645
|
for (const Ct of g.mount) {
|
|
@@ -61627,7 +61656,7 @@ function createFormControl(t = {}) {
|
|
|
61627
61656
|
}
|
|
61628
61657
|
}
|
|
61629
61658
|
for (const Ct of g.mount)
|
|
61630
|
-
|
|
61659
|
+
je(Ct, get(dt, Ct));
|
|
61631
61660
|
}
|
|
61632
61661
|
d = cloneObject(dt), E.array.next({
|
|
61633
61662
|
values: { ...dt }
|
|
@@ -61730,7 +61759,7 @@ function createFormControl(t = {}) {
|
|
|
61730
61759
|
register: rt,
|
|
61731
61760
|
handleSubmit: Ue,
|
|
61732
61761
|
watch: tt,
|
|
61733
|
-
setValue:
|
|
61762
|
+
setValue: je,
|
|
61734
61763
|
getValues: qe,
|
|
61735
61764
|
reset: yt,
|
|
61736
61765
|
resetField: Rt,
|
|
@@ -61945,7 +61974,7 @@ function requireReactIs_development() {
|
|
|
61945
61974
|
}
|
|
61946
61975
|
}
|
|
61947
61976
|
}
|
|
61948
|
-
var j = b, F = S, te = g, ne = f, oe = e, ge = _, se = o, Ae = A, $e = R, Ne = n, Ve = d,
|
|
61977
|
+
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
61978
|
function Le(Ue) {
|
|
61950
61979
|
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
61980
|
}
|
|
@@ -61985,7 +62014,7 @@ function requireReactIs_development() {
|
|
|
61985
62014
|
function st(Ue) {
|
|
61986
62015
|
return Q(Ue) === C;
|
|
61987
62016
|
}
|
|
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 =
|
|
62017
|
+
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
62018
|
}()), reactIs_development;
|
|
61990
62019
|
}
|
|
61991
62020
|
var hasRequiredReactIs;
|
|
@@ -63918,27 +63947,20 @@ function BillingCard({ appID: t, reseller: e, isLoading: n, withoutReports: o, u
|
|
|
63918
63947
|
icon: CreditCard
|
|
63919
63948
|
}
|
|
63920
63949
|
], [j] = useLazyGetV4ResellerByRouteResellerIdDocumentAndDocumentNumberPdfQuery(), F = async (ge) => {
|
|
63921
|
-
var se;
|
|
63922
63950
|
S(!1), ge ? C(!0) : R(!0);
|
|
63951
|
+
let se = "";
|
|
63923
63952
|
try {
|
|
63924
|
-
const $e = await j({
|
|
63953
|
+
const $e = (await j({
|
|
63925
63954
|
routeResellerId: t,
|
|
63926
63955
|
documentNumber: `ST${t}`
|
|
63927
|
-
});
|
|
63928
|
-
if (!$e.
|
|
63956
|
+
})).data;
|
|
63957
|
+
if (!$e.url || !$e.filename)
|
|
63929
63958
|
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);
|
|
63959
|
+
if (se = $e.url, ge)
|
|
63960
|
+
window.open(se);
|
|
63939
63961
|
else {
|
|
63940
|
-
const
|
|
63941
|
-
|
|
63962
|
+
const Ne = document.createElement("a");
|
|
63963
|
+
Ne.href = se, Ne.download = $e.filename, document.body.appendChild(Ne), Ne.click(), Ne.remove();
|
|
63942
63964
|
}
|
|
63943
63965
|
d({
|
|
63944
63966
|
title: "Success",
|
|
@@ -63952,7 +63974,9 @@ function BillingCard({ appID: t, reseller: e, isLoading: n, withoutReports: o, u
|
|
|
63952
63974
|
variant: "destructive"
|
|
63953
63975
|
});
|
|
63954
63976
|
} finally {
|
|
63955
|
-
ge ? C(!1) : R(!1)
|
|
63977
|
+
ge ? C(!1) : R(!1), se && setTimeout(() => {
|
|
63978
|
+
window.URL.revokeObjectURL(se);
|
|
63979
|
+
}, 1e3);
|
|
63956
63980
|
}
|
|
63957
63981
|
}, [te] = usePostV4ResellerByRouteResellerIdDocumentStatementEmailMutation(), ne = async () => {
|
|
63958
63982
|
if (!q || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(q)) {
|
|
@@ -64135,24 +64159,24 @@ $10 with opportunities under $1,000` : t === "D" ? "$15 under $1,500" : t === "E
|
|
|
64135
64159
|
useEffect(() => {
|
|
64136
64160
|
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
64161
|
}, [n]);
|
|
64138
|
-
const ne = async (Ve,
|
|
64162
|
+
const ne = async (Ve, je, ze, Oe) => {
|
|
64139
64163
|
try {
|
|
64140
|
-
(await _({ applicationId: o, fieldName: Ve, newValue:
|
|
64164
|
+
(await _({ applicationId: o, fieldName: Ve, newValue: je })).error ? d({ title: "Error", description: Oe, variant: "destructive" }) : d({ title: "Success", description: ze, variant: "success" });
|
|
64141
64165
|
} catch {
|
|
64142
64166
|
d({ title: "Error", description: "An unexpected error occurred", variant: "destructive" });
|
|
64143
64167
|
}
|
|
64144
64168
|
}, oe = async (Ve) => {
|
|
64145
64169
|
I(Ve);
|
|
64146
|
-
const
|
|
64147
|
-
ne("Priority",
|
|
64170
|
+
const je = j(Ve);
|
|
64171
|
+
ne("Priority", je, `Priority updated to ${je}`, "Failed to update priority");
|
|
64148
64172
|
}, ge = async (Ve) => {
|
|
64149
64173
|
q(Ve);
|
|
64150
|
-
const
|
|
64151
|
-
ne("ShippingProfile",
|
|
64174
|
+
const je = F(Ve);
|
|
64175
|
+
ne("ShippingProfile", je, `Shipping profile updated to ${je}`, "Failed to update shipping profile");
|
|
64152
64176
|
}, se = async (Ve) => {
|
|
64153
64177
|
Q(Ve);
|
|
64154
|
-
const
|
|
64155
|
-
ne("PriceProfile",
|
|
64178
|
+
const je = te(Ve);
|
|
64179
|
+
ne("PriceProfile", je, `Pricing profile updated to ${je}`, "Failed to update pricing profile");
|
|
64156
64180
|
}, Ae = async () => {
|
|
64157
64181
|
try {
|
|
64158
64182
|
const Ve = await _({ applicationId: o, fieldName: "Tier", newValue: b });
|
|
@@ -68053,10 +68077,10 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
68053
68077
|
6: b + " const class extends export import super"
|
|
68054
68078
|
}, _ = /^in(stanceof)?$/, C = new RegExp("[" + f + "]"), E = new RegExp("[" + f + d + "]");
|
|
68055
68079
|
function R(V, ae) {
|
|
68056
|
-
for (var Be = 65536,
|
|
68057
|
-
if (Be += ae[
|
|
68080
|
+
for (var Be = 65536, Fe = 0; Fe < ae.length; Fe += 2) {
|
|
68081
|
+
if (Be += ae[Fe], Be > V)
|
|
68058
68082
|
return !1;
|
|
68059
|
-
if (Be += ae[
|
|
68083
|
+
if (Be += ae[Fe + 1], Be >= V)
|
|
68060
68084
|
return !0;
|
|
68061
68085
|
}
|
|
68062
68086
|
return !1;
|
|
@@ -68161,14 +68185,14 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
68161
68185
|
}
|
|
68162
68186
|
function ge(V, ae, Be) {
|
|
68163
68187
|
Be === void 0 && (Be = V.length);
|
|
68164
|
-
for (var
|
|
68165
|
-
var We = V.charCodeAt(
|
|
68188
|
+
for (var Fe = ae; Fe < Be; Fe++) {
|
|
68189
|
+
var We = V.charCodeAt(Fe);
|
|
68166
68190
|
if (oe(We))
|
|
68167
|
-
return
|
|
68191
|
+
return Fe < Be - 1 && We === 13 && V.charCodeAt(Fe + 1) === 10 ? Fe + 2 : Fe + 1;
|
|
68168
68192
|
}
|
|
68169
68193
|
return -1;
|
|
68170
68194
|
}
|
|
68171
|
-
var se = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ae = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, $e = Object.prototype, Ne = $e.hasOwnProperty, Ve = $e.toString,
|
|
68195
|
+
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
68196
|
return Ne.call(V, ae);
|
|
68173
68197
|
}, ze = Array.isArray || function(V) {
|
|
68174
68198
|
return Ve.call(V) === "[object Array]";
|
|
@@ -68185,15 +68209,15 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
68185
68209
|
He.prototype.offset = function(ae) {
|
|
68186
68210
|
return new He(this.line, this.column + ae);
|
|
68187
68211
|
};
|
|
68188
|
-
var Ze = function(ae, Be,
|
|
68189
|
-
this.start = Be, this.end =
|
|
68212
|
+
var Ze = function(ae, Be, Fe) {
|
|
68213
|
+
this.start = Be, this.end = Fe, ae.sourceFile !== null && (this.source = ae.sourceFile);
|
|
68190
68214
|
};
|
|
68191
68215
|
function tt(V, ae) {
|
|
68192
|
-
for (var Be = 1,
|
|
68193
|
-
var We = ge(V,
|
|
68216
|
+
for (var Be = 1, Fe = 0; ; ) {
|
|
68217
|
+
var We = ge(V, Fe, ae);
|
|
68194
68218
|
if (We < 0)
|
|
68195
|
-
return new He(Be, ae -
|
|
68196
|
-
++Be,
|
|
68219
|
+
return new He(Be, ae - Fe);
|
|
68220
|
+
++Be, Fe = We;
|
|
68197
68221
|
}
|
|
68198
68222
|
}
|
|
68199
68223
|
var Ye = {
|
|
@@ -68220,21 +68244,21 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
68220
68244
|
function Xe(V) {
|
|
68221
68245
|
var ae = {};
|
|
68222
68246
|
for (var Be in Ye)
|
|
68223
|
-
ae[Be] = V &&
|
|
68247
|
+
ae[Be] = V && je(V, Be) ? V[Be] : Ye[Be];
|
|
68224
68248
|
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
68249
|
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
|
|
68250
|
+
var Fe = ae.onToken;
|
|
68227
68251
|
ae.onToken = function(We) {
|
|
68228
|
-
return
|
|
68252
|
+
return Fe.push(We);
|
|
68229
68253
|
};
|
|
68230
68254
|
}
|
|
68231
68255
|
return ze(ae.onComment) && (ae.onComment = ot(ae, ae.onComment)), ae;
|
|
68232
68256
|
}
|
|
68233
68257
|
function ot(V, ae) {
|
|
68234
|
-
return function(Be,
|
|
68258
|
+
return function(Be, Fe, We, lt, ct, $t) {
|
|
68235
68259
|
var Dt = {
|
|
68236
68260
|
type: Be ? "Block" : "Line",
|
|
68237
|
-
value:
|
|
68261
|
+
value: Fe,
|
|
68238
68262
|
start: We,
|
|
68239
68263
|
end: lt
|
|
68240
68264
|
};
|
|
@@ -68245,13 +68269,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68245
68269
|
function Ft(V, ae) {
|
|
68246
68270
|
return at | (V ? st : 0) | (ae ? Ue : 0);
|
|
68247
68271
|
}
|
|
68248
|
-
var Ke = 0, it = 1, et = 2, ut = 3, ft = 4, dt = 5, Ct = function(ae, Be,
|
|
68272
|
+
var Ke = 0, it = 1, et = 2, ut = 3, ft = 4, dt = 5, Ct = function(ae, Be, Fe) {
|
|
68249
68273
|
this.options = ae = Xe(ae), this.sourceFile = ae.sourceFile, this.keywords = Le(S[ae.ecmaVersion >= 6 ? 6 : ae.sourceType === "module" ? "5module" : 5]);
|
|
68250
68274
|
var We = "";
|
|
68251
68275
|
ae.allowReserved !== !0 && (We = g[ae.ecmaVersion >= 6 ? 6 : ae.ecmaVersion === 5 ? 5 : 3], ae.sourceType === "module" && (We += " await")), this.reservedWords = Le(We);
|
|
68252
68276
|
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
|
-
`,
|
|
68277
|
+
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(`
|
|
68278
|
+
`, 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
68279
|
}, 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
68280
|
Ct.prototype.parse = function() {
|
|
68257
68281
|
var ae = this.options.program || this.startNode();
|
|
@@ -68286,13 +68310,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68286
68310
|
}, Ct.extend = function() {
|
|
68287
68311
|
for (var ae = [], Be = arguments.length; Be--; )
|
|
68288
68312
|
ae[Be] = arguments[Be];
|
|
68289
|
-
for (var
|
|
68290
|
-
|
|
68291
|
-
return
|
|
68313
|
+
for (var Fe = this, We = 0; We < ae.length; We++)
|
|
68314
|
+
Fe = ae[We](Fe);
|
|
68315
|
+
return Fe;
|
|
68292
68316
|
}, Ct.parse = function(ae, Be) {
|
|
68293
68317
|
return new this(Be, ae).parse();
|
|
68294
|
-
}, Ct.parseExpressionAt = function(ae, Be,
|
|
68295
|
-
var We = new this(
|
|
68318
|
+
}, Ct.parseExpressionAt = function(ae, Be, Fe) {
|
|
68319
|
+
var We = new this(Fe, ae, Be);
|
|
68296
68320
|
return We.nextToken(), We.parseExpression();
|
|
68297
68321
|
}, Ct.tokenizer = function(ae, Be) {
|
|
68298
68322
|
return new this(Be, ae);
|
|
@@ -68308,8 +68332,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68308
68332
|
return !1;
|
|
68309
68333
|
if ((ae[1] || ae[2]) === "use strict") {
|
|
68310
68334
|
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(
|
|
68335
|
+
var Be = Ae.exec(this.input), Fe = Be.index + Be[0].length, We = this.input.charAt(Fe);
|
|
68336
|
+
return We === ";" || We === "}" || te.test(Be[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(We) || We === "!" && this.input.charAt(Fe + 1) === "=");
|
|
68313
68337
|
}
|
|
68314
68338
|
V += ae[0].length, Ae.lastIndex = V, V += Ae.exec(this.input)[0].length, this.input[V] === ";" && V++;
|
|
68315
68339
|
}
|
|
@@ -68348,10 +68372,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68348
68372
|
}, Yt.checkExpressionErrors = function(V, ae) {
|
|
68349
68373
|
if (!V)
|
|
68350
68374
|
return !1;
|
|
68351
|
-
var Be = V.shorthandAssign,
|
|
68375
|
+
var Be = V.shorthandAssign, Fe = V.doubleProto;
|
|
68352
68376
|
if (!ae)
|
|
68353
|
-
return Be >= 0 ||
|
|
68354
|
-
Be >= 0 && this.raise(Be, "Shorthand property assignments are valid only in destructuring patterns"),
|
|
68377
|
+
return Be >= 0 || Fe >= 0;
|
|
68378
|
+
Be >= 0 && this.raise(Be, "Shorthand property assignments are valid only in destructuring patterns"), Fe >= 0 && this.raiseRecoverable(Fe, "Redefinition of __proto__ property");
|
|
68355
68379
|
}, Yt.checkYieldAwaitInDefaultParams = function() {
|
|
68356
68380
|
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
68381
|
}, Yt.isSimpleAssignTarget = function(V) {
|
|
@@ -68365,8 +68389,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68365
68389
|
V.body.push(Be);
|
|
68366
68390
|
}
|
|
68367
68391
|
if (this.inModule)
|
|
68368
|
-
for (var
|
|
68369
|
-
var lt = We[
|
|
68392
|
+
for (var Fe = 0, We = Object.keys(this.undefinedExports); Fe < We.length; Fe += 1) {
|
|
68393
|
+
var lt = We[Fe];
|
|
68370
68394
|
this.raiseRecoverable(this.undefinedExports[lt].start, "Export '" + lt + "' is not defined");
|
|
68371
68395
|
}
|
|
68372
68396
|
return this.adaptDirectivePrologue(V.body), this.next(), V.sourceType = this.options.sourceType, this.finishNode(V, "Program");
|
|
@@ -68376,17 +68400,17 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68376
68400
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
68377
68401
|
return !1;
|
|
68378
68402
|
Ae.lastIndex = this.pos;
|
|
68379
|
-
var ae = Ae.exec(this.input), Be = this.pos + ae[0].length,
|
|
68380
|
-
if (
|
|
68403
|
+
var ae = Ae.exec(this.input), Be = this.pos + ae[0].length, Fe = this.input.charCodeAt(Be);
|
|
68404
|
+
if (Fe === 91 || Fe === 92)
|
|
68381
68405
|
return !0;
|
|
68382
68406
|
if (V)
|
|
68383
68407
|
return !1;
|
|
68384
|
-
if (
|
|
68408
|
+
if (Fe === 123 || Fe > 55295 && Fe < 56320)
|
|
68385
68409
|
return !0;
|
|
68386
|
-
if (A(
|
|
68387
|
-
for (var We = Be + 1; M(
|
|
68410
|
+
if (A(Fe, !0)) {
|
|
68411
|
+
for (var We = Be + 1; M(Fe = this.input.charCodeAt(We), !0); )
|
|
68388
68412
|
++We;
|
|
68389
|
-
if (
|
|
68413
|
+
if (Fe === 92 || Fe > 55295 && Fe < 56320)
|
|
68390
68414
|
return !0;
|
|
68391
68415
|
var lt = this.input.slice(Be, We);
|
|
68392
68416
|
if (!_.test(lt))
|
|
@@ -68400,11 +68424,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68400
68424
|
var V = Ae.exec(this.input), ae = this.pos + V[0].length, Be;
|
|
68401
68425
|
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
68426
|
}, mt.parseStatement = function(V, ae, Be) {
|
|
68403
|
-
var
|
|
68404
|
-
switch (this.isLet(V) && (
|
|
68427
|
+
var Fe = this.type, We = this.startNode(), lt;
|
|
68428
|
+
switch (this.isLet(V) && (Fe = F._var, lt = "let"), Fe) {
|
|
68405
68429
|
case F._break:
|
|
68406
68430
|
case F._continue:
|
|
68407
|
-
return this.parseBreakContinueStatement(We,
|
|
68431
|
+
return this.parseBreakContinueStatement(We, Fe.keyword);
|
|
68408
68432
|
case F._debugger:
|
|
68409
68433
|
return this.parseDebuggerStatement(We);
|
|
68410
68434
|
case F._do:
|
|
@@ -68438,28 +68462,28 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68438
68462
|
return this.parseEmptyStatement(We);
|
|
68439
68463
|
case F._export:
|
|
68440
68464
|
case F._import:
|
|
68441
|
-
if (this.options.ecmaVersion > 10 &&
|
|
68465
|
+
if (this.options.ecmaVersion > 10 && Fe === F._import) {
|
|
68442
68466
|
Ae.lastIndex = this.pos;
|
|
68443
68467
|
var ct = Ae.exec(this.input), $t = this.pos + ct[0].length, Dt = this.input.charCodeAt($t);
|
|
68444
68468
|
if (Dt === 40 || Dt === 46)
|
|
68445
68469
|
return this.parseExpressionStatement(We, this.parseExpression());
|
|
68446
68470
|
}
|
|
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'")),
|
|
68471
|
+
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
68472
|
default:
|
|
68449
68473
|
if (this.isAsyncFunction())
|
|
68450
68474
|
return V && this.unexpected(), this.next(), this.parseFunctionStatement(We, !0, !V);
|
|
68451
68475
|
var er = this.value, Jt = this.parseExpression();
|
|
68452
|
-
return
|
|
68476
|
+
return Fe === F.name && Jt.type === "Identifier" && this.eat(F.colon) ? this.parseLabeledStatement(We, er, Jt, V) : this.parseExpressionStatement(We, Jt);
|
|
68453
68477
|
}
|
|
68454
68478
|
}, mt.parseBreakContinueStatement = function(V, ae) {
|
|
68455
68479
|
var Be = ae === "break";
|
|
68456
68480
|
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[
|
|
68481
|
+
for (var Fe = 0; Fe < this.labels.length; ++Fe) {
|
|
68482
|
+
var We = this.labels[Fe];
|
|
68459
68483
|
if ((V.label == null || We.name === V.label.name) && (We.kind != null && (Be || We.kind === "loop") || V.label && Be))
|
|
68460
68484
|
break;
|
|
68461
68485
|
}
|
|
68462
|
-
return
|
|
68486
|
+
return Fe === this.labels.length && this.raise(V.start, "Unsyntactic " + ae), this.finishNode(V, Be ? "BreakStatement" : "ContinueStatement");
|
|
68463
68487
|
}, mt.parseDebuggerStatement = function(V) {
|
|
68464
68488
|
return this.next(), this.semicolon(), this.finishNode(V, "DebuggerStatement");
|
|
68465
68489
|
}, mt.parseDoStatement = function(V) {
|
|
@@ -68471,8 +68495,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68471
68495
|
return ae > -1 && this.unexpected(ae), this.parseFor(V, null);
|
|
68472
68496
|
var Be = this.isLet();
|
|
68473
68497
|
if (this.type === F._var || this.type === F._const || Be) {
|
|
68474
|
-
var
|
|
68475
|
-
return this.next(), this.parseVar(
|
|
68498
|
+
var Fe = this.startNode(), We = Be ? "let" : this.value;
|
|
68499
|
+
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
68500
|
}
|
|
68477
68501
|
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
68502
|
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 +68510,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68486
68510
|
this.next(), V.discriminant = this.parseParenExpression(), V.cases = [], this.expect(F.braceL), this.labels.push(pt), this.enterScope(0);
|
|
68487
68511
|
for (var ae, Be = !1; this.type !== F.braceR; )
|
|
68488
68512
|
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(),
|
|
68513
|
+
var Fe = this.type === F._case;
|
|
68514
|
+
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
68515
|
} else
|
|
68492
68516
|
ae || this.unexpected(), ae.consequent.push(this.parseStatement(null));
|
|
68493
68517
|
return this.exitScope(), ae && this.finishNode(ae, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(V, "SwitchStatement");
|
|
@@ -68512,7 +68536,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68512
68536
|
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
68537
|
}, mt.parseEmptyStatement = function(V) {
|
|
68514
68538
|
return this.next(), this.finishNode(V, "EmptyStatement");
|
|
68515
|
-
}, mt.parseLabeledStatement = function(V, ae, Be,
|
|
68539
|
+
}, mt.parseLabeledStatement = function(V, ae, Be, Fe) {
|
|
68516
68540
|
for (var We = 0, lt = this.labels; We < lt.length; We += 1) {
|
|
68517
68541
|
var ct = lt[We];
|
|
68518
68542
|
ct.name === ae && this.raise(Be.start, "Label '" + ae + "' is already declared");
|
|
@@ -68524,13 +68548,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68524
68548
|
else
|
|
68525
68549
|
break;
|
|
68526
68550
|
}
|
|
68527
|
-
return this.labels.push({ name: ae, kind: $t, statementStart: this.start }), V.body = this.parseStatement(
|
|
68551
|
+
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
68552
|
}, mt.parseExpressionStatement = function(V, ae) {
|
|
68529
68553
|
return V.expression = ae, this.semicolon(), this.finishNode(V, "ExpressionStatement");
|
|
68530
68554
|
}, mt.parseBlock = function(V, ae, Be) {
|
|
68531
68555
|
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(
|
|
68556
|
+
var Fe = this.parseStatement(null);
|
|
68557
|
+
ae.body.push(Fe);
|
|
68534
68558
|
}
|
|
68535
68559
|
return Be && (this.strict = !1), this.next(), V && this.exitScope(), this.finishNode(ae, "BlockStatement");
|
|
68536
68560
|
}, mt.parseFor = function(V, ae) {
|
|
@@ -68538,10 +68562,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68538
68562
|
}, mt.parseForIn = function(V, ae) {
|
|
68539
68563
|
var Be = this.type === F._in;
|
|
68540
68564
|
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,
|
|
68565
|
+
}, mt.parseVar = function(V, ae, Be, Fe) {
|
|
68542
68566
|
for (V.declarations = [], V.kind = Be; ; ) {
|
|
68543
68567
|
var We = this.startNode();
|
|
68544
|
-
if (this.parseVarId(We, Be), this.eat(F.eq) ? We.init = this.parseMaybeAssign(ae) : !
|
|
68568
|
+
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
68569
|
break;
|
|
68546
68570
|
}
|
|
68547
68571
|
return V;
|
|
@@ -68549,8 +68573,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68549
68573
|
V.id = this.parseBindingAtom(), this.checkLValPattern(V.id, ae === "var" ? it : et, !1);
|
|
68550
68574
|
};
|
|
68551
68575
|
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 && !
|
|
68576
|
+
mt.parseFunction = function(V, ae, Be, Fe, We) {
|
|
68577
|
+
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
68578
|
var lt = this.yieldPos, ct = this.awaitPos, $t = this.awaitIdentPos;
|
|
68555
68579
|
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
68580
|
}, mt.parseFunctionParams = function(V) {
|
|
@@ -68559,26 +68583,26 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68559
68583
|
this.next();
|
|
68560
68584
|
var Be = this.strict;
|
|
68561
68585
|
this.strict = !0, this.parseClassId(V, ae), this.parseClassSuper(V);
|
|
68562
|
-
var
|
|
68586
|
+
var Fe = this.enterClassBody(), We = this.startNode(), lt = !1;
|
|
68563
68587
|
for (We.body = [], this.expect(F.braceL); this.type !== F.braceR; ) {
|
|
68564
68588
|
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(
|
|
68589
|
+
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
68590
|
}
|
|
68567
68591
|
return this.strict = Be, this.next(), V.body = this.finishNode(We, "ClassBody"), this.exitClassBody(), this.finishNode(V, ae ? "ClassDeclaration" : "ClassExpression");
|
|
68568
68592
|
}, mt.parseClassElement = function(V) {
|
|
68569
68593
|
if (this.eat(F.semi))
|
|
68570
68594
|
return null;
|
|
68571
|
-
var ae = this.options.ecmaVersion, Be = this.startNode(),
|
|
68595
|
+
var ae = this.options.ecmaVersion, Be = this.startNode(), Fe = "", We = !1, lt = !1, ct = "method", $t = !1;
|
|
68572
68596
|
if (this.eatContextual("static")) {
|
|
68573
68597
|
if (ae >= 13 && this.eat(F.braceL))
|
|
68574
68598
|
return this.parseClassStaticBlock(Be), Be;
|
|
68575
|
-
this.isClassElementNameStart() || this.type === F.star ? $t = !0 :
|
|
68599
|
+
this.isClassElementNameStart() || this.type === F.star ? $t = !0 : Fe = "static";
|
|
68576
68600
|
}
|
|
68577
|
-
if (Be.static = $t, !
|
|
68601
|
+
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
68602
|
var Dt = this.value;
|
|
68579
|
-
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? ct = Dt :
|
|
68603
|
+
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? ct = Dt : Fe = Dt);
|
|
68580
68604
|
}
|
|
68581
|
-
if (
|
|
68605
|
+
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
68606
|
var er = !Be.static && Tr(Be, "constructor"), Jt = er && V;
|
|
68583
68607
|
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
68608
|
} else
|
|
@@ -68588,10 +68612,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68588
68612
|
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
68613
|
}, mt.parseClassElementName = function(V) {
|
|
68590
68614
|
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,
|
|
68615
|
+
}, mt.parseClassMethod = function(V, ae, Be, Fe) {
|
|
68592
68616
|
var We = V.key;
|
|
68593
68617
|
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,
|
|
68618
|
+
var lt = V.value = this.parseMethod(ae, Be, Fe);
|
|
68595
68619
|
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
68620
|
}, mt.parseClassField = function(V) {
|
|
68597
68621
|
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 +68642,18 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68618
68642
|
}, mt.exitClassBody = function() {
|
|
68619
68643
|
var V = this.privateNameStack.pop(), ae = V.declared, Be = V.used;
|
|
68620
68644
|
if (this.options.checkPrivateFields)
|
|
68621
|
-
for (var
|
|
68645
|
+
for (var Fe = this.privateNameStack.length, We = Fe === 0 ? null : this.privateNameStack[Fe - 1], lt = 0; lt < Be.length; ++lt) {
|
|
68622
68646
|
var ct = Be[lt];
|
|
68623
|
-
|
|
68647
|
+
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
68648
|
}
|
|
68625
68649
|
};
|
|
68626
68650
|
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),
|
|
68651
|
+
var Be = ae.key.name, Fe = V[Be], We = "true";
|
|
68652
|
+
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
68653
|
}
|
|
68630
68654
|
function Tr(V, ae) {
|
|
68631
|
-
var Be = V.computed,
|
|
68632
|
-
return !Be && (
|
|
68655
|
+
var Be = V.computed, Fe = V.key;
|
|
68656
|
+
return !Be && (Fe.type === "Identifier" && Fe.name === ae || Fe.type === "Literal" && Fe.value === ae);
|
|
68633
68657
|
}
|
|
68634
68658
|
mt.parseExportAllDeclaration = function(V, ae) {
|
|
68635
68659
|
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 +68668,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68644
68668
|
if (V.declaration = null, V.specifiers = this.parseExportSpecifiers(ae), this.eatContextual("from"))
|
|
68645
68669
|
this.type !== F.string && this.unexpected(), V.source = this.parseExprAtom();
|
|
68646
68670
|
else {
|
|
68647
|
-
for (var Be = 0,
|
|
68648
|
-
var We =
|
|
68671
|
+
for (var Be = 0, Fe = V.specifiers; Be < Fe.length; Be += 1) {
|
|
68672
|
+
var We = Fe[Be];
|
|
68649
68673
|
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
68674
|
}
|
|
68651
68675
|
V.source = null;
|
|
@@ -68664,18 +68688,18 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68664
68688
|
var Be = this.startNode();
|
|
68665
68689
|
return this.parseClass(Be, "nullableID");
|
|
68666
68690
|
} else {
|
|
68667
|
-
var
|
|
68668
|
-
return this.semicolon(),
|
|
68691
|
+
var Fe = this.parseMaybeAssign();
|
|
68692
|
+
return this.semicolon(), Fe;
|
|
68669
68693
|
}
|
|
68670
68694
|
}, mt.checkExport = function(V, ae, Be) {
|
|
68671
|
-
V && (typeof ae != "string" && (ae = ae.type === "Identifier" ? ae.name : ae.value),
|
|
68695
|
+
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
68696
|
}, mt.checkPatternExport = function(V, ae) {
|
|
68673
68697
|
var Be = ae.type;
|
|
68674
68698
|
if (Be === "Identifier")
|
|
68675
68699
|
this.checkExport(V, ae, ae.start);
|
|
68676
68700
|
else if (Be === "ObjectPattern")
|
|
68677
|
-
for (var
|
|
68678
|
-
var lt = We[
|
|
68701
|
+
for (var Fe = 0, We = ae.properties; Fe < We.length; Fe += 1) {
|
|
68702
|
+
var lt = We[Fe];
|
|
68679
68703
|
this.checkPatternExport(V, lt);
|
|
68680
68704
|
}
|
|
68681
68705
|
else if (Be === "ArrayPattern")
|
|
@@ -68686,8 +68710,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68686
68710
|
else Be === "Property" ? this.checkPatternExport(V, ae.value) : Be === "AssignmentPattern" ? this.checkPatternExport(V, ae.left) : Be === "RestElement" && this.checkPatternExport(V, ae.argument);
|
|
68687
68711
|
}, mt.checkVariableExport = function(V, ae) {
|
|
68688
68712
|
if (V)
|
|
68689
|
-
for (var Be = 0,
|
|
68690
|
-
var We =
|
|
68713
|
+
for (var Be = 0, Fe = ae; Be < Fe.length; Be += 1) {
|
|
68714
|
+
var We = Fe[Be];
|
|
68691
68715
|
this.checkPatternExport(V, We.id);
|
|
68692
68716
|
}
|
|
68693
68717
|
}, mt.shouldParseExportStatement = function() {
|
|
@@ -68756,8 +68780,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68756
68780
|
break;
|
|
68757
68781
|
case "ObjectExpression":
|
|
68758
68782
|
V.type = "ObjectPattern", Be && this.checkPatternErrors(Be, !0);
|
|
68759
|
-
for (var
|
|
68760
|
-
var lt = We[
|
|
68783
|
+
for (var Fe = 0, We = V.properties; Fe < We.length; Fe += 1) {
|
|
68784
|
+
var lt = We[Fe];
|
|
68761
68785
|
this.toAssignable(lt, ae), lt.type === "RestElement" && (lt.argument.type === "ArrayPattern" || lt.argument.type === "ObjectPattern") && this.raise(lt.argument.start, "Unexpected token");
|
|
68762
68786
|
}
|
|
68763
68787
|
break;
|
|
@@ -68788,8 +68812,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68788
68812
|
else Be && this.checkPatternErrors(Be, !0);
|
|
68789
68813
|
return V;
|
|
68790
68814
|
}, pr.toAssignableList = function(V, ae) {
|
|
68791
|
-
for (var Be = V.length,
|
|
68792
|
-
var We = V[
|
|
68815
|
+
for (var Be = V.length, Fe = 0; Fe < Be; Fe++) {
|
|
68816
|
+
var We = V[Fe];
|
|
68793
68817
|
We && this.toAssignable(We, ae);
|
|
68794
68818
|
}
|
|
68795
68819
|
if (Be) {
|
|
@@ -68813,7 +68837,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68813
68837
|
return this.parseObj(!0);
|
|
68814
68838
|
}
|
|
68815
68839
|
return this.parseIdent();
|
|
68816
|
-
}, pr.parseBindingList = function(V, ae, Be,
|
|
68840
|
+
}, pr.parseBindingList = function(V, ae, Be, Fe) {
|
|
68817
68841
|
for (var We = [], lt = !0; !this.eat(V); )
|
|
68818
68842
|
if (lt ? lt = !1 : this.expect(F.comma), ae && this.type === F.comma)
|
|
68819
68843
|
We.push(null);
|
|
@@ -68825,7 +68849,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68825
68849
|
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
68850
|
break;
|
|
68827
68851
|
} else
|
|
68828
|
-
We.push(this.parseAssignableListItem(
|
|
68852
|
+
We.push(this.parseAssignableListItem(Fe));
|
|
68829
68853
|
}
|
|
68830
68854
|
return We;
|
|
68831
68855
|
}, pr.parseAssignableListItem = function(V) {
|
|
@@ -68836,31 +68860,31 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68836
68860
|
}, pr.parseMaybeDefault = function(V, ae, Be) {
|
|
68837
68861
|
if (Be = Be || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(F.eq))
|
|
68838
68862
|
return Be;
|
|
68839
|
-
var
|
|
68840
|
-
return
|
|
68863
|
+
var Fe = this.startNodeAt(V, ae);
|
|
68864
|
+
return Fe.left = Be, Fe.right = this.parseMaybeAssign(), this.finishNode(Fe, "AssignmentPattern");
|
|
68841
68865
|
}, pr.checkLValSimple = function(V, ae, Be) {
|
|
68842
68866
|
ae === void 0 && (ae = Ke);
|
|
68843
|
-
var
|
|
68867
|
+
var Fe = ae !== Ke;
|
|
68844
68868
|
switch (V.type) {
|
|
68845
68869
|
case "Identifier":
|
|
68846
|
-
this.strict && this.reservedWordsStrictBind.test(V.name) && this.raiseRecoverable(V.start, (
|
|
68870
|
+
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
68871
|
break;
|
|
68848
68872
|
case "ChainExpression":
|
|
68849
68873
|
this.raiseRecoverable(V.start, "Optional chaining cannot appear in left-hand side");
|
|
68850
68874
|
break;
|
|
68851
68875
|
case "MemberExpression":
|
|
68852
|
-
|
|
68876
|
+
Fe && this.raiseRecoverable(V.start, "Binding member expression");
|
|
68853
68877
|
break;
|
|
68854
68878
|
case "ParenthesizedExpression":
|
|
68855
|
-
return
|
|
68879
|
+
return Fe && this.raiseRecoverable(V.start, "Binding parenthesized expression"), this.checkLValSimple(V.expression, ae, Be);
|
|
68856
68880
|
default:
|
|
68857
|
-
this.raise(V.start, (
|
|
68881
|
+
this.raise(V.start, (Fe ? "Binding" : "Assigning to") + " rvalue");
|
|
68858
68882
|
}
|
|
68859
68883
|
}, pr.checkLValPattern = function(V, ae, Be) {
|
|
68860
68884
|
switch (ae === void 0 && (ae = Ke), V.type) {
|
|
68861
68885
|
case "ObjectPattern":
|
|
68862
|
-
for (var
|
|
68863
|
-
var lt = We[
|
|
68886
|
+
for (var Fe = 0, We = V.properties; Fe < We.length; Fe += 1) {
|
|
68887
|
+
var lt = We[Fe];
|
|
68864
68888
|
this.checkLValInnerPattern(lt, ae, Be);
|
|
68865
68889
|
}
|
|
68866
68890
|
break;
|
|
@@ -68888,8 +68912,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68888
68912
|
this.checkLValPattern(V, ae, Be);
|
|
68889
68913
|
}
|
|
68890
68914
|
};
|
|
68891
|
-
var yr = function(ae, Be,
|
|
68892
|
-
this.token = ae, this.isExpr = !!Be, this.preserveSpace = !!
|
|
68915
|
+
var yr = function(ae, Be, Fe, We, lt) {
|
|
68916
|
+
this.token = ae, this.isExpr = !!Be, this.preserveSpace = !!Fe, this.override = We, this.generator = !!lt;
|
|
68893
68917
|
}, tr = {
|
|
68894
68918
|
b_stat: new yr("{", !1),
|
|
68895
68919
|
b_expr: new yr("{", !0),
|
|
@@ -68957,27 +68981,27 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68957
68981
|
var Xt = Ct.prototype;
|
|
68958
68982
|
Xt.checkPropClash = function(V, ae, Be) {
|
|
68959
68983
|
if (!(this.options.ecmaVersion >= 9 && V.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (V.computed || V.method || V.shorthand))) {
|
|
68960
|
-
var
|
|
68961
|
-
switch (
|
|
68984
|
+
var Fe = V.key, We;
|
|
68985
|
+
switch (Fe.type) {
|
|
68962
68986
|
case "Identifier":
|
|
68963
|
-
We =
|
|
68987
|
+
We = Fe.name;
|
|
68964
68988
|
break;
|
|
68965
68989
|
case "Literal":
|
|
68966
|
-
We = String(
|
|
68990
|
+
We = String(Fe.value);
|
|
68967
68991
|
break;
|
|
68968
68992
|
default:
|
|
68969
68993
|
return;
|
|
68970
68994
|
}
|
|
68971
68995
|
var lt = V.kind;
|
|
68972
68996
|
if (this.options.ecmaVersion >= 6) {
|
|
68973
|
-
We === "__proto__" && lt === "init" && (ae.proto && (Be ? Be.doubleProto < 0 && (Be.doubleProto =
|
|
68997
|
+
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
68998
|
return;
|
|
68975
68999
|
}
|
|
68976
69000
|
We = "$" + We;
|
|
68977
69001
|
var ct = ae[We];
|
|
68978
69002
|
if (ct) {
|
|
68979
69003
|
var $t;
|
|
68980
|
-
lt === "init" ? $t = this.strict && ct.init || ct.get || ct.set : $t = ct.init || ct[lt], $t && this.raiseRecoverable(
|
|
69004
|
+
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
69005
|
} else
|
|
68982
69006
|
ct = ae[We] = {
|
|
68983
69007
|
init: !1,
|
|
@@ -68987,9 +69011,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68987
69011
|
ct[lt] = !0;
|
|
68988
69012
|
}
|
|
68989
69013
|
}, Xt.parseExpression = function(V, ae) {
|
|
68990
|
-
var Be = this.start,
|
|
69014
|
+
var Be = this.start, Fe = this.startLoc, We = this.parseMaybeAssign(V, ae);
|
|
68991
69015
|
if (this.type === F.comma) {
|
|
68992
|
-
var lt = this.startNodeAt(Be,
|
|
69016
|
+
var lt = this.startNodeAt(Be, Fe);
|
|
68993
69017
|
for (lt.expressions = [We]; this.eat(F.comma); )
|
|
68994
69018
|
lt.expressions.push(this.parseMaybeAssign(V, ae));
|
|
68995
69019
|
return this.finishNode(lt, "SequenceExpression");
|
|
@@ -69001,55 +69025,55 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69001
69025
|
return this.parseYield(V);
|
|
69002
69026
|
this.exprAllowed = !1;
|
|
69003
69027
|
}
|
|
69004
|
-
var
|
|
69005
|
-
ae ? (We = ae.parenthesizedAssign, lt = ae.trailingComma, ct = ae.doubleProto, ae.parenthesizedAssign = ae.trailingComma = -1) : (ae = new cr(),
|
|
69028
|
+
var Fe = !1, We = -1, lt = -1, ct = -1;
|
|
69029
|
+
ae ? (We = ae.parenthesizedAssign, lt = ae.trailingComma, ct = ae.doubleProto, ae.parenthesizedAssign = ae.trailingComma = -1) : (ae = new cr(), Fe = !0);
|
|
69006
69030
|
var $t = this.start, Dt = this.startLoc;
|
|
69007
69031
|
(this.type === F.parenL || this.type === F.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = V === "await");
|
|
69008
69032
|
var er = this.parseMaybeConditional(V, ae);
|
|
69009
69033
|
if (Be && (er = Be.call(this, er, $t, Dt)), this.type.isAssign) {
|
|
69010
69034
|
var Jt = this.startNodeAt($t, Dt);
|
|
69011
|
-
return Jt.operator = this.value, this.type === F.eq && (er = this.toAssignable(er, !1, ae)),
|
|
69035
|
+
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
69036
|
} else
|
|
69013
|
-
|
|
69037
|
+
Fe && this.checkExpressionErrors(ae, !0);
|
|
69014
69038
|
return We > -1 && (ae.parenthesizedAssign = We), lt > -1 && (ae.trailingComma = lt), er;
|
|
69015
69039
|
}, Xt.parseMaybeConditional = function(V, ae) {
|
|
69016
|
-
var Be = this.start,
|
|
69040
|
+
var Be = this.start, Fe = this.startLoc, We = this.parseExprOps(V, ae);
|
|
69017
69041
|
if (this.checkExpressionErrors(ae))
|
|
69018
69042
|
return We;
|
|
69019
69043
|
if (this.eat(F.question)) {
|
|
69020
|
-
var lt = this.startNodeAt(Be,
|
|
69044
|
+
var lt = this.startNodeAt(Be, Fe);
|
|
69021
69045
|
return lt.test = We, lt.consequent = this.parseMaybeAssign(), this.expect(F.colon), lt.alternate = this.parseMaybeAssign(V), this.finishNode(lt, "ConditionalExpression");
|
|
69022
69046
|
}
|
|
69023
69047
|
return We;
|
|
69024
69048
|
}, 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,
|
|
69049
|
+
var Be = this.start, Fe = this.startLoc, We = this.parseMaybeUnary(ae, !1, !1, V);
|
|
69050
|
+
return this.checkExpressionErrors(ae) || We.start === Be && We.type === "ArrowFunctionExpression" ? We : this.parseExprOp(We, Be, Fe, -1, V);
|
|
69051
|
+
}, Xt.parseExprOp = function(V, ae, Be, Fe, We) {
|
|
69028
69052
|
var lt = this.type.binop;
|
|
69029
|
-
if (lt != null && (!We || this.type !== F._in) && lt >
|
|
69053
|
+
if (lt != null && (!We || this.type !== F._in) && lt > Fe) {
|
|
69030
69054
|
var ct = this.type === F.logicalOR || this.type === F.logicalAND, $t = this.type === F.coalesce;
|
|
69031
69055
|
$t && (lt = F.logicalAND.binop);
|
|
69032
69056
|
var Dt = this.value;
|
|
69033
69057
|
this.next();
|
|
69034
69058
|
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,
|
|
69059
|
+
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
69060
|
}
|
|
69037
69061
|
return V;
|
|
69038
|
-
}, Xt.buildBinary = function(V, ae, Be,
|
|
69039
|
-
|
|
69062
|
+
}, Xt.buildBinary = function(V, ae, Be, Fe, We, lt) {
|
|
69063
|
+
Fe.type === "PrivateIdentifier" && this.raise(Fe.start, "Private identifier can only be left side of binary expression");
|
|
69040
69064
|
var ct = this.startNodeAt(V, ae);
|
|
69041
|
-
return ct.left = Be, ct.operator = We, ct.right =
|
|
69042
|
-
}, Xt.parseMaybeUnary = function(V, ae, Be,
|
|
69065
|
+
return ct.left = Be, ct.operator = We, ct.right = Fe, this.finishNode(ct, lt ? "LogicalExpression" : "BinaryExpression");
|
|
69066
|
+
}, Xt.parseMaybeUnary = function(V, ae, Be, Fe) {
|
|
69043
69067
|
var We = this.start, lt = this.startLoc, ct;
|
|
69044
69068
|
if (this.isContextual("await") && this.canAwait)
|
|
69045
|
-
ct = this.parseAwait(
|
|
69069
|
+
ct = this.parseAwait(Fe), ae = !0;
|
|
69046
69070
|
else if (this.type.prefix) {
|
|
69047
69071
|
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,
|
|
69072
|
+
$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
69073
|
} else if (!ae && this.type === F.privateId)
|
|
69050
|
-
(
|
|
69074
|
+
(Fe || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), ct = this.parsePrivateIdent(), this.type !== F._in && this.unexpected();
|
|
69051
69075
|
else {
|
|
69052
|
-
if (ct = this.parseExprSubscripts(V,
|
|
69076
|
+
if (ct = this.parseExprSubscripts(V, Fe), this.checkExpressionErrors(V))
|
|
69053
69077
|
return ct;
|
|
69054
69078
|
for (; this.type.postfix && !this.canInsertSemicolon(); ) {
|
|
69055
69079
|
var er = this.startNodeAt(We, lt);
|
|
@@ -69060,7 +69084,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69060
69084
|
if (ae)
|
|
69061
69085
|
this.unexpected(this.lastTokStart);
|
|
69062
69086
|
else
|
|
69063
|
-
return this.buildBinary(We, lt, ct, this.parseMaybeUnary(null, !1, !1,
|
|
69087
|
+
return this.buildBinary(We, lt, ct, this.parseMaybeUnary(null, !1, !1, Fe), "**", !1);
|
|
69064
69088
|
else
|
|
69065
69089
|
return ct;
|
|
69066
69090
|
};
|
|
@@ -69071,14 +69095,14 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69071
69095
|
return V.type === "MemberExpression" && V.property.type === "PrivateIdentifier" || V.type === "ChainExpression" && Ir(V.expression) || V.type === "ParenthesizedExpression" && Ir(V.expression);
|
|
69072
69096
|
}
|
|
69073
69097
|
Xt.parseExprSubscripts = function(V, ae) {
|
|
69074
|
-
var Be = this.start,
|
|
69098
|
+
var Be = this.start, Fe = this.startLoc, We = this.parseExprAtom(V, ae);
|
|
69075
69099
|
if (We.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")")
|
|
69076
69100
|
return We;
|
|
69077
|
-
var lt = this.parseSubscripts(We, Be,
|
|
69101
|
+
var lt = this.parseSubscripts(We, Be, Fe, !1, ae);
|
|
69078
69102
|
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,
|
|
69103
|
+
}, Xt.parseSubscripts = function(V, ae, Be, Fe, We) {
|
|
69080
69104
|
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,
|
|
69105
|
+
var $t = this.parseSubscript(V, ae, Be, Fe, lt, ct, We);
|
|
69082
69106
|
if ($t.optional && (ct = !0), $t === V || $t.type === "ArrowFunctionExpression") {
|
|
69083
69107
|
if (ct) {
|
|
69084
69108
|
var Dt = this.startNodeAt(ae, Be);
|
|
@@ -69090,16 +69114,16 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69090
69114
|
}
|
|
69091
69115
|
}, Xt.shouldParseAsyncArrow = function() {
|
|
69092
69116
|
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,
|
|
69117
|
+
}, Xt.parseSubscriptAsyncArrow = function(V, ae, Be, Fe) {
|
|
69118
|
+
return this.parseArrowExpression(this.startNodeAt(V, ae), Be, !0, Fe);
|
|
69119
|
+
}, Xt.parseSubscript = function(V, ae, Be, Fe, We, lt, ct) {
|
|
69096
69120
|
var $t = this.options.ecmaVersion >= 11, Dt = $t && this.eat(F.questionDot);
|
|
69097
|
-
|
|
69121
|
+
Fe && Dt && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
69098
69122
|
var er = this.eat(F.bracketL);
|
|
69099
69123
|
if (er || Dt && this.type !== F.parenL && this.type !== F.backQuote || this.eat(F.dot)) {
|
|
69100
69124
|
var Jt = this.startNodeAt(ae, Be);
|
|
69101
69125
|
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 (!
|
|
69126
|
+
} else if (!Fe && this.eat(F.parenL)) {
|
|
69103
69127
|
var mr = new cr(), jr = this.yieldPos, Qr = this.awaitPos, Hr = this.awaitIdentPos;
|
|
69104
69128
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
69105
69129
|
var dn = this.parseExprList(F.parenR, this.options.ecmaVersion >= 8, !1, mr);
|
|
@@ -69116,12 +69140,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69116
69140
|
return V;
|
|
69117
69141
|
}, Xt.parseExprAtom = function(V, ae, Be) {
|
|
69118
69142
|
this.type === F.slash && this.readRegexp();
|
|
69119
|
-
var
|
|
69143
|
+
var Fe, We = this.potentialArrowAt === this.start;
|
|
69120
69144
|
switch (this.type) {
|
|
69121
69145
|
case F._super:
|
|
69122
|
-
return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"),
|
|
69146
|
+
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
69147
|
case F._this:
|
|
69124
|
-
return
|
|
69148
|
+
return Fe = this.startNode(), this.next(), this.finishNode(Fe, "ThisExpression");
|
|
69125
69149
|
case F.name:
|
|
69126
69150
|
var lt = this.start, ct = this.startLoc, $t = this.containsEsc, Dt = this.parseIdent(!1);
|
|
69127
69151
|
if (this.options.ecmaVersion >= 8 && !$t && Dt.name === "async" && !this.canInsertSemicolon() && this.eat(F._function))
|
|
@@ -69135,23 +69159,23 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69135
69159
|
return Dt;
|
|
69136
69160
|
case F.regexp:
|
|
69137
69161
|
var er = this.value;
|
|
69138
|
-
return
|
|
69162
|
+
return Fe = this.parseLiteral(er.value), Fe.regex = { pattern: er.pattern, flags: er.flags }, Fe;
|
|
69139
69163
|
case F.num:
|
|
69140
69164
|
case F.string:
|
|
69141
69165
|
return this.parseLiteral(this.value);
|
|
69142
69166
|
case F._null:
|
|
69143
69167
|
case F._true:
|
|
69144
69168
|
case F._false:
|
|
69145
|
-
return
|
|
69169
|
+
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
69170
|
case F.parenL:
|
|
69147
69171
|
var Jt = this.start, mr = this.parseParenAndDistinguishExpression(We, ae);
|
|
69148
69172
|
return V && (V.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(mr) && (V.parenthesizedAssign = Jt), V.parenthesizedBind < 0 && (V.parenthesizedBind = Jt)), mr;
|
|
69149
69173
|
case F.bracketL:
|
|
69150
|
-
return
|
|
69174
|
+
return Fe = this.startNode(), this.next(), Fe.elements = this.parseExprList(F.bracketR, !0, !0, V), this.finishNode(Fe, "ArrayExpression");
|
|
69151
69175
|
case F.braceL:
|
|
69152
69176
|
return this.overrideContext(tr.b_expr), this.parseObj(!1, V);
|
|
69153
69177
|
case F._function:
|
|
69154
|
-
return
|
|
69178
|
+
return Fe = this.startNode(), this.next(), this.parseFunction(Fe, 0);
|
|
69155
69179
|
case F._class:
|
|
69156
69180
|
return this.parseClass(this.startNode(), !1);
|
|
69157
69181
|
case F._new:
|
|
@@ -69194,7 +69218,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69194
69218
|
}, Xt.shouldParseArrow = function(V) {
|
|
69195
69219
|
return !this.canInsertSemicolon();
|
|
69196
69220
|
}, Xt.parseParenAndDistinguishExpression = function(V, ae) {
|
|
69197
|
-
var Be = this.start,
|
|
69221
|
+
var Be = this.start, Fe = this.startLoc, We, lt = this.options.ecmaVersion >= 8;
|
|
69198
69222
|
if (this.options.ecmaVersion >= 6) {
|
|
69199
69223
|
this.next();
|
|
69200
69224
|
var ct = this.start, $t = this.startLoc, Dt = [], er = !0, Jt = !1, mr = new cr(), jr = this.yieldPos, Qr = this.awaitPos, Hr;
|
|
@@ -69209,19 +69233,19 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69209
69233
|
Dt.push(this.parseMaybeAssign(!1, mr, this.parseParenItem));
|
|
69210
69234
|
var dn = this.lastTokEnd, zr = this.lastTokEndLoc;
|
|
69211
69235
|
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,
|
|
69236
|
+
return this.checkPatternErrors(mr, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = jr, this.awaitPos = Qr, this.parseParenArrowList(Be, Fe, Dt, ae);
|
|
69213
69237
|
(!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
69238
|
} else
|
|
69215
69239
|
We = this.parseParenExpression();
|
|
69216
69240
|
if (this.options.preserveParens) {
|
|
69217
|
-
var Gr = this.startNodeAt(Be,
|
|
69241
|
+
var Gr = this.startNodeAt(Be, Fe);
|
|
69218
69242
|
return Gr.expression = We, this.finishNode(Gr, "ParenthesizedExpression");
|
|
69219
69243
|
} else
|
|
69220
69244
|
return We;
|
|
69221
69245
|
}, Xt.parseParenItem = function(V) {
|
|
69222
69246
|
return V;
|
|
69223
|
-
}, Xt.parseParenArrowList = function(V, ae, Be,
|
|
69224
|
-
return this.parseArrowExpression(this.startNodeAt(V, ae), Be, !1,
|
|
69247
|
+
}, Xt.parseParenArrowList = function(V, ae, Be, Fe) {
|
|
69248
|
+
return this.parseArrowExpression(this.startNodeAt(V, ae), Be, !1, Fe);
|
|
69225
69249
|
};
|
|
69226
69250
|
var mn = [];
|
|
69227
69251
|
Xt.parseNew = function() {
|
|
@@ -69233,8 +69257,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69233
69257
|
var Be = this.containsEsc;
|
|
69234
69258
|
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
69259
|
}
|
|
69236
|
-
var
|
|
69237
|
-
return V.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0),
|
|
69260
|
+
var Fe = this.start, We = this.startLoc;
|
|
69261
|
+
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
69262
|
}, Xt.parseTemplateElement = function(V) {
|
|
69239
69263
|
var ae = V.isTagged, Be = this.startNode();
|
|
69240
69264
|
return this.type === F.invalidTemplate ? (ae || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), Be.value = {
|
|
@@ -69252,17 +69276,17 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69252
69276
|
ae === void 0 && (ae = !1);
|
|
69253
69277
|
var Be = this.startNode();
|
|
69254
69278
|
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(
|
|
69279
|
+
var Fe = this.parseTemplateElement({ isTagged: ae });
|
|
69280
|
+
for (Be.quasis = [Fe]; !Fe.tail; )
|
|
69281
|
+
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
69282
|
return this.next(), this.finishNode(Be, "TemplateLiteral");
|
|
69259
69283
|
}, Xt.isAsyncProp = function(V) {
|
|
69260
69284
|
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
69285
|
}, Xt.parseObj = function(V, ae) {
|
|
69262
|
-
var Be = this.startNode(),
|
|
69286
|
+
var Be = this.startNode(), Fe = !0, We = {};
|
|
69263
69287
|
for (Be.properties = [], this.next(); !this.eat(F.braceR); ) {
|
|
69264
|
-
if (
|
|
69265
|
-
|
|
69288
|
+
if (Fe)
|
|
69289
|
+
Fe = !1;
|
|
69266
69290
|
else if (this.expect(F.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(F.braceR))
|
|
69267
69291
|
break;
|
|
69268
69292
|
var lt = this.parseProperty(V, ae);
|
|
@@ -69270,12 +69294,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69270
69294
|
}
|
|
69271
69295
|
return this.finishNode(Be, V ? "ObjectPattern" : "ObjectExpression");
|
|
69272
69296
|
}, Xt.parseProperty = function(V, ae) {
|
|
69273
|
-
var Be = this.startNode(),
|
|
69297
|
+
var Be = this.startNode(), Fe, We, lt, ct;
|
|
69274
69298
|
if (this.options.ecmaVersion >= 9 && this.eat(F.ellipsis))
|
|
69275
69299
|
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 || (
|
|
69300
|
+
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
69301
|
var $t = this.containsEsc;
|
|
69278
|
-
return this.parsePropertyName(Be), !V && !$t && this.options.ecmaVersion >= 8 && !
|
|
69302
|
+
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
69303
|
}, Xt.parseGetterSetter = function(V) {
|
|
69280
69304
|
V.kind = V.key.name, this.parsePropertyName(V), V.value = this.parseMethod(!1);
|
|
69281
69305
|
var ae = V.kind === "get" ? 0 : 1;
|
|
@@ -69284,8 +69308,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69284
69308
|
V.kind === "get" ? this.raiseRecoverable(Be, "getter should have no params") : this.raiseRecoverable(Be, "setter should have exactly one param");
|
|
69285
69309
|
} else
|
|
69286
69310
|
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 ||
|
|
69311
|
+
}, Xt.parsePropertyValue = function(V, ae, Be, Fe, We, lt, ct, $t) {
|
|
69312
|
+
(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
69313
|
}, Xt.parsePropertyName = function(V) {
|
|
69290
69314
|
if (this.options.ecmaVersion >= 6) {
|
|
69291
69315
|
if (this.eat(F.bracketL))
|
|
@@ -69296,15 +69320,15 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69296
69320
|
}, Xt.initFunction = function(V) {
|
|
69297
69321
|
V.id = null, this.options.ecmaVersion >= 6 && (V.generator = V.expression = !1), this.options.ecmaVersion >= 8 && (V.async = !1);
|
|
69298
69322
|
}, Xt.parseMethod = function(V, ae, Be) {
|
|
69299
|
-
var
|
|
69300
|
-
return this.initFunction(
|
|
69301
|
-
}, Xt.parseArrowExpression = function(V, ae, Be,
|
|
69323
|
+
var Fe = this.startNode(), We = this.yieldPos, lt = this.awaitPos, ct = this.awaitIdentPos;
|
|
69324
|
+
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");
|
|
69325
|
+
}, Xt.parseArrowExpression = function(V, ae, Be, Fe) {
|
|
69302
69326
|
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,
|
|
69327
|
+
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");
|
|
69328
|
+
}, Xt.parseFunctionBody = function(V, ae, Be, Fe) {
|
|
69305
69329
|
var We = ae && this.type !== F.braceL, lt = this.strict, ct = !1;
|
|
69306
69330
|
if (We)
|
|
69307
|
-
V.body = this.parseMaybeAssign(
|
|
69331
|
+
V.body = this.parseMaybeAssign(Fe), V.expression = !0, this.checkParams(V, !1);
|
|
69308
69332
|
else {
|
|
69309
69333
|
var $t = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(V.params);
|
|
69310
69334
|
(!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 +69338,31 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69314
69338
|
this.exitScope();
|
|
69315
69339
|
}, Xt.isSimpleParamList = function(V) {
|
|
69316
69340
|
for (var ae = 0, Be = V; ae < Be.length; ae += 1) {
|
|
69317
|
-
var
|
|
69318
|
-
if (
|
|
69341
|
+
var Fe = Be[ae];
|
|
69342
|
+
if (Fe.type !== "Identifier")
|
|
69319
69343
|
return !1;
|
|
69320
69344
|
}
|
|
69321
69345
|
return !0;
|
|
69322
69346
|
}, Xt.checkParams = function(V, ae) {
|
|
69323
|
-
for (var Be = /* @__PURE__ */ Object.create(null),
|
|
69324
|
-
var lt = We[
|
|
69347
|
+
for (var Be = /* @__PURE__ */ Object.create(null), Fe = 0, We = V.params; Fe < We.length; Fe += 1) {
|
|
69348
|
+
var lt = We[Fe];
|
|
69325
69349
|
this.checkLValInnerPattern(lt, it, ae ? null : Be);
|
|
69326
69350
|
}
|
|
69327
|
-
}, Xt.parseExprList = function(V, ae, Be,
|
|
69351
|
+
}, Xt.parseExprList = function(V, ae, Be, Fe) {
|
|
69328
69352
|
for (var We = [], lt = !0; !this.eat(V); ) {
|
|
69329
69353
|
if (lt)
|
|
69330
69354
|
lt = !1;
|
|
69331
69355
|
else if (this.expect(F.comma), ae && this.afterTrailingComma(V))
|
|
69332
69356
|
break;
|
|
69333
69357
|
var ct = void 0;
|
|
69334
|
-
Be && this.type === F.comma ? ct = null : this.type === F.ellipsis ? (ct = this.parseSpread(
|
|
69358
|
+
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
69359
|
}
|
|
69336
69360
|
return We;
|
|
69337
69361
|
}, Xt.checkUnreserved = function(V) {
|
|
69338
|
-
var ae = V.start, Be = V.end,
|
|
69339
|
-
if (this.inGenerator &&
|
|
69362
|
+
var ae = V.start, Be = V.end, Fe = V.name;
|
|
69363
|
+
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
69364
|
var We = this.strict ? this.reservedWordsStrict : this.reservedWords;
|
|
69341
|
-
We.test(
|
|
69365
|
+
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
69366
|
}
|
|
69343
69367
|
}, Xt.parseIdent = function(V) {
|
|
69344
69368
|
var ae = this.parseIdentNode();
|
|
@@ -69362,8 +69386,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69362
69386
|
Br.raise = function(V, ae) {
|
|
69363
69387
|
var Be = tt(this.input, V);
|
|
69364
69388
|
ae += " (" + Be.line + ":" + Be.column + ")";
|
|
69365
|
-
var
|
|
69366
|
-
throw
|
|
69389
|
+
var Fe = new SyntaxError(ae);
|
|
69390
|
+
throw Fe.pos = V, Fe.loc = Be, Fe.raisedAt = this.pos, Fe;
|
|
69367
69391
|
}, Br.raiseRecoverable = Br.raise, Br.curPosition = function() {
|
|
69368
69392
|
if (this.options.locations)
|
|
69369
69393
|
return new He(this.curLine, this.pos - this.lineStart);
|
|
@@ -69378,27 +69402,27 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69378
69402
|
}, wr.treatFunctionsAsVarInScope = function(V) {
|
|
69379
69403
|
return V.flags & at || !this.inModule && V.flags & rt;
|
|
69380
69404
|
}, wr.declareName = function(V, ae, Be) {
|
|
69381
|
-
var
|
|
69405
|
+
var Fe = !1;
|
|
69382
69406
|
if (ae === et) {
|
|
69383
69407
|
var We = this.currentScope();
|
|
69384
|
-
|
|
69408
|
+
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
69409
|
} else if (ae === ft) {
|
|
69386
69410
|
var lt = this.currentScope();
|
|
69387
69411
|
lt.lexical.push(V);
|
|
69388
69412
|
} else if (ae === ut) {
|
|
69389
69413
|
var ct = this.currentScope();
|
|
69390
|
-
this.treatFunctionsAsVar ?
|
|
69414
|
+
this.treatFunctionsAsVar ? Fe = ct.lexical.indexOf(V) > -1 : Fe = ct.lexical.indexOf(V) > -1 || ct.var.indexOf(V) > -1, ct.functions.push(V);
|
|
69391
69415
|
} else
|
|
69392
69416
|
for (var $t = this.scopeStack.length - 1; $t >= 0; --$t) {
|
|
69393
69417
|
var Dt = this.scopeStack[$t];
|
|
69394
69418
|
if (Dt.lexical.indexOf(V) > -1 && !(Dt.flags & Je && Dt.lexical[0] === V) || !this.treatFunctionsAsVarInScope(Dt) && Dt.functions.indexOf(V) > -1) {
|
|
69395
|
-
|
|
69419
|
+
Fe = !0;
|
|
69396
69420
|
break;
|
|
69397
69421
|
}
|
|
69398
69422
|
if (Dt.var.push(V), this.inModule && Dt.flags & rt && delete this.undefinedExports[V], Dt.flags & Ht)
|
|
69399
69423
|
break;
|
|
69400
69424
|
}
|
|
69401
|
-
|
|
69425
|
+
Fe && this.raiseRecoverable(Be, "Identifier '" + V + "' has already been declared");
|
|
69402
69426
|
}, wr.checkLocalExport = function(V) {
|
|
69403
69427
|
this.scopeStack[0].lexical.indexOf(V.name) === -1 && this.scopeStack[0].var.indexOf(V.name) === -1 && (this.undefinedExports[V.name] = V);
|
|
69404
69428
|
}, wr.currentScope = function() {
|
|
@@ -69416,21 +69440,21 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69416
69440
|
return ae;
|
|
69417
69441
|
}
|
|
69418
69442
|
};
|
|
69419
|
-
var Vr = function(ae, Be,
|
|
69420
|
-
this.type = "", this.start = Be, this.end = 0, ae.options.locations && (this.loc = new Ze(ae,
|
|
69443
|
+
var Vr = function(ae, Be, Fe) {
|
|
69444
|
+
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
69445
|
}, Lr = Ct.prototype;
|
|
69422
69446
|
Lr.startNode = function() {
|
|
69423
69447
|
return new Vr(this, this.start, this.startLoc);
|
|
69424
69448
|
}, Lr.startNodeAt = function(V, ae) {
|
|
69425
69449
|
return new Vr(this, V, ae);
|
|
69426
69450
|
};
|
|
69427
|
-
function _r(V, ae, Be,
|
|
69428
|
-
return V.type = ae, V.end = Be, this.options.locations && (V.loc.end =
|
|
69451
|
+
function _r(V, ae, Be, Fe) {
|
|
69452
|
+
return V.type = ae, V.end = Be, this.options.locations && (V.loc.end = Fe), this.options.ranges && (V.range[1] = Be), V;
|
|
69429
69453
|
}
|
|
69430
69454
|
Lr.finishNode = function(V, ae) {
|
|
69431
69455
|
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,
|
|
69456
|
+
}, Lr.finishNodeAt = function(V, ae, Be, Fe) {
|
|
69457
|
+
return _r.call(this, V, ae, Be, Fe);
|
|
69434
69458
|
}, Lr.copyNode = function(V) {
|
|
69435
69459
|
var ae = new Vr(this, V.start, this.startLoc);
|
|
69436
69460
|
for (var Be in V)
|
|
@@ -69479,8 +69503,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69479
69503
|
};
|
|
69480
69504
|
Fr.prototype.separatedFrom = function(ae) {
|
|
69481
69505
|
for (var Be = this; Be; Be = Be.parent)
|
|
69482
|
-
for (var
|
|
69483
|
-
if (Be.base ===
|
|
69506
|
+
for (var Fe = ae; Fe; Fe = Fe.parent)
|
|
69507
|
+
if (Be.base === Fe.base && Be !== Fe)
|
|
69484
69508
|
return !0;
|
|
69485
69509
|
return !1;
|
|
69486
69510
|
}, Fr.prototype.sibling = function() {
|
|
@@ -69489,28 +69513,28 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69489
69513
|
var Cr = function(ae) {
|
|
69490
69514
|
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
69515
|
};
|
|
69492
|
-
Cr.prototype.reset = function(ae, Be,
|
|
69493
|
-
var We =
|
|
69494
|
-
this.start = ae | 0, this.source = Be + "", this.flags =
|
|
69516
|
+
Cr.prototype.reset = function(ae, Be, Fe) {
|
|
69517
|
+
var We = Fe.indexOf("v") !== -1, lt = Fe.indexOf("u") !== -1;
|
|
69518
|
+
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
69519
|
}, Cr.prototype.raise = function(ae) {
|
|
69496
69520
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + ae);
|
|
69497
69521
|
}, Cr.prototype.at = function(ae, Be) {
|
|
69498
69522
|
Be === void 0 && (Be = !1);
|
|
69499
|
-
var
|
|
69523
|
+
var Fe = this.source, We = Fe.length;
|
|
69500
69524
|
if (ae >= We)
|
|
69501
69525
|
return -1;
|
|
69502
|
-
var lt =
|
|
69526
|
+
var lt = Fe.charCodeAt(ae);
|
|
69503
69527
|
if (!(Be || this.switchU) || lt <= 55295 || lt >= 57344 || ae + 1 >= We)
|
|
69504
69528
|
return lt;
|
|
69505
|
-
var ct =
|
|
69529
|
+
var ct = Fe.charCodeAt(ae + 1);
|
|
69506
69530
|
return ct >= 56320 && ct <= 57343 ? (lt << 10) + ct - 56613888 : lt;
|
|
69507
69531
|
}, Cr.prototype.nextIndex = function(ae, Be) {
|
|
69508
69532
|
Be === void 0 && (Be = !1);
|
|
69509
|
-
var
|
|
69533
|
+
var Fe = this.source, We = Fe.length;
|
|
69510
69534
|
if (ae >= We)
|
|
69511
69535
|
return We;
|
|
69512
|
-
var lt =
|
|
69513
|
-
return !(Be || this.switchU) || lt <= 55295 || lt >= 57344 || ae + 1 >= We || (ct =
|
|
69536
|
+
var lt = Fe.charCodeAt(ae), ct;
|
|
69537
|
+
return !(Be || this.switchU) || lt <= 55295 || lt >= 57344 || ae + 1 >= We || (ct = Fe.charCodeAt(ae + 1)) < 56320 || ct > 57343 ? ae + 1 : ae + 2;
|
|
69514
69538
|
}, Cr.prototype.current = function(ae) {
|
|
69515
69539
|
return ae === void 0 && (ae = !1), this.at(this.pos, ae);
|
|
69516
69540
|
}, Cr.prototype.lookahead = function(ae) {
|
|
@@ -69521,19 +69545,19 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69521
69545
|
return Be === void 0 && (Be = !1), this.current(Be) === ae ? (this.advance(Be), !0) : !1;
|
|
69522
69546
|
}, Cr.prototype.eatChars = function(ae, Be) {
|
|
69523
69547
|
Be === void 0 && (Be = !1);
|
|
69524
|
-
for (var
|
|
69525
|
-
var ct = lt[We], $t = this.at(
|
|
69548
|
+
for (var Fe = this.pos, We = 0, lt = ae; We < lt.length; We += 1) {
|
|
69549
|
+
var ct = lt[We], $t = this.at(Fe, Be);
|
|
69526
69550
|
if ($t === -1 || $t !== ct)
|
|
69527
69551
|
return !1;
|
|
69528
|
-
|
|
69552
|
+
Fe = this.nextIndex(Fe, Be);
|
|
69529
69553
|
}
|
|
69530
|
-
return this.pos =
|
|
69554
|
+
return this.pos = Fe, !0;
|
|
69531
69555
|
}, Vt.validateRegExpFlags = function(V) {
|
|
69532
|
-
for (var ae = V.validFlags, Be = V.flags,
|
|
69556
|
+
for (var ae = V.validFlags, Be = V.flags, Fe = !1, We = !1, lt = 0; lt < Be.length; lt++) {
|
|
69533
69557
|
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" && (
|
|
69558
|
+
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
69559
|
}
|
|
69536
|
-
this.options.ecmaVersion >= 15 &&
|
|
69560
|
+
this.options.ecmaVersion >= 15 && Fe && We && this.raise(V.start, "Invalid regular expression flag");
|
|
69537
69561
|
};
|
|
69538
69562
|
function On(V) {
|
|
69539
69563
|
for (var ae in V)
|
|
@@ -69545,8 +69569,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69545
69569
|
}, Vt.regexp_pattern = function(V) {
|
|
69546
69570
|
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
69571
|
for (var ae = 0, Be = V.backReferenceNames; ae < Be.length; ae += 1) {
|
|
69548
|
-
var
|
|
69549
|
-
V.groupNames[
|
|
69572
|
+
var Fe = Be[ae];
|
|
69573
|
+
V.groupNames[Fe] || V.raise("Invalid named capture referenced");
|
|
69550
69574
|
}
|
|
69551
69575
|
}, Vt.regexp_disjunction = function(V) {
|
|
69552
69576
|
var ae = this.options.ecmaVersion >= 16;
|
|
@@ -69580,9 +69604,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69580
69604
|
}, Vt.regexp_eatBracedQuantifier = function(V, ae) {
|
|
69581
69605
|
var Be = V.pos;
|
|
69582
69606
|
if (V.eat(123)) {
|
|
69583
|
-
var
|
|
69584
|
-
if (this.regexp_eatDecimalDigits(V) && (
|
|
69585
|
-
return We !== -1 && We <
|
|
69607
|
+
var Fe = 0, We = -1;
|
|
69608
|
+
if (this.regexp_eatDecimalDigits(V) && (Fe = V.lastIntValue, V.eat(44) && this.regexp_eatDecimalDigits(V) && (We = V.lastIntValue), V.eat(125)))
|
|
69609
|
+
return We !== -1 && We < Fe && !ae && V.raise("numbers out of order in {} quantifier"), !0;
|
|
69586
69610
|
V.switchU && !ae && V.raise("Incomplete quantifier"), V.pos = Be;
|
|
69587
69611
|
}
|
|
69588
69612
|
return !1;
|
|
@@ -69638,8 +69662,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69638
69662
|
var ae = this.options.ecmaVersion >= 16, Be = V.groupNames[V.lastStringValue];
|
|
69639
69663
|
if (Be)
|
|
69640
69664
|
if (ae)
|
|
69641
|
-
for (var
|
|
69642
|
-
var lt = We[
|
|
69665
|
+
for (var Fe = 0, We = Be; Fe < We.length; Fe += 1) {
|
|
69666
|
+
var lt = We[Fe];
|
|
69643
69667
|
lt.separatedFrom(V.branchID) || V.raise("Duplicate capture group name");
|
|
69644
69668
|
}
|
|
69645
69669
|
else
|
|
@@ -69661,15 +69685,15 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69661
69685
|
}
|
|
69662
69686
|
return !1;
|
|
69663
69687
|
}, Vt.regexp_eatRegExpIdentifierStart = function(V) {
|
|
69664
|
-
var ae = V.pos, Be = this.options.ecmaVersion >= 11,
|
|
69665
|
-
return V.advance(Be),
|
|
69688
|
+
var ae = V.pos, Be = this.options.ecmaVersion >= 11, Fe = V.current(Be);
|
|
69689
|
+
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
69690
|
};
|
|
69667
69691
|
function Vn(V) {
|
|
69668
69692
|
return A(V, !0) || V === 36 || V === 95;
|
|
69669
69693
|
}
|
|
69670
69694
|
Vt.regexp_eatRegExpIdentifierPart = function(V) {
|
|
69671
|
-
var ae = V.pos, Be = this.options.ecmaVersion >= 11,
|
|
69672
|
-
return V.advance(Be),
|
|
69695
|
+
var ae = V.pos, Be = this.options.ecmaVersion >= 11, Fe = V.current(Be);
|
|
69696
|
+
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
69697
|
};
|
|
69674
69698
|
function Dn(V) {
|
|
69675
69699
|
return M(V, !0) || V === 36 || V === 95 || V === 8204 || V === 8205;
|
|
@@ -69718,11 +69742,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69718
69742
|
}
|
|
69719
69743
|
Vt.regexp_eatRegExpUnicodeEscapeSequence = function(V, ae) {
|
|
69720
69744
|
ae === void 0 && (ae = !1);
|
|
69721
|
-
var Be = V.pos,
|
|
69745
|
+
var Be = V.pos, Fe = ae || V.switchU;
|
|
69722
69746
|
if (V.eat(117)) {
|
|
69723
69747
|
if (this.regexp_eatFixedHexDigits(V, 4)) {
|
|
69724
69748
|
var We = V.lastIntValue;
|
|
69725
|
-
if (
|
|
69749
|
+
if (Fe && We >= 55296 && We <= 56319) {
|
|
69726
69750
|
var lt = V.pos;
|
|
69727
69751
|
if (V.eat(92) && V.eat(117) && this.regexp_eatFixedHexDigits(V, 4)) {
|
|
69728
69752
|
var ct = V.lastIntValue;
|
|
@@ -69733,9 +69757,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69733
69757
|
}
|
|
69734
69758
|
return !0;
|
|
69735
69759
|
}
|
|
69736
|
-
if (
|
|
69760
|
+
if (Fe && V.eat(123) && this.regexp_eatHexDigits(V) && V.eat(125) && Bn(V.lastIntValue))
|
|
69737
69761
|
return !0;
|
|
69738
|
-
|
|
69762
|
+
Fe && V.raise("Invalid unicode escape"), V.pos = Be;
|
|
69739
69763
|
}
|
|
69740
69764
|
return !1;
|
|
69741
69765
|
};
|
|
@@ -69766,9 +69790,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69766
69790
|
var Be = !1;
|
|
69767
69791
|
if (V.switchU && this.options.ecmaVersion >= 9 && ((Be = ae === 80) || ae === 112)) {
|
|
69768
69792
|
V.lastIntValue = -1, V.advance();
|
|
69769
|
-
var
|
|
69770
|
-
if (V.eat(123) && (
|
|
69771
|
-
return Be &&
|
|
69793
|
+
var Fe;
|
|
69794
|
+
if (V.eat(123) && (Fe = this.regexp_eatUnicodePropertyValueExpression(V)) && V.eat(125))
|
|
69795
|
+
return Be && Fe === Er && V.raise("Invalid property name"), Fe;
|
|
69772
69796
|
V.raise("Invalid property name");
|
|
69773
69797
|
}
|
|
69774
69798
|
return Tn;
|
|
@@ -69781,8 +69805,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69781
69805
|
if (this.regexp_eatUnicodePropertyName(V) && V.eat(61)) {
|
|
69782
69806
|
var Be = V.lastStringValue;
|
|
69783
69807
|
if (this.regexp_eatUnicodePropertyValue(V)) {
|
|
69784
|
-
var
|
|
69785
|
-
return this.regexp_validateUnicodePropertyNameAndValue(V, Be,
|
|
69808
|
+
var Fe = V.lastStringValue;
|
|
69809
|
+
return this.regexp_validateUnicodePropertyNameAndValue(V, Be, Fe), Or;
|
|
69786
69810
|
}
|
|
69787
69811
|
}
|
|
69788
69812
|
if (V.pos = ae, this.regexp_eatLoneUnicodePropertyNameOrValue(V)) {
|
|
@@ -69791,7 +69815,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69791
69815
|
}
|
|
69792
69816
|
return Tn;
|
|
69793
69817
|
}, Vt.regexp_validateUnicodePropertyNameAndValue = function(V, ae, Be) {
|
|
69794
|
-
|
|
69818
|
+
je(V.unicodeProperties.nonBinary, ae) || V.raise("Invalid property name"), V.unicodeProperties.nonBinary[ae].test(Be) || V.raise("Invalid property value");
|
|
69795
69819
|
}, Vt.regexp_validateUnicodePropertyNameOrValue = function(V, ae) {
|
|
69796
69820
|
if (V.unicodeProperties.binary.test(ae))
|
|
69797
69821
|
return Or;
|
|
@@ -69845,8 +69869,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69845
69869
|
}
|
|
69846
69870
|
V.pos = ae;
|
|
69847
69871
|
}
|
|
69848
|
-
var
|
|
69849
|
-
return
|
|
69872
|
+
var Fe = V.current();
|
|
69873
|
+
return Fe !== 93 ? (V.lastIntValue = Fe, V.advance(), !0) : !1;
|
|
69850
69874
|
}, Vt.regexp_eatClassEscape = function(V) {
|
|
69851
69875
|
var ae = V.pos;
|
|
69852
69876
|
if (V.eat(98))
|
|
@@ -69864,18 +69888,18 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69864
69888
|
if (!this.regexp_eatClassSetRange(V))
|
|
69865
69889
|
if (Be = this.regexp_eatClassSetOperand(V)) {
|
|
69866
69890
|
Be === Er && (ae = Er);
|
|
69867
|
-
for (var
|
|
69891
|
+
for (var Fe = V.pos; V.eatChars([38, 38]); ) {
|
|
69868
69892
|
if (V.current() !== 38 && (Be = this.regexp_eatClassSetOperand(V))) {
|
|
69869
69893
|
Be !== Er && (ae = Or);
|
|
69870
69894
|
continue;
|
|
69871
69895
|
}
|
|
69872
69896
|
V.raise("Invalid character in character class");
|
|
69873
69897
|
}
|
|
69874
|
-
if (
|
|
69898
|
+
if (Fe !== V.pos)
|
|
69875
69899
|
return ae;
|
|
69876
69900
|
for (; V.eatChars([45, 45]); )
|
|
69877
69901
|
this.regexp_eatClassSetOperand(V) || V.raise("Invalid character in character class");
|
|
69878
|
-
if (
|
|
69902
|
+
if (Fe !== V.pos)
|
|
69879
69903
|
return ae;
|
|
69880
69904
|
} else
|
|
69881
69905
|
V.raise("Invalid character in character class");
|
|
@@ -69890,8 +69914,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69890
69914
|
if (this.regexp_eatClassSetCharacter(V)) {
|
|
69891
69915
|
var Be = V.lastIntValue;
|
|
69892
69916
|
if (V.eat(45) && this.regexp_eatClassSetCharacter(V)) {
|
|
69893
|
-
var
|
|
69894
|
-
return Be !== -1 &&
|
|
69917
|
+
var Fe = V.lastIntValue;
|
|
69918
|
+
return Be !== -1 && Fe !== -1 && Be > Fe && V.raise("Range out of order in character class"), !0;
|
|
69895
69919
|
}
|
|
69896
69920
|
V.pos = ae;
|
|
69897
69921
|
}
|
|
@@ -69901,9 +69925,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69901
69925
|
}, Vt.regexp_eatNestedClass = function(V) {
|
|
69902
69926
|
var ae = V.pos;
|
|
69903
69927
|
if (V.eat(91)) {
|
|
69904
|
-
var Be = V.eat(94),
|
|
69928
|
+
var Be = V.eat(94), Fe = this.regexp_classContents(V);
|
|
69905
69929
|
if (V.eat(93))
|
|
69906
|
-
return Be &&
|
|
69930
|
+
return Be && Fe === Er && V.raise("Negated character class may contain strings"), Fe;
|
|
69907
69931
|
V.pos = ae;
|
|
69908
69932
|
}
|
|
69909
69933
|
if (V.eat(92)) {
|
|
@@ -70006,7 +70030,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70006
70030
|
Vt.regexp_eatFixedHexDigits = function(V, ae) {
|
|
70007
70031
|
var Be = V.pos;
|
|
70008
70032
|
V.lastIntValue = 0;
|
|
70009
|
-
for (var
|
|
70033
|
+
for (var Fe = 0; Fe < ae; ++Fe) {
|
|
70010
70034
|
var We = V.current();
|
|
70011
70035
|
if (!En(We))
|
|
70012
70036
|
return V.pos = Be, !1;
|
|
@@ -70050,12 +70074,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70050
70074
|
}, rr.skipBlockComment = function() {
|
|
70051
70075
|
var V = this.options.onComment && this.curPosition(), ae = this.pos, Be = this.input.indexOf("*/", this.pos += 2);
|
|
70052
70076
|
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 =
|
|
70077
|
+
for (var Fe = void 0, We = ae; (Fe = ge(this.input, We, this.pos)) > -1; )
|
|
70078
|
+
++this.curLine, We = this.lineStart = Fe;
|
|
70055
70079
|
this.options.onComment && this.options.onComment(!0, this.input.slice(ae + 2, Be), ae, this.pos, V, this.curPosition());
|
|
70056
70080
|
}, rr.skipLineComment = function(V) {
|
|
70057
|
-
for (var ae = this.pos, Be = this.options.onComment && this.curPosition(),
|
|
70058
|
-
|
|
70081
|
+
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); )
|
|
70082
|
+
Fe = this.input.charCodeAt(++this.pos);
|
|
70059
70083
|
this.options.onComment && this.options.onComment(!1, this.input.slice(ae + V, this.pos), ae, this.pos, Be, this.curPosition());
|
|
70060
70084
|
}, rr.skipSpace = function() {
|
|
70061
70085
|
e:
|
|
@@ -70106,8 +70130,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70106
70130
|
var V = this.input.charCodeAt(this.pos + 1);
|
|
70107
70131
|
return this.exprAllowed ? (++this.pos, this.readRegexp()) : V === 61 ? this.finishOp(F.assign, 2) : this.finishOp(F.slash, 1);
|
|
70108
70132
|
}, 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,
|
|
70133
|
+
var ae = this.input.charCodeAt(this.pos + 1), Be = 1, Fe = V === 42 ? F.star : F.modulo;
|
|
70134
|
+
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
70135
|
}, rr.readToken_pipe_amp = function(V) {
|
|
70112
70136
|
var ae = this.input.charCodeAt(this.pos + 1);
|
|
70113
70137
|
if (ae === V) {
|
|
@@ -70142,8 +70166,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70142
70166
|
}
|
|
70143
70167
|
if (ae === 63) {
|
|
70144
70168
|
if (V >= 12) {
|
|
70145
|
-
var
|
|
70146
|
-
if (
|
|
70169
|
+
var Fe = this.input.charCodeAt(this.pos + 2);
|
|
70170
|
+
if (Fe === 61)
|
|
70147
70171
|
return this.finishOp(F.assign, 3);
|
|
70148
70172
|
}
|
|
70149
70173
|
return this.finishOp(F.coalesce, 2);
|
|
@@ -70237,17 +70261,17 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70237
70261
|
}, rr.readRegexp = function() {
|
|
70238
70262
|
for (var V, ae, Be = this.pos; ; ) {
|
|
70239
70263
|
this.pos >= this.input.length && this.raise(Be, "Unterminated regular expression");
|
|
70240
|
-
var
|
|
70241
|
-
if (te.test(
|
|
70264
|
+
var Fe = this.input.charAt(this.pos);
|
|
70265
|
+
if (te.test(Fe) && this.raise(Be, "Unterminated regular expression"), V)
|
|
70242
70266
|
V = !1;
|
|
70243
70267
|
else {
|
|
70244
|
-
if (
|
|
70268
|
+
if (Fe === "[")
|
|
70245
70269
|
ae = !0;
|
|
70246
|
-
else if (
|
|
70270
|
+
else if (Fe === "]" && ae)
|
|
70247
70271
|
ae = !1;
|
|
70248
|
-
else if (
|
|
70272
|
+
else if (Fe === "/" && !ae)
|
|
70249
70273
|
break;
|
|
70250
|
-
V =
|
|
70274
|
+
V = Fe === "\\";
|
|
70251
70275
|
}
|
|
70252
70276
|
++this.pos;
|
|
70253
70277
|
}
|
|
@@ -70264,9 +70288,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70264
70288
|
}
|
|
70265
70289
|
return this.finishToken(F.regexp, { pattern: We, flags: ct, value: Dt });
|
|
70266
70290
|
}, rr.readInt = function(V, ae, Be) {
|
|
70267
|
-
for (var
|
|
70291
|
+
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
70292
|
var Jt = this.input.charCodeAt(this.pos), mr = void 0;
|
|
70269
|
-
if (
|
|
70293
|
+
if (Fe && Jt === 95) {
|
|
70270
70294
|
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
70295
|
continue;
|
|
70272
70296
|
}
|
|
@@ -70274,7 +70298,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70274
70298
|
break;
|
|
70275
70299
|
$t = Jt, ct = ct * V + mr;
|
|
70276
70300
|
}
|
|
70277
|
-
return
|
|
70301
|
+
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
70302
|
};
|
|
70279
70303
|
function Hn(V, ae) {
|
|
70280
70304
|
return ae ? parseInt(V, 8) : parseFloat(V.replace(/_/g, ""));
|
|
@@ -70292,12 +70316,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70292
70316
|
!V && this.readInt(10, void 0, !0) === null && this.raise(ae, "Invalid number");
|
|
70293
70317
|
var Be = this.pos - ae >= 2 && this.input.charCodeAt(ae) === 48;
|
|
70294
70318
|
Be && this.strict && this.raise(ae, "Invalid number");
|
|
70295
|
-
var
|
|
70296
|
-
if (!Be && !V && this.options.ecmaVersion >= 11 &&
|
|
70319
|
+
var Fe = this.input.charCodeAt(this.pos);
|
|
70320
|
+
if (!Be && !V && this.options.ecmaVersion >= 11 && Fe === 110) {
|
|
70297
70321
|
var We = In(this.input.slice(ae, this.pos));
|
|
70298
70322
|
return ++this.pos, A(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(F.num, We);
|
|
70299
70323
|
}
|
|
70300
|
-
Be && /[89]/.test(this.input.slice(ae, this.pos)) && (Be = !1),
|
|
70324
|
+
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
70325
|
var lt = Hn(this.input.slice(ae, this.pos), Be);
|
|
70302
70326
|
return this.finishToken(F.num, lt);
|
|
70303
70327
|
}, rr.readCodePoint = function() {
|
|
@@ -70312,10 +70336,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70312
70336
|
}, rr.readString = function(V) {
|
|
70313
70337
|
for (var ae = "", Be = ++this.pos; ; ) {
|
|
70314
70338
|
this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
|
|
70315
|
-
var
|
|
70316
|
-
if (
|
|
70339
|
+
var Fe = this.input.charCodeAt(this.pos);
|
|
70340
|
+
if (Fe === V)
|
|
70317
70341
|
break;
|
|
70318
|
-
|
|
70342
|
+
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
70343
|
}
|
|
70320
70344
|
return ae += this.input.slice(Be, this.pos++), this.finishToken(F.string, ae);
|
|
70321
70345
|
};
|
|
@@ -70413,8 +70437,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70413
70437
|
}
|
|
70414
70438
|
default:
|
|
70415
70439
|
if (ae >= 48 && ae <= 55) {
|
|
70416
|
-
var
|
|
70417
|
-
return We > 255 && (
|
|
70440
|
+
var Fe = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], We = parseInt(Fe, 8);
|
|
70441
|
+
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
70442
|
}
|
|
70419
70443
|
return oe(ae) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(ae);
|
|
70420
70444
|
}
|
|
@@ -70423,16 +70447,16 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70423
70447
|
return Be === null && this.invalidStringToken(ae, "Bad character escape sequence"), Be;
|
|
70424
70448
|
}, rr.readWord1 = function() {
|
|
70425
70449
|
this.containsEsc = !1;
|
|
70426
|
-
for (var V = "", ae = !0, Be = this.pos,
|
|
70450
|
+
for (var V = "", ae = !0, Be = this.pos, Fe = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
|
|
70427
70451
|
var We = this.fullCharCodeAtPos();
|
|
70428
|
-
if (M(We,
|
|
70452
|
+
if (M(We, Fe))
|
|
70429
70453
|
this.pos += We <= 65535 ? 1 : 2;
|
|
70430
70454
|
else if (We === 92) {
|
|
70431
70455
|
this.containsEsc = !0, V += this.input.slice(Be, this.pos);
|
|
70432
70456
|
var lt = this.pos;
|
|
70433
70457
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
70434
70458
|
var ct = this.readCodePoint();
|
|
70435
|
-
(ae ? A : M)(ct,
|
|
70459
|
+
(ae ? A : M)(ct, Fe) || this.invalidStringToken(lt, "Invalid Unicode escape"), V += qe(ct), Be = this.pos;
|
|
70436
70460
|
} else
|
|
70437
70461
|
break;
|
|
70438
70462
|
ae = !1;
|
|
@@ -73795,7 +73819,7 @@ function ProductCard({
|
|
|
73795
73819
|
applicationId: t
|
|
73796
73820
|
}, {
|
|
73797
73821
|
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,
|
|
73822
|
+
}), 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
73823
|
var et;
|
|
73800
73824
|
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
73825
|
}, [(Rt = e == null ? void 0 : e.Distribution) == null ? void 0 : Rt.Inventory]);
|
|
@@ -73809,9 +73833,9 @@ function ProductCard({
|
|
|
73809
73833
|
}
|
|
73810
73834
|
}, [e, o]), useEffect(() => {
|
|
73811
73835
|
if (!e) return;
|
|
73812
|
-
const et = R != null && R.Price ? R.Price :
|
|
73836
|
+
const et = R != null && R.Price ? R.Price : je;
|
|
73813
73837
|
I(Ve > 0 ? Math.round((Ve - et) / Ve * 100) : 0);
|
|
73814
|
-
}, [e, R,
|
|
73838
|
+
}, [e, R, je, Ve]), useEffect(() => {
|
|
73815
73839
|
d || E(1);
|
|
73816
73840
|
}, [d]);
|
|
73817
73841
|
const Oe = (et) => {
|
|
@@ -74197,7 +74221,7 @@ function ProductCard({
|
|
|
74197
74221
|
formatMoney(Ne)
|
|
74198
74222
|
] }) }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
74199
74223
|
/* @__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 :
|
|
74224
|
+
/* @__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
74225
|
M > 0 && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: formatMoney(Ve) })
|
|
74202
74226
|
] }),
|
|
74203
74227
|
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 +74768,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
74744
74768
|
var He;
|
|
74745
74769
|
return Array.from(((He = j.current) == null ? void 0 : He.querySelectorAll(ce)) || []);
|
|
74746
74770
|
}
|
|
74747
|
-
function
|
|
74771
|
+
function je(He) {
|
|
74748
74772
|
let Ze = Ve()[He];
|
|
74749
74773
|
Ze && te.setState("value", Ze.getAttribute(T));
|
|
74750
74774
|
}
|
|
@@ -74758,10 +74782,10 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
74758
74782
|
for (; tt && !Ye; ) tt = He > 0 ? we(tt, N) : De(tt, N), Ye = tt == null ? void 0 : tt.querySelector(ce);
|
|
74759
74783
|
Ye ? te.setState("value", Ye.getAttribute(T)) : ze(He);
|
|
74760
74784
|
}
|
|
74761
|
-
let Le = () =>
|
|
74785
|
+
let Le = () => je(Ve().length - 1), qe = (He) => {
|
|
74762
74786
|
He.preventDefault(), He.metaKey ? Le() : He.altKey ? Oe(1) : ze(1);
|
|
74763
74787
|
}, Ge = (He) => {
|
|
74764
|
-
He.preventDefault(), He.metaKey ?
|
|
74788
|
+
He.preventDefault(), He.metaKey ? je(0) : He.altKey ? Oe(-1) : ze(-1);
|
|
74765
74789
|
};
|
|
74766
74790
|
return React.createElement(Primitive.div, { ref: e, tabIndex: -1, ...O, "cmdk-root": "", onKeyDown: (He) => {
|
|
74767
74791
|
var Ze;
|
|
@@ -74787,7 +74811,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
74787
74811
|
break;
|
|
74788
74812
|
}
|
|
74789
74813
|
case "Home": {
|
|
74790
|
-
He.preventDefault(),
|
|
74814
|
+
He.preventDefault(), je(0);
|
|
74791
74815
|
break;
|
|
74792
74816
|
}
|
|
74793
74817
|
case "End": {
|
|
@@ -75147,7 +75171,7 @@ const salesChannels = [
|
|
|
75147
75171
|
{ id: "other-market", label: "Other (please specify)" }
|
|
75148
75172
|
];
|
|
75149
75173
|
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:
|
|
75174
|
+
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
75175
|
_(""), E("");
|
|
75152
75176
|
}, Oe = () => {
|
|
75153
75177
|
I(""), q(""), Q([]), F(""), ne(""), ge([]), Ae(""), Ne("");
|
|
@@ -75170,7 +75194,7 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
75170
75194
|
return;
|
|
75171
75195
|
}
|
|
75172
75196
|
const ot = (rt = Xe.data) == null ? void 0 : rt.ConversationId;
|
|
75173
|
-
ot &&
|
|
75197
|
+
ot && je(ot) ? (l(!1), ze()) : n({ title: "Could not send message", description: "Try again later.", variant: "destructive" });
|
|
75174
75198
|
}).catch((Xe) => {
|
|
75175
75199
|
console.error(Xe), n({ title: "Could not initiate chat", description: "Try again later.", variant: "destructive" });
|
|
75176
75200
|
}).finally(() => {
|
|
@@ -75205,7 +75229,7 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
75205
75229
|
return;
|
|
75206
75230
|
}
|
|
75207
75231
|
const Ue = (Rt = st.data) == null ? void 0 : Rt.ConversationId;
|
|
75208
|
-
Ue &&
|
|
75232
|
+
Ue && je(Ue) ? (f(!1), Oe()) : n({ title: "Could not send message", description: "Try again later.", variant: "destructive" });
|
|
75209
75233
|
}).catch((st) => {
|
|
75210
75234
|
console.error(st), n({ title: "Could not initiate chat", description: "Try again later.", variant: "destructive" });
|
|
75211
75235
|
}).finally(() => {
|
|
@@ -75377,7 +75401,7 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
75377
75401
|
defaultProp: g,
|
|
75378
75402
|
onChange: b,
|
|
75379
75403
|
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((
|
|
75404
|
+
}), 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
75405
|
return /* @__PURE__ */ jsx(Root2$6, { ...M, children: /* @__PURE__ */ jsxs(
|
|
75382
75406
|
SelectProvider,
|
|
75383
75407
|
{
|
|
@@ -75402,13 +75426,13 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
75402
75426
|
SelectNativeOptionsProvider,
|
|
75403
75427
|
{
|
|
75404
75428
|
scope: t.__scopeSelect,
|
|
75405
|
-
onNativeOptionAdd: React.useCallback((
|
|
75406
|
-
Ne((ze) => new Set(ze).add(
|
|
75429
|
+
onNativeOptionAdd: React.useCallback((je) => {
|
|
75430
|
+
Ne((ze) => new Set(ze).add(je));
|
|
75407
75431
|
}, []),
|
|
75408
|
-
onNativeOptionRemove: React.useCallback((
|
|
75432
|
+
onNativeOptionRemove: React.useCallback((je) => {
|
|
75409
75433
|
Ne((ze) => {
|
|
75410
75434
|
const Oe = new Set(ze);
|
|
75411
|
-
return Oe.delete(
|
|
75435
|
+
return Oe.delete(je), Oe;
|
|
75412
75436
|
});
|
|
75413
75437
|
}, []),
|
|
75414
75438
|
children: n
|
|
@@ -75423,7 +75447,7 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
75423
75447
|
name: _,
|
|
75424
75448
|
autoComplete: C,
|
|
75425
75449
|
value: oe,
|
|
75426
|
-
onChange: (
|
|
75450
|
+
onChange: (je) => ge(je.target.value),
|
|
75427
75451
|
disabled: E,
|
|
75428
75452
|
form: A,
|
|
75429
75453
|
children: [
|
|
@@ -75552,7 +75576,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
75552
75576
|
React.useEffect(() => {
|
|
75553
75577
|
if (z) return hideOthers(z);
|
|
75554
75578
|
}, [z]), useFocusGuards();
|
|
75555
|
-
const
|
|
75579
|
+
const je = React.useCallback(
|
|
75556
75580
|
(Xe) => {
|
|
75557
75581
|
const [ot, ...rt] = Ae().map((Ue) => Ue.ref.current), [at] = rt.slice(-1), st = document.activeElement;
|
|
75558
75582
|
for (const Ue of Xe)
|
|
@@ -75560,8 +75584,8 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
75560
75584
|
},
|
|
75561
75585
|
[Ae, j]
|
|
75562
75586
|
), ze = React.useCallback(
|
|
75563
|
-
() =>
|
|
75564
|
-
[
|
|
75587
|
+
() => je([ne, z]),
|
|
75588
|
+
[je, ne, z]
|
|
75565
75589
|
);
|
|
75566
75590
|
React.useEffect(() => {
|
|
75567
75591
|
$e && ze();
|
|
@@ -75681,7 +75705,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
75681
75705
|
const st = Xe.target, Ue = at.indexOf(st);
|
|
75682
75706
|
at = at.slice(Ue + 1);
|
|
75683
75707
|
}
|
|
75684
|
-
setTimeout(() =>
|
|
75708
|
+
setTimeout(() => je(at)), Xe.preventDefault();
|
|
75685
75709
|
}
|
|
75686
75710
|
})
|
|
75687
75711
|
}
|
|
@@ -75717,7 +75741,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
75717
75741
|
]);
|
|
75718
75742
|
g.style.minWidth = Je + "px", g.style.right = qt + "px";
|
|
75719
75743
|
}
|
|
75720
|
-
const se = E(), Ae = window.innerHeight - CONTENT_MARGIN * 2, $e = M.scrollHeight, Ne = window.getComputedStyle(S), Ve = parseInt(Ne.borderTopWidth, 10),
|
|
75744
|
+
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
75745
|
if (ot <= tt) {
|
|
75722
75746
|
const st = se.length > 0 && I === se[se.length - 1].ref.current;
|
|
75723
75747
|
g.style.bottom = "0px";
|
|
@@ -89807,11 +89831,11 @@ function requireWithSelector_development() {
|
|
|
89807
89831
|
}
|
|
89808
89832
|
return te = $e, $e;
|
|
89809
89833
|
}
|
|
89810
|
-
var Ve = F,
|
|
89834
|
+
var Ve = F, je = te;
|
|
89811
89835
|
if (o(Ve, Ae))
|
|
89812
|
-
return
|
|
89836
|
+
return je;
|
|
89813
89837
|
var ze = R(Ae);
|
|
89814
|
-
return A !== void 0 && A(
|
|
89838
|
+
return A !== void 0 && A(je, ze) ? je : (F = Ae, te = ze, ze);
|
|
89815
89839
|
}, oe = E === void 0 ? null : E, ge = function() {
|
|
89816
89840
|
return ne(C());
|
|
89817
89841
|
}, se = oe === null ? void 0 : function() {
|
|
@@ -92012,14 +92036,14 @@ function ProductOverviewPage({
|
|
|
92012
92036
|
skip: !g
|
|
92013
92037
|
}), [C, E] = useState("stats"), [R, A] = useState(!1);
|
|
92014
92038
|
useEffect(() => {
|
|
92015
|
-
var Ne, Ve,
|
|
92039
|
+
var Ne, Ve, je, ze, Oe, Le, qe, Ge;
|
|
92016
92040
|
if (_ || !S) {
|
|
92017
92041
|
A(!1);
|
|
92018
92042
|
return;
|
|
92019
92043
|
}
|
|
92020
92044
|
const Ae = {
|
|
92021
92045
|
stats: (((Ne = S == null ? void 0 : S.SalesStatistics) == null ? void 0 : Ne.length) ?? 0) <= 0,
|
|
92022
|
-
inventory: (((
|
|
92046
|
+
inventory: (((je = (Ve = S == null ? void 0 : S.Distribution) == null ? void 0 : Ve.Inventory) == null ? void 0 : je.length) ?? 0) <= 0,
|
|
92023
92047
|
opportunities: (((ze = S == null ? void 0 : S.Opportunities) == null ? void 0 : ze.length) ?? 0) <= 0,
|
|
92024
92048
|
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
92049
|
invoices: (((qe = S == null ? void 0 : S.CompletedOrderDetails) == null ? void 0 : qe.length) ?? 0) <= 0,
|
|
@@ -92397,11 +92421,11 @@ function OpportunitiesTable({
|
|
|
92397
92421
|
id: "actions",
|
|
92398
92422
|
header: "Actions",
|
|
92399
92423
|
cell: ({ row: ne }) => {
|
|
92400
|
-
var Ve,
|
|
92424
|
+
var Ve, je;
|
|
92401
92425
|
const oe = ne.original;
|
|
92402
92426
|
if (!oe.BidNumber)
|
|
92403
92427
|
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 && ((
|
|
92428
|
+
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
92429
|
return /* @__PURE__ */ jsxs("div", { className: "flex space-x-2", children: [
|
|
92406
92430
|
/* @__PURE__ */ jsx("a", { href: `/${t}/Opportunity/${oe.ManufacturerId}/${oe.BidNumber}`, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", className: "flex items-center", children: [
|
|
92407
92431
|
/* @__PURE__ */ jsx(Star, { className: "mr-2 h-4 w-4" }),
|