chbim-plugins 0.0.5 → 0.0.7
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 +745 -697
- package/chbim-plugins.umd.cjs +2 -2
- package/package.json +1 -1
- package/style.css +1 -1
package/chbim-plugins.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const Qe = (
|
|
3
|
-
const
|
|
4
|
-
for (const [
|
|
5
|
-
|
|
6
|
-
return
|
|
1
|
+
import { openBlock as Ce, createElementBlock as Me, normalizeClass as Ie, renderSlot as Ge, defineComponent as Xe, ref as Ae, onMounted as Le, createElementVNode as Jt, toDisplayString as He, createApp as je } from "vue";
|
|
2
|
+
const Qe = (N, J) => {
|
|
3
|
+
const Q = N.__vccOpts || N;
|
|
4
|
+
for (const [nt, E] of J)
|
|
5
|
+
Q[nt] = E;
|
|
6
|
+
return Q;
|
|
7
7
|
}, Je = {
|
|
8
8
|
name: "MukButton"
|
|
9
9
|
}, Ke = /* @__PURE__ */ Object.assign(Je, {
|
|
@@ -17,11 +17,11 @@ const Qe = (B, J) => {
|
|
|
17
17
|
default: "default"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
return (J,
|
|
22
|
-
class:
|
|
20
|
+
setup(N) {
|
|
21
|
+
return (J, Q) => (Ce(), Me("button", {
|
|
22
|
+
class: Ie(["muk-btn", [N.size, N.type]])
|
|
23
23
|
}, [
|
|
24
|
-
|
|
24
|
+
Ge(J.$slots, "default", {}, void 0, !0)
|
|
25
25
|
], 2));
|
|
26
26
|
}
|
|
27
27
|
}), ti = /* @__PURE__ */ Qe(Ke, [["__scopeId", "data-v-0e6d93cd"]]);
|
|
@@ -150,14 +150,14 @@ class ei {
|
|
|
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 ii = { class: "mask js-mask" }, si = /* @__PURE__ */
|
|
153
|
+
const ii = { class: "mask js-mask" }, si = /* @__PURE__ */ Jt("div", { class: "mask__slice js-mask__slice" }, null, -1), ri = /* @__PURE__ */ Jt("div", { class: "mask__slice js-mask__slice" }, null, -1), ni = /* @__PURE__ */ Jt("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
|
-
}, hi = /* @__PURE__ */
|
|
157
|
-
/* @__PURE__ */
|
|
156
|
+
}, hi = /* @__PURE__ */ Jt("div", { class: "mask-line js-mask-line" }, [
|
|
157
|
+
/* @__PURE__ */ Jt("div", { class: "mask-line__inner js-mask-line" })
|
|
158
158
|
], -1), _i = {
|
|
159
159
|
name: "BimCutscenes"
|
|
160
|
-
}, ui = /* @__PURE__ */
|
|
160
|
+
}, ui = /* @__PURE__ */ Xe({
|
|
161
161
|
..._i,
|
|
162
162
|
props: {
|
|
163
163
|
text: {
|
|
@@ -165,23 +165,23 @@ const ii = { class: "mask js-mask" }, si = /* @__PURE__ */ oe("div", { class: "m
|
|
|
165
165
|
default: "CHBIM云平台"
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
|
-
setup(
|
|
169
|
-
const
|
|
170
|
-
|
|
168
|
+
setup(N, { expose: J }) {
|
|
169
|
+
const Q = Ae(null), nt = () => {
|
|
170
|
+
Q.value === null && (Q.value = new ei());
|
|
171
171
|
}, E = () => {
|
|
172
|
-
|
|
172
|
+
nt(), Q.value.continuation();
|
|
173
173
|
};
|
|
174
|
-
return
|
|
175
|
-
|
|
174
|
+
return Le(() => {
|
|
175
|
+
nt();
|
|
176
176
|
}), J({
|
|
177
177
|
continuation: E
|
|
178
|
-
}), (
|
|
178
|
+
}), (Y, $) => (Ce(), Me("div", ii, [
|
|
179
179
|
si,
|
|
180
180
|
ri,
|
|
181
181
|
ni,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
182
|
+
Jt("div", oi, [
|
|
183
|
+
Jt("figure", ai, [
|
|
184
|
+
Jt("p", li, He(N.text), 1)
|
|
185
185
|
]),
|
|
186
186
|
hi
|
|
187
187
|
])
|
|
@@ -206,8 +206,8 @@ 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(N, J, Q) {
|
|
210
|
+
var nt = function(v) {
|
|
211
211
|
var P, e = [], t = v.length;
|
|
212
212
|
for (P = 0; P !== t; e.push(v[P++]))
|
|
213
213
|
;
|
|
@@ -217,11 +217,11 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
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
|
-
},
|
|
221
|
-
|
|
222
|
-
},
|
|
223
|
-
|
|
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),
|
|
220
|
+
}, Y = function(v, P, e) {
|
|
221
|
+
Q.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 = Y.prototype.render;
|
|
222
|
+
}, $ = 1e-10, mt = Q._internals, O = mt.isSelector, M = mt.isArray, b = Y.prototype = Q.to({}, 0.1, {}), F = [];
|
|
223
|
+
Y.version = "2.0.2", b.constructor = Y, b.kill()._gc = !1, Y.killTweensOf = Y.killDelayedCallsTo = Q.killTweensOf, Y.getTweensOf = Q.getTweensOf, Y.lagSmoothing = Q.lagSmoothing, Y.ticker = Q.ticker, Y.render = Q.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), Q.prototype.invalidate.call(this);
|
|
225
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));
|
|
@@ -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 && Q._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 || _)
|
|
@@ -240,49 +240,49 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
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,
|
|
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 =
|
|
243
|
+
var t, _, n, g, p, T, S, D, R, Z = this._dirty ? this.totalDuration() : this._totalDuration, V = this._time, tt = this._totalTime, et = this._cycle, dt = this._duration, at = 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 = dt, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1), this._reversed || (t = !0, _ = "onComplete", e = e || this._timeline.autoRemoveChildren), dt === 0 && (this._initted || !this.vars.lazy || e) && (this._startTime === this._timeline._duration && (v = 0), (0 > at || 0 >= v && v >= -1e-7 || at === $ && this.data !== "isPause") && at !== v && (e = !0, at > $ && (_ = "onReverseComplete")), this._rawPrevTime = D = !P || v || at === v ? v : $)) : 1e-7 > v ? (this._totalTime = this._time = this._cycle = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (tt !== 0 || dt === 0 && at > 0) && (_ = "onReverseComplete", t = this._reversed), 0 > v && (this._active = !1, dt === 0 && (this._initted || !this.vars.lazy || e) && (at >= 0 && (e = !0), this._rawPrevTime = D = !P || v || at === v ? v : $)), this._initted || (e = !0)) : (this._totalTime = this._time = v, this._repeat !== 0 && (g = dt + 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 = dt - 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] || Q.defaultEase : Q.defaultEase)), this.ratio = R ? 1 - R.getRatio((dt - this._time) / dt) : 0)), this._time > dt ? this._time = dt : this._time < 0 && (this._time = 0)), this._easeType && !R ? (p = this._time / dt, T = this._easeType, S = this._easePower, (T === 1 || T === 3 && p >= 0.5) && (p = 1 - p), T === 3 && (p *= 2), S === 1 ? p *= p : S === 2 ? p *= p * p : S === 3 ? p *= p * p * p : S === 4 && (p *= p * p * p * p), T === 1 ? this.ratio = 1 - p : T === 2 ? this.ratio = p : this._time / dt < 0.5 ? this.ratio = p / 2 : this.ratio = 1 - p / 2) : R || (this.ratio = this._ease.getRatio(this._time / dt))), V === this._time && !e && et === this._cycle)
|
|
245
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 =
|
|
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 /
|
|
250
|
+
return this._time = V, this._totalTime = tt, this._rawPrevTime = at, this._cycle = et, mt.lazyTweens.push(this), void (this._lazy = [v, P]);
|
|
251
|
+
!this._time || t || R ? t && this._ease._calcEnd && !R && (this.ratio = this._ease.getRatio(this._time === 0 ? 0 : 1)) : this.ratio = this._ease.getRatio(this._time / dt);
|
|
252
252
|
}
|
|
253
|
-
for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !==
|
|
253
|
+
for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== V && 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 || dt === 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 !== 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(_),
|
|
256
|
-
},
|
|
257
|
-
return new
|
|
258
|
-
},
|
|
259
|
-
return e.runBackwards = !0, e.immediateRender = e.immediateRender != 0, new
|
|
260
|
-
},
|
|
261
|
-
return t.startAt = e, t.immediateRender = t.immediateRender != 0 && e.immediateRender != 0, new
|
|
262
|
-
},
|
|
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(_), dt === 0 && this._rawPrevTime === $ && D !== $ && (this._rawPrevTime = 0));
|
|
256
|
+
}, Y.to = function(v, P, e) {
|
|
257
|
+
return new Y(v, P, e);
|
|
258
|
+
}, Y.from = function(v, P, e) {
|
|
259
|
+
return e.runBackwards = !0, e.immediateRender = e.immediateRender != 0, new Y(v, P, e);
|
|
260
|
+
}, Y.fromTo = function(v, P, e, t) {
|
|
261
|
+
return t.startAt = e, t.immediateRender = t.immediateRender != 0 && e.immediateRender != 0, new Y(v, P, t);
|
|
262
|
+
}, Y.staggerTo = Y.allTo = function(v, P, e, t, _, n, g) {
|
|
263
263
|
t = t || 0;
|
|
264
|
-
var p, T,
|
|
264
|
+
var p, T, S, D, R = 0, Z = [], V = function() {
|
|
265
265
|
e.onComplete && e.onComplete.apply(e.onCompleteScope || this, arguments), _.apply(g || e.callbackScope || this, n || F);
|
|
266
266
|
}, tt = e.cycle, et = e.startAt && e.startAt.cycle;
|
|
267
|
-
for (M(v) || (typeof v == "string" && (v =
|
|
267
|
+
for (M(v) || (typeof v == "string" && (v = Q.selector(v) || v), O(v) && (v = nt(v))), v = v || [], 0 > t && (v = nt(v), v.reverse(), t *= -1), p = v.length - 1, S = 0; p >= S; S++) {
|
|
268
268
|
T = {};
|
|
269
269
|
for (D in e)
|
|
270
270
|
T[D] = e[D];
|
|
271
|
-
if (tt && (E(T, v,
|
|
271
|
+
if (tt && (E(T, v, S), T.duration != null && (P = T.duration, delete T.duration)), et) {
|
|
272
272
|
et = T.startAt = {};
|
|
273
273
|
for (D in e.startAt)
|
|
274
274
|
et[D] = e.startAt[D];
|
|
275
|
-
E(T.startAt, v,
|
|
275
|
+
E(T.startAt, v, S);
|
|
276
276
|
}
|
|
277
|
-
T.delay = R + (T.delay || 0),
|
|
277
|
+
T.delay = R + (T.delay || 0), S === p && _ && (T.onComplete = V), Z[S] = new Y(v[S], P, T), R += t;
|
|
278
278
|
}
|
|
279
279
|
return Z;
|
|
280
|
-
},
|
|
281
|
-
return e.runBackwards = !0, e.immediateRender = e.immediateRender != 0,
|
|
282
|
-
},
|
|
283
|
-
return t.startAt = e, t.immediateRender = t.immediateRender != 0 && e.immediateRender != 0,
|
|
284
|
-
},
|
|
285
|
-
return new
|
|
280
|
+
}, Y.staggerFrom = Y.allFrom = function(v, P, e, t, _, n, g) {
|
|
281
|
+
return e.runBackwards = !0, e.immediateRender = e.immediateRender != 0, Y.staggerTo(v, P, e, t, _, n, g);
|
|
282
|
+
}, Y.staggerFromTo = Y.allFromTo = function(v, P, e, t, _, n, g, p) {
|
|
283
|
+
return t.startAt = e, t.immediateRender = t.immediateRender != 0 && e.immediateRender != 0, Y.staggerTo(v, P, t, _, n, g, p);
|
|
284
|
+
}, Y.delayedCall = function(v, P, e, t, _) {
|
|
285
|
+
return new Y(P, 0, {
|
|
286
286
|
delay: v,
|
|
287
287
|
onComplete: P,
|
|
288
288
|
onCompleteParams: e,
|
|
@@ -293,29 +293,29 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
293
293
|
useFrames: _,
|
|
294
294
|
overwrite: 0
|
|
295
295
|
});
|
|
296
|
-
},
|
|
297
|
-
return new
|
|
298
|
-
},
|
|
299
|
-
return
|
|
296
|
+
}, Y.set = function(v, P) {
|
|
297
|
+
return new Y(v, 0, P);
|
|
298
|
+
}, Y.isTweening = function(v) {
|
|
299
|
+
return Q.getTweensOf(v, !0).length > 0;
|
|
300
300
|
};
|
|
301
|
-
var
|
|
301
|
+
var G = function(v, P) {
|
|
302
302
|
for (var e = [], t = 0, _ = v._first; _; )
|
|
303
|
-
_ instanceof
|
|
303
|
+
_ instanceof Q ? e[t++] = _ : (P && (e[t++] = _), e = e.concat(G(_, P)), t = e.length), _ = _._next;
|
|
304
304
|
return e;
|
|
305
|
-
}, st =
|
|
306
|
-
return
|
|
305
|
+
}, st = Y.getAllTweens = function(v) {
|
|
306
|
+
return G(N._rootTimeline, v).concat(G(N._rootFramesTimeline, v));
|
|
307
307
|
};
|
|
308
|
-
|
|
308
|
+
Y.killAll = function(v, P, e, t) {
|
|
309
309
|
P == null && (P = !0), e == null && (e = !0);
|
|
310
|
-
var _, n, g, p = st(t != 0), T = p.length,
|
|
310
|
+
var _, n, g, p = st(t != 0), T = p.length, S = P && e && t;
|
|
311
311
|
for (g = 0; T > g; g++)
|
|
312
|
-
n = p[g], (
|
|
313
|
-
},
|
|
312
|
+
n = p[g], (S || n instanceof J || (_ = n.target === n.vars.onComplete) && e || P && !_) && (v ? n.totalTime(n._reversed ? 0 : n.totalDuration()) : n._enabled(!1, !1));
|
|
313
|
+
}, Y.killChildTweensOf = function(v, P) {
|
|
314
314
|
if (v != null) {
|
|
315
|
-
var e, t, _, n, g, p =
|
|
316
|
-
if (typeof v == "string" && (v =
|
|
315
|
+
var e, t, _, n, g, p = mt.tweenLookup;
|
|
316
|
+
if (typeof v == "string" && (v = Q.selector(v) || v), O(v) && (v = nt(v)), M(v))
|
|
317
317
|
for (n = v.length; --n > -1; )
|
|
318
|
-
|
|
318
|
+
Y.killChildTweensOf(v[n], P);
|
|
319
319
|
else {
|
|
320
320
|
e = [];
|
|
321
321
|
for (_ in p)
|
|
@@ -331,13 +331,13 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
331
331
|
for (var _, n, g = st(t), p = P && e && t, T = g.length; --T > -1; )
|
|
332
332
|
n = g[T], (p || n instanceof J || (_ = n.target === n.vars.onComplete) && e || P && !_) && n.paused(v);
|
|
333
333
|
};
|
|
334
|
-
return
|
|
334
|
+
return Y.pauseAll = function(v, P, e) {
|
|
335
335
|
L(!0, v, P, e);
|
|
336
|
-
},
|
|
336
|
+
}, Y.resumeAll = function(v, P, e) {
|
|
337
337
|
L(!1, v, P, e);
|
|
338
|
-
},
|
|
339
|
-
var P =
|
|
340
|
-
return arguments.length ? (v = v ||
|
|
338
|
+
}, Y.globalTimeScale = function(v) {
|
|
339
|
+
var P = N._rootTimeline, e = Q.ticker.time;
|
|
340
|
+
return arguments.length ? (v = v || $, P._startTime = e - (e - P._startTime) * P._timeScale / v, P = N._rootFramesTimeline, e = Q.ticker.frame, P._startTime = e - (e - P._startTime) * P._timeScale / v, P._timeScale = N._rootTimeline._timeScale = v, v) : P._timeScale;
|
|
341
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),
|
|
@@ -348,7 +348,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
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
350
|
}, b.duration = function(v) {
|
|
351
|
-
return arguments.length ?
|
|
351
|
+
return arguments.length ? N.prototype.duration.call(this, v) : this._duration;
|
|
352
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)
|
|
@@ -359,20 +359,20 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
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
|
+
}, Y;
|
|
363
363
|
},
|
|
364
364
|
!0
|
|
365
365
|
), Dt._gsDefine(
|
|
366
366
|
"TimelineLite",
|
|
367
367
|
["core.Animation", "core.SimpleTimeline", "TweenLite"],
|
|
368
|
-
function(
|
|
369
|
-
var
|
|
368
|
+
function(N, J, Q) {
|
|
369
|
+
var nt = function(e) {
|
|
370
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
|
-
t = n[_],
|
|
374
|
-
|
|
375
|
-
}, E = 1e-10,
|
|
373
|
+
t = n[_], O(t) && t.join("").indexOf("{self}") !== -1 && (n[_] = this._swapSelfInParams(t));
|
|
374
|
+
O(n.tweens) && this.add(n.tweens, 0, n.align, n.stagger);
|
|
375
|
+
}, E = 1e-10, Y = Q._internals, $ = nt._internals = {}, mt = Y.isSelector, O = Y.isArray, M = Y.lazyTweens, b = Y.lazyRender, F = Dt._gsDefine.globals, G = function(e) {
|
|
376
376
|
var t, _ = {};
|
|
377
377
|
for (t in e)
|
|
378
378
|
_[t] = e[t];
|
|
@@ -382,58 +382,58 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
382
382
|
for (n in p)
|
|
383
383
|
g = p[n], e[n] = typeof g == "function" ? g(_, t[_]) : g[_ % g.length];
|
|
384
384
|
delete e.cycle;
|
|
385
|
-
}, L =
|
|
385
|
+
}, L = $.pauseCallback = function() {
|
|
386
386
|
}, v = function(e) {
|
|
387
387
|
var t, _ = [], n = e.length;
|
|
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 = nt.prototype = new J();
|
|
392
|
+
return nt.version = "2.0.2", P.constructor = nt, P.kill()._gc = P._forcingPlayhead = P._hasPause = !1, P.to = function(e, t, _, n) {
|
|
393
|
+
var g = _.repeat && F.TweenMax || Q;
|
|
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 || Q).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 || Q;
|
|
399
399
|
return t ? this.add(p.fromTo(e, t, _, n), g) : this.set(e, n, g);
|
|
400
|
-
}, P.staggerTo = function(e, t, _, n, g, p, T,
|
|
401
|
-
var D, R, Z = new
|
|
400
|
+
}, P.staggerTo = function(e, t, _, n, g, p, T, S) {
|
|
401
|
+
var D, R, Z = new nt({
|
|
402
402
|
onComplete: p,
|
|
403
403
|
onCompleteParams: T,
|
|
404
|
-
callbackScope:
|
|
404
|
+
callbackScope: S,
|
|
405
405
|
smoothChildTiming: this.smoothChildTiming
|
|
406
|
-
}),
|
|
407
|
-
for (typeof e == "string" && (e =
|
|
408
|
-
D =
|
|
406
|
+
}), V = _.cycle;
|
|
407
|
+
for (typeof e == "string" && (e = Q.selector(e) || e), e = e || [], mt(e) && (e = v(e)), n = n || 0, 0 > n && (e = v(e), e.reverse(), n *= -1), R = 0; R < e.length; R++)
|
|
408
|
+
D = G(_), D.startAt && (D.startAt = G(D.startAt), D.startAt.cycle && st(D.startAt, e, R)), V && (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
|
-
}, P.staggerFrom = function(e, t, _, n, g, p, T,
|
|
411
|
-
return _.immediateRender = _.immediateRender != 0, _.runBackwards = !0, this.staggerTo(e, t, _, n, g, p, T,
|
|
412
|
-
}, P.staggerFromTo = function(e, t, _, n, g, p, T,
|
|
413
|
-
return n.startAt = _, n.immediateRender = n.immediateRender != 0 && _.immediateRender != 0, this.staggerTo(e, t, n, g, p, T,
|
|
410
|
+
}, P.staggerFrom = function(e, t, _, n, g, p, T, S) {
|
|
411
|
+
return _.immediateRender = _.immediateRender != 0, _.runBackwards = !0, this.staggerTo(e, t, _, n, g, p, T, S);
|
|
412
|
+
}, P.staggerFromTo = function(e, t, _, n, g, p, T, S, D) {
|
|
413
|
+
return n.startAt = _, n.immediateRender = n.immediateRender != 0 && _.immediateRender != 0, this.staggerTo(e, t, n, g, p, T, S, D);
|
|
414
414
|
}, P.call = function(e, t, _, n) {
|
|
415
|
-
return this.add(
|
|
415
|
+
return this.add(Q.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 Q(e, 0, t), _);
|
|
418
|
+
}, nt.exportRoot = function(e, t) {
|
|
419
419
|
e = e || {}, e.smoothChildTiming == null && (e.smoothChildTiming = !0);
|
|
420
|
-
var _, n, g, p, T = new
|
|
421
|
-
for (t == null && (t = !0),
|
|
422
|
-
p = g._next, t && g instanceof
|
|
423
|
-
return
|
|
420
|
+
var _, n, g, p, T = new nt(e), S = T._timeline;
|
|
421
|
+
for (t == null && (t = !0), S._remove(T, !0), T._startTime = 0, T._rawPrevTime = T._time = T._totalTime = S._time, g = S._first; g; )
|
|
422
|
+
p = g._next, t && g instanceof Q && g.target === g.vars.onComplete || (n = g._startTime - g._delay, 0 > n && (_ = 1), T.add(g, n)), g = p;
|
|
423
|
+
return S.add(T, 0), _ && T.totalDuration(), T;
|
|
424
424
|
}, P.add = function(e, t, _, n) {
|
|
425
|
-
var g, p, T,
|
|
426
|
-
if (typeof t != "number" && (t = this._parseTimeOrLabel(t, 0, !0, e)), !(e instanceof
|
|
427
|
-
if (e instanceof Array || e && e.push &&
|
|
425
|
+
var g, p, T, S, D, R;
|
|
426
|
+
if (typeof t != "number" && (t = this._parseTimeOrLabel(t, 0, !0, e)), !(e instanceof N)) {
|
|
427
|
+
if (e instanceof Array || e && e.push && O(e)) {
|
|
428
428
|
for (_ = _ || "normal", n = n || 0, g = t, p = e.length, T = 0; p > T; T++)
|
|
429
|
-
S
|
|
429
|
+
O(S = e[T]) && (S = new nt({ tweens: S })), this.add(S, g), typeof S != "string" && typeof S != "function" && (_ === "sequence" ? g = S._startTime + S.totalDuration() / S._timeScale : _ === "start" && (S._startTime -= S.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 = Q.delayedCall(0, e);
|
|
437
437
|
}
|
|
438
438
|
if (J.prototype.add.call(this, e, t), e._time && (g = Math.max(
|
|
439
439
|
0,
|
|
@@ -446,12 +446,12 @@ 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 N) {
|
|
450
450
|
this._remove(e, !1);
|
|
451
|
-
var t = e._timeline = e.vars.useFrames ?
|
|
451
|
+
var t = e._timeline = e.vars.useFrames ? N._rootFramesTimeline : N._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
|
-
if (e instanceof Array || e && e.push &&
|
|
454
|
+
if (e instanceof Array || e && e.push && O(e)) {
|
|
455
455
|
for (var _ = e.length; --_ > -1; )
|
|
456
456
|
this.remove(e[_]);
|
|
457
457
|
return this;
|
|
@@ -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 = Q.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 N && n.timeline === this)
|
|
482
482
|
this.remove(n);
|
|
483
|
-
else if (n && (n instanceof Array || n.push &&
|
|
483
|
+
else if (n && (n instanceof Array || n.push && O(n)))
|
|
484
484
|
for (p = n.length; --p > -1; )
|
|
485
|
-
n[p] instanceof
|
|
485
|
+
n[p] instanceof N && 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,17 +510,17 @@ 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,
|
|
514
|
-
if (Z !== this._time && (e += this._time - Z), e >=
|
|
515
|
-
this._totalTime = this._time =
|
|
513
|
+
var n, g, p, T, S, D, R, Z = this._time, V = this._dirty ? this.totalDuration() : this._totalDuration, tt = this._startTime, et = this._timeScale, dt = this._paused;
|
|
514
|
+
if (Z !== this._time && (e += this._time - Z), e >= V - 1e-7 && e >= 0)
|
|
515
|
+
this._totalTime = this._time = V, this._reversed || this._hasPausedChild() || (g = !0, T = "onComplete", S = !!this._timeline.autoRemoveChildren, this._duration === 0 && (0 >= e && e >= -1e-7 || this._rawPrevTime < 0 || this._rawPrevTime === E) && this._rawPrevTime !== e && this._first && (S = !0, this._rawPrevTime > E && (T = "onReverseComplete"))), this._rawPrevTime = this._duration || !t || e || this._rawPrevTime === e ? e : E, e = V + 1e-4;
|
|
516
516
|
else if (1e-7 > e)
|
|
517
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
|
-
this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (
|
|
518
|
+
this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (S = g = !0, T = "onReverseComplete") : this._rawPrevTime >= 0 && this._first && (S = !0), this._rawPrevTime = e;
|
|
519
519
|
else {
|
|
520
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
|
-
e = 0, this._initted || (
|
|
523
|
+
e = 0, this._initted || (S = !0);
|
|
524
524
|
}
|
|
525
525
|
else {
|
|
526
526
|
if (this._hasPause && !this._forcingPlayhead && !t) {
|
|
@@ -534,16 +534,16 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
534
534
|
}
|
|
535
535
|
this._totalTime = this._time = this._rawPrevTime = e;
|
|
536
536
|
}
|
|
537
|
-
if (this._time !== Z && this._first || _ ||
|
|
537
|
+
if (this._time !== Z && this._first || _ || S || D) {
|
|
538
538
|
if (this._initted || (this._initted = !0), this._active || !this._paused && this._time !== Z && e > 0 && (this._active = !0), Z === 0 && this.vars.onStart && (this._time === 0 && this._duration || t || this._callback("onStart")), R = this._time, R >= Z)
|
|
539
|
-
for (n = this._first; n && (p = n._next, R === this._time && (!this._paused ||
|
|
539
|
+
for (n = this._first; n && (p = n._next, R === this._time && (!this._paused || dt)); )
|
|
540
540
|
(n._active || n._startTime <= R && !n._paused && !n._gc) && (D === n && this.pause(), n._reversed ? n.render(
|
|
541
541
|
(n._dirty ? n.totalDuration() : n._totalDuration) - (e - n._startTime) * n._timeScale,
|
|
542
542
|
t,
|
|
543
543
|
_
|
|
544
544
|
) : n.render((e - n._startTime) * n._timeScale, t, _)), n = p;
|
|
545
545
|
else
|
|
546
|
-
for (n = this._last; n && (p = n._prev, R === this._time && (!this._paused ||
|
|
546
|
+
for (n = this._last; n && (p = n._prev, R === this._time && (!this._paused || dt)); ) {
|
|
547
547
|
if (n._active || n._startTime <= Z && !n._paused && !n._gc) {
|
|
548
548
|
if (D === n) {
|
|
549
549
|
for (D = n._prev; D && D.endTime() > this._time; )
|
|
@@ -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 && b(), this._callback("onUpdate"))), T && (this._gc || (tt === this._startTime || et !== this._timeScale) && (this._time === 0 ||
|
|
565
|
+
this._onUpdate && (t || (M.length && b(), this._callback("onUpdate"))), T && (this._gc || (tt === this._startTime || et !== this._timeScale) && (this._time === 0 || V >= 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 nt && 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 Q ? 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), _ = Q.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,7 +612,7 @@ 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 N.prototype.invalidate.call(this);
|
|
616
616
|
}, P._enabled = function(e, t) {
|
|
617
617
|
if (e === this._gc)
|
|
618
618
|
for (var _ = this._first; _; )
|
|
@@ -620,7 +620,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
620
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 = N.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,101 +638,101 @@ 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 N.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 === N._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
|
+
}, nt;
|
|
649
649
|
},
|
|
650
650
|
!0
|
|
651
651
|
), Dt._gsDefine(
|
|
652
652
|
"TimelineMax",
|
|
653
653
|
["TimelineLite", "TweenLite", "easing.Ease"],
|
|
654
|
-
function(
|
|
655
|
-
var
|
|
656
|
-
|
|
657
|
-
}, E = 1e-10,
|
|
658
|
-
return b.constructor =
|
|
659
|
-
return this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._uncache(!0),
|
|
660
|
-
}, b.addCallback = function(F,
|
|
661
|
-
return this.add(J.delayedCall(0, F, st, L),
|
|
662
|
-
}, b.removeCallback = function(F,
|
|
654
|
+
function(N, J, Q) {
|
|
655
|
+
var nt = function(F) {
|
|
656
|
+
N.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, Y = J._internals, $ = Y.lazyTweens, mt = Y.lazyRender, O = Dt._gsDefine.globals, M = new Q(null, null, 1, 0), b = nt.prototype = new N();
|
|
658
|
+
return b.constructor = nt, b.kill()._gc = !1, nt.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), N.prototype.invalidate.call(this);
|
|
660
|
+
}, b.addCallback = function(F, G, st, L) {
|
|
661
|
+
return this.add(J.delayedCall(0, F, st, L), G);
|
|
662
|
+
}, b.removeCallback = function(F, G) {
|
|
663
663
|
if (F)
|
|
664
|
-
if (
|
|
664
|
+
if (G == null)
|
|
665
665
|
this._kill(null, F);
|
|
666
666
|
else
|
|
667
|
-
for (var st = this.getTweensOf(F, !1), L = st.length, v = this._parseTimeOrLabel(
|
|
667
|
+
for (var st = this.getTweensOf(F, !1), L = st.length, v = this._parseTimeOrLabel(G); --L > -1; )
|
|
668
668
|
st[L]._startTime === v && st[L]._enabled(!1, !1);
|
|
669
669
|
return this;
|
|
670
670
|
}, b.removePause = function(F) {
|
|
671
|
-
return this.removeCallback(
|
|
672
|
-
}, b.tweenTo = function(F,
|
|
673
|
-
|
|
671
|
+
return this.removeCallback(N._internals.pauseCallback, F);
|
|
672
|
+
}, b.tweenTo = function(F, G) {
|
|
673
|
+
G = G || {};
|
|
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 =
|
|
680
|
-
for (L in
|
|
681
|
-
P[L] =
|
|
679
|
+
}, e = G.repeat && O.TweenMax || J;
|
|
680
|
+
for (L in G)
|
|
681
|
+
P[L] = G[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() {
|
|
683
683
|
v.target.paused(!0), v.vars.time === v.target.time() || st !== v.duration() || v.isFromTo || v.duration(
|
|
684
684
|
Math.abs(v.vars.time - v.target.time()) / v.target._timeScale
|
|
685
|
-
).render(v.time(), !0, !0),
|
|
686
|
-
|
|
687
|
-
|
|
685
|
+
).render(v.time(), !0, !0), G.onStart && G.onStart.apply(
|
|
686
|
+
G.onStartScope || G.callbackScope || v,
|
|
687
|
+
G.onStartParams || []
|
|
688
688
|
);
|
|
689
689
|
}, v;
|
|
690
|
-
}, b.tweenFromTo = function(F,
|
|
690
|
+
}, b.tweenFromTo = function(F, G, st) {
|
|
691
691
|
st = st || {}, F = this._parseTimeOrLabel(F), st.startAt = {
|
|
692
692
|
onComplete: this.seek,
|
|
693
693
|
onCompleteParams: [F],
|
|
694
694
|
callbackScope: this
|
|
695
695
|
}, st.immediateRender = st.immediateRender !== !1;
|
|
696
|
-
var L = this.tweenTo(
|
|
696
|
+
var L = this.tweenTo(G, st);
|
|
697
697
|
return L.isFromTo = 1, L.duration(Math.abs(L.vars.time - F) / this._timeScale || 1e-3);
|
|
698
|
-
}, b.render = function(F,
|
|
698
|
+
}, b.render = function(F, G, 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,
|
|
700
|
+
var L, v, P, e, t, _, n, g, p = this._time, T = this._dirty ? this.totalDuration() : this._totalDuration, S = this._duration, D = this._totalTime, R = this._startTime, Z = this._timeScale, V = 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 >
|
|
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 > V || V === E) && V !== F && this._first && (t = !0, V > E && (e = "onReverseComplete"))), this._rawPrevTime = this._duration || !G || F || this._rawPrevTime === F ? F : E, this._yoyo && 1 & this._cycle ? this._time = F = 0 : (this._time = S, F = S + 1e-4);
|
|
703
703
|
else if (1e-7 > F)
|
|
704
|
-
if (this._locked || (this._totalTime = this._cycle = 0), this._time = 0, (p !== 0 ||
|
|
705
|
-
this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (t = v = !0, e = "onReverseComplete") :
|
|
704
|
+
if (this._locked || (this._totalTime = this._cycle = 0), this._time = 0, (p !== 0 || S === 0 && V !== E && (V > 0 || 0 > F && V >= 0) && !this._locked) && (e = "onReverseComplete", v = this._reversed), 0 > F)
|
|
705
|
+
this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (t = v = !0, e = "onReverseComplete") : V >= 0 && this._first && (t = !0), this._rawPrevTime = F;
|
|
706
706
|
else {
|
|
707
|
-
if (this._rawPrevTime =
|
|
707
|
+
if (this._rawPrevTime = S || !G || 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
|
-
else if (
|
|
712
|
+
else if (S === 0 && 0 > V && (t = !0), this._time = this._rawPrevTime = F, this._locked || (this._totalTime = F, this._repeat !== 0 && (_ = S + 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 = S - this._time), this._time > S ? (this._time = S, F = S + 1e-4) : this._time < 0 ? this._time = F = 0 : F = this._time)), this._hasPause && !this._forcingPlayhead && !G) {
|
|
713
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
|
|
717
717
|
for (L = this._last; L && L._startTime >= F && !n; )
|
|
718
718
|
L._duration || L.data === "isPause" && L._rawPrevTime > 0 && (n = L), L = L._prev;
|
|
719
|
-
n && n._startTime <
|
|
719
|
+
n && n._startTime < S && (this._time = F = n._startTime, this._totalTime = F + this._cycle * (this._totalDuration + this._repeatDelay));
|
|
720
720
|
}
|
|
721
721
|
if (this._cycle !== et && !this._locked) {
|
|
722
|
-
var
|
|
723
|
-
if (this._totalTime = et *
|
|
722
|
+
var dt = this._yoyo && (1 & et) !== 0, at = dt === (this._yoyo && (1 & this._cycle) !== 0), K = this._totalTime, gt = this._cycle, Yt = this._rawPrevTime, yt = this._time;
|
|
723
|
+
if (this._totalTime = et * S, this._cycle < et ? dt = !dt : this._totalTime += S, this._time = p, this._rawPrevTime = S === 0 ? V - 1e-4 : V, this._cycle = et, this._locked = !0, p = dt ? 0 : S, this.render(p, G, S === 0), G || this._gc || this.vars.onRepeat && (this._cycle = gt, this._locked = !1, this._callback("onRepeat")), p !== this._time || (at && (this._cycle = et, this._locked = !0, p = dt ? S + 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 = K, this._cycle = gt, this._rawPrevTime = Yt;
|
|
726
726
|
}
|
|
727
727
|
if (!(this._time !== p && this._first || st || t || n))
|
|
728
|
-
return void (D !== this._totalTime && this._onUpdate && (
|
|
729
|
-
if (this._initted || (this._initted = !0), this._active || !this._paused && this._totalTime !== D && F > 0 && (this._active = !0), D === 0 && this.vars.onStart && (this._totalTime === 0 && this._totalDuration ||
|
|
728
|
+
return void (D !== this._totalTime && this._onUpdate && (G || this._callback("onUpdate")));
|
|
729
|
+
if (this._initted || (this._initted = !0), this._active || !this._paused && this._totalTime !== D && F > 0 && (this._active = !0), D === 0 && this.vars.onStart && (this._totalTime === 0 && this._totalDuration || G || this._callback("onStart")), g = this._time, g >= p)
|
|
730
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
|
+
G,
|
|
734
734
|
st
|
|
735
|
-
) : L.render((F - L._startTime) * L._timeScale,
|
|
735
|
+
) : L.render((F - L._startTime) * L._timeScale, G, st)), L = P;
|
|
736
736
|
else
|
|
737
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) {
|
|
@@ -740,59 +740,59 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
740
740
|
for (n = L._prev; n && n.endTime() > this._time; )
|
|
741
741
|
n.render(
|
|
742
742
|
n._reversed ? n.totalDuration() - (F - n._startTime) * n._timeScale : (F - n._startTime) * n._timeScale,
|
|
743
|
-
|
|
743
|
+
G,
|
|
744
744
|
st
|
|
745
745
|
), n = n._prev;
|
|
746
746
|
n = null, this.pause();
|
|
747
747
|
}
|
|
748
748
|
L._reversed ? L.render(
|
|
749
749
|
(L._dirty ? L.totalDuration() : L._totalDuration) - (F - L._startTime) * L._timeScale,
|
|
750
|
-
|
|
750
|
+
G,
|
|
751
751
|
st
|
|
752
|
-
) : L.render((F - L._startTime) * L._timeScale,
|
|
752
|
+
) : L.render((F - L._startTime) * L._timeScale, G, st);
|
|
753
753
|
}
|
|
754
754
|
L = P;
|
|
755
755
|
}
|
|
756
|
-
this._onUpdate && (
|
|
757
|
-
}, b.getActive = function(F,
|
|
758
|
-
F == null && (F = !0),
|
|
759
|
-
var L, v, P = [], e = this.getChildren(F,
|
|
756
|
+
this._onUpdate && (G || ($.length && mt(), this._callback("onUpdate"))), e && (this._locked || this._gc || (R === this._startTime || Z !== this._timeScale) && (this._time === 0 || T >= this.totalDuration()) && (v && ($.length && mt(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !G && this.vars[e] && this._callback(e)));
|
|
757
|
+
}, b.getActive = function(F, G, st) {
|
|
758
|
+
F == null && (F = !0), G == null && (G = !0), st == null && (st = !1);
|
|
759
|
+
var L, v, P = [], e = this.getChildren(F, G, 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
|
-
var
|
|
766
|
-
for (
|
|
767
|
-
if (st[
|
|
768
|
-
return st[
|
|
765
|
+
var G, st = this.getLabelsArray(), L = st.length;
|
|
766
|
+
for (G = 0; L > G; G++)
|
|
767
|
+
if (st[G].time > F)
|
|
768
|
+
return st[G].name;
|
|
769
769
|
return null;
|
|
770
770
|
}, b.getLabelBefore = function(F) {
|
|
771
771
|
F == null && (F = this._time);
|
|
772
|
-
for (var
|
|
773
|
-
if (
|
|
774
|
-
return
|
|
772
|
+
for (var G = this.getLabelsArray(), st = G.length; --st > -1; )
|
|
773
|
+
if (G[st].time < F)
|
|
774
|
+
return G[st].name;
|
|
775
775
|
return null;
|
|
776
776
|
}, b.getLabelsArray = function() {
|
|
777
|
-
var F,
|
|
777
|
+
var F, G = [], st = 0;
|
|
778
778
|
for (F in this._labels)
|
|
779
|
-
|
|
780
|
-
return
|
|
779
|
+
G[st++] = { time: this._labels[F], name: F };
|
|
780
|
+
return G.sort(function(L, v) {
|
|
781
781
|
return L.time - v.time;
|
|
782
|
-
}),
|
|
782
|
+
}), G;
|
|
783
783
|
}, b.invalidate = function() {
|
|
784
|
-
return this._locked = !1,
|
|
785
|
-
}, b.progress = function(F,
|
|
784
|
+
return this._locked = !1, N.prototype.invalidate.call(this);
|
|
785
|
+
}, b.progress = function(F, G) {
|
|
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
|
+
G
|
|
789
789
|
) : this._time / this.duration() || 0;
|
|
790
|
-
}, b.totalProgress = function(F,
|
|
791
|
-
return arguments.length ? this.totalTime(this.totalDuration() * F,
|
|
790
|
+
}, b.totalProgress = function(F, G) {
|
|
791
|
+
return arguments.length ? this.totalTime(this.totalDuration() * F, G) : this._totalTime / this.totalDuration() || 0;
|
|
792
792
|
}, b.totalDuration = function(F) {
|
|
793
|
-
return arguments.length ? this._repeat !== -1 && F ? this.timeScale(this.totalDuration() / F) : this : (this._dirty && (
|
|
794
|
-
}, b.time = function(F,
|
|
795
|
-
return arguments.length ? (this._dirty && this.totalDuration(), F > this._duration && (F = this._duration), this._yoyo && 1 & this._cycle ? F = this._duration - F + this._cycle * (this._duration + this._repeatDelay) : this._repeat !== 0 && (F += this._cycle * (this._duration + this._repeatDelay)), this.totalTime(F,
|
|
793
|
+
return arguments.length ? this._repeat !== -1 && F ? this.timeScale(this.totalDuration() / F) : this : (this._dirty && (N.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, G) {
|
|
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, G)) : 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) {
|
|
@@ -801,85 +801,85 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
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
|
+
}, nt;
|
|
805
805
|
},
|
|
806
806
|
!0
|
|
807
807
|
), function() {
|
|
808
|
-
var
|
|
808
|
+
var N = 180 / Math.PI, J = [], Q = [], nt = [], E = {}, Y = Dt._gsDefine.globals, $ = 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
|
-
},
|
|
811
|
-
var g = { a: e }, p = {}, T = {},
|
|
812
|
-
return g.b = D + (e - D) / 4, p.b =
|
|
810
|
+
}, mt = ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,", O = function(e, t, _, n) {
|
|
811
|
+
var g = { a: e }, p = {}, T = {}, S = { c: n }, D = (e + t) / 2, R = (t + _) / 2, Z = (_ + n) / 2, V = (D + R) / 2, tt = (R + Z) / 2, et = (tt - V) / 8;
|
|
812
|
+
return g.b = D + (e - D) / 4, p.b = V + et, g.c = p.a = (g.b + p.b) / 2, p.c = T.a = (V + tt) / 2, T.b = tt - et, S.b = Z + (n - Z) / 4, T.c = S.a = (T.b + S.b) / 2, [g, p, T, S];
|
|
813
813
|
}, M = function(e, t, _, n, g) {
|
|
814
|
-
var p, T,
|
|
814
|
+
var p, T, S, D, R, Z, V, tt, et, dt, at, K, 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,
|
|
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, _ && (
|
|
816
|
+
R = e[yt], T = R.a, S = R.d, D = e[yt + 1].d, g ? (at = J[p], K = Q[p], gt = (K + at) * t * 0.25 / (n ? 0.5 : nt[p] || 0.5), Z = S - (S - T) * (n ? 0.5 * t : at !== 0 ? gt / at : 0), V = S + (D - S) * (n ? 0.5 * t : K !== 0 ? gt / K : 0), tt = S - (Z + ((V - Z) * (3 * at / (at + K) + 0.5) / 4 || 0))) : (Z = S - (S - T) * t * 0.5, V = S + (D - S) * t * 0.5, tt = S - (Z + V) / 2), Z += tt, V += tt, R.c = et = Z, p !== 0 ? R.b = At : R.b = At = R.a + 0.6 * (R.c - R.a), R.da = S - T, R.ca = et - T, R.ba = At - T, _ ? (dt = O(T, At, et, S), e.splice(yt, 1, dt[0], dt[1], dt[2], dt[3]), yt += 4) : yt++, At = V;
|
|
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, _ && (dt = O(R.a, At, R.c, R.d), e.splice(yt, 1, dt[0], dt[1], dt[2], dt[3]));
|
|
818
818
|
}, b = function(e, t, _, n) {
|
|
819
|
-
var g, p, T,
|
|
819
|
+
var g, p, T, S, D, R, Z = [];
|
|
820
820
|
if (n)
|
|
821
821
|
for (e = [n].concat(e), p = e.length; --p > -1; )
|
|
822
822
|
typeof (R = e[p][t]) == "string" && R.charAt(1) === "=" && (e[p][t] = n[t] + Number(R.charAt(0) + R.substr(2)));
|
|
823
823
|
if (g = e.length - 2, 0 > g)
|
|
824
|
-
return Z[0] = new
|
|
824
|
+
return Z[0] = new $(e[0][t], 0, 0, e[0][t]), Z;
|
|
825
825
|
for (p = 0; g > p; p++)
|
|
826
|
-
T = e[p][t],
|
|
827
|
-
return Z[p] = new
|
|
826
|
+
T = e[p][t], S = e[p + 1][t], Z[p] = new $(T, 0, 0, S), _ && (D = e[p + 2][t], J[p] = (J[p] || 0) + (S - T) * (S - T), Q[p] = (Q[p] || 0) + (D - S) * (D - S));
|
|
827
|
+
return Z[p] = new $(e[p][t], 0, 0, e[p + 1][t]), Z;
|
|
828
828
|
}, F = function(e, t, _, n, g, p) {
|
|
829
|
-
var T,
|
|
830
|
-
g = typeof g == "string" ? "," + g + "," :
|
|
831
|
-
for (
|
|
832
|
-
|
|
829
|
+
var T, S, D, R, Z, V, tt, et, dt = {}, at = [], K = p || e[0];
|
|
830
|
+
g = typeof g == "string" ? "," + g + "," : mt, t == null && (t = 1);
|
|
831
|
+
for (S in e[0])
|
|
832
|
+
at.push(S);
|
|
833
833
|
if (e.length > 1) {
|
|
834
|
-
for (et = e[e.length - 1], tt = !0, T =
|
|
835
|
-
if (
|
|
834
|
+
for (et = e[e.length - 1], tt = !0, T = at.length; --T > -1; )
|
|
835
|
+
if (S = at[T], Math.abs(K[S] - et[S]) > 0.05) {
|
|
836
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 (J.length =
|
|
842
|
-
|
|
841
|
+
for (J.length = Q.length = nt.length = 0, T = at.length; --T > -1; )
|
|
842
|
+
S = at[T], E[S] = g.indexOf("," + S + ",") !== -1, dt[S] = b(e, S, E[S], p);
|
|
843
843
|
for (T = J.length; --T > -1; )
|
|
844
|
-
J[T] = Math.sqrt(J[T]),
|
|
844
|
+
J[T] = Math.sqrt(J[T]), Q[T] = Math.sqrt(Q[T]);
|
|
845
845
|
if (!n) {
|
|
846
|
-
for (T = ot.length; --T > -1; )
|
|
847
|
-
if (E[O])
|
|
848
|
-
for (D = mt[ot[T]], U = D.length - 1, R = 0; U > R; R++)
|
|
849
|
-
Z = D[R + 1].da / K[R] + D[R].da / J[R] || 0, at[R] = (at[R] || 0) + Z * Z;
|
|
850
846
|
for (T = at.length; --T > -1; )
|
|
851
|
-
|
|
847
|
+
if (E[S])
|
|
848
|
+
for (D = dt[at[T]], V = D.length - 1, R = 0; V > R; R++)
|
|
849
|
+
Z = D[R + 1].da / Q[R] + D[R].da / J[R] || 0, nt[R] = (nt[R] || 0) + Z * Z;
|
|
850
|
+
for (T = nt.length; --T > -1; )
|
|
851
|
+
nt[T] = Math.sqrt(nt[T]);
|
|
852
852
|
}
|
|
853
|
-
for (T =
|
|
854
|
-
|
|
855
|
-
return
|
|
856
|
-
},
|
|
853
|
+
for (T = at.length, R = _ ? 4 : 1; --T > -1; )
|
|
854
|
+
S = at[T], D = dt[S], M(D, t, _, n, E[S]), tt && (D.splice(0, R), D.splice(D.length - R, R));
|
|
855
|
+
return dt;
|
|
856
|
+
}, G = function(e, t, _) {
|
|
857
857
|
t = t || "soft";
|
|
858
|
-
var n, g, p, T,
|
|
859
|
-
if (
|
|
858
|
+
var n, g, p, T, S, D, R, Z, V, tt, et, dt = {}, at = t === "cubic" ? 3 : 2, K = t === "soft", gt = [];
|
|
859
|
+
if (K && _ && (e = [_].concat(e)), e == null || e.length < at + 1)
|
|
860
860
|
throw "invalid Bezier data";
|
|
861
|
-
for (
|
|
862
|
-
gt.push(
|
|
861
|
+
for (V in e[0])
|
|
862
|
+
gt.push(V);
|
|
863
863
|
for (D = gt.length; --D > -1; ) {
|
|
864
|
-
for (
|
|
865
|
-
n = _ == null ? e[R][
|
|
866
|
-
for (Z = tt -
|
|
867
|
-
n =
|
|
868
|
-
|
|
864
|
+
for (V = gt[D], dt[V] = S = [], tt = 0, Z = e.length, R = 0; Z > R; R++)
|
|
865
|
+
n = _ == null ? e[R][V] : typeof (et = e[R][V]) == "string" && et.charAt(1) === "=" ? _[V] + Number(et.charAt(0) + et.substr(2)) : Number(et), K && R > 1 && Z - 1 > R && (S[tt++] = (n + S[tt - 2]) / 2), S[tt++] = n;
|
|
866
|
+
for (Z = tt - at + 1, tt = 0, R = 0; Z > R; R += at)
|
|
867
|
+
n = S[R], g = S[R + 1], p = S[R + 2], T = at === 2 ? 0 : S[R + 3], S[tt++] = et = at === 3 ? new $(n, g, p, T) : new $(n, (2 * g + n) / 3, (2 * g + p) / 3, p);
|
|
868
|
+
S.length = tt;
|
|
869
869
|
}
|
|
870
|
-
return
|
|
870
|
+
return dt;
|
|
871
871
|
}, st = function(e, t, _) {
|
|
872
|
-
for (var n, g, p, T,
|
|
873
|
-
for (tt = e[
|
|
874
|
-
R =
|
|
872
|
+
for (var n, g, p, T, S, D, R, Z, V, tt, et, dt = 1 / _, at = e.length; --at > -1; )
|
|
873
|
+
for (tt = e[at], p = tt.a, T = tt.d - p, S = tt.c - p, D = tt.b - p, n = g = 0, Z = 1; _ >= Z; Z++)
|
|
874
|
+
R = dt * Z, V = 1 - R, n = g - (g = (R * R * T + 3 * V * (R * S + V * D)) * R), et = at * _ + 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 = [],
|
|
877
|
+
var _, n, g, p, T = [], S = [], D = 0, R = 0, Z = t - 1, V = [], 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, tt[p] = D, p === Z && (R += D, p = n / t >> 0,
|
|
882
|
-
return { length: R, lengths:
|
|
881
|
+
D += Math.sqrt(T[n]), p = n % t, tt[p] = D, p === Z && (R += D, p = n / t >> 0, V[p] = tt, S[p] = R, D = 0, tt = []);
|
|
882
|
+
return { length: R, lengths: S, segments: V };
|
|
883
883
|
}, v = Dt._gsDefine.plugin({
|
|
884
884
|
propName: "bezier",
|
|
885
885
|
priority: -1,
|
|
@@ -888,36 +888,36 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
888
888
|
global: !0,
|
|
889
889
|
init: function(e, t, _) {
|
|
890
890
|
this._target = e, t instanceof Array && (t = { values: t }), this._func = {}, this._mod = {}, this._props = [], this._timeRes = t.timeResolution == null ? 6 : parseInt(t.timeResolution, 10);
|
|
891
|
-
var n, g, p, T,
|
|
892
|
-
this._autoRotate =
|
|
891
|
+
var n, g, p, T, S, D = t.values || [], R = {}, Z = D[0], V = t.autoRotate || _.vars.orientToBezier;
|
|
892
|
+
this._autoRotate = V ? V instanceof Array ? V : [["x", "y", "rotation", V === !0 ? 0 : Number(V) || 0]] : null;
|
|
893
893
|
for (n in Z)
|
|
894
894
|
this._props.push(n);
|
|
895
895
|
for (p = this._props.length; --p > -1; )
|
|
896
|
-
n = this._props[p], this._overwriteProps.push(n), g = this._func[n] = typeof e[n] == "function", R[n] = g ? e[n.indexOf("set") || typeof e["get" + n.substr(3)] != "function" ? n : "get" + n.substr(3)]() : parseFloat(e[n]),
|
|
896
|
+
n = this._props[p], this._overwriteProps.push(n), g = this._func[n] = typeof e[n] == "function", R[n] = g ? e[n.indexOf("set") || typeof e["get" + n.substr(3)] != "function" ? n : "get" + n.substr(3)]() : parseFloat(e[n]), S || R[n] !== D[0][n] && (S = R);
|
|
897
897
|
if (this._beziers = t.type !== "cubic" && t.type !== "quadratic" && t.type !== "soft" ? F(
|
|
898
898
|
D,
|
|
899
899
|
isNaN(t.curviness) ? 1 : t.curviness,
|
|
900
900
|
!1,
|
|
901
901
|
t.type === "thruBasic",
|
|
902
902
|
t.correlate,
|
|
903
|
-
|
|
904
|
-
) :
|
|
903
|
+
S
|
|
904
|
+
) : G(D, t.type, R), this._segCount = this._beziers[n].length, this._timeRes) {
|
|
905
905
|
var tt = L(this._beziers, this._timeRes);
|
|
906
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
|
-
if (
|
|
909
|
-
for (this._initialRotations = [],
|
|
908
|
+
if (V = this._autoRotate)
|
|
909
|
+
for (this._initialRotations = [], V[0] instanceof Array || (this._autoRotate = V = [V]), p = V.length; --p > -1; ) {
|
|
910
910
|
for (T = 0; 3 > T; T++)
|
|
911
|
-
n =
|
|
912
|
-
n =
|
|
911
|
+
n = V[p][T], this._func[n] = typeof e[n] == "function" ? e[n.indexOf("set") || typeof e["get" + n.substr(3)] != "function" ? n : "get" + n.substr(3)] : !1;
|
|
912
|
+
n = V[p][2], this._initialRotations[p] = (this._func[n] ? this._func[n].call(this._target) : this._target[n]) || 0, this._overwriteProps.push(n);
|
|
913
913
|
}
|
|
914
914
|
return this._startRatio = _.vars.runBackwards ? 1 : 0, !0;
|
|
915
915
|
},
|
|
916
916
|
set: function(e) {
|
|
917
|
-
var t, _, n, g, p, T,
|
|
917
|
+
var t, _, n, g, p, T, S, D, R, Z, V = this._segCount, tt = this._func, et = this._target, dt = e !== this._startRatio;
|
|
918
918
|
if (this._timeRes) {
|
|
919
|
-
if (R = this._lengths, Z = this._curSeg, e *= this._length, n = this._li, e > this._l2 &&
|
|
920
|
-
for (D =
|
|
919
|
+
if (R = this._lengths, Z = this._curSeg, e *= this._length, n = this._li, e > this._l2 && V - 1 > n) {
|
|
920
|
+
for (D = V - 1; D > n && (this._l2 = R[++n]) <= e; )
|
|
921
921
|
;
|
|
922
922
|
this._l1 = R[n - 1], this._li = n, this._curSeg = Z = this._segments[n], this._s2 = Z[this._s1 = this._si = 0];
|
|
923
923
|
} else if (e < this._l1 && n > 0) {
|
|
@@ -936,33 +936,33 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
936
936
|
}
|
|
937
937
|
T = (n + (e - this._s1) / (this._s2 - this._s1)) * this._prec || 0;
|
|
938
938
|
} else
|
|
939
|
-
t = 0 > e ? 0 : e >= 1 ?
|
|
939
|
+
t = 0 > e ? 0 : e >= 1 ? V - 1 : V * e >> 0, T = (e - t * (1 / V)) * V;
|
|
940
940
|
for (_ = 1 - T, n = this._props.length; --n > -1; )
|
|
941
|
-
g = this._props[n], p = this._beziers[g][t],
|
|
941
|
+
g = this._props[n], p = this._beziers[g][t], S = (T * T * p.da + 3 * _ * (T * p.ca + _ * p.ba)) * T + p.a, this._mod[g] && (S = this._mod[g](S, et)), tt[g] ? et[g](S) : et[g] = S;
|
|
942
942
|
if (this._autoRotate) {
|
|
943
|
-
var
|
|
944
|
-
for (n =
|
|
945
|
-
g =
|
|
943
|
+
var at, K, gt, Yt, yt, At, Kt, te = this._autoRotate;
|
|
944
|
+
for (n = te.length; --n > -1; )
|
|
945
|
+
g = te[n][2], At = te[n][3] || 0, Kt = te[n][4] === !0 ? 1 : N, p = this._beziers[te[n][0]], at = this._beziers[te[n][1]], p && at && (p = p[t], at = at[t], K = p.a + (p.b - p.a) * T, Yt = p.b + (p.c - p.b) * T, K += (Yt - K) * T, Yt += (p.c + (p.d - p.c) * T - Yt) * T, gt = at.a + (at.b - at.a) * T, yt = at.b + (at.c - at.b) * T, gt += (yt - gt) * T, yt += (at.c + (at.d - at.c) * T - yt) * T, S = dt ? Math.atan2(yt - gt, Yt - K) * Kt + At : this._initialRotations[n], this._mod[g] && (S = this._mod[g](S, et)), tt[g] ? et[g](S) : et[g] = S);
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
}), P = v.prototype;
|
|
949
|
-
v.bezierThrough = F, v.cubicToQuadratic =
|
|
950
|
-
return new
|
|
949
|
+
v.bezierThrough = F, v.cubicToQuadratic = O, v._autoCSS = !0, v.quadraticToCubic = function(e, t, _) {
|
|
950
|
+
return new $(e, (2 * t + e) / 3, (2 * t + _) / 3, _);
|
|
951
951
|
}, v._cssRegister = function() {
|
|
952
|
-
var e =
|
|
952
|
+
var e = Y.CSSPlugin;
|
|
953
953
|
if (e) {
|
|
954
954
|
var t = e._internals, _ = t._parseToProxy, n = t._setPluginRatio, g = t.CSSPropTween;
|
|
955
955
|
t._registerComplexSpecialProp("bezier", {
|
|
956
|
-
parser: function(p, T,
|
|
956
|
+
parser: function(p, T, S, D, R, Z) {
|
|
957
957
|
T instanceof Array && (T = { values: T }), Z = new v();
|
|
958
|
-
var
|
|
959
|
-
if (0 >
|
|
958
|
+
var V, tt, et, dt = T.values, at = dt.length - 1, K = [], gt = {};
|
|
959
|
+
if (0 > at)
|
|
960
960
|
return R;
|
|
961
|
-
for (
|
|
962
|
-
et = _(p,
|
|
961
|
+
for (V = 0; at >= V; V++)
|
|
962
|
+
et = _(p, dt[V], D, R, Z, at !== V), K[V] = et.end;
|
|
963
963
|
for (tt in T)
|
|
964
964
|
gt[tt] = T[tt];
|
|
965
|
-
return gt.values =
|
|
965
|
+
return gt.values = K, 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 || (V = gt.autoRotate === !0 ? 0 : Number(gt.autoRotate), gt.autoRotate = et.end.left != null ? [["left", "top", "rotation", V, !1]] : et.end.x != null ? [["x", "y", "rotation", V, !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,11 +983,11 @@ 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
|
-
},
|
|
990
|
-
M.constructor =
|
|
986
|
+
function(N, J) {
|
|
987
|
+
var Q, nt, E, Y, $ = function() {
|
|
988
|
+
N.call(this, "css"), this._overwriteProps.length = 0, this.setRatio = $.prototype.setRatio;
|
|
989
|
+
}, mt = Dt._gsDefine.globals, O = {}, M = $.prototype = new N("css");
|
|
990
|
+
M.constructor = $, $.version = "2.0.2", $.API = 2, $.defaultTransformPerspective = 0, $.defaultSkewType = "compensated", $.defaultSmoothOrigin = !0, M = "px", $.suffixMap = {
|
|
991
991
|
top: M,
|
|
992
992
|
right: M,
|
|
993
993
|
bottom: M,
|
|
@@ -1000,42 +1000,42 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1000
1000
|
perspective: M,
|
|
1001
1001
|
lineHeight: ""
|
|
1002
1002
|
};
|
|
1003
|
-
var b, F,
|
|
1003
|
+
var b, F, G, 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, S = /opacity:([^;]*)/i, D = /alpha\(opacity *=.+?\)/i, R = /^(rgb|hsl)/, Z = /([A-Z])/g, V = /-([a-z])/gi, tt = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi, et = function(i, o) {
|
|
1004
1004
|
return o.toUpperCase();
|
|
1005
|
-
},
|
|
1005
|
+
}, dt = /(?:Left|Right|Width)/i, at = /(M11|M12|M21|M22)=[\d\-\.e]+/gi, K = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i, gt = /,(?=[^\)]*(?:\(|$))/gi, Yt = /[\s,\(]/i, yt = Math.PI / 180, At = 180 / Math.PI, Kt = {}, te = { style: {} }, bt = Dt.document || {
|
|
1006
1006
|
createElement: function() {
|
|
1007
|
-
return
|
|
1007
|
+
return te;
|
|
1008
1008
|
}
|
|
1009
1009
|
}, ae = function(i, o) {
|
|
1010
1010
|
return bt.createElementNS ? bt.createElementNS(o || "http://www.w3.org/1999/xhtml", i) : bt.createElement(i);
|
|
1011
|
-
},
|
|
1011
|
+
}, $t = ae("div"), le = ae("img"), Et = $._internals = { _specialProps: O }, zt = (Dt.navigator || {}).userAgent || "", ie = function() {
|
|
1012
1012
|
var i = zt.indexOf("Android"), o = ae("a");
|
|
1013
|
-
return
|
|
1013
|
+
return G = zt.indexOf("Safari") !== -1 && zt.indexOf("Chrome") === -1 && (i === -1 || parseFloat(zt.substr(i + 8, 2)) > 3), L = G && 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) {
|
|
1015
1015
|
return T.test(
|
|
1016
1016
|
typeof i == "string" ? i : (i.currentStyle ? i.currentStyle.filter : i.style.filter) || ""
|
|
1017
1017
|
) ? parseFloat(RegExp.$1) / 100 : 1;
|
|
1018
1018
|
}, ce = function(i) {
|
|
1019
1019
|
Dt.console && console.log(i);
|
|
1020
|
-
},
|
|
1021
|
-
o = o ||
|
|
1020
|
+
}, ee = "", Gt = "", re = function(i, o) {
|
|
1021
|
+
o = o || $t;
|
|
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
|
-
return a >= 0 ? (Gt = a === 3 ? "ms" : l[a],
|
|
1027
|
+
return a >= 0 ? (Gt = a === 3 ? "ms" : l[a], ee = "-" + Gt.toLowerCase() + "-", Gt + i) : null;
|
|
1028
1028
|
}, jt = (typeof window < "u" ? window : bt.defaultView || { getComputedStyle: function() {
|
|
1029
|
-
} }).getComputedStyle, wt =
|
|
1029
|
+
} }).getComputedStyle, wt = $.getStyle = function(i, o, l, a, s) {
|
|
1030
1030
|
var d;
|
|
1031
|
-
return
|
|
1031
|
+
return ie || o !== "opacity" ? (!a && i.style[o] ? d = i.style[o] : (l = l || jt(i)) ? d = l[o] || l.getPropertyValue(o) || l.getPropertyValue(o.replace(Z, "-$1").toLowerCase()) : i.currentStyle && (d = i.currentStyle[o]), s == null || d && d !== "none" && d !== "auto" && d !== "auto auto" ? d : s) : _e(i);
|
|
1032
1032
|
}, Vt = Et.convertToPixels = function(i, o, l, a, s) {
|
|
1033
1033
|
if (a === "px" || !a && o !== "lineHeight")
|
|
1034
1034
|
return l;
|
|
1035
1035
|
if (a === "auto" || !l)
|
|
1036
1036
|
return 0;
|
|
1037
|
-
var d, h, y, k =
|
|
1038
|
-
if (I && (l = -l),
|
|
1037
|
+
var d, h, y, k = dt.test(o), x = i, m = $t.style, I = 0 > l, B = l === 1;
|
|
1038
|
+
if (I && (l = -l), B && (l *= 100), o !== "lineHeight" || a)
|
|
1039
1039
|
if (a === "%" && o.indexOf("border") !== -1)
|
|
1040
1040
|
d = l / 100 * (k ? i.clientWidth : i.clientHeight);
|
|
1041
1041
|
else {
|
|
@@ -1046,30 +1046,30 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1046
1046
|
return h.width * l / 100;
|
|
1047
1047
|
m[k ? "width" : "height"] = l + a;
|
|
1048
1048
|
}
|
|
1049
|
-
x.appendChild(
|
|
1049
|
+
x.appendChild($t), d = parseFloat($t[k ? "offsetWidth" : "offsetHeight"]), x.removeChild($t), k && a === "%" && $.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;
|
|
1053
|
-
return
|
|
1053
|
+
return B && (d /= 100), I ? -d : d;
|
|
1054
1054
|
}, ue = Et.calculateOffset = function(i, o, l) {
|
|
1055
1055
|
if (wt(i, "position", l) !== "absolute")
|
|
1056
1056
|
return 0;
|
|
1057
1057
|
var a = o === "left" ? "Left" : "Top", s = wt(i, "margin" + a, l);
|
|
1058
1058
|
return i["offset" + a] - (Vt(i, o, parseFloat(s), s.replace(p, "")) || 0);
|
|
1059
|
-
},
|
|
1059
|
+
}, ne = function(i, o) {
|
|
1060
1060
|
var l, a, s, d = {};
|
|
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(
|
|
1064
|
+
s = o[l], (s.indexOf("-transform") === -1 || Pe === s) && (d[s.replace(V, 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(
|
|
1071
|
-
return
|
|
1072
|
-
},
|
|
1070
|
+
typeof l == "string" && d[l] === void 0 && (d[l.replace(V, et)] = o[l]);
|
|
1071
|
+
return ie || (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
|
+
}, Wt = function(i, o, l, a, s) {
|
|
1073
1073
|
var d, h, y, k = {}, x = i.style;
|
|
1074
1074
|
for (h in l)
|
|
1075
1075
|
h !== "cssText" && h !== "length" && isNaN(h) && (o[h] !== (d = l[h]) || s && s[h]) && h.indexOf("Origin") === -1 && (typeof d == "number" || typeof d == "string") && (k[h] = d !== "auto" || h !== "left" && h !== "top" ? d !== "" && d !== "auto" && d !== "none" || typeof o[h] != "string" || o[h].replace(g, "") === "" ? d : 0 : ue(i, h), x[h] !== void 0 && (y = new vt(x, h, x[h], y)));
|
|
@@ -1129,8 +1129,8 @@ 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
|
-
}, ut =
|
|
1133
|
-
var l, a, s, d, h, y, k, x, m, I,
|
|
1132
|
+
}, ut = $.parseColor = function(i, o) {
|
|
1133
|
+
var l, a, s, d, h, y, k, x, m, I, B;
|
|
1134
1134
|
if (i)
|
|
1135
1135
|
if (typeof i == "number")
|
|
1136
1136
|
l = [i >> 16, i >> 8 & 255, 255 & i];
|
|
@@ -1140,7 +1140,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1140
1140
|
else if (i.charAt(0) === "#")
|
|
1141
1141
|
i.length === 4 && (a = i.charAt(1), s = i.charAt(2), d = i.charAt(3), i = "#" + a + a + s + s + d + d), i = parseInt(i.substr(1), 16), l = [i >> 16, i >> 8 & 255, 255 & i];
|
|
1142
1142
|
else if (i.substr(0, 3) === "hsl")
|
|
1143
|
-
if (l =
|
|
1143
|
+
if (l = B = i.match(t), o) {
|
|
1144
1144
|
if (i.indexOf("=") !== -1)
|
|
1145
1145
|
return i.match(_);
|
|
1146
1146
|
} else
|
|
@@ -1151,7 +1151,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1151
1151
|
}
|
|
1152
1152
|
else
|
|
1153
1153
|
l = A.black;
|
|
1154
|
-
return o && !
|
|
1154
|
+
return o && !B && (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)
|
|
@@ -1162,44 +1162,44 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
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
|
-
pt = new RegExp(pt + ")", "gi"),
|
|
1165
|
+
pt = new RegExp(pt + ")", "gi"), $.colorStringFilter = function(i) {
|
|
1166
1166
|
var o, l = i[0] + " " + i[1];
|
|
1167
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 =
|
|
1168
|
+
}, J.defaultStringFilter || (J.defaultStringFilter = $.colorStringFilter);
|
|
1169
1169
|
var Pt = function(i, o, l, a) {
|
|
1170
1170
|
if (i == null)
|
|
1171
|
-
return function(
|
|
1172
|
-
return
|
|
1171
|
+
return function(B) {
|
|
1172
|
+
return B;
|
|
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
|
-
return m ? s = o ? function(
|
|
1175
|
+
return m ? s = o ? function(B) {
|
|
1176
1176
|
var z, q, X, lt;
|
|
1177
|
-
if (typeof
|
|
1178
|
-
|
|
1179
|
-
else if (a && gt.test(
|
|
1180
|
-
for (lt =
|
|
1177
|
+
if (typeof B == "number")
|
|
1178
|
+
B += I;
|
|
1179
|
+
else if (a && gt.test(B)) {
|
|
1180
|
+
for (lt = B.replace(gt, "|").split("|"), X = 0; X < lt.length; X++)
|
|
1181
1181
|
lt[X] = s(lt[X]);
|
|
1182
1182
|
return lt.join(",");
|
|
1183
1183
|
}
|
|
1184
|
-
if (z = (
|
|
1184
|
+
if (z = (B.match(pt) || [d])[0], q = B.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 + z + k + (
|
|
1188
|
-
} : function(
|
|
1187
|
+
return y + q.join(x) + x + z + k + (B.indexOf("inset") !== -1 ? " inset" : "");
|
|
1188
|
+
} : function(B) {
|
|
1189
1189
|
var z, q, X;
|
|
1190
|
-
if (typeof
|
|
1191
|
-
|
|
1192
|
-
else if (a && gt.test(
|
|
1193
|
-
for (q =
|
|
1190
|
+
if (typeof B == "number")
|
|
1191
|
+
B += I;
|
|
1192
|
+
else if (a && gt.test(B)) {
|
|
1193
|
+
for (q = B.replace(gt, "|").split("|"), X = 0; X < q.length; X++)
|
|
1194
1194
|
q[X] = s(q[X]);
|
|
1195
1195
|
return q.join(",");
|
|
1196
1196
|
}
|
|
1197
|
-
if (z =
|
|
1197
|
+
if (z = B.match(n) || [], X = z.length, m > X--)
|
|
1198
1198
|
for (; ++X < m; )
|
|
1199
1199
|
z[X] = l ? z[(X - 1) / 2 | 0] : h[X];
|
|
1200
1200
|
return y + z.join(x) + k;
|
|
1201
|
-
} : function(
|
|
1202
|
-
return
|
|
1201
|
+
} : function(B) {
|
|
1202
|
+
return B;
|
|
1203
1203
|
};
|
|
1204
1204
|
}, Ot = function(i) {
|
|
1205
1205
|
return i = i.split(","), function(o, l, a, s, d, h, y) {
|
|
@@ -1227,34 +1227,34 @@ 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,
|
|
1231
|
-
for (l._transform = null,
|
|
1232
|
-
if (a.type <= 1 && (y = a.p, z[y] = a.s + a.c,
|
|
1230
|
+
var h, y, k, x, m, I = a, B = {}, z = {}, q = l._transform, X = Kt;
|
|
1231
|
+
for (l._transform = null, Kt = o, a = m = l.parse(i, o, a, s), Kt = 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, z[y] = a.s + a.c, B[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, z[y] = a.data[k],
|
|
1234
|
+
k = "xn" + h, y = a.p + "_" + k, z[y] = a.data[k], B[y] = a[k], d || (x = new vt(a, k, y, x, a.rxp[k]));
|
|
1235
1235
|
a = a._next;
|
|
1236
1236
|
}
|
|
1237
|
-
return { proxy:
|
|
1237
|
+
return { proxy: B, 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 ||
|
|
1239
|
+
this.t = i, this.p = o, this.s = l, this.c = a, this.n = h || o, i instanceof kt || Y.push(this.n), this.r = y && (typeof y == "function" ? y : Math.round), this.type = d || 0, k && (this.pr = k, Q = !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
|
-
},
|
|
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],
|
|
1245
|
-
var m, I,
|
|
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(" ")),
|
|
1243
|
+
}, se = $.parseComplex = function(i, o, l, a, s, d, h, y, k, x) {
|
|
1244
|
+
l = l || d || "", typeof a == "function" && (a = a(e, P)), h = new kt(i, o, 0, 0, h, x ? 2 : 1, null, !1, y, l, a), a += "", s && pt.test(a + l) && (a = [l, a], $.colorStringFilter(a), l = a[0], a = a[1]);
|
|
1245
|
+
var m, I, B, z, q, X, lt, ht, xt, ct, rt, _t, U, Tt = l.split(", ").join(",").split(" "), it = a.split(", ").join(",").split(" "), H = Tt.length, ot = 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(" ")), H = Tt.length), H !== it.length && (Tt = (d || "").split(" "), H = Tt.length), h.plugin = k, h.setRatio = x, pt.lastIndex = 0, m = 0; H > m; m++)
|
|
1247
1247
|
if (z = Tt[m], q = it[m] + "", ht = parseFloat(z), ht || ht === 0)
|
|
1248
1248
|
h.appendXtra(
|
|
1249
1249
|
"",
|
|
1250
1250
|
ht,
|
|
1251
1251
|
w(q, ht),
|
|
1252
1252
|
q.replace(_, ""),
|
|
1253
|
-
|
|
1253
|
+
ot && q.indexOf("px") !== -1 ? Math.round : !1,
|
|
1254
1254
|
!0
|
|
1255
1255
|
);
|
|
1256
1256
|
else if (s && pt.test(z))
|
|
1257
|
-
_t = q.indexOf(")") + 1, _t = ")" + (_t ? q.substr(_t) : ""),
|
|
1257
|
+
_t = q.indexOf(")") + 1, _t = ")" + (_t ? q.substr(_t) : ""), U = q.indexOf("hsl") !== -1 && ie, ct = q, z = ut(z, U), q = ut(q, U), xt = z.length + q.length > 6, xt && !ie && q[3] === 0 ? (h["xs" + h.l] += h.l ? " transparent" : "transparent", h.e = h.e.split(it[m]).join("transparent")) : (ie || (xt = !1), U ? h.appendXtra(
|
|
1258
1258
|
ct.substr(0, ct.indexOf("hsl")) + (xt ? "hsla(" : "hsl("),
|
|
1259
1259
|
z[0],
|
|
1260
1260
|
w(q[0], z[0]),
|
|
@@ -1290,16 +1290,16 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1290
1290
|
else if (X = z.match(t)) {
|
|
1291
1291
|
if (lt = q.match(_), !lt || lt.length !== X.length)
|
|
1292
1292
|
return h;
|
|
1293
|
-
for (
|
|
1294
|
-
rt = X[I], ct = z.indexOf(rt,
|
|
1295
|
-
z.substr(
|
|
1293
|
+
for (B = 0, I = 0; I < X.length; I++)
|
|
1294
|
+
rt = X[I], ct = z.indexOf(rt, B), h.appendXtra(
|
|
1295
|
+
z.substr(B, ct - B),
|
|
1296
1296
|
Number(rt),
|
|
1297
1297
|
w(lt[I], rt),
|
|
1298
1298
|
"",
|
|
1299
|
-
|
|
1299
|
+
ot && z.substr(ct + rt.length, 2) === "px" ? Math.round : !1,
|
|
1300
1300
|
I === 0
|
|
1301
|
-
),
|
|
1302
|
-
h["xs" + h.l] += z.substr(
|
|
1301
|
+
), B = ct + rt.length;
|
|
1302
|
+
h["xs" + h.l] += z.substr(B);
|
|
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) {
|
|
@@ -1325,32 +1325,32 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1325
1325
|
h.pr
|
|
1326
1326
|
), h.xfirst.xs0 = 0), h) : (h.data = { s: o + l }, h.rxp = {}, h.s = o, h.c = l, h.r = s, h)) : (h["xs" + y] += o + (a || ""), h);
|
|
1327
1327
|
};
|
|
1328
|
-
var
|
|
1329
|
-
o = o || {}, this.p = o.prefix &&
|
|
1328
|
+
var De = function(i, o) {
|
|
1329
|
+
o = o || {}, this.p = o.prefix && re(i) || i, O[i] = O[this.p] = this, this.format = o.formatter || Pt(o.defaultValue, o.color, o.collapsible, o.multi), o.parser && (this.parse = o.parser), this.clrs = o.color, this.multi = o.multi, this.keyword = o.keyword, this.dflt = o.defaultValue, this.pr = o.priority || 0;
|
|
1330
1330
|
}, Ct = Et._registerComplexSpecialProp = function(i, o, l) {
|
|
1331
1331
|
typeof o != "object" && (o = { parser: l });
|
|
1332
1332
|
var a, s = i.split(","), d = o.defaultValue;
|
|
1333
1333
|
for (l = l || [d], a = 0; a < s.length; a++)
|
|
1334
|
-
o.prefix = a === 0 && o.prefix, o.defaultValue = l[a] || d, new
|
|
1335
|
-
},
|
|
1336
|
-
if (!
|
|
1334
|
+
o.prefix = a === 0 && o.prefix, o.defaultValue = l[a] || d, new De(s[a], o);
|
|
1335
|
+
}, Ne = Et._registerPluginProp = function(i) {
|
|
1336
|
+
if (!O[i]) {
|
|
1337
1337
|
var o = i.charAt(0).toUpperCase() + i.substr(1) + "Plugin";
|
|
1338
1338
|
Ct(i, {
|
|
1339
1339
|
parser: function(l, a, s, d, h, y, k) {
|
|
1340
|
-
var x =
|
|
1341
|
-
return x ? (x._cssRegister(),
|
|
1340
|
+
var x = mt.com.greensock.plugins[o];
|
|
1341
|
+
return x ? (x._cssRegister(), O[s].parse(l, a, s, d, h, y, k)) : (ce("Error: " + o + " js file not loaded."), h);
|
|
1342
1342
|
}
|
|
1343
1343
|
});
|
|
1344
1344
|
}
|
|
1345
1345
|
};
|
|
1346
|
-
M =
|
|
1347
|
-
var h, y, k, x, m, I,
|
|
1348
|
-
if (this.multi && (gt.test(l) || gt.test(o) ? (y = o.replace(gt, "|").split("|"), k = l.replace(gt, "|").split("|")) :
|
|
1346
|
+
M = De.prototype, M.parseComplex = function(i, o, l, a, s, d) {
|
|
1347
|
+
var h, y, k, x, m, I, B = this.keyword;
|
|
1348
|
+
if (this.multi && (gt.test(l) || gt.test(o) ? (y = o.replace(gt, "|").split("|"), k = l.replace(gt, "|").split("|")) : B && (y = [o], k = [l])), k) {
|
|
1349
1349
|
for (x = k.length > y.length ? k.length : y.length, h = 0; x > h; h++)
|
|
1350
|
-
o = y[h] = y[h] || this.dflt, l = k[h] = k[h] || this.dflt,
|
|
1350
|
+
o = y[h] = y[h] || this.dflt, l = k[h] = k[h] || this.dflt, B && (m = o.indexOf(B), I = l.indexOf(B), m !== I && (I === -1 ? y[h] = y[h].split(B).join("") : m === -1 && (y[h] += " " + B)));
|
|
1351
1351
|
o = y.join(", "), l = k.join(", ");
|
|
1352
1352
|
}
|
|
1353
|
-
return
|
|
1353
|
+
return se(i, this.p, o, l, this.clrs, this.dflt, a, this.pr, s, d);
|
|
1354
1354
|
}, M.parse = function(i, o, l, a, s, d, h) {
|
|
1355
1355
|
return this.parseComplex(
|
|
1356
1356
|
i.style,
|
|
@@ -1359,7 +1359,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1359
1359
|
s,
|
|
1360
1360
|
d
|
|
1361
1361
|
);
|
|
1362
|
-
},
|
|
1362
|
+
}, $.registerSpecialProp = function(i, o, l) {
|
|
1363
1363
|
Ct(i, {
|
|
1364
1364
|
parser: function(a, s, d, h, y, k, x) {
|
|
1365
1365
|
var m = new kt(a, d, 0, 0, y, 2, d, !1, l);
|
|
@@ -1367,22 +1367,22 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1367
1367
|
},
|
|
1368
1368
|
priority: l
|
|
1369
1369
|
});
|
|
1370
|
-
},
|
|
1371
|
-
var
|
|
1370
|
+
}, $.useSVGTransformAttr = !0;
|
|
1371
|
+
var oe, Fe = "scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(
|
|
1372
1372
|
","
|
|
1373
|
-
), Xt =
|
|
1374
|
-
this.perspective = parseFloat(
|
|
1375
|
-
},
|
|
1373
|
+
), Xt = re("transform"), Pe = ee + "transform", me = re("transformOrigin"), Ht = re("perspective") !== null, xe = Et.Transform = function() {
|
|
1374
|
+
this.perspective = parseFloat($.defaultTransformPerspective) || 0, this.force3D = $.defaultForce3D !== !1 && Ht ? $.defaultForce3D || "auto" : !1;
|
|
1375
|
+
}, Be = Dt.SVGElement, Ee = function(i, o, l) {
|
|
1376
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 = bt.documentElement || {},
|
|
1380
|
+
}, fe = bt.documentElement || {}, Ye = function() {
|
|
1381
1381
|
var i, o, l, a = v || /Android/i.test(zt) && !Dt.chrome;
|
|
1382
|
-
return bt.createElementNS && !a && (i =
|
|
1382
|
+
return bt.createElementNS && !a && (i = Ee("svg", fe), o = Ee("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,
|
|
1385
|
-
rt && (xt = rt.xOrigin, ct = rt.yOrigin), (!a || (h = a.split(" ")).length < 2) && (
|
|
1384
|
+
var h, y, k, x, m, I, B, z, q, X, lt, ht, xt, ct, rt = i._gsTransform, _t = Re(i, !0);
|
|
1385
|
+
rt && (xt = rt.xOrigin, ct = rt.yOrigin), (!a || (h = a.split(" ")).length < 2) && (B = i.getBBox(), B.x === 0 && B.y === 0 && B.width + B.height === 0 && (B = {
|
|
1386
1386
|
x: parseFloat(
|
|
1387
1387
|
i.hasAttribute("x") ? i.getAttribute("x") : i.hasAttribute("cx") ? i.getAttribute("cx") : 0
|
|
1388
1388
|
) || 0,
|
|
@@ -1392,33 +1392,33 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1392
1392
|
width: 0,
|
|
1393
1393
|
height: 0
|
|
1394
1394
|
}), o = c(o).split(" "), h = [
|
|
1395
|
-
(o[0].indexOf("%") !== -1 ? parseFloat(o[0]) / 100 *
|
|
1396
|
-
(o[1].indexOf("%") !== -1 ? parseFloat(o[1]) / 100 *
|
|
1397
|
-
]), l.xOrigin = x = parseFloat(h[0]), l.yOrigin = m = parseFloat(h[1]), a && _t !== Se && (I = _t[0],
|
|
1398
|
-
},
|
|
1395
|
+
(o[0].indexOf("%") !== -1 ? parseFloat(o[0]) / 100 * B.width : parseFloat(o[0])) + B.x,
|
|
1396
|
+
(o[1].indexOf("%") !== -1 ? parseFloat(o[1]) / 100 * B.height : parseFloat(o[1])) + B.y
|
|
1397
|
+
]), l.xOrigin = x = parseFloat(h[0]), l.yOrigin = m = parseFloat(h[1]), a && _t !== Se && (I = _t[0], B = _t[1], z = _t[2], q = _t[3], X = _t[4], lt = _t[5], ht = I * q - B * z, ht && (y = x * (q / ht) + m * (-z / ht) + (z * lt - q * X) / ht, k = x * (-B / ht) + m * (I / ht) - (I * lt - B * 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 && $.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
|
+
}, ze = function(i) {
|
|
1399
1399
|
var o, l = ae(
|
|
1400
1400
|
"svg",
|
|
1401
1401
|
this.ownerSVGElement && this.ownerSVGElement.getAttribute("xmlns") || "http://www.w3.org/2000/svg"
|
|
1402
1402
|
), a = this.parentNode, s = this.nextSibling, d = this.style.cssText;
|
|
1403
1403
|
if (fe.appendChild(l), l.appendChild(this), this.style.display = "block", i)
|
|
1404
1404
|
try {
|
|
1405
|
-
o = this.getBBox(), this._originalGetBBox = this.getBBox, this.getBBox =
|
|
1405
|
+
o = this.getBBox(), this._originalGetBBox = this.getBBox, this.getBBox = ze;
|
|
1406
1406
|
} catch {
|
|
1407
1407
|
}
|
|
1408
1408
|
else
|
|
1409
1409
|
this._originalGetBBox && (o = this._originalGetBBox());
|
|
1410
1410
|
return s ? a.insertBefore(this, s) : a.appendChild(this), fe.removeChild(l), this.style.cssText = d, o;
|
|
1411
|
-
},
|
|
1411
|
+
}, Ue = function(i) {
|
|
1412
1412
|
try {
|
|
1413
1413
|
return i.getBBox();
|
|
1414
1414
|
} catch {
|
|
1415
|
-
return
|
|
1415
|
+
return ze.call(i, !0);
|
|
1416
1416
|
}
|
|
1417
1417
|
}, Oe = function(i) {
|
|
1418
|
-
return !(!
|
|
1418
|
+
return !(!Be || !i.getCTM || i.parentNode && !i.ownerSVGElement || !Ue(i));
|
|
1419
1419
|
}, Se = [1, 0, 0, 1, 0, 0], Re = function(i, o) {
|
|
1420
1420
|
var l, a, s, d, h, y, k = i._gsTransform || new xe(), x = 1e5, m = i.style;
|
|
1421
|
-
if (Xt ? a = wt(i, Pe, null, !0) : i.currentStyle && (a = i.currentStyle.filter.match(
|
|
1421
|
+
if (Xt ? a = wt(i, Pe, null, !0) : i.currentStyle && (a = i.currentStyle.filter.match(at), a = a && a.length === 4 ? [
|
|
1422
1422
|
a[0].substr(4),
|
|
1423
1423
|
Number(a[2].substr(4)),
|
|
1424
1424
|
Number(a[1].substr(4)),
|
|
@@ -1433,58 +1433,58 @@ 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,
|
|
1436
|
+
var s, d, h, y, k, x, m = l ? i._gsTransform || new xe() : new xe(), I = m.scaleX < 0, B = 2e-5, z = 1e5, q = Ht && (parseFloat(wt(i, me, o, !1, "0 0 0").split(" ")[2]) || m.zOrigin) || 0, X = parseFloat($.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%") + "",
|
|
1440
1440
|
m,
|
|
1441
1441
|
i.getAttribute("data-svg-origin")
|
|
1442
|
-
),
|
|
1442
|
+
), oe = $.useSVGTransformAttr || Ye), s = Re(i), s !== Se) {
|
|
1443
1443
|
if (s.length === 16) {
|
|
1444
|
-
var lt, ht, xt, ct, rt, _t = s[0],
|
|
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 =
|
|
1444
|
+
var lt, ht, xt, ct, rt, _t = s[0], U = s[1], Tt = s[2], it = s[3], H = s[4], ot = 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 = H * ct + Mt * rt, ht = ot * ct + Rt * rt, xt = Qt * ct + Ft * rt, Mt = H * -rt + Mt * ct, Rt = ot * -rt + Rt * ct, Ft = Qt * -rt + Ft * ct, Bt = pe * -rt + Bt * ct, H = lt, ot = 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 = U * ct - Rt * rt, xt = Tt * ct - Ft * rt, Rt = U * rt + Rt * ct, Ft = Tt * rt + Ft * ct, Bt = it * rt + Bt * ct, _t = lt, U = ht, Tt = xt), St = Math.atan2(U, _t), m.rotation = St * At, St && (ct = Math.cos(St), rt = Math.sin(St), lt = _t * ct + U * rt, ht = H * ct + ot * rt, xt = Mt * ct + Rt * rt, U = U * ct - _t * rt, ot = ot * ct - H * rt, Rt = Rt * ct - Mt * rt, _t = lt, H = 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(H, ot), m.scaleX = (Math.sqrt(_t * _t + U * U + Tt * Tt) * z + 0.5 | 0) / z, m.scaleY = (Math.sqrt(ot * ot + 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, H /= m.scaleY, U /= m.scaleX, ot /= m.scaleY, Math.abs(St) > B ? (m.skewX = St * At, H = 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 * H), m.y -= m.yOrigin - (m.yOrigin * U - m.xOrigin * ot));
|
|
1446
1446
|
} else if (!Ht || a || !s.length || m.x !== s[4] || m.y !== s[5] || !m.rotationX && !m.rotationY) {
|
|
1447
|
-
var ye = s.length >= 6, qt = ye ? s[0] : 1,
|
|
1448
|
-
m.x = s[4] || 0, m.y = s[5] || 0, h = Math.sqrt(qt * qt +
|
|
1447
|
+
var ye = s.length >= 6, qt = ye ? s[0] : 1, Zt = s[1] || 0, ve = s[2] || 0, Te = ye ? s[3] : 1;
|
|
1448
|
+
m.x = s[4] || 0, m.y = s[5] || 0, h = Math.sqrt(qt * qt + Zt * Zt), y = Math.sqrt(Te * Te + ve * ve), k = qt || Zt ? Math.atan2(Zt, 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 * Zt + m.yOrigin * Te));
|
|
1449
1449
|
}
|
|
1450
1450
|
Math.abs(m.skewX) > 90 && Math.abs(m.skewX) < 270 && (I ? (m.scaleX *= -1, m.skewX += m.rotation <= 0 ? 180 : -180, m.rotation += m.rotation <= 0 ? 180 : -180) : (m.scaleY *= -1, m.skewX += m.skewX <= 0 ? 180 : -180)), m.zOrigin = q;
|
|
1451
1451
|
for (d in m)
|
|
1452
|
-
m[d] <
|
|
1452
|
+
m[d] < B && m[d] > -B && (m[d] = 0);
|
|
1453
1453
|
}
|
|
1454
|
-
return l && (i._gsTransform = m, m.svg && (
|
|
1454
|
+
return l && (i._gsTransform = m, m.svg && (oe && i.style[Xt] ? J.delayedCall(1e-3, function() {
|
|
1455
1455
|
ge(i.style, Xt);
|
|
1456
|
-
}) : !
|
|
1456
|
+
}) : !oe && i.getAttribute("transform") && J.delayedCall(1e-3, function() {
|
|
1457
1457
|
i.removeAttribute("transform");
|
|
1458
1458
|
}))), m;
|
|
1459
|
-
},
|
|
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,
|
|
1461
|
-
if (
|
|
1462
|
-
l = k, k = -x, x = -l, o =
|
|
1463
|
-
var z, q, X = this.t.offsetWidth, lt = this.t.offsetHeight, ht =
|
|
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(
|
|
1465
|
-
var _t,
|
|
1459
|
+
}, Ve = function(i) {
|
|
1460
|
+
var o, l, a = this.data, s = -a.rotation * yt, d = s + a.skewX * yt, h = 1e5, y = (Math.cos(s) * a.scaleX * h | 0) / h, k = (Math.sin(s) * a.scaleX * h | 0) / h, x = (Math.sin(d) * -a.scaleY * h | 0) / h, m = (Math.cos(d) * a.scaleY * h | 0) / h, I = this.t.style, B = this.t.currentStyle;
|
|
1461
|
+
if (B) {
|
|
1462
|
+
l = k, k = -x, x = -l, o = B.filter, I.filter = "";
|
|
1463
|
+
var z, q, X = this.t.offsetWidth, lt = this.t.offsetHeight, ht = B.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(K, 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, U, Tt, it = 8 > v ? 1 : -1;
|
|
1466
1466
|
for (z = a.ieOffsetX || 0, q = a.ieOffsetY || 0, a.ieOffsetX = Math.round(
|
|
1467
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
|
-
|
|
1471
|
+
U = u[It], _t = B[U], l = _t.indexOf("px") !== -1 ? parseFloat(_t) : Vt(this.t, U, parseFloat(_t), _t.replace(p, "")) || 0, Tt = l !== a[U] ? 2 > It ? -a.ieOffsetX : -a.ieOffsetY : 2 > It ? z - a.ieOffsetX : q - a.ieOffsetY, I[U] = (a[U] = Math.round(
|
|
1472
1472
|
l - Tt * (It === 0 || It === 2 ? 1 : it)
|
|
1473
1473
|
)) + "px";
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
-
},
|
|
1477
|
-
var o, l, a, s, d, h, y, k, x, m, I,
|
|
1478
|
-
if (qt && (
|
|
1479
|
-
return void (
|
|
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)),
|
|
1481
|
-
|
|
1476
|
+
}, qe = Et.set3DTransformRatio = Et.setTransformRatio = function(i) {
|
|
1477
|
+
var o, l, a, s, d, h, y, k, x, m, I, B, z, q, X, lt, ht, xt, ct, rt, _t, U, Tt, it = this.data, H = this.t.style, ot = 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, Zt = it.skewX;
|
|
1478
|
+
if (qt && (Zt += qt, ot += qt), ((i === 1 || i === 0) && ye === "auto" && (this.tween._totalTime === this.tween._totalDuration || !this.tween._totalTime) || !ye) && !Ut && !St && !pe && !Qt && Ft === 1 || oe && Bt || !Ht)
|
|
1479
|
+
return void (ot || Zt || Bt ? (ot *= yt, U = Zt * yt, Tt = 1e5, l = Math.cos(ot) * Mt, d = Math.sin(ot) * Mt, a = Math.sin(ot - U) * -Rt, h = Math.cos(ot - U) * Rt, U && it.skewType === "simple" && (o = Math.tan(U - 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, oe && (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 && oe ? this.t.setAttribute("transform", "matrix(" + ct) : H[Xt] = (it.xPercent || it.yPercent ? "translate(" + it.xPercent + "%," + it.yPercent + "%) matrix(" : "matrix(") + ct) : H[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)), ot || Zt)
|
|
1481
|
+
ot *= yt, lt = l = Math.cos(ot), ht = d = Math.sin(ot), Zt && (ot -= Zt * yt, lt = Math.cos(ot), ht = Math.sin(ot), it.skewType === "simple" && (o = Math.tan((Zt - 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 (
|
|
1484
|
+
return void (H[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 =
|
|
1487
|
+
m = 1, s = y = k = x = I = B = 0, z = St ? -1 / St : 0, q = it.zOrigin, X = 1e-6, rt = ",", _t = "0", ot = pe * yt, ot && (lt = Math.cos(ot), ht = Math.sin(ot), k = -ht, I = z * -ht, s = l * ht, y = d * ht, m = lt, z *= lt, l *= lt, d *= lt), ot = Qt * yt, ot && (lt = Math.cos(ot), ht = Math.sin(ot), o = a * lt + s * ht, xt = h * lt + y * ht, x = m * ht, B = 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, B *= 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 > B && B > -X ? _t : B) + 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) + ")", H[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,
|
|
1499
|
-
if (
|
|
1500
|
-
m =
|
|
1498
|
+
var x, m, I, B, z, q, X, lt, ht, xt = i._gsTransform, ct = i.style, rt = 1e-6, _t = Fe.length, U = h, Tt = {}, it = "transformOrigin", H = de(i, E, !0, U.parseTransform), ot = U.transform && (typeof U.transform == "function" ? U.transform(e, P) : U.transform);
|
|
1499
|
+
if (H.skewType = U.skewType || H.skewType || $.defaultSkewType, a._transform = H, "rotationZ" in U && (U.rotation = U.rotationZ), ot && typeof ot == "string" && Xt)
|
|
1500
|
+
m = $t.style, m[Xt] = ot, m.display = "block", m.position = "absolute", ot.indexOf("%") !== -1 && (m.width = wt(i, "width"), m.height = wt(i, "height")), bt.body.appendChild($t), x = de($t, null, !1), H.skewType === "simple" && (x.scaleY *= Math.cos(x.skewX * yt)), H.svg && (q = H.xOrigin, X = H.yOrigin, x.x -= H.xOffset, x.y -= H.yOffset, (U.transformOrigin || U.svgOrigin) && (ot = {}, ke(
|
|
1501
1501
|
i,
|
|
1502
|
-
c(
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1502
|
+
c(U.transformOrigin),
|
|
1503
|
+
ot,
|
|
1504
|
+
U.svgOrigin,
|
|
1505
|
+
U.smoothOrigin,
|
|
1506
1506
|
!0
|
|
1507
|
-
), q =
|
|
1508
|
-
else if (typeof
|
|
1507
|
+
), q = ot.xOrigin, X = ot.yOrigin, x.x -= ot.xOffset - H.xOffset, x.y -= ot.yOffset - H.yOffset), (q || X) && (lt = Re($t, !0), x.x -= q - (q * lt[0] + X * lt[2]), x.y -= X - (q * lt[1] + X * lt[3]))), bt.body.removeChild($t), x.perspective || (x.perspective = H.perspective), U.xPercent != null && (x.xPercent = C(U.xPercent, H.xPercent)), U.yPercent != null && (x.yPercent = C(U.yPercent, H.yPercent));
|
|
1508
|
+
else if (typeof U == "object") {
|
|
1509
1509
|
if (x = {
|
|
1510
1510
|
scaleX: C(
|
|
1511
|
-
|
|
1512
|
-
|
|
1511
|
+
U.scaleX != null ? U.scaleX : U.scale,
|
|
1512
|
+
H.scaleX
|
|
1513
1513
|
),
|
|
1514
1514
|
scaleY: C(
|
|
1515
|
-
|
|
1516
|
-
|
|
1515
|
+
U.scaleY != null ? U.scaleY : U.scale,
|
|
1516
|
+
H.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
|
-
}, z =
|
|
1518
|
+
scaleZ: C(U.scaleZ, H.scaleZ),
|
|
1519
|
+
x: C(U.x, H.x),
|
|
1520
|
+
y: C(U.y, H.y),
|
|
1521
|
+
z: C(U.z, H.z),
|
|
1522
|
+
xPercent: C(U.xPercent, H.xPercent),
|
|
1523
|
+
yPercent: C(U.yPercent, H.yPercent),
|
|
1524
|
+
perspective: C(U.transformPerspective, H.perspective)
|
|
1525
|
+
}, z = U.directionalRotation, z != null)
|
|
1526
1526
|
if (typeof z == "object")
|
|
1527
1527
|
for (m in z)
|
|
1528
|
-
|
|
1528
|
+
U[m] = z[m];
|
|
1529
1529
|
else
|
|
1530
|
-
|
|
1531
|
-
typeof
|
|
1532
|
-
"rotation" in
|
|
1533
|
-
|
|
1530
|
+
U.rotation = z;
|
|
1531
|
+
typeof U.x == "string" && U.x.indexOf("%") !== -1 && (x.x = 0, x.xPercent = C(U.x, H.xPercent)), typeof U.y == "string" && U.y.indexOf("%") !== -1 && (x.y = 0, x.yPercent = C(U.y, H.yPercent)), x.rotation = j(
|
|
1532
|
+
"rotation" in U ? U.rotation : "shortRotation" in U ? U.shortRotation + "_short" : H.rotation,
|
|
1533
|
+
H.rotation,
|
|
1534
1534
|
"rotation",
|
|
1535
1535
|
Tt
|
|
1536
1536
|
), Ht && (x.rotationX = j(
|
|
1537
|
-
"rotationX" in
|
|
1538
|
-
|
|
1537
|
+
"rotationX" in U ? U.rotationX : "shortRotationX" in U ? U.shortRotationX + "_short" : H.rotationX || 0,
|
|
1538
|
+
H.rotationX,
|
|
1539
1539
|
"rotationX",
|
|
1540
1540
|
Tt
|
|
1541
1541
|
), x.rotationY = j(
|
|
1542
|
-
"rotationY" in
|
|
1543
|
-
|
|
1542
|
+
"rotationY" in U ? U.rotationY : "shortRotationY" in U ? U.shortRotationY + "_short" : H.rotationY || 0,
|
|
1543
|
+
H.rotationY,
|
|
1544
1544
|
"rotationY",
|
|
1545
1545
|
Tt
|
|
1546
|
-
)), x.skewX = j(
|
|
1546
|
+
)), x.skewX = j(U.skewX, H.skewX), x.skewY = j(U.skewY, H.skewY);
|
|
1547
1547
|
}
|
|
1548
|
-
for (Ht &&
|
|
1549
|
-
ht =
|
|
1550
|
-
return
|
|
1551
|
-
|
|
1548
|
+
for (Ht && U.force3D != null && (H.force3D = U.force3D, B = !0), I = H.force3D || H.z || H.rotationX || H.rotationY || x.z || x.rotationX || x.rotationY || x.perspective, I || U.scale == null || (x.scaleZ = 1); --_t > -1; )
|
|
1549
|
+
ht = Fe[_t], ot = x[ht] - H[ht], (ot > rt || -rt > ot || U[ht] != null || Kt[ht] != null) && (B = !0, s = new kt(H, ht, H[ht], ot, s), ht in Tt && (s.e = Tt[ht]), s.xs0 = 0, s.plugin = d, a._overwriteProps.push(s.n));
|
|
1550
|
+
return ot = U.transformOrigin, H.svg && (ot || U.svgOrigin) && (q = H.xOffset, X = H.yOffset, ke(i, c(ot), x, U.svgOrigin, U.smoothOrigin), s = he(
|
|
1551
|
+
H,
|
|
1552
1552
|
"xOrigin",
|
|
1553
|
-
(xt ?
|
|
1553
|
+
(xt ? H : x).xOrigin,
|
|
1554
1554
|
x.xOrigin,
|
|
1555
1555
|
s,
|
|
1556
1556
|
it
|
|
1557
1557
|
), s = he(
|
|
1558
|
-
|
|
1558
|
+
H,
|
|
1559
1559
|
"yOrigin",
|
|
1560
|
-
(xt ?
|
|
1560
|
+
(xt ? H : x).yOrigin,
|
|
1561
1561
|
x.yOrigin,
|
|
1562
1562
|
s,
|
|
1563
1563
|
it
|
|
1564
|
-
), (q !==
|
|
1565
|
-
|
|
1564
|
+
), (q !== H.xOffset || X !== H.yOffset) && (s = he(
|
|
1565
|
+
H,
|
|
1566
1566
|
"xOffset",
|
|
1567
|
-
xt ? q :
|
|
1568
|
-
|
|
1567
|
+
xt ? q : H.xOffset,
|
|
1568
|
+
H.xOffset,
|
|
1569
1569
|
s,
|
|
1570
1570
|
it
|
|
1571
1571
|
), s = he(
|
|
1572
|
-
|
|
1572
|
+
H,
|
|
1573
1573
|
"yOffset",
|
|
1574
|
-
xt ? X :
|
|
1575
|
-
|
|
1574
|
+
xt ? X : H.yOffset,
|
|
1575
|
+
H.yOffset,
|
|
1576
1576
|
s,
|
|
1577
1577
|
it
|
|
1578
|
-
)),
|
|
1578
|
+
)), ot = "0px 0px"), (ot || Ht && I && H.zOrigin) && (Xt ? (B = !0, ht = me, ot = (ot || 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 = H.zOrigin, ot = ot.split(" "), H.zOrigin = (ot.length > 2 && (m === 0 || ot[2] !== "0px") ? parseFloat(ot[2]) : m) || 0, s.xs0 = s.e = ot[0] + " " + (ot[1] || "50%") + " 0px", s = new kt(H, "zOrigin", 0, 0, s, -1, s.n), s.b = m, s.xs0 = s.e = H.zOrigin) : s.xs0 = s.e = ot) : c(ot + "", H)), B && (a._transformType = H.svg && oe || !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,
|
|
1592
|
+
var h, y, k, x, m, I, B, z, q, X, lt, ht, xt, ct, rt, _t, U = [
|
|
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 < U.length; y++)
|
|
1599
|
+
this.p.indexOf("border") && (U[y] = re(U[y])), m = x = wt(i, U[y], E, !1, "0px"), m.indexOf(" ") !== -1 && (x = m.split(" "), m = x[0], x = x[1]), I = k = h[y], B = parseFloat(m), ht = m.substr((B + "").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 = nt[l] || ht), lt !== ht && (ct = Vt(i, "borderLeft", B, ht), rt = Vt(i, "borderTop", B, 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 = se(Tt, U[y], m + " " + x, I + " " + k, !1, "0px", s);
|
|
1600
1600
|
return s;
|
|
1601
1601
|
},
|
|
1602
1602
|
prefix: !0,
|
|
@@ -1606,7 +1606,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1606
1606
|
{
|
|
1607
1607
|
defaultValue: "0px",
|
|
1608
1608
|
parser: function(i, o, l, a, s, d) {
|
|
1609
|
-
return
|
|
1609
|
+
return se(
|
|
1610
1610
|
i.style,
|
|
1611
1611
|
l,
|
|
1612
1612
|
this.format(wt(i, l, E, !1, "0px 0px")),
|
|
@@ -1622,8 +1622,8 @@ 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,
|
|
1626
|
-
(z ? v ? z.getPropertyValue(
|
|
1625
|
+
var h, y, k, x, m, I, B = "background-position", z = E || jt(i, null), q = this.format(
|
|
1626
|
+
(z ? v ? z.getPropertyValue(B + "-x") + " " + z.getPropertyValue(B + "-y") : z.getPropertyValue(B) : i.currentStyle.backgroundPositionX + " " + i.currentStyle.backgroundPositionY) || "0 0"
|
|
1627
1627
|
), X = this.format(o);
|
|
1628
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; )
|
|
@@ -1685,7 +1685,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1685
1685
|
return new kt(h, y, 0, 0, s, -1, l, !1, 0, h[y], o);
|
|
1686
1686
|
}
|
|
1687
1687
|
});
|
|
1688
|
-
var
|
|
1688
|
+
var be = function(i) {
|
|
1689
1689
|
var o, l = this.t, a = l.filter || wt(this.data, "filter") || "", s = this.s + this.c * i | 0;
|
|
1690
1690
|
s === 100 && (a.indexOf("atrix(") === -1 && a.indexOf("radient(") === -1 && a.indexOf("oader(") === -1 ? (l.removeAttribute("filter"), o = !wt(this.data, "filter")) : (l.filter = a.replace(D, ""), o = !0)), o || (this.xn1 && (l.filter = a = a || "alpha(opacity=" + s + ")"), a.indexOf("pacity") === -1 ? s === 0 && this.xn1 || (l.filter = a + " alpha(opacity=" + s + ")") : l.filter = a.replace(T, "opacity=" + s));
|
|
1691
1691
|
};
|
|
@@ -1693,7 +1693,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1693
1693
|
defaultValue: "1",
|
|
1694
1694
|
parser: function(i, o, l, a, s, d) {
|
|
1695
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),
|
|
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), ie ? 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,
|
|
@@ -1710,7 +1710,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1710
1710
|
});
|
|
1711
1711
|
var ge = function(i, o) {
|
|
1712
1712
|
o && (i.removeProperty ? ((o.substr(0, 2) === "ms" || o.substr(0, 6) === "webkit") && (o = "-" + o), i.removeProperty(o.replace(Z, "-$1").toLowerCase())) : i.removeAttribute(o));
|
|
1713
|
-
},
|
|
1713
|
+
}, $e = function(i) {
|
|
1714
1714
|
if (this.t._gsClassPT = this, i === 1 || i === 0) {
|
|
1715
1715
|
this.t.setAttribute("class", i === 0 ? this.b : this.e);
|
|
1716
1716
|
for (var o = this.data, l = this.t.style; o; )
|
|
@@ -1721,41 +1721,41 @@ 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,
|
|
1725
|
-
if (s = a._classNamePT = new kt(i, l, 0, 0, s, 2), s.setRatio =
|
|
1724
|
+
var y, k, x, m, I, B = i.getAttribute("class") || "", z = i.style.cssText;
|
|
1725
|
+
if (s = a._classNamePT = new kt(i, l, 0, 0, s, 2), s.setRatio = $e, s.pr = -11, Q = !0, s.b = B, k = ne(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);
|
|
1729
1729
|
}
|
|
1730
|
-
return i._gsClassPT = s, s.e = o.charAt(1) !== "=" ? o :
|
|
1730
|
+
return i._gsClassPT = s, s.e = o.charAt(1) !== "=" ? o : B.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 =
|
|
1733
|
+
) + (o.charAt(0) === "+" ? " " + o.substr(2) : ""), i.setAttribute("class", s.e), y = Wt(i, k, ne(i), h, m), i.setAttribute("class", B), s.data = y.firstMPT, i.style.cssText = z, s = s.xfirst = a.parse(i, y.difs, s, d);
|
|
1734
1734
|
}
|
|
1735
1735
|
});
|
|
1736
|
-
var
|
|
1736
|
+
var We = function(i) {
|
|
1737
1737
|
if ((i === 1 || i === 0) && this.data._totalTime === this.data._totalDuration && this.data.data !== "isFromStart") {
|
|
1738
|
-
var o, l, a, s, d, h = this.t.style, y =
|
|
1738
|
+
var o, l, a, s, d, h = this.t.style, y = O.transform.parse;
|
|
1739
1739
|
if (this.e === "all")
|
|
1740
1740
|
h.cssText = "", s = !0;
|
|
1741
1741
|
else
|
|
1742
1742
|
for (o = this.e.split(" ").join("").split(","), a = o.length; --a > -1; )
|
|
1743
|
-
l = o[a],
|
|
1743
|
+
l = o[a], O[l] && (O[l].parse === y ? s = !0 : l = l === "transformOrigin" ? me : O[l].p), ge(h, l);
|
|
1744
1744
|
s && (ge(h, Xt), d = this.t._gsTransform, d && (d.svg && (this.t.removeAttribute("data-svg-origin"), this.t.removeAttribute("transform")), delete this.t._gsTransform));
|
|
1745
1745
|
}
|
|
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 =
|
|
1749
|
+
return s = new kt(i, l, 0, 0, s, 2), s.setRatio = We, s.e = o, s.pr = -10, s.data = a._tween, Q = !0, s;
|
|
1750
1750
|
}
|
|
1751
1751
|
}), M = "bezier,throwProps,physicsProps,physics2D".split(","), It = M.length; It--; )
|
|
1752
|
-
|
|
1753
|
-
M =
|
|
1752
|
+
Ne(M[It]);
|
|
1753
|
+
M = $.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, b = o.autoRound,
|
|
1757
|
-
var s, d, h, y, k, x, m, I,
|
|
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 =
|
|
1756
|
+
this._target = P = i, this._tween = l, this._vars = o, e = a, b = o.autoRound, Q = !1, nt = o.suffixMap || $.suffixMap, E = jt(i, ""), Y = this._overwriteProps;
|
|
1757
|
+
var s, d, h, y, k, x, m, I, B, 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 = ne(i, E), z.cssText = y + ";" + o, s = Wt(i, s, ne(i)).difs, !ie && S.test(o) && (s.opacity = parseFloat(RegExp.$1)), o = s, z.cssText = y), o.className ? this._firstPT = d = O.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 (
|
|
1767
|
+
for (B = this._transformType === 3, Xt ? G && (F = !0, z.zIndex === "" && (m = wt(i, "zIndex", E), (m === "auto" || m === "") && this._addLazySet(z, "zIndex", 0)), L && this._addLazySet(
|
|
1768
1768
|
z,
|
|
1769
1769
|
"WebkitBackfaceVisibility",
|
|
1770
|
-
this._vars.WebkitBackfaceVisibility || (
|
|
1770
|
+
this._vars.WebkitBackfaceVisibility || (B ? "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 ?
|
|
1773
|
+
I = new kt(i, "transform", 0, 0, null, 2), this._linkCSSP(I, null, h), I.setRatio = Xt ? qe : Ve, I.data = this._transform || de(i, E, !0), I.tween = l, I.pr = -1, Y.pop();
|
|
1774
1774
|
}
|
|
1775
|
-
if (
|
|
1775
|
+
if (Q) {
|
|
1776
1776
|
for (; d; ) {
|
|
1777
1777
|
for (x = d._next, h = y; h && h.pr > d.pr; )
|
|
1778
1778
|
h = h._next;
|
|
@@ -1782,9 +1782,9 @@ 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,
|
|
1785
|
+
var s, d, h, y, k, x, m, I, B, z, q = i.style;
|
|
1786
1786
|
for (s in o) {
|
|
1787
|
-
if (x = o[s], typeof x == "function" && (x = x(e, P)), d =
|
|
1787
|
+
if (x = o[s], typeof x == "function" && (x = x(e, P)), d = O[s])
|
|
1788
1788
|
l = d.parse(i, x, s, this, l, a, o);
|
|
1789
1789
|
else {
|
|
1790
1790
|
if (s.substr(0, 2) === "--") {
|
|
@@ -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, E) + "",
|
|
1803
|
+
k = wt(i, s, E) + "", B = typeof x == "string", s === "color" || s === "fill" || s === "stroke" || s.indexOf("Color") !== -1 || B && R.test(x) ? (B || (x = ut(x), x = (x.length > 3 ? "rgba(" : "rgb(") + x.join(",") + ")"), l = se(q, s, k, x, !0, "transparent", l, 0, a)) : B && Yt.test(x) ? l = se(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 = B && 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 = B ? x.replace(p, "") : ""), I === "" && (I = s in nt ? nt[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,
|
|
@@ -1877,14 +1877,14 @@ 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, E, !0), this._transformType = this._transform.svg &&
|
|
1880
|
+
this._transform = this._transform || de(this._target, E, !0), this._transformType = this._transform.svg && oe || !i && this._transformType !== 3 ? 2 : 3;
|
|
1881
1881
|
};
|
|
1882
|
-
var
|
|
1882
|
+
var Ze = function(i) {
|
|
1883
1883
|
this.t[this.p] = this.e, this.data._linkCSSP(this, this._next, null, !0);
|
|
1884
1884
|
};
|
|
1885
1885
|
M._addLazySet = function(i, o, l) {
|
|
1886
1886
|
var a = this._firstPT = new kt(i, o, 0, 0, this._firstPT, 2);
|
|
1887
|
-
a.e = l, a.setRatio =
|
|
1887
|
+
a.e = l, a.setRatio = Ze, a.data = this;
|
|
1888
1888
|
}, M._linkCSSP = function(i, o, l, a) {
|
|
1889
1889
|
return i && (o && (o._prev = i), i._next && (i._next._prev = i._prev), i._prev ? i._prev._next = i._next : this._firstPT === i && (this._firstPT = i._next, a = !0), l ? l._next = i : a || this._firstPT !== null || (this._firstPT = i), i._next = o, i._prev = l), i;
|
|
1890
1890
|
}, M._mod = function(i) {
|
|
@@ -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 N.prototype._kill.call(this, s);
|
|
1904
1904
|
};
|
|
1905
1905
|
var we = function(i, o, l) {
|
|
1906
1906
|
var a, s, d, h;
|
|
@@ -1909,72 +1909,72 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1909
1909
|
we(i[s], o, l);
|
|
1910
1910
|
else
|
|
1911
1911
|
for (a = i.childNodes, s = a.length; --s > -1; )
|
|
1912
|
-
d = a[s], h = d.type, d.style && (o.push(
|
|
1912
|
+
d = a[s], h = d.type, d.style && (o.push(ne(d)), l && l.push(d)), h !== 1 && h !== 9 && h !== 11 || !d.childNodes.length || we(d, o, l);
|
|
1913
1913
|
};
|
|
1914
|
-
return
|
|
1915
|
-
var a, s, d, h, y = J.to(i, o, l), k = [y], x = [], m = [], I = [],
|
|
1914
|
+
return $.cascadeTo = function(i, o, l) {
|
|
1915
|
+
var a, s, d, h, y = J.to(i, o, l), k = [y], x = [], m = [], I = [], B = 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
|
-
if (s =
|
|
1917
|
+
if (s = Wt(I[a], x[a], m[a]), s.firstMPT) {
|
|
1918
1918
|
s = s.difs;
|
|
1919
1919
|
for (d in l)
|
|
1920
|
-
|
|
1920
|
+
B[d] && (s[d] = l[d]);
|
|
1921
1921
|
h = {};
|
|
1922
1922
|
for (d in s)
|
|
1923
1923
|
h[d] = x[a][d];
|
|
1924
1924
|
k.push(J.fromTo(I[a], o, h, s));
|
|
1925
1925
|
}
|
|
1926
1926
|
return k;
|
|
1927
|
-
},
|
|
1927
|
+
}, N.activate([$]), $;
|
|
1928
1928
|
},
|
|
1929
1929
|
!0
|
|
1930
1930
|
), function() {
|
|
1931
|
-
var
|
|
1931
|
+
var N = Dt._gsDefine.plugin({
|
|
1932
1932
|
propName: "roundProps",
|
|
1933
1933
|
version: "1.7.0",
|
|
1934
1934
|
priority: -1,
|
|
1935
1935
|
API: 2,
|
|
1936
|
-
init: function(E,
|
|
1937
|
-
return this._tween =
|
|
1936
|
+
init: function(E, Y, $) {
|
|
1937
|
+
return this._tween = $, !0;
|
|
1938
1938
|
}
|
|
1939
1939
|
}), J = function(E) {
|
|
1940
|
-
var
|
|
1941
|
-
return function(
|
|
1942
|
-
return (Math.round(
|
|
1940
|
+
var Y = 1 > E ? Math.pow(10, (E + "").length - 2) : 1;
|
|
1941
|
+
return function($) {
|
|
1942
|
+
return (Math.round($ / E) * E * Y | 0) / Y;
|
|
1943
1943
|
};
|
|
1944
|
-
},
|
|
1944
|
+
}, Q = function(E, Y) {
|
|
1945
1945
|
for (; E; )
|
|
1946
|
-
E.f || E.blob || (E.m =
|
|
1947
|
-
},
|
|
1948
|
-
|
|
1949
|
-
var E,
|
|
1946
|
+
E.f || E.blob || (E.m = Y || Math.round), E = E._next;
|
|
1947
|
+
}, nt = N.prototype;
|
|
1948
|
+
nt._onInitAllProps = function() {
|
|
1949
|
+
var E, Y, $, mt, O = this._tween, M = O.vars.roundProps, b = {}, F = O._propLookup.roundProps;
|
|
1950
1950
|
if (typeof M != "object" || M.push)
|
|
1951
|
-
for (typeof M == "string" && (M = M.split(",")),
|
|
1952
|
-
b[M[
|
|
1951
|
+
for (typeof M == "string" && (M = M.split(",")), $ = M.length; --$ > -1; )
|
|
1952
|
+
b[M[$]] = Math.round;
|
|
1953
1953
|
else
|
|
1954
|
-
for (
|
|
1955
|
-
b[
|
|
1956
|
-
for (
|
|
1957
|
-
for (E =
|
|
1958
|
-
|
|
1954
|
+
for (mt in M)
|
|
1955
|
+
b[mt] = J(M[mt]);
|
|
1956
|
+
for (mt in b)
|
|
1957
|
+
for (E = O._firstPT; E; )
|
|
1958
|
+
Y = E._next, E.pg ? E.t._mod(b) : E.n === mt && (E.f === 2 && E.t ? Q(E.t._firstPT, b[mt]) : (this._add(E.t, mt, E.s, E.c, b[mt]), Y && (Y._prev = E._prev), E._prev ? E._prev._next = Y : O._firstPT === E && (O._firstPT = Y), E._next = E._prev = null, O._propLookup[mt] = F)), E = Y;
|
|
1959
1959
|
return !1;
|
|
1960
|
-
},
|
|
1961
|
-
this._addTween(E,
|
|
1960
|
+
}, nt._add = function(E, Y, $, mt, O) {
|
|
1961
|
+
this._addTween(E, Y, $, $ + mt, Y, O || Math.round), this._overwriteProps.push(Y);
|
|
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 E,
|
|
1970
|
-
if (typeof
|
|
1968
|
+
init: function(N, J, Q, nt) {
|
|
1969
|
+
var E, Y;
|
|
1970
|
+
if (typeof N.setAttribute != "function")
|
|
1971
1971
|
return !1;
|
|
1972
1972
|
for (E in J)
|
|
1973
|
-
|
|
1974
|
-
|
|
1973
|
+
Y = J[E], typeof Y == "function" && (Y = Y(nt, N)), this._addTween(
|
|
1974
|
+
N,
|
|
1975
1975
|
"setAttribute",
|
|
1976
|
-
|
|
1977
|
-
|
|
1976
|
+
N.getAttribute(E) + "",
|
|
1977
|
+
Y + "",
|
|
1978
1978
|
E,
|
|
1979
1979
|
!1,
|
|
1980
1980
|
E
|
|
@@ -1986,19 +1986,19 @@ 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(
|
|
1989
|
+
init: function(N, J, Q, nt) {
|
|
1990
1990
|
typeof J != "object" && (J = { rotation: J }), this.finals = {};
|
|
1991
|
-
var E,
|
|
1991
|
+
var E, Y, $, mt, O, M, b = J.useRadians === !0 ? 2 * Math.PI : 360, F = 1e-6;
|
|
1992
1992
|
for (E in J)
|
|
1993
|
-
E !== "useRadians" && (
|
|
1994
|
-
typeof
|
|
1995
|
-
),
|
|
1993
|
+
E !== "useRadians" && (mt = J[E], typeof mt == "function" && (mt = mt(nt, N)), M = (mt + "").split("_"), Y = M[0], $ = parseFloat(
|
|
1994
|
+
typeof N[E] != "function" ? N[E] : N[E.indexOf("set") || typeof N["get" + E.substr(3)] != "function" ? E : "get" + E.substr(3)]()
|
|
1995
|
+
), mt = this.finals[E] = typeof Y == "string" && Y.charAt(1) === "=" ? $ + parseInt(Y.charAt(0) + "1", 10) * Number(Y.substr(2)) : Number(Y) || 0, O = mt - $, M.length && (Y = M.join("_"), Y.indexOf("short") !== -1 && (O %= b, O !== O % (b / 2) && (O = 0 > O ? O + b : O - b)), Y.indexOf("_cw") !== -1 && 0 > O ? O = (O + 9999999999 * b) % b - (O / b | 0) * b : Y.indexOf("ccw") !== -1 && O > 0 && (O = (O - 9999999999 * b) % b - (O / b | 0) * b)), (O > F || -F > O) && (this._addTween(N, E, $, $ + O, E), this._overwriteProps.push(E)));
|
|
1996
1996
|
return !0;
|
|
1997
1997
|
},
|
|
1998
|
-
set: function(
|
|
1998
|
+
set: function(N) {
|
|
1999
1999
|
var J;
|
|
2000
|
-
if (
|
|
2001
|
-
this._super.setRatio.call(this,
|
|
2000
|
+
if (N !== 1)
|
|
2001
|
+
this._super.setRatio.call(this, N);
|
|
2002
2002
|
else
|
|
2003
2003
|
for (J = this._firstPT; J; )
|
|
2004
2004
|
J.f ? J.t[J.p](this.finals[J.p]) : J.t[J.p] = this.finals[J.p], J = J._next;
|
|
@@ -2006,13 +2006,13 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2006
2006
|
})._autoCSS = !0, Dt._gsDefine(
|
|
2007
2007
|
"easing.Back",
|
|
2008
2008
|
["easing.Ease"],
|
|
2009
|
-
function(
|
|
2010
|
-
var J,
|
|
2009
|
+
function(N) {
|
|
2010
|
+
var J, Q, nt, E, Y = Dt.GreenSockGlobals || Dt, $ = Y.com.greensock, mt = 2 * Math.PI, O = Math.PI / 2, M = $._class, b = function(t, _) {
|
|
2011
2011
|
var n = M("easing." + t, function() {
|
|
2012
|
-
}, !0), g = n.prototype = new
|
|
2012
|
+
}, !0), g = n.prototype = new N();
|
|
2013
2013
|
return g.constructor = n, g.getRatio = _, n;
|
|
2014
|
-
}, F =
|
|
2015
|
-
},
|
|
2014
|
+
}, F = N.register || function() {
|
|
2015
|
+
}, G = function(t, _, n, g, p) {
|
|
2016
2016
|
var T = M(
|
|
2017
2017
|
"easing." + t,
|
|
2018
2018
|
{ easeOut: new _(), easeIn: new n(), easeInOut: new g() },
|
|
@@ -2028,11 +2028,11 @@ 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 N();
|
|
2032
2032
|
return g.constructor = n, g.getRatio = _, g.config = function(p) {
|
|
2033
2033
|
return new n(p);
|
|
2034
2034
|
}, n;
|
|
2035
|
-
}, v =
|
|
2035
|
+
}, v = G(
|
|
2036
2036
|
"Back",
|
|
2037
2037
|
L("BackOut", function(t) {
|
|
2038
2038
|
return (t -= 1) * t * ((this._p1 + 1) * t + this._p1) + 1;
|
|
@@ -2049,7 +2049,7 @@ 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 N();
|
|
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 : _;
|
|
@@ -2061,34 +2061,34 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
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 = J.prototype = new
|
|
2064
|
+
), e = J.prototype = new N(), 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
2066
|
}, e.config = J.config = function(t, _) {
|
|
2067
2067
|
return new J(t, _);
|
|
2068
|
-
},
|
|
2068
|
+
}, Q = 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 = Q.prototype = new N(), e.constructor = Q, 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 = Q.config = function(t, _, n) {
|
|
2077
|
+
return new Q(t, _, n);
|
|
2078
|
+
}, nt = M(
|
|
2079
2079
|
"easing.RoughEase",
|
|
2080
2080
|
function(t) {
|
|
2081
2081
|
t = t || {};
|
|
2082
|
-
for (var _, n, g, p, T,
|
|
2083
|
-
_ = et ? Math.random() : 1 /
|
|
2082
|
+
for (var _, n, g, p, T, S, D = t.taper || "none", R = [], Z = 0, V = 0 | (t.points || 20), tt = V, et = t.randomize !== !1, dt = t.clamp === !0, at = t.template instanceof N ? t.template : null, K = typeof t.strength == "number" ? 0.4 * t.strength : 0.4; --tt > -1; )
|
|
2083
|
+
_ = et ? Math.random() : 1 / V * tt, n = at ? at.getRatio(_) : _, D === "none" ? g = K : D === "out" ? (p = 1 - _, g = p * p * K) : D === "in" ? g = _ * _ * K : 0.5 > _ ? (p = 2 * _, g = p * p * 0.5 * K) : (p = 2 * (1 - _), g = p * p * 0.5 * K), et ? n += Math.random() * g - 0.5 * g : tt % 2 ? n += 0.5 * g : n -= 0.5 * g, dt && (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
|
-
}),
|
|
2087
|
-
T = R[tt],
|
|
2088
|
-
this._prev = new st(0, 0,
|
|
2086
|
+
}), S = new st(1, 1, null), tt = V; --tt > -1; )
|
|
2087
|
+
T = R[tt], S = new st(T.x, T.y, S);
|
|
2088
|
+
this._prev = new st(0, 0, S.t !== 0 ? S : S.next);
|
|
2089
2089
|
},
|
|
2090
2090
|
!0
|
|
2091
|
-
), e =
|
|
2091
|
+
), e = nt.prototype = new N(), e.constructor = nt, e.getRatio = function(t) {
|
|
2092
2092
|
var _ = this._prev;
|
|
2093
2093
|
if (t > _.t) {
|
|
2094
2094
|
for (; _.next && t >= _.t; )
|
|
@@ -2099,8 +2099,8 @@ 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 nt(t);
|
|
2103
|
+
}, nt.ease = new nt(), G(
|
|
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;
|
|
@@ -2112,7 +2112,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
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
|
+
), G(
|
|
2116
2116
|
"Circ",
|
|
2117
2117
|
b("CircOut", function(t) {
|
|
2118
2118
|
return Math.sqrt(1 - (t -= 1) * t);
|
|
@@ -2126,15 +2126,15 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2126
2126
|
), E = function(t, _, n) {
|
|
2127
2127
|
var g = M(
|
|
2128
2128
|
"easing." + t,
|
|
2129
|
-
function(T,
|
|
2130
|
-
this._p1 = T >= 1 ? T : 1, this._p2 = (
|
|
2129
|
+
function(T, S) {
|
|
2130
|
+
this._p1 = T >= 1 ? T : 1, this._p2 = (S || n) / (1 > T ? T : 1), this._p3 = this._p2 / mt * (Math.asin(1 / this._p1) || 0), this._p2 = mt / this._p2;
|
|
2131
2131
|
},
|
|
2132
2132
|
!0
|
|
2133
|
-
), p = g.prototype = new
|
|
2134
|
-
return p.constructor = g, p.getRatio = _, p.config = function(T,
|
|
2135
|
-
return new g(T,
|
|
2133
|
+
), p = g.prototype = new N();
|
|
2134
|
+
return p.constructor = g, p.getRatio = _, p.config = function(T, S) {
|
|
2135
|
+
return new g(T, S);
|
|
2136
2136
|
}, g;
|
|
2137
|
-
},
|
|
2137
|
+
}, G(
|
|
2138
2138
|
"Elastic",
|
|
2139
2139
|
E(
|
|
2140
2140
|
"ElasticOut",
|
|
@@ -2157,7 +2157,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2157
2157
|
},
|
|
2158
2158
|
0.45
|
|
2159
2159
|
)
|
|
2160
|
-
),
|
|
2160
|
+
), G(
|
|
2161
2161
|
"Expo",
|
|
2162
2162
|
b("ExpoOut", function(t) {
|
|
2163
2163
|
return 1 - Math.pow(2, -10 * t);
|
|
@@ -2168,13 +2168,13 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
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
|
+
), G(
|
|
2172
2172
|
"Sine",
|
|
2173
2173
|
b("SineOut", function(t) {
|
|
2174
|
-
return Math.sin(t *
|
|
2174
|
+
return Math.sin(t * O);
|
|
2175
2175
|
}),
|
|
2176
2176
|
b("SineIn", function(t) {
|
|
2177
|
-
return -Math.cos(t *
|
|
2177
|
+
return -Math.cos(t * O) + 1;
|
|
2178
2178
|
}),
|
|
2179
2179
|
b("SineInOut", function(t) {
|
|
2180
2180
|
return -0.5 * (Math.cos(Math.PI * t) - 1);
|
|
@@ -2183,24 +2183,24 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2183
2183
|
"easing.EaseLookup",
|
|
2184
2184
|
{
|
|
2185
2185
|
find: function(t) {
|
|
2186
|
-
return
|
|
2186
|
+
return N.map[t];
|
|
2187
2187
|
}
|
|
2188
2188
|
},
|
|
2189
2189
|
!0
|
|
2190
|
-
), F(
|
|
2190
|
+
), F(Y.SlowMo, "SlowMo", "ease,"), F(nt, "RoughEase", "ease,"), F(J, "SteppedEase", "ease,"), v;
|
|
2191
2191
|
},
|
|
2192
2192
|
!0
|
|
2193
2193
|
);
|
|
2194
|
-
}), Dt._gsDefine && Dt._gsQueue.pop()(), function(
|
|
2195
|
-
var
|
|
2196
|
-
if (
|
|
2197
|
-
return typeof module < "u" && module.exports && (module.exports =
|
|
2198
|
-
var
|
|
2194
|
+
}), Dt._gsDefine && Dt._gsQueue.pop()(), function(N, J) {
|
|
2195
|
+
var Q = {}, nt = N.document, E = N.GreenSockGlobals = N.GreenSockGlobals || N, Y = E[J];
|
|
2196
|
+
if (Y)
|
|
2197
|
+
return typeof module < "u" && module.exports && (module.exports = Y), Y;
|
|
2198
|
+
var $, mt, O, M, b, F = function(r) {
|
|
2199
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;
|
|
2203
|
-
},
|
|
2203
|
+
}, G = F("com.greensock"), st = 1e-10, L = function(r) {
|
|
2204
2204
|
var u, f = [], c = r.length;
|
|
2205
2205
|
for (u = 0; u !== c; f.push(r[u++]))
|
|
2206
2206
|
;
|
|
@@ -2219,16 +2219,16 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2219
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
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] =
|
|
2222
|
+
if (E[ft] = Q[ft] = ut, typeof module < "u" && module.exports)
|
|
2223
2223
|
if (r === J) {
|
|
2224
|
-
module.exports =
|
|
2225
|
-
for (W in
|
|
2226
|
-
ut[W] =
|
|
2224
|
+
module.exports = Q[J] = ut;
|
|
2225
|
+
for (W in Q)
|
|
2226
|
+
ut[W] = Q[W];
|
|
2227
2227
|
} else
|
|
2228
|
-
|
|
2228
|
+
Q[J] && (Q[J][ft] = ut);
|
|
2229
2229
|
else
|
|
2230
2230
|
typeof define == "function" && define.amd && define(
|
|
2231
|
-
(
|
|
2231
|
+
(N.GreenSockAMDPath ? N.GreenSockAMDPath + "/" : "") + r.split(".").pop(),
|
|
2232
2232
|
[],
|
|
2233
2233
|
function() {
|
|
2234
2234
|
return ut;
|
|
@@ -2238,9 +2238,9 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2238
2238
|
this.sc[W].check();
|
|
2239
2239
|
}
|
|
2240
2240
|
}, this.check(!0);
|
|
2241
|
-
}, _ =
|
|
2241
|
+
}, _ = N._gsDefine = function(r, u, f, c) {
|
|
2242
2242
|
return new t(r, u, f, c);
|
|
2243
|
-
}, n =
|
|
2243
|
+
}, n = G._class = function(r, u, f) {
|
|
2244
2244
|
return u = u || function() {
|
|
2245
2245
|
}, _(
|
|
2246
2246
|
r,
|
|
@@ -2258,50 +2258,50 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2258
2258
|
this._func = r, this._type = f || 0, this._power = c || 0, this._params = u ? g.concat(u) : g;
|
|
2259
2259
|
},
|
|
2260
2260
|
!0
|
|
2261
|
-
), T = p.map = {},
|
|
2261
|
+
), T = p.map = {}, S = p.register = function(r, u, f, c) {
|
|
2262
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) :
|
|
2263
|
+
for (C = ft[ut], w = c ? n("easing." + C, null, !0) : G.easing[C] || {}, j = W.length; --j > -1; )
|
|
2264
2264
|
A = W[j], T[C + "." + A] = T[A + C] = w[A] = r.getRatio ? r : r[A] || new r();
|
|
2265
2265
|
};
|
|
2266
|
-
for (
|
|
2266
|
+
for (O = p.prototype, O._calcEnd = !1, O.getRatio = function(r) {
|
|
2267
2267
|
if (this._func)
|
|
2268
2268
|
return this._params[0] = r, this._func.apply(null, this._params);
|
|
2269
2269
|
var u = this._type, f = this._power, c = u === 1 ? 1 - r : u === 2 ? r : 0.5 > r ? 2 * r : 2 * (1 - r);
|
|
2270
2270
|
return f === 1 ? c *= c : f === 2 ? c *= c * c : f === 3 ? c *= c * c * c : f === 4 && (c *= c * c * c * c), u === 1 ? 1 - c : u === 2 ? c : 0.5 > r ? c / 2 : 1 - c / 2;
|
|
2271
|
-
},
|
|
2272
|
-
|
|
2273
|
-
T.linear =
|
|
2271
|
+
}, $ = ["Linear", "Quad", "Cubic", "Quart", "Quint,Strong"], mt = $.length; --mt > -1; )
|
|
2272
|
+
O = $[mt] + ",Power" + mt, S(new p(null, null, 1, mt), O, "easeOut", !0), S(new p(null, null, 2, mt), O, "easeIn" + (mt === 0 ? ",easeNone" : "")), S(new p(null, null, 3, mt), O, "easeInOut");
|
|
2273
|
+
T.linear = G.easing.Linear.easeIn, T.swing = G.easing.Quad.easeInOut;
|
|
2274
2274
|
var D = n("events.EventDispatcher", function(r) {
|
|
2275
2275
|
this._listeners = {}, this._eventTarget = r || this;
|
|
2276
2276
|
});
|
|
2277
|
-
|
|
2277
|
+
O = D.prototype, O.addEventListener = function(r, u, f, c, w) {
|
|
2278
2278
|
w = w || 0;
|
|
2279
2279
|
var C, j, A = this._listeners[r], ft = 0;
|
|
2280
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
|
+
}, O.removeEventListener = function(r, u) {
|
|
2284
2284
|
var f, c = this._listeners[r];
|
|
2285
2285
|
if (c) {
|
|
2286
2286
|
for (f = c.length; --f > -1; )
|
|
2287
2287
|
if (c[f].c === u)
|
|
2288
2288
|
return void c.splice(f, 1);
|
|
2289
2289
|
}
|
|
2290
|
-
},
|
|
2290
|
+
}, O.dispatchEvent = function(r) {
|
|
2291
2291
|
var u, f, c, w = this._listeners[r];
|
|
2292
2292
|
if (w)
|
|
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 = N.requestAnimationFrame, Z = N.cancelAnimationFrame, V = Date.now || function() {
|
|
2297
2297
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
2298
|
-
}, tt =
|
|
2299
|
-
for (
|
|
2300
|
-
R =
|
|
2298
|
+
}, tt = V();
|
|
2299
|
+
for ($ = ["ms", "moz", "webkit", "o"], mt = $.length; --mt > -1 && !R; )
|
|
2300
|
+
R = N[$[mt] + "RequestAnimationFrame"], Z = N[$[mt] + "CancelAnimationFrame"] || N[$[mt] + "CancelRequestAnimationFrame"];
|
|
2301
2301
|
n("Ticker", function(r, u) {
|
|
2302
|
-
var f, c, w, C, j, A = this, ft =
|
|
2303
|
-
var kt, he,
|
|
2304
|
-
|
|
2302
|
+
var f, c, w, C, j, A = this, ft = V(), ut = u !== !1 && R ? "auto" : !1, W = 500, pt = 33, Pt = "tick", Ot = function(vt) {
|
|
2303
|
+
var kt, he, se = V() - tt;
|
|
2304
|
+
se > W && (ft += se - pt), tt += se, 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);
|
|
@@ -2310,7 +2310,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2310
2310
|
}, A.sleep = function() {
|
|
2311
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 += -tt + (tt =
|
|
2313
|
+
w !== null ? A.sleep() : vt ? ft += -tt + (tt = V()) : A.frame > 10 && (tt = V() - W + 5), c = f === 0 ? v : ut && R ? R : function(kt) {
|
|
2314
2314
|
return setTimeout(kt, 1e3 * (j - A.time) + 1 | 0);
|
|
2315
2315
|
}, A === M && (b = !0), Ot(2);
|
|
2316
2316
|
}, A.fps = function(vt) {
|
|
@@ -2318,55 +2318,55 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2318
2318
|
}, A.useRAF = function(vt) {
|
|
2319
2319
|
return arguments.length ? (A.sleep(), ut = vt, void A.fps(f)) : ut;
|
|
2320
2320
|
}, A.fps(r), setTimeout(function() {
|
|
2321
|
-
ut === "auto" && A.frame < 5 && (
|
|
2321
|
+
ut === "auto" && A.frame < 5 && (nt || {}).visibilityState !== "hidden" && A.useRAF(!1);
|
|
2322
2322
|
}, 1500);
|
|
2323
|
-
}),
|
|
2323
|
+
}), O = G.Ticker.prototype = new G.events.EventDispatcher(), O.constructor = G.Ticker;
|
|
2324
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
|
-
var f = this.vars.useFrames ?
|
|
2327
|
+
var f = this.vars.useFrames ? ee : Gt;
|
|
2328
2328
|
f.add(this, f._time), this.vars.paused && this.paused(!0);
|
|
2329
2329
|
}
|
|
2330
2330
|
});
|
|
2331
|
-
M = et.ticker = new
|
|
2332
|
-
var
|
|
2333
|
-
b &&
|
|
2334
|
-
var r = setTimeout(
|
|
2331
|
+
M = et.ticker = new G.Ticker(), O = et.prototype, O._dirty = O._gc = O._initted = O._paused = !1, O._totalTime = O._time = 0, O._rawPrevTime = -1, O._next = O._last = O._onUpdate = O._timeline = O.timeline = null, O._paused = !1;
|
|
2332
|
+
var dt = function() {
|
|
2333
|
+
b && V() - tt > 2e3 && ((nt || {}).visibilityState !== "hidden" || !M.lagSmoothing()) && M.wake();
|
|
2334
|
+
var r = setTimeout(dt, 2e3);
|
|
2335
2335
|
r.unref && r.unref();
|
|
2336
2336
|
};
|
|
2337
|
-
|
|
2337
|
+
dt(), O.play = function(r, u) {
|
|
2338
2338
|
return r != null && this.seek(r, u), this.reversed(!1).paused(!1);
|
|
2339
|
-
},
|
|
2339
|
+
}, O.pause = function(r, u) {
|
|
2340
2340
|
return r != null && this.seek(r, u), this.paused(!0);
|
|
2341
|
-
},
|
|
2341
|
+
}, O.resume = function(r, u) {
|
|
2342
2342
|
return r != null && this.seek(r, u), this.paused(!1);
|
|
2343
|
-
},
|
|
2343
|
+
}, O.seek = function(r, u) {
|
|
2344
2344
|
return this.totalTime(Number(r), u !== !1);
|
|
2345
|
-
},
|
|
2345
|
+
}, O.restart = function(r, u) {
|
|
2346
2346
|
return this.reversed(!1).paused(!1).totalTime(r ? -this._delay : 0, u !== !1, !0);
|
|
2347
|
-
},
|
|
2347
|
+
}, O.reverse = function(r, u) {
|
|
2348
2348
|
return r != null && this.seek(r || this.totalDuration(), u), this.reversed(!0).paused(!1);
|
|
2349
|
-
},
|
|
2350
|
-
},
|
|
2349
|
+
}, O.render = function(r, u, f) {
|
|
2350
|
+
}, O.invalidate = function() {
|
|
2351
2351
|
return this._time = this._totalTime = 0, this._initted = this._gc = !1, this._rawPrevTime = -1, (this._gc || !this.timeline) && this._enabled(!0), this;
|
|
2352
|
-
},
|
|
2352
|
+
}, O.isActive = function() {
|
|
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
|
+
}, O._enabled = function(r, u) {
|
|
2356
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
|
+
}, O._kill = function(r, u) {
|
|
2358
2358
|
return this._enabled(!1, !1);
|
|
2359
|
-
},
|
|
2359
|
+
}, O.kill = function(r, u) {
|
|
2360
2360
|
return this._kill(r, u), this;
|
|
2361
|
-
},
|
|
2361
|
+
}, O._uncache = function(r) {
|
|
2362
2362
|
for (var u = r ? this : this.timeline; u; )
|
|
2363
2363
|
u._dirty = !0, u = u.timeline;
|
|
2364
2364
|
return this;
|
|
2365
|
-
},
|
|
2365
|
+
}, O._swapSelfInParams = function(r) {
|
|
2366
2366
|
for (var u = r.length, f = r.concat(); --u > -1; )
|
|
2367
2367
|
r[u] === "{self}" && (f[u] = this);
|
|
2368
2368
|
return f;
|
|
2369
|
-
},
|
|
2369
|
+
}, O._callback = function(r) {
|
|
2370
2370
|
var u = this.vars, f = u[r], c = u[r + "Params"], w = u[r + "Scope"] || u.callbackScope || this, C = c ? c.length : 0;
|
|
2371
2371
|
switch (C) {
|
|
2372
2372
|
case 0:
|
|
@@ -2381,7 +2381,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2381
2381
|
default:
|
|
2382
2382
|
f.apply(w, c);
|
|
2383
2383
|
}
|
|
2384
|
-
},
|
|
2384
|
+
}, O.eventCallback = function(r, u, f, c) {
|
|
2385
2385
|
if ((r || "").substr(0, 2) === "on") {
|
|
2386
2386
|
var w = this.vars;
|
|
2387
2387
|
if (arguments.length === 1)
|
|
@@ -2389,15 +2389,15 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2389
2389
|
u == null ? delete w[r] : (w[r] = u, w[r + "Params"] = P(f) && f.join("").indexOf("{self}") !== -1 ? this._swapSelfInParams(f) : f, w[r + "Scope"] = c), r === "onUpdate" && (this._onUpdate = u);
|
|
2390
2390
|
}
|
|
2391
2391
|
return this;
|
|
2392
|
-
},
|
|
2392
|
+
}, O.delay = function(r) {
|
|
2393
2393
|
return arguments.length ? (this._timeline.smoothChildTiming && this.startTime(this._startTime + r - this._delay), this._delay = r, this) : this._delay;
|
|
2394
|
-
},
|
|
2394
|
+
}, O.duration = function(r) {
|
|
2395
2395
|
return arguments.length ? (this._duration = this._totalDuration = r, this._uncache(!0), this._timeline.smoothChildTiming && this._time > 0 && this._time < this._duration && r !== 0 && this.totalTime(this._totalTime * (r / this._duration), !0), this) : (this._dirty = !1, this._duration);
|
|
2396
|
-
},
|
|
2396
|
+
}, O.totalDuration = function(r) {
|
|
2397
2397
|
return this._dirty = !1, arguments.length ? this.duration(r) : this._totalDuration;
|
|
2398
|
-
},
|
|
2398
|
+
}, O.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
|
+
}, O.totalTime = function(r, u, f) {
|
|
2401
2401
|
if (b || M.wake(), !arguments.length)
|
|
2402
2402
|
return this._totalTime;
|
|
2403
2403
|
if (this._timeline) {
|
|
@@ -2411,43 +2411,43 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2411
2411
|
this._gc && this._enabled(!0, !1), (this._totalTime !== r || this._duration === 0) && (yt.length && jt(), this.render(r, u, !1), yt.length && jt());
|
|
2412
2412
|
}
|
|
2413
2413
|
return this;
|
|
2414
|
-
},
|
|
2414
|
+
}, O.progress = O.totalProgress = function(r, u) {
|
|
2415
2415
|
var f = this.duration();
|
|
2416
2416
|
return arguments.length ? this.totalTime(f * r, u) : f ? this._time / f : this.ratio;
|
|
2417
|
-
},
|
|
2417
|
+
}, O.startTime = function(r) {
|
|
2418
2418
|
return arguments.length ? (r !== this._startTime && (this._startTime = r, this.timeline && this.timeline._sortChildren && this.timeline.add(this, r - this._delay)), this) : this._startTime;
|
|
2419
|
-
},
|
|
2419
|
+
}, O.endTime = function(r) {
|
|
2420
2420
|
return this._startTime + (r != 0 ? this.totalDuration() : this.duration()) / this._timeScale;
|
|
2421
|
-
},
|
|
2421
|
+
}, O.timeScale = function(r) {
|
|
2422
2422
|
if (!arguments.length)
|
|
2423
2423
|
return this._timeScale;
|
|
2424
2424
|
var u, f;
|
|
2425
2425
|
for (r = r || st, this._timeline && this._timeline.smoothChildTiming && (u = this._pauseTime, f = u || u === 0 ? u : this._timeline.totalTime(), this._startTime = f - (f - this._startTime) * this._timeScale / r), this._timeScale = r, f = this.timeline; f && f.timeline; )
|
|
2426
2426
|
f._dirty = !0, f.totalDuration(), f = f.timeline;
|
|
2427
2427
|
return this;
|
|
2428
|
-
},
|
|
2428
|
+
}, O.reversed = function(r) {
|
|
2429
2429
|
return arguments.length ? (r != this._reversed && (this._reversed = r, this.totalTime(
|
|
2430
2430
|
this._timeline && !this._timeline.smoothChildTiming ? this.totalDuration() - this._totalTime : this._totalTime,
|
|
2431
2431
|
!0
|
|
2432
2432
|
)), this) : this._reversed;
|
|
2433
|
-
},
|
|
2433
|
+
}, O.paused = function(r) {
|
|
2434
2434
|
if (!arguments.length)
|
|
2435
2435
|
return this._paused;
|
|
2436
2436
|
var u, f, c = this._timeline;
|
|
2437
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
|
-
var
|
|
2439
|
+
var at = n("core.SimpleTimeline", function(r) {
|
|
2440
2440
|
et.call(this, 0, r), this.autoRemoveChildren = this.smoothChildTiming = !0;
|
|
2441
2441
|
});
|
|
2442
|
-
|
|
2442
|
+
O = at.prototype = new et(), O.constructor = at, O.kill()._gc = !1, O._first = O._last = O._recent = null, O._sortChildren = !1, O.add = O.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; )
|
|
2446
2446
|
w = w._prev;
|
|
2447
2447
|
return w ? (r._next = w._next, w._next = r) : (r._next = this._first, this._first = r), r._next ? r._next._prev = r : this._last = r, r._prev = w, this._recent = r, this._timeline && this._uncache(!0), this;
|
|
2448
|
-
},
|
|
2448
|
+
}, O._remove = function(r, u) {
|
|
2449
2449
|
return r.timeline === this && (u || r._enabled(!1, !0), r._prev ? r._prev._next = r._next : this._first === r && (this._first = r._next), r._next ? r._next._prev = r._prev : this._last === r && (this._last = r._prev), r._next = r._prev = r.timeline = null, r === this._recent && (this._recent = this._last), this._timeline && this._uncache(!0)), this;
|
|
2450
|
-
},
|
|
2450
|
+
}, O.render = function(r, u, f) {
|
|
2451
2451
|
var c, w = this._first;
|
|
2452
2452
|
for (this._totalTime = this._time = this._rawPrevTime = r; w; )
|
|
2453
2453
|
c = w._next, (w._active || r >= w._startTime && !w._paused && !w._gc) && (w._reversed ? w.render(
|
|
@@ -2455,44 +2455,44 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2455
2455
|
u,
|
|
2456
2456
|
f
|
|
2457
2457
|
) : w.render((r - w._startTime) * w._timeScale, u, f)), w = c;
|
|
2458
|
-
},
|
|
2458
|
+
}, O.rawTime = function() {
|
|
2459
2459
|
return b || M.wake(), this._totalTime;
|
|
2460
2460
|
};
|
|
2461
|
-
var
|
|
2461
|
+
var K = n(
|
|
2462
2462
|
"TweenLite",
|
|
2463
2463
|
function(r, u, f) {
|
|
2464
|
-
if (et.call(this, u, f), this.render =
|
|
2464
|
+
if (et.call(this, u, f), this.render = K.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 : K.selector(r) || r;
|
|
2467
|
+
var c, w, C, j = r.jquery || r.length && r !== N && r[0] && (r[0] === N || r[0].nodeType && r[0].style && !r.nodeType), A = this.vars.overwrite;
|
|
2468
|
+
if (this._overwrite = A = A == null ? ce[K.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 !== N && w[0] && (w[0] === N || 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--] = K.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 !== N && r[0] && (r[0] === N || 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
|
-
|
|
2484
|
+
O = K.prototype = new et(), O.constructor = K, O.kill()._gc = !1, O.ratio = 0, O._firstPT = O._targets = O._overwrittenProps = O._startAt = null, O._notifyPluginsOfEnabled = O._lazy = !1, K.version = "2.0.2", K.defaultEase = O._ease = new p(null, null, 1, 1), K.defaultOverwrite = "auto", K.ticker = M, K.autoSleep = 120, K.lagSmoothing = function(r, u) {
|
|
2485
2485
|
M.lagSmoothing(r, u);
|
|
2486
|
-
},
|
|
2487
|
-
var u =
|
|
2488
|
-
return u ? (
|
|
2486
|
+
}, K.selector = N.$ || N.jQuery || function(r) {
|
|
2487
|
+
var u = N.$ || N.jQuery;
|
|
2488
|
+
return u ? (K.selector = u, u(r)) : (nt || (nt = N.document), nt ? nt.querySelectorAll ? nt.querySelectorAll(r) : nt.getElementById(r.charAt(0) === "#" ? r.substr(1) : r) : r);
|
|
2489
2489
|
};
|
|
2490
|
-
var yt = [], At = {},
|
|
2490
|
+
var yt = [], At = {}, Kt = /(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi, te = /[\+-]=-?[\.\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
2494
|
var w, C, j, A, ft, ut, W, pt = [], Pt = 0, Ot = "", vt = 0;
|
|
2495
|
-
for (pt.start = r, pt.end = u, r = pt[0] = r + "", u = pt[1] = u + "", f && (f(pt), r = pt[0], u = pt[1]), pt.length = 0, w = r.match(
|
|
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(Kt) || [], C = u.match(Kt) || [], 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,
|
|
@@ -2502,8 +2502,8 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2502
2502
|
f: 0,
|
|
2503
2503
|
m: vt && 4 > vt ? Math.round : 0
|
|
2504
2504
|
}), Pt += W.length;
|
|
2505
|
-
return Ot += u.substr(Pt), Ot && pt.push(Ot), pt.setRatio = bt,
|
|
2506
|
-
},
|
|
2505
|
+
return Ot += u.substr(Pt), Ot && pt.push(Ot), pt.setRatio = bt, te.test(u) && (pt.end = null), pt;
|
|
2506
|
+
}, $t = function(r, u, f, c, w, C, j, A, ft) {
|
|
2507
2507
|
typeof c == "function" && (c = c(ft || 0, r));
|
|
2508
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,
|
|
@@ -2519,7 +2519,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2519
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 || K.defaultStringFilter,
|
|
2523
2523
|
vt
|
|
2524
2524
|
), vt = {
|
|
2525
2525
|
t: ut,
|
|
@@ -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 = K._internals = {
|
|
2536
2536
|
isArray: P,
|
|
2537
2537
|
isSelector: gt,
|
|
2538
2538
|
lazyTweens: yt,
|
|
2539
2539
|
blobDif: ae
|
|
2540
|
-
}, Et =
|
|
2540
|
+
}, Et = K._plugins = {}, zt = le.tweenLookup = {}, ie = 0, _e = le.reservedProps = {
|
|
2541
2541
|
ease: 1,
|
|
2542
2542
|
delay: 1,
|
|
2543
2543
|
overwrite: 1,
|
|
@@ -2583,22 +2583,22 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2583
2583
|
preexisting: 5,
|
|
2584
2584
|
true: 1,
|
|
2585
2585
|
false: 0
|
|
2586
|
-
},
|
|
2586
|
+
}, ee = et._rootFramesTimeline = new at(), Gt = et._rootTimeline = new at(), re = 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,
|
|
2592
|
+
Gt._startTime = M.time, ee._startTime = M.frame, Gt._active = ee._active = !0, setTimeout(jt, 1), et._updateRoot = K.render = function() {
|
|
2593
2593
|
var r, u, f;
|
|
2594
|
-
if (yt.length && jt(), Gt.render((M.time - Gt._startTime) * Gt._timeScale, !1, !1),
|
|
2595
|
-
|
|
2594
|
+
if (yt.length && jt(), Gt.render((M.time - Gt._startTime) * Gt._timeScale, !1, !1), ee.render((M.frame - ee._startTime) * ee._timeScale, !1, !1), yt.length && jt(), M.frame >= re) {
|
|
2595
|
+
re = M.frame + (parseInt(K.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) && K.autoSleep && !ee._first && M._listeners.tick.length === 1) {
|
|
2602
2602
|
for (; f && f._paused; )
|
|
2603
2603
|
f = f._next;
|
|
2604
2604
|
f || M.sleep();
|
|
@@ -2607,13 +2607,13 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2607
2607
|
}, M.addEventListener("tick", et._updateRoot);
|
|
2608
2608
|
var wt = function(r, u, f) {
|
|
2609
2609
|
var c, w, C = r._gsTweenID;
|
|
2610
|
-
if (zt[C || (r._gsTweenID = C = "t" +
|
|
2610
|
+
if (zt[C || (r._gsTweenID = C = "t" + ie++)] || (zt[C] = { target: r, tweens: [] }), u && (c = zt[C].tweens, c[w = c.length] = u, f))
|
|
2611
2611
|
for (; --w > -1; )
|
|
2612
2612
|
c[w] === u && c.splice(w, 1);
|
|
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 = K.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) {
|
|
@@ -2626,7 +2626,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2626
2626
|
}
|
|
2627
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 ? (ut = ut ||
|
|
2629
|
+
(A = w[C]) === u || A._gc || A._paused || (A._timeline !== u._timeline ? (ut = ut || ne(u, 0, Ot), ne(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))
|
|
@@ -2634,7 +2634,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2634
2634
|
A._enabled(!1, !1) && (j = !0);
|
|
2635
2635
|
}
|
|
2636
2636
|
return j;
|
|
2637
|
-
},
|
|
2637
|
+
}, ne = function(r, u, f) {
|
|
2638
2638
|
for (var c = r._timeline, w = c._timeScale, C = r._startTime; c._timeline; ) {
|
|
2639
2639
|
if (C += c._startTime, w *= c._timeScale, c._paused)
|
|
2640
2640
|
return -100;
|
|
@@ -2642,13 +2642,13 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2642
2642
|
}
|
|
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
|
+
O._init = function() {
|
|
2646
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 = 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 =
|
|
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 = K.to(this.target || {}, 0, w), ut) {
|
|
2652
2652
|
if (this._time > 0)
|
|
2653
2653
|
this._startAt = null;
|
|
2654
2654
|
else if (ft !== 0)
|
|
@@ -2661,13 +2661,13 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2661
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 = ut && j.lazy !== !1, f.immediateRender = ut, this._startAt =
|
|
2664
|
+
if (f.overwrite = 0, f.data = "isFromStart", f.lazy = ut && j.lazy !== !1, f.immediateRender = ut, this._startAt = K.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 = W = W ? W instanceof p ? W : typeof W == "function" ? new p(W, j.easeParams) : T[W] ||
|
|
2670
|
+
if (this._ease = W = W ? W instanceof p ? W : typeof W == "function" ? new p(W, j.easeParams) : T[W] || K.defaultEase : K.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,15 +2684,15 @@ 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 && K._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
|
+
}, O._initProps = function(r, u, f, c, w) {
|
|
2692
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 !== N && r.nodeType && Et.css && this.vars.autoCSS !== !1 && Yt(this.vars, r);
|
|
2696
2696
|
for (C in this.vars)
|
|
2697
2697
|
if (W = this.vars[C], _e[C])
|
|
2698
2698
|
W && (W instanceof Array || W.push && P(W)) && W.join("").indexOf("{self}") !== -1 && (this.vars[C] = W = this._swapSelfInParams(W, this));
|
|
@@ -2712,7 +2712,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2712
2712
|
u[ft._overwriteProps[j]] = this._firstPT;
|
|
2713
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] = $t.call(
|
|
2716
2716
|
this,
|
|
2717
2717
|
r,
|
|
2718
2718
|
C,
|
|
@@ -2725,7 +2725,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2725
2725
|
w
|
|
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
|
+
}, O.render = function(r, u, f) {
|
|
2729
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
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);
|
|
@@ -2748,10 +2748,10 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2748
2748
|
C.f ? C.t[C.p](C.c * this.ratio + C.s) : C.t[C.p] = C.c * this.ratio + C.s, C = C._next;
|
|
2749
2749
|
this._onUpdate && (0 > r && this._startAt && r !== -1e-4 && this._startAt.render(r, !0, f), u || (this._time !== A || c || f) && this._callback("onUpdate")), w && (!this._gc || f) && (0 > r && this._startAt && !this._onUpdate && r !== -1e-4 && this._startAt.render(r, !0, f), c && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !u && this.vars[w] && this._callback(w), ft === 0 && this._rawPrevTime === st && j !== st && (this._rawPrevTime = 0));
|
|
2750
2750
|
}
|
|
2751
|
-
},
|
|
2751
|
+
}, O._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 :
|
|
2754
|
+
u = typeof u != "string" ? u || this._targets || this.target : K.selector(u) || u;
|
|
2755
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; )
|
|
@@ -2769,7 +2769,7 @@ 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 (ut = r || A, W = r !== w && w !== "all" && r !== A && (typeof r != "object" || !r._tempKill), f && (
|
|
2772
|
+
if (ut = r || A, W = r !== w && w !== "all" && r !== A && (typeof r != "object" || !r._tempKill), f && (K.onOverwrite || this.vars.onOverwrite)) {
|
|
2773
2773
|
for (C in ut)
|
|
2774
2774
|
A[C] && (pt || (pt = []), pt.push(C));
|
|
2775
2775
|
if ((pt || !r) && !Vt(this, f, u, pt))
|
|
@@ -2781,9 +2781,9 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2781
2781
|
}
|
|
2782
2782
|
}
|
|
2783
2783
|
return ft;
|
|
2784
|
-
},
|
|
2785
|
-
return this._notifyPluginsOfEnabled &&
|
|
2786
|
-
},
|
|
2784
|
+
}, O.invalidate = function() {
|
|
2785
|
+
return this._notifyPluginsOfEnabled && K._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
|
+
}, O._enabled = function(r, u) {
|
|
2787
2787
|
if (b || M.wake(), r && this._gc) {
|
|
2788
2788
|
var f, c = this._targets;
|
|
2789
2789
|
if (c)
|
|
@@ -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 et.prototype._enabled.call(this, r, u), this._notifyPluginsOfEnabled && this._firstPT ?
|
|
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 ? K._onPluginEvent(r ? "_onEnable" : "_onDisable", this) : !1;
|
|
2796
|
+
}, K.to = function(r, u, f) {
|
|
2797
|
+
return new K(r, u, f);
|
|
2798
|
+
}, K.from = function(r, u, f) {
|
|
2799
|
+
return f.runBackwards = !0, f.immediateRender = f.immediateRender != 0, new K(r, u, f);
|
|
2800
|
+
}, K.fromTo = function(r, u, f, c) {
|
|
2801
|
+
return c.startAt = f, c.immediateRender = c.immediateRender != 0 && f.immediateRender != 0, new K(r, u, c);
|
|
2802
|
+
}, K.delayedCall = function(r, u, f, c, w) {
|
|
2803
|
+
return new K(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
|
+
}, K.set = function(r, u) {
|
|
2816
|
+
return new K(r, 0, u);
|
|
2817
|
+
}, K.getTweensOf = function(r, u) {
|
|
2818
2818
|
if (r == null)
|
|
2819
2819
|
return [];
|
|
2820
|
-
r = typeof r != "string" ? r :
|
|
2820
|
+
r = typeof r != "string" ? r : K.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(K.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,19 +2829,19 @@ 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
|
+
}, K.killTweensOf = K.killDelayedCallsTo = function(r, u, f) {
|
|
2833
2833
|
typeof u == "object" && (f = u, u = !1);
|
|
2834
|
-
for (var c =
|
|
2834
|
+
for (var c = K.getTweensOf(r, u), w = c.length; --w > -1; )
|
|
2835
2835
|
c[w]._kill(f, r);
|
|
2836
2836
|
};
|
|
2837
|
-
var
|
|
2837
|
+
var Wt = n(
|
|
2838
2838
|
"plugins.TweenPlugin",
|
|
2839
2839
|
function(r, u) {
|
|
2840
|
-
this._overwriteProps = (r || "").split(","), this._propName = this._overwriteProps[0], this._priority = u || 0, this._super =
|
|
2840
|
+
this._overwriteProps = (r || "").split(","), this._propName = this._overwriteProps[0], this._priority = u || 0, this._super = Wt.prototype;
|
|
2841
2841
|
},
|
|
2842
2842
|
!0
|
|
2843
2843
|
);
|
|
2844
|
-
if (
|
|
2844
|
+
if (O = Wt.prototype, Wt.version = "1.19.0", Wt.API = 2, O._firstPT = null, O._addTween = $t, O.setRatio = bt, O._kill = function(r) {
|
|
2845
2845
|
var u, f = this._overwriteProps, c = this._firstPT;
|
|
2846
2846
|
if (r[this._propName] != null)
|
|
2847
2847
|
this._overwriteProps = [];
|
|
@@ -2851,10 +2851,10 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2851
2851
|
for (; c; )
|
|
2852
2852
|
r[c.n] != null && (c._next && (c._next._prev = c._prev), c._prev ? (c._prev._next = c._next, c._prev = null) : this._firstPT === c && (this._firstPT = c._next)), c = c._next;
|
|
2853
2853
|
return !1;
|
|
2854
|
-
},
|
|
2854
|
+
}, O._mod = O._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
|
+
}, K._onPluginEvent = function(r, u) {
|
|
2858
2858
|
var f, c, w, C, j, A = u._firstPT;
|
|
2859
2859
|
if (r === "_onInitAllProps") {
|
|
2860
2860
|
for (; A; ) {
|
|
@@ -2867,9 +2867,9 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2867
2867
|
for (; A; )
|
|
2868
2868
|
A.pg && typeof A.t[r] == "function" && A.t[r]() && (f = !0), A = A._next;
|
|
2869
2869
|
return f;
|
|
2870
|
-
},
|
|
2870
|
+
}, Wt.activate = function(r) {
|
|
2871
2871
|
for (var u = r.length; --u > -1; )
|
|
2872
|
-
r[u].API ===
|
|
2872
|
+
r[u].API === Wt.API && (Et[new r[u]()._propName] = r[u]);
|
|
2873
2873
|
return !0;
|
|
2874
2874
|
}, _.plugin = function(r) {
|
|
2875
2875
|
if (!(r && r.propName && r.init && r.API))
|
|
@@ -2884,40 +2884,88 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2884
2884
|
}, j = n(
|
|
2885
2885
|
"plugins." + f.charAt(0).toUpperCase() + f.substr(1) + "Plugin",
|
|
2886
2886
|
function() {
|
|
2887
|
-
|
|
2887
|
+
Wt.call(this, f, c), this._overwriteProps = w || [];
|
|
2888
2888
|
},
|
|
2889
2889
|
r.global === !0
|
|
2890
|
-
), A = j.prototype = new
|
|
2890
|
+
), A = j.prototype = new Wt(f);
|
|
2891
2891
|
A.constructor = j, j.API = r.API;
|
|
2892
2892
|
for (u in C)
|
|
2893
2893
|
typeof r[u] == "function" && (A[C[u]] = r[u]);
|
|
2894
|
-
return j.version = r.version,
|
|
2895
|
-
},
|
|
2896
|
-
for (
|
|
2897
|
-
|
|
2898
|
-
for (
|
|
2899
|
-
e[
|
|
2894
|
+
return j.version = r.version, Wt.activate([j]), j;
|
|
2895
|
+
}, $ = N._gsQueue) {
|
|
2896
|
+
for (mt = 0; mt < $.length; mt++)
|
|
2897
|
+
$[mt]();
|
|
2898
|
+
for (O in e)
|
|
2899
|
+
e[O].func || N.console.log("GSAP encountered missing dependency: " + O);
|
|
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 fi = [
|
|
2906
|
+
const fi = { class: "modal-background" }, pi = ["innerHTML"], ci = {
|
|
2907
|
+
name: "MapModali"
|
|
2908
|
+
}, mi = /* @__PURE__ */ Xe({
|
|
2909
|
+
...ci,
|
|
2910
|
+
props: {
|
|
2911
|
+
// text: {
|
|
2912
|
+
// type: String,
|
|
2913
|
+
// default: "CHBIM云平台",
|
|
2914
|
+
// },
|
|
2915
|
+
},
|
|
2916
|
+
setup(N, { expose: J }) {
|
|
2917
|
+
const Q = Ae(""), nt = Ae(""), E = ($) => {
|
|
2918
|
+
nt.value = $, Q.value = "five";
|
|
2919
|
+
}, Y = () => {
|
|
2920
|
+
Q.value = Q.value + " out";
|
|
2921
|
+
};
|
|
2922
|
+
return Le(() => {
|
|
2923
|
+
}), J({
|
|
2924
|
+
text: nt,
|
|
2925
|
+
show: E
|
|
2926
|
+
}), ($, mt) => (Ce(), Me("div", {
|
|
2927
|
+
id: "modal-container",
|
|
2928
|
+
class: Ie(Q.value),
|
|
2929
|
+
onClick: Y
|
|
2930
|
+
}, [
|
|
2931
|
+
Jt("div", fi, [
|
|
2932
|
+
Jt("div", {
|
|
2933
|
+
class: "modal",
|
|
2934
|
+
onClick: mt[0] || (mt[0] = (O) => {
|
|
2935
|
+
O.stopPropagation();
|
|
2936
|
+
})
|
|
2937
|
+
}, [
|
|
2938
|
+
Jt("p", {
|
|
2939
|
+
style: { "white-space": "pre-line", "line-height": "1", margin: "0" },
|
|
2940
|
+
innerHTML: nt.value
|
|
2941
|
+
}, null, 8, pi)
|
|
2942
|
+
])
|
|
2943
|
+
])
|
|
2944
|
+
], 2));
|
|
2945
|
+
}
|
|
2946
|
+
});
|
|
2947
|
+
const di = [ti], yi = {
|
|
2907
2948
|
continuation: null,
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2949
|
+
mapModali: null,
|
|
2950
|
+
install(N) {
|
|
2951
|
+
if (di.forEach(($, mt) => {
|
|
2952
|
+
N.component($.name, $);
|
|
2911
2953
|
}), this.continuation) {
|
|
2912
|
-
|
|
2954
|
+
N.config.globalProperties.$continuation = this.continuation;
|
|
2955
|
+
return;
|
|
2956
|
+
}
|
|
2957
|
+
let J = je(ui), Q = document.createElement("div"), nt = document.body;
|
|
2958
|
+
if (nt.appendChild(Q), this.loading = J.mount(Q), N.config.globalProperties.$loading = this.loading, window.$continuation = this.loading, this.mapModali) {
|
|
2959
|
+
N.config.globalProperties.$mapModali = this.mapModali;
|
|
2913
2960
|
return;
|
|
2914
2961
|
}
|
|
2915
|
-
let
|
|
2916
|
-
|
|
2962
|
+
let E = je(mi), Y = document.createElement("div");
|
|
2963
|
+
nt.appendChild(Y), this.mapModali = E.mount(Y), N.config.globalProperties.$mapModali = this.mapModali, window.$mapModali = this.mapModali;
|
|
2917
2964
|
}
|
|
2918
2965
|
};
|
|
2919
2966
|
export {
|
|
2920
2967
|
ti as Button,
|
|
2921
2968
|
ui as Cutscenes,
|
|
2922
|
-
|
|
2969
|
+
mi as MapModali,
|
|
2970
|
+
yi as default
|
|
2923
2971
|
};
|