@oniratec/onira-react-ui 1.3.1 → 1.3.2
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 +4 -6
- package/dist/index.js +954 -958
- package/dist/index.js.map +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(Z.Provider, { value: re, children:
|
|
651
|
+
const { scope: V, children: W, ...K } = q, Z = V?.[t]?.[M] || y, re = React.useMemo(() => K, Object.values(K));
|
|
652
|
+
return /* @__PURE__ */ jsx(Z.Provider, { value: re, children: W });
|
|
653
653
|
};
|
|
654
654
|
F.displayName = h + "Provider";
|
|
655
655
|
function j(q, V) {
|
|
656
|
-
const
|
|
656
|
+
const W = V?.[t]?.[M] || y, K = React.useContext(W);
|
|
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, [, W] = React.useState({}), K = useComposedRefs(e, (ae) => q(ae)), Z = Array.from(F.layers), [re] = [...F.layersWithOutsidePointerEventsDisabled].slice(-1), H = Z.indexOf(re), J = j ? Z.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 = () => W({});
|
|
768
768
|
return document.addEventListener(CONTEXT_UPDATE, ae), () => document.removeEventListener(CONTEXT_UPDATE, ae);
|
|
769
769
|
}, []), /* @__PURE__ */ jsx(
|
|
770
770
|
Primitive.div,
|
|
@@ -772,7 +772,7 @@ var DISMISSABLE_LAYER_NAME = "DismissableLayer", CONTEXT_UPDATE = "dismissableLa
|
|
|
772
772
|
...M,
|
|
773
773
|
ref: K,
|
|
774
774
|
style: {
|
|
775
|
-
pointerEvents:
|
|
775
|
+
pointerEvents: G ? Q ? "auto" : "none" : void 0,
|
|
776
776
|
...t.style
|
|
777
777
|
},
|
|
778
778
|
onFocusCapture: composeEventHandlers(t.onFocusCapture, ne.onFocusCapture),
|
|
@@ -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, (Z) => M(Z)),
|
|
872
|
+
} = t, [y, M] = React.useState(null), F = useCallbackRef$1(a), j = useCallbackRef$1(h), q = React.useRef(null), V = useComposedRefs(e, (Z) => M(Z)), W = React.useRef({
|
|
873
873
|
paused: !1,
|
|
874
874
|
pause() {
|
|
875
875
|
this.paused = !0;
|
|
@@ -880,51 +880,51 @@ var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount", AUTOFOCUS_ON_UNMOUNT = "
|
|
|
880
880
|
}).current;
|
|
881
881
|
React.useEffect(() => {
|
|
882
882
|
if (i) {
|
|
883
|
-
let Z = function(
|
|
884
|
-
if (
|
|
885
|
-
const Q =
|
|
883
|
+
let Z = function(G) {
|
|
884
|
+
if (W.paused || !y) return;
|
|
885
|
+
const Q = G.target;
|
|
886
886
|
y.contains(Q) ? q.current = Q : focus(q.current, { select: !0 });
|
|
887
|
-
}, re = function(
|
|
888
|
-
if (
|
|
889
|
-
const Q =
|
|
887
|
+
}, re = function(G) {
|
|
888
|
+
if (W.paused || !y) return;
|
|
889
|
+
const Q = G.relatedTarget;
|
|
890
890
|
Q !== null && (y.contains(Q) || focus(q.current, { select: !0 }));
|
|
891
|
-
},
|
|
891
|
+
}, H = function(G) {
|
|
892
892
|
if (document.activeElement === document.body)
|
|
893
|
-
for (const te of
|
|
893
|
+
for (const te of G)
|
|
894
894
|
te.removedNodes.length > 0 && focus(y);
|
|
895
895
|
};
|
|
896
896
|
document.addEventListener("focusin", Z), document.addEventListener("focusout", re);
|
|
897
|
-
const J = new MutationObserver(
|
|
897
|
+
const J = new MutationObserver(H);
|
|
898
898
|
return y && J.observe(y, { childList: !0, subtree: !0 }), () => {
|
|
899
899
|
document.removeEventListener("focusin", Z), document.removeEventListener("focusout", re), J.disconnect();
|
|
900
900
|
};
|
|
901
901
|
}
|
|
902
|
-
}, [i, y,
|
|
902
|
+
}, [i, y, W.paused]), React.useEffect(() => {
|
|
903
903
|
if (y) {
|
|
904
|
-
focusScopesStack.add(
|
|
904
|
+
focusScopesStack.add(W);
|
|
905
905
|
const Z = document.activeElement;
|
|
906
906
|
if (!y.contains(Z)) {
|
|
907
|
-
const
|
|
908
|
-
y.addEventListener(AUTOFOCUS_ON_MOUNT, F), y.dispatchEvent(
|
|
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 === Z && focus(y));
|
|
909
909
|
}
|
|
910
910
|
return () => {
|
|
911
911
|
y.removeEventListener(AUTOFOCUS_ON_MOUNT, F), setTimeout(() => {
|
|
912
|
-
const
|
|
913
|
-
y.addEventListener(AUTOFOCUS_ON_UNMOUNT, j), y.dispatchEvent(
|
|
912
|
+
const H = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
|
|
913
|
+
y.addEventListener(AUTOFOCUS_ON_UNMOUNT, j), y.dispatchEvent(H), H.defaultPrevented || focus(Z ?? document.body, { select: !0 }), y.removeEventListener(AUTOFOCUS_ON_UNMOUNT, j), focusScopesStack.remove(W);
|
|
914
914
|
}, 0);
|
|
915
915
|
};
|
|
916
916
|
}
|
|
917
|
-
}, [y, F, j,
|
|
917
|
+
}, [y, F, j, W]);
|
|
918
918
|
const K = React.useCallback(
|
|
919
919
|
(Z) => {
|
|
920
|
-
if (!r && !i ||
|
|
921
|
-
const re = Z.key === "Tab" && !Z.altKey && !Z.ctrlKey && !Z.metaKey,
|
|
922
|
-
if (re &&
|
|
923
|
-
const J = Z.currentTarget, [
|
|
924
|
-
|
|
920
|
+
if (!r && !i || W.paused) return;
|
|
921
|
+
const re = Z.key === "Tab" && !Z.altKey && !Z.ctrlKey && !Z.metaKey, H = document.activeElement;
|
|
922
|
+
if (re && H) {
|
|
923
|
+
const J = Z.currentTarget, [G, Q] = getTabbableEdges(J);
|
|
924
|
+
G && Q ? !Z.shiftKey && H === Q ? (Z.preventDefault(), r && focus(G, { select: !0 })) : Z.shiftKey && H === G && (Z.preventDefault(), r && focus(Q, { select: !0 })) : H === J && Z.preventDefault();
|
|
925
925
|
}
|
|
926
926
|
},
|
|
927
|
-
[r, i,
|
|
927
|
+
[r, i, W.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 W;
|
|
1115
1115
|
switch (M) {
|
|
1116
1116
|
case "top":
|
|
1117
|
-
|
|
1117
|
+
W = {
|
|
1118
1118
|
x: j,
|
|
1119
1119
|
y: i.y - a.height
|
|
1120
1120
|
};
|
|
1121
1121
|
break;
|
|
1122
1122
|
case "bottom":
|
|
1123
|
-
|
|
1123
|
+
W = {
|
|
1124
1124
|
x: j,
|
|
1125
1125
|
y: i.y + i.height
|
|
1126
1126
|
};
|
|
1127
1127
|
break;
|
|
1128
1128
|
case "right":
|
|
1129
|
-
|
|
1129
|
+
W = {
|
|
1130
1130
|
x: i.x + i.width,
|
|
1131
1131
|
y: q
|
|
1132
1132
|
};
|
|
1133
1133
|
break;
|
|
1134
1134
|
case "left":
|
|
1135
|
-
|
|
1135
|
+
W = {
|
|
1136
1136
|
x: i.x - a.width,
|
|
1137
1137
|
y: q
|
|
1138
1138
|
};
|
|
1139
1139
|
break;
|
|
1140
1140
|
default:
|
|
1141
|
-
|
|
1141
|
+
W = {
|
|
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
|
+
W[d] -= V * (r && F ? -1 : 1);
|
|
1149
1149
|
break;
|
|
1150
1150
|
case "end":
|
|
1151
|
-
|
|
1151
|
+
W[d] += V * (r && F ? -1 : 1);
|
|
1152
1152
|
break;
|
|
1153
1153
|
}
|
|
1154
|
-
return
|
|
1154
|
+
return W;
|
|
1155
1155
|
}
|
|
1156
1156
|
const computePosition$1 = async (t, e, r) => {
|
|
1157
1157
|
const {
|
|
@@ -1167,23 +1167,23 @@ const computePosition$1 = async (t, e, r) => {
|
|
|
1167
1167
|
}), {
|
|
1168
1168
|
x: j,
|
|
1169
1169
|
y: q
|
|
1170
|
-
} = computeCoordsFromPlacement(F, i, M), V = i,
|
|
1170
|
+
} = computeCoordsFromPlacement(F, i, M), V = i, W = {}, K = 0;
|
|
1171
1171
|
for (let Z = 0; Z < y.length; Z++) {
|
|
1172
1172
|
const {
|
|
1173
1173
|
name: re,
|
|
1174
|
-
fn:
|
|
1174
|
+
fn: H
|
|
1175
1175
|
} = y[Z], {
|
|
1176
1176
|
x: J,
|
|
1177
|
-
y:
|
|
1177
|
+
y: G,
|
|
1178
1178
|
data: Q,
|
|
1179
1179
|
reset: te
|
|
1180
|
-
} = await
|
|
1180
|
+
} = await H({
|
|
1181
1181
|
x: j,
|
|
1182
1182
|
y: q,
|
|
1183
1183
|
initialPlacement: i,
|
|
1184
1184
|
placement: V,
|
|
1185
1185
|
strategy: a,
|
|
1186
|
-
middlewareData:
|
|
1186
|
+
middlewareData: W,
|
|
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 =
|
|
1195
|
-
...
|
|
1194
|
+
j = J ?? j, q = G ?? q, W = {
|
|
1195
|
+
...W,
|
|
1196
1196
|
[re]: {
|
|
1197
|
-
...
|
|
1197
|
+
...W[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({
|
|
@@ -1211,7 +1211,7 @@ const computePosition$1 = async (t, e, r) => {
|
|
|
1211
1211
|
y: q,
|
|
1212
1212
|
placement: V,
|
|
1213
1213
|
strategy: a,
|
|
1214
|
-
middlewareData:
|
|
1214
|
+
middlewareData: W
|
|
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: W = 0
|
|
1233
|
+
} = evaluate(e, t), K = getPaddingObject(W), 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,
|
|
@@ -1240,7 +1240,7 @@ async function detectOverflow(t, e) {
|
|
|
1240
1240
|
y: a,
|
|
1241
1241
|
width: d.floating.width,
|
|
1242
1242
|
height: d.floating.height
|
|
1243
|
-
} : d.reference,
|
|
1243
|
+
} : d.reference, G = await (h.getOffsetParent == null ? void 0 : h.getOffsetParent(y.floating)), Q = await (h.isElement == null ? void 0 : h.isElement(G)) ? await (h.getScale == null ? void 0 : h.getScale(G)) || {
|
|
1244
1244
|
x: 1,
|
|
1245
1245
|
y: 1
|
|
1246
1246
|
} : {
|
|
@@ -1249,14 +1249,14 @@ async function detectOverflow(t, e) {
|
|
|
1249
1249
|
}, te = rectToClientRect(h.convertOffsetParentRelativeRectToViewportRelativeRect ? await h.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1250
1250
|
elements: y,
|
|
1251
1251
|
rect: J,
|
|
1252
|
-
offsetParent:
|
|
1252
|
+
offsetParent: G,
|
|
1253
1253
|
strategy: M
|
|
1254
1254
|
}) : J);
|
|
1255
1255
|
return {
|
|
1256
|
-
top: (
|
|
1257
|
-
bottom: (te.bottom -
|
|
1258
|
-
left: (
|
|
1259
|
-
right: (te.right -
|
|
1256
|
+
top: (H.top - te.top + K.top) / Q.y,
|
|
1257
|
+
bottom: (te.bottom - H.bottom + K.bottom) / Q.y,
|
|
1258
|
+
left: (H.left - te.left + K.left) / Q.x,
|
|
1259
|
+
right: (te.right - H.right + K.right) / Q.x
|
|
1260
1260
|
};
|
|
1261
1261
|
}
|
|
1262
1262
|
const arrow$3 = (t) => ({
|
|
@@ -1280,14 +1280,14 @@ const arrow$3 = (t) => ({
|
|
|
1280
1280
|
const q = getPaddingObject(j), V = {
|
|
1281
1281
|
x: r,
|
|
1282
1282
|
y: i
|
|
1283
|
-
},
|
|
1284
|
-
let ae = ne ? ne[
|
|
1285
|
-
(!ae || !await (d.isElement == null ? void 0 : d.isElement(ne))) && (ae = y.floating[
|
|
1286
|
-
const le = Q / 2 - te / 2, he = ae / 2 - Z[K] / 2 - 1, ye = min(q[
|
|
1283
|
+
}, W = getAlignmentAxis(a), K = getAxisLength(W), Z = await d.getDimensions(F), re = W === "y", H = re ? "top" : "left", J = re ? "bottom" : "right", G = re ? "clientHeight" : "clientWidth", Q = h.reference[K] + h.reference[W] - V[W] - h.floating[K], te = V[W] - h.reference[W], ne = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(F));
|
|
1284
|
+
let ae = ne ? ne[G] : 0;
|
|
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 - Z[K] / 2 - 1, ye = min(q[H], he), me = min(q[J], he), de = ye, ve = ae - Z[K] - me, ge = ae / 2 - Z[K] / 2 + le, fe = clamp(de, ge, ve), se = !M.arrow && getAlignment(a) != null && ge !== fe && h.reference[K] / 2 - (ge < de ? ye : me) - Z[K] / 2 < 0, ce = se ? ge < de ? ge - de : ge - ve : 0;
|
|
1287
1287
|
return {
|
|
1288
|
-
[
|
|
1288
|
+
[W]: V[W] + ce,
|
|
1289
1289
|
data: {
|
|
1290
|
-
[
|
|
1290
|
+
[W]: fe,
|
|
1291
1291
|
centerOffset: ge - fe - ce,
|
|
1292
1292
|
...se && {
|
|
1293
1293
|
alignmentOffset: ce
|
|
@@ -1313,18 +1313,18 @@ const arrow$3 = (t) => ({
|
|
|
1313
1313
|
mainAxis: j = !0,
|
|
1314
1314
|
crossAxis: q = !0,
|
|
1315
1315
|
fallbackPlacements: V,
|
|
1316
|
-
fallbackStrategy:
|
|
1316
|
+
fallbackStrategy: W = "bestFit",
|
|
1317
1317
|
fallbackAxisSideDirection: K = "none",
|
|
1318
1318
|
flipAlignment: Z = !0,
|
|
1319
1319
|
...re
|
|
1320
1320
|
} = evaluate(t, e);
|
|
1321
1321
|
if ((r = h.arrow) != null && r.alignmentOffset)
|
|
1322
1322
|
return {};
|
|
1323
|
-
const
|
|
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 || !Z ? [getOppositePlacement(y)] : getExpandedPlacements(y)), ne = K !== "none";
|
|
1324
1324
|
!V && ne && te.push(...getOppositeAxisPlacements(y, Z, 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
|
-
if (j && he.push(le[
|
|
1327
|
+
if (j && he.push(le[H]), q) {
|
|
1328
1328
|
const ge = getAlignmentSides(a, d, Q);
|
|
1329
1329
|
he.push(le[ge[0]], le[ge[1]]);
|
|
1330
1330
|
}
|
|
@@ -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 (W) {
|
|
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: W,
|
|
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" && (W = y === "end" ? K * -1 : K), M ? {
|
|
1454
|
+
x: W * j,
|
|
1455
1455
|
y: V * F
|
|
1456
1456
|
} : {
|
|
1457
1457
|
x: V * F,
|
|
1458
|
-
y:
|
|
1458
|
+
y: W * j
|
|
1459
1459
|
};
|
|
1460
1460
|
}
|
|
1461
1461
|
const offset$3 = function(t) {
|
|
@@ -1495,11 +1495,11 @@ const offset$3 = function(t) {
|
|
|
1495
1495
|
limiter: y = {
|
|
1496
1496
|
fn: (re) => {
|
|
1497
1497
|
let {
|
|
1498
|
-
x:
|
|
1498
|
+
x: H,
|
|
1499
1499
|
y: J
|
|
1500
1500
|
} = re;
|
|
1501
1501
|
return {
|
|
1502
|
-
x:
|
|
1502
|
+
x: H,
|
|
1503
1503
|
y: J
|
|
1504
1504
|
};
|
|
1505
1505
|
}
|
|
@@ -1509,18 +1509,18 @@ 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 W = F[V], K = F[q];
|
|
1513
1513
|
if (h) {
|
|
1514
|
-
const re = V === "y" ? "top" : "left",
|
|
1515
|
-
|
|
1514
|
+
const re = V === "y" ? "top" : "left", H = V === "y" ? "bottom" : "right", J = W + j[re], G = W - j[H];
|
|
1515
|
+
W = clamp(J, W, G);
|
|
1516
1516
|
}
|
|
1517
1517
|
if (d) {
|
|
1518
|
-
const re = q === "y" ? "top" : "left",
|
|
1519
|
-
K = clamp(J, K,
|
|
1518
|
+
const re = q === "y" ? "top" : "left", H = q === "y" ? "bottom" : "right", J = K + j[re], G = K - j[H];
|
|
1519
|
+
K = clamp(J, K, G);
|
|
1520
1520
|
}
|
|
1521
1521
|
const Z = y.fn({
|
|
1522
1522
|
...e,
|
|
1523
|
-
[V]:
|
|
1523
|
+
[V]: W,
|
|
1524
1524
|
[q]: K
|
|
1525
1525
|
});
|
|
1526
1526
|
return {
|
|
@@ -1554,7 +1554,7 @@ const offset$3 = function(t) {
|
|
|
1554
1554
|
x: r,
|
|
1555
1555
|
y: i
|
|
1556
1556
|
}, q = getSideAxis(a), V = getOppositeAxis(q);
|
|
1557
|
-
let
|
|
1557
|
+
let W = j[V], K = j[q];
|
|
1558
1558
|
const Z = evaluate(y, e), re = typeof Z == "number" ? {
|
|
1559
1559
|
mainAxis: Z,
|
|
1560
1560
|
crossAxis: 0
|
|
@@ -1564,16 +1564,16 @@ const offset$3 = function(t) {
|
|
|
1564
1564
|
...Z
|
|
1565
1565
|
};
|
|
1566
1566
|
if (M) {
|
|
1567
|
-
const
|
|
1568
|
-
|
|
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
|
+
W < Q ? W = Q : W > te && (W = te);
|
|
1569
1569
|
}
|
|
1570
1570
|
if (F) {
|
|
1571
|
-
var
|
|
1572
|
-
const
|
|
1571
|
+
var H, J;
|
|
1572
|
+
const G = V === "y" ? "width" : "height", Q = originSides.has(getSide(a)), te = h.reference[q] - h.floating[G] + (Q && ((H = d.offset) == null ? void 0 : H[q]) || 0) + (Q ? 0 : re.crossAxis), ne = h.reference[q] + h.reference[G] + (Q ? 0 : ((J = d.offset) == null ? void 0 : J[q]) || 0) - (Q ? re.crossAxis : 0);
|
|
1573
1573
|
K < te ? K = te : K > ne && (K = ne);
|
|
1574
1574
|
}
|
|
1575
1575
|
return {
|
|
1576
|
-
[V]:
|
|
1576
|
+
[V]: W,
|
|
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), W = getSideAxis(a) === "y", {
|
|
1597
1597
|
width: K,
|
|
1598
1598
|
height: Z
|
|
1599
1599
|
} = h.floating;
|
|
1600
|
-
let re,
|
|
1601
|
-
q === "top" || q === "bottom" ? (re = q,
|
|
1602
|
-
const J = Z - j.top - j.bottom,
|
|
1600
|
+
let re, H;
|
|
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 = Z - j.top - j.bottom, G = K - j.left - j.right, Q = min(Z - j[re], J), te = min(K - j[H], G), ne = !e.middlewareData.shift;
|
|
1603
1603
|
let ae = Q, le = te;
|
|
1604
|
-
if ((r = e.middlewareData.shift) != null && r.enabled.x && (le =
|
|
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
|
+
W ? le = K - 2 * (ye !== 0 || me !== 0 ? ye + me : max(j.left, j.right)) : ae = Z - 2 * (de !== 0 || ve !== 0 ? de + ve : max(j.top, j.bottom));
|
|
1607
1607
|
}
|
|
1608
1608
|
await M({
|
|
1609
1609
|
...e,
|
|
@@ -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),
|
|
1783
|
+
const V = getWindow(h), W = i && isElement(i) ? getWindow(i) : i;
|
|
1784
1784
|
let K = V, Z = getFrameElement(K);
|
|
1785
|
-
for (; Z && i &&
|
|
1786
|
-
const re = getScale(Z),
|
|
1787
|
-
M *= re.x, F *= re.y, j *= re.x, q *= re.y, M +=
|
|
1785
|
+
for (; Z && i && W !== K; ) {
|
|
1786
|
+
const re = getScale(Z), H = Z.getBoundingClientRect(), J = getComputedStyle$1(Z), G = H.left + (Z.clientLeft + parseFloat(J.paddingLeft)) * re.x, Q = H.top + (Z.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(Z), Z = 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 W = getBoundingClientRect(i);
|
|
1825
|
+
F = getScale(i), j.x = W.x + i.clientLeft, j.y = W.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), W = j.compatMode === "CSS1Compat" && parseFloat(V.marginLeft) + parseFloat(V.marginRight) || 0, K = Math.abs(i.clientWidth - q.clientWidth - W);
|
|
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 W = getBoundingClientRect(e, !0, h, e);
|
|
1957
|
+
M.x = W.x + e.clientLeft, M.y = W.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: W
|
|
2041
2041
|
} = F;
|
|
2042
|
-
if (y || e(), !V || !
|
|
2042
|
+
if (y || e(), !V || !W)
|
|
2043
2043
|
return;
|
|
2044
|
-
const K = floor(q), Z = floor(a.clientWidth - (j + V)), re = floor(a.clientHeight - (q +
|
|
2045
|
-
rootMargin: -K + "px " + -Z + "px " + -re + "px " + -
|
|
2044
|
+
const K = floor(q), Z = floor(a.clientWidth - (j + V)), re = floor(a.clientHeight - (q + W)), H = floor(j), G = {
|
|
2045
|
+
rootMargin: -K + "px " + -Z + "px " + -re + "px " + -H + "px",
|
|
2046
2046
|
threshold: max(0, min(1, M)) || 1
|
|
2047
2047
|
};
|
|
2048
2048
|
let Q = !0;
|
|
@@ -2059,12 +2059,12 @@ function observeMove(t, e) {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
try {
|
|
2061
2061
|
r = new IntersectionObserver(te, {
|
|
2062
|
-
...
|
|
2062
|
+
...G,
|
|
2063
2063
|
// Handle <iframe>s
|
|
2064
2064
|
root: a.ownerDocument
|
|
2065
2065
|
});
|
|
2066
2066
|
} catch {
|
|
2067
|
-
r = new IntersectionObserver(te,
|
|
2067
|
+
r = new IntersectionObserver(te, G);
|
|
2068
2068
|
}
|
|
2069
2069
|
r.observe(t);
|
|
2070
2070
|
}
|
|
@@ -2079,31 +2079,31 @@ function autoUpdate(t, e, r, i) {
|
|
|
2079
2079
|
layoutShift: y = typeof IntersectionObserver == "function",
|
|
2080
2080
|
animationFrame: M = !1
|
|
2081
2081
|
} = i, F = unwrapElement(t), j = a || h ? [...F ? getOverflowAncestors(F) : [], ...getOverflowAncestors(e)] : [];
|
|
2082
|
-
j.forEach((
|
|
2083
|
-
a &&
|
|
2082
|
+
j.forEach((H) => {
|
|
2083
|
+
a && H.addEventListener("scroll", r, {
|
|
2084
2084
|
passive: !0
|
|
2085
|
-
}), h &&
|
|
2085
|
+
}), h && H.addEventListener("resize", r);
|
|
2086
2086
|
});
|
|
2087
2087
|
const q = F && y ? observeMove(F, r) : null;
|
|
2088
|
-
let V = -1,
|
|
2089
|
-
d && (
|
|
2090
|
-
let [J] =
|
|
2091
|
-
J && J.target === F &&
|
|
2092
|
-
var
|
|
2093
|
-
(
|
|
2088
|
+
let V = -1, W = null;
|
|
2089
|
+
d && (W = new ResizeObserver((H) => {
|
|
2090
|
+
let [J] = H;
|
|
2091
|
+
J && J.target === F && W && (W.unobserve(e), cancelAnimationFrame(V), V = requestAnimationFrame(() => {
|
|
2092
|
+
var G;
|
|
2093
|
+
(G = W) == null || G.observe(e);
|
|
2094
2094
|
})), r();
|
|
2095
|
-
}), F && !M &&
|
|
2095
|
+
}), F && !M && W.observe(F), W.observe(e));
|
|
2096
2096
|
let K, Z = M ? getBoundingClientRect(t) : null;
|
|
2097
2097
|
M && re();
|
|
2098
2098
|
function re() {
|
|
2099
|
-
const
|
|
2100
|
-
Z && !rectsAreEqual(Z,
|
|
2099
|
+
const H = getBoundingClientRect(t);
|
|
2100
|
+
Z && !rectsAreEqual(Z, H) && r(), Z = H, K = requestAnimationFrame(re);
|
|
2101
2101
|
}
|
|
2102
2102
|
return r(), () => {
|
|
2103
|
-
var
|
|
2103
|
+
var H;
|
|
2104
2104
|
j.forEach((J) => {
|
|
2105
2105
|
a && J.removeEventListener("scroll", r), h && J.removeEventListener("resize", r);
|
|
2106
|
-
}), q?.(), (
|
|
2106
|
+
}), q?.(), (H = W) == null || H.disconnect(), W = 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,12 +2185,12 @@ function useFloating(t) {
|
|
|
2185
2185
|
placement: e,
|
|
2186
2186
|
middlewareData: {},
|
|
2187
2187
|
isPositioned: !1
|
|
2188
|
-
}), [V,
|
|
2189
|
-
deepEqual$1(V, i) ||
|
|
2190
|
-
const [K, Z] = React.useState(null), [re,
|
|
2188
|
+
}), [V, W] = React.useState(i);
|
|
2189
|
+
deepEqual$1(V, i) || W(i);
|
|
2190
|
+
const [K, Z] = React.useState(null), [re, H] = React.useState(null), J = React.useCallback((ee) => {
|
|
2191
2191
|
ee !== ne.current && (ne.current = ee, Z(ee));
|
|
2192
|
-
}, []),
|
|
2193
|
-
ee !== ae.current && (ae.current = ee,
|
|
2192
|
+
}, []), G = React.useCallback((ee) => {
|
|
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(() => {
|
|
2195
2195
|
if (!ne.current || !ae.current)
|
|
2196
2196
|
return;
|
|
@@ -2233,8 +2233,8 @@ function useFloating(t) {
|
|
|
2233
2233
|
reference: ne,
|
|
2234
2234
|
floating: ae,
|
|
2235
2235
|
setReference: J,
|
|
2236
|
-
setFloating:
|
|
2237
|
-
}), [J,
|
|
2236
|
+
setFloating: G
|
|
2237
|
+
}), [J, G]), se = React.useMemo(() => ({
|
|
2238
2238
|
reference: Q,
|
|
2239
2239
|
floating: te
|
|
2240
2240
|
}), [Q, te]), ce = React.useMemo(() => {
|
|
@@ -2377,10 +2377,10 @@ 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: W = "optimized",
|
|
2381
2381
|
onPlaced: K,
|
|
2382
2382
|
...Z
|
|
2383
|
-
} = t, re = usePopperContext(CONTENT_NAME$1, r), [
|
|
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),
|
|
2386
2386
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -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: W === "always"
|
|
2394
2394
|
}),
|
|
2395
2395
|
elements: {
|
|
2396
2396
|
reference: re.anchor
|
|
@@ -2421,8 +2421,8 @@ var CONTENT_NAME$1 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
2421
2421
|
}, [ce, oe]);
|
|
2422
2422
|
const pe = ee.arrow?.x, xe = ee.arrow?.y, be = ee.arrow?.centerOffset !== 0, [Ce, Te] = React.useState();
|
|
2423
2423
|
return useLayoutEffect2(() => {
|
|
2424
|
-
|
|
2425
|
-
}, [
|
|
2424
|
+
H && Te(window.getComputedStyle(H).zIndex);
|
|
2425
|
+
}, [H]), /* @__PURE__ */ jsx(
|
|
2426
2426
|
"div",
|
|
2427
2427
|
{
|
|
2428
2428
|
ref: ge.setFloating,
|
|
@@ -2461,7 +2461,7 @@ var CONTENT_NAME$1 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
2461
2461
|
"data-side": ie,
|
|
2462
2462
|
"data-align": ue,
|
|
2463
2463
|
...Z,
|
|
2464
|
-
ref:
|
|
2464
|
+
ref: G,
|
|
2465
2465
|
style: {
|
|
2466
2466
|
...Z.style,
|
|
2467
2467
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
@@ -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,
|
|
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, W = (a.arrow?.y ?? 0) + M / 2;
|
|
2539
2539
|
let K = "", Z = "";
|
|
2540
|
-
return F === "bottom" ? (K = d ? q : `${V}px`, Z = `${-M}px`) : F === "top" ? (K = d ? q : `${V}px`, Z = `${i.floating.height + M}px`) : F === "right" ? (K = `${-M}px`, Z = d ? q : `${
|
|
2540
|
+
return F === "bottom" ? (K = d ? q : `${V}px`, Z = `${-M}px`) : F === "top" ? (K = d ? q : `${V}px`, Z = `${i.floating.height + M}px`) : F === "right" ? (K = `${-M}px`, Z = d ? q : `${W}px`) : F === "left" && (K = `${i.floating.width + M}px`, Z = d ? q : `${W}px`), { data: { x: K, y: Z } };
|
|
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, W = getAnimationName(F);
|
|
2583
|
+
t ? M("MOUNT") : W === "none" || F?.display === "none" ? M("UNMOUNT") : M(j && V !== W ? "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 Z = getAnimationName(i.current).includes(CSS.escape(
|
|
2590
|
-
if (
|
|
2588
|
+
const j = e.ownerDocument.defaultView ?? window, q = (W) => {
|
|
2589
|
+
const Z = getAnimationName(i.current).includes(CSS.escape(W.animationName));
|
|
2590
|
+
if (W.target === e && Z && (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 = (W) => {
|
|
2597
|
+
W.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,17 +2691,17 @@ var getDefaultParent = function(t) {
|
|
|
2691
2691
|
j(V);
|
|
2692
2692
|
else
|
|
2693
2693
|
try {
|
|
2694
|
-
var
|
|
2694
|
+
var W = V.getAttribute(i), K = W !== null && W !== "false", Z = (counterMap.get(V) || 0) + 1, re = (h.get(V) || 0) + 1;
|
|
2695
2695
|
counterMap.set(V, Z), h.set(V, re), d.push(V), Z === 1 && K && uncontrolledNodes.set(V, !0), re === 1 && V.setAttribute(r, "true"), K || V.setAttribute(i, "true");
|
|
2696
|
-
} catch (
|
|
2697
|
-
console.error("aria-hidden: cannot operate on ", V,
|
|
2696
|
+
} catch (H) {
|
|
2697
|
+
console.error("aria-hidden: cannot operate on ", V, H);
|
|
2698
2698
|
}
|
|
2699
2699
|
});
|
|
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, W = h.get(q) - 1;
|
|
2704
|
+
counterMap.set(q, V), h.set(q, W), V || (uncontrolledNodes.has(q) || q.removeAttribute(i), uncontrolledNodes.delete(q)), W || 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, W = t.noRelative, K = t.noIsolation, Z = 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: W, noIsolation: K, inert: Z, 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,8 +3067,8 @@ var nonPassive = passiveSupported ? { passive: !1 } : !1, alwaysContainsScroll =
|
|
|
3067
3067
|
do {
|
|
3068
3068
|
if (!y)
|
|
3069
3069
|
break;
|
|
3070
|
-
var
|
|
3071
|
-
(K ||
|
|
3070
|
+
var W = getScrollVariables(t, y), K = W[0], Z = W[1], re = W[2], H = Z - re - h * K;
|
|
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;
|
|
3074
3074
|
} while (
|
|
@@ -3111,7 +3111,7 @@ function RemoveScrollSideCar(t) {
|
|
|
3111
3111
|
var y = React.useCallback(function(Z, re) {
|
|
3112
3112
|
if ("touches" in Z && Z.touches.length === 2 || Z.type === "wheel" && Z.ctrlKey)
|
|
3113
3113
|
return !d.current.allowPinchZoom;
|
|
3114
|
-
var
|
|
3114
|
+
var H = getTouchXY(Z), J = r.current, G = "deltaX" in Z ? Z.deltaX : J[0] - H[0], Q = "deltaY" in Z ? Z.deltaY : J[1] - H[1], te, ne = Z.target, ae = Math.abs(G) > Math.abs(Q) ? "h" : "v";
|
|
3115
3115
|
if ("touches" in Z && 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;
|
|
@@ -3122,32 +3122,32 @@ 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 Z && (
|
|
3125
|
+
if (!i.current && "changedTouches" in Z && (G || Q) && (i.current = te), !te)
|
|
3126
3126
|
return !0;
|
|
3127
3127
|
var de = i.current || te;
|
|
3128
|
-
return handleScroll(de, re, Z, de === "h" ?
|
|
3128
|
+
return handleScroll(de, re, Z, de === "h" ? G : Q);
|
|
3129
3129
|
}, []), M = React.useCallback(function(Z) {
|
|
3130
3130
|
var re = Z;
|
|
3131
3131
|
if (!(!lockStack.length || lockStack[lockStack.length - 1] !== h)) {
|
|
3132
|
-
var
|
|
3133
|
-
return te.name === re.type && (te.target === re.target || re.target === te.shadowParent) && deltaCompare(te.delta,
|
|
3132
|
+
var H = "deltaY" in re ? getDeltaXY(re) : getTouchXY(re), J = e.current.filter(function(te) {
|
|
3133
|
+
return te.name === re.type && (te.target === re.target || re.target === te.shadowParent) && deltaCompare(te.delta, H);
|
|
3134
3134
|
})[0];
|
|
3135
3135
|
if (J && J.should) {
|
|
3136
3136
|
re.cancelable && re.preventDefault();
|
|
3137
3137
|
return;
|
|
3138
3138
|
}
|
|
3139
3139
|
if (!J) {
|
|
3140
|
-
var
|
|
3140
|
+
var G = (d.current.shards || []).map(extractRef).filter(Boolean).filter(function(te) {
|
|
3141
3141
|
return te.contains(re.target);
|
|
3142
|
-
}), Q =
|
|
3142
|
+
}), Q = G.length > 0 ? y(re, G[0]) : !d.current.noIsolation;
|
|
3143
3143
|
Q && re.cancelable && re.preventDefault();
|
|
3144
3144
|
}
|
|
3145
3145
|
}
|
|
3146
|
-
}, []), F = React.useCallback(function(Z, re,
|
|
3147
|
-
var
|
|
3148
|
-
e.current.push(
|
|
3146
|
+
}, []), F = React.useCallback(function(Z, re, H, J) {
|
|
3147
|
+
var G = { name: Z, delta: re, target: H, should: J, shadowParent: getOutermostShadowParent(H) };
|
|
3148
|
+
e.current.push(G), setTimeout(function() {
|
|
3149
3149
|
e.current = e.current.filter(function(Q) {
|
|
3150
|
-
return Q !==
|
|
3150
|
+
return Q !== G;
|
|
3151
3151
|
});
|
|
3152
3152
|
}, 1);
|
|
3153
3153
|
}, []), j = React.useCallback(function(Z) {
|
|
@@ -3168,12 +3168,12 @@ function RemoveScrollSideCar(t) {
|
|
|
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 W = 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
|
+
W ? 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((W) => !W), [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), W = 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
|
+
...W,
|
|
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 W = +r;
|
|
3836
|
+
const K = W % 1e3;
|
|
3837
|
+
return W -= K >= 0 ? K : 1e3 + K, (V - W) / (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 = (W, K) => this.loc.extract(e, W, K), d = (W) => e.isOffsetFixed && e.offset === 0 && W.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, W.format) : "", y = () => i ? meridiemForDateTime(e) : h({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), M = (W, K) => i ? monthForDateTime(e, W) : h(K ? { month: W } : { month: W, day: "numeric" }, "month"), F = (W, K) => i ? weekdayForDateTime(e, W) : h(
|
|
4980
|
+
K ? { weekday: W } : { weekday: W, 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 = (W) => {
|
|
4983
|
+
const K = Formatter.macroTokenToFormatOpts(W);
|
|
4984
|
+
return K ? this.formatWithSystemDefault(e, K) : W;
|
|
4985
|
+
}, q = (W) => i ? eraForDateTime(e, W) : h({ era: W }, "era"), V = (W) => {
|
|
4986
|
+
switch (W) {
|
|
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(W);
|
|
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 &&
|
|
5153
|
+
const W = a(V);
|
|
5154
|
+
if (W) {
|
|
5155
|
+
const K = q.isNegativeDuration && W !== q.largestUnit ? i : 1;
|
|
5156
5156
|
let Z;
|
|
5157
|
-
return this.opts.signMode === "negativeLargestOnly" &&
|
|
5157
|
+
return this.opts.signMode === "negativeLargestOnly" && W !== q.largestUnit ? Z = "never" : this.opts.signMode === "all" ? Z = "always" : Z = "auto", this.num(j.get(W) * K, V.length, Z);
|
|
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 = (W, K = !1) => W !== void 0 && (K || W && j) ? -W : W;
|
|
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 W;
|
|
5289
|
+
return M ? W = obsOffsets[M] : F ? W = 0 : W = signedOffset(j, q), [V, new FixedOffsetZone(W)];
|
|
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}"), W = (re) => ({ regex: RegExp(escapeToken(re.val)), deser: ([H]) => H, literal: !0 }), Z = ((re) => {
|
|
6783
6783
|
if (t.literal)
|
|
6784
|
-
return
|
|
6784
|
+
return W(re);
|
|
6785
6785
|
switch (re.val) {
|
|
6786
6786
|
// era
|
|
6787
6787
|
case "G":
|
|
@@ -6897,7 +6897,7 @@ function unitForToken(t, e) {
|
|
|
6897
6897
|
case " ":
|
|
6898
6898
|
return simple(/[^\S\n\r]/);
|
|
6899
6899
|
default:
|
|
6900
|
-
return
|
|
6900
|
+
return W(re);
|
|
6901
6901
|
}
|
|
6902
6902
|
})(t) || {
|
|
6903
6903
|
invalidReason: MISSING_FTP
|
|
@@ -7501,20 +7501,20 @@ 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), W = q || V, K = h.weekYear || h.weekNumber;
|
|
7505
|
+
if ((W || 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 Z = K || h.weekday && !
|
|
7512
|
-
let re,
|
|
7513
|
-
Z ? (re = orderedWeekUnits,
|
|
7514
|
-
let
|
|
7511
|
+
const Z = K || h.weekday && !W;
|
|
7512
|
+
let re, H, J = tsToObj(M, F);
|
|
7513
|
+
Z ? (re = orderedWeekUnits, H = defaultWeekUnitValues, J = gregorianToWeek(J, d, y)) : j ? (re = orderedOrdinalUnits, H = defaultOrdinalUnitValues, J = gregorianToOrdinal(J)) : (re = orderedUnits, H = defaultUnitValues);
|
|
7514
|
+
let G = !1;
|
|
7515
7515
|
for (const ye of re) {
|
|
7516
7516
|
const me = h[ye];
|
|
7517
|
-
isUndefined$1(me) ?
|
|
7517
|
+
isUndefined$1(me) ? G ? h[ye] = H[ye] : h[ye] = J[ye] : G = !0;
|
|
7518
7518
|
}
|
|
7519
7519
|
const Q = Z ? hasInvalidWeekData(h, d, y) : j ? hasInvalidOrdinalData(h) : hasInvalidGregorianData(h), te = Q || hasInvalidTimeData(h);
|
|
7520
7520
|
if (te)
|
|
@@ -7525,7 +7525,7 @@ class DateTime {
|
|
|
7525
7525
|
o: le,
|
|
7526
7526
|
loc: a
|
|
7527
7527
|
});
|
|
7528
|
-
return h.weekday &&
|
|
7528
|
+
return h.weekday && W && 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, W] = objToTS(q, this.o, this.zone);
|
|
8149
|
+
return clone(this, { ts: V, o: W });
|
|
8150
8150
|
}
|
|
8151
8151
|
/**
|
|
8152
8152
|
* Add a period of time to this DateTime and return the resulting DateTime
|
|
@@ -8914,7 +8914,7 @@ function isValidTimeZone(t) {
|
|
|
8914
8914
|
}
|
|
8915
8915
|
function resolveTimeZone(t) {
|
|
8916
8916
|
if (t && isValidTimeZone(t)) return t;
|
|
8917
|
-
const e = Settings.
|
|
8917
|
+
const e = Settings.defaultZone.name || DEFAULT_TIME_ZONE;
|
|
8918
8918
|
return isValidTimeZone(e) ? e : DEFAULT_TIME_ZONE;
|
|
8919
8919
|
}
|
|
8920
8920
|
function setDefaultTimeZone(t) {
|
|
@@ -8974,10 +8974,10 @@ 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, W] = React.useState(!1), [K, Z] = 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
|
-
}), [J,
|
|
8980
|
+
}), [J, G] = React.useState(null), Q = t !== void 0, te = Q ? t : K, ne = React.useMemo(
|
|
8981
8981
|
() => te ? DateTime.fromJSDate(te, { zone: q }) : null,
|
|
8982
8982
|
[te, q]
|
|
8983
8983
|
), ae = React.useMemo(
|
|
@@ -8989,11 +8989,11 @@ 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 || Z(pe), r?.(pe),
|
|
8992
|
+
Q || Z(pe), r?.(pe), W(!1);
|
|
8993
8993
|
}, me = (oe) => {
|
|
8994
|
-
|
|
8994
|
+
H((pe) => pe.plus({ months: oe }).startOf("month"));
|
|
8995
8995
|
}, de = (oe) => {
|
|
8996
|
-
|
|
8996
|
+
H((pe) => pe.plus({ years: oe }).startOf("month"));
|
|
8997
8997
|
}, ve = (oe) => {
|
|
8998
8998
|
if (!V) return;
|
|
8999
8999
|
const pe = J ?? ne ?? DateTime.now().setZone(q);
|
|
@@ -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(), W(!1);
|
|
9020
9020
|
return;
|
|
9021
9021
|
case "Home":
|
|
9022
9022
|
oe.preventDefault(), xe = pe.startOf("month");
|
|
@@ -9033,12 +9033,12 @@ const DatePicker = React.forwardRef(
|
|
|
9033
9033
|
default:
|
|
9034
9034
|
return;
|
|
9035
9035
|
}
|
|
9036
|
-
xe && (
|
|
9036
|
+
xe && (G(xe), (xe.month !== re.month || xe.year !== re.year) && H(xe.startOf("month")));
|
|
9037
9037
|
};
|
|
9038
9038
|
React.useEffect(() => {
|
|
9039
9039
|
if (V) {
|
|
9040
9040
|
const oe = ne ?? DateTime.now().setZone(q);
|
|
9041
|
-
|
|
9041
|
+
G(oe), H(oe.startOf("month"));
|
|
9042
9042
|
}
|
|
9043
9043
|
}, [V, q, ne]);
|
|
9044
9044
|
const ge = re.year, fe = re.month, se = getDaysInMonth(ge, fe, q), ce = getFirstDayOfMonth(ge, fe, q), ee = DateTime.now().setZone(q), ie = !!ne?.isValid, ue = [];
|
|
@@ -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: W, children: [
|
|
9050
9050
|
/* @__PURE__ */ jsx(Trigger, { asChild: !0, disabled: i, children: /* @__PURE__ */ jsxs(
|
|
9051
9051
|
"button",
|
|
9052
9052
|
{
|
|
@@ -9323,12 +9323,12 @@ function FileUpload({
|
|
|
9323
9323
|
allowDrop: q = !1,
|
|
9324
9324
|
placeholder: V = defaultPlaceholder,
|
|
9325
9325
|
// ✅ NEW
|
|
9326
|
-
showPreview:
|
|
9326
|
+
showPreview: W = !0,
|
|
9327
9327
|
previewMode: K = "auto",
|
|
9328
9328
|
maxPreviewItems: Z = 4,
|
|
9329
9329
|
defaultPreviewUrl: re
|
|
9330
9330
|
}) {
|
|
9331
|
-
const
|
|
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) => {
|
|
9332
9332
|
const oe = a ? ue : ue.slice(0, 1);
|
|
9333
9333
|
me || le(oe), M?.(oe);
|
|
9334
9334
|
}, ge = (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 (!
|
|
9353
|
+
if (!W) return [];
|
|
9354
9354
|
const ue = de.slice(0, Z);
|
|
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, Z, K,
|
|
9360
|
+
}, [de, Z, K, W]);
|
|
9361
9361
|
useEffect(() => () => {
|
|
9362
9362
|
for (const ue of ee) URL.revokeObjectURL(ue.url);
|
|
9363
9363
|
}, [ee]);
|
|
@@ -9416,7 +9416,7 @@ function FileUpload({
|
|
|
9416
9416
|
}
|
|
9417
9417
|
) }) }),
|
|
9418
9418
|
ee.length > 0 && /* @__PURE__ */ jsx("div", { className: "oniratec-file-upload__preview", children: ee.map((ue) => /* @__PURE__ */ jsx("div", { className: "oniratec-file-upload__preview-item", children: /* @__PURE__ */ jsx("img", { src: ue.url, alt: ue.file.name, className: "oniratec-file-upload__preview-img" }) }, ue.key)) }),
|
|
9419
|
-
e && !r && /* @__PURE__ */ jsx("p", { id:
|
|
9419
|
+
e && !r && /* @__PURE__ */ jsx("p", { id: G, className: "oniratec-file-upload__helper", children: e }),
|
|
9420
9420
|
r && /* @__PURE__ */ jsx("p", { id: Q, className: "oniratec-file-upload__error", children: r }),
|
|
9421
9421
|
de.length > 0 && /* @__PURE__ */ jsx("ul", { className: "oniratec-file-upload__list", children: de.map((ue) => /* @__PURE__ */ jsxs("li", { className: "oniratec-file-upload__item", children: [
|
|
9422
9422
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -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(W) {
|
|
9718
9718
|
r({
|
|
9719
|
-
data:
|
|
9719
|
+
data: W
|
|
9720
9720
|
});
|
|
9721
9721
|
}
|
|
9722
9722
|
}, h = {
|
|
9723
|
-
postMessage: function(
|
|
9723
|
+
postMessage: function(W) {
|
|
9724
9724
|
a.onmessage({
|
|
9725
|
-
data:
|
|
9725
|
+
data: W
|
|
9726
9726
|
});
|
|
9727
9727
|
}
|
|
9728
9728
|
};
|
|
9729
9729
|
function d(V) {
|
|
9730
9730
|
if (window.Worker && window.Blob && getWebWorker()) {
|
|
9731
|
-
var
|
|
9731
|
+
var W = new Blob(["var _workerSelf = self; self.onmessage = ", V.toString()], {
|
|
9732
9732
|
type: "text/javascript"
|
|
9733
|
-
}), K = URL.createObjectURL(
|
|
9733
|
+
}), K = URL.createObjectURL(W);
|
|
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(W) {
|
|
9740
9740
|
function K() {
|
|
9741
9741
|
function re(fe, se) {
|
|
9742
9742
|
var ce, ee, ie = fe.length, ue, oe, pe, xe;
|
|
@@ -9751,14 +9751,14 @@ function requireLottie() {
|
|
|
9751
9751
|
for (xe = be[ue].pt.k.length, pe = 0; pe < xe; pe += 1)
|
|
9752
9752
|
be[ue].pt.k[pe].s && te(be[ue].pt.k[pe].s[0]), be[ue].pt.k[pe].e && te(be[ue].pt.k[pe].e[0]);
|
|
9753
9753
|
}
|
|
9754
|
-
ce.ty === 0 ? (ce.layers =
|
|
9754
|
+
ce.ty === 0 ? (ce.layers = G(ce.refId, se), re(ce.layers, se)) : ce.ty === 4 ? Q(ce.shapes) : ce.ty === 5 && ve(ce);
|
|
9755
9755
|
}
|
|
9756
9756
|
}
|
|
9757
|
-
function
|
|
9757
|
+
function H(fe, se) {
|
|
9758
9758
|
if (fe) {
|
|
9759
9759
|
var ce = 0, ee = fe.length;
|
|
9760
9760
|
for (ce = 0; ce < ee; ce += 1)
|
|
9761
|
-
fe[ce].t === 1 && (fe[ce].data.layers =
|
|
9761
|
+
fe[ce].t === 1 && (fe[ce].data.layers = G(fe[ce].data.refId, se), re(fe[ce].data.layers, se));
|
|
9762
9762
|
}
|
|
9763
9763
|
}
|
|
9764
9764
|
function J(fe, se) {
|
|
@@ -9769,7 +9769,7 @@ function requireLottie() {
|
|
|
9769
9769
|
}
|
|
9770
9770
|
return null;
|
|
9771
9771
|
}
|
|
9772
|
-
function
|
|
9772
|
+
function G(fe, se) {
|
|
9773
9773
|
var ce = J(fe, se);
|
|
9774
9774
|
return ce ? ce.layers.__used ? JSON.parse(JSON.stringify(ce.layers)) : (ce.layers.__used = !0, ce.layers) : null;
|
|
9775
9775
|
}
|
|
@@ -9970,7 +9970,7 @@ function requireLottie() {
|
|
|
9970
9970
|
};
|
|
9971
9971
|
})();
|
|
9972
9972
|
function de(fe) {
|
|
9973
|
-
fe.__complete || (ye(fe), ae(fe), le(fe), he(fe), me(fe), re(fe.layers, fe.assets),
|
|
9973
|
+
fe.__complete || (ye(fe), ae(fe), le(fe), he(fe), me(fe), re(fe.layers, fe.assets), H(fe.chars, fe.assets), fe.__complete = !0);
|
|
9974
9974
|
}
|
|
9975
9975
|
function ve(fe) {
|
|
9976
9976
|
fe.t.a.length === 0 && "m" in fe.t.p;
|
|
@@ -9980,10 +9980,10 @@ function requireLottie() {
|
|
|
9980
9980
|
}
|
|
9981
9981
|
if (h.dataManager || (h.dataManager = K()), h.assetLoader || (h.assetLoader = /* @__PURE__ */ (function() {
|
|
9982
9982
|
function re(J) {
|
|
9983
|
-
var
|
|
9984
|
-
return
|
|
9983
|
+
var G = J.getResponseHeader("content-type");
|
|
9984
|
+
return G && J.responseType === "json" && G.indexOf("json") !== -1 || J.response && _typeof$5(J.response) === "object" ? J.response : J.response && typeof J.response == "string" ? JSON.parse(J.response) : J.responseText ? JSON.parse(J.responseText) : null;
|
|
9985
9985
|
}
|
|
9986
|
-
function
|
|
9986
|
+
function H(J, G, Q, te) {
|
|
9987
9987
|
var ne, ae = new XMLHttpRequest();
|
|
9988
9988
|
try {
|
|
9989
9989
|
ae.responseType = "json";
|
|
@@ -10003,61 +10003,61 @@ function requireLottie() {
|
|
|
10003
10003
|
try {
|
|
10004
10004
|
ae.open(["G", "E", "T"].join(""), J, !0);
|
|
10005
10005
|
} catch {
|
|
10006
|
-
ae.open(["G", "E", "T"].join(""),
|
|
10006
|
+
ae.open(["G", "E", "T"].join(""), G + "/" + J, !0);
|
|
10007
10007
|
}
|
|
10008
10008
|
ae.send();
|
|
10009
10009
|
}
|
|
10010
10010
|
return {
|
|
10011
|
-
load:
|
|
10011
|
+
load: H
|
|
10012
10012
|
};
|
|
10013
|
-
})()),
|
|
10014
|
-
h.assetLoader.load(
|
|
10013
|
+
})()), W.data.type === "loadAnimation")
|
|
10014
|
+
h.assetLoader.load(W.data.path, W.data.fullPath, function(re) {
|
|
10015
10015
|
h.dataManager.completeData(re), h.postMessage({
|
|
10016
|
-
id:
|
|
10016
|
+
id: W.data.id,
|
|
10017
10017
|
payload: re,
|
|
10018
10018
|
status: "success"
|
|
10019
10019
|
});
|
|
10020
10020
|
}, function() {
|
|
10021
10021
|
h.postMessage({
|
|
10022
|
-
id:
|
|
10022
|
+
id: W.data.id,
|
|
10023
10023
|
status: "error"
|
|
10024
10024
|
});
|
|
10025
10025
|
});
|
|
10026
|
-
else if (
|
|
10027
|
-
var Z =
|
|
10026
|
+
else if (W.data.type === "complete") {
|
|
10027
|
+
var Z = W.data.animation;
|
|
10028
10028
|
h.dataManager.completeData(Z), h.postMessage({
|
|
10029
|
-
id:
|
|
10029
|
+
id: W.data.id,
|
|
10030
10030
|
payload: Z,
|
|
10031
10031
|
status: "success"
|
|
10032
10032
|
});
|
|
10033
|
-
} else
|
|
10033
|
+
} else W.data.type === "loadData" && h.assetLoader.load(W.data.path, W.data.fullPath, function(re) {
|
|
10034
10034
|
h.postMessage({
|
|
10035
|
-
id:
|
|
10035
|
+
id: W.data.id,
|
|
10036
10036
|
payload: re,
|
|
10037
10037
|
status: "success"
|
|
10038
10038
|
});
|
|
10039
10039
|
}, function() {
|
|
10040
10040
|
h.postMessage({
|
|
10041
|
-
id:
|
|
10041
|
+
id: W.data.id,
|
|
10042
10042
|
status: "error"
|
|
10043
10043
|
});
|
|
10044
10044
|
});
|
|
10045
10045
|
}), i.onmessage = function(V) {
|
|
10046
|
-
var
|
|
10047
|
-
e[K] = null,
|
|
10046
|
+
var W = V.data, K = W.id, Z = e[K];
|
|
10047
|
+
e[K] = null, W.status === "success" ? Z.onComplete(W.payload) : Z.onError && Z.onError();
|
|
10048
10048
|
});
|
|
10049
10049
|
}
|
|
10050
|
-
function M(V,
|
|
10050
|
+
function M(V, W) {
|
|
10051
10051
|
t += 1;
|
|
10052
10052
|
var K = "processId_" + t;
|
|
10053
10053
|
return e[K] = {
|
|
10054
10054
|
onComplete: V,
|
|
10055
|
-
onError:
|
|
10055
|
+
onError: W
|
|
10056
10056
|
}, K;
|
|
10057
10057
|
}
|
|
10058
|
-
function F(V,
|
|
10058
|
+
function F(V, W, K) {
|
|
10059
10059
|
y();
|
|
10060
|
-
var Z = M(
|
|
10060
|
+
var Z = M(W, K);
|
|
10061
10061
|
i.postMessage({
|
|
10062
10062
|
type: "loadAnimation",
|
|
10063
10063
|
path: V,
|
|
@@ -10065,9 +10065,9 @@ function requireLottie() {
|
|
|
10065
10065
|
id: Z
|
|
10066
10066
|
});
|
|
10067
10067
|
}
|
|
10068
|
-
function j(V,
|
|
10068
|
+
function j(V, W, K) {
|
|
10069
10069
|
y();
|
|
10070
|
-
var Z = M(
|
|
10070
|
+
var Z = M(W, K);
|
|
10071
10071
|
i.postMessage({
|
|
10072
10072
|
type: "loadData",
|
|
10073
10073
|
path: V,
|
|
@@ -10075,9 +10075,9 @@ function requireLottie() {
|
|
|
10075
10075
|
id: Z
|
|
10076
10076
|
});
|
|
10077
10077
|
}
|
|
10078
|
-
function q(V,
|
|
10078
|
+
function q(V, W, K) {
|
|
10079
10079
|
y();
|
|
10080
|
-
var Z = M(
|
|
10080
|
+
var Z = M(W, K);
|
|
10081
10081
|
i.postMessage({
|
|
10082
10082
|
type: "complete",
|
|
10083
10083
|
animation: V,
|
|
@@ -10091,10 +10091,10 @@ function requireLottie() {
|
|
|
10091
10091
|
};
|
|
10092
10092
|
})(), ImagePreloader = (function() {
|
|
10093
10093
|
var t = (function() {
|
|
10094
|
-
var
|
|
10095
|
-
|
|
10096
|
-
var J =
|
|
10097
|
-
return J.fillStyle = "rgba(0,0,0,0)", J.fillRect(0, 0, 1, 1),
|
|
10094
|
+
var H = createTag("canvas");
|
|
10095
|
+
H.width = 1, H.height = 1;
|
|
10096
|
+
var J = H.getContext("2d");
|
|
10097
|
+
return J.fillStyle = "rgba(0,0,0,0)", J.fillRect(0, 0, 1, 1), H;
|
|
10098
10098
|
})();
|
|
10099
10099
|
function e() {
|
|
10100
10100
|
this.loadedAssets += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
|
|
@@ -10102,70 +10102,70 @@ function requireLottie() {
|
|
|
10102
10102
|
function r() {
|
|
10103
10103
|
this.loadedFootagesCount += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
|
|
10104
10104
|
}
|
|
10105
|
-
function i(
|
|
10105
|
+
function i(H, J, G) {
|
|
10106
10106
|
var Q = "";
|
|
10107
|
-
if (
|
|
10108
|
-
Q =
|
|
10107
|
+
if (H.e)
|
|
10108
|
+
Q = H.p;
|
|
10109
10109
|
else if (J) {
|
|
10110
|
-
var te =
|
|
10110
|
+
var te = H.p;
|
|
10111
10111
|
te.indexOf("images/") !== -1 && (te = te.split("/")[1]), Q = J + te;
|
|
10112
10112
|
} else
|
|
10113
|
-
Q =
|
|
10113
|
+
Q = G, Q += H.u ? H.u : "", Q += H.p;
|
|
10114
10114
|
return Q;
|
|
10115
10115
|
}
|
|
10116
|
-
function a(
|
|
10117
|
-
var J = 0,
|
|
10118
|
-
var Q =
|
|
10119
|
-
(Q.width || J > 500) && (this._imageLoaded(), clearInterval(
|
|
10116
|
+
function a(H) {
|
|
10117
|
+
var J = 0, G = setInterval((function() {
|
|
10118
|
+
var Q = H.getBBox();
|
|
10119
|
+
(Q.width || J > 500) && (this._imageLoaded(), clearInterval(G)), J += 1;
|
|
10120
10120
|
}).bind(this), 50);
|
|
10121
10121
|
}
|
|
10122
|
-
function h(
|
|
10123
|
-
var J = i(
|
|
10124
|
-
isSafari ? this.testImageLoaded(
|
|
10122
|
+
function h(H) {
|
|
10123
|
+
var J = i(H, this.assetsPath, this.path), G = createNS("image");
|
|
10124
|
+
isSafari ? this.testImageLoaded(G) : G.addEventListener("load", this._imageLoaded, !1), G.addEventListener("error", (function() {
|
|
10125
10125
|
Q.img = t, this._imageLoaded();
|
|
10126
|
-
}).bind(this), !1),
|
|
10126
|
+
}).bind(this), !1), G.setAttributeNS("http://www.w3.org/1999/xlink", "href", J), this._elementHelper.append ? this._elementHelper.append(G) : this._elementHelper.appendChild(G);
|
|
10127
10127
|
var Q = {
|
|
10128
|
-
img:
|
|
10129
|
-
assetData:
|
|
10128
|
+
img: G,
|
|
10129
|
+
assetData: H
|
|
10130
10130
|
};
|
|
10131
10131
|
return Q;
|
|
10132
10132
|
}
|
|
10133
|
-
function d(
|
|
10134
|
-
var J = i(
|
|
10135
|
-
|
|
10133
|
+
function d(H) {
|
|
10134
|
+
var J = i(H, this.assetsPath, this.path), G = createTag("img");
|
|
10135
|
+
G.crossOrigin = "anonymous", G.addEventListener("load", this._imageLoaded, !1), G.addEventListener("error", (function() {
|
|
10136
10136
|
Q.img = t, this._imageLoaded();
|
|
10137
|
-
}).bind(this), !1),
|
|
10137
|
+
}).bind(this), !1), G.src = J;
|
|
10138
10138
|
var Q = {
|
|
10139
|
-
img:
|
|
10140
|
-
assetData:
|
|
10139
|
+
img: G,
|
|
10140
|
+
assetData: H
|
|
10141
10141
|
};
|
|
10142
10142
|
return Q;
|
|
10143
10143
|
}
|
|
10144
|
-
function y(
|
|
10144
|
+
function y(H) {
|
|
10145
10145
|
var J = {
|
|
10146
|
-
assetData:
|
|
10147
|
-
},
|
|
10148
|
-
return dataManager.loadData(
|
|
10146
|
+
assetData: H
|
|
10147
|
+
}, G = i(H, this.assetsPath, this.path);
|
|
10148
|
+
return dataManager.loadData(G, (function(Q) {
|
|
10149
10149
|
J.img = Q, this._footageLoaded();
|
|
10150
10150
|
}).bind(this), (function() {
|
|
10151
10151
|
J.img = {}, this._footageLoaded();
|
|
10152
10152
|
}).bind(this)), J;
|
|
10153
10153
|
}
|
|
10154
|
-
function M(
|
|
10154
|
+
function M(H, J) {
|
|
10155
10155
|
this.imagesLoadedCb = J;
|
|
10156
|
-
var
|
|
10157
|
-
for (
|
|
10158
|
-
G
|
|
10156
|
+
var G, Q = H.length;
|
|
10157
|
+
for (G = 0; G < Q; G += 1)
|
|
10158
|
+
H[G].layers || (!H[G].t || H[G].t === "seq" ? (this.totalImages += 1, this.images.push(this._createImageData(H[G]))) : H[G].t === 3 && (this.totalFootages += 1, this.images.push(this.createFootageData(H[G]))));
|
|
10159
10159
|
}
|
|
10160
|
-
function F(
|
|
10161
|
-
this.path =
|
|
10160
|
+
function F(H) {
|
|
10161
|
+
this.path = H || "";
|
|
10162
10162
|
}
|
|
10163
|
-
function j(
|
|
10164
|
-
this.assetsPath =
|
|
10163
|
+
function j(H) {
|
|
10164
|
+
this.assetsPath = H || "";
|
|
10165
10165
|
}
|
|
10166
|
-
function q(
|
|
10167
|
-
for (var J = 0,
|
|
10168
|
-
if (this.images[J].assetData ===
|
|
10166
|
+
function q(H) {
|
|
10167
|
+
for (var J = 0, G = this.images.length; J < G; ) {
|
|
10168
|
+
if (this.images[J].assetData === H)
|
|
10169
10169
|
return this.images[J].img;
|
|
10170
10170
|
J += 1;
|
|
10171
10171
|
}
|
|
@@ -10174,14 +10174,14 @@ function requireLottie() {
|
|
|
10174
10174
|
function V() {
|
|
10175
10175
|
this.imagesLoadedCb = null, this.images.length = 0;
|
|
10176
10176
|
}
|
|
10177
|
-
function
|
|
10177
|
+
function W() {
|
|
10178
10178
|
return this.totalImages === this.loadedAssets;
|
|
10179
10179
|
}
|
|
10180
10180
|
function K() {
|
|
10181
10181
|
return this.totalFootages === this.loadedFootagesCount;
|
|
10182
10182
|
}
|
|
10183
|
-
function Z(
|
|
10184
|
-
|
|
10183
|
+
function Z(H, J) {
|
|
10184
|
+
H === "svg" ? (this._elementHelper = J, this._createImageData = this.createImageData.bind(this)) : this._createImageData = this.createImgData.bind(this);
|
|
10185
10185
|
}
|
|
10186
10186
|
function re() {
|
|
10187
10187
|
this._imageLoaded = e.bind(this), this._footageLoaded = r.bind(this), this.testImageLoaded = a.bind(this), this.createFootageData = y.bind(this), this.assetsPath = "", this.path = "", this.totalImages = 0, this.totalFootages = 0, this.loadedAssets = 0, this.loadedFootagesCount = 0, this.imagesLoadedCb = null, this.images = [];
|
|
@@ -10190,7 +10190,7 @@ function requireLottie() {
|
|
|
10190
10190
|
loadAssets: M,
|
|
10191
10191
|
setAssetsPath: j,
|
|
10192
10192
|
setPath: F,
|
|
10193
|
-
loadedImages:
|
|
10193
|
+
loadedImages: W,
|
|
10194
10194
|
loadedFootages: K,
|
|
10195
10195
|
destroy: V,
|
|
10196
10196
|
getAsset: q,
|
|
@@ -10558,7 +10558,7 @@ function requireLottie() {
|
|
|
10558
10558
|
animation: se
|
|
10559
10559
|
}), i += 1;
|
|
10560
10560
|
}
|
|
10561
|
-
function
|
|
10561
|
+
function W(se) {
|
|
10562
10562
|
var ce = new AnimationItem();
|
|
10563
10563
|
return V(ce, null), ce.setParams(se), ce;
|
|
10564
10564
|
}
|
|
@@ -10577,16 +10577,16 @@ function requireLottie() {
|
|
|
10577
10577
|
for (ce = 0; ce < i; ce += 1)
|
|
10578
10578
|
e[ce].animation.play(se);
|
|
10579
10579
|
}
|
|
10580
|
-
function
|
|
10580
|
+
function H(se) {
|
|
10581
10581
|
var ce = se - r, ee;
|
|
10582
10582
|
for (ee = 0; ee < i; ee += 1)
|
|
10583
10583
|
e[ee].animation.advanceTime(ce);
|
|
10584
|
-
r = se, a && !d ? window.requestAnimationFrame(
|
|
10584
|
+
r = se, a && !d ? window.requestAnimationFrame(H) : h = !0;
|
|
10585
10585
|
}
|
|
10586
10586
|
function J(se) {
|
|
10587
|
-
r = se, window.requestAnimationFrame(
|
|
10587
|
+
r = se, window.requestAnimationFrame(H);
|
|
10588
10588
|
}
|
|
10589
|
-
function
|
|
10589
|
+
function G(se) {
|
|
10590
10590
|
var ce;
|
|
10591
10591
|
for (ce = 0; ce < i; ce += 1)
|
|
10592
10592
|
e[ce].animation.pause(se);
|
|
@@ -10652,76 +10652,76 @@ 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 = W, t.setSpeed = K, t.setDirection = Z, 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;
|
|
10659
10659
|
var e = {};
|
|
10660
|
-
function r(J,
|
|
10661
|
-
var ae = ne || ("bez_" + J + "_" +
|
|
10660
|
+
function r(J, G, Q, te, ne) {
|
|
10661
|
+
var ae = ne || ("bez_" + J + "_" + G + "_" + Q + "_" + te).replace(/\./g, "p");
|
|
10662
10662
|
if (e[ae])
|
|
10663
10663
|
return e[ae];
|
|
10664
|
-
var le = new
|
|
10664
|
+
var le = new H([J, G, Q, te]);
|
|
10665
10665
|
return e[ae] = le, le;
|
|
10666
10666
|
}
|
|
10667
10667
|
var i = 4, a = 1e-3, h = 1e-7, d = 10, y = 11, M = 1 / (y - 1), F = typeof Float32Array == "function";
|
|
10668
|
-
function j(J,
|
|
10669
|
-
return 1 - 3 *
|
|
10668
|
+
function j(J, G) {
|
|
10669
|
+
return 1 - 3 * G + 3 * J;
|
|
10670
10670
|
}
|
|
10671
|
-
function q(J,
|
|
10672
|
-
return 3 *
|
|
10671
|
+
function q(J, G) {
|
|
10672
|
+
return 3 * G - 6 * J;
|
|
10673
10673
|
}
|
|
10674
10674
|
function V(J) {
|
|
10675
10675
|
return 3 * J;
|
|
10676
10676
|
}
|
|
10677
|
-
function
|
|
10678
|
-
return ((j(
|
|
10677
|
+
function W(J, G, Q) {
|
|
10678
|
+
return ((j(G, Q) * J + q(G, Q)) * J + V(G)) * J;
|
|
10679
10679
|
}
|
|
10680
|
-
function K(J,
|
|
10681
|
-
return 3 * j(
|
|
10680
|
+
function K(J, G, Q) {
|
|
10681
|
+
return 3 * j(G, Q) * J * J + 2 * q(G, Q) * J + V(G);
|
|
10682
10682
|
}
|
|
10683
|
-
function Z(J,
|
|
10683
|
+
function Z(J, G, Q, te, ne) {
|
|
10684
10684
|
var ae, le, he = 0;
|
|
10685
10685
|
do
|
|
10686
|
-
le =
|
|
10686
|
+
le = G + (Q - G) / 2, ae = W(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
|
}
|
|
10690
|
-
function re(J,
|
|
10690
|
+
function re(J, G, Q, te) {
|
|
10691
10691
|
for (var ne = 0; ne < i; ++ne) {
|
|
10692
|
-
var ae = K(
|
|
10693
|
-
if (ae === 0) return
|
|
10694
|
-
var le =
|
|
10695
|
-
|
|
10692
|
+
var ae = K(G, Q, te);
|
|
10693
|
+
if (ae === 0) return G;
|
|
10694
|
+
var le = W(G, Q, te) - J;
|
|
10695
|
+
G -= le / ae;
|
|
10696
10696
|
}
|
|
10697
|
-
return
|
|
10697
|
+
return G;
|
|
10698
10698
|
}
|
|
10699
|
-
function
|
|
10699
|
+
function H(J) {
|
|
10700
10700
|
this._p = J, this._mSampleValues = F ? new Float32Array(y) : new Array(y), this._precomputed = !1, this.get = this.get.bind(this);
|
|
10701
10701
|
}
|
|
10702
|
-
return
|
|
10703
|
-
get: function(
|
|
10702
|
+
return H.prototype = {
|
|
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 ?
|
|
10705
|
+
return this._precomputed || this._precompute(), Q === te && ne === ae ? G : G === 0 ? 0 : G === 1 ? 1 : W(this._getTForX(G), te, ae);
|
|
10706
10706
|
},
|
|
10707
10707
|
// Private part
|
|
10708
10708
|
_precompute: function() {
|
|
10709
|
-
var
|
|
10710
|
-
this._precomputed = !0, (
|
|
10709
|
+
var G = this._p[0], Q = this._p[1], te = this._p[2], ne = this._p[3];
|
|
10710
|
+
this._precomputed = !0, (G !== Q || te !== ne) && this._calcSampleValues();
|
|
10711
10711
|
},
|
|
10712
10712
|
_calcSampleValues: function() {
|
|
10713
|
-
for (var
|
|
10714
|
-
this._mSampleValues[te] =
|
|
10713
|
+
for (var G = this._p[0], Q = this._p[2], te = 0; te < y; ++te)
|
|
10714
|
+
this._mSampleValues[te] = W(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.
|
|
10718
10718
|
*/
|
|
10719
|
-
_getTForX: function(
|
|
10720
|
-
for (var Q = this._p[0], te = this._p[2], ne = this._mSampleValues, ae = 0, le = 1, he = y - 1; le !== he && ne[le] <=
|
|
10719
|
+
_getTForX: function(G) {
|
|
10720
|
+
for (var Q = this._p[0], te = this._p[2], ne = this._mSampleValues, ae = 0, le = 1, he = y - 1; le !== he && ne[le] <= G; ++le)
|
|
10721
10721
|
ae += M;
|
|
10722
10722
|
--le;
|
|
10723
|
-
var ye = (
|
|
10724
|
-
return de >= a ? re(
|
|
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 : Z(G, ae, ae + M, Q, te);
|
|
10725
10725
|
}
|
|
10726
10726
|
}, t;
|
|
10727
10727
|
})(), pooling = /* @__PURE__ */ (function() {
|
|
@@ -10772,81 +10772,81 @@ function requireLottie() {
|
|
|
10772
10772
|
})();
|
|
10773
10773
|
function bezFunction() {
|
|
10774
10774
|
var t = Math;
|
|
10775
|
-
function e(V,
|
|
10776
|
-
var J = V * Z +
|
|
10775
|
+
function e(V, W, K, Z, re, H) {
|
|
10776
|
+
var J = V * Z + W * re + K * H - re * Z - H * V - K * W;
|
|
10777
10777
|
return J > -1e-3 && J < 1e-3;
|
|
10778
10778
|
}
|
|
10779
|
-
function r(V,
|
|
10780
|
-
if (K === 0 &&
|
|
10781
|
-
return e(V,
|
|
10782
|
-
var te = t.sqrt(t.pow(Z - V, 2) + t.pow(re -
|
|
10779
|
+
function r(V, W, K, Z, re, H, J, G, Q) {
|
|
10780
|
+
if (K === 0 && H === 0 && Q === 0)
|
|
10781
|
+
return e(V, W, Z, re, J, G);
|
|
10782
|
+
var te = t.sqrt(t.pow(Z - V, 2) + t.pow(re - W, 2) + t.pow(H - K, 2)), ne = t.sqrt(t.pow(J - V, 2) + t.pow(G - W, 2) + t.pow(Q - K, 2)), ae = t.sqrt(t.pow(J - Z, 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,
|
|
10787
|
-
var re = getDefaultCurveSegments(),
|
|
10788
|
-
for (
|
|
10789
|
-
for (te =
|
|
10790
|
-
Q = bmPow(1 - te, 3) * V[J] + 3 * bmPow(1 - te, 2) * te * K[J] + 3 * (1 - te) * bmPow(te, 2) * Z[J] + bmPow(te, 3) *
|
|
10791
|
-
ae && (ae = bmSqrt(ae), ne += ae), ye.percents[
|
|
10786
|
+
return function(V, W, K, Z) {
|
|
10787
|
+
var re = getDefaultCurveSegments(), H, J, G, Q, te, ne = 0, ae, le = [], he = [], ye = bezierLengthPool.newElement();
|
|
10788
|
+
for (G = K.length, H = 0; H < re; H += 1) {
|
|
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) * Z[J] + bmPow(te, 3) * W[J], le[J] = Q, he[J] !== null && (ae += bmPow(le[J] - he[J], 2)), he[J] = le[J];
|
|
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
|
|
10798
|
-
for (J = 0; J <
|
|
10799
|
-
Q[J] = i(Z[J], Z[J + 1], re[J],
|
|
10800
|
-
return K &&
|
|
10797
|
+
var W = segmentsLengthPool.newElement(), K = V.c, Z = V.v, re = V.o, H = V.i, J, G = V._length, Q = W.lengths, te = 0;
|
|
10798
|
+
for (J = 0; J < G - 1; J += 1)
|
|
10799
|
+
Q[J] = i(Z[J], Z[J + 1], re[J], H[J + 1]), te += Q[J].addedLength;
|
|
10800
|
+
return K && G && (Q[J] = i(Z[J], Z[0], re[J], H[0]), te += Q[J].addedLength), W.totalLength = te, W;
|
|
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, W) {
|
|
10806
|
+
this.partialLength = V, this.point = W;
|
|
10807
10807
|
}
|
|
10808
10808
|
var y = /* @__PURE__ */ (function() {
|
|
10809
10809
|
var V = {};
|
|
10810
|
-
return function(
|
|
10811
|
-
var
|
|
10812
|
-
if (!V[
|
|
10813
|
-
var J = getDefaultCurveSegments(),
|
|
10814
|
-
|
|
10810
|
+
return function(W, K, Z, re) {
|
|
10811
|
+
var H = (W[0] + "_" + W[1] + "_" + K[0] + "_" + K[1] + "_" + Z[0] + "_" + Z[1] + "_" + re[0] + "_" + re[1]).replace(/\./g, "p");
|
|
10812
|
+
if (!V[H]) {
|
|
10813
|
+
var J = getDefaultCurveSegments(), G, Q, te, ne, ae, le = 0, he, ye, me = null;
|
|
10814
|
+
W.length === 2 && (W[0] !== K[0] || W[1] !== K[1]) && e(W[0], W[1], K[0], K[1], W[0] + Z[0], W[1] + Z[1]) && e(W[0], W[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 = Z.length,
|
|
10817
|
-
for (ye = createSizedArray(te), ae =
|
|
10818
|
-
ne = bmPow(1 - ae, 3) *
|
|
10819
|
-
he = bmSqrt(he), le += he, de.points[
|
|
10816
|
+
for (te = Z.length, G = 0; G < J; G += 1) {
|
|
10817
|
+
for (ye = createSizedArray(te), ae = G / (J - 1), he = 0, Q = 0; Q < te; Q += 1)
|
|
10818
|
+
ne = bmPow(1 - ae, 3) * W[Q] + 3 * bmPow(1 - ae, 2) * ae * (W[Q] + Z[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
|
+
he = bmSqrt(he), le += he, de.points[G] = new d(he, ye), me = ye;
|
|
10820
10820
|
}
|
|
10821
|
-
de.segmentLength = le, V[
|
|
10821
|
+
de.segmentLength = le, V[H] = de;
|
|
10822
10822
|
}
|
|
10823
|
-
return V[
|
|
10823
|
+
return V[H];
|
|
10824
10824
|
};
|
|
10825
10825
|
})();
|
|
10826
|
-
function M(V,
|
|
10827
|
-
var K =
|
|
10828
|
-
if (
|
|
10829
|
-
return K[
|
|
10830
|
-
for (var Q = Z[
|
|
10831
|
-
if (Z[
|
|
10832
|
-
if (
|
|
10833
|
-
return K[
|
|
10826
|
+
function M(V, W) {
|
|
10827
|
+
var K = W.percents, Z = W.lengths, re = K.length, H = bmFloor((re - 1) * V), J = V * W.addedLength, G = 0;
|
|
10828
|
+
if (H === re - 1 || H === 0 || J === Z[H])
|
|
10829
|
+
return K[H];
|
|
10830
|
+
for (var Q = Z[H] > J ? -1 : 1, te = !0; te; )
|
|
10831
|
+
if (Z[H] <= J && Z[H + 1] > J ? (G = (J - Z[H]) / (Z[H + 1] - Z[H]), te = !1) : H += Q, H < 0 || H >= re - 1) {
|
|
10832
|
+
if (H === re - 1)
|
|
10833
|
+
return K[H];
|
|
10834
10834
|
te = !1;
|
|
10835
10835
|
}
|
|
10836
|
-
return K[
|
|
10836
|
+
return K[H] + (K[H + 1] - K[H]) * G;
|
|
10837
10837
|
}
|
|
10838
|
-
function F(V,
|
|
10839
|
-
var J = M(re,
|
|
10838
|
+
function F(V, W, K, Z, 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) * Z[0] + J * J * J * W[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) * Z[1] + J * J * J * W[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, W, K, Z, re, H, J) {
|
|
10844
10844
|
re < 0 ? re = 0 : re > 1 && (re = 1);
|
|
10845
|
-
var
|
|
10846
|
-
|
|
10847
|
-
var Q = M(
|
|
10845
|
+
var G = M(re, J);
|
|
10846
|
+
H = H > 1 ? 1 : H;
|
|
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 * Z[te] + de *
|
|
10849
|
+
j[te * 4] = t.round((he * V[te] + ye * K[te] + me * Z[te] + de * W[te]) * 1e3) / 1e3, j[te * 4 + 1] = t.round((ve * V[te] + ge * K[te] + fe * Z[te] + se * W[te]) * 1e3) / 1e3, j[te * 4 + 2] = t.round((ce * V[te] + ee * K[te] + ie * Z[te] + ue * W[te]) * 1e3) / 1e3, j[te * 4 + 3] = t.round((oe * V[te] + pe * K[te] + xe * Z[te] + be * W[te]) * 1e3) / 1e3;
|
|
10850
10850
|
return j;
|
|
10851
10851
|
}
|
|
10852
10852
|
return {
|
|
@@ -10874,19 +10874,19 @@ 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, W, K, Z, 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;
|
|
10881
|
-
if (t >=
|
|
10882
|
-
var te = t >=
|
|
10881
|
+
if (t >= H || t < J) {
|
|
10882
|
+
var te = t >= H ? Q.points.length - 1 : 0;
|
|
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 *
|
|
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), W = re((t - J) / (H - J));
|
|
10887
|
+
var ne = Q.segmentLength * W, ae, le = e.lastFrame < t && e._lastKeyframeIndex === h ? e._lastAddedLength : 0;
|
|
10888
10888
|
for (Z = e.lastFrame < t && e._lastKeyframeIndex === h ? e._lastPoint : 0, y = !0, K = Q.points.length; y; ) {
|
|
10889
|
-
if (le += Q.points[Z].partialLength, ne === 0 ||
|
|
10889
|
+
if (le += Q.points[Z].partialLength, ne === 0 || W === 0 || Z === Q.points.length - 1) {
|
|
10890
10890
|
for (V = Q.points[Z].point.length, q = 0; q < V; q += 1)
|
|
10891
10891
|
i[q] = Q.points[Z].point[q];
|
|
10892
10892
|
break;
|
|
@@ -10901,32 +10901,32 @@ function requireLottie() {
|
|
|
10901
10901
|
}
|
|
10902
10902
|
} else {
|
|
10903
10903
|
var he, ye, me, de, ve;
|
|
10904
|
-
if (d = M.s.length,
|
|
10905
|
-
if (t >=
|
|
10906
|
-
i[0] =
|
|
10904
|
+
if (d = M.s.length, G = F.s || M.e, this.sh && M.h !== 1)
|
|
10905
|
+
if (t >= H)
|
|
10906
|
+
i[0] = G[0], i[1] = G[1], i[2] = G[2];
|
|
10907
10907
|
else if (t <= J)
|
|
10908
10908
|
i[0] = M.s[0], i[1] = M.s[1], i[2] = M.s[2];
|
|
10909
10909
|
else {
|
|
10910
|
-
var ge = createQuaternion(M.s), fe = createQuaternion(
|
|
10910
|
+
var ge = createQuaternion(M.s), fe = createQuaternion(G), se = (t - J) / (H - J);
|
|
10911
10911
|
quaternionToEuler(i, slerp(ge, fe, se));
|
|
10912
10912
|
}
|
|
10913
10913
|
else
|
|
10914
10914
|
for (h = 0; h < d; h += 1)
|
|
10915
|
-
M.h !== 1 && (t >=
|
|
10915
|
+
M.h !== 1 && (t >= H ? W = 1 : t < J ? W = 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), W = 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]) * W, 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, W, K, Z, re;
|
|
10921
|
+
return W = a * M + h * F + d * j + y * q, W < 0 && (W = -W, M = -M, F = -F, j = -j, q = -q), 1 - W > 1e-6 ? (V = Math.acos(W), K = Math.sin(V), Z = Math.sin((1 - r) * V) / K, re = Math.sin(r * V) / K) : (Z = 1 - r, re = r), i[0] = Z * a + re * M, i[1] = Z * h + re * F, i[2] = Z * d + re * j, i[3] = Z * 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, W = a * M * d - y * h * F;
|
|
10929
|
+
return [q, V, W, 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;
|
|
@@ -11132,50 +11132,50 @@ function requireLottie() {
|
|
|
11132
11132
|
return t;
|
|
11133
11133
|
})(), ShapePropertyFactory = (function() {
|
|
11134
11134
|
var t = -999999;
|
|
11135
|
-
function e(
|
|
11136
|
-
var Q =
|
|
11137
|
-
if (
|
|
11135
|
+
function e(H, J, G) {
|
|
11136
|
+
var Q = G.lastIndex, te, ne, ae, le, he, ye, me, de, ve, ge = this.keyframes;
|
|
11137
|
+
if (H < ge[0].t - this.offsetTime)
|
|
11138
11138
|
te = ge[0].s[0], ae = !0, Q = 0;
|
|
11139
|
-
else if (
|
|
11139
|
+
else if (H >= ge[ge.length - 1].t - this.offsetTime)
|
|
11140
11140
|
te = ge[ge.length - 1].s ? ge[ge.length - 1].s[0] : ge[ge.length - 2].e[0], ae = !0;
|
|
11141
11141
|
else {
|
|
11142
|
-
for (var fe = Q, se = ge.length - 1, ce = !0, ee, ie, ue; ce && (ee = ge[fe], ie = ge[fe + 1], !(ie.t - this.offsetTime >
|
|
11142
|
+
for (var fe = Q, se = ge.length - 1, ce = !0, ee, ie, ue; ce && (ee = ge[fe], ie = ge[fe + 1], !(ie.t - this.offsetTime > H)); )
|
|
11143
11143
|
fe < se - 1 ? fe += 1 : ce = !1;
|
|
11144
11144
|
if (ue = this.keyframesMetadata[fe] || {}, ae = ee.h === 1, Q = fe, !ae) {
|
|
11145
|
-
if (
|
|
11145
|
+
if (H >= ie.t - this.offsetTime)
|
|
11146
11146
|
de = 1;
|
|
11147
|
-
else if (
|
|
11147
|
+
else if (H < ee.t - this.offsetTime)
|
|
11148
11148
|
de = 0;
|
|
11149
11149
|
else {
|
|
11150
11150
|
var oe;
|
|
11151
|
-
ue.__fnct ? oe = ue.__fnct : (oe = BezierFactory.getBezierEasing(ee.o.x, ee.o.y, ee.i.x, ee.i.y).get, ue.__fnct = oe), de = oe((
|
|
11151
|
+
ue.__fnct ? oe = ue.__fnct : (oe = BezierFactory.getBezierEasing(ee.o.x, ee.o.y, ee.i.x, ee.i.y).get, ue.__fnct = oe), de = oe((H - (ee.t - this.offsetTime)) / (ie.t - this.offsetTime - (ee.t - this.offsetTime)));
|
|
11152
11152
|
}
|
|
11153
11153
|
ne = ie.s ? ie.s[0] : ee.e[0];
|
|
11154
11154
|
}
|
|
11155
11155
|
te = ee.s[0];
|
|
11156
11156
|
}
|
|
11157
|
-
for (ye = J._length, me = te.i[0].length,
|
|
11157
|
+
for (ye = J._length, me = te.i[0].length, G.lastIndex = Q, le = 0; le < ye; le += 1)
|
|
11158
11158
|
for (he = 0; he < me; he += 1)
|
|
11159
11159
|
ve = ae ? te.i[le][he] : te.i[le][he] + (ne.i[le][he] - te.i[le][he]) * de, J.i[le][he] = ve, ve = ae ? te.o[le][he] : te.o[le][he] + (ne.o[le][he] - te.o[le][he]) * de, J.o[le][he] = ve, ve = ae ? te.v[le][he] : te.v[le][he] + (ne.v[le][he] - te.v[le][he]) * de, J.v[le][he] = ve;
|
|
11160
11160
|
}
|
|
11161
11161
|
function r() {
|
|
11162
|
-
var
|
|
11163
|
-
return Q !== t && (Q < J &&
|
|
11162
|
+
var H = this.comp.renderedFrame - this.offsetTime, J = this.keyframes[0].t - this.offsetTime, G = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, Q = this._caching.lastFrame;
|
|
11163
|
+
return Q !== t && (Q < J && H < J || Q > G && H > G) || (this._caching.lastIndex = Q < H ? this._caching.lastIndex : 0, this.interpolateShape(H, this.pv, this._caching)), this._caching.lastFrame = H, this.pv;
|
|
11164
11164
|
}
|
|
11165
11165
|
function i() {
|
|
11166
11166
|
this.paths = this.localShapeCollection;
|
|
11167
11167
|
}
|
|
11168
|
-
function a(
|
|
11169
|
-
if (
|
|
11168
|
+
function a(H, J) {
|
|
11169
|
+
if (H._length !== J._length || H.c !== J.c)
|
|
11170
11170
|
return !1;
|
|
11171
|
-
var
|
|
11172
|
-
for (
|
|
11173
|
-
if (
|
|
11171
|
+
var G, Q = H._length;
|
|
11172
|
+
for (G = 0; G < Q; G += 1)
|
|
11173
|
+
if (H.v[G][0] !== J.v[G][0] || H.v[G][1] !== J.v[G][1] || H.o[G][0] !== J.o[G][0] || H.o[G][1] !== J.o[G][1] || H.i[G][0] !== J.i[G][0] || H.i[G][1] !== J.i[G][1])
|
|
11174
11174
|
return !1;
|
|
11175
11175
|
return !0;
|
|
11176
11176
|
}
|
|
11177
|
-
function h(
|
|
11178
|
-
a(this.v,
|
|
11177
|
+
function h(H) {
|
|
11178
|
+
a(this.v, H) || (this.v = shapePool.clone(H), this.localShapeCollection.releaseShapes(), this.localShapeCollection.addShape(this.v), this._mdf = !0, this.paths = this.localShapeCollection);
|
|
11179
11179
|
}
|
|
11180
11180
|
function d() {
|
|
11181
11181
|
if (this.elem.globalData.frameId !== this.frameId) {
|
|
@@ -11188,25 +11188,25 @@ function requireLottie() {
|
|
|
11188
11188
|
return;
|
|
11189
11189
|
}
|
|
11190
11190
|
this.lock = !0, this._mdf = !1;
|
|
11191
|
-
var
|
|
11192
|
-
this.kf ?
|
|
11193
|
-
var J,
|
|
11194
|
-
for (J = 0; J <
|
|
11195
|
-
|
|
11196
|
-
this.setVValue(
|
|
11191
|
+
var H;
|
|
11192
|
+
this.kf ? H = this.pv : this.data.ks ? H = this.data.ks.k : H = this.data.pt.k;
|
|
11193
|
+
var J, G = this.effectsSequence.length;
|
|
11194
|
+
for (J = 0; J < G; J += 1)
|
|
11195
|
+
H = this.effectsSequence[J](H);
|
|
11196
|
+
this.setVValue(H), this.lock = !1, this.frameId = this.elem.globalData.frameId;
|
|
11197
11197
|
}
|
|
11198
11198
|
}
|
|
11199
|
-
function y(
|
|
11200
|
-
this.propType = "shape", this.comp =
|
|
11201
|
-
var Q =
|
|
11199
|
+
function y(H, J, G) {
|
|
11200
|
+
this.propType = "shape", this.comp = H.comp, this.container = H, this.elem = H, this.data = J, this.k = !1, this.kf = !1, this._mdf = !1;
|
|
11201
|
+
var Q = G === 3 ? J.pt.k : J.ks.k;
|
|
11202
11202
|
this.v = shapePool.clone(Q), this.pv = shapePool.clone(this.v), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.reset = i, this.effectsSequence = [];
|
|
11203
11203
|
}
|
|
11204
|
-
function M(
|
|
11205
|
-
this.effectsSequence.push(
|
|
11204
|
+
function M(H) {
|
|
11205
|
+
this.effectsSequence.push(H), this.container.addDynamicProperty(this);
|
|
11206
11206
|
}
|
|
11207
11207
|
y.prototype.interpolateShape = e, y.prototype.getValue = d, y.prototype.setVValue = h, y.prototype.addEffect = M;
|
|
11208
|
-
function F(
|
|
11209
|
-
this.propType = "shape", this.comp =
|
|
11208
|
+
function F(H, J, G) {
|
|
11209
|
+
this.propType = "shape", this.comp = H.comp, this.elem = H, this.container = H, this.offsetTime = H.data.st, this.keyframes = G === 3 ? J.pt.k : J.ks.k, this.keyframesMetadata = [], this.k = !0, this.kf = !0;
|
|
11210
11210
|
var Q = this.keyframes[0].s[0].i.length;
|
|
11211
11211
|
this.v = shapePool.newElement(), this.v.setPathData(this.keyframes[0].s[0].c, Q), this.pv = shapePool.clone(this.v), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.lastFrame = t, this.reset = i, this._caching = {
|
|
11212
11212
|
lastFrame: t,
|
|
@@ -11215,9 +11215,9 @@ function requireLottie() {
|
|
|
11215
11215
|
}
|
|
11216
11216
|
F.prototype.getValue = d, F.prototype.interpolateShape = e, F.prototype.setVValue = h, F.prototype.addEffect = M;
|
|
11217
11217
|
var j = (function() {
|
|
11218
|
-
var
|
|
11219
|
-
function J(
|
|
11220
|
-
this.v = shapePool.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d = Q.d, this.elem =
|
|
11218
|
+
var H = roundCorner;
|
|
11219
|
+
function J(G, Q) {
|
|
11220
|
+
this.v = shapePool.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d = Q.d, this.elem = G, this.comp = G.comp, this.frameId = -1, this.initDynamicPropertyContainer(G), this.p = PropertyFactory.getProp(G, Q.p, 1, 0, this), this.s = PropertyFactory.getProp(G, Q.s, 1, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertEllToPath());
|
|
11221
11221
|
}
|
|
11222
11222
|
return J.prototype = {
|
|
11223
11223
|
reset: i,
|
|
@@ -11226,59 +11226,59 @@ function requireLottie() {
|
|
|
11226
11226
|
},
|
|
11227
11227
|
convertEllToPath: function() {
|
|
11228
11228
|
var Q = this.p.v[0], te = this.p.v[1], ne = this.s.v[0] / 2, ae = this.s.v[1] / 2, le = this.d !== 3, he = this.v;
|
|
11229
|
-
he.v[0][0] = Q, he.v[0][1] = te - ae, he.v[1][0] = le ? Q + ne : Q - ne, he.v[1][1] = te, he.v[2][0] = Q, he.v[2][1] = te + ae, he.v[3][0] = le ? Q - ne : Q + ne, he.v[3][1] = te, he.i[0][0] = le ? Q - ne *
|
|
11229
|
+
he.v[0][0] = Q, he.v[0][1] = te - ae, he.v[1][0] = le ? Q + ne : Q - ne, he.v[1][1] = te, he.v[2][0] = Q, he.v[2][1] = te + ae, he.v[3][0] = le ? Q - ne : Q + ne, he.v[3][1] = te, he.i[0][0] = le ? Q - ne * H : Q + ne * H, he.i[0][1] = te - ae, he.i[1][0] = le ? Q + ne : Q - ne, he.i[1][1] = te - ae * H, he.i[2][0] = le ? Q + ne * H : Q - ne * H, he.i[2][1] = te + ae, he.i[3][0] = le ? Q - ne : Q + ne, he.i[3][1] = te + ae * H, he.o[0][0] = le ? Q + ne * H : Q - ne * H, he.o[0][1] = te - ae, he.o[1][0] = le ? Q + ne : Q - ne, he.o[1][1] = te + ae * H, he.o[2][0] = le ? Q - ne * H : Q + ne * H, he.o[2][1] = te + ae, he.o[3][0] = le ? Q - ne : Q + ne, he.o[3][1] = te - ae * H;
|
|
11230
11230
|
}
|
|
11231
11231
|
}, extendPrototype([DynamicPropertyContainer], J), J;
|
|
11232
11232
|
})(), q = (function() {
|
|
11233
|
-
function
|
|
11234
|
-
this.v = shapePool.newElement(), this.v.setPathData(!0, 0), this.elem = J, this.comp = J.comp, this.data =
|
|
11233
|
+
function H(J, G) {
|
|
11234
|
+
this.v = shapePool.newElement(), this.v.setPathData(!0, 0), this.elem = J, this.comp = J.comp, this.data = G, this.frameId = -1, this.d = G.d, this.initDynamicPropertyContainer(J), G.sy === 1 ? (this.ir = PropertyFactory.getProp(J, G.ir, 0, 0, this), this.is = PropertyFactory.getProp(J, G.is, 0, 0.01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = PropertyFactory.getProp(J, G.pt, 0, 0, this), this.p = PropertyFactory.getProp(J, G.p, 1, 0, this), this.r = PropertyFactory.getProp(J, G.r, 0, degToRads, this), this.or = PropertyFactory.getProp(J, G.or, 0, 0, this), this.os = PropertyFactory.getProp(J, G.os, 0, 0.01, this), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath());
|
|
11235
11235
|
}
|
|
11236
|
-
return
|
|
11236
|
+
return H.prototype = {
|
|
11237
11237
|
reset: i,
|
|
11238
11238
|
getValue: function() {
|
|
11239
11239
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
11240
11240
|
},
|
|
11241
11241
|
convertStarToPath: function() {
|
|
11242
|
-
var
|
|
11242
|
+
var G = Math.floor(this.pt.v) * 2, Q = Math.PI * 2 / G, te = !0, ne = this.or.v, ae = this.ir.v, le = this.os.v, he = this.is.v, ye = 2 * Math.PI * ne / (G * 2), me = 2 * Math.PI * ae / (G * 2), de, ve, ge, fe, se = -Math.PI / 2;
|
|
11243
11243
|
se += this.r.v;
|
|
11244
11244
|
var ce = this.data.d === 3 ? -1 : 1;
|
|
11245
|
-
for (this.v._length = 0, de = 0; de <
|
|
11245
|
+
for (this.v._length = 0, de = 0; de < G; de += 1) {
|
|
11246
11246
|
ve = te ? ne : ae, ge = te ? le : he, fe = te ? ye : me;
|
|
11247
11247
|
var ee = ve * Math.cos(se), ie = ve * Math.sin(se), ue = ee === 0 && ie === 0 ? 0 : ie / Math.sqrt(ee * ee + ie * ie), oe = ee === 0 && ie === 0 ? 0 : -ee / Math.sqrt(ee * ee + ie * ie);
|
|
11248
11248
|
ee += +this.p.v[0], ie += +this.p.v[1], this.v.setTripleAt(ee, ie, ee - ue * fe * ge * ce, ie - oe * fe * ge * ce, ee + ue * fe * ge * ce, ie + oe * fe * ge * ce, de, !0), te = !te, se += Q * ce;
|
|
11249
11249
|
}
|
|
11250
11250
|
},
|
|
11251
11251
|
convertPolygonToPath: function() {
|
|
11252
|
-
var
|
|
11253
|
-
for (he += this.r.v, this.v._length = 0, le = 0; le <
|
|
11252
|
+
var G = Math.floor(this.pt.v), Q = Math.PI * 2 / G, te = this.or.v, ne = this.os.v, ae = 2 * Math.PI * te / (G * 4), le, he = -Math.PI * 0.5, ye = this.data.d === 3 ? -1 : 1;
|
|
11253
|
+
for (he += this.r.v, this.v._length = 0, le = 0; le < G; le += 1) {
|
|
11254
11254
|
var me = te * Math.cos(he), de = te * Math.sin(he), ve = me === 0 && de === 0 ? 0 : de / Math.sqrt(me * me + de * de), ge = me === 0 && de === 0 ? 0 : -me / Math.sqrt(me * me + de * de);
|
|
11255
11255
|
me += +this.p.v[0], de += +this.p.v[1], this.v.setTripleAt(me, de, me - ve * ae * ne * ye, de - ge * ae * ne * ye, me + ve * ae * ne * ye, de + ge * ae * ne * ye, le, !0), he += Q * ye;
|
|
11256
11256
|
}
|
|
11257
11257
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
11258
11258
|
}
|
|
11259
|
-
}, extendPrototype([DynamicPropertyContainer],
|
|
11259
|
+
}, extendPrototype([DynamicPropertyContainer], H), H;
|
|
11260
11260
|
})(), V = (function() {
|
|
11261
|
-
function
|
|
11262
|
-
this.v = shapePool.newElement(), this.v.c = !0, this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem = J, this.comp = J.comp, this.frameId = -1, this.d =
|
|
11261
|
+
function H(J, G) {
|
|
11262
|
+
this.v = shapePool.newElement(), this.v.c = !0, this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem = J, this.comp = J.comp, this.frameId = -1, this.d = G.d, this.initDynamicPropertyContainer(J), this.p = PropertyFactory.getProp(J, G.p, 1, 0, this), this.s = PropertyFactory.getProp(J, G.s, 1, 0, this), this.r = PropertyFactory.getProp(J, G.r, 0, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertRectToPath());
|
|
11263
11263
|
}
|
|
11264
|
-
return
|
|
11264
|
+
return H.prototype = {
|
|
11265
11265
|
convertRectToPath: function() {
|
|
11266
|
-
var
|
|
11267
|
-
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(
|
|
11266
|
+
var G = this.p.v[0], Q = this.p.v[1], te = this.s.v[0] / 2, ne = this.s.v[1] / 2, ae = bmMin(te, ne, this.r.v), le = ae * (1 - roundCorner);
|
|
11267
|
+
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(G + te, Q - ne + ae, G + te, Q - ne + ae, G + te, Q - ne + le, 0, !0), this.v.setTripleAt(G + te, Q + ne - ae, G + te, Q + ne - le, G + te, Q + ne - ae, 1, !0), ae !== 0 ? (this.v.setTripleAt(G + te - ae, Q + ne, G + te - ae, Q + ne, G + te - le, Q + ne, 2, !0), this.v.setTripleAt(G - te + ae, Q + ne, G - te + le, Q + ne, G - te + ae, Q + ne, 3, !0), this.v.setTripleAt(G - te, Q + ne - ae, G - te, Q + ne - ae, G - te, Q + ne - le, 4, !0), this.v.setTripleAt(G - te, Q - ne + ae, G - te, Q - ne + le, G - te, Q - ne + ae, 5, !0), this.v.setTripleAt(G - te + ae, Q - ne, G - te + ae, Q - ne, G - te + le, Q - ne, 6, !0), this.v.setTripleAt(G + te - ae, Q - ne, G + te - le, Q - ne, G + te - ae, Q - ne, 7, !0)) : (this.v.setTripleAt(G - te, Q + ne, G - te + le, Q + ne, G - te, Q + ne, 2), this.v.setTripleAt(G - te, Q - ne, G - te, Q - ne + le, G - te, Q - ne, 3))) : (this.v.setTripleAt(G + te, Q - ne + ae, G + te, Q - ne + le, G + te, Q - ne + ae, 0, !0), ae !== 0 ? (this.v.setTripleAt(G + te - ae, Q - ne, G + te - ae, Q - ne, G + te - le, Q - ne, 1, !0), this.v.setTripleAt(G - te + ae, Q - ne, G - te + le, Q - ne, G - te + ae, Q - ne, 2, !0), this.v.setTripleAt(G - te, Q - ne + ae, G - te, Q - ne + ae, G - te, Q - ne + le, 3, !0), this.v.setTripleAt(G - te, Q + ne - ae, G - te, Q + ne - le, G - te, Q + ne - ae, 4, !0), this.v.setTripleAt(G - te + ae, Q + ne, G - te + ae, Q + ne, G - te + le, Q + ne, 5, !0), this.v.setTripleAt(G + te - ae, Q + ne, G + te - le, Q + ne, G + te - ae, Q + ne, 6, !0), this.v.setTripleAt(G + te, Q + ne - ae, G + te, Q + ne - ae, G + te, Q + ne - le, 7, !0)) : (this.v.setTripleAt(G - te, Q - ne, G - te + le, Q - ne, G - te, Q - ne, 1, !0), this.v.setTripleAt(G - te, Q + ne, G - te, Q + ne - le, G - te, Q + ne, 2, !0), this.v.setTripleAt(G + te, Q + ne, G + te - le, Q + ne, G + te, Q + ne, 3, !0)));
|
|
11268
11268
|
},
|
|
11269
11269
|
getValue: function() {
|
|
11270
11270
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertRectToPath());
|
|
11271
11271
|
},
|
|
11272
11272
|
reset: i
|
|
11273
|
-
}, extendPrototype([DynamicPropertyContainer],
|
|
11273
|
+
}, extendPrototype([DynamicPropertyContainer], H), H;
|
|
11274
11274
|
})();
|
|
11275
|
-
function H
|
|
11275
|
+
function W(H, J, G) {
|
|
11276
11276
|
var Q;
|
|
11277
|
-
if (
|
|
11278
|
-
var te =
|
|
11279
|
-
ne.length ? Q = new F(
|
|
11280
|
-
} else
|
|
11281
|
-
return Q.k &&
|
|
11277
|
+
if (G === 3 || G === 4) {
|
|
11278
|
+
var te = G === 3 ? J.pt : J.ks, ne = te.k;
|
|
11279
|
+
ne.length ? Q = new F(H, J, G) : Q = new y(H, J, G);
|
|
11280
|
+
} else G === 5 ? Q = new V(H, J) : G === 6 ? Q = new j(H, J) : G === 7 && (Q = new q(H, J));
|
|
11281
|
+
return Q.k && H.addDynamicProperty(Q), Q;
|
|
11282
11282
|
}
|
|
11283
11283
|
function K() {
|
|
11284
11284
|
return y;
|
|
@@ -11287,7 +11287,7 @@ function requireLottie() {
|
|
|
11287
11287
|
return F;
|
|
11288
11288
|
}
|
|
11289
11289
|
var re = {};
|
|
11290
|
-
return re.getShapeProp =
|
|
11290
|
+
return re.getShapeProp = W, re.getConstructorFunction = K, re.getKeyframedConstructorFunction = Z, 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,7 +11331,7 @@ 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 W(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) {
|
|
@@ -11348,7 +11348,7 @@ function requireLottie() {
|
|
|
11348
11348
|
var ie = ee.props;
|
|
11349
11349
|
return this.transform(ie[0], ie[1], ie[2], ie[3], ie[4], ie[5], ie[6], ie[7], ie[8], ie[9], ie[10], ie[11], ie[12], ie[13], ie[14], ie[15]);
|
|
11350
11350
|
}
|
|
11351
|
-
function
|
|
11351
|
+
function H() {
|
|
11352
11352
|
return this._identityCalculated || (this._identity = !(this.props[0] !== 1 || this.props[1] !== 0 || this.props[2] !== 0 || this.props[3] !== 0 || this.props[4] !== 0 || this.props[5] !== 1 || this.props[6] !== 0 || this.props[7] !== 0 || this.props[8] !== 0 || this.props[9] !== 0 || this.props[10] !== 1 || this.props[11] !== 0 || this.props[12] !== 0 || this.props[13] !== 0 || this.props[14] !== 0 || this.props[15] !== 1), this._identityCalculated = !0), this._identity;
|
|
11353
11353
|
}
|
|
11354
11354
|
function J(ee) {
|
|
@@ -11359,7 +11359,7 @@ function requireLottie() {
|
|
|
11359
11359
|
}
|
|
11360
11360
|
return !0;
|
|
11361
11361
|
}
|
|
11362
|
-
function
|
|
11362
|
+
function G(ee) {
|
|
11363
11363
|
var ie;
|
|
11364
11364
|
for (ie = 0; ie < 16; ie += 1)
|
|
11365
11365
|
ee.props[ie] = this.props[ie];
|
|
@@ -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 = W, this.translate = K, this.transform = Z, 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, W = 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);
|
|
@@ -11614,20 +11614,20 @@ function requireLottie() {
|
|
|
11614
11614
|
q = bez.getSegmentsLength(h.shapes[M]), j.push(q), V += q.totalLength;
|
|
11615
11615
|
Z.totalShapeLength = V, Z.pathsData = j;
|
|
11616
11616
|
}
|
|
11617
|
-
|
|
11617
|
+
W += V, Z.shape._mdf = !0;
|
|
11618
11618
|
}
|
|
11619
|
-
var
|
|
11619
|
+
var H = e, J = r, G = 0, Q;
|
|
11620
11620
|
for (d = y - 1; d >= 0; d -= 1)
|
|
11621
11621
|
if (Z = this.shapes[d], Z.shape._mdf) {
|
|
11622
|
-
for (re = Z.localShapeCollection, re.releaseShapes(), this.m === 2 && y > 1 ? (Q = this.calculateShapeEdges(e, r, Z.totalShapeLength,
|
|
11623
|
-
|
|
11624
|
-
s: Z.totalShapeLength *
|
|
11622
|
+
for (re = Z.localShapeCollection, re.releaseShapes(), this.m === 2 && y > 1 ? (Q = this.calculateShapeEdges(e, r, Z.totalShapeLength, G, W), G += Z.totalShapeLength) : Q = [[H, J]], F = Q.length, M = 0; M < F; M += 1) {
|
|
11623
|
+
H = Q[M][0], J = Q[M][1], K.length = 0, J <= 1 ? K.push({
|
|
11624
|
+
s: Z.totalShapeLength * H,
|
|
11625
11625
|
e: Z.totalShapeLength * J
|
|
11626
|
-
}) :
|
|
11627
|
-
s: Z.totalShapeLength * (
|
|
11626
|
+
}) : H >= 1 ? K.push({
|
|
11627
|
+
s: Z.totalShapeLength * (H - 1),
|
|
11628
11628
|
e: Z.totalShapeLength * (J - 1)
|
|
11629
11629
|
}) : (K.push({
|
|
11630
|
-
s: Z.totalShapeLength *
|
|
11630
|
+
s: Z.totalShapeLength * H,
|
|
11631
11631
|
e: Z.totalShapeLength
|
|
11632
11632
|
}), K.push({
|
|
11633
11633
|
s: 0,
|
|
@@ -11658,7 +11658,7 @@ 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,
|
|
11661
|
+
var i = t.pathsData, a = t.shape.paths.shapes, h, d = t.shape.paths._length, y, M, F = 0, j, q, V, W, K = [], Z, re = !0;
|
|
11662
11662
|
for (r ? (q = r._length, Z = r._length) : (r = shapePool.newElement(), q = 0, Z = 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)
|
|
@@ -11667,11 +11667,11 @@ 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) : (W = 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(W, 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
|
-
var
|
|
11674
|
-
e.s <= F && e.e >= F +
|
|
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) : (W = 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(W, r, q, re), re = !1, r.c = !1);
|
|
11675
11675
|
} else
|
|
11676
11676
|
r.c = !1;
|
|
11677
11677
|
F += j.addedLength, q += 1;
|
|
@@ -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, W = 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] = W.getValueAtTime((W.keyframes[0].t + 0.01) / F, 0), q[0] = V.getValueAtTime(V.keyframes[0].t / F, 0), q[1] = W.getValueAtTime(W.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] = W.getValueAtTime(W.keyframes[W.keyframes.length - 1].t / F, 0), q[0] = V.getValueAtTime((V.keyframes[V.keyframes.length - 1].t - 0.01) / F, 0), q[1] = W.getValueAtTime((W.keyframes[W.keyframes.length - 1].t - 0.01) / F, 0)) : (j = [V.pv, W.pv], q[0] = V.getValueAtTime((V._caching.lastFrame + V.offsetTime - 0.01) / F, V.offsetTime), q[1] = W.getValueAtTime((W._caching.lastFrame + W.offsetTime - 0.01) / F, W.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,27 +11886,27 @@ 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, W = V % 1, K = V > 0 ? Math.floor(V) : Math.ceil(V), Z = 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
|
+
W && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, W, !1), J += W);
|
|
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
|
+
W && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -W, !0), J -= W);
|
|
11900
11900
|
}
|
|
11901
11901
|
i = this.data.m === 1 ? 0 : this._currentCopies - 1, a = this.data.m === 1 ? 1 : -1, h = this._currentCopies;
|
|
11902
|
-
for (var
|
|
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(
|
|
11905
|
-
r[
|
|
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(Z[0], Z[1], Z[2], Z[3], Z[4], Z[5], Z[6], Z[7], Z[8], Z[9], Z[10], Z[11], Z[12], Z[13], Z[14], Z[15]), G = 0; G < Q; G += 1)
|
|
11905
|
+
r[G] = this.matrix.props[G];
|
|
11906
11906
|
this.matrix.reset();
|
|
11907
11907
|
} else
|
|
11908
|
-
for (this.matrix.reset(),
|
|
11909
|
-
r[
|
|
11908
|
+
for (this.matrix.reset(), G = 0; G < Q; G += 1)
|
|
11909
|
+
r[G] = this.matrix.props[G];
|
|
11910
11910
|
J += 1, h -= 1, i += a;
|
|
11911
11911
|
}
|
|
11912
11912
|
} 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, W, K, Z, 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,
|
|
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, W = H, K = V - (V - h[0]) * roundCorner, Z = W - (W - h[1]) * roundCorner, r.setTripleAt(V, W, K, Z, 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, Z = h[1] + (M[1] - h[1]) * j, W = Z, re = V - (V - h[0]) * roundCorner, H = W - (W - h[1]) * roundCorner, r.setTripleAt(V, W, K, Z, 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], W = pointEqual(d, r.points[1]) ? r.points[3] : r.points[1], K = lineIntersection(V, h, d, W);
|
|
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 W(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");
|
|
@@ -12315,7 +12315,7 @@ function requireLottie() {
|
|
|
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 = W(ee[ie].fFamily, "monospace"), ee[ie].sansCase = W(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) {
|
|
@@ -12341,7 +12341,7 @@ function requireLottie() {
|
|
|
12341
12341
|
}
|
|
12342
12342
|
oe === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
|
|
12343
12343
|
}
|
|
12344
|
-
function
|
|
12344
|
+
function H(se) {
|
|
12345
12345
|
if (se) {
|
|
12346
12346
|
this.chars || (this.chars = []);
|
|
12347
12347
|
var ce, ee = se.length, ie, ue = this.chars.length, oe;
|
|
@@ -12360,7 +12360,7 @@ function requireLottie() {
|
|
|
12360
12360
|
}
|
|
12361
12361
|
return (typeof se == "string" && se.charCodeAt(0) !== 13 || !se) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", se, ce, ee)), e;
|
|
12362
12362
|
}
|
|
12363
|
-
function
|
|
12363
|
+
function G(se, ce, ee) {
|
|
12364
12364
|
var ie = this.getFontByName(ce), ue = se;
|
|
12365
12365
|
if (!ie.cache[ue]) {
|
|
12366
12366
|
var oe = ie.helper;
|
|
@@ -12428,11 +12428,11 @@ function requireLottie() {
|
|
|
12428
12428
|
};
|
|
12429
12429
|
ge.isModifier = ne, ge.isZeroWidthJoiner = ae, ge.isFlagEmoji = ye, ge.isRegionalCode = he, ge.isCombinedCharacter = me, ge.isRegionalFlag = de, ge.isVariationSelector = le, ge.BLACK_FLAG_CODE_POINT = i;
|
|
12430
12430
|
var fe = {
|
|
12431
|
-
addChars:
|
|
12431
|
+
addChars: H,
|
|
12432
12432
|
addFonts: re,
|
|
12433
12433
|
getCharData: J,
|
|
12434
12434
|
getFontByName: Q,
|
|
12435
|
-
measureText:
|
|
12435
|
+
measureText: G,
|
|
12436
12436
|
checkLoadedFonts: K,
|
|
12437
12437
|
setIsLoaded: ve
|
|
12438
12438
|
};
|
|
@@ -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(), W, K, Z, 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) && (
|
|
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 ? (W = createNS("rect"), W.setAttribute("fill", "#ffffff"), W.setAttribute("width", this.element.comp.data.w || 0), W.setAttribute("height", this.element.comp.data.h || 0), F.push(W)) : W = 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),
|
|
@@ -12904,14 +12904,14 @@ function requireLottie() {
|
|
|
12904
12904
|
}, i.appendChild(d);
|
|
12905
12905
|
else {
|
|
12906
12906
|
M += 1, d.setAttribute("fill", y[a].mode === "s" ? "#000000" : "#ffffff"), d.setAttribute("clip-rule", "nonzero");
|
|
12907
|
-
var
|
|
12908
|
-
if (y[a].x.k !== 0 ? (
|
|
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), Z = createNS("feMorphology"), Z.setAttribute("operator", "erode"), Z.setAttribute("in", "SourceGraphic"), Z.setAttribute("radius", "0"), K.appendChild(Z), i.appendChild(K), d.setAttribute("stroke", y[a].mode === "s" ? "#000000" : "#ffffff")) : (Z = null, re = null), this.storedData[a] = {
|
|
12909
12909
|
elem: d,
|
|
12910
12910
|
x: re,
|
|
12911
12911
|
expan: Z,
|
|
12912
12912
|
lastPath: "",
|
|
12913
12913
|
lastOperator: "",
|
|
12914
|
-
filterId:
|
|
12914
|
+
filterId: G,
|
|
12915
12915
|
lastRadius: 0
|
|
12916
12916
|
}, y[a].mode === "i") {
|
|
12917
12917
|
q = F.length;
|
|
@@ -12927,10 +12927,10 @@ 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: W
|
|
12931
12931
|
}, this.viewData[a].prop.k || this.drawPath(y[a], this.viewData[a].prop.v, this.viewData[a]);
|
|
12932
12932
|
}
|
|
12933
|
-
for (this.maskElement = createNS(
|
|
12933
|
+
for (this.maskElement = createNS(H), h = F.length, a = 0; a < h; a += 1)
|
|
12934
12934
|
this.maskElement.appendChild(F[a]);
|
|
12935
12935
|
M > 0 && (this.maskElement.setAttribute("id", V), this.element.maskedElement.setAttribute(J, "url(" + getLocationHref() + "#" + V + ")"), i.appendChild(this.maskElement)), this.viewData.length && this.element.addRenderableComponent(this);
|
|
12936
12936
|
}
|
|
@@ -13380,76 +13380,76 @@ function requireLottie() {
|
|
|
13380
13380
|
return null;
|
|
13381
13381
|
}
|
|
13382
13382
|
}
|
|
13383
|
-
function a(q, V,
|
|
13384
|
-
(
|
|
13383
|
+
function a(q, V, W) {
|
|
13384
|
+
(W || V.transform.op._mdf) && V.transform.container.setAttribute("opacity", V.transform.op.v), (W || 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, Z, re,
|
|
13390
|
-
for (
|
|
13391
|
-
if (
|
|
13392
|
-
for (ae = e.reset(), le = te - V.styles[
|
|
13393
|
-
|
|
13394
|
-
if (
|
|
13395
|
-
for (le = te - V.styles[
|
|
13388
|
+
function d(q, V, W) {
|
|
13389
|
+
var K, Z, re, H, J, G, Q = V.styles.length, te = V.lvl, ne, ae, le, he;
|
|
13390
|
+
for (G = 0; G < Q; G += 1) {
|
|
13391
|
+
if (H = V.sh._mdf || W, V.styles[G].lvl < te) {
|
|
13392
|
+
for (ae = e.reset(), le = te - V.styles[G].lvl, he = V.transformers.length - 1; !H && le > 0; )
|
|
13393
|
+
H = V.transformers[he].mProps._mdf || H, le -= 1, he -= 1;
|
|
13394
|
+
if (H)
|
|
13395
|
+
for (le = te - V.styles[G].lvl, he = V.transformers.length - 1; le > 0; )
|
|
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, Z = ne._length,
|
|
13399
|
+
if (ne = V.sh.paths, Z = ne._length, H) {
|
|
13400
13400
|
for (re = "", K = 0; K < Z; K += 1)
|
|
13401
13401
|
J = ne.shapes[K], J && J._length && (re += buildShapeString(J, J._length, J.c, ae));
|
|
13402
|
-
V.caches[
|
|
13402
|
+
V.caches[G] = re;
|
|
13403
13403
|
} else
|
|
13404
|
-
re = V.caches[
|
|
13405
|
-
V.styles[
|
|
13404
|
+
re = V.caches[G];
|
|
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, W) {
|
|
13409
13409
|
var K = V.style;
|
|
13410
|
-
(V.c._mdf ||
|
|
13410
|
+
(V.c._mdf || W) && K.pElem.setAttribute("fill", "rgb(" + bmFloor(V.c.v[0]) + "," + bmFloor(V.c.v[1]) + "," + bmFloor(V.c.v[2]) + ")"), (V.o._mdf || W) && K.pElem.setAttribute("fill-opacity", V.o.v);
|
|
13411
13411
|
}
|
|
13412
|
-
function M(q, V,
|
|
13413
|
-
F(q, V,
|
|
13412
|
+
function M(q, V, W) {
|
|
13413
|
+
F(q, V, W), j(q, V, W);
|
|
13414
13414
|
}
|
|
13415
|
-
function F(q, V,
|
|
13416
|
-
var K = V.gf, Z = V.g._hasOpacity, re = V.s.v,
|
|
13417
|
-
if (V.o._mdf ||
|
|
13415
|
+
function F(q, V, W) {
|
|
13416
|
+
var K = V.gf, Z = V.g._hasOpacity, re = V.s.v, H = V.e.v;
|
|
13417
|
+
if (V.o._mdf || W) {
|
|
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 ||
|
|
13422
|
-
var
|
|
13423
|
-
K.setAttribute(
|
|
13421
|
+
if (V.s._mdf || W) {
|
|
13422
|
+
var G = q.t === 1 ? "x1" : "cx", Q = G === "x1" ? "y1" : "cy";
|
|
13423
|
+
K.setAttribute(G, re[0]), K.setAttribute(Q, re[1]), Z && !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 || W) {
|
|
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 (Z && (V.g._omdf ||
|
|
13432
|
+
if (Z && (V.g._omdf || W)) {
|
|
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 || W) && (K.setAttribute("x2", H[0]), K.setAttribute("y2", H[1]), Z && !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 ||
|
|
13442
|
-
me || (me = Math.sqrt(Math.pow(re[0] -
|
|
13443
|
-
var de = Math.atan2(
|
|
13441
|
+
if ((V.s._mdf || V.e._mdf || W) && (me = Math.sqrt(Math.pow(re[0] - H[0], 2) + Math.pow(re[1] - H[1], 2)), K.setAttribute("r", me), Z && !V.g._collapsable && V.of.setAttribute("r", me)), V.s._mdf || V.e._mdf || V.h._mdf || V.a._mdf || W) {
|
|
13442
|
+
me || (me = Math.sqrt(Math.pow(re[0] - H[0], 2) + Math.pow(re[1] - H[1], 2)));
|
|
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
13446
|
K.setAttribute("fx", fe), K.setAttribute("fy", se), Z && !V.g._collapsable && (V.of.setAttribute("fx", fe), V.of.setAttribute("fy", se));
|
|
13447
13447
|
}
|
|
13448
13448
|
}
|
|
13449
13449
|
}
|
|
13450
|
-
function j(q, V,
|
|
13450
|
+
function j(q, V, W) {
|
|
13451
13451
|
var K = V.style, Z = V.d;
|
|
13452
|
-
Z && (Z._mdf ||
|
|
13452
|
+
Z && (Z._mdf || W) && Z.dashStr && (K.pElem.setAttribute("stroke-dasharray", Z.dashStr), K.pElem.setAttribute("stroke-dashoffset", Z.dashoffset[0])), V.c && (V.c._mdf || W) && K.pElem.setAttribute("stroke", "rgb(" + bmFloor(V.c.v[0]) + "," + bmFloor(V.c.v[1]) + "," + bmFloor(V.c.v[2]) + ")"), (V.o._mdf || W) && K.pElem.setAttribute("stroke-opacity", V.o.v), (V.w._mdf || W) && (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 = [], W = [], K, Z, 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 ? (Z = e[M], Z.closed = !1) : (Z = ShapeModifiers.getModifier(t[M].ty), Z.init(this, t[M]), e[M] = Z, this.shapeModifiers.push(Z)),
|
|
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 ? (Z = e[M], Z.closed = !1) : (Z = ShapeModifiers.getModifier(t[M].ty), Z.init(this, t[M]), e[M] = Z, this.shapeModifiers.push(Z)), W.push(Z)) : t[M].ty === "rp" && (re ? (Z = e[M], Z.closed = !0) : (Z = ShapeModifiers.getModifier(t[M].ty), e[M] = Z, Z.init(this, t, M, e), this.shapeModifiers.push(Z), d = !1), W.push(Z));
|
|
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 = W.length, M = 0; M < F; M += 1)
|
|
13537
|
+
W[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, W = [], K = 0, Z = 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)
|
|
@@ -13640,13 +13640,13 @@ function requireLottie() {
|
|
|
13640
13640
|
de = this.buildFinalText(t.t), me = 0, K = 0, h = de.length, ne = t.tr / 1e3 * t.finalSize;
|
|
13641
13641
|
var ve = -1;
|
|
13642
13642
|
for (a = 0; a < h; a += 1)
|
|
13643
|
-
ae = de[a].charCodeAt(0), d = !1, de[a] === " " ? ve = a : (ae === 13 || ae === 3) && (K = 0, d = !0, me += t.finalLineHeight || t.finalSize * 1.2), e.chars ? (
|
|
13643
|
+
ae = de[a].charCodeAt(0), d = !1, de[a] === " " ? ve = a : (ae === 13 || ae === 3) && (K = 0, d = !0, me += t.finalLineHeight || t.finalSize * 1.2), e.chars ? (G = e.getCharData(de[a], J.fStyle, J.fFamily), Q = d ? 0 : G.w * t.finalSize / 100) : Q = e.measureText(de[a], t.f, t.finalSize), K + Q > he && de[a] !== " " ? (ve === -1 ? h += 1 : a = ve, me += t.finalLineHeight || t.finalSize * 1.2, de.splice(a, ve === a ? 1 : 0, "\r"), ve = -1, K = 0) : (K += Q, K += ne);
|
|
13644
13644
|
me += J.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize && ye < me ? (t.finalSize -= 1, t.finalLineHeight = t.finalSize * t.lh / t.s) : (t.finalText = de, h = t.finalText.length, le = !1);
|
|
13645
13645
|
}
|
|
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, W.push(K), Z = K > Z ? K : Z, 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,7 +13669,7 @@ function requireLottie() {
|
|
|
13669
13669
|
}
|
|
13670
13670
|
} else
|
|
13671
13671
|
i[y].ind = y, i[y].extra = 0, y += 1;
|
|
13672
|
-
if (t.l = i, Z = K > Z ? K : Z,
|
|
13672
|
+
if (t.l = i, Z = K > Z ? K : Z, W.push(K), t.sz)
|
|
13673
13673
|
t.boxWidth = t.sz[0], t.justifyOffset = 0;
|
|
13674
13674
|
else
|
|
13675
13675
|
switch (t.boxWidth = Z, t.j) {
|
|
@@ -13682,11 +13682,11 @@ function requireLottie() {
|
|
|
13682
13682
|
default:
|
|
13683
13683
|
t.justifyOffset = 0;
|
|
13684
13684
|
}
|
|
13685
|
-
t.lineWidths =
|
|
13685
|
+
t.lineWidths = W;
|
|
13686
13686
|
var se = r.a, ce, ee;
|
|
13687
|
-
|
|
13687
|
+
H = se.length;
|
|
13688
13688
|
var ie, ue, oe = [];
|
|
13689
|
-
for (re = 0; re <
|
|
13689
|
+
for (re = 0; re < H; re += 1) {
|
|
13690
13690
|
for (ce = se[re], ce.a.sc && (t.strokeColorAnim = !0), ce.a.sw && (t.strokeWidthAnim = !0), (ce.a.fc || ce.a.fh || ce.a.fs || ce.a.fb) && (t.fillColorAnim = !0), ue = 0, ie = ce.s.b, a = 0; a < h; a += 1)
|
|
13691
13691
|
ee = i[a], ee.anIndexes[re] = ue, (ie == 1 && ee.val !== "" || ie == 2 && ee.val !== "" && ee.val !== " " || ie == 3 && (ee.n || ee.val == " " || a == h - 1) || ie == 4 && (ee.n || a == h - 1)) && (ce.s.rn === 1 && oe.push(ue), ue += 1);
|
|
13692
13692
|
r.a[re].s.totalChars = ue;
|
|
@@ -13730,29 +13730,29 @@ 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,
|
|
13733
|
+
var q = BezierFactory.getBezierEasing(y, M, F, j).get, V = 0, W = this.finalS, K = this.finalE, Z = this.data.sh;
|
|
13734
13734
|
if (Z === 2)
|
|
13735
|
-
K ===
|
|
13735
|
+
K === W ? V = d >= K ? 1 : 0 : V = t(0, e(0.5 / (K - W) + (d - W) / (K - W), 1)), V = q(V);
|
|
13736
13736
|
else if (Z === 3)
|
|
13737
|
-
K ===
|
|
13737
|
+
K === W ? V = d >= K ? 0 : 1 : V = 1 - t(0, e(0.5 / (K - W) + (d - W) / (K - W), 1)), V = q(V);
|
|
13738
13738
|
else if (Z === 4)
|
|
13739
|
-
K ===
|
|
13739
|
+
K === W ? V = 0 : (V = t(0, e(0.5 / (K - W) + (d - W) / (K - W), 1)), V < 0.5 ? V *= 2 : V = 1 - 2 * (V - 0.5)), V = q(V);
|
|
13740
13740
|
else if (Z === 5) {
|
|
13741
|
-
if (K ===
|
|
13741
|
+
if (K === W)
|
|
13742
13742
|
V = 0;
|
|
13743
13743
|
else {
|
|
13744
|
-
var re = K -
|
|
13745
|
-
d = e(t(0, d + 0.5 -
|
|
13746
|
-
var
|
|
13747
|
-
V = Math.sqrt(1 -
|
|
13744
|
+
var re = K - W;
|
|
13745
|
+
d = e(t(0, d + 0.5 - W), K - W);
|
|
13746
|
+
var H = -re / 2 + d, J = re / 2;
|
|
13747
|
+
V = Math.sqrt(1 - H * H / (J * J));
|
|
13748
13748
|
}
|
|
13749
13749
|
V = q(V);
|
|
13750
|
-
} else Z === 6 ? (K ===
|
|
13750
|
+
} else Z === 6 ? (K === W ? V = 0 : (d = e(t(0, d + 0.5 - W), K - W), V = (1 + Math.cos(Math.PI + Math.PI * 2 * d / (K - W))) / 2), V = q(V)) : (d >= r(W) && (d - W < 0 ? V = t(0, e(e(K, 1) - (W - d), 1)) : V = t(0, e(K - d, 1))), V = q(V));
|
|
13751
13751
|
if (this.sm.v !== 100) {
|
|
13752
|
-
var
|
|
13753
|
-
|
|
13754
|
-
var Q = 0.5 -
|
|
13755
|
-
V < Q ? V = 0 : (V = (V - Q) /
|
|
13752
|
+
var G = this.sm.v * 0.01;
|
|
13753
|
+
G === 0 && (G = 1e-8);
|
|
13754
|
+
var Q = 0.5 - G * 0.5;
|
|
13755
|
+
V < Q ? V = 0 : (V = (V - Q) / G, V > 1 && (V = 1));
|
|
13756
13756
|
}
|
|
13757
13757
|
return V * this.a.v;
|
|
13758
13758
|
},
|
|
@@ -13816,28 +13816,28 @@ 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, W, K, Z, 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()), W = {
|
|
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]]), W.tLength += ve.segmentLength, W.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]]), W.tLength += ve.segmentLength, W.segments.push(ve), le += ve.segmentLength), this._pathData.pi = W;
|
|
13831
13831
|
}
|
|
13832
|
-
if (
|
|
13833
|
-
for (
|
|
13834
|
-
K += te[J].partialLength, J -= 1, J < 0 && (
|
|
13835
|
-
te = ne[
|
|
13832
|
+
if (W = this._pathData.pi, K = this._pathData.f.v, G = 0, J = 1, re = 0, H = !0, ne = W.segments, K < 0 && me.v.c)
|
|
13833
|
+
for (W.tLength < Math.abs(K) && (K = -Math.abs(K) % W.tLength), G = ne.length - 1, te = ne[G].points, J = te.length - 1; K < 0; )
|
|
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], Z = te[J], ae = Z.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;
|
|
13839
13839
|
ie = i.length;
|
|
13840
|
-
var oe, pe = -1, xe, be, Ce, Te = K, _e =
|
|
13840
|
+
var oe, pe = -1, xe, be, Ce, Te = K, _e = G, Pe = J, Me = -1, Ae, Ee, ke, we, Se, De, je, Ne, Oe = "", Le = this.defaultPropsArray, Ve;
|
|
13841
13841
|
if (t.j === 2 || t.j === 1) {
|
|
13842
13842
|
var Ie = 0, Ze = 0, Be = t.j === 2 ? -0.5 : -1, Fe = 0, $e = !0;
|
|
13843
13843
|
for (j = 0; j < q; j += 1)
|
|
@@ -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 && (
|
|
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], Z = te[J], ae = Z.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) {
|
|
@@ -13873,8 +13873,8 @@ function requireLottie() {
|
|
|
13873
13873
|
var Re = 0;
|
|
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
|
-
for (
|
|
13877
|
-
re + ae >= K + Re || !te ? (he = (K + Re - re) / Z.partialLength, be = Q.point[0] + (Z.point[0] - Q.point[0]) * he, Ce = Q.point[1] + (Z.point[1] - Q.point[1]) * he, h.translate(-r[0] * V[j].an * 5e-3, -(r[1] * ge) * 0.01),
|
|
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) / Z.partialLength, be = Q.point[0] + (Z.point[0] - Q.point[0]) * he, Ce = Q.point[1] + (Z.point[1] - Q.point[1]) * he, h.translate(-r[0] * V[j].an * 5e-3, -(r[1] * ge) * 0.01), H = !1) : te && (re += Z.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 -= Z.partialLength, te = null)), te && (Q = Z, Z = te[J], ae = Z.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);
|
|
@@ -13992,37 +13992,37 @@ 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, W = 0, K = !0, Z = r.tr * 1e-3 * r.finalSize;
|
|
13996
13996
|
if (q && !y && !r.sz) {
|
|
13997
|
-
var re = this.textContainer,
|
|
13997
|
+
var re = this.textContainer, H = "start";
|
|
13998
13998
|
switch (r.j) {
|
|
13999
13999
|
case 1:
|
|
14000
|
-
|
|
14000
|
+
H = "end";
|
|
14001
14001
|
break;
|
|
14002
14002
|
case 2:
|
|
14003
|
-
|
|
14003
|
+
H = "middle";
|
|
14004
14004
|
break;
|
|
14005
14005
|
default:
|
|
14006
|
-
|
|
14006
|
+
H = "start";
|
|
14007
14007
|
break;
|
|
14008
14008
|
}
|
|
14009
|
-
re.setAttribute("text-anchor",
|
|
14009
|
+
re.setAttribute("text-anchor", H), re.setAttribute("letter-spacing", Z);
|
|
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, W = 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", W), 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, W += r.finalLineHeight;
|
|
14016
14016
|
this.layerElement.appendChild(re);
|
|
14017
14017
|
} else {
|
|
14018
|
-
var
|
|
14018
|
+
var G = this.textSpans.length, Q;
|
|
14019
14019
|
for (t = 0; t < e; t += 1) {
|
|
14020
14020
|
if (this.textSpans[t] || (this.textSpans[t] = {
|
|
14021
14021
|
span: null,
|
|
14022
14022
|
childSpan: null,
|
|
14023
14023
|
glyph: null
|
|
14024
14024
|
}), !y || !q || t === 0) {
|
|
14025
|
-
if (M =
|
|
14025
|
+
if (M = G > t ? this.textSpans[t].span : createNS(y ? "g" : "text"), G <= t) {
|
|
14026
14026
|
if (M.setAttribute("stroke-linecap", "butt"), M.setAttribute("stroke-linejoin", "round"), M.setAttribute("stroke-miterlimit", "4"), this.textSpans[t].span = M, y) {
|
|
14027
14027
|
var te = createNS("g");
|
|
14028
14028
|
M.appendChild(te), this.textSpans[t].childSpan = te;
|
|
@@ -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 = -Z,
|
|
14034
|
+
if (F.reset(), q && (d[t].n && (V = -Z, W += r.yOffset, W += K ? 1 : 0, K = !1), this.applyTextPropertiesToMatrix(r, F, d[t].line, V, W), V += d[t].l || 0, V += Z), 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, W, 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 || (W = this.createTransformElement(t[h]), e[h] = W), 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,12 +14627,12 @@ 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], W = Math.sin(F + e.a.v) * q + d[1];
|
|
14631
|
+
a = h.createRadialGradient(V, W, 0, d[0], d[1], M);
|
|
14632
14632
|
}
|
|
14633
|
-
var K, Z = t.g.p, re = e.g.c,
|
|
14633
|
+
var K, Z = t.g.p, re = e.g.c, H = 1;
|
|
14634
14634
|
for (K = 0; K < Z; K += 1)
|
|
14635
|
-
e.g._hasOpacity && e.g._collapsable && (
|
|
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
|
}
|
|
14638
14638
|
i.coOp = e.o.v * r.opacity;
|
|
@@ -14659,17 +14659,17 @@ 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, W, K, Z, 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
|
-
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 = -
|
|
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 &&
|
|
14670
|
-
|
|
14666
|
+
for (W = 0; W < K; W += 1)
|
|
14667
|
+
if (V[W].ty === "sh") {
|
|
14668
|
+
for (q = V[W].ks.k.i.length, Z = V[W].ks.k, H = [], j = 1; j < q; j += 1)
|
|
14669
|
+
j === 1 && H.push(y.applyToX(Z.v[0][0], Z.v[0][1], 0), y.applyToY(Z.v[0][0], Z.v[0][1], 0)), H.push(y.applyToX(Z.o[j - 1][0], Z.o[j - 1][1], 0), y.applyToY(Z.o[j - 1][0], Z.o[j - 1][1], 0), y.applyToX(Z.i[j][0], Z.i[j][1], 0), y.applyToY(Z.i[j][0], Z.i[j][1], 0), y.applyToX(Z.v[j][0], Z.v[j][1], 0), y.applyToY(Z.v[j][0], Z.v[j][1], 0));
|
|
14670
|
+
H.push(y.applyToX(Z.o[j - 1][0], Z.o[j - 1][1], 0), y.applyToY(Z.o[j - 1][0], Z.o[j - 1][1], 0), y.applyToX(Z.i[0][0], Z.i[0][1], 0), y.applyToY(Z.i[0][0], Z.i[0][1], 0), y.applyToX(Z.v[0][0], Z.v[0][1], 0), y.applyToY(Z.v[0][0], Z.v[0][1], 0)), re[le] = H, le += 1;
|
|
14671
14671
|
}
|
|
14672
|
-
J && (Q += d[a].l, Q +=
|
|
14672
|
+
J && (Q += d[a].l, Q += G), this.textSpans[ae] ? this.textSpans[ae].elem = re : this.textSpans[ae] = {
|
|
14673
14673
|
elem: re
|
|
14674
14674
|
}, ae += 1;
|
|
14675
14675
|
}
|
|
@@ -14679,18 +14679,18 @@ 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, W, K, Z = this.globalData.renderer;
|
|
14683
14683
|
for (e = 0; e < r; e += 1)
|
|
14684
14684
|
if (!M[e].n) {
|
|
14685
14685
|
if (F = y[e], F && (Z.save(), Z.ctxTransform(F.p), Z.ctxOpacity(F.o)), this.fill) {
|
|
14686
|
-
for (F && F.fc ? j !== F.fc && (Z.ctxFillStyle(F.fc), j = F.fc) : j !== this.values.fill && (j = this.values.fill, Z.ctxFillStyle(this.values.fill)),
|
|
14687
|
-
for (K =
|
|
14686
|
+
for (F && F.fc ? j !== F.fc && (Z.ctxFillStyle(F.fc), j = F.fc) : j !== this.values.fill && (j = this.values.fill, Z.ctxFillStyle(this.values.fill)), W = this.textSpans[e].elem, a = W.length, this.globalData.canvasContext.beginPath(), i = 0; i < a; i += 1)
|
|
14687
|
+
for (K = W[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
14689
|
this.globalData.canvasContext.closePath(), Z.ctxFill();
|
|
14690
14690
|
}
|
|
14691
14691
|
if (this.stroke) {
|
|
14692
|
-
for (F && F.sw ? V !== F.sw && (V = F.sw, Z.ctxLineWidth(F.sw)) : V !== this.values.sWidth && (V = this.values.sWidth, Z.ctxLineWidth(this.values.sWidth)), F && F.sc ? q !== F.sc && (q = F.sc, Z.ctxStrokeStyle(F.sc)) : q !== this.values.stroke && (q = this.values.stroke, Z.ctxStrokeStyle(this.values.stroke)),
|
|
14693
|
-
for (K =
|
|
14692
|
+
for (F && F.sw ? V !== F.sw && (V = F.sw, Z.ctxLineWidth(F.sw)) : V !== this.values.sWidth && (V = this.values.sWidth, Z.ctxLineWidth(this.values.sWidth)), F && F.sc ? q !== F.sc && (q = F.sc, Z.ctxStrokeStyle(F.sc)) : q !== this.values.stroke && (q = this.values.stroke, Z.ctxStrokeStyle(this.values.stroke)), W = this.textSpans[e].elem, a = W.length, this.globalData.canvasContext.beginPath(), i = 0; i < a; i += 1)
|
|
14693
|
+
for (K = W[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
14695
|
this.globalData.canvasContext.closePath(), Z.ctxStroke();
|
|
14696
14696
|
}
|
|
@@ -15091,19 +15091,19 @@ 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, W, K = "", Z = 0;
|
|
15095
15095
|
for (d = 0; d < y; d += 1) {
|
|
15096
15096
|
if (this.globalData.fontManager.chars ? (this.textPaths[Z] ? F = this.textPaths[Z] : (F = createNS("path"), F.setAttribute("stroke-linecap", lineCapEnum[1]), F.setAttribute("stroke-linejoin", lineJoinEnum[2]), F.setAttribute("stroke-miterlimit", "4")), this.isMasked || (this.textSpans[Z] ? (j = this.textSpans[Z], q = j.children[0]) : (j = createTag("div"), j.style.lineHeight = 0, q = createNS("svg"), q.appendChild(F), styleDiv(j)))) : this.isMasked ? F = this.textPaths[Z] ? this.textPaths[Z] : createNS("text") : this.textSpans[Z] ? (j = this.textSpans[Z], F = this.textPaths[Z]) : (j = createTag("span"), styleDiv(j), F = createTag("span"), styleDiv(F), j.appendChild(F)), this.globalData.fontManager.chars) {
|
|
15097
|
-
var re = this.globalData.fontManager.getCharData(t.finalText[d], i.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily),
|
|
15098
|
-
if (re ?
|
|
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 && (W = H.shapes[0].it, V.scale(t.finalSize / 100, t.finalSize / 100), K = this.createPathShape(V, W), F.setAttribute("d", K)), this.isMasked)
|
|
15099
15099
|
this.innerElem.appendChild(F);
|
|
15100
15100
|
else {
|
|
15101
|
-
if (this.innerElem.appendChild(j),
|
|
15101
|
+
if (this.innerElem.appendChild(j), H && H.shapes) {
|
|
15102
15102
|
document.body.appendChild(q);
|
|
15103
15103
|
var J = q.getBBox();
|
|
15104
15104
|
q.setAttribute("width", J.width + 2), q.setAttribute("height", J.height + 2), q.setAttribute("viewBox", J.x - 1 + " " + (J.y - 1) + " " + (J.width + 2) + " " + (J.height + 2));
|
|
15105
|
-
var
|
|
15106
|
-
|
|
15105
|
+
var G = q.style, Q = "translate(" + (J.x - 1) + "px," + (J.y - 1) + "px)";
|
|
15106
|
+
G.transform = Q, G.webkitTransform = Q, M[d].yOffset = J.y - 1;
|
|
15107
15107
|
} else
|
|
15108
15108
|
q.setAttribute("width", 1), q.setAttribute("height", 1);
|
|
15109
15109
|
j.appendChild(q);
|
|
@@ -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, W;
|
|
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
|
+
W = q.container.style, W.transform = K, W.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
|
}
|
|
@@ -15408,12 +15408,12 @@ function requireLottie() {
|
|
|
15408
15408
|
}
|
|
15409
15409
|
function seedRandom(t, e) {
|
|
15410
15410
|
var r = this, i = 256, a = 6, h = 52, d = "random", y = e.pow(i, a), M = e.pow(2, h), F = M * 2, j = i - 1, q;
|
|
15411
|
-
function V(
|
|
15411
|
+
function V(G, Q, te) {
|
|
15412
15412
|
var ne = [];
|
|
15413
15413
|
Q = Q === !0 ? {
|
|
15414
15414
|
entropy: !0
|
|
15415
15415
|
} : Q || {};
|
|
15416
|
-
var ae = re(Z(Q.entropy ? [
|
|
15416
|
+
var ae = re(Z(Q.entropy ? [G, J(t)] : G === null ? H() : G, 3), ne), le = new W(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,47 +15431,47 @@ 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
|
|
15435
|
-
var Q, te =
|
|
15436
|
-
for (te || (
|
|
15434
|
+
function W(G) {
|
|
15435
|
+
var Q, te = G.length, ne = this, ae = 0, le = ne.i = ne.j = 0, he = ne.S = [];
|
|
15436
|
+
for (te || (G = [te++]); ae < i; )
|
|
15437
15437
|
he[ae] = ae++;
|
|
15438
15438
|
for (ae = 0; ae < i; ae++)
|
|
15439
|
-
he[ae] = he[le = j & le +
|
|
15439
|
+
he[ae] = he[le = j & le + G[ae % te] + (Q = he[ae])], he[le] = Q;
|
|
15440
15440
|
ne.g = function(ye) {
|
|
15441
15441
|
for (var me, de = 0, ve = ne.i, ge = ne.j, fe = ne.S; ye--; )
|
|
15442
15442
|
me = fe[ve = j & ve + 1], de = de * i + fe[j & (fe[ve] = fe[ge = j & ge + me]) + (fe[ge] = me)];
|
|
15443
15443
|
return ne.i = ve, ne.j = ge, de;
|
|
15444
15444
|
};
|
|
15445
15445
|
}
|
|
15446
|
-
function K(
|
|
15447
|
-
return Q.i =
|
|
15446
|
+
function K(G, Q) {
|
|
15447
|
+
return Q.i = G.i, Q.j = G.j, Q.S = G.S.slice(), Q;
|
|
15448
15448
|
}
|
|
15449
|
-
function Z(
|
|
15450
|
-
var te = [], ne = _typeof$2(
|
|
15449
|
+
function Z(G, Q) {
|
|
15450
|
+
var te = [], ne = _typeof$2(G), ae;
|
|
15451
15451
|
if (Q && ne == "object")
|
|
15452
|
-
for (ae in
|
|
15452
|
+
for (ae in G)
|
|
15453
15453
|
try {
|
|
15454
|
-
te.push(Z(
|
|
15454
|
+
te.push(Z(G[ae], Q - 1));
|
|
15455
15455
|
} catch {
|
|
15456
15456
|
}
|
|
15457
|
-
return te.length ? te : ne == "string" ?
|
|
15457
|
+
return te.length ? te : ne == "string" ? G : G + "\0";
|
|
15458
15458
|
}
|
|
15459
|
-
function re(
|
|
15460
|
-
for (var te =
|
|
15459
|
+
function re(G, Q) {
|
|
15460
|
+
for (var te = G + "", ne, ae = 0; ae < te.length; )
|
|
15461
15461
|
Q[j & ae] = j & (ne ^= Q[j & ae] * 19) + te.charCodeAt(ae++);
|
|
15462
15462
|
return J(Q);
|
|
15463
15463
|
}
|
|
15464
|
-
function
|
|
15464
|
+
function H() {
|
|
15465
15465
|
try {
|
|
15466
|
-
var
|
|
15467
|
-
return (r.crypto || r.msCrypto).getRandomValues(
|
|
15466
|
+
var G = new Uint8Array(i);
|
|
15467
|
+
return (r.crypto || r.msCrypto).getRandomValues(G), J(G);
|
|
15468
15468
|
} catch {
|
|
15469
15469
|
var Q = r.navigator, te = Q && Q.plugins;
|
|
15470
15470
|
return [+/* @__PURE__ */ new Date(), r, te, r.screen, J(t)];
|
|
15471
15471
|
}
|
|
15472
15472
|
}
|
|
15473
|
-
function J(
|
|
15474
|
-
return String.fromCharCode.apply(0,
|
|
15473
|
+
function J(G) {
|
|
15474
|
+
return String.fromCharCode.apply(0, G);
|
|
15475
15475
|
}
|
|
15476
15476
|
re(e.random(), t);
|
|
15477
15477
|
}
|
|
@@ -16041,17 +16041,17 @@ function requireLottie() {
|
|
|
16041
16041
|
return function(F) {
|
|
16042
16042
|
var j;
|
|
16043
16043
|
function q(Z) {
|
|
16044
|
-
|
|
16044
|
+
W.mask = new MaskManagerInterface(Z, F);
|
|
16045
16045
|
}
|
|
16046
16046
|
function V(Z) {
|
|
16047
|
-
|
|
16047
|
+
W.effect = Z;
|
|
16048
16048
|
}
|
|
16049
|
-
function
|
|
16049
|
+
function W(Z) {
|
|
16050
16050
|
switch (Z) {
|
|
16051
16051
|
case "ADBE Root Vectors Group":
|
|
16052
16052
|
case "Contents":
|
|
16053
16053
|
case 2:
|
|
16054
|
-
return
|
|
16054
|
+
return W.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 W.effect;
|
|
16066
16066
|
case "ADBE Text Properties":
|
|
16067
|
-
return
|
|
16067
|
+
return W.textInterface;
|
|
16068
16068
|
default:
|
|
16069
16069
|
return null;
|
|
16070
16070
|
}
|
|
16071
16071
|
}
|
|
16072
|
-
|
|
16072
|
+
W.getMatrix = t, W.invertPoint = d, W.applyPoint = h, W.toWorld = r, W.toWorldVec = e, W.fromWorld = a, W.fromWorldVec = i, W.toComp = r, W.fromComp = y, W.sampleImage = M, W.sourceRectAtTime = F.sourceRectAtTime.bind(F), W._elem = F, j = TransformExpressionInterface(F.finalTransform.mProp);
|
|
16073
16073
|
var K = getDescriptor(j, "anchorPoint");
|
|
16074
|
-
return Object.defineProperties(
|
|
16074
|
+
return Object.defineProperties(W, {
|
|
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
|
+
}), W.startTime = F.data.st, W.index = F.data.ind, W.source = F.data.refId, W.height = F.data.ty === 0 ? F.data.h : 100, W.width = F.data.ty === 0 ? F.data.w : 100, W.inPoint = F.data.ip / F.comp.globalData.frameRate, W.outPoint = F.data.op / F.comp.globalData.frameRate, W._name = F.data.nm, W.registerMaskInterface = q, W.registerEffectsInterface = V, W;
|
|
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(W) {
|
|
16129
16129
|
for (M = 0, F = j.length; M < F; ) {
|
|
16130
|
-
if (
|
|
16130
|
+
if (W === j[M].nm || W === j[M].mn || W === j[M].ix)
|
|
16131
16131
|
return d[M];
|
|
16132
16132
|
M += 1;
|
|
16133
16133
|
}
|
|
@@ -16142,9 +16142,9 @@ function requireLottie() {
|
|
|
16142
16142
|
return null;
|
|
16143
16143
|
}
|
|
16144
16144
|
function r(a, h, d, y) {
|
|
16145
|
-
function M(
|
|
16145
|
+
function M(W) {
|
|
16146
16146
|
for (var K = a.ef, Z = 0, re = K.length; Z < re; ) {
|
|
16147
|
-
if (
|
|
16147
|
+
if (W === K[Z].nm || W === K[Z].mn || W === K[Z].ix)
|
|
16148
16148
|
return K[Z].ty === 5 ? j[Z] : j[Z]();
|
|
16149
16149
|
Z += 1;
|
|
16150
16150
|
}
|
|
@@ -16216,51 +16216,51 @@ function requireLottie() {
|
|
|
16216
16216
|
};
|
|
16217
16217
|
})(), ShapeExpressionInterface = /* @__PURE__ */ (function() {
|
|
16218
16218
|
function t(K, Z, re) {
|
|
16219
|
-
var
|
|
16220
|
-
for (J = 0; J <
|
|
16221
|
-
K[J].ty === "gr" ?
|
|
16222
|
-
return
|
|
16219
|
+
var H = [], J, G = K ? K.length : 0;
|
|
16220
|
+
for (J = 0; J < G; J += 1)
|
|
16221
|
+
K[J].ty === "gr" ? H.push(r(K[J], Z[J], re)) : K[J].ty === "fl" ? H.push(i(K[J], Z[J], re)) : K[J].ty === "st" ? H.push(d(K[J], Z[J], re)) : K[J].ty === "tm" ? H.push(y(K[J], Z[J], re)) : K[J].ty === "tr" || (K[J].ty === "el" ? H.push(F(K[J], Z[J], re)) : K[J].ty === "sr" ? H.push(j(K[J], Z[J], re)) : K[J].ty === "sh" ? H.push(ShapePathInterface(K[J], Z[J], re)) : K[J].ty === "rc" ? H.push(q(K[J], Z[J], re)) : K[J].ty === "rd" ? H.push(V(K[J], Z[J], re)) : K[J].ty === "rp" ? H.push(W(K[J], Z[J], re)) : K[J].ty === "gf" ? H.push(a(K[J], Z[J], re)) : H.push(h(K[J], Z[J])));
|
|
16222
|
+
return H;
|
|
16223
16223
|
}
|
|
16224
16224
|
function e(K, Z, re) {
|
|
16225
|
-
var
|
|
16226
|
-
for (var ne = 0, ae =
|
|
16227
|
-
if (
|
|
16228
|
-
return
|
|
16225
|
+
var H, J = function(te) {
|
|
16226
|
+
for (var ne = 0, ae = H.length; ne < ae; ) {
|
|
16227
|
+
if (H[ne]._name === te || H[ne].mn === te || H[ne].propertyIndex === te || H[ne].ix === te || H[ne].ind === te)
|
|
16228
|
+
return H[ne];
|
|
16229
16229
|
ne += 1;
|
|
16230
16230
|
}
|
|
16231
|
-
return typeof te == "number" ?
|
|
16231
|
+
return typeof te == "number" ? H[te - 1] : null;
|
|
16232
16232
|
};
|
|
16233
|
-
J.propertyGroup = propertyGroupFactory(J, re),
|
|
16234
|
-
var
|
|
16235
|
-
return J.transform =
|
|
16233
|
+
J.propertyGroup = propertyGroupFactory(J, re), H = t(K.it, Z.it, J.propertyGroup), J.numProperties = H.length;
|
|
16234
|
+
var G = M(K.it[K.it.length - 1], Z.it[Z.it.length - 1], J.propertyGroup);
|
|
16235
|
+
return J.transform = G, J.propertyIndex = K.cix, J._name = K.nm, J;
|
|
16236
16236
|
}
|
|
16237
16237
|
function r(K, Z, re) {
|
|
16238
|
-
var
|
|
16238
|
+
var H = function(te) {
|
|
16239
16239
|
switch (te) {
|
|
16240
16240
|
case "ADBE Vectors Group":
|
|
16241
16241
|
case "Contents":
|
|
16242
16242
|
case 2:
|
|
16243
|
-
return
|
|
16243
|
+
return H.content;
|
|
16244
16244
|
// Not necessary for now. Keeping them here in case a new case appears
|
|
16245
16245
|
// case 'ADBE Vector Transform Group':
|
|
16246
16246
|
// case 3:
|
|
16247
16247
|
default:
|
|
16248
|
-
return
|
|
16248
|
+
return H.transform;
|
|
16249
16249
|
}
|
|
16250
16250
|
};
|
|
16251
|
-
|
|
16252
|
-
var J = e(K, Z,
|
|
16253
|
-
return
|
|
16251
|
+
H.propertyGroup = propertyGroupFactory(H, re);
|
|
16252
|
+
var J = e(K, Z, H.propertyGroup), G = M(K.it[K.it.length - 1], Z.it[Z.it.length - 1], H.propertyGroup);
|
|
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
16259
|
function i(K, Z, re) {
|
|
16260
|
-
function
|
|
16261
|
-
return J === "Color" || J === "color" ?
|
|
16260
|
+
function H(J) {
|
|
16261
|
+
return J === "Color" || J === "color" ? H.color : J === "Opacity" || J === "opacity" ? H.opacity : null;
|
|
16262
16262
|
}
|
|
16263
|
-
return Object.defineProperties(
|
|
16263
|
+
return Object.defineProperties(H, {
|
|
16264
16264
|
color: {
|
|
16265
16265
|
get: ExpressionPropertyInterface(Z.c)
|
|
16266
16266
|
},
|
|
@@ -16273,13 +16273,13 @@ function requireLottie() {
|
|
|
16273
16273
|
mn: {
|
|
16274
16274
|
value: K.mn
|
|
16275
16275
|
}
|
|
16276
|
-
}), Z.c.setGroupProperty(PropertyInterface("Color", re)), Z.o.setGroupProperty(PropertyInterface("Opacity", re)),
|
|
16276
|
+
}), Z.c.setGroupProperty(PropertyInterface("Color", re)), Z.o.setGroupProperty(PropertyInterface("Opacity", re)), H;
|
|
16277
16277
|
}
|
|
16278
16278
|
function a(K, Z, re) {
|
|
16279
|
-
function
|
|
16280
|
-
return J === "Start Point" || J === "start point" ?
|
|
16279
|
+
function H(J) {
|
|
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
|
-
return Object.defineProperties(
|
|
16282
|
+
return Object.defineProperties(H, {
|
|
16283
16283
|
startPoint: {
|
|
16284
16284
|
get: ExpressionPropertyInterface(Z.s)
|
|
16285
16285
|
},
|
|
@@ -16300,7 +16300,7 @@ function requireLottie() {
|
|
|
16300
16300
|
mn: {
|
|
16301
16301
|
value: K.mn
|
|
16302
16302
|
}
|
|
16303
|
-
}), Z.s.setGroupProperty(PropertyInterface("Start Point", re)), Z.e.setGroupProperty(PropertyInterface("End Point", re)), Z.o.setGroupProperty(PropertyInterface("Opacity", re)),
|
|
16303
|
+
}), Z.s.setGroupProperty(PropertyInterface("Start Point", re)), Z.e.setGroupProperty(PropertyInterface("End Point", re)), Z.o.setGroupProperty(PropertyInterface("Opacity", re)), H;
|
|
16304
16304
|
}
|
|
16305
16305
|
function h() {
|
|
16306
16306
|
function K() {
|
|
@@ -16309,15 +16309,15 @@ function requireLottie() {
|
|
|
16309
16309
|
return K;
|
|
16310
16310
|
}
|
|
16311
16311
|
function d(K, Z, re) {
|
|
16312
|
-
var
|
|
16313
|
-
function
|
|
16312
|
+
var H = propertyGroupFactory(ae, re), J = propertyGroupFactory(ne, H);
|
|
16313
|
+
function G(le) {
|
|
16314
16314
|
Object.defineProperty(ne, K.d[le].nm, {
|
|
16315
16315
|
get: ExpressionPropertyInterface(Z.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
|
-
|
|
16320
|
+
G(Q), Z.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
|
}
|
|
@@ -16342,14 +16342,14 @@ function requireLottie() {
|
|
|
16342
16342
|
mn: {
|
|
16343
16343
|
value: K.mn
|
|
16344
16344
|
}
|
|
16345
|
-
}), Z.c.setGroupProperty(PropertyInterface("Color",
|
|
16345
|
+
}), Z.c.setGroupProperty(PropertyInterface("Color", H)), Z.o.setGroupProperty(PropertyInterface("Opacity", H)), Z.w.setGroupProperty(PropertyInterface("Stroke Width", H)), ae;
|
|
16346
16346
|
}
|
|
16347
16347
|
function y(K, Z, re) {
|
|
16348
|
-
function G
|
|
16349
|
-
return
|
|
16348
|
+
function H(G) {
|
|
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
|
-
var J = propertyGroupFactory(
|
|
16352
|
-
return
|
|
16351
|
+
var J = propertyGroupFactory(H, re);
|
|
16352
|
+
return H.propertyIndex = K.ix, Z.s.setGroupProperty(PropertyInterface("Start", J)), Z.e.setGroupProperty(PropertyInterface("End", J)), Z.o.setGroupProperty(PropertyInterface("Offset", J)), H.propertyIndex = K.ix, H.propertyGroup = re, Object.defineProperties(H, {
|
|
16353
16353
|
start: {
|
|
16354
16354
|
get: ExpressionPropertyInterface(Z.s)
|
|
16355
16355
|
},
|
|
@@ -16362,14 +16362,14 @@ function requireLottie() {
|
|
|
16362
16362
|
_name: {
|
|
16363
16363
|
value: K.nm
|
|
16364
16364
|
}
|
|
16365
|
-
}),
|
|
16365
|
+
}), H.mn = K.mn, H;
|
|
16366
16366
|
}
|
|
16367
16367
|
function M(K, Z, re) {
|
|
16368
|
-
function G
|
|
16369
|
-
return K.a.ix ===
|
|
16368
|
+
function H(G) {
|
|
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
|
-
var J = propertyGroupFactory(
|
|
16372
|
-
return Z.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity", J)), Z.transform.mProps.p.setGroupProperty(PropertyInterface("Position", J)), Z.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point", J)), Z.transform.mProps.s.setGroupProperty(PropertyInterface("Scale", J)), Z.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation", J)), Z.transform.mProps.sk && (Z.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew", J)), Z.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle", J))), Z.transform.op.setGroupProperty(PropertyInterface("Opacity", J)), Object.defineProperties(
|
|
16371
|
+
var J = propertyGroupFactory(H, re);
|
|
16372
|
+
return Z.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity", J)), Z.transform.mProps.p.setGroupProperty(PropertyInterface("Position", J)), Z.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point", J)), Z.transform.mProps.s.setGroupProperty(PropertyInterface("Scale", J)), Z.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation", J)), Z.transform.mProps.sk && (Z.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew", J)), Z.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle", J))), Z.transform.op.setGroupProperty(PropertyInterface("Opacity", J)), Object.defineProperties(H, {
|
|
16373
16373
|
opacity: {
|
|
16374
16374
|
get: ExpressionPropertyInterface(Z.transform.mProps.o)
|
|
16375
16375
|
},
|
|
@@ -16394,126 +16394,126 @@ function requireLottie() {
|
|
|
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
16399
|
function F(K, Z, re) {
|
|
16400
|
-
function
|
|
16401
|
-
return K.p.ix === Q ?
|
|
16400
|
+
function H(Q) {
|
|
16401
|
+
return K.p.ix === Q ? H.position : K.s.ix === Q ? H.size : null;
|
|
16402
16402
|
}
|
|
16403
|
-
var J = propertyGroupFactory(
|
|
16404
|
-
|
|
16405
|
-
var
|
|
16406
|
-
return
|
|
16403
|
+
var J = propertyGroupFactory(H, re);
|
|
16404
|
+
H.propertyIndex = K.ix;
|
|
16405
|
+
var G = Z.sh.ty === "tm" ? Z.sh.prop : Z.sh;
|
|
16406
|
+
return G.s.setGroupProperty(PropertyInterface("Size", J)), G.p.setGroupProperty(PropertyInterface("Position", J)), Object.defineProperties(H, {
|
|
16407
16407
|
size: {
|
|
16408
|
-
get: ExpressionPropertyInterface(
|
|
16408
|
+
get: ExpressionPropertyInterface(G.s)
|
|
16409
16409
|
},
|
|
16410
16410
|
position: {
|
|
16411
|
-
get: ExpressionPropertyInterface(
|
|
16411
|
+
get: ExpressionPropertyInterface(G.p)
|
|
16412
16412
|
},
|
|
16413
16413
|
_name: {
|
|
16414
16414
|
value: K.nm
|
|
16415
16415
|
}
|
|
16416
|
-
}),
|
|
16416
|
+
}), H.mn = K.mn, H;
|
|
16417
16417
|
}
|
|
16418
16418
|
function j(K, Z, re) {
|
|
16419
|
-
function
|
|
16420
|
-
return K.p.ix === Q ?
|
|
16419
|
+
function H(Q) {
|
|
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(
|
|
16423
|
-
return
|
|
16422
|
+
var J = propertyGroupFactory(H, re), G = Z.sh.ty === "tm" ? Z.sh.prop : Z.sh;
|
|
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
|
-
get: ExpressionPropertyInterface(
|
|
16425
|
+
get: ExpressionPropertyInterface(G.p)
|
|
16426
16426
|
},
|
|
16427
16427
|
rotation: {
|
|
16428
|
-
get: ExpressionPropertyInterface(
|
|
16428
|
+
get: ExpressionPropertyInterface(G.r)
|
|
16429
16429
|
},
|
|
16430
16430
|
points: {
|
|
16431
|
-
get: ExpressionPropertyInterface(
|
|
16431
|
+
get: ExpressionPropertyInterface(G.pt)
|
|
16432
16432
|
},
|
|
16433
16433
|
outerRadius: {
|
|
16434
|
-
get: ExpressionPropertyInterface(
|
|
16434
|
+
get: ExpressionPropertyInterface(G.or)
|
|
16435
16435
|
},
|
|
16436
16436
|
outerRoundness: {
|
|
16437
|
-
get: ExpressionPropertyInterface(
|
|
16437
|
+
get: ExpressionPropertyInterface(G.os)
|
|
16438
16438
|
},
|
|
16439
16439
|
innerRadius: {
|
|
16440
|
-
get: ExpressionPropertyInterface(
|
|
16440
|
+
get: ExpressionPropertyInterface(G.ir)
|
|
16441
16441
|
},
|
|
16442
16442
|
innerRoundness: {
|
|
16443
|
-
get: ExpressionPropertyInterface(
|
|
16443
|
+
get: ExpressionPropertyInterface(G.is)
|
|
16444
16444
|
},
|
|
16445
16445
|
_name: {
|
|
16446
16446
|
value: K.nm
|
|
16447
16447
|
}
|
|
16448
|
-
}),
|
|
16448
|
+
}), H.mn = K.mn, H;
|
|
16449
16449
|
}
|
|
16450
16450
|
function q(K, Z, re) {
|
|
16451
|
-
function
|
|
16452
|
-
return K.p.ix === Q ?
|
|
16451
|
+
function H(Q) {
|
|
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(
|
|
16455
|
-
return
|
|
16454
|
+
var J = propertyGroupFactory(H, re), G = Z.sh.ty === "tm" ? Z.sh.prop : Z.sh;
|
|
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
|
-
get: ExpressionPropertyInterface(
|
|
16457
|
+
get: ExpressionPropertyInterface(G.p)
|
|
16458
16458
|
},
|
|
16459
16459
|
roundness: {
|
|
16460
|
-
get: ExpressionPropertyInterface(
|
|
16460
|
+
get: ExpressionPropertyInterface(G.r)
|
|
16461
16461
|
},
|
|
16462
16462
|
size: {
|
|
16463
|
-
get: ExpressionPropertyInterface(
|
|
16463
|
+
get: ExpressionPropertyInterface(G.s)
|
|
16464
16464
|
},
|
|
16465
16465
|
_name: {
|
|
16466
16466
|
value: K.nm
|
|
16467
16467
|
}
|
|
16468
|
-
}),
|
|
16468
|
+
}), H.mn = K.mn, H;
|
|
16469
16469
|
}
|
|
16470
16470
|
function V(K, Z, re) {
|
|
16471
|
-
function
|
|
16472
|
-
return K.r.ix === Q || Q === "Round Corners 1" ?
|
|
16471
|
+
function H(Q) {
|
|
16472
|
+
return K.r.ix === Q || Q === "Round Corners 1" ? H.radius : null;
|
|
16473
16473
|
}
|
|
16474
|
-
var J = propertyGroupFactory(
|
|
16475
|
-
return
|
|
16474
|
+
var J = propertyGroupFactory(H, re), G = Z;
|
|
16475
|
+
return H.propertyIndex = K.ix, G.rd.setGroupProperty(PropertyInterface("Radius", J)), Object.defineProperties(H, {
|
|
16476
16476
|
radius: {
|
|
16477
|
-
get: ExpressionPropertyInterface(
|
|
16477
|
+
get: ExpressionPropertyInterface(G.rd)
|
|
16478
16478
|
},
|
|
16479
16479
|
_name: {
|
|
16480
16480
|
value: K.nm
|
|
16481
16481
|
}
|
|
16482
|
-
}),
|
|
16482
|
+
}), H.mn = K.mn, H;
|
|
16483
16483
|
}
|
|
16484
|
-
function
|
|
16485
|
-
function
|
|
16486
|
-
return K.c.ix === Q || Q === "Copies" ?
|
|
16484
|
+
function W(K, Z, re) {
|
|
16485
|
+
function H(Q) {
|
|
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(
|
|
16489
|
-
return
|
|
16488
|
+
var J = propertyGroupFactory(H, re), G = Z;
|
|
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
|
-
get: ExpressionPropertyInterface(
|
|
16491
|
+
get: ExpressionPropertyInterface(G.c)
|
|
16492
16492
|
},
|
|
16493
16493
|
offset: {
|
|
16494
|
-
get: ExpressionPropertyInterface(
|
|
16494
|
+
get: ExpressionPropertyInterface(G.o)
|
|
16495
16495
|
},
|
|
16496
16496
|
_name: {
|
|
16497
16497
|
value: K.nm
|
|
16498
16498
|
}
|
|
16499
|
-
}),
|
|
16499
|
+
}), H.mn = K.mn, H;
|
|
16500
16500
|
}
|
|
16501
16501
|
return function(K, Z, re) {
|
|
16502
|
-
var
|
|
16502
|
+
var H;
|
|
16503
16503
|
function J(Q) {
|
|
16504
16504
|
if (typeof Q == "number")
|
|
16505
|
-
return Q = Q === void 0 ? 1 : Q, Q === 0 ? re :
|
|
16506
|
-
for (var te = 0, ne =
|
|
16507
|
-
if (
|
|
16508
|
-
return
|
|
16505
|
+
return Q = Q === void 0 ? 1 : Q, Q === 0 ? re : H[Q - 1];
|
|
16506
|
+
for (var te = 0, ne = H.length; te < ne; ) {
|
|
16507
|
+
if (H[te]._name === Q)
|
|
16508
|
+
return H[te];
|
|
16509
16509
|
te += 1;
|
|
16510
16510
|
}
|
|
16511
16511
|
return null;
|
|
16512
16512
|
}
|
|
16513
|
-
function
|
|
16513
|
+
function G() {
|
|
16514
16514
|
return re;
|
|
16515
16515
|
}
|
|
16516
|
-
return J.propertyGroup = propertyGroupFactory(J,
|
|
16516
|
+
return J.propertyGroup = propertyGroupFactory(J, G), H = t(K, Z, 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, W, K) {
|
|
16635
16635
|
if (!this.k || !this.keyframes)
|
|
16636
16636
|
return this.pv;
|
|
16637
16637
|
V = V ? V.toLowerCase() : "";
|
|
16638
|
-
var Z = this.comp.renderedFrame, re = this.keyframes,
|
|
16639
|
-
if (Z <=
|
|
16638
|
+
var Z = this.comp.renderedFrame, re = this.keyframes, H = re[re.length - 1].t;
|
|
16639
|
+
if (Z <= H)
|
|
16640
16640
|
return this.pv;
|
|
16641
|
-
var J,
|
|
16642
|
-
K ? (
|
|
16641
|
+
var J, G;
|
|
16642
|
+
K ? (W ? J = Math.abs(H - this.elem.comp.globalData.frameRate * W) : J = Math.max(0, H - this.elem.data.ip), G = H - J) : ((!W || W > re.length - 1) && (W = re.length - 1), G = re[re.length - 1 - W].t, J = H - G);
|
|
16643
16643
|
var Q, te, ne;
|
|
16644
16644
|
if (V === "pingpong") {
|
|
16645
|
-
var ae = Math.floor((Z -
|
|
16645
|
+
var ae = Math.floor((Z - G) / J);
|
|
16646
16646
|
if (ae % 2 !== 0)
|
|
16647
|
-
return this.getValueAtTime((J - (Z -
|
|
16647
|
+
return this.getValueAtTime((J - (Z - G) % J + G) / this.comp.globalData.frameRate, 0);
|
|
16648
16648
|
} else if (V === "offset") {
|
|
16649
|
-
var le = 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(((Z - G) % J + G) / this.comp.globalData.frameRate, 0), me = Math.floor((Z - 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];
|
|
@@ -16654,32 +16654,32 @@ function requireLottie() {
|
|
|
16654
16654
|
}
|
|
16655
16655
|
return (he - le) * me + ye;
|
|
16656
16656
|
} else if (V === "continue") {
|
|
16657
|
-
var de = this.getValueAtTime(
|
|
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]) * ((Z -
|
|
16660
|
+
ne[Q] = de[Q] + (de[Q] - ve[Q]) * ((Z - H) / this.comp.globalData.frameRate) / 5e-4;
|
|
16661
16661
|
return ne;
|
|
16662
16662
|
}
|
|
16663
|
-
return de + (de - ve) * ((Z -
|
|
16663
|
+
return de + (de - ve) * ((Z - H) / 1e-3);
|
|
16664
16664
|
}
|
|
16665
|
-
return this.getValueAtTime(((Z -
|
|
16665
|
+
return this.getValueAtTime(((Z - G) % J + G) / this.comp.globalData.frameRate, 0);
|
|
16666
16666
|
}
|
|
16667
|
-
function e(V,
|
|
16667
|
+
function e(V, W, K) {
|
|
16668
16668
|
if (!this.k)
|
|
16669
16669
|
return this.pv;
|
|
16670
16670
|
V = V ? V.toLowerCase() : "";
|
|
16671
|
-
var Z = this.comp.renderedFrame, re = this.keyframes,
|
|
16672
|
-
if (Z >=
|
|
16671
|
+
var Z = this.comp.renderedFrame, re = this.keyframes, H = re[0].t;
|
|
16672
|
+
if (Z >= H)
|
|
16673
16673
|
return this.pv;
|
|
16674
|
-
var J,
|
|
16675
|
-
K ? (
|
|
16674
|
+
var J, G;
|
|
16675
|
+
K ? (W ? J = Math.abs(this.elem.comp.globalData.frameRate * W) : J = Math.max(0, this.elem.data.op - H), G = H + J) : ((!W || W > re.length - 1) && (W = re.length - 1), G = re[W].t, J = G - H);
|
|
16676
16676
|
var Q, te, ne;
|
|
16677
16677
|
if (V === "pingpong") {
|
|
16678
|
-
var ae = Math.floor((
|
|
16678
|
+
var ae = Math.floor((H - Z) / J);
|
|
16679
16679
|
if (ae % 2 === 0)
|
|
16680
|
-
return this.getValueAtTime(((
|
|
16680
|
+
return this.getValueAtTime(((H - Z) % J + H) / this.comp.globalData.frameRate, 0);
|
|
16681
16681
|
} else if (V === "offset") {
|
|
16682
|
-
var le = this.getValueAtTime(
|
|
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 - Z) % J + H) / this.comp.globalData.frameRate, 0), me = Math.floor((H - Z) / 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;
|
|
@@ -16687,93 +16687,93 @@ function requireLottie() {
|
|
|
16687
16687
|
}
|
|
16688
16688
|
return ye - (he - le) * me;
|
|
16689
16689
|
} else if (V === "continue") {
|
|
16690
|
-
var de = this.getValueAtTime(
|
|
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]) * (
|
|
16693
|
+
ne[Q] = de[Q] + (de[Q] - ve[Q]) * (H - Z) / 1e-3;
|
|
16694
16694
|
return ne;
|
|
16695
16695
|
}
|
|
16696
|
-
return de + (de - ve) * (
|
|
16696
|
+
return de + (de - ve) * (H - Z) / 1e-3;
|
|
16697
16697
|
}
|
|
16698
|
-
return this.getValueAtTime((J - ((
|
|
16698
|
+
return this.getValueAtTime((J - ((H - Z) % J + H)) / this.comp.globalData.frameRate, 0);
|
|
16699
16699
|
}
|
|
16700
|
-
function r(V,
|
|
16700
|
+
function r(V, W) {
|
|
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, W = Math.floor(W || 5), W <= 1)
|
|
16704
16704
|
return this.pv;
|
|
16705
|
-
var K = this.comp.renderedFrame / this.comp.globalData.frameRate, Z = K - V, re = K + V,
|
|
16705
|
+
var K = this.comp.renderedFrame / this.comp.globalData.frameRate, Z = K - V, re = K + V, H = W > 1 ? (re - Z) / (W - 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(Z + J *
|
|
16709
|
-
for (
|
|
16710
|
-
Q[
|
|
16707
|
+
for (var te; J < W; ) {
|
|
16708
|
+
if (te = this.getValueAtTime(Z + J * H), this.pv.length)
|
|
16709
|
+
for (G = 0; G < this.pv.length; G += 1)
|
|
16710
|
+
Q[G] += te[G];
|
|
16711
16711
|
else
|
|
16712
16712
|
Q += te;
|
|
16713
16713
|
J += 1;
|
|
16714
16714
|
}
|
|
16715
16715
|
if (this.pv.length)
|
|
16716
|
-
for (
|
|
16717
|
-
Q[
|
|
16716
|
+
for (G = 0; G < this.pv.length; G += 1)
|
|
16717
|
+
Q[G] /= W;
|
|
16718
16718
|
else
|
|
16719
|
-
Q /=
|
|
16719
|
+
Q /= W;
|
|
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 W = this._transformCachingAtTime.v;
|
|
16727
|
+
if (W.cloneFromProps(this.pre.props), this.appliedTransformations < 1) {
|
|
16728
16728
|
var K = this.a.getValueAtTime(V);
|
|
16729
|
-
|
|
16729
|
+
W.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
16732
|
var Z = this.s.getValueAtTime(V);
|
|
16733
|
-
|
|
16733
|
+
W.scale(Z[0] * this.s.mult, Z[1] * this.s.mult, Z[2] * this.s.mult);
|
|
16734
16734
|
}
|
|
16735
16735
|
if (this.sk && this.appliedTransformations < 3) {
|
|
16736
|
-
var re = this.sk.getValueAtTime(V),
|
|
16737
|
-
|
|
16736
|
+
var re = this.sk.getValueAtTime(V), H = this.sa.getValueAtTime(V);
|
|
16737
|
+
W.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
|
+
W.rotate(-J * this.r.mult);
|
|
16742
16742
|
} else if (!this.r && this.appliedTransformations < 4) {
|
|
16743
|
-
var
|
|
16744
|
-
|
|
16743
|
+
var G = this.rz.getValueAtTime(V), Q = this.ry.getValueAtTime(V), te = this.rx.getValueAtTime(V), ne = this.or.getValueAtTime(V);
|
|
16744
|
+
W.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
|
+
W.translate(ae * this.px.mult, le * this.py.mult, -he * this.pz.mult);
|
|
16751
16751
|
} else
|
|
16752
|
-
|
|
16752
|
+
W.translate(ae * this.px.mult, le * this.py.mult, 0);
|
|
16753
16753
|
} else {
|
|
16754
16754
|
var ye = this.p.getValueAtTime(V);
|
|
16755
|
-
|
|
16755
|
+
W.translate(ye[0] * this.p.mult, ye[1] * this.p.mult, -ye[2] * this.p.mult);
|
|
16756
16756
|
}
|
|
16757
|
-
return
|
|
16757
|
+
return W;
|
|
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 Z = h(V,
|
|
16763
|
+
TransformPropertyFactory.getTransformProperty = function(V, W, K) {
|
|
16764
|
+
var Z = h(V, W, K);
|
|
16765
16765
|
return Z.dynamicProperties.length ? Z.getValueAtTime = i.bind(Z) : Z.getValueAtTime = a.bind(Z), Z.setGroupProperty = expressionHelpers.setGroupProperty, Z;
|
|
16766
16766
|
};
|
|
16767
16767
|
var d = PropertyFactory.getProp;
|
|
16768
|
-
PropertyFactory.getProp = function(V,
|
|
16769
|
-
var
|
|
16770
|
-
|
|
16768
|
+
PropertyFactory.getProp = function(V, W, K, Z, re) {
|
|
16769
|
+
var H = d(V, W, K, Z, 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 = W.a === 1 ? W.k.length : 0, H.propertyIndex = W.ix;
|
|
16771
16771
|
var J = 0;
|
|
16772
|
-
return K !== 0 && (J = createTypedArray("float32",
|
|
16772
|
+
return K !== 0 && (J = createTypedArray("float32", W.a === 1 ? W.k[0].s.length : W.k.length)), H._cachingAtTime = {
|
|
16773
16773
|
lastFrame: initialDefaultFrame,
|
|
16774
16774
|
lastIndex: 0,
|
|
16775
16775
|
value: J
|
|
16776
|
-
}, expressionHelpers.searchExpressions(V,
|
|
16776
|
+
}, expressionHelpers.searchExpressions(V, W, 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(W, K) {
|
|
16790
16790
|
this.k && this.getValue();
|
|
16791
16791
|
var Z = this.v;
|
|
16792
16792
|
K !== void 0 && (Z = this.getValueAtTime(K, 0));
|
|
16793
|
-
var re,
|
|
16794
|
-
for (re = 0; re <
|
|
16795
|
-
|
|
16793
|
+
var re, H = Z._length, J = Z[W], G = Z.v, Q = createSizedArray(H);
|
|
16794
|
+
for (re = 0; re < H; re += 1)
|
|
16795
|
+
W === "i" || W === "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(W) {
|
|
16799
|
+
return this.vertices("v", W);
|
|
16800
16800
|
},
|
|
16801
|
-
inTangents: function(
|
|
16802
|
-
return this.vertices("i",
|
|
16801
|
+
inTangents: function(W) {
|
|
16802
|
+
return this.vertices("i", W);
|
|
16803
16803
|
},
|
|
16804
|
-
outTangents: function(
|
|
16805
|
-
return this.vertices("o",
|
|
16804
|
+
outTangents: function(W) {
|
|
16805
|
+
return this.vertices("o", W);
|
|
16806
16806
|
},
|
|
16807
16807
|
isClosed: function() {
|
|
16808
16808
|
return this.v.c;
|
|
16809
16809
|
},
|
|
16810
|
-
pointOnPath: function(
|
|
16810
|
+
pointOnPath: function(W, K) {
|
|
16811
16811
|
var Z = this.v;
|
|
16812
16812
|
K !== void 0 && (Z = this.getValueAtTime(K, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(Z));
|
|
16813
|
-
for (var re = this._segmentsLength,
|
|
16814
|
-
if (te + G
|
|
16815
|
-
var ae =
|
|
16816
|
-
ne = bez.getPointInSegment(Z.v[ae], Z.v[le], Z.o[ae], Z.i[le], he, G
|
|
16813
|
+
for (var re = this._segmentsLength, H = re.lengths, J = re.totalLength * W, G = 0, Q = H.length, te = 0, ne; G < Q; ) {
|
|
16814
|
+
if (te + H[G].addedLength > J) {
|
|
16815
|
+
var ae = G, le = Z.c && G === Q - 1 ? 0 : G + 1, he = (J - te) / H[G].addedLength;
|
|
16816
|
+
ne = bez.getPointInSegment(Z.v[ae], Z.v[le], Z.o[ae], Z.i[le], he, H[G]);
|
|
16817
16817
|
break;
|
|
16818
16818
|
} else
|
|
16819
|
-
te += G
|
|
16820
|
-
|
|
16819
|
+
te += H[G].addedLength;
|
|
16820
|
+
G += 1;
|
|
16821
16821
|
}
|
|
16822
16822
|
return ne || (ne = Z.c ? [Z.v[0][0], Z.v[0][1]] : [Z.v[Z._length - 1][0], Z.v[Z._length - 1][1]]), ne;
|
|
16823
16823
|
},
|
|
16824
|
-
vectorOnPath: function(
|
|
16825
|
-
|
|
16826
|
-
var re = this.pointOnPath(
|
|
16824
|
+
vectorOnPath: function(W, K, Z) {
|
|
16825
|
+
W == 1 ? W = this.v.c : W == 0 && (W = 0.999);
|
|
16826
|
+
var re = this.pointOnPath(W, K), H = this.pointOnPath(W + 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 = Z === "tangent" ? [J / Q,
|
|
16829
|
+
var te = Z === "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(W, K) {
|
|
16833
|
+
return this.vectorOnPath(W, K, "tangent");
|
|
16834
16834
|
},
|
|
16835
|
-
normalOnPath: function(
|
|
16836
|
-
return this.vectorOnPath(
|
|
16835
|
+
normalOnPath: function(W, K) {
|
|
16836
|
+
return this.vectorOnPath(W, 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
|
|
16844
|
-
return
|
|
16842
|
+
ShapePropertyFactory.getShapeProp = function(V, W, K, Z, re) {
|
|
16843
|
+
var H = q(V, W, K, Z, re);
|
|
16844
|
+
return H.propertyIndex = W.ix, H.lock = !1, K === 3 ? expressionHelpers.searchExpressions(V, W.pt, H) : K === 4 && expressionHelpers.searchExpressions(V, W.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 W = this.filterManager.effectElements[3].p.v;
|
|
16949
|
+
this.pathMasker.setAttribute("stroke", "rgb(" + bmFloor(W[0] * 255) + "," + bmFloor(W[1] * 255) + "," + bmFloor(W[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, W = 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 + W * 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,9 +17192,9 @@ 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, W = e.onDataFailed, K = e.onLoadedImages, Z = e.onDOMLoaded, re = e.onDestroy;
|
|
17196
17196
|
e.lottieRef, e.renderer, e.name, e.assetsPath, e.rendererSettings;
|
|
17197
|
-
var
|
|
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;
|
|
17199
17199
|
(pe = ne.current) === null || pe === void 0 || pe.play();
|
|
17200
17200
|
}, he = function() {
|
|
@@ -17276,7 +17276,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
17276
17276
|
handler: V
|
|
17277
17277
|
}, {
|
|
17278
17278
|
name: "data_failed",
|
|
17279
|
-
handler:
|
|
17279
|
+
handler: W
|
|
17280
17280
|
}, {
|
|
17281
17281
|
name: "loaded_images",
|
|
17282
17282
|
handler: K
|
|
@@ -17310,11 +17310,11 @@ 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, W, K, Z, re]);
|
|
17314
17314
|
var ue = /* @__PURE__ */ React__default.createElement("div", _objectSpread2({
|
|
17315
17315
|
style: r,
|
|
17316
17316
|
ref: ae
|
|
17317
|
-
},
|
|
17317
|
+
}, H));
|
|
17318
17318
|
return {
|
|
17319
17319
|
View: ue,
|
|
17320
17320
|
play: le,
|
|
@@ -17352,13 +17352,13 @@ var useInitInteractivity = function t(e) {
|
|
|
17352
17352
|
i.stop();
|
|
17353
17353
|
var y = function() {
|
|
17354
17354
|
var j = null, q = function() {
|
|
17355
|
-
var
|
|
17356
|
-
var
|
|
17357
|
-
return
|
|
17355
|
+
var W = getContainerVisibility(d), K = h.find(function(re) {
|
|
17356
|
+
var H = re.visibility;
|
|
17357
|
+
return H && W >= H[0] && W <= H[1];
|
|
17358
17358
|
});
|
|
17359
17359
|
if (K) {
|
|
17360
17360
|
if (K.type === "seek" && K.visibility && K.frames.length === 2) {
|
|
17361
|
-
var Z = K.frames[0] + Math.ceil((
|
|
17361
|
+
var Z = K.frames[0] + Math.ceil((W - K.visibility[0]) / (K.visibility[1] - K.visibility[0]) * K.frames[1]);
|
|
17362
17362
|
i.goToAndStop(Z - 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);
|
|
@@ -17369,21 +17369,21 @@ var useInitInteractivity = function t(e) {
|
|
|
17369
17369
|
};
|
|
17370
17370
|
}, M = function() {
|
|
17371
17371
|
var j = function(K, Z) {
|
|
17372
|
-
var re = K,
|
|
17373
|
-
if (re !== -1 &&
|
|
17374
|
-
var J = getContainerCursorPosition(d, re,
|
|
17375
|
-
re = J.x,
|
|
17372
|
+
var re = K, H = Z;
|
|
17373
|
+
if (re !== -1 && H !== -1) {
|
|
17374
|
+
var J = getContainerCursorPosition(d, re, H);
|
|
17375
|
+
re = J.x, H = J.y;
|
|
17376
17376
|
}
|
|
17377
|
-
var
|
|
17377
|
+
var G = h.find(function(ne) {
|
|
17378
17378
|
var ae = ne.position;
|
|
17379
|
-
return ae && Array.isArray(ae.x) && Array.isArray(ae.y) ? re >= ae.x[0] && re <= ae.x[1] &&
|
|
17379
|
+
return ae && Array.isArray(ae.x) && Array.isArray(ae.y) ? re >= ae.x[0] && re <= ae.x[1] && H >= ae.y[0] && H <= ae.y[1] : ae && !Number.isNaN(ae.x) && !Number.isNaN(ae.y) ? re === ae.x && H === ae.y : !1;
|
|
17380
17380
|
});
|
|
17381
|
-
if (
|
|
17382
|
-
if (
|
|
17383
|
-
var Q = (re -
|
|
17384
|
-
i.playSegments(
|
|
17381
|
+
if (G) {
|
|
17382
|
+
if (G.type === "seek" && G.position && Array.isArray(G.position.x) && Array.isArray(G.position.y) && G.frames.length === 2) {
|
|
17383
|
+
var Q = (re - G.position.x[0]) / (G.position.x[1] - G.position.x[0]), te = (H - G.position.y[0]) / (G.position.y[1] - G.position.y[0]);
|
|
17384
|
+
i.playSegments(G.frames, !0), i.goToAndStop(Math.ceil((Q + te) / 2 * (G.frames[1] - G.frames[0])), !0);
|
|
17385
17385
|
}
|
|
17386
|
-
|
|
17386
|
+
G.type === "loop" && i.playSegments(G.frames, !0), G.type === "play" && (i.isPaused && i.resetSegments(!1), i.playSegments(G.frames)), G.type === "stop" && i.goToAndStop(G.frames[0], !0);
|
|
17387
17387
|
}
|
|
17388
17388
|
}, q = function(K) {
|
|
17389
17389
|
j(K.clientX, K.clientY);
|
|
@@ -17411,19 +17411,19 @@ 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, W = M.setSpeed, K = M.goToAndStop, Z = 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:
|
|
17420
|
+
setSpeed: W,
|
|
17421
17421
|
goToAndPlay: Z,
|
|
17422
17422
|
goToAndStop: K,
|
|
17423
17423
|
setDirection: re,
|
|
17424
|
-
playSegments:
|
|
17424
|
+
playSegments: H,
|
|
17425
17425
|
setSubframe: J,
|
|
17426
|
-
getDuration:
|
|
17426
|
+
getDuration: G,
|
|
17427
17427
|
destroy: Q,
|
|
17428
17428
|
animationContainerRef: te,
|
|
17429
17429
|
animationLoaded: ne,
|
|
@@ -17435,13 +17435,13 @@ var useInitInteractivity = function t(e) {
|
|
|
17435
17435
|
play: j,
|
|
17436
17436
|
stop: q,
|
|
17437
17437
|
pause: V,
|
|
17438
|
-
setSpeed:
|
|
17438
|
+
setSpeed: W,
|
|
17439
17439
|
goToAndStop: K,
|
|
17440
17440
|
goToAndPlay: Z,
|
|
17441
17441
|
setDirection: re,
|
|
17442
|
-
playSegments:
|
|
17442
|
+
playSegments: H,
|
|
17443
17443
|
setSubframe: J,
|
|
17444
|
-
getDuration:
|
|
17444
|
+
getDuration: G,
|
|
17445
17445
|
destroy: Q,
|
|
17446
17446
|
animationContainerRef: te,
|
|
17447
17447
|
animationLoaded: ne,
|
|
@@ -17508,12 +17508,12 @@ function AsyncSelect({
|
|
|
17508
17508
|
getOptionLabel: j,
|
|
17509
17509
|
emptyLabel: q = "Sin resultados",
|
|
17510
17510
|
loadingLabel: V = "Buscando...",
|
|
17511
|
-
emptyActionLabel:
|
|
17511
|
+
emptyActionLabel: W,
|
|
17512
17512
|
onEmptyActionClick: K,
|
|
17513
17513
|
contentClassName: Z,
|
|
17514
17514
|
triggerClassName: re
|
|
17515
17515
|
}) {
|
|
17516
|
-
const [
|
|
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);
|
|
17517
17517
|
React.useEffect(() => {
|
|
17518
17518
|
const fe = (se) => {
|
|
17519
17519
|
ve.current && (ve.current.contains(se.target) || J(!1));
|
|
@@ -17522,7 +17522,7 @@ function AsyncSelect({
|
|
|
17522
17522
|
}, []), React.useEffect(() => {
|
|
17523
17523
|
let fe = !0;
|
|
17524
17524
|
return (async () => {
|
|
17525
|
-
if (
|
|
17525
|
+
if (H) {
|
|
17526
17526
|
if (!de) {
|
|
17527
17527
|
le([]);
|
|
17528
17528
|
return;
|
|
@@ -17539,7 +17539,7 @@ function AsyncSelect({
|
|
|
17539
17539
|
})(), () => {
|
|
17540
17540
|
fe = !1;
|
|
17541
17541
|
};
|
|
17542
|
-
}, [
|
|
17542
|
+
}, [H, me, de, M]), React.useEffect(() => {
|
|
17543
17543
|
if (!t) {
|
|
17544
17544
|
ye("");
|
|
17545
17545
|
return;
|
|
@@ -17572,17 +17572,17 @@ function AsyncSelect({
|
|
|
17572
17572
|
children: ge
|
|
17573
17573
|
}
|
|
17574
17574
|
),
|
|
17575
|
-
/* @__PURE__ */ jsx(ChevronDown, { className: cn$1("oniratec-async-select__chevron",
|
|
17575
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: cn$1("oniratec-async-select__chevron", H && "rotate-180") })
|
|
17576
17576
|
]
|
|
17577
17577
|
}
|
|
17578
17578
|
),
|
|
17579
|
-
|
|
17579
|
+
H && /* @__PURE__ */ jsxs("div", { className: cn$1("oniratec-async-select", Z), children: [
|
|
17580
17580
|
/* @__PURE__ */ jsxs("div", { className: "oniratec-async-select__search", children: [
|
|
17581
17581
|
/* @__PURE__ */ jsx(
|
|
17582
17582
|
"input",
|
|
17583
17583
|
{
|
|
17584
17584
|
className: "oniratec-async-select__search-input",
|
|
17585
|
-
value:
|
|
17585
|
+
value: G,
|
|
17586
17586
|
onChange: (fe) => Q(fe.target.value),
|
|
17587
17587
|
placeholder: i,
|
|
17588
17588
|
autoFocus: !0
|
|
@@ -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
|
+
W && 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: W
|
|
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 = (W) => {
|
|
17658
|
+
M || j(W), r?.(W);
|
|
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: (W) => V(W.target.checked)
|
|
17677
17677
|
}
|
|
17678
17678
|
),
|
|
17679
17679
|
/* @__PURE__ */ jsx("span", { className: "oniratec-toggle__track", children: /* @__PURE__ */ jsx("span", { className: "oniratec-toggle__thumb" }) }),
|
|
@@ -17716,12 +17716,12 @@ function DataTable({
|
|
|
17716
17716
|
errorContent: q,
|
|
17717
17717
|
isLoading: V = !1
|
|
17718
17718
|
}) {
|
|
17719
|
-
const [
|
|
17719
|
+
const [W, K] = useState(a), Z = i !== void 0 ? i : W, re = normalizeSortState$1(Z), 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) => {
|
|
17723
17723
|
for (const le of re) {
|
|
17724
|
-
const he =
|
|
17724
|
+
const he = H.get(le.columnId);
|
|
17725
17725
|
if (!he) continue;
|
|
17726
17726
|
const me = (he.sortFn ?? ((de, ve) => {
|
|
17727
17727
|
const ge = he.sortValue?.(de) ?? de[he.key], fe = he.sortValue?.(ve) ?? ve[he.key];
|
|
@@ -17731,21 +17731,21 @@ function DataTable({
|
|
|
17731
17731
|
}
|
|
17732
17732
|
return 0;
|
|
17733
17733
|
}), te;
|
|
17734
|
-
}, [e, M, re,
|
|
17734
|
+
}, [e, M, re, H, r]), G = (te) => {
|
|
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
17738
|
const le = normalizeSortState$1(Z), 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
|
-
ye && me.push({ columnId: te.key, direction: ye }),
|
|
17741
|
+
ye && me.push({ columnId: te.key, direction: ye }), G(me.length ? me : null);
|
|
17742
17742
|
return;
|
|
17743
17743
|
}
|
|
17744
17744
|
if (!ye) {
|
|
17745
|
-
|
|
17745
|
+
G(null);
|
|
17746
17746
|
return;
|
|
17747
17747
|
}
|
|
17748
|
-
|
|
17748
|
+
G({ columnId: te.key, direction: ye });
|
|
17749
17749
|
};
|
|
17750
17750
|
return /* @__PURE__ */ jsx("div", { className: "oniratec-data-table", children: /* @__PURE__ */ jsxs("table", { className: "oniratec-data-table__table", children: [
|
|
17751
17751
|
/* @__PURE__ */ jsx("thead", { className: "oniratec-data-table__head", children: /* @__PURE__ */ jsx("tr", { className: "oniratec-data-table__head-row", children: t.map((te) => {
|
|
@@ -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, W) => {
|
|
17859
|
+
r({ ...e, [V]: W });
|
|
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: (W) => F(V.id, W.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: (W) => F(V.id, W),
|
|
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((W) => /* @__PURE__ */ jsx(SelectItem, { value: W.value, children: W.label }, W.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: (W) => F(V.id, W),
|
|
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: (W) => F(V.id, W),
|
|
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: (W) => F(V.id, W ?? null),
|
|
17929
17929
|
placeholder: V.placeholder,
|
|
17930
17930
|
min: V.min,
|
|
17931
17931
|
max: V.max,
|
|
@@ -17946,83 +17946,81 @@ function FiltersModal({
|
|
|
17946
17946
|
title: t = "Filtros",
|
|
17947
17947
|
description: e,
|
|
17948
17948
|
children: r,
|
|
17949
|
-
|
|
17950
|
-
|
|
17951
|
-
|
|
17952
|
-
|
|
17953
|
-
|
|
17954
|
-
|
|
17955
|
-
closeLabel: F = "Cerrar",
|
|
17956
|
-
className: j
|
|
17949
|
+
isOpen: i,
|
|
17950
|
+
onOpenChange: a,
|
|
17951
|
+
onApply: h,
|
|
17952
|
+
applyLabel: d = "Aplicar filtros",
|
|
17953
|
+
closeLabel: y = "Cerrar",
|
|
17954
|
+
className: M
|
|
17957
17955
|
}) {
|
|
17958
|
-
const
|
|
17959
|
-
(
|
|
17960
|
-
|
|
17956
|
+
const F = useId$1(), j = e ? `${F}-description` : void 0, q = i, V = useCallback(
|
|
17957
|
+
(W) => {
|
|
17958
|
+
a(W);
|
|
17961
17959
|
},
|
|
17962
|
-
[
|
|
17960
|
+
[a]
|
|
17963
17961
|
);
|
|
17964
17962
|
return useEffect(() => {
|
|
17965
|
-
if (!
|
|
17966
|
-
const
|
|
17967
|
-
|
|
17963
|
+
if (!q) return;
|
|
17964
|
+
const W = (K) => {
|
|
17965
|
+
K.key === "Escape" && V(!1);
|
|
17968
17966
|
};
|
|
17969
|
-
return window.addEventListener("keydown",
|
|
17970
|
-
}, [
|
|
17971
|
-
if (!
|
|
17972
|
-
const
|
|
17967
|
+
return window.addEventListener("keydown", W), () => window.removeEventListener("keydown", W);
|
|
17968
|
+
}, [q, V]), useEffect(() => {
|
|
17969
|
+
if (!q) return;
|
|
17970
|
+
const W = document.body.style.overflow;
|
|
17973
17971
|
return document.body.style.overflow = "hidden", () => {
|
|
17974
|
-
document.body.style.overflow =
|
|
17972
|
+
document.body.style.overflow = W;
|
|
17975
17973
|
};
|
|
17976
|
-
}, [
|
|
17977
|
-
|
|
17978
|
-
|
|
17979
|
-
"
|
|
17980
|
-
|
|
17981
|
-
|
|
17982
|
-
|
|
17983
|
-
|
|
17984
|
-
"
|
|
17985
|
-
|
|
17986
|
-
|
|
17987
|
-
|
|
17988
|
-
|
|
17989
|
-
|
|
17990
|
-
|
|
17991
|
-
] })
|
|
17992
|
-
/* @__PURE__ */ jsx(
|
|
17993
|
-
"button",
|
|
17994
|
-
{
|
|
17995
|
-
type: "button",
|
|
17996
|
-
onClick: () => G(!1),
|
|
17997
|
-
className: cn$1(
|
|
17998
|
-
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
17999
|
-
"text-[color:var(--text-2)] transition-colors",
|
|
18000
|
-
"hover:bg-[color:color-mix(in srgb, var(--brand) 12%, transparent)]",
|
|
18001
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--focus)]"
|
|
18002
|
-
),
|
|
18003
|
-
"aria-label": F,
|
|
18004
|
-
children: /* @__PURE__ */ jsx(X$1, { className: "h-4 w-4" })
|
|
18005
|
-
}
|
|
18006
|
-
)
|
|
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
|
+
"div",
|
|
17976
|
+
{
|
|
17977
|
+
role: "dialog",
|
|
17978
|
+
"aria-modal": "true",
|
|
17979
|
+
"aria-labelledby": F,
|
|
17980
|
+
"aria-describedby": j,
|
|
17981
|
+
className: cn$1(
|
|
17982
|
+
"w-full max-w-3xl rounded-2xl border border-[color:var(--border-1)] bg-[color:var(--surface-1)] p-6 shadow-[var(--shadow-card-lg)]",
|
|
17983
|
+
M
|
|
17984
|
+
),
|
|
17985
|
+
children: [
|
|
17986
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
17987
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
17988
|
+
/* @__PURE__ */ jsx("h2", { id: F, className: "text-lg font-semibold text-[color:var(--text-1)]", children: t }),
|
|
17989
|
+
e && /* @__PURE__ */ jsx("p", { id: j, className: "text-sm text-[color:var(--text-2)]", children: e })
|
|
18007
17990
|
] }),
|
|
18008
|
-
/* @__PURE__ */ jsx(
|
|
18009
|
-
|
|
18010
|
-
|
|
18011
|
-
|
|
18012
|
-
|
|
18013
|
-
|
|
18014
|
-
|
|
18015
|
-
|
|
18016
|
-
|
|
18017
|
-
|
|
18018
|
-
|
|
18019
|
-
|
|
18020
|
-
|
|
18021
|
-
|
|
18022
|
-
|
|
18023
|
-
|
|
18024
|
-
|
|
18025
|
-
|
|
17991
|
+
/* @__PURE__ */ jsx(
|
|
17992
|
+
"button",
|
|
17993
|
+
{
|
|
17994
|
+
type: "button",
|
|
17995
|
+
onClick: () => V(!1),
|
|
17996
|
+
className: cn$1(
|
|
17997
|
+
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
17998
|
+
"text-[color:var(--text-2)] transition-colors",
|
|
17999
|
+
"hover:bg-[color:color-mix(in srgb, var(--brand) 12%, transparent)]",
|
|
18000
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--focus)]"
|
|
18001
|
+
),
|
|
18002
|
+
"aria-label": y,
|
|
18003
|
+
children: /* @__PURE__ */ jsx(X$1, { className: "h-4 w-4" })
|
|
18004
|
+
}
|
|
18005
|
+
)
|
|
18006
|
+
] }),
|
|
18007
|
+
/* @__PURE__ */ jsx("div", { className: "mt-6", children: r }),
|
|
18008
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-6 flex flex-wrap items-center justify-end gap-2", children: [
|
|
18009
|
+
/* @__PURE__ */ jsx(Button, { type: "button", variant: "ghost", onClick: () => V(!1), children: y }),
|
|
18010
|
+
/* @__PURE__ */ jsx(
|
|
18011
|
+
Button,
|
|
18012
|
+
{
|
|
18013
|
+
type: "button",
|
|
18014
|
+
onClick: () => {
|
|
18015
|
+
h?.(), V(!1);
|
|
18016
|
+
},
|
|
18017
|
+
children: d
|
|
18018
|
+
}
|
|
18019
|
+
)
|
|
18020
|
+
] })
|
|
18021
|
+
]
|
|
18022
|
+
}
|
|
18023
|
+
) }) : null;
|
|
18026
18024
|
}
|
|
18027
18025
|
function Breadcrumbs({
|
|
18028
18026
|
items: t,
|
|
@@ -20806,7 +20804,7 @@ function deepEqual(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
20806
20804
|
function useWatch(t) {
|
|
20807
20805
|
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);
|
|
20808
20806
|
F.current = y;
|
|
20809
|
-
const [
|
|
20807
|
+
const [W, K] = React__default.useState(() => {
|
|
20810
20808
|
const Q = r._getWatch(i, M.current);
|
|
20811
20809
|
return F.current ? F.current(Q) : Q;
|
|
20812
20810
|
}), Z = React__default.useCallback((Q) => {
|
|
@@ -20832,13 +20830,13 @@ function useWatch(t) {
|
|
|
20832
20830
|
re(Q.values);
|
|
20833
20831
|
}
|
|
20834
20832
|
})), [r, d, i, re]), React__default.useEffect(() => r._removeUnmounted());
|
|
20835
|
-
const
|
|
20833
|
+
const H = q.current !== r, J = V.current, G = React__default.useMemo(() => {
|
|
20836
20834
|
if (h)
|
|
20837
20835
|
return null;
|
|
20838
|
-
const Q = !
|
|
20839
|
-
return
|
|
20840
|
-
}, [h,
|
|
20841
|
-
return
|
|
20836
|
+
const Q = !H && !deepEqual(J, i);
|
|
20837
|
+
return H || Q ? Z() : null;
|
|
20838
|
+
}, [h, H, i, J, Z]);
|
|
20839
|
+
return G !== null ? G : W;
|
|
20842
20840
|
}
|
|
20843
20841
|
function useController(t) {
|
|
20844
20842
|
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({
|
|
@@ -20850,7 +20848,7 @@ function useController(t) {
|
|
|
20850
20848
|
control: a,
|
|
20851
20849
|
name: r,
|
|
20852
20850
|
exact: y
|
|
20853
|
-
}), V = React__default.useRef(t),
|
|
20851
|
+
}), V = React__default.useRef(t), W = React__default.useRef(void 0), K = React__default.useRef(a.register(r, {
|
|
20854
20852
|
...t.rules,
|
|
20855
20853
|
value: j,
|
|
20856
20854
|
...isBoolean(t.disabled) ? { disabled: t.disabled } : {}
|
|
@@ -20883,7 +20881,7 @@ function useController(t) {
|
|
|
20883
20881
|
name: r
|
|
20884
20882
|
},
|
|
20885
20883
|
type: EVENTS.CHANGE
|
|
20886
|
-
}), [r]),
|
|
20884
|
+
}), [r]), H = React__default.useCallback(() => K.current.onBlur({
|
|
20887
20885
|
target: {
|
|
20888
20886
|
value: get(a._formValues, r),
|
|
20889
20887
|
name: r
|
|
@@ -20897,16 +20895,16 @@ function useController(t) {
|
|
|
20897
20895
|
setCustomValidity: (ne) => isFunction(Q.setCustomValidity) && Q.setCustomValidity(ne),
|
|
20898
20896
|
reportValidity: () => isFunction(Q.reportValidity) && Q.reportValidity()
|
|
20899
20897
|
});
|
|
20900
|
-
}, [a._fields, r]),
|
|
20898
|
+
}, [a._fields, r]), G = React__default.useMemo(() => ({
|
|
20901
20899
|
name: r,
|
|
20902
20900
|
value: j,
|
|
20903
20901
|
...isBoolean(i) || q.disabled ? { disabled: q.disabled || i } : {},
|
|
20904
20902
|
onChange: re,
|
|
20905
|
-
onBlur:
|
|
20903
|
+
onBlur: H,
|
|
20906
20904
|
ref: J
|
|
20907
|
-
}), [r, i, q.disabled, re,
|
|
20905
|
+
}), [r, i, q.disabled, re, H, J, j]);
|
|
20908
20906
|
return React__default.useEffect(() => {
|
|
20909
|
-
const Q = a._options.shouldUnregister || h, te =
|
|
20907
|
+
const Q = a._options.shouldUnregister || h, te = W.current;
|
|
20910
20908
|
te && te !== r && !M && a.unregister(te), a.register(r, {
|
|
20911
20909
|
...V.current.rules,
|
|
20912
20910
|
...isBoolean(V.current.disabled) ? { disabled: V.current.disabled } : {}
|
|
@@ -20919,7 +20917,7 @@ function useController(t) {
|
|
|
20919
20917
|
const ae = cloneObject(get(a._options.defaultValues, r, V.current.defaultValue));
|
|
20920
20918
|
set(a._defaultValues, r, ae), isUndefined(get(a._formValues, r)) && set(a._formValues, r, ae);
|
|
20921
20919
|
}
|
|
20922
|
-
return !M && a.register(r),
|
|
20920
|
+
return !M && a.register(r), W.current = r, () => {
|
|
20923
20921
|
(M ? Q && !a._state.action : Q) ? a.unregister(r) : ne(r, !1);
|
|
20924
20922
|
};
|
|
20925
20923
|
}, [r, a, M, h]), React__default.useEffect(() => {
|
|
@@ -20928,10 +20926,10 @@ function useController(t) {
|
|
|
20928
20926
|
name: r
|
|
20929
20927
|
});
|
|
20930
20928
|
}, [i, r, a]), React__default.useMemo(() => ({
|
|
20931
|
-
field:
|
|
20929
|
+
field: G,
|
|
20932
20930
|
formState: q,
|
|
20933
20931
|
fieldState: Z
|
|
20934
|
-
}), [
|
|
20932
|
+
}), [G, q, Z]);
|
|
20935
20933
|
}
|
|
20936
20934
|
const Controller = (t) => t.render(useController(t));
|
|
20937
20935
|
function FieldRenderer({
|
|
@@ -21191,11 +21189,11 @@ function FormFactoryRenderer({
|
|
|
21191
21189
|
/* @__PURE__ */ jsx("div", { className: "space-y-4", children: M.fields.map((j, q) => {
|
|
21192
21190
|
const V = flattenRow(j).filter((Z) => !Z.hidden?.(y));
|
|
21193
21191
|
if (!V.length) return null;
|
|
21194
|
-
const
|
|
21192
|
+
const W = V.reduce((Z, re) => Z + (re.colSpan ?? 1), 0), K = W > 1 ? cn$1(
|
|
21195
21193
|
"grid gap-4",
|
|
21196
|
-
|
|
21197
|
-
|
|
21198
|
-
|
|
21194
|
+
W === 2 && "grid-cols-2",
|
|
21195
|
+
W === 3 && "grid-cols-3",
|
|
21196
|
+
W === 4 && "grid-cols-4"
|
|
21199
21197
|
) : "";
|
|
21200
21198
|
return /* @__PURE__ */ jsx("div", { className: K, children: V.map((Z) => /* @__PURE__ */ jsx(
|
|
21201
21199
|
"div",
|
|
@@ -21278,17 +21276,15 @@ function renderFiltersModal(t, e, r, i) {
|
|
|
21278
21276
|
return /* @__PURE__ */ jsx(
|
|
21279
21277
|
FiltersModal,
|
|
21280
21278
|
{
|
|
21281
|
-
title: i
|
|
21282
|
-
description: i
|
|
21283
|
-
|
|
21284
|
-
|
|
21285
|
-
|
|
21286
|
-
|
|
21287
|
-
|
|
21288
|
-
|
|
21289
|
-
|
|
21290
|
-
className: i?.className,
|
|
21291
|
-
children: renderFiltersPanel(t, e, r, i?.panel)
|
|
21279
|
+
title: i.title,
|
|
21280
|
+
description: i.description,
|
|
21281
|
+
isOpen: i.isOpen,
|
|
21282
|
+
onOpenChange: i.onOpenChange,
|
|
21283
|
+
onApply: i.onApply,
|
|
21284
|
+
applyLabel: i.applyLabel,
|
|
21285
|
+
closeLabel: i.closeLabel,
|
|
21286
|
+
className: i.className,
|
|
21287
|
+
children: renderFiltersPanel(t, e, r, i.panel)
|
|
21292
21288
|
}
|
|
21293
21289
|
);
|
|
21294
21290
|
}
|