@zolaha/react-noto-animated-emoji 2.2.0 → 2.2.1
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/AnimateEmojiModal.d.ts +4 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1240 -1231
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -184,25 +184,25 @@ var lottie$1 = { exports: {} };
|
|
|
184
184
|
};
|
|
185
185
|
}();
|
|
186
186
|
function HSVtoRGB(e, t, r) {
|
|
187
|
-
var i, s, a, n, f, o,
|
|
188
|
-
switch (n = Math.floor(e * 6), f = e * 6 - n, o = r * (1 - t),
|
|
187
|
+
var i, s, a, n, f, o, p, v;
|
|
188
|
+
switch (n = Math.floor(e * 6), f = e * 6 - n, o = r * (1 - t), p = r * (1 - f * t), v = r * (1 - (1 - f) * t), n % 6) {
|
|
189
189
|
case 0:
|
|
190
190
|
i = r, s = v, a = o;
|
|
191
191
|
break;
|
|
192
192
|
case 1:
|
|
193
|
-
i =
|
|
193
|
+
i = p, s = r, a = o;
|
|
194
194
|
break;
|
|
195
195
|
case 2:
|
|
196
196
|
i = o, s = r, a = v;
|
|
197
197
|
break;
|
|
198
198
|
case 3:
|
|
199
|
-
i = o, s =
|
|
199
|
+
i = o, s = p, a = r;
|
|
200
200
|
break;
|
|
201
201
|
case 4:
|
|
202
202
|
i = v, s = o, a = r;
|
|
203
203
|
break;
|
|
204
204
|
case 5:
|
|
205
|
-
i = r, s = o, a =
|
|
205
|
+
i = r, s = o, a = p;
|
|
206
206
|
break;
|
|
207
207
|
}
|
|
208
208
|
return [i, s, a];
|
|
@@ -290,20 +290,20 @@ var lottie$1 = { exports: {} };
|
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
292
|
};
|
|
293
|
-
function n(
|
|
293
|
+
function n(c) {
|
|
294
294
|
if (window.Worker && window.Blob && getWebWorker()) {
|
|
295
|
-
var b = new Blob(["var _workerSelf = self; self.onmessage = ",
|
|
295
|
+
var b = new Blob(["var _workerSelf = self; self.onmessage = ", c.toString()], {
|
|
296
296
|
type: "text/javascript"
|
|
297
297
|
}), g = URL.createObjectURL(b);
|
|
298
298
|
return new Worker(g);
|
|
299
299
|
}
|
|
300
|
-
return r =
|
|
300
|
+
return r = c, s;
|
|
301
301
|
}
|
|
302
302
|
function f() {
|
|
303
303
|
i || (i = n(function(b) {
|
|
304
304
|
function g() {
|
|
305
305
|
function E(V, P) {
|
|
306
|
-
var k, y, _ = V.length, w, M,
|
|
306
|
+
var k, y, _ = V.length, w, M, O, L;
|
|
307
307
|
for (y = 0; y < _; y += 1)
|
|
308
308
|
if (k = V[y], "ks" in k && !k.completed) {
|
|
309
309
|
if (k.completed = !0, k.hasMask) {
|
|
@@ -312,20 +312,20 @@ var lottie$1 = { exports: {} };
|
|
|
312
312
|
if (N[w].pt.k.i)
|
|
313
313
|
S(N[w].pt.k);
|
|
314
314
|
else
|
|
315
|
-
for (
|
|
316
|
-
N[w].pt.k[
|
|
315
|
+
for (L = N[w].pt.k.length, O = 0; O < L; O += 1)
|
|
316
|
+
N[w].pt.k[O].s && S(N[w].pt.k[O].s[0]), N[w].pt.k[O].e && S(N[w].pt.k[O].e[0]);
|
|
317
317
|
}
|
|
318
|
-
k.ty === 0 ? (k.layers =
|
|
318
|
+
k.ty === 0 ? (k.layers = l(k.refId, P), E(k.layers, P)) : k.ty === 4 ? m(k.shapes) : k.ty === 5 && D(k);
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function h(V, P) {
|
|
322
322
|
if (V) {
|
|
323
323
|
var k = 0, y = V.length;
|
|
324
324
|
for (k = 0; k < y; k += 1)
|
|
325
|
-
V[k].t === 1 && (V[k].data.layers =
|
|
325
|
+
V[k].t === 1 && (V[k].data.layers = l(V[k].data.refId, P), E(V[k].data.layers, P));
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function u(V, P) {
|
|
329
329
|
for (var k = 0, y = P.length; k < y; ) {
|
|
330
330
|
if (P[k].id === V)
|
|
331
331
|
return P[k];
|
|
@@ -333,8 +333,8 @@ var lottie$1 = { exports: {} };
|
|
|
333
333
|
}
|
|
334
334
|
return null;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
337
|
-
var k =
|
|
336
|
+
function l(V, P) {
|
|
337
|
+
var k = u(V, P);
|
|
338
338
|
return k ? k.layers.__used ? JSON.parse(JSON.stringify(k.layers)) : (k.layers.__used = !0, k.layers) : null;
|
|
339
339
|
}
|
|
340
340
|
function m(V) {
|
|
@@ -471,16 +471,16 @@ var lottie$1 = { exports: {} };
|
|
|
471
471
|
y.assets[_].layers && k(y.assets[_].layers);
|
|
472
472
|
}
|
|
473
473
|
};
|
|
474
|
-
}(),
|
|
474
|
+
}(), B = /* @__PURE__ */ function() {
|
|
475
475
|
var V = [4, 1, 9];
|
|
476
476
|
function P(y) {
|
|
477
|
-
var _, w = y.length, M,
|
|
477
|
+
var _, w = y.length, M, O;
|
|
478
478
|
for (_ = 0; _ < w; _ += 1)
|
|
479
479
|
if (y[_].ty === "gr")
|
|
480
480
|
P(y[_].it);
|
|
481
481
|
else if (y[_].ty === "fl" || y[_].ty === "st")
|
|
482
482
|
if (y[_].c.k && y[_].c.k[0].i)
|
|
483
|
-
for (
|
|
483
|
+
for (O = y[_].c.k.length, M = 0; M < O; M += 1)
|
|
484
484
|
y[_].c.k[M].s && (y[_].c.k[M].s[0] /= 255, y[_].c.k[M].s[1] /= 255, y[_].c.k[M].s[2] /= 255, y[_].c.k[M].s[3] /= 255), y[_].c.k[M].e && (y[_].c.k[M].e[0] /= 255, y[_].c.k[M].e[1] /= 255, y[_].c.k[M].e[2] /= 255, y[_].c.k[M].e[3] /= 255);
|
|
485
485
|
else
|
|
486
486
|
y[_].c.k[0] /= 255, y[_].c.k[1] /= 255, y[_].c.k[2] /= 255, y[_].c.k[3] /= 255;
|
|
@@ -497,30 +497,30 @@ var lottie$1 = { exports: {} };
|
|
|
497
497
|
y.assets[_].layers && k(y.assets[_].layers);
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
|
-
}(),
|
|
500
|
+
}(), R = /* @__PURE__ */ function() {
|
|
501
501
|
var V = [4, 4, 18];
|
|
502
502
|
function P(y) {
|
|
503
|
-
var _, w = y.length, M,
|
|
503
|
+
var _, w = y.length, M, O;
|
|
504
504
|
for (_ = w - 1; _ >= 0; _ -= 1)
|
|
505
505
|
if (y[_].ty === "sh")
|
|
506
506
|
if (y[_].ks.k.i)
|
|
507
507
|
y[_].ks.k.c = y[_].closed;
|
|
508
508
|
else
|
|
509
|
-
for (
|
|
509
|
+
for (O = y[_].ks.k.length, M = 0; M < O; M += 1)
|
|
510
510
|
y[_].ks.k[M].s && (y[_].ks.k[M].s[0].c = y[_].closed), y[_].ks.k[M].e && (y[_].ks.k[M].e[0].c = y[_].closed);
|
|
511
511
|
else y[_].ty === "gr" && P(y[_].it);
|
|
512
512
|
}
|
|
513
513
|
function k(y) {
|
|
514
|
-
var _, w, M = y.length,
|
|
514
|
+
var _, w, M = y.length, O, L, N, j;
|
|
515
515
|
for (w = 0; w < M; w += 1) {
|
|
516
516
|
if (_ = y[w], _.hasMask) {
|
|
517
517
|
var H = _.masksProperties;
|
|
518
|
-
for (
|
|
519
|
-
if (H[
|
|
520
|
-
H[
|
|
518
|
+
for (L = H.length, O = 0; O < L; O += 1)
|
|
519
|
+
if (H[O].pt.k.i)
|
|
520
|
+
H[O].pt.k.c = H[O].cl;
|
|
521
521
|
else
|
|
522
|
-
for (j = H[
|
|
523
|
-
H[
|
|
522
|
+
for (j = H[O].pt.k.length, N = 0; N < j; N += 1)
|
|
523
|
+
H[O].pt.k[N].s && (H[O].pt.k[N].s[0].c = H[O].cl), H[O].pt.k[N].e && (H[O].pt.k[N].e[0].c = H[O].cl);
|
|
524
524
|
}
|
|
525
525
|
_.ty === 4 && P(_.shapes);
|
|
526
526
|
}
|
|
@@ -534,20 +534,20 @@ var lottie$1 = { exports: {} };
|
|
|
534
534
|
};
|
|
535
535
|
}();
|
|
536
536
|
function I(V) {
|
|
537
|
-
V.__complete || (
|
|
537
|
+
V.__complete || (B(V), A(V), T(V), F(V), R(V), E(V.layers, V.assets), h(V.chars, V.assets), V.__complete = !0);
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function D(V) {
|
|
540
540
|
V.t.a.length === 0 && "m" in V.t.p;
|
|
541
541
|
}
|
|
542
542
|
var G = {};
|
|
543
|
-
return G.completeData = I, G.checkColors =
|
|
543
|
+
return G.completeData = I, G.checkColors = B, G.checkChars = T, G.checkPathProperties = F, G.checkShapes = R, G.completeLayers = E, G;
|
|
544
544
|
}
|
|
545
545
|
if (a.dataManager || (a.dataManager = g()), a.assetLoader || (a.assetLoader = /* @__PURE__ */ function() {
|
|
546
|
-
function E(
|
|
547
|
-
var
|
|
548
|
-
return
|
|
546
|
+
function E(u) {
|
|
547
|
+
var l = u.getResponseHeader("content-type");
|
|
548
|
+
return l && u.responseType === "json" && l.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
|
|
550
|
+
function h(u, l, m, S) {
|
|
551
551
|
var C, A = new XMLHttpRequest();
|
|
552
552
|
try {
|
|
553
553
|
A.responseType = "json";
|
|
@@ -565,14 +565,14 @@ var lottie$1 = { exports: {} };
|
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
567
|
try {
|
|
568
|
-
A.open(["G", "E", "T"].join(""),
|
|
568
|
+
A.open(["G", "E", "T"].join(""), u, !0);
|
|
569
569
|
} catch {
|
|
570
|
-
A.open(["G", "E", "T"].join(""),
|
|
570
|
+
A.open(["G", "E", "T"].join(""), l + "/" + u, !0);
|
|
571
571
|
}
|
|
572
572
|
A.send();
|
|
573
573
|
}
|
|
574
574
|
return {
|
|
575
|
-
load:
|
|
575
|
+
load: h
|
|
576
576
|
};
|
|
577
577
|
}()), b.data.type === "loadAnimation")
|
|
578
578
|
a.assetLoader.load(b.data.path, b.data.fullPath, function(E) {
|
|
@@ -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) {
|
|
@@ -606,59 +606,59 @@ var lottie$1 = { exports: {} };
|
|
|
606
606
|
status: "error"
|
|
607
607
|
});
|
|
608
608
|
});
|
|
609
|
-
}), i.onmessage = function(
|
|
610
|
-
var b =
|
|
611
|
-
t[g] = null, b.status === "success" ?
|
|
609
|
+
}), i.onmessage = function(c) {
|
|
610
|
+
var b = c.data, g = b.id, d = t[g];
|
|
611
|
+
t[g] = null, b.status === "success" ? d.onComplete(b.payload) : d.onError && d.onError();
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
-
function o(
|
|
614
|
+
function o(c, b) {
|
|
615
615
|
e += 1;
|
|
616
616
|
var g = "processId_" + e;
|
|
617
617
|
return t[g] = {
|
|
618
|
-
onComplete:
|
|
618
|
+
onComplete: c,
|
|
619
619
|
onError: b
|
|
620
620
|
}, g;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function p(c, b, g) {
|
|
623
623
|
f();
|
|
624
|
-
var
|
|
624
|
+
var d = o(b, g);
|
|
625
625
|
i.postMessage({
|
|
626
626
|
type: "loadAnimation",
|
|
627
|
-
path:
|
|
627
|
+
path: c,
|
|
628
628
|
fullPath: window.location.origin + window.location.pathname,
|
|
629
|
-
id:
|
|
629
|
+
id: d
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
function v(
|
|
632
|
+
function v(c, b, g) {
|
|
633
633
|
f();
|
|
634
|
-
var
|
|
634
|
+
var d = o(b, g);
|
|
635
635
|
i.postMessage({
|
|
636
636
|
type: "loadData",
|
|
637
|
-
path:
|
|
637
|
+
path: c,
|
|
638
638
|
fullPath: window.location.origin + window.location.pathname,
|
|
639
|
-
id:
|
|
639
|
+
id: d
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
|
-
function x(
|
|
642
|
+
function x(c, b, g) {
|
|
643
643
|
f();
|
|
644
|
-
var
|
|
644
|
+
var d = o(b, g);
|
|
645
645
|
i.postMessage({
|
|
646
646
|
type: "complete",
|
|
647
|
-
animation:
|
|
648
|
-
id:
|
|
647
|
+
animation: c,
|
|
648
|
+
id: d
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
651
|
return {
|
|
652
|
-
loadAnimation:
|
|
652
|
+
loadAnimation: p,
|
|
653
653
|
loadData: v,
|
|
654
654
|
completeAnimation: x
|
|
655
655
|
};
|
|
656
656
|
}(), ImagePreloader = function() {
|
|
657
657
|
var e = function() {
|
|
658
|
-
var
|
|
659
|
-
|
|
660
|
-
var
|
|
661
|
-
return
|
|
658
|
+
var h = createTag("canvas");
|
|
659
|
+
h.width = 1, h.height = 1;
|
|
660
|
+
var u = h.getContext("2d");
|
|
661
|
+
return u.fillStyle = "rgba(0,0,0,0)", u.fillRect(0, 0, 1, 1), h;
|
|
662
662
|
}();
|
|
663
663
|
function t() {
|
|
664
664
|
this.loadedAssets += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
|
|
@@ -666,76 +666,76 @@ var lottie$1 = { exports: {} };
|
|
|
666
666
|
function r() {
|
|
667
667
|
this.loadedFootagesCount += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
|
|
668
668
|
}
|
|
669
|
-
function i(
|
|
669
|
+
function i(h, u, l) {
|
|
670
670
|
var m = "";
|
|
671
|
-
if (
|
|
672
|
-
m =
|
|
673
|
-
else if (
|
|
674
|
-
var S =
|
|
675
|
-
S.indexOf("images/") !== -1 && (S = S.split("/")[1]), m =
|
|
671
|
+
if (h.e)
|
|
672
|
+
m = h.p;
|
|
673
|
+
else if (u) {
|
|
674
|
+
var S = h.p;
|
|
675
|
+
S.indexOf("images/") !== -1 && (S = S.split("/")[1]), m = u + S;
|
|
676
676
|
} else
|
|
677
|
-
m =
|
|
677
|
+
m = l, m += h.u ? h.u : "", m += h.p;
|
|
678
678
|
return m;
|
|
679
679
|
}
|
|
680
|
-
function s(
|
|
681
|
-
var
|
|
682
|
-
var m =
|
|
683
|
-
(m.width ||
|
|
680
|
+
function s(h) {
|
|
681
|
+
var u = 0, l = setInterval((function() {
|
|
682
|
+
var m = h.getBBox();
|
|
683
|
+
(m.width || u > 500) && (this._imageLoaded(), clearInterval(l)), u += 1;
|
|
684
684
|
}).bind(this), 50);
|
|
685
685
|
}
|
|
686
|
-
function a(
|
|
687
|
-
var
|
|
688
|
-
isSafari ? this.testImageLoaded(
|
|
686
|
+
function a(h) {
|
|
687
|
+
var u = i(h, this.assetsPath, this.path), l = createNS("image");
|
|
688
|
+
isSafari ? this.testImageLoaded(l) : l.addEventListener("load", this._imageLoaded, !1), l.addEventListener("error", (function() {
|
|
689
689
|
m.img = e, this._imageLoaded();
|
|
690
|
-
}).bind(this), !1),
|
|
690
|
+
}).bind(this), !1), l.setAttributeNS("http://www.w3.org/1999/xlink", "href", u), this._elementHelper.append ? this._elementHelper.append(l) : this._elementHelper.appendChild(l);
|
|
691
691
|
var m = {
|
|
692
|
-
img:
|
|
693
|
-
assetData:
|
|
692
|
+
img: l,
|
|
693
|
+
assetData: h
|
|
694
694
|
};
|
|
695
695
|
return m;
|
|
696
696
|
}
|
|
697
|
-
function n(
|
|
698
|
-
var
|
|
699
|
-
|
|
697
|
+
function n(h) {
|
|
698
|
+
var u = i(h, this.assetsPath, this.path), l = createTag("img");
|
|
699
|
+
l.crossOrigin = "anonymous", l.addEventListener("load", this._imageLoaded, !1), l.addEventListener("error", (function() {
|
|
700
700
|
m.img = e, this._imageLoaded();
|
|
701
|
-
}).bind(this), !1),
|
|
701
|
+
}).bind(this), !1), l.src = u;
|
|
702
702
|
var m = {
|
|
703
|
-
img:
|
|
704
|
-
assetData:
|
|
703
|
+
img: l,
|
|
704
|
+
assetData: h
|
|
705
705
|
};
|
|
706
706
|
return m;
|
|
707
707
|
}
|
|
708
|
-
function f(
|
|
709
|
-
var
|
|
710
|
-
assetData:
|
|
711
|
-
},
|
|
712
|
-
return dataManager.loadData(
|
|
713
|
-
|
|
708
|
+
function f(h) {
|
|
709
|
+
var u = {
|
|
710
|
+
assetData: h
|
|
711
|
+
}, l = i(h, this.assetsPath, this.path);
|
|
712
|
+
return dataManager.loadData(l, (function(m) {
|
|
713
|
+
u.img = m, this._footageLoaded();
|
|
714
714
|
}).bind(this), (function() {
|
|
715
|
-
|
|
716
|
-
}).bind(this)),
|
|
715
|
+
u.img = {}, this._footageLoaded();
|
|
716
|
+
}).bind(this)), u;
|
|
717
717
|
}
|
|
718
|
-
function o(
|
|
719
|
-
this.imagesLoadedCb =
|
|
720
|
-
var
|
|
721
|
-
for (
|
|
722
|
-
|
|
718
|
+
function o(h, u) {
|
|
719
|
+
this.imagesLoadedCb = u;
|
|
720
|
+
var l, m = h.length;
|
|
721
|
+
for (l = 0; l < m; l += 1)
|
|
722
|
+
h[l].layers || (!h[l].t || h[l].t === "seq" ? (this.totalImages += 1, this.images.push(this._createImageData(h[l]))) : h[l].t === 3 && (this.totalFootages += 1, this.images.push(this.createFootageData(h[l]))));
|
|
723
723
|
}
|
|
724
|
-
function
|
|
725
|
-
this.path =
|
|
724
|
+
function p(h) {
|
|
725
|
+
this.path = h || "";
|
|
726
726
|
}
|
|
727
|
-
function v(
|
|
728
|
-
this.assetsPath =
|
|
727
|
+
function v(h) {
|
|
728
|
+
this.assetsPath = h || "";
|
|
729
729
|
}
|
|
730
|
-
function x(
|
|
731
|
-
for (var
|
|
732
|
-
if (this.images[
|
|
733
|
-
return this.images[
|
|
734
|
-
|
|
730
|
+
function x(h) {
|
|
731
|
+
for (var u = 0, l = this.images.length; u < l; ) {
|
|
732
|
+
if (this.images[u].assetData === h)
|
|
733
|
+
return this.images[u].img;
|
|
734
|
+
u += 1;
|
|
735
735
|
}
|
|
736
736
|
return null;
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function c() {
|
|
739
739
|
this.imagesLoadedCb = null, this.images.length = 0;
|
|
740
740
|
}
|
|
741
741
|
function b() {
|
|
@@ -744,8 +744,8 @@ var lottie$1 = { exports: {} };
|
|
|
744
744
|
function g() {
|
|
745
745
|
return this.totalFootages === this.loadedFootagesCount;
|
|
746
746
|
}
|
|
747
|
-
function
|
|
748
|
-
|
|
747
|
+
function d(h, u) {
|
|
748
|
+
h === "svg" ? (this._elementHelper = u, this._createImageData = this.createImageData.bind(this)) : this._createImageData = this.createImgData.bind(this);
|
|
749
749
|
}
|
|
750
750
|
function E() {
|
|
751
751
|
this._imageLoaded = t.bind(this), this._footageLoaded = r.bind(this), this.testImageLoaded = s.bind(this), this.createFootageData = f.bind(this), this.assetsPath = "", this.path = "", this.totalImages = 0, this.totalFootages = 0, this.loadedAssets = 0, this.loadedFootagesCount = 0, this.imagesLoadedCb = null, this.images = [];
|
|
@@ -753,16 +753,16 @@ var lottie$1 = { exports: {} };
|
|
|
753
753
|
return E.prototype = {
|
|
754
754
|
loadAssets: o,
|
|
755
755
|
setAssetsPath: v,
|
|
756
|
-
setPath:
|
|
756
|
+
setPath: p,
|
|
757
757
|
loadedImages: b,
|
|
758
758
|
loadedFootages: g,
|
|
759
|
-
destroy:
|
|
759
|
+
destroy: c,
|
|
760
760
|
getAsset: x,
|
|
761
761
|
createImgData: n,
|
|
762
762
|
createImageData: a,
|
|
763
763
|
imageLoaded: t,
|
|
764
764
|
footageLoaded: r,
|
|
765
|
-
setCacheType:
|
|
765
|
+
setCacheType: d
|
|
766
766
|
}, E;
|
|
767
767
|
}();
|
|
768
768
|
function BaseEvent() {
|
|
@@ -1102,21 +1102,21 @@ var lottie$1 = { exports: {} };
|
|
|
1102
1102
|
y += 1;
|
|
1103
1103
|
}
|
|
1104
1104
|
var _ = new AnimationItem();
|
|
1105
|
-
return
|
|
1105
|
+
return c(_, P), _.setData(P, k), _;
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function p() {
|
|
1108
1108
|
var P, k = t.length, y = [];
|
|
1109
1109
|
for (P = 0; P < k; P += 1)
|
|
1110
1110
|
y.push(t[P].animation);
|
|
1111
1111
|
return y;
|
|
1112
1112
|
}
|
|
1113
1113
|
function v() {
|
|
1114
|
-
s += 1,
|
|
1114
|
+
s += 1, B();
|
|
1115
1115
|
}
|
|
1116
1116
|
function x() {
|
|
1117
1117
|
s -= 1;
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function c(P, k) {
|
|
1120
1120
|
P.addEventListener("destroy", f), P.addEventListener("_active", v), P.addEventListener("_idle", x), t.push({
|
|
1121
1121
|
elem: k,
|
|
1122
1122
|
animation: P
|
|
@@ -1124,14 +1124,14 @@ var lottie$1 = { exports: {} };
|
|
|
1124
1124
|
}
|
|
1125
1125
|
function b(P) {
|
|
1126
1126
|
var k = new AnimationItem();
|
|
1127
|
-
return
|
|
1127
|
+
return c(k, null), k.setParams(P), k;
|
|
1128
1128
|
}
|
|
1129
1129
|
function g(P, k) {
|
|
1130
1130
|
var y;
|
|
1131
1131
|
for (y = 0; y < i; y += 1)
|
|
1132
1132
|
t[y].animation.setSpeed(P, k);
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function d(P, k) {
|
|
1135
1135
|
var y;
|
|
1136
1136
|
for (y = 0; y < i; y += 1)
|
|
1137
1137
|
t[y].animation.setDirection(P, k);
|
|
@@ -1141,16 +1141,16 @@ var lottie$1 = { exports: {} };
|
|
|
1141
1141
|
for (k = 0; k < i; k += 1)
|
|
1142
1142
|
t[k].animation.play(P);
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function h(P) {
|
|
1145
1145
|
var k = P - r, y;
|
|
1146
1146
|
for (y = 0; y < i; y += 1)
|
|
1147
1147
|
t[y].animation.advanceTime(k);
|
|
1148
|
-
r = P, s && !n ? window.requestAnimationFrame(
|
|
1148
|
+
r = P, s && !n ? window.requestAnimationFrame(h) : a = !0;
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1151
|
-
r = P, window.requestAnimationFrame(
|
|
1150
|
+
function u(P) {
|
|
1151
|
+
r = P, window.requestAnimationFrame(h);
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function l(P) {
|
|
1154
1154
|
var k;
|
|
1155
1155
|
for (k = 0; k < i; k += 1)
|
|
1156
1156
|
t[k].animation.pause(P);
|
|
@@ -1181,10 +1181,10 @@ var lottie$1 = { exports: {} };
|
|
|
1181
1181
|
y && _[w].setAttribute("data-bm-type", y), o(_[w], P);
|
|
1182
1182
|
if (k && M === 0) {
|
|
1183
1183
|
y || (y = "svg");
|
|
1184
|
-
var
|
|
1185
|
-
|
|
1186
|
-
var
|
|
1187
|
-
|
|
1184
|
+
var O = document.getElementsByTagName("body")[0];
|
|
1185
|
+
O.innerText = "";
|
|
1186
|
+
var L = createTag("div");
|
|
1187
|
+
L.style.width = "100%", L.style.height = "100%", L.setAttribute("data-bm-type", y), O.appendChild(L), o(L, P);
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
1190
|
function F() {
|
|
@@ -1192,16 +1192,16 @@ var lottie$1 = { exports: {} };
|
|
|
1192
1192
|
for (P = 0; P < i; P += 1)
|
|
1193
1193
|
t[P].animation.resize();
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1196
|
-
!n && s && a && (window.requestAnimationFrame(
|
|
1195
|
+
function B() {
|
|
1196
|
+
!n && s && a && (window.requestAnimationFrame(u), a = !1);
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function R() {
|
|
1199
1199
|
n = !0;
|
|
1200
1200
|
}
|
|
1201
1201
|
function I() {
|
|
1202
|
-
n = !1,
|
|
1202
|
+
n = !1, B();
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function D(P, k) {
|
|
1205
1205
|
var y;
|
|
1206
1206
|
for (y = 0; y < i; y += 1)
|
|
1207
1207
|
t[y].animation.setVolume(P, k);
|
|
@@ -1216,76 +1216,76 @@ var lottie$1 = { exports: {} };
|
|
|
1216
1216
|
for (k = 0; k < i; k += 1)
|
|
1217
1217
|
t[k].animation.unmute(P);
|
|
1218
1218
|
}
|
|
1219
|
-
return e.registerAnimation = o, e.loadAnimation = b, e.setSpeed = g, e.setDirection =
|
|
1219
|
+
return e.registerAnimation = o, e.loadAnimation = b, e.setSpeed = g, e.setDirection = d, e.play = E, e.pause = l, e.stop = S, e.togglePause = C, e.searchAnimations = T, e.resize = F, e.goToAndStop = m, e.destroy = A, e.freeze = R, e.unfreeze = I, e.setVolume = D, e.mute = G, e.unmute = V, e.getRegisteredAnimations = p, e;
|
|
1220
1220
|
}(), BezierFactory = function() {
|
|
1221
1221
|
var e = {};
|
|
1222
1222
|
e.getBezierEasing = r;
|
|
1223
1223
|
var t = {};
|
|
1224
|
-
function r(
|
|
1225
|
-
var A = C || ("bez_" +
|
|
1224
|
+
function r(u, l, m, S, C) {
|
|
1225
|
+
var A = C || ("bez_" + u + "_" + l + "_" + m + "_" + S).replace(/\./g, "p");
|
|
1226
1226
|
if (t[A])
|
|
1227
1227
|
return t[A];
|
|
1228
|
-
var T = new
|
|
1228
|
+
var T = new h([u, l, m, S]);
|
|
1229
1229
|
return t[A] = T, T;
|
|
1230
1230
|
}
|
|
1231
|
-
var i = 4, s = 1e-3, a = 1e-7, n = 10, f = 11, o = 1 / (f - 1),
|
|
1232
|
-
function v(
|
|
1233
|
-
return 1 - 3 *
|
|
1231
|
+
var i = 4, s = 1e-3, a = 1e-7, n = 10, f = 11, o = 1 / (f - 1), p = typeof Float32Array == "function";
|
|
1232
|
+
function v(u, l) {
|
|
1233
|
+
return 1 - 3 * l + 3 * u;
|
|
1234
1234
|
}
|
|
1235
|
-
function x(
|
|
1236
|
-
return 3 *
|
|
1235
|
+
function x(u, l) {
|
|
1236
|
+
return 3 * l - 6 * u;
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return 3 *
|
|
1238
|
+
function c(u) {
|
|
1239
|
+
return 3 * u;
|
|
1240
1240
|
}
|
|
1241
|
-
function b(
|
|
1242
|
-
return ((v(
|
|
1241
|
+
function b(u, l, m) {
|
|
1242
|
+
return ((v(l, m) * u + x(l, m)) * u + c(l)) * u;
|
|
1243
1243
|
}
|
|
1244
|
-
function g(
|
|
1245
|
-
return 3 * v(
|
|
1244
|
+
function g(u, l, m) {
|
|
1245
|
+
return 3 * v(l, m) * u * u + 2 * x(l, m) * u + c(l);
|
|
1246
1246
|
}
|
|
1247
|
-
function u
|
|
1247
|
+
function d(u, l, m, S, C) {
|
|
1248
1248
|
var A, T, F = 0;
|
|
1249
1249
|
do
|
|
1250
|
-
T =
|
|
1250
|
+
T = l + (m - l) / 2, A = b(T, S, C) - u, A > 0 ? m = T : l = T;
|
|
1251
1251
|
while (Math.abs(A) > a && ++F < n);
|
|
1252
1252
|
return T;
|
|
1253
1253
|
}
|
|
1254
|
-
function E(
|
|
1254
|
+
function E(u, l, m, S) {
|
|
1255
1255
|
for (var C = 0; C < i; ++C) {
|
|
1256
|
-
var A = g(
|
|
1257
|
-
if (A === 0) return
|
|
1258
|
-
var T = b(
|
|
1259
|
-
|
|
1256
|
+
var A = g(l, m, S);
|
|
1257
|
+
if (A === 0) return l;
|
|
1258
|
+
var T = b(l, m, S) - u;
|
|
1259
|
+
l -= T / A;
|
|
1260
1260
|
}
|
|
1261
|
-
return
|
|
1261
|
+
return l;
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1264
|
-
this._p =
|
|
1263
|
+
function h(u) {
|
|
1264
|
+
this._p = u, this._mSampleValues = p ? new Float32Array(f) : new Array(f), this._precomputed = !1, this.get = this.get.bind(this);
|
|
1265
1265
|
}
|
|
1266
|
-
return
|
|
1267
|
-
get: function(
|
|
1266
|
+
return h.prototype = {
|
|
1267
|
+
get: function(l) {
|
|
1268
1268
|
var m = this._p[0], S = this._p[1], C = this._p[2], A = this._p[3];
|
|
1269
|
-
return this._precomputed || this._precompute(), m === S && C === A ?
|
|
1269
|
+
return this._precomputed || this._precompute(), m === S && C === A ? l : l === 0 ? 0 : l === 1 ? 1 : b(this._getTForX(l), S, A);
|
|
1270
1270
|
},
|
|
1271
1271
|
// Private part
|
|
1272
1272
|
_precompute: function() {
|
|
1273
|
-
var
|
|
1274
|
-
this._precomputed = !0, (
|
|
1273
|
+
var l = this._p[0], m = this._p[1], S = this._p[2], C = this._p[3];
|
|
1274
|
+
this._precomputed = !0, (l !== m || S !== C) && this._calcSampleValues();
|
|
1275
1275
|
},
|
|
1276
1276
|
_calcSampleValues: function() {
|
|
1277
|
-
for (var
|
|
1278
|
-
this._mSampleValues[S] = b(S * o,
|
|
1277
|
+
for (var l = this._p[0], m = this._p[2], S = 0; S < f; ++S)
|
|
1278
|
+
this._mSampleValues[S] = b(S * o, l, 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
|
-
_getTForX: function(
|
|
1284
|
-
for (var m = this._p[0], S = this._p[2], C = this._mSampleValues, A = 0, T = 1, F = f - 1; T !== F && C[T] <=
|
|
1283
|
+
_getTForX: function(l) {
|
|
1284
|
+
for (var m = this._p[0], S = this._p[2], C = this._mSampleValues, A = 0, T = 1, F = f - 1; T !== F && C[T] <= l; ++T)
|
|
1285
1285
|
A += o;
|
|
1286
1286
|
--T;
|
|
1287
|
-
var
|
|
1288
|
-
return I >= s ? E(
|
|
1287
|
+
var B = (l - C[T]) / (C[T + 1] - C[T]), R = A + B * o, I = g(R, m, S);
|
|
1288
|
+
return I >= s ? E(l, R, m, S) : I === 0 ? R : d(l, A, A + o, m, S);
|
|
1289
1289
|
}
|
|
1290
1290
|
}, e;
|
|
1291
1291
|
}(), pooling = /* @__PURE__ */ function() {
|
|
@@ -1302,11 +1302,11 @@ var lottie$1 = { exports: {} };
|
|
|
1302
1302
|
release: o
|
|
1303
1303
|
};
|
|
1304
1304
|
function f() {
|
|
1305
|
-
var
|
|
1306
|
-
return i ? (i -= 1,
|
|
1305
|
+
var p;
|
|
1306
|
+
return i ? (i -= 1, p = a[i]) : p = t(), p;
|
|
1307
1307
|
}
|
|
1308
|
-
function o(
|
|
1309
|
-
i === s && (a = pooling.double(a), s *= 2), r && r(
|
|
1308
|
+
function o(p) {
|
|
1309
|
+
i === s && (a = pooling.double(a), s *= 2), r && r(p), a[i] = p, i += 1;
|
|
1310
1310
|
}
|
|
1311
1311
|
return n;
|
|
1312
1312
|
};
|
|
@@ -1336,87 +1336,87 @@ var lottie$1 = { exports: {} };
|
|
|
1336
1336
|
}();
|
|
1337
1337
|
function bezFunction() {
|
|
1338
1338
|
var e = Math;
|
|
1339
|
-
function t(
|
|
1340
|
-
var
|
|
1341
|
-
return
|
|
1342
|
-
}
|
|
1343
|
-
function r(
|
|
1344
|
-
if (g === 0 &&
|
|
1345
|
-
return t(
|
|
1346
|
-
var S = e.sqrt(e.pow(
|
|
1339
|
+
function t(c, b, g, d, E, h) {
|
|
1340
|
+
var u = c * d + b * E + g * h - E * d - h * c - g * b;
|
|
1341
|
+
return u > -1e-3 && u < 1e-3;
|
|
1342
|
+
}
|
|
1343
|
+
function r(c, b, g, d, E, h, u, l, m) {
|
|
1344
|
+
if (g === 0 && h === 0 && m === 0)
|
|
1345
|
+
return t(c, b, d, E, u, l);
|
|
1346
|
+
var S = e.sqrt(e.pow(d - c, 2) + e.pow(E - b, 2) + e.pow(h - g, 2)), C = e.sqrt(e.pow(u - c, 2) + e.pow(l - b, 2) + e.pow(m - g, 2)), A = e.sqrt(e.pow(u - d, 2) + e.pow(l - E, 2) + e.pow(m - h, 2)), T;
|
|
1347
1347
|
return S > C ? S > A ? T = S - C - A : T = A - C - S : A > C ? T = A - C - S : T = C - S - A, T > -1e-4 && T < 1e-4;
|
|
1348
1348
|
}
|
|
1349
1349
|
var i = /* @__PURE__ */ function() {
|
|
1350
|
-
return function(
|
|
1351
|
-
var E = getDefaultCurveSegments(),
|
|
1352
|
-
for (
|
|
1353
|
-
for (S =
|
|
1354
|
-
m = bmPow(1 - S, 3) *
|
|
1355
|
-
A && (A = bmSqrt(A), C += A),
|
|
1350
|
+
return function(c, b, g, d) {
|
|
1351
|
+
var E = getDefaultCurveSegments(), h, u, l, m, S, C = 0, A, T = [], F = [], B = bezierLengthPool.newElement();
|
|
1352
|
+
for (l = g.length, h = 0; h < E; h += 1) {
|
|
1353
|
+
for (S = h / (E - 1), A = 0, u = 0; u < l; u += 1)
|
|
1354
|
+
m = bmPow(1 - S, 3) * c[u] + 3 * bmPow(1 - S, 2) * S * g[u] + 3 * (1 - S) * bmPow(S, 2) * d[u] + bmPow(S, 3) * b[u], T[u] = m, F[u] !== null && (A += bmPow(T[u] - F[u], 2)), F[u] = T[u];
|
|
1355
|
+
A && (A = bmSqrt(A), C += A), B.percents[h] = S, B.lengths[h] = C;
|
|
1356
1356
|
}
|
|
1357
|
-
return
|
|
1357
|
+
return B.addedLength = C, B;
|
|
1358
1358
|
};
|
|
1359
1359
|
}();
|
|
1360
|
-
function s(
|
|
1361
|
-
var b = segmentsLengthPool.newElement(), g =
|
|
1362
|
-
for (
|
|
1363
|
-
m[
|
|
1364
|
-
return g &&
|
|
1360
|
+
function s(c) {
|
|
1361
|
+
var b = segmentsLengthPool.newElement(), g = c.c, d = c.v, E = c.o, h = c.i, u, l = c._length, m = b.lengths, S = 0;
|
|
1362
|
+
for (u = 0; u < l - 1; u += 1)
|
|
1363
|
+
m[u] = i(d[u], d[u + 1], E[u], h[u + 1]), S += m[u].addedLength;
|
|
1364
|
+
return g && l && (m[u] = i(d[u], d[0], E[u], h[0]), S += m[u].addedLength), b.totalLength = S, b;
|
|
1365
1365
|
}
|
|
1366
|
-
function a(
|
|
1367
|
-
this.segmentLength = 0, this.points = new Array(
|
|
1366
|
+
function a(c) {
|
|
1367
|
+
this.segmentLength = 0, this.points = new Array(c);
|
|
1368
1368
|
}
|
|
1369
|
-
function n(
|
|
1370
|
-
this.partialLength =
|
|
1369
|
+
function n(c, b) {
|
|
1370
|
+
this.partialLength = c, this.point = b;
|
|
1371
1371
|
}
|
|
1372
1372
|
var f = /* @__PURE__ */ function() {
|
|
1373
|
-
var
|
|
1374
|
-
return function(b, g,
|
|
1375
|
-
var
|
|
1376
|
-
if (!
|
|
1377
|
-
var
|
|
1378
|
-
b.length === 2 && (b[0] !== g[0] || b[1] !== g[1]) && t(b[0], b[1], g[0], g[1], b[0] +
|
|
1379
|
-
var I = new a(
|
|
1380
|
-
for (S =
|
|
1381
|
-
for (
|
|
1382
|
-
C = bmPow(1 - A, 3) * b[m] + 3 * bmPow(1 - A, 2) * A * (b[m] +
|
|
1383
|
-
F = bmSqrt(F), T += F, I.points[
|
|
1373
|
+
var c = {};
|
|
1374
|
+
return function(b, g, d, E) {
|
|
1375
|
+
var h = (b[0] + "_" + b[1] + "_" + g[0] + "_" + g[1] + "_" + d[0] + "_" + d[1] + "_" + E[0] + "_" + E[1]).replace(/\./g, "p");
|
|
1376
|
+
if (!c[h]) {
|
|
1377
|
+
var u = getDefaultCurveSegments(), l, m, S, C, A, T = 0, F, B, R = null;
|
|
1378
|
+
b.length === 2 && (b[0] !== g[0] || b[1] !== g[1]) && t(b[0], b[1], g[0], g[1], b[0] + d[0], b[1] + d[1]) && t(b[0], b[1], g[0], g[1], g[0] + E[0], g[1] + E[1]) && (u = 2);
|
|
1379
|
+
var I = new a(u);
|
|
1380
|
+
for (S = d.length, l = 0; l < u; l += 1) {
|
|
1381
|
+
for (B = createSizedArray(S), A = l / (u - 1), F = 0, m = 0; m < S; m += 1)
|
|
1382
|
+
C = bmPow(1 - A, 3) * b[m] + 3 * bmPow(1 - A, 2) * A * (b[m] + d[m]) + 3 * (1 - A) * bmPow(A, 2) * (g[m] + E[m]) + bmPow(A, 3) * g[m], B[m] = C, R !== null && (F += bmPow(B[m] - R[m], 2));
|
|
1383
|
+
F = bmSqrt(F), T += F, I.points[l] = new n(F, B), R = B;
|
|
1384
1384
|
}
|
|
1385
|
-
I.segmentLength = T,
|
|
1385
|
+
I.segmentLength = T, c[h] = I;
|
|
1386
1386
|
}
|
|
1387
|
-
return
|
|
1387
|
+
return c[h];
|
|
1388
1388
|
};
|
|
1389
1389
|
}();
|
|
1390
|
-
function o(
|
|
1391
|
-
var g = b.percents,
|
|
1392
|
-
if (
|
|
1393
|
-
return g[
|
|
1394
|
-
for (var m =
|
|
1395
|
-
if (
|
|
1396
|
-
if (
|
|
1397
|
-
return g[
|
|
1390
|
+
function o(c, b) {
|
|
1391
|
+
var g = b.percents, d = b.lengths, E = g.length, h = bmFloor((E - 1) * c), u = c * b.addedLength, l = 0;
|
|
1392
|
+
if (h === E - 1 || h === 0 || u === d[h])
|
|
1393
|
+
return g[h];
|
|
1394
|
+
for (var m = d[h] > u ? -1 : 1, S = !0; S; )
|
|
1395
|
+
if (d[h] <= u && d[h + 1] > u ? (l = (u - d[h]) / (d[h + 1] - d[h]), S = !1) : h += m, h < 0 || h >= E - 1) {
|
|
1396
|
+
if (h === E - 1)
|
|
1397
|
+
return g[h];
|
|
1398
1398
|
S = !1;
|
|
1399
1399
|
}
|
|
1400
|
-
return g[
|
|
1400
|
+
return g[h] + (g[h + 1] - g[h]) * l;
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1403
|
-
var
|
|
1402
|
+
function p(c, b, g, d, E, h) {
|
|
1403
|
+
var u = o(E, h), l = 1 - u, m = e.round((l * l * l * c[0] + (u * l * l + l * u * l + l * l * u) * g[0] + (u * u * l + l * u * u + u * l * u) * d[0] + u * u * u * b[0]) * 1e3) / 1e3, S = e.round((l * l * l * c[1] + (u * l * l + l * u * l + l * l * u) * g[1] + (u * u * l + l * u * u + u * l * u) * d[1] + u * u * u * b[1]) * 1e3) / 1e3;
|
|
1404
1404
|
return [m, S];
|
|
1405
1405
|
}
|
|
1406
1406
|
var v = createTypedArray("float32", 8);
|
|
1407
|
-
function x(
|
|
1407
|
+
function x(c, b, g, d, E, h, u) {
|
|
1408
1408
|
E < 0 ? E = 0 : E > 1 && (E = 1);
|
|
1409
|
-
var
|
|
1410
|
-
|
|
1411
|
-
var m = o(
|
|
1409
|
+
var l = o(E, u);
|
|
1410
|
+
h = h > 1 ? 1 : h;
|
|
1411
|
+
var m = o(h, u), S, C = c.length, A = 1 - l, T = 1 - m, F = A * A * A, B = l * A * A * 3, R = l * l * A * 3, I = l * l * l, D = A * A * T, G = l * A * T + A * l * T + A * A * m, V = l * l * T + A * l * m + l * A * m, P = l * l * m, k = A * T * T, y = l * T * T + A * m * T + A * T * m, _ = l * m * T + A * m * m + l * T * m, w = l * m * m, M = T * T * T, O = m * T * T + T * m * T + T * T * m, L = m * m * T + T * m * m + m * T * m, N = m * m * m;
|
|
1412
1412
|
for (S = 0; S < C; S += 1)
|
|
1413
|
-
v[S * 4] = e.round((F *
|
|
1413
|
+
v[S * 4] = e.round((F * c[S] + B * g[S] + R * d[S] + I * b[S]) * 1e3) / 1e3, v[S * 4 + 1] = e.round((D * c[S] + G * g[S] + V * d[S] + P * b[S]) * 1e3) / 1e3, v[S * 4 + 2] = e.round((k * c[S] + y * g[S] + _ * d[S] + w * b[S]) * 1e3) / 1e3, v[S * 4 + 3] = e.round((M * c[S] + O * g[S] + L * d[S] + N * b[S]) * 1e3) / 1e3;
|
|
1414
1414
|
return v;
|
|
1415
1415
|
}
|
|
1416
1416
|
return {
|
|
1417
1417
|
getSegmentsLength: s,
|
|
1418
1418
|
getNewSegment: x,
|
|
1419
|
-
getPointInSegment:
|
|
1419
|
+
getPointInSegment: p,
|
|
1420
1420
|
buildBezierData: f,
|
|
1421
1421
|
pointOnLine2D: t,
|
|
1422
1422
|
pointOnLine3D: r
|
|
@@ -1426,71 +1426,71 @@ var lottie$1 = { exports: {} };
|
|
|
1426
1426
|
function interpolateValue(e, t) {
|
|
1427
1427
|
var r = this.offsetTime, i;
|
|
1428
1428
|
this.propType === "multidimensional" && (i = createTypedArray("float32", this.pv.length));
|
|
1429
|
-
for (var s = t.lastIndex, a = s, n = this.keyframes.length - 1, f = !0, o,
|
|
1430
|
-
if (o = this.keyframes[a],
|
|
1431
|
-
o.h && (o =
|
|
1429
|
+
for (var s = t.lastIndex, a = s, n = this.keyframes.length - 1, f = !0, o, p, v; f; ) {
|
|
1430
|
+
if (o = this.keyframes[a], p = this.keyframes[a + 1], a === n - 1 && e >= p.t - r) {
|
|
1431
|
+
o.h && (o = p), s = 0;
|
|
1432
1432
|
break;
|
|
1433
1433
|
}
|
|
1434
|
-
if (
|
|
1434
|
+
if (p.t - r > e) {
|
|
1435
1435
|
s = a;
|
|
1436
1436
|
break;
|
|
1437
1437
|
}
|
|
1438
1438
|
a < n - 1 ? a += 1 : (s = 0, f = !1);
|
|
1439
1439
|
}
|
|
1440
1440
|
v = this.keyframesMetadata[a] || {};
|
|
1441
|
-
var x,
|
|
1441
|
+
var x, c, b, g, d, E, h = p.t - r, u = o.t - r, l;
|
|
1442
1442
|
if (o.to) {
|
|
1443
|
-
v.bezierData || (v.bezierData = bez.buildBezierData(o.s,
|
|
1443
|
+
v.bezierData || (v.bezierData = bez.buildBezierData(o.s, p.s || o.e, o.to, o.ti));
|
|
1444
1444
|
var m = v.bezierData;
|
|
1445
|
-
if (e >=
|
|
1446
|
-
var S = e >=
|
|
1447
|
-
for (
|
|
1445
|
+
if (e >= h || e < u) {
|
|
1446
|
+
var S = e >= h ? m.points.length - 1 : 0;
|
|
1447
|
+
for (c = m.points[S].point.length, x = 0; x < c; x += 1)
|
|
1448
1448
|
i[x] = m.points[S].point[x];
|
|
1449
1449
|
} else {
|
|
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((e -
|
|
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((e - u) / (h - u));
|
|
1451
1451
|
var C = m.segmentLength * b, A, T = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastAddedLength : 0;
|
|
1452
|
-
for (
|
|
1453
|
-
if (T += m.points[
|
|
1454
|
-
for (
|
|
1455
|
-
i[x] = m.points[
|
|
1452
|
+
for (d = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastPoint : 0, f = !0, g = m.points.length; f; ) {
|
|
1453
|
+
if (T += m.points[d].partialLength, C === 0 || b === 0 || d === m.points.length - 1) {
|
|
1454
|
+
for (c = m.points[d].point.length, x = 0; x < c; x += 1)
|
|
1455
|
+
i[x] = m.points[d].point[x];
|
|
1456
1456
|
break;
|
|
1457
|
-
} else if (C >= T && C < T + m.points[
|
|
1458
|
-
for (A = (C - T) / m.points[
|
|
1459
|
-
i[x] = m.points[
|
|
1457
|
+
} else if (C >= T && C < T + m.points[d + 1].partialLength) {
|
|
1458
|
+
for (A = (C - T) / m.points[d + 1].partialLength, c = m.points[d].point.length, x = 0; x < c; x += 1)
|
|
1459
|
+
i[x] = m.points[d].point[x] + (m.points[d + 1].point[x] - m.points[d].point[x]) * A;
|
|
1460
1460
|
break;
|
|
1461
1461
|
}
|
|
1462
|
-
|
|
1462
|
+
d < g - 1 ? d += 1 : f = !1;
|
|
1463
1463
|
}
|
|
1464
|
-
t._lastPoint =
|
|
1464
|
+
t._lastPoint = d, t._lastAddedLength = T - m.points[d].partialLength, t._lastKeyframeIndex = a;
|
|
1465
1465
|
}
|
|
1466
1466
|
} else {
|
|
1467
|
-
var F,
|
|
1468
|
-
if (n = o.s.length,
|
|
1469
|
-
if (e >=
|
|
1470
|
-
i[0] =
|
|
1471
|
-
else if (e <=
|
|
1467
|
+
var F, B, R, I, D;
|
|
1468
|
+
if (n = o.s.length, l = p.s || o.e, this.sh && o.h !== 1)
|
|
1469
|
+
if (e >= h)
|
|
1470
|
+
i[0] = l[0], i[1] = l[1], i[2] = l[2];
|
|
1471
|
+
else if (e <= u)
|
|
1472
1472
|
i[0] = o.s[0], i[1] = o.s[1], i[2] = o.s[2];
|
|
1473
1473
|
else {
|
|
1474
|
-
var G = createQuaternion(o.s), V = createQuaternion(
|
|
1474
|
+
var G = createQuaternion(o.s), V = createQuaternion(l), P = (e - u) / (h - u);
|
|
1475
1475
|
quaternionToEuler(i, slerp(G, V, P));
|
|
1476
1476
|
}
|
|
1477
1477
|
else
|
|
1478
1478
|
for (a = 0; a < n; a += 1)
|
|
1479
|
-
o.h !== 1 && (e >=
|
|
1479
|
+
o.h !== 1 && (e >= h ? b = 1 : e < u ? b = 0 : (o.o.x.constructor === Array ? (v.__fnct || (v.__fnct = []), v.__fnct[a] ? E = v.__fnct[a] : (F = o.o.x[a] === void 0 ? o.o.x[0] : o.o.x[a], B = o.o.y[a] === void 0 ? o.o.y[0] : o.o.y[a], R = 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(F, B, R, I).get, v.__fnct[a] = E)) : v.__fnct ? E = v.__fnct : (F = o.o.x, B = o.o.y, R = o.i.x, I = o.i.y, E = BezierFactory.getBezierEasing(F, B, R, I).get, o.keyframeMetadata = E), b = E((e - u) / (h - u)))), l = p.s || o.e, D = o.h === 1 ? o.s[a] : o.s[a] + (l[a] - o.s[a]) * b, this.propType === "multidimensional" ? i[a] = D : i = D;
|
|
1480
1480
|
}
|
|
1481
1481
|
return t.lastIndex = s, i;
|
|
1482
1482
|
}
|
|
1483
1483
|
function slerp(e, t, r) {
|
|
1484
|
-
var i = [], s = e[0], a = e[1], n = e[2], f = e[3], o = t[0],
|
|
1485
|
-
return b = s * o + a *
|
|
1484
|
+
var i = [], s = e[0], a = e[1], n = e[2], f = e[3], o = t[0], p = t[1], v = t[2], x = t[3], c, b, g, d, E;
|
|
1485
|
+
return b = s * o + a * p + n * v + f * x, b < 0 && (b = -b, o = -o, p = -p, v = -v, x = -x), 1 - b > 1e-6 ? (c = Math.acos(b), g = Math.sin(c), d = Math.sin((1 - r) * c) / g, E = Math.sin(r * c) / g) : (d = 1 - r, E = r), i[0] = d * s + E * o, i[1] = d * a + E * p, i[2] = d * n + E * v, i[3] = d * f + E * x, i;
|
|
1486
1486
|
}
|
|
1487
1487
|
function quaternionToEuler(e, t) {
|
|
1488
1488
|
var r = t[0], i = t[1], s = t[2], a = t[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
|
e[0] = n / degToRads, e[1] = f / degToRads, e[2] = o / degToRads;
|
|
1490
1490
|
}
|
|
1491
1491
|
function createQuaternion(e) {
|
|
1492
|
-
var t = e[0] * degToRads, r = e[1] * degToRads, i = e[2] * degToRads, s = Math.cos(t / 2), a = Math.cos(r / 2), n = Math.cos(i / 2), f = Math.sin(t / 2), o = Math.sin(r / 2),
|
|
1493
|
-
return [x,
|
|
1492
|
+
var t = e[0] * degToRads, r = e[1] * degToRads, i = e[2] * degToRads, s = Math.cos(t / 2), a = Math.cos(r / 2), n = Math.cos(i / 2), f = Math.sin(t / 2), o = Math.sin(r / 2), p = Math.sin(i / 2), v = s * a * n - f * o * p, x = f * o * n + s * a * p, c = f * a * n + s * o * p, b = s * o * n - f * a * p;
|
|
1493
|
+
return [x, c, b, v];
|
|
1494
1494
|
}
|
|
1495
1495
|
function getValueAtCurrentTime() {
|
|
1496
1496
|
var e = this.comp.renderedFrame - this.offsetTime, t = this.keyframes[0].t - this.offsetTime, r = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
|
|
@@ -1545,9 +1545,9 @@ var lottie$1 = { exports: {} };
|
|
|
1545
1545
|
}
|
|
1546
1546
|
function KeyframedMultidimensionalProperty(e, t, r, i) {
|
|
1547
1547
|
this.propType = "multidimensional";
|
|
1548
|
-
var s, a = t.k.length, n, f, o,
|
|
1548
|
+
var s, a = t.k.length, n, f, o, p;
|
|
1549
1549
|
for (s = 0; s < a - 1; s += 1)
|
|
1550
|
-
t.k[s].to && t.k[s].s && t.k[s + 1] && t.k[s + 1].s && (n = t.k[s].s, f = t.k[s + 1].s, o = t.k[s].to,
|
|
1550
|
+
t.k[s].to && t.k[s].s && t.k[s + 1] && t.k[s + 1].s && (n = t.k[s].s, f = t.k[s + 1].s, o = t.k[s].to, p = t.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] + p[0], f[1] + p[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] + p[0], f[1] + p[1], f[2] + p[2])) && (t.k[s].to = null, t.k[s].ti = null), n[0] === f[0] && n[1] === f[1] && o[0] === 0 && o[1] === 0 && p[0] === 0 && p[1] === 0 && (n.length === 2 || n[2] === f[2] && o[2] === 0 && p[2] === 0) && (t.k[s].to = null, t.k[s].ti = null));
|
|
1551
1551
|
this.effectsSequence = [getValueAtCurrentTime.bind(this)], this.data = t, this.keyframes = t.k, this.keyframesMetadata = [], this.offsetTime = e.data.st, this.k = !0, this.kf = !0, this._isFirstFrame = !0, this.mult = r || 1, this.elem = e, this.container = i, this.comp = e.comp, this.getValue = processEffectsSequence, this.setVValue = setVValue, this.interpolateValue = interpolateValue, this.frameId = -1;
|
|
1552
1552
|
var v = t.k[0].s.length;
|
|
1553
1553
|
for (this.v = createTypedArray("float32", v), this.pv = createTypedArray("float32", v), s = 0; s < v; s += 1)
|
|
@@ -1696,50 +1696,50 @@ var lottie$1 = { exports: {} };
|
|
|
1696
1696
|
return e;
|
|
1697
1697
|
}(), ShapePropertyFactory = function() {
|
|
1698
1698
|
var e = -999999;
|
|
1699
|
-
function t(
|
|
1700
|
-
var m =
|
|
1701
|
-
if (
|
|
1699
|
+
function t(h, u, l) {
|
|
1700
|
+
var m = l.lastIndex, S, C, A, T, F, B, R, I, D, G = this.keyframes;
|
|
1701
|
+
if (h < G[0].t - this.offsetTime)
|
|
1702
1702
|
S = G[0].s[0], A = !0, m = 0;
|
|
1703
|
-
else if (
|
|
1703
|
+
else if (h >= G[G.length - 1].t - this.offsetTime)
|
|
1704
1704
|
S = G[G.length - 1].s ? G[G.length - 1].s[0] : G[G.length - 2].e[0], A = !0;
|
|
1705
1705
|
else {
|
|
1706
|
-
for (var V = m, P = G.length - 1, k = !0, y, _, w; k && (y = G[V], _ = G[V + 1], !(_.t - this.offsetTime >
|
|
1706
|
+
for (var V = m, P = G.length - 1, k = !0, y, _, w; k && (y = G[V], _ = G[V + 1], !(_.t - this.offsetTime > h)); )
|
|
1707
1707
|
V < P - 1 ? V += 1 : k = !1;
|
|
1708
1708
|
if (w = this.keyframesMetadata[V] || {}, A = y.h === 1, m = V, !A) {
|
|
1709
|
-
if (
|
|
1709
|
+
if (h >= _.t - this.offsetTime)
|
|
1710
1710
|
I = 1;
|
|
1711
|
-
else if (
|
|
1711
|
+
else if (h < y.t - this.offsetTime)
|
|
1712
1712
|
I = 0;
|
|
1713
1713
|
else {
|
|
1714
1714
|
var M;
|
|
1715
|
-
w.__fnct ? M = w.__fnct : (M = BezierFactory.getBezierEasing(y.o.x, y.o.y, y.i.x, y.i.y).get, w.__fnct = M), I = M((
|
|
1715
|
+
w.__fnct ? M = w.__fnct : (M = BezierFactory.getBezierEasing(y.o.x, y.o.y, y.i.x, y.i.y).get, w.__fnct = M), I = M((h - (y.t - this.offsetTime)) / (_.t - this.offsetTime - (y.t - this.offsetTime)));
|
|
1716
1716
|
}
|
|
1717
1717
|
C = _.s ? _.s[0] : y.e[0];
|
|
1718
1718
|
}
|
|
1719
1719
|
S = y.s[0];
|
|
1720
1720
|
}
|
|
1721
|
-
for (
|
|
1722
|
-
for (F = 0; F <
|
|
1723
|
-
|
|
1721
|
+
for (B = u._length, R = S.i[0].length, l.lastIndex = m, T = 0; T < B; T += 1)
|
|
1722
|
+
for (F = 0; F < R; F += 1)
|
|
1723
|
+
D = A ? S.i[T][F] : S.i[T][F] + (C.i[T][F] - S.i[T][F]) * I, u.i[T][F] = D, D = A ? S.o[T][F] : S.o[T][F] + (C.o[T][F] - S.o[T][F]) * I, u.o[T][F] = D, D = A ? S.v[T][F] : S.v[T][F] + (C.v[T][F] - S.v[T][F]) * I, u.v[T][F] = D;
|
|
1724
1724
|
}
|
|
1725
1725
|
function r() {
|
|
1726
|
-
var
|
|
1727
|
-
return m !== e && (m <
|
|
1726
|
+
var h = this.comp.renderedFrame - this.offsetTime, u = this.keyframes[0].t - this.offsetTime, l = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, m = this._caching.lastFrame;
|
|
1727
|
+
return m !== e && (m < u && h < u || m > l && h > l) || (this._caching.lastIndex = m < h ? this._caching.lastIndex : 0, this.interpolateShape(h, this.pv, this._caching)), this._caching.lastFrame = h, this.pv;
|
|
1728
1728
|
}
|
|
1729
1729
|
function i() {
|
|
1730
1730
|
this.paths = this.localShapeCollection;
|
|
1731
1731
|
}
|
|
1732
|
-
function s(
|
|
1733
|
-
if (
|
|
1732
|
+
function s(h, u) {
|
|
1733
|
+
if (h._length !== u._length || h.c !== u.c)
|
|
1734
1734
|
return !1;
|
|
1735
|
-
var
|
|
1736
|
-
for (
|
|
1737
|
-
if (
|
|
1735
|
+
var l, m = h._length;
|
|
1736
|
+
for (l = 0; l < m; l += 1)
|
|
1737
|
+
if (h.v[l][0] !== u.v[l][0] || h.v[l][1] !== u.v[l][1] || h.o[l][0] !== u.o[l][0] || h.o[l][1] !== u.o[l][1] || h.i[l][0] !== u.i[l][0] || h.i[l][1] !== u.i[l][1])
|
|
1738
1738
|
return !1;
|
|
1739
1739
|
return !0;
|
|
1740
1740
|
}
|
|
1741
|
-
function a(
|
|
1742
|
-
s(this.v,
|
|
1741
|
+
function a(h) {
|
|
1742
|
+
s(this.v, h) || (this.v = shapePool.clone(h), this.localShapeCollection.releaseShapes(), this.localShapeCollection.addShape(this.v), this._mdf = !0, this.paths = this.localShapeCollection);
|
|
1743
1743
|
}
|
|
1744
1744
|
function n() {
|
|
1745
1745
|
if (this.elem.globalData.frameId !== this.frameId) {
|
|
@@ -1752,106 +1752,106 @@ var lottie$1 = { exports: {} };
|
|
|
1752
1752
|
return;
|
|
1753
1753
|
}
|
|
1754
1754
|
this.lock = !0, this._mdf = !1;
|
|
1755
|
-
var
|
|
1756
|
-
this.kf ?
|
|
1757
|
-
var
|
|
1758
|
-
for (
|
|
1759
|
-
|
|
1760
|
-
this.setVValue(
|
|
1755
|
+
var h;
|
|
1756
|
+
this.kf ? h = this.pv : this.data.ks ? h = this.data.ks.k : h = this.data.pt.k;
|
|
1757
|
+
var u, l = this.effectsSequence.length;
|
|
1758
|
+
for (u = 0; u < l; u += 1)
|
|
1759
|
+
h = this.effectsSequence[u](h);
|
|
1760
|
+
this.setVValue(h), this.lock = !1, this.frameId = this.elem.globalData.frameId;
|
|
1761
1761
|
}
|
|
1762
1762
|
}
|
|
1763
|
-
function f(
|
|
1764
|
-
this.propType = "shape", this.comp =
|
|
1765
|
-
var m =
|
|
1763
|
+
function f(h, u, l) {
|
|
1764
|
+
this.propType = "shape", this.comp = h.comp, this.container = h, this.elem = h, this.data = u, this.k = !1, this.kf = !1, this._mdf = !1;
|
|
1765
|
+
var m = l === 3 ? u.pt.k : u.ks.k;
|
|
1766
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
|
-
function o(
|
|
1769
|
-
this.effectsSequence.push(
|
|
1768
|
+
function o(h) {
|
|
1769
|
+
this.effectsSequence.push(h), this.container.addDynamicProperty(this);
|
|
1770
1770
|
}
|
|
1771
1771
|
f.prototype.interpolateShape = t, f.prototype.getValue = n, f.prototype.setVValue = a, f.prototype.addEffect = o;
|
|
1772
|
-
function
|
|
1773
|
-
this.propType = "shape", this.comp =
|
|
1772
|
+
function p(h, u, l) {
|
|
1773
|
+
this.propType = "shape", this.comp = h.comp, this.elem = h, this.container = h, this.offsetTime = h.data.st, this.keyframes = l === 3 ? u.pt.k : u.ks.k, this.keyframesMetadata = [], this.k = !0, this.kf = !0;
|
|
1774
1774
|
var m = this.keyframes[0].s[0].i.length;
|
|
1775
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 = e, this.reset = i, this._caching = {
|
|
1776
1776
|
lastFrame: e,
|
|
1777
1777
|
lastIndex: 0
|
|
1778
1778
|
}, this.effectsSequence = [r.bind(this)];
|
|
1779
1779
|
}
|
|
1780
|
-
|
|
1780
|
+
p.prototype.getValue = n, p.prototype.interpolateShape = t, p.prototype.setVValue = a, p.prototype.addEffect = o;
|
|
1781
1781
|
var v = function() {
|
|
1782
|
-
var
|
|
1783
|
-
function
|
|
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 =
|
|
1782
|
+
var h = roundCorner;
|
|
1783
|
+
function u(l, 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 = l, this.comp = l.comp, this.frameId = -1, this.initDynamicPropertyContainer(l), this.p = PropertyFactory.getProp(l, m.p, 1, 0, this), this.s = PropertyFactory.getProp(l, m.s, 1, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertEllToPath());
|
|
1785
1785
|
}
|
|
1786
|
-
return
|
|
1786
|
+
return u.prototype = {
|
|
1787
1787
|
reset: i,
|
|
1788
1788
|
getValue: function() {
|
|
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
1792
|
var m = this.p.v[0], S = this.p.v[1], C = this.s.v[0] / 2, A = this.s.v[1] / 2, T = this.d !== 3, F = this.v;
|
|
1793
|
-
F.v[0][0] = m, F.v[0][1] = S - A, F.v[1][0] = T ? m + C : m - C, F.v[1][1] = S, F.v[2][0] = m, F.v[2][1] = S + A, F.v[3][0] = T ? m - C : m + C, F.v[3][1] = S, F.i[0][0] = T ? m - C *
|
|
1793
|
+
F.v[0][0] = m, F.v[0][1] = S - A, F.v[1][0] = T ? m + C : m - C, F.v[1][1] = S, F.v[2][0] = m, F.v[2][1] = S + A, F.v[3][0] = T ? m - C : m + C, F.v[3][1] = S, F.i[0][0] = T ? m - C * h : m + C * h, F.i[0][1] = S - A, F.i[1][0] = T ? m + C : m - C, F.i[1][1] = S - A * h, F.i[2][0] = T ? m + C * h : m - C * h, F.i[2][1] = S + A, F.i[3][0] = T ? m - C : m + C, F.i[3][1] = S + A * h, F.o[0][0] = T ? m + C * h : m - C * h, F.o[0][1] = S - A, F.o[1][0] = T ? m + C : m - C, F.o[1][1] = S + A * h, F.o[2][0] = T ? m - C * h : m + C * h, F.o[2][1] = S + A, F.o[3][0] = T ? m - C : m + C, F.o[3][1] = S - A * h;
|
|
1794
1794
|
}
|
|
1795
|
-
}, extendPrototype([DynamicPropertyContainer],
|
|
1795
|
+
}, extendPrototype([DynamicPropertyContainer], u), u;
|
|
1796
1796
|
}(), x = function() {
|
|
1797
|
-
function
|
|
1798
|
-
this.v = shapePool.newElement(), this.v.setPathData(!0, 0), this.elem =
|
|
1797
|
+
function h(u, l) {
|
|
1798
|
+
this.v = shapePool.newElement(), this.v.setPathData(!0, 0), this.elem = u, this.comp = u.comp, this.data = l, this.frameId = -1, this.d = l.d, this.initDynamicPropertyContainer(u), l.sy === 1 ? (this.ir = PropertyFactory.getProp(u, l.ir, 0, 0, this), this.is = PropertyFactory.getProp(u, l.is, 0, 0.01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = PropertyFactory.getProp(u, l.pt, 0, 0, this), this.p = PropertyFactory.getProp(u, l.p, 1, 0, this), this.r = PropertyFactory.getProp(u, l.r, 0, degToRads, this), this.or = PropertyFactory.getProp(u, l.or, 0, 0, this), this.os = PropertyFactory.getProp(u, l.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
|
}
|
|
1800
|
-
return
|
|
1800
|
+
return h.prototype = {
|
|
1801
1801
|
reset: i,
|
|
1802
1802
|
getValue: function() {
|
|
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
|
|
1806
|
+
var l = Math.floor(this.pt.v) * 2, m = Math.PI * 2 / l, S = !0, C = this.or.v, A = this.ir.v, T = this.os.v, F = this.is.v, B = 2 * Math.PI * C / (l * 2), R = 2 * Math.PI * A / (l * 2), I, D, G, V, P = -Math.PI / 2;
|
|
1807
1807
|
P += this.r.v;
|
|
1808
1808
|
var k = this.data.d === 3 ? -1 : 1;
|
|
1809
|
-
for (this.v._length = 0, I = 0; I <
|
|
1810
|
-
|
|
1811
|
-
var y =
|
|
1809
|
+
for (this.v._length = 0, I = 0; I < l; I += 1) {
|
|
1810
|
+
D = S ? C : A, G = S ? T : F, V = S ? B : R;
|
|
1811
|
+
var y = D * Math.cos(P), _ = D * Math.sin(P), w = y === 0 && _ === 0 ? 0 : _ / Math.sqrt(y * y + _ * _), M = y === 0 && _ === 0 ? 0 : -y / Math.sqrt(y * y + _ * _);
|
|
1812
1812
|
y += +this.p.v[0], _ += +this.p.v[1], this.v.setTripleAt(y, _, y - w * V * G * k, _ - M * V * G * k, y + w * V * G * k, _ + M * V * G * k, I, !0), S = !S, P += m * k;
|
|
1813
1813
|
}
|
|
1814
1814
|
},
|
|
1815
1815
|
convertPolygonToPath: function() {
|
|
1816
|
-
var
|
|
1817
|
-
for (F += this.r.v, this.v._length = 0, T = 0; T <
|
|
1818
|
-
var
|
|
1819
|
-
|
|
1816
|
+
var l = Math.floor(this.pt.v), m = Math.PI * 2 / l, S = this.or.v, C = this.os.v, A = 2 * Math.PI * S / (l * 4), T, F = -Math.PI * 0.5, B = this.data.d === 3 ? -1 : 1;
|
|
1817
|
+
for (F += this.r.v, this.v._length = 0, T = 0; T < l; T += 1) {
|
|
1818
|
+
var R = S * Math.cos(F), I = S * Math.sin(F), D = R === 0 && I === 0 ? 0 : I / Math.sqrt(R * R + I * I), G = R === 0 && I === 0 ? 0 : -R / Math.sqrt(R * R + I * I);
|
|
1819
|
+
R += +this.p.v[0], I += +this.p.v[1], this.v.setTripleAt(R, I, R - D * A * C * B, I - G * A * C * B, R + D * A * C * B, I + G * A * C * B, T, !0), F += m * B;
|
|
1820
1820
|
}
|
|
1821
1821
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
1822
1822
|
}
|
|
1823
|
-
}, extendPrototype([DynamicPropertyContainer],
|
|
1824
|
-
}(),
|
|
1825
|
-
function
|
|
1826
|
-
this.v = shapePool.newElement(), this.v.c = !0, this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem =
|
|
1823
|
+
}, extendPrototype([DynamicPropertyContainer], h), h;
|
|
1824
|
+
}(), c = function() {
|
|
1825
|
+
function h(u, l) {
|
|
1826
|
+
this.v = shapePool.newElement(), this.v.c = !0, this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem = u, this.comp = u.comp, this.frameId = -1, this.d = l.d, this.initDynamicPropertyContainer(u), this.p = PropertyFactory.getProp(u, l.p, 1, 0, this), this.s = PropertyFactory.getProp(u, l.s, 1, 0, this), this.r = PropertyFactory.getProp(u, l.r, 0, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertRectToPath());
|
|
1827
1827
|
}
|
|
1828
|
-
return
|
|
1828
|
+
return h.prototype = {
|
|
1829
1829
|
convertRectToPath: function() {
|
|
1830
|
-
var
|
|
1831
|
-
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(
|
|
1830
|
+
var l = this.p.v[0], m = this.p.v[1], S = this.s.v[0] / 2, C = this.s.v[1] / 2, A = bmMin(S, C, this.r.v), T = A * (1 - roundCorner);
|
|
1831
|
+
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(l + S, m - C + A, l + S, m - C + A, l + S, m - C + T, 0, !0), this.v.setTripleAt(l + S, m + C - A, l + S, m + C - T, l + S, m + C - A, 1, !0), A !== 0 ? (this.v.setTripleAt(l + S - A, m + C, l + S - A, m + C, l + S - T, m + C, 2, !0), this.v.setTripleAt(l - S + A, m + C, l - S + T, m + C, l - S + A, m + C, 3, !0), this.v.setTripleAt(l - S, m + C - A, l - S, m + C - A, l - S, m + C - T, 4, !0), this.v.setTripleAt(l - S, m - C + A, l - S, m - C + T, l - S, m - C + A, 5, !0), this.v.setTripleAt(l - S + A, m - C, l - S + A, m - C, l - S + T, m - C, 6, !0), this.v.setTripleAt(l + S - A, m - C, l + S - T, m - C, l + S - A, m - C, 7, !0)) : (this.v.setTripleAt(l - S, m + C, l - S + T, m + C, l - S, m + C, 2), this.v.setTripleAt(l - S, m - C, l - S, m - C + T, l - S, m - C, 3))) : (this.v.setTripleAt(l + S, m - C + A, l + S, m - C + T, l + S, m - C + A, 0, !0), A !== 0 ? (this.v.setTripleAt(l + S - A, m - C, l + S - A, m - C, l + S - T, m - C, 1, !0), this.v.setTripleAt(l - S + A, m - C, l - S + T, m - C, l - S + A, m - C, 2, !0), this.v.setTripleAt(l - S, m - C + A, l - S, m - C + A, l - S, m - C + T, 3, !0), this.v.setTripleAt(l - S, m + C - A, l - S, m + C - T, l - S, m + C - A, 4, !0), this.v.setTripleAt(l - S + A, m + C, l - S + A, m + C, l - S + T, m + C, 5, !0), this.v.setTripleAt(l + S - A, m + C, l + S - T, m + C, l + S - A, m + C, 6, !0), this.v.setTripleAt(l + S, m + C - A, l + S, m + C - A, l + S, m + C - T, 7, !0)) : (this.v.setTripleAt(l - S, m - C, l - S + T, m - C, l - S, m - C, 1, !0), this.v.setTripleAt(l - S, m + C, l - S, m + C - T, l - S, m + C, 2, !0), this.v.setTripleAt(l + S, m + C, l + S - T, m + C, l + S, 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());
|
|
1835
1835
|
},
|
|
1836
1836
|
reset: i
|
|
1837
|
-
}, extendPrototype([DynamicPropertyContainer],
|
|
1837
|
+
}, extendPrototype([DynamicPropertyContainer], h), h;
|
|
1838
1838
|
}();
|
|
1839
|
-
function b(
|
|
1839
|
+
function b(h, u, l) {
|
|
1840
1840
|
var m;
|
|
1841
|
-
if (
|
|
1842
|
-
var S =
|
|
1843
|
-
C.length ? m = new
|
|
1844
|
-
} else
|
|
1845
|
-
return m.k &&
|
|
1841
|
+
if (l === 3 || l === 4) {
|
|
1842
|
+
var S = l === 3 ? u.pt : u.ks, C = S.k;
|
|
1843
|
+
C.length ? m = new p(h, u, l) : m = new f(h, u, l);
|
|
1844
|
+
} else l === 5 ? m = new c(h, u) : l === 6 ? m = new v(h, u) : l === 7 && (m = new x(h, u));
|
|
1845
|
+
return m.k && h.addDynamicProperty(m), m;
|
|
1846
1846
|
}
|
|
1847
1847
|
function g() {
|
|
1848
1848
|
return f;
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1851
|
-
return
|
|
1850
|
+
function d() {
|
|
1851
|
+
return p;
|
|
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
|
|
@@ -1890,7 +1890,7 @@ var lottie$1 = { exports: {} };
|
|
|
1890
1890
|
var _ = e(y), w = t(y);
|
|
1891
1891
|
return this._t(_, -w, 0, 0, w, _, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1893
|
+
function p(y, _) {
|
|
1894
1894
|
return this._t(1, _, y, 1, 0, 0);
|
|
1895
1895
|
}
|
|
1896
1896
|
function v(y, _) {
|
|
@@ -1900,30 +1900,30 @@ var lottie$1 = { exports: {} };
|
|
|
1900
1900
|
var w = e(_), M = t(_);
|
|
1901
1901
|
return this._t(w, M, 0, 0, -M, w, 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(w, -M, 0, 0, M, w, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
1902
1902
|
}
|
|
1903
|
-
function
|
|
1903
|
+
function c(y, _, w) {
|
|
1904
1904
|
return !w && w !== 0 && (w = 1), y === 1 && _ === 1 && w === 1 ? this : this._t(y, 0, 0, 0, 0, _, 0, 0, 0, 0, w, 0, 0, 0, 0, 1);
|
|
1905
1905
|
}
|
|
1906
|
-
function b(y, _, w, M,
|
|
1907
|
-
return this.props[0] = y, this.props[1] = _, this.props[2] = w, this.props[3] = M, this.props[4] =
|
|
1906
|
+
function b(y, _, w, M, O, L, N, j, H, q, Y, Q, X, $, K, W) {
|
|
1907
|
+
return this.props[0] = y, this.props[1] = _, this.props[2] = w, this.props[3] = M, this.props[4] = O, this.props[5] = L, 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] = K, this.props[15] = W, this;
|
|
1908
1908
|
}
|
|
1909
1909
|
function g(y, _, w) {
|
|
1910
1910
|
return w = w || 0, y !== 0 || _ !== 0 || w !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, y, _, w, 1) : this;
|
|
1911
1911
|
}
|
|
1912
|
-
function
|
|
1913
|
-
var
|
|
1914
|
-
if (y === 1 && _ === 0 && w === 0 && M === 0 &&
|
|
1915
|
-
return
|
|
1916
|
-
var te =
|
|
1917
|
-
return
|
|
1912
|
+
function d(y, _, w, M, O, L, N, j, H, q, Y, Q, X, $, K, W) {
|
|
1913
|
+
var z = this.props;
|
|
1914
|
+
if (y === 1 && _ === 0 && w === 0 && M === 0 && O === 0 && L === 1 && N === 0 && j === 0 && H === 0 && q === 0 && Y === 1 && Q === 0)
|
|
1915
|
+
return z[12] = z[12] * y + z[15] * X, z[13] = z[13] * L + z[15] * $, z[14] = z[14] * Y + z[15] * K, z[15] *= W, this._identityCalculated = !1, this;
|
|
1916
|
+
var te = z[0], ae = z[1], re = z[2], ee = z[3], ie = z[4], se = z[5], J = z[6], ne = z[7], oe = z[8], Z = z[9], fe = z[10], U = z[11], he = z[12], le = z[13], pe = z[14], ce = z[15];
|
|
1917
|
+
return z[0] = te * y + ae * O + re * H + ee * X, z[1] = te * _ + ae * L + re * q + ee * $, z[2] = te * w + ae * N + re * Y + ee * K, z[3] = te * M + ae * j + re * Q + ee * W, z[4] = ie * y + se * O + J * H + ne * X, z[5] = ie * _ + se * L + J * q + ne * $, z[6] = ie * w + se * N + J * Y + ne * K, z[7] = ie * M + se * j + J * Q + ne * W, z[8] = oe * y + Z * O + fe * H + U * X, z[9] = oe * _ + Z * L + fe * q + U * $, z[10] = oe * w + Z * N + fe * Y + U * K, z[11] = oe * M + Z * j + fe * Q + U * W, z[12] = he * y + le * O + pe * H + ce * X, z[13] = he * _ + le * L + pe * q + ce * $, z[14] = he * w + le * N + pe * Y + ce * K, z[15] = he * M + le * j + pe * Q + ce * W, this._identityCalculated = !1, this;
|
|
1918
1918
|
}
|
|
1919
1919
|
function E(y) {
|
|
1920
1920
|
var _ = y.props;
|
|
1921
1921
|
return this.transform(_[0], _[1], _[2], _[3], _[4], _[5], _[6], _[7], _[8], _[9], _[10], _[11], _[12], _[13], _[14], _[15]);
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1923
|
+
function h() {
|
|
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
|
|
1926
|
+
function u(y) {
|
|
1927
1927
|
for (var _ = 0; _ < 16; ) {
|
|
1928
1928
|
if (y.props[_] !== this.props[_])
|
|
1929
1929
|
return !1;
|
|
@@ -1931,7 +1931,7 @@ var lottie$1 = { exports: {} };
|
|
|
1931
1931
|
}
|
|
1932
1932
|
return !0;
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1934
|
+
function l(y) {
|
|
1935
1935
|
var _;
|
|
1936
1936
|
for (_ = 0; _ < 16; _ += 1)
|
|
1937
1937
|
y.props[_] = this.props[_];
|
|
@@ -1959,17 +1959,17 @@ var lottie$1 = { exports: {} };
|
|
|
1959
1959
|
return y * this.props[2] + _ * this.props[6] + w * this.props[10] + this.props[14];
|
|
1960
1960
|
}
|
|
1961
1961
|
function F() {
|
|
1962
|
-
var y = this.props[0] * this.props[5] - this.props[1] * this.props[4], _ = this.props[5] / y, w = -this.props[1] / y, M = -this.props[4] / y,
|
|
1963
|
-
return j.props[0] = _, j.props[1] = w, j.props[4] = M, j.props[5] =
|
|
1962
|
+
var y = this.props[0] * this.props[5] - this.props[1] * this.props[4], _ = this.props[5] / y, w = -this.props[1] / y, M = -this.props[4] / y, O = this.props[0] / y, L = (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] = _, j.props[1] = w, j.props[4] = M, j.props[5] = O, j.props[12] = L, j.props[13] = N, j;
|
|
1964
1964
|
}
|
|
1965
|
-
function
|
|
1965
|
+
function B(y) {
|
|
1966
1966
|
var _ = this.getInverseMatrix();
|
|
1967
1967
|
return _.applyToPointArray(y[0], y[1], y[2] || 0);
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1969
|
+
function R(y) {
|
|
1970
1970
|
var _, w = y.length, M = [];
|
|
1971
1971
|
for (_ = 0; _ < w; _ += 1)
|
|
1972
|
-
M[_] =
|
|
1972
|
+
M[_] = B(y[_]);
|
|
1973
1973
|
return M;
|
|
1974
1974
|
}
|
|
1975
1975
|
function I(y, _, w) {
|
|
@@ -1977,12 +1977,12 @@ var lottie$1 = { exports: {} };
|
|
|
1977
1977
|
if (this.isIdentity())
|
|
1978
1978
|
M[0] = y[0], M[1] = y[1], M[2] = _[0], M[3] = _[1], M[4] = w[0], M[5] = w[1];
|
|
1979
1979
|
else {
|
|
1980
|
-
var
|
|
1981
|
-
M[0] = y[0] *
|
|
1980
|
+
var O = this.props[0], L = this.props[1], N = this.props[4], j = this.props[5], H = this.props[12], q = this.props[13];
|
|
1981
|
+
M[0] = y[0] * O + y[1] * N + H, M[1] = y[0] * L + y[1] * j + q, M[2] = _[0] * O + _[1] * N + H, M[3] = _[0] * L + _[1] * j + q, M[4] = w[0] * O + w[1] * N + H, M[5] = w[0] * L + w[1] * j + q;
|
|
1982
1982
|
}
|
|
1983
1983
|
return M;
|
|
1984
1984
|
}
|
|
1985
|
-
function
|
|
1985
|
+
function D(y, _, w) {
|
|
1986
1986
|
var M;
|
|
1987
1987
|
return this.isIdentity() ? M = [y, _, w] : M = [y * this.props[0] + _ * this.props[4] + w * this.props[8] + this.props[12], y * this.props[1] + _ * this.props[5] + w * this.props[9] + this.props[13], y * this.props[2] + _ * this.props[6] + w * this.props[10] + this.props[14]], M;
|
|
1988
1988
|
}
|
|
@@ -2002,11 +2002,11 @@ var lottie$1 = { exports: {} };
|
|
|
2002
2002
|
return y < 1e-6 && y > 0 || y > -1e-6 && y < 0 ? i(y * _) / _ : y;
|
|
2003
2003
|
}
|
|
2004
2004
|
function k() {
|
|
2005
|
-
var y = this.props, _ = P(y[0]), w = P(y[1]), M = P(y[4]),
|
|
2006
|
-
return "matrix(" + _ + "," + w + "," + M + "," +
|
|
2005
|
+
var y = this.props, _ = P(y[0]), w = P(y[1]), M = P(y[4]), O = P(y[5]), L = P(y[12]), N = P(y[13]);
|
|
2006
|
+
return "matrix(" + _ + "," + w + "," + M + "," + O + "," + L + "," + 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 = v, this.skewFromAxis = x, this.shear =
|
|
2009
|
+
this.reset = s, this.rotate = a, this.rotateX = n, this.rotateY = f, this.rotateZ = o, this.skew = v, this.skewFromAxis = x, this.shear = p, this.scale = c, this.setTransform = b, this.translate = g, this.transform = d, this.multiply = E, this.applyToPoint = S, this.applyToX = C, this.applyToY = A, this.applyToZ = T, this.applyToPointArray = D, this.applyToTriplePoints = I, this.applyToPointStringified = G, this.toCSS = V, this.to2dCSS = k, this.clone = l, this.cloneFromProps = m, this.equals = u, this.inversePoints = R, this.inversePoint = B, this.getInverseMatrix = F, this._t = this.transform, this.isIdentity = h, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
2010
2010
|
};
|
|
2011
2011
|
}();
|
|
2012
2012
|
function _typeof$3(e) {
|
|
@@ -2142,11 +2142,11 @@ var lottie$1 = { exports: {} };
|
|
|
2142
2142
|
s: 0,
|
|
2143
2143
|
e: t - 1
|
|
2144
2144
|
}));
|
|
2145
|
-
var n = [], f, o = a.length,
|
|
2145
|
+
var n = [], f, o = a.length, p;
|
|
2146
2146
|
for (f = 0; f < o; f += 1)
|
|
2147
|
-
if (
|
|
2147
|
+
if (p = a[f], !(p.e * s < i || p.s * s > i + r)) {
|
|
2148
2148
|
var v, x;
|
|
2149
|
-
|
|
2149
|
+
p.s * s <= i ? v = 0 : v = (p.s * s - i) / r, p.e * s >= i + r ? x = 1 : x = (p.e * s - i) / r, n.push([v, x]);
|
|
2150
2150
|
}
|
|
2151
2151
|
return n.length || n.push([0, 0]), n;
|
|
2152
2152
|
}, TrimModifier.prototype.releasePathsData = function(e) {
|
|
@@ -2165,7 +2165,7 @@ var lottie$1 = { exports: {} };
|
|
|
2165
2165
|
t = Math.round(t * 1e4) * 1e-4, r = Math.round(r * 1e4) * 1e-4, this.sValue = t, this.eValue = r;
|
|
2166
2166
|
} else
|
|
2167
2167
|
t = this.sValue, r = this.eValue;
|
|
2168
|
-
var a, n, f = this.shapes.length, o,
|
|
2168
|
+
var a, n, f = this.shapes.length, o, p, v, x, c, b = 0;
|
|
2169
2169
|
if (r === t)
|
|
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 && !e && this.m !== 2)
|
|
2180
|
+
d.shape.paths = d.localShapeCollection;
|
|
2181
2181
|
else {
|
|
2182
|
-
if (a =
|
|
2183
|
-
|
|
2182
|
+
if (a = d.shape.paths, p = a._length, c = 0, !d.shape._mdf && d.pathsData.length)
|
|
2183
|
+
c = d.totalShapeLength;
|
|
2184
2184
|
else {
|
|
2185
|
-
for (v = this.releasePathsData(
|
|
2186
|
-
x = bez.getSegmentsLength(a.shapes[o]), v.push(x),
|
|
2187
|
-
|
|
2185
|
+
for (v = this.releasePathsData(d.pathsData), o = 0; o < p; o += 1)
|
|
2186
|
+
x = bez.getSegmentsLength(a.shapes[o]), v.push(x), c += x.totalLength;
|
|
2187
|
+
d.totalShapeLength = c, d.pathsData = v;
|
|
2188
2188
|
}
|
|
2189
|
-
b +=
|
|
2189
|
+
b += c, d.shape._mdf = !0;
|
|
2190
2190
|
}
|
|
2191
|
-
var
|
|
2191
|
+
var h = t, u = r, l = 0, m;
|
|
2192
2192
|
for (n = f - 1; n >= 0; n -= 1)
|
|
2193
|
-
if (
|
|
2194
|
-
for (E =
|
|
2195
|
-
|
|
2196
|
-
s:
|
|
2197
|
-
e:
|
|
2198
|
-
}) :
|
|
2199
|
-
s:
|
|
2200
|
-
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(t, r, d.totalShapeLength, l, b), l += d.totalShapeLength) : m = [[h, u]], p = m.length, o = 0; o < p; o += 1) {
|
|
2195
|
+
h = m[o][0], u = m[o][1], g.length = 0, u <= 1 ? g.push({
|
|
2196
|
+
s: d.totalShapeLength * h,
|
|
2197
|
+
e: d.totalShapeLength * u
|
|
2198
|
+
}) : h >= 1 ? g.push({
|
|
2199
|
+
s: d.totalShapeLength * (h - 1),
|
|
2200
|
+
e: d.totalShapeLength * (u - 1)
|
|
2201
2201
|
}) : (g.push({
|
|
2202
|
-
s:
|
|
2203
|
-
e:
|
|
2202
|
+
s: d.totalShapeLength * h,
|
|
2203
|
+
e: d.totalShapeLength
|
|
2204
2204
|
}), g.push({
|
|
2205
2205
|
s: 0,
|
|
2206
|
-
e:
|
|
2206
|
+
e: d.totalShapeLength * (u - 1)
|
|
2207
2207
|
}));
|
|
2208
|
-
var S = this.addShapes(
|
|
2208
|
+
var S = 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
2213
|
var A = S.pop();
|
|
2214
|
-
this.addPaths(S, E), S = this.addShapes(
|
|
2214
|
+
this.addPaths(S, E), S = this.addShapes(d, g[1], A);
|
|
2215
2215
|
} else
|
|
2216
|
-
this.addPaths(S, E), S = this.addShapes(
|
|
2216
|
+
this.addPaths(S, E), S = this.addShapes(d, g[1]);
|
|
2217
2217
|
}
|
|
2218
2218
|
this.addPaths(S, E);
|
|
2219
2219
|
}
|
|
2220
2220
|
}
|
|
2221
|
-
|
|
2221
|
+
d.shape.paths = E;
|
|
2222
2222
|
}
|
|
2223
2223
|
}
|
|
2224
2224
|
}, TrimModifier.prototype.addPaths = function(e, t) {
|
|
@@ -2230,25 +2230,25 @@ var lottie$1 = { exports: {} };
|
|
|
2230
2230
|
}, TrimModifier.prototype.addSegmentFromArray = function(e, t, r, i) {
|
|
2231
2231
|
t.setXYAt(e[1], e[5], "o", r), t.setXYAt(e[2], e[6], "i", r + 1), i && t.setXYAt(e[0], e[4], "v", r), t.setXYAt(e[3], e[7], "v", r + 1);
|
|
2232
2232
|
}, TrimModifier.prototype.addShapes = function(e, t, r) {
|
|
2233
|
-
var i = e.pathsData, s = e.shape.paths.shapes, a, n = e.shape.paths._length, f, o,
|
|
2234
|
-
for (r ? (x = r._length,
|
|
2235
|
-
for (
|
|
2236
|
-
if (v =
|
|
2237
|
-
|
|
2238
|
-
else if (
|
|
2233
|
+
var i = e.pathsData, s = e.shape.paths.shapes, a, n = e.shape.paths._length, f, o, p = 0, v, x, c, b, g = [], d, E = !0;
|
|
2234
|
+
for (r ? (x = r._length, d = r._length) : (r = shapePool.newElement(), x = 0, d = 0), g.push(r), a = 0; a < n; a += 1) {
|
|
2235
|
+
for (c = i[a].lengths, r.c = s[a].c, o = s[a].c ? c.length : c.length + 1, f = 1; f < o; f += 1)
|
|
2236
|
+
if (v = c[f - 1], p + v.addedLength < t.s)
|
|
2237
|
+
p += v.addedLength, r.c = !1;
|
|
2238
|
+
else if (p > t.e) {
|
|
2239
2239
|
r.c = !1;
|
|
2240
2240
|
break;
|
|
2241
2241
|
} else
|
|
2242
|
-
t.s <=
|
|
2243
|
-
if (s[a].c &&
|
|
2244
|
-
if (v =
|
|
2245
|
-
var
|
|
2246
|
-
t.s <=
|
|
2242
|
+
t.s <= p && t.e >= p + v.addedLength ? (this.addSegment(s[a].v[f - 1], s[a].o[f - 1], s[a].i[f], s[a].v[f], r, x, E), E = !1) : (b = bez.getNewSegment(s[a].v[f - 1], s[a].v[f], s[a].o[f - 1], s[a].i[f], (t.s - p) / v.addedLength, (t.e - p) / v.addedLength, c[f - 1]), this.addSegmentFromArray(b, r, x, E), E = !1, r.c = !1), p += v.addedLength, x += 1;
|
|
2243
|
+
if (s[a].c && c.length) {
|
|
2244
|
+
if (v = c[f - 1], p <= t.e) {
|
|
2245
|
+
var h = c[f - 1].addedLength;
|
|
2246
|
+
t.s <= p && t.e >= p + h ? (this.addSegment(s[a].v[f - 1], s[a].o[f - 1], s[a].i[0], s[a].v[0], r, x, E), E = !1) : (b = bez.getNewSegment(s[a].v[f - 1], s[a].v[0], s[a].o[f - 1], s[a].i[0], (t.s - p) / h, (t.e - p) / h, c[f - 1]), this.addSegmentFromArray(b, r, x, E), E = !1, r.c = !1);
|
|
2247
2247
|
} else
|
|
2248
2248
|
r.c = !1;
|
|
2249
|
-
|
|
2249
|
+
p += v.addedLength, x += 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)), p > t.e)
|
|
2252
2252
|
break;
|
|
2253
2253
|
a < n - 1 && (r = shapePool.newElement(), E = !0, g.push(r), x = 0);
|
|
2254
2254
|
}
|
|
@@ -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 = e.c;
|
|
2268
|
-
var f, o,
|
|
2268
|
+
var f, o, p, v, x, c;
|
|
2269
2269
|
for (a = 0; a < s; a += 1)
|
|
2270
|
-
f = e.v[a][0] + (i[0] - e.v[a][0]) * r, o = e.v[a][1] + (i[1] - e.v[a][1]) * r,
|
|
2270
|
+
f = e.v[a][0] + (i[0] - e.v[a][0]) * r, o = e.v[a][1] + (i[1] - e.v[a][1]) * r, p = e.o[a][0] + (i[0] - e.o[a][0]) * -r, v = e.o[a][1] + (i[1] - e.o[a][1]) * -r, x = e.i[a][0] + (i[0] - e.i[a][0]) * -r, c = e.i[a][1] + (i[1] - e.i[a][1]) * -r, n.setTripleAt(f, o, p, v, x, c, a);
|
|
2271
2271
|
return n;
|
|
2272
2272
|
}, PuckerAndBloatModifier.prototype.processShapes = function(e) {
|
|
2273
2273
|
var t, r, i = this.shapes.length, s, a, n = this.amount.v;
|
|
@@ -2285,21 +2285,21 @@ var lottie$1 = { exports: {} };
|
|
|
2285
2285
|
var TransformPropertyFactory = function() {
|
|
2286
2286
|
var e = [0, 0];
|
|
2287
2287
|
function t(o) {
|
|
2288
|
-
var
|
|
2289
|
-
this.iterateDynamicProperties(), this._mdf = this._mdf ||
|
|
2288
|
+
var p = this._mdf;
|
|
2289
|
+
this.iterateDynamicProperties(), this._mdf = this._mdf || p, this.a && o.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.s && o.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && o.skewFromAxis(-this.sk.v, this.sa.v), this.r ? o.rotate(-this.r.v) : o.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.data.p.s ? this.data.p.z ? o.translate(this.px.v, this.py.v, -this.pz.v) : o.translate(this.px.v, this.py.v, 0) : o.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
|
|
2290
2290
|
}
|
|
2291
2291
|
function r(o) {
|
|
2292
2292
|
if (this.elem.globalData.frameId !== this.frameId) {
|
|
2293
2293
|
if (this._isDirty && (this.precalculateMatrix(), this._isDirty = !1), this.iterateDynamicProperties(), this._mdf || o) {
|
|
2294
|
-
var
|
|
2294
|
+
var p;
|
|
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
2296
|
var v, x;
|
|
2297
|
-
if (
|
|
2298
|
-
this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (v = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) /
|
|
2297
|
+
if (p = 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 ? (v = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / p, 0), x = this.p.getValueAtTime(this.p.keyframes[0].t / p, 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 / p, 0), x = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - 0.05) / p, 0)) : (v = this.p.pv, x = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - 0.01) / p, this.p.offsetTime));
|
|
2299
2299
|
else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
|
|
2300
2300
|
v = [], x = [];
|
|
2301
|
-
var
|
|
2302
|
-
|
|
2301
|
+
var c = this.px, b = this.py;
|
|
2302
|
+
c._caching.lastFrame + c.offsetTime <= c.keyframes[0].t ? (v[0] = c.getValueAtTime((c.keyframes[0].t + 0.01) / p, 0), v[1] = b.getValueAtTime((b.keyframes[0].t + 0.01) / p, 0), x[0] = c.getValueAtTime(c.keyframes[0].t / p, 0), x[1] = b.getValueAtTime(b.keyframes[0].t / p, 0)) : c._caching.lastFrame + c.offsetTime >= c.keyframes[c.keyframes.length - 1].t ? (v[0] = c.getValueAtTime(c.keyframes[c.keyframes.length - 1].t / p, 0), v[1] = b.getValueAtTime(b.keyframes[b.keyframes.length - 1].t / p, 0), x[0] = c.getValueAtTime((c.keyframes[c.keyframes.length - 1].t - 0.01) / p, 0), x[1] = b.getValueAtTime((b.keyframes[b.keyframes.length - 1].t - 0.01) / p, 0)) : (v = [c.pv, b.pv], x[0] = c.getValueAtTime((c._caching.lastFrame + c.offsetTime - 0.01) / p, c.offsetTime), x[1] = b.getValueAtTime((b._caching.lastFrame + b.offsetTime - 0.01) / p, b.offsetTime));
|
|
2303
2303
|
} else
|
|
2304
2304
|
x = e, v = x;
|
|
2305
2305
|
this.v.rotate(-Math.atan2(v[1] - x[1], v[0] - x[0]));
|
|
@@ -2330,25 +2330,25 @@ 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,
|
|
2334
|
-
if (this.elem = o, this.frameId = -1, this.propType = "transform", this.data =
|
|
2333
|
+
function n(o, p, v) {
|
|
2334
|
+
if (this.elem = o, this.frameId = -1, this.propType = "transform", this.data = p, this.v = new Matrix(), this.pre = new Matrix(), this.appliedTransformations = 0, this.initDynamicPropertyContainer(v || o), p.p && p.p.s ? (this.px = PropertyFactory.getProp(o, p.p.x, 0, 0, this), this.py = PropertyFactory.getProp(o, p.p.y, 0, 0, this), p.p.z && (this.pz = PropertyFactory.getProp(o, p.p.z, 0, 0, this))) : this.p = PropertyFactory.getProp(o, p.p || {
|
|
2335
2335
|
k: [0, 0, 0]
|
|
2336
|
-
}, 1, 0, this),
|
|
2337
|
-
if (this.rx = PropertyFactory.getProp(o,
|
|
2338
|
-
var x,
|
|
2339
|
-
for (x = 0; x <
|
|
2340
|
-
|
|
2336
|
+
}, 1, 0, this), p.rx) {
|
|
2337
|
+
if (this.rx = PropertyFactory.getProp(o, p.rx, 0, degToRads, this), this.ry = PropertyFactory.getProp(o, p.ry, 0, degToRads, this), this.rz = PropertyFactory.getProp(o, p.rz, 0, degToRads, this), p.or.k[0].ti) {
|
|
2338
|
+
var x, c = p.or.k.length;
|
|
2339
|
+
for (x = 0; x < c; x += 1)
|
|
2340
|
+
p.or.k[x].to = null, p.or.k[x].ti = null;
|
|
2341
2341
|
}
|
|
2342
|
-
this.or = PropertyFactory.getProp(o,
|
|
2342
|
+
this.or = PropertyFactory.getProp(o, p.or, 1, degToRads, this), this.or.sh = !0;
|
|
2343
2343
|
} else
|
|
2344
|
-
this.r = PropertyFactory.getProp(o,
|
|
2344
|
+
this.r = PropertyFactory.getProp(o, p.r || {
|
|
2345
2345
|
k: 0
|
|
2346
2346
|
}, 0, degToRads, this);
|
|
2347
|
-
|
|
2347
|
+
p.sk && (this.sk = PropertyFactory.getProp(o, p.sk, 0, degToRads, this), this.sa = PropertyFactory.getProp(o, p.sa, 0, degToRads, this)), this.a = PropertyFactory.getProp(o, p.a || {
|
|
2348
2348
|
k: [0, 0, 0]
|
|
2349
|
-
}, 1, 0, this), this.s = PropertyFactory.getProp(o,
|
|
2349
|
+
}, 1, 0, this), this.s = PropertyFactory.getProp(o, p.s || {
|
|
2350
2350
|
k: [100, 100, 100]
|
|
2351
|
-
}, 1, 0.01, this),
|
|
2351
|
+
}, 1, 0.01, this), p.o ? this.o = PropertyFactory.getProp(o, p.o, 0, 0.01, o) : this.o = {
|
|
2352
2352
|
_mdf: !1,
|
|
2353
2353
|
v: 1
|
|
2354
2354
|
}, this._isDirty = !0, this.dynamicProperties.length || this.getValue(!0);
|
|
@@ -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,
|
|
2363
|
-
return new n(o,
|
|
2362
|
+
function f(o, p, v) {
|
|
2363
|
+
return new n(o, p, v);
|
|
2364
2364
|
}
|
|
2365
2365
|
return {
|
|
2366
2366
|
getTransformProperty: f
|
|
@@ -2449,37 +2449,37 @@ var lottie$1 = { exports: {} };
|
|
|
2449
2449
|
this.elem.reloadShapes(), n = !0;
|
|
2450
2450
|
}
|
|
2451
2451
|
a = 0;
|
|
2452
|
-
var
|
|
2452
|
+
var p;
|
|
2453
2453
|
for (i = 0; i <= this._groups.length - 1; i += 1) {
|
|
2454
|
-
if (
|
|
2454
|
+
if (p = a < f, this._groups[i]._render = p, this.changeGroupRender(this._groups[i].it, p), !p) {
|
|
2455
2455
|
var v = this.elemsData[i].it, x = v[v.length - 1];
|
|
2456
2456
|
x.transform.op.v !== 0 ? (x.transform.op._mdf = !0, x.transform.op.v = 0) : x.transform.op._mdf = !1;
|
|
2457
2457
|
}
|
|
2458
2458
|
a += 1;
|
|
2459
2459
|
}
|
|
2460
2460
|
this._currentCopies = f;
|
|
2461
|
-
var
|
|
2461
|
+
var c = this.o.v, b = c % 1, g = c > 0 ? Math.floor(c) : Math.ceil(c), d = this.pMatrix.props, E = this.rMatrix.props, h = this.sMatrix.props;
|
|
2462
2462
|
this.pMatrix.reset(), this.rMatrix.reset(), this.sMatrix.reset(), this.tMatrix.reset(), this.matrix.reset();
|
|
2463
|
-
var
|
|
2464
|
-
if (
|
|
2465
|
-
for (;
|
|
2466
|
-
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1),
|
|
2467
|
-
b && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, b, !1),
|
|
2468
|
-
} else if (
|
|
2469
|
-
for (;
|
|
2470
|
-
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !0),
|
|
2471
|
-
b && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -b, !0),
|
|
2463
|
+
var u = 0;
|
|
2464
|
+
if (c > 0) {
|
|
2465
|
+
for (; u < g; )
|
|
2466
|
+
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), u += 1;
|
|
2467
|
+
b && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, b, !1), u += b);
|
|
2468
|
+
} else if (c < 0) {
|
|
2469
|
+
for (; u > g; )
|
|
2470
|
+
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !0), u -= 1;
|
|
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
|
|
2475
|
-
if (t = this.elemsData[i].it, r = t[t.length - 1].transform.mProps.v.props, m = r.length, t[t.length - 1].transform.mProps._mdf = !0, t[t.length - 1].transform.op._mdf = !0, t[t.length - 1].transform.op.v = this._currentCopies === 1 ? this.so.v : this.so.v + (this.eo.v - this.so.v) * (i / (this._currentCopies - 1)),
|
|
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(
|
|
2477
|
-
r[
|
|
2474
|
+
for (var l, m; a; ) {
|
|
2475
|
+
if (t = this.elemsData[i].it, r = t[t.length - 1].transform.mProps.v.props, m = r.length, t[t.length - 1].transform.mProps._mdf = !0, t[t.length - 1].transform.op._mdf = !0, t[t.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(h[0], h[1], h[2], h[3], h[4], h[5], h[6], h[7], h[8], h[9], h[10], h[11], h[12], h[13], h[14], h[15]), this.matrix.transform(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]), l = 0; l < m; l += 1)
|
|
2477
|
+
r[l] = this.matrix.props[l];
|
|
2478
2478
|
this.matrix.reset();
|
|
2479
2479
|
} else
|
|
2480
|
-
for (this.matrix.reset(),
|
|
2481
|
-
r[
|
|
2482
|
-
|
|
2480
|
+
for (this.matrix.reset(), l = 0; l < m; l += 1)
|
|
2481
|
+
r[l] = this.matrix.props[l];
|
|
2482
|
+
u += 1, a -= 1, i += s;
|
|
2483
2483
|
}
|
|
2484
2484
|
} else
|
|
2485
2485
|
for (a = this._currentCopies, i = 0, s = 1; a; )
|
|
@@ -2494,9 +2494,9 @@ var lottie$1 = { exports: {} };
|
|
|
2494
2494
|
}, RoundCornersModifier.prototype.processPath = function(e, t) {
|
|
2495
2495
|
var r = shapePool.newElement();
|
|
2496
2496
|
r.c = e.c;
|
|
2497
|
-
var i, s = e._length, a, n, f, o,
|
|
2497
|
+
var i, s = e._length, a, n, f, o, p, v, x = 0, c, b, g, d, E, h;
|
|
2498
2498
|
for (i = 0; i < s; i += 1)
|
|
2499
|
-
a = e.v[i], f = e.o[i], n = e.i[i], a[0] === f[0] && a[1] === f[1] && a[0] === n[0] && a[1] === n[1] ? (i === 0 || i === s - 1) && !e.c ? (r.setTripleAt(a[0], a[1], f[0], f[1], n[0], n[1], x), x += 1) : (i === 0 ? o = e.v[s - 1] : o = e.v[i - 1],
|
|
2499
|
+
a = e.v[i], f = e.o[i], n = e.i[i], a[0] === f[0] && a[1] === f[1] && a[0] === n[0] && a[1] === n[1] ? (i === 0 || i === s - 1) && !e.c ? (r.setTripleAt(a[0], a[1], f[0], f[1], n[0], n[1], x), x += 1) : (i === 0 ? o = e.v[s - 1] : o = e.v[i - 1], p = Math.sqrt(Math.pow(a[0] - o[0], 2) + Math.pow(a[1] - o[1], 2)), v = p ? Math.min(p / 2, t) / p : 0, E = a[0] + (o[0] - a[0]) * v, c = E, h = a[1] - (a[1] - o[1]) * v, b = h, g = c - (c - a[0]) * roundCorner, d = b - (b - a[1]) * roundCorner, r.setTripleAt(c, b, g, d, E, h, x), x += 1, i === s - 1 ? o = e.v[0] : o = e.v[i + 1], p = Math.sqrt(Math.pow(a[0] - o[0], 2) + Math.pow(a[1] - o[1], 2)), v = p ? Math.min(p / 2, t) / p : 0, g = a[0] + (o[0] - a[0]) * v, c = g, d = a[1] + (o[1] - a[1]) * v, b = d, E = c - (c - a[0]) * roundCorner, h = b - (b - a[1]) * roundCorner, r.setTripleAt(c, b, g, d, E, h, x), x += 1) : (r.setTripleAt(e.v[i][0], e.v[i][1], e.o[i][0], e.o[i][1], e.i[i][0], e.i[i][1], x), x += 1);
|
|
2500
2500
|
return r;
|
|
2501
2501
|
}, RoundCornersModifier.prototype.processShapes = function(e) {
|
|
2502
2502
|
var t, 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(e, t.s, 0, null, this), this.frequency = PropertyFactory.getProp(e, t.r, 0, null, this), this.pointsType = PropertyFactory.getProp(e, t.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(e, t, r, i, s, a, n) {
|
|
2668
|
-
var f = r - Math.PI / 2, o = r + Math.PI / 2,
|
|
2669
|
-
e.setTripleAt(
|
|
2668
|
+
var f = r - Math.PI / 2, o = r + Math.PI / 2, p = t[0] + Math.cos(r) * i * s, v = t[1] - Math.sin(r) * i * s;
|
|
2669
|
+
e.setTripleAt(p, v, p + Math.cos(f) * a, v - Math.sin(f) * a, p + Math.cos(o) * n, v - Math.sin(o) * n, e.length());
|
|
2670
2670
|
}
|
|
2671
2671
|
function getPerpendicularVector(e, t) {
|
|
2672
2672
|
var r = [t[0] - e[0], t[1] - e[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(e, t, r, i, s, a, n) {
|
|
2680
|
-
var f = getProjectingAngle(t, r), o = t.v[r % t._length],
|
|
2681
|
-
setPoint(e, t.v[r % t._length], f, n, i,
|
|
2680
|
+
var f = getProjectingAngle(t, r), o = t.v[r % t._length], p = t.v[r === 0 ? t._length - 1 : r - 1], v = t.v[(r + 1) % t._length], x = a === 2 ? Math.sqrt(Math.pow(o[0] - p[0], 2) + Math.pow(o[1] - p[1], 2)) : 0, c = a === 2 ? Math.sqrt(Math.pow(o[0] - v[0], 2) + Math.pow(o[1] - v[1], 2)) : 0;
|
|
2681
|
+
setPoint(e, t.v[r % t._length], f, n, i, c / ((s + 1) * 2), x / ((s + 1) * 2));
|
|
2682
2682
|
}
|
|
2683
2683
|
function zigZagSegment(e, t, 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(t.points[3][0] - t.points[0][0], 2) + Math.pow(t.points[3][1] - t.points[0][1], 2)) : 0,
|
|
2686
|
-
setPoint(e, v,
|
|
2685
|
+
var f = (n + 1) / (i + 1), o = s === 2 ? Math.sqrt(Math.pow(t.points[3][0] - t.points[0][0], 2) + Math.pow(t.points[3][1] - t.points[0][1], 2)) : 0, p = t.normalAngle(f), v = t.point(f);
|
|
2686
|
+
setPoint(e, v, p, a, r, o / ((i + 1) * 2), o / ((i + 1) * 2)), a = -a;
|
|
2687
2687
|
}
|
|
2688
2688
|
return a;
|
|
2689
2689
|
}
|
|
@@ -2698,12 +2698,12 @@ var lottie$1 = { exports: {} };
|
|
|
2698
2698
|
}, ZigZagModifier.prototype.processShapes = function(e) {
|
|
2699
2699
|
var t, 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
|
|
2701
|
+
var p, v;
|
|
2702
2702
|
for (r = 0; r < i; r += 1) {
|
|
2703
|
-
if (
|
|
2704
|
-
for (v.releaseShapes(),
|
|
2703
|
+
if (p = this.shapes[r], v = p.localShapeCollection, !(!p.shape._mdf && !this._mdf && !e))
|
|
2704
|
+
for (v.releaseShapes(), p.shape._mdf = !0, t = p.shape.paths.shapes, a = p.shape.paths._length, s = 0; s < a; s += 1)
|
|
2705
2705
|
v.addShape(this.processPath(t[s], n, f, o));
|
|
2706
|
-
|
|
2706
|
+
p.shape.paths = p.localShapeCollection;
|
|
2707
2707
|
}
|
|
2708
2708
|
}
|
|
2709
2709
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
@@ -2715,19 +2715,19 @@ var lottie$1 = { exports: {} };
|
|
|
2715
2715
|
function offsetSegment(e, t) {
|
|
2716
2716
|
var r, i, s, a, n, f, o;
|
|
2717
2717
|
o = linearOffset(e.points[0], e.points[1], t), r = o[0], i = o[1], o = linearOffset(e.points[1], e.points[2], t), s = o[0], a = o[1], o = linearOffset(e.points[2], e.points[3], t), n = o[0], f = o[1];
|
|
2718
|
-
var
|
|
2719
|
-
|
|
2718
|
+
var p = lineIntersection(r, i, s, a);
|
|
2719
|
+
p === null && (p = i);
|
|
2720
2720
|
var v = lineIntersection(n, f, s, a);
|
|
2721
|
-
return v === null && (v = n), new PolynomialBezier(r,
|
|
2721
|
+
return v === null && (v = n), new PolynomialBezier(r, p, v, f);
|
|
2722
2722
|
}
|
|
2723
2723
|
function joinLines(e, t, r, i, s) {
|
|
2724
2724
|
var a = t.points[3], n = r.points[0];
|
|
2725
2725
|
if (i === 3 || pointEqual(a, n)) return a;
|
|
2726
2726
|
if (i === 2) {
|
|
2727
|
-
var f = -t.tangentAngle(1), o = -r.tangentAngle(0) + Math.PI,
|
|
2727
|
+
var f = -t.tangentAngle(1), o = -r.tangentAngle(0) + Math.PI, p = lineIntersection(a, polarOffset(a, f + Math.PI / 2, 100), n, polarOffset(n, f + Math.PI / 2, 100)), v = p ? pointDistance(p, a) : pointDistance(a, n) / 2, x = polarOffset(a, f, 2 * v * roundCorner);
|
|
2728
2728
|
return e.setXYAt(x[0], x[1], "o", e.length() - 1), x = polarOffset(n, o, 2 * v * roundCorner), e.setTripleAt(n[0], n[1], n[0], n[1], x[0], x[1], e.length()), n;
|
|
2729
2729
|
}
|
|
2730
|
-
var
|
|
2730
|
+
var c = pointEqual(a, t.points[2]) ? t.points[0] : t.points[2], b = pointEqual(n, r.points[1]) ? r.points[3] : r.points[1], g = lineIntersection(c, a, n, b);
|
|
2731
2731
|
return g && pointDistance(g, a) < s ? (e.setTripleAt(g[0], g[1], g[0], g[1], g[0], g[1], e.length()), g) : a;
|
|
2732
2732
|
}
|
|
2733
2733
|
function getIntersection(e, t) {
|
|
@@ -2762,29 +2762,29 @@ var lottie$1 = { exports: {} };
|
|
|
2762
2762
|
s.c = e.c;
|
|
2763
2763
|
var a = e.length();
|
|
2764
2764
|
e.c || (a -= 1);
|
|
2765
|
-
var n, f, o,
|
|
2765
|
+
var n, f, o, p = [];
|
|
2766
2766
|
for (n = 0; n < a; n += 1)
|
|
2767
|
-
o = PolynomialBezier.shapeSegment(e, n),
|
|
2767
|
+
o = PolynomialBezier.shapeSegment(e, n), p.push(offsetSegmentSplit(o, t));
|
|
2768
2768
|
if (!e.c)
|
|
2769
2769
|
for (n = a - 1; n >= 0; n -= 1)
|
|
2770
|
-
o = PolynomialBezier.shapeSegmentInverted(e, n),
|
|
2771
|
-
|
|
2770
|
+
o = PolynomialBezier.shapeSegmentInverted(e, n), p.push(offsetSegmentSplit(o, t));
|
|
2771
|
+
p = pruneIntersections(p);
|
|
2772
2772
|
var v = null, x = null;
|
|
2773
|
-
for (n = 0; n <
|
|
2774
|
-
var
|
|
2775
|
-
for (x && (v = joinLines(s, x,
|
|
2776
|
-
o =
|
|
2773
|
+
for (n = 0; n < p.length; n += 1) {
|
|
2774
|
+
var c = p[n];
|
|
2775
|
+
for (x && (v = joinLines(s, x, c[0], r, i)), x = c[c.length - 1], f = 0; f < c.length; f += 1)
|
|
2776
|
+
o = c[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
|
|
2778
|
+
return p.length && joinLines(s, x, p[0][0], r, i), s;
|
|
2779
2779
|
}, OffsetPathModifier.prototype.processShapes = function(e) {
|
|
2780
2780
|
var t, 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
|
|
2782
|
+
var p, v;
|
|
2783
2783
|
for (r = 0; r < i; r += 1) {
|
|
2784
|
-
if (
|
|
2785
|
-
for (v.releaseShapes(),
|
|
2784
|
+
if (p = this.shapes[r], v = p.localShapeCollection, !(!p.shape._mdf && !this._mdf && !e))
|
|
2785
|
+
for (v.releaseShapes(), p.shape._mdf = !0, t = p.shape.paths.shapes, a = p.shape.paths._length, s = 0; s < a; s += 1)
|
|
2786
2786
|
v.addShape(this.processPath(t[s], n, o, f));
|
|
2787
|
-
|
|
2787
|
+
p.shape.paths = p.localShapeCollection;
|
|
2788
2788
|
}
|
|
2789
2789
|
}
|
|
2790
2790
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
@@ -2828,8 +2828,8 @@ 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,
|
|
2832
|
-
function
|
|
2831
|
+
var i = 127988, s = 917631, a = 917601, n = 917626, f = 65039, o = 8205, p = 127462, v = 127487, x = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
|
|
2832
|
+
function c(P) {
|
|
2833
2833
|
var k = P.split(","), y, _ = k.length, w = [];
|
|
2834
2834
|
for (y = 0; y < _; y += 1)
|
|
2835
2835
|
k[y] !== "sans-serif" && k[y] !== "monospace" && w.push(k[y]);
|
|
@@ -2841,7 +2841,7 @@ var lottie$1 = { exports: {} };
|
|
|
2841
2841
|
var _ = createTag("span");
|
|
2842
2842
|
_.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(_), document.body.appendChild(y);
|
|
2843
2843
|
var w = _.offsetWidth;
|
|
2844
|
-
return _.style.fontFamily =
|
|
2844
|
+
return _.style.fontFamily = c(P) + ", " + k, {
|
|
2845
2845
|
node: _,
|
|
2846
2846
|
w,
|
|
2847
2847
|
parent: y
|
|
@@ -2853,20 +2853,20 @@ var lottie$1 = { exports: {} };
|
|
|
2853
2853
|
this.fonts[P].loaded ? w -= 1 : this.fonts[P].fOrigin === "n" || this.fonts[P].origin === 0 ? this.fonts[P].loaded = !0 : (y = this.fonts[P].monoCase.node, _ = this.fonts[P].monoCase.w, y.offsetWidth !== _ ? (w -= 1, this.fonts[P].loaded = !0) : (y = this.fonts[P].sansCase.node, _ = this.fonts[P].sansCase.w, y.offsetWidth !== _ && (w -= 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
|
w !== 0 && Date.now() - this.initTime < e ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10);
|
|
2855
2855
|
}
|
|
2856
|
-
function
|
|
2856
|
+
function d(P, k) {
|
|
2857
2857
|
var y = document.body && k ? "svg" : "canvas", _, w = getFontProperties(P);
|
|
2858
2858
|
if (y === "svg") {
|
|
2859
2859
|
var M = createNS("text");
|
|
2860
2860
|
M.style.fontSize = "100px", M.setAttribute("font-family", P.fFamily), M.setAttribute("font-style", w.style), M.setAttribute("font-weight", w.weight), M.textContent = "1", P.fClass ? (M.style.fontFamily = "inherit", M.setAttribute("class", P.fClass)) : M.style.fontFamily = P.fFamily, k.appendChild(M), _ = M;
|
|
2861
2861
|
} else {
|
|
2862
|
-
var
|
|
2863
|
-
|
|
2862
|
+
var O = new OffscreenCanvas(500, 500).getContext("2d");
|
|
2863
|
+
O.font = w.style + " " + w.weight + " 100px " + P.fFamily, _ = O;
|
|
2864
2864
|
}
|
|
2865
|
-
function
|
|
2865
|
+
function L(N) {
|
|
2866
2866
|
return y === "svg" ? (_.textContent = N, _.getComputedTextLength()) : _.measureText(N).width;
|
|
2867
2867
|
}
|
|
2868
2868
|
return {
|
|
2869
|
-
measureText:
|
|
2869
|
+
measureText: L
|
|
2870
2870
|
};
|
|
2871
2871
|
}
|
|
2872
2872
|
function E(P, k) {
|
|
@@ -2880,40 +2880,40 @@ 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
2887
|
var y = P.list, _, w = y.length, M = w;
|
|
2888
2888
|
for (_ = 0; _ < w; _ += 1) {
|
|
2889
|
-
var
|
|
2889
|
+
var O = !0, L, N;
|
|
2890
2890
|
if (y[_].loaded = !1, y[_].monoCase = b(y[_].fFamily, "monospace"), y[_].sansCase = b(y[_].fFamily, "sans-serif"), !y[_].fPath)
|
|
2891
2891
|
y[_].loaded = !0, M -= 1;
|
|
2892
2892
|
else if (y[_].fOrigin === "p" || y[_].origin === 3) {
|
|
2893
|
-
if (
|
|
2893
|
+
if (L = document.querySelectorAll('style[f-forigin="p"][f-family="' + y[_].fFamily + '"], style[f-origin="3"][f-family="' + y[_].fFamily + '"]'), L.length > 0 && (O = !1), O) {
|
|
2894
2894
|
var j = createTag("style");
|
|
2895
2895
|
j.setAttribute("f-forigin", y[_].fOrigin), j.setAttribute("f-origin", y[_].origin), j.setAttribute("f-family", y[_].fFamily), j.type = "text/css", j.innerText = "@font-face {font-family: " + y[_].fFamily + "; font-style: normal; src: url('" + y[_].fPath + "');}", k.appendChild(j);
|
|
2896
2896
|
}
|
|
2897
2897
|
} else if (y[_].fOrigin === "g" || y[_].origin === 1) {
|
|
2898
|
-
for (
|
|
2899
|
-
|
|
2900
|
-
if (
|
|
2898
|
+
for (L = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), N = 0; N < L.length; N += 1)
|
|
2899
|
+
L[N].href.indexOf(y[_].fPath) !== -1 && (O = !1);
|
|
2900
|
+
if (O) {
|
|
2901
2901
|
var H = createTag("link");
|
|
2902
2902
|
H.setAttribute("f-forigin", y[_].fOrigin), H.setAttribute("f-origin", y[_].origin), H.type = "text/css", H.rel = "stylesheet", H.href = y[_].fPath, document.body.appendChild(H);
|
|
2903
2903
|
}
|
|
2904
2904
|
} else if (y[_].fOrigin === "t" || y[_].origin === 2) {
|
|
2905
|
-
for (
|
|
2906
|
-
y[_].fPath ===
|
|
2907
|
-
if (
|
|
2905
|
+
for (L = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), N = 0; N < L.length; N += 1)
|
|
2906
|
+
y[_].fPath === L[N].src && (O = !1);
|
|
2907
|
+
if (O) {
|
|
2908
2908
|
var q = createTag("link");
|
|
2909
2909
|
q.setAttribute("f-forigin", y[_].fOrigin), q.setAttribute("f-origin", y[_].origin), q.setAttribute("rel", "stylesheet"), q.setAttribute("href", y[_].fPath), k.appendChild(q);
|
|
2910
2910
|
}
|
|
2911
2911
|
}
|
|
2912
|
-
y[_].helper =
|
|
2912
|
+
y[_].helper = d(y[_], k), y[_].cache = {}, this.fonts.push(y[_]);
|
|
2913
2913
|
}
|
|
2914
2914
|
M === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2916
|
+
function h(P) {
|
|
2917
2917
|
if (P) {
|
|
2918
2918
|
this.chars || (this.chars = []);
|
|
2919
2919
|
var k, y = P.length, _, w = this.chars.length, M;
|
|
@@ -2924,7 +2924,7 @@ var lottie$1 = { exports: {} };
|
|
|
2924
2924
|
}
|
|
2925
2925
|
}
|
|
2926
2926
|
}
|
|
2927
|
-
function
|
|
2927
|
+
function u(P, k, y) {
|
|
2928
2928
|
for (var _ = 0, w = this.chars.length; _ < w; ) {
|
|
2929
2929
|
if (this.chars[_].ch === P && this.chars[_].style === k && this.chars[_].fFamily === y)
|
|
2930
2930
|
return this.chars[_];
|
|
@@ -2932,13 +2932,13 @@ var lottie$1 = { exports: {} };
|
|
|
2932
2932
|
}
|
|
2933
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, k, y)), t;
|
|
2934
2934
|
}
|
|
2935
|
-
function
|
|
2935
|
+
function l(P, k, y) {
|
|
2936
2936
|
var _ = this.getFontByName(k), w = P;
|
|
2937
2937
|
if (!_.cache[w]) {
|
|
2938
2938
|
var M = _.helper;
|
|
2939
2939
|
if (P === " ") {
|
|
2940
|
-
var
|
|
2941
|
-
_.cache[w] = (
|
|
2940
|
+
var O = M.measureText("|" + P + "|"), L = M.measureText("||");
|
|
2941
|
+
_.cache[w] = (O - L) / 100;
|
|
2942
2942
|
} else
|
|
2943
2943
|
_.cache[w] = M.measureText(P) / 100;
|
|
2944
2944
|
}
|
|
@@ -2972,12 +2972,12 @@ var lottie$1 = { exports: {} };
|
|
|
2972
2972
|
}
|
|
2973
2973
|
function F(P) {
|
|
2974
2974
|
var k = S(P);
|
|
2975
|
-
return k >=
|
|
2975
|
+
return k >= p && k <= v;
|
|
2976
2976
|
}
|
|
2977
|
-
function
|
|
2977
|
+
function B(P) {
|
|
2978
2978
|
return F(P.substr(0, 2)) && F(P.substr(2, 2));
|
|
2979
2979
|
}
|
|
2980
|
-
function
|
|
2980
|
+
function R(P) {
|
|
2981
2981
|
return r.indexOf(P) !== -1;
|
|
2982
2982
|
}
|
|
2983
2983
|
function I(P, k) {
|
|
@@ -2992,21 +2992,21 @@ var lottie$1 = { exports: {} };
|
|
|
2992
2992
|
}
|
|
2993
2993
|
return S(P.substr(k, 2)) === s;
|
|
2994
2994
|
}
|
|
2995
|
-
function
|
|
2995
|
+
function D() {
|
|
2996
2996
|
this.isLoaded = !0;
|
|
2997
2997
|
}
|
|
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 = A, G.isFlagEmoji =
|
|
3001
|
+
G.isModifier = C, G.isZeroWidthJoiner = A, G.isFlagEmoji = B, G.isRegionalCode = F, G.isCombinedCharacter = R, G.isRegionalFlag = I, G.isVariationSelector = T, G.BLACK_FLAG_CODE_POINT = i;
|
|
3002
3002
|
var V = {
|
|
3003
|
-
addChars:
|
|
3003
|
+
addChars: h,
|
|
3004
3004
|
addFonts: E,
|
|
3005
|
-
getCharData:
|
|
3005
|
+
getCharData: u,
|
|
3006
3006
|
getFontByName: m,
|
|
3007
|
-
measureText:
|
|
3007
|
+
measureText: l,
|
|
3008
3008
|
checkLoadedFonts: g,
|
|
3009
|
-
setIsLoaded:
|
|
3009
|
+
setIsLoaded: D
|
|
3010
3010
|
};
|
|
3011
3011
|
return G.prototype = V, G;
|
|
3012
3012
|
}();
|
|
@@ -3464,9 +3464,9 @@ var lottie$1 = { exports: {} };
|
|
|
3464
3464
|
this.data = e, this.element = t, 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,
|
|
3467
|
+
var n, f = this.masksProperties, o = 0, p = [], v, x, c = createElementID(), b, g, d, E, h = "clipPath", u = "clip-path";
|
|
3468
3468
|
for (s = 0; s < a; s += 1)
|
|
3469
|
-
if ((f[s].mode !== "a" && f[s].mode !== "n" || f[s].inv || f[s].o.k !== 100 || f[s].o.x) && (
|
|
3469
|
+
if ((f[s].mode !== "a" && f[s].mode !== "n" || f[s].inv || f[s].o.k !== 100 || f[s].o.x) && (h = "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), p.push(b)) : b = null, n = createNS("path"), f[s].mode === "n")
|
|
3470
3470
|
this.viewData[s] = {
|
|
3471
3471
|
op: PropertyFactory.getProp(this.element, f[s].o, 0, 0.01, this.element),
|
|
3472
3472
|
prop: ShapePropertyFactory.getShapeProp(this.element, f[s], 3),
|
|
@@ -3475,24 +3475,24 @@ var lottie$1 = { exports: {} };
|
|
|
3475
3475
|
}, i.appendChild(n);
|
|
3476
3476
|
else {
|
|
3477
3477
|
o += 1, n.setAttribute("fill", f[s].mode === "s" ? "#000000" : "#ffffff"), n.setAttribute("clip-rule", "nonzero");
|
|
3478
|
-
var
|
|
3479
|
-
if (f[s].x.k !== 0 ? (
|
|
3478
|
+
var l;
|
|
3479
|
+
if (f[s].x.k !== 0 ? (h = "mask", u = "mask", E = PropertyFactory.getProp(this.element, f[s].x, 0, null, this.element), l = createElementID(), g = createNS("filter"), g.setAttribute("id", l), 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
|
-
filterId:
|
|
3485
|
+
filterId: l,
|
|
3486
3486
|
lastRadius: 0
|
|
3487
3487
|
}, f[s].mode === "i") {
|
|
3488
|
-
x =
|
|
3488
|
+
x = p.length;
|
|
3489
3489
|
var m = createNS("g");
|
|
3490
3490
|
for (v = 0; v < x; v += 1)
|
|
3491
|
-
m.appendChild(
|
|
3491
|
+
m.appendChild(p[v]);
|
|
3492
3492
|
var S = createNS("mask");
|
|
3493
|
-
S.setAttribute("mask-type", "alpha"), S.setAttribute("id",
|
|
3493
|
+
S.setAttribute("mask-type", "alpha"), S.setAttribute("id", c + "_" + o), S.appendChild(n), i.appendChild(S), m.setAttribute("mask", "url(" + getLocationHref() + "#" + c + "_" + o + ")"), p.length = 0, p.push(m);
|
|
3494
3494
|
} else
|
|
3495
|
-
|
|
3495
|
+
p.push(n);
|
|
3496
3496
|
f[s].inv && !this.solidPath && (this.solidPath = this.createLayerSolidPath()), this.viewData[s] = {
|
|
3497
3497
|
elem: n,
|
|
3498
3498
|
lastPath: "",
|
|
@@ -3501,9 +3501,9 @@ var lottie$1 = { exports: {} };
|
|
|
3501
3501
|
invRect: b
|
|
3502
3502
|
}, this.viewData[s].prop.k || this.drawPath(f[s], this.viewData[s].prop.v, this.viewData[s]);
|
|
3503
3503
|
}
|
|
3504
|
-
for (this.maskElement = createNS(
|
|
3505
|
-
this.maskElement.appendChild(
|
|
3506
|
-
o > 0 && (this.maskElement.setAttribute("id",
|
|
3504
|
+
for (this.maskElement = createNS(h), a = p.length, s = 0; s < a; s += 1)
|
|
3505
|
+
this.maskElement.appendChild(p[s]);
|
|
3506
|
+
o > 0 && (this.maskElement.setAttribute("id", c), this.element.maskedElement.setAttribute(u, "url(" + getLocationHref() + "#" + c + ")"), i.appendChild(this.maskElement)), this.viewData.length && this.element.addRenderableComponent(this);
|
|
3507
3507
|
}
|
|
3508
3508
|
MaskElement.prototype.getMaskProperty = function(e) {
|
|
3509
3509
|
return this.viewData[e].prop;
|
|
@@ -3558,8 +3558,8 @@ var lottie$1 = { exports: {} };
|
|
|
3558
3558
|
f = null;
|
|
3559
3559
|
var o = e.data.ef[t].ty;
|
|
3560
3560
|
if (registeredEffects$1[o]) {
|
|
3561
|
-
var
|
|
3562
|
-
f = new
|
|
3561
|
+
var p = registeredEffects$1[o].effect;
|
|
3562
|
+
f = new p(a, e.effectsManager.effectElements[t], e, idPrefix + n, r), r = idPrefix + n, registeredEffects$1[o].countsAsEffect && (n += 1);
|
|
3563
3563
|
}
|
|
3564
3564
|
f && this.filters.push(f);
|
|
3565
3565
|
}
|
|
@@ -3628,14 +3628,14 @@ var lottie$1 = { exports: {} };
|
|
|
3628
3628
|
} else if (t === 2) {
|
|
3629
3629
|
var o = createNS("mask");
|
|
3630
3630
|
o.setAttribute("id", r), o.setAttribute("mask-type", "alpha");
|
|
3631
|
-
var
|
|
3632
|
-
o.appendChild(
|
|
3631
|
+
var p = createNS("g");
|
|
3632
|
+
o.appendChild(p), i = createElementID(), s = filtersFactory.createFilter(i);
|
|
3633
3633
|
var v = createNS("feComponentTransfer");
|
|
3634
3634
|
v.setAttribute("in", "SourceGraphic"), s.appendChild(v);
|
|
3635
3635
|
var x = createNS("feFuncA");
|
|
3636
3636
|
x.setAttribute("type", "table"), x.setAttribute("tableValues", "1.0 0.0"), v.appendChild(x), this.globalData.defs.appendChild(s);
|
|
3637
|
-
var
|
|
3638
|
-
|
|
3637
|
+
var c = createNS("rect");
|
|
3638
|
+
c.setAttribute("width", this.comp.data.w), c.setAttribute("height", this.comp.data.h), c.setAttribute("x", "0"), c.setAttribute("y", "0"), c.setAttribute("fill", "#ffffff"), c.setAttribute("opacity", "0"), p.setAttribute("filter", "url(" + getLocationHref() + "#" + i + ")"), p.appendChild(c), a = createNS("use"), a.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), p.appendChild(a), featureSupport.maskType || (o.setAttribute("mask-type", "luminance"), s.appendChild(filtersFactory.createAlphaToLuminanceFilter()), n = createNS("g"), p.appendChild(c), n.appendChild(this.layerElement), p.appendChild(n)), this.globalData.defs.appendChild(o);
|
|
3639
3639
|
}
|
|
3640
3640
|
this.matteMasks[t] = r;
|
|
3641
3641
|
}
|
|
@@ -3895,12 +3895,12 @@ var lottie$1 = { exports: {} };
|
|
|
3895
3895
|
a.appendChild(n);
|
|
3896
3896
|
var f = createElementID(), o = createElementID();
|
|
3897
3897
|
a.setAttribute("id", o);
|
|
3898
|
-
var
|
|
3899
|
-
|
|
3898
|
+
var p = createNS(e.t === 1 ? "linearGradient" : "radialGradient");
|
|
3899
|
+
p.setAttribute("id", f), p.setAttribute("spreadMethod", "pad"), p.setAttribute("gradientUnits", "userSpaceOnUse"), s = e.g.k.k[0].s ? e.g.k.k[0].s.length : e.g.k.k.length;
|
|
3900
3900
|
var v = this.stops;
|
|
3901
3901
|
for (i = e.g.p * 4; i < s; i += 2)
|
|
3902
|
-
r = createNS("stop"), r.setAttribute("stop-color", "rgb(255,255,255)"),
|
|
3903
|
-
n.setAttribute(e.ty === "gf" ? "fill" : "stroke", "url(" + getLocationHref() + "#" + f + ")"), e.ty === "gs" && (n.setAttribute("stroke-linecap", lineCapEnum[e.lc || 2]), n.setAttribute("stroke-linejoin", lineJoinEnum[e.lj || 2]), e.lj === 1 && n.setAttribute("stroke-miterlimit", e.ml)), this.of =
|
|
3902
|
+
r = createNS("stop"), r.setAttribute("stop-color", "rgb(255,255,255)"), p.appendChild(r), v.push(r);
|
|
3903
|
+
n.setAttribute(e.ty === "gf" ? "fill" : "stroke", "url(" + getLocationHref() + "#" + f + ")"), e.ty === "gs" && (n.setAttribute("stroke-linecap", lineCapEnum[e.lc || 2]), n.setAttribute("stroke-linejoin", lineJoinEnum[e.lj || 2]), e.lj === 1 && n.setAttribute("stroke-miterlimit", e.ml)), this.of = p, this.ms = a, this.ost = v, this.maskId = o, t.msElem = n;
|
|
3904
3904
|
}
|
|
3905
3905
|
}, extendPrototype([DynamicPropertyContainer], SVGGradientFillStyleData);
|
|
3906
3906
|
function SVGGradientStrokeStyleData(e, t, r) {
|
|
@@ -3920,10 +3920,10 @@ var lottie$1 = { exports: {} };
|
|
|
3920
3920
|
var buildShapeString = function(t, r, i, s) {
|
|
3921
3921
|
if (r === 0)
|
|
3922
3922
|
return "";
|
|
3923
|
-
var a = t.o, n = t.i, f = t.v, o,
|
|
3923
|
+
var a = t.o, n = t.i, f = t.v, o, p = " M" + s.applyToPointStringified(f[0][0], f[0][1]);
|
|
3924
3924
|
for (o = 1; o < r; o += 1)
|
|
3925
|
-
|
|
3926
|
-
return i && r && (
|
|
3925
|
+
p += " C" + s.applyToPointStringified(a[o - 1][0], a[o - 1][1]) + " " + s.applyToPointStringified(n[o][0], n[o][1]) + " " + s.applyToPointStringified(f[o][0], f[o][1]);
|
|
3926
|
+
return i && r && (p += " C" + s.applyToPointStringified(a[o - 1][0], a[o - 1][1]) + " " + s.applyToPointStringified(n[0][0], n[0][1]) + " " + s.applyToPointStringified(f[0][0], f[0][1]), p += "z"), p;
|
|
3927
3927
|
}, SVGElementsRenderer = function() {
|
|
3928
3928
|
var e = new Matrix(), t = new Matrix(), r = {
|
|
3929
3929
|
createRenderFunction: i
|
|
@@ -3933,7 +3933,7 @@ var lottie$1 = { exports: {} };
|
|
|
3933
3933
|
case "fl":
|
|
3934
3934
|
return f;
|
|
3935
3935
|
case "gf":
|
|
3936
|
-
return
|
|
3936
|
+
return p;
|
|
3937
3937
|
case "gs":
|
|
3938
3938
|
return o;
|
|
3939
3939
|
case "st":
|
|
@@ -3951,76 +3951,76 @@ var lottie$1 = { exports: {} };
|
|
|
3951
3951
|
return null;
|
|
3952
3952
|
}
|
|
3953
3953
|
}
|
|
3954
|
-
function s(x,
|
|
3955
|
-
(b ||
|
|
3954
|
+
function s(x, c, b) {
|
|
3955
|
+
(b || c.transform.op._mdf) && c.transform.container.setAttribute("opacity", c.transform.op.v), (b || c.transform.mProps._mdf) && c.transform.container.setAttribute("transform", c.transform.mProps.v.to2dCSS());
|
|
3956
3956
|
}
|
|
3957
3957
|
function a() {
|
|
3958
3958
|
}
|
|
3959
|
-
function n(x,
|
|
3960
|
-
var g,
|
|
3961
|
-
for (
|
|
3962
|
-
if (
|
|
3963
|
-
for (A = t.reset(), T = S -
|
|
3964
|
-
|
|
3965
|
-
if (
|
|
3966
|
-
for (T = S -
|
|
3967
|
-
A.multiply(
|
|
3959
|
+
function n(x, c, b) {
|
|
3960
|
+
var g, d, E, h, u, l, m = c.styles.length, S = c.lvl, C, A, T, F;
|
|
3961
|
+
for (l = 0; l < m; l += 1) {
|
|
3962
|
+
if (h = c.sh._mdf || b, c.styles[l].lvl < S) {
|
|
3963
|
+
for (A = t.reset(), T = S - c.styles[l].lvl, F = c.transformers.length - 1; !h && T > 0; )
|
|
3964
|
+
h = c.transformers[F].mProps._mdf || h, T -= 1, F -= 1;
|
|
3965
|
+
if (h)
|
|
3966
|
+
for (T = S - c.styles[l].lvl, F = c.transformers.length - 1; T > 0; )
|
|
3967
|
+
A.multiply(c.transformers[F].mProps.v), T -= 1, F -= 1;
|
|
3968
3968
|
} else
|
|
3969
3969
|
A = e;
|
|
3970
|
-
if (C =
|
|
3971
|
-
for (E = "", g = 0; g <
|
|
3972
|
-
|
|
3973
|
-
|
|
3970
|
+
if (C = c.sh.paths, d = C._length, h) {
|
|
3971
|
+
for (E = "", g = 0; g < d; g += 1)
|
|
3972
|
+
u = C.shapes[g], u && u._length && (E += buildShapeString(u, u._length, u.c, A));
|
|
3973
|
+
c.caches[l] = E;
|
|
3974
3974
|
} else
|
|
3975
|
-
E =
|
|
3976
|
-
|
|
3975
|
+
E = c.caches[l];
|
|
3976
|
+
c.styles[l].d += x.hd === !0 ? "" : E, c.styles[l]._mdf = h || c.styles[l]._mdf;
|
|
3977
3977
|
}
|
|
3978
3978
|
}
|
|
3979
|
-
function f(x,
|
|
3980
|
-
var g =
|
|
3981
|
-
(
|
|
3979
|
+
function f(x, c, b) {
|
|
3980
|
+
var g = c.style;
|
|
3981
|
+
(c.c._mdf || b) && g.pElem.setAttribute("fill", "rgb(" + bmFloor(c.c.v[0]) + "," + bmFloor(c.c.v[1]) + "," + bmFloor(c.c.v[2]) + ")"), (c.o._mdf || b) && g.pElem.setAttribute("fill-opacity", c.o.v);
|
|
3982
3982
|
}
|
|
3983
|
-
function o(x,
|
|
3984
|
-
|
|
3983
|
+
function o(x, c, b) {
|
|
3984
|
+
p(x, c, b), v(x, c, b);
|
|
3985
3985
|
}
|
|
3986
|
-
function
|
|
3987
|
-
var g =
|
|
3988
|
-
if (
|
|
3989
|
-
var
|
|
3990
|
-
|
|
3986
|
+
function p(x, c, b) {
|
|
3987
|
+
var g = c.gf, d = c.g._hasOpacity, E = c.s.v, h = c.e.v;
|
|
3988
|
+
if (c.o._mdf || b) {
|
|
3989
|
+
var u = x.ty === "gf" ? "fill-opacity" : "stroke-opacity";
|
|
3990
|
+
c.style.pElem.setAttribute(u, c.o.v);
|
|
3991
3991
|
}
|
|
3992
|
-
if (
|
|
3993
|
-
var
|
|
3994
|
-
g.setAttribute(
|
|
3992
|
+
if (c.s._mdf || b) {
|
|
3993
|
+
var l = x.t === 1 ? "x1" : "cx", m = l === "x1" ? "y1" : "cy";
|
|
3994
|
+
g.setAttribute(l, E[0]), g.setAttribute(m, E[1]), d && !c.g._collapsable && (c.of.setAttribute(l, E[0]), c.of.setAttribute(m, E[1]));
|
|
3995
3995
|
}
|
|
3996
3996
|
var S, C, A, T;
|
|
3997
|
-
if (
|
|
3998
|
-
S =
|
|
3999
|
-
var F =
|
|
3997
|
+
if (c.g._cmdf || b) {
|
|
3998
|
+
S = c.cst;
|
|
3999
|
+
var F = c.g.c;
|
|
4000
4000
|
for (A = S.length, C = 0; C < A; C += 1)
|
|
4001
4001
|
T = S[C], T.setAttribute("offset", F[C * 4] + "%"), T.setAttribute("stop-color", "rgb(" + F[C * 4 + 1] + "," + F[C * 4 + 2] + "," + F[C * 4 + 3] + ")");
|
|
4002
4002
|
}
|
|
4003
|
-
if (
|
|
4004
|
-
var
|
|
4005
|
-
for (
|
|
4006
|
-
T = S[C],
|
|
4003
|
+
if (d && (c.g._omdf || b)) {
|
|
4004
|
+
var B = c.g.o;
|
|
4005
|
+
for (c.g._collapsable ? S = c.cst : S = c.ost, A = S.length, C = 0; C < A; C += 1)
|
|
4006
|
+
T = S[C], c.g._collapsable || T.setAttribute("offset", B[C * 2] + "%"), T.setAttribute("stop-opacity", B[C * 2 + 1]);
|
|
4007
4007
|
}
|
|
4008
4008
|
if (x.t === 1)
|
|
4009
|
-
(
|
|
4009
|
+
(c.e._mdf || b) && (g.setAttribute("x2", h[0]), g.setAttribute("y2", h[1]), d && !c.g._collapsable && (c.of.setAttribute("x2", h[0]), c.of.setAttribute("y2", h[1])));
|
|
4010
4010
|
else {
|
|
4011
|
-
var
|
|
4012
|
-
if ((
|
|
4013
|
-
|
|
4014
|
-
var I = Math.atan2(
|
|
4015
|
-
|
|
4016
|
-
var G =
|
|
4017
|
-
g.setAttribute("fx", V), g.setAttribute("fy", P),
|
|
4011
|
+
var R;
|
|
4012
|
+
if ((c.s._mdf || c.e._mdf || b) && (R = Math.sqrt(Math.pow(E[0] - h[0], 2) + Math.pow(E[1] - h[1], 2)), g.setAttribute("r", R), d && !c.g._collapsable && c.of.setAttribute("r", R)), c.s._mdf || c.e._mdf || c.h._mdf || c.a._mdf || b) {
|
|
4013
|
+
R || (R = Math.sqrt(Math.pow(E[0] - h[0], 2) + Math.pow(E[1] - h[1], 2)));
|
|
4014
|
+
var I = Math.atan2(h[1] - E[1], h[0] - E[0]), D = c.h.v;
|
|
4015
|
+
D >= 1 ? D = 0.99 : D <= -1 && (D = -0.99);
|
|
4016
|
+
var G = R * D, V = Math.cos(I + c.a.v) * G + E[0], P = Math.sin(I + c.a.v) * G + E[1];
|
|
4017
|
+
g.setAttribute("fx", V), g.setAttribute("fy", P), d && !c.g._collapsable && (c.of.setAttribute("fx", V), c.of.setAttribute("fy", P));
|
|
4018
4018
|
}
|
|
4019
4019
|
}
|
|
4020
4020
|
}
|
|
4021
|
-
function v(x,
|
|
4022
|
-
var g =
|
|
4023
|
-
|
|
4021
|
+
function v(x, c, b) {
|
|
4022
|
+
var g = c.style, d = c.d;
|
|
4023
|
+
d && (d._mdf || b) && d.dashStr && (g.pElem.setAttribute("stroke-dasharray", d.dashStr), g.pElem.setAttribute("stroke-dashoffset", d.dashoffset[0])), c.c && (c.c._mdf || b) && g.pElem.setAttribute("stroke", "rgb(" + bmFloor(c.c.v[0]) + "," + bmFloor(c.c.v[1]) + "," + bmFloor(c.c.v[2]) + ")"), (c.o._mdf || b) && g.pElem.setAttribute("stroke-opacity", c.o.v), (c.w._mdf || b) && (g.pElem.setAttribute("stroke-width", c.w.v), g.msElem && g.msElem.setAttribute("stroke-width", c.w.v));
|
|
4024
4024
|
}
|
|
4025
4025
|
return r;
|
|
4026
4026
|
}();
|
|
@@ -4088,10 +4088,10 @@ var lottie$1 = { exports: {} };
|
|
|
4088
4088
|
this.dynamicProperties[e].getValue();
|
|
4089
4089
|
this.renderModifiers();
|
|
4090
4090
|
}, SVGShapeElement.prototype.searchShapes = function(e, t, r, i, s, a, n) {
|
|
4091
|
-
var f = [].concat(a), o,
|
|
4092
|
-
for (o =
|
|
4091
|
+
var f = [].concat(a), o, p = e.length - 1, v, x, c = [], b = [], g, d, E;
|
|
4092
|
+
for (o = p; o >= 0; o -= 1) {
|
|
4093
4093
|
if (E = this.searchProcessedElement(e[o]), E ? t[o] = r[E - 1] : e[o]._render = n, e[o].ty === "fl" || e[o].ty === "st" || e[o].ty === "gf" || e[o].ty === "gs" || e[o].ty === "no")
|
|
4094
|
-
E ? t[o].style.closed = e[o].hd : t[o] = this.createStyleElement(e[o], s), e[o]._render && t[o].style.pElem.parentNode !== i && i.appendChild(t[o].style.pElem),
|
|
4094
|
+
E ? t[o].style.closed = e[o].hd : t[o] = this.createStyleElement(e[o], s), e[o]._render && t[o].style.pElem.parentNode !== i && i.appendChild(t[o].style.pElem), c.push(t[o].style);
|
|
4095
4095
|
else if (e[o].ty === "gr") {
|
|
4096
4096
|
if (!E)
|
|
4097
4097
|
t[o] = this.createGroupElement(e[o]);
|
|
@@ -4099,12 +4099,12 @@ var lottie$1 = { exports: {} };
|
|
|
4099
4099
|
for (x = t[o].it.length, v = 0; v < x; v += 1)
|
|
4100
4100
|
t[o].prevViewData[v] = t[o].it[v];
|
|
4101
4101
|
this.searchShapes(e[o].it, t[o].it, t[o].prevViewData, t[o].gr, s + 1, f, n), e[o]._render && t[o].gr.parentNode !== i && i.appendChild(t[o].gr);
|
|
4102
|
-
} else e[o].ty === "tr" ? (E || (t[o] = this.createTransformElement(e[o], i)), g = t[o].transform, f.push(g)) : e[o].ty === "sh" || e[o].ty === "rc" || e[o].ty === "el" || e[o].ty === "sr" ? (E || (t[o] = this.createShapeElement(e[o], f, s)), this.setElementStyles(t[o])) : e[o].ty === "tm" || e[o].ty === "rd" || e[o].ty === "ms" || e[o].ty === "pb" || e[o].ty === "zz" || e[o].ty === "op" ? (E ? (
|
|
4102
|
+
} else e[o].ty === "tr" ? (E || (t[o] = this.createTransformElement(e[o], i)), g = t[o].transform, f.push(g)) : e[o].ty === "sh" || e[o].ty === "rc" || e[o].ty === "el" || e[o].ty === "sr" ? (E || (t[o] = this.createShapeElement(e[o], f, s)), this.setElementStyles(t[o])) : e[o].ty === "tm" || e[o].ty === "rd" || e[o].ty === "ms" || e[o].ty === "pb" || e[o].ty === "zz" || e[o].ty === "op" ? (E ? (d = t[o], d.closed = !1) : (d = ShapeModifiers.getModifier(e[o].ty), d.init(this, e[o]), t[o] = d, this.shapeModifiers.push(d)), b.push(d)) : e[o].ty === "rp" && (E ? (d = t[o], d.closed = !0) : (d = ShapeModifiers.getModifier(e[o].ty), t[o] = d, d.init(this, e, o, t), this.shapeModifiers.push(d), n = !1), b.push(d));
|
|
4103
4103
|
this.addProcessedElement(e[o], o + 1);
|
|
4104
4104
|
}
|
|
4105
|
-
for (
|
|
4106
|
-
|
|
4107
|
-
for (
|
|
4105
|
+
for (p = c.length, o = 0; o < p; o += 1)
|
|
4106
|
+
c[o].closed = !0;
|
|
4107
|
+
for (p = b.length, o = 0; o < p; o += 1)
|
|
4108
4108
|
b[o].closed = !0;
|
|
4109
4109
|
}, SVGShapeElement.prototype.renderInnerContent = function() {
|
|
4110
4110
|
this.renderModifiers();
|
|
@@ -4203,36 +4203,36 @@ var lottie$1 = { exports: {} };
|
|
|
4203
4203
|
return t;
|
|
4204
4204
|
}, TextProperty.prototype.completeTextData = function(e) {
|
|
4205
4205
|
e.__complete = !0;
|
|
4206
|
-
var t = this.elem.globalData.fontManager, r = this.data, i = [], s, a, n, f = 0, o,
|
|
4206
|
+
var t = this.elem.globalData.fontManager, r = this.data, i = [], s, a, n, f = 0, o, p = r.m.g, v = 0, x = 0, c = 0, b = [], g = 0, d = 0, E, h, u = t.getFontByName(e.f), l, m = 0, S = getFontProperties(u);
|
|
4207
4207
|
e.fWeight = S.weight, e.fStyle = S.style, e.finalSize = e.s, e.finalText = this.buildFinalText(e.t), a = e.finalText.length, e.finalLineHeight = e.lh;
|
|
4208
4208
|
var C = e.tr / 1e3 * e.finalSize, A;
|
|
4209
4209
|
if (e.sz)
|
|
4210
|
-
for (var T = !0, F = e.sz[0],
|
|
4211
|
-
I = this.buildFinalText(e.t),
|
|
4212
|
-
var
|
|
4210
|
+
for (var T = !0, F = e.sz[0], B = e.sz[1], R, I; T; ) {
|
|
4211
|
+
I = this.buildFinalText(e.t), R = 0, g = 0, a = I.length, C = e.tr / 1e3 * e.finalSize;
|
|
4212
|
+
var D = -1;
|
|
4213
4213
|
for (s = 0; s < a; s += 1)
|
|
4214
|
-
A = I[s].charCodeAt(0), n = !1, I[s] === " " ?
|
|
4215
|
-
|
|
4214
|
+
A = I[s].charCodeAt(0), n = !1, I[s] === " " ? D = s : (A === 13 || A === 3) && (g = 0, n = !0, R += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (l = t.getCharData(I[s], u.fStyle, u.fFamily), m = n ? 0 : l.w * e.finalSize / 100) : m = t.measureText(I[s], e.f, e.finalSize), g + m > F && I[s] !== " " ? (D === -1 ? a += 1 : s = D, R += e.finalLineHeight || e.finalSize * 1.2, I.splice(s, D === s ? 1 : 0, "\r"), D = -1, g = 0) : (g += m, g += C);
|
|
4215
|
+
R += u.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && B < R ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = I, a = e.finalText.length, T = !1);
|
|
4216
4216
|
}
|
|
4217
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 = e.finalText[s], A = V.charCodeAt(0), A === 13 || A === 3 ? (G = 0, b.push(g),
|
|
4220
|
+
if (n = !1, V = e.finalText[s], A = V.charCodeAt(0), A === 13 || A === 3 ? (G = 0, b.push(g), d = g > d ? g : d, g = -2 * C, o = "", n = !0, c += 1) : o = V, t.chars ? (l = t.getCharData(V, u.fStyle, t.getFontByName(e.f).fFamily), m = n ? 0 : l.w * e.finalSize / 100) : m = t.measureText(o, e.f, e.finalSize), V === " " ? G += m + C : (g += m + C + G, G = 0), i.push({
|
|
4221
4221
|
l: m,
|
|
4222
4222
|
an: m,
|
|
4223
4223
|
add: v,
|
|
4224
4224
|
n,
|
|
4225
4225
|
anIndexes: [],
|
|
4226
4226
|
val: o,
|
|
4227
|
-
line:
|
|
4227
|
+
line: c,
|
|
4228
4228
|
animatorJustifyOffset: 0
|
|
4229
|
-
}),
|
|
4229
|
+
}), p == 2) {
|
|
4230
4230
|
if (v += m, o === "" || o === " " || s === a - 1) {
|
|
4231
4231
|
for ((o === "" || o === " ") && (v -= m); x <= s; )
|
|
4232
4232
|
i[x].an = v, i[x].ind = f, i[x].extra = m, x += 1;
|
|
4233
4233
|
f += 1, v = 0;
|
|
4234
4234
|
}
|
|
4235
|
-
} else if (
|
|
4235
|
+
} else if (p == 3) {
|
|
4236
4236
|
if (v += m, o === "" || s === a - 1) {
|
|
4237
4237
|
for (o === "" && (v -= m); x <= s; )
|
|
4238
4238
|
i[x].an = v, i[x].ind = f, i[x].extra = m, x += 1;
|
|
@@ -4240,10 +4240,10 @@ var lottie$1 = { exports: {} };
|
|
|
4240
4240
|
}
|
|
4241
4241
|
} else
|
|
4242
4242
|
i[f].ind = f, i[f].extra = 0, f += 1;
|
|
4243
|
-
if (e.l = i,
|
|
4243
|
+
if (e.l = i, d = g > d ? g : d, b.push(g), e.sz)
|
|
4244
4244
|
e.boxWidth = e.sz[0], e.justifyOffset = 0;
|
|
4245
4245
|
else
|
|
4246
|
-
switch (e.boxWidth =
|
|
4246
|
+
switch (e.boxWidth = d, e.j) {
|
|
4247
4247
|
case 1:
|
|
4248
4248
|
e.justifyOffset = -e.boxWidth;
|
|
4249
4249
|
break;
|
|
@@ -4255,18 +4255,18 @@ var lottie$1 = { exports: {} };
|
|
|
4255
4255
|
}
|
|
4256
4256
|
e.lineWidths = b;
|
|
4257
4257
|
var P = r.a, k, y;
|
|
4258
|
-
|
|
4258
|
+
h = P.length;
|
|
4259
4259
|
var _, w, M = [];
|
|
4260
|
-
for (E = 0; E <
|
|
4260
|
+
for (E = 0; E < h; E += 1) {
|
|
4261
4261
|
for (k = P[E], k.a.sc && (e.strokeColorAnim = !0), k.a.sw && (e.strokeWidthAnim = !0), (k.a.fc || k.a.fh || k.a.fs || k.a.fb) && (e.fillColorAnim = !0), w = 0, _ = k.s.b, s = 0; s < a; s += 1)
|
|
4262
4262
|
y = i[s], y.anIndexes[E] = w, (_ == 1 && y.val !== "" || _ == 2 && y.val !== "" && y.val !== " " || _ == 3 && (y.n || y.val == " " || s == a - 1) || _ == 4 && (y.n || s == a - 1)) && (k.s.rn === 1 && M.push(w), w += 1);
|
|
4263
4263
|
r.a[E].s.totalChars = w;
|
|
4264
|
-
var
|
|
4264
|
+
var O = -1, L;
|
|
4265
4265
|
if (k.s.rn === 1)
|
|
4266
4266
|
for (s = 0; s < a; s += 1)
|
|
4267
|
-
y = i[s],
|
|
4267
|
+
y = i[s], O != y.anIndexes[E] && (O = y.anIndexes[E], L = M.splice(Math.floor(Math.random() * M.length), 1)[0]), y.anIndexes[E] = L;
|
|
4268
4268
|
}
|
|
4269
|
-
e.yOffset = e.finalLineHeight || e.finalSize * 1.2, e.ls = e.ls || 0, e.ascent =
|
|
4269
|
+
e.yOffset = e.finalLineHeight || e.finalSize * 1.2, e.ls = e.ls || 0, e.ascent = u.ascent * e.finalSize / 100;
|
|
4270
4270
|
}, TextProperty.prototype.updateDocumentData = function(e, t) {
|
|
4271
4271
|
t = t === void 0 ? this.keysIndex : t;
|
|
4272
4272
|
var r = this.copyData({}, this.data.d.k[t].s);
|
|
@@ -4299,42 +4299,42 @@ 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,
|
|
4303
|
-
this.ne.v > 0 ? f = this.ne.v / 100 : o = -this.ne.v / 100, this.xe.v > 0 ?
|
|
4304
|
-
var x = BezierFactory.getBezierEasing(f, o,
|
|
4305
|
-
if (
|
|
4306
|
-
g === b ?
|
|
4307
|
-
else if (
|
|
4308
|
-
g === b ?
|
|
4309
|
-
else if (
|
|
4310
|
-
g === b ?
|
|
4311
|
-
else if (
|
|
4302
|
+
var f = 0, o = 0, p = 1, v = 1;
|
|
4303
|
+
this.ne.v > 0 ? f = this.ne.v / 100 : o = -this.ne.v / 100, this.xe.v > 0 ? p = 1 - this.xe.v / 100 : v = 1 + this.xe.v / 100;
|
|
4304
|
+
var x = BezierFactory.getBezierEasing(f, o, p, v).get, c = 0, b = this.finalS, g = this.finalE, d = this.data.sh;
|
|
4305
|
+
if (d === 2)
|
|
4306
|
+
g === b ? c = n >= g ? 1 : 0 : c = e(0, t(0.5 / (g - b) + (n - b) / (g - b), 1)), c = x(c);
|
|
4307
|
+
else if (d === 3)
|
|
4308
|
+
g === b ? c = n >= g ? 0 : 1 : c = 1 - e(0, t(0.5 / (g - b) + (n - b) / (g - b), 1)), c = x(c);
|
|
4309
|
+
else if (d === 4)
|
|
4310
|
+
g === b ? c = 0 : (c = e(0, t(0.5 / (g - b) + (n - b) / (g - b), 1)), c < 0.5 ? c *= 2 : c = 1 - 2 * (c - 0.5)), c = x(c);
|
|
4311
|
+
else if (d === 5) {
|
|
4312
4312
|
if (g === b)
|
|
4313
|
-
|
|
4313
|
+
c = 0;
|
|
4314
4314
|
else {
|
|
4315
4315
|
var E = g - b;
|
|
4316
4316
|
n = t(e(0, n + 0.5 - b), g - b);
|
|
4317
|
-
var
|
|
4318
|
-
|
|
4317
|
+
var h = -E / 2 + n, u = E / 2;
|
|
4318
|
+
c = Math.sqrt(1 - h * h / (u * u));
|
|
4319
4319
|
}
|
|
4320
|
-
|
|
4321
|
-
} else
|
|
4320
|
+
c = x(c);
|
|
4321
|
+
} else d === 6 ? (g === b ? c = 0 : (n = t(e(0, n + 0.5 - b), g - b), c = (1 + Math.cos(Math.PI + Math.PI * 2 * n / (g - b))) / 2), c = x(c)) : (n >= r(b) && (n - b < 0 ? c = e(0, t(t(g, 1) - (b - n), 1)) : c = e(0, t(g - n, 1))), c = x(c));
|
|
4322
4322
|
if (this.sm.v !== 100) {
|
|
4323
|
-
var
|
|
4324
|
-
|
|
4325
|
-
var m = 0.5 -
|
|
4326
|
-
|
|
4323
|
+
var l = this.sm.v * 0.01;
|
|
4324
|
+
l === 0 && (l = 1e-8);
|
|
4325
|
+
var m = 0.5 - l * 0.5;
|
|
4326
|
+
c < m ? c = 0 : (c = (c - m) / l, c > 1 && (c = 1));
|
|
4327
4327
|
}
|
|
4328
|
-
return
|
|
4328
|
+
return c * 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,
|
|
4333
|
-
if (
|
|
4334
|
-
var x =
|
|
4335
|
-
|
|
4332
|
+
var f = this.data.r === 2 ? 1 : 100 / this.data.totalChars, o = this.o.v / f, p = this.s.v / f + o, v = this.e.v / f + o;
|
|
4333
|
+
if (p > v) {
|
|
4334
|
+
var x = p;
|
|
4335
|
+
p = v, v = x;
|
|
4336
4336
|
}
|
|
4337
|
-
this.finalS =
|
|
4337
|
+
this.finalS = p, this.finalE = v;
|
|
4338
4338
|
}
|
|
4339
4339
|
}, extendPrototype([DynamicPropertyContainer], i);
|
|
4340
4340
|
function s(a, n, f) {
|
|
@@ -4387,104 +4387,104 @@ var lottie$1 = { exports: {} };
|
|
|
4387
4387
|
}, TextAnimatorProperty.prototype.getMeasures = function(e, t) {
|
|
4388
4388
|
if (this.lettersChangedFlag = t, !(!this._mdf && !this._isFirstFrame && !t && (!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,
|
|
4390
|
+
var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, a = this.mHelper, n = this._renderType, f = this.renderedLetters.length, o, p, v, x, c = e.l, b, g, d, E, h, u, l, m, S, C, A, T, F, B, R;
|
|
4391
4391
|
if (this._hasMaskedPath) {
|
|
4392
|
-
if (
|
|
4393
|
-
var I =
|
|
4392
|
+
if (R = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
4393
|
+
var I = R.v;
|
|
4394
4394
|
this._pathData.r.v && (I = I.reverse()), b = {
|
|
4395
4395
|
tLength: 0,
|
|
4396
4396
|
segments: []
|
|
4397
4397
|
}, x = I._length - 1;
|
|
4398
|
-
var
|
|
4398
|
+
var D;
|
|
4399
4399
|
for (T = 0, v = 0; v < x; v += 1)
|
|
4400
|
-
|
|
4401
|
-
v = x,
|
|
4400
|
+
D = 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 += D.segmentLength, b.segments.push(D), T += D.segmentLength;
|
|
4401
|
+
v = x, R.v.c && (D = 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 += D.segmentLength, b.segments.push(D), T += D.segmentLength), this._pathData.pi = b;
|
|
4402
4402
|
}
|
|
4403
|
-
if (b = this._pathData.pi, g = this._pathData.f.v,
|
|
4404
|
-
for (b.tLength < Math.abs(g) && (g = -Math.abs(g) % b.tLength),
|
|
4405
|
-
g += S[
|
|
4406
|
-
S = C[
|
|
4403
|
+
if (b = this._pathData.pi, g = this._pathData.f.v, l = 0, u = 1, E = 0, h = !0, C = b.segments, g < 0 && R.v.c)
|
|
4404
|
+
for (b.tLength < Math.abs(g) && (g = -Math.abs(g) % b.tLength), l = C.length - 1, S = C[l].points, u = S.length - 1; g < 0; )
|
|
4405
|
+
g += S[u].partialLength, u -= 1, u < 0 && (l -= 1, S = C[l].points, u = S.length - 1);
|
|
4406
|
+
S = C[l].points, m = S[u - 1], d = S[u], A = d.partialLength;
|
|
4407
4407
|
}
|
|
4408
|
-
x =
|
|
4408
|
+
x = c.length, o = 0, p = 0;
|
|
4409
4409
|
var G = e.finalSize * 1.2 * 0.714, V = !0, P, k, y, _, w;
|
|
4410
4410
|
_ = i.length;
|
|
4411
|
-
var M,
|
|
4411
|
+
var M, O = -1, L, N, j, H = g, q = l, Y = u, Q = -1, X, $, K, W, z, te, ae, re, ee = "", ie = this.defaultPropsArray, se;
|
|
4412
4412
|
if (e.j === 2 || e.j === 1) {
|
|
4413
4413
|
var J = 0, ne = 0, oe = e.j === 2 ? -0.5 : -1, Z = 0, fe = !0;
|
|
4414
4414
|
for (v = 0; v < x; v += 1)
|
|
4415
|
-
if (
|
|
4415
|
+
if (c[v].n) {
|
|
4416
4416
|
for (J && (J += ne); Z < v; )
|
|
4417
|
-
|
|
4417
|
+
c[Z].animatorJustifyOffset = J, Z += 1;
|
|
4418
4418
|
J = 0, fe = !0;
|
|
4419
4419
|
} else {
|
|
4420
4420
|
for (y = 0; y < _; y += 1)
|
|
4421
|
-
P = i[y].a, P.t.propType && (fe && e.j === 2 && (ne += P.t.v * oe), k = i[y].s, M = k.getMult(
|
|
4421
|
+
P = i[y].a, P.t.propType && (fe && e.j === 2 && (ne += P.t.v * oe), k = i[y].s, M = k.getMult(c[v].anIndexes[y], s.a[y].s.totalChars), M.length ? J += P.t.v * M[0] * oe : J += P.t.v * M * oe);
|
|
4422
4422
|
fe = !1;
|
|
4423
4423
|
}
|
|
4424
4424
|
for (J && (J += ne); Z < v; )
|
|
4425
|
-
|
|
4425
|
+
c[Z].animatorJustifyOffset = J, Z += 1;
|
|
4426
4426
|
}
|
|
4427
4427
|
for (v = 0; v < x; v += 1) {
|
|
4428
|
-
if (a.reset(), X = 1,
|
|
4429
|
-
o = 0,
|
|
4428
|
+
if (a.reset(), X = 1, c[v].n)
|
|
4429
|
+
o = 0, p += e.yOffset, p += V ? 1 : 0, g = H, V = !1, this._hasMaskedPath && (l = q, u = Y, S = C[l].points, m = S[u - 1], d = S[u], A = d.partialLength, E = 0), ee = "", re = "", te = "", se = "", ie = this.defaultPropsArray;
|
|
4430
4430
|
else {
|
|
4431
4431
|
if (this._hasMaskedPath) {
|
|
4432
|
-
if (Q !==
|
|
4432
|
+
if (Q !== c[v].line) {
|
|
4433
4433
|
switch (e.j) {
|
|
4434
4434
|
case 1:
|
|
4435
|
-
g += T - e.lineWidths[
|
|
4435
|
+
g += T - e.lineWidths[c[v].line];
|
|
4436
4436
|
break;
|
|
4437
4437
|
case 2:
|
|
4438
|
-
g += (T - e.lineWidths[
|
|
4438
|
+
g += (T - e.lineWidths[c[v].line]) / 2;
|
|
4439
4439
|
break;
|
|
4440
4440
|
}
|
|
4441
|
-
Q =
|
|
4441
|
+
Q = c[v].line;
|
|
4442
4442
|
}
|
|
4443
|
-
|
|
4443
|
+
O !== c[v].ind && (c[O] && (g += c[O].extra), g += c[v].an / 2, O = c[v].ind), g += r[0] * c[v].an * 5e-3;
|
|
4444
4444
|
var U = 0;
|
|
4445
4445
|
for (y = 0; y < _; y += 1)
|
|
4446
|
-
P = i[y].a, P.p.propType && (k = i[y].s, M = k.getMult(
|
|
4447
|
-
for (
|
|
4448
|
-
E + A >= g + U || !S ? (F = (g + U - E) /
|
|
4449
|
-
|
|
4446
|
+
P = i[y].a, P.p.propType && (k = i[y].s, M = k.getMult(c[v].anIndexes[y], s.a[y].s.totalChars), M.length ? U += P.p.v[0] * M[0] : U += P.p.v[0] * M), P.a.propType && (k = i[y].s, M = k.getMult(c[v].anIndexes[y], s.a[y].s.totalChars), M.length ? U += P.a.v[0] * M[0] : U += P.a.v[0] * M);
|
|
4447
|
+
for (h = !0, this._pathData.a.v && (g = c[0].an * 0.5 + (T - this._pathData.f.v - c[0].an * 0.5 - c[c.length - 1].an * 0.5) * O / (x - 1), g += this._pathData.f.v); h; )
|
|
4448
|
+
E + A >= g + U || !S ? (F = (g + U - E) / d.partialLength, N = m.point[0] + (d.point[0] - m.point[0]) * F, j = m.point[1] + (d.point[1] - m.point[1]) * F, a.translate(-r[0] * c[v].an * 5e-3, -(r[1] * G) * 0.01), h = !1) : S && (E += d.partialLength, u += 1, u >= S.length && (u = 0, l += 1, C[l] ? S = C[l].points : R.v.c ? (u = 0, l = 0, S = C[l].points) : (E -= d.partialLength, S = null)), S && (m = d, d = S[u], A = d.partialLength));
|
|
4449
|
+
L = c[v].an / 2 - c[v].add, a.translate(-L, 0, 0);
|
|
4450
4450
|
} else
|
|
4451
|
-
|
|
4451
|
+
L = c[v].an / 2 - c[v].add, a.translate(-L, 0, 0), a.translate(-r[0] * c[v].an * 5e-3, -r[1] * G * 0.01, 0);
|
|
4452
4452
|
for (y = 0; y < _; y += 1)
|
|
4453
|
-
P = i[y].a, P.t.propType && (k = i[y].s, M = k.getMult(
|
|
4453
|
+
P = i[y].a, P.t.propType && (k = i[y].s, M = k.getMult(c[v].anIndexes[y], s.a[y].s.totalChars), (o !== 0 || e.j !== 0) && (this._hasMaskedPath ? M.length ? g += P.t.v * M[0] : g += P.t.v * M : M.length ? o += P.t.v * M[0] : o += P.t.v * M));
|
|
4454
4454
|
for (e.strokeWidthAnim && (K = e.sw || 0), e.strokeColorAnim && (e.sc ? $ = [e.sc[0], e.sc[1], e.sc[2]] : $ = [0, 0, 0]), e.fillColorAnim && e.fc && (W = [e.fc[0], e.fc[1], e.fc[2]]), y = 0; y < _; y += 1)
|
|
4455
|
-
P = i[y].a, P.a.propType && (k = i[y].s, M = k.getMult(
|
|
4455
|
+
P = i[y].a, P.a.propType && (k = i[y].s, M = k.getMult(c[v].anIndexes[y], s.a[y].s.totalChars), M.length ? a.translate(-P.a.v[0] * M[0], -P.a.v[1] * M[1], P.a.v[2] * M[2]) : a.translate(-P.a.v[0] * M, -P.a.v[1] * M, P.a.v[2] * M));
|
|
4456
4456
|
for (y = 0; y < _; y += 1)
|
|
4457
|
-
P = i[y].a, P.s.propType && (k = i[y].s, M = k.getMult(
|
|
4457
|
+
P = i[y].a, P.s.propType && (k = i[y].s, M = k.getMult(c[v].anIndexes[y], s.a[y].s.totalChars), M.length ? a.scale(1 + (P.s.v[0] - 1) * M[0], 1 + (P.s.v[1] - 1) * M[1], 1) : a.scale(1 + (P.s.v[0] - 1) * M, 1 + (P.s.v[1] - 1) * M, 1));
|
|
4458
4458
|
for (y = 0; y < _; y += 1) {
|
|
4459
|
-
if (P = i[y].a, k = i[y].s, M = k.getMult(
|
|
4460
|
-
for (
|
|
4461
|
-
M.length ? $[
|
|
4459
|
+
if (P = i[y].a, k = i[y].s, M = k.getMult(c[v].anIndexes[y], s.a[y].s.totalChars), P.sk.propType && (M.length ? a.skewFromAxis(-P.sk.v * M[0], P.sa.v * M[1]) : a.skewFromAxis(-P.sk.v * M, P.sa.v * M)), P.r.propType && (M.length ? a.rotateZ(-P.r.v * M[2]) : a.rotateZ(-P.r.v * M)), P.ry.propType && (M.length ? a.rotateY(P.ry.v * M[1]) : a.rotateY(P.ry.v * M)), P.rx.propType && (M.length ? a.rotateX(P.rx.v * M[0]) : a.rotateX(P.rx.v * M)), P.o.propType && (M.length ? X += (P.o.v * M[0] - X) * M[0] : X += (P.o.v * M - X) * M), e.strokeWidthAnim && P.sw.propType && (M.length ? K += P.sw.v * M[0] : K += P.sw.v * M), e.strokeColorAnim && P.sc.propType)
|
|
4460
|
+
for (z = 0; z < 3; z += 1)
|
|
4461
|
+
M.length ? $[z] += (P.sc.v[z] - $[z]) * M[0] : $[z] += (P.sc.v[z] - $[z]) * M;
|
|
4462
4462
|
if (e.fillColorAnim && e.fc) {
|
|
4463
4463
|
if (P.fc.propType)
|
|
4464
|
-
for (
|
|
4465
|
-
M.length ? W[
|
|
4464
|
+
for (z = 0; z < 3; z += 1)
|
|
4465
|
+
M.length ? W[z] += (P.fc.v[z] - W[z]) * M[0] : W[z] += (P.fc.v[z] - W[z]) * M;
|
|
4466
4466
|
P.fh.propType && (M.length ? W = addHueToRGB(W, P.fh.v * M[0]) : W = addHueToRGB(W, P.fh.v * M)), P.fs.propType && (M.length ? W = addSaturationToRGB(W, P.fs.v * M[0]) : W = addSaturationToRGB(W, P.fs.v * M)), P.fb.propType && (M.length ? W = addBrightnessToRGB(W, P.fb.v * M[0]) : W = addBrightnessToRGB(W, P.fb.v * M));
|
|
4467
4467
|
}
|
|
4468
4468
|
}
|
|
4469
4469
|
for (y = 0; y < _; y += 1)
|
|
4470
|
-
P = i[y].a, P.p.propType && (k = i[y].s, M = k.getMult(
|
|
4470
|
+
P = i[y].a, P.p.propType && (k = i[y].s, M = k.getMult(c[v].anIndexes[y], s.a[y].s.totalChars), this._hasMaskedPath ? M.length ? a.translate(0, P.p.v[1] * M[0], -P.p.v[2] * M[1]) : a.translate(0, P.p.v[1] * M, -P.p.v[2] * M) : M.length ? a.translate(P.p.v[0] * M[0], P.p.v[1] * M[1], -P.p.v[2] * M[2]) : a.translate(P.p.v[0] * M, P.p.v[1] * M, -P.p.v[2] * M));
|
|
4471
4471
|
if (e.strokeWidthAnim && (te = K < 0 ? 0 : K), e.strokeColorAnim && (ae = "rgb(" + Math.round($[0] * 255) + "," + Math.round($[1] * 255) + "," + Math.round($[2] * 255) + ")"), e.fillColorAnim && e.fc && (re = "rgb(" + Math.round(W[0] * 255) + "," + Math.round(W[1] * 255) + "," + Math.round(W[2] * 255) + ")"), this._hasMaskedPath) {
|
|
4472
|
-
if (a.translate(0, -e.ls), a.translate(0, r[1] * G * 0.01 +
|
|
4473
|
-
|
|
4474
|
-
var he = Math.atan(
|
|
4475
|
-
|
|
4472
|
+
if (a.translate(0, -e.ls), a.translate(0, r[1] * G * 0.01 + p, 0), this._pathData.p.v) {
|
|
4473
|
+
B = (d.point[1] - m.point[1]) / (d.point[0] - m.point[0]);
|
|
4474
|
+
var he = Math.atan(B) * 180 / Math.PI;
|
|
4475
|
+
d.point[0] < m.point[0] && (he += 180), a.rotate(-he * Math.PI / 180);
|
|
4476
4476
|
}
|
|
4477
|
-
a.translate(N, j, 0), g -= r[0] *
|
|
4477
|
+
a.translate(N, j, 0), g -= r[0] * c[v].an * 5e-3, c[v + 1] && O !== c[v + 1].ind && (g += c[v].an / 2, g += e.tr * 1e-3 * e.finalSize);
|
|
4478
4478
|
} else {
|
|
4479
|
-
switch (a.translate(o,
|
|
4479
|
+
switch (a.translate(o, p, 0), e.ps && a.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) {
|
|
4480
4480
|
case 1:
|
|
4481
|
-
a.translate(
|
|
4481
|
+
a.translate(c[v].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[c[v].line]), 0, 0);
|
|
4482
4482
|
break;
|
|
4483
4483
|
case 2:
|
|
4484
|
-
a.translate(
|
|
4484
|
+
a.translate(c[v].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[c[v].line]) / 2, 0, 0);
|
|
4485
4485
|
break;
|
|
4486
4486
|
}
|
|
4487
|
-
a.translate(0, -e.ls), a.translate(
|
|
4487
|
+
a.translate(0, -e.ls), a.translate(L, 0, 0), a.translate(r[0] * c[v].an * 5e-3, r[1] * G * 0.01, 0), o += c[v].l + e.tr * 1e-3 * e.finalSize;
|
|
4488
4488
|
}
|
|
4489
4489
|
n === "html" ? ee = a.toCSS() : n === "svg" ? ee = a.to2dCSS() : ie = [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]], se = X;
|
|
4490
4490
|
}
|
|
@@ -4563,37 +4563,37 @@ 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
|
t = n.length;
|
|
4566
|
-
var o,
|
|
4566
|
+
var o, p = this.mHelper, v = "", x = this.data.singleShape, c = 0, b = 0, g = !0, d = r.tr * 1e-3 * r.finalSize;
|
|
4567
4567
|
if (x && !f && !r.sz) {
|
|
4568
|
-
var E = this.textContainer,
|
|
4568
|
+
var E = this.textContainer, h = "start";
|
|
4569
4569
|
switch (r.j) {
|
|
4570
4570
|
case 1:
|
|
4571
|
-
|
|
4571
|
+
h = "end";
|
|
4572
4572
|
break;
|
|
4573
4573
|
case 2:
|
|
4574
|
-
|
|
4574
|
+
h = "middle";
|
|
4575
4575
|
break;
|
|
4576
4576
|
default:
|
|
4577
|
-
|
|
4577
|
+
h = "start";
|
|
4578
4578
|
break;
|
|
4579
4579
|
}
|
|
4580
|
-
E.setAttribute("text-anchor",
|
|
4581
|
-
var
|
|
4582
|
-
for (t =
|
|
4583
|
-
o = this.textSpans[e].span || createNS("tspan"), o.textContent =
|
|
4580
|
+
E.setAttribute("text-anchor", h), E.setAttribute("letter-spacing", d);
|
|
4581
|
+
var u = this.buildTextContents(r.finalText);
|
|
4582
|
+
for (t = u.length, b = r.ps ? r.ps[1] + r.ascent : 0, e = 0; e < t; e += 1)
|
|
4583
|
+
o = this.textSpans[e].span || createNS("tspan"), o.textContent = u[e], o.setAttribute("x", 0), o.setAttribute("y", b), o.style.display = "inherit", E.appendChild(o), this.textSpans[e] || (this.textSpans[e] = {
|
|
4584
4584
|
span: null,
|
|
4585
4585
|
glyph: null
|
|
4586
4586
|
}), this.textSpans[e].span = o, b += r.finalLineHeight;
|
|
4587
4587
|
this.layerElement.appendChild(E);
|
|
4588
4588
|
} else {
|
|
4589
|
-
var
|
|
4589
|
+
var l = this.textSpans.length, m;
|
|
4590
4590
|
for (e = 0; e < t; e += 1) {
|
|
4591
4591
|
if (this.textSpans[e] || (this.textSpans[e] = {
|
|
4592
4592
|
span: null,
|
|
4593
4593
|
childSpan: null,
|
|
4594
4594
|
glyph: null
|
|
4595
4595
|
}), !f || !x || e === 0) {
|
|
4596
|
-
if (o =
|
|
4596
|
+
if (o = l > e ? this.textSpans[e].span : createNS(f ? "g" : "text"), l <= e) {
|
|
4597
4597
|
if (o.setAttribute("stroke-linecap", "butt"), o.setAttribute("stroke-linejoin", "round"), o.setAttribute("stroke-miterlimit", "4"), this.textSpans[e].span = o, f) {
|
|
4598
4598
|
var S = createNS("g");
|
|
4599
4599
|
o.appendChild(S), this.textSpans[e].childSpan = S;
|
|
@@ -4602,7 +4602,7 @@ var lottie$1 = { exports: {} };
|
|
|
4602
4602
|
}
|
|
4603
4603
|
o.style.display = "inherit";
|
|
4604
4604
|
}
|
|
4605
|
-
if (
|
|
4605
|
+
if (p.reset(), x && (n[e].n && (c = -d, b += r.yOffset, b += g ? 1 : 0, g = !1), this.applyTextPropertiesToMatrix(r, p, n[e].line, c, b), c += n[e].l || 0, c += d), f) {
|
|
4606
4606
|
m = this.globalData.fontManager.getCharData(r.finalText[e], i.fStyle, this.globalData.fontManager.getFontByName(r.f).fFamily);
|
|
4607
4607
|
var C;
|
|
4608
4608
|
if (m.t === 1)
|
|
@@ -4617,7 +4617,7 @@ var lottie$1 = { exports: {} };
|
|
|
4617
4617
|
}
|
|
4618
4618
|
this.textSpans[e].glyph = C, C._debug = !0, C.prepareFrame(0), C.renderFrame(), this.textSpans[e].childSpan.appendChild(C.layerElement), m.t === 1 && this.textSpans[e].childSpan.setAttribute("transform", "scale(" + r.finalSize / 100 + "," + r.finalSize / 100 + ")");
|
|
4619
4619
|
} else
|
|
4620
|
-
x && o.setAttribute("transform", "translate(" +
|
|
4620
|
+
x && o.setAttribute("transform", "translate(" + p.props[12] + "," + p.props[13] + ")"), o.textContent = n[e].val, o.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
|
|
4621
4621
|
}
|
|
4622
4622
|
x && o && o.setAttribute("d", v);
|
|
4623
4623
|
}
|
|
@@ -4878,8 +4878,8 @@ var lottie$1 = { exports: {} };
|
|
|
4878
4878
|
var lumaLoader = function() {
|
|
4879
4879
|
var t = "__lottie_element_luma_buffer", r = null, i = null, s = null;
|
|
4880
4880
|
function a() {
|
|
4881
|
-
var o = createNS("svg"),
|
|
4882
|
-
return
|
|
4881
|
+
var o = createNS("svg"), p = createNS("filter"), v = createNS("feColorMatrix");
|
|
4882
|
+
return p.setAttribute("id", t), 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"), p.appendChild(v), o.appendChild(p), o.setAttribute("id", t + "_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(#" + t + ")", i.fillStyle = "rgba(0,0,0,0)", i.fillRect(0, 0, 1, 1));
|
|
@@ -5115,10 +5115,10 @@ var lottie$1 = { exports: {} };
|
|
|
5115
5115
|
for (t = 0; t < r; t += 1)
|
|
5116
5116
|
e[t].closed = !0;
|
|
5117
5117
|
}, CVShapeElement.prototype.searchShapes = function(e, t, r, i, s) {
|
|
5118
|
-
var a, n = e.length - 1, f, o,
|
|
5118
|
+
var a, n = e.length - 1, f, o, p = [], v = [], x, c, b, g = [].concat(s);
|
|
5119
5119
|
for (a = n; a >= 0; a -= 1) {
|
|
5120
5120
|
if (x = this.searchProcessedElement(e[a]), x ? t[a] = r[x - 1] : e[a]._shouldRender = i, e[a].ty === "fl" || e[a].ty === "st" || e[a].ty === "gf" || e[a].ty === "gs")
|
|
5121
|
-
x ? t[a].style.closed = !1 : t[a] = this.createStyleElement(e[a], g),
|
|
5121
|
+
x ? t[a].style.closed = !1 : t[a] = this.createStyleElement(e[a], g), p.push(t[a].style);
|
|
5122
5122
|
else if (e[a].ty === "gr") {
|
|
5123
5123
|
if (!x)
|
|
5124
5124
|
t[a] = this.createGroupElement(e[a]);
|
|
@@ -5126,23 +5126,23 @@ var lottie$1 = { exports: {} };
|
|
|
5126
5126
|
for (o = t[a].it.length, f = 0; f < o; f += 1)
|
|
5127
5127
|
t[a].prevViewData[f] = t[a].it[f];
|
|
5128
5128
|
this.searchShapes(e[a].it, t[a].it, t[a].prevViewData, i, g);
|
|
5129
|
-
} else e[a].ty === "tr" ? (x || (b = this.createTransformElement(e[a]), t[a] = b), g.push(t[a]), this.addTransformToStyleList(t[a])) : e[a].ty === "sh" || e[a].ty === "rc" || e[a].ty === "el" || e[a].ty === "sr" ? x || (t[a] = this.createShapeElement(e[a])) : e[a].ty === "tm" || e[a].ty === "rd" || e[a].ty === "pb" || e[a].ty === "zz" || e[a].ty === "op" ? (x ? (
|
|
5129
|
+
} else e[a].ty === "tr" ? (x || (b = this.createTransformElement(e[a]), t[a] = b), g.push(t[a]), this.addTransformToStyleList(t[a])) : e[a].ty === "sh" || e[a].ty === "rc" || e[a].ty === "el" || e[a].ty === "sr" ? x || (t[a] = this.createShapeElement(e[a])) : e[a].ty === "tm" || e[a].ty === "rd" || e[a].ty === "pb" || e[a].ty === "zz" || e[a].ty === "op" ? (x ? (c = t[a], c.closed = !1) : (c = ShapeModifiers.getModifier(e[a].ty), c.init(this, e[a]), t[a] = c, this.shapeModifiers.push(c)), v.push(c)) : e[a].ty === "rp" && (x ? (c = t[a], c.closed = !0) : (c = ShapeModifiers.getModifier(e[a].ty), t[a] = c, c.init(this, e, a, t), this.shapeModifiers.push(c), i = !1), v.push(c));
|
|
5130
5130
|
this.addProcessedElement(e[a], a + 1);
|
|
5131
5131
|
}
|
|
5132
|
-
for (this.removeTransformFromStyleList(), this.closeStyles(
|
|
5132
|
+
for (this.removeTransformFromStyleList(), this.closeStyles(p), n = v.length, a = 0; a < n; a += 1)
|
|
5133
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(e, t) {
|
|
5137
5137
|
(e._opMdf || t.op._mdf || this._isFirstFrame) && (t.opacity = e.opacity, t.opacity *= t.op.v, t._opMdf = !0);
|
|
5138
5138
|
}, CVShapeElement.prototype.drawLayer = function() {
|
|
5139
|
-
var e, t = this.stylesList.length, r, i, s, a, n, f, o = this.globalData.renderer,
|
|
5139
|
+
var e, t = this.stylesList.length, r, i, s, a, n, f, o = this.globalData.renderer, p = this.globalData.canvasContext, v, x;
|
|
5140
5140
|
for (e = 0; e < t; e += 1)
|
|
5141
5141
|
if (x = this.stylesList[e], v = x.type, !((v === "st" || v === "gs") && x.wi === 0 || !x.data._shouldRender || x.coOp === 0 || this.globalData.currentGlobalAlpha === 0)) {
|
|
5142
|
-
for (o.save(), n = x.elements, v === "st" || v === "gs" ? (o.ctxStrokeStyle(v === "st" ? x.co : x.grd), o.ctxLineWidth(x.wi), o.ctxLineCap(x.lc), o.ctxLineJoin(x.lj), o.ctxMiterLimit(x.ml || 0)) : o.ctxFillStyle(v === "fl" ? x.co : x.grd), o.ctxOpacity(x.coOp), v !== "st" && v !== "gs" &&
|
|
5143
|
-
for ((v === "st" || v === "gs") && (
|
|
5144
|
-
f[s].t === "m" ?
|
|
5145
|
-
(v === "st" || v === "gs") && (o.ctxStroke(), x.da &&
|
|
5142
|
+
for (o.save(), n = x.elements, v === "st" || v === "gs" ? (o.ctxStrokeStyle(v === "st" ? x.co : x.grd), o.ctxLineWidth(x.wi), o.ctxLineCap(x.lc), o.ctxLineJoin(x.lj), o.ctxMiterLimit(x.ml || 0)) : o.ctxFillStyle(v === "fl" ? x.co : x.grd), o.ctxOpacity(x.coOp), v !== "st" && v !== "gs" && p.beginPath(), o.ctxTransform(x.preTransforms.finalTransform.props), i = n.length, r = 0; r < i; r += 1) {
|
|
5143
|
+
for ((v === "st" || v === "gs") && (p.beginPath(), x.da && (p.setLineDash(x.da), p.lineDashOffset = x.do)), f = n[r].trNodes, a = f.length, s = 0; s < a; s += 1)
|
|
5144
|
+
f[s].t === "m" ? p.moveTo(f[s].p[0], f[s].p[1]) : f[s].t === "c" ? p.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]) : p.closePath();
|
|
5145
|
+
(v === "st" || v === "gs") && (o.ctxStroke(), x.da && p.setLineDash(this.dashResetter));
|
|
5146
5146
|
}
|
|
5147
5147
|
v !== "st" && v !== "gs" && this.globalData.renderer.ctxFill(x.r), o.restore();
|
|
5148
5148
|
}
|
|
@@ -5157,22 +5157,22 @@ var lottie$1 = { exports: {} };
|
|
|
5157
5157
|
r.length = 0;
|
|
5158
5158
|
var o = e.transforms.finalTransform;
|
|
5159
5159
|
for (n = 0; n < f; n += 1) {
|
|
5160
|
-
var
|
|
5161
|
-
if (
|
|
5162
|
-
for (a =
|
|
5160
|
+
var p = i.shapes[n];
|
|
5161
|
+
if (p && p.v) {
|
|
5162
|
+
for (a = p._length, s = 1; s < a; s += 1)
|
|
5163
5163
|
s === 1 && r.push({
|
|
5164
5164
|
t: "m",
|
|
5165
|
-
p: o.applyToPointArray(
|
|
5165
|
+
p: o.applyToPointArray(p.v[0][0], p.v[0][1], 0)
|
|
5166
5166
|
}), r.push({
|
|
5167
5167
|
t: "c",
|
|
5168
|
-
pts: o.applyToTriplePoints(
|
|
5168
|
+
pts: o.applyToTriplePoints(p.o[s - 1], p.i[s], p.v[s])
|
|
5169
5169
|
});
|
|
5170
5170
|
a === 1 && r.push({
|
|
5171
5171
|
t: "m",
|
|
5172
|
-
p: o.applyToPointArray(
|
|
5173
|
-
}),
|
|
5172
|
+
p: o.applyToPointArray(p.v[0][0], p.v[0][1], 0)
|
|
5173
|
+
}), p.c && a && (r.push({
|
|
5174
5174
|
t: "c",
|
|
5175
|
-
pts: o.applyToTriplePoints(
|
|
5175
|
+
pts: o.applyToTriplePoints(p.o[s - 1], p.i[0], p.v[0])
|
|
5176
5176
|
}), r.push({
|
|
5177
5177
|
t: "z"
|
|
5178
5178
|
}));
|
|
@@ -5196,14 +5196,14 @@ var lottie$1 = { exports: {} };
|
|
|
5196
5196
|
if (e.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)),
|
|
5199
|
+
var o = Math.sqrt(Math.pow(n[0] - f[0], 2) + Math.pow(n[1] - f[1], 2)), p = Math.atan2(f[1] - n[1], f[0] - n[0]), v = t.h.v;
|
|
5200
5200
|
v >= 1 ? v = 0.99 : v <= -1 && (v = -0.99);
|
|
5201
|
-
var x = o * v,
|
|
5202
|
-
s = a.createRadialGradient(
|
|
5201
|
+
var x = o * v, c = Math.cos(p + t.a.v) * x + n[0], b = Math.sin(p + t.a.v) * x + n[1];
|
|
5202
|
+
s = a.createRadialGradient(c, b, 0, n[0], n[1], o);
|
|
5203
5203
|
}
|
|
5204
|
-
var g,
|
|
5205
|
-
for (g = 0; g <
|
|
5206
|
-
t.g._hasOpacity && t.g._collapsable && (
|
|
5204
|
+
var g, d = e.g.p, E = t.g.c, h = 1;
|
|
5205
|
+
for (g = 0; g < d; g += 1)
|
|
5206
|
+
t.g._hasOpacity && t.g._collapsable && (h = t.g.o[g * 2 + 1]), s.addColorStop(E[g * 4] / 100, "rgba(" + E[g * 4 + 1] + "," + E[g * 4 + 2] + "," + E[g * 4 + 3] + "," + h + ")");
|
|
5207
5207
|
i.grd = s;
|
|
5208
5208
|
}
|
|
5209
5209
|
i.coOp = t.o.v * r.opacity;
|
|
@@ -5230,17 +5230,17 @@ var lottie$1 = { exports: {} };
|
|
|
5230
5230
|
e.sc && (r = !0, this.values.stroke = this.buildColor(e.sc), this.values.sWidth = e.sw);
|
|
5231
5231
|
var i = this.globalData.fontManager.getFontByName(e.f), s, a, n = e.l, f = this.mHelper;
|
|
5232
5232
|
this.stroke = r, this.values.fValue = e.finalSize + "px " + this.globalData.fontManager.getFontByName(e.f).fFamily, a = e.finalText.length;
|
|
5233
|
-
var o,
|
|
5233
|
+
var o, p, v, x, c, b, g, d, E, h, u = this.data.singleShape, l = e.tr * 1e-3 * e.finalSize, m = 0, S = 0, C = !0, A = 0;
|
|
5234
5234
|
for (s = 0; s < a; s += 1) {
|
|
5235
|
-
o = this.globalData.fontManager.getCharData(e.finalText[s], i.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily),
|
|
5235
|
+
o = this.globalData.fontManager.getCharData(e.finalText[s], i.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), p = o && o.data || {}, f.reset(), u && n[s].n && (m = -l, S += e.yOffset, S += C ? 1 : 0, C = !1), c = p.shapes ? p.shapes[0].it : [], g = c.length, f.scale(e.finalSize / 100, e.finalSize / 100), u && this.applyTextPropertiesToMatrix(e, f, n[s].line, m, S), E = createSizedArray(g - 1);
|
|
5236
5236
|
var T = 0;
|
|
5237
5237
|
for (b = 0; b < g; b += 1)
|
|
5238
|
-
if (
|
|
5239
|
-
for (x =
|
|
5240
|
-
v === 1 &&
|
|
5241
|
-
|
|
5238
|
+
if (c[b].ty === "sh") {
|
|
5239
|
+
for (x = c[b].ks.k.i.length, d = c[b].ks.k, h = [], v = 1; v < x; v += 1)
|
|
5240
|
+
v === 1 && h.push(f.applyToX(d.v[0][0], d.v[0][1], 0), f.applyToY(d.v[0][0], d.v[0][1], 0)), h.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
|
+
h.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[T] = h, T += 1;
|
|
5242
5242
|
}
|
|
5243
|
-
|
|
5243
|
+
u && (m += n[s].l, m += l), this.textSpans[A] ? this.textSpans[A].elem = E : this.textSpans[A] = {
|
|
5244
5244
|
elem: E
|
|
5245
5245
|
}, A += 1;
|
|
5246
5246
|
}
|
|
@@ -5250,22 +5250,22 @@ var lottie$1 = { exports: {} };
|
|
|
5250
5250
|
e.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 t, r, i, s, a, n, f = this.textAnimator.renderedLetters, o = this.textProperty.currentData.l;
|
|
5252
5252
|
r = o.length;
|
|
5253
|
-
var
|
|
5253
|
+
var p, v = null, x = null, c = null, b, g, d = this.globalData.renderer;
|
|
5254
5254
|
for (t = 0; t < r; t += 1)
|
|
5255
5255
|
if (!o[t].n) {
|
|
5256
|
-
if (
|
|
5257
|
-
for (
|
|
5256
|
+
if (p = f[t], p && (d.save(), d.ctxTransform(p.p), d.ctxOpacity(p.o)), this.fill) {
|
|
5257
|
+
for (p && p.fc ? v !== p.fc && (d.ctxFillStyle(p.fc), v = p.fc) : v !== this.values.fill && (v = this.values.fill, d.ctxFillStyle(this.values.fill)), b = this.textSpans[t].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 (
|
|
5263
|
+
for (p && p.sw ? c !== p.sw && (c = p.sw, d.ctxLineWidth(p.sw)) : c !== this.values.sWidth && (c = this.values.sWidth, d.ctxLineWidth(this.values.sWidth)), p && p.sc ? x !== p.sc && (x = p.sc, d.ctxStrokeStyle(p.sc)) : x !== this.values.stroke && (x = this.values.stroke, d.ctxStrokeStyle(this.values.stroke)), b = this.textSpans[t].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
|
+
p && this.globalData.renderer.restore();
|
|
5269
5269
|
}
|
|
5270
5270
|
};
|
|
5271
5271
|
function CVImageElement(e, t, r) {
|
|
@@ -5358,8 +5358,8 @@ var lottie$1 = { exports: {} };
|
|
|
5358
5358
|
e ? (r = e, i = t, 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",
|
|
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)),
|
|
5361
|
+
var n = this.renderConfig.preserveAspectRatio.split(" "), f = n[1] || "meet", o = n[0] || "xMidYMid", p = 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)), p === "xMid" && (a < s && f === "meet" || a > s && f === "slice") ? this.transformCanvas.tx = (r - this.transformCanvas.w * (i / this.transformCanvas.h)) / 2 * this.renderConfig.dpr : p === "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() {
|
|
@@ -5572,11 +5572,11 @@ var lottie$1 = { exports: {} };
|
|
|
5572
5572
|
t = e[r].mProps.v.applyToPointArray(t[0], t[1], 0);
|
|
5573
5573
|
return t;
|
|
5574
5574
|
}, HShapeElement.prototype.calculateShapeBoundingBox = function(e, t) {
|
|
5575
|
-
var r = e.sh.v, i = e.transformers, s, a = r._length, n, f, o,
|
|
5575
|
+
var r = e.sh.v, i = e.transformers, s, a = r._length, n, f, o, p;
|
|
5576
5576
|
if (!(a <= 1)) {
|
|
5577
5577
|
for (s = 0; s < a - 1; s += 1)
|
|
5578
|
-
n = this.getTransformedPoint(i, r.v[s]), f = this.getTransformedPoint(i, r.o[s]), o = this.getTransformedPoint(i, r.i[s + 1]),
|
|
5579
|
-
r.c && (n = this.getTransformedPoint(i, r.v[s]), f = this.getTransformedPoint(i, r.o[s]), o = this.getTransformedPoint(i, r.i[0]),
|
|
5578
|
+
n = this.getTransformedPoint(i, r.v[s]), f = this.getTransformedPoint(i, r.o[s]), o = this.getTransformedPoint(i, r.i[s + 1]), p = this.getTransformedPoint(i, r.v[s + 1]), this.checkBounds(n, f, o, p, t);
|
|
5579
|
+
r.c && (n = this.getTransformedPoint(i, r.v[s]), f = this.getTransformedPoint(i, r.o[s]), o = this.getTransformedPoint(i, r.i[0]), p = this.getTransformedPoint(i, r.v[0]), this.checkBounds(n, f, o, p, t));
|
|
5580
5580
|
}
|
|
5581
5581
|
}, HShapeElement.prototype.checkBounds = function(e, t, r, i, s) {
|
|
5582
5582
|
this.getBoundsOfCurve(e, t, r, i);
|
|
@@ -5595,8 +5595,8 @@ var lottie$1 = { exports: {} };
|
|
|
5595
5595
|
width: 0,
|
|
5596
5596
|
height: 0
|
|
5597
5597
|
}, HShapeElement.prototype.getBoundsOfCurve = function(e, t, r, i) {
|
|
5598
|
-
for (var s = [[e[0], i[0]], [e[1], i[1]]], a, n, f, o,
|
|
5599
|
-
n = 6 * e[
|
|
5598
|
+
for (var s = [[e[0], i[0]], [e[1], i[1]]], a, n, f, o, p, v, x, c = 0; c < 2; ++c)
|
|
5599
|
+
n = 6 * e[c] - 12 * t[c] + 6 * r[c], a = -3 * e[c] + 9 * t[c] - 9 * r[c] + 3 * i[c], f = 3 * t[c] - 3 * e[c], n |= 0, a |= 0, f |= 0, a === 0 && n === 0 || (a === 0 ? (o = -f / n, o > 0 && o < 1 && s[c].push(this.calculateF(o, e, t, r, i, c))) : (p = n * n - 4 * f * a, p >= 0 && (v = (-n + bmSqrt(p)) / (2 * a), v > 0 && v < 1 && s[c].push(this.calculateF(v, e, t, r, i, c)), x = (-n - bmSqrt(p)) / (2 * a), x > 0 && x < 1 && s[c].push(this.calculateF(x, e, t, r, i, c)))));
|
|
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(e, t, r, i, s, a) {
|
|
5602
5602
|
return bmPow(1 - e, 3) * t[a] + 3 * bmPow(1 - e, 2) * e * r[a] + 3 * (1 - e) * bmPow(e, 2) * i[a] + bmPow(e, 3) * s[a];
|
|
@@ -5662,34 +5662,34 @@ var lottie$1 = { exports: {} };
|
|
|
5662
5662
|
}
|
|
5663
5663
|
var n, f, o = e.l;
|
|
5664
5664
|
f = o.length;
|
|
5665
|
-
var
|
|
5665
|
+
var p, v, x, c = this.mHelper, b, g = "", d = 0;
|
|
5666
5666
|
for (n = 0; n < f; n += 1) {
|
|
5667
|
-
if (this.globalData.fontManager.chars ? (this.textPaths[
|
|
5668
|
-
var E = this.globalData.fontManager.getCharData(e.finalText[n], i.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily),
|
|
5669
|
-
if (E ?
|
|
5670
|
-
this.innerElem.appendChild(
|
|
5667
|
+
if (this.globalData.fontManager.chars ? (this.textPaths[d] ? p = this.textPaths[d] : (p = createNS("path"), p.setAttribute("stroke-linecap", lineCapEnum[1]), p.setAttribute("stroke-linejoin", lineJoinEnum[2]), p.setAttribute("stroke-miterlimit", "4")), this.isMasked || (this.textSpans[d] ? (v = this.textSpans[d], x = v.children[0]) : (v = createTag("div"), v.style.lineHeight = 0, x = createNS("svg"), x.appendChild(p), styleDiv(v)))) : this.isMasked ? p = this.textPaths[d] ? this.textPaths[d] : createNS("text") : this.textSpans[d] ? (v = this.textSpans[d], p = this.textPaths[d]) : (v = createTag("span"), styleDiv(v), p = createTag("span"), styleDiv(p), v.appendChild(p)), this.globalData.fontManager.chars) {
|
|
5668
|
+
var E = this.globalData.fontManager.getCharData(e.finalText[n], i.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), h;
|
|
5669
|
+
if (E ? h = E.data : h = null, c.reset(), h && h.shapes && h.shapes.length && (b = h.shapes[0].it, c.scale(e.finalSize / 100, e.finalSize / 100), g = this.createPathShape(c, b), p.setAttribute("d", g)), this.isMasked)
|
|
5670
|
+
this.innerElem.appendChild(p);
|
|
5671
5671
|
else {
|
|
5672
|
-
if (this.innerElem.appendChild(v),
|
|
5672
|
+
if (this.innerElem.appendChild(v), h && h.shapes) {
|
|
5673
5673
|
document.body.appendChild(x);
|
|
5674
|
-
var
|
|
5675
|
-
x.setAttribute("width",
|
|
5676
|
-
var
|
|
5677
|
-
|
|
5674
|
+
var u = x.getBBox();
|
|
5675
|
+
x.setAttribute("width", u.width + 2), x.setAttribute("height", u.height + 2), x.setAttribute("viewBox", u.x - 1 + " " + (u.y - 1) + " " + (u.width + 2) + " " + (u.height + 2));
|
|
5676
|
+
var l = x.style, m = "translate(" + (u.x - 1) + "px," + (u.y - 1) + "px)";
|
|
5677
|
+
l.transform = m, l.webkitTransform = m, o[n].yOffset = u.y - 1;
|
|
5678
5678
|
} else
|
|
5679
5679
|
x.setAttribute("width", 1), x.setAttribute("height", 1);
|
|
5680
5680
|
v.appendChild(x);
|
|
5681
5681
|
}
|
|
5682
|
-
} else if (
|
|
5683
|
-
this.innerElem.appendChild(
|
|
5682
|
+
} else if (p.textContent = o[n].val, p.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), this.isMasked)
|
|
5683
|
+
this.innerElem.appendChild(p);
|
|
5684
5684
|
else {
|
|
5685
5685
|
this.innerElem.appendChild(v);
|
|
5686
|
-
var S =
|
|
5686
|
+
var S = p.style, C = "translate3d(0," + -e.finalSize / 1.2 + "px,0)";
|
|
5687
5687
|
S.transform = C, S.webkitTransform = C;
|
|
5688
5688
|
}
|
|
5689
|
-
this.isMasked ? this.textSpans[
|
|
5689
|
+
this.isMasked ? this.textSpans[d] = p : this.textSpans[d] = v, this.textSpans[d].style.display = "block", this.textPaths[d] = p, 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 e;
|
|
@@ -5705,17 +5705,17 @@ var lottie$1 = { exports: {} };
|
|
|
5705
5705
|
if (this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag), !(!this.lettersChangedFlag && !this.textAnimator.lettersChangedFlag)) {
|
|
5706
5706
|
var r, i, s = 0, a = this.textAnimator.renderedLetters, n = this.textProperty.currentData.l;
|
|
5707
5707
|
i = n.length;
|
|
5708
|
-
var f, o,
|
|
5708
|
+
var f, o, p;
|
|
5709
5709
|
for (r = 0; r < i; r += 1)
|
|
5710
|
-
n[r].n ? s += 1 : (o = this.textSpans[r],
|
|
5710
|
+
n[r].n ? s += 1 : (o = this.textSpans[r], p = 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 && p.setAttribute("stroke-width", f.sw), f.sc && f._mdf.sc && p.setAttribute("stroke", f.sc), f.fc && f._mdf.fc && (p.setAttribute("fill", f.fc), p.style.color = f.fc));
|
|
5711
5711
|
if (this.innerElem.getBBox && !this.hidden && (this._isFirstFrame || this._mdf)) {
|
|
5712
5712
|
var v = this.innerElem.getBBox();
|
|
5713
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
5714
|
var x = 1;
|
|
5715
5715
|
if (this.currentBBox.w !== v.width + x * 2 || this.currentBBox.h !== v.height + x * 2 || this.currentBBox.x !== v.x - x || this.currentBBox.y !== v.y - x) {
|
|
5716
5716
|
this.currentBBox.w = v.width + x * 2, this.currentBBox.h = v.height + x * 2, this.currentBBox.x = v.x - x, this.currentBBox.y = v.y - x, this.svgElement.setAttribute("viewBox", this.currentBBox.x + " " + this.currentBBox.y + " " + this.currentBBox.w + " " + this.currentBBox.h), e = this.svgElement.style;
|
|
5717
|
-
var
|
|
5718
|
-
e.transform =
|
|
5717
|
+
var c = "translate(" + this.currentBBox.x + "px," + this.currentBBox.y + "px)";
|
|
5718
|
+
e.transform = c, e.webkitTransform = c;
|
|
5719
5719
|
}
|
|
5720
5720
|
}
|
|
5721
5721
|
}
|
|
@@ -5756,21 +5756,21 @@ var lottie$1 = { exports: {} };
|
|
|
5756
5756
|
if (this.p ? this.mat.translate(-this.p.v[0], -this.p.v[1], this.p.v[2]) : this.mat.translate(-this.px.v, -this.py.v, this.pz.v), this.a) {
|
|
5757
5757
|
var s;
|
|
5758
5758
|
this.p ? s = [this.p.v[0] - this.a.v[0], this.p.v[1] - this.a.v[1], this.p.v[2] - this.a.v[2]] : s = [this.px.v - this.a.v[0], this.py.v - this.a.v[1], this.pz.v - this.a.v[2]];
|
|
5759
|
-
var a = Math.sqrt(Math.pow(s[0], 2) + Math.pow(s[1], 2) + Math.pow(s[2], 2)), n = [s[0] / a, s[1] / a, s[2] / a], f = Math.sqrt(n[2] * n[2] + n[0] * n[0]), o = Math.atan2(n[1], f),
|
|
5760
|
-
this.mat.rotateY(
|
|
5759
|
+
var a = Math.sqrt(Math.pow(s[0], 2) + Math.pow(s[1], 2) + Math.pow(s[2], 2)), n = [s[0] / a, s[1] / a, s[2] / a], f = Math.sqrt(n[2] * n[2] + n[0] * n[0]), o = Math.atan2(n[1], f), p = Math.atan2(n[0], -n[2]);
|
|
5760
|
+
this.mat.rotateY(p).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
5763
|
var v = !this._prevMat.equals(this.mat);
|
|
5764
5764
|
if ((v || this.pe._mdf) && this.comp.threeDElements) {
|
|
5765
5765
|
r = this.comp.threeDElements.length;
|
|
5766
|
-
var x,
|
|
5766
|
+
var x, c, b;
|
|
5767
5767
|
for (t = 0; t < r; t += 1)
|
|
5768
5768
|
if (x = this.comp.threeDElements[t], x.type === "3d") {
|
|
5769
5769
|
if (v) {
|
|
5770
5770
|
var g = this.mat.toCSS();
|
|
5771
5771
|
b = x.container.style, b.transform = g, b.webkitTransform = g;
|
|
5772
5772
|
}
|
|
5773
|
-
this.pe._mdf && (
|
|
5773
|
+
this.pe._mdf && (c = x.perspectiveElem.style, c.perspective = this.pe.v + "px", c.webkitPerspective = this.pe.v + "px");
|
|
5774
5774
|
}
|
|
5775
5775
|
this.mat.clone(this._prevMat);
|
|
5776
5776
|
}
|
|
@@ -5978,71 +5978,71 @@ var lottie$1 = { exports: {} };
|
|
|
5978
5978
|
}, _typeof$2(e);
|
|
5979
5979
|
}
|
|
5980
5980
|
function seedRandom(e, t) {
|
|
5981
|
-
var r = this, i = 256, s = 6, a = 52, n = "random", f = t.pow(i, s), o = t.pow(2, a),
|
|
5982
|
-
function
|
|
5981
|
+
var r = this, i = 256, s = 6, a = 52, n = "random", f = t.pow(i, s), o = t.pow(2, a), p = o * 2, v = i - 1, x;
|
|
5982
|
+
function c(l, m, S) {
|
|
5983
5983
|
var C = [];
|
|
5984
5984
|
m = m === !0 ? {
|
|
5985
5985
|
entropy: !0
|
|
5986
5986
|
} : m || {};
|
|
5987
|
-
var A = E(
|
|
5988
|
-
for (var
|
|
5989
|
-
|
|
5990
|
-
for (;
|
|
5991
|
-
|
|
5992
|
-
return (
|
|
5987
|
+
var A = E(d(m.entropy ? [l, u(e)] : l === null ? h() : l, 3), C), T = new b(C), F = function() {
|
|
5988
|
+
for (var R = T.g(s), I = f, D = 0; R < o; )
|
|
5989
|
+
R = (R + D) * i, I *= i, D = T.g(1);
|
|
5990
|
+
for (; R >= p; )
|
|
5991
|
+
R /= 2, I /= 2, D >>>= 1;
|
|
5992
|
+
return (R + D) / I;
|
|
5993
5993
|
};
|
|
5994
5994
|
return F.int32 = function() {
|
|
5995
5995
|
return T.g(4) | 0;
|
|
5996
5996
|
}, F.quick = function() {
|
|
5997
5997
|
return T.g(4) / 4294967296;
|
|
5998
|
-
}, F.double = F, E(
|
|
5999
|
-
return
|
|
5998
|
+
}, F.double = F, E(u(T.S), e), (m.pass || S || function(B, R, I, D) {
|
|
5999
|
+
return D && (D.S && g(D, T), B.state = function() {
|
|
6000
6000
|
return g(T, {});
|
|
6001
|
-
}), I ? (t[n] =
|
|
6001
|
+
}), I ? (t[n] = B, R) : B;
|
|
6002
6002
|
})(F, A, "global" in m ? m.global : this == t, m.state);
|
|
6003
6003
|
}
|
|
6004
|
-
t["seed" + n] =
|
|
6005
|
-
function b(
|
|
6006
|
-
var m, S =
|
|
6007
|
-
for (S || (
|
|
6004
|
+
t["seed" + n] = c;
|
|
6005
|
+
function b(l) {
|
|
6006
|
+
var m, S = l.length, C = this, A = 0, T = C.i = C.j = 0, F = C.S = [];
|
|
6007
|
+
for (S || (l = [S++]); A < i; )
|
|
6008
6008
|
F[A] = A++;
|
|
6009
6009
|
for (A = 0; A < i; A++)
|
|
6010
|
-
F[A] = F[T = v & T +
|
|
6011
|
-
C.g = function(
|
|
6012
|
-
for (var
|
|
6013
|
-
|
|
6014
|
-
return C.i =
|
|
6010
|
+
F[A] = F[T = v & T + l[A % S] + (m = F[A])], F[T] = m;
|
|
6011
|
+
C.g = function(B) {
|
|
6012
|
+
for (var R, I = 0, D = C.i, G = C.j, V = C.S; B--; )
|
|
6013
|
+
R = V[D = v & D + 1], I = I * i + V[v & (V[D] = V[G = v & G + R]) + (V[G] = R)];
|
|
6014
|
+
return C.i = D, C.j = G, I;
|
|
6015
6015
|
};
|
|
6016
6016
|
}
|
|
6017
|
-
function g(
|
|
6018
|
-
return m.i =
|
|
6017
|
+
function g(l, m) {
|
|
6018
|
+
return m.i = l.i, m.j = l.j, m.S = l.S.slice(), m;
|
|
6019
6019
|
}
|
|
6020
|
-
function
|
|
6021
|
-
var S = [], C = _typeof$2(
|
|
6020
|
+
function d(l, m) {
|
|
6021
|
+
var S = [], C = _typeof$2(l), A;
|
|
6022
6022
|
if (m && C == "object")
|
|
6023
|
-
for (A in
|
|
6023
|
+
for (A in l)
|
|
6024
6024
|
try {
|
|
6025
|
-
S.push(
|
|
6025
|
+
S.push(d(l[A], m - 1));
|
|
6026
6026
|
} catch {
|
|
6027
6027
|
}
|
|
6028
|
-
return S.length ? S : C == "string" ?
|
|
6028
|
+
return S.length ? S : C == "string" ? l : l + "\0";
|
|
6029
6029
|
}
|
|
6030
|
-
function E(
|
|
6031
|
-
for (var S =
|
|
6030
|
+
function E(l, m) {
|
|
6031
|
+
for (var S = l + "", C, A = 0; A < S.length; )
|
|
6032
6032
|
m[v & A] = v & (C ^= m[v & A] * 19) + S.charCodeAt(A++);
|
|
6033
|
-
return
|
|
6033
|
+
return u(m);
|
|
6034
6034
|
}
|
|
6035
|
-
function
|
|
6035
|
+
function h() {
|
|
6036
6036
|
try {
|
|
6037
|
-
var
|
|
6038
|
-
return (r.crypto || r.msCrypto).getRandomValues(
|
|
6037
|
+
var l = new Uint8Array(i);
|
|
6038
|
+
return (r.crypto || r.msCrypto).getRandomValues(l), u(l);
|
|
6039
6039
|
} catch {
|
|
6040
6040
|
var m = r.navigator, S = m && m.plugins;
|
|
6041
|
-
return [+/* @__PURE__ */ new Date(), r, S, r.screen,
|
|
6041
|
+
return [+/* @__PURE__ */ new Date(), r, S, r.screen, u(e)];
|
|
6042
6042
|
}
|
|
6043
6043
|
}
|
|
6044
|
-
function
|
|
6045
|
-
return String.fromCharCode.apply(0,
|
|
6044
|
+
function u(l) {
|
|
6045
|
+
return String.fromCharCode.apply(0, l);
|
|
6046
6046
|
}
|
|
6047
6047
|
E(t.random(), e);
|
|
6048
6048
|
}
|
|
@@ -6186,16 +6186,16 @@ var lottie$1 = { exports: {} };
|
|
|
6186
6186
|
if (s === a)
|
|
6187
6187
|
n = 0, f = 0;
|
|
6188
6188
|
else {
|
|
6189
|
-
var
|
|
6190
|
-
switch (f = o > 0.5 ?
|
|
6189
|
+
var p = s - a;
|
|
6190
|
+
switch (f = o > 0.5 ? p / (2 - s - a) : p / (s + a), s) {
|
|
6191
6191
|
case t:
|
|
6192
|
-
n = (r - i) /
|
|
6192
|
+
n = (r - i) / p + (r < i ? 6 : 0);
|
|
6193
6193
|
break;
|
|
6194
6194
|
case r:
|
|
6195
|
-
n = (i - t) /
|
|
6195
|
+
n = (i - t) / p + 2;
|
|
6196
6196
|
break;
|
|
6197
6197
|
case i:
|
|
6198
|
-
n = (t - r) /
|
|
6198
|
+
n = (t - r) / p + 4;
|
|
6199
6199
|
break;
|
|
6200
6200
|
}
|
|
6201
6201
|
n /= 6;
|
|
@@ -6227,10 +6227,10 @@ var lottie$1 = { exports: {} };
|
|
|
6227
6227
|
var n = r === t ? 0 : (e - t) / (r - t);
|
|
6228
6228
|
if (!i.length)
|
|
6229
6229
|
return i + (s - i) * n;
|
|
6230
|
-
var f, o = i.length,
|
|
6230
|
+
var f, o = i.length, p = createTypedArray("float32", o);
|
|
6231
6231
|
for (f = 0; f < o; f += 1)
|
|
6232
|
-
|
|
6233
|
-
return
|
|
6232
|
+
p[f] = i[f] + (s[f] - i[f]) * n;
|
|
6233
|
+
return p;
|
|
6234
6234
|
}
|
|
6235
6235
|
function random(e, t) {
|
|
6236
6236
|
if (t === void 0 && (e === void 0 ? (e = 0, t = 1) : (t = e, e = void 0)), t.length) {
|
|
@@ -6248,9 +6248,9 @@ var lottie$1 = { exports: {} };
|
|
|
6248
6248
|
function createPath(e, t, r, i) {
|
|
6249
6249
|
var s, a = e.length, n = shapePool.newElement();
|
|
6250
6250
|
n.setPathData(!!i, a);
|
|
6251
|
-
var f = [0, 0], o,
|
|
6251
|
+
var f = [0, 0], o, p;
|
|
6252
6252
|
for (s = 0; s < a; s += 1)
|
|
6253
|
-
o = t && t[s] ? t[s] : f,
|
|
6253
|
+
o = t && t[s] ? t[s] : f, p = r && r[s] ? r[s] : f, n.setTripleAt(e[s][0], e[s][1], p[0] + e[s][0], p[1] + e[s][1], o[0] + e[s][0], o[1] + e[s][1], s, !0);
|
|
6254
6254
|
return n;
|
|
6255
6255
|
}
|
|
6256
6256
|
function initiateExpression(elem, data, property) {
|
|
@@ -6274,13 +6274,13 @@ var lottie$1 = { exports: {} };
|
|
|
6274
6274
|
n[s] += -r + r * 2 * BMMath.random();
|
|
6275
6275
|
i += 1;
|
|
6276
6276
|
}
|
|
6277
|
-
var o = time * t,
|
|
6277
|
+
var o = time * t, p = o - Math.floor(o), v = createTypedArray("float32", a);
|
|
6278
6278
|
if (a > 1) {
|
|
6279
6279
|
for (s = 0; s < a; s += 1)
|
|
6280
|
-
v[s] = this.pv[s] + n[s] + (-r + r * 2 * BMMath.random()) *
|
|
6280
|
+
v[s] = this.pv[s] + n[s] + (-r + r * 2 * BMMath.random()) * p;
|
|
6281
6281
|
return v;
|
|
6282
6282
|
}
|
|
6283
|
-
return this.pv + n[0] + (-r + r * 2 * BMMath.random()) *
|
|
6283
|
+
return this.pv + n[0] + (-r + r * 2 * BMMath.random()) * p;
|
|
6284
6284
|
}).bind(this);
|
|
6285
6285
|
thisProperty.loopIn && (loopIn = thisProperty.loopIn.bind(thisProperty), loop_in = loopIn), thisProperty.loopOut && (loopOut = thisProperty.loopOut.bind(thisProperty), loop_out = loopOut), thisProperty.smooth && (smooth = thisProperty.smooth.bind(thisProperty));
|
|
6286
6286
|
function loopInDuration(e, t) {
|
|
@@ -6308,10 +6308,10 @@ var lottie$1 = { exports: {} };
|
|
|
6308
6308
|
s === void 0 ? (s = r, a = i) : t = (t - r) / (i - r), t > 1 ? t = 1 : t < 0 && (t = 0);
|
|
6309
6309
|
var n = e(t);
|
|
6310
6310
|
if ($bm_isInstanceOfArray(s)) {
|
|
6311
|
-
var f, o = s.length,
|
|
6311
|
+
var f, o = s.length, p = createTypedArray("float32", o);
|
|
6312
6312
|
for (f = 0; f < o; f += 1)
|
|
6313
|
-
|
|
6314
|
-
return
|
|
6313
|
+
p[f] = (a[f] - s[f]) * n + s[f];
|
|
6314
|
+
return p;
|
|
6315
6315
|
}
|
|
6316
6316
|
return (a - s) * n + s;
|
|
6317
6317
|
}
|
|
@@ -6387,13 +6387,13 @@ var lottie$1 = { exports: {} };
|
|
|
6387
6387
|
function n() {
|
|
6388
6388
|
i -= 1, i === 0 && o();
|
|
6389
6389
|
}
|
|
6390
|
-
function f(
|
|
6391
|
-
s.indexOf(
|
|
6390
|
+
function f(p) {
|
|
6391
|
+
s.indexOf(p) === -1 && s.push(p);
|
|
6392
6392
|
}
|
|
6393
6393
|
function o() {
|
|
6394
|
-
var
|
|
6395
|
-
for (
|
|
6396
|
-
s[
|
|
6394
|
+
var p, v = s.length;
|
|
6395
|
+
for (p = 0; p < v; p += 1)
|
|
6396
|
+
s[p].release();
|
|
6397
6397
|
s.length = 0;
|
|
6398
6398
|
}
|
|
6399
6399
|
r.renderer.compInterface = CompExpressionInterface(r.renderer), r.renderer.globalData.projectInterface.registerComposition(r.renderer), r.renderer.globalData.pushExpression = a, r.renderer.globalData.popExpression = n, r.renderer.globalData.registerExpressionProperty = f;
|
|
@@ -6416,9 +6416,9 @@ var lottie$1 = { exports: {} };
|
|
|
6416
6416
|
var s = createSizedArray(i.viewData.length), a, n = i.viewData.length;
|
|
6417
6417
|
for (a = 0; a < n; a += 1)
|
|
6418
6418
|
s[a] = new e(i.viewData[a], i.masksProperties[a]);
|
|
6419
|
-
var f = function(
|
|
6419
|
+
var f = function(p) {
|
|
6420
6420
|
for (a = 0; a < n; ) {
|
|
6421
|
-
if (i.masksProperties[a].nm ===
|
|
6421
|
+
if (i.masksProperties[a].nm === p)
|
|
6422
6422
|
return s[a];
|
|
6423
6423
|
a += 1;
|
|
6424
6424
|
}
|
|
@@ -6442,30 +6442,30 @@ var lottie$1 = { exports: {} };
|
|
|
6442
6442
|
get: function() {
|
|
6443
6443
|
return f.getVelocityAtTime(f.comp.currentFrame);
|
|
6444
6444
|
}
|
|
6445
|
-
}), n.numKeys = f.keyframes ? f.keyframes.length : 0, n.key = function(
|
|
6445
|
+
}), n.numKeys = f.keyframes ? f.keyframes.length : 0, n.key = function(p) {
|
|
6446
6446
|
if (!n.numKeys)
|
|
6447
6447
|
return 0;
|
|
6448
6448
|
var v = "";
|
|
6449
|
-
"s" in f.keyframes[
|
|
6449
|
+
"s" in f.keyframes[p - 1] ? v = f.keyframes[p - 1].s : "e" in f.keyframes[p - 2] ? v = f.keyframes[p - 2].e : v = f.keyframes[p - 2].s;
|
|
6450
6450
|
var x = o === "unidimensional" ? new Number(v) : Object.assign({}, v);
|
|
6451
|
-
return x.time = f.keyframes[
|
|
6451
|
+
return x.time = f.keyframes[p - 1].t / f.elem.comp.globalData.frameRate, x.value = o === "unidimensional" ? v[0] : v, x;
|
|
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) {
|
|
6455
6455
|
(!n || !("pv" in n)) && (n = e);
|
|
6456
|
-
var f = 1 / n.mult, o = n.pv * f,
|
|
6457
|
-
return
|
|
6458
|
-
return n.k && n.getValue(), o = n.v * f,
|
|
6456
|
+
var f = 1 / n.mult, o = n.pv * f, p = new Number(o);
|
|
6457
|
+
return p.value = o, r(p, n, "unidimensional"), function() {
|
|
6458
|
+
return n.k && n.getValue(), o = n.v * f, p.value !== o && (p = new Number(o), p.value = o, p[0] = o, r(p, n, "unidimensional")), p;
|
|
6459
6459
|
};
|
|
6460
6460
|
}
|
|
6461
6461
|
function s(n) {
|
|
6462
6462
|
(!n || !("pv" in n)) && (n = t);
|
|
6463
|
-
var f = 1 / n.mult, o = n.data && n.data.l || n.pv.length,
|
|
6464
|
-
return
|
|
6463
|
+
var f = 1 / n.mult, o = n.data && n.data.l || n.pv.length, p = createTypedArray("float32", o), v = createTypedArray("float32", o);
|
|
6464
|
+
return p.value = v, r(p, n, "multidimensional"), function() {
|
|
6465
6465
|
n.k && n.getValue();
|
|
6466
6466
|
for (var x = 0; x < o; x += 1)
|
|
6467
|
-
v[x] = n.v[x] * f,
|
|
6468
|
-
return
|
|
6467
|
+
v[x] = n.v[x] * f, p[x] = v[x];
|
|
6468
|
+
return p;
|
|
6469
6469
|
};
|
|
6470
6470
|
}
|
|
6471
6471
|
function a() {
|
|
@@ -6553,72 +6553,72 @@ var lottie$1 = { exports: {} };
|
|
|
6553
6553
|
}), t;
|
|
6554
6554
|
};
|
|
6555
6555
|
}(), LayerExpressionInterface = /* @__PURE__ */ function() {
|
|
6556
|
-
function e(
|
|
6556
|
+
function e(p) {
|
|
6557
6557
|
var v = new Matrix();
|
|
6558
|
-
if (
|
|
6559
|
-
var x = this._elem.finalTransform.mProp.getValueAtTime(
|
|
6558
|
+
if (p !== void 0) {
|
|
6559
|
+
var x = this._elem.finalTransform.mProp.getValueAtTime(p);
|
|
6560
6560
|
x.clone(v);
|
|
6561
6561
|
} else {
|
|
6562
|
-
var
|
|
6563
|
-
|
|
6562
|
+
var c = this._elem.finalTransform.mProp;
|
|
6563
|
+
c.applyToMatrix(v);
|
|
6564
6564
|
}
|
|
6565
6565
|
return v;
|
|
6566
6566
|
}
|
|
6567
|
-
function t(
|
|
6567
|
+
function t(p, v) {
|
|
6568
6568
|
var x = this.getMatrix(v);
|
|
6569
|
-
return x.props[12] = 0, x.props[13] = 0, x.props[14] = 0, this.applyPoint(x,
|
|
6569
|
+
return x.props[12] = 0, x.props[13] = 0, x.props[14] = 0, this.applyPoint(x, p);
|
|
6570
6570
|
}
|
|
6571
|
-
function r(
|
|
6571
|
+
function r(p, v) {
|
|
6572
6572
|
var x = this.getMatrix(v);
|
|
6573
|
-
return this.applyPoint(x,
|
|
6573
|
+
return this.applyPoint(x, p);
|
|
6574
6574
|
}
|
|
6575
|
-
function i(
|
|
6575
|
+
function i(p, v) {
|
|
6576
6576
|
var x = this.getMatrix(v);
|
|
6577
|
-
return x.props[12] = 0, x.props[13] = 0, x.props[14] = 0, this.invertPoint(x,
|
|
6577
|
+
return x.props[12] = 0, x.props[13] = 0, x.props[14] = 0, this.invertPoint(x, p);
|
|
6578
6578
|
}
|
|
6579
|
-
function s(
|
|
6579
|
+
function s(p, v) {
|
|
6580
6580
|
var x = this.getMatrix(v);
|
|
6581
|
-
return this.invertPoint(x,
|
|
6581
|
+
return this.invertPoint(x, p);
|
|
6582
6582
|
}
|
|
6583
|
-
function a(
|
|
6583
|
+
function a(p, v) {
|
|
6584
6584
|
if (this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
6585
|
-
var x,
|
|
6586
|
-
for (x = 0; x <
|
|
6587
|
-
this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(
|
|
6585
|
+
var x, c = this._elem.hierarchy.length;
|
|
6586
|
+
for (x = 0; x < c; x += 1)
|
|
6587
|
+
this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(p);
|
|
6588
6588
|
}
|
|
6589
|
-
return
|
|
6589
|
+
return p.applyToPointArray(v[0], v[1], v[2] || 0);
|
|
6590
6590
|
}
|
|
6591
|
-
function n(
|
|
6591
|
+
function n(p, v) {
|
|
6592
6592
|
if (this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
6593
|
-
var x,
|
|
6594
|
-
for (x = 0; x <
|
|
6595
|
-
this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(
|
|
6593
|
+
var x, c = this._elem.hierarchy.length;
|
|
6594
|
+
for (x = 0; x < c; x += 1)
|
|
6595
|
+
this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(p);
|
|
6596
6596
|
}
|
|
6597
|
-
return
|
|
6597
|
+
return p.inversePoint(v);
|
|
6598
6598
|
}
|
|
6599
|
-
function f(
|
|
6599
|
+
function f(p) {
|
|
6600
6600
|
var v = new Matrix();
|
|
6601
6601
|
if (v.reset(), this._elem.finalTransform.mProp.applyToMatrix(v), this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
6602
|
-
var x,
|
|
6603
|
-
for (x = 0; x <
|
|
6602
|
+
var x, c = this._elem.hierarchy.length;
|
|
6603
|
+
for (x = 0; x < c; x += 1)
|
|
6604
6604
|
this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(v);
|
|
6605
|
-
return v.inversePoint(
|
|
6605
|
+
return v.inversePoint(p);
|
|
6606
6606
|
}
|
|
6607
|
-
return v.inversePoint(
|
|
6607
|
+
return v.inversePoint(p);
|
|
6608
6608
|
}
|
|
6609
6609
|
function o() {
|
|
6610
6610
|
return [1, 1, 1, 1];
|
|
6611
6611
|
}
|
|
6612
|
-
return function(
|
|
6612
|
+
return function(p) {
|
|
6613
6613
|
var v;
|
|
6614
|
-
function x(
|
|
6615
|
-
b.mask = new MaskManagerInterface(
|
|
6614
|
+
function x(d) {
|
|
6615
|
+
b.mask = new MaskManagerInterface(d, p);
|
|
6616
6616
|
}
|
|
6617
|
-
function
|
|
6618
|
-
b.effect =
|
|
6617
|
+
function c(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:
|
|
@@ -6640,17 +6640,17 @@ var lottie$1 = { exports: {} };
|
|
|
6640
6640
|
return null;
|
|
6641
6641
|
}
|
|
6642
6642
|
}
|
|
6643
|
-
b.getMatrix = e, b.invertPoint = n, b.applyPoint = a, b.toWorld = r, b.toWorldVec = t, b.fromWorld = s, b.fromWorldVec = i, b.toComp = r, b.fromComp = f, b.sampleImage = o, b.sourceRectAtTime =
|
|
6643
|
+
b.getMatrix = e, b.invertPoint = n, b.applyPoint = a, b.toWorld = r, b.toWorldVec = t, b.fromWorld = s, b.fromWorldVec = i, b.toComp = r, b.fromComp = f, b.sampleImage = o, b.sourceRectAtTime = p.sourceRectAtTime.bind(p), b._elem = p, v = TransformExpressionInterface(p.finalTransform.mProp);
|
|
6644
6644
|
var g = getDescriptor(v, "anchorPoint");
|
|
6645
6645
|
return Object.defineProperties(b, {
|
|
6646
6646
|
hasParent: {
|
|
6647
6647
|
get: function() {
|
|
6648
|
-
return
|
|
6648
|
+
return p.hierarchy.length;
|
|
6649
6649
|
}
|
|
6650
6650
|
},
|
|
6651
6651
|
parent: {
|
|
6652
6652
|
get: function() {
|
|
6653
|
-
return
|
|
6653
|
+
return p.hierarchy[0].layerInterface;
|
|
6654
6654
|
}
|
|
6655
6655
|
},
|
|
6656
6656
|
rotation: getDescriptor(v, "rotation"),
|
|
@@ -6666,10 +6666,10 @@ var lottie$1 = { exports: {} };
|
|
|
6666
6666
|
},
|
|
6667
6667
|
active: {
|
|
6668
6668
|
get: function() {
|
|
6669
|
-
return
|
|
6669
|
+
return p.isInRange;
|
|
6670
6670
|
}
|
|
6671
6671
|
}
|
|
6672
|
-
}), b.startTime =
|
|
6672
|
+
}), b.startTime = p.data.st, b.index = p.data.ind, b.source = p.data.refId, b.height = p.data.ty === 0 ? p.data.h : 100, b.width = p.data.ty === 0 ? p.data.w : 100, b.inPoint = p.data.ip / p.comp.globalData.frameRate, b.outPoint = p.data.op / p.comp.globalData.frameRate, b._name = p.data.nm, b.registerMaskInterface = x, b.registerEffectsInterface = c, b;
|
|
6673
6673
|
};
|
|
6674
6674
|
}(), propertyGroupFactory = /* @__PURE__ */ function() {
|
|
6675
6675
|
return function(e, t) {
|
|
@@ -6693,11 +6693,11 @@ var lottie$1 = { exports: {} };
|
|
|
6693
6693
|
};
|
|
6694
6694
|
function t(s, a) {
|
|
6695
6695
|
if (s.effectsManager) {
|
|
6696
|
-
var n = [], f = s.data.ef, o,
|
|
6697
|
-
for (o = 0; o <
|
|
6696
|
+
var n = [], f = s.data.ef, o, p = s.effectsManager.effectElements.length;
|
|
6697
|
+
for (o = 0; o < p; o += 1)
|
|
6698
6698
|
n.push(r(f[o], s.effectsManager.effectElements[o], a, s));
|
|
6699
6699
|
var v = s.data.ef || [], x = function(b) {
|
|
6700
|
-
for (o = 0,
|
|
6700
|
+
for (o = 0, p = v.length; o < p; ) {
|
|
6701
6701
|
if (b === v[o].nm || b === v[o].mn || b === v[o].ix)
|
|
6702
6702
|
return n[o];
|
|
6703
6703
|
o += 1;
|
|
@@ -6714,16 +6714,16 @@ var lottie$1 = { exports: {} };
|
|
|
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
|
|
6725
|
-
for (x = 0; x <
|
|
6726
|
-
s.ef[x].ty === 5 ? v.push(r(s.ef[x], a.effectElements[x], a.effectElements[x].propertyGroup, f)) : v.push(i(a.effectElements[x], s.ef[x].ty, f,
|
|
6724
|
+
var p = propertyGroupFactory(o, n), v = [], x, c = s.ef.length;
|
|
6725
|
+
for (x = 0; x < c; x += 1)
|
|
6726
|
+
s.ef[x].ty === 5 ? v.push(r(s.ef[x], a.effectElements[x], a.effectElements[x].propertyGroup, f)) : v.push(i(a.effectElements[x], s.ef[x].ty, f, p));
|
|
6727
6727
|
return s.mn === "ADBE Color Control" && Object.defineProperty(o, "color", {
|
|
6728
6728
|
get: function() {
|
|
6729
6729
|
return v[0]();
|
|
@@ -6738,16 +6738,16 @@ var lottie$1 = { exports: {} };
|
|
|
6738
6738
|
value: s.nm
|
|
6739
6739
|
},
|
|
6740
6740
|
propertyGroup: {
|
|
6741
|
-
value:
|
|
6741
|
+
value: p
|
|
6742
6742
|
}
|
|
6743
6743
|
}), o.enabled = s.en !== 0, o.active = o.enabled, o;
|
|
6744
6744
|
}
|
|
6745
6745
|
function i(s, a, n, f) {
|
|
6746
6746
|
var o = ExpressionPropertyInterface(s.p);
|
|
6747
|
-
function
|
|
6747
|
+
function p() {
|
|
6748
6748
|
return a === 10 ? n.comp.compInterface(s.p.v) : o();
|
|
6749
6749
|
}
|
|
6750
|
-
return s.p.setGroupProperty && s.p.setGroupProperty(PropertyInterface("", f)),
|
|
6750
|
+
return s.p.setGroupProperty && s.p.setGroupProperty(PropertyInterface("", f)), p;
|
|
6751
6751
|
}
|
|
6752
6752
|
return e;
|
|
6753
6753
|
}(), ShapePathInterface = /* @__PURE__ */ function() {
|
|
@@ -6786,54 +6786,54 @@ var lottie$1 = { exports: {} };
|
|
|
6786
6786
|
}), a;
|
|
6787
6787
|
};
|
|
6788
6788
|
}(), ShapeExpressionInterface = /* @__PURE__ */ function() {
|
|
6789
|
-
function e(g,
|
|
6790
|
-
var
|
|
6791
|
-
for (
|
|
6792
|
-
g[
|
|
6793
|
-
return
|
|
6794
|
-
}
|
|
6795
|
-
function t(g,
|
|
6796
|
-
var
|
|
6797
|
-
for (var C = 0, A =
|
|
6798
|
-
if (
|
|
6799
|
-
return
|
|
6789
|
+
function e(g, d, E) {
|
|
6790
|
+
var h = [], u, l = g ? g.length : 0;
|
|
6791
|
+
for (u = 0; u < l; u += 1)
|
|
6792
|
+
g[u].ty === "gr" ? h.push(r(g[u], d[u], E)) : g[u].ty === "fl" ? h.push(i(g[u], d[u], E)) : g[u].ty === "st" ? h.push(n(g[u], d[u], E)) : g[u].ty === "tm" ? h.push(f(g[u], d[u], E)) : g[u].ty === "tr" || (g[u].ty === "el" ? h.push(p(g[u], d[u], E)) : g[u].ty === "sr" ? h.push(v(g[u], d[u], E)) : g[u].ty === "sh" ? h.push(ShapePathInterface(g[u], d[u], E)) : g[u].ty === "rc" ? h.push(x(g[u], d[u], E)) : g[u].ty === "rd" ? h.push(c(g[u], d[u], E)) : g[u].ty === "rp" ? h.push(b(g[u], d[u], E)) : g[u].ty === "gf" ? h.push(s(g[u], d[u], E)) : h.push(a(g[u], d[u])));
|
|
6793
|
+
return h;
|
|
6794
|
+
}
|
|
6795
|
+
function t(g, d, E) {
|
|
6796
|
+
var h, u = function(S) {
|
|
6797
|
+
for (var C = 0, A = h.length; C < A; ) {
|
|
6798
|
+
if (h[C]._name === S || h[C].mn === S || h[C].propertyIndex === S || h[C].ix === S || h[C].ind === S)
|
|
6799
|
+
return h[C];
|
|
6800
6800
|
C += 1;
|
|
6801
6801
|
}
|
|
6802
|
-
return typeof S == "number" ?
|
|
6802
|
+
return typeof S == "number" ? h[S - 1] : null;
|
|
6803
6803
|
};
|
|
6804
|
-
|
|
6805
|
-
var
|
|
6806
|
-
return
|
|
6804
|
+
u.propertyGroup = propertyGroupFactory(u, E), h = e(g.it, d.it, u.propertyGroup), u.numProperties = h.length;
|
|
6805
|
+
var l = o(g.it[g.it.length - 1], d.it[d.it.length - 1], u.propertyGroup);
|
|
6806
|
+
return u.transform = l, u.propertyIndex = g.cix, u._name = g.nm, u;
|
|
6807
6807
|
}
|
|
6808
|
-
function r(g,
|
|
6809
|
-
var
|
|
6808
|
+
function r(g, d, E) {
|
|
6809
|
+
var h = function(S) {
|
|
6810
6810
|
switch (S) {
|
|
6811
6811
|
case "ADBE Vectors Group":
|
|
6812
6812
|
case "Contents":
|
|
6813
6813
|
case 2:
|
|
6814
|
-
return
|
|
6814
|
+
return h.content;
|
|
6815
6815
|
default:
|
|
6816
|
-
return
|
|
6816
|
+
return h.transform;
|
|
6817
6817
|
}
|
|
6818
6818
|
};
|
|
6819
|
-
|
|
6820
|
-
var
|
|
6821
|
-
return
|
|
6819
|
+
h.propertyGroup = propertyGroupFactory(h, E);
|
|
6820
|
+
var u = t(g, d, h.propertyGroup), l = o(g.it[g.it.length - 1], d.it[d.it.length - 1], h.propertyGroup);
|
|
6821
|
+
return h.content = u, h.transform = l, Object.defineProperty(h, "_name", {
|
|
6822
6822
|
get: function() {
|
|
6823
6823
|
return g.nm;
|
|
6824
6824
|
}
|
|
6825
|
-
}),
|
|
6825
|
+
}), h.numProperties = g.np, h.propertyIndex = g.ix, h.nm = g.nm, h.mn = g.mn, h;
|
|
6826
6826
|
}
|
|
6827
|
-
function i(g,
|
|
6828
|
-
function
|
|
6829
|
-
return
|
|
6827
|
+
function i(g, d, E) {
|
|
6828
|
+
function h(u) {
|
|
6829
|
+
return u === "Color" || u === "color" ? h.color : u === "Opacity" || u === "opacity" ? h.opacity : null;
|
|
6830
6830
|
}
|
|
6831
|
-
return Object.defineProperties(
|
|
6831
|
+
return Object.defineProperties(h, {
|
|
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)), h;
|
|
6845
6845
|
}
|
|
6846
|
-
function s(g,
|
|
6847
|
-
function
|
|
6848
|
-
return
|
|
6846
|
+
function s(g, d, E) {
|
|
6847
|
+
function h(u) {
|
|
6848
|
+
return u === "Start Point" || u === "start point" ? h.startPoint : u === "End Point" || u === "end point" ? h.endPoint : u === "Opacity" || u === "opacity" ? h.opacity : null;
|
|
6849
6849
|
}
|
|
6850
|
-
return Object.defineProperties(
|
|
6850
|
+
return Object.defineProperties(h, {
|
|
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)), h;
|
|
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
|
|
6881
|
-
function
|
|
6879
|
+
function n(g, d, E) {
|
|
6880
|
+
var h = propertyGroupFactory(A, E), u = propertyGroupFactory(C, h);
|
|
6881
|
+
function l(T) {
|
|
6882
6882
|
Object.defineProperty(C, g.d[T].nm, {
|
|
6883
|
-
get: ExpressionPropertyInterface(
|
|
6883
|
+
get: ExpressionPropertyInterface(d.d.dataProps[T].p)
|
|
6884
6884
|
});
|
|
6885
6885
|
}
|
|
6886
6886
|
var m, S = g.d ? g.d.length : 0, C = {};
|
|
6887
6887
|
for (m = 0; m < S; m += 1)
|
|
6888
|
-
|
|
6888
|
+
l(m), d.d.dataProps[m].p.setGroupProperty(u);
|
|
6889
6889
|
function A(T) {
|
|
6890
6890
|
return T === "Color" || T === "color" ? A.color : T === "Opacity" || T === "opacity" ? A.opacity : T === "Stroke Width" || T === "stroke width" ? A.strokeWidth : null;
|
|
6891
6891
|
}
|
|
6892
6892
|
return Object.defineProperties(A, {
|
|
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,178 +6910,178 @@ var lottie$1 = { exports: {} };
|
|
|
6910
6910
|
mn: {
|
|
6911
6911
|
value: g.mn
|
|
6912
6912
|
}
|
|
6913
|
-
}),
|
|
6913
|
+
}), d.c.setGroupProperty(PropertyInterface("Color", h)), d.o.setGroupProperty(PropertyInterface("Opacity", h)), d.w.setGroupProperty(PropertyInterface("Stroke Width", h)), A;
|
|
6914
6914
|
}
|
|
6915
|
-
function f(g,
|
|
6916
|
-
function
|
|
6917
|
-
return
|
|
6915
|
+
function f(g, d, E) {
|
|
6916
|
+
function h(l) {
|
|
6917
|
+
return l === g.e.ix || l === "End" || l === "end" ? h.end : l === g.s.ix ? h.start : l === g.o.ix ? h.offset : null;
|
|
6918
6918
|
}
|
|
6919
|
-
var
|
|
6920
|
-
return
|
|
6919
|
+
var u = propertyGroupFactory(h, E);
|
|
6920
|
+
return h.propertyIndex = g.ix, d.s.setGroupProperty(PropertyInterface("Start", u)), d.e.setGroupProperty(PropertyInterface("End", u)), d.o.setGroupProperty(PropertyInterface("Offset", u)), h.propertyIndex = g.ix, h.propertyGroup = E, Object.defineProperties(h, {
|
|
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
|
+
}), h.mn = g.mn, h;
|
|
6934
6934
|
}
|
|
6935
|
-
function o(g,
|
|
6936
|
-
function
|
|
6937
|
-
return g.a.ix ===
|
|
6935
|
+
function o(g, d, E) {
|
|
6936
|
+
function h(l) {
|
|
6937
|
+
return g.a.ix === l || l === "Anchor Point" ? h.anchorPoint : g.o.ix === l || l === "Opacity" ? h.opacity : g.p.ix === l || l === "Position" ? h.position : g.r.ix === l || l === "Rotation" || l === "ADBE Vector Rotation" ? h.rotation : g.s.ix === l || l === "Scale" ? h.scale : g.sk && g.sk.ix === l || l === "Skew" ? h.skew : g.sa && g.sa.ix === l || l === "Skew Axis" ? h.skewAxis : null;
|
|
6938
6938
|
}
|
|
6939
|
-
var
|
|
6940
|
-
return
|
|
6939
|
+
var u = propertyGroupFactory(h, E);
|
|
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(h, {
|
|
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
|
+
}), h.ty = "tr", h.mn = g.mn, h.propertyGroup = E, h;
|
|
6966
6966
|
}
|
|
6967
|
-
function
|
|
6968
|
-
function
|
|
6969
|
-
return g.p.ix === m ?
|
|
6967
|
+
function p(g, d, E) {
|
|
6968
|
+
function h(m) {
|
|
6969
|
+
return g.p.ix === m ? h.position : g.s.ix === m ? h.size : null;
|
|
6970
6970
|
}
|
|
6971
|
-
var
|
|
6972
|
-
|
|
6973
|
-
var
|
|
6974
|
-
return
|
|
6971
|
+
var u = propertyGroupFactory(h, E);
|
|
6972
|
+
h.propertyIndex = g.ix;
|
|
6973
|
+
var l = d.sh.ty === "tm" ? d.sh.prop : d.sh;
|
|
6974
|
+
return l.s.setGroupProperty(PropertyInterface("Size", u)), l.p.setGroupProperty(PropertyInterface("Position", u)), Object.defineProperties(h, {
|
|
6975
6975
|
size: {
|
|
6976
|
-
get: ExpressionPropertyInterface(
|
|
6976
|
+
get: ExpressionPropertyInterface(l.s)
|
|
6977
6977
|
},
|
|
6978
6978
|
position: {
|
|
6979
|
-
get: ExpressionPropertyInterface(
|
|
6979
|
+
get: ExpressionPropertyInterface(l.p)
|
|
6980
6980
|
},
|
|
6981
6981
|
_name: {
|
|
6982
6982
|
value: g.nm
|
|
6983
6983
|
}
|
|
6984
|
-
}),
|
|
6984
|
+
}), h.mn = g.mn, h;
|
|
6985
6985
|
}
|
|
6986
|
-
function v(g,
|
|
6987
|
-
function
|
|
6988
|
-
return g.p.ix === m ?
|
|
6986
|
+
function v(g, d, E) {
|
|
6987
|
+
function h(m) {
|
|
6988
|
+
return g.p.ix === m ? h.position : g.r.ix === m ? h.rotation : g.pt.ix === m ? h.points : g.or.ix === m || m === "ADBE Vector Star Outer Radius" ? h.outerRadius : g.os.ix === m ? h.outerRoundness : g.ir && (g.ir.ix === m || m === "ADBE Vector Star Inner Radius") ? h.innerRadius : g.is && g.is.ix === m ? h.innerRoundness : null;
|
|
6989
6989
|
}
|
|
6990
|
-
var
|
|
6991
|
-
return
|
|
6990
|
+
var u = propertyGroupFactory(h, E), l = d.sh.ty === "tm" ? d.sh.prop : d.sh;
|
|
6991
|
+
return h.propertyIndex = g.ix, l.or.setGroupProperty(PropertyInterface("Outer Radius", u)), l.os.setGroupProperty(PropertyInterface("Outer Roundness", u)), l.pt.setGroupProperty(PropertyInterface("Points", u)), l.p.setGroupProperty(PropertyInterface("Position", u)), l.r.setGroupProperty(PropertyInterface("Rotation", u)), g.ir && (l.ir.setGroupProperty(PropertyInterface("Inner Radius", u)), l.is.setGroupProperty(PropertyInterface("Inner Roundness", u))), Object.defineProperties(h, {
|
|
6992
6992
|
position: {
|
|
6993
|
-
get: ExpressionPropertyInterface(
|
|
6993
|
+
get: ExpressionPropertyInterface(l.p)
|
|
6994
6994
|
},
|
|
6995
6995
|
rotation: {
|
|
6996
|
-
get: ExpressionPropertyInterface(
|
|
6996
|
+
get: ExpressionPropertyInterface(l.r)
|
|
6997
6997
|
},
|
|
6998
6998
|
points: {
|
|
6999
|
-
get: ExpressionPropertyInterface(
|
|
6999
|
+
get: ExpressionPropertyInterface(l.pt)
|
|
7000
7000
|
},
|
|
7001
7001
|
outerRadius: {
|
|
7002
|
-
get: ExpressionPropertyInterface(
|
|
7002
|
+
get: ExpressionPropertyInterface(l.or)
|
|
7003
7003
|
},
|
|
7004
7004
|
outerRoundness: {
|
|
7005
|
-
get: ExpressionPropertyInterface(
|
|
7005
|
+
get: ExpressionPropertyInterface(l.os)
|
|
7006
7006
|
},
|
|
7007
7007
|
innerRadius: {
|
|
7008
|
-
get: ExpressionPropertyInterface(
|
|
7008
|
+
get: ExpressionPropertyInterface(l.ir)
|
|
7009
7009
|
},
|
|
7010
7010
|
innerRoundness: {
|
|
7011
|
-
get: ExpressionPropertyInterface(
|
|
7011
|
+
get: ExpressionPropertyInterface(l.is)
|
|
7012
7012
|
},
|
|
7013
7013
|
_name: {
|
|
7014
7014
|
value: g.nm
|
|
7015
7015
|
}
|
|
7016
|
-
}),
|
|
7016
|
+
}), h.mn = g.mn, h;
|
|
7017
7017
|
}
|
|
7018
|
-
function x(g,
|
|
7019
|
-
function
|
|
7020
|
-
return g.p.ix === m ?
|
|
7018
|
+
function x(g, d, E) {
|
|
7019
|
+
function h(m) {
|
|
7020
|
+
return g.p.ix === m ? h.position : g.r.ix === m ? h.roundness : g.s.ix === m || m === "Size" || m === "ADBE Vector Rect Size" ? h.size : null;
|
|
7021
7021
|
}
|
|
7022
|
-
var
|
|
7023
|
-
return
|
|
7022
|
+
var u = propertyGroupFactory(h, E), l = d.sh.ty === "tm" ? d.sh.prop : d.sh;
|
|
7023
|
+
return h.propertyIndex = g.ix, l.p.setGroupProperty(PropertyInterface("Position", u)), l.s.setGroupProperty(PropertyInterface("Size", u)), l.r.setGroupProperty(PropertyInterface("Rotation", u)), Object.defineProperties(h, {
|
|
7024
7024
|
position: {
|
|
7025
|
-
get: ExpressionPropertyInterface(
|
|
7025
|
+
get: ExpressionPropertyInterface(l.p)
|
|
7026
7026
|
},
|
|
7027
7027
|
roundness: {
|
|
7028
|
-
get: ExpressionPropertyInterface(
|
|
7028
|
+
get: ExpressionPropertyInterface(l.r)
|
|
7029
7029
|
},
|
|
7030
7030
|
size: {
|
|
7031
|
-
get: ExpressionPropertyInterface(
|
|
7031
|
+
get: ExpressionPropertyInterface(l.s)
|
|
7032
7032
|
},
|
|
7033
7033
|
_name: {
|
|
7034
7034
|
value: g.nm
|
|
7035
7035
|
}
|
|
7036
|
-
}),
|
|
7036
|
+
}), h.mn = g.mn, h;
|
|
7037
7037
|
}
|
|
7038
|
-
function
|
|
7039
|
-
function
|
|
7040
|
-
return g.r.ix === m || m === "Round Corners 1" ?
|
|
7038
|
+
function c(g, d, E) {
|
|
7039
|
+
function h(m) {
|
|
7040
|
+
return g.r.ix === m || m === "Round Corners 1" ? h.radius : null;
|
|
7041
7041
|
}
|
|
7042
|
-
var
|
|
7043
|
-
return
|
|
7042
|
+
var u = propertyGroupFactory(h, E), l = d;
|
|
7043
|
+
return h.propertyIndex = g.ix, l.rd.setGroupProperty(PropertyInterface("Radius", u)), Object.defineProperties(h, {
|
|
7044
7044
|
radius: {
|
|
7045
|
-
get: ExpressionPropertyInterface(
|
|
7045
|
+
get: ExpressionPropertyInterface(l.rd)
|
|
7046
7046
|
},
|
|
7047
7047
|
_name: {
|
|
7048
7048
|
value: g.nm
|
|
7049
7049
|
}
|
|
7050
|
-
}),
|
|
7050
|
+
}), h.mn = g.mn, h;
|
|
7051
7051
|
}
|
|
7052
|
-
function b(g,
|
|
7053
|
-
function
|
|
7054
|
-
return g.c.ix === m || m === "Copies" ?
|
|
7052
|
+
function b(g, d, E) {
|
|
7053
|
+
function h(m) {
|
|
7054
|
+
return g.c.ix === m || m === "Copies" ? h.copies : g.o.ix === m || m === "Offset" ? h.offset : null;
|
|
7055
7055
|
}
|
|
7056
|
-
var
|
|
7057
|
-
return
|
|
7056
|
+
var u = propertyGroupFactory(h, E), l = d;
|
|
7057
|
+
return h.propertyIndex = g.ix, l.c.setGroupProperty(PropertyInterface("Copies", u)), l.o.setGroupProperty(PropertyInterface("Offset", u)), Object.defineProperties(h, {
|
|
7058
7058
|
copies: {
|
|
7059
|
-
get: ExpressionPropertyInterface(
|
|
7059
|
+
get: ExpressionPropertyInterface(l.c)
|
|
7060
7060
|
},
|
|
7061
7061
|
offset: {
|
|
7062
|
-
get: ExpressionPropertyInterface(
|
|
7062
|
+
get: ExpressionPropertyInterface(l.o)
|
|
7063
7063
|
},
|
|
7064
7064
|
_name: {
|
|
7065
7065
|
value: g.nm
|
|
7066
7066
|
}
|
|
7067
|
-
}),
|
|
7067
|
+
}), h.mn = g.mn, h;
|
|
7068
7068
|
}
|
|
7069
|
-
return function(g,
|
|
7070
|
-
var
|
|
7071
|
-
function
|
|
7069
|
+
return function(g, d, E) {
|
|
7070
|
+
var h;
|
|
7071
|
+
function u(m) {
|
|
7072
7072
|
if (typeof m == "number")
|
|
7073
|
-
return m = m === void 0 ? 1 : m, m === 0 ? E :
|
|
7074
|
-
for (var S = 0, C =
|
|
7075
|
-
if (
|
|
7076
|
-
return
|
|
7073
|
+
return m = m === void 0 ? 1 : m, m === 0 ? E : h[m - 1];
|
|
7074
|
+
for (var S = 0, C = h.length; S < C; ) {
|
|
7075
|
+
if (h[S]._name === m)
|
|
7076
|
+
return h[S];
|
|
7077
7077
|
S += 1;
|
|
7078
7078
|
}
|
|
7079
7079
|
return null;
|
|
7080
7080
|
}
|
|
7081
|
-
function
|
|
7081
|
+
function l() {
|
|
7082
7082
|
return E;
|
|
7083
7083
|
}
|
|
7084
|
-
return
|
|
7084
|
+
return u.propertyGroup = propertyGroupFactory(u, l), h = e(g, d, u.propertyGroup), u.numProperties = h.length, u._name = "Contents", u;
|
|
7085
7085
|
};
|
|
7086
7086
|
}(), TextExpressionInterface = /* @__PURE__ */ function() {
|
|
7087
7087
|
return function(e) {
|
|
@@ -7126,9 +7126,9 @@ var lottie$1 = { exports: {} };
|
|
|
7126
7126
|
function f(o) {
|
|
7127
7127
|
if (a[o])
|
|
7128
7128
|
return s = o, a = a[o], _typeof(a) === "object" ? f : a;
|
|
7129
|
-
var
|
|
7130
|
-
if (
|
|
7131
|
-
var v = parseInt(o.substr(
|
|
7129
|
+
var p = o.indexOf(s);
|
|
7130
|
+
if (p !== -1) {
|
|
7131
|
+
var v = parseInt(o.substr(p + s.length), 10);
|
|
7132
7132
|
return a = a[v], _typeof(a) === "object" ? f : a;
|
|
7133
7133
|
}
|
|
7134
7134
|
return "";
|
|
@@ -7165,11 +7165,11 @@ 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),
|
|
7168
|
+
var f = -0.01, o = this.getValueAtTime(n), p = this.getValueAtTime(n + f), v = 0;
|
|
7169
7169
|
if (o.length) {
|
|
7170
7170
|
var x;
|
|
7171
7171
|
for (x = 0; x < o.length; x += 1)
|
|
7172
|
-
v += Math.pow(
|
|
7172
|
+
v += Math.pow(p[x] - o[x], 2);
|
|
7173
7173
|
v = Math.sqrt(v) * 100;
|
|
7174
7174
|
} else
|
|
7175
7175
|
v = 0;
|
|
@@ -7178,14 +7178,14 @@ var lottie$1 = { exports: {} };
|
|
|
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),
|
|
7181
|
+
var f = -1e-3, o = this.getValueAtTime(n), p = this.getValueAtTime(n + f), v;
|
|
7182
7182
|
if (o.length) {
|
|
7183
7183
|
v = createTypedArray("float32", o.length);
|
|
7184
7184
|
var x;
|
|
7185
7185
|
for (x = 0; x < o.length; x += 1)
|
|
7186
|
-
v[x] = (
|
|
7186
|
+
v[x] = (p[x] - o[x]) / f;
|
|
7187
7187
|
} else
|
|
7188
|
-
v = (
|
|
7188
|
+
v = (p - o) / f;
|
|
7189
7189
|
return v;
|
|
7190
7190
|
}
|
|
7191
7191
|
function s() {
|
|
@@ -7204,128 +7204,128 @@ var lottie$1 = { exports: {} };
|
|
|
7204
7204
|
};
|
|
7205
7205
|
}();
|
|
7206
7206
|
function addPropertyDecorator() {
|
|
7207
|
-
function e(
|
|
7207
|
+
function e(c, b, g) {
|
|
7208
7208
|
if (!this.k || !this.keyframes)
|
|
7209
7209
|
return this.pv;
|
|
7210
|
-
|
|
7211
|
-
var
|
|
7212
|
-
if (
|
|
7210
|
+
c = c ? c.toLowerCase() : "";
|
|
7211
|
+
var d = this.comp.renderedFrame, E = this.keyframes, h = E[E.length - 1].t;
|
|
7212
|
+
if (d <= h)
|
|
7213
7213
|
return this.pv;
|
|
7214
|
-
var
|
|
7215
|
-
g ? (b ?
|
|
7214
|
+
var u, l;
|
|
7215
|
+
g ? (b ? u = Math.abs(h - this.elem.comp.globalData.frameRate * b) : u = Math.max(0, h - this.elem.data.ip), l = h - u) : ((!b || b > E.length - 1) && (b = E.length - 1), l = E[E.length - 1 - b].t, u = h - l);
|
|
7216
7216
|
var m, S, C;
|
|
7217
|
-
if (
|
|
7218
|
-
var A = Math.floor((
|
|
7217
|
+
if (c === "pingpong") {
|
|
7218
|
+
var A = Math.floor((d - l) / u);
|
|
7219
7219
|
if (A % 2 !== 0)
|
|
7220
|
-
return this.getValueAtTime((
|
|
7221
|
-
} else if (
|
|
7222
|
-
var T = this.getValueAtTime(
|
|
7220
|
+
return this.getValueAtTime((u - (d - l) % u + l) / this.comp.globalData.frameRate, 0);
|
|
7221
|
+
} else if (c === "offset") {
|
|
7222
|
+
var T = this.getValueAtTime(l / this.comp.globalData.frameRate, 0), F = this.getValueAtTime(h / this.comp.globalData.frameRate, 0), B = this.getValueAtTime(((d - l) % u + l) / this.comp.globalData.frameRate, 0), R = Math.floor((d - l) / u);
|
|
7223
7223
|
if (this.pv.length) {
|
|
7224
7224
|
for (C = new Array(T.length), S = C.length, m = 0; m < S; m += 1)
|
|
7225
|
-
C[m] = (F[m] - T[m]) *
|
|
7225
|
+
C[m] = (F[m] - T[m]) * R + B[m];
|
|
7226
7226
|
return C;
|
|
7227
7227
|
}
|
|
7228
|
-
return (F - T) *
|
|
7229
|
-
} else if (
|
|
7230
|
-
var I = this.getValueAtTime(
|
|
7228
|
+
return (F - T) * R + B;
|
|
7229
|
+
} else if (c === "continue") {
|
|
7230
|
+
var I = this.getValueAtTime(h / this.comp.globalData.frameRate, 0), D = this.getValueAtTime((h - 1e-3) / this.comp.globalData.frameRate, 0);
|
|
7231
7231
|
if (this.pv.length) {
|
|
7232
7232
|
for (C = new Array(I.length), S = C.length, m = 0; m < S; m += 1)
|
|
7233
|
-
C[m] = I[m] + (I[m] -
|
|
7233
|
+
C[m] = I[m] + (I[m] - D[m]) * ((d - h) / this.comp.globalData.frameRate) / 5e-4;
|
|
7234
7234
|
return C;
|
|
7235
7235
|
}
|
|
7236
|
-
return I + (I -
|
|
7236
|
+
return I + (I - D) * ((d - h) / 1e-3);
|
|
7237
7237
|
}
|
|
7238
|
-
return this.getValueAtTime(((
|
|
7238
|
+
return this.getValueAtTime(((d - l) % u + l) / this.comp.globalData.frameRate, 0);
|
|
7239
7239
|
}
|
|
7240
|
-
function t(
|
|
7240
|
+
function t(c, b, g) {
|
|
7241
7241
|
if (!this.k)
|
|
7242
7242
|
return this.pv;
|
|
7243
|
-
|
|
7244
|
-
var
|
|
7245
|
-
if (
|
|
7243
|
+
c = c ? c.toLowerCase() : "";
|
|
7244
|
+
var d = this.comp.renderedFrame, E = this.keyframes, h = E[0].t;
|
|
7245
|
+
if (d >= h)
|
|
7246
7246
|
return this.pv;
|
|
7247
|
-
var
|
|
7248
|
-
g ? (b ?
|
|
7247
|
+
var u, l;
|
|
7248
|
+
g ? (b ? u = Math.abs(this.elem.comp.globalData.frameRate * b) : u = Math.max(0, this.elem.data.op - h), l = h + u) : ((!b || b > E.length - 1) && (b = E.length - 1), l = E[b].t, u = l - h);
|
|
7249
7249
|
var m, S, C;
|
|
7250
|
-
if (
|
|
7251
|
-
var A = Math.floor((
|
|
7250
|
+
if (c === "pingpong") {
|
|
7251
|
+
var A = Math.floor((h - d) / u);
|
|
7252
7252
|
if (A % 2 === 0)
|
|
7253
|
-
return this.getValueAtTime(((
|
|
7254
|
-
} else if (
|
|
7255
|
-
var T = this.getValueAtTime(
|
|
7253
|
+
return this.getValueAtTime(((h - d) % u + h) / this.comp.globalData.frameRate, 0);
|
|
7254
|
+
} else if (c === "offset") {
|
|
7255
|
+
var T = this.getValueAtTime(h / this.comp.globalData.frameRate, 0), F = this.getValueAtTime(l / this.comp.globalData.frameRate, 0), B = this.getValueAtTime((u - (h - d) % u + h) / this.comp.globalData.frameRate, 0), R = Math.floor((h - d) / u) + 1;
|
|
7256
7256
|
if (this.pv.length) {
|
|
7257
7257
|
for (C = new Array(T.length), S = C.length, m = 0; m < S; m += 1)
|
|
7258
|
-
C[m] =
|
|
7258
|
+
C[m] = B[m] - (F[m] - T[m]) * R;
|
|
7259
7259
|
return C;
|
|
7260
7260
|
}
|
|
7261
|
-
return
|
|
7262
|
-
} else if (
|
|
7263
|
-
var I = this.getValueAtTime(
|
|
7261
|
+
return B - (F - T) * R;
|
|
7262
|
+
} else if (c === "continue") {
|
|
7263
|
+
var I = this.getValueAtTime(h / this.comp.globalData.frameRate, 0), D = this.getValueAtTime((h + 1e-3) / this.comp.globalData.frameRate, 0);
|
|
7264
7264
|
if (this.pv.length) {
|
|
7265
7265
|
for (C = new Array(I.length), S = C.length, m = 0; m < S; m += 1)
|
|
7266
|
-
C[m] = I[m] + (I[m] -
|
|
7266
|
+
C[m] = I[m] + (I[m] - D[m]) * (h - d) / 1e-3;
|
|
7267
7267
|
return C;
|
|
7268
7268
|
}
|
|
7269
|
-
return I + (I -
|
|
7269
|
+
return I + (I - D) * (h - d) / 1e-3;
|
|
7270
7270
|
}
|
|
7271
|
-
return this.getValueAtTime((
|
|
7271
|
+
return this.getValueAtTime((u - ((h - d) % u + h)) / this.comp.globalData.frameRate, 0);
|
|
7272
7272
|
}
|
|
7273
|
-
function r(
|
|
7273
|
+
function r(c, b) {
|
|
7274
7274
|
if (!this.k)
|
|
7275
7275
|
return this.pv;
|
|
7276
|
-
if (
|
|
7276
|
+
if (c = (c || 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,
|
|
7278
|
+
var g = this.comp.renderedFrame / this.comp.globalData.frameRate, d = g - c, E = g + c, h = b > 1 ? (E - d) / (b - 1) : 1, u = 0, l = 0, m;
|
|
7279
7279
|
this.pv.length ? m = createTypedArray("float32", this.pv.length) : m = 0;
|
|
7280
|
-
for (var S;
|
|
7281
|
-
if (S = this.getValueAtTime(
|
|
7282
|
-
for (
|
|
7283
|
-
m[
|
|
7280
|
+
for (var S; u < b; ) {
|
|
7281
|
+
if (S = this.getValueAtTime(d + u * h), this.pv.length)
|
|
7282
|
+
for (l = 0; l < this.pv.length; l += 1)
|
|
7283
|
+
m[l] += S[l];
|
|
7284
7284
|
else
|
|
7285
7285
|
m += S;
|
|
7286
|
-
|
|
7286
|
+
u += 1;
|
|
7287
7287
|
}
|
|
7288
7288
|
if (this.pv.length)
|
|
7289
|
-
for (
|
|
7290
|
-
m[
|
|
7289
|
+
for (l = 0; l < this.pv.length; l += 1)
|
|
7290
|
+
m[l] /= b;
|
|
7291
7291
|
else
|
|
7292
7292
|
m /= b;
|
|
7293
7293
|
return m;
|
|
7294
7294
|
}
|
|
7295
|
-
function i(
|
|
7295
|
+
function i(c) {
|
|
7296
7296
|
this._transformCachingAtTime || (this._transformCachingAtTime = {
|
|
7297
7297
|
v: new Matrix()
|
|
7298
7298
|
});
|
|
7299
7299
|
var b = this._transformCachingAtTime.v;
|
|
7300
7300
|
if (b.cloneFromProps(this.pre.props), this.appliedTransformations < 1) {
|
|
7301
|
-
var g = this.a.getValueAtTime(
|
|
7301
|
+
var g = this.a.getValueAtTime(c);
|
|
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(c);
|
|
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
|
-
var E = this.sk.getValueAtTime(
|
|
7310
|
-
b.skewFromAxis(-E * this.sk.mult,
|
|
7309
|
+
var E = this.sk.getValueAtTime(c), h = this.sa.getValueAtTime(c);
|
|
7310
|
+
b.skewFromAxis(-E * this.sk.mult, h * this.sa.mult);
|
|
7311
7311
|
}
|
|
7312
7312
|
if (this.r && this.appliedTransformations < 4) {
|
|
7313
|
-
var
|
|
7314
|
-
b.rotate(-
|
|
7313
|
+
var u = this.r.getValueAtTime(c);
|
|
7314
|
+
b.rotate(-u * this.r.mult);
|
|
7315
7315
|
} else if (!this.r && this.appliedTransformations < 4) {
|
|
7316
|
-
var
|
|
7317
|
-
b.rotateZ(-
|
|
7316
|
+
var l = this.rz.getValueAtTime(c), m = this.ry.getValueAtTime(c), S = this.rx.getValueAtTime(c), C = this.or.getValueAtTime(c);
|
|
7317
|
+
b.rotateZ(-l * this.rz.mult).rotateY(m * this.ry.mult).rotateX(S * 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 A = this.px.getValueAtTime(
|
|
7320
|
+
var A = this.px.getValueAtTime(c), T = this.py.getValueAtTime(c);
|
|
7321
7321
|
if (this.data.p.z) {
|
|
7322
|
-
var F = this.pz.getValueAtTime(
|
|
7322
|
+
var F = this.pz.getValueAtTime(c);
|
|
7323
7323
|
b.translate(A * this.px.mult, T * this.py.mult, -F * this.pz.mult);
|
|
7324
7324
|
} else
|
|
7325
7325
|
b.translate(A * this.px.mult, T * this.py.mult, 0);
|
|
7326
7326
|
} else {
|
|
7327
|
-
var
|
|
7328
|
-
b.translate(
|
|
7327
|
+
var B = this.p.getValueAtTime(c);
|
|
7328
|
+
b.translate(B[0] * this.p.mult, B[1] * this.p.mult, -B[2] * this.p.mult);
|
|
7329
7329
|
}
|
|
7330
7330
|
return b;
|
|
7331
7331
|
}
|
|
@@ -7333,39 +7333,39 @@ var lottie$1 = { exports: {} };
|
|
|
7333
7333
|
return this.v.clone(new Matrix());
|
|
7334
7334
|
}
|
|
7335
7335
|
var a = TransformPropertyFactory.getTransformProperty;
|
|
7336
|
-
TransformPropertyFactory.getTransformProperty = function(
|
|
7337
|
-
var
|
|
7338
|
-
return
|
|
7336
|
+
TransformPropertyFactory.getTransformProperty = function(c, b, g) {
|
|
7337
|
+
var d = a(c, 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(
|
|
7342
|
-
var
|
|
7343
|
-
|
|
7344
|
-
var
|
|
7345
|
-
return g !== 0 && (
|
|
7341
|
+
PropertyFactory.getProp = function(c, b, g, d, E) {
|
|
7342
|
+
var h = n(c, b, g, d, E);
|
|
7343
|
+
h.kf ? h.getValueAtTime = expressionHelpers.getValueAtTime.bind(h) : h.getValueAtTime = expressionHelpers.getStaticValueAtTime.bind(h), h.setGroupProperty = expressionHelpers.setGroupProperty, h.loopOut = e, h.loopIn = t, h.smooth = r, h.getVelocityAtTime = expressionHelpers.getVelocityAtTime.bind(h), h.getSpeedAtTime = expressionHelpers.getSpeedAtTime.bind(h), h.numKeys = b.a === 1 ? b.k.length : 0, h.propertyIndex = b.ix;
|
|
7344
|
+
var u = 0;
|
|
7345
|
+
return g !== 0 && (u = createTypedArray("float32", b.a === 1 ? b.k[0].s.length : b.k.length)), h._cachingAtTime = {
|
|
7346
7346
|
lastFrame: initialDefaultFrame,
|
|
7347
7347
|
lastIndex: 0,
|
|
7348
|
-
value:
|
|
7349
|
-
}, expressionHelpers.searchExpressions(
|
|
7348
|
+
value: u
|
|
7349
|
+
}, expressionHelpers.searchExpressions(c, b, h), h.k && E.addDynamicProperty(h), h;
|
|
7350
7350
|
};
|
|
7351
|
-
function f(
|
|
7351
|
+
function f(c) {
|
|
7352
7352
|
return this._cachingAtTime || (this._cachingAtTime = {
|
|
7353
7353
|
shapeValue: shapePool.clone(this.pv),
|
|
7354
7354
|
lastIndex: 0,
|
|
7355
7355
|
lastTime: initialDefaultFrame
|
|
7356
|
-
}),
|
|
7356
|
+
}), c *= this.elem.globalData.frameRate, c -= this.offsetTime, c !== this._cachingAtTime.lastTime && (this._cachingAtTime.lastIndex = this._cachingAtTime.lastTime < c ? this._caching.lastIndex : 0, this._cachingAtTime.lastTime = c, this.interpolateShape(c, this._cachingAtTime.shapeValue, this._cachingAtTime)), this._cachingAtTime.shapeValue;
|
|
7357
7357
|
}
|
|
7358
|
-
var o = ShapePropertyFactory.getConstructorFunction(),
|
|
7358
|
+
var o = ShapePropertyFactory.getConstructorFunction(), p = ShapePropertyFactory.getKeyframedConstructorFunction();
|
|
7359
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,
|
|
7367
|
-
for (E = 0; E <
|
|
7368
|
-
b === "i" || b === "o" ? m[E] = [
|
|
7364
|
+
var d = this.v;
|
|
7365
|
+
g !== void 0 && (d = this.getValueAtTime(g, 0));
|
|
7366
|
+
var E, h = d._length, u = d[b], l = d.v, m = createSizedArray(h);
|
|
7367
|
+
for (E = 0; E < h; E += 1)
|
|
7368
|
+
b === "i" || b === "o" ? m[E] = [u[E][0] - l[E][0], u[E][1] - l[E][1]] : m[E] = [u[E][0], u[E][1]];
|
|
7369
7369
|
return m;
|
|
7370
7370
|
},
|
|
7371
7371
|
points: function(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,
|
|
7387
|
-
if (S +
|
|
7388
|
-
var A =
|
|
7389
|
-
C = bez.getPointInSegment(
|
|
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, h = E.lengths, u = E.totalLength * b, l = 0, m = h.length, S = 0, C; l < m; ) {
|
|
7387
|
+
if (S + h[l].addedLength > u) {
|
|
7388
|
+
var A = l, T = d.c && l === m - 1 ? 0 : l + 1, F = (u - S) / h[l].addedLength;
|
|
7389
|
+
C = bez.getPointInSegment(d.v[A], d.v[T], d.o[A], d.i[T], F, h[l]);
|
|
7390
7390
|
break;
|
|
7391
7391
|
} else
|
|
7392
|
-
S +=
|
|
7393
|
-
|
|
7392
|
+
S += h[l].addedLength;
|
|
7393
|
+
l += 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),
|
|
7399
|
+
var E = this.pointOnPath(b, g), h = this.pointOnPath(b + 1e-3, g), u = h[0] - E[0], l = h[1] - E[1], m = Math.sqrt(Math.pow(u, 2) + Math.pow(l, 2));
|
|
7400
7400
|
if (m === 0)
|
|
7401
7401
|
return [0, 0];
|
|
7402
|
-
var S =
|
|
7402
|
+
var S = d === "tangent" ? [u / m, l / m] : [-l / m, u / m];
|
|
7403
7403
|
return S;
|
|
7404
7404
|
},
|
|
7405
7405
|
tangentOnPath: function(b, g) {
|
|
@@ -7410,11 +7410,11 @@ var lottie$1 = { exports: {} };
|
|
|
7410
7410
|
},
|
|
7411
7411
|
setGroupProperty: expressionHelpers.setGroupProperty,
|
|
7412
7412
|
getValueAtTime: expressionHelpers.getStaticValueAtTime
|
|
7413
|
-
}, extendPrototype([v], o), extendPrototype([v],
|
|
7413
|
+
}, extendPrototype([v], o), extendPrototype([v], p), p.prototype.getValueAtTime = f, p.prototype.initiateExpression = ExpressionManager.initiateExpression;
|
|
7414
7414
|
var x = ShapePropertyFactory.getShapeProp;
|
|
7415
|
-
ShapePropertyFactory.getShapeProp = function(
|
|
7416
|
-
var
|
|
7417
|
-
return
|
|
7415
|
+
ShapePropertyFactory.getShapeProp = function(c, b, g, d, E) {
|
|
7416
|
+
var h = x(c, b, g, d, E);
|
|
7417
|
+
return h.propertyIndex = b.ix, h.lock = !1, g === 3 ? expressionHelpers.searchExpressions(c, b.pt, h) : g === 4 && expressionHelpers.searchExpressions(c, b.ks, h), h.k && c.addDynamicProperty(h), h;
|
|
7418
7418
|
};
|
|
7419
7419
|
}
|
|
7420
7420
|
function initialize$1() {
|
|
@@ -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
|
|
7513
|
-
for (
|
|
7512
|
+
var p = o * (f - n), v = 1 + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01, x = Math.floor(p / v), c;
|
|
7513
|
+
for (c = 0; c < x; c += 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,10 +7550,10 @@ var lottie$1 = { exports: {} };
|
|
|
7550
7550
|
var r = createNS(e);
|
|
7551
7551
|
return r.setAttribute("type", "table"), t.appendChild(r), r;
|
|
7552
7552
|
}, SVGProLevelsFilter.prototype.getTableValue = function(e, t, r, i, s) {
|
|
7553
|
-
for (var a = 0, n = 256, f, o = Math.min(e, t),
|
|
7553
|
+
for (var a = 0, n = 256, f, o = Math.min(e, t), p = Math.max(e, t), v = Array.call(null, {
|
|
7554
7554
|
length: n
|
|
7555
|
-
}), x,
|
|
7556
|
-
f = a / 256, f <= o ? x = g < 0 ? s : i : f >=
|
|
7555
|
+
}), x, c = 0, b = s - i, g = t - e; a <= 256; )
|
|
7556
|
+
f = a / 256, f <= o ? x = g < 0 ? s : i : f >= p ? x = g < 0 ? i : s : x = i + b * Math.pow((f - e) / g, 1 / r), v[c] = x, c += 1, a += 256 / (n - 1);
|
|
7557
7557
|
return v.join(" ");
|
|
7558
7558
|
}, SVGProLevelsFilter.prototype.renderFrame = function(e) {
|
|
7559
7559
|
if (e || this.filterManager._mdf) {
|
|
@@ -7568,8 +7568,8 @@ var lottie$1 = { exports: {} };
|
|
|
7568
7568
|
f.setAttribute("in", "SourceAlpha"), f.setAttribute("result", i + "_drop_shadow_1"), f.setAttribute("stdDeviation", "0"), this.feGaussianBlur = f, e.appendChild(f);
|
|
7569
7569
|
var o = createNS("feOffset");
|
|
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, e.appendChild(o);
|
|
7571
|
-
var
|
|
7572
|
-
|
|
7571
|
+
var p = createNS("feFlood");
|
|
7572
|
+
p.setAttribute("flood-color", "#00ff00"), p.setAttribute("flood-opacity", "1"), p.setAttribute("result", i + "_drop_shadow_3"), this.feFlood = p, e.appendChild(p);
|
|
7573
7573
|
var v = createNS("feComposite");
|
|
7574
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"), e.appendChild(v);
|
|
7575
7575
|
var x = this.createMergeNode(i, [i + "_drop_shadow_4", s]);
|
|
@@ -7646,8 +7646,8 @@ var lottie$1 = { exports: {} };
|
|
|
7646
7646
|
this.effectsManager = e, this.type = effectTypes.TRANSFORM_EFFECT, this.matrix = new Matrix(), this.opacity = -1, this._mdf = !1, this._opMdf = !1;
|
|
7647
7647
|
}, TransformEffect.prototype.renderFrame = function(e) {
|
|
7648
7648
|
if (this._opMdf = !1, this._mdf = !1, e || this.effectsManager._mdf) {
|
|
7649
|
-
var t = this.effectsManager.effectElements, r = t[0].p.v, i = t[1].p.v, s = t[2].p.v === 1, a = t[3].p.v, n = s ? a : t[4].p.v, f = t[5].p.v, o = t[6].p.v,
|
|
7650
|
-
this.matrix.reset(), this.matrix.translate(-r[0], -r[1], r[2]), this.matrix.scale(n * 0.01, a * 0.01, 1), this.matrix.rotate(-
|
|
7649
|
+
var t = this.effectsManager.effectElements, r = t[0].p.v, i = t[1].p.v, s = t[2].p.v === 1, a = t[3].p.v, n = s ? a : t[4].p.v, f = t[5].p.v, o = t[6].p.v, p = t[7].p.v;
|
|
7650
|
+
this.matrix.reset(), this.matrix.translate(-r[0], -r[1], r[2]), this.matrix.scale(n * 0.01, a * 0.01, 1), this.matrix.rotate(-p * degToRads), this.matrix.skewFromAxis(-f * degToRads, (o + 90) * degToRads), this.matrix.translate(i[0], i[1], 0), this._mdf = !0, this.opacity !== t[8].p.v && (this.opacity = t[8].p.v, this._opMdf = !0);
|
|
7651
7651
|
}
|
|
7652
7652
|
};
|
|
7653
7653
|
function SVGTransformEffect(e, t) {
|
|
@@ -7674,27 +7674,27 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), supported
|
|
|
7674
7674
|
speed: n = 1,
|
|
7675
7675
|
resetOnEnd: f = !1,
|
|
7676
7676
|
replayOnHover: o = !1,
|
|
7677
|
-
onComplete:
|
|
7677
|
+
onComplete: p,
|
|
7678
7678
|
fallback: v
|
|
7679
7679
|
}) => {
|
|
7680
|
-
const [x,
|
|
7680
|
+
const [x, c] = useState(null), [b, g] = useState(!1), [d, E] = useState(!1), h = useRef(null), u = useRef(null), l = useRef(0), m = useRef(!1), S = useMemo(() => e.toLowerCase().replace(/-/g, "_"), [e]), C = useMemo(() => supportedEmojis.has(S), [S]), A = s === !0;
|
|
7681
7681
|
useEffect(() => {
|
|
7682
7682
|
if (!C) {
|
|
7683
7683
|
E(!0);
|
|
7684
7684
|
return;
|
|
7685
7685
|
}
|
|
7686
7686
|
if (animationCache[S]) {
|
|
7687
|
-
|
|
7687
|
+
c(animationCache[S]);
|
|
7688
7688
|
return;
|
|
7689
7689
|
}
|
|
7690
7690
|
let F = !0;
|
|
7691
7691
|
return (async () => {
|
|
7692
7692
|
g(!0), E(!1);
|
|
7693
7693
|
try {
|
|
7694
|
-
const
|
|
7694
|
+
const R = getEmojiAnimationUrl(S), I = await fetch(R);
|
|
7695
7695
|
if (!I.ok) throw new Error("Failed to fetch");
|
|
7696
|
-
const
|
|
7697
|
-
F && (animationCache[S] =
|
|
7696
|
+
const D = await I.json();
|
|
7697
|
+
F && (animationCache[S] = D, c(D));
|
|
7698
7698
|
} catch {
|
|
7699
7699
|
F && E(!0);
|
|
7700
7700
|
} finally {
|
|
@@ -7704,36 +7704,36 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), supported
|
|
|
7704
7704
|
F = !1;
|
|
7705
7705
|
};
|
|
7706
7706
|
}, [S, C]), useEffect(() => {
|
|
7707
|
-
if (!
|
|
7708
|
-
|
|
7707
|
+
if (!h.current || !x) return;
|
|
7708
|
+
u.current && u.current.destroy(), l.current = 0, m.current = !1;
|
|
7709
7709
|
const F = lottie.loadAnimation({
|
|
7710
|
-
container:
|
|
7710
|
+
container: h.current,
|
|
7711
7711
|
renderer: "svg",
|
|
7712
7712
|
loop: A,
|
|
7713
7713
|
autoplay: a,
|
|
7714
7714
|
animationData: x
|
|
7715
7715
|
});
|
|
7716
|
-
F.setSpeed(n),
|
|
7717
|
-
const
|
|
7718
|
-
|
|
7719
|
-
const
|
|
7716
|
+
F.setSpeed(n), u.current = F;
|
|
7717
|
+
const B = () => {
|
|
7718
|
+
l.current += 1;
|
|
7719
|
+
const R = typeof s == "number" ? s : 1, I = s !== !0 && l.current >= R;
|
|
7720
7720
|
if (!I && typeof s == "number" && s > 1) {
|
|
7721
7721
|
F.goToAndPlay(0);
|
|
7722
7722
|
return;
|
|
7723
7723
|
}
|
|
7724
|
-
I && (m.current = !0, f && F.goToAndStop(0, !0),
|
|
7724
|
+
I && (m.current = !0, f && F.goToAndStop(0, !0), p == null || p());
|
|
7725
7725
|
};
|
|
7726
|
-
return F.addEventListener("complete",
|
|
7727
|
-
F.removeEventListener("complete",
|
|
7726
|
+
return F.addEventListener("complete", B), () => {
|
|
7727
|
+
F.removeEventListener("complete", B), F.destroy(), u.current = null;
|
|
7728
7728
|
};
|
|
7729
7729
|
}, [x, A, a, n]), useEffect(() => {
|
|
7730
7730
|
var F;
|
|
7731
|
-
(F =
|
|
7731
|
+
(F = u.current) == null || F.setSpeed(n);
|
|
7732
7732
|
}, [n]);
|
|
7733
7733
|
const T = useCallback(() => {
|
|
7734
|
-
!o || !
|
|
7734
|
+
!o || !u.current || (l.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,
|
|
@@ -7749,7 +7749,7 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), supported
|
|
|
7749
7749
|
) : /* @__PURE__ */ jsx(
|
|
7750
7750
|
"div",
|
|
7751
7751
|
{
|
|
7752
|
-
ref:
|
|
7752
|
+
ref: h,
|
|
7753
7753
|
className: r,
|
|
7754
7754
|
onMouseEnter: T,
|
|
7755
7755
|
style: { width: t, height: t, display: "inline-block", verticalAlign: "middle", ...i }
|
|
@@ -9048,93 +9048,102 @@ const AnimateEmojiModal = ({
|
|
|
9048
9048
|
loop: n = !0,
|
|
9049
9049
|
autoplay: f = !0,
|
|
9050
9050
|
replayOnHover: o = !0,
|
|
9051
|
-
title:
|
|
9051
|
+
title: p = "Emoji Picker",
|
|
9052
9052
|
hideHeader: v = !1,
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9053
|
+
showOverlay: x,
|
|
9054
|
+
closeOnOverlayClick: c = !0,
|
|
9055
|
+
theme: b = "dark",
|
|
9056
|
+
className: g,
|
|
9057
|
+
style: d,
|
|
9058
|
+
emojiSize: E = 36
|
|
9057
9059
|
}) => {
|
|
9058
|
-
const
|
|
9060
|
+
const h = b === "light" ? LIGHT : DARK, u = x ?? a === "center", [l, m] = useState(EMOJI_CATEGORIES[0].id), [S, C] = useState(""), [A, T] = useState(!1), [F, B] = useState(!1), R = useRef(null), I = useRef(null);
|
|
9059
9061
|
useEffect(() => {
|
|
9060
9062
|
if (e)
|
|
9061
|
-
|
|
9062
|
-
requestAnimationFrame(() =>
|
|
9063
|
+
B(!0), requestAnimationFrame(() => {
|
|
9064
|
+
requestAnimationFrame(() => T(!0));
|
|
9063
9065
|
}), setTimeout(() => {
|
|
9064
|
-
var
|
|
9065
|
-
return (
|
|
9066
|
+
var L;
|
|
9067
|
+
return (L = I.current) == null ? void 0 : L.focus();
|
|
9066
9068
|
}, 80);
|
|
9067
9069
|
else {
|
|
9068
|
-
|
|
9069
|
-
const
|
|
9070
|
-
return () => clearTimeout(
|
|
9070
|
+
T(!1);
|
|
9071
|
+
const L = setTimeout(() => B(!1), 250);
|
|
9072
|
+
return () => clearTimeout(L);
|
|
9071
9073
|
}
|
|
9072
9074
|
}, [e]), useEffect(() => {
|
|
9073
9075
|
if (!e) return;
|
|
9074
|
-
const
|
|
9075
|
-
|
|
9076
|
+
const L = (N) => {
|
|
9077
|
+
N.key === "Escape" && t();
|
|
9076
9078
|
};
|
|
9077
|
-
return document.addEventListener("keydown",
|
|
9079
|
+
return document.addEventListener("keydown", L), () => document.removeEventListener("keydown", L);
|
|
9078
9080
|
}, [e, t]);
|
|
9079
9081
|
const D = useMemo(
|
|
9080
|
-
() => EMOJI_CATEGORIES.find((
|
|
9081
|
-
[
|
|
9082
|
-
),
|
|
9083
|
-
const
|
|
9084
|
-
return (
|
|
9082
|
+
() => EMOJI_CATEGORIES.find((L) => L.id === l) ?? EMOJI_CATEGORIES[0],
|
|
9083
|
+
[l]
|
|
9084
|
+
), G = useMemo(() => {
|
|
9085
|
+
const L = S.toLowerCase().trim();
|
|
9086
|
+
return (L ? (
|
|
9085
9087
|
// Search across ALL categories using keyword list
|
|
9086
|
-
EMOJI_CATEGORIES.flatMap((
|
|
9087
|
-
(
|
|
9088
|
+
EMOJI_CATEGORIES.flatMap((j) => j.emojis).filter(
|
|
9089
|
+
(j) => (EMOJI_KEYWORDS[j] || "").includes(L) || j.includes(L)
|
|
9088
9090
|
)
|
|
9089
|
-
) : D.emojis).filter((
|
|
9090
|
-
}, [D,
|
|
9091
|
-
(
|
|
9092
|
-
r(
|
|
9091
|
+
) : D.emojis).filter((j) => supportedEmojis.has(j));
|
|
9092
|
+
}, [D, S]), V = useCallback(
|
|
9093
|
+
(L) => {
|
|
9094
|
+
r(L), t();
|
|
9093
9095
|
},
|
|
9094
9096
|
[r, t]
|
|
9095
|
-
),
|
|
9096
|
-
(
|
|
9097
|
-
|
|
9097
|
+
), P = useCallback(
|
|
9098
|
+
(L) => {
|
|
9099
|
+
R.current && !R.current.contains(L.target) && t();
|
|
9098
9100
|
},
|
|
9099
9101
|
[t]
|
|
9100
9102
|
);
|
|
9101
|
-
if (!
|
|
9102
|
-
const
|
|
9103
|
+
if (!F) return null;
|
|
9104
|
+
const k = typeof i == "number" ? `${i}px` : i, y = typeof s == "number" ? `${s}px` : s, _ = resolvePosition(a), w = {
|
|
9103
9105
|
position: "fixed",
|
|
9104
9106
|
inset: 0,
|
|
9105
9107
|
zIndex: 99998,
|
|
9106
9108
|
background: "rgba(0,0,0,0.5)",
|
|
9107
9109
|
backdropFilter: "blur(4px)",
|
|
9108
|
-
opacity:
|
|
9110
|
+
opacity: A ? 1 : 0,
|
|
9109
9111
|
transition: "opacity 0.25s ease"
|
|
9110
|
-
},
|
|
9111
|
-
width:
|
|
9112
|
-
height:
|
|
9112
|
+
}, M = {
|
|
9113
|
+
width: k,
|
|
9114
|
+
height: y,
|
|
9113
9115
|
zIndex: 99999,
|
|
9114
|
-
background:
|
|
9116
|
+
background: h.bg,
|
|
9115
9117
|
borderRadius: "16px",
|
|
9116
|
-
border: `1px solid ${
|
|
9118
|
+
border: `1px solid ${h.border}`,
|
|
9117
9119
|
display: "flex",
|
|
9118
9120
|
flexDirection: "column",
|
|
9119
9121
|
overflow: "hidden",
|
|
9120
9122
|
boxShadow: "0 24px 64px rgba(0,0,0,0.5)",
|
|
9121
|
-
opacity:
|
|
9122
|
-
transform:
|
|
9123
|
+
opacity: A ? 1 : 0,
|
|
9124
|
+
transform: A ? "scale(1) translateY(0)" : "scale(0.94) translateY(12px)",
|
|
9123
9125
|
transition: "opacity 0.25s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1)",
|
|
9124
9126
|
fontFamily: "'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif",
|
|
9125
|
-
...
|
|
9126
|
-
...
|
|
9127
|
-
},
|
|
9128
|
-
|
|
9127
|
+
..._,
|
|
9128
|
+
...d
|
|
9129
|
+
}, O = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9130
|
+
u && /* @__PURE__ */ jsx(
|
|
9131
|
+
"div",
|
|
9132
|
+
{
|
|
9133
|
+
style: w,
|
|
9134
|
+
onClick: c ? P : void 0,
|
|
9135
|
+
"aria-hidden": "true"
|
|
9136
|
+
}
|
|
9137
|
+
),
|
|
9129
9138
|
/* @__PURE__ */ jsxs(
|
|
9130
9139
|
"div",
|
|
9131
9140
|
{
|
|
9132
|
-
ref:
|
|
9141
|
+
ref: R,
|
|
9133
9142
|
role: "dialog",
|
|
9134
9143
|
"aria-modal": "true",
|
|
9135
9144
|
"aria-label": "Emoji Picker",
|
|
9136
|
-
className:
|
|
9137
|
-
style:
|
|
9145
|
+
className: g,
|
|
9146
|
+
style: M,
|
|
9138
9147
|
children: [
|
|
9139
9148
|
!v && /* @__PURE__ */ jsxs(
|
|
9140
9149
|
"div",
|
|
@@ -9144,20 +9153,20 @@ const AnimateEmojiModal = ({
|
|
|
9144
9153
|
alignItems: "center",
|
|
9145
9154
|
justifyContent: "space-between",
|
|
9146
9155
|
padding: "14px 16px 10px",
|
|
9147
|
-
borderBottom: `1px solid ${
|
|
9156
|
+
borderBottom: `1px solid ${h.border}`,
|
|
9148
9157
|
flexShrink: 0
|
|
9149
9158
|
},
|
|
9150
9159
|
children: [
|
|
9151
|
-
|
|
9160
|
+
p !== null ? /* @__PURE__ */ jsx(
|
|
9152
9161
|
"span",
|
|
9153
9162
|
{
|
|
9154
9163
|
style: {
|
|
9155
9164
|
fontSize: "14px",
|
|
9156
9165
|
fontWeight: 600,
|
|
9157
|
-
color:
|
|
9166
|
+
color: h.text,
|
|
9158
9167
|
letterSpacing: "-0.01em"
|
|
9159
9168
|
},
|
|
9160
|
-
children:
|
|
9169
|
+
children: p
|
|
9161
9170
|
}
|
|
9162
9171
|
) : /* @__PURE__ */ jsx("div", {}),
|
|
9163
9172
|
/* @__PURE__ */ jsx(
|
|
@@ -9169,7 +9178,7 @@ const AnimateEmojiModal = ({
|
|
|
9169
9178
|
background: "none",
|
|
9170
9179
|
border: "none",
|
|
9171
9180
|
cursor: "pointer",
|
|
9172
|
-
color:
|
|
9181
|
+
color: h.textMuted,
|
|
9173
9182
|
fontSize: "20px",
|
|
9174
9183
|
lineHeight: 1,
|
|
9175
9184
|
padding: "2px 4px",
|
|
@@ -9179,11 +9188,11 @@ const AnimateEmojiModal = ({
|
|
|
9179
9188
|
alignItems: "center",
|
|
9180
9189
|
justifyContent: "center"
|
|
9181
9190
|
},
|
|
9182
|
-
onMouseEnter: (
|
|
9183
|
-
|
|
9191
|
+
onMouseEnter: (L) => {
|
|
9192
|
+
L.currentTarget.style.color = h.text, L.currentTarget.style.background = h.surfaceHover;
|
|
9184
9193
|
},
|
|
9185
|
-
onMouseLeave: (
|
|
9186
|
-
|
|
9194
|
+
onMouseLeave: (L) => {
|
|
9195
|
+
L.currentTarget.style.color = h.textMuted, L.currentTarget.style.background = "none";
|
|
9187
9196
|
},
|
|
9188
9197
|
children: "✕"
|
|
9189
9198
|
}
|
|
@@ -9197,26 +9206,26 @@ const AnimateEmojiModal = ({
|
|
|
9197
9206
|
style: {
|
|
9198
9207
|
display: "flex",
|
|
9199
9208
|
alignItems: "center",
|
|
9200
|
-
background:
|
|
9201
|
-
border: `1px solid ${
|
|
9209
|
+
background: h.input,
|
|
9210
|
+
border: `1px solid ${h.border}`,
|
|
9202
9211
|
borderRadius: "10px",
|
|
9203
9212
|
padding: "0 12px",
|
|
9204
9213
|
gap: "8px",
|
|
9205
9214
|
transition: "border-color 0.15s"
|
|
9206
9215
|
},
|
|
9207
9216
|
children: [
|
|
9208
|
-
/* @__PURE__ */ jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke:
|
|
9217
|
+
/* @__PURE__ */ jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: h.textMuted, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flexShrink: 0, marginLeft: "4px" }, children: [
|
|
9209
9218
|
/* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "8" }),
|
|
9210
9219
|
/* @__PURE__ */ jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
|
9211
9220
|
] }),
|
|
9212
9221
|
/* @__PURE__ */ jsx(
|
|
9213
9222
|
"input",
|
|
9214
9223
|
{
|
|
9215
|
-
ref:
|
|
9224
|
+
ref: I,
|
|
9216
9225
|
type: "text",
|
|
9217
9226
|
placeholder: "Search emojis…",
|
|
9218
|
-
value:
|
|
9219
|
-
onChange: (
|
|
9227
|
+
value: S,
|
|
9228
|
+
onChange: (L) => C(L.target.value),
|
|
9220
9229
|
style: {
|
|
9221
9230
|
flex: 1,
|
|
9222
9231
|
background: "none",
|
|
@@ -9224,20 +9233,20 @@ const AnimateEmojiModal = ({
|
|
|
9224
9233
|
outline: "none",
|
|
9225
9234
|
padding: "9px 0",
|
|
9226
9235
|
fontSize: "13px",
|
|
9227
|
-
color:
|
|
9236
|
+
color: h.text,
|
|
9228
9237
|
fontFamily: "inherit"
|
|
9229
9238
|
}
|
|
9230
9239
|
}
|
|
9231
9240
|
),
|
|
9232
|
-
|
|
9241
|
+
S && /* @__PURE__ */ jsx(
|
|
9233
9242
|
"button",
|
|
9234
9243
|
{
|
|
9235
|
-
onClick: () =>
|
|
9244
|
+
onClick: () => C(""),
|
|
9236
9245
|
style: {
|
|
9237
9246
|
background: "none",
|
|
9238
9247
|
border: "none",
|
|
9239
9248
|
cursor: "pointer",
|
|
9240
|
-
color:
|
|
9249
|
+
color: h.textMuted,
|
|
9241
9250
|
fontSize: "16px",
|
|
9242
9251
|
padding: 0,
|
|
9243
9252
|
lineHeight: 1
|
|
@@ -9249,7 +9258,7 @@ const AnimateEmojiModal = ({
|
|
|
9249
9258
|
]
|
|
9250
9259
|
}
|
|
9251
9260
|
) }),
|
|
9252
|
-
!
|
|
9261
|
+
!S && /* @__PURE__ */ jsx(
|
|
9253
9262
|
"div",
|
|
9254
9263
|
{
|
|
9255
9264
|
style: {
|
|
@@ -9260,17 +9269,17 @@ const AnimateEmojiModal = ({
|
|
|
9260
9269
|
flexShrink: 0,
|
|
9261
9270
|
scrollbarWidth: "none"
|
|
9262
9271
|
},
|
|
9263
|
-
children: EMOJI_CATEGORIES.map((
|
|
9264
|
-
const
|
|
9272
|
+
children: EMOJI_CATEGORIES.map((L) => {
|
|
9273
|
+
const N = L.id === l;
|
|
9265
9274
|
return /* @__PURE__ */ jsxs(
|
|
9266
9275
|
"button",
|
|
9267
9276
|
{
|
|
9268
|
-
onClick: () =>
|
|
9269
|
-
title:
|
|
9277
|
+
onClick: () => m(L.id),
|
|
9278
|
+
title: L.label,
|
|
9270
9279
|
style: {
|
|
9271
9280
|
flexShrink: 0,
|
|
9272
|
-
background:
|
|
9273
|
-
border: `1px solid ${
|
|
9281
|
+
background: N ? h.activeCategoryBg : "none",
|
|
9282
|
+
border: `1px solid ${N ? h.activeCategoryBorder : "transparent"}`,
|
|
9274
9283
|
borderRadius: "8px",
|
|
9275
9284
|
cursor: "pointer",
|
|
9276
9285
|
padding: "5px 10px",
|
|
@@ -9279,31 +9288,31 @@ const AnimateEmojiModal = ({
|
|
|
9279
9288
|
display: "flex",
|
|
9280
9289
|
alignItems: "center",
|
|
9281
9290
|
gap: "5px",
|
|
9282
|
-
color:
|
|
9291
|
+
color: N ? h.text : h.textMuted
|
|
9283
9292
|
},
|
|
9284
|
-
onMouseEnter: (
|
|
9285
|
-
|
|
9293
|
+
onMouseEnter: (j) => {
|
|
9294
|
+
N || (j.currentTarget.style.background = h.surfaceHover);
|
|
9286
9295
|
},
|
|
9287
|
-
onMouseLeave: (
|
|
9288
|
-
|
|
9296
|
+
onMouseLeave: (j) => {
|
|
9297
|
+
N || (j.currentTarget.style.background = "none");
|
|
9289
9298
|
},
|
|
9290
9299
|
children: [
|
|
9291
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
9292
|
-
|
|
9300
|
+
/* @__PURE__ */ jsx("span", { children: L.icon }),
|
|
9301
|
+
N && /* @__PURE__ */ jsx(
|
|
9293
9302
|
"span",
|
|
9294
9303
|
{
|
|
9295
9304
|
style: {
|
|
9296
9305
|
fontSize: "11px",
|
|
9297
9306
|
fontWeight: 600,
|
|
9298
9307
|
whiteSpace: "nowrap",
|
|
9299
|
-
color:
|
|
9308
|
+
color: h.accent
|
|
9300
9309
|
},
|
|
9301
|
-
children:
|
|
9310
|
+
children: L.label
|
|
9302
9311
|
}
|
|
9303
9312
|
)
|
|
9304
9313
|
]
|
|
9305
9314
|
},
|
|
9306
|
-
|
|
9315
|
+
L.id
|
|
9307
9316
|
);
|
|
9308
9317
|
})
|
|
9309
9318
|
}
|
|
@@ -9321,32 +9330,32 @@ const AnimateEmojiModal = ({
|
|
|
9321
9330
|
gap: "2px",
|
|
9322
9331
|
// Custom scrollbar
|
|
9323
9332
|
scrollbarWidth: "thin",
|
|
9324
|
-
scrollbarColor: `${
|
|
9333
|
+
scrollbarColor: `${h.scrollbar} transparent`
|
|
9325
9334
|
},
|
|
9326
|
-
children:
|
|
9335
|
+
children: G.length === 0 ? /* @__PURE__ */ jsx(
|
|
9327
9336
|
"div",
|
|
9328
9337
|
{
|
|
9329
9338
|
style: {
|
|
9330
9339
|
width: "100%",
|
|
9331
9340
|
textAlign: "center",
|
|
9332
9341
|
padding: "40px 0",
|
|
9333
|
-
color:
|
|
9342
|
+
color: h.textMuted,
|
|
9334
9343
|
fontSize: "13px"
|
|
9335
9344
|
},
|
|
9336
9345
|
children: "No emojis found"
|
|
9337
9346
|
}
|
|
9338
|
-
) :
|
|
9347
|
+
) : G.map((L) => /* @__PURE__ */ jsx(
|
|
9339
9348
|
EmojiCell,
|
|
9340
9349
|
{
|
|
9341
|
-
codepoint:
|
|
9342
|
-
size:
|
|
9350
|
+
codepoint: L,
|
|
9351
|
+
size: E,
|
|
9343
9352
|
loop: n,
|
|
9344
9353
|
autoplay: f,
|
|
9345
9354
|
replayOnHover: o,
|
|
9346
|
-
onSelect:
|
|
9347
|
-
hoverBg:
|
|
9355
|
+
onSelect: V,
|
|
9356
|
+
hoverBg: h.emojiHover
|
|
9348
9357
|
},
|
|
9349
|
-
|
|
9358
|
+
L
|
|
9350
9359
|
))
|
|
9351
9360
|
}
|
|
9352
9361
|
),
|
|
@@ -9355,18 +9364,18 @@ const AnimateEmojiModal = ({
|
|
|
9355
9364
|
{
|
|
9356
9365
|
style: {
|
|
9357
9366
|
padding: "8px 16px",
|
|
9358
|
-
borderTop: `1px solid ${
|
|
9367
|
+
borderTop: `1px solid ${h.border}`,
|
|
9359
9368
|
fontSize: "11px",
|
|
9360
|
-
color:
|
|
9369
|
+
color: h.textMuted,
|
|
9361
9370
|
flexShrink: 0,
|
|
9362
9371
|
display: "flex",
|
|
9363
9372
|
justifyContent: "space-between",
|
|
9364
9373
|
alignItems: "center"
|
|
9365
9374
|
},
|
|
9366
9375
|
children: [
|
|
9367
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
9376
|
+
/* @__PURE__ */ jsx("span", { children: S ? `${G.length} result${G.length !== 1 ? "s" : ""}` : D.label }),
|
|
9368
9377
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
9369
|
-
|
|
9378
|
+
G.length,
|
|
9370
9379
|
" emojis"
|
|
9371
9380
|
] })
|
|
9372
9381
|
]
|
|
@@ -9376,10 +9385,10 @@ const AnimateEmojiModal = ({
|
|
|
9376
9385
|
}
|
|
9377
9386
|
)
|
|
9378
9387
|
] });
|
|
9379
|
-
return ReactDOM.createPortal(
|
|
9388
|
+
return ReactDOM.createPortal(O, document.body);
|
|
9380
9389
|
}, EmojiCell = React.memo(
|
|
9381
9390
|
({ codepoint: e, size: t, loop: r, autoplay: i, replayOnHover: s, onSelect: a, hoverBg: n }) => {
|
|
9382
|
-
const [f, o] = useState(!1),
|
|
9391
|
+
const [f, o] = useState(!1), p = t + 16;
|
|
9383
9392
|
return /* @__PURE__ */ jsx(
|
|
9384
9393
|
"button",
|
|
9385
9394
|
{
|
|
@@ -9389,8 +9398,8 @@ const AnimateEmojiModal = ({
|
|
|
9389
9398
|
title: e,
|
|
9390
9399
|
"aria-label": `Select emoji ${e}`,
|
|
9391
9400
|
style: {
|
|
9392
|
-
width: `${
|
|
9393
|
-
height: `${
|
|
9401
|
+
width: `${p}px`,
|
|
9402
|
+
height: `${p}px`,
|
|
9394
9403
|
display: "flex",
|
|
9395
9404
|
alignItems: "center",
|
|
9396
9405
|
justifyContent: "center",
|