randmarcomps 1.403.0 → 1.405.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 +551 -551
- package/dist/randmarcomps.umd.cjs +41 -41
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -114,7 +114,7 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
|
114
114
|
document.removeEventListener("selectionchange", $t, { capture: !0 }), Wt.disconnect();
|
|
115
115
|
};
|
|
116
116
|
}, []);
|
|
117
|
-
let [
|
|
117
|
+
let [je, Be] = React.useState(!1), [Oe, He] = React.useState(!1), [We, Ue] = React.useState(null), [Ke, tt] = React.useState(null);
|
|
118
118
|
React.useEffect(() => {
|
|
119
119
|
ht(() => {
|
|
120
120
|
var et, Ct, $t, Ft;
|
|
@@ -169,7 +169,7 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
|
169
169
|
var $t;
|
|
170
170
|
let Ft = Oe && We !== null && Ke !== null && (We === Ke && Ct === We || Ct >= We && Ct < Ke), Wt = ae[Ct] !== void 0 ? ae[Ct] : null, Vt = ae[0] !== void 0 ? null : ($t = b == null ? void 0 : b[Ct]) != null ? $t : null;
|
|
171
171
|
return { char: Wt, placeholderChar: Vt, isActive: Ft, hasFakeCaret: Ft && Wt === null };
|
|
172
|
-
}), isFocused: Oe, isHovering: !V.disabled &&
|
|
172
|
+
}), isFocused: Oe, isHovering: !V.disabled && je }), [Oe, je, d, Ke, We, V.disabled, ae]), yt = React.useMemo(() => I ? I(ze) : React.createElement(jt.Provider, { value: ze }, M), [M, ze, I]);
|
|
173
173
|
return React.createElement(React.Fragment, null, A !== null && React.createElement("noscript", null, React.createElement("style", null, A)), React.createElement("div", { ref: ge, "data-input-otp-container": !0, style: Ze, className: R }, yt, React.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, lt)));
|
|
174
174
|
});
|
|
175
175
|
Lt.displayName = "Input";
|
|
@@ -1636,7 +1636,7 @@ const fromTheme = (t) => {
|
|
|
1636
1636
|
"left-bottom"
|
|
1637
1637
|
], O = () => [...Q(), isArbitraryVariable, isArbitraryValue], j = () => ["auto", "hidden", "clip", "visible", "scroll"], te = () => ["auto", "contain", "none"], ne = () => [isArbitraryVariable, isArbitraryValue, b], ae = () => [isFraction, "full", "auto", ...ne()], $e = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue], Ae = () => ["auto", {
|
|
1638
1638
|
span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
|
|
1639
|
-
}, isInteger, isArbitraryVariable, isArbitraryValue], oe = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], Ne = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue], ge = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Ve = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Fe = () => ["auto", ...ne()],
|
|
1639
|
+
}, isInteger, isArbitraryVariable, isArbitraryValue], oe = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], Ne = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue], ge = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Ve = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Fe = () => ["auto", ...ne()], je = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...ne()], Be = () => [t, isArbitraryVariable, isArbitraryValue], Oe = () => [...Q(), isArbitraryVariablePosition, isArbitraryPosition, {
|
|
1640
1640
|
position: [isArbitraryVariable, isArbitraryValue]
|
|
1641
1641
|
}], He = () => ["no-repeat", {
|
|
1642
1642
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -2281,14 +2281,14 @@ const fromTheme = (t) => {
|
|
|
2281
2281
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
2282
2282
|
*/
|
|
2283
2283
|
size: [{
|
|
2284
|
-
size:
|
|
2284
|
+
size: je()
|
|
2285
2285
|
}],
|
|
2286
2286
|
/**
|
|
2287
2287
|
* Width
|
|
2288
2288
|
* @see https://tailwindcss.com/docs/width
|
|
2289
2289
|
*/
|
|
2290
2290
|
w: [{
|
|
2291
|
-
w: [g, "screen", ...
|
|
2291
|
+
w: [g, "screen", ...je()]
|
|
2292
2292
|
}],
|
|
2293
2293
|
/**
|
|
2294
2294
|
* Min-Width
|
|
@@ -2300,7 +2300,7 @@ const fromTheme = (t) => {
|
|
|
2300
2300
|
"screen",
|
|
2301
2301
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2302
2302
|
"none",
|
|
2303
|
-
...
|
|
2303
|
+
...je()
|
|
2304
2304
|
]
|
|
2305
2305
|
}],
|
|
2306
2306
|
/**
|
|
@@ -2318,7 +2318,7 @@ const fromTheme = (t) => {
|
|
|
2318
2318
|
{
|
|
2319
2319
|
screen: [f]
|
|
2320
2320
|
},
|
|
2321
|
-
...
|
|
2321
|
+
...je()
|
|
2322
2322
|
]
|
|
2323
2323
|
}],
|
|
2324
2324
|
/**
|
|
@@ -2326,21 +2326,21 @@ const fromTheme = (t) => {
|
|
|
2326
2326
|
* @see https://tailwindcss.com/docs/height
|
|
2327
2327
|
*/
|
|
2328
2328
|
h: [{
|
|
2329
|
-
h: ["screen", "lh", ...
|
|
2329
|
+
h: ["screen", "lh", ...je()]
|
|
2330
2330
|
}],
|
|
2331
2331
|
/**
|
|
2332
2332
|
* Min-Height
|
|
2333
2333
|
* @see https://tailwindcss.com/docs/min-height
|
|
2334
2334
|
*/
|
|
2335
2335
|
"min-h": [{
|
|
2336
|
-
"min-h": ["screen", "lh", "none", ...
|
|
2336
|
+
"min-h": ["screen", "lh", "none", ...je()]
|
|
2337
2337
|
}],
|
|
2338
2338
|
/**
|
|
2339
2339
|
* Max-Height
|
|
2340
2340
|
* @see https://tailwindcss.com/docs/max-height
|
|
2341
2341
|
*/
|
|
2342
2342
|
"max-h": [{
|
|
2343
|
-
"max-h": ["screen", "lh", ...
|
|
2343
|
+
"max-h": ["screen", "lh", ...je()]
|
|
2344
2344
|
}],
|
|
2345
2345
|
// ------------------
|
|
2346
2346
|
// --- Typography ---
|
|
@@ -6335,14 +6335,14 @@ const arrow$4 = (t) => ({
|
|
|
6335
6335
|
}, R = getAlignmentAxis(l), A = getAxisLength(R), I = await f.getDimensions(S), M = R === "y", V = M ? "top" : "left", F = M ? "bottom" : "right", z = M ? "clientHeight" : "clientWidth", Q = d.reference[A] + d.reference[R] - E[R] - d.floating[A], O = E[R] - d.reference[R], j = await (f.getOffsetParent == null ? void 0 : f.getOffsetParent(S));
|
|
6336
6336
|
let te = j ? j[z] : 0;
|
|
6337
6337
|
(!te || !await (f.isElement == null ? void 0 : f.isElement(j))) && (te = g.floating[z] || d.floating[A]);
|
|
6338
|
-
const ne = Q / 2 - O / 2, ae = te / 2 - I[A] / 2 - 1, $e = min$4(C[V], ae), Ae = min$4(C[F], ae), oe = $e, Ne = te - I[A] - Ae, ge = te / 2 - I[A] / 2 + ne, Ve = clamp$1(oe, ge, Ne), Fe = !b.arrow && getAlignment(l) != null && ge !== Ve && d.reference[A] / 2 - (ge < oe ? $e : Ae) - I[A] / 2 < 0,
|
|
6338
|
+
const ne = Q / 2 - O / 2, ae = te / 2 - I[A] / 2 - 1, $e = min$4(C[V], ae), Ae = min$4(C[F], ae), oe = $e, Ne = te - I[A] - Ae, ge = te / 2 - I[A] / 2 + ne, Ve = clamp$1(oe, ge, Ne), Fe = !b.arrow && getAlignment(l) != null && ge !== Ve && d.reference[A] / 2 - (ge < oe ? $e : Ae) - I[A] / 2 < 0, je = Fe ? ge < oe ? ge - oe : ge - Ne : 0;
|
|
6339
6339
|
return {
|
|
6340
|
-
[R]: E[R] +
|
|
6340
|
+
[R]: E[R] + je,
|
|
6341
6341
|
data: {
|
|
6342
6342
|
[R]: Ve,
|
|
6343
|
-
centerOffset: ge - Ve -
|
|
6343
|
+
centerOffset: ge - Ve - je,
|
|
6344
6344
|
...Fe && {
|
|
6345
|
-
alignmentOffset:
|
|
6345
|
+
alignmentOffset: je
|
|
6346
6346
|
}
|
|
6347
6347
|
},
|
|
6348
6348
|
reset: Fe
|
|
@@ -6398,12 +6398,12 @@ const arrow$4 = (t) => ({
|
|
|
6398
6398
|
placement: Ve
|
|
6399
6399
|
}
|
|
6400
6400
|
};
|
|
6401
|
-
let Fe = (oe = $e.filter((
|
|
6401
|
+
let Fe = (oe = $e.filter((je) => je.overflows[0] <= 0).sort((je, Be) => je.overflows[1] - Be.overflows[1])[0]) == null ? void 0 : oe.placement;
|
|
6402
6402
|
if (!Fe)
|
|
6403
6403
|
switch (R) {
|
|
6404
6404
|
case "bestFit": {
|
|
6405
6405
|
var Ne;
|
|
6406
|
-
const
|
|
6406
|
+
const je = (Ne = $e.filter((Be) => {
|
|
6407
6407
|
if (j) {
|
|
6408
6408
|
const Oe = getSideAxis(Be.placement);
|
|
6409
6409
|
return Oe === F || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -6412,7 +6412,7 @@ const arrow$4 = (t) => ({
|
|
|
6412
6412
|
}
|
|
6413
6413
|
return !0;
|
|
6414
6414
|
}).map((Be) => [Be.placement, Be.overflows.filter((Oe) => Oe > 0).reduce((Oe, He) => Oe + He, 0)]).sort((Be, Oe) => Be[1] - Oe[1])[0]) == null ? void 0 : Ne[0];
|
|
6415
|
-
|
|
6415
|
+
je && (Fe = je);
|
|
6416
6416
|
break;
|
|
6417
6417
|
}
|
|
6418
6418
|
case "initialPlacement":
|
|
@@ -7289,7 +7289,7 @@ function useFloating(t) {
|
|
|
7289
7289
|
}), [F, z]), Fe = React.useMemo(() => ({
|
|
7290
7290
|
reference: Q,
|
|
7291
7291
|
floating: O
|
|
7292
|
-
}), [Q, O]),
|
|
7292
|
+
}), [Q, O]), je = React.useMemo(() => {
|
|
7293
7293
|
const Be = {
|
|
7294
7294
|
position: n,
|
|
7295
7295
|
left: 0,
|
|
@@ -7315,8 +7315,8 @@ function useFloating(t) {
|
|
|
7315
7315
|
update: Ne,
|
|
7316
7316
|
refs: Ve,
|
|
7317
7317
|
elements: Fe,
|
|
7318
|
-
floatingStyles:
|
|
7319
|
-
}), [_, Ne, Ve, Fe,
|
|
7318
|
+
floatingStyles: je
|
|
7319
|
+
}), [_, Ne, Ve, Fe, je]);
|
|
7320
7320
|
}
|
|
7321
7321
|
const arrow$1 = (t) => {
|
|
7322
7322
|
function e(n) {
|
|
@@ -7415,7 +7415,7 @@ var CONTENT_NAME$9 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
7415
7415
|
boundary: Ae.filter(isNotNull),
|
|
7416
7416
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
7417
7417
|
altBoundary: oe
|
|
7418
|
-
}, { refs: ge, floatingStyles: Ve, placement: Fe, isPositioned:
|
|
7418
|
+
}, { refs: ge, floatingStyles: Ve, placement: Fe, isPositioned: je, middlewareData: Be } = useFloating({
|
|
7419
7419
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
7420
7420
|
strategy: "fixed",
|
|
7421
7421
|
placement: ae,
|
|
@@ -7447,8 +7447,8 @@ var CONTENT_NAME$9 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
7447
7447
|
]
|
|
7448
7448
|
}), [Oe, He] = getSideAndAlignFromPlacement(Fe), We = useCallbackRef$1(A);
|
|
7449
7449
|
useLayoutEffect2(() => {
|
|
7450
|
-
|
|
7451
|
-
}, [
|
|
7450
|
+
je && (We == null || We());
|
|
7451
|
+
}, [je, We]);
|
|
7452
7452
|
const Ue = (Xe = Be.arrow) == null ? void 0 : Xe.x, Ke = (st = Be.arrow) == null ? void 0 : st.y, tt = ((Ze = Be.arrow) == null ? void 0 : Ze.centerOffset) !== 0, [Ge, Qe] = React.useState();
|
|
7453
7453
|
return useLayoutEffect2(() => {
|
|
7454
7454
|
V && Qe(window.getComputedStyle(V).zIndex);
|
|
@@ -7459,7 +7459,7 @@ var CONTENT_NAME$9 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
7459
7459
|
"data-radix-popper-content-wrapper": "",
|
|
7460
7460
|
style: {
|
|
7461
7461
|
...Ve,
|
|
7462
|
-
transform:
|
|
7462
|
+
transform: je ? Ve.transform : "translate(0, -200%)",
|
|
7463
7463
|
// keep off the page when measuring
|
|
7464
7464
|
minWidth: "max-content",
|
|
7465
7465
|
zIndex: Ge,
|
|
@@ -7496,7 +7496,7 @@ var CONTENT_NAME$9 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
7496
7496
|
...I.style,
|
|
7497
7497
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
7498
7498
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
7499
|
-
animation:
|
|
7499
|
+
animation: je ? void 0 : "none"
|
|
7500
7500
|
}
|
|
7501
7501
|
}
|
|
7502
7502
|
)
|
|
@@ -7689,7 +7689,7 @@ var CONTENT_NAME$8 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
7689
7689
|
onDismiss: R,
|
|
7690
7690
|
disableOutsideScroll: A,
|
|
7691
7691
|
...I
|
|
7692
|
-
} = t, M = useMenuContext(CONTENT_NAME$8, n), V = useMenuRootContext(CONTENT_NAME$8, n), F = usePopperScope$3(n), z = useRovingFocusGroupScope$1(n), Q = useCollection$3(n), [O, j] = React.useState(null), te = React.useRef(null), ne = useComposedRefs(e, te, M.onContentChange), ae = React.useRef(0), $e = React.useRef(""), Ae = React.useRef(0), oe = React.useRef(null), Ne = React.useRef("right"), ge = React.useRef(0), Ve = A ? ReactRemoveScroll : React.Fragment, Fe = A ? { as: Slot$2, allowPinchZoom: !0 } : void 0,
|
|
7692
|
+
} = t, M = useMenuContext(CONTENT_NAME$8, n), V = useMenuRootContext(CONTENT_NAME$8, n), F = usePopperScope$3(n), z = useRovingFocusGroupScope$1(n), Q = useCollection$3(n), [O, j] = React.useState(null), te = React.useRef(null), ne = useComposedRefs(e, te, M.onContentChange), ae = React.useRef(0), $e = React.useRef(""), Ae = React.useRef(0), oe = React.useRef(null), Ne = React.useRef("right"), ge = React.useRef(0), Ve = A ? ReactRemoveScroll : React.Fragment, Fe = A ? { as: Slot$2, allowPinchZoom: !0 } : void 0, je = (Oe) => {
|
|
7693
7693
|
var Xe, st;
|
|
7694
7694
|
const He = $e.current + Oe, We = Q().filter((Ze) => !Ze.disabled), Ue = document.activeElement, Ke = (Xe = We.find((Ze) => Ze.ref.current === Ue)) == null ? void 0 : Xe.textValue, tt = We.map((Ze) => Ze.textValue), Ge = getNextMatch(tt, He, Ke), Qe = (st = We.find((Ze) => Ze.textValue === Ge)) == null ? void 0 : st.ref.current;
|
|
7695
7695
|
(function Ze(at) {
|
|
@@ -7777,7 +7777,7 @@ var CONTENT_NAME$8 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
7777
7777
|
style: { outline: "none", ...I.style },
|
|
7778
7778
|
onKeyDown: composeEventHandlers(I.onKeyDown, (Oe) => {
|
|
7779
7779
|
const We = Oe.target.closest("[data-radix-menu-content]") === Oe.currentTarget, Ue = Oe.ctrlKey || Oe.altKey || Oe.metaKey, Ke = Oe.key.length === 1;
|
|
7780
|
-
We && (Oe.key === "Tab" && Oe.preventDefault(), !Ue && Ke &&
|
|
7780
|
+
We && (Oe.key === "Tab" && Oe.preventDefault(), !Ue && Ke && je(Oe.key));
|
|
7781
7781
|
const tt = te.current;
|
|
7782
7782
|
if (Oe.target !== tt || !FIRST_LAST_KEYS.includes(Oe.key)) return;
|
|
7783
7783
|
Oe.preventDefault();
|
|
@@ -11076,7 +11076,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
11076
11076
|
endpointDefinition: j,
|
|
11077
11077
|
endpointName: O
|
|
11078
11078
|
});
|
|
11079
|
-
let
|
|
11079
|
+
let je;
|
|
11080
11080
|
const Be = {
|
|
11081
11081
|
...Ne,
|
|
11082
11082
|
type: "query",
|
|
@@ -11089,13 +11089,13 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
11089
11089
|
[forceQueryFnSymbol]: oe
|
|
11090
11090
|
};
|
|
11091
11091
|
if (isQueryDefinition$1(j))
|
|
11092
|
-
|
|
11092
|
+
je = e(Be);
|
|
11093
11093
|
else {
|
|
11094
11094
|
const {
|
|
11095
11095
|
direction: Ze,
|
|
11096
11096
|
initialPageParam: at
|
|
11097
11097
|
} = Ne;
|
|
11098
|
-
|
|
11098
|
+
je = n({
|
|
11099
11099
|
...Be,
|
|
11100
11100
|
// Supply these even if undefined. This helps with a field existence
|
|
11101
11101
|
// check over in `buildSlice.ts`
|
|
@@ -11103,7 +11103,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
11103
11103
|
initialPageParam: at
|
|
11104
11104
|
});
|
|
11105
11105
|
}
|
|
11106
|
-
const Oe = l.endpoints[O].select(ne), He = ge(
|
|
11106
|
+
const Oe = l.endpoints[O].select(ne), He = ge(je), We = Oe(Ve());
|
|
11107
11107
|
M(ge);
|
|
11108
11108
|
const {
|
|
11109
11109
|
requestId: Ue,
|
|
@@ -11188,7 +11188,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
11188
11188
|
data: He
|
|
11189
11189
|
})), (He) => ({
|
|
11190
11190
|
error: He
|
|
11191
|
-
})),
|
|
11191
|
+
})), je = () => {
|
|
11192
11192
|
ae(_({
|
|
11193
11193
|
requestId: Ne,
|
|
11194
11194
|
fixedCacheKey: ne
|
|
@@ -11198,7 +11198,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
11198
11198
|
requestId: Ne,
|
|
11199
11199
|
abort: ge,
|
|
11200
11200
|
unwrap: Ve,
|
|
11201
|
-
reset:
|
|
11201
|
+
reset: je
|
|
11202
11202
|
}), Oe = b.get(ae) || {};
|
|
11203
11203
|
return b.set(ae, Oe), Oe[Ne] = Be, Be.then(() => {
|
|
11204
11204
|
delete Oe[Ne], countObjectKeys$1(Oe) || b.delete(ae);
|
|
@@ -11241,9 +11241,9 @@ function buildThunks({
|
|
|
11241
11241
|
skipSchemaValidation: S
|
|
11242
11242
|
}) {
|
|
11243
11243
|
const _ = (Ae, oe, Ne, ge) => (Ve, Fe) => {
|
|
11244
|
-
const
|
|
11244
|
+
const je = n[Ae], Be = o({
|
|
11245
11245
|
queryArgs: oe,
|
|
11246
|
-
endpointDefinition:
|
|
11246
|
+
endpointDefinition: je,
|
|
11247
11247
|
endpointName: Ae
|
|
11248
11248
|
});
|
|
11249
11249
|
if (Ve(l.internalActions.queryResultPatched({
|
|
@@ -11254,7 +11254,7 @@ function buildThunks({
|
|
|
11254
11254
|
const Oe = l.endpoints[Ae].select(oe)(
|
|
11255
11255
|
// Work around TS 4.1 mismatch
|
|
11256
11256
|
Fe()
|
|
11257
|
-
), He = calculateProvidedBy(
|
|
11257
|
+
), He = calculateProvidedBy(je.providesTags, Oe.data, void 0, oe, {}, d);
|
|
11258
11258
|
Ve(l.internalActions.updateProvidedBy([{
|
|
11259
11259
|
queryCacheKey: Be,
|
|
11260
11260
|
providedTags: He
|
|
@@ -11307,7 +11307,7 @@ function buildThunks({
|
|
|
11307
11307
|
rejectWithValue: ge,
|
|
11308
11308
|
fulfillWithValue: Ve,
|
|
11309
11309
|
dispatch: Fe,
|
|
11310
|
-
getState:
|
|
11310
|
+
getState: je,
|
|
11311
11311
|
extra: Be
|
|
11312
11312
|
}) => {
|
|
11313
11313
|
var Ue, Ke;
|
|
@@ -11321,11 +11321,11 @@ function buildThunks({
|
|
|
11321
11321
|
signal: oe,
|
|
11322
11322
|
abort: Ne,
|
|
11323
11323
|
dispatch: Fe,
|
|
11324
|
-
getState:
|
|
11324
|
+
getState: je,
|
|
11325
11325
|
extra: Be,
|
|
11326
11326
|
endpoint: Ae.endpointName,
|
|
11327
11327
|
type: Ae.type,
|
|
11328
|
-
forced: Ae.type === "query" ? V(Ae,
|
|
11328
|
+
forced: Ae.type === "query" ? V(Ae, je()) : void 0,
|
|
11329
11329
|
queryCacheKey: Ae.type === "query" ? Ae.queryCacheKey : void 0
|
|
11330
11330
|
}, Qe = Ae.type === "query" ? Ae[forceQueryFnSymbol] : void 0;
|
|
11331
11331
|
let Xe;
|
|
@@ -11403,7 +11403,7 @@ function buildThunks({
|
|
|
11403
11403
|
const yt = {
|
|
11404
11404
|
pages: [],
|
|
11405
11405
|
pageParams: []
|
|
11406
|
-
}, et = (Ue = f.selectQueryEntry(
|
|
11406
|
+
}, et = (Ue = f.selectQueryEntry(je(), Ae.queryCacheKey)) == null ? void 0 : Ue.data, $t = /* arg.forceRefetch */ V(Ae, je()) && !Ae.direction || !et ? yt : et;
|
|
11407
11407
|
if ("direction" in Ae && Ae.direction && $t.pages.length) {
|
|
11408
11408
|
const Ft = Ae.direction === "backward", Vt = (Ft ? getPreviousPageParam : getNextPageParam)(at, $t, Ae.originalArgs);
|
|
11409
11409
|
ze = await st($t, Vt, lt, Ft);
|
|
@@ -11492,9 +11492,9 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
11492
11492
|
getState: Ne
|
|
11493
11493
|
}) {
|
|
11494
11494
|
var We;
|
|
11495
|
-
const ge = Ne(), Ve = f.selectQueryEntry(ge, oe.queryCacheKey), Fe = Ve == null ? void 0 : Ve.fulfilledTimeStamp,
|
|
11495
|
+
const ge = Ne(), Ve = f.selectQueryEntry(ge, oe.queryCacheKey), Fe = Ve == null ? void 0 : Ve.fulfilledTimeStamp, je = oe.originalArgs, Be = Ve == null ? void 0 : Ve.originalArgs, Oe = n[oe.endpointName], He = oe.direction;
|
|
11496
11496
|
return isUpsertQuery(oe) ? !0 : (Ve == null ? void 0 : Ve.status) === "pending" ? !1 : V(oe, ge) || isQueryDefinition$1(Oe) && ((We = Oe == null ? void 0 : Oe.forceRefetch) != null && We.call(Oe, {
|
|
11497
|
-
currentArg:
|
|
11497
|
+
currentArg: je,
|
|
11498
11498
|
previousArg: Be,
|
|
11499
11499
|
endpointState: Ve,
|
|
11500
11500
|
state: ge
|
|
@@ -11508,7 +11508,7 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
11508
11508
|
});
|
|
11509
11509
|
}
|
|
11510
11510
|
}), j = (Ae) => "force" in Ae, te = (Ae) => "ifOlderThan" in Ae, ne = (Ae, oe, Ne) => (ge, Ve) => {
|
|
11511
|
-
const Fe = j(Ne) && Ne.force,
|
|
11511
|
+
const Fe = j(Ne) && Ne.force, je = te(Ne) && Ne.ifOlderThan, Be = (He = !0) => {
|
|
11512
11512
|
const We = {
|
|
11513
11513
|
forceRefetch: He,
|
|
11514
11514
|
isPrefetch: !0
|
|
@@ -11517,13 +11517,13 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
11517
11517
|
}, Oe = l.endpoints[Ae].select(oe)(Ve());
|
|
11518
11518
|
if (Fe)
|
|
11519
11519
|
ge(Be());
|
|
11520
|
-
else if (
|
|
11520
|
+
else if (je) {
|
|
11521
11521
|
const He = Oe == null ? void 0 : Oe.fulfilledTimeStamp;
|
|
11522
11522
|
if (!He) {
|
|
11523
11523
|
ge(Be());
|
|
11524
11524
|
return;
|
|
11525
11525
|
}
|
|
11526
|
-
(Number(/* @__PURE__ */ new Date()) - Number(new Date(He))) / 1e3 >=
|
|
11526
|
+
(Number(/* @__PURE__ */ new Date()) - Number(new Date(He))) / 1e3 >= je && ge(Be());
|
|
11527
11527
|
} else
|
|
11528
11528
|
ge(Be(!1));
|
|
11529
11529
|
};
|
|
@@ -11623,12 +11623,12 @@ function buildSlice({
|
|
|
11623
11623
|
const {
|
|
11624
11624
|
fulfilledTimeStamp: Ve,
|
|
11625
11625
|
arg: Fe,
|
|
11626
|
-
baseQueryMeta:
|
|
11626
|
+
baseQueryMeta: je,
|
|
11627
11627
|
requestId: Be
|
|
11628
11628
|
} = $e;
|
|
11629
11629
|
let Oe = produce(Ne.data, (He) => ge(He, Ae, {
|
|
11630
11630
|
arg: Fe.originalArgs,
|
|
11631
|
-
baseQueryMeta:
|
|
11631
|
+
baseQueryMeta: je,
|
|
11632
11632
|
fulfilledTimeStamp: Ve,
|
|
11633
11633
|
requestId: Be
|
|
11634
11634
|
}));
|
|
@@ -11831,9 +11831,9 @@ function buildSlice({
|
|
|
11831
11831
|
V(ae, ge);
|
|
11832
11832
|
for (const {
|
|
11833
11833
|
type: Fe,
|
|
11834
|
-
id:
|
|
11834
|
+
id: je
|
|
11835
11835
|
} of Ve) {
|
|
11836
|
-
const Be = (oe = (Ae = ae.tags)[Fe] ?? (Ae[Fe] = {}))[Ne =
|
|
11836
|
+
const Be = (oe = (Ae = ae.tags)[Fe] ?? (Ae[Fe] = {}))[Ne = je || "__internal_without_id"] ?? (oe[Ne] = []);
|
|
11837
11837
|
Be.includes(ge) || Be.push(ge);
|
|
11838
11838
|
}
|
|
11839
11839
|
ae.keys[ge] = Ve;
|
|
@@ -11854,8 +11854,8 @@ function buildSlice({
|
|
|
11854
11854
|
const {
|
|
11855
11855
|
provided: oe
|
|
11856
11856
|
} = f(Ae);
|
|
11857
|
-
for (const [Fe,
|
|
11858
|
-
for (const [Be, Oe] of Object.entries(
|
|
11857
|
+
for (const [Fe, je] of Object.entries(oe.tags ?? {}))
|
|
11858
|
+
for (const [Be, Oe] of Object.entries(je)) {
|
|
11859
11859
|
const He = (ge = (Ne = $e.tags)[Fe] ?? (Ne[Fe] = {}))[Ve = Be || "__internal_without_id"] ?? (ge[Ve] = []);
|
|
11860
11860
|
for (const We of Oe)
|
|
11861
11861
|
He.includes(We) || He.push(We), $e.keys[We] = oe.keys[We];
|
|
@@ -11884,7 +11884,7 @@ function buildSlice({
|
|
|
11884
11884
|
const Ae = ae.keys[$e] ?? [];
|
|
11885
11885
|
for (const Ne of Ae) {
|
|
11886
11886
|
const ge = Ne.type, Ve = Ne.id ?? "__internal_without_id", Fe = (oe = ae.tags[ge]) == null ? void 0 : oe[Ve];
|
|
11887
|
-
Fe && (ae.tags[ge][Ve] = Fe.filter((
|
|
11887
|
+
Fe && (ae.tags[ge][Ve] = Fe.filter((je) => je !== $e));
|
|
11888
11888
|
}
|
|
11889
11889
|
delete ae.keys[$e];
|
|
11890
11890
|
}
|
|
@@ -12469,7 +12469,7 @@ var buildBatchedActionsHandler = ({
|
|
|
12469
12469
|
})]);
|
|
12470
12470
|
$e.catch(() => {
|
|
12471
12471
|
}), C[z] = ne;
|
|
12472
|
-
const Ae = t.endpoints[V].select(isAnyQueryDefinition(j) ? F : z), oe = Q.dispatch((Ve, Fe,
|
|
12472
|
+
const Ae = t.endpoints[V].select(isAnyQueryDefinition(j) ? F : z), oe = Q.dispatch((Ve, Fe, je) => je), Ne = {
|
|
12473
12473
|
...Q,
|
|
12474
12474
|
getCacheEntry: () => Ae(Q.getState()),
|
|
12475
12475
|
requestId: O,
|
|
@@ -12860,7 +12860,7 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
12860
12860
|
runningQueries: /* @__PURE__ */ new Map(),
|
|
12861
12861
|
runningMutations: /* @__PURE__ */ new Map()
|
|
12862
12862
|
}, {
|
|
12863
|
-
buildInitiateQuery:
|
|
12863
|
+
buildInitiateQuery: je,
|
|
12864
12864
|
buildInitiateInfiniteQuery: Be,
|
|
12865
12865
|
buildInitiateMutation: Oe,
|
|
12866
12866
|
getRunningMutationThunk: He,
|
|
@@ -12908,7 +12908,7 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
12908
12908
|
isQueryDefinition$1(Xe) && safeAssign$1(Ze, {
|
|
12909
12909
|
name: Qe,
|
|
12910
12910
|
select: z(Qe, Xe),
|
|
12911
|
-
initiate:
|
|
12911
|
+
initiate: je(Qe, Xe)
|
|
12912
12912
|
}, Ne(j, Qe)), isMutationDefinition$1(Xe) && safeAssign$1(Ze, {
|
|
12913
12913
|
name: Qe,
|
|
12914
12914
|
select: O(),
|
|
@@ -13365,7 +13365,7 @@ function buildHooks({
|
|
|
13365
13365
|
You must add the middleware for RTK-Query to function correctly!`);
|
|
13366
13366
|
Ve.current = Ge;
|
|
13367
13367
|
}
|
|
13368
|
-
const Fe = useStableQueryArgs(ae ? skipToken : O),
|
|
13368
|
+
const Fe = useStableQueryArgs(ae ? skipToken : O), je = useShallowStableValue({
|
|
13369
13369
|
refetchOnReconnect: j,
|
|
13370
13370
|
refetchOnFocus: te,
|
|
13371
13371
|
pollingInterval: $e,
|
|
@@ -13390,15 +13390,15 @@ function buildHooks({
|
|
|
13390
13390
|
if (!Ge || Ge.arg !== Fe) {
|
|
13391
13391
|
Ge == null || Ge.unsubscribe();
|
|
13392
13392
|
const st = ge(Ne(Fe, {
|
|
13393
|
-
subscriptionOptions:
|
|
13393
|
+
subscriptionOptions: je,
|
|
13394
13394
|
forceRefetch: ne,
|
|
13395
13395
|
...isInfiniteQueryDefinition(b.endpointDefinitions[Q]) ? {
|
|
13396
13396
|
initialPageParam: Oe
|
|
13397
13397
|
} : {}
|
|
13398
13398
|
}));
|
|
13399
13399
|
He.current = st;
|
|
13400
|
-
} else
|
|
13401
|
-
}, [ge, Ne, ne, Fe,
|
|
13400
|
+
} else je !== Qe && Ge.updateSubscriptionOptions(je);
|
|
13401
|
+
}, [ge, Ne, ne, Fe, je, tt, Oe, Q]), [He, ge, Ne, je];
|
|
13402
13402
|
}
|
|
13403
13403
|
function A(Q, O) {
|
|
13404
13404
|
return (te, {
|
|
@@ -13426,10 +13426,10 @@ function buildHooks({
|
|
|
13426
13426
|
devModeChecks: {
|
|
13427
13427
|
identityFunctionCheck: "never"
|
|
13428
13428
|
}
|
|
13429
|
-
}) : Ne, [Ne, ae]), Ve = o((Be) => ge(Be, oe.current), shallowEqual$1), Fe = l(),
|
|
13429
|
+
}) : Ne, [Ne, ae]), Ve = o((Be) => ge(Be, oe.current), shallowEqual$1), Fe = l(), je = Ne(Fe.getState(), oe.current);
|
|
13430
13430
|
return useIsomorphicLayoutEffect$2(() => {
|
|
13431
|
-
oe.current =
|
|
13432
|
-
}, [
|
|
13431
|
+
oe.current = je;
|
|
13432
|
+
}, [je]), Ve;
|
|
13433
13433
|
};
|
|
13434
13434
|
}
|
|
13435
13435
|
function I(Q) {
|
|
@@ -13459,7 +13459,7 @@ function buildHooks({
|
|
|
13459
13459
|
} = {}) => {
|
|
13460
13460
|
const {
|
|
13461
13461
|
initiate: oe
|
|
13462
|
-
} = t.endpoints[Q], Ne = n(), [ge, Ve] = useState(UNINITIALIZED_VALUE), Fe = useRef(void 0),
|
|
13462
|
+
} = t.endpoints[Q], Ne = n(), [ge, Ve] = useState(UNINITIALIZED_VALUE), Fe = useRef(void 0), je = useShallowStableValue({
|
|
13463
13463
|
refetchOnReconnect: ne,
|
|
13464
13464
|
refetchOnFocus: ae,
|
|
13465
13465
|
pollingInterval: $e,
|
|
@@ -13468,12 +13468,12 @@ function buildHooks({
|
|
|
13468
13468
|
S(() => {
|
|
13469
13469
|
var Ue, Ke;
|
|
13470
13470
|
const We = (Ue = Fe.current) == null ? void 0 : Ue.subscriptionOptions;
|
|
13471
|
-
|
|
13472
|
-
}, [
|
|
13473
|
-
const Be = useRef(
|
|
13471
|
+
je !== We && ((Ke = Fe.current) == null || Ke.updateSubscriptionOptions(je));
|
|
13472
|
+
}, [je]);
|
|
13473
|
+
const Be = useRef(je);
|
|
13474
13474
|
S(() => {
|
|
13475
|
-
Be.current =
|
|
13476
|
-
}, [
|
|
13475
|
+
Be.current = je;
|
|
13476
|
+
}, [je]);
|
|
13477
13477
|
const Oe = useCallback(function(We, Ue = !1) {
|
|
13478
13478
|
let Ke;
|
|
13479
13479
|
return e(() => {
|
|
@@ -13534,11 +13534,11 @@ function buildHooks({
|
|
|
13534
13534
|
S(() => {
|
|
13535
13535
|
Ne.current = oe;
|
|
13536
13536
|
}, [oe]);
|
|
13537
|
-
const ge = useCallback(function(
|
|
13537
|
+
const ge = useCallback(function(je, Be) {
|
|
13538
13538
|
let Oe;
|
|
13539
13539
|
return e(() => {
|
|
13540
13540
|
var He;
|
|
13541
|
-
(He = ae.current) == null || He.unsubscribe(), ae.current = Oe = $e(Ae(
|
|
13541
|
+
(He = ae.current) == null || He.unsubscribe(), ae.current = Oe = $e(Ae(je, {
|
|
13542
13542
|
subscriptionOptions: Ne.current,
|
|
13543
13543
|
direction: Be
|
|
13544
13544
|
}));
|
|
@@ -13599,7 +13599,7 @@ function buildHooks({
|
|
|
13599
13599
|
} = $e || {}, ge = useMemo(() => te({
|
|
13600
13600
|
fixedCacheKey: j,
|
|
13601
13601
|
requestId: $e == null ? void 0 : $e.requestId
|
|
13602
|
-
}), [j, $e, te]), Ve = useMemo(() => O ? f([ge], O) : ge, [O, ge]), Fe = o(Ve, shallowEqual$1),
|
|
13602
|
+
}), [j, $e, te]), Ve = useMemo(() => O ? f([ge], O) : ge, [O, ge]), Fe = o(Ve, shallowEqual$1), je = j == null ? $e == null ? void 0 : $e.arg.originalArgs : void 0, Be = useCallback(() => {
|
|
13603
13603
|
e(() => {
|
|
13604
13604
|
$e && Ae(void 0), j && ae(t.internalActions.removeMutationResult({
|
|
13605
13605
|
requestId: Ne,
|
|
@@ -13610,9 +13610,9 @@ function buildHooks({
|
|
|
13610
13610
|
useDebugValue(Oe);
|
|
13611
13611
|
const He = useMemo(() => ({
|
|
13612
13612
|
...Fe,
|
|
13613
|
-
originalArgs:
|
|
13613
|
+
originalArgs: je,
|
|
13614
13614
|
reset: Be
|
|
13615
|
-
}), [Fe,
|
|
13615
|
+
}), [Fe, je, Be]);
|
|
13616
13616
|
return useMemo(() => [oe, He], [oe, He]);
|
|
13617
13617
|
};
|
|
13618
13618
|
}
|
|
@@ -17302,8 +17302,8 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
17302
17302
|
const Ve = () => {
|
|
17303
17303
|
oe(te.current), S == null || S();
|
|
17304
17304
|
}, Fe = () => {
|
|
17305
|
-
const
|
|
17306
|
-
te.current = te.current -
|
|
17305
|
+
const je = (/* @__PURE__ */ new Date()).getTime() - j.current;
|
|
17306
|
+
te.current = te.current - je, window.clearTimeout(ne.current), b == null || b();
|
|
17307
17307
|
};
|
|
17308
17308
|
return ge.addEventListener(VIEWPORT_PAUSE, Fe), ge.addEventListener(VIEWPORT_RESUME, Ve), () => {
|
|
17309
17309
|
ge.removeEventListener(VIEWPORT_PAUSE, Fe), ge.removeEventListener(VIEWPORT_RESUME, Ve);
|
|
@@ -17348,8 +17348,8 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
17348
17348
|
}),
|
|
17349
17349
|
onPointerMove: composeEventHandlers(t.onPointerMove, (ge) => {
|
|
17350
17350
|
if (!z.current) return;
|
|
17351
|
-
const Ve = ge.clientX - z.current.x, Fe = ge.clientY - z.current.y,
|
|
17352
|
-
|
|
17351
|
+
const Ve = ge.clientX - z.current.x, Fe = ge.clientY - z.current.y, je = !!Q.current, Be = ["left", "right"].includes(I.swipeDirection), Oe = ["left", "up"].includes(I.swipeDirection) ? Math.min : Math.max, He = Be ? Oe(0, Ve) : 0, We = Be ? 0 : Oe(0, Fe), Ue = ge.pointerType === "touch" ? 10 : 2, Ke = { x: He, y: We }, tt = { originalEvent: ge, delta: Ke };
|
|
17352
|
+
je ? (Q.current = Ke, handleAndDispatchCustomEvent(TOAST_SWIPE_MOVE, C, tt, {
|
|
17353
17353
|
discrete: !1
|
|
17354
17354
|
})) : isDeltaInDirection(Ke, I.swipeDirection, Ue) ? (Q.current = Ke, handleAndDispatchCustomEvent(TOAST_SWIPE_START, _, tt, {
|
|
17355
17355
|
discrete: !1
|
|
@@ -17358,7 +17358,7 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
17358
17358
|
onPointerUp: composeEventHandlers(t.onPointerUp, (ge) => {
|
|
17359
17359
|
const Ve = Q.current, Fe = ge.target;
|
|
17360
17360
|
if (Fe.hasPointerCapture(ge.pointerId) && Fe.releasePointerCapture(ge.pointerId), Q.current = null, z.current = null, Ve) {
|
|
17361
|
-
const
|
|
17361
|
+
const je = ge.currentTarget, Be = { originalEvent: ge, delta: Ve };
|
|
17362
17362
|
isDeltaInDirection(Ve, I.swipeDirection, I.swipeThreshold) ? handleAndDispatchCustomEvent(TOAST_SWIPE_END, R, Be, {
|
|
17363
17363
|
discrete: !0
|
|
17364
17364
|
}) : handleAndDispatchCustomEvent(
|
|
@@ -17368,7 +17368,7 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
17368
17368
|
{
|
|
17369
17369
|
discrete: !0
|
|
17370
17370
|
}
|
|
17371
|
-
),
|
|
17371
|
+
), je.addEventListener("click", (Oe) => Oe.preventDefault(), {
|
|
17372
17372
|
once: !0
|
|
17373
17373
|
});
|
|
17374
17374
|
}
|
|
@@ -18587,7 +18587,7 @@ function requireReactIs_development$2() {
|
|
|
18587
18587
|
}
|
|
18588
18588
|
}
|
|
18589
18589
|
}
|
|
18590
|
-
var j = f, te = d, ne = t, ae = b, $e = n, Ae = E, oe = C, Ne = e, ge = l, Ve = o, Fe = S,
|
|
18590
|
+
var j = f, te = d, ne = t, ae = b, $e = n, Ae = E, oe = C, Ne = e, ge = l, Ve = o, Fe = S, je = _, Be = !1, Oe = !1;
|
|
18591
18591
|
function He(et) {
|
|
18592
18592
|
return Be || (Be = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
18593
18593
|
}
|
|
@@ -18630,7 +18630,7 @@ function requireReactIs_development$2() {
|
|
|
18630
18630
|
function yt(et) {
|
|
18631
18631
|
return O(et) === _;
|
|
18632
18632
|
}
|
|
18633
|
-
reactIs_development$2.ContextConsumer = j, reactIs_development$2.ContextProvider = te, reactIs_development$2.Element = ne, reactIs_development$2.ForwardRef = ae, reactIs_development$2.Fragment = $e, reactIs_development$2.Lazy = Ae, reactIs_development$2.Memo = oe, reactIs_development$2.Portal = Ne, reactIs_development$2.Profiler = ge, reactIs_development$2.StrictMode = Ve, reactIs_development$2.Suspense = Fe, reactIs_development$2.SuspenseList =
|
|
18633
|
+
reactIs_development$2.ContextConsumer = j, reactIs_development$2.ContextProvider = te, reactIs_development$2.Element = ne, reactIs_development$2.ForwardRef = ae, reactIs_development$2.Fragment = $e, reactIs_development$2.Lazy = Ae, reactIs_development$2.Memo = oe, reactIs_development$2.Portal = Ne, reactIs_development$2.Profiler = ge, reactIs_development$2.StrictMode = Ve, reactIs_development$2.Suspense = Fe, reactIs_development$2.SuspenseList = je, reactIs_development$2.isAsyncMode = He, reactIs_development$2.isConcurrentMode = We, reactIs_development$2.isContextConsumer = Ue, reactIs_development$2.isContextProvider = Ke, reactIs_development$2.isElement = tt, reactIs_development$2.isForwardRef = Ge, reactIs_development$2.isFragment = Qe, reactIs_development$2.isLazy = Xe, reactIs_development$2.isMemo = st, reactIs_development$2.isPortal = Ze, reactIs_development$2.isProfiler = at, reactIs_development$2.isStrictMode = lt, reactIs_development$2.isSuspense = ze, reactIs_development$2.isSuspenseList = yt, reactIs_development$2.isValidElementType = Q, reactIs_development$2.typeOf = O;
|
|
18634
18634
|
})()), reactIs_development$2;
|
|
18635
18635
|
}
|
|
18636
18636
|
var hasRequiredReactIs$2;
|
|
@@ -22037,9 +22037,9 @@ var DefaultTooltipContent = function(e) {
|
|
|
22037
22037
|
paddingTop: 4,
|
|
22038
22038
|
paddingBottom: 4,
|
|
22039
22039
|
color: ge.color || "#000"
|
|
22040
|
-
}, g),
|
|
22041
|
-
if (
|
|
22042
|
-
var Ue =
|
|
22040
|
+
}, g), je = ge.formatter || C || defaultFormatter, Be = ge.value, Oe = ge.name, He = Be, We = Oe;
|
|
22041
|
+
if (je && He != null && We != null) {
|
|
22042
|
+
var Ue = je(Be, Oe, ge, Ve, _);
|
|
22043
22043
|
if (Array.isArray(Ue)) {
|
|
22044
22044
|
var Ke = _slicedToArray$b(Ue, 2);
|
|
22045
22045
|
He = Ke[0], We = Ke[1];
|
|
@@ -22784,10 +22784,10 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
|
|
|
22784
22784
|
containerHeight: l.height
|
|
22785
22785
|
}), ne = _slicedToArray$a(te, 2), ae = ne[0], $e = ne[1], Ae = useCallback(function(Ne, ge) {
|
|
22786
22786
|
$e(function(Ve) {
|
|
22787
|
-
var Fe = Math.round(Ne),
|
|
22788
|
-
return Ve.containerWidth === Fe && Ve.containerHeight ===
|
|
22787
|
+
var Fe = Math.round(Ne), je = Math.round(ge);
|
|
22788
|
+
return Ve.containerWidth === Fe && Ve.containerHeight === je ? Ve : {
|
|
22789
22789
|
containerWidth: Fe,
|
|
22790
|
-
containerHeight:
|
|
22790
|
+
containerHeight: je
|
|
22791
22791
|
};
|
|
22792
22792
|
});
|
|
22793
22793
|
}, []);
|
|
@@ -22800,8 +22800,8 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
|
|
|
22800
22800
|
trailing: !0,
|
|
22801
22801
|
leading: !1
|
|
22802
22802
|
}));
|
|
22803
|
-
var ge = new ResizeObserver(Ne), Ve = O.current.getBoundingClientRect(), Fe = Ve.width,
|
|
22804
|
-
return Ae(Fe,
|
|
22803
|
+
var ge = new ResizeObserver(Ne), Ve = O.current.getBoundingClientRect(), Fe = Ve.width, je = Ve.height;
|
|
22804
|
+
return Ae(Fe, je), ge.observe(O.current), function() {
|
|
22805
22805
|
ge.disconnect();
|
|
22806
22806
|
};
|
|
22807
22807
|
}, [Ae, I]);
|
|
@@ -22816,12 +22816,12 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
|
|
|
22816
22816
|
please check the style of container, or the props width(%s) and height(%s),
|
|
22817
22817
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
22818
22818
|
height and width.`, Ve, Fe, f, b, _, C, n);
|
|
22819
|
-
var
|
|
22819
|
+
var je = !Array.isArray(R) && getDisplayName(R.type).endsWith("Chart");
|
|
22820
22820
|
return React__default.Children.map(R, function(Be) {
|
|
22821
22821
|
return /* @__PURE__ */ React__default.isValidElement(Be) ? /* @__PURE__ */ cloneElement(Be, _objectSpread$t({
|
|
22822
22822
|
width: Ve,
|
|
22823
22823
|
height: Fe
|
|
22824
|
-
},
|
|
22824
|
+
}, je ? {
|
|
22825
22825
|
style: _objectSpread$t({
|
|
22826
22826
|
height: "100%",
|
|
22827
22827
|
width: "100%",
|
|
@@ -23215,8 +23215,8 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
23215
23215
|
}, calculateWordsByLines = function(e, n, o, l, d) {
|
|
23216
23216
|
var f = e.maxLines, g = e.children, b = e.style, S = e.breakAll, _ = isNumber$2(f), C = g, E = function() {
|
|
23217
23217
|
var Ve = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
23218
|
-
return Ve.reduce(function(Fe,
|
|
23219
|
-
var Be =
|
|
23218
|
+
return Ve.reduce(function(Fe, je) {
|
|
23219
|
+
var Be = je.word, Oe = je.width, He = Fe[Fe.length - 1];
|
|
23220
23220
|
if (He && (l == null || d || He.width + Oe + o < Number(l)))
|
|
23221
23221
|
He.words.push(Be), He.width += Oe + o;
|
|
23222
23222
|
else {
|
|
@@ -23229,18 +23229,18 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
23229
23229
|
return Fe;
|
|
23230
23230
|
}, []);
|
|
23231
23231
|
}, R = E(n), A = function(Ve) {
|
|
23232
|
-
return Ve.reduce(function(Fe,
|
|
23233
|
-
return Fe.width >
|
|
23232
|
+
return Ve.reduce(function(Fe, je) {
|
|
23233
|
+
return Fe.width > je.width ? Fe : je;
|
|
23234
23234
|
});
|
|
23235
23235
|
};
|
|
23236
23236
|
if (!_)
|
|
23237
23237
|
return R;
|
|
23238
23238
|
for (var I = "…", M = function(Ve) {
|
|
23239
|
-
var Fe = C.slice(0, Ve),
|
|
23239
|
+
var Fe = C.slice(0, Ve), je = calculateWordWidths({
|
|
23240
23240
|
breakAll: S,
|
|
23241
23241
|
style: b,
|
|
23242
23242
|
children: Fe + I
|
|
23243
|
-
}).wordsWithComputedWidth, Be = E(
|
|
23243
|
+
}).wordsWithComputedWidth, Be = E(je), Oe = Be.length > f || A(Be).width > Number(l);
|
|
23244
23244
|
return [Oe, Be];
|
|
23245
23245
|
}, V = 0, F = C.length - 1, z = 0, Q; V <= F && z <= C.length - 1; ) {
|
|
23246
23246
|
var O = Math.floor((V + F) / 2), j = O - 1, te = M(j), ne = _slicedToArray$8(te, 2), ae = ne[0], $e = ne[1], Ae = M(O), oe = _slicedToArray$8(Ae, 1), Ne = oe[0];
|
|
@@ -23313,15 +23313,15 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
23313
23313
|
className: clsx("recharts-text", te),
|
|
23314
23314
|
textAnchor: R,
|
|
23315
23315
|
fill: V.includes("url") ? DEFAULT_FILL : V
|
|
23316
|
-
}), z.map(function(Fe,
|
|
23316
|
+
}), z.map(function(Fe, je) {
|
|
23317
23317
|
var Be = Fe.words.join(ne ? "" : " ");
|
|
23318
23318
|
return (
|
|
23319
23319
|
// duplicate words will cause duplicate keys
|
|
23320
23320
|
// eslint-disable-next-line react/no-array-index-key
|
|
23321
23321
|
/* @__PURE__ */ React__default.createElement("tspan", {
|
|
23322
23322
|
x: $e,
|
|
23323
|
-
dy:
|
|
23324
|
-
key: "".concat(Be, "-").concat(
|
|
23323
|
+
dy: je === 0 ? oe : g,
|
|
23324
|
+
key: "".concat(Be, "-").concat(je)
|
|
23325
23325
|
}, Be)
|
|
23326
23326
|
);
|
|
23327
23327
|
}));
|
|
@@ -24189,8 +24189,8 @@ function formatLocale$1(t) {
|
|
|
24189
24189
|
Ne = ne(Ae) + Ne, Ae = "";
|
|
24190
24190
|
else {
|
|
24191
24191
|
Ae = +Ae;
|
|
24192
|
-
var
|
|
24193
|
-
if (Ae = isNaN(Ae) ? b : ne(Math.abs(Ae), z), Q && (Ae = formatTrim(Ae)),
|
|
24192
|
+
var je = Ae < 0 || 1 / Ae < 0;
|
|
24193
|
+
if (Ae = isNaN(Ae) ? b : ne(Math.abs(Ae), z), Q && (Ae = formatTrim(Ae)), je && +Ae == 0 && A !== "+" && (je = !1), oe = (je ? A === "(" ? A : g : A === "-" || A === "(" ? "" : A) + oe, Ne = (O === "s" ? prefixes[8 + prefixExponent / 3] : "") + Ne + (je && A === "(" ? ")" : ""), ae) {
|
|
24194
24194
|
for (ge = -1, Ve = Ae.length; ++ge < Ve; )
|
|
24195
24195
|
if (Fe = Ae.charCodeAt(ge), 48 > Fe || Fe > 57) {
|
|
24196
24196
|
Ne = (Fe === 46 ? l + Ae.slice(ge + 1) : Ae.slice(ge)) + Ne, Ae = Ae.slice(0, ge);
|
|
@@ -24759,7 +24759,7 @@ function newDate(t, e, n) {
|
|
|
24759
24759
|
}
|
|
24760
24760
|
function formatLocale(t) {
|
|
24761
24761
|
var e = t.dateTime, n = t.date, o = t.time, l = t.periods, d = t.days, f = t.shortDays, g = t.months, b = t.shortMonths, S = formatRe(l), _ = formatLookup(l), C = formatRe(d), E = formatLookup(d), R = formatRe(f), A = formatLookup(f), I = formatRe(g), M = formatLookup(g), V = formatRe(b), F = formatLookup(b), z = {
|
|
24762
|
-
a:
|
|
24762
|
+
a: je,
|
|
24763
24763
|
A: Be,
|
|
24764
24764
|
b: Oe,
|
|
24765
24765
|
B: He,
|
|
@@ -24919,7 +24919,7 @@ function formatLocale(t) {
|
|
|
24919
24919
|
function Fe(Ze, at, lt) {
|
|
24920
24920
|
return ne(Ze, o, at, lt);
|
|
24921
24921
|
}
|
|
24922
|
-
function
|
|
24922
|
+
function je(Ze) {
|
|
24923
24923
|
return f[Ze.getDay()];
|
|
24924
24924
|
}
|
|
24925
24925
|
function Be(Ze) {
|
|
@@ -26397,9 +26397,9 @@ var ErrorBar = /* @__PURE__ */ (function(t) {
|
|
|
26397
26397
|
y2: oe
|
|
26398
26398
|
});
|
|
26399
26399
|
} else if (d === "horizontal") {
|
|
26400
|
-
var Ve = C.scale, Fe = V + l,
|
|
26400
|
+
var Ve = C.scale, Fe = V + l, je = Fe - f, Be = Fe + f, Oe = Ve(z - j), He = Ve(z + te);
|
|
26401
26401
|
O.push({
|
|
26402
|
-
x1:
|
|
26402
|
+
x1: je,
|
|
26403
26403
|
y1: He,
|
|
26404
26404
|
x2: Be,
|
|
26405
26405
|
y2: He
|
|
@@ -26409,7 +26409,7 @@ var ErrorBar = /* @__PURE__ */ (function(t) {
|
|
|
26409
26409
|
x2: Fe,
|
|
26410
26410
|
y2: He
|
|
26411
26411
|
}), O.push({
|
|
26412
|
-
x1:
|
|
26412
|
+
x1: je,
|
|
26413
26413
|
y1: Oe,
|
|
26414
26414
|
x2: Be,
|
|
26415
26415
|
y2: Oe
|
|
@@ -28179,7 +28179,7 @@ function requireReactIs_development$1() {
|
|
|
28179
28179
|
}
|
|
28180
28180
|
}
|
|
28181
28181
|
}
|
|
28182
|
-
var O = b, j = S, te = g, ne = f, ae = e, $e = _, Ae = o, oe = A, Ne = R, ge = n, Ve = d, Fe = l,
|
|
28182
|
+
var O = b, j = S, te = g, ne = f, ae = e, $e = _, Ae = o, oe = A, Ne = R, ge = n, Ve = d, Fe = l, je = C, Be = !1;
|
|
28183
28183
|
function Oe(ze) {
|
|
28184
28184
|
return Be || (Be = !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.")), He(ze) || Q(ze) === b;
|
|
28185
28185
|
}
|
|
@@ -28219,7 +28219,7 @@ function requireReactIs_development$1() {
|
|
|
28219
28219
|
function lt(ze) {
|
|
28220
28220
|
return Q(ze) === C;
|
|
28221
28221
|
}
|
|
28222
|
-
reactIs_development$1.AsyncMode = O, reactIs_development$1.ConcurrentMode = j, reactIs_development$1.ContextConsumer = te, reactIs_development$1.ContextProvider = ne, reactIs_development$1.Element = ae, reactIs_development$1.ForwardRef = $e, reactIs_development$1.Fragment = Ae, reactIs_development$1.Lazy = oe, reactIs_development$1.Memo = Ne, reactIs_development$1.Portal = ge, reactIs_development$1.Profiler = Ve, reactIs_development$1.StrictMode = Fe, reactIs_development$1.Suspense =
|
|
28222
|
+
reactIs_development$1.AsyncMode = O, reactIs_development$1.ConcurrentMode = j, reactIs_development$1.ContextConsumer = te, reactIs_development$1.ContextProvider = ne, reactIs_development$1.Element = ae, reactIs_development$1.ForwardRef = $e, reactIs_development$1.Fragment = Ae, reactIs_development$1.Lazy = oe, reactIs_development$1.Memo = Ne, reactIs_development$1.Portal = ge, reactIs_development$1.Profiler = Ve, reactIs_development$1.StrictMode = Fe, reactIs_development$1.Suspense = je, reactIs_development$1.isAsyncMode = Oe, reactIs_development$1.isConcurrentMode = He, reactIs_development$1.isContextConsumer = We, reactIs_development$1.isContextProvider = Ue, reactIs_development$1.isElement = Ke, reactIs_development$1.isForwardRef = tt, reactIs_development$1.isFragment = Ge, reactIs_development$1.isLazy = Qe, reactIs_development$1.isMemo = Xe, reactIs_development$1.isPortal = st, reactIs_development$1.isProfiler = Ze, reactIs_development$1.isStrictMode = at, reactIs_development$1.isSuspense = lt, reactIs_development$1.isValidElementType = z, reactIs_development$1.typeOf = Q;
|
|
28223
28223
|
})()), reactIs_development$1;
|
|
28224
28224
|
}
|
|
28225
28225
|
var hasRequiredReactIs$1;
|
|
@@ -28416,7 +28416,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28416
28416
|
function We(Ue, Ke, tt, Ge, Qe, Xe) {
|
|
28417
28417
|
var st = Ue[Ke], Ze = Fe(st);
|
|
28418
28418
|
if (Ze !== He) {
|
|
28419
|
-
var at =
|
|
28419
|
+
var at = je(st);
|
|
28420
28420
|
return new I(
|
|
28421
28421
|
"Invalid " + Ge + " `" + Qe + "` of type " + ("`" + at + "` supplied to `" + tt + "`, expected ") + ("`" + He + "`."),
|
|
28422
28422
|
{ expectedType: He }
|
|
@@ -28489,7 +28489,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28489
28489
|
if (A(Xe, He[st]))
|
|
28490
28490
|
return null;
|
|
28491
28491
|
var Ze = JSON.stringify(He, function(lt, ze) {
|
|
28492
|
-
var yt =
|
|
28492
|
+
var yt = je(ze);
|
|
28493
28493
|
return yt === "symbol" ? String(ze) : ze;
|
|
28494
28494
|
});
|
|
28495
28495
|
return new I("Invalid " + Ge + " `" + Qe + "` of value `" + String(Xe) + "` " + ("supplied to `" + tt + "`, expected one of " + Ze + "."));
|
|
@@ -28554,7 +28554,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28554
28554
|
for (var Ze in He) {
|
|
28555
28555
|
var at = He[Ze];
|
|
28556
28556
|
if (typeof at != "function")
|
|
28557
|
-
return Ae(tt, Ge, Qe, Ze,
|
|
28557
|
+
return Ae(tt, Ge, Qe, Ze, je(at));
|
|
28558
28558
|
var lt = at(Xe, Ze, tt, Ge, Qe + "." + Ze, n);
|
|
28559
28559
|
if (lt)
|
|
28560
28560
|
return lt;
|
|
@@ -28572,7 +28572,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28572
28572
|
for (var at in Ze) {
|
|
28573
28573
|
var lt = He[at];
|
|
28574
28574
|
if (o(He, at) && typeof lt != "function")
|
|
28575
|
-
return Ae(tt, Ge, Qe, at,
|
|
28575
|
+
return Ae(tt, Ge, Qe, at, je(lt));
|
|
28576
28576
|
if (!lt)
|
|
28577
28577
|
return new I(
|
|
28578
28578
|
"Invalid " + Ge + " `" + Qe + "` key `" + at + "` supplied to `" + tt + "`.\nBad object: " + JSON.stringify(Ue[Ke], null, " ") + `
|
|
@@ -28626,7 +28626,7 @@ Valid keys: ` + JSON.stringify(Object.keys(He), null, " ")
|
|
|
28626
28626
|
var We = typeof He;
|
|
28627
28627
|
return Array.isArray(He) ? "array" : He instanceof RegExp ? "object" : Ve(We, He) ? "symbol" : We;
|
|
28628
28628
|
}
|
|
28629
|
-
function
|
|
28629
|
+
function je(He) {
|
|
28630
28630
|
if (typeof He > "u" || He === null)
|
|
28631
28631
|
return "" + He;
|
|
28632
28632
|
var We = Fe(He);
|
|
@@ -28639,7 +28639,7 @@ Valid keys: ` + JSON.stringify(Object.keys(He), null, " ")
|
|
|
28639
28639
|
return We;
|
|
28640
28640
|
}
|
|
28641
28641
|
function Be(He) {
|
|
28642
|
-
var We =
|
|
28642
|
+
var We = je(He);
|
|
28643
28643
|
switch (We) {
|
|
28644
28644
|
case "array":
|
|
28645
28645
|
case "object":
|
|
@@ -31620,7 +31620,7 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
31620
31620
|
}), te = findAllByType(F, Cell), ne = C.map(function(ae, $e) {
|
|
31621
31621
|
var Ae, oe, Ne, ge, Ve, Fe;
|
|
31622
31622
|
S ? Ae = truncateByDomain(S[_ + $e], O) : (Ae = getValueByDataKey(ae, V), Array.isArray(Ae) || (Ae = [j, Ae]));
|
|
31623
|
-
var
|
|
31623
|
+
var je = minPointSizeCallback(z, _Bar.defaultProps.minPointSize)(Ae[1], $e);
|
|
31624
31624
|
if (A === "horizontal") {
|
|
31625
31625
|
var Be, Oe = [f.scale(Ae[0]), f.scale(Ae[1])], He = Oe[0], We = Oe[1];
|
|
31626
31626
|
oe = getCateCoordinateOfBar({
|
|
@@ -31637,8 +31637,8 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
31637
31637
|
y: f.y,
|
|
31638
31638
|
width: ge,
|
|
31639
31639
|
height: f.height
|
|
31640
|
-
}, Math.abs(
|
|
31641
|
-
var Ke = mathSign(Ve ||
|
|
31640
|
+
}, Math.abs(je) > 0 && Math.abs(Ve) < Math.abs(je)) {
|
|
31641
|
+
var Ke = mathSign(Ve || je) * (Math.abs(je) - Math.abs(Ve));
|
|
31642
31642
|
Ne -= Ke, Ve += Ke;
|
|
31643
31643
|
}
|
|
31644
31644
|
} else {
|
|
@@ -31655,8 +31655,8 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
31655
31655
|
y: Ne,
|
|
31656
31656
|
width: d.width,
|
|
31657
31657
|
height: Ve
|
|
31658
|
-
}, Math.abs(
|
|
31659
|
-
var Xe = mathSign(ge ||
|
|
31658
|
+
}, Math.abs(je) > 0 && Math.abs(ge) < Math.abs(je)) {
|
|
31659
|
+
var Xe = mathSign(ge || je) * (Math.abs(je) - Math.abs(ge));
|
|
31660
31660
|
ge += Xe;
|
|
31661
31661
|
}
|
|
31662
31662
|
}
|
|
@@ -31760,8 +31760,8 @@ var formatAxisMap = function(e, n, o, l, d) {
|
|
|
31760
31760
|
}), Number.isFinite(Ne)) {
|
|
31761
31761
|
var Ve = Ne / oe, Fe = I.layout === "vertical" ? o.height : o.width;
|
|
31762
31762
|
if (I.padding === "gap" && (te = Ve * Fe / 2), I.padding === "no-gap") {
|
|
31763
|
-
var
|
|
31764
|
-
te = Be -
|
|
31763
|
+
var je = getPercentValue(e.barCategoryGap, Ve * Fe), Be = Ve * Fe / 2;
|
|
31764
|
+
te = Be - je - (Be - je) / Fe * je;
|
|
31765
31765
|
}
|
|
31766
31766
|
}
|
|
31767
31767
|
}
|
|
@@ -34835,17 +34835,17 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34835
34835
|
isDomainSpecifiedByUser(V.domain, Q, F) && (oe = parseSpecifiedDomain(V.domain, null, Q), R && (F === "number" || j !== "auto") && (ge = getDomainOfDataByKey($e, z, "category")));
|
|
34836
34836
|
var Ve = getDefaultDomainByAxisType(F);
|
|
34837
34837
|
if (!oe || oe.length === 0) {
|
|
34838
|
-
var Fe,
|
|
34838
|
+
var Fe, je = (Fe = V.domain) !== null && Fe !== void 0 ? Fe : Ve;
|
|
34839
34839
|
if (z) {
|
|
34840
34840
|
if (oe = getDomainOfDataByKey($e, z, F), F === "category" && R) {
|
|
34841
34841
|
var Be = hasDuplicate(oe);
|
|
34842
|
-
O && Be ? (Ne = oe, oe = range(0, Ae)) : O || (oe = parseDomainOfCategoryAxis(
|
|
34842
|
+
O && Be ? (Ne = oe, oe = range(0, Ae)) : O || (oe = parseDomainOfCategoryAxis(je, oe, I).reduce(function(Ue, Ke) {
|
|
34843
34843
|
return Ue.indexOf(Ke) >= 0 ? Ue : [].concat(_toConsumableArray(Ue), [Ke]);
|
|
34844
34844
|
}, []));
|
|
34845
34845
|
} else if (F === "category")
|
|
34846
34846
|
O ? oe = oe.filter(function(Ue) {
|
|
34847
34847
|
return Ue !== "" && !isNil(Ue);
|
|
34848
|
-
}) : oe = parseDomainOfCategoryAxis(
|
|
34848
|
+
}) : oe = parseDomainOfCategoryAxis(je, oe, I).reduce(function(Ue, Ke) {
|
|
34849
34849
|
return Ue.indexOf(Ke) >= 0 || Ke === "" || isNil(Ke) ? Ue : [].concat(_toConsumableArray(Ue), [Ke]);
|
|
34850
34850
|
}, []);
|
|
34851
34851
|
else if (F === "number") {
|
|
@@ -34861,9 +34861,9 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34861
34861
|
return Ke === ae && (ne || !tt);
|
|
34862
34862
|
}), F, _, !0);
|
|
34863
34863
|
if (F === "number")
|
|
34864
|
-
oe = detectReferenceElementsDomain(C, oe, ae, d, te),
|
|
34865
|
-
else if (F === "category" &&
|
|
34866
|
-
var He =
|
|
34864
|
+
oe = detectReferenceElementsDomain(C, oe, ae, d, te), je && (oe = parseSpecifiedDomain(je, oe, Q));
|
|
34865
|
+
else if (F === "category" && je) {
|
|
34866
|
+
var He = je, We = oe.every(function(Ue) {
|
|
34867
34867
|
return He.indexOf(Ue) >= 0;
|
|
34868
34868
|
});
|
|
34869
34869
|
We && (oe = He);
|
|
@@ -34996,7 +34996,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34996
34996
|
return e[n].height;
|
|
34997
34997
|
}, generateCategoricalChart = function(e) {
|
|
34998
34998
|
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(V, F) {
|
|
34999
|
-
var z = F.graphicalItems, Q = F.stackGroups, O = F.offset, j = F.updateId, te = F.dataStartIndex, ne = F.dataEndIndex, ae = V.barSize, $e = V.layout, Ae = V.barGap, oe = V.barCategoryGap, Ne = V.maxBarSize, ge = getAxisNameByLayout($e), Ve = ge.numericAxisName, Fe = ge.cateAxisName,
|
|
34999
|
+
var z = F.graphicalItems, Q = F.stackGroups, O = F.offset, j = F.updateId, te = F.dataStartIndex, ne = F.dataEndIndex, ae = V.barSize, $e = V.layout, Ae = V.barGap, oe = V.barCategoryGap, Ne = V.maxBarSize, ge = getAxisNameByLayout($e), Ve = ge.numericAxisName, Fe = ge.cateAxisName, je = hasGraphicalBarItem(z), Be = [];
|
|
35000
35000
|
return z.forEach(function(Oe, He) {
|
|
35001
35001
|
var We = getDisplayedData(V.data, {
|
|
35002
35002
|
graphicalItems: [Oe],
|
|
@@ -35010,7 +35010,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35010
35010
|
).concat((pt = Oe == null || (ft = Oe.type) === null || ft === void 0 ? void 0 : ft.displayName) !== null && pt !== void 0 ? pt : "")) : invariant$1());
|
|
35011
35011
|
var Ut = dt[mt];
|
|
35012
35012
|
return _objectSpread(_objectSpread({}, nt), {}, _defineProperty(_defineProperty({}, ot.axisType, Ut), "".concat(ot.axisType, "Ticks"), getTicksOfAxis(Ut)));
|
|
35013
|
-
}, Xe), Ze = st[Fe], at = st["".concat(Fe, "Ticks")], lt = Q && Q[Ge] && Q[Ge].hasStack && getStackedDataOfItem(Oe, Q[Ge].stackGroups), ze = getDisplayName(Oe.type).indexOf("Bar") >= 0, yt = getBandSizeOfAxis(Ze, at), et = [], Ct =
|
|
35013
|
+
}, Xe), Ze = st[Fe], at = st["".concat(Fe, "Ticks")], lt = Q && Q[Ge] && Q[Ge].hasStack && getStackedDataOfItem(Oe, Q[Ge].stackGroups), ze = getDisplayName(Oe.type).indexOf("Bar") >= 0, yt = getBandSizeOfAxis(Ze, at), et = [], Ct = je && getBarSizeList({
|
|
35014
35014
|
barSize: ae,
|
|
35015
35015
|
stackGroups: Q,
|
|
35016
35016
|
totalSize: getCartesianAxisSize(st, Fe)
|
|
@@ -35058,7 +35058,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35058
35058
|
props: z
|
|
35059
35059
|
}))
|
|
35060
35060
|
return null;
|
|
35061
|
-
var te = z.children, ne = z.layout, ae = z.stackOffset, $e = z.data, Ae = z.reverseStackOrder, oe = getAxisNameByLayout(ne), Ne = oe.numericAxisName, ge = oe.cateAxisName, Ve = findAllByType(te, o), Fe = getStackGroupsByAxisId($e, Ve, "".concat(Ne, "Id"), "".concat(ge, "Id"), ae, Ae),
|
|
35061
|
+
var te = z.children, ne = z.layout, ae = z.stackOffset, $e = z.data, Ae = z.reverseStackOrder, oe = getAxisNameByLayout(ne), Ne = oe.numericAxisName, ge = oe.cateAxisName, Ve = findAllByType(te, o), Fe = getStackGroupsByAxisId($e, Ve, "".concat(Ne, "Id"), "".concat(ge, "Id"), ae, Ae), je = b.reduce(function(Ue, Ke) {
|
|
35062
35062
|
var tt = "".concat(Ke.axisType, "Map");
|
|
35063
35063
|
return _objectSpread(_objectSpread({}, Ue), {}, _defineProperty({}, tt, getAxisMap(z, _objectSpread(_objectSpread({}, Ke), {}, {
|
|
35064
35064
|
graphicalItems: Ve,
|
|
@@ -35066,14 +35066,14 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35066
35066
|
dataStartIndex: Q,
|
|
35067
35067
|
dataEndIndex: O
|
|
35068
35068
|
}))));
|
|
35069
|
-
}, {}), Be = calculateOffset(_objectSpread(_objectSpread({},
|
|
35069
|
+
}, {}), Be = calculateOffset(_objectSpread(_objectSpread({}, je), {}, {
|
|
35070
35070
|
props: z,
|
|
35071
35071
|
graphicalItems: Ve
|
|
35072
35072
|
}), F == null ? void 0 : F.legendBBox);
|
|
35073
|
-
Object.keys(
|
|
35074
|
-
|
|
35073
|
+
Object.keys(je).forEach(function(Ue) {
|
|
35074
|
+
je[Ue] = _(z, je[Ue], Be, Ue.replace("Map", ""), n);
|
|
35075
35075
|
});
|
|
35076
|
-
var Oe =
|
|
35076
|
+
var Oe = je["".concat(ge, "Map")], He = tooltipTicksGenerator(Oe), We = E(z, _objectSpread(_objectSpread({}, je), {}, {
|
|
35077
35077
|
dataStartIndex: Q,
|
|
35078
35078
|
dataEndIndex: O,
|
|
35079
35079
|
updateId: j,
|
|
@@ -35086,7 +35086,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35086
35086
|
graphicalItems: Ve,
|
|
35087
35087
|
offset: Be,
|
|
35088
35088
|
stackGroups: Fe
|
|
35089
|
-
}, He),
|
|
35089
|
+
}, He), je);
|
|
35090
35090
|
}, A = /* @__PURE__ */ (function(M) {
|
|
35091
35091
|
function V(F) {
|
|
35092
35092
|
var z, Q, O;
|
|
@@ -35237,8 +35237,8 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35237
35237
|
updateId: $e
|
|
35238
35238
|
}, O.state)));
|
|
35239
35239
|
else if (j.activeTooltipIndex !== void 0) {
|
|
35240
|
-
var Ne = j.chartX, ge = j.chartY, Ve = j.activeTooltipIndex, Fe = O.state,
|
|
35241
|
-
if (!
|
|
35240
|
+
var Ne = j.chartX, ge = j.chartY, Ve = j.activeTooltipIndex, Fe = O.state, je = Fe.offset, Be = Fe.tooltipTicks;
|
|
35241
|
+
if (!je)
|
|
35242
35242
|
return;
|
|
35243
35243
|
if (typeof ae == "function")
|
|
35244
35244
|
Ve = ae(Be, j);
|
|
@@ -35250,9 +35250,9 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35250
35250
|
break;
|
|
35251
35251
|
}
|
|
35252
35252
|
}
|
|
35253
|
-
var He = _objectSpread(_objectSpread({},
|
|
35254
|
-
x:
|
|
35255
|
-
y:
|
|
35253
|
+
var He = _objectSpread(_objectSpread({}, je), {}, {
|
|
35254
|
+
x: je.left,
|
|
35255
|
+
y: je.top
|
|
35256
35256
|
}), We = Math.min(Ne, He.x + He.width), Ue = Math.min(ge, He.y + He.height), Ke = Be[Ve] && Be[Ve].value, tt = getTooltipContent(O.state, O.props.data, Ve), Ge = Be[Ve] ? {
|
|
35257
35257
|
x: ne === "horizontal" ? Be[Ve].coordinate : We,
|
|
35258
35258
|
y: ne === "horizontal" ? Ue : Be[Ve].coordinate
|
|
@@ -35266,7 +35266,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35266
35266
|
} else
|
|
35267
35267
|
O.setState(j);
|
|
35268
35268
|
}), _defineProperty(O, "renderCursor", function(j) {
|
|
35269
|
-
var te, ne = O.state, ae = ne.isTooltipActive, $e = ne.activeCoordinate, Ae = ne.activePayload, oe = ne.offset, Ne = ne.activeTooltipIndex, ge = ne.tooltipAxisBandSize, Ve = O.getTooltipEventType(), Fe = (te = j.props.active) !== null && te !== void 0 ? te : ae,
|
|
35269
|
+
var te, ne = O.state, ae = ne.isTooltipActive, $e = ne.activeCoordinate, Ae = ne.activePayload, oe = ne.offset, Ne = ne.activeTooltipIndex, ge = ne.tooltipAxisBandSize, Ve = O.getTooltipEventType(), Fe = (te = j.props.active) !== null && te !== void 0 ? te : ae, je = O.props.layout, Be = j.key || "_recharts-cursor";
|
|
35270
35270
|
return /* @__PURE__ */ React__default.createElement(Cursor, {
|
|
35271
35271
|
key: Be,
|
|
35272
35272
|
activeCoordinate: $e,
|
|
@@ -35275,7 +35275,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35275
35275
|
chartName: n,
|
|
35276
35276
|
element: j,
|
|
35277
35277
|
isActive: Fe,
|
|
35278
|
-
layout:
|
|
35278
|
+
layout: je,
|
|
35279
35279
|
offset: oe,
|
|
35280
35280
|
tooltipAxisBandSize: ge,
|
|
35281
35281
|
tooltipEventType: Ve
|
|
@@ -35288,7 +35288,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35288
35288
|
ticks: getTicksOfAxis(Ne, !0)
|
|
35289
35289
|
}));
|
|
35290
35290
|
}), _defineProperty(O, "renderPolarGrid", function(j) {
|
|
35291
|
-
var te = j.props, ne = te.radialLines, ae = te.polarAngles, $e = te.polarRadius, Ae = O.state, oe = Ae.radiusAxisMap, Ne = Ae.angleAxisMap, ge = getAnyElementOfObject(oe), Ve = getAnyElementOfObject(Ne), Fe = Ve.cx,
|
|
35291
|
+
var te = j.props, ne = te.radialLines, ae = te.polarAngles, $e = te.polarRadius, Ae = O.state, oe = Ae.radiusAxisMap, Ne = Ae.angleAxisMap, ge = getAnyElementOfObject(oe), Ve = getAnyElementOfObject(Ne), Fe = Ve.cx, je = Ve.cy, Be = Ve.innerRadius, Oe = Ve.outerRadius;
|
|
35292
35292
|
return /* @__PURE__ */ cloneElement(j, {
|
|
35293
35293
|
polarAngles: Array.isArray(ae) ? ae : getTicksOfAxis(Ve, !0).map(function(He) {
|
|
35294
35294
|
return He.coordinate;
|
|
@@ -35297,7 +35297,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35297
35297
|
return He.coordinate;
|
|
35298
35298
|
}),
|
|
35299
35299
|
cx: Fe,
|
|
35300
|
-
cy:
|
|
35300
|
+
cy: je,
|
|
35301
35301
|
innerRadius: Be,
|
|
35302
35302
|
outerRadius: Oe,
|
|
35303
35303
|
key: j.key || "polar-grid",
|
|
@@ -35323,15 +35323,15 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35323
35323
|
var j, te = O.props, ne = te.children, ae = te.accessibilityLayer, $e = findChildByType(ne, Tooltip);
|
|
35324
35324
|
if (!$e)
|
|
35325
35325
|
return null;
|
|
35326
|
-
var Ae = O.state, oe = Ae.isTooltipActive, Ne = Ae.activeCoordinate, ge = Ae.activePayload, Ve = Ae.activeLabel, Fe = Ae.offset,
|
|
35326
|
+
var Ae = O.state, oe = Ae.isTooltipActive, Ne = Ae.activeCoordinate, ge = Ae.activePayload, Ve = Ae.activeLabel, Fe = Ae.offset, je = (j = $e.props.active) !== null && j !== void 0 ? j : oe;
|
|
35327
35327
|
return /* @__PURE__ */ cloneElement($e, {
|
|
35328
35328
|
viewBox: _objectSpread(_objectSpread({}, Fe), {}, {
|
|
35329
35329
|
x: Fe.left,
|
|
35330
35330
|
y: Fe.top
|
|
35331
35331
|
}),
|
|
35332
|
-
active:
|
|
35332
|
+
active: je,
|
|
35333
35333
|
label: Ve,
|
|
35334
|
-
payload:
|
|
35334
|
+
payload: je ? ge : [],
|
|
35335
35335
|
coordinate: Ne,
|
|
35336
35336
|
accessibilityLayer: ae
|
|
35337
35337
|
});
|
|
@@ -35351,7 +35351,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35351
35351
|
}), _defineProperty(O, "renderReferenceElement", function(j, te, ne) {
|
|
35352
35352
|
if (!j)
|
|
35353
35353
|
return null;
|
|
35354
|
-
var ae = O, $e = ae.clipPathId, Ae = O.state, oe = Ae.xAxisMap, Ne = Ae.yAxisMap, ge = Ae.offset, Ve = j.type.defaultProps || {}, Fe = j.props,
|
|
35354
|
+
var ae = O, $e = ae.clipPathId, Ae = O.state, oe = Ae.xAxisMap, Ne = Ae.yAxisMap, ge = Ae.offset, Ve = j.type.defaultProps || {}, Fe = j.props, je = Fe.xAxisId, Be = je === void 0 ? Ve.xAxisId : je, Oe = Fe.yAxisId, He = Oe === void 0 ? Ve.yAxisId : Oe;
|
|
35355
35355
|
return /* @__PURE__ */ cloneElement(j, {
|
|
35356
35356
|
key: j.key || "".concat(te, "-").concat(ne),
|
|
35357
35357
|
xAxis: oe[Be],
|
|
@@ -35365,7 +35365,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35365
35365
|
clipPathId: $e
|
|
35366
35366
|
});
|
|
35367
35367
|
}), _defineProperty(O, "renderActivePoints", function(j) {
|
|
35368
|
-
var te = j.item, ne = j.activePoint, ae = j.basePoint, $e = j.childIndex, Ae = j.isRange, oe = [], Ne = te.props.key, ge = te.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, te.item.type.defaultProps), te.item.props) : te.item.props, Ve = ge.activeDot, Fe = ge.dataKey,
|
|
35368
|
+
var te = j.item, ne = j.activePoint, ae = j.basePoint, $e = j.childIndex, Ae = j.isRange, oe = [], Ne = te.props.key, ge = te.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, te.item.type.defaultProps), te.item.props) : te.item.props, Ve = ge.activeDot, Fe = ge.dataKey, je = _objectSpread(_objectSpread({
|
|
35369
35369
|
index: $e,
|
|
35370
35370
|
dataKey: Fe,
|
|
35371
35371
|
cx: ne.x,
|
|
@@ -35377,7 +35377,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35377
35377
|
payload: ne.payload,
|
|
35378
35378
|
value: ne.value
|
|
35379
35379
|
}, filterProps(Ve, !1)), adaptEventHandlers(Ve));
|
|
35380
|
-
return oe.push(V.renderActiveDot(Ve,
|
|
35380
|
+
return oe.push(V.renderActiveDot(Ve, je, "".concat(Ne, "-activePoint-").concat($e))), ae ? oe.push(V.renderActiveDot(Ve, _objectSpread(_objectSpread({}, je), {}, {
|
|
35381
35381
|
cx: ae.x,
|
|
35382
35382
|
cy: ae.y
|
|
35383
35383
|
}), "".concat(Ne, "-basePoint-").concat($e))) : Ae && oe.push(null), oe;
|
|
@@ -35385,8 +35385,8 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35385
35385
|
var ae = O.filterFormatItem(j, te, ne);
|
|
35386
35386
|
if (!ae)
|
|
35387
35387
|
return null;
|
|
35388
|
-
var $e = O.getTooltipEventType(), Ae = O.state, oe = Ae.isTooltipActive, Ne = Ae.tooltipAxis, ge = Ae.activeTooltipIndex, Ve = Ae.activeLabel, Fe = O.props.children,
|
|
35389
|
-
$e !== "axis" &&
|
|
35388
|
+
var $e = O.getTooltipEventType(), Ae = O.state, oe = Ae.isTooltipActive, Ne = Ae.tooltipAxis, ge = Ae.activeTooltipIndex, Ve = Ae.activeLabel, Fe = O.props.children, je = findChildByType(Fe, Tooltip), Be = ae.props, Oe = Be.points, He = Be.isRange, We = Be.baseLine, Ue = ae.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, ae.item.type.defaultProps), ae.item.props) : ae.item.props, Ke = Ue.activeDot, tt = Ue.hide, Ge = Ue.activeBar, Qe = Ue.activeShape, Xe = !!(!tt && oe && je && (Ke || Ge || Qe)), st = {};
|
|
35389
|
+
$e !== "axis" && je && je.props.trigger === "click" ? st = {
|
|
35390
35390
|
onClick: combineEventHandlers(O.handleItemMouseEnter, j.props.onClick)
|
|
35391
35391
|
} : $e !== "axis" && (st = {
|
|
35392
35392
|
onMouseLeave: combineEventHandlers(O.handleItemMouseLeave, j.props.onMouseLeave),
|
|
@@ -35531,14 +35531,14 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35531
35531
|
return Oe.type.name === "Scatter";
|
|
35532
35532
|
});
|
|
35533
35533
|
Fe && (Ve = _objectSpread(_objectSpread({}, Ve), Fe.props.points[ae].tooltipPosition), Ae = Fe.props.points[ae].tooltipPayload);
|
|
35534
|
-
var
|
|
35534
|
+
var je = {
|
|
35535
35535
|
activeTooltipIndex: ae,
|
|
35536
35536
|
isTooltipActive: !0,
|
|
35537
35537
|
activeLabel: $e,
|
|
35538
35538
|
activePayload: Ae,
|
|
35539
35539
|
activeCoordinate: Ve
|
|
35540
35540
|
};
|
|
35541
|
-
this.setState(
|
|
35541
|
+
this.setState(je), this.renderCursor(ne), this.accessibilityManager.setIndex(ae);
|
|
35542
35542
|
}
|
|
35543
35543
|
}
|
|
35544
35544
|
}
|
|
@@ -35600,9 +35600,9 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35600
35600
|
return null;
|
|
35601
35601
|
var $e = this.state, Ae = $e.xAxisMap, oe = $e.yAxisMap, Ne = this.getTooltipEventType(), ge = getTooltipData(this.state, this.props.data, this.props.layout, ae);
|
|
35602
35602
|
if (Ne !== "axis" && Ae && oe) {
|
|
35603
|
-
var Ve = getAnyElementOfObject(Ae).scale, Fe = getAnyElementOfObject(oe).scale,
|
|
35603
|
+
var Ve = getAnyElementOfObject(Ae).scale, Fe = getAnyElementOfObject(oe).scale, je = Ve && Ve.invert ? Ve.invert(te.chartX) : null, Be = Fe && Fe.invert ? Fe.invert(te.chartY) : null;
|
|
35604
35604
|
return _objectSpread(_objectSpread({}, te), {}, {
|
|
35605
|
-
xValue:
|
|
35605
|
+
xValue: je,
|
|
35606
35606
|
yValue: Be
|
|
35607
35607
|
}, ge);
|
|
35608
35608
|
}
|
|
@@ -35741,10 +35741,10 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35741
35741
|
graphicalItem: ae,
|
|
35742
35742
|
activeTooltipItem: j,
|
|
35743
35743
|
itemData: oe.data
|
|
35744
|
-
}),
|
|
35744
|
+
}), je = oe.activeIndex === void 0 ? Fe : oe.activeIndex;
|
|
35745
35745
|
return {
|
|
35746
35746
|
graphicalItem: _objectSpread(_objectSpread({}, ae), {}, {
|
|
35747
|
-
childIndex:
|
|
35747
|
+
childIndex: je
|
|
35748
35748
|
}),
|
|
35749
35749
|
payload: isScatter(ae, j) ? oe.data[Fe] : ae.props.data[Fe]
|
|
35750
35750
|
};
|
|
@@ -35779,7 +35779,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35779
35779
|
z.accessibilityManager.focus();
|
|
35780
35780
|
};
|
|
35781
35781
|
}
|
|
35782
|
-
var
|
|
35782
|
+
var je = this.parseEventsOfWrapper();
|
|
35783
35783
|
return /* @__PURE__ */ React__default.createElement(ChartLayoutContextProvider, {
|
|
35784
35784
|
state: this.state,
|
|
35785
35785
|
width: this.props.width,
|
|
@@ -35793,7 +35793,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35793
35793
|
width: te,
|
|
35794
35794
|
height: ne
|
|
35795
35795
|
}, ae)
|
|
35796
|
-
},
|
|
35796
|
+
}, je, {
|
|
35797
35797
|
ref: function(Oe) {
|
|
35798
35798
|
z.container = Oe;
|
|
35799
35799
|
}
|
|
@@ -35867,7 +35867,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35867
35867
|
});
|
|
35868
35868
|
}
|
|
35869
35869
|
if (!isChildrenEqual(Q, V.prevChildren)) {
|
|
35870
|
-
var
|
|
35870
|
+
var je, Be, Oe, He, We = findChildByType(Q, Brush), Ue = We && (je = (Be = We.props) === null || Be === void 0 ? void 0 : Be.startIndex) !== null && je !== void 0 ? je : $e, Ke = We && (Oe = (He = We.props) === null || He === void 0 ? void 0 : He.endIndex) !== null && Oe !== void 0 ? Oe : Ae, tt = Ue !== $e || Ke !== Ae, Ge = !isNil(z), Qe = Ge && !tt ? V.updateId : V.updateId + 1;
|
|
35871
35871
|
return _objectSpread(_objectSpread({
|
|
35872
35872
|
updateId: Qe
|
|
35873
35873
|
}, R(_objectSpread(_objectSpread({
|
|
@@ -36465,8 +36465,8 @@ var lottie = createCommonjsModule((function(module, exports) {
|
|
|
36465
36465
|
else $e[Ae].ty === "gr" && ne($e[Ae].it);
|
|
36466
36466
|
}
|
|
36467
36467
|
function ae($e) {
|
|
36468
|
-
var Ae, oe, Ne, ge, Ve, Fe,
|
|
36469
|
-
for (oe = 0; oe <
|
|
36468
|
+
var Ae, oe, Ne, ge, Ve, Fe, je = $e.length;
|
|
36469
|
+
for (oe = 0; oe < je; oe += 1) {
|
|
36470
36470
|
if ((Ae = $e[oe]).hasMask) {
|
|
36471
36471
|
var Be = Ae.masksProperties;
|
|
36472
36472
|
for (ge = Be.length, Ne = 0; Ne < ge; Ne += 1) if (Be[Ne].pt.k.i) Be[Ne].pt.k.c = Be[Ne].cl;
|
|
@@ -37122,8 +37122,8 @@ var lottie = createCommonjsModule((function(module, exports) {
|
|
|
37122
37122
|
return E && M && (V[_] = n(R[_], R[0], A[_], I[0]), F += V[_].addedLength), C.totalLength = F, C;
|
|
37123
37123
|
}, getNewSegment: function(S, _, C, E, R, A, I) {
|
|
37124
37124
|
R < 0 ? R = 0 : R > 1 && (R = 1);
|
|
37125
|
-
var M, V = g(R, I), F = g(A = A > 1 ? 1 : A, I), z = S.length, Q = 1 - V, O = 1 - F, j = Q * Q * Q, te = V * Q * Q * 3, ne = V * V * Q * 3, ae = V * V * V, $e = Q * Q * O, Ae = V * Q * O + Q * V * O + Q * Q * F, oe = V * V * O + Q * V * F + V * Q * F, Ne = V * V * F, ge = Q * O * O, Ve = V * O * O + Q * F * O + Q * O * F, Fe = V * F * O + Q * F * F + V * O * F,
|
|
37126
|
-
for (M = 0; M < z; M += 1) b[4 * M] = t.round(1e3 * (j * S[M] + te * C[M] + ne * E[M] + ae * _[M])) / 1e3, b[4 * M + 1] = t.round(1e3 * ($e * S[M] + Ae * C[M] + oe * E[M] + Ne * _[M])) / 1e3, b[4 * M + 2] = t.round(1e3 * (ge * S[M] + Ve * C[M] + Fe * E[M] +
|
|
37125
|
+
var M, V = g(R, I), F = g(A = A > 1 ? 1 : A, I), z = S.length, Q = 1 - V, O = 1 - F, j = Q * Q * Q, te = V * Q * Q * 3, ne = V * V * Q * 3, ae = V * V * V, $e = Q * Q * O, Ae = V * Q * O + Q * V * O + Q * Q * F, oe = V * V * O + Q * V * F + V * Q * F, Ne = V * V * F, ge = Q * O * O, Ve = V * O * O + Q * F * O + Q * O * F, Fe = V * F * O + Q * F * F + V * O * F, je = V * F * F, Be = O * O * O, Oe = F * O * O + O * F * O + O * O * F, He = F * F * O + O * F * F + F * O * F, We = F * F * F;
|
|
37126
|
+
for (M = 0; M < z; M += 1) b[4 * M] = t.round(1e3 * (j * S[M] + te * C[M] + ne * E[M] + ae * _[M])) / 1e3, b[4 * M + 1] = t.round(1e3 * ($e * S[M] + Ae * C[M] + oe * E[M] + Ne * _[M])) / 1e3, b[4 * M + 2] = t.round(1e3 * (ge * S[M] + Ve * C[M] + Fe * E[M] + je * _[M])) / 1e3, b[4 * M + 3] = t.round(1e3 * (Be * S[M] + Oe * C[M] + He * E[M] + We * _[M])) / 1e3;
|
|
37127
37127
|
return b;
|
|
37128
37128
|
}, getPointInSegment: function(S, _, C, E, R, A) {
|
|
37129
37129
|
var I = g(R, A), M = 1 - I;
|
|
@@ -37571,12 +37571,12 @@ var lottie = createCommonjsModule((function(module, exports) {
|
|
|
37571
37571
|
function Fe(Be) {
|
|
37572
37572
|
return Be < 1e-6 && Be > 0 || Be > -1e-6 && Be < 0 ? o(1e4 * Be) / 1e4 : Be;
|
|
37573
37573
|
}
|
|
37574
|
-
function
|
|
37574
|
+
function je() {
|
|
37575
37575
|
var Be = this.props;
|
|
37576
37576
|
return "matrix(" + Fe(Be[0]) + "," + Fe(Be[1]) + "," + Fe(Be[4]) + "," + Fe(Be[5]) + "," + Fe(Be[12]) + "," + Fe(Be[13]) + ")";
|
|
37577
37577
|
}
|
|
37578
37578
|
return function() {
|
|
37579
|
-
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 = I, this.multiply = M, this.applyToPoint = O, this.applyToX = j, this.applyToY = te, this.applyToZ = ne, this.applyToPointArray = Ne, this.applyToTriplePoints = oe, this.applyToPointStringified = ge, this.toCSS = Ve, this.to2dCSS =
|
|
37579
|
+
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 = I, this.multiply = M, this.applyToPoint = O, this.applyToX = j, this.applyToY = te, this.applyToZ = ne, this.applyToPointArray = Ne, this.applyToTriplePoints = oe, this.applyToPointStringified = ge, this.toCSS = Ve, this.to2dCSS = je, this.clone = z, this.cloneFromProps = Q, this.equals = F, this.inversePoints = Ae, this.inversePoint = $e, this.getInverseMatrix = ae, this._t = this.transform, this.isIdentity = V, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
37580
37580
|
};
|
|
37581
37581
|
})();
|
|
37582
37582
|
function _typeof$3(t) {
|
|
@@ -39137,14 +39137,14 @@ var lottie = createCommonjsModule((function(module, exports) {
|
|
|
39137
39137
|
t.justifyOffset = 0;
|
|
39138
39138
|
}
|
|
39139
39139
|
t.lineWidths = M;
|
|
39140
|
-
var Fe,
|
|
39140
|
+
var Fe, je, Be, Oe, He = S.a;
|
|
39141
39141
|
f = He.length;
|
|
39142
39142
|
var We = [];
|
|
39143
39143
|
for (d = 0; d < f; d += 1) {
|
|
39144
|
-
for ((Fe = He[d]).a.sc && (t.strokeColorAnim = !0), Fe.a.sw && (t.strokeWidthAnim = !0), (Fe.a.fc || Fe.a.fh || Fe.a.fs || Fe.a.fb) && (t.fillColorAnim = !0), Oe = 0, Be = Fe.s.b, e = 0; e < n; e += 1) (
|
|
39144
|
+
for ((Fe = He[d]).a.sc && (t.strokeColorAnim = !0), Fe.a.sw && (t.strokeWidthAnim = !0), (Fe.a.fc || Fe.a.fh || Fe.a.fs || Fe.a.fb) && (t.fillColorAnim = !0), Oe = 0, Be = Fe.s.b, e = 0; e < n; e += 1) (je = _[e]).anIndexes[d] = Oe, (Be == 1 && je.val !== "" || Be == 2 && je.val !== "" && je.val !== " " || Be == 3 && (je.n || je.val == " " || e == n - 1) || Be == 4 && (je.n || e == n - 1)) && (Fe.s.rn === 1 && We.push(Oe), Oe += 1);
|
|
39145
39145
|
S.a[d].s.totalChars = Oe;
|
|
39146
39146
|
var Ue, Ke = -1;
|
|
39147
|
-
if (Fe.s.rn === 1) for (e = 0; e < n; e += 1) Ke != (
|
|
39147
|
+
if (Fe.s.rn === 1) for (e = 0; e < n; e += 1) Ke != (je = _[e]).anIndexes[d] && (Ke = je.anIndexes[d], Ue = We.splice(Math.floor(Math.random() * We.length), 1)[0]), je.anIndexes[d] = Ue;
|
|
39148
39148
|
}
|
|
39149
39149
|
t.yOffset = t.finalLineHeight || 1.2 * t.finalSize, t.ls = t.ls || 0, t.ascent = z.ascent * t.finalSize / 100;
|
|
39150
39150
|
}, TextProperty.prototype.updateDocumentData = function(t, e) {
|
|
@@ -39226,7 +39226,7 @@ var lottie = createCommonjsModule((function(module, exports) {
|
|
|
39226
39226
|
R = (A = I[E].points)[C - 1], M = (b = A[C]).partialLength;
|
|
39227
39227
|
}
|
|
39228
39228
|
d = Ae.length, n = 0, o = 0;
|
|
39229
|
-
var ge, Ve, Fe,
|
|
39229
|
+
var ge, Ve, Fe, je, Be, Oe = 1.2 * t.finalSize * 0.714, He = !0;
|
|
39230
39230
|
Fe = j.length;
|
|
39231
39231
|
var We, Ue, Ke, tt, Ge, Qe, Xe, st, Ze, at, lt, ze, yt = -1, et = g, Ct = E, $t = C, Ft = -1, Wt = "", Vt = this.defaultPropsArray;
|
|
39232
39232
|
if (t.j === 2 || t.j === 1) {
|
|
@@ -39290,7 +39290,7 @@ var lottie = createCommonjsModule((function(module, exports) {
|
|
|
39290
39290
|
}
|
|
39291
39291
|
ae === "html" ? Wt = ne.toCSS() : ae === "svg" ? Wt = ne.to2dCSS() : Vt = [ne.props[0], ne.props[1], ne.props[2], ne.props[3], ne.props[4], ne.props[5], ne.props[6], ne.props[7], ne.props[8], ne.props[9], ne.props[10], ne.props[11], ne.props[12], ne.props[13], ne.props[14], ne.props[15]], ze = tt;
|
|
39292
39292
|
}
|
|
39293
|
-
$e <= l ? (
|
|
39293
|
+
$e <= l ? (je = new LetterProps(ze, Ze, at, lt, Wt, Vt), this.renderedLetters.push(je), $e += 1, this.lettersChangedFlag = !0) : (je = this.renderedLetters[l], this.lettersChangedFlag = je.update(ze, Ze, at, lt, Wt, Vt) || this.lettersChangedFlag);
|
|
39294
39294
|
}
|
|
39295
39295
|
}
|
|
39296
39296
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -54007,15 +54007,15 @@ function requireMd5$1() {
|
|
|
54007
54007
|
return oe;
|
|
54008
54008
|
}, j = function(oe) {
|
|
54009
54009
|
var Ne = require$$1, ge = require$$1.Buffer, Ve;
|
|
54010
|
-
ge.from && !l.JS_MD5_NO_BUFFER_FROM ? Ve = ge.from : Ve = function(
|
|
54011
|
-
return new ge(
|
|
54010
|
+
ge.from && !l.JS_MD5_NO_BUFFER_FROM ? Ve = ge.from : Ve = function(je) {
|
|
54011
|
+
return new ge(je);
|
|
54012
54012
|
};
|
|
54013
|
-
var Fe = function(
|
|
54014
|
-
if (typeof
|
|
54015
|
-
return Ne.createHash("md5").update(
|
|
54016
|
-
if (
|
|
54013
|
+
var Fe = function(je) {
|
|
54014
|
+
if (typeof je == "string")
|
|
54015
|
+
return Ne.createHash("md5").update(je, "utf8").digest("hex");
|
|
54016
|
+
if (je == null)
|
|
54017
54017
|
throw new Error(e);
|
|
54018
|
-
return
|
|
54018
|
+
return je.constructor === ArrayBuffer && (je = new Uint8Array(je)), V(je) || F(je) || je.constructor === ge ? Ne.createHash("md5").update(Ve(je)).digest("hex") : oe(je);
|
|
54019
54019
|
};
|
|
54020
54020
|
return Fe;
|
|
54021
54021
|
}, te = function(oe) {
|
|
@@ -54050,21 +54050,21 @@ function requireMd5$1() {
|
|
|
54050
54050
|
throw new Error(n);
|
|
54051
54051
|
var Ne = z(oe);
|
|
54052
54052
|
oe = Ne[0];
|
|
54053
|
-
for (var ge = Ne[1], Ve, Fe = 0,
|
|
54053
|
+
for (var ge = Ne[1], Ve, Fe = 0, je, Be = oe.length, Oe = this.blocks, He = this.buffer8; Fe < Be; ) {
|
|
54054
54054
|
if (this.hashed && (this.hashed = !1, Oe[0] = Oe[16], Oe[16] = Oe[1] = Oe[2] = Oe[3] = Oe[4] = Oe[5] = Oe[6] = Oe[7] = Oe[8] = Oe[9] = Oe[10] = Oe[11] = Oe[12] = Oe[13] = Oe[14] = Oe[15] = 0), ge)
|
|
54055
54055
|
if (b)
|
|
54056
|
-
for (
|
|
54057
|
-
Ve = oe.charCodeAt(Fe), Ve < 128 ? He[
|
|
54056
|
+
for (je = this.start; Fe < Be && je < 64; ++Fe)
|
|
54057
|
+
Ve = oe.charCodeAt(Fe), Ve < 128 ? He[je++] = Ve : Ve < 2048 ? (He[je++] = 192 | Ve >>> 6, He[je++] = 128 | Ve & 63) : Ve < 55296 || Ve >= 57344 ? (He[je++] = 224 | Ve >>> 12, He[je++] = 128 | Ve >>> 6 & 63, He[je++] = 128 | Ve & 63) : (Ve = 65536 + ((Ve & 1023) << 10 | oe.charCodeAt(++Fe) & 1023), He[je++] = 240 | Ve >>> 18, He[je++] = 128 | Ve >>> 12 & 63, He[je++] = 128 | Ve >>> 6 & 63, He[je++] = 128 | Ve & 63);
|
|
54058
54058
|
else
|
|
54059
|
-
for (
|
|
54060
|
-
Ve = oe.charCodeAt(Fe), Ve < 128 ? Oe[
|
|
54059
|
+
for (je = this.start; Fe < Be && je < 64; ++Fe)
|
|
54060
|
+
Ve = oe.charCodeAt(Fe), Ve < 128 ? Oe[je >>> 2] |= Ve << C[je++ & 3] : Ve < 2048 ? (Oe[je >>> 2] |= (192 | Ve >>> 6) << C[je++ & 3], Oe[je >>> 2] |= (128 | Ve & 63) << C[je++ & 3]) : Ve < 55296 || Ve >= 57344 ? (Oe[je >>> 2] |= (224 | Ve >>> 12) << C[je++ & 3], Oe[je >>> 2] |= (128 | Ve >>> 6 & 63) << C[je++ & 3], Oe[je >>> 2] |= (128 | Ve & 63) << C[je++ & 3]) : (Ve = 65536 + ((Ve & 1023) << 10 | oe.charCodeAt(++Fe) & 1023), Oe[je >>> 2] |= (240 | Ve >>> 18) << C[je++ & 3], Oe[je >>> 2] |= (128 | Ve >>> 12 & 63) << C[je++ & 3], Oe[je >>> 2] |= (128 | Ve >>> 6 & 63) << C[je++ & 3], Oe[je >>> 2] |= (128 | Ve & 63) << C[je++ & 3]);
|
|
54061
54061
|
else if (b)
|
|
54062
|
-
for (
|
|
54063
|
-
He[
|
|
54062
|
+
for (je = this.start; Fe < Be && je < 64; ++Fe)
|
|
54063
|
+
He[je++] = oe[Fe];
|
|
54064
54064
|
else
|
|
54065
|
-
for (
|
|
54066
|
-
Oe[
|
|
54067
|
-
this.lastByteIndex =
|
|
54065
|
+
for (je = this.start; Fe < Be && je < 64; ++Fe)
|
|
54066
|
+
Oe[je >>> 2] |= oe[Fe] << C[je++ & 3];
|
|
54067
|
+
this.lastByteIndex = je, this.bytes += je - this.start, je >= 64 ? (this.start = je - 64, this.hash(), this.hashed = !0) : this.start = je;
|
|
54068
54068
|
}
|
|
54069
54069
|
return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, this.bytes = this.bytes % 4294967296), this;
|
|
54070
54070
|
}, ae.prototype.finalize = function() {
|
|
@@ -54074,8 +54074,8 @@ function requireMd5$1() {
|
|
|
54074
54074
|
oe[Ne >>> 2] |= _[Ne & 3], Ne >= 56 && (this.hashed || this.hash(), oe[0] = oe[16], oe[16] = oe[1] = oe[2] = oe[3] = oe[4] = oe[5] = oe[6] = oe[7] = oe[8] = oe[9] = oe[10] = oe[11] = oe[12] = oe[13] = oe[14] = oe[15] = 0), oe[14] = this.bytes << 3, oe[15] = this.hBytes << 3 | this.bytes >>> 29, this.hash();
|
|
54075
54075
|
}
|
|
54076
54076
|
}, ae.prototype.hash = function() {
|
|
54077
|
-
var oe, Ne, ge, Ve, Fe,
|
|
54078
|
-
this.first ? (oe = Be[0] - 680876937, oe = (oe << 7 | oe >>> 25) - 271733879 << 0, Ve = (-1732584194 ^ oe & 2004318071) + Be[1] - 117830708, Ve = (Ve << 12 | Ve >>> 20) + oe << 0, ge = (-271733879 ^ Ve & (oe ^ -271733879)) + Be[2] - 1126478375, ge = (ge << 17 | ge >>> 15) + Ve << 0, Ne = (oe ^ ge & (Ve ^ oe)) + Be[3] - 1316259209, Ne = (Ne << 22 | Ne >>> 10) + ge << 0) : (oe = this.h0, Ne = this.h1, ge = this.h2, Ve = this.h3, oe += (Ve ^ Ne & (ge ^ Ve)) + Be[0] - 680876936, oe = (oe << 7 | oe >>> 25) + Ne << 0, Ve += (ge ^ oe & (Ne ^ ge)) + Be[1] - 389564586, Ve = (Ve << 12 | Ve >>> 20) + oe << 0, ge += (Ne ^ Ve & (oe ^ Ne)) + Be[2] + 606105819, ge = (ge << 17 | ge >>> 15) + Ve << 0, Ne += (oe ^ ge & (Ve ^ oe)) + Be[3] - 1044525330, Ne = (Ne << 22 | Ne >>> 10) + ge << 0), oe += (Ve ^ Ne & (ge ^ Ve)) + Be[4] - 176418897, oe = (oe << 7 | oe >>> 25) + Ne << 0, Ve += (ge ^ oe & (Ne ^ ge)) + Be[5] + 1200080426, Ve = (Ve << 12 | Ve >>> 20) + oe << 0, ge += (Ne ^ Ve & (oe ^ Ne)) + Be[6] - 1473231341, ge = (ge << 17 | ge >>> 15) + Ve << 0, Ne += (oe ^ ge & (Ve ^ oe)) + Be[7] - 45705983, Ne = (Ne << 22 | Ne >>> 10) + ge << 0, oe += (Ve ^ Ne & (ge ^ Ve)) + Be[8] + 1770035416, oe = (oe << 7 | oe >>> 25) + Ne << 0, Ve += (ge ^ oe & (Ne ^ ge)) + Be[9] - 1958414417, Ve = (Ve << 12 | Ve >>> 20) + oe << 0, ge += (Ne ^ Ve & (oe ^ Ne)) + Be[10] - 42063, ge = (ge << 17 | ge >>> 15) + Ve << 0, Ne += (oe ^ ge & (Ve ^ oe)) + Be[11] - 1990404162, Ne = (Ne << 22 | Ne >>> 10) + ge << 0, oe += (Ve ^ Ne & (ge ^ Ve)) + Be[12] + 1804603682, oe = (oe << 7 | oe >>> 25) + Ne << 0, Ve += (ge ^ oe & (Ne ^ ge)) + Be[13] - 40341101, Ve = (Ve << 12 | Ve >>> 20) + oe << 0, ge += (Ne ^ Ve & (oe ^ Ne)) + Be[14] - 1502002290, ge = (ge << 17 | ge >>> 15) + Ve << 0, Ne += (oe ^ ge & (Ve ^ oe)) + Be[15] + 1236535329, Ne = (Ne << 22 | Ne >>> 10) + ge << 0, oe += (ge ^ Ve & (Ne ^ ge)) + Be[1] - 165796510, oe = (oe << 5 | oe >>> 27) + Ne << 0, Ve += (Ne ^ ge & (oe ^ Ne)) + Be[6] - 1069501632, Ve = (Ve << 9 | Ve >>> 23) + oe << 0, ge += (oe ^ Ne & (Ve ^ oe)) + Be[11] + 643717713, ge = (ge << 14 | ge >>> 18) + Ve << 0, Ne += (Ve ^ oe & (ge ^ Ve)) + Be[0] - 373897302, Ne = (Ne << 20 | Ne >>> 12) + ge << 0, oe += (ge ^ Ve & (Ne ^ ge)) + Be[5] - 701558691, oe = (oe << 5 | oe >>> 27) + Ne << 0, Ve += (Ne ^ ge & (oe ^ Ne)) + Be[10] + 38016083, Ve = (Ve << 9 | Ve >>> 23) + oe << 0, ge += (oe ^ Ne & (Ve ^ oe)) + Be[15] - 660478335, ge = (ge << 14 | ge >>> 18) + Ve << 0, Ne += (Ve ^ oe & (ge ^ Ve)) + Be[4] - 405537848, Ne = (Ne << 20 | Ne >>> 12) + ge << 0, oe += (ge ^ Ve & (Ne ^ ge)) + Be[9] + 568446438, oe = (oe << 5 | oe >>> 27) + Ne << 0, Ve += (Ne ^ ge & (oe ^ Ne)) + Be[14] - 1019803690, Ve = (Ve << 9 | Ve >>> 23) + oe << 0, ge += (oe ^ Ne & (Ve ^ oe)) + Be[3] - 187363961, ge = (ge << 14 | ge >>> 18) + Ve << 0, Ne += (Ve ^ oe & (ge ^ Ve)) + Be[8] + 1163531501, Ne = (Ne << 20 | Ne >>> 12) + ge << 0, oe += (ge ^ Ve & (Ne ^ ge)) + Be[13] - 1444681467, oe = (oe << 5 | oe >>> 27) + Ne << 0, Ve += (Ne ^ ge & (oe ^ Ne)) + Be[2] - 51403784, Ve = (Ve << 9 | Ve >>> 23) + oe << 0, ge += (oe ^ Ne & (Ve ^ oe)) + Be[7] + 1735328473, ge = (ge << 14 | ge >>> 18) + Ve << 0, Ne += (Ve ^ oe & (ge ^ Ve)) + Be[12] - 1926607734, Ne = (Ne << 20 | Ne >>> 12) + ge << 0, Fe = Ne ^ ge, oe += (Fe ^ Ve) + Be[5] - 378558, oe = (oe << 4 | oe >>> 28) + Ne << 0, Ve += (Fe ^ oe) + Be[8] - 2022574463, Ve = (Ve << 11 | Ve >>> 21) + oe << 0,
|
|
54077
|
+
var oe, Ne, ge, Ve, Fe, je, Be = this.blocks;
|
|
54078
|
+
this.first ? (oe = Be[0] - 680876937, oe = (oe << 7 | oe >>> 25) - 271733879 << 0, Ve = (-1732584194 ^ oe & 2004318071) + Be[1] - 117830708, Ve = (Ve << 12 | Ve >>> 20) + oe << 0, ge = (-271733879 ^ Ve & (oe ^ -271733879)) + Be[2] - 1126478375, ge = (ge << 17 | ge >>> 15) + Ve << 0, Ne = (oe ^ ge & (Ve ^ oe)) + Be[3] - 1316259209, Ne = (Ne << 22 | Ne >>> 10) + ge << 0) : (oe = this.h0, Ne = this.h1, ge = this.h2, Ve = this.h3, oe += (Ve ^ Ne & (ge ^ Ve)) + Be[0] - 680876936, oe = (oe << 7 | oe >>> 25) + Ne << 0, Ve += (ge ^ oe & (Ne ^ ge)) + Be[1] - 389564586, Ve = (Ve << 12 | Ve >>> 20) + oe << 0, ge += (Ne ^ Ve & (oe ^ Ne)) + Be[2] + 606105819, ge = (ge << 17 | ge >>> 15) + Ve << 0, Ne += (oe ^ ge & (Ve ^ oe)) + Be[3] - 1044525330, Ne = (Ne << 22 | Ne >>> 10) + ge << 0), oe += (Ve ^ Ne & (ge ^ Ve)) + Be[4] - 176418897, oe = (oe << 7 | oe >>> 25) + Ne << 0, Ve += (ge ^ oe & (Ne ^ ge)) + Be[5] + 1200080426, Ve = (Ve << 12 | Ve >>> 20) + oe << 0, ge += (Ne ^ Ve & (oe ^ Ne)) + Be[6] - 1473231341, ge = (ge << 17 | ge >>> 15) + Ve << 0, Ne += (oe ^ ge & (Ve ^ oe)) + Be[7] - 45705983, Ne = (Ne << 22 | Ne >>> 10) + ge << 0, oe += (Ve ^ Ne & (ge ^ Ve)) + Be[8] + 1770035416, oe = (oe << 7 | oe >>> 25) + Ne << 0, Ve += (ge ^ oe & (Ne ^ ge)) + Be[9] - 1958414417, Ve = (Ve << 12 | Ve >>> 20) + oe << 0, ge += (Ne ^ Ve & (oe ^ Ne)) + Be[10] - 42063, ge = (ge << 17 | ge >>> 15) + Ve << 0, Ne += (oe ^ ge & (Ve ^ oe)) + Be[11] - 1990404162, Ne = (Ne << 22 | Ne >>> 10) + ge << 0, oe += (Ve ^ Ne & (ge ^ Ve)) + Be[12] + 1804603682, oe = (oe << 7 | oe >>> 25) + Ne << 0, Ve += (ge ^ oe & (Ne ^ ge)) + Be[13] - 40341101, Ve = (Ve << 12 | Ve >>> 20) + oe << 0, ge += (Ne ^ Ve & (oe ^ Ne)) + Be[14] - 1502002290, ge = (ge << 17 | ge >>> 15) + Ve << 0, Ne += (oe ^ ge & (Ve ^ oe)) + Be[15] + 1236535329, Ne = (Ne << 22 | Ne >>> 10) + ge << 0, oe += (ge ^ Ve & (Ne ^ ge)) + Be[1] - 165796510, oe = (oe << 5 | oe >>> 27) + Ne << 0, Ve += (Ne ^ ge & (oe ^ Ne)) + Be[6] - 1069501632, Ve = (Ve << 9 | Ve >>> 23) + oe << 0, ge += (oe ^ Ne & (Ve ^ oe)) + Be[11] + 643717713, ge = (ge << 14 | ge >>> 18) + Ve << 0, Ne += (Ve ^ oe & (ge ^ Ve)) + Be[0] - 373897302, Ne = (Ne << 20 | Ne >>> 12) + ge << 0, oe += (ge ^ Ve & (Ne ^ ge)) + Be[5] - 701558691, oe = (oe << 5 | oe >>> 27) + Ne << 0, Ve += (Ne ^ ge & (oe ^ Ne)) + Be[10] + 38016083, Ve = (Ve << 9 | Ve >>> 23) + oe << 0, ge += (oe ^ Ne & (Ve ^ oe)) + Be[15] - 660478335, ge = (ge << 14 | ge >>> 18) + Ve << 0, Ne += (Ve ^ oe & (ge ^ Ve)) + Be[4] - 405537848, Ne = (Ne << 20 | Ne >>> 12) + ge << 0, oe += (ge ^ Ve & (Ne ^ ge)) + Be[9] + 568446438, oe = (oe << 5 | oe >>> 27) + Ne << 0, Ve += (Ne ^ ge & (oe ^ Ne)) + Be[14] - 1019803690, Ve = (Ve << 9 | Ve >>> 23) + oe << 0, ge += (oe ^ Ne & (Ve ^ oe)) + Be[3] - 187363961, ge = (ge << 14 | ge >>> 18) + Ve << 0, Ne += (Ve ^ oe & (ge ^ Ve)) + Be[8] + 1163531501, Ne = (Ne << 20 | Ne >>> 12) + ge << 0, oe += (ge ^ Ve & (Ne ^ ge)) + Be[13] - 1444681467, oe = (oe << 5 | oe >>> 27) + Ne << 0, Ve += (Ne ^ ge & (oe ^ Ne)) + Be[2] - 51403784, Ve = (Ve << 9 | Ve >>> 23) + oe << 0, ge += (oe ^ Ne & (Ve ^ oe)) + Be[7] + 1735328473, ge = (ge << 14 | ge >>> 18) + Ve << 0, Ne += (Ve ^ oe & (ge ^ Ve)) + Be[12] - 1926607734, Ne = (Ne << 20 | Ne >>> 12) + ge << 0, Fe = Ne ^ ge, oe += (Fe ^ Ve) + Be[5] - 378558, oe = (oe << 4 | oe >>> 28) + Ne << 0, Ve += (Fe ^ oe) + Be[8] - 2022574463, Ve = (Ve << 11 | Ve >>> 21) + oe << 0, je = Ve ^ oe, ge += (je ^ Ne) + Be[11] + 1839030562, ge = (ge << 16 | ge >>> 16) + Ve << 0, Ne += (je ^ ge) + Be[14] - 35309556, Ne = (Ne << 23 | Ne >>> 9) + ge << 0, Fe = Ne ^ ge, oe += (Fe ^ Ve) + Be[1] - 1530992060, oe = (oe << 4 | oe >>> 28) + Ne << 0, Ve += (Fe ^ oe) + Be[4] + 1272893353, Ve = (Ve << 11 | Ve >>> 21) + oe << 0, je = Ve ^ oe, ge += (je ^ Ne) + Be[7] - 155497632, ge = (ge << 16 | ge >>> 16) + Ve << 0, Ne += (je ^ ge) + Be[10] - 1094730640, Ne = (Ne << 23 | Ne >>> 9) + ge << 0, Fe = Ne ^ ge, oe += (Fe ^ Ve) + Be[13] + 681279174, oe = (oe << 4 | oe >>> 28) + Ne << 0, Ve += (Fe ^ oe) + Be[0] - 358537222, Ve = (Ve << 11 | Ve >>> 21) + oe << 0, je = Ve ^ oe, ge += (je ^ Ne) + Be[3] - 722521979, ge = (ge << 16 | ge >>> 16) + Ve << 0, Ne += (je ^ ge) + Be[6] + 76029189, Ne = (Ne << 23 | Ne >>> 9) + ge << 0, Fe = Ne ^ ge, oe += (Fe ^ Ve) + Be[9] - 640364487, oe = (oe << 4 | oe >>> 28) + Ne << 0, Ve += (Fe ^ oe) + Be[12] - 421815835, Ve = (Ve << 11 | Ve >>> 21) + oe << 0, je = Ve ^ oe, ge += (je ^ Ne) + Be[15] + 530742520, ge = (ge << 16 | ge >>> 16) + Ve << 0, Ne += (je ^ ge) + Be[2] - 995338651, Ne = (Ne << 23 | Ne >>> 9) + ge << 0, oe += (ge ^ (Ne | ~Ve)) + Be[0] - 198630844, oe = (oe << 6 | oe >>> 26) + Ne << 0, Ve += (Ne ^ (oe | ~ge)) + Be[7] + 1126891415, Ve = (Ve << 10 | Ve >>> 22) + oe << 0, ge += (oe ^ (Ve | ~Ne)) + Be[14] - 1416354905, ge = (ge << 15 | ge >>> 17) + Ve << 0, Ne += (Ve ^ (ge | ~oe)) + Be[5] - 57434055, Ne = (Ne << 21 | Ne >>> 11) + ge << 0, oe += (ge ^ (Ne | ~Ve)) + Be[12] + 1700485571, oe = (oe << 6 | oe >>> 26) + Ne << 0, Ve += (Ne ^ (oe | ~ge)) + Be[3] - 1894986606, Ve = (Ve << 10 | Ve >>> 22) + oe << 0, ge += (oe ^ (Ve | ~Ne)) + Be[10] - 1051523, ge = (ge << 15 | ge >>> 17) + Ve << 0, Ne += (Ve ^ (ge | ~oe)) + Be[1] - 2054922799, Ne = (Ne << 21 | Ne >>> 11) + ge << 0, oe += (ge ^ (Ne | ~Ve)) + Be[8] + 1873313359, oe = (oe << 6 | oe >>> 26) + Ne << 0, Ve += (Ne ^ (oe | ~ge)) + Be[15] - 30611744, Ve = (Ve << 10 | Ve >>> 22) + oe << 0, ge += (oe ^ (Ve | ~Ne)) + Be[6] - 1560198380, ge = (ge << 15 | ge >>> 17) + Ve << 0, Ne += (Ve ^ (ge | ~oe)) + Be[13] + 1309151649, Ne = (Ne << 21 | Ne >>> 11) + ge << 0, oe += (ge ^ (Ne | ~Ve)) + Be[4] - 145523070, oe = (oe << 6 | oe >>> 26) + Ne << 0, Ve += (Ne ^ (oe | ~ge)) + Be[11] - 1120210379, Ve = (Ve << 10 | Ve >>> 22) + oe << 0, ge += (oe ^ (Ve | ~Ne)) + Be[2] + 718787259, ge = (ge << 15 | ge >>> 17) + Ve << 0, Ne += (Ve ^ (ge | ~oe)) + Be[9] - 343485551, Ne = (Ne << 21 | Ne >>> 11) + ge << 0, this.first ? (this.h0 = oe + 1732584193 << 0, this.h1 = Ne - 271733879 << 0, this.h2 = ge - 1732584194 << 0, this.h3 = Ve + 271733878 << 0, this.first = !1) : (this.h0 = this.h0 + oe << 0, this.h1 = this.h1 + Ne << 0, this.h2 = this.h2 + ge << 0, this.h3 = this.h3 + Ve << 0);
|
|
54079
54079
|
}, ae.prototype.hex = function() {
|
|
54080
54080
|
this.finalize();
|
|
54081
54081
|
var oe = this.h0, Ne = this.h1, ge = this.h2, Ve = this.h3;
|
|
@@ -54106,15 +54106,15 @@ function requireMd5$1() {
|
|
|
54106
54106
|
var oe = new ArrayBuffer(16), Ne = new Uint32Array(oe);
|
|
54107
54107
|
return Ne[0] = this.h0, Ne[1] = this.h1, Ne[2] = this.h2, Ne[3] = this.h3, oe;
|
|
54108
54108
|
}, ae.prototype.buffer = ae.prototype.arrayBuffer, ae.prototype.base64 = function() {
|
|
54109
|
-
for (var oe, Ne, ge, Ve = "", Fe = this.array(),
|
|
54110
|
-
oe = Fe[
|
|
54111
|
-
return oe = Fe[
|
|
54109
|
+
for (var oe, Ne, ge, Ve = "", Fe = this.array(), je = 0; je < 15; )
|
|
54110
|
+
oe = Fe[je++], Ne = Fe[je++], ge = Fe[je++], Ve += R[oe >>> 2] + R[(oe << 4 | Ne >>> 4) & 63] + R[(Ne << 2 | ge >>> 6) & 63] + R[ge & 63];
|
|
54111
|
+
return oe = Fe[je], Ve += R[oe >>> 2] + R[oe << 4 & 63] + "==", Ve;
|
|
54112
54112
|
};
|
|
54113
54113
|
function $e(oe, Ne) {
|
|
54114
54114
|
var ge, Ve = z(oe);
|
|
54115
54115
|
if (oe = Ve[0], Ve[1]) {
|
|
54116
|
-
var Fe = [],
|
|
54117
|
-
for (ge = 0; ge <
|
|
54116
|
+
var Fe = [], je = oe.length, Be = 0, Oe;
|
|
54117
|
+
for (ge = 0; ge < je; ++ge)
|
|
54118
54118
|
Oe = oe.charCodeAt(ge), Oe < 128 ? Fe[Be++] = Oe : Oe < 2048 ? (Fe[Be++] = 192 | Oe >>> 6, Fe[Be++] = 128 | Oe & 63) : Oe < 55296 || Oe >= 57344 ? (Fe[Be++] = 224 | Oe >>> 12, Fe[Be++] = 128 | Oe >>> 6 & 63, Fe[Be++] = 128 | Oe & 63) : (Oe = 65536 + ((Oe & 1023) << 10 | oe.charCodeAt(++ge) & 1023), Fe[Be++] = 240 | Oe >>> 18, Fe[Be++] = 128 | Oe >>> 12 & 63, Fe[Be++] = 128 | Oe >>> 6 & 63, Fe[Be++] = 128 | Oe & 63);
|
|
54119
54119
|
oe = Fe;
|
|
54120
54120
|
}
|
|
@@ -54210,8 +54210,8 @@ ${_.description}` : _.summary || `${S.toUpperCase()} ${C[C.length - 1]}`,
|
|
|
54210
54210
|
let ne = `https://api.randmar.io${f}`;
|
|
54211
54211
|
try {
|
|
54212
54212
|
V.forEach((Ve) => {
|
|
54213
|
-
const Fe = `{${Ve}}`,
|
|
54214
|
-
ne = ne.replace(Fe, te[
|
|
54213
|
+
const Fe = `{${Ve}}`, je = Ve;
|
|
54214
|
+
ne = ne.replace(Fe, te[je]);
|
|
54215
54215
|
});
|
|
54216
54216
|
const $e = localStorage.getItem("access_token"), Ae = {
|
|
54217
54217
|
method: S.toUpperCase(),
|
|
@@ -54221,8 +54221,8 @@ ${_.description}` : _.summary || `${S.toUpperCase()} ${C[C.length - 1]}`,
|
|
|
54221
54221
|
}
|
|
54222
54222
|
}, oe = [];
|
|
54223
54223
|
if ((((ae = _.parameters) == null ? void 0 : ae.filter((Ve) => Ve.in === "query")) || []).forEach((Ve) => {
|
|
54224
|
-
const Fe = Ve.name,
|
|
54225
|
-
|
|
54224
|
+
const Fe = Ve.name, je = te[Fe];
|
|
54225
|
+
je != null && oe.push(`${Ve.name}=${encodeURIComponent(je)}`);
|
|
54226
54226
|
}), oe.length > 0 && (ne += `?${oe.join("&")}`), S === "post" || S === "put") {
|
|
54227
54227
|
const Fe = te[bodyKey];
|
|
54228
54228
|
Fe && (Ae.body = Fe);
|
|
@@ -54332,8 +54332,8 @@ function useAIAssistant({ userId: t, config: e }) {
|
|
|
54332
54332
|
prettyName: "Fetching account details",
|
|
54333
54333
|
details: "GET Partner Account",
|
|
54334
54334
|
handler: async (Ve) => {
|
|
54335
|
-
const
|
|
54336
|
-
return JSON.stringify(
|
|
54335
|
+
const je = await M({ applicationId: Ve.user_id });
|
|
54336
|
+
return JSON.stringify(je.data);
|
|
54337
54337
|
}
|
|
54338
54338
|
};
|
|
54339
54339
|
R([...Ne, ge]);
|
|
@@ -54367,7 +54367,7 @@ function useAIAssistant({ userId: t, config: e }) {
|
|
|
54367
54367
|
const Ve = `${oe.name} failed.`;
|
|
54368
54368
|
return console.error(Ve, ge), JSON.stringify({ error: Ve, details: ge instanceof Error ? ge.message : String(ge) });
|
|
54369
54369
|
}
|
|
54370
|
-
}, j = async (oe, Ne
|
|
54370
|
+
}, j = async (oe, Ne) => {
|
|
54371
54371
|
var ge, Ve, Fe;
|
|
54372
54372
|
if (Ne === 0) {
|
|
54373
54373
|
ae({ content: "I've reached my action limit for this request. Please let me know if you'd like me to continue.", timestamp: /* @__PURE__ */ new Date() }), o("");
|
|
@@ -54398,48 +54398,48 @@ function useAIAssistant({ userId: t, config: e }) {
|
|
|
54398
54398
|
}
|
|
54399
54399
|
}
|
|
54400
54400
|
o("");
|
|
54401
|
-
} catch (
|
|
54402
|
-
console.error("Error during AI interaction:",
|
|
54401
|
+
} catch (je) {
|
|
54402
|
+
console.error("Error during AI interaction:", je), ae({ content: "I'm sorry, I encountered an error. Please try again.", timestamp: /* @__PURE__ */ new Date() }), o("");
|
|
54403
54403
|
}
|
|
54404
|
-
}, te = async (oe, Ne) => {
|
|
54404
|
+
}, te = async (oe, Ne, ge = !1) => {
|
|
54405
54405
|
try {
|
|
54406
|
-
const
|
|
54406
|
+
const Ve = [{ Text: oe.trim() }];
|
|
54407
54407
|
if (Ne) {
|
|
54408
54408
|
o("Receiving attached file...");
|
|
54409
|
-
let
|
|
54409
|
+
let Be = new Blob(
|
|
54410
54410
|
[await Ne.arrayBuffer()],
|
|
54411
54411
|
{ type: Ne.type }
|
|
54412
54412
|
);
|
|
54413
|
-
const
|
|
54414
|
-
|
|
54413
|
+
const Oe = await F({ applicationId: t, body: { file: Be } }).unwrap();
|
|
54414
|
+
Ve.push({
|
|
54415
54415
|
FileData: {
|
|
54416
|
-
FileUri:
|
|
54416
|
+
FileUri: Oe,
|
|
54417
54417
|
MimeType: Ne.type
|
|
54418
54418
|
}
|
|
54419
54419
|
});
|
|
54420
54420
|
}
|
|
54421
|
-
const
|
|
54422
|
-
I(
|
|
54423
|
-
} catch (
|
|
54424
|
-
console.error("Error processing user request:",
|
|
54421
|
+
const Fe = { Role: "user", Parts: Ve }, je = [...A, Fe];
|
|
54422
|
+
I(je), await j(je, ge ? 5 : 100);
|
|
54423
|
+
} catch (Ve) {
|
|
54424
|
+
console.error("Error processing user request:", Ve), ae({ content: "I'm sorry, there was an issue with your request, especially if a file was attached. Please try again.", timestamp: /* @__PURE__ */ new Date() }), o("");
|
|
54425
54425
|
}
|
|
54426
54426
|
}, ne = (oe, Ne) => {
|
|
54427
54427
|
if (E.length > 0 && !Q) {
|
|
54428
54428
|
if (A.length === 0) {
|
|
54429
54429
|
let Ve = [];
|
|
54430
54430
|
if (e.assistantDynamicPreloading && Ve.push(`Fetch the initial (called onload in your instructions) information for me (app ID ${t}) and provide a short summary. Tell me to hold on until done. No need to suggest follow-up actions yet, I'll ask you a question right after you're done loading.`), e.assistantCachedPreloading && z.length > 0) {
|
|
54431
|
-
const Fe = z.map((
|
|
54432
|
-
RandmarSKU:
|
|
54433
|
-
RandmarTitle:
|
|
54434
|
-
CategoryCode:
|
|
54435
|
-
UPC:
|
|
54436
|
-
ManufName:
|
|
54437
|
-
CategoryName:
|
|
54438
|
-
Desc:
|
|
54439
|
-
MAP:
|
|
54440
|
-
MSRP:
|
|
54441
|
-
ManufID:
|
|
54442
|
-
MPN:
|
|
54431
|
+
const Fe = z.map((je) => ({
|
|
54432
|
+
RandmarSKU: je.RandmarSKU,
|
|
54433
|
+
RandmarTitle: je.RandmarTitle,
|
|
54434
|
+
CategoryCode: je.Category,
|
|
54435
|
+
UPC: je.UPC,
|
|
54436
|
+
ManufName: je.ManufacturerName,
|
|
54437
|
+
CategoryName: je.ProductType,
|
|
54438
|
+
Desc: je.BodyHTML,
|
|
54439
|
+
MAP: je.MAP,
|
|
54440
|
+
MSRP: je.MSRP,
|
|
54441
|
+
ManufID: je.ManufacturerId,
|
|
54442
|
+
MPN: je.MPN
|
|
54443
54443
|
}));
|
|
54444
54444
|
Ve.push(`Here are the current best-selling products: ${JSON.stringify(Fe)}.`);
|
|
54445
54445
|
}
|
|
@@ -61468,7 +61468,7 @@ function createDOMPurify() {
|
|
|
61468
61468
|
TMPLIT_EXPR: ge,
|
|
61469
61469
|
DATA_ATTR: Ve,
|
|
61470
61470
|
ARIA_ATTR: Fe,
|
|
61471
|
-
IS_SCRIPT_OR_DATA:
|
|
61471
|
+
IS_SCRIPT_OR_DATA: je,
|
|
61472
61472
|
ATTR_WHITESPACE: Be,
|
|
61473
61473
|
CUSTOM_ELEMENT: Oe
|
|
61474
61474
|
} = EXPRESSIONS;
|
|
@@ -61657,7 +61657,7 @@ function createDOMPurify() {
|
|
|
61657
61657
|
} else if (!mr[Rt]) {
|
|
61658
61658
|
if (!regExpTest(He, stringReplace(zt, Be, ""))) {
|
|
61659
61659
|
if (!((Rt === "src" || Rt === "xlink:href" || Rt === "href") && rt !== "script" && stringIndexOf(zt, "data:") === 0 && Jt[rt])) {
|
|
61660
|
-
if (!(at && !regExpTest(
|
|
61660
|
+
if (!(at && !regExpTest(je, stringReplace(zt, Be, "")))) {
|
|
61661
61661
|
if (zt)
|
|
61662
61662
|
return !1;
|
|
61663
61663
|
}
|
|
@@ -62250,7 +62250,7 @@ const fetchGeminiResponse = async (t, e, n, o, l = 3) => {
|
|
|
62250
62250
|
}, 50);
|
|
62251
62251
|
})();
|
|
62252
62252
|
}, [b, o, t]);
|
|
62253
|
-
const [
|
|
62253
|
+
const [je, Be] = useState("approved"), [Oe, He] = useState([t, ASSISTANT_ID]), [We, Ue] = useState(""), [Ke, tt] = useState(null), [Ge, Qe] = useState([]), [Xe, st] = useState(""), [Ze, at] = useState(null), lt = useRef(null), ze = useRef(null), [yt, et] = useState(null), [Ct, $t] = useState([]), [Ft, Wt] = useState([]), Vt = n || ze, Je = useRef(null), { toast: nt } = useToast(), ot = () => Ge.find((it) => it.partner1 === (Oe == null ? void 0 : Oe[0]) && it.partner2 === (Oe == null ? void 0 : Oe[1])), pt = () => (Oe == null ? void 0 : Oe[0]) === ASSISTANT_ID || (Oe == null ? void 0 : Oe[1]) === ASSISTANT_ID;
|
|
62254
62254
|
function ft() {
|
|
62255
62255
|
const it = ot();
|
|
62256
62256
|
it && (pt() || ne({ routeApplicationId: t, conversationId: it.conversationID }));
|
|
@@ -62261,8 +62261,8 @@ const fetchGeminiResponse = async (t, e, n, o, l = 3) => {
|
|
|
62261
62261
|
const dt = useMemo(() => Ge.filter((it) => {
|
|
62262
62262
|
if (it.partner1 === ASSISTANT_ID || it.partner2 === ASSISTANT_ID) return !0;
|
|
62263
62263
|
const Xt = it.name.toLowerCase().includes(Xe.toLowerCase());
|
|
62264
|
-
return
|
|
62265
|
-
}), [Ge, Xe,
|
|
62264
|
+
return je === "approved" ? Xt && !it.pending : je === "pending" ? Xt && it.pending : Xt;
|
|
62265
|
+
}), [Ge, Xe, je]);
|
|
62266
62266
|
useEffect(() => {
|
|
62267
62267
|
var it;
|
|
62268
62268
|
yt !== null && (nt({ title: "File attached", description: "Add your instruction before sending.", variant: "success" }), (it = Vt.current) == null || it.focus());
|
|
@@ -62496,7 +62496,7 @@ const fetchGeminiResponse = async (t, e, n, o, l = 3) => {
|
|
|
62496
62496
|
}
|
|
62497
62497
|
)
|
|
62498
62498
|
] }) }),
|
|
62499
|
-
/* @__PURE__ */ jsx(Tabs, { value:
|
|
62499
|
+
/* @__PURE__ */ jsx(Tabs, { value: je, onValueChange: Be, className: "w-full mb-1", children: /* @__PURE__ */ jsxs(TabsList, { className: "grid grid-cols-6 h-9 mx-2", children: [
|
|
62500
62500
|
/* @__PURE__ */ jsx(TabsTrigger, { value: "approved", className: "text-xs col-span-3", children: "Approved" }),
|
|
62501
62501
|
/* @__PURE__ */ jsxs(TabsTrigger, { value: "pending", className: "text-xs col-span-3", children: [
|
|
62502
62502
|
"Pending ",
|
|
@@ -62517,7 +62517,7 @@ const fetchGeminiResponse = async (t, e, n, o, l = 3) => {
|
|
|
62517
62517
|
] }) : "Chat with Randmar"
|
|
62518
62518
|
},
|
|
62519
62519
|
"b1"
|
|
62520
|
-
) :
|
|
62520
|
+
) : je === "approved" && Ge.length >= 5 ? null : /* @__PURE__ */ jsx(
|
|
62521
62521
|
Link,
|
|
62522
62522
|
{
|
|
62523
62523
|
to: `${window.location.hostname === "dashboard.randmar.io" ? "" : "https://dashboard.randmar.io"}/${t}/ExploreManufacturers`,
|
|
@@ -62605,7 +62605,7 @@ const fetchGeminiResponse = async (t, e, n, o, l = 3) => {
|
|
|
62605
62605
|
onKeyDown: (it) => {
|
|
62606
62606
|
it.key !== "Enter" || it.shiftKey || (it.preventDefault(), mr());
|
|
62607
62607
|
},
|
|
62608
|
-
className: Zt != null && Zt.pending ? "collapse" : "flex-1 resize-none",
|
|
62608
|
+
className: Zt != null && Zt.pending ? "collapse" : "flex-1 resize-none field-sizing-content max-h-[30em]",
|
|
62609
62609
|
disabled: !Ne || (Zt == null ? void 0 : Zt.pending)
|
|
62610
62610
|
}
|
|
62611
62611
|
),
|
|
@@ -63085,12 +63085,12 @@ var getValueAndMessage = (t) => isObject(t) && !isRegex(t) ? t : {
|
|
|
63085
63085
|
const z = g ? g[0] : f, Q = (oe) => {
|
|
63086
63086
|
l && z.reportValidity && (z.setCustomValidity(isBoolean(oe) ? "" : oe || ""), z.reportValidity());
|
|
63087
63087
|
}, O = {}, j = isRadioInput(f), te = isCheckBoxInput(f), ne = j || te, ae = (M || isFileInput(f)) && isUndefined(f.value) && isUndefined(F) || isHTMLElement(f) && f.value === "" || F === "" || Array.isArray(F) && !F.length, $e = appendErrors.bind(null, I, o, O), Ae = (oe, Ne, ge, Ve = INPUT_VALIDATION_RULES.maxLength, Fe = INPUT_VALIDATION_RULES.minLength) => {
|
|
63088
|
-
const
|
|
63088
|
+
const je = oe ? Ne : ge;
|
|
63089
63089
|
O[I] = {
|
|
63090
63090
|
type: oe ? Ve : Fe,
|
|
63091
|
-
message:
|
|
63091
|
+
message: je,
|
|
63092
63092
|
ref: f,
|
|
63093
|
-
...$e(oe ? Ve : Fe,
|
|
63093
|
+
...$e(oe ? Ve : Fe, je)
|
|
63094
63094
|
};
|
|
63095
63095
|
};
|
|
63096
63096
|
if (d ? !Array.isArray(F) || !F.length : b && (!ne && (ae || isNullOrUndefined(F)) || isBoolean(F) && !F || te && !getCheckboxValue(g).isValid || j && !getRadioValue(g).isValid)) {
|
|
@@ -63110,8 +63110,8 @@ var getValueAndMessage = (t) => isObject(t) && !isRegex(t) ? t : {
|
|
|
63110
63110
|
const Fe = f.valueAsNumber || F && +F;
|
|
63111
63111
|
isNullOrUndefined(ge.value) || (oe = Fe > ge.value), isNullOrUndefined(Ve.value) || (Ne = Fe < Ve.value);
|
|
63112
63112
|
} else {
|
|
63113
|
-
const Fe = f.valueAsDate || new Date(F),
|
|
63114
|
-
isString(ge.value) && F && (oe = Be ?
|
|
63113
|
+
const Fe = f.valueAsDate || new Date(F), je = (He) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + He), Be = f.type == "time", Oe = f.type == "week";
|
|
63114
|
+
isString(ge.value) && F && (oe = Be ? je(F) > je(ge.value) : Oe ? F > ge.value : Fe > new Date(ge.value)), isString(Ve.value) && F && (Ne = Be ? je(F) < je(Ve.value) : Oe ? F < Ve.value : Fe < new Date(Ve.value));
|
|
63115
63115
|
}
|
|
63116
63116
|
if ((oe || Ne) && (Ae(!!oe, ge.message, Ve.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min), !o))
|
|
63117
63117
|
return Q(O[I].message), O;
|
|
@@ -63369,7 +63369,7 @@ function createFormControl(t = {}) {
|
|
|
63369
63369
|
name: f.mount ? Je : void 0,
|
|
63370
63370
|
values: cloneObject(d)
|
|
63371
63371
|
});
|
|
63372
|
-
},
|
|
63372
|
+
}, je = async (Je) => {
|
|
63373
63373
|
f.mount = !0;
|
|
63374
63374
|
const nt = Je.target;
|
|
63375
63375
|
let ot = nt.name, pt = !0;
|
|
@@ -63494,8 +63494,8 @@ function createFormControl(t = {}) {
|
|
|
63494
63494
|
pattern: getRuleValue(nt.pattern)
|
|
63495
63495
|
} : {},
|
|
63496
63496
|
name: Je,
|
|
63497
|
-
onChange:
|
|
63498
|
-
onBlur:
|
|
63497
|
+
onChange: je,
|
|
63498
|
+
onBlur: je,
|
|
63499
63499
|
ref: (ft) => {
|
|
63500
63500
|
if (ft) {
|
|
63501
63501
|
Ze(Je, nt), ot = get(o, Je);
|
|
@@ -63921,7 +63921,7 @@ function requireReactIs_development() {
|
|
|
63921
63921
|
}
|
|
63922
63922
|
}
|
|
63923
63923
|
}
|
|
63924
|
-
var O = b, j = S, te = g, ne = f, ae = e, $e = _, Ae = o, oe = A, Ne = R, ge = n, Ve = d, Fe = l,
|
|
63924
|
+
var O = b, j = S, te = g, ne = f, ae = e, $e = _, Ae = o, oe = A, Ne = R, ge = n, Ve = d, Fe = l, je = C, Be = !1;
|
|
63925
63925
|
function Oe(ze) {
|
|
63926
63926
|
return Be || (Be = !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.")), He(ze) || Q(ze) === b;
|
|
63927
63927
|
}
|
|
@@ -63961,7 +63961,7 @@ function requireReactIs_development() {
|
|
|
63961
63961
|
function lt(ze) {
|
|
63962
63962
|
return Q(ze) === C;
|
|
63963
63963
|
}
|
|
63964
|
-
reactIs_development.AsyncMode = O, reactIs_development.ConcurrentMode = j, reactIs_development.ContextConsumer = te, reactIs_development.ContextProvider = ne, reactIs_development.Element = ae, reactIs_development.ForwardRef = $e, reactIs_development.Fragment = Ae, reactIs_development.Lazy = oe, reactIs_development.Memo = Ne, reactIs_development.Portal = ge, reactIs_development.Profiler = Ve, reactIs_development.StrictMode = Fe, reactIs_development.Suspense =
|
|
63964
|
+
reactIs_development.AsyncMode = O, reactIs_development.ConcurrentMode = j, reactIs_development.ContextConsumer = te, reactIs_development.ContextProvider = ne, reactIs_development.Element = ae, reactIs_development.ForwardRef = $e, reactIs_development.Fragment = Ae, reactIs_development.Lazy = oe, reactIs_development.Memo = Ne, reactIs_development.Portal = ge, reactIs_development.Profiler = Ve, reactIs_development.StrictMode = Fe, reactIs_development.Suspense = je, reactIs_development.isAsyncMode = Oe, reactIs_development.isConcurrentMode = He, reactIs_development.isContextConsumer = We, reactIs_development.isContextProvider = Ue, reactIs_development.isElement = Ke, reactIs_development.isForwardRef = tt, reactIs_development.isFragment = Ge, reactIs_development.isLazy = Qe, reactIs_development.isMemo = Xe, reactIs_development.isPortal = st, reactIs_development.isProfiler = Ze, reactIs_development.isStrictMode = at, reactIs_development.isSuspense = lt, reactIs_development.isValidElementType = z, reactIs_development.typeOf = Q;
|
|
63965
63965
|
})()), reactIs_development;
|
|
63966
63966
|
}
|
|
63967
63967
|
var hasRequiredReactIs;
|
|
@@ -64714,7 +64714,7 @@ function ManufacturerReportsSection({ manufacturerId: t, userEmail: e, isLoading
|
|
|
64714
64714
|
/* @__PURE__ */ jsx(CardTitle, { className: "text-1xl font-bold", children: "Reports" }),
|
|
64715
64715
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Download essential business reports, from your Open Orders & Sales Report, to your Inventory Reports." })
|
|
64716
64716
|
] }),
|
|
64717
|
-
/* @__PURE__ */ jsx(CardContent, { className: "space-y-6", children: n ? Array.from({ length: 3 }).map((Fe,
|
|
64717
|
+
/* @__PURE__ */ jsx(CardContent, { className: "space-y-6", children: n ? Array.from({ length: 3 }).map((Fe, je) => /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
64718
64718
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-48" }),
|
|
64719
64719
|
Array.from({ length: 2 }).map((Be, Oe) => /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-4 rounded-lg border p-4", children: [
|
|
64720
64720
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-9 rounded-full" }),
|
|
@@ -64724,17 +64724,17 @@ function ManufacturerReportsSection({ manufacturerId: t, userEmail: e, isLoading
|
|
|
64724
64724
|
] }),
|
|
64725
64725
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-24" })
|
|
64726
64726
|
] }, Oe))
|
|
64727
|
-
] },
|
|
64727
|
+
] }, je)) : A.map((Fe) => /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
64728
64728
|
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold", children: Fe.name }),
|
|
64729
|
-
Fe.reports.map((
|
|
64729
|
+
Fe.reports.map((je) => /* @__PURE__ */ jsxs(
|
|
64730
64730
|
"div",
|
|
64731
64731
|
{
|
|
64732
64732
|
className: "flex items-start gap-4 rounded-lg border p-4 transition-colors hover:bg-gray-100",
|
|
64733
64733
|
children: [
|
|
64734
|
-
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-primary/10 p-2", children: /* @__PURE__ */ jsx(
|
|
64734
|
+
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-primary/10 p-2", children: /* @__PURE__ */ jsx(je.icon, { className: "h-5 w-5 text-primary" }) }),
|
|
64735
64735
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
64736
|
-
/* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold", children:
|
|
64737
|
-
/* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children:
|
|
64736
|
+
/* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold", children: je.title }),
|
|
64737
|
+
/* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: je.description })
|
|
64738
64738
|
] }),
|
|
64739
64739
|
/* @__PURE__ */ jsxs(
|
|
64740
64740
|
Button$1,
|
|
@@ -64742,7 +64742,7 @@ function ManufacturerReportsSection({ manufacturerId: t, userEmail: e, isLoading
|
|
|
64742
64742
|
variant: "outline",
|
|
64743
64743
|
size: "sm",
|
|
64744
64744
|
className: "flex items-center gap-1",
|
|
64745
|
-
onClick: () => oe(
|
|
64745
|
+
onClick: () => oe(je),
|
|
64746
64746
|
children: [
|
|
64747
64747
|
/* @__PURE__ */ jsx(Download, { className: "h-4 w-4" }),
|
|
64748
64748
|
"Request"
|
|
@@ -64751,7 +64751,7 @@ function ManufacturerReportsSection({ manufacturerId: t, userEmail: e, isLoading
|
|
|
64751
64751
|
)
|
|
64752
64752
|
]
|
|
64753
64753
|
},
|
|
64754
|
-
|
|
64754
|
+
je.id
|
|
64755
64755
|
))
|
|
64756
64756
|
] }, Fe.name)) }),
|
|
64757
64757
|
/* @__PURE__ */ jsx(Dialog, { open: b, onOpenChange: Ne, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
@@ -65723,11 +65723,11 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
65723
65723
|
{
|
|
65724
65724
|
scope: t.__scopeSelect,
|
|
65725
65725
|
onNativeOptionAdd: React.useCallback((Fe) => {
|
|
65726
|
-
ge((
|
|
65726
|
+
ge((je) => new Set(je).add(Fe));
|
|
65727
65727
|
}, []),
|
|
65728
65728
|
onNativeOptionRemove: React.useCallback((Fe) => {
|
|
65729
|
-
ge((
|
|
65730
|
-
const Be = new Set(
|
|
65729
|
+
ge((je) => {
|
|
65730
|
+
const Be = new Set(je);
|
|
65731
65731
|
return Be.delete(Fe), Be;
|
|
65732
65732
|
});
|
|
65733
65733
|
}, []),
|
|
@@ -65879,13 +65879,13 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
65879
65879
|
if (ze === lt || (ze == null || ze.scrollIntoView({ block: "nearest" }), ze === st && O && (O.scrollTop = 0), ze === at && O && (O.scrollTop = O.scrollHeight), ze == null || ze.focus(), document.activeElement !== lt)) return;
|
|
65880
65880
|
},
|
|
65881
65881
|
[oe, O]
|
|
65882
|
-
),
|
|
65882
|
+
), je = React.useCallback(
|
|
65883
65883
|
() => Fe([ne, z]),
|
|
65884
65884
|
[Fe, ne, z]
|
|
65885
65885
|
);
|
|
65886
65886
|
React.useEffect(() => {
|
|
65887
|
-
Ne &&
|
|
65888
|
-
}, [Ne,
|
|
65887
|
+
Ne && je();
|
|
65888
|
+
}, [Ne, je]);
|
|
65889
65889
|
const { onOpenChange: Be, triggerPointerDownPosRef: Oe } = F;
|
|
65890
65890
|
React.useEffect(() => {
|
|
65891
65891
|
if (z) {
|
|
@@ -65947,7 +65947,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
65947
65947
|
selectedItem: ne,
|
|
65948
65948
|
onItemLeave: Ke,
|
|
65949
65949
|
itemTextRefCallback: tt,
|
|
65950
|
-
focusSelectedItem:
|
|
65950
|
+
focusSelectedItem: je,
|
|
65951
65951
|
selectedItemText: $e,
|
|
65952
65952
|
position: o,
|
|
65953
65953
|
isPositioned: Ne,
|
|
@@ -66037,14 +66037,14 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
66037
66037
|
]);
|
|
66038
66038
|
g.style.minWidth = et + "px", g.style.right = Ft + "px";
|
|
66039
66039
|
}
|
|
66040
|
-
const Ae = E(), oe = window.innerHeight - CONTENT_MARGIN * 2, Ne = I.scrollHeight, ge = window.getComputedStyle(S), Ve = parseInt(ge.borderTopWidth, 10), Fe = parseInt(ge.paddingTop, 10),
|
|
66040
|
+
const Ae = E(), oe = window.innerHeight - CONTENT_MARGIN * 2, Ne = I.scrollHeight, ge = window.getComputedStyle(S), Ve = parseInt(ge.borderTopWidth, 10), Fe = parseInt(ge.paddingTop, 10), je = parseInt(ge.borderBottomWidth, 10), Be = parseInt(ge.paddingBottom, 10), Oe = Ve + Fe + Ne + Be + je, He = Math.min(M.offsetHeight * 5, Oe), We = window.getComputedStyle(I), Ue = parseInt(We.paddingTop, 10), Ke = parseInt(We.paddingBottom, 10), tt = te.top + te.height / 2 - CONTENT_MARGIN, Ge = oe - tt, Qe = M.offsetHeight / 2, Xe = M.offsetTop + Qe, st = Ve + Fe + Xe, Ze = Oe - st;
|
|
66041
66041
|
if (st <= tt) {
|
|
66042
66042
|
const lt = Ae.length > 0 && M === Ae[Ae.length - 1].ref.current;
|
|
66043
66043
|
g.style.bottom = "0px";
|
|
66044
66044
|
const ze = S.clientHeight - I.offsetTop - I.offsetHeight, yt = Math.max(
|
|
66045
66045
|
Ge,
|
|
66046
66046
|
Qe + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
66047
|
-
(lt ? Ke : 0) + ze +
|
|
66047
|
+
(lt ? Ke : 0) + ze + je
|
|
66048
66048
|
), et = st + yt;
|
|
66049
66049
|
g.style.height = et + "px";
|
|
66050
66050
|
} else {
|
|
@@ -67137,17 +67137,17 @@ function BillingCard({ appID: t, reseller: e, isLoading: n, withoutReports: o, u
|
|
|
67137
67137
|
], [$e] = useLazyGetV4ResellerByRouteResellerIdDocumentAndDocumentNumberPdfQuery(), Ae = async (Ve) => {
|
|
67138
67138
|
Ve ? _(!0) : E(!0);
|
|
67139
67139
|
try {
|
|
67140
|
-
const
|
|
67140
|
+
const je = (await $e({
|
|
67141
67141
|
routeResellerId: t,
|
|
67142
67142
|
documentNumber: `ST${t}`
|
|
67143
67143
|
})).data;
|
|
67144
|
-
if (!
|
|
67144
|
+
if (!je)
|
|
67145
67145
|
throw new Error("No data received for download.");
|
|
67146
67146
|
if (Ve)
|
|
67147
|
-
window.open(
|
|
67147
|
+
window.open(je);
|
|
67148
67148
|
else {
|
|
67149
67149
|
const Be = document.createElement("a");
|
|
67150
|
-
Be.href =
|
|
67150
|
+
Be.href = je, Be.download = `ST${t}.pdf`, document.body.appendChild(Be), Be.click(), Be.remove();
|
|
67151
67151
|
}
|
|
67152
67152
|
f({
|
|
67153
67153
|
title: "Success",
|
|
@@ -67419,9 +67419,9 @@ $10 with opportunities under $1,000` : t === "D" ? "$15 under $1,500" : t === "E
|
|
|
67419
67419
|
useEffect(() => {
|
|
67420
67420
|
M(E((n == null ? void 0 : n.Priority) ?? "")), F(R((n == null ? void 0 : n.ShippingProfile) ?? "")), Q(A(n == null ? void 0 : n.PriceProfile));
|
|
67421
67421
|
}, [n]);
|
|
67422
|
-
const ne = async (Ve, Fe,
|
|
67422
|
+
const ne = async (Ve, Fe, je, Be) => {
|
|
67423
67423
|
try {
|
|
67424
|
-
(await _({ applicationId: o, fieldName: Ve, newValue: Fe })).error ? d({ title: "Error", description: Be, variant: "destructive" }) : d({ title: "Success", description:
|
|
67424
|
+
(await _({ applicationId: o, fieldName: Ve, newValue: Fe })).error ? d({ title: "Error", description: Be, variant: "destructive" }) : d({ title: "Success", description: je, variant: "success" });
|
|
67425
67425
|
} catch {
|
|
67426
67426
|
d({ title: "Error", description: "An unexpected error occurred", variant: "destructive" });
|
|
67427
67427
|
}
|
|
@@ -71585,10 +71585,10 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
71585
71585
|
6: b + " const class extends export import super"
|
|
71586
71586
|
}, _ = /^in(stanceof)?$/, C = new RegExp("[" + f + "]"), E = new RegExp("[" + f + d + "]");
|
|
71587
71587
|
function R(q, se) {
|
|
71588
|
-
for (var Le = 65536,
|
|
71589
|
-
if (Le += se[
|
|
71588
|
+
for (var Le = 65536, qe = 0; qe < se.length; qe += 2) {
|
|
71589
|
+
if (Le += se[qe], Le > q)
|
|
71590
71590
|
return !1;
|
|
71591
|
-
if (Le += se[
|
|
71591
|
+
if (Le += se[qe + 1], Le >= q)
|
|
71592
71592
|
return !0;
|
|
71593
71593
|
}
|
|
71594
71594
|
return !1;
|
|
@@ -71693,16 +71693,16 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
71693
71693
|
}
|
|
71694
71694
|
function $e(q, se, Le) {
|
|
71695
71695
|
Le === void 0 && (Le = q.length);
|
|
71696
|
-
for (var
|
|
71697
|
-
var Ye = q.charCodeAt(
|
|
71696
|
+
for (var qe = se; qe < Le; qe++) {
|
|
71697
|
+
var Ye = q.charCodeAt(qe);
|
|
71698
71698
|
if (ae(Ye))
|
|
71699
|
-
return
|
|
71699
|
+
return qe < Le - 1 && Ye === 13 && q.charCodeAt(qe + 1) === 10 ? qe + 2 : qe + 1;
|
|
71700
71700
|
}
|
|
71701
71701
|
return -1;
|
|
71702
71702
|
}
|
|
71703
71703
|
var Ae = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, oe = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Ne = Object.prototype, ge = Ne.hasOwnProperty, Ve = Ne.toString, Fe = Object.hasOwn || function(q, se) {
|
|
71704
71704
|
return ge.call(q, se);
|
|
71705
|
-
},
|
|
71705
|
+
}, je = Array.isArray || function(q) {
|
|
71706
71706
|
return Ve.call(q) === "[object Array]";
|
|
71707
71707
|
}, Be = /* @__PURE__ */ Object.create(null);
|
|
71708
71708
|
function Oe(q) {
|
|
@@ -71717,15 +71717,15 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
71717
71717
|
Ue.prototype.offset = function(se) {
|
|
71718
71718
|
return new Ue(this.line, this.column + se);
|
|
71719
71719
|
};
|
|
71720
|
-
var Ke = function(se, Le,
|
|
71721
|
-
this.start = Le, this.end =
|
|
71720
|
+
var Ke = function(se, Le, qe) {
|
|
71721
|
+
this.start = Le, this.end = qe, se.sourceFile !== null && (this.source = se.sourceFile);
|
|
71722
71722
|
};
|
|
71723
71723
|
function tt(q, se) {
|
|
71724
|
-
for (var Le = 1,
|
|
71725
|
-
var Ye = $e(q,
|
|
71724
|
+
for (var Le = 1, qe = 0; ; ) {
|
|
71725
|
+
var Ye = $e(q, qe, se);
|
|
71726
71726
|
if (Ye < 0)
|
|
71727
|
-
return new Ue(Le, se -
|
|
71728
|
-
++Le,
|
|
71727
|
+
return new Ue(Le, se - qe);
|
|
71728
|
+
++Le, qe = Ye;
|
|
71729
71729
|
}
|
|
71730
71730
|
}
|
|
71731
71731
|
var Ge = {
|
|
@@ -71754,19 +71754,19 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
71754
71754
|
for (var Le in Ge)
|
|
71755
71755
|
se[Le] = q && Fe(q, Le) ? q[Le] : Ge[Le];
|
|
71756
71756
|
if (se.ecmaVersion === "latest" ? se.ecmaVersion = 1e8 : se.ecmaVersion == null ? (!Qe && typeof console == "object" && console.warn && (Qe = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
71757
|
-
Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion = 11) : se.ecmaVersion >= 2015 && (se.ecmaVersion -= 2009), se.allowReserved == null && (se.allowReserved = se.ecmaVersion < 5), (!q || q.allowHashBang == null) && (se.allowHashBang = se.ecmaVersion >= 14),
|
|
71758
|
-
var
|
|
71757
|
+
Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion = 11) : se.ecmaVersion >= 2015 && (se.ecmaVersion -= 2009), se.allowReserved == null && (se.allowReserved = se.ecmaVersion < 5), (!q || q.allowHashBang == null) && (se.allowHashBang = se.ecmaVersion >= 14), je(se.onToken)) {
|
|
71758
|
+
var qe = se.onToken;
|
|
71759
71759
|
se.onToken = function(Ye) {
|
|
71760
|
-
return
|
|
71760
|
+
return qe.push(Ye);
|
|
71761
71761
|
};
|
|
71762
71762
|
}
|
|
71763
|
-
return
|
|
71763
|
+
return je(se.onComment) && (se.onComment = st(se, se.onComment)), se;
|
|
71764
71764
|
}
|
|
71765
71765
|
function st(q, se) {
|
|
71766
|
-
return function(Le,
|
|
71766
|
+
return function(Le, qe, Ye, ct, ut, Mt) {
|
|
71767
71767
|
var Dt = {
|
|
71768
71768
|
type: Le ? "Block" : "Line",
|
|
71769
|
-
value:
|
|
71769
|
+
value: qe,
|
|
71770
71770
|
start: Ye,
|
|
71771
71771
|
end: ct
|
|
71772
71772
|
};
|
|
@@ -71777,13 +71777,13 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
71777
71777
|
function Vt(q, se) {
|
|
71778
71778
|
return at | (q ? lt : 0) | (se ? ze : 0);
|
|
71779
71779
|
}
|
|
71780
|
-
var Je = 0, nt = 1, ot = 2, pt = 3, ft = 4, dt = 5, mt = function(se, Le,
|
|
71780
|
+
var Je = 0, nt = 1, ot = 2, pt = 3, ft = 4, dt = 5, mt = function(se, Le, qe) {
|
|
71781
71781
|
this.options = se = Xe(se), this.sourceFile = se.sourceFile, this.keywords = Oe(S[se.ecmaVersion >= 6 ? 6 : se.sourceType === "module" ? "5module" : 5]);
|
|
71782
71782
|
var Ye = "";
|
|
71783
71783
|
se.allowReserved !== !0 && (Ye = g[se.ecmaVersion >= 6 ? 6 : se.ecmaVersion === 5 ? 5 : 3], se.sourceType === "module" && (Ye += " await")), this.reservedWords = Oe(Ye);
|
|
71784
71784
|
var ct = (Ye ? Ye + " " : "") + g.strict;
|
|
71785
|
-
this.reservedWordsStrict = Oe(ct), this.reservedWordsStrictBind = Oe(ct + " " + g.strictBind), this.input = String(Le), this.containsEsc = !1,
|
|
71786
|
-
`,
|
|
71785
|
+
this.reservedWordsStrict = Oe(ct), this.reservedWordsStrictBind = Oe(ct + " " + g.strictBind), this.input = String(Le), this.containsEsc = !1, qe ? (this.pos = qe, this.lineStart = this.input.lastIndexOf(`
|
|
71786
|
+
`, qe - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(te).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = j.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 = se.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 && se.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(Ze), this.regexpState = null, this.privateNameStack = [];
|
|
71787
71787
|
}, Ut = { 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 } };
|
|
71788
71788
|
mt.prototype.parse = function() {
|
|
71789
71789
|
var se = this.options.program || this.startNode();
|
|
@@ -71818,13 +71818,13 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
71818
71818
|
}, mt.extend = function() {
|
|
71819
71819
|
for (var se = [], Le = arguments.length; Le--; )
|
|
71820
71820
|
se[Le] = arguments[Le];
|
|
71821
|
-
for (var
|
|
71822
|
-
|
|
71823
|
-
return
|
|
71821
|
+
for (var qe = this, Ye = 0; Ye < se.length; Ye++)
|
|
71822
|
+
qe = se[Ye](qe);
|
|
71823
|
+
return qe;
|
|
71824
71824
|
}, mt.parse = function(se, Le) {
|
|
71825
71825
|
return new this(Le, se).parse();
|
|
71826
|
-
}, mt.parseExpressionAt = function(se, Le,
|
|
71827
|
-
var Ye = new this(
|
|
71826
|
+
}, mt.parseExpressionAt = function(se, Le, qe) {
|
|
71827
|
+
var Ye = new this(qe, se, Le);
|
|
71828
71828
|
return Ye.nextToken(), Ye.parseExpression();
|
|
71829
71829
|
}, mt.tokenizer = function(se, Le) {
|
|
71830
71830
|
return new this(Le, se);
|
|
@@ -71840,8 +71840,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
71840
71840
|
return !1;
|
|
71841
71841
|
if ((se[1] || se[2]) === "use strict") {
|
|
71842
71842
|
oe.lastIndex = q + se[0].length;
|
|
71843
|
-
var Le = oe.exec(this.input),
|
|
71844
|
-
return Ye === ";" || Ye === "}" || te.test(Le[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(Ye) || Ye === "!" && this.input.charAt(
|
|
71843
|
+
var Le = oe.exec(this.input), qe = Le.index + Le[0].length, Ye = this.input.charAt(qe);
|
|
71844
|
+
return Ye === ";" || Ye === "}" || te.test(Le[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(Ye) || Ye === "!" && this.input.charAt(qe + 1) === "=");
|
|
71845
71845
|
}
|
|
71846
71846
|
q += se[0].length, oe.lastIndex = q, q += oe.exec(this.input)[0].length, this.input[q] === ";" && q++;
|
|
71847
71847
|
}
|
|
@@ -71880,10 +71880,10 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
71880
71880
|
}, Jt.checkExpressionErrors = function(q, se) {
|
|
71881
71881
|
if (!q)
|
|
71882
71882
|
return !1;
|
|
71883
|
-
var Le = q.shorthandAssign,
|
|
71883
|
+
var Le = q.shorthandAssign, qe = q.doubleProto;
|
|
71884
71884
|
if (!se)
|
|
71885
|
-
return Le >= 0 ||
|
|
71886
|
-
Le >= 0 && this.raise(Le, "Shorthand property assignments are valid only in destructuring patterns"),
|
|
71885
|
+
return Le >= 0 || qe >= 0;
|
|
71886
|
+
Le >= 0 && this.raise(Le, "Shorthand property assignments are valid only in destructuring patterns"), qe >= 0 && this.raiseRecoverable(qe, "Redefinition of __proto__ property");
|
|
71887
71887
|
}, Jt.checkYieldAwaitInDefaultParams = function() {
|
|
71888
71888
|
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");
|
|
71889
71889
|
}, Jt.isSimpleAssignTarget = function(q) {
|
|
@@ -71897,8 +71897,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
71897
71897
|
q.body.push(Le);
|
|
71898
71898
|
}
|
|
71899
71899
|
if (this.inModule)
|
|
71900
|
-
for (var
|
|
71901
|
-
var ct = Ye[
|
|
71900
|
+
for (var qe = 0, Ye = Object.keys(this.undefinedExports); qe < Ye.length; qe += 1) {
|
|
71901
|
+
var ct = Ye[qe];
|
|
71902
71902
|
this.raiseRecoverable(this.undefinedExports[ct].start, "Export '" + ct + "' is not defined");
|
|
71903
71903
|
}
|
|
71904
71904
|
return this.adaptDirectivePrologue(q.body), this.next(), q.sourceType = this.options.sourceType, this.finishNode(q, "Program");
|
|
@@ -71908,17 +71908,17 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
71908
71908
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
71909
71909
|
return !1;
|
|
71910
71910
|
oe.lastIndex = this.pos;
|
|
71911
|
-
var se = oe.exec(this.input), Le = this.pos + se[0].length,
|
|
71912
|
-
if (
|
|
71911
|
+
var se = oe.exec(this.input), Le = this.pos + se[0].length, qe = this.input.charCodeAt(Le);
|
|
71912
|
+
if (qe === 91 || qe === 92)
|
|
71913
71913
|
return !0;
|
|
71914
71914
|
if (q)
|
|
71915
71915
|
return !1;
|
|
71916
|
-
if (
|
|
71916
|
+
if (qe === 123 || qe > 55295 && qe < 56320)
|
|
71917
71917
|
return !0;
|
|
71918
|
-
if (A(
|
|
71919
|
-
for (var Ye = Le + 1; I(
|
|
71918
|
+
if (A(qe, !0)) {
|
|
71919
|
+
for (var Ye = Le + 1; I(qe = this.input.charCodeAt(Ye), !0); )
|
|
71920
71920
|
++Ye;
|
|
71921
|
-
if (
|
|
71921
|
+
if (qe === 92 || qe > 55295 && qe < 56320)
|
|
71922
71922
|
return !0;
|
|
71923
71923
|
var ct = this.input.slice(Le, Ye);
|
|
71924
71924
|
if (!_.test(ct))
|
|
@@ -71932,11 +71932,11 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
71932
71932
|
var q = oe.exec(this.input), se = this.pos + q[0].length, Le;
|
|
71933
71933
|
return !te.test(this.input.slice(this.pos, se)) && this.input.slice(se, se + 8) === "function" && (se + 8 === this.input.length || !(I(Le = this.input.charCodeAt(se + 8)) || Le > 55295 && Le < 56320));
|
|
71934
71934
|
}, qt.parseStatement = function(q, se, Le) {
|
|
71935
|
-
var
|
|
71936
|
-
switch (this.isLet(q) && (
|
|
71935
|
+
var qe = this.type, Ye = this.startNode(), ct;
|
|
71936
|
+
switch (this.isLet(q) && (qe = j._var, ct = "let"), qe) {
|
|
71937
71937
|
case j._break:
|
|
71938
71938
|
case j._continue:
|
|
71939
|
-
return this.parseBreakContinueStatement(Ye,
|
|
71939
|
+
return this.parseBreakContinueStatement(Ye, qe.keyword);
|
|
71940
71940
|
case j._debugger:
|
|
71941
71941
|
return this.parseDebuggerStatement(Ye);
|
|
71942
71942
|
case j._do:
|
|
@@ -71970,28 +71970,28 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
71970
71970
|
return this.parseEmptyStatement(Ye);
|
|
71971
71971
|
case j._export:
|
|
71972
71972
|
case j._import:
|
|
71973
|
-
if (this.options.ecmaVersion > 10 &&
|
|
71973
|
+
if (this.options.ecmaVersion > 10 && qe === j._import) {
|
|
71974
71974
|
oe.lastIndex = this.pos;
|
|
71975
71975
|
var ut = oe.exec(this.input), Mt = this.pos + ut[0].length, Dt = this.input.charCodeAt(Mt);
|
|
71976
71976
|
if (Dt === 40 || Dt === 46)
|
|
71977
71977
|
return this.parseExpressionStatement(Ye, this.parseExpression());
|
|
71978
71978
|
}
|
|
71979
|
-
return this.options.allowImportExportEverywhere || (se || 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'")),
|
|
71979
|
+
return this.options.allowImportExportEverywhere || (se || 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'")), qe === j._import ? this.parseImport(Ye) : this.parseExport(Ye, Le);
|
|
71980
71980
|
default:
|
|
71981
71981
|
if (this.isAsyncFunction())
|
|
71982
71982
|
return q && this.unexpected(), this.next(), this.parseFunctionStatement(Ye, !0, !q);
|
|
71983
71983
|
var ir = this.value, tr = this.parseExpression();
|
|
71984
|
-
return
|
|
71984
|
+
return qe === j.name && tr.type === "Identifier" && this.eat(j.colon) ? this.parseLabeledStatement(Ye, ir, tr, q) : this.parseExpressionStatement(Ye, tr);
|
|
71985
71985
|
}
|
|
71986
71986
|
}, qt.parseBreakContinueStatement = function(q, se) {
|
|
71987
71987
|
var Le = se === "break";
|
|
71988
71988
|
this.next(), this.eat(j.semi) || this.insertSemicolon() ? q.label = null : this.type !== j.name ? this.unexpected() : (q.label = this.parseIdent(), this.semicolon());
|
|
71989
|
-
for (var
|
|
71990
|
-
var Ye = this.labels[
|
|
71989
|
+
for (var qe = 0; qe < this.labels.length; ++qe) {
|
|
71990
|
+
var Ye = this.labels[qe];
|
|
71991
71991
|
if ((q.label == null || Ye.name === q.label.name) && (Ye.kind != null && (Le || Ye.kind === "loop") || q.label && Le))
|
|
71992
71992
|
break;
|
|
71993
71993
|
}
|
|
71994
|
-
return
|
|
71994
|
+
return qe === this.labels.length && this.raise(q.start, "Unsyntactic " + se), this.finishNode(q, Le ? "BreakStatement" : "ContinueStatement");
|
|
71995
71995
|
}, qt.parseDebuggerStatement = function(q) {
|
|
71996
71996
|
return this.next(), this.semicolon(), this.finishNode(q, "DebuggerStatement");
|
|
71997
71997
|
}, qt.parseDoStatement = function(q) {
|
|
@@ -72003,8 +72003,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72003
72003
|
return se > -1 && this.unexpected(se), this.parseFor(q, null);
|
|
72004
72004
|
var Le = this.isLet();
|
|
72005
72005
|
if (this.type === j._var || this.type === j._const || Le) {
|
|
72006
|
-
var
|
|
72007
|
-
return this.next(), this.parseVar(
|
|
72006
|
+
var qe = this.startNode(), Ye = Le ? "let" : this.value;
|
|
72007
|
+
return this.next(), this.parseVar(qe, !0, Ye), this.finishNode(qe, "VariableDeclaration"), (this.type === j._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && qe.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === j._in ? se > -1 && this.unexpected(se) : q.await = se > -1), this.parseForIn(q, qe)) : (se > -1 && this.unexpected(se), this.parseFor(q, qe));
|
|
72008
72008
|
}
|
|
72009
72009
|
var ct = this.isContextual("let"), ut = !1, Mt = this.containsEsc, Dt = new mr(), ir = this.start, tr = se > -1 ? this.parseExprSubscripts(Dt, "await") : this.parseExpression(!0, Dt);
|
|
72010
72010
|
return this.type === j._in || (ut = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (se > -1 ? (this.type === j._in && this.unexpected(se), q.await = !0) : ut && this.options.ecmaVersion >= 8 && (tr.start === ir && !Mt && tr.type === "Identifier" && tr.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (q.await = !1)), ct && ut && this.raise(tr.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(tr, !1, Dt), this.checkLValPattern(tr), this.parseForIn(q, tr)) : (this.checkExpressionErrors(Dt, !0), se > -1 && this.unexpected(se), this.parseFor(q, tr));
|
|
@@ -72018,8 +72018,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72018
72018
|
this.next(), q.discriminant = this.parseParenExpression(), q.cases = [], this.expect(j.braceL), this.labels.push(Sr), this.enterScope(0);
|
|
72019
72019
|
for (var se, Le = !1; this.type !== j.braceR; )
|
|
72020
72020
|
if (this.type === j._case || this.type === j._default) {
|
|
72021
|
-
var
|
|
72022
|
-
se && this.finishNode(se, "SwitchCase"), q.cases.push(se = this.startNode()), se.consequent = [], this.next(),
|
|
72021
|
+
var qe = this.type === j._case;
|
|
72022
|
+
se && this.finishNode(se, "SwitchCase"), q.cases.push(se = this.startNode()), se.consequent = [], this.next(), qe ? se.test = this.parseExpression() : (Le && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), Le = !0, se.test = null), this.expect(j.colon);
|
|
72023
72023
|
} else
|
|
72024
72024
|
se || this.unexpected(), se.consequent.push(this.parseStatement(null));
|
|
72025
72025
|
return this.exitScope(), se && this.finishNode(se, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(q, "SwitchStatement");
|
|
@@ -72044,7 +72044,7 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72044
72044
|
return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), q.object = this.parseParenExpression(), q.body = this.parseStatement("with"), this.finishNode(q, "WithStatement");
|
|
72045
72045
|
}, qt.parseEmptyStatement = function(q) {
|
|
72046
72046
|
return this.next(), this.finishNode(q, "EmptyStatement");
|
|
72047
|
-
}, qt.parseLabeledStatement = function(q, se, Le,
|
|
72047
|
+
}, qt.parseLabeledStatement = function(q, se, Le, qe) {
|
|
72048
72048
|
for (var Ye = 0, ct = this.labels; Ye < ct.length; Ye += 1) {
|
|
72049
72049
|
var ut = ct[Ye];
|
|
72050
72050
|
ut.name === se && this.raise(Le.start, "Label '" + se + "' is already declared");
|
|
@@ -72056,13 +72056,13 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72056
72056
|
else
|
|
72057
72057
|
break;
|
|
72058
72058
|
}
|
|
72059
|
-
return this.labels.push({ name: se, kind: Mt, statementStart: this.start }), q.body = this.parseStatement(
|
|
72059
|
+
return this.labels.push({ name: se, kind: Mt, statementStart: this.start }), q.body = this.parseStatement(qe ? qe.indexOf("label") === -1 ? qe + "label" : qe : "label"), this.labels.pop(), q.label = Le, this.finishNode(q, "LabeledStatement");
|
|
72060
72060
|
}, qt.parseExpressionStatement = function(q, se) {
|
|
72061
72061
|
return q.expression = se, this.semicolon(), this.finishNode(q, "ExpressionStatement");
|
|
72062
72062
|
}, qt.parseBlock = function(q, se, Le) {
|
|
72063
72063
|
for (q === void 0 && (q = !0), se === void 0 && (se = this.startNode()), se.body = [], this.expect(j.braceL), q && this.enterScope(0); this.type !== j.braceR; ) {
|
|
72064
|
-
var
|
|
72065
|
-
se.body.push(
|
|
72064
|
+
var qe = this.parseStatement(null);
|
|
72065
|
+
se.body.push(qe);
|
|
72066
72066
|
}
|
|
72067
72067
|
return Le && (this.strict = !1), this.next(), q && this.exitScope(), this.finishNode(se, "BlockStatement");
|
|
72068
72068
|
}, qt.parseFor = function(q, se) {
|
|
@@ -72070,10 +72070,10 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72070
72070
|
}, qt.parseForIn = function(q, se) {
|
|
72071
72071
|
var Le = this.type === j._in;
|
|
72072
72072
|
return this.next(), se.type === "VariableDeclaration" && se.declarations[0].init != null && (!Le || this.options.ecmaVersion < 8 || this.strict || se.kind !== "var" || se.declarations[0].id.type !== "Identifier") && this.raise(se.start, (Le ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"), q.left = se, q.right = Le ? this.parseExpression() : this.parseMaybeAssign(), this.expect(j.parenR), q.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(q, Le ? "ForInStatement" : "ForOfStatement");
|
|
72073
|
-
}, qt.parseVar = function(q, se, Le,
|
|
72073
|
+
}, qt.parseVar = function(q, se, Le, qe) {
|
|
72074
72074
|
for (q.declarations = [], q.kind = Le; ; ) {
|
|
72075
72075
|
var Ye = this.startNode();
|
|
72076
|
-
if (this.parseVarId(Ye, Le), this.eat(j.eq) ? Ye.init = this.parseMaybeAssign(se) : !
|
|
72076
|
+
if (this.parseVarId(Ye, Le), this.eat(j.eq) ? Ye.init = this.parseMaybeAssign(se) : !qe && Le === "const" && !(this.type === j._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !qe && Ye.id.type !== "Identifier" && !(se && (this.type === j._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : Ye.init = null, q.declarations.push(this.finishNode(Ye, "VariableDeclarator")), !this.eat(j.comma))
|
|
72077
72077
|
break;
|
|
72078
72078
|
}
|
|
72079
72079
|
return q;
|
|
@@ -72081,8 +72081,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72081
72081
|
q.id = this.parseBindingAtom(), this.checkLValPattern(q.id, se === "var" ? nt : ot, !1);
|
|
72082
72082
|
};
|
|
72083
72083
|
var Pr = 1, Er = 2, Nr = 4;
|
|
72084
|
-
qt.parseFunction = function(q, se, Le,
|
|
72085
|
-
this.initFunction(q), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !
|
|
72084
|
+
qt.parseFunction = function(q, se, Le, qe, Ye) {
|
|
72085
|
+
this.initFunction(q), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !qe) && (this.type === j.star && se & Er && this.unexpected(), q.generator = this.eat(j.star)), this.options.ecmaVersion >= 8 && (q.async = !!qe), se & Pr && (q.id = se & Nr && this.type !== j.name ? null : this.parseIdent(), q.id && !(se & Er) && this.checkLValSimple(q.id, this.strict || q.generator || q.async ? this.treatFunctionsAsVar ? nt : ot : pt));
|
|
72086
72086
|
var ct = this.yieldPos, ut = this.awaitPos, Mt = this.awaitIdentPos;
|
|
72087
72087
|
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Vt(q.async, q.generator)), se & Pr || (q.id = this.type === j.name ? this.parseIdent() : null), this.parseFunctionParams(q), this.parseFunctionBody(q, Le, !1, Ye), this.yieldPos = ct, this.awaitPos = ut, this.awaitIdentPos = Mt, this.finishNode(q, se & Pr ? "FunctionDeclaration" : "FunctionExpression");
|
|
72088
72088
|
}, qt.parseFunctionParams = function(q) {
|
|
@@ -72091,26 +72091,26 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72091
72091
|
this.next();
|
|
72092
72092
|
var Le = this.strict;
|
|
72093
72093
|
this.strict = !0, this.parseClassId(q, se), this.parseClassSuper(q);
|
|
72094
|
-
var
|
|
72094
|
+
var qe = this.enterClassBody(), Ye = this.startNode(), ct = !1;
|
|
72095
72095
|
for (Ye.body = [], this.expect(j.braceL); this.type !== j.braceR; ) {
|
|
72096
72096
|
var ut = this.parseClassElement(q.superClass !== null);
|
|
72097
|
-
ut && (Ye.body.push(ut), ut.type === "MethodDefinition" && ut.kind === "constructor" ? (ct && this.raiseRecoverable(ut.start, "Duplicate constructor in the same class"), ct = !0) : ut.key && ut.key.type === "PrivateIdentifier" && Zt(
|
|
72097
|
+
ut && (Ye.body.push(ut), ut.type === "MethodDefinition" && ut.kind === "constructor" ? (ct && this.raiseRecoverable(ut.start, "Duplicate constructor in the same class"), ct = !0) : ut.key && ut.key.type === "PrivateIdentifier" && Zt(qe, ut) && this.raiseRecoverable(ut.key.start, "Identifier '#" + ut.key.name + "' has already been declared"));
|
|
72098
72098
|
}
|
|
72099
72099
|
return this.strict = Le, this.next(), q.body = this.finishNode(Ye, "ClassBody"), this.exitClassBody(), this.finishNode(q, se ? "ClassDeclaration" : "ClassExpression");
|
|
72100
72100
|
}, qt.parseClassElement = function(q) {
|
|
72101
72101
|
if (this.eat(j.semi))
|
|
72102
72102
|
return null;
|
|
72103
|
-
var se = this.options.ecmaVersion, Le = this.startNode(),
|
|
72103
|
+
var se = this.options.ecmaVersion, Le = this.startNode(), qe = "", Ye = !1, ct = !1, ut = "method", Mt = !1;
|
|
72104
72104
|
if (this.eatContextual("static")) {
|
|
72105
72105
|
if (se >= 13 && this.eat(j.braceL))
|
|
72106
72106
|
return this.parseClassStaticBlock(Le), Le;
|
|
72107
|
-
this.isClassElementNameStart() || this.type === j.star ? Mt = !0 :
|
|
72107
|
+
this.isClassElementNameStart() || this.type === j.star ? Mt = !0 : qe = "static";
|
|
72108
72108
|
}
|
|
72109
|
-
if (Le.static = Mt, !
|
|
72109
|
+
if (Le.static = Mt, !qe && se >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === j.star) && !this.canInsertSemicolon() ? ct = !0 : qe = "async"), !qe && (se >= 9 || !ct) && this.eat(j.star) && (Ye = !0), !qe && !ct && !Ye) {
|
|
72110
72110
|
var Dt = this.value;
|
|
72111
|
-
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? ut = Dt :
|
|
72111
|
+
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? ut = Dt : qe = Dt);
|
|
72112
72112
|
}
|
|
72113
|
-
if (
|
|
72113
|
+
if (qe ? (Le.computed = !1, Le.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), Le.key.name = qe, this.finishNode(Le.key, "Identifier")) : this.parseClassElementName(Le), se < 13 || this.type === j.parenL || ut !== "method" || Ye || ct) {
|
|
72114
72114
|
var ir = !Le.static && er(Le, "constructor"), tr = ir && q;
|
|
72115
72115
|
ir && ut !== "method" && this.raise(Le.key.start, "Constructor can't have get/set modifier"), Le.kind = ir ? "constructor" : ut, this.parseClassMethod(Le, Ye, ct, tr);
|
|
72116
72116
|
} else
|
|
@@ -72120,10 +72120,10 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72120
72120
|
return this.type === j.name || this.type === j.privateId || this.type === j.num || this.type === j.string || this.type === j.bracketL || this.type.keyword;
|
|
72121
72121
|
}, qt.parseClassElementName = function(q) {
|
|
72122
72122
|
this.type === j.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), q.computed = !1, q.key = this.parsePrivateIdent()) : this.parsePropertyName(q);
|
|
72123
|
-
}, qt.parseClassMethod = function(q, se, Le,
|
|
72123
|
+
}, qt.parseClassMethod = function(q, se, Le, qe) {
|
|
72124
72124
|
var Ye = q.key;
|
|
72125
72125
|
q.kind === "constructor" ? (se && this.raise(Ye.start, "Constructor can't be a generator"), Le && this.raise(Ye.start, "Constructor can't be an async method")) : q.static && er(q, "prototype") && this.raise(Ye.start, "Classes may not have a static property named prototype");
|
|
72126
|
-
var ct = q.value = this.parseMethod(se, Le,
|
|
72126
|
+
var ct = q.value = this.parseMethod(se, Le, qe);
|
|
72127
72127
|
return q.kind === "get" && ct.params.length !== 0 && this.raiseRecoverable(ct.start, "getter should have no params"), q.kind === "set" && ct.params.length !== 1 && this.raiseRecoverable(ct.start, "setter should have exactly one param"), q.kind === "set" && ct.params[0].type === "RestElement" && this.raiseRecoverable(ct.params[0].start, "Setter cannot use rest params"), this.finishNode(q, "MethodDefinition");
|
|
72128
72128
|
}, qt.parseClassField = function(q) {
|
|
72129
72129
|
if (er(q, "constructor") ? this.raise(q.key.start, "Classes can't have a field named 'constructor'") : q.static && er(q, "prototype") && this.raise(q.key.start, "Classes can't have a static field named 'prototype'"), this.eat(j.eq)) {
|
|
@@ -72150,18 +72150,18 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72150
72150
|
}, qt.exitClassBody = function() {
|
|
72151
72151
|
var q = this.privateNameStack.pop(), se = q.declared, Le = q.used;
|
|
72152
72152
|
if (this.options.checkPrivateFields)
|
|
72153
|
-
for (var
|
|
72153
|
+
for (var qe = this.privateNameStack.length, Ye = qe === 0 ? null : this.privateNameStack[qe - 1], ct = 0; ct < Le.length; ++ct) {
|
|
72154
72154
|
var ut = Le[ct];
|
|
72155
72155
|
Fe(se, ut.name) || (Ye ? Ye.used.push(ut) : this.raiseRecoverable(ut.start, "Private field '#" + ut.name + "' must be declared in an enclosing class"));
|
|
72156
72156
|
}
|
|
72157
72157
|
};
|
|
72158
72158
|
function Zt(q, se) {
|
|
72159
|
-
var Le = se.key.name,
|
|
72160
|
-
return se.type === "MethodDefinition" && (se.kind === "get" || se.kind === "set") && (Ye = (se.static ? "s" : "i") + se.kind),
|
|
72159
|
+
var Le = se.key.name, qe = q[Le], Ye = "true";
|
|
72160
|
+
return se.type === "MethodDefinition" && (se.kind === "get" || se.kind === "set") && (Ye = (se.static ? "s" : "i") + se.kind), qe === "iget" && Ye === "iset" || qe === "iset" && Ye === "iget" || qe === "sget" && Ye === "sset" || qe === "sset" && Ye === "sget" ? (q[Le] = "true", !1) : qe ? !0 : (q[Le] = Ye, !1);
|
|
72161
72161
|
}
|
|
72162
72162
|
function er(q, se) {
|
|
72163
|
-
var Le = q.computed,
|
|
72164
|
-
return !Le && (
|
|
72163
|
+
var Le = q.computed, qe = q.key;
|
|
72164
|
+
return !Le && (qe.type === "Identifier" && qe.name === se || qe.type === "Literal" && qe.value === se);
|
|
72165
72165
|
}
|
|
72166
72166
|
qt.parseExportAllDeclaration = function(q, se) {
|
|
72167
72167
|
return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (q.exported = this.parseModuleExportName(), this.checkExport(se, q.exported, this.lastTokStart)) : q.exported = null), this.expectContextual("from"), this.type !== j.string && this.unexpected(), q.source = this.parseExprAtom(), this.semicolon(), this.finishNode(q, "ExportAllDeclaration");
|
|
@@ -72176,8 +72176,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72176
72176
|
if (q.declaration = null, q.specifiers = this.parseExportSpecifiers(se), this.eatContextual("from"))
|
|
72177
72177
|
this.type !== j.string && this.unexpected(), q.source = this.parseExprAtom();
|
|
72178
72178
|
else {
|
|
72179
|
-
for (var Le = 0,
|
|
72180
|
-
var Ye =
|
|
72179
|
+
for (var Le = 0, qe = q.specifiers; Le < qe.length; Le += 1) {
|
|
72180
|
+
var Ye = qe[Le];
|
|
72181
72181
|
this.checkUnreserved(Ye.local), this.checkLocalExport(Ye.local), Ye.local.type === "Literal" && this.raise(Ye.local.start, "A string literal cannot be used as an exported binding without `from`.");
|
|
72182
72182
|
}
|
|
72183
72183
|
q.source = null;
|
|
@@ -72196,8 +72196,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72196
72196
|
var Le = this.startNode();
|
|
72197
72197
|
return this.parseClass(Le, "nullableID");
|
|
72198
72198
|
} else {
|
|
72199
|
-
var
|
|
72200
|
-
return this.semicolon(),
|
|
72199
|
+
var qe = this.parseMaybeAssign();
|
|
72200
|
+
return this.semicolon(), qe;
|
|
72201
72201
|
}
|
|
72202
72202
|
}, qt.checkExport = function(q, se, Le) {
|
|
72203
72203
|
q && (typeof se != "string" && (se = se.type === "Identifier" ? se.name : se.value), Fe(q, se) && this.raiseRecoverable(Le, "Duplicate export '" + se + "'"), q[se] = !0);
|
|
@@ -72206,8 +72206,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72206
72206
|
if (Le === "Identifier")
|
|
72207
72207
|
this.checkExport(q, se, se.start);
|
|
72208
72208
|
else if (Le === "ObjectPattern")
|
|
72209
|
-
for (var
|
|
72210
|
-
var ct = Ye[
|
|
72209
|
+
for (var qe = 0, Ye = se.properties; qe < Ye.length; qe += 1) {
|
|
72210
|
+
var ct = Ye[qe];
|
|
72211
72211
|
this.checkPatternExport(q, ct);
|
|
72212
72212
|
}
|
|
72213
72213
|
else if (Le === "ArrayPattern")
|
|
@@ -72218,8 +72218,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72218
72218
|
else Le === "Property" ? this.checkPatternExport(q, se.value) : Le === "AssignmentPattern" ? this.checkPatternExport(q, se.left) : Le === "RestElement" && this.checkPatternExport(q, se.argument);
|
|
72219
72219
|
}, qt.checkVariableExport = function(q, se) {
|
|
72220
72220
|
if (q)
|
|
72221
|
-
for (var Le = 0,
|
|
72222
|
-
var Ye =
|
|
72221
|
+
for (var Le = 0, qe = se; Le < qe.length; Le += 1) {
|
|
72222
|
+
var Ye = qe[Le];
|
|
72223
72223
|
this.checkPatternExport(q, Ye.id);
|
|
72224
72224
|
}
|
|
72225
72225
|
}, qt.shouldParseExportStatement = function() {
|
|
@@ -72288,8 +72288,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72288
72288
|
break;
|
|
72289
72289
|
case "ObjectExpression":
|
|
72290
72290
|
q.type = "ObjectPattern", Le && this.checkPatternErrors(Le, !0);
|
|
72291
|
-
for (var
|
|
72292
|
-
var ct = Ye[
|
|
72291
|
+
for (var qe = 0, Ye = q.properties; qe < Ye.length; qe += 1) {
|
|
72292
|
+
var ct = Ye[qe];
|
|
72293
72293
|
this.toAssignable(ct, se), ct.type === "RestElement" && (ct.argument.type === "ArrayPattern" || ct.argument.type === "ObjectPattern") && this.raise(ct.argument.start, "Unexpected token");
|
|
72294
72294
|
}
|
|
72295
72295
|
break;
|
|
@@ -72320,8 +72320,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72320
72320
|
else Le && this.checkPatternErrors(Le, !0);
|
|
72321
72321
|
return q;
|
|
72322
72322
|
}, rr.toAssignableList = function(q, se) {
|
|
72323
|
-
for (var Le = q.length,
|
|
72324
|
-
var Ye = q[
|
|
72323
|
+
for (var Le = q.length, qe = 0; qe < Le; qe++) {
|
|
72324
|
+
var Ye = q[qe];
|
|
72325
72325
|
Ye && this.toAssignable(Ye, se);
|
|
72326
72326
|
}
|
|
72327
72327
|
if (Le) {
|
|
@@ -72345,7 +72345,7 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72345
72345
|
return this.parseObj(!0);
|
|
72346
72346
|
}
|
|
72347
72347
|
return this.parseIdent();
|
|
72348
|
-
}, rr.parseBindingList = function(q, se, Le,
|
|
72348
|
+
}, rr.parseBindingList = function(q, se, Le, qe) {
|
|
72349
72349
|
for (var Ye = [], ct = !0; !this.eat(q); )
|
|
72350
72350
|
if (ct ? ct = !1 : this.expect(j.comma), se && this.type === j.comma)
|
|
72351
72351
|
Ye.push(null);
|
|
@@ -72357,7 +72357,7 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72357
72357
|
this.parseBindingListItem(ut), Ye.push(ut), this.type === j.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(q);
|
|
72358
72358
|
break;
|
|
72359
72359
|
} else
|
|
72360
|
-
Ye.push(this.parseAssignableListItem(
|
|
72360
|
+
Ye.push(this.parseAssignableListItem(qe));
|
|
72361
72361
|
}
|
|
72362
72362
|
return Ye;
|
|
72363
72363
|
}, rr.parseAssignableListItem = function(q) {
|
|
@@ -72368,31 +72368,31 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72368
72368
|
}, rr.parseMaybeDefault = function(q, se, Le) {
|
|
72369
72369
|
if (Le = Le || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(j.eq))
|
|
72370
72370
|
return Le;
|
|
72371
|
-
var
|
|
72372
|
-
return
|
|
72371
|
+
var qe = this.startNodeAt(q, se);
|
|
72372
|
+
return qe.left = Le, qe.right = this.parseMaybeAssign(), this.finishNode(qe, "AssignmentPattern");
|
|
72373
72373
|
}, rr.checkLValSimple = function(q, se, Le) {
|
|
72374
72374
|
se === void 0 && (se = Je);
|
|
72375
|
-
var
|
|
72375
|
+
var qe = se !== Je;
|
|
72376
72376
|
switch (q.type) {
|
|
72377
72377
|
case "Identifier":
|
|
72378
|
-
this.strict && this.reservedWordsStrictBind.test(q.name) && this.raiseRecoverable(q.start, (
|
|
72378
|
+
this.strict && this.reservedWordsStrictBind.test(q.name) && this.raiseRecoverable(q.start, (qe ? "Binding " : "Assigning to ") + q.name + " in strict mode"), qe && (se === ot && q.name === "let" && this.raiseRecoverable(q.start, "let is disallowed as a lexically bound name"), Le && (Fe(Le, q.name) && this.raiseRecoverable(q.start, "Argument name clash"), Le[q.name] = !0), se !== dt && this.declareName(q.name, se, q.start));
|
|
72379
72379
|
break;
|
|
72380
72380
|
case "ChainExpression":
|
|
72381
72381
|
this.raiseRecoverable(q.start, "Optional chaining cannot appear in left-hand side");
|
|
72382
72382
|
break;
|
|
72383
72383
|
case "MemberExpression":
|
|
72384
|
-
|
|
72384
|
+
qe && this.raiseRecoverable(q.start, "Binding member expression");
|
|
72385
72385
|
break;
|
|
72386
72386
|
case "ParenthesizedExpression":
|
|
72387
|
-
return
|
|
72387
|
+
return qe && this.raiseRecoverable(q.start, "Binding parenthesized expression"), this.checkLValSimple(q.expression, se, Le);
|
|
72388
72388
|
default:
|
|
72389
|
-
this.raise(q.start, (
|
|
72389
|
+
this.raise(q.start, (qe ? "Binding" : "Assigning to") + " rvalue");
|
|
72390
72390
|
}
|
|
72391
72391
|
}, rr.checkLValPattern = function(q, se, Le) {
|
|
72392
72392
|
switch (se === void 0 && (se = Je), q.type) {
|
|
72393
72393
|
case "ObjectPattern":
|
|
72394
|
-
for (var
|
|
72395
|
-
var ct = Ye[
|
|
72394
|
+
for (var qe = 0, Ye = q.properties; qe < Ye.length; qe += 1) {
|
|
72395
|
+
var ct = Ye[qe];
|
|
72396
72396
|
this.checkLValInnerPattern(ct, se, Le);
|
|
72397
72397
|
}
|
|
72398
72398
|
break;
|
|
@@ -72420,8 +72420,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72420
72420
|
this.checkLValPattern(q, se, Le);
|
|
72421
72421
|
}
|
|
72422
72422
|
};
|
|
72423
|
-
var Kt = function(se, Le,
|
|
72424
|
-
this.token = se, this.isExpr = !!Le, this.preserveSpace = !!
|
|
72423
|
+
var Kt = function(se, Le, qe, Ye, ct) {
|
|
72424
|
+
this.token = se, this.isExpr = !!Le, this.preserveSpace = !!qe, this.override = Ye, this.generator = !!ct;
|
|
72425
72425
|
}, Yt = {
|
|
72426
72426
|
b_stat: new Kt("{", !1),
|
|
72427
72427
|
b_expr: new Kt("{", !0),
|
|
@@ -72489,27 +72489,27 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72489
72489
|
var it = mt.prototype;
|
|
72490
72490
|
it.checkPropClash = function(q, se, Le) {
|
|
72491
72491
|
if (!(this.options.ecmaVersion >= 9 && q.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (q.computed || q.method || q.shorthand))) {
|
|
72492
|
-
var
|
|
72493
|
-
switch (
|
|
72492
|
+
var qe = q.key, Ye;
|
|
72493
|
+
switch (qe.type) {
|
|
72494
72494
|
case "Identifier":
|
|
72495
|
-
Ye =
|
|
72495
|
+
Ye = qe.name;
|
|
72496
72496
|
break;
|
|
72497
72497
|
case "Literal":
|
|
72498
|
-
Ye = String(
|
|
72498
|
+
Ye = String(qe.value);
|
|
72499
72499
|
break;
|
|
72500
72500
|
default:
|
|
72501
72501
|
return;
|
|
72502
72502
|
}
|
|
72503
72503
|
var ct = q.kind;
|
|
72504
72504
|
if (this.options.ecmaVersion >= 6) {
|
|
72505
|
-
Ye === "__proto__" && ct === "init" && (se.proto && (Le ? Le.doubleProto < 0 && (Le.doubleProto =
|
|
72505
|
+
Ye === "__proto__" && ct === "init" && (se.proto && (Le ? Le.doubleProto < 0 && (Le.doubleProto = qe.start) : this.raiseRecoverable(qe.start, "Redefinition of __proto__ property")), se.proto = !0);
|
|
72506
72506
|
return;
|
|
72507
72507
|
}
|
|
72508
72508
|
Ye = "$" + Ye;
|
|
72509
72509
|
var ut = se[Ye];
|
|
72510
72510
|
if (ut) {
|
|
72511
72511
|
var Mt;
|
|
72512
|
-
ct === "init" ? Mt = this.strict && ut.init || ut.get || ut.set : Mt = ut.init || ut[ct], Mt && this.raiseRecoverable(
|
|
72512
|
+
ct === "init" ? Mt = this.strict && ut.init || ut.get || ut.set : Mt = ut.init || ut[ct], Mt && this.raiseRecoverable(qe.start, "Redefinition of property");
|
|
72513
72513
|
} else
|
|
72514
72514
|
ut = se[Ye] = {
|
|
72515
72515
|
init: !1,
|
|
@@ -72519,9 +72519,9 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72519
72519
|
ut[ct] = !0;
|
|
72520
72520
|
}
|
|
72521
72521
|
}, it.parseExpression = function(q, se) {
|
|
72522
|
-
var Le = this.start,
|
|
72522
|
+
var Le = this.start, qe = this.startLoc, Ye = this.parseMaybeAssign(q, se);
|
|
72523
72523
|
if (this.type === j.comma) {
|
|
72524
|
-
var ct = this.startNodeAt(Le,
|
|
72524
|
+
var ct = this.startNodeAt(Le, qe);
|
|
72525
72525
|
for (ct.expressions = [Ye]; this.eat(j.comma); )
|
|
72526
72526
|
ct.expressions.push(this.parseMaybeAssign(q, se));
|
|
72527
72527
|
return this.finishNode(ct, "SequenceExpression");
|
|
@@ -72533,55 +72533,55 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72533
72533
|
return this.parseYield(q);
|
|
72534
72534
|
this.exprAllowed = !1;
|
|
72535
72535
|
}
|
|
72536
|
-
var
|
|
72537
|
-
se ? (Ye = se.parenthesizedAssign, ct = se.trailingComma, ut = se.doubleProto, se.parenthesizedAssign = se.trailingComma = -1) : (se = new mr(),
|
|
72536
|
+
var qe = !1, Ye = -1, ct = -1, ut = -1;
|
|
72537
|
+
se ? (Ye = se.parenthesizedAssign, ct = se.trailingComma, ut = se.doubleProto, se.parenthesizedAssign = se.trailingComma = -1) : (se = new mr(), qe = !0);
|
|
72538
72538
|
var Mt = this.start, Dt = this.startLoc;
|
|
72539
72539
|
(this.type === j.parenL || this.type === j.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = q === "await");
|
|
72540
72540
|
var ir = this.parseMaybeConditional(q, se);
|
|
72541
72541
|
if (Le && (ir = Le.call(this, ir, Mt, Dt)), this.type.isAssign) {
|
|
72542
72542
|
var tr = this.startNodeAt(Mt, Dt);
|
|
72543
|
-
return tr.operator = this.value, this.type === j.eq && (ir = this.toAssignable(ir, !1, se)),
|
|
72543
|
+
return tr.operator = this.value, this.type === j.eq && (ir = this.toAssignable(ir, !1, se)), qe || (se.parenthesizedAssign = se.trailingComma = se.doubleProto = -1), se.shorthandAssign >= ir.start && (se.shorthandAssign = -1), this.type === j.eq ? this.checkLValPattern(ir) : this.checkLValSimple(ir), tr.left = ir, this.next(), tr.right = this.parseMaybeAssign(q), ut > -1 && (se.doubleProto = ut), this.finishNode(tr, "AssignmentExpression");
|
|
72544
72544
|
} else
|
|
72545
|
-
|
|
72545
|
+
qe && this.checkExpressionErrors(se, !0);
|
|
72546
72546
|
return Ye > -1 && (se.parenthesizedAssign = Ye), ct > -1 && (se.trailingComma = ct), ir;
|
|
72547
72547
|
}, it.parseMaybeConditional = function(q, se) {
|
|
72548
|
-
var Le = this.start,
|
|
72548
|
+
var Le = this.start, qe = this.startLoc, Ye = this.parseExprOps(q, se);
|
|
72549
72549
|
if (this.checkExpressionErrors(se))
|
|
72550
72550
|
return Ye;
|
|
72551
72551
|
if (this.eat(j.question)) {
|
|
72552
|
-
var ct = this.startNodeAt(Le,
|
|
72552
|
+
var ct = this.startNodeAt(Le, qe);
|
|
72553
72553
|
return ct.test = Ye, ct.consequent = this.parseMaybeAssign(), this.expect(j.colon), ct.alternate = this.parseMaybeAssign(q), this.finishNode(ct, "ConditionalExpression");
|
|
72554
72554
|
}
|
|
72555
72555
|
return Ye;
|
|
72556
72556
|
}, it.parseExprOps = function(q, se) {
|
|
72557
|
-
var Le = this.start,
|
|
72558
|
-
return this.checkExpressionErrors(se) || Ye.start === Le && Ye.type === "ArrowFunctionExpression" ? Ye : this.parseExprOp(Ye, Le,
|
|
72559
|
-
}, it.parseExprOp = function(q, se, Le,
|
|
72557
|
+
var Le = this.start, qe = this.startLoc, Ye = this.parseMaybeUnary(se, !1, !1, q);
|
|
72558
|
+
return this.checkExpressionErrors(se) || Ye.start === Le && Ye.type === "ArrowFunctionExpression" ? Ye : this.parseExprOp(Ye, Le, qe, -1, q);
|
|
72559
|
+
}, it.parseExprOp = function(q, se, Le, qe, Ye) {
|
|
72560
72560
|
var ct = this.type.binop;
|
|
72561
|
-
if (ct != null && (!Ye || this.type !== j._in) && ct >
|
|
72561
|
+
if (ct != null && (!Ye || this.type !== j._in) && ct > qe) {
|
|
72562
72562
|
var ut = this.type === j.logicalOR || this.type === j.logicalAND, Mt = this.type === j.coalesce;
|
|
72563
72563
|
Mt && (ct = j.logicalAND.binop);
|
|
72564
72564
|
var Dt = this.value;
|
|
72565
72565
|
this.next();
|
|
72566
72566
|
var ir = this.start, tr = this.startLoc, Cr = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, Ye), ir, tr, ct, Ye), Ur = this.buildBinary(se, Le, q, Cr, Dt, ut || Mt);
|
|
72567
|
-
return (ut && this.type === j.coalesce || Mt && (this.type === j.logicalOR || this.type === j.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(Ur, se, Le,
|
|
72567
|
+
return (ut && this.type === j.coalesce || Mt && (this.type === j.logicalOR || this.type === j.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(Ur, se, Le, qe, Ye);
|
|
72568
72568
|
}
|
|
72569
72569
|
return q;
|
|
72570
|
-
}, it.buildBinary = function(q, se, Le,
|
|
72571
|
-
|
|
72570
|
+
}, it.buildBinary = function(q, se, Le, qe, Ye, ct) {
|
|
72571
|
+
qe.type === "PrivateIdentifier" && this.raise(qe.start, "Private identifier can only be left side of binary expression");
|
|
72572
72572
|
var ut = this.startNodeAt(q, se);
|
|
72573
|
-
return ut.left = Le, ut.operator = Ye, ut.right =
|
|
72574
|
-
}, it.parseMaybeUnary = function(q, se, Le,
|
|
72573
|
+
return ut.left = Le, ut.operator = Ye, ut.right = qe, this.finishNode(ut, ct ? "LogicalExpression" : "BinaryExpression");
|
|
72574
|
+
}, it.parseMaybeUnary = function(q, se, Le, qe) {
|
|
72575
72575
|
var Ye = this.start, ct = this.startLoc, ut;
|
|
72576
72576
|
if (this.isContextual("await") && this.canAwait)
|
|
72577
|
-
ut = this.parseAwait(
|
|
72577
|
+
ut = this.parseAwait(qe), se = !0;
|
|
72578
72578
|
else if (this.type.prefix) {
|
|
72579
72579
|
var Mt = this.startNode(), Dt = this.type === j.incDec;
|
|
72580
|
-
Mt.operator = this.value, Mt.prefix = !0, this.next(), Mt.argument = this.parseMaybeUnary(null, !0, Dt,
|
|
72580
|
+
Mt.operator = this.value, Mt.prefix = !0, this.next(), Mt.argument = this.parseMaybeUnary(null, !0, Dt, qe), this.checkExpressionErrors(q, !0), Dt ? this.checkLValSimple(Mt.argument) : this.strict && Mt.operator === "delete" && Ht(Mt.argument) ? this.raiseRecoverable(Mt.start, "Deleting local variable in strict mode") : Mt.operator === "delete" && Xt(Mt.argument) ? this.raiseRecoverable(Mt.start, "Private fields can not be deleted") : se = !0, ut = this.finishNode(Mt, Dt ? "UpdateExpression" : "UnaryExpression");
|
|
72581
72581
|
} else if (!se && this.type === j.privateId)
|
|
72582
|
-
(
|
|
72582
|
+
(qe || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), ut = this.parsePrivateIdent(), this.type !== j._in && this.unexpected();
|
|
72583
72583
|
else {
|
|
72584
|
-
if (ut = this.parseExprSubscripts(q,
|
|
72584
|
+
if (ut = this.parseExprSubscripts(q, qe), this.checkExpressionErrors(q))
|
|
72585
72585
|
return ut;
|
|
72586
72586
|
for (; this.type.postfix && !this.canInsertSemicolon(); ) {
|
|
72587
72587
|
var ir = this.startNodeAt(Ye, ct);
|
|
@@ -72592,7 +72592,7 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72592
72592
|
if (se)
|
|
72593
72593
|
this.unexpected(this.lastTokStart);
|
|
72594
72594
|
else
|
|
72595
|
-
return this.buildBinary(Ye, ct, ut, this.parseMaybeUnary(null, !1, !1,
|
|
72595
|
+
return this.buildBinary(Ye, ct, ut, this.parseMaybeUnary(null, !1, !1, qe), "**", !1);
|
|
72596
72596
|
else
|
|
72597
72597
|
return ut;
|
|
72598
72598
|
};
|
|
@@ -72603,14 +72603,14 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72603
72603
|
return q.type === "MemberExpression" && q.property.type === "PrivateIdentifier" || q.type === "ChainExpression" && Xt(q.expression) || q.type === "ParenthesizedExpression" && Xt(q.expression);
|
|
72604
72604
|
}
|
|
72605
72605
|
it.parseExprSubscripts = function(q, se) {
|
|
72606
|
-
var Le = this.start,
|
|
72606
|
+
var Le = this.start, qe = this.startLoc, Ye = this.parseExprAtom(q, se);
|
|
72607
72607
|
if (Ye.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")")
|
|
72608
72608
|
return Ye;
|
|
72609
|
-
var ct = this.parseSubscripts(Ye, Le,
|
|
72609
|
+
var ct = this.parseSubscripts(Ye, Le, qe, !1, se);
|
|
72610
72610
|
return q && ct.type === "MemberExpression" && (q.parenthesizedAssign >= ct.start && (q.parenthesizedAssign = -1), q.parenthesizedBind >= ct.start && (q.parenthesizedBind = -1), q.trailingComma >= ct.start && (q.trailingComma = -1)), ct;
|
|
72611
|
-
}, it.parseSubscripts = function(q, se, Le,
|
|
72611
|
+
}, it.parseSubscripts = function(q, se, Le, qe, Ye) {
|
|
72612
72612
|
for (var ct = this.options.ecmaVersion >= 8 && q.type === "Identifier" && q.name === "async" && this.lastTokEnd === q.end && !this.canInsertSemicolon() && q.end - q.start === 5 && this.potentialArrowAt === q.start, ut = !1; ; ) {
|
|
72613
|
-
var Mt = this.parseSubscript(q, se, Le,
|
|
72613
|
+
var Mt = this.parseSubscript(q, se, Le, qe, ct, ut, Ye);
|
|
72614
72614
|
if (Mt.optional && (ut = !0), Mt === q || Mt.type === "ArrowFunctionExpression") {
|
|
72615
72615
|
if (ut) {
|
|
72616
72616
|
var Dt = this.startNodeAt(se, Le);
|
|
@@ -72622,16 +72622,16 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72622
72622
|
}
|
|
72623
72623
|
}, it.shouldParseAsyncArrow = function() {
|
|
72624
72624
|
return !this.canInsertSemicolon() && this.eat(j.arrow);
|
|
72625
|
-
}, it.parseSubscriptAsyncArrow = function(q, se, Le,
|
|
72626
|
-
return this.parseArrowExpression(this.startNodeAt(q, se), Le, !0,
|
|
72627
|
-
}, it.parseSubscript = function(q, se, Le,
|
|
72625
|
+
}, it.parseSubscriptAsyncArrow = function(q, se, Le, qe) {
|
|
72626
|
+
return this.parseArrowExpression(this.startNodeAt(q, se), Le, !0, qe);
|
|
72627
|
+
}, it.parseSubscript = function(q, se, Le, qe, Ye, ct, ut) {
|
|
72628
72628
|
var Mt = this.options.ecmaVersion >= 11, Dt = Mt && this.eat(j.questionDot);
|
|
72629
|
-
|
|
72629
|
+
qe && Dt && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
72630
72630
|
var ir = this.eat(j.bracketL);
|
|
72631
72631
|
if (ir || Dt && this.type !== j.parenL && this.type !== j.backQuote || this.eat(j.dot)) {
|
|
72632
72632
|
var tr = this.startNodeAt(se, Le);
|
|
72633
72633
|
tr.object = q, ir ? (tr.property = this.parseExpression(), this.expect(j.bracketR)) : this.type === j.privateId && q.type !== "Super" ? tr.property = this.parsePrivateIdent() : tr.property = this.parseIdent(this.options.allowReserved !== "never"), tr.computed = !!ir, Mt && (tr.optional = Dt), q = this.finishNode(tr, "MemberExpression");
|
|
72634
|
-
} else if (!
|
|
72634
|
+
} else if (!qe && this.eat(j.parenL)) {
|
|
72635
72635
|
var Cr = new mr(), Ur = this.yieldPos, tn = this.awaitPos, Kr = this.awaitIdentPos;
|
|
72636
72636
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
72637
72637
|
var fn = this.parseExprList(j.parenR, this.options.ecmaVersion >= 8, !1, Cr);
|
|
@@ -72648,12 +72648,12 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72648
72648
|
return q;
|
|
72649
72649
|
}, it.parseExprAtom = function(q, se, Le) {
|
|
72650
72650
|
this.type === j.slash && this.readRegexp();
|
|
72651
|
-
var
|
|
72651
|
+
var qe, Ye = this.potentialArrowAt === this.start;
|
|
72652
72652
|
switch (this.type) {
|
|
72653
72653
|
case j._super:
|
|
72654
|
-
return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"),
|
|
72654
|
+
return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), qe = this.startNode(), this.next(), this.type === j.parenL && !this.allowDirectSuper && this.raise(qe.start, "super() call outside constructor of a subclass"), this.type !== j.dot && this.type !== j.bracketL && this.type !== j.parenL && this.unexpected(), this.finishNode(qe, "Super");
|
|
72655
72655
|
case j._this:
|
|
72656
|
-
return
|
|
72656
|
+
return qe = this.startNode(), this.next(), this.finishNode(qe, "ThisExpression");
|
|
72657
72657
|
case j.name:
|
|
72658
72658
|
var ct = this.start, ut = this.startLoc, Mt = this.containsEsc, Dt = this.parseIdent(!1);
|
|
72659
72659
|
if (this.options.ecmaVersion >= 8 && !Mt && Dt.name === "async" && !this.canInsertSemicolon() && this.eat(j._function))
|
|
@@ -72667,23 +72667,23 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72667
72667
|
return Dt;
|
|
72668
72668
|
case j.regexp:
|
|
72669
72669
|
var ir = this.value;
|
|
72670
|
-
return
|
|
72670
|
+
return qe = this.parseLiteral(ir.value), qe.regex = { pattern: ir.pattern, flags: ir.flags }, qe;
|
|
72671
72671
|
case j.num:
|
|
72672
72672
|
case j.string:
|
|
72673
72673
|
return this.parseLiteral(this.value);
|
|
72674
72674
|
case j._null:
|
|
72675
72675
|
case j._true:
|
|
72676
72676
|
case j._false:
|
|
72677
|
-
return
|
|
72677
|
+
return qe = this.startNode(), qe.value = this.type === j._null ? null : this.type === j._true, qe.raw = this.type.keyword, this.next(), this.finishNode(qe, "Literal");
|
|
72678
72678
|
case j.parenL:
|
|
72679
72679
|
var tr = this.start, Cr = this.parseParenAndDistinguishExpression(Ye, se);
|
|
72680
72680
|
return q && (q.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(Cr) && (q.parenthesizedAssign = tr), q.parenthesizedBind < 0 && (q.parenthesizedBind = tr)), Cr;
|
|
72681
72681
|
case j.bracketL:
|
|
72682
|
-
return
|
|
72682
|
+
return qe = this.startNode(), this.next(), qe.elements = this.parseExprList(j.bracketR, !0, !0, q), this.finishNode(qe, "ArrayExpression");
|
|
72683
72683
|
case j.braceL:
|
|
72684
72684
|
return this.overrideContext(Yt.b_expr), this.parseObj(!1, q);
|
|
72685
72685
|
case j._function:
|
|
72686
|
-
return
|
|
72686
|
+
return qe = this.startNode(), this.next(), this.parseFunction(qe, 0);
|
|
72687
72687
|
case j._class:
|
|
72688
72688
|
return this.parseClass(this.startNode(), !1);
|
|
72689
72689
|
case j._new:
|
|
@@ -72726,7 +72726,7 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72726
72726
|
}, it.shouldParseArrow = function(q) {
|
|
72727
72727
|
return !this.canInsertSemicolon();
|
|
72728
72728
|
}, it.parseParenAndDistinguishExpression = function(q, se) {
|
|
72729
|
-
var Le = this.start,
|
|
72729
|
+
var Le = this.start, qe = this.startLoc, Ye, ct = this.options.ecmaVersion >= 8;
|
|
72730
72730
|
if (this.options.ecmaVersion >= 6) {
|
|
72731
72731
|
this.next();
|
|
72732
72732
|
var ut = this.start, Mt = this.startLoc, Dt = [], ir = !0, tr = !1, Cr = new mr(), Ur = this.yieldPos, tn = this.awaitPos, Kr;
|
|
@@ -72741,19 +72741,19 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72741
72741
|
Dt.push(this.parseMaybeAssign(!1, Cr, this.parseParenItem));
|
|
72742
72742
|
var fn = this.lastTokEnd, Yr = this.lastTokEndLoc;
|
|
72743
72743
|
if (this.expect(j.parenR), q && this.shouldParseArrow(Dt) && this.eat(j.arrow))
|
|
72744
|
-
return this.checkPatternErrors(Cr, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = Ur, this.awaitPos = tn, this.parseParenArrowList(Le,
|
|
72744
|
+
return this.checkPatternErrors(Cr, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = Ur, this.awaitPos = tn, this.parseParenArrowList(Le, qe, Dt, se);
|
|
72745
72745
|
(!Dt.length || tr) && this.unexpected(this.lastTokStart), Kr && this.unexpected(Kr), this.checkExpressionErrors(Cr, !0), this.yieldPos = Ur || this.yieldPos, this.awaitPos = tn || this.awaitPos, Dt.length > 1 ? (Ye = this.startNodeAt(ut, Mt), Ye.expressions = Dt, this.finishNodeAt(Ye, "SequenceExpression", fn, Yr)) : Ye = Dt[0];
|
|
72746
72746
|
} else
|
|
72747
72747
|
Ye = this.parseParenExpression();
|
|
72748
72748
|
if (this.options.preserveParens) {
|
|
72749
|
-
var Jr = this.startNodeAt(Le,
|
|
72749
|
+
var Jr = this.startNodeAt(Le, qe);
|
|
72750
72750
|
return Jr.expression = Ye, this.finishNode(Jr, "ParenthesizedExpression");
|
|
72751
72751
|
} else
|
|
72752
72752
|
return Ye;
|
|
72753
72753
|
}, it.parseParenItem = function(q) {
|
|
72754
72754
|
return q;
|
|
72755
|
-
}, it.parseParenArrowList = function(q, se, Le,
|
|
72756
|
-
return this.parseArrowExpression(this.startNodeAt(q, se), Le, !1,
|
|
72755
|
+
}, it.parseParenArrowList = function(q, se, Le, qe) {
|
|
72756
|
+
return this.parseArrowExpression(this.startNodeAt(q, se), Le, !1, qe);
|
|
72757
72757
|
};
|
|
72758
72758
|
var sr = [];
|
|
72759
72759
|
it.parseNew = function() {
|
|
@@ -72765,8 +72765,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72765
72765
|
var Le = this.containsEsc;
|
|
72766
72766
|
return q.property = this.parseIdent(!0), q.property.name !== "target" && this.raiseRecoverable(q.property.start, "The only valid meta property for new is 'new.target'"), Le && this.raiseRecoverable(q.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(q.start, "'new.target' can only be used in functions and class static block"), this.finishNode(q, "MetaProperty");
|
|
72767
72767
|
}
|
|
72768
|
-
var
|
|
72769
|
-
return q.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0),
|
|
72768
|
+
var qe = this.start, Ye = this.startLoc;
|
|
72769
|
+
return q.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), qe, Ye, !0, !1), this.eat(j.parenL) ? q.arguments = this.parseExprList(j.parenR, this.options.ecmaVersion >= 8, !1) : q.arguments = sr, this.finishNode(q, "NewExpression");
|
|
72770
72770
|
}, it.parseTemplateElement = function(q) {
|
|
72771
72771
|
var se = q.isTagged, Le = this.startNode();
|
|
72772
72772
|
return this.type === j.invalidTemplate ? (se || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), Le.value = {
|
|
@@ -72784,17 +72784,17 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72784
72784
|
se === void 0 && (se = !1);
|
|
72785
72785
|
var Le = this.startNode();
|
|
72786
72786
|
this.next(), Le.expressions = [];
|
|
72787
|
-
var
|
|
72788
|
-
for (Le.quasis = [
|
|
72789
|
-
this.type === j.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(j.dollarBraceL), Le.expressions.push(this.parseExpression()), this.expect(j.braceR), Le.quasis.push(
|
|
72787
|
+
var qe = this.parseTemplateElement({ isTagged: se });
|
|
72788
|
+
for (Le.quasis = [qe]; !qe.tail; )
|
|
72789
|
+
this.type === j.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(j.dollarBraceL), Le.expressions.push(this.parseExpression()), this.expect(j.braceR), Le.quasis.push(qe = this.parseTemplateElement({ isTagged: se }));
|
|
72790
72790
|
return this.next(), this.finishNode(Le, "TemplateLiteral");
|
|
72791
72791
|
}, it.isAsyncProp = function(q) {
|
|
72792
72792
|
return !q.computed && q.key.type === "Identifier" && q.key.name === "async" && (this.type === j.name || this.type === j.num || this.type === j.string || this.type === j.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === j.star) && !te.test(this.input.slice(this.lastTokEnd, this.start));
|
|
72793
72793
|
}, it.parseObj = function(q, se) {
|
|
72794
|
-
var Le = this.startNode(),
|
|
72794
|
+
var Le = this.startNode(), qe = !0, Ye = {};
|
|
72795
72795
|
for (Le.properties = [], this.next(); !this.eat(j.braceR); ) {
|
|
72796
|
-
if (
|
|
72797
|
-
|
|
72796
|
+
if (qe)
|
|
72797
|
+
qe = !1;
|
|
72798
72798
|
else if (this.expect(j.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(j.braceR))
|
|
72799
72799
|
break;
|
|
72800
72800
|
var ct = this.parseProperty(q, se);
|
|
@@ -72802,12 +72802,12 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72802
72802
|
}
|
|
72803
72803
|
return this.finishNode(Le, q ? "ObjectPattern" : "ObjectExpression");
|
|
72804
72804
|
}, it.parseProperty = function(q, se) {
|
|
72805
|
-
var Le = this.startNode(),
|
|
72805
|
+
var Le = this.startNode(), qe, Ye, ct, ut;
|
|
72806
72806
|
if (this.options.ecmaVersion >= 9 && this.eat(j.ellipsis))
|
|
72807
72807
|
return q ? (Le.argument = this.parseIdent(!1), this.type === j.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(Le, "RestElement")) : (Le.argument = this.parseMaybeAssign(!1, se), this.type === j.comma && se && se.trailingComma < 0 && (se.trailingComma = this.start), this.finishNode(Le, "SpreadElement"));
|
|
72808
|
-
this.options.ecmaVersion >= 6 && (Le.method = !1, Le.shorthand = !1, (q || se) && (ct = this.start, ut = this.startLoc), q || (
|
|
72808
|
+
this.options.ecmaVersion >= 6 && (Le.method = !1, Le.shorthand = !1, (q || se) && (ct = this.start, ut = this.startLoc), q || (qe = this.eat(j.star)));
|
|
72809
72809
|
var Mt = this.containsEsc;
|
|
72810
|
-
return this.parsePropertyName(Le), !q && !Mt && this.options.ecmaVersion >= 8 && !
|
|
72810
|
+
return this.parsePropertyName(Le), !q && !Mt && this.options.ecmaVersion >= 8 && !qe && this.isAsyncProp(Le) ? (Ye = !0, qe = this.options.ecmaVersion >= 9 && this.eat(j.star), this.parsePropertyName(Le)) : Ye = !1, this.parsePropertyValue(Le, q, qe, Ye, ct, ut, se, Mt), this.finishNode(Le, "Property");
|
|
72811
72811
|
}, it.parseGetterSetter = function(q) {
|
|
72812
72812
|
q.kind = q.key.name, this.parsePropertyName(q), q.value = this.parseMethod(!1);
|
|
72813
72813
|
var se = q.kind === "get" ? 0 : 1;
|
|
@@ -72816,8 +72816,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72816
72816
|
q.kind === "get" ? this.raiseRecoverable(Le, "getter should have no params") : this.raiseRecoverable(Le, "setter should have exactly one param");
|
|
72817
72817
|
} else
|
|
72818
72818
|
q.kind === "set" && q.value.params[0].type === "RestElement" && this.raiseRecoverable(q.value.params[0].start, "Setter cannot use rest params");
|
|
72819
|
-
}, it.parsePropertyValue = function(q, se, Le,
|
|
72820
|
-
(Le ||
|
|
72819
|
+
}, it.parsePropertyValue = function(q, se, Le, qe, Ye, ct, ut, Mt) {
|
|
72820
|
+
(Le || qe) && this.type === j.colon && this.unexpected(), this.eat(j.colon) ? (q.value = se ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, ut), q.kind = "init") : this.options.ecmaVersion >= 6 && this.type === j.parenL ? (se && this.unexpected(), q.kind = "init", q.method = !0, q.value = this.parseMethod(Le, qe)) : !se && !Mt && this.options.ecmaVersion >= 5 && !q.computed && q.key.type === "Identifier" && (q.key.name === "get" || q.key.name === "set") && this.type !== j.comma && this.type !== j.braceR && this.type !== j.eq ? ((Le || qe) && this.unexpected(), this.parseGetterSetter(q)) : this.options.ecmaVersion >= 6 && !q.computed && q.key.type === "Identifier" ? ((Le || qe) && this.unexpected(), this.checkUnreserved(q.key), q.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = Ye), q.kind = "init", se ? q.value = this.parseMaybeDefault(Ye, ct, this.copyNode(q.key)) : this.type === j.eq && ut ? (ut.shorthandAssign < 0 && (ut.shorthandAssign = this.start), q.value = this.parseMaybeDefault(Ye, ct, this.copyNode(q.key))) : q.value = this.copyNode(q.key), q.shorthand = !0) : this.unexpected();
|
|
72821
72821
|
}, it.parsePropertyName = function(q) {
|
|
72822
72822
|
if (this.options.ecmaVersion >= 6) {
|
|
72823
72823
|
if (this.eat(j.bracketL))
|
|
@@ -72828,15 +72828,15 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72828
72828
|
}, it.initFunction = function(q) {
|
|
72829
72829
|
q.id = null, this.options.ecmaVersion >= 6 && (q.generator = q.expression = !1), this.options.ecmaVersion >= 8 && (q.async = !1);
|
|
72830
72830
|
}, it.parseMethod = function(q, se, Le) {
|
|
72831
|
-
var
|
|
72832
|
-
return this.initFunction(
|
|
72833
|
-
}, it.parseArrowExpression = function(q, se, Le,
|
|
72831
|
+
var qe = this.startNode(), Ye = this.yieldPos, ct = this.awaitPos, ut = this.awaitIdentPos;
|
|
72832
|
+
return this.initFunction(qe), this.options.ecmaVersion >= 6 && (qe.generator = q), this.options.ecmaVersion >= 8 && (qe.async = !!se), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Vt(se, qe.generator) | Ct | (Le ? $t : 0)), this.expect(j.parenL), qe.params = this.parseBindingList(j.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(qe, !1, !0, !1), this.yieldPos = Ye, this.awaitPos = ct, this.awaitIdentPos = ut, this.finishNode(qe, "FunctionExpression");
|
|
72833
|
+
}, it.parseArrowExpression = function(q, se, Le, qe) {
|
|
72834
72834
|
var Ye = this.yieldPos, ct = this.awaitPos, ut = this.awaitIdentPos;
|
|
72835
|
-
return this.enterScope(Vt(Le, !1) | yt), this.initFunction(q), this.options.ecmaVersion >= 8 && (q.async = !!Le), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, q.params = this.toAssignableList(se, !0), this.parseFunctionBody(q, !0, !1,
|
|
72836
|
-
}, it.parseFunctionBody = function(q, se, Le,
|
|
72835
|
+
return this.enterScope(Vt(Le, !1) | yt), this.initFunction(q), this.options.ecmaVersion >= 8 && (q.async = !!Le), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, q.params = this.toAssignableList(se, !0), this.parseFunctionBody(q, !0, !1, qe), this.yieldPos = Ye, this.awaitPos = ct, this.awaitIdentPos = ut, this.finishNode(q, "ArrowFunctionExpression");
|
|
72836
|
+
}, it.parseFunctionBody = function(q, se, Le, qe) {
|
|
72837
72837
|
var Ye = se && this.type !== j.braceL, ct = this.strict, ut = !1;
|
|
72838
72838
|
if (Ye)
|
|
72839
|
-
q.body = this.parseMaybeAssign(
|
|
72839
|
+
q.body = this.parseMaybeAssign(qe), q.expression = !0, this.checkParams(q, !1);
|
|
72840
72840
|
else {
|
|
72841
72841
|
var Mt = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(q.params);
|
|
72842
72842
|
(!ct || Mt) && (ut = this.strictDirective(this.end), ut && Mt && this.raiseRecoverable(q.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
|
|
@@ -72846,31 +72846,31 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72846
72846
|
this.exitScope();
|
|
72847
72847
|
}, it.isSimpleParamList = function(q) {
|
|
72848
72848
|
for (var se = 0, Le = q; se < Le.length; se += 1) {
|
|
72849
|
-
var
|
|
72850
|
-
if (
|
|
72849
|
+
var qe = Le[se];
|
|
72850
|
+
if (qe.type !== "Identifier")
|
|
72851
72851
|
return !1;
|
|
72852
72852
|
}
|
|
72853
72853
|
return !0;
|
|
72854
72854
|
}, it.checkParams = function(q, se) {
|
|
72855
|
-
for (var Le = /* @__PURE__ */ Object.create(null),
|
|
72856
|
-
var ct = Ye[
|
|
72855
|
+
for (var Le = /* @__PURE__ */ Object.create(null), qe = 0, Ye = q.params; qe < Ye.length; qe += 1) {
|
|
72856
|
+
var ct = Ye[qe];
|
|
72857
72857
|
this.checkLValInnerPattern(ct, nt, se ? null : Le);
|
|
72858
72858
|
}
|
|
72859
|
-
}, it.parseExprList = function(q, se, Le,
|
|
72859
|
+
}, it.parseExprList = function(q, se, Le, qe) {
|
|
72860
72860
|
for (var Ye = [], ct = !0; !this.eat(q); ) {
|
|
72861
72861
|
if (ct)
|
|
72862
72862
|
ct = !1;
|
|
72863
72863
|
else if (this.expect(j.comma), se && this.afterTrailingComma(q))
|
|
72864
72864
|
break;
|
|
72865
72865
|
var ut = void 0;
|
|
72866
|
-
Le && this.type === j.comma ? ut = null : this.type === j.ellipsis ? (ut = this.parseSpread(
|
|
72866
|
+
Le && this.type === j.comma ? ut = null : this.type === j.ellipsis ? (ut = this.parseSpread(qe), qe && this.type === j.comma && qe.trailingComma < 0 && (qe.trailingComma = this.start)) : ut = this.parseMaybeAssign(!1, qe), Ye.push(ut);
|
|
72867
72867
|
}
|
|
72868
72868
|
return Ye;
|
|
72869
72869
|
}, it.checkUnreserved = function(q) {
|
|
72870
|
-
var se = q.start, Le = q.end,
|
|
72871
|
-
if (this.inGenerator &&
|
|
72870
|
+
var se = q.start, Le = q.end, qe = q.name;
|
|
72871
|
+
if (this.inGenerator && qe === "yield" && this.raiseRecoverable(se, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && qe === "await" && this.raiseRecoverable(se, "Cannot use 'await' as identifier inside an async function"), this.currentThisScope().inClassFieldInit && qe === "arguments" && this.raiseRecoverable(se, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (qe === "arguments" || qe === "await") && this.raise(se, "Cannot use " + qe + " in class static initialization block"), this.keywords.test(qe) && this.raise(se, "Unexpected keyword '" + qe + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(se, Le).indexOf("\\") !== -1)) {
|
|
72872
72872
|
var Ye = this.strict ? this.reservedWordsStrict : this.reservedWords;
|
|
72873
|
-
Ye.test(
|
|
72873
|
+
Ye.test(qe) && (!this.inAsync && qe === "await" && this.raiseRecoverable(se, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(se, "The keyword '" + qe + "' is reserved"));
|
|
72874
72874
|
}
|
|
72875
72875
|
}, it.parseIdent = function(q) {
|
|
72876
72876
|
var se = this.parseIdentNode();
|
|
@@ -72894,8 +72894,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72894
72894
|
ar.raise = function(q, se) {
|
|
72895
72895
|
var Le = tt(this.input, q);
|
|
72896
72896
|
se += " (" + Le.line + ":" + Le.column + ")";
|
|
72897
|
-
var
|
|
72898
|
-
throw
|
|
72897
|
+
var qe = new SyntaxError(se);
|
|
72898
|
+
throw qe.pos = q, qe.loc = Le, qe.raisedAt = this.pos, qe;
|
|
72899
72899
|
}, ar.raiseRecoverable = ar.raise, ar.curPosition = function() {
|
|
72900
72900
|
if (this.options.locations)
|
|
72901
72901
|
return new Ue(this.curLine, this.pos - this.lineStart);
|
|
@@ -72910,27 +72910,27 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72910
72910
|
}, ur.treatFunctionsAsVarInScope = function(q) {
|
|
72911
72911
|
return q.flags & at || !this.inModule && q.flags & Ze;
|
|
72912
72912
|
}, ur.declareName = function(q, se, Le) {
|
|
72913
|
-
var
|
|
72913
|
+
var qe = !1;
|
|
72914
72914
|
if (se === ot) {
|
|
72915
72915
|
var Ye = this.currentScope();
|
|
72916
|
-
|
|
72916
|
+
qe = Ye.lexical.indexOf(q) > -1 || Ye.functions.indexOf(q) > -1 || Ye.var.indexOf(q) > -1, Ye.lexical.push(q), this.inModule && Ye.flags & Ze && delete this.undefinedExports[q];
|
|
72917
72917
|
} else if (se === ft) {
|
|
72918
72918
|
var ct = this.currentScope();
|
|
72919
72919
|
ct.lexical.push(q);
|
|
72920
72920
|
} else if (se === pt) {
|
|
72921
72921
|
var ut = this.currentScope();
|
|
72922
|
-
this.treatFunctionsAsVar ?
|
|
72922
|
+
this.treatFunctionsAsVar ? qe = ut.lexical.indexOf(q) > -1 : qe = ut.lexical.indexOf(q) > -1 || ut.var.indexOf(q) > -1, ut.functions.push(q);
|
|
72923
72923
|
} else
|
|
72924
72924
|
for (var Mt = this.scopeStack.length - 1; Mt >= 0; --Mt) {
|
|
72925
72925
|
var Dt = this.scopeStack[Mt];
|
|
72926
72926
|
if (Dt.lexical.indexOf(q) > -1 && !(Dt.flags & et && Dt.lexical[0] === q) || !this.treatFunctionsAsVarInScope(Dt) && Dt.functions.indexOf(q) > -1) {
|
|
72927
|
-
|
|
72927
|
+
qe = !0;
|
|
72928
72928
|
break;
|
|
72929
72929
|
}
|
|
72930
72930
|
if (Dt.var.push(q), this.inModule && Dt.flags & Ze && delete this.undefinedExports[q], Dt.flags & Wt)
|
|
72931
72931
|
break;
|
|
72932
72932
|
}
|
|
72933
|
-
|
|
72933
|
+
qe && this.raiseRecoverable(Le, "Identifier '" + q + "' has already been declared");
|
|
72934
72934
|
}, ur.checkLocalExport = function(q) {
|
|
72935
72935
|
this.scopeStack[0].lexical.indexOf(q.name) === -1 && this.scopeStack[0].var.indexOf(q.name) === -1 && (this.undefinedExports[q.name] = q);
|
|
72936
72936
|
}, ur.currentScope = function() {
|
|
@@ -72948,21 +72948,21 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
72948
72948
|
return se;
|
|
72949
72949
|
}
|
|
72950
72950
|
};
|
|
72951
|
-
var _r = function(se, Le,
|
|
72952
|
-
this.type = "", this.start = Le, this.end = 0, se.options.locations && (this.loc = new Ke(se,
|
|
72951
|
+
var _r = function(se, Le, qe) {
|
|
72952
|
+
this.type = "", this.start = Le, this.end = 0, se.options.locations && (this.loc = new Ke(se, qe)), se.options.directSourceFile && (this.sourceFile = se.options.directSourceFile), se.options.ranges && (this.range = [Le, 0]);
|
|
72953
72953
|
}, Dr = mt.prototype;
|
|
72954
72954
|
Dr.startNode = function() {
|
|
72955
72955
|
return new _r(this, this.start, this.startLoc);
|
|
72956
72956
|
}, Dr.startNodeAt = function(q, se) {
|
|
72957
72957
|
return new _r(this, q, se);
|
|
72958
72958
|
};
|
|
72959
|
-
function yr(q, se, Le,
|
|
72960
|
-
return q.type = se, q.end = Le, this.options.locations && (q.loc.end =
|
|
72959
|
+
function yr(q, se, Le, qe) {
|
|
72960
|
+
return q.type = se, q.end = Le, this.options.locations && (q.loc.end = qe), this.options.ranges && (q.range[1] = Le), q;
|
|
72961
72961
|
}
|
|
72962
72962
|
Dr.finishNode = function(q, se) {
|
|
72963
72963
|
return yr.call(this, q, se, this.lastTokEnd, this.lastTokEndLoc);
|
|
72964
|
-
}, Dr.finishNodeAt = function(q, se, Le,
|
|
72965
|
-
return yr.call(this, q, se, Le,
|
|
72964
|
+
}, Dr.finishNodeAt = function(q, se, Le, qe) {
|
|
72965
|
+
return yr.call(this, q, se, Le, qe);
|
|
72966
72966
|
}, Dr.copyNode = function(q) {
|
|
72967
72967
|
var se = new _r(this, q.start, this.startLoc);
|
|
72968
72968
|
for (var Le in q)
|
|
@@ -73011,8 +73011,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73011
73011
|
};
|
|
73012
73012
|
Hr.prototype.separatedFrom = function(se) {
|
|
73013
73013
|
for (var Le = this; Le; Le = Le.parent)
|
|
73014
|
-
for (var
|
|
73015
|
-
if (Le.base ===
|
|
73014
|
+
for (var qe = se; qe; qe = qe.parent)
|
|
73015
|
+
if (Le.base === qe.base && Le !== qe)
|
|
73016
73016
|
return !0;
|
|
73017
73017
|
return !1;
|
|
73018
73018
|
}, Hr.prototype.sibling = function() {
|
|
@@ -73021,28 +73021,28 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73021
73021
|
var Ir = function(se) {
|
|
73022
73022
|
this.parser = se, this.validFlags = "gim" + (se.options.ecmaVersion >= 6 ? "uy" : "") + (se.options.ecmaVersion >= 9 ? "s" : "") + (se.options.ecmaVersion >= 13 ? "d" : "") + (se.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = xr[se.options.ecmaVersion >= 14 ? 14 : se.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;
|
|
73023
73023
|
};
|
|
73024
|
-
Ir.prototype.reset = function(se, Le,
|
|
73025
|
-
var Ye =
|
|
73026
|
-
this.start = se | 0, this.source = Le + "", this.flags =
|
|
73024
|
+
Ir.prototype.reset = function(se, Le, qe) {
|
|
73025
|
+
var Ye = qe.indexOf("v") !== -1, ct = qe.indexOf("u") !== -1;
|
|
73026
|
+
this.start = se | 0, this.source = Le + "", this.flags = qe, Ye && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV = !0, this.switchN = !0) : (this.switchU = ct && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = ct && this.parser.options.ecmaVersion >= 9);
|
|
73027
73027
|
}, Ir.prototype.raise = function(se) {
|
|
73028
73028
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + se);
|
|
73029
73029
|
}, Ir.prototype.at = function(se, Le) {
|
|
73030
73030
|
Le === void 0 && (Le = !1);
|
|
73031
|
-
var
|
|
73031
|
+
var qe = this.source, Ye = qe.length;
|
|
73032
73032
|
if (se >= Ye)
|
|
73033
73033
|
return -1;
|
|
73034
|
-
var ct =
|
|
73034
|
+
var ct = qe.charCodeAt(se);
|
|
73035
73035
|
if (!(Le || this.switchU) || ct <= 55295 || ct >= 57344 || se + 1 >= Ye)
|
|
73036
73036
|
return ct;
|
|
73037
|
-
var ut =
|
|
73037
|
+
var ut = qe.charCodeAt(se + 1);
|
|
73038
73038
|
return ut >= 56320 && ut <= 57343 ? (ct << 10) + ut - 56613888 : ct;
|
|
73039
73039
|
}, Ir.prototype.nextIndex = function(se, Le) {
|
|
73040
73040
|
Le === void 0 && (Le = !1);
|
|
73041
|
-
var
|
|
73041
|
+
var qe = this.source, Ye = qe.length;
|
|
73042
73042
|
if (se >= Ye)
|
|
73043
73043
|
return Ye;
|
|
73044
|
-
var ct =
|
|
73045
|
-
return !(Le || this.switchU) || ct <= 55295 || ct >= 57344 || se + 1 >= Ye || (ut =
|
|
73044
|
+
var ct = qe.charCodeAt(se), ut;
|
|
73045
|
+
return !(Le || this.switchU) || ct <= 55295 || ct >= 57344 || se + 1 >= Ye || (ut = qe.charCodeAt(se + 1)) < 56320 || ut > 57343 ? se + 1 : se + 2;
|
|
73046
73046
|
}, Ir.prototype.current = function(se) {
|
|
73047
73047
|
return se === void 0 && (se = !1), this.at(this.pos, se);
|
|
73048
73048
|
}, Ir.prototype.lookahead = function(se) {
|
|
@@ -73053,19 +73053,19 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73053
73053
|
return Le === void 0 && (Le = !1), this.current(Le) === se ? (this.advance(Le), !0) : !1;
|
|
73054
73054
|
}, Ir.prototype.eatChars = function(se, Le) {
|
|
73055
73055
|
Le === void 0 && (Le = !1);
|
|
73056
|
-
for (var
|
|
73057
|
-
var ut = ct[Ye], Mt = this.at(
|
|
73056
|
+
for (var qe = this.pos, Ye = 0, ct = se; Ye < ct.length; Ye += 1) {
|
|
73057
|
+
var ut = ct[Ye], Mt = this.at(qe, Le);
|
|
73058
73058
|
if (Mt === -1 || Mt !== ut)
|
|
73059
73059
|
return !1;
|
|
73060
|
-
|
|
73060
|
+
qe = this.nextIndex(qe, Le);
|
|
73061
73061
|
}
|
|
73062
|
-
return this.pos =
|
|
73062
|
+
return this.pos = qe, !0;
|
|
73063
73063
|
}, It.validateRegExpFlags = function(q) {
|
|
73064
|
-
for (var se = q.validFlags, Le = q.flags,
|
|
73064
|
+
for (var se = q.validFlags, Le = q.flags, qe = !1, Ye = !1, ct = 0; ct < Le.length; ct++) {
|
|
73065
73065
|
var ut = Le.charAt(ct);
|
|
73066
|
-
se.indexOf(ut) === -1 && this.raise(q.start, "Invalid regular expression flag"), Le.indexOf(ut, ct + 1) > -1 && this.raise(q.start, "Duplicate regular expression flag"), ut === "u" && (
|
|
73066
|
+
se.indexOf(ut) === -1 && this.raise(q.start, "Invalid regular expression flag"), Le.indexOf(ut, ct + 1) > -1 && this.raise(q.start, "Duplicate regular expression flag"), ut === "u" && (qe = !0), ut === "v" && (Ye = !0);
|
|
73067
73067
|
}
|
|
73068
|
-
this.options.ecmaVersion >= 15 &&
|
|
73068
|
+
this.options.ecmaVersion >= 15 && qe && Ye && this.raise(q.start, "Invalid regular expression flag");
|
|
73069
73069
|
};
|
|
73070
73070
|
function $n(q) {
|
|
73071
73071
|
for (var se in q)
|
|
@@ -73077,8 +73077,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73077
73077
|
}, It.regexp_pattern = function(q) {
|
|
73078
73078
|
q.pos = 0, q.lastIntValue = 0, q.lastStringValue = "", q.lastAssertionIsQuantifiable = !1, q.numCapturingParens = 0, q.maxBackReference = 0, q.groupNames = /* @__PURE__ */ Object.create(null), q.backReferenceNames.length = 0, q.branchID = null, this.regexp_disjunction(q), q.pos !== q.source.length && (q.eat(41) && q.raise("Unmatched ')'"), (q.eat(93) || q.eat(125)) && q.raise("Lone quantifier brackets")), q.maxBackReference > q.numCapturingParens && q.raise("Invalid escape");
|
|
73079
73079
|
for (var se = 0, Le = q.backReferenceNames; se < Le.length; se += 1) {
|
|
73080
|
-
var
|
|
73081
|
-
q.groupNames[
|
|
73080
|
+
var qe = Le[se];
|
|
73081
|
+
q.groupNames[qe] || q.raise("Invalid named capture referenced");
|
|
73082
73082
|
}
|
|
73083
73083
|
}, It.regexp_disjunction = function(q) {
|
|
73084
73084
|
var se = this.options.ecmaVersion >= 16;
|
|
@@ -73112,9 +73112,9 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73112
73112
|
}, It.regexp_eatBracedQuantifier = function(q, se) {
|
|
73113
73113
|
var Le = q.pos;
|
|
73114
73114
|
if (q.eat(123)) {
|
|
73115
|
-
var
|
|
73116
|
-
if (this.regexp_eatDecimalDigits(q) && (
|
|
73117
|
-
return Ye !== -1 && Ye <
|
|
73115
|
+
var qe = 0, Ye = -1;
|
|
73116
|
+
if (this.regexp_eatDecimalDigits(q) && (qe = q.lastIntValue, q.eat(44) && this.regexp_eatDecimalDigits(q) && (Ye = q.lastIntValue), q.eat(125)))
|
|
73117
|
+
return Ye !== -1 && Ye < qe && !se && q.raise("numbers out of order in {} quantifier"), !0;
|
|
73118
73118
|
q.switchU && !se && q.raise("Incomplete quantifier"), q.pos = Le;
|
|
73119
73119
|
}
|
|
73120
73120
|
return !1;
|
|
@@ -73170,8 +73170,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73170
73170
|
var se = this.options.ecmaVersion >= 16, Le = q.groupNames[q.lastStringValue];
|
|
73171
73171
|
if (Le)
|
|
73172
73172
|
if (se)
|
|
73173
|
-
for (var
|
|
73174
|
-
var ct = Ye[
|
|
73173
|
+
for (var qe = 0, Ye = Le; qe < Ye.length; qe += 1) {
|
|
73174
|
+
var ct = Ye[qe];
|
|
73175
73175
|
ct.separatedFrom(q.branchID) || q.raise("Duplicate capture group name");
|
|
73176
73176
|
}
|
|
73177
73177
|
else
|
|
@@ -73193,15 +73193,15 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73193
73193
|
}
|
|
73194
73194
|
return !1;
|
|
73195
73195
|
}, It.regexp_eatRegExpIdentifierStart = function(q) {
|
|
73196
|
-
var se = q.pos, Le = this.options.ecmaVersion >= 11,
|
|
73197
|
-
return q.advance(Le),
|
|
73196
|
+
var se = q.pos, Le = this.options.ecmaVersion >= 11, qe = q.current(Le);
|
|
73197
|
+
return q.advance(Le), qe === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(q, Le) && (qe = q.lastIntValue), Bn(qe) ? (q.lastIntValue = qe, !0) : (q.pos = se, !1);
|
|
73198
73198
|
};
|
|
73199
73199
|
function Bn(q) {
|
|
73200
73200
|
return A(q, !0) || q === 36 || q === 95;
|
|
73201
73201
|
}
|
|
73202
73202
|
It.regexp_eatRegExpIdentifierPart = function(q) {
|
|
73203
|
-
var se = q.pos, Le = this.options.ecmaVersion >= 11,
|
|
73204
|
-
return q.advance(Le),
|
|
73203
|
+
var se = q.pos, Le = this.options.ecmaVersion >= 11, qe = q.current(Le);
|
|
73204
|
+
return q.advance(Le), qe === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(q, Le) && (qe = q.lastIntValue), Dn(qe) ? (q.lastIntValue = qe, !0) : (q.pos = se, !1);
|
|
73205
73205
|
};
|
|
73206
73206
|
function Dn(q) {
|
|
73207
73207
|
return I(q, !0) || q === 36 || q === 95 || q === 8204 || q === 8205;
|
|
@@ -73250,11 +73250,11 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73250
73250
|
}
|
|
73251
73251
|
It.regexp_eatRegExpUnicodeEscapeSequence = function(q, se) {
|
|
73252
73252
|
se === void 0 && (se = !1);
|
|
73253
|
-
var Le = q.pos,
|
|
73253
|
+
var Le = q.pos, qe = se || q.switchU;
|
|
73254
73254
|
if (q.eat(117)) {
|
|
73255
73255
|
if (this.regexp_eatFixedHexDigits(q, 4)) {
|
|
73256
73256
|
var Ye = q.lastIntValue;
|
|
73257
|
-
if (
|
|
73257
|
+
if (qe && Ye >= 55296 && Ye <= 56319) {
|
|
73258
73258
|
var ct = q.pos;
|
|
73259
73259
|
if (q.eat(92) && q.eat(117) && this.regexp_eatFixedHexDigits(q, 4)) {
|
|
73260
73260
|
var ut = q.lastIntValue;
|
|
@@ -73265,9 +73265,9 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73265
73265
|
}
|
|
73266
73266
|
return !0;
|
|
73267
73267
|
}
|
|
73268
|
-
if (
|
|
73268
|
+
if (qe && q.eat(123) && this.regexp_eatHexDigits(q) && q.eat(125) && On(q.lastIntValue))
|
|
73269
73269
|
return !0;
|
|
73270
|
-
|
|
73270
|
+
qe && q.raise("Invalid unicode escape"), q.pos = Le;
|
|
73271
73271
|
}
|
|
73272
73272
|
return !1;
|
|
73273
73273
|
};
|
|
@@ -73298,9 +73298,9 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73298
73298
|
var Le = !1;
|
|
73299
73299
|
if (q.switchU && this.options.ecmaVersion >= 9 && ((Le = se === 80) || se === 112)) {
|
|
73300
73300
|
q.lastIntValue = -1, q.advance();
|
|
73301
|
-
var
|
|
73302
|
-
if (q.eat(123) && (
|
|
73303
|
-
return Le &&
|
|
73301
|
+
var qe;
|
|
73302
|
+
if (q.eat(123) && (qe = this.regexp_eatUnicodePropertyValueExpression(q)) && q.eat(125))
|
|
73303
|
+
return Le && qe === Vr && q.raise("Invalid property name"), qe;
|
|
73304
73304
|
q.raise("Invalid property name");
|
|
73305
73305
|
}
|
|
73306
73306
|
return Cn;
|
|
@@ -73313,8 +73313,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73313
73313
|
if (this.regexp_eatUnicodePropertyName(q) && q.eat(61)) {
|
|
73314
73314
|
var Le = q.lastStringValue;
|
|
73315
73315
|
if (this.regexp_eatUnicodePropertyValue(q)) {
|
|
73316
|
-
var
|
|
73317
|
-
return this.regexp_validateUnicodePropertyNameAndValue(q, Le,
|
|
73316
|
+
var qe = q.lastStringValue;
|
|
73317
|
+
return this.regexp_validateUnicodePropertyNameAndValue(q, Le, qe), jr;
|
|
73318
73318
|
}
|
|
73319
73319
|
}
|
|
73320
73320
|
if (q.pos = se, this.regexp_eatLoneUnicodePropertyNameOrValue(q)) {
|
|
@@ -73377,8 +73377,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73377
73377
|
}
|
|
73378
73378
|
q.pos = se;
|
|
73379
73379
|
}
|
|
73380
|
-
var
|
|
73381
|
-
return
|
|
73380
|
+
var qe = q.current();
|
|
73381
|
+
return qe !== 93 ? (q.lastIntValue = qe, q.advance(), !0) : !1;
|
|
73382
73382
|
}, It.regexp_eatClassEscape = function(q) {
|
|
73383
73383
|
var se = q.pos;
|
|
73384
73384
|
if (q.eat(98))
|
|
@@ -73396,18 +73396,18 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73396
73396
|
if (!this.regexp_eatClassSetRange(q))
|
|
73397
73397
|
if (Le = this.regexp_eatClassSetOperand(q)) {
|
|
73398
73398
|
Le === Vr && (se = Vr);
|
|
73399
|
-
for (var
|
|
73399
|
+
for (var qe = q.pos; q.eatChars([38, 38]); ) {
|
|
73400
73400
|
if (q.current() !== 38 && (Le = this.regexp_eatClassSetOperand(q))) {
|
|
73401
73401
|
Le !== Vr && (se = jr);
|
|
73402
73402
|
continue;
|
|
73403
73403
|
}
|
|
73404
73404
|
q.raise("Invalid character in character class");
|
|
73405
73405
|
}
|
|
73406
|
-
if (
|
|
73406
|
+
if (qe !== q.pos)
|
|
73407
73407
|
return se;
|
|
73408
73408
|
for (; q.eatChars([45, 45]); )
|
|
73409
73409
|
this.regexp_eatClassSetOperand(q) || q.raise("Invalid character in character class");
|
|
73410
|
-
if (
|
|
73410
|
+
if (qe !== q.pos)
|
|
73411
73411
|
return se;
|
|
73412
73412
|
} else
|
|
73413
73413
|
q.raise("Invalid character in character class");
|
|
@@ -73422,8 +73422,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73422
73422
|
if (this.regexp_eatClassSetCharacter(q)) {
|
|
73423
73423
|
var Le = q.lastIntValue;
|
|
73424
73424
|
if (q.eat(45) && this.regexp_eatClassSetCharacter(q)) {
|
|
73425
|
-
var
|
|
73426
|
-
return Le !== -1 &&
|
|
73425
|
+
var qe = q.lastIntValue;
|
|
73426
|
+
return Le !== -1 && qe !== -1 && Le > qe && q.raise("Range out of order in character class"), !0;
|
|
73427
73427
|
}
|
|
73428
73428
|
q.pos = se;
|
|
73429
73429
|
}
|
|
@@ -73433,9 +73433,9 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73433
73433
|
}, It.regexp_eatNestedClass = function(q) {
|
|
73434
73434
|
var se = q.pos;
|
|
73435
73435
|
if (q.eat(91)) {
|
|
73436
|
-
var Le = q.eat(94),
|
|
73436
|
+
var Le = q.eat(94), qe = this.regexp_classContents(q);
|
|
73437
73437
|
if (q.eat(93))
|
|
73438
|
-
return Le &&
|
|
73438
|
+
return Le && qe === Vr && q.raise("Negated character class may contain strings"), qe;
|
|
73439
73439
|
q.pos = se;
|
|
73440
73440
|
}
|
|
73441
73441
|
if (q.eat(92)) {
|
|
@@ -73538,7 +73538,7 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73538
73538
|
It.regexp_eatFixedHexDigits = function(q, se) {
|
|
73539
73539
|
var Le = q.pos;
|
|
73540
73540
|
q.lastIntValue = 0;
|
|
73541
|
-
for (var
|
|
73541
|
+
for (var qe = 0; qe < se; ++qe) {
|
|
73542
73542
|
var Ye = q.current();
|
|
73543
73543
|
if (!Tn(Ye))
|
|
73544
73544
|
return q.pos = Le, !1;
|
|
@@ -73582,12 +73582,12 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73582
73582
|
}, or.skipBlockComment = function() {
|
|
73583
73583
|
var q = this.options.onComment && this.curPosition(), se = this.pos, Le = this.input.indexOf("*/", this.pos += 2);
|
|
73584
73584
|
if (Le === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = Le + 2, this.options.locations)
|
|
73585
|
-
for (var
|
|
73586
|
-
++this.curLine, Ye = this.lineStart =
|
|
73585
|
+
for (var qe = void 0, Ye = se; (qe = $e(this.input, Ye, this.pos)) > -1; )
|
|
73586
|
+
++this.curLine, Ye = this.lineStart = qe;
|
|
73587
73587
|
this.options.onComment && this.options.onComment(!0, this.input.slice(se + 2, Le), se, this.pos, q, this.curPosition());
|
|
73588
73588
|
}, or.skipLineComment = function(q) {
|
|
73589
|
-
for (var se = this.pos, Le = this.options.onComment && this.curPosition(),
|
|
73590
|
-
|
|
73589
|
+
for (var se = this.pos, Le = this.options.onComment && this.curPosition(), qe = this.input.charCodeAt(this.pos += q); this.pos < this.input.length && !ae(qe); )
|
|
73590
|
+
qe = this.input.charCodeAt(++this.pos);
|
|
73591
73591
|
this.options.onComment && this.options.onComment(!1, this.input.slice(se + q, this.pos), se, this.pos, Le, this.curPosition());
|
|
73592
73592
|
}, or.skipSpace = function() {
|
|
73593
73593
|
e:
|
|
@@ -73638,8 +73638,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73638
73638
|
var q = this.input.charCodeAt(this.pos + 1);
|
|
73639
73639
|
return this.exprAllowed ? (++this.pos, this.readRegexp()) : q === 61 ? this.finishOp(j.assign, 2) : this.finishOp(j.slash, 1);
|
|
73640
73640
|
}, or.readToken_mult_modulo_exp = function(q) {
|
|
73641
|
-
var se = this.input.charCodeAt(this.pos + 1), Le = 1,
|
|
73642
|
-
return this.options.ecmaVersion >= 7 && q === 42 && se === 42 && (++Le,
|
|
73641
|
+
var se = this.input.charCodeAt(this.pos + 1), Le = 1, qe = q === 42 ? j.star : j.modulo;
|
|
73642
|
+
return this.options.ecmaVersion >= 7 && q === 42 && se === 42 && (++Le, qe = j.starstar, se = this.input.charCodeAt(this.pos + 2)), se === 61 ? this.finishOp(j.assign, Le + 1) : this.finishOp(qe, Le);
|
|
73643
73643
|
}, or.readToken_pipe_amp = function(q) {
|
|
73644
73644
|
var se = this.input.charCodeAt(this.pos + 1);
|
|
73645
73645
|
if (se === q) {
|
|
@@ -73674,8 +73674,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73674
73674
|
}
|
|
73675
73675
|
if (se === 63) {
|
|
73676
73676
|
if (q >= 12) {
|
|
73677
|
-
var
|
|
73678
|
-
if (
|
|
73677
|
+
var qe = this.input.charCodeAt(this.pos + 2);
|
|
73678
|
+
if (qe === 61)
|
|
73679
73679
|
return this.finishOp(j.assign, 3);
|
|
73680
73680
|
}
|
|
73681
73681
|
return this.finishOp(j.coalesce, 2);
|
|
@@ -73769,17 +73769,17 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73769
73769
|
}, or.readRegexp = function() {
|
|
73770
73770
|
for (var q, se, Le = this.pos; ; ) {
|
|
73771
73771
|
this.pos >= this.input.length && this.raise(Le, "Unterminated regular expression");
|
|
73772
|
-
var
|
|
73773
|
-
if (te.test(
|
|
73772
|
+
var qe = this.input.charAt(this.pos);
|
|
73773
|
+
if (te.test(qe) && this.raise(Le, "Unterminated regular expression"), q)
|
|
73774
73774
|
q = !1;
|
|
73775
73775
|
else {
|
|
73776
|
-
if (
|
|
73776
|
+
if (qe === "[")
|
|
73777
73777
|
se = !0;
|
|
73778
|
-
else if (
|
|
73778
|
+
else if (qe === "]" && se)
|
|
73779
73779
|
se = !1;
|
|
73780
|
-
else if (
|
|
73780
|
+
else if (qe === "/" && !se)
|
|
73781
73781
|
break;
|
|
73782
|
-
q =
|
|
73782
|
+
q = qe === "\\";
|
|
73783
73783
|
}
|
|
73784
73784
|
++this.pos;
|
|
73785
73785
|
}
|
|
@@ -73796,9 +73796,9 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73796
73796
|
}
|
|
73797
73797
|
return this.finishToken(j.regexp, { pattern: Ye, flags: ut, value: Dt });
|
|
73798
73798
|
}, or.readInt = function(q, se, Le) {
|
|
73799
|
-
for (var
|
|
73799
|
+
for (var qe = this.options.ecmaVersion >= 12 && se === void 0, Ye = Le && this.input.charCodeAt(this.pos) === 48, ct = this.pos, ut = 0, Mt = 0, Dt = 0, ir = se ?? 1 / 0; Dt < ir; ++Dt, ++this.pos) {
|
|
73800
73800
|
var tr = this.input.charCodeAt(this.pos), Cr = void 0;
|
|
73801
|
-
if (
|
|
73801
|
+
if (qe && tr === 95) {
|
|
73802
73802
|
Ye && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), Mt === 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"), Mt = tr;
|
|
73803
73803
|
continue;
|
|
73804
73804
|
}
|
|
@@ -73806,7 +73806,7 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73806
73806
|
break;
|
|
73807
73807
|
Mt = tr, ut = ut * q + Cr;
|
|
73808
73808
|
}
|
|
73809
|
-
return
|
|
73809
|
+
return qe && Mt === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === ct || se != null && this.pos - ct !== se ? null : ut;
|
|
73810
73810
|
};
|
|
73811
73811
|
function Un(q, se) {
|
|
73812
73812
|
return se ? parseInt(q, 8) : parseFloat(q.replace(/_/g, ""));
|
|
@@ -73824,12 +73824,12 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73824
73824
|
!q && this.readInt(10, void 0, !0) === null && this.raise(se, "Invalid number");
|
|
73825
73825
|
var Le = this.pos - se >= 2 && this.input.charCodeAt(se) === 48;
|
|
73826
73826
|
Le && this.strict && this.raise(se, "Invalid number");
|
|
73827
|
-
var
|
|
73828
|
-
if (!Le && !q && this.options.ecmaVersion >= 11 &&
|
|
73827
|
+
var qe = this.input.charCodeAt(this.pos);
|
|
73828
|
+
if (!Le && !q && this.options.ecmaVersion >= 11 && qe === 110) {
|
|
73829
73829
|
var Ye = An(this.input.slice(se, this.pos));
|
|
73830
73830
|
return ++this.pos, A(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(j.num, Ye);
|
|
73831
73831
|
}
|
|
73832
|
-
Le && /[89]/.test(this.input.slice(se, this.pos)) && (Le = !1),
|
|
73832
|
+
Le && /[89]/.test(this.input.slice(se, this.pos)) && (Le = !1), qe === 46 && !Le && (++this.pos, this.readInt(10), qe = this.input.charCodeAt(this.pos)), (qe === 69 || qe === 101) && !Le && (qe = this.input.charCodeAt(++this.pos), (qe === 43 || qe === 45) && ++this.pos, this.readInt(10) === null && this.raise(se, "Invalid number")), A(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
73833
73833
|
var ct = Un(this.input.slice(se, this.pos), Le);
|
|
73834
73834
|
return this.finishToken(j.num, ct);
|
|
73835
73835
|
}, or.readCodePoint = function() {
|
|
@@ -73844,10 +73844,10 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73844
73844
|
}, or.readString = function(q) {
|
|
73845
73845
|
for (var se = "", Le = ++this.pos; ; ) {
|
|
73846
73846
|
this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
|
|
73847
|
-
var
|
|
73848
|
-
if (
|
|
73847
|
+
var qe = this.input.charCodeAt(this.pos);
|
|
73848
|
+
if (qe === q)
|
|
73849
73849
|
break;
|
|
73850
|
-
|
|
73850
|
+
qe === 92 ? (se += this.input.slice(Le, this.pos), se += this.readEscapedChar(!1), Le = this.pos) : qe === 8232 || qe === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (ae(qe) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
|
|
73851
73851
|
}
|
|
73852
73852
|
return se += this.input.slice(Le, this.pos++), this.finishToken(j.string, se);
|
|
73853
73853
|
};
|
|
@@ -73945,8 +73945,8 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73945
73945
|
}
|
|
73946
73946
|
default:
|
|
73947
73947
|
if (se >= 48 && se <= 55) {
|
|
73948
|
-
var
|
|
73949
|
-
return Ye > 255 && (
|
|
73948
|
+
var qe = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], Ye = parseInt(qe, 8);
|
|
73949
|
+
return Ye > 255 && (qe = qe.slice(0, -1), Ye = parseInt(qe, 8)), this.pos += qe.length - 1, se = this.input.charCodeAt(this.pos), (qe !== "0" || se === 56 || se === 57) && (this.strict || q) && this.invalidStringToken(this.pos - 1 - qe.length, q ? "Octal literal in template string" : "Octal literal in strict mode"), String.fromCharCode(Ye);
|
|
73950
73950
|
}
|
|
73951
73951
|
return ae(se) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(se);
|
|
73952
73952
|
}
|
|
@@ -73955,16 +73955,16 @@ Defaulting to 2020, but this will stop working in the future.`)), se.ecmaVersion
|
|
|
73955
73955
|
return Le === null && this.invalidStringToken(se, "Bad character escape sequence"), Le;
|
|
73956
73956
|
}, or.readWord1 = function() {
|
|
73957
73957
|
this.containsEsc = !1;
|
|
73958
|
-
for (var q = "", se = !0, Le = this.pos,
|
|
73958
|
+
for (var q = "", se = !0, Le = this.pos, qe = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
|
|
73959
73959
|
var Ye = this.fullCharCodeAtPos();
|
|
73960
|
-
if (I(Ye,
|
|
73960
|
+
if (I(Ye, qe))
|
|
73961
73961
|
this.pos += Ye <= 65535 ? 1 : 2;
|
|
73962
73962
|
else if (Ye === 92) {
|
|
73963
73963
|
this.containsEsc = !0, q += this.input.slice(Le, this.pos);
|
|
73964
73964
|
var ct = this.pos;
|
|
73965
73965
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
73966
73966
|
var ut = this.readCodePoint();
|
|
73967
|
-
(se ? A : I)(ut,
|
|
73967
|
+
(se ? A : I)(ut, qe) || this.invalidStringToken(ct, "Invalid Unicode escape"), q += He(ut), Le = this.pos;
|
|
73968
73968
|
} else
|
|
73969
73969
|
break;
|
|
73970
73970
|
se = !1;
|
|
@@ -77316,8 +77316,8 @@ function ProductCard({
|
|
|
77316
77316
|
shopifyHostname: f,
|
|
77317
77317
|
customAction: g = /* @__PURE__ */ jsx(Fragment$1, {})
|
|
77318
77318
|
}) {
|
|
77319
|
-
var Fe,
|
|
77320
|
-
const b = useNavigate(), { toast: S } = useToast(), [_, C] = useState(1), [E, R] = useState(null), [A, I] = useState(0), [M, V] = useState(!1), [F] = usePostV4ResellerByRouteResellerIdProductAndRandmarSkuShopifyMutation(), z = ((Fe = e == null ? void 0 : e.Distribution) == null ? void 0 : Fe.Cost) || 0, Q = ((
|
|
77319
|
+
var Fe, je, Be, Oe, He, We, Ue, Ke, tt;
|
|
77320
|
+
const b = useNavigate(), { toast: S } = useToast(), [_, C] = useState(1), [E, R] = useState(null), [A, I] = useState(0), [M, V] = useState(!1), [F] = usePostV4ResellerByRouteResellerIdProductAndRandmarSkuShopifyMutation(), z = ((Fe = e == null ? void 0 : e.Distribution) == null ? void 0 : Fe.Cost) || 0, Q = ((je = e == null ? void 0 : e.Distribution) == null ? void 0 : je.RegularPrice) || 0, O = ((Be = e == null ? void 0 : e.Distribution) == null ? void 0 : Be.Price) || 0;
|
|
77321
77321
|
useEffect(() => {
|
|
77322
77322
|
C(1), R(null), I(0);
|
|
77323
77323
|
}, [e == null ? void 0 : e.RandmarSKU]), useEffect(() => {
|
|
@@ -78224,7 +78224,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
78224
78224
|
let Ke = Ve()[Ue];
|
|
78225
78225
|
Ke && te.setState("value", Ke.getAttribute(T));
|
|
78226
78226
|
}
|
|
78227
|
-
function
|
|
78227
|
+
function je(Ue) {
|
|
78228
78228
|
var Ke;
|
|
78229
78229
|
let tt = ge(), Ge = Ve(), Qe = Ge.findIndex((st) => st === tt), Xe = Ge[Qe + Ue];
|
|
78230
78230
|
(Ke = g.current) != null && Ke.loop && (Xe = Qe + Ue < 0 ? Ge[Ge.length - 1] : Qe + Ue === Ge.length ? Ge[0] : Ge[Qe + Ue]), Xe && te.setState("value", Xe.getAttribute(T));
|
|
@@ -78232,12 +78232,12 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
78232
78232
|
function Be(Ue) {
|
|
78233
78233
|
let Ke = ge(), tt = Ke == null ? void 0 : Ke.closest(N), Ge;
|
|
78234
78234
|
for (; tt && !Ge; ) tt = Ue > 0 ? we(tt, N) : De(tt, N), Ge = tt == null ? void 0 : tt.querySelector(ce);
|
|
78235
|
-
Ge ? te.setState("value", Ge.getAttribute(T)) :
|
|
78235
|
+
Ge ? te.setState("value", Ge.getAttribute(T)) : je(Ue);
|
|
78236
78236
|
}
|
|
78237
78237
|
let Oe = () => Fe(Ve().length - 1), He = (Ue) => {
|
|
78238
|
-
Ue.preventDefault(), Ue.metaKey ? Oe() : Ue.altKey ? Be(1) :
|
|
78238
|
+
Ue.preventDefault(), Ue.metaKey ? Oe() : Ue.altKey ? Be(1) : je(1);
|
|
78239
78239
|
}, We = (Ue) => {
|
|
78240
|
-
Ue.preventDefault(), Ue.metaKey ? Fe(0) : Ue.altKey ? Be(-1) :
|
|
78240
|
+
Ue.preventDefault(), Ue.metaKey ? Fe(0) : Ue.altKey ? Be(-1) : je(-1);
|
|
78241
78241
|
};
|
|
78242
78242
|
return React.createElement(Primitive.div, { ref: e, tabIndex: -1, ...V, "cmdk-root": "", onKeyDown: (Ue) => {
|
|
78243
78243
|
var Ke;
|
|
@@ -78623,7 +78623,7 @@ const salesChannels = [
|
|
|
78623
78623
|
{ id: "other-market", label: "Other (please specify)" }
|
|
78624
78624
|
];
|
|
78625
78625
|
function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
78626
|
-
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), [I, M] = useState(""), [V, F] = useState(""), [z, Q] = useState([]), [O, j] = useState(""), [te, ne] = useState(""), [ae, $e] = useState([]), [Ae, oe] = useState(""), [Ne, ge] = useState(""), [Ve] = usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation(), { sendMessage: Fe } = useChat(),
|
|
78626
|
+
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), [I, M] = useState(""), [V, F] = useState(""), [z, Q] = useState([]), [O, j] = useState(""), [te, ne] = useState(""), [ae, $e] = useState([]), [Ae, oe] = useState(""), [Ne, ge] = useState(""), [Ve] = usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation(), { sendMessage: Fe } = useChat(), je = () => {
|
|
78627
78627
|
_(""), E("");
|
|
78628
78628
|
}, Be = () => {
|
|
78629
78629
|
M(""), F(""), Q([]), j(""), ne(""), $e([]), oe(""), ge("");
|
|
@@ -78646,7 +78646,7 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
78646
78646
|
return;
|
|
78647
78647
|
}
|
|
78648
78648
|
const st = (Ze = Xe.data) == null ? void 0 : Ze.ConversationId;
|
|
78649
|
-
st && Fe(st) ? (l(!1),
|
|
78649
|
+
st && Fe(st) ? (l(!1), je()) : n({ title: "Could not send message", description: "Try again later.", variant: "destructive" });
|
|
78650
78650
|
}).catch((Xe) => {
|
|
78651
78651
|
console.error(Xe), n({ title: "Could not initiate chat", description: "Try again later.", variant: "destructive" });
|
|
78652
78652
|
}).finally(() => {
|
|
@@ -92356,8 +92356,8 @@ function requireWithSelector_development() {
|
|
|
92356
92356
|
var Ve = j, Fe = te;
|
|
92357
92357
|
if (o(Ve, oe))
|
|
92358
92358
|
return Fe;
|
|
92359
|
-
var
|
|
92360
|
-
return A !== void 0 && A(Fe,
|
|
92359
|
+
var je = R(oe);
|
|
92360
|
+
return A !== void 0 && A(Fe, je) ? Fe : (j = oe, te = je, je);
|
|
92361
92361
|
}, ae = E === void 0 ? null : E, $e = function() {
|
|
92362
92362
|
return ne(C());
|
|
92363
92363
|
}, Ae = ae === null ? void 0 : function() {
|
|
@@ -94820,7 +94820,7 @@ function ProductOverviewPage({
|
|
|
94820
94820
|
productShopifyHostname: f,
|
|
94821
94821
|
productCustomAction: g = /* @__PURE__ */ jsx(Fragment$1, {})
|
|
94822
94822
|
}) {
|
|
94823
|
-
var z, Q, O, j, te, ne, ae, $e, Ae, oe, Ne, ge, Ve, Fe,
|
|
94823
|
+
var z, Q, O, j, te, ne, ae, $e, Ae, oe, Ne, ge, Ve, Fe, je, Be;
|
|
94824
94824
|
const {
|
|
94825
94825
|
data: b,
|
|
94826
94826
|
isLoading: S
|
|
@@ -95060,7 +95060,7 @@ function ProductOverviewPage({
|
|
|
95060
95060
|
}
|
|
95061
95061
|
) }) }),
|
|
95062
95062
|
/* @__PURE__ */ jsxs(TabsContent, { value: "purchase-orders-tab", children: [
|
|
95063
|
-
(((
|
|
95063
|
+
(((je = E == null ? void 0 : E.PurchaseOrders) == null ? void 0 : je.length) ?? 0) > 0 && /* @__PURE__ */ jsxs(Card, { className: "mt-4 w-full", children: [
|
|
95064
95064
|
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-1xl font-bold", children: "Purchase Orders" }) }),
|
|
95065
95065
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(
|
|
95066
95066
|
PurchaseOrdersTable,
|
|
@@ -95421,11 +95421,11 @@ function OpportunitiesTable({
|
|
|
95421
95421
|
id: "actions",
|
|
95422
95422
|
header: "Actions",
|
|
95423
95423
|
cell: ({ row: ne }) => {
|
|
95424
|
-
var Fe,
|
|
95424
|
+
var Fe, je;
|
|
95425
95425
|
const ae = ne.original;
|
|
95426
95426
|
if (!ae.BidNumber)
|
|
95427
95427
|
return /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: "Actions unavailable" });
|
|
95428
|
-
const $e = ae.BidNumber, Ae = (Fe = l[$e]) == null ? void 0 : Fe.isSettingDefault, oe = (_ == null ? void 0 : _.BidNumber) === $e && ((
|
|
95428
|
+
const $e = ae.BidNumber, Ae = (Fe = l[$e]) == null ? void 0 : Fe.isSettingDefault, oe = (_ == null ? void 0 : _.BidNumber) === $e && ((je = l[$e]) == null ? void 0 : je.isSendingReport), Ne = Ae || oe, ge = ae.CanBeSetAsDefault === !0, Ve = E != null && E.IsManufacturer ? `/${t}/Opportunity/${ae.BidNumber}` : `/${t}/Opportunity/${ae.ManufacturerId}/${ae.BidNumber}`;
|
|
95429
95429
|
return /* @__PURE__ */ jsxs("div", { className: "flex space-x-2", children: [
|
|
95430
95430
|
/* @__PURE__ */ jsx(Link, { to: Ve, children: /* @__PURE__ */ jsxs(Button$1, { variant: "outline", size: "sm", className: "flex items-center", children: [
|
|
95431
95431
|
/* @__PURE__ */ jsx(Star, { className: "mr-2 h-4 w-4" }),
|
|
@@ -97838,7 +97838,7 @@ function DayPicker(t) {
|
|
|
97838
97838
|
e.formatters,
|
|
97839
97839
|
e.labels,
|
|
97840
97840
|
e.classNames
|
|
97841
|
-
]), { captionLayout: b, mode: S, navLayout: _, numberOfMonths: C = 1, onDayBlur: E, onDayClick: R, onDayFocus: A, onDayKeyDown: I, onDayMouseEnter: M, onDayMouseLeave: V, onNextClick: F, onPrevClick: z, showWeekNumber: Q, styles: O } = e, { formatCaption: j, formatDay: te, formatMonthDropdown: ne, formatWeekNumber: ae, formatWeekNumberHeader: $e, formatWeekdayName: Ae, formatYearDropdown: oe } = o, Ne = useCalendar(e, d), { days: ge, months: Ve, navStart: Fe, navEnd:
|
|
97841
|
+
]), { captionLayout: b, mode: S, navLayout: _, numberOfMonths: C = 1, onDayBlur: E, onDayClick: R, onDayFocus: A, onDayKeyDown: I, onDayMouseEnter: M, onDayMouseLeave: V, onNextClick: F, onPrevClick: z, showWeekNumber: Q, styles: O } = e, { formatCaption: j, formatDay: te, formatMonthDropdown: ne, formatWeekNumber: ae, formatWeekNumberHeader: $e, formatWeekdayName: Ae, formatYearDropdown: oe } = o, Ne = useCalendar(e, d), { days: ge, months: Ve, navStart: Fe, navEnd: je, previousMonth: Be, nextMonth: Oe, goToMonth: He } = Ne, We = createGetModifiers(ge, e, Fe, je, d), { isSelected: Ue, select: Ke, selected: tt } = useSelection(e, d) ?? {}, { blur: Ge, focused: Qe, isFocusTarget: Xe, moveFocus: st, setFocused: Ze } = useFocus(e, Ne, We, Ue ?? (() => !1), d), { labelDayButton: at, labelGridcell: lt, labelGrid: ze, labelMonthDropdown: yt, labelNav: et, labelPrevious: Ct, labelNext: $t, labelWeekday: Ft, labelWeekNumber: Wt, labelWeekNumberHeader: Vt, labelYearDropdown: Je } = l, nt = useMemo(() => getWeekdays(d, e.ISOWeek), [d, e.ISOWeek]), ot = S !== void 0 || R !== void 0, pt = useCallback(() => {
|
|
97842
97842
|
Be && (He(Be), z == null || z(Be));
|
|
97843
97843
|
}, [Be, He, z]), ft = useCallback(() => {
|
|
97844
97844
|
Oe && (He(Oe), F == null || F(Oe));
|
|
@@ -97937,7 +97937,7 @@ function DayPicker(t) {
|
|
|
97937
97937
|
n.DropdownNav,
|
|
97938
97938
|
{ className: g[UI.Dropdowns], style: O == null ? void 0 : O[UI.Dropdowns] },
|
|
97939
97939
|
(() => {
|
|
97940
|
-
const Kt = b === "dropdown" || b === "dropdown-months" ? React__default.createElement(n.MonthsDropdown, { key: "month", className: g[UI.MonthsDropdown], "aria-label": yt(), classNames: g, components: n, disabled: !!e.disableNavigation, onChange: qt(er.date), options: getMonthOptions(er.date, Fe,
|
|
97940
|
+
const Kt = b === "dropdown" || b === "dropdown-months" ? React__default.createElement(n.MonthsDropdown, { key: "month", className: g[UI.MonthsDropdown], "aria-label": yt(), classNames: g, components: n, disabled: !!e.disableNavigation, onChange: qt(er.date), options: getMonthOptions(er.date, Fe, je, o, d), style: O == null ? void 0 : O[UI.Dropdown], value: d.getMonth(er.date) }) : React__default.createElement("span", { key: "month" }, ne(er.date, d)), Yt = b === "dropdown" || b === "dropdown-years" ? React__default.createElement(n.YearsDropdown, { key: "year", className: g[UI.YearsDropdown], "aria-label": Je(d.options), classNames: g, components: n, disabled: !!e.disableNavigation, onChange: Tr(er.date), options: getYearOptions(Fe, je, o, d, !!e.reverseYears), style: O == null ? void 0 : O[UI.Dropdown], value: d.getYear(er.date) }) : React__default.createElement("span", { key: "year" }, oe(er.date, d));
|
|
97941
97941
|
return d.getMonthYearOrder() === "year-first" ? [Yt, Kt] : [Kt, Yt];
|
|
97942
97942
|
})(),
|
|
97943
97943
|
React__default.createElement("span", { role: "status", "aria-live": "polite", style: {
|