bp-aicc-editor 1.0.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/LICENSE +21 -0
- package/README.EN.md +129 -0
- package/README.md +133 -0
- package/lib/accounting-BdNhlOvc.js +150 -0
- package/lib/arrow-right-ZYLcC6uE.js +24 -0
- package/lib/atlas-Dqnvg58g.js +27 -0
- package/lib/blueprint-7yYCtfFC.js +28 -0
- package/lib/border-box-BoVwKoLu.js +226 -0
- package/lib/browser_upgrade/chrome.png +0 -0
- package/lib/browser_upgrade/edge.png +0 -0
- package/lib/browser_upgrade/index.css +49 -0
- package/lib/btn-group-aVjYHP70.js +125 -0
- package/lib/btn-return-KOGYYoba.js +37 -0
- package/lib/button-base-CUvUtpPb.js +42 -0
- package/lib/cache-Cs2VtqJi.js +43 -0
- package/lib/capitalize-CJ7zhOsJ.js +46 -0
- package/lib/carousel-table-hn7W3uoD.js +163 -0
- package/lib/children-manager-CdxNQ6Oe.js +457 -0
- package/lib/circle-DdqdosvQ.js +10 -0
- package/lib/config-6kqKwjzS.js +783 -0
- package/lib/config-B1XQHD5S.js +110 -0
- package/lib/config-BqncRAOx.js +167 -0
- package/lib/config-CSUhHF5L.js +10 -0
- package/lib/config-CXGTRw74.js +743 -0
- package/lib/config-CjMfBTu9.js +75 -0
- package/lib/config-Cm22p_rY.js +40 -0
- package/lib/config-D3z2R85K.js +373 -0
- package/lib/config-D846M2Gv.js +813 -0
- package/lib/config-DHGpQmWe.js +695 -0
- package/lib/config-DJJlRxrQ.js +510 -0
- package/lib/config-DOtfpO43.js +64 -0
- package/lib/config-DS3NxQuJ.js +427 -0
- package/lib/config-DSw2PMKb.js +528 -0
- package/lib/config-DwVaqCyN.js +369 -0
- package/lib/config-Ec_zeOmT.js +10 -0
- package/lib/config-V6sABZH7.js +152 -0
- package/lib/config-XBAZDWTe.js +739 -0
- package/lib/config-ZZyCB-UG.js +210 -0
- package/lib/config-efyvf2nq.js +799 -0
- package/lib/context-Bl7hm9BN.js +5 -0
- package/lib/context-DXwgwPsi.js +5 -0
- package/lib/dashedLine-CJojzUDO.js +23 -0
- package/lib/data-CnP9NKXT.js +7 -0
- package/lib/data-field-DL4ZWkqD.js +17 -0
- package/lib/data-source-9Lgf-grI.js +78 -0
- package/lib/datav-BNctF3aF.js +89 -0
- package/lib/dater-BmOxJMnU.js +34 -0
- package/lib/db-rnJHM_q3.js +22 -0
- package/lib/decoration-ByPSHV8P.js +408 -0
- package/lib/delete-074QJWYN.js +112 -0
- package/lib/dialogBox-D3bwyGqh.js +21 -0
- package/lib/dialogSquare-C4KW-cRk.js +43 -0
- package/lib/dottedLine-CUbyTDpF.js +23 -0
- package/lib/doubleHeadedArrow-ph10_VNV.js +31 -0
- package/lib/ds-api-editor-uAArtQJI.js +115 -0
- package/lib/ds-global-editor-Cp80r2NN.js +121 -0
- package/lib/ds-sql-editor-ijeSFlXA.js +338 -0
- package/lib/ds-static-editor-CyEO_12Q.js +21592 -0
- package/lib/eightPointedStar-iyNwBma5.js +12 -0
- package/lib/empty-panel-C6Y6WgQ5.js +49 -0
- package/lib/event-DDj_G-ix.js +130 -0
- package/lib/favicon.svg +14 -0
- package/lib/filter-panel-BXIsc124.js +573 -0
- package/lib/fivePointedStar-CG-mQPKI.js +12 -0
- package/lib/fourPointedStar-Cjt9WMZi.js +12 -0
- package/lib/full-screen-By33Ud_D.js +34 -0
- package/lib/group-Bw2QYoqv.js +24 -0
- package/lib/heart-BS_j9yRq.js +4 -0
- package/lib/hexagon-BfE9vpeG.js +12 -0
- package/lib/hexagonalStar-CDF1zFRy.js +12 -0
- package/lib/icon/add.png +0 -0
- package/lib/icon/align-center.png +0 -0
- package/lib/icon/amplify.png +0 -0
- package/lib/icon/audio.png +0 -0
- package/lib/icon/bottomUp.png +0 -0
- package/lib/icon/carouselList.png +0 -0
- package/lib/icon/characters.png +0 -0
- package/lib/icon/delete.png +0 -0
- package/lib/icon/delete1.png +0 -0
- package/lib/icon/edit.png +0 -0
- package/lib/icon/file.png +0 -0
- package/lib/icon/graphic.png +0 -0
- package/lib/icon/icon/357/274/217/346/267/273/345/212/240 /347/231/275/350/211/262 1@2x.png +0 -0
- package/lib/icon/icon/357/274/217/346/267/273/345/212/240@2x.png +0 -0
- package/lib/icon/img.png +0 -0
- package/lib/icon/lock.png +0 -0
- package/lib/icon/multiline.png +0 -0
- package/lib/icon/navigate.png +0 -0
- package/lib/icon/next.png +0 -0
- package/lib/icon/pictureScrolling.png +0 -0
- package/lib/icon/previous.png +0 -0
- package/lib/icon/reduce.png +0 -0
- package/lib/icon/return.png +0 -0
- package/lib/icon/save.png +0 -0
- package/lib/icon/scBg.png +0 -0
- package/lib/icon/scrollText.png +0 -0
- package/lib/icon/search.png +0 -0
- package/lib/icon/share.png +0 -0
- package/lib/icon/topUp.png +0 -0
- package/lib/icon/upload.png +0 -0
- package/lib/icon/video.png +0 -0
- package/lib/icon/view.png +0 -0
- package/lib/icon//345/244/215/351/200/211/357/274/217/346/234/252/351/200/211@2x.png +0 -0
- package/lib/icon//345/244/215/351/200/211/357/274/217/351/200/211/344/270/255@2x(1).png +0 -0
- package/lib/icon//345/244/215/351/200/211/357/274/217/351/200/211/344/270/255@2x.png +0 -0
- package/lib/iking-utils.es-Ba74AedH.js +13822 -0
- package/lib/index-B76XXskt.js +225 -0
- package/lib/index-B9lRx-kg.js +85 -0
- package/lib/index-B9nm6Rgv.js +142 -0
- package/lib/index-BAN9B0Xt.js +176 -0
- package/lib/index-BH6iU67J.js +209 -0
- package/lib/index-BSeD4M2U.js +988 -0
- package/lib/index-BbUCT3bG.js +66 -0
- package/lib/index-Bjs1bW2W.js +6291 -0
- package/lib/index-Bzc3Ri47.js +472 -0
- package/lib/index-C2ezj_lw.js +19 -0
- package/lib/index-C8Ni1uMd.js +435 -0
- package/lib/index-CCCckUnm.js +19 -0
- package/lib/index-CGni9huM.js +339 -0
- package/lib/index-CI6xXcR0.js +47 -0
- package/lib/index-CTo4-44e.js +2013 -0
- package/lib/index-CX6tHoIu.js +208 -0
- package/lib/index-Cb06BDgi.js +48 -0
- package/lib/index-CuapA_N-.js +586 -0
- package/lib/index-D0Kh7c2E.js +142 -0
- package/lib/index-D8pryMlS.js +228 -0
- package/lib/index-DGErpAp1.js +245 -0
- package/lib/index-DHe-NWes.js +415 -0
- package/lib/index-DL5IJLR7.js +156 -0
- package/lib/index-DN_9YBN_.js +957 -0
- package/lib/index-DOYvASbD.js +121 -0
- package/lib/index-D_ojDCWy.js +52 -0
- package/lib/index-DcmokBSP.js +109 -0
- package/lib/index-Dm1le54W.js +226 -0
- package/lib/index-Dpg5we85.js +127 -0
- package/lib/index-IeVkGUKs.js +146 -0
- package/lib/index-VSfx-dDV.js +87 -0
- package/lib/index-_Ya8vNUb.js +79 -0
- package/lib/index.es.js +5 -0
- package/lib/index.umd.js +99 -0
- package/lib/kebabCase-CO6lu_Gu.js +250 -0
- package/lib/keyMap-wL6Ma83z.js +91 -0
- package/lib/layer-setting-panel-C86c3fN0.js +486 -0
- package/lib/main-graph-BjOO_j7Y.js +43 -0
- package/lib/marquee-B6qUH-Kc.js +49 -0
- package/lib/message-carousel-ToN1yK7K.js +34 -0
- package/lib/multi-layout-config-DWBvxtbQ.js +312 -0
- package/lib/number-title-flop-DUzpC1bo.js +112 -0
- package/lib/orderBy--EIhNVJu.js +388 -0
- package/lib/page-config-DT1C_kDM.js +5598 -0
- package/lib/page-table-U2Zv9dzo.js +169 -0
- package/lib/paragraph-D7CutH53.js +51 -0
- package/lib/pentagon-6sVh023X.js +12 -0
- package/lib/plus-DjE6l8qH.js +24 -0
- package/lib/rank-board-Cgj8rzLd.js +121 -0
- package/lib/rectangle-BQXP06pk.js +10 -0
- package/lib/roundedRectangle-DnEbzLph.js +10 -0
- package/lib/scroll-article-BC3pQhTm.js +130 -0
- package/lib/scroll-rank-BsbvGjIy.js +191 -0
- package/lib/scroll-rank-bar-BfceYhB-.js +189 -0
- package/lib/scroll-table-BTbnMVFS.js +303 -0
- package/lib/search-DkzwOoCx.js +24 -0
- package/lib/select-options-BTOkre7F.js +338 -0
- package/lib/setting-panel-CMKniQhs.js +397 -0
- package/lib/source-panel-ClGOmTVn.js +557 -0
- package/lib/straightLine-DPMRNFNz.js +23 -0
- package/lib/style.css +1 -0
- package/lib/table-bar-ciEVdDFG.js +117 -0
- package/lib/transform-layer.vue_vue_type_style_index_0_scoped_04cdae36_lang-6ixEI9oF.js +593 -0
- package/lib/triangle-NkNGdZCH.js +15 -0
- package/lib/use-border-BUij5e0F.js +29 -0
- package/lib/use-data-center-Cj9FGyCg.js +31 -0
- package/lib/use-series-Cmnkexlu.js +18 -0
- package/lib/use-swiper-B17v1vT0.js +12 -0
- package/lib/vue-util-oCdnLsQn.js +6 -0
- package/lib/warning-DYO0amRd.js +25 -0
- package/package.json +154 -0
|
@@ -0,0 +1,2013 @@
|
|
|
1
|
+
function mt(u) {
|
|
2
|
+
if (u === void 0)
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
return u;
|
|
5
|
+
}
|
|
6
|
+
function zi(u, t) {
|
|
7
|
+
u.prototype = Object.create(t.prototype), u.prototype.constructor = u, u.__proto__ = t;
|
|
8
|
+
}
|
|
9
|
+
var nt = {
|
|
10
|
+
autoSleep: 120,
|
|
11
|
+
force3D: "auto",
|
|
12
|
+
nullTargetWarn: 1,
|
|
13
|
+
units: {
|
|
14
|
+
lineHeight: ""
|
|
15
|
+
}
|
|
16
|
+
}, Gt = {
|
|
17
|
+
duration: 0.5,
|
|
18
|
+
overwrite: !1,
|
|
19
|
+
delay: 0
|
|
20
|
+
}, je, W, E, ut = 1e8, M = 1 / ut, Le = Math.PI * 2, Rr = Le / 4, Er = 0, Fi = Math.sqrt, zr = Math.cos, Fr = Math.sin, X = function(t) {
|
|
21
|
+
return typeof t == "string";
|
|
22
|
+
}, L = function(t) {
|
|
23
|
+
return typeof t == "function";
|
|
24
|
+
}, yt = function(t) {
|
|
25
|
+
return typeof t == "number";
|
|
26
|
+
}, He = function(t) {
|
|
27
|
+
return typeof t > "u";
|
|
28
|
+
}, dt = function(t) {
|
|
29
|
+
return typeof t == "object";
|
|
30
|
+
}, Q = function(t) {
|
|
31
|
+
return t !== !1;
|
|
32
|
+
}, Je = function() {
|
|
33
|
+
return typeof window < "u";
|
|
34
|
+
}, pe = function(t) {
|
|
35
|
+
return L(t) || X(t);
|
|
36
|
+
}, Ii = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
|
|
37
|
+
}, $ = Array.isArray, Ir = /random\([^)]+\)/g, Lr = /,\s*/g, mi = /(?:-?\.?\d|\.)+/gi, Li = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Ut = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Me = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, Ni = /[+-]=-?[.\d]+/, Nr = /[^,'"\[\]\s]+/gi, Br = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, F, _t, Ne, ti, st = {}, ve = {}, Bi, Vi = function(t) {
|
|
38
|
+
return (ve = $t(t, st)) && J;
|
|
39
|
+
}, ei = function(t, e) {
|
|
40
|
+
return console.warn("Invalid property", t, "set to", e, "Missing plugin? gsap.registerPlugin()");
|
|
41
|
+
}, ae = function(t, e) {
|
|
42
|
+
return !e && console.warn(t);
|
|
43
|
+
}, Ui = function(t, e) {
|
|
44
|
+
return t && (st[t] = e) && ve && (ve[t] = e) || st;
|
|
45
|
+
}, oe = function() {
|
|
46
|
+
return 0;
|
|
47
|
+
}, Vr = {
|
|
48
|
+
suppressEvents: !0,
|
|
49
|
+
isStart: !0,
|
|
50
|
+
kill: !1
|
|
51
|
+
}, me = {
|
|
52
|
+
suppressEvents: !0,
|
|
53
|
+
kill: !1
|
|
54
|
+
}, Ur = {
|
|
55
|
+
suppressEvents: !0
|
|
56
|
+
}, ii = {}, wt = [], Be = {}, Yi, tt = {}, De = {}, gi = 30, ge = [], ri = "", ni = function(t) {
|
|
57
|
+
var e = t[0], i, r;
|
|
58
|
+
if (dt(e) || L(e) || (t = [t]), !(i = (e._gsap || {}).harness)) {
|
|
59
|
+
for (r = ge.length; r-- && !ge[r].targetTest(e); )
|
|
60
|
+
;
|
|
61
|
+
i = ge[r];
|
|
62
|
+
}
|
|
63
|
+
for (r = t.length; r--; )
|
|
64
|
+
t[r] && (t[r]._gsap || (t[r]._gsap = new lr(t[r], i))) || t.splice(r, 1);
|
|
65
|
+
return t;
|
|
66
|
+
}, Ft = function(t) {
|
|
67
|
+
return t._gsap || ni(ft(t))[0]._gsap;
|
|
68
|
+
}, Xi = function(t, e, i) {
|
|
69
|
+
return (i = t[e]) && L(i) ? t[e]() : He(i) && t.getAttribute && t.getAttribute(e) || i;
|
|
70
|
+
}, Z = function(t, e) {
|
|
71
|
+
return (t = t.split(",")).forEach(e) || t;
|
|
72
|
+
}, N = function(t) {
|
|
73
|
+
return Math.round(t * 1e5) / 1e5 || 0;
|
|
74
|
+
}, z = function(t) {
|
|
75
|
+
return Math.round(t * 1e7) / 1e7 || 0;
|
|
76
|
+
}, Xt = function(t, e) {
|
|
77
|
+
var i = e.charAt(0), r = parseFloat(e.substr(2));
|
|
78
|
+
return t = parseFloat(t), i === "+" ? t + r : i === "-" ? t - r : i === "*" ? t * r : t / r;
|
|
79
|
+
}, Yr = function(t, e) {
|
|
80
|
+
for (var i = e.length, r = 0; t.indexOf(e[r]) < 0 && ++r < i; )
|
|
81
|
+
;
|
|
82
|
+
return r < i;
|
|
83
|
+
}, xe = function() {
|
|
84
|
+
var t = wt.length, e = wt.slice(0), i, r;
|
|
85
|
+
for (Be = {}, wt.length = 0, i = 0; i < t; i++)
|
|
86
|
+
r = e[i], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
|
|
87
|
+
}, si = function(t) {
|
|
88
|
+
return !!(t._initted || t._startAt || t.add);
|
|
89
|
+
}, qi = function(t, e, i, r) {
|
|
90
|
+
wt.length && !W && xe(), t.render(e, i, !!(W && e < 0 && si(t))), wt.length && !W && xe();
|
|
91
|
+
}, Wi = function(t) {
|
|
92
|
+
var e = parseFloat(t);
|
|
93
|
+
return (e || e === 0) && (t + "").match(Nr).length < 2 ? e : X(t) ? t.trim() : t;
|
|
94
|
+
}, Gi = function(t) {
|
|
95
|
+
return t;
|
|
96
|
+
}, at = function(t, e) {
|
|
97
|
+
for (var i in e)
|
|
98
|
+
i in t || (t[i] = e[i]);
|
|
99
|
+
return t;
|
|
100
|
+
}, Xr = function(t) {
|
|
101
|
+
return function(e, i) {
|
|
102
|
+
for (var r in i)
|
|
103
|
+
r in e || r === "duration" && t || r === "ease" || (e[r] = i[r]);
|
|
104
|
+
};
|
|
105
|
+
}, $t = function(t, e) {
|
|
106
|
+
for (var i in e)
|
|
107
|
+
t[i] = e[i];
|
|
108
|
+
return t;
|
|
109
|
+
}, yi = function u(t, e) {
|
|
110
|
+
for (var i in e)
|
|
111
|
+
i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] = dt(e[i]) ? u(t[i] || (t[i] = {}), e[i]) : e[i]);
|
|
112
|
+
return t;
|
|
113
|
+
}, Te = function(t, e) {
|
|
114
|
+
var i = {}, r;
|
|
115
|
+
for (r in t)
|
|
116
|
+
r in e || (i[r] = t[r]);
|
|
117
|
+
return i;
|
|
118
|
+
}, re = function(t) {
|
|
119
|
+
var e = t.parent || F, i = t.keyframes ? Xr($(t.keyframes)) : at;
|
|
120
|
+
if (Q(t.inherit))
|
|
121
|
+
for (; e; )
|
|
122
|
+
i(t, e.vars.defaults), e = e.parent || e._dp;
|
|
123
|
+
return t;
|
|
124
|
+
}, qr = function(t, e) {
|
|
125
|
+
for (var i = t.length, r = i === e.length; r && i-- && t[i] === e[i]; )
|
|
126
|
+
;
|
|
127
|
+
return i < 0;
|
|
128
|
+
}, $i = function(t, e, i, r, n) {
|
|
129
|
+
var s = t[r], a;
|
|
130
|
+
if (n)
|
|
131
|
+
for (a = e[n]; s && s[n] > a; )
|
|
132
|
+
s = s._prev;
|
|
133
|
+
return s ? (e._next = s._next, s._next = e) : (e._next = t[i], t[i] = e), e._next ? e._next._prev = e : t[r] = e, e._prev = s, e.parent = e._dp = t, e;
|
|
134
|
+
}, Oe = function(t, e, i, r) {
|
|
135
|
+
i === void 0 && (i = "_first"), r === void 0 && (r = "_last");
|
|
136
|
+
var n = e._prev, s = e._next;
|
|
137
|
+
n ? n._next = s : t[i] === e && (t[i] = s), s ? s._prev = n : t[r] === e && (t[r] = n), e._next = e._prev = e.parent = null;
|
|
138
|
+
}, St = function(t, e) {
|
|
139
|
+
t.parent && (!e || t.parent.autoRemoveChildren) && t.parent.remove && t.parent.remove(t), t._act = 0;
|
|
140
|
+
}, It = function(t, e) {
|
|
141
|
+
if (t && (!e || e._end > t._dur || e._start < 0))
|
|
142
|
+
for (var i = t; i; )
|
|
143
|
+
i._dirty = 1, i = i.parent;
|
|
144
|
+
return t;
|
|
145
|
+
}, Wr = function(t) {
|
|
146
|
+
for (var e = t.parent; e && e.parent; )
|
|
147
|
+
e._dirty = 1, e.totalDuration(), e = e.parent;
|
|
148
|
+
return t;
|
|
149
|
+
}, Ve = function(t, e, i, r) {
|
|
150
|
+
return t._startAt && (W ? t._startAt.revert(me) : t.vars.immediateRender && !t.vars.autoRevert || t._startAt.render(e, !0, r));
|
|
151
|
+
}, Gr = function u(t) {
|
|
152
|
+
return !t || t._ts && u(t.parent);
|
|
153
|
+
}, vi = function(t) {
|
|
154
|
+
return t._repeat ? Kt(t._tTime, t = t.duration() + t._rDelay) * t : 0;
|
|
155
|
+
}, Kt = function(t, e) {
|
|
156
|
+
var i = Math.floor(t = z(t / e));
|
|
157
|
+
return t && i === t ? i - 1 : i;
|
|
158
|
+
}, be = function(t, e) {
|
|
159
|
+
return (t - e._start) * e._ts + (e._ts >= 0 ? 0 : e._dirty ? e.totalDuration() : e._tDur);
|
|
160
|
+
}, ke = function(t) {
|
|
161
|
+
return t._end = z(t._start + (t._tDur / Math.abs(t._ts || t._rts || M) || 0));
|
|
162
|
+
}, Ce = function(t, e) {
|
|
163
|
+
var i = t._dp;
|
|
164
|
+
return i && i.smoothChildTiming && t._ts && (t._start = z(i._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), ke(t), i._dirty || It(i, t)), t;
|
|
165
|
+
}, Ki = function(t, e) {
|
|
166
|
+
var i;
|
|
167
|
+
if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i = be(t.rawTime(), e), (!e._dur || ce(0, e.totalDuration(), i) - e._tTime > M) && e.render(i, !0)), It(t, e)._dp && t._initted && t._time >= t._dur && t._ts) {
|
|
168
|
+
if (t._dur < t.duration())
|
|
169
|
+
for (i = t; i._dp; )
|
|
170
|
+
i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
|
|
171
|
+
t._zTime = -M;
|
|
172
|
+
}
|
|
173
|
+
}, lt = function(t, e, i, r) {
|
|
174
|
+
return e.parent && St(e), e._start = z((yt(i) ? i : i || t !== F ? ot(t, i, e) : t._time) + e._delay), e._end = z(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), $i(t, e, "_first", "_last", t._sort ? "_start" : 0), Ue(e) || (t._recent = e), r || Ki(t, e), t._ts < 0 && Ce(t, t._tTime), t;
|
|
175
|
+
}, Qi = function(t, e) {
|
|
176
|
+
return (st.ScrollTrigger || ei("scrollTrigger", e)) && st.ScrollTrigger.create(e, t);
|
|
177
|
+
}, Zi = function(t, e, i, r, n) {
|
|
178
|
+
if (oi(t, e, n), !t._initted)
|
|
179
|
+
return 1;
|
|
180
|
+
if (!i && t._pt && !W && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && Yi !== et.frame)
|
|
181
|
+
return wt.push(t), t._lazy = [n, r], 1;
|
|
182
|
+
}, $r = function u(t) {
|
|
183
|
+
var e = t.parent;
|
|
184
|
+
return e && e._ts && e._initted && !e._lock && (e.rawTime() < 0 || u(e));
|
|
185
|
+
}, Ue = function(t) {
|
|
186
|
+
var e = t.data;
|
|
187
|
+
return e === "isFromStart" || e === "isStart";
|
|
188
|
+
}, Kr = function(t, e, i, r) {
|
|
189
|
+
var n = t.ratio, s = e < 0 || !e && (!t._start && $r(t) && !(!t._initted && Ue(t)) || (t._ts < 0 || t._dp._ts < 0) && !Ue(t)) ? 0 : 1, a = t._rDelay, o = 0, f, h, l;
|
|
190
|
+
if (a && t._repeat && (o = ce(0, t._tDur, e), h = Kt(o, a), t._yoyo && h & 1 && (s = 1 - s), h !== Kt(t._tTime, a) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || W || r || t._zTime === M || !e && t._zTime) {
|
|
191
|
+
if (!t._initted && Zi(t, e, r, i, o))
|
|
192
|
+
return;
|
|
193
|
+
for (l = t._zTime, t._zTime = e || (i ? M : 0), i || (i = e && !l), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = o, f = t._pt; f; )
|
|
194
|
+
f.r(s, f.d), f = f._next;
|
|
195
|
+
e < 0 && Ve(t, e, i, !0), t._onUpdate && !i && it(t, "onUpdate"), o && t._repeat && !i && t.parent && it(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && St(t, 1), !i && !W && (it(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
|
|
196
|
+
} else t._zTime || (t._zTime = e);
|
|
197
|
+
}, Qr = function(t, e, i) {
|
|
198
|
+
var r;
|
|
199
|
+
if (i > e)
|
|
200
|
+
for (r = t._first; r && r._start <= i; ) {
|
|
201
|
+
if (r.data === "isPause" && r._start > e)
|
|
202
|
+
return r;
|
|
203
|
+
r = r._next;
|
|
204
|
+
}
|
|
205
|
+
else
|
|
206
|
+
for (r = t._last; r && r._start >= i; ) {
|
|
207
|
+
if (r.data === "isPause" && r._start < e)
|
|
208
|
+
return r;
|
|
209
|
+
r = r._prev;
|
|
210
|
+
}
|
|
211
|
+
}, Qt = function(t, e, i, r) {
|
|
212
|
+
var n = t._repeat, s = z(e) || 0, a = t._tTime / t._tDur;
|
|
213
|
+
return a && !r && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : z(s * (n + 1) + t._rDelay * n) : s, a > 0 && !r && Ce(t, t._tTime = t._tDur * a), t.parent && ke(t), i || It(t.parent, t), t;
|
|
214
|
+
}, xi = function(t) {
|
|
215
|
+
return t instanceof K ? It(t) : Qt(t, t._dur);
|
|
216
|
+
}, Zr = {
|
|
217
|
+
_start: 0,
|
|
218
|
+
endTime: oe,
|
|
219
|
+
totalDuration: oe
|
|
220
|
+
}, ot = function u(t, e, i) {
|
|
221
|
+
var r = t.labels, n = t._recent || Zr, s = t.duration() >= ut ? n.endTime(!1) : t._dur, a, o, f;
|
|
222
|
+
return X(e) && (isNaN(e) || e in r) ? (o = e.charAt(0), f = e.substr(-1) === "%", a = e.indexOf("="), o === "<" || o === ">" ? (a >= 0 && (e = e.replace(/=/, "")), (o === "<" ? n._start : n.endTime(n._repeat >= 0)) + (parseFloat(e.substr(1)) || 0) * (f ? (a < 0 ? n : i).totalDuration() / 100 : 1)) : a < 0 ? (e in r || (r[e] = s), r[e]) : (o = parseFloat(e.charAt(a - 1) + e.substr(a + 1)), f && i && (o = o / 100 * ($(i) ? i[0] : i).totalDuration()), a > 1 ? u(t, e.substr(0, a - 1), i) + o : s + o)) : e == null ? s : +e;
|
|
223
|
+
}, ne = function(t, e, i) {
|
|
224
|
+
var r = yt(e[1]), n = (r ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], a, o;
|
|
225
|
+
if (r && (s.duration = e[1]), s.parent = i, t) {
|
|
226
|
+
for (a = s, o = i; o && !("immediateRender" in a); )
|
|
227
|
+
a = o.vars.defaults || {}, o = Q(o.vars.inherit) && o.parent;
|
|
228
|
+
s.immediateRender = Q(a.immediateRender), t < 2 ? s.runBackwards = 1 : s.startAt = e[n - 1];
|
|
229
|
+
}
|
|
230
|
+
return new V(e[0], s, e[n + 1]);
|
|
231
|
+
}, Ct = function(t, e) {
|
|
232
|
+
return t || t === 0 ? e(t) : e;
|
|
233
|
+
}, ce = function(t, e, i) {
|
|
234
|
+
return i < t ? t : i > e ? e : i;
|
|
235
|
+
}, G = function(t, e) {
|
|
236
|
+
return !X(t) || !(e = Br.exec(t)) ? "" : e[1];
|
|
237
|
+
}, jr = function(t, e, i) {
|
|
238
|
+
return Ct(i, function(r) {
|
|
239
|
+
return ce(t, e, r);
|
|
240
|
+
});
|
|
241
|
+
}, Ye = [].slice, ji = function(t, e) {
|
|
242
|
+
return t && dt(t) && "length" in t && (!e && !t.length || t.length - 1 in t && dt(t[0])) && !t.nodeType && t !== _t;
|
|
243
|
+
}, Hr = function(t, e, i) {
|
|
244
|
+
return i === void 0 && (i = []), t.forEach(function(r) {
|
|
245
|
+
var n;
|
|
246
|
+
return X(r) && !e || ji(r, 1) ? (n = i).push.apply(n, ft(r)) : i.push(r);
|
|
247
|
+
}) || i;
|
|
248
|
+
}, ft = function(t, e, i) {
|
|
249
|
+
return E && !e && E.selector ? E.selector(t) : X(t) && !i && (Ne || !Zt()) ? Ye.call((e || ti).querySelectorAll(t), 0) : $(t) ? Hr(t, i) : ji(t) ? Ye.call(t, 0) : t ? [t] : [];
|
|
250
|
+
}, Xe = function(t) {
|
|
251
|
+
return t = ft(t)[0] || ae("Invalid scope") || {}, function(e) {
|
|
252
|
+
var i = t.current || t.nativeElement || t;
|
|
253
|
+
return ft(e, i.querySelectorAll ? i : i === t ? ae("Invalid scope") || ti.createElement("div") : t);
|
|
254
|
+
};
|
|
255
|
+
}, Hi = function(t) {
|
|
256
|
+
return t.sort(function() {
|
|
257
|
+
return 0.5 - Math.random();
|
|
258
|
+
});
|
|
259
|
+
}, Ji = function(t) {
|
|
260
|
+
if (L(t))
|
|
261
|
+
return t;
|
|
262
|
+
var e = dt(t) ? t : {
|
|
263
|
+
each: t
|
|
264
|
+
}, i = Lt(e.ease), r = e.from || 0, n = parseFloat(e.base) || 0, s = {}, a = r > 0 && r < 1, o = isNaN(r) || a, f = e.axis, h = r, l = r;
|
|
265
|
+
return X(r) ? h = l = {
|
|
266
|
+
center: 0.5,
|
|
267
|
+
edges: 0.5,
|
|
268
|
+
end: 1
|
|
269
|
+
}[r] || 0 : !a && o && (h = r[0], l = r[1]), function(c, d, p) {
|
|
270
|
+
var _ = (p || e).length, m = s[_], y, v, T, b, g, w, P, S, x;
|
|
271
|
+
if (!m) {
|
|
272
|
+
if (x = e.grid === "auto" ? 0 : (e.grid || [1, ut])[1], !x) {
|
|
273
|
+
for (P = -ut; P < (P = p[x++].getBoundingClientRect().left) && x < _; )
|
|
274
|
+
;
|
|
275
|
+
x < _ && x--;
|
|
276
|
+
}
|
|
277
|
+
for (m = s[_] = [], y = o ? Math.min(x, _) * h - 0.5 : r % x, v = x === ut ? 0 : o ? _ * l / x - 0.5 : r / x | 0, P = 0, S = ut, w = 0; w < _; w++)
|
|
278
|
+
T = w % x - y, b = v - (w / x | 0), m[w] = g = f ? Math.abs(f === "y" ? b : T) : Fi(T * T + b * b), g > P && (P = g), g < S && (S = g);
|
|
279
|
+
r === "random" && Hi(m), m.max = P - S, m.min = S, m.v = _ = (parseFloat(e.amount) || parseFloat(e.each) * (x > _ ? _ - 1 : f ? f === "y" ? _ / x : x : Math.max(x, _ / x)) || 0) * (r === "edges" ? -1 : 1), m.b = _ < 0 ? n - _ : n, m.u = G(e.amount || e.each) || 0, i = i && _ < 0 ? fr(i) : i;
|
|
280
|
+
}
|
|
281
|
+
return _ = (m[c] - m.min) / m.max || 0, z(m.b + (i ? i(_) : _) * m.v) + m.u;
|
|
282
|
+
};
|
|
283
|
+
}, qe = function(t) {
|
|
284
|
+
var e = Math.pow(10, ((t + "").split(".")[1] || "").length);
|
|
285
|
+
return function(i) {
|
|
286
|
+
var r = z(Math.round(parseFloat(i) / t) * t * e);
|
|
287
|
+
return (r - r % 1) / e + (yt(i) ? 0 : G(i));
|
|
288
|
+
};
|
|
289
|
+
}, tr = function(t, e) {
|
|
290
|
+
var i = $(t), r, n;
|
|
291
|
+
return !i && dt(t) && (r = i = t.radius || ut, t.values ? (t = ft(t.values), (n = !yt(t[0])) && (r *= r)) : t = qe(t.increment)), Ct(e, i ? L(t) ? function(s) {
|
|
292
|
+
return n = t(s), Math.abs(n - s) <= r ? n : s;
|
|
293
|
+
} : function(s) {
|
|
294
|
+
for (var a = parseFloat(n ? s.x : s), o = parseFloat(n ? s.y : 0), f = ut, h = 0, l = t.length, c, d; l--; )
|
|
295
|
+
n ? (c = t[l].x - a, d = t[l].y - o, c = c * c + d * d) : c = Math.abs(t[l] - a), c < f && (f = c, h = l);
|
|
296
|
+
return h = !r || f <= r ? t[h] : s, n || h === s || yt(s) ? h : h + G(s);
|
|
297
|
+
} : qe(t));
|
|
298
|
+
}, er = function(t, e, i, r) {
|
|
299
|
+
return Ct($(t) ? !e : i === !0 ? !!(i = 0) : !r, function() {
|
|
300
|
+
return $(t) ? t[~~(Math.random() * t.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((t - i / 2 + Math.random() * (e - t + i * 0.99)) / i) * i * r) / r;
|
|
301
|
+
});
|
|
302
|
+
}, Jr = function() {
|
|
303
|
+
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
304
|
+
e[i] = arguments[i];
|
|
305
|
+
return function(r) {
|
|
306
|
+
return e.reduce(function(n, s) {
|
|
307
|
+
return s(n);
|
|
308
|
+
}, r);
|
|
309
|
+
};
|
|
310
|
+
}, tn = function(t, e) {
|
|
311
|
+
return function(i) {
|
|
312
|
+
return t(parseFloat(i)) + (e || G(i));
|
|
313
|
+
};
|
|
314
|
+
}, en = function(t, e, i) {
|
|
315
|
+
return rr(t, e, 0, 1, i);
|
|
316
|
+
}, ir = function(t, e, i) {
|
|
317
|
+
return Ct(i, function(r) {
|
|
318
|
+
return t[~~e(r)];
|
|
319
|
+
});
|
|
320
|
+
}, rn = function u(t, e, i) {
|
|
321
|
+
var r = e - t;
|
|
322
|
+
return $(t) ? ir(t, u(0, t.length), e) : Ct(i, function(n) {
|
|
323
|
+
return (r + (n - t) % r) % r + t;
|
|
324
|
+
});
|
|
325
|
+
}, nn = function u(t, e, i) {
|
|
326
|
+
var r = e - t, n = r * 2;
|
|
327
|
+
return $(t) ? ir(t, u(0, t.length - 1), e) : Ct(i, function(s) {
|
|
328
|
+
return s = (n + (s - t) % n) % n || 0, t + (s > r ? n - s : s);
|
|
329
|
+
});
|
|
330
|
+
}, ue = function(t) {
|
|
331
|
+
return t.replace(Ir, function(e) {
|
|
332
|
+
var i = e.indexOf("[") + 1, r = e.substring(i || 7, i ? e.indexOf("]") : e.length - 1).split(Lr);
|
|
333
|
+
return er(i ? r : +r[0], i ? 0 : +r[1], +r[2] || 1e-5);
|
|
334
|
+
});
|
|
335
|
+
}, rr = function(t, e, i, r, n) {
|
|
336
|
+
var s = e - t, a = r - i;
|
|
337
|
+
return Ct(n, function(o) {
|
|
338
|
+
return i + ((o - t) / s * a || 0);
|
|
339
|
+
});
|
|
340
|
+
}, sn = function u(t, e, i, r) {
|
|
341
|
+
var n = isNaN(t + e) ? 0 : function(d) {
|
|
342
|
+
return (1 - d) * t + d * e;
|
|
343
|
+
};
|
|
344
|
+
if (!n) {
|
|
345
|
+
var s = X(t), a = {}, o, f, h, l, c;
|
|
346
|
+
if (i === !0 && (r = 1) && (i = null), s)
|
|
347
|
+
t = {
|
|
348
|
+
p: t
|
|
349
|
+
}, e = {
|
|
350
|
+
p: e
|
|
351
|
+
};
|
|
352
|
+
else if ($(t) && !$(e)) {
|
|
353
|
+
for (h = [], l = t.length, c = l - 2, f = 1; f < l; f++)
|
|
354
|
+
h.push(u(t[f - 1], t[f]));
|
|
355
|
+
l--, n = function(p) {
|
|
356
|
+
p *= l;
|
|
357
|
+
var _ = Math.min(c, ~~p);
|
|
358
|
+
return h[_](p - _);
|
|
359
|
+
}, i = e;
|
|
360
|
+
} else r || (t = $t($(t) ? [] : {}, t));
|
|
361
|
+
if (!h) {
|
|
362
|
+
for (o in e)
|
|
363
|
+
ai.call(a, t, o, "get", e[o]);
|
|
364
|
+
n = function(p) {
|
|
365
|
+
return hi(p, a) || (s ? t.p : t);
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
return Ct(i, n);
|
|
370
|
+
}, Ti = function(t, e, i) {
|
|
371
|
+
var r = t.labels, n = ut, s, a, o;
|
|
372
|
+
for (s in r)
|
|
373
|
+
a = r[s] - e, a < 0 == !!i && a && n > (a = Math.abs(a)) && (o = s, n = a);
|
|
374
|
+
return o;
|
|
375
|
+
}, it = function(t, e, i) {
|
|
376
|
+
var r = t.vars, n = r[e], s = E, a = t._ctx, o, f, h;
|
|
377
|
+
if (n)
|
|
378
|
+
return o = r[e + "Params"], f = r.callbackScope || t, i && wt.length && xe(), a && (E = a), h = o ? n.apply(f, o) : n.call(f), E = s, h;
|
|
379
|
+
}, ee = function(t) {
|
|
380
|
+
return St(t), t.scrollTrigger && t.scrollTrigger.kill(!!W), t.progress() < 1 && it(t, "onInterrupt"), t;
|
|
381
|
+
}, Yt, nr = [], sr = function(t) {
|
|
382
|
+
if (t)
|
|
383
|
+
if (t = !t.name && t.default || t, Je() || t.headless) {
|
|
384
|
+
var e = t.name, i = L(t), r = e && !i && t.init ? function() {
|
|
385
|
+
this._props = [];
|
|
386
|
+
} : t, n = {
|
|
387
|
+
init: oe,
|
|
388
|
+
render: hi,
|
|
389
|
+
add: ai,
|
|
390
|
+
kill: Tn,
|
|
391
|
+
modifier: xn,
|
|
392
|
+
rawVars: 0
|
|
393
|
+
}, s = {
|
|
394
|
+
targetTest: 0,
|
|
395
|
+
get: 0,
|
|
396
|
+
getSetter: fi,
|
|
397
|
+
aliases: {},
|
|
398
|
+
register: 0
|
|
399
|
+
};
|
|
400
|
+
if (Zt(), t !== r) {
|
|
401
|
+
if (tt[e])
|
|
402
|
+
return;
|
|
403
|
+
at(r, at(Te(t, n), s)), $t(r.prototype, $t(n, Te(t, s))), tt[r.prop = e] = r, t.targetTest && (ge.push(r), ii[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
|
|
404
|
+
}
|
|
405
|
+
Ui(e, r), t.register && t.register(J, r, j);
|
|
406
|
+
} else
|
|
407
|
+
nr.push(t);
|
|
408
|
+
}, C = 255, ie = {
|
|
409
|
+
aqua: [0, C, C],
|
|
410
|
+
lime: [0, C, 0],
|
|
411
|
+
silver: [192, 192, 192],
|
|
412
|
+
black: [0, 0, 0],
|
|
413
|
+
maroon: [128, 0, 0],
|
|
414
|
+
teal: [0, 128, 128],
|
|
415
|
+
blue: [0, 0, C],
|
|
416
|
+
navy: [0, 0, 128],
|
|
417
|
+
white: [C, C, C],
|
|
418
|
+
olive: [128, 128, 0],
|
|
419
|
+
yellow: [C, C, 0],
|
|
420
|
+
orange: [C, 165, 0],
|
|
421
|
+
gray: [128, 128, 128],
|
|
422
|
+
purple: [128, 0, 128],
|
|
423
|
+
green: [0, 128, 0],
|
|
424
|
+
red: [C, 0, 0],
|
|
425
|
+
pink: [C, 192, 203],
|
|
426
|
+
cyan: [0, C, C],
|
|
427
|
+
transparent: [C, C, C, 0]
|
|
428
|
+
}, Ae = function(t, e, i) {
|
|
429
|
+
return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) * C + 0.5 | 0;
|
|
430
|
+
}, ar = function(t, e, i) {
|
|
431
|
+
var r = t ? yt(t) ? [t >> 16, t >> 8 & C, t & C] : 0 : ie.black, n, s, a, o, f, h, l, c, d, p;
|
|
432
|
+
if (!r) {
|
|
433
|
+
if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), ie[t])
|
|
434
|
+
r = ie[t];
|
|
435
|
+
else if (t.charAt(0) === "#") {
|
|
436
|
+
if (t.length < 6 && (n = t.charAt(1), s = t.charAt(2), a = t.charAt(3), t = "#" + n + n + s + s + a + a + (t.length === 5 ? t.charAt(4) + t.charAt(4) : "")), t.length === 9)
|
|
437
|
+
return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 & C, r & C, parseInt(t.substr(7), 16) / 255];
|
|
438
|
+
t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 & C, t & C];
|
|
439
|
+
} else if (t.substr(0, 3) === "hsl") {
|
|
440
|
+
if (r = p = t.match(mi), !e)
|
|
441
|
+
o = +r[0] % 360 / 360, f = +r[1] / 100, h = +r[2] / 100, s = h <= 0.5 ? h * (f + 1) : h + f - h * f, n = h * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = Ae(o + 1 / 3, n, s), r[1] = Ae(o, n, s), r[2] = Ae(o - 1 / 3, n, s);
|
|
442
|
+
else if (~t.indexOf("="))
|
|
443
|
+
return r = t.match(Li), i && r.length < 4 && (r[3] = 1), r;
|
|
444
|
+
} else
|
|
445
|
+
r = t.match(mi) || ie.transparent;
|
|
446
|
+
r = r.map(Number);
|
|
447
|
+
}
|
|
448
|
+
return e && !p && (n = r[0] / C, s = r[1] / C, a = r[2] / C, l = Math.max(n, s, a), c = Math.min(n, s, a), h = (l + c) / 2, l === c ? o = f = 0 : (d = l - c, f = h > 0.5 ? d / (2 - l - c) : d / (l + c), o = l === n ? (s - a) / d + (s < a ? 6 : 0) : l === s ? (a - n) / d + 2 : (n - s) / d + 4, o *= 60), r[0] = ~~(o + 0.5), r[1] = ~~(f * 100 + 0.5), r[2] = ~~(h * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
|
|
449
|
+
}, or = function(t) {
|
|
450
|
+
var e = [], i = [], r = -1;
|
|
451
|
+
return t.split(Pt).forEach(function(n) {
|
|
452
|
+
var s = n.match(Ut) || [];
|
|
453
|
+
e.push.apply(e, s), i.push(r += s.length + 1);
|
|
454
|
+
}), e.c = i, e;
|
|
455
|
+
}, bi = function(t, e, i) {
|
|
456
|
+
var r = "", n = (t + r).match(Pt), s = e ? "hsla(" : "rgba(", a = 0, o, f, h, l;
|
|
457
|
+
if (!n)
|
|
458
|
+
return t;
|
|
459
|
+
if (n = n.map(function(c) {
|
|
460
|
+
return (c = ar(c, e, 1)) && s + (e ? c[0] + "," + c[1] + "%," + c[2] + "%," + c[3] : c.join(",")) + ")";
|
|
461
|
+
}), i && (h = or(t), o = i.c, o.join(r) !== h.c.join(r)))
|
|
462
|
+
for (f = t.replace(Pt, "1").split(Ut), l = f.length - 1; a < l; a++)
|
|
463
|
+
r += f[a] + (~o.indexOf(a) ? n.shift() || s + "0,0,0,0)" : (h.length ? h : n.length ? n : i).shift());
|
|
464
|
+
if (!f)
|
|
465
|
+
for (f = t.split(Pt), l = f.length - 1; a < l; a++)
|
|
466
|
+
r += f[a] + n[a];
|
|
467
|
+
return r + f[l];
|
|
468
|
+
}, Pt = (function() {
|
|
469
|
+
var u = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", t;
|
|
470
|
+
for (t in ie)
|
|
471
|
+
u += "|" + t + "\\b";
|
|
472
|
+
return new RegExp(u + ")", "gi");
|
|
473
|
+
})(), an = /hsl[a]?\(/, ur = function(t) {
|
|
474
|
+
var e = t.join(" "), i;
|
|
475
|
+
if (Pt.lastIndex = 0, Pt.test(e))
|
|
476
|
+
return i = an.test(e), t[1] = bi(t[1], i), t[0] = bi(t[0], i, or(t[1])), !0;
|
|
477
|
+
}, fe, et = (function() {
|
|
478
|
+
var u = Date.now, t = 500, e = 33, i = u(), r = i, n = 1e3 / 240, s = n, a = [], o, f, h, l, c, d, p = function _(m) {
|
|
479
|
+
var y = u() - r, v = m === !0, T, b, g, w;
|
|
480
|
+
if ((y > t || y < 0) && (i += y - e), r += y, g = r - i, T = g - s, (T > 0 || v) && (w = ++l.frame, c = g - l.time * 1e3, l.time = g = g / 1e3, s += T + (T >= n ? 4 : n - T), b = 1), v || (o = f(_)), b)
|
|
481
|
+
for (d = 0; d < a.length; d++)
|
|
482
|
+
a[d](g, c, w, m);
|
|
483
|
+
};
|
|
484
|
+
return l = {
|
|
485
|
+
time: 0,
|
|
486
|
+
frame: 0,
|
|
487
|
+
tick: function() {
|
|
488
|
+
p(!0);
|
|
489
|
+
},
|
|
490
|
+
deltaRatio: function(m) {
|
|
491
|
+
return c / (1e3 / (m || 60));
|
|
492
|
+
},
|
|
493
|
+
wake: function() {
|
|
494
|
+
Bi && (!Ne && Je() && (_t = Ne = window, ti = _t.document || {}, st.gsap = J, (_t.gsapVersions || (_t.gsapVersions = [])).push(J.version), Vi(ve || _t.GreenSockGlobals || !_t.gsap && _t || {}), nr.forEach(sr)), h = typeof requestAnimationFrame < "u" && requestAnimationFrame, o && l.sleep(), f = h || function(m) {
|
|
495
|
+
return setTimeout(m, s - l.time * 1e3 + 1 | 0);
|
|
496
|
+
}, fe = 1, p(2));
|
|
497
|
+
},
|
|
498
|
+
sleep: function() {
|
|
499
|
+
(h ? cancelAnimationFrame : clearTimeout)(o), fe = 0, f = oe;
|
|
500
|
+
},
|
|
501
|
+
lagSmoothing: function(m, y) {
|
|
502
|
+
t = m || 1 / 0, e = Math.min(y || 33, t);
|
|
503
|
+
},
|
|
504
|
+
fps: function(m) {
|
|
505
|
+
n = 1e3 / (m || 240), s = l.time * 1e3 + n;
|
|
506
|
+
},
|
|
507
|
+
add: function(m, y, v) {
|
|
508
|
+
var T = y ? function(b, g, w, P) {
|
|
509
|
+
m(b, g, w, P), l.remove(T);
|
|
510
|
+
} : m;
|
|
511
|
+
return l.remove(m), a[v ? "unshift" : "push"](T), Zt(), T;
|
|
512
|
+
},
|
|
513
|
+
remove: function(m, y) {
|
|
514
|
+
~(y = a.indexOf(m)) && a.splice(y, 1) && d >= y && d--;
|
|
515
|
+
},
|
|
516
|
+
_listeners: a
|
|
517
|
+
}, l;
|
|
518
|
+
})(), Zt = function() {
|
|
519
|
+
return !fe && et.wake();
|
|
520
|
+
}, O = {}, on = /^[\d.\-M][\d.\-,\s]/, un = /["']/g, fn = function(t) {
|
|
521
|
+
for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, a, o, f; n < s; n++)
|
|
522
|
+
o = i[n], a = n !== s - 1 ? o.lastIndexOf(",") : o.length, f = o.substr(0, a), e[r] = isNaN(f) ? f.replace(un, "").trim() : +f, r = o.substr(a + 1).trim();
|
|
523
|
+
return e;
|
|
524
|
+
}, hn = function(t) {
|
|
525
|
+
var e = t.indexOf("(") + 1, i = t.indexOf(")"), r = t.indexOf("(", e);
|
|
526
|
+
return t.substring(e, ~r && r < i ? t.indexOf(")", i + 1) : i);
|
|
527
|
+
}, _n = function(t) {
|
|
528
|
+
var e = (t + "").split("("), i = O[e[0]];
|
|
529
|
+
return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [fn(e[1])] : hn(t).split(",").map(Wi)) : O._CE && on.test(t) ? O._CE("", t) : i;
|
|
530
|
+
}, fr = function(t) {
|
|
531
|
+
return function(e) {
|
|
532
|
+
return 1 - t(1 - e);
|
|
533
|
+
};
|
|
534
|
+
}, hr = function u(t, e) {
|
|
535
|
+
for (var i = t._first, r; i; )
|
|
536
|
+
i instanceof K ? u(i, e) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== e && (i.timeline ? u(i.timeline, e) : (r = i._ease, i._ease = i._yEase, i._yEase = r, i._yoyo = e)), i = i._next;
|
|
537
|
+
}, Lt = function(t, e) {
|
|
538
|
+
return t && (L(t) ? t : O[t] || _n(t)) || e;
|
|
539
|
+
}, Bt = function(t, e, i, r) {
|
|
540
|
+
i === void 0 && (i = function(o) {
|
|
541
|
+
return 1 - e(1 - o);
|
|
542
|
+
}), r === void 0 && (r = function(o) {
|
|
543
|
+
return o < 0.5 ? e(o * 2) / 2 : 1 - e((1 - o) * 2) / 2;
|
|
544
|
+
});
|
|
545
|
+
var n = {
|
|
546
|
+
easeIn: e,
|
|
547
|
+
easeOut: i,
|
|
548
|
+
easeInOut: r
|
|
549
|
+
}, s;
|
|
550
|
+
return Z(t, function(a) {
|
|
551
|
+
O[a] = st[a] = n, O[s = a.toLowerCase()] = i;
|
|
552
|
+
for (var o in n)
|
|
553
|
+
O[s + (o === "easeIn" ? ".in" : o === "easeOut" ? ".out" : ".inOut")] = O[a + "." + o] = n[o];
|
|
554
|
+
}), n;
|
|
555
|
+
}, _r = function(t) {
|
|
556
|
+
return function(e) {
|
|
557
|
+
return e < 0.5 ? (1 - t(1 - e * 2)) / 2 : 0.5 + t((e - 0.5) * 2) / 2;
|
|
558
|
+
};
|
|
559
|
+
}, Re = function u(t, e, i) {
|
|
560
|
+
var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n / Le * (Math.asin(1 / r) || 0), a = function(h) {
|
|
561
|
+
return h === 1 ? 1 : r * Math.pow(2, -10 * h) * Fr((h - s) * n) + 1;
|
|
562
|
+
}, o = t === "out" ? a : t === "in" ? function(f) {
|
|
563
|
+
return 1 - a(1 - f);
|
|
564
|
+
} : _r(a);
|
|
565
|
+
return n = Le / n, o.config = function(f, h) {
|
|
566
|
+
return u(t, f, h);
|
|
567
|
+
}, o;
|
|
568
|
+
}, Ee = function u(t, e) {
|
|
569
|
+
e === void 0 && (e = 1.70158);
|
|
570
|
+
var i = function(s) {
|
|
571
|
+
return s ? --s * s * ((e + 1) * s + e) + 1 : 0;
|
|
572
|
+
}, r = t === "out" ? i : t === "in" ? function(n) {
|
|
573
|
+
return 1 - i(1 - n);
|
|
574
|
+
} : _r(i);
|
|
575
|
+
return r.config = function(n) {
|
|
576
|
+
return u(t, n);
|
|
577
|
+
}, r;
|
|
578
|
+
};
|
|
579
|
+
Z("Linear,Quad,Cubic,Quart,Quint,Strong", function(u, t) {
|
|
580
|
+
var e = t < 5 ? t + 1 : t;
|
|
581
|
+
Bt(u + ",Power" + (e - 1), t ? function(i) {
|
|
582
|
+
return Math.pow(i, e);
|
|
583
|
+
} : function(i) {
|
|
584
|
+
return i;
|
|
585
|
+
}, function(i) {
|
|
586
|
+
return 1 - Math.pow(1 - i, e);
|
|
587
|
+
}, function(i) {
|
|
588
|
+
return i < 0.5 ? Math.pow(i * 2, e) / 2 : 1 - Math.pow((1 - i) * 2, e) / 2;
|
|
589
|
+
});
|
|
590
|
+
});
|
|
591
|
+
O.Linear.easeNone = O.none = O.Linear.easeIn;
|
|
592
|
+
Bt("Elastic", Re("in"), Re("out"), Re());
|
|
593
|
+
(function(u, t) {
|
|
594
|
+
var e = 1 / t, i = 2 * e, r = 2.5 * e, n = function(a) {
|
|
595
|
+
return a < e ? u * a * a : a < i ? u * Math.pow(a - 1.5 / t, 2) + 0.75 : a < r ? u * (a -= 2.25 / t) * a + 0.9375 : u * Math.pow(a - 2.625 / t, 2) + 0.984375;
|
|
596
|
+
};
|
|
597
|
+
Bt("Bounce", function(s) {
|
|
598
|
+
return 1 - n(1 - s);
|
|
599
|
+
}, n);
|
|
600
|
+
})(7.5625, 2.75);
|
|
601
|
+
Bt("Expo", function(u) {
|
|
602
|
+
return Math.pow(2, 10 * (u - 1)) * u + u * u * u * u * u * u * (1 - u);
|
|
603
|
+
});
|
|
604
|
+
Bt("Circ", function(u) {
|
|
605
|
+
return -(Fi(1 - u * u) - 1);
|
|
606
|
+
});
|
|
607
|
+
Bt("Sine", function(u) {
|
|
608
|
+
return u === 1 ? 1 : -zr(u * Rr) + 1;
|
|
609
|
+
});
|
|
610
|
+
Bt("Back", Ee("in"), Ee("out"), Ee());
|
|
611
|
+
O.SteppedEase = O.steps = st.SteppedEase = {
|
|
612
|
+
config: function(t, e) {
|
|
613
|
+
t === void 0 && (t = 1);
|
|
614
|
+
var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 - M;
|
|
615
|
+
return function(a) {
|
|
616
|
+
return ((r * ce(0, s, a) | 0) + n) * i;
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
Gt.ease = O["quad.out"];
|
|
621
|
+
Z("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(u) {
|
|
622
|
+
return ri += u + "," + u + "Params,";
|
|
623
|
+
});
|
|
624
|
+
var lr = function(t, e) {
|
|
625
|
+
this.id = Er++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get : Xi, this.set = e ? e.getSetter : fi;
|
|
626
|
+
}, he = /* @__PURE__ */ (function() {
|
|
627
|
+
function u(e) {
|
|
628
|
+
this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === 1 / 0 ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1, Qt(this, +e.duration, 1, 1), this.data = e.data, E && (this._ctx = E, E.data.push(this)), fe || et.wake();
|
|
629
|
+
}
|
|
630
|
+
var t = u.prototype;
|
|
631
|
+
return t.delay = function(i) {
|
|
632
|
+
return i || i === 0 ? (this.parent && this.parent.smoothChildTiming && this.startTime(this._start + i - this._delay), this._delay = i, this) : this._delay;
|
|
633
|
+
}, t.duration = function(i) {
|
|
634
|
+
return arguments.length ? this.totalDuration(this._repeat > 0 ? i + (i + this._rDelay) * this._repeat : i) : this.totalDuration() && this._dur;
|
|
635
|
+
}, t.totalDuration = function(i) {
|
|
636
|
+
return arguments.length ? (this._dirty = 0, Qt(this, this._repeat < 0 ? i : (i - this._repeat * this._rDelay) / (this._repeat + 1))) : this._tDur;
|
|
637
|
+
}, t.totalTime = function(i, r) {
|
|
638
|
+
if (Zt(), !arguments.length)
|
|
639
|
+
return this._tTime;
|
|
640
|
+
var n = this._dp;
|
|
641
|
+
if (n && n.smoothChildTiming && this._ts) {
|
|
642
|
+
for (Ce(this, i), !n._dp || n.parent || Ki(n, this); n && n.parent; )
|
|
643
|
+
n.parent._time !== n._start + (n._ts >= 0 ? n._tTime / n._ts : (n.totalDuration() - n._tTime) / -n._ts) && n.totalTime(n._tTime, !0), n = n.parent;
|
|
644
|
+
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && lt(this._dp, this, this._start - this._delay);
|
|
645
|
+
}
|
|
646
|
+
return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === M || !this._initted && this._dur && i || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), qi(this, i, r)), this;
|
|
647
|
+
}, t.time = function(i, r) {
|
|
648
|
+
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + vi(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
|
|
649
|
+
}, t.totalProgress = function(i, r) {
|
|
650
|
+
return arguments.length ? this.totalTime(this.totalDuration() * i, r) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() >= 0 && this._initted ? 1 : 0;
|
|
651
|
+
}, t.progress = function(i, r) {
|
|
652
|
+
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) + vi(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
|
|
653
|
+
}, t.iteration = function(i, r) {
|
|
654
|
+
var n = this.duration() + this._rDelay;
|
|
655
|
+
return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ? Kt(this._tTime, n) + 1 : 1;
|
|
656
|
+
}, t.timeScale = function(i, r) {
|
|
657
|
+
if (!arguments.length)
|
|
658
|
+
return this._rts === -M ? 0 : this._rts;
|
|
659
|
+
if (this._rts === i)
|
|
660
|
+
return this;
|
|
661
|
+
var n = this.parent && this._ts ? be(this.parent._time, this) : this._tTime;
|
|
662
|
+
return this._rts = +i || 0, this._ts = this._ps || i === -M ? 0 : this._rts, this.totalTime(ce(-Math.abs(this._delay), this.totalDuration(), n), r !== !1), ke(this), Wr(this);
|
|
663
|
+
}, t.paused = function(i) {
|
|
664
|
+
return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (Zt(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== M && (this._tTime -= M)))), this) : this._ps;
|
|
665
|
+
}, t.startTime = function(i) {
|
|
666
|
+
if (arguments.length) {
|
|
667
|
+
this._start = z(i);
|
|
668
|
+
var r = this.parent || this._dp;
|
|
669
|
+
return r && (r._sort || !this.parent) && lt(r, this, this._start - this._delay), this;
|
|
670
|
+
}
|
|
671
|
+
return this._start;
|
|
672
|
+
}, t.endTime = function(i) {
|
|
673
|
+
return this._start + (Q(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
|
|
674
|
+
}, t.rawTime = function(i) {
|
|
675
|
+
var r = this.parent || this._dp;
|
|
676
|
+
return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? be(r.rawTime(i), this) : this._tTime : this._tTime;
|
|
677
|
+
}, t.revert = function(i) {
|
|
678
|
+
i === void 0 && (i = Ur);
|
|
679
|
+
var r = W;
|
|
680
|
+
return W = i, si(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), W = r, this;
|
|
681
|
+
}, t.globalTime = function(i) {
|
|
682
|
+
for (var r = this, n = arguments.length ? i : r.rawTime(); r; )
|
|
683
|
+
n = r._start + n / (Math.abs(r._ts) || 1), r = r._dp;
|
|
684
|
+
return !this.parent && this._sat ? this._sat.globalTime(i) : n;
|
|
685
|
+
}, t.repeat = function(i) {
|
|
686
|
+
return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i, xi(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
|
|
687
|
+
}, t.repeatDelay = function(i) {
|
|
688
|
+
if (arguments.length) {
|
|
689
|
+
var r = this._time;
|
|
690
|
+
return this._rDelay = i, xi(this), r ? this.time(r) : this;
|
|
691
|
+
}
|
|
692
|
+
return this._rDelay;
|
|
693
|
+
}, t.yoyo = function(i) {
|
|
694
|
+
return arguments.length ? (this._yoyo = i, this) : this._yoyo;
|
|
695
|
+
}, t.seek = function(i, r) {
|
|
696
|
+
return this.totalTime(ot(this, i), Q(r));
|
|
697
|
+
}, t.restart = function(i, r) {
|
|
698
|
+
return this.play().totalTime(i ? -this._delay : 0, Q(r)), this._dur || (this._zTime = -M), this;
|
|
699
|
+
}, t.play = function(i, r) {
|
|
700
|
+
return i != null && this.seek(i, r), this.reversed(!1).paused(!1);
|
|
701
|
+
}, t.reverse = function(i, r) {
|
|
702
|
+
return i != null && this.seek(i || this.totalDuration(), r), this.reversed(!0).paused(!1);
|
|
703
|
+
}, t.pause = function(i, r) {
|
|
704
|
+
return i != null && this.seek(i, r), this.paused(!0);
|
|
705
|
+
}, t.resume = function() {
|
|
706
|
+
return this.paused(!1);
|
|
707
|
+
}, t.reversed = function(i) {
|
|
708
|
+
return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -M : 0)), this) : this._rts < 0;
|
|
709
|
+
}, t.invalidate = function() {
|
|
710
|
+
return this._initted = this._act = 0, this._zTime = -M, this;
|
|
711
|
+
}, t.isActive = function() {
|
|
712
|
+
var i = this.parent || this._dp, r = this._start, n;
|
|
713
|
+
return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) - M);
|
|
714
|
+
}, t.eventCallback = function(i, r, n) {
|
|
715
|
+
var s = this.vars;
|
|
716
|
+
return arguments.length > 1 ? (r ? (s[i] = r, n && (s[i + "Params"] = n), i === "onUpdate" && (this._onUpdate = r)) : delete s[i], this) : s[i];
|
|
717
|
+
}, t.then = function(i) {
|
|
718
|
+
var r = this, n = r._prom;
|
|
719
|
+
return new Promise(function(s) {
|
|
720
|
+
var a = L(i) ? i : Gi, o = function() {
|
|
721
|
+
var h = r.then;
|
|
722
|
+
r.then = null, n && n(), L(a) && (a = a(r)) && (a.then || a === r) && (r.then = h), s(a), r.then = h;
|
|
723
|
+
};
|
|
724
|
+
r._initted && r.totalProgress() === 1 && r._ts >= 0 || !r._tTime && r._ts < 0 ? o() : r._prom = o;
|
|
725
|
+
});
|
|
726
|
+
}, t.kill = function() {
|
|
727
|
+
ee(this);
|
|
728
|
+
}, u;
|
|
729
|
+
})();
|
|
730
|
+
at(he.prototype, {
|
|
731
|
+
_time: 0,
|
|
732
|
+
_start: 0,
|
|
733
|
+
_end: 0,
|
|
734
|
+
_tTime: 0,
|
|
735
|
+
_tDur: 0,
|
|
736
|
+
_dirty: 0,
|
|
737
|
+
_repeat: 0,
|
|
738
|
+
_yoyo: !1,
|
|
739
|
+
parent: null,
|
|
740
|
+
_initted: !1,
|
|
741
|
+
_rDelay: 0,
|
|
742
|
+
_ts: 1,
|
|
743
|
+
_dp: 0,
|
|
744
|
+
ratio: 0,
|
|
745
|
+
_zTime: -M,
|
|
746
|
+
_prom: 0,
|
|
747
|
+
_ps: !1,
|
|
748
|
+
_rts: 1
|
|
749
|
+
});
|
|
750
|
+
var K = /* @__PURE__ */ (function(u) {
|
|
751
|
+
zi(t, u);
|
|
752
|
+
function t(i, r) {
|
|
753
|
+
var n;
|
|
754
|
+
return i === void 0 && (i = {}), n = u.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = Q(i.sortChildren), F && lt(i.parent || F, mt(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && Qi(mt(n), i.scrollTrigger), n;
|
|
755
|
+
}
|
|
756
|
+
var e = t.prototype;
|
|
757
|
+
return e.to = function(r, n, s) {
|
|
758
|
+
return ne(0, arguments, this), this;
|
|
759
|
+
}, e.from = function(r, n, s) {
|
|
760
|
+
return ne(1, arguments, this), this;
|
|
761
|
+
}, e.fromTo = function(r, n, s, a) {
|
|
762
|
+
return ne(2, arguments, this), this;
|
|
763
|
+
}, e.set = function(r, n, s) {
|
|
764
|
+
return n.duration = 0, n.parent = this, re(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new V(r, n, ot(this, s), 1), this;
|
|
765
|
+
}, e.call = function(r, n, s) {
|
|
766
|
+
return lt(this, V.delayedCall(0, r, n), s);
|
|
767
|
+
}, e.staggerTo = function(r, n, s, a, o, f, h) {
|
|
768
|
+
return s.duration = n, s.stagger = s.stagger || a, s.onComplete = f, s.onCompleteParams = h, s.parent = this, new V(r, s, ot(this, o)), this;
|
|
769
|
+
}, e.staggerFrom = function(r, n, s, a, o, f, h) {
|
|
770
|
+
return s.runBackwards = 1, re(s).immediateRender = Q(s.immediateRender), this.staggerTo(r, n, s, a, o, f, h);
|
|
771
|
+
}, e.staggerFromTo = function(r, n, s, a, o, f, h, l) {
|
|
772
|
+
return a.startAt = s, re(a).immediateRender = Q(a.immediateRender), this.staggerTo(r, n, a, o, f, h, l);
|
|
773
|
+
}, e.render = function(r, n, s) {
|
|
774
|
+
var a = this._time, o = this._dirty ? this.totalDuration() : this._tDur, f = this._dur, h = r <= 0 ? 0 : z(r), l = this._zTime < 0 != r < 0 && (this._initted || !f), c, d, p, _, m, y, v, T, b, g, w, P;
|
|
775
|
+
if (this !== F && h > o && r >= 0 && (h = o), h !== this._tTime || s || l) {
|
|
776
|
+
if (a !== this._time && f && (h += this._time - a, r += this._time - a), c = h, b = this._start, T = this._ts, y = !T, l && (f || (a = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
|
|
777
|
+
if (w = this._yoyo, m = f + this._rDelay, this._repeat < -1 && r < 0)
|
|
778
|
+
return this.totalTime(m * 100 + r, n, s);
|
|
779
|
+
if (c = z(h % m), h === o ? (_ = this._repeat, c = f) : (g = z(h / m), _ = ~~g, _ && _ === g && (c = f, _--), c > f && (c = f)), g = Kt(this._tTime, m), !a && this._tTime && g !== _ && this._tTime - g * m - this._dur <= 0 && (g = _), w && _ & 1 && (c = f - c, P = 1), _ !== g && !this._lock) {
|
|
780
|
+
var S = w && g & 1, x = S === (w && _ & 1);
|
|
781
|
+
if (_ < g && (S = !S), a = S ? 0 : h % f ? f : h, this._lock = 1, this.render(a || (P ? 0 : z(_ * m)), n, !f)._lock = 0, this._tTime = h, !n && this.parent && it(this, "onRepeat"), this.vars.repeatRefresh && !P && (this.invalidate()._lock = 1, g = _), a && a !== this._time || y !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
|
|
782
|
+
return this;
|
|
783
|
+
if (f = this._dur, o = this._tDur, x && (this._lock = 2, a = S ? f : -1e-4, this.render(a, !0), this.vars.repeatRefresh && !P && this.invalidate()), this._lock = 0, !this._ts && !y)
|
|
784
|
+
return this;
|
|
785
|
+
hr(this, P);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
if (this._hasPause && !this._forcing && this._lock < 2 && (v = Qr(this, z(a), z(c)), v && (h -= c - (c = v._start))), this._tTime = h, this._time = c, this._act = !T, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, a = 0), !a && h && f && !n && !g && (it(this, "onStart"), this._tTime !== h))
|
|
789
|
+
return this;
|
|
790
|
+
if (c >= a && r >= 0)
|
|
791
|
+
for (d = this._first; d; ) {
|
|
792
|
+
if (p = d._next, (d._act || c >= d._start) && d._ts && v !== d) {
|
|
793
|
+
if (d.parent !== this)
|
|
794
|
+
return this.render(r, n, s);
|
|
795
|
+
if (d.render(d._ts > 0 ? (c - d._start) * d._ts : (d._dirty ? d.totalDuration() : d._tDur) + (c - d._start) * d._ts, n, s), c !== this._time || !this._ts && !y) {
|
|
796
|
+
v = 0, p && (h += this._zTime = -M);
|
|
797
|
+
break;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
d = p;
|
|
801
|
+
}
|
|
802
|
+
else {
|
|
803
|
+
d = this._last;
|
|
804
|
+
for (var k = r < 0 ? r : c; d; ) {
|
|
805
|
+
if (p = d._prev, (d._act || k <= d._end) && d._ts && v !== d) {
|
|
806
|
+
if (d.parent !== this)
|
|
807
|
+
return this.render(r, n, s);
|
|
808
|
+
if (d.render(d._ts > 0 ? (k - d._start) * d._ts : (d._dirty ? d.totalDuration() : d._tDur) + (k - d._start) * d._ts, n, s || W && si(d)), c !== this._time || !this._ts && !y) {
|
|
809
|
+
v = 0, p && (h += this._zTime = k ? -M : M);
|
|
810
|
+
break;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
d = p;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
if (v && !n && (this.pause(), v.render(c >= a ? 0 : -M)._zTime = c >= a ? 1 : -1, this._ts))
|
|
817
|
+
return this._start = b, ke(this), this.render(r, n, s);
|
|
818
|
+
this._onUpdate && !n && it(this, "onUpdate", !0), (h === o && this._tTime >= this.totalDuration() || !h && a) && (b === this._start || Math.abs(T) !== Math.abs(this._ts)) && (this._lock || ((r || !f) && (h === o && this._ts > 0 || !h && this._ts < 0) && St(this, 1), !n && !(r < 0 && !a) && (h || a || !o) && (it(this, h === o && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < o && this.timeScale() > 0) && this._prom())));
|
|
819
|
+
}
|
|
820
|
+
return this;
|
|
821
|
+
}, e.add = function(r, n) {
|
|
822
|
+
var s = this;
|
|
823
|
+
if (yt(n) || (n = ot(this, n, r)), !(r instanceof he)) {
|
|
824
|
+
if ($(r))
|
|
825
|
+
return r.forEach(function(a) {
|
|
826
|
+
return s.add(a, n);
|
|
827
|
+
}), this;
|
|
828
|
+
if (X(r))
|
|
829
|
+
return this.addLabel(r, n);
|
|
830
|
+
if (L(r))
|
|
831
|
+
r = V.delayedCall(0, r);
|
|
832
|
+
else
|
|
833
|
+
return this;
|
|
834
|
+
}
|
|
835
|
+
return this !== r ? lt(this, r, n) : this;
|
|
836
|
+
}, e.getChildren = function(r, n, s, a) {
|
|
837
|
+
r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), a === void 0 && (a = -ut);
|
|
838
|
+
for (var o = [], f = this._first; f; )
|
|
839
|
+
f._start >= a && (f instanceof V ? n && o.push(f) : (s && o.push(f), r && o.push.apply(o, f.getChildren(!0, n, s)))), f = f._next;
|
|
840
|
+
return o;
|
|
841
|
+
}, e.getById = function(r) {
|
|
842
|
+
for (var n = this.getChildren(1, 1, 1), s = n.length; s--; )
|
|
843
|
+
if (n[s].vars.id === r)
|
|
844
|
+
return n[s];
|
|
845
|
+
}, e.remove = function(r) {
|
|
846
|
+
return X(r) ? this.removeLabel(r) : L(r) ? this.killTweensOf(r) : (r.parent === this && Oe(this, r), r === this._recent && (this._recent = this._last), It(this));
|
|
847
|
+
}, e.totalTime = function(r, n) {
|
|
848
|
+
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = z(et.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), u.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
|
|
849
|
+
}, e.addLabel = function(r, n) {
|
|
850
|
+
return this.labels[r] = ot(this, n), this;
|
|
851
|
+
}, e.removeLabel = function(r) {
|
|
852
|
+
return delete this.labels[r], this;
|
|
853
|
+
}, e.addPause = function(r, n, s) {
|
|
854
|
+
var a = V.delayedCall(0, n || oe, s);
|
|
855
|
+
return a.data = "isPause", this._hasPause = 1, lt(this, a, ot(this, r));
|
|
856
|
+
}, e.removePause = function(r) {
|
|
857
|
+
var n = this._first;
|
|
858
|
+
for (r = ot(this, r); n; )
|
|
859
|
+
n._start === r && n.data === "isPause" && St(n), n = n._next;
|
|
860
|
+
}, e.killTweensOf = function(r, n, s) {
|
|
861
|
+
for (var a = this.getTweensOf(r, s), o = a.length; o--; )
|
|
862
|
+
xt !== a[o] && a[o].kill(r, n);
|
|
863
|
+
return this;
|
|
864
|
+
}, e.getTweensOf = function(r, n) {
|
|
865
|
+
for (var s = [], a = ft(r), o = this._first, f = yt(n), h; o; )
|
|
866
|
+
o instanceof V ? Yr(o._targets, a) && (f ? (!xt || o._initted && o._ts) && o.globalTime(0) <= n && o.globalTime(o.totalDuration()) > n : !n || o.isActive()) && s.push(o) : (h = o.getTweensOf(a, n)).length && s.push.apply(s, h), o = o._next;
|
|
867
|
+
return s;
|
|
868
|
+
}, e.tweenTo = function(r, n) {
|
|
869
|
+
n = n || {};
|
|
870
|
+
var s = this, a = ot(s, r), o = n, f = o.startAt, h = o.onStart, l = o.onStartParams, c = o.immediateRender, d, p = V.to(s, at({
|
|
871
|
+
ease: n.ease || "none",
|
|
872
|
+
lazy: !1,
|
|
873
|
+
immediateRender: !1,
|
|
874
|
+
time: a,
|
|
875
|
+
overwrite: "auto",
|
|
876
|
+
duration: n.duration || Math.abs((a - (f && "time" in f ? f.time : s._time)) / s.timeScale()) || M,
|
|
877
|
+
onStart: function() {
|
|
878
|
+
if (s.pause(), !d) {
|
|
879
|
+
var m = n.duration || Math.abs((a - (f && "time" in f ? f.time : s._time)) / s.timeScale());
|
|
880
|
+
p._dur !== m && Qt(p, m, 0, 1).render(p._time, !0, !0), d = 1;
|
|
881
|
+
}
|
|
882
|
+
h && h.apply(p, l || []);
|
|
883
|
+
}
|
|
884
|
+
}, n));
|
|
885
|
+
return c ? p.render(0) : p;
|
|
886
|
+
}, e.tweenFromTo = function(r, n, s) {
|
|
887
|
+
return this.tweenTo(n, at({
|
|
888
|
+
startAt: {
|
|
889
|
+
time: ot(this, r)
|
|
890
|
+
}
|
|
891
|
+
}, s));
|
|
892
|
+
}, e.recent = function() {
|
|
893
|
+
return this._recent;
|
|
894
|
+
}, e.nextLabel = function(r) {
|
|
895
|
+
return r === void 0 && (r = this._time), Ti(this, ot(this, r));
|
|
896
|
+
}, e.previousLabel = function(r) {
|
|
897
|
+
return r === void 0 && (r = this._time), Ti(this, ot(this, r), 1);
|
|
898
|
+
}, e.currentLabel = function(r) {
|
|
899
|
+
return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + M);
|
|
900
|
+
}, e.shiftChildren = function(r, n, s) {
|
|
901
|
+
s === void 0 && (s = 0);
|
|
902
|
+
var a = this._first, o = this.labels, f;
|
|
903
|
+
for (r = z(r); a; )
|
|
904
|
+
a._start >= s && (a._start += r, a._end += r), a = a._next;
|
|
905
|
+
if (n)
|
|
906
|
+
for (f in o)
|
|
907
|
+
o[f] >= s && (o[f] += r);
|
|
908
|
+
return It(this);
|
|
909
|
+
}, e.invalidate = function(r) {
|
|
910
|
+
var n = this._first;
|
|
911
|
+
for (this._lock = 0; n; )
|
|
912
|
+
n.invalidate(r), n = n._next;
|
|
913
|
+
return u.prototype.invalidate.call(this, r);
|
|
914
|
+
}, e.clear = function(r) {
|
|
915
|
+
r === void 0 && (r = !0);
|
|
916
|
+
for (var n = this._first, s; n; )
|
|
917
|
+
s = n._next, this.remove(n), n = s;
|
|
918
|
+
return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}), It(this);
|
|
919
|
+
}, e.totalDuration = function(r) {
|
|
920
|
+
var n = 0, s = this, a = s._last, o = ut, f, h, l;
|
|
921
|
+
if (arguments.length)
|
|
922
|
+
return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -r : r));
|
|
923
|
+
if (s._dirty) {
|
|
924
|
+
for (l = s.parent; a; )
|
|
925
|
+
f = a._prev, a._dirty && a.totalDuration(), h = a._start, h > o && s._sort && a._ts && !s._lock ? (s._lock = 1, lt(s, a, h - a._delay, 1)._lock = 0) : o = h, h < 0 && a._ts && (n -= h, (!l && !s._dp || l && l.smoothChildTiming) && (s._start += z(h / s._ts), s._time -= h, s._tTime -= h), s.shiftChildren(-h, !1, -1 / 0), o = 0), a._end > n && a._ts && (n = a._end), a = f;
|
|
926
|
+
Qt(s, s === F && s._time > n ? s._time : n, 1, 1), s._dirty = 0;
|
|
927
|
+
}
|
|
928
|
+
return s._tDur;
|
|
929
|
+
}, t.updateRoot = function(r) {
|
|
930
|
+
if (F._ts && (qi(F, be(r, F)), Yi = et.frame), et.frame >= gi) {
|
|
931
|
+
gi += nt.autoSleep || 120;
|
|
932
|
+
var n = F._first;
|
|
933
|
+
if ((!n || !n._ts) && nt.autoSleep && et._listeners.length < 2) {
|
|
934
|
+
for (; n && !n._ts; )
|
|
935
|
+
n = n._next;
|
|
936
|
+
n || et.sleep();
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
}, t;
|
|
940
|
+
})(he);
|
|
941
|
+
at(K.prototype, {
|
|
942
|
+
_lock: 0,
|
|
943
|
+
_hasPause: 0,
|
|
944
|
+
_forcing: 0
|
|
945
|
+
});
|
|
946
|
+
var ln = function(t, e, i, r, n, s, a) {
|
|
947
|
+
var o = new j(this._pt, t, e, 0, 1, yr, null, n), f = 0, h = 0, l, c, d, p, _, m, y, v;
|
|
948
|
+
for (o.b = i, o.e = r, i += "", r += "", (y = ~r.indexOf("random(")) && (r = ue(r)), s && (v = [i, r], s(v, t, e), i = v[0], r = v[1]), c = i.match(Me) || []; l = Me.exec(r); )
|
|
949
|
+
p = l[0], _ = r.substring(f, l.index), d ? d = (d + 1) % 5 : _.substr(-5) === "rgba(" && (d = 1), p !== c[h++] && (m = parseFloat(c[h - 1]) || 0, o._pt = {
|
|
950
|
+
_next: o._pt,
|
|
951
|
+
p: _ || h === 1 ? _ : ",",
|
|
952
|
+
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
953
|
+
s: m,
|
|
954
|
+
c: p.charAt(1) === "=" ? Xt(m, p) - m : parseFloat(p) - m,
|
|
955
|
+
m: d && d < 4 ? Math.round : 0
|
|
956
|
+
}, f = Me.lastIndex);
|
|
957
|
+
return o.c = f < r.length ? r.substring(f, r.length) : "", o.fp = a, (Ni.test(r) || y) && (o.e = 0), this._pt = o, o;
|
|
958
|
+
}, ai = function(t, e, i, r, n, s, a, o, f, h) {
|
|
959
|
+
L(r) && (r = r(n || 0, t, s));
|
|
960
|
+
var l = t[e], c = i !== "get" ? i : L(l) ? f ? t[e.indexOf("set") || !L(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](f) : t[e]() : l, d = L(l) ? f ? gn : mr : ui, p;
|
|
961
|
+
if (X(r) && (~r.indexOf("random(") && (r = ue(r)), r.charAt(1) === "=" && (p = Xt(c, r) + (G(c) || 0), (p || p === 0) && (r = p))), !h || c !== r || We)
|
|
962
|
+
return !isNaN(c * r) && r !== "" ? (p = new j(this._pt, t, e, +c || 0, r - (c || 0), typeof l == "boolean" ? vn : gr, 0, d), f && (p.fp = f), a && p.modifier(a, this, t), this._pt = p) : (!l && !(e in t) && ei(e, r), ln.call(this, t, e, c, r, d, o || nt.stringFilter, f));
|
|
963
|
+
}, cn = function(t, e, i, r, n) {
|
|
964
|
+
if (L(t) && (t = se(t, n, e, i, r)), !dt(t) || t.style && t.nodeType || $(t) || Ii(t))
|
|
965
|
+
return X(t) ? se(t, n, e, i, r) : t;
|
|
966
|
+
var s = {}, a;
|
|
967
|
+
for (a in t)
|
|
968
|
+
s[a] = se(t[a], n, e, i, r);
|
|
969
|
+
return s;
|
|
970
|
+
}, cr = function(t, e, i, r, n, s) {
|
|
971
|
+
var a, o, f, h;
|
|
972
|
+
if (tt[t] && (a = new tt[t]()).init(n, a.rawVars ? e[t] : cn(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt = o = new j(i._pt, n, t, 0, 1, a.render, a, 0, a.priority), i !== Yt))
|
|
973
|
+
for (f = i._ptLookup[i._targets.indexOf(n)], h = a._props.length; h--; )
|
|
974
|
+
f[a._props[h]] = o;
|
|
975
|
+
return a;
|
|
976
|
+
}, xt, We, oi = function u(t, e, i) {
|
|
977
|
+
var r = t.vars, n = r.ease, s = r.startAt, a = r.immediateRender, o = r.lazy, f = r.onUpdate, h = r.runBackwards, l = r.yoyoEase, c = r.keyframes, d = r.autoRevert, p = t._dur, _ = t._startAt, m = t._targets, y = t.parent, v = y && y.data === "nested" ? y.vars.targets : m, T = t._overwrite === "auto" && !je, b = t.timeline, g, w, P, S, x, k, R, D, A, q, U, B, Y;
|
|
978
|
+
if (b && (!c || !n) && (n = "none"), t._ease = Lt(n, Gt.ease), t._yEase = l ? fr(Lt(l === !0 ? n : l, Gt.ease)) : 0, l && t._yoyo && !t._repeat && (l = t._yEase, t._yEase = t._ease, t._ease = l), t._from = !b && !!r.runBackwards, !b || c && !r.stagger) {
|
|
979
|
+
if (D = m[0] ? Ft(m[0]).harness : 0, B = D && r[D.prop], g = Te(r, ii), _ && (_._zTime < 0 && _.progress(1), e < 0 && h && a && !d ? _.render(-1, !0) : _.revert(h && p ? me : Vr), _._lazy = 0), s) {
|
|
980
|
+
if (St(t._startAt = V.set(m, at({
|
|
981
|
+
data: "isStart",
|
|
982
|
+
overwrite: !1,
|
|
983
|
+
parent: y,
|
|
984
|
+
immediateRender: !0,
|
|
985
|
+
lazy: !_ && Q(o),
|
|
986
|
+
startAt: null,
|
|
987
|
+
delay: 0,
|
|
988
|
+
onUpdate: f && function() {
|
|
989
|
+
return it(t, "onUpdate");
|
|
990
|
+
},
|
|
991
|
+
stagger: 0
|
|
992
|
+
}, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (W || !a && !d) && t._startAt.revert(me), a && p && e <= 0 && i <= 0) {
|
|
993
|
+
e && (t._zTime = e);
|
|
994
|
+
return;
|
|
995
|
+
}
|
|
996
|
+
} else if (h && p && !_) {
|
|
997
|
+
if (e && (a = !1), P = at({
|
|
998
|
+
overwrite: !1,
|
|
999
|
+
data: "isFromStart",
|
|
1000
|
+
//we tag the tween with as "isFromStart" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a "from()" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.
|
|
1001
|
+
lazy: a && !_ && Q(o),
|
|
1002
|
+
immediateRender: a,
|
|
1003
|
+
//zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)
|
|
1004
|
+
stagger: 0,
|
|
1005
|
+
parent: y
|
|
1006
|
+
//ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
|
|
1007
|
+
}, g), B && (P[D.prop] = B), St(t._startAt = V.set(m, P)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (W ? t._startAt.revert(me) : t._startAt.render(-1, !0)), t._zTime = e, !a)
|
|
1008
|
+
u(t._startAt, M, M);
|
|
1009
|
+
else if (!e)
|
|
1010
|
+
return;
|
|
1011
|
+
}
|
|
1012
|
+
for (t._pt = t._ptCache = 0, o = p && Q(o) || o && !p, w = 0; w < m.length; w++) {
|
|
1013
|
+
if (x = m[w], R = x._gsap || ni(m)[w]._gsap, t._ptLookup[w] = q = {}, Be[R.id] && wt.length && xe(), U = v === m ? w : v.indexOf(x), D && (A = new D()).init(x, B || g, t, U, v) !== !1 && (t._pt = S = new j(t._pt, x, A.name, 0, 1, A.render, A, 0, A.priority), A._props.forEach(function(ht) {
|
|
1014
|
+
q[ht] = S;
|
|
1015
|
+
}), A.priority && (k = 1)), !D || B)
|
|
1016
|
+
for (P in g)
|
|
1017
|
+
tt[P] && (A = cr(P, g, t, U, x, v)) ? A.priority && (k = 1) : q[P] = S = ai.call(t, x, P, "get", g[P], U, v, 0, r.stringFilter);
|
|
1018
|
+
t._op && t._op[w] && t.kill(x, t._op[w]), T && t._pt && (xt = t, F.killTweensOf(x, q, t.globalTime(e)), Y = !t.parent, xt = 0), t._pt && o && (Be[R.id] = 1);
|
|
1019
|
+
}
|
|
1020
|
+
k && vr(t), t._onInit && t._onInit(t);
|
|
1021
|
+
}
|
|
1022
|
+
t._onUpdate = f, t._initted = (!t._op || t._pt) && !Y, c && e <= 0 && b.render(ut, !0, !0);
|
|
1023
|
+
}, dn = function(t, e, i, r, n, s, a, o) {
|
|
1024
|
+
var f = (t._pt && t._ptCache || (t._ptCache = {}))[e], h, l, c, d;
|
|
1025
|
+
if (!f)
|
|
1026
|
+
for (f = t._ptCache[e] = [], c = t._ptLookup, d = t._targets.length; d--; ) {
|
|
1027
|
+
if (h = c[d][e], h && h.d && h.d._pt)
|
|
1028
|
+
for (h = h.d._pt; h && h.p !== e && h.fp !== e; )
|
|
1029
|
+
h = h._next;
|
|
1030
|
+
if (!h)
|
|
1031
|
+
return We = 1, t.vars[e] = "+=0", oi(t, a), We = 0, o ? ae(e + " not eligible for reset") : 1;
|
|
1032
|
+
f.push(h);
|
|
1033
|
+
}
|
|
1034
|
+
for (d = f.length; d--; )
|
|
1035
|
+
l = f[d], h = l._pt || l, h.s = (r || r === 0) && !n ? r : h.s + (r || 0) + s * h.c, h.c = i - h.s, l.e && (l.e = N(i) + G(l.e)), l.b && (l.b = h.s + G(l.b));
|
|
1036
|
+
}, pn = function(t, e) {
|
|
1037
|
+
var i = t[0] ? Ft(t[0]).harness : 0, r = i && i.aliases, n, s, a, o;
|
|
1038
|
+
if (!r)
|
|
1039
|
+
return e;
|
|
1040
|
+
n = $t({}, e);
|
|
1041
|
+
for (s in r)
|
|
1042
|
+
if (s in n)
|
|
1043
|
+
for (o = r[s].split(","), a = o.length; a--; )
|
|
1044
|
+
n[o[a]] = n[s];
|
|
1045
|
+
return n;
|
|
1046
|
+
}, mn = function(t, e, i, r) {
|
|
1047
|
+
var n = e.ease || r || "power1.inOut", s, a;
|
|
1048
|
+
if ($(e))
|
|
1049
|
+
a = i[t] || (i[t] = []), e.forEach(function(o, f) {
|
|
1050
|
+
return a.push({
|
|
1051
|
+
t: f / (e.length - 1) * 100,
|
|
1052
|
+
v: o,
|
|
1053
|
+
e: n
|
|
1054
|
+
});
|
|
1055
|
+
});
|
|
1056
|
+
else
|
|
1057
|
+
for (s in e)
|
|
1058
|
+
a = i[s] || (i[s] = []), s === "ease" || a.push({
|
|
1059
|
+
t: parseFloat(t),
|
|
1060
|
+
v: e[s],
|
|
1061
|
+
e: n
|
|
1062
|
+
});
|
|
1063
|
+
}, se = function(t, e, i, r, n) {
|
|
1064
|
+
return L(t) ? t.call(e, i, r, n) : X(t) && ~t.indexOf("random(") ? ue(t) : t;
|
|
1065
|
+
}, dr = ri + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", pr = {};
|
|
1066
|
+
Z(dr + ",id,stagger,delay,duration,paused,scrollTrigger", function(u) {
|
|
1067
|
+
return pr[u] = 1;
|
|
1068
|
+
});
|
|
1069
|
+
var V = /* @__PURE__ */ (function(u) {
|
|
1070
|
+
zi(t, u);
|
|
1071
|
+
function t(i, r, n, s) {
|
|
1072
|
+
var a;
|
|
1073
|
+
typeof r == "number" && (n.duration = r, r = n, n = null), a = u.call(this, s ? r : re(r)) || this;
|
|
1074
|
+
var o = a.vars, f = o.duration, h = o.delay, l = o.immediateRender, c = o.stagger, d = o.overwrite, p = o.keyframes, _ = o.defaults, m = o.scrollTrigger, y = o.yoyoEase, v = r.parent || F, T = ($(i) || Ii(i) ? yt(i[0]) : "length" in r) ? [i] : ft(i), b, g, w, P, S, x, k, R;
|
|
1075
|
+
if (a._targets = T.length ? ni(T) : ae("GSAP target " + i + " not found. https://gsap.com", !nt.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = d, p || c || pe(f) || pe(h)) {
|
|
1076
|
+
if (r = a.vars, b = a.timeline = new K({
|
|
1077
|
+
data: "nested",
|
|
1078
|
+
defaults: _ || {},
|
|
1079
|
+
targets: v && v.data === "nested" ? v.vars.targets : T
|
|
1080
|
+
}), b.kill(), b.parent = b._dp = mt(a), b._start = 0, c || pe(f) || pe(h)) {
|
|
1081
|
+
if (P = T.length, k = c && Ji(c), dt(c))
|
|
1082
|
+
for (S in c)
|
|
1083
|
+
~dr.indexOf(S) && (R || (R = {}), R[S] = c[S]);
|
|
1084
|
+
for (g = 0; g < P; g++)
|
|
1085
|
+
w = Te(r, pr), w.stagger = 0, y && (w.yoyoEase = y), R && $t(w, R), x = T[g], w.duration = +se(f, mt(a), g, x, T), w.delay = (+se(h, mt(a), g, x, T) || 0) - a._delay, !c && P === 1 && w.delay && (a._delay = h = w.delay, a._start += h, w.delay = 0), b.to(x, w, k ? k(g, x, T) : 0), b._ease = O.none;
|
|
1086
|
+
b.duration() ? f = h = 0 : a.timeline = 0;
|
|
1087
|
+
} else if (p) {
|
|
1088
|
+
re(at(b.vars.defaults, {
|
|
1089
|
+
ease: "none"
|
|
1090
|
+
})), b._ease = Lt(p.ease || r.ease || "none");
|
|
1091
|
+
var D = 0, A, q, U;
|
|
1092
|
+
if ($(p))
|
|
1093
|
+
p.forEach(function(B) {
|
|
1094
|
+
return b.to(T, B, ">");
|
|
1095
|
+
}), b.duration();
|
|
1096
|
+
else {
|
|
1097
|
+
w = {};
|
|
1098
|
+
for (S in p)
|
|
1099
|
+
S === "ease" || S === "easeEach" || mn(S, p[S], w, p.easeEach);
|
|
1100
|
+
for (S in w)
|
|
1101
|
+
for (A = w[S].sort(function(B, Y) {
|
|
1102
|
+
return B.t - Y.t;
|
|
1103
|
+
}), D = 0, g = 0; g < A.length; g++)
|
|
1104
|
+
q = A[g], U = {
|
|
1105
|
+
ease: q.e,
|
|
1106
|
+
duration: (q.t - (g ? A[g - 1].t : 0)) / 100 * f
|
|
1107
|
+
}, U[S] = q.v, b.to(T, U, D), D += U.duration;
|
|
1108
|
+
b.duration() < f && b.to({}, {
|
|
1109
|
+
duration: f - b.duration()
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
f || a.duration(f = b.duration());
|
|
1114
|
+
} else
|
|
1115
|
+
a.timeline = 0;
|
|
1116
|
+
return d === !0 && !je && (xt = mt(a), F.killTweensOf(T), xt = 0), lt(v, mt(a), n), r.reversed && a.reverse(), r.paused && a.paused(!0), (l || !f && !p && a._start === z(v._time) && Q(l) && Gr(mt(a)) && v.data !== "nested") && (a._tTime = -M, a.render(Math.max(0, -h) || 0)), m && Qi(mt(a), m), a;
|
|
1117
|
+
}
|
|
1118
|
+
var e = t.prototype;
|
|
1119
|
+
return e.render = function(r, n, s) {
|
|
1120
|
+
var a = this._time, o = this._tDur, f = this._dur, h = r < 0, l = r > o - M && !h ? o : r < M ? 0 : r, c, d, p, _, m, y, v, T, b;
|
|
1121
|
+
if (!f)
|
|
1122
|
+
Kr(this, r, n, s);
|
|
1123
|
+
else if (l !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== h || this._lazy) {
|
|
1124
|
+
if (c = l, T = this.timeline, this._repeat) {
|
|
1125
|
+
if (_ = f + this._rDelay, this._repeat < -1 && h)
|
|
1126
|
+
return this.totalTime(_ * 100 + r, n, s);
|
|
1127
|
+
if (c = z(l % _), l === o ? (p = this._repeat, c = f) : (m = z(l / _), p = ~~m, p && p === m ? (c = f, p--) : c > f && (c = f)), y = this._yoyo && p & 1, y && (b = this._yEase, c = f - c), m = Kt(this._tTime, _), c === a && !s && this._initted && p === m)
|
|
1128
|
+
return this._tTime = l, this;
|
|
1129
|
+
p !== m && (T && this._yEase && hr(T, y), this.vars.repeatRefresh && !y && !this._lock && c !== _ && this._initted && (this._lock = s = 1, this.render(z(_ * p), !0).invalidate()._lock = 0));
|
|
1130
|
+
}
|
|
1131
|
+
if (!this._initted) {
|
|
1132
|
+
if (Zi(this, h ? r : c, s, n, l))
|
|
1133
|
+
return this._tTime = 0, this;
|
|
1134
|
+
if (a !== this._time && !(s && this.vars.repeatRefresh && p !== m))
|
|
1135
|
+
return this;
|
|
1136
|
+
if (f !== this._dur)
|
|
1137
|
+
return this.render(r, n, s);
|
|
1138
|
+
}
|
|
1139
|
+
if (this._tTime = l, this._time = c, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = v = (b || this._ease)(c / f), this._from && (this.ratio = v = 1 - v), !a && l && !n && !m && (it(this, "onStart"), this._tTime !== l))
|
|
1140
|
+
return this;
|
|
1141
|
+
for (d = this._pt; d; )
|
|
1142
|
+
d.r(v, d.d), d = d._next;
|
|
1143
|
+
T && T.render(r < 0 ? r : T._dur * T._ease(c / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (h && Ve(this, r, n, s), it(this, "onUpdate")), this._repeat && p !== m && this.vars.onRepeat && !n && this.parent && it(this, "onRepeat"), (l === this._tDur || !l) && this._tTime === l && (h && !this._onUpdate && Ve(this, r, !0, !0), (r || !f) && (l === this._tDur && this._ts > 0 || !l && this._ts < 0) && St(this, 1), !n && !(h && !a) && (l || a || y) && (it(this, l === o ? "onComplete" : "onReverseComplete", !0), this._prom && !(l < o && this.timeScale() > 0) && this._prom()));
|
|
1144
|
+
}
|
|
1145
|
+
return this;
|
|
1146
|
+
}, e.targets = function() {
|
|
1147
|
+
return this._targets;
|
|
1148
|
+
}, e.invalidate = function(r) {
|
|
1149
|
+
return (!r || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(r), u.prototype.invalidate.call(this, r);
|
|
1150
|
+
}, e.resetTo = function(r, n, s, a, o) {
|
|
1151
|
+
fe || et.wake(), this._ts || this.play();
|
|
1152
|
+
var f = Math.min(this._dur, (this._dp._time - this._start) * this._ts), h;
|
|
1153
|
+
return this._initted || oi(this, f), h = this._ease(f / this._dur), dn(this, r, n, s, a, h, f, o) ? this.resetTo(r, n, s, a, 1) : (Ce(this, 0), this.parent || $i(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
|
|
1154
|
+
}, e.kill = function(r, n) {
|
|
1155
|
+
if (n === void 0 && (n = "all"), !r && (!n || n === "all"))
|
|
1156
|
+
return this._lazy = this._pt = 0, this.parent ? ee(this) : this.scrollTrigger && this.scrollTrigger.kill(!!W), this;
|
|
1157
|
+
if (this.timeline) {
|
|
1158
|
+
var s = this.timeline.totalDuration();
|
|
1159
|
+
return this.timeline.killTweensOf(r, n, xt && xt.vars.overwrite !== !0)._first || ee(this), this.parent && s !== this.timeline.totalDuration() && Qt(this, this._dur * this.timeline._tDur / s, 0, 1), this;
|
|
1160
|
+
}
|
|
1161
|
+
var a = this._targets, o = r ? ft(r) : a, f = this._ptLookup, h = this._pt, l, c, d, p, _, m, y;
|
|
1162
|
+
if ((!n || n === "all") && qr(a, o))
|
|
1163
|
+
return n === "all" && (this._pt = 0), ee(this);
|
|
1164
|
+
for (l = this._op = this._op || [], n !== "all" && (X(n) && (_ = {}, Z(n, function(v) {
|
|
1165
|
+
return _[v] = 1;
|
|
1166
|
+
}), n = _), n = pn(a, n)), y = a.length; y--; )
|
|
1167
|
+
if (~o.indexOf(a[y])) {
|
|
1168
|
+
c = f[y], n === "all" ? (l[y] = n, p = c, d = {}) : (d = l[y] = l[y] || {}, p = n);
|
|
1169
|
+
for (_ in p)
|
|
1170
|
+
m = c && c[_], m && ((!("kill" in m.d) || m.d.kill(_) === !0) && Oe(this, m, "_pt"), delete c[_]), d !== "all" && (d[_] = 1);
|
|
1171
|
+
}
|
|
1172
|
+
return this._initted && !this._pt && h && ee(this), this;
|
|
1173
|
+
}, t.to = function(r, n) {
|
|
1174
|
+
return new t(r, n, arguments[2]);
|
|
1175
|
+
}, t.from = function(r, n) {
|
|
1176
|
+
return ne(1, arguments);
|
|
1177
|
+
}, t.delayedCall = function(r, n, s, a) {
|
|
1178
|
+
return new t(n, 0, {
|
|
1179
|
+
immediateRender: !1,
|
|
1180
|
+
lazy: !1,
|
|
1181
|
+
overwrite: !1,
|
|
1182
|
+
delay: r,
|
|
1183
|
+
onComplete: n,
|
|
1184
|
+
onReverseComplete: n,
|
|
1185
|
+
onCompleteParams: s,
|
|
1186
|
+
onReverseCompleteParams: s,
|
|
1187
|
+
callbackScope: a
|
|
1188
|
+
});
|
|
1189
|
+
}, t.fromTo = function(r, n, s) {
|
|
1190
|
+
return ne(2, arguments);
|
|
1191
|
+
}, t.set = function(r, n) {
|
|
1192
|
+
return n.duration = 0, n.repeatDelay || (n.repeat = 0), new t(r, n);
|
|
1193
|
+
}, t.killTweensOf = function(r, n, s) {
|
|
1194
|
+
return F.killTweensOf(r, n, s);
|
|
1195
|
+
}, t;
|
|
1196
|
+
})(he);
|
|
1197
|
+
at(V.prototype, {
|
|
1198
|
+
_targets: [],
|
|
1199
|
+
_lazy: 0,
|
|
1200
|
+
_startAt: 0,
|
|
1201
|
+
_op: 0,
|
|
1202
|
+
_onInit: 0
|
|
1203
|
+
});
|
|
1204
|
+
Z("staggerTo,staggerFrom,staggerFromTo", function(u) {
|
|
1205
|
+
V[u] = function() {
|
|
1206
|
+
var t = new K(), e = Ye.call(arguments, 0);
|
|
1207
|
+
return e.splice(u === "staggerFromTo" ? 5 : 4, 0, 0), t[u].apply(t, e);
|
|
1208
|
+
};
|
|
1209
|
+
});
|
|
1210
|
+
var ui = function(t, e, i) {
|
|
1211
|
+
return t[e] = i;
|
|
1212
|
+
}, mr = function(t, e, i) {
|
|
1213
|
+
return t[e](i);
|
|
1214
|
+
}, gn = function(t, e, i, r) {
|
|
1215
|
+
return t[e](r.fp, i);
|
|
1216
|
+
}, yn = function(t, e, i) {
|
|
1217
|
+
return t.setAttribute(e, i);
|
|
1218
|
+
}, fi = function(t, e) {
|
|
1219
|
+
return L(t[e]) ? mr : He(t[e]) && t.setAttribute ? yn : ui;
|
|
1220
|
+
}, gr = function(t, e) {
|
|
1221
|
+
return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e6) / 1e6, e);
|
|
1222
|
+
}, vn = function(t, e) {
|
|
1223
|
+
return e.set(e.t, e.p, !!(e.s + e.c * t), e);
|
|
1224
|
+
}, yr = function(t, e) {
|
|
1225
|
+
var i = e._pt, r = "";
|
|
1226
|
+
if (!t && e.b)
|
|
1227
|
+
r = e.b;
|
|
1228
|
+
else if (t === 1 && e.e)
|
|
1229
|
+
r = e.e;
|
|
1230
|
+
else {
|
|
1231
|
+
for (; i; )
|
|
1232
|
+
r = i.p + (i.m ? i.m(i.s + i.c * t) : Math.round((i.s + i.c * t) * 1e4) / 1e4) + r, i = i._next;
|
|
1233
|
+
r += e.c;
|
|
1234
|
+
}
|
|
1235
|
+
e.set(e.t, e.p, r, e);
|
|
1236
|
+
}, hi = function(t, e) {
|
|
1237
|
+
for (var i = e._pt; i; )
|
|
1238
|
+
i.r(t, i.d), i = i._next;
|
|
1239
|
+
}, xn = function(t, e, i, r) {
|
|
1240
|
+
for (var n = this._pt, s; n; )
|
|
1241
|
+
s = n._next, n.p === r && n.modifier(t, e, i), n = s;
|
|
1242
|
+
}, Tn = function(t) {
|
|
1243
|
+
for (var e = this._pt, i, r; e; )
|
|
1244
|
+
r = e._next, e.p === t && !e.op || e.op === t ? Oe(this, e, "_pt") : e.dep || (i = 1), e = r;
|
|
1245
|
+
return !i;
|
|
1246
|
+
}, bn = function(t, e, i, r) {
|
|
1247
|
+
r.mSet(t, e, r.m.call(r.tween, i, r.mt), r);
|
|
1248
|
+
}, vr = function(t) {
|
|
1249
|
+
for (var e = t._pt, i, r, n, s; e; ) {
|
|
1250
|
+
for (i = e._next, r = n; r && r.pr > e.pr; )
|
|
1251
|
+
r = r._next;
|
|
1252
|
+
(e._prev = r ? r._prev : s) ? e._prev._next = e : n = e, (e._next = r) ? r._prev = e : s = e, e = i;
|
|
1253
|
+
}
|
|
1254
|
+
t._pt = n;
|
|
1255
|
+
}, j = /* @__PURE__ */ (function() {
|
|
1256
|
+
function u(e, i, r, n, s, a, o, f, h) {
|
|
1257
|
+
this.t = i, this.s = n, this.c = s, this.p = r, this.r = a || gr, this.d = o || this, this.set = f || ui, this.pr = h || 0, this._next = e, e && (e._prev = this);
|
|
1258
|
+
}
|
|
1259
|
+
var t = u.prototype;
|
|
1260
|
+
return t.modifier = function(i, r, n) {
|
|
1261
|
+
this.mSet = this.mSet || this.set, this.set = bn, this.m = i, this.mt = n, this.tween = r;
|
|
1262
|
+
}, u;
|
|
1263
|
+
})();
|
|
1264
|
+
Z(ri + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function(u) {
|
|
1265
|
+
return ii[u] = 1;
|
|
1266
|
+
});
|
|
1267
|
+
st.TweenMax = st.TweenLite = V;
|
|
1268
|
+
st.TimelineLite = st.TimelineMax = K;
|
|
1269
|
+
F = new K({
|
|
1270
|
+
sortChildren: !1,
|
|
1271
|
+
defaults: Gt,
|
|
1272
|
+
autoRemoveChildren: !0,
|
|
1273
|
+
id: "root",
|
|
1274
|
+
smoothChildTiming: !0
|
|
1275
|
+
});
|
|
1276
|
+
nt.stringFilter = ur;
|
|
1277
|
+
var Nt = [], ye = {}, wn = [], wi = 0, Pn = 0, ze = function(t) {
|
|
1278
|
+
return (ye[t] || wn).map(function(e) {
|
|
1279
|
+
return e();
|
|
1280
|
+
});
|
|
1281
|
+
}, Ge = function() {
|
|
1282
|
+
var t = Date.now(), e = [];
|
|
1283
|
+
t - wi > 2 && (ze("matchMediaInit"), Nt.forEach(function(i) {
|
|
1284
|
+
var r = i.queries, n = i.conditions, s, a, o, f;
|
|
1285
|
+
for (a in r)
|
|
1286
|
+
s = _t.matchMedia(r[a]).matches, s && (o = 1), s !== n[a] && (n[a] = s, f = 1);
|
|
1287
|
+
f && (i.revert(), o && e.push(i));
|
|
1288
|
+
}), ze("matchMediaRevert"), e.forEach(function(i) {
|
|
1289
|
+
return i.onMatch(i, function(r) {
|
|
1290
|
+
return i.add(null, r);
|
|
1291
|
+
});
|
|
1292
|
+
}), wi = t, ze("matchMedia"));
|
|
1293
|
+
}, xr = /* @__PURE__ */ (function() {
|
|
1294
|
+
function u(e, i) {
|
|
1295
|
+
this.selector = i && Xe(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Pn++, e && this.add(e);
|
|
1296
|
+
}
|
|
1297
|
+
var t = u.prototype;
|
|
1298
|
+
return t.add = function(i, r, n) {
|
|
1299
|
+
L(i) && (n = r, r = i, i = L);
|
|
1300
|
+
var s = this, a = function() {
|
|
1301
|
+
var f = E, h = s.selector, l;
|
|
1302
|
+
return f && f !== s && f.data.push(s), n && (s.selector = Xe(n)), E = s, l = r.apply(s, arguments), L(l) && s._r.push(l), E = f, s.selector = h, s.isReverted = !1, l;
|
|
1303
|
+
};
|
|
1304
|
+
return s.last = a, i === L ? a(s, function(o) {
|
|
1305
|
+
return s.add(null, o);
|
|
1306
|
+
}) : i ? s[i] = a : a;
|
|
1307
|
+
}, t.ignore = function(i) {
|
|
1308
|
+
var r = E;
|
|
1309
|
+
E = null, i(this), E = r;
|
|
1310
|
+
}, t.getTweens = function() {
|
|
1311
|
+
var i = [];
|
|
1312
|
+
return this.data.forEach(function(r) {
|
|
1313
|
+
return r instanceof u ? i.push.apply(i, r.getTweens()) : r instanceof V && !(r.parent && r.parent.data === "nested") && i.push(r);
|
|
1314
|
+
}), i;
|
|
1315
|
+
}, t.clear = function() {
|
|
1316
|
+
this._r.length = this.data.length = 0;
|
|
1317
|
+
}, t.kill = function(i, r) {
|
|
1318
|
+
var n = this;
|
|
1319
|
+
if (i ? (function() {
|
|
1320
|
+
for (var a = n.getTweens(), o = n.data.length, f; o--; )
|
|
1321
|
+
f = n.data[o], f.data === "isFlip" && (f.revert(), f.getChildren(!0, !0, !1).forEach(function(h) {
|
|
1322
|
+
return a.splice(a.indexOf(h), 1);
|
|
1323
|
+
}));
|
|
1324
|
+
for (a.map(function(h) {
|
|
1325
|
+
return {
|
|
1326
|
+
g: h._dur || h._delay || h._sat && !h._sat.vars.immediateRender ? h.globalTime(0) : -1 / 0,
|
|
1327
|
+
t: h
|
|
1328
|
+
};
|
|
1329
|
+
}).sort(function(h, l) {
|
|
1330
|
+
return l.g - h.g || -1 / 0;
|
|
1331
|
+
}).forEach(function(h) {
|
|
1332
|
+
return h.t.revert(i);
|
|
1333
|
+
}), o = n.data.length; o--; )
|
|
1334
|
+
f = n.data[o], f instanceof K ? f.data !== "nested" && (f.scrollTrigger && f.scrollTrigger.revert(), f.kill()) : !(f instanceof V) && f.revert && f.revert(i);
|
|
1335
|
+
n._r.forEach(function(h) {
|
|
1336
|
+
return h(i, n);
|
|
1337
|
+
}), n.isReverted = !0;
|
|
1338
|
+
})() : this.data.forEach(function(a) {
|
|
1339
|
+
return a.kill && a.kill();
|
|
1340
|
+
}), this.clear(), r)
|
|
1341
|
+
for (var s = Nt.length; s--; )
|
|
1342
|
+
Nt[s].id === this.id && Nt.splice(s, 1);
|
|
1343
|
+
}, t.revert = function(i) {
|
|
1344
|
+
this.kill(i || {});
|
|
1345
|
+
}, u;
|
|
1346
|
+
})(), Sn = /* @__PURE__ */ (function() {
|
|
1347
|
+
function u(e) {
|
|
1348
|
+
this.contexts = [], this.scope = e, E && E.data.push(this);
|
|
1349
|
+
}
|
|
1350
|
+
var t = u.prototype;
|
|
1351
|
+
return t.add = function(i, r, n) {
|
|
1352
|
+
dt(i) || (i = {
|
|
1353
|
+
matches: i
|
|
1354
|
+
});
|
|
1355
|
+
var s = new xr(0, n || this.scope), a = s.conditions = {}, o, f, h;
|
|
1356
|
+
E && !s.selector && (s.selector = E.selector), this.contexts.push(s), r = s.add("onMatch", r), s.queries = i;
|
|
1357
|
+
for (f in i)
|
|
1358
|
+
f === "all" ? h = 1 : (o = _t.matchMedia(i[f]), o && (Nt.indexOf(s) < 0 && Nt.push(s), (a[f] = o.matches) && (h = 1), o.addListener ? o.addListener(Ge) : o.addEventListener("change", Ge)));
|
|
1359
|
+
return h && r(s, function(l) {
|
|
1360
|
+
return s.add(null, l);
|
|
1361
|
+
}), this;
|
|
1362
|
+
}, t.revert = function(i) {
|
|
1363
|
+
this.kill(i || {});
|
|
1364
|
+
}, t.kill = function(i) {
|
|
1365
|
+
this.contexts.forEach(function(r) {
|
|
1366
|
+
return r.kill(i, !0);
|
|
1367
|
+
});
|
|
1368
|
+
}, u;
|
|
1369
|
+
})(), we = {
|
|
1370
|
+
registerPlugin: function() {
|
|
1371
|
+
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
1372
|
+
e[i] = arguments[i];
|
|
1373
|
+
e.forEach(function(r) {
|
|
1374
|
+
return sr(r);
|
|
1375
|
+
});
|
|
1376
|
+
},
|
|
1377
|
+
timeline: function(t) {
|
|
1378
|
+
return new K(t);
|
|
1379
|
+
},
|
|
1380
|
+
getTweensOf: function(t, e) {
|
|
1381
|
+
return F.getTweensOf(t, e);
|
|
1382
|
+
},
|
|
1383
|
+
getProperty: function(t, e, i, r) {
|
|
1384
|
+
X(t) && (t = ft(t)[0]);
|
|
1385
|
+
var n = Ft(t || {}).get, s = i ? Gi : Wi;
|
|
1386
|
+
return i === "native" && (i = ""), t && (e ? s((tt[e] && tt[e].get || n)(t, e, i, r)) : function(a, o, f) {
|
|
1387
|
+
return s((tt[a] && tt[a].get || n)(t, a, o, f));
|
|
1388
|
+
});
|
|
1389
|
+
},
|
|
1390
|
+
quickSetter: function(t, e, i) {
|
|
1391
|
+
if (t = ft(t), t.length > 1) {
|
|
1392
|
+
var r = t.map(function(h) {
|
|
1393
|
+
return J.quickSetter(h, e, i);
|
|
1394
|
+
}), n = r.length;
|
|
1395
|
+
return function(h) {
|
|
1396
|
+
for (var l = n; l--; )
|
|
1397
|
+
r[l](h);
|
|
1398
|
+
};
|
|
1399
|
+
}
|
|
1400
|
+
t = t[0] || {};
|
|
1401
|
+
var s = tt[e], a = Ft(t), o = a.harness && (a.harness.aliases || {})[e] || e, f = s ? function(h) {
|
|
1402
|
+
var l = new s();
|
|
1403
|
+
Yt._pt = 0, l.init(t, i ? h + i : h, Yt, 0, [t]), l.render(1, l), Yt._pt && hi(1, Yt);
|
|
1404
|
+
} : a.set(t, o);
|
|
1405
|
+
return s ? f : function(h) {
|
|
1406
|
+
return f(t, o, i ? h + i : h, a, 1);
|
|
1407
|
+
};
|
|
1408
|
+
},
|
|
1409
|
+
quickTo: function(t, e, i) {
|
|
1410
|
+
var r, n = J.to(t, at((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(o, f, h) {
|
|
1411
|
+
return n.resetTo(e, o, f, h);
|
|
1412
|
+
};
|
|
1413
|
+
return s.tween = n, s;
|
|
1414
|
+
},
|
|
1415
|
+
isTweening: function(t) {
|
|
1416
|
+
return F.getTweensOf(t, !0).length > 0;
|
|
1417
|
+
},
|
|
1418
|
+
defaults: function(t) {
|
|
1419
|
+
return t && t.ease && (t.ease = Lt(t.ease, Gt.ease)), yi(Gt, t || {});
|
|
1420
|
+
},
|
|
1421
|
+
config: function(t) {
|
|
1422
|
+
return yi(nt, t || {});
|
|
1423
|
+
},
|
|
1424
|
+
registerEffect: function(t) {
|
|
1425
|
+
var e = t.name, i = t.effect, r = t.plugins, n = t.defaults, s = t.extendTimeline;
|
|
1426
|
+
(r || "").split(",").forEach(function(a) {
|
|
1427
|
+
return a && !tt[a] && !st[a] && ae(e + " effect requires " + a + " plugin.");
|
|
1428
|
+
}), De[e] = function(a, o, f) {
|
|
1429
|
+
return i(ft(a), at(o || {}, n), f);
|
|
1430
|
+
}, s && (K.prototype[e] = function(a, o, f) {
|
|
1431
|
+
return this.add(De[e](a, dt(o) ? o : (f = o) && {}, this), f);
|
|
1432
|
+
});
|
|
1433
|
+
},
|
|
1434
|
+
registerEase: function(t, e) {
|
|
1435
|
+
O[t] = Lt(e);
|
|
1436
|
+
},
|
|
1437
|
+
parseEase: function(t, e) {
|
|
1438
|
+
return arguments.length ? Lt(t, e) : O;
|
|
1439
|
+
},
|
|
1440
|
+
getById: function(t) {
|
|
1441
|
+
return F.getById(t);
|
|
1442
|
+
},
|
|
1443
|
+
exportRoot: function(t, e) {
|
|
1444
|
+
t === void 0 && (t = {});
|
|
1445
|
+
var i = new K(t), r, n;
|
|
1446
|
+
for (i.smoothChildTiming = Q(t.smoothChildTiming), F.remove(i), i._dp = 0, i._time = i._tTime = F._time, r = F._first; r; )
|
|
1447
|
+
n = r._next, (e || !(!r._dur && r instanceof V && r.vars.onComplete === r._targets[0])) && lt(i, r, r._start - r._delay), r = n;
|
|
1448
|
+
return lt(F, i, 0), i;
|
|
1449
|
+
},
|
|
1450
|
+
context: function(t, e) {
|
|
1451
|
+
return t ? new xr(t, e) : E;
|
|
1452
|
+
},
|
|
1453
|
+
matchMedia: function(t) {
|
|
1454
|
+
return new Sn(t);
|
|
1455
|
+
},
|
|
1456
|
+
matchMediaRefresh: function() {
|
|
1457
|
+
return Nt.forEach(function(t) {
|
|
1458
|
+
var e = t.conditions, i, r;
|
|
1459
|
+
for (r in e)
|
|
1460
|
+
e[r] && (e[r] = !1, i = 1);
|
|
1461
|
+
i && t.revert();
|
|
1462
|
+
}) || Ge();
|
|
1463
|
+
},
|
|
1464
|
+
addEventListener: function(t, e) {
|
|
1465
|
+
var i = ye[t] || (ye[t] = []);
|
|
1466
|
+
~i.indexOf(e) || i.push(e);
|
|
1467
|
+
},
|
|
1468
|
+
removeEventListener: function(t, e) {
|
|
1469
|
+
var i = ye[t], r = i && i.indexOf(e);
|
|
1470
|
+
r >= 0 && i.splice(r, 1);
|
|
1471
|
+
},
|
|
1472
|
+
utils: {
|
|
1473
|
+
wrap: rn,
|
|
1474
|
+
wrapYoyo: nn,
|
|
1475
|
+
distribute: Ji,
|
|
1476
|
+
random: er,
|
|
1477
|
+
snap: tr,
|
|
1478
|
+
normalize: en,
|
|
1479
|
+
getUnit: G,
|
|
1480
|
+
clamp: jr,
|
|
1481
|
+
splitColor: ar,
|
|
1482
|
+
toArray: ft,
|
|
1483
|
+
selector: Xe,
|
|
1484
|
+
mapRange: rr,
|
|
1485
|
+
pipe: Jr,
|
|
1486
|
+
unitize: tn,
|
|
1487
|
+
interpolate: sn,
|
|
1488
|
+
shuffle: Hi
|
|
1489
|
+
},
|
|
1490
|
+
install: Vi,
|
|
1491
|
+
effects: De,
|
|
1492
|
+
ticker: et,
|
|
1493
|
+
updateRoot: K.updateRoot,
|
|
1494
|
+
plugins: tt,
|
|
1495
|
+
globalTimeline: F,
|
|
1496
|
+
core: {
|
|
1497
|
+
PropTween: j,
|
|
1498
|
+
globals: Ui,
|
|
1499
|
+
Tween: V,
|
|
1500
|
+
Timeline: K,
|
|
1501
|
+
Animation: he,
|
|
1502
|
+
getCache: Ft,
|
|
1503
|
+
_removeLinkedListItem: Oe,
|
|
1504
|
+
reverting: function() {
|
|
1505
|
+
return W;
|
|
1506
|
+
},
|
|
1507
|
+
context: function(t) {
|
|
1508
|
+
return t && E && (E.data.push(t), t._ctx = E), E;
|
|
1509
|
+
},
|
|
1510
|
+
suppressOverwrites: function(t) {
|
|
1511
|
+
return je = t;
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
};
|
|
1515
|
+
Z("to,from,fromTo,delayedCall,set,killTweensOf", function(u) {
|
|
1516
|
+
return we[u] = V[u];
|
|
1517
|
+
});
|
|
1518
|
+
et.add(K.updateRoot);
|
|
1519
|
+
Yt = we.to({}, {
|
|
1520
|
+
duration: 0
|
|
1521
|
+
});
|
|
1522
|
+
var On = function(t, e) {
|
|
1523
|
+
for (var i = t._pt; i && i.p !== e && i.op !== e && i.fp !== e; )
|
|
1524
|
+
i = i._next;
|
|
1525
|
+
return i;
|
|
1526
|
+
}, kn = function(t, e) {
|
|
1527
|
+
var i = t._targets, r, n, s;
|
|
1528
|
+
for (r in e)
|
|
1529
|
+
for (n = i.length; n--; )
|
|
1530
|
+
s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s = On(s, r)), s && s.modifier && s.modifier(e[r], t, i[n], r));
|
|
1531
|
+
}, Fe = function(t, e) {
|
|
1532
|
+
return {
|
|
1533
|
+
name: t,
|
|
1534
|
+
headless: 1,
|
|
1535
|
+
rawVars: 1,
|
|
1536
|
+
//don't pre-process function-based values or "random()" strings.
|
|
1537
|
+
init: function(r, n, s) {
|
|
1538
|
+
s._onInit = function(a) {
|
|
1539
|
+
var o, f;
|
|
1540
|
+
if (X(n) && (o = {}, Z(n, function(h) {
|
|
1541
|
+
return o[h] = 1;
|
|
1542
|
+
}), n = o), e) {
|
|
1543
|
+
o = {};
|
|
1544
|
+
for (f in n)
|
|
1545
|
+
o[f] = e(n[f]);
|
|
1546
|
+
n = o;
|
|
1547
|
+
}
|
|
1548
|
+
kn(a, n);
|
|
1549
|
+
};
|
|
1550
|
+
}
|
|
1551
|
+
};
|
|
1552
|
+
}, J = we.registerPlugin({
|
|
1553
|
+
name: "attr",
|
|
1554
|
+
init: function(t, e, i, r, n) {
|
|
1555
|
+
var s, a, o;
|
|
1556
|
+
this.tween = i;
|
|
1557
|
+
for (s in e)
|
|
1558
|
+
o = t.getAttribute(s) || "", a = this.add(t, "setAttribute", (o || 0) + "", e[s], r, n, 0, 0, s), a.op = s, a.b = o, this._props.push(s);
|
|
1559
|
+
},
|
|
1560
|
+
render: function(t, e) {
|
|
1561
|
+
for (var i = e._pt; i; )
|
|
1562
|
+
W ? i.set(i.t, i.p, i.b, i) : i.r(t, i.d), i = i._next;
|
|
1563
|
+
}
|
|
1564
|
+
}, {
|
|
1565
|
+
name: "endArray",
|
|
1566
|
+
headless: 1,
|
|
1567
|
+
init: function(t, e) {
|
|
1568
|
+
for (var i = e.length; i--; )
|
|
1569
|
+
this.add(t, i, t[i] || 0, e[i], 0, 0, 0, 0, 0, 1);
|
|
1570
|
+
}
|
|
1571
|
+
}, Fe("roundProps", qe), Fe("modifiers"), Fe("snap", tr)) || we;
|
|
1572
|
+
V.version = K.version = J.version = "3.14.2";
|
|
1573
|
+
Bi = 1;
|
|
1574
|
+
Je() && Zt();
|
|
1575
|
+
O.Power0;
|
|
1576
|
+
O.Power1;
|
|
1577
|
+
O.Power2;
|
|
1578
|
+
O.Power3;
|
|
1579
|
+
O.Power4;
|
|
1580
|
+
O.Linear;
|
|
1581
|
+
O.Quad;
|
|
1582
|
+
O.Cubic;
|
|
1583
|
+
O.Quart;
|
|
1584
|
+
O.Quint;
|
|
1585
|
+
O.Strong;
|
|
1586
|
+
O.Elastic;
|
|
1587
|
+
O.Back;
|
|
1588
|
+
O.SteppedEase;
|
|
1589
|
+
O.Bounce;
|
|
1590
|
+
O.Sine;
|
|
1591
|
+
O.Expo;
|
|
1592
|
+
O.Circ;
|
|
1593
|
+
var Pi, Tt, qt, _i, zt, Si, li, Cn = function() {
|
|
1594
|
+
return typeof window < "u";
|
|
1595
|
+
}, vt = {}, Et = 180 / Math.PI, Wt = Math.PI / 180, Vt = Math.atan2, Oi = 1e8, ci = /([A-Z])/g, Mn = /(left|right|width|margin|padding|x)/i, Dn = /[\s,\(]\S/, ct = {
|
|
1596
|
+
autoAlpha: "opacity,visibility",
|
|
1597
|
+
scale: "scaleX,scaleY",
|
|
1598
|
+
alpha: "opacity"
|
|
1599
|
+
}, $e = function(t, e) {
|
|
1600
|
+
return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
|
|
1601
|
+
}, An = function(t, e) {
|
|
1602
|
+
return e.set(e.t, e.p, t === 1 ? e.e : Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
|
|
1603
|
+
}, Rn = function(t, e) {
|
|
1604
|
+
return e.set(e.t, e.p, t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
|
|
1605
|
+
}, En = function(t, e) {
|
|
1606
|
+
return e.set(e.t, e.p, t === 1 ? e.e : t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
|
|
1607
|
+
}, zn = function(t, e) {
|
|
1608
|
+
var i = e.s + e.c * t;
|
|
1609
|
+
e.set(e.t, e.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + e.u, e);
|
|
1610
|
+
}, Tr = function(t, e) {
|
|
1611
|
+
return e.set(e.t, e.p, t ? e.e : e.b, e);
|
|
1612
|
+
}, br = function(t, e) {
|
|
1613
|
+
return e.set(e.t, e.p, t !== 1 ? e.b : e.e, e);
|
|
1614
|
+
}, Fn = function(t, e, i) {
|
|
1615
|
+
return t.style[e] = i;
|
|
1616
|
+
}, In = function(t, e, i) {
|
|
1617
|
+
return t.style.setProperty(e, i);
|
|
1618
|
+
}, Ln = function(t, e, i) {
|
|
1619
|
+
return t._gsap[e] = i;
|
|
1620
|
+
}, Nn = function(t, e, i) {
|
|
1621
|
+
return t._gsap.scaleX = t._gsap.scaleY = i;
|
|
1622
|
+
}, Bn = function(t, e, i, r, n) {
|
|
1623
|
+
var s = t._gsap;
|
|
1624
|
+
s.scaleX = s.scaleY = i, s.renderTransform(n, s);
|
|
1625
|
+
}, Vn = function(t, e, i, r, n) {
|
|
1626
|
+
var s = t._gsap;
|
|
1627
|
+
s[e] = i, s.renderTransform(n, s);
|
|
1628
|
+
}, I = "transform", H = I + "Origin", Un = function u(t, e) {
|
|
1629
|
+
var i = this, r = this.target, n = r.style, s = r._gsap;
|
|
1630
|
+
if (t in vt && n) {
|
|
1631
|
+
if (this.tfm = this.tfm || {}, t !== "transform")
|
|
1632
|
+
t = ct[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(a) {
|
|
1633
|
+
return i.tfm[a] = gt(r, a);
|
|
1634
|
+
}) : this.tfm[t] = s.x ? s[t] : gt(r, t), t === H && (this.tfm.zOrigin = s.zOrigin);
|
|
1635
|
+
else
|
|
1636
|
+
return ct.transform.split(",").forEach(function(a) {
|
|
1637
|
+
return u.call(i, a, e);
|
|
1638
|
+
});
|
|
1639
|
+
if (this.props.indexOf(I) >= 0)
|
|
1640
|
+
return;
|
|
1641
|
+
s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(H, e, "")), t = I;
|
|
1642
|
+
}
|
|
1643
|
+
(n || e) && this.props.push(t, e, n[t]);
|
|
1644
|
+
}, wr = function(t) {
|
|
1645
|
+
t.translate && (t.removeProperty("translate"), t.removeProperty("scale"), t.removeProperty("rotate"));
|
|
1646
|
+
}, Yn = function() {
|
|
1647
|
+
var t = this.props, e = this.target, i = e.style, r = e._gsap, n, s;
|
|
1648
|
+
for (n = 0; n < t.length; n += 3)
|
|
1649
|
+
t[n + 1] ? t[n + 1] === 2 ? e[t[n]](t[n + 2]) : e[t[n]] = t[n + 2] : t[n + 2] ? i[t[n]] = t[n + 2] : i.removeProperty(t[n].substr(0, 2) === "--" ? t[n] : t[n].replace(ci, "-$1").toLowerCase());
|
|
1650
|
+
if (this.tfm) {
|
|
1651
|
+
for (s in this.tfm)
|
|
1652
|
+
r[s] = this.tfm[s];
|
|
1653
|
+
r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = li(), (!n || !n.isStart) && !i[I] && (wr(i), r.zOrigin && i[H] && (i[H] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
|
|
1654
|
+
}
|
|
1655
|
+
}, Pr = function(t, e) {
|
|
1656
|
+
var i = {
|
|
1657
|
+
target: t,
|
|
1658
|
+
props: [],
|
|
1659
|
+
revert: Yn,
|
|
1660
|
+
save: Un
|
|
1661
|
+
};
|
|
1662
|
+
return t._gsap || J.core.getCache(t), e && t.style && t.nodeType && e.split(",").forEach(function(r) {
|
|
1663
|
+
return i.save(r);
|
|
1664
|
+
}), i;
|
|
1665
|
+
}, Sr, Ke = function(t, e) {
|
|
1666
|
+
var i = Tt.createElementNS ? Tt.createElementNS((e || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), t) : Tt.createElement(t);
|
|
1667
|
+
return i && i.style ? i : Tt.createElement(t);
|
|
1668
|
+
}, rt = function u(t, e, i) {
|
|
1669
|
+
var r = getComputedStyle(t);
|
|
1670
|
+
return r[e] || r.getPropertyValue(e.replace(ci, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && u(t, jt(e) || e, 1) || "";
|
|
1671
|
+
}, ki = "O,Moz,ms,Ms,Webkit".split(","), jt = function(t, e, i) {
|
|
1672
|
+
var r = e || zt, n = r.style, s = 5;
|
|
1673
|
+
if (t in n && !i)
|
|
1674
|
+
return t;
|
|
1675
|
+
for (t = t.charAt(0).toUpperCase() + t.substr(1); s-- && !(ki[s] + t in n); )
|
|
1676
|
+
;
|
|
1677
|
+
return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? ki[s] : "") + t;
|
|
1678
|
+
}, Qe = function() {
|
|
1679
|
+
Cn() && window.document && (Pi = window, Tt = Pi.document, qt = Tt.documentElement, zt = Ke("div") || {
|
|
1680
|
+
style: {}
|
|
1681
|
+
}, Ke("div"), I = jt(I), H = I + "Origin", zt.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", Sr = !!jt("perspective"), li = J.core.reverting, _i = 1);
|
|
1682
|
+
}, Ci = function(t) {
|
|
1683
|
+
var e = t.ownerSVGElement, i = Ke("svg", e && e.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = t.cloneNode(!0), n;
|
|
1684
|
+
r.style.display = "block", i.appendChild(r), qt.appendChild(i);
|
|
1685
|
+
try {
|
|
1686
|
+
n = r.getBBox();
|
|
1687
|
+
} catch {
|
|
1688
|
+
}
|
|
1689
|
+
return i.removeChild(r), qt.removeChild(i), n;
|
|
1690
|
+
}, Mi = function(t, e) {
|
|
1691
|
+
for (var i = e.length; i--; )
|
|
1692
|
+
if (t.hasAttribute(e[i]))
|
|
1693
|
+
return t.getAttribute(e[i]);
|
|
1694
|
+
}, Or = function(t) {
|
|
1695
|
+
var e, i;
|
|
1696
|
+
try {
|
|
1697
|
+
e = t.getBBox();
|
|
1698
|
+
} catch {
|
|
1699
|
+
e = Ci(t), i = 1;
|
|
1700
|
+
}
|
|
1701
|
+
return e && (e.width || e.height) || i || (e = Ci(t)), e && !e.width && !e.x && !e.y ? {
|
|
1702
|
+
x: +Mi(t, ["x", "cx", "x1"]) || 0,
|
|
1703
|
+
y: +Mi(t, ["y", "cy", "y1"]) || 0,
|
|
1704
|
+
width: 0,
|
|
1705
|
+
height: 0
|
|
1706
|
+
} : e;
|
|
1707
|
+
}, kr = function(t) {
|
|
1708
|
+
return !!(t.getCTM && (!t.parentNode || t.ownerSVGElement) && Or(t));
|
|
1709
|
+
}, Ot = function(t, e) {
|
|
1710
|
+
if (e) {
|
|
1711
|
+
var i = t.style, r;
|
|
1712
|
+
e in vt && e !== H && (e = I), i.removeProperty ? (r = e.substr(0, 2), (r === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), i.removeProperty(r === "--" ? e : e.replace(ci, "-$1").toLowerCase())) : i.removeAttribute(e);
|
|
1713
|
+
}
|
|
1714
|
+
}, bt = function(t, e, i, r, n, s) {
|
|
1715
|
+
var a = new j(t._pt, e, i, 0, 1, s ? br : Tr);
|
|
1716
|
+
return t._pt = a, a.b = r, a.e = n, t._props.push(i), a;
|
|
1717
|
+
}, Di = {
|
|
1718
|
+
deg: 1,
|
|
1719
|
+
rad: 1,
|
|
1720
|
+
turn: 1
|
|
1721
|
+
}, Xn = {
|
|
1722
|
+
grid: 1,
|
|
1723
|
+
flex: 1
|
|
1724
|
+
}, kt = function u(t, e, i, r) {
|
|
1725
|
+
var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a = zt.style, o = Mn.test(e), f = t.tagName.toLowerCase() === "svg", h = (f ? "client" : "offset") + (o ? "Width" : "Height"), l = 100, c = r === "px", d = r === "%", p, _, m, y;
|
|
1726
|
+
if (r === s || !n || Di[r] || Di[s])
|
|
1727
|
+
return n;
|
|
1728
|
+
if (s !== "px" && !c && (n = u(t, e, i, "px")), y = t.getCTM && kr(t), (d || s === "%") && (vt[e] || ~e.indexOf("adius")))
|
|
1729
|
+
return p = y ? t.getBBox()[o ? "width" : "height"] : t[h], N(d ? n / p * l : n / 100 * p);
|
|
1730
|
+
if (a[o ? "width" : "height"] = l + (c ? s : r), _ = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !f ? t : t.parentNode, y && (_ = (t.ownerSVGElement || {}).parentNode), (!_ || _ === Tt || !_.appendChild) && (_ = Tt.body), m = _._gsap, m && d && m.width && o && m.time === et.time && !m.uncache)
|
|
1731
|
+
return N(n / m.width * l);
|
|
1732
|
+
if (d && (e === "height" || e === "width")) {
|
|
1733
|
+
var v = t.style[e];
|
|
1734
|
+
t.style[e] = l + r, p = t[h], v ? t.style[e] = v : Ot(t, e);
|
|
1735
|
+
} else
|
|
1736
|
+
(d || s === "%") && !Xn[rt(_, "display")] && (a.position = rt(t, "position")), _ === t && (a.position = "static"), _.appendChild(zt), p = zt[h], _.removeChild(zt), a.position = "absolute";
|
|
1737
|
+
return o && d && (m = Ft(_), m.time = et.time, m.width = _[h]), N(c ? p * n / l : p && n ? l / p * n : 0);
|
|
1738
|
+
}, gt = function(t, e, i, r) {
|
|
1739
|
+
var n;
|
|
1740
|
+
return _i || Qe(), e in ct && e !== "transform" && (e = ct[e], ~e.indexOf(",") && (e = e.split(",")[0])), vt[e] && e !== "transform" ? (n = le(t, r), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : Se(rt(t, H)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = Pe[e] && Pe[e](t, e, i) || rt(t, e) || Xi(t, e) || (e === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? kt(t, e, n, i) + i : n;
|
|
1741
|
+
}, qn = function(t, e, i, r) {
|
|
1742
|
+
if (!i || i === "none") {
|
|
1743
|
+
var n = jt(e, t, 1), s = n && rt(t, n, 1);
|
|
1744
|
+
s && s !== i ? (e = n, i = s) : e === "borderColor" && (i = rt(t, "borderTopColor"));
|
|
1745
|
+
}
|
|
1746
|
+
var a = new j(this._pt, t.style, e, 0, 1, yr), o = 0, f = 0, h, l, c, d, p, _, m, y, v, T, b, g;
|
|
1747
|
+
if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = rt(t, r.substring(4, r.indexOf(")")))), r === "auto" && (_ = t.style[e], t.style[e] = r, r = rt(t, e) || r, _ ? t.style[e] = _ : Ot(t, e)), h = [i, r], ur(h), i = h[0], r = h[1], c = i.match(Ut) || [], g = r.match(Ut) || [], g.length) {
|
|
1748
|
+
for (; l = Ut.exec(r); )
|
|
1749
|
+
m = l[0], v = r.substring(o, l.index), p ? p = (p + 1) % 5 : (v.substr(-5) === "rgba(" || v.substr(-5) === "hsla(") && (p = 1), m !== (_ = c[f++] || "") && (d = parseFloat(_) || 0, b = _.substr((d + "").length), m.charAt(1) === "=" && (m = Xt(d, m) + b), y = parseFloat(m), T = m.substr((y + "").length), o = Ut.lastIndex - T.length, T || (T = T || nt.units[e] || b, o === r.length && (r += T, a.e += T)), b !== T && (d = kt(t, e, _, T) || 0), a._pt = {
|
|
1750
|
+
_next: a._pt,
|
|
1751
|
+
p: v || f === 1 ? v : ",",
|
|
1752
|
+
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
1753
|
+
s: d,
|
|
1754
|
+
c: y - d,
|
|
1755
|
+
m: p && p < 4 || e === "zIndex" ? Math.round : 0
|
|
1756
|
+
});
|
|
1757
|
+
a.c = o < r.length ? r.substring(o, r.length) : "";
|
|
1758
|
+
} else
|
|
1759
|
+
a.r = e === "display" && r === "none" ? br : Tr;
|
|
1760
|
+
return Ni.test(r) && (a.e = 0), this._pt = a, a;
|
|
1761
|
+
}, Ai = {
|
|
1762
|
+
top: "0%",
|
|
1763
|
+
bottom: "100%",
|
|
1764
|
+
left: "0%",
|
|
1765
|
+
right: "100%",
|
|
1766
|
+
center: "50%"
|
|
1767
|
+
}, Wn = function(t) {
|
|
1768
|
+
var e = t.split(" "), i = e[0], r = e[1] || "50%";
|
|
1769
|
+
return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] = Ai[i] || i, e[1] = Ai[r] || r, e.join(" ");
|
|
1770
|
+
}, Gn = function(t, e) {
|
|
1771
|
+
if (e.tween && e.tween._time === e.tween._dur) {
|
|
1772
|
+
var i = e.t, r = i.style, n = e.u, s = i._gsap, a, o, f;
|
|
1773
|
+
if (n === "all" || n === !0)
|
|
1774
|
+
r.cssText = "", o = 1;
|
|
1775
|
+
else
|
|
1776
|
+
for (n = n.split(","), f = n.length; --f > -1; )
|
|
1777
|
+
a = n[f], vt[a] && (o = 1, a = a === "transformOrigin" ? H : I), Ot(i, a);
|
|
1778
|
+
o && (Ot(i, I), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", le(i, 1), s.uncache = 1, wr(r)));
|
|
1779
|
+
}
|
|
1780
|
+
}, Pe = {
|
|
1781
|
+
clearProps: function(t, e, i, r, n) {
|
|
1782
|
+
if (n.data !== "isFromStart") {
|
|
1783
|
+
var s = t._pt = new j(t._pt, e, i, 0, 0, Gn);
|
|
1784
|
+
return s.u = r, s.pr = -10, s.tween = n, t._props.push(i), 1;
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
/* className feature (about 0.4kb gzipped).
|
|
1788
|
+
, className(plugin, target, property, endValue, tween) {
|
|
1789
|
+
let _renderClassName = (ratio, data) => {
|
|
1790
|
+
data.css.render(ratio, data.css);
|
|
1791
|
+
if (!ratio || ratio === 1) {
|
|
1792
|
+
let inline = data.rmv,
|
|
1793
|
+
target = data.t,
|
|
1794
|
+
p;
|
|
1795
|
+
target.setAttribute("class", ratio ? data.e : data.b);
|
|
1796
|
+
for (p in inline) {
|
|
1797
|
+
_removeProperty(target, p);
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
_getAllStyles = (target) => {
|
|
1802
|
+
let styles = {},
|
|
1803
|
+
computed = getComputedStyle(target),
|
|
1804
|
+
p;
|
|
1805
|
+
for (p in computed) {
|
|
1806
|
+
if (isNaN(p) && p !== "cssText" && p !== "length") {
|
|
1807
|
+
styles[p] = computed[p];
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
_setDefaults(styles, _parseTransform(target, 1));
|
|
1811
|
+
return styles;
|
|
1812
|
+
},
|
|
1813
|
+
startClassList = target.getAttribute("class"),
|
|
1814
|
+
style = target.style,
|
|
1815
|
+
cssText = style.cssText,
|
|
1816
|
+
cache = target._gsap,
|
|
1817
|
+
classPT = cache.classPT,
|
|
1818
|
+
inlineToRemoveAtEnd = {},
|
|
1819
|
+
data = {t:target, plugin:plugin, rmv:inlineToRemoveAtEnd, b:startClassList, e:(endValue.charAt(1) !== "=") ? endValue : startClassList.replace(new RegExp("(?:\\s|^)" + endValue.substr(2) + "(?![\\w-])"), "") + ((endValue.charAt(0) === "+") ? " " + endValue.substr(2) : "")},
|
|
1820
|
+
changingVars = {},
|
|
1821
|
+
startVars = _getAllStyles(target),
|
|
1822
|
+
transformRelated = /(transform|perspective)/i,
|
|
1823
|
+
endVars, p;
|
|
1824
|
+
if (classPT) {
|
|
1825
|
+
classPT.r(1, classPT.d);
|
|
1826
|
+
_removeLinkedListItem(classPT.d.plugin, classPT, "_pt");
|
|
1827
|
+
}
|
|
1828
|
+
target.setAttribute("class", data.e);
|
|
1829
|
+
endVars = _getAllStyles(target, true);
|
|
1830
|
+
target.setAttribute("class", startClassList);
|
|
1831
|
+
for (p in endVars) {
|
|
1832
|
+
if (endVars[p] !== startVars[p] && !transformRelated.test(p)) {
|
|
1833
|
+
changingVars[p] = endVars[p];
|
|
1834
|
+
if (!style[p] && style[p] !== "0") {
|
|
1835
|
+
inlineToRemoveAtEnd[p] = 1;
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
cache.classPT = plugin._pt = new PropTween(plugin._pt, target, "className", 0, 0, _renderClassName, data, 0, -11);
|
|
1840
|
+
if (style.cssText !== cssText) { //only apply if things change. Otherwise, in cases like a background-image that's pulled dynamically, it could cause a refresh. See https://gsap.com/forums/topic/20368-possible-gsap-bug-switching-classnames-in-chrome/.
|
|
1841
|
+
style.cssText = cssText; //we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).
|
|
1842
|
+
}
|
|
1843
|
+
_parseTransform(target, true); //to clear the caching of transforms
|
|
1844
|
+
data.css = new gsap.plugins.css();
|
|
1845
|
+
data.css.init(target, changingVars, tween);
|
|
1846
|
+
plugin._props.push(...data.css._props);
|
|
1847
|
+
return 1;
|
|
1848
|
+
}
|
|
1849
|
+
*/
|
|
1850
|
+
}, _e = [1, 0, 0, 1, 0, 0], Cr = {}, Mr = function(t) {
|
|
1851
|
+
return t === "matrix(1, 0, 0, 1, 0, 0)" || t === "none" || !t;
|
|
1852
|
+
}, Ri = function(t) {
|
|
1853
|
+
var e = rt(t, I);
|
|
1854
|
+
return Mr(e) ? _e : e.substr(7).match(Li).map(N);
|
|
1855
|
+
}, di = function(t, e) {
|
|
1856
|
+
var i = t._gsap || Ft(t), r = t.style, n = Ri(t), s, a, o, f;
|
|
1857
|
+
return i.svg && t.getAttribute("transform") ? (o = t.transform.baseVal.consolidate().matrix, n = [o.a, o.b, o.c, o.d, o.e, o.f], n.join(",") === "1,0,0,1,0,0" ? _e : n) : (n === _e && !t.offsetParent && t !== qt && !i.svg && (o = r.display, r.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (f = 1, a = t.nextElementSibling, qt.appendChild(t)), n = Ri(t), o ? r.display = o : Ot(t, "display"), f && (a ? s.insertBefore(t, a) : s ? s.appendChild(t) : qt.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
|
|
1858
|
+
}, Ze = function(t, e, i, r, n, s) {
|
|
1859
|
+
var a = t._gsap, o = n || di(t, !0), f = a.xOrigin || 0, h = a.yOrigin || 0, l = a.xOffset || 0, c = a.yOffset || 0, d = o[0], p = o[1], _ = o[2], m = o[3], y = o[4], v = o[5], T = e.split(" "), b = parseFloat(T[0]) || 0, g = parseFloat(T[1]) || 0, w, P, S, x;
|
|
1860
|
+
i ? o !== _e && (P = d * m - p * _) && (S = b * (m / P) + g * (-_ / P) + (_ * v - m * y) / P, x = b * (-p / P) + g * (d / P) - (d * v - p * y) / P, b = S, g = x) : (w = Or(t), b = w.x + (~T[0].indexOf("%") ? b / 100 * w.width : b), g = w.y + (~(T[1] || T[0]).indexOf("%") ? g / 100 * w.height : g)), r || r !== !1 && a.smooth ? (y = b - f, v = g - h, a.xOffset = l + (y * d + v * _) - y, a.yOffset = c + (y * p + v * m) - v) : a.xOffset = a.yOffset = 0, a.xOrigin = b, a.yOrigin = g, a.smooth = !!r, a.origin = e, a.originIsAbsolute = !!i, t.style[H] = "0px 0px", s && (bt(s, a, "xOrigin", f, b), bt(s, a, "yOrigin", h, g), bt(s, a, "xOffset", l, a.xOffset), bt(s, a, "yOffset", c, a.yOffset)), t.setAttribute("data-svg-origin", b + " " + g);
|
|
1861
|
+
}, le = function(t, e) {
|
|
1862
|
+
var i = t._gsap || new lr(t);
|
|
1863
|
+
if ("x" in i && !e && !i.uncache)
|
|
1864
|
+
return i;
|
|
1865
|
+
var r = t.style, n = i.scaleX < 0, s = "px", a = "deg", o = getComputedStyle(t), f = rt(t, H) || "0", h, l, c, d, p, _, m, y, v, T, b, g, w, P, S, x, k, R, D, A, q, U, B, Y, ht, de, Ht, Jt, Mt, pi, pt, Dt;
|
|
1866
|
+
return h = l = c = _ = m = y = v = T = b = 0, d = p = 1, i.svg = !!(t.getCTM && kr(t)), o.translate && ((o.translate !== "none" || o.scale !== "none" || o.rotate !== "none") && (r[I] = (o.translate !== "none" ? "translate3d(" + (o.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (o.rotate !== "none" ? "rotate(" + o.rotate + ") " : "") + (o.scale !== "none" ? "scale(" + o.scale.split(" ").join(",") + ") " : "") + (o[I] !== "none" ? o[I] : "")), r.scale = r.rotate = r.translate = "none"), P = di(t, i.svg), i.svg && (i.uncache ? (ht = t.getBBox(), f = i.xOrigin - ht.x + "px " + (i.yOrigin - ht.y) + "px", Y = "") : Y = !e && t.getAttribute("data-svg-origin"), Ze(t, Y || f, !!Y || i.originIsAbsolute, i.smooth !== !1, P)), g = i.xOrigin || 0, w = i.yOrigin || 0, P !== _e && (R = P[0], D = P[1], A = P[2], q = P[3], h = U = P[4], l = B = P[5], P.length === 6 ? (d = Math.sqrt(R * R + D * D), p = Math.sqrt(q * q + A * A), _ = R || D ? Vt(D, R) * Et : 0, v = A || q ? Vt(A, q) * Et + _ : 0, v && (p *= Math.abs(Math.cos(v * Wt))), i.svg && (h -= g - (g * R + w * A), l -= w - (g * D + w * q))) : (Dt = P[6], pi = P[7], Ht = P[8], Jt = P[9], Mt = P[10], pt = P[11], h = P[12], l = P[13], c = P[14], S = Vt(Dt, Mt), m = S * Et, S && (x = Math.cos(-S), k = Math.sin(-S), Y = U * x + Ht * k, ht = B * x + Jt * k, de = Dt * x + Mt * k, Ht = U * -k + Ht * x, Jt = B * -k + Jt * x, Mt = Dt * -k + Mt * x, pt = pi * -k + pt * x, U = Y, B = ht, Dt = de), S = Vt(-A, Mt), y = S * Et, S && (x = Math.cos(-S), k = Math.sin(-S), Y = R * x - Ht * k, ht = D * x - Jt * k, de = A * x - Mt * k, pt = q * k + pt * x, R = Y, D = ht, A = de), S = Vt(D, R), _ = S * Et, S && (x = Math.cos(S), k = Math.sin(S), Y = R * x + D * k, ht = U * x + B * k, D = D * x - R * k, B = B * x - U * k, R = Y, U = ht), m && Math.abs(m) + Math.abs(_) > 359.9 && (m = _ = 0, y = 180 - y), d = N(Math.sqrt(R * R + D * D + A * A)), p = N(Math.sqrt(B * B + Dt * Dt)), S = Vt(U, B), v = Math.abs(S) > 2e-4 ? S * Et : 0, b = pt ? 1 / (pt < 0 ? -pt : pt) : 0), i.svg && (Y = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !Mr(rt(t, I)), Y && t.setAttribute("transform", Y))), Math.abs(v) > 90 && Math.abs(v) < 270 && (n ? (d *= -1, v += _ <= 0 ? 180 : -180, _ += _ <= 0 ? 180 : -180) : (p *= -1, v += v <= 0 ? 180 : -180)), e = e || i.uncache, i.x = h - ((i.xPercent = h && (!e && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-h) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + s, i.y = l - ((i.yPercent = l && (!e && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-l) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + s, i.z = c + s, i.scaleX = N(d), i.scaleY = N(p), i.rotation = N(_) + a, i.rotationX = N(m) + a, i.rotationY = N(y) + a, i.skewX = v + a, i.skewY = T + a, i.transformPerspective = b + s, (i.zOrigin = parseFloat(f.split(" ")[2]) || !e && i.zOrigin || 0) && (r[H] = Se(f)), i.xOffset = i.yOffset = 0, i.force3D = nt.force3D, i.renderTransform = i.svg ? Kn : Sr ? Dr : $n, i.uncache = 0, i;
|
|
1867
|
+
}, Se = function(t) {
|
|
1868
|
+
return (t = t.split(" "))[0] + " " + t[1];
|
|
1869
|
+
}, Ie = function(t, e, i) {
|
|
1870
|
+
var r = G(e);
|
|
1871
|
+
return N(parseFloat(e) + parseFloat(kt(t, "x", i + "px", r))) + r;
|
|
1872
|
+
}, $n = function(t, e) {
|
|
1873
|
+
e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, Dr(t, e);
|
|
1874
|
+
}, At = "0deg", te = "0px", Rt = ") ", Dr = function(t, e) {
|
|
1875
|
+
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, o = i.z, f = i.rotation, h = i.rotationY, l = i.rotationX, c = i.skewX, d = i.skewY, p = i.scaleX, _ = i.scaleY, m = i.transformPerspective, y = i.force3D, v = i.target, T = i.zOrigin, b = "", g = y === "auto" && t && t !== 1 || y === !0;
|
|
1876
|
+
if (T && (l !== At || h !== At)) {
|
|
1877
|
+
var w = parseFloat(h) * Wt, P = Math.sin(w), S = Math.cos(w), x;
|
|
1878
|
+
w = parseFloat(l) * Wt, x = Math.cos(w), s = Ie(v, s, P * x * -T), a = Ie(v, a, -Math.sin(w) * -T), o = Ie(v, o, S * x * -T + T);
|
|
1879
|
+
}
|
|
1880
|
+
m !== te && (b += "perspective(" + m + Rt), (r || n) && (b += "translate(" + r + "%, " + n + "%) "), (g || s !== te || a !== te || o !== te) && (b += o !== te || g ? "translate3d(" + s + ", " + a + ", " + o + ") " : "translate(" + s + ", " + a + Rt), f !== At && (b += "rotate(" + f + Rt), h !== At && (b += "rotateY(" + h + Rt), l !== At && (b += "rotateX(" + l + Rt), (c !== At || d !== At) && (b += "skew(" + c + ", " + d + Rt), (p !== 1 || _ !== 1) && (b += "scale(" + p + ", " + _ + Rt), v.style[I] = b || "translate(0, 0)";
|
|
1881
|
+
}, Kn = function(t, e) {
|
|
1882
|
+
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, o = i.rotation, f = i.skewX, h = i.skewY, l = i.scaleX, c = i.scaleY, d = i.target, p = i.xOrigin, _ = i.yOrigin, m = i.xOffset, y = i.yOffset, v = i.forceCSS, T = parseFloat(s), b = parseFloat(a), g, w, P, S, x;
|
|
1883
|
+
o = parseFloat(o), f = parseFloat(f), h = parseFloat(h), h && (h = parseFloat(h), f += h, o += h), o || f ? (o *= Wt, f *= Wt, g = Math.cos(o) * l, w = Math.sin(o) * l, P = Math.sin(o - f) * -c, S = Math.cos(o - f) * c, f && (h *= Wt, x = Math.tan(f - h), x = Math.sqrt(1 + x * x), P *= x, S *= x, h && (x = Math.tan(h), x = Math.sqrt(1 + x * x), g *= x, w *= x)), g = N(g), w = N(w), P = N(P), S = N(S)) : (g = l, S = c, w = P = 0), (T && !~(s + "").indexOf("px") || b && !~(a + "").indexOf("px")) && (T = kt(d, "x", s, "px"), b = kt(d, "y", a, "px")), (p || _ || m || y) && (T = N(T + p - (p * g + _ * P) + m), b = N(b + _ - (p * w + _ * S) + y)), (r || n) && (x = d.getBBox(), T = N(T + r / 100 * x.width), b = N(b + n / 100 * x.height)), x = "matrix(" + g + "," + w + "," + P + "," + S + "," + T + "," + b + ")", d.setAttribute("transform", x), v && (d.style[I] = x);
|
|
1884
|
+
}, Qn = function(t, e, i, r, n) {
|
|
1885
|
+
var s = 360, a = X(n), o = parseFloat(n) * (a && ~n.indexOf("rad") ? Et : 1), f = o - r, h = r + f + "deg", l, c;
|
|
1886
|
+
return a && (l = n.split("_")[1], l === "short" && (f %= s, f !== f % (s / 2) && (f += f < 0 ? s : -s)), l === "cw" && f < 0 ? f = (f + s * Oi) % s - ~~(f / s) * s : l === "ccw" && f > 0 && (f = (f - s * Oi) % s - ~~(f / s) * s)), t._pt = c = new j(t._pt, e, i, r, f, An), c.e = h, c.u = "deg", t._props.push(i), c;
|
|
1887
|
+
}, Ei = function(t, e) {
|
|
1888
|
+
for (var i in e)
|
|
1889
|
+
t[i] = e[i];
|
|
1890
|
+
return t;
|
|
1891
|
+
}, Zn = function(t, e, i) {
|
|
1892
|
+
var r = Ei({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, a, o, f, h, l, c, d, p;
|
|
1893
|
+
r.svg ? (f = i.getAttribute("transform"), i.setAttribute("transform", ""), s[I] = e, a = le(i, 1), Ot(i, I), i.setAttribute("transform", f)) : (f = getComputedStyle(i)[I], s[I] = e, a = le(i, 1), s[I] = f);
|
|
1894
|
+
for (o in vt)
|
|
1895
|
+
f = r[o], h = a[o], f !== h && n.indexOf(o) < 0 && (d = G(f), p = G(h), l = d !== p ? kt(i, o, f, p) : parseFloat(f), c = parseFloat(h), t._pt = new j(t._pt, a, o, l, c - l, $e), t._pt.u = p || 0, t._props.push(o));
|
|
1896
|
+
Ei(a, r);
|
|
1897
|
+
};
|
|
1898
|
+
Z("padding,margin,Width,Radius", function(u, t) {
|
|
1899
|
+
var e = "Top", i = "Right", r = "Bottom", n = "Left", s = (t < 3 ? [e, i, r, n] : [e + n, e + i, r + i, r + n]).map(function(a) {
|
|
1900
|
+
return t < 2 ? u + a : "border" + a + u;
|
|
1901
|
+
});
|
|
1902
|
+
Pe[t > 1 ? "border" + u : u] = function(a, o, f, h, l) {
|
|
1903
|
+
var c, d;
|
|
1904
|
+
if (arguments.length < 4)
|
|
1905
|
+
return c = s.map(function(p) {
|
|
1906
|
+
return gt(a, p, f);
|
|
1907
|
+
}), d = c.join(" "), d.split(c[0]).length === 5 ? c[0] : d;
|
|
1908
|
+
c = (h + "").split(" "), d = {}, s.forEach(function(p, _) {
|
|
1909
|
+
return d[p] = c[_] = c[_] || c[(_ - 1) / 2 | 0];
|
|
1910
|
+
}), a.init(o, d, l);
|
|
1911
|
+
};
|
|
1912
|
+
});
|
|
1913
|
+
var Ar = {
|
|
1914
|
+
name: "css",
|
|
1915
|
+
register: Qe,
|
|
1916
|
+
targetTest: function(t) {
|
|
1917
|
+
return t.style && t.nodeType;
|
|
1918
|
+
},
|
|
1919
|
+
init: function(t, e, i, r, n) {
|
|
1920
|
+
var s = this._props, a = t.style, o = i.vars.startAt, f, h, l, c, d, p, _, m, y, v, T, b, g, w, P, S, x;
|
|
1921
|
+
_i || Qe(), this.styles = this.styles || Pr(t), S = this.styles.props, this.tween = i;
|
|
1922
|
+
for (_ in e)
|
|
1923
|
+
if (_ !== "autoRound" && (h = e[_], !(tt[_] && cr(_, e, i, r, t, n)))) {
|
|
1924
|
+
if (d = typeof h, p = Pe[_], d === "function" && (h = h.call(i, r, t, n), d = typeof h), d === "string" && ~h.indexOf("random(") && (h = ue(h)), p)
|
|
1925
|
+
p(this, t, _, h, i) && (P = 1);
|
|
1926
|
+
else if (_.substr(0, 2) === "--")
|
|
1927
|
+
f = (getComputedStyle(t).getPropertyValue(_) + "").trim(), h += "", Pt.lastIndex = 0, Pt.test(f) || (m = G(f), y = G(h), y ? m !== y && (f = kt(t, _, f, y) + y) : m && (h += m)), this.add(a, "setProperty", f, h, r, n, 0, 0, _), s.push(_), S.push(_, 0, a[_]);
|
|
1928
|
+
else if (d !== "undefined") {
|
|
1929
|
+
if (o && _ in o ? (f = typeof o[_] == "function" ? o[_].call(i, r, t, n) : o[_], X(f) && ~f.indexOf("random(") && (f = ue(f)), G(f + "") || f === "auto" || (f += nt.units[_] || G(gt(t, _)) || ""), (f + "").charAt(1) === "=" && (f = gt(t, _))) : f = gt(t, _), c = parseFloat(f), v = d === "string" && h.charAt(1) === "=" && h.substr(0, 2), v && (h = h.substr(2)), l = parseFloat(h), _ in ct && (_ === "autoAlpha" && (c === 1 && gt(t, "visibility") === "hidden" && l && (c = 0), S.push("visibility", 0, a.visibility), bt(this, a, "visibility", c ? "inherit" : "hidden", l ? "inherit" : "hidden", !l)), _ !== "scale" && _ !== "transform" && (_ = ct[_], ~_.indexOf(",") && (_ = _.split(",")[0]))), T = _ in vt, T) {
|
|
1930
|
+
if (this.styles.save(_), x = h, d === "string" && h.substring(0, 6) === "var(--") {
|
|
1931
|
+
if (h = rt(t, h.substring(4, h.indexOf(")"))), h.substring(0, 5) === "calc(") {
|
|
1932
|
+
var k = t.style.perspective;
|
|
1933
|
+
t.style.perspective = h, h = rt(t, "perspective"), k ? t.style.perspective = k : Ot(t, "perspective");
|
|
1934
|
+
}
|
|
1935
|
+
l = parseFloat(h);
|
|
1936
|
+
}
|
|
1937
|
+
if (b || (g = t._gsap, g.renderTransform && !e.parseTransform || le(t, e.parseTransform), w = e.smoothOrigin !== !1 && g.smooth, b = this._pt = new j(this._pt, a, I, 0, 1, g.renderTransform, g, 0, -1), b.dep = 1), _ === "scale")
|
|
1938
|
+
this._pt = new j(this._pt, g, "scaleY", g.scaleY, (v ? Xt(g.scaleY, v + l) : l) - g.scaleY || 0, $e), this._pt.u = 0, s.push("scaleY", _), _ += "X";
|
|
1939
|
+
else if (_ === "transformOrigin") {
|
|
1940
|
+
S.push(H, 0, a[H]), h = Wn(h), g.svg ? Ze(t, h, 0, w, 0, this) : (y = parseFloat(h.split(" ")[2]) || 0, y !== g.zOrigin && bt(this, g, "zOrigin", g.zOrigin, y), bt(this, a, _, Se(f), Se(h)));
|
|
1941
|
+
continue;
|
|
1942
|
+
} else if (_ === "svgOrigin") {
|
|
1943
|
+
Ze(t, h, 1, w, 0, this);
|
|
1944
|
+
continue;
|
|
1945
|
+
} else if (_ in Cr) {
|
|
1946
|
+
Qn(this, g, _, c, v ? Xt(c, v + h) : h);
|
|
1947
|
+
continue;
|
|
1948
|
+
} else if (_ === "smoothOrigin") {
|
|
1949
|
+
bt(this, g, "smooth", g.smooth, h);
|
|
1950
|
+
continue;
|
|
1951
|
+
} else if (_ === "force3D") {
|
|
1952
|
+
g[_] = h;
|
|
1953
|
+
continue;
|
|
1954
|
+
} else if (_ === "transform") {
|
|
1955
|
+
Zn(this, h, t);
|
|
1956
|
+
continue;
|
|
1957
|
+
}
|
|
1958
|
+
} else _ in a || (_ = jt(_) || _);
|
|
1959
|
+
if (T || (l || l === 0) && (c || c === 0) && !Dn.test(h) && _ in a)
|
|
1960
|
+
m = (f + "").substr((c + "").length), l || (l = 0), y = G(h) || (_ in nt.units ? nt.units[_] : m), m !== y && (c = kt(t, _, f, y)), this._pt = new j(this._pt, T ? g : a, _, c, (v ? Xt(c, v + l) : l) - c, !T && (y === "px" || _ === "zIndex") && e.autoRound !== !1 ? zn : $e), this._pt.u = y || 0, T && x !== h ? (this._pt.b = f, this._pt.e = x, this._pt.r = En) : m !== y && y !== "%" && (this._pt.b = f, this._pt.r = Rn);
|
|
1961
|
+
else if (_ in a)
|
|
1962
|
+
qn.call(this, t, _, f, v ? v + h : h);
|
|
1963
|
+
else if (_ in t)
|
|
1964
|
+
this.add(t, _, f || t[_], v ? v + h : h, r, n);
|
|
1965
|
+
else if (_ !== "parseTransform") {
|
|
1966
|
+
ei(_, h);
|
|
1967
|
+
continue;
|
|
1968
|
+
}
|
|
1969
|
+
T || (_ in a ? S.push(_, 0, a[_]) : typeof t[_] == "function" ? S.push(_, 2, t[_]()) : S.push(_, 1, f || t[_])), s.push(_);
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
P && vr(this);
|
|
1973
|
+
},
|
|
1974
|
+
render: function(t, e) {
|
|
1975
|
+
if (e.tween._time || !li())
|
|
1976
|
+
for (var i = e._pt; i; )
|
|
1977
|
+
i.r(t, i.d), i = i._next;
|
|
1978
|
+
else
|
|
1979
|
+
e.styles.revert();
|
|
1980
|
+
},
|
|
1981
|
+
get: gt,
|
|
1982
|
+
aliases: ct,
|
|
1983
|
+
getSetter: function(t, e, i) {
|
|
1984
|
+
var r = ct[e];
|
|
1985
|
+
return r && r.indexOf(",") < 0 && (e = r), e in vt && e !== H && (t._gsap.x || gt(t, "x")) ? i && Si === i ? e === "scale" ? Nn : Ln : (Si = i || {}) && (e === "scale" ? Bn : Vn) : t.style && !He(t.style[e]) ? Fn : ~e.indexOf("-") ? In : fi(t, e);
|
|
1986
|
+
},
|
|
1987
|
+
core: {
|
|
1988
|
+
_removeProperty: Ot,
|
|
1989
|
+
_getMatrix: di
|
|
1990
|
+
}
|
|
1991
|
+
};
|
|
1992
|
+
J.utils.checkPrefix = jt;
|
|
1993
|
+
J.core.getStyleSaver = Pr;
|
|
1994
|
+
(function(u, t, e, i) {
|
|
1995
|
+
var r = Z(u + "," + t + "," + e, function(n) {
|
|
1996
|
+
vt[n] = 1;
|
|
1997
|
+
});
|
|
1998
|
+
Z(t, function(n) {
|
|
1999
|
+
nt.units[n] = "deg", Cr[n] = 1;
|
|
2000
|
+
}), ct[r[13]] = u + "," + t, Z(i, function(n) {
|
|
2001
|
+
var s = n.split(":");
|
|
2002
|
+
ct[s[1]] = r[s[0]];
|
|
2003
|
+
});
|
|
2004
|
+
})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent", "rotation,rotationX,rotationY,skewX,skewY", "transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective", "0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");
|
|
2005
|
+
Z("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(u) {
|
|
2006
|
+
nt.units[u] = "px";
|
|
2007
|
+
});
|
|
2008
|
+
J.registerPlugin(Ar);
|
|
2009
|
+
var jn = J.registerPlugin(Ar) || J;
|
|
2010
|
+
jn.core.Tween;
|
|
2011
|
+
export {
|
|
2012
|
+
jn as g
|
|
2013
|
+
};
|