chbim-plugins 0.0.3 → 0.0.5
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 +581 -575
- package/chbim-plugins.umd.cjs +2 -2
- package/package.json +1 -1
package/chbim-plugins.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { openBlock as Fe, createElementBlock as Ee, normalizeClass as qe, renderSlot 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 be, defineComponent as We, ref as Ze, onMounted as $e, createElementVNode as oe, toDisplayString as Ge, createApp as He } from "vue";
|
|
2
|
+
const Qe = (B, J) => {
|
|
3
|
+
const K = B.__vccOpts || B;
|
|
4
|
+
for (const [at, E] of J)
|
|
5
|
+
K[at] = E;
|
|
6
|
+
return K;
|
|
7
|
+
}, Je = {
|
|
8
8
|
name: "MukButton"
|
|
9
|
-
},
|
|
9
|
+
}, Ke = /* @__PURE__ */ Object.assign(Je, {
|
|
10
10
|
props: {
|
|
11
11
|
size: {
|
|
12
12
|
type: String,
|
|
@@ -17,15 +17,15 @@ const He = (Y, Q) => {
|
|
|
17
17
|
default: "default"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
return (
|
|
22
|
-
class: qe(["muk-btn", [
|
|
20
|
+
setup(B) {
|
|
21
|
+
return (J, K) => (Fe(), Ee("button", {
|
|
22
|
+
class: qe(["muk-btn", [B.size, B.type]])
|
|
23
23
|
}, [
|
|
24
|
-
|
|
24
|
+
be(J.$slots, "default", {}, void 0, !0)
|
|
25
25
|
], 2));
|
|
26
26
|
}
|
|
27
|
-
}),
|
|
28
|
-
class
|
|
27
|
+
}), ti = /* @__PURE__ */ Qe(Ke, [["__scopeId", "data-v-0e6d93cd"]]);
|
|
28
|
+
class ei {
|
|
29
29
|
constructor() {
|
|
30
30
|
this.dom = {
|
|
31
31
|
mask: document.querySelector(".js-mask"),
|
|
@@ -150,40 +150,40 @@ class ti {
|
|
|
150
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
151
|
}
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const ii = { class: "mask js-mask" }, 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 = /* @__PURE__ */ oe("div", { class: "mask__slice js-mask__slice" }, null, -1), oi = { class: "mask__inner" }, ai = { class: "logo logo--mask" }, li = {
|
|
154
154
|
class: "js-logo",
|
|
155
155
|
style: { color: "#fff" }
|
|
156
|
-
},
|
|
156
|
+
}, hi = /* @__PURE__ */ oe("div", { class: "mask-line js-mask-line" }, [
|
|
157
157
|
/* @__PURE__ */ oe("div", { class: "mask-line__inner js-mask-line" })
|
|
158
|
-
], -1),
|
|
158
|
+
], -1), _i = {
|
|
159
159
|
name: "BimCutscenes"
|
|
160
|
-
},
|
|
161
|
-
...
|
|
160
|
+
}, ui = /* @__PURE__ */ We({
|
|
161
|
+
..._i,
|
|
162
162
|
props: {
|
|
163
163
|
text: {
|
|
164
164
|
type: String,
|
|
165
165
|
default: "CHBIM云平台"
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
|
-
setup(
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
},
|
|
172
|
-
|
|
168
|
+
setup(B, { expose: J }) {
|
|
169
|
+
const K = Ze(null), at = () => {
|
|
170
|
+
K.value === null && (K.value = new ei());
|
|
171
|
+
}, E = () => {
|
|
172
|
+
at(), K.value.continuation();
|
|
173
173
|
};
|
|
174
174
|
return $e(() => {
|
|
175
|
-
|
|
176
|
-
}),
|
|
177
|
-
continuation:
|
|
178
|
-
}), (V, H) => (Fe(), Ee("div",
|
|
179
|
-
ii,
|
|
175
|
+
at();
|
|
176
|
+
}), J({
|
|
177
|
+
continuation: E
|
|
178
|
+
}), (V, H) => (Fe(), Ee("div", ii, [
|
|
180
179
|
si,
|
|
181
180
|
ri,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
ni,
|
|
182
|
+
oe("div", oi, [
|
|
183
|
+
oe("figure", ai, [
|
|
184
|
+
oe("p", li, Ge(B.text), 1)
|
|
185
185
|
]),
|
|
186
|
-
|
|
186
|
+
hi
|
|
187
187
|
])
|
|
188
188
|
]));
|
|
189
189
|
}
|
|
@@ -206,23 +206,23 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
206
206
|
Dt._gsDefine(
|
|
207
207
|
"TweenMax",
|
|
208
208
|
["core.Animation", "core.SimpleTimeline", "TweenLite"],
|
|
209
|
-
function(
|
|
210
|
-
var
|
|
209
|
+
function(B, J, K) {
|
|
210
|
+
var at = function(v) {
|
|
211
211
|
var P, e = [], t = v.length;
|
|
212
212
|
for (P = 0; P !== t; e.push(v[P++]))
|
|
213
213
|
;
|
|
214
214
|
return e;
|
|
215
|
-
},
|
|
215
|
+
}, E = function(v, P, e) {
|
|
216
216
|
var t, _, n = v.cycle;
|
|
217
217
|
for (t in n)
|
|
218
218
|
_ = n[t], v[t] = typeof _ == "function" ? _(e, P[e]) : _[e % _.length];
|
|
219
219
|
delete v.cycle;
|
|
220
220
|
}, V = function(v, P, e) {
|
|
221
|
-
|
|
222
|
-
}, H = 1e-10, dt =
|
|
223
|
-
V.version = "2.0.2",
|
|
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),
|
|
225
|
-
},
|
|
221
|
+
K.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 = K._internals, S = dt.isSelector, M = dt.isArray, b = V.prototype = K.to({}, 0.1, {}), F = [];
|
|
223
|
+
V.version = "2.0.2", b.constructor = V, b.kill()._gc = !1, V.killTweensOf = V.killDelayedCallsTo = K.killTweensOf, V.getTweensOf = K.getTweensOf, V.lagSmoothing = K.lagSmoothing, V.ticker = K.ticker, V.render = K.render, b.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), K.prototype.invalidate.call(this);
|
|
225
|
+
}, b.updateTo = function(v, P) {
|
|
226
226
|
var e, t = this.ratio, _ = this.vars.immediateRender || v.immediateRender;
|
|
227
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
228
|
for (e in v)
|
|
@@ -230,7 +230,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
230
230
|
if (this._initted || _) {
|
|
231
231
|
if (P)
|
|
232
232
|
this._initted = !1, _ && this.render(0, !0, !0);
|
|
233
|
-
else if (this._gc && this._enabled(!0, !1), this._notifyPluginsOfEnabled && this._firstPT &&
|
|
233
|
+
else if (this._gc && this._enabled(!0, !1), this._notifyPluginsOfEnabled && this._firstPT && K._onPluginEvent("_onDisable", this), this._time / this._duration > 0.998) {
|
|
234
234
|
var n = this._totalTime;
|
|
235
235
|
this.render(0, !0, !1), this._initted = !1, this.render(n, !0, !1);
|
|
236
236
|
} else if (this._initted = !1, this._init(), this._time > 0 || _)
|
|
@@ -238,21 +238,21 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
238
238
|
g = T.s + T.c, T.c *= p, T.s = g - T.c, T = T._next;
|
|
239
239
|
}
|
|
240
240
|
return this;
|
|
241
|
-
},
|
|
241
|
+
}, b.render = function(v, P, e) {
|
|
242
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,
|
|
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, (
|
|
245
|
-
return void (
|
|
243
|
+
var t, _, n, g, p, T, O, D, R, Z = this._dirty ? this.totalDuration() : this._totalDuration, U = this._time, tt = this._totalTime, et = 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, (tt !== 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 >= tt && 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] || K.defaultEase : K.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 && et === this._cycle)
|
|
245
|
+
return void (tt !== this._totalTime && this._onUpdate && (P || this._callback("onUpdate")));
|
|
246
246
|
if (!this._initted) {
|
|
247
247
|
if (this._init(), !this._initted || this._gc)
|
|
248
248
|
return;
|
|
249
249
|
if (!e && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration))
|
|
250
|
-
return this._time = U, this._totalTime =
|
|
250
|
+
return this._time = U, this._totalTime = tt, this._rawPrevTime = ot, this._cycle = et, dt.lazyTweens.push(this), void (this._lazy = [v, P]);
|
|
251
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
252
|
}
|
|
253
|
-
for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== U && v >= 0 && (this._active = !0),
|
|
253
|
+
for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== U && v >= 0 && (this._active = !0), tt === 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
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 !==
|
|
255
|
+
this._onUpdate && (0 > v && this._startAt && this._startTime && this._startAt.render(v, !0, e), P || (this._totalTime !== tt || _) && this._callback("onUpdate")), this._cycle !== et && (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
256
|
}, V.to = function(v, P, e) {
|
|
257
257
|
return new V(v, P, e);
|
|
258
258
|
}, V.from = function(v, P, e) {
|
|
@@ -263,16 +263,16 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
263
263
|
t = t || 0;
|
|
264
264
|
var p, T, O, D, R = 0, Z = [], U = function() {
|
|
265
265
|
e.onComplete && e.onComplete.apply(e.onCompleteScope || this, arguments), _.apply(g || e.callbackScope || this, n || F);
|
|
266
|
-
},
|
|
267
|
-
for (M(v) || (typeof v == "string" && (v =
|
|
266
|
+
}, tt = e.cycle, et = e.startAt && e.startAt.cycle;
|
|
267
|
+
for (M(v) || (typeof v == "string" && (v = K.selector(v) || v), S(v) && (v = at(v))), v = v || [], 0 > t && (v = at(v), v.reverse(), t *= -1), p = v.length - 1, O = 0; p >= O; O++) {
|
|
268
268
|
T = {};
|
|
269
269
|
for (D in e)
|
|
270
270
|
T[D] = e[D];
|
|
271
|
-
if (
|
|
272
|
-
|
|
271
|
+
if (tt && (E(T, v, O), T.duration != null && (P = T.duration, delete T.duration)), et) {
|
|
272
|
+
et = T.startAt = {};
|
|
273
273
|
for (D in e.startAt)
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
et[D] = e.startAt[D];
|
|
275
|
+
E(T.startAt, v, O);
|
|
276
276
|
}
|
|
277
277
|
T.delay = R + (T.delay || 0), O === p && _ && (T.onComplete = U), Z[O] = new V(v[O], P, T), R += t;
|
|
278
278
|
}
|
|
@@ -296,24 +296,24 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
296
296
|
}, V.set = function(v, P) {
|
|
297
297
|
return new V(v, 0, P);
|
|
298
298
|
}, V.isTweening = function(v) {
|
|
299
|
-
return
|
|
299
|
+
return K.getTweensOf(v, !0).length > 0;
|
|
300
300
|
};
|
|
301
301
|
var $ = function(v, P) {
|
|
302
302
|
for (var e = [], t = 0, _ = v._first; _; )
|
|
303
|
-
_ instanceof
|
|
303
|
+
_ instanceof K ? e[t++] = _ : (P && (e[t++] = _), e = e.concat($(_, P)), t = e.length), _ = _._next;
|
|
304
304
|
return e;
|
|
305
305
|
}, st = V.getAllTweens = function(v) {
|
|
306
|
-
return $(
|
|
306
|
+
return $(B._rootTimeline, v).concat($(B._rootFramesTimeline, v));
|
|
307
307
|
};
|
|
308
308
|
V.killAll = function(v, P, e, t) {
|
|
309
309
|
P == null && (P = !0), e == null && (e = !0);
|
|
310
310
|
var _, n, g, p = st(t != 0), T = p.length, O = P && e && t;
|
|
311
311
|
for (g = 0; T > g; g++)
|
|
312
|
-
n = p[g], (O || n instanceof
|
|
312
|
+
n = p[g], (O || n instanceof J || (_ = n.target === n.vars.onComplete) && e || P && !_) && (v ? n.totalTime(n._reversed ? 0 : n.totalDuration()) : n._enabled(!1, !1));
|
|
313
313
|
}, V.killChildTweensOf = function(v, P) {
|
|
314
314
|
if (v != null) {
|
|
315
315
|
var e, t, _, n, g, p = dt.tweenLookup;
|
|
316
|
-
if (typeof v == "string" && (v =
|
|
316
|
+
if (typeof v == "string" && (v = K.selector(v) || v), S(v) && (v = at(v)), M(v))
|
|
317
317
|
for (n = v.length; --n > -1; )
|
|
318
318
|
V.killChildTweensOf(v[n], P);
|
|
319
319
|
else {
|
|
@@ -329,35 +329,35 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
329
329
|
var L = function(v, P, e, t) {
|
|
330
330
|
P = P !== !1, e = e !== !1, t = t !== !1;
|
|
331
331
|
for (var _, n, g = st(t), p = P && e && t, T = g.length; --T > -1; )
|
|
332
|
-
n = g[T], (p || n instanceof
|
|
332
|
+
n = g[T], (p || n instanceof J || (_ = n.target === n.vars.onComplete) && e || P && !_) && n.paused(v);
|
|
333
333
|
};
|
|
334
334
|
return V.pauseAll = function(v, P, e) {
|
|
335
335
|
L(!0, v, P, e);
|
|
336
336
|
}, V.resumeAll = function(v, P, e) {
|
|
337
337
|
L(!1, v, P, e);
|
|
338
338
|
}, V.globalTimeScale = function(v) {
|
|
339
|
-
var P =
|
|
340
|
-
return arguments.length ? (v = v || H, P._startTime = e - (e - P._startTime) * P._timeScale / v, P =
|
|
341
|
-
},
|
|
339
|
+
var P = B._rootTimeline, e = K.ticker.time;
|
|
340
|
+
return arguments.length ? (v = v || H, P._startTime = e - (e - P._startTime) * P._timeScale / v, P = B._rootFramesTimeline, e = K.ticker.frame, P._startTime = e - (e - P._startTime) * P._timeScale / v, P._timeScale = B._rootTimeline._timeScale = v, v) : P._timeScale;
|
|
341
|
+
}, b.progress = function(v, P) {
|
|
342
342
|
return arguments.length ? this.totalTime(
|
|
343
343
|
this.duration() * (this._yoyo && 1 & this._cycle ? 1 - v : v) + this._cycle * (this._duration + this._repeatDelay),
|
|
344
344
|
P
|
|
345
345
|
) : this._time / this.duration();
|
|
346
|
-
},
|
|
346
|
+
}, b.totalProgress = function(v, P) {
|
|
347
347
|
return arguments.length ? this.totalTime(this.totalDuration() * v, P) : this._totalTime / this.totalDuration();
|
|
348
|
-
},
|
|
348
|
+
}, b.time = function(v, P) {
|
|
349
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
|
-
},
|
|
351
|
-
return arguments.length ?
|
|
352
|
-
},
|
|
350
|
+
}, b.duration = function(v) {
|
|
351
|
+
return arguments.length ? B.prototype.duration.call(this, v) : this._duration;
|
|
352
|
+
}, b.totalDuration = function(v) {
|
|
353
353
|
return arguments.length ? this._repeat === -1 ? this : this.duration(
|
|
354
354
|
(v - this._repeat * this._repeatDelay) / (this._repeat + 1)
|
|
355
355
|
) : (this._dirty && (this._totalDuration = this._repeat === -1 ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat, this._dirty = !1), this._totalDuration);
|
|
356
|
-
},
|
|
356
|
+
}, b.repeat = function(v) {
|
|
357
357
|
return arguments.length ? (this._repeat = v, this._uncache(!0)) : this._repeat;
|
|
358
|
-
},
|
|
358
|
+
}, b.repeatDelay = function(v) {
|
|
359
359
|
return arguments.length ? (this._repeatDelay = v, this._uncache(!0)) : this._repeatDelay;
|
|
360
|
-
},
|
|
360
|
+
}, b.yoyo = function(v) {
|
|
361
361
|
return arguments.length ? (this._yoyo = v, this) : this._yoyo;
|
|
362
362
|
}, V;
|
|
363
363
|
},
|
|
@@ -365,14 +365,14 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
365
365
|
), Dt._gsDefine(
|
|
366
366
|
"TimelineLite",
|
|
367
367
|
["core.Animation", "core.SimpleTimeline", "TweenLite"],
|
|
368
|
-
function(
|
|
369
|
-
var
|
|
370
|
-
|
|
368
|
+
function(B, J, K) {
|
|
369
|
+
var at = function(e) {
|
|
370
|
+
J.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
371
|
var t, _, n = this.vars;
|
|
372
372
|
for (_ in n)
|
|
373
373
|
t = n[_], S(t) && t.join("").indexOf("{self}") !== -1 && (n[_] = this._swapSelfInParams(t));
|
|
374
374
|
S(n.tweens) && this.add(n.tweens, 0, n.align, n.stagger);
|
|
375
|
-
},
|
|
375
|
+
}, E = 1e-10, V = K._internals, H = at._internals = {}, dt = V.isSelector, S = V.isArray, M = V.lazyTweens, b = V.lazyRender, F = Dt._gsDefine.globals, $ = function(e) {
|
|
376
376
|
var t, _ = {};
|
|
377
377
|
for (t in e)
|
|
378
378
|
_[t] = e[t];
|
|
@@ -388,23 +388,23 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
388
388
|
for (t = 0; t !== n; _.push(e[t++]))
|
|
389
389
|
;
|
|
390
390
|
return _;
|
|
391
|
-
}, P =
|
|
392
|
-
return
|
|
393
|
-
var g = _.repeat && F.TweenMax ||
|
|
391
|
+
}, P = at.prototype = new J();
|
|
392
|
+
return at.version = "2.0.2", P.constructor = at, P.kill()._gc = P._forcingPlayhead = P._hasPause = !1, P.to = function(e, t, _, n) {
|
|
393
|
+
var g = _.repeat && F.TweenMax || K;
|
|
394
394
|
return t ? this.add(new g(e, t, _), n) : this.set(e, _, n);
|
|
395
395
|
}, P.from = function(e, t, _, n) {
|
|
396
|
-
return this.add((_.repeat && F.TweenMax ||
|
|
396
|
+
return this.add((_.repeat && F.TweenMax || K).from(e, t, _), n);
|
|
397
397
|
}, P.fromTo = function(e, t, _, n, g) {
|
|
398
|
-
var p = n.repeat && F.TweenMax ||
|
|
398
|
+
var p = n.repeat && F.TweenMax || K;
|
|
399
399
|
return t ? this.add(p.fromTo(e, t, _, n), g) : this.set(e, n, g);
|
|
400
400
|
}, P.staggerTo = function(e, t, _, n, g, p, T, O) {
|
|
401
|
-
var D, R, Z = new
|
|
401
|
+
var D, R, Z = new at({
|
|
402
402
|
onComplete: p,
|
|
403
403
|
onCompleteParams: T,
|
|
404
404
|
callbackScope: O,
|
|
405
405
|
smoothChildTiming: this.smoothChildTiming
|
|
406
406
|
}), U = _.cycle;
|
|
407
|
-
for (typeof e == "string" && (e =
|
|
407
|
+
for (typeof e == "string" && (e = K.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
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
409
|
return this.add(Z, g);
|
|
410
410
|
}, P.staggerFrom = function(e, t, _, n, g, p, T, O) {
|
|
@@ -412,30 +412,30 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
412
412
|
}, P.staggerFromTo = function(e, t, _, n, g, p, T, O, D) {
|
|
413
413
|
return n.startAt = _, n.immediateRender = n.immediateRender != 0 && _.immediateRender != 0, this.staggerTo(e, t, n, g, p, T, O, D);
|
|
414
414
|
}, P.call = function(e, t, _, n) {
|
|
415
|
-
return this.add(
|
|
415
|
+
return this.add(K.delayedCall(0, e, t, _), n);
|
|
416
416
|
}, P.set = function(e, t, _) {
|
|
417
|
-
return _ = this._parseTimeOrLabel(_, 0, !0), t.immediateRender == null && (t.immediateRender = _ === this._time && !this._paused), this.add(new
|
|
418
|
-
},
|
|
417
|
+
return _ = this._parseTimeOrLabel(_, 0, !0), t.immediateRender == null && (t.immediateRender = _ === this._time && !this._paused), this.add(new K(e, 0, t), _);
|
|
418
|
+
}, at.exportRoot = function(e, t) {
|
|
419
419
|
e = e || {}, e.smoothChildTiming == null && (e.smoothChildTiming = !0);
|
|
420
|
-
var _, n, g, p, T = new
|
|
420
|
+
var _, n, g, p, T = new at(e), O = T._timeline;
|
|
421
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
|
|
422
|
+
p = g._next, t && g instanceof K && g.target === g.vars.onComplete || (n = g._startTime - g._delay, 0 > n && (_ = 1), T.add(g, n)), g = p;
|
|
423
423
|
return O.add(T, 0), _ && T.totalDuration(), T;
|
|
424
424
|
}, P.add = function(e, t, _, n) {
|
|
425
425
|
var g, p, T, O, D, R;
|
|
426
|
-
if (typeof t != "number" && (t = this._parseTimeOrLabel(t, 0, !0, e)), !(e instanceof
|
|
426
|
+
if (typeof t != "number" && (t = this._parseTimeOrLabel(t, 0, !0, e)), !(e instanceof B)) {
|
|
427
427
|
if (e instanceof Array || e && e.push && S(e)) {
|
|
428
428
|
for (_ = _ || "normal", n = n || 0, g = t, p = e.length, T = 0; p > T; T++)
|
|
429
|
-
S(O = e[T]) && (O = new
|
|
429
|
+
S(O = e[T]) && (O = new at({ 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
430
|
return this._uncache(!0);
|
|
431
431
|
}
|
|
432
432
|
if (typeof e == "string")
|
|
433
433
|
return this.addLabel(e, t);
|
|
434
434
|
if (typeof e != "function")
|
|
435
435
|
throw "Cannot add " + e + " into the timeline; it is not a tween, timeline, function, or string.";
|
|
436
|
-
e =
|
|
436
|
+
e = K.delayedCall(0, e);
|
|
437
437
|
}
|
|
438
|
-
if (
|
|
438
|
+
if (J.prototype.add.call(this, e, t), e._time && (g = Math.max(
|
|
439
439
|
0,
|
|
440
440
|
Math.min(
|
|
441
441
|
e.totalDuration(),
|
|
@@ -446,9 +446,9 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
446
446
|
R && D._timeline.smoothChildTiming ? D.totalTime(D._totalTime, !0) : D._gc && D._enabled(!0, !1), D = D._timeline;
|
|
447
447
|
return this;
|
|
448
448
|
}, P.remove = function(e) {
|
|
449
|
-
if (e instanceof
|
|
449
|
+
if (e instanceof B) {
|
|
450
450
|
this._remove(e, !1);
|
|
451
|
-
var t = e._timeline = e.vars.useFrames ?
|
|
451
|
+
var t = e._timeline = e.vars.useFrames ? B._rootFramesTimeline : B._rootTimeline;
|
|
452
452
|
return e._startTime = (e._paused ? e._pauseTime : t._time) - (e._reversed ? e.totalDuration() - e._totalTime : e._totalTime) / e._timeScale, this;
|
|
453
453
|
}
|
|
454
454
|
if (e instanceof Array || e && e.push && S(e)) {
|
|
@@ -458,7 +458,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
458
458
|
}
|
|
459
459
|
return typeof e == "string" ? this.removeLabel(e) : this.kill(null, e);
|
|
460
460
|
}, P._remove = function(e, t) {
|
|
461
|
-
|
|
461
|
+
J.prototype._remove.call(this, e, t);
|
|
462
462
|
var _ = this._last;
|
|
463
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
464
|
}, P.append = function(e, t) {
|
|
@@ -470,7 +470,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
470
470
|
}, P.addLabel = function(e, t) {
|
|
471
471
|
return this._labels[e] = this._parseTimeOrLabel(t), this;
|
|
472
472
|
}, P.addPause = function(e, t, _, n) {
|
|
473
|
-
var g =
|
|
473
|
+
var g = K.delayedCall(0, L, _, n || this);
|
|
474
474
|
return g.vars.onComplete = g.vars.onReverseComplete = t, g.data = "isPause", this._hasPause = !0, this.add(g, e);
|
|
475
475
|
}, P.removeLabel = function(e) {
|
|
476
476
|
return delete this._labels[e], this;
|
|
@@ -478,11 +478,11 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
478
478
|
return this._labels[e] != null ? this._labels[e] : -1;
|
|
479
479
|
}, P._parseTimeOrLabel = function(e, t, _, n) {
|
|
480
480
|
var g, p;
|
|
481
|
-
if (n instanceof
|
|
481
|
+
if (n instanceof B && n.timeline === this)
|
|
482
482
|
this.remove(n);
|
|
483
483
|
else if (n && (n instanceof Array || n.push && S(n)))
|
|
484
484
|
for (p = n.length; --p > -1; )
|
|
485
|
-
n[p] instanceof
|
|
485
|
+
n[p] instanceof B && n[p].timeline === this && this.remove(n[p]);
|
|
486
486
|
if (g = typeof e != "number" || t ? this.duration() > 99999999999 ? this.recent().endTime(!1) : this._duration : 0, typeof t == "string")
|
|
487
487
|
return this._parseTimeOrLabel(
|
|
488
488
|
t,
|
|
@@ -510,14 +510,14 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
510
510
|
return this.pause(e, t);
|
|
511
511
|
}, P.render = function(e, t, _) {
|
|
512
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,
|
|
513
|
+
var n, g, p, T, O, D, R, Z = this._time, U = this._dirty ? this.totalDuration() : this._totalDuration, tt = this._startTime, et = this._timeScale, mt = this._paused;
|
|
514
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 ===
|
|
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 === E) && this._rawPrevTime !== e && this._first && (O = !0, this._rawPrevTime > E && (T = "onReverseComplete"))), this._rawPrevTime = this._duration || !t || e || this._rawPrevTime === e ? e : E, e = U + 1e-4;
|
|
516
516
|
else if (1e-7 > e)
|
|
517
|
-
if (this._totalTime = this._time = 0, (Z !== 0 || this._duration === 0 && this._rawPrevTime !==
|
|
517
|
+
if (this._totalTime = this._time = 0, (Z !== 0 || this._duration === 0 && this._rawPrevTime !== E && (this._rawPrevTime > 0 || 0 > e && this._rawPrevTime >= 0)) && (T = "onReverseComplete", g = this._reversed), 0 > e)
|
|
518
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
519
|
else {
|
|
520
|
-
if (this._rawPrevTime = this._duration || !t || e || this._rawPrevTime === e ? e :
|
|
520
|
+
if (this._rawPrevTime = this._duration || !t || e || this._rawPrevTime === e ? e : E, e === 0 && g)
|
|
521
521
|
for (n = this._first; n && n._startTime === 0; )
|
|
522
522
|
n._duration || (g = !1), n = n._next;
|
|
523
523
|
e = 0, this._initted || (O = !0);
|
|
@@ -562,11 +562,11 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
562
562
|
}
|
|
563
563
|
n = p;
|
|
564
564
|
}
|
|
565
|
-
this._onUpdate && (t || (M.length &&
|
|
565
|
+
this._onUpdate && (t || (M.length && b(), this._callback("onUpdate"))), T && (this._gc || (tt === this._startTime || et !== this._timeScale) && (this._time === 0 || U >= this.totalDuration()) && (g && (M.length && b(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !t && this.vars[T] && this._callback(T)));
|
|
566
566
|
}
|
|
567
567
|
}, P._hasPausedChild = function() {
|
|
568
568
|
for (var e = this._first; e; ) {
|
|
569
|
-
if (e._paused || e instanceof
|
|
569
|
+
if (e._paused || e instanceof at && e._hasPausedChild())
|
|
570
570
|
return !0;
|
|
571
571
|
e = e._next;
|
|
572
572
|
}
|
|
@@ -574,11 +574,11 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
574
574
|
}, P.getChildren = function(e, t, _, n) {
|
|
575
575
|
n = n || -9999999999;
|
|
576
576
|
for (var g = [], p = this._first, T = 0; p; )
|
|
577
|
-
p._startTime < n || (p instanceof
|
|
577
|
+
p._startTime < n || (p instanceof K ? 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
578
|
return g;
|
|
579
579
|
}, P.getTweensOf = function(e, t) {
|
|
580
580
|
var _, n, g = this._gc, p = [], T = 0;
|
|
581
|
-
for (g && this._enabled(!0, !0), _ =
|
|
581
|
+
for (g && this._enabled(!0, !0), _ = K.getTweensOf(e), n = _.length; --n > -1; )
|
|
582
582
|
(_[n].timeline === this || t && this._contains(_[n])) && (p[T++] = _[n]);
|
|
583
583
|
return g && this._enabled(!1, !0), p;
|
|
584
584
|
}, P.recent = function() {
|
|
@@ -612,15 +612,15 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
612
612
|
}, P.invalidate = function() {
|
|
613
613
|
for (var e = this._first; e; )
|
|
614
614
|
e.invalidate(), e = e._next;
|
|
615
|
-
return
|
|
615
|
+
return B.prototype.invalidate.call(this);
|
|
616
616
|
}, P._enabled = function(e, t) {
|
|
617
617
|
if (e === this._gc)
|
|
618
618
|
for (var _ = this._first; _; )
|
|
619
619
|
_._enabled(e, !0), _ = _._next;
|
|
620
|
-
return
|
|
620
|
+
return J.prototype._enabled.call(this, e, t);
|
|
621
621
|
}, P.totalTime = function(e, t, _) {
|
|
622
622
|
this._forcingPlayhead = !0;
|
|
623
|
-
var n =
|
|
623
|
+
var n = B.prototype.totalTime.apply(this, arguments);
|
|
624
624
|
return this._forcingPlayhead = !1, n;
|
|
625
625
|
}, P.duration = function(e) {
|
|
626
626
|
return arguments.length ? (this.duration() !== 0 && e !== 0 && this.timeScale(this._duration / e), this) : (this._dirty && this.totalDuration(), this._duration);
|
|
@@ -638,28 +638,28 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
638
638
|
if (!e)
|
|
639
639
|
for (var t = this._first, _ = this._time; t; )
|
|
640
640
|
t._startTime === _ && t.data === "isPause" && (t._rawPrevTime = 0), t = t._next;
|
|
641
|
-
return
|
|
641
|
+
return B.prototype.paused.apply(this, arguments);
|
|
642
642
|
}, P.usesFrames = function() {
|
|
643
643
|
for (var e = this._timeline; e._timeline; )
|
|
644
644
|
e = e._timeline;
|
|
645
|
-
return e ===
|
|
645
|
+
return e === B._rootFramesTimeline;
|
|
646
646
|
}, P.rawTime = function(e) {
|
|
647
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
|
-
},
|
|
648
|
+
}, at;
|
|
649
649
|
},
|
|
650
650
|
!0
|
|
651
651
|
), Dt._gsDefine(
|
|
652
652
|
"TimelineMax",
|
|
653
653
|
["TimelineLite", "TweenLite", "easing.Ease"],
|
|
654
|
-
function(
|
|
655
|
-
var
|
|
656
|
-
|
|
657
|
-
},
|
|
658
|
-
return
|
|
659
|
-
return this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._uncache(!0),
|
|
660
|
-
},
|
|
661
|
-
return this.add(
|
|
662
|
-
},
|
|
654
|
+
function(B, J, K) {
|
|
655
|
+
var at = function(F) {
|
|
656
|
+
B.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
|
+
}, E = 1e-10, V = J._internals, H = V.lazyTweens, dt = V.lazyRender, S = Dt._gsDefine.globals, M = new K(null, null, 1, 0), b = at.prototype = new B();
|
|
658
|
+
return b.constructor = at, b.kill()._gc = !1, at.version = "2.0.2", b.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), B.prototype.invalidate.call(this);
|
|
660
|
+
}, b.addCallback = function(F, $, st, L) {
|
|
661
|
+
return this.add(J.delayedCall(0, F, st, L), $);
|
|
662
|
+
}, b.removeCallback = function(F, $) {
|
|
663
663
|
if (F)
|
|
664
664
|
if ($ == null)
|
|
665
665
|
this._kill(null, F);
|
|
@@ -667,16 +667,16 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
667
667
|
for (var st = this.getTweensOf(F, !1), L = st.length, v = this._parseTimeOrLabel($); --L > -1; )
|
|
668
668
|
st[L]._startTime === v && st[L]._enabled(!1, !1);
|
|
669
669
|
return this;
|
|
670
|
-
},
|
|
671
|
-
return this.removeCallback(
|
|
672
|
-
},
|
|
670
|
+
}, b.removePause = function(F) {
|
|
671
|
+
return this.removeCallback(B._internals.pauseCallback, F);
|
|
672
|
+
}, b.tweenTo = function(F, $) {
|
|
673
673
|
$ = $ || {};
|
|
674
674
|
var st, L, v, P = {
|
|
675
675
|
ease: M,
|
|
676
676
|
useFrames: this.usesFrames(),
|
|
677
677
|
immediateRender: !1,
|
|
678
678
|
lazy: !1
|
|
679
|
-
}, e = $.repeat && S.TweenMax ||
|
|
679
|
+
}, e = $.repeat && S.TweenMax || J;
|
|
680
680
|
for (L in $)
|
|
681
681
|
P[L] = $[L];
|
|
682
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() {
|
|
@@ -687,7 +687,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
687
687
|
$.onStartParams || []
|
|
688
688
|
);
|
|
689
689
|
}, v;
|
|
690
|
-
},
|
|
690
|
+
}, b.tweenFromTo = function(F, $, st) {
|
|
691
691
|
st = st || {}, F = this._parseTimeOrLabel(F), st.startAt = {
|
|
692
692
|
onComplete: this.seek,
|
|
693
693
|
onCompleteParams: [F],
|
|
@@ -695,22 +695,22 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
695
695
|
}, st.immediateRender = st.immediateRender !== !1;
|
|
696
696
|
var L = this.tweenTo($, st);
|
|
697
697
|
return L.isFromTo = 1, L.duration(Math.abs(L.vars.time - F) / this._timeScale || 1e-3);
|
|
698
|
-
},
|
|
698
|
+
}, b.render = function(F, $, st) {
|
|
699
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,
|
|
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, tt = this._paused, et = this._cycle;
|
|
701
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 ===
|
|
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 === E) && U !== F && this._first && (t = !0, U > E && (e = "onReverseComplete"))), this._rawPrevTime = this._duration || !$ || F || this._rawPrevTime === F ? F : E, this._yoyo && 1 & this._cycle ? this._time = F = 0 : (this._time = O, F = O + 1e-4);
|
|
703
703
|
else if (1e-7 > F)
|
|
704
|
-
if (this._locked || (this._totalTime = this._cycle = 0), this._time = 0, (p !== 0 || O === 0 && U !==
|
|
704
|
+
if (this._locked || (this._totalTime = this._cycle = 0), this._time = 0, (p !== 0 || O === 0 && U !== E && (U > 0 || 0 > F && U >= 0) && !this._locked) && (e = "onReverseComplete", v = this._reversed), 0 > F)
|
|
705
705
|
this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (t = v = !0, e = "onReverseComplete") : U >= 0 && this._first && (t = !0), this._rawPrevTime = F;
|
|
706
706
|
else {
|
|
707
|
-
if (this._rawPrevTime = O || !$ || F || this._rawPrevTime === F ? F :
|
|
707
|
+
if (this._rawPrevTime = O || !$ || F || this._rawPrevTime === F ? F : E, F === 0 && v)
|
|
708
708
|
for (L = this._first; L && L._startTime === 0; )
|
|
709
709
|
L._duration || (v = !1), L = L._next;
|
|
710
710
|
F = 0, this._initted || (t = !0);
|
|
711
711
|
}
|
|
712
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 &&
|
|
713
|
+
if (F = this._time, F >= p || this._repeat && et !== this._cycle)
|
|
714
714
|
for (L = this._first; L && L._startTime <= F && !n; )
|
|
715
715
|
L._duration || L.data !== "isPause" || L.ratio || L._startTime === 0 && this._rawPrevTime === 0 || (n = L), L = L._next;
|
|
716
716
|
else
|
|
@@ -718,23 +718,23 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
718
718
|
L._duration || L.data === "isPause" && L._rawPrevTime > 0 && (n = L), L = L._prev;
|
|
719
719
|
n && n._startTime < O && (this._time = F = n._startTime, this._totalTime = F + this._cycle * (this._totalDuration + this._repeatDelay));
|
|
720
720
|
}
|
|
721
|
-
if (this._cycle !==
|
|
722
|
-
var mt = this._yoyo && (1 &
|
|
723
|
-
if (this._totalTime =
|
|
721
|
+
if (this._cycle !== et && !this._locked) {
|
|
722
|
+
var mt = this._yoyo && (1 & et) !== 0, ot = mt === (this._yoyo && (1 & this._cycle) !== 0), Q = this._totalTime, gt = this._cycle, Yt = this._rawPrevTime, yt = this._time;
|
|
723
|
+
if (this._totalTime = et * O, this._cycle < et ? mt = !mt : this._totalTime += O, this._time = p, this._rawPrevTime = O === 0 ? U - 1e-4 : U, this._cycle = et, 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 = et, this._locked = !0, p = mt ? O + 1e-4 : -1e-4, this.render(p, !0, !1)), this._locked = !1, this._paused && !tt))
|
|
724
724
|
return;
|
|
725
|
-
this._time = yt, this._totalTime =
|
|
725
|
+
this._time = yt, this._totalTime = Q, this._cycle = gt, this._rawPrevTime = Yt;
|
|
726
726
|
}
|
|
727
727
|
if (!(this._time !== p && this._first || st || t || n))
|
|
728
728
|
return void (D !== this._totalTime && this._onUpdate && ($ || this._callback("onUpdate")));
|
|
729
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 ||
|
|
730
|
+
for (L = this._first; L && (P = L._next, g === this._time && (!this._paused || tt)); )
|
|
731
731
|
(L._active || L._startTime <= this._time && !L._paused && !L._gc) && (n === L && this.pause(), L._reversed ? L.render(
|
|
732
732
|
(L._dirty ? L.totalDuration() : L._totalDuration) - (F - L._startTime) * L._timeScale,
|
|
733
733
|
$,
|
|
734
734
|
st
|
|
735
735
|
) : L.render((F - L._startTime) * L._timeScale, $, st)), L = P;
|
|
736
736
|
else
|
|
737
|
-
for (L = this._last; L && (P = L._prev, g === this._time && (!this._paused ||
|
|
737
|
+
for (L = this._last; L && (P = L._prev, g === this._time && (!this._paused || tt)); ) {
|
|
738
738
|
if (L._active || L._startTime <= p && !L._paused && !L._gc) {
|
|
739
739
|
if (n === L) {
|
|
740
740
|
for (n = L._prev; n && n.endTime() > this._time; )
|
|
@@ -754,68 +754,68 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
754
754
|
L = P;
|
|
755
755
|
}
|
|
756
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
|
-
},
|
|
757
|
+
}, b.getActive = function(F, $, st) {
|
|
758
758
|
F == null && (F = !0), $ == null && ($ = !0), st == null && (st = !1);
|
|
759
759
|
var L, v, P = [], e = this.getChildren(F, $, st), t = 0, _ = e.length;
|
|
760
760
|
for (L = 0; _ > L; L++)
|
|
761
761
|
v = e[L], v.isActive() && (P[t++] = v);
|
|
762
762
|
return P;
|
|
763
|
-
},
|
|
763
|
+
}, b.getLabelAfter = function(F) {
|
|
764
764
|
F || F !== 0 && (F = this._time);
|
|
765
765
|
var $, st = this.getLabelsArray(), L = st.length;
|
|
766
766
|
for ($ = 0; L > $; $++)
|
|
767
767
|
if (st[$].time > F)
|
|
768
768
|
return st[$].name;
|
|
769
769
|
return null;
|
|
770
|
-
},
|
|
770
|
+
}, b.getLabelBefore = function(F) {
|
|
771
771
|
F == null && (F = this._time);
|
|
772
772
|
for (var $ = this.getLabelsArray(), st = $.length; --st > -1; )
|
|
773
773
|
if ($[st].time < F)
|
|
774
774
|
return $[st].name;
|
|
775
775
|
return null;
|
|
776
|
-
},
|
|
776
|
+
}, b.getLabelsArray = function() {
|
|
777
777
|
var F, $ = [], st = 0;
|
|
778
778
|
for (F in this._labels)
|
|
779
779
|
$[st++] = { time: this._labels[F], name: F };
|
|
780
780
|
return $.sort(function(L, v) {
|
|
781
781
|
return L.time - v.time;
|
|
782
782
|
}), $;
|
|
783
|
-
},
|
|
784
|
-
return this._locked = !1,
|
|
785
|
-
},
|
|
783
|
+
}, b.invalidate = function() {
|
|
784
|
+
return this._locked = !1, B.prototype.invalidate.call(this);
|
|
785
|
+
}, b.progress = function(F, $) {
|
|
786
786
|
return arguments.length ? this.totalTime(
|
|
787
787
|
this.duration() * (this._yoyo && 1 & this._cycle ? 1 - F : F) + this._cycle * (this._duration + this._repeatDelay),
|
|
788
788
|
$
|
|
789
789
|
) : this._time / this.duration() || 0;
|
|
790
|
-
},
|
|
790
|
+
}, b.totalProgress = function(F, $) {
|
|
791
791
|
return arguments.length ? this.totalTime(this.totalDuration() * F, $) : this._totalTime / this.totalDuration() || 0;
|
|
792
|
-
},
|
|
793
|
-
return arguments.length ? this._repeat !== -1 && F ? this.timeScale(this.totalDuration() / F) : this : (this._dirty && (
|
|
794
|
-
},
|
|
792
|
+
}, b.totalDuration = function(F) {
|
|
793
|
+
return arguments.length ? this._repeat !== -1 && F ? this.timeScale(this.totalDuration() / F) : this : (this._dirty && (B.prototype.totalDuration.call(this), this._totalDuration = this._repeat === -1 ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat), this._totalDuration);
|
|
794
|
+
}, b.time = function(F, $) {
|
|
795
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
|
-
},
|
|
796
|
+
}, b.repeat = function(F) {
|
|
797
797
|
return arguments.length ? (this._repeat = F, this._uncache(!0)) : this._repeat;
|
|
798
|
-
},
|
|
798
|
+
}, b.repeatDelay = function(F) {
|
|
799
799
|
return arguments.length ? (this._repeatDelay = F, this._uncache(!0)) : this._repeatDelay;
|
|
800
|
-
},
|
|
800
|
+
}, b.yoyo = function(F) {
|
|
801
801
|
return arguments.length ? (this._yoyo = F, this) : this._yoyo;
|
|
802
|
-
},
|
|
802
|
+
}, b.currentLabel = function(F) {
|
|
803
803
|
return arguments.length ? this.seek(F, !0) : this.getLabelBefore(this._time + 1e-8);
|
|
804
|
-
},
|
|
804
|
+
}, at;
|
|
805
805
|
},
|
|
806
806
|
!0
|
|
807
807
|
), function() {
|
|
808
|
-
var
|
|
808
|
+
var B = 180 / Math.PI, J = [], K = [], at = [], E = {}, V = Dt._gsDefine.globals, H = function(e, t, _, n) {
|
|
809
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
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,
|
|
812
|
-
return g.b = D + (e - D) / 4, p.b = U +
|
|
811
|
+
var g = { a: e }, p = {}, T = {}, O = { c: n }, D = (e + t) / 2, R = (t + _) / 2, Z = (_ + n) / 2, U = (D + R) / 2, tt = (R + Z) / 2, et = (tt - U) / 8;
|
|
812
|
+
return g.b = D + (e - D) / 4, p.b = U + et, g.c = p.a = (g.b + p.b) / 2, p.c = T.a = (U + tt) / 2, T.b = tt - et, O.b = Z + (n - Z) / 4, T.c = O.a = (T.b + O.b) / 2, [g, p, T, O];
|
|
813
813
|
}, M = function(e, t, _, n, g) {
|
|
814
|
-
var p, T, O, D, R, Z, U,
|
|
814
|
+
var p, T, O, D, R, Z, U, tt, et, mt, ot, Q, gt, Yt = e.length - 1, yt = 0, At = e[0].a;
|
|
815
815
|
for (p = 0; Yt > p; p++)
|
|
816
|
-
R = e[yt], T = R.a, O = R.d, D = e[yt + 1].d, g ? (ot =
|
|
816
|
+
R = e[yt], T = R.a, O = R.d, D = e[yt + 1].d, g ? (ot = J[p], Q = K[p], gt = (Q + ot) * t * 0.25 / (n ? 0.5 : at[p] || 0.5), Z = O - (O - T) * (n ? 0.5 * t : ot !== 0 ? gt / ot : 0), U = O + (D - O) * (n ? 0.5 * t : Q !== 0 ? gt / Q : 0), tt = O - (Z + ((U - Z) * (3 * ot / (ot + Q) + 0.5) / 4 || 0))) : (Z = O - (O - T) * t * 0.5, U = O + (D - O) * t * 0.5, tt = O - (Z + U) / 2), Z += tt, U += tt, R.c = et = Z, p !== 0 ? R.b = At : R.b = At = R.a + 0.6 * (R.c - R.a), R.da = O - T, R.ca = et - T, R.ba = At - T, _ ? (mt = S(T, At, et, O), e.splice(yt, 1, mt[0], mt[1], mt[2], mt[3]), yt += 4) : yt++, At = U;
|
|
817
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
|
-
},
|
|
818
|
+
}, b = function(e, t, _, n) {
|
|
819
819
|
var g, p, T, O, D, R, Z = [];
|
|
820
820
|
if (n)
|
|
821
821
|
for (e = [n].concat(e), p = e.length; --p > -1; )
|
|
@@ -823,62 +823,62 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
823
823
|
if (g = e.length - 2, 0 > g)
|
|
824
824
|
return Z[0] = new H(e[0][t], 0, 0, e[0][t]), Z;
|
|
825
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],
|
|
826
|
+
T = e[p][t], O = e[p + 1][t], Z[p] = new H(T, 0, 0, O), _ && (D = e[p + 2][t], J[p] = (J[p] || 0) + (O - T) * (O - T), K[p] = (K[p] || 0) + (D - O) * (D - O));
|
|
827
827
|
return Z[p] = new H(e[p][t], 0, 0, e[p + 1][t]), Z;
|
|
828
828
|
}, F = function(e, t, _, n, g, p) {
|
|
829
|
-
var T, O, D, R, Z, U,
|
|
829
|
+
var T, O, D, R, Z, U, tt, et, mt = {}, ot = [], Q = p || e[0];
|
|
830
830
|
g = typeof g == "string" ? "," + g + "," : dt, t == null && (t = 1);
|
|
831
831
|
for (O in e[0])
|
|
832
832
|
ot.push(O);
|
|
833
833
|
if (e.length > 1) {
|
|
834
|
-
for (
|
|
835
|
-
if (O = ot[T], Math.abs(
|
|
836
|
-
|
|
834
|
+
for (et = e[e.length - 1], tt = !0, T = ot.length; --T > -1; )
|
|
835
|
+
if (O = ot[T], Math.abs(Q[O] - et[O]) > 0.05) {
|
|
836
|
+
tt = !1;
|
|
837
837
|
break;
|
|
838
838
|
}
|
|
839
|
-
|
|
839
|
+
tt && (e = e.concat(), p && e.unshift(p), e.push(e[1]), p = e[e.length - 3]);
|
|
840
840
|
}
|
|
841
|
-
for (
|
|
842
|
-
O = ot[T],
|
|
843
|
-
for (T =
|
|
844
|
-
|
|
841
|
+
for (J.length = K.length = at.length = 0, T = ot.length; --T > -1; )
|
|
842
|
+
O = ot[T], E[O] = g.indexOf("," + O + ",") !== -1, mt[O] = b(e, O, E[O], p);
|
|
843
|
+
for (T = J.length; --T > -1; )
|
|
844
|
+
J[T] = Math.sqrt(J[T]), K[T] = Math.sqrt(K[T]);
|
|
845
845
|
if (!n) {
|
|
846
846
|
for (T = ot.length; --T > -1; )
|
|
847
|
-
if (
|
|
847
|
+
if (E[O])
|
|
848
848
|
for (D = mt[ot[T]], U = D.length - 1, R = 0; U > R; R++)
|
|
849
|
-
Z = D[R + 1].da /
|
|
850
|
-
for (T =
|
|
851
|
-
|
|
849
|
+
Z = D[R + 1].da / K[R] + D[R].da / J[R] || 0, at[R] = (at[R] || 0) + Z * Z;
|
|
850
|
+
for (T = at.length; --T > -1; )
|
|
851
|
+
at[T] = Math.sqrt(at[T]);
|
|
852
852
|
}
|
|
853
853
|
for (T = ot.length, R = _ ? 4 : 1; --T > -1; )
|
|
854
|
-
O = ot[T], D = mt[O], M(D, t, _, n,
|
|
854
|
+
O = ot[T], D = mt[O], M(D, t, _, n, E[O]), tt && (D.splice(0, R), D.splice(D.length - R, R));
|
|
855
855
|
return mt;
|
|
856
856
|
}, $ = function(e, t, _) {
|
|
857
857
|
t = t || "soft";
|
|
858
|
-
var n, g, p, T, O, D, R, Z, U,
|
|
859
|
-
if (
|
|
858
|
+
var n, g, p, T, O, D, R, Z, U, tt, et, mt = {}, ot = t === "cubic" ? 3 : 2, Q = t === "soft", gt = [];
|
|
859
|
+
if (Q && _ && (e = [_].concat(e)), e == null || e.length < ot + 1)
|
|
860
860
|
throw "invalid Bezier data";
|
|
861
861
|
for (U in e[0])
|
|
862
862
|
gt.push(U);
|
|
863
863
|
for (D = gt.length; --D > -1; ) {
|
|
864
|
-
for (U = gt[D], mt[U] = O = [],
|
|
865
|
-
n = _ == null ? e[R][U] : typeof (
|
|
866
|
-
for (Z =
|
|
867
|
-
n = O[R], g = O[R + 1], p = O[R + 2], T = ot === 2 ? 0 : O[R + 3], O[
|
|
868
|
-
O.length =
|
|
864
|
+
for (U = gt[D], mt[U] = O = [], tt = 0, Z = e.length, R = 0; Z > R; R++)
|
|
865
|
+
n = _ == null ? e[R][U] : typeof (et = e[R][U]) == "string" && et.charAt(1) === "=" ? _[U] + Number(et.charAt(0) + et.substr(2)) : Number(et), Q && R > 1 && Z - 1 > R && (O[tt++] = (n + O[tt - 2]) / 2), O[tt++] = n;
|
|
866
|
+
for (Z = tt - ot + 1, tt = 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[tt++] = et = ot === 3 ? new H(n, g, p, T) : new H(n, (2 * g + n) / 3, (2 * g + p) / 3, p);
|
|
868
|
+
O.length = tt;
|
|
869
869
|
}
|
|
870
870
|
return mt;
|
|
871
871
|
}, st = function(e, t, _) {
|
|
872
|
-
for (var n, g, p, T, O, D, R, Z, U,
|
|
873
|
-
for (
|
|
874
|
-
R = mt * Z, U = 1 - R, n = g - (g = (R * R * T + 3 * U * (R * O + U * D)) * R),
|
|
872
|
+
for (var n, g, p, T, O, D, R, Z, U, tt, et, mt = 1 / _, ot = e.length; --ot > -1; )
|
|
873
|
+
for (tt = e[ot], p = tt.a, T = tt.d - p, O = tt.c - p, D = tt.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), et = ot * _ + Z - 1, t[et] = (t[et] || 0) + n * n;
|
|
875
875
|
}, L = function(e, t) {
|
|
876
876
|
t = t >> 0 || 6;
|
|
877
|
-
var _, n, g, p, T = [], O = [], D = 0, R = 0, Z = t - 1, U = [],
|
|
877
|
+
var _, n, g, p, T = [], O = [], D = 0, R = 0, Z = t - 1, U = [], tt = [];
|
|
878
878
|
for (_ in e)
|
|
879
879
|
st(e[_], T, t);
|
|
880
880
|
for (g = T.length, n = 0; g > n; n++)
|
|
881
|
-
D += Math.sqrt(T[n]), p = n % t,
|
|
881
|
+
D += Math.sqrt(T[n]), p = n % t, tt[p] = D, p === Z && (R += D, p = n / t >> 0, U[p] = tt, O[p] = R, D = 0, tt = []);
|
|
882
882
|
return { length: R, lengths: O, segments: U };
|
|
883
883
|
}, v = Dt._gsDefine.plugin({
|
|
884
884
|
propName: "bezier",
|
|
@@ -902,8 +902,8 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
902
902
|
t.correlate,
|
|
903
903
|
O
|
|
904
904
|
) : $(D, t.type, R), this._segCount = this._beziers[n].length, this._timeRes) {
|
|
905
|
-
var
|
|
906
|
-
this._length =
|
|
905
|
+
var tt = L(this._beziers, this._timeRes);
|
|
906
|
+
this._length = tt.length, this._lengths = tt.lengths, this._segments = tt.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
907
|
}
|
|
908
908
|
if (U = this._autoRotate)
|
|
909
909
|
for (this._initialRotations = [], U[0] instanceof Array || (this._autoRotate = U = [U]), p = U.length; --p > -1; ) {
|
|
@@ -914,7 +914,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
914
914
|
return this._startRatio = _.vars.runBackwards ? 1 : 0, !0;
|
|
915
915
|
},
|
|
916
916
|
set: function(e) {
|
|
917
|
-
var t, _, n, g, p, T, O, D, R, Z, U = this._segCount,
|
|
917
|
+
var t, _, n, g, p, T, O, D, R, Z, U = this._segCount, tt = this._func, et = this._target, mt = e !== this._startRatio;
|
|
918
918
|
if (this._timeRes) {
|
|
919
919
|
if (R = this._lengths, Z = this._curSeg, e *= this._length, n = this._li, e > this._l2 && U - 1 > n) {
|
|
920
920
|
for (D = U - 1; D > n && (this._l2 = R[++n]) <= e; )
|
|
@@ -938,11 +938,11 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
938
938
|
} else
|
|
939
939
|
t = 0 > e ? 0 : e >= 1 ? U - 1 : U * e >> 0, T = (e - t * (1 / U)) * U;
|
|
940
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,
|
|
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, et)), tt[g] ? et[g](O) : et[g] = O;
|
|
942
942
|
if (this._autoRotate) {
|
|
943
|
-
var ot,
|
|
943
|
+
var ot, Q, gt, Yt, yt, At, Jt, Kt = this._autoRotate;
|
|
944
944
|
for (n = Kt.length; --n > -1; )
|
|
945
|
-
g = Kt[n][2], At = Kt[n][3] || 0, Jt = Kt[n][4] === !0 ? 1 :
|
|
945
|
+
g = Kt[n][2], At = Kt[n][3] || 0, Jt = Kt[n][4] === !0 ? 1 : B, p = this._beziers[Kt[n][0]], ot = this._beziers[Kt[n][1]], p && ot && (p = p[t], ot = ot[t], Q = p.a + (p.b - p.a) * T, Yt = p.b + (p.c - p.b) * T, Q += (Yt - Q) * 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 - Q) * Jt + At : this._initialRotations[n], this._mod[g] && (O = this._mod[g](O, et)), tt[g] ? et[g](O) : et[g] = O);
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
}), P = v.prototype;
|
|
@@ -955,14 +955,14 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
955
955
|
t._registerComplexSpecialProp("bezier", {
|
|
956
956
|
parser: function(p, T, O, D, R, Z) {
|
|
957
957
|
T instanceof Array && (T = { values: T }), Z = new v();
|
|
958
|
-
var U,
|
|
958
|
+
var U, tt, et, mt = T.values, ot = mt.length - 1, Q = [], gt = {};
|
|
959
959
|
if (0 > ot)
|
|
960
960
|
return R;
|
|
961
961
|
for (U = 0; ot >= U; U++)
|
|
962
|
-
|
|
963
|
-
for (
|
|
964
|
-
gt[
|
|
965
|
-
return gt.values =
|
|
962
|
+
et = _(p, mt[U], D, R, Z, ot !== U), Q[U] = et.end;
|
|
963
|
+
for (tt in T)
|
|
964
|
+
gt[tt] = T[tt];
|
|
965
|
+
return gt.values = Q, R = new g(p, "bezier", 0, 0, et.pt, 2), R.data = et, 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 = et.end.left != null ? [["left", "top", "rotation", U, !1]] : et.end.x != null ? [["x", "y", "rotation", U, !1]] : !1), gt.autoRotate && (D._transform || D._enableTransforms(!1), et.autoRotate = D._target._gsTransform, et.proxy.rotation = et.autoRotate.rotation || 0, D._overwriteProps.push("rotation")), Z._onInitTween(et.proxy, gt, D._tween), R;
|
|
966
966
|
}
|
|
967
967
|
});
|
|
968
968
|
}
|
|
@@ -983,10 +983,10 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
983
983
|
}(), Dt._gsDefine(
|
|
984
984
|
"plugins.CSSPlugin",
|
|
985
985
|
["plugins.TweenPlugin", "TweenLite"],
|
|
986
|
-
function(
|
|
987
|
-
var
|
|
988
|
-
|
|
989
|
-
}, dt = Dt._gsDefine.globals, S = {}, M = H.prototype = new
|
|
986
|
+
function(B, J) {
|
|
987
|
+
var K, at, E, V, H = function() {
|
|
988
|
+
B.call(this, "css"), this._overwriteProps.length = 0, this.setRatio = H.prototype.setRatio;
|
|
989
|
+
}, dt = Dt._gsDefine.globals, S = {}, M = H.prototype = new B("css");
|
|
990
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
991
|
top: M,
|
|
992
992
|
right: M,
|
|
@@ -1000,15 +1000,15 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1000
1000
|
perspective: M,
|
|
1001
1001
|
lineHeight: ""
|
|
1002
1002
|
};
|
|
1003
|
-
var
|
|
1003
|
+
var b, 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, tt = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi, et = function(i, o) {
|
|
1004
1004
|
return o.toUpperCase();
|
|
1005
|
-
}, mt = /(?:Left|Right|Width)/i, ot = /(M11|M12|M21|M22)=[\d\-\.e]+/gi,
|
|
1005
|
+
}, mt = /(?:Left|Right|Width)/i, ot = /(M11|M12|M21|M22)=[\d\-\.e]+/gi, Q = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i, gt = /,(?=[^\)]*(?:\(|$))/gi, Yt = /[\s,\(]/i, yt = Math.PI / 180, At = 180 / Math.PI, Jt = {}, Kt = { style: {} }, bt = Dt.document || {
|
|
1006
1006
|
createElement: function() {
|
|
1007
1007
|
return Kt;
|
|
1008
1008
|
}
|
|
1009
1009
|
}, ae = function(i, o) {
|
|
1010
|
-
return
|
|
1011
|
-
},
|
|
1010
|
+
return bt.createElementNS ? bt.createElementNS(o || "http://www.w3.org/1999/xhtml", i) : bt.createElement(i);
|
|
1011
|
+
}, Wt = ae("div"), le = ae("img"), Et = H._internals = { _specialProps: S }, zt = (Dt.navigator || {}).userAgent || "", ee = function() {
|
|
1012
1012
|
var i = zt.indexOf("Android"), o = ae("a");
|
|
1013
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
1014
|
}(), _e = function(i) {
|
|
@@ -1018,14 +1018,14 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1018
1018
|
}, ce = function(i) {
|
|
1019
1019
|
Dt.console && console.log(i);
|
|
1020
1020
|
}, te = "", Gt = "", se = function(i, o) {
|
|
1021
|
-
o = o ||
|
|
1021
|
+
o = o || Wt;
|
|
1022
1022
|
var l, a, s = o.style;
|
|
1023
1023
|
if (s[i] !== void 0)
|
|
1024
1024
|
return i;
|
|
1025
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
1026
|
;
|
|
1027
1027
|
return a >= 0 ? (Gt = a === 3 ? "ms" : l[a], te = "-" + Gt.toLowerCase() + "-", Gt + i) : null;
|
|
1028
|
-
}, jt = (typeof window < "u" ? window :
|
|
1028
|
+
}, jt = (typeof window < "u" ? window : bt.defaultView || { getComputedStyle: function() {
|
|
1029
1029
|
} }).getComputedStyle, wt = H.getStyle = function(i, o, l, a, s) {
|
|
1030
1030
|
var d;
|
|
1031
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);
|
|
@@ -1034,7 +1034,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1034
1034
|
return l;
|
|
1035
1035
|
if (a === "auto" || !l)
|
|
1036
1036
|
return 0;
|
|
1037
|
-
var d, h, y, k = mt.test(o), x = i, m =
|
|
1037
|
+
var d, h, y, k = mt.test(o), x = i, m = Wt.style, I = 0 > l, N = l === 1;
|
|
1038
1038
|
if (I && (l = -l), N && (l *= 100), o !== "lineHeight" || a)
|
|
1039
1039
|
if (a === "%" && o.indexOf("border") !== -1)
|
|
1040
1040
|
d = l / 100 * (k ? i.clientWidth : i.clientHeight);
|
|
@@ -1042,11 +1042,11 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1042
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
1043
|
m[k ? "borderLeftWidth" : "borderTopWidth"] = l + a;
|
|
1044
1044
|
else {
|
|
1045
|
-
if (x = i.parentNode ||
|
|
1045
|
+
if (x = i.parentNode || bt.body, wt(x, "display").indexOf("flex") !== -1 && (m.position = "absolute"), h = x._gsCache, y = J.ticker.frame, h && k && h.time === y)
|
|
1046
1046
|
return h.width * l / 100;
|
|
1047
1047
|
m[k ? "width" : "height"] = l + a;
|
|
1048
1048
|
}
|
|
1049
|
-
x.appendChild(
|
|
1049
|
+
x.appendChild(Wt), d = parseFloat(Wt[k ? "offsetWidth" : "offsetHeight"]), x.removeChild(Wt), 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
1050
|
}
|
|
1051
1051
|
else
|
|
1052
1052
|
h = jt(i).lineHeight, i.style.lineHeight = l, d = parseFloat(jt(i).lineHeight), i.style.lineHeight = h;
|
|
@@ -1061,13 +1061,13 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1061
1061
|
if (o = o || jt(i, null))
|
|
1062
1062
|
if (l = o.length)
|
|
1063
1063
|
for (; --l > -1; )
|
|
1064
|
-
s = o[l], (s.indexOf("-transform") === -1 || Pe === s) && (d[s.replace(U,
|
|
1064
|
+
s = o[l], (s.indexOf("-transform") === -1 || Pe === s) && (d[s.replace(U, et)] = o.getPropertyValue(s));
|
|
1065
1065
|
else
|
|
1066
1066
|
for (l in o)
|
|
1067
1067
|
(l.indexOf("Transform") === -1 || Xt === l) && (d[l] = o[l]);
|
|
1068
1068
|
else if (o = i.currentStyle || i.style)
|
|
1069
1069
|
for (l in o)
|
|
1070
|
-
typeof l == "string" && d[l] === void 0 && (d[l.replace(U,
|
|
1070
|
+
typeof l == "string" && d[l] === void 0 && (d[l.replace(U, et)] = o[l]);
|
|
1071
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
1072
|
}, Zt = function(i, o, l, a, s) {
|
|
1073
1073
|
var d, h, y, k = {}, x = i.style;
|
|
@@ -1129,7 +1129,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1129
1129
|
transparent: [255, 255, 255, 0]
|
|
1130
1130
|
}, ft = function(i, o, l) {
|
|
1131
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
|
-
},
|
|
1132
|
+
}, ut = H.parseColor = function(i, o) {
|
|
1133
1133
|
var l, a, s, d, h, y, k, x, m, I, N;
|
|
1134
1134
|
if (i)
|
|
1135
1135
|
if (typeof i == "number")
|
|
@@ -1152,20 +1152,20 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1152
1152
|
else
|
|
1153
1153
|
l = A.black;
|
|
1154
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
|
-
},
|
|
1155
|
+
}, W = function(i, o) {
|
|
1156
1156
|
var l, a, s, d = i.match(pt) || [], h = 0, y = "";
|
|
1157
1157
|
if (!d.length)
|
|
1158
1158
|
return i;
|
|
1159
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 =
|
|
1160
|
+
a = d[l], s = i.substr(h, i.indexOf(a, h) - h), h += s.length + a.length, a = ut(a, o), a.length === 3 && a.push(1), y += s + (o ? "hsla(" + a[0] + "," + a[1] + "%," + a[2] + "%," + a[3] : "rgba(" + a.join(",")) + ")";
|
|
1161
1161
|
return y + i.substr(h);
|
|
1162
1162
|
}, pt = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";
|
|
1163
1163
|
for (M in A)
|
|
1164
1164
|
pt += "|" + M + "\\b";
|
|
1165
1165
|
pt = new RegExp(pt + ")", "gi"), H.colorStringFilter = function(i) {
|
|
1166
1166
|
var o, l = i[0] + " " + i[1];
|
|
1167
|
-
pt.test(l) && (o = l.indexOf("hsl(") !== -1 || l.indexOf("hsla(") !== -1, i[0] =
|
|
1168
|
-
},
|
|
1167
|
+
pt.test(l) && (o = l.indexOf("hsl(") !== -1 || l.indexOf("hsla(") !== -1, i[0] = W(i[0], o), i[1] = W(i[1], o)), pt.lastIndex = 0;
|
|
1168
|
+
}, J.defaultStringFilter || (J.defaultStringFilter = H.colorStringFilter);
|
|
1169
1169
|
var Pt = function(i, o, l, a) {
|
|
1170
1170
|
if (i == null)
|
|
1171
1171
|
return function(N) {
|
|
@@ -1173,20 +1173,20 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1173
1173
|
};
|
|
1174
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
1175
|
return m ? s = o ? function(N) {
|
|
1176
|
-
var
|
|
1176
|
+
var z, q, X, lt;
|
|
1177
1177
|
if (typeof N == "number")
|
|
1178
1178
|
N += I;
|
|
1179
1179
|
else if (a && gt.test(N)) {
|
|
1180
|
-
for (
|
|
1181
|
-
|
|
1182
|
-
return
|
|
1180
|
+
for (lt = N.replace(gt, "|").split("|"), X = 0; X < lt.length; X++)
|
|
1181
|
+
lt[X] = s(lt[X]);
|
|
1182
|
+
return lt.join(",");
|
|
1183
1183
|
}
|
|
1184
|
-
if (
|
|
1184
|
+
if (z = (N.match(pt) || [d])[0], q = N.split(z).join("").match(n) || [], X = q.length, m > X--)
|
|
1185
1185
|
for (; ++X < m; )
|
|
1186
1186
|
q[X] = l ? q[(X - 1) / 2 | 0] : h[X];
|
|
1187
|
-
return y + q.join(x) + x +
|
|
1187
|
+
return y + q.join(x) + x + z + k + (N.indexOf("inset") !== -1 ? " inset" : "");
|
|
1188
1188
|
} : function(N) {
|
|
1189
|
-
var
|
|
1189
|
+
var z, q, X;
|
|
1190
1190
|
if (typeof N == "number")
|
|
1191
1191
|
N += I;
|
|
1192
1192
|
else if (a && gt.test(N)) {
|
|
@@ -1194,10 +1194,10 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1194
1194
|
q[X] = s(q[X]);
|
|
1195
1195
|
return q.join(",");
|
|
1196
1196
|
}
|
|
1197
|
-
if (
|
|
1197
|
+
if (z = N.match(n) || [], X = z.length, m > X--)
|
|
1198
1198
|
for (; ++X < m; )
|
|
1199
|
-
|
|
1200
|
-
return y +
|
|
1199
|
+
z[X] = l ? z[(X - 1) / 2 | 0] : h[X];
|
|
1200
|
+
return y + z.join(x) + k;
|
|
1201
1201
|
} : function(N) {
|
|
1202
1202
|
return N;
|
|
1203
1203
|
};
|
|
@@ -1227,85 +1227,85 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1227
1227
|
}, function(i, o, l, a, s) {
|
|
1228
1228
|
this.t = i, this.p = o, this.v = l, this.r = s, a && (a._prev = this, this._next = a);
|
|
1229
1229
|
}), kt = (Et._parseToProxy = function(i, o, l, a, s, d) {
|
|
1230
|
-
var h, y, k, x, m, I = a, N = {},
|
|
1230
|
+
var h, y, k, x, m, I = a, N = {}, z = {}, q = l._transform, X = Jt;
|
|
1231
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,
|
|
1232
|
+
if (a.type <= 1 && (y = a.p, z[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
1233
|
for (h = a.l; --h > 0; )
|
|
1234
|
-
k = "xn" + h, y = a.p + "_" + k,
|
|
1234
|
+
k = "xn" + h, y = a.p + "_" + k, z[y] = a.data[k], N[y] = a[k], d || (x = new vt(a, k, y, x, a.rxp[k]));
|
|
1235
1235
|
a = a._next;
|
|
1236
1236
|
}
|
|
1237
|
-
return { proxy: N, end:
|
|
1237
|
+
return { proxy: N, end: z, firstMPT: x, pt: m };
|
|
1238
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,
|
|
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, K = !0), this.b = x === void 0 ? l : x, this.e = m === void 0 ? l + a : m, s && (this._next = s, s._prev = this);
|
|
1240
1240
|
}), he = function(i, o, l, a, s, d) {
|
|
1241
1241
|
var h = new kt(i, o, l, a - l, s, -1, d);
|
|
1242
1242
|
return h.b = l, h.e = h.xs0 = a, h;
|
|
1243
1243
|
}, ie = H.parseComplex = function(i, o, l, a, s, d, h, y, k, x) {
|
|
1244
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,
|
|
1246
|
-
for ((a.indexOf(",") !== -1 || l.indexOf(",") !== -1) && ((a + l).indexOf("rgb") !== -1 || (a + l).indexOf("hsl") !== -1 ? (Tt = Tt.join(" ").replace(gt, ", ").split(" "),
|
|
1247
|
-
if (
|
|
1245
|
+
var m, I, N, z, q, X, lt, ht, xt, ct, rt, _t, Y, Tt = l.split(", ").join(",").split(" "), it = a.split(", ").join(",").split(" "), G = Tt.length, nt = b !== !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(" "), it = it.join(" ").replace(gt, ", ").split(" ")) : (Tt = Tt.join(" ").split(",").join(", ").split(" "), it = it.join(" ").split(",").join(", ").split(" ")), G = Tt.length), G !== it.length && (Tt = (d || "").split(" "), G = Tt.length), h.plugin = k, h.setRatio = x, pt.lastIndex = 0, m = 0; G > m; m++)
|
|
1247
|
+
if (z = Tt[m], q = it[m] + "", ht = parseFloat(z), ht || ht === 0)
|
|
1248
1248
|
h.appendXtra(
|
|
1249
1249
|
"",
|
|
1250
|
-
|
|
1251
|
-
w(q,
|
|
1250
|
+
ht,
|
|
1251
|
+
w(q, ht),
|
|
1252
1252
|
q.replace(_, ""),
|
|
1253
1253
|
nt && q.indexOf("px") !== -1 ? Math.round : !1,
|
|
1254
1254
|
!0
|
|
1255
1255
|
);
|
|
1256
|
-
else if (s && pt.test(
|
|
1257
|
-
|
|
1256
|
+
else if (s && pt.test(z))
|
|
1257
|
+
_t = q.indexOf(")") + 1, _t = ")" + (_t ? q.substr(_t) : ""), Y = q.indexOf("hsl") !== -1 && ee, ct = q, z = ut(z, Y), q = ut(q, Y), xt = z.length + q.length > 6, xt && !ee && q[3] === 0 ? (h["xs" + h.l] += h.l ? " transparent" : "transparent", h.e = h.e.split(it[m]).join("transparent")) : (ee || (xt = !1), Y ? h.appendXtra(
|
|
1258
1258
|
ct.substr(0, ct.indexOf("hsl")) + (xt ? "hsla(" : "hsl("),
|
|
1259
|
-
|
|
1260
|
-
w(q[0],
|
|
1259
|
+
z[0],
|
|
1260
|
+
w(q[0], z[0]),
|
|
1261
1261
|
",",
|
|
1262
1262
|
!1,
|
|
1263
1263
|
!0
|
|
1264
|
-
).appendXtra("",
|
|
1264
|
+
).appendXtra("", z[1], w(q[1], z[1]), "%,", !1).appendXtra(
|
|
1265
1265
|
"",
|
|
1266
|
-
|
|
1267
|
-
w(q[2],
|
|
1268
|
-
xt ? "%," : "%" +
|
|
1266
|
+
z[2],
|
|
1267
|
+
w(q[2], z[2]),
|
|
1268
|
+
xt ? "%," : "%" + _t,
|
|
1269
1269
|
!1
|
|
1270
1270
|
) : h.appendXtra(
|
|
1271
1271
|
ct.substr(0, ct.indexOf("rgb")) + (xt ? "rgba(" : "rgb("),
|
|
1272
|
-
|
|
1273
|
-
q[0] -
|
|
1272
|
+
z[0],
|
|
1273
|
+
q[0] - z[0],
|
|
1274
1274
|
",",
|
|
1275
1275
|
Math.round,
|
|
1276
1276
|
!0
|
|
1277
|
-
).appendXtra("",
|
|
1277
|
+
).appendXtra("", z[1], q[1] - z[1], ",", Math.round).appendXtra(
|
|
1278
1278
|
"",
|
|
1279
|
-
|
|
1280
|
-
q[2] -
|
|
1281
|
-
xt ? "," :
|
|
1279
|
+
z[2],
|
|
1280
|
+
q[2] - z[2],
|
|
1281
|
+
xt ? "," : _t,
|
|
1282
1282
|
Math.round
|
|
1283
|
-
), xt && (
|
|
1283
|
+
), xt && (z = z.length < 4 ? 1 : z[3], h.appendXtra(
|
|
1284
1284
|
"",
|
|
1285
|
-
|
|
1286
|
-
(q.length < 4 ? 1 : q[3]) -
|
|
1287
|
-
|
|
1285
|
+
z,
|
|
1286
|
+
(q.length < 4 ? 1 : q[3]) - z,
|
|
1287
|
+
_t,
|
|
1288
1288
|
!1
|
|
1289
1289
|
))), pt.lastIndex = 0;
|
|
1290
|
-
else if (X =
|
|
1291
|
-
if (
|
|
1290
|
+
else if (X = z.match(t)) {
|
|
1291
|
+
if (lt = q.match(_), !lt || lt.length !== X.length)
|
|
1292
1292
|
return h;
|
|
1293
1293
|
for (N = 0, I = 0; I < X.length; I++)
|
|
1294
|
-
rt = X[I], ct =
|
|
1295
|
-
|
|
1294
|
+
rt = X[I], ct = z.indexOf(rt, N), h.appendXtra(
|
|
1295
|
+
z.substr(N, ct - N),
|
|
1296
1296
|
Number(rt),
|
|
1297
|
-
w(
|
|
1297
|
+
w(lt[I], rt),
|
|
1298
1298
|
"",
|
|
1299
|
-
nt &&
|
|
1299
|
+
nt && z.substr(ct + rt.length, 2) === "px" ? Math.round : !1,
|
|
1300
1300
|
I === 0
|
|
1301
1301
|
), N = ct + rt.length;
|
|
1302
|
-
h["xs" + h.l] +=
|
|
1302
|
+
h["xs" + h.l] += z.substr(N);
|
|
1303
1303
|
} else
|
|
1304
1304
|
h["xs" + h.l] += h.l || h["xs" + h.l] ? " " + q : q;
|
|
1305
1305
|
if (a.indexOf("=") !== -1 && h.data) {
|
|
1306
|
-
for (
|
|
1307
|
-
|
|
1308
|
-
h.e =
|
|
1306
|
+
for (_t = h.xs0 + h.data.s, m = 1; m < h.l; m++)
|
|
1307
|
+
_t += h["xs" + m] + h.data["xn" + m];
|
|
1308
|
+
h.e = _t + h["xs" + m];
|
|
1309
1309
|
}
|
|
1310
1310
|
return h.l || (h.type = -1, h.xs0 = h.e), h.xfirst || h;
|
|
1311
1311
|
}, It = 9;
|
|
@@ -1354,7 +1354,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1354
1354
|
}, M.parse = function(i, o, l, a, s, d, h) {
|
|
1355
1355
|
return this.parseComplex(
|
|
1356
1356
|
i.style,
|
|
1357
|
-
this.format(wt(i, this.p,
|
|
1357
|
+
this.format(wt(i, this.p, E, !1, this.dflt)),
|
|
1358
1358
|
this.format(o),
|
|
1359
1359
|
s,
|
|
1360
1360
|
d
|
|
@@ -1373,15 +1373,15 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1373
1373
|
), Xt = se("transform"), Pe = te + "transform", me = se("transformOrigin"), Ht = se("perspective") !== null, xe = Et.Transform = function() {
|
|
1374
1374
|
this.perspective = parseFloat(H.defaultTransformPerspective) || 0, this.force3D = H.defaultForce3D !== !1 && Ht ? H.defaultForce3D || "auto" : !1;
|
|
1375
1375
|
}, je = Dt.SVGElement, Me = function(i, o, l) {
|
|
1376
|
-
var a, s =
|
|
1376
|
+
var a, s = bt.createElementNS("http://www.w3.org/2000/svg", i), d = /([a-z])([A-Z])/g;
|
|
1377
1377
|
for (a in l)
|
|
1378
1378
|
s.setAttributeNS(null, a.replace(d, "$1-$2").toLowerCase(), l[a]);
|
|
1379
1379
|
return o.appendChild(s), s;
|
|
1380
|
-
}, fe =
|
|
1380
|
+
}, fe = bt.documentElement || {}, Ie = function() {
|
|
1381
1381
|
var i, o, l, a = v || /Android/i.test(zt) && !Dt.chrome;
|
|
1382
|
-
return
|
|
1382
|
+
return bt.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
1383
|
}(), ke = function(i, o, l, a, s, d) {
|
|
1384
|
-
var h, y, k, x, m, I, N,
|
|
1384
|
+
var h, y, k, x, m, I, N, z, q, X, lt, ht, xt, ct, rt = i._gsTransform, _t = Re(i, !0);
|
|
1385
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
1386
|
x: parseFloat(
|
|
1387
1387
|
i.hasAttribute("x") ? i.getAttribute("x") : i.hasAttribute("cx") ? i.getAttribute("cx") : 0
|
|
@@ -1394,7 +1394,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1394
1394
|
}), o = c(o).split(" "), h = [
|
|
1395
1395
|
(o[0].indexOf("%") !== -1 ? parseFloat(o[0]) / 100 * N.width : parseFloat(o[0])) + N.x,
|
|
1396
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 &&
|
|
1397
|
+
]), l.xOrigin = x = parseFloat(h[0]), l.yOrigin = m = parseFloat(h[1]), a && _t !== Se && (I = _t[0], N = _t[1], z = _t[2], q = _t[3], X = _t[4], lt = _t[5], ht = I * q - N * z, ht && (y = x * (q / ht) + m * (-z / ht) + (z * lt - q * X) / ht, k = x * (-N / ht) + m * (I / ht) - (I * lt - N * X) / ht, 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 * _t[0] + k * _t[2] - y, rt.yOffset += y * _t[1] + k * _t[3] - k) : rt.xOffset = rt.yOffset = 0), d || i.setAttribute("data-svg-origin", h.join(" "));
|
|
1398
1398
|
}, De = function(i) {
|
|
1399
1399
|
var o, l = ae(
|
|
1400
1400
|
"svg",
|
|
@@ -1433,7 +1433,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1433
1433
|
}, de = Et.getTransform = function(i, o, l, a) {
|
|
1434
1434
|
if (i._gsTransform && l && !a)
|
|
1435
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,
|
|
1436
|
+
var s, d, h, y, k, x, m = l ? i._gsTransform || new xe() : new xe(), I = m.scaleX < 0, N = 2e-5, z = 1e5, q = Ht && (parseFloat(wt(i, me, o, !1, "0 0 0").split(" ")[2]) || m.zOrigin) || 0, X = parseFloat(H.defaultTransformPerspective) || 0;
|
|
1437
1437
|
if (m.svg = !(!i.getCTM || !Oe(i)), m.svg && (ke(
|
|
1438
1438
|
i,
|
|
1439
1439
|
wt(i, me, o, !1, "50% 50%") + "",
|
|
@@ -1441,8 +1441,8 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1441
1441
|
i.getAttribute("data-svg-origin")
|
|
1442
1442
|
), ne = H.useSVGTransformAttr || Ie), s = Re(i), s !== Se) {
|
|
1443
1443
|
if (s.length === 16) {
|
|
1444
|
-
var
|
|
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),
|
|
1444
|
+
var lt, ht, xt, ct, rt, _t = s[0], Y = s[1], Tt = s[2], it = 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), lt = G * ct + Mt * rt, ht = 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 = lt, nt = ht, Qt = xt), St = Math.atan2(-Tt, Ft), m.rotationY = St * At, St && (ct = Math.cos(-St), rt = Math.sin(-St), lt = _t * ct - Mt * rt, ht = Y * ct - Rt * rt, xt = Tt * ct - Ft * rt, Rt = Y * rt + Rt * ct, Ft = Tt * rt + Ft * ct, Bt = it * rt + Bt * ct, _t = lt, Y = ht, Tt = xt), St = Math.atan2(Y, _t), m.rotation = St * At, St && (ct = Math.cos(St), rt = Math.sin(St), lt = _t * ct + Y * rt, ht = G * ct + nt * rt, xt = Mt * ct + Rt * rt, Y = Y * ct - _t * rt, nt = nt * ct - G * rt, Rt = Rt * ct - Mt * rt, _t = lt, G = ht, 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(_t * _t + Y * Y + Tt * Tt) * z + 0.5 | 0) / z, m.scaleY = (Math.sqrt(nt * nt + Qt * Qt) * z + 0.5 | 0) / z, m.scaleZ = (Math.sqrt(Mt * Mt + Rt * Rt + Ft * Ft) * z + 0.5 | 0) / z, _t /= m.scaleX, G /= m.scaleY, Y /= 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 * _t - m.yOrigin * G), m.y -= m.yOrigin - (m.yOrigin * Y - m.xOrigin * nt));
|
|
1446
1446
|
} else if (!Ht || a || !s.length || m.x !== s[4] || m.y !== s[5] || !m.rotationX && !m.rotationY) {
|
|
1447
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
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));
|
|
@@ -1451,40 +1451,40 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1451
1451
|
for (d in m)
|
|
1452
1452
|
m[d] < N && m[d] > -N && (m[d] = 0);
|
|
1453
1453
|
}
|
|
1454
|
-
return l && (i._gsTransform = m, m.svg && (ne && i.style[Xt] ?
|
|
1454
|
+
return l && (i._gsTransform = m, m.svg && (ne && i.style[Xt] ? J.delayedCall(1e-3, function() {
|
|
1455
1455
|
ge(i.style, Xt);
|
|
1456
|
-
}) : !ne && i.getAttribute("transform") &&
|
|
1456
|
+
}) : !ne && i.getAttribute("transform") && J.delayedCall(1e-3, function() {
|
|
1457
1457
|
i.removeAttribute("transform");
|
|
1458
1458
|
}))), m;
|
|
1459
1459
|
}, Le = function(i) {
|
|
1460
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
1461
|
if (N) {
|
|
1462
1462
|
l = k, k = -x, x = -l, o = N.filter, I.filter = "";
|
|
1463
|
-
var
|
|
1464
|
-
if (a.ox != null && (
|
|
1465
|
-
var
|
|
1466
|
-
for (
|
|
1467
|
-
(X - ((0 > y ? -y : y) * X + (0 > k ? -k : k) *
|
|
1463
|
+
var z, q, X = this.t.offsetWidth, lt = this.t.offsetHeight, ht = 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 + lt * a.yPercent / 100;
|
|
1464
|
+
if (a.ox != null && (z = (a.oxp ? X * a.ox * 0.01 : a.ox) - X / 2, q = (a.oyp ? lt * a.oy * 0.01 : a.oy) - lt / 2, ct += z - (z * y + q * k), rt += q - (z * x + q * m)), ht ? (z = X / 2, q = lt / 2, xt += ", Dx=" + (z - (z * y + q * k) + ct) + ", Dy=" + (q - (z * x + q * m) + rt) + ")") : xt += ", sizingMethod='auto expand')", o.indexOf("DXImageTransform.Microsoft.Matrix(") !== -1 ? I.filter = o.replace(Q, xt) : I.filter = xt + " " + o, (i === 0 || i === 1) && y === 1 && k === 0 && x === 0 && m === 1 && (ht && xt.indexOf("Dx=0, Dy=0") === -1 || T.test(o) && parseFloat(RegExp.$1) !== 100 || o.indexOf(o.indexOf("Alpha")) === -1 && I.removeAttribute("filter")), !ht) {
|
|
1465
|
+
var _t, Y, Tt, it = 8 > v ? 1 : -1;
|
|
1466
|
+
for (z = a.ieOffsetX || 0, q = a.ieOffsetY || 0, a.ieOffsetX = Math.round(
|
|
1467
|
+
(X - ((0 > y ? -y : y) * X + (0 > k ? -k : k) * lt)) / 2 + ct
|
|
1468
1468
|
), a.ieOffsetY = Math.round(
|
|
1469
|
-
(
|
|
1469
|
+
(lt - ((0 > m ? -m : m) * lt + (0 > x ? -x : x) * X)) / 2 + rt
|
|
1470
1470
|
), It = 0; 4 > It; It++)
|
|
1471
|
-
|
|
1472
|
-
l - Tt * (It === 0 || It === 2 ? 1 :
|
|
1471
|
+
Y = u[It], _t = N[Y], l = _t.indexOf("px") !== -1 ? parseFloat(_t) : Vt(this.t, Y, parseFloat(_t), _t.replace(p, "")) || 0, Tt = l !== a[Y] ? 2 > It ? -a.ieOffsetX : -a.ieOffsetY : 2 > It ? z - a.ieOffsetX : q - a.ieOffsetY, I[Y] = (a[Y] = Math.round(
|
|
1472
|
+
l - Tt * (It === 0 || It === 2 ? 1 : it)
|
|
1473
1473
|
)) + "px";
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
1476
|
}, Ne = Et.set3DTransformRatio = Et.setTransformRatio = function(i) {
|
|
1477
|
-
var o, l, a, s, d, h, y, k, x, m, I, N,
|
|
1477
|
+
var o, l, a, s, d, h, y, k, x, m, I, N, z, q, X, lt, ht, xt, ct, rt, _t, Y, Tt, it = this.data, G = this.t.style, nt = it.rotation, Qt = it.rotationX, pe = it.rotationY, Mt = it.scaleX, Rt = it.scaleY, Ft = it.scaleZ, Lt = it.x, Nt = it.y, Ut = it.z, Bt = it.svg, St = it.perspective, ye = it.force3D, qt = it.skewY, $t = it.skewX;
|
|
1478
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,
|
|
1480
|
-
if (st && (X = 1e-4, X > Mt && Mt > -X && (Mt = Ft = 2e-5), X > Rt && Rt > -X && (Rt = Ft = 2e-5), !St ||
|
|
1481
|
-
nt *= yt,
|
|
1479
|
+
return void (nt || $t || Bt ? (nt *= yt, Y = $t * yt, Tt = 1e5, l = Math.cos(nt) * Mt, d = Math.sin(nt) * Mt, a = Math.sin(nt - Y) * -Rt, h = Math.cos(nt - Y) * Rt, Y && it.skewType === "simple" && (o = Math.tan(Y - 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 += it.xOrigin - (it.xOrigin * l + it.yOrigin * a) + it.xOffset, Nt += it.yOrigin - (it.xOrigin * d + it.yOrigin * h) + it.yOffset, ne && (it.xPercent || it.yPercent) && (X = this.t.getBBox(), Lt += 0.01 * it.xPercent * X.width, Nt += 0.01 * it.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] = (it.xPercent || it.yPercent ? "translate(" + it.xPercent + "%," + it.yPercent + "%) matrix(" : "matrix(") + ct) : G[Xt] = (it.xPercent || it.yPercent ? "translate(" + it.xPercent + "%," + it.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 || it.z || it.rotationX || it.rotationY || (St = 0)), nt || $t)
|
|
1481
|
+
nt *= yt, lt = l = Math.cos(nt), ht = d = Math.sin(nt), $t && (nt -= $t * yt, lt = Math.cos(nt), ht = Math.sin(nt), it.skewType === "simple" && (o = Math.tan(($t - qt) * yt), o = Math.sqrt(1 + o * o), lt *= o, ht *= o, it.skewY && (o = Math.tan(qt * yt), o = Math.sqrt(1 + o * o), l *= o, d *= o))), a = -ht, h = lt;
|
|
1482
1482
|
else {
|
|
1483
1483
|
if (!(pe || Qt || Ft !== 1 || St || Bt))
|
|
1484
|
-
return void (G[Xt] = (
|
|
1484
|
+
return void (G[Xt] = (it.xPercent || it.yPercent ? "translate(" + it.xPercent + "%," + it.yPercent + "%) translate3d(" : "translate3d(") + Lt + "px," + Nt + "px," + Ut + "px)" + (Mt !== 1 || Rt !== 1 ? " scale(" + Mt + "," + Rt + ")" : ""));
|
|
1485
1485
|
l = h = 1, a = d = 0;
|
|
1486
1486
|
}
|
|
1487
|
-
m = 1, s = y = k = x = I = N = 0,
|
|
1487
|
+
m = 1, s = y = k = x = I = N = 0, z = St ? -1 / St : 0, q = it.zOrigin, X = 1e-6, rt = ",", _t = "0", nt = pe * yt, nt && (lt = Math.cos(nt), ht = Math.sin(nt), k = -ht, I = z * -ht, s = l * ht, y = d * ht, m = lt, z *= lt, l *= lt, d *= lt), nt = Qt * yt, nt && (lt = Math.cos(nt), ht = Math.sin(nt), o = a * lt + s * ht, xt = h * lt + y * ht, x = m * ht, N = z * ht, s = a * -ht + s * lt, y = h * -ht + y * lt, m *= lt, z *= lt, a = o, h = xt), Ft !== 1 && (s *= Ft, y *= Ft, m *= Ft, z *= 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 += it.xOrigin - (it.xOrigin * l + it.yOrigin * a) + it.xOffset, Nt += it.yOrigin - (it.xOrigin * d + it.yOrigin * h) + it.yOffset), X > Lt && Lt > -X && (Lt = _t), X > Nt && Nt > -X && (Nt = _t), X > Ut && Ut > -X && (Ut = 0)), ct = it.xPercent || it.yPercent ? "translate(" + it.xPercent + "%," + it.yPercent + "%) matrix3d(" : "matrix3d(", ct += (X > l && l > -X ? _t : l) + rt + (X > d && d > -X ? _t : d) + rt + (X > k && k > -X ? _t : k), ct += rt + (X > I && I > -X ? _t : I) + rt + (X > a && a > -X ? _t : a) + rt + (X > h && h > -X ? _t : h), Qt || pe || Ft !== 1 ? (ct += rt + (X > x && x > -X ? _t : x) + rt + (X > N && N > -X ? _t : N) + rt + (X > s && s > -X ? _t : s), ct += rt + (X > y && y > -X ? _t : y) + rt + (X > m && m > -X ? _t : m) + rt + (X > z && z > -X ? _t : z) + rt) : ct += ",0,0,0,0,1,0,", ct += Lt + rt + Nt + rt + Ut + rt + (St ? 1 + -Ut / St : 1) + ")", G[Xt] = ct;
|
|
1488
1488
|
};
|
|
1489
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
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",
|
|
@@ -1495,87 +1495,87 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1495
1495
|
a._lastParsedTransform = h;
|
|
1496
1496
|
var y, k = h.scale && typeof h.scale == "function" ? h.scale : 0;
|
|
1497
1497
|
typeof h[l] == "function" && (y = h[l], h[l] = o), k && (h.scale = k(e, i));
|
|
1498
|
-
var x, m, I, N,
|
|
1499
|
-
if (G.skewType =
|
|
1500
|
-
m =
|
|
1498
|
+
var x, m, I, N, z, q, X, lt, ht, xt = i._gsTransform, ct = i.style, rt = 1e-6, _t = Ce.length, Y = h, Tt = {}, it = "transformOrigin", G = de(i, E, !0, Y.parseTransform), nt = Y.transform && (typeof Y.transform == "function" ? Y.transform(e, P) : Y.transform);
|
|
1499
|
+
if (G.skewType = Y.skewType || G.skewType || H.defaultSkewType, a._transform = G, "rotationZ" in Y && (Y.rotation = Y.rotationZ), nt && typeof nt == "string" && Xt)
|
|
1500
|
+
m = Wt.style, m[Xt] = nt, m.display = "block", m.position = "absolute", nt.indexOf("%") !== -1 && (m.width = wt(i, "width"), m.height = wt(i, "height")), bt.body.appendChild(Wt), x = de(Wt, 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, (Y.transformOrigin || Y.svgOrigin) && (nt = {}, ke(
|
|
1501
1501
|
i,
|
|
1502
|
-
c(
|
|
1502
|
+
c(Y.transformOrigin),
|
|
1503
1503
|
nt,
|
|
1504
|
-
|
|
1505
|
-
|
|
1504
|
+
Y.svgOrigin,
|
|
1505
|
+
Y.smoothOrigin,
|
|
1506
1506
|
!0
|
|
1507
|
-
), q = nt.xOrigin, X = nt.yOrigin, x.x -= nt.xOffset - G.xOffset, x.y -= nt.yOffset - G.yOffset), (q || X) && (
|
|
1508
|
-
else if (typeof
|
|
1507
|
+
), q = nt.xOrigin, X = nt.yOrigin, x.x -= nt.xOffset - G.xOffset, x.y -= nt.yOffset - G.yOffset), (q || X) && (lt = Re(Wt, !0), x.x -= q - (q * lt[0] + X * lt[2]), x.y -= X - (q * lt[1] + X * lt[3]))), bt.body.removeChild(Wt), x.perspective || (x.perspective = G.perspective), Y.xPercent != null && (x.xPercent = C(Y.xPercent, G.xPercent)), Y.yPercent != null && (x.yPercent = C(Y.yPercent, G.yPercent));
|
|
1508
|
+
else if (typeof Y == "object") {
|
|
1509
1509
|
if (x = {
|
|
1510
1510
|
scaleX: C(
|
|
1511
|
-
|
|
1511
|
+
Y.scaleX != null ? Y.scaleX : Y.scale,
|
|
1512
1512
|
G.scaleX
|
|
1513
1513
|
),
|
|
1514
1514
|
scaleY: C(
|
|
1515
|
-
|
|
1515
|
+
Y.scaleY != null ? Y.scaleY : Y.scale,
|
|
1516
1516
|
G.scaleY
|
|
1517
1517
|
),
|
|
1518
|
-
scaleZ: C(
|
|
1519
|
-
x: C(
|
|
1520
|
-
y: C(
|
|
1521
|
-
z: C(
|
|
1522
|
-
xPercent: C(
|
|
1523
|
-
yPercent: C(
|
|
1524
|
-
perspective: C(
|
|
1525
|
-
},
|
|
1526
|
-
if (typeof
|
|
1527
|
-
for (m in
|
|
1528
|
-
|
|
1518
|
+
scaleZ: C(Y.scaleZ, G.scaleZ),
|
|
1519
|
+
x: C(Y.x, G.x),
|
|
1520
|
+
y: C(Y.y, G.y),
|
|
1521
|
+
z: C(Y.z, G.z),
|
|
1522
|
+
xPercent: C(Y.xPercent, G.xPercent),
|
|
1523
|
+
yPercent: C(Y.yPercent, G.yPercent),
|
|
1524
|
+
perspective: C(Y.transformPerspective, G.perspective)
|
|
1525
|
+
}, z = Y.directionalRotation, z != null)
|
|
1526
|
+
if (typeof z == "object")
|
|
1527
|
+
for (m in z)
|
|
1528
|
+
Y[m] = z[m];
|
|
1529
1529
|
else
|
|
1530
|
-
|
|
1531
|
-
typeof
|
|
1532
|
-
"rotation" in
|
|
1530
|
+
Y.rotation = z;
|
|
1531
|
+
typeof Y.x == "string" && Y.x.indexOf("%") !== -1 && (x.x = 0, x.xPercent = C(Y.x, G.xPercent)), typeof Y.y == "string" && Y.y.indexOf("%") !== -1 && (x.y = 0, x.yPercent = C(Y.y, G.yPercent)), x.rotation = j(
|
|
1532
|
+
"rotation" in Y ? Y.rotation : "shortRotation" in Y ? Y.shortRotation + "_short" : G.rotation,
|
|
1533
1533
|
G.rotation,
|
|
1534
1534
|
"rotation",
|
|
1535
1535
|
Tt
|
|
1536
1536
|
), Ht && (x.rotationX = j(
|
|
1537
|
-
"rotationX" in
|
|
1537
|
+
"rotationX" in Y ? Y.rotationX : "shortRotationX" in Y ? Y.shortRotationX + "_short" : G.rotationX || 0,
|
|
1538
1538
|
G.rotationX,
|
|
1539
1539
|
"rotationX",
|
|
1540
1540
|
Tt
|
|
1541
1541
|
), x.rotationY = j(
|
|
1542
|
-
"rotationY" in
|
|
1542
|
+
"rotationY" in Y ? Y.rotationY : "shortRotationY" in Y ? Y.shortRotationY + "_short" : G.rotationY || 0,
|
|
1543
1543
|
G.rotationY,
|
|
1544
1544
|
"rotationY",
|
|
1545
1545
|
Tt
|
|
1546
|
-
)), x.skewX = j(
|
|
1546
|
+
)), x.skewX = j(Y.skewX, G.skewX), x.skewY = j(Y.skewY, G.skewY);
|
|
1547
1547
|
}
|
|
1548
|
-
for (Ht &&
|
|
1549
|
-
|
|
1550
|
-
return nt =
|
|
1548
|
+
for (Ht && Y.force3D != null && (G.force3D = Y.force3D, N = !0), I = G.force3D || G.z || G.rotationX || G.rotationY || x.z || x.rotationX || x.rotationY || x.perspective, I || Y.scale == null || (x.scaleZ = 1); --_t > -1; )
|
|
1549
|
+
ht = Ce[_t], nt = x[ht] - G[ht], (nt > rt || -rt > nt || Y[ht] != null || Jt[ht] != null) && (N = !0, s = new kt(G, ht, G[ht], nt, s), ht in Tt && (s.e = Tt[ht]), s.xs0 = 0, s.plugin = d, a._overwriteProps.push(s.n));
|
|
1550
|
+
return nt = Y.transformOrigin, G.svg && (nt || Y.svgOrigin) && (q = G.xOffset, X = G.yOffset, ke(i, c(nt), x, Y.svgOrigin, Y.smoothOrigin), s = he(
|
|
1551
1551
|
G,
|
|
1552
1552
|
"xOrigin",
|
|
1553
1553
|
(xt ? G : x).xOrigin,
|
|
1554
1554
|
x.xOrigin,
|
|
1555
1555
|
s,
|
|
1556
|
-
|
|
1556
|
+
it
|
|
1557
1557
|
), s = he(
|
|
1558
1558
|
G,
|
|
1559
1559
|
"yOrigin",
|
|
1560
1560
|
(xt ? G : x).yOrigin,
|
|
1561
1561
|
x.yOrigin,
|
|
1562
1562
|
s,
|
|
1563
|
-
|
|
1563
|
+
it
|
|
1564
1564
|
), (q !== G.xOffset || X !== G.yOffset) && (s = he(
|
|
1565
1565
|
G,
|
|
1566
1566
|
"xOffset",
|
|
1567
1567
|
xt ? q : G.xOffset,
|
|
1568
1568
|
G.xOffset,
|
|
1569
1569
|
s,
|
|
1570
|
-
|
|
1570
|
+
it
|
|
1571
1571
|
), s = he(
|
|
1572
1572
|
G,
|
|
1573
1573
|
"yOffset",
|
|
1574
1574
|
xt ? X : G.yOffset,
|
|
1575
1575
|
G.yOffset,
|
|
1576
1576
|
s,
|
|
1577
|
-
|
|
1578
|
-
)), nt = "0px 0px"), (nt || Ht && I && G.zOrigin) && (Xt ? (N = !0,
|
|
1577
|
+
it
|
|
1578
|
+
)), nt = "0px 0px"), (nt || Ht && I && G.zOrigin) && (Xt ? (N = !0, ht = me, nt = (nt || wt(i, ht, E, !1, "50% 50%")) + "", s = new kt(ct, ht, 0, 0, s, -1, it), s.b = ct[ht], 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
1579
|
},
|
|
1580
1580
|
prefix: !0
|
|
1581
1581
|
}
|
|
@@ -1589,14 +1589,14 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1589
1589
|
defaultValue: "0px",
|
|
1590
1590
|
parser: function(i, o, l, a, s, d) {
|
|
1591
1591
|
o = this.format(o);
|
|
1592
|
-
var h, y, k, x, m, I, N,
|
|
1592
|
+
var h, y, k, x, m, I, N, z, q, X, lt, ht, xt, ct, rt, _t, Y = [
|
|
1593
1593
|
"borderTopLeftRadius",
|
|
1594
1594
|
"borderTopRightRadius",
|
|
1595
1595
|
"borderBottomRightRadius",
|
|
1596
1596
|
"borderBottomLeftRadius"
|
|
1597
1597
|
], Tt = i.style;
|
|
1598
|
-
for (q = parseFloat(i.offsetWidth), X = parseFloat(i.offsetHeight), h = o.split(" "), y = 0; y <
|
|
1599
|
-
this.p.indexOf("border") && (
|
|
1598
|
+
for (q = parseFloat(i.offsetWidth), X = parseFloat(i.offsetHeight), h = o.split(" "), y = 0; y < Y.length; y++)
|
|
1599
|
+
this.p.indexOf("border") && (Y[y] = se(Y[y])), m = x = wt(i, Y[y], E, !1, "0px"), m.indexOf(" ") !== -1 && (x = m.split(" "), m = x[0], x = x[1]), I = k = h[y], N = parseFloat(m), ht = m.substr((N + "").length), xt = I.charAt(1) === "=", xt ? (z = parseInt(I.charAt(0) + "1", 10), I = I.substr(2), z *= parseFloat(I), lt = I.substr((z + "").length - (0 > z ? 1 : 0)) || "") : (z = parseFloat(I), lt = I.substr((z + "").length)), lt === "" && (lt = at[l] || ht), lt !== ht && (ct = Vt(i, "borderLeft", N, ht), rt = Vt(i, "borderTop", N, ht), lt === "%" ? (m = ct / q * 100 + "%", x = rt / X * 100 + "%") : lt === "em" ? (_t = Vt(i, "borderLeft", 1, "em"), m = ct / _t + "em", x = rt / _t + "em") : (m = ct + "px", x = rt + "px"), xt && (I = parseFloat(m) + z + lt, k = parseFloat(x) + z + lt)), s = ie(Tt, Y[y], m + " " + x, I + " " + k, !1, "0px", s);
|
|
1600
1600
|
return s;
|
|
1601
1601
|
},
|
|
1602
1602
|
prefix: !0,
|
|
@@ -1609,7 +1609,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1609
1609
|
return ie(
|
|
1610
1610
|
i.style,
|
|
1611
1611
|
l,
|
|
1612
|
-
this.format(wt(i, l,
|
|
1612
|
+
this.format(wt(i, l, E, !1, "0px 0px")),
|
|
1613
1613
|
this.format(o),
|
|
1614
1614
|
!1,
|
|
1615
1615
|
"0px",
|
|
@@ -1622,10 +1622,10 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1622
1622
|
), Ct("backgroundPosition", {
|
|
1623
1623
|
defaultValue: "0 0",
|
|
1624
1624
|
parser: function(i, o, l, a, s, d) {
|
|
1625
|
-
var h, y, k, x, m, I, N = "background-position",
|
|
1626
|
-
(
|
|
1625
|
+
var h, y, k, x, m, I, N = "background-position", z = E || jt(i, null), q = this.format(
|
|
1626
|
+
(z ? v ? z.getPropertyValue(N + "-x") + " " + z.getPropertyValue(N + "-y") : z.getPropertyValue(N) : i.currentStyle.backgroundPositionX + " " + i.currentStyle.backgroundPositionY) || "0 0"
|
|
1627
1627
|
), X = this.format(o);
|
|
1628
|
-
if (q.indexOf("%") !== -1 != (X.indexOf("%") !== -1) && X.split(",").length < 2 && (I = wt(i, "backgroundImage").replace(
|
|
1628
|
+
if (q.indexOf("%") !== -1 != (X.indexOf("%") !== -1) && X.split(",").length < 2 && (I = wt(i, "backgroundImage").replace(tt, ""), I && I !== "none")) {
|
|
1629
1629
|
for (h = q.split(" "), y = X.split(" "), le.setAttribute("src", I), k = 2; --k > -1; )
|
|
1630
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
1631
|
q = h.join(" ");
|
|
@@ -1646,7 +1646,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1646
1646
|
defaultValue: "rect(0px,0px,0px,0px)",
|
|
1647
1647
|
parser: function(i, o, l, a, s, d) {
|
|
1648
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,
|
|
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, E, !1, this.dflt)), o = this.format(o)), this.parseComplex(i.style, h, o, s, d);
|
|
1650
1650
|
}
|
|
1651
1651
|
}), Ct("textShadow", {
|
|
1652
1652
|
defaultValue: "0px 0px 0px #999",
|
|
@@ -1659,11 +1659,11 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1659
1659
|
}), Ct("border", {
|
|
1660
1660
|
defaultValue: "0px solid #000",
|
|
1661
1661
|
parser: function(i, o, l, a, s, d) {
|
|
1662
|
-
var h = wt(i, "borderTopWidth",
|
|
1662
|
+
var h = wt(i, "borderTopWidth", E, !1, "0px"), y = this.format(o).split(" "), k = y[0].replace(p, "");
|
|
1663
1663
|
return k !== "px" && (h = parseFloat(h) / Vt(i, "borderTopWidth", 1, k) + k), this.parseComplex(
|
|
1664
1664
|
i.style,
|
|
1665
1665
|
this.format(
|
|
1666
|
-
h + " " + wt(i, "borderTopStyle",
|
|
1666
|
+
h + " " + wt(i, "borderTopStyle", E, !1, "solid") + " " + wt(i, "borderTopColor", E, !1, "#000")
|
|
1667
1667
|
),
|
|
1668
1668
|
y.join(" "),
|
|
1669
1669
|
s,
|
|
@@ -1692,8 +1692,8 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1692
1692
|
Ct("opacity,alpha,autoAlpha", {
|
|
1693
1693
|
defaultValue: "1",
|
|
1694
1694
|
parser: function(i, o, l, a, s, d) {
|
|
1695
|
-
var h = parseFloat(wt(i, "opacity",
|
|
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",
|
|
1695
|
+
var h = parseFloat(wt(i, "opacity", E, !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", E) === "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
1697
|
y,
|
|
1698
1698
|
"visibility",
|
|
1699
1699
|
0,
|
|
@@ -1721,8 +1721,8 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1721
1721
|
};
|
|
1722
1722
|
Ct("className", {
|
|
1723
1723
|
parser: function(i, o, l, a, s, d, h) {
|
|
1724
|
-
var y, k, x, m, I, N = i.getAttribute("class") || "",
|
|
1725
|
-
if (s = a._classNamePT = new kt(i, l, 0, 0, s, 2), s.setRatio = Ye, s.pr = -11,
|
|
1724
|
+
var y, k, x, m, I, N = i.getAttribute("class") || "", z = i.style.cssText;
|
|
1725
|
+
if (s = a._classNamePT = new kt(i, l, 0, 0, s, 2), s.setRatio = Ye, s.pr = -11, K = !0, s.b = N, k = re(i, E), x = i._gsClassPT) {
|
|
1726
1726
|
for (m = {}, I = x.data; I; )
|
|
1727
1727
|
m[I.p] = 1, I = I._next;
|
|
1728
1728
|
x.setRatio(1);
|
|
@@ -1730,7 +1730,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1730
1730
|
return i._gsClassPT = s, s.e = o.charAt(1) !== "=" ? o : N.replace(
|
|
1731
1731
|
new RegExp("(?:\\s|^)" + o.substr(2) + "(?![\\w-])"),
|
|
1732
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 =
|
|
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 = z, s = s.xfirst = a.parse(i, y.difs, s, d);
|
|
1734
1734
|
}
|
|
1735
1735
|
});
|
|
1736
1736
|
var Ue = function(i) {
|
|
@@ -1746,16 +1746,16 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1746
1746
|
};
|
|
1747
1747
|
for (Ct("clearProps", {
|
|
1748
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,
|
|
1749
|
+
return s = new kt(i, l, 0, 0, s, 2), s.setRatio = Ue, s.e = o, s.pr = -10, s.data = a._tween, K = !0, s;
|
|
1750
1750
|
}
|
|
1751
1751
|
}), M = "bezier,throwProps,physicsProps,physics2D".split(","), It = M.length; It--; )
|
|
1752
1752
|
ze(M[It]);
|
|
1753
1753
|
M = H.prototype, M._firstPT = M._lastParsedTransform = M._transform = null, M._onInitTween = function(i, o, l, a) {
|
|
1754
1754
|
if (!i.nodeType)
|
|
1755
1755
|
return !1;
|
|
1756
|
-
this._target = P = i, this._tween = l, this._vars = o, e = a,
|
|
1757
|
-
var s, d, h, y, k, x, m, I, N,
|
|
1758
|
-
if (F &&
|
|
1756
|
+
this._target = P = i, this._tween = l, this._vars = o, e = a, b = o.autoRound, K = !1, at = o.suffixMap || H.suffixMap, E = jt(i, ""), V = this._overwriteProps;
|
|
1757
|
+
var s, d, h, y, k, x, m, I, N, z = i.style;
|
|
1758
|
+
if (F && z.zIndex === "" && (s = wt(i, "zIndex", E), (s === "auto" || s === "") && this._addLazySet(z, "zIndex", 0)), typeof o == "string" && (y = z.cssText, s = re(i, E), z.cssText = y + ";" + o, s = Zt(i, s, re(i)).difs, !ee && O.test(o) && (s.opacity = parseFloat(RegExp.$1)), o = s, z.cssText = y), o.className ? this._firstPT = d = S.className.parse(
|
|
1759
1759
|
i,
|
|
1760
1760
|
o.className,
|
|
1761
1761
|
"className",
|
|
@@ -1764,15 +1764,15 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1764
1764
|
null,
|
|
1765
1765
|
o
|
|
1766
1766
|
) : this._firstPT = d = this.parse(i, o, null), this._transformType) {
|
|
1767
|
-
for (N = this._transformType === 3, Xt ? $ && (F = !0,
|
|
1768
|
-
|
|
1767
|
+
for (N = this._transformType === 3, Xt ? $ && (F = !0, z.zIndex === "" && (m = wt(i, "zIndex", E), (m === "auto" || m === "") && this._addLazySet(z, "zIndex", 0)), L && this._addLazySet(
|
|
1768
|
+
z,
|
|
1769
1769
|
"WebkitBackfaceVisibility",
|
|
1770
1770
|
this._vars.WebkitBackfaceVisibility || (N ? "visible" : "hidden")
|
|
1771
|
-
)) :
|
|
1771
|
+
)) : z.zoom = 1, h = d; h && h._next; )
|
|
1772
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,
|
|
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, E, !0), I.tween = l, I.pr = -1, V.pop();
|
|
1774
1774
|
}
|
|
1775
|
-
if (
|
|
1775
|
+
if (K) {
|
|
1776
1776
|
for (; d; ) {
|
|
1777
1777
|
for (x = d._next, h = y; h && h.pr > d.pr; )
|
|
1778
1778
|
h = h._next;
|
|
@@ -1782,7 +1782,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1782
1782
|
}
|
|
1783
1783
|
return !0;
|
|
1784
1784
|
}, M.parse = function(i, o, l, a) {
|
|
1785
|
-
var s, d, h, y, k, x, m, I, N,
|
|
1785
|
+
var s, d, h, y, k, x, m, I, N, z, q = i.style;
|
|
1786
1786
|
for (s in o) {
|
|
1787
1787
|
if (x = o[s], typeof x == "function" && (x = x(e, P)), d = S[s])
|
|
1788
1788
|
l = d.parse(i, x, s, this, l, a, o);
|
|
@@ -1800,7 +1800,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1800
1800
|
);
|
|
1801
1801
|
continue;
|
|
1802
1802
|
}
|
|
1803
|
-
k = wt(i, s,
|
|
1803
|
+
k = wt(i, s, E) + "", N = typeof x == "string", s === "color" || s === "fill" || s === "stroke" || s.indexOf("Color") !== -1 || N && R.test(x) ? (N || (x = ut(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, E), m = "px") : s === "left" || s === "top" ? (h = ue(i, s, E), m = "px") : (h = s !== "opacity" ? 0 : 1, m = "")), z = N && x.charAt(1) === "=", z ? (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 at ? at[s] : m), x = y || y === 0 ? (z ? 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"), z && (y || y === 0) && (x = y + h + I)), z && (y += h), !h && h !== 0 || !y && y !== 0 ? q[s] !== void 0 && (x || x + "" != "NaN" && x != null) ? (l = new kt(
|
|
1804
1804
|
q,
|
|
1805
1805
|
s,
|
|
1806
1806
|
y || h || 0,
|
|
@@ -1820,7 +1820,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1820
1820
|
l,
|
|
1821
1821
|
0,
|
|
1822
1822
|
s,
|
|
1823
|
-
|
|
1823
|
+
b !== !1 && (I === "px" || s === "zIndex"),
|
|
1824
1824
|
0,
|
|
1825
1825
|
k,
|
|
1826
1826
|
x
|
|
@@ -1877,7 +1877,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1877
1877
|
s = s._next;
|
|
1878
1878
|
}
|
|
1879
1879
|
}, M._enableTransforms = function(i) {
|
|
1880
|
-
this._transform = this._transform || de(this._target,
|
|
1880
|
+
this._transform = this._transform || de(this._target, E, !0), this._transformType = this._transform.svg && ne || !i && this._transformType !== 3 ? 2 : 3;
|
|
1881
1881
|
};
|
|
1882
1882
|
var Ve = function(i) {
|
|
1883
1883
|
this.t[this.p] = this.e, this.data._linkCSSP(this, this._next, null, !0);
|
|
@@ -1900,7 +1900,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1900
1900
|
}
|
|
1901
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
1902
|
o.plugin && o.plugin !== l && o.plugin._kill && (o.plugin._kill(i), l = o.plugin), o = o._next;
|
|
1903
|
-
return
|
|
1903
|
+
return B.prototype._kill.call(this, s);
|
|
1904
1904
|
};
|
|
1905
1905
|
var we = function(i, o, l) {
|
|
1906
1906
|
var a, s, d, h;
|
|
@@ -1912,7 +1912,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1912
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
1913
|
};
|
|
1914
1914
|
return H.cascadeTo = function(i, o, l) {
|
|
1915
|
-
var a, s, d, h, y =
|
|
1915
|
+
var a, s, d, h, y = J.to(i, o, l), k = [y], x = [], m = [], I = [], N = J._internals.reservedProps;
|
|
1916
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
1917
|
if (s = Zt(I[a], x[a], m[a]), s.firstMPT) {
|
|
1918
1918
|
s = s.difs;
|
|
@@ -1921,64 +1921,64 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1921
1921
|
h = {};
|
|
1922
1922
|
for (d in s)
|
|
1923
1923
|
h[d] = x[a][d];
|
|
1924
|
-
k.push(
|
|
1924
|
+
k.push(J.fromTo(I[a], o, h, s));
|
|
1925
1925
|
}
|
|
1926
1926
|
return k;
|
|
1927
|
-
},
|
|
1927
|
+
}, B.activate([H]), H;
|
|
1928
1928
|
},
|
|
1929
1929
|
!0
|
|
1930
1930
|
), function() {
|
|
1931
|
-
var
|
|
1931
|
+
var B = Dt._gsDefine.plugin({
|
|
1932
1932
|
propName: "roundProps",
|
|
1933
1933
|
version: "1.7.0",
|
|
1934
1934
|
priority: -1,
|
|
1935
1935
|
API: 2,
|
|
1936
|
-
init: function(
|
|
1936
|
+
init: function(E, V, H) {
|
|
1937
1937
|
return this._tween = H, !0;
|
|
1938
1938
|
}
|
|
1939
|
-
}),
|
|
1940
|
-
var V = 1 >
|
|
1939
|
+
}), J = function(E) {
|
|
1940
|
+
var V = 1 > E ? Math.pow(10, (E + "").length - 2) : 1;
|
|
1941
1941
|
return function(H) {
|
|
1942
|
-
return (Math.round(H /
|
|
1942
|
+
return (Math.round(H / E) * E * V | 0) / V;
|
|
1943
1943
|
};
|
|
1944
|
-
},
|
|
1945
|
-
for (;
|
|
1946
|
-
|
|
1947
|
-
},
|
|
1948
|
-
|
|
1949
|
-
var
|
|
1944
|
+
}, K = function(E, V) {
|
|
1945
|
+
for (; E; )
|
|
1946
|
+
E.f || E.blob || (E.m = V || Math.round), E = E._next;
|
|
1947
|
+
}, at = B.prototype;
|
|
1948
|
+
at._onInitAllProps = function() {
|
|
1949
|
+
var E, V, H, dt, S = this._tween, M = S.vars.roundProps, b = {}, F = S._propLookup.roundProps;
|
|
1950
1950
|
if (typeof M != "object" || M.push)
|
|
1951
1951
|
for (typeof M == "string" && (M = M.split(",")), H = M.length; --H > -1; )
|
|
1952
|
-
|
|
1952
|
+
b[M[H]] = Math.round;
|
|
1953
1953
|
else
|
|
1954
1954
|
for (dt in M)
|
|
1955
|
-
|
|
1956
|
-
for (dt in
|
|
1957
|
-
for (
|
|
1958
|
-
V =
|
|
1955
|
+
b[dt] = J(M[dt]);
|
|
1956
|
+
for (dt in b)
|
|
1957
|
+
for (E = S._firstPT; E; )
|
|
1958
|
+
V = E._next, E.pg ? E.t._mod(b) : E.n === dt && (E.f === 2 && E.t ? K(E.t._firstPT, b[dt]) : (this._add(E.t, dt, E.s, E.c, b[dt]), V && (V._prev = E._prev), E._prev ? E._prev._next = V : S._firstPT === E && (S._firstPT = V), E._next = E._prev = null, S._propLookup[dt] = F)), E = V;
|
|
1959
1959
|
return !1;
|
|
1960
|
-
},
|
|
1961
|
-
this._addTween(
|
|
1960
|
+
}, at._add = function(E, V, H, dt, S) {
|
|
1961
|
+
this._addTween(E, V, H, H + dt, V, S || Math.round), this._overwriteProps.push(V);
|
|
1962
1962
|
};
|
|
1963
1963
|
}(), function() {
|
|
1964
1964
|
Dt._gsDefine.plugin({
|
|
1965
1965
|
propName: "attr",
|
|
1966
1966
|
API: 2,
|
|
1967
1967
|
version: "0.6.1",
|
|
1968
|
-
init: function(
|
|
1969
|
-
var
|
|
1970
|
-
if (typeof
|
|
1968
|
+
init: function(B, J, K, at) {
|
|
1969
|
+
var E, V;
|
|
1970
|
+
if (typeof B.setAttribute != "function")
|
|
1971
1971
|
return !1;
|
|
1972
|
-
for (
|
|
1973
|
-
V =
|
|
1974
|
-
|
|
1972
|
+
for (E in J)
|
|
1973
|
+
V = J[E], typeof V == "function" && (V = V(at, B)), this._addTween(
|
|
1974
|
+
B,
|
|
1975
1975
|
"setAttribute",
|
|
1976
|
-
|
|
1976
|
+
B.getAttribute(E) + "",
|
|
1977
1977
|
V + "",
|
|
1978
|
-
|
|
1978
|
+
E,
|
|
1979
1979
|
!1,
|
|
1980
|
-
|
|
1981
|
-
), this._overwriteProps.push(
|
|
1980
|
+
E
|
|
1981
|
+
), this._overwriteProps.push(E);
|
|
1982
1982
|
return !0;
|
|
1983
1983
|
}
|
|
1984
1984
|
});
|
|
@@ -1986,32 +1986,32 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1986
1986
|
propName: "directionalRotation",
|
|
1987
1987
|
version: "0.3.1",
|
|
1988
1988
|
API: 2,
|
|
1989
|
-
init: function(
|
|
1990
|
-
typeof
|
|
1991
|
-
var
|
|
1992
|
-
for (
|
|
1993
|
-
|
|
1994
|
-
typeof
|
|
1995
|
-
), dt = this.finals[
|
|
1989
|
+
init: function(B, J, K, at) {
|
|
1990
|
+
typeof J != "object" && (J = { rotation: J }), this.finals = {};
|
|
1991
|
+
var E, V, H, dt, S, M, b = J.useRadians === !0 ? 2 * Math.PI : 360, F = 1e-6;
|
|
1992
|
+
for (E in J)
|
|
1993
|
+
E !== "useRadians" && (dt = J[E], typeof dt == "function" && (dt = dt(at, B)), M = (dt + "").split("_"), V = M[0], H = parseFloat(
|
|
1994
|
+
typeof B[E] != "function" ? B[E] : B[E.indexOf("set") || typeof B["get" + E.substr(3)] != "function" ? E : "get" + E.substr(3)]()
|
|
1995
|
+
), dt = this.finals[E] = 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 %= b, S !== S % (b / 2) && (S = 0 > S ? S + b : S - b)), V.indexOf("_cw") !== -1 && 0 > S ? S = (S + 9999999999 * b) % b - (S / b | 0) * b : V.indexOf("ccw") !== -1 && S > 0 && (S = (S - 9999999999 * b) % b - (S / b | 0) * b)), (S > F || -F > S) && (this._addTween(B, E, H, H + S, E), this._overwriteProps.push(E)));
|
|
1996
1996
|
return !0;
|
|
1997
1997
|
},
|
|
1998
|
-
set: function(
|
|
1999
|
-
var
|
|
2000
|
-
if (
|
|
2001
|
-
this._super.setRatio.call(this,
|
|
1998
|
+
set: function(B) {
|
|
1999
|
+
var J;
|
|
2000
|
+
if (B !== 1)
|
|
2001
|
+
this._super.setRatio.call(this, B);
|
|
2002
2002
|
else
|
|
2003
|
-
for (
|
|
2004
|
-
|
|
2003
|
+
for (J = this._firstPT; J; )
|
|
2004
|
+
J.f ? J.t[J.p](this.finals[J.p]) : J.t[J.p] = this.finals[J.p], J = J._next;
|
|
2005
2005
|
}
|
|
2006
2006
|
})._autoCSS = !0, Dt._gsDefine(
|
|
2007
2007
|
"easing.Back",
|
|
2008
2008
|
["easing.Ease"],
|
|
2009
|
-
function(
|
|
2010
|
-
var
|
|
2009
|
+
function(B) {
|
|
2010
|
+
var J, K, at, E, V = Dt.GreenSockGlobals || Dt, H = V.com.greensock, dt = 2 * Math.PI, S = Math.PI / 2, M = H._class, b = function(t, _) {
|
|
2011
2011
|
var n = M("easing." + t, function() {
|
|
2012
|
-
}, !0), g = n.prototype = new
|
|
2012
|
+
}, !0), g = n.prototype = new B();
|
|
2013
2013
|
return g.constructor = n, g.getRatio = _, n;
|
|
2014
|
-
}, F =
|
|
2014
|
+
}, F = B.register || function() {
|
|
2015
2015
|
}, $ = function(t, _, n, g, p) {
|
|
2016
2016
|
var T = M(
|
|
2017
2017
|
"easing." + t,
|
|
@@ -2028,7 +2028,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2028
2028
|
this._p1 = p || p === 0 ? p : 1.70158, this._p2 = 1.525 * this._p1;
|
|
2029
2029
|
},
|
|
2030
2030
|
!0
|
|
2031
|
-
), g = n.prototype = new
|
|
2031
|
+
), g = n.prototype = new B();
|
|
2032
2032
|
return g.constructor = n, g.getRatio = _, g.config = function(p) {
|
|
2033
2033
|
return new n(p);
|
|
2034
2034
|
}, n;
|
|
@@ -2049,46 +2049,46 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2049
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
2050
|
},
|
|
2051
2051
|
!0
|
|
2052
|
-
), e = P.prototype = new
|
|
2052
|
+
), e = P.prototype = new B();
|
|
2053
2053
|
return e.constructor = P, e.getRatio = function(t) {
|
|
2054
2054
|
var _ = t + (0.5 - t) * this._p;
|
|
2055
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
2056
|
}, P.ease = new P(0.7, 0.7), e.config = P.config = function(t, _, n) {
|
|
2057
2057
|
return new P(t, _, n);
|
|
2058
|
-
},
|
|
2058
|
+
}, J = M(
|
|
2059
2059
|
"easing.SteppedEase",
|
|
2060
2060
|
function(t, _) {
|
|
2061
2061
|
t = t || 1, this._p1 = 1 / t, this._p2 = t + (_ ? 0 : 1), this._p3 = _ ? 1 : 0;
|
|
2062
2062
|
},
|
|
2063
2063
|
!0
|
|
2064
|
-
), e =
|
|
2064
|
+
), e = J.prototype = new B(), e.constructor = J, e.getRatio = function(t) {
|
|
2065
2065
|
return 0 > t ? t = 0 : t >= 1 && (t = 0.999999999), ((this._p2 * t | 0) + this._p3) * this._p1;
|
|
2066
|
-
}, e.config =
|
|
2067
|
-
return new
|
|
2068
|
-
},
|
|
2066
|
+
}, e.config = J.config = function(t, _) {
|
|
2067
|
+
return new J(t, _);
|
|
2068
|
+
}, K = M(
|
|
2069
2069
|
"easing.ExpoScaleEase",
|
|
2070
2070
|
function(t, _, n) {
|
|
2071
2071
|
this._p1 = Math.log(_ / t), this._p2 = _ - t, this._p3 = t, this._ease = n;
|
|
2072
2072
|
},
|
|
2073
2073
|
!0
|
|
2074
|
-
), e =
|
|
2074
|
+
), e = K.prototype = new B(), e.constructor = K, e.getRatio = function(t) {
|
|
2075
2075
|
return this._ease && (t = this._ease.getRatio(t)), (this._p3 * Math.exp(this._p1 * t) - this._p3) / this._p2;
|
|
2076
|
-
}, e.config =
|
|
2077
|
-
return new
|
|
2078
|
-
},
|
|
2076
|
+
}, e.config = K.config = function(t, _, n) {
|
|
2077
|
+
return new K(t, _, n);
|
|
2078
|
+
}, at = M(
|
|
2079
2079
|
"easing.RoughEase",
|
|
2080
2080
|
function(t) {
|
|
2081
2081
|
t = t || {};
|
|
2082
|
-
for (var _, n, g, p, T, O, D = t.taper || "none", R = [], Z = 0, U = 0 | (t.points || 20),
|
|
2083
|
-
_ =
|
|
2082
|
+
for (var _, n, g, p, T, O, D = t.taper || "none", R = [], Z = 0, U = 0 | (t.points || 20), tt = U, et = t.randomize !== !1, mt = t.clamp === !0, ot = t.template instanceof B ? t.template : null, Q = typeof t.strength == "number" ? 0.4 * t.strength : 0.4; --tt > -1; )
|
|
2083
|
+
_ = et ? Math.random() : 1 / U * tt, n = ot ? ot.getRatio(_) : _, D === "none" ? g = Q : D === "out" ? (p = 1 - _, g = p * p * Q) : D === "in" ? g = _ * _ * Q : 0.5 > _ ? (p = 2 * _, g = p * p * 0.5 * Q) : (p = 2 * (1 - _), g = p * p * 0.5 * Q), et ? n += Math.random() * g - 0.5 * g : tt % 2 ? n += 0.5 * g : n -= 0.5 * g, mt && (n > 1 ? n = 1 : 0 > n && (n = 0)), R[Z++] = { x: _, y: n };
|
|
2084
2084
|
for (R.sort(function(gt, Yt) {
|
|
2085
2085
|
return gt.x - Yt.x;
|
|
2086
|
-
}), O = new st(1, 1, null),
|
|
2087
|
-
T = R[
|
|
2086
|
+
}), O = new st(1, 1, null), tt = U; --tt > -1; )
|
|
2087
|
+
T = R[tt], O = new st(T.x, T.y, O);
|
|
2088
2088
|
this._prev = new st(0, 0, O.t !== 0 ? O : O.next);
|
|
2089
2089
|
},
|
|
2090
2090
|
!0
|
|
2091
|
-
), e =
|
|
2091
|
+
), e = at.prototype = new B(), e.constructor = at, e.getRatio = function(t) {
|
|
2092
2092
|
var _ = this._prev;
|
|
2093
2093
|
if (t > _.t) {
|
|
2094
2094
|
for (; _.next && t >= _.t; )
|
|
@@ -2099,58 +2099,58 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2099
2099
|
_ = _.prev;
|
|
2100
2100
|
return this._prev = _, _.v + (t - _.t) / _.gap * _.c;
|
|
2101
2101
|
}, e.config = function(t) {
|
|
2102
|
-
return new
|
|
2103
|
-
},
|
|
2102
|
+
return new at(t);
|
|
2103
|
+
}, at.ease = new at(), $(
|
|
2104
2104
|
"Bounce",
|
|
2105
|
-
|
|
2105
|
+
b("BounceOut", function(t) {
|
|
2106
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
2107
|
}),
|
|
2108
|
-
|
|
2108
|
+
b("BounceIn", function(t) {
|
|
2109
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
2110
|
}),
|
|
2111
|
-
|
|
2111
|
+
b("BounceInOut", function(t) {
|
|
2112
2112
|
var _ = 0.5 > t;
|
|
2113
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
2114
|
})
|
|
2115
2115
|
), $(
|
|
2116
2116
|
"Circ",
|
|
2117
|
-
|
|
2117
|
+
b("CircOut", function(t) {
|
|
2118
2118
|
return Math.sqrt(1 - (t -= 1) * t);
|
|
2119
2119
|
}),
|
|
2120
|
-
|
|
2120
|
+
b("CircIn", function(t) {
|
|
2121
2121
|
return -(Math.sqrt(1 - t * t) - 1);
|
|
2122
2122
|
}),
|
|
2123
|
-
|
|
2123
|
+
b("CircInOut", function(t) {
|
|
2124
2124
|
return (t *= 2) < 1 ? -0.5 * (Math.sqrt(1 - t * t) - 1) : 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
|
|
2125
2125
|
})
|
|
2126
|
-
),
|
|
2126
|
+
), E = function(t, _, n) {
|
|
2127
2127
|
var g = M(
|
|
2128
2128
|
"easing." + t,
|
|
2129
2129
|
function(T, O) {
|
|
2130
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
2131
|
},
|
|
2132
2132
|
!0
|
|
2133
|
-
), p = g.prototype = new
|
|
2133
|
+
), p = g.prototype = new B();
|
|
2134
2134
|
return p.constructor = g, p.getRatio = _, p.config = function(T, O) {
|
|
2135
2135
|
return new g(T, O);
|
|
2136
2136
|
}, g;
|
|
2137
2137
|
}, $(
|
|
2138
2138
|
"Elastic",
|
|
2139
|
-
|
|
2139
|
+
E(
|
|
2140
2140
|
"ElasticOut",
|
|
2141
2141
|
function(t) {
|
|
2142
2142
|
return this._p1 * Math.pow(2, -10 * t) * Math.sin((t - this._p3) * this._p2) + 1;
|
|
2143
2143
|
},
|
|
2144
2144
|
0.3
|
|
2145
2145
|
),
|
|
2146
|
-
|
|
2146
|
+
E(
|
|
2147
2147
|
"ElasticIn",
|
|
2148
2148
|
function(t) {
|
|
2149
2149
|
return -(this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2));
|
|
2150
2150
|
},
|
|
2151
2151
|
0.3
|
|
2152
2152
|
),
|
|
2153
|
-
|
|
2153
|
+
E(
|
|
2154
2154
|
"ElasticInOut",
|
|
2155
2155
|
function(t) {
|
|
2156
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;
|
|
@@ -2159,44 +2159,44 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2159
2159
|
)
|
|
2160
2160
|
), $(
|
|
2161
2161
|
"Expo",
|
|
2162
|
-
|
|
2162
|
+
b("ExpoOut", function(t) {
|
|
2163
2163
|
return 1 - Math.pow(2, -10 * t);
|
|
2164
2164
|
}),
|
|
2165
|
-
|
|
2165
|
+
b("ExpoIn", function(t) {
|
|
2166
2166
|
return Math.pow(2, 10 * (t - 1)) - 1e-3;
|
|
2167
2167
|
}),
|
|
2168
|
-
|
|
2168
|
+
b("ExpoInOut", function(t) {
|
|
2169
2169
|
return (t *= 2) < 1 ? 0.5 * Math.pow(2, 10 * (t - 1)) : 0.5 * (2 - Math.pow(2, -10 * (t - 1)));
|
|
2170
2170
|
})
|
|
2171
2171
|
), $(
|
|
2172
2172
|
"Sine",
|
|
2173
|
-
|
|
2173
|
+
b("SineOut", function(t) {
|
|
2174
2174
|
return Math.sin(t * S);
|
|
2175
2175
|
}),
|
|
2176
|
-
|
|
2176
|
+
b("SineIn", function(t) {
|
|
2177
2177
|
return -Math.cos(t * S) + 1;
|
|
2178
2178
|
}),
|
|
2179
|
-
|
|
2179
|
+
b("SineInOut", function(t) {
|
|
2180
2180
|
return -0.5 * (Math.cos(Math.PI * t) - 1);
|
|
2181
2181
|
})
|
|
2182
2182
|
), M(
|
|
2183
2183
|
"easing.EaseLookup",
|
|
2184
2184
|
{
|
|
2185
2185
|
find: function(t) {
|
|
2186
|
-
return
|
|
2186
|
+
return B.map[t];
|
|
2187
2187
|
}
|
|
2188
2188
|
},
|
|
2189
2189
|
!0
|
|
2190
|
-
), F(V.SlowMo, "SlowMo", "ease,"), F(
|
|
2190
|
+
), F(V.SlowMo, "SlowMo", "ease,"), F(at, "RoughEase", "ease,"), F(J, "SteppedEase", "ease,"), v;
|
|
2191
2191
|
},
|
|
2192
2192
|
!0
|
|
2193
2193
|
);
|
|
2194
|
-
}), Dt._gsDefine && Dt._gsQueue.pop()(), function(
|
|
2195
|
-
var
|
|
2194
|
+
}), Dt._gsDefine && Dt._gsQueue.pop()(), function(B, J) {
|
|
2195
|
+
var K = {}, at = B.document, E = B.GreenSockGlobals = B.GreenSockGlobals || B, V = E[J];
|
|
2196
2196
|
if (V)
|
|
2197
2197
|
return typeof module < "u" && module.exports && (module.exports = V), V;
|
|
2198
|
-
var H, dt, S, M,
|
|
2199
|
-
var u, f = r.split("."), c =
|
|
2198
|
+
var H, dt, S, M, b, F = function(r) {
|
|
2199
|
+
var u, f = r.split("."), c = E;
|
|
2200
2200
|
for (u = 0; u < f.length; u++)
|
|
2201
2201
|
c[f[u]] = c = c[f[u]] || {};
|
|
2202
2202
|
return c;
|
|
@@ -2215,30 +2215,30 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2215
2215
|
this.sc = e[r] ? e[r].sc : [], e[r] = this, this.gsClass = null, this.func = f;
|
|
2216
2216
|
var w = [];
|
|
2217
2217
|
this.check = function(C) {
|
|
2218
|
-
for (var j, A, ft,
|
|
2219
|
-
(j = e[u[
|
|
2218
|
+
for (var j, A, ft, ut, W = u.length, pt = W; --W > -1; )
|
|
2219
|
+
(j = e[u[W]] || new t(u[W], [])).gsClass ? (w[W] = j.gsClass, pt--) : C && j.sc.push(this);
|
|
2220
2220
|
if (pt === 0 && f) {
|
|
2221
|
-
if (A = ("com.greensock." + r).split("."), ft = A.pop(),
|
|
2222
|
-
if (
|
|
2223
|
-
if (r ===
|
|
2224
|
-
module.exports =
|
|
2225
|
-
for (
|
|
2226
|
-
|
|
2221
|
+
if (A = ("com.greensock." + r).split("."), ft = A.pop(), ut = F(A.join("."))[ft] = this.gsClass = f.apply(f, w), c)
|
|
2222
|
+
if (E[ft] = K[ft] = ut, typeof module < "u" && module.exports)
|
|
2223
|
+
if (r === J) {
|
|
2224
|
+
module.exports = K[J] = ut;
|
|
2225
|
+
for (W in K)
|
|
2226
|
+
ut[W] = K[W];
|
|
2227
2227
|
} else
|
|
2228
|
-
|
|
2228
|
+
K[J] && (K[J][ft] = ut);
|
|
2229
2229
|
else
|
|
2230
2230
|
typeof define == "function" && define.amd && define(
|
|
2231
|
-
(
|
|
2231
|
+
(B.GreenSockAMDPath ? B.GreenSockAMDPath + "/" : "") + r.split(".").pop(),
|
|
2232
2232
|
[],
|
|
2233
2233
|
function() {
|
|
2234
|
-
return
|
|
2234
|
+
return ut;
|
|
2235
2235
|
}
|
|
2236
2236
|
);
|
|
2237
|
-
for (
|
|
2238
|
-
this.sc[
|
|
2237
|
+
for (W = 0; W < this.sc.length; W++)
|
|
2238
|
+
this.sc[W].check();
|
|
2239
2239
|
}
|
|
2240
2240
|
}, this.check(!0);
|
|
2241
|
-
}, _ =
|
|
2241
|
+
}, _ = B._gsDefine = function(r, u, f, c) {
|
|
2242
2242
|
return new t(r, u, f, c);
|
|
2243
2243
|
}, n = $._class = function(r, u, f) {
|
|
2244
2244
|
return u = u || function() {
|
|
@@ -2251,7 +2251,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2251
2251
|
f
|
|
2252
2252
|
), u;
|
|
2253
2253
|
};
|
|
2254
|
-
_.globals =
|
|
2254
|
+
_.globals = E;
|
|
2255
2255
|
var g = [0, 0, 1, 1], p = n(
|
|
2256
2256
|
"easing.Ease",
|
|
2257
2257
|
function(r, u, f, c) {
|
|
@@ -2259,9 +2259,9 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2259
2259
|
},
|
|
2260
2260
|
!0
|
|
2261
2261
|
), T = p.map = {}, O = p.register = function(r, u, f, c) {
|
|
2262
|
-
for (var w, C, j, A, ft = u.split(","),
|
|
2263
|
-
for (C = ft[
|
|
2264
|
-
A =
|
|
2262
|
+
for (var w, C, j, A, ft = u.split(","), ut = ft.length, W = (f || "easeIn,easeOut,easeInOut").split(","); --ut > -1; )
|
|
2263
|
+
for (C = ft[ut], w = c ? n("easing." + C, null, !0) : $.easing[C] || {}, j = W.length; --j > -1; )
|
|
2264
|
+
A = W[j], T[C + "." + A] = T[A + C] = w[A] = r.getRatio ? r : r[A] || new r();
|
|
2265
2265
|
};
|
|
2266
2266
|
for (S = p.prototype, S._calcEnd = !1, S.getRatio = function(r) {
|
|
2267
2267
|
if (this._func)
|
|
@@ -2277,7 +2277,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2277
2277
|
S = D.prototype, S.addEventListener = function(r, u, f, c, w) {
|
|
2278
2278
|
w = w || 0;
|
|
2279
2279
|
var C, j, A = this._listeners[r], ft = 0;
|
|
2280
|
-
for (this !== M ||
|
|
2280
|
+
for (this !== M || b || M.wake(), A == null && (this._listeners[r] = A = []), j = A.length; --j > -1; )
|
|
2281
2281
|
C = A[j], C.c === u && C.s === f ? A.splice(j, 1) : ft === 0 && C.pr < w && (ft = j + 1);
|
|
2282
2282
|
A.splice(ft, 0, { c: u, s: f, up: c, pr: w });
|
|
2283
2283
|
}, S.removeEventListener = function(r, u) {
|
|
@@ -2293,44 +2293,44 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2293
2293
|
for (u = w.length, u > 1 && (w = w.slice(0)), f = this._eventTarget; --u > -1; )
|
|
2294
2294
|
c = w[u], c && (c.up ? c.c.call(c.s || f, { type: r, target: f }) : c.c.call(c.s || f));
|
|
2295
2295
|
};
|
|
2296
|
-
var R =
|
|
2296
|
+
var R = B.requestAnimationFrame, Z = B.cancelAnimationFrame, U = Date.now || function() {
|
|
2297
2297
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
2298
|
-
},
|
|
2298
|
+
}, tt = U();
|
|
2299
2299
|
for (H = ["ms", "moz", "webkit", "o"], dt = H.length; --dt > -1 && !R; )
|
|
2300
|
-
R =
|
|
2300
|
+
R = B[H[dt] + "RequestAnimationFrame"], Z = B[H[dt] + "CancelAnimationFrame"] || B[H[dt] + "CancelRequestAnimationFrame"];
|
|
2301
2301
|
n("Ticker", function(r, u) {
|
|
2302
|
-
var f, c, w, C, j, A = this, ft = U(),
|
|
2303
|
-
var kt, he, ie = U() -
|
|
2304
|
-
ie >
|
|
2302
|
+
var f, c, w, C, j, A = this, ft = U(), ut = u !== !1 && R ? "auto" : !1, W = 500, pt = 33, Pt = "tick", Ot = function(vt) {
|
|
2303
|
+
var kt, he, ie = U() - tt;
|
|
2304
|
+
ie > W && (ft += ie - pt), tt += ie, A.time = (tt - 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
2305
|
};
|
|
2306
2306
|
D.call(A), A.time = A.frame = 0, A.tick = function() {
|
|
2307
2307
|
Ot(!0);
|
|
2308
2308
|
}, A.lagSmoothing = function(vt, kt) {
|
|
2309
|
-
return arguments.length ? (
|
|
2309
|
+
return arguments.length ? (W = vt || 1 / st, void (pt = Math.min(kt, W, 0))) : 1 / st > W;
|
|
2310
2310
|
}, A.sleep = function() {
|
|
2311
|
-
w != null && (
|
|
2311
|
+
w != null && (ut && Z ? Z(w) : clearTimeout(w), c = v, w = null, A === M && (b = !1));
|
|
2312
2312
|
}, A.wake = function(vt) {
|
|
2313
|
-
w !== null ? A.sleep() : vt ? ft += -
|
|
2313
|
+
w !== null ? A.sleep() : vt ? ft += -tt + (tt = U()) : A.frame > 10 && (tt = U() - W + 5), c = f === 0 ? v : ut && R ? R : function(kt) {
|
|
2314
2314
|
return setTimeout(kt, 1e3 * (j - A.time) + 1 | 0);
|
|
2315
|
-
}, A === M && (
|
|
2315
|
+
}, A === M && (b = !0), Ot(2);
|
|
2316
2316
|
}, A.fps = function(vt) {
|
|
2317
2317
|
return arguments.length ? (f = vt, C = 1 / (f || 60), j = this.time + C, void A.wake()) : f;
|
|
2318
2318
|
}, A.useRAF = function(vt) {
|
|
2319
|
-
return arguments.length ? (A.sleep(),
|
|
2319
|
+
return arguments.length ? (A.sleep(), ut = vt, void A.fps(f)) : ut;
|
|
2320
2320
|
}, A.fps(r), setTimeout(function() {
|
|
2321
|
-
|
|
2321
|
+
ut === "auto" && A.frame < 5 && (at || {}).visibilityState !== "hidden" && A.useRAF(!1);
|
|
2322
2322
|
}, 1500);
|
|
2323
2323
|
}), S = $.Ticker.prototype = new $.events.EventDispatcher(), S.constructor = $.Ticker;
|
|
2324
|
-
var
|
|
2324
|
+
var et = n("core.Animation", function(r, u) {
|
|
2325
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
|
-
|
|
2326
|
+
b || M.wake();
|
|
2327
2327
|
var f = this.vars.useFrames ? te : Gt;
|
|
2328
2328
|
f.add(this, f._time), this.vars.paused && this.paused(!0);
|
|
2329
2329
|
}
|
|
2330
2330
|
});
|
|
2331
|
-
M =
|
|
2331
|
+
M = et.ticker = new $.Ticker(), S = et.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
2332
|
var mt = function() {
|
|
2333
|
-
|
|
2333
|
+
b && U() - tt > 2e3 && ((at || {}).visibilityState !== "hidden" || !M.lagSmoothing()) && M.wake();
|
|
2334
2334
|
var r = setTimeout(mt, 2e3);
|
|
2335
2335
|
r.unref && r.unref();
|
|
2336
2336
|
};
|
|
@@ -2353,7 +2353,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2353
2353
|
var r, u = this._timeline, f = this._startTime;
|
|
2354
2354
|
return !u || !this._gc && !this._paused && u.isActive() && (r = u.rawTime(!0)) >= f && r < f + this.totalDuration() / this._timeScale - 1e-7;
|
|
2355
2355
|
}, S._enabled = function(r, u) {
|
|
2356
|
-
return
|
|
2356
|
+
return b || 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
2357
|
}, S._kill = function(r, u) {
|
|
2358
2358
|
return this._enabled(!1, !1);
|
|
2359
2359
|
}, S.kill = function(r, u) {
|
|
@@ -2398,7 +2398,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2398
2398
|
}, S.time = function(r, u) {
|
|
2399
2399
|
return arguments.length ? (this._dirty && this.totalDuration(), this.totalTime(r > this._duration ? this._duration : r, u)) : this._time;
|
|
2400
2400
|
}, S.totalTime = function(r, u, f) {
|
|
2401
|
-
if (
|
|
2401
|
+
if (b || M.wake(), !arguments.length)
|
|
2402
2402
|
return this._totalTime;
|
|
2403
2403
|
if (this._timeline) {
|
|
2404
2404
|
if (0 > r && !f && (r += this.totalDuration()), this._timeline.smoothChildTiming) {
|
|
@@ -2434,12 +2434,12 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2434
2434
|
if (!arguments.length)
|
|
2435
2435
|
return this._paused;
|
|
2436
2436
|
var u, f, c = this._timeline;
|
|
2437
|
-
return r != this._paused && c && (
|
|
2437
|
+
return r != this._paused && c && (b || 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
2438
|
};
|
|
2439
2439
|
var ot = n("core.SimpleTimeline", function(r) {
|
|
2440
|
-
|
|
2440
|
+
et.call(this, 0, r), this.autoRemoveChildren = this.smoothChildTiming = !0;
|
|
2441
2441
|
});
|
|
2442
|
-
S = ot.prototype = new
|
|
2442
|
+
S = ot.prototype = new et(), 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
2443
|
var w, C;
|
|
2444
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
2445
|
for (C = r._startTime; w && w._startTime > C; )
|
|
@@ -2456,73 +2456,73 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2456
2456
|
f
|
|
2457
2457
|
) : w.render((r - w._startTime) * w._timeScale, u, f)), w = c;
|
|
2458
2458
|
}, S.rawTime = function() {
|
|
2459
|
-
return
|
|
2459
|
+
return b || M.wake(), this._totalTime;
|
|
2460
2460
|
};
|
|
2461
|
-
var
|
|
2461
|
+
var Q = n(
|
|
2462
2462
|
"TweenLite",
|
|
2463
2463
|
function(r, u, f) {
|
|
2464
|
-
if (
|
|
2464
|
+
if (et.call(this, u, f), this.render = Q.prototype.render, r == null)
|
|
2465
2465
|
throw "Cannot tween a null target.";
|
|
2466
|
-
this.target = r = typeof r != "string" ? r :
|
|
2467
|
-
var c, w, C, j = r.jquery || r.length && r !==
|
|
2468
|
-
if (this._overwrite = A = A == null ? ce[
|
|
2466
|
+
this.target = r = typeof r != "string" ? r : Q.selector(r) || r;
|
|
2467
|
+
var c, w, C, j = r.jquery || r.length && r !== B && r[0] && (r[0] === B || r[0].nodeType && r[0].style && !r.nodeType), A = this.vars.overwrite;
|
|
2468
|
+
if (this._overwrite = A = A == null ? ce[Q.defaultOverwrite] : typeof A == "number" ? A >> 0 : ce[A], (j || r instanceof Array || r.push && P(r)) && typeof r[0] != "number")
|
|
2469
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 !==
|
|
2470
|
+
w = C[c], w ? typeof w != "string" ? w.length && w !== B && w[0] && (w[0] === B || 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--] = Q.selector(w), typeof w == "string" && C.splice(c + 1, 1)) : C.splice(c--, 1);
|
|
2471
2471
|
else
|
|
2472
2472
|
this._propLookup = {}, this._siblings = wt(r, this, !1), A === 1 && this._siblings.length > 1 && ue(r, this, null, 1, this._siblings);
|
|
2473
2473
|
(this.vars.immediateRender || u === 0 && this._delay === 0 && this.vars.immediateRender !== !1) && (this._time = -st, this.render(Math.min(0, -this._delay)));
|
|
2474
2474
|
},
|
|
2475
2475
|
!0
|
|
2476
2476
|
), gt = function(r) {
|
|
2477
|
-
return r && r.length && r !==
|
|
2477
|
+
return r && r.length && r !== B && r[0] && (r[0] === B || r[0].nodeType && r[0].style && !r.nodeType);
|
|
2478
2478
|
}, Yt = function(r, u) {
|
|
2479
2479
|
var f, c = {};
|
|
2480
2480
|
for (f in r)
|
|
2481
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
2482
|
r.css = c;
|
|
2483
2483
|
};
|
|
2484
|
-
S =
|
|
2484
|
+
S = Q.prototype = new et(), S.constructor = Q, S.kill()._gc = !1, S.ratio = 0, S._firstPT = S._targets = S._overwrittenProps = S._startAt = null, S._notifyPluginsOfEnabled = S._lazy = !1, Q.version = "2.0.2", Q.defaultEase = S._ease = new p(null, null, 1, 1), Q.defaultOverwrite = "auto", Q.ticker = M, Q.autoSleep = 120, Q.lagSmoothing = function(r, u) {
|
|
2485
2485
|
M.lagSmoothing(r, u);
|
|
2486
|
-
},
|
|
2487
|
-
var u =
|
|
2488
|
-
return u ? (
|
|
2486
|
+
}, Q.selector = B.$ || B.jQuery || function(r) {
|
|
2487
|
+
var u = B.$ || B.jQuery;
|
|
2488
|
+
return u ? (Q.selector = u, u(r)) : (at || (at = B.document), at ? at.querySelectorAll ? at.querySelectorAll(r) : at.getElementById(r.charAt(0) === "#" ? r.substr(1) : r) : r);
|
|
2489
2489
|
};
|
|
2490
|
-
var yt = [], At = {}, Jt = /(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi, Kt = /[\+-]=-?[\.\d]/,
|
|
2490
|
+
var yt = [], At = {}, Jt = /(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi, Kt = /[\+-]=-?[\.\d]/, bt = function(r) {
|
|
2491
2491
|
for (var u, f = this._firstPT, c = 1e-6; f; )
|
|
2492
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
2493
|
}, ae = function(r, u, f, c) {
|
|
2494
|
-
var w, C, j, A, ft,
|
|
2494
|
+
var w, C, j, A, ft, ut, W, pt = [], Pt = 0, Ot = "", vt = 0;
|
|
2495
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
|
-
|
|
2496
|
+
W = C[A], ut = u.substr(Pt, u.indexOf(W, Pt) - Pt), Ot += ut || !A ? ut : ",", Pt += ut.length, vt ? vt = (vt + 1) % 5 : ut.substr(-5) === "rgba(" && (vt = 1), W === w[A] || w.length <= A ? Ot += W : (Ot && (pt.push(Ot), Ot = ""), j = parseFloat(w[A]), pt.push(j), pt._firstPT = {
|
|
2497
2497
|
_next: pt._firstPT,
|
|
2498
2498
|
t: pt,
|
|
2499
2499
|
p: pt.length - 1,
|
|
2500
2500
|
s: j,
|
|
2501
|
-
c: (
|
|
2501
|
+
c: (W.charAt(1) === "=" ? parseInt(W.charAt(0) + "1", 10) * parseFloat(W.substr(2)) : parseFloat(W) - j) || 0,
|
|
2502
2502
|
f: 0,
|
|
2503
2503
|
m: vt && 4 > vt ? Math.round : 0
|
|
2504
|
-
}), Pt +=
|
|
2505
|
-
return Ot += u.substr(Pt), Ot && pt.push(Ot), pt.setRatio =
|
|
2506
|
-
},
|
|
2504
|
+
}), Pt += W.length;
|
|
2505
|
+
return Ot += u.substr(Pt), Ot && pt.push(Ot), pt.setRatio = bt, Kt.test(u) && (pt.end = null), pt;
|
|
2506
|
+
}, Wt = function(r, u, f, c, w, C, j, A, ft) {
|
|
2507
2507
|
typeof c == "function" && (c = c(ft || 0, r));
|
|
2508
|
-
var
|
|
2508
|
+
var ut, W = typeof r[u], pt = W !== "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
2509
|
t: r,
|
|
2510
2510
|
p: u,
|
|
2511
2511
|
s: Pt,
|
|
2512
|
-
f:
|
|
2512
|
+
f: W === "function",
|
|
2513
2513
|
pg: 0,
|
|
2514
2514
|
n: w || u,
|
|
2515
2515
|
m: C ? typeof C == "function" ? C : Math.round : 0,
|
|
2516
2516
|
pr: 0,
|
|
2517
2517
|
c: Ot ? parseInt(c.charAt(0) + "1", 10) * parseFloat(c.substr(2)) : parseFloat(c) - Pt || 0
|
|
2518
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,
|
|
2519
|
+
return (typeof Pt != "number" || typeof c != "number" && !Ot) && (j || isNaN(Pt) || !Ot && isNaN(c) || typeof Pt == "boolean" || typeof c == "boolean" ? (vt.fp = j, ut = ae(
|
|
2520
2520
|
Pt,
|
|
2521
2521
|
Ot ? parseFloat(vt.s) + vt.c + (vt.s + "").replace(/[0-9\-\.]/g, "") : c,
|
|
2522
|
-
A ||
|
|
2522
|
+
A || Q.defaultStringFilter,
|
|
2523
2523
|
vt
|
|
2524
2524
|
), vt = {
|
|
2525
|
-
t:
|
|
2525
|
+
t: ut,
|
|
2526
2526
|
p: "setRatio",
|
|
2527
2527
|
s: 0,
|
|
2528
2528
|
c: 1,
|
|
@@ -2532,12 +2532,12 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2532
2532
|
pr: 0,
|
|
2533
2533
|
m: 0
|
|
2534
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 =
|
|
2535
|
+
}, le = Q._internals = {
|
|
2536
2536
|
isArray: P,
|
|
2537
2537
|
isSelector: gt,
|
|
2538
2538
|
lazyTweens: yt,
|
|
2539
2539
|
blobDif: ae
|
|
2540
|
-
}, Et =
|
|
2540
|
+
}, Et = Q._plugins = {}, zt = le.tweenLookup = {}, ee = 0, _e = le.reservedProps = {
|
|
2541
2541
|
ease: 1,
|
|
2542
2542
|
delay: 1,
|
|
2543
2543
|
overwrite: 1,
|
|
@@ -2583,28 +2583,28 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2583
2583
|
preexisting: 5,
|
|
2584
2584
|
true: 1,
|
|
2585
2585
|
false: 0
|
|
2586
|
-
}, te =
|
|
2586
|
+
}, te = et._rootFramesTimeline = new ot(), Gt = et._rootTimeline = new ot(), se = 30, jt = le.lazyRender = function() {
|
|
2587
2587
|
var r, u = yt.length;
|
|
2588
2588
|
for (At = {}; --u > -1; )
|
|
2589
2589
|
r = yt[u], r && r._lazy !== !1 && (r.render(r._lazy[0], r._lazy[1], !0), r._lazy = !1);
|
|
2590
2590
|
yt.length = 0;
|
|
2591
2591
|
};
|
|
2592
|
-
Gt._startTime = M.time, te._startTime = M.frame, Gt._active = te._active = !0, setTimeout(jt, 1),
|
|
2592
|
+
Gt._startTime = M.time, te._startTime = M.frame, Gt._active = te._active = !0, setTimeout(jt, 1), et._updateRoot = Q.render = function() {
|
|
2593
2593
|
var r, u, f;
|
|
2594
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(
|
|
2595
|
+
se = M.frame + (parseInt(Q.autoSleep, 10) || 120);
|
|
2596
2596
|
for (f in zt) {
|
|
2597
2597
|
for (u = zt[f].tweens, r = u.length; --r > -1; )
|
|
2598
2598
|
u[r]._gc && u.splice(r, 1);
|
|
2599
2599
|
u.length === 0 && delete zt[f];
|
|
2600
2600
|
}
|
|
2601
|
-
if (f = Gt._first, (!f || f._paused) &&
|
|
2601
|
+
if (f = Gt._first, (!f || f._paused) && Q.autoSleep && !te._first && M._listeners.tick.length === 1) {
|
|
2602
2602
|
for (; f && f._paused; )
|
|
2603
2603
|
f = f._next;
|
|
2604
2604
|
f || M.sleep();
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
2607
|
-
}, M.addEventListener("tick",
|
|
2607
|
+
}, M.addEventListener("tick", et._updateRoot);
|
|
2608
2608
|
var wt = function(r, u, f) {
|
|
2609
2609
|
var c, w, C = r._gsTweenID;
|
|
2610
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))
|
|
@@ -2613,7 +2613,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2613
2613
|
return zt[C].tweens;
|
|
2614
2614
|
}, Vt = function(r, u, f, c) {
|
|
2615
2615
|
var w, C, j = r.vars.onOverwrite;
|
|
2616
|
-
return j && (w = j(r, u, f, c)), j =
|
|
2616
|
+
return j && (w = j(r, u, f, c)), j = Q.onOverwrite, j && (C = j(r, u, f, c)), w !== !1 && C !== !1;
|
|
2617
2617
|
}, ue = function(r, u, f, c, w) {
|
|
2618
2618
|
var C, j, A, ft;
|
|
2619
2619
|
if (c === 1 || c >= 4) {
|
|
@@ -2624,9 +2624,9 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2624
2624
|
break;
|
|
2625
2625
|
return j;
|
|
2626
2626
|
}
|
|
2627
|
-
var
|
|
2627
|
+
var ut, W = u._startTime + st, pt = [], Pt = 0, Ot = u._duration === 0;
|
|
2628
2628
|
for (C = w.length; --C > -1; )
|
|
2629
|
-
(A = w[C]) === u || A._gc || A._paused || (A._timeline !== u._timeline ? (
|
|
2629
|
+
(A = w[C]) === u || A._gc || A._paused || (A._timeline !== u._timeline ? (ut = ut || re(u, 0, Ot), re(A, ut, Ot) === 0 && (pt[Pt++] = A)) : A._startTime <= W && A._startTime + A.totalDuration() / A._timeScale > W && ((Ot || !A._initted) && W - A._startTime <= 2e-10 || (pt[Pt++] = A)));
|
|
2630
2630
|
for (C = Pt; --C > -1; )
|
|
2631
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
2632
|
if (c !== 2 && !Vt(A, u))
|
|
@@ -2643,12 +2643,12 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2643
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
2644
|
};
|
|
2645
2645
|
S._init = function() {
|
|
2646
|
-
var r, u, f, c, w, C, j = this.vars, A = this._overwrittenProps, ft = this._duration,
|
|
2646
|
+
var r, u, f, c, w, C, j = this.vars, A = this._overwrittenProps, ft = this._duration, ut = !!j.immediateRender, W = j.ease;
|
|
2647
2647
|
if (j.startAt) {
|
|
2648
2648
|
this._startAt && (this._startAt.render(-1, !0), this._startAt.kill()), w = {};
|
|
2649
2649
|
for (c in j.startAt)
|
|
2650
2650
|
w[c] = j.startAt[c];
|
|
2651
|
-
if (w.data = "isStart", w.overwrite = !1, w.immediateRender = !0, w.lazy =
|
|
2651
|
+
if (w.data = "isStart", w.overwrite = !1, w.immediateRender = !0, w.lazy = ut && 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 = Q.to(this.target || {}, 0, w), ut) {
|
|
2652
2652
|
if (this._time > 0)
|
|
2653
2653
|
this._startAt = null;
|
|
2654
2654
|
else if (ft !== 0)
|
|
@@ -2658,16 +2658,16 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2658
2658
|
if (this._startAt)
|
|
2659
2659
|
this._startAt.render(-1, !0), this._startAt.kill(), this._startAt = null;
|
|
2660
2660
|
else {
|
|
2661
|
-
this._time !== 0 && (
|
|
2661
|
+
this._time !== 0 && (ut = !1), f = {};
|
|
2662
2662
|
for (c in j)
|
|
2663
2663
|
_e[c] && c !== "autoCSS" || (f[c] = j[c]);
|
|
2664
|
-
if (f.overwrite = 0, f.data = "isFromStart", f.lazy =
|
|
2664
|
+
if (f.overwrite = 0, f.data = "isFromStart", f.lazy = ut && j.lazy !== !1, f.immediateRender = ut, this._startAt = Q.to(this.target, 0, f), ut) {
|
|
2665
2665
|
if (this._time === 0)
|
|
2666
2666
|
return;
|
|
2667
2667
|
} else
|
|
2668
2668
|
this._startAt._init(), this._startAt._enabled(!1), this.vars.immediateRender && (this._startAt = null);
|
|
2669
2669
|
}
|
|
2670
|
-
if (this._ease =
|
|
2670
|
+
if (this._ease = W = W ? W instanceof p ? W : typeof W == "function" ? new p(W, j.easeParams) : T[W] || Q.defaultEase : Q.defaultEase, j.easeParams instanceof Array && W.config && (this._ease = W.config.apply(W, j.easeParams)), this._easeType = this._ease._type, this._easePower = this._ease._power, this._firstPT = null, this._targets)
|
|
2671
2671
|
for (C = this._targets.length, r = 0; C > r; r++)
|
|
2672
2672
|
this._initProps(
|
|
2673
2673
|
this._targets[r],
|
|
@@ -2684,20 +2684,20 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2684
2684
|
A,
|
|
2685
2685
|
0
|
|
2686
2686
|
);
|
|
2687
|
-
if (u &&
|
|
2687
|
+
if (u && Q._onPluginEvent("_onInitAllProps", this), A && (this._firstPT || typeof this.target != "function" && this._enabled(!1, !1)), j.runBackwards)
|
|
2688
2688
|
for (f = this._firstPT; f; )
|
|
2689
2689
|
f.s += f.c, f.c = -f.c, f = f._next;
|
|
2690
2690
|
this._onUpdate = j.onUpdate, this._initted = !0;
|
|
2691
2691
|
}, S._initProps = function(r, u, f, c, w) {
|
|
2692
|
-
var C, j, A, ft,
|
|
2692
|
+
var C, j, A, ft, ut, W;
|
|
2693
2693
|
if (r == null)
|
|
2694
2694
|
return !1;
|
|
2695
|
-
At[r._gsTweenID] && jt(), this.vars.css || r.style && r !==
|
|
2695
|
+
At[r._gsTweenID] && jt(), this.vars.css || r.style && r !== B && r.nodeType && Et.css && this.vars.autoCSS !== !1 && Yt(this.vars, r);
|
|
2696
2696
|
for (C in this.vars)
|
|
2697
|
-
if (
|
|
2698
|
-
|
|
2697
|
+
if (W = this.vars[C], _e[C])
|
|
2698
|
+
W && (W instanceof Array || W.push && P(W)) && W.join("").indexOf("{self}") !== -1 && (this.vars[C] = W = this._swapSelfInParams(W, this));
|
|
2699
2699
|
else if (Et[C] && (ft = new Et[C]())._onInitTween(r, this.vars[C], this, w)) {
|
|
2700
|
-
for (this._firstPT =
|
|
2700
|
+
for (this._firstPT = ut = {
|
|
2701
2701
|
_next: this._firstPT,
|
|
2702
2702
|
t: ft,
|
|
2703
2703
|
p: "setRatio",
|
|
@@ -2710,14 +2710,14 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2710
2710
|
m: 0
|
|
2711
2711
|
}, j = ft._overwriteProps.length; --j > -1; )
|
|
2712
2712
|
u[ft._overwriteProps[j]] = this._firstPT;
|
|
2713
|
-
(ft._priority || ft._onInitAllProps) && (A = !0), (ft._onDisable || ft._onEnable) && (this._notifyPluginsOfEnabled = !0),
|
|
2713
|
+
(ft._priority || ft._onInitAllProps) && (A = !0), (ft._onDisable || ft._onEnable) && (this._notifyPluginsOfEnabled = !0), ut._next && (ut._next._prev = ut);
|
|
2714
2714
|
} else
|
|
2715
|
-
u[C] =
|
|
2715
|
+
u[C] = Wt.call(
|
|
2716
2716
|
this,
|
|
2717
2717
|
r,
|
|
2718
2718
|
C,
|
|
2719
2719
|
"get",
|
|
2720
|
-
|
|
2720
|
+
W,
|
|
2721
2721
|
C,
|
|
2722
2722
|
0,
|
|
2723
2723
|
null,
|
|
@@ -2726,14 +2726,14 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2726
2726
|
);
|
|
2727
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
2728
|
}, S.render = function(r, u, f) {
|
|
2729
|
-
var c, w, C, j, A = this._time, ft = this._duration,
|
|
2729
|
+
var c, w, C, j, A = this._time, ft = this._duration, ut = this._rawPrevTime;
|
|
2730
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 >
|
|
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 > ut || 0 >= r && r >= -1e-7 || ut === st && this.data !== "isPause") && ut !== r && (f = !0, ut > st && (w = "onReverseComplete")), this._rawPrevTime = j = !u || r || ut === r ? r : st);
|
|
2732
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 &&
|
|
2733
|
+
this._totalTime = this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (A !== 0 || ft === 0 && ut > 0) && (w = "onReverseComplete", c = this._reversed), 0 > r && (this._active = !1, ft === 0 && (this._initted || !this.vars.lazy || f) && (ut >= 0 && (ut !== st || this.data !== "isPause") && (f = !0), this._rawPrevTime = j = !u || r || ut === r ? r : st)), (!this._initted || this._startAt && this._startAt.progress()) && (f = !0);
|
|
2734
2734
|
else if (this._totalTime = this._time = r, this._easeType) {
|
|
2735
|
-
var
|
|
2736
|
-
(pt === 1 || pt === 3 &&
|
|
2735
|
+
var W = r / ft, pt = this._easeType, Pt = this._easePower;
|
|
2736
|
+
(pt === 1 || pt === 3 && W >= 0.5) && (W = 1 - W), pt === 3 && (W *= 2), Pt === 1 ? W *= W : Pt === 2 ? W *= W * W : Pt === 3 ? W *= W * W * W : Pt === 4 && (W *= W * W * W * W), pt === 1 ? this.ratio = 1 - W : pt === 2 ? this.ratio = W : 0.5 > r / ft ? this.ratio = W / 2 : this.ratio = 1 - W / 2;
|
|
2737
2737
|
} else
|
|
2738
2738
|
this.ratio = this._ease.getRatio(r / ft);
|
|
2739
2739
|
if (this._time !== A || f) {
|
|
@@ -2741,7 +2741,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2741
2741
|
if (this._init(), !this._initted || this._gc)
|
|
2742
2742
|
return;
|
|
2743
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 =
|
|
2744
|
+
return this._time = this._totalTime = A, this._rawPrevTime = ut, yt.push(this), void (this._lazy = [r, u]);
|
|
2745
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
2746
|
}
|
|
2747
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; )
|
|
@@ -2751,8 +2751,8 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2751
2751
|
}, S._kill = function(r, u, f) {
|
|
2752
2752
|
if (r === "all" && (r = null), r == null && (u == null || u === this.target))
|
|
2753
2753
|
return this._lazy = !1, this._enabled(!1, !1);
|
|
2754
|
-
u = typeof u != "string" ? u || this._targets || this.target :
|
|
2755
|
-
var c, w, C, j, A, ft,
|
|
2754
|
+
u = typeof u != "string" ? u || this._targets || this.target : Q.selector(u) || u;
|
|
2755
|
+
var c, w, C, j, A, ft, ut, W, pt, Pt = f && this._time && f._startTime === this._startTime && this._timeline === f._timeline, Ot = this._firstPT;
|
|
2756
2756
|
if ((P(u) || gt(u)) && typeof u[0] != "number")
|
|
2757
2757
|
for (c = u.length; --c > -1; )
|
|
2758
2758
|
this._kill(r, u[c], f) && (ft = !0);
|
|
@@ -2769,22 +2769,22 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2769
2769
|
A = this._propLookup, w = this._overwrittenProps = r ? this._overwrittenProps || {} : "all";
|
|
2770
2770
|
}
|
|
2771
2771
|
if (A) {
|
|
2772
|
-
if (
|
|
2773
|
-
for (C in
|
|
2772
|
+
if (ut = r || A, W = r !== w && w !== "all" && r !== A && (typeof r != "object" || !r._tempKill), f && (Q.onOverwrite || this.vars.onOverwrite)) {
|
|
2773
|
+
for (C in ut)
|
|
2774
2774
|
A[C] && (pt || (pt = []), pt.push(C));
|
|
2775
2775
|
if ((pt || !r) && !Vt(this, f, u, pt))
|
|
2776
2776
|
return !1;
|
|
2777
2777
|
}
|
|
2778
|
-
for (C in
|
|
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(
|
|
2778
|
+
for (C in ut)
|
|
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(ut) && (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]), W && (w[C] = 1);
|
|
2780
2780
|
!this._firstPT && this._initted && Ot && this._enabled(!1, !1);
|
|
2781
2781
|
}
|
|
2782
2782
|
}
|
|
2783
2783
|
return ft;
|
|
2784
2784
|
}, S.invalidate = function() {
|
|
2785
|
-
return this._notifyPluginsOfEnabled &&
|
|
2785
|
+
return this._notifyPluginsOfEnabled && Q._onPluginEvent("_onDisable", this), this._firstPT = this._overwrittenProps = this._startAt = this._onUpdate = null, this._notifyPluginsOfEnabled = this._active = this._lazy = !1, this._propLookup = this._targets ? {} : [], et.prototype.invalidate.call(this), this.vars.immediateRender && (this._time = -st, this.render(Math.min(0, -this._delay))), this;
|
|
2786
2786
|
}, S._enabled = function(r, u) {
|
|
2787
|
-
if (
|
|
2787
|
+
if (b || M.wake(), r && this._gc) {
|
|
2788
2788
|
var f, c = this._targets;
|
|
2789
2789
|
if (c)
|
|
2790
2790
|
for (f = c.length; --f > -1; )
|
|
@@ -2792,15 +2792,15 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2792
2792
|
else
|
|
2793
2793
|
this._siblings = wt(this.target, this, !0);
|
|
2794
2794
|
}
|
|
2795
|
-
return
|
|
2796
|
-
},
|
|
2797
|
-
return new
|
|
2798
|
-
},
|
|
2799
|
-
return f.runBackwards = !0, f.immediateRender = f.immediateRender != 0, new
|
|
2800
|
-
},
|
|
2801
|
-
return c.startAt = f, c.immediateRender = c.immediateRender != 0 && f.immediateRender != 0, new
|
|
2802
|
-
},
|
|
2803
|
-
return new
|
|
2795
|
+
return et.prototype._enabled.call(this, r, u), this._notifyPluginsOfEnabled && this._firstPT ? Q._onPluginEvent(r ? "_onEnable" : "_onDisable", this) : !1;
|
|
2796
|
+
}, Q.to = function(r, u, f) {
|
|
2797
|
+
return new Q(r, u, f);
|
|
2798
|
+
}, Q.from = function(r, u, f) {
|
|
2799
|
+
return f.runBackwards = !0, f.immediateRender = f.immediateRender != 0, new Q(r, u, f);
|
|
2800
|
+
}, Q.fromTo = function(r, u, f, c) {
|
|
2801
|
+
return c.startAt = f, c.immediateRender = c.immediateRender != 0 && f.immediateRender != 0, new Q(r, u, c);
|
|
2802
|
+
}, Q.delayedCall = function(r, u, f, c, w) {
|
|
2803
|
+
return new Q(u, 0, {
|
|
2804
2804
|
delay: r,
|
|
2805
2805
|
onComplete: u,
|
|
2806
2806
|
onCompleteParams: f,
|
|
@@ -2812,16 +2812,16 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2812
2812
|
useFrames: w,
|
|
2813
2813
|
overwrite: 0
|
|
2814
2814
|
});
|
|
2815
|
-
},
|
|
2816
|
-
return new
|
|
2817
|
-
},
|
|
2815
|
+
}, Q.set = function(r, u) {
|
|
2816
|
+
return new Q(r, 0, u);
|
|
2817
|
+
}, Q.getTweensOf = function(r, u) {
|
|
2818
2818
|
if (r == null)
|
|
2819
2819
|
return [];
|
|
2820
|
-
r = typeof r != "string" ? r :
|
|
2820
|
+
r = typeof r != "string" ? r : Q.selector(r) || r;
|
|
2821
2821
|
var f, c, w, C;
|
|
2822
2822
|
if ((P(r) || gt(r)) && typeof r[0] != "number") {
|
|
2823
2823
|
for (f = r.length, c = []; --f > -1; )
|
|
2824
|
-
c = c.concat(
|
|
2824
|
+
c = c.concat(Q.getTweensOf(r[f], u));
|
|
2825
2825
|
for (f = c.length; --f > -1; )
|
|
2826
2826
|
for (C = c[f], w = f; --w > -1; )
|
|
2827
2827
|
C === c[w] && c.splice(f, 1);
|
|
@@ -2829,9 +2829,9 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2829
2829
|
for (c = wt(r).concat(), f = c.length; --f > -1; )
|
|
2830
2830
|
(c[f]._gc || u && !c[f].isActive()) && c.splice(f, 1);
|
|
2831
2831
|
return c || [];
|
|
2832
|
-
},
|
|
2832
|
+
}, Q.killTweensOf = Q.killDelayedCallsTo = function(r, u, f) {
|
|
2833
2833
|
typeof u == "object" && (f = u, u = !1);
|
|
2834
|
-
for (var c =
|
|
2834
|
+
for (var c = Q.getTweensOf(r, u), w = c.length; --w > -1; )
|
|
2835
2835
|
c[w]._kill(f, r);
|
|
2836
2836
|
};
|
|
2837
2837
|
var Zt = n(
|
|
@@ -2841,7 +2841,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2841
2841
|
},
|
|
2842
2842
|
!0
|
|
2843
2843
|
);
|
|
2844
|
-
if (S = Zt.prototype, Zt.version = "1.19.0", Zt.API = 2, S._firstPT = null, S._addTween =
|
|
2844
|
+
if (S = Zt.prototype, Zt.version = "1.19.0", Zt.API = 2, S._firstPT = null, S._addTween = Wt, S.setRatio = bt, S._kill = function(r) {
|
|
2845
2845
|
var u, f = this._overwriteProps, c = this._firstPT;
|
|
2846
2846
|
if (r[this._propName] != null)
|
|
2847
2847
|
this._overwriteProps = [];
|
|
@@ -2854,7 +2854,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2854
2854
|
}, S._mod = S._roundProps = function(r) {
|
|
2855
2855
|
for (var u, f = this._firstPT; f; )
|
|
2856
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
|
-
},
|
|
2857
|
+
}, Q._onPluginEvent = function(r, u) {
|
|
2858
2858
|
var f, c, w, C, j, A = u._firstPT;
|
|
2859
2859
|
if (r === "_onInitAllProps") {
|
|
2860
2860
|
for (; A; ) {
|
|
@@ -2892,26 +2892,32 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2892
2892
|
for (u in C)
|
|
2893
2893
|
typeof r[u] == "function" && (A[C[u]] = r[u]);
|
|
2894
2894
|
return j.version = r.version, Zt.activate([j]), j;
|
|
2895
|
-
}, H =
|
|
2895
|
+
}, H = B._gsQueue) {
|
|
2896
2896
|
for (dt = 0; dt < H.length; dt++)
|
|
2897
2897
|
H[dt]();
|
|
2898
2898
|
for (S in e)
|
|
2899
|
-
e[S].func ||
|
|
2899
|
+
e[S].func || B.console.log("GSAP encountered missing dependency: " + S);
|
|
2900
2900
|
}
|
|
2901
|
-
|
|
2901
|
+
b = !1;
|
|
2902
2902
|
}(
|
|
2903
2903
|
typeof module < "u" && module.exports && typeof global < "u" ? global : globalThis || window,
|
|
2904
2904
|
"TweenMax"
|
|
2905
2905
|
);
|
|
2906
|
-
const
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2906
|
+
const fi = [ti], ci = {
|
|
2907
|
+
continuation: null,
|
|
2908
|
+
install(B) {
|
|
2909
|
+
if (fi.forEach((E, V) => {
|
|
2910
|
+
B.component(E.name, E);
|
|
2911
|
+
}), this.continuation) {
|
|
2912
|
+
B.config.globalProperties.$continuation = this.continuation;
|
|
2913
|
+
return;
|
|
2914
|
+
}
|
|
2915
|
+
let J = He(ui), K = document.createElement("div");
|
|
2916
|
+
document.body.appendChild(K), this.loading = J.mount(K), B.config.globalProperties.$loading = this.loading, window.$continuation = this.loading;
|
|
2911
2917
|
}
|
|
2912
2918
|
};
|
|
2913
2919
|
export {
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2920
|
+
ti as Button,
|
|
2921
|
+
ui as Cutscenes,
|
|
2922
|
+
ci as default
|
|
2917
2923
|
};
|