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