@oniratec/onira-react-ui 1.3.2 → 1.3.3
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/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +21 -0
- package/dist/index.js +694 -634
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -648,12 +648,12 @@ function createContextScope(t, e = []) {
|
|
|
648
648
|
const y = React.createContext(d), M = r.length;
|
|
649
649
|
r = [...r, d];
|
|
650
650
|
const F = (q) => {
|
|
651
|
-
const { scope: V, children:
|
|
652
|
-
return /* @__PURE__ */ jsx(
|
|
651
|
+
const { scope: V, children: Z, ...K } = q, W = V?.[t]?.[M] || y, re = React.useMemo(() => K, Object.values(K));
|
|
652
|
+
return /* @__PURE__ */ jsx(W.Provider, { value: re, children: Z });
|
|
653
653
|
};
|
|
654
654
|
F.displayName = h + "Provider";
|
|
655
655
|
function j(q, V) {
|
|
656
|
-
const
|
|
656
|
+
const Z = V?.[t]?.[M] || y, K = React.useContext(Z);
|
|
657
657
|
if (K) return K;
|
|
658
658
|
if (d !== void 0) return d;
|
|
659
659
|
throw new Error(`\`${q}\` must be used within \`${h}\``);
|
|
@@ -747,7 +747,7 @@ var DISMISSABLE_LAYER_NAME = "DismissableLayer", CONTEXT_UPDATE = "dismissableLa
|
|
|
747
747
|
onInteractOutside: d,
|
|
748
748
|
onDismiss: y,
|
|
749
749
|
...M
|
|
750
|
-
} = t, F = React.useContext(DismissableLayerContext), [j, q] = React.useState(null), V = j?.ownerDocument ?? globalThis?.document, [,
|
|
750
|
+
} = t, F = React.useContext(DismissableLayerContext), [j, q] = React.useState(null), V = j?.ownerDocument ?? globalThis?.document, [, Z] = React.useState({}), K = useComposedRefs(e, (ae) => q(ae)), W = Array.from(F.layers), [re] = [...F.layersWithOutsidePointerEventsDisabled].slice(-1), H = W.indexOf(re), J = j ? W.indexOf(j) : -1, G = F.layersWithOutsidePointerEventsDisabled.size > 0, Q = J >= H, te = usePointerDownOutside((ae) => {
|
|
751
751
|
const le = ae.target, he = [...F.branches].some((ye) => ye.contains(le));
|
|
752
752
|
!Q || he || (a?.(ae), d?.(ae), ae.defaultPrevented || y?.());
|
|
753
753
|
}, V), ne = useFocusOutside((ae) => {
|
|
@@ -764,7 +764,7 @@ var DISMISSABLE_LAYER_NAME = "DismissableLayer", CONTEXT_UPDATE = "dismissableLa
|
|
|
764
764
|
}, [j, V, r, F]), React.useEffect(() => () => {
|
|
765
765
|
j && (F.layers.delete(j), F.layersWithOutsidePointerEventsDisabled.delete(j), dispatchUpdate());
|
|
766
766
|
}, [j, F]), React.useEffect(() => {
|
|
767
|
-
const ae = () =>
|
|
767
|
+
const ae = () => Z({});
|
|
768
768
|
return document.addEventListener(CONTEXT_UPDATE, ae), () => document.removeEventListener(CONTEXT_UPDATE, ae);
|
|
769
769
|
}, []), /* @__PURE__ */ jsx(
|
|
770
770
|
Primitive.div,
|
|
@@ -869,7 +869,7 @@ var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount", AUTOFOCUS_ON_UNMOUNT = "
|
|
|
869
869
|
onMountAutoFocus: a,
|
|
870
870
|
onUnmountAutoFocus: h,
|
|
871
871
|
...d
|
|
872
|
-
} = t, [y, M] = React.useState(null), F = useCallbackRef$1(a), j = useCallbackRef$1(h), q = React.useRef(null), V = useComposedRefs(e, (
|
|
872
|
+
} = t, [y, M] = React.useState(null), F = useCallbackRef$1(a), j = useCallbackRef$1(h), q = React.useRef(null), V = useComposedRefs(e, (W) => M(W)), Z = React.useRef({
|
|
873
873
|
paused: !1,
|
|
874
874
|
pause() {
|
|
875
875
|
this.paused = !0;
|
|
@@ -880,12 +880,12 @@ var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount", AUTOFOCUS_ON_UNMOUNT = "
|
|
|
880
880
|
}).current;
|
|
881
881
|
React.useEffect(() => {
|
|
882
882
|
if (i) {
|
|
883
|
-
let
|
|
884
|
-
if (
|
|
883
|
+
let W = function(G) {
|
|
884
|
+
if (Z.paused || !y) return;
|
|
885
885
|
const Q = G.target;
|
|
886
886
|
y.contains(Q) ? q.current = Q : focus(q.current, { select: !0 });
|
|
887
887
|
}, re = function(G) {
|
|
888
|
-
if (
|
|
888
|
+
if (Z.paused || !y) return;
|
|
889
889
|
const Q = G.relatedTarget;
|
|
890
890
|
Q !== null && (y.contains(Q) || focus(q.current, { select: !0 }));
|
|
891
891
|
}, H = function(G) {
|
|
@@ -893,38 +893,38 @@ var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount", AUTOFOCUS_ON_UNMOUNT = "
|
|
|
893
893
|
for (const te of G)
|
|
894
894
|
te.removedNodes.length > 0 && focus(y);
|
|
895
895
|
};
|
|
896
|
-
document.addEventListener("focusin",
|
|
896
|
+
document.addEventListener("focusin", W), document.addEventListener("focusout", re);
|
|
897
897
|
const J = new MutationObserver(H);
|
|
898
898
|
return y && J.observe(y, { childList: !0, subtree: !0 }), () => {
|
|
899
|
-
document.removeEventListener("focusin",
|
|
899
|
+
document.removeEventListener("focusin", W), document.removeEventListener("focusout", re), J.disconnect();
|
|
900
900
|
};
|
|
901
901
|
}
|
|
902
|
-
}, [i, y,
|
|
902
|
+
}, [i, y, Z.paused]), React.useEffect(() => {
|
|
903
903
|
if (y) {
|
|
904
|
-
focusScopesStack.add(
|
|
905
|
-
const
|
|
906
|
-
if (!y.contains(
|
|
904
|
+
focusScopesStack.add(Z);
|
|
905
|
+
const W = document.activeElement;
|
|
906
|
+
if (!y.contains(W)) {
|
|
907
907
|
const H = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
|
|
908
|
-
y.addEventListener(AUTOFOCUS_ON_MOUNT, F), y.dispatchEvent(H), H.defaultPrevented || (focusFirst(removeLinks(getTabbableCandidates(y)), { select: !0 }), document.activeElement ===
|
|
908
|
+
y.addEventListener(AUTOFOCUS_ON_MOUNT, F), y.dispatchEvent(H), H.defaultPrevented || (focusFirst(removeLinks(getTabbableCandidates(y)), { select: !0 }), document.activeElement === W && focus(y));
|
|
909
909
|
}
|
|
910
910
|
return () => {
|
|
911
911
|
y.removeEventListener(AUTOFOCUS_ON_MOUNT, F), setTimeout(() => {
|
|
912
912
|
const H = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
|
|
913
|
-
y.addEventListener(AUTOFOCUS_ON_UNMOUNT, j), y.dispatchEvent(H), H.defaultPrevented || focus(
|
|
913
|
+
y.addEventListener(AUTOFOCUS_ON_UNMOUNT, j), y.dispatchEvent(H), H.defaultPrevented || focus(W ?? document.body, { select: !0 }), y.removeEventListener(AUTOFOCUS_ON_UNMOUNT, j), focusScopesStack.remove(Z);
|
|
914
914
|
}, 0);
|
|
915
915
|
};
|
|
916
916
|
}
|
|
917
|
-
}, [y, F, j,
|
|
917
|
+
}, [y, F, j, Z]);
|
|
918
918
|
const K = React.useCallback(
|
|
919
|
-
(
|
|
920
|
-
if (!r && !i ||
|
|
921
|
-
const re =
|
|
919
|
+
(W) => {
|
|
920
|
+
if (!r && !i || Z.paused) return;
|
|
921
|
+
const re = W.key === "Tab" && !W.altKey && !W.ctrlKey && !W.metaKey, H = document.activeElement;
|
|
922
922
|
if (re && H) {
|
|
923
|
-
const J =
|
|
924
|
-
G && Q ? !
|
|
923
|
+
const J = W.currentTarget, [G, Q] = getTabbableEdges(J);
|
|
924
|
+
G && Q ? !W.shiftKey && H === Q ? (W.preventDefault(), r && focus(G, { select: !0 })) : W.shiftKey && H === G && (W.preventDefault(), r && focus(Q, { select: !0 })) : H === J && W.preventDefault();
|
|
925
925
|
}
|
|
926
926
|
},
|
|
927
|
-
[r, i,
|
|
927
|
+
[r, i, Z.paused]
|
|
928
928
|
);
|
|
929
929
|
return /* @__PURE__ */ jsx(Primitive.div, { tabIndex: -1, ...d, ref: V, onKeyDown: K });
|
|
930
930
|
});
|
|
@@ -1111,47 +1111,47 @@ function computeCoordsFromPlacement(t, e, r) {
|
|
|
1111
1111
|
floating: a
|
|
1112
1112
|
} = t;
|
|
1113
1113
|
const h = getSideAxis(e), d = getAlignmentAxis(e), y = getAxisLength(d), M = getSide(e), F = h === "y", j = i.x + i.width / 2 - a.width / 2, q = i.y + i.height / 2 - a.height / 2, V = i[y] / 2 - a[y] / 2;
|
|
1114
|
-
let
|
|
1114
|
+
let Z;
|
|
1115
1115
|
switch (M) {
|
|
1116
1116
|
case "top":
|
|
1117
|
-
|
|
1117
|
+
Z = {
|
|
1118
1118
|
x: j,
|
|
1119
1119
|
y: i.y - a.height
|
|
1120
1120
|
};
|
|
1121
1121
|
break;
|
|
1122
1122
|
case "bottom":
|
|
1123
|
-
|
|
1123
|
+
Z = {
|
|
1124
1124
|
x: j,
|
|
1125
1125
|
y: i.y + i.height
|
|
1126
1126
|
};
|
|
1127
1127
|
break;
|
|
1128
1128
|
case "right":
|
|
1129
|
-
|
|
1129
|
+
Z = {
|
|
1130
1130
|
x: i.x + i.width,
|
|
1131
1131
|
y: q
|
|
1132
1132
|
};
|
|
1133
1133
|
break;
|
|
1134
1134
|
case "left":
|
|
1135
|
-
|
|
1135
|
+
Z = {
|
|
1136
1136
|
x: i.x - a.width,
|
|
1137
1137
|
y: q
|
|
1138
1138
|
};
|
|
1139
1139
|
break;
|
|
1140
1140
|
default:
|
|
1141
|
-
|
|
1141
|
+
Z = {
|
|
1142
1142
|
x: i.x,
|
|
1143
1143
|
y: i.y
|
|
1144
1144
|
};
|
|
1145
1145
|
}
|
|
1146
1146
|
switch (getAlignment(e)) {
|
|
1147
1147
|
case "start":
|
|
1148
|
-
|
|
1148
|
+
Z[d] -= V * (r && F ? -1 : 1);
|
|
1149
1149
|
break;
|
|
1150
1150
|
case "end":
|
|
1151
|
-
|
|
1151
|
+
Z[d] += V * (r && F ? -1 : 1);
|
|
1152
1152
|
break;
|
|
1153
1153
|
}
|
|
1154
|
-
return
|
|
1154
|
+
return Z;
|
|
1155
1155
|
}
|
|
1156
1156
|
const computePosition$1 = async (t, e, r) => {
|
|
1157
1157
|
const {
|
|
@@ -1167,12 +1167,12 @@ const computePosition$1 = async (t, e, r) => {
|
|
|
1167
1167
|
}), {
|
|
1168
1168
|
x: j,
|
|
1169
1169
|
y: q
|
|
1170
|
-
} = computeCoordsFromPlacement(F, i, M), V = i,
|
|
1171
|
-
for (let
|
|
1170
|
+
} = computeCoordsFromPlacement(F, i, M), V = i, Z = {}, K = 0;
|
|
1171
|
+
for (let W = 0; W < y.length; W++) {
|
|
1172
1172
|
const {
|
|
1173
1173
|
name: re,
|
|
1174
1174
|
fn: H
|
|
1175
|
-
} = y[
|
|
1175
|
+
} = y[W], {
|
|
1176
1176
|
x: J,
|
|
1177
1177
|
y: G,
|
|
1178
1178
|
data: Q,
|
|
@@ -1183,7 +1183,7 @@ const computePosition$1 = async (t, e, r) => {
|
|
|
1183
1183
|
initialPlacement: i,
|
|
1184
1184
|
placement: V,
|
|
1185
1185
|
strategy: a,
|
|
1186
|
-
middlewareData:
|
|
1186
|
+
middlewareData: Z,
|
|
1187
1187
|
rects: F,
|
|
1188
1188
|
platform: d,
|
|
1189
1189
|
elements: {
|
|
@@ -1191,10 +1191,10 @@ const computePosition$1 = async (t, e, r) => {
|
|
|
1191
1191
|
floating: e
|
|
1192
1192
|
}
|
|
1193
1193
|
});
|
|
1194
|
-
j = J ?? j, q = G ?? q,
|
|
1195
|
-
...
|
|
1194
|
+
j = J ?? j, q = G ?? q, Z = {
|
|
1195
|
+
...Z,
|
|
1196
1196
|
[re]: {
|
|
1197
|
-
...
|
|
1197
|
+
...Z[re],
|
|
1198
1198
|
...Q
|
|
1199
1199
|
}
|
|
1200
1200
|
}, te && K <= 50 && (K++, typeof te == "object" && (te.placement && (V = te.placement), te.rects && (F = te.rects === !0 ? await d.getElementRects({
|
|
@@ -1204,14 +1204,14 @@ const computePosition$1 = async (t, e, r) => {
|
|
|
1204
1204
|
}) : te.rects), {
|
|
1205
1205
|
x: j,
|
|
1206
1206
|
y: q
|
|
1207
|
-
} = computeCoordsFromPlacement(F, V, M)),
|
|
1207
|
+
} = computeCoordsFromPlacement(F, V, M)), W = -1);
|
|
1208
1208
|
}
|
|
1209
1209
|
return {
|
|
1210
1210
|
x: j,
|
|
1211
1211
|
y: q,
|
|
1212
1212
|
placement: V,
|
|
1213
1213
|
strategy: a,
|
|
1214
|
-
middlewareData:
|
|
1214
|
+
middlewareData: Z
|
|
1215
1215
|
};
|
|
1216
1216
|
};
|
|
1217
1217
|
async function detectOverflow(t, e) {
|
|
@@ -1229,8 +1229,8 @@ async function detectOverflow(t, e) {
|
|
|
1229
1229
|
rootBoundary: j = "viewport",
|
|
1230
1230
|
elementContext: q = "floating",
|
|
1231
1231
|
altBoundary: V = !1,
|
|
1232
|
-
padding:
|
|
1233
|
-
} = evaluate(e, t), K = getPaddingObject(
|
|
1232
|
+
padding: Z = 0
|
|
1233
|
+
} = evaluate(e, t), K = getPaddingObject(Z), re = y[V ? q === "floating" ? "reference" : "floating" : q], H = rectToClientRect(await h.getClippingRect({
|
|
1234
1234
|
element: (r = await (h.isElement == null ? void 0 : h.isElement(re))) == null || r ? re : re.contextElement || await (h.getDocumentElement == null ? void 0 : h.getDocumentElement(y.floating)),
|
|
1235
1235
|
boundary: F,
|
|
1236
1236
|
rootBoundary: j,
|
|
@@ -1280,14 +1280,14 @@ const arrow$3 = (t) => ({
|
|
|
1280
1280
|
const q = getPaddingObject(j), V = {
|
|
1281
1281
|
x: r,
|
|
1282
1282
|
y: i
|
|
1283
|
-
},
|
|
1283
|
+
}, Z = getAlignmentAxis(a), K = getAxisLength(Z), W = await d.getDimensions(F), re = Z === "y", H = re ? "top" : "left", J = re ? "bottom" : "right", G = re ? "clientHeight" : "clientWidth", Q = h.reference[K] + h.reference[Z] - V[Z] - h.floating[K], te = V[Z] - h.reference[Z], ne = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(F));
|
|
1284
1284
|
let ae = ne ? ne[G] : 0;
|
|
1285
1285
|
(!ae || !await (d.isElement == null ? void 0 : d.isElement(ne))) && (ae = y.floating[G] || h.floating[K]);
|
|
1286
|
-
const le = Q / 2 - te / 2, he = ae / 2 -
|
|
1286
|
+
const le = Q / 2 - te / 2, he = ae / 2 - W[K] / 2 - 1, ye = min(q[H], he), me = min(q[J], he), de = ye, ve = ae - W[K] - me, ge = ae / 2 - W[K] / 2 + le, fe = clamp(de, ge, ve), se = !M.arrow && getAlignment(a) != null && ge !== fe && h.reference[K] / 2 - (ge < de ? ye : me) - W[K] / 2 < 0, ce = se ? ge < de ? ge - de : ge - ve : 0;
|
|
1287
1287
|
return {
|
|
1288
|
-
[
|
|
1288
|
+
[Z]: V[Z] + ce,
|
|
1289
1289
|
data: {
|
|
1290
|
-
[
|
|
1290
|
+
[Z]: fe,
|
|
1291
1291
|
centerOffset: ge - fe - ce,
|
|
1292
1292
|
...se && {
|
|
1293
1293
|
alignmentOffset: ce
|
|
@@ -1313,15 +1313,15 @@ const arrow$3 = (t) => ({
|
|
|
1313
1313
|
mainAxis: j = !0,
|
|
1314
1314
|
crossAxis: q = !0,
|
|
1315
1315
|
fallbackPlacements: V,
|
|
1316
|
-
fallbackStrategy:
|
|
1316
|
+
fallbackStrategy: Z = "bestFit",
|
|
1317
1317
|
fallbackAxisSideDirection: K = "none",
|
|
1318
|
-
flipAlignment:
|
|
1318
|
+
flipAlignment: W = !0,
|
|
1319
1319
|
...re
|
|
1320
1320
|
} = evaluate(t, e);
|
|
1321
1321
|
if ((r = h.arrow) != null && r.alignmentOffset)
|
|
1322
1322
|
return {};
|
|
1323
|
-
const H = getSide(a), J = getSideAxis(y), G = getSide(y) === y, Q = await (M.isRTL == null ? void 0 : M.isRTL(F.floating)), te = V || (G || !
|
|
1324
|
-
!V && ne && te.push(...getOppositeAxisPlacements(y,
|
|
1323
|
+
const H = getSide(a), J = getSideAxis(y), G = getSide(y) === y, Q = await (M.isRTL == null ? void 0 : M.isRTL(F.floating)), te = V || (G || !W ? [getOppositePlacement(y)] : getExpandedPlacements(y)), ne = K !== "none";
|
|
1324
|
+
!V && ne && te.push(...getOppositeAxisPlacements(y, W, K, Q));
|
|
1325
1325
|
const ae = [y, ...te], le = await detectOverflow(e, re), he = [];
|
|
1326
1326
|
let ye = ((i = h.flip) == null ? void 0 : i.overflows) || [];
|
|
1327
1327
|
if (j && he.push(le[H]), q) {
|
|
@@ -1348,7 +1348,7 @@ const arrow$3 = (t) => ({
|
|
|
1348
1348
|
};
|
|
1349
1349
|
let se = (de = ye.filter((ce) => ce.overflows[0] <= 0).sort((ce, ee) => ce.overflows[1] - ee.overflows[1])[0]) == null ? void 0 : de.placement;
|
|
1350
1350
|
if (!se)
|
|
1351
|
-
switch (
|
|
1351
|
+
switch (Z) {
|
|
1352
1352
|
case "bestFit": {
|
|
1353
1353
|
var ve;
|
|
1354
1354
|
const ce = (ve = ye.filter((ee) => {
|
|
@@ -1439,7 +1439,7 @@ async function convertValueToCoords(t, e) {
|
|
|
1439
1439
|
} = t, h = await (i.isRTL == null ? void 0 : i.isRTL(a.floating)), d = getSide(r), y = getAlignment(r), M = getSideAxis(r) === "y", F = originSides.has(d) ? -1 : 1, j = h && M ? -1 : 1, q = evaluate(e, t);
|
|
1440
1440
|
let {
|
|
1441
1441
|
mainAxis: V,
|
|
1442
|
-
crossAxis:
|
|
1442
|
+
crossAxis: Z,
|
|
1443
1443
|
alignmentAxis: K
|
|
1444
1444
|
} = typeof q == "number" ? {
|
|
1445
1445
|
mainAxis: q,
|
|
@@ -1450,12 +1450,12 @@ async function convertValueToCoords(t, e) {
|
|
|
1450
1450
|
crossAxis: q.crossAxis || 0,
|
|
1451
1451
|
alignmentAxis: q.alignmentAxis
|
|
1452
1452
|
};
|
|
1453
|
-
return y && typeof K == "number" && (
|
|
1454
|
-
x:
|
|
1453
|
+
return y && typeof K == "number" && (Z = y === "end" ? K * -1 : K), M ? {
|
|
1454
|
+
x: Z * j,
|
|
1455
1455
|
y: V * F
|
|
1456
1456
|
} : {
|
|
1457
1457
|
x: V * F,
|
|
1458
|
-
y:
|
|
1458
|
+
y: Z * j
|
|
1459
1459
|
};
|
|
1460
1460
|
}
|
|
1461
1461
|
const offset$3 = function(t) {
|
|
@@ -1509,25 +1509,25 @@ const offset$3 = function(t) {
|
|
|
1509
1509
|
x: r,
|
|
1510
1510
|
y: i
|
|
1511
1511
|
}, j = await detectOverflow(e, M), q = getSideAxis(getSide(a)), V = getOppositeAxis(q);
|
|
1512
|
-
let
|
|
1512
|
+
let Z = F[V], K = F[q];
|
|
1513
1513
|
if (h) {
|
|
1514
|
-
const re = V === "y" ? "top" : "left", H = V === "y" ? "bottom" : "right", J =
|
|
1515
|
-
|
|
1514
|
+
const re = V === "y" ? "top" : "left", H = V === "y" ? "bottom" : "right", J = Z + j[re], G = Z - j[H];
|
|
1515
|
+
Z = clamp(J, Z, G);
|
|
1516
1516
|
}
|
|
1517
1517
|
if (d) {
|
|
1518
1518
|
const re = q === "y" ? "top" : "left", H = q === "y" ? "bottom" : "right", J = K + j[re], G = K - j[H];
|
|
1519
1519
|
K = clamp(J, K, G);
|
|
1520
1520
|
}
|
|
1521
|
-
const
|
|
1521
|
+
const W = y.fn({
|
|
1522
1522
|
...e,
|
|
1523
|
-
[V]:
|
|
1523
|
+
[V]: Z,
|
|
1524
1524
|
[q]: K
|
|
1525
1525
|
});
|
|
1526
1526
|
return {
|
|
1527
|
-
...
|
|
1527
|
+
...W,
|
|
1528
1528
|
data: {
|
|
1529
|
-
x:
|
|
1530
|
-
y:
|
|
1529
|
+
x: W.x - r,
|
|
1530
|
+
y: W.y - i,
|
|
1531
1531
|
enabled: {
|
|
1532
1532
|
[V]: h,
|
|
1533
1533
|
[q]: d
|
|
@@ -1554,18 +1554,18 @@ const offset$3 = function(t) {
|
|
|
1554
1554
|
x: r,
|
|
1555
1555
|
y: i
|
|
1556
1556
|
}, q = getSideAxis(a), V = getOppositeAxis(q);
|
|
1557
|
-
let
|
|
1558
|
-
const
|
|
1559
|
-
mainAxis:
|
|
1557
|
+
let Z = j[V], K = j[q];
|
|
1558
|
+
const W = evaluate(y, e), re = typeof W == "number" ? {
|
|
1559
|
+
mainAxis: W,
|
|
1560
1560
|
crossAxis: 0
|
|
1561
1561
|
} : {
|
|
1562
1562
|
mainAxis: 0,
|
|
1563
1563
|
crossAxis: 0,
|
|
1564
|
-
...
|
|
1564
|
+
...W
|
|
1565
1565
|
};
|
|
1566
1566
|
if (M) {
|
|
1567
1567
|
const G = V === "y" ? "height" : "width", Q = h.reference[V] - h.floating[G] + re.mainAxis, te = h.reference[V] + h.reference[G] - re.mainAxis;
|
|
1568
|
-
|
|
1568
|
+
Z < Q ? Z = Q : Z > te && (Z = te);
|
|
1569
1569
|
}
|
|
1570
1570
|
if (F) {
|
|
1571
1571
|
var H, J;
|
|
@@ -1573,7 +1573,7 @@ const offset$3 = function(t) {
|
|
|
1573
1573
|
K < te ? K = te : K > ne && (K = ne);
|
|
1574
1574
|
}
|
|
1575
1575
|
return {
|
|
1576
|
-
[V]:
|
|
1576
|
+
[V]: Z,
|
|
1577
1577
|
[q]: K
|
|
1578
1578
|
};
|
|
1579
1579
|
}
|
|
@@ -1593,17 +1593,17 @@ const offset$3 = function(t) {
|
|
|
1593
1593
|
apply: M = () => {
|
|
1594
1594
|
},
|
|
1595
1595
|
...F
|
|
1596
|
-
} = evaluate(t, e), j = await detectOverflow(e, F), q = getSide(a), V = getAlignment(a),
|
|
1596
|
+
} = evaluate(t, e), j = await detectOverflow(e, F), q = getSide(a), V = getAlignment(a), Z = getSideAxis(a) === "y", {
|
|
1597
1597
|
width: K,
|
|
1598
|
-
height:
|
|
1598
|
+
height: W
|
|
1599
1599
|
} = h.floating;
|
|
1600
1600
|
let re, H;
|
|
1601
1601
|
q === "top" || q === "bottom" ? (re = q, H = V === (await (d.isRTL == null ? void 0 : d.isRTL(y.floating)) ? "start" : "end") ? "left" : "right") : (H = q, re = V === "end" ? "top" : "bottom");
|
|
1602
|
-
const J =
|
|
1602
|
+
const J = W - j.top - j.bottom, G = K - j.left - j.right, Q = min(W - j[re], J), te = min(K - j[H], G), ne = !e.middlewareData.shift;
|
|
1603
1603
|
let ae = Q, le = te;
|
|
1604
1604
|
if ((r = e.middlewareData.shift) != null && r.enabled.x && (le = G), (i = e.middlewareData.shift) != null && i.enabled.y && (ae = J), ne && !V) {
|
|
1605
1605
|
const ye = max(j.left, 0), me = max(j.right, 0), de = max(j.top, 0), ve = max(j.bottom, 0);
|
|
1606
|
-
|
|
1606
|
+
Z ? le = K - 2 * (ye !== 0 || me !== 0 ? ye + me : max(j.left, j.right)) : ae = W - 2 * (de !== 0 || ve !== 0 ? de + ve : max(j.top, j.bottom));
|
|
1607
1607
|
}
|
|
1608
1608
|
await M({
|
|
1609
1609
|
...e,
|
|
@@ -1611,7 +1611,7 @@ const offset$3 = function(t) {
|
|
|
1611
1611
|
availableHeight: ae
|
|
1612
1612
|
});
|
|
1613
1613
|
const he = await d.getDimensions(y.floating);
|
|
1614
|
-
return K !== he.width ||
|
|
1614
|
+
return K !== he.width || W !== he.height ? {
|
|
1615
1615
|
reset: {
|
|
1616
1616
|
rects: !0
|
|
1617
1617
|
}
|
|
@@ -1780,11 +1780,11 @@ function getBoundingClientRect(t, e, r, i) {
|
|
|
1780
1780
|
const y = shouldAddVisualOffsets(h, r, i) ? getVisualOffsets(h) : createCoords(0);
|
|
1781
1781
|
let M = (a.left + y.x) / d.x, F = (a.top + y.y) / d.y, j = a.width / d.x, q = a.height / d.y;
|
|
1782
1782
|
if (h) {
|
|
1783
|
-
const V = getWindow(h),
|
|
1784
|
-
let K = V,
|
|
1785
|
-
for (;
|
|
1786
|
-
const re = getScale(
|
|
1787
|
-
M *= re.x, F *= re.y, j *= re.x, q *= re.y, M += G, F += Q, K = getWindow(
|
|
1783
|
+
const V = getWindow(h), Z = i && isElement(i) ? getWindow(i) : i;
|
|
1784
|
+
let K = V, W = getFrameElement(K);
|
|
1785
|
+
for (; W && i && Z !== K; ) {
|
|
1786
|
+
const re = getScale(W), H = W.getBoundingClientRect(), J = getComputedStyle$1(W), G = H.left + (W.clientLeft + parseFloat(J.paddingLeft)) * re.x, Q = H.top + (W.clientTop + parseFloat(J.paddingTop)) * re.y;
|
|
1787
|
+
M *= re.x, F *= re.y, j *= re.x, q *= re.y, M += G, F += Q, K = getWindow(W), W = getFrameElement(K);
|
|
1788
1788
|
}
|
|
1789
1789
|
}
|
|
1790
1790
|
return rectToClientRect({
|
|
@@ -1821,8 +1821,8 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(t) {
|
|
|
1821
1821
|
}, F = createCoords(1);
|
|
1822
1822
|
const j = createCoords(0), q = isHTMLElement(i);
|
|
1823
1823
|
if ((q || !q && !h) && ((getNodeName(i) !== "body" || isOverflowElement(d)) && (M = getNodeScroll(i)), isHTMLElement(i))) {
|
|
1824
|
-
const
|
|
1825
|
-
F = getScale(i), j.x =
|
|
1824
|
+
const Z = getBoundingClientRect(i);
|
|
1825
|
+
F = getScale(i), j.x = Z.x + i.clientLeft, j.y = Z.y + i.clientTop;
|
|
1826
1826
|
}
|
|
1827
1827
|
const V = d && !q && !h ? getHTMLOffset(d, M) : createCoords(0);
|
|
1828
1828
|
return {
|
|
@@ -1857,7 +1857,7 @@ function getViewportRect(t, e) {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
const F = getWindowScrollBarX(i);
|
|
1859
1859
|
if (F <= 0) {
|
|
1860
|
-
const j = i.ownerDocument, q = j.body, V = getComputedStyle(q),
|
|
1860
|
+
const j = i.ownerDocument, q = j.body, V = getComputedStyle(q), Z = j.compatMode === "CSS1Compat" && parseFloat(V.marginLeft) + parseFloat(V.marginRight) || 0, K = Math.abs(i.clientWidth - q.clientWidth - Z);
|
|
1861
1861
|
K <= SCROLLBAR_MAX && (h -= K);
|
|
1862
1862
|
} else F <= SCROLLBAR_MAX && (h += F);
|
|
1863
1863
|
return {
|
|
@@ -1953,8 +1953,8 @@ function getRectRelativeToOffsetParent(t, e, r) {
|
|
|
1953
1953
|
}
|
|
1954
1954
|
if (i || !i && !h)
|
|
1955
1955
|
if ((getNodeName(e) !== "body" || isOverflowElement(a)) && (y = getNodeScroll(e)), i) {
|
|
1956
|
-
const
|
|
1957
|
-
M.x =
|
|
1956
|
+
const Z = getBoundingClientRect(e, !0, h, e);
|
|
1957
|
+
M.x = Z.x + e.clientLeft, M.y = Z.y + e.clientTop;
|
|
1958
1958
|
} else a && F();
|
|
1959
1959
|
h && !i && a && F();
|
|
1960
1960
|
const j = a && !i && !h ? getHTMLOffset(a, y) : createCoords(0), q = d.left + y.scrollLeft - M.x - j.x, V = d.top + y.scrollTop - M.y - j.y;
|
|
@@ -2037,12 +2037,12 @@ function observeMove(t, e) {
|
|
|
2037
2037
|
left: j,
|
|
2038
2038
|
top: q,
|
|
2039
2039
|
width: V,
|
|
2040
|
-
height:
|
|
2040
|
+
height: Z
|
|
2041
2041
|
} = F;
|
|
2042
|
-
if (y || e(), !V || !
|
|
2042
|
+
if (y || e(), !V || !Z)
|
|
2043
2043
|
return;
|
|
2044
|
-
const K = floor(q),
|
|
2045
|
-
rootMargin: -K + "px " + -
|
|
2044
|
+
const K = floor(q), W = floor(a.clientWidth - (j + V)), re = floor(a.clientHeight - (q + Z)), H = floor(j), G = {
|
|
2045
|
+
rootMargin: -K + "px " + -W + "px " + -re + "px " + -H + "px",
|
|
2046
2046
|
threshold: max(0, min(1, M)) || 1
|
|
2047
2047
|
};
|
|
2048
2048
|
let Q = !0;
|
|
@@ -2085,25 +2085,25 @@ function autoUpdate(t, e, r, i) {
|
|
|
2085
2085
|
}), h && H.addEventListener("resize", r);
|
|
2086
2086
|
});
|
|
2087
2087
|
const q = F && y ? observeMove(F, r) : null;
|
|
2088
|
-
let V = -1,
|
|
2089
|
-
d && (
|
|
2088
|
+
let V = -1, Z = null;
|
|
2089
|
+
d && (Z = new ResizeObserver((H) => {
|
|
2090
2090
|
let [J] = H;
|
|
2091
|
-
J && J.target === F &&
|
|
2091
|
+
J && J.target === F && Z && (Z.unobserve(e), cancelAnimationFrame(V), V = requestAnimationFrame(() => {
|
|
2092
2092
|
var G;
|
|
2093
|
-
(G =
|
|
2093
|
+
(G = Z) == null || G.observe(e);
|
|
2094
2094
|
})), r();
|
|
2095
|
-
}), F && !M &&
|
|
2096
|
-
let K,
|
|
2095
|
+
}), F && !M && Z.observe(F), Z.observe(e));
|
|
2096
|
+
let K, W = M ? getBoundingClientRect(t) : null;
|
|
2097
2097
|
M && re();
|
|
2098
2098
|
function re() {
|
|
2099
2099
|
const H = getBoundingClientRect(t);
|
|
2100
|
-
|
|
2100
|
+
W && !rectsAreEqual(W, H) && r(), W = H, K = requestAnimationFrame(re);
|
|
2101
2101
|
}
|
|
2102
2102
|
return r(), () => {
|
|
2103
2103
|
var H;
|
|
2104
2104
|
j.forEach((J) => {
|
|
2105
2105
|
a && J.removeEventListener("scroll", r), h && J.removeEventListener("resize", r);
|
|
2106
|
-
}), q?.(), (H =
|
|
2106
|
+
}), q?.(), (H = Z) == null || H.disconnect(), Z = null, M && cancelAnimationFrame(K);
|
|
2107
2107
|
};
|
|
2108
2108
|
}
|
|
2109
2109
|
const offset$2 = offset$3, shift$1 = shift$2, flip$1 = flip$2, size$1 = size$2, hide$1 = hide$2, arrow$2 = arrow$3, limitShift$1 = limitShift$2, computePosition = (t, e, r) => {
|
|
@@ -2185,10 +2185,10 @@ function useFloating(t) {
|
|
|
2185
2185
|
placement: e,
|
|
2186
2186
|
middlewareData: {},
|
|
2187
2187
|
isPositioned: !1
|
|
2188
|
-
}), [V,
|
|
2189
|
-
deepEqual$1(V, i) ||
|
|
2190
|
-
const [K,
|
|
2191
|
-
ee !== ne.current && (ne.current = ee,
|
|
2188
|
+
}), [V, Z] = React.useState(i);
|
|
2189
|
+
deepEqual$1(V, i) || Z(i);
|
|
2190
|
+
const [K, W] = React.useState(null), [re, H] = React.useState(null), J = React.useCallback((ee) => {
|
|
2191
|
+
ee !== ne.current && (ne.current = ee, W(ee));
|
|
2192
2192
|
}, []), G = React.useCallback((ee) => {
|
|
2193
2193
|
ee !== ae.current && (ae.current = ee, H(ee));
|
|
2194
2194
|
}, []), Q = h || K, te = d || re, ne = React.useRef(null), ae = React.useRef(null), le = React.useRef(j), he = M != null, ye = useLatestRef(M), me = useLatestRef(a), de = useLatestRef(F), ve = React.useCallback(() => {
|
|
@@ -2377,9 +2377,9 @@ var CONTENT_NAME$1 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
2377
2377
|
collisionPadding: j = 0,
|
|
2378
2378
|
sticky: q = "partial",
|
|
2379
2379
|
hideWhenDetached: V = !1,
|
|
2380
|
-
updatePositionStrategy:
|
|
2380
|
+
updatePositionStrategy: Z = "optimized",
|
|
2381
2381
|
onPlaced: K,
|
|
2382
|
-
...
|
|
2382
|
+
...W
|
|
2383
2383
|
} = t, re = usePopperContext(CONTENT_NAME$1, r), [H, J] = React.useState(null), G = useComposedRefs(e, (_e) => J(_e)), [Q, te] = React.useState(null), ne = useSize(Q), ae = ne?.width ?? 0, le = ne?.height ?? 0, he = i + (h !== "center" ? "-" + h : ""), ye = typeof j == "number" ? j : { top: 0, right: 0, bottom: 0, left: 0, ...j }, me = Array.isArray(F) ? F : [F], de = me.length > 0, ve = {
|
|
2384
2384
|
padding: ye,
|
|
2385
2385
|
boundary: me.filter(isNotNull),
|
|
@@ -2390,7 +2390,7 @@ var CONTENT_NAME$1 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
2390
2390
|
strategy: "fixed",
|
|
2391
2391
|
placement: he,
|
|
2392
2392
|
whileElementsMounted: (..._e) => autoUpdate(..._e, {
|
|
2393
|
-
animationFrame:
|
|
2393
|
+
animationFrame: Z === "always"
|
|
2394
2394
|
}),
|
|
2395
2395
|
elements: {
|
|
2396
2396
|
reference: re.anchor
|
|
@@ -2460,10 +2460,10 @@ var CONTENT_NAME$1 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
2460
2460
|
{
|
|
2461
2461
|
"data-side": ie,
|
|
2462
2462
|
"data-align": ue,
|
|
2463
|
-
...
|
|
2463
|
+
...W,
|
|
2464
2464
|
ref: G,
|
|
2465
2465
|
style: {
|
|
2466
|
-
...
|
|
2466
|
+
...W.style,
|
|
2467
2467
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2468
2468
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2469
2469
|
animation: ce ? void 0 : "none"
|
|
@@ -2535,9 +2535,9 @@ var transformOrigin = (t) => ({
|
|
|
2535
2535
|
name: "transformOrigin",
|
|
2536
2536
|
options: t,
|
|
2537
2537
|
fn(e) {
|
|
2538
|
-
const { placement: r, rects: i, middlewareData: a } = e, d = a.arrow?.centerOffset !== 0, y = d ? 0 : t.arrowWidth, M = d ? 0 : t.arrowHeight, [F, j] = getSideAndAlignFromPlacement(r), q = { start: "0%", center: "50%", end: "100%" }[j], V = (a.arrow?.x ?? 0) + y / 2,
|
|
2539
|
-
let K = "",
|
|
2540
|
-
return F === "bottom" ? (K = d ? q : `${V}px`,
|
|
2538
|
+
const { placement: r, rects: i, middlewareData: a } = e, d = a.arrow?.centerOffset !== 0, y = d ? 0 : t.arrowWidth, M = d ? 0 : t.arrowHeight, [F, j] = getSideAndAlignFromPlacement(r), q = { start: "0%", center: "50%", end: "100%" }[j], V = (a.arrow?.x ?? 0) + y / 2, Z = (a.arrow?.y ?? 0) + M / 2;
|
|
2539
|
+
let K = "", W = "";
|
|
2540
|
+
return F === "bottom" ? (K = d ? q : `${V}px`, W = `${-M}px`) : F === "top" ? (K = d ? q : `${V}px`, W = `${i.floating.height + M}px`) : F === "right" ? (K = `${-M}px`, W = d ? q : `${Z}px`) : F === "left" && (K = `${i.floating.width + M}px`, W = d ? q : `${Z}px`), { data: { x: K, y: W } };
|
|
2541
2541
|
}
|
|
2542
2542
|
});
|
|
2543
2543
|
function getSideAndAlignFromPlacement(t) {
|
|
@@ -2579,22 +2579,22 @@ function usePresence(t) {
|
|
|
2579
2579
|
}, [y]), useLayoutEffect2(() => {
|
|
2580
2580
|
const F = i.current, j = a.current;
|
|
2581
2581
|
if (j !== t) {
|
|
2582
|
-
const V = h.current,
|
|
2583
|
-
t ? M("MOUNT") :
|
|
2582
|
+
const V = h.current, Z = getAnimationName(F);
|
|
2583
|
+
t ? M("MOUNT") : Z === "none" || F?.display === "none" ? M("UNMOUNT") : M(j && V !== Z ? "ANIMATION_OUT" : "UNMOUNT"), a.current = t;
|
|
2584
2584
|
}
|
|
2585
2585
|
}, [t, M]), useLayoutEffect2(() => {
|
|
2586
2586
|
if (e) {
|
|
2587
2587
|
let F;
|
|
2588
|
-
const j = e.ownerDocument.defaultView ?? window, q = (
|
|
2589
|
-
const
|
|
2590
|
-
if (
|
|
2588
|
+
const j = e.ownerDocument.defaultView ?? window, q = (Z) => {
|
|
2589
|
+
const W = getAnimationName(i.current).includes(CSS.escape(Z.animationName));
|
|
2590
|
+
if (Z.target === e && W && (M("ANIMATION_END"), !a.current)) {
|
|
2591
2591
|
const re = e.style.animationFillMode;
|
|
2592
2592
|
e.style.animationFillMode = "forwards", F = j.setTimeout(() => {
|
|
2593
2593
|
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = re);
|
|
2594
2594
|
});
|
|
2595
2595
|
}
|
|
2596
|
-
}, V = (
|
|
2597
|
-
|
|
2596
|
+
}, V = (Z) => {
|
|
2597
|
+
Z.target === e && (h.current = getAnimationName(i.current));
|
|
2598
2598
|
};
|
|
2599
2599
|
return e.addEventListener("animationstart", V), e.addEventListener("animationcancel", q), e.addEventListener("animationend", q), () => {
|
|
2600
2600
|
j.clearTimeout(F), e.removeEventListener("animationstart", V), e.removeEventListener("animationcancel", q), e.removeEventListener("animationend", q);
|
|
@@ -2691,8 +2691,8 @@ var getDefaultParent = function(t) {
|
|
|
2691
2691
|
j(V);
|
|
2692
2692
|
else
|
|
2693
2693
|
try {
|
|
2694
|
-
var
|
|
2695
|
-
counterMap.set(V,
|
|
2694
|
+
var Z = V.getAttribute(i), K = Z !== null && Z !== "false", W = (counterMap.get(V) || 0) + 1, re = (h.get(V) || 0) + 1;
|
|
2695
|
+
counterMap.set(V, W), h.set(V, re), d.push(V), W === 1 && K && uncontrolledNodes.set(V, !0), re === 1 && V.setAttribute(r, "true"), K || V.setAttribute(i, "true");
|
|
2696
2696
|
} catch (H) {
|
|
2697
2697
|
console.error("aria-hidden: cannot operate on ", V, H);
|
|
2698
2698
|
}
|
|
@@ -2700,8 +2700,8 @@ var getDefaultParent = function(t) {
|
|
|
2700
2700
|
};
|
|
2701
2701
|
return j(e), y.clear(), lockCount++, function() {
|
|
2702
2702
|
d.forEach(function(q) {
|
|
2703
|
-
var V = counterMap.get(q) - 1,
|
|
2704
|
-
counterMap.set(q, V), h.set(q,
|
|
2703
|
+
var V = counterMap.get(q) - 1, Z = h.get(q) - 1;
|
|
2704
|
+
counterMap.set(q, V), h.set(q, Z), V || (uncontrolledNodes.has(q) || q.removeAttribute(i), uncontrolledNodes.delete(q)), Z || q.removeAttribute(r);
|
|
2705
2705
|
}), lockCount--, lockCount || (counterMap = /* @__PURE__ */ new WeakMap(), counterMap = /* @__PURE__ */ new WeakMap(), uncontrolledNodes = /* @__PURE__ */ new WeakMap(), markerMap = {});
|
|
2706
2706
|
};
|
|
2707
2707
|
}, hideOthers = function(t, e, r) {
|
|
@@ -2860,11 +2860,11 @@ var effectCar = createSidecarMedium(), nothing = function() {
|
|
|
2860
2860
|
onScrollCapture: nothing,
|
|
2861
2861
|
onWheelCapture: nothing,
|
|
2862
2862
|
onTouchMoveCapture: nothing
|
|
2863
|
-
}), a = i[0], h = i[1], d = t.forwardProps, y = t.children, M = t.className, F = t.removeScrollBar, j = t.enabled, q = t.shards, V = t.sideCar,
|
|
2863
|
+
}), a = i[0], h = i[1], d = t.forwardProps, y = t.children, M = t.className, F = t.removeScrollBar, j = t.enabled, q = t.shards, V = t.sideCar, Z = t.noRelative, K = t.noIsolation, W = t.inert, re = t.allowPinchZoom, H = t.as, J = H === void 0 ? "div" : H, G = t.gapMode, Q = __rest(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), te = V, ne = useMergeRefs([r, e]), ae = __assign(__assign({}, Q), a);
|
|
2864
2864
|
return React.createElement(
|
|
2865
2865
|
React.Fragment,
|
|
2866
2866
|
null,
|
|
2867
|
-
j && React.createElement(te, { sideCar: effectCar, removeScrollBar: F, shards: q, noRelative:
|
|
2867
|
+
j && React.createElement(te, { sideCar: effectCar, removeScrollBar: F, shards: q, noRelative: Z, noIsolation: K, inert: W, setCallbacks: h, allowPinchZoom: !!re, lockRef: r, gapMode: G }),
|
|
2868
2868
|
d ? React.cloneElement(React.Children.only(y), __assign(__assign({}, ae), { ref: ne })) : React.createElement(J, __assign({}, ae, { className: M, ref: ne }), y)
|
|
2869
2869
|
);
|
|
2870
2870
|
});
|
|
@@ -3067,7 +3067,7 @@ var nonPassive = passiveSupported ? { passive: !1 } : !1, alwaysContainsScroll =
|
|
|
3067
3067
|
do {
|
|
3068
3068
|
if (!y)
|
|
3069
3069
|
break;
|
|
3070
|
-
var
|
|
3070
|
+
var Z = getScrollVariables(t, y), K = Z[0], W = Z[1], re = Z[2], H = W - re - h * K;
|
|
3071
3071
|
(K || H) && elementCouldBeScrolled(t, y) && (q += H, V += K);
|
|
3072
3072
|
var J = y.parentNode;
|
|
3073
3073
|
y = J && J.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? J.host : J;
|
|
@@ -3098,21 +3098,21 @@ function RemoveScrollSideCar(t) {
|
|
|
3098
3098
|
}, [t]), React.useEffect(function() {
|
|
3099
3099
|
if (t.inert) {
|
|
3100
3100
|
document.body.classList.add("block-interactivity-".concat(a));
|
|
3101
|
-
var
|
|
3102
|
-
return
|
|
3101
|
+
var W = __spreadArray([t.lockRef.current], (t.shards || []).map(extractRef), !0).filter(Boolean);
|
|
3102
|
+
return W.forEach(function(re) {
|
|
3103
3103
|
return re.classList.add("allow-interactivity-".concat(a));
|
|
3104
3104
|
}), function() {
|
|
3105
|
-
document.body.classList.remove("block-interactivity-".concat(a)),
|
|
3105
|
+
document.body.classList.remove("block-interactivity-".concat(a)), W.forEach(function(re) {
|
|
3106
3106
|
return re.classList.remove("allow-interactivity-".concat(a));
|
|
3107
3107
|
});
|
|
3108
3108
|
};
|
|
3109
3109
|
}
|
|
3110
3110
|
}, [t.inert, t.lockRef.current, t.shards]);
|
|
3111
|
-
var y = React.useCallback(function(
|
|
3112
|
-
if ("touches" in
|
|
3111
|
+
var y = React.useCallback(function(W, re) {
|
|
3112
|
+
if ("touches" in W && W.touches.length === 2 || W.type === "wheel" && W.ctrlKey)
|
|
3113
3113
|
return !d.current.allowPinchZoom;
|
|
3114
|
-
var H = getTouchXY(
|
|
3115
|
-
if ("touches" in
|
|
3114
|
+
var H = getTouchXY(W), J = r.current, G = "deltaX" in W ? W.deltaX : J[0] - H[0], Q = "deltaY" in W ? W.deltaY : J[1] - H[1], te, ne = W.target, ae = Math.abs(G) > Math.abs(Q) ? "h" : "v";
|
|
3115
|
+
if ("touches" in W && ae === "h" && ne.type === "range")
|
|
3116
3116
|
return !1;
|
|
3117
3117
|
var le = window.getSelection(), he = le && le.anchorNode, ye = he ? he === ne || he.contains(ne) : !1;
|
|
3118
3118
|
if (ye)
|
|
@@ -3122,12 +3122,12 @@ function RemoveScrollSideCar(t) {
|
|
|
3122
3122
|
return !0;
|
|
3123
3123
|
if (me ? te = ae : (te = ae === "v" ? "h" : "v", me = locationCouldBeScrolled(ae, ne)), !me)
|
|
3124
3124
|
return !1;
|
|
3125
|
-
if (!i.current && "changedTouches" in
|
|
3125
|
+
if (!i.current && "changedTouches" in W && (G || Q) && (i.current = te), !te)
|
|
3126
3126
|
return !0;
|
|
3127
3127
|
var de = i.current || te;
|
|
3128
|
-
return handleScroll(de, re,
|
|
3129
|
-
}, []), M = React.useCallback(function(
|
|
3130
|
-
var re =
|
|
3128
|
+
return handleScroll(de, re, W, de === "h" ? G : Q);
|
|
3129
|
+
}, []), M = React.useCallback(function(W) {
|
|
3130
|
+
var re = W;
|
|
3131
3131
|
if (!(!lockStack.length || lockStack[lockStack.length - 1] !== h)) {
|
|
3132
3132
|
var H = "deltaY" in re ? getDeltaXY(re) : getTouchXY(re), J = e.current.filter(function(te) {
|
|
3133
3133
|
return te.name === re.type && (te.target === re.target || re.target === te.shadowParent) && deltaCompare(te.delta, H);
|
|
@@ -3143,19 +3143,19 @@ function RemoveScrollSideCar(t) {
|
|
|
3143
3143
|
Q && re.cancelable && re.preventDefault();
|
|
3144
3144
|
}
|
|
3145
3145
|
}
|
|
3146
|
-
}, []), F = React.useCallback(function(
|
|
3147
|
-
var G = { name:
|
|
3146
|
+
}, []), F = React.useCallback(function(W, re, H, J) {
|
|
3147
|
+
var G = { name: W, delta: re, target: H, should: J, shadowParent: getOutermostShadowParent(H) };
|
|
3148
3148
|
e.current.push(G), setTimeout(function() {
|
|
3149
3149
|
e.current = e.current.filter(function(Q) {
|
|
3150
3150
|
return Q !== G;
|
|
3151
3151
|
});
|
|
3152
3152
|
}, 1);
|
|
3153
|
-
}, []), j = React.useCallback(function(
|
|
3154
|
-
r.current = getTouchXY(
|
|
3155
|
-
}, []), q = React.useCallback(function(
|
|
3156
|
-
F(
|
|
3157
|
-
}, []), V = React.useCallback(function(
|
|
3158
|
-
F(
|
|
3153
|
+
}, []), j = React.useCallback(function(W) {
|
|
3154
|
+
r.current = getTouchXY(W), i.current = void 0;
|
|
3155
|
+
}, []), q = React.useCallback(function(W) {
|
|
3156
|
+
F(W.type, getDeltaXY(W), W.target, y(W, t.lockRef.current));
|
|
3157
|
+
}, []), V = React.useCallback(function(W) {
|
|
3158
|
+
F(W.type, getTouchXY(W), W.target, y(W, t.lockRef.current));
|
|
3159
3159
|
}, []);
|
|
3160
3160
|
React.useEffect(function() {
|
|
3161
3161
|
return lockStack.push(h), t.setCallbacks({
|
|
@@ -3163,17 +3163,17 @@ function RemoveScrollSideCar(t) {
|
|
|
3163
3163
|
onWheelCapture: q,
|
|
3164
3164
|
onTouchMoveCapture: V
|
|
3165
3165
|
}), document.addEventListener("wheel", M, nonPassive), document.addEventListener("touchmove", M, nonPassive), document.addEventListener("touchstart", j, nonPassive), function() {
|
|
3166
|
-
lockStack = lockStack.filter(function(
|
|
3167
|
-
return
|
|
3166
|
+
lockStack = lockStack.filter(function(W) {
|
|
3167
|
+
return W !== h;
|
|
3168
3168
|
}), document.removeEventListener("wheel", M, nonPassive), document.removeEventListener("touchmove", M, nonPassive), document.removeEventListener("touchstart", j, nonPassive);
|
|
3169
3169
|
};
|
|
3170
3170
|
}, []);
|
|
3171
|
-
var
|
|
3171
|
+
var Z = t.removeScrollBar, K = t.inert;
|
|
3172
3172
|
return React.createElement(
|
|
3173
3173
|
React.Fragment,
|
|
3174
3174
|
null,
|
|
3175
3175
|
K ? React.createElement(h, { styles: generateStyle(a) }) : null,
|
|
3176
|
-
|
|
3176
|
+
Z ? React.createElement(RemoveScrollBar, { noRelative: t.noRelative, gapMode: t.gapMode }) : null
|
|
3177
3177
|
);
|
|
3178
3178
|
}
|
|
3179
3179
|
function getOutermostShadowParent(t) {
|
|
@@ -3210,7 +3210,7 @@ var POPOVER_NAME = "Popover", [createPopoverContext] = createContextScope(POPOVE
|
|
|
3210
3210
|
triggerRef: M,
|
|
3211
3211
|
open: q,
|
|
3212
3212
|
onOpenChange: V,
|
|
3213
|
-
onOpenToggle: React.useCallback(() => V((
|
|
3213
|
+
onOpenToggle: React.useCallback(() => V((Z) => !Z), [V]),
|
|
3214
3214
|
hasCustomAnchor: F,
|
|
3215
3215
|
onCustomAnchorAdd: React.useCallback(() => j(!0), []),
|
|
3216
3216
|
onCustomAnchorRemove: React.useCallback(() => j(!1), []),
|
|
@@ -3326,7 +3326,7 @@ var Slot = /* @__PURE__ */ createSlot("PopoverContent.RemoveScroll"), PopoverCon
|
|
|
3326
3326
|
onFocusOutside: F,
|
|
3327
3327
|
onInteractOutside: j,
|
|
3328
3328
|
...q
|
|
3329
|
-
} = t, V = usePopoverContext(CONTENT_NAME, r),
|
|
3329
|
+
} = t, V = usePopoverContext(CONTENT_NAME, r), Z = usePopperScope(r);
|
|
3330
3330
|
return useFocusGuards(), /* @__PURE__ */ jsx(
|
|
3331
3331
|
FocusScope,
|
|
3332
3332
|
{
|
|
@@ -3351,7 +3351,7 @@ var Slot = /* @__PURE__ */ createSlot("PopoverContent.RemoveScroll"), PopoverCon
|
|
|
3351
3351
|
"data-state": getState(V.open),
|
|
3352
3352
|
role: "dialog",
|
|
3353
3353
|
id: V.contentId,
|
|
3354
|
-
...
|
|
3354
|
+
...Z,
|
|
3355
3355
|
...q,
|
|
3356
3356
|
ref: e,
|
|
3357
3357
|
style: {
|
|
@@ -3832,9 +3832,9 @@ class IANAZone extends Zone {
|
|
|
3832
3832
|
second: j,
|
|
3833
3833
|
millisecond: 0
|
|
3834
3834
|
});
|
|
3835
|
-
let
|
|
3836
|
-
const K =
|
|
3837
|
-
return
|
|
3835
|
+
let Z = +r;
|
|
3836
|
+
const K = Z % 1e3;
|
|
3837
|
+
return Z -= K >= 0 ? K : 1e3 + K, (V - Z) / (60 * 1e3);
|
|
3838
3838
|
}
|
|
3839
3839
|
/**
|
|
3840
3840
|
* Return whether this Zone is equal to another zone
|
|
@@ -4976,14 +4976,14 @@ class Formatter {
|
|
|
4976
4976
|
return r > 0 && (a.padTo = r), i && (a.signDisplay = i), this.loc.numberFormatter(a).format(e);
|
|
4977
4977
|
}
|
|
4978
4978
|
formatDateTimeFromString(e, r) {
|
|
4979
|
-
const i = this.loc.listingMode() === "en", a = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", h = (
|
|
4980
|
-
K ? { weekday:
|
|
4979
|
+
const i = this.loc.listingMode() === "en", a = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", h = (Z, K) => this.loc.extract(e, Z, K), d = (Z) => e.isOffsetFixed && e.offset === 0 && Z.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, Z.format) : "", y = () => i ? meridiemForDateTime(e) : h({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), M = (Z, K) => i ? monthForDateTime(e, Z) : h(K ? { month: Z } : { month: Z, day: "numeric" }, "month"), F = (Z, K) => i ? weekdayForDateTime(e, Z) : h(
|
|
4980
|
+
K ? { weekday: Z } : { weekday: Z, month: "long", day: "numeric" },
|
|
4981
4981
|
"weekday"
|
|
4982
|
-
), j = (
|
|
4983
|
-
const K = Formatter.macroTokenToFormatOpts(
|
|
4984
|
-
return K ? this.formatWithSystemDefault(e, K) :
|
|
4985
|
-
}, q = (
|
|
4986
|
-
switch (
|
|
4982
|
+
), j = (Z) => {
|
|
4983
|
+
const K = Formatter.macroTokenToFormatOpts(Z);
|
|
4984
|
+
return K ? this.formatWithSystemDefault(e, K) : Z;
|
|
4985
|
+
}, q = (Z) => i ? eraForDateTime(e, Z) : h({ era: Z }, "era"), V = (Z) => {
|
|
4986
|
+
switch (Z) {
|
|
4987
4987
|
// ms
|
|
4988
4988
|
case "S":
|
|
4989
4989
|
return this.num(e.millisecond);
|
|
@@ -5122,7 +5122,7 @@ class Formatter {
|
|
|
5122
5122
|
case "x":
|
|
5123
5123
|
return this.num(e.ts);
|
|
5124
5124
|
default:
|
|
5125
|
-
return j(
|
|
5125
|
+
return j(Z);
|
|
5126
5126
|
}
|
|
5127
5127
|
};
|
|
5128
5128
|
return stringifyTokens(Formatter.parseFormat(r), V);
|
|
@@ -5150,11 +5150,11 @@ class Formatter {
|
|
|
5150
5150
|
return null;
|
|
5151
5151
|
}
|
|
5152
5152
|
}, h = (j, q) => (V) => {
|
|
5153
|
-
const
|
|
5154
|
-
if (
|
|
5155
|
-
const K = q.isNegativeDuration &&
|
|
5156
|
-
let
|
|
5157
|
-
return this.opts.signMode === "negativeLargestOnly" &&
|
|
5153
|
+
const Z = a(V);
|
|
5154
|
+
if (Z) {
|
|
5155
|
+
const K = q.isNegativeDuration && Z !== q.largestUnit ? i : 1;
|
|
5156
|
+
let W;
|
|
5157
|
+
return this.opts.signMode === "negativeLargestOnly" && Z !== q.largestUnit ? W = "never" : this.opts.signMode === "all" ? W = "always" : W = "auto", this.num(j.get(Z) * K, V.length, W);
|
|
5158
5158
|
} else
|
|
5159
5159
|
return V;
|
|
5160
5160
|
}, d = Formatter.parseFormat(r), y = d.reduce(
|
|
@@ -5234,7 +5234,7 @@ function extractIANAZone(t, e) {
|
|
|
5234
5234
|
}
|
|
5235
5235
|
const isoTimeOnly = RegExp(`^T?${isoTimeBaseRegex.source}$`), isoDuration = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
|
|
5236
5236
|
function extractISODuration(t) {
|
|
5237
|
-
const [e, r, i, a, h, d, y, M, F] = t, j = e[0] === "-", q = M && M[0] === "-", V = (
|
|
5237
|
+
const [e, r, i, a, h, d, y, M, F] = t, j = e[0] === "-", q = M && M[0] === "-", V = (Z, K = !1) => Z !== void 0 && (K || Z && j) ? -Z : Z;
|
|
5238
5238
|
return [
|
|
5239
5239
|
{
|
|
5240
5240
|
years: V(parseFloating(r)),
|
|
@@ -5285,8 +5285,8 @@ function extractRFC2822(t) {
|
|
|
5285
5285
|
j,
|
|
5286
5286
|
q
|
|
5287
5287
|
] = t, V = fromStrings(e, a, i, r, h, d, y);
|
|
5288
|
-
let
|
|
5289
|
-
return M ?
|
|
5288
|
+
let Z;
|
|
5289
|
+
return M ? Z = obsOffsets[M] : F ? Z = 0 : Z = signedOffset(j, q), [V, new FixedOffsetZone(Z)];
|
|
5290
5290
|
}
|
|
5291
5291
|
function preprocessRFC2822(t) {
|
|
5292
5292
|
return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
|
@@ -6779,9 +6779,9 @@ function escapeToken(t) {
|
|
|
6779
6779
|
return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
6780
6780
|
}
|
|
6781
6781
|
function unitForToken(t, e) {
|
|
6782
|
-
const r = digitRegex(e), i = digitRegex(e, "{2}"), a = digitRegex(e, "{3}"), h = digitRegex(e, "{4}"), d = digitRegex(e, "{6}"), y = digitRegex(e, "{1,2}"), M = digitRegex(e, "{1,3}"), F = digitRegex(e, "{1,6}"), j = digitRegex(e, "{1,9}"), q = digitRegex(e, "{2,4}"), V = digitRegex(e, "{4,6}"),
|
|
6782
|
+
const r = digitRegex(e), i = digitRegex(e, "{2}"), a = digitRegex(e, "{3}"), h = digitRegex(e, "{4}"), d = digitRegex(e, "{6}"), y = digitRegex(e, "{1,2}"), M = digitRegex(e, "{1,3}"), F = digitRegex(e, "{1,6}"), j = digitRegex(e, "{1,9}"), q = digitRegex(e, "{2,4}"), V = digitRegex(e, "{4,6}"), Z = (re) => ({ regex: RegExp(escapeToken(re.val)), deser: ([H]) => H, literal: !0 }), W = ((re) => {
|
|
6783
6783
|
if (t.literal)
|
|
6784
|
-
return
|
|
6784
|
+
return Z(re);
|
|
6785
6785
|
switch (re.val) {
|
|
6786
6786
|
// era
|
|
6787
6787
|
case "G":
|
|
@@ -6897,12 +6897,12 @@ function unitForToken(t, e) {
|
|
|
6897
6897
|
case " ":
|
|
6898
6898
|
return simple(/[^\S\n\r]/);
|
|
6899
6899
|
default:
|
|
6900
|
-
return
|
|
6900
|
+
return Z(re);
|
|
6901
6901
|
}
|
|
6902
6902
|
})(t) || {
|
|
6903
6903
|
invalidReason: MISSING_FTP
|
|
6904
6904
|
};
|
|
6905
|
-
return
|
|
6905
|
+
return W.token = t, W;
|
|
6906
6906
|
}
|
|
6907
6907
|
const partTypeStyleToTokenVal = {
|
|
6908
6908
|
year: {
|
|
@@ -7501,31 +7501,31 @@ class DateTime {
|
|
|
7501
7501
|
const i = normalizeZone(r.zone, Settings.defaultZone);
|
|
7502
7502
|
if (!i.isValid)
|
|
7503
7503
|
return DateTime.invalid(unsupportedZone(i));
|
|
7504
|
-
const a = Locale.fromObject(r), h = normalizeObject(e, normalizeUnitWithLocalWeeks), { minDaysInFirstWeek: d, startOfWeek: y } = usesLocalWeekValues(h, a), M = Settings.now(), F = isUndefined$1(r.specificOffset) ? i.offset(M) : r.specificOffset, j = !isUndefined$1(h.ordinal), q = !isUndefined$1(h.year), V = !isUndefined$1(h.month) || !isUndefined$1(h.day),
|
|
7505
|
-
if ((
|
|
7504
|
+
const a = Locale.fromObject(r), h = normalizeObject(e, normalizeUnitWithLocalWeeks), { minDaysInFirstWeek: d, startOfWeek: y } = usesLocalWeekValues(h, a), M = Settings.now(), F = isUndefined$1(r.specificOffset) ? i.offset(M) : r.specificOffset, j = !isUndefined$1(h.ordinal), q = !isUndefined$1(h.year), V = !isUndefined$1(h.month) || !isUndefined$1(h.day), Z = q || V, K = h.weekYear || h.weekNumber;
|
|
7505
|
+
if ((Z || j) && K)
|
|
7506
7506
|
throw new ConflictingSpecificationError(
|
|
7507
7507
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
7508
7508
|
);
|
|
7509
7509
|
if (V && j)
|
|
7510
7510
|
throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");
|
|
7511
|
-
const
|
|
7511
|
+
const W = K || h.weekday && !Z;
|
|
7512
7512
|
let re, H, J = tsToObj(M, F);
|
|
7513
|
-
|
|
7513
|
+
W ? (re = orderedWeekUnits, H = defaultWeekUnitValues, J = gregorianToWeek(J, d, y)) : j ? (re = orderedOrdinalUnits, H = defaultOrdinalUnitValues, J = gregorianToOrdinal(J)) : (re = orderedUnits, H = defaultUnitValues);
|
|
7514
7514
|
let G = !1;
|
|
7515
7515
|
for (const ye of re) {
|
|
7516
7516
|
const me = h[ye];
|
|
7517
7517
|
isUndefined$1(me) ? G ? h[ye] = H[ye] : h[ye] = J[ye] : G = !0;
|
|
7518
7518
|
}
|
|
7519
|
-
const Q =
|
|
7519
|
+
const Q = W ? hasInvalidWeekData(h, d, y) : j ? hasInvalidOrdinalData(h) : hasInvalidGregorianData(h), te = Q || hasInvalidTimeData(h);
|
|
7520
7520
|
if (te)
|
|
7521
7521
|
return DateTime.invalid(te);
|
|
7522
|
-
const ne =
|
|
7522
|
+
const ne = W ? weekToGregorian(h, d, y) : j ? ordinalToGregorian(h) : h, [ae, le] = objToTS(ne, F, i), he = new DateTime({
|
|
7523
7523
|
ts: ae,
|
|
7524
7524
|
zone: i,
|
|
7525
7525
|
o: le,
|
|
7526
7526
|
loc: a
|
|
7527
7527
|
});
|
|
7528
|
-
return h.weekday &&
|
|
7528
|
+
return h.weekday && Z && e.weekday !== he.weekday ? DateTime.invalid(
|
|
7529
7529
|
"mismatched weekday",
|
|
7530
7530
|
`you can't specify both a weekday of ${h.weekday} and a date of ${he.toISO()}`
|
|
7531
7531
|
) : he.isValid ? he : DateTime.invalid(he.invalid);
|
|
@@ -8145,8 +8145,8 @@ class DateTime {
|
|
|
8145
8145
|
i,
|
|
8146
8146
|
a
|
|
8147
8147
|
) : isUndefined$1(r.ordinal) ? (q = { ...this.toObject(), ...r }, isUndefined$1(r.day) && (q.day = Math.min(daysInMonth(q.year, q.month), q.day))) : q = ordinalToGregorian({ ...gregorianToOrdinal(this.c), ...r });
|
|
8148
|
-
const [V,
|
|
8149
|
-
return clone(this, { ts: V, o:
|
|
8148
|
+
const [V, Z] = objToTS(q, this.o, this.zone);
|
|
8149
|
+
return clone(this, { ts: V, o: Z });
|
|
8150
8150
|
}
|
|
8151
8151
|
/**
|
|
8152
8152
|
* Add a period of time to this DateTime and return the resulting DateTime
|
|
@@ -8974,7 +8974,7 @@ const DatePicker = React.forwardRef(
|
|
|
8974
8974
|
isInvalid: M,
|
|
8975
8975
|
timeZone: F
|
|
8976
8976
|
}, j) => {
|
|
8977
|
-
const q = React.useMemo(() => resolveTimeZone(F), [F]), [V,
|
|
8977
|
+
const q = React.useMemo(() => resolveTimeZone(F), [F]), [V, Z] = React.useState(!1), [K, W] = React.useState(e ?? null), [re, H] = React.useState(() => {
|
|
8978
8978
|
const oe = t ?? e ?? /* @__PURE__ */ new Date();
|
|
8979
8979
|
return DateTime.fromJSDate(oe, { zone: q }).startOf("month");
|
|
8980
8980
|
}), [J, G] = React.useState(null), Q = t !== void 0, te = Q ? t : K, ne = React.useMemo(
|
|
@@ -8989,7 +8989,7 @@ const DatePicker = React.forwardRef(
|
|
|
8989
8989
|
), he = React.useRef(null), ye = (oe) => {
|
|
8990
8990
|
if (isDateDisabled(oe, ae, le)) return;
|
|
8991
8991
|
const pe = oe.toJSDate();
|
|
8992
|
-
Q ||
|
|
8992
|
+
Q || W(pe), r?.(pe), Z(!1);
|
|
8993
8993
|
}, me = (oe) => {
|
|
8994
8994
|
H((pe) => pe.plus({ months: oe }).startOf("month"));
|
|
8995
8995
|
}, de = (oe) => {
|
|
@@ -9016,7 +9016,7 @@ const DatePicker = React.forwardRef(
|
|
|
9016
9016
|
oe.preventDefault(), J && !isDateDisabled(J, ae, le) && ye(J);
|
|
9017
9017
|
return;
|
|
9018
9018
|
case "Escape":
|
|
9019
|
-
oe.preventDefault(),
|
|
9019
|
+
oe.preventDefault(), Z(!1);
|
|
9020
9020
|
return;
|
|
9021
9021
|
case "Home":
|
|
9022
9022
|
oe.preventDefault(), xe = pe.startOf("month");
|
|
@@ -9046,7 +9046,7 @@ const DatePicker = React.forwardRef(
|
|
|
9046
9046
|
ue.push(null);
|
|
9047
9047
|
for (let oe = 1; oe <= se; oe++)
|
|
9048
9048
|
ue.push(oe);
|
|
9049
|
-
return /* @__PURE__ */ jsxs(Root2, { open: V, onOpenChange:
|
|
9049
|
+
return /* @__PURE__ */ jsxs(Root2, { open: V, onOpenChange: Z, children: [
|
|
9050
9050
|
/* @__PURE__ */ jsx(Trigger, { asChild: !0, disabled: i, children: /* @__PURE__ */ jsxs(
|
|
9051
9051
|
"button",
|
|
9052
9052
|
{
|
|
@@ -9323,9 +9323,9 @@ function FileUpload({
|
|
|
9323
9323
|
allowDrop: q = !1,
|
|
9324
9324
|
placeholder: V = defaultPlaceholder,
|
|
9325
9325
|
// ✅ NEW
|
|
9326
|
-
showPreview:
|
|
9326
|
+
showPreview: Z = !0,
|
|
9327
9327
|
previewMode: K = "auto",
|
|
9328
|
-
maxPreviewItems:
|
|
9328
|
+
maxPreviewItems: W = 4,
|
|
9329
9329
|
defaultPreviewUrl: re
|
|
9330
9330
|
}) {
|
|
9331
9331
|
const H = useId$1(), J = F ?? H, G = e ? `${J}-helper` : void 0, Q = r ? `${J}-error` : void 0, te = [G, Q].filter(Boolean).join(" ") || void 0, ne = useRef(null), [ae, le] = useState(y), [he, ye] = useState(!1), me = d !== void 0, de = me ? d : ae, ve = (ue) => {
|
|
@@ -9350,14 +9350,14 @@ function FileUpload({
|
|
|
9350
9350
|
const pe = a ? ge(oe) : oe;
|
|
9351
9351
|
ve(pe);
|
|
9352
9352
|
}, ee = useMemo(() => {
|
|
9353
|
-
if (!
|
|
9354
|
-
const ue = de.slice(0,
|
|
9353
|
+
if (!Z) return [];
|
|
9354
|
+
const ue = de.slice(0, W);
|
|
9355
9355
|
return K === "image" || K === "auto" && ue.some((pe) => isImageFile(pe)) ? ue.filter((pe) => isImageFile(pe)).map((pe) => ({
|
|
9356
9356
|
key: getFileKey(pe),
|
|
9357
9357
|
file: pe,
|
|
9358
9358
|
url: URL.createObjectURL(pe)
|
|
9359
9359
|
})) : [];
|
|
9360
|
-
}, [de,
|
|
9360
|
+
}, [de, W, K, Z]);
|
|
9361
9361
|
useEffect(() => () => {
|
|
9362
9362
|
for (const ue of ee) URL.revokeObjectURL(ue.url);
|
|
9363
9363
|
}, [ee]);
|
|
@@ -9714,29 +9714,29 @@ function requireLottie() {
|
|
|
9714
9714
|
var t = 1, e = [], r, i, a = {
|
|
9715
9715
|
onmessage: function() {
|
|
9716
9716
|
},
|
|
9717
|
-
postMessage: function(
|
|
9717
|
+
postMessage: function(Z) {
|
|
9718
9718
|
r({
|
|
9719
|
-
data:
|
|
9719
|
+
data: Z
|
|
9720
9720
|
});
|
|
9721
9721
|
}
|
|
9722
9722
|
}, h = {
|
|
9723
|
-
postMessage: function(
|
|
9723
|
+
postMessage: function(Z) {
|
|
9724
9724
|
a.onmessage({
|
|
9725
|
-
data:
|
|
9725
|
+
data: Z
|
|
9726
9726
|
});
|
|
9727
9727
|
}
|
|
9728
9728
|
};
|
|
9729
9729
|
function d(V) {
|
|
9730
9730
|
if (window.Worker && window.Blob && getWebWorker()) {
|
|
9731
|
-
var
|
|
9731
|
+
var Z = new Blob(["var _workerSelf = self; self.onmessage = ", V.toString()], {
|
|
9732
9732
|
type: "text/javascript"
|
|
9733
|
-
}), K = URL.createObjectURL(
|
|
9733
|
+
}), K = URL.createObjectURL(Z);
|
|
9734
9734
|
return new Worker(K);
|
|
9735
9735
|
}
|
|
9736
9736
|
return r = V, a;
|
|
9737
9737
|
}
|
|
9738
9738
|
function y() {
|
|
9739
|
-
i || (i = d(function(
|
|
9739
|
+
i || (i = d(function(Z) {
|
|
9740
9740
|
function K() {
|
|
9741
9741
|
function re(fe, se) {
|
|
9742
9742
|
var ce, ee, ie = fe.length, ue, oe, pe, xe;
|
|
@@ -10010,78 +10010,78 @@ function requireLottie() {
|
|
|
10010
10010
|
return {
|
|
10011
10011
|
load: H
|
|
10012
10012
|
};
|
|
10013
|
-
})()),
|
|
10014
|
-
h.assetLoader.load(
|
|
10013
|
+
})()), Z.data.type === "loadAnimation")
|
|
10014
|
+
h.assetLoader.load(Z.data.path, Z.data.fullPath, function(re) {
|
|
10015
10015
|
h.dataManager.completeData(re), h.postMessage({
|
|
10016
|
-
id:
|
|
10016
|
+
id: Z.data.id,
|
|
10017
10017
|
payload: re,
|
|
10018
10018
|
status: "success"
|
|
10019
10019
|
});
|
|
10020
10020
|
}, function() {
|
|
10021
10021
|
h.postMessage({
|
|
10022
|
-
id:
|
|
10022
|
+
id: Z.data.id,
|
|
10023
10023
|
status: "error"
|
|
10024
10024
|
});
|
|
10025
10025
|
});
|
|
10026
|
-
else if (
|
|
10027
|
-
var
|
|
10028
|
-
h.dataManager.completeData(
|
|
10029
|
-
id:
|
|
10030
|
-
payload:
|
|
10026
|
+
else if (Z.data.type === "complete") {
|
|
10027
|
+
var W = Z.data.animation;
|
|
10028
|
+
h.dataManager.completeData(W), h.postMessage({
|
|
10029
|
+
id: Z.data.id,
|
|
10030
|
+
payload: W,
|
|
10031
10031
|
status: "success"
|
|
10032
10032
|
});
|
|
10033
|
-
} else
|
|
10033
|
+
} else Z.data.type === "loadData" && h.assetLoader.load(Z.data.path, Z.data.fullPath, function(re) {
|
|
10034
10034
|
h.postMessage({
|
|
10035
|
-
id:
|
|
10035
|
+
id: Z.data.id,
|
|
10036
10036
|
payload: re,
|
|
10037
10037
|
status: "success"
|
|
10038
10038
|
});
|
|
10039
10039
|
}, function() {
|
|
10040
10040
|
h.postMessage({
|
|
10041
|
-
id:
|
|
10041
|
+
id: Z.data.id,
|
|
10042
10042
|
status: "error"
|
|
10043
10043
|
});
|
|
10044
10044
|
});
|
|
10045
10045
|
}), i.onmessage = function(V) {
|
|
10046
|
-
var
|
|
10047
|
-
e[K] = null,
|
|
10046
|
+
var Z = V.data, K = Z.id, W = e[K];
|
|
10047
|
+
e[K] = null, Z.status === "success" ? W.onComplete(Z.payload) : W.onError && W.onError();
|
|
10048
10048
|
});
|
|
10049
10049
|
}
|
|
10050
|
-
function M(V,
|
|
10050
|
+
function M(V, Z) {
|
|
10051
10051
|
t += 1;
|
|
10052
10052
|
var K = "processId_" + t;
|
|
10053
10053
|
return e[K] = {
|
|
10054
10054
|
onComplete: V,
|
|
10055
|
-
onError:
|
|
10055
|
+
onError: Z
|
|
10056
10056
|
}, K;
|
|
10057
10057
|
}
|
|
10058
|
-
function F(V,
|
|
10058
|
+
function F(V, Z, K) {
|
|
10059
10059
|
y();
|
|
10060
|
-
var
|
|
10060
|
+
var W = M(Z, K);
|
|
10061
10061
|
i.postMessage({
|
|
10062
10062
|
type: "loadAnimation",
|
|
10063
10063
|
path: V,
|
|
10064
10064
|
fullPath: window.location.origin + window.location.pathname,
|
|
10065
|
-
id:
|
|
10065
|
+
id: W
|
|
10066
10066
|
});
|
|
10067
10067
|
}
|
|
10068
|
-
function j(V,
|
|
10068
|
+
function j(V, Z, K) {
|
|
10069
10069
|
y();
|
|
10070
|
-
var
|
|
10070
|
+
var W = M(Z, K);
|
|
10071
10071
|
i.postMessage({
|
|
10072
10072
|
type: "loadData",
|
|
10073
10073
|
path: V,
|
|
10074
10074
|
fullPath: window.location.origin + window.location.pathname,
|
|
10075
|
-
id:
|
|
10075
|
+
id: W
|
|
10076
10076
|
});
|
|
10077
10077
|
}
|
|
10078
|
-
function q(V,
|
|
10078
|
+
function q(V, Z, K) {
|
|
10079
10079
|
y();
|
|
10080
|
-
var
|
|
10080
|
+
var W = M(Z, K);
|
|
10081
10081
|
i.postMessage({
|
|
10082
10082
|
type: "complete",
|
|
10083
10083
|
animation: V,
|
|
10084
|
-
id:
|
|
10084
|
+
id: W
|
|
10085
10085
|
});
|
|
10086
10086
|
}
|
|
10087
10087
|
return {
|
|
@@ -10174,13 +10174,13 @@ function requireLottie() {
|
|
|
10174
10174
|
function V() {
|
|
10175
10175
|
this.imagesLoadedCb = null, this.images.length = 0;
|
|
10176
10176
|
}
|
|
10177
|
-
function
|
|
10177
|
+
function Z() {
|
|
10178
10178
|
return this.totalImages === this.loadedAssets;
|
|
10179
10179
|
}
|
|
10180
10180
|
function K() {
|
|
10181
10181
|
return this.totalFootages === this.loadedFootagesCount;
|
|
10182
10182
|
}
|
|
10183
|
-
function
|
|
10183
|
+
function W(H, J) {
|
|
10184
10184
|
H === "svg" ? (this._elementHelper = J, this._createImageData = this.createImageData.bind(this)) : this._createImageData = this.createImgData.bind(this);
|
|
10185
10185
|
}
|
|
10186
10186
|
function re() {
|
|
@@ -10190,7 +10190,7 @@ function requireLottie() {
|
|
|
10190
10190
|
loadAssets: M,
|
|
10191
10191
|
setAssetsPath: j,
|
|
10192
10192
|
setPath: F,
|
|
10193
|
-
loadedImages:
|
|
10193
|
+
loadedImages: Z,
|
|
10194
10194
|
loadedFootages: K,
|
|
10195
10195
|
destroy: V,
|
|
10196
10196
|
getAsset: q,
|
|
@@ -10198,7 +10198,7 @@ function requireLottie() {
|
|
|
10198
10198
|
createImageData: h,
|
|
10199
10199
|
imageLoaded: e,
|
|
10200
10200
|
footageLoaded: r,
|
|
10201
|
-
setCacheType:
|
|
10201
|
+
setCacheType: W
|
|
10202
10202
|
}, re;
|
|
10203
10203
|
})();
|
|
10204
10204
|
function BaseEvent() {
|
|
@@ -10558,7 +10558,7 @@ function requireLottie() {
|
|
|
10558
10558
|
animation: se
|
|
10559
10559
|
}), i += 1;
|
|
10560
10560
|
}
|
|
10561
|
-
function
|
|
10561
|
+
function Z(se) {
|
|
10562
10562
|
var ce = new AnimationItem();
|
|
10563
10563
|
return V(ce, null), ce.setParams(se), ce;
|
|
10564
10564
|
}
|
|
@@ -10567,7 +10567,7 @@ function requireLottie() {
|
|
|
10567
10567
|
for (ee = 0; ee < i; ee += 1)
|
|
10568
10568
|
e[ee].animation.setSpeed(se, ce);
|
|
10569
10569
|
}
|
|
10570
|
-
function
|
|
10570
|
+
function W(se, ce) {
|
|
10571
10571
|
var ee;
|
|
10572
10572
|
for (ee = 0; ee < i; ee += 1)
|
|
10573
10573
|
e[ee].animation.setDirection(se, ce);
|
|
@@ -10652,7 +10652,7 @@ function requireLottie() {
|
|
|
10652
10652
|
for (ce = 0; ce < i; ce += 1)
|
|
10653
10653
|
e[ce].animation.unmute(se);
|
|
10654
10654
|
}
|
|
10655
|
-
return t.registerAnimation = M, t.loadAnimation =
|
|
10655
|
+
return t.registerAnimation = M, t.loadAnimation = Z, t.setSpeed = K, t.setDirection = W, t.play = re, t.pause = G, t.stop = te, t.togglePause = ne, t.searchAnimations = le, t.resize = he, t.goToAndStop = Q, t.destroy = ae, t.freeze = me, t.unfreeze = de, t.setVolume = ve, t.mute = ge, t.unmute = fe, t.getRegisteredAnimations = F, t;
|
|
10656
10656
|
})(), BezierFactory = (function() {
|
|
10657
10657
|
var t = {};
|
|
10658
10658
|
t.getBezierEasing = r;
|
|
@@ -10674,16 +10674,16 @@ function requireLottie() {
|
|
|
10674
10674
|
function V(J) {
|
|
10675
10675
|
return 3 * J;
|
|
10676
10676
|
}
|
|
10677
|
-
function
|
|
10677
|
+
function Z(J, G, Q) {
|
|
10678
10678
|
return ((j(G, Q) * J + q(G, Q)) * J + V(G)) * J;
|
|
10679
10679
|
}
|
|
10680
10680
|
function K(J, G, Q) {
|
|
10681
10681
|
return 3 * j(G, Q) * J * J + 2 * q(G, Q) * J + V(G);
|
|
10682
10682
|
}
|
|
10683
|
-
function
|
|
10683
|
+
function W(J, G, Q, te, ne) {
|
|
10684
10684
|
var ae, le, he = 0;
|
|
10685
10685
|
do
|
|
10686
|
-
le = G + (Q - G) / 2, ae =
|
|
10686
|
+
le = G + (Q - G) / 2, ae = Z(le, te, ne) - J, ae > 0 ? Q = le : G = le;
|
|
10687
10687
|
while (Math.abs(ae) > h && ++he < d);
|
|
10688
10688
|
return le;
|
|
10689
10689
|
}
|
|
@@ -10691,7 +10691,7 @@ function requireLottie() {
|
|
|
10691
10691
|
for (var ne = 0; ne < i; ++ne) {
|
|
10692
10692
|
var ae = K(G, Q, te);
|
|
10693
10693
|
if (ae === 0) return G;
|
|
10694
|
-
var le =
|
|
10694
|
+
var le = Z(G, Q, te) - J;
|
|
10695
10695
|
G -= le / ae;
|
|
10696
10696
|
}
|
|
10697
10697
|
return G;
|
|
@@ -10702,7 +10702,7 @@ function requireLottie() {
|
|
|
10702
10702
|
return H.prototype = {
|
|
10703
10703
|
get: function(G) {
|
|
10704
10704
|
var Q = this._p[0], te = this._p[1], ne = this._p[2], ae = this._p[3];
|
|
10705
|
-
return this._precomputed || this._precompute(), Q === te && ne === ae ? G : G === 0 ? 0 : G === 1 ? 1 :
|
|
10705
|
+
return this._precomputed || this._precompute(), Q === te && ne === ae ? G : G === 0 ? 0 : G === 1 ? 1 : Z(this._getTForX(G), te, ae);
|
|
10706
10706
|
},
|
|
10707
10707
|
// Private part
|
|
10708
10708
|
_precompute: function() {
|
|
@@ -10711,7 +10711,7 @@ function requireLottie() {
|
|
|
10711
10711
|
},
|
|
10712
10712
|
_calcSampleValues: function() {
|
|
10713
10713
|
for (var G = this._p[0], Q = this._p[2], te = 0; te < y; ++te)
|
|
10714
|
-
this._mSampleValues[te] =
|
|
10714
|
+
this._mSampleValues[te] = Z(te * M, G, Q);
|
|
10715
10715
|
},
|
|
10716
10716
|
/**
|
|
10717
10717
|
* getTForX chose the fastest heuristic to determine the percentage value precisely from a given X projection.
|
|
@@ -10721,7 +10721,7 @@ function requireLottie() {
|
|
|
10721
10721
|
ae += M;
|
|
10722
10722
|
--le;
|
|
10723
10723
|
var ye = (G - ne[le]) / (ne[le + 1] - ne[le]), me = ae + ye * M, de = K(me, Q, te);
|
|
10724
|
-
return de >= a ? re(G, me, Q, te) : de === 0 ? me :
|
|
10724
|
+
return de >= a ? re(G, me, Q, te) : de === 0 ? me : W(G, ae, ae + M, Q, te);
|
|
10725
10725
|
}
|
|
10726
10726
|
}, t;
|
|
10727
10727
|
})(), pooling = /* @__PURE__ */ (function() {
|
|
@@ -10772,50 +10772,50 @@ function requireLottie() {
|
|
|
10772
10772
|
})();
|
|
10773
10773
|
function bezFunction() {
|
|
10774
10774
|
var t = Math;
|
|
10775
|
-
function e(V,
|
|
10776
|
-
var J = V *
|
|
10775
|
+
function e(V, Z, K, W, re, H) {
|
|
10776
|
+
var J = V * W + Z * re + K * H - re * W - H * V - K * Z;
|
|
10777
10777
|
return J > -1e-3 && J < 1e-3;
|
|
10778
10778
|
}
|
|
10779
|
-
function r(V,
|
|
10779
|
+
function r(V, Z, K, W, re, H, J, G, Q) {
|
|
10780
10780
|
if (K === 0 && H === 0 && Q === 0)
|
|
10781
|
-
return e(V,
|
|
10782
|
-
var te = t.sqrt(t.pow(
|
|
10781
|
+
return e(V, Z, W, re, J, G);
|
|
10782
|
+
var te = t.sqrt(t.pow(W - V, 2) + t.pow(re - Z, 2) + t.pow(H - K, 2)), ne = t.sqrt(t.pow(J - V, 2) + t.pow(G - Z, 2) + t.pow(Q - K, 2)), ae = t.sqrt(t.pow(J - W, 2) + t.pow(G - re, 2) + t.pow(Q - H, 2)), le;
|
|
10783
10783
|
return te > ne ? te > ae ? le = te - ne - ae : le = ae - ne - te : ae > ne ? le = ae - ne - te : le = ne - te - ae, le > -1e-4 && le < 1e-4;
|
|
10784
10784
|
}
|
|
10785
10785
|
var i = /* @__PURE__ */ (function() {
|
|
10786
|
-
return function(V,
|
|
10786
|
+
return function(V, Z, K, W) {
|
|
10787
10787
|
var re = getDefaultCurveSegments(), H, J, G, Q, te, ne = 0, ae, le = [], he = [], ye = bezierLengthPool.newElement();
|
|
10788
10788
|
for (G = K.length, H = 0; H < re; H += 1) {
|
|
10789
10789
|
for (te = H / (re - 1), ae = 0, J = 0; J < G; J += 1)
|
|
10790
|
-
Q = bmPow(1 - te, 3) * V[J] + 3 * bmPow(1 - te, 2) * te * K[J] + 3 * (1 - te) * bmPow(te, 2) *
|
|
10790
|
+
Q = bmPow(1 - te, 3) * V[J] + 3 * bmPow(1 - te, 2) * te * K[J] + 3 * (1 - te) * bmPow(te, 2) * W[J] + bmPow(te, 3) * Z[J], le[J] = Q, he[J] !== null && (ae += bmPow(le[J] - he[J], 2)), he[J] = le[J];
|
|
10791
10791
|
ae && (ae = bmSqrt(ae), ne += ae), ye.percents[H] = te, ye.lengths[H] = ne;
|
|
10792
10792
|
}
|
|
10793
10793
|
return ye.addedLength = ne, ye;
|
|
10794
10794
|
};
|
|
10795
10795
|
})();
|
|
10796
10796
|
function a(V) {
|
|
10797
|
-
var
|
|
10797
|
+
var Z = segmentsLengthPool.newElement(), K = V.c, W = V.v, re = V.o, H = V.i, J, G = V._length, Q = Z.lengths, te = 0;
|
|
10798
10798
|
for (J = 0; J < G - 1; J += 1)
|
|
10799
|
-
Q[J] = i(
|
|
10800
|
-
return K && G && (Q[J] = i(
|
|
10799
|
+
Q[J] = i(W[J], W[J + 1], re[J], H[J + 1]), te += Q[J].addedLength;
|
|
10800
|
+
return K && G && (Q[J] = i(W[J], W[0], re[J], H[0]), te += Q[J].addedLength), Z.totalLength = te, Z;
|
|
10801
10801
|
}
|
|
10802
10802
|
function h(V) {
|
|
10803
10803
|
this.segmentLength = 0, this.points = new Array(V);
|
|
10804
10804
|
}
|
|
10805
|
-
function d(V,
|
|
10806
|
-
this.partialLength = V, this.point =
|
|
10805
|
+
function d(V, Z) {
|
|
10806
|
+
this.partialLength = V, this.point = Z;
|
|
10807
10807
|
}
|
|
10808
10808
|
var y = /* @__PURE__ */ (function() {
|
|
10809
10809
|
var V = {};
|
|
10810
|
-
return function(
|
|
10811
|
-
var H = (
|
|
10810
|
+
return function(Z, K, W, re) {
|
|
10811
|
+
var H = (Z[0] + "_" + Z[1] + "_" + K[0] + "_" + K[1] + "_" + W[0] + "_" + W[1] + "_" + re[0] + "_" + re[1]).replace(/\./g, "p");
|
|
10812
10812
|
if (!V[H]) {
|
|
10813
10813
|
var J = getDefaultCurveSegments(), G, Q, te, ne, ae, le = 0, he, ye, me = null;
|
|
10814
|
-
|
|
10814
|
+
Z.length === 2 && (Z[0] !== K[0] || Z[1] !== K[1]) && e(Z[0], Z[1], K[0], K[1], Z[0] + W[0], Z[1] + W[1]) && e(Z[0], Z[1], K[0], K[1], K[0] + re[0], K[1] + re[1]) && (J = 2);
|
|
10815
10815
|
var de = new h(J);
|
|
10816
|
-
for (te =
|
|
10816
|
+
for (te = W.length, G = 0; G < J; G += 1) {
|
|
10817
10817
|
for (ye = createSizedArray(te), ae = G / (J - 1), he = 0, Q = 0; Q < te; Q += 1)
|
|
10818
|
-
ne = bmPow(1 - ae, 3) *
|
|
10818
|
+
ne = bmPow(1 - ae, 3) * Z[Q] + 3 * bmPow(1 - ae, 2) * ae * (Z[Q] + W[Q]) + 3 * (1 - ae) * bmPow(ae, 2) * (K[Q] + re[Q]) + bmPow(ae, 3) * K[Q], ye[Q] = ne, me !== null && (he += bmPow(ye[Q] - me[Q], 2));
|
|
10819
10819
|
he = bmSqrt(he), le += he, de.points[G] = new d(he, ye), me = ye;
|
|
10820
10820
|
}
|
|
10821
10821
|
de.segmentLength = le, V[H] = de;
|
|
@@ -10823,30 +10823,30 @@ function requireLottie() {
|
|
|
10823
10823
|
return V[H];
|
|
10824
10824
|
};
|
|
10825
10825
|
})();
|
|
10826
|
-
function M(V,
|
|
10827
|
-
var K =
|
|
10828
|
-
if (H === re - 1 || H === 0 || J ===
|
|
10826
|
+
function M(V, Z) {
|
|
10827
|
+
var K = Z.percents, W = Z.lengths, re = K.length, H = bmFloor((re - 1) * V), J = V * Z.addedLength, G = 0;
|
|
10828
|
+
if (H === re - 1 || H === 0 || J === W[H])
|
|
10829
10829
|
return K[H];
|
|
10830
|
-
for (var Q =
|
|
10831
|
-
if (
|
|
10830
|
+
for (var Q = W[H] > J ? -1 : 1, te = !0; te; )
|
|
10831
|
+
if (W[H] <= J && W[H + 1] > J ? (G = (J - W[H]) / (W[H + 1] - W[H]), te = !1) : H += Q, H < 0 || H >= re - 1) {
|
|
10832
10832
|
if (H === re - 1)
|
|
10833
10833
|
return K[H];
|
|
10834
10834
|
te = !1;
|
|
10835
10835
|
}
|
|
10836
10836
|
return K[H] + (K[H + 1] - K[H]) * G;
|
|
10837
10837
|
}
|
|
10838
|
-
function F(V,
|
|
10839
|
-
var J = M(re, H), G = 1 - J, Q = t.round((G * G * G * V[0] + (J * G * G + G * J * G + G * G * J) * K[0] + (J * J * G + G * J * J + J * G * J) *
|
|
10838
|
+
function F(V, Z, K, W, re, H) {
|
|
10839
|
+
var J = M(re, H), G = 1 - J, Q = t.round((G * G * G * V[0] + (J * G * G + G * J * G + G * G * J) * K[0] + (J * J * G + G * J * J + J * G * J) * W[0] + J * J * J * Z[0]) * 1e3) / 1e3, te = t.round((G * G * G * V[1] + (J * G * G + G * J * G + G * G * J) * K[1] + (J * J * G + G * J * J + J * G * J) * W[1] + J * J * J * Z[1]) * 1e3) / 1e3;
|
|
10840
10840
|
return [Q, te];
|
|
10841
10841
|
}
|
|
10842
10842
|
var j = createTypedArray("float32", 8);
|
|
10843
|
-
function q(V,
|
|
10843
|
+
function q(V, Z, K, W, re, H, J) {
|
|
10844
10844
|
re < 0 ? re = 0 : re > 1 && (re = 1);
|
|
10845
10845
|
var G = M(re, J);
|
|
10846
10846
|
H = H > 1 ? 1 : H;
|
|
10847
10847
|
var Q = M(H, J), te, ne = V.length, ae = 1 - G, le = 1 - Q, he = ae * ae * ae, ye = G * ae * ae * 3, me = G * G * ae * 3, de = G * G * G, ve = ae * ae * le, ge = G * ae * le + ae * G * le + ae * ae * Q, fe = G * G * le + ae * G * Q + G * ae * Q, se = G * G * Q, ce = ae * le * le, ee = G * le * le + ae * Q * le + ae * le * Q, ie = G * Q * le + ae * Q * Q + G * le * Q, ue = G * Q * Q, oe = le * le * le, pe = Q * le * le + le * Q * le + le * le * Q, xe = Q * Q * le + le * Q * Q + Q * le * Q, be = Q * Q * Q;
|
|
10848
10848
|
for (te = 0; te < ne; te += 1)
|
|
10849
|
-
j[te * 4] = t.round((he * V[te] + ye * K[te] + me *
|
|
10849
|
+
j[te * 4] = t.round((he * V[te] + ye * K[te] + me * W[te] + de * Z[te]) * 1e3) / 1e3, j[te * 4 + 1] = t.round((ve * V[te] + ge * K[te] + fe * W[te] + se * Z[te]) * 1e3) / 1e3, j[te * 4 + 2] = t.round((ce * V[te] + ee * K[te] + ie * W[te] + ue * Z[te]) * 1e3) / 1e3, j[te * 4 + 3] = t.round((oe * V[te] + pe * K[te] + xe * W[te] + be * Z[te]) * 1e3) / 1e3;
|
|
10850
10850
|
return j;
|
|
10851
10851
|
}
|
|
10852
10852
|
return {
|
|
@@ -10874,7 +10874,7 @@ function requireLottie() {
|
|
|
10874
10874
|
h < d - 1 ? h += 1 : (a = 0, y = !1);
|
|
10875
10875
|
}
|
|
10876
10876
|
j = this.keyframesMetadata[h] || {};
|
|
10877
|
-
var q, V,
|
|
10877
|
+
var q, V, Z, K, W, re, H = F.t - r, J = M.t - r, G;
|
|
10878
10878
|
if (M.to) {
|
|
10879
10879
|
j.bezierData || (j.bezierData = bez.buildBezierData(M.s, F.s || M.e, M.to, M.ti));
|
|
10880
10880
|
var Q = j.bezierData;
|
|
@@ -10883,21 +10883,21 @@ function requireLottie() {
|
|
|
10883
10883
|
for (V = Q.points[te].point.length, q = 0; q < V; q += 1)
|
|
10884
10884
|
i[q] = Q.points[te].point[q];
|
|
10885
10885
|
} else {
|
|
10886
|
-
j.__fnct ? re = j.__fnct : (re = BezierFactory.getBezierEasing(M.o.x, M.o.y, M.i.x, M.i.y, M.n).get, j.__fnct = re),
|
|
10887
|
-
var ne = Q.segmentLength *
|
|
10888
|
-
for (
|
|
10889
|
-
if (le += Q.points[
|
|
10890
|
-
for (V = Q.points[
|
|
10891
|
-
i[q] = Q.points[
|
|
10886
|
+
j.__fnct ? re = j.__fnct : (re = BezierFactory.getBezierEasing(M.o.x, M.o.y, M.i.x, M.i.y, M.n).get, j.__fnct = re), Z = re((t - J) / (H - J));
|
|
10887
|
+
var ne = Q.segmentLength * Z, ae, le = e.lastFrame < t && e._lastKeyframeIndex === h ? e._lastAddedLength : 0;
|
|
10888
|
+
for (W = e.lastFrame < t && e._lastKeyframeIndex === h ? e._lastPoint : 0, y = !0, K = Q.points.length; y; ) {
|
|
10889
|
+
if (le += Q.points[W].partialLength, ne === 0 || Z === 0 || W === Q.points.length - 1) {
|
|
10890
|
+
for (V = Q.points[W].point.length, q = 0; q < V; q += 1)
|
|
10891
|
+
i[q] = Q.points[W].point[q];
|
|
10892
10892
|
break;
|
|
10893
|
-
} else if (ne >= le && ne < le + Q.points[
|
|
10894
|
-
for (ae = (ne - le) / Q.points[
|
|
10895
|
-
i[q] = Q.points[
|
|
10893
|
+
} else if (ne >= le && ne < le + Q.points[W + 1].partialLength) {
|
|
10894
|
+
for (ae = (ne - le) / Q.points[W + 1].partialLength, V = Q.points[W].point.length, q = 0; q < V; q += 1)
|
|
10895
|
+
i[q] = Q.points[W].point[q] + (Q.points[W + 1].point[q] - Q.points[W].point[q]) * ae;
|
|
10896
10896
|
break;
|
|
10897
10897
|
}
|
|
10898
|
-
|
|
10898
|
+
W < K - 1 ? W += 1 : y = !1;
|
|
10899
10899
|
}
|
|
10900
|
-
e._lastPoint =
|
|
10900
|
+
e._lastPoint = W, e._lastAddedLength = le - Q.points[W].partialLength, e._lastKeyframeIndex = h;
|
|
10901
10901
|
}
|
|
10902
10902
|
} else {
|
|
10903
10903
|
var he, ye, me, de, ve;
|
|
@@ -10912,21 +10912,21 @@ function requireLottie() {
|
|
|
10912
10912
|
}
|
|
10913
10913
|
else
|
|
10914
10914
|
for (h = 0; h < d; h += 1)
|
|
10915
|
-
M.h !== 1 && (t >= H ?
|
|
10915
|
+
M.h !== 1 && (t >= H ? Z = 1 : t < J ? Z = 0 : (M.o.x.constructor === Array ? (j.__fnct || (j.__fnct = []), j.__fnct[h] ? re = j.__fnct[h] : (he = M.o.x[h] === void 0 ? M.o.x[0] : M.o.x[h], ye = M.o.y[h] === void 0 ? M.o.y[0] : M.o.y[h], me = M.i.x[h] === void 0 ? M.i.x[0] : M.i.x[h], de = M.i.y[h] === void 0 ? M.i.y[0] : M.i.y[h], re = BezierFactory.getBezierEasing(he, ye, me, de).get, j.__fnct[h] = re)) : j.__fnct ? re = j.__fnct : (he = M.o.x, ye = M.o.y, me = M.i.x, de = M.i.y, re = BezierFactory.getBezierEasing(he, ye, me, de).get, M.keyframeMetadata = re), Z = re((t - J) / (H - J)))), G = F.s || M.e, ve = M.h === 1 ? M.s[h] : M.s[h] + (G[h] - M.s[h]) * Z, this.propType === "multidimensional" ? i[h] = ve : i = ve;
|
|
10916
10916
|
}
|
|
10917
10917
|
return e.lastIndex = a, i;
|
|
10918
10918
|
}
|
|
10919
10919
|
function slerp(t, e, r) {
|
|
10920
|
-
var i = [], a = t[0], h = t[1], d = t[2], y = t[3], M = e[0], F = e[1], j = e[2], q = e[3], V,
|
|
10921
|
-
return
|
|
10920
|
+
var i = [], a = t[0], h = t[1], d = t[2], y = t[3], M = e[0], F = e[1], j = e[2], q = e[3], V, Z, K, W, re;
|
|
10921
|
+
return Z = a * M + h * F + d * j + y * q, Z < 0 && (Z = -Z, M = -M, F = -F, j = -j, q = -q), 1 - Z > 1e-6 ? (V = Math.acos(Z), K = Math.sin(V), W = Math.sin((1 - r) * V) / K, re = Math.sin(r * V) / K) : (W = 1 - r, re = r), i[0] = W * a + re * M, i[1] = W * h + re * F, i[2] = W * d + re * j, i[3] = W * y + re * q, i;
|
|
10922
10922
|
}
|
|
10923
10923
|
function quaternionToEuler(t, e) {
|
|
10924
10924
|
var r = e[0], i = e[1], a = e[2], h = e[3], d = Math.atan2(2 * i * h - 2 * r * a, 1 - 2 * i * i - 2 * a * a), y = Math.asin(2 * r * i + 2 * a * h), M = Math.atan2(2 * r * h - 2 * i * a, 1 - 2 * r * r - 2 * a * a);
|
|
10925
10925
|
t[0] = d / degToRads, t[1] = y / degToRads, t[2] = M / degToRads;
|
|
10926
10926
|
}
|
|
10927
10927
|
function createQuaternion(t) {
|
|
10928
|
-
var e = t[0] * degToRads, r = t[1] * degToRads, i = t[2] * degToRads, a = Math.cos(e / 2), h = Math.cos(r / 2), d = Math.cos(i / 2), y = Math.sin(e / 2), M = Math.sin(r / 2), F = Math.sin(i / 2), j = a * h * d - y * M * F, q = y * M * d + a * h * F, V = y * h * d + a * M * F,
|
|
10929
|
-
return [q, V,
|
|
10928
|
+
var e = t[0] * degToRads, r = t[1] * degToRads, i = t[2] * degToRads, a = Math.cos(e / 2), h = Math.cos(r / 2), d = Math.cos(i / 2), y = Math.sin(e / 2), M = Math.sin(r / 2), F = Math.sin(i / 2), j = a * h * d - y * M * F, q = y * M * d + a * h * F, V = y * h * d + a * M * F, Z = a * M * d - y * h * F;
|
|
10929
|
+
return [q, V, Z, j];
|
|
10930
10930
|
}
|
|
10931
10931
|
function getValueAtCurrentTime() {
|
|
10932
10932
|
var t = this.comp.renderedFrame - this.offsetTime, e = this.keyframes[0].t - this.offsetTime, r = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
|
|
@@ -11272,7 +11272,7 @@ function requireLottie() {
|
|
|
11272
11272
|
reset: i
|
|
11273
11273
|
}, extendPrototype([DynamicPropertyContainer], H), H;
|
|
11274
11274
|
})();
|
|
11275
|
-
function
|
|
11275
|
+
function Z(H, J, G) {
|
|
11276
11276
|
var Q;
|
|
11277
11277
|
if (G === 3 || G === 4) {
|
|
11278
11278
|
var te = G === 3 ? J.pt : J.ks, ne = te.k;
|
|
@@ -11283,11 +11283,11 @@ function requireLottie() {
|
|
|
11283
11283
|
function K() {
|
|
11284
11284
|
return y;
|
|
11285
11285
|
}
|
|
11286
|
-
function
|
|
11286
|
+
function W() {
|
|
11287
11287
|
return F;
|
|
11288
11288
|
}
|
|
11289
11289
|
var re = {};
|
|
11290
|
-
return re.getShapeProp =
|
|
11290
|
+
return re.getShapeProp = Z, re.getConstructorFunction = K, re.getKeyframedConstructorFunction = W, re;
|
|
11291
11291
|
})();
|
|
11292
11292
|
var Matrix = /* @__PURE__ */ (function() {
|
|
11293
11293
|
var t = Math.cos, e = Math.sin, r = Math.tan, i = Math.round;
|
|
@@ -11331,13 +11331,13 @@ function requireLottie() {
|
|
|
11331
11331
|
function V(ee, ie, ue) {
|
|
11332
11332
|
return !ue && ue !== 0 && (ue = 1), ee === 1 && ie === 1 && ue === 1 ? this : this._t(ee, 0, 0, 0, 0, ie, 0, 0, 0, 0, ue, 0, 0, 0, 0, 1);
|
|
11333
11333
|
}
|
|
11334
|
-
function
|
|
11334
|
+
function Z(ee, ie, ue, oe, pe, xe, be, Ce, Te, _e, Pe, Me, Ae, Ee, ke, we) {
|
|
11335
11335
|
return this.props[0] = ee, this.props[1] = ie, this.props[2] = ue, this.props[3] = oe, this.props[4] = pe, this.props[5] = xe, this.props[6] = be, this.props[7] = Ce, this.props[8] = Te, this.props[9] = _e, this.props[10] = Pe, this.props[11] = Me, this.props[12] = Ae, this.props[13] = Ee, this.props[14] = ke, this.props[15] = we, this;
|
|
11336
11336
|
}
|
|
11337
11337
|
function K(ee, ie, ue) {
|
|
11338
11338
|
return ue = ue || 0, ee !== 0 || ie !== 0 || ue !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, ee, ie, ue, 1) : this;
|
|
11339
11339
|
}
|
|
11340
|
-
function
|
|
11340
|
+
function W(ee, ie, ue, oe, pe, xe, be, Ce, Te, _e, Pe, Me, Ae, Ee, ke, we) {
|
|
11341
11341
|
var Se = this.props;
|
|
11342
11342
|
if (ee === 1 && ie === 0 && ue === 0 && oe === 0 && pe === 0 && xe === 1 && be === 0 && Ce === 0 && Te === 0 && _e === 0 && Pe === 1 && Me === 0)
|
|
11343
11343
|
return Se[12] = Se[12] * ee + Se[15] * Ae, Se[13] = Se[13] * xe + Se[15] * Ee, Se[14] = Se[14] * Pe + Se[15] * ke, Se[15] *= we, this._identityCalculated = !1, this;
|
|
@@ -11434,7 +11434,7 @@ function requireLottie() {
|
|
|
11434
11434
|
return "matrix(" + ie + "," + ue + "," + oe + "," + pe + "," + xe + "," + be + ")";
|
|
11435
11435
|
}
|
|
11436
11436
|
return function() {
|
|
11437
|
-
this.reset = a, this.rotate = h, this.rotateX = d, this.rotateY = y, this.rotateZ = M, this.skew = j, this.skewFromAxis = q, this.shear = F, this.scale = V, this.setTransform =
|
|
11437
|
+
this.reset = a, this.rotate = h, this.rotateX = d, this.rotateY = y, this.rotateZ = M, this.skew = j, this.skewFromAxis = q, this.shear = F, this.scale = V, this.setTransform = Z, this.translate = K, this.transform = W, this.multiply = re, this.applyToPoint = te, this.applyToX = ne, this.applyToY = ae, this.applyToZ = le, this.applyToPointArray = ve, this.applyToTriplePoints = de, this.applyToPointStringified = ge, this.toCSS = fe, this.to2dCSS = ce, this.clone = G, this.cloneFromProps = Q, this.equals = J, this.inversePoints = me, this.inversePoint = ye, this.getInverseMatrix = he, this._t = this.transform, this.isIdentity = H, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
11438
11438
|
};
|
|
11439
11439
|
})();
|
|
11440
11440
|
function _typeof$3(t) {
|
|
@@ -11593,7 +11593,7 @@ function requireLottie() {
|
|
|
11593
11593
|
e = Math.round(e * 1e4) * 1e-4, r = Math.round(r * 1e4) * 1e-4, this.sValue = e, this.eValue = r;
|
|
11594
11594
|
} else
|
|
11595
11595
|
e = this.sValue, r = this.eValue;
|
|
11596
|
-
var h, d, y = this.shapes.length, M, F, j, q, V,
|
|
11596
|
+
var h, d, y = this.shapes.length, M, F, j, q, V, Z = 0;
|
|
11597
11597
|
if (r === e)
|
|
11598
11598
|
for (d = 0; d < y; d += 1)
|
|
11599
11599
|
this.shapes[d].localShapeCollection.releaseShapes(), this.shapes[d].shape._mdf = !0, this.shapes[d].shape.paths = this.shapes[d].localShapeCollection, this._mdf && (this.shapes[d].pathsData.length = 0);
|
|
@@ -11602,51 +11602,51 @@ function requireLottie() {
|
|
|
11602
11602
|
for (d = 0; d < y; d += 1)
|
|
11603
11603
|
this.shapes[d].pathsData.length = 0, this.shapes[d].shape._mdf = !0;
|
|
11604
11604
|
} else {
|
|
11605
|
-
var K = [],
|
|
11605
|
+
var K = [], W, re;
|
|
11606
11606
|
for (d = 0; d < y; d += 1)
|
|
11607
|
-
if (
|
|
11608
|
-
|
|
11607
|
+
if (W = this.shapes[d], !W.shape._mdf && !this._mdf && !t && this.m !== 2)
|
|
11608
|
+
W.shape.paths = W.localShapeCollection;
|
|
11609
11609
|
else {
|
|
11610
|
-
if (h =
|
|
11611
|
-
V =
|
|
11610
|
+
if (h = W.shape.paths, F = h._length, V = 0, !W.shape._mdf && W.pathsData.length)
|
|
11611
|
+
V = W.totalShapeLength;
|
|
11612
11612
|
else {
|
|
11613
|
-
for (j = this.releasePathsData(
|
|
11613
|
+
for (j = this.releasePathsData(W.pathsData), M = 0; M < F; M += 1)
|
|
11614
11614
|
q = bez.getSegmentsLength(h.shapes[M]), j.push(q), V += q.totalLength;
|
|
11615
|
-
|
|
11615
|
+
W.totalShapeLength = V, W.pathsData = j;
|
|
11616
11616
|
}
|
|
11617
|
-
|
|
11617
|
+
Z += V, W.shape._mdf = !0;
|
|
11618
11618
|
}
|
|
11619
11619
|
var H = e, J = r, G = 0, Q;
|
|
11620
11620
|
for (d = y - 1; d >= 0; d -= 1)
|
|
11621
|
-
if (
|
|
11622
|
-
for (re =
|
|
11621
|
+
if (W = this.shapes[d], W.shape._mdf) {
|
|
11622
|
+
for (re = W.localShapeCollection, re.releaseShapes(), this.m === 2 && y > 1 ? (Q = this.calculateShapeEdges(e, r, W.totalShapeLength, G, Z), G += W.totalShapeLength) : Q = [[H, J]], F = Q.length, M = 0; M < F; M += 1) {
|
|
11623
11623
|
H = Q[M][0], J = Q[M][1], K.length = 0, J <= 1 ? K.push({
|
|
11624
|
-
s:
|
|
11625
|
-
e:
|
|
11624
|
+
s: W.totalShapeLength * H,
|
|
11625
|
+
e: W.totalShapeLength * J
|
|
11626
11626
|
}) : H >= 1 ? K.push({
|
|
11627
|
-
s:
|
|
11628
|
-
e:
|
|
11627
|
+
s: W.totalShapeLength * (H - 1),
|
|
11628
|
+
e: W.totalShapeLength * (J - 1)
|
|
11629
11629
|
}) : (K.push({
|
|
11630
|
-
s:
|
|
11631
|
-
e:
|
|
11630
|
+
s: W.totalShapeLength * H,
|
|
11631
|
+
e: W.totalShapeLength
|
|
11632
11632
|
}), K.push({
|
|
11633
11633
|
s: 0,
|
|
11634
|
-
e:
|
|
11634
|
+
e: W.totalShapeLength * (J - 1)
|
|
11635
11635
|
}));
|
|
11636
|
-
var te = this.addShapes(
|
|
11636
|
+
var te = this.addShapes(W, K[0]);
|
|
11637
11637
|
if (K[0].s !== K[0].e) {
|
|
11638
11638
|
if (K.length > 1) {
|
|
11639
|
-
var ne =
|
|
11639
|
+
var ne = W.shape.paths.shapes[W.shape.paths._length - 1];
|
|
11640
11640
|
if (ne.c) {
|
|
11641
11641
|
var ae = te.pop();
|
|
11642
|
-
this.addPaths(te, re), te = this.addShapes(
|
|
11642
|
+
this.addPaths(te, re), te = this.addShapes(W, K[1], ae);
|
|
11643
11643
|
} else
|
|
11644
|
-
this.addPaths(te, re), te = this.addShapes(
|
|
11644
|
+
this.addPaths(te, re), te = this.addShapes(W, K[1]);
|
|
11645
11645
|
}
|
|
11646
11646
|
this.addPaths(te, re);
|
|
11647
11647
|
}
|
|
11648
11648
|
}
|
|
11649
|
-
|
|
11649
|
+
W.shape.paths = re;
|
|
11650
11650
|
}
|
|
11651
11651
|
}
|
|
11652
11652
|
}, TrimModifier.prototype.addPaths = function(t, e) {
|
|
@@ -11658,8 +11658,8 @@ function requireLottie() {
|
|
|
11658
11658
|
}, TrimModifier.prototype.addSegmentFromArray = function(t, e, r, i) {
|
|
11659
11659
|
e.setXYAt(t[1], t[5], "o", r), e.setXYAt(t[2], t[6], "i", r + 1), i && e.setXYAt(t[0], t[4], "v", r), e.setXYAt(t[3], t[7], "v", r + 1);
|
|
11660
11660
|
}, TrimModifier.prototype.addShapes = function(t, e, r) {
|
|
11661
|
-
var i = t.pathsData, a = t.shape.paths.shapes, h, d = t.shape.paths._length, y, M, F = 0, j, q, V,
|
|
11662
|
-
for (r ? (q = r._length,
|
|
11661
|
+
var i = t.pathsData, a = t.shape.paths.shapes, h, d = t.shape.paths._length, y, M, F = 0, j, q, V, Z, K = [], W, re = !0;
|
|
11662
|
+
for (r ? (q = r._length, W = r._length) : (r = shapePool.newElement(), q = 0, W = 0), K.push(r), h = 0; h < d; h += 1) {
|
|
11663
11663
|
for (V = i[h].lengths, r.c = a[h].c, M = a[h].c ? V.length : V.length + 1, y = 1; y < M; y += 1)
|
|
11664
11664
|
if (j = V[y - 1], F + j.addedLength < e.s)
|
|
11665
11665
|
F += j.addedLength, r.c = !1;
|
|
@@ -11667,16 +11667,16 @@ function requireLottie() {
|
|
|
11667
11667
|
r.c = !1;
|
|
11668
11668
|
break;
|
|
11669
11669
|
} else
|
|
11670
|
-
e.s <= F && e.e >= F + j.addedLength ? (this.addSegment(a[h].v[y - 1], a[h].o[y - 1], a[h].i[y], a[h].v[y], r, q, re), re = !1) : (
|
|
11670
|
+
e.s <= F && e.e >= F + j.addedLength ? (this.addSegment(a[h].v[y - 1], a[h].o[y - 1], a[h].i[y], a[h].v[y], r, q, re), re = !1) : (Z = bez.getNewSegment(a[h].v[y - 1], a[h].v[y], a[h].o[y - 1], a[h].i[y], (e.s - F) / j.addedLength, (e.e - F) / j.addedLength, V[y - 1]), this.addSegmentFromArray(Z, r, q, re), re = !1, r.c = !1), F += j.addedLength, q += 1;
|
|
11671
11671
|
if (a[h].c && V.length) {
|
|
11672
11672
|
if (j = V[y - 1], F <= e.e) {
|
|
11673
11673
|
var H = V[y - 1].addedLength;
|
|
11674
|
-
e.s <= F && e.e >= F + H ? (this.addSegment(a[h].v[y - 1], a[h].o[y - 1], a[h].i[0], a[h].v[0], r, q, re), re = !1) : (
|
|
11674
|
+
e.s <= F && e.e >= F + H ? (this.addSegment(a[h].v[y - 1], a[h].o[y - 1], a[h].i[0], a[h].v[0], r, q, re), re = !1) : (Z = bez.getNewSegment(a[h].v[y - 1], a[h].v[0], a[h].o[y - 1], a[h].i[0], (e.s - F) / H, (e.e - F) / H, V[y - 1]), this.addSegmentFromArray(Z, r, q, re), re = !1, r.c = !1);
|
|
11675
11675
|
} else
|
|
11676
11676
|
r.c = !1;
|
|
11677
11677
|
F += j.addedLength, q += 1;
|
|
11678
11678
|
}
|
|
11679
|
-
if (r._length && (r.setXYAt(r.v[
|
|
11679
|
+
if (r._length && (r.setXYAt(r.v[W][0], r.v[W][1], "i", W), r.setXYAt(r.v[r._length - 1][0], r.v[r._length - 1][1], "o", r._length - 1)), F > e.e)
|
|
11680
11680
|
break;
|
|
11681
11681
|
h < d - 1 && (r = shapePool.newElement(), re = !0, K.push(r), q = 0);
|
|
11682
11682
|
}
|
|
@@ -11726,8 +11726,8 @@ function requireLottie() {
|
|
|
11726
11726
|
this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (j = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / F, 0), q = this.p.getValueAtTime(this.p.keyframes[0].t / F, 0)) : this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t ? (j = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / F, 0), q = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - 0.05) / F, 0)) : (j = this.p.pv, q = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - 0.01) / F, this.p.offsetTime));
|
|
11727
11727
|
else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
|
|
11728
11728
|
j = [], q = [];
|
|
11729
|
-
var V = this.px,
|
|
11730
|
-
V._caching.lastFrame + V.offsetTime <= V.keyframes[0].t ? (j[0] = V.getValueAtTime((V.keyframes[0].t + 0.01) / F, 0), j[1] =
|
|
11729
|
+
var V = this.px, Z = this.py;
|
|
11730
|
+
V._caching.lastFrame + V.offsetTime <= V.keyframes[0].t ? (j[0] = V.getValueAtTime((V.keyframes[0].t + 0.01) / F, 0), j[1] = Z.getValueAtTime((Z.keyframes[0].t + 0.01) / F, 0), q[0] = V.getValueAtTime(V.keyframes[0].t / F, 0), q[1] = Z.getValueAtTime(Z.keyframes[0].t / F, 0)) : V._caching.lastFrame + V.offsetTime >= V.keyframes[V.keyframes.length - 1].t ? (j[0] = V.getValueAtTime(V.keyframes[V.keyframes.length - 1].t / F, 0), j[1] = Z.getValueAtTime(Z.keyframes[Z.keyframes.length - 1].t / F, 0), q[0] = V.getValueAtTime((V.keyframes[V.keyframes.length - 1].t - 0.01) / F, 0), q[1] = Z.getValueAtTime((Z.keyframes[Z.keyframes.length - 1].t - 0.01) / F, 0)) : (j = [V.pv, Z.pv], q[0] = V.getValueAtTime((V._caching.lastFrame + V.offsetTime - 0.01) / F, V.offsetTime), q[1] = Z.getValueAtTime((Z._caching.lastFrame + Z.offsetTime - 0.01) / F, Z.offsetTime));
|
|
11731
11731
|
} else
|
|
11732
11732
|
q = t, j = q;
|
|
11733
11733
|
this.v.rotate(-Math.atan2(j[1] - q[1], j[0] - q[0]));
|
|
@@ -11886,22 +11886,22 @@ function requireLottie() {
|
|
|
11886
11886
|
h += 1;
|
|
11887
11887
|
}
|
|
11888
11888
|
this._currentCopies = y;
|
|
11889
|
-
var V = this.o.v,
|
|
11889
|
+
var V = this.o.v, Z = V % 1, K = V > 0 ? Math.floor(V) : Math.ceil(V), W = this.pMatrix.props, re = this.rMatrix.props, H = this.sMatrix.props;
|
|
11890
11890
|
this.pMatrix.reset(), this.rMatrix.reset(), this.sMatrix.reset(), this.tMatrix.reset(), this.matrix.reset();
|
|
11891
11891
|
var J = 0;
|
|
11892
11892
|
if (V > 0) {
|
|
11893
11893
|
for (; J < K; )
|
|
11894
11894
|
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), J += 1;
|
|
11895
|
-
|
|
11895
|
+
Z && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, Z, !1), J += Z);
|
|
11896
11896
|
} else if (V < 0) {
|
|
11897
11897
|
for (; J > K; )
|
|
11898
11898
|
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !0), J -= 1;
|
|
11899
|
-
|
|
11899
|
+
Z && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -Z, !0), J -= Z);
|
|
11900
11900
|
}
|
|
11901
11901
|
i = this.data.m === 1 ? 0 : this._currentCopies - 1, a = this.data.m === 1 ? 1 : -1, h = this._currentCopies;
|
|
11902
11902
|
for (var G, Q; h; ) {
|
|
11903
11903
|
if (e = this.elemsData[i].it, r = e[e.length - 1].transform.mProps.v.props, Q = r.length, e[e.length - 1].transform.mProps._mdf = !0, e[e.length - 1].transform.op._mdf = !0, e[e.length - 1].transform.op.v = this._currentCopies === 1 ? this.so.v : this.so.v + (this.eo.v - this.so.v) * (i / (this._currentCopies - 1)), J !== 0) {
|
|
11904
|
-
for ((i !== 0 && a === 1 || i !== this._currentCopies - 1 && a === -1) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), this.matrix.transform(re[0], re[1], re[2], re[3], re[4], re[5], re[6], re[7], re[8], re[9], re[10], re[11], re[12], re[13], re[14], re[15]), this.matrix.transform(H[0], H[1], H[2], H[3], H[4], H[5], H[6], H[7], H[8], H[9], H[10], H[11], H[12], H[13], H[14], H[15]), this.matrix.transform(
|
|
11904
|
+
for ((i !== 0 && a === 1 || i !== this._currentCopies - 1 && a === -1) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), this.matrix.transform(re[0], re[1], re[2], re[3], re[4], re[5], re[6], re[7], re[8], re[9], re[10], re[11], re[12], re[13], re[14], re[15]), this.matrix.transform(H[0], H[1], H[2], H[3], H[4], H[5], H[6], H[7], H[8], H[9], H[10], H[11], H[12], H[13], H[14], H[15]), this.matrix.transform(W[0], W[1], W[2], W[3], W[4], W[5], W[6], W[7], W[8], W[9], W[10], W[11], W[12], W[13], W[14], W[15]), G = 0; G < Q; G += 1)
|
|
11905
11905
|
r[G] = this.matrix.props[G];
|
|
11906
11906
|
this.matrix.reset();
|
|
11907
11907
|
} else
|
|
@@ -11922,9 +11922,9 @@ function requireLottie() {
|
|
|
11922
11922
|
}, RoundCornersModifier.prototype.processPath = function(t, e) {
|
|
11923
11923
|
var r = shapePool.newElement();
|
|
11924
11924
|
r.c = t.c;
|
|
11925
|
-
var i, a = t._length, h, d, y, M, F, j, q = 0, V,
|
|
11925
|
+
var i, a = t._length, h, d, y, M, F, j, q = 0, V, Z, K, W, re, H;
|
|
11926
11926
|
for (i = 0; i < a; i += 1)
|
|
11927
|
-
h = t.v[i], y = t.o[i], d = t.i[i], h[0] === y[0] && h[1] === y[1] && h[0] === d[0] && h[1] === d[1] ? (i === 0 || i === a - 1) && !t.c ? (r.setTripleAt(h[0], h[1], y[0], y[1], d[0], d[1], q), q += 1) : (i === 0 ? M = t.v[a - 1] : M = t.v[i - 1], F = Math.sqrt(Math.pow(h[0] - M[0], 2) + Math.pow(h[1] - M[1], 2)), j = F ? Math.min(F / 2, e) / F : 0, re = h[0] + (M[0] - h[0]) * j, V = re, H = h[1] - (h[1] - M[1]) * j,
|
|
11927
|
+
h = t.v[i], y = t.o[i], d = t.i[i], h[0] === y[0] && h[1] === y[1] && h[0] === d[0] && h[1] === d[1] ? (i === 0 || i === a - 1) && !t.c ? (r.setTripleAt(h[0], h[1], y[0], y[1], d[0], d[1], q), q += 1) : (i === 0 ? M = t.v[a - 1] : M = t.v[i - 1], F = Math.sqrt(Math.pow(h[0] - M[0], 2) + Math.pow(h[1] - M[1], 2)), j = F ? Math.min(F / 2, e) / F : 0, re = h[0] + (M[0] - h[0]) * j, V = re, H = h[1] - (h[1] - M[1]) * j, Z = H, K = V - (V - h[0]) * roundCorner, W = Z - (Z - h[1]) * roundCorner, r.setTripleAt(V, Z, K, W, re, H, q), q += 1, i === a - 1 ? M = t.v[0] : M = t.v[i + 1], F = Math.sqrt(Math.pow(h[0] - M[0], 2) + Math.pow(h[1] - M[1], 2)), j = F ? Math.min(F / 2, e) / F : 0, K = h[0] + (M[0] - h[0]) * j, V = K, W = h[1] + (M[1] - h[1]) * j, Z = W, re = V - (V - h[0]) * roundCorner, H = Z - (Z - h[1]) * roundCorner, r.setTripleAt(V, Z, K, W, re, H, q), q += 1) : (r.setTripleAt(t.v[i][0], t.v[i][1], t.o[i][0], t.o[i][1], t.i[i][0], t.i[i][1], q), q += 1);
|
|
11928
11928
|
return r;
|
|
11929
11929
|
}, RoundCornersModifier.prototype.processShapes = function(t) {
|
|
11930
11930
|
var e, r, i = this.shapes.length, a, h, d = this.rd.v;
|
|
@@ -12155,7 +12155,7 @@ function requireLottie() {
|
|
|
12155
12155
|
var y = -e.tangentAngle(1), M = -r.tangentAngle(0) + Math.PI, F = lineIntersection(h, polarOffset(h, y + Math.PI / 2, 100), d, polarOffset(d, y + Math.PI / 2, 100)), j = F ? pointDistance(F, h) : pointDistance(h, d) / 2, q = polarOffset(h, y, 2 * j * roundCorner);
|
|
12156
12156
|
return t.setXYAt(q[0], q[1], "o", t.length() - 1), q = polarOffset(d, M, 2 * j * roundCorner), t.setTripleAt(d[0], d[1], d[0], d[1], q[0], q[1], t.length()), d;
|
|
12157
12157
|
}
|
|
12158
|
-
var V = pointEqual(h, e.points[2]) ? e.points[0] : e.points[2],
|
|
12158
|
+
var V = pointEqual(h, e.points[2]) ? e.points[0] : e.points[2], Z = pointEqual(d, r.points[1]) ? r.points[3] : r.points[1], K = lineIntersection(V, h, d, Z);
|
|
12159
12159
|
return K && pointDistance(K, h) < a ? (t.setTripleAt(K[0], K[1], K[0], K[1], K[0], K[1], t.length()), K) : h;
|
|
12160
12160
|
}
|
|
12161
12161
|
function getIntersection(t, e) {
|
|
@@ -12263,7 +12263,7 @@ function requireLottie() {
|
|
|
12263
12263
|
ce[ee] !== "sans-serif" && ce[ee] !== "monospace" && ue.push(ce[ee]);
|
|
12264
12264
|
return ue.join(",");
|
|
12265
12265
|
}
|
|
12266
|
-
function
|
|
12266
|
+
function Z(se, ce) {
|
|
12267
12267
|
var ee = createTag("span");
|
|
12268
12268
|
ee.setAttribute("aria-hidden", !0), ee.style.fontFamily = ce;
|
|
12269
12269
|
var ie = createTag("span");
|
|
@@ -12281,7 +12281,7 @@ function requireLottie() {
|
|
|
12281
12281
|
this.fonts[se].loaded ? ue -= 1 : this.fonts[se].fOrigin === "n" || this.fonts[se].origin === 0 ? this.fonts[se].loaded = !0 : (ee = this.fonts[se].monoCase.node, ie = this.fonts[se].monoCase.w, ee.offsetWidth !== ie ? (ue -= 1, this.fonts[se].loaded = !0) : (ee = this.fonts[se].sansCase.node, ie = this.fonts[se].sansCase.w, ee.offsetWidth !== ie && (ue -= 1, this.fonts[se].loaded = !0)), this.fonts[se].loaded && (this.fonts[se].sansCase.parent.parentNode.removeChild(this.fonts[se].sansCase.parent), this.fonts[se].monoCase.parent.parentNode.removeChild(this.fonts[se].monoCase.parent)));
|
|
12282
12282
|
ue !== 0 && Date.now() - this.initTime < t ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10);
|
|
12283
12283
|
}
|
|
12284
|
-
function
|
|
12284
|
+
function W(se, ce) {
|
|
12285
12285
|
var ee = document.body && ce ? "svg" : "canvas", ie, ue = getFontProperties(se);
|
|
12286
12286
|
if (ee === "svg") {
|
|
12287
12287
|
var oe = createNS("text");
|
|
@@ -12308,14 +12308,14 @@ function requireLottie() {
|
|
|
12308
12308
|
}
|
|
12309
12309
|
if (!document.body) {
|
|
12310
12310
|
this.isLoaded = !0, se.list.forEach(function(Pe) {
|
|
12311
|
-
Pe.helper =
|
|
12311
|
+
Pe.helper = W(Pe), Pe.cache = {};
|
|
12312
12312
|
}), this.fonts = se.list;
|
|
12313
12313
|
return;
|
|
12314
12314
|
}
|
|
12315
12315
|
var ee = se.list, ie, ue = ee.length, oe = ue;
|
|
12316
12316
|
for (ie = 0; ie < ue; ie += 1) {
|
|
12317
12317
|
var pe = !0, xe, be;
|
|
12318
|
-
if (ee[ie].loaded = !1, ee[ie].monoCase =
|
|
12318
|
+
if (ee[ie].loaded = !1, ee[ie].monoCase = Z(ee[ie].fFamily, "monospace"), ee[ie].sansCase = Z(ee[ie].fFamily, "sans-serif"), !ee[ie].fPath)
|
|
12319
12319
|
ee[ie].loaded = !0, oe -= 1;
|
|
12320
12320
|
else if (ee[ie].fOrigin === "p" || ee[ie].origin === 3) {
|
|
12321
12321
|
if (xe = document.querySelectorAll('style[f-forigin="p"][f-family="' + ee[ie].fFamily + '"], style[f-origin="3"][f-family="' + ee[ie].fFamily + '"]'), xe.length > 0 && (pe = !1), pe) {
|
|
@@ -12337,7 +12337,7 @@ function requireLottie() {
|
|
|
12337
12337
|
_e.setAttribute("f-forigin", ee[ie].fOrigin), _e.setAttribute("f-origin", ee[ie].origin), _e.setAttribute("rel", "stylesheet"), _e.setAttribute("href", ee[ie].fPath), ce.appendChild(_e);
|
|
12338
12338
|
}
|
|
12339
12339
|
}
|
|
12340
|
-
ee[ie].helper =
|
|
12340
|
+
ee[ie].helper = W(ee[ie], ce), ee[ie].cache = {}, this.fonts.push(ee[ie]);
|
|
12341
12341
|
}
|
|
12342
12342
|
oe === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
|
|
12343
12343
|
}
|
|
@@ -12893,9 +12893,9 @@ function requireLottie() {
|
|
|
12893
12893
|
this.data = t, this.element = e, this.globalData = r, this.storedData = [], this.masksProperties = this.data.masksProperties || [], this.maskElement = null;
|
|
12894
12894
|
var i = this.globalData.defs, a, h = this.masksProperties ? this.masksProperties.length : 0;
|
|
12895
12895
|
this.viewData = createSizedArray(h), this.solidPath = "";
|
|
12896
|
-
var d, y = this.masksProperties, M = 0, F = [], j, q, V = createElementID(),
|
|
12896
|
+
var d, y = this.masksProperties, M = 0, F = [], j, q, V = createElementID(), Z, K, W, re, H = "clipPath", J = "clip-path";
|
|
12897
12897
|
for (a = 0; a < h; a += 1)
|
|
12898
|
-
if ((y[a].mode !== "a" && y[a].mode !== "n" || y[a].inv || y[a].o.k !== 100 || y[a].o.x) && (H = "mask", J = "mask"), (y[a].mode === "s" || y[a].mode === "i") && M === 0 ? (
|
|
12898
|
+
if ((y[a].mode !== "a" && y[a].mode !== "n" || y[a].inv || y[a].o.k !== 100 || y[a].o.x) && (H = "mask", J = "mask"), (y[a].mode === "s" || y[a].mode === "i") && M === 0 ? (Z = createNS("rect"), Z.setAttribute("fill", "#ffffff"), Z.setAttribute("width", this.element.comp.data.w || 0), Z.setAttribute("height", this.element.comp.data.h || 0), F.push(Z)) : Z = null, d = createNS("path"), y[a].mode === "n")
|
|
12899
12899
|
this.viewData[a] = {
|
|
12900
12900
|
op: PropertyFactory.getProp(this.element, y[a].o, 0, 0.01, this.element),
|
|
12901
12901
|
prop: ShapePropertyFactory.getShapeProp(this.element, y[a], 3),
|
|
@@ -12905,10 +12905,10 @@ function requireLottie() {
|
|
|
12905
12905
|
else {
|
|
12906
12906
|
M += 1, d.setAttribute("fill", y[a].mode === "s" ? "#000000" : "#ffffff"), d.setAttribute("clip-rule", "nonzero");
|
|
12907
12907
|
var G;
|
|
12908
|
-
if (y[a].x.k !== 0 ? (H = "mask", J = "mask", re = PropertyFactory.getProp(this.element, y[a].x, 0, null, this.element), G = createElementID(), K = createNS("filter"), K.setAttribute("id", G),
|
|
12908
|
+
if (y[a].x.k !== 0 ? (H = "mask", J = "mask", re = PropertyFactory.getProp(this.element, y[a].x, 0, null, this.element), G = createElementID(), K = createNS("filter"), K.setAttribute("id", G), W = createNS("feMorphology"), W.setAttribute("operator", "erode"), W.setAttribute("in", "SourceGraphic"), W.setAttribute("radius", "0"), K.appendChild(W), i.appendChild(K), d.setAttribute("stroke", y[a].mode === "s" ? "#000000" : "#ffffff")) : (W = null, re = null), this.storedData[a] = {
|
|
12909
12909
|
elem: d,
|
|
12910
12910
|
x: re,
|
|
12911
|
-
expan:
|
|
12911
|
+
expan: W,
|
|
12912
12912
|
lastPath: "",
|
|
12913
12913
|
lastOperator: "",
|
|
12914
12914
|
filterId: G,
|
|
@@ -12927,7 +12927,7 @@ function requireLottie() {
|
|
|
12927
12927
|
lastPath: "",
|
|
12928
12928
|
op: PropertyFactory.getProp(this.element, y[a].o, 0, 0.01, this.element),
|
|
12929
12929
|
prop: ShapePropertyFactory.getShapeProp(this.element, y[a], 3),
|
|
12930
|
-
invRect:
|
|
12930
|
+
invRect: Z
|
|
12931
12931
|
}, this.viewData[a].prop.k || this.drawPath(y[a], this.viewData[a].prop.v, this.viewData[a]);
|
|
12932
12932
|
}
|
|
12933
12933
|
for (this.maskElement = createNS(H), h = F.length, a = 0; a < h; a += 1)
|
|
@@ -13380,15 +13380,15 @@ function requireLottie() {
|
|
|
13380
13380
|
return null;
|
|
13381
13381
|
}
|
|
13382
13382
|
}
|
|
13383
|
-
function a(q, V,
|
|
13384
|
-
(
|
|
13383
|
+
function a(q, V, Z) {
|
|
13384
|
+
(Z || V.transform.op._mdf) && V.transform.container.setAttribute("opacity", V.transform.op.v), (Z || V.transform.mProps._mdf) && V.transform.container.setAttribute("transform", V.transform.mProps.v.to2dCSS());
|
|
13385
13385
|
}
|
|
13386
13386
|
function h() {
|
|
13387
13387
|
}
|
|
13388
|
-
function d(q, V,
|
|
13389
|
-
var K,
|
|
13388
|
+
function d(q, V, Z) {
|
|
13389
|
+
var K, W, re, H, J, G, Q = V.styles.length, te = V.lvl, ne, ae, le, he;
|
|
13390
13390
|
for (G = 0; G < Q; G += 1) {
|
|
13391
|
-
if (H = V.sh._mdf ||
|
|
13391
|
+
if (H = V.sh._mdf || Z, V.styles[G].lvl < te) {
|
|
13392
13392
|
for (ae = e.reset(), le = te - V.styles[G].lvl, he = V.transformers.length - 1; !H && le > 0; )
|
|
13393
13393
|
H = V.transformers[he].mProps._mdf || H, le -= 1, he -= 1;
|
|
13394
13394
|
if (H)
|
|
@@ -13396,8 +13396,8 @@ function requireLottie() {
|
|
|
13396
13396
|
ae.multiply(V.transformers[he].mProps.v), le -= 1, he -= 1;
|
|
13397
13397
|
} else
|
|
13398
13398
|
ae = t;
|
|
13399
|
-
if (ne = V.sh.paths,
|
|
13400
|
-
for (re = "", K = 0; K <
|
|
13399
|
+
if (ne = V.sh.paths, W = ne._length, H) {
|
|
13400
|
+
for (re = "", K = 0; K < W; K += 1)
|
|
13401
13401
|
J = ne.shapes[K], J && J._length && (re += buildShapeString(J, J._length, J.c, ae));
|
|
13402
13402
|
V.caches[G] = re;
|
|
13403
13403
|
} else
|
|
@@ -13405,51 +13405,51 @@ function requireLottie() {
|
|
|
13405
13405
|
V.styles[G].d += q.hd === !0 ? "" : re, V.styles[G]._mdf = H || V.styles[G]._mdf;
|
|
13406
13406
|
}
|
|
13407
13407
|
}
|
|
13408
|
-
function y(q, V,
|
|
13408
|
+
function y(q, V, Z) {
|
|
13409
13409
|
var K = V.style;
|
|
13410
|
-
(V.c._mdf ||
|
|
13410
|
+
(V.c._mdf || Z) && K.pElem.setAttribute("fill", "rgb(" + bmFloor(V.c.v[0]) + "," + bmFloor(V.c.v[1]) + "," + bmFloor(V.c.v[2]) + ")"), (V.o._mdf || Z) && K.pElem.setAttribute("fill-opacity", V.o.v);
|
|
13411
13411
|
}
|
|
13412
|
-
function M(q, V,
|
|
13413
|
-
F(q, V,
|
|
13412
|
+
function M(q, V, Z) {
|
|
13413
|
+
F(q, V, Z), j(q, V, Z);
|
|
13414
13414
|
}
|
|
13415
|
-
function F(q, V,
|
|
13416
|
-
var K = V.gf,
|
|
13417
|
-
if (V.o._mdf ||
|
|
13415
|
+
function F(q, V, Z) {
|
|
13416
|
+
var K = V.gf, W = V.g._hasOpacity, re = V.s.v, H = V.e.v;
|
|
13417
|
+
if (V.o._mdf || Z) {
|
|
13418
13418
|
var J = q.ty === "gf" ? "fill-opacity" : "stroke-opacity";
|
|
13419
13419
|
V.style.pElem.setAttribute(J, V.o.v);
|
|
13420
13420
|
}
|
|
13421
|
-
if (V.s._mdf ||
|
|
13421
|
+
if (V.s._mdf || Z) {
|
|
13422
13422
|
var G = q.t === 1 ? "x1" : "cx", Q = G === "x1" ? "y1" : "cy";
|
|
13423
|
-
K.setAttribute(G, re[0]), K.setAttribute(Q, re[1]),
|
|
13423
|
+
K.setAttribute(G, re[0]), K.setAttribute(Q, re[1]), W && !V.g._collapsable && (V.of.setAttribute(G, re[0]), V.of.setAttribute(Q, re[1]));
|
|
13424
13424
|
}
|
|
13425
13425
|
var te, ne, ae, le;
|
|
13426
|
-
if (V.g._cmdf ||
|
|
13426
|
+
if (V.g._cmdf || Z) {
|
|
13427
13427
|
te = V.cst;
|
|
13428
13428
|
var he = V.g.c;
|
|
13429
13429
|
for (ae = te.length, ne = 0; ne < ae; ne += 1)
|
|
13430
13430
|
le = te[ne], le.setAttribute("offset", he[ne * 4] + "%"), le.setAttribute("stop-color", "rgb(" + he[ne * 4 + 1] + "," + he[ne * 4 + 2] + "," + he[ne * 4 + 3] + ")");
|
|
13431
13431
|
}
|
|
13432
|
-
if (
|
|
13432
|
+
if (W && (V.g._omdf || Z)) {
|
|
13433
13433
|
var ye = V.g.o;
|
|
13434
13434
|
for (V.g._collapsable ? te = V.cst : te = V.ost, ae = te.length, ne = 0; ne < ae; ne += 1)
|
|
13435
13435
|
le = te[ne], V.g._collapsable || le.setAttribute("offset", ye[ne * 2] + "%"), le.setAttribute("stop-opacity", ye[ne * 2 + 1]);
|
|
13436
13436
|
}
|
|
13437
13437
|
if (q.t === 1)
|
|
13438
|
-
(V.e._mdf ||
|
|
13438
|
+
(V.e._mdf || Z) && (K.setAttribute("x2", H[0]), K.setAttribute("y2", H[1]), W && !V.g._collapsable && (V.of.setAttribute("x2", H[0]), V.of.setAttribute("y2", H[1])));
|
|
13439
13439
|
else {
|
|
13440
13440
|
var me;
|
|
13441
|
-
if ((V.s._mdf || V.e._mdf ||
|
|
13441
|
+
if ((V.s._mdf || V.e._mdf || Z) && (me = Math.sqrt(Math.pow(re[0] - H[0], 2) + Math.pow(re[1] - H[1], 2)), K.setAttribute("r", me), W && !V.g._collapsable && V.of.setAttribute("r", me)), V.s._mdf || V.e._mdf || V.h._mdf || V.a._mdf || Z) {
|
|
13442
13442
|
me || (me = Math.sqrt(Math.pow(re[0] - H[0], 2) + Math.pow(re[1] - H[1], 2)));
|
|
13443
13443
|
var de = Math.atan2(H[1] - re[1], H[0] - re[0]), ve = V.h.v;
|
|
13444
13444
|
ve >= 1 ? ve = 0.99 : ve <= -1 && (ve = -0.99);
|
|
13445
13445
|
var ge = me * ve, fe = Math.cos(de + V.a.v) * ge + re[0], se = Math.sin(de + V.a.v) * ge + re[1];
|
|
13446
|
-
K.setAttribute("fx", fe), K.setAttribute("fy", se),
|
|
13446
|
+
K.setAttribute("fx", fe), K.setAttribute("fy", se), W && !V.g._collapsable && (V.of.setAttribute("fx", fe), V.of.setAttribute("fy", se));
|
|
13447
13447
|
}
|
|
13448
13448
|
}
|
|
13449
13449
|
}
|
|
13450
|
-
function j(q, V,
|
|
13451
|
-
var K = V.style,
|
|
13452
|
-
|
|
13450
|
+
function j(q, V, Z) {
|
|
13451
|
+
var K = V.style, W = V.d;
|
|
13452
|
+
W && (W._mdf || Z) && W.dashStr && (K.pElem.setAttribute("stroke-dasharray", W.dashStr), K.pElem.setAttribute("stroke-dashoffset", W.dashoffset[0])), V.c && (V.c._mdf || Z) && K.pElem.setAttribute("stroke", "rgb(" + bmFloor(V.c.v[0]) + "," + bmFloor(V.c.v[1]) + "," + bmFloor(V.c.v[2]) + ")"), (V.o._mdf || Z) && K.pElem.setAttribute("stroke-opacity", V.o.v), (V.w._mdf || Z) && (K.pElem.setAttribute("stroke-width", V.w.v), K.msElem && K.msElem.setAttribute("stroke-width", V.w.v));
|
|
13453
13453
|
}
|
|
13454
13454
|
return r;
|
|
13455
13455
|
})();
|
|
@@ -13517,7 +13517,7 @@ function requireLottie() {
|
|
|
13517
13517
|
this.dynamicProperties[t].getValue();
|
|
13518
13518
|
this.renderModifiers();
|
|
13519
13519
|
}, SVGShapeElement.prototype.searchShapes = function(t, e, r, i, a, h, d) {
|
|
13520
|
-
var y = [].concat(h), M, F = t.length - 1, j, q, V = [],
|
|
13520
|
+
var y = [].concat(h), M, F = t.length - 1, j, q, V = [], Z = [], K, W, re;
|
|
13521
13521
|
for (M = F; M >= 0; M -= 1) {
|
|
13522
13522
|
if (re = this.searchProcessedElement(t[M]), re ? e[M] = r[re - 1] : t[M]._render = d, t[M].ty === "fl" || t[M].ty === "st" || t[M].ty === "gf" || t[M].ty === "gs" || t[M].ty === "no")
|
|
13523
13523
|
re ? e[M].style.closed = t[M].hd : e[M] = this.createStyleElement(t[M], a), t[M]._render && e[M].style.pElem.parentNode !== i && i.appendChild(e[M].style.pElem), V.push(e[M].style);
|
|
@@ -13528,13 +13528,13 @@ function requireLottie() {
|
|
|
13528
13528
|
for (q = e[M].it.length, j = 0; j < q; j += 1)
|
|
13529
13529
|
e[M].prevViewData[j] = e[M].it[j];
|
|
13530
13530
|
this.searchShapes(t[M].it, e[M].it, e[M].prevViewData, e[M].gr, a + 1, y, d), t[M]._render && e[M].gr.parentNode !== i && i.appendChild(e[M].gr);
|
|
13531
|
-
} else t[M].ty === "tr" ? (re || (e[M] = this.createTransformElement(t[M], i)), K = e[M].transform, y.push(K)) : t[M].ty === "sh" || t[M].ty === "rc" || t[M].ty === "el" || t[M].ty === "sr" ? (re || (e[M] = this.createShapeElement(t[M], y, a)), this.setElementStyles(e[M])) : t[M].ty === "tm" || t[M].ty === "rd" || t[M].ty === "ms" || t[M].ty === "pb" || t[M].ty === "zz" || t[M].ty === "op" ? (re ? (
|
|
13531
|
+
} else t[M].ty === "tr" ? (re || (e[M] = this.createTransformElement(t[M], i)), K = e[M].transform, y.push(K)) : t[M].ty === "sh" || t[M].ty === "rc" || t[M].ty === "el" || t[M].ty === "sr" ? (re || (e[M] = this.createShapeElement(t[M], y, a)), this.setElementStyles(e[M])) : t[M].ty === "tm" || t[M].ty === "rd" || t[M].ty === "ms" || t[M].ty === "pb" || t[M].ty === "zz" || t[M].ty === "op" ? (re ? (W = e[M], W.closed = !1) : (W = ShapeModifiers.getModifier(t[M].ty), W.init(this, t[M]), e[M] = W, this.shapeModifiers.push(W)), Z.push(W)) : t[M].ty === "rp" && (re ? (W = e[M], W.closed = !0) : (W = ShapeModifiers.getModifier(t[M].ty), e[M] = W, W.init(this, t, M, e), this.shapeModifiers.push(W), d = !1), Z.push(W));
|
|
13532
13532
|
this.addProcessedElement(t[M], M + 1);
|
|
13533
13533
|
}
|
|
13534
13534
|
for (F = V.length, M = 0; M < F; M += 1)
|
|
13535
13535
|
V[M].closed = !0;
|
|
13536
|
-
for (F =
|
|
13537
|
-
|
|
13536
|
+
for (F = Z.length, M = 0; M < F; M += 1)
|
|
13537
|
+
Z[M].closed = !0;
|
|
13538
13538
|
}, SVGShapeElement.prototype.renderInnerContent = function() {
|
|
13539
13539
|
this.renderModifiers();
|
|
13540
13540
|
var t, e = this.stylesList.length;
|
|
@@ -13632,7 +13632,7 @@ function requireLottie() {
|
|
|
13632
13632
|
return e;
|
|
13633
13633
|
}, TextProperty.prototype.completeTextData = function(t) {
|
|
13634
13634
|
t.__complete = !0;
|
|
13635
|
-
var e = this.elem.globalData.fontManager, r = this.data, i = [], a, h, d, y = 0, M, F = r.m.g, j = 0, q = 0, V = 0,
|
|
13635
|
+
var e = this.elem.globalData.fontManager, r = this.data, i = [], a, h, d, y = 0, M, F = r.m.g, j = 0, q = 0, V = 0, Z = [], K = 0, W = 0, re, H, J = e.getFontByName(t.f), G, Q = 0, te = getFontProperties(J);
|
|
13636
13636
|
t.fWeight = te.weight, t.fStyle = te.style, t.finalSize = t.s, t.finalText = this.buildFinalText(t.t), h = t.finalText.length, t.finalLineHeight = t.lh;
|
|
13637
13637
|
var ne = t.tr / 1e3 * t.finalSize, ae;
|
|
13638
13638
|
if (t.sz)
|
|
@@ -13646,7 +13646,7 @@ function requireLottie() {
|
|
|
13646
13646
|
K = -ne, Q = 0;
|
|
13647
13647
|
var ge = 0, fe;
|
|
13648
13648
|
for (a = 0; a < h; a += 1)
|
|
13649
|
-
if (d = !1, fe = t.finalText[a], ae = fe.charCodeAt(0), ae === 13 || ae === 3 ? (ge = 0,
|
|
13649
|
+
if (d = !1, fe = t.finalText[a], ae = fe.charCodeAt(0), ae === 13 || ae === 3 ? (ge = 0, Z.push(K), W = K > W ? K : W, K = -2 * ne, M = "", d = !0, V += 1) : M = fe, e.chars ? (G = e.getCharData(fe, J.fStyle, e.getFontByName(t.f).fFamily), Q = d ? 0 : G.w * t.finalSize / 100) : Q = e.measureText(M, t.f, t.finalSize), fe === " " ? ge += Q + ne : (K += Q + ne + ge, ge = 0), i.push({
|
|
13650
13650
|
l: Q,
|
|
13651
13651
|
an: Q,
|
|
13652
13652
|
add: j,
|
|
@@ -13669,10 +13669,10 @@ function requireLottie() {
|
|
|
13669
13669
|
}
|
|
13670
13670
|
} else
|
|
13671
13671
|
i[y].ind = y, i[y].extra = 0, y += 1;
|
|
13672
|
-
if (t.l = i,
|
|
13672
|
+
if (t.l = i, W = K > W ? K : W, Z.push(K), t.sz)
|
|
13673
13673
|
t.boxWidth = t.sz[0], t.justifyOffset = 0;
|
|
13674
13674
|
else
|
|
13675
|
-
switch (t.boxWidth =
|
|
13675
|
+
switch (t.boxWidth = W, t.j) {
|
|
13676
13676
|
case 1:
|
|
13677
13677
|
t.justifyOffset = -t.boxWidth;
|
|
13678
13678
|
break;
|
|
@@ -13682,7 +13682,7 @@ function requireLottie() {
|
|
|
13682
13682
|
default:
|
|
13683
13683
|
t.justifyOffset = 0;
|
|
13684
13684
|
}
|
|
13685
|
-
t.lineWidths =
|
|
13685
|
+
t.lineWidths = Z;
|
|
13686
13686
|
var se = r.a, ce, ee;
|
|
13687
13687
|
H = se.length;
|
|
13688
13688
|
var ie, ue, oe = [];
|
|
@@ -13730,24 +13730,24 @@ function requireLottie() {
|
|
|
13730
13730
|
this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
|
|
13731
13731
|
var y = 0, M = 0, F = 1, j = 1;
|
|
13732
13732
|
this.ne.v > 0 ? y = this.ne.v / 100 : M = -this.ne.v / 100, this.xe.v > 0 ? F = 1 - this.xe.v / 100 : j = 1 + this.xe.v / 100;
|
|
13733
|
-
var q = BezierFactory.getBezierEasing(y, M, F, j).get, V = 0,
|
|
13734
|
-
if (
|
|
13735
|
-
K ===
|
|
13736
|
-
else if (
|
|
13737
|
-
K ===
|
|
13738
|
-
else if (
|
|
13739
|
-
K ===
|
|
13740
|
-
else if (
|
|
13741
|
-
if (K ===
|
|
13733
|
+
var q = BezierFactory.getBezierEasing(y, M, F, j).get, V = 0, Z = this.finalS, K = this.finalE, W = this.data.sh;
|
|
13734
|
+
if (W === 2)
|
|
13735
|
+
K === Z ? V = d >= K ? 1 : 0 : V = t(0, e(0.5 / (K - Z) + (d - Z) / (K - Z), 1)), V = q(V);
|
|
13736
|
+
else if (W === 3)
|
|
13737
|
+
K === Z ? V = d >= K ? 0 : 1 : V = 1 - t(0, e(0.5 / (K - Z) + (d - Z) / (K - Z), 1)), V = q(V);
|
|
13738
|
+
else if (W === 4)
|
|
13739
|
+
K === Z ? V = 0 : (V = t(0, e(0.5 / (K - Z) + (d - Z) / (K - Z), 1)), V < 0.5 ? V *= 2 : V = 1 - 2 * (V - 0.5)), V = q(V);
|
|
13740
|
+
else if (W === 5) {
|
|
13741
|
+
if (K === Z)
|
|
13742
13742
|
V = 0;
|
|
13743
13743
|
else {
|
|
13744
|
-
var re = K -
|
|
13745
|
-
d = e(t(0, d + 0.5 -
|
|
13744
|
+
var re = K - Z;
|
|
13745
|
+
d = e(t(0, d + 0.5 - Z), K - Z);
|
|
13746
13746
|
var H = -re / 2 + d, J = re / 2;
|
|
13747
13747
|
V = Math.sqrt(1 - H * H / (J * J));
|
|
13748
13748
|
}
|
|
13749
13749
|
V = q(V);
|
|
13750
|
-
} else
|
|
13750
|
+
} else W === 6 ? (K === Z ? V = 0 : (d = e(t(0, d + 0.5 - Z), K - Z), V = (1 + Math.cos(Math.PI + Math.PI * 2 * d / (K - Z))) / 2), V = q(V)) : (d >= r(Z) && (d - Z < 0 ? V = t(0, e(e(K, 1) - (Z - d), 1)) : V = t(0, e(K - d, 1))), V = q(V));
|
|
13751
13751
|
if (this.sm.v !== 100) {
|
|
13752
13752
|
var G = this.sm.v * 0.01;
|
|
13753
13753
|
G === 0 && (G = 1e-8);
|
|
@@ -13816,23 +13816,23 @@ function requireLottie() {
|
|
|
13816
13816
|
}, TextAnimatorProperty.prototype.getMeasures = function(t, e) {
|
|
13817
13817
|
if (this.lettersChangedFlag = e, !(!this._mdf && !this._isFirstFrame && !e && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
13818
13818
|
this._isFirstFrame = !1;
|
|
13819
|
-
var r = this._moreOptions.alignment.v, i = this._animatorsData, a = this._textData, h = this.mHelper, d = this._renderType, y = this.renderedLetters.length, M, F, j, q, V = t.l,
|
|
13819
|
+
var r = this._moreOptions.alignment.v, i = this._animatorsData, a = this._textData, h = this.mHelper, d = this._renderType, y = this.renderedLetters.length, M, F, j, q, V = t.l, Z, K, W, re, H, J, G, Q, te, ne, ae, le, he, ye, me;
|
|
13820
13820
|
if (this._hasMaskedPath) {
|
|
13821
13821
|
if (me = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
13822
13822
|
var de = me.v;
|
|
13823
|
-
this._pathData.r.v && (de = de.reverse()),
|
|
13823
|
+
this._pathData.r.v && (de = de.reverse()), Z = {
|
|
13824
13824
|
tLength: 0,
|
|
13825
13825
|
segments: []
|
|
13826
13826
|
}, q = de._length - 1;
|
|
13827
13827
|
var ve;
|
|
13828
13828
|
for (le = 0, j = 0; j < q; j += 1)
|
|
13829
|
-
ve = bez.buildBezierData(de.v[j], de.v[j + 1], [de.o[j][0] - de.v[j][0], de.o[j][1] - de.v[j][1]], [de.i[j + 1][0] - de.v[j + 1][0], de.i[j + 1][1] - de.v[j + 1][1]]),
|
|
13830
|
-
j = q, me.v.c && (ve = bez.buildBezierData(de.v[j], de.v[0], [de.o[j][0] - de.v[j][0], de.o[j][1] - de.v[j][1]], [de.i[0][0] - de.v[0][0], de.i[0][1] - de.v[0][1]]),
|
|
13829
|
+
ve = bez.buildBezierData(de.v[j], de.v[j + 1], [de.o[j][0] - de.v[j][0], de.o[j][1] - de.v[j][1]], [de.i[j + 1][0] - de.v[j + 1][0], de.i[j + 1][1] - de.v[j + 1][1]]), Z.tLength += ve.segmentLength, Z.segments.push(ve), le += ve.segmentLength;
|
|
13830
|
+
j = q, me.v.c && (ve = bez.buildBezierData(de.v[j], de.v[0], [de.o[j][0] - de.v[j][0], de.o[j][1] - de.v[j][1]], [de.i[0][0] - de.v[0][0], de.i[0][1] - de.v[0][1]]), Z.tLength += ve.segmentLength, Z.segments.push(ve), le += ve.segmentLength), this._pathData.pi = Z;
|
|
13831
13831
|
}
|
|
13832
|
-
if (
|
|
13833
|
-
for (
|
|
13832
|
+
if (Z = this._pathData.pi, K = this._pathData.f.v, G = 0, J = 1, re = 0, H = !0, ne = Z.segments, K < 0 && me.v.c)
|
|
13833
|
+
for (Z.tLength < Math.abs(K) && (K = -Math.abs(K) % Z.tLength), G = ne.length - 1, te = ne[G].points, J = te.length - 1; K < 0; )
|
|
13834
13834
|
K += te[J].partialLength, J -= 1, J < 0 && (G -= 1, te = ne[G].points, J = te.length - 1);
|
|
13835
|
-
te = ne[G].points, Q = te[J - 1],
|
|
13835
|
+
te = ne[G].points, Q = te[J - 1], W = te[J], ae = W.partialLength;
|
|
13836
13836
|
}
|
|
13837
13837
|
q = V.length, M = 0, F = 0;
|
|
13838
13838
|
var ge = t.finalSize * 1.2 * 0.714, fe = !0, se, ce, ee, ie, ue;
|
|
@@ -13855,7 +13855,7 @@ function requireLottie() {
|
|
|
13855
13855
|
}
|
|
13856
13856
|
for (j = 0; j < q; j += 1) {
|
|
13857
13857
|
if (h.reset(), Ae = 1, V[j].n)
|
|
13858
|
-
M = 0, F += t.yOffset, F += fe ? 1 : 0, K = Te, fe = !1, this._hasMaskedPath && (G = _e, J = Pe, te = ne[G].points, Q = te[J - 1],
|
|
13858
|
+
M = 0, F += t.yOffset, F += fe ? 1 : 0, K = Te, fe = !1, this._hasMaskedPath && (G = _e, J = Pe, te = ne[G].points, Q = te[J - 1], W = te[J], ae = W.partialLength, re = 0), Oe = "", Ne = "", De = "", Ve = "", Le = this.defaultPropsArray;
|
|
13859
13859
|
else {
|
|
13860
13860
|
if (this._hasMaskedPath) {
|
|
13861
13861
|
if (Me !== V[j].line) {
|
|
@@ -13874,7 +13874,7 @@ function requireLottie() {
|
|
|
13874
13874
|
for (ee = 0; ee < ie; ee += 1)
|
|
13875
13875
|
se = i[ee].a, se.p.propType && (ce = i[ee].s, oe = ce.getMult(V[j].anIndexes[ee], a.a[ee].s.totalChars), oe.length ? Re += se.p.v[0] * oe[0] : Re += se.p.v[0] * oe), se.a.propType && (ce = i[ee].s, oe = ce.getMult(V[j].anIndexes[ee], a.a[ee].s.totalChars), oe.length ? Re += se.a.v[0] * oe[0] : Re += se.a.v[0] * oe);
|
|
13876
13876
|
for (H = !0, this._pathData.a.v && (K = V[0].an * 0.5 + (le - this._pathData.f.v - V[0].an * 0.5 - V[V.length - 1].an * 0.5) * pe / (q - 1), K += this._pathData.f.v); H; )
|
|
13877
|
-
re + ae >= K + Re || !te ? (he = (K + Re - re) /
|
|
13877
|
+
re + ae >= K + Re || !te ? (he = (K + Re - re) / W.partialLength, be = Q.point[0] + (W.point[0] - Q.point[0]) * he, Ce = Q.point[1] + (W.point[1] - Q.point[1]) * he, h.translate(-r[0] * V[j].an * 5e-3, -(r[1] * ge) * 0.01), H = !1) : te && (re += W.partialLength, J += 1, J >= te.length && (J = 0, G += 1, ne[G] ? te = ne[G].points : me.v.c ? (J = 0, G = 0, te = ne[G].points) : (re -= W.partialLength, te = null)), te && (Q = W, W = te[J], ae = W.partialLength));
|
|
13878
13878
|
xe = V[j].an / 2 - V[j].add, h.translate(-xe, 0, 0);
|
|
13879
13879
|
} else
|
|
13880
13880
|
xe = V[j].an / 2 - V[j].add, h.translate(-xe, 0, 0), h.translate(-r[0] * V[j].an * 5e-3, -r[1] * ge * 0.01, 0);
|
|
@@ -13899,9 +13899,9 @@ function requireLottie() {
|
|
|
13899
13899
|
se = i[ee].a, se.p.propType && (ce = i[ee].s, oe = ce.getMult(V[j].anIndexes[ee], a.a[ee].s.totalChars), this._hasMaskedPath ? oe.length ? h.translate(0, se.p.v[1] * oe[0], -se.p.v[2] * oe[1]) : h.translate(0, se.p.v[1] * oe, -se.p.v[2] * oe) : oe.length ? h.translate(se.p.v[0] * oe[0], se.p.v[1] * oe[1], -se.p.v[2] * oe[2]) : h.translate(se.p.v[0] * oe, se.p.v[1] * oe, -se.p.v[2] * oe));
|
|
13900
13900
|
if (t.strokeWidthAnim && (De = ke < 0 ? 0 : ke), t.strokeColorAnim && (je = "rgb(" + Math.round(Ee[0] * 255) + "," + Math.round(Ee[1] * 255) + "," + Math.round(Ee[2] * 255) + ")"), t.fillColorAnim && t.fc && (Ne = "rgb(" + Math.round(we[0] * 255) + "," + Math.round(we[1] * 255) + "," + Math.round(we[2] * 255) + ")"), this._hasMaskedPath) {
|
|
13901
13901
|
if (h.translate(0, -t.ls), h.translate(0, r[1] * ge * 0.01 + F, 0), this._pathData.p.v) {
|
|
13902
|
-
ye = (
|
|
13902
|
+
ye = (W.point[1] - Q.point[1]) / (W.point[0] - Q.point[0]);
|
|
13903
13903
|
var ze = Math.atan(ye) * 180 / Math.PI;
|
|
13904
|
-
|
|
13904
|
+
W.point[0] < Q.point[0] && (ze += 180), h.rotate(-ze * Math.PI / 180);
|
|
13905
13905
|
}
|
|
13906
13906
|
h.translate(be, Ce, 0), K -= r[0] * V[j].an * 5e-3, V[j + 1] && pe !== V[j + 1].ind && (K += V[j].an / 2, K += t.tr * 1e-3 * t.finalSize);
|
|
13907
13907
|
} else {
|
|
@@ -13992,7 +13992,7 @@ function requireLottie() {
|
|
|
13992
13992
|
this.layerElement.setAttribute("aria-label", r.t);
|
|
13993
13993
|
var d = r.l || [], y = !!this.globalData.fontManager.chars;
|
|
13994
13994
|
e = d.length;
|
|
13995
|
-
var M, F = this.mHelper, j = "", q = this.data.singleShape, V = 0,
|
|
13995
|
+
var M, F = this.mHelper, j = "", q = this.data.singleShape, V = 0, Z = 0, K = !0, W = r.tr * 1e-3 * r.finalSize;
|
|
13996
13996
|
if (q && !y && !r.sz) {
|
|
13997
13997
|
var re = this.textContainer, H = "start";
|
|
13998
13998
|
switch (r.j) {
|
|
@@ -14006,13 +14006,13 @@ function requireLottie() {
|
|
|
14006
14006
|
H = "start";
|
|
14007
14007
|
break;
|
|
14008
14008
|
}
|
|
14009
|
-
re.setAttribute("text-anchor", H), re.setAttribute("letter-spacing",
|
|
14009
|
+
re.setAttribute("text-anchor", H), re.setAttribute("letter-spacing", W);
|
|
14010
14010
|
var J = this.buildTextContents(r.finalText);
|
|
14011
|
-
for (e = J.length,
|
|
14012
|
-
M = this.textSpans[t].span || createNS("tspan"), M.textContent = J[t], M.setAttribute("x", 0), M.setAttribute("y",
|
|
14011
|
+
for (e = J.length, Z = r.ps ? r.ps[1] + r.ascent : 0, t = 0; t < e; t += 1)
|
|
14012
|
+
M = this.textSpans[t].span || createNS("tspan"), M.textContent = J[t], M.setAttribute("x", 0), M.setAttribute("y", Z), M.style.display = "inherit", re.appendChild(M), this.textSpans[t] || (this.textSpans[t] = {
|
|
14013
14013
|
span: null,
|
|
14014
14014
|
glyph: null
|
|
14015
|
-
}), this.textSpans[t].span = M,
|
|
14015
|
+
}), this.textSpans[t].span = M, Z += r.finalLineHeight;
|
|
14016
14016
|
this.layerElement.appendChild(re);
|
|
14017
14017
|
} else {
|
|
14018
14018
|
var G = this.textSpans.length, Q;
|
|
@@ -14031,7 +14031,7 @@ function requireLottie() {
|
|
|
14031
14031
|
}
|
|
14032
14032
|
M.style.display = "inherit";
|
|
14033
14033
|
}
|
|
14034
|
-
if (F.reset(), q && (d[t].n && (V = -
|
|
14034
|
+
if (F.reset(), q && (d[t].n && (V = -W, Z += r.yOffset, Z += K ? 1 : 0, K = !1), this.applyTextPropertiesToMatrix(r, F, d[t].line, V, Z), V += d[t].l || 0, V += W), y) {
|
|
14035
14035
|
Q = this.globalData.fontManager.getCharData(r.finalText[t], i.fStyle, this.globalData.fontManager.getFontByName(r.f).fFamily);
|
|
14036
14036
|
var ne;
|
|
14037
14037
|
if (Q.t === 1)
|
|
@@ -14544,7 +14544,7 @@ function requireLottie() {
|
|
|
14544
14544
|
for (e = 0; e < r; e += 1)
|
|
14545
14545
|
t[e].closed = !0;
|
|
14546
14546
|
}, CVShapeElement.prototype.searchShapes = function(t, e, r, i, a) {
|
|
14547
|
-
var h, d = t.length - 1, y, M, F = [], j = [], q, V,
|
|
14547
|
+
var h, d = t.length - 1, y, M, F = [], j = [], q, V, Z, K = [].concat(a);
|
|
14548
14548
|
for (h = d; h >= 0; h -= 1) {
|
|
14549
14549
|
if (q = this.searchProcessedElement(t[h]), q ? e[h] = r[q - 1] : t[h]._shouldRender = i, t[h].ty === "fl" || t[h].ty === "st" || t[h].ty === "gf" || t[h].ty === "gs")
|
|
14550
14550
|
q ? e[h].style.closed = !1 : e[h] = this.createStyleElement(t[h], K), F.push(e[h].style);
|
|
@@ -14555,7 +14555,7 @@ function requireLottie() {
|
|
|
14555
14555
|
for (M = e[h].it.length, y = 0; y < M; y += 1)
|
|
14556
14556
|
e[h].prevViewData[y] = e[h].it[y];
|
|
14557
14557
|
this.searchShapes(t[h].it, e[h].it, e[h].prevViewData, i, K);
|
|
14558
|
-
} else t[h].ty === "tr" ? (q || (
|
|
14558
|
+
} else t[h].ty === "tr" ? (q || (Z = this.createTransformElement(t[h]), e[h] = Z), K.push(e[h]), this.addTransformToStyleList(e[h])) : t[h].ty === "sh" || t[h].ty === "rc" || t[h].ty === "el" || t[h].ty === "sr" ? q || (e[h] = this.createShapeElement(t[h])) : t[h].ty === "tm" || t[h].ty === "rd" || t[h].ty === "pb" || t[h].ty === "zz" || t[h].ty === "op" ? (q ? (V = e[h], V.closed = !1) : (V = ShapeModifiers.getModifier(t[h].ty), V.init(this, t[h]), e[h] = V, this.shapeModifiers.push(V)), j.push(V)) : t[h].ty === "rp" && (q ? (V = e[h], V.closed = !0) : (V = ShapeModifiers.getModifier(t[h].ty), e[h] = V, V.init(this, t, h, e), this.shapeModifiers.push(V), i = !1), j.push(V));
|
|
14559
14559
|
this.addProcessedElement(t[h], h + 1);
|
|
14560
14560
|
}
|
|
14561
14561
|
for (this.removeTransformFromStyleList(), this.closeStyles(F), d = j.length, h = 0; h < d; h += 1)
|
|
@@ -14627,11 +14627,11 @@ function requireLottie() {
|
|
|
14627
14627
|
else {
|
|
14628
14628
|
var M = Math.sqrt(Math.pow(d[0] - y[0], 2) + Math.pow(d[1] - y[1], 2)), F = Math.atan2(y[1] - d[1], y[0] - d[0]), j = e.h.v;
|
|
14629
14629
|
j >= 1 ? j = 0.99 : j <= -1 && (j = -0.99);
|
|
14630
|
-
var q = M * j, V = Math.cos(F + e.a.v) * q + d[0],
|
|
14631
|
-
a = h.createRadialGradient(V,
|
|
14630
|
+
var q = M * j, V = Math.cos(F + e.a.v) * q + d[0], Z = Math.sin(F + e.a.v) * q + d[1];
|
|
14631
|
+
a = h.createRadialGradient(V, Z, 0, d[0], d[1], M);
|
|
14632
14632
|
}
|
|
14633
|
-
var K,
|
|
14634
|
-
for (K = 0; K <
|
|
14633
|
+
var K, W = t.g.p, re = e.g.c, H = 1;
|
|
14634
|
+
for (K = 0; K < W; K += 1)
|
|
14635
14635
|
e.g._hasOpacity && e.g._collapsable && (H = e.g.o[K * 2 + 1]), a.addColorStop(re[K * 4] / 100, "rgba(" + re[K * 4 + 1] + "," + re[K * 4 + 2] + "," + re[K * 4 + 3] + "," + H + ")");
|
|
14636
14636
|
i.grd = a;
|
|
14637
14637
|
}
|
|
@@ -14659,15 +14659,15 @@ function requireLottie() {
|
|
|
14659
14659
|
t.sc && (r = !0, this.values.stroke = this.buildColor(t.sc), this.values.sWidth = t.sw);
|
|
14660
14660
|
var i = this.globalData.fontManager.getFontByName(t.f), a, h, d = t.l, y = this.mHelper;
|
|
14661
14661
|
this.stroke = r, this.values.fValue = t.finalSize + "px " + this.globalData.fontManager.getFontByName(t.f).fFamily, h = t.finalText.length;
|
|
14662
|
-
var M, F, j, q, V,
|
|
14662
|
+
var M, F, j, q, V, Z, K, W, re, H, J = this.data.singleShape, G = t.tr * 1e-3 * t.finalSize, Q = 0, te = 0, ne = !0, ae = 0;
|
|
14663
14663
|
for (a = 0; a < h; a += 1) {
|
|
14664
14664
|
M = this.globalData.fontManager.getCharData(t.finalText[a], i.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily), F = M && M.data || {}, y.reset(), J && d[a].n && (Q = -G, te += t.yOffset, te += ne ? 1 : 0, ne = !1), V = F.shapes ? F.shapes[0].it : [], K = V.length, y.scale(t.finalSize / 100, t.finalSize / 100), J && this.applyTextPropertiesToMatrix(t, y, d[a].line, Q, te), re = createSizedArray(K - 1);
|
|
14665
14665
|
var le = 0;
|
|
14666
|
-
for (
|
|
14667
|
-
if (V[
|
|
14668
|
-
for (q = V[
|
|
14669
|
-
j === 1 && H.push(y.applyToX(
|
|
14670
|
-
H.push(y.applyToX(
|
|
14666
|
+
for (Z = 0; Z < K; Z += 1)
|
|
14667
|
+
if (V[Z].ty === "sh") {
|
|
14668
|
+
for (q = V[Z].ks.k.i.length, W = V[Z].ks.k, H = [], j = 1; j < q; j += 1)
|
|
14669
|
+
j === 1 && H.push(y.applyToX(W.v[0][0], W.v[0][1], 0), y.applyToY(W.v[0][0], W.v[0][1], 0)), H.push(y.applyToX(W.o[j - 1][0], W.o[j - 1][1], 0), y.applyToY(W.o[j - 1][0], W.o[j - 1][1], 0), y.applyToX(W.i[j][0], W.i[j][1], 0), y.applyToY(W.i[j][0], W.i[j][1], 0), y.applyToX(W.v[j][0], W.v[j][1], 0), y.applyToY(W.v[j][0], W.v[j][1], 0));
|
|
14670
|
+
H.push(y.applyToX(W.o[j - 1][0], W.o[j - 1][1], 0), y.applyToY(W.o[j - 1][0], W.o[j - 1][1], 0), y.applyToX(W.i[0][0], W.i[0][1], 0), y.applyToY(W.i[0][0], W.i[0][1], 0), y.applyToX(W.v[0][0], W.v[0][1], 0), y.applyToY(W.v[0][0], W.v[0][1], 0)), re[le] = H, le += 1;
|
|
14671
14671
|
}
|
|
14672
14672
|
J && (Q += d[a].l, Q += G), this.textSpans[ae] ? this.textSpans[ae].elem = re : this.textSpans[ae] = {
|
|
14673
14673
|
elem: re
|
|
@@ -14679,20 +14679,20 @@ function requireLottie() {
|
|
|
14679
14679
|
t.font = this.values.fValue, this.globalData.renderer.ctxLineCap("butt"), this.globalData.renderer.ctxLineJoin("miter"), this.globalData.renderer.ctxMiterLimit(4), this.data.singleShape || this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag);
|
|
14680
14680
|
var e, r, i, a, h, d, y = this.textAnimator.renderedLetters, M = this.textProperty.currentData.l;
|
|
14681
14681
|
r = M.length;
|
|
14682
|
-
var F, j = null, q = null, V = null,
|
|
14682
|
+
var F, j = null, q = null, V = null, Z, K, W = this.globalData.renderer;
|
|
14683
14683
|
for (e = 0; e < r; e += 1)
|
|
14684
14684
|
if (!M[e].n) {
|
|
14685
|
-
if (F = y[e], F && (
|
|
14686
|
-
for (F && F.fc ? j !== F.fc && (
|
|
14687
|
-
for (K =
|
|
14685
|
+
if (F = y[e], F && (W.save(), W.ctxTransform(F.p), W.ctxOpacity(F.o)), this.fill) {
|
|
14686
|
+
for (F && F.fc ? j !== F.fc && (W.ctxFillStyle(F.fc), j = F.fc) : j !== this.values.fill && (j = this.values.fill, W.ctxFillStyle(this.values.fill)), Z = this.textSpans[e].elem, a = Z.length, this.globalData.canvasContext.beginPath(), i = 0; i < a; i += 1)
|
|
14687
|
+
for (K = Z[i], d = K.length, this.globalData.canvasContext.moveTo(K[0], K[1]), h = 2; h < d; h += 6)
|
|
14688
14688
|
this.globalData.canvasContext.bezierCurveTo(K[h], K[h + 1], K[h + 2], K[h + 3], K[h + 4], K[h + 5]);
|
|
14689
|
-
this.globalData.canvasContext.closePath(),
|
|
14689
|
+
this.globalData.canvasContext.closePath(), W.ctxFill();
|
|
14690
14690
|
}
|
|
14691
14691
|
if (this.stroke) {
|
|
14692
|
-
for (F && F.sw ? V !== F.sw && (V = F.sw,
|
|
14693
|
-
for (K =
|
|
14692
|
+
for (F && F.sw ? V !== F.sw && (V = F.sw, W.ctxLineWidth(F.sw)) : V !== this.values.sWidth && (V = this.values.sWidth, W.ctxLineWidth(this.values.sWidth)), F && F.sc ? q !== F.sc && (q = F.sc, W.ctxStrokeStyle(F.sc)) : q !== this.values.stroke && (q = this.values.stroke, W.ctxStrokeStyle(this.values.stroke)), Z = this.textSpans[e].elem, a = Z.length, this.globalData.canvasContext.beginPath(), i = 0; i < a; i += 1)
|
|
14693
|
+
for (K = Z[i], d = K.length, this.globalData.canvasContext.moveTo(K[0], K[1]), h = 2; h < d; h += 6)
|
|
14694
14694
|
this.globalData.canvasContext.bezierCurveTo(K[h], K[h + 1], K[h + 2], K[h + 3], K[h + 4], K[h + 5]);
|
|
14695
|
-
this.globalData.canvasContext.closePath(),
|
|
14695
|
+
this.globalData.canvasContext.closePath(), W.ctxStroke();
|
|
14696
14696
|
}
|
|
14697
14697
|
F && this.globalData.renderer.restore();
|
|
14698
14698
|
}
|
|
@@ -15091,11 +15091,11 @@ function requireLottie() {
|
|
|
15091
15091
|
}
|
|
15092
15092
|
var d, y, M = t.l;
|
|
15093
15093
|
y = M.length;
|
|
15094
|
-
var F, j, q, V = this.mHelper,
|
|
15094
|
+
var F, j, q, V = this.mHelper, Z, K = "", W = 0;
|
|
15095
15095
|
for (d = 0; d < y; d += 1) {
|
|
15096
|
-
if (this.globalData.fontManager.chars ? (this.textPaths[
|
|
15096
|
+
if (this.globalData.fontManager.chars ? (this.textPaths[W] ? F = this.textPaths[W] : (F = createNS("path"), F.setAttribute("stroke-linecap", lineCapEnum[1]), F.setAttribute("stroke-linejoin", lineJoinEnum[2]), F.setAttribute("stroke-miterlimit", "4")), this.isMasked || (this.textSpans[W] ? (j = this.textSpans[W], q = j.children[0]) : (j = createTag("div"), j.style.lineHeight = 0, q = createNS("svg"), q.appendChild(F), styleDiv(j)))) : this.isMasked ? F = this.textPaths[W] ? this.textPaths[W] : createNS("text") : this.textSpans[W] ? (j = this.textSpans[W], F = this.textPaths[W]) : (j = createTag("span"), styleDiv(j), F = createTag("span"), styleDiv(F), j.appendChild(F)), this.globalData.fontManager.chars) {
|
|
15097
15097
|
var re = this.globalData.fontManager.getCharData(t.finalText[d], i.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily), H;
|
|
15098
|
-
if (re ? H = re.data : H = null, V.reset(), H && H.shapes && H.shapes.length && (
|
|
15098
|
+
if (re ? H = re.data : H = null, V.reset(), H && H.shapes && H.shapes.length && (Z = H.shapes[0].it, V.scale(t.finalSize / 100, t.finalSize / 100), K = this.createPathShape(V, Z), F.setAttribute("d", K)), this.isMasked)
|
|
15099
15099
|
this.innerElem.appendChild(F);
|
|
15100
15100
|
else {
|
|
15101
15101
|
if (this.innerElem.appendChild(j), H && H.shapes) {
|
|
@@ -15115,10 +15115,10 @@ function requireLottie() {
|
|
|
15115
15115
|
var te = F.style, ne = "translate3d(0," + -t.finalSize / 1.2 + "px,0)";
|
|
15116
15116
|
te.transform = ne, te.webkitTransform = ne;
|
|
15117
15117
|
}
|
|
15118
|
-
this.isMasked ? this.textSpans[
|
|
15118
|
+
this.isMasked ? this.textSpans[W] = F : this.textSpans[W] = j, this.textSpans[W].style.display = "block", this.textPaths[W] = F, W += 1;
|
|
15119
15119
|
}
|
|
15120
|
-
for (;
|
|
15121
|
-
this.textSpans[
|
|
15120
|
+
for (; W < this.textSpans.length; )
|
|
15121
|
+
this.textSpans[W].style.display = "none", W += 1;
|
|
15122
15122
|
}, HTextElement.prototype.renderInnerContent = function() {
|
|
15123
15123
|
this.validateText();
|
|
15124
15124
|
var t;
|
|
@@ -15192,12 +15192,12 @@ function requireLottie() {
|
|
|
15192
15192
|
var j = !this._prevMat.equals(this.mat);
|
|
15193
15193
|
if ((j || this.pe._mdf) && this.comp.threeDElements) {
|
|
15194
15194
|
r = this.comp.threeDElements.length;
|
|
15195
|
-
var q, V,
|
|
15195
|
+
var q, V, Z;
|
|
15196
15196
|
for (e = 0; e < r; e += 1)
|
|
15197
15197
|
if (q = this.comp.threeDElements[e], q.type === "3d") {
|
|
15198
15198
|
if (j) {
|
|
15199
15199
|
var K = this.mat.toCSS();
|
|
15200
|
-
|
|
15200
|
+
Z = q.container.style, Z.transform = K, Z.webkitTransform = K;
|
|
15201
15201
|
}
|
|
15202
15202
|
this.pe._mdf && (V = q.perspectiveElem.style, V.perspective = this.pe.v + "px", V.webkitPerspective = this.pe.v + "px");
|
|
15203
15203
|
}
|
|
@@ -15413,7 +15413,7 @@ function requireLottie() {
|
|
|
15413
15413
|
Q = Q === !0 ? {
|
|
15414
15414
|
entropy: !0
|
|
15415
15415
|
} : Q || {};
|
|
15416
|
-
var ae = re(
|
|
15416
|
+
var ae = re(W(Q.entropy ? [G, J(t)] : G === null ? H() : G, 3), ne), le = new Z(ne), he = function() {
|
|
15417
15417
|
for (var me = le.g(a), de = y, ve = 0; me < M; )
|
|
15418
15418
|
me = (me + ve) * i, de *= i, ve = le.g(1);
|
|
15419
15419
|
for (; me >= F; )
|
|
@@ -15431,7 +15431,7 @@ function requireLottie() {
|
|
|
15431
15431
|
})(he, ae, "global" in Q ? Q.global : this == e, Q.state);
|
|
15432
15432
|
}
|
|
15433
15433
|
e["seed" + d] = V;
|
|
15434
|
-
function
|
|
15434
|
+
function Z(G) {
|
|
15435
15435
|
var Q, te = G.length, ne = this, ae = 0, le = ne.i = ne.j = 0, he = ne.S = [];
|
|
15436
15436
|
for (te || (G = [te++]); ae < i; )
|
|
15437
15437
|
he[ae] = ae++;
|
|
@@ -15446,12 +15446,12 @@ function requireLottie() {
|
|
|
15446
15446
|
function K(G, Q) {
|
|
15447
15447
|
return Q.i = G.i, Q.j = G.j, Q.S = G.S.slice(), Q;
|
|
15448
15448
|
}
|
|
15449
|
-
function
|
|
15449
|
+
function W(G, Q) {
|
|
15450
15450
|
var te = [], ne = _typeof$2(G), ae;
|
|
15451
15451
|
if (Q && ne == "object")
|
|
15452
15452
|
for (ae in G)
|
|
15453
15453
|
try {
|
|
15454
|
-
te.push(
|
|
15454
|
+
te.push(W(G[ae], Q - 1));
|
|
15455
15455
|
} catch {
|
|
15456
15456
|
}
|
|
15457
15457
|
return te.length ? te : ne == "string" ? G : G + "\0";
|
|
@@ -16040,18 +16040,18 @@ function requireLottie() {
|
|
|
16040
16040
|
}
|
|
16041
16041
|
return function(F) {
|
|
16042
16042
|
var j;
|
|
16043
|
-
function q(
|
|
16044
|
-
|
|
16043
|
+
function q(W) {
|
|
16044
|
+
Z.mask = new MaskManagerInterface(W, F);
|
|
16045
16045
|
}
|
|
16046
|
-
function V(
|
|
16047
|
-
|
|
16046
|
+
function V(W) {
|
|
16047
|
+
Z.effect = W;
|
|
16048
16048
|
}
|
|
16049
|
-
function W
|
|
16050
|
-
switch (
|
|
16049
|
+
function Z(W) {
|
|
16050
|
+
switch (W) {
|
|
16051
16051
|
case "ADBE Root Vectors Group":
|
|
16052
16052
|
case "Contents":
|
|
16053
16053
|
case 2:
|
|
16054
|
-
return
|
|
16054
|
+
return Z.shapeInterface;
|
|
16055
16055
|
case 1:
|
|
16056
16056
|
case 6:
|
|
16057
16057
|
case "Transform":
|
|
@@ -16062,16 +16062,16 @@ function requireLottie() {
|
|
|
16062
16062
|
case "ADBE Effect Parade":
|
|
16063
16063
|
case "effects":
|
|
16064
16064
|
case "Effects":
|
|
16065
|
-
return
|
|
16065
|
+
return Z.effect;
|
|
16066
16066
|
case "ADBE Text Properties":
|
|
16067
|
-
return
|
|
16067
|
+
return Z.textInterface;
|
|
16068
16068
|
default:
|
|
16069
16069
|
return null;
|
|
16070
16070
|
}
|
|
16071
16071
|
}
|
|
16072
|
-
|
|
16072
|
+
Z.getMatrix = t, Z.invertPoint = d, Z.applyPoint = h, Z.toWorld = r, Z.toWorldVec = e, Z.fromWorld = a, Z.fromWorldVec = i, Z.toComp = r, Z.fromComp = y, Z.sampleImage = M, Z.sourceRectAtTime = F.sourceRectAtTime.bind(F), Z._elem = F, j = TransformExpressionInterface(F.finalTransform.mProp);
|
|
16073
16073
|
var K = getDescriptor(j, "anchorPoint");
|
|
16074
|
-
return Object.defineProperties(
|
|
16074
|
+
return Object.defineProperties(Z, {
|
|
16075
16075
|
hasParent: {
|
|
16076
16076
|
get: function() {
|
|
16077
16077
|
return F.hierarchy.length;
|
|
@@ -16098,7 +16098,7 @@ function requireLottie() {
|
|
|
16098
16098
|
return F.isInRange;
|
|
16099
16099
|
}
|
|
16100
16100
|
}
|
|
16101
|
-
}),
|
|
16101
|
+
}), Z.startTime = F.data.st, Z.index = F.data.ind, Z.source = F.data.refId, Z.height = F.data.ty === 0 ? F.data.h : 100, Z.width = F.data.ty === 0 ? F.data.w : 100, Z.inPoint = F.data.ip / F.comp.globalData.frameRate, Z.outPoint = F.data.op / F.comp.globalData.frameRate, Z._name = F.data.nm, Z.registerMaskInterface = q, Z.registerEffectsInterface = V, Z;
|
|
16102
16102
|
};
|
|
16103
16103
|
})(), propertyGroupFactory = /* @__PURE__ */ (function() {
|
|
16104
16104
|
return function(t, e) {
|
|
@@ -16125,9 +16125,9 @@ function requireLottie() {
|
|
|
16125
16125
|
var d = [], y = a.data.ef, M, F = a.effectsManager.effectElements.length;
|
|
16126
16126
|
for (M = 0; M < F; M += 1)
|
|
16127
16127
|
d.push(r(y[M], a.effectsManager.effectElements[M], h, a));
|
|
16128
|
-
var j = a.data.ef || [], q = function(
|
|
16128
|
+
var j = a.data.ef || [], q = function(Z) {
|
|
16129
16129
|
for (M = 0, F = j.length; M < F; ) {
|
|
16130
|
-
if (
|
|
16130
|
+
if (Z === j[M].nm || Z === j[M].mn || Z === j[M].ix)
|
|
16131
16131
|
return d[M];
|
|
16132
16132
|
M += 1;
|
|
16133
16133
|
}
|
|
@@ -16142,11 +16142,11 @@ function requireLottie() {
|
|
|
16142
16142
|
return null;
|
|
16143
16143
|
}
|
|
16144
16144
|
function r(a, h, d, y) {
|
|
16145
|
-
function M(
|
|
16146
|
-
for (var K = a.ef,
|
|
16147
|
-
if (
|
|
16148
|
-
return K[
|
|
16149
|
-
|
|
16145
|
+
function M(Z) {
|
|
16146
|
+
for (var K = a.ef, W = 0, re = K.length; W < re; ) {
|
|
16147
|
+
if (Z === K[W].nm || Z === K[W].mn || Z === K[W].ix)
|
|
16148
|
+
return K[W].ty === 5 ? j[W] : j[W]();
|
|
16149
|
+
W += 1;
|
|
16150
16150
|
}
|
|
16151
16151
|
throw new Error();
|
|
16152
16152
|
}
|
|
@@ -16215,13 +16215,13 @@ function requireLottie() {
|
|
|
16215
16215
|
}), h;
|
|
16216
16216
|
};
|
|
16217
16217
|
})(), ShapeExpressionInterface = /* @__PURE__ */ (function() {
|
|
16218
|
-
function t(K,
|
|
16218
|
+
function t(K, W, re) {
|
|
16219
16219
|
var H = [], J, G = K ? K.length : 0;
|
|
16220
16220
|
for (J = 0; J < G; J += 1)
|
|
16221
|
-
K[J].ty === "gr" ? H.push(r(K[J],
|
|
16221
|
+
K[J].ty === "gr" ? H.push(r(K[J], W[J], re)) : K[J].ty === "fl" ? H.push(i(K[J], W[J], re)) : K[J].ty === "st" ? H.push(d(K[J], W[J], re)) : K[J].ty === "tm" ? H.push(y(K[J], W[J], re)) : K[J].ty === "tr" || (K[J].ty === "el" ? H.push(F(K[J], W[J], re)) : K[J].ty === "sr" ? H.push(j(K[J], W[J], re)) : K[J].ty === "sh" ? H.push(ShapePathInterface(K[J], W[J], re)) : K[J].ty === "rc" ? H.push(q(K[J], W[J], re)) : K[J].ty === "rd" ? H.push(V(K[J], W[J], re)) : K[J].ty === "rp" ? H.push(Z(K[J], W[J], re)) : K[J].ty === "gf" ? H.push(a(K[J], W[J], re)) : H.push(h(K[J], W[J])));
|
|
16222
16222
|
return H;
|
|
16223
16223
|
}
|
|
16224
|
-
function e(K,
|
|
16224
|
+
function e(K, W, re) {
|
|
16225
16225
|
var H, J = function(te) {
|
|
16226
16226
|
for (var ne = 0, ae = H.length; ne < ae; ) {
|
|
16227
16227
|
if (H[ne]._name === te || H[ne].mn === te || H[ne].propertyIndex === te || H[ne].ix === te || H[ne].ind === te)
|
|
@@ -16230,11 +16230,11 @@ function requireLottie() {
|
|
|
16230
16230
|
}
|
|
16231
16231
|
return typeof te == "number" ? H[te - 1] : null;
|
|
16232
16232
|
};
|
|
16233
|
-
J.propertyGroup = propertyGroupFactory(J, re), H = t(K.it,
|
|
16234
|
-
var G = M(K.it[K.it.length - 1],
|
|
16233
|
+
J.propertyGroup = propertyGroupFactory(J, re), H = t(K.it, W.it, J.propertyGroup), J.numProperties = H.length;
|
|
16234
|
+
var G = M(K.it[K.it.length - 1], W.it[W.it.length - 1], J.propertyGroup);
|
|
16235
16235
|
return J.transform = G, J.propertyIndex = K.cix, J._name = K.nm, J;
|
|
16236
16236
|
}
|
|
16237
|
-
function r(K,
|
|
16237
|
+
function r(K, W, re) {
|
|
16238
16238
|
var H = function(te) {
|
|
16239
16239
|
switch (te) {
|
|
16240
16240
|
case "ADBE Vectors Group":
|
|
@@ -16249,23 +16249,23 @@ function requireLottie() {
|
|
|
16249
16249
|
}
|
|
16250
16250
|
};
|
|
16251
16251
|
H.propertyGroup = propertyGroupFactory(H, re);
|
|
16252
|
-
var J = e(K,
|
|
16252
|
+
var J = e(K, W, H.propertyGroup), G = M(K.it[K.it.length - 1], W.it[W.it.length - 1], H.propertyGroup);
|
|
16253
16253
|
return H.content = J, H.transform = G, Object.defineProperty(H, "_name", {
|
|
16254
16254
|
get: function() {
|
|
16255
16255
|
return K.nm;
|
|
16256
16256
|
}
|
|
16257
16257
|
}), H.numProperties = K.np, H.propertyIndex = K.ix, H.nm = K.nm, H.mn = K.mn, H;
|
|
16258
16258
|
}
|
|
16259
|
-
function i(K,
|
|
16259
|
+
function i(K, W, re) {
|
|
16260
16260
|
function H(J) {
|
|
16261
16261
|
return J === "Color" || J === "color" ? H.color : J === "Opacity" || J === "opacity" ? H.opacity : null;
|
|
16262
16262
|
}
|
|
16263
16263
|
return Object.defineProperties(H, {
|
|
16264
16264
|
color: {
|
|
16265
|
-
get: ExpressionPropertyInterface(
|
|
16265
|
+
get: ExpressionPropertyInterface(W.c)
|
|
16266
16266
|
},
|
|
16267
16267
|
opacity: {
|
|
16268
|
-
get: ExpressionPropertyInterface(
|
|
16268
|
+
get: ExpressionPropertyInterface(W.o)
|
|
16269
16269
|
},
|
|
16270
16270
|
_name: {
|
|
16271
16271
|
value: K.nm
|
|
@@ -16273,21 +16273,21 @@ function requireLottie() {
|
|
|
16273
16273
|
mn: {
|
|
16274
16274
|
value: K.mn
|
|
16275
16275
|
}
|
|
16276
|
-
}),
|
|
16276
|
+
}), W.c.setGroupProperty(PropertyInterface("Color", re)), W.o.setGroupProperty(PropertyInterface("Opacity", re)), H;
|
|
16277
16277
|
}
|
|
16278
|
-
function a(K,
|
|
16278
|
+
function a(K, W, re) {
|
|
16279
16279
|
function H(J) {
|
|
16280
16280
|
return J === "Start Point" || J === "start point" ? H.startPoint : J === "End Point" || J === "end point" ? H.endPoint : J === "Opacity" || J === "opacity" ? H.opacity : null;
|
|
16281
16281
|
}
|
|
16282
16282
|
return Object.defineProperties(H, {
|
|
16283
16283
|
startPoint: {
|
|
16284
|
-
get: ExpressionPropertyInterface(
|
|
16284
|
+
get: ExpressionPropertyInterface(W.s)
|
|
16285
16285
|
},
|
|
16286
16286
|
endPoint: {
|
|
16287
|
-
get: ExpressionPropertyInterface(
|
|
16287
|
+
get: ExpressionPropertyInterface(W.e)
|
|
16288
16288
|
},
|
|
16289
16289
|
opacity: {
|
|
16290
|
-
get: ExpressionPropertyInterface(
|
|
16290
|
+
get: ExpressionPropertyInterface(W.o)
|
|
16291
16291
|
},
|
|
16292
16292
|
type: {
|
|
16293
16293
|
get: function() {
|
|
@@ -16300,7 +16300,7 @@ function requireLottie() {
|
|
|
16300
16300
|
mn: {
|
|
16301
16301
|
value: K.mn
|
|
16302
16302
|
}
|
|
16303
|
-
}),
|
|
16303
|
+
}), W.s.setGroupProperty(PropertyInterface("Start Point", re)), W.e.setGroupProperty(PropertyInterface("End Point", re)), W.o.setGroupProperty(PropertyInterface("Opacity", re)), H;
|
|
16304
16304
|
}
|
|
16305
16305
|
function h() {
|
|
16306
16306
|
function K() {
|
|
@@ -16308,28 +16308,28 @@ function requireLottie() {
|
|
|
16308
16308
|
}
|
|
16309
16309
|
return K;
|
|
16310
16310
|
}
|
|
16311
|
-
function d(K,
|
|
16311
|
+
function d(K, W, re) {
|
|
16312
16312
|
var H = propertyGroupFactory(ae, re), J = propertyGroupFactory(ne, H);
|
|
16313
16313
|
function G(le) {
|
|
16314
16314
|
Object.defineProperty(ne, K.d[le].nm, {
|
|
16315
|
-
get: ExpressionPropertyInterface(
|
|
16315
|
+
get: ExpressionPropertyInterface(W.d.dataProps[le].p)
|
|
16316
16316
|
});
|
|
16317
16317
|
}
|
|
16318
16318
|
var Q, te = K.d ? K.d.length : 0, ne = {};
|
|
16319
16319
|
for (Q = 0; Q < te; Q += 1)
|
|
16320
|
-
G(Q),
|
|
16320
|
+
G(Q), W.d.dataProps[Q].p.setGroupProperty(J);
|
|
16321
16321
|
function ae(le) {
|
|
16322
16322
|
return le === "Color" || le === "color" ? ae.color : le === "Opacity" || le === "opacity" ? ae.opacity : le === "Stroke Width" || le === "stroke width" ? ae.strokeWidth : null;
|
|
16323
16323
|
}
|
|
16324
16324
|
return Object.defineProperties(ae, {
|
|
16325
16325
|
color: {
|
|
16326
|
-
get: ExpressionPropertyInterface(
|
|
16326
|
+
get: ExpressionPropertyInterface(W.c)
|
|
16327
16327
|
},
|
|
16328
16328
|
opacity: {
|
|
16329
|
-
get: ExpressionPropertyInterface(
|
|
16329
|
+
get: ExpressionPropertyInterface(W.o)
|
|
16330
16330
|
},
|
|
16331
16331
|
strokeWidth: {
|
|
16332
|
-
get: ExpressionPropertyInterface(
|
|
16332
|
+
get: ExpressionPropertyInterface(W.w)
|
|
16333
16333
|
},
|
|
16334
16334
|
dash: {
|
|
16335
16335
|
get: function() {
|
|
@@ -16342,67 +16342,67 @@ function requireLottie() {
|
|
|
16342
16342
|
mn: {
|
|
16343
16343
|
value: K.mn
|
|
16344
16344
|
}
|
|
16345
|
-
}),
|
|
16345
|
+
}), W.c.setGroupProperty(PropertyInterface("Color", H)), W.o.setGroupProperty(PropertyInterface("Opacity", H)), W.w.setGroupProperty(PropertyInterface("Stroke Width", H)), ae;
|
|
16346
16346
|
}
|
|
16347
|
-
function y(K,
|
|
16347
|
+
function y(K, W, re) {
|
|
16348
16348
|
function H(G) {
|
|
16349
16349
|
return G === K.e.ix || G === "End" || G === "end" ? H.end : G === K.s.ix ? H.start : G === K.o.ix ? H.offset : null;
|
|
16350
16350
|
}
|
|
16351
16351
|
var J = propertyGroupFactory(H, re);
|
|
16352
|
-
return H.propertyIndex = K.ix,
|
|
16352
|
+
return H.propertyIndex = K.ix, W.s.setGroupProperty(PropertyInterface("Start", J)), W.e.setGroupProperty(PropertyInterface("End", J)), W.o.setGroupProperty(PropertyInterface("Offset", J)), H.propertyIndex = K.ix, H.propertyGroup = re, Object.defineProperties(H, {
|
|
16353
16353
|
start: {
|
|
16354
|
-
get: ExpressionPropertyInterface(
|
|
16354
|
+
get: ExpressionPropertyInterface(W.s)
|
|
16355
16355
|
},
|
|
16356
16356
|
end: {
|
|
16357
|
-
get: ExpressionPropertyInterface(
|
|
16357
|
+
get: ExpressionPropertyInterface(W.e)
|
|
16358
16358
|
},
|
|
16359
16359
|
offset: {
|
|
16360
|
-
get: ExpressionPropertyInterface(
|
|
16360
|
+
get: ExpressionPropertyInterface(W.o)
|
|
16361
16361
|
},
|
|
16362
16362
|
_name: {
|
|
16363
16363
|
value: K.nm
|
|
16364
16364
|
}
|
|
16365
16365
|
}), H.mn = K.mn, H;
|
|
16366
16366
|
}
|
|
16367
|
-
function M(K,
|
|
16367
|
+
function M(K, W, re) {
|
|
16368
16368
|
function H(G) {
|
|
16369
16369
|
return K.a.ix === G || G === "Anchor Point" ? H.anchorPoint : K.o.ix === G || G === "Opacity" ? H.opacity : K.p.ix === G || G === "Position" ? H.position : K.r.ix === G || G === "Rotation" || G === "ADBE Vector Rotation" ? H.rotation : K.s.ix === G || G === "Scale" ? H.scale : K.sk && K.sk.ix === G || G === "Skew" ? H.skew : K.sa && K.sa.ix === G || G === "Skew Axis" ? H.skewAxis : null;
|
|
16370
16370
|
}
|
|
16371
16371
|
var J = propertyGroupFactory(H, re);
|
|
16372
|
-
return
|
|
16372
|
+
return W.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity", J)), W.transform.mProps.p.setGroupProperty(PropertyInterface("Position", J)), W.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point", J)), W.transform.mProps.s.setGroupProperty(PropertyInterface("Scale", J)), W.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation", J)), W.transform.mProps.sk && (W.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew", J)), W.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle", J))), W.transform.op.setGroupProperty(PropertyInterface("Opacity", J)), Object.defineProperties(H, {
|
|
16373
16373
|
opacity: {
|
|
16374
|
-
get: ExpressionPropertyInterface(
|
|
16374
|
+
get: ExpressionPropertyInterface(W.transform.mProps.o)
|
|
16375
16375
|
},
|
|
16376
16376
|
position: {
|
|
16377
|
-
get: ExpressionPropertyInterface(
|
|
16377
|
+
get: ExpressionPropertyInterface(W.transform.mProps.p)
|
|
16378
16378
|
},
|
|
16379
16379
|
anchorPoint: {
|
|
16380
|
-
get: ExpressionPropertyInterface(
|
|
16380
|
+
get: ExpressionPropertyInterface(W.transform.mProps.a)
|
|
16381
16381
|
},
|
|
16382
16382
|
scale: {
|
|
16383
|
-
get: ExpressionPropertyInterface(
|
|
16383
|
+
get: ExpressionPropertyInterface(W.transform.mProps.s)
|
|
16384
16384
|
},
|
|
16385
16385
|
rotation: {
|
|
16386
|
-
get: ExpressionPropertyInterface(
|
|
16386
|
+
get: ExpressionPropertyInterface(W.transform.mProps.r)
|
|
16387
16387
|
},
|
|
16388
16388
|
skew: {
|
|
16389
|
-
get: ExpressionPropertyInterface(
|
|
16389
|
+
get: ExpressionPropertyInterface(W.transform.mProps.sk)
|
|
16390
16390
|
},
|
|
16391
16391
|
skewAxis: {
|
|
16392
|
-
get: ExpressionPropertyInterface(
|
|
16392
|
+
get: ExpressionPropertyInterface(W.transform.mProps.sa)
|
|
16393
16393
|
},
|
|
16394
16394
|
_name: {
|
|
16395
16395
|
value: K.nm
|
|
16396
16396
|
}
|
|
16397
16397
|
}), H.ty = "tr", H.mn = K.mn, H.propertyGroup = re, H;
|
|
16398
16398
|
}
|
|
16399
|
-
function F(K,
|
|
16399
|
+
function F(K, W, re) {
|
|
16400
16400
|
function H(Q) {
|
|
16401
16401
|
return K.p.ix === Q ? H.position : K.s.ix === Q ? H.size : null;
|
|
16402
16402
|
}
|
|
16403
16403
|
var J = propertyGroupFactory(H, re);
|
|
16404
16404
|
H.propertyIndex = K.ix;
|
|
16405
|
-
var G =
|
|
16405
|
+
var G = W.sh.ty === "tm" ? W.sh.prop : W.sh;
|
|
16406
16406
|
return G.s.setGroupProperty(PropertyInterface("Size", J)), G.p.setGroupProperty(PropertyInterface("Position", J)), Object.defineProperties(H, {
|
|
16407
16407
|
size: {
|
|
16408
16408
|
get: ExpressionPropertyInterface(G.s)
|
|
@@ -16415,11 +16415,11 @@ function requireLottie() {
|
|
|
16415
16415
|
}
|
|
16416
16416
|
}), H.mn = K.mn, H;
|
|
16417
16417
|
}
|
|
16418
|
-
function j(K,
|
|
16418
|
+
function j(K, W, re) {
|
|
16419
16419
|
function H(Q) {
|
|
16420
16420
|
return K.p.ix === Q ? H.position : K.r.ix === Q ? H.rotation : K.pt.ix === Q ? H.points : K.or.ix === Q || Q === "ADBE Vector Star Outer Radius" ? H.outerRadius : K.os.ix === Q ? H.outerRoundness : K.ir && (K.ir.ix === Q || Q === "ADBE Vector Star Inner Radius") ? H.innerRadius : K.is && K.is.ix === Q ? H.innerRoundness : null;
|
|
16421
16421
|
}
|
|
16422
|
-
var J = propertyGroupFactory(H, re), G =
|
|
16422
|
+
var J = propertyGroupFactory(H, re), G = W.sh.ty === "tm" ? W.sh.prop : W.sh;
|
|
16423
16423
|
return H.propertyIndex = K.ix, G.or.setGroupProperty(PropertyInterface("Outer Radius", J)), G.os.setGroupProperty(PropertyInterface("Outer Roundness", J)), G.pt.setGroupProperty(PropertyInterface("Points", J)), G.p.setGroupProperty(PropertyInterface("Position", J)), G.r.setGroupProperty(PropertyInterface("Rotation", J)), K.ir && (G.ir.setGroupProperty(PropertyInterface("Inner Radius", J)), G.is.setGroupProperty(PropertyInterface("Inner Roundness", J))), Object.defineProperties(H, {
|
|
16424
16424
|
position: {
|
|
16425
16425
|
get: ExpressionPropertyInterface(G.p)
|
|
@@ -16447,11 +16447,11 @@ function requireLottie() {
|
|
|
16447
16447
|
}
|
|
16448
16448
|
}), H.mn = K.mn, H;
|
|
16449
16449
|
}
|
|
16450
|
-
function q(K,
|
|
16450
|
+
function q(K, W, re) {
|
|
16451
16451
|
function H(Q) {
|
|
16452
16452
|
return K.p.ix === Q ? H.position : K.r.ix === Q ? H.roundness : K.s.ix === Q || Q === "Size" || Q === "ADBE Vector Rect Size" ? H.size : null;
|
|
16453
16453
|
}
|
|
16454
|
-
var J = propertyGroupFactory(H, re), G =
|
|
16454
|
+
var J = propertyGroupFactory(H, re), G = W.sh.ty === "tm" ? W.sh.prop : W.sh;
|
|
16455
16455
|
return H.propertyIndex = K.ix, G.p.setGroupProperty(PropertyInterface("Position", J)), G.s.setGroupProperty(PropertyInterface("Size", J)), G.r.setGroupProperty(PropertyInterface("Rotation", J)), Object.defineProperties(H, {
|
|
16456
16456
|
position: {
|
|
16457
16457
|
get: ExpressionPropertyInterface(G.p)
|
|
@@ -16467,11 +16467,11 @@ function requireLottie() {
|
|
|
16467
16467
|
}
|
|
16468
16468
|
}), H.mn = K.mn, H;
|
|
16469
16469
|
}
|
|
16470
|
-
function V(K,
|
|
16470
|
+
function V(K, W, re) {
|
|
16471
16471
|
function H(Q) {
|
|
16472
16472
|
return K.r.ix === Q || Q === "Round Corners 1" ? H.radius : null;
|
|
16473
16473
|
}
|
|
16474
|
-
var J = propertyGroupFactory(H, re), G =
|
|
16474
|
+
var J = propertyGroupFactory(H, re), G = W;
|
|
16475
16475
|
return H.propertyIndex = K.ix, G.rd.setGroupProperty(PropertyInterface("Radius", J)), Object.defineProperties(H, {
|
|
16476
16476
|
radius: {
|
|
16477
16477
|
get: ExpressionPropertyInterface(G.rd)
|
|
@@ -16481,11 +16481,11 @@ function requireLottie() {
|
|
|
16481
16481
|
}
|
|
16482
16482
|
}), H.mn = K.mn, H;
|
|
16483
16483
|
}
|
|
16484
|
-
function
|
|
16484
|
+
function Z(K, W, re) {
|
|
16485
16485
|
function H(Q) {
|
|
16486
16486
|
return K.c.ix === Q || Q === "Copies" ? H.copies : K.o.ix === Q || Q === "Offset" ? H.offset : null;
|
|
16487
16487
|
}
|
|
16488
|
-
var J = propertyGroupFactory(H, re), G =
|
|
16488
|
+
var J = propertyGroupFactory(H, re), G = W;
|
|
16489
16489
|
return H.propertyIndex = K.ix, G.c.setGroupProperty(PropertyInterface("Copies", J)), G.o.setGroupProperty(PropertyInterface("Offset", J)), Object.defineProperties(H, {
|
|
16490
16490
|
copies: {
|
|
16491
16491
|
get: ExpressionPropertyInterface(G.c)
|
|
@@ -16498,7 +16498,7 @@ function requireLottie() {
|
|
|
16498
16498
|
}
|
|
16499
16499
|
}), H.mn = K.mn, H;
|
|
16500
16500
|
}
|
|
16501
|
-
return function(K,
|
|
16501
|
+
return function(K, W, re) {
|
|
16502
16502
|
var H;
|
|
16503
16503
|
function J(Q) {
|
|
16504
16504
|
if (typeof Q == "number")
|
|
@@ -16513,7 +16513,7 @@ function requireLottie() {
|
|
|
16513
16513
|
function G() {
|
|
16514
16514
|
return re;
|
|
16515
16515
|
}
|
|
16516
|
-
return J.propertyGroup = propertyGroupFactory(J, G), H = t(K,
|
|
16516
|
+
return J.propertyGroup = propertyGroupFactory(J, G), H = t(K, W, J.propertyGroup), J.numProperties = H.length, J._name = "Contents", J;
|
|
16517
16517
|
};
|
|
16518
16518
|
})(), TextExpressionInterface = /* @__PURE__ */ (function() {
|
|
16519
16519
|
return function(t) {
|
|
@@ -16631,22 +16631,22 @@ function requireLottie() {
|
|
|
16631
16631
|
};
|
|
16632
16632
|
})();
|
|
16633
16633
|
function addPropertyDecorator() {
|
|
16634
|
-
function t(V,
|
|
16634
|
+
function t(V, Z, K) {
|
|
16635
16635
|
if (!this.k || !this.keyframes)
|
|
16636
16636
|
return this.pv;
|
|
16637
16637
|
V = V ? V.toLowerCase() : "";
|
|
16638
|
-
var
|
|
16639
|
-
if (
|
|
16638
|
+
var W = this.comp.renderedFrame, re = this.keyframes, H = re[re.length - 1].t;
|
|
16639
|
+
if (W <= H)
|
|
16640
16640
|
return this.pv;
|
|
16641
16641
|
var J, G;
|
|
16642
|
-
K ? (
|
|
16642
|
+
K ? (Z ? J = Math.abs(H - this.elem.comp.globalData.frameRate * Z) : J = Math.max(0, H - this.elem.data.ip), G = H - J) : ((!Z || Z > re.length - 1) && (Z = re.length - 1), G = re[re.length - 1 - Z].t, J = H - G);
|
|
16643
16643
|
var Q, te, ne;
|
|
16644
16644
|
if (V === "pingpong") {
|
|
16645
|
-
var ae = Math.floor((
|
|
16645
|
+
var ae = Math.floor((W - G) / J);
|
|
16646
16646
|
if (ae % 2 !== 0)
|
|
16647
|
-
return this.getValueAtTime((J - (
|
|
16647
|
+
return this.getValueAtTime((J - (W - G) % J + G) / this.comp.globalData.frameRate, 0);
|
|
16648
16648
|
} else if (V === "offset") {
|
|
16649
|
-
var le = this.getValueAtTime(G / this.comp.globalData.frameRate, 0), he = this.getValueAtTime(H / this.comp.globalData.frameRate, 0), ye = this.getValueAtTime(((
|
|
16649
|
+
var le = this.getValueAtTime(G / this.comp.globalData.frameRate, 0), he = this.getValueAtTime(H / this.comp.globalData.frameRate, 0), ye = this.getValueAtTime(((W - G) % J + G) / this.comp.globalData.frameRate, 0), me = Math.floor((W - G) / J);
|
|
16650
16650
|
if (this.pv.length) {
|
|
16651
16651
|
for (ne = new Array(le.length), te = ne.length, Q = 0; Q < te; Q += 1)
|
|
16652
16652
|
ne[Q] = (he[Q] - le[Q]) * me + ye[Q];
|
|
@@ -16657,29 +16657,29 @@ function requireLottie() {
|
|
|
16657
16657
|
var de = this.getValueAtTime(H / this.comp.globalData.frameRate, 0), ve = this.getValueAtTime((H - 1e-3) / this.comp.globalData.frameRate, 0);
|
|
16658
16658
|
if (this.pv.length) {
|
|
16659
16659
|
for (ne = new Array(de.length), te = ne.length, Q = 0; Q < te; Q += 1)
|
|
16660
|
-
ne[Q] = de[Q] + (de[Q] - ve[Q]) * ((
|
|
16660
|
+
ne[Q] = de[Q] + (de[Q] - ve[Q]) * ((W - H) / this.comp.globalData.frameRate) / 5e-4;
|
|
16661
16661
|
return ne;
|
|
16662
16662
|
}
|
|
16663
|
-
return de + (de - ve) * ((
|
|
16663
|
+
return de + (de - ve) * ((W - H) / 1e-3);
|
|
16664
16664
|
}
|
|
16665
|
-
return this.getValueAtTime(((
|
|
16665
|
+
return this.getValueAtTime(((W - G) % J + G) / this.comp.globalData.frameRate, 0);
|
|
16666
16666
|
}
|
|
16667
|
-
function e(V,
|
|
16667
|
+
function e(V, Z, K) {
|
|
16668
16668
|
if (!this.k)
|
|
16669
16669
|
return this.pv;
|
|
16670
16670
|
V = V ? V.toLowerCase() : "";
|
|
16671
|
-
var
|
|
16672
|
-
if (
|
|
16671
|
+
var W = this.comp.renderedFrame, re = this.keyframes, H = re[0].t;
|
|
16672
|
+
if (W >= H)
|
|
16673
16673
|
return this.pv;
|
|
16674
16674
|
var J, G;
|
|
16675
|
-
K ? (
|
|
16675
|
+
K ? (Z ? J = Math.abs(this.elem.comp.globalData.frameRate * Z) : J = Math.max(0, this.elem.data.op - H), G = H + J) : ((!Z || Z > re.length - 1) && (Z = re.length - 1), G = re[Z].t, J = G - H);
|
|
16676
16676
|
var Q, te, ne;
|
|
16677
16677
|
if (V === "pingpong") {
|
|
16678
|
-
var ae = Math.floor((H -
|
|
16678
|
+
var ae = Math.floor((H - W) / J);
|
|
16679
16679
|
if (ae % 2 === 0)
|
|
16680
|
-
return this.getValueAtTime(((H -
|
|
16680
|
+
return this.getValueAtTime(((H - W) % J + H) / this.comp.globalData.frameRate, 0);
|
|
16681
16681
|
} else if (V === "offset") {
|
|
16682
|
-
var le = this.getValueAtTime(H / this.comp.globalData.frameRate, 0), he = this.getValueAtTime(G / this.comp.globalData.frameRate, 0), ye = this.getValueAtTime((J - (H -
|
|
16682
|
+
var le = this.getValueAtTime(H / this.comp.globalData.frameRate, 0), he = this.getValueAtTime(G / this.comp.globalData.frameRate, 0), ye = this.getValueAtTime((J - (H - W) % J + H) / this.comp.globalData.frameRate, 0), me = Math.floor((H - W) / J) + 1;
|
|
16683
16683
|
if (this.pv.length) {
|
|
16684
16684
|
for (ne = new Array(le.length), te = ne.length, Q = 0; Q < te; Q += 1)
|
|
16685
16685
|
ne[Q] = ye[Q] - (he[Q] - le[Q]) * me;
|
|
@@ -16690,22 +16690,22 @@ function requireLottie() {
|
|
|
16690
16690
|
var de = this.getValueAtTime(H / this.comp.globalData.frameRate, 0), ve = this.getValueAtTime((H + 1e-3) / this.comp.globalData.frameRate, 0);
|
|
16691
16691
|
if (this.pv.length) {
|
|
16692
16692
|
for (ne = new Array(de.length), te = ne.length, Q = 0; Q < te; Q += 1)
|
|
16693
|
-
ne[Q] = de[Q] + (de[Q] - ve[Q]) * (H -
|
|
16693
|
+
ne[Q] = de[Q] + (de[Q] - ve[Q]) * (H - W) / 1e-3;
|
|
16694
16694
|
return ne;
|
|
16695
16695
|
}
|
|
16696
|
-
return de + (de - ve) * (H -
|
|
16696
|
+
return de + (de - ve) * (H - W) / 1e-3;
|
|
16697
16697
|
}
|
|
16698
|
-
return this.getValueAtTime((J - ((H -
|
|
16698
|
+
return this.getValueAtTime((J - ((H - W) % J + H)) / this.comp.globalData.frameRate, 0);
|
|
16699
16699
|
}
|
|
16700
|
-
function r(V,
|
|
16700
|
+
function r(V, Z) {
|
|
16701
16701
|
if (!this.k)
|
|
16702
16702
|
return this.pv;
|
|
16703
|
-
if (V = (V || 0.4) * 0.5,
|
|
16703
|
+
if (V = (V || 0.4) * 0.5, Z = Math.floor(Z || 5), Z <= 1)
|
|
16704
16704
|
return this.pv;
|
|
16705
|
-
var K = this.comp.renderedFrame / this.comp.globalData.frameRate,
|
|
16705
|
+
var K = this.comp.renderedFrame / this.comp.globalData.frameRate, W = K - V, re = K + V, H = Z > 1 ? (re - W) / (Z - 1) : 1, J = 0, G = 0, Q;
|
|
16706
16706
|
this.pv.length ? Q = createTypedArray("float32", this.pv.length) : Q = 0;
|
|
16707
|
-
for (var te; J <
|
|
16708
|
-
if (te = this.getValueAtTime(
|
|
16707
|
+
for (var te; J < Z; ) {
|
|
16708
|
+
if (te = this.getValueAtTime(W + J * H), this.pv.length)
|
|
16709
16709
|
for (G = 0; G < this.pv.length; G += 1)
|
|
16710
16710
|
Q[G] += te[G];
|
|
16711
16711
|
else
|
|
@@ -16714,66 +16714,66 @@ function requireLottie() {
|
|
|
16714
16714
|
}
|
|
16715
16715
|
if (this.pv.length)
|
|
16716
16716
|
for (G = 0; G < this.pv.length; G += 1)
|
|
16717
|
-
Q[G] /=
|
|
16717
|
+
Q[G] /= Z;
|
|
16718
16718
|
else
|
|
16719
|
-
Q /=
|
|
16719
|
+
Q /= Z;
|
|
16720
16720
|
return Q;
|
|
16721
16721
|
}
|
|
16722
16722
|
function i(V) {
|
|
16723
16723
|
this._transformCachingAtTime || (this._transformCachingAtTime = {
|
|
16724
16724
|
v: new Matrix()
|
|
16725
16725
|
});
|
|
16726
|
-
var
|
|
16727
|
-
if (
|
|
16726
|
+
var Z = this._transformCachingAtTime.v;
|
|
16727
|
+
if (Z.cloneFromProps(this.pre.props), this.appliedTransformations < 1) {
|
|
16728
16728
|
var K = this.a.getValueAtTime(V);
|
|
16729
|
-
|
|
16729
|
+
Z.translate(-K[0] * this.a.mult, -K[1] * this.a.mult, K[2] * this.a.mult);
|
|
16730
16730
|
}
|
|
16731
16731
|
if (this.appliedTransformations < 2) {
|
|
16732
|
-
var
|
|
16733
|
-
|
|
16732
|
+
var W = this.s.getValueAtTime(V);
|
|
16733
|
+
Z.scale(W[0] * this.s.mult, W[1] * this.s.mult, W[2] * this.s.mult);
|
|
16734
16734
|
}
|
|
16735
16735
|
if (this.sk && this.appliedTransformations < 3) {
|
|
16736
16736
|
var re = this.sk.getValueAtTime(V), H = this.sa.getValueAtTime(V);
|
|
16737
|
-
|
|
16737
|
+
Z.skewFromAxis(-re * this.sk.mult, H * this.sa.mult);
|
|
16738
16738
|
}
|
|
16739
16739
|
if (this.r && this.appliedTransformations < 4) {
|
|
16740
16740
|
var J = this.r.getValueAtTime(V);
|
|
16741
|
-
|
|
16741
|
+
Z.rotate(-J * this.r.mult);
|
|
16742
16742
|
} else if (!this.r && this.appliedTransformations < 4) {
|
|
16743
16743
|
var G = this.rz.getValueAtTime(V), Q = this.ry.getValueAtTime(V), te = this.rx.getValueAtTime(V), ne = this.or.getValueAtTime(V);
|
|
16744
|
-
|
|
16744
|
+
Z.rotateZ(-G * this.rz.mult).rotateY(Q * this.ry.mult).rotateX(te * this.rx.mult).rotateZ(-ne[2] * this.or.mult).rotateY(ne[1] * this.or.mult).rotateX(ne[0] * this.or.mult);
|
|
16745
16745
|
}
|
|
16746
16746
|
if (this.data.p && this.data.p.s) {
|
|
16747
16747
|
var ae = this.px.getValueAtTime(V), le = this.py.getValueAtTime(V);
|
|
16748
16748
|
if (this.data.p.z) {
|
|
16749
16749
|
var he = this.pz.getValueAtTime(V);
|
|
16750
|
-
|
|
16750
|
+
Z.translate(ae * this.px.mult, le * this.py.mult, -he * this.pz.mult);
|
|
16751
16751
|
} else
|
|
16752
|
-
|
|
16752
|
+
Z.translate(ae * this.px.mult, le * this.py.mult, 0);
|
|
16753
16753
|
} else {
|
|
16754
16754
|
var ye = this.p.getValueAtTime(V);
|
|
16755
|
-
|
|
16755
|
+
Z.translate(ye[0] * this.p.mult, ye[1] * this.p.mult, -ye[2] * this.p.mult);
|
|
16756
16756
|
}
|
|
16757
|
-
return
|
|
16757
|
+
return Z;
|
|
16758
16758
|
}
|
|
16759
16759
|
function a() {
|
|
16760
16760
|
return this.v.clone(new Matrix());
|
|
16761
16761
|
}
|
|
16762
16762
|
var h = TransformPropertyFactory.getTransformProperty;
|
|
16763
|
-
TransformPropertyFactory.getTransformProperty = function(V,
|
|
16764
|
-
var
|
|
16765
|
-
return
|
|
16763
|
+
TransformPropertyFactory.getTransformProperty = function(V, Z, K) {
|
|
16764
|
+
var W = h(V, Z, K);
|
|
16765
|
+
return W.dynamicProperties.length ? W.getValueAtTime = i.bind(W) : W.getValueAtTime = a.bind(W), W.setGroupProperty = expressionHelpers.setGroupProperty, W;
|
|
16766
16766
|
};
|
|
16767
16767
|
var d = PropertyFactory.getProp;
|
|
16768
|
-
PropertyFactory.getProp = function(V,
|
|
16769
|
-
var H = d(V,
|
|
16770
|
-
H.kf ? H.getValueAtTime = expressionHelpers.getValueAtTime.bind(H) : H.getValueAtTime = expressionHelpers.getStaticValueAtTime.bind(H), H.setGroupProperty = expressionHelpers.setGroupProperty, H.loopOut = t, H.loopIn = e, H.smooth = r, H.getVelocityAtTime = expressionHelpers.getVelocityAtTime.bind(H), H.getSpeedAtTime = expressionHelpers.getSpeedAtTime.bind(H), H.numKeys =
|
|
16768
|
+
PropertyFactory.getProp = function(V, Z, K, W, re) {
|
|
16769
|
+
var H = d(V, Z, K, W, re);
|
|
16770
|
+
H.kf ? H.getValueAtTime = expressionHelpers.getValueAtTime.bind(H) : H.getValueAtTime = expressionHelpers.getStaticValueAtTime.bind(H), H.setGroupProperty = expressionHelpers.setGroupProperty, H.loopOut = t, H.loopIn = e, H.smooth = r, H.getVelocityAtTime = expressionHelpers.getVelocityAtTime.bind(H), H.getSpeedAtTime = expressionHelpers.getSpeedAtTime.bind(H), H.numKeys = Z.a === 1 ? Z.k.length : 0, H.propertyIndex = Z.ix;
|
|
16771
16771
|
var J = 0;
|
|
16772
|
-
return K !== 0 && (J = createTypedArray("float32",
|
|
16772
|
+
return K !== 0 && (J = createTypedArray("float32", Z.a === 1 ? Z.k[0].s.length : Z.k.length)), H._cachingAtTime = {
|
|
16773
16773
|
lastFrame: initialDefaultFrame,
|
|
16774
16774
|
lastIndex: 0,
|
|
16775
16775
|
value: J
|
|
16776
|
-
}, expressionHelpers.searchExpressions(V,
|
|
16776
|
+
}, expressionHelpers.searchExpressions(V, Z, H), H.k && re.addDynamicProperty(H), H;
|
|
16777
16777
|
};
|
|
16778
16778
|
function y(V) {
|
|
16779
16779
|
return this._cachingAtTime || (this._cachingAtTime = {
|
|
@@ -16786,62 +16786,62 @@ function requireLottie() {
|
|
|
16786
16786
|
function j() {
|
|
16787
16787
|
}
|
|
16788
16788
|
j.prototype = {
|
|
16789
|
-
vertices: function(
|
|
16789
|
+
vertices: function(Z, K) {
|
|
16790
16790
|
this.k && this.getValue();
|
|
16791
|
-
var
|
|
16792
|
-
K !== void 0 && (
|
|
16793
|
-
var re, H =
|
|
16791
|
+
var W = this.v;
|
|
16792
|
+
K !== void 0 && (W = this.getValueAtTime(K, 0));
|
|
16793
|
+
var re, H = W._length, J = W[Z], G = W.v, Q = createSizedArray(H);
|
|
16794
16794
|
for (re = 0; re < H; re += 1)
|
|
16795
|
-
|
|
16795
|
+
Z === "i" || Z === "o" ? Q[re] = [J[re][0] - G[re][0], J[re][1] - G[re][1]] : Q[re] = [J[re][0], J[re][1]];
|
|
16796
16796
|
return Q;
|
|
16797
16797
|
},
|
|
16798
|
-
points: function(
|
|
16799
|
-
return this.vertices("v",
|
|
16798
|
+
points: function(Z) {
|
|
16799
|
+
return this.vertices("v", Z);
|
|
16800
16800
|
},
|
|
16801
|
-
inTangents: function(
|
|
16802
|
-
return this.vertices("i",
|
|
16801
|
+
inTangents: function(Z) {
|
|
16802
|
+
return this.vertices("i", Z);
|
|
16803
16803
|
},
|
|
16804
|
-
outTangents: function(
|
|
16805
|
-
return this.vertices("o",
|
|
16804
|
+
outTangents: function(Z) {
|
|
16805
|
+
return this.vertices("o", Z);
|
|
16806
16806
|
},
|
|
16807
16807
|
isClosed: function() {
|
|
16808
16808
|
return this.v.c;
|
|
16809
16809
|
},
|
|
16810
|
-
pointOnPath: function(
|
|
16811
|
-
var
|
|
16812
|
-
K !== void 0 && (
|
|
16813
|
-
for (var re = this._segmentsLength, H = re.lengths, J = re.totalLength *
|
|
16810
|
+
pointOnPath: function(Z, K) {
|
|
16811
|
+
var W = this.v;
|
|
16812
|
+
K !== void 0 && (W = this.getValueAtTime(K, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(W));
|
|
16813
|
+
for (var re = this._segmentsLength, H = re.lengths, J = re.totalLength * Z, G = 0, Q = H.length, te = 0, ne; G < Q; ) {
|
|
16814
16814
|
if (te + H[G].addedLength > J) {
|
|
16815
|
-
var ae = G, le =
|
|
16816
|
-
ne = bez.getPointInSegment(
|
|
16815
|
+
var ae = G, le = W.c && G === Q - 1 ? 0 : G + 1, he = (J - te) / H[G].addedLength;
|
|
16816
|
+
ne = bez.getPointInSegment(W.v[ae], W.v[le], W.o[ae], W.i[le], he, H[G]);
|
|
16817
16817
|
break;
|
|
16818
16818
|
} else
|
|
16819
16819
|
te += H[G].addedLength;
|
|
16820
16820
|
G += 1;
|
|
16821
16821
|
}
|
|
16822
|
-
return ne || (ne =
|
|
16822
|
+
return ne || (ne = W.c ? [W.v[0][0], W.v[0][1]] : [W.v[W._length - 1][0], W.v[W._length - 1][1]]), ne;
|
|
16823
16823
|
},
|
|
16824
|
-
vectorOnPath: function(
|
|
16825
|
-
|
|
16826
|
-
var re = this.pointOnPath(
|
|
16824
|
+
vectorOnPath: function(Z, K, W) {
|
|
16825
|
+
Z == 1 ? Z = this.v.c : Z == 0 && (Z = 0.999);
|
|
16826
|
+
var re = this.pointOnPath(Z, K), H = this.pointOnPath(Z + 1e-3, K), J = H[0] - re[0], G = H[1] - re[1], Q = Math.sqrt(Math.pow(J, 2) + Math.pow(G, 2));
|
|
16827
16827
|
if (Q === 0)
|
|
16828
16828
|
return [0, 0];
|
|
16829
|
-
var te =
|
|
16829
|
+
var te = W === "tangent" ? [J / Q, G / Q] : [-G / Q, J / Q];
|
|
16830
16830
|
return te;
|
|
16831
16831
|
},
|
|
16832
|
-
tangentOnPath: function(
|
|
16833
|
-
return this.vectorOnPath(
|
|
16832
|
+
tangentOnPath: function(Z, K) {
|
|
16833
|
+
return this.vectorOnPath(Z, K, "tangent");
|
|
16834
16834
|
},
|
|
16835
|
-
normalOnPath: function(
|
|
16836
|
-
return this.vectorOnPath(
|
|
16835
|
+
normalOnPath: function(Z, K) {
|
|
16836
|
+
return this.vectorOnPath(Z, K, "normal");
|
|
16837
16837
|
},
|
|
16838
16838
|
setGroupProperty: expressionHelpers.setGroupProperty,
|
|
16839
16839
|
getValueAtTime: expressionHelpers.getStaticValueAtTime
|
|
16840
16840
|
}, extendPrototype([j], M), extendPrototype([j], F), F.prototype.getValueAtTime = y, F.prototype.initiateExpression = ExpressionManager.initiateExpression;
|
|
16841
16841
|
var q = ShapePropertyFactory.getShapeProp;
|
|
16842
|
-
ShapePropertyFactory.getShapeProp = function(V,
|
|
16843
|
-
var H = q(V,
|
|
16844
|
-
return H.propertyIndex =
|
|
16842
|
+
ShapePropertyFactory.getShapeProp = function(V, Z, K, W, re) {
|
|
16843
|
+
var H = q(V, Z, K, W, re);
|
|
16844
|
+
return H.propertyIndex = Z.ix, H.lock = !1, K === 3 ? expressionHelpers.searchExpressions(V, Z.pt, H) : K === 4 && expressionHelpers.searchExpressions(V, Z.ks, H), H.k && V.addDynamicProperty(H), H;
|
|
16845
16845
|
};
|
|
16846
16846
|
}
|
|
16847
16847
|
function initialize$1() {
|
|
@@ -16945,8 +16945,8 @@ function requireLottie() {
|
|
|
16945
16945
|
a.setAttribute("stroke-dasharray", h);
|
|
16946
16946
|
}
|
|
16947
16947
|
if ((t || this.filterManager.effectElements[4].p._mdf) && this.pathMasker.setAttribute("stroke-width", this.filterManager.effectElements[4].p.v * 2), (t || this.filterManager.effectElements[6].p._mdf) && this.pathMasker.setAttribute("opacity", this.filterManager.effectElements[6].p.v), (this.filterManager.effectElements[10].p.v === 1 || this.filterManager.effectElements[10].p.v === 2) && (t || this.filterManager.effectElements[3].p._mdf)) {
|
|
16948
|
-
var
|
|
16949
|
-
this.pathMasker.setAttribute("stroke", "rgb(" + bmFloor(
|
|
16948
|
+
var Z = this.filterManager.effectElements[3].p.v;
|
|
16949
|
+
this.pathMasker.setAttribute("stroke", "rgb(" + bmFloor(Z[0] * 255) + "," + bmFloor(Z[1] * 255) + "," + bmFloor(Z[2] * 255) + ")");
|
|
16950
16950
|
}
|
|
16951
16951
|
};
|
|
16952
16952
|
function SVGTritoneFilter(t, e, r, i) {
|
|
@@ -16979,8 +16979,8 @@ function requireLottie() {
|
|
|
16979
16979
|
}, SVGProLevelsFilter.prototype.getTableValue = function(t, e, r, i, a) {
|
|
16980
16980
|
for (var h = 0, d = 256, y, M = Math.min(t, e), F = Math.max(t, e), j = Array.call(null, {
|
|
16981
16981
|
length: d
|
|
16982
|
-
}), q, V = 0,
|
|
16983
|
-
y = h / 256, y <= M ? q = K < 0 ? a : i : y >= F ? q = K < 0 ? i : a : q = i +
|
|
16982
|
+
}), q, V = 0, Z = a - i, K = e - t; h <= 256; )
|
|
16983
|
+
y = h / 256, y <= M ? q = K < 0 ? a : i : y >= F ? q = K < 0 ? i : a : q = i + Z * Math.pow((y - t) / K, 1 / r), j[V] = q, V += 1, h += 256 / (d - 1);
|
|
16984
16984
|
return j.join(" ");
|
|
16985
16985
|
}, SVGProLevelsFilter.prototype.renderFrame = function(t) {
|
|
16986
16986
|
if (t || this.filterManager._mdf) {
|
|
@@ -17192,7 +17192,7 @@ function _unsupportedIterableToArray(t, e) {
|
|
|
17192
17192
|
}
|
|
17193
17193
|
}
|
|
17194
17194
|
var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"], useLottie = function t(e, r) {
|
|
17195
|
-
var i = e.animationData, a = e.loop, h = e.autoplay, d = e.initialSegment, y = e.onComplete, M = e.onLoopComplete, F = e.onEnterFrame, j = e.onSegmentStart, q = e.onConfigReady, V = e.onDataReady,
|
|
17195
|
+
var i = e.animationData, a = e.loop, h = e.autoplay, d = e.initialSegment, y = e.onComplete, M = e.onLoopComplete, F = e.onEnterFrame, j = e.onSegmentStart, q = e.onConfigReady, V = e.onDataReady, Z = e.onDataFailed, K = e.onLoadedImages, W = e.onDOMLoaded, re = e.onDestroy;
|
|
17196
17196
|
e.lottieRef, e.renderer, e.name, e.assetsPath, e.rendererSettings;
|
|
17197
17197
|
var H = _objectWithoutProperties(e, _excluded$1), J = useState(!1), G = _slicedToArray(J, 2), Q = G[0], te = G[1], ne = useRef(), ae = useRef(null), le = function() {
|
|
17198
17198
|
var pe;
|
|
@@ -17276,13 +17276,13 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
17276
17276
|
handler: V
|
|
17277
17277
|
}, {
|
|
17278
17278
|
name: "data_failed",
|
|
17279
|
-
handler:
|
|
17279
|
+
handler: Z
|
|
17280
17280
|
}, {
|
|
17281
17281
|
name: "loaded_images",
|
|
17282
17282
|
handler: K
|
|
17283
17283
|
}, {
|
|
17284
17284
|
name: "DOMLoaded",
|
|
17285
|
-
handler:
|
|
17285
|
+
handler: W
|
|
17286
17286
|
}, {
|
|
17287
17287
|
name: "destroy",
|
|
17288
17288
|
handler: re
|
|
@@ -17310,7 +17310,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
17310
17310
|
});
|
|
17311
17311
|
};
|
|
17312
17312
|
}
|
|
17313
|
-
}, [y, M, F, j, q, V,
|
|
17313
|
+
}, [y, M, F, j, q, V, Z, K, W, re]);
|
|
17314
17314
|
var ue = /* @__PURE__ */ React__default.createElement("div", _objectSpread2({
|
|
17315
17315
|
style: r,
|
|
17316
17316
|
ref: ae
|
|
@@ -17352,14 +17352,14 @@ var useInitInteractivity = function t(e) {
|
|
|
17352
17352
|
i.stop();
|
|
17353
17353
|
var y = function() {
|
|
17354
17354
|
var j = null, q = function() {
|
|
17355
|
-
var
|
|
17355
|
+
var Z = getContainerVisibility(d), K = h.find(function(re) {
|
|
17356
17356
|
var H = re.visibility;
|
|
17357
|
-
return H &&
|
|
17357
|
+
return H && Z >= H[0] && Z <= H[1];
|
|
17358
17358
|
});
|
|
17359
17359
|
if (K) {
|
|
17360
17360
|
if (K.type === "seek" && K.visibility && K.frames.length === 2) {
|
|
17361
|
-
var
|
|
17362
|
-
i.goToAndStop(
|
|
17361
|
+
var W = K.frames[0] + Math.ceil((Z - K.visibility[0]) / (K.visibility[1] - K.visibility[0]) * K.frames[1]);
|
|
17362
|
+
i.goToAndStop(W - i.firstFrame - 1, !0);
|
|
17363
17363
|
}
|
|
17364
17364
|
K.type === "loop" && (j === null || j !== K.frames || i.isPaused) && (i.playSegments(K.frames, !0), j = K.frames), K.type === "play" && i.isPaused && (i.resetSegments(!0), i.play()), K.type === "stop" && i.goToAndStop(K.frames[0] - i.firstFrame - 1, !0);
|
|
17365
17365
|
}
|
|
@@ -17368,8 +17368,8 @@ var useInitInteractivity = function t(e) {
|
|
|
17368
17368
|
document.removeEventListener("scroll", q);
|
|
17369
17369
|
};
|
|
17370
17370
|
}, M = function() {
|
|
17371
|
-
var j = function(K,
|
|
17372
|
-
var re = K, H =
|
|
17371
|
+
var j = function(K, W) {
|
|
17372
|
+
var re = K, H = W;
|
|
17373
17373
|
if (re !== -1 && H !== -1) {
|
|
17374
17374
|
var J = getContainerCursorPosition(d, re, H);
|
|
17375
17375
|
re = J.x, H = J.y;
|
|
@@ -17411,14 +17411,14 @@ var useInitInteractivity = function t(e) {
|
|
|
17411
17411
|
wrapperRef: y
|
|
17412
17412
|
}), d;
|
|
17413
17413
|
}, _excluded = ["style", "interactivity"], Lottie = function t(e) {
|
|
17414
|
-
var r, i, a, h = e.style, d = e.interactivity, y = _objectWithoutProperties(e, _excluded), M = useLottie(y, h), F = M.View, j = M.play, q = M.stop, V = M.pause,
|
|
17414
|
+
var r, i, a, h = e.style, d = e.interactivity, y = _objectWithoutProperties(e, _excluded), M = useLottie(y, h), F = M.View, j = M.play, q = M.stop, V = M.pause, Z = M.setSpeed, K = M.goToAndStop, W = M.goToAndPlay, re = M.setDirection, H = M.playSegments, J = M.setSubframe, G = M.getDuration, Q = M.destroy, te = M.animationContainerRef, ne = M.animationLoaded, ae = M.animationItem;
|
|
17415
17415
|
return useEffect(function() {
|
|
17416
17416
|
e.lottieRef && (e.lottieRef.current = {
|
|
17417
17417
|
play: j,
|
|
17418
17418
|
stop: q,
|
|
17419
17419
|
pause: V,
|
|
17420
|
-
setSpeed:
|
|
17421
|
-
goToAndPlay:
|
|
17420
|
+
setSpeed: Z,
|
|
17421
|
+
goToAndPlay: W,
|
|
17422
17422
|
goToAndStop: K,
|
|
17423
17423
|
setDirection: re,
|
|
17424
17424
|
playSegments: H,
|
|
@@ -17435,9 +17435,9 @@ var useInitInteractivity = function t(e) {
|
|
|
17435
17435
|
play: j,
|
|
17436
17436
|
stop: q,
|
|
17437
17437
|
pause: V,
|
|
17438
|
-
setSpeed:
|
|
17438
|
+
setSpeed: Z,
|
|
17439
17439
|
goToAndStop: K,
|
|
17440
|
-
goToAndPlay:
|
|
17440
|
+
goToAndPlay: W,
|
|
17441
17441
|
setDirection: re,
|
|
17442
17442
|
playSegments: H,
|
|
17443
17443
|
setSubframe: J,
|
|
@@ -17508,9 +17508,9 @@ function AsyncSelect({
|
|
|
17508
17508
|
getOptionLabel: j,
|
|
17509
17509
|
emptyLabel: q = "Sin resultados",
|
|
17510
17510
|
loadingLabel: V = "Buscando...",
|
|
17511
|
-
emptyActionLabel:
|
|
17511
|
+
emptyActionLabel: Z,
|
|
17512
17512
|
onEmptyActionClick: K,
|
|
17513
|
-
contentClassName:
|
|
17513
|
+
contentClassName: W,
|
|
17514
17514
|
triggerClassName: re
|
|
17515
17515
|
}) {
|
|
17516
17516
|
const [H, J] = React.useState(!1), [G, Q] = React.useState(""), [te, ne] = React.useState(!1), [ae, le] = React.useState([]), [he, ye] = React.useState(""), me = useDebouncedValue(G, y), de = me.trim().length >= d, ve = React.useRef(null);
|
|
@@ -17576,7 +17576,7 @@ function AsyncSelect({
|
|
|
17576
17576
|
]
|
|
17577
17577
|
}
|
|
17578
17578
|
),
|
|
17579
|
-
H && /* @__PURE__ */ jsxs("div", { className: cn$1("oniratec-async-select",
|
|
17579
|
+
H && /* @__PURE__ */ jsxs("div", { className: cn$1("oniratec-async-select", W), children: [
|
|
17580
17580
|
/* @__PURE__ */ jsxs("div", { className: "oniratec-async-select__search", children: [
|
|
17581
17581
|
/* @__PURE__ */ jsx(
|
|
17582
17582
|
"input",
|
|
@@ -17599,13 +17599,13 @@ function AsyncSelect({
|
|
|
17599
17599
|
de && te && /* @__PURE__ */ jsx("div", { className: "oniratec-async-select__hint", children: V }),
|
|
17600
17600
|
de && !te && ae.length === 0 && /* @__PURE__ */ jsxs("div", { className: "oniratec-async-select__empty", children: [
|
|
17601
17601
|
/* @__PURE__ */ jsx("span", { children: q }),
|
|
17602
|
-
|
|
17602
|
+
Z && K && /* @__PURE__ */ jsx(
|
|
17603
17603
|
"button",
|
|
17604
17604
|
{
|
|
17605
17605
|
type: "button",
|
|
17606
17606
|
className: "oniratec-async-select__empty-action",
|
|
17607
17607
|
onClick: K,
|
|
17608
|
-
children:
|
|
17608
|
+
children: Z
|
|
17609
17609
|
}
|
|
17610
17610
|
)
|
|
17611
17611
|
] }),
|
|
@@ -17654,8 +17654,8 @@ const Toggle = ({
|
|
|
17654
17654
|
className: d,
|
|
17655
17655
|
ariaLabel: y
|
|
17656
17656
|
}) => {
|
|
17657
|
-
const M = t !== void 0, [F, j] = useState(e), q = M ? t : F, V = (
|
|
17658
|
-
M || j(
|
|
17657
|
+
const M = t !== void 0, [F, j] = useState(e), q = M ? t : F, V = (Z) => {
|
|
17658
|
+
M || j(Z), r?.(Z);
|
|
17659
17659
|
};
|
|
17660
17660
|
return /* @__PURE__ */ jsxs(
|
|
17661
17661
|
"label",
|
|
@@ -17673,7 +17673,7 @@ const Toggle = ({
|
|
|
17673
17673
|
checked: q,
|
|
17674
17674
|
disabled: a,
|
|
17675
17675
|
"aria-label": y,
|
|
17676
|
-
onChange: (
|
|
17676
|
+
onChange: (Z) => V(Z.target.checked)
|
|
17677
17677
|
}
|
|
17678
17678
|
),
|
|
17679
17679
|
/* @__PURE__ */ jsx("span", { className: "oniratec-toggle__track", children: /* @__PURE__ */ jsx("span", { className: "oniratec-toggle__thumb" }) }),
|
|
@@ -17716,7 +17716,7 @@ function DataTable({
|
|
|
17716
17716
|
errorContent: q,
|
|
17717
17717
|
isLoading: V = !1
|
|
17718
17718
|
}) {
|
|
17719
|
-
const [
|
|
17719
|
+
const [Z, K] = useState(a), W = i !== void 0 ? i : Z, re = normalizeSortState$1(W), H = useMemo(() => new Map(t.map((te) => [te.key, te])), [t]), J = useMemo(() => {
|
|
17720
17720
|
if (M || !r || re.length === 0) return e;
|
|
17721
17721
|
const te = [...e];
|
|
17722
17722
|
return te.sort((ne, ae) => {
|
|
@@ -17735,7 +17735,7 @@ function DataTable({
|
|
|
17735
17735
|
i === void 0 && K(te), h?.(te);
|
|
17736
17736
|
}, Q = (te, ne) => {
|
|
17737
17737
|
if (!(r && (te.sortable ?? !!(te.sortFn || te.sortValue)))) return;
|
|
17738
|
-
const le = normalizeSortState$1(
|
|
17738
|
+
const le = normalizeSortState$1(W), he = le.find((me) => me.columnId === te.key), ye = he?.direction === "asc" ? "desc" : he?.direction === "desc" ? null : "asc";
|
|
17739
17739
|
if (y === "multi" && ne) {
|
|
17740
17740
|
const me = le.filter((de) => de.columnId !== te.key);
|
|
17741
17741
|
ye && me.push({ columnId: te.key, direction: ye }), G(me.length ? me : null);
|
|
@@ -17855,8 +17855,8 @@ function FiltersPanel({
|
|
|
17855
17855
|
layout: y = "inline",
|
|
17856
17856
|
actions: M
|
|
17857
17857
|
}) {
|
|
17858
|
-
const F = (V,
|
|
17859
|
-
r({ ...e, [V]:
|
|
17858
|
+
const F = (V, Z) => {
|
|
17859
|
+
r({ ...e, [V]: Z });
|
|
17860
17860
|
}, j = h && !!i, q = y === "stacked" ? "grid gap-4" : "grid gap-4 sm:grid-cols-2 lg:grid-cols-3";
|
|
17861
17861
|
return /* @__PURE__ */ jsxs(
|
|
17862
17862
|
"section",
|
|
@@ -17876,7 +17876,7 @@ function FiltersPanel({
|
|
|
17876
17876
|
{
|
|
17877
17877
|
placeholder: V.placeholder,
|
|
17878
17878
|
value: e[V.id] ?? "",
|
|
17879
|
-
onChange: (
|
|
17879
|
+
onChange: (Z) => F(V.id, Z.target.value),
|
|
17880
17880
|
disabled: V.disabled
|
|
17881
17881
|
}
|
|
17882
17882
|
),
|
|
@@ -17884,11 +17884,11 @@ function FiltersPanel({
|
|
|
17884
17884
|
Select,
|
|
17885
17885
|
{
|
|
17886
17886
|
value: e[V.id] ?? "",
|
|
17887
|
-
onValueChange: (
|
|
17887
|
+
onValueChange: (Z) => F(V.id, Z),
|
|
17888
17888
|
disabled: V.disabled,
|
|
17889
17889
|
children: [
|
|
17890
17890
|
/* @__PURE__ */ jsx(SelectTrigger, { children: /* @__PURE__ */ jsx(SelectValue, { placeholder: V.placeholder ?? "Seleccionar" }) }),
|
|
17891
|
-
/* @__PURE__ */ jsx(SelectContent, { children: V.options.map((
|
|
17891
|
+
/* @__PURE__ */ jsx(SelectContent, { children: V.options.map((Z) => /* @__PURE__ */ jsx(SelectItem, { value: Z.value, children: Z.label }, Z.value)) })
|
|
17892
17892
|
]
|
|
17893
17893
|
}
|
|
17894
17894
|
),
|
|
@@ -17896,7 +17896,7 @@ function FiltersPanel({
|
|
|
17896
17896
|
AsyncSelect,
|
|
17897
17897
|
{
|
|
17898
17898
|
value: e[V.id] ?? "",
|
|
17899
|
-
onValueChange: (
|
|
17899
|
+
onValueChange: (Z) => F(V.id, Z),
|
|
17900
17900
|
placeholder: V.placeholder,
|
|
17901
17901
|
searchPlaceholder: V.searchPlaceholder,
|
|
17902
17902
|
minChars: V.minChars,
|
|
@@ -17915,7 +17915,7 @@ function FiltersPanel({
|
|
|
17915
17915
|
Toggle,
|
|
17916
17916
|
{
|
|
17917
17917
|
checked: e[V.id] ?? !1,
|
|
17918
|
-
onChange: (
|
|
17918
|
+
onChange: (Z) => F(V.id, Z),
|
|
17919
17919
|
disabled: V.disabled,
|
|
17920
17920
|
ariaLabel: V.label,
|
|
17921
17921
|
label: V.description
|
|
@@ -17925,7 +17925,7 @@ function FiltersPanel({
|
|
|
17925
17925
|
DatePicker,
|
|
17926
17926
|
{
|
|
17927
17927
|
value: e[V.id] ?? null,
|
|
17928
|
-
onChange: (
|
|
17928
|
+
onChange: (Z) => F(V.id, Z ?? null),
|
|
17929
17929
|
placeholder: V.placeholder,
|
|
17930
17930
|
min: V.min,
|
|
17931
17931
|
max: V.max,
|
|
@@ -17954,22 +17954,22 @@ function FiltersModal({
|
|
|
17954
17954
|
className: M
|
|
17955
17955
|
}) {
|
|
17956
17956
|
const F = useId$1(), j = e ? `${F}-description` : void 0, q = i, V = useCallback(
|
|
17957
|
-
(
|
|
17958
|
-
a(
|
|
17957
|
+
(Z) => {
|
|
17958
|
+
a(Z);
|
|
17959
17959
|
},
|
|
17960
17960
|
[a]
|
|
17961
17961
|
);
|
|
17962
17962
|
return useEffect(() => {
|
|
17963
17963
|
if (!q) return;
|
|
17964
|
-
const
|
|
17964
|
+
const Z = (K) => {
|
|
17965
17965
|
K.key === "Escape" && V(!1);
|
|
17966
17966
|
};
|
|
17967
|
-
return window.addEventListener("keydown",
|
|
17967
|
+
return window.addEventListener("keydown", Z), () => window.removeEventListener("keydown", Z);
|
|
17968
17968
|
}, [q, V]), useEffect(() => {
|
|
17969
17969
|
if (!q) return;
|
|
17970
|
-
const
|
|
17970
|
+
const Z = document.body.style.overflow;
|
|
17971
17971
|
return document.body.style.overflow = "hidden", () => {
|
|
17972
|
-
document.body.style.overflow =
|
|
17972
|
+
document.body.style.overflow = Z;
|
|
17973
17973
|
};
|
|
17974
17974
|
}, [q]), q ? /* @__PURE__ */ jsx("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4", children: /* @__PURE__ */ jsxs(
|
|
17975
17975
|
"div",
|
|
@@ -18046,6 +18046,65 @@ function Breadcrumbs({
|
|
|
18046
18046
|
] }, `${h.label}-${d}`);
|
|
18047
18047
|
}) }) });
|
|
18048
18048
|
}
|
|
18049
|
+
const defaultAccept = ".csv,.xlsx";
|
|
18050
|
+
function ImportFileCard({
|
|
18051
|
+
title: t = "Importar datos",
|
|
18052
|
+
description: e = "Sube un fichero CSV o XLSX para ejecutar la importacion.",
|
|
18053
|
+
helperText: r = "El sistema procesara cada fila de forma tolerante.",
|
|
18054
|
+
accept: i = defaultAccept,
|
|
18055
|
+
className: a,
|
|
18056
|
+
actionLabel: h = "Importar",
|
|
18057
|
+
disabled: d = !1,
|
|
18058
|
+
loading: y = !1,
|
|
18059
|
+
summary: M,
|
|
18060
|
+
onImport: F
|
|
18061
|
+
}) {
|
|
18062
|
+
const [j, q] = useState([]), V = j[0] ?? null, Z = useMemo(() => M ? `Resultado: ${M.created} creados, ${M.updated} actualizados, ${M.failed} fallidos` : null, [M]), K = async () => {
|
|
18063
|
+
!V || d || y || await F(V);
|
|
18064
|
+
};
|
|
18065
|
+
return /* @__PURE__ */ jsxs(
|
|
18066
|
+
"section",
|
|
18067
|
+
{
|
|
18068
|
+
className: cn$1(
|
|
18069
|
+
"rounded-xl border border-slate-200 bg-white p-4 shadow-sm space-y-3",
|
|
18070
|
+
a
|
|
18071
|
+
),
|
|
18072
|
+
children: [
|
|
18073
|
+
/* @__PURE__ */ jsxs("header", { className: "space-y-1", children: [
|
|
18074
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-slate-900", children: t }),
|
|
18075
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-slate-600", children: e })
|
|
18076
|
+
] }),
|
|
18077
|
+
/* @__PURE__ */ jsx(
|
|
18078
|
+
FileUpload,
|
|
18079
|
+
{
|
|
18080
|
+
files: j,
|
|
18081
|
+
onFilesChange: q,
|
|
18082
|
+
multiple: !1,
|
|
18083
|
+
accept: i,
|
|
18084
|
+
helperText: r,
|
|
18085
|
+
allowDrop: !0,
|
|
18086
|
+
showPreview: !1,
|
|
18087
|
+
disabled: d || y
|
|
18088
|
+
}
|
|
18089
|
+
),
|
|
18090
|
+
Z && /* @__PURE__ */ jsx("p", { className: "text-sm text-slate-700", children: Z }),
|
|
18091
|
+
/* @__PURE__ */ jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx(
|
|
18092
|
+
Button,
|
|
18093
|
+
{
|
|
18094
|
+
type: "button",
|
|
18095
|
+
variant: "primary",
|
|
18096
|
+
onClick: () => {
|
|
18097
|
+
K();
|
|
18098
|
+
},
|
|
18099
|
+
disabled: !V || d,
|
|
18100
|
+
loading: y,
|
|
18101
|
+
children: h
|
|
18102
|
+
}
|
|
18103
|
+
) })
|
|
18104
|
+
]
|
|
18105
|
+
}
|
|
18106
|
+
);
|
|
18107
|
+
}
|
|
18049
18108
|
function ThemeProvider({
|
|
18050
18109
|
mode: t = "light",
|
|
18051
18110
|
theme: e = "onira",
|
|
@@ -20804,10 +20863,10 @@ function deepEqual(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
20804
20863
|
function useWatch(t) {
|
|
20805
20864
|
const e = useFormContext(), { control: r = e.control, name: i, defaultValue: a, disabled: h, exact: d, compute: y } = t || {}, M = React__default.useRef(a), F = React__default.useRef(y), j = React__default.useRef(void 0), q = React__default.useRef(r), V = React__default.useRef(i);
|
|
20806
20865
|
F.current = y;
|
|
20807
|
-
const [
|
|
20866
|
+
const [Z, K] = React__default.useState(() => {
|
|
20808
20867
|
const Q = r._getWatch(i, M.current);
|
|
20809
20868
|
return F.current ? F.current(Q) : Q;
|
|
20810
|
-
}),
|
|
20869
|
+
}), W = React__default.useCallback((Q) => {
|
|
20811
20870
|
const te = generateWatchOutput(i, r._names, Q || r._formValues, !1, M.current);
|
|
20812
20871
|
return F.current ? F.current(te) : te;
|
|
20813
20872
|
}, [r._formValues, r._names, i]), re = React__default.useCallback((Q) => {
|
|
@@ -20834,9 +20893,9 @@ function useWatch(t) {
|
|
|
20834
20893
|
if (h)
|
|
20835
20894
|
return null;
|
|
20836
20895
|
const Q = !H && !deepEqual(J, i);
|
|
20837
|
-
return H || Q ?
|
|
20838
|
-
}, [h, H, i, J,
|
|
20839
|
-
return G !== null ? G :
|
|
20896
|
+
return H || Q ? W() : null;
|
|
20897
|
+
}, [h, H, i, J, W]);
|
|
20898
|
+
return G !== null ? G : Z;
|
|
20840
20899
|
}
|
|
20841
20900
|
function useController(t) {
|
|
20842
20901
|
const e = useFormContext(), { name: r, disabled: i, control: a = e.control, shouldUnregister: h, defaultValue: d, exact: y = !0 } = t, M = isNameInFieldArray(a._names.array, r), F = React__default.useMemo(() => get(a._formValues, r, get(a._defaultValues, r, d)), [a, r, d]), j = useWatch({
|
|
@@ -20848,13 +20907,13 @@ function useController(t) {
|
|
|
20848
20907
|
control: a,
|
|
20849
20908
|
name: r,
|
|
20850
20909
|
exact: y
|
|
20851
|
-
}), V = React__default.useRef(t),
|
|
20910
|
+
}), V = React__default.useRef(t), Z = React__default.useRef(void 0), K = React__default.useRef(a.register(r, {
|
|
20852
20911
|
...t.rules,
|
|
20853
20912
|
value: j,
|
|
20854
20913
|
...isBoolean(t.disabled) ? { disabled: t.disabled } : {}
|
|
20855
20914
|
}));
|
|
20856
20915
|
V.current = t;
|
|
20857
|
-
const
|
|
20916
|
+
const W = React__default.useMemo(() => Object.defineProperties({}, {
|
|
20858
20917
|
invalid: {
|
|
20859
20918
|
enumerable: !0,
|
|
20860
20919
|
get: () => !!get(q.errors, r)
|
|
@@ -20904,7 +20963,7 @@ function useController(t) {
|
|
|
20904
20963
|
ref: J
|
|
20905
20964
|
}), [r, i, q.disabled, re, H, J, j]);
|
|
20906
20965
|
return React__default.useEffect(() => {
|
|
20907
|
-
const Q = a._options.shouldUnregister || h, te =
|
|
20966
|
+
const Q = a._options.shouldUnregister || h, te = Z.current;
|
|
20908
20967
|
te && te !== r && !M && a.unregister(te), a.register(r, {
|
|
20909
20968
|
...V.current.rules,
|
|
20910
20969
|
...isBoolean(V.current.disabled) ? { disabled: V.current.disabled } : {}
|
|
@@ -20917,7 +20976,7 @@ function useController(t) {
|
|
|
20917
20976
|
const ae = cloneObject(get(a._options.defaultValues, r, V.current.defaultValue));
|
|
20918
20977
|
set(a._defaultValues, r, ae), isUndefined(get(a._formValues, r)) && set(a._formValues, r, ae);
|
|
20919
20978
|
}
|
|
20920
|
-
return !M && a.register(r),
|
|
20979
|
+
return !M && a.register(r), Z.current = r, () => {
|
|
20921
20980
|
(M ? Q && !a._state.action : Q) ? a.unregister(r) : ne(r, !1);
|
|
20922
20981
|
};
|
|
20923
20982
|
}, [r, a, M, h]), React__default.useEffect(() => {
|
|
@@ -20928,8 +20987,8 @@ function useController(t) {
|
|
|
20928
20987
|
}, [i, r, a]), React__default.useMemo(() => ({
|
|
20929
20988
|
field: G,
|
|
20930
20989
|
formState: q,
|
|
20931
|
-
fieldState:
|
|
20932
|
-
}), [G, q,
|
|
20990
|
+
fieldState: W
|
|
20991
|
+
}), [G, q, W]);
|
|
20933
20992
|
}
|
|
20934
20993
|
const Controller = (t) => t.render(useController(t));
|
|
20935
20994
|
function FieldRenderer({
|
|
@@ -21187,21 +21246,21 @@ function FormFactoryRenderer({
|
|
|
21187
21246
|
/* @__PURE__ */ jsxs("section", { className: "space-y-4", children: [
|
|
21188
21247
|
/* @__PURE__ */ jsx("h3", { className: "oniratec-form__section-title", children: M.title }),
|
|
21189
21248
|
/* @__PURE__ */ jsx("div", { className: "space-y-4", children: M.fields.map((j, q) => {
|
|
21190
|
-
const V = flattenRow(j).filter((
|
|
21249
|
+
const V = flattenRow(j).filter((W) => !W.hidden?.(y));
|
|
21191
21250
|
if (!V.length) return null;
|
|
21192
|
-
const
|
|
21251
|
+
const Z = V.reduce((W, re) => W + (re.colSpan ?? 1), 0), K = Z > 1 ? cn$1(
|
|
21193
21252
|
"grid gap-4",
|
|
21194
|
-
|
|
21195
|
-
|
|
21196
|
-
|
|
21253
|
+
Z === 2 && "grid-cols-2",
|
|
21254
|
+
Z === 3 && "grid-cols-3",
|
|
21255
|
+
Z === 4 && "grid-cols-4"
|
|
21197
21256
|
) : "";
|
|
21198
|
-
return /* @__PURE__ */ jsx("div", { className: K, children: V.map((
|
|
21257
|
+
return /* @__PURE__ */ jsx("div", { className: K, children: V.map((W) => /* @__PURE__ */ jsx(
|
|
21199
21258
|
"div",
|
|
21200
21259
|
{
|
|
21201
|
-
className:
|
|
21202
|
-
children: /* @__PURE__ */ jsx(FieldRenderer, { form: e, field:
|
|
21260
|
+
className: W.colSpan ? `col-span-${W.colSpan}` : void 0,
|
|
21261
|
+
children: /* @__PURE__ */ jsx(FieldRenderer, { form: e, field: W })
|
|
21203
21262
|
},
|
|
21204
|
-
|
|
21263
|
+
W.name
|
|
21205
21264
|
)) }, q);
|
|
21206
21265
|
}) })
|
|
21207
21266
|
] }, M.title),
|
|
@@ -21335,6 +21394,7 @@ export {
|
|
|
21335
21394
|
FiltersModal,
|
|
21336
21395
|
FiltersPanel,
|
|
21337
21396
|
FormFactoryRenderer,
|
|
21397
|
+
ImportFileCard,
|
|
21338
21398
|
Input,
|
|
21339
21399
|
Logo,
|
|
21340
21400
|
NotFoundState,
|