@purpurds/illustrative-icon 7.6.0 → 7.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LICENSE.txt +21 -21
- package/dist/animated-illustrative-icon-DHFverVA.js +10 -0
- package/dist/animated-illustrative-icon-DHFverVA.js.map +1 -0
- package/dist/{animated-illustrative-icon-Cxd93oY1.mjs → animated-illustrative-icon-DIij22F1.mjs} +312 -312
- package/dist/animated-illustrative-icon-DIij22F1.mjs.map +1 -0
- package/dist/animated-illustrative-icon.d.ts +4 -21
- package/dist/animated-illustrative-icon.d.ts.map +1 -1
- package/dist/components/404-error-duocolor.cjs.js +1 -1
- package/dist/components/404-error-duocolor.es.js +1 -1
- package/dist/components/404-error-offblack.cjs.js +1 -1
- package/dist/components/404-error-offblack.es.js +1 -1
- package/dist/components/cart-checkmark-duocolor.cjs.js +1 -1
- package/dist/components/cart-checkmark-duocolor.es.js +1 -1
- package/dist/components/cart-checkmark-offblack.cjs.js +1 -1
- package/dist/components/cart-checkmark-offblack.es.js +1 -1
- package/dist/components/checkmark-duocolor.cjs.js +1 -1
- package/dist/components/checkmark-duocolor.es.js +1 -1
- package/dist/components/checkmark-offblack.cjs.js +1 -1
- package/dist/components/checkmark-offblack.es.js +1 -1
- package/dist/components/document-checkmark-duocolor.cjs.js +1 -1
- package/dist/components/document-checkmark-duocolor.es.js +1 -1
- package/dist/components/document-checkmark-offblack.cjs.js +1 -1
- package/dist/components/document-checkmark-offblack.es.js +1 -1
- package/dist/components/getting-started-duocolor.cjs.js +1 -1
- package/dist/components/getting-started-duocolor.es.js +1 -1
- package/dist/components/getting-started-offblack.cjs.js +1 -1
- package/dist/components/getting-started-offblack.es.js +1 -1
- package/dist/components/hand-heart-duocolor.cjs.js +1 -1
- package/dist/components/hand-heart-duocolor.es.js +1 -1
- package/dist/components/hand-heart-offblack.cjs.js +1 -1
- package/dist/components/hand-heart-offblack.es.js +1 -1
- package/dist/components/id-error-duocolor.cjs.js +1 -1
- package/dist/components/id-error-duocolor.es.js +1 -1
- package/dist/components/id-error-offblack.cjs.js +1 -1
- package/dist/components/id-error-offblack.es.js +1 -1
- package/dist/components/search-duocolor.cjs.js +1 -1
- package/dist/components/search-duocolor.es.js +1 -1
- package/dist/components/search-field-duocolor.cjs.js +1 -1
- package/dist/components/search-field-duocolor.es.js +1 -1
- package/dist/components/search-field-offblack.cjs.js +1 -1
- package/dist/components/search-field-offblack.es.js +1 -1
- package/dist/components/search-offblack.cjs.js +1 -1
- package/dist/components/search-offblack.es.js +1 -1
- package/dist/components/search-question-duocolor.cjs.js +1 -1
- package/dist/components/search-question-duocolor.es.js +1 -1
- package/dist/components/search-question-offblack.cjs.js +1 -1
- package/dist/components/search-question-offblack.es.js +1 -1
- package/dist/components/settings-time-duocolor.cjs.js +1 -1
- package/dist/components/settings-time-duocolor.es.js +1 -1
- package/dist/components/settings-time-offblack.cjs.js +1 -1
- package/dist/components/settings-time-offblack.es.js +1 -1
- package/dist/components/support-checkmark-duocolor.cjs.js +1 -1
- package/dist/components/support-checkmark-duocolor.es.js +1 -1
- package/dist/components/support-checkmark-offblack.cjs.js +1 -1
- package/dist/components/support-checkmark-offblack.es.js +1 -1
- package/dist/components/technical-error-duocolor.cjs.js +1 -1
- package/dist/components/technical-error-duocolor.es.js +1 -1
- package/dist/components/technical-error-offblack.cjs.js +1 -1
- package/dist/components/technical-error-offblack.es.js +1 -1
- package/dist/components/user-checkmark-duocolor.cjs.js +1 -1
- package/dist/components/user-checkmark-duocolor.es.js +1 -1
- package/dist/components/user-checkmark-offblack.cjs.js +1 -1
- package/dist/components/user-checkmark-offblack.es.js +1 -1
- package/dist/components/user-error-duocolor.cjs.js +1 -1
- package/dist/components/user-error-duocolor.es.js +1 -1
- package/dist/components/user-error-offblack.cjs.js +1 -1
- package/dist/components/user-error-offblack.es.js +1 -1
- package/dist/components/user-lock-duocolor.cjs.js +1 -1
- package/dist/components/user-lock-duocolor.es.js +1 -1
- package/dist/components/user-lock-offblack.cjs.js +1 -1
- package/dist/components/user-lock-offblack.es.js +1 -1
- package/dist/components/user-plus-duocolor.cjs.js +1 -1
- package/dist/components/user-plus-duocolor.es.js +1 -1
- package/dist/components/user-plus-offblack.cjs.js +1 -1
- package/dist/components/user-plus-offblack.es.js +1 -1
- package/dist/components/user-settings-duocolor.cjs.js +1 -1
- package/dist/components/user-settings-duocolor.es.js +1 -1
- package/dist/components/user-settings-offblack.cjs.js +1 -1
- package/dist/components/user-settings-offblack.es.js +1 -1
- package/dist/illustrative-icon.cjs.js +3 -3
- package/dist/illustrative-icon.cjs.js.map +1 -1
- package/dist/illustrative-icon.es.js +308 -308
- package/dist/illustrative-icon.es.js.map +1 -1
- package/dist/static-illustrative-icon-D7TEjcF7.js.map +1 -1
- package/dist/static-illustrative-icon-z57e5Jl2.mjs.map +1 -1
- package/dist/static-illustrative-icon.d.ts +4 -9
- package/dist/static-illustrative-icon.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/animated-illustrative-icon.tsx +5 -15
- package/src/illustrative-icon.stories.tsx +0 -1
- package/src/static-illustrative-icon.tsx +5 -8
- package/dist/animated-illustrative-icon-C4tsMFn9.js +0 -10
- package/dist/animated-illustrative-icon-C4tsMFn9.js.map +0 -1
- package/dist/animated-illustrative-icon-Cxd93oY1.mjs.map +0 -1
|
@@ -3,16 +3,16 @@ import { forwardRef as vr, useRef as ps, useState as mr, useEffect as us } from
|
|
|
3
3
|
function gr(kt) {
|
|
4
4
|
return kt && kt.__esModule && Object.prototype.hasOwnProperty.call(kt, "default") ? kt.default : kt;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var Le = { exports: {} }, yr = Le.exports, cs;
|
|
7
7
|
function _r() {
|
|
8
8
|
return cs || (cs = 1, function(kt, ue) {
|
|
9
|
-
typeof navigator < "u" && function(ce, Et) {
|
|
9
|
+
typeof document < "u" && typeof navigator < "u" && function(ce, Et) {
|
|
10
10
|
kt.exports = Et();
|
|
11
11
|
}(yr, function() {
|
|
12
|
-
var ce = "http://www.w3.org/2000/svg", Et = "",
|
|
13
|
-
|
|
12
|
+
var ce = "http://www.w3.org/2000/svg", Et = "", Ve = !1, de = -999999, Kt = function(e) {
|
|
13
|
+
Ve = !!e;
|
|
14
14
|
}, xt = function() {
|
|
15
|
-
return
|
|
15
|
+
return Ve;
|
|
16
16
|
}, ve = function(e) {
|
|
17
17
|
Et = e;
|
|
18
18
|
}, at = function() {
|
|
@@ -29,7 +29,7 @@ function _r() {
|
|
|
29
29
|
Object.prototype.hasOwnProperty.call(n, r) && (e.prototype[r] = n[r]);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function $e(t) {
|
|
33
33
|
function e() {
|
|
34
34
|
}
|
|
35
35
|
return e.prototype = t, e;
|
|
@@ -125,8 +125,8 @@ function _r() {
|
|
|
125
125
|
length: t
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
var me = !0, ge = null, re = "",
|
|
129
|
-
function
|
|
128
|
+
var me = !0, ge = null, re = "", Re = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), At = Math.pow, gi = Math.sqrt, Jt = Math.floor, ds = Math.min, yi = 150, Q = Math.PI / 180, Nt = 0.5519;
|
|
129
|
+
function ti(t, e, i, s) {
|
|
130
130
|
this.type = t, this.currentTime = e, this.totalTime = i, this.direction = s < 0 ? -1 : 1;
|
|
131
131
|
}
|
|
132
132
|
function _i(t, e) {
|
|
@@ -153,7 +153,7 @@ function _r() {
|
|
|
153
153
|
return t += 1, re + "__lottie_element_" + t;
|
|
154
154
|
};
|
|
155
155
|
}();
|
|
156
|
-
function
|
|
156
|
+
function ei(t, e, i) {
|
|
157
157
|
var s, n, r, o, c, h, m, _;
|
|
158
158
|
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) {
|
|
159
159
|
case 0:
|
|
@@ -177,7 +177,7 @@ function _r() {
|
|
|
177
177
|
}
|
|
178
178
|
return [s, n, r];
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function ii(t, e, i) {
|
|
181
181
|
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;
|
|
182
182
|
switch (s) {
|
|
183
183
|
case n:
|
|
@@ -196,16 +196,16 @@ function _r() {
|
|
|
196
196
|
return [o, c, h];
|
|
197
197
|
}
|
|
198
198
|
function ki(t, e) {
|
|
199
|
-
var i =
|
|
200
|
-
return i[1] += e, i[1] > 1 ? i[1] = 1 : i[1] <= 0 && (i[1] = 0),
|
|
199
|
+
var i = ii(t[0] * 255, t[1] * 255, t[2] * 255);
|
|
200
|
+
return i[1] += e, i[1] > 1 ? i[1] = 1 : i[1] <= 0 && (i[1] = 0), ei(i[0], i[1], i[2]);
|
|
201
201
|
}
|
|
202
202
|
function Ai(t, e) {
|
|
203
|
-
var i =
|
|
204
|
-
return i[2] += e, i[2] > 1 ? i[2] = 1 : i[2] < 0 && (i[2] = 0),
|
|
203
|
+
var i = ii(t[0] * 255, t[1] * 255, t[2] * 255);
|
|
204
|
+
return i[2] += e, i[2] > 1 ? i[2] = 1 : i[2] < 0 && (i[2] = 0), ei(i[0], i[1], i[2]);
|
|
205
205
|
}
|
|
206
206
|
function wi(t, e) {
|
|
207
|
-
var i =
|
|
208
|
-
return i[0] += e / 360, i[0] > 1 ? i[0] -= 1 : i[0] < 0 && (i[0] += 1),
|
|
207
|
+
var i = ii(t[0] * 255, t[1] * 255, t[2] * 255);
|
|
208
|
+
return i[0] += e / 360, i[0] > 1 ? i[0] -= 1 : i[0] < 0 && (i[0] += 1), ei(i[0], i[1], i[2]);
|
|
209
209
|
}
|
|
210
210
|
(function() {
|
|
211
211
|
var t = [], e, i;
|
|
@@ -221,11 +221,11 @@ function _r() {
|
|
|
221
221
|
return me;
|
|
222
222
|
}, _s = function(e) {
|
|
223
223
|
ge = e;
|
|
224
|
-
},
|
|
224
|
+
}, Oe = function() {
|
|
225
225
|
return ge;
|
|
226
|
-
},
|
|
226
|
+
}, Be = function(e) {
|
|
227
227
|
yi = e;
|
|
228
|
-
},
|
|
228
|
+
}, Ne = function() {
|
|
229
229
|
return yi;
|
|
230
230
|
}, bs = function(e) {
|
|
231
231
|
re = e;
|
|
@@ -233,13 +233,13 @@ function _r() {
|
|
|
233
233
|
function W(t) {
|
|
234
234
|
return document.createElementNS(ce, t);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function si(t) {
|
|
237
237
|
"@babel/helpers - typeof";
|
|
238
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
239
|
-
return typeof
|
|
240
|
-
} :
|
|
241
|
-
return
|
|
242
|
-
},
|
|
238
|
+
return si = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
239
|
+
return typeof e;
|
|
240
|
+
} : function(e) {
|
|
241
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
242
|
+
}, si(t);
|
|
243
243
|
}
|
|
244
244
|
var ye = /* @__PURE__ */ function() {
|
|
245
245
|
var t = 1, e = [], i, s, n = {
|
|
@@ -270,7 +270,7 @@ function _r() {
|
|
|
270
270
|
s || (s = o(function(b) {
|
|
271
271
|
function k() {
|
|
272
272
|
function C(F, d) {
|
|
273
|
-
var P, a, l = F.length, E, w, R,
|
|
273
|
+
var P, a, l = F.length, E, w, R, z;
|
|
274
274
|
for (a = 0; a < l; a += 1)
|
|
275
275
|
if (P = F[a], "ks" in P && !P.completed) {
|
|
276
276
|
if (P.completed = !0, P.hasMask) {
|
|
@@ -279,7 +279,7 @@ function _r() {
|
|
|
279
279
|
if (D[E].pt.k.i)
|
|
280
280
|
g(D[E].pt.k);
|
|
281
281
|
else
|
|
282
|
-
for (
|
|
282
|
+
for (z = D[E].pt.k.length, R = 0; R < z; R += 1)
|
|
283
283
|
D[E].pt.k[R].s && g(D[E].pt.k[R].s[0]), D[E].pt.k[R].e && g(D[E].pt.k[R].e[0]);
|
|
284
284
|
}
|
|
285
285
|
P.ty === 0 ? (P.layers = f(P.refId, d), C(P.layers, d)) : P.ty === 4 ? u(P.shapes) : P.ty === 5 && G(P);
|
|
@@ -438,7 +438,7 @@ function _r() {
|
|
|
438
438
|
a.assets[l].layers && P(a.assets[l].layers);
|
|
439
439
|
}
|
|
440
440
|
};
|
|
441
|
-
}(),
|
|
441
|
+
}(), q = /* @__PURE__ */ function() {
|
|
442
442
|
var F = [4, 1, 9];
|
|
443
443
|
function d(a) {
|
|
444
444
|
var l, E = a.length, w, R;
|
|
@@ -478,11 +478,11 @@ function _r() {
|
|
|
478
478
|
else a[l].ty === "gr" && d(a[l].it);
|
|
479
479
|
}
|
|
480
480
|
function P(a) {
|
|
481
|
-
var l, E, w = a.length, R,
|
|
481
|
+
var l, E, w = a.length, R, z, D, Y;
|
|
482
482
|
for (E = 0; E < w; E += 1) {
|
|
483
483
|
if (l = a[E], l.hasMask) {
|
|
484
484
|
var H = l.masksProperties;
|
|
485
|
-
for (
|
|
485
|
+
for (z = H.length, R = 0; R < z; R += 1)
|
|
486
486
|
if (H[R].pt.k.i)
|
|
487
487
|
H[R].pt.k.c = H[R].cl;
|
|
488
488
|
else
|
|
@@ -501,18 +501,18 @@ function _r() {
|
|
|
501
501
|
};
|
|
502
502
|
}();
|
|
503
503
|
function L(F) {
|
|
504
|
-
F.__complete || (
|
|
504
|
+
F.__complete || (q(F), T(F), x(F), I(F), N(F), C(F.layers, F.assets), y(F.chars, F.assets), F.__complete = !0);
|
|
505
505
|
}
|
|
506
506
|
function G(F) {
|
|
507
507
|
F.t.a.length === 0 && "m" in F.t.p;
|
|
508
508
|
}
|
|
509
509
|
var O = {};
|
|
510
|
-
return O.completeData = L, O.checkColors =
|
|
510
|
+
return O.completeData = L, O.checkColors = q, O.checkChars = x, O.checkPathProperties = I, O.checkShapes = N, O.completeLayers = C, O;
|
|
511
511
|
}
|
|
512
512
|
if (r.dataManager || (r.dataManager = k()), r.assetLoader || (r.assetLoader = /* @__PURE__ */ function() {
|
|
513
513
|
function C(v) {
|
|
514
514
|
var f = v.getResponseHeader("content-type");
|
|
515
|
-
return f && v.responseType === "json" && f.indexOf("json") !== -1 || v.response &&
|
|
515
|
+
return f && v.responseType === "json" && f.indexOf("json") !== -1 || v.response && si(v.response) === "object" ? v.response : v.response && typeof v.response == "string" ? JSON.parse(v.response) : v.responseText ? JSON.parse(v.responseText) : null;
|
|
516
516
|
}
|
|
517
517
|
function y(v, f, u, g) {
|
|
518
518
|
var A, T = new XMLHttpRequest();
|
|
@@ -652,7 +652,7 @@ function _r() {
|
|
|
652
652
|
}
|
|
653
653
|
function r(y) {
|
|
654
654
|
var v = s(y, this.assetsPath, this.path), f = W("image");
|
|
655
|
-
|
|
655
|
+
Re ? this.testImageLoaded(f) : f.addEventListener("load", this._imageLoaded, !1), f.addEventListener("error", (function() {
|
|
656
656
|
u.img = t, this._imageLoaded();
|
|
657
657
|
}).bind(this), !1), f.setAttributeNS("http://www.w3.org/1999/xlink", "href", v), this._elementHelper.append ? this._elementHelper.append(f) : this._elementHelper.appendChild(f);
|
|
658
658
|
var u = {
|
|
@@ -814,29 +814,29 @@ function _r() {
|
|
|
814
814
|
return t;
|
|
815
815
|
return "";
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function je(t) {
|
|
818
818
|
"@babel/helpers - typeof";
|
|
819
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
820
|
-
return typeof
|
|
821
|
-
} :
|
|
822
|
-
return
|
|
823
|
-
},
|
|
824
|
-
}
|
|
825
|
-
var
|
|
826
|
-
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 = pt(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = ys(), this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = ks(), this.imagePreloader = new Ss(), this.audioController = Ut(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new
|
|
819
|
+
return je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
820
|
+
return typeof e;
|
|
821
|
+
} : function(e) {
|
|
822
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
823
|
+
}, je(t);
|
|
824
|
+
}
|
|
825
|
+
var j = function() {
|
|
826
|
+
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 = pt(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = ys(), this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = ks(), this.imagePreloader = new Ss(), this.audioController = Ut(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new ti("drawnFrame", 0, 0, 0), this.expressionsPlugin = Oe();
|
|
827
827
|
};
|
|
828
|
-
X([Ci],
|
|
828
|
+
X([Ci], j), j.prototype.setParams = function(t) {
|
|
829
829
|
(t.wrapper || t.container) && (this.wrapper = t.wrapper || t.container);
|
|
830
830
|
var e = "svg";
|
|
831
831
|
t.animType ? e = t.animType : t.renderer && (e = t.renderer);
|
|
832
832
|
var i = ws(e);
|
|
833
833
|
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")), ye.loadAnimation(t.path, this.configAnimation, this.onSetupError));
|
|
834
|
-
},
|
|
834
|
+
}, j.prototype.onSetupError = function() {
|
|
835
835
|
this.trigger("data_failed");
|
|
836
|
-
},
|
|
836
|
+
}, j.prototype.setupAnimation = function(t) {
|
|
837
837
|
ye.completeAnimation(t, this.configAnimation);
|
|
838
|
-
},
|
|
839
|
-
e &&
|
|
838
|
+
}, j.prototype.setData = function(t, e) {
|
|
839
|
+
e && je(e) !== "object" && (e = JSON.parse(e));
|
|
840
840
|
var i = {
|
|
841
841
|
wrapper: t,
|
|
842
842
|
animationData: e
|
|
@@ -848,7 +848,7 @@ function _r() {
|
|
|
848
848
|
i.autoplay = r !== "false", i.name = s.getNamedItem("data-name") ? s.getNamedItem("data-name").value : s.getNamedItem("data-bm-name") ? s.getNamedItem("data-bm-name").value : s.getNamedItem("bm-name") ? s.getNamedItem("bm-name").value : "";
|
|
849
849
|
var o = s.getNamedItem("data-anim-prerender") ? s.getNamedItem("data-anim-prerender").value : s.getNamedItem("data-bm-prerender") ? s.getNamedItem("data-bm-prerender").value : s.getNamedItem("bm-prerender") ? s.getNamedItem("bm-prerender").value : "";
|
|
850
850
|
o === "false" && (i.prerender = !1), i.path ? this.setParams(i) : this.trigger("destroy");
|
|
851
|
-
},
|
|
851
|
+
}, j.prototype.includeLayers = function(t) {
|
|
852
852
|
t.op > this.animationData.op && (this.animationData.op = t.op, this.totalFrames = Math.floor(t.op - this.animationData.ip));
|
|
853
853
|
var e = this.animationData.layers, i, s = e.length, n = t.layers, r, o = n.length;
|
|
854
854
|
for (r = 0; r < o; r += 1)
|
|
@@ -863,11 +863,11 @@ function _r() {
|
|
|
863
863
|
for (s = t.assets.length, i = 0; i < s; i += 1)
|
|
864
864
|
this.animationData.assets.push(t.assets[i]);
|
|
865
865
|
this.animationData.__complete = !1, ye.completeAnimation(this.animationData, this.onSegmentComplete);
|
|
866
|
-
},
|
|
866
|
+
}, j.prototype.onSegmentComplete = function(t) {
|
|
867
867
|
this.animationData = t;
|
|
868
|
-
var e =
|
|
868
|
+
var e = Oe();
|
|
869
869
|
e && e.initExpressions(this), this.loadNextSegment();
|
|
870
|
-
},
|
|
870
|
+
}, j.prototype.loadNextSegment = function() {
|
|
871
871
|
var t = this.animationData.segments;
|
|
872
872
|
if (!t || t.length === 0 || !this.autoloadSegments) {
|
|
873
873
|
this.trigger("data_ready"), this.timeCompleted = this.totalFrames;
|
|
@@ -879,58 +879,58 @@ function _r() {
|
|
|
879
879
|
this.segmentPos += 1, ye.loadData(i, this.includeLayers.bind(this), (function() {
|
|
880
880
|
this.trigger("data_failed");
|
|
881
881
|
}).bind(this));
|
|
882
|
-
},
|
|
882
|
+
}, j.prototype.loadSegments = function() {
|
|
883
883
|
var t = this.animationData.segments;
|
|
884
884
|
t || (this.timeCompleted = this.totalFrames), this.loadNextSegment();
|
|
885
|
-
},
|
|
885
|
+
}, j.prototype.imagesLoaded = function() {
|
|
886
886
|
this.trigger("loaded_images"), this.checkLoaded();
|
|
887
|
-
},
|
|
887
|
+
}, j.prototype.preloadImages = function() {
|
|
888
888
|
this.imagePreloader.setAssetsPath(this.assetsPath), this.imagePreloader.setPath(this.path), this.imagePreloader.loadAssets(this.animationData.assets, this.imagesLoaded.bind(this));
|
|
889
|
-
},
|
|
889
|
+
}, j.prototype.configAnimation = function(t) {
|
|
890
890
|
if (this.renderer)
|
|
891
891
|
try {
|
|
892
892
|
this.animationData = t, this.initialSegment ? (this.totalFrames = Math.floor(this.initialSegment[1] - this.initialSegment[0]), this.firstFrame = Math.round(this.initialSegment[0])) : (this.totalFrames = Math.floor(this.animationData.op - this.animationData.ip), this.firstFrame = Math.round(this.animationData.ip)), this.renderer.configAnimation(t), t.assets || (t.assets = []), this.assets = this.animationData.assets, this.frameRate = this.animationData.fr, this.frameMult = this.animationData.fr / 1e3, this.renderer.searchExtraCompositions(t.assets), this.markers = Ps(t.markers || []), this.trigger("config_ready"), this.preloadImages(), this.loadSegments(), this.updaFrameModifier(), this.waitForFontsLoaded(), this.isPaused && this.audioController.pause();
|
|
893
893
|
} catch (e) {
|
|
894
894
|
this.triggerConfigError(e);
|
|
895
895
|
}
|
|
896
|
-
},
|
|
896
|
+
}, j.prototype.waitForFontsLoaded = function() {
|
|
897
897
|
this.renderer && (this.renderer.globalData.fontManager.isLoaded ? this.checkLoaded() : setTimeout(this.waitForFontsLoaded.bind(this), 20));
|
|
898
|
-
},
|
|
898
|
+
}, j.prototype.checkLoaded = function() {
|
|
899
899
|
if (!this.isLoaded && this.renderer.globalData.fontManager.isLoaded && (this.imagePreloader.loadedImages() || this.renderer.rendererType !== "canvas") && this.imagePreloader.loadedFootages()) {
|
|
900
900
|
this.isLoaded = !0;
|
|
901
|
-
var t =
|
|
901
|
+
var t = Oe();
|
|
902
902
|
t && t.initExpressions(this), this.renderer.initItems(), setTimeout((function() {
|
|
903
903
|
this.trigger("DOMLoaded");
|
|
904
904
|
}).bind(this), 0), this.gotoFrame(), this.autoplay && this.play();
|
|
905
905
|
}
|
|
906
|
-
},
|
|
906
|
+
}, j.prototype.resize = function(t, e) {
|
|
907
907
|
var i = typeof t == "number" ? t : void 0, s = typeof e == "number" ? e : void 0;
|
|
908
908
|
this.renderer.updateContainerSize(i, s);
|
|
909
|
-
},
|
|
909
|
+
}, j.prototype.setSubframe = function(t) {
|
|
910
910
|
this.isSubframeEnabled = !!t;
|
|
911
|
-
},
|
|
911
|
+
}, j.prototype.gotoFrame = function() {
|
|
912
912
|
this.currentFrame = this.isSubframeEnabled ? this.currentRawFrame : ~~this.currentRawFrame, this.timeCompleted !== this.totalFrames && this.currentFrame > this.timeCompleted && (this.currentFrame = this.timeCompleted), this.trigger("enterFrame"), this.renderFrame(), this.trigger("drawnFrame");
|
|
913
|
-
},
|
|
913
|
+
}, j.prototype.renderFrame = function() {
|
|
914
914
|
if (!(this.isLoaded === !1 || !this.renderer))
|
|
915
915
|
try {
|
|
916
916
|
this.expressionsPlugin && this.expressionsPlugin.resetFrame(), this.renderer.renderFrame(this.currentFrame + this.firstFrame);
|
|
917
917
|
} catch (t) {
|
|
918
918
|
this.triggerRenderFrameError(t);
|
|
919
919
|
}
|
|
920
|
-
},
|
|
920
|
+
}, j.prototype.play = function(t) {
|
|
921
921
|
t && this.name !== t || this.isPaused === !0 && (this.isPaused = !1, this.trigger("_play"), this.audioController.resume(), this._idle && (this._idle = !1, this.trigger("_active")));
|
|
922
|
-
},
|
|
922
|
+
}, j.prototype.pause = function(t) {
|
|
923
923
|
t && this.name !== t || this.isPaused === !1 && (this.isPaused = !0, this.trigger("_pause"), this._idle = !0, this.trigger("_idle"), this.audioController.pause());
|
|
924
|
-
},
|
|
924
|
+
}, j.prototype.togglePause = function(t) {
|
|
925
925
|
t && this.name !== t || (this.isPaused === !0 ? this.play() : this.pause());
|
|
926
|
-
},
|
|
926
|
+
}, j.prototype.stop = function(t) {
|
|
927
927
|
t && this.name !== t || (this.pause(), this.playCount = 0, this._completedLoop = !1, this.setCurrentRawFrameValue(0));
|
|
928
|
-
},
|
|
928
|
+
}, j.prototype.getMarkerData = function(t) {
|
|
929
929
|
for (var e, i = 0; i < this.markers.length; i += 1)
|
|
930
930
|
if (e = this.markers[i], e.payload && e.payload.name === t)
|
|
931
931
|
return e;
|
|
932
932
|
return null;
|
|
933
|
-
},
|
|
933
|
+
}, j.prototype.goToAndStop = function(t, e, i) {
|
|
934
934
|
if (!(i && this.name !== i)) {
|
|
935
935
|
var s = Number(t);
|
|
936
936
|
if (isNaN(s)) {
|
|
@@ -939,7 +939,7 @@ function _r() {
|
|
|
939
939
|
} else e ? this.setCurrentRawFrameValue(t) : this.setCurrentRawFrameValue(t * this.frameModifier);
|
|
940
940
|
this.pause();
|
|
941
941
|
}
|
|
942
|
-
},
|
|
942
|
+
}, j.prototype.goToAndPlay = function(t, e, i) {
|
|
943
943
|
if (!(i && this.name !== i)) {
|
|
944
944
|
var s = Number(t);
|
|
945
945
|
if (isNaN(s)) {
|
|
@@ -949,51 +949,51 @@ function _r() {
|
|
|
949
949
|
this.goToAndStop(s, e, i);
|
|
950
950
|
this.play();
|
|
951
951
|
}
|
|
952
|
-
},
|
|
952
|
+
}, j.prototype.advanceTime = function(t) {
|
|
953
953
|
if (!(this.isPaused === !0 || this.isLoaded === !1)) {
|
|
954
954
|
var e = this.currentRawFrame + t * this.frameModifier, i = !1;
|
|
955
955
|
e >= this.totalFrames - 1 && this.frameModifier > 0 ? !this.loop || this.playCount === this.loop ? this.checkSegments(e > this.totalFrames ? e % this.totalFrames : 0) || (i = !0, e = this.totalFrames - 1) : e >= this.totalFrames ? (this.playCount += 1, this.checkSegments(e % this.totalFrames) || (this.setCurrentRawFrameValue(e % this.totalFrames), this._completedLoop = !0, this.trigger("loopComplete"))) : this.setCurrentRawFrameValue(e) : e < 0 ? this.checkSegments(e % this.totalFrames) || (this.loop && !(this.playCount-- <= 0 && this.loop !== !0) ? (this.setCurrentRawFrameValue(this.totalFrames + e % this.totalFrames), this._completedLoop ? this.trigger("loopComplete") : this._completedLoop = !0) : (i = !0, e = 0)) : this.setCurrentRawFrameValue(e), i && (this.setCurrentRawFrameValue(e), this.pause(), this.trigger("complete"));
|
|
956
956
|
}
|
|
957
|
-
},
|
|
957
|
+
}, j.prototype.adjustSegment = function(t, e) {
|
|
958
958
|
this.playCount = 0, t[1] < t[0] ? (this.frameModifier > 0 && (this.playSpeed < 0 ? this.setSpeed(-this.playSpeed) : this.setDirection(-1)), this.totalFrames = t[0] - t[1], this.timeCompleted = this.totalFrames, this.firstFrame = t[1], this.setCurrentRawFrameValue(this.totalFrames - 1e-3 - e)) : t[1] > t[0] && (this.frameModifier < 0 && (this.playSpeed < 0 ? this.setSpeed(-this.playSpeed) : this.setDirection(1)), this.totalFrames = t[1] - t[0], this.timeCompleted = this.totalFrames, this.firstFrame = t[0], this.setCurrentRawFrameValue(1e-3 + e)), this.trigger("segmentStart");
|
|
959
|
-
},
|
|
959
|
+
}, j.prototype.setSegment = function(t, e) {
|
|
960
960
|
var i = -1;
|
|
961
961
|
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);
|
|
962
|
-
},
|
|
963
|
-
if (e && (this.segments.length = 0),
|
|
962
|
+
}, j.prototype.playSegments = function(t, e) {
|
|
963
|
+
if (e && (this.segments.length = 0), je(t[0]) === "object") {
|
|
964
964
|
var i, s = t.length;
|
|
965
965
|
for (i = 0; i < s; i += 1)
|
|
966
966
|
this.segments.push(t[i]);
|
|
967
967
|
} else
|
|
968
968
|
this.segments.push(t);
|
|
969
969
|
this.segments.length && e && this.adjustSegment(this.segments.shift(), 0), this.isPaused && this.play();
|
|
970
|
-
},
|
|
970
|
+
}, j.prototype.resetSegments = function(t) {
|
|
971
971
|
this.segments.length = 0, this.segments.push([this.animationData.ip, this.animationData.op]), t && this.checkSegments(0);
|
|
972
|
-
},
|
|
972
|
+
}, j.prototype.checkSegments = function(t) {
|
|
973
973
|
return this.segments.length ? (this.adjustSegment(this.segments.shift(), t), !0) : !1;
|
|
974
|
-
},
|
|
974
|
+
}, j.prototype.destroy = function(t) {
|
|
975
975
|
t && this.name !== t || !this.renderer || (this.renderer.destroy(), this.imagePreloader.destroy(), this.trigger("destroy"), this._cbs = null, this.onEnterFrame = null, this.onLoopComplete = null, this.onComplete = null, this.onSegmentStart = null, this.onDestroy = null, this.renderer = null, this.expressionsPlugin = null, this.imagePreloader = null, this.projectInterface = null);
|
|
976
|
-
},
|
|
976
|
+
}, j.prototype.setCurrentRawFrameValue = function(t) {
|
|
977
977
|
this.currentRawFrame = t, this.gotoFrame();
|
|
978
|
-
},
|
|
978
|
+
}, j.prototype.setSpeed = function(t) {
|
|
979
979
|
this.playSpeed = t, this.updaFrameModifier();
|
|
980
|
-
},
|
|
980
|
+
}, j.prototype.setDirection = function(t) {
|
|
981
981
|
this.playDirection = t < 0 ? -1 : 1, this.updaFrameModifier();
|
|
982
|
-
},
|
|
982
|
+
}, j.prototype.setLoop = function(t) {
|
|
983
983
|
this.loop = t;
|
|
984
|
-
},
|
|
984
|
+
}, j.prototype.setVolume = function(t, e) {
|
|
985
985
|
e && this.name !== e || this.audioController.setVolume(t);
|
|
986
|
-
},
|
|
986
|
+
}, j.prototype.getVolume = function() {
|
|
987
987
|
return this.audioController.getVolume();
|
|
988
|
-
},
|
|
988
|
+
}, j.prototype.mute = function(t) {
|
|
989
989
|
t && this.name !== t || this.audioController.mute();
|
|
990
|
-
},
|
|
990
|
+
}, j.prototype.unmute = function(t) {
|
|
991
991
|
t && this.name !== t || this.audioController.unmute();
|
|
992
|
-
},
|
|
992
|
+
}, j.prototype.updaFrameModifier = function() {
|
|
993
993
|
this.frameModifier = this.frameMult * this.playSpeed * this.playDirection, this.audioController.setRate(this.playSpeed * this.playDirection);
|
|
994
|
-
},
|
|
994
|
+
}, j.prototype.getPath = function() {
|
|
995
995
|
return this.path;
|
|
996
|
-
},
|
|
996
|
+
}, j.prototype.getAssetsPath = function(t) {
|
|
997
997
|
var e = "";
|
|
998
998
|
if (t.e)
|
|
999
999
|
e = t.p;
|
|
@@ -1003,30 +1003,30 @@ function _r() {
|
|
|
1003
1003
|
} else
|
|
1004
1004
|
e = this.path, e += t.u ? t.u : "", e += t.p;
|
|
1005
1005
|
return e;
|
|
1006
|
-
},
|
|
1006
|
+
}, j.prototype.getAssetData = function(t) {
|
|
1007
1007
|
for (var e = 0, i = this.assets.length; e < i; ) {
|
|
1008
1008
|
if (t === this.assets[e].id)
|
|
1009
1009
|
return this.assets[e];
|
|
1010
1010
|
e += 1;
|
|
1011
1011
|
}
|
|
1012
1012
|
return null;
|
|
1013
|
-
},
|
|
1013
|
+
}, j.prototype.hide = function() {
|
|
1014
1014
|
this.renderer.hide();
|
|
1015
|
-
},
|
|
1015
|
+
}, j.prototype.show = function() {
|
|
1016
1016
|
this.renderer.show();
|
|
1017
|
-
},
|
|
1017
|
+
}, j.prototype.getDuration = function(t) {
|
|
1018
1018
|
return t ? this.totalFrames : this.totalFrames / this.frameRate;
|
|
1019
|
-
},
|
|
1019
|
+
}, j.prototype.updateDocumentData = function(t, e, i) {
|
|
1020
1020
|
try {
|
|
1021
1021
|
var s = this.renderer.getElementByPath(t);
|
|
1022
1022
|
s.updateDocumentData(e, i);
|
|
1023
1023
|
} catch {
|
|
1024
1024
|
}
|
|
1025
|
-
},
|
|
1025
|
+
}, j.prototype.trigger = function(t) {
|
|
1026
1026
|
if (this._cbs && this._cbs[t])
|
|
1027
1027
|
switch (t) {
|
|
1028
1028
|
case "enterFrame":
|
|
1029
|
-
this.triggerEvent(t, new
|
|
1029
|
+
this.triggerEvent(t, new ti(t, this.currentFrame, this.totalFrames, this.frameModifier));
|
|
1030
1030
|
break;
|
|
1031
1031
|
case "drawnFrame":
|
|
1032
1032
|
this.drawnFrameEvent.currentTime = this.currentFrame, this.drawnFrameEvent.totalTime = this.totalFrames, this.drawnFrameEvent.direction = this.frameModifier, this.triggerEvent(t, this.drawnFrameEvent);
|
|
@@ -1046,11 +1046,11 @@ function _r() {
|
|
|
1046
1046
|
default:
|
|
1047
1047
|
this.triggerEvent(t);
|
|
1048
1048
|
}
|
|
1049
|
-
t === "enterFrame" && this.onEnterFrame && this.onEnterFrame.call(this, new
|
|
1050
|
-
},
|
|
1049
|
+
t === "enterFrame" && this.onEnterFrame && this.onEnterFrame.call(this, new ti(t, this.currentFrame, this.totalFrames, this.frameMult)), t === "loopComplete" && this.onLoopComplete && this.onLoopComplete.call(this, new bi(t, this.loop, this.playCount, this.frameMult)), t === "complete" && this.onComplete && this.onComplete.call(this, new _i(t, this.frameMult)), t === "segmentStart" && this.onSegmentStart && this.onSegmentStart.call(this, new Si(t, this.firstFrame, this.totalFrames)), t === "destroy" && this.onDestroy && this.onDestroy.call(this, new Pi(t, this));
|
|
1050
|
+
}, j.prototype.triggerRenderFrameError = function(t) {
|
|
1051
1051
|
var e = new vs(t, this.currentFrame);
|
|
1052
1052
|
this.triggerEvent("error", e), this.onError && this.onError.call(this, e);
|
|
1053
|
-
},
|
|
1053
|
+
}, j.prototype.triggerConfigError = function(t) {
|
|
1054
1054
|
var e = new ms(t, this.currentFrame);
|
|
1055
1055
|
this.triggerEvent("error", e), this.onError && this.onError.call(this, e);
|
|
1056
1056
|
};
|
|
@@ -1068,7 +1068,7 @@ function _r() {
|
|
|
1068
1068
|
return e[a].animation;
|
|
1069
1069
|
a += 1;
|
|
1070
1070
|
}
|
|
1071
|
-
var l = new
|
|
1071
|
+
var l = new j();
|
|
1072
1072
|
return p(l, d), l.setData(d, P), l;
|
|
1073
1073
|
}
|
|
1074
1074
|
function m() {
|
|
@@ -1078,7 +1078,7 @@ function _r() {
|
|
|
1078
1078
|
return a;
|
|
1079
1079
|
}
|
|
1080
1080
|
function _() {
|
|
1081
|
-
n += 1,
|
|
1081
|
+
n += 1, q();
|
|
1082
1082
|
}
|
|
1083
1083
|
function M() {
|
|
1084
1084
|
n -= 1;
|
|
@@ -1090,7 +1090,7 @@ function _r() {
|
|
|
1090
1090
|
}), s += 1;
|
|
1091
1091
|
}
|
|
1092
1092
|
function b(d) {
|
|
1093
|
-
var P = new
|
|
1093
|
+
var P = new j();
|
|
1094
1094
|
return p(P, null), P.setParams(d), P;
|
|
1095
1095
|
}
|
|
1096
1096
|
function k(d, P) {
|
|
@@ -1150,8 +1150,8 @@ function _r() {
|
|
|
1150
1150
|
a || (a = "svg");
|
|
1151
1151
|
var R = document.getElementsByTagName("body")[0];
|
|
1152
1152
|
R.innerText = "";
|
|
1153
|
-
var
|
|
1154
|
-
|
|
1153
|
+
var z = _t("div");
|
|
1154
|
+
z.style.width = "100%", z.style.height = "100%", z.setAttribute("data-bm-type", a), R.appendChild(z), h(z, d);
|
|
1155
1155
|
}
|
|
1156
1156
|
}
|
|
1157
1157
|
function I() {
|
|
@@ -1159,14 +1159,14 @@ function _r() {
|
|
|
1159
1159
|
for (d = 0; d < s; d += 1)
|
|
1160
1160
|
e[d].animation.resize();
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1162
|
+
function q() {
|
|
1163
1163
|
!o && n && r && (window.requestAnimationFrame(v), r = !1);
|
|
1164
1164
|
}
|
|
1165
1165
|
function N() {
|
|
1166
1166
|
o = !0;
|
|
1167
1167
|
}
|
|
1168
1168
|
function L() {
|
|
1169
|
-
o = !1,
|
|
1169
|
+
o = !1, q();
|
|
1170
1170
|
}
|
|
1171
1171
|
function G(d, P) {
|
|
1172
1172
|
var a;
|
|
@@ -1184,7 +1184,7 @@ function _r() {
|
|
|
1184
1184
|
e[P].animation.unmute(d);
|
|
1185
1185
|
}
|
|
1186
1186
|
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;
|
|
1187
|
-
}(),
|
|
1187
|
+
}(), be = function() {
|
|
1188
1188
|
var t = {};
|
|
1189
1189
|
t.getBezierEasing = i;
|
|
1190
1190
|
var e = {};
|
|
@@ -1251,7 +1251,7 @@ function _r() {
|
|
|
1251
1251
|
for (var u = this._p[0], g = this._p[2], A = this._mSampleValues, T = 0, x = 1, I = c - 1; x !== I && A[x] <= f; ++x)
|
|
1252
1252
|
T += h;
|
|
1253
1253
|
--x;
|
|
1254
|
-
var
|
|
1254
|
+
var q = (f - A[x]) / (A[x + 1] - A[x]), N = T + q * h, L = k(N, u, g);
|
|
1255
1255
|
return L >= n ? C(f, N, u, g) : L === 0 ? N : S(f, T, T + h, u, g);
|
|
1256
1256
|
}
|
|
1257
1257
|
}, t;
|
|
@@ -1262,7 +1262,7 @@ function _r() {
|
|
|
1262
1262
|
return {
|
|
1263
1263
|
double: t
|
|
1264
1264
|
};
|
|
1265
|
-
}(),
|
|
1265
|
+
}(), ze = /* @__PURE__ */ function() {
|
|
1266
1266
|
return function(t, e, i) {
|
|
1267
1267
|
var s = 0, n = t, r = tt(n), o = {
|
|
1268
1268
|
newElement: c,
|
|
@@ -1281,11 +1281,11 @@ function _r() {
|
|
|
1281
1281
|
function t() {
|
|
1282
1282
|
return {
|
|
1283
1283
|
addedLength: 0,
|
|
1284
|
-
percents: U("float32",
|
|
1285
|
-
lengths: U("float32",
|
|
1284
|
+
percents: U("float32", Ne()),
|
|
1285
|
+
lengths: U("float32", Ne())
|
|
1286
1286
|
};
|
|
1287
1287
|
}
|
|
1288
|
-
return
|
|
1288
|
+
return ze(8, t);
|
|
1289
1289
|
}(), Ei = function() {
|
|
1290
1290
|
function t() {
|
|
1291
1291
|
return {
|
|
@@ -1299,7 +1299,7 @@ function _r() {
|
|
|
1299
1299
|
Mi.release(i.lengths[s]);
|
|
1300
1300
|
i.lengths.length = 0;
|
|
1301
1301
|
}
|
|
1302
|
-
return
|
|
1302
|
+
return ze(8, t, e);
|
|
1303
1303
|
}();
|
|
1304
1304
|
function Ts() {
|
|
1305
1305
|
var t = Math;
|
|
@@ -1315,13 +1315,13 @@ function _r() {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
var s = /* @__PURE__ */ function() {
|
|
1317
1317
|
return function(p, b, k, S) {
|
|
1318
|
-
var C =
|
|
1318
|
+
var C = Ne(), y, v, f, u, g, A = 0, T, x = [], I = [], q = Mi.newElement();
|
|
1319
1319
|
for (f = k.length, y = 0; y < C; y += 1) {
|
|
1320
1320
|
for (g = y / (C - 1), T = 0, v = 0; v < f; v += 1)
|
|
1321
1321
|
u = At(1 - g, 3) * p[v] + 3 * At(1 - g, 2) * g * k[v] + 3 * (1 - g) * At(g, 2) * S[v] + At(g, 3) * b[v], x[v] = u, I[v] !== null && (T += At(x[v] - I[v], 2)), I[v] = x[v];
|
|
1322
|
-
T && (T = gi(T), A += T),
|
|
1322
|
+
T && (T = gi(T), A += T), q.percents[y] = g, q.lengths[y] = A;
|
|
1323
1323
|
}
|
|
1324
|
-
return
|
|
1324
|
+
return q.addedLength = A, q;
|
|
1325
1325
|
};
|
|
1326
1326
|
}();
|
|
1327
1327
|
function n(p) {
|
|
@@ -1341,13 +1341,13 @@ function _r() {
|
|
|
1341
1341
|
return function(b, k, S, C) {
|
|
1342
1342
|
var y = (b[0] + "_" + b[1] + "_" + k[0] + "_" + k[1] + "_" + S[0] + "_" + S[1] + "_" + C[0] + "_" + C[1]).replace(/\./g, "p");
|
|
1343
1343
|
if (!p[y]) {
|
|
1344
|
-
var v =
|
|
1344
|
+
var v = Ne(), f, u, g, A, T, x = 0, I, q, N = null;
|
|
1345
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]) && (v = 2);
|
|
1346
1346
|
var L = new r(v);
|
|
1347
1347
|
for (g = S.length, f = 0; f < v; f += 1) {
|
|
1348
|
-
for (
|
|
1349
|
-
A = At(1 - T, 3) * b[u] + 3 * At(1 - T, 2) * T * (b[u] + S[u]) + 3 * (1 - T) * At(T, 2) * (k[u] + C[u]) + At(T, 3) * k[u],
|
|
1350
|
-
I = gi(I), x += I, L.points[f] = new o(I,
|
|
1348
|
+
for (q = tt(g), T = f / (v - 1), I = 0, u = 0; u < g; u += 1)
|
|
1349
|
+
A = At(1 - T, 3) * b[u] + 3 * At(1 - T, 2) * T * (b[u] + S[u]) + 3 * (1 - T) * At(T, 2) * (k[u] + C[u]) + At(T, 3) * k[u], q[u] = A, N !== null && (I += At(q[u] - N[u], 2));
|
|
1350
|
+
I = gi(I), x += I, L.points[f] = new o(I, q), N = q;
|
|
1351
1351
|
}
|
|
1352
1352
|
L.segmentLength = x, p[y] = L;
|
|
1353
1353
|
}
|
|
@@ -1375,9 +1375,9 @@ function _r() {
|
|
|
1375
1375
|
C < 0 ? C = 0 : C > 1 && (C = 1);
|
|
1376
1376
|
var f = h(C, v);
|
|
1377
1377
|
y = y > 1 ? 1 : y;
|
|
1378
|
-
var u = h(y, v), g, A = p.length, T = 1 - f, x = 1 - u, I = T * T * T,
|
|
1378
|
+
var u = h(y, v), g, A = p.length, T = 1 - f, x = 1 - u, I = T * T * T, q = f * T * T * 3, N = f * f * T * 3, L = f * f * f, G = T * T * x, O = f * T * x + T * f * x + T * T * u, F = f * f * x + T * f * u + f * T * u, d = f * f * u, P = T * x * x, a = f * x * x + T * u * x + T * x * u, l = f * u * x + T * u * u + f * x * u, E = f * u * u, w = x * x * x, R = u * x * x + x * u * x + x * x * u, z = u * u * x + x * u * u + u * x * u, D = u * u * u;
|
|
1379
1379
|
for (g = 0; g < A; g += 1)
|
|
1380
|
-
_[g * 4] = t.round((I * p[g] +
|
|
1380
|
+
_[g * 4] = t.round((I * p[g] + q * k[g] + N * S[g] + L * b[g]) * 1e3) / 1e3, _[g * 4 + 1] = t.round((G * p[g] + O * k[g] + F * S[g] + d * b[g]) * 1e3) / 1e3, _[g * 4 + 2] = t.round((P * p[g] + a * k[g] + l * S[g] + E * b[g]) * 1e3) / 1e3, _[g * 4 + 3] = t.round((w * p[g] + R * k[g] + z * S[g] + D * b[g]) * 1e3) / 1e3;
|
|
1381
1381
|
return _;
|
|
1382
1382
|
}
|
|
1383
1383
|
return {
|
|
@@ -1414,7 +1414,7 @@ function _r() {
|
|
|
1414
1414
|
for (p = u.points[g].point.length, M = 0; M < p; M += 1)
|
|
1415
1415
|
s[M] = u.points[g].point[M];
|
|
1416
1416
|
} else {
|
|
1417
|
-
_.__fnct ? C = _.__fnct : (C =
|
|
1417
|
+
_.__fnct ? C = _.__fnct : (C = be.getBezierEasing(h.o.x, h.o.y, h.i.x, h.i.y, h.n).get, _.__fnct = C), b = C((t - v) / (y - v));
|
|
1418
1418
|
var A = u.segmentLength * b, T, x = e.lastFrame < t && e._lastKeyframeIndex === r ? e._lastAddedLength : 0;
|
|
1419
1419
|
for (S = e.lastFrame < t && e._lastKeyframeIndex === r ? e._lastPoint : 0, c = !0, k = u.points.length; c; ) {
|
|
1420
1420
|
if (x += u.points[S].partialLength, A === 0 || b === 0 || S === u.points.length - 1) {
|
|
@@ -1431,7 +1431,7 @@ function _r() {
|
|
|
1431
1431
|
e._lastPoint = S, e._lastAddedLength = x - u.points[S].partialLength, e._lastKeyframeIndex = r;
|
|
1432
1432
|
}
|
|
1433
1433
|
} else {
|
|
1434
|
-
var I,
|
|
1434
|
+
var I, q, N, L, G;
|
|
1435
1435
|
if (o = h.s.length, f = m.s || h.e, this.sh && h.h !== 1)
|
|
1436
1436
|
if (t >= y)
|
|
1437
1437
|
s[0] = f[0], s[1] = f[1], s[2] = f[2];
|
|
@@ -1443,7 +1443,7 @@ function _r() {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
else
|
|
1445
1445
|
for (r = 0; r < o; r += 1)
|
|
1446
|
-
h.h !== 1 && (t >= y ? b = 1 : t < v ? 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],
|
|
1446
|
+
h.h !== 1 && (t >= y ? b = 1 : t < v ? 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 = be.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 = be.getBezierEasing(I, q, N, L).get, h.keyframeMetadata = C), b = C((t - v) / (y - v)))), f = m.s || h.e, G = h.h === 1 ? h.s[r] : h.s[r] + (f[r] - h.s[r]) * b, this.propType === "multidimensional" ? s[r] = G : s = G;
|
|
1447
1447
|
}
|
|
1448
1448
|
return e.lastIndex = n, s;
|
|
1449
1449
|
}
|
|
@@ -1468,7 +1468,7 @@ function _r() {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
return this._caching.lastFrame = t, this.pv;
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1471
|
+
function qe(t) {
|
|
1472
1472
|
var e;
|
|
1473
1473
|
if (this.propType === "unidimensional")
|
|
1474
1474
|
e = t * this.mult, xi(this.v - e) > 1e-5 && (this.v = e, this._mdf = !0);
|
|
@@ -1476,7 +1476,7 @@ function _r() {
|
|
|
1476
1476
|
for (var i = 0, s = this.v.length; i < s; )
|
|
1477
1477
|
e = t[i] * this.mult, xi(this.v[i] - e) > 1e-5 && (this.v[i] = e, this._mdf = !0), i += 1;
|
|
1478
1478
|
}
|
|
1479
|
-
function
|
|
1479
|
+
function De() {
|
|
1480
1480
|
if (!(this.elem.globalData.frameId === this.frameId || !this.effectsSequence.length)) {
|
|
1481
1481
|
if (this.lock) {
|
|
1482
1482
|
this.setVValue(this.pv);
|
|
@@ -1489,18 +1489,18 @@ function _r() {
|
|
|
1489
1489
|
this.setVValue(i), this._isFirstFrame = !1, this.lock = !1, this.frameId = this.elem.globalData.frameId;
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function We(t) {
|
|
1493
1493
|
this.effectsSequence.push(t), this.container.addDynamicProperty(this);
|
|
1494
1494
|
}
|
|
1495
1495
|
function xs(t, e, i, s) {
|
|
1496
|
-
this.propType = "unidimensional", this.mult = i || 1, this.data = e, this.v = i ? e.k * i : e.k, this.pv = e.k, this._mdf = !1, this.elem = t, this.container = s, this.comp = t.comp, this.k = !1, this.kf = !1, this.vel = 0, this.effectsSequence = [], this._isFirstFrame = !0, this.getValue =
|
|
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 = De, this.setVValue = qe, this.addEffect = We;
|
|
1497
1497
|
}
|
|
1498
1498
|
function Fs(t, e, i, s) {
|
|
1499
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;
|
|
1500
1500
|
var n, r = e.k.length;
|
|
1501
1501
|
for (this.v = U("float32", r), this.pv = U("float32", r), this.vel = U("float32", r), n = 0; n < r; n += 1)
|
|
1502
1502
|
this.v[n] = e.k[n] * this.mult, this.pv[n] = e.k[n];
|
|
1503
|
-
this._isFirstFrame = !0, this.effectsSequence = [], this.getValue =
|
|
1503
|
+
this._isFirstFrame = !0, this.effectsSequence = [], this.getValue = De, this.setVValue = qe, this.addEffect = We;
|
|
1504
1504
|
}
|
|
1505
1505
|
function Is(t, e, i, s) {
|
|
1506
1506
|
this.propType = "unidimensional", this.keyframes = e.k, this.keyframesMetadata = [], this.offsetTime = t.data.st, this.frameId = -1, this._caching = {
|
|
@@ -1508,14 +1508,14 @@ function _r() {
|
|
|
1508
1508
|
lastIndex: 0,
|
|
1509
1509
|
value: 0,
|
|
1510
1510
|
_lastKeyframeIndex: -1
|
|
1511
|
-
}, this.k = !0, this.kf = !0, this.data = e, this.mult = i || 1, this.elem = t, this.container = s, this.comp = t.comp, this.v = Qt, this.pv = Qt, this._isFirstFrame = !0, this.getValue =
|
|
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 = Qt, this.pv = Qt, this._isFirstFrame = !0, this.getValue = De, this.setVValue = qe, this.interpolateValue = Fi, this.effectsSequence = [Li.bind(this)], this.addEffect = We;
|
|
1512
1512
|
}
|
|
1513
1513
|
function Ls(t, e, i, s) {
|
|
1514
1514
|
this.propType = "multidimensional";
|
|
1515
1515
|
var n, r = e.k.length, o, c, h, m;
|
|
1516
1516
|
for (n = 0; n < r - 1; n += 1)
|
|
1517
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]) && wt.pointOnLine2D(o[0], o[1], c[0], c[1], o[0] + h[0], o[1] + h[1]) && wt.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]) && wt.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]) && wt.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 = [Li.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 =
|
|
1518
|
+
this.effectsSequence = [Li.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 = De, this.setVValue = qe, this.interpolateValue = Fi, this.frameId = -1;
|
|
1519
1519
|
var _ = e.k[0].s.length;
|
|
1520
1520
|
for (this.v = U("float32", _), this.pv = U("float32", _), n = 0; n < _; n += 1)
|
|
1521
1521
|
this.v[n] = Qt, this.pv[n] = Qt;
|
|
@@ -1523,7 +1523,7 @@ function _r() {
|
|
|
1523
1523
|
lastFrame: Qt,
|
|
1524
1524
|
lastIndex: 0,
|
|
1525
1525
|
value: U("float32", _)
|
|
1526
|
-
}, this.addEffect =
|
|
1526
|
+
}, this.addEffect = We;
|
|
1527
1527
|
}
|
|
1528
1528
|
var V = /* @__PURE__ */ function() {
|
|
1529
1529
|
function t(i, s, n, r, o) {
|
|
@@ -1569,7 +1569,7 @@ function _r() {
|
|
|
1569
1569
|
function t() {
|
|
1570
1570
|
return U("float32", 2);
|
|
1571
1571
|
}
|
|
1572
|
-
return
|
|
1572
|
+
return ze(8, t);
|
|
1573
1573
|
}();
|
|
1574
1574
|
function Ft() {
|
|
1575
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);
|
|
@@ -1631,15 +1631,15 @@ function _r() {
|
|
|
1631
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);
|
|
1632
1632
|
return r;
|
|
1633
1633
|
}
|
|
1634
|
-
var s =
|
|
1634
|
+
var s = ze(4, t, e);
|
|
1635
1635
|
return s.clone = i, s;
|
|
1636
1636
|
}();
|
|
1637
|
-
function
|
|
1637
|
+
function ri() {
|
|
1638
1638
|
this._length = 0, this._maxLength = 4, this.shapes = tt(this._maxLength);
|
|
1639
1639
|
}
|
|
1640
|
-
|
|
1640
|
+
ri.prototype.addShape = function(t) {
|
|
1641
1641
|
this._length === this._maxLength && (this.shapes = this.shapes.concat(tt(this._maxLength)), this._maxLength *= 2), this.shapes[this._length] = t, this._length += 1;
|
|
1642
|
-
},
|
|
1642
|
+
}, ri.prototype.releaseShapes = function() {
|
|
1643
1643
|
var t;
|
|
1644
1644
|
for (t = 0; t < this._length; t += 1)
|
|
1645
1645
|
ot.release(this.shapes[t]);
|
|
@@ -1652,7 +1652,7 @@ function _r() {
|
|
|
1652
1652
|
}, e = 0, i = 4, s = tt(i);
|
|
1653
1653
|
function n() {
|
|
1654
1654
|
var o;
|
|
1655
|
-
return e ? (e -= 1, o = s[e]) : o = new
|
|
1655
|
+
return e ? (e -= 1, o = s[e]) : o = new ri(), o;
|
|
1656
1656
|
}
|
|
1657
1657
|
function r(o) {
|
|
1658
1658
|
var c, h = o._length;
|
|
@@ -1661,10 +1661,10 @@ function _r() {
|
|
|
1661
1661
|
o._length = 0, e === i && (s = Ti.double(s), i *= 2), s[e] = o, e += 1;
|
|
1662
1662
|
}
|
|
1663
1663
|
return t;
|
|
1664
|
-
}(),
|
|
1664
|
+
}(), Ge = function() {
|
|
1665
1665
|
var t = -999999;
|
|
1666
1666
|
function e(y, v, f) {
|
|
1667
|
-
var u = f.lastIndex, g, A, T, x, I,
|
|
1667
|
+
var u = f.lastIndex, g, A, T, x, I, q, N, L, G, O = this.keyframes;
|
|
1668
1668
|
if (y < O[0].t - this.offsetTime)
|
|
1669
1669
|
g = O[0].s[0], T = !0, u = 0;
|
|
1670
1670
|
else if (y >= O[O.length - 1].t - this.offsetTime)
|
|
@@ -1679,13 +1679,13 @@ function _r() {
|
|
|
1679
1679
|
L = 0;
|
|
1680
1680
|
else {
|
|
1681
1681
|
var w;
|
|
1682
|
-
E.__fnct ? w = E.__fnct : (w =
|
|
1682
|
+
E.__fnct ? w = E.__fnct : (w = be.getBezierEasing(a.o.x, a.o.y, a.i.x, a.i.y).get, E.__fnct = w), L = w((y - (a.t - this.offsetTime)) / (l.t - this.offsetTime - (a.t - this.offsetTime)));
|
|
1683
1683
|
}
|
|
1684
1684
|
A = l.s ? l.s[0] : a.e[0];
|
|
1685
1685
|
}
|
|
1686
1686
|
g = a.s[0];
|
|
1687
1687
|
}
|
|
1688
|
-
for (
|
|
1688
|
+
for (q = v._length, N = g.i[0].length, f.lastIndex = u, x = 0; x < q; x += 1)
|
|
1689
1689
|
for (I = 0; I < N; I += 1)
|
|
1690
1690
|
G = T ? g.i[x][I] : g.i[x][I] + (A.i[x][I] - g.i[x][I]) * L, v.i[x][I] = G, G = T ? g.o[x][I] : g.o[x][I] + (A.o[x][I] - g.o[x][I]) * L, v.o[x][I] = G, G = T ? g.v[x][I] : g.v[x][I] + (A.v[x][I] - g.v[x][I]) * L, v.v[x][I] = G;
|
|
1691
1691
|
}
|
|
@@ -1770,20 +1770,20 @@ function _r() {
|
|
|
1770
1770
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
1771
1771
|
},
|
|
1772
1772
|
convertStarToPath: function() {
|
|
1773
|
-
var f = Math.floor(this.pt.v) * 2, u = Math.PI * 2 / f, g = !0, A = this.or.v, T = this.ir.v, x = this.os.v, I = this.is.v,
|
|
1773
|
+
var f = Math.floor(this.pt.v) * 2, u = Math.PI * 2 / f, g = !0, A = this.or.v, T = this.ir.v, x = this.os.v, I = this.is.v, q = 2 * Math.PI * A / (f * 2), N = 2 * Math.PI * T / (f * 2), L, G, O, F, d = -Math.PI / 2;
|
|
1774
1774
|
d += this.r.v;
|
|
1775
1775
|
var P = this.data.d === 3 ? -1 : 1;
|
|
1776
1776
|
for (this.v._length = 0, L = 0; L < f; L += 1) {
|
|
1777
|
-
G = g ? A : T, O = g ? x : I, F = g ?
|
|
1777
|
+
G = g ? A : T, O = g ? x : I, F = g ? q : N;
|
|
1778
1778
|
var a = G * Math.cos(d), l = G * Math.sin(d), E = a === 0 && l === 0 ? 0 : l / Math.sqrt(a * a + l * l), w = a === 0 && l === 0 ? 0 : -a / Math.sqrt(a * a + l * l);
|
|
1779
1779
|
a += +this.p.v[0], l += +this.p.v[1], this.v.setTripleAt(a, l, a - E * F * O * P, l - w * F * O * P, a + E * F * O * P, l + w * F * O * P, L, !0), g = !g, d += u * P;
|
|
1780
1780
|
}
|
|
1781
1781
|
},
|
|
1782
1782
|
convertPolygonToPath: function() {
|
|
1783
|
-
var f = Math.floor(this.pt.v), u = Math.PI * 2 / f, g = this.or.v, A = this.os.v, T = 2 * Math.PI * g / (f * 4), x, I = -Math.PI * 0.5,
|
|
1783
|
+
var f = Math.floor(this.pt.v), u = Math.PI * 2 / f, g = this.or.v, A = this.os.v, T = 2 * Math.PI * g / (f * 4), x, I = -Math.PI * 0.5, q = this.data.d === 3 ? -1 : 1;
|
|
1784
1784
|
for (I += this.r.v, this.v._length = 0, x = 0; x < f; x += 1) {
|
|
1785
1785
|
var N = g * Math.cos(I), L = g * Math.sin(I), G = N === 0 && L === 0 ? 0 : L / Math.sqrt(N * N + L * L), O = N === 0 && L === 0 ? 0 : -N / Math.sqrt(N * N + L * L);
|
|
1786
|
-
N += +this.p.v[0], L += +this.p.v[1], this.v.setTripleAt(N, L, N - G * T * A *
|
|
1786
|
+
N += +this.p.v[0], L += +this.p.v[1], this.v.setTripleAt(N, L, N - G * T * A * q, L - O * T * A * q, N + G * T * A * q, L + O * T * A * q, x, !0), I += u * q;
|
|
1787
1787
|
}
|
|
1788
1788
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
1789
1789
|
}
|
|
@@ -1870,18 +1870,18 @@ function _r() {
|
|
|
1870
1870
|
function p(a, l, E) {
|
|
1871
1871
|
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);
|
|
1872
1872
|
}
|
|
1873
|
-
function b(a, l, E, w, R,
|
|
1874
|
-
return this.props[0] = a, this.props[1] = l, this.props[2] = E, this.props[3] = w, this.props[4] = R, this.props[5] =
|
|
1873
|
+
function b(a, l, E, w, R, z, D, Y, H, et, ct, Tt, dt, nt, mt, K) {
|
|
1874
|
+
return this.props[0] = a, this.props[1] = l, this.props[2] = E, this.props[3] = w, this.props[4] = R, this.props[5] = z, this.props[6] = D, this.props[7] = Y, this.props[8] = H, this.props[9] = et, this.props[10] = ct, this.props[11] = Tt, this.props[12] = dt, this.props[13] = nt, this.props[14] = mt, this.props[15] = K, this;
|
|
1875
1875
|
}
|
|
1876
1876
|
function k(a, l, E) {
|
|
1877
1877
|
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;
|
|
1878
1878
|
}
|
|
1879
|
-
function S(a, l, E, w, R,
|
|
1879
|
+
function S(a, l, E, w, R, z, D, Y, H, et, ct, Tt, dt, nt, mt, K) {
|
|
1880
1880
|
var B = this.props;
|
|
1881
|
-
if (a === 1 && l === 0 && E === 0 && w === 0 && R === 0 &&
|
|
1882
|
-
return B[12] = B[12] * a + B[15] * dt, B[13] = B[13] *
|
|
1883
|
-
var Vt = B[0], Xt = B[1], Rt = B[2], Mt = B[3], Ot = B[4], Bt = B[5], vt = B[6], Yt = B[7], Ht = B[8], St = B[9], Zt = B[10], Pt = B[11], se = B[12],
|
|
1884
|
-
return B[0] = Vt * a + Xt * R + Rt * H + Mt * dt, B[1] = Vt * l + Xt *
|
|
1881
|
+
if (a === 1 && l === 0 && E === 0 && w === 0 && R === 0 && z === 1 && D === 0 && Y === 0 && H === 0 && et === 0 && ct === 1 && Tt === 0)
|
|
1882
|
+
return B[12] = B[12] * a + B[15] * dt, B[13] = B[13] * z + B[15] * nt, B[14] = B[14] * ct + B[15] * mt, B[15] *= K, this._identityCalculated = !1, this;
|
|
1883
|
+
var Vt = B[0], Xt = B[1], Rt = B[2], Mt = B[3], Ot = B[4], Bt = B[5], vt = B[6], Yt = B[7], Ht = B[8], St = B[9], Zt = B[10], Pt = B[11], se = B[12], Ue = B[13], Je = B[14], Qe = B[15];
|
|
1884
|
+
return B[0] = Vt * a + Xt * R + Rt * H + Mt * dt, B[1] = Vt * l + Xt * z + Rt * et + Mt * nt, B[2] = Vt * E + Xt * D + Rt * ct + Mt * mt, B[3] = Vt * w + Xt * Y + Rt * Tt + Mt * K, B[4] = Ot * a + Bt * R + vt * H + Yt * dt, B[5] = Ot * l + Bt * z + vt * et + Yt * nt, B[6] = Ot * E + Bt * D + vt * ct + Yt * mt, B[7] = Ot * w + Bt * Y + vt * Tt + Yt * K, B[8] = Ht * a + St * R + Zt * H + Pt * dt, B[9] = Ht * l + St * z + Zt * et + Pt * nt, B[10] = Ht * E + St * D + Zt * ct + Pt * mt, B[11] = Ht * w + St * Y + Zt * Tt + Pt * K, B[12] = se * a + Ue * R + Je * H + Qe * dt, B[13] = se * l + Ue * z + Je * et + Qe * nt, B[14] = se * E + Ue * D + Je * ct + Qe * mt, B[15] = se * w + Ue * Y + Je * Tt + Qe * K, this._identityCalculated = !1, this;
|
|
1885
1885
|
}
|
|
1886
1886
|
function C(a) {
|
|
1887
1887
|
var l = a.props;
|
|
@@ -1926,17 +1926,17 @@ function _r() {
|
|
|
1926
1926
|
return a * this.props[2] + l * this.props[6] + E * this.props[10] + this.props[14];
|
|
1927
1927
|
}
|
|
1928
1928
|
function I() {
|
|
1929
|
-
var a = this.props[0] * this.props[5] - this.props[1] * this.props[4], l = this.props[5] / a, E = -this.props[1] / a, w = -this.props[4] / a, R = this.props[0] / a,
|
|
1930
|
-
return Y.props[0] = l, Y.props[1] = E, Y.props[4] = w, Y.props[5] = R, Y.props[12] =
|
|
1929
|
+
var a = this.props[0] * this.props[5] - this.props[1] * this.props[4], l = this.props[5] / a, E = -this.props[1] / a, w = -this.props[4] / a, R = this.props[0] / a, z = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / a, D = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / a, Y = new ht();
|
|
1930
|
+
return Y.props[0] = l, Y.props[1] = E, Y.props[4] = w, Y.props[5] = R, Y.props[12] = z, Y.props[13] = D, Y;
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function q(a) {
|
|
1933
1933
|
var l = this.getInverseMatrix();
|
|
1934
1934
|
return l.applyToPointArray(a[0], a[1], a[2] || 0);
|
|
1935
1935
|
}
|
|
1936
1936
|
function N(a) {
|
|
1937
1937
|
var l, E = a.length, w = [];
|
|
1938
1938
|
for (l = 0; l < E; l += 1)
|
|
1939
|
-
w[l] =
|
|
1939
|
+
w[l] = q(a[l]);
|
|
1940
1940
|
return w;
|
|
1941
1941
|
}
|
|
1942
1942
|
function L(a, l, E) {
|
|
@@ -1944,8 +1944,8 @@ function _r() {
|
|
|
1944
1944
|
if (this.isIdentity())
|
|
1945
1945
|
w[0] = a[0], w[1] = a[1], w[2] = l[0], w[3] = l[1], w[4] = E[0], w[5] = E[1];
|
|
1946
1946
|
else {
|
|
1947
|
-
var R = this.props[0],
|
|
1948
|
-
w[0] = a[0] * R + a[1] * D + H, w[1] = a[0] *
|
|
1947
|
+
var R = this.props[0], z = this.props[1], D = this.props[4], Y = this.props[5], H = this.props[12], et = this.props[13];
|
|
1948
|
+
w[0] = a[0] * R + a[1] * D + H, w[1] = a[0] * z + a[1] * Y + et, w[2] = l[0] * R + l[1] * D + H, w[3] = l[0] * z + l[1] * Y + et, w[4] = E[0] * R + E[1] * D + H, w[5] = E[0] * z + E[1] * Y + et;
|
|
1949
1949
|
}
|
|
1950
1950
|
return w;
|
|
1951
1951
|
}
|
|
@@ -1969,20 +1969,20 @@ function _r() {
|
|
|
1969
1969
|
return a < 1e-6 && a > 0 || a > -1e-6 && a < 0 ? s(a * l) / l : a;
|
|
1970
1970
|
}
|
|
1971
1971
|
function P() {
|
|
1972
|
-
var a = this.props, l = d(a[0]), E = d(a[1]), w = d(a[4]), R = d(a[5]),
|
|
1973
|
-
return "matrix(" + l + "," + E + "," + w + "," + R + "," +
|
|
1972
|
+
var a = this.props, l = d(a[0]), E = d(a[1]), w = d(a[4]), R = d(a[5]), z = d(a[12]), D = d(a[13]);
|
|
1973
|
+
return "matrix(" + l + "," + E + "," + w + "," + R + "," + z + "," + D + ")";
|
|
1974
1974
|
}
|
|
1975
1975
|
return function() {
|
|
1976
|
-
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 = v, this.inversePoints = N, this.inversePoint =
|
|
1976
|
+
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 = v, this.inversePoints = N, this.inversePoint = q, this.getInverseMatrix = I, this._t = this.transform, this.isIdentity = y, this._identity = !0, this._identityCalculated = !1, this.props = U("float32", 16), this.reset();
|
|
1977
1977
|
};
|
|
1978
1978
|
}();
|
|
1979
|
-
function
|
|
1979
|
+
function ni(t) {
|
|
1980
1980
|
"@babel/helpers - typeof";
|
|
1981
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
1982
|
-
return typeof
|
|
1983
|
-
} :
|
|
1984
|
-
return
|
|
1985
|
-
},
|
|
1981
|
+
return ni = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1982
|
+
return typeof e;
|
|
1983
|
+
} : function(e) {
|
|
1984
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1985
|
+
}, ni(t);
|
|
1986
1986
|
}
|
|
1987
1987
|
var Z = {};
|
|
1988
1988
|
function Vs(t) {
|
|
@@ -2004,37 +2004,37 @@ function _r() {
|
|
|
2004
2004
|
if (typeof t == "string")
|
|
2005
2005
|
switch (t) {
|
|
2006
2006
|
case "high":
|
|
2007
|
-
|
|
2007
|
+
Be(200);
|
|
2008
2008
|
break;
|
|
2009
2009
|
default:
|
|
2010
2010
|
case "medium":
|
|
2011
|
-
|
|
2011
|
+
Be(50);
|
|
2012
2012
|
break;
|
|
2013
2013
|
case "low":
|
|
2014
|
-
|
|
2014
|
+
Be(10);
|
|
2015
2015
|
break;
|
|
2016
2016
|
}
|
|
2017
|
-
else !isNaN(t) && t > 1 &&
|
|
2017
|
+
else !isNaN(t) && t > 1 && Be(t);
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2019
|
+
function js() {
|
|
2020
2020
|
return typeof navigator < "u";
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function zs(t, e) {
|
|
2023
2023
|
t === "expressions" && _s(e);
|
|
2024
2024
|
}
|
|
2025
|
-
function
|
|
2025
|
+
function qs(t) {
|
|
2026
2026
|
switch (t) {
|
|
2027
2027
|
case "propertyFactory":
|
|
2028
2028
|
return V;
|
|
2029
2029
|
case "shapePropertyFactory":
|
|
2030
|
-
return
|
|
2030
|
+
return Ge;
|
|
2031
2031
|
case "matrix":
|
|
2032
2032
|
return ht;
|
|
2033
2033
|
default:
|
|
2034
2034
|
return null;
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
|
-
Z.play = it.play, Z.pause = it.pause, Z.setLocationHref = Vs, Z.togglePause = it.togglePause, Z.setSpeed = it.setSpeed, Z.setDirection = it.setDirection, Z.stop = it.stop, Z.searchAnimations = Vi, Z.registerAnimation = it.registerAnimation, Z.loadAnimation = Bs, Z.setSubframeRendering = Rs, Z.resize = it.resize, Z.goToAndStop = it.goToAndStop, Z.destroy = it.destroy, Z.setQuality = Ns, Z.inBrowser =
|
|
2037
|
+
Z.play = it.play, Z.pause = it.pause, Z.setLocationHref = Vs, Z.togglePause = it.togglePause, Z.setSpeed = it.setSpeed, Z.setDirection = it.setDirection, Z.stop = it.stop, Z.searchAnimations = Vi, Z.registerAnimation = it.registerAnimation, Z.loadAnimation = Bs, Z.setSubframeRendering = Rs, Z.resize = it.resize, Z.goToAndStop = it.goToAndStop, Z.destroy = it.destroy, Z.setQuality = Ns, Z.inBrowser = js, Z.installPlugin = zs, Z.freeze = it.freeze, Z.unfreeze = it.unfreeze, Z.setVolume = it.setVolume, Z.mute = it.mute, Z.unmute = it.unmute, Z.getRegisteredAnimations = it.getRegisteredAnimations, Z.useWebWorker = Kt, Z.setIDPrefix = Os, Z.__getFactory = qs, Z.version = "5.13.0";
|
|
2038
2038
|
function Ds() {
|
|
2039
2039
|
document.readyState === "complete" && (clearInterval(Xs), Vi());
|
|
2040
2040
|
}
|
|
@@ -2055,10 +2055,10 @@ function _r() {
|
|
|
2055
2055
|
}
|
|
2056
2056
|
var Xs = setInterval(Ds, 100);
|
|
2057
2057
|
try {
|
|
2058
|
-
|
|
2058
|
+
ni(ue) !== "object" && (window.bodymovin = Z);
|
|
2059
2059
|
} catch {
|
|
2060
2060
|
}
|
|
2061
|
-
var
|
|
2061
|
+
var jt = function() {
|
|
2062
2062
|
var t = {}, e = {};
|
|
2063
2063
|
t.registerModifier = i, t.getModifier = s;
|
|
2064
2064
|
function i(n, r) {
|
|
@@ -2221,11 +2221,11 @@ function _r() {
|
|
|
2221
2221
|
}
|
|
2222
2222
|
return k;
|
|
2223
2223
|
};
|
|
2224
|
-
function
|
|
2224
|
+
function Se() {
|
|
2225
2225
|
}
|
|
2226
|
-
X([gt],
|
|
2226
|
+
X([gt], Se), Se.prototype.initModifierProperties = function(t, e) {
|
|
2227
2227
|
this.getValue = this.processKeys, this.amount = V.getProp(t, e.a, 0, null, this), this._isAnimated = !!this.amount.effectsSequence.length;
|
|
2228
|
-
},
|
|
2228
|
+
}, Se.prototype.processPath = function(t, e) {
|
|
2229
2229
|
var i = e / 100, s = [0, 0], n = t._length, r = 0;
|
|
2230
2230
|
for (r = 0; r < n; r += 1)
|
|
2231
2231
|
s[0] += t.v[r][0], s[1] += t.v[r][1];
|
|
@@ -2236,7 +2236,7 @@ function _r() {
|
|
|
2236
2236
|
for (r = 0; r < n; r += 1)
|
|
2237
2237
|
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);
|
|
2238
2238
|
return o;
|
|
2239
|
-
},
|
|
2239
|
+
}, Se.prototype.processShapes = function(t) {
|
|
2240
2240
|
var e, i, s = this.shapes.length, n, r, o = this.amount.v;
|
|
2241
2241
|
if (o !== 0) {
|
|
2242
2242
|
var c, h;
|
|
@@ -2454,18 +2454,18 @@ function _r() {
|
|
|
2454
2454
|
return o;
|
|
2455
2455
|
}, Ct.prototype.addShape = function() {
|
|
2456
2456
|
};
|
|
2457
|
-
function
|
|
2457
|
+
function Pe() {
|
|
2458
2458
|
}
|
|
2459
|
-
X([gt],
|
|
2459
|
+
X([gt], Pe), Pe.prototype.initModifierProperties = function(t, e) {
|
|
2460
2460
|
this.getValue = this.processKeys, this.rd = V.getProp(t, e.r, 0, null, this), this._isAnimated = !!this.rd.effectsSequence.length;
|
|
2461
|
-
},
|
|
2461
|
+
}, Pe.prototype.processPath = function(t, e) {
|
|
2462
2462
|
var i = ot.newElement();
|
|
2463
2463
|
i.c = t.c;
|
|
2464
2464
|
var s, n = t._length, r, o, c, h, m, _, M = 0, p, b, k, S, C, y;
|
|
2465
2465
|
for (s = 0; s < n; s += 1)
|
|
2466
2466
|
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]) * Nt, S = b - (b - r[1]) * Nt, 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]) * Nt, y = b - (b - r[1]) * Nt, 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);
|
|
2467
2467
|
return i;
|
|
2468
|
-
},
|
|
2468
|
+
}, Pe.prototype.processShapes = function(t) {
|
|
2469
2469
|
var e, i, s = this.shapes.length, n, r, o = this.rd.v;
|
|
2470
2470
|
if (o !== 0) {
|
|
2471
2471
|
var c, h;
|
|
@@ -2478,7 +2478,7 @@ function _r() {
|
|
|
2478
2478
|
}
|
|
2479
2479
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
2480
2480
|
};
|
|
2481
|
-
function
|
|
2481
|
+
function Xe(t, e) {
|
|
2482
2482
|
return Math.abs(t - e) * 1e5 <= Math.min(Math.abs(t), Math.abs(e));
|
|
2483
2483
|
}
|
|
2484
2484
|
function oi(t) {
|
|
@@ -2487,7 +2487,7 @@ function _r() {
|
|
|
2487
2487
|
function Ni(t, e, i) {
|
|
2488
2488
|
return t * (1 - i) + e * i;
|
|
2489
2489
|
}
|
|
2490
|
-
function
|
|
2490
|
+
function zt(t, e, i) {
|
|
2491
2491
|
return [Ni(t[0], e[0], i), Ni(t[1], e[1], i)];
|
|
2492
2492
|
}
|
|
2493
2493
|
function Ys(t, e, i) {
|
|
@@ -2499,15 +2499,15 @@ function _r() {
|
|
|
2499
2499
|
var r = Math.sqrt(s) / (2 * t);
|
|
2500
2500
|
return [n - r, n + r];
|
|
2501
2501
|
}
|
|
2502
|
-
function
|
|
2502
|
+
function ji(t, e, i, s) {
|
|
2503
2503
|
return [-t + 3 * e - 3 * i + s, 3 * t - 6 * e + 3 * i, -3 * t + 3 * e, t];
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2505
|
+
function zi(t) {
|
|
2506
2506
|
return new J(t, t, t, t, !1);
|
|
2507
2507
|
}
|
|
2508
2508
|
function J(t, e, i, s, n) {
|
|
2509
|
-
n && oe(t, e) && (e =
|
|
2510
|
-
var r =
|
|
2509
|
+
n && oe(t, e) && (e = zt(t, s, 1 / 3)), n && oe(i, s) && (i = zt(t, s, 2 / 3));
|
|
2510
|
+
var r = ji(t[0], e[0], i[0], s[0]), o = ji(t[1], e[1], i[1], s[1]);
|
|
2511
2511
|
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];
|
|
2512
2512
|
}
|
|
2513
2513
|
J.prototype.point = function(t) {
|
|
@@ -2530,12 +2530,12 @@ function _r() {
|
|
|
2530
2530
|
return n > 0 && n < 1;
|
|
2531
2531
|
});
|
|
2532
2532
|
}, J.prototype.split = function(t) {
|
|
2533
|
-
if (t <= 0) return [
|
|
2534
|
-
if (t >= 1) return [this,
|
|
2535
|
-
var e =
|
|
2533
|
+
if (t <= 0) return [zi(this.points[0]), this];
|
|
2534
|
+
if (t >= 1) return [this, zi(this.points[this.points.length - 1])];
|
|
2535
|
+
var e = zt(this.points[0], this.points[1], t), i = zt(this.points[1], this.points[2], t), s = zt(this.points[2], this.points[3], t), n = zt(e, i, t), r = zt(i, s, t), o = zt(n, r, t);
|
|
2536
2536
|
return [new J(this.points[0], e, n, o, !0), new J(o, r, s, this.points[3], !0)];
|
|
2537
2537
|
};
|
|
2538
|
-
function
|
|
2538
|
+
function qi(t, e) {
|
|
2539
2539
|
var i = t.points[0][e], s = t.points[t.points.length - 1][e];
|
|
2540
2540
|
if (i > s) {
|
|
2541
2541
|
var n = s;
|
|
@@ -2553,8 +2553,8 @@ function _r() {
|
|
|
2553
2553
|
}
|
|
2554
2554
|
J.prototype.bounds = function() {
|
|
2555
2555
|
return {
|
|
2556
|
-
x:
|
|
2557
|
-
y:
|
|
2556
|
+
x: qi(this, 0),
|
|
2557
|
+
y: qi(this, 1)
|
|
2558
2558
|
};
|
|
2559
2559
|
}, J.prototype.boundingBox = function() {
|
|
2560
2560
|
var t = this.bounds();
|
|
@@ -2569,7 +2569,7 @@ function _r() {
|
|
|
2569
2569
|
cy: (t.y.max + t.y.min) / 2
|
|
2570
2570
|
};
|
|
2571
2571
|
};
|
|
2572
|
-
function
|
|
2572
|
+
function Ye(t, e, i) {
|
|
2573
2573
|
var s = t.boundingBox();
|
|
2574
2574
|
return {
|
|
2575
2575
|
cx: s.cx,
|
|
@@ -2584,25 +2584,25 @@ function _r() {
|
|
|
2584
2584
|
}
|
|
2585
2585
|
function Di(t) {
|
|
2586
2586
|
var e = t.bez.split(0.5);
|
|
2587
|
-
return [
|
|
2587
|
+
return [Ye(e[0], t.t1, t.t), Ye(e[1], t.t, t.t2)];
|
|
2588
2588
|
}
|
|
2589
2589
|
function Hs(t, e) {
|
|
2590
2590
|
return Math.abs(t.cx - e.cx) * 2 < t.width + e.width && Math.abs(t.cy - e.cy) * 2 < t.height + e.height;
|
|
2591
2591
|
}
|
|
2592
|
-
function
|
|
2592
|
+
function ke(t, e, i, s, n, r) {
|
|
2593
2593
|
if (Hs(t, e)) {
|
|
2594
2594
|
if (i >= r || t.width <= s && t.height <= s && e.width <= s && e.height <= s) {
|
|
2595
2595
|
n.push([t.t, e.t]);
|
|
2596
2596
|
return;
|
|
2597
2597
|
}
|
|
2598
2598
|
var o = Di(t), c = Di(e);
|
|
2599
|
-
|
|
2599
|
+
ke(o[0], c[0], i + 1, s, n, r), ke(o[0], c[1], i + 1, s, n, r), ke(o[1], c[0], i + 1, s, n, r), ke(o[1], c[1], i + 1, s, n, r);
|
|
2600
2600
|
}
|
|
2601
2601
|
}
|
|
2602
2602
|
J.prototype.intersections = function(t, e, i) {
|
|
2603
2603
|
e === void 0 && (e = 2), i === void 0 && (i = 7);
|
|
2604
2604
|
var s = [];
|
|
2605
|
-
return
|
|
2605
|
+
return ke(Ye(this, 0, 1), Ye(t, 0, 1), 0, e, s, i), s;
|
|
2606
2606
|
}, J.shapeSegment = function(t, e) {
|
|
2607
2607
|
var i = (e + 1) % t.length();
|
|
2608
2608
|
return new J(t.v[e], t.o[e], t.i[i], t.v[i], !0);
|
|
@@ -2613,7 +2613,7 @@ function _r() {
|
|
|
2613
2613
|
function hi(t, e) {
|
|
2614
2614
|
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]];
|
|
2615
2615
|
}
|
|
2616
|
-
function
|
|
2616
|
+
function He(t, e, i, s) {
|
|
2617
2617
|
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 = hi(hi(n, r), hi(o, c));
|
|
2618
2618
|
return oi(h[2]) ? null : [h[0] / h[2], h[1] / h[2]];
|
|
2619
2619
|
}
|
|
@@ -2624,11 +2624,11 @@ function _r() {
|
|
|
2624
2624
|
return Math.hypot(t[0] - e[0], t[1] - e[1]);
|
|
2625
2625
|
}
|
|
2626
2626
|
function oe(t, e) {
|
|
2627
|
-
return
|
|
2627
|
+
return Xe(t[0], e[0]) && Xe(t[1], e[1]);
|
|
2628
2628
|
}
|
|
2629
|
-
function
|
|
2629
|
+
function Ae() {
|
|
2630
2630
|
}
|
|
2631
|
-
X([gt],
|
|
2631
|
+
X([gt], Ae), Ae.prototype.initModifierProperties = function(t, e) {
|
|
2632
2632
|
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;
|
|
2633
2633
|
};
|
|
2634
2634
|
function Wi(t, e, i, s, n, r, o) {
|
|
@@ -2654,7 +2654,7 @@ function _r() {
|
|
|
2654
2654
|
}
|
|
2655
2655
|
return r;
|
|
2656
2656
|
}
|
|
2657
|
-
|
|
2657
|
+
Ae.prototype.processPath = function(t, e, i, s) {
|
|
2658
2658
|
var n = t._length, r = ot.newElement();
|
|
2659
2659
|
if (r.c = t.c, t.c || (n -= 1), n === 0) return r;
|
|
2660
2660
|
var o = -1, c = J.shapeSegment(t, 0);
|
|
@@ -2662,7 +2662,7 @@ function _r() {
|
|
|
2662
2662
|
for (var h = 0; h < n; h += 1)
|
|
2663
2663
|
o = Us(r, c, e, i, s, -o), h === n - 1 && !t.c ? c = null : c = J.shapeSegment(t, (h + 1) % n), Gi(r, t, h + 1, e, i, s, o);
|
|
2664
2664
|
return r;
|
|
2665
|
-
},
|
|
2665
|
+
}, Ae.prototype.processShapes = function(t) {
|
|
2666
2666
|
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;
|
|
2667
2667
|
if (o !== 0) {
|
|
2668
2668
|
var m, _;
|
|
@@ -2682,24 +2682,24 @@ function _r() {
|
|
|
2682
2682
|
function he(t, e) {
|
|
2683
2683
|
var i, s, n, r, o, c, h;
|
|
2684
2684
|
h = fi(t.points[0], t.points[1], e), i = h[0], s = h[1], h = fi(t.points[1], t.points[2], e), n = h[0], r = h[1], h = fi(t.points[2], t.points[3], e), o = h[0], c = h[1];
|
|
2685
|
-
var m =
|
|
2685
|
+
var m = He(i, s, n, r);
|
|
2686
2686
|
m === null && (m = s);
|
|
2687
|
-
var _ =
|
|
2687
|
+
var _ = He(o, c, n, r);
|
|
2688
2688
|
return _ === null && (_ = o), new J(i, m, _, c);
|
|
2689
2689
|
}
|
|
2690
2690
|
function Xi(t, e, i, s, n) {
|
|
2691
2691
|
var r = e.points[3], o = i.points[0];
|
|
2692
2692
|
if (s === 3 || oe(r, o)) return r;
|
|
2693
2693
|
if (s === 2) {
|
|
2694
|
-
var c = -e.tangentAngle(1), h = -i.tangentAngle(0) + Math.PI, m =
|
|
2694
|
+
var c = -e.tangentAngle(1), h = -i.tangentAngle(0) + Math.PI, m = He(r, ae(r, c + Math.PI / 2, 100), o, ae(o, c + Math.PI / 2, 100)), _ = m ? li(m, r) : li(r, o) / 2, M = ae(r, c, 2 * _ * Nt);
|
|
2695
2695
|
return t.setXYAt(M[0], M[1], "o", t.length() - 1), M = ae(o, h, 2 * _ * Nt), t.setTripleAt(o[0], o[1], o[0], o[1], M[0], M[1], t.length()), o;
|
|
2696
2696
|
}
|
|
2697
|
-
var p = oe(r, e.points[2]) ? e.points[0] : e.points[2], b = oe(o, i.points[1]) ? i.points[3] : i.points[1], k =
|
|
2697
|
+
var p = oe(r, e.points[2]) ? e.points[0] : e.points[2], b = oe(o, i.points[1]) ? i.points[3] : i.points[1], k = He(p, r, o, b);
|
|
2698
2698
|
return k && li(k, r) < n ? (t.setTripleAt(k[0], k[1], k[0], k[1], k[0], k[1], t.length()), k) : r;
|
|
2699
2699
|
}
|
|
2700
2700
|
function Yi(t, e) {
|
|
2701
2701
|
var i = t.intersections(e);
|
|
2702
|
-
return i.length &&
|
|
2702
|
+
return i.length && Xe(i[0][0], 1) && i.shift(), i.length ? i[0] : null;
|
|
2703
2703
|
}
|
|
2704
2704
|
function Hi(t, e) {
|
|
2705
2705
|
var i = t.slice(), s = e.slice(), n = Yi(t[t.length - 1], e[0]);
|
|
@@ -2714,17 +2714,17 @@ function _r() {
|
|
|
2714
2714
|
var i = t.inflectionPoints(), s, n, r, o;
|
|
2715
2715
|
if (i.length === 0)
|
|
2716
2716
|
return [he(t, e)];
|
|
2717
|
-
if (i.length === 1 ||
|
|
2717
|
+
if (i.length === 1 || Xe(i[1], 1))
|
|
2718
2718
|
return r = t.split(i[0]), s = r[0], n = r[1], [he(s, e), he(n, e)];
|
|
2719
2719
|
r = t.split(i[0]), s = r[0];
|
|
2720
2720
|
var c = (i[1] - i[0]) / (1 - i[0]);
|
|
2721
2721
|
return r = r[1].split(c), o = r[0], n = r[1], [he(s, e), he(o, e), he(n, e)];
|
|
2722
2722
|
}
|
|
2723
|
-
function
|
|
2723
|
+
function we() {
|
|
2724
2724
|
}
|
|
2725
|
-
X([gt],
|
|
2725
|
+
X([gt], we), we.prototype.initModifierProperties = function(t, e) {
|
|
2726
2726
|
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;
|
|
2727
|
-
},
|
|
2727
|
+
}, we.prototype.processPath = function(t, e, i, s) {
|
|
2728
2728
|
var n = ot.newElement();
|
|
2729
2729
|
n.c = t.c;
|
|
2730
2730
|
var r = t.length();
|
|
@@ -2743,7 +2743,7 @@ function _r() {
|
|
|
2743
2743
|
h = p[c], _ && oe(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];
|
|
2744
2744
|
}
|
|
2745
2745
|
return m.length && Xi(n, M, m[0][0], i, s), n;
|
|
2746
|
-
},
|
|
2746
|
+
}, we.prototype.processShapes = function(t) {
|
|
2747
2747
|
var e, i, s = this.shapes.length, n, r, o = this.amount.v, c = this.miterLimit.v, h = this.lineJoin;
|
|
2748
2748
|
if (o !== 0) {
|
|
2749
2749
|
var m, _;
|
|
@@ -2829,11 +2829,11 @@ function _r() {
|
|
|
2829
2829
|
var R = new OffscreenCanvas(500, 500).getContext("2d");
|
|
2830
2830
|
R.font = E.style + " " + E.weight + " 100px " + d.fFamily, l = R;
|
|
2831
2831
|
}
|
|
2832
|
-
function
|
|
2832
|
+
function z(D) {
|
|
2833
2833
|
return a === "svg" ? (l.textContent = D, l.getComputedTextLength()) : l.measureText(D).width;
|
|
2834
2834
|
}
|
|
2835
2835
|
return {
|
|
2836
|
-
measureText:
|
|
2836
|
+
measureText: z
|
|
2837
2837
|
};
|
|
2838
2838
|
}
|
|
2839
2839
|
function C(d, P) {
|
|
@@ -2853,24 +2853,24 @@ function _r() {
|
|
|
2853
2853
|
}
|
|
2854
2854
|
var a = d.list, l, E = a.length, w = E;
|
|
2855
2855
|
for (l = 0; l < E; l += 1) {
|
|
2856
|
-
var R = !0,
|
|
2856
|
+
var R = !0, z, D;
|
|
2857
2857
|
if (a[l].loaded = !1, a[l].monoCase = b(a[l].fFamily, "monospace"), a[l].sansCase = b(a[l].fFamily, "sans-serif"), !a[l].fPath)
|
|
2858
2858
|
a[l].loaded = !0, w -= 1;
|
|
2859
2859
|
else if (a[l].fOrigin === "p" || a[l].origin === 3) {
|
|
2860
|
-
if (
|
|
2860
|
+
if (z = document.querySelectorAll('style[f-forigin="p"][f-family="' + a[l].fFamily + '"], style[f-origin="3"][f-family="' + a[l].fFamily + '"]'), z.length > 0 && (R = !1), R) {
|
|
2861
2861
|
var Y = _t("style");
|
|
2862
2862
|
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);
|
|
2863
2863
|
}
|
|
2864
2864
|
} else if (a[l].fOrigin === "g" || a[l].origin === 1) {
|
|
2865
|
-
for (
|
|
2866
|
-
|
|
2865
|
+
for (z = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), D = 0; D < z.length; D += 1)
|
|
2866
|
+
z[D].href.indexOf(a[l].fPath) !== -1 && (R = !1);
|
|
2867
2867
|
if (R) {
|
|
2868
2868
|
var H = _t("link");
|
|
2869
2869
|
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);
|
|
2870
2870
|
}
|
|
2871
2871
|
} else if (a[l].fOrigin === "t" || a[l].origin === 2) {
|
|
2872
|
-
for (
|
|
2873
|
-
a[l].fPath ===
|
|
2872
|
+
for (z = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), D = 0; D < z.length; D += 1)
|
|
2873
|
+
a[l].fPath === z[D].src && (R = !1);
|
|
2874
2874
|
if (R) {
|
|
2875
2875
|
var et = _t("link");
|
|
2876
2876
|
et.setAttribute("f-forigin", a[l].fOrigin), et.setAttribute("f-origin", a[l].origin), et.setAttribute("rel", "stylesheet"), et.setAttribute("href", a[l].fPath), P.appendChild(et);
|
|
@@ -2904,8 +2904,8 @@ function _r() {
|
|
|
2904
2904
|
if (!l.cache[E]) {
|
|
2905
2905
|
var w = l.helper;
|
|
2906
2906
|
if (d === " ") {
|
|
2907
|
-
var R = w.measureText("|" + d + "|"),
|
|
2908
|
-
l.cache[E] = (R -
|
|
2907
|
+
var R = w.measureText("|" + d + "|"), z = w.measureText("||");
|
|
2908
|
+
l.cache[E] = (R - z) / 100;
|
|
2909
2909
|
} else
|
|
2910
2910
|
l.cache[E] = w.measureText(d) / 100;
|
|
2911
2911
|
}
|
|
@@ -2941,7 +2941,7 @@ function _r() {
|
|
|
2941
2941
|
var P = g(d);
|
|
2942
2942
|
return P >= m && P <= _;
|
|
2943
2943
|
}
|
|
2944
|
-
function
|
|
2944
|
+
function q(d) {
|
|
2945
2945
|
return I(d.substr(0, 2)) && I(d.substr(2, 2));
|
|
2946
2946
|
}
|
|
2947
2947
|
function N(d) {
|
|
@@ -2965,7 +2965,7 @@ function _r() {
|
|
|
2965
2965
|
var O = function() {
|
|
2966
2966
|
this.fonts = [], this.chars = null, this.typekitLoaded = 0, this.isLoaded = !1, this._warned = !1, this.initTime = Date.now(), this.setIsLoadedBinded = this.setIsLoaded.bind(this), this.checkLoadedFontsBinded = this.checkLoadedFonts.bind(this);
|
|
2967
2967
|
};
|
|
2968
|
-
O.isModifier = A, O.isZeroWidthJoiner = T, O.isFlagEmoji =
|
|
2968
|
+
O.isModifier = A, O.isZeroWidthJoiner = T, O.isFlagEmoji = q, O.isRegionalCode = I, O.isCombinedCharacter = N, O.isRegionalFlag = L, O.isVariationSelector = x, O.BLACK_FLAG_CODE_POINT = s;
|
|
2969
2969
|
var F = {
|
|
2970
2970
|
addChars: y,
|
|
2971
2971
|
addFonts: C,
|
|
@@ -2986,9 +2986,9 @@ function _r() {
|
|
|
2986
2986
|
function Qs(t) {
|
|
2987
2987
|
return new Ui(t);
|
|
2988
2988
|
}
|
|
2989
|
-
function
|
|
2989
|
+
function Ze() {
|
|
2990
2990
|
}
|
|
2991
|
-
|
|
2991
|
+
Ze.prototype = {
|
|
2992
2992
|
initRenderable: function() {
|
|
2993
2993
|
this.isInRange = !1, this.hidden = !1, this.isTransparent = !1, this.renderableComponents = [];
|
|
2994
2994
|
},
|
|
@@ -3090,12 +3090,12 @@ function _r() {
|
|
|
3090
3090
|
this.effectElements = [];
|
|
3091
3091
|
var s, n = i.length, r;
|
|
3092
3092
|
for (s = 0; s < n; s += 1)
|
|
3093
|
-
r = new
|
|
3093
|
+
r = new Ce(i[s], e), this.effectElements.push(r);
|
|
3094
3094
|
}
|
|
3095
|
-
function
|
|
3095
|
+
function Ce(t, e) {
|
|
3096
3096
|
this.init(t, e);
|
|
3097
3097
|
}
|
|
3098
|
-
X([rt],
|
|
3098
|
+
X([rt], Ce), Ce.prototype.getValue = Ce.prototype.iterateDynamicProperties, Ce.prototype.init = function(t, e) {
|
|
3099
3099
|
this.data = t, this.effectElements = [], this.initDynamicPropertyContainer(e);
|
|
3100
3100
|
var i, s = this.data.ef.length, n, r = this.data.ef;
|
|
3101
3101
|
for (i = 0; i < s; i += 1) {
|
|
@@ -3133,9 +3133,9 @@ function _r() {
|
|
|
3133
3133
|
n && this.effectElements.push(n);
|
|
3134
3134
|
}
|
|
3135
3135
|
};
|
|
3136
|
-
function
|
|
3136
|
+
function qt() {
|
|
3137
3137
|
}
|
|
3138
|
-
|
|
3138
|
+
qt.prototype = {
|
|
3139
3139
|
checkMasks: function() {
|
|
3140
3140
|
if (!this.data.hasMask)
|
|
3141
3141
|
return !1;
|
|
@@ -3195,7 +3195,7 @@ function _r() {
|
|
|
3195
3195
|
this.initFrame(), this.initRenderable(), this.assetData = e.getAssetData(t.refId), this.footageData = e.imageLoader.getAsset(this.assetData), this.initBaseData(t, e, i);
|
|
3196
3196
|
}
|
|
3197
3197
|
Wt.prototype.prepareFrame = function() {
|
|
3198
|
-
}, X([
|
|
3198
|
+
}, X([Ze, qt, Dt], Wt), Wt.prototype.getBaseElement = function() {
|
|
3199
3199
|
return null;
|
|
3200
3200
|
}, Wt.prototype.renderFrame = function() {
|
|
3201
3201
|
}, Wt.prototype.destroy = function() {
|
|
@@ -3222,7 +3222,7 @@ function _r() {
|
|
|
3222
3222
|
this._volume = this.lv.v[0];
|
|
3223
3223
|
var i = this._volume * this._volumeMultiplier;
|
|
3224
3224
|
this._previousVolume !== i && (this._previousVolume = i, this.audio.volume(i));
|
|
3225
|
-
}, X([
|
|
3225
|
+
}, X([Ze, qt, Dt], ut), ut.prototype.renderFrame = function() {
|
|
3226
3226
|
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));
|
|
3227
3227
|
}, ut.prototype.show = function() {
|
|
3228
3228
|
}, ut.prototype.hide = function() {
|
|
@@ -3369,7 +3369,7 @@ function _r() {
|
|
|
3369
3369
|
for (e = this.finalTransform.mProp.v.props, i.cloneFromProps(e), s = 0; s < n; s += 1)
|
|
3370
3370
|
i.multiply(this.hierarchy[s].finalTransform.mProp.v);
|
|
3371
3371
|
}
|
|
3372
|
-
this.finalTransform._matMdf && (this.finalTransform._localMatMdf = this.finalTransform._matMdf), this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v);
|
|
3372
|
+
(!this.localTransforms || this.finalTransform._matMdf) && (this.finalTransform._localMatMdf = this.finalTransform._matMdf), this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v);
|
|
3373
3373
|
},
|
|
3374
3374
|
renderLocalTransform: function() {
|
|
3375
3375
|
if (this.localTransforms) {
|
|
@@ -3425,7 +3425,7 @@ function _r() {
|
|
|
3425
3425
|
if ((c[n].mode !== "a" && c[n].mode !== "n" || c[n].inv || c[n].o.k !== 100 || c[n].o.x) && (y = "mask", v = "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")
|
|
3426
3426
|
this.viewData[n] = {
|
|
3427
3427
|
op: V.getProp(this.element, c[n].o, 0, 0.01, this.element),
|
|
3428
|
-
prop:
|
|
3428
|
+
prop: Ge.getShapeProp(this.element, c[n], 3),
|
|
3429
3429
|
elem: o,
|
|
3430
3430
|
lastPath: ""
|
|
3431
3431
|
}, s.appendChild(o);
|
|
@@ -3453,7 +3453,7 @@ function _r() {
|
|
|
3453
3453
|
elem: o,
|
|
3454
3454
|
lastPath: "",
|
|
3455
3455
|
op: V.getProp(this.element, c[n].o, 0, 0.01, this.element),
|
|
3456
|
-
prop:
|
|
3456
|
+
prop: Ge.getShapeProp(this.element, c[n], 3),
|
|
3457
3457
|
invRect: b
|
|
3458
3458
|
}, this.viewData[n].prop.k || this.drawPath(c[n], this.viewData[n].prop.v, this.viewData[n]);
|
|
3459
3459
|
}
|
|
@@ -3486,7 +3486,7 @@ function _r() {
|
|
|
3486
3486
|
}, ee.prototype.destroy = function() {
|
|
3487
3487
|
this.element = null, this.globalData = null, this.maskElement = null, this.data = null, this.masksProperties = null;
|
|
3488
3488
|
};
|
|
3489
|
-
var
|
|
3489
|
+
var Te = function() {
|
|
3490
3490
|
var t = {};
|
|
3491
3491
|
t.createFilter = e, t.createAlphaToLuminanceFilter = i;
|
|
3492
3492
|
function e(s, n) {
|
|
@@ -3507,7 +3507,7 @@ function _r() {
|
|
|
3507
3507
|
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;
|
|
3508
3508
|
}(), ui = {}, $i = "filter_result_";
|
|
3509
3509
|
function ci(t) {
|
|
3510
|
-
var e, i = "SourceGraphic", s = t.data.ef ? t.data.ef.length : 0, n = pt(), r =
|
|
3510
|
+
var e, i = "SourceGraphic", s = t.data.ef ? t.data.ef.length : 0, n = pt(), r = Te.createFilter(n, !0), o = 0;
|
|
3511
3511
|
this.filters = [];
|
|
3512
3512
|
var c;
|
|
3513
3513
|
for (e = 0; e < s; e += 1) {
|
|
@@ -3531,9 +3531,9 @@ function _r() {
|
|
|
3531
3531
|
this.filters[e].type === t && s.push(this.filters[e]);
|
|
3532
3532
|
return s;
|
|
3533
3533
|
};
|
|
3534
|
-
function
|
|
3534
|
+
function Me() {
|
|
3535
3535
|
}
|
|
3536
|
-
|
|
3536
|
+
Me.prototype = {
|
|
3537
3537
|
initRendererElement: function() {
|
|
3538
3538
|
this.layerElement = W("g");
|
|
3539
3539
|
},
|
|
@@ -3574,18 +3574,18 @@ function _r() {
|
|
|
3574
3574
|
var i = this.layerId + "_" + e, s, n, r, o;
|
|
3575
3575
|
if (e === 1 || e === 3) {
|
|
3576
3576
|
var c = W("mask");
|
|
3577
|
-
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), !Qi.maskType && e === 1 && (c.setAttribute("mask-type", "luminance"), s = pt(), n =
|
|
3577
|
+
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), !Qi.maskType && e === 1 && (c.setAttribute("mask-type", "luminance"), s = pt(), n = Te.createFilter(s), this.globalData.defs.appendChild(n), n.appendChild(Te.createAlphaToLuminanceFilter()), o = W("g"), o.appendChild(r), c.appendChild(o), o.setAttribute("filter", "url(" + at() + "#" + s + ")"));
|
|
3578
3578
|
} else if (e === 2) {
|
|
3579
3579
|
var h = W("mask");
|
|
3580
3580
|
h.setAttribute("id", i), h.setAttribute("mask-type", "alpha");
|
|
3581
3581
|
var m = W("g");
|
|
3582
|
-
h.appendChild(m), s = pt(), n =
|
|
3582
|
+
h.appendChild(m), s = pt(), n = Te.createFilter(s);
|
|
3583
3583
|
var _ = W("feComponentTransfer");
|
|
3584
3584
|
_.setAttribute("in", "SourceGraphic"), n.appendChild(_);
|
|
3585
3585
|
var M = W("feFuncA");
|
|
3586
3586
|
M.setAttribute("type", "table"), M.setAttribute("tableValues", "1.0 0.0"), _.appendChild(M), this.globalData.defs.appendChild(n);
|
|
3587
3587
|
var p = W("rect");
|
|
3588
|
-
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(" + at() + "#" + s + ")"), m.appendChild(p), r = W("use"), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), m.appendChild(r), Qi.maskType || (h.setAttribute("mask-type", "luminance"), n.appendChild(
|
|
3588
|
+
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(" + at() + "#" + s + ")"), m.appendChild(p), r = W("use"), r.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), m.appendChild(r), Qi.maskType || (h.setAttribute("mask-type", "luminance"), n.appendChild(Te.createAlphaToLuminanceFilter()), o = W("g"), m.appendChild(p), o.appendChild(this.layerElement), m.appendChild(o)), this.globalData.defs.appendChild(h);
|
|
3589
3589
|
}
|
|
3590
3590
|
this.matteMasks[e] = i;
|
|
3591
3591
|
}
|
|
@@ -3633,7 +3633,7 @@ function _r() {
|
|
|
3633
3633
|
this.data.parent !== void 0 && this.comp.buildElementParenting(this, this.data.parent, []);
|
|
3634
3634
|
}
|
|
3635
3635
|
};
|
|
3636
|
-
function
|
|
3636
|
+
function Ee() {
|
|
3637
3637
|
}
|
|
3638
3638
|
(function() {
|
|
3639
3639
|
var t = {
|
|
@@ -3667,9 +3667,9 @@ function _r() {
|
|
|
3667
3667
|
this.innerElem = null, this.destroyBaseElement();
|
|
3668
3668
|
}
|
|
3669
3669
|
};
|
|
3670
|
-
X([
|
|
3670
|
+
X([Ze, $e(t)], Ee);
|
|
3671
3671
|
})();
|
|
3672
|
-
function
|
|
3672
|
+
function xe(t, e, i) {
|
|
3673
3673
|
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 = {
|
|
3674
3674
|
top: 0,
|
|
3675
3675
|
left: 0,
|
|
@@ -3677,10 +3677,10 @@ function _r() {
|
|
|
3677
3677
|
height: this.assetData.h
|
|
3678
3678
|
};
|
|
3679
3679
|
}
|
|
3680
|
-
X([
|
|
3680
|
+
X([qt, le, Me, fe, Dt, Ee], xe), xe.prototype.createContent = function() {
|
|
3681
3681
|
var t = this.globalData.getAssetsPath(this.assetData);
|
|
3682
3682
|
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);
|
|
3683
|
-
},
|
|
3683
|
+
}, xe.prototype.sourceRectAtTime = function() {
|
|
3684
3684
|
return this.sourceRect;
|
|
3685
3685
|
};
|
|
3686
3686
|
function hr(t, e) {
|
|
@@ -3759,7 +3759,7 @@ function _r() {
|
|
|
3759
3759
|
rs.prototype.reset = function() {
|
|
3760
3760
|
this.d = "", this._mdf = !1;
|
|
3761
3761
|
};
|
|
3762
|
-
function
|
|
3762
|
+
function Ke(t, e, i, s) {
|
|
3763
3763
|
this.elem = t, this.frameId = -1, this.dataProps = tt(e.length), this.renderer = i, this.k = !1, this.dashStr = "", this.dashArray = U("float32", e.length ? e.length - 1 : 0), this.dashoffset = U("float32", 1), this.initDynamicPropertyContainer(s);
|
|
3764
3764
|
var n, r = e.length || 0, o;
|
|
3765
3765
|
for (n = 0; n < r; n += 1)
|
|
@@ -3769,15 +3769,15 @@ function _r() {
|
|
|
3769
3769
|
};
|
|
3770
3770
|
this.k || this.getValue(!0), this._isAnimated = this.k;
|
|
3771
3771
|
}
|
|
3772
|
-
|
|
3772
|
+
Ke.prototype.getValue = function(t) {
|
|
3773
3773
|
if (!(this.elem.globalData.frameId === this.frameId && !t) && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf = this._mdf || t, this._mdf)) {
|
|
3774
3774
|
var e = 0, i = this.dataProps.length;
|
|
3775
3775
|
for (this.renderer === "svg" && (this.dashStr = ""), e = 0; e < i; e += 1)
|
|
3776
3776
|
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;
|
|
3777
3777
|
}
|
|
3778
|
-
}, X([rt],
|
|
3778
|
+
}, X([rt], Ke);
|
|
3779
3779
|
function ns(t, e, i) {
|
|
3780
|
-
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
|
|
3780
|
+
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 Ke(t, e.d || {}, "svg", this), this.c = V.getProp(t, e.c, 1, 255, this), this.style = i, this._isAnimated = !!this._isAnimated;
|
|
3781
3781
|
}
|
|
3782
3782
|
X([rt], ns);
|
|
3783
3783
|
function as(t, e, i) {
|
|
@@ -3788,19 +3788,19 @@ function _r() {
|
|
|
3788
3788
|
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.style = i;
|
|
3789
3789
|
}
|
|
3790
3790
|
X([rt], os);
|
|
3791
|
-
function
|
|
3791
|
+
function Fe(t, e, i) {
|
|
3792
3792
|
this.data = e, this.c = U("uint8c", e.p * 4);
|
|
3793
3793
|
var s = e.k.k[0].s ? e.k.k[0].s.length - e.p * 4 : e.k.k.length - e.p * 4;
|
|
3794
3794
|
this.o = U("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);
|
|
3795
3795
|
}
|
|
3796
|
-
|
|
3796
|
+
Fe.prototype.comparePoints = function(t, e) {
|
|
3797
3797
|
for (var i = 0, s = this.o.length / 2, n; i < s; ) {
|
|
3798
3798
|
if (n = Math.abs(t[i * 4] - t[e * 4 + i * 2]), n > 0.01)
|
|
3799
3799
|
return !1;
|
|
3800
3800
|
i += 1;
|
|
3801
3801
|
}
|
|
3802
3802
|
return !0;
|
|
3803
|
-
},
|
|
3803
|
+
}, Fe.prototype.checkCollapsable = function() {
|
|
3804
3804
|
if (this.o.length / 2 !== this.c.length / 4)
|
|
3805
3805
|
return !1;
|
|
3806
3806
|
if (this.data.k.k[0].s)
|
|
@@ -3812,7 +3812,7 @@ function _r() {
|
|
|
3812
3812
|
else if (!this.comparePoints(this.data.k.k, this.data.p))
|
|
3813
3813
|
return !1;
|
|
3814
3814
|
return !0;
|
|
3815
|
-
},
|
|
3815
|
+
}, Fe.prototype.getValue = function(t) {
|
|
3816
3816
|
if (this.prop.getValue(), this._mdf = !1, this._cmdf = !1, this._omdf = !1, this.prop._mdf || t) {
|
|
3817
3817
|
var e, i = this.data.p * 4, s, n;
|
|
3818
3818
|
for (e = 0; e < i; e += 1)
|
|
@@ -3822,7 +3822,7 @@ function _r() {
|
|
|
3822
3822
|
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);
|
|
3823
3823
|
this._mdf = !t;
|
|
3824
3824
|
}
|
|
3825
|
-
}, X([rt],
|
|
3825
|
+
}, X([rt], Fe);
|
|
3826
3826
|
function pe(t, e, i) {
|
|
3827
3827
|
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.initGradientData(t, e, i);
|
|
3828
3828
|
}
|
|
@@ -3831,7 +3831,7 @@ function _r() {
|
|
|
3831
3831
|
k: 0
|
|
3832
3832
|
}, 0, 0.01, this), this.a = V.getProp(t, e.a || {
|
|
3833
3833
|
k: 0
|
|
3834
|
-
}, 0, Q, this), this.g = new
|
|
3834
|
+
}, 0, Q, this), this.g = new Fe(t, e.g, this), this.style = i, this.stops = [], this.setGradientData(i.pElem, e), this.setGradientOpacity(e, i), this._isAnimated = !!this._isAnimated;
|
|
3835
3835
|
}, pe.prototype.setGradientData = function(t, e) {
|
|
3836
3836
|
var i = pt(), s = W(e.t === 1 ? "linearGradient" : "radialGradient");
|
|
3837
3837
|
s.setAttribute("id", i), s.setAttribute("spreadMethod", "pad"), s.setAttribute("gradientUnits", "userSpaceOnUse");
|
|
@@ -3854,7 +3854,7 @@ function _r() {
|
|
|
3854
3854
|
}
|
|
3855
3855
|
}, X([rt], pe);
|
|
3856
3856
|
function hs(t, e, i) {
|
|
3857
|
-
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.w = V.getProp(t, e.w, 0, null, this), this.d = new
|
|
3857
|
+
this.initDynamicPropertyContainer(t), this.getValue = this.iterateDynamicProperties, this.w = V.getProp(t, e.w, 0, null, this), this.d = new Ke(t, e.d || {}, "svg", this), this.initGradientData(t, e, i), this._isAnimated = !!this._isAnimated;
|
|
3858
3858
|
}
|
|
3859
3859
|
X([pe, rt], hs);
|
|
3860
3860
|
function lr() {
|
|
@@ -3951,15 +3951,15 @@ function _r() {
|
|
|
3951
3951
|
x = g[A], x.setAttribute("offset", I[A * 4] + "%"), x.setAttribute("stop-color", "rgb(" + I[A * 4 + 1] + "," + I[A * 4 + 2] + "," + I[A * 4 + 3] + ")");
|
|
3952
3952
|
}
|
|
3953
3953
|
if (S && (p.g._omdf || b)) {
|
|
3954
|
-
var
|
|
3954
|
+
var q = p.g.o;
|
|
3955
3955
|
for (p.g._collapsable ? g = p.cst : g = p.ost, T = g.length, A = 0; A < T; A += 1)
|
|
3956
|
-
x = g[A], p.g._collapsable || x.setAttribute("offset",
|
|
3956
|
+
x = g[A], p.g._collapsable || x.setAttribute("offset", q[A * 2] + "%"), x.setAttribute("stop-opacity", q[A * 2 + 1]);
|
|
3957
3957
|
}
|
|
3958
3958
|
if (M.t === 1)
|
|
3959
3959
|
(p.e._mdf || b) && (k.setAttribute("x2", y[0]), k.setAttribute("y2", y[1]), S && !p.g._collapsable && (p.of.setAttribute("x2", y[0]), p.of.setAttribute("y2", y[1])));
|
|
3960
3960
|
else {
|
|
3961
3961
|
var N;
|
|
3962
|
-
if ((p.s._mdf || p.e._mdf || b) && (N = Math.sqrt(Math.pow(C[0] - y[0], 2) + Math.pow(C[1] - y[1], 2)), k.setAttribute("r", N), S && !p.g._collapsable && p.of.setAttribute("r", N)), p.e._mdf || p.h._mdf || p.a._mdf || b) {
|
|
3962
|
+
if ((p.s._mdf || p.e._mdf || b) && (N = Math.sqrt(Math.pow(C[0] - y[0], 2) + Math.pow(C[1] - y[1], 2)), k.setAttribute("r", N), S && !p.g._collapsable && p.of.setAttribute("r", N)), p.s._mdf || p.e._mdf || p.h._mdf || p.a._mdf || b) {
|
|
3963
3963
|
N || (N = Math.sqrt(Math.pow(C[0] - y[0], 2) + Math.pow(C[1] - y[1], 2)));
|
|
3964
3964
|
var L = Math.atan2(y[1] - C[1], y[0] - C[0]), G = p.h.v;
|
|
3965
3965
|
G >= 1 ? G = 0.99 : G <= -1 && (G = -0.99);
|
|
@@ -3977,7 +3977,7 @@ function _r() {
|
|
|
3977
3977
|
function $(t, e, i) {
|
|
3978
3978
|
this.shapes = [], this.shapesData = t.shapes, this.stylesList = [], this.shapeModifiers = [], this.itemsData = [], this.processedElements = [], this.animatedContents = [], this.initElement(t, e, i), this.prevViewData = [];
|
|
3979
3979
|
}
|
|
3980
|
-
X([
|
|
3980
|
+
X([qt, le, Me, ts, fe, Dt, Ee], $), $.prototype.initSecondaryElement = function() {
|
|
3981
3981
|
}, $.prototype.identityMatrix = new ht(), $.prototype.buildExpressionInterface = function() {
|
|
3982
3982
|
}, $.prototype.createContent = function() {
|
|
3983
3983
|
this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], !0), this.filterUniqueShapes();
|
|
@@ -4012,7 +4012,7 @@ function _r() {
|
|
|
4012
4012
|
}, $.prototype.createShapeElement = function(t, e, i) {
|
|
4013
4013
|
var s = 4;
|
|
4014
4014
|
t.ty === "rc" ? s = 5 : t.ty === "el" ? s = 6 : t.ty === "sr" && (s = 7);
|
|
4015
|
-
var n =
|
|
4015
|
+
var n = Ge.getShapeProp(this, t, s, this), r = new ss(e, i, n);
|
|
4016
4016
|
return this.shapes.push(r), this.addShapeToModifiers(r), this.addToAnimatedContents(t, r), r;
|
|
4017
4017
|
}, $.prototype.addToAnimatedContents = function(t, e) {
|
|
4018
4018
|
for (var i = 0, s = this.animatedContents.length; i < s; ) {
|
|
@@ -4028,7 +4028,7 @@ function _r() {
|
|
|
4028
4028
|
}, $.prototype.setElementStyles = function(t) {
|
|
4029
4029
|
var e = t.styles, i, s = this.stylesList.length;
|
|
4030
4030
|
for (i = 0; i < s; i += 1)
|
|
4031
|
-
this.stylesList[i].closed
|
|
4031
|
+
e.indexOf(this.stylesList[i]) === -1 && !this.stylesList[i].closed && e.push(this.stylesList[i]);
|
|
4032
4032
|
}, $.prototype.reloadShapes = function() {
|
|
4033
4033
|
this._isFirstFrame = !0;
|
|
4034
4034
|
var t, e = this.itemsData.length;
|
|
@@ -4041,7 +4041,7 @@ function _r() {
|
|
|
4041
4041
|
var c = [].concat(r), h, m = t.length - 1, _, M, p = [], b = [], k, S, C;
|
|
4042
4042
|
for (h = m; h >= 0; h -= 1) {
|
|
4043
4043
|
if (C = this.searchProcessedElement(t[h]), C ? e[h] = i[C - 1] : t[h]._render = o, t[h].ty === "fl" || t[h].ty === "st" || t[h].ty === "gf" || t[h].ty === "gs" || t[h].ty === "no")
|
|
4044
|
-
C ? e[h].style.closed =
|
|
4044
|
+
C ? e[h].style.closed = t[h].hd : e[h] = this.createStyleElement(t[h], n), t[h]._render && e[h].style.pElem.parentNode !== s && s.appendChild(e[h].style.pElem), p.push(e[h].style);
|
|
4045
4045
|
else if (t[h].ty === "gr") {
|
|
4046
4046
|
if (!C)
|
|
4047
4047
|
e[h] = this.createGroupElement(t[h]);
|
|
@@ -4049,7 +4049,7 @@ function _r() {
|
|
|
4049
4049
|
for (M = e[h].it.length, _ = 0; _ < M; _ += 1)
|
|
4050
4050
|
e[h].prevViewData[_] = e[h].it[_];
|
|
4051
4051
|
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);
|
|
4052
|
-
} else 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 =
|
|
4052
|
+
} else 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 = jt.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 = jt.getModifier(t[h].ty), e[h] = S, S.init(this, t, h, e), this.shapeModifiers.push(S), o = !1), b.push(S));
|
|
4053
4053
|
this.addProcessedElement(t[h], h + 1);
|
|
4054
4054
|
}
|
|
4055
4055
|
for (m = p.length, h = 0; h < m; h += 1)
|
|
@@ -4157,12 +4157,12 @@ function _r() {
|
|
|
4157
4157
|
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;
|
|
4158
4158
|
var A = t.tr / 1e3 * t.finalSize, T;
|
|
4159
4159
|
if (t.sz)
|
|
4160
|
-
for (var x = !0, I = t.sz[0],
|
|
4160
|
+
for (var x = !0, I = t.sz[0], q = t.sz[1], N, L; x; ) {
|
|
4161
4161
|
L = this.buildFinalText(t.t), N = 0, k = 0, r = L.length, A = t.tr / 1e3 * t.finalSize;
|
|
4162
4162
|
var G = -1;
|
|
4163
4163
|
for (n = 0; n < r; n += 1)
|
|
4164
4164
|
T = L[n].charCodeAt(0), o = !1, L[n] === " " ? G = n : (T === 13 || T === 3) && (k = 0, o = !0, N += t.finalLineHeight || t.finalSize * 1.2), e.chars ? (f = e.getCharData(L[n], v.fStyle, v.fFamily), u = o ? 0 : f.w * t.finalSize / 100) : u = e.measureText(L[n], t.f, t.finalSize), k + u > I && L[n] !== " " ? (G === -1 ? r += 1 : n = G, N += t.finalLineHeight || t.finalSize * 1.2, L.splice(n, G === n ? 1 : 0, "\r"), G = -1, k = 0) : (k += u, k += A);
|
|
4165
|
-
N += v.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize &&
|
|
4165
|
+
N += v.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize && q < N ? (t.finalSize -= 1, t.finalLineHeight = t.finalSize * t.lh / t.s) : (t.finalText = L, r = t.finalText.length, x = !1);
|
|
4166
4166
|
}
|
|
4167
4167
|
k = -A, u = 0;
|
|
4168
4168
|
var O = 0, F;
|
|
@@ -4211,10 +4211,10 @@ function _r() {
|
|
|
4211
4211
|
for (P = d[C], P.a.sc && (t.strokeColorAnim = !0), P.a.sw && (t.strokeWidthAnim = !0), (P.a.fc || P.a.fh || P.a.fs || P.a.fb) && (t.fillColorAnim = !0), E = 0, l = P.s.b, n = 0; n < r; n += 1)
|
|
4212
4212
|
a = s[n], a.anIndexes[C] = E, (l == 1 && a.val !== "" || l == 2 && a.val !== "" && a.val !== " " || l == 3 && (a.n || a.val == " " || n == r - 1) || l == 4 && (a.n || n == r - 1)) && (P.s.rn === 1 && w.push(E), E += 1);
|
|
4213
4213
|
i.a[C].s.totalChars = E;
|
|
4214
|
-
var R = -1,
|
|
4214
|
+
var R = -1, z;
|
|
4215
4215
|
if (P.s.rn === 1)
|
|
4216
4216
|
for (n = 0; n < r; n += 1)
|
|
4217
|
-
a = s[n], R != a.anIndexes[C] && (R = a.anIndexes[C],
|
|
4217
|
+
a = s[n], R != a.anIndexes[C] && (R = a.anIndexes[C], z = w.splice(Math.floor(Math.random() * w.length), 1)[0]), a.anIndexes[C] = z;
|
|
4218
4218
|
}
|
|
4219
4219
|
t.yOffset = t.finalLineHeight || t.finalSize * 1.2, t.ls = t.ls || 0, t.ascent = v.ascent * t.finalSize / 100;
|
|
4220
4220
|
}, ft.prototype.updateDocumentData = function(t, e) {
|
|
@@ -4251,7 +4251,7 @@ function _r() {
|
|
|
4251
4251
|
this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
|
|
4252
4252
|
var c = 0, h = 0, m = 1, _ = 1;
|
|
4253
4253
|
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;
|
|
4254
|
-
var M =
|
|
4254
|
+
var M = be.getBezierEasing(c, h, m, _).get, p = 0, b = this.finalS, k = this.finalE, S = this.data.sh;
|
|
4255
4255
|
if (S === 2)
|
|
4256
4256
|
k === b ? p = o >= k ? 1 : 0 : p = t(0, e(0.5 / (k - b) + (o - b) / (k - b), 1)), p = M(p);
|
|
4257
4257
|
else if (S === 3)
|
|
@@ -4337,7 +4337,7 @@ function _r() {
|
|
|
4337
4337
|
}, ie.prototype.getMeasures = function(t, e) {
|
|
4338
4338
|
if (this.lettersChangedFlag = e, !(!this._mdf && !this._isFirstFrame && !e && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
4339
4339
|
this._isFirstFrame = !1;
|
|
4340
|
-
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, v, f, u, g, A, T, x, I,
|
|
4340
|
+
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, v, f, u, g, A, T, x, I, q, N;
|
|
4341
4341
|
if (this._hasMaskedPath) {
|
|
4342
4342
|
if (N = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
4343
4343
|
var L = N.v;
|
|
@@ -4358,7 +4358,7 @@ function _r() {
|
|
|
4358
4358
|
M = p.length, h = 0, m = 0;
|
|
4359
4359
|
var O = t.finalSize * 1.2 * 0.714, F = !0, d, P, a, l, E;
|
|
4360
4360
|
l = s.length;
|
|
4361
|
-
var w, R = -1,
|
|
4361
|
+
var w, R = -1, z, D, Y, H = k, et = f, ct = v, Tt = -1, dt, nt, mt, K, B, Vt, Xt, Rt, Mt = "", Ot = this.defaultPropsArray, Bt;
|
|
4362
4362
|
if (t.j === 2 || t.j === 1) {
|
|
4363
4363
|
var vt = 0, Yt = 0, Ht = t.j === 2 ? -0.5 : -1, St = 0, Zt = !0;
|
|
4364
4364
|
for (_ = 0; _ < M; _ += 1)
|
|
@@ -4396,9 +4396,9 @@ function _r() {
|
|
|
4396
4396
|
d = s[a].a, d.p.propType && (P = s[a].s, w = P.getMult(p[_].anIndexes[a], n.a[a].s.totalChars), w.length ? Pt += d.p.v[0] * w[0] : Pt += d.p.v[0] * w), d.a.propType && (P = s[a].s, w = P.getMult(p[_].anIndexes[a], n.a[a].s.totalChars), w.length ? Pt += d.a.v[0] * w[0] : Pt += d.a.v[0] * w);
|
|
4397
4397
|
for (y = !0, this._pathData.a.v && (k = p[0].an * 0.5 + (x - this._pathData.f.v - p[0].an * 0.5 - p[p.length - 1].an * 0.5) * R / (M - 1), k += this._pathData.f.v); y; )
|
|
4398
4398
|
C + T >= k + Pt || !g ? (I = (k + Pt - C) / S.partialLength, D = u.point[0] + (S.point[0] - u.point[0]) * I, Y = u.point[1] + (S.point[1] - u.point[1]) * I, r.translate(-i[0] * p[_].an * 5e-3, -(i[1] * O) * 0.01), y = !1) : g && (C += S.partialLength, v += 1, v >= g.length && (v = 0, f += 1, A[f] ? g = A[f].points : N.v.c ? (v = 0, f = 0, g = A[f].points) : (C -= S.partialLength, g = null)), g && (u = S, S = g[v], T = S.partialLength));
|
|
4399
|
-
|
|
4399
|
+
z = p[_].an / 2 - p[_].add, r.translate(-z, 0, 0);
|
|
4400
4400
|
} else
|
|
4401
|
-
|
|
4401
|
+
z = p[_].an / 2 - p[_].add, r.translate(-z, 0, 0), r.translate(-i[0] * p[_].an * 5e-3, -i[1] * O * 0.01, 0);
|
|
4402
4402
|
for (a = 0; a < l; a += 1)
|
|
4403
4403
|
d = s[a].a, d.t.propType && (P = s[a].s, w = P.getMult(p[_].anIndexes[a], n.a[a].s.totalChars), (h !== 0 || t.j !== 0) && (this._hasMaskedPath ? w.length ? k += d.t.v * w[0] : k += d.t.v * w : w.length ? h += d.t.v * w[0] : h += d.t.v * w));
|
|
4404
4404
|
for (t.strokeWidthAnim && (mt = t.sw || 0), t.strokeColorAnim && (t.sc ? nt = [t.sc[0], t.sc[1], t.sc[2]] : nt = [0, 0, 0]), t.fillColorAnim && t.fc && (K = [t.fc[0], t.fc[1], t.fc[2]]), a = 0; a < l; a += 1)
|
|
@@ -4420,8 +4420,8 @@ function _r() {
|
|
|
4420
4420
|
d = s[a].a, d.p.propType && (P = s[a].s, w = P.getMult(p[_].anIndexes[a], n.a[a].s.totalChars), this._hasMaskedPath ? w.length ? r.translate(0, d.p.v[1] * w[0], -d.p.v[2] * w[1]) : r.translate(0, d.p.v[1] * w, -d.p.v[2] * w) : w.length ? r.translate(d.p.v[0] * w[0], d.p.v[1] * w[1], -d.p.v[2] * w[2]) : r.translate(d.p.v[0] * w, d.p.v[1] * w, -d.p.v[2] * w));
|
|
4421
4421
|
if (t.strokeWidthAnim && (Vt = mt < 0 ? 0 : mt), t.strokeColorAnim && (Xt = "rgb(" + Math.round(nt[0] * 255) + "," + Math.round(nt[1] * 255) + "," + Math.round(nt[2] * 255) + ")"), t.fillColorAnim && t.fc && (Rt = "rgb(" + Math.round(K[0] * 255) + "," + Math.round(K[1] * 255) + "," + Math.round(K[2] * 255) + ")"), this._hasMaskedPath) {
|
|
4422
4422
|
if (r.translate(0, -t.ls), r.translate(0, i[1] * O * 0.01 + m, 0), this._pathData.p.v) {
|
|
4423
|
-
|
|
4424
|
-
var se = Math.atan(
|
|
4423
|
+
q = (S.point[1] - u.point[1]) / (S.point[0] - u.point[0]);
|
|
4424
|
+
var se = Math.atan(q) * 180 / Math.PI;
|
|
4425
4425
|
S.point[0] < u.point[0] && (se += 180), r.rotate(-se * Math.PI / 180);
|
|
4426
4426
|
}
|
|
4427
4427
|
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);
|
|
@@ -4434,7 +4434,7 @@ function _r() {
|
|
|
4434
4434
|
r.translate(p[_].animatorJustifyOffset + t.justifyOffset + (t.boxWidth - t.lineWidths[p[_].line]) / 2, 0, 0);
|
|
4435
4435
|
break;
|
|
4436
4436
|
}
|
|
4437
|
-
r.translate(0, -t.ls), r.translate(
|
|
4437
|
+
r.translate(0, -t.ls), r.translate(z, 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;
|
|
4438
4438
|
}
|
|
4439
4439
|
o === "html" ? Mt = r.toCSS() : o === "svg" ? Mt = r.to2dCSS() : Ot = [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]], Bt = dt;
|
|
4440
4440
|
}
|
|
@@ -4483,7 +4483,7 @@ function _r() {
|
|
|
4483
4483
|
function It(t, e, i) {
|
|
4484
4484
|
this.textSpans = [], this.renderType = "svg", this.initElement(t, e, i);
|
|
4485
4485
|
}
|
|
4486
|
-
X([
|
|
4486
|
+
X([qt, le, Me, fe, Dt, Ee, yt], It), It.prototype.createContent = function() {
|
|
4487
4487
|
this.data.singleShape && !this.globalData.fontManager.chars && (this.textContainer = W("text"));
|
|
4488
4488
|
}, It.prototype.buildTextContents = function(t) {
|
|
4489
4489
|
for (var e = 0, i = t.length, s = [], n = ""; e < i; )
|
|
@@ -4556,7 +4556,7 @@ function _r() {
|
|
|
4556
4556
|
u = this.globalData.fontManager.getCharData(i.finalText[t], s.fStyle, this.globalData.fontManager.getFontByName(i.f).fFamily);
|
|
4557
4557
|
var A;
|
|
4558
4558
|
if (u.t === 1)
|
|
4559
|
-
A = new
|
|
4559
|
+
A = new Ie(u.data, this.globalData, this);
|
|
4560
4560
|
else {
|
|
4561
4561
|
var T = dr;
|
|
4562
4562
|
u.data && u.data.shapes && (T = this.buildShapeData(u.data, i.finalSize)), A = new $(T, this.globalData, this);
|
|
@@ -4603,7 +4603,7 @@ function _r() {
|
|
|
4603
4603
|
function vi(t, e, i) {
|
|
4604
4604
|
this.initElement(t, e, i);
|
|
4605
4605
|
}
|
|
4606
|
-
X([
|
|
4606
|
+
X([xe], vi), vi.prototype.createContent = function() {
|
|
4607
4607
|
var t = W("rect");
|
|
4608
4608
|
t.setAttribute("width", this.data.sw), t.setAttribute("height", this.data.sh), t.setAttribute("fill", this.data.sc), this.layerElement.appendChild(t);
|
|
4609
4609
|
};
|
|
@@ -4618,7 +4618,7 @@ function _r() {
|
|
|
4618
4618
|
}, Gt.prototype.destroy = function() {
|
|
4619
4619
|
}, Gt.prototype.sourceRectAtTime = function() {
|
|
4620
4620
|
}, Gt.prototype.hide = function() {
|
|
4621
|
-
}, X([
|
|
4621
|
+
}, X([qt, le, fe, Dt], Gt);
|
|
4622
4622
|
function st() {
|
|
4623
4623
|
}
|
|
4624
4624
|
X([lt], st), st.prototype.createNull = function(t) {
|
|
@@ -4628,7 +4628,7 @@ function _r() {
|
|
|
4628
4628
|
}, st.prototype.createText = function(t) {
|
|
4629
4629
|
return new It(t, this.globalData, this);
|
|
4630
4630
|
}, st.prototype.createImage = function(t) {
|
|
4631
|
-
return new
|
|
4631
|
+
return new xe(t, this.globalData, this);
|
|
4632
4632
|
}, st.prototype.createSolid = function(t) {
|
|
4633
4633
|
return new vi(t, this.globalData, this);
|
|
4634
4634
|
}, st.prototype.configAnimation = function(t) {
|
|
@@ -4657,7 +4657,7 @@ function _r() {
|
|
|
4657
4657
|
if (!(e[t] || this.layers[t].ty === 99)) {
|
|
4658
4658
|
e[t] = !0;
|
|
4659
4659
|
var i = this.createItem(this.layers[t]);
|
|
4660
|
-
if (e[t] = i,
|
|
4660
|
+
if (e[t] = i, Oe() && (this.layers[t].ty === 0 && this.globalData.projectInterface.registerComposition(i), i.initExpressions()), this.appendElementInPos(i, t), this.layers[t].tt) {
|
|
4661
4661
|
var s = "tp" in this.layers[t] ? this.findIndexByInd(this.layers[t].tp) : t - 1;
|
|
4662
4662
|
if (s === -1)
|
|
4663
4663
|
return;
|
|
@@ -4706,7 +4706,7 @@ function _r() {
|
|
|
4706
4706
|
};
|
|
4707
4707
|
function Lt() {
|
|
4708
4708
|
}
|
|
4709
|
-
X([
|
|
4709
|
+
X([qt, le, fe, Dt, Ee], Lt), Lt.prototype.initElement = function(t, e, i) {
|
|
4710
4710
|
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();
|
|
4711
4711
|
}, Lt.prototype.prepareFrame = function(t) {
|
|
4712
4712
|
if (this._mdf = !1, this.prepareRenderableFrame(t), this.prepareProperties(t, this.isInRange), !(!this.isInRange && !this.data.xt)) {
|
|
@@ -4735,13 +4735,13 @@ function _r() {
|
|
|
4735
4735
|
}, Lt.prototype.destroy = function() {
|
|
4736
4736
|
this.destroyElements(), this.destroyBaseElement();
|
|
4737
4737
|
};
|
|
4738
|
-
function
|
|
4738
|
+
function Ie(t, e, i) {
|
|
4739
4739
|
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) : {
|
|
4740
4740
|
_placeholder: !0
|
|
4741
4741
|
};
|
|
4742
4742
|
}
|
|
4743
|
-
X([st, Lt,
|
|
4744
|
-
return new
|
|
4743
|
+
X([st, Lt, Me], Ie), Ie.prototype.createComp = function(t) {
|
|
4744
|
+
return new Ie(t, this.globalData, this);
|
|
4745
4745
|
};
|
|
4746
4746
|
function mi(t, e) {
|
|
4747
4747
|
this.animationItem = t, this.layers = null, this.renderedFrame = -1, this.svgElement = W("svg");
|
|
@@ -4786,14 +4786,14 @@ function _r() {
|
|
|
4786
4786
|
}, this.elements = [], this.pendingElements = [], this.destroyed = !1, this.rendererType = "svg";
|
|
4787
4787
|
}
|
|
4788
4788
|
return X([st], mi), mi.prototype.createComp = function(t) {
|
|
4789
|
-
return new
|
|
4790
|
-
}, As("svg", mi),
|
|
4789
|
+
return new Ie(t, this.globalData, this);
|
|
4790
|
+
}, As("svg", mi), jt.registerModifier("tm", bt), jt.registerModifier("pb", Se), jt.registerModifier("rp", Ct), jt.registerModifier("rd", Pe), jt.registerModifier("zz", Ae), jt.registerModifier("op", we), Z;
|
|
4791
4791
|
});
|
|
4792
|
-
}(
|
|
4792
|
+
}(Le, Le.exports)), Le.exports;
|
|
4793
4793
|
}
|
|
4794
|
-
var br = _r();
|
|
4794
|
+
var br = /* @__PURE__ */ _r();
|
|
4795
4795
|
const Sr = /* @__PURE__ */ gr(br), Pr = vr(
|
|
4796
|
-
({ json: kt, autoplay: ue = !0, delay: ce = 0, onAnimationEnd: Et, ...
|
|
4796
|
+
({ json: kt, autoplay: ue = !0, delay: ce = 0, onAnimationEnd: Et, ...Ve }, de) => {
|
|
4797
4797
|
const Kt = ps(null), xt = ps(null), [ve, at] = mr(!1), _t = (X) => {
|
|
4798
4798
|
at(X.matches);
|
|
4799
4799
|
};
|
|
@@ -4803,7 +4803,7 @@ const Sr = /* @__PURE__ */ gr(br), Pr = vr(
|
|
|
4803
4803
|
X.removeEventListener("change", _t);
|
|
4804
4804
|
};
|
|
4805
4805
|
}, []), us(() => {
|
|
4806
|
-
const
|
|
4806
|
+
const $e = setTimeout(() => {
|
|
4807
4807
|
if (Kt.current) {
|
|
4808
4808
|
const Ut = {
|
|
4809
4809
|
"rgb(153,10,227)": "--purpur-color-brand-core-purple",
|
|
@@ -4826,8 +4826,8 @@ const Sr = /* @__PURE__ */ gr(br), Pr = vr(
|
|
|
4826
4826
|
["fill", "stroke"].forEach((ge) => {
|
|
4827
4827
|
const re = me.getAttribute(ge);
|
|
4828
4828
|
if (re && Object.prototype.hasOwnProperty.call(Ut, re)) {
|
|
4829
|
-
const
|
|
4830
|
-
|
|
4829
|
+
const Re = U.getPropertyValue(Ut[re]).trim();
|
|
4830
|
+
Re && me.setAttribute(ge, Re);
|
|
4831
4831
|
}
|
|
4832
4832
|
});
|
|
4833
4833
|
});
|
|
@@ -4841,9 +4841,9 @@ const Sr = /* @__PURE__ */ gr(br), Pr = vr(
|
|
|
4841
4841
|
}, ce);
|
|
4842
4842
|
return () => {
|
|
4843
4843
|
var Ut;
|
|
4844
|
-
clearTimeout(
|
|
4844
|
+
clearTimeout($e), (Ut = xt.current) == null || Ut.destroy();
|
|
4845
4845
|
};
|
|
4846
|
-
}, [ve, kt, ue, Et, ce]), /* @__PURE__ */ fs("div", { ref: de, ...
|
|
4846
|
+
}, [ve, kt, ue, Et, ce]), /* @__PURE__ */ fs("div", { ref: de, ...Ve, children: /* @__PURE__ */ fs("div", { ref: Kt }) });
|
|
4847
4847
|
}
|
|
4848
4848
|
);
|
|
4849
4849
|
Pr.displayName = "AnimatedIllustrativeIcon";
|