@mobileaction/action-kit 1.24.4 → 1.24.6
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/action-kit.js +1 -1
- package/dist/action-kit.mjs +1 -1
- package/dist/favorite-chart-48fd8c14.mjs +36 -0
- package/dist/favorite-chart-bee2d077.js +1 -0
- package/dist/favorite-chart-bold-2d39fe45.js +1 -0
- package/dist/favorite-chart-bold-c333c05d.mjs +23 -0
- package/dist/favorive-chart-bulk-45858496.mjs +30 -0
- package/dist/favorive-chart-bulk-7ceafe93.js +1 -0
- package/dist/{index-c1865f55.mjs → index-37f00840.mjs} +1538 -1525
- package/dist/index-cb872fc8.js +53 -0
- package/dist/{lottie_light-cdb92834.mjs → lottie_light-12ac4ae2.mjs} +492 -473
- package/dist/lottie_light-2ed5fca6.js +9 -0
- package/dist/src/components/country-select/index.vue.d.ts +7 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index-8523784c.js +0 -53
- package/dist/lottie_light-22236269.js +0 -9
|
@@ -1,19 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { c as pr } from "./index-37f00840.mjs";
|
|
2
|
+
function ur(Zt, Me) {
|
|
3
|
+
for (var se = 0; se < Me.length; se++) {
|
|
4
|
+
const Pt = Me[se];
|
|
5
|
+
if (typeof Pt != "string" && !Array.isArray(Pt)) {
|
|
6
|
+
for (const Rt in Pt)
|
|
7
|
+
if (Rt !== "default" && !(Rt in Zt)) {
|
|
8
|
+
const Kt = Object.getOwnPropertyDescriptor(Pt, Rt);
|
|
9
|
+
Kt && Object.defineProperty(Zt, Rt, Kt.get ? Kt : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => Pt[Rt]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(Zt, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var Te = {}, cr = {
|
|
19
|
+
get exports() {
|
|
20
|
+
return Te;
|
|
21
|
+
},
|
|
22
|
+
set exports(Zt) {
|
|
23
|
+
Te = Zt;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
(function(Zt, Me) {
|
|
27
|
+
typeof navigator < "u" && function(se, Pt) {
|
|
28
|
+
Zt.exports = Pt();
|
|
29
|
+
}(pr, function() {
|
|
30
|
+
var se = "http://www.w3.org/2000/svg", Pt = "", Rt = !1, Kt = -999999, rs = function(e) {
|
|
31
|
+
Rt = !!e;
|
|
9
32
|
}, ns = function() {
|
|
10
|
-
return
|
|
33
|
+
return Rt;
|
|
11
34
|
}, as = function(e) {
|
|
12
|
-
|
|
35
|
+
Pt = e;
|
|
13
36
|
}, dt = function() {
|
|
14
|
-
return
|
|
37
|
+
return Pt;
|
|
15
38
|
};
|
|
16
|
-
function
|
|
39
|
+
function Ot(t) {
|
|
17
40
|
return document.createElement(t);
|
|
18
41
|
}
|
|
19
42
|
function X(t, e) {
|
|
@@ -120,20 +143,20 @@ var si = { exports: {} };
|
|
|
120
143
|
length: t
|
|
121
144
|
});
|
|
122
145
|
}
|
|
123
|
-
var
|
|
124
|
-
function
|
|
146
|
+
var hi = !0, li = null, fi = "", ls = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), kt = Math.pow, pi = Math.sqrt, Ut = Math.floor, fs = Math.min, ui = 150, J = Math.PI / 180, Bt = 0.5519;
|
|
147
|
+
function He(t, e, i, s) {
|
|
125
148
|
this.type = t, this.currentTime = e, this.totalTime = i, this.direction = s < 0 ? -1 : 1;
|
|
126
149
|
}
|
|
127
|
-
function
|
|
150
|
+
function ci(t, e) {
|
|
128
151
|
this.type = t, this.direction = e < 0 ? -1 : 1;
|
|
129
152
|
}
|
|
130
|
-
function
|
|
153
|
+
function vi(t, e, i, s) {
|
|
131
154
|
this.type = t, this.currentLoop = i, this.totalLoops = e, this.direction = s < 0 ? -1 : 1;
|
|
132
155
|
}
|
|
133
|
-
function
|
|
156
|
+
function di(t, e, i) {
|
|
134
157
|
this.type = t, this.firstFrame = e, this.totalFrames = i;
|
|
135
158
|
}
|
|
136
|
-
function
|
|
159
|
+
function mi(t, e) {
|
|
137
160
|
this.type = t, this.target = e;
|
|
138
161
|
}
|
|
139
162
|
function ps(t, e) {
|
|
@@ -145,10 +168,10 @@ var si = { exports: {} };
|
|
|
145
168
|
var ft = function() {
|
|
146
169
|
var t = 0;
|
|
147
170
|
return function() {
|
|
148
|
-
return t += 1,
|
|
171
|
+
return t += 1, fi + "__lottie_element_" + t;
|
|
149
172
|
};
|
|
150
173
|
}();
|
|
151
|
-
function
|
|
174
|
+
function Ze(t, e, i) {
|
|
152
175
|
var s, n, r, o, c, h, m, _;
|
|
153
176
|
switch (o = Math.floor(t * 6), c = t * 6 - o, h = i * (1 - e), m = i * (1 - c * e), _ = i * (1 - (1 - c) * e), o % 6) {
|
|
154
177
|
case 0:
|
|
@@ -172,7 +195,7 @@ var si = { exports: {} };
|
|
|
172
195
|
}
|
|
173
196
|
return [s, n, r];
|
|
174
197
|
}
|
|
175
|
-
function
|
|
198
|
+
function Ke(t, e, i) {
|
|
176
199
|
var s = Math.max(t, e, i), n = Math.min(t, e, i), r = s - n, o, c = s === 0 ? 0 : r / s, h = s / 255;
|
|
177
200
|
switch (s) {
|
|
178
201
|
case n:
|
|
@@ -190,17 +213,17 @@ var si = { exports: {} };
|
|
|
190
213
|
}
|
|
191
214
|
return [o, c, h];
|
|
192
215
|
}
|
|
193
|
-
function
|
|
194
|
-
var i =
|
|
195
|
-
return i[1] += e, i[1] > 1 ? i[1] = 1 : i[1] <= 0 && (i[1] = 0),
|
|
216
|
+
function gi(t, e) {
|
|
217
|
+
var i = Ke(t[0] * 255, t[1] * 255, t[2] * 255);
|
|
218
|
+
return i[1] += e, i[1] > 1 ? i[1] = 1 : i[1] <= 0 && (i[1] = 0), Ze(i[0], i[1], i[2]);
|
|
196
219
|
}
|
|
197
|
-
function
|
|
198
|
-
var i =
|
|
199
|
-
return i[2] += e, i[2] > 1 ? i[2] = 1 : i[2] < 0 && (i[2] = 0),
|
|
220
|
+
function yi(t, e) {
|
|
221
|
+
var i = Ke(t[0] * 255, t[1] * 255, t[2] * 255);
|
|
222
|
+
return i[2] += e, i[2] > 1 ? i[2] = 1 : i[2] < 0 && (i[2] = 0), Ze(i[0], i[1], i[2]);
|
|
200
223
|
}
|
|
201
|
-
function
|
|
202
|
-
var i =
|
|
203
|
-
return i[0] += e / 360, i[0] > 1 ? i[0] -= 1 : i[0] < 0 && (i[0] += 1),
|
|
224
|
+
function _i(t, e) {
|
|
225
|
+
var i = Ke(t[0] * 255, t[1] * 255, t[2] * 255);
|
|
226
|
+
return i[0] += e / 360, i[0] > 1 ? i[0] -= 1 : i[0] < 0 && (i[0] += 1), Ze(i[0], i[1], i[2]);
|
|
204
227
|
}
|
|
205
228
|
(function() {
|
|
206
229
|
var t = [], e, i;
|
|
@@ -211,32 +234,31 @@ var si = { exports: {} };
|
|
|
211
234
|
};
|
|
212
235
|
})();
|
|
213
236
|
var cs = function(e) {
|
|
214
|
-
|
|
237
|
+
hi = !!e;
|
|
215
238
|
}, vs = function() {
|
|
216
|
-
return
|
|
239
|
+
return hi;
|
|
217
240
|
}, ds = function(e) {
|
|
218
|
-
|
|
219
|
-
},
|
|
220
|
-
return
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
},
|
|
224
|
-
return
|
|
241
|
+
li = e;
|
|
242
|
+
}, Ee = function() {
|
|
243
|
+
return li;
|
|
244
|
+
}, xe = function(e) {
|
|
245
|
+
ui = e;
|
|
246
|
+
}, Fe = function() {
|
|
247
|
+
return ui;
|
|
225
248
|
}, ms = function(e) {
|
|
226
|
-
|
|
249
|
+
fi = e;
|
|
227
250
|
};
|
|
228
251
|
function W(t) {
|
|
229
|
-
return document.createElementNS(
|
|
252
|
+
return document.createElementNS(se, t);
|
|
230
253
|
}
|
|
231
|
-
function
|
|
232
|
-
"
|
|
233
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ce = function(i) {
|
|
254
|
+
function Ie(t) {
|
|
255
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ie = function(i) {
|
|
234
256
|
return typeof i;
|
|
235
|
-
} :
|
|
257
|
+
} : Ie = function(i) {
|
|
236
258
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
|
237
|
-
},
|
|
259
|
+
}, Ie(t);
|
|
238
260
|
}
|
|
239
|
-
var
|
|
261
|
+
var pe = function() {
|
|
240
262
|
var t = 1, e = [], i, s, n = {
|
|
241
263
|
onmessage: function() {
|
|
242
264
|
},
|
|
@@ -509,7 +531,7 @@ var si = { exports: {} };
|
|
|
509
531
|
if (r.dataManager || (r.dataManager = k()), r.assetLoader || (r.assetLoader = function() {
|
|
510
532
|
function C(d) {
|
|
511
533
|
var f = d.getResponseHeader("content-type");
|
|
512
|
-
return f && d.responseType === "json" && f.indexOf("json") !== -1 || d.response &&
|
|
534
|
+
return f && d.responseType === "json" && f.indexOf("json") !== -1 || d.response && Ie(d.response) === "object" ? d.response : d.response && typeof d.response == "string" ? JSON.parse(d.response) : d.responseText ? JSON.parse(d.responseText) : null;
|
|
513
535
|
}
|
|
514
536
|
function y(d, f, u, g) {
|
|
515
537
|
var A, T = new XMLHttpRequest();
|
|
@@ -620,7 +642,7 @@ var si = { exports: {} };
|
|
|
620
642
|
};
|
|
621
643
|
}(), gs = function() {
|
|
622
644
|
var t = function() {
|
|
623
|
-
var y =
|
|
645
|
+
var y = Ot("canvas");
|
|
624
646
|
y.width = 1, y.height = 1;
|
|
625
647
|
var d = y.getContext("2d");
|
|
626
648
|
return d.fillStyle = "rgba(0,0,0,0)", d.fillRect(0, 0, 1, 1), y;
|
|
@@ -660,7 +682,7 @@ var si = { exports: {} };
|
|
|
660
682
|
return u;
|
|
661
683
|
}
|
|
662
684
|
function o(y) {
|
|
663
|
-
var d = s(y, this.assetsPath, this.path), f =
|
|
685
|
+
var d = s(y, this.assetsPath, this.path), f = Ot("img");
|
|
664
686
|
f.crossOrigin = "anonymous", f.addEventListener("load", this._imageLoaded, !1), f.addEventListener("error", function() {
|
|
665
687
|
u.img = t, this._imageLoaded();
|
|
666
688
|
}.bind(this), !1), f.src = d;
|
|
@@ -674,7 +696,7 @@ var si = { exports: {} };
|
|
|
674
696
|
var d = {
|
|
675
697
|
assetData: y
|
|
676
698
|
}, f = s(y, this.assetsPath, this.path);
|
|
677
|
-
return
|
|
699
|
+
return pe.loadData(f, function(u) {
|
|
678
700
|
d.img = u, this._footageLoaded();
|
|
679
701
|
}.bind(this), function() {
|
|
680
702
|
d.img = {}, this._footageLoaded();
|
|
@@ -730,9 +752,9 @@ var si = { exports: {} };
|
|
|
730
752
|
setCacheType: S
|
|
731
753
|
}, C;
|
|
732
754
|
}();
|
|
733
|
-
function
|
|
755
|
+
function bi() {
|
|
734
756
|
}
|
|
735
|
-
|
|
757
|
+
bi.prototype = {
|
|
736
758
|
triggerEvent: function(e, i) {
|
|
737
759
|
if (this._cbs[e])
|
|
738
760
|
for (var s = this._cbs[e], n = 0; n < s.length; n += 1)
|
|
@@ -798,43 +820,42 @@ var si = { exports: {} };
|
|
|
798
820
|
}
|
|
799
821
|
return e.compositions = [], e.currentFrame = 0, e.registerComposition = t, e;
|
|
800
822
|
};
|
|
801
|
-
}(),
|
|
802
|
-
|
|
823
|
+
}(), ue = {}, bs = function(e, i) {
|
|
824
|
+
ue[e] = i;
|
|
803
825
|
};
|
|
804
826
|
function Ss(t) {
|
|
805
|
-
return
|
|
827
|
+
return ue[t];
|
|
806
828
|
}
|
|
807
829
|
function Ps() {
|
|
808
|
-
if (
|
|
830
|
+
if (ue.canvas)
|
|
809
831
|
return "canvas";
|
|
810
|
-
for (var t in
|
|
811
|
-
if (
|
|
832
|
+
for (var t in ue)
|
|
833
|
+
if (ue[t])
|
|
812
834
|
return t;
|
|
813
835
|
return "";
|
|
814
836
|
}
|
|
815
|
-
function
|
|
816
|
-
"
|
|
817
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? he = function(i) {
|
|
837
|
+
function ce(t) {
|
|
838
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ce = function(i) {
|
|
818
839
|
return typeof i;
|
|
819
|
-
} :
|
|
840
|
+
} : ce = function(i) {
|
|
820
841
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
|
821
|
-
},
|
|
842
|
+
}, ce(t);
|
|
822
843
|
}
|
|
823
844
|
var z = function() {
|
|
824
|
-
this._cbs = [], this.name = "", this.path = "", this.isLoaded = !1, this.currentFrame = 0, this.currentRawFrame = 0, this.firstFrame = 0, this.totalFrames = 0, this.frameRate = 0, this.frameMult = 0, this.playSpeed = 1, this.playDirection = 1, this.playCount = 0, this.animationData = {}, this.assets = [], this.isPaused = !0, this.autoplay = !1, this.loop = !0, this.renderer = null, this.animationID = ft(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = vs(), this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = _s(), this.imagePreloader = new gs(), this.audioController = hs(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new
|
|
845
|
+
this._cbs = [], this.name = "", this.path = "", this.isLoaded = !1, this.currentFrame = 0, this.currentRawFrame = 0, this.firstFrame = 0, this.totalFrames = 0, this.frameRate = 0, this.frameMult = 0, this.playSpeed = 1, this.playDirection = 1, this.playCount = 0, this.animationData = {}, this.assets = [], this.isPaused = !0, this.autoplay = !1, this.loop = !0, this.renderer = null, this.animationID = ft(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = vs(), this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = _s(), this.imagePreloader = new gs(), this.audioController = hs(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new He("drawnFrame", 0, 0, 0), this.expressionsPlugin = Ee();
|
|
825
846
|
};
|
|
826
|
-
X([
|
|
847
|
+
X([bi], z), z.prototype.setParams = function(t) {
|
|
827
848
|
(t.wrapper || t.container) && (this.wrapper = t.wrapper || t.container);
|
|
828
849
|
var e = "svg";
|
|
829
850
|
t.animType ? e = t.animType : t.renderer && (e = t.renderer);
|
|
830
851
|
var i = Ss(e);
|
|
831
|
-
this.renderer = new i(this, t.rendererSettings), this.imagePreloader.setCacheType(e, this.renderer.globalData.defs), this.renderer.setProjectInterface(this.projectInterface), this.animType = e, t.loop === "" || t.loop === null || t.loop === void 0 || t.loop === !0 ? this.loop = !0 : t.loop === !1 ? this.loop = !1 : this.loop = parseInt(t.loop, 10), this.autoplay = "autoplay" in t ? t.autoplay : !0, this.name = t.name ? t.name : "", this.autoloadSegments = Object.prototype.hasOwnProperty.call(t, "autoloadSegments") ? t.autoloadSegments : !0, this.assetsPath = t.assetsPath, this.initialSegment = t.initialSegment, t.audioFactory && this.audioController.setAudioFactory(t.audioFactory), t.animationData ? this.setupAnimation(t.animationData) : t.path && (t.path.lastIndexOf("\\") !== -1 ? this.path = t.path.substr(0, t.path.lastIndexOf("\\") + 1) : this.path = t.path.substr(0, t.path.lastIndexOf("/") + 1), this.fileName = t.path.substr(t.path.lastIndexOf("/") + 1), this.fileName = this.fileName.substr(0, this.fileName.lastIndexOf(".json")),
|
|
852
|
+
this.renderer = new i(this, t.rendererSettings), this.imagePreloader.setCacheType(e, this.renderer.globalData.defs), this.renderer.setProjectInterface(this.projectInterface), this.animType = e, t.loop === "" || t.loop === null || t.loop === void 0 || t.loop === !0 ? this.loop = !0 : t.loop === !1 ? this.loop = !1 : this.loop = parseInt(t.loop, 10), this.autoplay = "autoplay" in t ? t.autoplay : !0, this.name = t.name ? t.name : "", this.autoloadSegments = Object.prototype.hasOwnProperty.call(t, "autoloadSegments") ? t.autoloadSegments : !0, this.assetsPath = t.assetsPath, this.initialSegment = t.initialSegment, t.audioFactory && this.audioController.setAudioFactory(t.audioFactory), t.animationData ? this.setupAnimation(t.animationData) : t.path && (t.path.lastIndexOf("\\") !== -1 ? this.path = t.path.substr(0, t.path.lastIndexOf("\\") + 1) : this.path = t.path.substr(0, t.path.lastIndexOf("/") + 1), this.fileName = t.path.substr(t.path.lastIndexOf("/") + 1), this.fileName = this.fileName.substr(0, this.fileName.lastIndexOf(".json")), pe.loadAnimation(t.path, this.configAnimation, this.onSetupError));
|
|
832
853
|
}, z.prototype.onSetupError = function() {
|
|
833
854
|
this.trigger("data_failed");
|
|
834
855
|
}, z.prototype.setupAnimation = function(t) {
|
|
835
|
-
|
|
856
|
+
pe.completeAnimation(t, this.configAnimation);
|
|
836
857
|
}, z.prototype.setData = function(t, e) {
|
|
837
|
-
e &&
|
|
858
|
+
e && ce(e) !== "object" && (e = JSON.parse(e));
|
|
838
859
|
var i = {
|
|
839
860
|
wrapper: t,
|
|
840
861
|
animationData: e
|
|
@@ -860,10 +881,10 @@ var si = { exports: {} };
|
|
|
860
881
|
if ((t.chars || t.fonts) && (this.renderer.globalData.fontManager.addChars(t.chars), this.renderer.globalData.fontManager.addFonts(t.fonts, this.renderer.globalData.defs)), t.assets)
|
|
861
882
|
for (s = t.assets.length, i = 0; i < s; i += 1)
|
|
862
883
|
this.animationData.assets.push(t.assets[i]);
|
|
863
|
-
this.animationData.__complete = !1,
|
|
884
|
+
this.animationData.__complete = !1, pe.completeAnimation(this.animationData, this.onSegmentComplete);
|
|
864
885
|
}, z.prototype.onSegmentComplete = function(t) {
|
|
865
886
|
this.animationData = t;
|
|
866
|
-
var e =
|
|
887
|
+
var e = Ee();
|
|
867
888
|
e && e.initExpressions(this), this.loadNextSegment();
|
|
868
889
|
}, z.prototype.loadNextSegment = function() {
|
|
869
890
|
var t = this.animationData.segments;
|
|
@@ -874,7 +895,7 @@ var si = { exports: {} };
|
|
|
874
895
|
var e = t.shift();
|
|
875
896
|
this.timeCompleted = e.time * this.frameRate;
|
|
876
897
|
var i = this.path + this.fileName + "_" + this.segmentPos + ".json";
|
|
877
|
-
this.segmentPos += 1,
|
|
898
|
+
this.segmentPos += 1, pe.loadData(i, this.includeLayers.bind(this), function() {
|
|
878
899
|
this.trigger("data_failed");
|
|
879
900
|
}.bind(this));
|
|
880
901
|
}, z.prototype.loadSegments = function() {
|
|
@@ -896,7 +917,7 @@ var si = { exports: {} };
|
|
|
896
917
|
}, z.prototype.checkLoaded = function() {
|
|
897
918
|
if (!this.isLoaded && this.renderer.globalData.fontManager.isLoaded && (this.imagePreloader.loadedImages() || this.renderer.rendererType !== "canvas") && this.imagePreloader.loadedFootages()) {
|
|
898
919
|
this.isLoaded = !0;
|
|
899
|
-
var t =
|
|
920
|
+
var t = Ee();
|
|
900
921
|
t && t.initExpressions(this), this.renderer.initItems(), setTimeout(function() {
|
|
901
922
|
this.trigger("DOMLoaded");
|
|
902
923
|
}.bind(this), 0), this.gotoFrame(), this.autoplay && this.play();
|
|
@@ -959,7 +980,7 @@ var si = { exports: {} };
|
|
|
959
980
|
var i = -1;
|
|
960
981
|
this.isPaused && (this.currentRawFrame + this.firstFrame < t ? i = t : this.currentRawFrame + this.firstFrame > e && (i = e - t)), this.firstFrame = t, this.totalFrames = e - t, this.timeCompleted = this.totalFrames, i !== -1 && this.goToAndStop(i, !0);
|
|
961
982
|
}, z.prototype.playSegments = function(t, e) {
|
|
962
|
-
if (e && (this.segments.length = 0),
|
|
983
|
+
if (e && (this.segments.length = 0), ce(t[0]) === "object") {
|
|
963
984
|
var i, s = t.length;
|
|
964
985
|
for (i = 0; i < s; i += 1)
|
|
965
986
|
this.segments.push(t[i]);
|
|
@@ -1025,27 +1046,27 @@ var si = { exports: {} };
|
|
|
1025
1046
|
if (this._cbs && this._cbs[t])
|
|
1026
1047
|
switch (t) {
|
|
1027
1048
|
case "enterFrame":
|
|
1028
|
-
this.triggerEvent(t, new
|
|
1049
|
+
this.triggerEvent(t, new He(t, this.currentFrame, this.totalFrames, this.frameModifier));
|
|
1029
1050
|
break;
|
|
1030
1051
|
case "drawnFrame":
|
|
1031
1052
|
this.drawnFrameEvent.currentTime = this.currentFrame, this.drawnFrameEvent.totalTime = this.totalFrames, this.drawnFrameEvent.direction = this.frameModifier, this.triggerEvent(t, this.drawnFrameEvent);
|
|
1032
1053
|
break;
|
|
1033
1054
|
case "loopComplete":
|
|
1034
|
-
this.triggerEvent(t, new
|
|
1055
|
+
this.triggerEvent(t, new vi(t, this.loop, this.playCount, this.frameMult));
|
|
1035
1056
|
break;
|
|
1036
1057
|
case "complete":
|
|
1037
|
-
this.triggerEvent(t, new
|
|
1058
|
+
this.triggerEvent(t, new ci(t, this.frameMult));
|
|
1038
1059
|
break;
|
|
1039
1060
|
case "segmentStart":
|
|
1040
|
-
this.triggerEvent(t, new
|
|
1061
|
+
this.triggerEvent(t, new di(t, this.firstFrame, this.totalFrames));
|
|
1041
1062
|
break;
|
|
1042
1063
|
case "destroy":
|
|
1043
|
-
this.triggerEvent(t, new
|
|
1064
|
+
this.triggerEvent(t, new mi(t, this));
|
|
1044
1065
|
break;
|
|
1045
1066
|
default:
|
|
1046
1067
|
this.triggerEvent(t);
|
|
1047
1068
|
}
|
|
1048
|
-
t === "enterFrame" && this.onEnterFrame && this.onEnterFrame.call(this, new
|
|
1069
|
+
t === "enterFrame" && this.onEnterFrame && this.onEnterFrame.call(this, new He(t, this.currentFrame, this.totalFrames, this.frameMult)), t === "loopComplete" && this.onLoopComplete && this.onLoopComplete.call(this, new vi(t, this.loop, this.playCount, this.frameMult)), t === "complete" && this.onComplete && this.onComplete.call(this, new ci(t, this.frameMult)), t === "segmentStart" && this.onSegmentStart && this.onSegmentStart.call(this, new di(t, this.firstFrame, this.totalFrames)), t === "destroy" && this.onDestroy && this.onDestroy.call(this, new mi(t, this));
|
|
1049
1070
|
}, z.prototype.triggerRenderFrameError = function(t) {
|
|
1050
1071
|
var e = new ps(t, this.currentFrame);
|
|
1051
1072
|
this.triggerEvent("error", e), this.onError && this.onError.call(this, e);
|
|
@@ -1149,7 +1170,7 @@ var si = { exports: {} };
|
|
|
1149
1170
|
a || (a = "svg");
|
|
1150
1171
|
var R = document.getElementsByTagName("body")[0];
|
|
1151
1172
|
R.innerText = "";
|
|
1152
|
-
var j =
|
|
1173
|
+
var j = Ot("div");
|
|
1153
1174
|
j.style.width = "100%", j.style.height = "100%", j.setAttribute("data-bm-type", a), R.appendChild(j), h(j, v);
|
|
1154
1175
|
}
|
|
1155
1176
|
}
|
|
@@ -1183,7 +1204,7 @@ var si = { exports: {} };
|
|
|
1183
1204
|
e[P].animation.unmute(v);
|
|
1184
1205
|
}
|
|
1185
1206
|
return t.registerAnimation = h, t.loadAnimation = b, t.setSpeed = k, t.setDirection = S, t.play = C, t.pause = f, t.stop = g, t.togglePause = A, t.searchAnimations = x, t.resize = I, t.goToAndStop = u, t.destroy = T, t.freeze = N, t.unfreeze = L, t.setVolume = G, t.mute = O, t.unmute = F, t.getRegisteredAnimations = m, t;
|
|
1186
|
-
}(),
|
|
1207
|
+
}(), ve = function() {
|
|
1187
1208
|
var t = {};
|
|
1188
1209
|
t.getBezierEasing = i;
|
|
1189
1210
|
var e = {};
|
|
@@ -1255,14 +1276,14 @@ var si = { exports: {} };
|
|
|
1255
1276
|
return L >= n ? C(f, N, u, g) : L === 0 ? N : S(f, T, T + h, u, g);
|
|
1256
1277
|
}
|
|
1257
1278
|
}, t;
|
|
1258
|
-
}(),
|
|
1279
|
+
}(), Si = function() {
|
|
1259
1280
|
function t(e) {
|
|
1260
1281
|
return e.concat(tt(e.length));
|
|
1261
1282
|
}
|
|
1262
1283
|
return {
|
|
1263
1284
|
double: t
|
|
1264
1285
|
};
|
|
1265
|
-
}(),
|
|
1286
|
+
}(), Le = function() {
|
|
1266
1287
|
return function(t, e, i) {
|
|
1267
1288
|
var s = 0, n = t, r = tt(n), o = {
|
|
1268
1289
|
newElement: c,
|
|
@@ -1273,20 +1294,20 @@ var si = { exports: {} };
|
|
|
1273
1294
|
return s ? (s -= 1, m = r[s]) : m = e(), m;
|
|
1274
1295
|
}
|
|
1275
1296
|
function h(m) {
|
|
1276
|
-
s === n && (r =
|
|
1297
|
+
s === n && (r = Si.double(r), n *= 2), i && i(m), r[s] = m, s += 1;
|
|
1277
1298
|
}
|
|
1278
1299
|
return o;
|
|
1279
1300
|
};
|
|
1280
|
-
}(),
|
|
1301
|
+
}(), Pi = function() {
|
|
1281
1302
|
function t() {
|
|
1282
1303
|
return {
|
|
1283
1304
|
addedLength: 0,
|
|
1284
|
-
percents: st("float32",
|
|
1285
|
-
lengths: st("float32",
|
|
1305
|
+
percents: st("float32", Fe()),
|
|
1306
|
+
lengths: st("float32", Fe())
|
|
1286
1307
|
};
|
|
1287
1308
|
}
|
|
1288
|
-
return
|
|
1289
|
-
}(),
|
|
1309
|
+
return Le(8, t);
|
|
1310
|
+
}(), ki = function() {
|
|
1290
1311
|
function t() {
|
|
1291
1312
|
return {
|
|
1292
1313
|
lengths: [],
|
|
@@ -1296,10 +1317,10 @@ var si = { exports: {} };
|
|
|
1296
1317
|
function e(i) {
|
|
1297
1318
|
var s, n = i.lengths.length;
|
|
1298
1319
|
for (s = 0; s < n; s += 1)
|
|
1299
|
-
|
|
1320
|
+
Pi.release(i.lengths[s]);
|
|
1300
1321
|
i.lengths.length = 0;
|
|
1301
1322
|
}
|
|
1302
|
-
return
|
|
1323
|
+
return Le(8, t, e);
|
|
1303
1324
|
}();
|
|
1304
1325
|
function ks() {
|
|
1305
1326
|
var t = Math;
|
|
@@ -1315,17 +1336,17 @@ var si = { exports: {} };
|
|
|
1315
1336
|
}
|
|
1316
1337
|
var s = function() {
|
|
1317
1338
|
return function(p, b, k, S) {
|
|
1318
|
-
var C =
|
|
1339
|
+
var C = Fe(), y, d, f, u, g, A = 0, T, x = [], I = [], q = Pi.newElement();
|
|
1319
1340
|
for (f = k.length, y = 0; y < C; y += 1) {
|
|
1320
1341
|
for (g = y / (C - 1), T = 0, d = 0; d < f; d += 1)
|
|
1321
|
-
u =
|
|
1322
|
-
T && (T =
|
|
1342
|
+
u = kt(1 - g, 3) * p[d] + 3 * kt(1 - g, 2) * g * k[d] + 3 * (1 - g) * kt(g, 2) * S[d] + kt(g, 3) * b[d], x[d] = u, I[d] !== null && (T += kt(x[d] - I[d], 2)), I[d] = x[d];
|
|
1343
|
+
T && (T = pi(T), A += T), q.percents[y] = g, q.lengths[y] = A;
|
|
1323
1344
|
}
|
|
1324
1345
|
return q.addedLength = A, q;
|
|
1325
1346
|
};
|
|
1326
1347
|
}();
|
|
1327
1348
|
function n(p) {
|
|
1328
|
-
var b =
|
|
1349
|
+
var b = ki.newElement(), k = p.c, S = p.v, C = p.o, y = p.i, d, f = p._length, u = b.lengths, g = 0;
|
|
1329
1350
|
for (d = 0; d < f - 1; d += 1)
|
|
1330
1351
|
u[d] = s(S[d], S[d + 1], C[d], y[d + 1]), g += u[d].addedLength;
|
|
1331
1352
|
return k && f && (u[d] = s(S[d], S[0], C[d], y[0]), g += u[d].addedLength), b.totalLength = g, b;
|
|
@@ -1341,13 +1362,13 @@ var si = { exports: {} };
|
|
|
1341
1362
|
return function(b, k, S, C) {
|
|
1342
1363
|
var y = (b[0] + "_" + b[1] + "_" + k[0] + "_" + k[1] + "_" + S[0] + "_" + S[1] + "_" + C[0] + "_" + C[1]).replace(/\./g, "p");
|
|
1343
1364
|
if (!p[y]) {
|
|
1344
|
-
var d =
|
|
1365
|
+
var d = Fe(), f, u, g, A, T, x = 0, I, q, N = null;
|
|
1345
1366
|
b.length === 2 && (b[0] !== k[0] || b[1] !== k[1]) && e(b[0], b[1], k[0], k[1], b[0] + S[0], b[1] + S[1]) && e(b[0], b[1], k[0], k[1], k[0] + C[0], k[1] + C[1]) && (d = 2);
|
|
1346
1367
|
var L = new r(d);
|
|
1347
1368
|
for (g = S.length, f = 0; f < d; f += 1) {
|
|
1348
1369
|
for (q = tt(g), T = f / (d - 1), I = 0, u = 0; u < g; u += 1)
|
|
1349
|
-
A =
|
|
1350
|
-
I =
|
|
1370
|
+
A = kt(1 - T, 3) * b[u] + 3 * kt(1 - T, 2) * T * (b[u] + S[u]) + 3 * (1 - T) * kt(T, 2) * (k[u] + C[u]) + kt(T, 3) * k[u], q[u] = A, N !== null && (I += kt(q[u] - N[u], 2));
|
|
1371
|
+
I = pi(I), x += I, L.points[f] = new o(I, q), N = q;
|
|
1351
1372
|
}
|
|
1352
1373
|
L.segmentLength = x, p[y] = L;
|
|
1353
1374
|
}
|
|
@@ -1355,7 +1376,7 @@ var si = { exports: {} };
|
|
|
1355
1376
|
};
|
|
1356
1377
|
}();
|
|
1357
1378
|
function h(p, b) {
|
|
1358
|
-
var k = b.percents, S = b.lengths, C = k.length, y =
|
|
1379
|
+
var k = b.percents, S = b.lengths, C = k.length, y = Ut((C - 1) * p), d = p * b.addedLength, f = 0;
|
|
1359
1380
|
if (y === C - 1 || y === 0 || d === S[y])
|
|
1360
1381
|
return k[y];
|
|
1361
1382
|
for (var u = S[y] > d ? -1 : 1, g = !0; g; )
|
|
@@ -1389,8 +1410,8 @@ var si = { exports: {} };
|
|
|
1389
1410
|
pointOnLine3D: i
|
|
1390
1411
|
};
|
|
1391
1412
|
}
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1413
|
+
var At = ks(), Jt = Kt, Ai = Math.abs;
|
|
1414
|
+
function wi(t, e) {
|
|
1394
1415
|
var i = this.offsetTime, s;
|
|
1395
1416
|
this.propType === "multidimensional" && (s = st("float32", this.pv.length));
|
|
1396
1417
|
for (var n = e.lastIndex, r = n, o = this.keyframes.length - 1, c = !0, h, m, _; c; ) {
|
|
@@ -1407,14 +1428,14 @@ var si = { exports: {} };
|
|
|
1407
1428
|
_ = this.keyframesMetadata[r] || {};
|
|
1408
1429
|
var M, p, b, k, S, C, y = m.t - i, d = h.t - i, f;
|
|
1409
1430
|
if (h.to) {
|
|
1410
|
-
_.bezierData || (_.bezierData =
|
|
1431
|
+
_.bezierData || (_.bezierData = At.buildBezierData(h.s, m.s || h.e, h.to, h.ti));
|
|
1411
1432
|
var u = _.bezierData;
|
|
1412
1433
|
if (t >= y || t < d) {
|
|
1413
1434
|
var g = t >= y ? u.points.length - 1 : 0;
|
|
1414
1435
|
for (p = u.points[g].point.length, M = 0; M < p; M += 1)
|
|
1415
1436
|
s[M] = u.points[g].point[M];
|
|
1416
1437
|
} else {
|
|
1417
|
-
_.__fnct ? C = _.__fnct : (C =
|
|
1438
|
+
_.__fnct ? C = _.__fnct : (C = ve.getBezierEasing(h.o.x, h.o.y, h.i.x, h.i.y, h.n).get, _.__fnct = C), b = C((t - d) / (y - d));
|
|
1418
1439
|
var A = u.segmentLength * b, T, x = e.lastFrame < t && e._lastKeyframeIndex === r ? e._lastAddedLength : 0;
|
|
1419
1440
|
for (S = e.lastFrame < t && e._lastKeyframeIndex === r ? e._lastPoint : 0, c = !0, k = u.points.length; c; ) {
|
|
1420
1441
|
if (x += u.points[S].partialLength, A === 0 || b === 0 || S === u.points.length - 1) {
|
|
@@ -1438,12 +1459,12 @@ var si = { exports: {} };
|
|
|
1438
1459
|
else if (t <= d)
|
|
1439
1460
|
s[0] = h.s[0], s[1] = h.s[1], s[2] = h.s[2];
|
|
1440
1461
|
else {
|
|
1441
|
-
var O =
|
|
1462
|
+
var O = Ci(h.s), F = Ci(f), v = (t - d) / (y - d);
|
|
1442
1463
|
ws(s, As(O, F, v));
|
|
1443
1464
|
}
|
|
1444
1465
|
else
|
|
1445
1466
|
for (r = 0; r < o; r += 1)
|
|
1446
|
-
h.h !== 1 && (t >= y ? b = 1 : t < d ? b = 0 : (h.o.x.constructor === Array ? (_.__fnct || (_.__fnct = []), _.__fnct[r] ? C = _.__fnct[r] : (I = h.o.x[r] === void 0 ? h.o.x[0] : h.o.x[r], q = h.o.y[r] === void 0 ? h.o.y[0] : h.o.y[r], N = h.i.x[r] === void 0 ? h.i.x[0] : h.i.x[r], L = h.i.y[r] === void 0 ? h.i.y[0] : h.i.y[r], C =
|
|
1467
|
+
h.h !== 1 && (t >= y ? b = 1 : t < d ? b = 0 : (h.o.x.constructor === Array ? (_.__fnct || (_.__fnct = []), _.__fnct[r] ? C = _.__fnct[r] : (I = h.o.x[r] === void 0 ? h.o.x[0] : h.o.x[r], q = h.o.y[r] === void 0 ? h.o.y[0] : h.o.y[r], N = h.i.x[r] === void 0 ? h.i.x[0] : h.i.x[r], L = h.i.y[r] === void 0 ? h.i.y[0] : h.i.y[r], C = ve.getBezierEasing(I, q, N, L).get, _.__fnct[r] = C)) : _.__fnct ? C = _.__fnct : (I = h.o.x, q = h.o.y, N = h.i.x, L = h.i.y, C = ve.getBezierEasing(I, q, N, L).get, h.keyframeMetadata = C), b = C((t - d) / (y - d)))), f = m.s || h.e, G = h.h === 1 ? h.s[r] : h.s[r] + (f[r] - h.s[r]) * b, this.propType === "multidimensional" ? s[r] = G : s = G;
|
|
1447
1468
|
}
|
|
1448
1469
|
return e.lastIndex = n, s;
|
|
1449
1470
|
}
|
|
@@ -1455,28 +1476,28 @@ var si = { exports: {} };
|
|
|
1455
1476
|
var i = e[0], s = e[1], n = e[2], r = e[3], o = Math.atan2(2 * s * r - 2 * i * n, 1 - 2 * s * s - 2 * n * n), c = Math.asin(2 * i * s + 2 * n * r), h = Math.atan2(2 * i * r - 2 * s * n, 1 - 2 * i * i - 2 * n * n);
|
|
1456
1477
|
t[0] = o / J, t[1] = c / J, t[2] = h / J;
|
|
1457
1478
|
}
|
|
1458
|
-
function
|
|
1479
|
+
function Ci(t) {
|
|
1459
1480
|
var e = t[0] * J, i = t[1] * J, s = t[2] * J, n = Math.cos(e / 2), r = Math.cos(i / 2), o = Math.cos(s / 2), c = Math.sin(e / 2), h = Math.sin(i / 2), m = Math.sin(s / 2), _ = n * r * o - c * h * m, M = c * h * o + n * r * m, p = c * r * o + n * h * m, b = n * h * o - c * r * m;
|
|
1460
1481
|
return [M, p, b, _];
|
|
1461
1482
|
}
|
|
1462
|
-
function
|
|
1483
|
+
function Ti() {
|
|
1463
1484
|
var t = this.comp.renderedFrame - this.offsetTime, e = this.keyframes[0].t - this.offsetTime, i = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
|
|
1464
|
-
if (!(t === this._caching.lastFrame || this._caching.lastFrame !==
|
|
1485
|
+
if (!(t === this._caching.lastFrame || this._caching.lastFrame !== Jt && (this._caching.lastFrame >= i && t >= i || this._caching.lastFrame < e && t < e))) {
|
|
1465
1486
|
this._caching.lastFrame >= t && (this._caching._lastKeyframeIndex = -1, this._caching.lastIndex = 0);
|
|
1466
1487
|
var s = this.interpolateValue(t, this._caching);
|
|
1467
1488
|
this.pv = s;
|
|
1468
1489
|
}
|
|
1469
1490
|
return this._caching.lastFrame = t, this.pv;
|
|
1470
1491
|
}
|
|
1471
|
-
function
|
|
1492
|
+
function Ve(t) {
|
|
1472
1493
|
var e;
|
|
1473
1494
|
if (this.propType === "unidimensional")
|
|
1474
|
-
e = t * this.mult,
|
|
1495
|
+
e = t * this.mult, Ai(this.v - e) > 1e-5 && (this.v = e, this._mdf = !0);
|
|
1475
1496
|
else
|
|
1476
1497
|
for (var i = 0, s = this.v.length; i < s; )
|
|
1477
|
-
e = t[i] * this.mult,
|
|
1498
|
+
e = t[i] * this.mult, Ai(this.v[i] - e) > 1e-5 && (this.v[i] = e, this._mdf = !0), i += 1;
|
|
1478
1499
|
}
|
|
1479
|
-
function
|
|
1500
|
+
function Re() {
|
|
1480
1501
|
if (!(this.elem.globalData.frameId === this.frameId || !this.effectsSequence.length)) {
|
|
1481
1502
|
if (this.lock) {
|
|
1482
1503
|
this.setVValue(this.pv);
|
|
@@ -1489,41 +1510,41 @@ var si = { exports: {} };
|
|
|
1489
1510
|
this.setVValue(i), this._isFirstFrame = !1, this.lock = !1, this.frameId = this.elem.globalData.frameId;
|
|
1490
1511
|
}
|
|
1491
1512
|
}
|
|
1492
|
-
function
|
|
1513
|
+
function Oe(t) {
|
|
1493
1514
|
this.effectsSequence.push(t), this.container.addDynamicProperty(this);
|
|
1494
1515
|
}
|
|
1495
1516
|
function Cs(t, e, i, s) {
|
|
1496
|
-
this.propType = "unidimensional", this.mult = i || 1, this.data = e, this.v = i ? e.k * i : e.k, this.pv = e.k, this._mdf = !1, this.elem = t, this.container = s, this.comp = t.comp, this.k = !1, this.kf = !1, this.vel = 0, this.effectsSequence = [], this._isFirstFrame = !0, this.getValue =
|
|
1517
|
+
this.propType = "unidimensional", this.mult = i || 1, this.data = e, this.v = i ? e.k * i : e.k, this.pv = e.k, this._mdf = !1, this.elem = t, this.container = s, this.comp = t.comp, this.k = !1, this.kf = !1, this.vel = 0, this.effectsSequence = [], this._isFirstFrame = !0, this.getValue = Re, this.setVValue = Ve, this.addEffect = Oe;
|
|
1497
1518
|
}
|
|
1498
1519
|
function Ts(t, e, i, s) {
|
|
1499
1520
|
this.propType = "multidimensional", this.mult = i || 1, this.data = e, this._mdf = !1, this.elem = t, this.container = s, this.comp = t.comp, this.k = !1, this.kf = !1, this.frameId = -1;
|
|
1500
1521
|
var n, r = e.k.length;
|
|
1501
1522
|
for (this.v = st("float32", r), this.pv = st("float32", r), this.vel = st("float32", r), n = 0; n < r; n += 1)
|
|
1502
1523
|
this.v[n] = e.k[n] * this.mult, this.pv[n] = e.k[n];
|
|
1503
|
-
this._isFirstFrame = !0, this.effectsSequence = [], this.getValue =
|
|
1524
|
+
this._isFirstFrame = !0, this.effectsSequence = [], this.getValue = Re, this.setVValue = Ve, this.addEffect = Oe;
|
|
1504
1525
|
}
|
|
1505
1526
|
function Ms(t, e, i, s) {
|
|
1506
1527
|
this.propType = "unidimensional", this.keyframes = e.k, this.keyframesMetadata = [], this.offsetTime = t.data.st, this.frameId = -1, this._caching = {
|
|
1507
|
-
lastFrame:
|
|
1528
|
+
lastFrame: Jt,
|
|
1508
1529
|
lastIndex: 0,
|
|
1509
1530
|
value: 0,
|
|
1510
1531
|
_lastKeyframeIndex: -1
|
|
1511
|
-
}, this.k = !0, this.kf = !0, this.data = e, this.mult = i || 1, this.elem = t, this.container = s, this.comp = t.comp, this.v =
|
|
1532
|
+
}, this.k = !0, this.kf = !0, this.data = e, this.mult = i || 1, this.elem = t, this.container = s, this.comp = t.comp, this.v = Jt, this.pv = Jt, this._isFirstFrame = !0, this.getValue = Re, this.setVValue = Ve, this.interpolateValue = wi, this.effectsSequence = [Ti.bind(this)], this.addEffect = Oe;
|
|
1512
1533
|
}
|
|
1513
1534
|
function Es(t, e, i, s) {
|
|
1514
1535
|
this.propType = "multidimensional";
|
|
1515
1536
|
var n, r = e.k.length, o, c, h, m;
|
|
1516
1537
|
for (n = 0; n < r - 1; n += 1)
|
|
1517
|
-
e.k[n].to && e.k[n].s && e.k[n + 1] && e.k[n + 1].s && (o = e.k[n].s, c = e.k[n + 1].s, h = e.k[n].to, m = e.k[n].ti, (o.length === 2 && !(o[0] === c[0] && o[1] === c[1]) &&
|
|
1518
|
-
this.effectsSequence = [
|
|
1538
|
+
e.k[n].to && e.k[n].s && e.k[n + 1] && e.k[n + 1].s && (o = e.k[n].s, c = e.k[n + 1].s, h = e.k[n].to, m = e.k[n].ti, (o.length === 2 && !(o[0] === c[0] && o[1] === c[1]) && At.pointOnLine2D(o[0], o[1], c[0], c[1], o[0] + h[0], o[1] + h[1]) && At.pointOnLine2D(o[0], o[1], c[0], c[1], c[0] + m[0], c[1] + m[1]) || o.length === 3 && !(o[0] === c[0] && o[1] === c[1] && o[2] === c[2]) && At.pointOnLine3D(o[0], o[1], o[2], c[0], c[1], c[2], o[0] + h[0], o[1] + h[1], o[2] + h[2]) && At.pointOnLine3D(o[0], o[1], o[2], c[0], c[1], c[2], c[0] + m[0], c[1] + m[1], c[2] + m[2])) && (e.k[n].to = null, e.k[n].ti = null), o[0] === c[0] && o[1] === c[1] && h[0] === 0 && h[1] === 0 && m[0] === 0 && m[1] === 0 && (o.length === 2 || o[2] === c[2] && h[2] === 0 && m[2] === 0) && (e.k[n].to = null, e.k[n].ti = null));
|
|
1539
|
+
this.effectsSequence = [Ti.bind(this)], this.data = e, this.keyframes = e.k, this.keyframesMetadata = [], this.offsetTime = t.data.st, this.k = !0, this.kf = !0, this._isFirstFrame = !0, this.mult = i || 1, this.elem = t, this.container = s, this.comp = t.comp, this.getValue = Re, this.setVValue = Ve, this.interpolateValue = wi, this.frameId = -1;
|
|
1519
1540
|
var _ = e.k[0].s.length;
|
|
1520
1541
|
for (this.v = st("float32", _), this.pv = st("float32", _), n = 0; n < _; n += 1)
|
|
1521
|
-
this.v[n] =
|
|
1542
|
+
this.v[n] = Jt, this.pv[n] = Jt;
|
|
1522
1543
|
this._caching = {
|
|
1523
|
-
lastFrame:
|
|
1544
|
+
lastFrame: Jt,
|
|
1524
1545
|
lastIndex: 0,
|
|
1525
1546
|
value: st("float32", _)
|
|
1526
|
-
}, this.addEffect =
|
|
1547
|
+
}, this.addEffect = Oe;
|
|
1527
1548
|
}
|
|
1528
1549
|
var V = function() {
|
|
1529
1550
|
function t(i, s, n, r, o) {
|
|
@@ -1565,26 +1586,26 @@ var si = { exports: {} };
|
|
|
1565
1586
|
this.container = e, this.dynamicProperties = [], this._mdf = !1, this._isAnimated = !1;
|
|
1566
1587
|
}
|
|
1567
1588
|
};
|
|
1568
|
-
var
|
|
1589
|
+
var Qt = function() {
|
|
1569
1590
|
function t() {
|
|
1570
1591
|
return st("float32", 2);
|
|
1571
1592
|
}
|
|
1572
|
-
return
|
|
1593
|
+
return Le(8, t);
|
|
1573
1594
|
}();
|
|
1574
|
-
function
|
|
1595
|
+
function Mt() {
|
|
1575
1596
|
this.c = !1, this._length = 0, this._maxLength = 8, this.v = tt(this._maxLength), this.o = tt(this._maxLength), this.i = tt(this._maxLength);
|
|
1576
1597
|
}
|
|
1577
|
-
|
|
1598
|
+
Mt.prototype.setPathData = function(t, e) {
|
|
1578
1599
|
this.c = t, this.setLength(e);
|
|
1579
1600
|
for (var i = 0; i < e; )
|
|
1580
|
-
this.v[i] =
|
|
1581
|
-
},
|
|
1601
|
+
this.v[i] = Qt.newElement(), this.o[i] = Qt.newElement(), this.i[i] = Qt.newElement(), i += 1;
|
|
1602
|
+
}, Mt.prototype.setLength = function(t) {
|
|
1582
1603
|
for (; this._maxLength < t; )
|
|
1583
1604
|
this.doubleArrayLength();
|
|
1584
1605
|
this._length = t;
|
|
1585
|
-
},
|
|
1606
|
+
}, Mt.prototype.doubleArrayLength = function() {
|
|
1586
1607
|
this.v = this.v.concat(tt(this._maxLength)), this.i = this.i.concat(tt(this._maxLength)), this.o = this.o.concat(tt(this._maxLength)), this._maxLength *= 2;
|
|
1587
|
-
},
|
|
1608
|
+
}, Mt.prototype.setXYAt = function(t, e, i, s, n) {
|
|
1588
1609
|
var r;
|
|
1589
1610
|
switch (this._length = Math.max(this._length, s + 1), this._length >= this._maxLength && this.doubleArrayLength(), i) {
|
|
1590
1611
|
case "v":
|
|
@@ -1600,11 +1621,11 @@ var si = { exports: {} };
|
|
|
1600
1621
|
r = [];
|
|
1601
1622
|
break;
|
|
1602
1623
|
}
|
|
1603
|
-
(!r[s] || r[s] && !n) && (r[s] =
|
|
1604
|
-
},
|
|
1624
|
+
(!r[s] || r[s] && !n) && (r[s] = Qt.newElement()), r[s][0] = t, r[s][1] = e;
|
|
1625
|
+
}, Mt.prototype.setTripleAt = function(t, e, i, s, n, r, o, c) {
|
|
1605
1626
|
this.setXYAt(t, e, "v", o, c), this.setXYAt(i, s, "o", o, c), this.setXYAt(n, r, "i", o, c);
|
|
1606
|
-
},
|
|
1607
|
-
var t = new
|
|
1627
|
+
}, Mt.prototype.reverse = function() {
|
|
1628
|
+
var t = new Mt();
|
|
1608
1629
|
t.setPathData(this.c, this._length);
|
|
1609
1630
|
var e = this.v, i = this.o, s = this.i, n = 0;
|
|
1610
1631
|
this.c && (t.setTripleAt(e[0][0], e[0][1], s[0][0], s[0][1], i[0][0], i[0][1], 0, !1), n = 1);
|
|
@@ -1612,17 +1633,17 @@ var si = { exports: {} };
|
|
|
1612
1633
|
for (c = n; c < o; c += 1)
|
|
1613
1634
|
t.setTripleAt(e[r][0], e[r][1], s[r][0], s[r][1], i[r][0], i[r][1], c, !1), r -= 1;
|
|
1614
1635
|
return t;
|
|
1615
|
-
},
|
|
1636
|
+
}, Mt.prototype.length = function() {
|
|
1616
1637
|
return this._length;
|
|
1617
1638
|
};
|
|
1618
1639
|
var at = function() {
|
|
1619
1640
|
function t() {
|
|
1620
|
-
return new
|
|
1641
|
+
return new Mt();
|
|
1621
1642
|
}
|
|
1622
1643
|
function e(n) {
|
|
1623
1644
|
var r = n._length, o;
|
|
1624
1645
|
for (o = 0; o < r; o += 1)
|
|
1625
|
-
|
|
1646
|
+
Qt.release(n.v[o]), Qt.release(n.i[o]), Qt.release(n.o[o]), n.v[o] = null, n.i[o] = null, n.o[o] = null;
|
|
1626
1647
|
n._length = 0, n.c = !1;
|
|
1627
1648
|
}
|
|
1628
1649
|
function i(n) {
|
|
@@ -1631,37 +1652,37 @@ var si = { exports: {} };
|
|
|
1631
1652
|
r.setTripleAt(n.v[o][0], n.v[o][1], n.o[o][0], n.o[o][1], n.i[o][0], n.i[o][1], o);
|
|
1632
1653
|
return r;
|
|
1633
1654
|
}
|
|
1634
|
-
var s =
|
|
1655
|
+
var s = Le(4, t, e);
|
|
1635
1656
|
return s.clone = i, s;
|
|
1636
1657
|
}();
|
|
1637
|
-
function
|
|
1658
|
+
function Ue() {
|
|
1638
1659
|
this._length = 0, this._maxLength = 4, this.shapes = tt(this._maxLength);
|
|
1639
1660
|
}
|
|
1640
|
-
|
|
1661
|
+
Ue.prototype.addShape = function(t) {
|
|
1641
1662
|
this._length === this._maxLength && (this.shapes = this.shapes.concat(tt(this._maxLength)), this._maxLength *= 2), this.shapes[this._length] = t, this._length += 1;
|
|
1642
|
-
},
|
|
1663
|
+
}, Ue.prototype.releaseShapes = function() {
|
|
1643
1664
|
var t;
|
|
1644
1665
|
for (t = 0; t < this._length; t += 1)
|
|
1645
1666
|
at.release(this.shapes[t]);
|
|
1646
1667
|
this._length = 0;
|
|
1647
1668
|
};
|
|
1648
|
-
var
|
|
1669
|
+
var re = function() {
|
|
1649
1670
|
var t = {
|
|
1650
1671
|
newShapeCollection: n,
|
|
1651
1672
|
release: r
|
|
1652
1673
|
}, e = 0, i = 4, s = tt(i);
|
|
1653
1674
|
function n() {
|
|
1654
1675
|
var o;
|
|
1655
|
-
return e ? (e -= 1, o = s[e]) : o = new
|
|
1676
|
+
return e ? (e -= 1, o = s[e]) : o = new Ue(), o;
|
|
1656
1677
|
}
|
|
1657
1678
|
function r(o) {
|
|
1658
1679
|
var c, h = o._length;
|
|
1659
1680
|
for (c = 0; c < h; c += 1)
|
|
1660
1681
|
at.release(o.shapes[c]);
|
|
1661
|
-
o._length = 0, e === i && (s =
|
|
1682
|
+
o._length = 0, e === i && (s = Si.double(s), i *= 2), s[e] = o, e += 1;
|
|
1662
1683
|
}
|
|
1663
1684
|
return t;
|
|
1664
|
-
}(),
|
|
1685
|
+
}(), Be = function() {
|
|
1665
1686
|
var t = -999999;
|
|
1666
1687
|
function e(y, d, f) {
|
|
1667
1688
|
var u = f.lastIndex, g, A, T, x, I, q, N, L, G, O = this.keyframes;
|
|
@@ -1679,7 +1700,7 @@ var si = { exports: {} };
|
|
|
1679
1700
|
L = 0;
|
|
1680
1701
|
else {
|
|
1681
1702
|
var w;
|
|
1682
|
-
E.__fnct ? w = E.__fnct : (w =
|
|
1703
|
+
E.__fnct ? w = E.__fnct : (w = ve.getBezierEasing(a.o.x, a.o.y, a.i.x, a.i.y).get, E.__fnct = w), L = w((y - (a.t - this.offsetTime)) / (l.t - this.offsetTime - (a.t - this.offsetTime)));
|
|
1683
1704
|
}
|
|
1684
1705
|
A = l.s ? l.s[0] : a.e[0];
|
|
1685
1706
|
}
|
|
@@ -1730,7 +1751,7 @@ var si = { exports: {} };
|
|
|
1730
1751
|
function c(y, d, f) {
|
|
1731
1752
|
this.propType = "shape", this.comp = y.comp, this.container = y, this.elem = y, this.data = d, this.k = !1, this.kf = !1, this._mdf = !1;
|
|
1732
1753
|
var u = f === 3 ? d.pt.k : d.ks.k;
|
|
1733
|
-
this.v = at.clone(u), this.pv = at.clone(this.v), this.localShapeCollection =
|
|
1754
|
+
this.v = at.clone(u), this.pv = at.clone(this.v), this.localShapeCollection = re.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.reset = s, this.effectsSequence = [];
|
|
1734
1755
|
}
|
|
1735
1756
|
function h(y) {
|
|
1736
1757
|
this.effectsSequence.push(y), this.container.addDynamicProperty(this);
|
|
@@ -1739,16 +1760,16 @@ var si = { exports: {} };
|
|
|
1739
1760
|
function m(y, d, f) {
|
|
1740
1761
|
this.propType = "shape", this.comp = y.comp, this.elem = y, this.container = y, this.offsetTime = y.data.st, this.keyframes = f === 3 ? d.pt.k : d.ks.k, this.keyframesMetadata = [], this.k = !0, this.kf = !0;
|
|
1741
1762
|
var u = this.keyframes[0].s[0].i.length;
|
|
1742
|
-
this.v = at.newElement(), this.v.setPathData(this.keyframes[0].s[0].c, u), this.pv = at.clone(this.v), this.localShapeCollection =
|
|
1763
|
+
this.v = at.newElement(), this.v.setPathData(this.keyframes[0].s[0].c, u), this.pv = at.clone(this.v), this.localShapeCollection = re.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.lastFrame = t, this.reset = s, this._caching = {
|
|
1743
1764
|
lastFrame: t,
|
|
1744
1765
|
lastIndex: 0
|
|
1745
1766
|
}, this.effectsSequence = [i.bind(this)];
|
|
1746
1767
|
}
|
|
1747
1768
|
m.prototype.getValue = o, m.prototype.interpolateShape = e, m.prototype.setVValue = r, m.prototype.addEffect = h;
|
|
1748
1769
|
var _ = function() {
|
|
1749
|
-
var y =
|
|
1770
|
+
var y = Bt;
|
|
1750
1771
|
function d(f, u) {
|
|
1751
|
-
this.v = at.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection =
|
|
1772
|
+
this.v = at.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = re.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d = u.d, this.elem = f, this.comp = f.comp, this.frameId = -1, this.initDynamicPropertyContainer(f), this.p = V.getProp(f, u.p, 1, 0, this), this.s = V.getProp(f, u.s, 1, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertEllToPath());
|
|
1752
1773
|
}
|
|
1753
1774
|
return d.prototype = {
|
|
1754
1775
|
reset: s,
|
|
@@ -1762,7 +1783,7 @@ var si = { exports: {} };
|
|
|
1762
1783
|
}, X([rt], d), d;
|
|
1763
1784
|
}(), M = function() {
|
|
1764
1785
|
function y(d, f) {
|
|
1765
|
-
this.v = at.newElement(), this.v.setPathData(!0, 0), this.elem = d, this.comp = d.comp, this.data = f, this.frameId = -1, this.d = f.d, this.initDynamicPropertyContainer(d), f.sy === 1 ? (this.ir = V.getProp(d, f.ir, 0, 0, this), this.is = V.getProp(d, f.is, 0, 0.01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = V.getProp(d, f.pt, 0, 0, this), this.p = V.getProp(d, f.p, 1, 0, this), this.r = V.getProp(d, f.r, 0, J, this), this.or = V.getProp(d, f.or, 0, 0, this), this.os = V.getProp(d, f.os, 0, 0.01, this), this.localShapeCollection =
|
|
1786
|
+
this.v = at.newElement(), this.v.setPathData(!0, 0), this.elem = d, this.comp = d.comp, this.data = f, this.frameId = -1, this.d = f.d, this.initDynamicPropertyContainer(d), f.sy === 1 ? (this.ir = V.getProp(d, f.ir, 0, 0, this), this.is = V.getProp(d, f.is, 0, 0.01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = V.getProp(d, f.pt, 0, 0, this), this.p = V.getProp(d, f.p, 1, 0, this), this.r = V.getProp(d, f.r, 0, J, this), this.or = V.getProp(d, f.or, 0, 0, this), this.os = V.getProp(d, f.os, 0, 0.01, this), this.localShapeCollection = re.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath());
|
|
1766
1787
|
}
|
|
1767
1788
|
return y.prototype = {
|
|
1768
1789
|
reset: s,
|
|
@@ -1790,11 +1811,11 @@ var si = { exports: {} };
|
|
|
1790
1811
|
}, X([rt], y), y;
|
|
1791
1812
|
}(), p = function() {
|
|
1792
1813
|
function y(d, f) {
|
|
1793
|
-
this.v = at.newElement(), this.v.c = !0, this.localShapeCollection =
|
|
1814
|
+
this.v = at.newElement(), this.v.c = !0, this.localShapeCollection = re.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem = d, this.comp = d.comp, this.frameId = -1, this.d = f.d, this.initDynamicPropertyContainer(d), this.p = V.getProp(d, f.p, 1, 0, this), this.s = V.getProp(d, f.s, 1, 0, this), this.r = V.getProp(d, f.r, 0, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertRectToPath());
|
|
1794
1815
|
}
|
|
1795
1816
|
return y.prototype = {
|
|
1796
1817
|
convertRectToPath: function() {
|
|
1797
|
-
var f = this.p.v[0], u = this.p.v[1], g = this.s.v[0] / 2, A = this.s.v[1] / 2, T = fs(g, A, this.r.v), x = T * (1 -
|
|
1818
|
+
var f = this.p.v[0], u = this.p.v[1], g = this.s.v[0] / 2, A = this.s.v[1] / 2, T = fs(g, A, this.r.v), x = T * (1 - Bt);
|
|
1798
1819
|
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(f + g, u - A + T, f + g, u - A + T, f + g, u - A + x, 0, !0), this.v.setTripleAt(f + g, u + A - T, f + g, u + A - x, f + g, u + A - T, 1, !0), T !== 0 ? (this.v.setTripleAt(f + g - T, u + A, f + g - T, u + A, f + g - x, u + A, 2, !0), this.v.setTripleAt(f - g + T, u + A, f - g + x, u + A, f - g + T, u + A, 3, !0), this.v.setTripleAt(f - g, u + A - T, f - g, u + A - T, f - g, u + A - x, 4, !0), this.v.setTripleAt(f - g, u - A + T, f - g, u - A + x, f - g, u - A + T, 5, !0), this.v.setTripleAt(f - g + T, u - A, f - g + T, u - A, f - g + x, u - A, 6, !0), this.v.setTripleAt(f + g - T, u - A, f + g - x, u - A, f + g - T, u - A, 7, !0)) : (this.v.setTripleAt(f - g, u + A, f - g + x, u + A, f - g, u + A, 2), this.v.setTripleAt(f - g, u - A, f - g, u - A + x, f - g, u - A, 3))) : (this.v.setTripleAt(f + g, u - A + T, f + g, u - A + x, f + g, u - A + T, 0, !0), T !== 0 ? (this.v.setTripleAt(f + g - T, u - A, f + g - T, u - A, f + g - x, u - A, 1, !0), this.v.setTripleAt(f - g + T, u - A, f - g + x, u - A, f - g + T, u - A, 2, !0), this.v.setTripleAt(f - g, u - A + T, f - g, u - A + T, f - g, u - A + x, 3, !0), this.v.setTripleAt(f - g, u + A - T, f - g, u + A - x, f - g, u + A - T, 4, !0), this.v.setTripleAt(f - g + T, u + A, f - g + T, u + A, f - g + x, u + A, 5, !0), this.v.setTripleAt(f + g - T, u + A, f + g - x, u + A, f + g - T, u + A, 6, !0), this.v.setTripleAt(f + g, u + A - T, f + g, u + A - T, f + g, u + A - x, 7, !0)) : (this.v.setTripleAt(f - g, u - A, f - g + x, u - A, f - g, u - A, 1, !0), this.v.setTripleAt(f - g, u + A, f - g, u + A - x, f - g, u + A, 2, !0), this.v.setTripleAt(f + g, u + A, f + g - x, u + A, f + g, u + A, 3, !0)));
|
|
1799
1820
|
},
|
|
1800
1821
|
getValue: function() {
|
|
@@ -1871,18 +1892,18 @@ var si = { exports: {} };
|
|
|
1871
1892
|
function p(a, l, E) {
|
|
1872
1893
|
return !E && E !== 0 && (E = 1), a === 1 && l === 1 && E === 1 ? this : this._t(a, 0, 0, 0, 0, l, 0, 0, 0, 0, E, 0, 0, 0, 0, 1);
|
|
1873
1894
|
}
|
|
1874
|
-
function b(a, l, E, w, R, j, D, Y, H, $, ut,
|
|
1875
|
-
return this.props[0] = a, this.props[1] = l, this.props[2] = E, this.props[3] = w, this.props[4] = R, this.props[5] = j, this.props[6] = D, this.props[7] = Y, this.props[8] = H, this.props[9] = $, this.props[10] = ut, this.props[11] =
|
|
1895
|
+
function b(a, l, E, w, R, j, D, Y, H, $, ut, Ct, ct, nt, mt, K) {
|
|
1896
|
+
return this.props[0] = a, this.props[1] = l, this.props[2] = E, this.props[3] = w, this.props[4] = R, this.props[5] = j, this.props[6] = D, this.props[7] = Y, this.props[8] = H, this.props[9] = $, this.props[10] = ut, this.props[11] = Ct, this.props[12] = ct, this.props[13] = nt, this.props[14] = mt, this.props[15] = K, this;
|
|
1876
1897
|
}
|
|
1877
1898
|
function k(a, l, E) {
|
|
1878
1899
|
return E = E || 0, a !== 0 || l !== 0 || E !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, a, l, E, 1) : this;
|
|
1879
1900
|
}
|
|
1880
|
-
function S(a, l, E, w, R, j, D, Y, H, $, ut,
|
|
1901
|
+
function S(a, l, E, w, R, j, D, Y, H, $, ut, Ct, ct, nt, mt, K) {
|
|
1881
1902
|
var B = this.props;
|
|
1882
|
-
if (a === 1 && l === 0 && E === 0 && w === 0 && R === 0 && j === 1 && D === 0 && Y === 0 && H === 0 && $ === 0 && ut === 1 &&
|
|
1903
|
+
if (a === 1 && l === 0 && E === 0 && w === 0 && R === 0 && j === 1 && D === 0 && Y === 0 && H === 0 && $ === 0 && ut === 1 && Ct === 0)
|
|
1883
1904
|
return B[12] = B[12] * a + B[15] * ct, B[13] = B[13] * j + B[15] * nt, B[14] = B[14] * ut + B[15] * mt, B[15] *= K, this._identityCalculated = !1, this;
|
|
1884
|
-
var
|
|
1885
|
-
return B[0] =
|
|
1905
|
+
var Ft = B[0], Gt = B[1], It = B[2], Tt = B[3], Lt = B[4], Vt = B[5], vt = B[6], Xt = B[7], Yt = B[8], bt = B[9], Ht = B[10], St = B[11], ie = B[12], Ge = B[13], Xe = B[14], Ye = B[15];
|
|
1906
|
+
return B[0] = Ft * a + Gt * R + It * H + Tt * ct, B[1] = Ft * l + Gt * j + It * $ + Tt * nt, B[2] = Ft * E + Gt * D + It * ut + Tt * mt, B[3] = Ft * w + Gt * Y + It * Ct + Tt * K, B[4] = Lt * a + Vt * R + vt * H + Xt * ct, B[5] = Lt * l + Vt * j + vt * $ + Xt * nt, B[6] = Lt * E + Vt * D + vt * ut + Xt * mt, B[7] = Lt * w + Vt * Y + vt * Ct + Xt * K, B[8] = Yt * a + bt * R + Ht * H + St * ct, B[9] = Yt * l + bt * j + Ht * $ + St * nt, B[10] = Yt * E + bt * D + Ht * ut + St * mt, B[11] = Yt * w + bt * Y + Ht * Ct + St * K, B[12] = ie * a + Ge * R + Xe * H + Ye * ct, B[13] = ie * l + Ge * j + Xe * $ + Ye * nt, B[14] = ie * E + Ge * D + Xe * ut + Ye * mt, B[15] = ie * w + Ge * Y + Xe * Ct + Ye * K, this._identityCalculated = !1, this;
|
|
1886
1907
|
}
|
|
1887
1908
|
function C(a) {
|
|
1888
1909
|
var l = a.props;
|
|
@@ -1977,19 +1998,18 @@ var si = { exports: {} };
|
|
|
1977
1998
|
this.reset = n, this.rotate = r, this.rotateX = o, this.rotateY = c, this.rotateZ = h, this.skew = _, this.skewFromAxis = M, this.shear = m, this.scale = p, this.setTransform = b, this.translate = k, this.transform = S, this.multiply = C, this.applyToPoint = g, this.applyToX = A, this.applyToY = T, this.applyToZ = x, this.applyToPointArray = G, this.applyToTriplePoints = L, this.applyToPointStringified = O, this.toCSS = F, this.to2dCSS = P, this.clone = f, this.cloneFromProps = u, this.equals = d, this.inversePoints = N, this.inversePoint = q, this.getInverseMatrix = I, this._t = this.transform, this.isIdentity = y, this._identity = !0, this._identityCalculated = !1, this.props = st("float32", 16), this.reset();
|
|
1978
1999
|
};
|
|
1979
2000
|
}();
|
|
1980
|
-
function
|
|
1981
|
-
"
|
|
1982
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ie = function(i) {
|
|
2001
|
+
function Ne(t) {
|
|
2002
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ne = function(i) {
|
|
1983
2003
|
return typeof i;
|
|
1984
|
-
} :
|
|
2004
|
+
} : Ne = function(i) {
|
|
1985
2005
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
|
1986
|
-
},
|
|
2006
|
+
}, Ne(t);
|
|
1987
2007
|
}
|
|
1988
2008
|
var Z = {};
|
|
1989
2009
|
function xs(t) {
|
|
1990
2010
|
as(t);
|
|
1991
2011
|
}
|
|
1992
|
-
function
|
|
2012
|
+
function Mi() {
|
|
1993
2013
|
et.searchAnimations();
|
|
1994
2014
|
}
|
|
1995
2015
|
function Fs(t) {
|
|
@@ -2005,18 +2025,18 @@ var si = { exports: {} };
|
|
|
2005
2025
|
if (typeof t == "string")
|
|
2006
2026
|
switch (t) {
|
|
2007
2027
|
case "high":
|
|
2008
|
-
|
|
2028
|
+
xe(200);
|
|
2009
2029
|
break;
|
|
2010
2030
|
default:
|
|
2011
2031
|
case "medium":
|
|
2012
|
-
|
|
2032
|
+
xe(50);
|
|
2013
2033
|
break;
|
|
2014
2034
|
case "low":
|
|
2015
|
-
|
|
2035
|
+
xe(10);
|
|
2016
2036
|
break;
|
|
2017
2037
|
}
|
|
2018
2038
|
else
|
|
2019
|
-
!isNaN(t) && t > 1 &&
|
|
2039
|
+
!isNaN(t) && t > 1 && xe(t);
|
|
2020
2040
|
}
|
|
2021
2041
|
function Rs() {
|
|
2022
2042
|
return typeof navigator < "u";
|
|
@@ -2029,38 +2049,38 @@ var si = { exports: {} };
|
|
|
2029
2049
|
case "propertyFactory":
|
|
2030
2050
|
return V;
|
|
2031
2051
|
case "shapePropertyFactory":
|
|
2032
|
-
return
|
|
2052
|
+
return Be;
|
|
2033
2053
|
case "matrix":
|
|
2034
2054
|
return ot;
|
|
2035
2055
|
default:
|
|
2036
2056
|
return null;
|
|
2037
2057
|
}
|
|
2038
2058
|
}
|
|
2039
|
-
Z.play = et.play, Z.pause = et.pause, Z.setLocationHref = xs, Z.togglePause = et.togglePause, Z.setSpeed = et.setSpeed, Z.setDirection = et.setDirection, Z.stop = et.stop, Z.searchAnimations =
|
|
2059
|
+
Z.play = et.play, Z.pause = et.pause, Z.setLocationHref = xs, Z.togglePause = et.togglePause, Z.setSpeed = et.setSpeed, Z.setDirection = et.setDirection, Z.stop = et.stop, Z.searchAnimations = Mi, Z.registerAnimation = et.registerAnimation, Z.loadAnimation = Ls, Z.setSubframeRendering = Fs, Z.resize = et.resize, Z.goToAndStop = et.goToAndStop, Z.destroy = et.destroy, Z.setQuality = Vs, Z.inBrowser = Rs, Z.installPlugin = Os, Z.freeze = et.freeze, Z.unfreeze = et.unfreeze, Z.setVolume = et.setVolume, Z.mute = et.mute, Z.unmute = et.unmute, Z.getRegisteredAnimations = et.getRegisteredAnimations, Z.useWebWorker = rs, Z.setIDPrefix = Is, Z.__getFactory = Bs, Z.version = "5.12.2";
|
|
2040
2060
|
function Ns() {
|
|
2041
|
-
document.readyState === "complete" && (clearInterval(qs),
|
|
2061
|
+
document.readyState === "complete" && (clearInterval(qs), Mi());
|
|
2042
2062
|
}
|
|
2043
2063
|
function zs(t) {
|
|
2044
|
-
for (var e =
|
|
2064
|
+
for (var e = Ei.split("&"), i = 0; i < e.length; i += 1) {
|
|
2045
2065
|
var s = e[i].split("=");
|
|
2046
2066
|
if (decodeURIComponent(s[0]) == t)
|
|
2047
2067
|
return decodeURIComponent(s[1]);
|
|
2048
2068
|
}
|
|
2049
2069
|
return null;
|
|
2050
2070
|
}
|
|
2051
|
-
var
|
|
2071
|
+
var Ei = "";
|
|
2052
2072
|
{
|
|
2053
|
-
var
|
|
2073
|
+
var xi = document.getElementsByTagName("script"), js = xi.length - 1, Fi = xi[js] || {
|
|
2054
2074
|
src: ""
|
|
2055
2075
|
};
|
|
2056
|
-
|
|
2076
|
+
Ei = Fi.src ? Fi.src.replace(/^[^\?]+\??/, "") : "", zs("renderer");
|
|
2057
2077
|
}
|
|
2058
2078
|
var qs = setInterval(Ns, 100);
|
|
2059
2079
|
try {
|
|
2060
|
-
|
|
2080
|
+
Ne(Me) !== "object" && (window.bodymovin = Z);
|
|
2061
2081
|
} catch {
|
|
2062
2082
|
}
|
|
2063
|
-
var
|
|
2083
|
+
var Nt = function() {
|
|
2064
2084
|
var t = {}, e = {};
|
|
2065
2085
|
t.registerModifier = i, t.getModifier = s;
|
|
2066
2086
|
function i(n, r) {
|
|
@@ -2081,12 +2101,12 @@ var si = { exports: {} };
|
|
|
2081
2101
|
var e = {
|
|
2082
2102
|
shape: t.sh,
|
|
2083
2103
|
data: t,
|
|
2084
|
-
localShapeCollection:
|
|
2104
|
+
localShapeCollection: re.newShapeCollection()
|
|
2085
2105
|
};
|
|
2086
2106
|
this.shapes.push(e), this.addShapeToModifier(e), this._isAnimated && t.setAsAnimated();
|
|
2087
2107
|
}
|
|
2088
2108
|
}, gt.prototype.init = function(t, e) {
|
|
2089
|
-
this.shapes = [], this.elem = t, this.initDynamicPropertyContainer(t), this.initModifierProperties(t, e), this.frameId =
|
|
2109
|
+
this.shapes = [], this.elem = t, this.initDynamicPropertyContainer(t), this.initModifierProperties(t, e), this.frameId = Kt, this.closed = !1, this.k = !1, this.dynamicProperties.length ? this.k = !0 : this.getValue(!0);
|
|
2090
2110
|
}, gt.prototype.processKeys = function() {
|
|
2091
2111
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties());
|
|
2092
2112
|
}, X([rt], gt);
|
|
@@ -2121,7 +2141,7 @@ var si = { exports: {} };
|
|
|
2121
2141
|
}, _t.prototype.releasePathsData = function(t) {
|
|
2122
2142
|
var e, i = t.length;
|
|
2123
2143
|
for (e = 0; e < i; e += 1)
|
|
2124
|
-
|
|
2144
|
+
ki.release(t[e]);
|
|
2125
2145
|
return t.length = 0, t;
|
|
2126
2146
|
}, _t.prototype.processShapes = function(t) {
|
|
2127
2147
|
var e, i;
|
|
@@ -2152,7 +2172,7 @@ var si = { exports: {} };
|
|
|
2152
2172
|
p = S.totalShapeLength;
|
|
2153
2173
|
else {
|
|
2154
2174
|
for (_ = this.releasePathsData(S.pathsData), h = 0; h < m; h += 1)
|
|
2155
|
-
M =
|
|
2175
|
+
M = At.getSegmentsLength(r.shapes[h]), _.push(M), p += M.totalLength;
|
|
2156
2176
|
S.totalShapeLength = p, S.pathsData = _;
|
|
2157
2177
|
}
|
|
2158
2178
|
b += p, S.shape._mdf = !0;
|
|
@@ -2208,11 +2228,11 @@ var si = { exports: {} };
|
|
|
2208
2228
|
i.c = !1;
|
|
2209
2229
|
break;
|
|
2210
2230
|
} else
|
|
2211
|
-
e.s <= m && e.e >= m + _.addedLength ? (this.addSegment(n[r].v[c - 1], n[r].o[c - 1], n[r].i[c], n[r].v[c], i, M, C), C = !1) : (b =
|
|
2231
|
+
e.s <= m && e.e >= m + _.addedLength ? (this.addSegment(n[r].v[c - 1], n[r].o[c - 1], n[r].i[c], n[r].v[c], i, M, C), C = !1) : (b = At.getNewSegment(n[r].v[c - 1], n[r].v[c], n[r].o[c - 1], n[r].i[c], (e.s - m) / _.addedLength, (e.e - m) / _.addedLength, p[c - 1]), this.addSegmentFromArray(b, i, M, C), C = !1, i.c = !1), m += _.addedLength, M += 1;
|
|
2212
2232
|
if (n[r].c && p.length) {
|
|
2213
2233
|
if (_ = p[c - 1], m <= e.e) {
|
|
2214
2234
|
var y = p[c - 1].addedLength;
|
|
2215
|
-
e.s <= m && e.e >= m + y ? (this.addSegment(n[r].v[c - 1], n[r].o[c - 1], n[r].i[0], n[r].v[0], i, M, C), C = !1) : (b =
|
|
2235
|
+
e.s <= m && e.e >= m + y ? (this.addSegment(n[r].v[c - 1], n[r].o[c - 1], n[r].i[0], n[r].v[0], i, M, C), C = !1) : (b = At.getNewSegment(n[r].v[c - 1], n[r].v[0], n[r].o[c - 1], n[r].i[0], (e.s - m) / y, (e.e - m) / y, p[c - 1]), this.addSegmentFromArray(b, i, M, C), C = !1, i.c = !1);
|
|
2216
2236
|
} else
|
|
2217
2237
|
i.c = !1;
|
|
2218
2238
|
m += _.addedLength, M += 1;
|
|
@@ -2223,11 +2243,11 @@ var si = { exports: {} };
|
|
|
2223
2243
|
}
|
|
2224
2244
|
return k;
|
|
2225
2245
|
};
|
|
2226
|
-
function
|
|
2246
|
+
function de() {
|
|
2227
2247
|
}
|
|
2228
|
-
X([gt],
|
|
2248
|
+
X([gt], de), de.prototype.initModifierProperties = function(t, e) {
|
|
2229
2249
|
this.getValue = this.processKeys, this.amount = V.getProp(t, e.a, 0, null, this), this._isAnimated = !!this.amount.effectsSequence.length;
|
|
2230
|
-
},
|
|
2250
|
+
}, de.prototype.processPath = function(t, e) {
|
|
2231
2251
|
var i = e / 100, s = [0, 0], n = t._length, r = 0;
|
|
2232
2252
|
for (r = 0; r < n; r += 1)
|
|
2233
2253
|
s[0] += t.v[r][0], s[1] += t.v[r][1];
|
|
@@ -2238,7 +2258,7 @@ var si = { exports: {} };
|
|
|
2238
2258
|
for (r = 0; r < n; r += 1)
|
|
2239
2259
|
c = t.v[r][0] + (s[0] - t.v[r][0]) * i, h = t.v[r][1] + (s[1] - t.v[r][1]) * i, m = t.o[r][0] + (s[0] - t.o[r][0]) * -i, _ = t.o[r][1] + (s[1] - t.o[r][1]) * -i, M = t.i[r][0] + (s[0] - t.i[r][0]) * -i, p = t.i[r][1] + (s[1] - t.i[r][1]) * -i, o.setTripleAt(c, h, m, _, M, p, r);
|
|
2240
2260
|
return o;
|
|
2241
|
-
},
|
|
2261
|
+
}, de.prototype.processShapes = function(t) {
|
|
2242
2262
|
var e, i, s = this.shapes.length, n, r, o = this.amount.v;
|
|
2243
2263
|
if (o !== 0) {
|
|
2244
2264
|
var c, h;
|
|
@@ -2251,7 +2271,7 @@ var si = { exports: {} };
|
|
|
2251
2271
|
}
|
|
2252
2272
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
2253
2273
|
};
|
|
2254
|
-
var
|
|
2274
|
+
var Je = function() {
|
|
2255
2275
|
var t = [0, 0];
|
|
2256
2276
|
function e(h) {
|
|
2257
2277
|
var m = this._mdf;
|
|
@@ -2335,29 +2355,29 @@ var si = { exports: {} };
|
|
|
2335
2355
|
getTransformProperty: c
|
|
2336
2356
|
};
|
|
2337
2357
|
}();
|
|
2338
|
-
function
|
|
2358
|
+
function wt() {
|
|
2339
2359
|
}
|
|
2340
|
-
X([gt],
|
|
2341
|
-
this.getValue = this.processKeys, this.c = V.getProp(t, e.c, 0, null, this), this.o = V.getProp(t, e.o, 0, null, this), this.tr =
|
|
2342
|
-
},
|
|
2360
|
+
X([gt], wt), wt.prototype.initModifierProperties = function(t, e) {
|
|
2361
|
+
this.getValue = this.processKeys, this.c = V.getProp(t, e.c, 0, null, this), this.o = V.getProp(t, e.o, 0, null, this), this.tr = Je.getTransformProperty(t, e.tr, this), this.so = V.getProp(t, e.tr.so, 0, 0.01, this), this.eo = V.getProp(t, e.tr.eo, 0, 0.01, this), this.data = e, this.dynamicProperties.length || this.getValue(!0), this._isAnimated = !!this.dynamicProperties.length, this.pMatrix = new ot(), this.rMatrix = new ot(), this.sMatrix = new ot(), this.tMatrix = new ot(), this.matrix = new ot();
|
|
2362
|
+
}, wt.prototype.applyTransforms = function(t, e, i, s, n, r) {
|
|
2343
2363
|
var o = r ? -1 : 1, c = s.s.v[0] + (1 - s.s.v[0]) * (1 - n), h = s.s.v[1] + (1 - s.s.v[1]) * (1 - n);
|
|
2344
2364
|
t.translate(s.p.v[0] * o * n, s.p.v[1] * o * n, s.p.v[2]), e.translate(-s.a.v[0], -s.a.v[1], s.a.v[2]), e.rotate(-s.r.v * o * n), e.translate(s.a.v[0], s.a.v[1], s.a.v[2]), i.translate(-s.a.v[0], -s.a.v[1], s.a.v[2]), i.scale(r ? 1 / c : c, r ? 1 / h : h), i.translate(s.a.v[0], s.a.v[1], s.a.v[2]);
|
|
2345
|
-
},
|
|
2365
|
+
}, wt.prototype.init = function(t, e, i, s) {
|
|
2346
2366
|
for (this.elem = t, this.arr = e, this.pos = i, this.elemsData = s, this._currentCopies = 0, this._elements = [], this._groups = [], this.frameId = -1, this.initDynamicPropertyContainer(t), this.initModifierProperties(t, e[i]); i > 0; )
|
|
2347
2367
|
i -= 1, this._elements.unshift(e[i]);
|
|
2348
2368
|
this.dynamicProperties.length ? this.k = !0 : this.getValue(!0);
|
|
2349
|
-
},
|
|
2369
|
+
}, wt.prototype.resetElements = function(t) {
|
|
2350
2370
|
var e, i = t.length;
|
|
2351
2371
|
for (e = 0; e < i; e += 1)
|
|
2352
2372
|
t[e]._processed = !1, t[e].ty === "gr" && this.resetElements(t[e].it);
|
|
2353
|
-
},
|
|
2373
|
+
}, wt.prototype.cloneElements = function(t) {
|
|
2354
2374
|
var e = JSON.parse(JSON.stringify(t));
|
|
2355
2375
|
return this.resetElements(e), e;
|
|
2356
|
-
},
|
|
2376
|
+
}, wt.prototype.changeGroupRender = function(t, e) {
|
|
2357
2377
|
var i, s = t.length;
|
|
2358
2378
|
for (i = 0; i < s; i += 1)
|
|
2359
2379
|
t[i]._render = e, t[i].ty === "gr" && this.changeGroupRender(t[i].it, e);
|
|
2360
|
-
},
|
|
2380
|
+
}, wt.prototype.processShapes = function(t) {
|
|
2361
2381
|
var e, i, s, n, r, o = !1;
|
|
2362
2382
|
if (this._mdf || t) {
|
|
2363
2383
|
var c = Math.ceil(this.c.v);
|
|
@@ -2454,20 +2474,20 @@ var si = { exports: {} };
|
|
|
2454
2474
|
for (r = this._currentCopies, s = 0, n = 1; r; )
|
|
2455
2475
|
e = this.elemsData[s].it, i = e[e.length - 1].transform.mProps.v.props, e[e.length - 1].transform.mProps._mdf = !1, e[e.length - 1].transform.op._mdf = !1, r -= 1, s += n;
|
|
2456
2476
|
return o;
|
|
2457
|
-
},
|
|
2477
|
+
}, wt.prototype.addShape = function() {
|
|
2458
2478
|
};
|
|
2459
|
-
function
|
|
2479
|
+
function me() {
|
|
2460
2480
|
}
|
|
2461
|
-
X([gt],
|
|
2481
|
+
X([gt], me), me.prototype.initModifierProperties = function(t, e) {
|
|
2462
2482
|
this.getValue = this.processKeys, this.rd = V.getProp(t, e.r, 0, null, this), this._isAnimated = !!this.rd.effectsSequence.length;
|
|
2463
|
-
},
|
|
2483
|
+
}, me.prototype.processPath = function(t, e) {
|
|
2464
2484
|
var i = at.newElement();
|
|
2465
2485
|
i.c = t.c;
|
|
2466
2486
|
var s, n = t._length, r, o, c, h, m, _, M = 0, p, b, k, S, C, y;
|
|
2467
2487
|
for (s = 0; s < n; s += 1)
|
|
2468
|
-
r = t.v[s], c = t.o[s], o = t.i[s], r[0] === c[0] && r[1] === c[1] && r[0] === o[0] && r[1] === o[1] ? (s === 0 || s === n - 1) && !t.c ? (i.setTripleAt(r[0], r[1], c[0], c[1], o[0], o[1], M), M += 1) : (s === 0 ? h = t.v[n - 1] : h = t.v[s - 1], m = Math.sqrt(Math.pow(r[0] - h[0], 2) + Math.pow(r[1] - h[1], 2)), _ = m ? Math.min(m / 2, e) / m : 0, C = r[0] + (h[0] - r[0]) * _, p = C, y = r[1] - (r[1] - h[1]) * _, b = y, k = p - (p - r[0]) *
|
|
2488
|
+
r = t.v[s], c = t.o[s], o = t.i[s], r[0] === c[0] && r[1] === c[1] && r[0] === o[0] && r[1] === o[1] ? (s === 0 || s === n - 1) && !t.c ? (i.setTripleAt(r[0], r[1], c[0], c[1], o[0], o[1], M), M += 1) : (s === 0 ? h = t.v[n - 1] : h = t.v[s - 1], m = Math.sqrt(Math.pow(r[0] - h[0], 2) + Math.pow(r[1] - h[1], 2)), _ = m ? Math.min(m / 2, e) / m : 0, C = r[0] + (h[0] - r[0]) * _, p = C, y = r[1] - (r[1] - h[1]) * _, b = y, k = p - (p - r[0]) * Bt, S = b - (b - r[1]) * Bt, i.setTripleAt(p, b, k, S, C, y, M), M += 1, s === n - 1 ? h = t.v[0] : h = t.v[s + 1], m = Math.sqrt(Math.pow(r[0] - h[0], 2) + Math.pow(r[1] - h[1], 2)), _ = m ? Math.min(m / 2, e) / m : 0, k = r[0] + (h[0] - r[0]) * _, p = k, S = r[1] + (h[1] - r[1]) * _, b = S, C = p - (p - r[0]) * Bt, y = b - (b - r[1]) * Bt, i.setTripleAt(p, b, k, S, C, y, M), M += 1) : (i.setTripleAt(t.v[s][0], t.v[s][1], t.o[s][0], t.o[s][1], t.i[s][0], t.i[s][1], M), M += 1);
|
|
2469
2489
|
return i;
|
|
2470
|
-
},
|
|
2490
|
+
}, me.prototype.processShapes = function(t) {
|
|
2471
2491
|
var e, i, s = this.shapes.length, n, r, o = this.rd.v;
|
|
2472
2492
|
if (o !== 0) {
|
|
2473
2493
|
var c, h;
|
|
@@ -2480,17 +2500,17 @@ var si = { exports: {} };
|
|
|
2480
2500
|
}
|
|
2481
2501
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
2482
2502
|
};
|
|
2483
|
-
function
|
|
2503
|
+
function ze(t, e) {
|
|
2484
2504
|
return Math.abs(t - e) * 1e5 <= Math.min(Math.abs(t), Math.abs(e));
|
|
2485
2505
|
}
|
|
2486
|
-
function
|
|
2506
|
+
function Qe(t) {
|
|
2487
2507
|
return Math.abs(t) <= 1e-5;
|
|
2488
2508
|
}
|
|
2489
|
-
function
|
|
2509
|
+
function Ii(t, e, i) {
|
|
2490
2510
|
return t * (1 - i) + e * i;
|
|
2491
2511
|
}
|
|
2492
|
-
function
|
|
2493
|
-
return [
|
|
2512
|
+
function zt(t, e, i) {
|
|
2513
|
+
return [Ii(t[0], e[0], i), Ii(t[1], e[1], i)];
|
|
2494
2514
|
}
|
|
2495
2515
|
function Ds(t, e, i) {
|
|
2496
2516
|
if (t === 0)
|
|
@@ -2504,15 +2524,15 @@ var si = { exports: {} };
|
|
|
2504
2524
|
var r = Math.sqrt(s) / (2 * t);
|
|
2505
2525
|
return [n - r, n + r];
|
|
2506
2526
|
}
|
|
2507
|
-
function
|
|
2527
|
+
function Li(t, e, i, s) {
|
|
2508
2528
|
return [-t + 3 * e - 3 * i + s, 3 * t - 6 * e + 3 * i, -3 * t + 3 * e, t];
|
|
2509
2529
|
}
|
|
2510
|
-
function
|
|
2530
|
+
function Vi(t) {
|
|
2511
2531
|
return new U(t, t, t, t, !1);
|
|
2512
2532
|
}
|
|
2513
2533
|
function U(t, e, i, s, n) {
|
|
2514
|
-
n &&
|
|
2515
|
-
var r =
|
|
2534
|
+
n && ae(t, e) && (e = zt(t, s, 1 / 3)), n && ae(i, s) && (i = zt(t, s, 2 / 3));
|
|
2535
|
+
var r = Li(t[0], e[0], i[0], s[0]), o = Li(t[1], e[1], i[1], s[1]);
|
|
2516
2536
|
this.a = [r[0], o[0]], this.b = [r[1], o[1]], this.c = [r[2], o[2]], this.d = [r[3], o[3]], this.points = [t, e, i, s];
|
|
2517
2537
|
}
|
|
2518
2538
|
U.prototype.point = function(t) {
|
|
@@ -2527,24 +2547,24 @@ var si = { exports: {} };
|
|
|
2527
2547
|
return Math.atan2(e[0], e[1]);
|
|
2528
2548
|
}, U.prototype.inflectionPoints = function() {
|
|
2529
2549
|
var t = this.a[1] * this.b[0] - this.a[0] * this.b[1];
|
|
2530
|
-
if (
|
|
2550
|
+
if (Qe(t))
|
|
2531
2551
|
return [];
|
|
2532
2552
|
var e = -0.5 * (this.a[1] * this.c[0] - this.a[0] * this.c[1]) / t, i = e * e - 1 / 3 * (this.b[1] * this.c[0] - this.b[0] * this.c[1]) / t;
|
|
2533
2553
|
if (i < 0)
|
|
2534
2554
|
return [];
|
|
2535
2555
|
var s = Math.sqrt(i);
|
|
2536
|
-
return
|
|
2556
|
+
return Qe(s) ? s > 0 && s < 1 ? [e] : [] : [e - s, e + s].filter(function(n) {
|
|
2537
2557
|
return n > 0 && n < 1;
|
|
2538
2558
|
});
|
|
2539
2559
|
}, U.prototype.split = function(t) {
|
|
2540
2560
|
if (t <= 0)
|
|
2541
|
-
return [
|
|
2561
|
+
return [Vi(this.points[0]), this];
|
|
2542
2562
|
if (t >= 1)
|
|
2543
|
-
return [this,
|
|
2544
|
-
var e =
|
|
2563
|
+
return [this, Vi(this.points[this.points.length - 1])];
|
|
2564
|
+
var e = zt(this.points[0], this.points[1], t), i = zt(this.points[1], this.points[2], t), s = zt(this.points[2], this.points[3], t), n = zt(e, i, t), r = zt(i, s, t), o = zt(n, r, t);
|
|
2545
2565
|
return [new U(this.points[0], e, n, o, !0), new U(o, r, s, this.points[3], !0)];
|
|
2546
2566
|
};
|
|
2547
|
-
function
|
|
2567
|
+
function Ri(t, e) {
|
|
2548
2568
|
var i = t.points[0][e], s = t.points[t.points.length - 1][e];
|
|
2549
2569
|
if (i > s) {
|
|
2550
2570
|
var n = s;
|
|
@@ -2562,8 +2582,8 @@ var si = { exports: {} };
|
|
|
2562
2582
|
}
|
|
2563
2583
|
U.prototype.bounds = function() {
|
|
2564
2584
|
return {
|
|
2565
|
-
x:
|
|
2566
|
-
y:
|
|
2585
|
+
x: Ri(this, 0),
|
|
2586
|
+
y: Ri(this, 1)
|
|
2567
2587
|
};
|
|
2568
2588
|
}, U.prototype.boundingBox = function() {
|
|
2569
2589
|
var t = this.bounds();
|
|
@@ -2578,7 +2598,7 @@ var si = { exports: {} };
|
|
|
2578
2598
|
cy: (t.y.max + t.y.min) / 2
|
|
2579
2599
|
};
|
|
2580
2600
|
};
|
|
2581
|
-
function
|
|
2601
|
+
function je(t, e, i) {
|
|
2582
2602
|
var s = t.boundingBox();
|
|
2583
2603
|
return {
|
|
2584
2604
|
cx: s.cx,
|
|
@@ -2591,27 +2611,27 @@ var si = { exports: {} };
|
|
|
2591
2611
|
t2: i
|
|
2592
2612
|
};
|
|
2593
2613
|
}
|
|
2594
|
-
function
|
|
2614
|
+
function Oi(t) {
|
|
2595
2615
|
var e = t.bez.split(0.5);
|
|
2596
|
-
return [
|
|
2616
|
+
return [je(e[0], t.t1, t.t), je(e[1], t.t, t.t2)];
|
|
2597
2617
|
}
|
|
2598
2618
|
function Ws(t, e) {
|
|
2599
2619
|
return Math.abs(t.cx - e.cx) * 2 < t.width + e.width && Math.abs(t.cy - e.cy) * 2 < t.height + e.height;
|
|
2600
2620
|
}
|
|
2601
|
-
function
|
|
2621
|
+
function ge(t, e, i, s, n, r) {
|
|
2602
2622
|
if (Ws(t, e)) {
|
|
2603
2623
|
if (i >= r || t.width <= s && t.height <= s && e.width <= s && e.height <= s) {
|
|
2604
2624
|
n.push([t.t, e.t]);
|
|
2605
2625
|
return;
|
|
2606
2626
|
}
|
|
2607
|
-
var o =
|
|
2608
|
-
|
|
2627
|
+
var o = Oi(t), c = Oi(e);
|
|
2628
|
+
ge(o[0], c[0], i + 1, s, n, r), ge(o[0], c[1], i + 1, s, n, r), ge(o[1], c[0], i + 1, s, n, r), ge(o[1], c[1], i + 1, s, n, r);
|
|
2609
2629
|
}
|
|
2610
2630
|
}
|
|
2611
2631
|
U.prototype.intersections = function(t, e, i) {
|
|
2612
2632
|
e === void 0 && (e = 2), i === void 0 && (i = 7);
|
|
2613
2633
|
var s = [];
|
|
2614
|
-
return
|
|
2634
|
+
return ge(je(this, 0, 1), je(t, 0, 1), 0, e, s, i), s;
|
|
2615
2635
|
}, U.shapeSegment = function(t, e) {
|
|
2616
2636
|
var i = (e + 1) % t.length();
|
|
2617
2637
|
return new U(t.v[e], t.o[e], t.i[i], t.v[i], !0);
|
|
@@ -2619,28 +2639,28 @@ var si = { exports: {} };
|
|
|
2619
2639
|
var i = (e + 1) % t.length();
|
|
2620
2640
|
return new U(t.v[i], t.i[i], t.o[e], t.v[e], !0);
|
|
2621
2641
|
};
|
|
2622
|
-
function
|
|
2642
|
+
function $e(t, e) {
|
|
2623
2643
|
return [t[1] * e[2] - t[2] * e[1], t[2] * e[0] - t[0] * e[2], t[0] * e[1] - t[1] * e[0]];
|
|
2624
2644
|
}
|
|
2625
|
-
function
|
|
2626
|
-
var n = [t[0], t[1], 1], r = [e[0], e[1], 1], o = [i[0], i[1], 1], c = [s[0], s[1], 1], h =
|
|
2627
|
-
return
|
|
2645
|
+
function qe(t, e, i, s) {
|
|
2646
|
+
var n = [t[0], t[1], 1], r = [e[0], e[1], 1], o = [i[0], i[1], 1], c = [s[0], s[1], 1], h = $e($e(n, r), $e(o, c));
|
|
2647
|
+
return Qe(h[2]) ? null : [h[0] / h[2], h[1] / h[2]];
|
|
2628
2648
|
}
|
|
2629
|
-
function
|
|
2649
|
+
function ne(t, e, i) {
|
|
2630
2650
|
return [t[0] + Math.cos(e) * i, t[1] - Math.sin(e) * i];
|
|
2631
2651
|
}
|
|
2632
|
-
function
|
|
2652
|
+
function ti(t, e) {
|
|
2633
2653
|
return Math.hypot(t[0] - e[0], t[1] - e[1]);
|
|
2634
2654
|
}
|
|
2635
|
-
function
|
|
2636
|
-
return
|
|
2655
|
+
function ae(t, e) {
|
|
2656
|
+
return ze(t[0], e[0]) && ze(t[1], e[1]);
|
|
2637
2657
|
}
|
|
2638
|
-
function
|
|
2658
|
+
function ye() {
|
|
2639
2659
|
}
|
|
2640
|
-
X([gt],
|
|
2660
|
+
X([gt], ye), ye.prototype.initModifierProperties = function(t, e) {
|
|
2641
2661
|
this.getValue = this.processKeys, this.amplitude = V.getProp(t, e.s, 0, null, this), this.frequency = V.getProp(t, e.r, 0, null, this), this.pointsType = V.getProp(t, e.pt, 0, null, this), this._isAnimated = this.amplitude.effectsSequence.length !== 0 || this.frequency.effectsSequence.length !== 0 || this.pointsType.effectsSequence.length !== 0;
|
|
2642
2662
|
};
|
|
2643
|
-
function
|
|
2663
|
+
function Bi(t, e, i, s, n, r, o) {
|
|
2644
2664
|
var c = i - Math.PI / 2, h = i + Math.PI / 2, m = e[0] + Math.cos(i) * s * n, _ = e[1] - Math.sin(i) * s * n;
|
|
2645
2665
|
t.setTripleAt(m, _, m + Math.cos(c) * r, _ - Math.sin(c) * r, m + Math.cos(h) * o, _ - Math.sin(h) * o, t.length());
|
|
2646
2666
|
}
|
|
@@ -2652,27 +2672,27 @@ var si = { exports: {} };
|
|
|
2652
2672
|
var i = e === 0 ? t.length() - 1 : e - 1, s = (e + 1) % t.length(), n = t.v[i], r = t.v[s], o = Gs(n, r);
|
|
2653
2673
|
return Math.atan2(0, 1) - Math.atan2(o[1], o[0]);
|
|
2654
2674
|
}
|
|
2655
|
-
function
|
|
2675
|
+
function Ni(t, e, i, s, n, r, o) {
|
|
2656
2676
|
var c = Xs(e, i), h = e.v[i % e._length], m = e.v[i === 0 ? e._length - 1 : i - 1], _ = e.v[(i + 1) % e._length], M = r === 2 ? Math.sqrt(Math.pow(h[0] - m[0], 2) + Math.pow(h[1] - m[1], 2)) : 0, p = r === 2 ? Math.sqrt(Math.pow(h[0] - _[0], 2) + Math.pow(h[1] - _[1], 2)) : 0;
|
|
2657
|
-
|
|
2677
|
+
Bi(t, e.v[i % e._length], c, o, s, p / ((n + 1) * 2), M / ((n + 1) * 2));
|
|
2658
2678
|
}
|
|
2659
2679
|
function Ys(t, e, i, s, n, r) {
|
|
2660
2680
|
for (var o = 0; o < s; o += 1) {
|
|
2661
2681
|
var c = (o + 1) / (s + 1), h = n === 2 ? Math.sqrt(Math.pow(e.points[3][0] - e.points[0][0], 2) + Math.pow(e.points[3][1] - e.points[0][1], 2)) : 0, m = e.normalAngle(c), _ = e.point(c);
|
|
2662
|
-
|
|
2682
|
+
Bi(t, _, m, r, i, h / ((s + 1) * 2), h / ((s + 1) * 2)), r = -r;
|
|
2663
2683
|
}
|
|
2664
2684
|
return r;
|
|
2665
2685
|
}
|
|
2666
|
-
|
|
2686
|
+
ye.prototype.processPath = function(t, e, i, s) {
|
|
2667
2687
|
var n = t._length, r = at.newElement();
|
|
2668
2688
|
if (r.c = t.c, t.c || (n -= 1), n === 0)
|
|
2669
2689
|
return r;
|
|
2670
2690
|
var o = -1, c = U.shapeSegment(t, 0);
|
|
2671
|
-
|
|
2691
|
+
Ni(r, t, 0, e, i, s, o);
|
|
2672
2692
|
for (var h = 0; h < n; h += 1)
|
|
2673
|
-
o = Ys(r, c, e, i, s, -o), h === n - 1 && !t.c ? c = null : c = U.shapeSegment(t, (h + 1) % n),
|
|
2693
|
+
o = Ys(r, c, e, i, s, -o), h === n - 1 && !t.c ? c = null : c = U.shapeSegment(t, (h + 1) % n), Ni(r, t, h + 1, e, i, s, o);
|
|
2674
2694
|
return r;
|
|
2675
|
-
},
|
|
2695
|
+
}, ye.prototype.processShapes = function(t) {
|
|
2676
2696
|
var e, i, s = this.shapes.length, n, r, o = this.amplitude.v, c = Math.max(0, Math.round(this.frequency.v)), h = this.pointsType.v;
|
|
2677
2697
|
if (o !== 0) {
|
|
2678
2698
|
var m, _;
|
|
@@ -2685,76 +2705,76 @@ var si = { exports: {} };
|
|
|
2685
2705
|
}
|
|
2686
2706
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
2687
2707
|
};
|
|
2688
|
-
function
|
|
2708
|
+
function ei(t, e, i) {
|
|
2689
2709
|
var s = Math.atan2(e[0] - t[0], e[1] - t[1]);
|
|
2690
|
-
return [
|
|
2710
|
+
return [ne(t, s, i), ne(e, s, i)];
|
|
2691
2711
|
}
|
|
2692
|
-
function
|
|
2712
|
+
function oe(t, e) {
|
|
2693
2713
|
var i, s, n, r, o, c, h;
|
|
2694
|
-
h =
|
|
2695
|
-
var m =
|
|
2714
|
+
h = ei(t.points[0], t.points[1], e), i = h[0], s = h[1], h = ei(t.points[1], t.points[2], e), n = h[0], r = h[1], h = ei(t.points[2], t.points[3], e), o = h[0], c = h[1];
|
|
2715
|
+
var m = qe(i, s, n, r);
|
|
2696
2716
|
m === null && (m = s);
|
|
2697
|
-
var _ =
|
|
2717
|
+
var _ = qe(o, c, n, r);
|
|
2698
2718
|
return _ === null && (_ = o), new U(i, m, _, c);
|
|
2699
2719
|
}
|
|
2700
|
-
function
|
|
2720
|
+
function zi(t, e, i, s, n) {
|
|
2701
2721
|
var r = e.points[3], o = i.points[0];
|
|
2702
|
-
if (s === 3 ||
|
|
2722
|
+
if (s === 3 || ae(r, o))
|
|
2703
2723
|
return r;
|
|
2704
2724
|
if (s === 2) {
|
|
2705
|
-
var c = -e.tangentAngle(1), h = -i.tangentAngle(0) + Math.PI, m =
|
|
2706
|
-
return t.setXYAt(M[0], M[1], "o", t.length() - 1), M =
|
|
2725
|
+
var c = -e.tangentAngle(1), h = -i.tangentAngle(0) + Math.PI, m = qe(r, ne(r, c + Math.PI / 2, 100), o, ne(o, c + Math.PI / 2, 100)), _ = m ? ti(m, r) : ti(r, o) / 2, M = ne(r, c, 2 * _ * Bt);
|
|
2726
|
+
return t.setXYAt(M[0], M[1], "o", t.length() - 1), M = ne(o, h, 2 * _ * Bt), t.setTripleAt(o[0], o[1], o[0], o[1], M[0], M[1], t.length()), o;
|
|
2707
2727
|
}
|
|
2708
|
-
var p =
|
|
2709
|
-
return k &&
|
|
2728
|
+
var p = ae(r, e.points[2]) ? e.points[0] : e.points[2], b = ae(o, i.points[1]) ? i.points[3] : i.points[1], k = qe(p, r, o, b);
|
|
2729
|
+
return k && ti(k, r) < n ? (t.setTripleAt(k[0], k[1], k[0], k[1], k[0], k[1], t.length()), k) : r;
|
|
2710
2730
|
}
|
|
2711
|
-
function
|
|
2731
|
+
function ji(t, e) {
|
|
2712
2732
|
var i = t.intersections(e);
|
|
2713
|
-
return i.length &&
|
|
2733
|
+
return i.length && ze(i[0][0], 1) && i.shift(), i.length ? i[0] : null;
|
|
2714
2734
|
}
|
|
2715
|
-
function
|
|
2716
|
-
var i = t.slice(), s = e.slice(), n =
|
|
2717
|
-
return n && (i[t.length - 1] = t[t.length - 1].split(n[0])[0], s[0] = e[0].split(n[1])[1]), t.length > 1 && e.length > 1 && (n =
|
|
2735
|
+
function qi(t, e) {
|
|
2736
|
+
var i = t.slice(), s = e.slice(), n = ji(t[t.length - 1], e[0]);
|
|
2737
|
+
return n && (i[t.length - 1] = t[t.length - 1].split(n[0])[0], s[0] = e[0].split(n[1])[1]), t.length > 1 && e.length > 1 && (n = ji(t[0], e[e.length - 1]), n) ? [[t[0].split(n[0])[0]], [e[e.length - 1].split(n[1])[1]]] : [i, s];
|
|
2718
2738
|
}
|
|
2719
2739
|
function Hs(t) {
|
|
2720
2740
|
for (var e, i = 1; i < t.length; i += 1)
|
|
2721
|
-
e =
|
|
2722
|
-
return t.length > 1 && (e =
|
|
2741
|
+
e = qi(t[i - 1], t[i]), t[i - 1] = e[0], t[i] = e[1];
|
|
2742
|
+
return t.length > 1 && (e = qi(t[t.length - 1], t[0]), t[t.length - 1] = e[0], t[0] = e[1]), t;
|
|
2723
2743
|
}
|
|
2724
|
-
function
|
|
2744
|
+
function Di(t, e) {
|
|
2725
2745
|
var i = t.inflectionPoints(), s, n, r, o;
|
|
2726
2746
|
if (i.length === 0)
|
|
2727
|
-
return [
|
|
2728
|
-
if (i.length === 1 ||
|
|
2729
|
-
return r = t.split(i[0]), s = r[0], n = r[1], [
|
|
2747
|
+
return [oe(t, e)];
|
|
2748
|
+
if (i.length === 1 || ze(i[1], 1))
|
|
2749
|
+
return r = t.split(i[0]), s = r[0], n = r[1], [oe(s, e), oe(n, e)];
|
|
2730
2750
|
r = t.split(i[0]), s = r[0];
|
|
2731
2751
|
var c = (i[1] - i[0]) / (1 - i[0]);
|
|
2732
|
-
return r = r[1].split(c), o = r[0], n = r[1], [
|
|
2752
|
+
return r = r[1].split(c), o = r[0], n = r[1], [oe(s, e), oe(o, e), oe(n, e)];
|
|
2733
2753
|
}
|
|
2734
|
-
function
|
|
2754
|
+
function _e() {
|
|
2735
2755
|
}
|
|
2736
|
-
X([gt],
|
|
2756
|
+
X([gt], _e), _e.prototype.initModifierProperties = function(t, e) {
|
|
2737
2757
|
this.getValue = this.processKeys, this.amount = V.getProp(t, e.a, 0, null, this), this.miterLimit = V.getProp(t, e.ml, 0, null, this), this.lineJoin = e.lj, this._isAnimated = this.amount.effectsSequence.length !== 0;
|
|
2738
|
-
},
|
|
2758
|
+
}, _e.prototype.processPath = function(t, e, i, s) {
|
|
2739
2759
|
var n = at.newElement();
|
|
2740
2760
|
n.c = t.c;
|
|
2741
2761
|
var r = t.length();
|
|
2742
2762
|
t.c || (r -= 1);
|
|
2743
2763
|
var o, c, h, m = [];
|
|
2744
2764
|
for (o = 0; o < r; o += 1)
|
|
2745
|
-
h = U.shapeSegment(t, o), m.push(
|
|
2765
|
+
h = U.shapeSegment(t, o), m.push(Di(h, e));
|
|
2746
2766
|
if (!t.c)
|
|
2747
2767
|
for (o = r - 1; o >= 0; o -= 1)
|
|
2748
|
-
h = U.shapeSegmentInverted(t, o), m.push(
|
|
2768
|
+
h = U.shapeSegmentInverted(t, o), m.push(Di(h, e));
|
|
2749
2769
|
m = Hs(m);
|
|
2750
2770
|
var _ = null, M = null;
|
|
2751
2771
|
for (o = 0; o < m.length; o += 1) {
|
|
2752
2772
|
var p = m[o];
|
|
2753
|
-
for (M && (_ =
|
|
2754
|
-
h = p[c], _ &&
|
|
2773
|
+
for (M && (_ = zi(n, M, p[0], i, s)), M = p[p.length - 1], c = 0; c < p.length; c += 1)
|
|
2774
|
+
h = p[c], _ && ae(h.points[0], _) ? n.setXYAt(h.points[1][0], h.points[1][1], "o", n.length() - 1) : n.setTripleAt(h.points[0][0], h.points[0][1], h.points[1][0], h.points[1][1], h.points[0][0], h.points[0][1], n.length()), n.setTripleAt(h.points[3][0], h.points[3][1], h.points[3][0], h.points[3][1], h.points[2][0], h.points[2][1], n.length()), _ = h.points[3];
|
|
2755
2775
|
}
|
|
2756
|
-
return m.length &&
|
|
2757
|
-
},
|
|
2776
|
+
return m.length && zi(n, M, m[0][0], i, s), n;
|
|
2777
|
+
}, _e.prototype.processShapes = function(t) {
|
|
2758
2778
|
var e, i, s = this.shapes.length, n, r, o = this.amount.v, c = this.miterLimit.v, h = this.lineJoin;
|
|
2759
2779
|
if (o !== 0) {
|
|
2760
2780
|
var m, _;
|
|
@@ -2767,7 +2787,7 @@ var si = { exports: {} };
|
|
|
2767
2787
|
}
|
|
2768
2788
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
2769
2789
|
};
|
|
2770
|
-
function
|
|
2790
|
+
function Wi(t) {
|
|
2771
2791
|
for (var e = t.fStyle ? t.fStyle.split(" ") : [], i = "normal", s = "normal", n = e.length, r, o = 0; o < n; o += 1)
|
|
2772
2792
|
switch (r = e[o].toLowerCase(), r) {
|
|
2773
2793
|
case "italic":
|
|
@@ -2796,7 +2816,7 @@ var si = { exports: {} };
|
|
|
2796
2816
|
weight: t.fWeight || i
|
|
2797
2817
|
};
|
|
2798
2818
|
}
|
|
2799
|
-
var
|
|
2819
|
+
var $t = function() {
|
|
2800
2820
|
var t = 5e3, e = {
|
|
2801
2821
|
w: 0,
|
|
2802
2822
|
size: 0,
|
|
@@ -2814,9 +2834,9 @@ var si = { exports: {} };
|
|
|
2814
2834
|
return E.join(",");
|
|
2815
2835
|
}
|
|
2816
2836
|
function b(v, P) {
|
|
2817
|
-
var a =
|
|
2837
|
+
var a = Ot("span");
|
|
2818
2838
|
a.setAttribute("aria-hidden", !0), a.style.fontFamily = P;
|
|
2819
|
-
var l =
|
|
2839
|
+
var l = Ot("span");
|
|
2820
2840
|
l.innerText = "giItT1WQy@!-/#", a.style.position = "absolute", a.style.left = "-10000px", a.style.top = "-10000px", a.style.fontSize = "300px", a.style.fontVariant = "normal", a.style.fontStyle = "normal", a.style.fontWeight = "normal", a.style.letterSpacing = "0", a.appendChild(l), document.body.appendChild(a);
|
|
2821
2841
|
var E = l.offsetWidth;
|
|
2822
2842
|
return l.style.fontFamily = p(v) + ", " + P, {
|
|
@@ -2832,7 +2852,7 @@ var si = { exports: {} };
|
|
|
2832
2852
|
E !== 0 && Date.now() - this.initTime < t ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10);
|
|
2833
2853
|
}
|
|
2834
2854
|
function S(v, P) {
|
|
2835
|
-
var a = document.body && P ? "svg" : "canvas", l, E =
|
|
2855
|
+
var a = document.body && P ? "svg" : "canvas", l, E = Wi(v);
|
|
2836
2856
|
if (a === "svg") {
|
|
2837
2857
|
var w = W("text");
|
|
2838
2858
|
w.style.fontSize = "100px", w.setAttribute("font-family", v.fFamily), w.setAttribute("font-style", E.style), w.setAttribute("font-weight", E.weight), w.textContent = "1", v.fClass ? (w.style.fontFamily = "inherit", w.setAttribute("class", v.fClass)) : w.style.fontFamily = v.fFamily, P.appendChild(w), l = w;
|
|
@@ -2869,21 +2889,21 @@ var si = { exports: {} };
|
|
|
2869
2889
|
a[l].loaded = !0, w -= 1;
|
|
2870
2890
|
else if (a[l].fOrigin === "p" || a[l].origin === 3) {
|
|
2871
2891
|
if (j = document.querySelectorAll('style[f-forigin="p"][f-family="' + a[l].fFamily + '"], style[f-origin="3"][f-family="' + a[l].fFamily + '"]'), j.length > 0 && (R = !1), R) {
|
|
2872
|
-
var Y =
|
|
2892
|
+
var Y = Ot("style");
|
|
2873
2893
|
Y.setAttribute("f-forigin", a[l].fOrigin), Y.setAttribute("f-origin", a[l].origin), Y.setAttribute("f-family", a[l].fFamily), Y.type = "text/css", Y.innerText = "@font-face {font-family: " + a[l].fFamily + "; font-style: normal; src: url('" + a[l].fPath + "');}", P.appendChild(Y);
|
|
2874
2894
|
}
|
|
2875
2895
|
} else if (a[l].fOrigin === "g" || a[l].origin === 1) {
|
|
2876
2896
|
for (j = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), D = 0; D < j.length; D += 1)
|
|
2877
2897
|
j[D].href.indexOf(a[l].fPath) !== -1 && (R = !1);
|
|
2878
2898
|
if (R) {
|
|
2879
|
-
var H =
|
|
2899
|
+
var H = Ot("link");
|
|
2880
2900
|
H.setAttribute("f-forigin", a[l].fOrigin), H.setAttribute("f-origin", a[l].origin), H.type = "text/css", H.rel = "stylesheet", H.href = a[l].fPath, document.body.appendChild(H);
|
|
2881
2901
|
}
|
|
2882
2902
|
} else if (a[l].fOrigin === "t" || a[l].origin === 2) {
|
|
2883
2903
|
for (j = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), D = 0; D < j.length; D += 1)
|
|
2884
2904
|
a[l].fPath === j[D].src && (R = !1);
|
|
2885
2905
|
if (R) {
|
|
2886
|
-
var $ =
|
|
2906
|
+
var $ = Ot("link");
|
|
2887
2907
|
$.setAttribute("f-forigin", a[l].fOrigin), $.setAttribute("f-origin", a[l].origin), $.setAttribute("rel", "stylesheet"), $.setAttribute("href", a[l].fPath), P.appendChild($);
|
|
2888
2908
|
}
|
|
2889
2909
|
}
|
|
@@ -2988,18 +3008,18 @@ var si = { exports: {} };
|
|
|
2988
3008
|
};
|
|
2989
3009
|
return O.prototype = F, O;
|
|
2990
3010
|
}();
|
|
2991
|
-
function
|
|
3011
|
+
function Gi(t) {
|
|
2992
3012
|
this.animationData = t;
|
|
2993
3013
|
}
|
|
2994
|
-
|
|
3014
|
+
Gi.prototype.getProp = function(t) {
|
|
2995
3015
|
return this.animationData.slots && this.animationData.slots[t.sid] ? Object.assign(t, this.animationData.slots[t.sid].p) : t;
|
|
2996
3016
|
};
|
|
2997
3017
|
function Zs(t) {
|
|
2998
|
-
return new
|
|
3018
|
+
return new Gi(t);
|
|
2999
3019
|
}
|
|
3000
|
-
function
|
|
3020
|
+
function De() {
|
|
3001
3021
|
}
|
|
3002
|
-
|
|
3022
|
+
De.prototype = {
|
|
3003
3023
|
initRenderable: function() {
|
|
3004
3024
|
this.isInRange = !1, this.hidden = !1, this.isTransparent = !1, this.renderableComponents = [];
|
|
3005
3025
|
},
|
|
@@ -3049,7 +3069,7 @@ var si = { exports: {} };
|
|
|
3049
3069
|
};
|
|
3050
3070
|
}
|
|
3051
3071
|
};
|
|
3052
|
-
var
|
|
3072
|
+
var ii = function() {
|
|
3053
3073
|
var t = {
|
|
3054
3074
|
0: "source-over",
|
|
3055
3075
|
1: "multiply",
|
|
@@ -3096,17 +3116,17 @@ var si = { exports: {} };
|
|
|
3096
3116
|
function ir() {
|
|
3097
3117
|
this.p = {};
|
|
3098
3118
|
}
|
|
3099
|
-
function
|
|
3119
|
+
function Xi(t, e) {
|
|
3100
3120
|
var i = t.ef || [];
|
|
3101
3121
|
this.effectElements = [];
|
|
3102
3122
|
var s, n = i.length, r;
|
|
3103
3123
|
for (s = 0; s < n; s += 1)
|
|
3104
|
-
r = new
|
|
3124
|
+
r = new be(i[s], e), this.effectElements.push(r);
|
|
3105
3125
|
}
|
|
3106
|
-
function
|
|
3126
|
+
function be(t, e) {
|
|
3107
3127
|
this.init(t, e);
|
|
3108
3128
|
}
|
|
3109
|
-
X([rt],
|
|
3129
|
+
X([rt], be), be.prototype.getValue = be.prototype.iterateDynamicProperties, be.prototype.init = function(t, e) {
|
|
3110
3130
|
this.data = t, this.effectElements = [], this.initDynamicPropertyContainer(e);
|
|
3111
3131
|
var i, s = this.data.ef.length, n, r = this.data.ef;
|
|
3112
3132
|
for (i = 0; i < s; i += 1) {
|
|
@@ -3134,7 +3154,7 @@ var si = { exports: {} };
|
|
|
3134
3154
|
n = new tr(r[i], e, this);
|
|
3135
3155
|
break;
|
|
3136
3156
|
case 5:
|
|
3137
|
-
n = new
|
|
3157
|
+
n = new Xi(r[i], e);
|
|
3138
3158
|
break;
|
|
3139
3159
|
default:
|
|
3140
3160
|
n = new ir(r[i]);
|
|
@@ -3143,9 +3163,9 @@ var si = { exports: {} };
|
|
|
3143
3163
|
n && this.effectElements.push(n);
|
|
3144
3164
|
}
|
|
3145
3165
|
};
|
|
3146
|
-
function
|
|
3166
|
+
function jt() {
|
|
3147
3167
|
}
|
|
3148
|
-
|
|
3168
|
+
jt.prototype = {
|
|
3149
3169
|
checkMasks: function() {
|
|
3150
3170
|
if (!this.data.hasMask)
|
|
3151
3171
|
return !1;
|
|
@@ -3159,11 +3179,11 @@ var si = { exports: {} };
|
|
|
3159
3179
|
initExpressions: function() {
|
|
3160
3180
|
},
|
|
3161
3181
|
setBlendMode: function() {
|
|
3162
|
-
var e =
|
|
3182
|
+
var e = ii(this.data.bm), i = this.baseElement || this.layerElement;
|
|
3163
3183
|
i.style["mix-blend-mode"] = e;
|
|
3164
3184
|
},
|
|
3165
3185
|
initBaseData: function(e, i, s) {
|
|
3166
|
-
this.globalData = i, this.comp = s, this.data = e, this.layerId = ft(), this.data.sr || (this.data.sr = 1), this.effectsManager = new
|
|
3186
|
+
this.globalData = i, this.comp = s, this.data = e, this.layerId = ft(), this.data.sr || (this.data.sr = 1), this.effectsManager = new Xi(this.data, this, this.dynamicProperties);
|
|
3167
3187
|
},
|
|
3168
3188
|
getType: function() {
|
|
3169
3189
|
return this.type;
|
|
@@ -3171,9 +3191,9 @@ var si = { exports: {} };
|
|
|
3171
3191
|
sourceRectAtTime: function() {
|
|
3172
3192
|
}
|
|
3173
3193
|
};
|
|
3174
|
-
function
|
|
3194
|
+
function qt() {
|
|
3175
3195
|
}
|
|
3176
|
-
|
|
3196
|
+
qt.prototype = {
|
|
3177
3197
|
/**
|
|
3178
3198
|
* @function
|
|
3179
3199
|
* Initializes frame related properties.
|
|
@@ -3201,16 +3221,16 @@ var si = { exports: {} };
|
|
|
3201
3221
|
this.dynamicProperties.indexOf(e) === -1 && this.dynamicProperties.push(e);
|
|
3202
3222
|
}
|
|
3203
3223
|
};
|
|
3204
|
-
function
|
|
3224
|
+
function Dt(t, e, i) {
|
|
3205
3225
|
this.initFrame(), this.initRenderable(), this.assetData = e.getAssetData(t.refId), this.footageData = e.imageLoader.getAsset(this.assetData), this.initBaseData(t, e, i);
|
|
3206
3226
|
}
|
|
3207
|
-
|
|
3208
|
-
}, X([
|
|
3227
|
+
Dt.prototype.prepareFrame = function() {
|
|
3228
|
+
}, X([De, jt, qt], Dt), Dt.prototype.getBaseElement = function() {
|
|
3209
3229
|
return null;
|
|
3210
|
-
},
|
|
3211
|
-
},
|
|
3212
|
-
},
|
|
3213
|
-
},
|
|
3230
|
+
}, Dt.prototype.renderFrame = function() {
|
|
3231
|
+
}, Dt.prototype.destroy = function() {
|
|
3232
|
+
}, Dt.prototype.initExpressions = function() {
|
|
3233
|
+
}, Dt.prototype.getFootageData = function() {
|
|
3214
3234
|
return this.footageData;
|
|
3215
3235
|
};
|
|
3216
3236
|
function pt(t, e, i) {
|
|
@@ -3232,7 +3252,7 @@ var si = { exports: {} };
|
|
|
3232
3252
|
this._volume = this.lv.v[0];
|
|
3233
3253
|
var i = this._volume * this._volumeMultiplier;
|
|
3234
3254
|
this._previousVolume !== i && (this._previousVolume = i, this.audio.volume(i));
|
|
3235
|
-
}, X([
|
|
3255
|
+
}, X([De, jt, qt], pt), pt.prototype.renderFrame = function() {
|
|
3236
3256
|
this.isInRange && this._canPlay && (this._isPlaying ? (!this.audio.playing() || Math.abs(this._currentTime / this.globalData.frameRate - this.audio.seek()) > 0.1) && this.audio.seek(this._currentTime / this.globalData.frameRate) : (this.audio.play(), this.audio.seek(this._currentTime / this.globalData.frameRate), this._isPlaying = !0));
|
|
3237
3257
|
}, pt.prototype.show = function() {
|
|
3238
3258
|
}, pt.prototype.hide = function() {
|
|
@@ -3286,7 +3306,7 @@ var si = { exports: {} };
|
|
|
3286
3306
|
}, ht.prototype.createAudio = function(t) {
|
|
3287
3307
|
return new pt(t, this.globalData, this);
|
|
3288
3308
|
}, ht.prototype.createFootage = function(t) {
|
|
3289
|
-
return new
|
|
3309
|
+
return new Dt(t, this.globalData, this);
|
|
3290
3310
|
}, ht.prototype.buildAllItems = function() {
|
|
3291
3311
|
var t, e = this.layers.length;
|
|
3292
3312
|
for (t = 0; t < e; t += 1)
|
|
@@ -3339,7 +3359,7 @@ var si = { exports: {} };
|
|
|
3339
3359
|
}
|
|
3340
3360
|
return t.length === 0 ? i : i.getElementByPath(t);
|
|
3341
3361
|
}, ht.prototype.setupGlobalData = function(t, e) {
|
|
3342
|
-
this.globalData.fontManager = new
|
|
3362
|
+
this.globalData.fontManager = new $t(), this.globalData.slotManager = Zs(t), this.globalData.fontManager.addChars(t.chars), this.globalData.fontManager.addFonts(t.fonts, e), this.globalData.getAssetData = this.animationItem.getAssetData.bind(this.animationItem), this.globalData.getAssetsPath = this.animationItem.getAssetsPath.bind(this.animationItem), this.globalData.imageLoader = this.animationItem.imagePreloader, this.globalData.audioController = this.animationItem.audioController, this.globalData.frameId = 0, this.globalData.frameRate = t.fr, this.globalData.nm = t.nm, this.globalData.compSize = {
|
|
3343
3363
|
w: t.w,
|
|
3344
3364
|
h: t.h
|
|
3345
3365
|
};
|
|
@@ -3347,13 +3367,13 @@ var si = { exports: {} };
|
|
|
3347
3367
|
var sr = {
|
|
3348
3368
|
TRANSFORM_EFFECT: "transformEFfect"
|
|
3349
3369
|
};
|
|
3350
|
-
function
|
|
3370
|
+
function he() {
|
|
3351
3371
|
}
|
|
3352
|
-
|
|
3372
|
+
he.prototype = {
|
|
3353
3373
|
initTransform: function() {
|
|
3354
3374
|
var e = new ot();
|
|
3355
3375
|
this.finalTransform = {
|
|
3356
|
-
mProp: this.data.ks ?
|
|
3376
|
+
mProp: this.data.ks ? Je.getTransformProperty(this, this.data.ks, this) : {
|
|
3357
3377
|
o: 0
|
|
3358
3378
|
},
|
|
3359
3379
|
_matMdf: !1,
|
|
@@ -3426,7 +3446,7 @@ var si = { exports: {} };
|
|
|
3426
3446
|
},
|
|
3427
3447
|
mHelper: new ot()
|
|
3428
3448
|
};
|
|
3429
|
-
function
|
|
3449
|
+
function te(t, e, i) {
|
|
3430
3450
|
this.data = t, this.element = e, this.globalData = i, this.storedData = [], this.masksProperties = this.data.masksProperties || [], this.maskElement = null;
|
|
3431
3451
|
var s = this.globalData.defs, n, r = this.masksProperties ? this.masksProperties.length : 0;
|
|
3432
3452
|
this.viewData = tt(r), this.solidPath = "";
|
|
@@ -3435,7 +3455,7 @@ var si = { exports: {} };
|
|
|
3435
3455
|
if ((c[n].mode !== "a" && c[n].mode !== "n" || c[n].inv || c[n].o.k !== 100 || c[n].o.x) && (y = "mask", d = "mask"), (c[n].mode === "s" || c[n].mode === "i") && h === 0 ? (b = W("rect"), b.setAttribute("fill", "#ffffff"), b.setAttribute("width", this.element.comp.data.w || 0), b.setAttribute("height", this.element.comp.data.h || 0), m.push(b)) : b = null, o = W("path"), c[n].mode === "n")
|
|
3436
3456
|
this.viewData[n] = {
|
|
3437
3457
|
op: V.getProp(this.element, c[n].o, 0, 0.01, this.element),
|
|
3438
|
-
prop:
|
|
3458
|
+
prop: Be.getShapeProp(this.element, c[n], 3),
|
|
3439
3459
|
elem: o,
|
|
3440
3460
|
lastPath: ""
|
|
3441
3461
|
}, s.appendChild(o);
|
|
@@ -3463,7 +3483,7 @@ var si = { exports: {} };
|
|
|
3463
3483
|
elem: o,
|
|
3464
3484
|
lastPath: "",
|
|
3465
3485
|
op: V.getProp(this.element, c[n].o, 0, 0.01, this.element),
|
|
3466
|
-
prop:
|
|
3486
|
+
prop: Be.getShapeProp(this.element, c[n], 3),
|
|
3467
3487
|
invRect: b
|
|
3468
3488
|
}, this.viewData[n].prop.k || this.drawPath(c[n], this.viewData[n].prop.v, this.viewData[n]);
|
|
3469
3489
|
}
|
|
@@ -3471,21 +3491,21 @@ var si = { exports: {} };
|
|
|
3471
3491
|
this.maskElement.appendChild(m[n]);
|
|
3472
3492
|
h > 0 && (this.maskElement.setAttribute("id", p), this.element.maskedElement.setAttribute(d, "url(" + dt() + "#" + p + ")"), s.appendChild(this.maskElement)), this.viewData.length && this.element.addRenderableComponent(this);
|
|
3473
3493
|
}
|
|
3474
|
-
|
|
3494
|
+
te.prototype.getMaskProperty = function(t) {
|
|
3475
3495
|
return this.viewData[t].prop;
|
|
3476
|
-
},
|
|
3496
|
+
}, te.prototype.renderFrame = function(t) {
|
|
3477
3497
|
var e = this.element.finalTransform.mat, i, s = this.masksProperties.length;
|
|
3478
3498
|
for (i = 0; i < s; i += 1)
|
|
3479
3499
|
if ((this.viewData[i].prop._mdf || t) && this.drawPath(this.masksProperties[i], this.viewData[i].prop.v, this.viewData[i]), (this.viewData[i].op._mdf || t) && this.viewData[i].elem.setAttribute("fill-opacity", this.viewData[i].op.v), this.masksProperties[i].mode !== "n" && (this.viewData[i].invRect && (this.element.finalTransform.mProp._mdf || t) && this.viewData[i].invRect.setAttribute("transform", e.getInverseMatrix().to2dCSS()), this.storedData[i].x && (this.storedData[i].x._mdf || t))) {
|
|
3480
3500
|
var n = this.storedData[i].expan;
|
|
3481
3501
|
this.storedData[i].x.v < 0 ? (this.storedData[i].lastOperator !== "erode" && (this.storedData[i].lastOperator = "erode", this.storedData[i].elem.setAttribute("filter", "url(" + dt() + "#" + this.storedData[i].filterId + ")")), n.setAttribute("radius", -this.storedData[i].x.v)) : (this.storedData[i].lastOperator !== "dilate" && (this.storedData[i].lastOperator = "dilate", this.storedData[i].elem.setAttribute("filter", null)), this.storedData[i].elem.setAttribute("stroke-width", this.storedData[i].x.v * 2));
|
|
3482
3502
|
}
|
|
3483
|
-
},
|
|
3503
|
+
}, te.prototype.getMaskelement = function() {
|
|
3484
3504
|
return this.maskElement;
|
|
3485
|
-
},
|
|
3505
|
+
}, te.prototype.createLayerSolidPath = function() {
|
|
3486
3506
|
var t = "M0,0 ";
|
|
3487
3507
|
return t += " h" + this.globalData.compSize.w, t += " v" + this.globalData.compSize.h, t += " h-" + this.globalData.compSize.w, t += " v-" + this.globalData.compSize.h + " ", t;
|
|
3488
|
-
},
|
|
3508
|
+
}, te.prototype.drawPath = function(t, e, i) {
|
|
3489
3509
|
var s = " M" + e.v[0][0] + "," + e.v[0][1], n, r;
|
|
3490
3510
|
for (r = e._length, n = 1; n < r; n += 1)
|
|
3491
3511
|
s += " C" + e.o[n - 1][0] + "," + e.o[n - 1][1] + " " + e.i[n][0] + "," + e.i[n][1] + " " + e.v[n][0] + "," + e.v[n][1];
|
|
@@ -3493,10 +3513,10 @@ var si = { exports: {} };
|
|
|
3493
3513
|
var o = "";
|
|
3494
3514
|
i.elem && (e.c && (o = t.inv ? this.solidPath + s : s), i.elem.setAttribute("d", o)), i.lastPath = s;
|
|
3495
3515
|
}
|
|
3496
|
-
},
|
|
3516
|
+
}, te.prototype.destroy = function() {
|
|
3497
3517
|
this.element = null, this.globalData = null, this.maskElement = null, this.data = null, this.masksProperties = null;
|
|
3498
3518
|
};
|
|
3499
|
-
var
|
|
3519
|
+
var Se = function() {
|
|
3500
3520
|
var t = {};
|
|
3501
3521
|
t.createFilter = e, t.createAlphaToLuminanceFilter = i;
|
|
3502
3522
|
function e(s, n) {
|
|
@@ -3508,42 +3528,42 @@ var si = { exports: {} };
|
|
|
3508
3528
|
return s.setAttribute("type", "matrix"), s.setAttribute("color-interpolation-filters", "sRGB"), s.setAttribute("values", "0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"), s;
|
|
3509
3529
|
}
|
|
3510
3530
|
return t;
|
|
3511
|
-
}(),
|
|
3531
|
+
}(), Yi = function() {
|
|
3512
3532
|
var t = {
|
|
3513
3533
|
maskType: !0,
|
|
3514
3534
|
svgLumaHidden: !0,
|
|
3515
3535
|
offscreenCanvas: typeof OffscreenCanvas < "u"
|
|
3516
3536
|
};
|
|
3517
3537
|
return (/MSIE 10/i.test(navigator.userAgent) || /MSIE 9/i.test(navigator.userAgent) || /rv:11.0/i.test(navigator.userAgent) || /Edge\/\d./i.test(navigator.userAgent)) && (t.maskType = !1), /firefox/i.test(navigator.userAgent) && (t.svgLumaHidden = !1), t;
|
|
3518
|
-
}(),
|
|
3519
|
-
function
|
|
3520
|
-
var e, i = "SourceGraphic", s = t.data.ef ? t.data.ef.length : 0, n = ft(), r =
|
|
3538
|
+
}(), si = {}, Hi = "filter_result_";
|
|
3539
|
+
function ri(t) {
|
|
3540
|
+
var e, i = "SourceGraphic", s = t.data.ef ? t.data.ef.length : 0, n = ft(), r = Se.createFilter(n, !0), o = 0;
|
|
3521
3541
|
this.filters = [];
|
|
3522
3542
|
var c;
|
|
3523
3543
|
for (e = 0; e < s; e += 1) {
|
|
3524
3544
|
c = null;
|
|
3525
3545
|
var h = t.data.ef[e].ty;
|
|
3526
|
-
if (
|
|
3527
|
-
var m =
|
|
3528
|
-
c = new m(r, t.effectsManager.effectElements[e], t,
|
|
3546
|
+
if (si[h]) {
|
|
3547
|
+
var m = si[h].effect;
|
|
3548
|
+
c = new m(r, t.effectsManager.effectElements[e], t, Hi + o, i), i = Hi + o, si[h].countsAsEffect && (o += 1);
|
|
3529
3549
|
}
|
|
3530
3550
|
c && this.filters.push(c);
|
|
3531
3551
|
}
|
|
3532
3552
|
o && (t.globalData.defs.appendChild(r), t.layerElement.setAttribute("filter", "url(" + dt() + "#" + n + ")")), this.filters.length && t.addRenderableComponent(this);
|
|
3533
3553
|
}
|
|
3534
|
-
|
|
3554
|
+
ri.prototype.renderFrame = function(t) {
|
|
3535
3555
|
var e, i = this.filters.length;
|
|
3536
3556
|
for (e = 0; e < i; e += 1)
|
|
3537
3557
|
this.filters[e].renderFrame(t);
|
|
3538
|
-
},
|
|
3558
|
+
}, ri.prototype.getEffects = function(t) {
|
|
3539
3559
|
var e, i = this.filters.length, s = [];
|
|
3540
3560
|
for (e = 0; e < i; e += 1)
|
|
3541
3561
|
this.filters[e].type === t && s.push(this.filters[e]);
|
|
3542
3562
|
return s;
|
|
3543
3563
|
};
|
|
3544
|
-
function
|
|
3564
|
+
function Pe() {
|
|
3545
3565
|
}
|
|
3546
|
-
|
|
3566
|
+
Pe.prototype = {
|
|
3547
3567
|
initRendererElement: function() {
|
|
3548
3568
|
this.layerElement = W("g");
|
|
3549
3569
|
},
|
|
@@ -3578,25 +3598,25 @@ var si = { exports: {} };
|
|
|
3578
3598
|
return this.data.hd ? null : this.baseElement;
|
|
3579
3599
|
},
|
|
3580
3600
|
createRenderableComponents: function() {
|
|
3581
|
-
this.maskManager = new
|
|
3601
|
+
this.maskManager = new te(this.data, this, this.globalData), this.renderableEffectsManager = new ri(this), this.searchEffectTransforms();
|
|
3582
3602
|
},
|
|
3583
3603
|
getMatte: function(e) {
|
|
3584
3604
|
if (this.matteMasks || (this.matteMasks = {}), !this.matteMasks[e]) {
|
|
3585
3605
|
var i = this.layerId + "_" + e, s, n, r, o;
|
|
3586
3606
|
if (e === 1 || e === 3) {
|
|
3587
3607
|
var c = W("mask");
|
|
3588
|
-
c.setAttribute("id", i), c.setAttribute("mask-type", e === 3 ? "luminance" : "alpha"), r = W("use"), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), c.appendChild(r), this.globalData.defs.appendChild(c), !
|
|
3608
|
+
c.setAttribute("id", i), c.setAttribute("mask-type", e === 3 ? "luminance" : "alpha"), r = W("use"), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), c.appendChild(r), this.globalData.defs.appendChild(c), !Yi.maskType && e === 1 && (c.setAttribute("mask-type", "luminance"), s = ft(), n = Se.createFilter(s), this.globalData.defs.appendChild(n), n.appendChild(Se.createAlphaToLuminanceFilter()), o = W("g"), o.appendChild(r), c.appendChild(o), o.setAttribute("filter", "url(" + dt() + "#" + s + ")"));
|
|
3589
3609
|
} else if (e === 2) {
|
|
3590
3610
|
var h = W("mask");
|
|
3591
3611
|
h.setAttribute("id", i), h.setAttribute("mask-type", "alpha");
|
|
3592
3612
|
var m = W("g");
|
|
3593
|
-
h.appendChild(m), s = ft(), n =
|
|
3613
|
+
h.appendChild(m), s = ft(), n = Se.createFilter(s);
|
|
3594
3614
|
var _ = W("feComponentTransfer");
|
|
3595
3615
|
_.setAttribute("in", "SourceGraphic"), n.appendChild(_);
|
|
3596
3616
|
var M = W("feFuncA");
|
|
3597
3617
|
M.setAttribute("type", "table"), M.setAttribute("tableValues", "1.0 0.0"), _.appendChild(M), this.globalData.defs.appendChild(n);
|
|
3598
3618
|
var p = W("rect");
|
|
3599
|
-
p.setAttribute("width", this.comp.data.w), p.setAttribute("height", this.comp.data.h), p.setAttribute("x", "0"), p.setAttribute("y", "0"), p.setAttribute("fill", "#ffffff"), p.setAttribute("opacity", "0"), m.setAttribute("filter", "url(" + dt() + "#" + s + ")"), m.appendChild(p), r = W("use"), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), m.appendChild(r),
|
|
3619
|
+
p.setAttribute("width", this.comp.data.w), p.setAttribute("height", this.comp.data.h), p.setAttribute("x", "0"), p.setAttribute("y", "0"), p.setAttribute("fill", "#ffffff"), p.setAttribute("opacity", "0"), m.setAttribute("filter", "url(" + dt() + "#" + s + ")"), m.appendChild(p), r = W("use"), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), m.appendChild(r), Yi.maskType || (h.setAttribute("mask-type", "luminance"), n.appendChild(Se.createAlphaToLuminanceFilter()), o = W("g"), m.appendChild(p), o.appendChild(this.layerElement), m.appendChild(o)), this.globalData.defs.appendChild(h);
|
|
3600
3620
|
}
|
|
3601
3621
|
this.matteMasks[e] = i;
|
|
3602
3622
|
}
|
|
@@ -3606,9 +3626,9 @@ var si = { exports: {} };
|
|
|
3606
3626
|
this.matteElement && this.matteElement.setAttribute("mask", "url(" + dt() + "#" + e + ")");
|
|
3607
3627
|
}
|
|
3608
3628
|
};
|
|
3609
|
-
function
|
|
3629
|
+
function le() {
|
|
3610
3630
|
}
|
|
3611
|
-
|
|
3631
|
+
le.prototype = {
|
|
3612
3632
|
/**
|
|
3613
3633
|
* @function
|
|
3614
3634
|
* Initializes hierarchy properties
|
|
@@ -3644,7 +3664,7 @@ var si = { exports: {} };
|
|
|
3644
3664
|
this.data.parent !== void 0 && this.comp.buildElementParenting(this, this.data.parent, []);
|
|
3645
3665
|
}
|
|
3646
3666
|
};
|
|
3647
|
-
function
|
|
3667
|
+
function ke() {
|
|
3648
3668
|
}
|
|
3649
3669
|
(function() {
|
|
3650
3670
|
var t = {
|
|
@@ -3678,9 +3698,9 @@ var si = { exports: {} };
|
|
|
3678
3698
|
this.innerElem = null, this.destroyBaseElement();
|
|
3679
3699
|
}
|
|
3680
3700
|
};
|
|
3681
|
-
X([
|
|
3701
|
+
X([De, os(t)], ke);
|
|
3682
3702
|
})();
|
|
3683
|
-
function
|
|
3703
|
+
function Ae(t, e, i) {
|
|
3684
3704
|
this.assetData = e.getAssetData(t.refId), this.assetData && this.assetData.sid && (this.assetData = e.slotManager.getProp(this.assetData)), this.initElement(t, e, i), this.sourceRect = {
|
|
3685
3705
|
top: 0,
|
|
3686
3706
|
left: 0,
|
|
@@ -3688,18 +3708,18 @@ var si = { exports: {} };
|
|
|
3688
3708
|
height: this.assetData.h
|
|
3689
3709
|
};
|
|
3690
3710
|
}
|
|
3691
|
-
X([
|
|
3711
|
+
X([jt, he, Pe, le, qt, ke], Ae), Ae.prototype.createContent = function() {
|
|
3692
3712
|
var t = this.globalData.getAssetsPath(this.assetData);
|
|
3693
3713
|
this.innerElem = W("image"), this.innerElem.setAttribute("width", this.assetData.w + "px"), this.innerElem.setAttribute("height", this.assetData.h + "px"), this.innerElem.setAttribute("preserveAspectRatio", this.assetData.pr || this.globalData.renderConfig.imagePreserveAspectRatio), this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink", "href", t), this.layerElement.appendChild(this.innerElem);
|
|
3694
|
-
},
|
|
3714
|
+
}, Ae.prototype.sourceRectAtTime = function() {
|
|
3695
3715
|
return this.sourceRect;
|
|
3696
3716
|
};
|
|
3697
3717
|
function rr(t, e) {
|
|
3698
3718
|
this.elem = t, this.pos = e;
|
|
3699
3719
|
}
|
|
3700
|
-
function
|
|
3720
|
+
function Zi() {
|
|
3701
3721
|
}
|
|
3702
|
-
|
|
3722
|
+
Zi.prototype = {
|
|
3703
3723
|
addShapeToModifiers: function(e) {
|
|
3704
3724
|
var i, s = this.shapeModifiers.length;
|
|
3705
3725
|
for (i = 0; i < s; i += 1)
|
|
@@ -3742,16 +3762,16 @@ var si = { exports: {} };
|
|
|
3742
3762
|
this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange);
|
|
3743
3763
|
}
|
|
3744
3764
|
};
|
|
3745
|
-
var
|
|
3765
|
+
var Ki = {
|
|
3746
3766
|
1: "butt",
|
|
3747
3767
|
2: "round",
|
|
3748
3768
|
3: "square"
|
|
3749
|
-
},
|
|
3769
|
+
}, Ui = {
|
|
3750
3770
|
1: "miter",
|
|
3751
3771
|
2: "round",
|
|
3752
3772
|
3: "bevel"
|
|
3753
3773
|
};
|
|
3754
|
-
function
|
|
3774
|
+
function Ji(t, e, i) {
|
|
3755
3775
|
this.caches = [], this.styles = [], this.transformers = t, this.lStr = "", this.sh = i, this.lvl = e, this._isAnimated = !!i.k;
|
|
3756
3776
|
for (var s = 0, n = t.length; s < n; ) {
|
|
3757
3777
|
if (t[s].mProps.dynamicProperties.length) {
|
|
@@ -3761,16 +3781,16 @@ var si = { exports: {} };
|
|
|
3761
3781
|
s += 1;
|
|
3762
3782
|
}
|
|
3763
3783
|
}
|
|
3764
|
-
|
|
3784
|
+
Ji.prototype.setAsAnimated = function() {
|
|
3765
3785
|
this._isAnimated = !0;
|
|
3766
3786
|
};
|
|
3767
|
-
function
|
|
3787
|
+
function Qi(t, e) {
|
|
3768
3788
|
this.data = t, this.type = t.ty, this.d = "", this.lvl = e, this._mdf = !1, this.closed = t.hd === !0, this.pElem = W("path"), this.msElem = null;
|
|
3769
3789
|
}
|
|
3770
|
-
|
|
3790
|
+
Qi.prototype.reset = function() {
|
|
3771
3791
|
this.d = "", this._mdf = !1;
|
|
3772
3792
|
};
|
|
3773
|
-
function
|
|
3793
|
+
function We(t, e, i, s) {
|
|
3774
3794
|
this.elem = t, this.frameId = -1, this.dataProps = tt(e.length), this.renderer = i, this.k = !1, this.dashStr = "", this.dashArray = st("float32", e.length ? e.length - 1 : 0), this.dashoffset = st("float32", 1), this.initDynamicPropertyContainer(s);
|
|
3775
3795
|
var n, r = e.length || 0, o;
|
|
3776
3796
|
for (n = 0; n < r; n += 1)
|
|
@@ -3780,38 +3800,38 @@ var si = { exports: {} };
|
|
|
3780
3800
|
};
|
|
3781
3801
|
this.k || this.getValue(!0), this._isAnimated = this.k;
|
|
3782
3802
|
}
|
|
3783
|
-
|
|
3803
|
+
We.prototype.getValue = function(t) {
|
|
3784
3804
|
if (!(this.elem.globalData.frameId === this.frameId && !t) && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf = this._mdf || t, this._mdf)) {
|
|
3785
3805
|
var e = 0, i = this.dataProps.length;
|
|
3786
3806
|
for (this.renderer === "svg" && (this.dashStr = ""), e = 0; e < i; e += 1)
|
|
3787
3807
|
this.dataProps[e].n !== "o" ? this.renderer === "svg" ? this.dashStr += " " + this.dataProps[e].p.v : this.dashArray[e] = this.dataProps[e].p.v : this.dashoffset[0] = this.dataProps[e].p.v;
|
|
3788
3808
|
}
|
|
3789
|
-
}, X([rt],
|
|
3790
|
-
function
|
|
3791
|
-
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.o = V.getProp(t, e.o, 0, 0.01, this), this.w = V.getProp(t, e.w, 0, null, this), this.d = new
|
|
3809
|
+
}, X([rt], We);
|
|
3810
|
+
function $i(t, e, i) {
|
|
3811
|
+
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.o = V.getProp(t, e.o, 0, 0.01, this), this.w = V.getProp(t, e.w, 0, null, this), this.d = new We(t, e.d || {}, "svg", this), this.c = V.getProp(t, e.c, 1, 255, this), this.style = i, this._isAnimated = !!this._isAnimated;
|
|
3792
3812
|
}
|
|
3793
|
-
X([rt],
|
|
3794
|
-
function
|
|
3813
|
+
X([rt], $i);
|
|
3814
|
+
function ts(t, e, i) {
|
|
3795
3815
|
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.o = V.getProp(t, e.o, 0, 0.01, this), this.c = V.getProp(t, e.c, 1, 255, this), this.style = i;
|
|
3796
3816
|
}
|
|
3797
|
-
X([rt],
|
|
3798
|
-
function
|
|
3817
|
+
X([rt], ts);
|
|
3818
|
+
function es(t, e, i) {
|
|
3799
3819
|
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.style = i;
|
|
3800
3820
|
}
|
|
3801
|
-
X([rt],
|
|
3802
|
-
function
|
|
3821
|
+
X([rt], es);
|
|
3822
|
+
function we(t, e, i) {
|
|
3803
3823
|
this.data = e, this.c = st("uint8c", e.p * 4);
|
|
3804
3824
|
var s = e.k.k[0].s ? e.k.k[0].s.length - e.p * 4 : e.k.k.length - e.p * 4;
|
|
3805
3825
|
this.o = st("float32", s), this._cmdf = !1, this._omdf = !1, this._collapsable = this.checkCollapsable(), this._hasOpacity = s, this.initDynamicPropertyContainer(i), this.prop = V.getProp(t, e.k, 1, null, this), this.k = this.prop.k, this.getValue(!0);
|
|
3806
3826
|
}
|
|
3807
|
-
|
|
3827
|
+
we.prototype.comparePoints = function(t, e) {
|
|
3808
3828
|
for (var i = 0, s = this.o.length / 2, n; i < s; ) {
|
|
3809
3829
|
if (n = Math.abs(t[i * 4] - t[e * 4 + i * 2]), n > 0.01)
|
|
3810
3830
|
return !1;
|
|
3811
3831
|
i += 1;
|
|
3812
3832
|
}
|
|
3813
3833
|
return !0;
|
|
3814
|
-
},
|
|
3834
|
+
}, we.prototype.checkCollapsable = function() {
|
|
3815
3835
|
if (this.o.length / 2 !== this.c.length / 4)
|
|
3816
3836
|
return !1;
|
|
3817
3837
|
if (this.data.k.k[0].s)
|
|
@@ -3823,7 +3843,7 @@ var si = { exports: {} };
|
|
|
3823
3843
|
else if (!this.comparePoints(this.data.k.k, this.data.p))
|
|
3824
3844
|
return !1;
|
|
3825
3845
|
return !0;
|
|
3826
|
-
},
|
|
3846
|
+
}, we.prototype.getValue = function(t) {
|
|
3827
3847
|
if (this.prop.getValue(), this._mdf = !1, this._cmdf = !1, this._omdf = !1, this.prop._mdf || t) {
|
|
3828
3848
|
var e, i = this.data.p * 4, s, n;
|
|
3829
3849
|
for (e = 0; e < i; e += 1)
|
|
@@ -3833,24 +3853,24 @@ var si = { exports: {} };
|
|
|
3833
3853
|
s = e % 2 === 0 ? 100 : 1, n = e % 2 === 0 ? Math.round(this.prop.v[e] * 100) : this.prop.v[e], this.o[e - this.data.p * 4] !== n && (this.o[e - this.data.p * 4] = n, this._omdf = !t);
|
|
3834
3854
|
this._mdf = !t;
|
|
3835
3855
|
}
|
|
3836
|
-
}, X([rt],
|
|
3837
|
-
function
|
|
3856
|
+
}, X([rt], we);
|
|
3857
|
+
function fe(t, e, i) {
|
|
3838
3858
|
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.initGradientData(t, e, i);
|
|
3839
3859
|
}
|
|
3840
|
-
|
|
3860
|
+
fe.prototype.initGradientData = function(t, e, i) {
|
|
3841
3861
|
this.o = V.getProp(t, e.o, 0, 0.01, this), this.s = V.getProp(t, e.s, 1, null, this), this.e = V.getProp(t, e.e, 1, null, this), this.h = V.getProp(t, e.h || {
|
|
3842
3862
|
k: 0
|
|
3843
3863
|
}, 0, 0.01, this), this.a = V.getProp(t, e.a || {
|
|
3844
3864
|
k: 0
|
|
3845
|
-
}, 0, J, this), this.g = new
|
|
3846
|
-
},
|
|
3865
|
+
}, 0, J, this), this.g = new we(t, e.g, this), this.style = i, this.stops = [], this.setGradientData(i.pElem, e), this.setGradientOpacity(e, i), this._isAnimated = !!this._isAnimated;
|
|
3866
|
+
}, fe.prototype.setGradientData = function(t, e) {
|
|
3847
3867
|
var i = ft(), s = W(e.t === 1 ? "linearGradient" : "radialGradient");
|
|
3848
3868
|
s.setAttribute("id", i), s.setAttribute("spreadMethod", "pad"), s.setAttribute("gradientUnits", "userSpaceOnUse");
|
|
3849
3869
|
var n = [], r, o, c;
|
|
3850
3870
|
for (c = e.g.p * 4, o = 0; o < c; o += 4)
|
|
3851
3871
|
r = W("stop"), s.appendChild(r), n.push(r);
|
|
3852
3872
|
t.setAttribute(e.ty === "gf" ? "fill" : "stroke", "url(" + dt() + "#" + i + ")"), this.gf = s, this.cst = n;
|
|
3853
|
-
},
|
|
3873
|
+
}, fe.prototype.setGradientOpacity = function(t, e) {
|
|
3854
3874
|
if (this.g._hasOpacity && !this.g._collapsable) {
|
|
3855
3875
|
var i, s, n, r = W("mask"), o = W("path");
|
|
3856
3876
|
r.appendChild(o);
|
|
@@ -3861,13 +3881,13 @@ var si = { exports: {} };
|
|
|
3861
3881
|
var _ = this.stops;
|
|
3862
3882
|
for (s = t.g.p * 4; s < n; s += 2)
|
|
3863
3883
|
i = W("stop"), i.setAttribute("stop-color", "rgb(255,255,255)"), m.appendChild(i), _.push(i);
|
|
3864
|
-
o.setAttribute(t.ty === "gf" ? "fill" : "stroke", "url(" + dt() + "#" + c + ")"), t.ty === "gs" && (o.setAttribute("stroke-linecap",
|
|
3884
|
+
o.setAttribute(t.ty === "gf" ? "fill" : "stroke", "url(" + dt() + "#" + c + ")"), t.ty === "gs" && (o.setAttribute("stroke-linecap", Ki[t.lc || 2]), o.setAttribute("stroke-linejoin", Ui[t.lj || 2]), t.lj === 1 && o.setAttribute("stroke-miterlimit", t.ml)), this.of = m, this.ms = r, this.ost = _, this.maskId = h, e.msElem = o;
|
|
3865
3885
|
}
|
|
3866
|
-
}, X([rt],
|
|
3867
|
-
function
|
|
3868
|
-
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.w = V.getProp(t, e.w, 0, null, this), this.d = new
|
|
3886
|
+
}, X([rt], fe);
|
|
3887
|
+
function is(t, e, i) {
|
|
3888
|
+
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.w = V.getProp(t, e.w, 0, null, this), this.d = new We(t, e.d || {}, "svg", this), this.initGradientData(t, e, i), this._isAnimated = !!this._isAnimated;
|
|
3869
3889
|
}
|
|
3870
|
-
X([
|
|
3890
|
+
X([fe, rt], is);
|
|
3871
3891
|
function nr() {
|
|
3872
3892
|
this.it = [], this.prevViewData = [], this.gr = W("g");
|
|
3873
3893
|
}
|
|
@@ -3878,7 +3898,7 @@ var si = { exports: {} };
|
|
|
3878
3898
|
container: i
|
|
3879
3899
|
}, this.elements = [], this._isAnimated = this.transform.mProps.dynamicProperties.length || this.transform.op.effectsSequence.length;
|
|
3880
3900
|
}
|
|
3881
|
-
var
|
|
3901
|
+
var ss = function(e, i, s, n) {
|
|
3882
3902
|
if (i === 0)
|
|
3883
3903
|
return "";
|
|
3884
3904
|
var r = e.o, o = e.i, c = e.v, h, m = " M" + n.applyToPointStringified(c[0][0], c[0][1]);
|
|
@@ -3930,7 +3950,7 @@ var si = { exports: {} };
|
|
|
3930
3950
|
T = t;
|
|
3931
3951
|
if (A = p.sh.paths, S = A._length, y) {
|
|
3932
3952
|
for (C = "", k = 0; k < S; k += 1)
|
|
3933
|
-
d = A.shapes[k], d && d._length && (C +=
|
|
3953
|
+
d = A.shapes[k], d && d._length && (C += ss(d, d._length, d.c, T));
|
|
3934
3954
|
p.caches[f] = C;
|
|
3935
3955
|
} else
|
|
3936
3956
|
C = p.caches[f];
|
|
@@ -3939,7 +3959,7 @@ var si = { exports: {} };
|
|
|
3939
3959
|
}
|
|
3940
3960
|
function c(M, p, b) {
|
|
3941
3961
|
var k = p.style;
|
|
3942
|
-
(p.c._mdf || b) && k.pElem.setAttribute("fill", "rgb(" +
|
|
3962
|
+
(p.c._mdf || b) && k.pElem.setAttribute("fill", "rgb(" + Ut(p.c.v[0]) + "," + Ut(p.c.v[1]) + "," + Ut(p.c.v[2]) + ")"), (p.o._mdf || b) && k.pElem.setAttribute("fill-opacity", p.o.v);
|
|
3943
3963
|
}
|
|
3944
3964
|
function h(M, p, b) {
|
|
3945
3965
|
m(M, p, b), _(M, p, b);
|
|
@@ -3981,14 +4001,14 @@ var si = { exports: {} };
|
|
|
3981
4001
|
}
|
|
3982
4002
|
function _(M, p, b) {
|
|
3983
4003
|
var k = p.style, S = p.d;
|
|
3984
|
-
S && (S._mdf || b) && S.dashStr && (k.pElem.setAttribute("stroke-dasharray", S.dashStr), k.pElem.setAttribute("stroke-dashoffset", S.dashoffset[0])), p.c && (p.c._mdf || b) && k.pElem.setAttribute("stroke", "rgb(" +
|
|
4004
|
+
S && (S._mdf || b) && S.dashStr && (k.pElem.setAttribute("stroke-dasharray", S.dashStr), k.pElem.setAttribute("stroke-dashoffset", S.dashoffset[0])), p.c && (p.c._mdf || b) && k.pElem.setAttribute("stroke", "rgb(" + Ut(p.c.v[0]) + "," + Ut(p.c.v[1]) + "," + Ut(p.c.v[2]) + ")"), (p.o._mdf || b) && k.pElem.setAttribute("stroke-opacity", p.o.v), (p.w._mdf || b) && (k.pElem.setAttribute("stroke-width", p.w.v), k.msElem && k.msElem.setAttribute("stroke-width", p.w.v));
|
|
3985
4005
|
}
|
|
3986
4006
|
return i;
|
|
3987
4007
|
}();
|
|
3988
4008
|
function Q(t, e, i) {
|
|
3989
4009
|
this.shapes = [], this.shapesData = t.shapes, this.stylesList = [], this.shapeModifiers = [], this.itemsData = [], this.processedElements = [], this.animatedContents = [], this.initElement(t, e, i), this.prevViewData = [];
|
|
3990
4010
|
}
|
|
3991
|
-
X([
|
|
4011
|
+
X([jt, he, Pe, Zi, le, qt, ke], Q), Q.prototype.initSecondaryElement = function() {
|
|
3992
4012
|
}, Q.prototype.identityMatrix = new ot(), Q.prototype.buildExpressionInterface = function() {
|
|
3993
4013
|
}, Q.prototype.createContent = function() {
|
|
3994
4014
|
this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], !0), this.filterUniqueShapes();
|
|
@@ -4004,27 +4024,27 @@ var si = { exports: {} };
|
|
|
4004
4024
|
for (e = 0; e < i; e += 1)
|
|
4005
4025
|
t[e].setAsAnimated();
|
|
4006
4026
|
}, Q.prototype.createStyleElement = function(t, e) {
|
|
4007
|
-
var i, s = new
|
|
4027
|
+
var i, s = new Qi(t, e), n = s.pElem;
|
|
4008
4028
|
if (t.ty === "st")
|
|
4009
|
-
i = new
|
|
4029
|
+
i = new $i(this, t, s);
|
|
4010
4030
|
else if (t.ty === "fl")
|
|
4011
|
-
i = new
|
|
4031
|
+
i = new ts(this, t, s);
|
|
4012
4032
|
else if (t.ty === "gf" || t.ty === "gs") {
|
|
4013
|
-
var r = t.ty === "gf" ?
|
|
4033
|
+
var r = t.ty === "gf" ? fe : is;
|
|
4014
4034
|
i = new r(this, t, s), this.globalData.defs.appendChild(i.gf), i.maskId && (this.globalData.defs.appendChild(i.ms), this.globalData.defs.appendChild(i.of), n.setAttribute("mask", "url(" + dt() + "#" + i.maskId + ")"));
|
|
4015
4035
|
} else
|
|
4016
|
-
t.ty === "no" && (i = new
|
|
4017
|
-
return (t.ty === "st" || t.ty === "gs") && (n.setAttribute("stroke-linecap",
|
|
4036
|
+
t.ty === "no" && (i = new es(this, t, s));
|
|
4037
|
+
return (t.ty === "st" || t.ty === "gs") && (n.setAttribute("stroke-linecap", Ki[t.lc || 2]), n.setAttribute("stroke-linejoin", Ui[t.lj || 2]), n.setAttribute("fill-opacity", "0"), t.lj === 1 && n.setAttribute("stroke-miterlimit", t.ml)), t.r === 2 && n.setAttribute("fill-rule", "evenodd"), t.ln && n.setAttribute("id", t.ln), t.cl && n.setAttribute("class", t.cl), t.bm && (n.style["mix-blend-mode"] = ii(t.bm)), this.stylesList.push(s), this.addToAnimatedContents(t, i), i;
|
|
4018
4038
|
}, Q.prototype.createGroupElement = function(t) {
|
|
4019
4039
|
var e = new nr();
|
|
4020
|
-
return t.ln && e.gr.setAttribute("id", t.ln), t.cl && e.gr.setAttribute("class", t.cl), t.bm && (e.gr.style["mix-blend-mode"] =
|
|
4040
|
+
return t.ln && e.gr.setAttribute("id", t.ln), t.cl && e.gr.setAttribute("class", t.cl), t.bm && (e.gr.style["mix-blend-mode"] = ii(t.bm)), e;
|
|
4021
4041
|
}, Q.prototype.createTransformElement = function(t, e) {
|
|
4022
|
-
var i =
|
|
4042
|
+
var i = Je.getTransformProperty(this, t, this), s = new ar(i, i.o, e);
|
|
4023
4043
|
return this.addToAnimatedContents(t, s), s;
|
|
4024
4044
|
}, Q.prototype.createShapeElement = function(t, e, i) {
|
|
4025
4045
|
var s = 4;
|
|
4026
4046
|
t.ty === "rc" ? s = 5 : t.ty === "el" ? s = 6 : t.ty === "sr" && (s = 7);
|
|
4027
|
-
var n =
|
|
4047
|
+
var n = Be.getShapeProp(this, t, s, this), r = new Ji(e, i, n);
|
|
4028
4048
|
return this.shapes.push(r), this.addShapeToModifiers(r), this.addToAnimatedContents(t, r), r;
|
|
4029
4049
|
}, Q.prototype.addToAnimatedContents = function(t, e) {
|
|
4030
4050
|
for (var i = 0, s = this.animatedContents.length; i < s; ) {
|
|
@@ -4062,7 +4082,7 @@ var si = { exports: {} };
|
|
|
4062
4082
|
e[h].prevViewData[_] = e[h].it[_];
|
|
4063
4083
|
this.searchShapes(t[h].it, e[h].it, e[h].prevViewData, e[h].gr, n + 1, c, o), t[h]._render && e[h].gr.parentNode !== s && s.appendChild(e[h].gr);
|
|
4064
4084
|
} else
|
|
4065
|
-
t[h].ty === "tr" ? (C || (e[h] = this.createTransformElement(t[h], s)), k = e[h].transform, c.push(k)) : t[h].ty === "sh" || t[h].ty === "rc" || t[h].ty === "el" || t[h].ty === "sr" ? (C || (e[h] = this.createShapeElement(t[h], c, n)), this.setElementStyles(e[h])) : t[h].ty === "tm" || t[h].ty === "rd" || t[h].ty === "ms" || t[h].ty === "pb" || t[h].ty === "zz" || t[h].ty === "op" ? (C ? (S = e[h], S.closed = !1) : (S =
|
|
4085
|
+
t[h].ty === "tr" ? (C || (e[h] = this.createTransformElement(t[h], s)), k = e[h].transform, c.push(k)) : t[h].ty === "sh" || t[h].ty === "rc" || t[h].ty === "el" || t[h].ty === "sr" ? (C || (e[h] = this.createShapeElement(t[h], c, n)), this.setElementStyles(e[h])) : t[h].ty === "tm" || t[h].ty === "rd" || t[h].ty === "ms" || t[h].ty === "pb" || t[h].ty === "zz" || t[h].ty === "op" ? (C ? (S = e[h], S.closed = !1) : (S = Nt.getModifier(t[h].ty), S.init(this, t[h]), e[h] = S, this.shapeModifiers.push(S)), b.push(S)) : t[h].ty === "rp" && (C ? (S = e[h], S.closed = !0) : (S = Nt.getModifier(t[h].ty), e[h] = S, S.init(this, t, h, e), this.shapeModifiers.push(S), o = !1), b.push(S));
|
|
4066
4086
|
this.addProcessedElement(t[h], h + 1);
|
|
4067
4087
|
}
|
|
4068
4088
|
for (m = p.length, h = 0; h < m; h += 1)
|
|
@@ -4083,7 +4103,7 @@ var si = { exports: {} };
|
|
|
4083
4103
|
}, Q.prototype.destroy = function() {
|
|
4084
4104
|
this.destroyBaseElement(), this.shapesData = null, this.itemsData = null;
|
|
4085
4105
|
};
|
|
4086
|
-
function
|
|
4106
|
+
function ni(t, e, i, s, n, r) {
|
|
4087
4107
|
this.o = t, this.sw = e, this.sc = i, this.fc = s, this.m = n, this.p = r, this._mdf = {
|
|
4088
4108
|
o: !0,
|
|
4089
4109
|
sw: !!e,
|
|
@@ -4093,13 +4113,13 @@ var si = { exports: {} };
|
|
|
4093
4113
|
p: !0
|
|
4094
4114
|
};
|
|
4095
4115
|
}
|
|
4096
|
-
|
|
4116
|
+
ni.prototype.update = function(t, e, i, s, n, r) {
|
|
4097
4117
|
this._mdf.o = !1, this._mdf.sw = !1, this._mdf.sc = !1, this._mdf.fc = !1, this._mdf.m = !1, this._mdf.p = !1;
|
|
4098
4118
|
var o = !1;
|
|
4099
4119
|
return this.o !== t && (this.o = t, this._mdf.o = !0, o = !0), this.sw !== e && (this.sw = e, this._mdf.sw = !0, o = !0), this.sc !== i && (this.sc = i, this._mdf.sc = !0, o = !0), this.fc !== s && (this.fc = s, this._mdf.fc = !0, o = !0), this.m !== n && (this.m = n, this._mdf.m = !0, o = !0), r.length && (this.p[0] !== r[0] || this.p[1] !== r[1] || this.p[4] !== r[4] || this.p[5] !== r[5] || this.p[12] !== r[12] || this.p[13] !== r[13]) && (this.p = r, this._mdf.p = !0, o = !0), o;
|
|
4100
4120
|
};
|
|
4101
4121
|
function lt(t, e) {
|
|
4102
|
-
this._frameId =
|
|
4122
|
+
this._frameId = Kt, this.pv = "", this.v = "", this.kf = !1, this._isFirstFrame = !0, this._mdf = !1, e.d && e.d.sid && (e.d = t.globalData.slotManager.getProp(e.d)), this.data = e, this.elem = t, this.comp = this.elem.comp, this.keysIndex = 0, this.canResize = !1, this.minimumFontSize = 1, this.effectsSequence = [], this.currentData = {
|
|
4103
4123
|
ascent: 0,
|
|
4104
4124
|
boxWidth: this.defaultBoxWidth,
|
|
4105
4125
|
f: "",
|
|
@@ -4162,11 +4182,11 @@ var si = { exports: {} };
|
|
|
4162
4182
|
return this.keysIndex !== i && (this.keysIndex = i), this.data.d.k[this.keysIndex].s;
|
|
4163
4183
|
}, lt.prototype.buildFinalText = function(t) {
|
|
4164
4184
|
for (var e = [], i = 0, s = t.length, n, r, o = !1, c = !1, h = ""; i < s; )
|
|
4165
|
-
o = c, c = !1, n = t.charCodeAt(i), h = t.charAt(i),
|
|
4185
|
+
o = c, c = !1, n = t.charCodeAt(i), h = t.charAt(i), $t.isCombinedCharacter(n) ? o = !0 : n >= 55296 && n <= 56319 ? $t.isRegionalFlag(t, i) ? h = t.substr(i, 14) : (r = t.charCodeAt(i + 1), r >= 56320 && r <= 57343 && ($t.isModifier(n, r) ? (h = t.substr(i, 2), o = !0) : $t.isFlagEmoji(t.substr(i, 4)) ? h = t.substr(i, 4) : h = t.substr(i, 2))) : n > 56319 ? (r = t.charCodeAt(i + 1), $t.isVariationSelector(n) && (o = !0)) : $t.isZeroWidthJoiner(n) && (o = !0, c = !0), o ? (e[e.length - 1] += h, o = !1) : e.push(h), i += h.length;
|
|
4166
4186
|
return e;
|
|
4167
4187
|
}, lt.prototype.completeTextData = function(t) {
|
|
4168
4188
|
t.__complete = !0;
|
|
4169
|
-
var e = this.elem.globalData.fontManager, i = this.data, s = [], n, r, o, c = 0, h, m = i.m.g, _ = 0, M = 0, p = 0, b = [], k = 0, S = 0, C, y, d = e.getFontByName(t.f), f, u = 0, g =
|
|
4189
|
+
var e = this.elem.globalData.fontManager, i = this.data, s = [], n, r, o, c = 0, h, m = i.m.g, _ = 0, M = 0, p = 0, b = [], k = 0, S = 0, C, y, d = e.getFontByName(t.f), f, u = 0, g = Wi(d);
|
|
4170
4190
|
t.fWeight = g.weight, t.fStyle = g.style, t.finalSize = t.s, t.finalText = this.buildFinalText(t.t), r = t.finalText.length, t.finalLineHeight = t.lh;
|
|
4171
4191
|
var A = t.tr / 1e3 * t.finalSize, T;
|
|
4172
4192
|
if (t.sz)
|
|
@@ -4264,7 +4284,7 @@ var si = { exports: {} };
|
|
|
4264
4284
|
this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
|
|
4265
4285
|
var c = 0, h = 0, m = 1, _ = 1;
|
|
4266
4286
|
this.ne.v > 0 ? c = this.ne.v / 100 : h = -this.ne.v / 100, this.xe.v > 0 ? m = 1 - this.xe.v / 100 : _ = 1 + this.xe.v / 100;
|
|
4267
|
-
var M =
|
|
4287
|
+
var M = ve.getBezierEasing(c, h, m, _).get, p = 0, b = this.finalS, k = this.finalE, S = this.data.sh;
|
|
4268
4288
|
if (S === 2)
|
|
4269
4289
|
k === b ? p = o >= k ? 1 : 0 : p = t(0, e(0.5 / (k - b) + (o - b) / (k - b), 1)), p = M(p);
|
|
4270
4290
|
else if (S === 3)
|
|
@@ -4331,12 +4351,12 @@ var si = { exports: {} };
|
|
|
4331
4351
|
t: r.t ? n(t, r.t, 0, 0, i) : s
|
|
4332
4352
|
}, this.s = hr.getTextSelectorProp(t, e.s, i), this.s.t = e.s.t;
|
|
4333
4353
|
}
|
|
4334
|
-
function
|
|
4354
|
+
function ee(t, e, i) {
|
|
4335
4355
|
this._isFirstFrame = !0, this._hasMaskedPath = !1, this._frameId = -1, this._textData = t, this._renderType = e, this._elem = i, this._animatorsData = tt(this._textData.a.length), this._pathData = {}, this._moreOptions = {
|
|
4336
4356
|
alignment: {}
|
|
4337
4357
|
}, this.renderedLetters = [], this.lettersChangedFlag = !1, this.initDynamicPropertyContainer(i);
|
|
4338
4358
|
}
|
|
4339
|
-
|
|
4359
|
+
ee.prototype.searchProperties = function() {
|
|
4340
4360
|
var t, e = this._textData.a.length, i, s = V.getProp;
|
|
4341
4361
|
for (t = 0; t < e; t += 1)
|
|
4342
4362
|
i = this._textData.a[t], this._animatorsData[t] = new lr(this._elem, i, this);
|
|
@@ -4348,7 +4368,7 @@ var si = { exports: {} };
|
|
|
4348
4368
|
p: s(this._elem, this._textData.p.p, 0, 0, this),
|
|
4349
4369
|
m: this._elem.maskManager.getMaskProperty(this._textData.p.m)
|
|
4350
4370
|
}, this._hasMaskedPath = !0) : this._hasMaskedPath = !1, this._moreOptions.alignment = s(this._elem, this._textData.m.a, 1, 0, this);
|
|
4351
|
-
},
|
|
4371
|
+
}, ee.prototype.getMeasures = function(t, e) {
|
|
4352
4372
|
if (this.lettersChangedFlag = e, !(!this._mdf && !this._isFirstFrame && !e && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
4353
4373
|
this._isFirstFrame = !1;
|
|
4354
4374
|
var i = this._moreOptions.alignment.v, s = this._animatorsData, n = this._textData, r = this.mHelper, o = this._renderType, c = this.renderedLetters.length, h, m, _, M, p = t.l, b, k, S, C, y, d, f, u, g, A, T, x, I, q, N;
|
|
@@ -4361,8 +4381,8 @@ var si = { exports: {} };
|
|
|
4361
4381
|
}, M = L._length - 1;
|
|
4362
4382
|
var G;
|
|
4363
4383
|
for (x = 0, _ = 0; _ < M; _ += 1)
|
|
4364
|
-
G =
|
|
4365
|
-
_ = M, N.v.c && (G =
|
|
4384
|
+
G = At.buildBezierData(L.v[_], L.v[_ + 1], [L.o[_][0] - L.v[_][0], L.o[_][1] - L.v[_][1]], [L.i[_ + 1][0] - L.v[_ + 1][0], L.i[_ + 1][1] - L.v[_ + 1][1]]), b.tLength += G.segmentLength, b.segments.push(G), x += G.segmentLength;
|
|
4385
|
+
_ = M, N.v.c && (G = At.buildBezierData(L.v[_], L.v[0], [L.o[_][0] - L.v[_][0], L.o[_][1] - L.v[_][1]], [L.i[0][0] - L.v[0][0], L.i[0][1] - L.v[0][1]]), b.tLength += G.segmentLength, b.segments.push(G), x += G.segmentLength), this._pathData.pi = b;
|
|
4366
4386
|
}
|
|
4367
4387
|
if (b = this._pathData.pi, k = this._pathData.f.v, f = 0, d = 1, C = 0, y = !0, A = b.segments, k < 0 && N.v.c)
|
|
4368
4388
|
for (b.tLength < Math.abs(k) && (k = -Math.abs(k) % b.tLength), f = A.length - 1, g = A[f].points, d = g.length - 1; k < 0; )
|
|
@@ -4372,28 +4392,28 @@ var si = { exports: {} };
|
|
|
4372
4392
|
M = p.length, h = 0, m = 0;
|
|
4373
4393
|
var O = t.finalSize * 1.2 * 0.714, F = !0, v, P, a, l, E;
|
|
4374
4394
|
l = s.length;
|
|
4375
|
-
var w, R = -1, j, D, Y, H = k, $ = f, ut = d,
|
|
4395
|
+
var w, R = -1, j, D, Y, H = k, $ = f, ut = d, Ct = -1, ct, nt, mt, K, B, Ft, Gt, It, Tt = "", Lt = this.defaultPropsArray, Vt;
|
|
4376
4396
|
if (t.j === 2 || t.j === 1) {
|
|
4377
|
-
var vt = 0,
|
|
4397
|
+
var vt = 0, Xt = 0, Yt = t.j === 2 ? -0.5 : -1, bt = 0, Ht = !0;
|
|
4378
4398
|
for (_ = 0; _ < M; _ += 1)
|
|
4379
4399
|
if (p[_].n) {
|
|
4380
|
-
for (vt && (vt +=
|
|
4400
|
+
for (vt && (vt += Xt); bt < _; )
|
|
4381
4401
|
p[bt].animatorJustifyOffset = vt, bt += 1;
|
|
4382
|
-
vt = 0,
|
|
4402
|
+
vt = 0, Ht = !0;
|
|
4383
4403
|
} else {
|
|
4384
4404
|
for (a = 0; a < l; a += 1)
|
|
4385
|
-
v = s[a].a, v.t.propType && (
|
|
4386
|
-
|
|
4405
|
+
v = s[a].a, v.t.propType && (Ht && t.j === 2 && (Xt += v.t.v * Yt), P = s[a].s, w = P.getMult(p[_].anIndexes[a], n.a[a].s.totalChars), w.length ? vt += v.t.v * w[0] * Yt : vt += v.t.v * w * Yt);
|
|
4406
|
+
Ht = !1;
|
|
4387
4407
|
}
|
|
4388
|
-
for (vt && (vt +=
|
|
4408
|
+
for (vt && (vt += Xt); bt < _; )
|
|
4389
4409
|
p[bt].animatorJustifyOffset = vt, bt += 1;
|
|
4390
4410
|
}
|
|
4391
4411
|
for (_ = 0; _ < M; _ += 1) {
|
|
4392
4412
|
if (r.reset(), ct = 1, p[_].n)
|
|
4393
|
-
h = 0, m += t.yOffset, m += F ? 1 : 0, k = H, F = !1, this._hasMaskedPath && (f = $, d = ut, g = A[f].points, u = g[d - 1], S = g[d], T = S.partialLength, C = 0),
|
|
4413
|
+
h = 0, m += t.yOffset, m += F ? 1 : 0, k = H, F = !1, this._hasMaskedPath && (f = $, d = ut, g = A[f].points, u = g[d - 1], S = g[d], T = S.partialLength, C = 0), Tt = "", It = "", Ft = "", Vt = "", Lt = this.defaultPropsArray;
|
|
4394
4414
|
else {
|
|
4395
4415
|
if (this._hasMaskedPath) {
|
|
4396
|
-
if (
|
|
4416
|
+
if (Ct !== p[_].line) {
|
|
4397
4417
|
switch (t.j) {
|
|
4398
4418
|
case 1:
|
|
4399
4419
|
k += x - t.lineWidths[p[_].line];
|
|
@@ -4402,7 +4422,7 @@ var si = { exports: {} };
|
|
|
4402
4422
|
k += (x - t.lineWidths[p[_].line]) / 2;
|
|
4403
4423
|
break;
|
|
4404
4424
|
}
|
|
4405
|
-
|
|
4425
|
+
Ct = p[_].line;
|
|
4406
4426
|
}
|
|
4407
4427
|
R !== p[_].ind && (p[R] && (k += p[R].extra), k += p[_].an / 2, R = p[_].ind), k += i[0] * p[_].an * 5e-3;
|
|
4408
4428
|
var St = 0;
|
|
@@ -4427,16 +4447,16 @@ var si = { exports: {} };
|
|
|
4427
4447
|
if (v.fc.propType)
|
|
4428
4448
|
for (B = 0; B < 3; B += 1)
|
|
4429
4449
|
w.length ? K[B] += (v.fc.v[B] - K[B]) * w[0] : K[B] += (v.fc.v[B] - K[B]) * w;
|
|
4430
|
-
v.fh.propType && (w.length ? K =
|
|
4450
|
+
v.fh.propType && (w.length ? K = _i(K, v.fh.v * w[0]) : K = _i(K, v.fh.v * w)), v.fs.propType && (w.length ? K = gi(K, v.fs.v * w[0]) : K = gi(K, v.fs.v * w)), v.fb.propType && (w.length ? K = yi(K, v.fb.v * w[0]) : K = yi(K, v.fb.v * w));
|
|
4431
4451
|
}
|
|
4432
4452
|
}
|
|
4433
4453
|
for (a = 0; a < l; a += 1)
|
|
4434
4454
|
v = s[a].a, v.p.propType && (P = s[a].s, w = P.getMult(p[_].anIndexes[a], n.a[a].s.totalChars), this._hasMaskedPath ? w.length ? r.translate(0, v.p.v[1] * w[0], -v.p.v[2] * w[1]) : r.translate(0, v.p.v[1] * w, -v.p.v[2] * w) : w.length ? r.translate(v.p.v[0] * w[0], v.p.v[1] * w[1], -v.p.v[2] * w[2]) : r.translate(v.p.v[0] * w, v.p.v[1] * w, -v.p.v[2] * w));
|
|
4435
|
-
if (t.strokeWidthAnim && (
|
|
4455
|
+
if (t.strokeWidthAnim && (Ft = mt < 0 ? 0 : mt), t.strokeColorAnim && (Gt = "rgb(" + Math.round(nt[0] * 255) + "," + Math.round(nt[1] * 255) + "," + Math.round(nt[2] * 255) + ")"), t.fillColorAnim && t.fc && (It = "rgb(" + Math.round(K[0] * 255) + "," + Math.round(K[1] * 255) + "," + Math.round(K[2] * 255) + ")"), this._hasMaskedPath) {
|
|
4436
4456
|
if (r.translate(0, -t.ls), r.translate(0, i[1] * O * 0.01 + m, 0), this._pathData.p.v) {
|
|
4437
4457
|
q = (S.point[1] - u.point[1]) / (S.point[0] - u.point[0]);
|
|
4438
|
-
var
|
|
4439
|
-
S.point[0] < u.point[0] && (
|
|
4458
|
+
var ie = Math.atan(q) * 180 / Math.PI;
|
|
4459
|
+
S.point[0] < u.point[0] && (ie += 180), r.rotate(-ie * Math.PI / 180);
|
|
4440
4460
|
}
|
|
4441
4461
|
r.translate(D, Y, 0), k -= i[0] * p[_].an * 5e-3, p[_ + 1] && R !== p[_ + 1].ind && (k += p[_].an / 2, k += t.tr * 1e-3 * t.finalSize);
|
|
4442
4462
|
} else {
|
|
@@ -4450,24 +4470,24 @@ var si = { exports: {} };
|
|
|
4450
4470
|
}
|
|
4451
4471
|
r.translate(0, -t.ls), r.translate(j, 0, 0), r.translate(i[0] * p[_].an * 5e-3, i[1] * O * 0.01, 0), h += p[_].l + t.tr * 1e-3 * t.finalSize;
|
|
4452
4472
|
}
|
|
4453
|
-
o === "html" ?
|
|
4473
|
+
o === "html" ? Tt = r.toCSS() : o === "svg" ? Tt = r.to2dCSS() : Lt = [r.props[0], r.props[1], r.props[2], r.props[3], r.props[4], r.props[5], r.props[6], r.props[7], r.props[8], r.props[9], r.props[10], r.props[11], r.props[12], r.props[13], r.props[14], r.props[15]], Vt = ct;
|
|
4454
4474
|
}
|
|
4455
|
-
c <= _ ? (E = new
|
|
4475
|
+
c <= _ ? (E = new ni(Vt, Ft, Gt, It, Tt, Lt), this.renderedLetters.push(E), c += 1, this.lettersChangedFlag = !0) : (E = this.renderedLetters[_], this.lettersChangedFlag = E.update(Vt, Ft, Gt, It, Tt, Lt) || this.lettersChangedFlag);
|
|
4456
4476
|
}
|
|
4457
4477
|
}
|
|
4458
|
-
},
|
|
4478
|
+
}, ee.prototype.getValue = function() {
|
|
4459
4479
|
this._elem.globalData.frameId !== this._frameId && (this._frameId = this._elem.globalData.frameId, this.iterateDynamicProperties());
|
|
4460
|
-
},
|
|
4480
|
+
}, ee.prototype.mHelper = new ot(), ee.prototype.defaultPropsArray = [], X([rt], ee);
|
|
4461
4481
|
function yt() {
|
|
4462
4482
|
}
|
|
4463
4483
|
yt.prototype.initElement = function(t, e, i) {
|
|
4464
|
-
this.lettersChangedFlag = !0, this.initFrame(), this.initBaseData(t, e, i), this.textProperty = new lt(this, t.t, this.dynamicProperties), this.textAnimator = new
|
|
4484
|
+
this.lettersChangedFlag = !0, this.initFrame(), this.initBaseData(t, e, i), this.textProperty = new lt(this, t.t, this.dynamicProperties), this.textAnimator = new ee(t.t, this.renderType, this), this.initTransform(t, e, i), this.initHierarchy(), this.initRenderable(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), this.createContent(), this.hide(), this.textAnimator.searchProperties(this.dynamicProperties);
|
|
4465
4485
|
}, yt.prototype.prepareFrame = function(t) {
|
|
4466
4486
|
this._mdf = !1, this.prepareRenderableFrame(t), this.prepareProperties(t, this.isInRange);
|
|
4467
4487
|
}, yt.prototype.createPathShape = function(t, e) {
|
|
4468
4488
|
var i, s = e.length, n, r = "";
|
|
4469
4489
|
for (i = 0; i < s; i += 1)
|
|
4470
|
-
e[i].ty === "sh" && (n = e[i].ks.k, r +=
|
|
4490
|
+
e[i].ty === "sh" && (n = e[i].ks.k, r += ss(n, n.i.length, !0, t));
|
|
4471
4491
|
return r;
|
|
4472
4492
|
}, yt.prototype.updateDocumentData = function(t, e) {
|
|
4473
4493
|
this.textProperty.updateDocumentData(t, e);
|
|
@@ -4487,23 +4507,23 @@ var si = { exports: {} };
|
|
|
4487
4507
|
e.translate(s, n, 0);
|
|
4488
4508
|
}, yt.prototype.buildColor = function(t) {
|
|
4489
4509
|
return "rgb(" + Math.round(t[0] * 255) + "," + Math.round(t[1] * 255) + "," + Math.round(t[2] * 255) + ")";
|
|
4490
|
-
}, yt.prototype.emptyProp = new
|
|
4510
|
+
}, yt.prototype.emptyProp = new ni(), yt.prototype.destroy = function() {
|
|
4491
4511
|
}, yt.prototype.validateText = function() {
|
|
4492
4512
|
(this.textProperty._mdf || this.textProperty._isFirstFrame) && (this.buildNewText(), this.textProperty._isFirstFrame = !1, this.textProperty._mdf = !1);
|
|
4493
4513
|
};
|
|
4494
4514
|
var fr = {
|
|
4495
4515
|
shapes: []
|
|
4496
4516
|
};
|
|
4497
|
-
function
|
|
4517
|
+
function Et(t, e, i) {
|
|
4498
4518
|
this.textSpans = [], this.renderType = "svg", this.initElement(t, e, i);
|
|
4499
4519
|
}
|
|
4500
|
-
X([
|
|
4520
|
+
X([jt, he, Pe, le, qt, ke, yt], Et), Et.prototype.createContent = function() {
|
|
4501
4521
|
this.data.singleShape && !this.globalData.fontManager.chars && (this.textContainer = W("text"));
|
|
4502
|
-
},
|
|
4522
|
+
}, Et.prototype.buildTextContents = function(t) {
|
|
4503
4523
|
for (var e = 0, i = t.length, s = [], n = ""; e < i; )
|
|
4504
4524
|
t[e] === String.fromCharCode(13) || t[e] === String.fromCharCode(3) ? (s.push(n), n = "") : n += t[e], e += 1;
|
|
4505
4525
|
return s.push(n), s;
|
|
4506
|
-
},
|
|
4526
|
+
}, Et.prototype.buildShapeData = function(t, e) {
|
|
4507
4527
|
if (t.shapes && t.shapes.length) {
|
|
4508
4528
|
var i = t.shapes[0];
|
|
4509
4529
|
if (i.it) {
|
|
@@ -4512,7 +4532,7 @@ var si = { exports: {} };
|
|
|
4512
4532
|
}
|
|
4513
4533
|
}
|
|
4514
4534
|
return t;
|
|
4515
|
-
},
|
|
4535
|
+
}, Et.prototype.buildNewText = function() {
|
|
4516
4536
|
this.addDynamicProperty(this);
|
|
4517
4537
|
var t, e, i = this.textProperty.currentData;
|
|
4518
4538
|
this.renderedLetters = tt(i ? i.l.length : 0), i.fc ? this.layerElement.setAttribute("fill", this.buildColor(i.fc)) : this.layerElement.setAttribute("fill", "rgba(0,0,0,0)"), i.sc && (this.layerElement.setAttribute("stroke", this.buildColor(i.sc)), this.layerElement.setAttribute("stroke-width", i.sw)), this.layerElement.setAttribute("font-size", i.finalSize);
|
|
@@ -4570,7 +4590,7 @@ var si = { exports: {} };
|
|
|
4570
4590
|
u = this.globalData.fontManager.getCharData(i.finalText[t], s.fStyle, this.globalData.fontManager.getFontByName(i.f).fFamily);
|
|
4571
4591
|
var A;
|
|
4572
4592
|
if (u.t === 1)
|
|
4573
|
-
A = new
|
|
4593
|
+
A = new Ce(u.data, this.globalData, this);
|
|
4574
4594
|
else {
|
|
4575
4595
|
var T = fr;
|
|
4576
4596
|
u.data && u.data.shapes && (T = this.buildShapeData(u.data, i.finalSize)), A = new Q(T, this.globalData, this);
|
|
@@ -4588,7 +4608,7 @@ var si = { exports: {} };
|
|
|
4588
4608
|
for (; t < this.textSpans.length; )
|
|
4589
4609
|
this.textSpans[t].span.style.display = "none", t += 1;
|
|
4590
4610
|
this._sizeChanged = !0;
|
|
4591
|
-
},
|
|
4611
|
+
}, Et.prototype.sourceRectAtTime = function() {
|
|
4592
4612
|
if (this.prepareFrame(this.comp.renderedFrame - this.data.st), this.renderInnerContent(), this._sizeChanged) {
|
|
4593
4613
|
this._sizeChanged = !1;
|
|
4594
4614
|
var t = this.layerElement.getBBox();
|
|
@@ -4600,11 +4620,11 @@ var si = { exports: {} };
|
|
|
4600
4620
|
};
|
|
4601
4621
|
}
|
|
4602
4622
|
return this.bbox;
|
|
4603
|
-
},
|
|
4623
|
+
}, Et.prototype.getValue = function() {
|
|
4604
4624
|
var t, e = this.textSpans.length, i;
|
|
4605
4625
|
for (this.renderedFrame = this.comp.renderedFrame, t = 0; t < e; t += 1)
|
|
4606
4626
|
i = this.textSpans[t].glyph, i && (i.prepareFrame(this.comp.renderedFrame - this.data.st), i._mdf && (this._mdf = !0));
|
|
4607
|
-
},
|
|
4627
|
+
}, Et.prototype.renderInnerContent = function() {
|
|
4608
4628
|
if (this.validateText(), (!this.data.singleShape || this._mdf) && (this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag), this.lettersChangedFlag || this.textAnimator.lettersChangedFlag)) {
|
|
4609
4629
|
this._sizeChanged = !0;
|
|
4610
4630
|
var t, e, i = this.textAnimator.renderedLetters, s = this.textProperty.currentData.l;
|
|
@@ -4614,37 +4634,37 @@ var si = { exports: {} };
|
|
|
4614
4634
|
s[t].n || (n = i[t], r = this.textSpans[t].span, o = this.textSpans[t].glyph, o && o.renderFrame(), n._mdf.m && r.setAttribute("transform", n.m), n._mdf.o && r.setAttribute("opacity", n.o), n._mdf.sw && r.setAttribute("stroke-width", n.sw), n._mdf.sc && r.setAttribute("stroke", n.sc), n._mdf.fc && r.setAttribute("fill", n.fc));
|
|
4615
4635
|
}
|
|
4616
4636
|
};
|
|
4617
|
-
function
|
|
4637
|
+
function ai(t, e, i) {
|
|
4618
4638
|
this.initElement(t, e, i);
|
|
4619
4639
|
}
|
|
4620
|
-
X([
|
|
4640
|
+
X([Ae], ai), ai.prototype.createContent = function() {
|
|
4621
4641
|
var t = W("rect");
|
|
4622
4642
|
t.setAttribute("width", this.data.sw), t.setAttribute("height", this.data.sh), t.setAttribute("fill", this.data.sc), this.layerElement.appendChild(t);
|
|
4623
4643
|
};
|
|
4624
|
-
function
|
|
4644
|
+
function Wt(t, e, i) {
|
|
4625
4645
|
this.initFrame(), this.initBaseData(t, e, i), this.initFrame(), this.initTransform(t, e, i), this.initHierarchy();
|
|
4626
4646
|
}
|
|
4627
|
-
|
|
4647
|
+
Wt.prototype.prepareFrame = function(t) {
|
|
4628
4648
|
this.prepareProperties(t, !0);
|
|
4629
|
-
},
|
|
4630
|
-
},
|
|
4649
|
+
}, Wt.prototype.renderFrame = function() {
|
|
4650
|
+
}, Wt.prototype.getBaseElement = function() {
|
|
4631
4651
|
return null;
|
|
4632
|
-
},
|
|
4633
|
-
},
|
|
4634
|
-
},
|
|
4635
|
-
}, X([
|
|
4652
|
+
}, Wt.prototype.destroy = function() {
|
|
4653
|
+
}, Wt.prototype.sourceRectAtTime = function() {
|
|
4654
|
+
}, Wt.prototype.hide = function() {
|
|
4655
|
+
}, X([jt, he, le, qt], Wt);
|
|
4636
4656
|
function it() {
|
|
4637
4657
|
}
|
|
4638
4658
|
X([ht], it), it.prototype.createNull = function(t) {
|
|
4639
|
-
return new
|
|
4659
|
+
return new Wt(t, this.globalData, this);
|
|
4640
4660
|
}, it.prototype.createShape = function(t) {
|
|
4641
4661
|
return new Q(t, this.globalData, this);
|
|
4642
4662
|
}, it.prototype.createText = function(t) {
|
|
4643
|
-
return new
|
|
4663
|
+
return new Et(t, this.globalData, this);
|
|
4644
4664
|
}, it.prototype.createImage = function(t) {
|
|
4645
|
-
return new
|
|
4665
|
+
return new Ae(t, this.globalData, this);
|
|
4646
4666
|
}, it.prototype.createSolid = function(t) {
|
|
4647
|
-
return new
|
|
4667
|
+
return new ai(t, this.globalData, this);
|
|
4648
4668
|
}, it.prototype.configAnimation = function(t) {
|
|
4649
4669
|
this.svgElement.setAttribute("xmlns", "http://www.w3.org/2000/svg"), this.svgElement.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), this.renderConfig.viewBoxSize ? this.svgElement.setAttribute("viewBox", this.renderConfig.viewBoxSize) : this.svgElement.setAttribute("viewBox", "0 0 " + t.w + " " + t.h), this.renderConfig.viewBoxOnly || (this.svgElement.setAttribute("width", t.w), this.svgElement.setAttribute("height", t.h), this.svgElement.style.width = "100%", this.svgElement.style.height = "100%", this.svgElement.style.transform = "translate3d(0,0,0)", this.svgElement.style.contentVisibility = this.renderConfig.contentVisibility), this.renderConfig.width && this.svgElement.setAttribute("width", this.renderConfig.width), this.renderConfig.height && this.svgElement.setAttribute("height", this.renderConfig.height), this.renderConfig.className && this.svgElement.setAttribute("class", this.renderConfig.className), this.renderConfig.id && this.svgElement.setAttribute("id", this.renderConfig.id), this.renderConfig.focusable !== void 0 && this.svgElement.setAttribute("focusable", this.renderConfig.focusable), this.svgElement.setAttribute("preserveAspectRatio", this.renderConfig.preserveAspectRatio), this.animationItem.wrapper.appendChild(this.svgElement);
|
|
4650
4670
|
var e = this.globalData.defs;
|
|
@@ -4671,7 +4691,7 @@ var si = { exports: {} };
|
|
|
4671
4691
|
if (!(e[t] || this.layers[t].ty === 99)) {
|
|
4672
4692
|
e[t] = !0;
|
|
4673
4693
|
var i = this.createItem(this.layers[t]);
|
|
4674
|
-
if (e[t] = i,
|
|
4694
|
+
if (e[t] = i, Ee() && (this.layers[t].ty === 0 && this.globalData.projectInterface.registerComposition(i), i.initExpressions()), this.appendElementInPos(i, t), this.layers[t].tt) {
|
|
4675
4695
|
var s = "tp" in this.layers[t] ? this.findIndexByInd(this.layers[t].tp) : t - 1;
|
|
4676
4696
|
if (s === -1)
|
|
4677
4697
|
return;
|
|
@@ -4718,11 +4738,11 @@ var si = { exports: {} };
|
|
|
4718
4738
|
}, it.prototype.show = function() {
|
|
4719
4739
|
this.layerElement.style.display = "block";
|
|
4720
4740
|
};
|
|
4721
|
-
function
|
|
4741
|
+
function xt() {
|
|
4722
4742
|
}
|
|
4723
|
-
X([
|
|
4743
|
+
X([jt, he, le, qt, ke], xt), xt.prototype.initElement = function(t, e, i) {
|
|
4724
4744
|
this.initFrame(), this.initBaseData(t, e, i), this.initTransform(t, e, i), this.initRenderable(), this.initHierarchy(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), (this.data.xt || !e.progressiveLoad) && this.buildAllItems(), this.hide();
|
|
4725
|
-
},
|
|
4745
|
+
}, xt.prototype.prepareFrame = function(t) {
|
|
4726
4746
|
if (this._mdf = !1, this.prepareRenderableFrame(t), this.prepareProperties(t, this.isInRange), !(!this.isInRange && !this.data.xt)) {
|
|
4727
4747
|
if (this.tm._placeholder)
|
|
4728
4748
|
this.renderedFrame = t / this.data.sr;
|
|
@@ -4734,30 +4754,30 @@ var si = { exports: {} };
|
|
|
4734
4754
|
for (this.completeLayers || this.checkLayers(this.renderedFrame), i = s - 1; i >= 0; i -= 1)
|
|
4735
4755
|
(this.completeLayers || this.elements[i]) && (this.elements[i].prepareFrame(this.renderedFrame - this.layers[i].st), this.elements[i]._mdf && (this._mdf = !0));
|
|
4736
4756
|
}
|
|
4737
|
-
},
|
|
4757
|
+
}, xt.prototype.renderInnerContent = function() {
|
|
4738
4758
|
var t, e = this.layers.length;
|
|
4739
4759
|
for (t = 0; t < e; t += 1)
|
|
4740
4760
|
(this.completeLayers || this.elements[t]) && this.elements[t].renderFrame();
|
|
4741
|
-
},
|
|
4761
|
+
}, xt.prototype.setElements = function(t) {
|
|
4742
4762
|
this.elements = t;
|
|
4743
|
-
},
|
|
4763
|
+
}, xt.prototype.getElements = function() {
|
|
4744
4764
|
return this.elements;
|
|
4745
|
-
},
|
|
4765
|
+
}, xt.prototype.destroyElements = function() {
|
|
4746
4766
|
var t, e = this.layers.length;
|
|
4747
4767
|
for (t = 0; t < e; t += 1)
|
|
4748
4768
|
this.elements[t] && this.elements[t].destroy();
|
|
4749
|
-
},
|
|
4769
|
+
}, xt.prototype.destroy = function() {
|
|
4750
4770
|
this.destroyElements(), this.destroyBaseElement();
|
|
4751
4771
|
};
|
|
4752
|
-
function
|
|
4772
|
+
function Ce(t, e, i) {
|
|
4753
4773
|
this.layers = t.layers, this.supports3d = !0, this.completeLayers = !1, this.pendingElements = [], this.elements = this.layers ? tt(this.layers.length) : [], this.initElement(t, e, i), this.tm = t.tm ? V.getProp(this, t.tm, 0, e.frameRate, this) : {
|
|
4754
4774
|
_placeholder: !0
|
|
4755
4775
|
};
|
|
4756
4776
|
}
|
|
4757
|
-
X([it,
|
|
4758
|
-
return new
|
|
4777
|
+
X([it, xt, Pe], Ce), Ce.prototype.createComp = function(t) {
|
|
4778
|
+
return new Ce(t, this.globalData, this);
|
|
4759
4779
|
};
|
|
4760
|
-
function
|
|
4780
|
+
function oi(t, e) {
|
|
4761
4781
|
this.animationItem = t, this.layers = null, this.renderedFrame = -1, this.svgElement = W("svg");
|
|
4762
4782
|
var i = "";
|
|
4763
4783
|
if (e && e.title) {
|
|
@@ -4799,16 +4819,15 @@ var si = { exports: {} };
|
|
|
4799
4819
|
renderConfig: this.renderConfig
|
|
4800
4820
|
}, this.elements = [], this.pendingElements = [], this.destroyed = !1, this.rendererType = "svg";
|
|
4801
4821
|
}
|
|
4802
|
-
return X([it],
|
|
4803
|
-
return new
|
|
4804
|
-
}, bs("svg",
|
|
4822
|
+
return X([it], oi), oi.prototype.createComp = function(t) {
|
|
4823
|
+
return new Ce(t, this.globalData, this);
|
|
4824
|
+
}, bs("svg", oi), Nt.registerModifier("tm", _t), Nt.registerModifier("pb", de), Nt.registerModifier("rp", wt), Nt.registerModifier("rd", me), Nt.registerModifier("zz", ye), Nt.registerModifier("op", _e), Z;
|
|
4805
4825
|
});
|
|
4806
|
-
})(
|
|
4807
|
-
|
|
4808
|
-
const vr = /* @__PURE__ */ pr(cr), mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4826
|
+
})(cr, Te);
|
|
4827
|
+
const vr = Te, mr = /* @__PURE__ */ ur({
|
|
4809
4828
|
__proto__: null,
|
|
4810
4829
|
default: vr
|
|
4811
|
-
},
|
|
4830
|
+
}, [Te]);
|
|
4812
4831
|
export {
|
|
4813
4832
|
mr as l
|
|
4814
4833
|
};
|