@zolaha/react-noto-animated-emoji 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.es.js +1195 -1269
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/skin-tones.d.ts +0 -19
package/dist/index.es.js
CHANGED
|
@@ -184,22 +184,22 @@ var lottie$1 = { exports: {} };
|
|
|
184
184
|
};
|
|
185
185
|
}();
|
|
186
186
|
function HSVtoRGB(t, e, r) {
|
|
187
|
-
var i, s, a, n, f, o, l,
|
|
188
|
-
switch (n = Math.floor(t * 6), f = t * 6 - n, o = r * (1 - e), l = r * (1 - f * e),
|
|
187
|
+
var i, s, a, n, f, o, l, v;
|
|
188
|
+
switch (n = Math.floor(t * 6), f = t * 6 - n, o = r * (1 - e), l = r * (1 - f * e), v = r * (1 - (1 - f) * e), n % 6) {
|
|
189
189
|
case 0:
|
|
190
|
-
i = r, s =
|
|
190
|
+
i = r, s = v, a = o;
|
|
191
191
|
break;
|
|
192
192
|
case 1:
|
|
193
193
|
i = l, s = r, a = o;
|
|
194
194
|
break;
|
|
195
195
|
case 2:
|
|
196
|
-
i = o, s = r, a =
|
|
196
|
+
i = o, s = r, a = v;
|
|
197
197
|
break;
|
|
198
198
|
case 3:
|
|
199
199
|
i = o, s = l, a = r;
|
|
200
200
|
break;
|
|
201
201
|
case 4:
|
|
202
|
-
i =
|
|
202
|
+
i = v, s = o, a = r;
|
|
203
203
|
break;
|
|
204
204
|
case 5:
|
|
205
205
|
i = r, s = o, a = l;
|
|
@@ -303,11 +303,11 @@ var lottie$1 = { exports: {} };
|
|
|
303
303
|
i || (i = n(function(b) {
|
|
304
304
|
function g() {
|
|
305
305
|
function E(V, P) {
|
|
306
|
-
var
|
|
307
|
-
for (
|
|
308
|
-
if (
|
|
309
|
-
if (
|
|
310
|
-
var N =
|
|
306
|
+
var A, y, S = V.length, F, k, B, z;
|
|
307
|
+
for (y = 0; y < S; y += 1)
|
|
308
|
+
if (A = V[y], "ks" in A && !A.completed) {
|
|
309
|
+
if (A.completed = !0, A.hasMask) {
|
|
310
|
+
var N = A.masksProperties;
|
|
311
311
|
for (k = N.length, F = 0; F < k; F += 1)
|
|
312
312
|
if (N[F].pt.k.i)
|
|
313
313
|
x(N[F].pt.k);
|
|
@@ -315,79 +315,79 @@ var lottie$1 = { exports: {} };
|
|
|
315
315
|
for (z = N[F].pt.k.length, B = 0; B < z; B += 1)
|
|
316
316
|
N[F].pt.k[B].s && x(N[F].pt.k[B].s[0]), N[F].pt.k[B].e && x(N[F].pt.k[B].e[0]);
|
|
317
317
|
}
|
|
318
|
-
|
|
318
|
+
A.ty === 0 ? (A.layers = h(A.refId, P), E(A.layers, P)) : A.ty === 4 ? m(A.shapes) : A.ty === 5 && R(A);
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
function c(V, P) {
|
|
322
322
|
if (V) {
|
|
323
|
-
var
|
|
324
|
-
for (
|
|
325
|
-
V[
|
|
323
|
+
var A = 0, y = V.length;
|
|
324
|
+
for (A = 0; A < y; A += 1)
|
|
325
|
+
V[A].t === 1 && (V[A].data.layers = h(V[A].data.refId, P), E(V[A].data.layers, P));
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
function u(V, P) {
|
|
329
|
-
for (var
|
|
330
|
-
if (P[
|
|
331
|
-
return P[
|
|
332
|
-
|
|
329
|
+
for (var A = 0, y = P.length; A < y; ) {
|
|
330
|
+
if (P[A].id === V)
|
|
331
|
+
return P[A];
|
|
332
|
+
A += 1;
|
|
333
333
|
}
|
|
334
334
|
return null;
|
|
335
335
|
}
|
|
336
336
|
function h(V, P) {
|
|
337
|
-
var
|
|
338
|
-
return
|
|
337
|
+
var A = u(V, P);
|
|
338
|
+
return A ? A.layers.__used ? JSON.parse(JSON.stringify(A.layers)) : (A.layers.__used = !0, A.layers) : null;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
var P,
|
|
342
|
-
for (P =
|
|
340
|
+
function m(V) {
|
|
341
|
+
var P, A = V.length, y, S;
|
|
342
|
+
for (P = A - 1; P >= 0; P -= 1)
|
|
343
343
|
if (V[P].ty === "sh")
|
|
344
344
|
if (V[P].ks.k.i)
|
|
345
345
|
x(V[P].ks.k);
|
|
346
346
|
else
|
|
347
|
-
for (
|
|
348
|
-
V[P].ks.k[
|
|
349
|
-
else V[P].ty === "gr" &&
|
|
347
|
+
for (S = V[P].ks.k.length, y = 0; y < S; y += 1)
|
|
348
|
+
V[P].ks.k[y].s && x(V[P].ks.k[y].s[0]), V[P].ks.k[y].e && x(V[P].ks.k[y].e[0]);
|
|
349
|
+
else V[P].ty === "gr" && m(V[P].it);
|
|
350
350
|
}
|
|
351
351
|
function x(V) {
|
|
352
|
-
var P,
|
|
353
|
-
for (P = 0; P <
|
|
352
|
+
var P, A = V.i.length;
|
|
353
|
+
for (P = 0; P < A; P += 1)
|
|
354
354
|
V.i[P][0] += V.v[P][0], V.i[P][1] += V.v[P][1], V.o[P][0] += V.v[P][0], V.o[P][1] += V.v[P][1];
|
|
355
355
|
}
|
|
356
356
|
function C(V, P) {
|
|
357
|
-
var
|
|
358
|
-
return V[0] >
|
|
357
|
+
var A = P ? P.split(".") : [100, 100, 100];
|
|
358
|
+
return V[0] > A[0] ? !0 : A[0] > V[0] ? !1 : V[1] > A[1] ? !0 : A[1] > V[1] ? !1 : V[2] > A[2] ? !0 : A[2] > V[2] ? !1 : null;
|
|
359
359
|
}
|
|
360
|
-
var
|
|
360
|
+
var T = /* @__PURE__ */ function() {
|
|
361
361
|
var V = [4, 4, 14];
|
|
362
|
-
function P(
|
|
363
|
-
var
|
|
364
|
-
|
|
362
|
+
function P(y) {
|
|
363
|
+
var S = y.t.d;
|
|
364
|
+
y.t.d = {
|
|
365
365
|
k: [{
|
|
366
|
-
s:
|
|
366
|
+
s: S,
|
|
367
367
|
t: 0
|
|
368
368
|
}]
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
var
|
|
373
|
-
for (
|
|
374
|
-
|
|
371
|
+
function A(y) {
|
|
372
|
+
var S, F = y.length;
|
|
373
|
+
for (S = 0; S < F; S += 1)
|
|
374
|
+
y[S].ty === 5 && P(y[S]);
|
|
375
375
|
}
|
|
376
|
-
return function(
|
|
377
|
-
if (C(V,
|
|
378
|
-
var
|
|
379
|
-
for (
|
|
380
|
-
|
|
376
|
+
return function(y) {
|
|
377
|
+
if (C(V, y.v) && (A(y.layers), y.assets)) {
|
|
378
|
+
var S, F = y.assets.length;
|
|
379
|
+
for (S = 0; S < F; S += 1)
|
|
380
|
+
y.assets[S].layers && A(y.assets[S].layers);
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
383
|
}(), M = /* @__PURE__ */ function() {
|
|
384
384
|
var V = [4, 7, 99];
|
|
385
385
|
return function(P) {
|
|
386
386
|
if (P.chars && !C(V, P.v)) {
|
|
387
|
-
var
|
|
388
|
-
for (
|
|
389
|
-
var
|
|
390
|
-
|
|
387
|
+
var A, y = P.chars.length;
|
|
388
|
+
for (A = 0; A < y; A += 1) {
|
|
389
|
+
var S = P.chars[A];
|
|
390
|
+
S.data && S.data.shapes && (m(S.data.shapes), S.data.ip = 0, S.data.op = 99999, S.data.st = 0, S.data.sr = 1, S.data.ks = {
|
|
391
391
|
p: {
|
|
392
392
|
k: [0, 0],
|
|
393
393
|
a: 0
|
|
@@ -408,9 +408,9 @@ var lottie$1 = { exports: {} };
|
|
|
408
408
|
k: 100,
|
|
409
409
|
a: 0
|
|
410
410
|
}
|
|
411
|
-
}, P.chars[
|
|
411
|
+
}, P.chars[A].t || (S.data.shapes.push({
|
|
412
412
|
ty: "no"
|
|
413
|
-
}),
|
|
413
|
+
}), S.data.shapes[0].it.push({
|
|
414
414
|
p: {
|
|
415
415
|
k: [0, 0],
|
|
416
416
|
a: 0
|
|
@@ -446,75 +446,75 @@ var lottie$1 = { exports: {} };
|
|
|
446
446
|
};
|
|
447
447
|
}(), w = /* @__PURE__ */ function() {
|
|
448
448
|
var V = [5, 7, 15];
|
|
449
|
-
function P(
|
|
450
|
-
var
|
|
451
|
-
typeof
|
|
449
|
+
function P(y) {
|
|
450
|
+
var S = y.t.p;
|
|
451
|
+
typeof S.a == "number" && (S.a = {
|
|
452
452
|
a: 0,
|
|
453
|
-
k:
|
|
454
|
-
}), typeof
|
|
453
|
+
k: S.a
|
|
454
|
+
}), typeof S.p == "number" && (S.p = {
|
|
455
455
|
a: 0,
|
|
456
|
-
k:
|
|
457
|
-
}), typeof
|
|
456
|
+
k: S.p
|
|
457
|
+
}), typeof S.r == "number" && (S.r = {
|
|
458
458
|
a: 0,
|
|
459
|
-
k:
|
|
459
|
+
k: S.r
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
var
|
|
464
|
-
for (
|
|
465
|
-
|
|
462
|
+
function A(y) {
|
|
463
|
+
var S, F = y.length;
|
|
464
|
+
for (S = 0; S < F; S += 1)
|
|
465
|
+
y[S].ty === 5 && P(y[S]);
|
|
466
466
|
}
|
|
467
|
-
return function(
|
|
468
|
-
if (C(V,
|
|
469
|
-
var
|
|
470
|
-
for (
|
|
471
|
-
|
|
467
|
+
return function(y) {
|
|
468
|
+
if (C(V, y.v) && (A(y.layers), y.assets)) {
|
|
469
|
+
var S, F = y.assets.length;
|
|
470
|
+
for (S = 0; S < F; S += 1)
|
|
471
|
+
y.assets[S].layers && A(y.assets[S].layers);
|
|
472
472
|
}
|
|
473
473
|
};
|
|
474
474
|
}(), D = /* @__PURE__ */ function() {
|
|
475
475
|
var V = [4, 1, 9];
|
|
476
|
-
function P(
|
|
477
|
-
var
|
|
478
|
-
for (
|
|
479
|
-
if (
|
|
480
|
-
P(
|
|
481
|
-
else if (
|
|
482
|
-
if (
|
|
483
|
-
for (B =
|
|
484
|
-
|
|
476
|
+
function P(y) {
|
|
477
|
+
var S, F = y.length, k, B;
|
|
478
|
+
for (S = 0; S < F; S += 1)
|
|
479
|
+
if (y[S].ty === "gr")
|
|
480
|
+
P(y[S].it);
|
|
481
|
+
else if (y[S].ty === "fl" || y[S].ty === "st")
|
|
482
|
+
if (y[S].c.k && y[S].c.k[0].i)
|
|
483
|
+
for (B = y[S].c.k.length, k = 0; k < B; k += 1)
|
|
484
|
+
y[S].c.k[k].s && (y[S].c.k[k].s[0] /= 255, y[S].c.k[k].s[1] /= 255, y[S].c.k[k].s[2] /= 255, y[S].c.k[k].s[3] /= 255), y[S].c.k[k].e && (y[S].c.k[k].e[0] /= 255, y[S].c.k[k].e[1] /= 255, y[S].c.k[k].e[2] /= 255, y[S].c.k[k].e[3] /= 255);
|
|
485
485
|
else
|
|
486
|
-
|
|
486
|
+
y[S].c.k[0] /= 255, y[S].c.k[1] /= 255, y[S].c.k[2] /= 255, y[S].c.k[3] /= 255;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
var
|
|
490
|
-
for (
|
|
491
|
-
|
|
488
|
+
function A(y) {
|
|
489
|
+
var S, F = y.length;
|
|
490
|
+
for (S = 0; S < F; S += 1)
|
|
491
|
+
y[S].ty === 4 && P(y[S].shapes);
|
|
492
492
|
}
|
|
493
|
-
return function(
|
|
494
|
-
if (C(V,
|
|
495
|
-
var
|
|
496
|
-
for (
|
|
497
|
-
|
|
493
|
+
return function(y) {
|
|
494
|
+
if (C(V, y.v) && (A(y.layers), y.assets)) {
|
|
495
|
+
var S, F = y.assets.length;
|
|
496
|
+
for (S = 0; S < F; S += 1)
|
|
497
|
+
y.assets[S].layers && A(y.assets[S].layers);
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
500
|
}(), L = /* @__PURE__ */ function() {
|
|
501
501
|
var V = [4, 4, 18];
|
|
502
|
-
function P(
|
|
503
|
-
var
|
|
504
|
-
for (
|
|
505
|
-
if (
|
|
506
|
-
if (
|
|
507
|
-
|
|
502
|
+
function P(y) {
|
|
503
|
+
var S, F = y.length, k, B;
|
|
504
|
+
for (S = F - 1; S >= 0; S -= 1)
|
|
505
|
+
if (y[S].ty === "sh")
|
|
506
|
+
if (y[S].ks.k.i)
|
|
507
|
+
y[S].ks.k.c = y[S].closed;
|
|
508
508
|
else
|
|
509
|
-
for (B =
|
|
510
|
-
|
|
511
|
-
else
|
|
509
|
+
for (B = y[S].ks.k.length, k = 0; k < B; k += 1)
|
|
510
|
+
y[S].ks.k[k].s && (y[S].ks.k[k].s[0].c = y[S].closed), y[S].ks.k[k].e && (y[S].ks.k[k].e[0].c = y[S].closed);
|
|
511
|
+
else y[S].ty === "gr" && P(y[S].it);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
var
|
|
513
|
+
function A(y) {
|
|
514
|
+
var S, F, k = y.length, B, z, N, j;
|
|
515
515
|
for (F = 0; F < k; F += 1) {
|
|
516
|
-
if (
|
|
517
|
-
var H =
|
|
516
|
+
if (S = y[F], S.hasMask) {
|
|
517
|
+
var H = S.masksProperties;
|
|
518
518
|
for (z = H.length, B = 0; B < z; B += 1)
|
|
519
519
|
if (H[B].pt.k.i)
|
|
520
520
|
H[B].pt.k.c = H[B].cl;
|
|
@@ -522,19 +522,19 @@ var lottie$1 = { exports: {} };
|
|
|
522
522
|
for (j = H[B].pt.k.length, N = 0; N < j; N += 1)
|
|
523
523
|
H[B].pt.k[N].s && (H[B].pt.k[N].s[0].c = H[B].cl), H[B].pt.k[N].e && (H[B].pt.k[N].e[0].c = H[B].cl);
|
|
524
524
|
}
|
|
525
|
-
|
|
525
|
+
S.ty === 4 && P(S.shapes);
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
return function(
|
|
529
|
-
if (C(V,
|
|
530
|
-
var
|
|
531
|
-
for (
|
|
532
|
-
|
|
528
|
+
return function(y) {
|
|
529
|
+
if (C(V, y.v) && (A(y.layers), y.assets)) {
|
|
530
|
+
var S, F = y.assets.length;
|
|
531
|
+
for (S = 0; S < F; S += 1)
|
|
532
|
+
y.assets[S].layers && A(y.assets[S].layers);
|
|
533
533
|
}
|
|
534
534
|
};
|
|
535
535
|
}();
|
|
536
536
|
function I(V) {
|
|
537
|
-
V.__complete || (D(V),
|
|
537
|
+
V.__complete || (D(V), T(V), M(V), w(V), L(V), E(V.layers, V.assets), c(V.chars, V.assets), V.__complete = !0);
|
|
538
538
|
}
|
|
539
539
|
function R(V) {
|
|
540
540
|
V.t.a.length === 0 && "m" in V.t.p;
|
|
@@ -547,29 +547,29 @@ var lottie$1 = { exports: {} };
|
|
|
547
547
|
var h = u.getResponseHeader("content-type");
|
|
548
548
|
return h && u.responseType === "json" && h.indexOf("json") !== -1 || u.response && _typeof$5(u.response) === "object" ? u.response : u.response && typeof u.response == "string" ? JSON.parse(u.response) : u.responseText ? JSON.parse(u.responseText) : null;
|
|
549
549
|
}
|
|
550
|
-
function c(u, h,
|
|
551
|
-
var C,
|
|
550
|
+
function c(u, h, m, x) {
|
|
551
|
+
var C, T = new XMLHttpRequest();
|
|
552
552
|
try {
|
|
553
|
-
|
|
553
|
+
T.responseType = "json";
|
|
554
554
|
} catch {
|
|
555
555
|
}
|
|
556
|
-
|
|
557
|
-
if (
|
|
558
|
-
if (
|
|
559
|
-
C = E(
|
|
556
|
+
T.onreadystatechange = function() {
|
|
557
|
+
if (T.readyState === 4)
|
|
558
|
+
if (T.status === 200)
|
|
559
|
+
C = E(T), m(C);
|
|
560
560
|
else
|
|
561
561
|
try {
|
|
562
|
-
C = E(
|
|
562
|
+
C = E(T), m(C);
|
|
563
563
|
} catch (M) {
|
|
564
564
|
x && x(M);
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
567
|
try {
|
|
568
|
-
|
|
568
|
+
T.open(["G", "E", "T"].join(""), u, !0);
|
|
569
569
|
} catch {
|
|
570
|
-
|
|
570
|
+
T.open(["G", "E", "T"].join(""), h + "/" + u, !0);
|
|
571
571
|
}
|
|
572
|
-
|
|
572
|
+
T.send();
|
|
573
573
|
}
|
|
574
574
|
return {
|
|
575
575
|
load: c
|
|
@@ -588,10 +588,10 @@ var lottie$1 = { exports: {} };
|
|
|
588
588
|
});
|
|
589
589
|
});
|
|
590
590
|
else if (b.data.type === "complete") {
|
|
591
|
-
var
|
|
592
|
-
a.dataManager.completeData(
|
|
591
|
+
var d = b.data.animation;
|
|
592
|
+
a.dataManager.completeData(d), a.postMessage({
|
|
593
593
|
id: b.data.id,
|
|
594
|
-
payload:
|
|
594
|
+
payload: d,
|
|
595
595
|
status: "success"
|
|
596
596
|
});
|
|
597
597
|
} else b.data.type === "loadData" && a.assetLoader.load(b.data.path, b.data.fullPath, function(E) {
|
|
@@ -607,8 +607,8 @@ var lottie$1 = { exports: {} };
|
|
|
607
607
|
});
|
|
608
608
|
});
|
|
609
609
|
}), i.onmessage = function(p) {
|
|
610
|
-
var b = p.data, g = b.id,
|
|
611
|
-
e[g] = null, b.status === "success" ?
|
|
610
|
+
var b = p.data, g = b.id, d = e[g];
|
|
611
|
+
e[g] = null, b.status === "success" ? d.onComplete(b.payload) : d.onError && d.onError();
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
614
|
function o(p, b) {
|
|
@@ -621,37 +621,37 @@ var lottie$1 = { exports: {} };
|
|
|
621
621
|
}
|
|
622
622
|
function l(p, b, g) {
|
|
623
623
|
f();
|
|
624
|
-
var
|
|
624
|
+
var d = o(b, g);
|
|
625
625
|
i.postMessage({
|
|
626
626
|
type: "loadAnimation",
|
|
627
627
|
path: p,
|
|
628
628
|
fullPath: window.location.origin + window.location.pathname,
|
|
629
|
-
id:
|
|
629
|
+
id: d
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function v(p, b, g) {
|
|
633
633
|
f();
|
|
634
|
-
var
|
|
634
|
+
var d = o(b, g);
|
|
635
635
|
i.postMessage({
|
|
636
636
|
type: "loadData",
|
|
637
637
|
path: p,
|
|
638
638
|
fullPath: window.location.origin + window.location.pathname,
|
|
639
|
-
id:
|
|
639
|
+
id: d
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function _(p, b, g) {
|
|
643
643
|
f();
|
|
644
|
-
var
|
|
644
|
+
var d = o(b, g);
|
|
645
645
|
i.postMessage({
|
|
646
646
|
type: "complete",
|
|
647
647
|
animation: p,
|
|
648
|
-
id:
|
|
648
|
+
id: d
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
651
|
return {
|
|
652
652
|
loadAnimation: l,
|
|
653
|
-
loadData:
|
|
654
|
-
completeAnimation:
|
|
653
|
+
loadData: v,
|
|
654
|
+
completeAnimation: _
|
|
655
655
|
};
|
|
656
656
|
}(), ImagePreloader = function() {
|
|
657
657
|
var t = function() {
|
|
@@ -667,67 +667,67 @@ var lottie$1 = { exports: {} };
|
|
|
667
667
|
this.loadedFootagesCount += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
|
|
668
668
|
}
|
|
669
669
|
function i(c, u, h) {
|
|
670
|
-
var
|
|
670
|
+
var m = "";
|
|
671
671
|
if (c.e)
|
|
672
|
-
|
|
672
|
+
m = c.p;
|
|
673
673
|
else if (u) {
|
|
674
674
|
var x = c.p;
|
|
675
|
-
x.indexOf("images/") !== -1 && (x = x.split("/")[1]),
|
|
675
|
+
x.indexOf("images/") !== -1 && (x = x.split("/")[1]), m = u + x;
|
|
676
676
|
} else
|
|
677
|
-
|
|
678
|
-
return
|
|
677
|
+
m = h, m += c.u ? c.u : "", m += c.p;
|
|
678
|
+
return m;
|
|
679
679
|
}
|
|
680
680
|
function s(c) {
|
|
681
681
|
var u = 0, h = setInterval((function() {
|
|
682
|
-
var
|
|
683
|
-
(
|
|
682
|
+
var m = c.getBBox();
|
|
683
|
+
(m.width || u > 500) && (this._imageLoaded(), clearInterval(h)), u += 1;
|
|
684
684
|
}).bind(this), 50);
|
|
685
685
|
}
|
|
686
686
|
function a(c) {
|
|
687
687
|
var u = i(c, this.assetsPath, this.path), h = createNS("image");
|
|
688
688
|
isSafari ? this.testImageLoaded(h) : h.addEventListener("load", this._imageLoaded, !1), h.addEventListener("error", (function() {
|
|
689
|
-
|
|
689
|
+
m.img = t, this._imageLoaded();
|
|
690
690
|
}).bind(this), !1), h.setAttributeNS("http://www.w3.org/1999/xlink", "href", u), this._elementHelper.append ? this._elementHelper.append(h) : this._elementHelper.appendChild(h);
|
|
691
|
-
var
|
|
691
|
+
var m = {
|
|
692
692
|
img: h,
|
|
693
693
|
assetData: c
|
|
694
694
|
};
|
|
695
|
-
return
|
|
695
|
+
return m;
|
|
696
696
|
}
|
|
697
697
|
function n(c) {
|
|
698
698
|
var u = i(c, this.assetsPath, this.path), h = createTag("img");
|
|
699
699
|
h.crossOrigin = "anonymous", h.addEventListener("load", this._imageLoaded, !1), h.addEventListener("error", (function() {
|
|
700
|
-
|
|
700
|
+
m.img = t, this._imageLoaded();
|
|
701
701
|
}).bind(this), !1), h.src = u;
|
|
702
|
-
var
|
|
702
|
+
var m = {
|
|
703
703
|
img: h,
|
|
704
704
|
assetData: c
|
|
705
705
|
};
|
|
706
|
-
return
|
|
706
|
+
return m;
|
|
707
707
|
}
|
|
708
708
|
function f(c) {
|
|
709
709
|
var u = {
|
|
710
710
|
assetData: c
|
|
711
711
|
}, h = i(c, this.assetsPath, this.path);
|
|
712
|
-
return dataManager.loadData(h, (function(
|
|
713
|
-
u.img =
|
|
712
|
+
return dataManager.loadData(h, (function(m) {
|
|
713
|
+
u.img = m, this._footageLoaded();
|
|
714
714
|
}).bind(this), (function() {
|
|
715
715
|
u.img = {}, this._footageLoaded();
|
|
716
716
|
}).bind(this)), u;
|
|
717
717
|
}
|
|
718
718
|
function o(c, u) {
|
|
719
719
|
this.imagesLoadedCb = u;
|
|
720
|
-
var h,
|
|
721
|
-
for (h = 0; h <
|
|
720
|
+
var h, m = c.length;
|
|
721
|
+
for (h = 0; h < m; h += 1)
|
|
722
722
|
c[h].layers || (!c[h].t || c[h].t === "seq" ? (this.totalImages += 1, this.images.push(this._createImageData(c[h]))) : c[h].t === 3 && (this.totalFootages += 1, this.images.push(this.createFootageData(c[h]))));
|
|
723
723
|
}
|
|
724
724
|
function l(c) {
|
|
725
725
|
this.path = c || "";
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function v(c) {
|
|
728
728
|
this.assetsPath = c || "";
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function _(c) {
|
|
731
731
|
for (var u = 0, h = this.images.length; u < h; ) {
|
|
732
732
|
if (this.images[u].assetData === c)
|
|
733
733
|
return this.images[u].img;
|
|
@@ -744,7 +744,7 @@ var lottie$1 = { exports: {} };
|
|
|
744
744
|
function g() {
|
|
745
745
|
return this.totalFootages === this.loadedFootagesCount;
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function d(c, u) {
|
|
748
748
|
c === "svg" ? (this._elementHelper = u, this._createImageData = this.createImageData.bind(this)) : this._createImageData = this.createImgData.bind(this);
|
|
749
749
|
}
|
|
750
750
|
function E() {
|
|
@@ -752,17 +752,17 @@ var lottie$1 = { exports: {} };
|
|
|
752
752
|
}
|
|
753
753
|
return E.prototype = {
|
|
754
754
|
loadAssets: o,
|
|
755
|
-
setAssetsPath:
|
|
755
|
+
setAssetsPath: v,
|
|
756
756
|
setPath: l,
|
|
757
757
|
loadedImages: b,
|
|
758
758
|
loadedFootages: g,
|
|
759
759
|
destroy: p,
|
|
760
|
-
getAsset:
|
|
760
|
+
getAsset: _,
|
|
761
761
|
createImgData: n,
|
|
762
762
|
createImageData: a,
|
|
763
763
|
imageLoaded: e,
|
|
764
764
|
footageLoaded: r,
|
|
765
|
-
setCacheType:
|
|
765
|
+
setCacheType: d
|
|
766
766
|
}, E;
|
|
767
767
|
}();
|
|
768
768
|
function BaseEvent() {
|
|
@@ -1090,101 +1090,101 @@ var lottie$1 = { exports: {} };
|
|
|
1090
1090
|
var animationManager = function() {
|
|
1091
1091
|
var t = {}, e = [], r = 0, i = 0, s = 0, a = !0, n = !1;
|
|
1092
1092
|
function f(P) {
|
|
1093
|
-
for (var
|
|
1094
|
-
e[
|
|
1093
|
+
for (var A = 0, y = P.target; A < i; )
|
|
1094
|
+
e[A].animation === y && (e.splice(A, 1), A -= 1, i -= 1, y.isPaused || _()), A += 1;
|
|
1095
1095
|
}
|
|
1096
|
-
function o(P,
|
|
1096
|
+
function o(P, A) {
|
|
1097
1097
|
if (!P)
|
|
1098
1098
|
return null;
|
|
1099
|
-
for (var
|
|
1100
|
-
if (e[
|
|
1101
|
-
return e[
|
|
1102
|
-
|
|
1099
|
+
for (var y = 0; y < i; ) {
|
|
1100
|
+
if (e[y].elem === P && e[y].elem !== null)
|
|
1101
|
+
return e[y].animation;
|
|
1102
|
+
y += 1;
|
|
1103
1103
|
}
|
|
1104
|
-
var
|
|
1105
|
-
return p(
|
|
1104
|
+
var S = new AnimationItem();
|
|
1105
|
+
return p(S, P), S.setData(P, A), S;
|
|
1106
1106
|
}
|
|
1107
1107
|
function l() {
|
|
1108
|
-
var P,
|
|
1109
|
-
for (P = 0; P <
|
|
1110
|
-
|
|
1111
|
-
return
|
|
1108
|
+
var P, A = e.length, y = [];
|
|
1109
|
+
for (P = 0; P < A; P += 1)
|
|
1110
|
+
y.push(e[P].animation);
|
|
1111
|
+
return y;
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function v() {
|
|
1114
1114
|
s += 1, D();
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function _() {
|
|
1117
1117
|
s -= 1;
|
|
1118
1118
|
}
|
|
1119
|
-
function p(P,
|
|
1120
|
-
P.addEventListener("destroy", f), P.addEventListener("_active",
|
|
1121
|
-
elem:
|
|
1119
|
+
function p(P, A) {
|
|
1120
|
+
P.addEventListener("destroy", f), P.addEventListener("_active", v), P.addEventListener("_idle", _), e.push({
|
|
1121
|
+
elem: A,
|
|
1122
1122
|
animation: P
|
|
1123
1123
|
}), i += 1;
|
|
1124
1124
|
}
|
|
1125
1125
|
function b(P) {
|
|
1126
|
-
var
|
|
1127
|
-
return p(
|
|
1126
|
+
var A = new AnimationItem();
|
|
1127
|
+
return p(A, null), A.setParams(P), A;
|
|
1128
1128
|
}
|
|
1129
|
-
function g(P,
|
|
1130
|
-
var
|
|
1131
|
-
for (
|
|
1132
|
-
e[
|
|
1129
|
+
function g(P, A) {
|
|
1130
|
+
var y;
|
|
1131
|
+
for (y = 0; y < i; y += 1)
|
|
1132
|
+
e[y].animation.setSpeed(P, A);
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1135
|
-
var
|
|
1136
|
-
for (
|
|
1137
|
-
e[
|
|
1134
|
+
function d(P, A) {
|
|
1135
|
+
var y;
|
|
1136
|
+
for (y = 0; y < i; y += 1)
|
|
1137
|
+
e[y].animation.setDirection(P, A);
|
|
1138
1138
|
}
|
|
1139
1139
|
function E(P) {
|
|
1140
|
-
var
|
|
1141
|
-
for (
|
|
1142
|
-
e[
|
|
1140
|
+
var A;
|
|
1141
|
+
for (A = 0; A < i; A += 1)
|
|
1142
|
+
e[A].animation.play(P);
|
|
1143
1143
|
}
|
|
1144
1144
|
function c(P) {
|
|
1145
|
-
var
|
|
1146
|
-
for (
|
|
1147
|
-
e[
|
|
1145
|
+
var A = P - r, y;
|
|
1146
|
+
for (y = 0; y < i; y += 1)
|
|
1147
|
+
e[y].animation.advanceTime(A);
|
|
1148
1148
|
r = P, s && !n ? window.requestAnimationFrame(c) : a = !0;
|
|
1149
1149
|
}
|
|
1150
1150
|
function u(P) {
|
|
1151
1151
|
r = P, window.requestAnimationFrame(c);
|
|
1152
1152
|
}
|
|
1153
1153
|
function h(P) {
|
|
1154
|
-
var
|
|
1155
|
-
for (
|
|
1156
|
-
e[
|
|
1154
|
+
var A;
|
|
1155
|
+
for (A = 0; A < i; A += 1)
|
|
1156
|
+
e[A].animation.pause(P);
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1159
|
-
var
|
|
1160
|
-
for (
|
|
1161
|
-
e[
|
|
1158
|
+
function m(P, A, y) {
|
|
1159
|
+
var S;
|
|
1160
|
+
for (S = 0; S < i; S += 1)
|
|
1161
|
+
e[S].animation.goToAndStop(P, A, y);
|
|
1162
1162
|
}
|
|
1163
1163
|
function x(P) {
|
|
1164
|
-
var
|
|
1165
|
-
for (
|
|
1166
|
-
e[
|
|
1164
|
+
var A;
|
|
1165
|
+
for (A = 0; A < i; A += 1)
|
|
1166
|
+
e[A].animation.stop(P);
|
|
1167
1167
|
}
|
|
1168
1168
|
function C(P) {
|
|
1169
|
-
var
|
|
1170
|
-
for (
|
|
1171
|
-
e[
|
|
1169
|
+
var A;
|
|
1170
|
+
for (A = 0; A < i; A += 1)
|
|
1171
|
+
e[A].animation.togglePause(P);
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1174
|
-
var
|
|
1175
|
-
for (
|
|
1176
|
-
e[
|
|
1173
|
+
function T(P) {
|
|
1174
|
+
var A;
|
|
1175
|
+
for (A = i - 1; A >= 0; A -= 1)
|
|
1176
|
+
e[A].animation.destroy(P);
|
|
1177
1177
|
}
|
|
1178
|
-
function M(P,
|
|
1179
|
-
var
|
|
1178
|
+
function M(P, A, y) {
|
|
1179
|
+
var S = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), F, k = S.length;
|
|
1180
1180
|
for (F = 0; F < k; F += 1)
|
|
1181
|
-
|
|
1182
|
-
if (
|
|
1183
|
-
|
|
1181
|
+
y && S[F].setAttribute("data-bm-type", y), o(S[F], P);
|
|
1182
|
+
if (A && k === 0) {
|
|
1183
|
+
y || (y = "svg");
|
|
1184
1184
|
var B = document.getElementsByTagName("body")[0];
|
|
1185
1185
|
B.innerText = "";
|
|
1186
1186
|
var z = createTag("div");
|
|
1187
|
-
z.style.width = "100%", z.style.height = "100%", z.setAttribute("data-bm-type",
|
|
1187
|
+
z.style.width = "100%", z.style.height = "100%", z.setAttribute("data-bm-type", y), B.appendChild(z), o(z, P);
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
1190
|
function w() {
|
|
@@ -1201,62 +1201,62 @@ var lottie$1 = { exports: {} };
|
|
|
1201
1201
|
function I() {
|
|
1202
1202
|
n = !1, D();
|
|
1203
1203
|
}
|
|
1204
|
-
function R(P,
|
|
1205
|
-
var
|
|
1206
|
-
for (
|
|
1207
|
-
e[
|
|
1204
|
+
function R(P, A) {
|
|
1205
|
+
var y;
|
|
1206
|
+
for (y = 0; y < i; y += 1)
|
|
1207
|
+
e[y].animation.setVolume(P, A);
|
|
1208
1208
|
}
|
|
1209
1209
|
function G(P) {
|
|
1210
|
-
var
|
|
1211
|
-
for (
|
|
1212
|
-
e[
|
|
1210
|
+
var A;
|
|
1211
|
+
for (A = 0; A < i; A += 1)
|
|
1212
|
+
e[A].animation.mute(P);
|
|
1213
1213
|
}
|
|
1214
1214
|
function V(P) {
|
|
1215
|
-
var
|
|
1216
|
-
for (
|
|
1217
|
-
e[
|
|
1215
|
+
var A;
|
|
1216
|
+
for (A = 0; A < i; A += 1)
|
|
1217
|
+
e[A].animation.unmute(P);
|
|
1218
1218
|
}
|
|
1219
|
-
return t.registerAnimation = o, t.loadAnimation = b, t.setSpeed = g, t.setDirection =
|
|
1219
|
+
return t.registerAnimation = o, t.loadAnimation = b, t.setSpeed = g, t.setDirection = d, t.play = E, t.pause = h, t.stop = x, t.togglePause = C, t.searchAnimations = M, t.resize = w, t.goToAndStop = m, t.destroy = T, t.freeze = L, t.unfreeze = I, t.setVolume = R, t.mute = G, t.unmute = V, t.getRegisteredAnimations = l, t;
|
|
1220
1220
|
}(), BezierFactory = function() {
|
|
1221
1221
|
var t = {};
|
|
1222
1222
|
t.getBezierEasing = r;
|
|
1223
1223
|
var e = {};
|
|
1224
|
-
function r(u, h,
|
|
1225
|
-
var
|
|
1226
|
-
if (e[
|
|
1227
|
-
return e[
|
|
1228
|
-
var M = new c([u, h,
|
|
1229
|
-
return e[
|
|
1224
|
+
function r(u, h, m, x, C) {
|
|
1225
|
+
var T = C || ("bez_" + u + "_" + h + "_" + m + "_" + x).replace(/\./g, "p");
|
|
1226
|
+
if (e[T])
|
|
1227
|
+
return e[T];
|
|
1228
|
+
var M = new c([u, h, m, x]);
|
|
1229
|
+
return e[T] = M, M;
|
|
1230
1230
|
}
|
|
1231
1231
|
var i = 4, s = 1e-3, a = 1e-7, n = 10, f = 11, o = 1 / (f - 1), l = typeof Float32Array == "function";
|
|
1232
|
-
function
|
|
1232
|
+
function v(u, h) {
|
|
1233
1233
|
return 1 - 3 * h + 3 * u;
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function _(u, h) {
|
|
1236
1236
|
return 3 * h - 6 * u;
|
|
1237
1237
|
}
|
|
1238
1238
|
function p(u) {
|
|
1239
1239
|
return 3 * u;
|
|
1240
1240
|
}
|
|
1241
|
-
function b(u, h,
|
|
1242
|
-
return ((
|
|
1241
|
+
function b(u, h, m) {
|
|
1242
|
+
return ((v(h, m) * u + _(h, m)) * u + p(h)) * u;
|
|
1243
1243
|
}
|
|
1244
|
-
function g(u, h,
|
|
1245
|
-
return 3 *
|
|
1244
|
+
function g(u, h, m) {
|
|
1245
|
+
return 3 * v(h, m) * u * u + 2 * _(h, m) * u + p(h);
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1248
|
-
var
|
|
1247
|
+
function d(u, h, m, x, C) {
|
|
1248
|
+
var T, M, w = 0;
|
|
1249
1249
|
do
|
|
1250
|
-
M = h + (
|
|
1251
|
-
while (Math.abs(
|
|
1250
|
+
M = h + (m - h) / 2, T = b(M, x, C) - u, T > 0 ? m = M : h = M;
|
|
1251
|
+
while (Math.abs(T) > a && ++w < n);
|
|
1252
1252
|
return M;
|
|
1253
1253
|
}
|
|
1254
|
-
function E(u, h,
|
|
1254
|
+
function E(u, h, m, x) {
|
|
1255
1255
|
for (var C = 0; C < i; ++C) {
|
|
1256
|
-
var
|
|
1257
|
-
if (
|
|
1258
|
-
var M = b(h,
|
|
1259
|
-
h -= M /
|
|
1256
|
+
var T = g(h, m, x);
|
|
1257
|
+
if (T === 0) return h;
|
|
1258
|
+
var M = b(h, m, x) - u;
|
|
1259
|
+
h -= M / T;
|
|
1260
1260
|
}
|
|
1261
1261
|
return h;
|
|
1262
1262
|
}
|
|
@@ -1265,27 +1265,27 @@ var lottie$1 = { exports: {} };
|
|
|
1265
1265
|
}
|
|
1266
1266
|
return c.prototype = {
|
|
1267
1267
|
get: function(h) {
|
|
1268
|
-
var
|
|
1269
|
-
return this._precomputed || this._precompute(),
|
|
1268
|
+
var m = this._p[0], x = this._p[1], C = this._p[2], T = this._p[3];
|
|
1269
|
+
return this._precomputed || this._precompute(), m === x && C === T ? h : h === 0 ? 0 : h === 1 ? 1 : b(this._getTForX(h), x, T);
|
|
1270
1270
|
},
|
|
1271
1271
|
// Private part
|
|
1272
1272
|
_precompute: function() {
|
|
1273
|
-
var h = this._p[0],
|
|
1274
|
-
this._precomputed = !0, (h !==
|
|
1273
|
+
var h = this._p[0], m = this._p[1], x = this._p[2], C = this._p[3];
|
|
1274
|
+
this._precomputed = !0, (h !== m || x !== C) && this._calcSampleValues();
|
|
1275
1275
|
},
|
|
1276
1276
|
_calcSampleValues: function() {
|
|
1277
|
-
for (var h = this._p[0],
|
|
1278
|
-
this._mSampleValues[x] = b(x * o, h,
|
|
1277
|
+
for (var h = this._p[0], m = this._p[2], x = 0; x < f; ++x)
|
|
1278
|
+
this._mSampleValues[x] = b(x * o, h, m);
|
|
1279
1279
|
},
|
|
1280
1280
|
/**
|
|
1281
1281
|
* getTForX chose the fastest heuristic to determine the percentage value precisely from a given X projection.
|
|
1282
1282
|
*/
|
|
1283
1283
|
_getTForX: function(h) {
|
|
1284
|
-
for (var
|
|
1285
|
-
|
|
1284
|
+
for (var m = this._p[0], x = this._p[2], C = this._mSampleValues, T = 0, M = 1, w = f - 1; M !== w && C[M] <= h; ++M)
|
|
1285
|
+
T += o;
|
|
1286
1286
|
--M;
|
|
1287
|
-
var D = (h - C[M]) / (C[M + 1] - C[M]), L =
|
|
1288
|
-
return I >= s ? E(h, L,
|
|
1287
|
+
var D = (h - C[M]) / (C[M + 1] - C[M]), L = T + D * o, I = g(L, m, x);
|
|
1288
|
+
return I >= s ? E(h, L, m, x) : I === 0 ? L : d(h, T, T + o, m, x);
|
|
1289
1289
|
}
|
|
1290
1290
|
}, t;
|
|
1291
1291
|
}(), pooling = /* @__PURE__ */ function() {
|
|
@@ -1336,32 +1336,32 @@ var lottie$1 = { exports: {} };
|
|
|
1336
1336
|
}();
|
|
1337
1337
|
function bezFunction() {
|
|
1338
1338
|
var t = Math;
|
|
1339
|
-
function e(p, b, g,
|
|
1340
|
-
var u = p *
|
|
1339
|
+
function e(p, b, g, d, E, c) {
|
|
1340
|
+
var u = p * d + b * E + g * c - E * d - c * p - g * b;
|
|
1341
1341
|
return u > -1e-3 && u < 1e-3;
|
|
1342
1342
|
}
|
|
1343
|
-
function r(p, b, g,
|
|
1344
|
-
if (g === 0 && c === 0 &&
|
|
1345
|
-
return e(p, b,
|
|
1346
|
-
var x = t.sqrt(t.pow(
|
|
1347
|
-
return x > C ? x >
|
|
1343
|
+
function r(p, b, g, d, E, c, u, h, m) {
|
|
1344
|
+
if (g === 0 && c === 0 && m === 0)
|
|
1345
|
+
return e(p, b, d, E, u, h);
|
|
1346
|
+
var x = t.sqrt(t.pow(d - p, 2) + t.pow(E - b, 2) + t.pow(c - g, 2)), C = t.sqrt(t.pow(u - p, 2) + t.pow(h - b, 2) + t.pow(m - g, 2)), T = t.sqrt(t.pow(u - d, 2) + t.pow(h - E, 2) + t.pow(m - c, 2)), M;
|
|
1347
|
+
return x > C ? x > T ? M = x - C - T : M = T - C - x : T > C ? M = T - C - x : M = C - x - T, M > -1e-4 && M < 1e-4;
|
|
1348
1348
|
}
|
|
1349
1349
|
var i = /* @__PURE__ */ function() {
|
|
1350
|
-
return function(p, b, g,
|
|
1351
|
-
var E = getDefaultCurveSegments(), c, u, h,
|
|
1350
|
+
return function(p, b, g, d) {
|
|
1351
|
+
var E = getDefaultCurveSegments(), c, u, h, m, x, C = 0, T, M = [], w = [], D = bezierLengthPool.newElement();
|
|
1352
1352
|
for (h = g.length, c = 0; c < E; c += 1) {
|
|
1353
|
-
for (x = c / (E - 1),
|
|
1354
|
-
|
|
1355
|
-
|
|
1353
|
+
for (x = c / (E - 1), T = 0, u = 0; u < h; u += 1)
|
|
1354
|
+
m = bmPow(1 - x, 3) * p[u] + 3 * bmPow(1 - x, 2) * x * g[u] + 3 * (1 - x) * bmPow(x, 2) * d[u] + bmPow(x, 3) * b[u], M[u] = m, w[u] !== null && (T += bmPow(M[u] - w[u], 2)), w[u] = M[u];
|
|
1355
|
+
T && (T = bmSqrt(T), C += T), D.percents[c] = x, D.lengths[c] = C;
|
|
1356
1356
|
}
|
|
1357
1357
|
return D.addedLength = C, D;
|
|
1358
1358
|
};
|
|
1359
1359
|
}();
|
|
1360
1360
|
function s(p) {
|
|
1361
|
-
var b = segmentsLengthPool.newElement(), g = p.c,
|
|
1361
|
+
var b = segmentsLengthPool.newElement(), g = p.c, d = p.v, E = p.o, c = p.i, u, h = p._length, m = b.lengths, x = 0;
|
|
1362
1362
|
for (u = 0; u < h - 1; u += 1)
|
|
1363
|
-
|
|
1364
|
-
return g && h && (
|
|
1363
|
+
m[u] = i(d[u], d[u + 1], E[u], c[u + 1]), x += m[u].addedLength;
|
|
1364
|
+
return g && h && (m[u] = i(d[u], d[0], E[u], c[0]), x += m[u].addedLength), b.totalLength = x, b;
|
|
1365
1365
|
}
|
|
1366
1366
|
function a(p) {
|
|
1367
1367
|
this.segmentLength = 0, this.points = new Array(p);
|
|
@@ -1371,15 +1371,15 @@ var lottie$1 = { exports: {} };
|
|
|
1371
1371
|
}
|
|
1372
1372
|
var f = /* @__PURE__ */ function() {
|
|
1373
1373
|
var p = {};
|
|
1374
|
-
return function(b, g,
|
|
1375
|
-
var c = (b[0] + "_" + b[1] + "_" + g[0] + "_" + g[1] + "_" +
|
|
1374
|
+
return function(b, g, d, E) {
|
|
1375
|
+
var c = (b[0] + "_" + b[1] + "_" + g[0] + "_" + g[1] + "_" + d[0] + "_" + d[1] + "_" + E[0] + "_" + E[1]).replace(/\./g, "p");
|
|
1376
1376
|
if (!p[c]) {
|
|
1377
|
-
var u = getDefaultCurveSegments(), h,
|
|
1378
|
-
b.length === 2 && (b[0] !== g[0] || b[1] !== g[1]) && e(b[0], b[1], g[0], g[1], b[0] +
|
|
1377
|
+
var u = getDefaultCurveSegments(), h, m, x, C, T, M = 0, w, D, L = null;
|
|
1378
|
+
b.length === 2 && (b[0] !== g[0] || b[1] !== g[1]) && e(b[0], b[1], g[0], g[1], b[0] + d[0], b[1] + d[1]) && e(b[0], b[1], g[0], g[1], g[0] + E[0], g[1] + E[1]) && (u = 2);
|
|
1379
1379
|
var I = new a(u);
|
|
1380
|
-
for (x =
|
|
1381
|
-
for (D = createSizedArray(x),
|
|
1382
|
-
C = bmPow(1 -
|
|
1380
|
+
for (x = d.length, h = 0; h < u; h += 1) {
|
|
1381
|
+
for (D = createSizedArray(x), T = h / (u - 1), w = 0, m = 0; m < x; m += 1)
|
|
1382
|
+
C = bmPow(1 - T, 3) * b[m] + 3 * bmPow(1 - T, 2) * T * (b[m] + d[m]) + 3 * (1 - T) * bmPow(T, 2) * (g[m] + E[m]) + bmPow(T, 3) * g[m], D[m] = C, L !== null && (w += bmPow(D[m] - L[m], 2));
|
|
1383
1383
|
w = bmSqrt(w), M += w, I.points[h] = new n(w, D), L = D;
|
|
1384
1384
|
}
|
|
1385
1385
|
I.segmentLength = M, p[c] = I;
|
|
@@ -1388,34 +1388,34 @@ var lottie$1 = { exports: {} };
|
|
|
1388
1388
|
};
|
|
1389
1389
|
}();
|
|
1390
1390
|
function o(p, b) {
|
|
1391
|
-
var g = b.percents,
|
|
1392
|
-
if (c === E - 1 || c === 0 || u ===
|
|
1391
|
+
var g = b.percents, d = b.lengths, E = g.length, c = bmFloor((E - 1) * p), u = p * b.addedLength, h = 0;
|
|
1392
|
+
if (c === E - 1 || c === 0 || u === d[c])
|
|
1393
1393
|
return g[c];
|
|
1394
|
-
for (var
|
|
1395
|
-
if (
|
|
1394
|
+
for (var m = d[c] > u ? -1 : 1, x = !0; x; )
|
|
1395
|
+
if (d[c] <= u && d[c + 1] > u ? (h = (u - d[c]) / (d[c + 1] - d[c]), x = !1) : c += m, c < 0 || c >= E - 1) {
|
|
1396
1396
|
if (c === E - 1)
|
|
1397
1397
|
return g[c];
|
|
1398
1398
|
x = !1;
|
|
1399
1399
|
}
|
|
1400
1400
|
return g[c] + (g[c + 1] - g[c]) * h;
|
|
1401
1401
|
}
|
|
1402
|
-
function l(p, b, g,
|
|
1403
|
-
var u = o(E, c), h = 1 - u,
|
|
1404
|
-
return [
|
|
1402
|
+
function l(p, b, g, d, E, c) {
|
|
1403
|
+
var u = o(E, c), h = 1 - u, m = t.round((h * h * h * p[0] + (u * h * h + h * u * h + h * h * u) * g[0] + (u * u * h + h * u * u + u * h * u) * d[0] + u * u * u * b[0]) * 1e3) / 1e3, x = t.round((h * h * h * p[1] + (u * h * h + h * u * h + h * h * u) * g[1] + (u * u * h + h * u * u + u * h * u) * d[1] + u * u * u * b[1]) * 1e3) / 1e3;
|
|
1404
|
+
return [m, x];
|
|
1405
1405
|
}
|
|
1406
|
-
var
|
|
1407
|
-
function
|
|
1406
|
+
var v = createTypedArray("float32", 8);
|
|
1407
|
+
function _(p, b, g, d, E, c, u) {
|
|
1408
1408
|
E < 0 ? E = 0 : E > 1 && (E = 1);
|
|
1409
1409
|
var h = o(E, u);
|
|
1410
1410
|
c = c > 1 ? 1 : c;
|
|
1411
|
-
var
|
|
1411
|
+
var m = o(c, u), x, C = p.length, T = 1 - h, M = 1 - m, w = T * T * T, D = h * T * T * 3, L = h * h * T * 3, I = h * h * h, R = T * T * M, G = h * T * M + T * h * M + T * T * m, V = h * h * M + T * h * m + h * T * m, P = h * h * m, A = T * M * M, y = h * M * M + T * m * M + T * M * m, S = h * m * M + T * m * m + h * M * m, F = h * m * m, k = M * M * M, B = m * M * M + M * m * M + M * M * m, z = m * m * M + M * m * m + m * M * m, N = m * m * m;
|
|
1412
1412
|
for (x = 0; x < C; x += 1)
|
|
1413
|
-
|
|
1414
|
-
return
|
|
1413
|
+
v[x * 4] = t.round((w * p[x] + D * g[x] + L * d[x] + I * b[x]) * 1e3) / 1e3, v[x * 4 + 1] = t.round((R * p[x] + G * g[x] + V * d[x] + P * b[x]) * 1e3) / 1e3, v[x * 4 + 2] = t.round((A * p[x] + y * g[x] + S * d[x] + F * b[x]) * 1e3) / 1e3, v[x * 4 + 3] = t.round((k * p[x] + B * g[x] + z * d[x] + N * b[x]) * 1e3) / 1e3;
|
|
1414
|
+
return v;
|
|
1415
1415
|
}
|
|
1416
1416
|
return {
|
|
1417
1417
|
getSegmentsLength: s,
|
|
1418
|
-
getNewSegment:
|
|
1418
|
+
getNewSegment: _,
|
|
1419
1419
|
getPointInSegment: l,
|
|
1420
1420
|
buildBezierData: f,
|
|
1421
1421
|
pointOnLine2D: e,
|
|
@@ -1426,7 +1426,7 @@ var lottie$1 = { exports: {} };
|
|
|
1426
1426
|
function interpolateValue(t, e) {
|
|
1427
1427
|
var r = this.offsetTime, i;
|
|
1428
1428
|
this.propType === "multidimensional" && (i = createTypedArray("float32", this.pv.length));
|
|
1429
|
-
for (var s = e.lastIndex, a = s, n = this.keyframes.length - 1, f = !0, o, l,
|
|
1429
|
+
for (var s = e.lastIndex, a = s, n = this.keyframes.length - 1, f = !0, o, l, v; f; ) {
|
|
1430
1430
|
if (o = this.keyframes[a], l = this.keyframes[a + 1], a === n - 1 && t >= l.t - r) {
|
|
1431
1431
|
o.h && (o = l), s = 0;
|
|
1432
1432
|
break;
|
|
@@ -1437,31 +1437,31 @@ var lottie$1 = { exports: {} };
|
|
|
1437
1437
|
}
|
|
1438
1438
|
a < n - 1 ? a += 1 : (s = 0, f = !1);
|
|
1439
1439
|
}
|
|
1440
|
-
|
|
1441
|
-
var
|
|
1440
|
+
v = this.keyframesMetadata[a] || {};
|
|
1441
|
+
var _, p, b, g, d, E, c = l.t - r, u = o.t - r, h;
|
|
1442
1442
|
if (o.to) {
|
|
1443
|
-
|
|
1444
|
-
var
|
|
1443
|
+
v.bezierData || (v.bezierData = bez.buildBezierData(o.s, l.s || o.e, o.to, o.ti));
|
|
1444
|
+
var m = v.bezierData;
|
|
1445
1445
|
if (t >= c || t < u) {
|
|
1446
|
-
var x = t >= c ?
|
|
1447
|
-
for (p =
|
|
1448
|
-
i[
|
|
1446
|
+
var x = t >= c ? m.points.length - 1 : 0;
|
|
1447
|
+
for (p = m.points[x].point.length, _ = 0; _ < p; _ += 1)
|
|
1448
|
+
i[_] = m.points[x].point[_];
|
|
1449
1449
|
} else {
|
|
1450
|
-
|
|
1451
|
-
var C =
|
|
1452
|
-
for (
|
|
1453
|
-
if (M +=
|
|
1454
|
-
for (p =
|
|
1455
|
-
i[
|
|
1450
|
+
v.__fnct ? E = v.__fnct : (E = BezierFactory.getBezierEasing(o.o.x, o.o.y, o.i.x, o.i.y, o.n).get, v.__fnct = E), b = E((t - u) / (c - u));
|
|
1451
|
+
var C = m.segmentLength * b, T, M = e.lastFrame < t && e._lastKeyframeIndex === a ? e._lastAddedLength : 0;
|
|
1452
|
+
for (d = e.lastFrame < t && e._lastKeyframeIndex === a ? e._lastPoint : 0, f = !0, g = m.points.length; f; ) {
|
|
1453
|
+
if (M += m.points[d].partialLength, C === 0 || b === 0 || d === m.points.length - 1) {
|
|
1454
|
+
for (p = m.points[d].point.length, _ = 0; _ < p; _ += 1)
|
|
1455
|
+
i[_] = m.points[d].point[_];
|
|
1456
1456
|
break;
|
|
1457
|
-
} else if (C >= M && C < M +
|
|
1458
|
-
for (
|
|
1459
|
-
i[
|
|
1457
|
+
} else if (C >= M && C < M + m.points[d + 1].partialLength) {
|
|
1458
|
+
for (T = (C - M) / m.points[d + 1].partialLength, p = m.points[d].point.length, _ = 0; _ < p; _ += 1)
|
|
1459
|
+
i[_] = m.points[d].point[_] + (m.points[d + 1].point[_] - m.points[d].point[_]) * T;
|
|
1460
1460
|
break;
|
|
1461
1461
|
}
|
|
1462
|
-
|
|
1462
|
+
d < g - 1 ? d += 1 : f = !1;
|
|
1463
1463
|
}
|
|
1464
|
-
e._lastPoint =
|
|
1464
|
+
e._lastPoint = d, e._lastAddedLength = M - m.points[d].partialLength, e._lastKeyframeIndex = a;
|
|
1465
1465
|
}
|
|
1466
1466
|
} else {
|
|
1467
1467
|
var w, D, L, I, R;
|
|
@@ -1476,21 +1476,21 @@ var lottie$1 = { exports: {} };
|
|
|
1476
1476
|
}
|
|
1477
1477
|
else
|
|
1478
1478
|
for (a = 0; a < n; a += 1)
|
|
1479
|
-
o.h !== 1 && (t >= c ? b = 1 : t < u ? b = 0 : (o.o.x.constructor === Array ? (
|
|
1479
|
+
o.h !== 1 && (t >= c ? b = 1 : t < u ? b = 0 : (o.o.x.constructor === Array ? (v.__fnct || (v.__fnct = []), v.__fnct[a] ? E = v.__fnct[a] : (w = o.o.x[a] === void 0 ? o.o.x[0] : o.o.x[a], D = o.o.y[a] === void 0 ? o.o.y[0] : o.o.y[a], L = o.i.x[a] === void 0 ? o.i.x[0] : o.i.x[a], I = o.i.y[a] === void 0 ? o.i.y[0] : o.i.y[a], E = BezierFactory.getBezierEasing(w, D, L, I).get, v.__fnct[a] = E)) : v.__fnct ? E = v.__fnct : (w = o.o.x, D = o.o.y, L = o.i.x, I = o.i.y, E = BezierFactory.getBezierEasing(w, D, L, I).get, o.keyframeMetadata = E), b = E((t - u) / (c - u)))), h = l.s || o.e, R = o.h === 1 ? o.s[a] : o.s[a] + (h[a] - o.s[a]) * b, this.propType === "multidimensional" ? i[a] = R : i = R;
|
|
1480
1480
|
}
|
|
1481
1481
|
return e.lastIndex = s, i;
|
|
1482
1482
|
}
|
|
1483
1483
|
function slerp(t, e, r) {
|
|
1484
|
-
var i = [], s = t[0], a = t[1], n = t[2], f = t[3], o = e[0], l = e[1],
|
|
1485
|
-
return b = s * o + a * l + n *
|
|
1484
|
+
var i = [], s = t[0], a = t[1], n = t[2], f = t[3], o = e[0], l = e[1], v = e[2], _ = e[3], p, b, g, d, E;
|
|
1485
|
+
return b = s * o + a * l + n * v + f * _, b < 0 && (b = -b, o = -o, l = -l, v = -v, _ = -_), 1 - b > 1e-6 ? (p = Math.acos(b), g = Math.sin(p), d = Math.sin((1 - r) * p) / g, E = Math.sin(r * p) / g) : (d = 1 - r, E = r), i[0] = d * s + E * o, i[1] = d * a + E * l, i[2] = d * n + E * v, i[3] = d * f + E * _, i;
|
|
1486
1486
|
}
|
|
1487
1487
|
function quaternionToEuler(t, e) {
|
|
1488
1488
|
var r = e[0], i = e[1], s = e[2], a = e[3], n = Math.atan2(2 * i * a - 2 * r * s, 1 - 2 * i * i - 2 * s * s), f = Math.asin(2 * r * i + 2 * s * a), o = Math.atan2(2 * r * a - 2 * i * s, 1 - 2 * r * r - 2 * s * s);
|
|
1489
1489
|
t[0] = n / degToRads, t[1] = f / degToRads, t[2] = o / degToRads;
|
|
1490
1490
|
}
|
|
1491
1491
|
function createQuaternion(t) {
|
|
1492
|
-
var e = t[0] * degToRads, r = t[1] * degToRads, i = t[2] * degToRads, s = Math.cos(e / 2), a = Math.cos(r / 2), n = Math.cos(i / 2), f = Math.sin(e / 2), o = Math.sin(r / 2), l = Math.sin(i / 2),
|
|
1493
|
-
return [
|
|
1492
|
+
var e = t[0] * degToRads, r = t[1] * degToRads, i = t[2] * degToRads, s = Math.cos(e / 2), a = Math.cos(r / 2), n = Math.cos(i / 2), f = Math.sin(e / 2), o = Math.sin(r / 2), l = Math.sin(i / 2), v = s * a * n - f * o * l, _ = f * o * n + s * a * l, p = f * a * n + s * o * l, b = s * o * n - f * a * l;
|
|
1493
|
+
return [_, p, b, v];
|
|
1494
1494
|
}
|
|
1495
1495
|
function getValueAtCurrentTime() {
|
|
1496
1496
|
var t = this.comp.renderedFrame - this.offsetTime, e = this.keyframes[0].t - this.offsetTime, r = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
|
|
@@ -1549,13 +1549,13 @@ var lottie$1 = { exports: {} };
|
|
|
1549
1549
|
for (s = 0; s < a - 1; s += 1)
|
|
1550
1550
|
e.k[s].to && e.k[s].s && e.k[s + 1] && e.k[s + 1].s && (n = e.k[s].s, f = e.k[s + 1].s, o = e.k[s].to, l = e.k[s].ti, (n.length === 2 && !(n[0] === f[0] && n[1] === f[1]) && bez.pointOnLine2D(n[0], n[1], f[0], f[1], n[0] + o[0], n[1] + o[1]) && bez.pointOnLine2D(n[0], n[1], f[0], f[1], f[0] + l[0], f[1] + l[1]) || n.length === 3 && !(n[0] === f[0] && n[1] === f[1] && n[2] === f[2]) && bez.pointOnLine3D(n[0], n[1], n[2], f[0], f[1], f[2], n[0] + o[0], n[1] + o[1], n[2] + o[2]) && bez.pointOnLine3D(n[0], n[1], n[2], f[0], f[1], f[2], f[0] + l[0], f[1] + l[1], f[2] + l[2])) && (e.k[s].to = null, e.k[s].ti = null), n[0] === f[0] && n[1] === f[1] && o[0] === 0 && o[1] === 0 && l[0] === 0 && l[1] === 0 && (n.length === 2 || n[2] === f[2] && o[2] === 0 && l[2] === 0) && (e.k[s].to = null, e.k[s].ti = null));
|
|
1551
1551
|
this.effectsSequence = [getValueAtCurrentTime.bind(this)], this.data = e, this.keyframes = e.k, this.keyframesMetadata = [], this.offsetTime = t.data.st, this.k = !0, this.kf = !0, this._isFirstFrame = !0, this.mult = r || 1, this.elem = t, this.container = i, this.comp = t.comp, this.getValue = processEffectsSequence, this.setVValue = setVValue, this.interpolateValue = interpolateValue, this.frameId = -1;
|
|
1552
|
-
var
|
|
1553
|
-
for (this.v = createTypedArray("float32",
|
|
1552
|
+
var v = e.k[0].s.length;
|
|
1553
|
+
for (this.v = createTypedArray("float32", v), this.pv = createTypedArray("float32", v), s = 0; s < v; s += 1)
|
|
1554
1554
|
this.v[s] = initFrame, this.pv[s] = initFrame;
|
|
1555
1555
|
this._caching = {
|
|
1556
1556
|
lastFrame: initFrame,
|
|
1557
1557
|
lastIndex: 0,
|
|
1558
|
-
value: createTypedArray("float32",
|
|
1558
|
+
value: createTypedArray("float32", v)
|
|
1559
1559
|
}, this.addEffect = addEffect;
|
|
1560
1560
|
}
|
|
1561
1561
|
var PropertyFactory = /* @__PURE__ */ function() {
|
|
@@ -1697,34 +1697,34 @@ var lottie$1 = { exports: {} };
|
|
|
1697
1697
|
}(), ShapePropertyFactory = function() {
|
|
1698
1698
|
var t = -999999;
|
|
1699
1699
|
function e(c, u, h) {
|
|
1700
|
-
var
|
|
1700
|
+
var m = h.lastIndex, x, C, T, M, w, D, L, I, R, G = this.keyframes;
|
|
1701
1701
|
if (c < G[0].t - this.offsetTime)
|
|
1702
|
-
x = G[0].s[0],
|
|
1702
|
+
x = G[0].s[0], T = !0, m = 0;
|
|
1703
1703
|
else if (c >= G[G.length - 1].t - this.offsetTime)
|
|
1704
|
-
x = G[G.length - 1].s ? G[G.length - 1].s[0] : G[G.length - 2].e[0],
|
|
1704
|
+
x = G[G.length - 1].s ? G[G.length - 1].s[0] : G[G.length - 2].e[0], T = !0;
|
|
1705
1705
|
else {
|
|
1706
|
-
for (var V =
|
|
1707
|
-
V < P - 1 ? V += 1 :
|
|
1708
|
-
if (F = this.keyframesMetadata[V] || {},
|
|
1709
|
-
if (c >=
|
|
1706
|
+
for (var V = m, P = G.length - 1, A = !0, y, S, F; A && (y = G[V], S = G[V + 1], !(S.t - this.offsetTime > c)); )
|
|
1707
|
+
V < P - 1 ? V += 1 : A = !1;
|
|
1708
|
+
if (F = this.keyframesMetadata[V] || {}, T = y.h === 1, m = V, !T) {
|
|
1709
|
+
if (c >= S.t - this.offsetTime)
|
|
1710
1710
|
I = 1;
|
|
1711
|
-
else if (c <
|
|
1711
|
+
else if (c < y.t - this.offsetTime)
|
|
1712
1712
|
I = 0;
|
|
1713
1713
|
else {
|
|
1714
1714
|
var k;
|
|
1715
|
-
F.__fnct ? k = F.__fnct : (k = BezierFactory.getBezierEasing(
|
|
1715
|
+
F.__fnct ? k = F.__fnct : (k = BezierFactory.getBezierEasing(y.o.x, y.o.y, y.i.x, y.i.y).get, F.__fnct = k), I = k((c - (y.t - this.offsetTime)) / (S.t - this.offsetTime - (y.t - this.offsetTime)));
|
|
1716
1716
|
}
|
|
1717
|
-
C =
|
|
1717
|
+
C = S.s ? S.s[0] : y.e[0];
|
|
1718
1718
|
}
|
|
1719
|
-
x =
|
|
1719
|
+
x = y.s[0];
|
|
1720
1720
|
}
|
|
1721
|
-
for (D = u._length, L = x.i[0].length, h.lastIndex =
|
|
1721
|
+
for (D = u._length, L = x.i[0].length, h.lastIndex = m, M = 0; M < D; M += 1)
|
|
1722
1722
|
for (w = 0; w < L; w += 1)
|
|
1723
|
-
R =
|
|
1723
|
+
R = T ? x.i[M][w] : x.i[M][w] + (C.i[M][w] - x.i[M][w]) * I, u.i[M][w] = R, R = T ? x.o[M][w] : x.o[M][w] + (C.o[M][w] - x.o[M][w]) * I, u.o[M][w] = R, R = T ? x.v[M][w] : x.v[M][w] + (C.v[M][w] - x.v[M][w]) * I, u.v[M][w] = R;
|
|
1724
1724
|
}
|
|
1725
1725
|
function r() {
|
|
1726
|
-
var c = this.comp.renderedFrame - this.offsetTime, u = this.keyframes[0].t - this.offsetTime, h = this.keyframes[this.keyframes.length - 1].t - this.offsetTime,
|
|
1727
|
-
return
|
|
1726
|
+
var c = this.comp.renderedFrame - this.offsetTime, u = this.keyframes[0].t - this.offsetTime, h = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, m = this._caching.lastFrame;
|
|
1727
|
+
return m !== t && (m < u && c < u || m > h && c > h) || (this._caching.lastIndex = m < c ? this._caching.lastIndex : 0, this.interpolateShape(c, this.pv, this._caching)), this._caching.lastFrame = c, this.pv;
|
|
1728
1728
|
}
|
|
1729
1729
|
function i() {
|
|
1730
1730
|
this.paths = this.localShapeCollection;
|
|
@@ -1732,8 +1732,8 @@ var lottie$1 = { exports: {} };
|
|
|
1732
1732
|
function s(c, u) {
|
|
1733
1733
|
if (c._length !== u._length || c.c !== u.c)
|
|
1734
1734
|
return !1;
|
|
1735
|
-
var h,
|
|
1736
|
-
for (h = 0; h <
|
|
1735
|
+
var h, m = c._length;
|
|
1736
|
+
for (h = 0; h < m; h += 1)
|
|
1737
1737
|
if (c.v[h][0] !== u.v[h][0] || c.v[h][1] !== u.v[h][1] || c.o[h][0] !== u.o[h][0] || c.o[h][1] !== u.o[h][1] || c.i[h][0] !== u.i[h][0] || c.i[h][1] !== u.i[h][1])
|
|
1738
1738
|
return !1;
|
|
1739
1739
|
return !0;
|
|
@@ -1762,8 +1762,8 @@ var lottie$1 = { exports: {} };
|
|
|
1762
1762
|
}
|
|
1763
1763
|
function f(c, u, h) {
|
|
1764
1764
|
this.propType = "shape", this.comp = c.comp, this.container = c, this.elem = c, this.data = u, this.k = !1, this.kf = !1, this._mdf = !1;
|
|
1765
|
-
var
|
|
1766
|
-
this.v = shapePool.clone(
|
|
1765
|
+
var m = h === 3 ? u.pt.k : u.ks.k;
|
|
1766
|
+
this.v = shapePool.clone(m), this.pv = shapePool.clone(this.v), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.reset = i, this.effectsSequence = [];
|
|
1767
1767
|
}
|
|
1768
1768
|
function o(c) {
|
|
1769
1769
|
this.effectsSequence.push(c), this.container.addDynamicProperty(this);
|
|
@@ -1771,17 +1771,17 @@ var lottie$1 = { exports: {} };
|
|
|
1771
1771
|
f.prototype.interpolateShape = e, f.prototype.getValue = n, f.prototype.setVValue = a, f.prototype.addEffect = o;
|
|
1772
1772
|
function l(c, u, h) {
|
|
1773
1773
|
this.propType = "shape", this.comp = c.comp, this.elem = c, this.container = c, this.offsetTime = c.data.st, this.keyframes = h === 3 ? u.pt.k : u.ks.k, this.keyframesMetadata = [], this.k = !0, this.kf = !0;
|
|
1774
|
-
var
|
|
1775
|
-
this.v = shapePool.newElement(), this.v.setPathData(this.keyframes[0].s[0].c,
|
|
1774
|
+
var m = this.keyframes[0].s[0].i.length;
|
|
1775
|
+
this.v = shapePool.newElement(), this.v.setPathData(this.keyframes[0].s[0].c, m), this.pv = shapePool.clone(this.v), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.lastFrame = t, this.reset = i, this._caching = {
|
|
1776
1776
|
lastFrame: t,
|
|
1777
1777
|
lastIndex: 0
|
|
1778
1778
|
}, this.effectsSequence = [r.bind(this)];
|
|
1779
1779
|
}
|
|
1780
1780
|
l.prototype.getValue = n, l.prototype.interpolateShape = e, l.prototype.setVValue = a, l.prototype.addEffect = o;
|
|
1781
|
-
var
|
|
1781
|
+
var v = function() {
|
|
1782
1782
|
var c = roundCorner;
|
|
1783
|
-
function u(h,
|
|
1784
|
-
this.v = shapePool.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d =
|
|
1783
|
+
function u(h, m) {
|
|
1784
|
+
this.v = shapePool.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d = m.d, this.elem = h, this.comp = h.comp, this.frameId = -1, this.initDynamicPropertyContainer(h), this.p = PropertyFactory.getProp(h, m.p, 1, 0, this), this.s = PropertyFactory.getProp(h, m.s, 1, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertEllToPath());
|
|
1785
1785
|
}
|
|
1786
1786
|
return u.prototype = {
|
|
1787
1787
|
reset: i,
|
|
@@ -1789,11 +1789,11 @@ var lottie$1 = { exports: {} };
|
|
|
1789
1789
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertEllToPath());
|
|
1790
1790
|
},
|
|
1791
1791
|
convertEllToPath: function() {
|
|
1792
|
-
var
|
|
1793
|
-
w.v[0][0] =
|
|
1792
|
+
var m = this.p.v[0], x = this.p.v[1], C = this.s.v[0] / 2, T = this.s.v[1] / 2, M = this.d !== 3, w = this.v;
|
|
1793
|
+
w.v[0][0] = m, w.v[0][1] = x - T, w.v[1][0] = M ? m + C : m - C, w.v[1][1] = x, w.v[2][0] = m, w.v[2][1] = x + T, w.v[3][0] = M ? m - C : m + C, w.v[3][1] = x, w.i[0][0] = M ? m - C * c : m + C * c, w.i[0][1] = x - T, w.i[1][0] = M ? m + C : m - C, w.i[1][1] = x - T * c, w.i[2][0] = M ? m + C * c : m - C * c, w.i[2][1] = x + T, w.i[3][0] = M ? m - C : m + C, w.i[3][1] = x + T * c, w.o[0][0] = M ? m + C * c : m - C * c, w.o[0][1] = x - T, w.o[1][0] = M ? m + C : m - C, w.o[1][1] = x + T * c, w.o[2][0] = M ? m - C * c : m + C * c, w.o[2][1] = x + T, w.o[3][0] = M ? m - C : m + C, w.o[3][1] = x - T * c;
|
|
1794
1794
|
}
|
|
1795
1795
|
}, extendPrototype([DynamicPropertyContainer], u), u;
|
|
1796
|
-
}(),
|
|
1796
|
+
}(), _ = function() {
|
|
1797
1797
|
function c(u, h) {
|
|
1798
1798
|
this.v = shapePool.newElement(), this.v.setPathData(!0, 0), this.elem = u, this.comp = u.comp, this.data = h, this.frameId = -1, this.d = h.d, this.initDynamicPropertyContainer(u), h.sy === 1 ? (this.ir = PropertyFactory.getProp(u, h.ir, 0, 0, this), this.is = PropertyFactory.getProp(u, h.is, 0, 0.01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = PropertyFactory.getProp(u, h.pt, 0, 0, this), this.p = PropertyFactory.getProp(u, h.p, 1, 0, this), this.r = PropertyFactory.getProp(u, h.r, 0, degToRads, this), this.or = PropertyFactory.getProp(u, h.or, 0, 0, this), this.os = PropertyFactory.getProp(u, h.os, 0, 0.01, this), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath());
|
|
1799
1799
|
}
|
|
@@ -1803,20 +1803,20 @@ var lottie$1 = { exports: {} };
|
|
|
1803
1803
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
1804
1804
|
},
|
|
1805
1805
|
convertStarToPath: function() {
|
|
1806
|
-
var h = Math.floor(this.pt.v) * 2,
|
|
1806
|
+
var h = Math.floor(this.pt.v) * 2, m = Math.PI * 2 / h, x = !0, C = this.or.v, T = this.ir.v, M = this.os.v, w = this.is.v, D = 2 * Math.PI * C / (h * 2), L = 2 * Math.PI * T / (h * 2), I, R, G, V, P = -Math.PI / 2;
|
|
1807
1807
|
P += this.r.v;
|
|
1808
|
-
var
|
|
1808
|
+
var A = this.data.d === 3 ? -1 : 1;
|
|
1809
1809
|
for (this.v._length = 0, I = 0; I < h; I += 1) {
|
|
1810
|
-
R = x ? C :
|
|
1811
|
-
var
|
|
1812
|
-
|
|
1810
|
+
R = x ? C : T, G = x ? M : w, V = x ? D : L;
|
|
1811
|
+
var y = R * Math.cos(P), S = R * Math.sin(P), F = y === 0 && S === 0 ? 0 : S / Math.sqrt(y * y + S * S), k = y === 0 && S === 0 ? 0 : -y / Math.sqrt(y * y + S * S);
|
|
1812
|
+
y += +this.p.v[0], S += +this.p.v[1], this.v.setTripleAt(y, S, y - F * V * G * A, S - k * V * G * A, y + F * V * G * A, S + k * V * G * A, I, !0), x = !x, P += m * A;
|
|
1813
1813
|
}
|
|
1814
1814
|
},
|
|
1815
1815
|
convertPolygonToPath: function() {
|
|
1816
|
-
var h = Math.floor(this.pt.v),
|
|
1816
|
+
var h = Math.floor(this.pt.v), m = Math.PI * 2 / h, x = this.or.v, C = this.os.v, T = 2 * Math.PI * x / (h * 4), M, w = -Math.PI * 0.5, D = this.data.d === 3 ? -1 : 1;
|
|
1817
1817
|
for (w += this.r.v, this.v._length = 0, M = 0; M < h; M += 1) {
|
|
1818
1818
|
var L = x * Math.cos(w), I = x * Math.sin(w), R = L === 0 && I === 0 ? 0 : I / Math.sqrt(L * L + I * I), G = L === 0 && I === 0 ? 0 : -L / Math.sqrt(L * L + I * I);
|
|
1819
|
-
L += +this.p.v[0], I += +this.p.v[1], this.v.setTripleAt(L, I, L - R *
|
|
1819
|
+
L += +this.p.v[0], I += +this.p.v[1], this.v.setTripleAt(L, I, L - R * T * C * D, I - G * T * C * D, L + R * T * C * D, I + G * T * C * D, M, !0), w += m * D;
|
|
1820
1820
|
}
|
|
1821
1821
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
1822
1822
|
}
|
|
@@ -1827,8 +1827,8 @@ var lottie$1 = { exports: {} };
|
|
|
1827
1827
|
}
|
|
1828
1828
|
return c.prototype = {
|
|
1829
1829
|
convertRectToPath: function() {
|
|
1830
|
-
var h = this.p.v[0],
|
|
1831
|
-
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(h + x,
|
|
1830
|
+
var h = this.p.v[0], m = this.p.v[1], x = this.s.v[0] / 2, C = this.s.v[1] / 2, T = bmMin(x, C, this.r.v), M = T * (1 - roundCorner);
|
|
1831
|
+
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(h + x, m - C + T, h + x, m - C + T, h + x, m - C + M, 0, !0), this.v.setTripleAt(h + x, m + C - T, h + x, m + C - M, h + x, m + C - T, 1, !0), T !== 0 ? (this.v.setTripleAt(h + x - T, m + C, h + x - T, m + C, h + x - M, m + C, 2, !0), this.v.setTripleAt(h - x + T, m + C, h - x + M, m + C, h - x + T, m + C, 3, !0), this.v.setTripleAt(h - x, m + C - T, h - x, m + C - T, h - x, m + C - M, 4, !0), this.v.setTripleAt(h - x, m - C + T, h - x, m - C + M, h - x, m - C + T, 5, !0), this.v.setTripleAt(h - x + T, m - C, h - x + T, m - C, h - x + M, m - C, 6, !0), this.v.setTripleAt(h + x - T, m - C, h + x - M, m - C, h + x - T, m - C, 7, !0)) : (this.v.setTripleAt(h - x, m + C, h - x + M, m + C, h - x, m + C, 2), this.v.setTripleAt(h - x, m - C, h - x, m - C + M, h - x, m - C, 3))) : (this.v.setTripleAt(h + x, m - C + T, h + x, m - C + M, h + x, m - C + T, 0, !0), T !== 0 ? (this.v.setTripleAt(h + x - T, m - C, h + x - T, m - C, h + x - M, m - C, 1, !0), this.v.setTripleAt(h - x + T, m - C, h - x + M, m - C, h - x + T, m - C, 2, !0), this.v.setTripleAt(h - x, m - C + T, h - x, m - C + T, h - x, m - C + M, 3, !0), this.v.setTripleAt(h - x, m + C - T, h - x, m + C - M, h - x, m + C - T, 4, !0), this.v.setTripleAt(h - x + T, m + C, h - x + T, m + C, h - x + M, m + C, 5, !0), this.v.setTripleAt(h + x - T, m + C, h + x - M, m + C, h + x - T, m + C, 6, !0), this.v.setTripleAt(h + x, m + C - T, h + x, m + C - T, h + x, m + C - M, 7, !0)) : (this.v.setTripleAt(h - x, m - C, h - x + M, m - C, h - x, m - C, 1, !0), this.v.setTripleAt(h - x, m + C, h - x, m + C - M, h - x, m + C, 2, !0), this.v.setTripleAt(h + x, m + C, h + x - M, m + C, h + x, m + C, 3, !0)));
|
|
1832
1832
|
},
|
|
1833
1833
|
getValue: function() {
|
|
1834
1834
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertRectToPath());
|
|
@@ -1837,21 +1837,21 @@ var lottie$1 = { exports: {} };
|
|
|
1837
1837
|
}, extendPrototype([DynamicPropertyContainer], c), c;
|
|
1838
1838
|
}();
|
|
1839
1839
|
function b(c, u, h) {
|
|
1840
|
-
var
|
|
1840
|
+
var m;
|
|
1841
1841
|
if (h === 3 || h === 4) {
|
|
1842
1842
|
var x = h === 3 ? u.pt : u.ks, C = x.k;
|
|
1843
|
-
C.length ?
|
|
1844
|
-
} else h === 5 ?
|
|
1845
|
-
return
|
|
1843
|
+
C.length ? m = new l(c, u, h) : m = new f(c, u, h);
|
|
1844
|
+
} else h === 5 ? m = new p(c, u) : h === 6 ? m = new v(c, u) : h === 7 && (m = new _(c, u));
|
|
1845
|
+
return m.k && c.addDynamicProperty(m), m;
|
|
1846
1846
|
}
|
|
1847
1847
|
function g() {
|
|
1848
1848
|
return f;
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1850
|
+
function d() {
|
|
1851
1851
|
return l;
|
|
1852
1852
|
}
|
|
1853
1853
|
var E = {};
|
|
1854
|
-
return E.getShapeProp = b, E.getConstructorFunction = g, E.getKeyframedConstructorFunction =
|
|
1854
|
+
return E.getShapeProp = b, E.getConstructorFunction = g, E.getKeyframedConstructorFunction = d, E;
|
|
1855
1855
|
}();
|
|
1856
1856
|
/*!
|
|
1857
1857
|
Transformation Matrix v2.0
|
|
@@ -1866,147 +1866,147 @@ var lottie$1 = { exports: {} };
|
|
|
1866
1866
|
function s() {
|
|
1867
1867
|
return 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;
|
|
1868
1868
|
}
|
|
1869
|
-
function a(
|
|
1870
|
-
if (
|
|
1869
|
+
function a(y) {
|
|
1870
|
+
if (y === 0)
|
|
1871
1871
|
return this;
|
|
1872
|
-
var
|
|
1873
|
-
return this._t(
|
|
1872
|
+
var S = t(y), F = e(y);
|
|
1873
|
+
return this._t(S, -F, 0, 0, F, S, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
1874
1874
|
}
|
|
1875
|
-
function n(
|
|
1876
|
-
if (
|
|
1875
|
+
function n(y) {
|
|
1876
|
+
if (y === 0)
|
|
1877
1877
|
return this;
|
|
1878
|
-
var
|
|
1879
|
-
return this._t(1, 0, 0, 0, 0,
|
|
1878
|
+
var S = t(y), F = e(y);
|
|
1879
|
+
return this._t(1, 0, 0, 0, 0, S, -F, 0, 0, F, S, 0, 0, 0, 0, 1);
|
|
1880
1880
|
}
|
|
1881
|
-
function f(
|
|
1882
|
-
if (
|
|
1881
|
+
function f(y) {
|
|
1882
|
+
if (y === 0)
|
|
1883
1883
|
return this;
|
|
1884
|
-
var
|
|
1885
|
-
return this._t(
|
|
1884
|
+
var S = t(y), F = e(y);
|
|
1885
|
+
return this._t(S, 0, F, 0, 0, 1, 0, 0, -F, 0, S, 0, 0, 0, 0, 1);
|
|
1886
1886
|
}
|
|
1887
|
-
function o(
|
|
1888
|
-
if (
|
|
1887
|
+
function o(y) {
|
|
1888
|
+
if (y === 0)
|
|
1889
1889
|
return this;
|
|
1890
|
-
var
|
|
1891
|
-
return this._t(
|
|
1890
|
+
var S = t(y), F = e(y);
|
|
1891
|
+
return this._t(S, -F, 0, 0, F, S, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
1892
1892
|
}
|
|
1893
|
-
function l(
|
|
1894
|
-
return this._t(1,
|
|
1893
|
+
function l(y, S) {
|
|
1894
|
+
return this._t(1, S, y, 1, 0, 0);
|
|
1895
1895
|
}
|
|
1896
|
-
function y
|
|
1897
|
-
return this.shear(r(
|
|
1896
|
+
function v(y, S) {
|
|
1897
|
+
return this.shear(r(y), r(S));
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1900
|
-
var F = t(
|
|
1901
|
-
return this._t(F, k, 0, 0, -k, F, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, r(
|
|
1899
|
+
function _(y, S) {
|
|
1900
|
+
var F = t(S), k = e(S);
|
|
1901
|
+
return this._t(F, k, 0, 0, -k, F, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, r(y), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(F, -k, 0, 0, k, F, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
1902
1902
|
}
|
|
1903
|
-
function p(
|
|
1904
|
-
return !F && F !== 0 && (F = 1),
|
|
1903
|
+
function p(y, S, F) {
|
|
1904
|
+
return !F && F !== 0 && (F = 1), y === 1 && S === 1 && F === 1 ? this : this._t(y, 0, 0, 0, 0, S, 0, 0, 0, 0, F, 0, 0, 0, 0, 1);
|
|
1905
1905
|
}
|
|
1906
|
-
function b(
|
|
1907
|
-
return this.props[0] =
|
|
1906
|
+
function b(y, S, F, k, B, z, N, j, H, q, Y, Q, X, $, Z, W) {
|
|
1907
|
+
return this.props[0] = y, this.props[1] = S, this.props[2] = F, this.props[3] = k, this.props[4] = B, this.props[5] = z, this.props[6] = N, this.props[7] = j, this.props[8] = H, this.props[9] = q, this.props[10] = Y, this.props[11] = Q, this.props[12] = X, this.props[13] = $, this.props[14] = Z, this.props[15] = W, this;
|
|
1908
1908
|
}
|
|
1909
|
-
function g(
|
|
1910
|
-
return F = F || 0,
|
|
1909
|
+
function g(y, S, F) {
|
|
1910
|
+
return F = F || 0, y !== 0 || S !== 0 || F !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, y, S, F, 1) : this;
|
|
1911
1911
|
}
|
|
1912
|
-
function
|
|
1912
|
+
function d(y, S, F, k, B, z, N, j, H, q, Y, Q, X, $, Z, W) {
|
|
1913
1913
|
var O = this.props;
|
|
1914
|
-
if (
|
|
1915
|
-
return O[12] = O[12] *
|
|
1916
|
-
var et = O[0], at = O[1], rt = O[2], tt = O[3], it = O[4], st = O[5],
|
|
1917
|
-
return O[0] = et *
|
|
1914
|
+
if (y === 1 && S === 0 && F === 0 && k === 0 && B === 0 && z === 1 && N === 0 && j === 0 && H === 0 && q === 0 && Y === 1 && Q === 0)
|
|
1915
|
+
return O[12] = O[12] * y + O[15] * X, O[13] = O[13] * z + O[15] * $, O[14] = O[14] * Y + O[15] * Z, O[15] *= W, this._identityCalculated = !1, this;
|
|
1916
|
+
var et = O[0], at = O[1], rt = O[2], tt = O[3], it = O[4], st = O[5], J = O[6], nt = O[7], ot = O[8], K = O[9], ft = O[10], U = O[11], ht = O[12], lt = O[13], pt = O[14], ct = O[15];
|
|
1917
|
+
return O[0] = et * y + at * B + rt * H + tt * X, O[1] = et * S + at * z + rt * q + tt * $, O[2] = et * F + at * N + rt * Y + tt * Z, O[3] = et * k + at * j + rt * Q + tt * W, O[4] = it * y + st * B + J * H + nt * X, O[5] = it * S + st * z + J * q + nt * $, O[6] = it * F + st * N + J * Y + nt * Z, O[7] = it * k + st * j + J * Q + nt * W, O[8] = ot * y + K * B + ft * H + U * X, O[9] = ot * S + K * z + ft * q + U * $, O[10] = ot * F + K * N + ft * Y + U * Z, O[11] = ot * k + K * j + ft * Q + U * W, O[12] = ht * y + lt * B + pt * H + ct * X, O[13] = ht * S + lt * z + pt * q + ct * $, O[14] = ht * F + lt * N + pt * Y + ct * Z, O[15] = ht * k + lt * j + pt * Q + ct * W, this._identityCalculated = !1, this;
|
|
1918
1918
|
}
|
|
1919
|
-
function E(
|
|
1920
|
-
var
|
|
1921
|
-
return this.transform(
|
|
1919
|
+
function E(y) {
|
|
1920
|
+
var S = y.props;
|
|
1921
|
+
return this.transform(S[0], S[1], S[2], S[3], S[4], S[5], S[6], S[7], S[8], S[9], S[10], S[11], S[12], S[13], S[14], S[15]);
|
|
1922
1922
|
}
|
|
1923
1923
|
function c() {
|
|
1924
1924
|
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;
|
|
1925
1925
|
}
|
|
1926
|
-
function u(
|
|
1927
|
-
for (var
|
|
1928
|
-
if (
|
|
1926
|
+
function u(y) {
|
|
1927
|
+
for (var S = 0; S < 16; ) {
|
|
1928
|
+
if (y.props[S] !== this.props[S])
|
|
1929
1929
|
return !1;
|
|
1930
|
-
|
|
1930
|
+
S += 1;
|
|
1931
1931
|
}
|
|
1932
1932
|
return !0;
|
|
1933
1933
|
}
|
|
1934
|
-
function h(
|
|
1935
|
-
var
|
|
1936
|
-
for (
|
|
1937
|
-
|
|
1938
|
-
return
|
|
1934
|
+
function h(y) {
|
|
1935
|
+
var S;
|
|
1936
|
+
for (S = 0; S < 16; S += 1)
|
|
1937
|
+
y.props[S] = this.props[S];
|
|
1938
|
+
return y;
|
|
1939
1939
|
}
|
|
1940
|
-
function
|
|
1941
|
-
var
|
|
1942
|
-
for (
|
|
1943
|
-
this.props[
|
|
1940
|
+
function m(y) {
|
|
1941
|
+
var S;
|
|
1942
|
+
for (S = 0; S < 16; S += 1)
|
|
1943
|
+
this.props[S] = y[S];
|
|
1944
1944
|
}
|
|
1945
|
-
function x(
|
|
1945
|
+
function x(y, S, F) {
|
|
1946
1946
|
return {
|
|
1947
|
-
x:
|
|
1948
|
-
y:
|
|
1949
|
-
z:
|
|
1947
|
+
x: y * this.props[0] + S * this.props[4] + F * this.props[8] + this.props[12],
|
|
1948
|
+
y: y * this.props[1] + S * this.props[5] + F * this.props[9] + this.props[13],
|
|
1949
|
+
z: y * this.props[2] + S * this.props[6] + F * this.props[10] + this.props[14]
|
|
1950
1950
|
};
|
|
1951
1951
|
}
|
|
1952
|
-
function C(
|
|
1953
|
-
return
|
|
1952
|
+
function C(y, S, F) {
|
|
1953
|
+
return y * this.props[0] + S * this.props[4] + F * this.props[8] + this.props[12];
|
|
1954
1954
|
}
|
|
1955
|
-
function
|
|
1956
|
-
return
|
|
1955
|
+
function T(y, S, F) {
|
|
1956
|
+
return y * this.props[1] + S * this.props[5] + F * this.props[9] + this.props[13];
|
|
1957
1957
|
}
|
|
1958
|
-
function M(
|
|
1959
|
-
return
|
|
1958
|
+
function M(y, S, F) {
|
|
1959
|
+
return y * this.props[2] + S * this.props[6] + F * this.props[10] + this.props[14];
|
|
1960
1960
|
}
|
|
1961
1961
|
function w() {
|
|
1962
|
-
var
|
|
1963
|
-
return j.props[0] =
|
|
1962
|
+
var y = this.props[0] * this.props[5] - this.props[1] * this.props[4], S = this.props[5] / y, F = -this.props[1] / y, k = -this.props[4] / y, B = this.props[0] / y, z = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / y, N = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / y, j = new Matrix();
|
|
1963
|
+
return j.props[0] = S, j.props[1] = F, j.props[4] = k, j.props[5] = B, j.props[12] = z, j.props[13] = N, j;
|
|
1964
1964
|
}
|
|
1965
|
-
function D(
|
|
1966
|
-
var
|
|
1967
|
-
return
|
|
1965
|
+
function D(y) {
|
|
1966
|
+
var S = this.getInverseMatrix();
|
|
1967
|
+
return S.applyToPointArray(y[0], y[1], y[2] || 0);
|
|
1968
1968
|
}
|
|
1969
|
-
function L(
|
|
1970
|
-
var
|
|
1971
|
-
for (
|
|
1972
|
-
k[
|
|
1969
|
+
function L(y) {
|
|
1970
|
+
var S, F = y.length, k = [];
|
|
1971
|
+
for (S = 0; S < F; S += 1)
|
|
1972
|
+
k[S] = D(y[S]);
|
|
1973
1973
|
return k;
|
|
1974
1974
|
}
|
|
1975
|
-
function I(
|
|
1975
|
+
function I(y, S, F) {
|
|
1976
1976
|
var k = createTypedArray("float32", 6);
|
|
1977
1977
|
if (this.isIdentity())
|
|
1978
|
-
k[0] =
|
|
1978
|
+
k[0] = y[0], k[1] = y[1], k[2] = S[0], k[3] = S[1], k[4] = F[0], k[5] = F[1];
|
|
1979
1979
|
else {
|
|
1980
1980
|
var B = this.props[0], z = this.props[1], N = this.props[4], j = this.props[5], H = this.props[12], q = this.props[13];
|
|
1981
|
-
k[0] =
|
|
1981
|
+
k[0] = y[0] * B + y[1] * N + H, k[1] = y[0] * z + y[1] * j + q, k[2] = S[0] * B + S[1] * N + H, k[3] = S[0] * z + S[1] * j + q, k[4] = F[0] * B + F[1] * N + H, k[5] = F[0] * z + F[1] * j + q;
|
|
1982
1982
|
}
|
|
1983
1983
|
return k;
|
|
1984
1984
|
}
|
|
1985
|
-
function R(
|
|
1985
|
+
function R(y, S, F) {
|
|
1986
1986
|
var k;
|
|
1987
|
-
return this.isIdentity() ? k = [
|
|
1987
|
+
return this.isIdentity() ? k = [y, S, F] : k = [y * this.props[0] + S * this.props[4] + F * this.props[8] + this.props[12], y * this.props[1] + S * this.props[5] + F * this.props[9] + this.props[13], y * this.props[2] + S * this.props[6] + F * this.props[10] + this.props[14]], k;
|
|
1988
1988
|
}
|
|
1989
|
-
function G(
|
|
1989
|
+
function G(y, S) {
|
|
1990
1990
|
if (this.isIdentity())
|
|
1991
|
-
return
|
|
1991
|
+
return y + "," + S;
|
|
1992
1992
|
var F = this.props;
|
|
1993
|
-
return Math.round((
|
|
1993
|
+
return Math.round((y * F[0] + S * F[4] + F[12]) * 100) / 100 + "," + Math.round((y * F[1] + S * F[5] + F[13]) * 100) / 100;
|
|
1994
1994
|
}
|
|
1995
1995
|
function V() {
|
|
1996
|
-
for (var
|
|
1997
|
-
F += i(
|
|
1996
|
+
for (var y = 0, S = this.props, F = "matrix3d(", k = 1e4; y < 16; )
|
|
1997
|
+
F += i(S[y] * k) / k, F += y === 15 ? ")" : ",", y += 1;
|
|
1998
1998
|
return F;
|
|
1999
1999
|
}
|
|
2000
|
-
function P(
|
|
2001
|
-
var
|
|
2002
|
-
return
|
|
2000
|
+
function P(y) {
|
|
2001
|
+
var S = 1e4;
|
|
2002
|
+
return y < 1e-6 && y > 0 || y > -1e-6 && y < 0 ? i(y * S) / S : y;
|
|
2003
2003
|
}
|
|
2004
|
-
function
|
|
2005
|
-
var
|
|
2006
|
-
return "matrix(" +
|
|
2004
|
+
function A() {
|
|
2005
|
+
var y = this.props, S = P(y[0]), F = P(y[1]), k = P(y[4]), B = P(y[5]), z = P(y[12]), N = P(y[13]);
|
|
2006
|
+
return "matrix(" + S + "," + F + "," + k + "," + B + "," + z + "," + N + ")";
|
|
2007
2007
|
}
|
|
2008
2008
|
return function() {
|
|
2009
|
-
this.reset = s, this.rotate = a, this.rotateX = n, this.rotateY = f, this.rotateZ = o, this.skew =
|
|
2009
|
+
this.reset = s, this.rotate = a, this.rotateX = n, this.rotateY = f, this.rotateZ = o, this.skew = v, this.skewFromAxis = _, this.shear = l, this.scale = p, this.setTransform = b, this.translate = g, this.transform = d, this.multiply = E, this.applyToPoint = x, this.applyToX = C, this.applyToY = T, this.applyToZ = M, this.applyToPointArray = R, this.applyToTriplePoints = I, this.applyToPointStringified = G, this.toCSS = V, this.to2dCSS = A, this.clone = h, this.cloneFromProps = m, this.equals = u, this.inversePoints = L, this.inversePoint = D, this.getInverseMatrix = w, this._t = this.transform, this.isIdentity = c, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
2010
2010
|
};
|
|
2011
2011
|
}();
|
|
2012
2012
|
function _typeof$3(t) {
|
|
@@ -2145,8 +2145,8 @@ var lottie$1 = { exports: {} };
|
|
|
2145
2145
|
var n = [], f, o = a.length, l;
|
|
2146
2146
|
for (f = 0; f < o; f += 1)
|
|
2147
2147
|
if (l = a[f], !(l.e * s < i || l.s * s > i + r)) {
|
|
2148
|
-
var
|
|
2149
|
-
l.s * s <= i ?
|
|
2148
|
+
var v, _;
|
|
2149
|
+
l.s * s <= i ? v = 0 : v = (l.s * s - i) / r, l.e * s >= i + r ? _ = 1 : _ = (l.e * s - i) / r, n.push([v, _]);
|
|
2150
2150
|
}
|
|
2151
2151
|
return n.length || n.push([0, 0]), n;
|
|
2152
2152
|
}, TrimModifier.prototype.releasePathsData = function(t) {
|
|
@@ -2165,7 +2165,7 @@ var lottie$1 = { exports: {} };
|
|
|
2165
2165
|
e = Math.round(e * 1e4) * 1e-4, r = Math.round(r * 1e4) * 1e-4, this.sValue = e, this.eValue = r;
|
|
2166
2166
|
} else
|
|
2167
2167
|
e = this.sValue, r = this.eValue;
|
|
2168
|
-
var a, n, f = this.shapes.length, o, l,
|
|
2168
|
+
var a, n, f = this.shapes.length, o, l, v, _, p, b = 0;
|
|
2169
2169
|
if (r === e)
|
|
2170
2170
|
for (n = 0; n < f; n += 1)
|
|
2171
2171
|
this.shapes[n].localShapeCollection.releaseShapes(), this.shapes[n].shape._mdf = !0, this.shapes[n].shape.paths = this.shapes[n].localShapeCollection, this._mdf && (this.shapes[n].pathsData.length = 0);
|
|
@@ -2174,51 +2174,51 @@ var lottie$1 = { exports: {} };
|
|
|
2174
2174
|
for (n = 0; n < f; n += 1)
|
|
2175
2175
|
this.shapes[n].pathsData.length = 0, this.shapes[n].shape._mdf = !0;
|
|
2176
2176
|
} else {
|
|
2177
|
-
var g = [],
|
|
2177
|
+
var g = [], d, E;
|
|
2178
2178
|
for (n = 0; n < f; n += 1)
|
|
2179
|
-
if (
|
|
2180
|
-
|
|
2179
|
+
if (d = this.shapes[n], !d.shape._mdf && !this._mdf && !t && this.m !== 2)
|
|
2180
|
+
d.shape.paths = d.localShapeCollection;
|
|
2181
2181
|
else {
|
|
2182
|
-
if (a =
|
|
2183
|
-
p =
|
|
2182
|
+
if (a = d.shape.paths, l = a._length, p = 0, !d.shape._mdf && d.pathsData.length)
|
|
2183
|
+
p = d.totalShapeLength;
|
|
2184
2184
|
else {
|
|
2185
|
-
for (
|
|
2186
|
-
|
|
2187
|
-
|
|
2185
|
+
for (v = this.releasePathsData(d.pathsData), o = 0; o < l; o += 1)
|
|
2186
|
+
_ = bez.getSegmentsLength(a.shapes[o]), v.push(_), p += _.totalLength;
|
|
2187
|
+
d.totalShapeLength = p, d.pathsData = v;
|
|
2188
2188
|
}
|
|
2189
|
-
b += p,
|
|
2189
|
+
b += p, d.shape._mdf = !0;
|
|
2190
2190
|
}
|
|
2191
|
-
var c = e, u = r, h = 0,
|
|
2191
|
+
var c = e, u = r, h = 0, m;
|
|
2192
2192
|
for (n = f - 1; n >= 0; n -= 1)
|
|
2193
|
-
if (
|
|
2194
|
-
for (E =
|
|
2195
|
-
c =
|
|
2196
|
-
s:
|
|
2197
|
-
e:
|
|
2193
|
+
if (d = this.shapes[n], d.shape._mdf) {
|
|
2194
|
+
for (E = d.localShapeCollection, E.releaseShapes(), this.m === 2 && f > 1 ? (m = this.calculateShapeEdges(e, r, d.totalShapeLength, h, b), h += d.totalShapeLength) : m = [[c, u]], l = m.length, o = 0; o < l; o += 1) {
|
|
2195
|
+
c = m[o][0], u = m[o][1], g.length = 0, u <= 1 ? g.push({
|
|
2196
|
+
s: d.totalShapeLength * c,
|
|
2197
|
+
e: d.totalShapeLength * u
|
|
2198
2198
|
}) : c >= 1 ? g.push({
|
|
2199
|
-
s:
|
|
2200
|
-
e:
|
|
2199
|
+
s: d.totalShapeLength * (c - 1),
|
|
2200
|
+
e: d.totalShapeLength * (u - 1)
|
|
2201
2201
|
}) : (g.push({
|
|
2202
|
-
s:
|
|
2203
|
-
e:
|
|
2202
|
+
s: d.totalShapeLength * c,
|
|
2203
|
+
e: d.totalShapeLength
|
|
2204
2204
|
}), g.push({
|
|
2205
2205
|
s: 0,
|
|
2206
|
-
e:
|
|
2206
|
+
e: d.totalShapeLength * (u - 1)
|
|
2207
2207
|
}));
|
|
2208
|
-
var x = this.addShapes(
|
|
2208
|
+
var x = this.addShapes(d, g[0]);
|
|
2209
2209
|
if (g[0].s !== g[0].e) {
|
|
2210
2210
|
if (g.length > 1) {
|
|
2211
|
-
var C =
|
|
2211
|
+
var C = d.shape.paths.shapes[d.shape.paths._length - 1];
|
|
2212
2212
|
if (C.c) {
|
|
2213
|
-
var
|
|
2214
|
-
this.addPaths(x, E), x = this.addShapes(
|
|
2213
|
+
var T = x.pop();
|
|
2214
|
+
this.addPaths(x, E), x = this.addShapes(d, g[1], T);
|
|
2215
2215
|
} else
|
|
2216
|
-
this.addPaths(x, E), x = this.addShapes(
|
|
2216
|
+
this.addPaths(x, E), x = this.addShapes(d, g[1]);
|
|
2217
2217
|
}
|
|
2218
2218
|
this.addPaths(x, E);
|
|
2219
2219
|
}
|
|
2220
2220
|
}
|
|
2221
|
-
|
|
2221
|
+
d.shape.paths = E;
|
|
2222
2222
|
}
|
|
2223
2223
|
}
|
|
2224
2224
|
}, TrimModifier.prototype.addPaths = function(t, e) {
|
|
@@ -2230,27 +2230,27 @@ var lottie$1 = { exports: {} };
|
|
|
2230
2230
|
}, TrimModifier.prototype.addSegmentFromArray = function(t, e, r, i) {
|
|
2231
2231
|
e.setXYAt(t[1], t[5], "o", r), e.setXYAt(t[2], t[6], "i", r + 1), i && e.setXYAt(t[0], t[4], "v", r), e.setXYAt(t[3], t[7], "v", r + 1);
|
|
2232
2232
|
}, TrimModifier.prototype.addShapes = function(t, e, r) {
|
|
2233
|
-
var i = t.pathsData, s = t.shape.paths.shapes, a, n = t.shape.paths._length, f, o, l = 0,
|
|
2234
|
-
for (r ? (
|
|
2233
|
+
var i = t.pathsData, s = t.shape.paths.shapes, a, n = t.shape.paths._length, f, o, l = 0, v, _, p, b, g = [], d, E = !0;
|
|
2234
|
+
for (r ? (_ = r._length, d = r._length) : (r = shapePool.newElement(), _ = 0, d = 0), g.push(r), a = 0; a < n; a += 1) {
|
|
2235
2235
|
for (p = i[a].lengths, r.c = s[a].c, o = s[a].c ? p.length : p.length + 1, f = 1; f < o; f += 1)
|
|
2236
|
-
if (
|
|
2237
|
-
l +=
|
|
2236
|
+
if (v = p[f - 1], l + v.addedLength < e.s)
|
|
2237
|
+
l += v.addedLength, r.c = !1;
|
|
2238
2238
|
else if (l > e.e) {
|
|
2239
2239
|
r.c = !1;
|
|
2240
2240
|
break;
|
|
2241
2241
|
} else
|
|
2242
|
-
e.s <= l && e.e >= l +
|
|
2242
|
+
e.s <= l && e.e >= l + v.addedLength ? (this.addSegment(s[a].v[f - 1], s[a].o[f - 1], s[a].i[f], s[a].v[f], r, _, E), E = !1) : (b = bez.getNewSegment(s[a].v[f - 1], s[a].v[f], s[a].o[f - 1], s[a].i[f], (e.s - l) / v.addedLength, (e.e - l) / v.addedLength, p[f - 1]), this.addSegmentFromArray(b, r, _, E), E = !1, r.c = !1), l += v.addedLength, _ += 1;
|
|
2243
2243
|
if (s[a].c && p.length) {
|
|
2244
|
-
if (
|
|
2244
|
+
if (v = p[f - 1], l <= e.e) {
|
|
2245
2245
|
var c = p[f - 1].addedLength;
|
|
2246
|
-
e.s <= l && e.e >= l + c ? (this.addSegment(s[a].v[f - 1], s[a].o[f - 1], s[a].i[0], s[a].v[0], r,
|
|
2246
|
+
e.s <= l && e.e >= l + c ? (this.addSegment(s[a].v[f - 1], s[a].o[f - 1], s[a].i[0], s[a].v[0], r, _, E), E = !1) : (b = bez.getNewSegment(s[a].v[f - 1], s[a].v[0], s[a].o[f - 1], s[a].i[0], (e.s - l) / c, (e.e - l) / c, p[f - 1]), this.addSegmentFromArray(b, r, _, E), E = !1, r.c = !1);
|
|
2247
2247
|
} else
|
|
2248
2248
|
r.c = !1;
|
|
2249
|
-
l +=
|
|
2249
|
+
l += v.addedLength, _ += 1;
|
|
2250
2250
|
}
|
|
2251
|
-
if (r._length && (r.setXYAt(r.v[
|
|
2251
|
+
if (r._length && (r.setXYAt(r.v[d][0], r.v[d][1], "i", d), r.setXYAt(r.v[r._length - 1][0], r.v[r._length - 1][1], "o", r._length - 1)), l > e.e)
|
|
2252
2252
|
break;
|
|
2253
|
-
a < n - 1 && (r = shapePool.newElement(), E = !0, g.push(r),
|
|
2253
|
+
a < n - 1 && (r = shapePool.newElement(), E = !0, g.push(r), _ = 0);
|
|
2254
2254
|
}
|
|
2255
2255
|
return g;
|
|
2256
2256
|
};
|
|
@@ -2265,9 +2265,9 @@ var lottie$1 = { exports: {} };
|
|
|
2265
2265
|
i[0] /= s, i[1] /= s;
|
|
2266
2266
|
var n = shapePool.newElement();
|
|
2267
2267
|
n.c = t.c;
|
|
2268
|
-
var f, o, l,
|
|
2268
|
+
var f, o, l, v, _, p;
|
|
2269
2269
|
for (a = 0; a < s; a += 1)
|
|
2270
|
-
f = t.v[a][0] + (i[0] - t.v[a][0]) * r, o = t.v[a][1] + (i[1] - t.v[a][1]) * r, l = t.o[a][0] + (i[0] - t.o[a][0]) * -r,
|
|
2270
|
+
f = t.v[a][0] + (i[0] - t.v[a][0]) * r, o = t.v[a][1] + (i[1] - t.v[a][1]) * r, l = t.o[a][0] + (i[0] - t.o[a][0]) * -r, v = t.o[a][1] + (i[1] - t.o[a][1]) * -r, _ = t.i[a][0] + (i[0] - t.i[a][0]) * -r, p = t.i[a][1] + (i[1] - t.i[a][1]) * -r, n.setTripleAt(f, o, l, v, _, p, a);
|
|
2271
2271
|
return n;
|
|
2272
2272
|
}, PuckerAndBloatModifier.prototype.processShapes = function(t) {
|
|
2273
2273
|
var e, r, i = this.shapes.length, s, a, n = this.amount.v;
|
|
@@ -2293,16 +2293,16 @@ var lottie$1 = { exports: {} };
|
|
|
2293
2293
|
if (this._isDirty && (this.precalculateMatrix(), this._isDirty = !1), this.iterateDynamicProperties(), this._mdf || o) {
|
|
2294
2294
|
var l;
|
|
2295
2295
|
if (this.v.cloneFromProps(this.pre.props), this.appliedTransformations < 1 && this.v.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.appliedTransformations < 2 && this.v.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && this.appliedTransformations < 3 && this.v.skewFromAxis(-this.sk.v, this.sa.v), this.r && this.appliedTransformations < 4 ? this.v.rotate(-this.r.v) : !this.r && this.appliedTransformations < 4 && this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.autoOriented) {
|
|
2296
|
-
var
|
|
2296
|
+
var v, _;
|
|
2297
2297
|
if (l = this.elem.globalData.frameRate, this.p && this.p.keyframes && this.p.getValueAtTime)
|
|
2298
|
-
this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (
|
|
2298
|
+
this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (v = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / l, 0), _ = this.p.getValueAtTime(this.p.keyframes[0].t / l, 0)) : this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t ? (v = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / l, 0), _ = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - 0.05) / l, 0)) : (v = this.p.pv, _ = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - 0.01) / l, this.p.offsetTime));
|
|
2299
2299
|
else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
|
|
2300
|
-
|
|
2300
|
+
v = [], _ = [];
|
|
2301
2301
|
var p = this.px, b = this.py;
|
|
2302
|
-
p._caching.lastFrame + p.offsetTime <= p.keyframes[0].t ? (
|
|
2302
|
+
p._caching.lastFrame + p.offsetTime <= p.keyframes[0].t ? (v[0] = p.getValueAtTime((p.keyframes[0].t + 0.01) / l, 0), v[1] = b.getValueAtTime((b.keyframes[0].t + 0.01) / l, 0), _[0] = p.getValueAtTime(p.keyframes[0].t / l, 0), _[1] = b.getValueAtTime(b.keyframes[0].t / l, 0)) : p._caching.lastFrame + p.offsetTime >= p.keyframes[p.keyframes.length - 1].t ? (v[0] = p.getValueAtTime(p.keyframes[p.keyframes.length - 1].t / l, 0), v[1] = b.getValueAtTime(b.keyframes[b.keyframes.length - 1].t / l, 0), _[0] = p.getValueAtTime((p.keyframes[p.keyframes.length - 1].t - 0.01) / l, 0), _[1] = b.getValueAtTime((b.keyframes[b.keyframes.length - 1].t - 0.01) / l, 0)) : (v = [p.pv, b.pv], _[0] = p.getValueAtTime((p._caching.lastFrame + p.offsetTime - 0.01) / l, p.offsetTime), _[1] = b.getValueAtTime((b._caching.lastFrame + b.offsetTime - 0.01) / l, b.offsetTime));
|
|
2303
2303
|
} else
|
|
2304
|
-
|
|
2305
|
-
this.v.rotate(-Math.atan2(
|
|
2304
|
+
_ = t, v = _;
|
|
2305
|
+
this.v.rotate(-Math.atan2(v[1] - _[1], v[0] - _[0]));
|
|
2306
2306
|
}
|
|
2307
2307
|
this.data.p && this.data.p.s ? this.data.p.z ? this.v.translate(this.px.v, this.py.v, -this.pz.v) : this.v.translate(this.px.v, this.py.v, 0) : this.v.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
|
|
2308
2308
|
}
|
|
@@ -2330,14 +2330,14 @@ var lottie$1 = { exports: {} };
|
|
|
2330
2330
|
function a(o) {
|
|
2331
2331
|
this._addDynamicProperty(o), this.elem.addDynamicProperty(o), this._isDirty = !0;
|
|
2332
2332
|
}
|
|
2333
|
-
function n(o, l,
|
|
2334
|
-
if (this.elem = o, this.frameId = -1, this.propType = "transform", this.data = l, this.v = new Matrix(), this.pre = new Matrix(), this.appliedTransformations = 0, this.initDynamicPropertyContainer(
|
|
2333
|
+
function n(o, l, v) {
|
|
2334
|
+
if (this.elem = o, this.frameId = -1, this.propType = "transform", this.data = l, this.v = new Matrix(), this.pre = new Matrix(), this.appliedTransformations = 0, this.initDynamicPropertyContainer(v || o), l.p && l.p.s ? (this.px = PropertyFactory.getProp(o, l.p.x, 0, 0, this), this.py = PropertyFactory.getProp(o, l.p.y, 0, 0, this), l.p.z && (this.pz = PropertyFactory.getProp(o, l.p.z, 0, 0, this))) : this.p = PropertyFactory.getProp(o, l.p || {
|
|
2335
2335
|
k: [0, 0, 0]
|
|
2336
2336
|
}, 1, 0, this), l.rx) {
|
|
2337
2337
|
if (this.rx = PropertyFactory.getProp(o, l.rx, 0, degToRads, this), this.ry = PropertyFactory.getProp(o, l.ry, 0, degToRads, this), this.rz = PropertyFactory.getProp(o, l.rz, 0, degToRads, this), l.or.k[0].ti) {
|
|
2338
|
-
var
|
|
2339
|
-
for (
|
|
2340
|
-
l.or.k[
|
|
2338
|
+
var _, p = l.or.k.length;
|
|
2339
|
+
for (_ = 0; _ < p; _ += 1)
|
|
2340
|
+
l.or.k[_].to = null, l.or.k[_].ti = null;
|
|
2341
2341
|
}
|
|
2342
2342
|
this.or = PropertyFactory.getProp(o, l.or, 1, degToRads, this), this.or.sh = !0;
|
|
2343
2343
|
} else
|
|
@@ -2359,8 +2359,8 @@ var lottie$1 = { exports: {} };
|
|
|
2359
2359
|
precalculateMatrix: i,
|
|
2360
2360
|
autoOrient: s
|
|
2361
2361
|
}, extendPrototype([DynamicPropertyContainer], n), n.prototype.addDynamicProperty = a, n.prototype._addDynamicProperty = DynamicPropertyContainer.prototype.addDynamicProperty;
|
|
2362
|
-
function f(o, l,
|
|
2363
|
-
return new n(o, l,
|
|
2362
|
+
function f(o, l, v) {
|
|
2363
|
+
return new n(o, l, v);
|
|
2364
2364
|
}
|
|
2365
2365
|
return {
|
|
2366
2366
|
getTransformProperty: f
|
|
@@ -2452,13 +2452,13 @@ var lottie$1 = { exports: {} };
|
|
|
2452
2452
|
var l;
|
|
2453
2453
|
for (i = 0; i <= this._groups.length - 1; i += 1) {
|
|
2454
2454
|
if (l = a < f, this._groups[i]._render = l, this.changeGroupRender(this._groups[i].it, l), !l) {
|
|
2455
|
-
var
|
|
2456
|
-
|
|
2455
|
+
var v = this.elemsData[i].it, _ = v[v.length - 1];
|
|
2456
|
+
_.transform.op.v !== 0 ? (_.transform.op._mdf = !0, _.transform.op.v = 0) : _.transform.op._mdf = !1;
|
|
2457
2457
|
}
|
|
2458
2458
|
a += 1;
|
|
2459
2459
|
}
|
|
2460
2460
|
this._currentCopies = f;
|
|
2461
|
-
var p = this.o.v, b = p % 1, g = p > 0 ? Math.floor(p) : Math.ceil(p),
|
|
2461
|
+
var p = this.o.v, b = p % 1, g = p > 0 ? Math.floor(p) : Math.ceil(p), d = this.pMatrix.props, E = this.rMatrix.props, c = this.sMatrix.props;
|
|
2462
2462
|
this.pMatrix.reset(), this.rMatrix.reset(), this.sMatrix.reset(), this.tMatrix.reset(), this.matrix.reset();
|
|
2463
2463
|
var u = 0;
|
|
2464
2464
|
if (p > 0) {
|
|
@@ -2471,13 +2471,13 @@ var lottie$1 = { exports: {} };
|
|
|
2471
2471
|
b && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -b, !0), u -= b);
|
|
2472
2472
|
}
|
|
2473
2473
|
i = this.data.m === 1 ? 0 : this._currentCopies - 1, s = this.data.m === 1 ? 1 : -1, a = this._currentCopies;
|
|
2474
|
-
for (var h,
|
|
2475
|
-
if (e = this.elemsData[i].it, r = e[e.length - 1].transform.mProps.v.props,
|
|
2476
|
-
for ((i !== 0 && s === 1 || i !== this._currentCopies - 1 && s === -1) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), this.matrix.transform(E[0], E[1], E[2], E[3], E[4], E[5], E[6], E[7], E[8], E[9], E[10], E[11], E[12], E[13], E[14], E[15]), this.matrix.transform(c[0], c[1], c[2], c[3], c[4], c[5], c[6], c[7], c[8], c[9], c[10], c[11], c[12], c[13], c[14], c[15]), this.matrix.transform(
|
|
2474
|
+
for (var h, m; a; ) {
|
|
2475
|
+
if (e = this.elemsData[i].it, r = e[e.length - 1].transform.mProps.v.props, m = r.length, e[e.length - 1].transform.mProps._mdf = !0, e[e.length - 1].transform.op._mdf = !0, e[e.length - 1].transform.op.v = this._currentCopies === 1 ? this.so.v : this.so.v + (this.eo.v - this.so.v) * (i / (this._currentCopies - 1)), u !== 0) {
|
|
2476
|
+
for ((i !== 0 && s === 1 || i !== this._currentCopies - 1 && s === -1) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), this.matrix.transform(E[0], E[1], E[2], E[3], E[4], E[5], E[6], E[7], E[8], E[9], E[10], E[11], E[12], E[13], E[14], E[15]), this.matrix.transform(c[0], c[1], c[2], c[3], c[4], c[5], c[6], c[7], c[8], c[9], c[10], c[11], c[12], c[13], c[14], c[15]), this.matrix.transform(d[0], d[1], d[2], d[3], d[4], d[5], d[6], d[7], d[8], d[9], d[10], d[11], d[12], d[13], d[14], d[15]), h = 0; h < m; h += 1)
|
|
2477
2477
|
r[h] = this.matrix.props[h];
|
|
2478
2478
|
this.matrix.reset();
|
|
2479
2479
|
} else
|
|
2480
|
-
for (this.matrix.reset(), h = 0; h <
|
|
2480
|
+
for (this.matrix.reset(), h = 0; h < m; h += 1)
|
|
2481
2481
|
r[h] = this.matrix.props[h];
|
|
2482
2482
|
u += 1, a -= 1, i += s;
|
|
2483
2483
|
}
|
|
@@ -2494,9 +2494,9 @@ var lottie$1 = { exports: {} };
|
|
|
2494
2494
|
}, RoundCornersModifier.prototype.processPath = function(t, e) {
|
|
2495
2495
|
var r = shapePool.newElement();
|
|
2496
2496
|
r.c = t.c;
|
|
2497
|
-
var i, s = t._length, a, n, f, o, l,
|
|
2497
|
+
var i, s = t._length, a, n, f, o, l, v, _ = 0, p, b, g, d, E, c;
|
|
2498
2498
|
for (i = 0; i < s; i += 1)
|
|
2499
|
-
a = t.v[i], f = t.o[i], n = t.i[i], a[0] === f[0] && a[1] === f[1] && a[0] === n[0] && a[1] === n[1] ? (i === 0 || i === s - 1) && !t.c ? (r.setTripleAt(a[0], a[1], f[0], f[1], n[0], n[1],
|
|
2499
|
+
a = t.v[i], f = t.o[i], n = t.i[i], a[0] === f[0] && a[1] === f[1] && a[0] === n[0] && a[1] === n[1] ? (i === 0 || i === s - 1) && !t.c ? (r.setTripleAt(a[0], a[1], f[0], f[1], n[0], n[1], _), _ += 1) : (i === 0 ? o = t.v[s - 1] : o = t.v[i - 1], l = Math.sqrt(Math.pow(a[0] - o[0], 2) + Math.pow(a[1] - o[1], 2)), v = l ? Math.min(l / 2, e) / l : 0, E = a[0] + (o[0] - a[0]) * v, p = E, c = a[1] - (a[1] - o[1]) * v, b = c, g = p - (p - a[0]) * roundCorner, d = b - (b - a[1]) * roundCorner, r.setTripleAt(p, b, g, d, E, c, _), _ += 1, i === s - 1 ? o = t.v[0] : o = t.v[i + 1], l = Math.sqrt(Math.pow(a[0] - o[0], 2) + Math.pow(a[1] - o[1], 2)), v = l ? Math.min(l / 2, e) / l : 0, g = a[0] + (o[0] - a[0]) * v, p = g, d = a[1] + (o[1] - a[1]) * v, b = d, E = p - (p - a[0]) * roundCorner, c = b - (b - a[1]) * roundCorner, r.setTripleAt(p, b, g, d, E, c, _), _ += 1) : (r.setTripleAt(t.v[i][0], t.v[i][1], t.o[i][0], t.o[i][1], t.i[i][0], t.i[i][1], _), _ += 1);
|
|
2500
2500
|
return r;
|
|
2501
2501
|
}, RoundCornersModifier.prototype.processShapes = function(t) {
|
|
2502
2502
|
var e, r, i = this.shapes.length, s, a, n = this.rd.v;
|
|
@@ -2665,8 +2665,8 @@ var lottie$1 = { exports: {} };
|
|
|
2665
2665
|
this.getValue = this.processKeys, this.amplitude = PropertyFactory.getProp(t, e.s, 0, null, this), this.frequency = PropertyFactory.getProp(t, e.r, 0, null, this), this.pointsType = PropertyFactory.getProp(t, e.pt, 0, null, this), this._isAnimated = this.amplitude.effectsSequence.length !== 0 || this.frequency.effectsSequence.length !== 0 || this.pointsType.effectsSequence.length !== 0;
|
|
2666
2666
|
};
|
|
2667
2667
|
function setPoint(t, e, r, i, s, a, n) {
|
|
2668
|
-
var f = r - Math.PI / 2, o = r + Math.PI / 2, l = e[0] + Math.cos(r) * i * s,
|
|
2669
|
-
t.setTripleAt(l,
|
|
2668
|
+
var f = r - Math.PI / 2, o = r + Math.PI / 2, l = e[0] + Math.cos(r) * i * s, v = e[1] - Math.sin(r) * i * s;
|
|
2669
|
+
t.setTripleAt(l, v, l + Math.cos(f) * a, v - Math.sin(f) * a, l + Math.cos(o) * n, v - Math.sin(o) * n, t.length());
|
|
2670
2670
|
}
|
|
2671
2671
|
function getPerpendicularVector(t, e) {
|
|
2672
2672
|
var r = [e[0] - t[0], e[1] - t[1]], i = -Math.PI * 0.5, s = [Math.cos(i) * r[0] - Math.sin(i) * r[1], Math.sin(i) * r[0] + Math.cos(i) * r[1]];
|
|
@@ -2677,13 +2677,13 @@ var lottie$1 = { exports: {} };
|
|
|
2677
2677
|
return Math.atan2(0, 1) - Math.atan2(n[1], n[0]);
|
|
2678
2678
|
}
|
|
2679
2679
|
function zigZagCorner(t, e, r, i, s, a, n) {
|
|
2680
|
-
var f = getProjectingAngle(e, r), o = e.v[r % e._length], l = e.v[r === 0 ? e._length - 1 : r - 1],
|
|
2681
|
-
setPoint(t, e.v[r % e._length], f, n, i, p / ((s + 1) * 2),
|
|
2680
|
+
var f = getProjectingAngle(e, r), o = e.v[r % e._length], l = e.v[r === 0 ? e._length - 1 : r - 1], v = e.v[(r + 1) % e._length], _ = a === 2 ? Math.sqrt(Math.pow(o[0] - l[0], 2) + Math.pow(o[1] - l[1], 2)) : 0, p = a === 2 ? Math.sqrt(Math.pow(o[0] - v[0], 2) + Math.pow(o[1] - v[1], 2)) : 0;
|
|
2681
|
+
setPoint(t, e.v[r % e._length], f, n, i, p / ((s + 1) * 2), _ / ((s + 1) * 2));
|
|
2682
2682
|
}
|
|
2683
2683
|
function zigZagSegment(t, e, r, i, s, a) {
|
|
2684
2684
|
for (var n = 0; n < i; n += 1) {
|
|
2685
|
-
var f = (n + 1) / (i + 1), o = s === 2 ? Math.sqrt(Math.pow(e.points[3][0] - e.points[0][0], 2) + Math.pow(e.points[3][1] - e.points[0][1], 2)) : 0, l = e.normalAngle(f),
|
|
2686
|
-
setPoint(t,
|
|
2685
|
+
var f = (n + 1) / (i + 1), o = s === 2 ? Math.sqrt(Math.pow(e.points[3][0] - e.points[0][0], 2) + Math.pow(e.points[3][1] - e.points[0][1], 2)) : 0, l = e.normalAngle(f), v = e.point(f);
|
|
2686
|
+
setPoint(t, v, l, a, r, o / ((i + 1) * 2), o / ((i + 1) * 2)), a = -a;
|
|
2687
2687
|
}
|
|
2688
2688
|
return a;
|
|
2689
2689
|
}
|
|
@@ -2698,11 +2698,11 @@ var lottie$1 = { exports: {} };
|
|
|
2698
2698
|
}, ZigZagModifier.prototype.processShapes = function(t) {
|
|
2699
2699
|
var e, r, i = this.shapes.length, s, a, n = this.amplitude.v, f = Math.max(0, Math.round(this.frequency.v)), o = this.pointsType.v;
|
|
2700
2700
|
if (n !== 0) {
|
|
2701
|
-
var l,
|
|
2701
|
+
var l, v;
|
|
2702
2702
|
for (r = 0; r < i; r += 1) {
|
|
2703
|
-
if (l = this.shapes[r],
|
|
2704
|
-
for (
|
|
2705
|
-
|
|
2703
|
+
if (l = this.shapes[r], v = l.localShapeCollection, !(!l.shape._mdf && !this._mdf && !t))
|
|
2704
|
+
for (v.releaseShapes(), l.shape._mdf = !0, e = l.shape.paths.shapes, a = l.shape.paths._length, s = 0; s < a; s += 1)
|
|
2705
|
+
v.addShape(this.processPath(e[s], n, f, o));
|
|
2706
2706
|
l.shape.paths = l.localShapeCollection;
|
|
2707
2707
|
}
|
|
2708
2708
|
}
|
|
@@ -2717,15 +2717,15 @@ var lottie$1 = { exports: {} };
|
|
|
2717
2717
|
o = linearOffset(t.points[0], t.points[1], e), r = o[0], i = o[1], o = linearOffset(t.points[1], t.points[2], e), s = o[0], a = o[1], o = linearOffset(t.points[2], t.points[3], e), n = o[0], f = o[1];
|
|
2718
2718
|
var l = lineIntersection(r, i, s, a);
|
|
2719
2719
|
l === null && (l = i);
|
|
2720
|
-
var
|
|
2721
|
-
return
|
|
2720
|
+
var v = lineIntersection(n, f, s, a);
|
|
2721
|
+
return v === null && (v = n), new PolynomialBezier(r, l, v, f);
|
|
2722
2722
|
}
|
|
2723
2723
|
function joinLines(t, e, r, i, s) {
|
|
2724
2724
|
var a = e.points[3], n = r.points[0];
|
|
2725
2725
|
if (i === 3 || pointEqual(a, n)) return a;
|
|
2726
2726
|
if (i === 2) {
|
|
2727
|
-
var f = -e.tangentAngle(1), o = -r.tangentAngle(0) + Math.PI, l = lineIntersection(a, polarOffset(a, f + Math.PI / 2, 100), n, polarOffset(n, f + Math.PI / 2, 100)),
|
|
2728
|
-
return t.setXYAt(
|
|
2727
|
+
var f = -e.tangentAngle(1), o = -r.tangentAngle(0) + Math.PI, l = lineIntersection(a, polarOffset(a, f + Math.PI / 2, 100), n, polarOffset(n, f + Math.PI / 2, 100)), v = l ? pointDistance(l, a) : pointDistance(a, n) / 2, _ = polarOffset(a, f, 2 * v * roundCorner);
|
|
2728
|
+
return t.setXYAt(_[0], _[1], "o", t.length() - 1), _ = polarOffset(n, o, 2 * v * roundCorner), t.setTripleAt(n[0], n[1], n[0], n[1], _[0], _[1], t.length()), n;
|
|
2729
2729
|
}
|
|
2730
2730
|
var p = pointEqual(a, e.points[2]) ? e.points[0] : e.points[2], b = pointEqual(n, r.points[1]) ? r.points[3] : r.points[1], g = lineIntersection(p, a, n, b);
|
|
2731
2731
|
return g && pointDistance(g, a) < s ? (t.setTripleAt(g[0], g[1], g[0], g[1], g[0], g[1], t.length()), g) : a;
|
|
@@ -2769,21 +2769,21 @@ var lottie$1 = { exports: {} };
|
|
|
2769
2769
|
for (n = a - 1; n >= 0; n -= 1)
|
|
2770
2770
|
o = PolynomialBezier.shapeSegmentInverted(t, n), l.push(offsetSegmentSplit(o, e));
|
|
2771
2771
|
l = pruneIntersections(l);
|
|
2772
|
-
var
|
|
2772
|
+
var v = null, _ = null;
|
|
2773
2773
|
for (n = 0; n < l.length; n += 1) {
|
|
2774
2774
|
var p = l[n];
|
|
2775
|
-
for (
|
|
2776
|
-
o = p[f],
|
|
2775
|
+
for (_ && (v = joinLines(s, _, p[0], r, i)), _ = p[p.length - 1], f = 0; f < p.length; f += 1)
|
|
2776
|
+
o = p[f], v && pointEqual(o.points[0], v) ? s.setXYAt(o.points[1][0], o.points[1][1], "o", s.length() - 1) : s.setTripleAt(o.points[0][0], o.points[0][1], o.points[1][0], o.points[1][1], o.points[0][0], o.points[0][1], s.length()), s.setTripleAt(o.points[3][0], o.points[3][1], o.points[3][0], o.points[3][1], o.points[2][0], o.points[2][1], s.length()), v = o.points[3];
|
|
2777
2777
|
}
|
|
2778
|
-
return l.length && joinLines(s,
|
|
2778
|
+
return l.length && joinLines(s, _, l[0][0], r, i), s;
|
|
2779
2779
|
}, OffsetPathModifier.prototype.processShapes = function(t) {
|
|
2780
2780
|
var e, r, i = this.shapes.length, s, a, n = this.amount.v, f = this.miterLimit.v, o = this.lineJoin;
|
|
2781
2781
|
if (n !== 0) {
|
|
2782
|
-
var l,
|
|
2782
|
+
var l, v;
|
|
2783
2783
|
for (r = 0; r < i; r += 1) {
|
|
2784
|
-
if (l = this.shapes[r],
|
|
2785
|
-
for (
|
|
2786
|
-
|
|
2784
|
+
if (l = this.shapes[r], v = l.localShapeCollection, !(!l.shape._mdf && !this._mdf && !t))
|
|
2785
|
+
for (v.releaseShapes(), l.shape._mdf = !0, e = l.shape.paths.shapes, a = l.shape.paths._length, s = 0; s < a; s += 1)
|
|
2786
|
+
v.addShape(this.processPath(e[s], n, o, f));
|
|
2787
2787
|
l.shape.paths = l.localShapeCollection;
|
|
2788
2788
|
}
|
|
2789
2789
|
}
|
|
@@ -2828,48 +2828,48 @@ var lottie$1 = { exports: {} };
|
|
|
2828
2828
|
}
|
|
2829
2829
|
}, r = [];
|
|
2830
2830
|
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]);
|
|
2831
|
-
var i = 127988, s = 917631, a = 917601, n = 917626, f = 65039, o = 8205, l = 127462,
|
|
2831
|
+
var i = 127988, s = 917631, a = 917601, n = 917626, f = 65039, o = 8205, l = 127462, v = 127487, _ = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
|
|
2832
2832
|
function p(P) {
|
|
2833
|
-
var
|
|
2834
|
-
for (
|
|
2835
|
-
|
|
2833
|
+
var A = P.split(","), y, S = A.length, F = [];
|
|
2834
|
+
for (y = 0; y < S; y += 1)
|
|
2835
|
+
A[y] !== "sans-serif" && A[y] !== "monospace" && F.push(A[y]);
|
|
2836
2836
|
return F.join(",");
|
|
2837
2837
|
}
|
|
2838
|
-
function b(P,
|
|
2839
|
-
var
|
|
2840
|
-
|
|
2841
|
-
var
|
|
2842
|
-
|
|
2843
|
-
var F =
|
|
2844
|
-
return
|
|
2845
|
-
node:
|
|
2838
|
+
function b(P, A) {
|
|
2839
|
+
var y = createTag("span");
|
|
2840
|
+
y.setAttribute("aria-hidden", !0), y.style.fontFamily = A;
|
|
2841
|
+
var S = createTag("span");
|
|
2842
|
+
S.innerText = "giItT1WQy@!-/#", y.style.position = "absolute", y.style.left = "-10000px", y.style.top = "-10000px", y.style.fontSize = "300px", y.style.fontVariant = "normal", y.style.fontStyle = "normal", y.style.fontWeight = "normal", y.style.letterSpacing = "0", y.appendChild(S), document.body.appendChild(y);
|
|
2843
|
+
var F = S.offsetWidth;
|
|
2844
|
+
return S.style.fontFamily = p(P) + ", " + A, {
|
|
2845
|
+
node: S,
|
|
2846
2846
|
w: F,
|
|
2847
|
-
parent:
|
|
2847
|
+
parent: y
|
|
2848
2848
|
};
|
|
2849
2849
|
}
|
|
2850
2850
|
function g() {
|
|
2851
|
-
var P,
|
|
2852
|
-
for (P = 0; P <
|
|
2853
|
-
this.fonts[P].loaded ? F -= 1 : this.fonts[P].fOrigin === "n" || this.fonts[P].origin === 0 ? this.fonts[P].loaded = !0 : (
|
|
2851
|
+
var P, A = this.fonts.length, y, S, F = A;
|
|
2852
|
+
for (P = 0; P < A; P += 1)
|
|
2853
|
+
this.fonts[P].loaded ? F -= 1 : this.fonts[P].fOrigin === "n" || this.fonts[P].origin === 0 ? this.fonts[P].loaded = !0 : (y = this.fonts[P].monoCase.node, S = this.fonts[P].monoCase.w, y.offsetWidth !== S ? (F -= 1, this.fonts[P].loaded = !0) : (y = this.fonts[P].sansCase.node, S = this.fonts[P].sansCase.w, y.offsetWidth !== S && (F -= 1, this.fonts[P].loaded = !0)), this.fonts[P].loaded && (this.fonts[P].sansCase.parent.parentNode.removeChild(this.fonts[P].sansCase.parent), this.fonts[P].monoCase.parent.parentNode.removeChild(this.fonts[P].monoCase.parent)));
|
|
2854
2854
|
F !== 0 && Date.now() - this.initTime < t ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10);
|
|
2855
2855
|
}
|
|
2856
|
-
function
|
|
2857
|
-
var
|
|
2858
|
-
if (
|
|
2856
|
+
function d(P, A) {
|
|
2857
|
+
var y = document.body && A ? "svg" : "canvas", S, F = getFontProperties(P);
|
|
2858
|
+
if (y === "svg") {
|
|
2859
2859
|
var k = createNS("text");
|
|
2860
|
-
k.style.fontSize = "100px", k.setAttribute("font-family", P.fFamily), k.setAttribute("font-style", F.style), k.setAttribute("font-weight", F.weight), k.textContent = "1", P.fClass ? (k.style.fontFamily = "inherit", k.setAttribute("class", P.fClass)) : k.style.fontFamily = P.fFamily,
|
|
2860
|
+
k.style.fontSize = "100px", k.setAttribute("font-family", P.fFamily), k.setAttribute("font-style", F.style), k.setAttribute("font-weight", F.weight), k.textContent = "1", P.fClass ? (k.style.fontFamily = "inherit", k.setAttribute("class", P.fClass)) : k.style.fontFamily = P.fFamily, A.appendChild(k), S = k;
|
|
2861
2861
|
} else {
|
|
2862
2862
|
var B = new OffscreenCanvas(500, 500).getContext("2d");
|
|
2863
|
-
B.font = F.style + " " + F.weight + " 100px " + P.fFamily,
|
|
2863
|
+
B.font = F.style + " " + F.weight + " 100px " + P.fFamily, S = B;
|
|
2864
2864
|
}
|
|
2865
2865
|
function z(N) {
|
|
2866
|
-
return
|
|
2866
|
+
return y === "svg" ? (S.textContent = N, S.getComputedTextLength()) : S.measureText(N).width;
|
|
2867
2867
|
}
|
|
2868
2868
|
return {
|
|
2869
2869
|
measureText: z
|
|
2870
2870
|
};
|
|
2871
2871
|
}
|
|
2872
|
-
function E(P,
|
|
2872
|
+
function E(P, A) {
|
|
2873
2873
|
if (!P) {
|
|
2874
2874
|
this.isLoaded = !0;
|
|
2875
2875
|
return;
|
|
@@ -2880,99 +2880,99 @@ var lottie$1 = { exports: {} };
|
|
|
2880
2880
|
}
|
|
2881
2881
|
if (!document.body) {
|
|
2882
2882
|
this.isLoaded = !0, P.list.forEach(function(Y) {
|
|
2883
|
-
Y.helper =
|
|
2883
|
+
Y.helper = d(Y), Y.cache = {};
|
|
2884
2884
|
}), this.fonts = P.list;
|
|
2885
2885
|
return;
|
|
2886
2886
|
}
|
|
2887
|
-
var
|
|
2888
|
-
for (
|
|
2887
|
+
var y = P.list, S, F = y.length, k = F;
|
|
2888
|
+
for (S = 0; S < F; S += 1) {
|
|
2889
2889
|
var B = !0, z, N;
|
|
2890
|
-
if (
|
|
2891
|
-
|
|
2892
|
-
else if (
|
|
2893
|
-
if (z = document.querySelectorAll('style[f-forigin="p"][f-family="' +
|
|
2890
|
+
if (y[S].loaded = !1, y[S].monoCase = b(y[S].fFamily, "monospace"), y[S].sansCase = b(y[S].fFamily, "sans-serif"), !y[S].fPath)
|
|
2891
|
+
y[S].loaded = !0, k -= 1;
|
|
2892
|
+
else if (y[S].fOrigin === "p" || y[S].origin === 3) {
|
|
2893
|
+
if (z = document.querySelectorAll('style[f-forigin="p"][f-family="' + y[S].fFamily + '"], style[f-origin="3"][f-family="' + y[S].fFamily + '"]'), z.length > 0 && (B = !1), B) {
|
|
2894
2894
|
var j = createTag("style");
|
|
2895
|
-
j.setAttribute("f-forigin",
|
|
2895
|
+
j.setAttribute("f-forigin", y[S].fOrigin), j.setAttribute("f-origin", y[S].origin), j.setAttribute("f-family", y[S].fFamily), j.type = "text/css", j.innerText = "@font-face {font-family: " + y[S].fFamily + "; font-style: normal; src: url('" + y[S].fPath + "');}", A.appendChild(j);
|
|
2896
2896
|
}
|
|
2897
|
-
} else if (
|
|
2897
|
+
} else if (y[S].fOrigin === "g" || y[S].origin === 1) {
|
|
2898
2898
|
for (z = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), N = 0; N < z.length; N += 1)
|
|
2899
|
-
z[N].href.indexOf(
|
|
2899
|
+
z[N].href.indexOf(y[S].fPath) !== -1 && (B = !1);
|
|
2900
2900
|
if (B) {
|
|
2901
2901
|
var H = createTag("link");
|
|
2902
|
-
H.setAttribute("f-forigin",
|
|
2902
|
+
H.setAttribute("f-forigin", y[S].fOrigin), H.setAttribute("f-origin", y[S].origin), H.type = "text/css", H.rel = "stylesheet", H.href = y[S].fPath, document.body.appendChild(H);
|
|
2903
2903
|
}
|
|
2904
|
-
} else if (
|
|
2904
|
+
} else if (y[S].fOrigin === "t" || y[S].origin === 2) {
|
|
2905
2905
|
for (z = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), N = 0; N < z.length; N += 1)
|
|
2906
|
-
|
|
2906
|
+
y[S].fPath === z[N].src && (B = !1);
|
|
2907
2907
|
if (B) {
|
|
2908
2908
|
var q = createTag("link");
|
|
2909
|
-
q.setAttribute("f-forigin",
|
|
2909
|
+
q.setAttribute("f-forigin", y[S].fOrigin), q.setAttribute("f-origin", y[S].origin), q.setAttribute("rel", "stylesheet"), q.setAttribute("href", y[S].fPath), A.appendChild(q);
|
|
2910
2910
|
}
|
|
2911
2911
|
}
|
|
2912
|
-
|
|
2912
|
+
y[S].helper = d(y[S], A), y[S].cache = {}, this.fonts.push(y[S]);
|
|
2913
2913
|
}
|
|
2914
2914
|
k === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
|
|
2915
2915
|
}
|
|
2916
2916
|
function c(P) {
|
|
2917
2917
|
if (P) {
|
|
2918
2918
|
this.chars || (this.chars = []);
|
|
2919
|
-
var
|
|
2920
|
-
for (
|
|
2921
|
-
for (
|
|
2922
|
-
this.chars[
|
|
2923
|
-
k || (this.chars.push(P[
|
|
2919
|
+
var A, y = P.length, S, F = this.chars.length, k;
|
|
2920
|
+
for (A = 0; A < y; A += 1) {
|
|
2921
|
+
for (S = 0, k = !1; S < F; )
|
|
2922
|
+
this.chars[S].style === P[A].style && this.chars[S].fFamily === P[A].fFamily && this.chars[S].ch === P[A].ch && (k = !0), S += 1;
|
|
2923
|
+
k || (this.chars.push(P[A]), F += 1);
|
|
2924
2924
|
}
|
|
2925
2925
|
}
|
|
2926
2926
|
}
|
|
2927
|
-
function u(P,
|
|
2928
|
-
for (var
|
|
2929
|
-
if (this.chars[
|
|
2930
|
-
return this.chars[
|
|
2931
|
-
|
|
2927
|
+
function u(P, A, y) {
|
|
2928
|
+
for (var S = 0, F = this.chars.length; S < F; ) {
|
|
2929
|
+
if (this.chars[S].ch === P && this.chars[S].style === A && this.chars[S].fFamily === y)
|
|
2930
|
+
return this.chars[S];
|
|
2931
|
+
S += 1;
|
|
2932
2932
|
}
|
|
2933
|
-
return (typeof P == "string" && P.charCodeAt(0) !== 13 || !P) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", P,
|
|
2933
|
+
return (typeof P == "string" && P.charCodeAt(0) !== 13 || !P) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", P, A, y)), e;
|
|
2934
2934
|
}
|
|
2935
|
-
function h(P,
|
|
2936
|
-
var
|
|
2937
|
-
if (!
|
|
2938
|
-
var k =
|
|
2935
|
+
function h(P, A, y) {
|
|
2936
|
+
var S = this.getFontByName(A), F = P;
|
|
2937
|
+
if (!S.cache[F]) {
|
|
2938
|
+
var k = S.helper;
|
|
2939
2939
|
if (P === " ") {
|
|
2940
2940
|
var B = k.measureText("|" + P + "|"), z = k.measureText("||");
|
|
2941
|
-
|
|
2941
|
+
S.cache[F] = (B - z) / 100;
|
|
2942
2942
|
} else
|
|
2943
|
-
|
|
2943
|
+
S.cache[F] = k.measureText(P) / 100;
|
|
2944
2944
|
}
|
|
2945
|
-
return
|
|
2945
|
+
return S.cache[F] * y;
|
|
2946
2946
|
}
|
|
2947
|
-
function
|
|
2948
|
-
for (var
|
|
2949
|
-
if (this.fonts[
|
|
2950
|
-
return this.fonts[
|
|
2951
|
-
|
|
2947
|
+
function m(P) {
|
|
2948
|
+
for (var A = 0, y = this.fonts.length; A < y; ) {
|
|
2949
|
+
if (this.fonts[A].fName === P)
|
|
2950
|
+
return this.fonts[A];
|
|
2951
|
+
A += 1;
|
|
2952
2952
|
}
|
|
2953
2953
|
return this.fonts[0];
|
|
2954
2954
|
}
|
|
2955
2955
|
function x(P) {
|
|
2956
|
-
var
|
|
2957
|
-
if (
|
|
2958
|
-
var
|
|
2959
|
-
|
|
2956
|
+
var A = 0, y = P.charCodeAt(0);
|
|
2957
|
+
if (y >= 55296 && y <= 56319) {
|
|
2958
|
+
var S = P.charCodeAt(1);
|
|
2959
|
+
S >= 56320 && S <= 57343 && (A = (y - 55296) * 1024 + S - 56320 + 65536);
|
|
2960
2960
|
}
|
|
2961
|
-
return
|
|
2961
|
+
return A;
|
|
2962
2962
|
}
|
|
2963
|
-
function C(P,
|
|
2964
|
-
var
|
|
2965
|
-
return
|
|
2963
|
+
function C(P, A) {
|
|
2964
|
+
var y = P.toString(16) + A.toString(16);
|
|
2965
|
+
return _.indexOf(y) !== -1;
|
|
2966
2966
|
}
|
|
2967
|
-
function
|
|
2967
|
+
function T(P) {
|
|
2968
2968
|
return P === o;
|
|
2969
2969
|
}
|
|
2970
2970
|
function M(P) {
|
|
2971
2971
|
return P === f;
|
|
2972
2972
|
}
|
|
2973
2973
|
function w(P) {
|
|
2974
|
-
var
|
|
2975
|
-
return
|
|
2974
|
+
var A = x(P);
|
|
2975
|
+
return A >= l && A <= v;
|
|
2976
2976
|
}
|
|
2977
2977
|
function D(P) {
|
|
2978
2978
|
return w(P.substr(0, 2)) && w(P.substr(2, 2));
|
|
@@ -2980,17 +2980,17 @@ var lottie$1 = { exports: {} };
|
|
|
2980
2980
|
function L(P) {
|
|
2981
2981
|
return r.indexOf(P) !== -1;
|
|
2982
2982
|
}
|
|
2983
|
-
function I(P,
|
|
2984
|
-
var
|
|
2985
|
-
if (
|
|
2983
|
+
function I(P, A) {
|
|
2984
|
+
var y = x(P.substr(A, 2));
|
|
2985
|
+
if (y !== i)
|
|
2986
2986
|
return !1;
|
|
2987
|
-
var
|
|
2988
|
-
for (
|
|
2989
|
-
if (
|
|
2987
|
+
var S = 0;
|
|
2988
|
+
for (A += 2; S < 5; ) {
|
|
2989
|
+
if (y = x(P.substr(A, 2)), y < a || y > n)
|
|
2990
2990
|
return !1;
|
|
2991
|
-
|
|
2991
|
+
S += 1, A += 2;
|
|
2992
2992
|
}
|
|
2993
|
-
return x(P.substr(
|
|
2993
|
+
return x(P.substr(A, 2)) === s;
|
|
2994
2994
|
}
|
|
2995
2995
|
function R() {
|
|
2996
2996
|
this.isLoaded = !0;
|
|
@@ -2998,12 +2998,12 @@ var lottie$1 = { exports: {} };
|
|
|
2998
2998
|
var G = function() {
|
|
2999
2999
|
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);
|
|
3000
3000
|
};
|
|
3001
|
-
G.isModifier = C, G.isZeroWidthJoiner =
|
|
3001
|
+
G.isModifier = C, G.isZeroWidthJoiner = T, G.isFlagEmoji = D, G.isRegionalCode = w, G.isCombinedCharacter = L, G.isRegionalFlag = I, G.isVariationSelector = M, G.BLACK_FLAG_CODE_POINT = i;
|
|
3002
3002
|
var V = {
|
|
3003
3003
|
addChars: c,
|
|
3004
3004
|
addFonts: E,
|
|
3005
3005
|
getCharData: u,
|
|
3006
|
-
getFontByName:
|
|
3006
|
+
getFontByName: m,
|
|
3007
3007
|
measureText: h,
|
|
3008
3008
|
checkLoadedFonts: g,
|
|
3009
3009
|
setIsLoaded: R
|
|
@@ -3464,7 +3464,7 @@ var lottie$1 = { exports: {} };
|
|
|
3464
3464
|
this.data = t, this.element = e, this.globalData = r, this.storedData = [], this.masksProperties = this.data.masksProperties || [], this.maskElement = null;
|
|
3465
3465
|
var i = this.globalData.defs, s, a = this.masksProperties ? this.masksProperties.length : 0;
|
|
3466
3466
|
this.viewData = createSizedArray(a), this.solidPath = "";
|
|
3467
|
-
var n, f = this.masksProperties, o = 0, l = [],
|
|
3467
|
+
var n, f = this.masksProperties, o = 0, l = [], v, _, p = createElementID(), b, g, d, E, c = "clipPath", u = "clip-path";
|
|
3468
3468
|
for (s = 0; s < a; s += 1)
|
|
3469
3469
|
if ((f[s].mode !== "a" && f[s].mode !== "n" || f[s].inv || f[s].o.k !== 100 || f[s].o.x) && (c = "mask", u = "mask"), (f[s].mode === "s" || f[s].mode === "i") && o === 0 ? (b = createNS("rect"), b.setAttribute("fill", "#ffffff"), b.setAttribute("width", this.element.comp.data.w || 0), b.setAttribute("height", this.element.comp.data.h || 0), l.push(b)) : b = null, n = createNS("path"), f[s].mode === "n")
|
|
3470
3470
|
this.viewData[s] = {
|
|
@@ -3476,21 +3476,21 @@ var lottie$1 = { exports: {} };
|
|
|
3476
3476
|
else {
|
|
3477
3477
|
o += 1, n.setAttribute("fill", f[s].mode === "s" ? "#000000" : "#ffffff"), n.setAttribute("clip-rule", "nonzero");
|
|
3478
3478
|
var h;
|
|
3479
|
-
if (f[s].x.k !== 0 ? (c = "mask", u = "mask", E = PropertyFactory.getProp(this.element, f[s].x, 0, null, this.element), h = createElementID(), g = createNS("filter"), g.setAttribute("id", h),
|
|
3479
|
+
if (f[s].x.k !== 0 ? (c = "mask", u = "mask", E = PropertyFactory.getProp(this.element, f[s].x, 0, null, this.element), h = createElementID(), g = createNS("filter"), g.setAttribute("id", h), d = createNS("feMorphology"), d.setAttribute("operator", "erode"), d.setAttribute("in", "SourceGraphic"), d.setAttribute("radius", "0"), g.appendChild(d), i.appendChild(g), n.setAttribute("stroke", f[s].mode === "s" ? "#000000" : "#ffffff")) : (d = null, E = null), this.storedData[s] = {
|
|
3480
3480
|
elem: n,
|
|
3481
3481
|
x: E,
|
|
3482
|
-
expan:
|
|
3482
|
+
expan: d,
|
|
3483
3483
|
lastPath: "",
|
|
3484
3484
|
lastOperator: "",
|
|
3485
3485
|
filterId: h,
|
|
3486
3486
|
lastRadius: 0
|
|
3487
3487
|
}, f[s].mode === "i") {
|
|
3488
|
-
|
|
3489
|
-
var
|
|
3490
|
-
for (
|
|
3491
|
-
|
|
3488
|
+
_ = l.length;
|
|
3489
|
+
var m = createNS("g");
|
|
3490
|
+
for (v = 0; v < _; v += 1)
|
|
3491
|
+
m.appendChild(l[v]);
|
|
3492
3492
|
var x = createNS("mask");
|
|
3493
|
-
x.setAttribute("mask-type", "alpha"), x.setAttribute("id", p + "_" + o), x.appendChild(n), i.appendChild(x),
|
|
3493
|
+
x.setAttribute("mask-type", "alpha"), x.setAttribute("id", p + "_" + o), x.appendChild(n), i.appendChild(x), m.setAttribute("mask", "url(" + getLocationHref() + "#" + p + "_" + o + ")"), l.length = 0, l.push(m);
|
|
3494
3494
|
} else
|
|
3495
3495
|
l.push(n);
|
|
3496
3496
|
f[s].inv && !this.solidPath && (this.solidPath = this.createLayerSolidPath()), this.viewData[s] = {
|
|
@@ -3630,10 +3630,10 @@ var lottie$1 = { exports: {} };
|
|
|
3630
3630
|
o.setAttribute("id", r), o.setAttribute("mask-type", "alpha");
|
|
3631
3631
|
var l = createNS("g");
|
|
3632
3632
|
o.appendChild(l), i = createElementID(), s = filtersFactory.createFilter(i);
|
|
3633
|
-
var
|
|
3634
|
-
|
|
3635
|
-
var
|
|
3636
|
-
|
|
3633
|
+
var v = createNS("feComponentTransfer");
|
|
3634
|
+
v.setAttribute("in", "SourceGraphic"), s.appendChild(v);
|
|
3635
|
+
var _ = createNS("feFuncA");
|
|
3636
|
+
_.setAttribute("type", "table"), _.setAttribute("tableValues", "1.0 0.0"), v.appendChild(_), this.globalData.defs.appendChild(s);
|
|
3637
3637
|
var p = createNS("rect");
|
|
3638
3638
|
p.setAttribute("width", this.comp.data.w), p.setAttribute("height", this.comp.data.h), p.setAttribute("x", "0"), p.setAttribute("y", "0"), p.setAttribute("fill", "#ffffff"), p.setAttribute("opacity", "0"), l.setAttribute("filter", "url(" + getLocationHref() + "#" + i + ")"), l.appendChild(p), a = createNS("use"), a.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), l.appendChild(a), featureSupport.maskType || (o.setAttribute("mask-type", "luminance"), s.appendChild(filtersFactory.createAlphaToLuminanceFilter()), n = createNS("g"), l.appendChild(p), n.appendChild(this.layerElement), l.appendChild(n)), this.globalData.defs.appendChild(o);
|
|
3639
3639
|
}
|
|
@@ -3897,10 +3897,10 @@ var lottie$1 = { exports: {} };
|
|
|
3897
3897
|
a.setAttribute("id", o);
|
|
3898
3898
|
var l = createNS(t.t === 1 ? "linearGradient" : "radialGradient");
|
|
3899
3899
|
l.setAttribute("id", f), l.setAttribute("spreadMethod", "pad"), l.setAttribute("gradientUnits", "userSpaceOnUse"), s = t.g.k.k[0].s ? t.g.k.k[0].s.length : t.g.k.k.length;
|
|
3900
|
-
var
|
|
3900
|
+
var v = this.stops;
|
|
3901
3901
|
for (i = t.g.p * 4; i < s; i += 2)
|
|
3902
|
-
r = createNS("stop"), r.setAttribute("stop-color", "rgb(255,255,255)"), l.appendChild(r),
|
|
3903
|
-
n.setAttribute(t.ty === "gf" ? "fill" : "stroke", "url(" + getLocationHref() + "#" + f + ")"), t.ty === "gs" && (n.setAttribute("stroke-linecap", lineCapEnum[t.lc || 2]), n.setAttribute("stroke-linejoin", lineJoinEnum[t.lj || 2]), t.lj === 1 && n.setAttribute("stroke-miterlimit", t.ml)), this.of = l, this.ms = a, this.ost =
|
|
3902
|
+
r = createNS("stop"), r.setAttribute("stop-color", "rgb(255,255,255)"), l.appendChild(r), v.push(r);
|
|
3903
|
+
n.setAttribute(t.ty === "gf" ? "fill" : "stroke", "url(" + getLocationHref() + "#" + f + ")"), t.ty === "gs" && (n.setAttribute("stroke-linecap", lineCapEnum[t.lc || 2]), n.setAttribute("stroke-linejoin", lineJoinEnum[t.lj || 2]), t.lj === 1 && n.setAttribute("stroke-miterlimit", t.ml)), this.of = l, this.ms = a, this.ost = v, this.maskId = o, e.msElem = n;
|
|
3904
3904
|
}
|
|
3905
3905
|
}, extendPrototype([DynamicPropertyContainer], SVGGradientFillStyleData);
|
|
3906
3906
|
function SVGGradientStrokeStyleData(t, e, r) {
|
|
@@ -3928,8 +3928,8 @@ var lottie$1 = { exports: {} };
|
|
|
3928
3928
|
var t = new Matrix(), e = new Matrix(), r = {
|
|
3929
3929
|
createRenderFunction: i
|
|
3930
3930
|
};
|
|
3931
|
-
function i(
|
|
3932
|
-
switch (
|
|
3931
|
+
function i(_) {
|
|
3932
|
+
switch (_.ty) {
|
|
3933
3933
|
case "fl":
|
|
3934
3934
|
return f;
|
|
3935
3935
|
case "gf":
|
|
@@ -3937,7 +3937,7 @@ var lottie$1 = { exports: {} };
|
|
|
3937
3937
|
case "gs":
|
|
3938
3938
|
return o;
|
|
3939
3939
|
case "st":
|
|
3940
|
-
return
|
|
3940
|
+
return v;
|
|
3941
3941
|
case "sh":
|
|
3942
3942
|
case "el":
|
|
3943
3943
|
case "rc":
|
|
@@ -3951,76 +3951,76 @@ var lottie$1 = { exports: {} };
|
|
|
3951
3951
|
return null;
|
|
3952
3952
|
}
|
|
3953
3953
|
}
|
|
3954
|
-
function s(
|
|
3954
|
+
function s(_, p, b) {
|
|
3955
3955
|
(b || p.transform.op._mdf) && p.transform.container.setAttribute("opacity", p.transform.op.v), (b || p.transform.mProps._mdf) && p.transform.container.setAttribute("transform", p.transform.mProps.v.to2dCSS());
|
|
3956
3956
|
}
|
|
3957
3957
|
function a() {
|
|
3958
3958
|
}
|
|
3959
|
-
function n(
|
|
3960
|
-
var g,
|
|
3961
|
-
for (h = 0; h <
|
|
3959
|
+
function n(_, p, b) {
|
|
3960
|
+
var g, d, E, c, u, h, m = p.styles.length, x = p.lvl, C, T, M, w;
|
|
3961
|
+
for (h = 0; h < m; h += 1) {
|
|
3962
3962
|
if (c = p.sh._mdf || b, p.styles[h].lvl < x) {
|
|
3963
|
-
for (
|
|
3963
|
+
for (T = e.reset(), M = x - p.styles[h].lvl, w = p.transformers.length - 1; !c && M > 0; )
|
|
3964
3964
|
c = p.transformers[w].mProps._mdf || c, M -= 1, w -= 1;
|
|
3965
3965
|
if (c)
|
|
3966
3966
|
for (M = x - p.styles[h].lvl, w = p.transformers.length - 1; M > 0; )
|
|
3967
|
-
|
|
3967
|
+
T.multiply(p.transformers[w].mProps.v), M -= 1, w -= 1;
|
|
3968
3968
|
} else
|
|
3969
|
-
|
|
3970
|
-
if (C = p.sh.paths,
|
|
3971
|
-
for (E = "", g = 0; g <
|
|
3972
|
-
u = C.shapes[g], u && u._length && (E += buildShapeString(u, u._length, u.c,
|
|
3969
|
+
T = t;
|
|
3970
|
+
if (C = p.sh.paths, d = C._length, c) {
|
|
3971
|
+
for (E = "", g = 0; g < d; g += 1)
|
|
3972
|
+
u = C.shapes[g], u && u._length && (E += buildShapeString(u, u._length, u.c, T));
|
|
3973
3973
|
p.caches[h] = E;
|
|
3974
3974
|
} else
|
|
3975
3975
|
E = p.caches[h];
|
|
3976
|
-
p.styles[h].d +=
|
|
3976
|
+
p.styles[h].d += _.hd === !0 ? "" : E, p.styles[h]._mdf = c || p.styles[h]._mdf;
|
|
3977
3977
|
}
|
|
3978
3978
|
}
|
|
3979
|
-
function f(
|
|
3979
|
+
function f(_, p, b) {
|
|
3980
3980
|
var g = p.style;
|
|
3981
3981
|
(p.c._mdf || b) && g.pElem.setAttribute("fill", "rgb(" + bmFloor(p.c.v[0]) + "," + bmFloor(p.c.v[1]) + "," + bmFloor(p.c.v[2]) + ")"), (p.o._mdf || b) && g.pElem.setAttribute("fill-opacity", p.o.v);
|
|
3982
3982
|
}
|
|
3983
|
-
function o(
|
|
3984
|
-
l(
|
|
3983
|
+
function o(_, p, b) {
|
|
3984
|
+
l(_, p, b), v(_, p, b);
|
|
3985
3985
|
}
|
|
3986
|
-
function l(
|
|
3987
|
-
var g = p.gf,
|
|
3986
|
+
function l(_, p, b) {
|
|
3987
|
+
var g = p.gf, d = p.g._hasOpacity, E = p.s.v, c = p.e.v;
|
|
3988
3988
|
if (p.o._mdf || b) {
|
|
3989
|
-
var u =
|
|
3989
|
+
var u = _.ty === "gf" ? "fill-opacity" : "stroke-opacity";
|
|
3990
3990
|
p.style.pElem.setAttribute(u, p.o.v);
|
|
3991
3991
|
}
|
|
3992
3992
|
if (p.s._mdf || b) {
|
|
3993
|
-
var h =
|
|
3994
|
-
g.setAttribute(h, E[0]), g.setAttribute(
|
|
3993
|
+
var h = _.t === 1 ? "x1" : "cx", m = h === "x1" ? "y1" : "cy";
|
|
3994
|
+
g.setAttribute(h, E[0]), g.setAttribute(m, E[1]), d && !p.g._collapsable && (p.of.setAttribute(h, E[0]), p.of.setAttribute(m, E[1]));
|
|
3995
3995
|
}
|
|
3996
|
-
var x, C,
|
|
3996
|
+
var x, C, T, M;
|
|
3997
3997
|
if (p.g._cmdf || b) {
|
|
3998
3998
|
x = p.cst;
|
|
3999
3999
|
var w = p.g.c;
|
|
4000
|
-
for (
|
|
4000
|
+
for (T = x.length, C = 0; C < T; C += 1)
|
|
4001
4001
|
M = x[C], M.setAttribute("offset", w[C * 4] + "%"), M.setAttribute("stop-color", "rgb(" + w[C * 4 + 1] + "," + w[C * 4 + 2] + "," + w[C * 4 + 3] + ")");
|
|
4002
4002
|
}
|
|
4003
|
-
if (
|
|
4003
|
+
if (d && (p.g._omdf || b)) {
|
|
4004
4004
|
var D = p.g.o;
|
|
4005
|
-
for (p.g._collapsable ? x = p.cst : x = p.ost,
|
|
4005
|
+
for (p.g._collapsable ? x = p.cst : x = p.ost, T = x.length, C = 0; C < T; C += 1)
|
|
4006
4006
|
M = x[C], p.g._collapsable || M.setAttribute("offset", D[C * 2] + "%"), M.setAttribute("stop-opacity", D[C * 2 + 1]);
|
|
4007
4007
|
}
|
|
4008
|
-
if (
|
|
4009
|
-
(p.e._mdf || b) && (g.setAttribute("x2", c[0]), g.setAttribute("y2", c[1]),
|
|
4008
|
+
if (_.t === 1)
|
|
4009
|
+
(p.e._mdf || b) && (g.setAttribute("x2", c[0]), g.setAttribute("y2", c[1]), d && !p.g._collapsable && (p.of.setAttribute("x2", c[0]), p.of.setAttribute("y2", c[1])));
|
|
4010
4010
|
else {
|
|
4011
4011
|
var L;
|
|
4012
|
-
if ((p.s._mdf || p.e._mdf || b) && (L = Math.sqrt(Math.pow(E[0] - c[0], 2) + Math.pow(E[1] - c[1], 2)), g.setAttribute("r", L),
|
|
4012
|
+
if ((p.s._mdf || p.e._mdf || b) && (L = Math.sqrt(Math.pow(E[0] - c[0], 2) + Math.pow(E[1] - c[1], 2)), g.setAttribute("r", L), d && !p.g._collapsable && p.of.setAttribute("r", L)), p.s._mdf || p.e._mdf || p.h._mdf || p.a._mdf || b) {
|
|
4013
4013
|
L || (L = Math.sqrt(Math.pow(E[0] - c[0], 2) + Math.pow(E[1] - c[1], 2)));
|
|
4014
4014
|
var I = Math.atan2(c[1] - E[1], c[0] - E[0]), R = p.h.v;
|
|
4015
4015
|
R >= 1 ? R = 0.99 : R <= -1 && (R = -0.99);
|
|
4016
4016
|
var G = L * R, V = Math.cos(I + p.a.v) * G + E[0], P = Math.sin(I + p.a.v) * G + E[1];
|
|
4017
|
-
g.setAttribute("fx", V), g.setAttribute("fy", P),
|
|
4017
|
+
g.setAttribute("fx", V), g.setAttribute("fy", P), d && !p.g._collapsable && (p.of.setAttribute("fx", V), p.of.setAttribute("fy", P));
|
|
4018
4018
|
}
|
|
4019
4019
|
}
|
|
4020
4020
|
}
|
|
4021
|
-
function
|
|
4022
|
-
var g = p.style,
|
|
4023
|
-
|
|
4021
|
+
function v(_, p, b) {
|
|
4022
|
+
var g = p.style, d = p.d;
|
|
4023
|
+
d && (d._mdf || b) && d.dashStr && (g.pElem.setAttribute("stroke-dasharray", d.dashStr), g.pElem.setAttribute("stroke-dashoffset", d.dashoffset[0])), p.c && (p.c._mdf || b) && g.pElem.setAttribute("stroke", "rgb(" + bmFloor(p.c.v[0]) + "," + bmFloor(p.c.v[1]) + "," + bmFloor(p.c.v[2]) + ")"), (p.o._mdf || b) && g.pElem.setAttribute("stroke-opacity", p.o.v), (p.w._mdf || b) && (g.pElem.setAttribute("stroke-width", p.w.v), g.msElem && g.msElem.setAttribute("stroke-width", p.w.v));
|
|
4024
4024
|
}
|
|
4025
4025
|
return r;
|
|
4026
4026
|
}();
|
|
@@ -4088,7 +4088,7 @@ var lottie$1 = { exports: {} };
|
|
|
4088
4088
|
this.dynamicProperties[t].getValue();
|
|
4089
4089
|
this.renderModifiers();
|
|
4090
4090
|
}, SVGShapeElement.prototype.searchShapes = function(t, e, r, i, s, a, n) {
|
|
4091
|
-
var f = [].concat(a), o, l = t.length - 1,
|
|
4091
|
+
var f = [].concat(a), o, l = t.length - 1, v, _, p = [], b = [], g, d, E;
|
|
4092
4092
|
for (o = l; o >= 0; o -= 1) {
|
|
4093
4093
|
if (E = this.searchProcessedElement(t[o]), E ? e[o] = r[E - 1] : t[o]._render = n, t[o].ty === "fl" || t[o].ty === "st" || t[o].ty === "gf" || t[o].ty === "gs" || t[o].ty === "no")
|
|
4094
4094
|
E ? e[o].style.closed = t[o].hd : e[o] = this.createStyleElement(t[o], s), t[o]._render && e[o].style.pElem.parentNode !== i && i.appendChild(e[o].style.pElem), p.push(e[o].style);
|
|
@@ -4096,10 +4096,10 @@ var lottie$1 = { exports: {} };
|
|
|
4096
4096
|
if (!E)
|
|
4097
4097
|
e[o] = this.createGroupElement(t[o]);
|
|
4098
4098
|
else
|
|
4099
|
-
for (
|
|
4100
|
-
e[o].prevViewData[
|
|
4099
|
+
for (_ = e[o].it.length, v = 0; v < _; v += 1)
|
|
4100
|
+
e[o].prevViewData[v] = e[o].it[v];
|
|
4101
4101
|
this.searchShapes(t[o].it, e[o].it, e[o].prevViewData, e[o].gr, s + 1, f, n), t[o]._render && e[o].gr.parentNode !== i && i.appendChild(e[o].gr);
|
|
4102
|
-
} else t[o].ty === "tr" ? (E || (e[o] = this.createTransformElement(t[o], i)), g = e[o].transform, f.push(g)) : t[o].ty === "sh" || t[o].ty === "rc" || t[o].ty === "el" || t[o].ty === "sr" ? (E || (e[o] = this.createShapeElement(t[o], f, s)), this.setElementStyles(e[o])) : t[o].ty === "tm" || t[o].ty === "rd" || t[o].ty === "ms" || t[o].ty === "pb" || t[o].ty === "zz" || t[o].ty === "op" ? (E ? (
|
|
4102
|
+
} else t[o].ty === "tr" ? (E || (e[o] = this.createTransformElement(t[o], i)), g = e[o].transform, f.push(g)) : t[o].ty === "sh" || t[o].ty === "rc" || t[o].ty === "el" || t[o].ty === "sr" ? (E || (e[o] = this.createShapeElement(t[o], f, s)), this.setElementStyles(e[o])) : t[o].ty === "tm" || t[o].ty === "rd" || t[o].ty === "ms" || t[o].ty === "pb" || t[o].ty === "zz" || t[o].ty === "op" ? (E ? (d = e[o], d.closed = !1) : (d = ShapeModifiers.getModifier(t[o].ty), d.init(this, t[o]), e[o] = d, this.shapeModifiers.push(d)), b.push(d)) : t[o].ty === "rp" && (E ? (d = e[o], d.closed = !0) : (d = ShapeModifiers.getModifier(t[o].ty), e[o] = d, d.init(this, t, o, e), this.shapeModifiers.push(d), n = !1), b.push(d));
|
|
4103
4103
|
this.addProcessedElement(t[o], o + 1);
|
|
4104
4104
|
}
|
|
4105
4105
|
for (l = p.length, o = 0; o < l; o += 1)
|
|
@@ -4203,47 +4203,47 @@ var lottie$1 = { exports: {} };
|
|
|
4203
4203
|
return e;
|
|
4204
4204
|
}, TextProperty.prototype.completeTextData = function(t) {
|
|
4205
4205
|
t.__complete = !0;
|
|
4206
|
-
var e = this.elem.globalData.fontManager, r = this.data, i = [], s, a, n, f = 0, o, l = r.m.g,
|
|
4206
|
+
var e = this.elem.globalData.fontManager, r = this.data, i = [], s, a, n, f = 0, o, l = r.m.g, v = 0, _ = 0, p = 0, b = [], g = 0, d = 0, E, c, u = e.getFontByName(t.f), h, m = 0, x = getFontProperties(u);
|
|
4207
4207
|
t.fWeight = x.weight, t.fStyle = x.style, t.finalSize = t.s, t.finalText = this.buildFinalText(t.t), a = t.finalText.length, t.finalLineHeight = t.lh;
|
|
4208
|
-
var C = t.tr / 1e3 * t.finalSize,
|
|
4208
|
+
var C = t.tr / 1e3 * t.finalSize, T;
|
|
4209
4209
|
if (t.sz)
|
|
4210
4210
|
for (var M = !0, w = t.sz[0], D = t.sz[1], L, I; M; ) {
|
|
4211
4211
|
I = this.buildFinalText(t.t), L = 0, g = 0, a = I.length, C = t.tr / 1e3 * t.finalSize;
|
|
4212
4212
|
var R = -1;
|
|
4213
4213
|
for (s = 0; s < a; s += 1)
|
|
4214
|
-
|
|
4214
|
+
T = I[s].charCodeAt(0), n = !1, I[s] === " " ? R = s : (T === 13 || T === 3) && (g = 0, n = !0, L += t.finalLineHeight || t.finalSize * 1.2), e.chars ? (h = e.getCharData(I[s], u.fStyle, u.fFamily), m = n ? 0 : h.w * t.finalSize / 100) : m = e.measureText(I[s], t.f, t.finalSize), g + m > w && I[s] !== " " ? (R === -1 ? a += 1 : s = R, L += t.finalLineHeight || t.finalSize * 1.2, I.splice(s, R === s ? 1 : 0, "\r"), R = -1, g = 0) : (g += m, g += C);
|
|
4215
4215
|
L += u.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize && D < L ? (t.finalSize -= 1, t.finalLineHeight = t.finalSize * t.lh / t.s) : (t.finalText = I, a = t.finalText.length, M = !1);
|
|
4216
4216
|
}
|
|
4217
|
-
g = -C,
|
|
4217
|
+
g = -C, m = 0;
|
|
4218
4218
|
var G = 0, V;
|
|
4219
4219
|
for (s = 0; s < a; s += 1)
|
|
4220
|
-
if (n = !1, V = t.finalText[s],
|
|
4221
|
-
l:
|
|
4222
|
-
an:
|
|
4223
|
-
add:
|
|
4220
|
+
if (n = !1, V = t.finalText[s], T = V.charCodeAt(0), T === 13 || T === 3 ? (G = 0, b.push(g), d = g > d ? g : d, g = -2 * C, o = "", n = !0, p += 1) : o = V, e.chars ? (h = e.getCharData(V, u.fStyle, e.getFontByName(t.f).fFamily), m = n ? 0 : h.w * t.finalSize / 100) : m = e.measureText(o, t.f, t.finalSize), V === " " ? G += m + C : (g += m + C + G, G = 0), i.push({
|
|
4221
|
+
l: m,
|
|
4222
|
+
an: m,
|
|
4223
|
+
add: v,
|
|
4224
4224
|
n,
|
|
4225
4225
|
anIndexes: [],
|
|
4226
4226
|
val: o,
|
|
4227
4227
|
line: p,
|
|
4228
4228
|
animatorJustifyOffset: 0
|
|
4229
4229
|
}), l == 2) {
|
|
4230
|
-
if (
|
|
4231
|
-
for ((o === "" || o === " ") && (
|
|
4232
|
-
i[
|
|
4233
|
-
f += 1,
|
|
4230
|
+
if (v += m, o === "" || o === " " || s === a - 1) {
|
|
4231
|
+
for ((o === "" || o === " ") && (v -= m); _ <= s; )
|
|
4232
|
+
i[_].an = v, i[_].ind = f, i[_].extra = m, _ += 1;
|
|
4233
|
+
f += 1, v = 0;
|
|
4234
4234
|
}
|
|
4235
4235
|
} else if (l == 3) {
|
|
4236
|
-
if (
|
|
4237
|
-
for (o === "" && (
|
|
4238
|
-
i[
|
|
4239
|
-
|
|
4236
|
+
if (v += m, o === "" || s === a - 1) {
|
|
4237
|
+
for (o === "" && (v -= m); _ <= s; )
|
|
4238
|
+
i[_].an = v, i[_].ind = f, i[_].extra = m, _ += 1;
|
|
4239
|
+
v = 0, f += 1;
|
|
4240
4240
|
}
|
|
4241
4241
|
} else
|
|
4242
4242
|
i[f].ind = f, i[f].extra = 0, f += 1;
|
|
4243
|
-
if (t.l = i,
|
|
4243
|
+
if (t.l = i, d = g > d ? g : d, b.push(g), t.sz)
|
|
4244
4244
|
t.boxWidth = t.sz[0], t.justifyOffset = 0;
|
|
4245
4245
|
else
|
|
4246
|
-
switch (t.boxWidth =
|
|
4246
|
+
switch (t.boxWidth = d, t.j) {
|
|
4247
4247
|
case 1:
|
|
4248
4248
|
t.justifyOffset = -t.boxWidth;
|
|
4249
4249
|
break;
|
|
@@ -4254,17 +4254,17 @@ var lottie$1 = { exports: {} };
|
|
|
4254
4254
|
t.justifyOffset = 0;
|
|
4255
4255
|
}
|
|
4256
4256
|
t.lineWidths = b;
|
|
4257
|
-
var P = r.a,
|
|
4257
|
+
var P = r.a, A, y;
|
|
4258
4258
|
c = P.length;
|
|
4259
|
-
var
|
|
4259
|
+
var S, F, k = [];
|
|
4260
4260
|
for (E = 0; E < c; E += 1) {
|
|
4261
|
-
for (
|
|
4262
|
-
|
|
4261
|
+
for (A = P[E], A.a.sc && (t.strokeColorAnim = !0), A.a.sw && (t.strokeWidthAnim = !0), (A.a.fc || A.a.fh || A.a.fs || A.a.fb) && (t.fillColorAnim = !0), F = 0, S = A.s.b, s = 0; s < a; s += 1)
|
|
4262
|
+
y = i[s], y.anIndexes[E] = F, (S == 1 && y.val !== "" || S == 2 && y.val !== "" && y.val !== " " || S == 3 && (y.n || y.val == " " || s == a - 1) || S == 4 && (y.n || s == a - 1)) && (A.s.rn === 1 && k.push(F), F += 1);
|
|
4263
4263
|
r.a[E].s.totalChars = F;
|
|
4264
4264
|
var B = -1, z;
|
|
4265
|
-
if (
|
|
4265
|
+
if (A.s.rn === 1)
|
|
4266
4266
|
for (s = 0; s < a; s += 1)
|
|
4267
|
-
|
|
4267
|
+
y = i[s], B != y.anIndexes[E] && (B = y.anIndexes[E], z = k.splice(Math.floor(Math.random() * k.length), 1)[0]), y.anIndexes[E] = z;
|
|
4268
4268
|
}
|
|
4269
4269
|
t.yOffset = t.finalLineHeight || t.finalSize * 1.2, t.ls = t.ls || 0, t.ascent = u.ascent * t.finalSize / 100;
|
|
4270
4270
|
}, TextProperty.prototype.updateDocumentData = function(t, e) {
|
|
@@ -4299,16 +4299,16 @@ var lottie$1 = { exports: {} };
|
|
|
4299
4299
|
i.prototype = {
|
|
4300
4300
|
getMult: function(n) {
|
|
4301
4301
|
this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
|
|
4302
|
-
var f = 0, o = 0, l = 1,
|
|
4303
|
-
this.ne.v > 0 ? f = this.ne.v / 100 : o = -this.ne.v / 100, this.xe.v > 0 ? l = 1 - this.xe.v / 100 :
|
|
4304
|
-
var
|
|
4305
|
-
if (
|
|
4306
|
-
g === b ? p = n >= g ? 1 : 0 : p = t(0, e(0.5 / (g - b) + (n - b) / (g - b), 1)), p =
|
|
4307
|
-
else if (
|
|
4308
|
-
g === b ? p = n >= g ? 0 : 1 : p = 1 - t(0, e(0.5 / (g - b) + (n - b) / (g - b), 1)), p =
|
|
4309
|
-
else if (
|
|
4310
|
-
g === b ? p = 0 : (p = t(0, e(0.5 / (g - b) + (n - b) / (g - b), 1)), p < 0.5 ? p *= 2 : p = 1 - 2 * (p - 0.5)), p =
|
|
4311
|
-
else if (
|
|
4302
|
+
var f = 0, o = 0, l = 1, v = 1;
|
|
4303
|
+
this.ne.v > 0 ? f = this.ne.v / 100 : o = -this.ne.v / 100, this.xe.v > 0 ? l = 1 - this.xe.v / 100 : v = 1 + this.xe.v / 100;
|
|
4304
|
+
var _ = BezierFactory.getBezierEasing(f, o, l, v).get, p = 0, b = this.finalS, g = this.finalE, d = this.data.sh;
|
|
4305
|
+
if (d === 2)
|
|
4306
|
+
g === b ? p = n >= g ? 1 : 0 : p = t(0, e(0.5 / (g - b) + (n - b) / (g - b), 1)), p = _(p);
|
|
4307
|
+
else if (d === 3)
|
|
4308
|
+
g === b ? p = n >= g ? 0 : 1 : p = 1 - t(0, e(0.5 / (g - b) + (n - b) / (g - b), 1)), p = _(p);
|
|
4309
|
+
else if (d === 4)
|
|
4310
|
+
g === b ? p = 0 : (p = t(0, e(0.5 / (g - b) + (n - b) / (g - b), 1)), p < 0.5 ? p *= 2 : p = 1 - 2 * (p - 0.5)), p = _(p);
|
|
4311
|
+
else if (d === 5) {
|
|
4312
4312
|
if (g === b)
|
|
4313
4313
|
p = 0;
|
|
4314
4314
|
else {
|
|
@@ -4317,24 +4317,24 @@ var lottie$1 = { exports: {} };
|
|
|
4317
4317
|
var c = -E / 2 + n, u = E / 2;
|
|
4318
4318
|
p = Math.sqrt(1 - c * c / (u * u));
|
|
4319
4319
|
}
|
|
4320
|
-
p =
|
|
4321
|
-
} else
|
|
4320
|
+
p = _(p);
|
|
4321
|
+
} else d === 6 ? (g === b ? p = 0 : (n = e(t(0, n + 0.5 - b), g - b), p = (1 + Math.cos(Math.PI + Math.PI * 2 * n / (g - b))) / 2), p = _(p)) : (n >= r(b) && (n - b < 0 ? p = t(0, e(e(g, 1) - (b - n), 1)) : p = t(0, e(g - n, 1))), p = _(p));
|
|
4322
4322
|
if (this.sm.v !== 100) {
|
|
4323
4323
|
var h = this.sm.v * 0.01;
|
|
4324
4324
|
h === 0 && (h = 1e-8);
|
|
4325
|
-
var
|
|
4326
|
-
p <
|
|
4325
|
+
var m = 0.5 - h * 0.5;
|
|
4326
|
+
p < m ? p = 0 : (p = (p - m) / h, p > 1 && (p = 1));
|
|
4327
4327
|
}
|
|
4328
4328
|
return p * this.a.v;
|
|
4329
4329
|
},
|
|
4330
4330
|
getValue: function(n) {
|
|
4331
4331
|
this.iterateDynamicProperties(), this._mdf = n || this._mdf, this._currentTextLength = this.elem.textProperty.currentData.l.length || 0, n && this.data.r === 2 && (this.e.v = this._currentTextLength);
|
|
4332
|
-
var f = this.data.r === 2 ? 1 : 100 / this.data.totalChars, o = this.o.v / f, l = this.s.v / f + o,
|
|
4333
|
-
if (l >
|
|
4334
|
-
var
|
|
4335
|
-
l =
|
|
4332
|
+
var f = this.data.r === 2 ? 1 : 100 / this.data.totalChars, o = this.o.v / f, l = this.s.v / f + o, v = this.e.v / f + o;
|
|
4333
|
+
if (l > v) {
|
|
4334
|
+
var _ = l;
|
|
4335
|
+
l = v, v = _;
|
|
4336
4336
|
}
|
|
4337
|
-
this.finalS = l, this.finalE =
|
|
4337
|
+
this.finalS = l, this.finalE = v;
|
|
4338
4338
|
}
|
|
4339
4339
|
}, extendPrototype([DynamicPropertyContainer], i);
|
|
4340
4340
|
function s(a, n, f) {
|
|
@@ -4387,76 +4387,76 @@ var lottie$1 = { exports: {} };
|
|
|
4387
4387
|
}, TextAnimatorProperty.prototype.getMeasures = function(t, e) {
|
|
4388
4388
|
if (this.lettersChangedFlag = e, !(!this._mdf && !this._isFirstFrame && !e && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
4389
4389
|
this._isFirstFrame = !1;
|
|
4390
|
-
var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, a = this.mHelper, n = this._renderType, f = this.renderedLetters.length, o, l,
|
|
4390
|
+
var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, a = this.mHelper, n = this._renderType, f = this.renderedLetters.length, o, l, v, _, p = t.l, b, g, d, E, c, u, h, m, x, C, T, M, w, D, L;
|
|
4391
4391
|
if (this._hasMaskedPath) {
|
|
4392
4392
|
if (L = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
4393
4393
|
var I = L.v;
|
|
4394
4394
|
this._pathData.r.v && (I = I.reverse()), b = {
|
|
4395
4395
|
tLength: 0,
|
|
4396
4396
|
segments: []
|
|
4397
|
-
},
|
|
4397
|
+
}, _ = I._length - 1;
|
|
4398
4398
|
var R;
|
|
4399
|
-
for (M = 0,
|
|
4400
|
-
R = bez.buildBezierData(I.v[
|
|
4401
|
-
|
|
4399
|
+
for (M = 0, v = 0; v < _; v += 1)
|
|
4400
|
+
R = bez.buildBezierData(I.v[v], I.v[v + 1], [I.o[v][0] - I.v[v][0], I.o[v][1] - I.v[v][1]], [I.i[v + 1][0] - I.v[v + 1][0], I.i[v + 1][1] - I.v[v + 1][1]]), b.tLength += R.segmentLength, b.segments.push(R), M += R.segmentLength;
|
|
4401
|
+
v = _, L.v.c && (R = bez.buildBezierData(I.v[v], I.v[0], [I.o[v][0] - I.v[v][0], I.o[v][1] - I.v[v][1]], [I.i[0][0] - I.v[0][0], I.i[0][1] - I.v[0][1]]), b.tLength += R.segmentLength, b.segments.push(R), M += R.segmentLength), this._pathData.pi = b;
|
|
4402
4402
|
}
|
|
4403
4403
|
if (b = this._pathData.pi, g = this._pathData.f.v, h = 0, u = 1, E = 0, c = !0, C = b.segments, g < 0 && L.v.c)
|
|
4404
4404
|
for (b.tLength < Math.abs(g) && (g = -Math.abs(g) % b.tLength), h = C.length - 1, x = C[h].points, u = x.length - 1; g < 0; )
|
|
4405
4405
|
g += x[u].partialLength, u -= 1, u < 0 && (h -= 1, x = C[h].points, u = x.length - 1);
|
|
4406
|
-
x = C[h].points,
|
|
4406
|
+
x = C[h].points, m = x[u - 1], d = x[u], T = d.partialLength;
|
|
4407
4407
|
}
|
|
4408
|
-
|
|
4409
|
-
var G = t.finalSize * 1.2 * 0.714, V = !0, P,
|
|
4410
|
-
|
|
4411
|
-
var k, B = -1, z, N, j, H = g, q = h, Y = u, Q = -1, X, $,
|
|
4408
|
+
_ = p.length, o = 0, l = 0;
|
|
4409
|
+
var G = t.finalSize * 1.2 * 0.714, V = !0, P, A, y, S, F;
|
|
4410
|
+
S = i.length;
|
|
4411
|
+
var k, B = -1, z, N, j, H = g, q = h, Y = u, Q = -1, X, $, Z, W, O, et, at, rt, tt = "", it = this.defaultPropsArray, st;
|
|
4412
4412
|
if (t.j === 2 || t.j === 1) {
|
|
4413
|
-
var
|
|
4414
|
-
for (
|
|
4415
|
-
if (p[
|
|
4416
|
-
for (
|
|
4417
|
-
p[
|
|
4418
|
-
|
|
4413
|
+
var J = 0, nt = 0, ot = t.j === 2 ? -0.5 : -1, K = 0, ft = !0;
|
|
4414
|
+
for (v = 0; v < _; v += 1)
|
|
4415
|
+
if (p[v].n) {
|
|
4416
|
+
for (J && (J += nt); K < v; )
|
|
4417
|
+
p[K].animatorJustifyOffset = J, K += 1;
|
|
4418
|
+
J = 0, ft = !0;
|
|
4419
4419
|
} else {
|
|
4420
|
-
for (
|
|
4421
|
-
P = i[
|
|
4420
|
+
for (y = 0; y < S; y += 1)
|
|
4421
|
+
P = i[y].a, P.t.propType && (ft && t.j === 2 && (nt += P.t.v * ot), A = i[y].s, k = A.getMult(p[v].anIndexes[y], s.a[y].s.totalChars), k.length ? J += P.t.v * k[0] * ot : J += P.t.v * k * ot);
|
|
4422
4422
|
ft = !1;
|
|
4423
4423
|
}
|
|
4424
|
-
for (
|
|
4425
|
-
p[
|
|
4424
|
+
for (J && (J += nt); K < v; )
|
|
4425
|
+
p[K].animatorJustifyOffset = J, K += 1;
|
|
4426
4426
|
}
|
|
4427
|
-
for (
|
|
4428
|
-
if (a.reset(), X = 1, p[
|
|
4429
|
-
o = 0, l += t.yOffset, l += V ? 1 : 0, g = H, V = !1, this._hasMaskedPath && (h = q, u = Y, x = C[h].points,
|
|
4427
|
+
for (v = 0; v < _; v += 1) {
|
|
4428
|
+
if (a.reset(), X = 1, p[v].n)
|
|
4429
|
+
o = 0, l += t.yOffset, l += V ? 1 : 0, g = H, V = !1, this._hasMaskedPath && (h = q, u = Y, x = C[h].points, m = x[u - 1], d = x[u], T = d.partialLength, E = 0), tt = "", rt = "", et = "", st = "", it = this.defaultPropsArray;
|
|
4430
4430
|
else {
|
|
4431
4431
|
if (this._hasMaskedPath) {
|
|
4432
|
-
if (Q !== p[
|
|
4432
|
+
if (Q !== p[v].line) {
|
|
4433
4433
|
switch (t.j) {
|
|
4434
4434
|
case 1:
|
|
4435
|
-
g += M - t.lineWidths[p[
|
|
4435
|
+
g += M - t.lineWidths[p[v].line];
|
|
4436
4436
|
break;
|
|
4437
4437
|
case 2:
|
|
4438
|
-
g += (M - t.lineWidths[p[
|
|
4438
|
+
g += (M - t.lineWidths[p[v].line]) / 2;
|
|
4439
4439
|
break;
|
|
4440
4440
|
}
|
|
4441
|
-
Q = p[
|
|
4441
|
+
Q = p[v].line;
|
|
4442
4442
|
}
|
|
4443
|
-
B !== p[
|
|
4443
|
+
B !== p[v].ind && (p[B] && (g += p[B].extra), g += p[v].an / 2, B = p[v].ind), g += r[0] * p[v].an * 5e-3;
|
|
4444
4444
|
var U = 0;
|
|
4445
|
-
for (
|
|
4446
|
-
P = i[
|
|
4447
|
-
for (c = !0, this._pathData.a.v && (g = p[0].an * 0.5 + (M - this._pathData.f.v - p[0].an * 0.5 - p[p.length - 1].an * 0.5) * B / (
|
|
4448
|
-
E +
|
|
4449
|
-
z = p[
|
|
4445
|
+
for (y = 0; y < S; y += 1)
|
|
4446
|
+
P = i[y].a, P.p.propType && (A = i[y].s, k = A.getMult(p[v].anIndexes[y], s.a[y].s.totalChars), k.length ? U += P.p.v[0] * k[0] : U += P.p.v[0] * k), P.a.propType && (A = i[y].s, k = A.getMult(p[v].anIndexes[y], s.a[y].s.totalChars), k.length ? U += P.a.v[0] * k[0] : U += P.a.v[0] * k);
|
|
4447
|
+
for (c = !0, this._pathData.a.v && (g = p[0].an * 0.5 + (M - this._pathData.f.v - p[0].an * 0.5 - p[p.length - 1].an * 0.5) * B / (_ - 1), g += this._pathData.f.v); c; )
|
|
4448
|
+
E + T >= g + U || !x ? (w = (g + U - E) / d.partialLength, N = m.point[0] + (d.point[0] - m.point[0]) * w, j = m.point[1] + (d.point[1] - m.point[1]) * w, a.translate(-r[0] * p[v].an * 5e-3, -(r[1] * G) * 0.01), c = !1) : x && (E += d.partialLength, u += 1, u >= x.length && (u = 0, h += 1, C[h] ? x = C[h].points : L.v.c ? (u = 0, h = 0, x = C[h].points) : (E -= d.partialLength, x = null)), x && (m = d, d = x[u], T = d.partialLength));
|
|
4449
|
+
z = p[v].an / 2 - p[v].add, a.translate(-z, 0, 0);
|
|
4450
4450
|
} else
|
|
4451
|
-
z = p[
|
|
4452
|
-
for (
|
|
4453
|
-
P = i[
|
|
4454
|
-
for (t.strokeWidthAnim && (
|
|
4455
|
-
P = i[
|
|
4456
|
-
for (
|
|
4457
|
-
P = i[
|
|
4458
|
-
for (
|
|
4459
|
-
if (P = i[
|
|
4451
|
+
z = p[v].an / 2 - p[v].add, a.translate(-z, 0, 0), a.translate(-r[0] * p[v].an * 5e-3, -r[1] * G * 0.01, 0);
|
|
4452
|
+
for (y = 0; y < S; y += 1)
|
|
4453
|
+
P = i[y].a, P.t.propType && (A = i[y].s, k = A.getMult(p[v].anIndexes[y], s.a[y].s.totalChars), (o !== 0 || t.j !== 0) && (this._hasMaskedPath ? k.length ? g += P.t.v * k[0] : g += P.t.v * k : k.length ? o += P.t.v * k[0] : o += P.t.v * k));
|
|
4454
|
+
for (t.strokeWidthAnim && (Z = t.sw || 0), t.strokeColorAnim && (t.sc ? $ = [t.sc[0], t.sc[1], t.sc[2]] : $ = [0, 0, 0]), t.fillColorAnim && t.fc && (W = [t.fc[0], t.fc[1], t.fc[2]]), y = 0; y < S; y += 1)
|
|
4455
|
+
P = i[y].a, P.a.propType && (A = i[y].s, k = A.getMult(p[v].anIndexes[y], s.a[y].s.totalChars), k.length ? a.translate(-P.a.v[0] * k[0], -P.a.v[1] * k[1], P.a.v[2] * k[2]) : a.translate(-P.a.v[0] * k, -P.a.v[1] * k, P.a.v[2] * k));
|
|
4456
|
+
for (y = 0; y < S; y += 1)
|
|
4457
|
+
P = i[y].a, P.s.propType && (A = i[y].s, k = A.getMult(p[v].anIndexes[y], s.a[y].s.totalChars), k.length ? a.scale(1 + (P.s.v[0] - 1) * k[0], 1 + (P.s.v[1] - 1) * k[1], 1) : a.scale(1 + (P.s.v[0] - 1) * k, 1 + (P.s.v[1] - 1) * k, 1));
|
|
4458
|
+
for (y = 0; y < S; y += 1) {
|
|
4459
|
+
if (P = i[y].a, A = i[y].s, k = A.getMult(p[v].anIndexes[y], s.a[y].s.totalChars), P.sk.propType && (k.length ? a.skewFromAxis(-P.sk.v * k[0], P.sa.v * k[1]) : a.skewFromAxis(-P.sk.v * k, P.sa.v * k)), P.r.propType && (k.length ? a.rotateZ(-P.r.v * k[2]) : a.rotateZ(-P.r.v * k)), P.ry.propType && (k.length ? a.rotateY(P.ry.v * k[1]) : a.rotateY(P.ry.v * k)), P.rx.propType && (k.length ? a.rotateX(P.rx.v * k[0]) : a.rotateX(P.rx.v * k)), P.o.propType && (k.length ? X += (P.o.v * k[0] - X) * k[0] : X += (P.o.v * k - X) * k), t.strokeWidthAnim && P.sw.propType && (k.length ? Z += P.sw.v * k[0] : Z += P.sw.v * k), t.strokeColorAnim && P.sc.propType)
|
|
4460
4460
|
for (O = 0; O < 3; O += 1)
|
|
4461
4461
|
k.length ? $[O] += (P.sc.v[O] - $[O]) * k[0] : $[O] += (P.sc.v[O] - $[O]) * k;
|
|
4462
4462
|
if (t.fillColorAnim && t.fc) {
|
|
@@ -4466,29 +4466,29 @@ var lottie$1 = { exports: {} };
|
|
|
4466
4466
|
P.fh.propType && (k.length ? W = addHueToRGB(W, P.fh.v * k[0]) : W = addHueToRGB(W, P.fh.v * k)), P.fs.propType && (k.length ? W = addSaturationToRGB(W, P.fs.v * k[0]) : W = addSaturationToRGB(W, P.fs.v * k)), P.fb.propType && (k.length ? W = addBrightnessToRGB(W, P.fb.v * k[0]) : W = addBrightnessToRGB(W, P.fb.v * k));
|
|
4467
4467
|
}
|
|
4468
4468
|
}
|
|
4469
|
-
for (
|
|
4470
|
-
P = i[
|
|
4471
|
-
if (t.strokeWidthAnim && (et =
|
|
4469
|
+
for (y = 0; y < S; y += 1)
|
|
4470
|
+
P = i[y].a, P.p.propType && (A = i[y].s, k = A.getMult(p[v].anIndexes[y], s.a[y].s.totalChars), this._hasMaskedPath ? k.length ? a.translate(0, P.p.v[1] * k[0], -P.p.v[2] * k[1]) : a.translate(0, P.p.v[1] * k, -P.p.v[2] * k) : k.length ? a.translate(P.p.v[0] * k[0], P.p.v[1] * k[1], -P.p.v[2] * k[2]) : a.translate(P.p.v[0] * k, P.p.v[1] * k, -P.p.v[2] * k));
|
|
4471
|
+
if (t.strokeWidthAnim && (et = Z < 0 ? 0 : Z), t.strokeColorAnim && (at = "rgb(" + Math.round($[0] * 255) + "," + Math.round($[1] * 255) + "," + Math.round($[2] * 255) + ")"), t.fillColorAnim && t.fc && (rt = "rgb(" + Math.round(W[0] * 255) + "," + Math.round(W[1] * 255) + "," + Math.round(W[2] * 255) + ")"), this._hasMaskedPath) {
|
|
4472
4472
|
if (a.translate(0, -t.ls), a.translate(0, r[1] * G * 0.01 + l, 0), this._pathData.p.v) {
|
|
4473
|
-
D = (
|
|
4473
|
+
D = (d.point[1] - m.point[1]) / (d.point[0] - m.point[0]);
|
|
4474
4474
|
var ht = Math.atan(D) * 180 / Math.PI;
|
|
4475
|
-
|
|
4475
|
+
d.point[0] < m.point[0] && (ht += 180), a.rotate(-ht * Math.PI / 180);
|
|
4476
4476
|
}
|
|
4477
|
-
a.translate(N, j, 0), g -= r[0] * p[
|
|
4477
|
+
a.translate(N, j, 0), g -= r[0] * p[v].an * 5e-3, p[v + 1] && B !== p[v + 1].ind && (g += p[v].an / 2, g += t.tr * 1e-3 * t.finalSize);
|
|
4478
4478
|
} else {
|
|
4479
4479
|
switch (a.translate(o, l, 0), t.ps && a.translate(t.ps[0], t.ps[1] + t.ascent, 0), t.j) {
|
|
4480
4480
|
case 1:
|
|
4481
|
-
a.translate(p[
|
|
4481
|
+
a.translate(p[v].animatorJustifyOffset + t.justifyOffset + (t.boxWidth - t.lineWidths[p[v].line]), 0, 0);
|
|
4482
4482
|
break;
|
|
4483
4483
|
case 2:
|
|
4484
|
-
a.translate(p[
|
|
4484
|
+
a.translate(p[v].animatorJustifyOffset + t.justifyOffset + (t.boxWidth - t.lineWidths[p[v].line]) / 2, 0, 0);
|
|
4485
4485
|
break;
|
|
4486
4486
|
}
|
|
4487
|
-
a.translate(0, -t.ls), a.translate(z, 0, 0), a.translate(r[0] * p[
|
|
4487
|
+
a.translate(0, -t.ls), a.translate(z, 0, 0), a.translate(r[0] * p[v].an * 5e-3, r[1] * G * 0.01, 0), o += p[v].l + t.tr * 1e-3 * t.finalSize;
|
|
4488
4488
|
}
|
|
4489
4489
|
n === "html" ? tt = a.toCSS() : n === "svg" ? tt = a.to2dCSS() : it = [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]], st = X;
|
|
4490
4490
|
}
|
|
4491
|
-
f <=
|
|
4491
|
+
f <= v ? (F = new LetterProps(st, et, at, rt, tt, it), this.renderedLetters.push(F), f += 1, this.lettersChangedFlag = !0) : (F = this.renderedLetters[v], this.lettersChangedFlag = F.update(st, et, at, rt, tt, it) || this.lettersChangedFlag);
|
|
4492
4492
|
}
|
|
4493
4493
|
}
|
|
4494
4494
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -4563,8 +4563,8 @@ var lottie$1 = { exports: {} };
|
|
|
4563
4563
|
this.layerElement.setAttribute("aria-label", r.t);
|
|
4564
4564
|
var n = r.l || [], f = !!this.globalData.fontManager.chars;
|
|
4565
4565
|
e = n.length;
|
|
4566
|
-
var o, l = this.mHelper,
|
|
4567
|
-
if (
|
|
4566
|
+
var o, l = this.mHelper, v = "", _ = this.data.singleShape, p = 0, b = 0, g = !0, d = r.tr * 1e-3 * r.finalSize;
|
|
4567
|
+
if (_ && !f && !r.sz) {
|
|
4568
4568
|
var E = this.textContainer, c = "start";
|
|
4569
4569
|
switch (r.j) {
|
|
4570
4570
|
case 1:
|
|
@@ -4577,7 +4577,7 @@ var lottie$1 = { exports: {} };
|
|
|
4577
4577
|
c = "start";
|
|
4578
4578
|
break;
|
|
4579
4579
|
}
|
|
4580
|
-
E.setAttribute("text-anchor", c), E.setAttribute("letter-spacing",
|
|
4580
|
+
E.setAttribute("text-anchor", c), E.setAttribute("letter-spacing", d);
|
|
4581
4581
|
var u = this.buildTextContents(r.finalText);
|
|
4582
4582
|
for (e = u.length, b = r.ps ? r.ps[1] + r.ascent : 0, t = 0; t < e; t += 1)
|
|
4583
4583
|
o = this.textSpans[t].span || createNS("tspan"), o.textContent = u[t], o.setAttribute("x", 0), o.setAttribute("y", b), o.style.display = "inherit", E.appendChild(o), this.textSpans[t] || (this.textSpans[t] = {
|
|
@@ -4586,13 +4586,13 @@ var lottie$1 = { exports: {} };
|
|
|
4586
4586
|
}), this.textSpans[t].span = o, b += r.finalLineHeight;
|
|
4587
4587
|
this.layerElement.appendChild(E);
|
|
4588
4588
|
} else {
|
|
4589
|
-
var h = this.textSpans.length,
|
|
4589
|
+
var h = this.textSpans.length, m;
|
|
4590
4590
|
for (t = 0; t < e; t += 1) {
|
|
4591
4591
|
if (this.textSpans[t] || (this.textSpans[t] = {
|
|
4592
4592
|
span: null,
|
|
4593
4593
|
childSpan: null,
|
|
4594
4594
|
glyph: null
|
|
4595
|
-
}), !f || !
|
|
4595
|
+
}), !f || !_ || t === 0) {
|
|
4596
4596
|
if (o = h > t ? this.textSpans[t].span : createNS(f ? "g" : "text"), h <= t) {
|
|
4597
4597
|
if (o.setAttribute("stroke-linecap", "butt"), o.setAttribute("stroke-linejoin", "round"), o.setAttribute("stroke-miterlimit", "4"), this.textSpans[t].span = o, f) {
|
|
4598
4598
|
var x = createNS("g");
|
|
@@ -4602,24 +4602,24 @@ var lottie$1 = { exports: {} };
|
|
|
4602
4602
|
}
|
|
4603
4603
|
o.style.display = "inherit";
|
|
4604
4604
|
}
|
|
4605
|
-
if (l.reset(),
|
|
4606
|
-
|
|
4605
|
+
if (l.reset(), _ && (n[t].n && (p = -d, b += r.yOffset, b += g ? 1 : 0, g = !1), this.applyTextPropertiesToMatrix(r, l, n[t].line, p, b), p += n[t].l || 0, p += d), f) {
|
|
4606
|
+
m = this.globalData.fontManager.getCharData(r.finalText[t], i.fStyle, this.globalData.fontManager.getFontByName(r.f).fFamily);
|
|
4607
4607
|
var C;
|
|
4608
|
-
if (
|
|
4609
|
-
C = new SVGCompElement(
|
|
4608
|
+
if (m.t === 1)
|
|
4609
|
+
C = new SVGCompElement(m.data, this.globalData, this);
|
|
4610
4610
|
else {
|
|
4611
|
-
var
|
|
4612
|
-
|
|
4611
|
+
var T = emptyShapeData;
|
|
4612
|
+
m.data && m.data.shapes && (T = this.buildShapeData(m.data, r.finalSize)), C = new SVGShapeElement(T, this.globalData, this);
|
|
4613
4613
|
}
|
|
4614
4614
|
if (this.textSpans[t].glyph) {
|
|
4615
4615
|
var M = this.textSpans[t].glyph;
|
|
4616
4616
|
this.textSpans[t].childSpan.removeChild(M.layerElement), M.destroy();
|
|
4617
4617
|
}
|
|
4618
|
-
this.textSpans[t].glyph = C, C._debug = !0, C.prepareFrame(0), C.renderFrame(), this.textSpans[t].childSpan.appendChild(C.layerElement),
|
|
4618
|
+
this.textSpans[t].glyph = C, C._debug = !0, C.prepareFrame(0), C.renderFrame(), this.textSpans[t].childSpan.appendChild(C.layerElement), m.t === 1 && this.textSpans[t].childSpan.setAttribute("transform", "scale(" + r.finalSize / 100 + "," + r.finalSize / 100 + ")");
|
|
4619
4619
|
} else
|
|
4620
|
-
|
|
4620
|
+
_ && o.setAttribute("transform", "translate(" + l.props[12] + "," + l.props[13] + ")"), o.textContent = n[t].val, o.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
|
|
4621
4621
|
}
|
|
4622
|
-
|
|
4622
|
+
_ && o && o.setAttribute("d", v);
|
|
4623
4623
|
}
|
|
4624
4624
|
for (; t < this.textSpans.length; )
|
|
4625
4625
|
this.textSpans[t].span.style.display = "none", t += 1;
|
|
@@ -4878,8 +4878,8 @@ var lottie$1 = { exports: {} };
|
|
|
4878
4878
|
var lumaLoader = function() {
|
|
4879
4879
|
var e = "__lottie_element_luma_buffer", r = null, i = null, s = null;
|
|
4880
4880
|
function a() {
|
|
4881
|
-
var o = createNS("svg"), l = createNS("filter"),
|
|
4882
|
-
return l.setAttribute("id", e),
|
|
4881
|
+
var o = createNS("svg"), l = createNS("filter"), v = createNS("feColorMatrix");
|
|
4882
|
+
return l.setAttribute("id", e), v.setAttribute("type", "matrix"), v.setAttribute("color-interpolation-filters", "sRGB"), v.setAttribute("values", "0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"), l.appendChild(v), o.appendChild(l), o.setAttribute("id", e + "_svg"), featureSupport.svgLumaHidden && (o.style.display = "none"), o;
|
|
4883
4883
|
}
|
|
4884
4884
|
function n() {
|
|
4885
4885
|
r || (s = a(), document.body.appendChild(s), r = createTag("canvas"), i = r.getContext("2d"), i.filter = "url(#" + e + ")", i.fillStyle = "rgba(0,0,0,0)", i.fillRect(0, 0, 1, 1));
|
|
@@ -5115,36 +5115,36 @@ var lottie$1 = { exports: {} };
|
|
|
5115
5115
|
for (e = 0; e < r; e += 1)
|
|
5116
5116
|
t[e].closed = !0;
|
|
5117
5117
|
}, CVShapeElement.prototype.searchShapes = function(t, e, r, i, s) {
|
|
5118
|
-
var a, n = t.length - 1, f, o, l = [],
|
|
5118
|
+
var a, n = t.length - 1, f, o, l = [], v = [], _, p, b, g = [].concat(s);
|
|
5119
5119
|
for (a = n; a >= 0; a -= 1) {
|
|
5120
|
-
if (
|
|
5121
|
-
|
|
5120
|
+
if (_ = this.searchProcessedElement(t[a]), _ ? e[a] = r[_ - 1] : t[a]._shouldRender = i, t[a].ty === "fl" || t[a].ty === "st" || t[a].ty === "gf" || t[a].ty === "gs")
|
|
5121
|
+
_ ? e[a].style.closed = !1 : e[a] = this.createStyleElement(t[a], g), l.push(e[a].style);
|
|
5122
5122
|
else if (t[a].ty === "gr") {
|
|
5123
|
-
if (!
|
|
5123
|
+
if (!_)
|
|
5124
5124
|
e[a] = this.createGroupElement(t[a]);
|
|
5125
5125
|
else
|
|
5126
5126
|
for (o = e[a].it.length, f = 0; f < o; f += 1)
|
|
5127
5127
|
e[a].prevViewData[f] = e[a].it[f];
|
|
5128
5128
|
this.searchShapes(t[a].it, e[a].it, e[a].prevViewData, i, g);
|
|
5129
|
-
} else t[a].ty === "tr" ? (
|
|
5129
|
+
} else t[a].ty === "tr" ? (_ || (b = this.createTransformElement(t[a]), e[a] = b), g.push(e[a]), this.addTransformToStyleList(e[a])) : t[a].ty === "sh" || t[a].ty === "rc" || t[a].ty === "el" || t[a].ty === "sr" ? _ || (e[a] = this.createShapeElement(t[a])) : t[a].ty === "tm" || t[a].ty === "rd" || t[a].ty === "pb" || t[a].ty === "zz" || t[a].ty === "op" ? (_ ? (p = e[a], p.closed = !1) : (p = ShapeModifiers.getModifier(t[a].ty), p.init(this, t[a]), e[a] = p, this.shapeModifiers.push(p)), v.push(p)) : t[a].ty === "rp" && (_ ? (p = e[a], p.closed = !0) : (p = ShapeModifiers.getModifier(t[a].ty), e[a] = p, p.init(this, t, a, e), this.shapeModifiers.push(p), i = !1), v.push(p));
|
|
5130
5130
|
this.addProcessedElement(t[a], a + 1);
|
|
5131
5131
|
}
|
|
5132
|
-
for (this.removeTransformFromStyleList(), this.closeStyles(l), n =
|
|
5133
|
-
|
|
5132
|
+
for (this.removeTransformFromStyleList(), this.closeStyles(l), n = v.length, a = 0; a < n; a += 1)
|
|
5133
|
+
v[a].closed = !0;
|
|
5134
5134
|
}, CVShapeElement.prototype.renderInnerContent = function() {
|
|
5135
5135
|
this.transformHelper.opacity = 1, this.transformHelper._opMdf = !1, this.renderModifiers(), this.transformsManager.processSequences(this._isFirstFrame), this.renderShape(this.transformHelper, this.shapesData, this.itemsData, !0);
|
|
5136
5136
|
}, CVShapeElement.prototype.renderShapeTransform = function(t, e) {
|
|
5137
5137
|
(t._opMdf || e.op._mdf || this._isFirstFrame) && (e.opacity = t.opacity, e.opacity *= e.op.v, e._opMdf = !0);
|
|
5138
5138
|
}, CVShapeElement.prototype.drawLayer = function() {
|
|
5139
|
-
var t, e = this.stylesList.length, r, i, s, a, n, f, o = this.globalData.renderer, l = this.globalData.canvasContext,
|
|
5139
|
+
var t, e = this.stylesList.length, r, i, s, a, n, f, o = this.globalData.renderer, l = this.globalData.canvasContext, v, _;
|
|
5140
5140
|
for (t = 0; t < e; t += 1)
|
|
5141
|
-
if (
|
|
5142
|
-
for (o.save(), n =
|
|
5143
|
-
for ((
|
|
5141
|
+
if (_ = this.stylesList[t], v = _.type, !((v === "st" || v === "gs") && _.wi === 0 || !_.data._shouldRender || _.coOp === 0 || this.globalData.currentGlobalAlpha === 0)) {
|
|
5142
|
+
for (o.save(), n = _.elements, v === "st" || v === "gs" ? (o.ctxStrokeStyle(v === "st" ? _.co : _.grd), o.ctxLineWidth(_.wi), o.ctxLineCap(_.lc), o.ctxLineJoin(_.lj), o.ctxMiterLimit(_.ml || 0)) : o.ctxFillStyle(v === "fl" ? _.co : _.grd), o.ctxOpacity(_.coOp), v !== "st" && v !== "gs" && l.beginPath(), o.ctxTransform(_.preTransforms.finalTransform.props), i = n.length, r = 0; r < i; r += 1) {
|
|
5143
|
+
for ((v === "st" || v === "gs") && (l.beginPath(), _.da && (l.setLineDash(_.da), l.lineDashOffset = _.do)), f = n[r].trNodes, a = f.length, s = 0; s < a; s += 1)
|
|
5144
5144
|
f[s].t === "m" ? l.moveTo(f[s].p[0], f[s].p[1]) : f[s].t === "c" ? l.bezierCurveTo(f[s].pts[0], f[s].pts[1], f[s].pts[2], f[s].pts[3], f[s].pts[4], f[s].pts[5]) : l.closePath();
|
|
5145
|
-
(
|
|
5145
|
+
(v === "st" || v === "gs") && (o.ctxStroke(), _.da && l.setLineDash(this.dashResetter));
|
|
5146
5146
|
}
|
|
5147
|
-
|
|
5147
|
+
v !== "st" && v !== "gs" && this.globalData.renderer.ctxFill(_.r), o.restore();
|
|
5148
5148
|
}
|
|
5149
5149
|
}, CVShapeElement.prototype.renderShape = function(t, e, r, i) {
|
|
5150
5150
|
var s, a = e.length - 1, n;
|
|
@@ -5196,13 +5196,13 @@ var lottie$1 = { exports: {} };
|
|
|
5196
5196
|
if (t.t === 1)
|
|
5197
5197
|
s = a.createLinearGradient(n[0], n[1], f[0], f[1]);
|
|
5198
5198
|
else {
|
|
5199
|
-
var o = Math.sqrt(Math.pow(n[0] - f[0], 2) + Math.pow(n[1] - f[1], 2)), l = Math.atan2(f[1] - n[1], f[0] - n[0]),
|
|
5200
|
-
|
|
5201
|
-
var
|
|
5199
|
+
var o = Math.sqrt(Math.pow(n[0] - f[0], 2) + Math.pow(n[1] - f[1], 2)), l = Math.atan2(f[1] - n[1], f[0] - n[0]), v = e.h.v;
|
|
5200
|
+
v >= 1 ? v = 0.99 : v <= -1 && (v = -0.99);
|
|
5201
|
+
var _ = o * v, p = Math.cos(l + e.a.v) * _ + n[0], b = Math.sin(l + e.a.v) * _ + n[1];
|
|
5202
5202
|
s = a.createRadialGradient(p, b, 0, n[0], n[1], o);
|
|
5203
5203
|
}
|
|
5204
|
-
var g,
|
|
5205
|
-
for (g = 0; g <
|
|
5204
|
+
var g, d = t.g.p, E = e.g.c, c = 1;
|
|
5205
|
+
for (g = 0; g < d; g += 1)
|
|
5206
5206
|
e.g._hasOpacity && e.g._collapsable && (c = e.g.o[g * 2 + 1]), s.addColorStop(E[g * 4] / 100, "rgba(" + E[g * 4 + 1] + "," + E[g * 4 + 2] + "," + E[g * 4 + 3] + "," + c + ")");
|
|
5207
5207
|
i.grd = s;
|
|
5208
5208
|
}
|
|
@@ -5230,19 +5230,19 @@ var lottie$1 = { exports: {} };
|
|
|
5230
5230
|
t.sc && (r = !0, this.values.stroke = this.buildColor(t.sc), this.values.sWidth = t.sw);
|
|
5231
5231
|
var i = this.globalData.fontManager.getFontByName(t.f), s, a, n = t.l, f = this.mHelper;
|
|
5232
5232
|
this.stroke = r, this.values.fValue = t.finalSize + "px " + this.globalData.fontManager.getFontByName(t.f).fFamily, a = t.finalText.length;
|
|
5233
|
-
var o, l,
|
|
5233
|
+
var o, l, v, _, p, b, g, d, E, c, u = this.data.singleShape, h = t.tr * 1e-3 * t.finalSize, m = 0, x = 0, C = !0, T = 0;
|
|
5234
5234
|
for (s = 0; s < a; s += 1) {
|
|
5235
|
-
o = this.globalData.fontManager.getCharData(t.finalText[s], i.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily), l = o && o.data || {}, f.reset(), u && n[s].n && (
|
|
5235
|
+
o = this.globalData.fontManager.getCharData(t.finalText[s], i.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily), l = o && o.data || {}, f.reset(), u && n[s].n && (m = -h, x += t.yOffset, x += C ? 1 : 0, C = !1), p = l.shapes ? l.shapes[0].it : [], g = p.length, f.scale(t.finalSize / 100, t.finalSize / 100), u && this.applyTextPropertiesToMatrix(t, f, n[s].line, m, x), E = createSizedArray(g - 1);
|
|
5236
5236
|
var M = 0;
|
|
5237
5237
|
for (b = 0; b < g; b += 1)
|
|
5238
5238
|
if (p[b].ty === "sh") {
|
|
5239
|
-
for (
|
|
5240
|
-
|
|
5241
|
-
c.push(f.applyToX(
|
|
5239
|
+
for (_ = p[b].ks.k.i.length, d = p[b].ks.k, c = [], v = 1; v < _; v += 1)
|
|
5240
|
+
v === 1 && c.push(f.applyToX(d.v[0][0], d.v[0][1], 0), f.applyToY(d.v[0][0], d.v[0][1], 0)), c.push(f.applyToX(d.o[v - 1][0], d.o[v - 1][1], 0), f.applyToY(d.o[v - 1][0], d.o[v - 1][1], 0), f.applyToX(d.i[v][0], d.i[v][1], 0), f.applyToY(d.i[v][0], d.i[v][1], 0), f.applyToX(d.v[v][0], d.v[v][1], 0), f.applyToY(d.v[v][0], d.v[v][1], 0));
|
|
5241
|
+
c.push(f.applyToX(d.o[v - 1][0], d.o[v - 1][1], 0), f.applyToY(d.o[v - 1][0], d.o[v - 1][1], 0), f.applyToX(d.i[0][0], d.i[0][1], 0), f.applyToY(d.i[0][0], d.i[0][1], 0), f.applyToX(d.v[0][0], d.v[0][1], 0), f.applyToY(d.v[0][0], d.v[0][1], 0)), E[M] = c, M += 1;
|
|
5242
5242
|
}
|
|
5243
|
-
u && (
|
|
5243
|
+
u && (m += n[s].l, m += h), this.textSpans[T] ? this.textSpans[T].elem = E : this.textSpans[T] = {
|
|
5244
5244
|
elem: E
|
|
5245
|
-
},
|
|
5245
|
+
}, T += 1;
|
|
5246
5246
|
}
|
|
5247
5247
|
}, CVTextElement.prototype.renderInnerContent = function() {
|
|
5248
5248
|
this.validateText();
|
|
@@ -5250,20 +5250,20 @@ var lottie$1 = { exports: {} };
|
|
|
5250
5250
|
t.font = this.values.fValue, this.globalData.renderer.ctxLineCap("butt"), this.globalData.renderer.ctxLineJoin("miter"), this.globalData.renderer.ctxMiterLimit(4), this.data.singleShape || this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag);
|
|
5251
5251
|
var e, r, i, s, a, n, f = this.textAnimator.renderedLetters, o = this.textProperty.currentData.l;
|
|
5252
5252
|
r = o.length;
|
|
5253
|
-
var l,
|
|
5253
|
+
var l, v = null, _ = null, p = null, b, g, d = this.globalData.renderer;
|
|
5254
5254
|
for (e = 0; e < r; e += 1)
|
|
5255
5255
|
if (!o[e].n) {
|
|
5256
|
-
if (l = f[e], l && (
|
|
5257
|
-
for (l && l.fc ?
|
|
5256
|
+
if (l = f[e], l && (d.save(), d.ctxTransform(l.p), d.ctxOpacity(l.o)), this.fill) {
|
|
5257
|
+
for (l && l.fc ? v !== l.fc && (d.ctxFillStyle(l.fc), v = l.fc) : v !== this.values.fill && (v = this.values.fill, d.ctxFillStyle(this.values.fill)), b = this.textSpans[e].elem, s = b.length, this.globalData.canvasContext.beginPath(), i = 0; i < s; i += 1)
|
|
5258
5258
|
for (g = b[i], n = g.length, this.globalData.canvasContext.moveTo(g[0], g[1]), a = 2; a < n; a += 6)
|
|
5259
5259
|
this.globalData.canvasContext.bezierCurveTo(g[a], g[a + 1], g[a + 2], g[a + 3], g[a + 4], g[a + 5]);
|
|
5260
|
-
this.globalData.canvasContext.closePath(),
|
|
5260
|
+
this.globalData.canvasContext.closePath(), d.ctxFill();
|
|
5261
5261
|
}
|
|
5262
5262
|
if (this.stroke) {
|
|
5263
|
-
for (l && l.sw ? p !== l.sw && (p = l.sw,
|
|
5263
|
+
for (l && l.sw ? p !== l.sw && (p = l.sw, d.ctxLineWidth(l.sw)) : p !== this.values.sWidth && (p = this.values.sWidth, d.ctxLineWidth(this.values.sWidth)), l && l.sc ? _ !== l.sc && (_ = l.sc, d.ctxStrokeStyle(l.sc)) : _ !== this.values.stroke && (_ = this.values.stroke, d.ctxStrokeStyle(this.values.stroke)), b = this.textSpans[e].elem, s = b.length, this.globalData.canvasContext.beginPath(), i = 0; i < s; i += 1)
|
|
5264
5264
|
for (g = b[i], n = g.length, this.globalData.canvasContext.moveTo(g[0], g[1]), a = 2; a < n; a += 6)
|
|
5265
5265
|
this.globalData.canvasContext.bezierCurveTo(g[a], g[a + 1], g[a + 2], g[a + 3], g[a + 4], g[a + 5]);
|
|
5266
|
-
this.globalData.canvasContext.closePath(),
|
|
5266
|
+
this.globalData.canvasContext.closePath(), d.ctxStroke();
|
|
5267
5267
|
}
|
|
5268
5268
|
l && this.globalData.renderer.restore();
|
|
5269
5269
|
}
|
|
@@ -5358,8 +5358,8 @@ var lottie$1 = { exports: {} };
|
|
|
5358
5358
|
t ? (r = t, i = e, this.canvasContext.canvas.width = r, this.canvasContext.canvas.height = i) : (this.animationItem.wrapper && this.animationItem.container ? (r = this.animationItem.wrapper.offsetWidth, i = this.animationItem.wrapper.offsetHeight) : (r = this.canvasContext.canvas.width, i = this.canvasContext.canvas.height), this.canvasContext.canvas.width = r * this.renderConfig.dpr, this.canvasContext.canvas.height = i * this.renderConfig.dpr);
|
|
5359
5359
|
var s, a;
|
|
5360
5360
|
if (this.renderConfig.preserveAspectRatio.indexOf("meet") !== -1 || this.renderConfig.preserveAspectRatio.indexOf("slice") !== -1) {
|
|
5361
|
-
var n = this.renderConfig.preserveAspectRatio.split(" "), f = n[1] || "meet", o = n[0] || "xMidYMid", l = o.substr(0, 4),
|
|
5362
|
-
s = r / i, a = this.transformCanvas.w / this.transformCanvas.h, a > s && f === "meet" || a < s && f === "slice" ? (this.transformCanvas.sx = r / (this.transformCanvas.w / this.renderConfig.dpr), this.transformCanvas.sy = r / (this.transformCanvas.w / this.renderConfig.dpr)) : (this.transformCanvas.sx = i / (this.transformCanvas.h / this.renderConfig.dpr), this.transformCanvas.sy = i / (this.transformCanvas.h / this.renderConfig.dpr)), l === "xMid" && (a < s && f === "meet" || a > s && f === "slice") ? this.transformCanvas.tx = (r - this.transformCanvas.w * (i / this.transformCanvas.h)) / 2 * this.renderConfig.dpr : l === "xMax" && (a < s && f === "meet" || a > s && f === "slice") ? this.transformCanvas.tx = (r - this.transformCanvas.w * (i / this.transformCanvas.h)) * this.renderConfig.dpr : this.transformCanvas.tx = 0,
|
|
5361
|
+
var n = this.renderConfig.preserveAspectRatio.split(" "), f = n[1] || "meet", o = n[0] || "xMidYMid", l = o.substr(0, 4), v = o.substr(4);
|
|
5362
|
+
s = r / i, a = this.transformCanvas.w / this.transformCanvas.h, a > s && f === "meet" || a < s && f === "slice" ? (this.transformCanvas.sx = r / (this.transformCanvas.w / this.renderConfig.dpr), this.transformCanvas.sy = r / (this.transformCanvas.w / this.renderConfig.dpr)) : (this.transformCanvas.sx = i / (this.transformCanvas.h / this.renderConfig.dpr), this.transformCanvas.sy = i / (this.transformCanvas.h / this.renderConfig.dpr)), l === "xMid" && (a < s && f === "meet" || a > s && f === "slice") ? this.transformCanvas.tx = (r - this.transformCanvas.w * (i / this.transformCanvas.h)) / 2 * this.renderConfig.dpr : l === "xMax" && (a < s && f === "meet" || a > s && f === "slice") ? this.transformCanvas.tx = (r - this.transformCanvas.w * (i / this.transformCanvas.h)) * this.renderConfig.dpr : this.transformCanvas.tx = 0, v === "YMid" && (a > s && f === "meet" || a < s && f === "slice") ? this.transformCanvas.ty = (i - this.transformCanvas.h * (r / this.transformCanvas.w)) / 2 * this.renderConfig.dpr : v === "YMax" && (a > s && f === "meet" || a < s && f === "slice") ? this.transformCanvas.ty = (i - this.transformCanvas.h * (r / this.transformCanvas.w)) * this.renderConfig.dpr : this.transformCanvas.ty = 0;
|
|
5363
5363
|
} else this.renderConfig.preserveAspectRatio === "none" ? (this.transformCanvas.sx = r / (this.transformCanvas.w / this.renderConfig.dpr), this.transformCanvas.sy = i / (this.transformCanvas.h / this.renderConfig.dpr), this.transformCanvas.tx = 0, this.transformCanvas.ty = 0) : (this.transformCanvas.sx = this.renderConfig.dpr, this.transformCanvas.sy = this.renderConfig.dpr, this.transformCanvas.tx = 0, this.transformCanvas.ty = 0);
|
|
5364
5364
|
this.transformCanvas.props = [this.transformCanvas.sx, 0, 0, 0, 0, this.transformCanvas.sy, 0, 0, 0, 0, 1, 0, this.transformCanvas.tx, this.transformCanvas.ty, 0, 1], this.ctxTransform(this.transformCanvas.props), this.canvasContext.beginPath(), this.canvasContext.rect(0, 0, this.transformCanvas.w, this.transformCanvas.h), this.canvasContext.closePath(), this.canvasContext.clip(), this.renderFrame(this.renderedFrame, !0);
|
|
5365
5365
|
}, CanvasRendererBase.prototype.destroy = function() {
|
|
@@ -5595,8 +5595,8 @@ var lottie$1 = { exports: {} };
|
|
|
5595
5595
|
width: 0,
|
|
5596
5596
|
height: 0
|
|
5597
5597
|
}, HShapeElement.prototype.getBoundsOfCurve = function(t, e, r, i) {
|
|
5598
|
-
for (var s = [[t[0], i[0]], [t[1], i[1]]], a, n, f, o, l,
|
|
5599
|
-
n = 6 * t[p] - 12 * e[p] + 6 * r[p], a = -3 * t[p] + 9 * e[p] - 9 * r[p] + 3 * i[p], f = 3 * e[p] - 3 * t[p], n |= 0, a |= 0, f |= 0, a === 0 && n === 0 || (a === 0 ? (o = -f / n, o > 0 && o < 1 && s[p].push(this.calculateF(o, t, e, r, i, p))) : (l = n * n - 4 * f * a, l >= 0 && (
|
|
5598
|
+
for (var s = [[t[0], i[0]], [t[1], i[1]]], a, n, f, o, l, v, _, p = 0; p < 2; ++p)
|
|
5599
|
+
n = 6 * t[p] - 12 * e[p] + 6 * r[p], a = -3 * t[p] + 9 * e[p] - 9 * r[p] + 3 * i[p], f = 3 * e[p] - 3 * t[p], n |= 0, a |= 0, f |= 0, a === 0 && n === 0 || (a === 0 ? (o = -f / n, o > 0 && o < 1 && s[p].push(this.calculateF(o, t, e, r, i, p))) : (l = n * n - 4 * f * a, l >= 0 && (v = (-n + bmSqrt(l)) / (2 * a), v > 0 && v < 1 && s[p].push(this.calculateF(v, t, e, r, i, p)), _ = (-n - bmSqrt(l)) / (2 * a), _ > 0 && _ < 1 && s[p].push(this.calculateF(_, t, e, r, i, p)))));
|
|
5600
5600
|
this.shapeBoundingBox.left = bmMin.apply(null, s[0]), this.shapeBoundingBox.top = bmMin.apply(null, s[1]), this.shapeBoundingBox.right = bmMax.apply(null, s[0]), this.shapeBoundingBox.bottom = bmMax.apply(null, s[1]);
|
|
5601
5601
|
}, HShapeElement.prototype.calculateF = function(t, e, r, i, s, a) {
|
|
5602
5602
|
return bmPow(1 - t, 3) * e[a] + 3 * bmPow(1 - t, 2) * t * r[a] + 3 * (1 - t) * bmPow(t, 2) * i[a] + bmPow(t, 3) * s[a];
|
|
@@ -5662,34 +5662,34 @@ var lottie$1 = { exports: {} };
|
|
|
5662
5662
|
}
|
|
5663
5663
|
var n, f, o = t.l;
|
|
5664
5664
|
f = o.length;
|
|
5665
|
-
var l,
|
|
5665
|
+
var l, v, _, p = this.mHelper, b, g = "", d = 0;
|
|
5666
5666
|
for (n = 0; n < f; n += 1) {
|
|
5667
|
-
if (this.globalData.fontManager.chars ? (this.textPaths[
|
|
5667
|
+
if (this.globalData.fontManager.chars ? (this.textPaths[d] ? l = this.textPaths[d] : (l = createNS("path"), l.setAttribute("stroke-linecap", lineCapEnum[1]), l.setAttribute("stroke-linejoin", lineJoinEnum[2]), l.setAttribute("stroke-miterlimit", "4")), this.isMasked || (this.textSpans[d] ? (v = this.textSpans[d], _ = v.children[0]) : (v = createTag("div"), v.style.lineHeight = 0, _ = createNS("svg"), _.appendChild(l), styleDiv(v)))) : this.isMasked ? l = this.textPaths[d] ? this.textPaths[d] : createNS("text") : this.textSpans[d] ? (v = this.textSpans[d], l = this.textPaths[d]) : (v = createTag("span"), styleDiv(v), l = createTag("span"), styleDiv(l), v.appendChild(l)), this.globalData.fontManager.chars) {
|
|
5668
5668
|
var E = this.globalData.fontManager.getCharData(t.finalText[n], i.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily), c;
|
|
5669
5669
|
if (E ? c = E.data : c = null, p.reset(), c && c.shapes && c.shapes.length && (b = c.shapes[0].it, p.scale(t.finalSize / 100, t.finalSize / 100), g = this.createPathShape(p, b), l.setAttribute("d", g)), this.isMasked)
|
|
5670
5670
|
this.innerElem.appendChild(l);
|
|
5671
5671
|
else {
|
|
5672
|
-
if (this.innerElem.appendChild(
|
|
5673
|
-
document.body.appendChild(
|
|
5674
|
-
var u =
|
|
5675
|
-
|
|
5676
|
-
var h =
|
|
5677
|
-
h.transform =
|
|
5672
|
+
if (this.innerElem.appendChild(v), c && c.shapes) {
|
|
5673
|
+
document.body.appendChild(_);
|
|
5674
|
+
var u = _.getBBox();
|
|
5675
|
+
_.setAttribute("width", u.width + 2), _.setAttribute("height", u.height + 2), _.setAttribute("viewBox", u.x - 1 + " " + (u.y - 1) + " " + (u.width + 2) + " " + (u.height + 2));
|
|
5676
|
+
var h = _.style, m = "translate(" + (u.x - 1) + "px," + (u.y - 1) + "px)";
|
|
5677
|
+
h.transform = m, h.webkitTransform = m, o[n].yOffset = u.y - 1;
|
|
5678
5678
|
} else
|
|
5679
|
-
|
|
5680
|
-
|
|
5679
|
+
_.setAttribute("width", 1), _.setAttribute("height", 1);
|
|
5680
|
+
v.appendChild(_);
|
|
5681
5681
|
}
|
|
5682
5682
|
} else if (l.textContent = o[n].val, l.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), this.isMasked)
|
|
5683
5683
|
this.innerElem.appendChild(l);
|
|
5684
5684
|
else {
|
|
5685
|
-
this.innerElem.appendChild(
|
|
5685
|
+
this.innerElem.appendChild(v);
|
|
5686
5686
|
var x = l.style, C = "translate3d(0," + -t.finalSize / 1.2 + "px,0)";
|
|
5687
5687
|
x.transform = C, x.webkitTransform = C;
|
|
5688
5688
|
}
|
|
5689
|
-
this.isMasked ? this.textSpans[
|
|
5689
|
+
this.isMasked ? this.textSpans[d] = l : this.textSpans[d] = v, this.textSpans[d].style.display = "block", this.textPaths[d] = l, d += 1;
|
|
5690
5690
|
}
|
|
5691
|
-
for (;
|
|
5692
|
-
this.textSpans[
|
|
5691
|
+
for (; d < this.textSpans.length; )
|
|
5692
|
+
this.textSpans[d].style.display = "none", d += 1;
|
|
5693
5693
|
}, HTextElement.prototype.renderInnerContent = function() {
|
|
5694
5694
|
this.validateText();
|
|
5695
5695
|
var t;
|
|
@@ -5709,11 +5709,11 @@ var lottie$1 = { exports: {} };
|
|
|
5709
5709
|
for (r = 0; r < i; r += 1)
|
|
5710
5710
|
n[r].n ? s += 1 : (o = this.textSpans[r], l = this.textPaths[r], f = a[s], s += 1, f._mdf.m && (this.isMasked ? o.setAttribute("transform", f.m) : (o.style.webkitTransform = f.m, o.style.transform = f.m)), o.style.opacity = f.o, f.sw && f._mdf.sw && l.setAttribute("stroke-width", f.sw), f.sc && f._mdf.sc && l.setAttribute("stroke", f.sc), f.fc && f._mdf.fc && (l.setAttribute("fill", f.fc), l.style.color = f.fc));
|
|
5711
5711
|
if (this.innerElem.getBBox && !this.hidden && (this._isFirstFrame || this._mdf)) {
|
|
5712
|
-
var
|
|
5713
|
-
this.currentBBox.w !==
|
|
5714
|
-
var
|
|
5715
|
-
if (this.currentBBox.w !==
|
|
5716
|
-
this.currentBBox.w =
|
|
5712
|
+
var v = this.innerElem.getBBox();
|
|
5713
|
+
this.currentBBox.w !== v.width && (this.currentBBox.w = v.width, this.svgElement.setAttribute("width", v.width)), this.currentBBox.h !== v.height && (this.currentBBox.h = v.height, this.svgElement.setAttribute("height", v.height));
|
|
5714
|
+
var _ = 1;
|
|
5715
|
+
if (this.currentBBox.w !== v.width + _ * 2 || this.currentBBox.h !== v.height + _ * 2 || this.currentBBox.x !== v.x - _ || this.currentBBox.y !== v.y - _) {
|
|
5716
|
+
this.currentBBox.w = v.width + _ * 2, this.currentBBox.h = v.height + _ * 2, this.currentBBox.x = v.x - _, this.currentBBox.y = v.y - _, this.svgElement.setAttribute("viewBox", this.currentBBox.x + " " + this.currentBBox.y + " " + this.currentBBox.w + " " + this.currentBBox.h), t = this.svgElement.style;
|
|
5717
5717
|
var p = "translate(" + this.currentBBox.x + "px," + this.currentBBox.y + "px)";
|
|
5718
5718
|
t.transform = p, t.webkitTransform = p;
|
|
5719
5719
|
}
|
|
@@ -5760,17 +5760,17 @@ var lottie$1 = { exports: {} };
|
|
|
5760
5760
|
this.mat.rotateY(l).rotateX(-o);
|
|
5761
5761
|
}
|
|
5762
5762
|
this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v), this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]), this.mat.translate(this.globalData.compSize.w / 2, this.globalData.compSize.h / 2, 0), this.mat.translate(0, 0, this.pe.v);
|
|
5763
|
-
var
|
|
5764
|
-
if ((
|
|
5763
|
+
var v = !this._prevMat.equals(this.mat);
|
|
5764
|
+
if ((v || this.pe._mdf) && this.comp.threeDElements) {
|
|
5765
5765
|
r = this.comp.threeDElements.length;
|
|
5766
|
-
var
|
|
5766
|
+
var _, p, b;
|
|
5767
5767
|
for (e = 0; e < r; e += 1)
|
|
5768
|
-
if (
|
|
5769
|
-
if (
|
|
5768
|
+
if (_ = this.comp.threeDElements[e], _.type === "3d") {
|
|
5769
|
+
if (v) {
|
|
5770
5770
|
var g = this.mat.toCSS();
|
|
5771
|
-
b =
|
|
5771
|
+
b = _.container.style, b.transform = g, b.webkitTransform = g;
|
|
5772
5772
|
}
|
|
5773
|
-
this.pe._mdf && (p =
|
|
5773
|
+
this.pe._mdf && (p = _.perspectiveElem.style, p.perspective = this.pe.v + "px", p.webkitPerspective = this.pe.v + "px");
|
|
5774
5774
|
}
|
|
5775
5775
|
this.mat.clone(this._prevMat);
|
|
5776
5776
|
}
|
|
@@ -5978,13 +5978,13 @@ var lottie$1 = { exports: {} };
|
|
|
5978
5978
|
}, _typeof$2(t);
|
|
5979
5979
|
}
|
|
5980
5980
|
function seedRandom(t, e) {
|
|
5981
|
-
var r = this, i = 256, s = 6, a = 52, n = "random", f = e.pow(i, s), o = e.pow(2, a), l = o * 2,
|
|
5982
|
-
function p(h,
|
|
5981
|
+
var r = this, i = 256, s = 6, a = 52, n = "random", f = e.pow(i, s), o = e.pow(2, a), l = o * 2, v = i - 1, _;
|
|
5982
|
+
function p(h, m, x) {
|
|
5983
5983
|
var C = [];
|
|
5984
|
-
|
|
5984
|
+
m = m === !0 ? {
|
|
5985
5985
|
entropy: !0
|
|
5986
|
-
} :
|
|
5987
|
-
var
|
|
5986
|
+
} : m || {};
|
|
5987
|
+
var T = E(d(m.entropy ? [h, u(t)] : h === null ? c() : h, 3), C), M = new b(C), w = function() {
|
|
5988
5988
|
for (var L = M.g(s), I = f, R = 0; L < o; )
|
|
5989
5989
|
L = (L + R) * i, I *= i, R = M.g(1);
|
|
5990
5990
|
for (; L >= l; )
|
|
@@ -5995,49 +5995,49 @@ var lottie$1 = { exports: {} };
|
|
|
5995
5995
|
return M.g(4) | 0;
|
|
5996
5996
|
}, w.quick = function() {
|
|
5997
5997
|
return M.g(4) / 4294967296;
|
|
5998
|
-
}, w.double = w, E(u(M.S), t), (
|
|
5998
|
+
}, w.double = w, E(u(M.S), t), (m.pass || x || function(D, L, I, R) {
|
|
5999
5999
|
return R && (R.S && g(R, M), D.state = function() {
|
|
6000
6000
|
return g(M, {});
|
|
6001
6001
|
}), I ? (e[n] = D, L) : D;
|
|
6002
|
-
})(w,
|
|
6002
|
+
})(w, T, "global" in m ? m.global : this == e, m.state);
|
|
6003
6003
|
}
|
|
6004
6004
|
e["seed" + n] = p;
|
|
6005
6005
|
function b(h) {
|
|
6006
|
-
var
|
|
6007
|
-
for (x || (h = [x++]);
|
|
6008
|
-
w[
|
|
6009
|
-
for (
|
|
6010
|
-
w[
|
|
6006
|
+
var m, x = h.length, C = this, T = 0, M = C.i = C.j = 0, w = C.S = [];
|
|
6007
|
+
for (x || (h = [x++]); T < i; )
|
|
6008
|
+
w[T] = T++;
|
|
6009
|
+
for (T = 0; T < i; T++)
|
|
6010
|
+
w[T] = w[M = v & M + h[T % x] + (m = w[T])], w[M] = m;
|
|
6011
6011
|
C.g = function(D) {
|
|
6012
6012
|
for (var L, I = 0, R = C.i, G = C.j, V = C.S; D--; )
|
|
6013
|
-
L = V[R =
|
|
6013
|
+
L = V[R = v & R + 1], I = I * i + V[v & (V[R] = V[G = v & G + L]) + (V[G] = L)];
|
|
6014
6014
|
return C.i = R, C.j = G, I;
|
|
6015
6015
|
};
|
|
6016
6016
|
}
|
|
6017
|
-
function g(h,
|
|
6018
|
-
return
|
|
6017
|
+
function g(h, m) {
|
|
6018
|
+
return m.i = h.i, m.j = h.j, m.S = h.S.slice(), m;
|
|
6019
6019
|
}
|
|
6020
|
-
function
|
|
6021
|
-
var x = [], C = _typeof$2(h),
|
|
6022
|
-
if (
|
|
6023
|
-
for (
|
|
6020
|
+
function d(h, m) {
|
|
6021
|
+
var x = [], C = _typeof$2(h), T;
|
|
6022
|
+
if (m && C == "object")
|
|
6023
|
+
for (T in h)
|
|
6024
6024
|
try {
|
|
6025
|
-
x.push(
|
|
6025
|
+
x.push(d(h[T], m - 1));
|
|
6026
6026
|
} catch {
|
|
6027
6027
|
}
|
|
6028
6028
|
return x.length ? x : C == "string" ? h : h + "\0";
|
|
6029
6029
|
}
|
|
6030
|
-
function E(h,
|
|
6031
|
-
for (var x = h + "", C,
|
|
6032
|
-
v
|
|
6033
|
-
return u(
|
|
6030
|
+
function E(h, m) {
|
|
6031
|
+
for (var x = h + "", C, T = 0; T < x.length; )
|
|
6032
|
+
m[v & T] = v & (C ^= m[v & T] * 19) + x.charCodeAt(T++);
|
|
6033
|
+
return u(m);
|
|
6034
6034
|
}
|
|
6035
6035
|
function c() {
|
|
6036
6036
|
try {
|
|
6037
6037
|
var h = new Uint8Array(i);
|
|
6038
6038
|
return (r.crypto || r.msCrypto).getRandomValues(h), u(h);
|
|
6039
6039
|
} catch {
|
|
6040
|
-
var
|
|
6040
|
+
var m = r.navigator, x = m && m.plugins;
|
|
6041
6041
|
return [+/* @__PURE__ */ new Date(), r, x, r.screen, u(t)];
|
|
6042
6042
|
}
|
|
6043
6043
|
}
|
|
@@ -6274,11 +6274,11 @@ var lottie$1 = { exports: {} };
|
|
|
6274
6274
|
n[s] += -r + r * 2 * BMMath.random();
|
|
6275
6275
|
i += 1;
|
|
6276
6276
|
}
|
|
6277
|
-
var o = time * e, l = o - Math.floor(o),
|
|
6277
|
+
var o = time * e, l = o - Math.floor(o), v = createTypedArray("float32", a);
|
|
6278
6278
|
if (a > 1) {
|
|
6279
6279
|
for (s = 0; s < a; s += 1)
|
|
6280
|
-
|
|
6281
|
-
return
|
|
6280
|
+
v[s] = this.pv[s] + n[s] + (-r + r * 2 * BMMath.random()) * l;
|
|
6281
|
+
return v;
|
|
6282
6282
|
}
|
|
6283
6283
|
return this.pv + n[0] + (-r + r * 2 * BMMath.random()) * l;
|
|
6284
6284
|
}).bind(this);
|
|
@@ -6391,8 +6391,8 @@ var lottie$1 = { exports: {} };
|
|
|
6391
6391
|
s.indexOf(l) === -1 && s.push(l);
|
|
6392
6392
|
}
|
|
6393
6393
|
function o() {
|
|
6394
|
-
var l,
|
|
6395
|
-
for (l = 0; l <
|
|
6394
|
+
var l, v = s.length;
|
|
6395
|
+
for (l = 0; l < v; l += 1)
|
|
6396
6396
|
s[l].release();
|
|
6397
6397
|
s.length = 0;
|
|
6398
6398
|
}
|
|
@@ -6445,10 +6445,10 @@ var lottie$1 = { exports: {} };
|
|
|
6445
6445
|
}), n.numKeys = f.keyframes ? f.keyframes.length : 0, n.key = function(l) {
|
|
6446
6446
|
if (!n.numKeys)
|
|
6447
6447
|
return 0;
|
|
6448
|
-
var
|
|
6449
|
-
"s" in f.keyframes[l - 1] ?
|
|
6450
|
-
var
|
|
6451
|
-
return
|
|
6448
|
+
var v = "";
|
|
6449
|
+
"s" in f.keyframes[l - 1] ? v = f.keyframes[l - 1].s : "e" in f.keyframes[l - 2] ? v = f.keyframes[l - 2].e : v = f.keyframes[l - 2].s;
|
|
6450
|
+
var _ = o === "unidimensional" ? new Number(v) : Object.assign({}, v);
|
|
6451
|
+
return _.time = f.keyframes[l - 1].t / f.elem.comp.globalData.frameRate, _.value = o === "unidimensional" ? v[0] : v, _;
|
|
6452
6452
|
}, n.valueAtTime = f.getValueAtTime, n.speedAtTime = f.getSpeedAtTime, n.velocityAtTime = f.getVelocityAtTime, n.propertyGroup = f.propertyGroup;
|
|
6453
6453
|
}
|
|
6454
6454
|
function i(n) {
|
|
@@ -6460,11 +6460,11 @@ var lottie$1 = { exports: {} };
|
|
|
6460
6460
|
}
|
|
6461
6461
|
function s(n) {
|
|
6462
6462
|
(!n || !("pv" in n)) && (n = e);
|
|
6463
|
-
var f = 1 / n.mult, o = n.data && n.data.l || n.pv.length, l = createTypedArray("float32", o),
|
|
6464
|
-
return l.value =
|
|
6463
|
+
var f = 1 / n.mult, o = n.data && n.data.l || n.pv.length, l = createTypedArray("float32", o), v = createTypedArray("float32", o);
|
|
6464
|
+
return l.value = v, r(l, n, "multidimensional"), function() {
|
|
6465
6465
|
n.k && n.getValue();
|
|
6466
|
-
for (var
|
|
6467
|
-
|
|
6466
|
+
for (var _ = 0; _ < o; _ += 1)
|
|
6467
|
+
v[_] = n.v[_] * f, l[_] = v[_];
|
|
6468
6468
|
return l;
|
|
6469
6469
|
};
|
|
6470
6470
|
}
|
|
@@ -6554,71 +6554,71 @@ var lottie$1 = { exports: {} };
|
|
|
6554
6554
|
};
|
|
6555
6555
|
}(), LayerExpressionInterface = /* @__PURE__ */ function() {
|
|
6556
6556
|
function t(l) {
|
|
6557
|
-
var
|
|
6557
|
+
var v = new Matrix();
|
|
6558
6558
|
if (l !== void 0) {
|
|
6559
|
-
var
|
|
6560
|
-
|
|
6559
|
+
var _ = this._elem.finalTransform.mProp.getValueAtTime(l);
|
|
6560
|
+
_.clone(v);
|
|
6561
6561
|
} else {
|
|
6562
6562
|
var p = this._elem.finalTransform.mProp;
|
|
6563
|
-
p.applyToMatrix(
|
|
6563
|
+
p.applyToMatrix(v);
|
|
6564
6564
|
}
|
|
6565
|
-
return
|
|
6565
|
+
return v;
|
|
6566
6566
|
}
|
|
6567
|
-
function e(l,
|
|
6568
|
-
var
|
|
6569
|
-
return
|
|
6567
|
+
function e(l, v) {
|
|
6568
|
+
var _ = this.getMatrix(v);
|
|
6569
|
+
return _.props[12] = 0, _.props[13] = 0, _.props[14] = 0, this.applyPoint(_, l);
|
|
6570
6570
|
}
|
|
6571
|
-
function r(l,
|
|
6572
|
-
var
|
|
6573
|
-
return this.applyPoint(
|
|
6571
|
+
function r(l, v) {
|
|
6572
|
+
var _ = this.getMatrix(v);
|
|
6573
|
+
return this.applyPoint(_, l);
|
|
6574
6574
|
}
|
|
6575
|
-
function i(l,
|
|
6576
|
-
var
|
|
6577
|
-
return
|
|
6575
|
+
function i(l, v) {
|
|
6576
|
+
var _ = this.getMatrix(v);
|
|
6577
|
+
return _.props[12] = 0, _.props[13] = 0, _.props[14] = 0, this.invertPoint(_, l);
|
|
6578
6578
|
}
|
|
6579
|
-
function s(l,
|
|
6580
|
-
var
|
|
6581
|
-
return this.invertPoint(
|
|
6579
|
+
function s(l, v) {
|
|
6580
|
+
var _ = this.getMatrix(v);
|
|
6581
|
+
return this.invertPoint(_, l);
|
|
6582
6582
|
}
|
|
6583
|
-
function a(l,
|
|
6583
|
+
function a(l, v) {
|
|
6584
6584
|
if (this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
6585
|
-
var
|
|
6586
|
-
for (
|
|
6587
|
-
this._elem.hierarchy[
|
|
6585
|
+
var _, p = this._elem.hierarchy.length;
|
|
6586
|
+
for (_ = 0; _ < p; _ += 1)
|
|
6587
|
+
this._elem.hierarchy[_].finalTransform.mProp.applyToMatrix(l);
|
|
6588
6588
|
}
|
|
6589
|
-
return l.applyToPointArray(
|
|
6589
|
+
return l.applyToPointArray(v[0], v[1], v[2] || 0);
|
|
6590
6590
|
}
|
|
6591
|
-
function n(l,
|
|
6591
|
+
function n(l, v) {
|
|
6592
6592
|
if (this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
6593
|
-
var
|
|
6594
|
-
for (
|
|
6595
|
-
this._elem.hierarchy[
|
|
6593
|
+
var _, p = this._elem.hierarchy.length;
|
|
6594
|
+
for (_ = 0; _ < p; _ += 1)
|
|
6595
|
+
this._elem.hierarchy[_].finalTransform.mProp.applyToMatrix(l);
|
|
6596
6596
|
}
|
|
6597
|
-
return l.inversePoint(
|
|
6597
|
+
return l.inversePoint(v);
|
|
6598
6598
|
}
|
|
6599
6599
|
function f(l) {
|
|
6600
|
-
var
|
|
6601
|
-
if (
|
|
6602
|
-
var
|
|
6603
|
-
for (
|
|
6604
|
-
this._elem.hierarchy[
|
|
6605
|
-
return
|
|
6600
|
+
var v = new Matrix();
|
|
6601
|
+
if (v.reset(), this._elem.finalTransform.mProp.applyToMatrix(v), this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
6602
|
+
var _, p = this._elem.hierarchy.length;
|
|
6603
|
+
for (_ = 0; _ < p; _ += 1)
|
|
6604
|
+
this._elem.hierarchy[_].finalTransform.mProp.applyToMatrix(v);
|
|
6605
|
+
return v.inversePoint(l);
|
|
6606
6606
|
}
|
|
6607
|
-
return
|
|
6607
|
+
return v.inversePoint(l);
|
|
6608
6608
|
}
|
|
6609
6609
|
function o() {
|
|
6610
6610
|
return [1, 1, 1, 1];
|
|
6611
6611
|
}
|
|
6612
6612
|
return function(l) {
|
|
6613
|
-
var
|
|
6614
|
-
function
|
|
6615
|
-
b.mask = new MaskManagerInterface(
|
|
6613
|
+
var v;
|
|
6614
|
+
function _(d) {
|
|
6615
|
+
b.mask = new MaskManagerInterface(d, l);
|
|
6616
6616
|
}
|
|
6617
|
-
function p(
|
|
6618
|
-
b.effect =
|
|
6617
|
+
function p(d) {
|
|
6618
|
+
b.effect = d;
|
|
6619
6619
|
}
|
|
6620
|
-
function b(
|
|
6621
|
-
switch (
|
|
6620
|
+
function b(d) {
|
|
6621
|
+
switch (d) {
|
|
6622
6622
|
case "ADBE Root Vectors Group":
|
|
6623
6623
|
case "Contents":
|
|
6624
6624
|
case 2:
|
|
@@ -6628,7 +6628,7 @@ var lottie$1 = { exports: {} };
|
|
|
6628
6628
|
case "Transform":
|
|
6629
6629
|
case "transform":
|
|
6630
6630
|
case "ADBE Transform Group":
|
|
6631
|
-
return
|
|
6631
|
+
return v;
|
|
6632
6632
|
case 4:
|
|
6633
6633
|
case "ADBE Effect Parade":
|
|
6634
6634
|
case "effects":
|
|
@@ -6640,8 +6640,8 @@ var lottie$1 = { exports: {} };
|
|
|
6640
6640
|
return null;
|
|
6641
6641
|
}
|
|
6642
6642
|
}
|
|
6643
|
-
b.getMatrix = t, b.invertPoint = n, b.applyPoint = a, b.toWorld = r, b.toWorldVec = e, b.fromWorld = s, b.fromWorldVec = i, b.toComp = r, b.fromComp = f, b.sampleImage = o, b.sourceRectAtTime = l.sourceRectAtTime.bind(l), b._elem = l,
|
|
6644
|
-
var g = getDescriptor(
|
|
6643
|
+
b.getMatrix = t, b.invertPoint = n, b.applyPoint = a, b.toWorld = r, b.toWorldVec = e, b.fromWorld = s, b.fromWorldVec = i, b.toComp = r, b.fromComp = f, b.sampleImage = o, b.sourceRectAtTime = l.sourceRectAtTime.bind(l), b._elem = l, v = TransformExpressionInterface(l.finalTransform.mProp);
|
|
6644
|
+
var g = getDescriptor(v, "anchorPoint");
|
|
6645
6645
|
return Object.defineProperties(b, {
|
|
6646
6646
|
hasParent: {
|
|
6647
6647
|
get: function() {
|
|
@@ -6653,15 +6653,15 @@ var lottie$1 = { exports: {} };
|
|
|
6653
6653
|
return l.hierarchy[0].layerInterface;
|
|
6654
6654
|
}
|
|
6655
6655
|
},
|
|
6656
|
-
rotation: getDescriptor(
|
|
6657
|
-
scale: getDescriptor(
|
|
6658
|
-
position: getDescriptor(
|
|
6659
|
-
opacity: getDescriptor(
|
|
6656
|
+
rotation: getDescriptor(v, "rotation"),
|
|
6657
|
+
scale: getDescriptor(v, "scale"),
|
|
6658
|
+
position: getDescriptor(v, "position"),
|
|
6659
|
+
opacity: getDescriptor(v, "opacity"),
|
|
6660
6660
|
anchorPoint: g,
|
|
6661
6661
|
anchor_point: g,
|
|
6662
6662
|
transform: {
|
|
6663
6663
|
get: function() {
|
|
6664
|
-
return
|
|
6664
|
+
return v;
|
|
6665
6665
|
}
|
|
6666
6666
|
},
|
|
6667
6667
|
active: {
|
|
@@ -6669,7 +6669,7 @@ var lottie$1 = { exports: {} };
|
|
|
6669
6669
|
return l.isInRange;
|
|
6670
6670
|
}
|
|
6671
6671
|
}
|
|
6672
|
-
}), b.startTime = l.data.st, b.index = l.data.ind, b.source = l.data.refId, b.height = l.data.ty === 0 ? l.data.h : 100, b.width = l.data.ty === 0 ? l.data.w : 100, b.inPoint = l.data.ip / l.comp.globalData.frameRate, b.outPoint = l.data.op / l.comp.globalData.frameRate, b._name = l.data.nm, b.registerMaskInterface =
|
|
6672
|
+
}), b.startTime = l.data.st, b.index = l.data.ind, b.source = l.data.refId, b.height = l.data.ty === 0 ? l.data.h : 100, b.width = l.data.ty === 0 ? l.data.w : 100, b.inPoint = l.data.ip / l.comp.globalData.frameRate, b.outPoint = l.data.op / l.comp.globalData.frameRate, b._name = l.data.nm, b.registerMaskInterface = _, b.registerEffectsInterface = p, b;
|
|
6673
6673
|
};
|
|
6674
6674
|
}(), propertyGroupFactory = /* @__PURE__ */ function() {
|
|
6675
6675
|
return function(t, e) {
|
|
@@ -6696,37 +6696,37 @@ var lottie$1 = { exports: {} };
|
|
|
6696
6696
|
var n = [], f = s.data.ef, o, l = s.effectsManager.effectElements.length;
|
|
6697
6697
|
for (o = 0; o < l; o += 1)
|
|
6698
6698
|
n.push(r(f[o], s.effectsManager.effectElements[o], a, s));
|
|
6699
|
-
var
|
|
6700
|
-
for (o = 0, l =
|
|
6701
|
-
if (b ===
|
|
6699
|
+
var v = s.data.ef || [], _ = function(b) {
|
|
6700
|
+
for (o = 0, l = v.length; o < l; ) {
|
|
6701
|
+
if (b === v[o].nm || b === v[o].mn || b === v[o].ix)
|
|
6702
6702
|
return n[o];
|
|
6703
6703
|
o += 1;
|
|
6704
6704
|
}
|
|
6705
6705
|
return null;
|
|
6706
6706
|
};
|
|
6707
|
-
return Object.defineProperty(
|
|
6707
|
+
return Object.defineProperty(_, "numProperties", {
|
|
6708
6708
|
get: function() {
|
|
6709
|
-
return
|
|
6709
|
+
return v.length;
|
|
6710
6710
|
}
|
|
6711
|
-
}),
|
|
6711
|
+
}), _;
|
|
6712
6712
|
}
|
|
6713
6713
|
return null;
|
|
6714
6714
|
}
|
|
6715
6715
|
function r(s, a, n, f) {
|
|
6716
6716
|
function o(b) {
|
|
6717
|
-
for (var g = s.ef,
|
|
6718
|
-
if (b === g[
|
|
6719
|
-
return g[
|
|
6720
|
-
|
|
6717
|
+
for (var g = s.ef, d = 0, E = g.length; d < E; ) {
|
|
6718
|
+
if (b === g[d].nm || b === g[d].mn || b === g[d].ix)
|
|
6719
|
+
return g[d].ty === 5 ? v[d] : v[d]();
|
|
6720
|
+
d += 1;
|
|
6721
6721
|
}
|
|
6722
6722
|
throw new Error();
|
|
6723
6723
|
}
|
|
6724
|
-
var l = propertyGroupFactory(o, n),
|
|
6725
|
-
for (
|
|
6726
|
-
s.ef[
|
|
6724
|
+
var l = propertyGroupFactory(o, n), v = [], _, p = s.ef.length;
|
|
6725
|
+
for (_ = 0; _ < p; _ += 1)
|
|
6726
|
+
s.ef[_].ty === 5 ? v.push(r(s.ef[_], a.effectElements[_], a.effectElements[_].propertyGroup, f)) : v.push(i(a.effectElements[_], s.ef[_].ty, f, l));
|
|
6727
6727
|
return s.mn === "ADBE Color Control" && Object.defineProperty(o, "color", {
|
|
6728
6728
|
get: function() {
|
|
6729
|
-
return
|
|
6729
|
+
return v[0]();
|
|
6730
6730
|
}
|
|
6731
6731
|
}), Object.defineProperties(o, {
|
|
6732
6732
|
numProperties: {
|
|
@@ -6786,26 +6786,26 @@ var lottie$1 = { exports: {} };
|
|
|
6786
6786
|
}), a;
|
|
6787
6787
|
};
|
|
6788
6788
|
}(), ShapeExpressionInterface = /* @__PURE__ */ function() {
|
|
6789
|
-
function t(g,
|
|
6789
|
+
function t(g, d, E) {
|
|
6790
6790
|
var c = [], u, h = g ? g.length : 0;
|
|
6791
6791
|
for (u = 0; u < h; u += 1)
|
|
6792
|
-
g[u].ty === "gr" ? c.push(r(g[u],
|
|
6792
|
+
g[u].ty === "gr" ? c.push(r(g[u], d[u], E)) : g[u].ty === "fl" ? c.push(i(g[u], d[u], E)) : g[u].ty === "st" ? c.push(n(g[u], d[u], E)) : g[u].ty === "tm" ? c.push(f(g[u], d[u], E)) : g[u].ty === "tr" || (g[u].ty === "el" ? c.push(l(g[u], d[u], E)) : g[u].ty === "sr" ? c.push(v(g[u], d[u], E)) : g[u].ty === "sh" ? c.push(ShapePathInterface(g[u], d[u], E)) : g[u].ty === "rc" ? c.push(_(g[u], d[u], E)) : g[u].ty === "rd" ? c.push(p(g[u], d[u], E)) : g[u].ty === "rp" ? c.push(b(g[u], d[u], E)) : g[u].ty === "gf" ? c.push(s(g[u], d[u], E)) : c.push(a(g[u], d[u])));
|
|
6793
6793
|
return c;
|
|
6794
6794
|
}
|
|
6795
|
-
function e(g,
|
|
6795
|
+
function e(g, d, E) {
|
|
6796
6796
|
var c, u = function(x) {
|
|
6797
|
-
for (var C = 0,
|
|
6797
|
+
for (var C = 0, T = c.length; C < T; ) {
|
|
6798
6798
|
if (c[C]._name === x || c[C].mn === x || c[C].propertyIndex === x || c[C].ix === x || c[C].ind === x)
|
|
6799
6799
|
return c[C];
|
|
6800
6800
|
C += 1;
|
|
6801
6801
|
}
|
|
6802
6802
|
return typeof x == "number" ? c[x - 1] : null;
|
|
6803
6803
|
};
|
|
6804
|
-
u.propertyGroup = propertyGroupFactory(u, E), c = t(g.it,
|
|
6805
|
-
var h = o(g.it[g.it.length - 1],
|
|
6804
|
+
u.propertyGroup = propertyGroupFactory(u, E), c = t(g.it, d.it, u.propertyGroup), u.numProperties = c.length;
|
|
6805
|
+
var h = o(g.it[g.it.length - 1], d.it[d.it.length - 1], u.propertyGroup);
|
|
6806
6806
|
return u.transform = h, u.propertyIndex = g.cix, u._name = g.nm, u;
|
|
6807
6807
|
}
|
|
6808
|
-
function r(g,
|
|
6808
|
+
function r(g, d, E) {
|
|
6809
6809
|
var c = function(x) {
|
|
6810
6810
|
switch (x) {
|
|
6811
6811
|
case "ADBE Vectors Group":
|
|
@@ -6817,23 +6817,23 @@ var lottie$1 = { exports: {} };
|
|
|
6817
6817
|
}
|
|
6818
6818
|
};
|
|
6819
6819
|
c.propertyGroup = propertyGroupFactory(c, E);
|
|
6820
|
-
var u = e(g,
|
|
6820
|
+
var u = e(g, d, c.propertyGroup), h = o(g.it[g.it.length - 1], d.it[d.it.length - 1], c.propertyGroup);
|
|
6821
6821
|
return c.content = u, c.transform = h, Object.defineProperty(c, "_name", {
|
|
6822
6822
|
get: function() {
|
|
6823
6823
|
return g.nm;
|
|
6824
6824
|
}
|
|
6825
6825
|
}), c.numProperties = g.np, c.propertyIndex = g.ix, c.nm = g.nm, c.mn = g.mn, c;
|
|
6826
6826
|
}
|
|
6827
|
-
function i(g,
|
|
6827
|
+
function i(g, d, E) {
|
|
6828
6828
|
function c(u) {
|
|
6829
6829
|
return u === "Color" || u === "color" ? c.color : u === "Opacity" || u === "opacity" ? c.opacity : null;
|
|
6830
6830
|
}
|
|
6831
6831
|
return Object.defineProperties(c, {
|
|
6832
6832
|
color: {
|
|
6833
|
-
get: ExpressionPropertyInterface(
|
|
6833
|
+
get: ExpressionPropertyInterface(d.c)
|
|
6834
6834
|
},
|
|
6835
6835
|
opacity: {
|
|
6836
|
-
get: ExpressionPropertyInterface(
|
|
6836
|
+
get: ExpressionPropertyInterface(d.o)
|
|
6837
6837
|
},
|
|
6838
6838
|
_name: {
|
|
6839
6839
|
value: g.nm
|
|
@@ -6841,21 +6841,21 @@ var lottie$1 = { exports: {} };
|
|
|
6841
6841
|
mn: {
|
|
6842
6842
|
value: g.mn
|
|
6843
6843
|
}
|
|
6844
|
-
}),
|
|
6844
|
+
}), d.c.setGroupProperty(PropertyInterface("Color", E)), d.o.setGroupProperty(PropertyInterface("Opacity", E)), c;
|
|
6845
6845
|
}
|
|
6846
|
-
function s(g,
|
|
6846
|
+
function s(g, d, E) {
|
|
6847
6847
|
function c(u) {
|
|
6848
6848
|
return u === "Start Point" || u === "start point" ? c.startPoint : u === "End Point" || u === "end point" ? c.endPoint : u === "Opacity" || u === "opacity" ? c.opacity : null;
|
|
6849
6849
|
}
|
|
6850
6850
|
return Object.defineProperties(c, {
|
|
6851
6851
|
startPoint: {
|
|
6852
|
-
get: ExpressionPropertyInterface(
|
|
6852
|
+
get: ExpressionPropertyInterface(d.s)
|
|
6853
6853
|
},
|
|
6854
6854
|
endPoint: {
|
|
6855
|
-
get: ExpressionPropertyInterface(
|
|
6855
|
+
get: ExpressionPropertyInterface(d.e)
|
|
6856
6856
|
},
|
|
6857
6857
|
opacity: {
|
|
6858
|
-
get: ExpressionPropertyInterface(
|
|
6858
|
+
get: ExpressionPropertyInterface(d.o)
|
|
6859
6859
|
},
|
|
6860
6860
|
type: {
|
|
6861
6861
|
get: function() {
|
|
@@ -6868,7 +6868,7 @@ var lottie$1 = { exports: {} };
|
|
|
6868
6868
|
mn: {
|
|
6869
6869
|
value: g.mn
|
|
6870
6870
|
}
|
|
6871
|
-
}),
|
|
6871
|
+
}), d.s.setGroupProperty(PropertyInterface("Start Point", E)), d.e.setGroupProperty(PropertyInterface("End Point", E)), d.o.setGroupProperty(PropertyInterface("Opacity", E)), c;
|
|
6872
6872
|
}
|
|
6873
6873
|
function a() {
|
|
6874
6874
|
function g() {
|
|
@@ -6876,28 +6876,28 @@ var lottie$1 = { exports: {} };
|
|
|
6876
6876
|
}
|
|
6877
6877
|
return g;
|
|
6878
6878
|
}
|
|
6879
|
-
function n(g,
|
|
6880
|
-
var c = propertyGroupFactory(
|
|
6879
|
+
function n(g, d, E) {
|
|
6880
|
+
var c = propertyGroupFactory(T, E), u = propertyGroupFactory(C, c);
|
|
6881
6881
|
function h(M) {
|
|
6882
6882
|
Object.defineProperty(C, g.d[M].nm, {
|
|
6883
|
-
get: ExpressionPropertyInterface(
|
|
6883
|
+
get: ExpressionPropertyInterface(d.d.dataProps[M].p)
|
|
6884
6884
|
});
|
|
6885
6885
|
}
|
|
6886
|
-
var
|
|
6887
|
-
for (
|
|
6888
|
-
h(
|
|
6889
|
-
function
|
|
6890
|
-
return M === "Color" || M === "color" ?
|
|
6886
|
+
var m, x = g.d ? g.d.length : 0, C = {};
|
|
6887
|
+
for (m = 0; m < x; m += 1)
|
|
6888
|
+
h(m), d.d.dataProps[m].p.setGroupProperty(u);
|
|
6889
|
+
function T(M) {
|
|
6890
|
+
return M === "Color" || M === "color" ? T.color : M === "Opacity" || M === "opacity" ? T.opacity : M === "Stroke Width" || M === "stroke width" ? T.strokeWidth : null;
|
|
6891
6891
|
}
|
|
6892
|
-
return Object.defineProperties(
|
|
6892
|
+
return Object.defineProperties(T, {
|
|
6893
6893
|
color: {
|
|
6894
|
-
get: ExpressionPropertyInterface(
|
|
6894
|
+
get: ExpressionPropertyInterface(d.c)
|
|
6895
6895
|
},
|
|
6896
6896
|
opacity: {
|
|
6897
|
-
get: ExpressionPropertyInterface(
|
|
6897
|
+
get: ExpressionPropertyInterface(d.o)
|
|
6898
6898
|
},
|
|
6899
6899
|
strokeWidth: {
|
|
6900
|
-
get: ExpressionPropertyInterface(
|
|
6900
|
+
get: ExpressionPropertyInterface(d.w)
|
|
6901
6901
|
},
|
|
6902
6902
|
dash: {
|
|
6903
6903
|
get: function() {
|
|
@@ -6910,67 +6910,67 @@ var lottie$1 = { exports: {} };
|
|
|
6910
6910
|
mn: {
|
|
6911
6911
|
value: g.mn
|
|
6912
6912
|
}
|
|
6913
|
-
}),
|
|
6913
|
+
}), d.c.setGroupProperty(PropertyInterface("Color", c)), d.o.setGroupProperty(PropertyInterface("Opacity", c)), d.w.setGroupProperty(PropertyInterface("Stroke Width", c)), T;
|
|
6914
6914
|
}
|
|
6915
|
-
function f(g,
|
|
6915
|
+
function f(g, d, E) {
|
|
6916
6916
|
function c(h) {
|
|
6917
6917
|
return h === g.e.ix || h === "End" || h === "end" ? c.end : h === g.s.ix ? c.start : h === g.o.ix ? c.offset : null;
|
|
6918
6918
|
}
|
|
6919
6919
|
var u = propertyGroupFactory(c, E);
|
|
6920
|
-
return c.propertyIndex = g.ix,
|
|
6920
|
+
return c.propertyIndex = g.ix, d.s.setGroupProperty(PropertyInterface("Start", u)), d.e.setGroupProperty(PropertyInterface("End", u)), d.o.setGroupProperty(PropertyInterface("Offset", u)), c.propertyIndex = g.ix, c.propertyGroup = E, Object.defineProperties(c, {
|
|
6921
6921
|
start: {
|
|
6922
|
-
get: ExpressionPropertyInterface(
|
|
6922
|
+
get: ExpressionPropertyInterface(d.s)
|
|
6923
6923
|
},
|
|
6924
6924
|
end: {
|
|
6925
|
-
get: ExpressionPropertyInterface(
|
|
6925
|
+
get: ExpressionPropertyInterface(d.e)
|
|
6926
6926
|
},
|
|
6927
6927
|
offset: {
|
|
6928
|
-
get: ExpressionPropertyInterface(
|
|
6928
|
+
get: ExpressionPropertyInterface(d.o)
|
|
6929
6929
|
},
|
|
6930
6930
|
_name: {
|
|
6931
6931
|
value: g.nm
|
|
6932
6932
|
}
|
|
6933
6933
|
}), c.mn = g.mn, c;
|
|
6934
6934
|
}
|
|
6935
|
-
function o(g,
|
|
6935
|
+
function o(g, d, E) {
|
|
6936
6936
|
function c(h) {
|
|
6937
6937
|
return g.a.ix === h || h === "Anchor Point" ? c.anchorPoint : g.o.ix === h || h === "Opacity" ? c.opacity : g.p.ix === h || h === "Position" ? c.position : g.r.ix === h || h === "Rotation" || h === "ADBE Vector Rotation" ? c.rotation : g.s.ix === h || h === "Scale" ? c.scale : g.sk && g.sk.ix === h || h === "Skew" ? c.skew : g.sa && g.sa.ix === h || h === "Skew Axis" ? c.skewAxis : null;
|
|
6938
6938
|
}
|
|
6939
6939
|
var u = propertyGroupFactory(c, E);
|
|
6940
|
-
return
|
|
6940
|
+
return d.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity", u)), d.transform.mProps.p.setGroupProperty(PropertyInterface("Position", u)), d.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point", u)), d.transform.mProps.s.setGroupProperty(PropertyInterface("Scale", u)), d.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation", u)), d.transform.mProps.sk && (d.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew", u)), d.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle", u))), d.transform.op.setGroupProperty(PropertyInterface("Opacity", u)), Object.defineProperties(c, {
|
|
6941
6941
|
opacity: {
|
|
6942
|
-
get: ExpressionPropertyInterface(
|
|
6942
|
+
get: ExpressionPropertyInterface(d.transform.mProps.o)
|
|
6943
6943
|
},
|
|
6944
6944
|
position: {
|
|
6945
|
-
get: ExpressionPropertyInterface(
|
|
6945
|
+
get: ExpressionPropertyInterface(d.transform.mProps.p)
|
|
6946
6946
|
},
|
|
6947
6947
|
anchorPoint: {
|
|
6948
|
-
get: ExpressionPropertyInterface(
|
|
6948
|
+
get: ExpressionPropertyInterface(d.transform.mProps.a)
|
|
6949
6949
|
},
|
|
6950
6950
|
scale: {
|
|
6951
|
-
get: ExpressionPropertyInterface(
|
|
6951
|
+
get: ExpressionPropertyInterface(d.transform.mProps.s)
|
|
6952
6952
|
},
|
|
6953
6953
|
rotation: {
|
|
6954
|
-
get: ExpressionPropertyInterface(
|
|
6954
|
+
get: ExpressionPropertyInterface(d.transform.mProps.r)
|
|
6955
6955
|
},
|
|
6956
6956
|
skew: {
|
|
6957
|
-
get: ExpressionPropertyInterface(
|
|
6957
|
+
get: ExpressionPropertyInterface(d.transform.mProps.sk)
|
|
6958
6958
|
},
|
|
6959
6959
|
skewAxis: {
|
|
6960
|
-
get: ExpressionPropertyInterface(
|
|
6960
|
+
get: ExpressionPropertyInterface(d.transform.mProps.sa)
|
|
6961
6961
|
},
|
|
6962
6962
|
_name: {
|
|
6963
6963
|
value: g.nm
|
|
6964
6964
|
}
|
|
6965
6965
|
}), c.ty = "tr", c.mn = g.mn, c.propertyGroup = E, c;
|
|
6966
6966
|
}
|
|
6967
|
-
function l(g,
|
|
6968
|
-
function c(
|
|
6969
|
-
return g.p.ix ===
|
|
6967
|
+
function l(g, d, E) {
|
|
6968
|
+
function c(m) {
|
|
6969
|
+
return g.p.ix === m ? c.position : g.s.ix === m ? c.size : null;
|
|
6970
6970
|
}
|
|
6971
6971
|
var u = propertyGroupFactory(c, E);
|
|
6972
6972
|
c.propertyIndex = g.ix;
|
|
6973
|
-
var h =
|
|
6973
|
+
var h = d.sh.ty === "tm" ? d.sh.prop : d.sh;
|
|
6974
6974
|
return h.s.setGroupProperty(PropertyInterface("Size", u)), h.p.setGroupProperty(PropertyInterface("Position", u)), Object.defineProperties(c, {
|
|
6975
6975
|
size: {
|
|
6976
6976
|
get: ExpressionPropertyInterface(h.s)
|
|
@@ -6983,11 +6983,11 @@ var lottie$1 = { exports: {} };
|
|
|
6983
6983
|
}
|
|
6984
6984
|
}), c.mn = g.mn, c;
|
|
6985
6985
|
}
|
|
6986
|
-
function
|
|
6987
|
-
function c(
|
|
6988
|
-
return g.p.ix ===
|
|
6986
|
+
function v(g, d, E) {
|
|
6987
|
+
function c(m) {
|
|
6988
|
+
return g.p.ix === m ? c.position : g.r.ix === m ? c.rotation : g.pt.ix === m ? c.points : g.or.ix === m || m === "ADBE Vector Star Outer Radius" ? c.outerRadius : g.os.ix === m ? c.outerRoundness : g.ir && (g.ir.ix === m || m === "ADBE Vector Star Inner Radius") ? c.innerRadius : g.is && g.is.ix === m ? c.innerRoundness : null;
|
|
6989
6989
|
}
|
|
6990
|
-
var u = propertyGroupFactory(c, E), h =
|
|
6990
|
+
var u = propertyGroupFactory(c, E), h = d.sh.ty === "tm" ? d.sh.prop : d.sh;
|
|
6991
6991
|
return c.propertyIndex = g.ix, h.or.setGroupProperty(PropertyInterface("Outer Radius", u)), h.os.setGroupProperty(PropertyInterface("Outer Roundness", u)), h.pt.setGroupProperty(PropertyInterface("Points", u)), h.p.setGroupProperty(PropertyInterface("Position", u)), h.r.setGroupProperty(PropertyInterface("Rotation", u)), g.ir && (h.ir.setGroupProperty(PropertyInterface("Inner Radius", u)), h.is.setGroupProperty(PropertyInterface("Inner Roundness", u))), Object.defineProperties(c, {
|
|
6992
6992
|
position: {
|
|
6993
6993
|
get: ExpressionPropertyInterface(h.p)
|
|
@@ -7015,11 +7015,11 @@ var lottie$1 = { exports: {} };
|
|
|
7015
7015
|
}
|
|
7016
7016
|
}), c.mn = g.mn, c;
|
|
7017
7017
|
}
|
|
7018
|
-
function
|
|
7019
|
-
function c(
|
|
7020
|
-
return g.p.ix ===
|
|
7018
|
+
function _(g, d, E) {
|
|
7019
|
+
function c(m) {
|
|
7020
|
+
return g.p.ix === m ? c.position : g.r.ix === m ? c.roundness : g.s.ix === m || m === "Size" || m === "ADBE Vector Rect Size" ? c.size : null;
|
|
7021
7021
|
}
|
|
7022
|
-
var u = propertyGroupFactory(c, E), h =
|
|
7022
|
+
var u = propertyGroupFactory(c, E), h = d.sh.ty === "tm" ? d.sh.prop : d.sh;
|
|
7023
7023
|
return c.propertyIndex = g.ix, h.p.setGroupProperty(PropertyInterface("Position", u)), h.s.setGroupProperty(PropertyInterface("Size", u)), h.r.setGroupProperty(PropertyInterface("Rotation", u)), Object.defineProperties(c, {
|
|
7024
7024
|
position: {
|
|
7025
7025
|
get: ExpressionPropertyInterface(h.p)
|
|
@@ -7035,11 +7035,11 @@ var lottie$1 = { exports: {} };
|
|
|
7035
7035
|
}
|
|
7036
7036
|
}), c.mn = g.mn, c;
|
|
7037
7037
|
}
|
|
7038
|
-
function p(g,
|
|
7039
|
-
function c(
|
|
7040
|
-
return g.r.ix ===
|
|
7038
|
+
function p(g, d, E) {
|
|
7039
|
+
function c(m) {
|
|
7040
|
+
return g.r.ix === m || m === "Round Corners 1" ? c.radius : null;
|
|
7041
7041
|
}
|
|
7042
|
-
var u = propertyGroupFactory(c, E), h =
|
|
7042
|
+
var u = propertyGroupFactory(c, E), h = d;
|
|
7043
7043
|
return c.propertyIndex = g.ix, h.rd.setGroupProperty(PropertyInterface("Radius", u)), Object.defineProperties(c, {
|
|
7044
7044
|
radius: {
|
|
7045
7045
|
get: ExpressionPropertyInterface(h.rd)
|
|
@@ -7049,11 +7049,11 @@ var lottie$1 = { exports: {} };
|
|
|
7049
7049
|
}
|
|
7050
7050
|
}), c.mn = g.mn, c;
|
|
7051
7051
|
}
|
|
7052
|
-
function b(g,
|
|
7053
|
-
function c(
|
|
7054
|
-
return g.c.ix ===
|
|
7052
|
+
function b(g, d, E) {
|
|
7053
|
+
function c(m) {
|
|
7054
|
+
return g.c.ix === m || m === "Copies" ? c.copies : g.o.ix === m || m === "Offset" ? c.offset : null;
|
|
7055
7055
|
}
|
|
7056
|
-
var u = propertyGroupFactory(c, E), h =
|
|
7056
|
+
var u = propertyGroupFactory(c, E), h = d;
|
|
7057
7057
|
return c.propertyIndex = g.ix, h.c.setGroupProperty(PropertyInterface("Copies", u)), h.o.setGroupProperty(PropertyInterface("Offset", u)), Object.defineProperties(c, {
|
|
7058
7058
|
copies: {
|
|
7059
7059
|
get: ExpressionPropertyInterface(h.c)
|
|
@@ -7066,13 +7066,13 @@ var lottie$1 = { exports: {} };
|
|
|
7066
7066
|
}
|
|
7067
7067
|
}), c.mn = g.mn, c;
|
|
7068
7068
|
}
|
|
7069
|
-
return function(g,
|
|
7069
|
+
return function(g, d, E) {
|
|
7070
7070
|
var c;
|
|
7071
|
-
function u(
|
|
7072
|
-
if (typeof
|
|
7073
|
-
return
|
|
7071
|
+
function u(m) {
|
|
7072
|
+
if (typeof m == "number")
|
|
7073
|
+
return m = m === void 0 ? 1 : m, m === 0 ? E : c[m - 1];
|
|
7074
7074
|
for (var x = 0, C = c.length; x < C; ) {
|
|
7075
|
-
if (c[x]._name ===
|
|
7075
|
+
if (c[x]._name === m)
|
|
7076
7076
|
return c[x];
|
|
7077
7077
|
x += 1;
|
|
7078
7078
|
}
|
|
@@ -7081,7 +7081,7 @@ var lottie$1 = { exports: {} };
|
|
|
7081
7081
|
function h() {
|
|
7082
7082
|
return E;
|
|
7083
7083
|
}
|
|
7084
|
-
return u.propertyGroup = propertyGroupFactory(u, h), c = t(g,
|
|
7084
|
+
return u.propertyGroup = propertyGroupFactory(u, h), c = t(g, d, u.propertyGroup), u.numProperties = c.length, u._name = "Contents", u;
|
|
7085
7085
|
};
|
|
7086
7086
|
}(), TextExpressionInterface = /* @__PURE__ */ function() {
|
|
7087
7087
|
return function(t) {
|
|
@@ -7128,8 +7128,8 @@ var lottie$1 = { exports: {} };
|
|
|
7128
7128
|
return s = o, a = a[o], _typeof(a) === "object" ? f : a;
|
|
7129
7129
|
var l = o.indexOf(s);
|
|
7130
7130
|
if (l !== -1) {
|
|
7131
|
-
var
|
|
7132
|
-
return a = a[
|
|
7131
|
+
var v = parseInt(o.substr(l + s.length), 10);
|
|
7132
|
+
return a = a[v], _typeof(a) === "object" ? f : a;
|
|
7133
7133
|
}
|
|
7134
7134
|
return "";
|
|
7135
7135
|
}
|
|
@@ -7165,28 +7165,28 @@ var lottie$1 = { exports: {} };
|
|
|
7165
7165
|
return n *= this.elem.globalData.frameRate, n -= this.offsetTime, n !== this._cachingAtTime.lastFrame && (this._cachingAtTime.lastIndex = this._cachingAtTime.lastFrame < n ? this._cachingAtTime.lastIndex : 0, this._cachingAtTime.value = this.interpolateValue(n, this._cachingAtTime), this._cachingAtTime.lastFrame = n), this._cachingAtTime.value;
|
|
7166
7166
|
}
|
|
7167
7167
|
function r(n) {
|
|
7168
|
-
var f = -0.01, o = this.getValueAtTime(n), l = this.getValueAtTime(n + f),
|
|
7168
|
+
var f = -0.01, o = this.getValueAtTime(n), l = this.getValueAtTime(n + f), v = 0;
|
|
7169
7169
|
if (o.length) {
|
|
7170
|
-
var
|
|
7171
|
-
for (
|
|
7172
|
-
|
|
7173
|
-
|
|
7170
|
+
var _;
|
|
7171
|
+
for (_ = 0; _ < o.length; _ += 1)
|
|
7172
|
+
v += Math.pow(l[_] - o[_], 2);
|
|
7173
|
+
v = Math.sqrt(v) * 100;
|
|
7174
7174
|
} else
|
|
7175
|
-
|
|
7176
|
-
return
|
|
7175
|
+
v = 0;
|
|
7176
|
+
return v;
|
|
7177
7177
|
}
|
|
7178
7178
|
function i(n) {
|
|
7179
7179
|
if (this.vel !== void 0)
|
|
7180
7180
|
return this.vel;
|
|
7181
|
-
var f = -1e-3, o = this.getValueAtTime(n), l = this.getValueAtTime(n + f),
|
|
7181
|
+
var f = -1e-3, o = this.getValueAtTime(n), l = this.getValueAtTime(n + f), v;
|
|
7182
7182
|
if (o.length) {
|
|
7183
|
-
|
|
7184
|
-
var
|
|
7185
|
-
for (
|
|
7186
|
-
|
|
7183
|
+
v = createTypedArray("float32", o.length);
|
|
7184
|
+
var _;
|
|
7185
|
+
for (_ = 0; _ < o.length; _ += 1)
|
|
7186
|
+
v[_] = (l[_] - o[_]) / f;
|
|
7187
7187
|
} else
|
|
7188
|
-
|
|
7189
|
-
return
|
|
7188
|
+
v = (l - o) / f;
|
|
7189
|
+
return v;
|
|
7190
7190
|
}
|
|
7191
7191
|
function s() {
|
|
7192
7192
|
return this.pv;
|
|
@@ -7208,89 +7208,89 @@ var lottie$1 = { exports: {} };
|
|
|
7208
7208
|
if (!this.k || !this.keyframes)
|
|
7209
7209
|
return this.pv;
|
|
7210
7210
|
p = p ? p.toLowerCase() : "";
|
|
7211
|
-
var
|
|
7212
|
-
if (
|
|
7211
|
+
var d = this.comp.renderedFrame, E = this.keyframes, c = E[E.length - 1].t;
|
|
7212
|
+
if (d <= c)
|
|
7213
7213
|
return this.pv;
|
|
7214
7214
|
var u, h;
|
|
7215
7215
|
g ? (b ? u = Math.abs(c - this.elem.comp.globalData.frameRate * b) : u = Math.max(0, c - this.elem.data.ip), h = c - u) : ((!b || b > E.length - 1) && (b = E.length - 1), h = E[E.length - 1 - b].t, u = c - h);
|
|
7216
|
-
var
|
|
7216
|
+
var m, x, C;
|
|
7217
7217
|
if (p === "pingpong") {
|
|
7218
|
-
var
|
|
7219
|
-
if (
|
|
7220
|
-
return this.getValueAtTime((u - (
|
|
7218
|
+
var T = Math.floor((d - h) / u);
|
|
7219
|
+
if (T % 2 !== 0)
|
|
7220
|
+
return this.getValueAtTime((u - (d - h) % u + h) / this.comp.globalData.frameRate, 0);
|
|
7221
7221
|
} else if (p === "offset") {
|
|
7222
|
-
var M = this.getValueAtTime(h / this.comp.globalData.frameRate, 0), w = this.getValueAtTime(c / this.comp.globalData.frameRate, 0), D = this.getValueAtTime(((
|
|
7222
|
+
var M = this.getValueAtTime(h / this.comp.globalData.frameRate, 0), w = this.getValueAtTime(c / this.comp.globalData.frameRate, 0), D = this.getValueAtTime(((d - h) % u + h) / this.comp.globalData.frameRate, 0), L = Math.floor((d - h) / u);
|
|
7223
7223
|
if (this.pv.length) {
|
|
7224
|
-
for (C = new Array(M.length), x = C.length,
|
|
7225
|
-
C[
|
|
7224
|
+
for (C = new Array(M.length), x = C.length, m = 0; m < x; m += 1)
|
|
7225
|
+
C[m] = (w[m] - M[m]) * L + D[m];
|
|
7226
7226
|
return C;
|
|
7227
7227
|
}
|
|
7228
7228
|
return (w - M) * L + D;
|
|
7229
7229
|
} else if (p === "continue") {
|
|
7230
7230
|
var I = this.getValueAtTime(c / this.comp.globalData.frameRate, 0), R = this.getValueAtTime((c - 1e-3) / this.comp.globalData.frameRate, 0);
|
|
7231
7231
|
if (this.pv.length) {
|
|
7232
|
-
for (C = new Array(I.length), x = C.length,
|
|
7233
|
-
C[
|
|
7232
|
+
for (C = new Array(I.length), x = C.length, m = 0; m < x; m += 1)
|
|
7233
|
+
C[m] = I[m] + (I[m] - R[m]) * ((d - c) / this.comp.globalData.frameRate) / 5e-4;
|
|
7234
7234
|
return C;
|
|
7235
7235
|
}
|
|
7236
|
-
return I + (I - R) * ((
|
|
7236
|
+
return I + (I - R) * ((d - c) / 1e-3);
|
|
7237
7237
|
}
|
|
7238
|
-
return this.getValueAtTime(((
|
|
7238
|
+
return this.getValueAtTime(((d - h) % u + h) / this.comp.globalData.frameRate, 0);
|
|
7239
7239
|
}
|
|
7240
7240
|
function e(p, b, g) {
|
|
7241
7241
|
if (!this.k)
|
|
7242
7242
|
return this.pv;
|
|
7243
7243
|
p = p ? p.toLowerCase() : "";
|
|
7244
|
-
var
|
|
7245
|
-
if (
|
|
7244
|
+
var d = this.comp.renderedFrame, E = this.keyframes, c = E[0].t;
|
|
7245
|
+
if (d >= c)
|
|
7246
7246
|
return this.pv;
|
|
7247
7247
|
var u, h;
|
|
7248
7248
|
g ? (b ? u = Math.abs(this.elem.comp.globalData.frameRate * b) : u = Math.max(0, this.elem.data.op - c), h = c + u) : ((!b || b > E.length - 1) && (b = E.length - 1), h = E[b].t, u = h - c);
|
|
7249
|
-
var
|
|
7249
|
+
var m, x, C;
|
|
7250
7250
|
if (p === "pingpong") {
|
|
7251
|
-
var
|
|
7252
|
-
if (
|
|
7253
|
-
return this.getValueAtTime(((c -
|
|
7251
|
+
var T = Math.floor((c - d) / u);
|
|
7252
|
+
if (T % 2 === 0)
|
|
7253
|
+
return this.getValueAtTime(((c - d) % u + c) / this.comp.globalData.frameRate, 0);
|
|
7254
7254
|
} else if (p === "offset") {
|
|
7255
|
-
var M = this.getValueAtTime(c / this.comp.globalData.frameRate, 0), w = this.getValueAtTime(h / this.comp.globalData.frameRate, 0), D = this.getValueAtTime((u - (c -
|
|
7255
|
+
var M = this.getValueAtTime(c / this.comp.globalData.frameRate, 0), w = this.getValueAtTime(h / this.comp.globalData.frameRate, 0), D = this.getValueAtTime((u - (c - d) % u + c) / this.comp.globalData.frameRate, 0), L = Math.floor((c - d) / u) + 1;
|
|
7256
7256
|
if (this.pv.length) {
|
|
7257
|
-
for (C = new Array(M.length), x = C.length,
|
|
7258
|
-
C[
|
|
7257
|
+
for (C = new Array(M.length), x = C.length, m = 0; m < x; m += 1)
|
|
7258
|
+
C[m] = D[m] - (w[m] - M[m]) * L;
|
|
7259
7259
|
return C;
|
|
7260
7260
|
}
|
|
7261
7261
|
return D - (w - M) * L;
|
|
7262
7262
|
} else if (p === "continue") {
|
|
7263
7263
|
var I = this.getValueAtTime(c / this.comp.globalData.frameRate, 0), R = this.getValueAtTime((c + 1e-3) / this.comp.globalData.frameRate, 0);
|
|
7264
7264
|
if (this.pv.length) {
|
|
7265
|
-
for (C = new Array(I.length), x = C.length,
|
|
7266
|
-
C[
|
|
7265
|
+
for (C = new Array(I.length), x = C.length, m = 0; m < x; m += 1)
|
|
7266
|
+
C[m] = I[m] + (I[m] - R[m]) * (c - d) / 1e-3;
|
|
7267
7267
|
return C;
|
|
7268
7268
|
}
|
|
7269
|
-
return I + (I - R) * (c -
|
|
7269
|
+
return I + (I - R) * (c - d) / 1e-3;
|
|
7270
7270
|
}
|
|
7271
|
-
return this.getValueAtTime((u - ((c -
|
|
7271
|
+
return this.getValueAtTime((u - ((c - d) % u + c)) / this.comp.globalData.frameRate, 0);
|
|
7272
7272
|
}
|
|
7273
7273
|
function r(p, b) {
|
|
7274
7274
|
if (!this.k)
|
|
7275
7275
|
return this.pv;
|
|
7276
7276
|
if (p = (p || 0.4) * 0.5, b = Math.floor(b || 5), b <= 1)
|
|
7277
7277
|
return this.pv;
|
|
7278
|
-
var g = this.comp.renderedFrame / this.comp.globalData.frameRate,
|
|
7279
|
-
this.pv.length ?
|
|
7278
|
+
var g = this.comp.renderedFrame / this.comp.globalData.frameRate, d = g - p, E = g + p, c = b > 1 ? (E - d) / (b - 1) : 1, u = 0, h = 0, m;
|
|
7279
|
+
this.pv.length ? m = createTypedArray("float32", this.pv.length) : m = 0;
|
|
7280
7280
|
for (var x; u < b; ) {
|
|
7281
|
-
if (x = this.getValueAtTime(
|
|
7281
|
+
if (x = this.getValueAtTime(d + u * c), this.pv.length)
|
|
7282
7282
|
for (h = 0; h < this.pv.length; h += 1)
|
|
7283
|
-
|
|
7283
|
+
m[h] += x[h];
|
|
7284
7284
|
else
|
|
7285
|
-
|
|
7285
|
+
m += x;
|
|
7286
7286
|
u += 1;
|
|
7287
7287
|
}
|
|
7288
7288
|
if (this.pv.length)
|
|
7289
7289
|
for (h = 0; h < this.pv.length; h += 1)
|
|
7290
|
-
|
|
7290
|
+
m[h] /= b;
|
|
7291
7291
|
else
|
|
7292
|
-
|
|
7293
|
-
return
|
|
7292
|
+
m /= b;
|
|
7293
|
+
return m;
|
|
7294
7294
|
}
|
|
7295
7295
|
function i(p) {
|
|
7296
7296
|
this._transformCachingAtTime || (this._transformCachingAtTime = {
|
|
@@ -7302,8 +7302,8 @@ var lottie$1 = { exports: {} };
|
|
|
7302
7302
|
b.translate(-g[0] * this.a.mult, -g[1] * this.a.mult, g[2] * this.a.mult);
|
|
7303
7303
|
}
|
|
7304
7304
|
if (this.appliedTransformations < 2) {
|
|
7305
|
-
var
|
|
7306
|
-
b.scale(
|
|
7305
|
+
var d = this.s.getValueAtTime(p);
|
|
7306
|
+
b.scale(d[0] * this.s.mult, d[1] * this.s.mult, d[2] * this.s.mult);
|
|
7307
7307
|
}
|
|
7308
7308
|
if (this.sk && this.appliedTransformations < 3) {
|
|
7309
7309
|
var E = this.sk.getValueAtTime(p), c = this.sa.getValueAtTime(p);
|
|
@@ -7313,16 +7313,16 @@ var lottie$1 = { exports: {} };
|
|
|
7313
7313
|
var u = this.r.getValueAtTime(p);
|
|
7314
7314
|
b.rotate(-u * this.r.mult);
|
|
7315
7315
|
} else if (!this.r && this.appliedTransformations < 4) {
|
|
7316
|
-
var h = this.rz.getValueAtTime(p),
|
|
7317
|
-
b.rotateZ(-h * this.rz.mult).rotateY(
|
|
7316
|
+
var h = this.rz.getValueAtTime(p), m = this.ry.getValueAtTime(p), x = this.rx.getValueAtTime(p), C = this.or.getValueAtTime(p);
|
|
7317
|
+
b.rotateZ(-h * this.rz.mult).rotateY(m * this.ry.mult).rotateX(x * this.rx.mult).rotateZ(-C[2] * this.or.mult).rotateY(C[1] * this.or.mult).rotateX(C[0] * this.or.mult);
|
|
7318
7318
|
}
|
|
7319
7319
|
if (this.data.p && this.data.p.s) {
|
|
7320
|
-
var
|
|
7320
|
+
var T = this.px.getValueAtTime(p), M = this.py.getValueAtTime(p);
|
|
7321
7321
|
if (this.data.p.z) {
|
|
7322
7322
|
var w = this.pz.getValueAtTime(p);
|
|
7323
|
-
b.translate(
|
|
7323
|
+
b.translate(T * this.px.mult, M * this.py.mult, -w * this.pz.mult);
|
|
7324
7324
|
} else
|
|
7325
|
-
b.translate(
|
|
7325
|
+
b.translate(T * this.px.mult, M * this.py.mult, 0);
|
|
7326
7326
|
} else {
|
|
7327
7327
|
var D = this.p.getValueAtTime(p);
|
|
7328
7328
|
b.translate(D[0] * this.p.mult, D[1] * this.p.mult, -D[2] * this.p.mult);
|
|
@@ -7334,12 +7334,12 @@ var lottie$1 = { exports: {} };
|
|
|
7334
7334
|
}
|
|
7335
7335
|
var a = TransformPropertyFactory.getTransformProperty;
|
|
7336
7336
|
TransformPropertyFactory.getTransformProperty = function(p, b, g) {
|
|
7337
|
-
var
|
|
7338
|
-
return
|
|
7337
|
+
var d = a(p, b, g);
|
|
7338
|
+
return d.dynamicProperties.length ? d.getValueAtTime = i.bind(d) : d.getValueAtTime = s.bind(d), d.setGroupProperty = expressionHelpers.setGroupProperty, d;
|
|
7339
7339
|
};
|
|
7340
7340
|
var n = PropertyFactory.getProp;
|
|
7341
|
-
PropertyFactory.getProp = function(p, b, g,
|
|
7342
|
-
var c = n(p, b, g,
|
|
7341
|
+
PropertyFactory.getProp = function(p, b, g, d, E) {
|
|
7342
|
+
var c = n(p, b, g, d, E);
|
|
7343
7343
|
c.kf ? c.getValueAtTime = expressionHelpers.getValueAtTime.bind(c) : c.getValueAtTime = expressionHelpers.getStaticValueAtTime.bind(c), c.setGroupProperty = expressionHelpers.setGroupProperty, c.loopOut = t, c.loopIn = e, c.smooth = r, c.getVelocityAtTime = expressionHelpers.getVelocityAtTime.bind(c), c.getSpeedAtTime = expressionHelpers.getSpeedAtTime.bind(c), c.numKeys = b.a === 1 ? b.k.length : 0, c.propertyIndex = b.ix;
|
|
7344
7344
|
var u = 0;
|
|
7345
7345
|
return g !== 0 && (u = createTypedArray("float32", b.a === 1 ? b.k[0].s.length : b.k.length)), c._cachingAtTime = {
|
|
@@ -7356,17 +7356,17 @@ var lottie$1 = { exports: {} };
|
|
|
7356
7356
|
}), p *= this.elem.globalData.frameRate, p -= this.offsetTime, p !== this._cachingAtTime.lastTime && (this._cachingAtTime.lastIndex = this._cachingAtTime.lastTime < p ? this._caching.lastIndex : 0, this._cachingAtTime.lastTime = p, this.interpolateShape(p, this._cachingAtTime.shapeValue, this._cachingAtTime)), this._cachingAtTime.shapeValue;
|
|
7357
7357
|
}
|
|
7358
7358
|
var o = ShapePropertyFactory.getConstructorFunction(), l = ShapePropertyFactory.getKeyframedConstructorFunction();
|
|
7359
|
-
function
|
|
7359
|
+
function v() {
|
|
7360
7360
|
}
|
|
7361
|
-
|
|
7361
|
+
v.prototype = {
|
|
7362
7362
|
vertices: function(b, g) {
|
|
7363
7363
|
this.k && this.getValue();
|
|
7364
|
-
var
|
|
7365
|
-
g !== void 0 && (
|
|
7366
|
-
var E, c =
|
|
7364
|
+
var d = this.v;
|
|
7365
|
+
g !== void 0 && (d = this.getValueAtTime(g, 0));
|
|
7366
|
+
var E, c = d._length, u = d[b], h = d.v, m = createSizedArray(c);
|
|
7367
7367
|
for (E = 0; E < c; E += 1)
|
|
7368
|
-
b === "i" || b === "o" ?
|
|
7369
|
-
return
|
|
7368
|
+
b === "i" || b === "o" ? m[E] = [u[E][0] - h[E][0], u[E][1] - h[E][1]] : m[E] = [u[E][0], u[E][1]];
|
|
7369
|
+
return m;
|
|
7370
7370
|
},
|
|
7371
7371
|
points: function(b) {
|
|
7372
7372
|
return this.vertices("v", b);
|
|
@@ -7381,25 +7381,25 @@ var lottie$1 = { exports: {} };
|
|
|
7381
7381
|
return this.v.c;
|
|
7382
7382
|
},
|
|
7383
7383
|
pointOnPath: function(b, g) {
|
|
7384
|
-
var
|
|
7385
|
-
g !== void 0 && (
|
|
7386
|
-
for (var E = this._segmentsLength, c = E.lengths, u = E.totalLength * b, h = 0,
|
|
7384
|
+
var d = this.v;
|
|
7385
|
+
g !== void 0 && (d = this.getValueAtTime(g, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(d));
|
|
7386
|
+
for (var E = this._segmentsLength, c = E.lengths, u = E.totalLength * b, h = 0, m = c.length, x = 0, C; h < m; ) {
|
|
7387
7387
|
if (x + c[h].addedLength > u) {
|
|
7388
|
-
var
|
|
7389
|
-
C = bez.getPointInSegment(
|
|
7388
|
+
var T = h, M = d.c && h === m - 1 ? 0 : h + 1, w = (u - x) / c[h].addedLength;
|
|
7389
|
+
C = bez.getPointInSegment(d.v[T], d.v[M], d.o[T], d.i[M], w, c[h]);
|
|
7390
7390
|
break;
|
|
7391
7391
|
} else
|
|
7392
7392
|
x += c[h].addedLength;
|
|
7393
7393
|
h += 1;
|
|
7394
7394
|
}
|
|
7395
|
-
return C || (C =
|
|
7395
|
+
return C || (C = d.c ? [d.v[0][0], d.v[0][1]] : [d.v[d._length - 1][0], d.v[d._length - 1][1]]), C;
|
|
7396
7396
|
},
|
|
7397
|
-
vectorOnPath: function(b, g,
|
|
7397
|
+
vectorOnPath: function(b, g, d) {
|
|
7398
7398
|
b == 1 ? b = this.v.c : b == 0 && (b = 0.999);
|
|
7399
|
-
var E = this.pointOnPath(b, g), c = this.pointOnPath(b + 1e-3, g), u = c[0] - E[0], h = c[1] - E[1],
|
|
7400
|
-
if (
|
|
7399
|
+
var E = this.pointOnPath(b, g), c = this.pointOnPath(b + 1e-3, g), u = c[0] - E[0], h = c[1] - E[1], m = Math.sqrt(Math.pow(u, 2) + Math.pow(h, 2));
|
|
7400
|
+
if (m === 0)
|
|
7401
7401
|
return [0, 0];
|
|
7402
|
-
var x =
|
|
7402
|
+
var x = d === "tangent" ? [u / m, h / m] : [-h / m, u / m];
|
|
7403
7403
|
return x;
|
|
7404
7404
|
},
|
|
7405
7405
|
tangentOnPath: function(b, g) {
|
|
@@ -7410,10 +7410,10 @@ var lottie$1 = { exports: {} };
|
|
|
7410
7410
|
},
|
|
7411
7411
|
setGroupProperty: expressionHelpers.setGroupProperty,
|
|
7412
7412
|
getValueAtTime: expressionHelpers.getStaticValueAtTime
|
|
7413
|
-
}, extendPrototype([
|
|
7414
|
-
var
|
|
7415
|
-
ShapePropertyFactory.getShapeProp = function(p, b, g,
|
|
7416
|
-
var c =
|
|
7413
|
+
}, extendPrototype([v], o), extendPrototype([v], l), l.prototype.getValueAtTime = f, l.prototype.initiateExpression = ExpressionManager.initiateExpression;
|
|
7414
|
+
var _ = ShapePropertyFactory.getShapeProp;
|
|
7415
|
+
ShapePropertyFactory.getShapeProp = function(p, b, g, d, E) {
|
|
7416
|
+
var c = _(p, b, g, d, E);
|
|
7417
7417
|
return c.propertyIndex = b.ix, c.lock = !1, g === 3 ? expressionHelpers.searchExpressions(p, b.pt, c) : g === 4 && expressionHelpers.searchExpressions(p, b.ks, c), c.k && p.addDynamicProperty(c), c;
|
|
7418
7418
|
};
|
|
7419
7419
|
}
|
|
@@ -7509,8 +7509,8 @@ var lottie$1 = { exports: {} };
|
|
|
7509
7509
|
if (this.filterManager.effectElements[7].p.v !== 0 || this.filterManager.effectElements[8].p.v !== 100) {
|
|
7510
7510
|
var n = Math.min(this.filterManager.effectElements[7].p.v, this.filterManager.effectElements[8].p.v) * 0.01, f = Math.max(this.filterManager.effectElements[7].p.v, this.filterManager.effectElements[8].p.v) * 0.01, o = s.getTotalLength();
|
|
7511
7511
|
a = "0 0 0 " + o * n + " ";
|
|
7512
|
-
var l = o * (f - n),
|
|
7513
|
-
for (p = 0; p <
|
|
7512
|
+
var l = o * (f - n), v = 1 + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01, _ = Math.floor(l / v), p;
|
|
7513
|
+
for (p = 0; p < _; p += 1)
|
|
7514
7514
|
a += "1 " + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01 + " ";
|
|
7515
7515
|
a += "0 " + o * 10 + " 0 0";
|
|
7516
7516
|
} else
|
|
@@ -7550,11 +7550,11 @@ var lottie$1 = { exports: {} };
|
|
|
7550
7550
|
var r = createNS(t);
|
|
7551
7551
|
return r.setAttribute("type", "table"), e.appendChild(r), r;
|
|
7552
7552
|
}, SVGProLevelsFilter.prototype.getTableValue = function(t, e, r, i, s) {
|
|
7553
|
-
for (var a = 0, n = 256, f, o = Math.min(t, e), l = Math.max(t, e),
|
|
7553
|
+
for (var a = 0, n = 256, f, o = Math.min(t, e), l = Math.max(t, e), v = Array.call(null, {
|
|
7554
7554
|
length: n
|
|
7555
|
-
}),
|
|
7556
|
-
f = a / 256, f <= o ?
|
|
7557
|
-
return
|
|
7555
|
+
}), _, p = 0, b = s - i, g = e - t; a <= 256; )
|
|
7556
|
+
f = a / 256, f <= o ? _ = g < 0 ? s : i : f >= l ? _ = g < 0 ? i : s : _ = i + b * Math.pow((f - t) / g, 1 / r), v[p] = _, p += 1, a += 256 / (n - 1);
|
|
7557
|
+
return v.join(" ");
|
|
7558
7558
|
}, SVGProLevelsFilter.prototype.renderFrame = function(t) {
|
|
7559
7559
|
if (t || this.filterManager._mdf) {
|
|
7560
7560
|
var e, r = this.filterManager.effectElements;
|
|
@@ -7570,10 +7570,10 @@ var lottie$1 = { exports: {} };
|
|
|
7570
7570
|
o.setAttribute("dx", "25"), o.setAttribute("dy", "0"), o.setAttribute("in", i + "_drop_shadow_1"), o.setAttribute("result", i + "_drop_shadow_2"), this.feOffset = o, t.appendChild(o);
|
|
7571
7571
|
var l = createNS("feFlood");
|
|
7572
7572
|
l.setAttribute("flood-color", "#00ff00"), l.setAttribute("flood-opacity", "1"), l.setAttribute("result", i + "_drop_shadow_3"), this.feFlood = l, t.appendChild(l);
|
|
7573
|
-
var
|
|
7574
|
-
|
|
7575
|
-
var
|
|
7576
|
-
t.appendChild(
|
|
7573
|
+
var v = createNS("feComposite");
|
|
7574
|
+
v.setAttribute("in", i + "_drop_shadow_3"), v.setAttribute("in2", i + "_drop_shadow_2"), v.setAttribute("operator", "in"), v.setAttribute("result", i + "_drop_shadow_4"), t.appendChild(v);
|
|
7575
|
+
var _ = this.createMergeNode(i, [i + "_drop_shadow_4", s]);
|
|
7576
|
+
t.appendChild(_);
|
|
7577
7577
|
}
|
|
7578
7578
|
extendPrototype([SVGComposableEffect], SVGDropShadowEffect), SVGDropShadowEffect.prototype.renderFrame = function(t) {
|
|
7579
7579
|
if (t || this.filterManager._mdf) {
|
|
@@ -7675,9 +7675,9 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), supported
|
|
|
7675
7675
|
resetOnEnd: f = !1,
|
|
7676
7676
|
replayOnHover: o = !1,
|
|
7677
7677
|
onComplete: l,
|
|
7678
|
-
fallback:
|
|
7678
|
+
fallback: v
|
|
7679
7679
|
}) => {
|
|
7680
|
-
const [
|
|
7680
|
+
const [_, p] = useState(null), [b, g] = useState(!1), [d, E] = useState(!1), c = useRef(null), u = useRef(null), h = useRef(0), m = useRef(!1), x = useMemo(() => t.toLowerCase().replace(/-/g, "_"), [t]), C = useMemo(() => supportedEmojis.has(x), [x]), T = s === !0;
|
|
7681
7681
|
useEffect(() => {
|
|
7682
7682
|
if (!C) {
|
|
7683
7683
|
E(!0);
|
|
@@ -7704,14 +7704,14 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), supported
|
|
|
7704
7704
|
w = !1;
|
|
7705
7705
|
};
|
|
7706
7706
|
}, [x, C]), useEffect(() => {
|
|
7707
|
-
if (!c.current || !
|
|
7708
|
-
u.current && u.current.destroy(), h.current = 0,
|
|
7707
|
+
if (!c.current || !_) return;
|
|
7708
|
+
u.current && u.current.destroy(), h.current = 0, m.current = !1;
|
|
7709
7709
|
const w = lottie.loadAnimation({
|
|
7710
7710
|
container: c.current,
|
|
7711
7711
|
renderer: "svg",
|
|
7712
|
-
loop:
|
|
7712
|
+
loop: T,
|
|
7713
7713
|
autoplay: a,
|
|
7714
|
-
animationData:
|
|
7714
|
+
animationData: _
|
|
7715
7715
|
});
|
|
7716
7716
|
w.setSpeed(n), u.current = w;
|
|
7717
7717
|
const D = () => {
|
|
@@ -7721,26 +7721,26 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), supported
|
|
|
7721
7721
|
w.goToAndPlay(0);
|
|
7722
7722
|
return;
|
|
7723
7723
|
}
|
|
7724
|
-
I && (
|
|
7724
|
+
I && (m.current = !0, f && w.goToAndStop(0, !0), l == null || l());
|
|
7725
7725
|
};
|
|
7726
7726
|
return w.addEventListener("complete", D), () => {
|
|
7727
7727
|
w.removeEventListener("complete", D), w.destroy(), u.current = null;
|
|
7728
7728
|
};
|
|
7729
|
-
}, [
|
|
7729
|
+
}, [_, T, a, n]), useEffect(() => {
|
|
7730
7730
|
var w;
|
|
7731
7731
|
(w = u.current) == null || w.setSpeed(n);
|
|
7732
7732
|
}, [n]);
|
|
7733
7733
|
const M = useCallback(() => {
|
|
7734
|
-
!o || !u.current || (h.current = 0,
|
|
7734
|
+
!o || !u.current || (h.current = 0, m.current = !1, u.current.goToAndPlay(0, !0));
|
|
7735
7735
|
}, [o]);
|
|
7736
|
-
return !C ||
|
|
7736
|
+
return !C || d ? /* @__PURE__ */ jsx(
|
|
7737
7737
|
"span",
|
|
7738
7738
|
{
|
|
7739
7739
|
className: r,
|
|
7740
7740
|
style: { fontSize: e, display: "inline-block", verticalAlign: "middle", ...i },
|
|
7741
|
-
children:
|
|
7741
|
+
children: v
|
|
7742
7742
|
}
|
|
7743
|
-
) : b || !
|
|
7743
|
+
) : b || !_ ? /* @__PURE__ */ jsx(
|
|
7744
7744
|
"div",
|
|
7745
7745
|
{
|
|
7746
7746
|
className: r,
|
|
@@ -8275,32 +8275,13 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), supported
|
|
|
8275
8275
|
"1f3f3_fe0f"
|
|
8276
8276
|
]
|
|
8277
8277
|
}
|
|
8278
|
-
],
|
|
8279
|
-
{ id: "default", label: "Default", modifier: "", color: "#FFCA28" },
|
|
8280
|
-
{ id: "light", label: "Light", modifier: "_1f3fb", color: "#FDDBB4" },
|
|
8281
|
-
{ id: "medium-light", label: "Medium Light", modifier: "_1f3fc", color: "#F0AA82" },
|
|
8282
|
-
{ id: "medium", label: "Medium", modifier: "_1f3fd", color: "#CF8B5A" },
|
|
8283
|
-
{ id: "medium-dark", label: "Medium Dark", modifier: "_1f3fe", color: "#8E5635" },
|
|
8284
|
-
{ id: "dark", label: "Dark", modifier: "_1f3ff", color: "#4A2F1A" }
|
|
8285
|
-
];
|
|
8286
|
-
function getSkinTonedCodepoint(t, e) {
|
|
8287
|
-
if (!e) return t;
|
|
8288
|
-
const r = `${t}${e}`;
|
|
8289
|
-
return supportedEmojis.has(r) ? r : t;
|
|
8290
|
-
}
|
|
8291
|
-
function hasSkinTones(t) {
|
|
8292
|
-
return SKIN_TONES.some(
|
|
8293
|
-
(e) => e.modifier !== "" && supportedEmojis.has(`${t}${e.modifier}`)
|
|
8294
|
-
);
|
|
8295
|
-
}
|
|
8296
|
-
const DARK = {
|
|
8278
|
+
], DARK = {
|
|
8297
8279
|
bg: "#1a1d2e",
|
|
8298
8280
|
surfaceHover: "#2d3150",
|
|
8299
8281
|
border: "rgba(255,255,255,0.07)",
|
|
8300
8282
|
text: "#e2e8f0",
|
|
8301
8283
|
textMuted: "#64748b",
|
|
8302
8284
|
accent: "#6366f1",
|
|
8303
|
-
accentSoft: "rgba(99,102,241,0.15)",
|
|
8304
8285
|
input: "#0f1117",
|
|
8305
8286
|
scrollbar: "#2d3150",
|
|
8306
8287
|
activeCategoryBg: "rgba(99,102,241,0.2)",
|
|
@@ -8313,7 +8294,6 @@ const DARK = {
|
|
|
8313
8294
|
text: "#1e293b",
|
|
8314
8295
|
textMuted: "#94a3b8",
|
|
8315
8296
|
accent: "#6366f1",
|
|
8316
|
-
accentSoft: "rgba(99,102,241,0.1)",
|
|
8317
8297
|
input: "#ffffff",
|
|
8318
8298
|
scrollbar: "#e2e8f0",
|
|
8319
8299
|
activeCategoryBg: "rgba(99,102,241,0.1)",
|
|
@@ -8348,85 +8328,85 @@ const AnimateEmojiModal = ({
|
|
|
8348
8328
|
theme: f = "dark",
|
|
8349
8329
|
className: o,
|
|
8350
8330
|
style: l,
|
|
8351
|
-
emojiSize:
|
|
8331
|
+
emojiSize: v = 36
|
|
8352
8332
|
}) => {
|
|
8353
|
-
const
|
|
8333
|
+
const _ = f === "light" ? LIGHT : DARK, [p, b] = useState(EMOJI_CATEGORIES[0].id), [g, d] = useState(""), [E, c] = useState(!1), [u, h] = useState(!1), m = useRef(null), x = useRef(null);
|
|
8354
8334
|
useEffect(() => {
|
|
8355
8335
|
if (t)
|
|
8356
|
-
|
|
8357
|
-
requestAnimationFrame(() =>
|
|
8336
|
+
h(!0), requestAnimationFrame(() => {
|
|
8337
|
+
requestAnimationFrame(() => c(!0));
|
|
8358
8338
|
}), setTimeout(() => {
|
|
8359
|
-
var
|
|
8360
|
-
return (
|
|
8339
|
+
var P;
|
|
8340
|
+
return (P = x.current) == null ? void 0 : P.focus();
|
|
8361
8341
|
}, 80);
|
|
8362
8342
|
else {
|
|
8363
|
-
|
|
8364
|
-
const
|
|
8365
|
-
return () => clearTimeout(
|
|
8343
|
+
c(!1);
|
|
8344
|
+
const P = setTimeout(() => h(!1), 250);
|
|
8345
|
+
return () => clearTimeout(P);
|
|
8366
8346
|
}
|
|
8367
8347
|
}, [t]), useEffect(() => {
|
|
8368
8348
|
if (!t) return;
|
|
8369
|
-
const
|
|
8370
|
-
|
|
8349
|
+
const P = (A) => {
|
|
8350
|
+
A.key === "Escape" && e();
|
|
8371
8351
|
};
|
|
8372
|
-
return document.addEventListener("keydown",
|
|
8352
|
+
return document.addEventListener("keydown", P), () => document.removeEventListener("keydown", P);
|
|
8373
8353
|
}, [t, e]);
|
|
8374
|
-
const
|
|
8375
|
-
() => EMOJI_CATEGORIES.find((
|
|
8354
|
+
const C = useMemo(
|
|
8355
|
+
() => EMOJI_CATEGORIES.find((P) => P.id === p) ?? EMOJI_CATEGORIES[0],
|
|
8376
8356
|
[p]
|
|
8377
|
-
),
|
|
8357
|
+
), T = useMemo(() => (g.trim() ? (
|
|
8378
8358
|
// Search across ALL categories
|
|
8379
|
-
EMOJI_CATEGORIES.flatMap((
|
|
8380
|
-
(
|
|
8359
|
+
EMOJI_CATEGORIES.flatMap((A) => A.emojis).filter(
|
|
8360
|
+
(A) => A.includes(g.toLowerCase().trim())
|
|
8381
8361
|
)
|
|
8382
|
-
) :
|
|
8383
|
-
(
|
|
8384
|
-
r(
|
|
8362
|
+
) : C.emojis).filter((A) => supportedEmojis.has(A)), [C, g]), M = useCallback(
|
|
8363
|
+
(P) => {
|
|
8364
|
+
r(P), e();
|
|
8385
8365
|
},
|
|
8386
8366
|
[r, e]
|
|
8387
|
-
),
|
|
8388
|
-
(
|
|
8389
|
-
|
|
8367
|
+
), w = useCallback(
|
|
8368
|
+
(P) => {
|
|
8369
|
+
m.current && !m.current.contains(P.target) && e();
|
|
8390
8370
|
},
|
|
8391
8371
|
[e]
|
|
8392
8372
|
);
|
|
8393
|
-
if (!
|
|
8394
|
-
const
|
|
8373
|
+
if (!u) return null;
|
|
8374
|
+
const D = typeof i == "number" ? `${i}px` : i, L = typeof s == "number" ? `${s}px` : s, I = resolvePosition(a), R = {
|
|
8395
8375
|
position: "fixed",
|
|
8396
8376
|
inset: 0,
|
|
8397
8377
|
zIndex: 99998,
|
|
8398
8378
|
background: "rgba(0,0,0,0.5)",
|
|
8399
8379
|
backdropFilter: "blur(4px)",
|
|
8400
|
-
opacity:
|
|
8380
|
+
opacity: E ? 1 : 0,
|
|
8401
8381
|
transition: "opacity 0.25s ease"
|
|
8402
|
-
},
|
|
8403
|
-
width:
|
|
8404
|
-
height:
|
|
8382
|
+
}, G = {
|
|
8383
|
+
width: D,
|
|
8384
|
+
height: L,
|
|
8405
8385
|
zIndex: 99999,
|
|
8406
|
-
background:
|
|
8386
|
+
background: _.bg,
|
|
8407
8387
|
borderRadius: "16px",
|
|
8408
|
-
border: `1px solid ${
|
|
8388
|
+
border: `1px solid ${_.border}`,
|
|
8409
8389
|
display: "flex",
|
|
8410
8390
|
flexDirection: "column",
|
|
8411
8391
|
overflow: "hidden",
|
|
8412
8392
|
boxShadow: "0 24px 64px rgba(0,0,0,0.5)",
|
|
8413
|
-
opacity:
|
|
8414
|
-
transform:
|
|
8393
|
+
opacity: E ? 1 : 0,
|
|
8394
|
+
transform: E ? "scale(1) translateY(0)" : "scale(0.94) translateY(12px)",
|
|
8415
8395
|
transition: "opacity 0.25s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1)",
|
|
8416
8396
|
fontFamily: "'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif",
|
|
8417
|
-
...
|
|
8397
|
+
...I,
|
|
8418
8398
|
...l
|
|
8419
|
-
},
|
|
8420
|
-
a === "center" && /* @__PURE__ */ jsx("div", { style:
|
|
8399
|
+
}, V = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8400
|
+
a === "center" && /* @__PURE__ */ jsx("div", { style: R, onClick: w, "aria-hidden": "true" }),
|
|
8421
8401
|
/* @__PURE__ */ jsxs(
|
|
8422
8402
|
"div",
|
|
8423
8403
|
{
|
|
8424
|
-
ref:
|
|
8404
|
+
ref: m,
|
|
8425
8405
|
role: "dialog",
|
|
8426
8406
|
"aria-modal": "true",
|
|
8427
8407
|
"aria-label": "Emoji Picker",
|
|
8428
8408
|
className: o,
|
|
8429
|
-
style:
|
|
8409
|
+
style: G,
|
|
8430
8410
|
children: [
|
|
8431
8411
|
/* @__PURE__ */ jsxs(
|
|
8432
8412
|
"div",
|
|
@@ -8436,7 +8416,7 @@ const AnimateEmojiModal = ({
|
|
|
8436
8416
|
alignItems: "center",
|
|
8437
8417
|
justifyContent: "space-between",
|
|
8438
8418
|
padding: "14px 16px 10px",
|
|
8439
|
-
borderBottom: `1px solid ${
|
|
8419
|
+
borderBottom: `1px solid ${_.border}`,
|
|
8440
8420
|
flexShrink: 0
|
|
8441
8421
|
},
|
|
8442
8422
|
children: [
|
|
@@ -8446,7 +8426,7 @@ const AnimateEmojiModal = ({
|
|
|
8446
8426
|
style: {
|
|
8447
8427
|
fontSize: "14px",
|
|
8448
8428
|
fontWeight: 600,
|
|
8449
|
-
color:
|
|
8429
|
+
color: _.text,
|
|
8450
8430
|
letterSpacing: "-0.01em"
|
|
8451
8431
|
},
|
|
8452
8432
|
children: "Emoji Picker"
|
|
@@ -8461,7 +8441,7 @@ const AnimateEmojiModal = ({
|
|
|
8461
8441
|
background: "none",
|
|
8462
8442
|
border: "none",
|
|
8463
8443
|
cursor: "pointer",
|
|
8464
|
-
color:
|
|
8444
|
+
color: _.textMuted,
|
|
8465
8445
|
fontSize: "20px",
|
|
8466
8446
|
lineHeight: 1,
|
|
8467
8447
|
padding: "2px 4px",
|
|
@@ -8471,11 +8451,11 @@ const AnimateEmojiModal = ({
|
|
|
8471
8451
|
alignItems: "center",
|
|
8472
8452
|
justifyContent: "center"
|
|
8473
8453
|
},
|
|
8474
|
-
onMouseEnter: (
|
|
8475
|
-
|
|
8454
|
+
onMouseEnter: (P) => {
|
|
8455
|
+
P.currentTarget.style.color = _.text, P.currentTarget.style.background = _.surfaceHover;
|
|
8476
8456
|
},
|
|
8477
|
-
onMouseLeave: (
|
|
8478
|
-
|
|
8457
|
+
onMouseLeave: (P) => {
|
|
8458
|
+
P.currentTarget.style.color = _.textMuted, P.currentTarget.style.background = "none";
|
|
8479
8459
|
},
|
|
8480
8460
|
children: "✕"
|
|
8481
8461
|
}
|
|
@@ -8489,23 +8469,23 @@ const AnimateEmojiModal = ({
|
|
|
8489
8469
|
style: {
|
|
8490
8470
|
display: "flex",
|
|
8491
8471
|
alignItems: "center",
|
|
8492
|
-
background:
|
|
8493
|
-
border: `1px solid ${
|
|
8472
|
+
background: _.input,
|
|
8473
|
+
border: `1px solid ${_.border}`,
|
|
8494
8474
|
borderRadius: "10px",
|
|
8495
8475
|
padding: "0 12px",
|
|
8496
8476
|
gap: "8px",
|
|
8497
8477
|
transition: "border-color 0.15s"
|
|
8498
8478
|
},
|
|
8499
8479
|
children: [
|
|
8500
|
-
/* @__PURE__ */ jsx("span", { style: { color:
|
|
8480
|
+
/* @__PURE__ */ jsx("span", { style: { color: _.textMuted, fontSize: "14px", flexShrink: 0 }, children: "🔍" }),
|
|
8501
8481
|
/* @__PURE__ */ jsx(
|
|
8502
8482
|
"input",
|
|
8503
8483
|
{
|
|
8504
|
-
ref:
|
|
8484
|
+
ref: x,
|
|
8505
8485
|
type: "text",
|
|
8506
8486
|
placeholder: "Search emojis…",
|
|
8507
8487
|
value: g,
|
|
8508
|
-
onChange: (
|
|
8488
|
+
onChange: (P) => d(P.target.value),
|
|
8509
8489
|
style: {
|
|
8510
8490
|
flex: 1,
|
|
8511
8491
|
background: "none",
|
|
@@ -8513,7 +8493,7 @@ const AnimateEmojiModal = ({
|
|
|
8513
8493
|
outline: "none",
|
|
8514
8494
|
padding: "9px 0",
|
|
8515
8495
|
fontSize: "13px",
|
|
8516
|
-
color:
|
|
8496
|
+
color: _.text,
|
|
8517
8497
|
fontFamily: "inherit"
|
|
8518
8498
|
}
|
|
8519
8499
|
}
|
|
@@ -8521,12 +8501,12 @@ const AnimateEmojiModal = ({
|
|
|
8521
8501
|
g && /* @__PURE__ */ jsx(
|
|
8522
8502
|
"button",
|
|
8523
8503
|
{
|
|
8524
|
-
onClick: () =>
|
|
8504
|
+
onClick: () => d(""),
|
|
8525
8505
|
style: {
|
|
8526
8506
|
background: "none",
|
|
8527
8507
|
border: "none",
|
|
8528
8508
|
cursor: "pointer",
|
|
8529
|
-
color:
|
|
8509
|
+
color: _.textMuted,
|
|
8530
8510
|
fontSize: "16px",
|
|
8531
8511
|
padding: 0,
|
|
8532
8512
|
lineHeight: 1
|
|
@@ -8549,17 +8529,17 @@ const AnimateEmojiModal = ({
|
|
|
8549
8529
|
flexShrink: 0,
|
|
8550
8530
|
scrollbarWidth: "none"
|
|
8551
8531
|
},
|
|
8552
|
-
children: EMOJI_CATEGORIES.map((
|
|
8553
|
-
const
|
|
8532
|
+
children: EMOJI_CATEGORIES.map((P) => {
|
|
8533
|
+
const A = P.id === p;
|
|
8554
8534
|
return /* @__PURE__ */ jsxs(
|
|
8555
8535
|
"button",
|
|
8556
8536
|
{
|
|
8557
|
-
onClick: () => b(
|
|
8558
|
-
title:
|
|
8537
|
+
onClick: () => b(P.id),
|
|
8538
|
+
title: P.label,
|
|
8559
8539
|
style: {
|
|
8560
8540
|
flexShrink: 0,
|
|
8561
|
-
background:
|
|
8562
|
-
border: `1px solid ${
|
|
8541
|
+
background: A ? _.activeCategoryBg : "none",
|
|
8542
|
+
border: `1px solid ${A ? _.activeCategoryBorder : "transparent"}`,
|
|
8563
8543
|
borderRadius: "8px",
|
|
8564
8544
|
cursor: "pointer",
|
|
8565
8545
|
padding: "5px 10px",
|
|
@@ -8568,86 +8548,35 @@ const AnimateEmojiModal = ({
|
|
|
8568
8548
|
display: "flex",
|
|
8569
8549
|
alignItems: "center",
|
|
8570
8550
|
gap: "5px",
|
|
8571
|
-
color:
|
|
8551
|
+
color: A ? _.text : _.textMuted
|
|
8572
8552
|
},
|
|
8573
|
-
onMouseEnter: (
|
|
8574
|
-
|
|
8553
|
+
onMouseEnter: (y) => {
|
|
8554
|
+
A || (y.currentTarget.style.background = _.surfaceHover);
|
|
8575
8555
|
},
|
|
8576
|
-
onMouseLeave: (
|
|
8577
|
-
|
|
8556
|
+
onMouseLeave: (y) => {
|
|
8557
|
+
A || (y.currentTarget.style.background = "none");
|
|
8578
8558
|
},
|
|
8579
8559
|
children: [
|
|
8580
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
8581
|
-
|
|
8560
|
+
/* @__PURE__ */ jsx("span", { children: P.icon }),
|
|
8561
|
+
A && /* @__PURE__ */ jsx(
|
|
8582
8562
|
"span",
|
|
8583
8563
|
{
|
|
8584
8564
|
style: {
|
|
8585
8565
|
fontSize: "11px",
|
|
8586
8566
|
fontWeight: 600,
|
|
8587
8567
|
whiteSpace: "nowrap",
|
|
8588
|
-
color:
|
|
8568
|
+
color: _.accent
|
|
8589
8569
|
},
|
|
8590
|
-
children:
|
|
8570
|
+
children: P.label
|
|
8591
8571
|
}
|
|
8592
8572
|
)
|
|
8593
8573
|
]
|
|
8594
8574
|
},
|
|
8595
|
-
|
|
8575
|
+
P.id
|
|
8596
8576
|
);
|
|
8597
8577
|
})
|
|
8598
8578
|
}
|
|
8599
8579
|
),
|
|
8600
|
-
/* @__PURE__ */ jsxs(
|
|
8601
|
-
"div",
|
|
8602
|
-
{
|
|
8603
|
-
style: {
|
|
8604
|
-
display: "flex",
|
|
8605
|
-
alignItems: "center",
|
|
8606
|
-
gap: "8px",
|
|
8607
|
-
padding: "0 16px 10px",
|
|
8608
|
-
flexShrink: 0
|
|
8609
|
-
},
|
|
8610
|
-
children: [
|
|
8611
|
-
/* @__PURE__ */ jsx(
|
|
8612
|
-
"span",
|
|
8613
|
-
{
|
|
8614
|
-
style: { fontSize: "11px", color: S.textMuted, fontWeight: 500, whiteSpace: "nowrap" },
|
|
8615
|
-
children: "Skin tone:"
|
|
8616
|
-
}
|
|
8617
|
-
),
|
|
8618
|
-
/* @__PURE__ */ jsx("div", { style: { display: "flex", gap: "5px", flexWrap: "wrap" }, children: SKIN_TONES.map((d) => {
|
|
8619
|
-
const _ = d.modifier === E;
|
|
8620
|
-
return /* @__PURE__ */ jsx(
|
|
8621
|
-
"button",
|
|
8622
|
-
{
|
|
8623
|
-
onClick: () => c(d.modifier),
|
|
8624
|
-
title: d.label,
|
|
8625
|
-
"aria-label": `${d.label} skin tone`,
|
|
8626
|
-
style: {
|
|
8627
|
-
width: "22px",
|
|
8628
|
-
height: "22px",
|
|
8629
|
-
borderRadius: "50%",
|
|
8630
|
-
background: d.color,
|
|
8631
|
-
border: _ ? `2.5px solid ${S.accent}` : `2px solid ${S.border}`,
|
|
8632
|
-
cursor: "pointer",
|
|
8633
|
-
transition: "transform 0.15s, border-color 0.15s",
|
|
8634
|
-
outline: _ ? `2px solid ${S.accentSoft}` : "none",
|
|
8635
|
-
outlineOffset: "1px",
|
|
8636
|
-
transform: _ ? "scale(1.2)" : "scale(1)"
|
|
8637
|
-
},
|
|
8638
|
-
onMouseEnter: (F) => {
|
|
8639
|
-
F.currentTarget.style.transform = "scale(1.2)";
|
|
8640
|
-
},
|
|
8641
|
-
onMouseLeave: (F) => {
|
|
8642
|
-
F.currentTarget.style.transform = _ ? "scale(1.2)" : "scale(1)";
|
|
8643
|
-
}
|
|
8644
|
-
},
|
|
8645
|
-
d.id
|
|
8646
|
-
);
|
|
8647
|
-
}) })
|
|
8648
|
-
]
|
|
8649
|
-
}
|
|
8650
|
-
),
|
|
8651
8580
|
/* @__PURE__ */ jsx(
|
|
8652
8581
|
"div",
|
|
8653
8582
|
{
|
|
@@ -8661,30 +8590,30 @@ const AnimateEmojiModal = ({
|
|
|
8661
8590
|
gap: "2px",
|
|
8662
8591
|
// Custom scrollbar
|
|
8663
8592
|
scrollbarWidth: "thin",
|
|
8664
|
-
scrollbarColor: `${
|
|
8593
|
+
scrollbarColor: `${_.scrollbar} transparent`
|
|
8665
8594
|
},
|
|
8666
|
-
children:
|
|
8595
|
+
children: T.length === 0 ? /* @__PURE__ */ jsx(
|
|
8667
8596
|
"div",
|
|
8668
8597
|
{
|
|
8669
8598
|
style: {
|
|
8670
8599
|
width: "100%",
|
|
8671
8600
|
textAlign: "center",
|
|
8672
8601
|
padding: "40px 0",
|
|
8673
|
-
color:
|
|
8602
|
+
color: _.textMuted,
|
|
8674
8603
|
fontSize: "13px"
|
|
8675
8604
|
},
|
|
8676
8605
|
children: "No emojis found"
|
|
8677
8606
|
}
|
|
8678
|
-
) :
|
|
8607
|
+
) : T.map((P) => /* @__PURE__ */ jsx(
|
|
8679
8608
|
EmojiCell,
|
|
8680
8609
|
{
|
|
8681
|
-
codepoint:
|
|
8682
|
-
size:
|
|
8610
|
+
codepoint: P,
|
|
8611
|
+
size: v,
|
|
8683
8612
|
loop: n,
|
|
8684
|
-
onSelect:
|
|
8685
|
-
hoverBg:
|
|
8613
|
+
onSelect: M,
|
|
8614
|
+
hoverBg: _.emojiHover
|
|
8686
8615
|
},
|
|
8687
|
-
|
|
8616
|
+
P
|
|
8688
8617
|
))
|
|
8689
8618
|
}
|
|
8690
8619
|
),
|
|
@@ -8693,18 +8622,18 @@ const AnimateEmojiModal = ({
|
|
|
8693
8622
|
{
|
|
8694
8623
|
style: {
|
|
8695
8624
|
padding: "8px 16px",
|
|
8696
|
-
borderTop: `1px solid ${
|
|
8625
|
+
borderTop: `1px solid ${_.border}`,
|
|
8697
8626
|
fontSize: "11px",
|
|
8698
|
-
color:
|
|
8627
|
+
color: _.textMuted,
|
|
8699
8628
|
flexShrink: 0,
|
|
8700
8629
|
display: "flex",
|
|
8701
8630
|
justifyContent: "space-between",
|
|
8702
8631
|
alignItems: "center"
|
|
8703
8632
|
},
|
|
8704
8633
|
children: [
|
|
8705
|
-
/* @__PURE__ */ jsx("span", { children: g ? `${
|
|
8634
|
+
/* @__PURE__ */ jsx("span", { children: g ? `${T.length} result${T.length !== 1 ? "s" : ""}` : C.label }),
|
|
8706
8635
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
8707
|
-
|
|
8636
|
+
T.length,
|
|
8708
8637
|
" emojis"
|
|
8709
8638
|
] })
|
|
8710
8639
|
]
|
|
@@ -8714,7 +8643,7 @@ const AnimateEmojiModal = ({
|
|
|
8714
8643
|
}
|
|
8715
8644
|
)
|
|
8716
8645
|
] });
|
|
8717
|
-
return ReactDOM.createPortal(
|
|
8646
|
+
return ReactDOM.createPortal(V, document.body);
|
|
8718
8647
|
}, EmojiCell = React.memo(
|
|
8719
8648
|
({ codepoint: t, size: e, loop: r, onSelect: i, hoverBg: s }) => {
|
|
8720
8649
|
const [a, n] = useState(!1), f = e + 16;
|
|
@@ -8760,10 +8689,7 @@ export {
|
|
|
8760
8689
|
AnimateEmojiModal,
|
|
8761
8690
|
AnimatedEmoji,
|
|
8762
8691
|
EMOJI_CATEGORIES,
|
|
8763
|
-
SKIN_TONES,
|
|
8764
8692
|
getEmojiAnimationUrl,
|
|
8765
|
-
getSkinTonedCodepoint,
|
|
8766
|
-
hasSkinTones,
|
|
8767
8693
|
isEmojiAnimated,
|
|
8768
8694
|
supportedEmojis
|
|
8769
8695
|
};
|