chbim-plugins 0.0.1 → 0.0.3
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/chbim-plugins.js +2898 -18
- package/chbim-plugins.umd.cjs +13 -1
- package/package.json +4 -2
- package/style.css +1 -1
package/chbim-plugins.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
for (const [
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
},
|
|
1
|
+
import { openBlock as Fe, createElementBlock as Ee, normalizeClass as qe, renderSlot as We, defineComponent as be, ref as Ze, onMounted as $e, createElementVNode as oe, toDisplayString as Ge } from "vue";
|
|
2
|
+
const He = (Y, Q) => {
|
|
3
|
+
const it = Y.__vccOpts || Y;
|
|
4
|
+
for (const [ut, z] of Q)
|
|
5
|
+
it[ut] = z;
|
|
6
|
+
return it;
|
|
7
|
+
}, Qe = {
|
|
8
8
|
name: "MukButton"
|
|
9
|
-
},
|
|
9
|
+
}, Je = /* @__PURE__ */ Object.assign(Qe, {
|
|
10
10
|
props: {
|
|
11
11
|
size: {
|
|
12
12
|
type: String,
|
|
@@ -17,21 +17,2901 @@ const u = (t, e) => {
|
|
|
17
17
|
default: "default"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
return (
|
|
22
|
-
class:
|
|
20
|
+
setup(Y) {
|
|
21
|
+
return (Q, it) => (Fe(), Ee("button", {
|
|
22
|
+
class: qe(["muk-btn", [Y.size, Y.type]])
|
|
23
23
|
}, [
|
|
24
|
-
|
|
24
|
+
We(Q.$slots, "default", {}, void 0, !0)
|
|
25
25
|
], 2));
|
|
26
26
|
}
|
|
27
|
-
}),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
}), Ke = /* @__PURE__ */ He(Je, [["__scopeId", "data-v-0e6d93cd"]]);
|
|
28
|
+
class ti {
|
|
29
|
+
constructor() {
|
|
30
|
+
this.dom = {
|
|
31
|
+
mask: document.querySelector(".js-mask"),
|
|
32
|
+
slices: [...document.querySelectorAll(".js-mask__slice")],
|
|
33
|
+
lines: [...document.querySelectorAll(".js-mask-line")],
|
|
34
|
+
logo: document.querySelector(".js-logo"),
|
|
35
|
+
titles: [...document.querySelectorAll(".js-transition-title")]
|
|
36
|
+
}, this.tl = null, this.state = !1, this.init();
|
|
37
|
+
}
|
|
38
|
+
resetScroll() {
|
|
39
|
+
window.scrollTo(0, 0);
|
|
40
|
+
}
|
|
41
|
+
createTimeline() {
|
|
42
|
+
this.tl = new TimelineMax({
|
|
43
|
+
paused: !0,
|
|
44
|
+
onComplete: () => {
|
|
45
|
+
this.state = !1;
|
|
46
|
+
}
|
|
47
|
+
}), this.tl.set(this.dom.titles, {
|
|
48
|
+
yPercent: 0
|
|
49
|
+
}).set(this.dom.mask, {
|
|
50
|
+
autoAlpha: 1
|
|
51
|
+
}).staggerFromTo(
|
|
52
|
+
this.dom.slices,
|
|
53
|
+
1.5,
|
|
54
|
+
{
|
|
55
|
+
xPercent: 100
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
xPercent: 0,
|
|
59
|
+
ease: Expo.easeInOut
|
|
60
|
+
},
|
|
61
|
+
-0.075
|
|
62
|
+
).addCallback(this.resetScroll.bind(this)).addLabel("loaderStart").set(this.dom.titles, {
|
|
63
|
+
yPercent: -100
|
|
64
|
+
}).set([this.dom.lines[0], this.dom.logo], {
|
|
65
|
+
autoAlpha: 1
|
|
66
|
+
}).fromTo(
|
|
67
|
+
this.dom.logo,
|
|
68
|
+
1,
|
|
69
|
+
{
|
|
70
|
+
yPercent: -100,
|
|
71
|
+
rotation: 10
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
yPercent: 0,
|
|
75
|
+
rotation: 0,
|
|
76
|
+
ease: Expo.easeOut
|
|
77
|
+
}
|
|
78
|
+
).addLabel("intermediateFrame").staggerFromTo(
|
|
79
|
+
this.dom.lines,
|
|
80
|
+
0.5,
|
|
81
|
+
{
|
|
82
|
+
scaleX: 0
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
scaleX: 1,
|
|
86
|
+
ease: Expo.easeInOut
|
|
87
|
+
},
|
|
88
|
+
0.75,
|
|
89
|
+
"-=1"
|
|
90
|
+
).set(this.dom.lines, {
|
|
91
|
+
transformOrigin: "right"
|
|
92
|
+
}).fromTo(
|
|
93
|
+
this.dom.lines[0],
|
|
94
|
+
1,
|
|
95
|
+
{
|
|
96
|
+
scaleX: 1
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
scaleX: 0,
|
|
100
|
+
ease: Expo.easeInOut
|
|
101
|
+
}
|
|
102
|
+
).fromTo(
|
|
103
|
+
this.dom.logo,
|
|
104
|
+
1,
|
|
105
|
+
{
|
|
106
|
+
yPercent: 0
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
yPercent: 105,
|
|
110
|
+
ease: Expo.easeOut
|
|
111
|
+
},
|
|
112
|
+
"-=1"
|
|
113
|
+
).staggerFromTo(
|
|
114
|
+
this.dom.slices,
|
|
115
|
+
0.5,
|
|
116
|
+
{
|
|
117
|
+
xPercent: 0
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
xPercent: 100,
|
|
121
|
+
ease: Expo.easeInOut
|
|
122
|
+
},
|
|
123
|
+
0.075
|
|
124
|
+
).set(this.dom.mask, {
|
|
125
|
+
autoAlpha: 0
|
|
126
|
+
}).addLabel("imagesStart", "-=0.85").staggerFromTo(
|
|
127
|
+
this.dom.titles,
|
|
128
|
+
1.5,
|
|
129
|
+
{
|
|
130
|
+
yPercent: 100
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
yPercent: 0,
|
|
134
|
+
ease: Expo.easeInOut
|
|
135
|
+
},
|
|
136
|
+
0.05,
|
|
137
|
+
"imagesStart"
|
|
138
|
+
).addLabel("loaderEnd");
|
|
139
|
+
}
|
|
140
|
+
continuation() {
|
|
141
|
+
this.init(), this.resetScroll(), this.tl.tweenFromTo("loaderStart", "loaderEnd");
|
|
142
|
+
}
|
|
143
|
+
show() {
|
|
144
|
+
this.init(), this.tl.tweenFromTo("loaderStart", "intermediateFrame");
|
|
145
|
+
}
|
|
146
|
+
hide() {
|
|
147
|
+
this.resetScroll(), this.tl.tweenFromTo("intermediateFrame", "loaderEnd");
|
|
148
|
+
}
|
|
149
|
+
init() {
|
|
150
|
+
document.querySelector(".mask-line.js-mask-line") && document.querySelector(".mask-line.js-mask-line").removeAttribute("style"), document.querySelector(".mask-line__inner.js-mask-line") && document.querySelector(".mask-line__inner.js-mask-line").removeAttribute("style"), this.createTimeline();
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
const ei = { class: "mask js-mask" }, ii = /* @__PURE__ */ oe("div", { class: "mask__slice js-mask__slice" }, null, -1), si = /* @__PURE__ */ oe("div", { class: "mask__slice js-mask__slice" }, null, -1), ri = /* @__PURE__ */ oe("div", { class: "mask__slice js-mask__slice" }, null, -1), ni = { class: "mask__inner" }, oi = { class: "logo logo--mask" }, ai = {
|
|
154
|
+
class: "js-logo",
|
|
155
|
+
style: { color: "#fff" }
|
|
156
|
+
}, li = /* @__PURE__ */ oe("div", { class: "mask-line js-mask-line" }, [
|
|
157
|
+
/* @__PURE__ */ oe("div", { class: "mask-line__inner js-mask-line" })
|
|
158
|
+
], -1), hi = {
|
|
159
|
+
name: "BimCutscenes"
|
|
160
|
+
}, _i = /* @__PURE__ */ be({
|
|
161
|
+
...hi,
|
|
162
|
+
props: {
|
|
163
|
+
text: {
|
|
164
|
+
type: String,
|
|
165
|
+
default: "CHBIM云平台"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
setup(Y, { expose: Q }) {
|
|
169
|
+
const it = Ze(null), ut = () => {
|
|
170
|
+
it.value === null && (it.value = new ti());
|
|
171
|
+
}, z = () => {
|
|
172
|
+
it.value.continuation();
|
|
173
|
+
};
|
|
174
|
+
return $e(() => {
|
|
175
|
+
ut();
|
|
176
|
+
}), Q({
|
|
177
|
+
continuation: z
|
|
178
|
+
}), (V, H) => (Fe(), Ee("div", ei, [
|
|
179
|
+
ii,
|
|
180
|
+
si,
|
|
181
|
+
ri,
|
|
182
|
+
oe("div", ni, [
|
|
183
|
+
oe("figure", oi, [
|
|
184
|
+
oe("p", ai, Ge(Y.text), 1)
|
|
185
|
+
]),
|
|
186
|
+
li
|
|
187
|
+
])
|
|
188
|
+
]));
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
/*!
|
|
192
|
+
* VERSION: 2.0.2
|
|
193
|
+
* DATE: 2018-08-27
|
|
194
|
+
* UPDATES AND DOCS AT: http://greensock.com
|
|
195
|
+
*
|
|
196
|
+
* Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
|
|
197
|
+
*
|
|
198
|
+
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
|
|
199
|
+
* This work is subject to the terms at http://greensock.com/standard-license or for
|
|
200
|
+
* Club GreenSock members, the software agreement that was issued with your membership.
|
|
201
|
+
*
|
|
202
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
203
|
+
**/
|
|
204
|
+
var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global : globalThis || window;
|
|
205
|
+
(Dt._gsQueue || (Dt._gsQueue = [])).push(function() {
|
|
206
|
+
Dt._gsDefine(
|
|
207
|
+
"TweenMax",
|
|
208
|
+
["core.Animation", "core.SimpleTimeline", "TweenLite"],
|
|
209
|
+
function(Y, Q, it) {
|
|
210
|
+
var ut = function(v) {
|
|
211
|
+
var P, e = [], t = v.length;
|
|
212
|
+
for (P = 0; P !== t; e.push(v[P++]))
|
|
213
|
+
;
|
|
214
|
+
return e;
|
|
215
|
+
}, z = function(v, P, e) {
|
|
216
|
+
var t, _, n = v.cycle;
|
|
217
|
+
for (t in n)
|
|
218
|
+
_ = n[t], v[t] = typeof _ == "function" ? _(e, P[e]) : _[e % _.length];
|
|
219
|
+
delete v.cycle;
|
|
220
|
+
}, V = function(v, P, e) {
|
|
221
|
+
it.call(this, v, P, e), this._cycle = 0, this._yoyo = this.vars.yoyo === !0 || !!this.vars.yoyoEase, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._repeat && this._uncache(!0), this.render = V.prototype.render;
|
|
222
|
+
}, H = 1e-10, dt = it._internals, S = dt.isSelector, M = dt.isArray, W = V.prototype = it.to({}, 0.1, {}), F = [];
|
|
223
|
+
V.version = "2.0.2", W.constructor = V, W.kill()._gc = !1, V.killTweensOf = V.killDelayedCallsTo = it.killTweensOf, V.getTweensOf = it.getTweensOf, V.lagSmoothing = it.lagSmoothing, V.ticker = it.ticker, V.render = it.render, W.invalidate = function() {
|
|
224
|
+
return this._yoyo = this.vars.yoyo === !0 || !!this.vars.yoyoEase, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._yoyoEase = null, this._uncache(!0), it.prototype.invalidate.call(this);
|
|
225
|
+
}, W.updateTo = function(v, P) {
|
|
226
|
+
var e, t = this.ratio, _ = this.vars.immediateRender || v.immediateRender;
|
|
227
|
+
P && this._startTime < this._timeline._time && (this._startTime = this._timeline._time, this._uncache(!1), this._gc ? this._enabled(!0, !1) : this._timeline.insert(this, this._startTime - this._delay));
|
|
228
|
+
for (e in v)
|
|
229
|
+
this.vars[e] = v[e];
|
|
230
|
+
if (this._initted || _) {
|
|
231
|
+
if (P)
|
|
232
|
+
this._initted = !1, _ && this.render(0, !0, !0);
|
|
233
|
+
else if (this._gc && this._enabled(!0, !1), this._notifyPluginsOfEnabled && this._firstPT && it._onPluginEvent("_onDisable", this), this._time / this._duration > 0.998) {
|
|
234
|
+
var n = this._totalTime;
|
|
235
|
+
this.render(0, !0, !1), this._initted = !1, this.render(n, !0, !1);
|
|
236
|
+
} else if (this._initted = !1, this._init(), this._time > 0 || _)
|
|
237
|
+
for (var g, p = 1 / (1 - t), T = this._firstPT; T; )
|
|
238
|
+
g = T.s + T.c, T.c *= p, T.s = g - T.c, T = T._next;
|
|
239
|
+
}
|
|
240
|
+
return this;
|
|
241
|
+
}, W.render = function(v, P, e) {
|
|
242
|
+
this._initted || this._duration === 0 && this.vars.repeat && this.invalidate();
|
|
243
|
+
var t, _, n, g, p, T, O, D, R, Z = this._dirty ? this.totalDuration() : this._totalDuration, U = this._time, K = this._totalTime, tt = this._cycle, mt = this._duration, ot = this._rawPrevTime;
|
|
244
|
+
if (v >= Z - 1e-7 && v >= 0 ? (this._totalTime = Z, this._cycle = this._repeat, this._yoyo && 1 & this._cycle ? (this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0) : (this._time = mt, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1), this._reversed || (t = !0, _ = "onComplete", e = e || this._timeline.autoRemoveChildren), mt === 0 && (this._initted || !this.vars.lazy || e) && (this._startTime === this._timeline._duration && (v = 0), (0 > ot || 0 >= v && v >= -1e-7 || ot === H && this.data !== "isPause") && ot !== v && (e = !0, ot > H && (_ = "onReverseComplete")), this._rawPrevTime = D = !P || v || ot === v ? v : H)) : 1e-7 > v ? (this._totalTime = this._time = this._cycle = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (K !== 0 || mt === 0 && ot > 0) && (_ = "onReverseComplete", t = this._reversed), 0 > v && (this._active = !1, mt === 0 && (this._initted || !this.vars.lazy || e) && (ot >= 0 && (e = !0), this._rawPrevTime = D = !P || v || ot === v ? v : H)), this._initted || (e = !0)) : (this._totalTime = this._time = v, this._repeat !== 0 && (g = mt + this._repeatDelay, this._cycle = this._totalTime / g >> 0, this._cycle !== 0 && this._cycle === this._totalTime / g && v >= K && this._cycle--, this._time = this._totalTime - this._cycle * g, this._yoyo && 1 & this._cycle && (this._time = mt - this._time, R = this._yoyoEase || this.vars.yoyoEase, R && (this._yoyoEase || (R !== !0 || this._initted ? this._yoyoEase = R = R === !0 ? this._ease : R instanceof Ease ? R : Ease.map[R] : (R = this.vars.ease, this._yoyoEase = R = R ? R instanceof Ease ? R : typeof R == "function" ? new Ease(R, this.vars.easeParams) : Ease.map[R] || it.defaultEase : it.defaultEase)), this.ratio = R ? 1 - R.getRatio((mt - this._time) / mt) : 0)), this._time > mt ? this._time = mt : this._time < 0 && (this._time = 0)), this._easeType && !R ? (p = this._time / mt, T = this._easeType, O = this._easePower, (T === 1 || T === 3 && p >= 0.5) && (p = 1 - p), T === 3 && (p *= 2), O === 1 ? p *= p : O === 2 ? p *= p * p : O === 3 ? p *= p * p * p : O === 4 && (p *= p * p * p * p), T === 1 ? this.ratio = 1 - p : T === 2 ? this.ratio = p : this._time / mt < 0.5 ? this.ratio = p / 2 : this.ratio = 1 - p / 2) : R || (this.ratio = this._ease.getRatio(this._time / mt))), U === this._time && !e && tt === this._cycle)
|
|
245
|
+
return void (K !== this._totalTime && this._onUpdate && (P || this._callback("onUpdate")));
|
|
246
|
+
if (!this._initted) {
|
|
247
|
+
if (this._init(), !this._initted || this._gc)
|
|
248
|
+
return;
|
|
249
|
+
if (!e && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration))
|
|
250
|
+
return this._time = U, this._totalTime = K, this._rawPrevTime = ot, this._cycle = tt, dt.lazyTweens.push(this), void (this._lazy = [v, P]);
|
|
251
|
+
!this._time || t || R ? t && this._ease._calcEnd && !R && (this.ratio = this._ease.getRatio(this._time === 0 ? 0 : 1)) : this.ratio = this._ease.getRatio(this._time / mt);
|
|
252
|
+
}
|
|
253
|
+
for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== U && v >= 0 && (this._active = !0), K === 0 && (this._initted === 2 && v > 0 && this._init(), this._startAt && (v >= 0 ? this._startAt.render(v, !0, e) : _ || (_ = "_dummyGS")), this.vars.onStart && (this._totalTime !== 0 || mt === 0) && (P || this._callback("onStart"))), n = this._firstPT; n; )
|
|
254
|
+
n.f ? n.t[n.p](n.c * this.ratio + n.s) : n.t[n.p] = n.c * this.ratio + n.s, n = n._next;
|
|
255
|
+
this._onUpdate && (0 > v && this._startAt && this._startTime && this._startAt.render(v, !0, e), P || (this._totalTime !== K || _) && this._callback("onUpdate")), this._cycle !== tt && (P || this._gc || this.vars.onRepeat && this._callback("onRepeat")), _ && (!this._gc || e) && (0 > v && this._startAt && !this._onUpdate && this._startTime && this._startAt.render(v, !0, e), t && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !P && this.vars[_] && this._callback(_), mt === 0 && this._rawPrevTime === H && D !== H && (this._rawPrevTime = 0));
|
|
256
|
+
}, V.to = function(v, P, e) {
|
|
257
|
+
return new V(v, P, e);
|
|
258
|
+
}, V.from = function(v, P, e) {
|
|
259
|
+
return e.runBackwards = !0, e.immediateRender = e.immediateRender != 0, new V(v, P, e);
|
|
260
|
+
}, V.fromTo = function(v, P, e, t) {
|
|
261
|
+
return t.startAt = e, t.immediateRender = t.immediateRender != 0 && e.immediateRender != 0, new V(v, P, t);
|
|
262
|
+
}, V.staggerTo = V.allTo = function(v, P, e, t, _, n, g) {
|
|
263
|
+
t = t || 0;
|
|
264
|
+
var p, T, O, D, R = 0, Z = [], U = function() {
|
|
265
|
+
e.onComplete && e.onComplete.apply(e.onCompleteScope || this, arguments), _.apply(g || e.callbackScope || this, n || F);
|
|
266
|
+
}, K = e.cycle, tt = e.startAt && e.startAt.cycle;
|
|
267
|
+
for (M(v) || (typeof v == "string" && (v = it.selector(v) || v), S(v) && (v = ut(v))), v = v || [], 0 > t && (v = ut(v), v.reverse(), t *= -1), p = v.length - 1, O = 0; p >= O; O++) {
|
|
268
|
+
T = {};
|
|
269
|
+
for (D in e)
|
|
270
|
+
T[D] = e[D];
|
|
271
|
+
if (K && (z(T, v, O), T.duration != null && (P = T.duration, delete T.duration)), tt) {
|
|
272
|
+
tt = T.startAt = {};
|
|
273
|
+
for (D in e.startAt)
|
|
274
|
+
tt[D] = e.startAt[D];
|
|
275
|
+
z(T.startAt, v, O);
|
|
276
|
+
}
|
|
277
|
+
T.delay = R + (T.delay || 0), O === p && _ && (T.onComplete = U), Z[O] = new V(v[O], P, T), R += t;
|
|
278
|
+
}
|
|
279
|
+
return Z;
|
|
280
|
+
}, V.staggerFrom = V.allFrom = function(v, P, e, t, _, n, g) {
|
|
281
|
+
return e.runBackwards = !0, e.immediateRender = e.immediateRender != 0, V.staggerTo(v, P, e, t, _, n, g);
|
|
282
|
+
}, V.staggerFromTo = V.allFromTo = function(v, P, e, t, _, n, g, p) {
|
|
283
|
+
return t.startAt = e, t.immediateRender = t.immediateRender != 0 && e.immediateRender != 0, V.staggerTo(v, P, t, _, n, g, p);
|
|
284
|
+
}, V.delayedCall = function(v, P, e, t, _) {
|
|
285
|
+
return new V(P, 0, {
|
|
286
|
+
delay: v,
|
|
287
|
+
onComplete: P,
|
|
288
|
+
onCompleteParams: e,
|
|
289
|
+
callbackScope: t,
|
|
290
|
+
onReverseComplete: P,
|
|
291
|
+
onReverseCompleteParams: e,
|
|
292
|
+
immediateRender: !1,
|
|
293
|
+
useFrames: _,
|
|
294
|
+
overwrite: 0
|
|
295
|
+
});
|
|
296
|
+
}, V.set = function(v, P) {
|
|
297
|
+
return new V(v, 0, P);
|
|
298
|
+
}, V.isTweening = function(v) {
|
|
299
|
+
return it.getTweensOf(v, !0).length > 0;
|
|
300
|
+
};
|
|
301
|
+
var $ = function(v, P) {
|
|
302
|
+
for (var e = [], t = 0, _ = v._first; _; )
|
|
303
|
+
_ instanceof it ? e[t++] = _ : (P && (e[t++] = _), e = e.concat($(_, P)), t = e.length), _ = _._next;
|
|
304
|
+
return e;
|
|
305
|
+
}, st = V.getAllTweens = function(v) {
|
|
306
|
+
return $(Y._rootTimeline, v).concat($(Y._rootFramesTimeline, v));
|
|
307
|
+
};
|
|
308
|
+
V.killAll = function(v, P, e, t) {
|
|
309
|
+
P == null && (P = !0), e == null && (e = !0);
|
|
310
|
+
var _, n, g, p = st(t != 0), T = p.length, O = P && e && t;
|
|
311
|
+
for (g = 0; T > g; g++)
|
|
312
|
+
n = p[g], (O || n instanceof Q || (_ = n.target === n.vars.onComplete) && e || P && !_) && (v ? n.totalTime(n._reversed ? 0 : n.totalDuration()) : n._enabled(!1, !1));
|
|
313
|
+
}, V.killChildTweensOf = function(v, P) {
|
|
314
|
+
if (v != null) {
|
|
315
|
+
var e, t, _, n, g, p = dt.tweenLookup;
|
|
316
|
+
if (typeof v == "string" && (v = it.selector(v) || v), S(v) && (v = ut(v)), M(v))
|
|
317
|
+
for (n = v.length; --n > -1; )
|
|
318
|
+
V.killChildTweensOf(v[n], P);
|
|
319
|
+
else {
|
|
320
|
+
e = [];
|
|
321
|
+
for (_ in p)
|
|
322
|
+
for (t = p[_].target.parentNode; t; )
|
|
323
|
+
t === v && (e = e.concat(p[_].tweens)), t = t.parentNode;
|
|
324
|
+
for (g = e.length, n = 0; g > n; n++)
|
|
325
|
+
P && e[n].totalTime(e[n].totalDuration()), e[n]._enabled(!1, !1);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
var L = function(v, P, e, t) {
|
|
330
|
+
P = P !== !1, e = e !== !1, t = t !== !1;
|
|
331
|
+
for (var _, n, g = st(t), p = P && e && t, T = g.length; --T > -1; )
|
|
332
|
+
n = g[T], (p || n instanceof Q || (_ = n.target === n.vars.onComplete) && e || P && !_) && n.paused(v);
|
|
333
|
+
};
|
|
334
|
+
return V.pauseAll = function(v, P, e) {
|
|
335
|
+
L(!0, v, P, e);
|
|
336
|
+
}, V.resumeAll = function(v, P, e) {
|
|
337
|
+
L(!1, v, P, e);
|
|
338
|
+
}, V.globalTimeScale = function(v) {
|
|
339
|
+
var P = Y._rootTimeline, e = it.ticker.time;
|
|
340
|
+
return arguments.length ? (v = v || H, P._startTime = e - (e - P._startTime) * P._timeScale / v, P = Y._rootFramesTimeline, e = it.ticker.frame, P._startTime = e - (e - P._startTime) * P._timeScale / v, P._timeScale = Y._rootTimeline._timeScale = v, v) : P._timeScale;
|
|
341
|
+
}, W.progress = function(v, P) {
|
|
342
|
+
return arguments.length ? this.totalTime(
|
|
343
|
+
this.duration() * (this._yoyo && 1 & this._cycle ? 1 - v : v) + this._cycle * (this._duration + this._repeatDelay),
|
|
344
|
+
P
|
|
345
|
+
) : this._time / this.duration();
|
|
346
|
+
}, W.totalProgress = function(v, P) {
|
|
347
|
+
return arguments.length ? this.totalTime(this.totalDuration() * v, P) : this._totalTime / this.totalDuration();
|
|
348
|
+
}, W.time = function(v, P) {
|
|
349
|
+
return arguments.length ? (this._dirty && this.totalDuration(), v > this._duration && (v = this._duration), this._yoyo && 1 & this._cycle ? v = this._duration - v + this._cycle * (this._duration + this._repeatDelay) : this._repeat !== 0 && (v += this._cycle * (this._duration + this._repeatDelay)), this.totalTime(v, P)) : this._time;
|
|
350
|
+
}, W.duration = function(v) {
|
|
351
|
+
return arguments.length ? Y.prototype.duration.call(this, v) : this._duration;
|
|
352
|
+
}, W.totalDuration = function(v) {
|
|
353
|
+
return arguments.length ? this._repeat === -1 ? this : this.duration(
|
|
354
|
+
(v - this._repeat * this._repeatDelay) / (this._repeat + 1)
|
|
355
|
+
) : (this._dirty && (this._totalDuration = this._repeat === -1 ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat, this._dirty = !1), this._totalDuration);
|
|
356
|
+
}, W.repeat = function(v) {
|
|
357
|
+
return arguments.length ? (this._repeat = v, this._uncache(!0)) : this._repeat;
|
|
358
|
+
}, W.repeatDelay = function(v) {
|
|
359
|
+
return arguments.length ? (this._repeatDelay = v, this._uncache(!0)) : this._repeatDelay;
|
|
360
|
+
}, W.yoyo = function(v) {
|
|
361
|
+
return arguments.length ? (this._yoyo = v, this) : this._yoyo;
|
|
362
|
+
}, V;
|
|
363
|
+
},
|
|
364
|
+
!0
|
|
365
|
+
), Dt._gsDefine(
|
|
366
|
+
"TimelineLite",
|
|
367
|
+
["core.Animation", "core.SimpleTimeline", "TweenLite"],
|
|
368
|
+
function(Y, Q, it) {
|
|
369
|
+
var ut = function(e) {
|
|
370
|
+
Q.call(this, e), this._labels = {}, this.autoRemoveChildren = this.vars.autoRemoveChildren === !0, this.smoothChildTiming = this.vars.smoothChildTiming === !0, this._sortChildren = !0, this._onUpdate = this.vars.onUpdate;
|
|
371
|
+
var t, _, n = this.vars;
|
|
372
|
+
for (_ in n)
|
|
373
|
+
t = n[_], S(t) && t.join("").indexOf("{self}") !== -1 && (n[_] = this._swapSelfInParams(t));
|
|
374
|
+
S(n.tweens) && this.add(n.tweens, 0, n.align, n.stagger);
|
|
375
|
+
}, z = 1e-10, V = it._internals, H = ut._internals = {}, dt = V.isSelector, S = V.isArray, M = V.lazyTweens, W = V.lazyRender, F = Dt._gsDefine.globals, $ = function(e) {
|
|
376
|
+
var t, _ = {};
|
|
377
|
+
for (t in e)
|
|
378
|
+
_[t] = e[t];
|
|
379
|
+
return _;
|
|
380
|
+
}, st = function(e, t, _) {
|
|
381
|
+
var n, g, p = e.cycle;
|
|
382
|
+
for (n in p)
|
|
383
|
+
g = p[n], e[n] = typeof g == "function" ? g(_, t[_]) : g[_ % g.length];
|
|
384
|
+
delete e.cycle;
|
|
385
|
+
}, L = H.pauseCallback = function() {
|
|
386
|
+
}, v = function(e) {
|
|
387
|
+
var t, _ = [], n = e.length;
|
|
388
|
+
for (t = 0; t !== n; _.push(e[t++]))
|
|
389
|
+
;
|
|
390
|
+
return _;
|
|
391
|
+
}, P = ut.prototype = new Q();
|
|
392
|
+
return ut.version = "2.0.2", P.constructor = ut, P.kill()._gc = P._forcingPlayhead = P._hasPause = !1, P.to = function(e, t, _, n) {
|
|
393
|
+
var g = _.repeat && F.TweenMax || it;
|
|
394
|
+
return t ? this.add(new g(e, t, _), n) : this.set(e, _, n);
|
|
395
|
+
}, P.from = function(e, t, _, n) {
|
|
396
|
+
return this.add((_.repeat && F.TweenMax || it).from(e, t, _), n);
|
|
397
|
+
}, P.fromTo = function(e, t, _, n, g) {
|
|
398
|
+
var p = n.repeat && F.TweenMax || it;
|
|
399
|
+
return t ? this.add(p.fromTo(e, t, _, n), g) : this.set(e, n, g);
|
|
400
|
+
}, P.staggerTo = function(e, t, _, n, g, p, T, O) {
|
|
401
|
+
var D, R, Z = new ut({
|
|
402
|
+
onComplete: p,
|
|
403
|
+
onCompleteParams: T,
|
|
404
|
+
callbackScope: O,
|
|
405
|
+
smoothChildTiming: this.smoothChildTiming
|
|
406
|
+
}), U = _.cycle;
|
|
407
|
+
for (typeof e == "string" && (e = it.selector(e) || e), e = e || [], dt(e) && (e = v(e)), n = n || 0, 0 > n && (e = v(e), e.reverse(), n *= -1), R = 0; R < e.length; R++)
|
|
408
|
+
D = $(_), D.startAt && (D.startAt = $(D.startAt), D.startAt.cycle && st(D.startAt, e, R)), U && (st(D, e, R), D.duration != null && (t = D.duration, delete D.duration)), Z.to(e[R], t, D, R * n);
|
|
409
|
+
return this.add(Z, g);
|
|
410
|
+
}, P.staggerFrom = function(e, t, _, n, g, p, T, O) {
|
|
411
|
+
return _.immediateRender = _.immediateRender != 0, _.runBackwards = !0, this.staggerTo(e, t, _, n, g, p, T, O);
|
|
412
|
+
}, P.staggerFromTo = function(e, t, _, n, g, p, T, O, D) {
|
|
413
|
+
return n.startAt = _, n.immediateRender = n.immediateRender != 0 && _.immediateRender != 0, this.staggerTo(e, t, n, g, p, T, O, D);
|
|
414
|
+
}, P.call = function(e, t, _, n) {
|
|
415
|
+
return this.add(it.delayedCall(0, e, t, _), n);
|
|
416
|
+
}, P.set = function(e, t, _) {
|
|
417
|
+
return _ = this._parseTimeOrLabel(_, 0, !0), t.immediateRender == null && (t.immediateRender = _ === this._time && !this._paused), this.add(new it(e, 0, t), _);
|
|
418
|
+
}, ut.exportRoot = function(e, t) {
|
|
419
|
+
e = e || {}, e.smoothChildTiming == null && (e.smoothChildTiming = !0);
|
|
420
|
+
var _, n, g, p, T = new ut(e), O = T._timeline;
|
|
421
|
+
for (t == null && (t = !0), O._remove(T, !0), T._startTime = 0, T._rawPrevTime = T._time = T._totalTime = O._time, g = O._first; g; )
|
|
422
|
+
p = g._next, t && g instanceof it && g.target === g.vars.onComplete || (n = g._startTime - g._delay, 0 > n && (_ = 1), T.add(g, n)), g = p;
|
|
423
|
+
return O.add(T, 0), _ && T.totalDuration(), T;
|
|
424
|
+
}, P.add = function(e, t, _, n) {
|
|
425
|
+
var g, p, T, O, D, R;
|
|
426
|
+
if (typeof t != "number" && (t = this._parseTimeOrLabel(t, 0, !0, e)), !(e instanceof Y)) {
|
|
427
|
+
if (e instanceof Array || e && e.push && S(e)) {
|
|
428
|
+
for (_ = _ || "normal", n = n || 0, g = t, p = e.length, T = 0; p > T; T++)
|
|
429
|
+
S(O = e[T]) && (O = new ut({ tweens: O })), this.add(O, g), typeof O != "string" && typeof O != "function" && (_ === "sequence" ? g = O._startTime + O.totalDuration() / O._timeScale : _ === "start" && (O._startTime -= O.delay())), g += n;
|
|
430
|
+
return this._uncache(!0);
|
|
431
|
+
}
|
|
432
|
+
if (typeof e == "string")
|
|
433
|
+
return this.addLabel(e, t);
|
|
434
|
+
if (typeof e != "function")
|
|
435
|
+
throw "Cannot add " + e + " into the timeline; it is not a tween, timeline, function, or string.";
|
|
436
|
+
e = it.delayedCall(0, e);
|
|
437
|
+
}
|
|
438
|
+
if (Q.prototype.add.call(this, e, t), e._time && (g = Math.max(
|
|
439
|
+
0,
|
|
440
|
+
Math.min(
|
|
441
|
+
e.totalDuration(),
|
|
442
|
+
(this.rawTime() - e._startTime) * e._timeScale
|
|
443
|
+
)
|
|
444
|
+
), Math.abs(g - e._totalTime) > 1e-5 && e.render(g, !1, !1)), (this._gc || this._time === this._duration) && !this._paused && this._duration < this.duration())
|
|
445
|
+
for (D = this, R = D.rawTime() > e._startTime; D._timeline; )
|
|
446
|
+
R && D._timeline.smoothChildTiming ? D.totalTime(D._totalTime, !0) : D._gc && D._enabled(!0, !1), D = D._timeline;
|
|
447
|
+
return this;
|
|
448
|
+
}, P.remove = function(e) {
|
|
449
|
+
if (e instanceof Y) {
|
|
450
|
+
this._remove(e, !1);
|
|
451
|
+
var t = e._timeline = e.vars.useFrames ? Y._rootFramesTimeline : Y._rootTimeline;
|
|
452
|
+
return e._startTime = (e._paused ? e._pauseTime : t._time) - (e._reversed ? e.totalDuration() - e._totalTime : e._totalTime) / e._timeScale, this;
|
|
453
|
+
}
|
|
454
|
+
if (e instanceof Array || e && e.push && S(e)) {
|
|
455
|
+
for (var _ = e.length; --_ > -1; )
|
|
456
|
+
this.remove(e[_]);
|
|
457
|
+
return this;
|
|
458
|
+
}
|
|
459
|
+
return typeof e == "string" ? this.removeLabel(e) : this.kill(null, e);
|
|
460
|
+
}, P._remove = function(e, t) {
|
|
461
|
+
Q.prototype._remove.call(this, e, t);
|
|
462
|
+
var _ = this._last;
|
|
463
|
+
return _ ? this._time > this.duration() && (this._time = this._duration, this._totalTime = this._totalDuration) : this._time = this._totalTime = this._duration = this._totalDuration = 0, this;
|
|
464
|
+
}, P.append = function(e, t) {
|
|
465
|
+
return this.add(e, this._parseTimeOrLabel(null, t, !0, e));
|
|
466
|
+
}, P.insert = P.insertMultiple = function(e, t, _, n) {
|
|
467
|
+
return this.add(e, t || 0, _, n);
|
|
468
|
+
}, P.appendMultiple = function(e, t, _, n) {
|
|
469
|
+
return this.add(e, this._parseTimeOrLabel(null, t, !0, e), _, n);
|
|
470
|
+
}, P.addLabel = function(e, t) {
|
|
471
|
+
return this._labels[e] = this._parseTimeOrLabel(t), this;
|
|
472
|
+
}, P.addPause = function(e, t, _, n) {
|
|
473
|
+
var g = it.delayedCall(0, L, _, n || this);
|
|
474
|
+
return g.vars.onComplete = g.vars.onReverseComplete = t, g.data = "isPause", this._hasPause = !0, this.add(g, e);
|
|
475
|
+
}, P.removeLabel = function(e) {
|
|
476
|
+
return delete this._labels[e], this;
|
|
477
|
+
}, P.getLabelTime = function(e) {
|
|
478
|
+
return this._labels[e] != null ? this._labels[e] : -1;
|
|
479
|
+
}, P._parseTimeOrLabel = function(e, t, _, n) {
|
|
480
|
+
var g, p;
|
|
481
|
+
if (n instanceof Y && n.timeline === this)
|
|
482
|
+
this.remove(n);
|
|
483
|
+
else if (n && (n instanceof Array || n.push && S(n)))
|
|
484
|
+
for (p = n.length; --p > -1; )
|
|
485
|
+
n[p] instanceof Y && n[p].timeline === this && this.remove(n[p]);
|
|
486
|
+
if (g = typeof e != "number" || t ? this.duration() > 99999999999 ? this.recent().endTime(!1) : this._duration : 0, typeof t == "string")
|
|
487
|
+
return this._parseTimeOrLabel(
|
|
488
|
+
t,
|
|
489
|
+
_ && typeof e == "number" && this._labels[t] == null ? e - g : 0,
|
|
490
|
+
_
|
|
491
|
+
);
|
|
492
|
+
if (t = t || 0, typeof e != "string" || !isNaN(e) && this._labels[e] == null)
|
|
493
|
+
e == null && (e = g);
|
|
494
|
+
else {
|
|
495
|
+
if (p = e.indexOf("="), p === -1)
|
|
496
|
+
return this._labels[e] == null ? _ ? this._labels[e] = g + t : t : this._labels[e] + t;
|
|
497
|
+
t = parseInt(e.charAt(p - 1) + "1", 10) * Number(e.substr(p + 1)), e = p > 1 ? this._parseTimeOrLabel(e.substr(0, p - 1), 0, _) : g;
|
|
498
|
+
}
|
|
499
|
+
return Number(e) + t;
|
|
500
|
+
}, P.seek = function(e, t) {
|
|
501
|
+
return this.totalTime(
|
|
502
|
+
typeof e == "number" ? e : this._parseTimeOrLabel(e),
|
|
503
|
+
t !== !1
|
|
504
|
+
);
|
|
505
|
+
}, P.stop = function() {
|
|
506
|
+
return this.paused(!0);
|
|
507
|
+
}, P.gotoAndPlay = function(e, t) {
|
|
508
|
+
return this.play(e, t);
|
|
509
|
+
}, P.gotoAndStop = function(e, t) {
|
|
510
|
+
return this.pause(e, t);
|
|
511
|
+
}, P.render = function(e, t, _) {
|
|
512
|
+
this._gc && this._enabled(!0, !1);
|
|
513
|
+
var n, g, p, T, O, D, R, Z = this._time, U = this._dirty ? this.totalDuration() : this._totalDuration, K = this._startTime, tt = this._timeScale, mt = this._paused;
|
|
514
|
+
if (Z !== this._time && (e += this._time - Z), e >= U - 1e-7 && e >= 0)
|
|
515
|
+
this._totalTime = this._time = U, this._reversed || this._hasPausedChild() || (g = !0, T = "onComplete", O = !!this._timeline.autoRemoveChildren, this._duration === 0 && (0 >= e && e >= -1e-7 || this._rawPrevTime < 0 || this._rawPrevTime === z) && this._rawPrevTime !== e && this._first && (O = !0, this._rawPrevTime > z && (T = "onReverseComplete"))), this._rawPrevTime = this._duration || !t || e || this._rawPrevTime === e ? e : z, e = U + 1e-4;
|
|
516
|
+
else if (1e-7 > e)
|
|
517
|
+
if (this._totalTime = this._time = 0, (Z !== 0 || this._duration === 0 && this._rawPrevTime !== z && (this._rawPrevTime > 0 || 0 > e && this._rawPrevTime >= 0)) && (T = "onReverseComplete", g = this._reversed), 0 > e)
|
|
518
|
+
this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (O = g = !0, T = "onReverseComplete") : this._rawPrevTime >= 0 && this._first && (O = !0), this._rawPrevTime = e;
|
|
519
|
+
else {
|
|
520
|
+
if (this._rawPrevTime = this._duration || !t || e || this._rawPrevTime === e ? e : z, e === 0 && g)
|
|
521
|
+
for (n = this._first; n && n._startTime === 0; )
|
|
522
|
+
n._duration || (g = !1), n = n._next;
|
|
523
|
+
e = 0, this._initted || (O = !0);
|
|
524
|
+
}
|
|
525
|
+
else {
|
|
526
|
+
if (this._hasPause && !this._forcingPlayhead && !t) {
|
|
527
|
+
if (e >= Z)
|
|
528
|
+
for (n = this._first; n && n._startTime <= e && !D; )
|
|
529
|
+
n._duration || n.data !== "isPause" || n.ratio || n._startTime === 0 && this._rawPrevTime === 0 || (D = n), n = n._next;
|
|
530
|
+
else
|
|
531
|
+
for (n = this._last; n && n._startTime >= e && !D; )
|
|
532
|
+
n._duration || n.data === "isPause" && n._rawPrevTime > 0 && (D = n), n = n._prev;
|
|
533
|
+
D && (this._time = e = D._startTime, this._totalTime = e + this._cycle * (this._totalDuration + this._repeatDelay));
|
|
534
|
+
}
|
|
535
|
+
this._totalTime = this._time = this._rawPrevTime = e;
|
|
536
|
+
}
|
|
537
|
+
if (this._time !== Z && this._first || _ || O || D) {
|
|
538
|
+
if (this._initted || (this._initted = !0), this._active || !this._paused && this._time !== Z && e > 0 && (this._active = !0), Z === 0 && this.vars.onStart && (this._time === 0 && this._duration || t || this._callback("onStart")), R = this._time, R >= Z)
|
|
539
|
+
for (n = this._first; n && (p = n._next, R === this._time && (!this._paused || mt)); )
|
|
540
|
+
(n._active || n._startTime <= R && !n._paused && !n._gc) && (D === n && this.pause(), n._reversed ? n.render(
|
|
541
|
+
(n._dirty ? n.totalDuration() : n._totalDuration) - (e - n._startTime) * n._timeScale,
|
|
542
|
+
t,
|
|
543
|
+
_
|
|
544
|
+
) : n.render((e - n._startTime) * n._timeScale, t, _)), n = p;
|
|
545
|
+
else
|
|
546
|
+
for (n = this._last; n && (p = n._prev, R === this._time && (!this._paused || mt)); ) {
|
|
547
|
+
if (n._active || n._startTime <= Z && !n._paused && !n._gc) {
|
|
548
|
+
if (D === n) {
|
|
549
|
+
for (D = n._prev; D && D.endTime() > this._time; )
|
|
550
|
+
D.render(
|
|
551
|
+
D._reversed ? D.totalDuration() - (e - D._startTime) * D._timeScale : (e - D._startTime) * D._timeScale,
|
|
552
|
+
t,
|
|
553
|
+
_
|
|
554
|
+
), D = D._prev;
|
|
555
|
+
D = null, this.pause();
|
|
556
|
+
}
|
|
557
|
+
n._reversed ? n.render(
|
|
558
|
+
(n._dirty ? n.totalDuration() : n._totalDuration) - (e - n._startTime) * n._timeScale,
|
|
559
|
+
t,
|
|
560
|
+
_
|
|
561
|
+
) : n.render((e - n._startTime) * n._timeScale, t, _);
|
|
562
|
+
}
|
|
563
|
+
n = p;
|
|
564
|
+
}
|
|
565
|
+
this._onUpdate && (t || (M.length && W(), this._callback("onUpdate"))), T && (this._gc || (K === this._startTime || tt !== this._timeScale) && (this._time === 0 || U >= this.totalDuration()) && (g && (M.length && W(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !t && this.vars[T] && this._callback(T)));
|
|
566
|
+
}
|
|
567
|
+
}, P._hasPausedChild = function() {
|
|
568
|
+
for (var e = this._first; e; ) {
|
|
569
|
+
if (e._paused || e instanceof ut && e._hasPausedChild())
|
|
570
|
+
return !0;
|
|
571
|
+
e = e._next;
|
|
572
|
+
}
|
|
573
|
+
return !1;
|
|
574
|
+
}, P.getChildren = function(e, t, _, n) {
|
|
575
|
+
n = n || -9999999999;
|
|
576
|
+
for (var g = [], p = this._first, T = 0; p; )
|
|
577
|
+
p._startTime < n || (p instanceof it ? t !== !1 && (g[T++] = p) : (_ !== !1 && (g[T++] = p), e !== !1 && (g = g.concat(p.getChildren(!0, t, _)), T = g.length))), p = p._next;
|
|
578
|
+
return g;
|
|
579
|
+
}, P.getTweensOf = function(e, t) {
|
|
580
|
+
var _, n, g = this._gc, p = [], T = 0;
|
|
581
|
+
for (g && this._enabled(!0, !0), _ = it.getTweensOf(e), n = _.length; --n > -1; )
|
|
582
|
+
(_[n].timeline === this || t && this._contains(_[n])) && (p[T++] = _[n]);
|
|
583
|
+
return g && this._enabled(!1, !0), p;
|
|
584
|
+
}, P.recent = function() {
|
|
585
|
+
return this._recent;
|
|
586
|
+
}, P._contains = function(e) {
|
|
587
|
+
for (var t = e.timeline; t; ) {
|
|
588
|
+
if (t === this)
|
|
589
|
+
return !0;
|
|
590
|
+
t = t.timeline;
|
|
591
|
+
}
|
|
592
|
+
return !1;
|
|
593
|
+
}, P.shiftChildren = function(e, t, _) {
|
|
594
|
+
_ = _ || 0;
|
|
595
|
+
for (var n, g = this._first, p = this._labels; g; )
|
|
596
|
+
g._startTime >= _ && (g._startTime += e), g = g._next;
|
|
597
|
+
if (t)
|
|
598
|
+
for (n in p)
|
|
599
|
+
p[n] >= _ && (p[n] += e);
|
|
600
|
+
return this._uncache(!0);
|
|
601
|
+
}, P._kill = function(e, t) {
|
|
602
|
+
if (!e && !t)
|
|
603
|
+
return this._enabled(!1, !1);
|
|
604
|
+
for (var _ = t ? this.getTweensOf(t) : this.getChildren(!0, !0, !1), n = _.length, g = !1; --n > -1; )
|
|
605
|
+
_[n]._kill(e, t) && (g = !0);
|
|
606
|
+
return g;
|
|
607
|
+
}, P.clear = function(e) {
|
|
608
|
+
var t = this.getChildren(!1, !0, !0), _ = t.length;
|
|
609
|
+
for (this._time = this._totalTime = 0; --_ > -1; )
|
|
610
|
+
t[_]._enabled(!1, !1);
|
|
611
|
+
return e !== !1 && (this._labels = {}), this._uncache(!0);
|
|
612
|
+
}, P.invalidate = function() {
|
|
613
|
+
for (var e = this._first; e; )
|
|
614
|
+
e.invalidate(), e = e._next;
|
|
615
|
+
return Y.prototype.invalidate.call(this);
|
|
616
|
+
}, P._enabled = function(e, t) {
|
|
617
|
+
if (e === this._gc)
|
|
618
|
+
for (var _ = this._first; _; )
|
|
619
|
+
_._enabled(e, !0), _ = _._next;
|
|
620
|
+
return Q.prototype._enabled.call(this, e, t);
|
|
621
|
+
}, P.totalTime = function(e, t, _) {
|
|
622
|
+
this._forcingPlayhead = !0;
|
|
623
|
+
var n = Y.prototype.totalTime.apply(this, arguments);
|
|
624
|
+
return this._forcingPlayhead = !1, n;
|
|
625
|
+
}, P.duration = function(e) {
|
|
626
|
+
return arguments.length ? (this.duration() !== 0 && e !== 0 && this.timeScale(this._duration / e), this) : (this._dirty && this.totalDuration(), this._duration);
|
|
627
|
+
}, P.totalDuration = function(e) {
|
|
628
|
+
if (!arguments.length) {
|
|
629
|
+
if (this._dirty) {
|
|
630
|
+
for (var t, _, n = 0, g = this._last, p = 999999999999; g; )
|
|
631
|
+
t = g._prev, g._dirty && g.totalDuration(), g._startTime > p && this._sortChildren && !g._paused && !this._calculatingDuration ? (this._calculatingDuration = 1, this.add(g, g._startTime - g._delay), this._calculatingDuration = 0) : p = g._startTime, g._startTime < 0 && !g._paused && (n -= g._startTime, this._timeline.smoothChildTiming && (this._startTime += g._startTime / this._timeScale, this._time -= g._startTime, this._totalTime -= g._startTime, this._rawPrevTime -= g._startTime), this.shiftChildren(-g._startTime, !1, -9999999999), p = 0), _ = g._startTime + g._totalDuration / g._timeScale, _ > n && (n = _), g = t;
|
|
632
|
+
this._duration = this._totalDuration = n, this._dirty = !1;
|
|
633
|
+
}
|
|
634
|
+
return this._totalDuration;
|
|
635
|
+
}
|
|
636
|
+
return e && this.totalDuration() ? this.timeScale(this._totalDuration / e) : this;
|
|
637
|
+
}, P.paused = function(e) {
|
|
638
|
+
if (!e)
|
|
639
|
+
for (var t = this._first, _ = this._time; t; )
|
|
640
|
+
t._startTime === _ && t.data === "isPause" && (t._rawPrevTime = 0), t = t._next;
|
|
641
|
+
return Y.prototype.paused.apply(this, arguments);
|
|
642
|
+
}, P.usesFrames = function() {
|
|
643
|
+
for (var e = this._timeline; e._timeline; )
|
|
644
|
+
e = e._timeline;
|
|
645
|
+
return e === Y._rootFramesTimeline;
|
|
646
|
+
}, P.rawTime = function(e) {
|
|
647
|
+
return e && (this._paused || this._repeat && this.time() > 0 && this.totalProgress() < 1) ? this._totalTime % (this._duration + this._repeatDelay) : this._paused ? this._totalTime : (this._timeline.rawTime(e) - this._startTime) * this._timeScale;
|
|
648
|
+
}, ut;
|
|
649
|
+
},
|
|
650
|
+
!0
|
|
651
|
+
), Dt._gsDefine(
|
|
652
|
+
"TimelineMax",
|
|
653
|
+
["TimelineLite", "TweenLite", "easing.Ease"],
|
|
654
|
+
function(Y, Q, it) {
|
|
655
|
+
var ut = function(F) {
|
|
656
|
+
Y.call(this, F), this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._cycle = 0, this._yoyo = this.vars.yoyo === !0, this._dirty = !0;
|
|
657
|
+
}, z = 1e-10, V = Q._internals, H = V.lazyTweens, dt = V.lazyRender, S = Dt._gsDefine.globals, M = new it(null, null, 1, 0), W = ut.prototype = new Y();
|
|
658
|
+
return W.constructor = ut, W.kill()._gc = !1, ut.version = "2.0.2", W.invalidate = function() {
|
|
659
|
+
return this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._uncache(!0), Y.prototype.invalidate.call(this);
|
|
660
|
+
}, W.addCallback = function(F, $, st, L) {
|
|
661
|
+
return this.add(Q.delayedCall(0, F, st, L), $);
|
|
662
|
+
}, W.removeCallback = function(F, $) {
|
|
663
|
+
if (F)
|
|
664
|
+
if ($ == null)
|
|
665
|
+
this._kill(null, F);
|
|
666
|
+
else
|
|
667
|
+
for (var st = this.getTweensOf(F, !1), L = st.length, v = this._parseTimeOrLabel($); --L > -1; )
|
|
668
|
+
st[L]._startTime === v && st[L]._enabled(!1, !1);
|
|
669
|
+
return this;
|
|
670
|
+
}, W.removePause = function(F) {
|
|
671
|
+
return this.removeCallback(Y._internals.pauseCallback, F);
|
|
672
|
+
}, W.tweenTo = function(F, $) {
|
|
673
|
+
$ = $ || {};
|
|
674
|
+
var st, L, v, P = {
|
|
675
|
+
ease: M,
|
|
676
|
+
useFrames: this.usesFrames(),
|
|
677
|
+
immediateRender: !1,
|
|
678
|
+
lazy: !1
|
|
679
|
+
}, e = $.repeat && S.TweenMax || Q;
|
|
680
|
+
for (L in $)
|
|
681
|
+
P[L] = $[L];
|
|
682
|
+
return P.time = this._parseTimeOrLabel(F), st = Math.abs(Number(P.time) - this._time) / this._timeScale || 1e-3, v = new e(this, st, P), P.onStart = function() {
|
|
683
|
+
v.target.paused(!0), v.vars.time === v.target.time() || st !== v.duration() || v.isFromTo || v.duration(
|
|
684
|
+
Math.abs(v.vars.time - v.target.time()) / v.target._timeScale
|
|
685
|
+
).render(v.time(), !0, !0), $.onStart && $.onStart.apply(
|
|
686
|
+
$.onStartScope || $.callbackScope || v,
|
|
687
|
+
$.onStartParams || []
|
|
688
|
+
);
|
|
689
|
+
}, v;
|
|
690
|
+
}, W.tweenFromTo = function(F, $, st) {
|
|
691
|
+
st = st || {}, F = this._parseTimeOrLabel(F), st.startAt = {
|
|
692
|
+
onComplete: this.seek,
|
|
693
|
+
onCompleteParams: [F],
|
|
694
|
+
callbackScope: this
|
|
695
|
+
}, st.immediateRender = st.immediateRender !== !1;
|
|
696
|
+
var L = this.tweenTo($, st);
|
|
697
|
+
return L.isFromTo = 1, L.duration(Math.abs(L.vars.time - F) / this._timeScale || 1e-3);
|
|
698
|
+
}, W.render = function(F, $, st) {
|
|
699
|
+
this._gc && this._enabled(!0, !1);
|
|
700
|
+
var L, v, P, e, t, _, n, g, p = this._time, T = this._dirty ? this.totalDuration() : this._totalDuration, O = this._duration, D = this._totalTime, R = this._startTime, Z = this._timeScale, U = this._rawPrevTime, K = this._paused, tt = this._cycle;
|
|
701
|
+
if (p !== this._time && (F += this._time - p), F >= T - 1e-7 && F >= 0)
|
|
702
|
+
this._locked || (this._totalTime = T, this._cycle = this._repeat), this._reversed || this._hasPausedChild() || (v = !0, e = "onComplete", t = !!this._timeline.autoRemoveChildren, this._duration === 0 && (0 >= F && F >= -1e-7 || 0 > U || U === z) && U !== F && this._first && (t = !0, U > z && (e = "onReverseComplete"))), this._rawPrevTime = this._duration || !$ || F || this._rawPrevTime === F ? F : z, this._yoyo && 1 & this._cycle ? this._time = F = 0 : (this._time = O, F = O + 1e-4);
|
|
703
|
+
else if (1e-7 > F)
|
|
704
|
+
if (this._locked || (this._totalTime = this._cycle = 0), this._time = 0, (p !== 0 || O === 0 && U !== z && (U > 0 || 0 > F && U >= 0) && !this._locked) && (e = "onReverseComplete", v = this._reversed), 0 > F)
|
|
705
|
+
this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (t = v = !0, e = "onReverseComplete") : U >= 0 && this._first && (t = !0), this._rawPrevTime = F;
|
|
706
|
+
else {
|
|
707
|
+
if (this._rawPrevTime = O || !$ || F || this._rawPrevTime === F ? F : z, F === 0 && v)
|
|
708
|
+
for (L = this._first; L && L._startTime === 0; )
|
|
709
|
+
L._duration || (v = !1), L = L._next;
|
|
710
|
+
F = 0, this._initted || (t = !0);
|
|
711
|
+
}
|
|
712
|
+
else if (O === 0 && 0 > U && (t = !0), this._time = this._rawPrevTime = F, this._locked || (this._totalTime = F, this._repeat !== 0 && (_ = O + this._repeatDelay, this._cycle = this._totalTime / _ >> 0, this._cycle !== 0 && this._cycle === this._totalTime / _ && F >= D && this._cycle--, this._time = this._totalTime - this._cycle * _, this._yoyo && 1 & this._cycle && (this._time = O - this._time), this._time > O ? (this._time = O, F = O + 1e-4) : this._time < 0 ? this._time = F = 0 : F = this._time)), this._hasPause && !this._forcingPlayhead && !$) {
|
|
713
|
+
if (F = this._time, F >= p || this._repeat && tt !== this._cycle)
|
|
714
|
+
for (L = this._first; L && L._startTime <= F && !n; )
|
|
715
|
+
L._duration || L.data !== "isPause" || L.ratio || L._startTime === 0 && this._rawPrevTime === 0 || (n = L), L = L._next;
|
|
716
|
+
else
|
|
717
|
+
for (L = this._last; L && L._startTime >= F && !n; )
|
|
718
|
+
L._duration || L.data === "isPause" && L._rawPrevTime > 0 && (n = L), L = L._prev;
|
|
719
|
+
n && n._startTime < O && (this._time = F = n._startTime, this._totalTime = F + this._cycle * (this._totalDuration + this._repeatDelay));
|
|
720
|
+
}
|
|
721
|
+
if (this._cycle !== tt && !this._locked) {
|
|
722
|
+
var mt = this._yoyo && (1 & tt) !== 0, ot = mt === (this._yoyo && (1 & this._cycle) !== 0), J = this._totalTime, gt = this._cycle, Yt = this._rawPrevTime, yt = this._time;
|
|
723
|
+
if (this._totalTime = tt * O, this._cycle < tt ? mt = !mt : this._totalTime += O, this._time = p, this._rawPrevTime = O === 0 ? U - 1e-4 : U, this._cycle = tt, this._locked = !0, p = mt ? 0 : O, this.render(p, $, O === 0), $ || this._gc || this.vars.onRepeat && (this._cycle = gt, this._locked = !1, this._callback("onRepeat")), p !== this._time || (ot && (this._cycle = tt, this._locked = !0, p = mt ? O + 1e-4 : -1e-4, this.render(p, !0, !1)), this._locked = !1, this._paused && !K))
|
|
724
|
+
return;
|
|
725
|
+
this._time = yt, this._totalTime = J, this._cycle = gt, this._rawPrevTime = Yt;
|
|
726
|
+
}
|
|
727
|
+
if (!(this._time !== p && this._first || st || t || n))
|
|
728
|
+
return void (D !== this._totalTime && this._onUpdate && ($ || this._callback("onUpdate")));
|
|
729
|
+
if (this._initted || (this._initted = !0), this._active || !this._paused && this._totalTime !== D && F > 0 && (this._active = !0), D === 0 && this.vars.onStart && (this._totalTime === 0 && this._totalDuration || $ || this._callback("onStart")), g = this._time, g >= p)
|
|
730
|
+
for (L = this._first; L && (P = L._next, g === this._time && (!this._paused || K)); )
|
|
731
|
+
(L._active || L._startTime <= this._time && !L._paused && !L._gc) && (n === L && this.pause(), L._reversed ? L.render(
|
|
732
|
+
(L._dirty ? L.totalDuration() : L._totalDuration) - (F - L._startTime) * L._timeScale,
|
|
733
|
+
$,
|
|
734
|
+
st
|
|
735
|
+
) : L.render((F - L._startTime) * L._timeScale, $, st)), L = P;
|
|
736
|
+
else
|
|
737
|
+
for (L = this._last; L && (P = L._prev, g === this._time && (!this._paused || K)); ) {
|
|
738
|
+
if (L._active || L._startTime <= p && !L._paused && !L._gc) {
|
|
739
|
+
if (n === L) {
|
|
740
|
+
for (n = L._prev; n && n.endTime() > this._time; )
|
|
741
|
+
n.render(
|
|
742
|
+
n._reversed ? n.totalDuration() - (F - n._startTime) * n._timeScale : (F - n._startTime) * n._timeScale,
|
|
743
|
+
$,
|
|
744
|
+
st
|
|
745
|
+
), n = n._prev;
|
|
746
|
+
n = null, this.pause();
|
|
747
|
+
}
|
|
748
|
+
L._reversed ? L.render(
|
|
749
|
+
(L._dirty ? L.totalDuration() : L._totalDuration) - (F - L._startTime) * L._timeScale,
|
|
750
|
+
$,
|
|
751
|
+
st
|
|
752
|
+
) : L.render((F - L._startTime) * L._timeScale, $, st);
|
|
753
|
+
}
|
|
754
|
+
L = P;
|
|
755
|
+
}
|
|
756
|
+
this._onUpdate && ($ || (H.length && dt(), this._callback("onUpdate"))), e && (this._locked || this._gc || (R === this._startTime || Z !== this._timeScale) && (this._time === 0 || T >= this.totalDuration()) && (v && (H.length && dt(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !$ && this.vars[e] && this._callback(e)));
|
|
757
|
+
}, W.getActive = function(F, $, st) {
|
|
758
|
+
F == null && (F = !0), $ == null && ($ = !0), st == null && (st = !1);
|
|
759
|
+
var L, v, P = [], e = this.getChildren(F, $, st), t = 0, _ = e.length;
|
|
760
|
+
for (L = 0; _ > L; L++)
|
|
761
|
+
v = e[L], v.isActive() && (P[t++] = v);
|
|
762
|
+
return P;
|
|
763
|
+
}, W.getLabelAfter = function(F) {
|
|
764
|
+
F || F !== 0 && (F = this._time);
|
|
765
|
+
var $, st = this.getLabelsArray(), L = st.length;
|
|
766
|
+
for ($ = 0; L > $; $++)
|
|
767
|
+
if (st[$].time > F)
|
|
768
|
+
return st[$].name;
|
|
769
|
+
return null;
|
|
770
|
+
}, W.getLabelBefore = function(F) {
|
|
771
|
+
F == null && (F = this._time);
|
|
772
|
+
for (var $ = this.getLabelsArray(), st = $.length; --st > -1; )
|
|
773
|
+
if ($[st].time < F)
|
|
774
|
+
return $[st].name;
|
|
775
|
+
return null;
|
|
776
|
+
}, W.getLabelsArray = function() {
|
|
777
|
+
var F, $ = [], st = 0;
|
|
778
|
+
for (F in this._labels)
|
|
779
|
+
$[st++] = { time: this._labels[F], name: F };
|
|
780
|
+
return $.sort(function(L, v) {
|
|
781
|
+
return L.time - v.time;
|
|
782
|
+
}), $;
|
|
783
|
+
}, W.invalidate = function() {
|
|
784
|
+
return this._locked = !1, Y.prototype.invalidate.call(this);
|
|
785
|
+
}, W.progress = function(F, $) {
|
|
786
|
+
return arguments.length ? this.totalTime(
|
|
787
|
+
this.duration() * (this._yoyo && 1 & this._cycle ? 1 - F : F) + this._cycle * (this._duration + this._repeatDelay),
|
|
788
|
+
$
|
|
789
|
+
) : this._time / this.duration() || 0;
|
|
790
|
+
}, W.totalProgress = function(F, $) {
|
|
791
|
+
return arguments.length ? this.totalTime(this.totalDuration() * F, $) : this._totalTime / this.totalDuration() || 0;
|
|
792
|
+
}, W.totalDuration = function(F) {
|
|
793
|
+
return arguments.length ? this._repeat !== -1 && F ? this.timeScale(this.totalDuration() / F) : this : (this._dirty && (Y.prototype.totalDuration.call(this), this._totalDuration = this._repeat === -1 ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat), this._totalDuration);
|
|
794
|
+
}, W.time = function(F, $) {
|
|
795
|
+
return arguments.length ? (this._dirty && this.totalDuration(), F > this._duration && (F = this._duration), this._yoyo && 1 & this._cycle ? F = this._duration - F + this._cycle * (this._duration + this._repeatDelay) : this._repeat !== 0 && (F += this._cycle * (this._duration + this._repeatDelay)), this.totalTime(F, $)) : this._time;
|
|
796
|
+
}, W.repeat = function(F) {
|
|
797
|
+
return arguments.length ? (this._repeat = F, this._uncache(!0)) : this._repeat;
|
|
798
|
+
}, W.repeatDelay = function(F) {
|
|
799
|
+
return arguments.length ? (this._repeatDelay = F, this._uncache(!0)) : this._repeatDelay;
|
|
800
|
+
}, W.yoyo = function(F) {
|
|
801
|
+
return arguments.length ? (this._yoyo = F, this) : this._yoyo;
|
|
802
|
+
}, W.currentLabel = function(F) {
|
|
803
|
+
return arguments.length ? this.seek(F, !0) : this.getLabelBefore(this._time + 1e-8);
|
|
804
|
+
}, ut;
|
|
805
|
+
},
|
|
806
|
+
!0
|
|
807
|
+
), function() {
|
|
808
|
+
var Y = 180 / Math.PI, Q = [], it = [], ut = [], z = {}, V = Dt._gsDefine.globals, H = function(e, t, _, n) {
|
|
809
|
+
_ === n && (_ = n - (n - t) / 1e6), e === t && (t = e + (_ - e) / 1e6), this.a = e, this.b = t, this.c = _, this.d = n, this.da = n - e, this.ca = _ - e, this.ba = t - e;
|
|
810
|
+
}, dt = ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,", S = function(e, t, _, n) {
|
|
811
|
+
var g = { a: e }, p = {}, T = {}, O = { c: n }, D = (e + t) / 2, R = (t + _) / 2, Z = (_ + n) / 2, U = (D + R) / 2, K = (R + Z) / 2, tt = (K - U) / 8;
|
|
812
|
+
return g.b = D + (e - D) / 4, p.b = U + tt, g.c = p.a = (g.b + p.b) / 2, p.c = T.a = (U + K) / 2, T.b = K - tt, O.b = Z + (n - Z) / 4, T.c = O.a = (T.b + O.b) / 2, [g, p, T, O];
|
|
813
|
+
}, M = function(e, t, _, n, g) {
|
|
814
|
+
var p, T, O, D, R, Z, U, K, tt, mt, ot, J, gt, Yt = e.length - 1, yt = 0, At = e[0].a;
|
|
815
|
+
for (p = 0; Yt > p; p++)
|
|
816
|
+
R = e[yt], T = R.a, O = R.d, D = e[yt + 1].d, g ? (ot = Q[p], J = it[p], gt = (J + ot) * t * 0.25 / (n ? 0.5 : ut[p] || 0.5), Z = O - (O - T) * (n ? 0.5 * t : ot !== 0 ? gt / ot : 0), U = O + (D - O) * (n ? 0.5 * t : J !== 0 ? gt / J : 0), K = O - (Z + ((U - Z) * (3 * ot / (ot + J) + 0.5) / 4 || 0))) : (Z = O - (O - T) * t * 0.5, U = O + (D - O) * t * 0.5, K = O - (Z + U) / 2), Z += K, U += K, R.c = tt = Z, p !== 0 ? R.b = At : R.b = At = R.a + 0.6 * (R.c - R.a), R.da = O - T, R.ca = tt - T, R.ba = At - T, _ ? (mt = S(T, At, tt, O), e.splice(yt, 1, mt[0], mt[1], mt[2], mt[3]), yt += 4) : yt++, At = U;
|
|
817
|
+
R = e[yt], R.b = At, R.c = At + 0.4 * (R.d - At), R.da = R.d - R.a, R.ca = R.c - R.a, R.ba = At - R.a, _ && (mt = S(R.a, At, R.c, R.d), e.splice(yt, 1, mt[0], mt[1], mt[2], mt[3]));
|
|
818
|
+
}, W = function(e, t, _, n) {
|
|
819
|
+
var g, p, T, O, D, R, Z = [];
|
|
820
|
+
if (n)
|
|
821
|
+
for (e = [n].concat(e), p = e.length; --p > -1; )
|
|
822
|
+
typeof (R = e[p][t]) == "string" && R.charAt(1) === "=" && (e[p][t] = n[t] + Number(R.charAt(0) + R.substr(2)));
|
|
823
|
+
if (g = e.length - 2, 0 > g)
|
|
824
|
+
return Z[0] = new H(e[0][t], 0, 0, e[0][t]), Z;
|
|
825
|
+
for (p = 0; g > p; p++)
|
|
826
|
+
T = e[p][t], O = e[p + 1][t], Z[p] = new H(T, 0, 0, O), _ && (D = e[p + 2][t], Q[p] = (Q[p] || 0) + (O - T) * (O - T), it[p] = (it[p] || 0) + (D - O) * (D - O));
|
|
827
|
+
return Z[p] = new H(e[p][t], 0, 0, e[p + 1][t]), Z;
|
|
828
|
+
}, F = function(e, t, _, n, g, p) {
|
|
829
|
+
var T, O, D, R, Z, U, K, tt, mt = {}, ot = [], J = p || e[0];
|
|
830
|
+
g = typeof g == "string" ? "," + g + "," : dt, t == null && (t = 1);
|
|
831
|
+
for (O in e[0])
|
|
832
|
+
ot.push(O);
|
|
833
|
+
if (e.length > 1) {
|
|
834
|
+
for (tt = e[e.length - 1], K = !0, T = ot.length; --T > -1; )
|
|
835
|
+
if (O = ot[T], Math.abs(J[O] - tt[O]) > 0.05) {
|
|
836
|
+
K = !1;
|
|
837
|
+
break;
|
|
838
|
+
}
|
|
839
|
+
K && (e = e.concat(), p && e.unshift(p), e.push(e[1]), p = e[e.length - 3]);
|
|
840
|
+
}
|
|
841
|
+
for (Q.length = it.length = ut.length = 0, T = ot.length; --T > -1; )
|
|
842
|
+
O = ot[T], z[O] = g.indexOf("," + O + ",") !== -1, mt[O] = W(e, O, z[O], p);
|
|
843
|
+
for (T = Q.length; --T > -1; )
|
|
844
|
+
Q[T] = Math.sqrt(Q[T]), it[T] = Math.sqrt(it[T]);
|
|
845
|
+
if (!n) {
|
|
846
|
+
for (T = ot.length; --T > -1; )
|
|
847
|
+
if (z[O])
|
|
848
|
+
for (D = mt[ot[T]], U = D.length - 1, R = 0; U > R; R++)
|
|
849
|
+
Z = D[R + 1].da / it[R] + D[R].da / Q[R] || 0, ut[R] = (ut[R] || 0) + Z * Z;
|
|
850
|
+
for (T = ut.length; --T > -1; )
|
|
851
|
+
ut[T] = Math.sqrt(ut[T]);
|
|
852
|
+
}
|
|
853
|
+
for (T = ot.length, R = _ ? 4 : 1; --T > -1; )
|
|
854
|
+
O = ot[T], D = mt[O], M(D, t, _, n, z[O]), K && (D.splice(0, R), D.splice(D.length - R, R));
|
|
855
|
+
return mt;
|
|
856
|
+
}, $ = function(e, t, _) {
|
|
857
|
+
t = t || "soft";
|
|
858
|
+
var n, g, p, T, O, D, R, Z, U, K, tt, mt = {}, ot = t === "cubic" ? 3 : 2, J = t === "soft", gt = [];
|
|
859
|
+
if (J && _ && (e = [_].concat(e)), e == null || e.length < ot + 1)
|
|
860
|
+
throw "invalid Bezier data";
|
|
861
|
+
for (U in e[0])
|
|
862
|
+
gt.push(U);
|
|
863
|
+
for (D = gt.length; --D > -1; ) {
|
|
864
|
+
for (U = gt[D], mt[U] = O = [], K = 0, Z = e.length, R = 0; Z > R; R++)
|
|
865
|
+
n = _ == null ? e[R][U] : typeof (tt = e[R][U]) == "string" && tt.charAt(1) === "=" ? _[U] + Number(tt.charAt(0) + tt.substr(2)) : Number(tt), J && R > 1 && Z - 1 > R && (O[K++] = (n + O[K - 2]) / 2), O[K++] = n;
|
|
866
|
+
for (Z = K - ot + 1, K = 0, R = 0; Z > R; R += ot)
|
|
867
|
+
n = O[R], g = O[R + 1], p = O[R + 2], T = ot === 2 ? 0 : O[R + 3], O[K++] = tt = ot === 3 ? new H(n, g, p, T) : new H(n, (2 * g + n) / 3, (2 * g + p) / 3, p);
|
|
868
|
+
O.length = K;
|
|
869
|
+
}
|
|
870
|
+
return mt;
|
|
871
|
+
}, st = function(e, t, _) {
|
|
872
|
+
for (var n, g, p, T, O, D, R, Z, U, K, tt, mt = 1 / _, ot = e.length; --ot > -1; )
|
|
873
|
+
for (K = e[ot], p = K.a, T = K.d - p, O = K.c - p, D = K.b - p, n = g = 0, Z = 1; _ >= Z; Z++)
|
|
874
|
+
R = mt * Z, U = 1 - R, n = g - (g = (R * R * T + 3 * U * (R * O + U * D)) * R), tt = ot * _ + Z - 1, t[tt] = (t[tt] || 0) + n * n;
|
|
875
|
+
}, L = function(e, t) {
|
|
876
|
+
t = t >> 0 || 6;
|
|
877
|
+
var _, n, g, p, T = [], O = [], D = 0, R = 0, Z = t - 1, U = [], K = [];
|
|
878
|
+
for (_ in e)
|
|
879
|
+
st(e[_], T, t);
|
|
880
|
+
for (g = T.length, n = 0; g > n; n++)
|
|
881
|
+
D += Math.sqrt(T[n]), p = n % t, K[p] = D, p === Z && (R += D, p = n / t >> 0, U[p] = K, O[p] = R, D = 0, K = []);
|
|
882
|
+
return { length: R, lengths: O, segments: U };
|
|
883
|
+
}, v = Dt._gsDefine.plugin({
|
|
884
|
+
propName: "bezier",
|
|
885
|
+
priority: -1,
|
|
886
|
+
version: "1.3.8",
|
|
887
|
+
API: 2,
|
|
888
|
+
global: !0,
|
|
889
|
+
init: function(e, t, _) {
|
|
890
|
+
this._target = e, t instanceof Array && (t = { values: t }), this._func = {}, this._mod = {}, this._props = [], this._timeRes = t.timeResolution == null ? 6 : parseInt(t.timeResolution, 10);
|
|
891
|
+
var n, g, p, T, O, D = t.values || [], R = {}, Z = D[0], U = t.autoRotate || _.vars.orientToBezier;
|
|
892
|
+
this._autoRotate = U ? U instanceof Array ? U : [["x", "y", "rotation", U === !0 ? 0 : Number(U) || 0]] : null;
|
|
893
|
+
for (n in Z)
|
|
894
|
+
this._props.push(n);
|
|
895
|
+
for (p = this._props.length; --p > -1; )
|
|
896
|
+
n = this._props[p], this._overwriteProps.push(n), g = this._func[n] = typeof e[n] == "function", R[n] = g ? e[n.indexOf("set") || typeof e["get" + n.substr(3)] != "function" ? n : "get" + n.substr(3)]() : parseFloat(e[n]), O || R[n] !== D[0][n] && (O = R);
|
|
897
|
+
if (this._beziers = t.type !== "cubic" && t.type !== "quadratic" && t.type !== "soft" ? F(
|
|
898
|
+
D,
|
|
899
|
+
isNaN(t.curviness) ? 1 : t.curviness,
|
|
900
|
+
!1,
|
|
901
|
+
t.type === "thruBasic",
|
|
902
|
+
t.correlate,
|
|
903
|
+
O
|
|
904
|
+
) : $(D, t.type, R), this._segCount = this._beziers[n].length, this._timeRes) {
|
|
905
|
+
var K = L(this._beziers, this._timeRes);
|
|
906
|
+
this._length = K.length, this._lengths = K.lengths, this._segments = K.segments, this._l1 = this._li = this._s1 = this._si = 0, this._l2 = this._lengths[0], this._curSeg = this._segments[0], this._s2 = this._curSeg[0], this._prec = 1 / this._curSeg.length;
|
|
907
|
+
}
|
|
908
|
+
if (U = this._autoRotate)
|
|
909
|
+
for (this._initialRotations = [], U[0] instanceof Array || (this._autoRotate = U = [U]), p = U.length; --p > -1; ) {
|
|
910
|
+
for (T = 0; 3 > T; T++)
|
|
911
|
+
n = U[p][T], this._func[n] = typeof e[n] == "function" ? e[n.indexOf("set") || typeof e["get" + n.substr(3)] != "function" ? n : "get" + n.substr(3)] : !1;
|
|
912
|
+
n = U[p][2], this._initialRotations[p] = (this._func[n] ? this._func[n].call(this._target) : this._target[n]) || 0, this._overwriteProps.push(n);
|
|
913
|
+
}
|
|
914
|
+
return this._startRatio = _.vars.runBackwards ? 1 : 0, !0;
|
|
915
|
+
},
|
|
916
|
+
set: function(e) {
|
|
917
|
+
var t, _, n, g, p, T, O, D, R, Z, U = this._segCount, K = this._func, tt = this._target, mt = e !== this._startRatio;
|
|
918
|
+
if (this._timeRes) {
|
|
919
|
+
if (R = this._lengths, Z = this._curSeg, e *= this._length, n = this._li, e > this._l2 && U - 1 > n) {
|
|
920
|
+
for (D = U - 1; D > n && (this._l2 = R[++n]) <= e; )
|
|
921
|
+
;
|
|
922
|
+
this._l1 = R[n - 1], this._li = n, this._curSeg = Z = this._segments[n], this._s2 = Z[this._s1 = this._si = 0];
|
|
923
|
+
} else if (e < this._l1 && n > 0) {
|
|
924
|
+
for (; n > 0 && (this._l1 = R[--n]) >= e; )
|
|
925
|
+
;
|
|
926
|
+
n === 0 && e < this._l1 ? this._l1 = 0 : n++, this._l2 = R[n], this._li = n, this._curSeg = Z = this._segments[n], this._s1 = Z[(this._si = Z.length - 1) - 1] || 0, this._s2 = Z[this._si];
|
|
927
|
+
}
|
|
928
|
+
if (t = n, e -= this._l1, n = this._si, e > this._s2 && n < Z.length - 1) {
|
|
929
|
+
for (D = Z.length - 1; D > n && (this._s2 = Z[++n]) <= e; )
|
|
930
|
+
;
|
|
931
|
+
this._s1 = Z[n - 1], this._si = n;
|
|
932
|
+
} else if (e < this._s1 && n > 0) {
|
|
933
|
+
for (; n > 0 && (this._s1 = Z[--n]) >= e; )
|
|
934
|
+
;
|
|
935
|
+
n === 0 && e < this._s1 ? this._s1 = 0 : n++, this._s2 = Z[n], this._si = n;
|
|
936
|
+
}
|
|
937
|
+
T = (n + (e - this._s1) / (this._s2 - this._s1)) * this._prec || 0;
|
|
938
|
+
} else
|
|
939
|
+
t = 0 > e ? 0 : e >= 1 ? U - 1 : U * e >> 0, T = (e - t * (1 / U)) * U;
|
|
940
|
+
for (_ = 1 - T, n = this._props.length; --n > -1; )
|
|
941
|
+
g = this._props[n], p = this._beziers[g][t], O = (T * T * p.da + 3 * _ * (T * p.ca + _ * p.ba)) * T + p.a, this._mod[g] && (O = this._mod[g](O, tt)), K[g] ? tt[g](O) : tt[g] = O;
|
|
942
|
+
if (this._autoRotate) {
|
|
943
|
+
var ot, J, gt, Yt, yt, At, Jt, Kt = this._autoRotate;
|
|
944
|
+
for (n = Kt.length; --n > -1; )
|
|
945
|
+
g = Kt[n][2], At = Kt[n][3] || 0, Jt = Kt[n][4] === !0 ? 1 : Y, p = this._beziers[Kt[n][0]], ot = this._beziers[Kt[n][1]], p && ot && (p = p[t], ot = ot[t], J = p.a + (p.b - p.a) * T, Yt = p.b + (p.c - p.b) * T, J += (Yt - J) * T, Yt += (p.c + (p.d - p.c) * T - Yt) * T, gt = ot.a + (ot.b - ot.a) * T, yt = ot.b + (ot.c - ot.b) * T, gt += (yt - gt) * T, yt += (ot.c + (ot.d - ot.c) * T - yt) * T, O = mt ? Math.atan2(yt - gt, Yt - J) * Jt + At : this._initialRotations[n], this._mod[g] && (O = this._mod[g](O, tt)), K[g] ? tt[g](O) : tt[g] = O);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
}), P = v.prototype;
|
|
949
|
+
v.bezierThrough = F, v.cubicToQuadratic = S, v._autoCSS = !0, v.quadraticToCubic = function(e, t, _) {
|
|
950
|
+
return new H(e, (2 * t + e) / 3, (2 * t + _) / 3, _);
|
|
951
|
+
}, v._cssRegister = function() {
|
|
952
|
+
var e = V.CSSPlugin;
|
|
953
|
+
if (e) {
|
|
954
|
+
var t = e._internals, _ = t._parseToProxy, n = t._setPluginRatio, g = t.CSSPropTween;
|
|
955
|
+
t._registerComplexSpecialProp("bezier", {
|
|
956
|
+
parser: function(p, T, O, D, R, Z) {
|
|
957
|
+
T instanceof Array && (T = { values: T }), Z = new v();
|
|
958
|
+
var U, K, tt, mt = T.values, ot = mt.length - 1, J = [], gt = {};
|
|
959
|
+
if (0 > ot)
|
|
960
|
+
return R;
|
|
961
|
+
for (U = 0; ot >= U; U++)
|
|
962
|
+
tt = _(p, mt[U], D, R, Z, ot !== U), J[U] = tt.end;
|
|
963
|
+
for (K in T)
|
|
964
|
+
gt[K] = T[K];
|
|
965
|
+
return gt.values = J, R = new g(p, "bezier", 0, 0, tt.pt, 2), R.data = tt, R.plugin = Z, R.setRatio = n, gt.autoRotate === 0 && (gt.autoRotate = !0), !gt.autoRotate || gt.autoRotate instanceof Array || (U = gt.autoRotate === !0 ? 0 : Number(gt.autoRotate), gt.autoRotate = tt.end.left != null ? [["left", "top", "rotation", U, !1]] : tt.end.x != null ? [["x", "y", "rotation", U, !1]] : !1), gt.autoRotate && (D._transform || D._enableTransforms(!1), tt.autoRotate = D._target._gsTransform, tt.proxy.rotation = tt.autoRotate.rotation || 0, D._overwriteProps.push("rotation")), Z._onInitTween(tt.proxy, gt, D._tween), R;
|
|
966
|
+
}
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
}, P._mod = function(e) {
|
|
970
|
+
for (var t, _ = this._overwriteProps, n = _.length; --n > -1; )
|
|
971
|
+
t = e[_[n]], t && typeof t == "function" && (this._mod[_[n]] = t);
|
|
972
|
+
}, P._kill = function(e) {
|
|
973
|
+
var t, _, n = this._props;
|
|
974
|
+
for (t in this._beziers)
|
|
975
|
+
if (t in e)
|
|
976
|
+
for (delete this._beziers[t], delete this._func[t], _ = n.length; --_ > -1; )
|
|
977
|
+
n[_] === t && n.splice(_, 1);
|
|
978
|
+
if (n = this._autoRotate)
|
|
979
|
+
for (_ = n.length; --_ > -1; )
|
|
980
|
+
e[n[_][2]] && n.splice(_, 1);
|
|
981
|
+
return this._super._kill.call(this, e);
|
|
982
|
+
};
|
|
983
|
+
}(), Dt._gsDefine(
|
|
984
|
+
"plugins.CSSPlugin",
|
|
985
|
+
["plugins.TweenPlugin", "TweenLite"],
|
|
986
|
+
function(Y, Q) {
|
|
987
|
+
var it, ut, z, V, H = function() {
|
|
988
|
+
Y.call(this, "css"), this._overwriteProps.length = 0, this.setRatio = H.prototype.setRatio;
|
|
989
|
+
}, dt = Dt._gsDefine.globals, S = {}, M = H.prototype = new Y("css");
|
|
990
|
+
M.constructor = H, H.version = "2.0.2", H.API = 2, H.defaultTransformPerspective = 0, H.defaultSkewType = "compensated", H.defaultSmoothOrigin = !0, M = "px", H.suffixMap = {
|
|
991
|
+
top: M,
|
|
992
|
+
right: M,
|
|
993
|
+
bottom: M,
|
|
994
|
+
left: M,
|
|
995
|
+
width: M,
|
|
996
|
+
height: M,
|
|
997
|
+
fontSize: M,
|
|
998
|
+
padding: M,
|
|
999
|
+
margin: M,
|
|
1000
|
+
perspective: M,
|
|
1001
|
+
lineHeight: ""
|
|
1002
|
+
};
|
|
1003
|
+
var W, F, $, st, L, v, P, e, t = /(?:\-|\.|\b)(\d|\.|e\-)+/g, _ = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g, n = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi, g = /(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g, p = /(?:\d|\-|\+|=|#|\.)*/g, T = /opacity *= *([^)]*)/i, O = /opacity:([^;]*)/i, D = /alpha\(opacity *=.+?\)/i, R = /^(rgb|hsl)/, Z = /([A-Z])/g, U = /-([a-z])/gi, K = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi, tt = function(i, o) {
|
|
1004
|
+
return o.toUpperCase();
|
|
1005
|
+
}, mt = /(?:Left|Right|Width)/i, ot = /(M11|M12|M21|M22)=[\d\-\.e]+/gi, J = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i, gt = /,(?=[^\)]*(?:\(|$))/gi, Yt = /[\s,\(]/i, yt = Math.PI / 180, At = 180 / Math.PI, Jt = {}, Kt = { style: {} }, Wt = Dt.document || {
|
|
1006
|
+
createElement: function() {
|
|
1007
|
+
return Kt;
|
|
1008
|
+
}
|
|
1009
|
+
}, ae = function(i, o) {
|
|
1010
|
+
return Wt.createElementNS ? Wt.createElementNS(o || "http://www.w3.org/1999/xhtml", i) : Wt.createElement(i);
|
|
1011
|
+
}, bt = ae("div"), le = ae("img"), Et = H._internals = { _specialProps: S }, zt = (Dt.navigator || {}).userAgent || "", ee = function() {
|
|
1012
|
+
var i = zt.indexOf("Android"), o = ae("a");
|
|
1013
|
+
return $ = zt.indexOf("Safari") !== -1 && zt.indexOf("Chrome") === -1 && (i === -1 || parseFloat(zt.substr(i + 8, 2)) > 3), L = $ && parseFloat(zt.substr(zt.indexOf("Version/") + 8, 2)) < 6, st = zt.indexOf("Firefox") !== -1, (/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(zt) || /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(zt)) && (v = parseFloat(RegExp.$1)), o ? (o.style.cssText = "top:1px;opacity:.55;", /^0.55/.test(o.style.opacity)) : !1;
|
|
1014
|
+
}(), _e = function(i) {
|
|
1015
|
+
return T.test(
|
|
1016
|
+
typeof i == "string" ? i : (i.currentStyle ? i.currentStyle.filter : i.style.filter) || ""
|
|
1017
|
+
) ? parseFloat(RegExp.$1) / 100 : 1;
|
|
1018
|
+
}, ce = function(i) {
|
|
1019
|
+
Dt.console && console.log(i);
|
|
1020
|
+
}, te = "", Gt = "", se = function(i, o) {
|
|
1021
|
+
o = o || bt;
|
|
1022
|
+
var l, a, s = o.style;
|
|
1023
|
+
if (s[i] !== void 0)
|
|
1024
|
+
return i;
|
|
1025
|
+
for (i = i.charAt(0).toUpperCase() + i.substr(1), l = ["O", "Moz", "ms", "Ms", "Webkit"], a = 5; --a > -1 && s[l[a] + i] === void 0; )
|
|
1026
|
+
;
|
|
1027
|
+
return a >= 0 ? (Gt = a === 3 ? "ms" : l[a], te = "-" + Gt.toLowerCase() + "-", Gt + i) : null;
|
|
1028
|
+
}, jt = (typeof window < "u" ? window : Wt.defaultView || { getComputedStyle: function() {
|
|
1029
|
+
} }).getComputedStyle, wt = H.getStyle = function(i, o, l, a, s) {
|
|
1030
|
+
var d;
|
|
1031
|
+
return ee || o !== "opacity" ? (!a && i.style[o] ? d = i.style[o] : (l = l || jt(i)) ? d = l[o] || l.getPropertyValue(o) || l.getPropertyValue(o.replace(Z, "-$1").toLowerCase()) : i.currentStyle && (d = i.currentStyle[o]), s == null || d && d !== "none" && d !== "auto" && d !== "auto auto" ? d : s) : _e(i);
|
|
1032
|
+
}, Vt = Et.convertToPixels = function(i, o, l, a, s) {
|
|
1033
|
+
if (a === "px" || !a && o !== "lineHeight")
|
|
1034
|
+
return l;
|
|
1035
|
+
if (a === "auto" || !l)
|
|
1036
|
+
return 0;
|
|
1037
|
+
var d, h, y, k = mt.test(o), x = i, m = bt.style, I = 0 > l, N = l === 1;
|
|
1038
|
+
if (I && (l = -l), N && (l *= 100), o !== "lineHeight" || a)
|
|
1039
|
+
if (a === "%" && o.indexOf("border") !== -1)
|
|
1040
|
+
d = l / 100 * (k ? i.clientWidth : i.clientHeight);
|
|
1041
|
+
else {
|
|
1042
|
+
if (m.cssText = "border:0 solid red;position:" + wt(i, "position") + ";line-height:0;", a !== "%" && x.appendChild && a.charAt(0) !== "v" && a !== "rem")
|
|
1043
|
+
m[k ? "borderLeftWidth" : "borderTopWidth"] = l + a;
|
|
1044
|
+
else {
|
|
1045
|
+
if (x = i.parentNode || Wt.body, wt(x, "display").indexOf("flex") !== -1 && (m.position = "absolute"), h = x._gsCache, y = Q.ticker.frame, h && k && h.time === y)
|
|
1046
|
+
return h.width * l / 100;
|
|
1047
|
+
m[k ? "width" : "height"] = l + a;
|
|
1048
|
+
}
|
|
1049
|
+
x.appendChild(bt), d = parseFloat(bt[k ? "offsetWidth" : "offsetHeight"]), x.removeChild(bt), k && a === "%" && H.cacheWidths !== !1 && (h = x._gsCache = x._gsCache || {}, h.time = y, h.width = d / l * 100), d !== 0 || s || (d = Vt(i, o, l, a, !0));
|
|
1050
|
+
}
|
|
1051
|
+
else
|
|
1052
|
+
h = jt(i).lineHeight, i.style.lineHeight = l, d = parseFloat(jt(i).lineHeight), i.style.lineHeight = h;
|
|
1053
|
+
return N && (d /= 100), I ? -d : d;
|
|
1054
|
+
}, ue = Et.calculateOffset = function(i, o, l) {
|
|
1055
|
+
if (wt(i, "position", l) !== "absolute")
|
|
1056
|
+
return 0;
|
|
1057
|
+
var a = o === "left" ? "Left" : "Top", s = wt(i, "margin" + a, l);
|
|
1058
|
+
return i["offset" + a] - (Vt(i, o, parseFloat(s), s.replace(p, "")) || 0);
|
|
1059
|
+
}, re = function(i, o) {
|
|
1060
|
+
var l, a, s, d = {};
|
|
1061
|
+
if (o = o || jt(i, null))
|
|
1062
|
+
if (l = o.length)
|
|
1063
|
+
for (; --l > -1; )
|
|
1064
|
+
s = o[l], (s.indexOf("-transform") === -1 || Pe === s) && (d[s.replace(U, tt)] = o.getPropertyValue(s));
|
|
1065
|
+
else
|
|
1066
|
+
for (l in o)
|
|
1067
|
+
(l.indexOf("Transform") === -1 || Xt === l) && (d[l] = o[l]);
|
|
1068
|
+
else if (o = i.currentStyle || i.style)
|
|
1069
|
+
for (l in o)
|
|
1070
|
+
typeof l == "string" && d[l] === void 0 && (d[l.replace(U, tt)] = o[l]);
|
|
1071
|
+
return ee || (d.opacity = _e(i)), a = de(i, o, !1), d.rotation = a.rotation, d.skewX = a.skewX, d.scaleX = a.scaleX, d.scaleY = a.scaleY, d.x = a.x, d.y = a.y, Ht && (d.z = a.z, d.rotationX = a.rotationX, d.rotationY = a.rotationY, d.scaleZ = a.scaleZ), d.filters && delete d.filters, d;
|
|
1072
|
+
}, Zt = function(i, o, l, a, s) {
|
|
1073
|
+
var d, h, y, k = {}, x = i.style;
|
|
1074
|
+
for (h in l)
|
|
1075
|
+
h !== "cssText" && h !== "length" && isNaN(h) && (o[h] !== (d = l[h]) || s && s[h]) && h.indexOf("Origin") === -1 && (typeof d == "number" || typeof d == "string") && (k[h] = d !== "auto" || h !== "left" && h !== "top" ? d !== "" && d !== "auto" && d !== "none" || typeof o[h] != "string" || o[h].replace(g, "") === "" ? d : 0 : ue(i, h), x[h] !== void 0 && (y = new vt(x, h, x[h], y)));
|
|
1076
|
+
if (a)
|
|
1077
|
+
for (h in a)
|
|
1078
|
+
h !== "className" && (k[h] = a[h]);
|
|
1079
|
+
return { difs: k, firstMPT: y };
|
|
1080
|
+
}, r = { width: ["Left", "Right"], height: ["Top", "Bottom"] }, u = ["marginLeft", "marginRight", "marginTop", "marginBottom"], f = function(i, o, l) {
|
|
1081
|
+
if ((i.nodeName + "").toLowerCase() === "svg")
|
|
1082
|
+
return (l || jt(i))[o] || 0;
|
|
1083
|
+
if (i.getCTM && Oe(i))
|
|
1084
|
+
return i.getBBox()[o] || 0;
|
|
1085
|
+
var a = parseFloat(o === "width" ? i.offsetWidth : i.offsetHeight), s = r[o], d = s.length;
|
|
1086
|
+
for (l = l || jt(i, null); --d > -1; )
|
|
1087
|
+
a -= parseFloat(wt(i, "padding" + s[d], l, !0)) || 0, a -= parseFloat(wt(i, "border" + s[d] + "Width", l, !0)) || 0;
|
|
1088
|
+
return a;
|
|
1089
|
+
}, c = function(i, o) {
|
|
1090
|
+
if (i === "contain" || i === "auto" || i === "auto auto")
|
|
1091
|
+
return i + " ";
|
|
1092
|
+
(i == null || i === "") && (i = "0 0");
|
|
1093
|
+
var l, a = i.split(" "), s = i.indexOf("left") !== -1 ? "0%" : i.indexOf("right") !== -1 ? "100%" : a[0], d = i.indexOf("top") !== -1 ? "0%" : i.indexOf("bottom") !== -1 ? "100%" : a[1];
|
|
1094
|
+
if (a.length > 3 && !o) {
|
|
1095
|
+
for (a = i.split(", ").join(",").split(","), i = [], l = 0; l < a.length; l++)
|
|
1096
|
+
i.push(c(a[l]));
|
|
1097
|
+
return i.join(",");
|
|
1098
|
+
}
|
|
1099
|
+
return d == null ? d = s === "center" ? "50%" : "0" : d === "center" && (d = "50%"), (s === "center" || isNaN(parseFloat(s)) && (s + "").indexOf("=") === -1) && (s = "50%"), i = s + " " + d + (a.length > 2 ? " " + a[2] : ""), o && (o.oxp = s.indexOf("%") !== -1, o.oyp = d.indexOf("%") !== -1, o.oxr = s.charAt(1) === "=", o.oyr = d.charAt(1) === "=", o.ox = parseFloat(s.replace(g, "")), o.oy = parseFloat(d.replace(g, "")), o.v = i), o || i;
|
|
1100
|
+
}, w = function(i, o) {
|
|
1101
|
+
return typeof i == "function" && (i = i(e, P)), typeof i == "string" && i.charAt(1) === "=" ? parseInt(i.charAt(0) + "1", 10) * parseFloat(i.substr(2)) : parseFloat(i) - parseFloat(o) || 0;
|
|
1102
|
+
}, C = function(i, o) {
|
|
1103
|
+
typeof i == "function" && (i = i(e, P));
|
|
1104
|
+
var l = typeof i == "string" && i.charAt(1) === "=";
|
|
1105
|
+
return typeof i == "string" && i.charAt(i.length - 2) === "v" && (i = (l ? i.substr(0, 2) : 0) + window["inner" + (i.substr(-2) === "vh" ? "Height" : "Width")] * (parseFloat(l ? i.substr(2) : i) / 100)), i == null ? o : l ? parseInt(i.charAt(0) + "1", 10) * parseFloat(i.substr(2)) + o : parseFloat(i) || 0;
|
|
1106
|
+
}, j = function(i, o, l, a) {
|
|
1107
|
+
var s, d, h, y, k, x = 1e-6;
|
|
1108
|
+
return typeof i == "function" && (i = i(e, P)), i == null ? y = o : typeof i == "number" ? y = i : (s = 360, d = i.split("_"), k = i.charAt(1) === "=", h = (k ? parseInt(i.charAt(0) + "1", 10) * parseFloat(d[0].substr(2)) : parseFloat(d[0])) * (i.indexOf("rad") === -1 ? 1 : At) - (k ? 0 : o), d.length && (a && (a[l] = o + h), i.indexOf("short") !== -1 && (h %= s, h !== h % (s / 2) && (h = 0 > h ? h + s : h - s)), i.indexOf("_cw") !== -1 && 0 > h ? h = (h + 9999999999 * s) % s - (h / s | 0) * s : i.indexOf("ccw") !== -1 && h > 0 && (h = (h - 9999999999 * s) % s - (h / s | 0) * s)), y = o + h), x > y && y > -x && (y = 0), y;
|
|
1109
|
+
}, A = {
|
|
1110
|
+
aqua: [0, 255, 255],
|
|
1111
|
+
lime: [0, 255, 0],
|
|
1112
|
+
silver: [192, 192, 192],
|
|
1113
|
+
black: [0, 0, 0],
|
|
1114
|
+
maroon: [128, 0, 0],
|
|
1115
|
+
teal: [0, 128, 128],
|
|
1116
|
+
blue: [0, 0, 255],
|
|
1117
|
+
navy: [0, 0, 128],
|
|
1118
|
+
white: [255, 255, 255],
|
|
1119
|
+
fuchsia: [255, 0, 255],
|
|
1120
|
+
olive: [128, 128, 0],
|
|
1121
|
+
yellow: [255, 255, 0],
|
|
1122
|
+
orange: [255, 165, 0],
|
|
1123
|
+
gray: [128, 128, 128],
|
|
1124
|
+
purple: [128, 0, 128],
|
|
1125
|
+
green: [0, 128, 0],
|
|
1126
|
+
red: [255, 0, 0],
|
|
1127
|
+
pink: [255, 192, 203],
|
|
1128
|
+
cyan: [0, 255, 255],
|
|
1129
|
+
transparent: [255, 255, 255, 0]
|
|
1130
|
+
}, ft = function(i, o, l) {
|
|
1131
|
+
return i = 0 > i ? i + 1 : i > 1 ? i - 1 : i, 255 * (1 > 6 * i ? o + (l - o) * i * 6 : 0.5 > i ? l : 2 > 3 * i ? o + (l - o) * (2 / 3 - i) * 6 : o) + 0.5 | 0;
|
|
1132
|
+
}, _t = H.parseColor = function(i, o) {
|
|
1133
|
+
var l, a, s, d, h, y, k, x, m, I, N;
|
|
1134
|
+
if (i)
|
|
1135
|
+
if (typeof i == "number")
|
|
1136
|
+
l = [i >> 16, i >> 8 & 255, 255 & i];
|
|
1137
|
+
else {
|
|
1138
|
+
if (i.charAt(i.length - 1) === "," && (i = i.substr(0, i.length - 1)), A[i])
|
|
1139
|
+
l = A[i];
|
|
1140
|
+
else if (i.charAt(0) === "#")
|
|
1141
|
+
i.length === 4 && (a = i.charAt(1), s = i.charAt(2), d = i.charAt(3), i = "#" + a + a + s + s + d + d), i = parseInt(i.substr(1), 16), l = [i >> 16, i >> 8 & 255, 255 & i];
|
|
1142
|
+
else if (i.substr(0, 3) === "hsl")
|
|
1143
|
+
if (l = N = i.match(t), o) {
|
|
1144
|
+
if (i.indexOf("=") !== -1)
|
|
1145
|
+
return i.match(_);
|
|
1146
|
+
} else
|
|
1147
|
+
h = Number(l[0]) % 360 / 360, y = Number(l[1]) / 100, k = Number(l[2]) / 100, s = 0.5 >= k ? k * (y + 1) : k + y - k * y, a = 2 * k - s, l.length > 3 && (l[3] = Number(l[3])), l[0] = ft(h + 1 / 3, a, s), l[1] = ft(h, a, s), l[2] = ft(h - 1 / 3, a, s);
|
|
1148
|
+
else
|
|
1149
|
+
l = i.match(t) || A.transparent;
|
|
1150
|
+
l[0] = Number(l[0]), l[1] = Number(l[1]), l[2] = Number(l[2]), l.length > 3 && (l[3] = Number(l[3]));
|
|
1151
|
+
}
|
|
1152
|
+
else
|
|
1153
|
+
l = A.black;
|
|
1154
|
+
return o && !N && (a = l[0] / 255, s = l[1] / 255, d = l[2] / 255, x = Math.max(a, s, d), m = Math.min(a, s, d), k = (x + m) / 2, x === m ? h = y = 0 : (I = x - m, y = k > 0.5 ? I / (2 - x - m) : I / (x + m), h = x === a ? (s - d) / I + (d > s ? 6 : 0) : x === s ? (d - a) / I + 2 : (a - s) / I + 4, h *= 60), l[0] = h + 0.5 | 0, l[1] = 100 * y + 0.5 | 0, l[2] = 100 * k + 0.5 | 0), l;
|
|
1155
|
+
}, b = function(i, o) {
|
|
1156
|
+
var l, a, s, d = i.match(pt) || [], h = 0, y = "";
|
|
1157
|
+
if (!d.length)
|
|
1158
|
+
return i;
|
|
1159
|
+
for (l = 0; l < d.length; l++)
|
|
1160
|
+
a = d[l], s = i.substr(h, i.indexOf(a, h) - h), h += s.length + a.length, a = _t(a, o), a.length === 3 && a.push(1), y += s + (o ? "hsla(" + a[0] + "," + a[1] + "%," + a[2] + "%," + a[3] : "rgba(" + a.join(",")) + ")";
|
|
1161
|
+
return y + i.substr(h);
|
|
1162
|
+
}, pt = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";
|
|
1163
|
+
for (M in A)
|
|
1164
|
+
pt += "|" + M + "\\b";
|
|
1165
|
+
pt = new RegExp(pt + ")", "gi"), H.colorStringFilter = function(i) {
|
|
1166
|
+
var o, l = i[0] + " " + i[1];
|
|
1167
|
+
pt.test(l) && (o = l.indexOf("hsl(") !== -1 || l.indexOf("hsla(") !== -1, i[0] = b(i[0], o), i[1] = b(i[1], o)), pt.lastIndex = 0;
|
|
1168
|
+
}, Q.defaultStringFilter || (Q.defaultStringFilter = H.colorStringFilter);
|
|
1169
|
+
var Pt = function(i, o, l, a) {
|
|
1170
|
+
if (i == null)
|
|
1171
|
+
return function(N) {
|
|
1172
|
+
return N;
|
|
1173
|
+
};
|
|
1174
|
+
var s, d = o ? (i.match(pt) || [""])[0] : "", h = i.split(d).join("").match(n) || [], y = i.substr(0, i.indexOf(h[0])), k = i.charAt(i.length - 1) === ")" ? ")" : "", x = i.indexOf(" ") !== -1 ? " " : ",", m = h.length, I = m > 0 ? h[0].replace(t, "") : "";
|
|
1175
|
+
return m ? s = o ? function(N) {
|
|
1176
|
+
var E, q, X, at;
|
|
1177
|
+
if (typeof N == "number")
|
|
1178
|
+
N += I;
|
|
1179
|
+
else if (a && gt.test(N)) {
|
|
1180
|
+
for (at = N.replace(gt, "|").split("|"), X = 0; X < at.length; X++)
|
|
1181
|
+
at[X] = s(at[X]);
|
|
1182
|
+
return at.join(",");
|
|
1183
|
+
}
|
|
1184
|
+
if (E = (N.match(pt) || [d])[0], q = N.split(E).join("").match(n) || [], X = q.length, m > X--)
|
|
1185
|
+
for (; ++X < m; )
|
|
1186
|
+
q[X] = l ? q[(X - 1) / 2 | 0] : h[X];
|
|
1187
|
+
return y + q.join(x) + x + E + k + (N.indexOf("inset") !== -1 ? " inset" : "");
|
|
1188
|
+
} : function(N) {
|
|
1189
|
+
var E, q, X;
|
|
1190
|
+
if (typeof N == "number")
|
|
1191
|
+
N += I;
|
|
1192
|
+
else if (a && gt.test(N)) {
|
|
1193
|
+
for (q = N.replace(gt, "|").split("|"), X = 0; X < q.length; X++)
|
|
1194
|
+
q[X] = s(q[X]);
|
|
1195
|
+
return q.join(",");
|
|
1196
|
+
}
|
|
1197
|
+
if (E = N.match(n) || [], X = E.length, m > X--)
|
|
1198
|
+
for (; ++X < m; )
|
|
1199
|
+
E[X] = l ? E[(X - 1) / 2 | 0] : h[X];
|
|
1200
|
+
return y + E.join(x) + k;
|
|
1201
|
+
} : function(N) {
|
|
1202
|
+
return N;
|
|
1203
|
+
};
|
|
1204
|
+
}, Ot = function(i) {
|
|
1205
|
+
return i = i.split(","), function(o, l, a, s, d, h, y) {
|
|
1206
|
+
var k, x = (l + "").split(" ");
|
|
1207
|
+
for (y = {}, k = 0; 4 > k; k++)
|
|
1208
|
+
y[i[k]] = x[k] = x[k] || x[(k - 1) / 2 >> 0];
|
|
1209
|
+
return s.parse(o, y, d, h);
|
|
1210
|
+
};
|
|
1211
|
+
}, vt = (Et._setPluginRatio = function(i) {
|
|
1212
|
+
this.plugin.setRatio(i);
|
|
1213
|
+
for (var o, l, a, s, d, h = this.data, y = h.proxy, k = h.firstMPT, x = 1e-6; k; )
|
|
1214
|
+
o = y[k.v], k.r ? o = k.r(o) : x > o && o > -x && (o = 0), k.t[k.p] = o, k = k._next;
|
|
1215
|
+
if (h.autoRotate && (h.autoRotate.rotation = h.mod ? h.mod.call(this._tween, y.rotation, this.t, this._tween) : y.rotation), i === 1 || i === 0)
|
|
1216
|
+
for (k = h.firstMPT, d = i === 1 ? "e" : "b"; k; ) {
|
|
1217
|
+
if (l = k.t, l.type) {
|
|
1218
|
+
if (l.type === 1) {
|
|
1219
|
+
for (s = l.xs0 + l.s + l.xs1, a = 1; a < l.l; a++)
|
|
1220
|
+
s += l["xn" + a] + l["xs" + (a + 1)];
|
|
1221
|
+
l[d] = s;
|
|
1222
|
+
}
|
|
1223
|
+
} else
|
|
1224
|
+
l[d] = l.s + l.xs0;
|
|
1225
|
+
k = k._next;
|
|
1226
|
+
}
|
|
1227
|
+
}, function(i, o, l, a, s) {
|
|
1228
|
+
this.t = i, this.p = o, this.v = l, this.r = s, a && (a._prev = this, this._next = a);
|
|
1229
|
+
}), kt = (Et._parseToProxy = function(i, o, l, a, s, d) {
|
|
1230
|
+
var h, y, k, x, m, I = a, N = {}, E = {}, q = l._transform, X = Jt;
|
|
1231
|
+
for (l._transform = null, Jt = o, a = m = l.parse(i, o, a, s), Jt = X, d && (l._transform = q, I && (I._prev = null, I._prev && (I._prev._next = null))); a && a !== I; ) {
|
|
1232
|
+
if (a.type <= 1 && (y = a.p, E[y] = a.s + a.c, N[y] = a.s, d || (x = new vt(a, "s", y, x, a.r), a.c = 0), a.type === 1))
|
|
1233
|
+
for (h = a.l; --h > 0; )
|
|
1234
|
+
k = "xn" + h, y = a.p + "_" + k, E[y] = a.data[k], N[y] = a[k], d || (x = new vt(a, k, y, x, a.rxp[k]));
|
|
1235
|
+
a = a._next;
|
|
1236
|
+
}
|
|
1237
|
+
return { proxy: N, end: E, firstMPT: x, pt: m };
|
|
1238
|
+
}, Et.CSSPropTween = function(i, o, l, a, s, d, h, y, k, x, m) {
|
|
1239
|
+
this.t = i, this.p = o, this.s = l, this.c = a, this.n = h || o, i instanceof kt || V.push(this.n), this.r = y && (typeof y == "function" ? y : Math.round), this.type = d || 0, k && (this.pr = k, it = !0), this.b = x === void 0 ? l : x, this.e = m === void 0 ? l + a : m, s && (this._next = s, s._prev = this);
|
|
1240
|
+
}), he = function(i, o, l, a, s, d) {
|
|
1241
|
+
var h = new kt(i, o, l, a - l, s, -1, d);
|
|
1242
|
+
return h.b = l, h.e = h.xs0 = a, h;
|
|
1243
|
+
}, ie = H.parseComplex = function(i, o, l, a, s, d, h, y, k, x) {
|
|
1244
|
+
l = l || d || "", typeof a == "function" && (a = a(e, P)), h = new kt(i, o, 0, 0, h, x ? 2 : 1, null, !1, y, l, a), a += "", s && pt.test(a + l) && (a = [l, a], H.colorStringFilter(a), l = a[0], a = a[1]);
|
|
1245
|
+
var m, I, N, E, q, X, at, lt, xt, ct, rt, ht, B, Tt = l.split(", ").join(",").split(" "), et = a.split(", ").join(",").split(" "), G = Tt.length, nt = W !== !1;
|
|
1246
|
+
for ((a.indexOf(",") !== -1 || l.indexOf(",") !== -1) && ((a + l).indexOf("rgb") !== -1 || (a + l).indexOf("hsl") !== -1 ? (Tt = Tt.join(" ").replace(gt, ", ").split(" "), et = et.join(" ").replace(gt, ", ").split(" ")) : (Tt = Tt.join(" ").split(",").join(", ").split(" "), et = et.join(" ").split(",").join(", ").split(" ")), G = Tt.length), G !== et.length && (Tt = (d || "").split(" "), G = Tt.length), h.plugin = k, h.setRatio = x, pt.lastIndex = 0, m = 0; G > m; m++)
|
|
1247
|
+
if (E = Tt[m], q = et[m] + "", lt = parseFloat(E), lt || lt === 0)
|
|
1248
|
+
h.appendXtra(
|
|
1249
|
+
"",
|
|
1250
|
+
lt,
|
|
1251
|
+
w(q, lt),
|
|
1252
|
+
q.replace(_, ""),
|
|
1253
|
+
nt && q.indexOf("px") !== -1 ? Math.round : !1,
|
|
1254
|
+
!0
|
|
1255
|
+
);
|
|
1256
|
+
else if (s && pt.test(E))
|
|
1257
|
+
ht = q.indexOf(")") + 1, ht = ")" + (ht ? q.substr(ht) : ""), B = q.indexOf("hsl") !== -1 && ee, ct = q, E = _t(E, B), q = _t(q, B), xt = E.length + q.length > 6, xt && !ee && q[3] === 0 ? (h["xs" + h.l] += h.l ? " transparent" : "transparent", h.e = h.e.split(et[m]).join("transparent")) : (ee || (xt = !1), B ? h.appendXtra(
|
|
1258
|
+
ct.substr(0, ct.indexOf("hsl")) + (xt ? "hsla(" : "hsl("),
|
|
1259
|
+
E[0],
|
|
1260
|
+
w(q[0], E[0]),
|
|
1261
|
+
",",
|
|
1262
|
+
!1,
|
|
1263
|
+
!0
|
|
1264
|
+
).appendXtra("", E[1], w(q[1], E[1]), "%,", !1).appendXtra(
|
|
1265
|
+
"",
|
|
1266
|
+
E[2],
|
|
1267
|
+
w(q[2], E[2]),
|
|
1268
|
+
xt ? "%," : "%" + ht,
|
|
1269
|
+
!1
|
|
1270
|
+
) : h.appendXtra(
|
|
1271
|
+
ct.substr(0, ct.indexOf("rgb")) + (xt ? "rgba(" : "rgb("),
|
|
1272
|
+
E[0],
|
|
1273
|
+
q[0] - E[0],
|
|
1274
|
+
",",
|
|
1275
|
+
Math.round,
|
|
1276
|
+
!0
|
|
1277
|
+
).appendXtra("", E[1], q[1] - E[1], ",", Math.round).appendXtra(
|
|
1278
|
+
"",
|
|
1279
|
+
E[2],
|
|
1280
|
+
q[2] - E[2],
|
|
1281
|
+
xt ? "," : ht,
|
|
1282
|
+
Math.round
|
|
1283
|
+
), xt && (E = E.length < 4 ? 1 : E[3], h.appendXtra(
|
|
1284
|
+
"",
|
|
1285
|
+
E,
|
|
1286
|
+
(q.length < 4 ? 1 : q[3]) - E,
|
|
1287
|
+
ht,
|
|
1288
|
+
!1
|
|
1289
|
+
))), pt.lastIndex = 0;
|
|
1290
|
+
else if (X = E.match(t)) {
|
|
1291
|
+
if (at = q.match(_), !at || at.length !== X.length)
|
|
1292
|
+
return h;
|
|
1293
|
+
for (N = 0, I = 0; I < X.length; I++)
|
|
1294
|
+
rt = X[I], ct = E.indexOf(rt, N), h.appendXtra(
|
|
1295
|
+
E.substr(N, ct - N),
|
|
1296
|
+
Number(rt),
|
|
1297
|
+
w(at[I], rt),
|
|
1298
|
+
"",
|
|
1299
|
+
nt && E.substr(ct + rt.length, 2) === "px" ? Math.round : !1,
|
|
1300
|
+
I === 0
|
|
1301
|
+
), N = ct + rt.length;
|
|
1302
|
+
h["xs" + h.l] += E.substr(N);
|
|
1303
|
+
} else
|
|
1304
|
+
h["xs" + h.l] += h.l || h["xs" + h.l] ? " " + q : q;
|
|
1305
|
+
if (a.indexOf("=") !== -1 && h.data) {
|
|
1306
|
+
for (ht = h.xs0 + h.data.s, m = 1; m < h.l; m++)
|
|
1307
|
+
ht += h["xs" + m] + h.data["xn" + m];
|
|
1308
|
+
h.e = ht + h["xs" + m];
|
|
1309
|
+
}
|
|
1310
|
+
return h.l || (h.type = -1, h.xs0 = h.e), h.xfirst || h;
|
|
1311
|
+
}, It = 9;
|
|
1312
|
+
for (M = kt.prototype, M.l = M.pr = 0; --It > 0; )
|
|
1313
|
+
M["xn" + It] = 0, M["xs" + It] = "";
|
|
1314
|
+
M.xs0 = "", M._next = M._prev = M.xfirst = M.data = M.plugin = M.setRatio = M.rxp = null, M.appendXtra = function(i, o, l, a, s, d) {
|
|
1315
|
+
var h = this, y = h.l;
|
|
1316
|
+
return h["xs" + y] += d && (y || h["xs" + y]) ? " " + i : i || "", l || y === 0 || h.plugin ? (h.l++, h.type = h.setRatio ? 2 : 1, h["xs" + h.l] = a || "", y > 0 ? (h.data["xn" + y] = o + l, h.rxp["xn" + y] = s, h["xn" + y] = o, h.plugin || (h.xfirst = new kt(
|
|
1317
|
+
h,
|
|
1318
|
+
"xn" + y,
|
|
1319
|
+
o,
|
|
1320
|
+
l,
|
|
1321
|
+
h.xfirst || h,
|
|
1322
|
+
0,
|
|
1323
|
+
h.n,
|
|
1324
|
+
s,
|
|
1325
|
+
h.pr
|
|
1326
|
+
), h.xfirst.xs0 = 0), h) : (h.data = { s: o + l }, h.rxp = {}, h.s = o, h.c = l, h.r = s, h)) : (h["xs" + y] += o + (a || ""), h);
|
|
1327
|
+
};
|
|
1328
|
+
var Ae = function(i, o) {
|
|
1329
|
+
o = o || {}, this.p = o.prefix && se(i) || i, S[i] = S[this.p] = this, this.format = o.formatter || Pt(o.defaultValue, o.color, o.collapsible, o.multi), o.parser && (this.parse = o.parser), this.clrs = o.color, this.multi = o.multi, this.keyword = o.keyword, this.dflt = o.defaultValue, this.pr = o.priority || 0;
|
|
1330
|
+
}, Ct = Et._registerComplexSpecialProp = function(i, o, l) {
|
|
1331
|
+
typeof o != "object" && (o = { parser: l });
|
|
1332
|
+
var a, s = i.split(","), d = o.defaultValue;
|
|
1333
|
+
for (l = l || [d], a = 0; a < s.length; a++)
|
|
1334
|
+
o.prefix = a === 0 && o.prefix, o.defaultValue = l[a] || d, new Ae(s[a], o);
|
|
1335
|
+
}, ze = Et._registerPluginProp = function(i) {
|
|
1336
|
+
if (!S[i]) {
|
|
1337
|
+
var o = i.charAt(0).toUpperCase() + i.substr(1) + "Plugin";
|
|
1338
|
+
Ct(i, {
|
|
1339
|
+
parser: function(l, a, s, d, h, y, k) {
|
|
1340
|
+
var x = dt.com.greensock.plugins[o];
|
|
1341
|
+
return x ? (x._cssRegister(), S[s].parse(l, a, s, d, h, y, k)) : (ce("Error: " + o + " js file not loaded."), h);
|
|
1342
|
+
}
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1345
|
+
};
|
|
1346
|
+
M = Ae.prototype, M.parseComplex = function(i, o, l, a, s, d) {
|
|
1347
|
+
var h, y, k, x, m, I, N = this.keyword;
|
|
1348
|
+
if (this.multi && (gt.test(l) || gt.test(o) ? (y = o.replace(gt, "|").split("|"), k = l.replace(gt, "|").split("|")) : N && (y = [o], k = [l])), k) {
|
|
1349
|
+
for (x = k.length > y.length ? k.length : y.length, h = 0; x > h; h++)
|
|
1350
|
+
o = y[h] = y[h] || this.dflt, l = k[h] = k[h] || this.dflt, N && (m = o.indexOf(N), I = l.indexOf(N), m !== I && (I === -1 ? y[h] = y[h].split(N).join("") : m === -1 && (y[h] += " " + N)));
|
|
1351
|
+
o = y.join(", "), l = k.join(", ");
|
|
1352
|
+
}
|
|
1353
|
+
return ie(i, this.p, o, l, this.clrs, this.dflt, a, this.pr, s, d);
|
|
1354
|
+
}, M.parse = function(i, o, l, a, s, d, h) {
|
|
1355
|
+
return this.parseComplex(
|
|
1356
|
+
i.style,
|
|
1357
|
+
this.format(wt(i, this.p, z, !1, this.dflt)),
|
|
1358
|
+
this.format(o),
|
|
1359
|
+
s,
|
|
1360
|
+
d
|
|
1361
|
+
);
|
|
1362
|
+
}, H.registerSpecialProp = function(i, o, l) {
|
|
1363
|
+
Ct(i, {
|
|
1364
|
+
parser: function(a, s, d, h, y, k, x) {
|
|
1365
|
+
var m = new kt(a, d, 0, 0, y, 2, d, !1, l);
|
|
1366
|
+
return m.plugin = k, m.setRatio = o(a, s, h._tween, d), m;
|
|
1367
|
+
},
|
|
1368
|
+
priority: l
|
|
1369
|
+
});
|
|
1370
|
+
}, H.useSVGTransformAttr = !0;
|
|
1371
|
+
var ne, Ce = "scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(
|
|
1372
|
+
","
|
|
1373
|
+
), Xt = se("transform"), Pe = te + "transform", me = se("transformOrigin"), Ht = se("perspective") !== null, xe = Et.Transform = function() {
|
|
1374
|
+
this.perspective = parseFloat(H.defaultTransformPerspective) || 0, this.force3D = H.defaultForce3D !== !1 && Ht ? H.defaultForce3D || "auto" : !1;
|
|
1375
|
+
}, je = Dt.SVGElement, Me = function(i, o, l) {
|
|
1376
|
+
var a, s = Wt.createElementNS("http://www.w3.org/2000/svg", i), d = /([a-z])([A-Z])/g;
|
|
1377
|
+
for (a in l)
|
|
1378
|
+
s.setAttributeNS(null, a.replace(d, "$1-$2").toLowerCase(), l[a]);
|
|
1379
|
+
return o.appendChild(s), s;
|
|
1380
|
+
}, fe = Wt.documentElement || {}, Ie = function() {
|
|
1381
|
+
var i, o, l, a = v || /Android/i.test(zt) && !Dt.chrome;
|
|
1382
|
+
return Wt.createElementNS && !a && (i = Me("svg", fe), o = Me("rect", i, { width: 100, height: 50, x: 100 }), l = o.getBoundingClientRect().width, o.style[me] = "50% 50%", o.style[Xt] = "scaleX(0.5)", a = l === o.getBoundingClientRect().width && !(st && Ht), fe.removeChild(i)), a;
|
|
1383
|
+
}(), ke = function(i, o, l, a, s, d) {
|
|
1384
|
+
var h, y, k, x, m, I, N, E, q, X, at, lt, xt, ct, rt = i._gsTransform, ht = Re(i, !0);
|
|
1385
|
+
rt && (xt = rt.xOrigin, ct = rt.yOrigin), (!a || (h = a.split(" ")).length < 2) && (N = i.getBBox(), N.x === 0 && N.y === 0 && N.width + N.height === 0 && (N = {
|
|
1386
|
+
x: parseFloat(
|
|
1387
|
+
i.hasAttribute("x") ? i.getAttribute("x") : i.hasAttribute("cx") ? i.getAttribute("cx") : 0
|
|
1388
|
+
) || 0,
|
|
1389
|
+
y: parseFloat(
|
|
1390
|
+
i.hasAttribute("y") ? i.getAttribute("y") : i.hasAttribute("cy") ? i.getAttribute("cy") : 0
|
|
1391
|
+
) || 0,
|
|
1392
|
+
width: 0,
|
|
1393
|
+
height: 0
|
|
1394
|
+
}), o = c(o).split(" "), h = [
|
|
1395
|
+
(o[0].indexOf("%") !== -1 ? parseFloat(o[0]) / 100 * N.width : parseFloat(o[0])) + N.x,
|
|
1396
|
+
(o[1].indexOf("%") !== -1 ? parseFloat(o[1]) / 100 * N.height : parseFloat(o[1])) + N.y
|
|
1397
|
+
]), l.xOrigin = x = parseFloat(h[0]), l.yOrigin = m = parseFloat(h[1]), a && ht !== Se && (I = ht[0], N = ht[1], E = ht[2], q = ht[3], X = ht[4], at = ht[5], lt = I * q - N * E, lt && (y = x * (q / lt) + m * (-E / lt) + (E * at - q * X) / lt, k = x * (-N / lt) + m * (I / lt) - (I * at - N * X) / lt, x = l.xOrigin = h[0] = y, m = l.yOrigin = h[1] = k)), rt && (d && (l.xOffset = rt.xOffset, l.yOffset = rt.yOffset, rt = l), s || s !== !1 && H.defaultSmoothOrigin !== !1 ? (y = x - xt, k = m - ct, rt.xOffset += y * ht[0] + k * ht[2] - y, rt.yOffset += y * ht[1] + k * ht[3] - k) : rt.xOffset = rt.yOffset = 0), d || i.setAttribute("data-svg-origin", h.join(" "));
|
|
1398
|
+
}, De = function(i) {
|
|
1399
|
+
var o, l = ae(
|
|
1400
|
+
"svg",
|
|
1401
|
+
this.ownerSVGElement && this.ownerSVGElement.getAttribute("xmlns") || "http://www.w3.org/2000/svg"
|
|
1402
|
+
), a = this.parentNode, s = this.nextSibling, d = this.style.cssText;
|
|
1403
|
+
if (fe.appendChild(l), l.appendChild(this), this.style.display = "block", i)
|
|
1404
|
+
try {
|
|
1405
|
+
o = this.getBBox(), this._originalGetBBox = this.getBBox, this.getBBox = De;
|
|
1406
|
+
} catch {
|
|
1407
|
+
}
|
|
1408
|
+
else
|
|
1409
|
+
this._originalGetBBox && (o = this._originalGetBBox());
|
|
1410
|
+
return s ? a.insertBefore(this, s) : a.appendChild(this), fe.removeChild(l), this.style.cssText = d, o;
|
|
1411
|
+
}, Xe = function(i) {
|
|
1412
|
+
try {
|
|
1413
|
+
return i.getBBox();
|
|
1414
|
+
} catch {
|
|
1415
|
+
return De.call(i, !0);
|
|
1416
|
+
}
|
|
1417
|
+
}, Oe = function(i) {
|
|
1418
|
+
return !(!je || !i.getCTM || i.parentNode && !i.ownerSVGElement || !Xe(i));
|
|
1419
|
+
}, Se = [1, 0, 0, 1, 0, 0], Re = function(i, o) {
|
|
1420
|
+
var l, a, s, d, h, y, k = i._gsTransform || new xe(), x = 1e5, m = i.style;
|
|
1421
|
+
if (Xt ? a = wt(i, Pe, null, !0) : i.currentStyle && (a = i.currentStyle.filter.match(ot), a = a && a.length === 4 ? [
|
|
1422
|
+
a[0].substr(4),
|
|
1423
|
+
Number(a[2].substr(4)),
|
|
1424
|
+
Number(a[1].substr(4)),
|
|
1425
|
+
a[3].substr(4),
|
|
1426
|
+
k.x || 0,
|
|
1427
|
+
k.y || 0
|
|
1428
|
+
].join(",") : ""), l = !a || a === "none" || a === "matrix(1, 0, 0, 1, 0, 0)", !Xt || !(y = !jt(i) || jt(i).display === "none") && i.parentNode || (y && (d = m.display, m.display = "block"), i.parentNode || (h = 1, fe.appendChild(i)), a = wt(i, Pe, null, !0), l = !a || a === "none" || a === "matrix(1, 0, 0, 1, 0, 0)", d ? m.display = d : y && ge(m, "display"), h && fe.removeChild(i)), (k.svg || i.getCTM && Oe(i)) && (l && (m[Xt] + "").indexOf("matrix") !== -1 && (a = m[Xt], l = 0), s = i.getAttribute("transform"), l && s && (s = i.transform.baseVal.consolidate().matrix, a = "matrix(" + s.a + "," + s.b + "," + s.c + "," + s.d + "," + s.e + "," + s.f + ")", l = 0)), l)
|
|
1429
|
+
return Se;
|
|
1430
|
+
for (s = (a || "").match(t) || [], It = s.length; --It > -1; )
|
|
1431
|
+
d = Number(s[It]), s[It] = (h = d - (d |= 0)) ? (h * x + (0 > h ? -0.5 : 0.5) | 0) / x + d : d;
|
|
1432
|
+
return o && s.length > 6 ? [s[0], s[1], s[4], s[5], s[12], s[13]] : s;
|
|
1433
|
+
}, de = Et.getTransform = function(i, o, l, a) {
|
|
1434
|
+
if (i._gsTransform && l && !a)
|
|
1435
|
+
return i._gsTransform;
|
|
1436
|
+
var s, d, h, y, k, x, m = l ? i._gsTransform || new xe() : new xe(), I = m.scaleX < 0, N = 2e-5, E = 1e5, q = Ht && (parseFloat(wt(i, me, o, !1, "0 0 0").split(" ")[2]) || m.zOrigin) || 0, X = parseFloat(H.defaultTransformPerspective) || 0;
|
|
1437
|
+
if (m.svg = !(!i.getCTM || !Oe(i)), m.svg && (ke(
|
|
1438
|
+
i,
|
|
1439
|
+
wt(i, me, o, !1, "50% 50%") + "",
|
|
1440
|
+
m,
|
|
1441
|
+
i.getAttribute("data-svg-origin")
|
|
1442
|
+
), ne = H.useSVGTransformAttr || Ie), s = Re(i), s !== Se) {
|
|
1443
|
+
if (s.length === 16) {
|
|
1444
|
+
var at, lt, xt, ct, rt, ht = s[0], B = s[1], Tt = s[2], et = s[3], G = s[4], nt = s[5], Qt = s[6], pe = s[7], Mt = s[8], Rt = s[9], Ft = s[10], Lt = s[12], Nt = s[13], Ut = s[14], Bt = s[11], St = Math.atan2(Qt, Ft);
|
|
1445
|
+
m.zOrigin && (Ut = -m.zOrigin, Lt = Mt * Ut - s[12], Nt = Rt * Ut - s[13], Ut = Ft * Ut + m.zOrigin - s[14]), m.rotationX = St * At, St && (ct = Math.cos(-St), rt = Math.sin(-St), at = G * ct + Mt * rt, lt = nt * ct + Rt * rt, xt = Qt * ct + Ft * rt, Mt = G * -rt + Mt * ct, Rt = nt * -rt + Rt * ct, Ft = Qt * -rt + Ft * ct, Bt = pe * -rt + Bt * ct, G = at, nt = lt, Qt = xt), St = Math.atan2(-Tt, Ft), m.rotationY = St * At, St && (ct = Math.cos(-St), rt = Math.sin(-St), at = ht * ct - Mt * rt, lt = B * ct - Rt * rt, xt = Tt * ct - Ft * rt, Rt = B * rt + Rt * ct, Ft = Tt * rt + Ft * ct, Bt = et * rt + Bt * ct, ht = at, B = lt, Tt = xt), St = Math.atan2(B, ht), m.rotation = St * At, St && (ct = Math.cos(St), rt = Math.sin(St), at = ht * ct + B * rt, lt = G * ct + nt * rt, xt = Mt * ct + Rt * rt, B = B * ct - ht * rt, nt = nt * ct - G * rt, Rt = Rt * ct - Mt * rt, ht = at, G = lt, Mt = xt), m.rotationX && Math.abs(m.rotationX) + Math.abs(m.rotation) > 359.9 && (m.rotationX = m.rotation = 0, m.rotationY = 180 - m.rotationY), St = Math.atan2(G, nt), m.scaleX = (Math.sqrt(ht * ht + B * B + Tt * Tt) * E + 0.5 | 0) / E, m.scaleY = (Math.sqrt(nt * nt + Qt * Qt) * E + 0.5 | 0) / E, m.scaleZ = (Math.sqrt(Mt * Mt + Rt * Rt + Ft * Ft) * E + 0.5 | 0) / E, ht /= m.scaleX, G /= m.scaleY, B /= m.scaleX, nt /= m.scaleY, Math.abs(St) > N ? (m.skewX = St * At, G = 0, m.skewType !== "simple" && (m.scaleY *= 1 / Math.cos(St))) : m.skewX = 0, m.perspective = Bt ? 1 / (0 > Bt ? -Bt : Bt) : 0, m.x = Lt, m.y = Nt, m.z = Ut, m.svg && (m.x -= m.xOrigin - (m.xOrigin * ht - m.yOrigin * G), m.y -= m.yOrigin - (m.yOrigin * B - m.xOrigin * nt));
|
|
1446
|
+
} else if (!Ht || a || !s.length || m.x !== s[4] || m.y !== s[5] || !m.rotationX && !m.rotationY) {
|
|
1447
|
+
var ye = s.length >= 6, qt = ye ? s[0] : 1, $t = s[1] || 0, ve = s[2] || 0, Te = ye ? s[3] : 1;
|
|
1448
|
+
m.x = s[4] || 0, m.y = s[5] || 0, h = Math.sqrt(qt * qt + $t * $t), y = Math.sqrt(Te * Te + ve * ve), k = qt || $t ? Math.atan2($t, qt) * At : m.rotation || 0, x = ve || Te ? Math.atan2(ve, Te) * At + k : m.skewX || 0, m.scaleX = h, m.scaleY = y, m.rotation = k, m.skewX = x, Ht && (m.rotationX = m.rotationY = m.z = 0, m.perspective = X, m.scaleZ = 1), m.svg && (m.x -= m.xOrigin - (m.xOrigin * qt + m.yOrigin * ve), m.y -= m.yOrigin - (m.xOrigin * $t + m.yOrigin * Te));
|
|
1449
|
+
}
|
|
1450
|
+
Math.abs(m.skewX) > 90 && Math.abs(m.skewX) < 270 && (I ? (m.scaleX *= -1, m.skewX += m.rotation <= 0 ? 180 : -180, m.rotation += m.rotation <= 0 ? 180 : -180) : (m.scaleY *= -1, m.skewX += m.skewX <= 0 ? 180 : -180)), m.zOrigin = q;
|
|
1451
|
+
for (d in m)
|
|
1452
|
+
m[d] < N && m[d] > -N && (m[d] = 0);
|
|
1453
|
+
}
|
|
1454
|
+
return l && (i._gsTransform = m, m.svg && (ne && i.style[Xt] ? Q.delayedCall(1e-3, function() {
|
|
1455
|
+
ge(i.style, Xt);
|
|
1456
|
+
}) : !ne && i.getAttribute("transform") && Q.delayedCall(1e-3, function() {
|
|
1457
|
+
i.removeAttribute("transform");
|
|
1458
|
+
}))), m;
|
|
1459
|
+
}, Le = function(i) {
|
|
1460
|
+
var o, l, a = this.data, s = -a.rotation * yt, d = s + a.skewX * yt, h = 1e5, y = (Math.cos(s) * a.scaleX * h | 0) / h, k = (Math.sin(s) * a.scaleX * h | 0) / h, x = (Math.sin(d) * -a.scaleY * h | 0) / h, m = (Math.cos(d) * a.scaleY * h | 0) / h, I = this.t.style, N = this.t.currentStyle;
|
|
1461
|
+
if (N) {
|
|
1462
|
+
l = k, k = -x, x = -l, o = N.filter, I.filter = "";
|
|
1463
|
+
var E, q, X = this.t.offsetWidth, at = this.t.offsetHeight, lt = N.position !== "absolute", xt = "progid:DXImageTransform.Microsoft.Matrix(M11=" + y + ", M12=" + k + ", M21=" + x + ", M22=" + m, ct = a.x + X * a.xPercent / 100, rt = a.y + at * a.yPercent / 100;
|
|
1464
|
+
if (a.ox != null && (E = (a.oxp ? X * a.ox * 0.01 : a.ox) - X / 2, q = (a.oyp ? at * a.oy * 0.01 : a.oy) - at / 2, ct += E - (E * y + q * k), rt += q - (E * x + q * m)), lt ? (E = X / 2, q = at / 2, xt += ", Dx=" + (E - (E * y + q * k) + ct) + ", Dy=" + (q - (E * x + q * m) + rt) + ")") : xt += ", sizingMethod='auto expand')", o.indexOf("DXImageTransform.Microsoft.Matrix(") !== -1 ? I.filter = o.replace(J, xt) : I.filter = xt + " " + o, (i === 0 || i === 1) && y === 1 && k === 0 && x === 0 && m === 1 && (lt && xt.indexOf("Dx=0, Dy=0") === -1 || T.test(o) && parseFloat(RegExp.$1) !== 100 || o.indexOf(o.indexOf("Alpha")) === -1 && I.removeAttribute("filter")), !lt) {
|
|
1465
|
+
var ht, B, Tt, et = 8 > v ? 1 : -1;
|
|
1466
|
+
for (E = a.ieOffsetX || 0, q = a.ieOffsetY || 0, a.ieOffsetX = Math.round(
|
|
1467
|
+
(X - ((0 > y ? -y : y) * X + (0 > k ? -k : k) * at)) / 2 + ct
|
|
1468
|
+
), a.ieOffsetY = Math.round(
|
|
1469
|
+
(at - ((0 > m ? -m : m) * at + (0 > x ? -x : x) * X)) / 2 + rt
|
|
1470
|
+
), It = 0; 4 > It; It++)
|
|
1471
|
+
B = u[It], ht = N[B], l = ht.indexOf("px") !== -1 ? parseFloat(ht) : Vt(this.t, B, parseFloat(ht), ht.replace(p, "")) || 0, Tt = l !== a[B] ? 2 > It ? -a.ieOffsetX : -a.ieOffsetY : 2 > It ? E - a.ieOffsetX : q - a.ieOffsetY, I[B] = (a[B] = Math.round(
|
|
1472
|
+
l - Tt * (It === 0 || It === 2 ? 1 : et)
|
|
1473
|
+
)) + "px";
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
}, Ne = Et.set3DTransformRatio = Et.setTransformRatio = function(i) {
|
|
1477
|
+
var o, l, a, s, d, h, y, k, x, m, I, N, E, q, X, at, lt, xt, ct, rt, ht, B, Tt, et = this.data, G = this.t.style, nt = et.rotation, Qt = et.rotationX, pe = et.rotationY, Mt = et.scaleX, Rt = et.scaleY, Ft = et.scaleZ, Lt = et.x, Nt = et.y, Ut = et.z, Bt = et.svg, St = et.perspective, ye = et.force3D, qt = et.skewY, $t = et.skewX;
|
|
1478
|
+
if (qt && ($t += qt, nt += qt), ((i === 1 || i === 0) && ye === "auto" && (this.tween._totalTime === this.tween._totalDuration || !this.tween._totalTime) || !ye) && !Ut && !St && !pe && !Qt && Ft === 1 || ne && Bt || !Ht)
|
|
1479
|
+
return void (nt || $t || Bt ? (nt *= yt, B = $t * yt, Tt = 1e5, l = Math.cos(nt) * Mt, d = Math.sin(nt) * Mt, a = Math.sin(nt - B) * -Rt, h = Math.cos(nt - B) * Rt, B && et.skewType === "simple" && (o = Math.tan(B - qt * yt), o = Math.sqrt(1 + o * o), a *= o, h *= o, qt && (o = Math.tan(qt * yt), o = Math.sqrt(1 + o * o), l *= o, d *= o)), Bt && (Lt += et.xOrigin - (et.xOrigin * l + et.yOrigin * a) + et.xOffset, Nt += et.yOrigin - (et.xOrigin * d + et.yOrigin * h) + et.yOffset, ne && (et.xPercent || et.yPercent) && (X = this.t.getBBox(), Lt += 0.01 * et.xPercent * X.width, Nt += 0.01 * et.yPercent * X.height), X = 1e-6, X > Lt && Lt > -X && (Lt = 0), X > Nt && Nt > -X && (Nt = 0)), ct = (l * Tt | 0) / Tt + "," + (d * Tt | 0) / Tt + "," + (a * Tt | 0) / Tt + "," + (h * Tt | 0) / Tt + "," + Lt + "," + Nt + ")", Bt && ne ? this.t.setAttribute("transform", "matrix(" + ct) : G[Xt] = (et.xPercent || et.yPercent ? "translate(" + et.xPercent + "%," + et.yPercent + "%) matrix(" : "matrix(") + ct) : G[Xt] = (et.xPercent || et.yPercent ? "translate(" + et.xPercent + "%," + et.yPercent + "%) matrix(" : "matrix(") + Mt + ",0,0," + Rt + "," + Lt + "," + Nt + ")");
|
|
1480
|
+
if (st && (X = 1e-4, X > Mt && Mt > -X && (Mt = Ft = 2e-5), X > Rt && Rt > -X && (Rt = Ft = 2e-5), !St || et.z || et.rotationX || et.rotationY || (St = 0)), nt || $t)
|
|
1481
|
+
nt *= yt, at = l = Math.cos(nt), lt = d = Math.sin(nt), $t && (nt -= $t * yt, at = Math.cos(nt), lt = Math.sin(nt), et.skewType === "simple" && (o = Math.tan(($t - qt) * yt), o = Math.sqrt(1 + o * o), at *= o, lt *= o, et.skewY && (o = Math.tan(qt * yt), o = Math.sqrt(1 + o * o), l *= o, d *= o))), a = -lt, h = at;
|
|
1482
|
+
else {
|
|
1483
|
+
if (!(pe || Qt || Ft !== 1 || St || Bt))
|
|
1484
|
+
return void (G[Xt] = (et.xPercent || et.yPercent ? "translate(" + et.xPercent + "%," + et.yPercent + "%) translate3d(" : "translate3d(") + Lt + "px," + Nt + "px," + Ut + "px)" + (Mt !== 1 || Rt !== 1 ? " scale(" + Mt + "," + Rt + ")" : ""));
|
|
1485
|
+
l = h = 1, a = d = 0;
|
|
1486
|
+
}
|
|
1487
|
+
m = 1, s = y = k = x = I = N = 0, E = St ? -1 / St : 0, q = et.zOrigin, X = 1e-6, rt = ",", ht = "0", nt = pe * yt, nt && (at = Math.cos(nt), lt = Math.sin(nt), k = -lt, I = E * -lt, s = l * lt, y = d * lt, m = at, E *= at, l *= at, d *= at), nt = Qt * yt, nt && (at = Math.cos(nt), lt = Math.sin(nt), o = a * at + s * lt, xt = h * at + y * lt, x = m * lt, N = E * lt, s = a * -lt + s * at, y = h * -lt + y * at, m *= at, E *= at, a = o, h = xt), Ft !== 1 && (s *= Ft, y *= Ft, m *= Ft, E *= Ft), Rt !== 1 && (a *= Rt, h *= Rt, x *= Rt, N *= Rt), Mt !== 1 && (l *= Mt, d *= Mt, k *= Mt, I *= Mt), (q || Bt) && (q && (Lt += s * -q, Nt += y * -q, Ut += m * -q + q), Bt && (Lt += et.xOrigin - (et.xOrigin * l + et.yOrigin * a) + et.xOffset, Nt += et.yOrigin - (et.xOrigin * d + et.yOrigin * h) + et.yOffset), X > Lt && Lt > -X && (Lt = ht), X > Nt && Nt > -X && (Nt = ht), X > Ut && Ut > -X && (Ut = 0)), ct = et.xPercent || et.yPercent ? "translate(" + et.xPercent + "%," + et.yPercent + "%) matrix3d(" : "matrix3d(", ct += (X > l && l > -X ? ht : l) + rt + (X > d && d > -X ? ht : d) + rt + (X > k && k > -X ? ht : k), ct += rt + (X > I && I > -X ? ht : I) + rt + (X > a && a > -X ? ht : a) + rt + (X > h && h > -X ? ht : h), Qt || pe || Ft !== 1 ? (ct += rt + (X > x && x > -X ? ht : x) + rt + (X > N && N > -X ? ht : N) + rt + (X > s && s > -X ? ht : s), ct += rt + (X > y && y > -X ? ht : y) + rt + (X > m && m > -X ? ht : m) + rt + (X > E && E > -X ? ht : E) + rt) : ct += ",0,0,0,0,1,0,", ct += Lt + rt + Nt + rt + Ut + rt + (St ? 1 + -Ut / St : 1) + ")", G[Xt] = ct;
|
|
1488
|
+
};
|
|
1489
|
+
M = xe.prototype, M.x = M.y = M.z = M.skewX = M.skewY = M.rotation = M.rotationX = M.rotationY = M.zOrigin = M.xPercent = M.yPercent = M.xOffset = M.yOffset = 0, M.scaleX = M.scaleY = M.scaleZ = 1, Ct(
|
|
1490
|
+
"transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",
|
|
1491
|
+
{
|
|
1492
|
+
parser: function(i, o, l, a, s, d, h) {
|
|
1493
|
+
if (a._lastParsedTransform === h)
|
|
1494
|
+
return s;
|
|
1495
|
+
a._lastParsedTransform = h;
|
|
1496
|
+
var y, k = h.scale && typeof h.scale == "function" ? h.scale : 0;
|
|
1497
|
+
typeof h[l] == "function" && (y = h[l], h[l] = o), k && (h.scale = k(e, i));
|
|
1498
|
+
var x, m, I, N, E, q, X, at, lt, xt = i._gsTransform, ct = i.style, rt = 1e-6, ht = Ce.length, B = h, Tt = {}, et = "transformOrigin", G = de(i, z, !0, B.parseTransform), nt = B.transform && (typeof B.transform == "function" ? B.transform(e, P) : B.transform);
|
|
1499
|
+
if (G.skewType = B.skewType || G.skewType || H.defaultSkewType, a._transform = G, "rotationZ" in B && (B.rotation = B.rotationZ), nt && typeof nt == "string" && Xt)
|
|
1500
|
+
m = bt.style, m[Xt] = nt, m.display = "block", m.position = "absolute", nt.indexOf("%") !== -1 && (m.width = wt(i, "width"), m.height = wt(i, "height")), Wt.body.appendChild(bt), x = de(bt, null, !1), G.skewType === "simple" && (x.scaleY *= Math.cos(x.skewX * yt)), G.svg && (q = G.xOrigin, X = G.yOrigin, x.x -= G.xOffset, x.y -= G.yOffset, (B.transformOrigin || B.svgOrigin) && (nt = {}, ke(
|
|
1501
|
+
i,
|
|
1502
|
+
c(B.transformOrigin),
|
|
1503
|
+
nt,
|
|
1504
|
+
B.svgOrigin,
|
|
1505
|
+
B.smoothOrigin,
|
|
1506
|
+
!0
|
|
1507
|
+
), q = nt.xOrigin, X = nt.yOrigin, x.x -= nt.xOffset - G.xOffset, x.y -= nt.yOffset - G.yOffset), (q || X) && (at = Re(bt, !0), x.x -= q - (q * at[0] + X * at[2]), x.y -= X - (q * at[1] + X * at[3]))), Wt.body.removeChild(bt), x.perspective || (x.perspective = G.perspective), B.xPercent != null && (x.xPercent = C(B.xPercent, G.xPercent)), B.yPercent != null && (x.yPercent = C(B.yPercent, G.yPercent));
|
|
1508
|
+
else if (typeof B == "object") {
|
|
1509
|
+
if (x = {
|
|
1510
|
+
scaleX: C(
|
|
1511
|
+
B.scaleX != null ? B.scaleX : B.scale,
|
|
1512
|
+
G.scaleX
|
|
1513
|
+
),
|
|
1514
|
+
scaleY: C(
|
|
1515
|
+
B.scaleY != null ? B.scaleY : B.scale,
|
|
1516
|
+
G.scaleY
|
|
1517
|
+
),
|
|
1518
|
+
scaleZ: C(B.scaleZ, G.scaleZ),
|
|
1519
|
+
x: C(B.x, G.x),
|
|
1520
|
+
y: C(B.y, G.y),
|
|
1521
|
+
z: C(B.z, G.z),
|
|
1522
|
+
xPercent: C(B.xPercent, G.xPercent),
|
|
1523
|
+
yPercent: C(B.yPercent, G.yPercent),
|
|
1524
|
+
perspective: C(B.transformPerspective, G.perspective)
|
|
1525
|
+
}, E = B.directionalRotation, E != null)
|
|
1526
|
+
if (typeof E == "object")
|
|
1527
|
+
for (m in E)
|
|
1528
|
+
B[m] = E[m];
|
|
1529
|
+
else
|
|
1530
|
+
B.rotation = E;
|
|
1531
|
+
typeof B.x == "string" && B.x.indexOf("%") !== -1 && (x.x = 0, x.xPercent = C(B.x, G.xPercent)), typeof B.y == "string" && B.y.indexOf("%") !== -1 && (x.y = 0, x.yPercent = C(B.y, G.yPercent)), x.rotation = j(
|
|
1532
|
+
"rotation" in B ? B.rotation : "shortRotation" in B ? B.shortRotation + "_short" : G.rotation,
|
|
1533
|
+
G.rotation,
|
|
1534
|
+
"rotation",
|
|
1535
|
+
Tt
|
|
1536
|
+
), Ht && (x.rotationX = j(
|
|
1537
|
+
"rotationX" in B ? B.rotationX : "shortRotationX" in B ? B.shortRotationX + "_short" : G.rotationX || 0,
|
|
1538
|
+
G.rotationX,
|
|
1539
|
+
"rotationX",
|
|
1540
|
+
Tt
|
|
1541
|
+
), x.rotationY = j(
|
|
1542
|
+
"rotationY" in B ? B.rotationY : "shortRotationY" in B ? B.shortRotationY + "_short" : G.rotationY || 0,
|
|
1543
|
+
G.rotationY,
|
|
1544
|
+
"rotationY",
|
|
1545
|
+
Tt
|
|
1546
|
+
)), x.skewX = j(B.skewX, G.skewX), x.skewY = j(B.skewY, G.skewY);
|
|
1547
|
+
}
|
|
1548
|
+
for (Ht && B.force3D != null && (G.force3D = B.force3D, N = !0), I = G.force3D || G.z || G.rotationX || G.rotationY || x.z || x.rotationX || x.rotationY || x.perspective, I || B.scale == null || (x.scaleZ = 1); --ht > -1; )
|
|
1549
|
+
lt = Ce[ht], nt = x[lt] - G[lt], (nt > rt || -rt > nt || B[lt] != null || Jt[lt] != null) && (N = !0, s = new kt(G, lt, G[lt], nt, s), lt in Tt && (s.e = Tt[lt]), s.xs0 = 0, s.plugin = d, a._overwriteProps.push(s.n));
|
|
1550
|
+
return nt = B.transformOrigin, G.svg && (nt || B.svgOrigin) && (q = G.xOffset, X = G.yOffset, ke(i, c(nt), x, B.svgOrigin, B.smoothOrigin), s = he(
|
|
1551
|
+
G,
|
|
1552
|
+
"xOrigin",
|
|
1553
|
+
(xt ? G : x).xOrigin,
|
|
1554
|
+
x.xOrigin,
|
|
1555
|
+
s,
|
|
1556
|
+
et
|
|
1557
|
+
), s = he(
|
|
1558
|
+
G,
|
|
1559
|
+
"yOrigin",
|
|
1560
|
+
(xt ? G : x).yOrigin,
|
|
1561
|
+
x.yOrigin,
|
|
1562
|
+
s,
|
|
1563
|
+
et
|
|
1564
|
+
), (q !== G.xOffset || X !== G.yOffset) && (s = he(
|
|
1565
|
+
G,
|
|
1566
|
+
"xOffset",
|
|
1567
|
+
xt ? q : G.xOffset,
|
|
1568
|
+
G.xOffset,
|
|
1569
|
+
s,
|
|
1570
|
+
et
|
|
1571
|
+
), s = he(
|
|
1572
|
+
G,
|
|
1573
|
+
"yOffset",
|
|
1574
|
+
xt ? X : G.yOffset,
|
|
1575
|
+
G.yOffset,
|
|
1576
|
+
s,
|
|
1577
|
+
et
|
|
1578
|
+
)), nt = "0px 0px"), (nt || Ht && I && G.zOrigin) && (Xt ? (N = !0, lt = me, nt = (nt || wt(i, lt, z, !1, "50% 50%")) + "", s = new kt(ct, lt, 0, 0, s, -1, et), s.b = ct[lt], s.plugin = d, Ht ? (m = G.zOrigin, nt = nt.split(" "), G.zOrigin = (nt.length > 2 && (m === 0 || nt[2] !== "0px") ? parseFloat(nt[2]) : m) || 0, s.xs0 = s.e = nt[0] + " " + (nt[1] || "50%") + " 0px", s = new kt(G, "zOrigin", 0, 0, s, -1, s.n), s.b = m, s.xs0 = s.e = G.zOrigin) : s.xs0 = s.e = nt) : c(nt + "", G)), N && (a._transformType = G.svg && ne || !I && this._transformType !== 3 ? 2 : 3), y && (h[l] = y), k && (h.scale = k), s;
|
|
1579
|
+
},
|
|
1580
|
+
prefix: !0
|
|
1581
|
+
}
|
|
1582
|
+
), Ct("boxShadow", {
|
|
1583
|
+
defaultValue: "0px 0px 0px 0px #999",
|
|
1584
|
+
prefix: !0,
|
|
1585
|
+
color: !0,
|
|
1586
|
+
multi: !0,
|
|
1587
|
+
keyword: "inset"
|
|
1588
|
+
}), Ct("borderRadius", {
|
|
1589
|
+
defaultValue: "0px",
|
|
1590
|
+
parser: function(i, o, l, a, s, d) {
|
|
1591
|
+
o = this.format(o);
|
|
1592
|
+
var h, y, k, x, m, I, N, E, q, X, at, lt, xt, ct, rt, ht, B = [
|
|
1593
|
+
"borderTopLeftRadius",
|
|
1594
|
+
"borderTopRightRadius",
|
|
1595
|
+
"borderBottomRightRadius",
|
|
1596
|
+
"borderBottomLeftRadius"
|
|
1597
|
+
], Tt = i.style;
|
|
1598
|
+
for (q = parseFloat(i.offsetWidth), X = parseFloat(i.offsetHeight), h = o.split(" "), y = 0; y < B.length; y++)
|
|
1599
|
+
this.p.indexOf("border") && (B[y] = se(B[y])), m = x = wt(i, B[y], z, !1, "0px"), m.indexOf(" ") !== -1 && (x = m.split(" "), m = x[0], x = x[1]), I = k = h[y], N = parseFloat(m), lt = m.substr((N + "").length), xt = I.charAt(1) === "=", xt ? (E = parseInt(I.charAt(0) + "1", 10), I = I.substr(2), E *= parseFloat(I), at = I.substr((E + "").length - (0 > E ? 1 : 0)) || "") : (E = parseFloat(I), at = I.substr((E + "").length)), at === "" && (at = ut[l] || lt), at !== lt && (ct = Vt(i, "borderLeft", N, lt), rt = Vt(i, "borderTop", N, lt), at === "%" ? (m = ct / q * 100 + "%", x = rt / X * 100 + "%") : at === "em" ? (ht = Vt(i, "borderLeft", 1, "em"), m = ct / ht + "em", x = rt / ht + "em") : (m = ct + "px", x = rt + "px"), xt && (I = parseFloat(m) + E + at, k = parseFloat(x) + E + at)), s = ie(Tt, B[y], m + " " + x, I + " " + k, !1, "0px", s);
|
|
1600
|
+
return s;
|
|
1601
|
+
},
|
|
1602
|
+
prefix: !0,
|
|
1603
|
+
formatter: Pt("0px 0px 0px 0px", !1, !0)
|
|
1604
|
+
}), Ct(
|
|
1605
|
+
"borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",
|
|
1606
|
+
{
|
|
1607
|
+
defaultValue: "0px",
|
|
1608
|
+
parser: function(i, o, l, a, s, d) {
|
|
1609
|
+
return ie(
|
|
1610
|
+
i.style,
|
|
1611
|
+
l,
|
|
1612
|
+
this.format(wt(i, l, z, !1, "0px 0px")),
|
|
1613
|
+
this.format(o),
|
|
1614
|
+
!1,
|
|
1615
|
+
"0px",
|
|
1616
|
+
s
|
|
1617
|
+
);
|
|
1618
|
+
},
|
|
1619
|
+
prefix: !0,
|
|
1620
|
+
formatter: Pt("0px 0px", !1, !0)
|
|
1621
|
+
}
|
|
1622
|
+
), Ct("backgroundPosition", {
|
|
1623
|
+
defaultValue: "0 0",
|
|
1624
|
+
parser: function(i, o, l, a, s, d) {
|
|
1625
|
+
var h, y, k, x, m, I, N = "background-position", E = z || jt(i, null), q = this.format(
|
|
1626
|
+
(E ? v ? E.getPropertyValue(N + "-x") + " " + E.getPropertyValue(N + "-y") : E.getPropertyValue(N) : i.currentStyle.backgroundPositionX + " " + i.currentStyle.backgroundPositionY) || "0 0"
|
|
1627
|
+
), X = this.format(o);
|
|
1628
|
+
if (q.indexOf("%") !== -1 != (X.indexOf("%") !== -1) && X.split(",").length < 2 && (I = wt(i, "backgroundImage").replace(K, ""), I && I !== "none")) {
|
|
1629
|
+
for (h = q.split(" "), y = X.split(" "), le.setAttribute("src", I), k = 2; --k > -1; )
|
|
1630
|
+
q = h[k], x = q.indexOf("%") !== -1, x !== (y[k].indexOf("%") !== -1) && (m = k === 0 ? i.offsetWidth - le.width : i.offsetHeight - le.height, h[k] = x ? parseFloat(q) / 100 * m + "px" : parseFloat(q) / m * 100 + "%");
|
|
1631
|
+
q = h.join(" ");
|
|
1632
|
+
}
|
|
1633
|
+
return this.parseComplex(i.style, q, X, s, d);
|
|
1634
|
+
},
|
|
1635
|
+
formatter: c
|
|
1636
|
+
}), Ct("backgroundSize", {
|
|
1637
|
+
defaultValue: "0 0",
|
|
1638
|
+
formatter: function(i) {
|
|
1639
|
+
return i += "", i.substr(0, 2) === "co" ? i : c(i.indexOf(" ") === -1 ? i + " " + i : i);
|
|
1640
|
+
}
|
|
1641
|
+
}), Ct("perspective", { defaultValue: "0px", prefix: !0 }), Ct("perspectiveOrigin", { defaultValue: "50% 50%", prefix: !0 }), Ct("transformStyle", { prefix: !0 }), Ct("backfaceVisibility", { prefix: !0 }), Ct("userSelect", { prefix: !0 }), Ct("margin", {
|
|
1642
|
+
parser: Ot("marginTop,marginRight,marginBottom,marginLeft")
|
|
1643
|
+
}), Ct("padding", {
|
|
1644
|
+
parser: Ot("paddingTop,paddingRight,paddingBottom,paddingLeft")
|
|
1645
|
+
}), Ct("clip", {
|
|
1646
|
+
defaultValue: "rect(0px,0px,0px,0px)",
|
|
1647
|
+
parser: function(i, o, l, a, s, d) {
|
|
1648
|
+
var h, y, k;
|
|
1649
|
+
return 9 > v ? (y = i.currentStyle, k = 8 > v ? " " : ",", h = "rect(" + y.clipTop + k + y.clipRight + k + y.clipBottom + k + y.clipLeft + ")", o = this.format(o).split(",").join(k)) : (h = this.format(wt(i, this.p, z, !1, this.dflt)), o = this.format(o)), this.parseComplex(i.style, h, o, s, d);
|
|
1650
|
+
}
|
|
1651
|
+
}), Ct("textShadow", {
|
|
1652
|
+
defaultValue: "0px 0px 0px #999",
|
|
1653
|
+
color: !0,
|
|
1654
|
+
multi: !0
|
|
1655
|
+
}), Ct("autoRound,strictUnits", {
|
|
1656
|
+
parser: function(i, o, l, a, s) {
|
|
1657
|
+
return s;
|
|
1658
|
+
}
|
|
1659
|
+
}), Ct("border", {
|
|
1660
|
+
defaultValue: "0px solid #000",
|
|
1661
|
+
parser: function(i, o, l, a, s, d) {
|
|
1662
|
+
var h = wt(i, "borderTopWidth", z, !1, "0px"), y = this.format(o).split(" "), k = y[0].replace(p, "");
|
|
1663
|
+
return k !== "px" && (h = parseFloat(h) / Vt(i, "borderTopWidth", 1, k) + k), this.parseComplex(
|
|
1664
|
+
i.style,
|
|
1665
|
+
this.format(
|
|
1666
|
+
h + " " + wt(i, "borderTopStyle", z, !1, "solid") + " " + wt(i, "borderTopColor", z, !1, "#000")
|
|
1667
|
+
),
|
|
1668
|
+
y.join(" "),
|
|
1669
|
+
s,
|
|
1670
|
+
d
|
|
1671
|
+
);
|
|
1672
|
+
},
|
|
1673
|
+
color: !0,
|
|
1674
|
+
formatter: function(i) {
|
|
1675
|
+
var o = i.split(" ");
|
|
1676
|
+
return o[0] + " " + (o[1] || "solid") + " " + (i.match(pt) || ["#000"])[0];
|
|
1677
|
+
}
|
|
1678
|
+
}), Ct("borderWidth", {
|
|
1679
|
+
parser: Ot(
|
|
1680
|
+
"borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth"
|
|
1681
|
+
)
|
|
1682
|
+
}), Ct("float,cssFloat,styleFloat", {
|
|
1683
|
+
parser: function(i, o, l, a, s, d) {
|
|
1684
|
+
var h = i.style, y = "cssFloat" in h ? "cssFloat" : "styleFloat";
|
|
1685
|
+
return new kt(h, y, 0, 0, s, -1, l, !1, 0, h[y], o);
|
|
1686
|
+
}
|
|
1687
|
+
});
|
|
1688
|
+
var Be = function(i) {
|
|
1689
|
+
var o, l = this.t, a = l.filter || wt(this.data, "filter") || "", s = this.s + this.c * i | 0;
|
|
1690
|
+
s === 100 && (a.indexOf("atrix(") === -1 && a.indexOf("radient(") === -1 && a.indexOf("oader(") === -1 ? (l.removeAttribute("filter"), o = !wt(this.data, "filter")) : (l.filter = a.replace(D, ""), o = !0)), o || (this.xn1 && (l.filter = a = a || "alpha(opacity=" + s + ")"), a.indexOf("pacity") === -1 ? s === 0 && this.xn1 || (l.filter = a + " alpha(opacity=" + s + ")") : l.filter = a.replace(T, "opacity=" + s));
|
|
1691
|
+
};
|
|
1692
|
+
Ct("opacity,alpha,autoAlpha", {
|
|
1693
|
+
defaultValue: "1",
|
|
1694
|
+
parser: function(i, o, l, a, s, d) {
|
|
1695
|
+
var h = parseFloat(wt(i, "opacity", z, !1, "1")), y = i.style, k = l === "autoAlpha";
|
|
1696
|
+
return typeof o == "string" && o.charAt(1) === "=" && (o = (o.charAt(0) === "-" ? -1 : 1) * parseFloat(o.substr(2)) + h), k && h === 1 && wt(i, "visibility", z) === "hidden" && o !== 0 && (h = 0), ee ? s = new kt(y, "opacity", h, o - h, s) : (s = new kt(y, "opacity", 100 * h, 100 * (o - h), s), s.xn1 = k ? 1 : 0, y.zoom = 1, s.type = 2, s.b = "alpha(opacity=" + s.s + ")", s.e = "alpha(opacity=" + (s.s + s.c) + ")", s.data = i, s.plugin = d, s.setRatio = Be), k && (s = new kt(
|
|
1697
|
+
y,
|
|
1698
|
+
"visibility",
|
|
1699
|
+
0,
|
|
1700
|
+
0,
|
|
1701
|
+
s,
|
|
1702
|
+
-1,
|
|
1703
|
+
null,
|
|
1704
|
+
!1,
|
|
1705
|
+
0,
|
|
1706
|
+
h !== 0 ? "inherit" : "hidden",
|
|
1707
|
+
o === 0 ? "hidden" : "inherit"
|
|
1708
|
+
), s.xs0 = "inherit", a._overwriteProps.push(s.n), a._overwriteProps.push(l)), s;
|
|
1709
|
+
}
|
|
1710
|
+
});
|
|
1711
|
+
var ge = function(i, o) {
|
|
1712
|
+
o && (i.removeProperty ? ((o.substr(0, 2) === "ms" || o.substr(0, 6) === "webkit") && (o = "-" + o), i.removeProperty(o.replace(Z, "-$1").toLowerCase())) : i.removeAttribute(o));
|
|
1713
|
+
}, Ye = function(i) {
|
|
1714
|
+
if (this.t._gsClassPT = this, i === 1 || i === 0) {
|
|
1715
|
+
this.t.setAttribute("class", i === 0 ? this.b : this.e);
|
|
1716
|
+
for (var o = this.data, l = this.t.style; o; )
|
|
1717
|
+
o.v ? l[o.p] = o.v : ge(l, o.p), o = o._next;
|
|
1718
|
+
i === 1 && this.t._gsClassPT === this && (this.t._gsClassPT = null);
|
|
1719
|
+
} else
|
|
1720
|
+
this.t.getAttribute("class") !== this.e && this.t.setAttribute("class", this.e);
|
|
1721
|
+
};
|
|
1722
|
+
Ct("className", {
|
|
1723
|
+
parser: function(i, o, l, a, s, d, h) {
|
|
1724
|
+
var y, k, x, m, I, N = i.getAttribute("class") || "", E = i.style.cssText;
|
|
1725
|
+
if (s = a._classNamePT = new kt(i, l, 0, 0, s, 2), s.setRatio = Ye, s.pr = -11, it = !0, s.b = N, k = re(i, z), x = i._gsClassPT) {
|
|
1726
|
+
for (m = {}, I = x.data; I; )
|
|
1727
|
+
m[I.p] = 1, I = I._next;
|
|
1728
|
+
x.setRatio(1);
|
|
1729
|
+
}
|
|
1730
|
+
return i._gsClassPT = s, s.e = o.charAt(1) !== "=" ? o : N.replace(
|
|
1731
|
+
new RegExp("(?:\\s|^)" + o.substr(2) + "(?![\\w-])"),
|
|
1732
|
+
""
|
|
1733
|
+
) + (o.charAt(0) === "+" ? " " + o.substr(2) : ""), i.setAttribute("class", s.e), y = Zt(i, k, re(i), h, m), i.setAttribute("class", N), s.data = y.firstMPT, i.style.cssText = E, s = s.xfirst = a.parse(i, y.difs, s, d);
|
|
1734
|
+
}
|
|
1735
|
+
});
|
|
1736
|
+
var Ue = function(i) {
|
|
1737
|
+
if ((i === 1 || i === 0) && this.data._totalTime === this.data._totalDuration && this.data.data !== "isFromStart") {
|
|
1738
|
+
var o, l, a, s, d, h = this.t.style, y = S.transform.parse;
|
|
1739
|
+
if (this.e === "all")
|
|
1740
|
+
h.cssText = "", s = !0;
|
|
1741
|
+
else
|
|
1742
|
+
for (o = this.e.split(" ").join("").split(","), a = o.length; --a > -1; )
|
|
1743
|
+
l = o[a], S[l] && (S[l].parse === y ? s = !0 : l = l === "transformOrigin" ? me : S[l].p), ge(h, l);
|
|
1744
|
+
s && (ge(h, Xt), d = this.t._gsTransform, d && (d.svg && (this.t.removeAttribute("data-svg-origin"), this.t.removeAttribute("transform")), delete this.t._gsTransform));
|
|
1745
|
+
}
|
|
1746
|
+
};
|
|
1747
|
+
for (Ct("clearProps", {
|
|
1748
|
+
parser: function(i, o, l, a, s) {
|
|
1749
|
+
return s = new kt(i, l, 0, 0, s, 2), s.setRatio = Ue, s.e = o, s.pr = -10, s.data = a._tween, it = !0, s;
|
|
1750
|
+
}
|
|
1751
|
+
}), M = "bezier,throwProps,physicsProps,physics2D".split(","), It = M.length; It--; )
|
|
1752
|
+
ze(M[It]);
|
|
1753
|
+
M = H.prototype, M._firstPT = M._lastParsedTransform = M._transform = null, M._onInitTween = function(i, o, l, a) {
|
|
1754
|
+
if (!i.nodeType)
|
|
1755
|
+
return !1;
|
|
1756
|
+
this._target = P = i, this._tween = l, this._vars = o, e = a, W = o.autoRound, it = !1, ut = o.suffixMap || H.suffixMap, z = jt(i, ""), V = this._overwriteProps;
|
|
1757
|
+
var s, d, h, y, k, x, m, I, N, E = i.style;
|
|
1758
|
+
if (F && E.zIndex === "" && (s = wt(i, "zIndex", z), (s === "auto" || s === "") && this._addLazySet(E, "zIndex", 0)), typeof o == "string" && (y = E.cssText, s = re(i, z), E.cssText = y + ";" + o, s = Zt(i, s, re(i)).difs, !ee && O.test(o) && (s.opacity = parseFloat(RegExp.$1)), o = s, E.cssText = y), o.className ? this._firstPT = d = S.className.parse(
|
|
1759
|
+
i,
|
|
1760
|
+
o.className,
|
|
1761
|
+
"className",
|
|
1762
|
+
this,
|
|
1763
|
+
null,
|
|
1764
|
+
null,
|
|
1765
|
+
o
|
|
1766
|
+
) : this._firstPT = d = this.parse(i, o, null), this._transformType) {
|
|
1767
|
+
for (N = this._transformType === 3, Xt ? $ && (F = !0, E.zIndex === "" && (m = wt(i, "zIndex", z), (m === "auto" || m === "") && this._addLazySet(E, "zIndex", 0)), L && this._addLazySet(
|
|
1768
|
+
E,
|
|
1769
|
+
"WebkitBackfaceVisibility",
|
|
1770
|
+
this._vars.WebkitBackfaceVisibility || (N ? "visible" : "hidden")
|
|
1771
|
+
)) : E.zoom = 1, h = d; h && h._next; )
|
|
1772
|
+
h = h._next;
|
|
1773
|
+
I = new kt(i, "transform", 0, 0, null, 2), this._linkCSSP(I, null, h), I.setRatio = Xt ? Ne : Le, I.data = this._transform || de(i, z, !0), I.tween = l, I.pr = -1, V.pop();
|
|
1774
|
+
}
|
|
1775
|
+
if (it) {
|
|
1776
|
+
for (; d; ) {
|
|
1777
|
+
for (x = d._next, h = y; h && h.pr > d.pr; )
|
|
1778
|
+
h = h._next;
|
|
1779
|
+
(d._prev = h ? h._prev : k) ? d._prev._next = d : y = d, (d._next = h) ? h._prev = d : k = d, d = x;
|
|
1780
|
+
}
|
|
1781
|
+
this._firstPT = y;
|
|
1782
|
+
}
|
|
1783
|
+
return !0;
|
|
1784
|
+
}, M.parse = function(i, o, l, a) {
|
|
1785
|
+
var s, d, h, y, k, x, m, I, N, E, q = i.style;
|
|
1786
|
+
for (s in o) {
|
|
1787
|
+
if (x = o[s], typeof x == "function" && (x = x(e, P)), d = S[s])
|
|
1788
|
+
l = d.parse(i, x, s, this, l, a, o);
|
|
1789
|
+
else {
|
|
1790
|
+
if (s.substr(0, 2) === "--") {
|
|
1791
|
+
this._tween._propLookup[s] = this._addTween.call(
|
|
1792
|
+
this._tween,
|
|
1793
|
+
i.style,
|
|
1794
|
+
"setProperty",
|
|
1795
|
+
jt(i).getPropertyValue(s) + "",
|
|
1796
|
+
x + "",
|
|
1797
|
+
s,
|
|
1798
|
+
!1,
|
|
1799
|
+
s
|
|
1800
|
+
);
|
|
1801
|
+
continue;
|
|
1802
|
+
}
|
|
1803
|
+
k = wt(i, s, z) + "", N = typeof x == "string", s === "color" || s === "fill" || s === "stroke" || s.indexOf("Color") !== -1 || N && R.test(x) ? (N || (x = _t(x), x = (x.length > 3 ? "rgba(" : "rgb(") + x.join(",") + ")"), l = ie(q, s, k, x, !0, "transparent", l, 0, a)) : N && Yt.test(x) ? l = ie(q, s, k, x, !0, null, l, 0, a) : (h = parseFloat(k), m = h || h === 0 ? k.substr((h + "").length) : "", (k === "" || k === "auto") && (s === "width" || s === "height" ? (h = f(i, s, z), m = "px") : s === "left" || s === "top" ? (h = ue(i, s, z), m = "px") : (h = s !== "opacity" ? 0 : 1, m = "")), E = N && x.charAt(1) === "=", E ? (y = parseInt(x.charAt(0) + "1", 10), x = x.substr(2), y *= parseFloat(x), I = x.replace(p, "")) : (y = parseFloat(x), I = N ? x.replace(p, "") : ""), I === "" && (I = s in ut ? ut[s] : m), x = y || y === 0 ? (E ? y + h : y) + I : o[s], m !== I && (I !== "" || s === "lineHeight") && (y || y === 0) && h && (h = Vt(i, s, h, m), I === "%" ? (h /= Vt(i, s, 100, "%") / 100, o.strictUnits !== !0 && (k = h + "%")) : I === "em" || I === "rem" || I === "vw" || I === "vh" ? h /= Vt(i, s, 1, I) : I !== "px" && (y = Vt(i, s, y, I), I = "px"), E && (y || y === 0) && (x = y + h + I)), E && (y += h), !h && h !== 0 || !y && y !== 0 ? q[s] !== void 0 && (x || x + "" != "NaN" && x != null) ? (l = new kt(
|
|
1804
|
+
q,
|
|
1805
|
+
s,
|
|
1806
|
+
y || h || 0,
|
|
1807
|
+
0,
|
|
1808
|
+
l,
|
|
1809
|
+
-1,
|
|
1810
|
+
s,
|
|
1811
|
+
!1,
|
|
1812
|
+
0,
|
|
1813
|
+
k,
|
|
1814
|
+
x
|
|
1815
|
+
), l.xs0 = x !== "none" || s !== "display" && s.indexOf("Style") === -1 ? x : k) : ce("invalid " + s + " tween value: " + o[s]) : (l = new kt(
|
|
1816
|
+
q,
|
|
1817
|
+
s,
|
|
1818
|
+
h,
|
|
1819
|
+
y - h,
|
|
1820
|
+
l,
|
|
1821
|
+
0,
|
|
1822
|
+
s,
|
|
1823
|
+
W !== !1 && (I === "px" || s === "zIndex"),
|
|
1824
|
+
0,
|
|
1825
|
+
k,
|
|
1826
|
+
x
|
|
1827
|
+
), l.xs0 = I));
|
|
1828
|
+
}
|
|
1829
|
+
a && l && !l.plugin && (l.plugin = a);
|
|
1830
|
+
}
|
|
1831
|
+
return l;
|
|
1832
|
+
}, M.setRatio = function(i) {
|
|
1833
|
+
var o, l, a, s = this._firstPT, d = 1e-6;
|
|
1834
|
+
if (i !== 1 || this._tween._time !== this._tween._duration && this._tween._time !== 0)
|
|
1835
|
+
if (i || this._tween._time !== this._tween._duration && this._tween._time !== 0 || this._tween._rawPrevTime === -1e-6)
|
|
1836
|
+
for (; s; ) {
|
|
1837
|
+
if (o = s.c * i + s.s, s.r ? o = s.r(o) : d > o && o > -d && (o = 0), s.type)
|
|
1838
|
+
if (s.type === 1)
|
|
1839
|
+
if (a = s.l, a === 2)
|
|
1840
|
+
s.t[s.p] = s.xs0 + o + s.xs1 + s.xn1 + s.xs2;
|
|
1841
|
+
else if (a === 3)
|
|
1842
|
+
s.t[s.p] = s.xs0 + o + s.xs1 + s.xn1 + s.xs2 + s.xn2 + s.xs3;
|
|
1843
|
+
else if (a === 4)
|
|
1844
|
+
s.t[s.p] = s.xs0 + o + s.xs1 + s.xn1 + s.xs2 + s.xn2 + s.xs3 + s.xn3 + s.xs4;
|
|
1845
|
+
else if (a === 5)
|
|
1846
|
+
s.t[s.p] = s.xs0 + o + s.xs1 + s.xn1 + s.xs2 + s.xn2 + s.xs3 + s.xn3 + s.xs4 + s.xn4 + s.xs5;
|
|
1847
|
+
else {
|
|
1848
|
+
for (l = s.xs0 + o + s.xs1, a = 1; a < s.l; a++)
|
|
1849
|
+
l += s["xn" + a] + s["xs" + (a + 1)];
|
|
1850
|
+
s.t[s.p] = l;
|
|
1851
|
+
}
|
|
1852
|
+
else
|
|
1853
|
+
s.type === -1 ? s.t[s.p] = s.xs0 : s.setRatio && s.setRatio(i);
|
|
1854
|
+
else
|
|
1855
|
+
s.t[s.p] = o + s.xs0;
|
|
1856
|
+
s = s._next;
|
|
1857
|
+
}
|
|
1858
|
+
else
|
|
1859
|
+
for (; s; )
|
|
1860
|
+
s.type !== 2 ? s.t[s.p] = s.b : s.setRatio(i), s = s._next;
|
|
1861
|
+
else
|
|
1862
|
+
for (; s; ) {
|
|
1863
|
+
if (s.type !== 2)
|
|
1864
|
+
if (s.r && s.type !== -1)
|
|
1865
|
+
if (o = s.r(s.s + s.c), s.type) {
|
|
1866
|
+
if (s.type === 1) {
|
|
1867
|
+
for (a = s.l, l = s.xs0 + o + s.xs1, a = 1; a < s.l; a++)
|
|
1868
|
+
l += s["xn" + a] + s["xs" + (a + 1)];
|
|
1869
|
+
s.t[s.p] = l;
|
|
1870
|
+
}
|
|
1871
|
+
} else
|
|
1872
|
+
s.t[s.p] = o + s.xs0;
|
|
1873
|
+
else
|
|
1874
|
+
s.t[s.p] = s.e;
|
|
1875
|
+
else
|
|
1876
|
+
s.setRatio(i);
|
|
1877
|
+
s = s._next;
|
|
1878
|
+
}
|
|
1879
|
+
}, M._enableTransforms = function(i) {
|
|
1880
|
+
this._transform = this._transform || de(this._target, z, !0), this._transformType = this._transform.svg && ne || !i && this._transformType !== 3 ? 2 : 3;
|
|
1881
|
+
};
|
|
1882
|
+
var Ve = function(i) {
|
|
1883
|
+
this.t[this.p] = this.e, this.data._linkCSSP(this, this._next, null, !0);
|
|
1884
|
+
};
|
|
1885
|
+
M._addLazySet = function(i, o, l) {
|
|
1886
|
+
var a = this._firstPT = new kt(i, o, 0, 0, this._firstPT, 2);
|
|
1887
|
+
a.e = l, a.setRatio = Ve, a.data = this;
|
|
1888
|
+
}, M._linkCSSP = function(i, o, l, a) {
|
|
1889
|
+
return i && (o && (o._prev = i), i._next && (i._next._prev = i._prev), i._prev ? i._prev._next = i._next : this._firstPT === i && (this._firstPT = i._next, a = !0), l ? l._next = i : a || this._firstPT !== null || (this._firstPT = i), i._next = o, i._prev = l), i;
|
|
1890
|
+
}, M._mod = function(i) {
|
|
1891
|
+
for (var o = this._firstPT; o; )
|
|
1892
|
+
typeof i[o.p] == "function" && (o.r = i[o.p]), o = o._next;
|
|
1893
|
+
}, M._kill = function(i) {
|
|
1894
|
+
var o, l, a, s = i;
|
|
1895
|
+
if (i.autoAlpha || i.alpha) {
|
|
1896
|
+
s = {};
|
|
1897
|
+
for (l in i)
|
|
1898
|
+
s[l] = i[l];
|
|
1899
|
+
s.opacity = 1, s.autoAlpha && (s.visibility = 1);
|
|
1900
|
+
}
|
|
1901
|
+
for (i.className && (o = this._classNamePT) && (a = o.xfirst, a && a._prev ? this._linkCSSP(a._prev, o._next, a._prev._prev) : a === this._firstPT && (this._firstPT = o._next), o._next && this._linkCSSP(o._next, o._next._next, a._prev), this._classNamePT = null), o = this._firstPT; o; )
|
|
1902
|
+
o.plugin && o.plugin !== l && o.plugin._kill && (o.plugin._kill(i), l = o.plugin), o = o._next;
|
|
1903
|
+
return Y.prototype._kill.call(this, s);
|
|
1904
|
+
};
|
|
1905
|
+
var we = function(i, o, l) {
|
|
1906
|
+
var a, s, d, h;
|
|
1907
|
+
if (i.slice)
|
|
1908
|
+
for (s = i.length; --s > -1; )
|
|
1909
|
+
we(i[s], o, l);
|
|
1910
|
+
else
|
|
1911
|
+
for (a = i.childNodes, s = a.length; --s > -1; )
|
|
1912
|
+
d = a[s], h = d.type, d.style && (o.push(re(d)), l && l.push(d)), h !== 1 && h !== 9 && h !== 11 || !d.childNodes.length || we(d, o, l);
|
|
1913
|
+
};
|
|
1914
|
+
return H.cascadeTo = function(i, o, l) {
|
|
1915
|
+
var a, s, d, h, y = Q.to(i, o, l), k = [y], x = [], m = [], I = [], N = Q._internals.reservedProps;
|
|
1916
|
+
for (i = y._targets || y.target, we(i, x, I), y.render(o, !0, !0), we(i, m), y.render(0, !0, !0), y._enabled(!0), a = I.length; --a > -1; )
|
|
1917
|
+
if (s = Zt(I[a], x[a], m[a]), s.firstMPT) {
|
|
1918
|
+
s = s.difs;
|
|
1919
|
+
for (d in l)
|
|
1920
|
+
N[d] && (s[d] = l[d]);
|
|
1921
|
+
h = {};
|
|
1922
|
+
for (d in s)
|
|
1923
|
+
h[d] = x[a][d];
|
|
1924
|
+
k.push(Q.fromTo(I[a], o, h, s));
|
|
1925
|
+
}
|
|
1926
|
+
return k;
|
|
1927
|
+
}, Y.activate([H]), H;
|
|
1928
|
+
},
|
|
1929
|
+
!0
|
|
1930
|
+
), function() {
|
|
1931
|
+
var Y = Dt._gsDefine.plugin({
|
|
1932
|
+
propName: "roundProps",
|
|
1933
|
+
version: "1.7.0",
|
|
1934
|
+
priority: -1,
|
|
1935
|
+
API: 2,
|
|
1936
|
+
init: function(z, V, H) {
|
|
1937
|
+
return this._tween = H, !0;
|
|
1938
|
+
}
|
|
1939
|
+
}), Q = function(z) {
|
|
1940
|
+
var V = 1 > z ? Math.pow(10, (z + "").length - 2) : 1;
|
|
1941
|
+
return function(H) {
|
|
1942
|
+
return (Math.round(H / z) * z * V | 0) / V;
|
|
1943
|
+
};
|
|
1944
|
+
}, it = function(z, V) {
|
|
1945
|
+
for (; z; )
|
|
1946
|
+
z.f || z.blob || (z.m = V || Math.round), z = z._next;
|
|
1947
|
+
}, ut = Y.prototype;
|
|
1948
|
+
ut._onInitAllProps = function() {
|
|
1949
|
+
var z, V, H, dt, S = this._tween, M = S.vars.roundProps, W = {}, F = S._propLookup.roundProps;
|
|
1950
|
+
if (typeof M != "object" || M.push)
|
|
1951
|
+
for (typeof M == "string" && (M = M.split(",")), H = M.length; --H > -1; )
|
|
1952
|
+
W[M[H]] = Math.round;
|
|
1953
|
+
else
|
|
1954
|
+
for (dt in M)
|
|
1955
|
+
W[dt] = Q(M[dt]);
|
|
1956
|
+
for (dt in W)
|
|
1957
|
+
for (z = S._firstPT; z; )
|
|
1958
|
+
V = z._next, z.pg ? z.t._mod(W) : z.n === dt && (z.f === 2 && z.t ? it(z.t._firstPT, W[dt]) : (this._add(z.t, dt, z.s, z.c, W[dt]), V && (V._prev = z._prev), z._prev ? z._prev._next = V : S._firstPT === z && (S._firstPT = V), z._next = z._prev = null, S._propLookup[dt] = F)), z = V;
|
|
1959
|
+
return !1;
|
|
1960
|
+
}, ut._add = function(z, V, H, dt, S) {
|
|
1961
|
+
this._addTween(z, V, H, H + dt, V, S || Math.round), this._overwriteProps.push(V);
|
|
1962
|
+
};
|
|
1963
|
+
}(), function() {
|
|
1964
|
+
Dt._gsDefine.plugin({
|
|
1965
|
+
propName: "attr",
|
|
1966
|
+
API: 2,
|
|
1967
|
+
version: "0.6.1",
|
|
1968
|
+
init: function(Y, Q, it, ut) {
|
|
1969
|
+
var z, V;
|
|
1970
|
+
if (typeof Y.setAttribute != "function")
|
|
1971
|
+
return !1;
|
|
1972
|
+
for (z in Q)
|
|
1973
|
+
V = Q[z], typeof V == "function" && (V = V(ut, Y)), this._addTween(
|
|
1974
|
+
Y,
|
|
1975
|
+
"setAttribute",
|
|
1976
|
+
Y.getAttribute(z) + "",
|
|
1977
|
+
V + "",
|
|
1978
|
+
z,
|
|
1979
|
+
!1,
|
|
1980
|
+
z
|
|
1981
|
+
), this._overwriteProps.push(z);
|
|
1982
|
+
return !0;
|
|
1983
|
+
}
|
|
1984
|
+
});
|
|
1985
|
+
}(), Dt._gsDefine.plugin({
|
|
1986
|
+
propName: "directionalRotation",
|
|
1987
|
+
version: "0.3.1",
|
|
1988
|
+
API: 2,
|
|
1989
|
+
init: function(Y, Q, it, ut) {
|
|
1990
|
+
typeof Q != "object" && (Q = { rotation: Q }), this.finals = {};
|
|
1991
|
+
var z, V, H, dt, S, M, W = Q.useRadians === !0 ? 2 * Math.PI : 360, F = 1e-6;
|
|
1992
|
+
for (z in Q)
|
|
1993
|
+
z !== "useRadians" && (dt = Q[z], typeof dt == "function" && (dt = dt(ut, Y)), M = (dt + "").split("_"), V = M[0], H = parseFloat(
|
|
1994
|
+
typeof Y[z] != "function" ? Y[z] : Y[z.indexOf("set") || typeof Y["get" + z.substr(3)] != "function" ? z : "get" + z.substr(3)]()
|
|
1995
|
+
), dt = this.finals[z] = typeof V == "string" && V.charAt(1) === "=" ? H + parseInt(V.charAt(0) + "1", 10) * Number(V.substr(2)) : Number(V) || 0, S = dt - H, M.length && (V = M.join("_"), V.indexOf("short") !== -1 && (S %= W, S !== S % (W / 2) && (S = 0 > S ? S + W : S - W)), V.indexOf("_cw") !== -1 && 0 > S ? S = (S + 9999999999 * W) % W - (S / W | 0) * W : V.indexOf("ccw") !== -1 && S > 0 && (S = (S - 9999999999 * W) % W - (S / W | 0) * W)), (S > F || -F > S) && (this._addTween(Y, z, H, H + S, z), this._overwriteProps.push(z)));
|
|
1996
|
+
return !0;
|
|
1997
|
+
},
|
|
1998
|
+
set: function(Y) {
|
|
1999
|
+
var Q;
|
|
2000
|
+
if (Y !== 1)
|
|
2001
|
+
this._super.setRatio.call(this, Y);
|
|
2002
|
+
else
|
|
2003
|
+
for (Q = this._firstPT; Q; )
|
|
2004
|
+
Q.f ? Q.t[Q.p](this.finals[Q.p]) : Q.t[Q.p] = this.finals[Q.p], Q = Q._next;
|
|
2005
|
+
}
|
|
2006
|
+
})._autoCSS = !0, Dt._gsDefine(
|
|
2007
|
+
"easing.Back",
|
|
2008
|
+
["easing.Ease"],
|
|
2009
|
+
function(Y) {
|
|
2010
|
+
var Q, it, ut, z, V = Dt.GreenSockGlobals || Dt, H = V.com.greensock, dt = 2 * Math.PI, S = Math.PI / 2, M = H._class, W = function(t, _) {
|
|
2011
|
+
var n = M("easing." + t, function() {
|
|
2012
|
+
}, !0), g = n.prototype = new Y();
|
|
2013
|
+
return g.constructor = n, g.getRatio = _, n;
|
|
2014
|
+
}, F = Y.register || function() {
|
|
2015
|
+
}, $ = function(t, _, n, g, p) {
|
|
2016
|
+
var T = M(
|
|
2017
|
+
"easing." + t,
|
|
2018
|
+
{ easeOut: new _(), easeIn: new n(), easeInOut: new g() },
|
|
2019
|
+
!0
|
|
2020
|
+
);
|
|
2021
|
+
return F(T, t), T;
|
|
2022
|
+
}, st = function(t, _, n) {
|
|
2023
|
+
this.t = t, this.v = _, n && (this.next = n, n.prev = this, this.c = n.v - _, this.gap = n.t - t);
|
|
2024
|
+
}, L = function(t, _) {
|
|
2025
|
+
var n = M(
|
|
2026
|
+
"easing." + t,
|
|
2027
|
+
function(p) {
|
|
2028
|
+
this._p1 = p || p === 0 ? p : 1.70158, this._p2 = 1.525 * this._p1;
|
|
2029
|
+
},
|
|
2030
|
+
!0
|
|
2031
|
+
), g = n.prototype = new Y();
|
|
2032
|
+
return g.constructor = n, g.getRatio = _, g.config = function(p) {
|
|
2033
|
+
return new n(p);
|
|
2034
|
+
}, n;
|
|
2035
|
+
}, v = $(
|
|
2036
|
+
"Back",
|
|
2037
|
+
L("BackOut", function(t) {
|
|
2038
|
+
return (t -= 1) * t * ((this._p1 + 1) * t + this._p1) + 1;
|
|
2039
|
+
}),
|
|
2040
|
+
L("BackIn", function(t) {
|
|
2041
|
+
return t * t * ((this._p1 + 1) * t - this._p1);
|
|
2042
|
+
}),
|
|
2043
|
+
L("BackInOut", function(t) {
|
|
2044
|
+
return (t *= 2) < 1 ? 0.5 * t * t * ((this._p2 + 1) * t - this._p2) : 0.5 * ((t -= 2) * t * ((this._p2 + 1) * t + this._p2) + 2);
|
|
2045
|
+
})
|
|
2046
|
+
), P = M(
|
|
2047
|
+
"easing.SlowMo",
|
|
2048
|
+
function(t, _, n) {
|
|
2049
|
+
_ = _ || _ === 0 ? _ : 0.7, t == null ? t = 0.7 : t > 1 && (t = 1), this._p = t !== 1 ? _ : 0, this._p1 = (1 - t) / 2, this._p2 = t, this._p3 = this._p1 + this._p2, this._calcEnd = n === !0;
|
|
2050
|
+
},
|
|
2051
|
+
!0
|
|
2052
|
+
), e = P.prototype = new Y();
|
|
2053
|
+
return e.constructor = P, e.getRatio = function(t) {
|
|
2054
|
+
var _ = t + (0.5 - t) * this._p;
|
|
2055
|
+
return t < this._p1 ? this._calcEnd ? 1 - (t = 1 - t / this._p1) * t : _ - (t = 1 - t / this._p1) * t * t * t * _ : t > this._p3 ? this._calcEnd ? t === 1 ? 0 : 1 - (t = (t - this._p3) / this._p1) * t : _ + (t - _) * (t = (t - this._p3) / this._p1) * t * t * t : this._calcEnd ? 1 : _;
|
|
2056
|
+
}, P.ease = new P(0.7, 0.7), e.config = P.config = function(t, _, n) {
|
|
2057
|
+
return new P(t, _, n);
|
|
2058
|
+
}, Q = M(
|
|
2059
|
+
"easing.SteppedEase",
|
|
2060
|
+
function(t, _) {
|
|
2061
|
+
t = t || 1, this._p1 = 1 / t, this._p2 = t + (_ ? 0 : 1), this._p3 = _ ? 1 : 0;
|
|
2062
|
+
},
|
|
2063
|
+
!0
|
|
2064
|
+
), e = Q.prototype = new Y(), e.constructor = Q, e.getRatio = function(t) {
|
|
2065
|
+
return 0 > t ? t = 0 : t >= 1 && (t = 0.999999999), ((this._p2 * t | 0) + this._p3) * this._p1;
|
|
2066
|
+
}, e.config = Q.config = function(t, _) {
|
|
2067
|
+
return new Q(t, _);
|
|
2068
|
+
}, it = M(
|
|
2069
|
+
"easing.ExpoScaleEase",
|
|
2070
|
+
function(t, _, n) {
|
|
2071
|
+
this._p1 = Math.log(_ / t), this._p2 = _ - t, this._p3 = t, this._ease = n;
|
|
2072
|
+
},
|
|
2073
|
+
!0
|
|
2074
|
+
), e = it.prototype = new Y(), e.constructor = it, e.getRatio = function(t) {
|
|
2075
|
+
return this._ease && (t = this._ease.getRatio(t)), (this._p3 * Math.exp(this._p1 * t) - this._p3) / this._p2;
|
|
2076
|
+
}, e.config = it.config = function(t, _, n) {
|
|
2077
|
+
return new it(t, _, n);
|
|
2078
|
+
}, ut = M(
|
|
2079
|
+
"easing.RoughEase",
|
|
2080
|
+
function(t) {
|
|
2081
|
+
t = t || {};
|
|
2082
|
+
for (var _, n, g, p, T, O, D = t.taper || "none", R = [], Z = 0, U = 0 | (t.points || 20), K = U, tt = t.randomize !== !1, mt = t.clamp === !0, ot = t.template instanceof Y ? t.template : null, J = typeof t.strength == "number" ? 0.4 * t.strength : 0.4; --K > -1; )
|
|
2083
|
+
_ = tt ? Math.random() : 1 / U * K, n = ot ? ot.getRatio(_) : _, D === "none" ? g = J : D === "out" ? (p = 1 - _, g = p * p * J) : D === "in" ? g = _ * _ * J : 0.5 > _ ? (p = 2 * _, g = p * p * 0.5 * J) : (p = 2 * (1 - _), g = p * p * 0.5 * J), tt ? n += Math.random() * g - 0.5 * g : K % 2 ? n += 0.5 * g : n -= 0.5 * g, mt && (n > 1 ? n = 1 : 0 > n && (n = 0)), R[Z++] = { x: _, y: n };
|
|
2084
|
+
for (R.sort(function(gt, Yt) {
|
|
2085
|
+
return gt.x - Yt.x;
|
|
2086
|
+
}), O = new st(1, 1, null), K = U; --K > -1; )
|
|
2087
|
+
T = R[K], O = new st(T.x, T.y, O);
|
|
2088
|
+
this._prev = new st(0, 0, O.t !== 0 ? O : O.next);
|
|
2089
|
+
},
|
|
2090
|
+
!0
|
|
2091
|
+
), e = ut.prototype = new Y(), e.constructor = ut, e.getRatio = function(t) {
|
|
2092
|
+
var _ = this._prev;
|
|
2093
|
+
if (t > _.t) {
|
|
2094
|
+
for (; _.next && t >= _.t; )
|
|
2095
|
+
_ = _.next;
|
|
2096
|
+
_ = _.prev;
|
|
2097
|
+
} else
|
|
2098
|
+
for (; _.prev && t <= _.t; )
|
|
2099
|
+
_ = _.prev;
|
|
2100
|
+
return this._prev = _, _.v + (t - _.t) / _.gap * _.c;
|
|
2101
|
+
}, e.config = function(t) {
|
|
2102
|
+
return new ut(t);
|
|
2103
|
+
}, ut.ease = new ut(), $(
|
|
2104
|
+
"Bounce",
|
|
2105
|
+
W("BounceOut", function(t) {
|
|
2106
|
+
return 1 / 2.75 > t ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + 0.75 : 2.5 / 2.75 > t ? 7.5625 * (t -= 2.25 / 2.75) * t + 0.9375 : 7.5625 * (t -= 2.625 / 2.75) * t + 0.984375;
|
|
2107
|
+
}),
|
|
2108
|
+
W("BounceIn", function(t) {
|
|
2109
|
+
return (t = 1 - t) < 1 / 2.75 ? 1 - 7.5625 * t * t : 2 / 2.75 > t ? 1 - (7.5625 * (t -= 1.5 / 2.75) * t + 0.75) : 2.5 / 2.75 > t ? 1 - (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375) : 1 - (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375);
|
|
2110
|
+
}),
|
|
2111
|
+
W("BounceInOut", function(t) {
|
|
2112
|
+
var _ = 0.5 > t;
|
|
2113
|
+
return t = _ ? 1 - 2 * t : 2 * t - 1, t = 1 / 2.75 > t ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + 0.75 : 2.5 / 2.75 > t ? 7.5625 * (t -= 2.25 / 2.75) * t + 0.9375 : 7.5625 * (t -= 2.625 / 2.75) * t + 0.984375, _ ? 0.5 * (1 - t) : 0.5 * t + 0.5;
|
|
2114
|
+
})
|
|
2115
|
+
), $(
|
|
2116
|
+
"Circ",
|
|
2117
|
+
W("CircOut", function(t) {
|
|
2118
|
+
return Math.sqrt(1 - (t -= 1) * t);
|
|
2119
|
+
}),
|
|
2120
|
+
W("CircIn", function(t) {
|
|
2121
|
+
return -(Math.sqrt(1 - t * t) - 1);
|
|
2122
|
+
}),
|
|
2123
|
+
W("CircInOut", function(t) {
|
|
2124
|
+
return (t *= 2) < 1 ? -0.5 * (Math.sqrt(1 - t * t) - 1) : 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
|
|
2125
|
+
})
|
|
2126
|
+
), z = function(t, _, n) {
|
|
2127
|
+
var g = M(
|
|
2128
|
+
"easing." + t,
|
|
2129
|
+
function(T, O) {
|
|
2130
|
+
this._p1 = T >= 1 ? T : 1, this._p2 = (O || n) / (1 > T ? T : 1), this._p3 = this._p2 / dt * (Math.asin(1 / this._p1) || 0), this._p2 = dt / this._p2;
|
|
2131
|
+
},
|
|
2132
|
+
!0
|
|
2133
|
+
), p = g.prototype = new Y();
|
|
2134
|
+
return p.constructor = g, p.getRatio = _, p.config = function(T, O) {
|
|
2135
|
+
return new g(T, O);
|
|
2136
|
+
}, g;
|
|
2137
|
+
}, $(
|
|
2138
|
+
"Elastic",
|
|
2139
|
+
z(
|
|
2140
|
+
"ElasticOut",
|
|
2141
|
+
function(t) {
|
|
2142
|
+
return this._p1 * Math.pow(2, -10 * t) * Math.sin((t - this._p3) * this._p2) + 1;
|
|
2143
|
+
},
|
|
2144
|
+
0.3
|
|
2145
|
+
),
|
|
2146
|
+
z(
|
|
2147
|
+
"ElasticIn",
|
|
2148
|
+
function(t) {
|
|
2149
|
+
return -(this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2));
|
|
2150
|
+
},
|
|
2151
|
+
0.3
|
|
2152
|
+
),
|
|
2153
|
+
z(
|
|
2154
|
+
"ElasticInOut",
|
|
2155
|
+
function(t) {
|
|
2156
|
+
return (t *= 2) < 1 ? -0.5 * (this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2)) : this._p1 * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2) * 0.5 + 1;
|
|
2157
|
+
},
|
|
2158
|
+
0.45
|
|
2159
|
+
)
|
|
2160
|
+
), $(
|
|
2161
|
+
"Expo",
|
|
2162
|
+
W("ExpoOut", function(t) {
|
|
2163
|
+
return 1 - Math.pow(2, -10 * t);
|
|
2164
|
+
}),
|
|
2165
|
+
W("ExpoIn", function(t) {
|
|
2166
|
+
return Math.pow(2, 10 * (t - 1)) - 1e-3;
|
|
2167
|
+
}),
|
|
2168
|
+
W("ExpoInOut", function(t) {
|
|
2169
|
+
return (t *= 2) < 1 ? 0.5 * Math.pow(2, 10 * (t - 1)) : 0.5 * (2 - Math.pow(2, -10 * (t - 1)));
|
|
2170
|
+
})
|
|
2171
|
+
), $(
|
|
2172
|
+
"Sine",
|
|
2173
|
+
W("SineOut", function(t) {
|
|
2174
|
+
return Math.sin(t * S);
|
|
2175
|
+
}),
|
|
2176
|
+
W("SineIn", function(t) {
|
|
2177
|
+
return -Math.cos(t * S) + 1;
|
|
2178
|
+
}),
|
|
2179
|
+
W("SineInOut", function(t) {
|
|
2180
|
+
return -0.5 * (Math.cos(Math.PI * t) - 1);
|
|
2181
|
+
})
|
|
2182
|
+
), M(
|
|
2183
|
+
"easing.EaseLookup",
|
|
2184
|
+
{
|
|
2185
|
+
find: function(t) {
|
|
2186
|
+
return Y.map[t];
|
|
2187
|
+
}
|
|
2188
|
+
},
|
|
2189
|
+
!0
|
|
2190
|
+
), F(V.SlowMo, "SlowMo", "ease,"), F(ut, "RoughEase", "ease,"), F(Q, "SteppedEase", "ease,"), v;
|
|
2191
|
+
},
|
|
2192
|
+
!0
|
|
2193
|
+
);
|
|
2194
|
+
}), Dt._gsDefine && Dt._gsQueue.pop()(), function(Y, Q) {
|
|
2195
|
+
var it = {}, ut = Y.document, z = Y.GreenSockGlobals = Y.GreenSockGlobals || Y, V = z[Q];
|
|
2196
|
+
if (V)
|
|
2197
|
+
return typeof module < "u" && module.exports && (module.exports = V), V;
|
|
2198
|
+
var H, dt, S, M, W, F = function(r) {
|
|
2199
|
+
var u, f = r.split("."), c = z;
|
|
2200
|
+
for (u = 0; u < f.length; u++)
|
|
2201
|
+
c[f[u]] = c = c[f[u]] || {};
|
|
2202
|
+
return c;
|
|
2203
|
+
}, $ = F("com.greensock"), st = 1e-10, L = function(r) {
|
|
2204
|
+
var u, f = [], c = r.length;
|
|
2205
|
+
for (u = 0; u !== c; f.push(r[u++]))
|
|
2206
|
+
;
|
|
2207
|
+
return f;
|
|
2208
|
+
}, v = function() {
|
|
2209
|
+
}, P = function() {
|
|
2210
|
+
var r = Object.prototype.toString, u = r.call([]);
|
|
2211
|
+
return function(f) {
|
|
2212
|
+
return f != null && (f instanceof Array || typeof f == "object" && !!f.push && r.call(f) === u);
|
|
2213
|
+
};
|
|
2214
|
+
}(), e = {}, t = function(r, u, f, c) {
|
|
2215
|
+
this.sc = e[r] ? e[r].sc : [], e[r] = this, this.gsClass = null, this.func = f;
|
|
2216
|
+
var w = [];
|
|
2217
|
+
this.check = function(C) {
|
|
2218
|
+
for (var j, A, ft, _t, b = u.length, pt = b; --b > -1; )
|
|
2219
|
+
(j = e[u[b]] || new t(u[b], [])).gsClass ? (w[b] = j.gsClass, pt--) : C && j.sc.push(this);
|
|
2220
|
+
if (pt === 0 && f) {
|
|
2221
|
+
if (A = ("com.greensock." + r).split("."), ft = A.pop(), _t = F(A.join("."))[ft] = this.gsClass = f.apply(f, w), c)
|
|
2222
|
+
if (z[ft] = it[ft] = _t, typeof module < "u" && module.exports)
|
|
2223
|
+
if (r === Q) {
|
|
2224
|
+
module.exports = it[Q] = _t;
|
|
2225
|
+
for (b in it)
|
|
2226
|
+
_t[b] = it[b];
|
|
2227
|
+
} else
|
|
2228
|
+
it[Q] && (it[Q][ft] = _t);
|
|
2229
|
+
else
|
|
2230
|
+
typeof define == "function" && define.amd && define(
|
|
2231
|
+
(Y.GreenSockAMDPath ? Y.GreenSockAMDPath + "/" : "") + r.split(".").pop(),
|
|
2232
|
+
[],
|
|
2233
|
+
function() {
|
|
2234
|
+
return _t;
|
|
2235
|
+
}
|
|
2236
|
+
);
|
|
2237
|
+
for (b = 0; b < this.sc.length; b++)
|
|
2238
|
+
this.sc[b].check();
|
|
2239
|
+
}
|
|
2240
|
+
}, this.check(!0);
|
|
2241
|
+
}, _ = Y._gsDefine = function(r, u, f, c) {
|
|
2242
|
+
return new t(r, u, f, c);
|
|
2243
|
+
}, n = $._class = function(r, u, f) {
|
|
2244
|
+
return u = u || function() {
|
|
2245
|
+
}, _(
|
|
2246
|
+
r,
|
|
2247
|
+
[],
|
|
2248
|
+
function() {
|
|
2249
|
+
return u;
|
|
2250
|
+
},
|
|
2251
|
+
f
|
|
2252
|
+
), u;
|
|
2253
|
+
};
|
|
2254
|
+
_.globals = z;
|
|
2255
|
+
var g = [0, 0, 1, 1], p = n(
|
|
2256
|
+
"easing.Ease",
|
|
2257
|
+
function(r, u, f, c) {
|
|
2258
|
+
this._func = r, this._type = f || 0, this._power = c || 0, this._params = u ? g.concat(u) : g;
|
|
2259
|
+
},
|
|
2260
|
+
!0
|
|
2261
|
+
), T = p.map = {}, O = p.register = function(r, u, f, c) {
|
|
2262
|
+
for (var w, C, j, A, ft = u.split(","), _t = ft.length, b = (f || "easeIn,easeOut,easeInOut").split(","); --_t > -1; )
|
|
2263
|
+
for (C = ft[_t], w = c ? n("easing." + C, null, !0) : $.easing[C] || {}, j = b.length; --j > -1; )
|
|
2264
|
+
A = b[j], T[C + "." + A] = T[A + C] = w[A] = r.getRatio ? r : r[A] || new r();
|
|
2265
|
+
};
|
|
2266
|
+
for (S = p.prototype, S._calcEnd = !1, S.getRatio = function(r) {
|
|
2267
|
+
if (this._func)
|
|
2268
|
+
return this._params[0] = r, this._func.apply(null, this._params);
|
|
2269
|
+
var u = this._type, f = this._power, c = u === 1 ? 1 - r : u === 2 ? r : 0.5 > r ? 2 * r : 2 * (1 - r);
|
|
2270
|
+
return f === 1 ? c *= c : f === 2 ? c *= c * c : f === 3 ? c *= c * c * c : f === 4 && (c *= c * c * c * c), u === 1 ? 1 - c : u === 2 ? c : 0.5 > r ? c / 2 : 1 - c / 2;
|
|
2271
|
+
}, H = ["Linear", "Quad", "Cubic", "Quart", "Quint,Strong"], dt = H.length; --dt > -1; )
|
|
2272
|
+
S = H[dt] + ",Power" + dt, O(new p(null, null, 1, dt), S, "easeOut", !0), O(new p(null, null, 2, dt), S, "easeIn" + (dt === 0 ? ",easeNone" : "")), O(new p(null, null, 3, dt), S, "easeInOut");
|
|
2273
|
+
T.linear = $.easing.Linear.easeIn, T.swing = $.easing.Quad.easeInOut;
|
|
2274
|
+
var D = n("events.EventDispatcher", function(r) {
|
|
2275
|
+
this._listeners = {}, this._eventTarget = r || this;
|
|
2276
|
+
});
|
|
2277
|
+
S = D.prototype, S.addEventListener = function(r, u, f, c, w) {
|
|
2278
|
+
w = w || 0;
|
|
2279
|
+
var C, j, A = this._listeners[r], ft = 0;
|
|
2280
|
+
for (this !== M || W || M.wake(), A == null && (this._listeners[r] = A = []), j = A.length; --j > -1; )
|
|
2281
|
+
C = A[j], C.c === u && C.s === f ? A.splice(j, 1) : ft === 0 && C.pr < w && (ft = j + 1);
|
|
2282
|
+
A.splice(ft, 0, { c: u, s: f, up: c, pr: w });
|
|
2283
|
+
}, S.removeEventListener = function(r, u) {
|
|
2284
|
+
var f, c = this._listeners[r];
|
|
2285
|
+
if (c) {
|
|
2286
|
+
for (f = c.length; --f > -1; )
|
|
2287
|
+
if (c[f].c === u)
|
|
2288
|
+
return void c.splice(f, 1);
|
|
2289
|
+
}
|
|
2290
|
+
}, S.dispatchEvent = function(r) {
|
|
2291
|
+
var u, f, c, w = this._listeners[r];
|
|
2292
|
+
if (w)
|
|
2293
|
+
for (u = w.length, u > 1 && (w = w.slice(0)), f = this._eventTarget; --u > -1; )
|
|
2294
|
+
c = w[u], c && (c.up ? c.c.call(c.s || f, { type: r, target: f }) : c.c.call(c.s || f));
|
|
2295
|
+
};
|
|
2296
|
+
var R = Y.requestAnimationFrame, Z = Y.cancelAnimationFrame, U = Date.now || function() {
|
|
2297
|
+
return (/* @__PURE__ */ new Date()).getTime();
|
|
2298
|
+
}, K = U();
|
|
2299
|
+
for (H = ["ms", "moz", "webkit", "o"], dt = H.length; --dt > -1 && !R; )
|
|
2300
|
+
R = Y[H[dt] + "RequestAnimationFrame"], Z = Y[H[dt] + "CancelAnimationFrame"] || Y[H[dt] + "CancelRequestAnimationFrame"];
|
|
2301
|
+
n("Ticker", function(r, u) {
|
|
2302
|
+
var f, c, w, C, j, A = this, ft = U(), _t = u !== !1 && R ? "auto" : !1, b = 500, pt = 33, Pt = "tick", Ot = function(vt) {
|
|
2303
|
+
var kt, he, ie = U() - K;
|
|
2304
|
+
ie > b && (ft += ie - pt), K += ie, A.time = (K - ft) / 1e3, kt = A.time - j, (!f || kt > 0 || vt === !0) && (A.frame++, j += kt + (kt >= C ? 4e-3 : C - kt), he = !0), vt !== !0 && (w = c(Ot)), he && A.dispatchEvent(Pt);
|
|
2305
|
+
};
|
|
2306
|
+
D.call(A), A.time = A.frame = 0, A.tick = function() {
|
|
2307
|
+
Ot(!0);
|
|
2308
|
+
}, A.lagSmoothing = function(vt, kt) {
|
|
2309
|
+
return arguments.length ? (b = vt || 1 / st, void (pt = Math.min(kt, b, 0))) : 1 / st > b;
|
|
2310
|
+
}, A.sleep = function() {
|
|
2311
|
+
w != null && (_t && Z ? Z(w) : clearTimeout(w), c = v, w = null, A === M && (W = !1));
|
|
2312
|
+
}, A.wake = function(vt) {
|
|
2313
|
+
w !== null ? A.sleep() : vt ? ft += -K + (K = U()) : A.frame > 10 && (K = U() - b + 5), c = f === 0 ? v : _t && R ? R : function(kt) {
|
|
2314
|
+
return setTimeout(kt, 1e3 * (j - A.time) + 1 | 0);
|
|
2315
|
+
}, A === M && (W = !0), Ot(2);
|
|
2316
|
+
}, A.fps = function(vt) {
|
|
2317
|
+
return arguments.length ? (f = vt, C = 1 / (f || 60), j = this.time + C, void A.wake()) : f;
|
|
2318
|
+
}, A.useRAF = function(vt) {
|
|
2319
|
+
return arguments.length ? (A.sleep(), _t = vt, void A.fps(f)) : _t;
|
|
2320
|
+
}, A.fps(r), setTimeout(function() {
|
|
2321
|
+
_t === "auto" && A.frame < 5 && (ut || {}).visibilityState !== "hidden" && A.useRAF(!1);
|
|
2322
|
+
}, 1500);
|
|
2323
|
+
}), S = $.Ticker.prototype = new $.events.EventDispatcher(), S.constructor = $.Ticker;
|
|
2324
|
+
var tt = n("core.Animation", function(r, u) {
|
|
2325
|
+
if (this.vars = u = u || {}, this._duration = this._totalDuration = r || 0, this._delay = Number(u.delay) || 0, this._timeScale = 1, this._active = u.immediateRender === !0, this.data = u.data, this._reversed = u.reversed === !0, Gt) {
|
|
2326
|
+
W || M.wake();
|
|
2327
|
+
var f = this.vars.useFrames ? te : Gt;
|
|
2328
|
+
f.add(this, f._time), this.vars.paused && this.paused(!0);
|
|
2329
|
+
}
|
|
2330
|
+
});
|
|
2331
|
+
M = tt.ticker = new $.Ticker(), S = tt.prototype, S._dirty = S._gc = S._initted = S._paused = !1, S._totalTime = S._time = 0, S._rawPrevTime = -1, S._next = S._last = S._onUpdate = S._timeline = S.timeline = null, S._paused = !1;
|
|
2332
|
+
var mt = function() {
|
|
2333
|
+
W && U() - K > 2e3 && ((ut || {}).visibilityState !== "hidden" || !M.lagSmoothing()) && M.wake();
|
|
2334
|
+
var r = setTimeout(mt, 2e3);
|
|
2335
|
+
r.unref && r.unref();
|
|
2336
|
+
};
|
|
2337
|
+
mt(), S.play = function(r, u) {
|
|
2338
|
+
return r != null && this.seek(r, u), this.reversed(!1).paused(!1);
|
|
2339
|
+
}, S.pause = function(r, u) {
|
|
2340
|
+
return r != null && this.seek(r, u), this.paused(!0);
|
|
2341
|
+
}, S.resume = function(r, u) {
|
|
2342
|
+
return r != null && this.seek(r, u), this.paused(!1);
|
|
2343
|
+
}, S.seek = function(r, u) {
|
|
2344
|
+
return this.totalTime(Number(r), u !== !1);
|
|
2345
|
+
}, S.restart = function(r, u) {
|
|
2346
|
+
return this.reversed(!1).paused(!1).totalTime(r ? -this._delay : 0, u !== !1, !0);
|
|
2347
|
+
}, S.reverse = function(r, u) {
|
|
2348
|
+
return r != null && this.seek(r || this.totalDuration(), u), this.reversed(!0).paused(!1);
|
|
2349
|
+
}, S.render = function(r, u, f) {
|
|
2350
|
+
}, S.invalidate = function() {
|
|
2351
|
+
return this._time = this._totalTime = 0, this._initted = this._gc = !1, this._rawPrevTime = -1, (this._gc || !this.timeline) && this._enabled(!0), this;
|
|
2352
|
+
}, S.isActive = function() {
|
|
2353
|
+
var r, u = this._timeline, f = this._startTime;
|
|
2354
|
+
return !u || !this._gc && !this._paused && u.isActive() && (r = u.rawTime(!0)) >= f && r < f + this.totalDuration() / this._timeScale - 1e-7;
|
|
2355
|
+
}, S._enabled = function(r, u) {
|
|
2356
|
+
return W || M.wake(), this._gc = !r, this._active = this.isActive(), u !== !0 && (r && !this.timeline ? this._timeline.add(this, this._startTime - this._delay) : !r && this.timeline && this._timeline._remove(this, !0)), !1;
|
|
2357
|
+
}, S._kill = function(r, u) {
|
|
2358
|
+
return this._enabled(!1, !1);
|
|
2359
|
+
}, S.kill = function(r, u) {
|
|
2360
|
+
return this._kill(r, u), this;
|
|
2361
|
+
}, S._uncache = function(r) {
|
|
2362
|
+
for (var u = r ? this : this.timeline; u; )
|
|
2363
|
+
u._dirty = !0, u = u.timeline;
|
|
2364
|
+
return this;
|
|
2365
|
+
}, S._swapSelfInParams = function(r) {
|
|
2366
|
+
for (var u = r.length, f = r.concat(); --u > -1; )
|
|
2367
|
+
r[u] === "{self}" && (f[u] = this);
|
|
2368
|
+
return f;
|
|
2369
|
+
}, S._callback = function(r) {
|
|
2370
|
+
var u = this.vars, f = u[r], c = u[r + "Params"], w = u[r + "Scope"] || u.callbackScope || this, C = c ? c.length : 0;
|
|
2371
|
+
switch (C) {
|
|
2372
|
+
case 0:
|
|
2373
|
+
f.call(w);
|
|
2374
|
+
break;
|
|
2375
|
+
case 1:
|
|
2376
|
+
f.call(w, c[0]);
|
|
2377
|
+
break;
|
|
2378
|
+
case 2:
|
|
2379
|
+
f.call(w, c[0], c[1]);
|
|
2380
|
+
break;
|
|
2381
|
+
default:
|
|
2382
|
+
f.apply(w, c);
|
|
2383
|
+
}
|
|
2384
|
+
}, S.eventCallback = function(r, u, f, c) {
|
|
2385
|
+
if ((r || "").substr(0, 2) === "on") {
|
|
2386
|
+
var w = this.vars;
|
|
2387
|
+
if (arguments.length === 1)
|
|
2388
|
+
return w[r];
|
|
2389
|
+
u == null ? delete w[r] : (w[r] = u, w[r + "Params"] = P(f) && f.join("").indexOf("{self}") !== -1 ? this._swapSelfInParams(f) : f, w[r + "Scope"] = c), r === "onUpdate" && (this._onUpdate = u);
|
|
2390
|
+
}
|
|
2391
|
+
return this;
|
|
2392
|
+
}, S.delay = function(r) {
|
|
2393
|
+
return arguments.length ? (this._timeline.smoothChildTiming && this.startTime(this._startTime + r - this._delay), this._delay = r, this) : this._delay;
|
|
2394
|
+
}, S.duration = function(r) {
|
|
2395
|
+
return arguments.length ? (this._duration = this._totalDuration = r, this._uncache(!0), this._timeline.smoothChildTiming && this._time > 0 && this._time < this._duration && r !== 0 && this.totalTime(this._totalTime * (r / this._duration), !0), this) : (this._dirty = !1, this._duration);
|
|
2396
|
+
}, S.totalDuration = function(r) {
|
|
2397
|
+
return this._dirty = !1, arguments.length ? this.duration(r) : this._totalDuration;
|
|
2398
|
+
}, S.time = function(r, u) {
|
|
2399
|
+
return arguments.length ? (this._dirty && this.totalDuration(), this.totalTime(r > this._duration ? this._duration : r, u)) : this._time;
|
|
2400
|
+
}, S.totalTime = function(r, u, f) {
|
|
2401
|
+
if (W || M.wake(), !arguments.length)
|
|
2402
|
+
return this._totalTime;
|
|
2403
|
+
if (this._timeline) {
|
|
2404
|
+
if (0 > r && !f && (r += this.totalDuration()), this._timeline.smoothChildTiming) {
|
|
2405
|
+
this._dirty && this.totalDuration();
|
|
2406
|
+
var c = this._totalDuration, w = this._timeline;
|
|
2407
|
+
if (r > c && !f && (r = c), this._startTime = (this._paused ? this._pauseTime : w._time) - (this._reversed ? c - r : r) / this._timeScale, w._dirty || this._uncache(!1), w._timeline)
|
|
2408
|
+
for (; w._timeline; )
|
|
2409
|
+
w._timeline._time !== (w._startTime + w._totalTime) / w._timeScale && w.totalTime(w._totalTime, !0), w = w._timeline;
|
|
2410
|
+
}
|
|
2411
|
+
this._gc && this._enabled(!0, !1), (this._totalTime !== r || this._duration === 0) && (yt.length && jt(), this.render(r, u, !1), yt.length && jt());
|
|
2412
|
+
}
|
|
2413
|
+
return this;
|
|
2414
|
+
}, S.progress = S.totalProgress = function(r, u) {
|
|
2415
|
+
var f = this.duration();
|
|
2416
|
+
return arguments.length ? this.totalTime(f * r, u) : f ? this._time / f : this.ratio;
|
|
2417
|
+
}, S.startTime = function(r) {
|
|
2418
|
+
return arguments.length ? (r !== this._startTime && (this._startTime = r, this.timeline && this.timeline._sortChildren && this.timeline.add(this, r - this._delay)), this) : this._startTime;
|
|
2419
|
+
}, S.endTime = function(r) {
|
|
2420
|
+
return this._startTime + (r != 0 ? this.totalDuration() : this.duration()) / this._timeScale;
|
|
2421
|
+
}, S.timeScale = function(r) {
|
|
2422
|
+
if (!arguments.length)
|
|
2423
|
+
return this._timeScale;
|
|
2424
|
+
var u, f;
|
|
2425
|
+
for (r = r || st, this._timeline && this._timeline.smoothChildTiming && (u = this._pauseTime, f = u || u === 0 ? u : this._timeline.totalTime(), this._startTime = f - (f - this._startTime) * this._timeScale / r), this._timeScale = r, f = this.timeline; f && f.timeline; )
|
|
2426
|
+
f._dirty = !0, f.totalDuration(), f = f.timeline;
|
|
2427
|
+
return this;
|
|
2428
|
+
}, S.reversed = function(r) {
|
|
2429
|
+
return arguments.length ? (r != this._reversed && (this._reversed = r, this.totalTime(
|
|
2430
|
+
this._timeline && !this._timeline.smoothChildTiming ? this.totalDuration() - this._totalTime : this._totalTime,
|
|
2431
|
+
!0
|
|
2432
|
+
)), this) : this._reversed;
|
|
2433
|
+
}, S.paused = function(r) {
|
|
2434
|
+
if (!arguments.length)
|
|
2435
|
+
return this._paused;
|
|
2436
|
+
var u, f, c = this._timeline;
|
|
2437
|
+
return r != this._paused && c && (W || r || M.wake(), u = c.rawTime(), f = u - this._pauseTime, !r && c.smoothChildTiming && (this._startTime += f, this._uncache(!1)), this._pauseTime = r ? u : null, this._paused = r, this._active = this.isActive(), !r && f !== 0 && this._initted && this.duration() && (u = c.smoothChildTiming ? this._totalTime : (u - this._startTime) / this._timeScale, this.render(u, u === this._totalTime, !0))), this._gc && !r && this._enabled(!0, !1), this;
|
|
2438
|
+
};
|
|
2439
|
+
var ot = n("core.SimpleTimeline", function(r) {
|
|
2440
|
+
tt.call(this, 0, r), this.autoRemoveChildren = this.smoothChildTiming = !0;
|
|
2441
|
+
});
|
|
2442
|
+
S = ot.prototype = new tt(), S.constructor = ot, S.kill()._gc = !1, S._first = S._last = S._recent = null, S._sortChildren = !1, S.add = S.insert = function(r, u, f, c) {
|
|
2443
|
+
var w, C;
|
|
2444
|
+
if (r._startTime = Number(u || 0) + r._delay, r._paused && this !== r._timeline && (r._pauseTime = this.rawTime() - (r._timeline.rawTime() - r._pauseTime)), r.timeline && r.timeline._remove(r, !0), r.timeline = r._timeline = this, r._gc && r._enabled(!0, !0), w = this._last, this._sortChildren)
|
|
2445
|
+
for (C = r._startTime; w && w._startTime > C; )
|
|
2446
|
+
w = w._prev;
|
|
2447
|
+
return w ? (r._next = w._next, w._next = r) : (r._next = this._first, this._first = r), r._next ? r._next._prev = r : this._last = r, r._prev = w, this._recent = r, this._timeline && this._uncache(!0), this;
|
|
2448
|
+
}, S._remove = function(r, u) {
|
|
2449
|
+
return r.timeline === this && (u || r._enabled(!1, !0), r._prev ? r._prev._next = r._next : this._first === r && (this._first = r._next), r._next ? r._next._prev = r._prev : this._last === r && (this._last = r._prev), r._next = r._prev = r.timeline = null, r === this._recent && (this._recent = this._last), this._timeline && this._uncache(!0)), this;
|
|
2450
|
+
}, S.render = function(r, u, f) {
|
|
2451
|
+
var c, w = this._first;
|
|
2452
|
+
for (this._totalTime = this._time = this._rawPrevTime = r; w; )
|
|
2453
|
+
c = w._next, (w._active || r >= w._startTime && !w._paused && !w._gc) && (w._reversed ? w.render(
|
|
2454
|
+
(w._dirty ? w.totalDuration() : w._totalDuration) - (r - w._startTime) * w._timeScale,
|
|
2455
|
+
u,
|
|
2456
|
+
f
|
|
2457
|
+
) : w.render((r - w._startTime) * w._timeScale, u, f)), w = c;
|
|
2458
|
+
}, S.rawTime = function() {
|
|
2459
|
+
return W || M.wake(), this._totalTime;
|
|
2460
|
+
};
|
|
2461
|
+
var J = n(
|
|
2462
|
+
"TweenLite",
|
|
2463
|
+
function(r, u, f) {
|
|
2464
|
+
if (tt.call(this, u, f), this.render = J.prototype.render, r == null)
|
|
2465
|
+
throw "Cannot tween a null target.";
|
|
2466
|
+
this.target = r = typeof r != "string" ? r : J.selector(r) || r;
|
|
2467
|
+
var c, w, C, j = r.jquery || r.length && r !== Y && r[0] && (r[0] === Y || r[0].nodeType && r[0].style && !r.nodeType), A = this.vars.overwrite;
|
|
2468
|
+
if (this._overwrite = A = A == null ? ce[J.defaultOverwrite] : typeof A == "number" ? A >> 0 : ce[A], (j || r instanceof Array || r.push && P(r)) && typeof r[0] != "number")
|
|
2469
|
+
for (this._targets = C = L(r), this._propLookup = [], this._siblings = [], c = 0; c < C.length; c++)
|
|
2470
|
+
w = C[c], w ? typeof w != "string" ? w.length && w !== Y && w[0] && (w[0] === Y || w[0].nodeType && w[0].style && !w.nodeType) ? (C.splice(c--, 1), this._targets = C = C.concat(L(w))) : (this._siblings[c] = wt(w, this, !1), A === 1 && this._siblings[c].length > 1 && ue(w, this, null, 1, this._siblings[c])) : (w = C[c--] = J.selector(w), typeof w == "string" && C.splice(c + 1, 1)) : C.splice(c--, 1);
|
|
2471
|
+
else
|
|
2472
|
+
this._propLookup = {}, this._siblings = wt(r, this, !1), A === 1 && this._siblings.length > 1 && ue(r, this, null, 1, this._siblings);
|
|
2473
|
+
(this.vars.immediateRender || u === 0 && this._delay === 0 && this.vars.immediateRender !== !1) && (this._time = -st, this.render(Math.min(0, -this._delay)));
|
|
2474
|
+
},
|
|
2475
|
+
!0
|
|
2476
|
+
), gt = function(r) {
|
|
2477
|
+
return r && r.length && r !== Y && r[0] && (r[0] === Y || r[0].nodeType && r[0].style && !r.nodeType);
|
|
2478
|
+
}, Yt = function(r, u) {
|
|
2479
|
+
var f, c = {};
|
|
2480
|
+
for (f in r)
|
|
2481
|
+
_e[f] || f in u && f !== "transform" && f !== "x" && f !== "y" && f !== "width" && f !== "height" && f !== "className" && f !== "border" || !(!Et[f] || Et[f] && Et[f]._autoCSS) || (c[f] = r[f], delete r[f]);
|
|
2482
|
+
r.css = c;
|
|
2483
|
+
};
|
|
2484
|
+
S = J.prototype = new tt(), S.constructor = J, S.kill()._gc = !1, S.ratio = 0, S._firstPT = S._targets = S._overwrittenProps = S._startAt = null, S._notifyPluginsOfEnabled = S._lazy = !1, J.version = "2.0.2", J.defaultEase = S._ease = new p(null, null, 1, 1), J.defaultOverwrite = "auto", J.ticker = M, J.autoSleep = 120, J.lagSmoothing = function(r, u) {
|
|
2485
|
+
M.lagSmoothing(r, u);
|
|
2486
|
+
}, J.selector = Y.$ || Y.jQuery || function(r) {
|
|
2487
|
+
var u = Y.$ || Y.jQuery;
|
|
2488
|
+
return u ? (J.selector = u, u(r)) : (ut || (ut = Y.document), ut ? ut.querySelectorAll ? ut.querySelectorAll(r) : ut.getElementById(r.charAt(0) === "#" ? r.substr(1) : r) : r);
|
|
2489
|
+
};
|
|
2490
|
+
var yt = [], At = {}, Jt = /(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi, Kt = /[\+-]=-?[\.\d]/, Wt = function(r) {
|
|
2491
|
+
for (var u, f = this._firstPT, c = 1e-6; f; )
|
|
2492
|
+
u = f.blob ? r === 1 && this.end != null ? this.end : r ? this.join("") : this.start : f.c * r + f.s, f.m ? u = f.m.call(this._tween, u, this._target || f.t, this._tween) : c > u && u > -c && !f.blob && (u = 0), f.f ? f.fp ? f.t[f.p](f.fp, u) : f.t[f.p](u) : f.t[f.p] = u, f = f._next;
|
|
2493
|
+
}, ae = function(r, u, f, c) {
|
|
2494
|
+
var w, C, j, A, ft, _t, b, pt = [], Pt = 0, Ot = "", vt = 0;
|
|
2495
|
+
for (pt.start = r, pt.end = u, r = pt[0] = r + "", u = pt[1] = u + "", f && (f(pt), r = pt[0], u = pt[1]), pt.length = 0, w = r.match(Jt) || [], C = u.match(Jt) || [], c && (c._next = null, c.blob = 1, pt._firstPT = pt._applyPT = c), ft = C.length, A = 0; ft > A; A++)
|
|
2496
|
+
b = C[A], _t = u.substr(Pt, u.indexOf(b, Pt) - Pt), Ot += _t || !A ? _t : ",", Pt += _t.length, vt ? vt = (vt + 1) % 5 : _t.substr(-5) === "rgba(" && (vt = 1), b === w[A] || w.length <= A ? Ot += b : (Ot && (pt.push(Ot), Ot = ""), j = parseFloat(w[A]), pt.push(j), pt._firstPT = {
|
|
2497
|
+
_next: pt._firstPT,
|
|
2498
|
+
t: pt,
|
|
2499
|
+
p: pt.length - 1,
|
|
2500
|
+
s: j,
|
|
2501
|
+
c: (b.charAt(1) === "=" ? parseInt(b.charAt(0) + "1", 10) * parseFloat(b.substr(2)) : parseFloat(b) - j) || 0,
|
|
2502
|
+
f: 0,
|
|
2503
|
+
m: vt && 4 > vt ? Math.round : 0
|
|
2504
|
+
}), Pt += b.length;
|
|
2505
|
+
return Ot += u.substr(Pt), Ot && pt.push(Ot), pt.setRatio = Wt, Kt.test(u) && (pt.end = null), pt;
|
|
2506
|
+
}, bt = function(r, u, f, c, w, C, j, A, ft) {
|
|
2507
|
+
typeof c == "function" && (c = c(ft || 0, r));
|
|
2508
|
+
var _t, b = typeof r[u], pt = b !== "function" ? "" : u.indexOf("set") || typeof r["get" + u.substr(3)] != "function" ? u : "get" + u.substr(3), Pt = f !== "get" ? f : pt ? j ? r[pt](j) : r[pt]() : r[u], Ot = typeof c == "string" && c.charAt(1) === "=", vt = {
|
|
2509
|
+
t: r,
|
|
2510
|
+
p: u,
|
|
2511
|
+
s: Pt,
|
|
2512
|
+
f: b === "function",
|
|
2513
|
+
pg: 0,
|
|
2514
|
+
n: w || u,
|
|
2515
|
+
m: C ? typeof C == "function" ? C : Math.round : 0,
|
|
2516
|
+
pr: 0,
|
|
2517
|
+
c: Ot ? parseInt(c.charAt(0) + "1", 10) * parseFloat(c.substr(2)) : parseFloat(c) - Pt || 0
|
|
2518
|
+
};
|
|
2519
|
+
return (typeof Pt != "number" || typeof c != "number" && !Ot) && (j || isNaN(Pt) || !Ot && isNaN(c) || typeof Pt == "boolean" || typeof c == "boolean" ? (vt.fp = j, _t = ae(
|
|
2520
|
+
Pt,
|
|
2521
|
+
Ot ? parseFloat(vt.s) + vt.c + (vt.s + "").replace(/[0-9\-\.]/g, "") : c,
|
|
2522
|
+
A || J.defaultStringFilter,
|
|
2523
|
+
vt
|
|
2524
|
+
), vt = {
|
|
2525
|
+
t: _t,
|
|
2526
|
+
p: "setRatio",
|
|
2527
|
+
s: 0,
|
|
2528
|
+
c: 1,
|
|
2529
|
+
f: 2,
|
|
2530
|
+
pg: 0,
|
|
2531
|
+
n: w || u,
|
|
2532
|
+
pr: 0,
|
|
2533
|
+
m: 0
|
|
2534
|
+
}) : (vt.s = parseFloat(Pt), Ot || (vt.c = parseFloat(c) - vt.s || 0))), vt.c ? ((vt._next = this._firstPT) && (vt._next._prev = vt), this._firstPT = vt, vt) : void 0;
|
|
2535
|
+
}, le = J._internals = {
|
|
2536
|
+
isArray: P,
|
|
2537
|
+
isSelector: gt,
|
|
2538
|
+
lazyTweens: yt,
|
|
2539
|
+
blobDif: ae
|
|
2540
|
+
}, Et = J._plugins = {}, zt = le.tweenLookup = {}, ee = 0, _e = le.reservedProps = {
|
|
2541
|
+
ease: 1,
|
|
2542
|
+
delay: 1,
|
|
2543
|
+
overwrite: 1,
|
|
2544
|
+
onComplete: 1,
|
|
2545
|
+
onCompleteParams: 1,
|
|
2546
|
+
onCompleteScope: 1,
|
|
2547
|
+
useFrames: 1,
|
|
2548
|
+
runBackwards: 1,
|
|
2549
|
+
startAt: 1,
|
|
2550
|
+
onUpdate: 1,
|
|
2551
|
+
onUpdateParams: 1,
|
|
2552
|
+
onUpdateScope: 1,
|
|
2553
|
+
onStart: 1,
|
|
2554
|
+
onStartParams: 1,
|
|
2555
|
+
onStartScope: 1,
|
|
2556
|
+
onReverseComplete: 1,
|
|
2557
|
+
onReverseCompleteParams: 1,
|
|
2558
|
+
onReverseCompleteScope: 1,
|
|
2559
|
+
onRepeat: 1,
|
|
2560
|
+
onRepeatParams: 1,
|
|
2561
|
+
onRepeatScope: 1,
|
|
2562
|
+
easeParams: 1,
|
|
2563
|
+
yoyo: 1,
|
|
2564
|
+
immediateRender: 1,
|
|
2565
|
+
repeat: 1,
|
|
2566
|
+
repeatDelay: 1,
|
|
2567
|
+
data: 1,
|
|
2568
|
+
paused: 1,
|
|
2569
|
+
reversed: 1,
|
|
2570
|
+
autoCSS: 1,
|
|
2571
|
+
lazy: 1,
|
|
2572
|
+
onOverwrite: 1,
|
|
2573
|
+
callbackScope: 1,
|
|
2574
|
+
stringFilter: 1,
|
|
2575
|
+
id: 1,
|
|
2576
|
+
yoyoEase: 1
|
|
2577
|
+
}, ce = {
|
|
2578
|
+
none: 0,
|
|
2579
|
+
all: 1,
|
|
2580
|
+
auto: 2,
|
|
2581
|
+
concurrent: 3,
|
|
2582
|
+
allOnStart: 4,
|
|
2583
|
+
preexisting: 5,
|
|
2584
|
+
true: 1,
|
|
2585
|
+
false: 0
|
|
2586
|
+
}, te = tt._rootFramesTimeline = new ot(), Gt = tt._rootTimeline = new ot(), se = 30, jt = le.lazyRender = function() {
|
|
2587
|
+
var r, u = yt.length;
|
|
2588
|
+
for (At = {}; --u > -1; )
|
|
2589
|
+
r = yt[u], r && r._lazy !== !1 && (r.render(r._lazy[0], r._lazy[1], !0), r._lazy = !1);
|
|
2590
|
+
yt.length = 0;
|
|
2591
|
+
};
|
|
2592
|
+
Gt._startTime = M.time, te._startTime = M.frame, Gt._active = te._active = !0, setTimeout(jt, 1), tt._updateRoot = J.render = function() {
|
|
2593
|
+
var r, u, f;
|
|
2594
|
+
if (yt.length && jt(), Gt.render((M.time - Gt._startTime) * Gt._timeScale, !1, !1), te.render((M.frame - te._startTime) * te._timeScale, !1, !1), yt.length && jt(), M.frame >= se) {
|
|
2595
|
+
se = M.frame + (parseInt(J.autoSleep, 10) || 120);
|
|
2596
|
+
for (f in zt) {
|
|
2597
|
+
for (u = zt[f].tweens, r = u.length; --r > -1; )
|
|
2598
|
+
u[r]._gc && u.splice(r, 1);
|
|
2599
|
+
u.length === 0 && delete zt[f];
|
|
2600
|
+
}
|
|
2601
|
+
if (f = Gt._first, (!f || f._paused) && J.autoSleep && !te._first && M._listeners.tick.length === 1) {
|
|
2602
|
+
for (; f && f._paused; )
|
|
2603
|
+
f = f._next;
|
|
2604
|
+
f || M.sleep();
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
}, M.addEventListener("tick", tt._updateRoot);
|
|
2608
|
+
var wt = function(r, u, f) {
|
|
2609
|
+
var c, w, C = r._gsTweenID;
|
|
2610
|
+
if (zt[C || (r._gsTweenID = C = "t" + ee++)] || (zt[C] = { target: r, tweens: [] }), u && (c = zt[C].tweens, c[w = c.length] = u, f))
|
|
2611
|
+
for (; --w > -1; )
|
|
2612
|
+
c[w] === u && c.splice(w, 1);
|
|
2613
|
+
return zt[C].tweens;
|
|
2614
|
+
}, Vt = function(r, u, f, c) {
|
|
2615
|
+
var w, C, j = r.vars.onOverwrite;
|
|
2616
|
+
return j && (w = j(r, u, f, c)), j = J.onOverwrite, j && (C = j(r, u, f, c)), w !== !1 && C !== !1;
|
|
2617
|
+
}, ue = function(r, u, f, c, w) {
|
|
2618
|
+
var C, j, A, ft;
|
|
2619
|
+
if (c === 1 || c >= 4) {
|
|
2620
|
+
for (ft = w.length, C = 0; ft > C; C++)
|
|
2621
|
+
if ((A = w[C]) !== u)
|
|
2622
|
+
A._gc || A._kill(null, r, u) && (j = !0);
|
|
2623
|
+
else if (c === 5)
|
|
2624
|
+
break;
|
|
2625
|
+
return j;
|
|
2626
|
+
}
|
|
2627
|
+
var _t, b = u._startTime + st, pt = [], Pt = 0, Ot = u._duration === 0;
|
|
2628
|
+
for (C = w.length; --C > -1; )
|
|
2629
|
+
(A = w[C]) === u || A._gc || A._paused || (A._timeline !== u._timeline ? (_t = _t || re(u, 0, Ot), re(A, _t, Ot) === 0 && (pt[Pt++] = A)) : A._startTime <= b && A._startTime + A.totalDuration() / A._timeScale > b && ((Ot || !A._initted) && b - A._startTime <= 2e-10 || (pt[Pt++] = A)));
|
|
2630
|
+
for (C = Pt; --C > -1; )
|
|
2631
|
+
if (A = pt[C], ft = A._firstPT, c === 2 && A._kill(f, r, u) && (j = !0), c !== 2 || !A._firstPT && A._initted && ft) {
|
|
2632
|
+
if (c !== 2 && !Vt(A, u))
|
|
2633
|
+
continue;
|
|
2634
|
+
A._enabled(!1, !1) && (j = !0);
|
|
2635
|
+
}
|
|
2636
|
+
return j;
|
|
2637
|
+
}, re = function(r, u, f) {
|
|
2638
|
+
for (var c = r._timeline, w = c._timeScale, C = r._startTime; c._timeline; ) {
|
|
2639
|
+
if (C += c._startTime, w *= c._timeScale, c._paused)
|
|
2640
|
+
return -100;
|
|
2641
|
+
c = c._timeline;
|
|
2642
|
+
}
|
|
2643
|
+
return C /= w, C > u ? C - u : f && C === u || !r._initted && 2 * st > C - u ? st : (C += r.totalDuration() / r._timeScale / w) > u + st ? 0 : C - u - st;
|
|
2644
|
+
};
|
|
2645
|
+
S._init = function() {
|
|
2646
|
+
var r, u, f, c, w, C, j = this.vars, A = this._overwrittenProps, ft = this._duration, _t = !!j.immediateRender, b = j.ease;
|
|
2647
|
+
if (j.startAt) {
|
|
2648
|
+
this._startAt && (this._startAt.render(-1, !0), this._startAt.kill()), w = {};
|
|
2649
|
+
for (c in j.startAt)
|
|
2650
|
+
w[c] = j.startAt[c];
|
|
2651
|
+
if (w.data = "isStart", w.overwrite = !1, w.immediateRender = !0, w.lazy = _t && j.lazy !== !1, w.startAt = w.delay = null, w.onUpdate = j.onUpdate, w.onUpdateParams = j.onUpdateParams, w.onUpdateScope = j.onUpdateScope || j.callbackScope || this, this._startAt = J.to(this.target || {}, 0, w), _t) {
|
|
2652
|
+
if (this._time > 0)
|
|
2653
|
+
this._startAt = null;
|
|
2654
|
+
else if (ft !== 0)
|
|
2655
|
+
return;
|
|
2656
|
+
}
|
|
2657
|
+
} else if (j.runBackwards && ft !== 0)
|
|
2658
|
+
if (this._startAt)
|
|
2659
|
+
this._startAt.render(-1, !0), this._startAt.kill(), this._startAt = null;
|
|
2660
|
+
else {
|
|
2661
|
+
this._time !== 0 && (_t = !1), f = {};
|
|
2662
|
+
for (c in j)
|
|
2663
|
+
_e[c] && c !== "autoCSS" || (f[c] = j[c]);
|
|
2664
|
+
if (f.overwrite = 0, f.data = "isFromStart", f.lazy = _t && j.lazy !== !1, f.immediateRender = _t, this._startAt = J.to(this.target, 0, f), _t) {
|
|
2665
|
+
if (this._time === 0)
|
|
2666
|
+
return;
|
|
2667
|
+
} else
|
|
2668
|
+
this._startAt._init(), this._startAt._enabled(!1), this.vars.immediateRender && (this._startAt = null);
|
|
2669
|
+
}
|
|
2670
|
+
if (this._ease = b = b ? b instanceof p ? b : typeof b == "function" ? new p(b, j.easeParams) : T[b] || J.defaultEase : J.defaultEase, j.easeParams instanceof Array && b.config && (this._ease = b.config.apply(b, j.easeParams)), this._easeType = this._ease._type, this._easePower = this._ease._power, this._firstPT = null, this._targets)
|
|
2671
|
+
for (C = this._targets.length, r = 0; C > r; r++)
|
|
2672
|
+
this._initProps(
|
|
2673
|
+
this._targets[r],
|
|
2674
|
+
this._propLookup[r] = {},
|
|
2675
|
+
this._siblings[r],
|
|
2676
|
+
A ? A[r] : null,
|
|
2677
|
+
r
|
|
2678
|
+
) && (u = !0);
|
|
2679
|
+
else
|
|
2680
|
+
u = this._initProps(
|
|
2681
|
+
this.target,
|
|
2682
|
+
this._propLookup,
|
|
2683
|
+
this._siblings,
|
|
2684
|
+
A,
|
|
2685
|
+
0
|
|
2686
|
+
);
|
|
2687
|
+
if (u && J._onPluginEvent("_onInitAllProps", this), A && (this._firstPT || typeof this.target != "function" && this._enabled(!1, !1)), j.runBackwards)
|
|
2688
|
+
for (f = this._firstPT; f; )
|
|
2689
|
+
f.s += f.c, f.c = -f.c, f = f._next;
|
|
2690
|
+
this._onUpdate = j.onUpdate, this._initted = !0;
|
|
2691
|
+
}, S._initProps = function(r, u, f, c, w) {
|
|
2692
|
+
var C, j, A, ft, _t, b;
|
|
2693
|
+
if (r == null)
|
|
2694
|
+
return !1;
|
|
2695
|
+
At[r._gsTweenID] && jt(), this.vars.css || r.style && r !== Y && r.nodeType && Et.css && this.vars.autoCSS !== !1 && Yt(this.vars, r);
|
|
2696
|
+
for (C in this.vars)
|
|
2697
|
+
if (b = this.vars[C], _e[C])
|
|
2698
|
+
b && (b instanceof Array || b.push && P(b)) && b.join("").indexOf("{self}") !== -1 && (this.vars[C] = b = this._swapSelfInParams(b, this));
|
|
2699
|
+
else if (Et[C] && (ft = new Et[C]())._onInitTween(r, this.vars[C], this, w)) {
|
|
2700
|
+
for (this._firstPT = _t = {
|
|
2701
|
+
_next: this._firstPT,
|
|
2702
|
+
t: ft,
|
|
2703
|
+
p: "setRatio",
|
|
2704
|
+
s: 0,
|
|
2705
|
+
c: 1,
|
|
2706
|
+
f: 1,
|
|
2707
|
+
n: C,
|
|
2708
|
+
pg: 1,
|
|
2709
|
+
pr: ft._priority,
|
|
2710
|
+
m: 0
|
|
2711
|
+
}, j = ft._overwriteProps.length; --j > -1; )
|
|
2712
|
+
u[ft._overwriteProps[j]] = this._firstPT;
|
|
2713
|
+
(ft._priority || ft._onInitAllProps) && (A = !0), (ft._onDisable || ft._onEnable) && (this._notifyPluginsOfEnabled = !0), _t._next && (_t._next._prev = _t);
|
|
2714
|
+
} else
|
|
2715
|
+
u[C] = bt.call(
|
|
2716
|
+
this,
|
|
2717
|
+
r,
|
|
2718
|
+
C,
|
|
2719
|
+
"get",
|
|
2720
|
+
b,
|
|
2721
|
+
C,
|
|
2722
|
+
0,
|
|
2723
|
+
null,
|
|
2724
|
+
this.vars.stringFilter,
|
|
2725
|
+
w
|
|
2726
|
+
);
|
|
2727
|
+
return c && this._kill(c, r) ? this._initProps(r, u, f, c, w) : this._overwrite > 1 && this._firstPT && f.length > 1 && ue(r, this, u, this._overwrite, f) ? (this._kill(u, r), this._initProps(r, u, f, c, w)) : (this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration) && (At[r._gsTweenID] = !0), A);
|
|
2728
|
+
}, S.render = function(r, u, f) {
|
|
2729
|
+
var c, w, C, j, A = this._time, ft = this._duration, _t = this._rawPrevTime;
|
|
2730
|
+
if (r >= ft - 1e-7 && r >= 0)
|
|
2731
|
+
this._totalTime = this._time = ft, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1, this._reversed || (c = !0, w = "onComplete", f = f || this._timeline.autoRemoveChildren), ft === 0 && (this._initted || !this.vars.lazy || f) && (this._startTime === this._timeline._duration && (r = 0), (0 > _t || 0 >= r && r >= -1e-7 || _t === st && this.data !== "isPause") && _t !== r && (f = !0, _t > st && (w = "onReverseComplete")), this._rawPrevTime = j = !u || r || _t === r ? r : st);
|
|
2732
|
+
else if (1e-7 > r)
|
|
2733
|
+
this._totalTime = this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (A !== 0 || ft === 0 && _t > 0) && (w = "onReverseComplete", c = this._reversed), 0 > r && (this._active = !1, ft === 0 && (this._initted || !this.vars.lazy || f) && (_t >= 0 && (_t !== st || this.data !== "isPause") && (f = !0), this._rawPrevTime = j = !u || r || _t === r ? r : st)), (!this._initted || this._startAt && this._startAt.progress()) && (f = !0);
|
|
2734
|
+
else if (this._totalTime = this._time = r, this._easeType) {
|
|
2735
|
+
var b = r / ft, pt = this._easeType, Pt = this._easePower;
|
|
2736
|
+
(pt === 1 || pt === 3 && b >= 0.5) && (b = 1 - b), pt === 3 && (b *= 2), Pt === 1 ? b *= b : Pt === 2 ? b *= b * b : Pt === 3 ? b *= b * b * b : Pt === 4 && (b *= b * b * b * b), pt === 1 ? this.ratio = 1 - b : pt === 2 ? this.ratio = b : 0.5 > r / ft ? this.ratio = b / 2 : this.ratio = 1 - b / 2;
|
|
2737
|
+
} else
|
|
2738
|
+
this.ratio = this._ease.getRatio(r / ft);
|
|
2739
|
+
if (this._time !== A || f) {
|
|
2740
|
+
if (!this._initted) {
|
|
2741
|
+
if (this._init(), !this._initted || this._gc)
|
|
2742
|
+
return;
|
|
2743
|
+
if (!f && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration))
|
|
2744
|
+
return this._time = this._totalTime = A, this._rawPrevTime = _t, yt.push(this), void (this._lazy = [r, u]);
|
|
2745
|
+
this._time && !c ? this.ratio = this._ease.getRatio(this._time / ft) : c && this._ease._calcEnd && (this.ratio = this._ease.getRatio(this._time === 0 ? 0 : 1));
|
|
2746
|
+
}
|
|
2747
|
+
for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== A && r >= 0 && (this._active = !0), A === 0 && (this._startAt && (r >= 0 ? this._startAt.render(r, !0, f) : w || (w = "_dummyGS")), this.vars.onStart && (this._time !== 0 || ft === 0) && (u || this._callback("onStart"))), C = this._firstPT; C; )
|
|
2748
|
+
C.f ? C.t[C.p](C.c * this.ratio + C.s) : C.t[C.p] = C.c * this.ratio + C.s, C = C._next;
|
|
2749
|
+
this._onUpdate && (0 > r && this._startAt && r !== -1e-4 && this._startAt.render(r, !0, f), u || (this._time !== A || c || f) && this._callback("onUpdate")), w && (!this._gc || f) && (0 > r && this._startAt && !this._onUpdate && r !== -1e-4 && this._startAt.render(r, !0, f), c && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !u && this.vars[w] && this._callback(w), ft === 0 && this._rawPrevTime === st && j !== st && (this._rawPrevTime = 0));
|
|
2750
|
+
}
|
|
2751
|
+
}, S._kill = function(r, u, f) {
|
|
2752
|
+
if (r === "all" && (r = null), r == null && (u == null || u === this.target))
|
|
2753
|
+
return this._lazy = !1, this._enabled(!1, !1);
|
|
2754
|
+
u = typeof u != "string" ? u || this._targets || this.target : J.selector(u) || u;
|
|
2755
|
+
var c, w, C, j, A, ft, _t, b, pt, Pt = f && this._time && f._startTime === this._startTime && this._timeline === f._timeline, Ot = this._firstPT;
|
|
2756
|
+
if ((P(u) || gt(u)) && typeof u[0] != "number")
|
|
2757
|
+
for (c = u.length; --c > -1; )
|
|
2758
|
+
this._kill(r, u[c], f) && (ft = !0);
|
|
2759
|
+
else {
|
|
2760
|
+
if (this._targets) {
|
|
2761
|
+
for (c = this._targets.length; --c > -1; )
|
|
2762
|
+
if (u === this._targets[c]) {
|
|
2763
|
+
A = this._propLookup[c] || {}, this._overwrittenProps = this._overwrittenProps || [], w = this._overwrittenProps[c] = r ? this._overwrittenProps[c] || {} : "all";
|
|
2764
|
+
break;
|
|
2765
|
+
}
|
|
2766
|
+
} else {
|
|
2767
|
+
if (u !== this.target)
|
|
2768
|
+
return !1;
|
|
2769
|
+
A = this._propLookup, w = this._overwrittenProps = r ? this._overwrittenProps || {} : "all";
|
|
2770
|
+
}
|
|
2771
|
+
if (A) {
|
|
2772
|
+
if (_t = r || A, b = r !== w && w !== "all" && r !== A && (typeof r != "object" || !r._tempKill), f && (J.onOverwrite || this.vars.onOverwrite)) {
|
|
2773
|
+
for (C in _t)
|
|
2774
|
+
A[C] && (pt || (pt = []), pt.push(C));
|
|
2775
|
+
if ((pt || !r) && !Vt(this, f, u, pt))
|
|
2776
|
+
return !1;
|
|
2777
|
+
}
|
|
2778
|
+
for (C in _t)
|
|
2779
|
+
(j = A[C]) && (Pt && (j.f ? j.t[j.p](j.s) : j.t[j.p] = j.s, ft = !0), j.pg && j.t._kill(_t) && (ft = !0), j.pg && j.t._overwriteProps.length !== 0 || (j._prev ? j._prev._next = j._next : j === this._firstPT && (this._firstPT = j._next), j._next && (j._next._prev = j._prev), j._next = j._prev = null), delete A[C]), b && (w[C] = 1);
|
|
2780
|
+
!this._firstPT && this._initted && Ot && this._enabled(!1, !1);
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
return ft;
|
|
2784
|
+
}, S.invalidate = function() {
|
|
2785
|
+
return this._notifyPluginsOfEnabled && J._onPluginEvent("_onDisable", this), this._firstPT = this._overwrittenProps = this._startAt = this._onUpdate = null, this._notifyPluginsOfEnabled = this._active = this._lazy = !1, this._propLookup = this._targets ? {} : [], tt.prototype.invalidate.call(this), this.vars.immediateRender && (this._time = -st, this.render(Math.min(0, -this._delay))), this;
|
|
2786
|
+
}, S._enabled = function(r, u) {
|
|
2787
|
+
if (W || M.wake(), r && this._gc) {
|
|
2788
|
+
var f, c = this._targets;
|
|
2789
|
+
if (c)
|
|
2790
|
+
for (f = c.length; --f > -1; )
|
|
2791
|
+
this._siblings[f] = wt(c[f], this, !0);
|
|
2792
|
+
else
|
|
2793
|
+
this._siblings = wt(this.target, this, !0);
|
|
2794
|
+
}
|
|
2795
|
+
return tt.prototype._enabled.call(this, r, u), this._notifyPluginsOfEnabled && this._firstPT ? J._onPluginEvent(r ? "_onEnable" : "_onDisable", this) : !1;
|
|
2796
|
+
}, J.to = function(r, u, f) {
|
|
2797
|
+
return new J(r, u, f);
|
|
2798
|
+
}, J.from = function(r, u, f) {
|
|
2799
|
+
return f.runBackwards = !0, f.immediateRender = f.immediateRender != 0, new J(r, u, f);
|
|
2800
|
+
}, J.fromTo = function(r, u, f, c) {
|
|
2801
|
+
return c.startAt = f, c.immediateRender = c.immediateRender != 0 && f.immediateRender != 0, new J(r, u, c);
|
|
2802
|
+
}, J.delayedCall = function(r, u, f, c, w) {
|
|
2803
|
+
return new J(u, 0, {
|
|
2804
|
+
delay: r,
|
|
2805
|
+
onComplete: u,
|
|
2806
|
+
onCompleteParams: f,
|
|
2807
|
+
callbackScope: c,
|
|
2808
|
+
onReverseComplete: u,
|
|
2809
|
+
onReverseCompleteParams: f,
|
|
2810
|
+
immediateRender: !1,
|
|
2811
|
+
lazy: !1,
|
|
2812
|
+
useFrames: w,
|
|
2813
|
+
overwrite: 0
|
|
2814
|
+
});
|
|
2815
|
+
}, J.set = function(r, u) {
|
|
2816
|
+
return new J(r, 0, u);
|
|
2817
|
+
}, J.getTweensOf = function(r, u) {
|
|
2818
|
+
if (r == null)
|
|
2819
|
+
return [];
|
|
2820
|
+
r = typeof r != "string" ? r : J.selector(r) || r;
|
|
2821
|
+
var f, c, w, C;
|
|
2822
|
+
if ((P(r) || gt(r)) && typeof r[0] != "number") {
|
|
2823
|
+
for (f = r.length, c = []; --f > -1; )
|
|
2824
|
+
c = c.concat(J.getTweensOf(r[f], u));
|
|
2825
|
+
for (f = c.length; --f > -1; )
|
|
2826
|
+
for (C = c[f], w = f; --w > -1; )
|
|
2827
|
+
C === c[w] && c.splice(f, 1);
|
|
2828
|
+
} else if (r._gsTweenID)
|
|
2829
|
+
for (c = wt(r).concat(), f = c.length; --f > -1; )
|
|
2830
|
+
(c[f]._gc || u && !c[f].isActive()) && c.splice(f, 1);
|
|
2831
|
+
return c || [];
|
|
2832
|
+
}, J.killTweensOf = J.killDelayedCallsTo = function(r, u, f) {
|
|
2833
|
+
typeof u == "object" && (f = u, u = !1);
|
|
2834
|
+
for (var c = J.getTweensOf(r, u), w = c.length; --w > -1; )
|
|
2835
|
+
c[w]._kill(f, r);
|
|
2836
|
+
};
|
|
2837
|
+
var Zt = n(
|
|
2838
|
+
"plugins.TweenPlugin",
|
|
2839
|
+
function(r, u) {
|
|
2840
|
+
this._overwriteProps = (r || "").split(","), this._propName = this._overwriteProps[0], this._priority = u || 0, this._super = Zt.prototype;
|
|
2841
|
+
},
|
|
2842
|
+
!0
|
|
2843
|
+
);
|
|
2844
|
+
if (S = Zt.prototype, Zt.version = "1.19.0", Zt.API = 2, S._firstPT = null, S._addTween = bt, S.setRatio = Wt, S._kill = function(r) {
|
|
2845
|
+
var u, f = this._overwriteProps, c = this._firstPT;
|
|
2846
|
+
if (r[this._propName] != null)
|
|
2847
|
+
this._overwriteProps = [];
|
|
2848
|
+
else
|
|
2849
|
+
for (u = f.length; --u > -1; )
|
|
2850
|
+
r[f[u]] != null && f.splice(u, 1);
|
|
2851
|
+
for (; c; )
|
|
2852
|
+
r[c.n] != null && (c._next && (c._next._prev = c._prev), c._prev ? (c._prev._next = c._next, c._prev = null) : this._firstPT === c && (this._firstPT = c._next)), c = c._next;
|
|
2853
|
+
return !1;
|
|
2854
|
+
}, S._mod = S._roundProps = function(r) {
|
|
2855
|
+
for (var u, f = this._firstPT; f; )
|
|
2856
|
+
u = r[this._propName] || f.n != null && r[f.n.split(this._propName + "_").join("")], u && typeof u == "function" && (f.f === 2 ? f.t._applyPT.m = u : f.m = u), f = f._next;
|
|
2857
|
+
}, J._onPluginEvent = function(r, u) {
|
|
2858
|
+
var f, c, w, C, j, A = u._firstPT;
|
|
2859
|
+
if (r === "_onInitAllProps") {
|
|
2860
|
+
for (; A; ) {
|
|
2861
|
+
for (j = A._next, c = w; c && c.pr > A.pr; )
|
|
2862
|
+
c = c._next;
|
|
2863
|
+
(A._prev = c ? c._prev : C) ? A._prev._next = A : w = A, (A._next = c) ? c._prev = A : C = A, A = j;
|
|
2864
|
+
}
|
|
2865
|
+
A = u._firstPT = w;
|
|
2866
|
+
}
|
|
2867
|
+
for (; A; )
|
|
2868
|
+
A.pg && typeof A.t[r] == "function" && A.t[r]() && (f = !0), A = A._next;
|
|
2869
|
+
return f;
|
|
2870
|
+
}, Zt.activate = function(r) {
|
|
2871
|
+
for (var u = r.length; --u > -1; )
|
|
2872
|
+
r[u].API === Zt.API && (Et[new r[u]()._propName] = r[u]);
|
|
2873
|
+
return !0;
|
|
2874
|
+
}, _.plugin = function(r) {
|
|
2875
|
+
if (!(r && r.propName && r.init && r.API))
|
|
2876
|
+
throw "illegal plugin definition.";
|
|
2877
|
+
var u, f = r.propName, c = r.priority || 0, w = r.overwriteProps, C = {
|
|
2878
|
+
init: "_onInitTween",
|
|
2879
|
+
set: "setRatio",
|
|
2880
|
+
kill: "_kill",
|
|
2881
|
+
round: "_mod",
|
|
2882
|
+
mod: "_mod",
|
|
2883
|
+
initAll: "_onInitAllProps"
|
|
2884
|
+
}, j = n(
|
|
2885
|
+
"plugins." + f.charAt(0).toUpperCase() + f.substr(1) + "Plugin",
|
|
2886
|
+
function() {
|
|
2887
|
+
Zt.call(this, f, c), this._overwriteProps = w || [];
|
|
2888
|
+
},
|
|
2889
|
+
r.global === !0
|
|
2890
|
+
), A = j.prototype = new Zt(f);
|
|
2891
|
+
A.constructor = j, j.API = r.API;
|
|
2892
|
+
for (u in C)
|
|
2893
|
+
typeof r[u] == "function" && (A[C[u]] = r[u]);
|
|
2894
|
+
return j.version = r.version, Zt.activate([j]), j;
|
|
2895
|
+
}, H = Y._gsQueue) {
|
|
2896
|
+
for (dt = 0; dt < H.length; dt++)
|
|
2897
|
+
H[dt]();
|
|
2898
|
+
for (S in e)
|
|
2899
|
+
e[S].func || Y.console.log("GSAP encountered missing dependency: " + S);
|
|
2900
|
+
}
|
|
2901
|
+
W = !1;
|
|
2902
|
+
}(
|
|
2903
|
+
typeof module < "u" && module.exports && typeof global < "u" ? global : globalThis || window,
|
|
2904
|
+
"TweenMax"
|
|
2905
|
+
);
|
|
2906
|
+
const ui = [Ke, _i], pi = {
|
|
2907
|
+
install(Y) {
|
|
2908
|
+
ui.forEach((Q, it) => {
|
|
2909
|
+
Y.component(Q.name, Q);
|
|
31
2910
|
});
|
|
32
2911
|
}
|
|
33
2912
|
};
|
|
34
2913
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
2914
|
+
Ke as Button,
|
|
2915
|
+
_i as Cutscenes,
|
|
2916
|
+
pi as default
|
|
37
2917
|
};
|