@oniratec/onira-react-ui 1.2.9 → 1.2.10
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +628 -617
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -815,47 +815,50 @@ function FileUpload({
|
|
|
815
815
|
// ✅ NEW
|
|
816
816
|
showPreview: q = !0,
|
|
817
817
|
previewMode: H = "auto",
|
|
818
|
-
maxPreviewItems: G = 4
|
|
818
|
+
maxPreviewItems: G = 4,
|
|
819
|
+
defaultPreviewUrl: te
|
|
819
820
|
}) {
|
|
820
|
-
const
|
|
821
|
-
const
|
|
822
|
-
|
|
823
|
-
},
|
|
824
|
-
if (!s) return
|
|
825
|
-
const
|
|
826
|
-
for (const
|
|
827
|
-
|
|
828
|
-
return Array.from(
|
|
829
|
-
},
|
|
830
|
-
const
|
|
831
|
-
|
|
832
|
-
},
|
|
833
|
-
fe
|
|
834
|
-
},
|
|
821
|
+
const M = useId(), j = d ?? M, F = t ? `${j}-helper` : void 0, Z = r ? `${j}-error` : void 0, J = [F, Z].filter(Boolean).join(" ") || void 0, ee = useRef(null), [ie, se] = useState(l), [le, ue] = useState(!1), de = n !== void 0, fe = de ? n : ie, pe = (oe) => {
|
|
822
|
+
const ne = s ? oe : oe.slice(0, 1);
|
|
823
|
+
de || se(ne), h?.(ne);
|
|
824
|
+
}, ve = (oe) => {
|
|
825
|
+
if (!s) return oe.slice(0, 1);
|
|
826
|
+
const ne = new Map(fe.map((ce) => [getFileKey(ce), ce]));
|
|
827
|
+
for (const ce of oe)
|
|
828
|
+
ne.set(getFileKey(ce), ce);
|
|
829
|
+
return Array.from(ne.values());
|
|
830
|
+
}, he = (oe) => {
|
|
831
|
+
const ne = Array.from(oe.target.files ?? []), ce = s ? ve(ne) : ne;
|
|
832
|
+
pe(ce), oe.target.value = "";
|
|
833
|
+
}, re = (oe) => {
|
|
834
|
+
pe(fe.filter((ne) => getFileKey(ne) !== getFileKey(oe)));
|
|
835
|
+
}, ae = (oe) => {
|
|
835
836
|
if (!K || i) return;
|
|
836
|
-
|
|
837
|
-
const
|
|
838
|
-
if (
|
|
839
|
-
const
|
|
840
|
-
|
|
841
|
-
},
|
|
837
|
+
oe.preventDefault(), ue(!1);
|
|
838
|
+
const ne = Array.from(oe.dataTransfer.files ?? []);
|
|
839
|
+
if (ne.length === 0) return;
|
|
840
|
+
const ce = s ? ve(ne) : ne;
|
|
841
|
+
pe(ce);
|
|
842
|
+
}, W = useMemo(() => {
|
|
842
843
|
if (!q) return [];
|
|
843
|
-
const
|
|
844
|
-
return H === "image" || H === "auto" &&
|
|
845
|
-
key: getFileKey(
|
|
846
|
-
file:
|
|
847
|
-
url: URL.createObjectURL(
|
|
844
|
+
const oe = fe.slice(0, G);
|
|
845
|
+
return H === "image" || H === "auto" && oe.some((ce) => isImageFile(ce)) ? oe.filter((ce) => isImageFile(ce)).map((ce) => ({
|
|
846
|
+
key: getFileKey(ce),
|
|
847
|
+
file: ce,
|
|
848
|
+
url: URL.createObjectURL(ce)
|
|
848
849
|
})) : [];
|
|
849
|
-
}, [
|
|
850
|
-
|
|
851
|
-
for (const
|
|
852
|
-
}, [
|
|
853
|
-
|
|
850
|
+
}, [fe, G, H, q]);
|
|
851
|
+
useEffect(() => () => {
|
|
852
|
+
for (const oe of W) URL.revokeObjectURL(oe.url);
|
|
853
|
+
}, [W]);
|
|
854
|
+
const Q = !!te && fe.length === 0;
|
|
855
|
+
return /* @__PURE__ */ jsxs("div", { className: "oniratec-file-upload", "data-disabled": i ? "true" : void 0, children: [
|
|
856
|
+
e && /* @__PURE__ */ jsx("label", { htmlFor: j, className: "oniratec-file-upload__label", children: e }),
|
|
854
857
|
/* @__PURE__ */ jsx(
|
|
855
858
|
"input",
|
|
856
859
|
{
|
|
857
|
-
ref:
|
|
858
|
-
id:
|
|
860
|
+
ref: ee,
|
|
861
|
+
id: j,
|
|
859
862
|
name: V,
|
|
860
863
|
type: "file",
|
|
861
864
|
className: "sr-only",
|
|
@@ -863,8 +866,8 @@ function FileUpload({
|
|
|
863
866
|
multiple: s,
|
|
864
867
|
accept: a,
|
|
865
868
|
"aria-invalid": r ? "true" : void 0,
|
|
866
|
-
"aria-describedby":
|
|
867
|
-
onChange:
|
|
869
|
+
"aria-describedby": J,
|
|
870
|
+
onChange: he
|
|
868
871
|
}
|
|
869
872
|
),
|
|
870
873
|
/* @__PURE__ */ jsxs(
|
|
@@ -875,14 +878,14 @@ function FileUpload({
|
|
|
875
878
|
className: cn(
|
|
876
879
|
"oniratec-file-upload__dropzone",
|
|
877
880
|
K && "oniratec-file-upload__dropzone--droppable",
|
|
878
|
-
|
|
881
|
+
le && "oniratec-file-upload__dropzone--dragging"
|
|
879
882
|
),
|
|
880
|
-
onClick: () =>
|
|
881
|
-
onDragOver: (
|
|
882
|
-
!K || i || (
|
|
883
|
+
onClick: () => ee.current?.click(),
|
|
884
|
+
onDragOver: (oe) => {
|
|
885
|
+
!K || i || (oe.preventDefault(), ue(!0));
|
|
883
886
|
},
|
|
884
|
-
onDragLeave: () => K &&
|
|
885
|
-
onDrop:
|
|
887
|
+
onDragLeave: () => K && ue(!1),
|
|
888
|
+
onDrop: ae,
|
|
886
889
|
children: [
|
|
887
890
|
/* @__PURE__ */ jsx("span", { className: "oniratec-file-upload__icon", children: /* @__PURE__ */ jsx(UploadCloud, { className: "h-5 w-5" }) }),
|
|
888
891
|
/* @__PURE__ */ jsx("span", { className: "oniratec-file-upload__text", children: s ? "Seleccionar archivos" : "Seleccionar archivo" }),
|
|
@@ -894,25 +897,33 @@ function FileUpload({
|
|
|
894
897
|
]
|
|
895
898
|
}
|
|
896
899
|
),
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
900
|
+
Q && /* @__PURE__ */ jsx("div", { className: "oniratec-file-upload__preview", children: /* @__PURE__ */ jsx("div", { className: "oniratec-file-upload__preview-item", children: /* @__PURE__ */ jsx(
|
|
901
|
+
"img",
|
|
902
|
+
{
|
|
903
|
+
src: te,
|
|
904
|
+
alt: "Logo actual",
|
|
905
|
+
className: "oniratec-file-upload__preview-img"
|
|
906
|
+
}
|
|
907
|
+
) }) }),
|
|
908
|
+
W.length > 0 && /* @__PURE__ */ jsx("div", { className: "oniratec-file-upload__preview", children: W.map((oe) => /* @__PURE__ */ jsx("div", { className: "oniratec-file-upload__preview-item", children: /* @__PURE__ */ jsx("img", { src: oe.url, alt: oe.file.name, className: "oniratec-file-upload__preview-img" }) }, oe.key)) }),
|
|
909
|
+
t && !r && /* @__PURE__ */ jsx("p", { id: F, className: "oniratec-file-upload__helper", children: t }),
|
|
910
|
+
r && /* @__PURE__ */ jsx("p", { id: Z, className: "oniratec-file-upload__error", children: r }),
|
|
911
|
+
fe.length > 0 && /* @__PURE__ */ jsx("ul", { className: "oniratec-file-upload__list", children: fe.map((oe) => /* @__PURE__ */ jsxs("li", { className: "oniratec-file-upload__item", children: [
|
|
901
912
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
902
|
-
/* @__PURE__ */ jsx("p", { className: "oniratec-file-upload__name", children:
|
|
903
|
-
/* @__PURE__ */ jsx("p", { className: "oniratec-file-upload__size", children: formatFileSize(
|
|
913
|
+
/* @__PURE__ */ jsx("p", { className: "oniratec-file-upload__name", children: oe.name }),
|
|
914
|
+
/* @__PURE__ */ jsx("p", { className: "oniratec-file-upload__size", children: formatFileSize(oe.size) })
|
|
904
915
|
] }),
|
|
905
916
|
/* @__PURE__ */ jsx(
|
|
906
917
|
"button",
|
|
907
918
|
{
|
|
908
919
|
type: "button",
|
|
909
920
|
className: "oniratec-file-upload__remove",
|
|
910
|
-
onClick: () =>
|
|
911
|
-
"aria-label": `Eliminar ${
|
|
921
|
+
onClick: () => re(oe),
|
|
922
|
+
"aria-label": `Eliminar ${oe.name}`,
|
|
912
923
|
children: /* @__PURE__ */ jsx(X$1, { className: "h-4 w-4" })
|
|
913
924
|
}
|
|
914
925
|
)
|
|
915
|
-
] }, getFileKey(
|
|
926
|
+
] }, getFileKey(oe))) })
|
|
916
927
|
] });
|
|
917
928
|
}
|
|
918
929
|
const FilePicker = FileUpload;
|
|
@@ -1218,91 +1229,91 @@ function requireLottie() {
|
|
|
1218
1229
|
i || (i = n(function(q) {
|
|
1219
1230
|
function H() {
|
|
1220
1231
|
function te(he, re) {
|
|
1221
|
-
var
|
|
1222
|
-
for (W = 0; W <
|
|
1223
|
-
if (
|
|
1224
|
-
if (
|
|
1225
|
-
var ye =
|
|
1232
|
+
var ae, W, Q = he.length, oe, ne, ce, me;
|
|
1233
|
+
for (W = 0; W < Q; W += 1)
|
|
1234
|
+
if (ae = he[W], "ks" in ae && !ae.completed) {
|
|
1235
|
+
if (ae.completed = !0, ae.hasMask) {
|
|
1236
|
+
var ye = ae.masksProperties;
|
|
1226
1237
|
for (ne = ye.length, oe = 0; oe < ne; oe += 1)
|
|
1227
1238
|
if (ye[oe].pt.k.i)
|
|
1228
|
-
|
|
1239
|
+
J(ye[oe].pt.k);
|
|
1229
1240
|
else
|
|
1230
1241
|
for (me = ye[oe].pt.k.length, ce = 0; ce < me; ce += 1)
|
|
1231
|
-
ye[oe].pt.k[ce].s &&
|
|
1242
|
+
ye[oe].pt.k[ce].s && J(ye[oe].pt.k[ce].s[0]), ye[oe].pt.k[ce].e && J(ye[oe].pt.k[ce].e[0]);
|
|
1232
1243
|
}
|
|
1233
|
-
|
|
1244
|
+
ae.ty === 0 ? (ae.layers = F(ae.refId, re), te(ae.layers, re)) : ae.ty === 4 ? Z(ae.shapes) : ae.ty === 5 && pe(ae);
|
|
1234
1245
|
}
|
|
1235
1246
|
}
|
|
1236
1247
|
function M(he, re) {
|
|
1237
1248
|
if (he) {
|
|
1238
|
-
var
|
|
1239
|
-
for (
|
|
1240
|
-
he[
|
|
1249
|
+
var ae = 0, W = he.length;
|
|
1250
|
+
for (ae = 0; ae < W; ae += 1)
|
|
1251
|
+
he[ae].t === 1 && (he[ae].data.layers = F(he[ae].data.refId, re), te(he[ae].data.layers, re));
|
|
1241
1252
|
}
|
|
1242
1253
|
}
|
|
1243
1254
|
function j(he, re) {
|
|
1244
|
-
for (var
|
|
1245
|
-
if (re[
|
|
1246
|
-
return re[
|
|
1247
|
-
|
|
1255
|
+
for (var ae = 0, W = re.length; ae < W; ) {
|
|
1256
|
+
if (re[ae].id === he)
|
|
1257
|
+
return re[ae];
|
|
1258
|
+
ae += 1;
|
|
1248
1259
|
}
|
|
1249
1260
|
return null;
|
|
1250
1261
|
}
|
|
1251
1262
|
function F(he, re) {
|
|
1252
|
-
var
|
|
1253
|
-
return
|
|
1263
|
+
var ae = j(he, re);
|
|
1264
|
+
return ae ? ae.layers.__used ? JSON.parse(JSON.stringify(ae.layers)) : (ae.layers.__used = !0, ae.layers) : null;
|
|
1254
1265
|
}
|
|
1255
1266
|
function Z(he) {
|
|
1256
|
-
var re,
|
|
1257
|
-
for (re =
|
|
1267
|
+
var re, ae = he.length, W, Q;
|
|
1268
|
+
for (re = ae - 1; re >= 0; re -= 1)
|
|
1258
1269
|
if (he[re].ty === "sh")
|
|
1259
1270
|
if (he[re].ks.k.i)
|
|
1260
|
-
|
|
1271
|
+
J(he[re].ks.k);
|
|
1261
1272
|
else
|
|
1262
|
-
for (
|
|
1263
|
-
he[re].ks.k[W].s &&
|
|
1273
|
+
for (Q = he[re].ks.k.length, W = 0; W < Q; W += 1)
|
|
1274
|
+
he[re].ks.k[W].s && J(he[re].ks.k[W].s[0]), he[re].ks.k[W].e && J(he[re].ks.k[W].e[0]);
|
|
1264
1275
|
else he[re].ty === "gr" && Z(he[re].it);
|
|
1265
1276
|
}
|
|
1266
|
-
function
|
|
1267
|
-
var re,
|
|
1268
|
-
for (re = 0; re <
|
|
1277
|
+
function J(he) {
|
|
1278
|
+
var re, ae = he.i.length;
|
|
1279
|
+
for (re = 0; re < ae; re += 1)
|
|
1269
1280
|
he.i[re][0] += he.v[re][0], he.i[re][1] += he.v[re][1], he.o[re][0] += he.v[re][0], he.o[re][1] += he.v[re][1];
|
|
1270
1281
|
}
|
|
1271
1282
|
function ee(he, re) {
|
|
1272
|
-
var
|
|
1273
|
-
return he[0] >
|
|
1283
|
+
var ae = re ? re.split(".") : [100, 100, 100];
|
|
1284
|
+
return he[0] > ae[0] ? !0 : ae[0] > he[0] ? !1 : he[1] > ae[1] ? !0 : ae[1] > he[1] ? !1 : he[2] > ae[2] ? !0 : ae[2] > he[2] ? !1 : null;
|
|
1274
1285
|
}
|
|
1275
1286
|
var ie = /* @__PURE__ */ (function() {
|
|
1276
1287
|
var he = [4, 4, 14];
|
|
1277
1288
|
function re(W) {
|
|
1278
|
-
var
|
|
1289
|
+
var Q = W.t.d;
|
|
1279
1290
|
W.t.d = {
|
|
1280
1291
|
k: [{
|
|
1281
|
-
s:
|
|
1292
|
+
s: Q,
|
|
1282
1293
|
t: 0
|
|
1283
1294
|
}]
|
|
1284
1295
|
};
|
|
1285
1296
|
}
|
|
1286
|
-
function
|
|
1287
|
-
var
|
|
1288
|
-
for (
|
|
1289
|
-
W[
|
|
1297
|
+
function ae(W) {
|
|
1298
|
+
var Q, oe = W.length;
|
|
1299
|
+
for (Q = 0; Q < oe; Q += 1)
|
|
1300
|
+
W[Q].ty === 5 && re(W[Q]);
|
|
1290
1301
|
}
|
|
1291
1302
|
return function(W) {
|
|
1292
|
-
if (ee(he, W.v) && (
|
|
1293
|
-
var
|
|
1294
|
-
for (
|
|
1295
|
-
W.assets[
|
|
1303
|
+
if (ee(he, W.v) && (ae(W.layers), W.assets)) {
|
|
1304
|
+
var Q, oe = W.assets.length;
|
|
1305
|
+
for (Q = 0; Q < oe; Q += 1)
|
|
1306
|
+
W.assets[Q].layers && ae(W.assets[Q].layers);
|
|
1296
1307
|
}
|
|
1297
1308
|
};
|
|
1298
|
-
})(),
|
|
1309
|
+
})(), se = /* @__PURE__ */ (function() {
|
|
1299
1310
|
var he = [4, 7, 99];
|
|
1300
1311
|
return function(re) {
|
|
1301
1312
|
if (re.chars && !ee(he, re.v)) {
|
|
1302
|
-
var
|
|
1303
|
-
for (
|
|
1304
|
-
var
|
|
1305
|
-
|
|
1313
|
+
var ae, W = re.chars.length;
|
|
1314
|
+
for (ae = 0; ae < W; ae += 1) {
|
|
1315
|
+
var Q = re.chars[ae];
|
|
1316
|
+
Q.data && Q.data.shapes && (Z(Q.data.shapes), Q.data.ip = 0, Q.data.op = 99999, Q.data.st = 0, Q.data.sr = 1, Q.data.ks = {
|
|
1306
1317
|
p: {
|
|
1307
1318
|
k: [0, 0],
|
|
1308
1319
|
a: 0
|
|
@@ -1323,9 +1334,9 @@ function requireLottie() {
|
|
|
1323
1334
|
k: 100,
|
|
1324
1335
|
a: 0
|
|
1325
1336
|
}
|
|
1326
|
-
}, re.chars[
|
|
1337
|
+
}, re.chars[ae].t || (Q.data.shapes.push({
|
|
1327
1338
|
ty: "no"
|
|
1328
|
-
}),
|
|
1339
|
+
}), Q.data.shapes[0].it.push({
|
|
1329
1340
|
p: {
|
|
1330
1341
|
k: [0, 0],
|
|
1331
1342
|
a: 0
|
|
@@ -1362,74 +1373,74 @@ function requireLottie() {
|
|
|
1362
1373
|
})(), le = /* @__PURE__ */ (function() {
|
|
1363
1374
|
var he = [5, 7, 15];
|
|
1364
1375
|
function re(W) {
|
|
1365
|
-
var
|
|
1366
|
-
typeof
|
|
1376
|
+
var Q = W.t.p;
|
|
1377
|
+
typeof Q.a == "number" && (Q.a = {
|
|
1367
1378
|
a: 0,
|
|
1368
|
-
k:
|
|
1369
|
-
}), typeof
|
|
1379
|
+
k: Q.a
|
|
1380
|
+
}), typeof Q.p == "number" && (Q.p = {
|
|
1370
1381
|
a: 0,
|
|
1371
|
-
k:
|
|
1372
|
-
}), typeof
|
|
1382
|
+
k: Q.p
|
|
1383
|
+
}), typeof Q.r == "number" && (Q.r = {
|
|
1373
1384
|
a: 0,
|
|
1374
|
-
k:
|
|
1385
|
+
k: Q.r
|
|
1375
1386
|
});
|
|
1376
1387
|
}
|
|
1377
|
-
function
|
|
1378
|
-
var
|
|
1379
|
-
for (
|
|
1380
|
-
W[
|
|
1388
|
+
function ae(W) {
|
|
1389
|
+
var Q, oe = W.length;
|
|
1390
|
+
for (Q = 0; Q < oe; Q += 1)
|
|
1391
|
+
W[Q].ty === 5 && re(W[Q]);
|
|
1381
1392
|
}
|
|
1382
1393
|
return function(W) {
|
|
1383
|
-
if (ee(he, W.v) && (
|
|
1384
|
-
var
|
|
1385
|
-
for (
|
|
1386
|
-
W.assets[
|
|
1394
|
+
if (ee(he, W.v) && (ae(W.layers), W.assets)) {
|
|
1395
|
+
var Q, oe = W.assets.length;
|
|
1396
|
+
for (Q = 0; Q < oe; Q += 1)
|
|
1397
|
+
W.assets[Q].layers && ae(W.assets[Q].layers);
|
|
1387
1398
|
}
|
|
1388
1399
|
};
|
|
1389
1400
|
})(), ue = /* @__PURE__ */ (function() {
|
|
1390
1401
|
var he = [4, 1, 9];
|
|
1391
1402
|
function re(W) {
|
|
1392
|
-
var
|
|
1393
|
-
for (
|
|
1394
|
-
if (W[
|
|
1395
|
-
re(W[
|
|
1396
|
-
else if (W[
|
|
1397
|
-
if (W[
|
|
1398
|
-
for (ce = W[
|
|
1399
|
-
W[
|
|
1403
|
+
var Q, oe = W.length, ne, ce;
|
|
1404
|
+
for (Q = 0; Q < oe; Q += 1)
|
|
1405
|
+
if (W[Q].ty === "gr")
|
|
1406
|
+
re(W[Q].it);
|
|
1407
|
+
else if (W[Q].ty === "fl" || W[Q].ty === "st")
|
|
1408
|
+
if (W[Q].c.k && W[Q].c.k[0].i)
|
|
1409
|
+
for (ce = W[Q].c.k.length, ne = 0; ne < ce; ne += 1)
|
|
1410
|
+
W[Q].c.k[ne].s && (W[Q].c.k[ne].s[0] /= 255, W[Q].c.k[ne].s[1] /= 255, W[Q].c.k[ne].s[2] /= 255, W[Q].c.k[ne].s[3] /= 255), W[Q].c.k[ne].e && (W[Q].c.k[ne].e[0] /= 255, W[Q].c.k[ne].e[1] /= 255, W[Q].c.k[ne].e[2] /= 255, W[Q].c.k[ne].e[3] /= 255);
|
|
1400
1411
|
else
|
|
1401
|
-
W[
|
|
1412
|
+
W[Q].c.k[0] /= 255, W[Q].c.k[1] /= 255, W[Q].c.k[2] /= 255, W[Q].c.k[3] /= 255;
|
|
1402
1413
|
}
|
|
1403
|
-
function
|
|
1404
|
-
var
|
|
1405
|
-
for (
|
|
1406
|
-
W[
|
|
1414
|
+
function ae(W) {
|
|
1415
|
+
var Q, oe = W.length;
|
|
1416
|
+
for (Q = 0; Q < oe; Q += 1)
|
|
1417
|
+
W[Q].ty === 4 && re(W[Q].shapes);
|
|
1407
1418
|
}
|
|
1408
1419
|
return function(W) {
|
|
1409
|
-
if (ee(he, W.v) && (
|
|
1410
|
-
var
|
|
1411
|
-
for (
|
|
1412
|
-
W.assets[
|
|
1420
|
+
if (ee(he, W.v) && (ae(W.layers), W.assets)) {
|
|
1421
|
+
var Q, oe = W.assets.length;
|
|
1422
|
+
for (Q = 0; Q < oe; Q += 1)
|
|
1423
|
+
W.assets[Q].layers && ae(W.assets[Q].layers);
|
|
1413
1424
|
}
|
|
1414
1425
|
};
|
|
1415
1426
|
})(), de = /* @__PURE__ */ (function() {
|
|
1416
1427
|
var he = [4, 4, 18];
|
|
1417
1428
|
function re(W) {
|
|
1418
|
-
var
|
|
1419
|
-
for (
|
|
1420
|
-
if (W[
|
|
1421
|
-
if (W[
|
|
1422
|
-
W[
|
|
1429
|
+
var Q, oe = W.length, ne, ce;
|
|
1430
|
+
for (Q = oe - 1; Q >= 0; Q -= 1)
|
|
1431
|
+
if (W[Q].ty === "sh")
|
|
1432
|
+
if (W[Q].ks.k.i)
|
|
1433
|
+
W[Q].ks.k.c = W[Q].closed;
|
|
1423
1434
|
else
|
|
1424
|
-
for (ce = W[
|
|
1425
|
-
W[
|
|
1426
|
-
else W[
|
|
1435
|
+
for (ce = W[Q].ks.k.length, ne = 0; ne < ce; ne += 1)
|
|
1436
|
+
W[Q].ks.k[ne].s && (W[Q].ks.k[ne].s[0].c = W[Q].closed), W[Q].ks.k[ne].e && (W[Q].ks.k[ne].e[0].c = W[Q].closed);
|
|
1437
|
+
else W[Q].ty === "gr" && re(W[Q].it);
|
|
1427
1438
|
}
|
|
1428
|
-
function
|
|
1429
|
-
var
|
|
1439
|
+
function ae(W) {
|
|
1440
|
+
var Q, oe, ne = W.length, ce, me, ye, xe;
|
|
1430
1441
|
for (oe = 0; oe < ne; oe += 1) {
|
|
1431
|
-
if (
|
|
1432
|
-
var be =
|
|
1442
|
+
if (Q = W[oe], Q.hasMask) {
|
|
1443
|
+
var be = Q.masksProperties;
|
|
1433
1444
|
for (me = be.length, ce = 0; ce < me; ce += 1)
|
|
1434
1445
|
if (be[ce].pt.k.i)
|
|
1435
1446
|
be[ce].pt.k.c = be[ce].cl;
|
|
@@ -1437,32 +1448,32 @@ function requireLottie() {
|
|
|
1437
1448
|
for (xe = be[ce].pt.k.length, ye = 0; ye < xe; ye += 1)
|
|
1438
1449
|
be[ce].pt.k[ye].s && (be[ce].pt.k[ye].s[0].c = be[ce].cl), be[ce].pt.k[ye].e && (be[ce].pt.k[ye].e[0].c = be[ce].cl);
|
|
1439
1450
|
}
|
|
1440
|
-
|
|
1451
|
+
Q.ty === 4 && re(Q.shapes);
|
|
1441
1452
|
}
|
|
1442
1453
|
}
|
|
1443
1454
|
return function(W) {
|
|
1444
|
-
if (ee(he, W.v) && (
|
|
1445
|
-
var
|
|
1446
|
-
for (
|
|
1447
|
-
W.assets[
|
|
1455
|
+
if (ee(he, W.v) && (ae(W.layers), W.assets)) {
|
|
1456
|
+
var Q, oe = W.assets.length;
|
|
1457
|
+
for (Q = 0; Q < oe; Q += 1)
|
|
1458
|
+
W.assets[Q].layers && ae(W.assets[Q].layers);
|
|
1448
1459
|
}
|
|
1449
1460
|
};
|
|
1450
1461
|
})();
|
|
1451
1462
|
function fe(he) {
|
|
1452
|
-
he.__complete || (ue(he), ie(he),
|
|
1463
|
+
he.__complete || (ue(he), ie(he), se(he), le(he), de(he), te(he.layers, he.assets), M(he.chars, he.assets), he.__complete = !0);
|
|
1453
1464
|
}
|
|
1454
1465
|
function pe(he) {
|
|
1455
1466
|
he.t.a.length === 0 && "m" in he.t.p;
|
|
1456
1467
|
}
|
|
1457
1468
|
var ve = {};
|
|
1458
|
-
return ve.completeData = fe, ve.checkColors = ue, ve.checkChars =
|
|
1469
|
+
return ve.completeData = fe, ve.checkColors = ue, ve.checkChars = se, ve.checkPathProperties = le, ve.checkShapes = de, ve.completeLayers = te, ve;
|
|
1459
1470
|
}
|
|
1460
1471
|
if (a.dataManager || (a.dataManager = H()), a.assetLoader || (a.assetLoader = /* @__PURE__ */ (function() {
|
|
1461
1472
|
function te(j) {
|
|
1462
1473
|
var F = j.getResponseHeader("content-type");
|
|
1463
1474
|
return F && j.responseType === "json" && F.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;
|
|
1464
1475
|
}
|
|
1465
|
-
function M(j, F, Z,
|
|
1476
|
+
function M(j, F, Z, J) {
|
|
1466
1477
|
var ee, ie = new XMLHttpRequest();
|
|
1467
1478
|
try {
|
|
1468
1479
|
ie.responseType = "json";
|
|
@@ -1475,8 +1486,8 @@ function requireLottie() {
|
|
|
1475
1486
|
else
|
|
1476
1487
|
try {
|
|
1477
1488
|
ee = te(ie), Z(ee);
|
|
1478
|
-
} catch (
|
|
1479
|
-
|
|
1489
|
+
} catch (se) {
|
|
1490
|
+
J && J(se);
|
|
1480
1491
|
}
|
|
1481
1492
|
};
|
|
1482
1493
|
try {
|
|
@@ -1586,8 +1597,8 @@ function requireLottie() {
|
|
|
1586
1597
|
if (M.e)
|
|
1587
1598
|
Z = M.p;
|
|
1588
1599
|
else if (j) {
|
|
1589
|
-
var
|
|
1590
|
-
|
|
1600
|
+
var J = M.p;
|
|
1601
|
+
J.indexOf("images/") !== -1 && (J = J.split("/")[1]), Z = j + J;
|
|
1591
1602
|
} else
|
|
1592
1603
|
Z = F, Z += M.u ? M.u : "", Z += M.p;
|
|
1593
1604
|
return Z;
|
|
@@ -2005,10 +2016,10 @@ function requireLottie() {
|
|
|
2005
2016
|
var animationManager = (function() {
|
|
2006
2017
|
var e = {}, t = [], r = 0, i = 0, s = 0, a = !0, n = !1;
|
|
2007
2018
|
function l(re) {
|
|
2008
|
-
for (var
|
|
2009
|
-
t[
|
|
2019
|
+
for (var ae = 0, W = re.target; ae < i; )
|
|
2020
|
+
t[ae].animation === W && (t.splice(ae, 1), ae -= 1, i -= 1, W.isPaused || K()), ae += 1;
|
|
2010
2021
|
}
|
|
2011
|
-
function h(re,
|
|
2022
|
+
function h(re, ae) {
|
|
2012
2023
|
if (!re)
|
|
2013
2024
|
return null;
|
|
2014
2025
|
for (var W = 0; W < i; ) {
|
|
@@ -2016,12 +2027,12 @@ function requireLottie() {
|
|
|
2016
2027
|
return t[W].animation;
|
|
2017
2028
|
W += 1;
|
|
2018
2029
|
}
|
|
2019
|
-
var
|
|
2020
|
-
return y(
|
|
2030
|
+
var Q = new AnimationItem();
|
|
2031
|
+
return y(Q, re), Q.setData(re, ae), Q;
|
|
2021
2032
|
}
|
|
2022
2033
|
function d() {
|
|
2023
|
-
var re,
|
|
2024
|
-
for (re = 0; re <
|
|
2034
|
+
var re, ae = t.length, W = [];
|
|
2035
|
+
for (re = 0; re < ae; re += 1)
|
|
2025
2036
|
W.push(t[re].animation);
|
|
2026
2037
|
return W;
|
|
2027
2038
|
}
|
|
@@ -2031,70 +2042,70 @@ function requireLottie() {
|
|
|
2031
2042
|
function K() {
|
|
2032
2043
|
s -= 1;
|
|
2033
2044
|
}
|
|
2034
|
-
function y(re,
|
|
2045
|
+
function y(re, ae) {
|
|
2035
2046
|
re.addEventListener("destroy", l), re.addEventListener("_active", V), re.addEventListener("_idle", K), t.push({
|
|
2036
|
-
elem:
|
|
2047
|
+
elem: ae,
|
|
2037
2048
|
animation: re
|
|
2038
2049
|
}), i += 1;
|
|
2039
2050
|
}
|
|
2040
2051
|
function q(re) {
|
|
2041
|
-
var
|
|
2042
|
-
return y(
|
|
2052
|
+
var ae = new AnimationItem();
|
|
2053
|
+
return y(ae, null), ae.setParams(re), ae;
|
|
2043
2054
|
}
|
|
2044
|
-
function H(re,
|
|
2055
|
+
function H(re, ae) {
|
|
2045
2056
|
var W;
|
|
2046
2057
|
for (W = 0; W < i; W += 1)
|
|
2047
|
-
t[W].animation.setSpeed(re,
|
|
2058
|
+
t[W].animation.setSpeed(re, ae);
|
|
2048
2059
|
}
|
|
2049
|
-
function G(re,
|
|
2060
|
+
function G(re, ae) {
|
|
2050
2061
|
var W;
|
|
2051
2062
|
for (W = 0; W < i; W += 1)
|
|
2052
|
-
t[W].animation.setDirection(re,
|
|
2063
|
+
t[W].animation.setDirection(re, ae);
|
|
2053
2064
|
}
|
|
2054
2065
|
function te(re) {
|
|
2055
|
-
var
|
|
2056
|
-
for (
|
|
2057
|
-
t[
|
|
2066
|
+
var ae;
|
|
2067
|
+
for (ae = 0; ae < i; ae += 1)
|
|
2068
|
+
t[ae].animation.play(re);
|
|
2058
2069
|
}
|
|
2059
2070
|
function M(re) {
|
|
2060
|
-
var
|
|
2071
|
+
var ae = re - r, W;
|
|
2061
2072
|
for (W = 0; W < i; W += 1)
|
|
2062
|
-
t[W].animation.advanceTime(
|
|
2073
|
+
t[W].animation.advanceTime(ae);
|
|
2063
2074
|
r = re, s && !n ? window.requestAnimationFrame(M) : a = !0;
|
|
2064
2075
|
}
|
|
2065
2076
|
function j(re) {
|
|
2066
2077
|
r = re, window.requestAnimationFrame(M);
|
|
2067
2078
|
}
|
|
2068
2079
|
function F(re) {
|
|
2069
|
-
var
|
|
2070
|
-
for (
|
|
2071
|
-
t[
|
|
2080
|
+
var ae;
|
|
2081
|
+
for (ae = 0; ae < i; ae += 1)
|
|
2082
|
+
t[ae].animation.pause(re);
|
|
2072
2083
|
}
|
|
2073
|
-
function Z(re,
|
|
2074
|
-
var
|
|
2075
|
-
for (
|
|
2076
|
-
t[
|
|
2084
|
+
function Z(re, ae, W) {
|
|
2085
|
+
var Q;
|
|
2086
|
+
for (Q = 0; Q < i; Q += 1)
|
|
2087
|
+
t[Q].animation.goToAndStop(re, ae, W);
|
|
2077
2088
|
}
|
|
2078
|
-
function
|
|
2079
|
-
var
|
|
2080
|
-
for (
|
|
2081
|
-
t[
|
|
2089
|
+
function J(re) {
|
|
2090
|
+
var ae;
|
|
2091
|
+
for (ae = 0; ae < i; ae += 1)
|
|
2092
|
+
t[ae].animation.stop(re);
|
|
2082
2093
|
}
|
|
2083
2094
|
function ee(re) {
|
|
2084
|
-
var
|
|
2085
|
-
for (
|
|
2086
|
-
t[
|
|
2095
|
+
var ae;
|
|
2096
|
+
for (ae = 0; ae < i; ae += 1)
|
|
2097
|
+
t[ae].animation.togglePause(re);
|
|
2087
2098
|
}
|
|
2088
2099
|
function ie(re) {
|
|
2089
|
-
var
|
|
2090
|
-
for (
|
|
2091
|
-
t[
|
|
2100
|
+
var ae;
|
|
2101
|
+
for (ae = i - 1; ae >= 0; ae -= 1)
|
|
2102
|
+
t[ae].animation.destroy(re);
|
|
2092
2103
|
}
|
|
2093
|
-
function
|
|
2094
|
-
var
|
|
2104
|
+
function se(re, ae, W) {
|
|
2105
|
+
var Q = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), oe, ne = Q.length;
|
|
2095
2106
|
for (oe = 0; oe < ne; oe += 1)
|
|
2096
|
-
W &&
|
|
2097
|
-
if (
|
|
2107
|
+
W && Q[oe].setAttribute("data-bm-type", W), h(Q[oe], re);
|
|
2108
|
+
if (ae && ne === 0) {
|
|
2098
2109
|
W || (W = "svg");
|
|
2099
2110
|
var ce = document.getElementsByTagName("body")[0];
|
|
2100
2111
|
ce.innerText = "";
|
|
@@ -2116,32 +2127,32 @@ function requireLottie() {
|
|
|
2116
2127
|
function fe() {
|
|
2117
2128
|
n = !1, ue();
|
|
2118
2129
|
}
|
|
2119
|
-
function pe(re,
|
|
2130
|
+
function pe(re, ae) {
|
|
2120
2131
|
var W;
|
|
2121
2132
|
for (W = 0; W < i; W += 1)
|
|
2122
|
-
t[W].animation.setVolume(re,
|
|
2133
|
+
t[W].animation.setVolume(re, ae);
|
|
2123
2134
|
}
|
|
2124
2135
|
function ve(re) {
|
|
2125
|
-
var
|
|
2126
|
-
for (
|
|
2127
|
-
t[
|
|
2136
|
+
var ae;
|
|
2137
|
+
for (ae = 0; ae < i; ae += 1)
|
|
2138
|
+
t[ae].animation.mute(re);
|
|
2128
2139
|
}
|
|
2129
2140
|
function he(re) {
|
|
2130
|
-
var
|
|
2131
|
-
for (
|
|
2132
|
-
t[
|
|
2141
|
+
var ae;
|
|
2142
|
+
for (ae = 0; ae < i; ae += 1)
|
|
2143
|
+
t[ae].animation.unmute(re);
|
|
2133
2144
|
}
|
|
2134
|
-
return e.registerAnimation = h, e.loadAnimation = q, e.setSpeed = H, e.setDirection = G, e.play = te, e.pause = F, e.stop =
|
|
2145
|
+
return e.registerAnimation = h, e.loadAnimation = q, e.setSpeed = H, e.setDirection = G, e.play = te, e.pause = F, e.stop = J, e.togglePause = ee, e.searchAnimations = se, e.resize = le, e.goToAndStop = Z, e.destroy = ie, e.freeze = de, e.unfreeze = fe, e.setVolume = pe, e.mute = ve, e.unmute = he, e.getRegisteredAnimations = d, e;
|
|
2135
2146
|
})(), BezierFactory = (function() {
|
|
2136
2147
|
var e = {};
|
|
2137
2148
|
e.getBezierEasing = r;
|
|
2138
2149
|
var t = {};
|
|
2139
|
-
function r(j, F, Z,
|
|
2140
|
-
var ie = ee || ("bez_" + j + "_" + F + "_" + Z + "_" +
|
|
2150
|
+
function r(j, F, Z, J, ee) {
|
|
2151
|
+
var ie = ee || ("bez_" + j + "_" + F + "_" + Z + "_" + J).replace(/\./g, "p");
|
|
2141
2152
|
if (t[ie])
|
|
2142
2153
|
return t[ie];
|
|
2143
|
-
var
|
|
2144
|
-
return t[ie] =
|
|
2154
|
+
var se = new M([j, F, Z, J]);
|
|
2155
|
+
return t[ie] = se, se;
|
|
2145
2156
|
}
|
|
2146
2157
|
var i = 4, s = 1e-3, a = 1e-7, n = 10, l = 11, h = 1 / (l - 1), d = typeof Float32Array == "function";
|
|
2147
2158
|
function V(j, F) {
|
|
@@ -2159,19 +2170,19 @@ function requireLottie() {
|
|
|
2159
2170
|
function H(j, F, Z) {
|
|
2160
2171
|
return 3 * V(F, Z) * j * j + 2 * K(F, Z) * j + y(F);
|
|
2161
2172
|
}
|
|
2162
|
-
function G(j, F, Z,
|
|
2163
|
-
var ie,
|
|
2173
|
+
function G(j, F, Z, J, ee) {
|
|
2174
|
+
var ie, se, le = 0;
|
|
2164
2175
|
do
|
|
2165
|
-
|
|
2176
|
+
se = F + (Z - F) / 2, ie = q(se, J, ee) - j, ie > 0 ? Z = se : F = se;
|
|
2166
2177
|
while (Math.abs(ie) > a && ++le < n);
|
|
2167
|
-
return
|
|
2178
|
+
return se;
|
|
2168
2179
|
}
|
|
2169
|
-
function te(j, F, Z,
|
|
2180
|
+
function te(j, F, Z, J) {
|
|
2170
2181
|
for (var ee = 0; ee < i; ++ee) {
|
|
2171
|
-
var ie = H(F, Z,
|
|
2182
|
+
var ie = H(F, Z, J);
|
|
2172
2183
|
if (ie === 0) return F;
|
|
2173
|
-
var
|
|
2174
|
-
F -=
|
|
2184
|
+
var se = q(F, Z, J) - j;
|
|
2185
|
+
F -= se / ie;
|
|
2175
2186
|
}
|
|
2176
2187
|
return F;
|
|
2177
2188
|
}
|
|
@@ -2180,27 +2191,27 @@ function requireLottie() {
|
|
|
2180
2191
|
}
|
|
2181
2192
|
return M.prototype = {
|
|
2182
2193
|
get: function(F) {
|
|
2183
|
-
var Z = this._p[0],
|
|
2184
|
-
return this._precomputed || this._precompute(), Z ===
|
|
2194
|
+
var Z = this._p[0], J = this._p[1], ee = this._p[2], ie = this._p[3];
|
|
2195
|
+
return this._precomputed || this._precompute(), Z === J && ee === ie ? F : F === 0 ? 0 : F === 1 ? 1 : q(this._getTForX(F), J, ie);
|
|
2185
2196
|
},
|
|
2186
2197
|
// Private part
|
|
2187
2198
|
_precompute: function() {
|
|
2188
|
-
var F = this._p[0], Z = this._p[1],
|
|
2189
|
-
this._precomputed = !0, (F !== Z ||
|
|
2199
|
+
var F = this._p[0], Z = this._p[1], J = this._p[2], ee = this._p[3];
|
|
2200
|
+
this._precomputed = !0, (F !== Z || J !== ee) && this._calcSampleValues();
|
|
2190
2201
|
},
|
|
2191
2202
|
_calcSampleValues: function() {
|
|
2192
|
-
for (var F = this._p[0], Z = this._p[2],
|
|
2193
|
-
this._mSampleValues[
|
|
2203
|
+
for (var F = this._p[0], Z = this._p[2], J = 0; J < l; ++J)
|
|
2204
|
+
this._mSampleValues[J] = q(J * h, F, Z);
|
|
2194
2205
|
},
|
|
2195
2206
|
/**
|
|
2196
2207
|
* getTForX chose the fastest heuristic to determine the percentage value precisely from a given X projection.
|
|
2197
2208
|
*/
|
|
2198
2209
|
_getTForX: function(F) {
|
|
2199
|
-
for (var Z = this._p[0],
|
|
2210
|
+
for (var Z = this._p[0], J = this._p[2], ee = this._mSampleValues, ie = 0, se = 1, le = l - 1; se !== le && ee[se] <= F; ++se)
|
|
2200
2211
|
ie += h;
|
|
2201
|
-
--
|
|
2202
|
-
var ue = (F - ee[
|
|
2203
|
-
return fe >= s ? te(F, de, Z,
|
|
2212
|
+
--se;
|
|
2213
|
+
var ue = (F - ee[se]) / (ee[se + 1] - ee[se]), de = ie + ue * h, fe = H(de, Z, J);
|
|
2214
|
+
return fe >= s ? te(F, de, Z, J) : fe === 0 ? de : G(F, ie, ie + h, Z, J);
|
|
2204
2215
|
}
|
|
2205
2216
|
}, e;
|
|
2206
2217
|
})(), pooling = /* @__PURE__ */ (function() {
|
|
@@ -2258,25 +2269,25 @@ function requireLottie() {
|
|
|
2258
2269
|
function r(y, q, H, G, te, M, j, F, Z) {
|
|
2259
2270
|
if (H === 0 && M === 0 && Z === 0)
|
|
2260
2271
|
return t(y, q, G, te, j, F);
|
|
2261
|
-
var
|
|
2262
|
-
return
|
|
2272
|
+
var J = e.sqrt(e.pow(G - y, 2) + e.pow(te - q, 2) + e.pow(M - H, 2)), ee = e.sqrt(e.pow(j - y, 2) + e.pow(F - q, 2) + e.pow(Z - H, 2)), ie = e.sqrt(e.pow(j - G, 2) + e.pow(F - te, 2) + e.pow(Z - M, 2)), se;
|
|
2273
|
+
return J > ee ? J > ie ? se = J - ee - ie : se = ie - ee - J : ie > ee ? se = ie - ee - J : se = ee - J - ie, se > -1e-4 && se < 1e-4;
|
|
2263
2274
|
}
|
|
2264
2275
|
var i = /* @__PURE__ */ (function() {
|
|
2265
2276
|
return function(y, q, H, G) {
|
|
2266
|
-
var te = getDefaultCurveSegments(), M, j, F, Z,
|
|
2277
|
+
var te = getDefaultCurveSegments(), M, j, F, Z, J, ee = 0, ie, se = [], le = [], ue = bezierLengthPool.newElement();
|
|
2267
2278
|
for (F = H.length, M = 0; M < te; M += 1) {
|
|
2268
|
-
for (
|
|
2269
|
-
Z = bmPow(1 -
|
|
2270
|
-
ie && (ie = bmSqrt(ie), ee += ie), ue.percents[M] =
|
|
2279
|
+
for (J = M / (te - 1), ie = 0, j = 0; j < F; j += 1)
|
|
2280
|
+
Z = bmPow(1 - J, 3) * y[j] + 3 * bmPow(1 - J, 2) * J * H[j] + 3 * (1 - J) * bmPow(J, 2) * G[j] + bmPow(J, 3) * q[j], se[j] = Z, le[j] !== null && (ie += bmPow(se[j] - le[j], 2)), le[j] = se[j];
|
|
2281
|
+
ie && (ie = bmSqrt(ie), ee += ie), ue.percents[M] = J, ue.lengths[M] = ee;
|
|
2271
2282
|
}
|
|
2272
2283
|
return ue.addedLength = ee, ue;
|
|
2273
2284
|
};
|
|
2274
2285
|
})();
|
|
2275
2286
|
function s(y) {
|
|
2276
|
-
var q = segmentsLengthPool.newElement(), H = y.c, G = y.v, te = y.o, M = y.i, j, F = y._length, Z = q.lengths,
|
|
2287
|
+
var q = segmentsLengthPool.newElement(), H = y.c, G = y.v, te = y.o, M = y.i, j, F = y._length, Z = q.lengths, J = 0;
|
|
2277
2288
|
for (j = 0; j < F - 1; j += 1)
|
|
2278
|
-
Z[j] = i(G[j], G[j + 1], te[j], M[j + 1]),
|
|
2279
|
-
return H && F && (Z[j] = i(G[j], G[0], te[j], M[0]),
|
|
2289
|
+
Z[j] = i(G[j], G[j + 1], te[j], M[j + 1]), J += Z[j].addedLength;
|
|
2290
|
+
return H && F && (Z[j] = i(G[j], G[0], te[j], M[0]), J += Z[j].addedLength), q.totalLength = J, q;
|
|
2280
2291
|
}
|
|
2281
2292
|
function a(y) {
|
|
2282
2293
|
this.segmentLength = 0, this.points = new Array(y);
|
|
@@ -2289,15 +2300,15 @@ function requireLottie() {
|
|
|
2289
2300
|
return function(q, H, G, te) {
|
|
2290
2301
|
var M = (q[0] + "_" + q[1] + "_" + H[0] + "_" + H[1] + "_" + G[0] + "_" + G[1] + "_" + te[0] + "_" + te[1]).replace(/\./g, "p");
|
|
2291
2302
|
if (!y[M]) {
|
|
2292
|
-
var j = getDefaultCurveSegments(), F, Z,
|
|
2303
|
+
var j = getDefaultCurveSegments(), F, Z, J, ee, ie, se = 0, le, ue, de = null;
|
|
2293
2304
|
q.length === 2 && (q[0] !== H[0] || q[1] !== H[1]) && t(q[0], q[1], H[0], H[1], q[0] + G[0], q[1] + G[1]) && t(q[0], q[1], H[0], H[1], H[0] + te[0], H[1] + te[1]) && (j = 2);
|
|
2294
2305
|
var fe = new a(j);
|
|
2295
|
-
for (
|
|
2296
|
-
for (ue = createSizedArray(
|
|
2306
|
+
for (J = G.length, F = 0; F < j; F += 1) {
|
|
2307
|
+
for (ue = createSizedArray(J), ie = F / (j - 1), le = 0, Z = 0; Z < J; Z += 1)
|
|
2297
2308
|
ee = bmPow(1 - ie, 3) * q[Z] + 3 * bmPow(1 - ie, 2) * ie * (q[Z] + G[Z]) + 3 * (1 - ie) * bmPow(ie, 2) * (H[Z] + te[Z]) + bmPow(ie, 3) * H[Z], ue[Z] = ee, de !== null && (le += bmPow(ue[Z] - de[Z], 2));
|
|
2298
|
-
le = bmSqrt(le),
|
|
2309
|
+
le = bmSqrt(le), se += le, fe.points[F] = new n(le, ue), de = ue;
|
|
2299
2310
|
}
|
|
2300
|
-
fe.segmentLength =
|
|
2311
|
+
fe.segmentLength = se, y[M] = fe;
|
|
2301
2312
|
}
|
|
2302
2313
|
return y[M];
|
|
2303
2314
|
};
|
|
@@ -2306,26 +2317,26 @@ function requireLottie() {
|
|
|
2306
2317
|
var H = q.percents, G = q.lengths, te = H.length, M = bmFloor((te - 1) * y), j = y * q.addedLength, F = 0;
|
|
2307
2318
|
if (M === te - 1 || M === 0 || j === G[M])
|
|
2308
2319
|
return H[M];
|
|
2309
|
-
for (var Z = G[M] > j ? -1 : 1,
|
|
2310
|
-
if (G[M] <= j && G[M + 1] > j ? (F = (j - G[M]) / (G[M + 1] - G[M]),
|
|
2320
|
+
for (var Z = G[M] > j ? -1 : 1, J = !0; J; )
|
|
2321
|
+
if (G[M] <= j && G[M + 1] > j ? (F = (j - G[M]) / (G[M + 1] - G[M]), J = !1) : M += Z, M < 0 || M >= te - 1) {
|
|
2311
2322
|
if (M === te - 1)
|
|
2312
2323
|
return H[M];
|
|
2313
|
-
|
|
2324
|
+
J = !1;
|
|
2314
2325
|
}
|
|
2315
2326
|
return H[M] + (H[M + 1] - H[M]) * F;
|
|
2316
2327
|
}
|
|
2317
2328
|
function d(y, q, H, G, te, M) {
|
|
2318
|
-
var j = h(te, M), F = 1 - j, Z = e.round((F * F * F * y[0] + (j * F * F + F * j * F + F * F * j) * H[0] + (j * j * F + F * j * j + j * F * j) * G[0] + j * j * j * q[0]) * 1e3) / 1e3,
|
|
2319
|
-
return [Z,
|
|
2329
|
+
var j = h(te, M), F = 1 - j, Z = e.round((F * F * F * y[0] + (j * F * F + F * j * F + F * F * j) * H[0] + (j * j * F + F * j * j + j * F * j) * G[0] + j * j * j * q[0]) * 1e3) / 1e3, J = e.round((F * F * F * y[1] + (j * F * F + F * j * F + F * F * j) * H[1] + (j * j * F + F * j * j + j * F * j) * G[1] + j * j * j * q[1]) * 1e3) / 1e3;
|
|
2330
|
+
return [Z, J];
|
|
2320
2331
|
}
|
|
2321
2332
|
var V = createTypedArray("float32", 8);
|
|
2322
2333
|
function K(y, q, H, G, te, M, j) {
|
|
2323
2334
|
te < 0 ? te = 0 : te > 1 && (te = 1);
|
|
2324
2335
|
var F = h(te, j);
|
|
2325
2336
|
M = M > 1 ? 1 : M;
|
|
2326
|
-
var Z = h(M, j),
|
|
2327
|
-
for (
|
|
2328
|
-
V[
|
|
2337
|
+
var Z = h(M, j), J, ee = y.length, ie = 1 - F, se = 1 - Z, le = ie * ie * ie, ue = F * ie * ie * 3, de = F * F * ie * 3, fe = F * F * F, pe = ie * ie * se, ve = F * ie * se + ie * F * se + ie * ie * Z, he = F * F * se + ie * F * Z + F * ie * Z, re = F * F * Z, ae = ie * se * se, W = F * se * se + ie * Z * se + ie * se * Z, Q = F * Z * se + ie * Z * Z + F * se * Z, oe = F * Z * Z, ne = se * se * se, ce = Z * se * se + se * Z * se + se * se * Z, me = Z * Z * se + se * Z * Z + Z * se * Z, ye = Z * Z * Z;
|
|
2338
|
+
for (J = 0; J < ee; J += 1)
|
|
2339
|
+
V[J * 4] = e.round((le * y[J] + ue * H[J] + de * G[J] + fe * q[J]) * 1e3) / 1e3, V[J * 4 + 1] = e.round((pe * y[J] + ve * H[J] + he * G[J] + re * q[J]) * 1e3) / 1e3, V[J * 4 + 2] = e.round((ae * y[J] + W * H[J] + Q * G[J] + oe * q[J]) * 1e3) / 1e3, V[J * 4 + 3] = e.round((ne * y[J] + ce * H[J] + me * G[J] + ye * q[J]) * 1e3) / 1e3;
|
|
2329
2340
|
return V;
|
|
2330
2341
|
}
|
|
2331
2342
|
return {
|
|
@@ -2358,25 +2369,25 @@ function requireLottie() {
|
|
|
2358
2369
|
V.bezierData || (V.bezierData = bez.buildBezierData(h.s, d.s || h.e, h.to, h.ti));
|
|
2359
2370
|
var Z = V.bezierData;
|
|
2360
2371
|
if (e >= M || e < j) {
|
|
2361
|
-
var
|
|
2362
|
-
for (y = Z.points[
|
|
2363
|
-
i[K] = Z.points[
|
|
2372
|
+
var J = e >= M ? Z.points.length - 1 : 0;
|
|
2373
|
+
for (y = Z.points[J].point.length, K = 0; K < y; K += 1)
|
|
2374
|
+
i[K] = Z.points[J].point[K];
|
|
2364
2375
|
} else {
|
|
2365
2376
|
V.__fnct ? te = V.__fnct : (te = BezierFactory.getBezierEasing(h.o.x, h.o.y, h.i.x, h.i.y, h.n).get, V.__fnct = te), q = te((e - j) / (M - j));
|
|
2366
|
-
var ee = Z.segmentLength * q, ie,
|
|
2377
|
+
var ee = Z.segmentLength * q, ie, se = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastAddedLength : 0;
|
|
2367
2378
|
for (G = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastPoint : 0, l = !0, H = Z.points.length; l; ) {
|
|
2368
|
-
if (
|
|
2379
|
+
if (se += Z.points[G].partialLength, ee === 0 || q === 0 || G === Z.points.length - 1) {
|
|
2369
2380
|
for (y = Z.points[G].point.length, K = 0; K < y; K += 1)
|
|
2370
2381
|
i[K] = Z.points[G].point[K];
|
|
2371
2382
|
break;
|
|
2372
|
-
} else if (ee >=
|
|
2373
|
-
for (ie = (ee -
|
|
2383
|
+
} else if (ee >= se && ee < se + Z.points[G + 1].partialLength) {
|
|
2384
|
+
for (ie = (ee - se) / Z.points[G + 1].partialLength, y = Z.points[G].point.length, K = 0; K < y; K += 1)
|
|
2374
2385
|
i[K] = Z.points[G].point[K] + (Z.points[G + 1].point[K] - Z.points[G].point[K]) * ie;
|
|
2375
2386
|
break;
|
|
2376
2387
|
}
|
|
2377
2388
|
G < H - 1 ? G += 1 : l = !1;
|
|
2378
2389
|
}
|
|
2379
|
-
t._lastPoint = G, t._lastAddedLength =
|
|
2390
|
+
t._lastPoint = G, t._lastAddedLength = se - Z.points[G].partialLength, t._lastKeyframeIndex = a;
|
|
2380
2391
|
}
|
|
2381
2392
|
} else {
|
|
2382
2393
|
var le, ue, de, fe, pe;
|
|
@@ -2612,30 +2623,30 @@ function requireLottie() {
|
|
|
2612
2623
|
})(), ShapePropertyFactory = (function() {
|
|
2613
2624
|
var e = -999999;
|
|
2614
2625
|
function t(M, j, F) {
|
|
2615
|
-
var Z = F.lastIndex,
|
|
2626
|
+
var Z = F.lastIndex, J, ee, ie, se, le, ue, de, fe, pe, ve = this.keyframes;
|
|
2616
2627
|
if (M < ve[0].t - this.offsetTime)
|
|
2617
|
-
|
|
2628
|
+
J = ve[0].s[0], ie = !0, Z = 0;
|
|
2618
2629
|
else if (M >= ve[ve.length - 1].t - this.offsetTime)
|
|
2619
|
-
|
|
2630
|
+
J = ve[ve.length - 1].s ? ve[ve.length - 1].s[0] : ve[ve.length - 2].e[0], ie = !0;
|
|
2620
2631
|
else {
|
|
2621
|
-
for (var he = Z, re = ve.length - 1,
|
|
2622
|
-
he < re - 1 ? he += 1 :
|
|
2632
|
+
for (var he = Z, re = ve.length - 1, ae = !0, W, Q, oe; ae && (W = ve[he], Q = ve[he + 1], !(Q.t - this.offsetTime > M)); )
|
|
2633
|
+
he < re - 1 ? he += 1 : ae = !1;
|
|
2623
2634
|
if (oe = this.keyframesMetadata[he] || {}, ie = W.h === 1, Z = he, !ie) {
|
|
2624
|
-
if (M >=
|
|
2635
|
+
if (M >= Q.t - this.offsetTime)
|
|
2625
2636
|
fe = 1;
|
|
2626
2637
|
else if (M < W.t - this.offsetTime)
|
|
2627
2638
|
fe = 0;
|
|
2628
2639
|
else {
|
|
2629
2640
|
var ne;
|
|
2630
|
-
oe.__fnct ? ne = oe.__fnct : (ne = BezierFactory.getBezierEasing(W.o.x, W.o.y, W.i.x, W.i.y).get, oe.__fnct = ne), fe = ne((M - (W.t - this.offsetTime)) / (
|
|
2641
|
+
oe.__fnct ? ne = oe.__fnct : (ne = BezierFactory.getBezierEasing(W.o.x, W.o.y, W.i.x, W.i.y).get, oe.__fnct = ne), fe = ne((M - (W.t - this.offsetTime)) / (Q.t - this.offsetTime - (W.t - this.offsetTime)));
|
|
2631
2642
|
}
|
|
2632
|
-
ee =
|
|
2643
|
+
ee = Q.s ? Q.s[0] : W.e[0];
|
|
2633
2644
|
}
|
|
2634
|
-
|
|
2645
|
+
J = W.s[0];
|
|
2635
2646
|
}
|
|
2636
|
-
for (ue = j._length, de =
|
|
2647
|
+
for (ue = j._length, de = J.i[0].length, F.lastIndex = Z, se = 0; se < ue; se += 1)
|
|
2637
2648
|
for (le = 0; le < de; le += 1)
|
|
2638
|
-
pe = ie ?
|
|
2649
|
+
pe = ie ? J.i[se][le] : J.i[se][le] + (ee.i[se][le] - J.i[se][le]) * fe, j.i[se][le] = pe, pe = ie ? J.o[se][le] : J.o[se][le] + (ee.o[se][le] - J.o[se][le]) * fe, j.o[se][le] = pe, pe = ie ? J.v[se][le] : J.v[se][le] + (ee.v[se][le] - J.v[se][le]) * fe, j.v[se][le] = pe;
|
|
2639
2650
|
}
|
|
2640
2651
|
function r() {
|
|
2641
2652
|
var M = this.comp.renderedFrame - this.offsetTime, j = this.keyframes[0].t - this.offsetTime, F = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, Z = this._caching.lastFrame;
|
|
@@ -2704,8 +2715,8 @@ function requireLottie() {
|
|
|
2704
2715
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertEllToPath());
|
|
2705
2716
|
},
|
|
2706
2717
|
convertEllToPath: function() {
|
|
2707
|
-
var Z = this.p.v[0],
|
|
2708
|
-
le.v[0][0] = Z, le.v[0][1] =
|
|
2718
|
+
var Z = this.p.v[0], J = this.p.v[1], ee = this.s.v[0] / 2, ie = this.s.v[1] / 2, se = this.d !== 3, le = this.v;
|
|
2719
|
+
le.v[0][0] = Z, le.v[0][1] = J - ie, le.v[1][0] = se ? Z + ee : Z - ee, le.v[1][1] = J, le.v[2][0] = Z, le.v[2][1] = J + ie, le.v[3][0] = se ? Z - ee : Z + ee, le.v[3][1] = J, le.i[0][0] = se ? Z - ee * M : Z + ee * M, le.i[0][1] = J - ie, le.i[1][0] = se ? Z + ee : Z - ee, le.i[1][1] = J - ie * M, le.i[2][0] = se ? Z + ee * M : Z - ee * M, le.i[2][1] = J + ie, le.i[3][0] = se ? Z - ee : Z + ee, le.i[3][1] = J + ie * M, le.o[0][0] = se ? Z + ee * M : Z - ee * M, le.o[0][1] = J - ie, le.o[1][0] = se ? Z + ee : Z - ee, le.o[1][1] = J + ie * M, le.o[2][0] = se ? Z - ee * M : Z + ee * M, le.o[2][1] = J + ie, le.o[3][0] = se ? Z - ee : Z + ee, le.o[3][1] = J - ie * M;
|
|
2709
2720
|
}
|
|
2710
2721
|
}, extendPrototype([DynamicPropertyContainer], j), j;
|
|
2711
2722
|
})(), K = (function() {
|
|
@@ -2718,20 +2729,20 @@ function requireLottie() {
|
|
|
2718
2729
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
2719
2730
|
},
|
|
2720
2731
|
convertStarToPath: function() {
|
|
2721
|
-
var F = Math.floor(this.pt.v) * 2, Z = Math.PI * 2 / F,
|
|
2732
|
+
var F = Math.floor(this.pt.v) * 2, Z = Math.PI * 2 / F, J = !0, ee = this.or.v, ie = this.ir.v, se = this.os.v, le = this.is.v, ue = 2 * Math.PI * ee / (F * 2), de = 2 * Math.PI * ie / (F * 2), fe, pe, ve, he, re = -Math.PI / 2;
|
|
2722
2733
|
re += this.r.v;
|
|
2723
|
-
var
|
|
2734
|
+
var ae = this.data.d === 3 ? -1 : 1;
|
|
2724
2735
|
for (this.v._length = 0, fe = 0; fe < F; fe += 1) {
|
|
2725
|
-
pe =
|
|
2726
|
-
var W = pe * Math.cos(re),
|
|
2727
|
-
W += +this.p.v[0],
|
|
2736
|
+
pe = J ? ee : ie, ve = J ? se : le, he = J ? ue : de;
|
|
2737
|
+
var W = pe * Math.cos(re), Q = pe * Math.sin(re), oe = W === 0 && Q === 0 ? 0 : Q / Math.sqrt(W * W + Q * Q), ne = W === 0 && Q === 0 ? 0 : -W / Math.sqrt(W * W + Q * Q);
|
|
2738
|
+
W += +this.p.v[0], Q += +this.p.v[1], this.v.setTripleAt(W, Q, W - oe * he * ve * ae, Q - ne * he * ve * ae, W + oe * he * ve * ae, Q + ne * he * ve * ae, fe, !0), J = !J, re += Z * ae;
|
|
2728
2739
|
}
|
|
2729
2740
|
},
|
|
2730
2741
|
convertPolygonToPath: function() {
|
|
2731
|
-
var F = Math.floor(this.pt.v), Z = Math.PI * 2 / F,
|
|
2732
|
-
for (le += this.r.v, this.v._length = 0,
|
|
2733
|
-
var de =
|
|
2734
|
-
de += +this.p.v[0], fe += +this.p.v[1], this.v.setTripleAt(de, fe, de - pe * ie * ee * ue, fe - ve * ie * ee * ue, de + pe * ie * ee * ue, fe + ve * ie * ee * ue,
|
|
2742
|
+
var F = Math.floor(this.pt.v), Z = Math.PI * 2 / F, J = this.or.v, ee = this.os.v, ie = 2 * Math.PI * J / (F * 4), se, le = -Math.PI * 0.5, ue = this.data.d === 3 ? -1 : 1;
|
|
2743
|
+
for (le += this.r.v, this.v._length = 0, se = 0; se < F; se += 1) {
|
|
2744
|
+
var de = J * Math.cos(le), fe = J * Math.sin(le), pe = de === 0 && fe === 0 ? 0 : fe / Math.sqrt(de * de + fe * fe), ve = de === 0 && fe === 0 ? 0 : -de / Math.sqrt(de * de + fe * fe);
|
|
2745
|
+
de += +this.p.v[0], fe += +this.p.v[1], this.v.setTripleAt(de, fe, de - pe * ie * ee * ue, fe - ve * ie * ee * ue, de + pe * ie * ee * ue, fe + ve * ie * ee * ue, se, !0), le += Z * ue;
|
|
2735
2746
|
}
|
|
2736
2747
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
2737
2748
|
}
|
|
@@ -2742,8 +2753,8 @@ function requireLottie() {
|
|
|
2742
2753
|
}
|
|
2743
2754
|
return M.prototype = {
|
|
2744
2755
|
convertRectToPath: function() {
|
|
2745
|
-
var F = this.p.v[0], Z = this.p.v[1],
|
|
2746
|
-
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(F +
|
|
2756
|
+
var F = this.p.v[0], Z = this.p.v[1], J = this.s.v[0] / 2, ee = this.s.v[1] / 2, ie = bmMin(J, ee, this.r.v), se = ie * (1 - roundCorner);
|
|
2757
|
+
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(F + J, Z - ee + ie, F + J, Z - ee + ie, F + J, Z - ee + se, 0, !0), this.v.setTripleAt(F + J, Z + ee - ie, F + J, Z + ee - se, F + J, Z + ee - ie, 1, !0), ie !== 0 ? (this.v.setTripleAt(F + J - ie, Z + ee, F + J - ie, Z + ee, F + J - se, Z + ee, 2, !0), this.v.setTripleAt(F - J + ie, Z + ee, F - J + se, Z + ee, F - J + ie, Z + ee, 3, !0), this.v.setTripleAt(F - J, Z + ee - ie, F - J, Z + ee - ie, F - J, Z + ee - se, 4, !0), this.v.setTripleAt(F - J, Z - ee + ie, F - J, Z - ee + se, F - J, Z - ee + ie, 5, !0), this.v.setTripleAt(F - J + ie, Z - ee, F - J + ie, Z - ee, F - J + se, Z - ee, 6, !0), this.v.setTripleAt(F + J - ie, Z - ee, F + J - se, Z - ee, F + J - ie, Z - ee, 7, !0)) : (this.v.setTripleAt(F - J, Z + ee, F - J + se, Z + ee, F - J, Z + ee, 2), this.v.setTripleAt(F - J, Z - ee, F - J, Z - ee + se, F - J, Z - ee, 3))) : (this.v.setTripleAt(F + J, Z - ee + ie, F + J, Z - ee + se, F + J, Z - ee + ie, 0, !0), ie !== 0 ? (this.v.setTripleAt(F + J - ie, Z - ee, F + J - ie, Z - ee, F + J - se, Z - ee, 1, !0), this.v.setTripleAt(F - J + ie, Z - ee, F - J + se, Z - ee, F - J + ie, Z - ee, 2, !0), this.v.setTripleAt(F - J, Z - ee + ie, F - J, Z - ee + ie, F - J, Z - ee + se, 3, !0), this.v.setTripleAt(F - J, Z + ee - ie, F - J, Z + ee - se, F - J, Z + ee - ie, 4, !0), this.v.setTripleAt(F - J + ie, Z + ee, F - J + ie, Z + ee, F - J + se, Z + ee, 5, !0), this.v.setTripleAt(F + J - ie, Z + ee, F + J - se, Z + ee, F + J - ie, Z + ee, 6, !0), this.v.setTripleAt(F + J, Z + ee - ie, F + J, Z + ee - ie, F + J, Z + ee - se, 7, !0)) : (this.v.setTripleAt(F - J, Z - ee, F - J + se, Z - ee, F - J, Z - ee, 1, !0), this.v.setTripleAt(F - J, Z + ee, F - J, Z + ee - se, F - J, Z + ee, 2, !0), this.v.setTripleAt(F + J, Z + ee, F + J - se, Z + ee, F + J, Z + ee, 3, !0)));
|
|
2747
2758
|
},
|
|
2748
2759
|
getValue: function() {
|
|
2749
2760
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertRectToPath());
|
|
@@ -2754,7 +2765,7 @@ function requireLottie() {
|
|
|
2754
2765
|
function q(M, j, F) {
|
|
2755
2766
|
var Z;
|
|
2756
2767
|
if (F === 3 || F === 4) {
|
|
2757
|
-
var
|
|
2768
|
+
var J = F === 3 ? j.pt : j.ks, ee = J.k;
|
|
2758
2769
|
ee.length ? Z = new d(M, j, F) : Z = new l(M, j, F);
|
|
2759
2770
|
} else F === 5 ? Z = new y(M, j) : F === 6 ? Z = new V(M, j) : F === 7 && (Z = new K(M, j));
|
|
2760
2771
|
return Z.k && M.addDynamicProperty(Z), Z;
|
|
@@ -2776,144 +2787,144 @@ function requireLottie() {
|
|
|
2776
2787
|
function a(W) {
|
|
2777
2788
|
if (W === 0)
|
|
2778
2789
|
return this;
|
|
2779
|
-
var
|
|
2780
|
-
return this._t(
|
|
2790
|
+
var Q = e(W), oe = t(W);
|
|
2791
|
+
return this._t(Q, -oe, 0, 0, oe, Q, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
2781
2792
|
}
|
|
2782
2793
|
function n(W) {
|
|
2783
2794
|
if (W === 0)
|
|
2784
2795
|
return this;
|
|
2785
|
-
var
|
|
2786
|
-
return this._t(1, 0, 0, 0, 0,
|
|
2796
|
+
var Q = e(W), oe = t(W);
|
|
2797
|
+
return this._t(1, 0, 0, 0, 0, Q, -oe, 0, 0, oe, Q, 0, 0, 0, 0, 1);
|
|
2787
2798
|
}
|
|
2788
2799
|
function l(W) {
|
|
2789
2800
|
if (W === 0)
|
|
2790
2801
|
return this;
|
|
2791
|
-
var
|
|
2792
|
-
return this._t(
|
|
2802
|
+
var Q = e(W), oe = t(W);
|
|
2803
|
+
return this._t(Q, 0, oe, 0, 0, 1, 0, 0, -oe, 0, Q, 0, 0, 0, 0, 1);
|
|
2793
2804
|
}
|
|
2794
2805
|
function h(W) {
|
|
2795
2806
|
if (W === 0)
|
|
2796
2807
|
return this;
|
|
2797
|
-
var
|
|
2798
|
-
return this._t(
|
|
2808
|
+
var Q = e(W), oe = t(W);
|
|
2809
|
+
return this._t(Q, -oe, 0, 0, oe, Q, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
2799
2810
|
}
|
|
2800
|
-
function d(W,
|
|
2801
|
-
return this._t(1,
|
|
2811
|
+
function d(W, Q) {
|
|
2812
|
+
return this._t(1, Q, W, 1, 0, 0);
|
|
2802
2813
|
}
|
|
2803
|
-
function V(W,
|
|
2804
|
-
return this.shear(r(W), r(
|
|
2814
|
+
function V(W, Q) {
|
|
2815
|
+
return this.shear(r(W), r(Q));
|
|
2805
2816
|
}
|
|
2806
|
-
function K(W,
|
|
2807
|
-
var oe = e(
|
|
2817
|
+
function K(W, Q) {
|
|
2818
|
+
var oe = e(Q), ne = t(Q);
|
|
2808
2819
|
return this._t(oe, ne, 0, 0, -ne, oe, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, r(W), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(oe, -ne, 0, 0, ne, oe, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
2809
2820
|
}
|
|
2810
|
-
function y(W,
|
|
2811
|
-
return !oe && oe !== 0 && (oe = 1), W === 1 &&
|
|
2821
|
+
function y(W, Q, oe) {
|
|
2822
|
+
return !oe && oe !== 0 && (oe = 1), W === 1 && Q === 1 && oe === 1 ? this : this._t(W, 0, 0, 0, 0, Q, 0, 0, 0, 0, oe, 0, 0, 0, 0, 1);
|
|
2812
2823
|
}
|
|
2813
|
-
function q(W,
|
|
2814
|
-
return this.props[0] = W, this.props[1] =
|
|
2824
|
+
function q(W, Q, oe, ne, ce, me, ye, xe, be, Ce, Se, Ie, Ee, Pe, we, _e) {
|
|
2825
|
+
return this.props[0] = W, this.props[1] = Q, this.props[2] = oe, this.props[3] = ne, this.props[4] = ce, this.props[5] = me, this.props[6] = ye, this.props[7] = xe, this.props[8] = be, this.props[9] = Ce, this.props[10] = Se, this.props[11] = Ie, this.props[12] = Ee, this.props[13] = Pe, this.props[14] = we, this.props[15] = _e, this;
|
|
2815
2826
|
}
|
|
2816
|
-
function H(W,
|
|
2817
|
-
return oe = oe || 0, W !== 0 ||
|
|
2827
|
+
function H(W, Q, oe) {
|
|
2828
|
+
return oe = oe || 0, W !== 0 || Q !== 0 || oe !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, W, Q, oe, 1) : this;
|
|
2818
2829
|
}
|
|
2819
|
-
function G(W,
|
|
2830
|
+
function G(W, Q, oe, ne, ce, me, ye, xe, be, Ce, Se, Ie, Ee, Pe, we, _e) {
|
|
2820
2831
|
var ge = this.props;
|
|
2821
|
-
if (W === 1 &&
|
|
2832
|
+
if (W === 1 && Q === 0 && oe === 0 && ne === 0 && ce === 0 && me === 1 && ye === 0 && xe === 0 && be === 0 && Ce === 0 && Se === 1 && Ie === 0)
|
|
2822
2833
|
return ge[12] = ge[12] * W + ge[15] * Ee, ge[13] = ge[13] * me + ge[15] * Pe, ge[14] = ge[14] * Se + ge[15] * we, ge[15] *= _e, this._identityCalculated = !1, this;
|
|
2823
|
-
var Me = ge[0],
|
|
2824
|
-
return ge[0] = Me * W +
|
|
2834
|
+
var Me = ge[0], je = ge[1], Re = ge[2], Fe = ge[3], Le = ge[4], Ve = ge[5], Te = ge[6], De = ge[7], Ne = ge[8], Ae = ge[9], Oe = ge[10], ke = ge[11], Be = ge[12], Ze = ge[13], ze = ge[14], Ge = ge[15];
|
|
2835
|
+
return ge[0] = Me * W + je * ce + Re * be + Fe * Ee, ge[1] = Me * Q + je * me + Re * Ce + Fe * Pe, ge[2] = Me * oe + je * ye + Re * Se + Fe * we, ge[3] = Me * ne + je * xe + Re * Ie + Fe * _e, ge[4] = Le * W + Ve * ce + Te * be + De * Ee, ge[5] = Le * Q + Ve * me + Te * Ce + De * Pe, ge[6] = Le * oe + Ve * ye + Te * Se + De * we, ge[7] = Le * ne + Ve * xe + Te * Ie + De * _e, ge[8] = Ne * W + Ae * ce + Oe * be + ke * Ee, ge[9] = Ne * Q + Ae * me + Oe * Ce + ke * Pe, ge[10] = Ne * oe + Ae * ye + Oe * Se + ke * we, ge[11] = Ne * ne + Ae * xe + Oe * Ie + ke * _e, ge[12] = Be * W + Ze * ce + ze * be + Ge * Ee, ge[13] = Be * Q + Ze * me + ze * Ce + Ge * Pe, ge[14] = Be * oe + Ze * ye + ze * Se + Ge * we, ge[15] = Be * ne + Ze * xe + ze * Ie + Ge * _e, this._identityCalculated = !1, this;
|
|
2825
2836
|
}
|
|
2826
2837
|
function te(W) {
|
|
2827
|
-
var
|
|
2828
|
-
return this.transform(
|
|
2838
|
+
var Q = W.props;
|
|
2839
|
+
return this.transform(Q[0], Q[1], Q[2], Q[3], Q[4], Q[5], Q[6], Q[7], Q[8], Q[9], Q[10], Q[11], Q[12], Q[13], Q[14], Q[15]);
|
|
2829
2840
|
}
|
|
2830
2841
|
function M() {
|
|
2831
2842
|
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;
|
|
2832
2843
|
}
|
|
2833
2844
|
function j(W) {
|
|
2834
|
-
for (var
|
|
2835
|
-
if (W.props[
|
|
2845
|
+
for (var Q = 0; Q < 16; ) {
|
|
2846
|
+
if (W.props[Q] !== this.props[Q])
|
|
2836
2847
|
return !1;
|
|
2837
|
-
|
|
2848
|
+
Q += 1;
|
|
2838
2849
|
}
|
|
2839
2850
|
return !0;
|
|
2840
2851
|
}
|
|
2841
2852
|
function F(W) {
|
|
2842
|
-
var
|
|
2843
|
-
for (
|
|
2844
|
-
W.props[
|
|
2853
|
+
var Q;
|
|
2854
|
+
for (Q = 0; Q < 16; Q += 1)
|
|
2855
|
+
W.props[Q] = this.props[Q];
|
|
2845
2856
|
return W;
|
|
2846
2857
|
}
|
|
2847
2858
|
function Z(W) {
|
|
2848
|
-
var
|
|
2849
|
-
for (
|
|
2850
|
-
this.props[
|
|
2859
|
+
var Q;
|
|
2860
|
+
for (Q = 0; Q < 16; Q += 1)
|
|
2861
|
+
this.props[Q] = W[Q];
|
|
2851
2862
|
}
|
|
2852
|
-
function
|
|
2863
|
+
function J(W, Q, oe) {
|
|
2853
2864
|
return {
|
|
2854
|
-
x: W * this.props[0] +
|
|
2855
|
-
y: W * this.props[1] +
|
|
2856
|
-
z: W * this.props[2] +
|
|
2865
|
+
x: W * this.props[0] + Q * this.props[4] + oe * this.props[8] + this.props[12],
|
|
2866
|
+
y: W * this.props[1] + Q * this.props[5] + oe * this.props[9] + this.props[13],
|
|
2867
|
+
z: W * this.props[2] + Q * this.props[6] + oe * this.props[10] + this.props[14]
|
|
2857
2868
|
};
|
|
2858
2869
|
}
|
|
2859
|
-
function ee(W,
|
|
2860
|
-
return W * this.props[0] +
|
|
2870
|
+
function ee(W, Q, oe) {
|
|
2871
|
+
return W * this.props[0] + Q * this.props[4] + oe * this.props[8] + this.props[12];
|
|
2861
2872
|
}
|
|
2862
|
-
function ie(W,
|
|
2863
|
-
return W * this.props[1] +
|
|
2873
|
+
function ie(W, Q, oe) {
|
|
2874
|
+
return W * this.props[1] + Q * this.props[5] + oe * this.props[9] + this.props[13];
|
|
2864
2875
|
}
|
|
2865
|
-
function
|
|
2866
|
-
return W * this.props[2] +
|
|
2876
|
+
function se(W, Q, oe) {
|
|
2877
|
+
return W * this.props[2] + Q * this.props[6] + oe * this.props[10] + this.props[14];
|
|
2867
2878
|
}
|
|
2868
2879
|
function le() {
|
|
2869
|
-
var W = this.props[0] * this.props[5] - this.props[1] * this.props[4],
|
|
2870
|
-
return xe.props[0] =
|
|
2880
|
+
var W = this.props[0] * this.props[5] - this.props[1] * this.props[4], Q = this.props[5] / W, oe = -this.props[1] / W, ne = -this.props[4] / W, ce = this.props[0] / W, me = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / W, ye = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / W, xe = new Matrix();
|
|
2881
|
+
return xe.props[0] = Q, xe.props[1] = oe, xe.props[4] = ne, xe.props[5] = ce, xe.props[12] = me, xe.props[13] = ye, xe;
|
|
2871
2882
|
}
|
|
2872
2883
|
function ue(W) {
|
|
2873
|
-
var
|
|
2874
|
-
return
|
|
2884
|
+
var Q = this.getInverseMatrix();
|
|
2885
|
+
return Q.applyToPointArray(W[0], W[1], W[2] || 0);
|
|
2875
2886
|
}
|
|
2876
2887
|
function de(W) {
|
|
2877
|
-
var
|
|
2878
|
-
for (
|
|
2879
|
-
ne[
|
|
2888
|
+
var Q, oe = W.length, ne = [];
|
|
2889
|
+
for (Q = 0; Q < oe; Q += 1)
|
|
2890
|
+
ne[Q] = ue(W[Q]);
|
|
2880
2891
|
return ne;
|
|
2881
2892
|
}
|
|
2882
|
-
function fe(W,
|
|
2893
|
+
function fe(W, Q, oe) {
|
|
2883
2894
|
var ne = createTypedArray("float32", 6);
|
|
2884
2895
|
if (this.isIdentity())
|
|
2885
|
-
ne[0] = W[0], ne[1] = W[1], ne[2] =
|
|
2896
|
+
ne[0] = W[0], ne[1] = W[1], ne[2] = Q[0], ne[3] = Q[1], ne[4] = oe[0], ne[5] = oe[1];
|
|
2886
2897
|
else {
|
|
2887
2898
|
var ce = this.props[0], me = this.props[1], ye = this.props[4], xe = this.props[5], be = this.props[12], Ce = this.props[13];
|
|
2888
|
-
ne[0] = W[0] * ce + W[1] * ye + be, ne[1] = W[0] * me + W[1] * xe + Ce, ne[2] =
|
|
2899
|
+
ne[0] = W[0] * ce + W[1] * ye + be, ne[1] = W[0] * me + W[1] * xe + Ce, ne[2] = Q[0] * ce + Q[1] * ye + be, ne[3] = Q[0] * me + Q[1] * xe + Ce, ne[4] = oe[0] * ce + oe[1] * ye + be, ne[5] = oe[0] * me + oe[1] * xe + Ce;
|
|
2889
2900
|
}
|
|
2890
2901
|
return ne;
|
|
2891
2902
|
}
|
|
2892
|
-
function pe(W,
|
|
2903
|
+
function pe(W, Q, oe) {
|
|
2893
2904
|
var ne;
|
|
2894
|
-
return this.isIdentity() ? ne = [W,
|
|
2905
|
+
return this.isIdentity() ? ne = [W, Q, oe] : ne = [W * this.props[0] + Q * this.props[4] + oe * this.props[8] + this.props[12], W * this.props[1] + Q * this.props[5] + oe * this.props[9] + this.props[13], W * this.props[2] + Q * this.props[6] + oe * this.props[10] + this.props[14]], ne;
|
|
2895
2906
|
}
|
|
2896
|
-
function ve(W,
|
|
2907
|
+
function ve(W, Q) {
|
|
2897
2908
|
if (this.isIdentity())
|
|
2898
|
-
return W + "," +
|
|
2909
|
+
return W + "," + Q;
|
|
2899
2910
|
var oe = this.props;
|
|
2900
|
-
return Math.round((W * oe[0] +
|
|
2911
|
+
return Math.round((W * oe[0] + Q * oe[4] + oe[12]) * 100) / 100 + "," + Math.round((W * oe[1] + Q * oe[5] + oe[13]) * 100) / 100;
|
|
2901
2912
|
}
|
|
2902
2913
|
function he() {
|
|
2903
|
-
for (var W = 0,
|
|
2904
|
-
oe += i(
|
|
2914
|
+
for (var W = 0, Q = this.props, oe = "matrix3d(", ne = 1e4; W < 16; )
|
|
2915
|
+
oe += i(Q[W] * ne) / ne, oe += W === 15 ? ")" : ",", W += 1;
|
|
2905
2916
|
return oe;
|
|
2906
2917
|
}
|
|
2907
2918
|
function re(W) {
|
|
2908
|
-
var
|
|
2909
|
-
return W < 1e-6 && W > 0 || W > -1e-6 && W < 0 ? i(W *
|
|
2919
|
+
var Q = 1e4;
|
|
2920
|
+
return W < 1e-6 && W > 0 || W > -1e-6 && W < 0 ? i(W * Q) / Q : W;
|
|
2910
2921
|
}
|
|
2911
|
-
function
|
|
2912
|
-
var W = this.props,
|
|
2913
|
-
return "matrix(" +
|
|
2922
|
+
function ae() {
|
|
2923
|
+
var W = this.props, Q = re(W[0]), oe = re(W[1]), ne = re(W[4]), ce = re(W[5]), me = re(W[12]), ye = re(W[13]);
|
|
2924
|
+
return "matrix(" + Q + "," + oe + "," + ne + "," + ce + "," + me + "," + ye + ")";
|
|
2914
2925
|
}
|
|
2915
2926
|
return function() {
|
|
2916
|
-
this.reset = s, this.rotate = a, this.rotateX = n, this.rotateY = l, this.rotateZ = h, this.skew = V, this.skewFromAxis = K, this.shear = d, this.scale = y, this.setTransform = q, this.translate = H, this.transform = G, this.multiply = te, this.applyToPoint =
|
|
2927
|
+
this.reset = s, this.rotate = a, this.rotateX = n, this.rotateY = l, this.rotateZ = h, this.skew = V, this.skewFromAxis = K, this.shear = d, this.scale = y, this.setTransform = q, this.translate = H, this.transform = G, this.multiply = te, this.applyToPoint = J, this.applyToX = ee, this.applyToY = ie, this.applyToZ = se, this.applyToPointArray = pe, this.applyToTriplePoints = fe, this.applyToPointStringified = ve, this.toCSS = he, this.to2dCSS = ae, this.clone = F, this.cloneFromProps = Z, this.equals = j, this.inversePoints = de, this.inversePoint = ue, this.getInverseMatrix = le, this._t = this.transform, this.isIdentity = M, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
2917
2928
|
};
|
|
2918
2929
|
})();
|
|
2919
2930
|
function _typeof$3(e) {
|
|
@@ -3112,17 +3123,17 @@ function requireLottie() {
|
|
|
3112
3123
|
s: 0,
|
|
3113
3124
|
e: G.totalShapeLength * (j - 1)
|
|
3114
3125
|
}));
|
|
3115
|
-
var
|
|
3126
|
+
var J = this.addShapes(G, H[0]);
|
|
3116
3127
|
if (H[0].s !== H[0].e) {
|
|
3117
3128
|
if (H.length > 1) {
|
|
3118
3129
|
var ee = G.shape.paths.shapes[G.shape.paths._length - 1];
|
|
3119
3130
|
if (ee.c) {
|
|
3120
|
-
var ie =
|
|
3121
|
-
this.addPaths(
|
|
3131
|
+
var ie = J.pop();
|
|
3132
|
+
this.addPaths(J, te), J = this.addShapes(G, H[1], ie);
|
|
3122
3133
|
} else
|
|
3123
|
-
this.addPaths(
|
|
3134
|
+
this.addPaths(J, te), J = this.addShapes(G, H[1]);
|
|
3124
3135
|
}
|
|
3125
|
-
this.addPaths(
|
|
3136
|
+
this.addPaths(J, te);
|
|
3126
3137
|
}
|
|
3127
3138
|
}
|
|
3128
3139
|
G.shape.paths = te;
|
|
@@ -3737,46 +3748,46 @@ function requireLottie() {
|
|
|
3737
3748
|
r = r.concat([2304, 2305, 2306, 2307, 2362, 2363, 2364, 2364, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2387, 2388, 2389, 2390, 2391, 2402, 2403]);
|
|
3738
3749
|
var i = 127988, s = 917631, a = 917601, n = 917626, l = 65039, h = 8205, d = 127462, V = 127487, K = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
|
|
3739
3750
|
function y(re) {
|
|
3740
|
-
var
|
|
3741
|
-
for (W = 0; W <
|
|
3742
|
-
|
|
3751
|
+
var ae = re.split(","), W, Q = ae.length, oe = [];
|
|
3752
|
+
for (W = 0; W < Q; W += 1)
|
|
3753
|
+
ae[W] !== "sans-serif" && ae[W] !== "monospace" && oe.push(ae[W]);
|
|
3743
3754
|
return oe.join(",");
|
|
3744
3755
|
}
|
|
3745
|
-
function q(re,
|
|
3756
|
+
function q(re, ae) {
|
|
3746
3757
|
var W = createTag("span");
|
|
3747
|
-
W.setAttribute("aria-hidden", !0), W.style.fontFamily =
|
|
3748
|
-
var
|
|
3749
|
-
|
|
3750
|
-
var oe =
|
|
3751
|
-
return
|
|
3752
|
-
node:
|
|
3758
|
+
W.setAttribute("aria-hidden", !0), W.style.fontFamily = ae;
|
|
3759
|
+
var Q = createTag("span");
|
|
3760
|
+
Q.innerText = "giItT1WQy@!-/#", W.style.position = "absolute", W.style.left = "-10000px", W.style.top = "-10000px", W.style.fontSize = "300px", W.style.fontVariant = "normal", W.style.fontStyle = "normal", W.style.fontWeight = "normal", W.style.letterSpacing = "0", W.appendChild(Q), document.body.appendChild(W);
|
|
3761
|
+
var oe = Q.offsetWidth;
|
|
3762
|
+
return Q.style.fontFamily = y(re) + ", " + ae, {
|
|
3763
|
+
node: Q,
|
|
3753
3764
|
w: oe,
|
|
3754
3765
|
parent: W
|
|
3755
3766
|
};
|
|
3756
3767
|
}
|
|
3757
3768
|
function H() {
|
|
3758
|
-
var re,
|
|
3759
|
-
for (re = 0; re <
|
|
3760
|
-
this.fonts[re].loaded ? oe -= 1 : this.fonts[re].fOrigin === "n" || this.fonts[re].origin === 0 ? this.fonts[re].loaded = !0 : (W = this.fonts[re].monoCase.node,
|
|
3769
|
+
var re, ae = this.fonts.length, W, Q, oe = ae;
|
|
3770
|
+
for (re = 0; re < ae; re += 1)
|
|
3771
|
+
this.fonts[re].loaded ? oe -= 1 : this.fonts[re].fOrigin === "n" || this.fonts[re].origin === 0 ? this.fonts[re].loaded = !0 : (W = this.fonts[re].monoCase.node, Q = this.fonts[re].monoCase.w, W.offsetWidth !== Q ? (oe -= 1, this.fonts[re].loaded = !0) : (W = this.fonts[re].sansCase.node, Q = this.fonts[re].sansCase.w, W.offsetWidth !== Q && (oe -= 1, this.fonts[re].loaded = !0)), this.fonts[re].loaded && (this.fonts[re].sansCase.parent.parentNode.removeChild(this.fonts[re].sansCase.parent), this.fonts[re].monoCase.parent.parentNode.removeChild(this.fonts[re].monoCase.parent)));
|
|
3761
3772
|
oe !== 0 && Date.now() - this.initTime < e ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10);
|
|
3762
3773
|
}
|
|
3763
|
-
function G(re,
|
|
3764
|
-
var W = document.body &&
|
|
3774
|
+
function G(re, ae) {
|
|
3775
|
+
var W = document.body && ae ? "svg" : "canvas", Q, oe = getFontProperties(re);
|
|
3765
3776
|
if (W === "svg") {
|
|
3766
3777
|
var ne = createNS("text");
|
|
3767
|
-
ne.style.fontSize = "100px", ne.setAttribute("font-family", re.fFamily), ne.setAttribute("font-style", oe.style), ne.setAttribute("font-weight", oe.weight), ne.textContent = "1", re.fClass ? (ne.style.fontFamily = "inherit", ne.setAttribute("class", re.fClass)) : ne.style.fontFamily = re.fFamily,
|
|
3778
|
+
ne.style.fontSize = "100px", ne.setAttribute("font-family", re.fFamily), ne.setAttribute("font-style", oe.style), ne.setAttribute("font-weight", oe.weight), ne.textContent = "1", re.fClass ? (ne.style.fontFamily = "inherit", ne.setAttribute("class", re.fClass)) : ne.style.fontFamily = re.fFamily, ae.appendChild(ne), Q = ne;
|
|
3768
3779
|
} else {
|
|
3769
3780
|
var ce = new OffscreenCanvas(500, 500).getContext("2d");
|
|
3770
|
-
ce.font = oe.style + " " + oe.weight + " 100px " + re.fFamily,
|
|
3781
|
+
ce.font = oe.style + " " + oe.weight + " 100px " + re.fFamily, Q = ce;
|
|
3771
3782
|
}
|
|
3772
3783
|
function me(ye) {
|
|
3773
|
-
return W === "svg" ? (
|
|
3784
|
+
return W === "svg" ? (Q.textContent = ye, Q.getComputedTextLength()) : Q.measureText(ye).width;
|
|
3774
3785
|
}
|
|
3775
3786
|
return {
|
|
3776
3787
|
measureText: me
|
|
3777
3788
|
};
|
|
3778
3789
|
}
|
|
3779
|
-
function te(re,
|
|
3790
|
+
function te(re, ae) {
|
|
3780
3791
|
if (!re) {
|
|
3781
3792
|
this.isLoaded = !0;
|
|
3782
3793
|
return;
|
|
@@ -3791,95 +3802,95 @@ function requireLottie() {
|
|
|
3791
3802
|
}), this.fonts = re.list;
|
|
3792
3803
|
return;
|
|
3793
3804
|
}
|
|
3794
|
-
var W = re.list,
|
|
3795
|
-
for (
|
|
3805
|
+
var W = re.list, Q, oe = W.length, ne = oe;
|
|
3806
|
+
for (Q = 0; Q < oe; Q += 1) {
|
|
3796
3807
|
var ce = !0, me, ye;
|
|
3797
|
-
if (W[
|
|
3798
|
-
W[
|
|
3799
|
-
else if (W[
|
|
3800
|
-
if (me = document.querySelectorAll('style[f-forigin="p"][f-family="' + W[
|
|
3808
|
+
if (W[Q].loaded = !1, W[Q].monoCase = q(W[Q].fFamily, "monospace"), W[Q].sansCase = q(W[Q].fFamily, "sans-serif"), !W[Q].fPath)
|
|
3809
|
+
W[Q].loaded = !0, ne -= 1;
|
|
3810
|
+
else if (W[Q].fOrigin === "p" || W[Q].origin === 3) {
|
|
3811
|
+
if (me = document.querySelectorAll('style[f-forigin="p"][f-family="' + W[Q].fFamily + '"], style[f-origin="3"][f-family="' + W[Q].fFamily + '"]'), me.length > 0 && (ce = !1), ce) {
|
|
3801
3812
|
var xe = createTag("style");
|
|
3802
|
-
xe.setAttribute("f-forigin", W[
|
|
3813
|
+
xe.setAttribute("f-forigin", W[Q].fOrigin), xe.setAttribute("f-origin", W[Q].origin), xe.setAttribute("f-family", W[Q].fFamily), xe.type = "text/css", xe.innerText = "@font-face {font-family: " + W[Q].fFamily + "; font-style: normal; src: url('" + W[Q].fPath + "');}", ae.appendChild(xe);
|
|
3803
3814
|
}
|
|
3804
|
-
} else if (W[
|
|
3815
|
+
} else if (W[Q].fOrigin === "g" || W[Q].origin === 1) {
|
|
3805
3816
|
for (me = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), ye = 0; ye < me.length; ye += 1)
|
|
3806
|
-
me[ye].href.indexOf(W[
|
|
3817
|
+
me[ye].href.indexOf(W[Q].fPath) !== -1 && (ce = !1);
|
|
3807
3818
|
if (ce) {
|
|
3808
3819
|
var be = createTag("link");
|
|
3809
|
-
be.setAttribute("f-forigin", W[
|
|
3820
|
+
be.setAttribute("f-forigin", W[Q].fOrigin), be.setAttribute("f-origin", W[Q].origin), be.type = "text/css", be.rel = "stylesheet", be.href = W[Q].fPath, document.body.appendChild(be);
|
|
3810
3821
|
}
|
|
3811
|
-
} else if (W[
|
|
3822
|
+
} else if (W[Q].fOrigin === "t" || W[Q].origin === 2) {
|
|
3812
3823
|
for (me = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), ye = 0; ye < me.length; ye += 1)
|
|
3813
|
-
W[
|
|
3824
|
+
W[Q].fPath === me[ye].src && (ce = !1);
|
|
3814
3825
|
if (ce) {
|
|
3815
3826
|
var Ce = createTag("link");
|
|
3816
|
-
Ce.setAttribute("f-forigin", W[
|
|
3827
|
+
Ce.setAttribute("f-forigin", W[Q].fOrigin), Ce.setAttribute("f-origin", W[Q].origin), Ce.setAttribute("rel", "stylesheet"), Ce.setAttribute("href", W[Q].fPath), ae.appendChild(Ce);
|
|
3817
3828
|
}
|
|
3818
3829
|
}
|
|
3819
|
-
W[
|
|
3830
|
+
W[Q].helper = G(W[Q], ae), W[Q].cache = {}, this.fonts.push(W[Q]);
|
|
3820
3831
|
}
|
|
3821
3832
|
ne === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
|
|
3822
3833
|
}
|
|
3823
3834
|
function M(re) {
|
|
3824
3835
|
if (re) {
|
|
3825
3836
|
this.chars || (this.chars = []);
|
|
3826
|
-
var
|
|
3827
|
-
for (
|
|
3828
|
-
for (
|
|
3829
|
-
this.chars[
|
|
3830
|
-
ne || (this.chars.push(re[
|
|
3837
|
+
var ae, W = re.length, Q, oe = this.chars.length, ne;
|
|
3838
|
+
for (ae = 0; ae < W; ae += 1) {
|
|
3839
|
+
for (Q = 0, ne = !1; Q < oe; )
|
|
3840
|
+
this.chars[Q].style === re[ae].style && this.chars[Q].fFamily === re[ae].fFamily && this.chars[Q].ch === re[ae].ch && (ne = !0), Q += 1;
|
|
3841
|
+
ne || (this.chars.push(re[ae]), oe += 1);
|
|
3831
3842
|
}
|
|
3832
3843
|
}
|
|
3833
3844
|
}
|
|
3834
|
-
function j(re,
|
|
3835
|
-
for (var
|
|
3836
|
-
if (this.chars[
|
|
3837
|
-
return this.chars[
|
|
3838
|
-
|
|
3845
|
+
function j(re, ae, W) {
|
|
3846
|
+
for (var Q = 0, oe = this.chars.length; Q < oe; ) {
|
|
3847
|
+
if (this.chars[Q].ch === re && this.chars[Q].style === ae && this.chars[Q].fFamily === W)
|
|
3848
|
+
return this.chars[Q];
|
|
3849
|
+
Q += 1;
|
|
3839
3850
|
}
|
|
3840
|
-
return (typeof re == "string" && re.charCodeAt(0) !== 13 || !re) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", re,
|
|
3851
|
+
return (typeof re == "string" && re.charCodeAt(0) !== 13 || !re) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", re, ae, W)), t;
|
|
3841
3852
|
}
|
|
3842
|
-
function F(re,
|
|
3843
|
-
var
|
|
3844
|
-
if (!
|
|
3845
|
-
var ne =
|
|
3853
|
+
function F(re, ae, W) {
|
|
3854
|
+
var Q = this.getFontByName(ae), oe = re;
|
|
3855
|
+
if (!Q.cache[oe]) {
|
|
3856
|
+
var ne = Q.helper;
|
|
3846
3857
|
if (re === " ") {
|
|
3847
3858
|
var ce = ne.measureText("|" + re + "|"), me = ne.measureText("||");
|
|
3848
|
-
|
|
3859
|
+
Q.cache[oe] = (ce - me) / 100;
|
|
3849
3860
|
} else
|
|
3850
|
-
|
|
3861
|
+
Q.cache[oe] = ne.measureText(re) / 100;
|
|
3851
3862
|
}
|
|
3852
|
-
return
|
|
3863
|
+
return Q.cache[oe] * W;
|
|
3853
3864
|
}
|
|
3854
3865
|
function Z(re) {
|
|
3855
|
-
for (var
|
|
3856
|
-
if (this.fonts[
|
|
3857
|
-
return this.fonts[
|
|
3858
|
-
|
|
3866
|
+
for (var ae = 0, W = this.fonts.length; ae < W; ) {
|
|
3867
|
+
if (this.fonts[ae].fName === re)
|
|
3868
|
+
return this.fonts[ae];
|
|
3869
|
+
ae += 1;
|
|
3859
3870
|
}
|
|
3860
3871
|
return this.fonts[0];
|
|
3861
3872
|
}
|
|
3862
|
-
function
|
|
3863
|
-
var
|
|
3873
|
+
function J(re) {
|
|
3874
|
+
var ae = 0, W = re.charCodeAt(0);
|
|
3864
3875
|
if (W >= 55296 && W <= 56319) {
|
|
3865
|
-
var
|
|
3866
|
-
|
|
3876
|
+
var Q = re.charCodeAt(1);
|
|
3877
|
+
Q >= 56320 && Q <= 57343 && (ae = (W - 55296) * 1024 + Q - 56320 + 65536);
|
|
3867
3878
|
}
|
|
3868
|
-
return
|
|
3879
|
+
return ae;
|
|
3869
3880
|
}
|
|
3870
|
-
function ee(re,
|
|
3871
|
-
var W = re.toString(16) +
|
|
3881
|
+
function ee(re, ae) {
|
|
3882
|
+
var W = re.toString(16) + ae.toString(16);
|
|
3872
3883
|
return K.indexOf(W) !== -1;
|
|
3873
3884
|
}
|
|
3874
3885
|
function ie(re) {
|
|
3875
3886
|
return re === h;
|
|
3876
3887
|
}
|
|
3877
|
-
function
|
|
3888
|
+
function se(re) {
|
|
3878
3889
|
return re === l;
|
|
3879
3890
|
}
|
|
3880
3891
|
function le(re) {
|
|
3881
|
-
var
|
|
3882
|
-
return
|
|
3892
|
+
var ae = J(re);
|
|
3893
|
+
return ae >= d && ae <= V;
|
|
3883
3894
|
}
|
|
3884
3895
|
function ue(re) {
|
|
3885
3896
|
return le(re.substr(0, 2)) && le(re.substr(2, 2));
|
|
@@ -3887,17 +3898,17 @@ function requireLottie() {
|
|
|
3887
3898
|
function de(re) {
|
|
3888
3899
|
return r.indexOf(re) !== -1;
|
|
3889
3900
|
}
|
|
3890
|
-
function fe(re,
|
|
3891
|
-
var W =
|
|
3901
|
+
function fe(re, ae) {
|
|
3902
|
+
var W = J(re.substr(ae, 2));
|
|
3892
3903
|
if (W !== i)
|
|
3893
3904
|
return !1;
|
|
3894
|
-
var
|
|
3895
|
-
for (
|
|
3896
|
-
if (W =
|
|
3905
|
+
var Q = 0;
|
|
3906
|
+
for (ae += 2; Q < 5; ) {
|
|
3907
|
+
if (W = J(re.substr(ae, 2)), W < a || W > n)
|
|
3897
3908
|
return !1;
|
|
3898
|
-
|
|
3909
|
+
Q += 1, ae += 2;
|
|
3899
3910
|
}
|
|
3900
|
-
return
|
|
3911
|
+
return J(re.substr(ae, 2)) === s;
|
|
3901
3912
|
}
|
|
3902
3913
|
function pe() {
|
|
3903
3914
|
this.isLoaded = !0;
|
|
@@ -3905,7 +3916,7 @@ function requireLottie() {
|
|
|
3905
3916
|
var ve = function() {
|
|
3906
3917
|
this.fonts = [], this.chars = null, this.typekitLoaded = 0, this.isLoaded = !1, this._warned = !1, this.initTime = Date.now(), this.setIsLoadedBinded = this.setIsLoaded.bind(this), this.checkLoadedFontsBinded = this.checkLoadedFonts.bind(this);
|
|
3907
3918
|
};
|
|
3908
|
-
ve.isModifier = ee, ve.isZeroWidthJoiner = ie, ve.isFlagEmoji = ue, ve.isRegionalCode = le, ve.isCombinedCharacter = de, ve.isRegionalFlag = fe, ve.isVariationSelector =
|
|
3919
|
+
ve.isModifier = ee, ve.isZeroWidthJoiner = ie, ve.isFlagEmoji = ue, ve.isRegionalCode = le, ve.isCombinedCharacter = de, ve.isRegionalFlag = fe, ve.isVariationSelector = se, ve.BLACK_FLAG_CODE_POINT = i;
|
|
3909
3920
|
var he = {
|
|
3910
3921
|
addChars: M,
|
|
3911
3922
|
addFonts: te,
|
|
@@ -4397,8 +4408,8 @@ function requireLottie() {
|
|
|
4397
4408
|
var Z = createNS("g");
|
|
4398
4409
|
for (V = 0; V < K; V += 1)
|
|
4399
4410
|
Z.appendChild(d[V]);
|
|
4400
|
-
var
|
|
4401
|
-
|
|
4411
|
+
var J = createNS("mask");
|
|
4412
|
+
J.setAttribute("mask-type", "alpha"), J.setAttribute("id", y + "_" + h), J.appendChild(n), i.appendChild(J), Z.setAttribute("mask", "url(" + getLocationHref() + "#" + y + "_" + h + ")"), d.length = 0, d.push(Z);
|
|
4402
4413
|
} else
|
|
4403
4414
|
d.push(n);
|
|
4404
4415
|
l[s].inv && !this.solidPath && (this.solidPath = this.createLayerSolidPath()), this.viewData[s] = {
|
|
@@ -4865,14 +4876,14 @@ function requireLottie() {
|
|
|
4865
4876
|
function a() {
|
|
4866
4877
|
}
|
|
4867
4878
|
function n(K, y, q) {
|
|
4868
|
-
var H, G, te, M, j, F, Z = y.styles.length,
|
|
4879
|
+
var H, G, te, M, j, F, Z = y.styles.length, J = y.lvl, ee, ie, se, le;
|
|
4869
4880
|
for (F = 0; F < Z; F += 1) {
|
|
4870
|
-
if (M = y.sh._mdf || q, y.styles[F].lvl <
|
|
4871
|
-
for (ie = t.reset(),
|
|
4872
|
-
M = y.transformers[le].mProps._mdf || M,
|
|
4881
|
+
if (M = y.sh._mdf || q, y.styles[F].lvl < J) {
|
|
4882
|
+
for (ie = t.reset(), se = J - y.styles[F].lvl, le = y.transformers.length - 1; !M && se > 0; )
|
|
4883
|
+
M = y.transformers[le].mProps._mdf || M, se -= 1, le -= 1;
|
|
4873
4884
|
if (M)
|
|
4874
|
-
for (
|
|
4875
|
-
ie.multiply(y.transformers[le].mProps.v),
|
|
4885
|
+
for (se = J - y.styles[F].lvl, le = y.transformers.length - 1; se > 0; )
|
|
4886
|
+
ie.multiply(y.transformers[le].mProps.v), se -= 1, le -= 1;
|
|
4876
4887
|
} else
|
|
4877
4888
|
ie = e;
|
|
4878
4889
|
if (ee = y.sh.paths, G = ee._length, M) {
|
|
@@ -4901,17 +4912,17 @@ function requireLottie() {
|
|
|
4901
4912
|
var F = K.t === 1 ? "x1" : "cx", Z = F === "x1" ? "y1" : "cy";
|
|
4902
4913
|
H.setAttribute(F, te[0]), H.setAttribute(Z, te[1]), G && !y.g._collapsable && (y.of.setAttribute(F, te[0]), y.of.setAttribute(Z, te[1]));
|
|
4903
4914
|
}
|
|
4904
|
-
var
|
|
4915
|
+
var J, ee, ie, se;
|
|
4905
4916
|
if (y.g._cmdf || q) {
|
|
4906
|
-
|
|
4917
|
+
J = y.cst;
|
|
4907
4918
|
var le = y.g.c;
|
|
4908
|
-
for (ie =
|
|
4909
|
-
|
|
4919
|
+
for (ie = J.length, ee = 0; ee < ie; ee += 1)
|
|
4920
|
+
se = J[ee], se.setAttribute("offset", le[ee * 4] + "%"), se.setAttribute("stop-color", "rgb(" + le[ee * 4 + 1] + "," + le[ee * 4 + 2] + "," + le[ee * 4 + 3] + ")");
|
|
4910
4921
|
}
|
|
4911
4922
|
if (G && (y.g._omdf || q)) {
|
|
4912
4923
|
var ue = y.g.o;
|
|
4913
|
-
for (y.g._collapsable ?
|
|
4914
|
-
|
|
4924
|
+
for (y.g._collapsable ? J = y.cst : J = y.ost, ie = J.length, ee = 0; ee < ie; ee += 1)
|
|
4925
|
+
se = J[ee], y.g._collapsable || se.setAttribute("offset", ue[ee * 2] + "%"), se.setAttribute("stop-opacity", ue[ee * 2 + 1]);
|
|
4915
4926
|
}
|
|
4916
4927
|
if (K.t === 1)
|
|
4917
4928
|
(y.e._mdf || q) && (H.setAttribute("x2", M[0]), H.setAttribute("y2", M[1]), G && !y.g._collapsable && (y.of.setAttribute("x2", M[0]), y.of.setAttribute("y2", M[1])));
|
|
@@ -5111,16 +5122,16 @@ function requireLottie() {
|
|
|
5111
5122
|
return t;
|
|
5112
5123
|
}, TextProperty.prototype.completeTextData = function(e) {
|
|
5113
5124
|
e.__complete = !0;
|
|
5114
|
-
var t = this.elem.globalData.fontManager, r = this.data, i = [], s, a, n, l = 0, h, d = r.m.g, V = 0, K = 0, y = 0, q = [], H = 0, G = 0, te, M, j = t.getFontByName(e.f), F, Z = 0,
|
|
5115
|
-
e.fWeight =
|
|
5125
|
+
var t = this.elem.globalData.fontManager, r = this.data, i = [], s, a, n, l = 0, h, d = r.m.g, V = 0, K = 0, y = 0, q = [], H = 0, G = 0, te, M, j = t.getFontByName(e.f), F, Z = 0, J = getFontProperties(j);
|
|
5126
|
+
e.fWeight = J.weight, e.fStyle = J.style, e.finalSize = e.s, e.finalText = this.buildFinalText(e.t), a = e.finalText.length, e.finalLineHeight = e.lh;
|
|
5116
5127
|
var ee = e.tr / 1e3 * e.finalSize, ie;
|
|
5117
5128
|
if (e.sz)
|
|
5118
|
-
for (var
|
|
5129
|
+
for (var se = !0, le = e.sz[0], ue = e.sz[1], de, fe; se; ) {
|
|
5119
5130
|
fe = this.buildFinalText(e.t), de = 0, H = 0, a = fe.length, ee = e.tr / 1e3 * e.finalSize;
|
|
5120
5131
|
var pe = -1;
|
|
5121
5132
|
for (s = 0; s < a; s += 1)
|
|
5122
5133
|
ie = fe[s].charCodeAt(0), n = !1, fe[s] === " " ? pe = s : (ie === 13 || ie === 3) && (H = 0, n = !0, de += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (F = t.getCharData(fe[s], j.fStyle, j.fFamily), Z = n ? 0 : F.w * e.finalSize / 100) : Z = t.measureText(fe[s], e.f, e.finalSize), H + Z > le && fe[s] !== " " ? (pe === -1 ? a += 1 : s = pe, de += e.finalLineHeight || e.finalSize * 1.2, fe.splice(s, pe === s ? 1 : 0, "\r"), pe = -1, H = 0) : (H += Z, H += ee);
|
|
5123
|
-
de += j.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && ue < de ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = fe, a = e.finalText.length,
|
|
5134
|
+
de += j.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && ue < de ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = fe, a = e.finalText.length, se = !1);
|
|
5124
5135
|
}
|
|
5125
5136
|
H = -ee, Z = 0;
|
|
5126
5137
|
var ve = 0, he;
|
|
@@ -5162,15 +5173,15 @@ function requireLottie() {
|
|
|
5162
5173
|
e.justifyOffset = 0;
|
|
5163
5174
|
}
|
|
5164
5175
|
e.lineWidths = q;
|
|
5165
|
-
var re = r.a,
|
|
5176
|
+
var re = r.a, ae, W;
|
|
5166
5177
|
M = re.length;
|
|
5167
|
-
var
|
|
5178
|
+
var Q, oe, ne = [];
|
|
5168
5179
|
for (te = 0; te < M; te += 1) {
|
|
5169
|
-
for (
|
|
5170
|
-
W = i[s], W.anIndexes[te] = oe, (
|
|
5180
|
+
for (ae = re[te], ae.a.sc && (e.strokeColorAnim = !0), ae.a.sw && (e.strokeWidthAnim = !0), (ae.a.fc || ae.a.fh || ae.a.fs || ae.a.fb) && (e.fillColorAnim = !0), oe = 0, Q = ae.s.b, s = 0; s < a; s += 1)
|
|
5181
|
+
W = i[s], W.anIndexes[te] = oe, (Q == 1 && W.val !== "" || Q == 2 && W.val !== "" && W.val !== " " || Q == 3 && (W.n || W.val == " " || s == a - 1) || Q == 4 && (W.n || s == a - 1)) && (ae.s.rn === 1 && ne.push(oe), oe += 1);
|
|
5171
5182
|
r.a[te].s.totalChars = oe;
|
|
5172
5183
|
var ce = -1, me;
|
|
5173
|
-
if (
|
|
5184
|
+
if (ae.s.rn === 1)
|
|
5174
5185
|
for (s = 0; s < a; s += 1)
|
|
5175
5186
|
W = i[s], ce != W.anIndexes[te] && (ce = W.anIndexes[te], me = ne.splice(Math.floor(Math.random() * ne.length), 1)[0]), W.anIndexes[te] = me;
|
|
5176
5187
|
}
|
|
@@ -5295,7 +5306,7 @@ function requireLottie() {
|
|
|
5295
5306
|
}, TextAnimatorProperty.prototype.getMeasures = function(e, t) {
|
|
5296
5307
|
if (this.lettersChangedFlag = t, !(!this._mdf && !this._isFirstFrame && !t && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
5297
5308
|
this._isFirstFrame = !1;
|
|
5298
|
-
var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, a = this.mHelper, n = this._renderType, l = this.renderedLetters.length, h, d, V, K, y = e.l, q, H, G, te, M, j, F, Z,
|
|
5309
|
+
var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, a = this.mHelper, n = this._renderType, l = this.renderedLetters.length, h, d, V, K, y = e.l, q, H, G, te, M, j, F, Z, J, ee, ie, se, le, ue, de;
|
|
5299
5310
|
if (this._hasMaskedPath) {
|
|
5300
5311
|
if (de = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
5301
5312
|
var fe = de.v;
|
|
@@ -5304,67 +5315,67 @@ function requireLottie() {
|
|
|
5304
5315
|
segments: []
|
|
5305
5316
|
}, K = fe._length - 1;
|
|
5306
5317
|
var pe;
|
|
5307
|
-
for (
|
|
5308
|
-
pe = bez.buildBezierData(fe.v[V], fe.v[V + 1], [fe.o[V][0] - fe.v[V][0], fe.o[V][1] - fe.v[V][1]], [fe.i[V + 1][0] - fe.v[V + 1][0], fe.i[V + 1][1] - fe.v[V + 1][1]]), q.tLength += pe.segmentLength, q.segments.push(pe),
|
|
5309
|
-
V = K, de.v.c && (pe = bez.buildBezierData(fe.v[V], fe.v[0], [fe.o[V][0] - fe.v[V][0], fe.o[V][1] - fe.v[V][1]], [fe.i[0][0] - fe.v[0][0], fe.i[0][1] - fe.v[0][1]]), q.tLength += pe.segmentLength, q.segments.push(pe),
|
|
5318
|
+
for (se = 0, V = 0; V < K; V += 1)
|
|
5319
|
+
pe = bez.buildBezierData(fe.v[V], fe.v[V + 1], [fe.o[V][0] - fe.v[V][0], fe.o[V][1] - fe.v[V][1]], [fe.i[V + 1][0] - fe.v[V + 1][0], fe.i[V + 1][1] - fe.v[V + 1][1]]), q.tLength += pe.segmentLength, q.segments.push(pe), se += pe.segmentLength;
|
|
5320
|
+
V = K, de.v.c && (pe = bez.buildBezierData(fe.v[V], fe.v[0], [fe.o[V][0] - fe.v[V][0], fe.o[V][1] - fe.v[V][1]], [fe.i[0][0] - fe.v[0][0], fe.i[0][1] - fe.v[0][1]]), q.tLength += pe.segmentLength, q.segments.push(pe), se += pe.segmentLength), this._pathData.pi = q;
|
|
5310
5321
|
}
|
|
5311
5322
|
if (q = this._pathData.pi, H = this._pathData.f.v, F = 0, j = 1, te = 0, M = !0, ee = q.segments, H < 0 && de.v.c)
|
|
5312
|
-
for (q.tLength < Math.abs(H) && (H = -Math.abs(H) % q.tLength), F = ee.length - 1,
|
|
5313
|
-
H +=
|
|
5314
|
-
|
|
5323
|
+
for (q.tLength < Math.abs(H) && (H = -Math.abs(H) % q.tLength), F = ee.length - 1, J = ee[F].points, j = J.length - 1; H < 0; )
|
|
5324
|
+
H += J[j].partialLength, j -= 1, j < 0 && (F -= 1, J = ee[F].points, j = J.length - 1);
|
|
5325
|
+
J = ee[F].points, Z = J[j - 1], G = J[j], ie = G.partialLength;
|
|
5315
5326
|
}
|
|
5316
5327
|
K = y.length, h = 0, d = 0;
|
|
5317
|
-
var ve = e.finalSize * 1.2 * 0.714, he = !0, re,
|
|
5318
|
-
|
|
5319
|
-
var ne, ce = -1, me, ye, xe, be = H, Ce = F, Se = j, Ie = -1, Ee, Pe, we, _e, ge, Me,
|
|
5328
|
+
var ve = e.finalSize * 1.2 * 0.714, he = !0, re, ae, W, Q, oe;
|
|
5329
|
+
Q = i.length;
|
|
5330
|
+
var ne, ce = -1, me, ye, xe, be = H, Ce = F, Se = j, Ie = -1, Ee, Pe, we, _e, ge, Me, je, Re, Fe = "", Le = this.defaultPropsArray, Ve;
|
|
5320
5331
|
if (e.j === 2 || e.j === 1) {
|
|
5321
|
-
var Te = 0,
|
|
5332
|
+
var Te = 0, De = 0, Ne = e.j === 2 ? -0.5 : -1, Ae = 0, Oe = !0;
|
|
5322
5333
|
for (V = 0; V < K; V += 1)
|
|
5323
5334
|
if (y[V].n) {
|
|
5324
|
-
for (Te && (Te +=
|
|
5335
|
+
for (Te && (Te += De); Ae < V; )
|
|
5325
5336
|
y[Ae].animatorJustifyOffset = Te, Ae += 1;
|
|
5326
5337
|
Te = 0, Oe = !0;
|
|
5327
5338
|
} else {
|
|
5328
|
-
for (W = 0; W <
|
|
5329
|
-
re = i[W].a, re.t.propType && (Oe && e.j === 2 && (
|
|
5339
|
+
for (W = 0; W < Q; W += 1)
|
|
5340
|
+
re = i[W].a, re.t.propType && (Oe && e.j === 2 && (De += re.t.v * Ne), ae = i[W].s, ne = ae.getMult(y[V].anIndexes[W], s.a[W].s.totalChars), ne.length ? Te += re.t.v * ne[0] * Ne : Te += re.t.v * ne * Ne);
|
|
5330
5341
|
Oe = !1;
|
|
5331
5342
|
}
|
|
5332
|
-
for (Te && (Te +=
|
|
5343
|
+
for (Te && (Te += De); Ae < V; )
|
|
5333
5344
|
y[Ae].animatorJustifyOffset = Te, Ae += 1;
|
|
5334
5345
|
}
|
|
5335
5346
|
for (V = 0; V < K; V += 1) {
|
|
5336
5347
|
if (a.reset(), Ee = 1, y[V].n)
|
|
5337
|
-
h = 0, d += e.yOffset, d += he ? 1 : 0, H = be, he = !1, this._hasMaskedPath && (F = Ce, j = Se,
|
|
5348
|
+
h = 0, d += e.yOffset, d += he ? 1 : 0, H = be, he = !1, this._hasMaskedPath && (F = Ce, j = Se, J = ee[F].points, Z = J[j - 1], G = J[j], ie = G.partialLength, te = 0), Fe = "", Re = "", Me = "", Ve = "", Le = this.defaultPropsArray;
|
|
5338
5349
|
else {
|
|
5339
5350
|
if (this._hasMaskedPath) {
|
|
5340
5351
|
if (Ie !== y[V].line) {
|
|
5341
5352
|
switch (e.j) {
|
|
5342
5353
|
case 1:
|
|
5343
|
-
H +=
|
|
5354
|
+
H += se - e.lineWidths[y[V].line];
|
|
5344
5355
|
break;
|
|
5345
5356
|
case 2:
|
|
5346
|
-
H += (
|
|
5357
|
+
H += (se - e.lineWidths[y[V].line]) / 2;
|
|
5347
5358
|
break;
|
|
5348
5359
|
}
|
|
5349
5360
|
Ie = y[V].line;
|
|
5350
5361
|
}
|
|
5351
5362
|
ce !== y[V].ind && (y[ce] && (H += y[ce].extra), H += y[V].an / 2, ce = y[V].ind), H += r[0] * y[V].an * 5e-3;
|
|
5352
5363
|
var ke = 0;
|
|
5353
|
-
for (W = 0; W <
|
|
5354
|
-
re = i[W].a, re.p.propType && (
|
|
5355
|
-
for (M = !0, this._pathData.a.v && (H = y[0].an * 0.5 + (
|
|
5356
|
-
te + ie >= H + ke || !
|
|
5364
|
+
for (W = 0; W < Q; W += 1)
|
|
5365
|
+
re = i[W].a, re.p.propType && (ae = i[W].s, ne = ae.getMult(y[V].anIndexes[W], s.a[W].s.totalChars), ne.length ? ke += re.p.v[0] * ne[0] : ke += re.p.v[0] * ne), re.a.propType && (ae = i[W].s, ne = ae.getMult(y[V].anIndexes[W], s.a[W].s.totalChars), ne.length ? ke += re.a.v[0] * ne[0] : ke += re.a.v[0] * ne);
|
|
5366
|
+
for (M = !0, this._pathData.a.v && (H = y[0].an * 0.5 + (se - this._pathData.f.v - y[0].an * 0.5 - y[y.length - 1].an * 0.5) * ce / (K - 1), H += this._pathData.f.v); M; )
|
|
5367
|
+
te + ie >= H + ke || !J ? (le = (H + ke - te) / G.partialLength, ye = Z.point[0] + (G.point[0] - Z.point[0]) * le, xe = Z.point[1] + (G.point[1] - Z.point[1]) * le, a.translate(-r[0] * y[V].an * 5e-3, -(r[1] * ve) * 0.01), M = !1) : J && (te += G.partialLength, j += 1, j >= J.length && (j = 0, F += 1, ee[F] ? J = ee[F].points : de.v.c ? (j = 0, F = 0, J = ee[F].points) : (te -= G.partialLength, J = null)), J && (Z = G, G = J[j], ie = G.partialLength));
|
|
5357
5368
|
me = y[V].an / 2 - y[V].add, a.translate(-me, 0, 0);
|
|
5358
5369
|
} else
|
|
5359
5370
|
me = y[V].an / 2 - y[V].add, a.translate(-me, 0, 0), a.translate(-r[0] * y[V].an * 5e-3, -r[1] * ve * 0.01, 0);
|
|
5360
|
-
for (W = 0; W <
|
|
5361
|
-
re = i[W].a, re.t.propType && (
|
|
5362
|
-
for (e.strokeWidthAnim && (we = e.sw || 0), e.strokeColorAnim && (e.sc ? Pe = [e.sc[0], e.sc[1], e.sc[2]] : Pe = [0, 0, 0]), e.fillColorAnim && e.fc && (_e = [e.fc[0], e.fc[1], e.fc[2]]), W = 0; W <
|
|
5363
|
-
re = i[W].a, re.a.propType && (
|
|
5364
|
-
for (W = 0; W <
|
|
5365
|
-
re = i[W].a, re.s.propType && (
|
|
5366
|
-
for (W = 0; W <
|
|
5367
|
-
if (re = i[W].a,
|
|
5371
|
+
for (W = 0; W < Q; W += 1)
|
|
5372
|
+
re = i[W].a, re.t.propType && (ae = i[W].s, ne = ae.getMult(y[V].anIndexes[W], s.a[W].s.totalChars), (h !== 0 || e.j !== 0) && (this._hasMaskedPath ? ne.length ? H += re.t.v * ne[0] : H += re.t.v * ne : ne.length ? h += re.t.v * ne[0] : h += re.t.v * ne));
|
|
5373
|
+
for (e.strokeWidthAnim && (we = e.sw || 0), e.strokeColorAnim && (e.sc ? Pe = [e.sc[0], e.sc[1], e.sc[2]] : Pe = [0, 0, 0]), e.fillColorAnim && e.fc && (_e = [e.fc[0], e.fc[1], e.fc[2]]), W = 0; W < Q; W += 1)
|
|
5374
|
+
re = i[W].a, re.a.propType && (ae = i[W].s, ne = ae.getMult(y[V].anIndexes[W], s.a[W].s.totalChars), ne.length ? a.translate(-re.a.v[0] * ne[0], -re.a.v[1] * ne[1], re.a.v[2] * ne[2]) : a.translate(-re.a.v[0] * ne, -re.a.v[1] * ne, re.a.v[2] * ne));
|
|
5375
|
+
for (W = 0; W < Q; W += 1)
|
|
5376
|
+
re = i[W].a, re.s.propType && (ae = i[W].s, ne = ae.getMult(y[V].anIndexes[W], s.a[W].s.totalChars), ne.length ? a.scale(1 + (re.s.v[0] - 1) * ne[0], 1 + (re.s.v[1] - 1) * ne[1], 1) : a.scale(1 + (re.s.v[0] - 1) * ne, 1 + (re.s.v[1] - 1) * ne, 1));
|
|
5377
|
+
for (W = 0; W < Q; W += 1) {
|
|
5378
|
+
if (re = i[W].a, ae = i[W].s, ne = ae.getMult(y[V].anIndexes[W], s.a[W].s.totalChars), re.sk.propType && (ne.length ? a.skewFromAxis(-re.sk.v * ne[0], re.sa.v * ne[1]) : a.skewFromAxis(-re.sk.v * ne, re.sa.v * ne)), re.r.propType && (ne.length ? a.rotateZ(-re.r.v * ne[2]) : a.rotateZ(-re.r.v * ne)), re.ry.propType && (ne.length ? a.rotateY(re.ry.v * ne[1]) : a.rotateY(re.ry.v * ne)), re.rx.propType && (ne.length ? a.rotateX(re.rx.v * ne[0]) : a.rotateX(re.rx.v * ne)), re.o.propType && (ne.length ? Ee += (re.o.v * ne[0] - Ee) * ne[0] : Ee += (re.o.v * ne - Ee) * ne), e.strokeWidthAnim && re.sw.propType && (ne.length ? we += re.sw.v * ne[0] : we += re.sw.v * ne), e.strokeColorAnim && re.sc.propType)
|
|
5368
5379
|
for (ge = 0; ge < 3; ge += 1)
|
|
5369
5380
|
ne.length ? Pe[ge] += (re.sc.v[ge] - Pe[ge]) * ne[0] : Pe[ge] += (re.sc.v[ge] - Pe[ge]) * ne;
|
|
5370
5381
|
if (e.fillColorAnim && e.fc) {
|
|
@@ -5374,9 +5385,9 @@ function requireLottie() {
|
|
|
5374
5385
|
re.fh.propType && (ne.length ? _e = addHueToRGB(_e, re.fh.v * ne[0]) : _e = addHueToRGB(_e, re.fh.v * ne)), re.fs.propType && (ne.length ? _e = addSaturationToRGB(_e, re.fs.v * ne[0]) : _e = addSaturationToRGB(_e, re.fs.v * ne)), re.fb.propType && (ne.length ? _e = addBrightnessToRGB(_e, re.fb.v * ne[0]) : _e = addBrightnessToRGB(_e, re.fb.v * ne));
|
|
5375
5386
|
}
|
|
5376
5387
|
}
|
|
5377
|
-
for (W = 0; W <
|
|
5378
|
-
re = i[W].a, re.p.propType && (
|
|
5379
|
-
if (e.strokeWidthAnim && (Me = we < 0 ? 0 : we), e.strokeColorAnim && (
|
|
5388
|
+
for (W = 0; W < Q; W += 1)
|
|
5389
|
+
re = i[W].a, re.p.propType && (ae = i[W].s, ne = ae.getMult(y[V].anIndexes[W], s.a[W].s.totalChars), this._hasMaskedPath ? ne.length ? a.translate(0, re.p.v[1] * ne[0], -re.p.v[2] * ne[1]) : a.translate(0, re.p.v[1] * ne, -re.p.v[2] * ne) : ne.length ? a.translate(re.p.v[0] * ne[0], re.p.v[1] * ne[1], -re.p.v[2] * ne[2]) : a.translate(re.p.v[0] * ne, re.p.v[1] * ne, -re.p.v[2] * ne));
|
|
5390
|
+
if (e.strokeWidthAnim && (Me = we < 0 ? 0 : we), e.strokeColorAnim && (je = "rgb(" + Math.round(Pe[0] * 255) + "," + Math.round(Pe[1] * 255) + "," + Math.round(Pe[2] * 255) + ")"), e.fillColorAnim && e.fc && (Re = "rgb(" + Math.round(_e[0] * 255) + "," + Math.round(_e[1] * 255) + "," + Math.round(_e[2] * 255) + ")"), this._hasMaskedPath) {
|
|
5380
5391
|
if (a.translate(0, -e.ls), a.translate(0, r[1] * ve * 0.01 + d, 0), this._pathData.p.v) {
|
|
5381
5392
|
ue = (G.point[1] - Z.point[1]) / (G.point[0] - Z.point[0]);
|
|
5382
5393
|
var Be = Math.atan(ue) * 180 / Math.PI;
|
|
@@ -5396,7 +5407,7 @@ function requireLottie() {
|
|
|
5396
5407
|
}
|
|
5397
5408
|
n === "html" ? Fe = a.toCSS() : n === "svg" ? Fe = a.to2dCSS() : Le = [a.props[0], a.props[1], a.props[2], a.props[3], a.props[4], a.props[5], a.props[6], a.props[7], a.props[8], a.props[9], a.props[10], a.props[11], a.props[12], a.props[13], a.props[14], a.props[15]], Ve = Ee;
|
|
5398
5409
|
}
|
|
5399
|
-
l <= V ? (oe = new LetterProps(Ve, Me,
|
|
5410
|
+
l <= V ? (oe = new LetterProps(Ve, Me, je, Re, Fe, Le), this.renderedLetters.push(oe), l += 1, this.lettersChangedFlag = !0) : (oe = this.renderedLetters[V], this.lettersChangedFlag = oe.update(Ve, Me, je, Re, Fe, Le) || this.lettersChangedFlag);
|
|
5400
5411
|
}
|
|
5401
5412
|
}
|
|
5402
5413
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -5503,8 +5514,8 @@ function requireLottie() {
|
|
|
5503
5514
|
}), !l || !K || e === 0) {
|
|
5504
5515
|
if (h = F > e ? this.textSpans[e].span : createNS(l ? "g" : "text"), F <= e) {
|
|
5505
5516
|
if (h.setAttribute("stroke-linecap", "butt"), h.setAttribute("stroke-linejoin", "round"), h.setAttribute("stroke-miterlimit", "4"), this.textSpans[e].span = h, l) {
|
|
5506
|
-
var
|
|
5507
|
-
h.appendChild(
|
|
5517
|
+
var J = createNS("g");
|
|
5518
|
+
h.appendChild(J), this.textSpans[e].childSpan = J;
|
|
5508
5519
|
}
|
|
5509
5520
|
this.textSpans[e].span = h, this.layerElement.appendChild(h);
|
|
5510
5521
|
}
|
|
@@ -5520,8 +5531,8 @@ function requireLottie() {
|
|
|
5520
5531
|
Z.data && Z.data.shapes && (ie = this.buildShapeData(Z.data, r.finalSize)), ee = new SVGShapeElement(ie, this.globalData, this);
|
|
5521
5532
|
}
|
|
5522
5533
|
if (this.textSpans[e].glyph) {
|
|
5523
|
-
var
|
|
5524
|
-
this.textSpans[e].childSpan.removeChild(
|
|
5534
|
+
var se = this.textSpans[e].glyph;
|
|
5535
|
+
this.textSpans[e].childSpan.removeChild(se.layerElement), se.destroy();
|
|
5525
5536
|
}
|
|
5526
5537
|
this.textSpans[e].glyph = ee, ee._debug = !0, ee.prepareFrame(0), ee.renderFrame(), this.textSpans[e].childSpan.appendChild(ee.layerElement), Z.t === 1 && this.textSpans[e].childSpan.setAttribute("transform", "scale(" + r.finalSize / 100 + "," + r.finalSize / 100 + ")");
|
|
5527
5538
|
} else
|
|
@@ -6138,15 +6149,15 @@ function requireLottie() {
|
|
|
6138
6149
|
e.sc && (r = !0, this.values.stroke = this.buildColor(e.sc), this.values.sWidth = e.sw);
|
|
6139
6150
|
var i = this.globalData.fontManager.getFontByName(e.f), s, a, n = e.l, l = this.mHelper;
|
|
6140
6151
|
this.stroke = r, this.values.fValue = e.finalSize + "px " + this.globalData.fontManager.getFontByName(e.f).fFamily, a = e.finalText.length;
|
|
6141
|
-
var h, d, V, K, y, q, H, G, te, M, j = this.data.singleShape, F = e.tr * 1e-3 * e.finalSize, Z = 0,
|
|
6152
|
+
var h, d, V, K, y, q, H, G, te, M, j = this.data.singleShape, F = e.tr * 1e-3 * e.finalSize, Z = 0, J = 0, ee = !0, ie = 0;
|
|
6142
6153
|
for (s = 0; s < a; s += 1) {
|
|
6143
|
-
h = this.globalData.fontManager.getCharData(e.finalText[s], i.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), d = h && h.data || {}, l.reset(), j && n[s].n && (Z = -F,
|
|
6144
|
-
var
|
|
6154
|
+
h = this.globalData.fontManager.getCharData(e.finalText[s], i.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), d = h && h.data || {}, l.reset(), j && n[s].n && (Z = -F, J += e.yOffset, J += ee ? 1 : 0, ee = !1), y = d.shapes ? d.shapes[0].it : [], H = y.length, l.scale(e.finalSize / 100, e.finalSize / 100), j && this.applyTextPropertiesToMatrix(e, l, n[s].line, Z, J), te = createSizedArray(H - 1);
|
|
6155
|
+
var se = 0;
|
|
6145
6156
|
for (q = 0; q < H; q += 1)
|
|
6146
6157
|
if (y[q].ty === "sh") {
|
|
6147
6158
|
for (K = y[q].ks.k.i.length, G = y[q].ks.k, M = [], V = 1; V < K; V += 1)
|
|
6148
6159
|
V === 1 && M.push(l.applyToX(G.v[0][0], G.v[0][1], 0), l.applyToY(G.v[0][0], G.v[0][1], 0)), M.push(l.applyToX(G.o[V - 1][0], G.o[V - 1][1], 0), l.applyToY(G.o[V - 1][0], G.o[V - 1][1], 0), l.applyToX(G.i[V][0], G.i[V][1], 0), l.applyToY(G.i[V][0], G.i[V][1], 0), l.applyToX(G.v[V][0], G.v[V][1], 0), l.applyToY(G.v[V][0], G.v[V][1], 0));
|
|
6149
|
-
M.push(l.applyToX(G.o[V - 1][0], G.o[V - 1][1], 0), l.applyToY(G.o[V - 1][0], G.o[V - 1][1], 0), l.applyToX(G.i[0][0], G.i[0][1], 0), l.applyToY(G.i[0][0], G.i[0][1], 0), l.applyToX(G.v[0][0], G.v[0][1], 0), l.applyToY(G.v[0][0], G.v[0][1], 0)), te[
|
|
6160
|
+
M.push(l.applyToX(G.o[V - 1][0], G.o[V - 1][1], 0), l.applyToY(G.o[V - 1][0], G.o[V - 1][1], 0), l.applyToX(G.i[0][0], G.i[0][1], 0), l.applyToY(G.i[0][0], G.i[0][1], 0), l.applyToX(G.v[0][0], G.v[0][1], 0), l.applyToY(G.v[0][0], G.v[0][1], 0)), te[se] = M, se += 1;
|
|
6150
6161
|
}
|
|
6151
6162
|
j && (Z += n[s].l, Z += F), this.textSpans[ie] ? this.textSpans[ie].elem = te : this.textSpans[ie] = {
|
|
6152
6163
|
elem: te
|
|
@@ -6591,8 +6602,8 @@ function requireLottie() {
|
|
|
6591
6602
|
this.innerElem.appendChild(d);
|
|
6592
6603
|
else {
|
|
6593
6604
|
this.innerElem.appendChild(V);
|
|
6594
|
-
var
|
|
6595
|
-
|
|
6605
|
+
var J = d.style, ee = "translate3d(0," + -e.finalSize / 1.2 + "px,0)";
|
|
6606
|
+
J.transform = ee, J.webkitTransform = ee;
|
|
6596
6607
|
}
|
|
6597
6608
|
this.isMasked ? this.textSpans[G] = d : this.textSpans[G] = V, this.textSpans[G].style.display = "block", this.textPaths[G] = d, G += 1;
|
|
6598
6609
|
}
|
|
@@ -6887,35 +6898,35 @@ function requireLottie() {
|
|
|
6887
6898
|
}
|
|
6888
6899
|
function seedRandom(e, t) {
|
|
6889
6900
|
var r = this, i = 256, s = 6, a = 52, n = "random", l = t.pow(i, s), h = t.pow(2, a), d = h * 2, V = i - 1, K;
|
|
6890
|
-
function y(F, Z,
|
|
6901
|
+
function y(F, Z, J) {
|
|
6891
6902
|
var ee = [];
|
|
6892
6903
|
Z = Z === !0 ? {
|
|
6893
6904
|
entropy: !0
|
|
6894
6905
|
} : Z || {};
|
|
6895
|
-
var ie = te(G(Z.entropy ? [F, j(e)] : F === null ? M() : F, 3), ee),
|
|
6896
|
-
for (var de =
|
|
6897
|
-
de = (de + pe) * i, fe *= i, pe =
|
|
6906
|
+
var ie = te(G(Z.entropy ? [F, j(e)] : F === null ? M() : F, 3), ee), se = new q(ee), le = function() {
|
|
6907
|
+
for (var de = se.g(s), fe = l, pe = 0; de < h; )
|
|
6908
|
+
de = (de + pe) * i, fe *= i, pe = se.g(1);
|
|
6898
6909
|
for (; de >= d; )
|
|
6899
6910
|
de /= 2, fe /= 2, pe >>>= 1;
|
|
6900
6911
|
return (de + pe) / fe;
|
|
6901
6912
|
};
|
|
6902
6913
|
return le.int32 = function() {
|
|
6903
|
-
return
|
|
6914
|
+
return se.g(4) | 0;
|
|
6904
6915
|
}, le.quick = function() {
|
|
6905
|
-
return
|
|
6906
|
-
}, le.double = le, te(j(
|
|
6907
|
-
return pe && (pe.S && H(pe,
|
|
6908
|
-
return H(
|
|
6916
|
+
return se.g(4) / 4294967296;
|
|
6917
|
+
}, le.double = le, te(j(se.S), e), (Z.pass || J || function(ue, de, fe, pe) {
|
|
6918
|
+
return pe && (pe.S && H(pe, se), ue.state = function() {
|
|
6919
|
+
return H(se, {});
|
|
6909
6920
|
}), fe ? (t[n] = ue, de) : ue;
|
|
6910
6921
|
})(le, ie, "global" in Z ? Z.global : this == t, Z.state);
|
|
6911
6922
|
}
|
|
6912
6923
|
t["seed" + n] = y;
|
|
6913
6924
|
function q(F) {
|
|
6914
|
-
var Z,
|
|
6915
|
-
for (
|
|
6925
|
+
var Z, J = F.length, ee = this, ie = 0, se = ee.i = ee.j = 0, le = ee.S = [];
|
|
6926
|
+
for (J || (F = [J++]); ie < i; )
|
|
6916
6927
|
le[ie] = ie++;
|
|
6917
6928
|
for (ie = 0; ie < i; ie++)
|
|
6918
|
-
le[ie] = le[
|
|
6929
|
+
le[ie] = le[se = V & se + F[ie % J] + (Z = le[ie])], le[se] = Z;
|
|
6919
6930
|
ee.g = function(ue) {
|
|
6920
6931
|
for (var de, fe = 0, pe = ee.i, ve = ee.j, he = ee.S; ue--; )
|
|
6921
6932
|
de = he[pe = V & pe + 1], fe = fe * i + he[V & (he[pe] = he[ve = V & ve + de]) + (he[ve] = de)];
|
|
@@ -6926,18 +6937,18 @@ function requireLottie() {
|
|
|
6926
6937
|
return Z.i = F.i, Z.j = F.j, Z.S = F.S.slice(), Z;
|
|
6927
6938
|
}
|
|
6928
6939
|
function G(F, Z) {
|
|
6929
|
-
var
|
|
6940
|
+
var J = [], ee = _typeof$2(F), ie;
|
|
6930
6941
|
if (Z && ee == "object")
|
|
6931
6942
|
for (ie in F)
|
|
6932
6943
|
try {
|
|
6933
|
-
|
|
6944
|
+
J.push(G(F[ie], Z - 1));
|
|
6934
6945
|
} catch {
|
|
6935
6946
|
}
|
|
6936
|
-
return
|
|
6947
|
+
return J.length ? J : ee == "string" ? F : F + "\0";
|
|
6937
6948
|
}
|
|
6938
6949
|
function te(F, Z) {
|
|
6939
|
-
for (var
|
|
6940
|
-
Z[V & ie] = V & (ee ^= Z[V & ie] * 19) +
|
|
6950
|
+
for (var J = F + "", ee, ie = 0; ie < J.length; )
|
|
6951
|
+
Z[V & ie] = V & (ee ^= Z[V & ie] * 19) + J.charCodeAt(ie++);
|
|
6941
6952
|
return j(Z);
|
|
6942
6953
|
}
|
|
6943
6954
|
function M() {
|
|
@@ -6945,8 +6956,8 @@ function requireLottie() {
|
|
|
6945
6956
|
var F = new Uint8Array(i);
|
|
6946
6957
|
return (r.crypto || r.msCrypto).getRandomValues(F), j(F);
|
|
6947
6958
|
} catch {
|
|
6948
|
-
var Z = r.navigator,
|
|
6949
|
-
return [+/* @__PURE__ */ new Date(), r,
|
|
6959
|
+
var Z = r.navigator, J = Z && Z.plugins;
|
|
6960
|
+
return [+/* @__PURE__ */ new Date(), r, J, r.screen, j(e)];
|
|
6950
6961
|
}
|
|
6951
6962
|
}
|
|
6952
6963
|
function j(F) {
|
|
@@ -7701,21 +7712,21 @@ function requireLottie() {
|
|
|
7701
7712
|
return M;
|
|
7702
7713
|
}
|
|
7703
7714
|
function t(H, G, te) {
|
|
7704
|
-
var M, j = function(
|
|
7715
|
+
var M, j = function(J) {
|
|
7705
7716
|
for (var ee = 0, ie = M.length; ee < ie; ) {
|
|
7706
|
-
if (M[ee]._name ===
|
|
7717
|
+
if (M[ee]._name === J || M[ee].mn === J || M[ee].propertyIndex === J || M[ee].ix === J || M[ee].ind === J)
|
|
7707
7718
|
return M[ee];
|
|
7708
7719
|
ee += 1;
|
|
7709
7720
|
}
|
|
7710
|
-
return typeof
|
|
7721
|
+
return typeof J == "number" ? M[J - 1] : null;
|
|
7711
7722
|
};
|
|
7712
7723
|
j.propertyGroup = propertyGroupFactory(j, te), M = e(H.it, G.it, j.propertyGroup), j.numProperties = M.length;
|
|
7713
7724
|
var F = h(H.it[H.it.length - 1], G.it[G.it.length - 1], j.propertyGroup);
|
|
7714
7725
|
return j.transform = F, j.propertyIndex = H.cix, j._name = H.nm, j;
|
|
7715
7726
|
}
|
|
7716
7727
|
function r(H, G, te) {
|
|
7717
|
-
var M = function(
|
|
7718
|
-
switch (
|
|
7728
|
+
var M = function(J) {
|
|
7729
|
+
switch (J) {
|
|
7719
7730
|
case "ADBE Vectors Group":
|
|
7720
7731
|
case "Contents":
|
|
7721
7732
|
case 2:
|
|
@@ -7789,16 +7800,16 @@ function requireLottie() {
|
|
|
7789
7800
|
}
|
|
7790
7801
|
function n(H, G, te) {
|
|
7791
7802
|
var M = propertyGroupFactory(ie, te), j = propertyGroupFactory(ee, M);
|
|
7792
|
-
function F(
|
|
7793
|
-
Object.defineProperty(ee, H.d[
|
|
7794
|
-
get: ExpressionPropertyInterface(G.d.dataProps[
|
|
7803
|
+
function F(se) {
|
|
7804
|
+
Object.defineProperty(ee, H.d[se].nm, {
|
|
7805
|
+
get: ExpressionPropertyInterface(G.d.dataProps[se].p)
|
|
7795
7806
|
});
|
|
7796
7807
|
}
|
|
7797
|
-
var Z,
|
|
7798
|
-
for (Z = 0; Z <
|
|
7808
|
+
var Z, J = H.d ? H.d.length : 0, ee = {};
|
|
7809
|
+
for (Z = 0; Z < J; Z += 1)
|
|
7799
7810
|
F(Z), G.d.dataProps[Z].p.setGroupProperty(j);
|
|
7800
|
-
function ie(
|
|
7801
|
-
return
|
|
7811
|
+
function ie(se) {
|
|
7812
|
+
return se === "Color" || se === "color" ? ie.color : se === "Opacity" || se === "opacity" ? ie.opacity : se === "Stroke Width" || se === "stroke width" ? ie.strokeWidth : null;
|
|
7802
7813
|
}
|
|
7803
7814
|
return Object.defineProperties(ie, {
|
|
7804
7815
|
color: {
|
|
@@ -7982,10 +7993,10 @@ function requireLottie() {
|
|
|
7982
7993
|
function j(Z) {
|
|
7983
7994
|
if (typeof Z == "number")
|
|
7984
7995
|
return Z = Z === void 0 ? 1 : Z, Z === 0 ? te : M[Z - 1];
|
|
7985
|
-
for (var
|
|
7986
|
-
if (M[
|
|
7987
|
-
return M[
|
|
7988
|
-
|
|
7996
|
+
for (var J = 0, ee = M.length; J < ee; ) {
|
|
7997
|
+
if (M[J]._name === Z)
|
|
7998
|
+
return M[J];
|
|
7999
|
+
J += 1;
|
|
7989
8000
|
}
|
|
7990
8001
|
return null;
|
|
7991
8002
|
}
|
|
@@ -8119,23 +8130,23 @@ function requireLottie() {
|
|
|
8119
8130
|
return this.pv;
|
|
8120
8131
|
var j, F;
|
|
8121
8132
|
H ? (q ? j = Math.abs(M - this.elem.comp.globalData.frameRate * q) : j = Math.max(0, M - this.elem.data.ip), F = M - j) : ((!q || q > te.length - 1) && (q = te.length - 1), F = te[te.length - 1 - q].t, j = M - F);
|
|
8122
|
-
var Z,
|
|
8133
|
+
var Z, J, ee;
|
|
8123
8134
|
if (y === "pingpong") {
|
|
8124
8135
|
var ie = Math.floor((G - F) / j);
|
|
8125
8136
|
if (ie % 2 !== 0)
|
|
8126
8137
|
return this.getValueAtTime((j - (G - F) % j + F) / this.comp.globalData.frameRate, 0);
|
|
8127
8138
|
} else if (y === "offset") {
|
|
8128
|
-
var
|
|
8139
|
+
var se = this.getValueAtTime(F / this.comp.globalData.frameRate, 0), le = this.getValueAtTime(M / this.comp.globalData.frameRate, 0), ue = this.getValueAtTime(((G - F) % j + F) / this.comp.globalData.frameRate, 0), de = Math.floor((G - F) / j);
|
|
8129
8140
|
if (this.pv.length) {
|
|
8130
|
-
for (ee = new Array(
|
|
8131
|
-
ee[Z] = (le[Z] -
|
|
8141
|
+
for (ee = new Array(se.length), J = ee.length, Z = 0; Z < J; Z += 1)
|
|
8142
|
+
ee[Z] = (le[Z] - se[Z]) * de + ue[Z];
|
|
8132
8143
|
return ee;
|
|
8133
8144
|
}
|
|
8134
|
-
return (le -
|
|
8145
|
+
return (le - se) * de + ue;
|
|
8135
8146
|
} else if (y === "continue") {
|
|
8136
8147
|
var fe = this.getValueAtTime(M / this.comp.globalData.frameRate, 0), pe = this.getValueAtTime((M - 1e-3) / this.comp.globalData.frameRate, 0);
|
|
8137
8148
|
if (this.pv.length) {
|
|
8138
|
-
for (ee = new Array(fe.length),
|
|
8149
|
+
for (ee = new Array(fe.length), J = ee.length, Z = 0; Z < J; Z += 1)
|
|
8139
8150
|
ee[Z] = fe[Z] + (fe[Z] - pe[Z]) * ((G - M) / this.comp.globalData.frameRate) / 5e-4;
|
|
8140
8151
|
return ee;
|
|
8141
8152
|
}
|
|
@@ -8152,23 +8163,23 @@ function requireLottie() {
|
|
|
8152
8163
|
return this.pv;
|
|
8153
8164
|
var j, F;
|
|
8154
8165
|
H ? (q ? j = Math.abs(this.elem.comp.globalData.frameRate * q) : j = Math.max(0, this.elem.data.op - M), F = M + j) : ((!q || q > te.length - 1) && (q = te.length - 1), F = te[q].t, j = F - M);
|
|
8155
|
-
var Z,
|
|
8166
|
+
var Z, J, ee;
|
|
8156
8167
|
if (y === "pingpong") {
|
|
8157
8168
|
var ie = Math.floor((M - G) / j);
|
|
8158
8169
|
if (ie % 2 === 0)
|
|
8159
8170
|
return this.getValueAtTime(((M - G) % j + M) / this.comp.globalData.frameRate, 0);
|
|
8160
8171
|
} else if (y === "offset") {
|
|
8161
|
-
var
|
|
8172
|
+
var se = this.getValueAtTime(M / this.comp.globalData.frameRate, 0), le = this.getValueAtTime(F / this.comp.globalData.frameRate, 0), ue = this.getValueAtTime((j - (M - G) % j + M) / this.comp.globalData.frameRate, 0), de = Math.floor((M - G) / j) + 1;
|
|
8162
8173
|
if (this.pv.length) {
|
|
8163
|
-
for (ee = new Array(
|
|
8164
|
-
ee[Z] = ue[Z] - (le[Z] -
|
|
8174
|
+
for (ee = new Array(se.length), J = ee.length, Z = 0; Z < J; Z += 1)
|
|
8175
|
+
ee[Z] = ue[Z] - (le[Z] - se[Z]) * de;
|
|
8165
8176
|
return ee;
|
|
8166
8177
|
}
|
|
8167
|
-
return ue - (le -
|
|
8178
|
+
return ue - (le - se) * de;
|
|
8168
8179
|
} else if (y === "continue") {
|
|
8169
8180
|
var fe = this.getValueAtTime(M / this.comp.globalData.frameRate, 0), pe = this.getValueAtTime((M + 1e-3) / this.comp.globalData.frameRate, 0);
|
|
8170
8181
|
if (this.pv.length) {
|
|
8171
|
-
for (ee = new Array(fe.length),
|
|
8182
|
+
for (ee = new Array(fe.length), J = ee.length, Z = 0; Z < J; Z += 1)
|
|
8172
8183
|
ee[Z] = fe[Z] + (fe[Z] - pe[Z]) * (M - G) / 1e-3;
|
|
8173
8184
|
return ee;
|
|
8174
8185
|
}
|
|
@@ -8183,12 +8194,12 @@ function requireLottie() {
|
|
|
8183
8194
|
return this.pv;
|
|
8184
8195
|
var H = this.comp.renderedFrame / this.comp.globalData.frameRate, G = H - y, te = H + y, M = q > 1 ? (te - G) / (q - 1) : 1, j = 0, F = 0, Z;
|
|
8185
8196
|
this.pv.length ? Z = createTypedArray("float32", this.pv.length) : Z = 0;
|
|
8186
|
-
for (var
|
|
8187
|
-
if (
|
|
8197
|
+
for (var J; j < q; ) {
|
|
8198
|
+
if (J = this.getValueAtTime(G + j * M), this.pv.length)
|
|
8188
8199
|
for (F = 0; F < this.pv.length; F += 1)
|
|
8189
|
-
Z[F] +=
|
|
8200
|
+
Z[F] += J[F];
|
|
8190
8201
|
else
|
|
8191
|
-
Z +=
|
|
8202
|
+
Z += J;
|
|
8192
8203
|
j += 1;
|
|
8193
8204
|
}
|
|
8194
8205
|
if (this.pv.length)
|
|
@@ -8219,16 +8230,16 @@ function requireLottie() {
|
|
|
8219
8230
|
var j = this.r.getValueAtTime(y);
|
|
8220
8231
|
q.rotate(-j * this.r.mult);
|
|
8221
8232
|
} else if (!this.r && this.appliedTransformations < 4) {
|
|
8222
|
-
var F = this.rz.getValueAtTime(y), Z = this.ry.getValueAtTime(y),
|
|
8223
|
-
q.rotateZ(-F * this.rz.mult).rotateY(Z * this.ry.mult).rotateX(
|
|
8233
|
+
var F = this.rz.getValueAtTime(y), Z = this.ry.getValueAtTime(y), J = this.rx.getValueAtTime(y), ee = this.or.getValueAtTime(y);
|
|
8234
|
+
q.rotateZ(-F * this.rz.mult).rotateY(Z * this.ry.mult).rotateX(J * this.rx.mult).rotateZ(-ee[2] * this.or.mult).rotateY(ee[1] * this.or.mult).rotateX(ee[0] * this.or.mult);
|
|
8224
8235
|
}
|
|
8225
8236
|
if (this.data.p && this.data.p.s) {
|
|
8226
|
-
var ie = this.px.getValueAtTime(y),
|
|
8237
|
+
var ie = this.px.getValueAtTime(y), se = this.py.getValueAtTime(y);
|
|
8227
8238
|
if (this.data.p.z) {
|
|
8228
8239
|
var le = this.pz.getValueAtTime(y);
|
|
8229
|
-
q.translate(ie * this.px.mult,
|
|
8240
|
+
q.translate(ie * this.px.mult, se * this.py.mult, -le * this.pz.mult);
|
|
8230
8241
|
} else
|
|
8231
|
-
q.translate(ie * this.px.mult,
|
|
8242
|
+
q.translate(ie * this.px.mult, se * this.py.mult, 0);
|
|
8232
8243
|
} else {
|
|
8233
8244
|
var ue = this.p.getValueAtTime(y);
|
|
8234
8245
|
q.translate(ue[0] * this.p.mult, ue[1] * this.p.mult, -ue[2] * this.p.mult);
|
|
@@ -8289,13 +8300,13 @@ function requireLottie() {
|
|
|
8289
8300
|
pointOnPath: function(q, H) {
|
|
8290
8301
|
var G = this.v;
|
|
8291
8302
|
H !== void 0 && (G = this.getValueAtTime(H, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(G));
|
|
8292
|
-
for (var te = this._segmentsLength, M = te.lengths, j = te.totalLength * q, F = 0, Z = M.length,
|
|
8293
|
-
if (
|
|
8294
|
-
var ie = F,
|
|
8295
|
-
ee = bez.getPointInSegment(G.v[ie], G.v[
|
|
8303
|
+
for (var te = this._segmentsLength, M = te.lengths, j = te.totalLength * q, F = 0, Z = M.length, J = 0, ee; F < Z; ) {
|
|
8304
|
+
if (J + M[F].addedLength > j) {
|
|
8305
|
+
var ie = F, se = G.c && F === Z - 1 ? 0 : F + 1, le = (j - J) / M[F].addedLength;
|
|
8306
|
+
ee = bez.getPointInSegment(G.v[ie], G.v[se], G.o[ie], G.i[se], le, M[F]);
|
|
8296
8307
|
break;
|
|
8297
8308
|
} else
|
|
8298
|
-
|
|
8309
|
+
J += M[F].addedLength;
|
|
8299
8310
|
F += 1;
|
|
8300
8311
|
}
|
|
8301
8312
|
return ee || (ee = G.c ? [G.v[0][0], G.v[0][1]] : [G.v[G._length - 1][0], G.v[G._length - 1][1]]), ee;
|
|
@@ -8305,8 +8316,8 @@ function requireLottie() {
|
|
|
8305
8316
|
var te = this.pointOnPath(q, H), M = this.pointOnPath(q + 1e-3, H), j = M[0] - te[0], F = M[1] - te[1], Z = Math.sqrt(Math.pow(j, 2) + Math.pow(F, 2));
|
|
8306
8317
|
if (Z === 0)
|
|
8307
8318
|
return [0, 0];
|
|
8308
|
-
var
|
|
8309
|
-
return
|
|
8319
|
+
var J = G === "tangent" ? [j / Z, F / Z] : [-F / Z, j / Z];
|
|
8320
|
+
return J;
|
|
8310
8321
|
},
|
|
8311
8322
|
tangentOnPath: function(q, H) {
|
|
8312
8323
|
return this.vectorOnPath(q, H, "tangent");
|
|
@@ -8673,7 +8684,7 @@ function _unsupportedIterableToArray(e, t) {
|
|
|
8673
8684
|
var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"], useLottie = function e(t, r) {
|
|
8674
8685
|
var i = t.animationData, s = t.loop, a = t.autoplay, n = t.initialSegment, l = t.onComplete, h = t.onLoopComplete, d = t.onEnterFrame, V = t.onSegmentStart, K = t.onConfigReady, y = t.onDataReady, q = t.onDataFailed, H = t.onLoadedImages, G = t.onDOMLoaded, te = t.onDestroy;
|
|
8675
8686
|
t.lottieRef, t.renderer, t.name, t.assetsPath, t.rendererSettings;
|
|
8676
|
-
var M = _objectWithoutProperties(t, _excluded$1), j = useState(!1), F = _slicedToArray(j, 2), Z = F[0],
|
|
8687
|
+
var M = _objectWithoutProperties(t, _excluded$1), j = useState(!1), F = _slicedToArray(j, 2), Z = F[0], J = F[1], ee = useRef(), ie = useRef(null), se = function() {
|
|
8677
8688
|
var ce;
|
|
8678
8689
|
(ce = ee.current) === null || ce === void 0 || ce.play();
|
|
8679
8690
|
}, le = function() {
|
|
@@ -8700,27 +8711,27 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
8700
8711
|
}, re = function(ce) {
|
|
8701
8712
|
var me;
|
|
8702
8713
|
(me = ee.current) === null || me === void 0 || me.setSubframe(ce);
|
|
8703
|
-
},
|
|
8714
|
+
}, ae = function(ce) {
|
|
8704
8715
|
var me;
|
|
8705
8716
|
return (me = ee.current) === null || me === void 0 ? void 0 : me.getDuration(ce);
|
|
8706
8717
|
}, W = function() {
|
|
8707
8718
|
var ce;
|
|
8708
8719
|
(ce = ee.current) === null || ce === void 0 || ce.destroy(), ee.current = void 0;
|
|
8709
|
-
},
|
|
8720
|
+
}, Q = function() {
|
|
8710
8721
|
var ce = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, me;
|
|
8711
8722
|
if (ie.current) {
|
|
8712
8723
|
(me = ee.current) === null || me === void 0 || me.destroy();
|
|
8713
8724
|
var ye = _objectSpread2(_objectSpread2(_objectSpread2({}, t), ce), {}, {
|
|
8714
8725
|
container: ie.current
|
|
8715
8726
|
});
|
|
8716
|
-
return ee.current = lottie.loadAnimation(ye),
|
|
8727
|
+
return ee.current = lottie.loadAnimation(ye), J(!!ee.current), function() {
|
|
8717
8728
|
var xe;
|
|
8718
8729
|
(xe = ee.current) === null || xe === void 0 || xe.destroy(), ee.current = void 0;
|
|
8719
8730
|
};
|
|
8720
8731
|
}
|
|
8721
8732
|
};
|
|
8722
8733
|
useEffect(function() {
|
|
8723
|
-
var ne =
|
|
8734
|
+
var ne = Q();
|
|
8724
8735
|
return function() {
|
|
8725
8736
|
return ne?.();
|
|
8726
8737
|
};
|
|
@@ -8796,7 +8807,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
8796
8807
|
}, M));
|
|
8797
8808
|
return {
|
|
8798
8809
|
View: oe,
|
|
8799
|
-
play:
|
|
8810
|
+
play: se,
|
|
8800
8811
|
stop: le,
|
|
8801
8812
|
pause: ue,
|
|
8802
8813
|
setSpeed: de,
|
|
@@ -8805,7 +8816,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
8805
8816
|
setDirection: ve,
|
|
8806
8817
|
playSegments: he,
|
|
8807
8818
|
setSubframe: re,
|
|
8808
|
-
getDuration:
|
|
8819
|
+
getDuration: ae,
|
|
8809
8820
|
destroy: W,
|
|
8810
8821
|
animationContainerRef: ie,
|
|
8811
8822
|
animationLoaded: Z,
|
|
@@ -8859,8 +8870,8 @@ var useInitInteractivity = function e(t) {
|
|
|
8859
8870
|
});
|
|
8860
8871
|
if (F) {
|
|
8861
8872
|
if (F.type === "seek" && F.position && Array.isArray(F.position.x) && Array.isArray(F.position.y) && F.frames.length === 2) {
|
|
8862
|
-
var Z = (te - F.position.x[0]) / (F.position.x[1] - F.position.x[0]),
|
|
8863
|
-
i.playSegments(F.frames, !0), i.goToAndStop(Math.ceil((Z +
|
|
8873
|
+
var Z = (te - F.position.x[0]) / (F.position.x[1] - F.position.x[0]), J = (M - F.position.y[0]) / (F.position.y[1] - F.position.y[0]);
|
|
8874
|
+
i.playSegments(F.frames, !0), i.goToAndStop(Math.ceil((Z + J) / 2 * (F.frames[1] - F.frames[0])), !0);
|
|
8864
8875
|
}
|
|
8865
8876
|
F.type === "loop" && i.playSegments(F.frames, !0), F.type === "play" && (i.isPaused && i.resetSegments(!1), i.playSegments(F.frames)), F.type === "stop" && i.goToAndStop(F.frames[0], !0);
|
|
8866
8877
|
}
|
|
@@ -8890,7 +8901,7 @@ var useInitInteractivity = function e(t) {
|
|
|
8890
8901
|
wrapperRef: l
|
|
8891
8902
|
}), n;
|
|
8892
8903
|
}, _excluded = ["style", "interactivity"], Lottie = function e(t) {
|
|
8893
|
-
var r, i, s, a = t.style, n = t.interactivity, l = _objectWithoutProperties(t, _excluded), h = useLottie(l, a), d = h.View, V = h.play, K = h.stop, y = h.pause, q = h.setSpeed, H = h.goToAndStop, G = h.goToAndPlay, te = h.setDirection, M = h.playSegments, j = h.setSubframe, F = h.getDuration, Z = h.destroy,
|
|
8904
|
+
var r, i, s, a = t.style, n = t.interactivity, l = _objectWithoutProperties(t, _excluded), h = useLottie(l, a), d = h.View, V = h.play, K = h.stop, y = h.pause, q = h.setSpeed, H = h.goToAndStop, G = h.goToAndPlay, te = h.setDirection, M = h.playSegments, j = h.setSubframe, F = h.getDuration, Z = h.destroy, J = h.animationContainerRef, ee = h.animationLoaded, ie = h.animationItem;
|
|
8894
8905
|
return useEffect(function() {
|
|
8895
8906
|
t.lottieRef && (t.lottieRef.current = {
|
|
8896
8907
|
play: V,
|
|
@@ -8904,7 +8915,7 @@ var useInitInteractivity = function e(t) {
|
|
|
8904
8915
|
setSubframe: j,
|
|
8905
8916
|
getDuration: F,
|
|
8906
8917
|
destroy: Z,
|
|
8907
|
-
animationContainerRef:
|
|
8918
|
+
animationContainerRef: J,
|
|
8908
8919
|
animationLoaded: ee,
|
|
8909
8920
|
animationItem: ie
|
|
8910
8921
|
});
|
|
@@ -8922,7 +8933,7 @@ var useInitInteractivity = function e(t) {
|
|
|
8922
8933
|
setSubframe: j,
|
|
8923
8934
|
getDuration: F,
|
|
8924
8935
|
destroy: Z,
|
|
8925
|
-
animationContainerRef:
|
|
8936
|
+
animationContainerRef: J,
|
|
8926
8937
|
animationLoaded: ee,
|
|
8927
8938
|
animationItem: ie
|
|
8928
8939
|
},
|
|
@@ -9049,79 +9060,79 @@ function DataTable({
|
|
|
9049
9060
|
errorContent: K,
|
|
9050
9061
|
isLoading: y = !1
|
|
9051
9062
|
}) {
|
|
9052
|
-
const [q, H] = useState(s), G = i !== void 0 ? i : q, te = normalizeSortState$1(G), M = useMemo(() => new Map(e.map((
|
|
9063
|
+
const [q, H] = useState(s), G = i !== void 0 ? i : q, te = normalizeSortState$1(G), M = useMemo(() => new Map(e.map((J) => [J.key, J])), [e]), j = useMemo(() => {
|
|
9053
9064
|
if (h || !r || te.length === 0) return t;
|
|
9054
|
-
const
|
|
9055
|
-
return
|
|
9056
|
-
for (const
|
|
9057
|
-
const le = M.get(
|
|
9065
|
+
const J = [...t];
|
|
9066
|
+
return J.sort((ee, ie) => {
|
|
9067
|
+
for (const se of te) {
|
|
9068
|
+
const le = M.get(se.columnId);
|
|
9058
9069
|
if (!le) continue;
|
|
9059
9070
|
const de = (le.sortFn ?? ((fe, pe) => {
|
|
9060
9071
|
const ve = le.sortValue?.(fe) ?? fe[le.key], he = le.sortValue?.(pe) ?? pe[le.key];
|
|
9061
9072
|
return compareValues(ve, he);
|
|
9062
9073
|
}))(ee, ie);
|
|
9063
|
-
if (de !== 0) return
|
|
9074
|
+
if (de !== 0) return se.direction === "asc" ? de : -de;
|
|
9064
9075
|
}
|
|
9065
9076
|
return 0;
|
|
9066
|
-
}),
|
|
9067
|
-
}, [t, h, te, M, r]), F = (
|
|
9068
|
-
i === void 0 && H(
|
|
9069
|
-
}, Z = (
|
|
9070
|
-
if (!(r && (
|
|
9071
|
-
const
|
|
9077
|
+
}), J;
|
|
9078
|
+
}, [t, h, te, M, r]), F = (J) => {
|
|
9079
|
+
i === void 0 && H(J), a?.(J);
|
|
9080
|
+
}, Z = (J, ee) => {
|
|
9081
|
+
if (!(r && (J.sortable ?? !!(J.sortFn || J.sortValue)))) return;
|
|
9082
|
+
const se = normalizeSortState$1(G), le = se.find((de) => de.columnId === J.key), ue = le?.direction === "asc" ? "desc" : le?.direction === "desc" ? null : "asc";
|
|
9072
9083
|
if (l === "multi" && ee) {
|
|
9073
|
-
const de =
|
|
9074
|
-
ue && de.push({ columnId:
|
|
9084
|
+
const de = se.filter((fe) => fe.columnId !== J.key);
|
|
9085
|
+
ue && de.push({ columnId: J.key, direction: ue }), F(de.length ? de : null);
|
|
9075
9086
|
return;
|
|
9076
9087
|
}
|
|
9077
9088
|
if (!ue) {
|
|
9078
9089
|
F(null);
|
|
9079
9090
|
return;
|
|
9080
9091
|
}
|
|
9081
|
-
F({ columnId:
|
|
9092
|
+
F({ columnId: J.key, direction: ue });
|
|
9082
9093
|
};
|
|
9083
9094
|
return /* @__PURE__ */ jsx("div", { className: "oniratec-data-table", children: /* @__PURE__ */ jsxs("table", { className: "oniratec-data-table__table", children: [
|
|
9084
|
-
/* @__PURE__ */ jsx("thead", { className: "oniratec-data-table__head", children: /* @__PURE__ */ jsx("tr", { className: "oniratec-data-table__head-row", children: e.map((
|
|
9085
|
-
const ee = r && (
|
|
9095
|
+
/* @__PURE__ */ jsx("thead", { className: "oniratec-data-table__head", children: /* @__PURE__ */ jsx("tr", { className: "oniratec-data-table__head-row", children: e.map((J) => {
|
|
9096
|
+
const ee = r && (J.sortable ?? !!(J.sortFn || J.sortValue)), se = te.find((ue) => ue.columnId === J.key)?.direction;
|
|
9086
9097
|
return /* @__PURE__ */ jsx(
|
|
9087
9098
|
"th",
|
|
9088
9099
|
{
|
|
9089
9100
|
scope: "col",
|
|
9090
|
-
"aria-sort": ee ?
|
|
9091
|
-
className: cn("oniratec-data-table__th",
|
|
9101
|
+
"aria-sort": ee ? se === "asc" ? "ascending" : se === "desc" ? "descending" : "none" : void 0,
|
|
9102
|
+
className: cn("oniratec-data-table__th", J.headerClassName),
|
|
9092
9103
|
children: ee ? /* @__PURE__ */ jsxs(
|
|
9093
9104
|
"button",
|
|
9094
9105
|
{
|
|
9095
9106
|
type: "button",
|
|
9096
|
-
onClick: (ue) => Z(
|
|
9107
|
+
onClick: (ue) => Z(J, ue.shiftKey),
|
|
9097
9108
|
className: "oniratec-data-table__sort-button",
|
|
9098
9109
|
children: [
|
|
9099
|
-
/* @__PURE__ */ jsx("span", { className: "flex-1", children:
|
|
9110
|
+
/* @__PURE__ */ jsx("span", { className: "flex-1", children: J.header }),
|
|
9100
9111
|
/* @__PURE__ */ jsxs(
|
|
9101
9112
|
"span",
|
|
9102
9113
|
{
|
|
9103
9114
|
className: cn(
|
|
9104
9115
|
"oniratec-data-table__sort-icon",
|
|
9105
|
-
|
|
9106
|
-
!
|
|
9107
|
-
!
|
|
9116
|
+
se && "oniratec-data-table__sort-icon--active",
|
|
9117
|
+
!se && n === "placeholder" && "opacity-0",
|
|
9118
|
+
!se && n === "hidden" && "hidden"
|
|
9108
9119
|
),
|
|
9109
9120
|
"aria-hidden": "true",
|
|
9110
9121
|
children: [
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
!
|
|
9122
|
+
se === "asc" && /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" }),
|
|
9123
|
+
se === "desc" && /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" }),
|
|
9124
|
+
!se && n !== "hidden" && /* @__PURE__ */ jsx(ChevronsUpDown, { className: "h-4 w-4" })
|
|
9114
9125
|
]
|
|
9115
9126
|
}
|
|
9116
9127
|
)
|
|
9117
9128
|
]
|
|
9118
9129
|
}
|
|
9119
|
-
) :
|
|
9130
|
+
) : J.header
|
|
9120
9131
|
},
|
|
9121
|
-
|
|
9132
|
+
J.key
|
|
9122
9133
|
);
|
|
9123
9134
|
}) }) }),
|
|
9124
|
-
/* @__PURE__ */ jsx("tbody", { className: "oniratec-data-table__divider", children: K && !y ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: e.length, className: "oniratec-data-table__empty", children: K }) }) : y ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: e.length, className: "oniratec-data-table__empty", children: V ?? "Cargando..." }) }) : j.length === 0 ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: e.length, className: "oniratec-data-table__empty", children: d ?? "No hay datos disponibles." }) }) : j.map((
|
|
9135
|
+
/* @__PURE__ */ jsx("tbody", { className: "oniratec-data-table__divider", children: K && !y ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: e.length, className: "oniratec-data-table__empty", children: K }) }) : y ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: e.length, className: "oniratec-data-table__empty", children: V ?? "Cargando..." }) }) : j.length === 0 ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: e.length, className: "oniratec-data-table__empty", children: d ?? "No hay datos disponibles." }) }) : j.map((J, ee) => /* @__PURE__ */ jsx("tr", { className: "oniratec-data-table__row", children: e.map((ie) => /* @__PURE__ */ jsx("td", { className: cn("oniratec-data-table__td", ie.className), children: ie.render(J) }, ie.key)) }, ee)) })
|
|
9125
9136
|
] }) });
|
|
9126
9137
|
}
|
|
9127
9138
|
const DEFAULT_PAGE_SIZES = [5, 10, 25, 50], PageSizeSelector = ({ value: e, onChange: t, options: r = DEFAULT_PAGE_SIZES }) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-[color:var(--oniratec-label-secondary)]", children: [
|
|
@@ -9203,7 +9214,7 @@ function AsyncSelect({
|
|
|
9203
9214
|
contentClassName: G,
|
|
9204
9215
|
triggerClassName: te
|
|
9205
9216
|
}) {
|
|
9206
|
-
const [M, j] = React.useState(!1), [F, Z] = React.useState(""), [
|
|
9217
|
+
const [M, j] = React.useState(!1), [F, Z] = React.useState(""), [J, ee] = React.useState(!1), [ie, se] = React.useState([]), [le, ue] = React.useState(""), de = useDebouncedValue(F, l), fe = de.trim().length >= n, pe = React.useRef(null);
|
|
9207
9218
|
React.useEffect(() => {
|
|
9208
9219
|
const he = (re) => {
|
|
9209
9220
|
pe.current && (pe.current.contains(re.target) || j(!1));
|
|
@@ -9214,14 +9225,14 @@ function AsyncSelect({
|
|
|
9214
9225
|
return (async () => {
|
|
9215
9226
|
if (M) {
|
|
9216
9227
|
if (!fe) {
|
|
9217
|
-
|
|
9228
|
+
se([]);
|
|
9218
9229
|
return;
|
|
9219
9230
|
}
|
|
9220
9231
|
ee(!0);
|
|
9221
9232
|
try {
|
|
9222
|
-
const
|
|
9233
|
+
const ae = await h(de.trim());
|
|
9223
9234
|
if (!he) return;
|
|
9224
|
-
ae
|
|
9235
|
+
se(ae ?? []);
|
|
9225
9236
|
} finally {
|
|
9226
9237
|
he && ee(!1);
|
|
9227
9238
|
}
|
|
@@ -9278,7 +9289,7 @@ function AsyncSelect({
|
|
|
9278
9289
|
autoFocus: !0
|
|
9279
9290
|
}
|
|
9280
9291
|
),
|
|
9281
|
-
|
|
9292
|
+
J && /* @__PURE__ */ jsx(Loader2, { className: "oniratec-async-select__loader" })
|
|
9282
9293
|
] }),
|
|
9283
9294
|
/* @__PURE__ */ jsxs("div", { className: "oniratec-async-select__viewport", children: [
|
|
9284
9295
|
!fe && /* @__PURE__ */ jsxs("div", { className: "oniratec-async-select__hint", children: [
|
|
@@ -9286,8 +9297,8 @@ function AsyncSelect({
|
|
|
9286
9297
|
n,
|
|
9287
9298
|
" caracteres"
|
|
9288
9299
|
] }),
|
|
9289
|
-
fe &&
|
|
9290
|
-
fe && !
|
|
9300
|
+
fe && J && /* @__PURE__ */ jsx("div", { className: "oniratec-async-select__hint", children: y }),
|
|
9301
|
+
fe && !J && ie.length === 0 && /* @__PURE__ */ jsxs("div", { className: "oniratec-async-select__empty", children: [
|
|
9291
9302
|
/* @__PURE__ */ jsx("span", { children: K }),
|
|
9292
9303
|
q && H && /* @__PURE__ */ jsx(
|
|
9293
9304
|
"button",
|
|
@@ -9300,7 +9311,7 @@ function AsyncSelect({
|
|
|
9300
9311
|
)
|
|
9301
9312
|
] }),
|
|
9302
9313
|
ie.length > 0 && /* @__PURE__ */ jsx("ul", { className: "oniratec-async-select__list", children: ie.map((he) => {
|
|
9303
|
-
const re = d(he),
|
|
9314
|
+
const re = d(he), ae = V(he), W = re === e;
|
|
9304
9315
|
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
|
|
9305
9316
|
"button",
|
|
9306
9317
|
{
|
|
@@ -9310,10 +9321,10 @@ function AsyncSelect({
|
|
|
9310
9321
|
W && "oniratec-async-select__item--selected"
|
|
9311
9322
|
),
|
|
9312
9323
|
onClick: () => {
|
|
9313
|
-
t(re), ue(
|
|
9324
|
+
t(re), ue(ae), j(!1), Z("");
|
|
9314
9325
|
},
|
|
9315
9326
|
children: [
|
|
9316
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
9327
|
+
/* @__PURE__ */ jsx("span", { children: ae }),
|
|
9317
9328
|
W && /* @__PURE__ */ jsx("span", { className: "oniratec-async-select__indicator", children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) })
|
|
9318
9329
|
]
|
|
9319
9330
|
}
|
|
@@ -12277,16 +12288,16 @@ function useWatch(e) {
|
|
|
12277
12288
|
const Z = r._getWatch(i, h.current);
|
|
12278
12289
|
return d.current ? d.current(Z) : Z;
|
|
12279
12290
|
}), G = React__default.useCallback((Z) => {
|
|
12280
|
-
const
|
|
12281
|
-
return d.current ? d.current(
|
|
12291
|
+
const J = generateWatchOutput(i, r._names, Z || r._formValues, !1, h.current);
|
|
12292
|
+
return d.current ? d.current(J) : J;
|
|
12282
12293
|
}, [r._formValues, r._names, i]), te = React__default.useCallback((Z) => {
|
|
12283
12294
|
if (!a) {
|
|
12284
|
-
const
|
|
12295
|
+
const J = generateWatchOutput(i, r._names, Z || r._formValues, !1, h.current);
|
|
12285
12296
|
if (d.current) {
|
|
12286
|
-
const ee = d.current(
|
|
12297
|
+
const ee = d.current(J);
|
|
12287
12298
|
deepEqual(ee, V.current) || (H(ee), V.current = ee);
|
|
12288
12299
|
} else
|
|
12289
|
-
H(
|
|
12300
|
+
H(J);
|
|
12290
12301
|
}
|
|
12291
12302
|
}, [r._formValues, r._names, a, i]);
|
|
12292
12303
|
useIsomorphicLayoutEffect(() => ((K.current !== r || !deepEqual(y.current, i)) && (K.current = r, y.current = i, te()), r._subscribe({
|
|
@@ -12357,8 +12368,8 @@ function useController(e) {
|
|
|
12357
12368
|
},
|
|
12358
12369
|
type: EVENTS.BLUR
|
|
12359
12370
|
}), [r, s._formValues]), j = React__default.useCallback((Z) => {
|
|
12360
|
-
const
|
|
12361
|
-
|
|
12371
|
+
const J = get(s._fields, r);
|
|
12372
|
+
J && J._f && Z && (J._f.ref = {
|
|
12362
12373
|
focus: () => isFunction(Z.focus) && Z.focus(),
|
|
12363
12374
|
select: () => isFunction(Z.select) && Z.select(),
|
|
12364
12375
|
setCustomValidity: (ee) => isFunction(Z.setCustomValidity) && Z.setCustomValidity(ee),
|
|
@@ -12373,14 +12384,14 @@ function useController(e) {
|
|
|
12373
12384
|
ref: j
|
|
12374
12385
|
}), [r, i, K.disabled, te, M, j, V]);
|
|
12375
12386
|
return React__default.useEffect(() => {
|
|
12376
|
-
const Z = s._options.shouldUnregister || a,
|
|
12377
|
-
|
|
12387
|
+
const Z = s._options.shouldUnregister || a, J = q.current;
|
|
12388
|
+
J && J !== r && !h && s.unregister(J), s.register(r, {
|
|
12378
12389
|
...y.current.rules,
|
|
12379
12390
|
...isBoolean(y.current.disabled) ? { disabled: y.current.disabled } : {}
|
|
12380
12391
|
});
|
|
12381
|
-
const ee = (ie,
|
|
12392
|
+
const ee = (ie, se) => {
|
|
12382
12393
|
const le = get(s._fields, ie);
|
|
12383
|
-
le && le._f && (le._f.mount =
|
|
12394
|
+
le && le._f && (le._f.mount = se);
|
|
12384
12395
|
};
|
|
12385
12396
|
if (ee(r, !0), Z) {
|
|
12386
12397
|
const ie = cloneObject(get(s._options.defaultValues, r, y.current.defaultValue));
|