!function (t) {
var e = {};
function i(r) {
if (e[r])
return e[r].exports;
var n = e[r] = {
i: r,
l: !1,
exports: {}
};
return t[r].call(n.exports, n, n.exports, i),
n.l = !0,
n.exports
}
window.zhiyuan = i;
i.m = t,
i.c = e,
i.d = function (t, e, r) {
i.o(t, e) || Object.defineProperty(t, e, {
enumerable: !0,
get: r
})
}
,
i.r = function (t) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
value: "Module"
}),
Object.defineProperty(t, "__esModule", {
value: !0
})
}
,
i.t = function (t, e) {
if (1 & e && (t = i(t)),
8 & e)
return t;
if (4 & e && "object" == typeof t && t && t.__esModule)
return t;
var r = Object.create(null);
if (i.r(r),
Object.defineProperty(r, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var n in t)
i.d(r, n, function (e) {
return t[e]
}
.bind(null, n));
return r
}
,
i.n = function (t) {
var e = t && t.__esModule ? function () {
return t.default
}
: function () {
return t
}
;
return i.d(e, "a", e),
e
}
,
i.o = function (t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
i.p = "//a.msstatic.com/huya/h5player/room/2201191559/";
}({
"++EQ": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n \n \n \n
\n
确定
\n
取消
\n
\n
\n
去充值
\n
\n
\n
已完成
\n
未完成
\n
\n
\n \n
联系客服
\n
\n
\n
\n\n
'
, __filename = "src/tpl/accompany/accompany-alert.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n \n \n \n
\n
确定
\n
取消
\n
\n
\n
去充值
\n
\n
\n
已完成
\n
未完成
\n
\n
\n \n
联系客服
\n
\n
\n
\n\n
'),
__line = 23;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
"+4MH": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n
\n
\n 猜(1/3)\n 我是MVP吗\n
\n 00后停种\n 开种\n
\n
\n \n
能
\n
123456
\n \n \n
\n VS\n
\n \n
不能
\n
123456
\n \n \n
\n
\n'
, __filename = "src/tpl/guess/guess-item.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n
\n
\n 猜(1/3)\n 我是MVP吗\n
\n 00后停种\n 开种\n
\n
\n \n
能
\n
123456
\n \n \n
\n VS\n
\n \n
不能
\n
123456
\n \n \n
\n
\n'),
__line = 26;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
"+mX4": function (t, e, i) {
function r(t, e) {
var i = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter((function (e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
}
))),
i.push.apply(i, r)
}
return i
}
function n(t) {
for (var e = 1; e < arguments.length; e++) {
var i = null != arguments[e] ? arguments[e] : {};
e % 2 ? r(i, !0).forEach((function (e) {
s(t, e, i[e])
}
)) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : r(i).forEach((function (e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e))
}
))
}
return t
}
function s(t, e, i) {
return e in t ? Object.defineProperty(t, e, {
value: i,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[e] = i,
t
}
t.exports = function (t, e) {
var r = t.G
, s = t.Event
, o = t.Console
, a = (t.utils,
t.taf)
, c = a.HUYA
, d = a.Taf
, u = new (i("aliu"))(t)
, h = new XMLSerializer
, p = null
, l = null
, f = !1
, m = 0
, w = 0
, I = {}
, y = 0
, g = 0
, S = 50
, v = $("#danmuwrap")
, _ = localStorage.getItem("danmuMaskFrame") || 0
, T = 0
, R = 0
, b = !1;
function P() {
var t = window.TT_ENV_DETECTOR;
t && t.browser && ("safari" == t.browser.name || "firefox" == t.browser.name) || (r.isUserInfoInited() ? x() : s.addEvent(s.USER_INFO_INITED, x),
s.addEvent(s.NEW_VIDEO, x))
}
function x() {
if (r.streamInfo && p != r.streamInfo.sStreamName) {
k(),
p = r.streamInfo.sStreamName;
var e = new c.GetMaskConfigReq;
e.uid = r.presenterUid,
e.streamName = p,
t.sendWup2("mediaui", "getMaskConfig", e, C)
}
}
function C(t) {
var i = t.hasMask;
l = "",
1 == i && (b || ($(window).resize(A),
A(),
b = !0),
e.setDanmuMaskUI(),
l = t.broadcastGroup,
e.isNeedMask() && U()),
r.danmuMaskbroadcastGroup = l
}
function U() {
l && (f || (r.vplayerUI.registerGroup(l),
f = !0,
0 == m && (m = setInterval(L, S)),
r.hasDanmuMask = !0))
}
function k() {
l && f && (r.vplayerUI.unRegisterGroup(l),
function () {
for (var t in r.danmuGroudId) {
if (r.danmuGroudId[t] == l)
return void r.danmuGroudId.splice(t, 1)
}
}(),
f = !1,
clearInterval(m),
m = 0,
r.hasDanmuMask = !1)
}
function L() {
w = 1 == R ? r.vplayer.getCurrentSeiDts() : r.vplayer.getCurrentTime();
var t = function () {
var t = null;
for (var e in I) {
if (!(e < w)) {
if (e >= w && e < w + S) {
t = n({}, I[e]),
delete I[e];
break
}
break
}
delete I[e]
}
return t
}();
t && (!function (t) {
if (!t.maskPoly)
return;
var e = "";
for (var i in t.maskPoly) {
var r = t.maskPoly[i];
e += " M" + r.join(" ") + "z"
}
if ("" == e)
return void G();
if (M == e)
return;
M = e,
1 == _ && $("#testSvgPath").attr("d", "M0,0v".concat(g, "h").concat(y, "V0H0z").concat(e));
var n = h.serializeToString($(""))[0])
, s = window.btoa(n);
v.css("mask-image", "url(data:image/svg+xml;base64," + s + ")")
}(function (t) {
var e = t.figs
, i = e.fig_width
, r = e.fig_height
, n = e.contrs.value
, s = {
maskPoly: []
};
s.polyCount = n.length;
var o = 0
, a = 0
, c = t.frame_width
, d = t.frame_height
, u = y
, h = g
, p = 0
, l = 0
, f = 0
, m = 0;
c / d > u / h ? (p = u,
m = (h - (l = d * u / c)) / 2) : (l = h,
f = (u - (p = c * h / d)) / 2);
for (var w = 0; w < s.polyCount; w++) {
var I = n[w];
if (I) {
var S = I.x
, v = I.y
, _ = I.pts.value;
s.maskPoly[w] = [];
for (var T = _.length, R = 0; R < T; R++)
R % 2 == 0 ? o = (o = S + _[R]) / i * p + f : R % 2 == 1 && (a = (a = v + _[R]) / r * l + m,
s.maskPoly[w].push(o + "," + a))
}
}
return s
}(t)),
clearTimeout(T),
T = setTimeout(G, 500))
}
function N(t) {
R != t && (w = 1 == (R = t) ? r.vplayer.getCurrentSeiDts() : r.vplayer.getCurrentTime(),
I = {})
}
function E(t) {
var e = t.pts
, i = t.seidts;
1 == R ? I[i] = t : I[e] = t
}
!function () {
if (r.danmuMask && (setTimeout(P, 5e3),
1 == _)) {
var t = $("\n \n ");
v.parent().append(t)
}
}();
var M = "";
function A() {
y = v.width(),
g = v.height()
}
function G() {
v.css("mask-image", ""),
_ && $("#testSvgPath").attr("d", "M0,0v0h0V0H0z")
}
this.setSei = function (t) {
var e = y
, i = g
, r = u.unmarshall(t);
if (r) {
for (var n = "", s = 0; s < r.polyCount; s++) {
n += " M" + r.maskPoly[s].join(" ") + "z"
}
if (0 != r.polyCount) {
var o = h.serializeToString($("")[0])
, a = window.btoa(o);
v.css("mask-image", "url(data:image/svg+xml;base64," + a + ")")
} else
v.css("mask-image", "")
}
}
,
this.clearMask = G,
this.registerDanmuGroup = U,
this.unRegisterDanmuGroup = k,
this.setMaskData = function (t) {
t.iMaskType,
t.sStreamName,
t.lPid;
var e = t.seiDts
, i = t.lPts;
if (e && e != i) {
if (N(1),
1 == _ && o.log(e, w, e - w, "seiDts,curPts,seiDts-curPts 注 :服务端推送时间、当前视频时间、推送-当前(ms)"),
e < w)
return
} else if (N(0),
1 == _ && o.log(i, w, i - w, "lPts,curPts,lPts-curPts 注 :服务端推送时间、当前视频时间、推送-当前(ms)"),
i < w)
return;
for (var r = t.sBackgroundMask.value, n = r.length, s = 0; s < n; s++) {
var a = r[s]
, u = new d.JceInputStream(a.buffer)
, h = new c.DanmuCVMaskProto;
h.readFrom(u),
a.data = h,
E(h)
}
}
,
window.testDanmuMask = function () {
}
,
window.danmuMaskLength = 10,
window.frameRate = 25
}
},
"+o7d": function (t, e, i) {
t.exports = function (t) {
var e, r, n, s, o, a, c, d, u, h, p = this, l = t.G, f = t.Event, m = t.ENV, w = t.utils, I = t.R,
y = i("GYB3"), g = i("izBd"), S = i("mq93"), v = i("itZY"), _ = i("Wz/o"), T = i("ktl9"), R = i("FRey"),
b = i("K9xO"), P = i("komX");
function x() {
if (null == u) {
var e = i("uDiH");
u = new e(t)
}
}
function C() {
x(),
u.autoGetLog()
}
function U(t) {
x(),
u.onHuYaUdbNotify(t)
}
function k(t) {
x(),
u.showFeedbackByExt(t)
}
function L() {
var t = $(c).width()
, e = $(a).width()
, i = (t - e) / 2;
i = Math.min(i, t - e - 600),
$(a).css("left", i + "px")
}
function N() {
var t = $("#player-replayicon");
t.css("visibility", "hidden"),
$(d).mousemove((function () {
t.removeClass("delayhide"),
t.css("visibility", "visible")
}
)),
$(d).mousestop((function () {
t.addClass("delayhide")
}
)),
$(d).mouseleave((function () {
t.css("visibility", "hidden")
}
))
}
function E() {
x(),
u.isShow ? u.hide() : u.show(),
u.isShow && I.huyuReport("click/kongzhi/fankui")
}
function M() {
var t = $(".player-refresh-btn");
l.hasVideo ? ($("#player-btn").show(),
l.isVideoMaster() || ($(".player-chest").show(),
f.fireEvent(f.ACTIVITY_ICON_COUNT_UPDATE, {
icon: $(".player-chest"),
priority: 995,
key: "box",
value: 1
})),
e.isPlaying() ? (t.show(),
$(".player-play-big").hide(),
$(".player-app-qrcode").hide()) : (t.hide(),
$(".player-play-big").show(),
$(".player-app-qrcode").show())) : ($("#player-btn").hide(),
$(".player-play-big").hide(),
$(".player-app-qrcode").hide(),
$(".player-chest").hide(),
f.fireEvent(f.ACTIVITY_ICON_COUNT_UPDATE, {
icon: $(".player-chest"),
priority: 995,
key: "box",
value: 0
}),
t.hide())
}
h = i("bQv4")(),
$("#player-ctrl-wrap").html(h),
$(".player-ctrl-wrap img").each(w.NoDrag),
a = document.querySelector("#player-full-input"),
c = document.querySelector("#player-ctrl-wrap"),
d = document.querySelector("#player-wrap"),
e = new y(p, t),
r = new g(p, t),
b(t),
$(".player-report-btn").click(E),
1 == m.isSimple && $("#videoContainer").addClass("mod-simple"),
f.addEvent(f.AUTO_FEEDBACK, C),
f.addEvent(f.SHOW_FEEDBACK_BY_EXT, k),
t.addTafListener("10220051", U),
this.delayInit = function () {
this.volume = new S(p, t),
n = new v(p, t),
s = new _(p, t),
o = new T(t),
(l.is360Video || l.extStreamVR) && new R(p, t),
new P(t),
function () {
var t = $("#player-replayicon");
if (!l.isReplay)
return;
t.show(),
t.css("visibility", "visible"),
setTimeout(N, 3e5)
}(),
M(),
function () {
var t;
t = m.profileRoom > 0 ? m.profileRoom : m.pyyid;
$("#hy-watermark").text("虎牙直播 " + t)
}(),
$(window).resize(w.throttle(L, 200))
}
,
this.updateBtnsVisible = M,
this.showFeedback = E,
this.closeFeedback = function () {
u && u.hide()
}
,
this.showPlayTip = function (t, i) {
e.showPlayTip(t, i)
}
,
this.turnPlayButtonOn = function () {
e.turnPlayButtonOn()
}
,
this.setLineList = function (t) {
r.setLineList(t)
}
,
this.setBitRateList = function (t) {
r.setBitRateList(t)
}
,
this.updateCurBitRateMenu = function () {
r.updateCurBitRateMenu()
}
,
this.changeToLowBitRateText = function () {
r.changeToLowBitRateText()
}
,
this.changeToNextBitrate = function () {
r.changeToNextBitrate()
}
,
this.quitFullMode = function () {
n.quitFullMode()
}
,
this.quitFullscreen = function () {
n.quitFullscreen()
}
,
this.recharge = function () {
s.recharge()
}
,
this.hideGuess = function () {
s.hideGuess()
}
,
this.setDanmuVisible = function (t) {
o && o.setVisible(t)
}
,
this.showCtrlWrap = function () {
n && n.showCtrlWrap()
}
}
},
"+pUA": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n
陪练下单
\n
\n \n
返回
\n
\n \n \n
\n
\n
\n \n
\n
\n
\n \n
\n \n \n \n \n
数量
\n
服务时间
\n
\n \n
\n
\n \n \n
\n
\n \n \n
\n
\n\n
\n 切换技能\n \n
\n
\n
\n \n 1\n \n
\n
\n \n 小计:\n \n
\n\n\n
\n \n 合计:\n \n
\n\n
支付订单
\n\n
\n \n
\n \n \n
\n 月\n
\n \n \n
\n 日\n
\n \n \n
\n 时\n
\n \n \n
\n 分\n
\n\n
\n 支付方式\n
\n
\n \n
\n
虎牙币(0)
\n
刷新
\n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
'
, __filename = "src/tpl/accompany/accompany-panel.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n
陪练下单
\n
\n \n
返回
\n
\n \n \n
\n
\n
\n \n
\n
\n
\n \n
\n \n \n \n \n
数量
\n
服务时间
\n
\n \n
\n
\n \n \n
\n
\n \n \n
\n
\n\n
\n 切换技能\n \n
\n
\n
\n \n 1\n \n
\n
\n \n 小计:\n \n
\n\n\n
\n \n 合计:\n \n
\n\n
支付订单
\n\n
\n \n
\n \n \n
\n 月\n
\n \n \n
\n 日\n
\n \n \n
\n 时\n
\n \n \n
\n 分\n
\n\n
\n 支付方式\n
\n
\n \n
\n
虎牙币(0)
\n
刷新
\n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
'),
__line = 105;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
"/gJ+": function (t, e, i) {
t.exports = function (t) {
var e = t.G
, r = t.Event
, n = t.taf.HUYA
, s = ""
, o = null
, a = null
, c = []
, d = "voice_mute"
, u = "video_pixelate"
, h = "ai_caption"
, p = "ai_subtitles";
function l() {
if (e.streamInfo && s != e.streamInfo.sStreamName) {
s = e.streamInfo.sStreamName,
function () {
for (var t in c)
e.vplayerUI.unRegisterGroup(c[t]);
a && a.turnOff()
}();
var i = new n.GetOrderBroadcastInfoReq;
i.anthorId = e.presenterUid,
2 == e.captionMode ? i.busses.value = [d, u, p] : i.busses.value = [d, u, h],
i.streamName = s,
t.sendWup2("mediaui", "getOrderBroadcastConfig", i, f)
}
}
function f(t) {
var i = t.ret
, r = t.anthorId
, n = t.broadcastInfos;
if (0 == i && r == e.presenterUid) {
var s = n.value;
for (var o in s) {
var c = s[o]
, l = c.buss
, f = c.enable
, y = c.broadcastGroup;
if (!(f < 1)) {
switch (l) {
case d:
break;
case u:
m();
break;
case h:
case p:
if (w(c),
a && !a.isOpen())
continue
}
I(y)
}
}
}
}
function m() {
if (null == o) {
var e = i("56qE");
o = new e(t)
}
}
function w(e) {
if (null == a) {
var r = i("Cqih");
a = new r(t, e)
}
a.setGroudName(e.broadcastGroup)
}
function I(t) {
c.push(t),
e.vplayerUI.registerGroup(t)
}
e.isUserInfoInited() ? l() : r.addEvent(r.USER_INFO_INITED, l),
r.addEvent(r.NEW_VIDEO, l)
}
},
"/jxY": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n \n
种豆成功,谢谢您的参与!
\n \n
我的选择:一定能
\n
剩余种豆:123456
\n \n
\n
50
\n
100
\n
1000
\n
全种
\n
\n
幸运可得0
\n
我的余额:
\n \n
\n \n 我已同意\n 虎牙种豆规范 \n
\n\n
\n'
, __filename = "src/tpl/guess/guess-plan.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n \n
种豆成功,谢谢您的参与!
\n \n
我的选择:一定能
\n
剩余种豆:123456
\n \n
\n
50
\n
100
\n
1000
\n
全种
\n
\n
幸运可得0
\n
我的余额:
\n \n
\n \n 我已同意\n 虎牙种豆规范 \n
\n\n
\n'),
__line = 24;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
"0o2X": function (t, e, i) {
t.exports = function (t) {
var e, r, n, s = [], o = 0, a = this, c = !1, d = !1, u = 0, h = 0, p = -1, l = !1, f = !1, m = !1, w = !1,
I = t.G, y = t.Event, g = t.Console, S = t.ENV, v = t.ISDEBUG, _ = t.utils, T = t.taf.HUYA, R = 0,
b = [], P = !1, x = i("A3DX"), C = i("TaSU"), U = null;
function k(t) {
0 == t ? (L(),
M()) : 1 == t && Y()
}
function L() {
l || (t.addTafListener("1025601", j),
t.addTafListener("1025604", G),
t.addTafListener("1025605", A),
y.addEvent(y.MAKE_FRIEND_AUDIO_SOUND, V),
y.addEvent(y.VIDEO_PLAY, E),
y.addEvent(y.SET_MAKEFRIEND_VIDEO, N),
$("#player-mouse-event-wrap").css({
width: 0,
height: 0
}),
l = !0)
}
function N(t) {
P ? $("#make-friend-video-virtual-pk").append(t) : I.hasMFVideo && $("#make-friend-video-cotainer").append(t)
}
function E() {
o = 0
}
function M() {
!function () {
var e = new T.GetMakeFriendsPKInfoReq;
e.tId = I.userId,
e.lPid = I.presenterUid,
t.sendWup2("mfui", "getMakeFriendsPKInfo", e, B)
}()
}
function A(t) {
I.isMakeFriend && setTimeout((function (t) {
var e = t.tNotice
, i = "//www.huya.com/";
v && (i = "//test-www.huya.com/"),
e.iRoomId && e.iRoomId > 0 ? i += e.iRoomId : i += "yy/" + e.lYYId,
window.location.href = i
}
), 3e3, t)
}
function G(t) {
I.isMakeFriend && (0 != R && 2 != R || (F(t, !1),
W(),
z()))
}
function B(e) {
n = e.tPKInfo,
function () {
var e = new T.GetMeetingStatByUidReq;
e.tId = I.userId,
e.lUid = I.presenterUid,
e.lSessionId = 0,
t.sendWup2("mfui", "getMeetingStatByPresenterUid", e, O)
}()
}
function F(t, e) {
var i = t.lPKSessionId
, r = t.iStatus;
d = i > 0 && (0 == r || 3 == r);
var n, s = t.lRemainingSecond;
$("#mf-pk-logo").css("display", d ? "block" : "none"),
i > 0 && p != r && (p = r,
0 == r && (h = s,
D(),
clearInterval(u),
u = setInterval(D, 1e3)),
0 != r || e || (n = "url(" + I.H5ROOT + "src/img/output/mf-pk.webp?" + Math.random() + ")",
$("#mf-pk-logo-effect").css("background", n),
$("#mf-pk-logo").hide(),
$("#mf-pk-logo-effect").show(),
setTimeout((function () {
$("#mf-pk-logo-effect").hide(),
$("#mf-pk-logo").show()
}
), 2e3))),
1 == r || 2 == r && X("PK已关闭,回到正常直播"),
function (t) {
var e = t.tTeam1
, i = t.tTeam2
, r = t.iStatus
, n = e.lScore
, s = i.lScore;
$("#mf-pk-bar-left").find("span").text(e.lScore),
$("#mf-pk-bar-right").find("span").text(i.lScore),
$("#mf-pk-bar-left").removeClass("mf-pk-bar-left-bg mf-pk-bar-left-negative-bg"),
$("#mf-pk-bar-left").addClass(n >= 0 ? "mf-pk-bar-left-bg" : "mf-pk-bar-left-negative-bg"),
$("#mf-pk-bar-right").removeClass("mf-pk-bar-right-bg mf-pk-bar-right-negative-bg"),
$("#mf-pk-bar-right").addClass(s >= 0 ? "mf-pk-bar-right-bg" : "mf-pk-bar-right-negative-bg"),
$("#mf-pk-charm-left").removeClass("mf-pk-charm-left-bg mf-pk-charm-left-negative-bg"),
$("#mf-pk-charm-left").addClass(n >= 0 ? "mf-pk-charm-left-bg" : "mf-pk-charm-left-negative-bg"),
$("#mf-pk-charm-right").removeClass("mf-pk-charm-right-bg mf-pk-charm-right-negative-bg"),
$("#mf-pk-charm-right").addClass(s >= 0 ? "mf-pk-charm-right-bg" : "mf-pk-charm-right-negative-bg"),
$("#mf-pk-result-left").css("display", 3 == r ? "block" : "none"),
$("#mf-pk-result-right").css("display", 3 == r ? "block" : "none"),
3 == r && ($("#mf-pk-result-left").removeClass("mf-pk-result-win mf-pk-result-lose mf-pk-result-draw"),
$("#mf-pk-result-right").removeClass("mf-pk-result-win mf-pk-result-lose mf-pk-result-draw"),
n > s ? ($("#mf-pk-result-left").addClass("mf-pk-result-win"),
$("#mf-pk-result-right").addClass("mf-pk-result-lose")) : n == s ? ($("#mf-pk-result-left").addClass("mf-pk-result-draw"),
$("#mf-pk-result-right").addClass("mf-pk-result-draw")) : ($("#mf-pk-result-left").addClass("mf-pk-result-lose"),
$("#mf-pk-result-right").addClass("mf-pk-result-win")))
}(t)
}
function D() {
if ($("#mf-pk-count-down-fire").css("display", h > 0 && h < 31 ? "block" : "none"),
h < 0)
return clearInterval(u),
void $("#mf-pk-count-down").find("span").text("已结束");
var t = _.formatTime(h);
$("#mf-pk-count-down").find("span").text(t),
h--
}
function V(t) {
if (I.isMakeFriend) {
var e = t.uid;
if (g.log("onAudioSound", e),
e != I.presenterUid) {
var i = function (t) {
for (var e = 0, i = s.length; e < i; e++)
if (t == s[e].uid())
return s[e];
return null
}(e);
i && i.showWaveEffect()
} else
!function () {
if (c)
return;
c = !0,
$(".make-friend-present").find("#wave-effect").show(),
setTimeout((function () {
$(".make-friend-present").find("#wave-effect").hide(),
c = !1
}
), 2e3)
}()
}
}
function O(e) {
y.fireEvent(y.SET_MEETING_STAT, e),
Y();
var o = e.tStat
, c = (r = o.tStat).iState;
f = I.openMFVideo && r.mpContext.value.has_video && 1 == r.mpContext.value.has_video && null != I.streamInfo && I.hasVideo,
tt(r),
m = null != I.streamInfo && I.hasVideo,
I.hasMFVideo = f,
I.useCdnAll = m,
I.hasVirtualPk = P,
I.hasMFVideo || I.useCdnAll ? I.vplayer.play() : I.vplayer.hideLoading(),
R = r.iModeV2,
U = i("4ZS2")(),
$(U).prependTo("#player-video"),
q(),
H();
var d = o.vSeats.value;
if (b = d,
s = [],
1 != c && 0 == d.length)
for (var u = 0; u < 8; u++) {
var h = new T.MeetingSeat;
h.sName = u + 1 + "麦",
h.iLocked = 1,
d.push(h)
}
for (var p = 0, l = (u = 0,
d.length); u < l; u++) {
var w = d[u];
if (0 == w.iSeatTypeV2) {
p++;
var g = new x(a, t);
4 != p && 8 != p || g.item().addClass("last")
} else
g = new C(a, t, R);
g.setData(w),
s.push(g)
}
J(d),
0 != R && 2 != R || (!function (t) {
$(".make-friend-present").find("img").attr("src", t.sPresenterAvatarUrl || S.avatarImg);
var e = _.setLongString(t.sPresenterNick || S.pnick, 5);
$(".make-friend-present").find(".make-friend-nick").text(e),
$(".make-friend-present").find(".make-friend-nick").css("top", "107px"),
$(".make-friend-present").find(".wave").css({
width: "102px",
height: "102px"
}),
t.iGender ? ($(".make-friend-present").find(".wave.ripple .circle").css("border-color", "#96caff"),
$(".make-friend-present").find(".make-friend-head").css("border", "2px solid #96caff")) : ($(".make-friend-present").find(".wave.ripple .circle").css("border-color", "#ffa5f0"),
$(".make-friend-present").find(".make-friend-head").css("border", "2px solid #ffa5f0"));
$(".make-friend-present").find(".make-friend-present-close-mic").css("display", t.iSilence || t.iMute ? "block" : "none")
}(r),
F(n, !0),
W()),
$(window).resize(z),
z(),
function () {
var e = new T.GetMakeFriendsAnnouncementReq;
e.tId = I.userId,
e.lUid = I.presenterUid,
t.sendWup2("mfui", "getMakeFriendsAnnouncement", e, Q)
}()
}
function q() {
$(".make-friend-present").css("display", 0 != R && 2 != R || f ? "none" : "block"),
$(".make-friend-top-wrap").css("display", 1 == R || 3 == R ? "flex" : "none"),
$(".make-friend-radio-view").css("display", 4 == R ? "block" : "none")
}
function H() {
P ? ($("#make-friend-video-virtual-pk").show(),
$(".make-friend-wrap").hide()) : ($("#make-friend-video-virtual-pk").hide(),
$(".make-friend-wrap").show()),
$("#make-friend-video-cotainer").css("display", f ? "block" : "none")
}
function W() {
for (var t = 0, e = s.length; t < e; t++) {
var i = s[t].pos();
d ? 1 == i || 3 == i || 5 == i || 7 == i ? s[t].item().css("margin-right", "32px") : 2 != i && 6 != i || s[t].item().css("margin-right", "110px") : 4 != i && 8 != i && s[t].item().css("margin-right", "58px")
}
$(".make-friend-pk-wrap").css("display", d ? "block" : "none")
}
function z() {
if (I.isMakeFriend) {
var t = $(".make-friend-wrap")
, e = $("#player-video").width()
, i = $("#player-video").height()
, r = t.width()
, n = t.height();
d && (n += 60);
var s = (e - r) / 2
, o = (i - n) / 2;
o = Math.max(0, o),
t.css({
left: s,
top: o
})
}
}
function j(t) {
if (I.isMakeFriend && 0 != s.length && !(o > t.iVersion)) {
if (o = t.iVersion,
r = t.tStat,
f = I.openMFVideo && r.mpContext.value.has_video && 1 == r.mpContext.value.has_video && null != I.streamInfo && I.hasVideo,
m = null != I.streamInfo && I.hasVideo,
tt(r),
!I.isUIPause)
(!I.hasMFVideo && f || !I.useCdnAll && m || I.hasVirtualPk != P) && y.fireEvent(y.PLAY_AGAIN);
if (I.hasMFVideo = f,
I.useCdnAll = m,
I.hasVirtualPk = P,
q(),
H(),
y.fireEvent(y.SET_MEETING_STAT, t),
R != r.iModeV2)
return Y(),
I.vplayer.showLoading(),
void M();
var e = t.vSeats.value;
b = e;
for (var i = 0, n = e.length; i < n; i++) {
var a = e[i]
, c = K(a.iPos);
c && c.setData(a)
}
J(e),
$(".make-friend-present").find(".make-friend-present-close-mic").css("display", t.tStat.iSilence || t.tStat.iMute ? "block" : "none"),
z()
}
}
function Y() {
U && ($("#make-friend").unbind(),
$("#make-friend").remove(),
U = null)
}
function J(t) {
I.makeFriendData = [{
pos: -1,
tag: "主播",
nick: r.sPresenterNick,
uid: r.lPresenterUid,
avatarUrl: r.sPresenterAvatarUrl
}];
for (var e = 0, i = t.length; e < i; e++) {
var n = t[e];
if (n.lUid > 0 && n.lUid != I.yyuid) {
var s = n.sName.replace("号麦位", "麦")
, o = {
pos: n.iPos,
tag: s,
nick: n.sNick,
uid: n.lUid,
avatarUrl: n.sAvatarUrl
};
I.makeFriendData.push(o)
}
}
}
function K(t) {
for (var e = 0, i = s.length; e < i; e++)
if (t == s[e].pos())
return s[e];
return null
}
function X(t) {
(e = $(".make-friend-tips")).show(),
e.text(t),
setTimeout((function () {
e.fadeOut("normal", (function () {
e.hide()
}
))
}
), 2e3)
}
function Q(t) {
var e = t.sAnnouncement;
$(".make-friend-announcement-content").text(e),
$(".make-friend-announcement-open").click(Z),
$(".make-friend-announcement-close").click(Z),
w = !1
}
function Z() {
w = !w,
$(".make-friend-announcement-open").css("visibility", w ? "visible" : "hidden"),
$(".make-friend-announcement-close").css("visibility", w ? "hidden" : "visible")
}
function tt(t) {
P = t.mpContext.value.has_virtual_pk && 1 == t.mpContext.value.has_virtual_pk,
g.log("虚拟主播Pk", P)
}
y.addEvent(y.MAKEFIREND_TEMPLATE_CHANGE, k),
I.isMakeFriend && (L(),
I.isUserInfoInited() ? M() : y.addEvent(y.USER_INFO_INITED, M)),
this.showTips = X,
this.getJoinMicUserList = function () {
if (!I.isMakeFriend)
return {
res: -2,
msg: "不是交友直播间",
data: []
};
var t = [];
for (var e in b) {
var i = b[e]
, r = i.lUid;
if (0 != r) {
var n = i.sNick
, s = i.sAvatarUrl
, o = i.iSeatTypeV2
, a = i.iPos
, c = i.sName;
t.push({
uid: r,
userNick: n,
userAvatarUrl: s,
status: 1,
seatType: o,
pos: a,
seatName: c
})
}
}
return {
res: 0,
msg: "成功",
data: t
}
}
,
window.testCharm = function (t, e) {
var i = K(t);
i && i.testCharm(e)
}
,
window.testMFPk = function (t) {
var e = new T.MakeFriendsPKInfo;
e.iStatus = t,
e.lRemainingSecond = 20,
e.tTeam1 = new T.MakeFriendsPKTeam,
e.tTeam1.lScore = 50,
e.tTeam2 = new T.MakeFriendsPKTeam,
e.tTeam2.lScore = -30,
G(e)
}
}
},
"0r9D": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = "
\n 全新赛事观看模式,如上帝般自由操作\n \n \n
我知道了
\n
"
, __filename = "src/tpl/others/ob-watch.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append("
\n 全新赛事观看模式,如上帝般自由操作\n \n \n
我知道了
\n
"),
__line = 6;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
"1Ip7": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n
单击礼物图标即可快速送礼,快试试吧~
\n 我知道了\n \n
'
, __filename = "src/tpl/gift/gift-word.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n
单击礼物图标即可快速送礼,快试试吧~
\n 我知道了\n \n
'),
__line = 5;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
"2By3": function (t, e, i) {
t.exports = function () {
var t, e, r, n, s, o, a, c, d = this, u = null, h = null, p = !1, l = [], f = null, m = null, w = null,
I = null, y = null;
function g() {
var t = I.width()
, e = n.width();
t < e && t ? (m.show(),
n.removeClass("center"),
r.removeClass("no-arrow-btn")) : (m.hide(),
n.addClass("center"),
r.addClass("no-arrow-btn")),
S()
}
function S() {
var i = r.scrollLeft()
, s = n.width() - I.width();
t.css("pointer-events", 0 == i ? "none" : "auto"),
e.css("pointer-events", i == s ? "none" : "auto")
}
function v() {
var t = r.scrollLeft();
r.scrollLeft(t - 390),
t = r.scrollLeft(),
s.css("left", t),
w.updatePos(),
S(),
c.huyuReport("click/hudong/jingcai/fanye")
}
function _() {
var t = r.scrollLeft();
r.scrollLeft(t + 390),
t = r.scrollLeft(),
s.css("left", t),
w.updatePos(),
S(),
c.huyuReport("click/hudong/jingcai/fanye")
}
function T() {
if (c.huyuReport("click/hudong/jingcai/wode"),
o.isLogin) {
var t = "//i.huya.com/index.php?m=Guess";
a && (t = "//test.i.huya.com/index.php?m=Guess"),
window.open(t)
} else
h.popLogin()
}
function R() {
window.open("//help.huya.com/118"),
c.huyuReport("click/hudong/jingcai/bangzhu")
}
function b() {
o.isLogin ? (h.trigger("guessReport"),
h.quitFullscreen()) : h.popLogin()
}
function P() {
for (var t = y.getList(), e = 0, i = t.length; e < i; e++) {
var r = t[e].getByType(1);
l[e].setData(r, e, i)
}
}
this.initialize = function (p, l) {
var P;
u = p,
h = l,
o = l.G,
a = l.ISDEBUG,
c = l.R,
y = p.getGameData(),
P = i("pW4W")(),
$("#player-guess-wrap").html(P),
w = u.getUI("PLAN"),
f = $(".guess-main"),
m = $(".guess-main-arrow"),
t = $(".guess-main-arrow-l"),
e = $(".guess-main-arrow-r"),
I = $(".guess-main-current"),
r = $(".guess-main-box-wrap"),
n = r.find(".box-container"),
$(".guess-scroll-bar"),
s = $(".guess-scroll-bar span"),
r.on("mousewheel", (function (t, e) {
var i = r.scrollLeft();
return r.scrollLeft(i - 50 * e),
i = r.scrollLeft(),
s.css("left", i),
w.updatePos(),
S(),
!1
}
)),
t.click(v),
e.click(_),
I.resize(g),
$(".guess-main-close").click(d.hide),
$(".guess-main-mine").click(T),
$(".guess-main-help").click(R),
$(".guess-main-feedback").click(b)
}
,
this.show = function () {
(p = !p) ? (g(),
f.show(),
c.huyuReport("click/hudong/jingcai/on")) : (c.huyuReport("click/hudong/jingcai/close"),
d.hide())
}
,
this.hide = function () {
1 == p && c.huyuReport("click/hudong/jingcai/close"),
p = !1,
f.hide(),
u.getUI("PLAN").hide(),
u.getUI("OPEN").hide()
}
,
this.isShow = function () {
return p
}
;
var x = i("hgzU");
this.onTafGameInfoNotice = function () {
l = [],
n.empty();
for (var t = y.getTotal(), e = 0; e < t; e++)
l.push(new x(u, h));
n.css("width", 390 * t),
g(),
P()
}
,
this.onTafGameInfoChange = function () {
P()
}
,
this.onTafGameEnd = function () {
P(),
u.getUI("PLAN").hide(),
u.getUI("OPEN").hide()
}
}
},
"2s9n": function (t, e, i) {
t.exports = function (t, e) {
var r, n, s, o, a, c = this, d = t.G, u = t.Event, h = t.utils, p = t.ENV, l = null, f = null, m = !1,
w = 0, I = 55, y = 24, g = i("wdHI"), S = i("XYhB"), v = i("FMYs"), _ = i("km/6"), T = i("WaOd"),
R = i("alRd"), b = null;
function P() {
clearTimeout(w),
w = setTimeout(U, 100)
}
function x(t) {
var e = sessionStorage.propsDict;
return (e = JSON.parse(e))[t]
}
function C(t) {
var e = t.vPropsIdentity.value;
if (e.length < 1)
return "";
var i = e[0].sPropsWeb;
return d.isHttps() && (i = i.replace("http:", "https:")),
i.split("&")[0]
}
function U() {
var t = $(".player-gift-left").width()
, e = t > 50 ? t : 54
, i = $(".player-gift-right").width() + 6
, r = $("#player-gift-wrap").width()
, n = r - e - i - 58;
f.hasSuperStarRankIcon() && (n -= 58),
r >= 710 && (n -= 50);
var s = $(".player-face-list li").length * I
, a = d.priorityGiftShowNum * I
, c = s > n || s > a;
$(".player-face-pre").css("display", c ? "block" : "none"),
$(".player-face-next").css("display", c ? "block" : "none"),
c && (n -= 2 * y);
var u = n / I >> 0;
u > d.priorityGiftShowNum && (u = d.priorityGiftShowNum),
k = Math.min(u * I, s),
$(".player-face-list").width(k),
o.resize(k),
N = k - s,
L = Math.max(L, N),
A()
}
this.setData = function (e) {
!function () {
r && (r.unbind(),
r.empty());
n && n.clear()
}();
var s = i("Y+xY");
s = s({
propsList: e,
ENV: p,
getIconUrl: C,
G: d
}),
(r = $("#player-face")).html(s),
n = new g(c, t),
$(".player-face-pre").click(E),
$(".player-face-next").click(M),
$(".player-face img").each(h.NoDrag),
0 == m && (o = new S(c, t),
l = new v(t),
f = new _(t),
a = new T(t),
u.fireEvent(u.PROPS_INITED),
u.addEvent(u.SHOW_GIFT_TIP, F),
$("#player-gift-wrap").resize(P),
u.addEvent(u.GIFT_RESIZE, P),
m = !0),
P()
}
,
this.getLayer = function () {
return r
}
,
this.getSupport = function () {
return a
}
,
this.sendGift = function (i, r) {
var n = x(i);
s || (s = new R(t, e)),
s.sendGift(n, r)
}
,
this.storeProps = function (t) {
for (var e = t.length, i = 0; i < e; i++) {
var r = t[i];
d.propsDict[r.iPropsId] = r
}
!function (t, e) {
var i = JSON.stringify(e);
sessionStorage[t] = i
}("propsDict", d.propsDict)
}
,
this.setGiftWeekStar = function (t) {
l.setGiftWeekStar(t)
}
,
this.updateWeekStar = function (t) {
l.updateWeekStar(t)
}
,
this.setSuperFansCount = function (t) {
var e = t.count
, i = ".player-face-gift[propsId=20317]";
$(i) && ($(i).find(".player-superfans-card-count").css("display", e > 0 ? "block" : "none"),
$(i).find(".player-superfans-card-count").text(e))
}
;
var k = 0
, L = 0
, N = 0;
function E() {
L < 0 && (L = Math.min(L + k, 0),
A())
}
function M() {
L > N && (L -= k,
A())
}
function A() {
$(".player-face-list ul").css("left", L),
$(".player-face-pre").css("pointer-events", 0 == L ? "none" : "auto"),
$(".player-face-next").css("pointer-events", L <= N ? "none" : "auto")
}
var G = null
, B = 0;
function F(t) {
null == G && (G = i("BlJU"),
r.append(G),
$(".ext-gift-tip-close").click(D)),
$("#ext-gift-tip").show(),
$("#ext-gift-tip span").text(t.msg),
clearTimeout(B),
B = setTimeout((function () {
D()
}
), 1e4)
}
function D() {
$("#ext-gift-tip").hide()
}
this.getPropsData = x,
this.getGifIconUrl = function (t) {
var e = t.vPropsIdentity.value;
if (e.length < 1)
return "";
var i = e[0].sPropsPicGif;
return d.isHttps() && (i = i.replace("http:", "https:")),
i.split("&")[0]
}
,
this.getIconUrl = C,
this.hasStar = function (t) {
return l.hasStar(t)
}
,
this.onSendGift = function (e) {
for (var n = e.iItemType, s = x(n), a = e.iItemCount, c = C(s), d = r.find(".player-face-gift"), u = 0; u < d.length; u++) {
var h = $(d[u]);
if (parseInt(h.attr("propsId")) == parseInt(n)) {
null == b && (b = i("Dl3+")),
new b(t).play(h, a, c);
break
}
}
o.hide()
}
,
this.clearCombo = function () {
n.clearCombo()
}
,
this.setCombo = function (t, e) {
n.setCombo(t, e)
}
}
},
"3HMh": function (t, e) {
function i(t) {
return t < 128 ? [t] : t < 2048 ? [192 + (t >> 6), 128 + (63 & t)] : [224 + (t >> 12), 128 + (t >> 6 & 63), 128 + (63 & t)]
}
function r(t, e) {
this.typeNumber = -1,
this.errorCorrectLevel = e,
this.modules = null,
this.moduleCount = 0,
this.dataCache = null,
this.rsBlocks = null,
this.totalDataCount = -1,
this.data = t,
this.utf8bytes = function (t) {
for (var e = [], r = 0; r < t.length; r++)
for (var n = i(t.charCodeAt(r)), s = 0; s < n.length; s++)
e.push(n[s]);
return e
}(t),
this.make()
}
r.prototype = {
constructor: r,
getModuleCount: function () {
return this.moduleCount
},
make: function () {
this.getRightType(),
this.dataCache = this.createData(),
this.createQrcode()
},
makeImpl: function (t) {
this.moduleCount = 4 * this.typeNumber + 17,
this.modules = new Array(this.moduleCount);
for (var e = 0; e < this.moduleCount; e++)
this.modules[e] = new Array(this.moduleCount);
this.setupPositionProbePattern(0, 0),
this.setupPositionProbePattern(this.moduleCount - 7, 0),
this.setupPositionProbePattern(0, this.moduleCount - 7),
this.setupPositionAdjustPattern(),
this.setupTimingPattern(),
this.setupTypeInfo(!0, t),
this.typeNumber >= 7 && this.setupTypeNumber(!0),
this.mapData(this.dataCache, t)
},
setupPositionProbePattern: function (t, e) {
for (var i = -1; i <= 7; i++)
if (!(t + i <= -1 || this.moduleCount <= t + i))
for (var r = -1; r <= 7; r++)
e + r <= -1 || this.moduleCount <= e + r || (this.modules[t + i][e + r] = 0 <= i && i <= 6 && (0 == r || 6 == r) || 0 <= r && r <= 6 && (0 == i || 6 == i) || 2 <= i && i <= 4 && 2 <= r && r <= 4)
},
createQrcode: function () {
for (var t = 0, e = 0, i = null, r = 0; r < 8; r++) {
this.makeImpl(r);
var n = l.getLostPoint(this);
(0 == r || t > n) && (t = n,
e = r,
i = this.modules)
}
this.modules = i,
this.setupTypeInfo(!1, e),
this.typeNumber >= 7 && this.setupTypeNumber(!1)
},
setupTimingPattern: function () {
for (var t = 8; t < this.moduleCount - 8; t++)
null == this.modules[t][6] && (this.modules[t][6] = t % 2 == 0,
null == this.modules[6][t] && (this.modules[6][t] = t % 2 == 0))
},
setupPositionAdjustPattern: function () {
for (var t = l.getPatternPosition(this.typeNumber), e = 0; e < t.length; e++)
for (var i = 0; i < t.length; i++) {
var r = t[e]
, n = t[i];
if (null == this.modules[r][n])
for (var s = -2; s <= 2; s++)
for (var o = -2; o <= 2; o++)
this.modules[r + s][n + o] = -2 == s || 2 == s || -2 == o || 2 == o || 0 == s && 0 == o
}
},
setupTypeNumber: function (t) {
for (var e = l.getBCHTypeNumber(this.typeNumber), i = 0; i < 18; i++) {
var r = !t && 1 == (e >> i & 1);
this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = r,
this.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = r
}
},
setupTypeInfo: function (t, e) {
for (var i = n[this.errorCorrectLevel] << 3 | e, r = l.getBCHTypeInfo(i), s = 0; s < 15; s++) {
var o = !t && 1 == (r >> s & 1);
s < 6 ? this.modules[s][8] = o : s < 8 ? this.modules[s + 1][8] = o : this.modules[this.moduleCount - 15 + s][8] = o;
o = !t && 1 == (r >> s & 1);
s < 8 ? this.modules[8][this.moduleCount - s - 1] = o : s < 9 ? this.modules[8][15 - s - 1 + 1] = o : this.modules[8][15 - s - 1] = o
}
this.modules[this.moduleCount - 8][8] = !t
},
createData: function () {
var t = new y
, e = this.typeNumber > 9 ? 16 : 8;
t.put(4, 4),
t.put(this.utf8bytes.length, e);
for (var i = 0, n = this.utf8bytes.length; i < n; i++)
t.put(this.utf8bytes[i], 8);
for (t.length + 4 <= 8 * this.totalDataCount && t.put(0, 4); t.length % 8 != 0;)
t.putBit(!1);
for (; !(t.length >= 8 * this.totalDataCount || (t.put(r.PAD0, 8),
t.length >= 8 * this.totalDataCount));)
t.put(r.PAD1, 8);
return this.createBytes(t)
},
createBytes: function (t) {
for (var e = 0, i = 0, r = 0, n = this.rsBlock.length / 3, s = new Array, o = 0; o < n; o++)
for (var a = this.rsBlock[3 * o + 0], c = this.rsBlock[3 * o + 1], d = this.rsBlock[3 * o + 2], u = 0; u < a; u++)
s.push([d, c]);
for (var h = new Array(s.length), p = new Array(s.length), f = 0; f < s.length; f++) {
var m = s[f][0]
, I = s[f][1] - m;
i = Math.max(i, m),
r = Math.max(r, I),
h[f] = new Array(m);
for (o = 0; o < h[f].length; o++)
h[f][o] = 255 & t.buffer[o + e];
e += m;
var y = l.getErrorCorrectPolynomial(I)
, g = new w(h[f], y.getLength() - 1).mod(y);
p[f] = new Array(y.getLength() - 1);
for (o = 0; o < p[f].length; o++) {
var S = o + g.getLength() - p[f].length;
p[f][o] = S >= 0 ? g.get(S) : 0
}
}
var v = new Array(this.totalDataCount)
, _ = 0;
for (o = 0; o < i; o++)
for (f = 0; f < s.length; f++)
o < h[f].length && (v[_++] = h[f][o]);
for (o = 0; o < r; o++)
for (f = 0; f < s.length; f++)
o < p[f].length && (v[_++] = p[f][o]);
return v
},
mapData: function (t, e) {
for (var i = -1, r = this.moduleCount - 1, n = 7, s = 0, o = this.moduleCount - 1; o > 0; o -= 2)
for (6 == o && o--; ;) {
for (var a = 0; a < 2; a++)
if (null == this.modules[r][o - a]) {
var c = !1;
s < t.length && (c = 1 == (t[s] >>> n & 1)),
l.getMask(e, r, o - a) && (c = !c),
this.modules[r][o - a] = c,
-1 == --n && (s++,
n = 7)
}
if ((r += i) < 0 || this.moduleCount <= r) {
r -= i,
i = -i;
break
}
}
}
},
r.PAD0 = 236,
r.PAD1 = 17;
for (var n = [1, 0, 3, 2], s = 0, o = 1, a = 2, c = 3, d = 4, u = 5, h = 6, p = 7, l = {
PATTERN_POSITION_TABLE: [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]],
G15: 1335,
G18: 7973,
G15_MASK: 21522,
getBCHTypeInfo: function (t) {
for (var e = t << 10; l.getBCHDigit(e) - l.getBCHDigit(l.G15) >= 0;)
e ^= l.G15 << l.getBCHDigit(e) - l.getBCHDigit(l.G15);
return (t << 10 | e) ^ l.G15_MASK
},
getBCHTypeNumber: function (t) {
for (var e = t << 12; l.getBCHDigit(e) - l.getBCHDigit(l.G18) >= 0;)
e ^= l.G18 << l.getBCHDigit(e) - l.getBCHDigit(l.G18);
return t << 12 | e
},
getBCHDigit: function (t) {
for (var e = 0; 0 != t;)
e++,
t >>>= 1;
return e
},
getPatternPosition: function (t) {
return l.PATTERN_POSITION_TABLE[t - 1]
},
getMask: function (t, e, i) {
switch (t) {
case s:
return (e + i) % 2 == 0;
case o:
return e % 2 == 0;
case a:
return i % 3 == 0;
case c:
return (e + i) % 3 == 0;
case d:
return (Math.floor(e / 2) + Math.floor(i / 3)) % 2 == 0;
case u:
return e * i % 2 + e * i % 3 == 0;
case h:
return (e * i % 2 + e * i % 3) % 2 == 0;
case p:
return (e * i % 3 + (e + i) % 2) % 2 == 0;
default:
throw new Error("bad maskPattern:" + t)
}
},
getErrorCorrectPolynomial: function (t) {
for (var e = new w([1], 0), i = 0; i < t; i++)
e = e.multiply(new w([1, f.gexp(i)], 0));
return e
},
getLostPoint: function (t) {
for (var e = t.getModuleCount(), i = 0, r = 0, n = 0; n < e; n++)
for (var s = 0, o = t.modules[n][0], a = 0; a < e; a++) {
var c = t.modules[n][a];
if (a < e - 6 && c && !t.modules[n][a + 1] && t.modules[n][a + 2] && t.modules[n][a + 3] && t.modules[n][a + 4] && !t.modules[n][a + 5] && t.modules[n][a + 6] && (a < e - 10 ? t.modules[n][a + 7] && t.modules[n][a + 8] && t.modules[n][a + 9] && t.modules[n][a + 10] && (i += 40) : a > 3 && t.modules[n][a - 1] && t.modules[n][a - 2] && t.modules[n][a - 3] && t.modules[n][a - 4] && (i += 40)),
n < e - 1 && a < e - 1) {
var d = 0;
c && d++,
t.modules[n + 1][a] && d++,
t.modules[n][a + 1] && d++,
t.modules[n + 1][a + 1] && d++,
0 != d && 4 != d || (i += 3)
}
o ^ c ? s++ : (o = c,
s >= 5 && (i += 3 + s - 5),
s = 1),
c && r++
}
for (a = 0; a < e; a++)
for (s = 0,
o = t.modules[0][a],
n = 0; n < e; n++) {
c = t.modules[n][a];
n < e - 6 && c && !t.modules[n + 1][a] && t.modules[n + 2][a] && t.modules[n + 3][a] && t.modules[n + 4][a] && !t.modules[n + 5][a] && t.modules[n + 6][a] && (n < e - 10 ? t.modules[n + 7][a] && t.modules[n + 8][a] && t.modules[n + 9][a] && t.modules[n + 10][a] && (i += 40) : n > 3 && t.modules[n - 1][a] && t.modules[n - 2][a] && t.modules[n - 3][a] && t.modules[n - 4][a] && (i += 40)),
o ^ c ? s++ : (o = c,
s >= 5 && (i += 3 + s - 5),
s = 1)
}
return i += 10 * (Math.abs(100 * r / e / e - 50) / 5)
}
}, f = {
glog: function (t) {
if (t < 1)
throw new Error("glog(" + t + ")");
return f.LOG_TABLE[t]
},
gexp: function (t) {
for (; t < 0;)
t += 255;
for (; t >= 256;)
t -= 255;
return f.EXP_TABLE[t]
},
EXP_TABLE: new Array(256),
LOG_TABLE: new Array(256)
}, m = 0; m < 8; m++)
f.EXP_TABLE[m] = 1 << m;
for (m = 8; m < 256; m++)
f.EXP_TABLE[m] = f.EXP_TABLE[m - 4] ^ f.EXP_TABLE[m - 5] ^ f.EXP_TABLE[m - 6] ^ f.EXP_TABLE[m - 8];
for (m = 0; m < 255; m++)
f.LOG_TABLE[f.EXP_TABLE[m]] = m;
function w(t, e) {
if (null == t.length)
throw new Error(t.length + "/" + e);
for (var i = 0; i < t.length && 0 == t[i];)
i++;
this.num = new Array(t.length - i + e);
for (var r = 0; r < t.length - i; r++)
this.num[r] = t[r + i]
}
w.prototype = {
get: function (t) {
return this.num[t]
},
getLength: function () {
return this.num.length
},
multiply: function (t) {
for (var e = new Array(this.getLength() + t.getLength() - 1), i = 0; i < this.getLength(); i++)
for (var r = 0; r < t.getLength(); r++)
e[i + r] ^= f.gexp(f.glog(this.get(i)) + f.glog(t.get(r)));
return new w(e, 0)
},
mod: function (t) {
var e = this.getLength()
, i = t.getLength();
if (e - i < 0)
return this;
for (var r = new Array(e), n = 0; n < e; n++)
r[n] = this.get(n);
for (; r.length >= i;) {
var s = f.glog(r[0]) - f.glog(t.get(0));
for (n = 0; n < t.getLength(); n++)
r[n] ^= f.gexp(f.glog(t.get(n)) + s);
for (; 0 == r[0];)
r.shift()
}
return new w(r, 0)
}
};
var I = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]];
function y() {
this.buffer = new Array,
this.length = 0
}
r.prototype.getRightType = function () {
for (var t = 1; t < 41; t++) {
var e = I[4 * (t - 1) + this.errorCorrectLevel];
if (null == e)
throw new Error("bad rs block @ typeNumber:" + t + "/errorCorrectLevel:" + this.errorCorrectLevel);
for (var i = e.length / 3, r = 0, n = 0; n < i; n++) {
var s = e[3 * n + 0];
r += e[3 * n + 2] * s
}
var o = t > 9 ? 2 : 1;
if (this.utf8bytes.length + o < r || 40 == t) {
this.typeNumber = t,
this.rsBlock = e,
this.totalDataCount = r;
break
}
}
}
,
y.prototype = {
get: function (t) {
var e = Math.floor(t / 8);
return this.buffer[e] >>> 7 - t % 8 & 1
},
put: function (t, e) {
for (var i = 0; i < e; i++)
this.putBit(t >>> e - i - 1 & 1)
},
putBit: function (t) {
var e = Math.floor(this.length / 8);
this.buffer.length <= e && this.buffer.push(0),
t && (this.buffer[e] |= 128 >>> this.length % 8),
this.length++
}
},
t.exports = r
},
"3PPS": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n \t
\n\t\t \n\t\t
\n
\n
获取中...
\n
\n \n \n \n
\n \n \n
0
\n \n \n
'
, __filename = "src/tpl/makefriend/make-friend-item.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n \t
\n\t\t \n\t\t
\n
\n
获取中...
\n
\n \n \n \n
\n \n \n
0
\n \n \n
'),
__line = 17;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
"3e+A": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\'>\n \n \n \n \n
\n'
, __filename = "src/tpl/notice/marquee-noble.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n \n \n \n \n
\n'),
__line = 7;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
"3fd8": function (t, e, i) {
t.exports = function (t) {
var e = t.G
, r = t.utils
, n = t.R
, s = t.Event
, o = null
, a = 0
, c = 0
, d = 300;
function u() {
t.trigger("UserRegister"),
n.huyuReport("Click/zhibo/logintips/register")
}
function h(t) {
1 == t && o && o.hide()
}
function p() {
var t = "//download.huya.com/huyapc/HuyaClientInstall.exe"
, e = r.appStoreDownLoad(t);
e ? window.open(e) : window.location.href = t,
n.huyuReport("Click/zhibo/logintips/pc")
}
function l() {
e.isLoginTipShow = !1,
o.hide(),
n.huyuReport("Claritytips/click/close")
}
function f(t) {
r.stopPropagation(t)
}
function m() {
e.isLogin || (c = localStorage.loginTipsCount || 0,
a = setInterval(w, 1e3))
}
function w() {
localStorage.loginTipsCount = c++,
c > d && (clearInterval(a),
y())
}
function I() {
t.popLogin(),
n.huyuReport("Click/zhibo/logintips/login")
}
function y() {
var r;
e.isLogin || (e.isUIPause || e.isPip || 1 != e.paymentStatus && (e.isLoginTipShow = !0,
o || (r = i("TM3C")(),
$("#videoContainer").append(r),
(o = $("#player-login-tip")).click(f),
o.find("#login").click(I),
o.find("#register").click(u),
o.find(".login-pc-group").click(p),
o.find(".login-tips-close").click(l)),
o.show(),
t.vcore.lowestBitRate(),
t.ctrl.changeToLowBitRateText(),
e.enforceLowestBitRate = !0,
n.huyuReport("Claritytips/pv/tips2")))
}
d = r.getQueryString("lt") || 300,
e.isPlaying ? m() : s.addEvent(s.VIDEO_FIRST_PLAY, m),
s.addEvent(s.PAYMENT_WATCH_STATUS_CHANGE, h),
window.testLoginTips = function () {
e.isLogin = !1,
y()
}
,
this.showLoginTip = y
}
},
"465P": function (t, e, i) {
(function (t) {
var i, r, n, s;
function o(t) {
return (o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
}
: function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
}
)(t)
}
/*!
* clipboard.js v2.0.4
* https://zenorocha.github.io/clipboard.js
*
*
*/
s = function () {
return function (t) {
var e = {};
function i(r) {
if (e[r])
return e[r].exports;
var n = e[r] = {
i: r,
l: !1,
exports: {}
};
return t[r].call(n.exports, n, n.exports, i),
n.l = !0,
n.exports
}
return i.m = t,
i.c = e,
i.d = function (t, e, r) {
i.o(t, e) || Object.defineProperty(t, e, {
enumerable: !0,
get: r
})
}
,
i.r = function (t) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
value: "Module"
}),
Object.defineProperty(t, "__esModule", {
value: !0
})
}
,
i.t = function (t, e) {
if (1 & e && (t = i(t)),
8 & e)
return t;
if (4 & e && "object" == o(t) && t && t.__esModule)
return t;
var r = Object.create(null);
if (i.r(r),
Object.defineProperty(r, "default", {
enumerable: !0,
value: t
}),
2 & e && "string" != typeof t)
for (var n in t)
i.d(r, n, function (e) {
return t[e]
}
.bind(null, n));
return r
}
,
i.n = function (t) {
var e = t && t.__esModule ? function () {
return t.default
}
: function () {
return t
}
;
return i.d(e, "a", e),
e
}
,
i.o = function (t, e) {
return Object.prototype.hasOwnProperty.call(t, e)
}
,
i.p = "",
i(i.s = 0)
}([function (t, e, i) {
"use strict";
var r = "function" == typeof Symbol && "symbol" == o(Symbol.iterator) ? function (t) {
return o(t)
}
: function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : o(t)
}
, n = function () {
function t(t, e) {
for (var i = 0; i < e.length; i++) {
var r = e[i];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value" in r && (r.writable = !0),
Object.defineProperty(t, r.key, r)
}
}
return function (e, i, r) {
return i && t(e.prototype, i),
r && t(e, r),
e
}
}()
, s = d(i(1))
, a = d(i(3))
, c = d(i(4));
function d(t) {
return t && t.__esModule ? t : {
default: t
}
}
var u = function (t) {
function e(t, i) {
!function (t, e) {
if (!(t instanceof e))
throw new TypeError("Cannot call a class as a function")
}(this, e);
var r = function (t, e) {
if (!t)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !e || "object" != o(e) && "function" != typeof e ? t : e
}(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this));
return r.resolveOptions(i),
r.listenClick(t),
r
}
return function (t, e) {
if ("function" != typeof e && null !== e)
throw new TypeError("Super expression must either be null or a function, not " + o(e));
t.prototype = Object.create(e && e.prototype, {
constructor: {
value: t,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e)
}(e, a.default),
n(e, [{
key: "resolveOptions",
value: function () {
var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {};
this.action = "function" == typeof t.action ? t.action : this.defaultAction,
this.target = "function" == typeof t.target ? t.target : this.defaultTarget,
this.text = "function" == typeof t.text ? t.text : this.defaultText,
this.container = "object" === r(t.container) ? t.container : document.body
}
}, {
key: "listenClick",
value: function (t) {
var e = this;
this.listener = (0,
c.default)(t, "click", (function (t) {
return e.onClick(t)
}
))
}
}, {
key: "onClick",
value: function (t) {
var e = t.delegateTarget || t.currentTarget;
this.clipboardAction && (this.clipboardAction = null),
this.clipboardAction = new s.default({
action: this.action(e),
target: this.target(e),
text: this.text(e),
container: this.container,
trigger: e,
emitter: this
})
}
}, {
key: "defaultAction",
value: function (t) {
return h("action", t)
}
}, {
key: "defaultTarget",
value: function (t) {
var e = h("target", t);
if (e)
return document.querySelector(e)
}
}, {
key: "defaultText",
value: function (t) {
return h("text", t)
}
}, {
key: "destroy",
value: function () {
this.listener.destroy(),
this.clipboardAction && (this.clipboardAction.destroy(),
this.clipboardAction = null)
}
}], [{
key: "isSupported",
value: function () {
var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : ["copy", "cut"]
, e = "string" == typeof t ? [t] : t
, i = !!document.queryCommandSupported;
return e.forEach((function (t) {
i = i && !!document.queryCommandSupported(t)
}
)),
i
}
}]),
e
}();
function h(t, e) {
var i = "data-clipboard-" + t;
if (e.hasAttribute(i))
return e.getAttribute(i)
}
t.exports = u
}
, function (t, e, i) {
"use strict";
var r, n = "function" == typeof Symbol && "symbol" == o(Symbol.iterator) ? function (t) {
return o(t)
}
: function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : o(t)
}
, s = function () {
function t(t, e) {
for (var i = 0; i < e.length; i++) {
var r = e[i];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value" in r && (r.writable = !0),
Object.defineProperty(t, r.key, r)
}
}
return function (e, i, r) {
return i && t(e.prototype, i),
r && t(e, r),
e
}
}(), a = (r = i(2)) && r.__esModule ? r : {
default: r
}, c = function () {
function t(e) {
!function (t, e) {
if (!(t instanceof e))
throw new TypeError("Cannot call a class as a function")
}(this, t),
this.resolveOptions(e),
this.initSelection()
}
return s(t, [{
key: "resolveOptions",
value: function () {
var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {};
this.action = t.action,
this.container = t.container,
this.emitter = t.emitter,
this.target = t.target,
this.text = t.text,
this.trigger = t.trigger,
this.selectedText = ""
}
}, {
key: "initSelection",
value: function () {
this.text ? this.selectFake() : this.target && this.selectTarget()
}
}, {
key: "selectFake",
value: function () {
var t = this
, e = "rtl" == document.documentElement.getAttribute("dir");
this.removeFake(),
this.fakeHandlerCallback = function () {
return t.removeFake()
}
,
this.fakeHandler = this.container.addEventListener("click", this.fakeHandlerCallback) || !0,
this.fakeElem = document.createElement("textarea"),
this.fakeElem.style.fontSize = "12pt",
this.fakeElem.style.border = "0",
this.fakeElem.style.padding = "0",
this.fakeElem.style.margin = "0",
this.fakeElem.style.position = "absolute",
this.fakeElem.style[e ? "right" : "left"] = "-9999px";
var i = window.pageYOffset || document.documentElement.scrollTop;
this.fakeElem.style.top = i + "px",
this.fakeElem.setAttribute("readonly", ""),
this.fakeElem.value = this.text,
this.container.appendChild(this.fakeElem),
this.selectedText = (0,
a.default)(this.fakeElem),
this.copyText()
}
}, {
key: "removeFake",
value: function () {
this.fakeHandler && (this.container.removeEventListener("click", this.fakeHandlerCallback),
this.fakeHandler = null,
this.fakeHandlerCallback = null),
this.fakeElem && (this.container.removeChild(this.fakeElem),
this.fakeElem = null)
}
}, {
key: "selectTarget",
value: function () {
this.selectedText = (0,
a.default)(this.target),
this.copyText()
}
}, {
key: "copyText",
value: function () {
var t = void 0;
try {
t = document.execCommand(this.action)
} catch (e) {
t = !1
}
this.handleResult(t)
}
}, {
key: "handleResult",
value: function (t) {
this.emitter.emit(t ? "success" : "error", {
action: this.action,
text: this.selectedText,
trigger: this.trigger,
clearSelection: this.clearSelection.bind(this)
})
}
}, {
key: "clearSelection",
value: function () {
this.trigger && this.trigger.focus(),
window.getSelection().removeAllRanges()
}
}, {
key: "destroy",
value: function () {
this.removeFake()
}
}, {
key: "action",
set: function () {
var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : "copy";
if (this._action = t,
"copy" !== this._action && "cut" !== this._action)
throw new Error('Invalid "action" value, use either "copy" or "cut"')
},
get: function () {
return this._action
}
}, {
key: "target",
set: function (t) {
if (void 0 !== t) {
if (!t || "object" !== (void 0 === t ? "undefined" : n(t)) || 1 !== t.nodeType)
throw new Error('Invalid "target" value, use a valid Element');
if ("copy" === this.action && t.hasAttribute("disabled"))
throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
if ("cut" === this.action && (t.hasAttribute("readonly") || t.hasAttribute("disabled")))
throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');
this._target = t
}
},
get: function () {
return this._target
}
}]),
t
}();
t.exports = c
}
, function (t, e) {
t.exports = function (t) {
var e;
if ("SELECT" === t.nodeName)
t.focus(),
e = t.value;
else if ("INPUT" === t.nodeName || "TEXTAREA" === t.nodeName) {
var i = t.hasAttribute("readonly");
i || t.setAttribute("readonly", ""),
t.select(),
t.setSelectionRange(0, t.value.length),
i || t.removeAttribute("readonly"),
e = t.value
} else {
t.hasAttribute("contenteditable") && t.focus();
var r = window.getSelection()
, n = document.createRange();
n.selectNodeContents(t),
r.removeAllRanges(),
r.addRange(n),
e = r.toString()
}
return e
}
}
, function (t, e) {
function i() {
}
i.prototype = {
on: function (t, e, i) {
var r = this.e || (this.e = {});
return (r[t] || (r[t] = [])).push({
fn: e,
ctx: i
}),
this
},
once: function (t, e, i) {
var r = this;
function n() {
r.off(t, n),
e.apply(i, arguments)
}
return n._ = e,
this.on(t, n, i)
},
emit: function (t) {
for (var e = [].slice.call(arguments, 1), i = ((this.e || (this.e = {}))[t] || []).slice(), r = 0, n = i.length; r < n; r++)
i[r].fn.apply(i[r].ctx, e);
return this
},
off: function (t, e) {
var i = this.e || (this.e = {})
, r = i[t]
, n = [];
if (r && e)
for (var s = 0, o = r.length; s < o; s++)
r[s].fn !== e && r[s].fn._ !== e && n.push(r[s]);
return n.length ? i[t] = n : delete i[t],
this
}
},
t.exports = i
}
, function (t, e, i) {
var r = i(5)
, n = i(6);
t.exports = function (t, e, i) {
if (!t && !e && !i)
throw new Error("Missing required arguments");
if (!r.string(e))
throw new TypeError("Second argument must be a String");
if (!r.fn(i))
throw new TypeError("Third argument must be a Function");
if (r.node(t))
return p = e,
l = i,
(h = t).addEventListener(p, l),
{
destroy: function () {
h.removeEventListener(p, l)
}
};
if (r.nodeList(t))
return c = t,
d = e,
u = i,
Array.prototype.forEach.call(c, (function (t) {
t.addEventListener(d, u)
}
)),
{
destroy: function () {
Array.prototype.forEach.call(c, (function (t) {
t.removeEventListener(d, u)
}
))
}
};
if (r.string(t))
return s = t,
o = e,
a = i,
n(document.body, s, o, a);
throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
var s, o, a, c, d, u, h, p, l
}
}
, function (t, e) {
e.node = function (t) {
return void 0 !== t && t instanceof HTMLElement && 1 === t.nodeType
}
,
e.nodeList = function (t) {
var i = Object.prototype.toString.call(t);
return void 0 !== t && ("[object NodeList]" === i || "[object HTMLCollection]" === i) && "length" in t && (0 === t.length || e.node(t[0]))
}
,
e.string = function (t) {
return "string" == typeof t || t instanceof String
}
,
e.fn = function (t) {
return "[object Function]" === Object.prototype.toString.call(t)
}
}
, function (t, e, i) {
var r = i(7);
function n(t, e, i, n, s) {
var o = function (t, e, i, n) {
return function (i) {
i.delegateTarget = r(i.target, e),
i.delegateTarget && n.call(t, i)
}
}
.apply(this, arguments);
return t.addEventListener(i, o, s),
{
destroy: function () {
t.removeEventListener(i, o, s)
}
}
}
t.exports = function (t, e, i, r, s) {
return "function" == typeof t.addEventListener ? n.apply(null, arguments) : "function" == typeof i ? n.bind(null, document).apply(null, arguments) : ("string" == typeof t && (t = document.querySelectorAll(t)),
Array.prototype.map.call(t, (function (t) {
return n(t, e, i, r, s)
}
)))
}
}
, function (t, e) {
if ("undefined" != typeof Element && !Element.prototype.matches) {
var i = Element.prototype;
i.matches = i.matchesSelector || i.mozMatchesSelector || i.msMatchesSelector || i.oMatchesSelector || i.webkitMatchesSelector
}
t.exports = function (t, e) {
for (; t && 9 !== t.nodeType;) {
if ("function" == typeof t.matches && t.matches(e))
return t;
t = t.parentNode
}
}
}
])
}
,
"object" == o(e) && "object" == o(t) ? t.exports = s() : (r = [],
void 0 === (n = "function" == typeof (i = s) ? i.apply(e, r) : i) || (t.exports = n))
}
).call(this, i("YuTi")(t))
},
"49sm": function (t, e) {
var i = {}.toString;
t.exports = Array.isArray || function (t) {
return "[object Array]" == i.call(t)
}
},
"4GXC": function (t, e, i) {
t.exports = function (t, e) {
t.ENV,
t.G;
var r, n = null, s = null, o = null, a = null, c = null, d = null;
function u() {
e.openVip && e.openVip(1)
}
function h() {
t.popLogin()
}
r = i("RQUF")(),
n = $(r),
s = n.find(".player-vip-icon"),
$("#player-wrap").append(n),
o = n.find("span"),
a = n.find("h1"),
c = n.find(".player-vip-btn"),
d = n.find(".player-vip-login"),
c.click(u),
d.click(h),
this.show = function () {
n && n.show()
}
,
this.hide = function () {
n && n.hide()
}
,
this.setData = function (t) {
var e = ""
, i = t.title || "试看结束";
1 == t.type ? (e = t.msg || "该直播为会员内容,请登录后观看",
s.show(),
d.show(),
c.hide(),
a.hide()) : (s.hide(),
d.hide(),
c.show(),
a.show(),
e = t.msg || "开通会员可继续观看"),
a.text(i),
o.text(e)
}
}
},
"4ZS2": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n \n\n \n
\n \t
\n\t
\n\t\t\t \n
\n\t \t
\n \t \t
获取中...
\n
\n \n \n \n
\n\t
\n\n \n\n \n \n
\n
加载中...
\n
\n
\n \t \n \n \n
\n
1234
\n
15255
\n \n \n \n \n
00:00
\n \n
\n
下载虎牙APP,上麦和主播互动
\n
\n
\n \n
\n
房间介绍
\n \n
\n\n
\n
房间介绍
\n \n
\n \n 收起\n
\n
\n
\n'
, __filename = "src/tpl/makefriend/make-friend.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n \n\n \n
\n \t
\n\t
\n\t\t\t \n
\n\t \t
\n \t \t
获取中...
\n
\n \n \n \n
\n\t
\n\n \n\n \n \n
\n
加载中...
\n
\n
\n \t \n \n \n
\n
1234
\n
15255
\n \n \n \n \n
00:00
\n \n
\n
下载虎牙APP,上麦和主播互动
\n
\n
\n \n
\n
房间介绍
\n \n
\n\n
\n
房间介绍
\n \n
\n \n 收起\n
\n
\n
\n'),
__line = 58;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
"4hq7": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n
\n 以下种豆已结束\n
\n
\n
\n
\n 关闭\n
\n
'
, __filename = "src/tpl/guess/guess-result.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n
\n 以下种豆已结束\n
\n
\n
\n
\n 关闭\n
\n
'),
__line = 10;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
"53Ew": function (t, e, i) {
(function (e) {
t.exports = function () {
"use strict";
function t(t, e) {
for (var i = 0; i < e.length; i++) {
var r = e[i];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value" in r && (r.writable = !0),
Object.defineProperty(t, r.key, r)
}
}
function i(t, e) {
var i, r = Object.keys(t);
return Object.getOwnPropertySymbols && (i = Object.getOwnPropertySymbols(t),
e && (i = i.filter((function (e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
}
))),
r.push.apply(r, i)),
r
}
function r(t) {
for (var e = 1; e < arguments.length; e++) {
var r = null != arguments[e] ? arguments[e] : {};
e % 2 ? i(Object(r), !0).forEach((function (e) {
var i, n;
i = t,
e = r[n = e],
n in i ? Object.defineProperty(i, n, {
value: e,
enumerable: !0,
configurable: !0,
writable: !0
}) : i[n] = e
}
)) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : i(Object(r)).forEach((function (e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e))
}
))
}
return t
}
function n(t) {
return (n = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
return t.__proto__ || Object.getPrototypeOf(t)
}
)(t)
}
function s(t, e) {
return (s = Object.setPrototypeOf || function (t, e) {
return t.__proto__ = e,
t
}
)(t, e)
}
function o(t, e) {
return !e || "object" != typeof e && "function" != typeof e ? function (t) {
if (void 0 === t)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return t
}(t) : e
}
function a(t, e) {
(null == e || e > t.length) && (e = t.length);
for (var i = 0, r = new Array(e); i < e; i++)
r[i] = t[i];
return r
}
function c(t) {
try {
return t.defaultView && t.defaultView.frameElement || null
} catch (t) {
return null
}
}
function d(t) {
this.time = t.time,
this.target = t.target,
this.rootBounds = f(t.rootBounds),
this.boundingClientRect = f(t.boundingClientRect),
this.intersectionRect = f(t.intersectionRect || {
top: 0,
bottom: 0,
left: 0,
right: 0,
width: 0,
height: 0
}),
this.isIntersecting = !!t.intersectionRect,
t = (e = this.boundingClientRect).width * e.height;
var e = (e = this.intersectionRect).width * e.height;
this.intersectionRatio = t ? Number((e / t).toFixed(4)) : this.isIntersecting ? 1 : 0
}
function u(t, e) {
var i, r, n;
if (e = e || {},
"function" != typeof t)
throw new Error("callback must be a function");
if (e.root && 1 != e.root.nodeType)
throw new Error("root must be an Element");
this._checkForIntersections = (i = this._checkForIntersections.bind(this),
r = this.THROTTLE_TIMEOUT,
n = null,
function () {
n = n || setTimeout((function () {
i(),
n = null
}
), r)
}
),
this._callback = t,
this._observationTargets = [],
this._queuedEntries = [],
this._rootMarginValues = this._parseRootMargin(e.rootMargin),
this.thresholds = this._initThresholds(e.threshold),
this.root = e.root || null,
this.rootMargin = this._rootMarginValues.map((function (t) {
return t.value + t.unit
}
)).join(" "),
this._monitoringDocuments = [],
this._monitoringUnsubscribes = []
}
function h(t, e, i, r) {
"function" == typeof t.addEventListener ? t.addEventListener(e, i, r || !1) : "function" == typeof t.attachEvent && t.attachEvent("on" + e, i)
}
function p(t, e, i, r) {
"function" == typeof t.removeEventListener ? t.removeEventListener(e, i, r || !1) : "function" == typeof t.detatchEvent && t.detatchEvent("on" + e, i)
}
function l(t) {
var e;
try {
e = t.getBoundingClientRect()
} catch (t) {
}
return e ? (e.width && e.height || (e = {
top: e.top,
right: e.right,
bottom: e.bottom,
left: e.left,
width: e.right - e.left,
height: e.bottom - e.top
}),
e) : {
top: 0,
bottom: 0,
left: 0,
right: 0,
width: 0,
height: 0
}
}
function f(t) {
return !t || "x" in t ? t : {
top: t.top,
y: t.top,
bottom: t.bottom,
left: t.left,
x: t.left,
right: t.right,
width: t.width,
height: t.height
}
}
function m(t, e) {
var i = e.top - t.top;
return {
top: i,
left: t = e.left - t.left,
height: e.height,
width: e.width,
bottom: i + e.height,
right: t + e.width
}
}
function w(t, e) {
for (var i = e; i;) {
if (i == t)
return !0;
i = I(i)
}
return !1
}
function I(t) {
var e = t.parentNode;
return 9 == t.nodeType && t != y ? c(t) : e && 11 == e.nodeType && e.host ? e.host : e && e.assignedSlot ? e.assignedSlot.parentNode : e
}
var y, g, S, v;
function _() {
}
function T() {
T.init.call(this)
}
function R(t) {
return void 0 === t._maxListeners ? T.defaultMaxListeners : t._maxListeners
}
function b(t, e, i, r) {
var n, s;
if ("function" != typeof i)
throw new TypeError('"listener" argument must be a function');
return (n = t._events) ? (n.newListener && (t.emit("newListener", e, i.listener || i),
n = t._events),
s = n[e]) : (n = t._events = new _,
t._eventsCount = 0),
s ? ("function" == typeof s ? s = n[e] = r ? [i, s] : [s, i] : r ? s.unshift(i) : s.push(i),
s.warned || (r = R(t)) && 0 < r && s.length > r && (s.warned = !0,
(r = new Error("Possible EventEmitter memory leak detected. " + s.length + " " + e + " listeners added. Use emitter.setMaxListeners() to increase limit")).name = "MaxListenersExceededWarning",
r.emitter = t,
r.type = e,
r.count = s.length,
r = r,
"function" == typeof console.warn ? console.warn(r) : console.log(r))) : (s = n[e] = i,
++t._eventsCount),
t
}
function P(t, e, i) {
var r = !1;
function n() {
t.removeListener(e, n),
r || (r = !0,
i.apply(t, arguments))
}
return n.listener = i,
n
}
function x(t) {
var e = this._events;
if (e) {
if ("function" == typeof (t = e[t]))
return 1;
if (t)
return t.length
}
return 0
}
function C(t, e) {
for (var i = new Array(e); e--;)
i[e] = t[e];
return i
}
"object" == typeof window && ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype ? "isIntersecting" in window.IntersectionObserverEntry.prototype || Object.defineProperty(window.IntersectionObserverEntry.prototype, "isIntersecting", {
get: function () {
return 0 < this.intersectionRatio
}
}) : (y = function () {
for (var t = window.document, e = c(t); e;)
e = c(t = e.ownerDocument);
return t
}(),
g = [],
v = S = null,
u.prototype.THROTTLE_TIMEOUT = 100,
u.prototype.POLL_INTERVAL = null,
u.prototype.USE_MUTATION_OBSERVER = !0,
u._setupCrossOriginUpdater = function () {
return S = S || function (t, e) {
v = t && e ? m(t, e) : {
top: 0,
bottom: 0,
left: 0,
right: 0,
width: 0,
height: 0
},
g.forEach((function (t) {
t._checkForIntersections()
}
))
}
}
,
u._resetCrossOriginUpdater = function () {
v = S = null
}
,
u.prototype.observe = function (t) {
if (!this._observationTargets.some((function (e) {
return e.element == t
}
))) {
if (!t || 1 != t.nodeType)
throw new Error("target must be an Element");
this._registerInstance(),
this._observationTargets.push({
element: t,
entry: null
}),
this._monitorIntersections(t.ownerDocument),
this._checkForIntersections()
}
}
,
u.prototype.unobserve = function (t) {
this._observationTargets = this._observationTargets.filter((function (e) {
return e.element != t
}
)),
this._unmonitorIntersections(t.ownerDocument),
0 == this._observationTargets.length && this._unregisterInstance()
}
,
u.prototype.disconnect = function () {
this._observationTargets = [],
this._unmonitorAllIntersections(),
this._unregisterInstance()
}
,
u.prototype.takeRecords = function () {
var t = this._queuedEntries.slice();
return this._queuedEntries = [],
t
}
,
u.prototype._initThresholds = function (t) {
return t = t || [0],
Array.isArray(t) || (t = [t]),
t.sort().filter((function (t, e, i) {
if ("number" != typeof t || isNaN(t) || t < 0 || 1 < t)
throw new Error("threshold must be a number between 0 and 1 inclusively");
return t !== i[e - 1]
}
))
}
,
u.prototype._parseRootMargin = function (t) {
return (t = (t || "0px").split(/\s+/).map((function (t) {
if (!(t = /^(-?\d*\.?\d+)(px|%)$/.exec(t)))
throw new Error("rootMargin must be specified in pixels or percent");
return {
value: parseFloat(t[1]),
unit: t[2]
}
}
)))[1] = t[1] || t[0],
t[2] = t[2] || t[0],
t[3] = t[3] || t[1],
t
}
,
u.prototype._monitorIntersections = function (t) {
var e, i, r, n = t.defaultView;
n && -1 == this._monitoringDocuments.indexOf(t) && (e = this._checkForIntersections,
r = i = null,
this.POLL_INTERVAL ? i = n.setInterval(e, this.POLL_INTERVAL) : (h(n, "resize", e, !0),
h(t, "scroll", e, !0),
this.USE_MUTATION_OBSERVER && "MutationObserver" in n && (r = new n.MutationObserver(e)).observe(t, {
attributes: !0,
childList: !0,
characterData: !0,
subtree: !0
})),
this._monitoringDocuments.push(t),
this._monitoringUnsubscribes.push((function () {
var n = t.defaultView;
n && (i && n.clearInterval(i),
p(n, "resize", e, !0)),
p(t, "scroll", e, !0),
r && r.disconnect()
}
)),
t == (this.root && this.root.ownerDocument || y) || (n = c(t)) && this._monitorIntersections(n.ownerDocument))
}
,
u.prototype._unmonitorIntersections = function (t) {
var e, i, r = this._monitoringDocuments.indexOf(t);
-1 != r && (e = this.root && this.root.ownerDocument || y,
this._observationTargets.some((function (i) {
if ((r = i.element.ownerDocument) == t)
return !0;
for (; r && r != e;) {
var r, n = c(r);
if ((r = n && n.ownerDocument) == t)
return !0
}
return !1
}
)) || (i = this._monitoringUnsubscribes[r],
this._monitoringDocuments.splice(r, 1),
this._monitoringUnsubscribes.splice(r, 1),
i(),
t == e || (i = c(t)) && this._unmonitorIntersections(i.ownerDocument)))
}
,
u.prototype._unmonitorAllIntersections = function () {
var t = this._monitoringUnsubscribes.slice(0);
this._monitoringDocuments.length = 0;
for (var e = this._monitoringUnsubscribes.length = 0; e < t.length; e++)
t[e]()
}
,
u.prototype._checkForIntersections = function () {
var t, e;
!this.root && S && !v || (t = this._rootIsInDom(),
e = t ? this._getRootRect() : {
top: 0,
bottom: 0,
left: 0,
right: 0,
width: 0,
height: 0
},
this._observationTargets.forEach((function (i) {
var r = i.element
, n = l(r)
, s = this._rootContainsTarget(r)
, o = i.entry
, a = t && s && this._computeTargetAndRootIntersection(r, n, e);
a = i.entry = new d({
time: window.performance && performance.now && performance.now(),
target: r,
boundingClientRect: n,
rootBounds: S && !this.root ? null : e,
intersectionRect: a
}),
o ? t && s ? this._hasCrossedThreshold(o, a) && this._queuedEntries.push(a) : o && o.isIntersecting && this._queuedEntries.push(a) : this._queuedEntries.push(a)
}
), this),
this._queuedEntries.length && this._callback(this.takeRecords(), this))
}
,
u.prototype._computeTargetAndRootIntersection = function (t, e, i) {
if ("none" != window.getComputedStyle(t).display) {
for (var r = e, n = I(t), s = !1; !s && n;) {
var o, a, c, d, u = null, h = 1 == n.nodeType ? window.getComputedStyle(n) : {};
if ("none" == h.display)
return null;
if (n == this.root || 9 == n.nodeType ? (s = !0,
n == this.root || n == y ? S && !this.root ? !v || 0 == v.width && 0 == v.height ? r = u = n = null : u = v : u = i : (a = (o = I(n)) && l(o),
c = o && this._computeTargetAndRootIntersection(o, a, i),
a && c ? (n = o,
u = m(a, c)) : r = n = null)) : n != (d = n.ownerDocument).body && n != d.documentElement && "visible" != h.overflow && (u = l(n)),
u && (o = u,
a = r,
u = h = d = c = void 0,
c = Math.max(o.top, a.top),
d = Math.min(o.bottom, a.bottom),
h = Math.max(o.left, a.left),
u = Math.min(o.right, a.right),
a = d - c,
r = 0 <= (o = u - h) && 0 <= a ? {
top: c,
bottom: d,
left: h,
right: u,
width: o,
height: a
} : null),
!r)
break;
n = n && I(n)
}
return r
}
}
,
u.prototype._getRootRect = function () {
var t, e;
return e = this.root ? l(this.root) : (t = y.documentElement,
e = y.body,
{
top: 0,
left: 0,
right: t.clientWidth || e.clientWidth,
width: t.clientWidth || e.clientWidth,
bottom: t.clientHeight || e.clientHeight,
height: t.clientHeight || e.clientHeight
}),
this._expandRectByRootMargin(e)
}
,
u.prototype._expandRectByRootMargin = function (t) {
var e = this._rootMarginValues.map((function (e, i) {
return "px" == e.unit ? e.value : e.value * (i % 2 ? t.width : t.height) / 100
}
));
return (e = {
top: t.top - e[0],
right: t.right + e[1],
bottom: t.bottom + e[2],
left: t.left - e[3]
}).width = e.right - e.left,
e.height = e.bottom - e.top,
e
}
,
u.prototype._hasCrossedThreshold = function (t, e) {
var i = t && t.isIntersecting ? t.intersectionRatio || 0 : -1
, r = e.isIntersecting ? e.intersectionRatio || 0 : -1;
if (i !== r)
for (var n = 0; n < this.thresholds.length; n++) {
var s = this.thresholds[n];
if (s == i || s == r || s < i != s < r)
return !0
}
}
,
u.prototype._rootIsInDom = function () {
return !this.root || w(y, this.root)
}
,
u.prototype._rootContainsTarget = function (t) {
return w(this.root || y, t) && (!this.root || this.root.ownerDocument == t.ownerDocument)
}
,
u.prototype._registerInstance = function () {
g.indexOf(this) < 0 && g.push(this)
}
,
u.prototype._unregisterInstance = function () {
var t = g.indexOf(this);
-1 != t && g.splice(t, 1)
}
,
window.IntersectionObserver = u,
window.IntersectionObserverEntry = d)),
_.prototype = Object.create(null),
(T.EventEmitter = T).usingDomains = !1,
T.prototype.domain = void 0,
T.prototype._events = void 0,
T.prototype._maxListeners = void 0,
T.defaultMaxListeners = 10,
T.init = function () {
this.domain = null,
T.usingDomains && (void 0).active,
this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new _,
this._eventsCount = 0),
this._maxListeners = this._maxListeners || void 0
}
,
T.prototype.setMaxListeners = function (t) {
if ("number" != typeof t || t < 0 || isNaN(t))
throw new TypeError('"n" argument must be a positive number');
return this._maxListeners = t,
this
}
,
T.prototype.getMaxListeners = function () {
return R(this)
}
,
T.prototype.emit = function (t, e, i, r) {
var n, s, o, a = "error" === t, c = this._events;
if (c)
a = a && null == c.error;
else if (!a)
return !1;
if (d = this.domain,
a) {
if (a = e,
d)
return (a = a || new Error('Uncaught, unspecified "error" event')).domainEmitter = this,
a.domain = d,
a.domainThrown = !1,
d.emit("error", a),
!1;
if (a instanceof Error)
throw a;
var d = new Error('Uncaught, unspecified "error" event. (' + a + ")");
throw d.context = a,
d
}
if (!(n = c[t]))
return !1;
var u, h = "function" == typeof n;
switch (u = arguments.length) {
case 1:
!function (t, e, i) {
if (e)
t.call(i);
else
for (var r = t.length, n = C(t, r), s = 0; s < r; ++s)
n[s].call(i)
}(n, h, this);
break;
case 2:
!function (t, e, i, r) {
if (e)
t.call(i, r);
else
for (var n = t.length, s = C(t, n), o = 0; o < n; ++o)
s[o].call(i, r)
}(n, h, this, e);
break;
case 3:
!function (t, e, i, r, n) {
if (e)
t.call(i, r, n);
else
for (var s = t.length, o = C(t, s), a = 0; a < s; ++a)
o[a].call(i, r, n)
}(n, h, this, e, i);
break;
case 4:
!function (t, e, i, r, n, s) {
if (e)
t.call(i, r, n, s);
else
for (var o = t.length, a = C(t, o), c = 0; c < o; ++c)
a[c].call(i, r, n, s)
}(n, h, this, e, i, r);
break;
default:
for (s = new Array(u - 1),
o = 1; o < u; o++)
s[o - 1] = arguments[o];
!function (t, e, i, r) {
if (e)
t.apply(i, r);
else
for (var n = t.length, s = C(t, n), o = 0; o < n; ++o)
s[o].apply(i, r)
}(n, h, this, s)
}
return !0
}
,
T.prototype.addListener = function (t, e) {
return b(this, t, e, !1)
}
,
T.prototype.on = T.prototype.addListener,
T.prototype.prependListener = function (t, e) {
return b(this, t, e, !0)
}
,
T.prototype.once = function (t, e) {
if ("function" != typeof e)
throw new TypeError('"listener" argument must be a function');
return this.on(t, P(this, t, e)),
this
}
,
T.prototype.prependOnceListener = function (t, e) {
if ("function" != typeof e)
throw new TypeError('"listener" argument must be a function');
return this.prependListener(t, P(this, t, e)),
this
}
,
T.prototype.removeListener = function (t, e) {
var i, r, n, s, o;
if ("function" != typeof e)
throw new TypeError('"listener" argument must be a function');
if (!(r = this._events))
return this;
if (!(i = r[t]))
return this;
if (i === e || i.listener && i.listener === e)
0 == --this._eventsCount ? this._events = new _ : (delete r[t],
r.removeListener && this.emit("removeListener", t, i.listener || e));
else if ("function" != typeof i) {
for (n = -1,
s = i.length; 0 < s--;)
if (i[s] === e || i[s].listener && i[s].listener === e) {
o = i[s].listener,
n = s;
break
}
if (n < 0)
return this;
if (1 === i.length) {
if (i[0] = void 0,
0 == --this._eventsCount)
return this._events = new _,
this;
delete r[t]
} else
!function (t, e) {
for (var i = e, r = i + 1, n = t.length; r < n; i += 1,
r += 1)
t[i] = t[r];
t.pop()
}(i, n);
r.removeListener && this.emit("removeListener", t, o || e)
}
return this
}
,
T.prototype.removeAllListeners = function (t) {
var e, i = this._events;
if (!i)
return this;
if (!i.removeListener)
return 0 === arguments.length ? (this._events = new _,
this._eventsCount = 0) : i[t] && (0 == --this._eventsCount ? this._events = new _ : delete i[t]),
this;
if (0 === arguments.length) {
for (var r, n = Object.keys(i), s = 0; s < n.length; ++s)
"removeListener" !== (r = n[s]) && this.removeAllListeners(r);
return this.removeAllListeners("removeListener"),
this._events = new _,
this._eventsCount = 0,
this
}
if ("function" == typeof (e = i[t]))
this.removeListener(t, e);
else if (e)
for (; this.removeListener(t, e[e.length - 1]),
e[0];)
;
return this
}
,
T.prototype.listeners = function (t) {
var e = this._events
, i = e && (i = e[t]) ? "function" == typeof i ? [i.listener || i] : function (t) {
for (var e = new Array(t.length), i = 0; i < e.length; ++i)
e[i] = t[i].listener || t[i];
return e
}(i) : [];
return i
}
,
T.listenerCount = function (t, e) {
return "function" == typeof t.listenerCount ? t.listenerCount(e) : x.call(t, e)
}
,
T.prototype.listenerCount = x,
T.prototype.eventNames = function () {
return 0 < this._eventsCount ? Reflect.ownKeys(this._events) : []
}
;
var U = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : void 0 !== e ? e : "undefined" != typeof self ? self : {};
function k(t, e) {
return t(e = {
exports: {}
}, e.exports),
e.exports
}
var L, N = (L = Object.freeze({
__proto__: null,
default: {}
})) && L.default || L, E = k((function (t, e) {
t.exports = t = function (t) {
var e;
if ("undefined" != typeof window && window.crypto && (e = window.crypto),
!e && "undefined" != typeof window && window.msCrypto && (e = window.msCrypto),
!e && void 0 !== U && U.crypto && (e = U.crypto),
!e)
try {
e = N
} catch (n) {
}
var i = Object.create || function (t) {
return r.prototype = t,
t = new r,
r.prototype = null,
t
}
;
function r() {
}
var n = {}
, s = n.lib = {}
, o = s.Base = {
extend: function (t) {
var e = i(this);
return t && e.mixIn(t),
e.hasOwnProperty("init") && this.init !== e.init || (e.init = function () {
e.$super.init.apply(this, arguments)
}
),
(e.init.prototype = e).$super = this,
e
},
create: function () {
var t = this.extend();
return t.init.apply(t, arguments),
t
},
init: function () {
},
mixIn: function (t) {
for (var e in t)
t.hasOwnProperty(e) && (this[e] = t[e]);
t.hasOwnProperty("toString") && (this.toString = t.toString)
},
clone: function () {
return this.init.prototype.extend(this)
}
}
, a = s.WordArray = o.extend({
init: function (t, e) {
t = this.words = t || [],
this.sigBytes = null != e ? e : 4 * t.length
},
toString: function (t) {
return (t || d).stringify(this)
},
concat: function (t) {
var e = this.words
, i = t.words
, r = this.sigBytes
, n = t.sigBytes;
if (this.clamp(),
r % 4)
for (var s = 0; s < n; s++) {
var o = i[s >>> 2] >>> 24 - s % 4 * 8 & 255;
e[r + s >>> 2] |= o << 24 - (r + s) % 4 * 8
}
else
for (s = 0; s < n; s += 4)
e[r + s >>> 2] = i[s >>> 2];
return this.sigBytes += n,
this
},
clamp: function () {
var e = this.words
, i = this.sigBytes;
e[i >>> 2] &= 4294967295 << 32 - i % 4 * 8,
e.length = t.ceil(i / 4)
},
clone: function () {
var t = o.clone.call(this);
return t.words = this.words.slice(0),
t
},
random: function (t) {
for (var i = [], r = 0; r < t; r += 4)
i.push(function () {
if (e) {
if ("function" == typeof e.getRandomValues)
try {
return e.getRandomValues(new Uint32Array(1))[0]
} catch (t) {
}
if ("function" == typeof e.randomBytes)
try {
return e.randomBytes(4).readInt32LE()
} catch (t) {
}
}
throw new Error("Native crypto module could not be used to get secure random number.")
}());
return new a.init(i, t)
}
})
, c = n.enc = {}
, d = c.Hex = {
stringify: function (t) {
for (var e = t.words, i = t.sigBytes, r = [], n = 0; n < i; n++) {
var s = e[n >>> 2] >>> 24 - n % 4 * 8 & 255;
r.push((s >>> 4).toString(16)),
r.push((15 & s).toString(16))
}
return r.join("")
},
parse: function (t) {
for (var e = t.length, i = [], r = 0; r < e; r += 2)
i[r >>> 3] |= parseInt(t.substr(r, 2), 16) << 24 - r % 8 * 4;
return new a.init(i, e / 2)
}
}
, u = c.Latin1 = {
stringify: function (t) {
for (var e = t.words, i = t.sigBytes, r = [], n = 0; n < i; n++) {
var s = e[n >>> 2] >>> 24 - n % 4 * 8 & 255;
r.push(String.fromCharCode(s))
}
return r.join("")
},
parse: function (t) {
for (var e = t.length, i = [], r = 0; r < e; r++)
i[r >>> 2] |= (255 & t.charCodeAt(r)) << 24 - r % 4 * 8;
return new a.init(i, e)
}
}
, h = c.Utf8 = {
stringify: function (t) {
try {
return decodeURIComponent(escape(u.stringify(t)))
} catch (t) {
throw new Error("Malformed UTF-8 data")
}
},
parse: function (t) {
return u.parse(unescape(encodeURIComponent(t)))
}
}
, p = s.BufferedBlockAlgorithm = o.extend({
reset: function () {
this._data = new a.init,
this._nDataBytes = 0
},
_append: function (t) {
"string" == typeof t && (t = h.parse(t)),
this._data.concat(t),
this._nDataBytes += t.sigBytes
},
_process: function (e) {
var i, r = this._data, n = r.words, s = r.sigBytes, o = this.blockSize,
c = s / (4 * o),
d = (c = e ? t.ceil(c) : t.max((0 | c) - this._minBufferSize, 0)) * o;
if (s = t.min(4 * d, s),
d) {
for (var u = 0; u < d; u += o)
this._doProcessBlock(n, u);
i = n.splice(0, d),
r.sigBytes -= s
}
return new a.init(i, s)
},
clone: function () {
var t = o.clone.call(this);
return t._data = this._data.clone(),
t
},
_minBufferSize: 0
})
, l = (s.Hasher = p.extend({
cfg: o.extend(),
init: function (t) {
this.cfg = this.cfg.extend(t),
this.reset()
},
reset: function () {
p.reset.call(this),
this._doReset()
},
update: function (t) {
return this._append(t),
this._process(),
this
},
finalize: function (t) {
return t && this._append(t),
this._doFinalize()
},
blockSize: 16,
_createHelper: function (t) {
return function (e, i) {
return new t.init(i).finalize(e)
}
},
_createHmacHelper: function (t) {
return function (e, i) {
return new l.HMAC.init(t, i).finalize(e)
}
}
}),
n.algo = {});
return n
}(Math)
}
)), M = (k((function (t, e) {
var i;
t.exports = (i = E,
function (t) {
var e = i
, r = (s = e.lib).WordArray
, n = s.Hasher
, s = e.algo
, o = []
, a = [];
!function () {
function e(t) {
return 4294967296 * (t - (0 | t)) | 0
}
for (var i = 2, r = 0; r < 64;)
!function (e) {
for (var i = t.sqrt(e), r = 2; r <= i; r++)
if (!(e % r))
return;
return 1
}(i) || (r < 8 && (o[r] = e(t.pow(i, .5))),
a[r] = e(t.pow(i, 1 / 3)),
r++),
i++
}();
var c = [];
s = s.SHA256 = n.extend({
_doReset: function () {
this._hash = new r.init(o.slice(0))
},
_doProcessBlock: function (t, e) {
for (var i = this._hash.words, r = i[0], n = i[1], s = i[2], o = i[3], d = i[4], u = i[5], h = i[6], p = i[7], l = 0; l < 64; l++) {
l < 16 ? c[l] = 0 | t[e + l] : (m = ((w = c[l - 15]) << 25 | w >>> 7) ^ (w << 14 | w >>> 18) ^ w >>> 3,
w = ((f = c[l - 2]) << 15 | f >>> 17) ^ (f << 13 | f >>> 19) ^ f >>> 10,
c[l] = m + c[l - 7] + w + c[l - 16]);
var f = r & n ^ r & s ^ n & s
,
m = (r << 30 | r >>> 2) ^ (r << 19 | r >>> 13) ^ (r << 10 | r >>> 22)
,
w = p + ((d << 26 | d >>> 6) ^ (d << 21 | d >>> 11) ^ (d << 7 | d >>> 25)) + (d & u ^ ~d & h) + a[l] + c[l];
p = h,
h = u,
u = d,
d = o + w | 0,
o = s,
s = n,
n = r,
r = w + (m + f) | 0
}
i[0] = i[0] + r | 0,
i[1] = i[1] + n | 0,
i[2] = i[2] + s | 0,
i[3] = i[3] + o | 0,
i[4] = i[4] + d | 0,
i[5] = i[5] + u | 0,
i[6] = i[6] + h | 0,
i[7] = i[7] + p | 0
},
_doFinalize: function () {
var e = this._data
, i = e.words
, r = 8 * this._nDataBytes
, n = 8 * e.sigBytes;
return i[n >>> 5] |= 128 << 24 - n % 32,
i[14 + (64 + n >>> 9 << 4)] = t.floor(r / 4294967296),
i[15 + (64 + n >>> 9 << 4)] = r,
e.sigBytes = 4 * i.length,
this._process(),
this._hash
},
clone: function () {
var t = n.clone.call(this);
return t._hash = this._hash.clone(),
t
}
}),
e.SHA256 = n._createHelper(s),
e.HmacSHA256 = n._createHmacHelper(s)
}(Math),
i.SHA256)
}
)),
k((function (t, e) {
var i;
t.exports = (i = E,
void function () {
var t = i.lib.Base
, e = i.enc.Utf8;
i.algo.HMAC = t.extend({
init: function (t, i) {
t = this._hasher = new t.init,
"string" == typeof i && (i = e.parse(i));
var r = t.blockSize
, n = 4 * r;
i.sigBytes > n && (i = t.finalize(i)),
i.clamp(),
t = this._oKey = i.clone(),
i = this._iKey = i.clone();
for (var s = t.words, o = i.words, a = 0; a < r; a++)
s[a] ^= 1549556828,
o[a] ^= 909522486;
t.sigBytes = i.sigBytes = n,
this.reset()
},
reset: function () {
var t = this._hasher;
t.reset(),
t.update(this._iKey)
},
update: function (t) {
return this._hasher.update(t),
this
},
finalize: function (t) {
var e = this._hasher;
return t = e.finalize(t),
e.reset(),
e.finalize(this._oKey.clone().concat(t))
}
})
}())
}
)),
k((function (t, e) {
t.exports = E.HmacSHA256
}
)));
function A() {
return F.get("game_did")
}
var G, B, F = {
set: function (t, e, i) {
var r = new Date;
i ? r.setTime(r.getTime() + i) : r.setTime(r.getTime() + 31536e8),
r = "expires=" + r.toUTCString(),
e = encodeURI(e),
document.cookie = t + "=" + e + "; " + r + ";domain=.huya.com;path=/"
},
get: function (t) {
for (var e = t, i = document.cookie.split(";"), r = 0; r < i.length; r++) {
var n = i[r].split("=");
if (n[0].trim() === e)
return n[1]
}
return ""
},
del: function (t) {
var e = new Date;
e.setTime(e.getTime() - 1);
var i = this.get(t);
i && (this.set(t, "", -1),
document.cookie = t + "=" + i + ";domain=.huya.com;expires=" + e.toGMTString())
}
};
function D(t) {
var e, i;
return (t = t ? (e = {},
i = t,
Object.keys(i).forEach((function (t) {
"string" == typeof i[t] && (i[t] = i[t].trim()),
null !== i[t] && "" !== i[t] && void 0 !== i[t] && (e[t] = i[t])
}
)),
e) : {}).timestamp = (new Date).getTime(),
t.nonce = function (t) {
for (var e = 0 < arguments.length && void 0 !== t ? t : 32, i = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678", r = i.length, n = "", s = 0; s < e; s++)
n += i.charAt(Math.floor(Math.random() * r));
return n
}(),
t._s = function (t, e) {
var i, r, n;
return e = e || A(),
console.log("key:", e),
t instanceof Object && (r = t,
n = {},
Object.keys(r).sort().forEach((function (t) {
n[t] = r[t]
}
)),
i = t = n,
t = Object.keys(i).map((function (t) {
return "".concat(t, "=").concat(i[t])
}
)).join("&")),
M(t, e).toString()
}(t, F.get("guid")),
t
}
function V(t) {
var e = "";
return Object.entries(t).forEach((function (t) {
t = (i = function (t, e) {
return function (t) {
if (Array.isArray(t))
return t
}(t) || function (t, e) {
if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) {
var i = []
, r = !0
, n = !1
, s = void 0;
try {
for (var o, a = t[Symbol.iterator](); !(r = (o = a.next()).done) && (i.push(o.value),
!e || i.length !== e); r = !0)
;
} catch (t) {
n = !0,
s = t
} finally {
try {
r || null == a.return || a.return()
} finally {
if (n)
throw s
}
}
return i
}
}(t, e) || function (t, e) {
if (t) {
if ("string" == typeof t)
return a(t, e);
var i = Object.prototype.toString.call(t).slice(8, -1);
return "Object" === i && t.constructor && (i = t.constructor.name),
"Map" === i || "Set" === i ? Array.from(t) : "Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? a(t, e) : void 0
}
}(t, e) || function () {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}()
}(t, 2))[0];
var i = i[1];
return e += "".concat(e ? "&" : "").concat(t, "=").concat(encodeURIComponent(i))
}
)),
e
}
function O(t, e, i, r) {
var n = new XMLHttpRequest;
n.addEventListener("readystatechange", (function t() {
4 === n.readyState && (200 === n.status || 304 === n.status ? i(n.response) : r(n.status),
n.removeEventListener("readystatechange", t),
n = void 0)
}
)),
n.open("GET", t),
n.setRequestHeader("Content-Type", "text/plain"),
n.withCredentials = !0,
n.send(e)
}
function q(t, e, i) {
e = 1 < arguments.length && void 0 !== e ? e : {};
var n = 2 < arguments.length ? i : void 0;
i = t.split("?"),
e = D(r({
e: t = i[1].replace("e=", "")
}, e)),
O("".concat(i[0], "?").concat(V(e)), {}, (function (t) {
n && n(t)
}
), (function (t) {
console.error(t),
console.log("内部上报出错:", t)
}
))
}
function H(t, e, i) {
e = 1 < arguments.length && void 0 !== e ? e : {};
var r = 2 < arguments.length ? i : void 0;
O("".concat(t).concat(0 <= t.indexOf("?") ? "&" : "?").concat(V(e)), {}, (function (t) {
r && r(t)
}
), (function (t) {
console.error(t),
console.log("第三方上报出错:", t)
}
))
}
return A() || (G = function (t) {
for (var e = 0 < arguments.length && void 0 !== t ? t : 35, i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_", r = "", n = 0; n < e; n++)
r += i.charAt(parseInt(Math.random() * (i.length - 1)));
return r
}(),
B = G,
F.set("game_did", B)),
IntersectionObserver.prototype.THROTTLE_TIMEOUT = 300,
function () {
!function (t, e) {
if ("function" != typeof e && null !== e)
throw new TypeError("Super expression must either be null or a function");
t.prototype = Object.create(e && e.prototype, {
constructor: {
value: t,
writable: !0,
configurable: !0
}
}),
e && s(t, e)
}(c, T);
var e, i, r, a = function (t) {
var e = function () {
if ("undefined" == typeof Reflect || !Reflect.construct)
return !1;
if (Reflect.construct.sham)
return !1;
if ("function" == typeof Proxy)
return !0;
try {
return Date.prototype.toString.call(Reflect.construct(Date, [], (function () {
}
))),
!0
} catch (t) {
return !1
}
}();
return function () {
var i, r = n(t);
return o(this, e ? (i = n(this).constructor,
Reflect.construct(r, arguments, i)) : r.apply(this, arguments))
}
}(c);
function c(t) {
return function (t, e) {
if (!(t instanceof e))
throw new TypeError("Cannot call a class as a function")
}(this, c),
(t = a.call(this, t)).intersectionObserver = null,
t.init(),
t
}
return e = c,
r = [{
key: "reportApi",
value: function (t, e, i) {
var r = 1 < arguments.length && void 0 !== e ? e : {}
, n = 2 < arguments.length && void 0 !== i && i;
if (i = function (t) {
(n ? H : q)(t, r)
}
,
!t)
throw new Error("上报信息 url 必须要提供!");
Array.isArray(t) ? t.forEach(i) : i(t)
}
}, {
key: "reportPageView",
value: function (t, e) {
var i = 1 < arguments.length && void 0 !== e ? e : {};
if (!t)
throw new Error("曝光上报信息 sdkConf 必须要提供!");
var r = null;
try {
r = JSON.parse(t)
} catch (t) {
throw new Error("曝光上报信息 sdkConf 必须为json字符串!")
}
r.impressionLink.forEach((function (t) {
return q(t, i)
}
)),
r.impressionUrl.forEach((function (t) {
return H(t, i)
}
)),
r.thirdImpression && r.thirdImpression.length && r.thirdImpression.forEach((function (t) {
return H(t, i)
}
))
}
}, {
key: "reportClick",
value: function (t, e) {
var i = 1 < arguments.length && void 0 !== e ? e : {};
if (!t)
throw new Error("曝光上报信息 sdkConf 必须要提供!");
var r = null;
try {
r = JSON.parse(t)
} catch (t) {
throw new Error("曝光上报信息 sdkConf 必须为json字符串!")
}
r.clickLink.forEach((function (t) {
return q(t, i)
}
)),
r.clickUrl.forEach((function (t) {
return H(t, i)
}
)),
r.thirdClick && r.thirdClick.length && r.thirdClick.forEach((function (t) {
return H(t, i)
}
))
}
}, {
key: "reportPlaying",
value: function (t, e) {
var i = 1 < arguments.length && void 0 !== e ? e : {};
if (!t)
throw new Error("曝光上报信息 sdkConf 必须要提供!");
var r = null;
try {
r = JSON.parse(t)
} catch (t) {
throw new Error("曝光上报信息 sdkConf 必须为json字符串!")
}
r.playLink.forEach((function (t) {
return q(t, i)
}
)),
r.playUrl.forEach((function (t) {
return H(t, i)
}
))
}
}, {
key: "reportClose",
value: function (t, e) {
var i = 1 < arguments.length && void 0 !== e ? e : {};
if (!t)
throw new Error("曝光上报信息 sdkConf 必须要提供!");
var r = null;
try {
r = JSON.parse(t)
} catch (t) {
throw new Error("曝光上报信息 sdkConf 必须为json字符串!")
}
r.skipLink.forEach((function (t) {
return q(t, i)
}
)),
r.skipUrl.forEach((function (t) {
return H(t, i)
}
))
}
}, {
key: "getLandingUrl",
value: function (t) {
return t ? JSON.parse(t).landingUrl : ""
}
}],
(i = [{
key: "init",
value: function () {
var t = this;
this.intersectionObserver = new IntersectionObserver((function (e) {
e.forEach((function (e) {
0 < e.intersectionRatio && (t.emit("exposure", e.target),
t.intersectionObserver.unobserve(e.target))
}
))
}
)),
this.bind()
}
}, {
key: "startup",
value: function (t) {
var e = this;
document.querySelectorAll(t).forEach((function (t) {
(t.getAttribute("sdk-conf") || t.reportConf) && e.observe(t)
}
))
}
}, {
key: "observe",
value: function (t, e) {
var i = this;
t.reportConf = e,
this.emit("init", t),
this.intersectionObserver.observe(t),
t.addEventListener("click", (function (t) {
i.emit("click", t.target, t)
}
))
}
}, {
key: "bind",
value: function () {
this.on("exposure", (function (t) {
(t = t.getAttribute("sdk-conf")) && Report.reportPageView(t)
}
)),
this.on("click", (function (t) {
(t = t.getAttribute("sdk-conf")) && Report.reportClick(t)
}
))
}
}, {
key: "install",
value: function (t) {
var e = this;
t.directive("report", {
bind: function (t, i) {
i = i.value,
t.reportConf = i,
e.observe(t)
}
})
}
}]) && t(e.prototype, i),
r && t(e, r),
c
}()
}()
}
).call(this, i("yLpj"))
},
"56qE": function (t, e) {
t.exports = function (t) {
var e = t.G
, i = t.taf
, r = i.HUYA
, n = i.Taf;
function s(t) {
var i = t.shapeInfos.buffer
, s = new n.JceInputStream(i)
, o = new r.SafeRoiMaskProto;
o.readFrom(s),
t.shapeInfos = o,
e.vplayer.pushVideoPixlateInfo(t)
}
!function () {
$('').appendTo($("#player-video"));
var i = document.querySelector("#video-pixelate-box");
e.hasVideoPiexlate = !0,
e.vplayer.setVideoPixelateBox(i),
t.addTafListener("1200001", s)
}()
}
},
"57gn": function (t, e) {
t.exports = function (t) {
var e = t.G
, i = t.Event;
function r(r) {
var n = r.type
, s = r.url;
switch (n) {
case 0:
s && window.open(s);
break;
case 1:
e.vplayerUI.recharge();
break;
case 2:
t.trigger("clickNobleRecharge");
break;
case 3:
t.trigger("openGuard");
break;
case 4:
t.trigger("clickSuperFansRecharge");
break;
case 5:
case 6:
i.fireEvent(i.OPEN_ACTIVITY_PANNEL, {
id: s
})
}
}
i.addEvent(i.HY_ACTION, r)
}
},
"5aV2": function (t, e) {
t.exports = function (t, e) {
var i = 0
, r = 0;
t = t;
this.isOutTimes = function () {
return i > 0 && r > e
}
,
this.reset = function () {
r = 0,
i = 0
}
,
this.add = function (e) {
0 === i && (i = e),
r++,
e - i >= t && (i = e,
r = 1)
}
}
},
"676x": function (t, e, i) {
(function (i) {
var r;
function n(t) {
return (n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
}
: function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
}
)(t)
}
/*!
* VERSION: 1.20.4
* DATE: 2018-02-15
* UPDATES AND DOCS AT: http://greensock.com
*
* Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
* This work is subject to the terms at http://greensock.com/standard-license or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
**/
var s = t.exports && void 0 !== i ? i : this || window;
(s._gsQueue || (s._gsQueue = [])).push((function () {
"use strict";
var t, e, i;
s._gsDefine("TweenMax", ["core.Animation", "core.SimpleTimeline", "TweenLite"], (function (t, e, i) {
var r = function (t) {
var e, i = [], r = t.length;
for (e = 0; e !== r; i.push(t[e++]))
;
return i
}
, n = function (t, e, i) {
var r, n, s = t.cycle;
for (r in s)
n = s[r],
t[r] = "function" == typeof n ? n(i, e[i]) : n[i % n.length];
delete t.cycle
}
, s = function t(e, r, n) {
i.call(this, e, r, n),
this._cycle = 0,
this._yoyo = !0 === this.vars.yoyo || !!this.vars.yoyoEase,
this._repeat = this.vars.repeat || 0,
this._repeatDelay = this.vars.repeatDelay || 0,
this._repeat && this._uncache(!0),
this.render = t.prototype.render
}
, o = 1e-10
, a = i._internals
, c = a.isSelector
, d = a.isArray
, u = s.prototype = i.to({}, .1, {})
, h = [];
s.version = "1.20.4",
u.constructor = s,
u.kill()._gc = !1,
s.killTweensOf = s.killDelayedCallsTo = i.killTweensOf,
s.getTweensOf = i.getTweensOf,
s.lagSmoothing = i.lagSmoothing,
s.ticker = i.ticker,
s.render = i.render,
u.invalidate = function () {
return this._yoyo = !0 === this.vars.yoyo || !!this.vars.yoyoEase,
this._repeat = this.vars.repeat || 0,
this._repeatDelay = this.vars.repeatDelay || 0,
this._yoyoEase = null,
this._uncache(!0),
i.prototype.invalidate.call(this)
}
,
u.updateTo = function (t, e) {
var r, n = this.ratio, s = this.vars.immediateRender || t.immediateRender;
for (r in e && 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)),
t)
this.vars[r] = t[r];
if (this._initted || s)
if (e)
this._initted = !1,
s && this.render(0, !0, !0);
else if (this._gc && this._enabled(!0, !1),
this._notifyPluginsOfEnabled && this._firstPT && i._onPluginEvent("_onDisable", this),
this._time / this._duration > .998) {
var o = this._totalTime;
this.render(0, !0, !1),
this._initted = !1,
this.render(o, !0, !1)
} else if (this._initted = !1,
this._init(),
this._time > 0 || s)
for (var a, c = 1 / (1 - n), d = this._firstPT; d;)
a = d.s + d.c,
d.c *= c,
d.s = a - d.c,
d = d._next;
return this
}
,
u.render = function (t, e, r) {
this._initted || 0 === this._duration && this.vars.repeat && this.invalidate();
var n, s, c, d, u, h, p, l, f,
m = this._dirty ? this.totalDuration() : this._totalDuration,
w = this._time, I = this._totalTime, y = this._cycle, g = this._duration,
S = this._rawPrevTime;
if (t >= m - 1e-7 && t >= 0 ? (this._totalTime = m,
this._cycle = this._repeat,
this._yoyo && 0 != (1 & this._cycle) ? (this._time = 0,
this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0) : (this._time = g,
this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1),
this._reversed || (n = !0,
s = "onComplete",
r = r || this._timeline.autoRemoveChildren),
0 === g && (this._initted || !this.vars.lazy || r) && (this._startTime === this._timeline._duration && (t = 0),
(0 > S || 0 >= t && t >= -1e-7 || S === o && "isPause" !== this.data) && S !== t && (r = !0,
S > o && (s = "onReverseComplete")),
this._rawPrevTime = l = !e || t || S === t ? t : o)) : 1e-7 > t ? (this._totalTime = this._time = this._cycle = 0,
this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0,
(0 !== I || 0 === g && S > 0) && (s = "onReverseComplete",
n = this._reversed),
0 > t && (this._active = !1,
0 === g && (this._initted || !this.vars.lazy || r) && (S >= 0 && (r = !0),
this._rawPrevTime = l = !e || t || S === t ? t : o)),
this._initted || (r = !0)) : (this._totalTime = this._time = t,
0 !== this._repeat && (d = g + this._repeatDelay,
this._cycle = this._totalTime / d >> 0,
0 !== this._cycle && this._cycle === this._totalTime / d && t >= I && this._cycle--,
this._time = this._totalTime - this._cycle * d,
this._yoyo && 0 != (1 & this._cycle) && (this._time = g - this._time,
(f = this._yoyoEase || this.vars.yoyoEase) && (this._yoyoEase || (!0 !== f || this._initted ? this._yoyoEase = f = !0 === f ? this._ease : f instanceof Ease ? f : Ease.map[f] : (f = this.vars.ease,
this._yoyoEase = f = f ? f instanceof Ease ? f : "function" == typeof f ? new Ease(f, this.vars.easeParams) : Ease.map[f] || i.defaultEase : i.defaultEase)),
this.ratio = f ? 1 - f.getRatio((g - this._time) / g) : 0)),
this._time > g ? this._time = g : this._time < 0 && (this._time = 0)),
this._easeType && !f ? (u = this._time / g,
(1 === (h = this._easeType) || 3 === h && u >= .5) && (u = 1 - u),
3 === h && (u *= 2),
1 === (p = this._easePower) ? u *= u : 2 === p ? u *= u * u : 3 === p ? u *= u * u * u : 4 === p && (u *= u * u * u * u),
1 === h ? this.ratio = 1 - u : 2 === h ? this.ratio = u : this._time / g < .5 ? this.ratio = u / 2 : this.ratio = 1 - u / 2) : f || (this.ratio = this._ease.getRatio(this._time / g))),
w !== this._time || r || y !== this._cycle) {
if (!this._initted) {
if (this._init(),
!this._initted || this._gc)
return;
if (!r && this._firstPT && (!1 !== this.vars.lazy && this._duration || this.vars.lazy && !this._duration))
return this._time = w,
this._totalTime = I,
this._rawPrevTime = S,
this._cycle = y,
a.lazyTweens.push(this),
void (this._lazy = [t, e]);
!this._time || n || f ? n && this._ease._calcEnd && !f && (this.ratio = this._ease.getRatio(0 === this._time ? 0 : 1)) : this.ratio = this._ease.getRatio(this._time / g)
}
for (!1 !== this._lazy && (this._lazy = !1),
this._active || !this._paused && this._time !== w && t >= 0 && (this._active = !0),
0 === I && (2 === this._initted && t > 0 && this._init(),
this._startAt && (t >= 0 ? this._startAt.render(t, !0, r) : s || (s = "_dummyGS")),
this.vars.onStart && (0 !== this._totalTime || 0 === g) && (e || this._callback("onStart"))),
c = this._firstPT; c;)
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;
this._onUpdate && (0 > t && this._startAt && this._startTime && this._startAt.render(t, !0, r),
e || (this._totalTime !== I || s) && this._callback("onUpdate")),
this._cycle !== y && (e || this._gc || this.vars.onRepeat && this._callback("onRepeat")),
s && (!this._gc || r) && (0 > t && this._startAt && !this._onUpdate && this._startTime && this._startAt.render(t, !0, r),
n && (this._timeline.autoRemoveChildren && this._enabled(!1, !1),
this._active = !1),
!e && this.vars[s] && this._callback(s),
0 === g && this._rawPrevTime === o && l !== o && (this._rawPrevTime = 0))
} else
I !== this._totalTime && this._onUpdate && (e || this._callback("onUpdate"))
}
,
s.to = function (t, e, i) {
return new s(t, e, i)
}
,
s.from = function (t, e, i) {
return i.runBackwards = !0,
i.immediateRender = 0 != i.immediateRender,
new s(t, e, i)
}
,
s.fromTo = function (t, e, i, r) {
return r.startAt = i,
r.immediateRender = 0 != r.immediateRender && 0 != i.immediateRender,
new s(t, e, r)
}
,
s.staggerTo = s.allTo = function (t, e, o, a, u, p, l) {
a = a || 0;
var f, m, w, I, y = 0, g = [], S = function () {
o.onComplete && o.onComplete.apply(o.onCompleteScope || this, arguments),
u.apply(l || o.callbackScope || this, p || h)
}, v = o.cycle, _ = o.startAt && o.startAt.cycle;
for (d(t) || ("string" == typeof t && (t = i.selector(t) || t),
c(t) && (t = r(t))),
t = t || [],
0 > a && ((t = r(t)).reverse(),
a *= -1),
f = t.length - 1,
w = 0; f >= w; w++) {
for (I in m = {},
o)
m[I] = o[I];
if (v && (n(m, t, w),
null != m.duration && (e = m.duration,
delete m.duration)),
_) {
for (I in _ = m.startAt = {},
o.startAt)
_[I] = o.startAt[I];
n(m.startAt, t, w)
}
m.delay = y + (m.delay || 0),
w === f && u && (m.onComplete = S),
g[w] = new s(t[w], e, m),
y += a
}
return g
}
,
s.staggerFrom = s.allFrom = function (t, e, i, r, n, o, a) {
return i.runBackwards = !0,
i.immediateRender = 0 != i.immediateRender,
s.staggerTo(t, e, i, r, n, o, a)
}
,
s.staggerFromTo = s.allFromTo = function (t, e, i, r, n, o, a, c) {
return r.startAt = i,
r.immediateRender = 0 != r.immediateRender && 0 != i.immediateRender,
s.staggerTo(t, e, r, n, o, a, c)
}
,
s.delayedCall = function (t, e, i, r, n) {
return new s(e, 0, {
delay: t,
onComplete: e,
onCompleteParams: i,
callbackScope: r,
onReverseComplete: e,
onReverseCompleteParams: i,
immediateRender: !1,
useFrames: n,
overwrite: 0
})
}
,
s.set = function (t, e) {
return new s(t, 0, e)
}
,
s.isTweening = function (t) {
return i.getTweensOf(t, !0).length > 0
}
;
var p = function t(e, r) {
for (var n = [], s = 0, o = e._first; o;)
o instanceof i ? n[s++] = o : (r && (n[s++] = o),
s = (n = n.concat(t(o, r))).length),
o = o._next;
return n
}
, l = s.getAllTweens = function (e) {
return p(t._rootTimeline, e).concat(p(t._rootFramesTimeline, e))
}
;
s.killAll = function (t, i, r, n) {
null == i && (i = !0),
null == r && (r = !0);
var s, o, a, c = l(0 != n), d = c.length, u = i && r && n;
for (a = 0; d > a; a++)
o = c[a],
(u || o instanceof e || (s = o.target === o.vars.onComplete) && r || i && !s) && (t ? o.totalTime(o._reversed ? 0 : o.totalDuration()) : o._enabled(!1, !1))
}
,
s.killChildTweensOf = function (t, e) {
if (null != t) {
var n, o, u, h, p, l = a.tweenLookup;
if ("string" == typeof t && (t = i.selector(t) || t),
c(t) && (t = r(t)),
d(t))
for (h = t.length; --h > -1;)
s.killChildTweensOf(t[h], e);
else {
for (u in n = [],
l)
for (o = l[u].target.parentNode; o;)
o === t && (n = n.concat(l[u].tweens)),
o = o.parentNode;
for (p = n.length,
h = 0; p > h; h++)
e && n[h].totalTime(n[h].totalDuration()),
n[h]._enabled(!1, !1)
}
}
}
;
var f = function (t, i, r, n) {
i = !1 !== i,
r = !1 !== r;
for (var s, o, a = l(n = !1 !== n), c = i && r && n, d = a.length; --d > -1;)
o = a[d],
(c || o instanceof e || (s = o.target === o.vars.onComplete) && r || i && !s) && o.paused(t)
};
return s.pauseAll = function (t, e, i) {
f(!0, t, e, i)
}
,
s.resumeAll = function (t, e, i) {
f(!1, t, e, i)
}
,
s.globalTimeScale = function (e) {
var r = t._rootTimeline
, n = i.ticker.time;
return arguments.length ? (e = e || o,
r._startTime = n - (n - r._startTime) * r._timeScale / e,
r = t._rootFramesTimeline,
n = i.ticker.frame,
r._startTime = n - (n - r._startTime) * r._timeScale / e,
r._timeScale = t._rootTimeline._timeScale = e,
e) : r._timeScale
}
,
u.progress = function (t, e) {
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 != (1 & this._cycle) ? 1 - t : t) + this._cycle * (this._duration + this._repeatDelay), e) : this._time / this.duration()
}
,
u.totalProgress = function (t, e) {
return arguments.length ? this.totalTime(this.totalDuration() * t, e) : this._totalTime / this.totalDuration()
}
,
u.time = function (t, e) {
return arguments.length ? (this._dirty && this.totalDuration(),
t > this._duration && (t = this._duration),
this._yoyo && 0 != (1 & this._cycle) ? t = this._duration - t + this._cycle * (this._duration + this._repeatDelay) : 0 !== this._repeat && (t += this._cycle * (this._duration + this._repeatDelay)),
this.totalTime(t, e)) : this._time
}
,
u.duration = function (e) {
return arguments.length ? t.prototype.duration.call(this, e) : this._duration
}
,
u.totalDuration = function (t) {
return arguments.length ? -1 === this._repeat ? this : this.duration((t - this._repeat * this._repeatDelay) / (this._repeat + 1)) : (this._dirty && (this._totalDuration = -1 === this._repeat ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat,
this._dirty = !1),
this._totalDuration)
}
,
u.repeat = function (t) {
return arguments.length ? (this._repeat = t,
this._uncache(!0)) : this._repeat
}
,
u.repeatDelay = function (t) {
return arguments.length ? (this._repeatDelay = t,
this._uncache(!0)) : this._repeatDelay
}
,
u.yoyo = function (t) {
return arguments.length ? (this._yoyo = t,
this) : this._yoyo
}
,
s
}
), !0),
s._gsDefine("TimelineLite", ["core.Animation", "core.SimpleTimeline", "TweenLite"], (function (t, e, i) {
var r = function (t) {
e.call(this, t),
this._labels = {},
this.autoRemoveChildren = !0 === this.vars.autoRemoveChildren,
this.smoothChildTiming = !0 === this.vars.smoothChildTiming,
this._sortChildren = !0,
this._onUpdate = this.vars.onUpdate;
var i, r, n = this.vars;
for (r in n)
i = n[r],
d(i) && -1 !== i.join("").indexOf("{self}") && (n[r] = this._swapSelfInParams(i));
d(n.tweens) && this.add(n.tweens, 0, n.align, n.stagger)
}
, n = 1e-10
, o = i._internals
, a = r._internals = {}
, c = o.isSelector
, d = o.isArray
, u = o.lazyTweens
, h = o.lazyRender
, p = s._gsDefine.globals
, l = function (t) {
var e, i = {};
for (e in t)
i[e] = t[e];
return i
}
, f = function (t, e, i) {
var r, n, s = t.cycle;
for (r in s)
n = s[r],
t[r] = "function" == typeof n ? n(i, e[i]) : n[i % n.length];
delete t.cycle
}
, m = a.pauseCallback = function () {
}
, w = function (t) {
var e, i = [], r = t.length;
for (e = 0; e !== r; i.push(t[e++]))
;
return i
}
, I = r.prototype = new e;
return r.version = "1.20.4",
I.constructor = r,
I.kill()._gc = I._forcingPlayhead = I._hasPause = !1,
I.to = function (t, e, r, n) {
var s = r.repeat && p.TweenMax || i;
return e ? this.add(new s(t, e, r), n) : this.set(t, r, n)
}
,
I.from = function (t, e, r, n) {
return this.add((r.repeat && p.TweenMax || i).from(t, e, r), n)
}
,
I.fromTo = function (t, e, r, n, s) {
var o = n.repeat && p.TweenMax || i;
return e ? this.add(o.fromTo(t, e, r, n), s) : this.set(t, n, s)
}
,
I.staggerTo = function (t, e, n, s, o, a, d, u) {
var h, p, m = new r({
onComplete: a,
onCompleteParams: d,
callbackScope: u,
smoothChildTiming: this.smoothChildTiming
}), I = n.cycle;
for ("string" == typeof t && (t = i.selector(t) || t),
c(t = t || []) && (t = w(t)),
0 > (s = s || 0) && ((t = w(t)).reverse(),
s *= -1),
p = 0; p < t.length; p++)
(h = l(n)).startAt && (h.startAt = l(h.startAt),
h.startAt.cycle && f(h.startAt, t, p)),
I && (f(h, t, p),
null != h.duration && (e = h.duration,
delete h.duration)),
m.to(t[p], e, h, p * s);
return this.add(m, o)
}
,
I.staggerFrom = function (t, e, i, r, n, s, o, a) {
return i.immediateRender = 0 != i.immediateRender,
i.runBackwards = !0,
this.staggerTo(t, e, i, r, n, s, o, a)
}
,
I.staggerFromTo = function (t, e, i, r, n, s, o, a, c) {
return r.startAt = i,
r.immediateRender = 0 != r.immediateRender && 0 != i.immediateRender,
this.staggerTo(t, e, r, n, s, o, a, c)
}
,
I.call = function (t, e, r, n) {
return this.add(i.delayedCall(0, t, e, r), n)
}
,
I.set = function (t, e, r) {
return r = this._parseTimeOrLabel(r, 0, !0),
null == e.immediateRender && (e.immediateRender = r === this._time && !this._paused),
this.add(new i(t, 0, e), r)
}
,
r.exportRoot = function (t, e) {
null == (t = t || {}).smoothChildTiming && (t.smoothChildTiming = !0);
var n, s, o, a, c = new r(t), d = c._timeline;
for (null == e && (e = !0),
d._remove(c, !0),
c._startTime = 0,
c._rawPrevTime = c._time = c._totalTime = d._time,
o = d._first; o;)
a = o._next,
e && o instanceof i && o.target === o.vars.onComplete || (0 > (s = o._startTime - o._delay) && (n = 1),
c.add(o, s)),
o = a;
return d.add(c, 0),
n && c.totalDuration(),
c
}
,
I.add = function (n, s, o, a) {
var c, u, h, p, l, f;
if ("number" != typeof s && (s = this._parseTimeOrLabel(s, 0, !0, n)),
!(n instanceof t)) {
if (n instanceof Array || n && n.push && d(n)) {
for (o = o || "normal",
a = a || 0,
c = s,
u = n.length,
h = 0; u > h; h++)
d(p = n[h]) && (p = new r({
tweens: p
})),
this.add(p, c),
"string" != typeof p && "function" != typeof p && ("sequence" === o ? c = p._startTime + p.totalDuration() / p._timeScale : "start" === o && (p._startTime -= p.delay())),
c += a;
return this._uncache(!0)
}
if ("string" == typeof n)
return this.addLabel(n, s);
if ("function" != typeof n)
throw "Cannot add " + n + " into the timeline; it is not a tween, timeline, function, or string.";
n = i.delayedCall(0, n)
}
if (e.prototype.add.call(this, n, s),
n._time && n.render((this.rawTime() - n._startTime) * n._timeScale, !1, !1),
(this._gc || this._time === this._duration) && !this._paused && this._duration < this.duration())
for (f = (l = this).rawTime() > n._startTime; l._timeline;)
f && l._timeline.smoothChildTiming ? l.totalTime(l._totalTime, !0) : l._gc && l._enabled(!0, !1),
l = l._timeline;
return this
}
,
I.remove = function (e) {
if (e instanceof t) {
this._remove(e, !1);
var i = e._timeline = e.vars.useFrames ? t._rootFramesTimeline : t._rootTimeline;
return e._startTime = (e._paused ? e._pauseTime : i._time) - (e._reversed ? e.totalDuration() - e._totalTime : e._totalTime) / e._timeScale,
this
}
if (e instanceof Array || e && e.push && d(e)) {
for (var r = e.length; --r > -1;)
this.remove(e[r]);
return this
}
return "string" == typeof e ? this.removeLabel(e) : this.kill(null, e)
}
,
I._remove = function (t, i) {
return e.prototype._remove.call(this, t, i),
this._last ? this._time > this.duration() && (this._time = this._duration,
this._totalTime = this._totalDuration) : this._time = this._totalTime = this._duration = this._totalDuration = 0,
this
}
,
I.append = function (t, e) {
return this.add(t, this._parseTimeOrLabel(null, e, !0, t))
}
,
I.insert = I.insertMultiple = function (t, e, i, r) {
return this.add(t, e || 0, i, r)
}
,
I.appendMultiple = function (t, e, i, r) {
return this.add(t, this._parseTimeOrLabel(null, e, !0, t), i, r)
}
,
I.addLabel = function (t, e) {
return this._labels[t] = this._parseTimeOrLabel(e),
this
}
,
I.addPause = function (t, e, r, n) {
var s = i.delayedCall(0, m, r, n || this);
return s.vars.onComplete = s.vars.onReverseComplete = e,
s.data = "isPause",
this._hasPause = !0,
this.add(s, t)
}
,
I.removeLabel = function (t) {
return delete this._labels[t],
this
}
,
I.getLabelTime = function (t) {
return null != this._labels[t] ? this._labels[t] : -1
}
,
I._parseTimeOrLabel = function (e, i, r, n) {
var s, o;
if (n instanceof t && n.timeline === this)
this.remove(n);
else if (n && (n instanceof Array || n.push && d(n)))
for (o = n.length; --o > -1;)
n[o] instanceof t && n[o].timeline === this && this.remove(n[o]);
if (s = "number" != typeof e || i ? this.duration() > 99999999999 ? this.recent().endTime(!1) : this._duration : 0,
"string" == typeof i)
return this._parseTimeOrLabel(i, r && "number" == typeof e && null == this._labels[i] ? e - s : 0, r);
if (i = i || 0,
"string" != typeof e || !isNaN(e) && null == this._labels[e])
null == e && (e = s);
else {
if (-1 === (o = e.indexOf("=")))
return null == this._labels[e] ? r ? this._labels[e] = s + i : i : this._labels[e] + i;
i = parseInt(e.charAt(o - 1) + "1", 10) * Number(e.substr(o + 1)),
e = o > 1 ? this._parseTimeOrLabel(e.substr(0, o - 1), 0, r) : s
}
return Number(e) + i
}
,
I.seek = function (t, e) {
return this.totalTime("number" == typeof t ? t : this._parseTimeOrLabel(t), !1 !== e)
}
,
I.stop = function () {
return this.paused(!0)
}
,
I.gotoAndPlay = function (t, e) {
return this.play(t, e)
}
,
I.gotoAndStop = function (t, e) {
return this.pause(t, e)
}
,
I.render = function (t, e, i) {
this._gc && this._enabled(!0, !1);
var r, s, o, a, c, d, p, l = this._time,
f = this._dirty ? this.totalDuration() : this._totalDuration,
m = this._startTime, w = this._timeScale, I = this._paused;
if (l !== this._time && (t += this._time - l),
t >= f - 1e-7 && t >= 0)
this._totalTime = this._time = f,
this._reversed || this._hasPausedChild() || (s = !0,
a = "onComplete",
c = !!this._timeline.autoRemoveChildren,
0 === this._duration && (0 >= t && t >= -1e-7 || this._rawPrevTime < 0 || this._rawPrevTime === n) && this._rawPrevTime !== t && this._first && (c = !0,
this._rawPrevTime > n && (a = "onReverseComplete"))),
this._rawPrevTime = this._duration || !e || t || this._rawPrevTime === t ? t : n,
t = f + 1e-4;
else if (1e-7 > t)
if (this._totalTime = this._time = 0,
(0 !== l || 0 === this._duration && this._rawPrevTime !== n && (this._rawPrevTime > 0 || 0 > t && this._rawPrevTime >= 0)) && (a = "onReverseComplete",
s = this._reversed),
0 > t)
this._active = !1,
this._timeline.autoRemoveChildren && this._reversed ? (c = s = !0,
a = "onReverseComplete") : this._rawPrevTime >= 0 && this._first && (c = !0),
this._rawPrevTime = t;
else {
if (this._rawPrevTime = this._duration || !e || t || this._rawPrevTime === t ? t : n,
0 === t && s)
for (r = this._first; r && 0 === r._startTime;)
r._duration || (s = !1),
r = r._next;
t = 0,
this._initted || (c = !0)
}
else {
if (this._hasPause && !this._forcingPlayhead && !e) {
if (t >= l)
for (r = this._first; r && r._startTime <= t && !d;)
r._duration || "isPause" !== r.data || r.ratio || 0 === r._startTime && 0 === this._rawPrevTime || (d = r),
r = r._next;
else
for (r = this._last; r && r._startTime >= t && !d;)
r._duration || "isPause" === r.data && r._rawPrevTime > 0 && (d = r),
r = r._prev;
d && (this._time = t = d._startTime,
this._totalTime = t + this._cycle * (this._totalDuration + this._repeatDelay))
}
this._totalTime = this._time = this._rawPrevTime = t
}
if (this._time !== l && this._first || i || c || d) {
if (this._initted || (this._initted = !0),
this._active || !this._paused && this._time !== l && t > 0 && (this._active = !0),
0 === l && this.vars.onStart && (0 === this._time && this._duration || e || this._callback("onStart")),
(p = this._time) >= l)
for (r = this._first; r && (o = r._next,
p === this._time && (!this._paused || I));)
(r._active || r._startTime <= p && !r._paused && !r._gc) && (d === r && this.pause(),
r._reversed ? r.render((r._dirty ? r.totalDuration() : r._totalDuration) - (t - r._startTime) * r._timeScale, e, i) : r.render((t - r._startTime) * r._timeScale, e, i)),
r = o;
else
for (r = this._last; r && (o = r._prev,
p === this._time && (!this._paused || I));) {
if (r._active || r._startTime <= l && !r._paused && !r._gc) {
if (d === r) {
for (d = r._prev; d && d.endTime() > this._time;)
d.render(d._reversed ? d.totalDuration() - (t - d._startTime) * d._timeScale : (t - d._startTime) * d._timeScale, e, i),
d = d._prev;
d = null,
this.pause()
}
r._reversed ? r.render((r._dirty ? r.totalDuration() : r._totalDuration) - (t - r._startTime) * r._timeScale, e, i) : r.render((t - r._startTime) * r._timeScale, e, i)
}
r = o
}
this._onUpdate && (e || (u.length && h(),
this._callback("onUpdate"))),
a && (this._gc || (m === this._startTime || w !== this._timeScale) && (0 === this._time || f >= this.totalDuration()) && (s && (u.length && h(),
this._timeline.autoRemoveChildren && this._enabled(!1, !1),
this._active = !1),
!e && this.vars[a] && this._callback(a)))
}
}
,
I._hasPausedChild = function () {
for (var t = this._first; t;) {
if (t._paused || t instanceof r && t._hasPausedChild())
return !0;
t = t._next
}
return !1
}
,
I.getChildren = function (t, e, r, n) {
n = n || -9999999999;
for (var s = [], o = this._first, a = 0; o;)
o._startTime < n || (o instanceof i ? !1 !== e && (s[a++] = o) : (!1 !== r && (s[a++] = o),
!1 !== t && (a = (s = s.concat(o.getChildren(!0, e, r))).length))),
o = o._next;
return s
}
,
I.getTweensOf = function (t, e) {
var r, n, s = this._gc, o = [], a = 0;
for (s && this._enabled(!0, !0),
n = (r = i.getTweensOf(t)).length; --n > -1;)
(r[n].timeline === this || e && this._contains(r[n])) && (o[a++] = r[n]);
return s && this._enabled(!1, !0),
o
}
,
I.recent = function () {
return this._recent
}
,
I._contains = function (t) {
for (var e = t.timeline; e;) {
if (e === this)
return !0;
e = e.timeline
}
return !1
}
,
I.shiftChildren = function (t, e, i) {
i = i || 0;
for (var r, n = this._first, s = this._labels; n;)
n._startTime >= i && (n._startTime += t),
n = n._next;
if (e)
for (r in s)
s[r] >= i && (s[r] += t);
return this._uncache(!0)
}
,
I._kill = function (t, e) {
if (!t && !e)
return this._enabled(!1, !1);
for (var i = e ? this.getTweensOf(e) : this.getChildren(!0, !0, !1), r = i.length, n = !1; --r > -1;)
i[r]._kill(t, e) && (n = !0);
return n
}
,
I.clear = function (t) {
var e = this.getChildren(!1, !0, !0)
, i = e.length;
for (this._time = this._totalTime = 0; --i > -1;)
e[i]._enabled(!1, !1);
return !1 !== t && (this._labels = {}),
this._uncache(!0)
}
,
I.invalidate = function () {
for (var e = this._first; e;)
e.invalidate(),
e = e._next;
return t.prototype.invalidate.call(this)
}
,
I._enabled = function (t, i) {
if (t === this._gc)
for (var r = this._first; r;)
r._enabled(t, !0),
r = r._next;
return e.prototype._enabled.call(this, t, i)
}
,
I.totalTime = function (e, i, r) {
this._forcingPlayhead = !0;
var n = t.prototype.totalTime.apply(this, arguments);
return this._forcingPlayhead = !1,
n
}
,
I.duration = function (t) {
return arguments.length ? (0 !== this.duration() && 0 !== t && this.timeScale(this._duration / t),
this) : (this._dirty && this.totalDuration(),
this._duration)
}
,
I.totalDuration = function (t) {
if (!arguments.length) {
if (this._dirty) {
for (var e, i, r = 0, n = this._last, s = 999999999999; n;)
e = n._prev,
n._dirty && n.totalDuration(),
n._startTime > s && this._sortChildren && !n._paused && !this._calculatingDuration ? (this._calculatingDuration = 1,
this.add(n, n._startTime - n._delay),
this._calculatingDuration = 0) : s = n._startTime,
n._startTime < 0 && !n._paused && (r -= n._startTime,
this._timeline.smoothChildTiming && (this._startTime += n._startTime / this._timeScale,
this._time -= n._startTime,
this._totalTime -= n._startTime,
this._rawPrevTime -= n._startTime),
this.shiftChildren(-n._startTime, !1, -9999999999),
s = 0),
(i = n._startTime + n._totalDuration / n._timeScale) > r && (r = i),
n = e;
this._duration = this._totalDuration = r,
this._dirty = !1
}
return this._totalDuration
}
return t && this.totalDuration() ? this.timeScale(this._totalDuration / t) : this
}
,
I.paused = function (e) {
if (!e)
for (var i = this._first, r = this._time; i;)
i._startTime === r && "isPause" === i.data && (i._rawPrevTime = 0),
i = i._next;
return t.prototype.paused.apply(this, arguments)
}
,
I.usesFrames = function () {
for (var e = this._timeline; e._timeline;)
e = e._timeline;
return e === t._rootFramesTimeline
}
,
I.rawTime = function (t) {
return t && (this._paused || this._repeat && this.time() > 0 && this.totalProgress() < 1) ? this._totalTime % (this._duration + this._repeatDelay) : this._paused ? this._totalTime : (this._timeline.rawTime(t) - this._startTime) * this._timeScale
}
,
r
}
), !0),
s._gsDefine("TimelineMax", ["TimelineLite", "TweenLite", "easing.Ease"], (function (t, e, i) {
var r = function (e) {
t.call(this, e),
this._repeat = this.vars.repeat || 0,
this._repeatDelay = this.vars.repeatDelay || 0,
this._cycle = 0,
this._yoyo = !0 === this.vars.yoyo,
this._dirty = !0
}
, n = 1e-10
, o = e._internals
, a = o.lazyTweens
, c = o.lazyRender
, d = s._gsDefine.globals
, u = new i(null, null, 1, 0)
, h = r.prototype = new t;
return h.constructor = r,
h.kill()._gc = !1,
r.version = "1.20.4",
h.invalidate = function () {
return this._yoyo = !0 === this.vars.yoyo,
this._repeat = this.vars.repeat || 0,
this._repeatDelay = this.vars.repeatDelay || 0,
this._uncache(!0),
t.prototype.invalidate.call(this)
}
,
h.addCallback = function (t, i, r, n) {
return this.add(e.delayedCall(0, t, r, n), i)
}
,
h.removeCallback = function (t, e) {
if (t)
if (null == e)
this._kill(null, t);
else
for (var i = this.getTweensOf(t, !1), r = i.length, n = this._parseTimeOrLabel(e); --r > -1;)
i[r]._startTime === n && i[r]._enabled(!1, !1);
return this
}
,
h.removePause = function (e) {
return this.removeCallback(t._internals.pauseCallback, e)
}
,
h.tweenTo = function (t, i) {
i = i || {};
var r, n, s, o = {
ease: u,
useFrames: this.usesFrames(),
immediateRender: !1,
lazy: !1
}, a = i.repeat && d.TweenMax || e;
for (n in i)
o[n] = i[n];
return o.time = this._parseTimeOrLabel(t),
r = Math.abs(Number(o.time) - this._time) / this._timeScale || .001,
s = new a(this, r, o),
o.onStart = function () {
s.target.paused(!0),
s.vars.time === s.target.time() || r !== s.duration() || s.isFromTo || s.duration(Math.abs(s.vars.time - s.target.time()) / s.target._timeScale).render(s.time(), !0, !0),
i.onStart && i.onStart.apply(i.onStartScope || i.callbackScope || s, i.onStartParams || [])
}
,
s
}
,
h.tweenFromTo = function (t, e, i) {
i = i || {},
t = this._parseTimeOrLabel(t),
i.startAt = {
onComplete: this.seek,
onCompleteParams: [t],
callbackScope: this
},
i.immediateRender = !1 !== i.immediateRender;
var r = this.tweenTo(e, i);
return r.isFromTo = 1,
r.duration(Math.abs(r.vars.time - t) / this._timeScale || .001)
}
,
h.render = function (t, e, i) {
this._gc && this._enabled(!0, !1);
var r, s, o, d, u, h, p, l, f = this._time,
m = this._dirty ? this.totalDuration() : this._totalDuration,
w = this._duration, I = this._totalTime, y = this._startTime,
g = this._timeScale, S = this._rawPrevTime, v = this._paused,
_ = this._cycle;
if (f !== this._time && (t += this._time - f),
t >= m - 1e-7 && t >= 0)
this._locked || (this._totalTime = m,
this._cycle = this._repeat),
this._reversed || this._hasPausedChild() || (s = !0,
d = "onComplete",
u = !!this._timeline.autoRemoveChildren,
0 === this._duration && (0 >= t && t >= -1e-7 || 0 > S || S === n) && S !== t && this._first && (u = !0,
S > n && (d = "onReverseComplete"))),
this._rawPrevTime = this._duration || !e || t || this._rawPrevTime === t ? t : n,
this._yoyo && 0 != (1 & this._cycle) ? this._time = t = 0 : (this._time = w,
t = w + 1e-4);
else if (1e-7 > t)
if (this._locked || (this._totalTime = this._cycle = 0),
this._time = 0,
(0 !== f || 0 === w && S !== n && (S > 0 || 0 > t && S >= 0) && !this._locked) && (d = "onReverseComplete",
s = this._reversed),
0 > t)
this._active = !1,
this._timeline.autoRemoveChildren && this._reversed ? (u = s = !0,
d = "onReverseComplete") : S >= 0 && this._first && (u = !0),
this._rawPrevTime = t;
else {
if (this._rawPrevTime = w || !e || t || this._rawPrevTime === t ? t : n,
0 === t && s)
for (r = this._first; r && 0 === r._startTime;)
r._duration || (s = !1),
r = r._next;
t = 0,
this._initted || (u = !0)
}
else if (0 === w && 0 > S && (u = !0),
this._time = this._rawPrevTime = t,
this._locked || (this._totalTime = t,
0 !== this._repeat && (h = w + this._repeatDelay,
this._cycle = this._totalTime / h >> 0,
0 !== this._cycle && this._cycle === this._totalTime / h && t >= I && this._cycle--,
this._time = this._totalTime - this._cycle * h,
this._yoyo && 0 != (1 & this._cycle) && (this._time = w - this._time),
this._time > w ? (this._time = w,
t = w + 1e-4) : this._time < 0 ? this._time = t = 0 : t = this._time)),
this._hasPause && !this._forcingPlayhead && !e) {
if ((t = this._time) >= f || this._repeat && _ !== this._cycle)
for (r = this._first; r && r._startTime <= t && !p;)
r._duration || "isPause" !== r.data || r.ratio || 0 === r._startTime && 0 === this._rawPrevTime || (p = r),
r = r._next;
else
for (r = this._last; r && r._startTime >= t && !p;)
r._duration || "isPause" === r.data && r._rawPrevTime > 0 && (p = r),
r = r._prev;
p && p._startTime < w && (this._time = t = p._startTime,
this._totalTime = t + this._cycle * (this._totalDuration + this._repeatDelay))
}
if (this._cycle !== _ && !this._locked) {
var T = this._yoyo && 0 != (1 & _)
, R = T === (this._yoyo && 0 != (1 & this._cycle))
, b = this._totalTime
, P = this._cycle
, x = this._rawPrevTime
, C = this._time;
if (this._totalTime = _ * w,
this._cycle < _ ? T = !T : this._totalTime += w,
this._time = f,
this._rawPrevTime = 0 === w ? S - 1e-4 : S,
this._cycle = _,
this._locked = !0,
f = T ? 0 : w,
this.render(f, e, 0 === w),
e || this._gc || this.vars.onRepeat && (this._cycle = P,
this._locked = !1,
this._callback("onRepeat")),
f !== this._time)
return;
if (R && (this._cycle = _,
this._locked = !0,
f = T ? w + 1e-4 : -1e-4,
this.render(f, !0, !1)),
this._locked = !1,
this._paused && !v)
return;
this._time = C,
this._totalTime = b,
this._cycle = P,
this._rawPrevTime = x
}
if (this._time !== f && this._first || i || u || p) {
if (this._initted || (this._initted = !0),
this._active || !this._paused && this._totalTime !== I && t > 0 && (this._active = !0),
0 === I && this.vars.onStart && (0 === this._totalTime && this._totalDuration || e || this._callback("onStart")),
(l = this._time) >= f)
for (r = this._first; r && (o = r._next,
l === this._time && (!this._paused || v));)
(r._active || r._startTime <= this._time && !r._paused && !r._gc) && (p === r && this.pause(),
r._reversed ? r.render((r._dirty ? r.totalDuration() : r._totalDuration) - (t - r._startTime) * r._timeScale, e, i) : r.render((t - r._startTime) * r._timeScale, e, i)),
r = o;
else
for (r = this._last; r && (o = r._prev,
l === this._time && (!this._paused || v));) {
if (r._active || r._startTime <= f && !r._paused && !r._gc) {
if (p === r) {
for (p = r._prev; p && p.endTime() > this._time;)
p.render(p._reversed ? p.totalDuration() - (t - p._startTime) * p._timeScale : (t - p._startTime) * p._timeScale, e, i),
p = p._prev;
p = null,
this.pause()
}
r._reversed ? r.render((r._dirty ? r.totalDuration() : r._totalDuration) - (t - r._startTime) * r._timeScale, e, i) : r.render((t - r._startTime) * r._timeScale, e, i)
}
r = o
}
this._onUpdate && (e || (a.length && c(),
this._callback("onUpdate"))),
d && (this._locked || this._gc || (y === this._startTime || g !== this._timeScale) && (0 === this._time || m >= this.totalDuration()) && (s && (a.length && c(),
this._timeline.autoRemoveChildren && this._enabled(!1, !1),
this._active = !1),
!e && this.vars[d] && this._callback(d)))
} else
I !== this._totalTime && this._onUpdate && (e || this._callback("onUpdate"))
}
,
h.getActive = function (t, e, i) {
null == t && (t = !0),
null == e && (e = !0),
null == i && (i = !1);
var r, n, s = [], o = this.getChildren(t, e, i), a = 0, c = o.length;
for (r = 0; c > r; r++)
(n = o[r]).isActive() && (s[a++] = n);
return s
}
,
h.getLabelAfter = function (t) {
t || 0 !== t && (t = this._time);
var e, i = this.getLabelsArray(), r = i.length;
for (e = 0; r > e; e++)
if (i[e].time > t)
return i[e].name;
return null
}
,
h.getLabelBefore = function (t) {
null == t && (t = this._time);
for (var e = this.getLabelsArray(), i = e.length; --i > -1;)
if (e[i].time < t)
return e[i].name;
return null
}
,
h.getLabelsArray = function () {
var t, e = [], i = 0;
for (t in this._labels)
e[i++] = {
time: this._labels[t],
name: t
};
return e.sort((function (t, e) {
return t.time - e.time
}
)),
e
}
,
h.invalidate = function () {
return this._locked = !1,
t.prototype.invalidate.call(this)
}
,
h.progress = function (t, e) {
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 != (1 & this._cycle) ? 1 - t : t) + this._cycle * (this._duration + this._repeatDelay), e) : this._time / this.duration() || 0
}
,
h.totalProgress = function (t, e) {
return arguments.length ? this.totalTime(this.totalDuration() * t, e) : this._totalTime / this.totalDuration() || 0
}
,
h.totalDuration = function (e) {
return arguments.length ? -1 !== this._repeat && e ? this.timeScale(this.totalDuration() / e) : this : (this._dirty && (t.prototype.totalDuration.call(this),
this._totalDuration = -1 === this._repeat ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat),
this._totalDuration)
}
,
h.time = function (t, e) {
return arguments.length ? (this._dirty && this.totalDuration(),
t > this._duration && (t = this._duration),
this._yoyo && 0 != (1 & this._cycle) ? t = this._duration - t + this._cycle * (this._duration + this._repeatDelay) : 0 !== this._repeat && (t += this._cycle * (this._duration + this._repeatDelay)),
this.totalTime(t, e)) : this._time
}
,
h.repeat = function (t) {
return arguments.length ? (this._repeat = t,
this._uncache(!0)) : this._repeat
}
,
h.repeatDelay = function (t) {
return arguments.length ? (this._repeatDelay = t,
this._uncache(!0)) : this._repeatDelay
}
,
h.yoyo = function (t) {
return arguments.length ? (this._yoyo = t,
this) : this._yoyo
}
,
h.currentLabel = function (t) {
return arguments.length ? this.seek(t, !0) : this.getLabelBefore(this._time + 1e-8)
}
,
r
}
), !0),
function () {
var t = 180 / Math.PI
, e = []
, i = []
, r = []
, n = {}
, o = s._gsDefine.globals
, a = function (t, e, i, r) {
i === r && (i = r - (r - e) / 1e6),
t === e && (e = t + (i - t) / 1e6),
this.a = t,
this.b = e,
this.c = i,
this.d = r,
this.da = r - t,
this.ca = i - t,
this.ba = e - t
}
, c = function (t, e, i, r) {
var n = {
a: t
}
, s = {}
, o = {}
, a = {
c: r
}
, c = (t + e) / 2
, d = (e + i) / 2
, u = (i + r) / 2
, h = (c + d) / 2
, p = (d + u) / 2
, l = (p - h) / 8;
return n.b = c + (t - c) / 4,
s.b = h + l,
n.c = s.a = (n.b + s.b) / 2,
s.c = o.a = (h + p) / 2,
o.b = p - l,
a.b = u + (r - u) / 4,
o.c = a.a = (o.b + a.b) / 2,
[n, s, o, a]
}
, d = function (t, n, s, o, a) {
var d, u, h, p, l, f, m, w, I, y, g, S, v, _ = t.length - 1, T = 0, R = t[0].a;
for (d = 0; _ > d; d++)
u = (l = t[T]).a,
h = l.d,
p = t[T + 1].d,
a ? (g = e[d],
v = ((S = i[d]) + g) * n * .25 / (o ? .5 : r[d] || .5),
w = h - ((f = h - (h - u) * (o ? .5 * n : 0 !== g ? v / g : 0)) + (((m = h + (p - h) * (o ? .5 * n : 0 !== S ? v / S : 0)) - f) * (3 * g / (g + S) + .5) / 4 || 0))) : w = h - ((f = h - (h - u) * n * .5) + (m = h + (p - h) * n * .5)) / 2,
f += w,
m += w,
l.c = I = f,
l.b = 0 !== d ? R : R = l.a + .6 * (l.c - l.a),
l.da = h - u,
l.ca = I - u,
l.ba = R - u,
s ? (y = c(u, R, I, h),
t.splice(T, 1, y[0], y[1], y[2], y[3]),
T += 4) : T++,
R = m;
(l = t[T]).b = R,
l.c = R + .4 * (l.d - R),
l.da = l.d - l.a,
l.ca = l.c - l.a,
l.ba = R - l.a,
s && (y = c(l.a, R, l.c, l.d),
t.splice(T, 1, y[0], y[1], y[2], y[3]))
}
, u = function (t, r, n, s) {
var o, c, d, u, h, p, l = [];
if (s)
for (c = (t = [s].concat(t)).length; --c > -1;)
"string" == typeof (p = t[c][r]) && "=" === p.charAt(1) && (t[c][r] = s[r] + Number(p.charAt(0) + p.substr(2)));
if (0 > (o = t.length - 2))
return l[0] = new a(t[0][r], 0, 0, t[0][r]),
l;
for (c = 0; o > c; c++)
d = t[c][r],
u = t[c + 1][r],
l[c] = new a(d, 0, 0, u),
n && (h = t[c + 2][r],
e[c] = (e[c] || 0) + (u - d) * (u - d),
i[c] = (i[c] || 0) + (h - u) * (h - u));
return l[c] = new a(t[c][r], 0, 0, t[c + 1][r]),
l
}
, h = function (t, s, o, a, c, h) {
var p, l, f, m, w, I, y, g, S = {}, v = [], _ = h || t[0];
for (l in c = "string" == typeof c ? "," + c + "," : ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",
null == s && (s = 1),
t[0])
v.push(l);
if (t.length > 1) {
for (g = t[t.length - 1],
y = !0,
p = v.length; --p > -1;)
if (l = v[p],
Math.abs(_[l] - g[l]) > .05) {
y = !1;
break
}
y && (t = t.concat(),
h && t.unshift(h),
t.push(t[1]),
h = t[t.length - 3])
}
for (e.length = i.length = r.length = 0,
p = v.length; --p > -1;)
l = v[p],
n[l] = -1 !== c.indexOf("," + l + ","),
S[l] = u(t, l, n[l], h);
for (p = e.length; --p > -1;)
e[p] = Math.sqrt(e[p]),
i[p] = Math.sqrt(i[p]);
if (!a) {
for (p = v.length; --p > -1;)
if (n[l])
for (I = (f = S[v[p]]).length - 1,
m = 0; I > m; m++)
w = f[m + 1].da / i[m] + f[m].da / e[m] || 0,
r[m] = (r[m] || 0) + w * w;
for (p = r.length; --p > -1;)
r[p] = Math.sqrt(r[p])
}
for (p = v.length,
m = o ? 4 : 1; --p > -1;)
f = S[l = v[p]],
d(f, s, o, a, n[l]),
y && (f.splice(0, m),
f.splice(f.length - m, m));
return S
}
, p = function (t, e, i) {
var r, n, s, o, c, d, u, h, p, l, f, m = {},
w = "cubic" === (e = e || "soft") ? 3 : 2, I = "soft" === e, y = [];
if (I && i && (t = [i].concat(t)),
null == t || t.length < w + 1)
throw "invalid Bezier data";
for (p in t[0])
y.push(p);
for (d = y.length; --d > -1;) {
for (p = y[d],
m[p] = c = [],
l = 0,
h = t.length,
u = 0; h > u; u++)
r = null == i ? t[u][p] : "string" == typeof (f = t[u][p]) && "=" === f.charAt(1) ? i[p] + Number(f.charAt(0) + f.substr(2)) : Number(f),
I && u > 1 && h - 1 > u && (c[l++] = (r + c[l - 2]) / 2),
c[l++] = r;
for (h = l - w + 1,
l = 0,
u = 0; h > u; u += w)
r = c[u],
n = c[u + 1],
s = c[u + 2],
o = 2 === w ? 0 : c[u + 3],
c[l++] = f = 3 === w ? new a(r, n, s, o) : new a(r, (2 * n + r) / 3, (2 * n + s) / 3, s);
c.length = l
}
return m
}
, l = function (t, e, i) {
for (var r, n, s, o, a, c, d, u, h, p, l, f = 1 / i, m = t.length; --m > -1;)
for (s = (p = t[m]).a,
o = p.d - s,
a = p.c - s,
c = p.b - s,
r = n = 0,
u = 1; i >= u; u++)
r = n - (n = ((d = f * u) * d * o + 3 * (h = 1 - d) * (d * a + h * c)) * d),
l = m * i + u - 1,
e[l] = (e[l] || 0) + r * r
}
, f = function (t, e) {
var i, r, n, s, o = [], a = [], c = 0, d = 0, u = (e = e >> 0 || 6) - 1, h = [],
p = [];
for (i in t)
l(t[i], o, e);
for (n = o.length,
r = 0; n > r; r++)
c += Math.sqrt(o[r]),
p[s = r % e] = c,
s === u && (d += c,
h[s = r / e >> 0] = p,
a[s] = d,
c = 0,
p = []);
return {
length: d,
lengths: a,
segments: h
}
}
, m = s._gsDefine.plugin({
propName: "bezier",
priority: -1,
version: "1.3.8",
API: 2,
global: !0,
init: function (t, e, i) {
this._target = t,
e instanceof Array && (e = {
values: e
}),
this._func = {},
this._mod = {},
this._props = [],
this._timeRes = null == e.timeResolution ? 6 : parseInt(e.timeResolution, 10);
var r, n, s, o, a, c = e.values || [], d = {}, u = c[0],
l = e.autoRotate || i.vars.orientToBezier;
for (r in this._autoRotate = l ? l instanceof Array ? l : [["x", "y", "rotation", !0 === l ? 0 : Number(l) || 0]] : null,
u)
this._props.push(r);
for (s = this._props.length; --s > -1;)
r = this._props[s],
this._overwriteProps.push(r),
n = this._func[r] = "function" == typeof t[r],
d[r] = n ? t[r.indexOf("set") || "function" != typeof t["get" + r.substr(3)] ? r : "get" + r.substr(3)]() : parseFloat(t[r]),
a || d[r] !== c[0][r] && (a = d);
if (this._beziers = "cubic" !== e.type && "quadratic" !== e.type && "soft" !== e.type ? h(c, isNaN(e.curviness) ? 1 : e.curviness, !1, "thruBasic" === e.type, e.correlate, a) : p(c, e.type, d),
this._segCount = this._beziers[r].length,
this._timeRes) {
var m = f(this._beziers, this._timeRes);
this._length = m.length,
this._lengths = m.lengths,
this._segments = m.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
}
if (l = this._autoRotate)
for (this._initialRotations = [],
l[0] instanceof Array || (this._autoRotate = l = [l]),
s = l.length; --s > -1;) {
for (o = 0; 3 > o; o++)
r = l[s][o],
this._func[r] = "function" == typeof t[r] && t[r.indexOf("set") || "function" != typeof t["get" + r.substr(3)] ? r : "get" + r.substr(3)];
r = l[s][2],
this._initialRotations[s] = (this._func[r] ? this._func[r].call(this._target) : this._target[r]) || 0,
this._overwriteProps.push(r)
}
return this._startRatio = i.vars.runBackwards ? 1 : 0,
!0
},
set: function (e) {
var i, r, n, s, o, a, c, d, u, h, p = this._segCount, l = this._func,
f = this._target, m = e !== this._startRatio;
if (this._timeRes) {
if (u = this._lengths,
h = this._curSeg,
e *= this._length,
n = this._li,
e > this._l2 && p - 1 > n) {
for (d = p - 1; d > n && (this._l2 = u[++n]) <= e;)
;
this._l1 = u[n - 1],
this._li = n,
this._curSeg = h = this._segments[n],
this._s2 = h[this._s1 = this._si = 0]
} else if (e < this._l1 && n > 0) {
for (; n > 0 && (this._l1 = u[--n]) >= e;)
;
0 === n && e < this._l1 ? this._l1 = 0 : n++,
this._l2 = u[n],
this._li = n,
this._curSeg = h = this._segments[n],
this._s1 = h[(this._si = h.length - 1) - 1] || 0,
this._s2 = h[this._si]
}
if (i = n,
e -= this._l1,
n = this._si,
e > this._s2 && n < h.length - 1) {
for (d = h.length - 1; d > n && (this._s2 = h[++n]) <= e;)
;
this._s1 = h[n - 1],
this._si = n
} else if (e < this._s1 && n > 0) {
for (; n > 0 && (this._s1 = h[--n]) >= e;)
;
0 === n && e < this._s1 ? this._s1 = 0 : n++,
this._s2 = h[n],
this._si = n
}
a = (n + (e - this._s1) / (this._s2 - this._s1)) * this._prec || 0
} else
a = (e - (i = 0 > e ? 0 : e >= 1 ? p - 1 : p * e >> 0) * (1 / p)) * p;
for (r = 1 - a,
n = this._props.length; --n > -1;)
s = this._props[n],
c = (a * a * (o = this._beziers[s][i]).da + 3 * r * (a * o.ca + r * o.ba)) * a + o.a,
this._mod[s] && (c = this._mod[s](c, f)),
l[s] ? f[s](c) : f[s] = c;
if (this._autoRotate) {
var w, I, y, g, S, v, _, T = this._autoRotate;
for (n = T.length; --n > -1;)
s = T[n][2],
v = T[n][3] || 0,
_ = !0 === T[n][4] ? 1 : t,
o = this._beziers[T[n][0]],
w = this._beziers[T[n][1]],
o && w && (o = o[i],
w = w[i],
I = o.a + (o.b - o.a) * a,
I += ((g = o.b + (o.c - o.b) * a) - I) * a,
g += (o.c + (o.d - o.c) * a - g) * a,
y = w.a + (w.b - w.a) * a,
y += ((S = w.b + (w.c - w.b) * a) - y) * a,
S += (w.c + (w.d - w.c) * a - S) * a,
c = m ? Math.atan2(S - y, g - I) * _ + v : this._initialRotations[n],
this._mod[s] && (c = this._mod[s](c, f)),
l[s] ? f[s](c) : f[s] = c)
}
}
})
, w = m.prototype;
m.bezierThrough = h,
m.cubicToQuadratic = c,
m._autoCSS = !0,
m.quadraticToCubic = function (t, e, i) {
return new a(t, (2 * e + t) / 3, (2 * e + i) / 3, i)
}
,
m._cssRegister = function () {
var t = o.CSSPlugin;
if (t) {
var e = t._internals
, i = e._parseToProxy
, r = e._setPluginRatio
, n = e.CSSPropTween;
e._registerComplexSpecialProp("bezier", {
parser: function (t, e, s, o, a, c) {
e instanceof Array && (e = {
values: e
}),
c = new m;
var d, u, h, p = e.values, l = p.length - 1, f = [], w = {};
if (0 > l)
return a;
for (d = 0; l >= d; d++)
h = i(t, p[d], o, a, c, l !== d),
f[d] = h.end;
for (u in e)
w[u] = e[u];
return w.values = f,
(a = new n(t, "bezier", 0, 0, h.pt, 2)).data = h,
a.plugin = c,
a.setRatio = r,
0 === w.autoRotate && (w.autoRotate = !0),
!w.autoRotate || w.autoRotate instanceof Array || (d = !0 === w.autoRotate ? 0 : Number(w.autoRotate),
w.autoRotate = null != h.end.left ? [["left", "top", "rotation", d, !1]] : null != h.end.x && [["x", "y", "rotation", d, !1]]),
w.autoRotate && (o._transform || o._enableTransforms(!1),
h.autoRotate = o._target._gsTransform,
h.proxy.rotation = h.autoRotate.rotation || 0,
o._overwriteProps.push("rotation")),
c._onInitTween(h.proxy, w, o._tween),
a
}
})
}
}
,
w._mod = function (t) {
for (var e, i = this._overwriteProps, r = i.length; --r > -1;)
(e = t[i[r]]) && "function" == typeof e && (this._mod[i[r]] = e)
}
,
w._kill = function (t) {
var e, i, r = this._props;
for (e in this._beziers)
if (e in t)
for (delete this._beziers[e],
delete this._func[e],
i = r.length; --i > -1;)
r[i] === e && r.splice(i, 1);
if (r = this._autoRotate)
for (i = r.length; --i > -1;)
t[r[i][2]] && r.splice(i, 1);
return this._super._kill.call(this, t)
}
}(),
s._gsDefine("plugins.CSSPlugin", ["plugins.TweenPlugin", "TweenLite"], (function (t, e) {
var i, r, o, a, c = function e() {
t.call(this, "css"),
this._overwriteProps.length = 0,
this.setRatio = e.prototype.setRatio
}, d = s._gsDefine.globals, u = {}, h = c.prototype = new t("css");
h.constructor = c,
c.version = "1.20.4",
c.API = 2,
c.defaultTransformPerspective = 0,
c.defaultSkewType = "compensated",
c.defaultSmoothOrigin = !0,
c.suffixMap = {
top: h = "px",
right: h,
bottom: h,
left: h,
width: h,
height: h,
fontSize: h,
padding: h,
margin: h,
perspective: h,
lineHeight: ""
};
var p, l, f, m, w, I, y, g, S = /(?:\-|\.|\b)(\d|\.|e\-)+/g,
v = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,
_ = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,
T = /(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g, R = /(?:\d|\-|\+|=|#|\.)*/g,
b = /opacity *= *([^)]*)/i, P = /opacity:([^;]*)/i,
x = /alpha\(opacity *=.+?\)/i, C = /^(rgb|hsl)/, U = /([A-Z])/g,
k = /-([a-z])/gi, L = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,
N = function (t, e) {
return e.toUpperCase()
}, E = /(?:Left|Right|Width)/i, M = /(M11|M12|M21|M22)=[\d\-\.e]+/gi,
A = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,
G = /,(?=[^\)]*(?:\(|$))/gi, B = /[\s,\(]/i, F = Math.PI / 180,
D = 180 / Math.PI, V = {}, O = {
style: {}
}, q = s.document || {
createElement: function () {
return O
}
}, H = function (t, e) {
return q.createElementNS ? q.createElementNS(e || "http://www.w3.org/1999/xhtml", t) : q.createElement(t)
}, W = H("div"), $ = H("img"), z = c._internals = {
_specialProps: u
}, j = (s.navigator || {}).userAgent || "", Y = function () {
var t = j.indexOf("Android")
, e = H("a");
return f = -1 !== j.indexOf("Safari") && -1 === j.indexOf("Chrome") && (-1 === t || parseFloat(j.substr(t + 8, 2)) > 3),
w = f && parseFloat(j.substr(j.indexOf("Version/") + 8, 2)) < 6,
m = -1 !== j.indexOf("Firefox"),
(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(j) || /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(j)) && (I = parseFloat(RegExp.$1)),
!!e && (e.style.cssText = "top:1px;opacity:.55;",
/^0.55/.test(e.style.opacity))
}(), J = function (t) {
return b.test("string" == typeof t ? t : (t.currentStyle ? t.currentStyle.filter : t.style.filter) || "") ? parseFloat(RegExp.$1) / 100 : 1
}, K = function (t) {
s.console && console.log(t)
}, X = "", Q = "", Z = function (t, e) {
var i, r, n = (e = e || W).style;
if (void 0 !== n[t])
return t;
for (t = t.charAt(0).toUpperCase() + t.substr(1),
i = ["O", "Moz", "ms", "Ms", "Webkit"],
r = 5; --r > -1 && void 0 === n[i[r] + t];)
;
return r >= 0 ? (X = "-" + (Q = 3 === r ? "ms" : i[r]).toLowerCase() + "-",
Q + t) : null
}, tt = q.defaultView ? q.defaultView.getComputedStyle : function () {
}
, et = c.getStyle = function (t, e, i, r, n) {
var s;
return Y || "opacity" !== e ? (!r && t.style[e] ? s = t.style[e] : (i = i || tt(t)) ? s = i[e] || i.getPropertyValue(e) || i.getPropertyValue(e.replace(U, "-$1").toLowerCase()) : t.currentStyle && (s = t.currentStyle[e]),
null == n || s && "none" !== s && "auto" !== s && "auto auto" !== s ? s : n) : J(t)
}
, it = z.convertToPixels = function (t, i, r, n, s) {
if ("px" === n || !n && "lineHeight" !== i)
return r;
if ("auto" === n || !r)
return 0;
var o, a, d, u = E.test(i), h = t, p = W.style, l = 0 > r, f = 1 === r;
if (l && (r = -r),
f && (r *= 100),
"lineHeight" !== i || n)
if ("%" === n && -1 !== i.indexOf("border"))
o = r / 100 * (u ? t.clientWidth : t.clientHeight);
else {
if (p.cssText = "border:0 solid red;position:" + et(t, "position") + ";line-height:0;",
"%" !== n && h.appendChild && "v" !== n.charAt(0) && "rem" !== n)
p[u ? "borderLeftWidth" : "borderTopWidth"] = r + n;
else {
if (h = t.parentNode || q.body,
-1 !== et(h, "display").indexOf("flex") && (p.position = "absolute"),
a = h._gsCache,
d = e.ticker.frame,
a && u && a.time === d)
return a.width * r / 100;
p[u ? "width" : "height"] = r + n
}
h.appendChild(W),
o = parseFloat(W[u ? "offsetWidth" : "offsetHeight"]),
h.removeChild(W),
u && "%" === n && !1 !== c.cacheWidths && ((a = h._gsCache = h._gsCache || {}).time = d,
a.width = o / r * 100),
0 !== o || s || (o = it(t, i, r, n, !0))
}
else
a = tt(t).lineHeight,
t.style.lineHeight = r,
o = parseFloat(tt(t).lineHeight),
t.style.lineHeight = a;
return f && (o /= 100),
l ? -o : o
}
, rt = z.calculateOffset = function (t, e, i) {
if ("absolute" !== et(t, "position", i))
return 0;
var r = "left" === e ? "Left" : "Top"
, n = et(t, "margin" + r, i);
return t["offset" + r] - (it(t, e, parseFloat(n), n.replace(R, "")) || 0)
}
, nt = function (t, e) {
var i, r, n, s = {};
if (e = e || tt(t, null))
if (i = e.length)
for (; --i > -1;)
(-1 === (n = e[i]).indexOf("-transform") || Lt === n) && (s[n.replace(k, N)] = e.getPropertyValue(n));
else
for (i in e)
(-1 === i.indexOf("Transform") || kt === i) && (s[i] = e[i]);
else if (e = t.currentStyle || t.style)
for (i in e)
"string" == typeof i && void 0 === s[i] && (s[i.replace(k, N)] = e[i]);
return Y || (s.opacity = J(t)),
r = $t(t, e, !1),
s.rotation = r.rotation,
s.skewX = r.skewX,
s.scaleX = r.scaleX,
s.scaleY = r.scaleY,
s.x = r.x,
s.y = r.y,
Et && (s.z = r.z,
s.rotationX = r.rotationX,
s.rotationY = r.rotationY,
s.scaleZ = r.scaleZ),
s.filters && delete s.filters,
s
}, st = function (t, e, i, r, n) {
var s, o, a, c = {}, d = t.style;
for (o in i)
"cssText" !== o && "length" !== o && isNaN(o) && (e[o] !== (s = i[o]) || n && n[o]) && -1 === o.indexOf("Origin") && ("number" == typeof s || "string" == typeof s) && (c[o] = "auto" !== s || "left" !== o && "top" !== o ? "" !== s && "auto" !== s && "none" !== s || "string" != typeof e[o] || "" === e[o].replace(T, "") ? s : 0 : rt(t, o),
void 0 !== d[o] && (a = new St(d, o, d[o], a)));
if (r)
for (o in r)
"className" !== o && (c[o] = r[o]);
return {
difs: c,
firstMPT: a
}
}, ot = {
width: ["Left", "Right"],
height: ["Top", "Bottom"]
}, at = ["marginLeft", "marginRight", "marginTop", "marginBottom"],
ct = function (t, e, i) {
if ("svg" === (t.nodeName + "").toLowerCase())
return (i || tt(t))[e] || 0;
if (t.getCTM && qt(t))
return t.getBBox()[e] || 0;
var r = parseFloat("width" === e ? t.offsetWidth : t.offsetHeight)
, n = ot[e]
, s = n.length;
for (i = i || tt(t, null); --s > -1;)
r -= parseFloat(et(t, "padding" + n[s], i, !0)) || 0,
r -= parseFloat(et(t, "border" + n[s] + "Width", i, !0)) || 0;
return r
}, dt = function t(e, i) {
if ("contain" === e || "auto" === e || "auto auto" === e)
return e + " ";
(null == e || "" === e) && (e = "0 0");
var r, n = e.split(" "),
s = -1 !== e.indexOf("left") ? "0%" : -1 !== e.indexOf("right") ? "100%" : n[0],
o = -1 !== e.indexOf("top") ? "0%" : -1 !== e.indexOf("bottom") ? "100%" : n[1];
if (n.length > 3 && !i) {
for (n = e.split(", ").join(",").split(","),
e = [],
r = 0; r < n.length; r++)
e.push(t(n[r]));
return e.join(",")
}
return null == o ? o = "center" === s ? "50%" : "0" : "center" === o && (o = "50%"),
("center" === s || isNaN(parseFloat(s)) && -1 === (s + "").indexOf("=")) && (s = "50%"),
e = s + " " + o + (n.length > 2 ? " " + n[2] : ""),
i && (i.oxp = -1 !== s.indexOf("%"),
i.oyp = -1 !== o.indexOf("%"),
i.oxr = "=" === s.charAt(1),
i.oyr = "=" === o.charAt(1),
i.ox = parseFloat(s.replace(T, "")),
i.oy = parseFloat(o.replace(T, "")),
i.v = e),
i || e
}, ut = function (t, e) {
return "function" == typeof t && (t = t(g, y)),
"string" == typeof t && "=" === t.charAt(1) ? parseInt(t.charAt(0) + "1", 10) * parseFloat(t.substr(2)) : parseFloat(t) - parseFloat(e) || 0
}, ht = function (t, e) {
return "function" == typeof t && (t = t(g, y)),
null == t ? e : "string" == typeof t && "=" === t.charAt(1) ? parseInt(t.charAt(0) + "1", 10) * parseFloat(t.substr(2)) + e : parseFloat(t) || 0
}, pt = function (t, e, i, r) {
var n, s, o, a, c;
return "function" == typeof t && (t = t(g, y)),
null == t ? a = e : "number" == typeof t ? a = t : (n = 360,
s = t.split("_"),
o = ((c = "=" === t.charAt(1)) ? parseInt(t.charAt(0) + "1", 10) * parseFloat(s[0].substr(2)) : parseFloat(s[0])) * (-1 === t.indexOf("rad") ? 1 : D) - (c ? 0 : e),
s.length && (r && (r[i] = e + o),
-1 !== t.indexOf("short") && ((o %= n) !== o % 180 && (o = 0 > o ? o + n : o - n)),
-1 !== t.indexOf("_cw") && 0 > o ? o = (o + 9999999999 * n) % n - (o / n | 0) * n : -1 !== t.indexOf("ccw") && o > 0 && (o = (o - 9999999999 * n) % n - (o / n | 0) * n)),
a = e + o),
1e-6 > a && a > -1e-6 && (a = 0),
a
}, lt = {
aqua: [0, 255, 255],
lime: [0, 255, 0],
silver: [192, 192, 192],
black: [0, 0, 0],
maroon: [128, 0, 0],
teal: [0, 128, 128],
blue: [0, 0, 255],
navy: [0, 0, 128],
white: [255, 255, 255],
fuchsia: [255, 0, 255],
olive: [128, 128, 0],
yellow: [255, 255, 0],
orange: [255, 165, 0],
gray: [128, 128, 128],
purple: [128, 0, 128],
green: [0, 128, 0],
red: [255, 0, 0],
pink: [255, 192, 203],
cyan: [0, 255, 255],
transparent: [255, 255, 255, 0]
}, ft = function (t, e, i) {
return 255 * (1 > 6 * (t = 0 > t ? t + 1 : t > 1 ? t - 1 : t) ? e + (i - e) * t * 6 : .5 > t ? i : 2 > 3 * t ? e + (i - e) * (2 / 3 - t) * 6 : e) + .5 | 0
}, mt = c.parseColor = function (t, e) {
var i, r, n, s, o, a, c, d, u, h, p;
if (t)
if ("number" == typeof t)
i = [t >> 16, t >> 8 & 255, 255 & t];
else {
if ("," === t.charAt(t.length - 1) && (t = t.substr(0, t.length - 1)),
lt[t])
i = lt[t];
else if ("#" === t.charAt(0))
4 === t.length && (r = t.charAt(1),
n = t.charAt(2),
s = t.charAt(3),
t = "#" + r + r + n + n + s + s),
i = [(t = parseInt(t.substr(1), 16)) >> 16, t >> 8 & 255, 255 & t];
else if ("hsl" === t.substr(0, 3))
if (i = p = t.match(S),
e) {
if (-1 !== t.indexOf("="))
return t.match(v)
} else
o = Number(i[0]) % 360 / 360,
a = Number(i[1]) / 100,
r = 2 * (c = Number(i[2]) / 100) - (n = .5 >= c ? c * (a + 1) : c + a - c * a),
i.length > 3 && (i[3] = Number(i[3])),
i[0] = ft(o + 1 / 3, r, n),
i[1] = ft(o, r, n),
i[2] = ft(o - 1 / 3, r, n);
else
i = t.match(S) || lt.transparent;
i[0] = Number(i[0]),
i[1] = Number(i[1]),
i[2] = Number(i[2]),
i.length > 3 && (i[3] = Number(i[3]))
}
else
i = lt.black;
return e && !p && (r = i[0] / 255,
n = i[1] / 255,
s = i[2] / 255,
c = ((d = Math.max(r, n, s)) + (u = Math.min(r, n, s))) / 2,
d === u ? o = a = 0 : (h = d - u,
a = c > .5 ? h / (2 - d - u) : h / (d + u),
o = d === r ? (n - s) / h + (s > n ? 6 : 0) : d === n ? (s - r) / h + 2 : (r - n) / h + 4,
o *= 60),
i[0] = o + .5 | 0,
i[1] = 100 * a + .5 | 0,
i[2] = 100 * c + .5 | 0),
i
}
, wt = function (t, e) {
var i, r, n, s = t.match(It) || [], o = 0, a = "";
if (!s.length)
return t;
for (i = 0; i < s.length; i++)
r = s[i],
o += (n = t.substr(o, t.indexOf(r, o) - o)).length + r.length,
3 === (r = mt(r, e)).length && r.push(1),
a += n + (e ? "hsla(" + r[0] + "," + r[1] + "%," + r[2] + "%," + r[3] : "rgba(" + r.join(",")) + ")";
return a + t.substr(o)
}, It = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";
for (h in lt)
It += "|" + h + "\\b";
It = new RegExp(It + ")", "gi"),
c.colorStringFilter = function (t) {
var e, i = t[0] + " " + t[1];
It.test(i) && (e = -1 !== i.indexOf("hsl(") || -1 !== i.indexOf("hsla("),
t[0] = wt(t[0], e),
t[1] = wt(t[1], e)),
It.lastIndex = 0
}
,
e.defaultStringFilter || (e.defaultStringFilter = c.colorStringFilter);
var yt = function (t, e, i, r) {
if (null == t)
return function (t) {
return t
}
;
var n, s = e ? (t.match(It) || [""])[0] : "",
o = t.split(s).join("").match(_) || [], a = t.substr(0, t.indexOf(o[0])),
c = ")" === t.charAt(t.length - 1) ? ")" : "",
d = -1 !== t.indexOf(" ") ? " " : ",", u = o.length,
h = u > 0 ? o[0].replace(S, "") : "";
return u ? n = e ? function (t) {
var e, p, l, f;
if ("number" == typeof t)
t += h;
else if (r && G.test(t)) {
for (f = t.replace(G, "|").split("|"),
l = 0; l < f.length; l++)
f[l] = n(f[l]);
return f.join(",")
}
if (e = (t.match(It) || [s])[0],
l = (p = t.split(e).join("").match(_) || []).length,
u > l--)
for (; ++l < u;)
p[l] = i ? p[(l - 1) / 2 | 0] : o[l];
return a + p.join(d) + d + e + c + (-1 !== t.indexOf("inset") ? " inset" : "")
}
: function (t) {
var e, s, p;
if ("number" == typeof t)
t += h;
else if (r && G.test(t)) {
for (s = t.replace(G, "|").split("|"),
p = 0; p < s.length; p++)
s[p] = n(s[p]);
return s.join(",")
}
if (p = (e = t.match(_) || []).length,
u > p--)
for (; ++p < u;)
e[p] = i ? e[(p - 1) / 2 | 0] : o[p];
return a + e.join(d) + c
}
: function (t) {
return t
}
}
, gt = function (t) {
return t = t.split(","),
function (e, i, r, n, s, o, a) {
var c, d = (i + "").split(" ");
for (a = {},
c = 0; 4 > c; c++)
a[t[c]] = d[c] = d[c] || d[(c - 1) / 2 >> 0];
return n.parse(e, a, s, o)
}
}
, St = (z._setPluginRatio = function (t) {
this.plugin.setRatio(t);
for (var e, i, r, n, s, o = this.data, a = o.proxy, c = o.firstMPT; c;)
e = a[c.v],
c.r ? e = Math.round(e) : 1e-6 > e && e > -1e-6 && (e = 0),
c.t[c.p] = e,
c = c._next;
if (o.autoRotate && (o.autoRotate.rotation = o.mod ? o.mod(a.rotation, this.t) : a.rotation),
1 === t || 0 === t)
for (c = o.firstMPT,
s = 1 === t ? "e" : "b"; c;) {
if ((i = c.t).type) {
if (1 === i.type) {
for (n = i.xs0 + i.s + i.xs1,
r = 1; r < i.l; r++)
n += i["xn" + r] + i["xs" + (r + 1)];
i[s] = n
}
} else
i[s] = i.s + i.xs0;
c = c._next
}
}
,
function (t, e, i, r, n) {
this.t = t,
this.p = e,
this.v = i,
this.r = n,
r && (r._prev = this,
this._next = r)
}
)
, vt = (z._parseToProxy = function (t, e, i, r, n, s) {
var o, a, c, d, u, h = r, p = {}, l = {}, f = i._transform, m = V;
for (i._transform = null,
V = e,
r = u = i.parse(t, e, r, n),
V = m,
s && (i._transform = f,
h && (h._prev = null,
h._prev && (h._prev._next = null))); r && r !== h;) {
if (r.type <= 1 && (l[a = r.p] = r.s + r.c,
p[a] = r.s,
s || (d = new St(r, "s", a, d, r.r),
r.c = 0),
1 === r.type))
for (o = r.l; --o > 0;)
c = "xn" + o,
l[a = r.p + "_" + c] = r.data[c],
p[a] = r[c],
s || (d = new St(r, c, a, d, r.rxp[c]));
r = r._next
}
return {
proxy: p,
end: l,
firstMPT: d,
pt: u
}
}
,
z.CSSPropTween = function (t, e, r, n, s, o, c, d, u, h, p) {
this.t = t,
this.p = e,
this.s = r,
this.c = n,
this.n = c || e,
t instanceof vt || a.push(this.n),
this.r = d,
this.type = o || 0,
u && (this.pr = u,
i = !0),
this.b = void 0 === h ? r : h,
this.e = void 0 === p ? r + n : p,
s && (this._next = s,
s._prev = this)
}
)
, _t = function (t, e, i, r, n, s) {
var o = new vt(t, e, i, r - i, n, -1, s);
return o.b = i,
o.e = o.xs0 = r,
o
}
, Tt = c.parseComplex = function (t, e, i, r, n, s, o, a, d, u) {
i = i || s || "",
"function" == typeof r && (r = r(g, y)),
o = new vt(t, e, 0, 0, o, u ? 2 : 1, null, !1, a, i, r),
r += "",
n && It.test(r + i) && (c.colorStringFilter(r = [i, r]),
i = r[0],
r = r[1]);
var h, l, f, m, w, I, _, T, R, b, P, x, C,
U = i.split(", ").join(",").split(" "),
k = r.split(", ").join(",").split(" "), L = U.length, N = !1 !== p;
for ((-1 !== r.indexOf(",") || -1 !== i.indexOf(",")) && (-1 !== (r + i).indexOf("rgb") || -1 !== (r + i).indexOf("hsl") ? (U = U.join(" ").replace(G, ", ").split(" "),
k = k.join(" ").replace(G, ", ").split(" ")) : (U = U.join(" ").split(",").join(", ").split(" "),
k = k.join(" ").split(",").join(", ").split(" ")),
L = U.length),
L !== k.length && (L = (U = (s || "").split(" ")).length),
o.plugin = d,
o.setRatio = u,
It.lastIndex = 0,
h = 0; L > h; h++)
if (m = U[h],
w = k[h],
(T = parseFloat(m)) || 0 === T)
o.appendXtra("", T, ut(w, T), w.replace(v, ""), N && -1 !== w.indexOf("px"), !0);
else if (n && It.test(m))
x = ")" + ((x = w.indexOf(")") + 1) ? w.substr(x) : ""),
C = -1 !== w.indexOf("hsl") && Y,
b = w,
m = mt(m, C),
w = mt(w, C),
(R = m.length + w.length > 6) && !Y && 0 === w[3] ? (o["xs" + o.l] += o.l ? " transparent" : "transparent",
o.e = o.e.split(k[h]).join("transparent")) : (Y || (R = !1),
C ? o.appendXtra(b.substr(0, b.indexOf("hsl")) + (R ? "hsla(" : "hsl("), m[0], ut(w[0], m[0]), ",", !1, !0).appendXtra("", m[1], ut(w[1], m[1]), "%,", !1).appendXtra("", m[2], ut(w[2], m[2]), R ? "%," : "%" + x, !1) : o.appendXtra(b.substr(0, b.indexOf("rgb")) + (R ? "rgba(" : "rgb("), m[0], w[0] - m[0], ",", !0, !0).appendXtra("", m[1], w[1] - m[1], ",", !0).appendXtra("", m[2], w[2] - m[2], R ? "," : x, !0),
R && (m = m.length < 4 ? 1 : m[3],
o.appendXtra("", m, (w.length < 4 ? 1 : w[3]) - m, x, !1))),
It.lastIndex = 0;
else if (I = m.match(S)) {
if (!(_ = w.match(v)) || _.length !== I.length)
return o;
for (f = 0,
l = 0; l < I.length; l++)
P = I[l],
b = m.indexOf(P, f),
o.appendXtra(m.substr(f, b - f), Number(P), ut(_[l], P), "", N && "px" === m.substr(b + P.length, 2), 0 === l),
f = b + P.length;
o["xs" + o.l] += m.substr(f)
} else
o["xs" + o.l] += o.l || o["xs" + o.l] ? " " + w : w;
if (-1 !== r.indexOf("=") && o.data) {
for (x = o.xs0 + o.data.s,
h = 1; h < o.l; h++)
x += o["xs" + h] + o.data["xn" + h];
o.e = x + o["xs" + h]
}
return o.l || (o.type = -1,
o.xs0 = o.e),
o.xfirst || o
}
, Rt = 9;
for ((h = vt.prototype).l = h.pr = 0; --Rt > 0;)
h["xn" + Rt] = 0,
h["xs" + Rt] = "";
h.xs0 = "",
h._next = h._prev = h.xfirst = h.data = h.plugin = h.setRatio = h.rxp = null,
h.appendXtra = function (t, e, i, r, n, s) {
var o = this
, a = o.l;
return o["xs" + a] += s && (a || o["xs" + a]) ? " " + t : t || "",
i || 0 === a || o.plugin ? (o.l++,
o.type = o.setRatio ? 2 : 1,
o["xs" + o.l] = r || "",
a > 0 ? (o.data["xn" + a] = e + i,
o.rxp["xn" + a] = n,
o["xn" + a] = e,
o.plugin || (o.xfirst = new vt(o, "xn" + a, e, i, o.xfirst || o, 0, o.n, n, o.pr),
o.xfirst.xs0 = 0),
o) : (o.data = {
s: e + i
},
o.rxp = {},
o.s = e,
o.c = i,
o.r = n,
o)) : (o["xs" + a] += e + (r || ""),
o)
}
;
var bt = function (t, e) {
e = e || {},
this.p = e.prefix && Z(t) || t,
u[t] = u[this.p] = this,
this.format = e.formatter || yt(e.defaultValue, e.color, e.collapsible, e.multi),
e.parser && (this.parse = e.parser),
this.clrs = e.color,
this.multi = e.multi,
this.keyword = e.keyword,
this.dflt = e.defaultValue,
this.pr = e.priority || 0
}
, Pt = z._registerComplexSpecialProp = function (t, e, i) {
"object" != n(e) && (e = {
parser: i
});
var r, s = t.split(","), o = e.defaultValue;
for (i = i || [o],
r = 0; r < s.length; r++)
e.prefix = 0 === r && e.prefix,
e.defaultValue = i[r] || o,
new bt(s[r], e)
}
, xt = z._registerPluginProp = function (t) {
if (!u[t]) {
var e = t.charAt(0).toUpperCase() + t.substr(1) + "Plugin";
Pt(t, {
parser: function (t, i, r, n, s, o, a) {
var c = d.com.greensock.plugins[e];
return c ? (c._cssRegister(),
u[r].parse(t, i, r, n, s, o, a)) : (K("Error: " + e + " js file not loaded."),
s)
}
})
}
}
;
(h = bt.prototype).parseComplex = function (t, e, i, r, n, s) {
var o, a, c, d, u, h, p = this.keyword;
if (this.multi && (G.test(i) || G.test(e) ? (a = e.replace(G, "|").split("|"),
c = i.replace(G, "|").split("|")) : p && (a = [e],
c = [i])),
c) {
for (d = c.length > a.length ? c.length : a.length,
o = 0; d > o; o++)
e = a[o] = a[o] || this.dflt,
i = c[o] = c[o] || this.dflt,
p && ((u = e.indexOf(p)) !== (h = i.indexOf(p)) && (-1 === h ? a[o] = a[o].split(p).join("") : -1 === u && (a[o] += " " + p)));
e = a.join(", "),
i = c.join(", ")
}
return Tt(t, this.p, e, i, this.clrs, this.dflt, r, this.pr, n, s)
}
,
h.parse = function (t, e, i, r, n, s, a) {
return this.parseComplex(t.style, this.format(et(t, this.p, o, !1, this.dflt)), this.format(e), n, s)
}
,
c.registerSpecialProp = function (t, e, i) {
Pt(t, {
parser: function (t, r, n, s, o, a, c) {
var d = new vt(t, n, 0, 0, o, 2, n, !1, i);
return d.plugin = a,
d.setRatio = e(t, r, s._tween, n),
d
},
priority: i
})
}
,
c.useSVGTransformAttr = !0;
var Ct,
Ut = "scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),
kt = Z("transform"), Lt = X + "transform", Nt = Z("transformOrigin"),
Et = null !== Z("perspective"), Mt = z.Transform = function () {
this.perspective = parseFloat(c.defaultTransformPerspective) || 0,
this.force3D = !(!1 === c.defaultForce3D || !Et) && (c.defaultForce3D || "auto")
}
, At = s.SVGElement, Gt = function (t, e, i) {
var r, n = q.createElementNS("http://www.w3.org/2000/svg", t),
s = /([a-z])([A-Z])/g;
for (r in i)
n.setAttributeNS(null, r.replace(s, "$1-$2").toLowerCase(), i[r]);
return e.appendChild(n),
n
}, Bt = q.documentElement || {}, Ft = function () {
var t, e, i, r = I || /Android/i.test(j) && !s.chrome;
return q.createElementNS && !r && (t = Gt("svg", Bt),
i = (e = Gt("rect", t, {
width: 100,
height: 50,
x: 100
})).getBoundingClientRect().width,
e.style[Nt] = "50% 50%",
e.style[kt] = "scaleX(0.5)",
r = i === e.getBoundingClientRect().width && !(m && Et),
Bt.removeChild(t)),
r
}(), Dt = function (t, e, i, r, n, s) {
var o, a, d, u, h, p, l, f, m, w, I, y, g, S, v = t._gsTransform, _ = Wt(t, !0);
v && (g = v.xOrigin,
S = v.yOrigin),
(!r || (o = r.split(" ")).length < 2) && (0 === (l = t.getBBox()).x && 0 === l.y && l.width + l.height === 0 && (l = {
x: parseFloat(t.hasAttribute("x") ? t.getAttribute("x") : t.hasAttribute("cx") ? t.getAttribute("cx") : 0) || 0,
y: parseFloat(t.hasAttribute("y") ? t.getAttribute("y") : t.hasAttribute("cy") ? t.getAttribute("cy") : 0) || 0,
width: 0,
height: 0
}),
o = [(-1 !== (e = dt(e).split(" "))[0].indexOf("%") ? parseFloat(e[0]) / 100 * l.width : parseFloat(e[0])) + l.x, (-1 !== e[1].indexOf("%") ? parseFloat(e[1]) / 100 * l.height : parseFloat(e[1])) + l.y]),
i.xOrigin = u = parseFloat(o[0]),
i.yOrigin = h = parseFloat(o[1]),
r && _ !== Ht && (p = _[0],
l = _[1],
f = _[2],
m = _[3],
w = _[4],
I = _[5],
(y = p * m - l * f) && (a = u * (m / y) + h * (-f / y) + (f * I - m * w) / y,
d = u * (-l / y) + h * (p / y) - (p * I - l * w) / y,
u = i.xOrigin = o[0] = a,
h = i.yOrigin = o[1] = d)),
v && (s && (i.xOffset = v.xOffset,
i.yOffset = v.yOffset,
v = i),
n || !1 !== n && !1 !== c.defaultSmoothOrigin ? (a = u - g,
d = h - S,
v.xOffset += a * _[0] + d * _[2] - a,
v.yOffset += a * _[1] + d * _[3] - d) : v.xOffset = v.yOffset = 0),
s || t.setAttribute("data-svg-origin", o.join(" "))
}, Vt = function t(e) {
var i,
r = H("svg", this.ownerSVGElement && this.ownerSVGElement.getAttribute("xmlns") || "http://www.w3.org/2000/svg"),
n = this.parentNode, s = this.nextSibling, o = this.style.cssText;
if (Bt.appendChild(r),
r.appendChild(this),
this.style.display = "block",
e)
try {
i = this.getBBox(),
this._originalGetBBox = this.getBBox,
this.getBBox = t
} catch (t) {
}
else
this._originalGetBBox && (i = this._originalGetBBox());
return s ? n.insertBefore(this, s) : n.appendChild(this),
Bt.removeChild(r),
this.style.cssText = o,
i
}, Ot = function (t) {
try {
return t.getBBox()
} catch (e) {
return Vt.call(t, !0)
}
}, qt = function (t) {
return !(!At || !t.getCTM || t.parentNode && !t.ownerSVGElement || !Ot(t))
}, Ht = [1, 0, 0, 1, 0, 0], Wt = function (t, e) {
var i, r, n, s, o, a, c = t._gsTransform || new Mt, d = t.style;
if (kt ? r = et(t, Lt, null, !0) : t.currentStyle && (r = (r = t.currentStyle.filter.match(M)) && 4 === r.length ? [r[0].substr(4), Number(r[2].substr(4)), Number(r[1].substr(4)), r[3].substr(4), c.x || 0, c.y || 0].join(",") : ""),
i = !r || "none" === r || "matrix(1, 0, 0, 1, 0, 0)" === r,
!kt || !(a = !tt(t) || "none" === tt(t).display) && t.parentNode || (a && (s = d.display,
d.display = "block"),
t.parentNode || (o = 1,
Bt.appendChild(t)),
i = !(r = et(t, Lt, null, !0)) || "none" === r || "matrix(1, 0, 0, 1, 0, 0)" === r,
s ? d.display = s : a && Jt(d, "display"),
o && Bt.removeChild(t)),
(c.svg || t.getCTM && qt(t)) && (i && -1 !== (d[kt] + "").indexOf("matrix") && (r = d[kt],
i = 0),
n = t.getAttribute("transform"),
i && n && (r = "matrix(" + (n = t.transform.baseVal.consolidate().matrix).a + "," + n.b + "," + n.c + "," + n.d + "," + n.e + "," + n.f + ")",
i = 0)),
i)
return Ht;
for (n = (r || "").match(S) || [],
Rt = n.length; --Rt > -1;)
s = Number(n[Rt]),
n[Rt] = (o = s - (s |= 0)) ? (1e5 * o + (0 > o ? -.5 : .5) | 0) / 1e5 + s : s;
return e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n
}, $t = z.getTransform = function (t, i, r, n) {
if (t._gsTransform && r && !n)
return t._gsTransform;
var s, o, a, d, u, h, p = r && t._gsTransform || new Mt, l = p.scaleX < 0,
f = 2e-5, m = 1e5,
w = Et && (parseFloat(et(t, Nt, i, !1, "0 0 0").split(" ")[2]) || p.zOrigin) || 0,
I = parseFloat(c.defaultTransformPerspective) || 0;
if (p.svg = !(!t.getCTM || !qt(t)),
p.svg && (Dt(t, et(t, Nt, i, !1, "50% 50%") + "", p, t.getAttribute("data-svg-origin")),
Ct = c.useSVGTransformAttr || Ft),
(s = Wt(t)) !== Ht) {
if (16 === s.length) {
var y, g, S, v, _, T = s[0], R = s[1], b = s[2], P = s[3], x = s[4],
C = s[5], U = s[6], k = s[7], L = s[8], N = s[9], E = s[10],
M = s[12], A = s[13], G = s[14], B = s[11], F = Math.atan2(U, E);
p.zOrigin && (M = L * (G = -p.zOrigin) - s[12],
A = N * G - s[13],
G = E * G + p.zOrigin - s[14]),
p.rotationX = F * D,
F && (y = x * (v = Math.cos(-F)) + L * (_ = Math.sin(-F)),
g = C * v + N * _,
S = U * v + E * _,
L = x * -_ + L * v,
N = C * -_ + N * v,
E = U * -_ + E * v,
B = k * -_ + B * v,
x = y,
C = g,
U = S),
F = Math.atan2(-b, E),
p.rotationY = F * D,
F && (g = R * (v = Math.cos(-F)) - N * (_ = Math.sin(-F)),
S = b * v - E * _,
N = R * _ + N * v,
E = b * _ + E * v,
B = P * _ + B * v,
T = y = T * v - L * _,
R = g,
b = S),
F = Math.atan2(R, T),
p.rotation = F * D,
F && (y = T * (v = Math.cos(F)) + R * (_ = Math.sin(F)),
g = x * v + C * _,
S = L * v + N * _,
R = R * v - T * _,
C = C * v - x * _,
N = N * v - L * _,
T = y,
x = g,
L = S),
p.rotationX && Math.abs(p.rotationX) + Math.abs(p.rotation) > 359.9 && (p.rotationX = p.rotation = 0,
p.rotationY = 180 - p.rotationY),
F = Math.atan2(x, C),
p.scaleX = (Math.sqrt(T * T + R * R + b * b) * m + .5 | 0) / m,
p.scaleY = (Math.sqrt(C * C + U * U) * m + .5 | 0) / m,
p.scaleZ = (Math.sqrt(L * L + N * N + E * E) * m + .5 | 0) / m,
T /= p.scaleX,
x /= p.scaleY,
R /= p.scaleX,
C /= p.scaleY,
Math.abs(F) > f ? (p.skewX = F * D,
x = 0,
"simple" !== p.skewType && (p.scaleY *= 1 / Math.cos(F))) : p.skewX = 0,
p.perspective = B ? 1 / (0 > B ? -B : B) : 0,
p.x = M,
p.y = A,
p.z = G,
p.svg && (p.x -= p.xOrigin - (p.xOrigin * T - p.yOrigin * x),
p.y -= p.yOrigin - (p.yOrigin * R - p.xOrigin * C))
} else if (!Et || n || !s.length || p.x !== s[4] || p.y !== s[5] || !p.rotationX && !p.rotationY) {
var V = s.length >= 6
, O = V ? s[0] : 1
, q = s[1] || 0
, H = s[2] || 0
, W = V ? s[3] : 1;
p.x = s[4] || 0,
p.y = s[5] || 0,
a = Math.sqrt(O * O + q * q),
d = Math.sqrt(W * W + H * H),
u = O || q ? Math.atan2(q, O) * D : p.rotation || 0,
h = H || W ? Math.atan2(H, W) * D + u : p.skewX || 0,
p.scaleX = a,
p.scaleY = d,
p.rotation = u,
p.skewX = h,
Et && (p.rotationX = p.rotationY = p.z = 0,
p.perspective = I,
p.scaleZ = 1),
p.svg && (p.x -= p.xOrigin - (p.xOrigin * O + p.yOrigin * H),
p.y -= p.yOrigin - (p.xOrigin * q + p.yOrigin * W))
}
for (o in Math.abs(p.skewX) > 90 && Math.abs(p.skewX) < 270 && (l ? (p.scaleX *= -1,
p.skewX += p.rotation <= 0 ? 180 : -180,
p.rotation += p.rotation <= 0 ? 180 : -180) : (p.scaleY *= -1,
p.skewX += p.skewX <= 0 ? 180 : -180)),
p.zOrigin = w,
p)
p[o] < f && p[o] > -f && (p[o] = 0)
}
return r && (t._gsTransform = p,
p.svg && (Ct && t.style[kt] ? e.delayedCall(.001, (function () {
Jt(t.style, kt)
}
)) : !Ct && t.getAttribute("transform") && e.delayedCall(.001, (function () {
t.removeAttribute("transform")
}
)))),
p
}
, zt = function (t) {
var e, i, r = this.data, n = -r.rotation * F, s = n + r.skewX * F, o = 1e5,
a = (Math.cos(n) * r.scaleX * o | 0) / o,
c = (Math.sin(n) * r.scaleX * o | 0) / o,
d = (Math.sin(s) * -r.scaleY * o | 0) / o,
u = (Math.cos(s) * r.scaleY * o | 0) / o, h = this.t.style,
p = this.t.currentStyle;
if (p) {
i = c,
c = -d,
d = -i,
e = p.filter,
h.filter = "";
var l, f, m = this.t.offsetWidth, w = this.t.offsetHeight,
y = "absolute" !== p.position,
g = "progid:DXImageTransform.Microsoft.Matrix(M11=" + a + ", M12=" + c + ", M21=" + d + ", M22=" + u,
S = r.x + m * r.xPercent / 100, v = r.y + w * r.yPercent / 100;
if (null != r.ox && (S += (l = (r.oxp ? m * r.ox * .01 : r.ox) - m / 2) - (l * a + (f = (r.oyp ? w * r.oy * .01 : r.oy) - w / 2) * c),
v += f - (l * d + f * u)),
y ? g += ", Dx=" + ((l = m / 2) - (l * a + (f = w / 2) * c) + S) + ", Dy=" + (f - (l * d + f * u) + v) + ")" : g += ", sizingMethod='auto expand')",
-1 !== e.indexOf("DXImageTransform.Microsoft.Matrix(") ? h.filter = e.replace(A, g) : h.filter = g + " " + e,
(0 === t || 1 === t) && 1 === a && 0 === c && 0 === d && 1 === u && (y && -1 === g.indexOf("Dx=0, Dy=0") || b.test(e) && 100 !== parseFloat(RegExp.$1) || -1 === e.indexOf(e.indexOf("Alpha")) && h.removeAttribute("filter")),
!y) {
var _, T, P, x = 8 > I ? 1 : -1;
for (l = r.ieOffsetX || 0,
f = r.ieOffsetY || 0,
r.ieOffsetX = Math.round((m - ((0 > a ? -a : a) * m + (0 > c ? -c : c) * w)) / 2 + S),
r.ieOffsetY = Math.round((w - ((0 > u ? -u : u) * w + (0 > d ? -d : d) * m)) / 2 + v),
Rt = 0; 4 > Rt; Rt++)
P = (i = -1 !== (_ = p[T = at[Rt]]).indexOf("px") ? parseFloat(_) : it(this.t, T, parseFloat(_), _.replace(R, "")) || 0) !== r[T] ? 2 > Rt ? -r.ieOffsetX : -r.ieOffsetY : 2 > Rt ? l - r.ieOffsetX : f - r.ieOffsetY,
h[T] = (r[T] = Math.round(i - P * (0 === Rt || 2 === Rt ? 1 : x))) + "px"
}
}
}, jt = z.set3DTransformRatio = z.setTransformRatio = function (t) {
var e, i, r, n, s, o, a, c, d, u, h, p, l, f, w, I, y, g, S, v, _, T, R,
b = this.data, P = this.t.style, x = b.rotation, C = b.rotationX,
U = b.rotationY, k = b.scaleX, L = b.scaleY, N = b.scaleZ, E = b.x, M = b.y,
A = b.z, G = b.svg, B = b.perspective, D = b.force3D, V = b.skewY,
O = b.skewX;
if (V && (O += V,
x += V),
!((1 !== t && 0 !== t || "auto" !== D || this.tween._totalTime !== this.tween._totalDuration && this.tween._totalTime) && D || A || B || U || C || 1 !== N) || Ct && G || !Et)
x || O || G ? (x *= F,
T = O * F,
R = 1e5,
i = Math.cos(x) * k,
s = Math.sin(x) * k,
r = Math.sin(x - T) * -L,
o = Math.cos(x - T) * L,
T && "simple" === b.skewType && (e = Math.tan(T - V * F),
r *= e = Math.sqrt(1 + e * e),
o *= e,
V && (e = Math.tan(V * F),
i *= e = Math.sqrt(1 + e * e),
s *= e)),
G && (E += b.xOrigin - (b.xOrigin * i + b.yOrigin * r) + b.xOffset,
M += b.yOrigin - (b.xOrigin * s + b.yOrigin * o) + b.yOffset,
Ct && (b.xPercent || b.yPercent) && (w = this.t.getBBox(),
E += .01 * b.xPercent * w.width,
M += .01 * b.yPercent * w.height),
(w = 1e-6) > E && E > -w && (E = 0),
w > M && M > -w && (M = 0)),
S = (i * R | 0) / R + "," + (s * R | 0) / R + "," + (r * R | 0) / R + "," + (o * R | 0) / R + "," + E + "," + M + ")",
G && Ct ? this.t.setAttribute("transform", "matrix(" + S) : P[kt] = (b.xPercent || b.yPercent ? "translate(" + b.xPercent + "%," + b.yPercent + "%) matrix(" : "matrix(") + S) : P[kt] = (b.xPercent || b.yPercent ? "translate(" + b.xPercent + "%," + b.yPercent + "%) matrix(" : "matrix(") + k + ",0,0," + L + "," + E + "," + M + ")";
else {
if (m && ((w = 1e-4) > k && k > -w && (k = N = 2e-5),
w > L && L > -w && (L = N = 2e-5),
!B || b.z || b.rotationX || b.rotationY || (B = 0)),
x || O)
x *= F,
I = i = Math.cos(x),
y = s = Math.sin(x),
O && (x -= O * F,
I = Math.cos(x),
y = Math.sin(x),
"simple" === b.skewType && (e = Math.tan((O - V) * F),
I *= e = Math.sqrt(1 + e * e),
y *= e,
b.skewY && (e = Math.tan(V * F),
i *= e = Math.sqrt(1 + e * e),
s *= e))),
r = -y,
o = I;
else {
if (!(U || C || 1 !== N || B || G))
return void (P[kt] = (b.xPercent || b.yPercent ? "translate(" + b.xPercent + "%," + b.yPercent + "%) translate3d(" : "translate3d(") + E + "px," + M + "px," + A + "px)" + (1 !== k || 1 !== L ? " scale(" + k + "," + L + ")" : ""));
i = o = 1,
r = s = 0
}
u = 1,
n = a = c = d = h = p = 0,
l = B ? -1 / B : 0,
f = b.zOrigin,
w = 1e-6,
v = ",",
_ = "0",
(x = U * F) && (I = Math.cos(x),
c = -(y = Math.sin(x)),
h = l * -y,
n = i * y,
a = s * y,
u = I,
l *= I,
i *= I,
s *= I),
(x = C * F) && (e = r * (I = Math.cos(x)) + n * (y = Math.sin(x)),
g = o * I + a * y,
d = u * y,
p = l * y,
n = r * -y + n * I,
a = o * -y + a * I,
u *= I,
l *= I,
r = e,
o = g),
1 !== N && (n *= N,
a *= N,
u *= N,
l *= N),
1 !== L && (r *= L,
o *= L,
d *= L,
p *= L),
1 !== k && (i *= k,
s *= k,
c *= k,
h *= k),
(f || G) && (f && (E += n * -f,
M += a * -f,
A += u * -f + f),
G && (E += b.xOrigin - (b.xOrigin * i + b.yOrigin * r) + b.xOffset,
M += b.yOrigin - (b.xOrigin * s + b.yOrigin * o) + b.yOffset),
w > E && E > -w && (E = _),
w > M && M > -w && (M = _),
w > A && A > -w && (A = 0)),
S = b.xPercent || b.yPercent ? "translate(" + b.xPercent + "%," + b.yPercent + "%) matrix3d(" : "matrix3d(",
S += (w > i && i > -w ? _ : i) + v + (w > s && s > -w ? _ : s) + v + (w > c && c > -w ? _ : c),
S += v + (w > h && h > -w ? _ : h) + v + (w > r && r > -w ? _ : r) + v + (w > o && o > -w ? _ : o),
C || U || 1 !== N ? (S += v + (w > d && d > -w ? _ : d) + v + (w > p && p > -w ? _ : p) + v + (w > n && n > -w ? _ : n),
S += v + (w > a && a > -w ? _ : a) + v + (w > u && u > -w ? _ : u) + v + (w > l && l > -w ? _ : l) + v) : S += ",0,0,0,0,1,0,",
S += E + v + M + v + A + v + (B ? 1 + -A / B : 1) + ")",
P[kt] = S
}
}
;
(h = Mt.prototype).x = h.y = h.z = h.skewX = h.skewY = h.rotation = h.rotationX = h.rotationY = h.zOrigin = h.xPercent = h.yPercent = h.xOffset = h.yOffset = 0,
h.scaleX = h.scaleY = h.scaleZ = 1,
Pt("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", {
parser: function (t, e, i, r, s, a, d) {
if (r._lastParsedTransform === d)
return s;
r._lastParsedTransform = d;
var u, h = d.scale && "function" == typeof d.scale ? d.scale : 0;
"function" == typeof d[i] && (u = d[i],
d[i] = e),
h && (d.scale = h(g, t));
var p, l, f, m, w, I, S, v, _, T = t._gsTransform, R = t.style,
b = Ut.length, P = d, x = {}, C = "transformOrigin",
U = $t(t, o, !0, P.parseTransform),
k = P.transform && ("function" == typeof P.transform ? P.transform(g, y) : P.transform);
if (U.skewType = P.skewType || U.skewType || c.defaultSkewType,
r._transform = U,
k && "string" == typeof k && kt)
(l = W.style)[kt] = k,
l.display = "block",
l.position = "absolute",
q.body.appendChild(W),
p = $t(W, null, !1),
"simple" === U.skewType && (p.scaleY *= Math.cos(p.skewX * F)),
U.svg && (I = U.xOrigin,
S = U.yOrigin,
p.x -= U.xOffset,
p.y -= U.yOffset,
(P.transformOrigin || P.svgOrigin) && (k = {},
Dt(t, dt(P.transformOrigin), k, P.svgOrigin, P.smoothOrigin, !0),
I = k.xOrigin,
S = k.yOrigin,
p.x -= k.xOffset - U.xOffset,
p.y -= k.yOffset - U.yOffset),
(I || S) && (v = Wt(W, !0),
p.x -= I - (I * v[0] + S * v[2]),
p.y -= S - (I * v[1] + S * v[3]))),
q.body.removeChild(W),
p.perspective || (p.perspective = U.perspective),
null != P.xPercent && (p.xPercent = ht(P.xPercent, U.xPercent)),
null != P.yPercent && (p.yPercent = ht(P.yPercent, U.yPercent));
else if ("object" == n(P)) {
if (p = {
scaleX: ht(null != P.scaleX ? P.scaleX : P.scale, U.scaleX),
scaleY: ht(null != P.scaleY ? P.scaleY : P.scale, U.scaleY),
scaleZ: ht(P.scaleZ, U.scaleZ),
x: ht(P.x, U.x),
y: ht(P.y, U.y),
z: ht(P.z, U.z),
xPercent: ht(P.xPercent, U.xPercent),
yPercent: ht(P.yPercent, U.yPercent),
perspective: ht(P.transformPerspective, U.perspective)
},
null != (w = P.directionalRotation))
if ("object" == n(w))
for (l in w)
P[l] = w[l];
else
P.rotation = w;
"string" == typeof P.x && -1 !== P.x.indexOf("%") && (p.x = 0,
p.xPercent = ht(P.x, U.xPercent)),
"string" == typeof P.y && -1 !== P.y.indexOf("%") && (p.y = 0,
p.yPercent = ht(P.y, U.yPercent)),
p.rotation = pt("rotation" in P ? P.rotation : "shortRotation" in P ? P.shortRotation + "_short" : "rotationZ" in P ? P.rotationZ : U.rotation, U.rotation, "rotation", x),
Et && (p.rotationX = pt("rotationX" in P ? P.rotationX : "shortRotationX" in P ? P.shortRotationX + "_short" : U.rotationX || 0, U.rotationX, "rotationX", x),
p.rotationY = pt("rotationY" in P ? P.rotationY : "shortRotationY" in P ? P.shortRotationY + "_short" : U.rotationY || 0, U.rotationY, "rotationY", x)),
p.skewX = pt(P.skewX, U.skewX),
p.skewY = pt(P.skewY, U.skewY)
}
for (Et && null != P.force3D && (U.force3D = P.force3D,
m = !0),
(f = U.force3D || U.z || U.rotationX || U.rotationY || p.z || p.rotationX || p.rotationY || p.perspective) || null == P.scale || (p.scaleZ = 1); --b > -1;)
((k = p[_ = Ut[b]] - U[_]) > 1e-6 || -1e-6 > k || null != P[_] || null != V[_]) && (m = !0,
s = new vt(U, _, U[_], k, s),
_ in x && (s.e = x[_]),
s.xs0 = 0,
s.plugin = a,
r._overwriteProps.push(s.n));
return k = P.transformOrigin,
U.svg && (k || P.svgOrigin) && (I = U.xOffset,
S = U.yOffset,
Dt(t, dt(k), p, P.svgOrigin, P.smoothOrigin),
s = _t(U, "xOrigin", (T ? U : p).xOrigin, p.xOrigin, s, C),
s = _t(U, "yOrigin", (T ? U : p).yOrigin, p.yOrigin, s, C),
(I !== U.xOffset || S !== U.yOffset) && (s = _t(U, "xOffset", T ? I : U.xOffset, U.xOffset, s, C),
s = _t(U, "yOffset", T ? S : U.yOffset, U.yOffset, s, C)),
k = "0px 0px"),
(k || Et && f && U.zOrigin) && (kt ? (m = !0,
_ = Nt,
k = (k || et(t, _, o, !1, "50% 50%")) + "",
(s = new vt(R, _, 0, 0, s, -1, C)).b = R[_],
s.plugin = a,
Et ? (l = U.zOrigin,
k = k.split(" "),
U.zOrigin = (k.length > 2 && (0 === l || "0px" !== k[2]) ? parseFloat(k[2]) : l) || 0,
s.xs0 = s.e = k[0] + " " + (k[1] || "50%") + " 0px",
(s = new vt(U, "zOrigin", 0, 0, s, -1, s.n)).b = l,
s.xs0 = s.e = U.zOrigin) : s.xs0 = s.e = k) : dt(k + "", U)),
m && (r._transformType = U.svg && Ct || !f && 3 !== this._transformType ? 2 : 3),
u && (d[i] = u),
h && (d.scale = h),
s
},
prefix: !0
}),
Pt("boxShadow", {
defaultValue: "0px 0px 0px 0px #999",
prefix: !0,
color: !0,
multi: !0,
keyword: "inset"
}),
Pt("borderRadius", {
defaultValue: "0px",
parser: function (t, e, i, n, s, a) {
e = this.format(e);
var c, d, u, h, p, l, f, m, w, I, y, g, S, v, _, T,
R = ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius"],
b = t.style;
for (w = parseFloat(t.offsetWidth),
I = parseFloat(t.offsetHeight),
c = e.split(" "),
d = 0; d < R.length; d++)
this.p.indexOf("border") && (R[d] = Z(R[d])),
-1 !== (p = h = et(t, R[d], o, !1, "0px")).indexOf(" ") && (h = p.split(" "),
p = h[0],
h = h[1]),
l = u = c[d],
f = parseFloat(p),
g = p.substr((f + "").length),
(S = "=" === l.charAt(1)) ? (m = parseInt(l.charAt(0) + "1", 10),
l = l.substr(2),
m *= parseFloat(l),
y = l.substr((m + "").length - (0 > m ? 1 : 0)) || "") : (m = parseFloat(l),
y = l.substr((m + "").length)),
"" === y && (y = r[i] || g),
y !== g && (v = it(t, "borderLeft", f, g),
_ = it(t, "borderTop", f, g),
"%" === y ? (p = v / w * 100 + "%",
h = _ / I * 100 + "%") : "em" === y ? (p = v / (T = it(t, "borderLeft", 1, "em")) + "em",
h = _ / T + "em") : (p = v + "px",
h = _ + "px"),
S && (l = parseFloat(p) + m + y,
u = parseFloat(h) + m + y)),
s = Tt(b, R[d], p + " " + h, l + " " + u, !1, "0px", s);
return s
},
prefix: !0,
formatter: yt("0px 0px 0px 0px", !1, !0)
}),
Pt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius", {
defaultValue: "0px",
parser: function (t, e, i, r, n, s) {
return Tt(t.style, i, this.format(et(t, i, o, !1, "0px 0px")), this.format(e), !1, "0px", n)
},
prefix: !0,
formatter: yt("0px 0px", !1, !0)
}),
Pt("backgroundPosition", {
defaultValue: "0 0",
parser: function (t, e, i, r, n, s) {
var a, c, d, u, h, p, l = "background-position", f = o || tt(t, null),
m = this.format((f ? I ? f.getPropertyValue(l + "-x") + " " + f.getPropertyValue(l + "-y") : f.getPropertyValue(l) : t.currentStyle.backgroundPositionX + " " + t.currentStyle.backgroundPositionY) || "0 0"),
w = this.format(e);
if (-1 !== m.indexOf("%") != (-1 !== w.indexOf("%")) && w.split(",").length < 2 && ((p = et(t, "backgroundImage").replace(L, "")) && "none" !== p)) {
for (a = m.split(" "),
c = w.split(" "),
$.setAttribute("src", p),
d = 2; --d > -1;)
(u = -1 !== (m = a[d]).indexOf("%")) !== (-1 !== c[d].indexOf("%")) && (h = 0 === d ? t.offsetWidth - $.width : t.offsetHeight - $.height,
a[d] = u ? parseFloat(m) / 100 * h + "px" : parseFloat(m) / h * 100 + "%");
m = a.join(" ")
}
return this.parseComplex(t.style, m, w, n, s)
},
formatter: dt
}),
Pt("backgroundSize", {
defaultValue: "0 0",
formatter: function (t) {
return dt(-1 === (t += "").indexOf(" ") ? t + " " + t : t)
}
}),
Pt("perspective", {
defaultValue: "0px",
prefix: !0
}),
Pt("perspectiveOrigin", {
defaultValue: "50% 50%",
prefix: !0
}),
Pt("transformStyle", {
prefix: !0
}),
Pt("backfaceVisibility", {
prefix: !0
}),
Pt("userSelect", {
prefix: !0
}),
Pt("margin", {
parser: gt("marginTop,marginRight,marginBottom,marginLeft")
}),
Pt("padding", {
parser: gt("paddingTop,paddingRight,paddingBottom,paddingLeft")
}),
Pt("clip", {
defaultValue: "rect(0px,0px,0px,0px)",
parser: function (t, e, i, r, n, s) {
var a, c, d;
return 9 > I ? (c = t.currentStyle,
d = 8 > I ? " " : ",",
a = "rect(" + c.clipTop + d + c.clipRight + d + c.clipBottom + d + c.clipLeft + ")",
e = this.format(e).split(",").join(d)) : (a = this.format(et(t, this.p, o, !1, this.dflt)),
e = this.format(e)),
this.parseComplex(t.style, a, e, n, s)
}
}),
Pt("textShadow", {
defaultValue: "0px 0px 0px #999",
color: !0,
multi: !0
}),
Pt("autoRound,strictUnits", {
parser: function (t, e, i, r, n) {
return n
}
}),
Pt("border", {
defaultValue: "0px solid #000",
parser: function (t, e, i, r, n, s) {
var a = et(t, "borderTopWidth", o, !1, "0px")
, c = this.format(e).split(" ")
, d = c[0].replace(R, "");
return "px" !== d && (a = parseFloat(a) / it(t, "borderTopWidth", 1, d) + d),
this.parseComplex(t.style, this.format(a + " " + et(t, "borderTopStyle", o, !1, "solid") + " " + et(t, "borderTopColor", o, !1, "#000")), c.join(" "), n, s)
},
color: !0,
formatter: function (t) {
var e = t.split(" ");
return e[0] + " " + (e[1] || "solid") + " " + (t.match(It) || ["#000"])[0]
}
}),
Pt("borderWidth", {
parser: gt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")
}),
Pt("float,cssFloat,styleFloat", {
parser: function (t, e, i, r, n, s) {
var o = t.style
, a = "cssFloat" in o ? "cssFloat" : "styleFloat";
return new vt(o, a, 0, 0, n, -1, i, !1, 0, o[a], e)
}
});
var Yt = function (t) {
var e, i = this.t, r = i.filter || et(this.data, "filter") || "",
n = this.s + this.c * t | 0;
100 === n && (-1 === r.indexOf("atrix(") && -1 === r.indexOf("radient(") && -1 === r.indexOf("oader(") ? (i.removeAttribute("filter"),
e = !et(this.data, "filter")) : (i.filter = r.replace(x, ""),
e = !0)),
e || (this.xn1 && (i.filter = r = r || "alpha(opacity=" + n + ")"),
-1 === r.indexOf("pacity") ? 0 === n && this.xn1 || (i.filter = r + " alpha(opacity=" + n + ")") : i.filter = r.replace(b, "opacity=" + n))
};
Pt("opacity,alpha,autoAlpha", {
defaultValue: "1",
parser: function (t, e, i, r, n, s) {
var a = parseFloat(et(t, "opacity", o, !1, "1"))
, c = t.style
, d = "autoAlpha" === i;
return "string" == typeof e && "=" === e.charAt(1) && (e = ("-" === e.charAt(0) ? -1 : 1) * parseFloat(e.substr(2)) + a),
d && 1 === a && "hidden" === et(t, "visibility", o) && 0 !== e && (a = 0),
Y ? n = new vt(c, "opacity", a, e - a, n) : ((n = new vt(c, "opacity", 100 * a, 100 * (e - a), n)).xn1 = d ? 1 : 0,
c.zoom = 1,
n.type = 2,
n.b = "alpha(opacity=" + n.s + ")",
n.e = "alpha(opacity=" + (n.s + n.c) + ")",
n.data = t,
n.plugin = s,
n.setRatio = Yt),
d && ((n = new vt(c, "visibility", 0, 0, n, -1, null, !1, 0, 0 !== a ? "inherit" : "hidden", 0 === e ? "hidden" : "inherit")).xs0 = "inherit",
r._overwriteProps.push(n.n),
r._overwriteProps.push(i)),
n
}
});
var Jt = function (t, e) {
e && (t.removeProperty ? (("ms" === e.substr(0, 2) || "webkit" === e.substr(0, 6)) && (e = "-" + e),
t.removeProperty(e.replace(U, "-$1").toLowerCase())) : t.removeAttribute(e))
}
, Kt = function (t) {
if (this.t._gsClassPT = this,
1 === t || 0 === t) {
this.t.setAttribute("class", 0 === t ? this.b : this.e);
for (var e = this.data, i = this.t.style; e;)
e.v ? i[e.p] = e.v : Jt(i, e.p),
e = e._next;
1 === t && this.t._gsClassPT === this && (this.t._gsClassPT = null)
} else
this.t.getAttribute("class") !== this.e && this.t.setAttribute("class", this.e)
};
Pt("className", {
parser: function (t, e, r, n, s, a, c) {
var d, u, h, p, l, f = t.getAttribute("class") || "", m = t.style.cssText;
if ((s = n._classNamePT = new vt(t, r, 0, 0, s, 2)).setRatio = Kt,
s.pr = -11,
i = !0,
s.b = f,
u = nt(t, o),
h = t._gsClassPT) {
for (p = {},
l = h.data; l;)
p[l.p] = 1,
l = l._next;
h.setRatio(1)
}
return t._gsClassPT = s,
s.e = "=" !== e.charAt(1) ? e : f.replace(new RegExp("(?:\\s|^)" + e.substr(2) + "(?![\\w-])"), "") + ("+" === e.charAt(0) ? " " + e.substr(2) : ""),
t.setAttribute("class", s.e),
d = st(t, u, nt(t), c, p),
t.setAttribute("class", f),
s.data = d.firstMPT,
t.style.cssText = m,
s.xfirst = n.parse(t, d.difs, s, a)
}
});
var Xt = function (t) {
if ((1 === t || 0 === t) && this.data._totalTime === this.data._totalDuration && "isFromStart" !== this.data.data) {
var e, i, r, n, s, o = this.t.style, a = u.transform.parse;
if ("all" === this.e)
o.cssText = "",
n = !0;
else
for (r = (e = this.e.split(" ").join("").split(",")).length; --r > -1;)
i = e[r],
u[i] && (u[i].parse === a ? n = !0 : i = "transformOrigin" === i ? Nt : u[i].p),
Jt(o, i);
n && (Jt(o, kt),
(s = this.t._gsTransform) && (s.svg && (this.t.removeAttribute("data-svg-origin"),
this.t.removeAttribute("transform")),
delete this.t._gsTransform))
}
};
for (Pt("clearProps", {
parser: function (t, e, r, n, s) {
return (s = new vt(t, r, 0, 0, s, 2)).setRatio = Xt,
s.e = e,
s.pr = -10,
s.data = n._tween,
i = !0,
s
}
}),
h = "bezier,throwProps,physicsProps,physics2D".split(","),
Rt = h.length; Rt--;)
xt(h[Rt]);
(h = c.prototype)._firstPT = h._lastParsedTransform = h._transform = null,
h._onInitTween = function (t, e, n, s) {
if (!t.nodeType)
return !1;
this._target = y = t,
this._tween = n,
this._vars = e,
g = s,
p = e.autoRound,
i = !1,
r = e.suffixMap || c.suffixMap,
o = tt(t, ""),
a = this._overwriteProps;
var d, h, m, I, S, v, _, T, R, b = t.style;
if (l && "" === b.zIndex && (("auto" === (d = et(t, "zIndex", o)) || "" === d) && this._addLazySet(b, "zIndex", 0)),
"string" == typeof e && (I = b.cssText,
d = nt(t, o),
b.cssText = I + ";" + e,
d = st(t, d, nt(t)).difs,
!Y && P.test(e) && (d.opacity = parseFloat(RegExp.$1)),
e = d,
b.cssText = I),
e.className ? this._firstPT = h = u.className.parse(t, e.className, "className", this, null, null, e) : this._firstPT = h = this.parse(t, e, null),
this._transformType) {
for (R = 3 === this._transformType,
kt ? f && (l = !0,
"" === b.zIndex && (("auto" === (_ = et(t, "zIndex", o)) || "" === _) && this._addLazySet(b, "zIndex", 0)),
w && this._addLazySet(b, "WebkitBackfaceVisibility", this._vars.WebkitBackfaceVisibility || (R ? "visible" : "hidden"))) : b.zoom = 1,
m = h; m && m._next;)
m = m._next;
T = new vt(t, "transform", 0, 0, null, 2),
this._linkCSSP(T, null, m),
T.setRatio = kt ? jt : zt,
T.data = this._transform || $t(t, o, !0),
T.tween = n,
T.pr = -1,
a.pop()
}
if (i) {
for (; h;) {
for (v = h._next,
m = I; m && m.pr > h.pr;)
m = m._next;
(h._prev = m ? m._prev : S) ? h._prev._next = h : I = h,
(h._next = m) ? m._prev = h : S = h,
h = v
}
this._firstPT = I
}
return !0
}
,
h.parse = function (t, e, i, n) {
var s, a, c, d, h, l, f, m, w, I, S = t.style;
for (s in e) {
if ("function" == typeof (l = e[s]) && (l = l(g, y)),
a = u[s])
i = a.parse(t, l, s, this, i, n, e);
else {
if ("--" === s.substr(0, 2)) {
this._tween._propLookup[s] = this._addTween.call(this._tween, t.style, "setProperty", tt(t).getPropertyValue(s) + "", l + "", s, !1, s);
continue
}
h = et(t, s, o) + "",
w = "string" == typeof l,
"color" === s || "fill" === s || "stroke" === s || -1 !== s.indexOf("Color") || w && C.test(l) ? (w || (l = ((l = mt(l)).length > 3 ? "rgba(" : "rgb(") + l.join(",") + ")"),
i = Tt(S, s, h, l, !0, "transparent", i, 0, n)) : w && B.test(l) ? i = Tt(S, s, h, l, !0, null, i, 0, n) : (f = (c = parseFloat(h)) || 0 === c ? h.substr((c + "").length) : "",
("" === h || "auto" === h) && ("width" === s || "height" === s ? (c = ct(t, s, o),
f = "px") : "left" === s || "top" === s ? (c = rt(t, s, o),
f = "px") : (c = "opacity" !== s ? 0 : 1,
f = "")),
(I = w && "=" === l.charAt(1)) ? (d = parseInt(l.charAt(0) + "1", 10),
l = l.substr(2),
d *= parseFloat(l),
m = l.replace(R, "")) : (d = parseFloat(l),
m = w ? l.replace(R, "") : ""),
"" === m && (m = s in r ? r[s] : f),
l = d || 0 === d ? (I ? d + c : d) + m : e[s],
f !== m && ("" !== m || "lineHeight" === s) && (d || 0 === d) && c && (c = it(t, s, c, f),
"%" === m ? (c /= it(t, s, 100, "%") / 100,
!0 !== e.strictUnits && (h = c + "%")) : "em" === m || "rem" === m || "vw" === m || "vh" === m ? c /= it(t, s, 1, m) : "px" !== m && (d = it(t, s, d, m),
m = "px"),
I && (d || 0 === d) && (l = d + c + m)),
I && (d += c),
!c && 0 !== c || !d && 0 !== d ? void 0 !== S[s] && (l || l + "" != "NaN" && null != l) ? (i = new vt(S, s, d || c || 0, 0, i, -1, s, !1, 0, h, l)).xs0 = "none" !== l || "display" !== s && -1 === s.indexOf("Style") ? l : h : K("invalid " + s + " tween value: " + e[s]) : (i = new vt(S, s, c, d - c, i, 0, s, !1 !== p && ("px" === m || "zIndex" === s), 0, h, l)).xs0 = m)
}
n && i && !i.plugin && (i.plugin = n)
}
return i
}
,
h.setRatio = function (t) {
var e, i, r, n = this._firstPT;
if (1 !== t || this._tween._time !== this._tween._duration && 0 !== this._tween._time)
if (t || this._tween._time !== this._tween._duration && 0 !== this._tween._time || -1e-6 === this._tween._rawPrevTime)
for (; n;) {
if (e = n.c * t + n.s,
n.r ? e = Math.round(e) : 1e-6 > e && e > -1e-6 && (e = 0),
n.type)
if (1 === n.type)
if (2 === (r = n.l))
n.t[n.p] = n.xs0 + e + n.xs1 + n.xn1 + n.xs2;
else if (3 === r)
n.t[n.p] = n.xs0 + e + n.xs1 + n.xn1 + n.xs2 + n.xn2 + n.xs3;
else if (4 === r)
n.t[n.p] = n.xs0 + e + n.xs1 + n.xn1 + n.xs2 + n.xn2 + n.xs3 + n.xn3 + n.xs4;
else if (5 === r)
n.t[n.p] = n.xs0 + e + n.xs1 + n.xn1 + n.xs2 + n.xn2 + n.xs3 + n.xn3 + n.xs4 + n.xn4 + n.xs5;
else {
for (i = n.xs0 + e + n.xs1,
r = 1; r < n.l; r++)
i += n["xn" + r] + n["xs" + (r + 1)];
n.t[n.p] = i
}
else
-1 === n.type ? n.t[n.p] = n.xs0 : n.setRatio && n.setRatio(t);
else
n.t[n.p] = e + n.xs0;
n = n._next
}
else
for (; n;)
2 !== n.type ? n.t[n.p] = n.b : n.setRatio(t),
n = n._next;
else
for (; n;) {
if (2 !== n.type)
if (n.r && -1 !== n.type)
if (e = Math.round(n.s + n.c),
n.type) {
if (1 === n.type) {
for (r = n.l,
i = n.xs0 + e + n.xs1,
r = 1; r < n.l; r++)
i += n["xn" + r] + n["xs" + (r + 1)];
n.t[n.p] = i
}
} else
n.t[n.p] = e + n.xs0;
else
n.t[n.p] = n.e;
else
n.setRatio(t);
n = n._next
}
}
,
h._enableTransforms = function (t) {
this._transform = this._transform || $t(this._target, o, !0),
this._transformType = this._transform.svg && Ct || !t && 3 !== this._transformType ? 2 : 3
}
;
var Qt = function (t) {
this.t[this.p] = this.e,
this.data._linkCSSP(this, this._next, null, !0)
};
h._addLazySet = function (t, e, i) {
var r = this._firstPT = new vt(t, e, 0, 0, this._firstPT, 2);
r.e = i,
r.setRatio = Qt,
r.data = this
}
,
h._linkCSSP = function (t, e, i, r) {
return t && (e && (e._prev = t),
t._next && (t._next._prev = t._prev),
t._prev ? t._prev._next = t._next : this._firstPT === t && (this._firstPT = t._next,
r = !0),
i ? i._next = t : r || null !== this._firstPT || (this._firstPT = t),
t._next = e,
t._prev = i),
t
}
,
h._mod = function (t) {
for (var e = this._firstPT; e;)
"function" == typeof t[e.p] && t[e.p] === Math.round && (e.r = 1),
e = e._next
}
,
h._kill = function (e) {
var i, r, n, s = e;
if (e.autoAlpha || e.alpha) {
for (r in s = {},
e)
s[r] = e[r];
s.opacity = 1,
s.autoAlpha && (s.visibility = 1)
}
for (e.className && (i = this._classNamePT) && ((n = i.xfirst) && n._prev ? this._linkCSSP(n._prev, i._next, n._prev._prev) : n === this._firstPT && (this._firstPT = i._next),
i._next && this._linkCSSP(i._next, i._next._next, n._prev),
this._classNamePT = null),
i = this._firstPT; i;)
i.plugin && i.plugin !== r && i.plugin._kill && (i.plugin._kill(e),
r = i.plugin),
i = i._next;
return t.prototype._kill.call(this, s)
}
;
var Zt = function t(e, i, r) {
var n, s, o, a;
if (e.slice)
for (s = e.length; --s > -1;)
t(e[s], i, r);
else
for (s = (n = e.childNodes).length; --s > -1;)
a = (o = n[s]).type,
o.style && (i.push(nt(o)),
r && r.push(o)),
1 !== a && 9 !== a && 11 !== a || !o.childNodes.length || t(o, i, r)
};
return c.cascadeTo = function (t, i, r) {
var n, s, o, a, c = e.to(t, i, r), d = [c], u = [], h = [], p = [],
l = e._internals.reservedProps;
for (t = c._targets || c.target,
Zt(t, u, p),
c.render(i, !0, !0),
Zt(t, h),
c.render(0, !0, !0),
c._enabled(!0),
n = p.length; --n > -1;)
if ((s = st(p[n], u[n], h[n])).firstMPT) {
for (o in s = s.difs,
r)
l[o] && (s[o] = r[o]);
for (o in a = {},
s)
a[o] = u[n][o];
d.push(e.fromTo(p[n], i, a, s))
}
return d
}
,
t.activate([c]),
c
}
), !0),
t = s._gsDefine.plugin({
propName: "roundProps",
version: "1.6.0",
priority: -1,
API: 2,
init: function (t, e, i) {
return this._tween = i,
!0
}
}),
e = function (t) {
for (; t;)
t.f || t.blob || (t.m = Math.round),
t = t._next
}
,
(i = t.prototype)._onInitAllProps = function () {
for (var t, i, r, n = this._tween, s = n.vars.roundProps.join ? n.vars.roundProps : n.vars.roundProps.split(","), o = s.length, a = {}, c = n._propLookup.roundProps; --o > -1;)
a[s[o]] = Math.round;
for (o = s.length; --o > -1;)
for (t = s[o],
i = n._firstPT; i;)
r = i._next,
i.pg ? i.t._mod(a) : i.n === t && (2 === i.f && i.t ? e(i.t._firstPT) : (this._add(i.t, t, i.s, i.c),
r && (r._prev = i._prev),
i._prev ? i._prev._next = r : n._firstPT === i && (n._firstPT = r),
i._next = i._prev = null,
n._propLookup[t] = c)),
i = r;
return !1
}
,
i._add = function (t, e, i, r) {
this._addTween(t, e, i, i + r, e, Math.round),
this._overwriteProps.push(e)
}
,
s._gsDefine.plugin({
propName: "attr",
API: 2,
version: "0.6.1",
init: function (t, e, i, r) {
var n, s;
if ("function" != typeof t.setAttribute)
return !1;
for (n in e)
"function" == typeof (s = e[n]) && (s = s(r, t)),
this._addTween(t, "setAttribute", t.getAttribute(n) + "", s + "", n, !1, n),
this._overwriteProps.push(n);
return !0
}
}),
s._gsDefine.plugin({
propName: "directionalRotation",
version: "0.3.1",
API: 2,
init: function (t, e, i, r) {
"object" != n(e) && (e = {
rotation: e
}),
this.finals = {};
var s, o, a, c, d, u, h = !0 === e.useRadians ? 2 * Math.PI : 360;
for (s in e)
"useRadians" !== s && ("function" == typeof (c = e[s]) && (c = c(r, t)),
o = (u = (c + "").split("_"))[0],
a = parseFloat("function" != typeof t[s] ? t[s] : t[s.indexOf("set") || "function" != typeof t["get" + s.substr(3)] ? s : "get" + s.substr(3)]()),
d = (c = this.finals[s] = "string" == typeof o && "=" === o.charAt(1) ? a + parseInt(o.charAt(0) + "1", 10) * Number(o.substr(2)) : Number(o) || 0) - a,
u.length && (-1 !== (o = u.join("_")).indexOf("short") && ((d %= h) !== d % (h / 2) && (d = 0 > d ? d + h : d - h)),
-1 !== o.indexOf("_cw") && 0 > d ? d = (d + 9999999999 * h) % h - (d / h | 0) * h : -1 !== o.indexOf("ccw") && d > 0 && (d = (d - 9999999999 * h) % h - (d / h | 0) * h)),
(d > 1e-6 || -1e-6 > d) && (this._addTween(t, s, a, a + d, s),
this._overwriteProps.push(s)));
return !0
},
set: function (t) {
var e;
if (1 !== t)
this._super.setRatio.call(this, t);
else
for (e = this._firstPT; e;)
e.f ? e.t[e.p](this.finals[e.p]) : e.t[e.p] = this.finals[e.p],
e = e._next
}
})._autoCSS = !0,
s._gsDefine("easing.Back", ["easing.Ease"], (function (t) {
var e, i, r, n, o = s.GreenSockGlobals || s, a = o.com.greensock, c = 2 * Math.PI,
d = Math.PI / 2, u = a._class, h = function (e, i) {
var r = u("easing." + e, (function () {
}
), !0)
, n = r.prototype = new t;
return n.constructor = r,
n.getRatio = i,
r
}, p = t.register || function () {
}
, l = function (t, e, i, r, n) {
var s = u("easing." + t, {
easeOut: new e,
easeIn: new i,
easeInOut: new r
}, !0);
return p(s, t),
s
}, f = function (t, e, i) {
this.t = t,
this.v = e,
i && (this.next = i,
i.prev = this,
this.c = i.v - e,
this.gap = i.t - t)
}, m = function (e, i) {
var r = u("easing." + e, (function (t) {
this._p1 = t || 0 === t ? t : 1.70158,
this._p2 = 1.525 * this._p1
}
), !0)
, n = r.prototype = new t;
return n.constructor = r,
n.getRatio = i,
n.config = function (t) {
return new r(t)
}
,
r
}, w = l("Back", m("BackOut", (function (t) {
return (t -= 1) * t * ((this._p1 + 1) * t + this._p1) + 1
}
)), m("BackIn", (function (t) {
return t * t * ((this._p1 + 1) * t - this._p1)
}
)), m("BackInOut", (function (t) {
return (t *= 2) < 1 ? .5 * t * t * ((this._p2 + 1) * t - this._p2) : .5 * ((t -= 2) * t * ((this._p2 + 1) * t + this._p2) + 2)
}
))), I = u("easing.SlowMo", (function (t, e, i) {
e = e || 0 === e ? e : .7,
null == t ? t = .7 : t > 1 && (t = 1),
this._p = 1 !== t ? e : 0,
this._p1 = (1 - t) / 2,
this._p2 = t,
this._p3 = this._p1 + this._p2,
this._calcEnd = !0 === i
}
), !0), y = I.prototype = new t;
return y.constructor = I,
y.getRatio = function (t) {
var e = t + (.5 - t) * this._p;
return t < this._p1 ? this._calcEnd ? 1 - (t = 1 - t / this._p1) * t : e - (t = 1 - t / this._p1) * t * t * t * e : t > this._p3 ? this._calcEnd ? 1 === t ? 0 : 1 - (t = (t - this._p3) / this._p1) * t : e + (t - e) * (t = (t - this._p3) / this._p1) * t * t * t : this._calcEnd ? 1 : e
}
,
I.ease = new I(.7, .7),
y.config = I.config = function (t, e, i) {
return new I(t, e, i)
}
,
(y = (e = u("easing.SteppedEase", (function (t, e) {
t = t || 1,
this._p1 = 1 / t,
this._p2 = t + (e ? 0 : 1),
this._p3 = e ? 1 : 0
}
), !0)).prototype = new t).constructor = e,
y.getRatio = function (t) {
return 0 > t ? t = 0 : t >= 1 && (t = .999999999),
((this._p2 * t | 0) + this._p3) * this._p1
}
,
y.config = e.config = function (t, i) {
return new e(t, i)
}
,
(y = (i = u("easing.ExpoScaleEase", (function (t, e, i) {
this._p1 = Math.log(e / t),
this._p2 = e - t,
this._p3 = t,
this._ease = i
}
), !0)).prototype = new t).constructor = i,
y.getRatio = function (t) {
return this._ease && (t = this._ease.getRatio(t)),
(this._p3 * Math.exp(this._p1 * t) - this._p3) / this._p2
}
,
y.config = i.config = function (t, e, r) {
return new i(t, e, r)
}
,
(y = (r = u("easing.RoughEase", (function (e) {
for (var i, r, n, s, o, a, c = (e = e || {}).taper || "none", d = [], u = 0, h = 0 | (e.points || 20), p = h, l = !1 !== e.randomize, m = !0 === e.clamp, w = e.template instanceof t ? e.template : null, I = "number" == typeof e.strength ? .4 * e.strength : .4; --p > -1;)
i = l ? Math.random() : 1 / h * p,
r = w ? w.getRatio(i) : i,
"none" === c ? n = I : "out" === c ? n = (s = 1 - i) * s * I : "in" === c ? n = i * i * I : .5 > i ? n = (s = 2 * i) * s * .5 * I : n = (s = 2 * (1 - i)) * s * .5 * I,
l ? r += Math.random() * n - .5 * n : p % 2 ? r += .5 * n : r -= .5 * n,
m && (r > 1 ? r = 1 : 0 > r && (r = 0)),
d[u++] = {
x: i,
y: r
};
for (d.sort((function (t, e) {
return t.x - e.x
}
)),
a = new f(1, 1, null),
p = h; --p > -1;)
o = d[p],
a = new f(o.x, o.y, a);
this._prev = new f(0, 0, 0 !== a.t ? a : a.next)
}
), !0)).prototype = new t).constructor = r,
y.getRatio = function (t) {
var e = this._prev;
if (t > e.t) {
for (; e.next && t >= e.t;)
e = e.next;
e = e.prev
} else
for (; e.prev && t <= e.t;)
e = e.prev;
return this._prev = e,
e.v + (t - e.t) / e.gap * e.c
}
,
y.config = function (t) {
return new r(t)
}
,
r.ease = new r,
l("Bounce", h("BounceOut", (function (t) {
return 1 / 2.75 > t ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : 2.5 / 2.75 > t ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375
}
)), h("BounceIn", (function (t) {
return (t = 1 - t) < 1 / 2.75 ? 1 - 7.5625 * t * t : 2 / 2.75 > t ? 1 - (7.5625 * (t -= 1.5 / 2.75) * t + .75) : 2.5 / 2.75 > t ? 1 - (7.5625 * (t -= 2.25 / 2.75) * t + .9375) : 1 - (7.5625 * (t -= 2.625 / 2.75) * t + .984375)
}
)), h("BounceInOut", (function (t) {
var e = .5 > t;
return t = 1 / 2.75 > (t = e ? 1 - 2 * t : 2 * t - 1) ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : 2.5 / 2.75 > t ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375,
e ? .5 * (1 - t) : .5 * t + .5
}
))),
l("Circ", h("CircOut", (function (t) {
return Math.sqrt(1 - (t -= 1) * t)
}
)), h("CircIn", (function (t) {
return -(Math.sqrt(1 - t * t) - 1)
}
)), h("CircInOut", (function (t) {
return (t *= 2) < 1 ? -.5 * (Math.sqrt(1 - t * t) - 1) : .5 * (Math.sqrt(1 - (t -= 2) * t) + 1)
}
))),
l("Elastic", (n = function (e, i, r) {
var n = u("easing." + e, (function (t, e) {
this._p1 = t >= 1 ? t : 1,
this._p2 = (e || r) / (1 > t ? t : 1),
this._p3 = this._p2 / c * (Math.asin(1 / this._p1) || 0),
this._p2 = c / this._p2
}
), !0)
, s = n.prototype = new t;
return s.constructor = n,
s.getRatio = i,
s.config = function (t, e) {
return new n(t, e)
}
,
n
}
)("ElasticOut", (function (t) {
return this._p1 * Math.pow(2, -10 * t) * Math.sin((t - this._p3) * this._p2) + 1
}
), .3), n("ElasticIn", (function (t) {
return -this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2)
}
), .3), n("ElasticInOut", (function (t) {
return (t *= 2) < 1 ? this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2) * -.5 : this._p1 * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2) * .5 + 1
}
), .45)),
l("Expo", h("ExpoOut", (function (t) {
return 1 - Math.pow(2, -10 * t)
}
)), h("ExpoIn", (function (t) {
return Math.pow(2, 10 * (t - 1)) - .001
}
)), h("ExpoInOut", (function (t) {
return (t *= 2) < 1 ? .5 * Math.pow(2, 10 * (t - 1)) : .5 * (2 - Math.pow(2, -10 * (t - 1)))
}
))),
l("Sine", h("SineOut", (function (t) {
return Math.sin(t * d)
}
)), h("SineIn", (function (t) {
return 1 - Math.cos(t * d)
}
)), h("SineInOut", (function (t) {
return -.5 * (Math.cos(Math.PI * t) - 1)
}
))),
u("easing.EaseLookup", {
find: function (e) {
return t.map[e]
}
}, !0),
p(o.SlowMo, "SlowMo", "ease,"),
p(r, "RoughEase", "ease,"),
p(e, "SteppedEase", "ease,"),
w
}
), !0)
}
)),
s._gsDefine && s._gsQueue.pop()(),
function (i, s) {
"use strict";
var o = {}
, a = i.document
, c = i.GreenSockGlobals = i.GreenSockGlobals || i;
if (!c.TweenLite) {
var d, u, h, p, l, f = function (t) {
var e, i = t.split("."), r = c;
for (e = 0; e < i.length; e++)
r[i[e]] = r = r[i[e]] || {};
return r
}, m = f("com.greensock"), w = 1e-10, I = function (t) {
var e, i = [], r = t.length;
for (e = 0; e !== r; i.push(t[e++]))
;
return i
}, y = function () {
}, g = function () {
var t = Object.prototype.toString
, e = t.call([]);
return function (i) {
return null != i && (i instanceof Array || "object" == n(i) && !!i.push && t.call(i) === e)
}
}(), S = {}, v = function i(n, a, d, u) {
this.sc = S[n] ? S[n].sc : [],
S[n] = this,
this.gsClass = null,
this.func = d;
var h = [];
this.check = function (p) {
for (var l, m, w, I, y = a.length, g = y; --y > -1;)
(l = S[a[y]] || new i(a[y], [])).gsClass ? (h[y] = l.gsClass,
g--) : p && l.sc.push(this);
if (0 === g && d) {
if (w = (m = ("com.greensock." + n).split(".")).pop(),
I = f(m.join("."))[w] = this.gsClass = d.apply(d, h),
u)
if (c[w] = o[w] = I,
t.exports)
if (n === s)
for (y in t.exports = o[s] = I,
o)
I[y] = o[y];
else
o[s] && (o[s][w] = I);
else
void 0 === (r = function () {
return I
}
.apply(e, [])) || (t.exports = r);
for (y = 0; y < this.sc.length; y++)
this.sc[y].check()
}
}
,
this.check(!0)
}, _ = i._gsDefine = function (t, e, i, r) {
return new v(t, e, i, r)
}
, T = m._class = function (t, e, i) {
return e = e || function () {
}
,
_(t, [], (function () {
return e
}
), i),
e
}
;
_.globals = c;
var R = [0, 0, 1, 1]
, b = T("easing.Ease", (function (t, e, i, r) {
this._func = t,
this._type = i || 0,
this._power = r || 0,
this._params = e ? R.concat(e) : R
}
), !0)
, P = b.map = {}
, x = b.register = function (t, e, i, r) {
for (var n, s, o, a, c = e.split(","), d = c.length, u = (i || "easeIn,easeOut,easeInOut").split(","); --d > -1;)
for (s = c[d],
n = r ? T("easing." + s, null, !0) : m.easing[s] || {},
o = u.length; --o > -1;)
a = u[o],
P[s + "." + a] = P[a + s] = n[a] = t.getRatio ? t : t[a] || new t
}
;
for ((h = b.prototype)._calcEnd = !1,
h.getRatio = function (t) {
if (this._func)
return this._params[0] = t,
this._func.apply(null, this._params);
var e = this._type
, i = this._power
, r = 1 === e ? 1 - t : 2 === e ? t : .5 > t ? 2 * t : 2 * (1 - t);
return 1 === i ? r *= r : 2 === i ? r *= r * r : 3 === i ? r *= r * r * r : 4 === i && (r *= r * r * r * r),
1 === e ? 1 - r : 2 === e ? r : .5 > t ? r / 2 : 1 - r / 2
}
,
u = (d = ["Linear", "Quad", "Cubic", "Quart", "Quint,Strong"]).length; --u > -1;)
h = d[u] + ",Power" + u,
x(new b(null, null, 1, u), h, "easeOut", !0),
x(new b(null, null, 2, u), h, "easeIn" + (0 === u ? ",easeNone" : "")),
x(new b(null, null, 3, u), h, "easeInOut");
P.linear = m.easing.Linear.easeIn,
P.swing = m.easing.Quad.easeInOut;
var C = T("events.EventDispatcher", (function (t) {
this._listeners = {},
this._eventTarget = t || this
}
));
(h = C.prototype).addEventListener = function (t, e, i, r, n) {
n = n || 0;
var s, o, a = this._listeners[t], c = 0;
for (this !== p || l || p.wake(),
null == a && (this._listeners[t] = a = []),
o = a.length; --o > -1;)
(s = a[o]).c === e && s.s === i ? a.splice(o, 1) : 0 === c && s.pr < n && (c = o + 1);
a.splice(c, 0, {
c: e,
s: i,
up: r,
pr: n
})
}
,
h.removeEventListener = function (t, e) {
var i, r = this._listeners[t];
if (r)
for (i = r.length; --i > -1;)
if (r[i].c === e)
return void r.splice(i, 1)
}
,
h.dispatchEvent = function (t) {
var e, i, r, n = this._listeners[t];
if (n)
for ((e = n.length) > 1 && (n = n.slice(0)),
i = this._eventTarget; --e > -1;)
(r = n[e]) && (r.up ? r.c.call(r.s || i, {
type: t,
target: i
}) : r.c.call(r.s || i))
}
;
var U = i.requestAnimationFrame
, k = i.cancelAnimationFrame
, L = Date.now || function () {
return (new Date).getTime()
}
, N = L();
for (u = (d = ["ms", "moz", "webkit", "o"]).length; --u > -1 && !U;)
U = i[d[u] + "RequestAnimationFrame"],
k = i[d[u] + "CancelAnimationFrame"] || i[d[u] + "CancelRequestAnimationFrame"];
T("Ticker", (function (t, e) {
var i, r, n, s, o, c = this, d = L(), u = !(!1 === e || !U) && "auto", h = 500,
f = 33, m = function t(e) {
var a, u, p = L() - N;
p > h && (d += p - f),
N += p,
c.time = (N - d) / 1e3,
a = c.time - o,
(!i || a > 0 || !0 === e) && (c.frame++,
o += a + (a >= s ? .004 : s - a),
u = !0),
!0 !== e && (n = r(t)),
u && c.dispatchEvent("tick")
};
C.call(c),
c.time = c.frame = 0,
c.tick = function () {
m(!0)
}
,
c.lagSmoothing = function (t, e) {
return arguments.length ? (h = t || 1 / w,
void (f = Math.min(e, h, 0))) : 1 / w > h
}
,
c.sleep = function () {
null != n && (u && k ? k(n) : clearTimeout(n),
r = y,
n = null,
c === p && (l = !1))
}
,
c.wake = function (t) {
null !== n ? c.sleep() : t ? d += -N + (N = L()) : c.frame > 10 && (N = L() - h + 5),
r = 0 === i ? y : u && U ? U : function (t) {
return setTimeout(t, 1e3 * (o - c.time) + 1 | 0)
}
,
c === p && (l = !0),
m(2)
}
,
c.fps = function (t) {
return arguments.length ? (s = 1 / ((i = t) || 60),
o = this.time + s,
void c.wake()) : i
}
,
c.useRAF = function (t) {
return arguments.length ? (c.sleep(),
u = t,
void c.fps(i)) : u
}
,
c.fps(t),
setTimeout((function () {
"auto" === u && c.frame < 5 && "hidden" !== (a || {}).visibilityState && c.useRAF(!1)
}
), 1500)
}
)),
(h = m.Ticker.prototype = new m.events.EventDispatcher).constructor = m.Ticker;
var E = T("core.Animation", (function (t, e) {
if (this.vars = e = e || {},
this._duration = this._totalDuration = t || 0,
this._delay = Number(e.delay) || 0,
this._timeScale = 1,
this._active = !0 === e.immediateRender,
this.data = e.data,
this._reversed = !0 === e.reversed,
X) {
l || p.wake();
var i = this.vars.useFrames ? K : X;
i.add(this, i._time),
this.vars.paused && this.paused(!0)
}
}
));
p = E.ticker = new m.Ticker,
(h = E.prototype)._dirty = h._gc = h._initted = h._paused = !1,
h._totalTime = h._time = 0,
h._rawPrevTime = -1,
h._next = h._last = h._onUpdate = h._timeline = h.timeline = null,
h._paused = !1;
(function t() {
l && L() - N > 2e3 && ("hidden" !== (a || {}).visibilityState || !p.lagSmoothing()) && p.wake();
var e = setTimeout(t, 2e3);
e.unref && e.unref()
}
)(),
h.play = function (t, e) {
return null != t && this.seek(t, e),
this.reversed(!1).paused(!1)
}
,
h.pause = function (t, e) {
return null != t && this.seek(t, e),
this.paused(!0)
}
,
h.resume = function (t, e) {
return null != t && this.seek(t, e),
this.paused(!1)
}
,
h.seek = function (t, e) {
return this.totalTime(Number(t), !1 !== e)
}
,
h.restart = function (t, e) {
return this.reversed(!1).paused(!1).totalTime(t ? -this._delay : 0, !1 !== e, !0)
}
,
h.reverse = function (t, e) {
return null != t && this.seek(t || this.totalDuration(), e),
this.reversed(!0).paused(!1)
}
,
h.render = function (t, e, i) {
}
,
h.invalidate = function () {
return this._time = this._totalTime = 0,
this._initted = this._gc = !1,
this._rawPrevTime = -1,
(this._gc || !this.timeline) && this._enabled(!0),
this
}
,
h.isActive = function () {
var t, e = this._timeline, i = this._startTime;
return !e || !this._gc && !this._paused && e.isActive() && (t = e.rawTime(!0)) >= i && t < i + this.totalDuration() / this._timeScale - 1e-7
}
,
h._enabled = function (t, e) {
return l || p.wake(),
this._gc = !t,
this._active = this.isActive(),
!0 !== e && (t && !this.timeline ? this._timeline.add(this, this._startTime - this._delay) : !t && this.timeline && this._timeline._remove(this, !0)),
!1
}
,
h._kill = function (t, e) {
return this._enabled(!1, !1)
}
,
h.kill = function (t, e) {
return this._kill(t, e),
this
}
,
h._uncache = function (t) {
for (var e = t ? this : this.timeline; e;)
e._dirty = !0,
e = e.timeline;
return this
}
,
h._swapSelfInParams = function (t) {
for (var e = t.length, i = t.concat(); --e > -1;)
"{self}" === t[e] && (i[e] = this);
return i
}
,
h._callback = function (t) {
var e = this.vars
, i = e[t]
, r = e[t + "Params"]
, n = e[t + "Scope"] || e.callbackScope || this;
switch (r ? r.length : 0) {
case 0:
i.call(n);
break;
case 1:
i.call(n, r[0]);
break;
case 2:
i.call(n, r[0], r[1]);
break;
default:
i.apply(n, r)
}
}
,
h.eventCallback = function (t, e, i, r) {
if ("on" === (t || "").substr(0, 2)) {
var n = this.vars;
if (1 === arguments.length)
return n[t];
null == e ? delete n[t] : (n[t] = e,
n[t + "Params"] = g(i) && -1 !== i.join("").indexOf("{self}") ? this._swapSelfInParams(i) : i,
n[t + "Scope"] = r),
"onUpdate" === t && (this._onUpdate = e)
}
return this
}
,
h.delay = function (t) {
return arguments.length ? (this._timeline.smoothChildTiming && this.startTime(this._startTime + t - this._delay),
this._delay = t,
this) : this._delay
}
,
h.duration = function (t) {
return arguments.length ? (this._duration = this._totalDuration = t,
this._uncache(!0),
this._timeline.smoothChildTiming && this._time > 0 && this._time < this._duration && 0 !== t && this.totalTime(this._totalTime * (t / this._duration), !0),
this) : (this._dirty = !1,
this._duration)
}
,
h.totalDuration = function (t) {
return this._dirty = !1,
arguments.length ? this.duration(t) : this._totalDuration
}
,
h.time = function (t, e) {
return arguments.length ? (this._dirty && this.totalDuration(),
this.totalTime(t > this._duration ? this._duration : t, e)) : this._time
}
,
h.totalTime = function (t, e, i) {
if (l || p.wake(),
!arguments.length)
return this._totalTime;
if (this._timeline) {
if (0 > t && !i && (t += this.totalDuration()),
this._timeline.smoothChildTiming) {
this._dirty && this.totalDuration();
var r = this._totalDuration
, n = this._timeline;
if (t > r && !i && (t = r),
this._startTime = (this._paused ? this._pauseTime : n._time) - (this._reversed ? r - t : t) / this._timeScale,
n._dirty || this._uncache(!1),
n._timeline)
for (; n._timeline;)
n._timeline._time !== (n._startTime + n._totalTime) / n._timeScale && n.totalTime(n._totalTime, !0),
n = n._timeline
}
this._gc && this._enabled(!0, !1),
(this._totalTime !== t || 0 === this._duration) && (B.length && Z(),
this.render(t, e, !1),
B.length && Z())
}
return this
}
,
h.progress = h.totalProgress = function (t, e) {
var i = this.duration();
return arguments.length ? this.totalTime(i * t, e) : i ? this._time / i : this.ratio
}
,
h.startTime = function (t) {
return arguments.length ? (t !== this._startTime && (this._startTime = t,
this.timeline && this.timeline._sortChildren && this.timeline.add(this, t - this._delay)),
this) : this._startTime
}
,
h.endTime = function (t) {
return this._startTime + (0 != t ? this.totalDuration() : this.duration()) / this._timeScale
}
,
h.timeScale = function (t) {
if (!arguments.length)
return this._timeScale;
var e, i;
for (t = t || w,
this._timeline && this._timeline.smoothChildTiming && (i = (e = this._pauseTime) || 0 === e ? e : this._timeline.totalTime(),
this._startTime = i - (i - this._startTime) * this._timeScale / t),
this._timeScale = t,
i = this.timeline; i && i.timeline;)
i._dirty = !0,
i.totalDuration(),
i = i.timeline;
return this
}
,
h.reversed = function (t) {
return arguments.length ? (t != this._reversed && (this._reversed = t,
this.totalTime(this._timeline && !this._timeline.smoothChildTiming ? this.totalDuration() - this._totalTime : this._totalTime, !0)),
this) : this._reversed
}
,
h.paused = function (t) {
if (!arguments.length)
return this._paused;
var e, i, r = this._timeline;
return t != this._paused && r && (l || t || p.wake(),
i = (e = r.rawTime()) - this._pauseTime,
!t && r.smoothChildTiming && (this._startTime += i,
this._uncache(!1)),
this._pauseTime = t ? e : null,
this._paused = t,
this._active = this.isActive(),
!t && 0 !== i && this._initted && this.duration() && (e = r.smoothChildTiming ? this._totalTime : (e - this._startTime) / this._timeScale,
this.render(e, e === this._totalTime, !0))),
this._gc && !t && this._enabled(!0, !1),
this
}
;
var M = T("core.SimpleTimeline", (function (t) {
E.call(this, 0, t),
this.autoRemoveChildren = this.smoothChildTiming = !0
}
));
(h = M.prototype = new E).constructor = M,
h.kill()._gc = !1,
h._first = h._last = h._recent = null,
h._sortChildren = !1,
h.add = h.insert = function (t, e, i, r) {
var n, s;
if (t._startTime = Number(e || 0) + t._delay,
t._paused && this !== t._timeline && (t._pauseTime = t._startTime + (this.rawTime() - t._startTime) / t._timeScale),
t.timeline && t.timeline._remove(t, !0),
t.timeline = t._timeline = this,
t._gc && t._enabled(!0, !0),
n = this._last,
this._sortChildren)
for (s = t._startTime; n && n._startTime > s;)
n = n._prev;
return n ? (t._next = n._next,
n._next = t) : (t._next = this._first,
this._first = t),
t._next ? t._next._prev = t : this._last = t,
t._prev = n,
this._recent = t,
this._timeline && this._uncache(!0),
this
}
,
h._remove = function (t, e) {
return t.timeline === this && (e || t._enabled(!1, !0),
t._prev ? t._prev._next = t._next : this._first === t && (this._first = t._next),
t._next ? t._next._prev = t._prev : this._last === t && (this._last = t._prev),
t._next = t._prev = t.timeline = null,
t === this._recent && (this._recent = this._last),
this._timeline && this._uncache(!0)),
this
}
,
h.render = function (t, e, i) {
var r, n = this._first;
for (this._totalTime = this._time = this._rawPrevTime = t; n;)
r = n._next,
(n._active || t >= n._startTime && !n._paused && !n._gc) && (n._reversed ? n.render((n._dirty ? n.totalDuration() : n._totalDuration) - (t - n._startTime) * n._timeScale, e, i) : n.render((t - n._startTime) * n._timeScale, e, i)),
n = r
}
,
h.rawTime = function () {
return l || p.wake(),
this._totalTime
}
;
var A = T("TweenLite", (function (t, e, r) {
if (E.call(this, e, r),
this.render = A.prototype.render,
null == t)
throw "Cannot tween a null target.";
this.target = t = "string" != typeof t ? t : A.selector(t) || t;
var n, s, o,
a = t.jquery || t.length && t !== i && t[0] && (t[0] === i || t[0].nodeType && t[0].style && !t.nodeType),
c = this.vars.overwrite;
if (this._overwrite = c = null == c ? J[A.defaultOverwrite] : "number" == typeof c ? c >> 0 : J[c],
(a || t instanceof Array || t.push && g(t)) && "number" != typeof t[0])
for (this._targets = o = I(t),
this._propLookup = [],
this._siblings = [],
n = 0; n < o.length; n++)
(s = o[n]) ? "string" != typeof s ? s.length && s !== i && s[0] && (s[0] === i || s[0].nodeType && s[0].style && !s.nodeType) ? (o.splice(n--, 1),
this._targets = o = o.concat(I(s))) : (this._siblings[n] = tt(s, this, !1),
1 === c && this._siblings[n].length > 1 && it(s, this, null, 1, this._siblings[n])) : "string" == typeof (s = o[n--] = A.selector(s)) && o.splice(n + 1, 1) : o.splice(n--, 1);
else
this._propLookup = {},
this._siblings = tt(t, this, !1),
1 === c && this._siblings.length > 1 && it(t, this, null, 1, this._siblings);
(this.vars.immediateRender || 0 === e && 0 === this._delay && !1 !== this.vars.immediateRender) && (this._time = -w,
this.render(Math.min(0, -this._delay)))
}
), !0)
, G = function (t) {
return t && t.length && t !== i && t[0] && (t[0] === i || t[0].nodeType && t[0].style && !t.nodeType)
};
(h = A.prototype = new E).constructor = A,
h.kill()._gc = !1,
h.ratio = 0,
h._firstPT = h._targets = h._overwrittenProps = h._startAt = null,
h._notifyPluginsOfEnabled = h._lazy = !1,
A.version = "1.20.4",
A.defaultEase = h._ease = new b(null, null, 1, 1),
A.defaultOverwrite = "auto",
A.ticker = p,
A.autoSleep = 120,
A.lagSmoothing = function (t, e) {
p.lagSmoothing(t, e)
}
,
A.selector = i.$ || i.jQuery || function (t) {
var e = i.$ || i.jQuery;
return e ? (A.selector = e,
e(t)) : void 0 === a ? t : a.querySelectorAll ? a.querySelectorAll(t) : a.getElementById("#" === t.charAt(0) ? t.substr(1) : t)
}
;
var B = []
, F = {}
, D = /(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi
, V = /[\+-]=-?[\.\d]/
, O = function (t) {
for (var e, i = this._firstPT; i;)
e = i.blob ? 1 === t && null != this.end ? this.end : t ? this.join("") : this.start : i.c * t + i.s,
i.m ? e = i.m(e, this._target || i.t) : 1e-6 > e && e > -1e-6 && !i.blob && (e = 0),
i.f ? i.fp ? i.t[i.p](i.fp, e) : i.t[i.p](e) : i.t[i.p] = e,
i = i._next
}
, q = function (t, e, i, r) {
var n, s, o, a, c, d, u, h = [], p = 0, l = "", f = 0;
for (h.start = t,
h.end = e,
t = h[0] = t + "",
e = h[1] = e + "",
i && (i(h),
t = h[0],
e = h[1]),
h.length = 0,
n = t.match(D) || [],
s = e.match(D) || [],
r && (r._next = null,
r.blob = 1,
h._firstPT = h._applyPT = r),
c = s.length,
a = 0; c > a; a++)
u = s[a],
l += (d = e.substr(p, e.indexOf(u, p) - p)) || !a ? d : ",",
p += d.length,
f ? f = (f + 1) % 5 : "rgba(" === d.substr(-5) && (f = 1),
u === n[a] || n.length <= a ? l += u : (l && (h.push(l),
l = ""),
o = parseFloat(n[a]),
h.push(o),
h._firstPT = {
_next: h._firstPT,
t: h,
p: h.length - 1,
s: o,
c: ("=" === u.charAt(1) ? parseInt(u.charAt(0) + "1", 10) * parseFloat(u.substr(2)) : parseFloat(u) - o) || 0,
f: 0,
m: f && 4 > f ? Math.round : 0
}),
p += u.length;
return (l += e.substr(p)) && h.push(l),
h.setRatio = O,
V.test(e) && (h.end = null),
h
}
, H = function (t, e, i, r, s, o, a, c, d) {
"function" == typeof r && (r = r(d || 0, t));
var u = n(t[e])
,
h = "function" !== u ? "" : e.indexOf("set") || "function" != typeof t["get" + e.substr(3)] ? e : "get" + e.substr(3)
, p = "get" !== i ? i : h ? a ? t[h](a) : t[h]() : t[e]
, l = "string" == typeof r && "=" === r.charAt(1)
, f = {
t: t,
p: e,
s: p,
f: "function" === u,
pg: 0,
n: s || e,
m: o ? "function" == typeof o ? o : Math.round : 0,
pr: 0,
c: l ? parseInt(r.charAt(0) + "1", 10) * parseFloat(r.substr(2)) : parseFloat(r) - p || 0
};
return ("number" != typeof p || "number" != typeof r && !l) && (a || isNaN(p) || !l && isNaN(r) || "boolean" == typeof p || "boolean" == typeof r ? (f.fp = a,
f = {
t: q(p, l ? parseFloat(f.s) + f.c + (f.s + "").replace(/[0-9\-\.]/g, "") : r, c || A.defaultStringFilter, f),
p: "setRatio",
s: 0,
c: 1,
f: 2,
pg: 0,
n: s || e,
pr: 0,
m: 0
}) : (f.s = parseFloat(p),
l || (f.c = parseFloat(r) - f.s || 0))),
f.c ? ((f._next = this._firstPT) && (f._next._prev = f),
this._firstPT = f,
f) : void 0
}
, W = A._internals = {
isArray: g,
isSelector: G,
lazyTweens: B,
blobDif: q
}
, $ = A._plugins = {}
, z = W.tweenLookup = {}
, j = 0
, Y = W.reservedProps = {
ease: 1,
delay: 1,
overwrite: 1,
onComplete: 1,
onCompleteParams: 1,
onCompleteScope: 1,
useFrames: 1,
runBackwards: 1,
startAt: 1,
onUpdate: 1,
onUpdateParams: 1,
onUpdateScope: 1,
onStart: 1,
onStartParams: 1,
onStartScope: 1,
onReverseComplete: 1,
onReverseCompleteParams: 1,
onReverseCompleteScope: 1,
onRepeat: 1,
onRepeatParams: 1,
onRepeatScope: 1,
easeParams: 1,
yoyo: 1,
immediateRender: 1,
repeat: 1,
repeatDelay: 1,
data: 1,
paused: 1,
reversed: 1,
autoCSS: 1,
lazy: 1,
onOverwrite: 1,
callbackScope: 1,
stringFilter: 1,
id: 1,
yoyoEase: 1
}
, J = {
none: 0,
all: 1,
auto: 2,
concurrent: 3,
allOnStart: 4,
preexisting: 5,
true: 1,
false: 0
}
, K = E._rootFramesTimeline = new M
, X = E._rootTimeline = new M
, Q = 30
, Z = W.lazyRender = function () {
var t, e = B.length;
for (F = {}; --e > -1;)
(t = B[e]) && !1 !== t._lazy && (t.render(t._lazy[0], t._lazy[1], !0),
t._lazy = !1);
B.length = 0
}
;
X._startTime = p.time,
K._startTime = p.frame,
X._active = K._active = !0,
setTimeout(Z, 1),
E._updateRoot = A.render = function () {
var t, e, i;
if (B.length && Z(),
X.render((p.time - X._startTime) * X._timeScale, !1, !1),
K.render((p.frame - K._startTime) * K._timeScale, !1, !1),
B.length && Z(),
p.frame >= Q) {
for (i in Q = p.frame + (parseInt(A.autoSleep, 10) || 120),
z) {
for (t = (e = z[i].tweens).length; --t > -1;)
e[t]._gc && e.splice(t, 1);
0 === e.length && delete z[i]
}
if ((!(i = X._first) || i._paused) && A.autoSleep && !K._first && 1 === p._listeners.tick.length) {
for (; i && i._paused;)
i = i._next;
i || p.sleep()
}
}
}
,
p.addEventListener("tick", E._updateRoot);
var tt = function (t, e, i) {
var r, n, s = t._gsTweenID;
if (z[s || (t._gsTweenID = s = "t" + j++)] || (z[s] = {
target: t,
tweens: []
}),
e && ((r = z[s].tweens)[n = r.length] = e,
i))
for (; --n > -1;)
r[n] === e && r.splice(n, 1);
return z[s].tweens
}
, et = function (t, e, i, r) {
var n, s, o = t.vars.onOverwrite;
return o && (n = o(t, e, i, r)),
(o = A.onOverwrite) && (s = o(t, e, i, r)),
!1 !== n && !1 !== s
}
, it = function (t, e, i, r, n) {
var s, o, a, c;
if (1 === r || r >= 4) {
for (c = n.length,
s = 0; c > s; s++)
if ((a = n[s]) !== e)
a._gc || a._kill(null, t, e) && (o = !0);
else if (5 === r)
break;
return o
}
var d, u = e._startTime + w, h = [], p = 0, l = 0 === e._duration;
for (s = n.length; --s > -1;)
(a = n[s]) === e || a._gc || a._paused || (a._timeline !== e._timeline ? (d = d || rt(e, 0, l),
0 === rt(a, d, l) && (h[p++] = a)) : a._startTime <= u && a._startTime + a.totalDuration() / a._timeScale > u && ((l || !a._initted) && u - a._startTime <= 2e-10 || (h[p++] = a)));
for (s = p; --s > -1;)
if (a = h[s],
2 === r && a._kill(i, t, e) && (o = !0),
2 !== r || !a._firstPT && a._initted) {
if (2 !== r && !et(a, e))
continue;
a._enabled(!1, !1) && (o = !0)
}
return o
}
, rt = function (t, e, i) {
for (var r = t._timeline, n = r._timeScale, s = t._startTime; r._timeline;) {
if (s += r._startTime,
n *= r._timeScale,
r._paused)
return -100;
r = r._timeline
}
return (s /= n) > e ? s - e : i && s === e || !t._initted && 2 * w > s - e ? w : (s += t.totalDuration() / t._timeScale / n) > e + w ? 0 : s - e - w
};
h._init = function () {
var t, e, i, r, n, s, o = this.vars, a = this._overwrittenProps, c = this._duration,
d = !!o.immediateRender, u = o.ease;
if (o.startAt) {
for (r in this._startAt && (this._startAt.render(-1, !0),
this._startAt.kill()),
n = {},
o.startAt)
n[r] = o.startAt[r];
if (n.data = "isStart",
n.overwrite = !1,
n.immediateRender = !0,
n.lazy = d && !1 !== o.lazy,
n.startAt = n.delay = null,
n.onUpdate = o.onUpdate,
n.onUpdateParams = o.onUpdateParams,
n.onUpdateScope = o.onUpdateScope || o.callbackScope || this,
this._startAt = A.to(this.target, 0, n),
d)
if (this._time > 0)
this._startAt = null;
else if (0 !== c)
return
} else if (o.runBackwards && 0 !== c)
if (this._startAt)
this._startAt.render(-1, !0),
this._startAt.kill(),
this._startAt = null;
else {
for (r in 0 !== this._time && (d = !1),
i = {},
o)
Y[r] && "autoCSS" !== r || (i[r] = o[r]);
if (i.overwrite = 0,
i.data = "isFromStart",
i.lazy = d && !1 !== o.lazy,
i.immediateRender = d,
this._startAt = A.to(this.target, 0, i),
d) {
if (0 === this._time)
return
} else
this._startAt._init(),
this._startAt._enabled(!1),
this.vars.immediateRender && (this._startAt = null)
}
if (this._ease = u = u ? u instanceof b ? u : "function" == typeof u ? new b(u, o.easeParams) : P[u] || A.defaultEase : A.defaultEase,
o.easeParams instanceof Array && u.config && (this._ease = u.config.apply(u, o.easeParams)),
this._easeType = this._ease._type,
this._easePower = this._ease._power,
this._firstPT = null,
this._targets)
for (s = this._targets.length,
t = 0; s > t; t++)
this._initProps(this._targets[t], this._propLookup[t] = {}, this._siblings[t], a ? a[t] : null, t) && (e = !0);
else
e = this._initProps(this.target, this._propLookup, this._siblings, a, 0);
if (e && A._onPluginEvent("_onInitAllProps", this),
a && (this._firstPT || "function" != typeof this.target && this._enabled(!1, !1)),
o.runBackwards)
for (i = this._firstPT; i;)
i.s += i.c,
i.c = -i.c,
i = i._next;
this._onUpdate = o.onUpdate,
this._initted = !0
}
,
h._initProps = function (t, e, r, n, s) {
var o, a, c, d, u, h;
if (null == t)
return !1;
for (o in F[t._gsTweenID] && Z(),
this.vars.css || t.style && t !== i && t.nodeType && $.css && !1 !== this.vars.autoCSS && function (t, e) {
var i, r = {};
for (i in t)
Y[i] || i in e && "transform" !== i && "x" !== i && "y" !== i && "width" !== i && "height" !== i && "className" !== i && "border" !== i || !(!$[i] || $[i] && $[i]._autoCSS) || (r[i] = t[i],
delete t[i]);
t.css = r
}(this.vars, t),
this.vars)
if (h = this.vars[o],
Y[o])
h && (h instanceof Array || h.push && g(h)) && -1 !== h.join("").indexOf("{self}") && (this.vars[o] = h = this._swapSelfInParams(h, this));
else if ($[o] && (d = new $[o])._onInitTween(t, this.vars[o], this, s)) {
for (this._firstPT = u = {
_next: this._firstPT,
t: d,
p: "setRatio",
s: 0,
c: 1,
f: 1,
n: o,
pg: 1,
pr: d._priority,
m: 0
},
a = d._overwriteProps.length; --a > -1;)
e[d._overwriteProps[a]] = this._firstPT;
(d._priority || d._onInitAllProps) && (c = !0),
(d._onDisable || d._onEnable) && (this._notifyPluginsOfEnabled = !0),
u._next && (u._next._prev = u)
} else
e[o] = H.call(this, t, o, "get", h, o, 0, null, this.vars.stringFilter, s);
return n && this._kill(n, t) ? this._initProps(t, e, r, n, s) : this._overwrite > 1 && this._firstPT && r.length > 1 && it(t, this, e, this._overwrite, r) ? (this._kill(e, t),
this._initProps(t, e, r, n, s)) : (this._firstPT && (!1 !== this.vars.lazy && this._duration || this.vars.lazy && !this._duration) && (F[t._gsTweenID] = !0),
c)
}
,
h.render = function (t, e, i) {
var r, n, s, o, a = this._time, c = this._duration, d = this._rawPrevTime;
if (t >= c - 1e-7 && t >= 0)
this._totalTime = this._time = c,
this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1,
this._reversed || (r = !0,
n = "onComplete",
i = i || this._timeline.autoRemoveChildren),
0 === c && (this._initted || !this.vars.lazy || i) && (this._startTime === this._timeline._duration && (t = 0),
(0 > d || 0 >= t && t >= -1e-7 || d === w && "isPause" !== this.data) && d !== t && (i = !0,
d > w && (n = "onReverseComplete")),
this._rawPrevTime = o = !e || t || d === t ? t : w);
else if (1e-7 > t)
this._totalTime = this._time = 0,
this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0,
(0 !== a || 0 === c && d > 0) && (n = "onReverseComplete",
r = this._reversed),
0 > t && (this._active = !1,
0 === c && (this._initted || !this.vars.lazy || i) && (d >= 0 && (d !== w || "isPause" !== this.data) && (i = !0),
this._rawPrevTime = o = !e || t || d === t ? t : w)),
(!this._initted || this._startAt && this._startAt.progress()) && (i = !0);
else if (this._totalTime = this._time = t,
this._easeType) {
var u = t / c
, h = this._easeType
, p = this._easePower;
(1 === h || 3 === h && u >= .5) && (u = 1 - u),
3 === h && (u *= 2),
1 === p ? u *= u : 2 === p ? u *= u * u : 3 === p ? u *= u * u * u : 4 === p && (u *= u * u * u * u),
this.ratio = 1 === h ? 1 - u : 2 === h ? u : .5 > t / c ? u / 2 : 1 - u / 2
} else
this.ratio = this._ease.getRatio(t / c);
if (this._time !== a || i) {
if (!this._initted) {
if (this._init(),
!this._initted || this._gc)
return;
if (!i && this._firstPT && (!1 !== this.vars.lazy && this._duration || this.vars.lazy && !this._duration))
return this._time = this._totalTime = a,
this._rawPrevTime = d,
B.push(this),
void (this._lazy = [t, e]);
this._time && !r ? this.ratio = this._ease.getRatio(this._time / c) : r && this._ease._calcEnd && (this.ratio = this._ease.getRatio(0 === this._time ? 0 : 1))
}
for (!1 !== this._lazy && (this._lazy = !1),
this._active || !this._paused && this._time !== a && t >= 0 && (this._active = !0),
0 === a && (this._startAt && (t >= 0 ? this._startAt.render(t, !0, i) : n || (n = "_dummyGS")),
this.vars.onStart && (0 !== this._time || 0 === c) && (e || this._callback("onStart"))),
s = this._firstPT; s;)
s.f ? s.t[s.p](s.c * this.ratio + s.s) : s.t[s.p] = s.c * this.ratio + s.s,
s = s._next;
this._onUpdate && (0 > t && this._startAt && -1e-4 !== t && this._startAt.render(t, !0, i),
e || (this._time !== a || r || i) && this._callback("onUpdate")),
n && (!this._gc || i) && (0 > t && this._startAt && !this._onUpdate && -1e-4 !== t && this._startAt.render(t, !0, i),
r && (this._timeline.autoRemoveChildren && this._enabled(!1, !1),
this._active = !1),
!e && this.vars[n] && this._callback(n),
0 === c && this._rawPrevTime === w && o !== w && (this._rawPrevTime = 0))
}
}
,
h._kill = function (t, e, i) {
if ("all" === t && (t = null),
null == t && (null == e || e === this.target))
return this._lazy = !1,
this._enabled(!1, !1);
e = "string" != typeof e ? e || this._targets || this.target : A.selector(e) || e;
var r, s, o, a, c, d, u, h, p,
l = i && this._time && i._startTime === this._startTime && this._timeline === i._timeline;
if ((g(e) || G(e)) && "number" != typeof e[0])
for (r = e.length; --r > -1;)
this._kill(t, e[r], i) && (d = !0);
else {
if (this._targets) {
for (r = this._targets.length; --r > -1;)
if (e === this._targets[r]) {
c = this._propLookup[r] || {},
this._overwrittenProps = this._overwrittenProps || [],
s = this._overwrittenProps[r] = t ? this._overwrittenProps[r] || {} : "all";
break
}
} else {
if (e !== this.target)
return !1;
c = this._propLookup,
s = this._overwrittenProps = t ? this._overwrittenProps || {} : "all"
}
if (c) {
if (u = t || c,
h = t !== s && "all" !== s && t !== c && ("object" != n(t) || !t._tempKill),
i && (A.onOverwrite || this.vars.onOverwrite)) {
for (o in u)
c[o] && (p || (p = []),
p.push(o));
if ((p || !t) && !et(this, i, e, p))
return !1
}
for (o in u)
(a = c[o]) && (l && (a.f ? a.t[a.p](a.s) : a.t[a.p] = a.s,
d = !0),
a.pg && a.t._kill(u) && (d = !0),
a.pg && 0 !== a.t._overwriteProps.length || (a._prev ? a._prev._next = a._next : a === this._firstPT && (this._firstPT = a._next),
a._next && (a._next._prev = a._prev),
a._next = a._prev = null),
delete c[o]),
h && (s[o] = 1);
!this._firstPT && this._initted && this._enabled(!1, !1)
}
}
return d
}
,
h.invalidate = function () {
return this._notifyPluginsOfEnabled && A._onPluginEvent("_onDisable", this),
this._firstPT = this._overwrittenProps = this._startAt = this._onUpdate = null,
this._notifyPluginsOfEnabled = this._active = this._lazy = !1,
this._propLookup = this._targets ? {} : [],
E.prototype.invalidate.call(this),
this.vars.immediateRender && (this._time = -w,
this.render(Math.min(0, -this._delay))),
this
}
,
h._enabled = function (t, e) {
if (l || p.wake(),
t && this._gc) {
var i, r = this._targets;
if (r)
for (i = r.length; --i > -1;)
this._siblings[i] = tt(r[i], this, !0);
else
this._siblings = tt(this.target, this, !0)
}
return E.prototype._enabled.call(this, t, e),
!(!this._notifyPluginsOfEnabled || !this._firstPT) && A._onPluginEvent(t ? "_onEnable" : "_onDisable", this)
}
,
A.to = function (t, e, i) {
return new A(t, e, i)
}
,
A.from = function (t, e, i) {
return i.runBackwards = !0,
i.immediateRender = 0 != i.immediateRender,
new A(t, e, i)
}
,
A.fromTo = function (t, e, i, r) {
return r.startAt = i,
r.immediateRender = 0 != r.immediateRender && 0 != i.immediateRender,
new A(t, e, r)
}
,
A.delayedCall = function (t, e, i, r, n) {
return new A(e, 0, {
delay: t,
onComplete: e,
onCompleteParams: i,
callbackScope: r,
onReverseComplete: e,
onReverseCompleteParams: i,
immediateRender: !1,
lazy: !1,
useFrames: n,
overwrite: 0
})
}
,
A.set = function (t, e) {
return new A(t, 0, e)
}
,
A.getTweensOf = function (t, e) {
if (null == t)
return [];
var i, r, n, s;
if (t = "string" != typeof t ? t : A.selector(t) || t,
(g(t) || G(t)) && "number" != typeof t[0]) {
for (i = t.length,
r = []; --i > -1;)
r = r.concat(A.getTweensOf(t[i], e));
for (i = r.length; --i > -1;)
for (s = r[i],
n = i; --n > -1;)
s === r[n] && r.splice(i, 1)
} else if (t._gsTweenID)
for (i = (r = tt(t).concat()).length; --i > -1;)
(r[i]._gc || e && !r[i].isActive()) && r.splice(i, 1);
return r || []
}
,
A.killTweensOf = A.killDelayedCallsTo = function (t, e, i) {
"object" == n(e) && (i = e,
e = !1);
for (var r = A.getTweensOf(t, e), s = r.length; --s > -1;)
r[s]._kill(i, t)
}
;
var nt = T("plugins.TweenPlugin", (function (t, e) {
this._overwriteProps = (t || "").split(","),
this._propName = this._overwriteProps[0],
this._priority = e || 0,
this._super = nt.prototype
}
), !0);
if (h = nt.prototype,
nt.version = "1.19.0",
nt.API = 2,
h._firstPT = null,
h._addTween = H,
h.setRatio = O,
h._kill = function (t) {
var e, i = this._overwriteProps, r = this._firstPT;
if (null != t[this._propName])
this._overwriteProps = [];
else
for (e = i.length; --e > -1;)
null != t[i[e]] && i.splice(e, 1);
for (; r;)
null != t[r.n] && (r._next && (r._next._prev = r._prev),
r._prev ? (r._prev._next = r._next,
r._prev = null) : this._firstPT === r && (this._firstPT = r._next)),
r = r._next;
return !1
}
,
h._mod = h._roundProps = function (t) {
for (var e, i = this._firstPT; i;)
(e = t[this._propName] || null != i.n && t[i.n.split(this._propName + "_").join("")]) && "function" == typeof e && (2 === i.f ? i.t._applyPT.m = e : i.m = e),
i = i._next
}
,
A._onPluginEvent = function (t, e) {
var i, r, n, s, o, a = e._firstPT;
if ("_onInitAllProps" === t) {
for (; a;) {
for (o = a._next,
r = n; r && r.pr > a.pr;)
r = r._next;
(a._prev = r ? r._prev : s) ? a._prev._next = a : n = a,
(a._next = r) ? r._prev = a : s = a,
a = o
}
a = e._firstPT = n
}
for (; a;)
a.pg && "function" == typeof a.t[t] && a.t[t]() && (i = !0),
a = a._next;
return i
}
,
nt.activate = function (t) {
for (var e = t.length; --e > -1;)
t[e].API === nt.API && ($[(new t[e])._propName] = t[e]);
return !0
}
,
_.plugin = function (t) {
if (!(t && t.propName && t.init && t.API))
throw "illegal plugin definition.";
var e, i = t.propName, r = t.priority || 0, n = t.overwriteProps, s = {
init: "_onInitTween",
set: "setRatio",
kill: "_kill",
round: "_mod",
mod: "_mod",
initAll: "_onInitAllProps"
},
o = T("plugins." + i.charAt(0).toUpperCase() + i.substr(1) + "Plugin", (function () {
nt.call(this, i, r),
this._overwriteProps = n || []
}
), !0 === t.global), a = o.prototype = new nt(i);
for (e in a.constructor = o,
o.API = t.API,
s)
"function" == typeof t[e] && (a[s[e]] = t[e]);
return o.version = t.version,
nt.activate([o]),
o
}
,
d = i._gsQueue) {
for (u = 0; u < d.length; u++)
d[u]();
for (h in S)
S[h].func || i.console.log("GSAP encountered missing dependency: " + h)
}
l = !1
}
}(t.exports && void 0 !== i ? i : this || window, "TweenMax")
}
).call(this, i("yLpj"))
},
"6DbF": function (t, e) {
t.exports = function (t, e, i) {
var r = t.Event;
r.addEvent(r.SHIELD_DANMU_AREA, (function (t) {
n = t,
a()
}
));
var n = null
, s = null
, o = e;
function a() {
if (n) {
var t = n
, e = t.top
, r = t.height;
if (e > 0 && r > 0) {
var a = n
, c = a.top
, d = a.height
, u = c - i
, h = Math.floor(u / o)
, p = Math.ceil((u + d) / o);
return void (s = {
min: h,
max: p
})
}
}
s = null
}
this.updateItemHeight = function (t) {
o = t,
a()
}
,
this.isInShieldLine = function (t) {
if (s) {
var e = s
, i = e.min
, r = e.max;
if (i < t + 1 && t + 1 <= r)
return !0
}
return !1
}
}
},
"6WfL": function (t, e, i) {
t.exports = function (t, e) {
var r = t.G
, n = (t.Event,
t.ISDEBUG);
function s(t) {
r.isSupportWebp && function (t) {
var r = e.newId()
, s = i("VkgB")({
id: r,
content: t.text
})
, o = $(s).data("data", t);
o.click((function () {
var e = "//www.huya.com/" + t.iRoomId;
n && (e = "//test-www.huya.com/" + t.iRoomId),
0 == t.iRoomId && (e = "//www.huya.com/yy/" + t.lYYId),
window.open(e)
}
)),
e.addBanner(o)
}({
bannerType: "pugc",
actionType: "fadeOut",
text: "点击可进入主播直播间,和主播亲密互动!",
iRoomId: t.iRoomId,
lYYId: t.lYYId
})
}
t.addTafListener("1025801", s),
window.testBannerPugc = function (t) {
s({
iRoomId: 123,
lYYId: 456
})
}
}
},
"6cwl": function (t, e, i) {
},
"6dBs": function (t, e, i) {
"use strict";
var r = Object.prototype.hasOwnProperty
, n = Object.prototype.toString
, s = Object.defineProperty
, o = Object.getOwnPropertyDescriptor
, a = function (t) {
return "function" == typeof Array.isArray ? Array.isArray(t) : "[object Array]" === n.call(t)
}
, c = function (t) {
if (!t || "[object Object]" !== n.call(t))
return !1;
var e, i = r.call(t, "constructor"),
s = t.constructor && t.constructor.prototype && r.call(t.constructor.prototype, "isPrototypeOf");
if (t.constructor && !i && !s)
return !1;
for (e in t)
;
return void 0 === e || r.call(t, e)
}
, d = function (t, e) {
s && "__proto__" === e.name ? s(t, e.name, {
enumerable: !0,
configurable: !0,
value: e.newValue,
writable: !0
}) : t[e.name] = e.newValue
}
, u = function (t, e) {
if ("__proto__" === e) {
if (!r.call(t, e))
return;
if (o)
return o(t, e).value
}
return t[e]
};
t.exports = function t() {
var e, i, r, n, s, o, h = arguments[0], p = 1, l = arguments.length, f = !1;
for ("boolean" == typeof h && (f = h,
h = arguments[1] || {},
p = 2),
(null == h || "object" != typeof h && "function" != typeof h) && (h = {}); p < l; ++p)
if (null != (e = arguments[p]))
for (i in e)
r = u(h, i),
h !== (n = u(e, i)) && (f && n && (c(n) || (s = a(n))) ? (s ? (s = !1,
o = r && a(r) ? r : []) : o = r && c(r) ? r : {},
d(h, {
name: i,
newValue: t(f, o, n)
})) : void 0 !== n && d(h, {
name: i,
newValue: n
}));
return h
}
},
"6ezL": function (t, e, i) {
t.exports = function (t, e) {
var r, n, s, o, a, c, d, u = !1, h = !1, p = 0, l = 100, f = 100, m = !1, w = 0, I = "", y = !1, g = !1,
S = !1, v = !1, _ = 0, T = t.G, R = t.Event, b = t.R;
function P() {
r.find(".ab-default-bg").hide()
}
function x() {
h && (b.adHuyaReport("/presenter/tracking/close", {
id: c.id,
type: 1,
cnt: c.iPushTime,
uid: T.yyuid
}),
b.newHuyaReport({
eid_desc: "点击/直播间/直播广告展示/收起",
eid: "click/position",
position: "zhibo/LiveAdPlugin/fold",
resourceid: c.id,
prop: JSON.stringify({
live_mode: T.screenStatus
}),
uid: T.yyuid
})),
E()
}
function C() {
Math.round(n.currentTime) != Math.floor(n.duration / 4) || y ? Math.round(n.currentTime) != Math.floor(n.duration / 2) || g ? Math.round(n.currentTime) != Math.floor(3 * n.duration / 4) || S ? Math.round(n.currentTime) != Math.floor(n.duration) || v || (b.adHuyaReport("/presenter/tracking/conversion", {
id: c.id,
type: 1,
cnt: c.iPushTime,
progress: 100,
uid: T.yyuid
}),
b.newHuyaReport({
eid_desc: "时长/直播间/插件广告展示",
eid: "pageview/position",
position: "zhibo/AdPlugin/time",
resourceid: c.id,
prop: JSON.stringify({
live_mode: T.screenStatus,
live_progress: "100%"
}),
uid: T.yyuid
}),
v = !0) : (b.adHuyaReport("/presenter/tracking/conversion", {
id: c.id,
type: 1,
cnt: c.iPushTime,
progress: 75,
uid: T.yyuid
}),
b.newHuyaReport({
eid_desc: "时长/直播间/插件广告展示",
eid: "pageview/position",
position: "zhibo/AdPlugin/time",
resourceid: c.id,
prop: JSON.stringify({
live_mode: T.screenStatus,
live_progress: "75%"
}),
uid: T.yyuid
}),
S = !0) : (b.adHuyaReport("/presenter/tracking/conversion", {
id: c.id,
type: 1,
cnt: c.iPushTime,
progress: 50,
uid: T.yyuid
}),
b.newHuyaReport({
eid_desc: "时长/直播间/插件广告展示",
eid: "pageview/position",
position: "zhibo/AdPlugin/time",
resourceid: c.id,
prop: JSON.stringify({
live_mode: T.screenStatus,
live_progress: "50%"
}),
uid: T.yyuid
}),
g = !0) : (b.adHuyaReport("/presenter/tracking/conversion", {
id: c.id,
type: 1,
cnt: c.iPushTime,
progress: 25,
uid: T.yyuid
}),
b.newHuyaReport({
eid_desc: "时长/直播间/插件广告展示",
eid: "pageview/position",
position: "zhibo/AdPlugin/time",
resourceid: c.id,
prop: JSON.stringify({
live_mode: T.screenStatus,
live_progress: "25%"
}),
uid: T.yyuid
}),
y = !0)
}
function U() {
h ? (b.adHuyaReport("/presenter/tracking/click", {
id: c.id,
type: 1,
cnt: c.iPushTime,
uid: T.yyuid
}),
b.newHuyaReport({
eid_desc: "点击/直播间/直播广告展示",
eid: "click/position",
position: "zhibo/LiveAdPlugin",
resourceid: c.id,
prop: JSON.stringify({
live_mode: T.screenStatus
}),
uid: T.yyuid
})) : (b.adHuyaReport("/presenter/tracking/click", {
id: c.id,
type: 2,
cnt: c.iPushTime,
uid: T.yyuid
}),
b.newHuyaReport({
eid_desc: "点击/直播间/插件广告展示",
eid: "click/position",
position: "zhibo/AdPlugin",
resourceid: c.id,
prop: JSON.stringify({
live_mode: T.screenStatus
}),
uid: T.yyuid
})),
window.open(I)
}
function k() {
var t = Date.now();
t - p < 500 || (p = t,
u = !u,
L())
}
function L() {
$(".ab-sound-btn").removeClass("ab-sound-off ab-sound-on"),
u ? $(".ab-sound-btn").addClass("ab-sound-off") : $(".ab-sound-btn").addClass("ab-sound-on"),
n.muted = u,
n.volume = T.volume / 100
}
function N() {
m && n && n.paused && n.play()
}
function E() {
clearTimeout(_),
n.pause(),
r.hide(),
m = !1,
e.adStateChange(m)
}
function M(t) {
n && (n.volume = t / 100)
}
function A() {
if (m) {
var t = $("#player-video").width()
, e = $("#player-video").height()
, i = f * e / s
, n = i * l / f;
if (6 == o)
r.css({
width: n,
height: i,
top: e - i - 10,
left: 10
});
else if (99 == o) {
var c = a.layoutType
, d = a.ratioW
, u = a.ratioH;
1 == c ? r.css({
width: n,
height: i,
top: e * u,
left: t * d
}) : 2 == c ? r.css({
width: n,
height: i,
top: e * u,
left: t - n >> 1
}) : 3 == c ? r.css({
width: n,
height: i,
top: e * u,
left: t * d - n
}) : 4 == c ? r.css({
width: n,
height: i,
top: e * u - i,
left: t * d
}) : 5 == c ? r.css({
width: n,
height: i,
top: e * u - i,
left: t - n >> 1
}) : 6 == c ? r.css({
width: n,
height: i,
top: e * u - i,
left: t * d - n
}) : 7 == c ? r.css({
width: n,
height: i,
top: e - i >> 1,
left: t * d
}) : 8 == c ? r.css({
width: n,
height: i,
top: e - i >> 1,
left: t * d - n
}) : 9 == c ? r.css({
width: n,
height: i,
top: e - i >> 1,
left: t - n >> 1
}) : 10 == c && r.css({
width: t,
height: e
})
}
}
}
d = i("rE85")(),
r = $(d),
(n = r.find("#video-ab")[0]).ontimeupdate = C,
r.find(".ab-close-btn").click(x),
r.find(".ab-sound-btn").click(k),
r.find("#video-ab").click(U),
r.find("#video-ab")[0].onload = P,
R.addEvent(R.VOLUME_CHANGE, M),
R.addEvent(R.HUYA_AD_PLAY, N),
$(window).resize(A),
this.isAdShowing = function () {
return m
}
,
this.getdata = function () {
return c
}
,
this.show = function (t, i) {
m || (h = t,
w = i || (c.material.showTime || 15),
h ? (b.adHuyaReport("/presenter/tracking/show", {
id: c.id,
type: 1,
cnt: c.iPushTime,
uid: T.yyuid
}),
b.newHuyaReport({
eid_desc: "展示/直播间/直播广告展示",
eid: "pageview/position",
position: "zhibo/LiveAdPlugin",
resourceid: c.id,
prop: JSON.stringify({
live_mode: T.screenStatus
}),
uid: T.yyuid
})) : (b.adHuyaReport("/presenter/tracking/show", {
id: c.id,
type: 2,
cnt: c.iPushTime,
uid: T.yyuid
}),
b.newHuyaReport({
eid_desc: "展示/直播间/插件广告展示",
eid: "pageview/position",
position: "zhibo/AdPlugin",
resourceid: c.id,
prop: JSON.stringify({
live_mode: T.screenStatus
}),
uid: T.yyuid
})),
u = !h,
n.loop = !0,
m = !0,
e.adStateChange(m),
y = !1,
g = !1,
S = !1,
v = !1,
0,
n.currentTime = 0,
r.appendTo("#huya-ab"),
n.play(),
r.show(),
L(),
r.find(".ab-close-btn").css("visibility", h ? "hidden" : "visible"),
h && "" != I && setTimeout((function () {
r.find(".ab-close-btn").css("visibility", "visible")
}
), 5e3),
h && (_ = setTimeout(E, 1e3 * w)),
A())
}
,
this.setData = function (t) {
c = t;
var e = t.material;
o = e.adType,
e.imageUrl = e.imageUrl.replace("http:", "https:"),
e.videoUrl = e.videoUrl.replace("http:", "https:"),
r.find("#video-ab").attr("poster", e.imageUrl),
r.find("#video-ab").attr("src", e.videoUrl),
r.find(".ab-close-btn").show(),
r.find(".ab-default-bg").hide(),
w = e.showTime || 15;
var i = e.layout;
a = i,
i.templateW || 1334,
s = i.templateH || 750,
l = i.width || 800,
f = i.height || 450,
I = e.webLandingUrl,
r.find("#video-ab").css("pointer-events", I ? "auto" : "none")
}
,
this.clear = function () {
E()
}
,
this.setPushTime = function (t) {
c.iPushTime = t
}
}
},
"6gIT": function (t, e, i) {
t.exports = function (t) {
var e = t.G
, r = t.ENV;
this.show = function () {
var t = i("9quj")();
$("#player-wrap").append(t);
var n = r.avatarImg;
e.isHttps() && (n = n.replace("http:", "https:")),
$(".player-copyright-tip-bg").attr("src", n),
$(".player-videotype").hide(),
e.isCopyright = !0
}
}
},
"7AYe": function (t, e) {
t.exports = function (t, e) {
var i, r, n = null, s = null, o = null, a = 100, c = !1, d = e.G, u = e.Event, h = e.Console,
p = e.logUtils, l = 0;
var f, m = !0;
function w(t, i) {
if (h.log("onPlayVideo"),
s && (s.pause(),
s.src = ""),
s = i.video,
1 == m) {
var o = Date.now() - d.beginTime;
d.firstVideoTime = o,
m = !1,
e.trigger("videoOnLoad"),
u.fireEvent(u.HLS_FIRST_PLAY)
}
s.autoplay = !0,
s.defaultMuted = !1,
$("#player-video video").remove(),
$(s).attr("id", "hy-video"),
n.append(s),
clearTimeout(r),
u.fireEvent(u.HIDE_RECOMMEND),
d.vplayer.hideLoading(),
d.isPause = !1,
d.isPlaying = !0
}
function I(t, e) {
h.log("onBrowerPause", t, e),
u.fireEvent(u.SHOW_BROWER_PAUSE_GUIDE),
d.browerPause = !0,
clearTimeout(r)
}
function y(t, e) {
h.log("onStopVideo", e),
d.isPlaying && g()
}
function g() {
clearTimeout(r),
r = setTimeout(S, 2e4)
}
function S() {
u.fireEvent(u.SHOW_RECOMMEND)
}
function v(t, e) {
h.log("onAnchorStop"),
x()
}
function _(t, e) {
h.log("onNoVideo")
}
function T(t, e) {
h.log("onFlvUrlUnavailable"),
x()
}
function R(t, e) {
h.log("onH5PlayerError"),
x()
}
function b(t, e) {
h.log("onPlayStatus", e),
"VIDEO_PLAYING" == e.status && d.isUIPause && u.fireEvent(u.HIDE_BROWER_PAUSE_GUIDE)
}
function P(t, e) {
u.fireEvent(u.DATA_METRIC2, e)
}
function x() {
var t = Date.now();
if (t - l < 1e3)
return !1;
l = t,
u.fireEvent(u.GET_GAMELIVE_HISUPON_REQ)
}
function C(t) {
if (o) {
h.log("重播:" + t.sHlsUrl),
p.addLog("重播流:" + t.sHlsUrl);
var e = t.sHlsUrl;
d.isHttps() && (e = e.replace("http:", "https:")),
f = t.iVideoSyncTime,
h.log("iVideoSyncTime:", f);
var i = {
type: H5Player.HLS,
url: e,
isLive: !1,
liveType: 2,
seekTime: f
};
o.start(i),
g()
}
}
function U() {
d.isPause = !0,
d.isPlaying = !1,
h.log(o),
e.showPlayTip("pause"),
e.setDanmuVisible(!1),
s && ($(s).unbind(),
o.stop())
}
this.init = function (t) {
(n = t.target) || console.warn("%cvideo container undefined.", "font-size:xx-large"),
n = $(n),
function () {
if (!H5Player.isSupported())
return void e.changeToFlash("H5Player not support. ");
o = new H5Player;
var t = parseInt(localStorage.sdkLogLevel);
isNaN(t) || (h.log("logLevel:", t),
o.setLogLevel(t));
o.setConfig(100, ""),
o.setConfig(101, !1),
u.addEvent(u.REPlAY_START_PLAY, C),
o.on(H5Player.Events.VIDEO_PLAY, w),
o.on(H5Player.Events.VIDEO_STOP, y),
o.on(H5Player.Events.ANCHOR_STOP, v),
o.on(H5Player.Events.NO_VIDEO, _),
o.on(H5Player.Events.FLV_URL_UNAVAILABLE, T),
o.on(H5Player.Events.H5_PLAYER_ERROR, R),
o.on(H5Player.Events.PLAY_STATUS, b),
o.on(H5Player.Events.DATA_METRIC2, P),
o.on(H5Player.Events.BROWSER_PAUSE, I),
u.addEvent(u.PAUSE_VIDEO, U),
c && (c = !1,
o.setVolume(.01 * a))
}(),
g()
}
,
this.play = function () {
h.log("play"),
d.vplayer.showLoading(),
u.fireEvent(u.GET_GAMELIVE_HISUPON_REQ)
}
,
this.stopVideo = function () {
}
,
this.pause = U,
this.refresh = function () {
var t = Date.now();
t - i < 1e3 || (i = t,
d.vplayer.showLoading(),
u.fireEvent(u.GET_GAMELIVE_HISUPON_REQ))
}
,
this.switchLine = function (t) {
}
,
this.lowestBitRate = function () {
}
,
this.isLowestBitRate = function () {
}
,
this.getSDKLog = function () {
return o ? o.getLog() : ""
}
,
this.getMetrics = function () {
return {}
}
,
this.getCurrentTime = function () {
return o.getCurrentTime()
}
,
Object.defineProperties(t, {
volume: {
get: function () {
return a
},
set: function (t) {
t = Math.min(t, 100),
t = Math.max(t, 0),
a = t,
o ? o.setVolume(.01 * t) : c = !0
}
}
})
}
},
"7NV2": function (t, e, i) {
var r, n, s, o;
function a(t) {
return (a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
}
: function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
}
)(t)
}
o = function (t) {
return function (e) {
var i = t
, r = i.lib
, n = r.WordArray
, s = r.Hasher
, o = i.algo
, a = []
, c = [];
!function () {
function t(t) {
for (var i = e.sqrt(t), r = 2; r <= i; r++)
if (!(t % r))
return !1;
return !0
}
function i(t) {
return 4294967296 * (t - (0 | t)) | 0
}
for (var r = 2, n = 0; n < 64;)
t(r) && (n < 8 && (a[n] = i(e.pow(r, .5))),
c[n] = i(e.pow(r, 1 / 3)),
n++),
r++
}();
var d = []
, u = o.SHA256 = s.extend({
_doReset: function () {
this._hash = new n.init(a.slice(0))
},
_doProcessBlock: function (t, e) {
for (var i = this._hash.words, r = i[0], n = i[1], s = i[2], o = i[3], a = i[4], u = i[5], h = i[6], p = i[7], l = 0; l < 64; l++) {
if (l < 16)
d[l] = 0 | t[e + l];
else {
var f = d[l - 15]
, m = (f << 25 | f >>> 7) ^ (f << 14 | f >>> 18) ^ f >>> 3
, w = d[l - 2]
, I = (w << 15 | w >>> 17) ^ (w << 13 | w >>> 19) ^ w >>> 10;
d[l] = m + d[l - 7] + I + d[l - 16]
}
var y = r & n ^ r & s ^ n & s
, g = (r << 30 | r >>> 2) ^ (r << 19 | r >>> 13) ^ (r << 10 | r >>> 22)
,
S = p + ((a << 26 | a >>> 6) ^ (a << 21 | a >>> 11) ^ (a << 7 | a >>> 25)) + (a & u ^ ~a & h) + c[l] + d[l];
p = h,
h = u,
u = a,
a = o + S | 0,
o = s,
s = n,
n = r,
r = S + (g + y) | 0
}
i[0] = i[0] + r | 0,
i[1] = i[1] + n | 0,
i[2] = i[2] + s | 0,
i[3] = i[3] + o | 0,
i[4] = i[4] + a | 0,
i[5] = i[5] + u | 0,
i[6] = i[6] + h | 0,
i[7] = i[7] + p | 0
},
_doFinalize: function () {
var t = this._data
, i = t.words
, r = 8 * this._nDataBytes
, n = 8 * t.sigBytes;
return i[n >>> 5] |= 128 << 24 - n % 32,
i[14 + (n + 64 >>> 9 << 4)] = e.floor(r / 4294967296),
i[15 + (n + 64 >>> 9 << 4)] = r,
t.sigBytes = 4 * i.length,
this._process(),
this._hash
},
clone: function () {
var t = s.clone.call(this);
return t._hash = this._hash.clone(),
t
}
});
i.SHA256 = s._createHelper(u),
i.HmacSHA256 = s._createHmacHelper(u)
}(Math),
t.SHA256
}
,
"object" == a(e) ? t.exports = e = o(i("TdfZ")) : (n = [i("TdfZ")],
void 0 === (s = "function" == typeof (r = o) ? r.apply(e, n) : r) || (t.exports = s))
},
"7QxG": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n \n \n
\n \n
下次送礼不再提示
\n
\n 确定\n 取消\n
'
, __filename = "src/tpl/gift/gift-dialog.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n \n \n
\n \n
下次送礼不再提示
\n
\n 确定\n 取消\n
'),
__line = 10;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
"7vau": function (t, e, i) {
t.exports = function (t) {
var e = t.Event
, r = t.G
, n = t.logUtils
, s = t.R
, o = t.taf.HUYA
, a = !1;
function c() {
r.isOBWatch && (a || (r.isUserInfoInited() ? m() : e.addEvent(e.USER_INFO_INITED, m),
e.addEvent(e.SET_PERSPECTIVE, y),
t.addTafListener("1130003", l),
function () {
if (localStorage.obTips)
return;
var t = i("0r9D")();
$("#player-ob-watch-wrap").html(t),
$("#player-ob-watch-wrap").show(),
$(".player-ob-btn").click(u),
localStorage.obTips = !0,
setTimeout(d, 5e3),
s.newHuyaReport({
eid_desc: "展示/新手引导/ob直播间",
eid: "sys/pageshow/tips/oblive",
prop: "",
uid: r.yyuid
})
}(),
a = !0))
}
function d() {
h(),
s.newHuyaReport({
eid_desc: "隐藏/新手引导/ob直播间",
eid: "sys/pagehide/tips/oblive",
prop: "",
uid: r.yyuid
})
}
function u() {
h(),
s.newHuyaReport({
eid_desc: "点击/新手引导/ob直播间",
eid: "usr/click/tips/oblive",
prop: "",
uid: r.yyuid
})
}
function h() {
$("#player-ob-watch-wrap").remove()
}
e.addEvent(e.VIDEO_FIRST_PLAY, c),
c(),
window.testOBNotice = function (t) {
l({
iStatus: t,
lPid: 50077321
})
}
;
var p = 0;
function l(t) {
if (n.addLog("1130003 onHonourOfKingsStatusNotify:" + JSON.stringify(t)),
n.addLog("G.presenterUid:" + r.presenterUid),
r.presenterUid == t.lPid) {
var e = t.iStatus;
if (r.obStatus != e) {
t.lGameTime;
r.obStatus = e,
n.addLog("ob状态改变了 广播 iStatus" + r.obStatus);
var i = 3e3 * Math.random() + 2e3;
2 == r.obStatus && (i += 1e4),
n.addLog("延迟拉流 time:" + i),
clearTimeout(p),
p = setTimeout(f, i)
}
}
}
function f() {
r.streamSetFlag = !0,
n.addLog("拉流" + r.obStatus),
t.vcore.stopVideo("onHonourOfKingsStatusNotify"),
r.isUIPause || r.vplayer.showLoading(),
r.obCurPid = r.presenterUid,
t.getLivingInfo(),
I(),
t.trigger("perspectiveChange", r.obCurrentPerspective),
1 == r.obStatus ? (t.trigger("obMatchBegin"),
m()) : 2 == r.obStatus && t.trigger("obMatchEnd"),
t.trigger("matchStatusChange", {
status: r.obStatus
})
}
function m() {
var e = new o.GetPlayerViewListReq;
e.tUserId = r.userId,
e.lPid = r.presenterUid + "",
t.sendWup2("wupui", "getPlayerViewList", e, w)
}
function w(e) {
r.obPerspectiveList = [],
r.obCurPid = r.presenterUid,
r.obPerspectiveList.push({
pid: r.presenterUid,
name: "上帝视角"
});
for (var i = e.vInfo.value, s = 0; s < i.length; s++) {
var o = i[s]
, a = {
pid: o.lPid,
name: o.sName
};
r.obPerspectiveList.push(a)
}
I(),
r.presenterUid == e.tStatus.lPid && r.obStatus != e.tStatus.iStatus && (r.obStatus = e.tStatus.iStatus,
r.streamSetFlag = !0,
t.vcore.stopVideo("onGetPlayerViewList"),
n.addLog("ob状态改变了 拉取 iStatus" + r.obStatus),
r.isUIPause || r.vplayer.showLoading(),
t.getLivingInfo(),
1 == r.obStatus ? t.trigger("obMatchBegin") : 2 == r.obStatus && t.trigger("obMatchEnd"))
}
function I() {
for (var t = {}, e = 0; e < r.obPerspectiveList.length; e++)
r.obPerspectiveList[e].pid == r.obCurPid && (t.pid = r.obPerspectiveList[e].pid,
t.name = r.obPerspectiveList[e].name);
r.obCurrentPerspective = t
}
function y(e) {
r.obCurPid = e.pid,
I(),
r.streamSetFlag = !0,
t.turnPlayButtonOn(),
t.vcore.stopVideo("setPerspective"),
r.vplayer.showLoading(),
t.getLivingInfo(),
n.addLog("设置视角 G.obCurPid" + r.obCurPid)
}
this.upDateCurrentPerspective = I
}
},
"85+e": function (t, e) {
t.exports = function (t) {
var e = t.taf.HUYA
, i = t.G
, r = t.Event
, n = t.logUtils
, s = t.utils
, o = []
, a = 0;
function c() {
r.removeEvent(r.WEBSOCKET_INITED, c),
r.fireEvent(r.VIDEO_FIRST_PLAY),
d()
}
function d() {
var r = new e.GetVideoHisUponReq;
r.lUid = i.presenterUid,
n.addLog("重播主播uid:" + r.lUid),
t.sendWup2("liveui", "getVideoHisUpon", r, u);
var s = Date.now();
i.livingInfoTime = s
}
function u(e) {
var n = Date.now();
i.livingInfoTime = n - i.livingInfoTime;
var c = e.vHistoryList.value;
if (0 != c.length) {
i.hasVideo = !0;
var d = c[0]
, u = d.iVideoSyncTime
, p = d.sHlsUrl
, l = d.vDefinitions.value;
if (0 == l.length)
return r.fireEvent(r.REPlAY_START_PLAY, {
iVideoSyncTime: u,
sHlsUrl: p
}),
void t.setBitRateList({
list: [{
iBitRate: 2e3,
sDisplayName: "原画"
}],
default: 2e3
});
!function (t) {
o = [];
for (var e = 0, i = t.length; e < i; e++) {
var r = t[e]
, n = r.sDefinition
, a = r.sM3u8
, c = r.sDefName;
o.push({
iBitRate: parseInt(n),
sDisplayName: c,
sM3u8: a
})
}
o.sort(s.sortCompare("iBitRate"))
}(l),
a = function (t) {
for (var e = 0, i = o.length; e < i; e++) {
if (o[e].iBitRate == t)
return !0
}
return !1
}(a) ? a : parseInt(l[0].sDefinition),
t.setBitRateList({
list: o,
default: a
}),
h(a, u)
}
}
function h(e, n) {
i.vplayer.showLoading();
for (var s = 0, c = o.length; s < c; s++) {
var d = o[s]
, u = d.iBitRate
, h = d.sM3u8;
if (u == e) {
a = u;
var p = n || t.getCurrentTime();
r.fireEvent(r.REPlAY_START_PLAY, {
iVideoSyncTime: p,
sHlsUrl: h
});
break
}
}
}
i.isReplay && ($("#videoContainer").addClass("mod-replay"),
i.vplayer.showLoading(),
r.addEvent(r.WEBSOCKET_INITED, c),
r.addEvent(r.GET_GAMELIVE_HISUPON_REQ, d)),
this.switchBitrate = h
}
},
"8c1c": function (t, e, i) {
t.exports = function (t) {
var e, r, n = !1, s = 0, o = 1, a = 0, c = "//www.huya.com/cache.php?m=Game&do=ajaxGetProgramList&pid=",
d = 0, u = 0, h = t.G, p = (t.Event,
t.R,
t.Console), l = t.ENV, f = t.utils;
function m() {
if (l.isShowMmsProgramList) {
var t = Date.now();
t - s < 2e3 || (s = t,
$.ajax({
url: c,
type: "GET",
dataType: "jsonp",
data: {}
}).done((function (t) {
p.log("playlist", t),
t && 200 == t.status && t.data && t.data.length > 0 && (w(),
R(t.data),
U())
}
)))
}
}
function w() {
if (!n) {
var t = i("p2hc")()
, s = $(t);
$("#player-wrap").append(s),
r = $("#play-list-btn"),
e = $(".play-list-scroll-bar"),
(r = $("#play-list-btn")).show(),
$(".play-list-close").click(T),
r.click(_),
$(videoContainer).mousemove(I),
$(videoContainer).mouseleave(y),
$(videoContainer).mousestop(g),
n = !0
}
}
function I() {
v(2),
S()
}
function y() {
clearTimeout(a),
v(1)
}
function g() {
S()
}
function S() {
clearTimeout(a),
a = setTimeout((function () {
v(1)
}
), 2e3)
}
function v(t) {
o != t && (r.removeClass("play-list-btn play-list-btn-hover"),
2 == t ? (r.addClass("play-list-btn-hover"),
r.find("span").text("播放列表")) : (r.addClass("play-list-btn"),
r.find("span").text("")),
o = t)
}
function _() {
$(".play-list-panel").show(),
m()
}
function T() {
$(".play-list-panel").hide()
}
function R(t) {
var e = $(".play-list-container").find("ul");
d = 0,
u = 0,
e.empty();
for (var i = 0; i < t.length; i++) {
var r = t[i]
, n = null;
r.isPlay ? (n = $('
'),
d = r.playTime) : (n = $('
'),
d && !u && (u = r.playTime,
P()));
var s = f.setLongString(r.videoName, 12);
n.find("span").text(s),
f.getStringLength(s) > 12 && n.find("span").attr("title", r.videoName),
n.appendTo(e)
}
}
2135 == l.gameId && (c += h.presenterUid,
m());
var b = 0;
function P() {
clearInterval(b),
b = setInterval(x, 1e3),
x()
}
function x() {
var t = (new Date).getTime()
, e = Math.ceil((t - d) / 1e3)
, i = Math.ceil((u - d) / 1e3);
e > i && (clearInterval(b),
setTimeout(m, 2e3),
e = i),
$(".play-list-container").find("ul").find(".list-item-skr p").text(C(e) + "/" + C(i))
}
function C(t) {
var e = t / 3600 >> 0
, i = t % 3600 / 60 >> 0
, r = t % 60;
return (e = e < 10 ? "0" + e : "" + e) + ":" + (i = i < 10 ? "0" + i : "" + i) + ":" + (r = r < 10 ? "0" + r : "" + r)
}
function U() {
var t = $(".play-list-container")
, i = $(".play-list-container ul")
, r = t.height()
, n = i.height();
if (n > r && n) {
e.show();
var s = n - r;
e.on("mousedown", (function (i) {
var n = i.pageY - parseInt(e.css("top")) + 47
, o = r - 150;
return $(document).on("mousemove", (function (i) {
var r = i.pageY - n;
return r < 0 && (r = 0),
r > o && (r = o),
e.css("top", r + 47),
t.scrollTop(r * s / o),
!1
}
)),
$(document).on("mouseup", (function () {
$(document).off("mousemove").off("mouseup")
}
)),
!1
}
)),
t.on("mousewheel", (function (i, n) {
var o = t.scrollTop();
return t.scrollTop(o - 20 * n),
o = t.scrollTop(),
e.css("top", o / s * (r - 150) + 47),
!1
}
))
}
}
window.testPlayList = function () {
w(),
R([{
playTime: 0,
videoName: "九品芝麻官"
}, {
playTime: 1,
videoName: "九品芝麻官2"
}]),
U()
}
}
},
"8hAE": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n
\n \t\n \t加载中...\n
\n \n \n \n
'
, __filename = "src/tpl/ad/banner-ad.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n
\n \t\n \t加载中...\n
\n \n \n \n
'),
__line = 9;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
"8oUx": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n \n
\n \n VR直播正快马加鞭地赶来嗷~\n
\n
\n'
, __filename = "src/tpl/vr/no-vr-stream-tip.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n \n
\n \n VR直播正快马加鞭地赶来嗷~\n
\n
\n'),
__line = 8;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
"9ZdH": function (t, e, i) {
t.exports = function (t, e) {
var r = this
, n = null
, s = !1;
this.isActive = !1;
var o = t.G
, a = t.Event
, c = t.R
, d = t.ISDEBUG
, u = t.taf.HUYA;
function h(t) {
o.bDirector ? p() : l(t)
}
function p() {
var e = new u.GetLinkMicPresenterInfoReq;
e.tId = o.userId,
e.lUid = o.presenterUid,
t.sendWup2("liveui", "getLinkMicPresenterListByUid", e, l)
}
function l(t) {
o.bDirector = t.bDirector;
var c = t.vLMPresenterInfos.value;
if (r.isActive = 2 == t.iLinkMicStatus && c.length > 1,
n.empty(),
r.isActive && !s)
for (var d = i("pep2")(), u = 0, h = c.length; u < h; u++) {
var p = c[u];
if (!(p.lChannelId <= 0) && p.lUid != o.presenterUid) {
var l = $(d);
l.attr("lYYId", p.lYYId),
l.attr("iRoomId", p.iRoomId),
l.find(".head-type span").text("连麦"),
l.find(".nick-name").text(p.sNick),
l.find(".head-type i").addClass("head-type-mic"),
l.find("img").attr("src", p.sAvatarUrl),
l.click(f),
n.append(l)
}
}
a.fireEvent(a.LINK_MIC_STATE_CHANGE, r.isActive),
e.layout()
}
function f(t) {
t.stopPropagation();
var e = $(this).attr("iRoomId")
, i = $(this).attr("lYYId")
, r = "//www.huya.com/" + e;
d && (r = "//test-www.huya.com/" + e),
0 == e && (r = "//www.huya.com/yy/" + i),
window.open(r),
c.huyuReport("click/zhibo/lianmai")
}
t.addTafListener("42008", h),
n = $("#player-link-mic ul"),
a.addEvent(a.USER_INFO_INITED, p),
this.isPkActive = function (t) {
(s = t) && n.empty()
}
,
window.testLinkMic = function (t) {
for (var e = {
iLinkMicStatus: 2
}, i = [], r = 0; r < t; r++) {
var n = new u.LMPresenterInfo;
n.lChannelId = 1,
n.lUid = 1,
n.sNick = "用户的名字会很长" + r,
n.sAvatarUrl = "https://huyaimg.msstatic.com/avatar/1044/81/920e0ef057dfc1a949524381d8c812_180_135.jpg",
i.push(n)
}
e.vLMPresenterInfos = {},
e.vLMPresenterInfos.value = i,
l(e)
}
}
},
"9quj": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n \n
\n \n 应版权方要求,你所在的区域不能观看\n
\n
\n'
, __filename = "src/tpl/others/copyright-tip.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n \n
\n \n 应版权方要求,你所在的区域不能观看\n
\n
\n'),
__line = 8;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
"9r+K": function (t, e) {
t.exports = function (t, e, i) {
var r = t.G
, n = t.Console
, s = t.Event
, o = t.VER
, a = t.utils
, c = 0
, d = 0
, u = 0
, h = 0
, p = 0
, l = 0
, f = 0
, m = 0
, w = 0
, I = !1
, y = 0
, g = 0
, S = 0
, v = 0
, _ = 0
, T = 0
, R = {
chrome: 22e5,
edge: 45e5,
safari: 45e5,
sogou: 15e5,
firefox: 15e5,
qq: 15e5,
"360ee": 15e5
};
r.dropDanmuOpen = !0,
localStorage.closeFPSReport || setTimeout((function () {
u = M(),
p = M(),
I = !0,
E(),
g = 0,
y = 0,
b(),
setInterval((function () {
U()
}
), 2e4),
r.checkLowCpu && function () {
var t = !1;
if (window.TT_ENV_DETECTOR && window.TT_ENV_DETECTOR.browser) {
var e = window.TT_ENV_DETECTOR.browser.name
, i = localStorage.getItem("benchmark-cpuScore")
, r = R[e];
n.log("机器评分 当前机器评分,中高端浏览器标准", e, i, r),
r && i && (t = parseInt(i) < r)
}
return t
}() && i.closeDanmuMaskInLowFPS()
}
), 5e3);
var b = function t() {
h += 1;
var e = M()
, i = e - p;
if (p = e,
c += i || 0,
L(i),
c < 1e3)
window.requestAnimationFrame(t);
else {
if ("hidden" == r.visibilityState)
return E(),
void window.requestAnimationFrame(t);
c = 0,
v = 0;
var n = 0;
if (n = Math.round(1e3 / i),
e > 1e3 + u && (n = Math.round(1e3 * h / (e - u)),
h = 0,
u = e),
g += n,
l += n,
w += r.danmuShowCount,
r.danmuPerformanceReport = !0,
d++,
r.dropDanmuOpen && d >= 5) {
d = 0;
var s = parseInt(g / 5)
, o = Number(y / 5);
s > 55 || o < 2 ? r.filterDanmuRatio = 0 : s < 50 && o > 2 && (r.filterDanmuRatio = 0 + .02 * (50 - s)),
g = 0,
y = 0
}
window.requestAnimationFrame(t)
}
}
, P = 0
, x = 0
, C = a.getCookie("__yamid_new")
, U = function () {
if ("hidden" != r.visibilityState) {
if (!(l <= 0 || l > 2e5)) {
var t = parseInt(l / 2e4 * 1e3)
, e = Number(f / 2e4 * 1e3).toFixed(2)
, a = Number(m / 2e4 * 1e3).toFixed(2)
, c = Number(e) + Number(a)
, d = Number(w / 2e4 * 1e3).toFixed(2)
, u = Number(r.dropDanmuCount / 2e4 * 1e3).toFixed(2)
, h = S
, p = r.videoBadQualityCount;
P++,
x += l,
P >= 5 && (P = 0,
k()),
E(),
n.log("上报 fps:".concat(t, ",danmunormal:").concat(e, ",danmutv:").concat(a, ",danmutotal:").concat(c, ",danmurender:").concat(d, ",danmudrop:").concat(u, ",lagcount:").concat(h, ",videobad:").concat(p));
var I = r.isShowDanmu ? i.getAreaIndex() + 1 : 0
, y = {
sMetricName: "fed.main_room_fps",
vDimension: {
pagegid: N(),
version: o,
danmumask: r.hasDanmuMask ? 1 : 0,
fullscreen: r.isFullscreen ? 1 : 0,
mid: C || "",
oexp: r.mpExperiment,
danmuarea: I,
lagcount: h
},
vField: {
fps: t,
danmunormal: e,
danmutv: a,
danmutotal: c,
danmurender: d,
danmudrop: u,
videobad: p
}
};
s.fireEvent(s.DATA_METRIC2, [y]),
A(t)
}
} else
E()
}
, k = function () {
var t = parseInt(x / 100)
, e = {
sMetricName: "fed.main_room_fps_100",
vDimension: {
pagegid: N(),
version: o
},
vField: {
fps: t
}
};
s.fireEvent(s.DATA_METRIC2, [e]),
n.log("100s上报 fps:".concat(t)),
x = 0
}
, L = function (t) {
if ((v += t || 0) > 200) {
var e = r.vplayer.getCurrentTime();
e ? (e == _ && T != e && r.videoBadQualityCount++,
T = _,
_ = e) : (T = 0,
_ = 0),
v = 0
}
}
, N = function () {
return performanceInfo && performanceInfo.pageGid || 0
}
, E = function () {
l = 0,
f = 0,
m = 0,
w = 0,
r.dropDanmuCount = 0,
S = 0,
r.videoBadQualityCount = 0,
v = 0,
c = 0
}
, M = function () {
return performance && performance.now() || Date.now()
}
, A = function (t) {
t < 20 && r.hasDanmuMask && i.closeDanmuMaskInLowFPS()
};
this.updateCount = function (t) {
I && (1 == t ? f++ : m++,
y++)
}
;
this.setPerformanceReportTime = function (t, e, i) {
var r = e - t - 1e3 * i;
n.log("卡顿偏差时间", r),
r > 200 && r < 1e4 && S++
}
}
},
A3DX: function (t, e, i) {
t.exports = function (t, e) {
var r, n, s, o, a, c, d, u, h = -1, p = -1, l = "", f = !1, m = "", w = "", I = e.utils, y = e.G,
g = e.Event, S = e.R, v = -1, _ = null, T = !1, R = !1, b = e.taf.HUYA;
function P() {
R = !0,
y.followList && (0 == p || n || (null == _ && (_ = $(i("zVS7")()),
r.append(_),
_.find(".accompany-subscribe-btn").click(U),
_.find(".accompany-subscribed-btn").click(U),
_.find(".accompany-order-btn").click(L)),
!function () {
if (!y.accMasterData)
return !1;
var t = y.accMasterData.vMaster.value;
for (var e in t)
if (t[e].tUserBase.lUid == p)
return !0;
return !1
}() ? (_.find(".accompany-order-btn").css("display", "none"),
_.css("height", "33px")) : (_.find(".accompany-order-btn").css("display", "flex"),
_.css("height", "60px")),
-1 == v ? function () {
var t = new b.SubscribeStatusReq;
t.tId = y.userId,
t.tFrom.iType = 1,
t.tFrom.sKey = y.yyuid,
t.tTo.iType = 2,
t.tTo.sKey = p,
y.vplayerUI.sendWup2("liveui", "getSubscribeStatus", t, x)
}() : _.show(),
S.newHuyaReport({
eid_desc: "用户/鼠标悬停/大神头像/派单厅",
eid: "usr/hover/masterhead/dispatchroom",
prop: JSON.stringify({
master_uid: p
}),
uid: y.yyuid
})))
}
function x(t) {
if (v = t.iStatus,
k(),
y.followList) {
var e = y.followList.add(y.yyuid, p, (function () {
var t = e.target
, i = e.state;
t == p && (1 == (v = 1 == i ? 1 : 0) && T && (T = !1,
g.fireEvent(g.SHOW_COMMON_TOAST, "订阅成功")),
k())
}
));
y.presenterUid != p && (1 == v ? e._on() : e._off())
}
R && _.show()
}
function C() {
R = !1,
_ && _.hide()
}
function U() {
S.newHuyaReport({
eid_desc: "用户/点击/大神头像旁的关注按钮/派单厅",
eid: "usr/click/masterheadfollowbtn/dispatchroom",
prop: JSON.stringify({
master_uid: p
}),
uid: y.yyuid
}),
C(),
y.isLogin ? 0 == v ? (T = !0,
y.followList.get(p).on()) : y.followList.get(p).off() : e.popLogin()
}
function k() {
1 == v ? (_.find(".accompany-subscribed-btn").css("display", "flex"),
_.find(".accompany-subscribe-btn").css("display", "none")) : (_.find(".accompany-subscribed-btn").css("display", "none"),
_.find(".accompany-subscribe-btn").css("display", "flex"))
}
function L() {
C(),
S.newHuyaReport({
eid_desc: "用户/点击/大神头像旁的下单按钮/派单厅",
eid: "usr/click/masterheadorderbtn/dispatchroom",
prop: JSON.stringify({
master_uid: p
}),
uid: y.yyuid
}),
y.isLogin ? g.fireEvent(g.SHOW_ACCOMPANY_PANEL, {
uid: p
}) : e.popLogin()
}
function N() {
0 != p || n || t.showTips("下载小鹿APP,上麦和主播互动")
}
u = i("3PPS")(),
(r = $(u)).appendTo("#make-friend .make-friend-head-container"),
r.click(N),
y.isPeiWan && r.hover(P, C),
c = r.find(".make-friend-seat-url"),
d = r.find(".make-friend-source-url"),
this.showWaveEffect = function () {
f || o || a || (f = !0,
r.find("#wave-effect").show(),
setTimeout((function () {
r.find("#wave-effect").hide(),
f = !1
}
), 2e3))
}
,
this.testCharm = function (t) {
charm = countsTransform(t),
r.find(".make-friend-charm span").text(charm)
}
,
this.setData = function (t) {
h = t.iPos,
o = t.iSilence,
a = t.iMute,
s = t.iGender;
var e = t.sName
, i = t.mpContext.value;
"" == t.sNick && (t.sNick = e);
var u = I.setLongString(t.sNick, 5)
, f = i.super_fans || 0;
r.find(".make-friend-nick").css("color", f ? "#FF4C66" : "#FFF"),
r.find(".make-friend-nick").text(u);
var g = t.sSeatUrl || "";
g && m != g && (m = g,
c.attr("src", m)),
c.css("display", "" != g ? "block" : "none");
var S = t.sSourceUrl || "";
S && w != S && (w = S,
d.attr("src", w)),
d.css("display", "" != S ? "block" : "none");
var v = t.sCharm || 0;
v = I.countsTransform(v),
r.find(".make-friend-charm span").text(v),
r.find(".make-friend-charm").css("display", "" != t.sCharm ? "block" : "none"),
r.find(".make-friend-close-mic").css("display", t.lUid && (o || a) ? "block" : "none"),
r.css("cursor", t.iLocked || t.lUid ? "default" : "pointer"),
p == t.lUid && n == t.iLocked || (p = t.lUid,
n = t.iLocked,
r.removeClass("make-friend-item-noraml make-friend-item-lock make-friend-item-empty"),
0 != p ? (r.addClass("make-friend-item-noraml"),
s ? (r.find(".wave.ripple .circle").css("border-color", "#96caff"),
r.find(".make-friend-head").css("border", "2px solid #96caff")) : (r.find(".wave.ripple .circle").css("border-color", "#ffa5f0"),
r.find(".make-friend-head").css("border", "2px solid #ffa5f0"))) : (r.find(".make-friend-head").css("border", "2px solid rgba(0, 0, 0, 0.2)"),
n ? r.addClass("make-friend-item-lock") : r.addClass("make-friend-item-empty")));
var _ = r.find(".make-friend-head img");
p ? ("" == t.sAvatarUrl && (t.sAvatarUrl = y.H5ROOT + "src/img/make-friend/default-head.png"),
l != t.sAvatarUrl && (l = t.sAvatarUrl,
_.attr("src", l)),
_.show()) : _.hide()
}
,
this.item = function () {
return r
}
,
this.pos = function () {
return h
}
,
this.uid = function () {
return p
}
}
},
A6Vu: function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
'
, __filename = "src/tpl/notice/danmu-effect.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
'),
__line = 18;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
AAUK: function (t, e) {
t.exports = function (t) {
var e = 0
, i = 0
, r = 0
, n = 0
, s = !1;
function o() {
e = 0,
i = 0,
r = 0,
s = !1,
clearInterval(n),
a(!1)
}
function a(e) {
e ? (c(),
t.removeClass("normal"),
t.addClass("combo")) : (t.text("赠送"),
t.addClass("normal"),
t.removeClass("combo"))
}
function c() {
s && (t.text("连送(" + r + ")"),
--r < 0 && o())
}
this.setCombo = function (t, o) {
e = t,
i = parseInt(o),
r = 31,
s = !0,
a(!0),
clearInterval(n),
n = setInterval(c, 1e3),
c()
}
,
this.clearCombo = o,
this.setNum = function (t, n) {
a(s = e == t && i > 0 && i == n && r > 0)
}
,
this.getInfo = function () {
return {
num: i,
propsId: e
}
}
}
},
AZov: function (t, e, i) {
t.exports = function (t) {
var e, r = !1, n = t.G, s = null;
function o(t) {
n.isShieldingEffect || (r || (r = !0,
c(t.iEffectType, t.sEffectWord)))
}
t.addTafListener("1025302", o);
var a = 0;
function c(t, n) {
var o = i("A6Vu")();
e = $(o),
$("#videoContainer").append(e),
null == s && (s = i("676x"));
var a = $("#danmu-effect-1")
, c = $("#danmu-effect-2")
, p = $("#danmu-effect-3");
$(".word-item").text(n),
e.find(".bg").addClass("bg-type-" + t),
setTimeout((function () {
e.show(),
u(a, -100, 0, null, 0, 0),
u(p, -100, 0, null, 0, 0),
u(c, 100, 0, null, 0, 0),
setTimeout((function () {
h(a, d, .1, .1),
h(c, d, .1, .1),
h(p, d, .1, .1)
}
), 3500)
}
), 1e3),
setTimeout((function () {
e.remove(),
r = !1
}
), 5500)
}
function d(t) {
t.remove()
}
function u(t, e, i, r, n, s) {
TweenLite.killTweensOf(t),
TweenLite.fromTo(t, .5, {
left: e,
opacity: s,
ease: Back.ease
}, {
left: i,
opacity: 1,
ease: Back.ease,
onComplete: r
}).delay(n)
}
function h(t, e, i, r) {
TweenLite.killTweensOf(t),
TweenLite.to(t, r, {
opacity: .2,
ease: Back.ease
}).delay(i),
TweenLite.to(t, r, {
opacity: 1,
ease: Back.ease
}).delay(2 * i),
TweenLite.to(t, r, {
opacity: .2,
ease: Back.ease
}).delay(3 * i),
TweenLite.to(t, r, {
opacity: 1,
ease: Back.ease
}).delay(4 * i),
TweenLite.to(t, .5, {
opacity: 0,
ease: Back.ease,
onComplete: e,
onCompleteParams: [t]
}).delay(5 * i)
}
window.danmuEffect = function (t) {
c(t, "测试的文字"),
clearInterval(a),
a = setInterval(c, 6e3, t, "测试的文字")
}
}
},
B9Qt: function (t, e) {
t.exports = function (t) {
var e = t.taf
, i = t.Event
, r = t.G
, n = t.R
, s = e.HUYA
, o = null
, a = 1
, c = parseInt(localStorage.getItem("msgConnectBanner")) || 0;
function d() {
if (!r.isLogin)
return i.fireEvent(i.SHOW_COMMON_TOAST, "请登录后设置屏蔽"),
void t.popLogin();
!function (e) {
var i = new s.SetMessageConnectStatusReq;
i.tId = r.userId,
i.lPid = r.presenterUid,
i.iStatus = e,
t.sendWup2("wupui", "setMessageConnectStatus", i, l)
}(1 == a ? 2 : 1);
var e = {
screen_type: "horizontal",
interflow_status: 1 == a ? 1 : 0,
type: r.spliteSceenType,
"multi-screen_id": r.splitScreenId
};
n.newHuyaReport({
eid_desc: "点击弹幕互通按钮",
eid: "click/interflow",
prop: JSON.stringify(e)
})
}
function u() {
2 == a ? (o.removeClass("danmu-switch-btn-hide"),
o.addClass("danmu-switch-btn-show")) : (o.removeClass("danmu-switch-btn-show"),
o.addClass("danmu-switch-btn-hide"))
}
function h() {
var e = new s.GetMessageConnectStatusReq;
e.tId = r.userId,
e.lPid = r.presenterUid,
e.lUid = r.yyuid,
t.sendWup2("wupui", "getMessageConnectStatus", e, p)
}
function p(e) {
var r = e.iCode
, n = e.sMsg
, s = e.iStatus;
0 == r ? (a = s,
u(),
t.trigger("updateMsgConnectStatus", {
status: a
})) : i.fireEvent(i.SHOW_COMMON_TOAST, n)
}
function l(e) {
var r = e.iCode
, n = e.sMsg;
0 == r ? (a = 1 == a ? 2 : 1,
u(),
t.trigger("updateMsgConnectStatus", {
status: a
})) : i.fireEvent(i.SHOW_COMMON_TOAST, n)
}
r.isLogin && (r.isUserInfoInited() ? h() : i.addEvent(i.USER_INFO_INITED, h)),
(o = $(".danmu-connect-set").find(".danmu-switch-btn")).click(d),
setTimeout((function () {
var t = {
interflow_status: 1 == a ? 1 : 0,
"multi-screen_id": r.splitScreenId
};
n.newHuyaReport({
eid_desc: "直播间状态统计",
eid: "state/liveroom",
prop: JSON.stringify(t)
})
}
), 3e3);
var f = null;
this.getMsgConnectData = function (t) {
var e = t.iFlag
, i = t.sPrefix;
return e && i ? t : null
}
,
this.showMsgConnectBanner = function () {
if (!(c >= 3) && null == f) {
f = $('
本直播间当前已开启弹幕互通,各位水友们要友好交流哦~
');
var t = $("#player-wrap").width();
f.css({
transition: "transform 10s linear",
transform: "translateX(" + t + "px)"
}),
$("#player-wrap").append(f);
var e = f.width() + 5;
f.css({
transform: "translateX(" + -e + "px)"
});
var i = parseInt(localStorage.msgConnectBanner) || 0;
i++,
localStorage.msgConnectBanner = i,
f.bind("transitionend webkitTransitionEnd", (function () {
f.unbind(),
f.remove()
}
))
}
}
,
this.isMsgConnectClose = function () {
return 2 == a
}
}
},
BeMa: function (t, e, i) {
var r, n, s;
function o(t) {
return (o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
}
: function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
}
)(t)
}
!function (a, c) {
"object" == o(e) ? t.exports = e = c(i("TdfZ")) : (n = [i("TdfZ")],
void 0 === (s = "function" == typeof (r = c) ? r.apply(e, n) : r) || (t.exports = s))
}(0, (function (t) {
var e, i, r;
i = (e = t).lib.Base,
r = e.enc.Utf8,
e.algo.HMAC = i.extend({
init: function (t, e) {
t = this._hasher = new t.init,
"string" == typeof e && (e = r.parse(e));
var i = t.blockSize
, n = 4 * i;
e.sigBytes > n && (e = t.finalize(e)),
e.clamp();
for (var s = this._oKey = e.clone(), o = this._iKey = e.clone(), a = s.words, c = o.words, d = 0; d < i; d++)
a[d] ^= 1549556828,
c[d] ^= 909522486;
s.sigBytes = o.sigBytes = n,
this.reset()
},
reset: function () {
var t = this._hasher;
t.reset(),
t.update(this._iKey)
},
update: function (t) {
return this._hasher.update(t),
this
},
finalize: function (t) {
var e = this._hasher
, i = e.finalize(t);
return e.reset(),
e.finalize(this._oKey.clone().concat(i))
}
})
}
))
},
BlJU: function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n \n \n \n \n
'
, __filename = "src/tpl/gift/ext-gift-tip.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n'
, __filename = "src/tpl/others/secret.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n\t直播间上锁了哟,请输入密码进入\n\t\n\t提交\n\t
\n\t\n\t
密码不正确
\n\t
\n
\n'),
__line = 10;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
DcsG: function (t, e, i) {
t.exports = function (t, e) {
var r = this
, n = null;
this.isActive = !1;
var s = t.G
, o = t.Event
, a = t.R
, c = t.ISDEBUG
, d = (t.Console,
t.utils,
t.taf)
, u = d.HUYA
, h = d.Taf;
t.addTafListener("1500001", l),
t.addTafListener("1500002", l),
s.isUserInfoInited() ? f() : o.addEvent(o.USER_INFO_INITED, f);
var p = 0;
function l(t) {
var e = 1e3 * t.iRandomDelay * Math.random();
clearTimeout(p),
p = setTimeout(f, e)
}
function f() {
var e = new u.GetSplitScreenListReq;
e.tId = s.userId,
e.lPid = s.presenterUid,
t.sendWup2("wupui", "getSplitScreenList", e, m)
}
function m(t) {
var o = t.bcode
, c = t.mpItems;
if (!(o < 0)) {
for (var d in r.isActive = !1,
n && n.empty(),
function (t) {
for (var e in s.spliteSceenType = 0,
s.splitScreenId = 0,
t)
for (var i = t[e].value, r = 0, n = i.length; r < n; r++) {
var o = i[r]
, a = o.lUid;
o.sSplitScreenId;
if (a == s.presenterUid)
return void (s.spliteSceenType = e)
}
}(c.value),
c.value)
if (2 == d || 3 == d) {
I();
for (var u = c.value[d].value, h = i("pep2")(), p = 0, l = u.length; p < l; p++) {
var f = u[p]
, m = f.lUid
, y = f.sNick
, g = f.sAvatarUrl
, S = f.iRoomId
, v = f.sSplitScreenId;
if (m != s.presenterUid) {
var _ = $(h);
_.attr("iRoomId", S),
_.attr("clickUid", m),
_.attr("type", d),
_.attr("id", v),
_.find(".nick-name").text(y),
2 == d ? (_.find(".head-type").addClass("head-zd-style"),
_.find(".head-type span").text("组队"),
_.find(".head-type i").addClass("head-type-zd")) : (_.find(".head-type").addClass("head-zc-style"),
_.find(".head-type span").text("撞车"),
_.find(".head-type i").addClass("head-type-zc")),
_.find("img").attr("src", g),
_.click(w),
n.append(_),
r.isActive = !0;
var T = {
pid: s.presenterUid,
click_pid: m,
type: d,
id: v
};
a.newHuyaReport({
eid_desc: "展示/组队撞车切换入口/直播间",
eid: "show/team_anchor_entry/liveroom",
prop: JSON.stringify(T)
})
}
}
}
e.layout()
}
}
function w(t) {
t.stopPropagation();
var e = $(this).attr("iRoomId")
, i = $(this).attr("id")
, r = $(this).attr("type")
, n = $(this).attr("clickUid");
if (0 != e) {
var o = "//www.huya.com/" + e;
c && (o = "//test-www.huya.com/" + e),
window.open(o);
var d = {
pid: s.presenterUid,
click_pid: n,
type: r,
id: i
};
a.newHuyaReport({
eid_desc: "点击/组队撞车切换入口/直播间",
eid: "click/team_anchor_entry/liveroom",
prop: JSON.stringify(d)
})
}
}
function I() {
if (null == n) {
var t = $("
");
$("#player-left-head").prepend(t),
n = $("#player-split-screen ul")
}
}
window.testSplitScreen = function () {
var t = new u.GetSplitScreenListRsp;
t.bcode = 0;
for (var e = new h.Vector, i = 0; i < 5; i++) {
var r = new u.SplitScreenItem;
r.lUid = 1,
r.sChannelTitle = "队名",
r.sNick = "用户的名字会很长" + i,
r.teamType = i > 2 ? 2 : 1,
r.sAvatarUrl = "https://huyaimg.msstatic.com/avatar/1044/81/920e0ef057dfc1a949524381d8c812_180_135.jpg",
e.value.push(r)
}
t.mpItems.value[2] = e,
m(t)
}
}
},
"Dl3+": function (t, e, i) {
t.exports = function t(e) {
var r = e.ENV;
function n(t) {
TweenMax.killTweensOf(t[0]),
TweenMax.to(t[0], .12, {
scale: 1.5,
delay: .3,
onComplete: s,
onCompleteParams: [t]
})
}
function s(t) {
TweenMax.killTweensOf(t[0]),
t.remove()
}
i("676x"),
this.play = function (e, s, o) {
var a = function () {
var e = t.id || 0;
return t.id = ++e
}()
, c = i("nR6k")({
id: a,
icon: o,
num: s
})
, d = $(c)
, u = $(r.idDom)
, h = $(e).offset()
, p = u.offset()
, l = h.left - p.left + 10
, f = h.top - p.top + 12;
d.css({
left: l + "px",
top: f + "px"
}),
u.append(d);
var m = (u.width() >> 1) - 18;
!function (t, e) {
TweenMax.to(t[0], .4, {
delay: .1,
bezier: e,
onComplete: n,
onCompleteParams: [t]
})
}(d, [{
left: l + .1 * (m - l),
top: f - 100
}, {
left: l + .6 * (m - l),
top: f - 260
}, {
left: m,
top: u.height() - 300
}])
}
}
},
Dstj: function (t, e, i) {
var r = i("gPcb")
, n = i("YJXF");
t.exports = function (t) {
var e, i, s, o, a, c, d;
this.show = function () {
a = !0,
e && (e.style.display = "block");
i.style.display = "block",
o.toCenter(),
l(),
c && c()
}
,
this.hide = h,
this.toFront = l,
Object.defineProperties(this, {
isShow: {
get: function () {
return a
}
},
onShow: {
set: function (t) {
c = t
}
},
onHide: {
set: function (t) {
d = t
}
}
});
var u = {
id: "",
title: "",
mask: !0,
htmlText: ""
};
function h(t) {
a = !1,
n.stopPropagation(t),
e && (e.style.display = "none"),
i.style.display = "none",
d && d()
}
function p() {
o.toCenter()
}
function l(t) {
n.stopPropagation(t),
e && o.container.appendChild(e),
o.container.appendChild(i)
}
!function () {
for (var a in t)
u[a] = t[a];
var c = '
' + u.title + '
' + u.htmlText + "
";
$("#videoContainer").append(c),
function () {
var t = "#player-panel-" + u.id;
e = document.querySelector("#player-mask-" + u.id),
i = document.querySelector(t),
s = document.querySelector(t + " .player-panel-close"),
$(s).click(h),
e && $(e).click(n.stopPropagation);
var a = i.getElementsByTagName("h2")[0];
$(a).bind("mousedown", l),
o = new r(i, {
limit: !1,
handle: a,
container: $("#videoContainer")[0]
}),
$("#player-video").resize(n.throttle(p, 200))
}(),
l()
}()
}
},
DxBr: function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n \n
\n \n \n
'
, __filename = "src/tpl/matchreplay/match-replay-panel-element-wrap.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n \n
\n \n \n
'),
__line = 6;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
Eadi: function (t, e, i) {
t.exports = function (t, e) {
var r = this
, n = null
, s = !1
, o = null;
this.isActive = !1;
var a = t.G
, c = t.Event
, d = t.R
, u = t.Console
, h = t.ISDEBUG
, p = t.taf.HUYA;
function l(t) {
s || (w(t.vPidList.value, !1),
u.log("查房通知", t))
}
function f() {
var e = new p.GetCurCheckRoomStatusReq;
e.tUserId = a.userId,
e.lPid = a.presenterUid,
t.sendWup2("presenterui", "GetCurCheckRoomStatus", e, m)
}
function m(t) {
w(t.vPidList.value, !1),
u.log("查房查询", t)
}
function w(t, c) {
if (r.isActive = !1,
o.empty(),
t.length > 0 && ((n = function (t) {
for (var e = 0; e < t.length; e++) {
var i = t[e];
if (i.lPid == a.presenterUid)
return i
}
return null
}(t)) || c)) {
var d;
if (c || (t = function (t, e) {
for (var i = [], r = 0; r < t.length; r++) {
var n = t[r];
n.lTopCid <= 0 || n.lPid == e.lPid || 1 == e.iType && 2 == n.iType && i.push(n)
}
return i
}(t, n)),
0 == t.length && localStorage.chatroom) {
var u = JSON.parse(localStorage.chatroom);
u.curpid == a.presenterUid && (d = u),
s = !0
} else
t.length > 0 && (d = t[0]);
if (!d)
return;
var h = i("pep2")()
, p = $(h);
p.attr("lYYId", d.lYYId),
p.attr("iRoomId", d.lRoomId),
p.attr("lToPid", d.lPid);
var l = 0 == t.length ? "回家" : "查房";
p.find(".head-type span").text(l),
p.find(".nick-name").text(d.sNickName),
p.find(".head-type i").addClass("head-type-room"),
p.find("img").attr("src", d.sIconUrl),
p.click(I),
o.append(p),
r.isActive = !0
}
e.layout()
}
function I(e) {
e.stopPropagation();
var i = $(this).attr("iRoomId")
, r = $(this).attr("lYYId")
, s = $(this).attr("lToPid")
, o = "//www.huya.com/" + i;
h && (o = "//test-www.huya.com/" + i),
0 == i && (o = "//www.huya.com/yy/" + r);
var c = new p.CKRoomUserEnterReq;
c.tUserId = a.userId,
c.lFromPid = a.presenterUid,
c.lToPid = s,
t.sendWup2("presenterui", "CKRoomUserEnter", c, y),
n.curpid = s,
localStorage.chatroom = JSON.stringify(n),
window.open(o),
d.huyuReport("click/zhibo/lianmai")
}
function y(t) {
t.iRet,
t.sDes
}
o = $("#player-check-room ul"),
t.addTafListener("6340", l),
c.addEvent(c.USER_INFO_INITED, f),
window.testCheckRoom = function () {
_isTest = !0,
r.isActive = !0;
var t = [];
(i = new p.CRPresenterInfo).sNickName = "航道上公司aabb水管是的公司" + e,
i.lPid = a.presenterUid,
i.lRoomId = 10006516,
i.lYYId = 1010255904,
i.iType = 1,
i.lTopCid = 123,
i.sIconUrl = "https://huyaimg.msstatic.com/avatar/1044/81/920e0ef057dfc1a949524381d8c812_180_135.jpg",
t.push(i);
for (var e = 0; e < 1; e++) {
var i;
(i = new p.CRPresenterInfo).sNickName = "航道上公司aabb水管是的公司" + e,
i.lPid = 1010255904,
i.lRoomId = 10004859,
i.lYYId = 977419054,
i.iType = 2,
i.lTopCid = 123,
i.sIconUrl = "https://huyaimg.msstatic.com/avatar/1044/81/920e0ef057dfc1a949524381d8c812_180_135.jpg",
t.push(i)
}
w(t, !0)
}
}
},
EoLl: function (t, e) {
var i;
!function (t, e, i) {
var r, n = t([]), s = t.resize = t.extend(t.resize, {}), o = "setTimeout", a = "resize",
c = a + "-special-event", d = "delay", u = "throttleWindow";
s[d] = 250,
s[u] = !0,
t.event.special[a] = {
setup: function () {
if (!s[u] && this[o])
return !1;
var e = t(this);
n = n.add(e),
t.data(this, c, {
w: e.width(),
h: e.height()
}),
1 === n.length && function e() {
r = setTimeout((function () {
n.each((function () {
var e = t(this)
, i = e.width()
, r = e.height()
, n = t.data(this, c);
i === n.w && r === n.h || e.trigger(a, [n.w = i, n.h = r])
}
)),
e()
}
), s[d])
}()
},
teardown: function () {
if (!s[u] && this[o])
return !1;
var e = t(this);
n = n.not(e),
e.removeData(c),
n.length || clearTimeout(r)
},
add: function (e) {
if (!s[u] && this[o])
return !1;
var r;
function n(e, n, s) {
var o = t(this)
, a = t.data(this, c);
a && (a.w = n !== i ? n : o.width()),
a && (a.h = s !== i ? s : o.height()),
r.apply(this, arguments)
}
if (t.isFunction(e))
return r = e,
n;
r = e.handler,
e.handler = n
}
}
}(jQuery),
(i = jQuery).fn.mousestop = function (t) {
return this.each((function () {
var e, r = 0, n = 0, s = 0, o = 0, a = !1, c = this;
i(this).mousemove((function (i) {
s = i.pageX,
o = i.pageY,
!a && (e = setInterval((function () {
r == s && n == o && (clearInterval(e),
a = !1,
t && t.call(c)),
r = s,
n = o
}
), 300)),
a = !0
}
)).mouseout((function () {
clearInterval(e),
a = !1
}
))
}
))
}
},
Epu9: function (t, e, i) {
t.exports = function (t) {
var e = t.utils
, r = 60
, n = 50
, s = 8
, o = 4
, a = null
, c = i("yfqf")
, d = i("ScJi")
, u = []
, h = 0
, p = {};
function l(t) {
if (!t.imgArr || 0 != t.imgArr.length) {
var e = new Image;
e.onload = function () {
r = e.width / 2,
n = e.height / 2;
var i = $("#player-wrap").width()
, a = parseInt(i / r);
f(a, t, 1),
f(a, t, 2),
clearTimeout(h),
h = setTimeout((function () {
I()
}
), 1e3 * (s + 2 * o))
}
,
e.onerror = function () {
}
,
e.src = t.imgArr[0]
}
}
function f(t, e, i) {
for (var s = 0; s < t; s++) {
var o = m(s, i);
a.append(o),
o.css({
width: r,
height: n
});
var c = new d({
targetID: "",
framesUrl: e.imgArr,
width: r,
height: n,
loop: !0,
target: o
});
c.play(!0),
u.push(c)
}
}
function m(t, i) {
var a = $('')
, c = t * r
, d = {
left: e.pixelValue(e.randomInteger(c, c + 10)),
top: -n
}
, u = 0;
return u = w(2 == i ? e.randomFloat(o, 2 * o) : e.randomFloat(0, o)),
d["animation-delay"] = u,
d["animation-duration"] = w(e.randomFloat(s - 2, s)),
a.css(d),
a
}
function w(t) {
return t + "s"
}
function I() {
for (var t in u)
u[t].clear();
u = [],
a && a.empty()
}
this.setData = function (t) {
I(),
function () {
if (a)
return;
a = $(""),
$("#player-wrap").append(a)
}(),
p[t] ? l(p[t]) : c.getPngListData((function (e) {
p[t] = e,
l(e)
}
), t)
}
}
},
F2sD: function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n \n \n
\n'
, __filename = "src/tpl/others/yanzhi-bg.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n \n \n
\n'),
__line = 5;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
FHYZ: function (t, e) {
function i(t) {
return (i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
return typeof t
}
: function (t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
}
)(t)
}
function r(t, e) {
var i = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter((function (e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
}
))),
i.push.apply(i, r)
}
return i
}
function n(t) {
for (var e = 1; e < arguments.length; e++) {
var i = null != arguments[e] ? arguments[e] : {};
e % 2 ? r(i, !0).forEach((function (e) {
s(t, e, i[e])
}
)) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : r(i).forEach((function (e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e))
}
))
}
return t
}
function s(t, e, i) {
return e in t ? Object.defineProperty(t, e, {
value: i,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[e] = i,
t
}
t.exports = function (t) {
var e = t.G
, r = t.Event
, s = t.R
, o = t.Console
, a = t.alert
, c = t.utils;
function d() {
t.box && (t.gift.closeSetting(),
t.ctrl.closeFeedback())
}
function u(e) {
localStorage.mydebug ? a.show({
msg: "跳转到Flash的行为中断,因为你配置了mydebug参数",
type: 1,
title: "播放器提示"
}) : t.trigger("playerError")
}
function h() {
var i = function () {
var t = [];
e.livingInfo.vMediaStreamInfo ? t = e.livingInfo.vMediaStreamInfo.value : e.livingInfo.tNotice && (t = e.livingInfo.tNotice.vStreamInfo.value);
for (var i in t)
if (t[i].iLineIndex != e.videoLine)
return t[i].iLineIndex;
return e.videoLine
}();
t.ctrl && t.ctrl.updateCurBitRateMenu(),
t.vcore.switchLine(i)
}
!function i() {
if (i.isInited)
return;
i.isInited = !0,
Object.defineProperties(t, {
userId: {
get: function () {
return e.userId
}
}
}),
$(document).on("click", "#change-line-btn", (function () {
h(),
$(".player-loading-changeline").hide(),
s.huyuReport("click/zhibo/breakdown/changeline")
}
)),
$(document).on("click", "#download-pc-btn", f),
r.addEvent(r.CHANGE_TO_FLASH, u),
r.addEvent(r.TONGJI_READY, T),
r.addEvent(r.UPDATE_BTS_VISIBLE, m),
r.addEvent(r.FOLLOW_LIST_READY, P),
r.addEvent(r.PLAYER_UI_INITED, b),
r.addEvent(r.HUYA_REPORT, s.huyuReport),
r.addEvent(r.SET_DISPLAY_BARRAGE_TAGS, C),
r.addEvent(r.CHANGE_OTHER_LINE, h),
r.addEvent(r.FEEDBACK_SDK_READY, x)
}(),
window.testChangeLine = function () {
e.vplayer.showLoading(),
$(".player-loading-changeline").show()
}
;
var p = 0
, l = 0;
function f() {
var t = Date.now();
if (!(t - l < 1e3)) {
l = t,
s.huyuReport("Click/zhibo/breakdown/pc");
var i = "-huyaptgoto -pid=%1 -tid=%2 -sid=%3";
i = (i = (i = i.replace("%1", e.presenterUid)).replace("%2", e.topsid)).replace("%3", e.subsid);
var n = "http://127.0.0.1:20192/?CheckClientInstall=1&OpenClient=" + encodeURIComponent(i);
$.ajax({
url: n,
type: "GET",
dataType: "jsonp",
data: {}
}).done((function (t) {
o.log("onClickPCDownLoad", t),
clearTimeout(p),
t.result && 0 == t.result.errcode && 0 == t.result.isInstall ? y() : t.result && 0 == t.result.errcode && 1 == t.result.isInstall ? r.fireEvent(r.SHIPIN_PAUSE) : y()
}
)),
clearTimeout(p),
p = setTimeout((function () {
y()
}
), 1e3)
}
}
function m() {
t.ctrl && t.ctrl.updateBtnsVisible()
}
function w(e, i) {
Number(localStorage._printTaf) && o.log("%caddTafListener", "background:#FFBFFF", e),
t.vcore.addTafListener(e, i)
}
function I(e, i) {
Number(localStorage._printTaf) && o.log("%cremoveTafListener", "background:#FFBFFF", e),
t.vcore.removeTafListener(e, i)
}
function y() {
var t = "//download.huya.com/huyapc/install/HuyaClientInstall023.exe"
, e = c.appStoreDownLoad(t);
e ? window.open(e) : window.location.href = t
}
function g(e, i, r) {
Number(localStorage._printTaf) && o.log("%csendWup", "background:#FFBFFF", e, i, r),
t.vcore.sendWup(e, i, r)
}
function S(e, i, r, n, s, a, c) {
Number(localStorage._printTaf) && o.log("%csendWup2", "background:#FFBFFF", e, i, r),
t.vcore.sendWup2(e, i, r, n, s, a, c)
}
function v(e) {
t.vcore.registerGroup(e)
}
function _(e) {
t.vcore.unRegisterGroup(e)
}
function T(t) {
s.tongjiReady(t)
}
var R = !1;
function b() {
for (var t in e.calljsCache)
r.fireEvent(t, e.calljsCache[t]);
R = !0,
e.calljsCache = {}
}
function P(t) {
e.followList = t
}
function x(t) {
e.feedbackSdk = t,
e.logUtils.feedbackSdkReady()
}
function C(t) {
e.extBarrageTags = t.tags || []
}
function U() {
var t = U.id || 0;
return U.id = ++t,
"wsId" + U.id
}
var k = "huyaweb://";
e.vplayer.addTafListener = w,
e.vplayer.removeTafListener = I,
e.vplayer.sendWup = g,
e.vplayer.sendWup2 = S,
e.vplayer.sendField = function (e, i, r, n) {
t.vcore.sendField(e, i, r, n)
}
,
e.vplayer.getMyInfo = function () {
return e.userInfo
}
,
e.vplayer.getBagSet = function () {
var t = localStorage.giftsetting;
t || (t = "1111");
var e = (t = (t = t.replace(/1/g, "2")).replace(/0/g, "1")).split("")
, i = e[2];
return e[2] = e[3],
e[3] = i,
e.join(",")
}
,
e.vplayer.dynamicLogin = function () {
e.yyuid = parseInt(c.getCookie("yyuid")),
e.isLogin = !isNaN(e.yyuid) && e.yyuid > 0,
r.fireEvent(r.DYNAMIC_LOGIN)
}
,
e.vplayer.callByJs = function (t, i) {
1 == R ? r.fireEvent(t, i) : e.calljsCache[t] = i
}
,
e.vplayer.registerGroup = v,
e.vplayer.unRegisterGroup = _,
e.vplayer.getPerspectiveList = function () {
return e.obPerspectiveList
}
,
e.vplayer.getCurrentPerspective = function () {
return e.obCurrentPerspective
}
,
e.vplayer.setPerspective = function (e) {
return t.vcore ? (r.fireEvent(r.SET_PERSPECTIVE, e),
0) : -1
}
,
e.vplayer.getMatchInfo = function () {
return {
status: e.obStatus
}
}
,
e.vplayer.hover = function () {
return r.fireEvent(r.EXT_HOVER),
0
}
,
e.vplayer.doubleTapped = function () {
return r.fireEvent(r.DOUBLE_TAPPED),
0
}
,
e.vplayer.contextMenu = function () {
return r.fireEvent(r.EXT_CONTEXT_MENU),
0
}
,
e.vplayer.getJoinMicUserList = function () {
return t.makefriend ? t.makefriend.getJoinMicUserList() : {
res: -1,
msg: "交友模块未初始化完成",
data: []
}
}
,
e.vplayer.sendGiftToUser = function (i) {
var r = new Promise((function (r, s) {
var o, a = n({}, i);
a.resolve = r,
a.reject = s,
e.isMakeFriend ? t.gift ? t.gift.sendGiftToUser(a) : (o = {
res: -2,
msg: "礼物模块未初始化完成",
data: {}
},
a.reject(o)) : (o = {
res: -1,
msg: "仅交友直播间可使用",
data: {}
},
a.reject(o))
}
));
return o.log("sendGiftToUser promise", r),
r
}
,
e.vplayer.setLiveRoomFeatures = function (t) {
e.roomFeatures = t,
r.fireEvent(r.SET_LIVEROOM_REATURES);
var n = {};
return Object.keys(t).forEach((function (e) {
t[e] && "object" == i(t[e]) && !c.objectIsEmpty(t[e]) && (n[e] = !0)
}
)),
{
res: 0,
msg: "",
data: n
}
}
,
e.vplayer.getLiveRoomFeatures = function () {
return {
res: 0,
msg: "",
data: {
player: {
status: e.isUIPause ? "paused" : "playing"
},
barrage: {
enable: e.isShowDanmu
},
ui: {
activated: e.uiActivated
},
effect: {
giftEffectEnable: e.giftEffectEnable
}
}
}
}
,
e.vplayer.playLive = function (e) {
o.log("playLive", e);
var i = new Promise((function (i, r) {
var s = n({}, e);
s.resolve = i,
s.reject = r,
t.getStreamInfoByStreamName(s)
}
));
return o.log("playLive promise", i),
i
}
,
e.vplayer.setVideoPixelateBox = function (t) {
e.h5player && e.h5player.setVideoPixelateBox(t)
}
,
e.vplayer.pushVideoPixlateInfo = function (t) {
e.h5player && e.h5player.pushVideoPixlateInfo(t)
}
,
e.vplayer.wsConnect = function (t) {
var e = U();
return t.id = e,
r.fireEvent(r.EXT_WS_CONNECT, t),
o.log("wsConnect", t),
{
res: 0,
msg: "",
data: {
wsId: e
}
}
}
,
e.vplayer.wsSend = function (t) {
return r.fireEvent(r.EXT_WS_SEND, t),
{
res: 0,
msg: "",
data: {}
}
}
,
e.vplayer.wsClose = function (t) {
return r.fireEvent(r.EXT_WS_CLOSE, t),
o.log("wsClose", t),
{
res: 0,
msg: "",
data: {}
}
}
,
e.vplayer.switchLine = function (t) {
t && t.line && r.fireEvent(r.SWITCH_LINE, t.line)
}
,
e.vplayer.getCurrentLine = function () {
return e.videoLine
}
,
e.vplayer.getLinesInfo = function () {
var t = [];
for (var i in e.menuItems) {
var r = e.menuItems[i].line;
t.push({
line: r,
label: "直播线路" + r
})
}
return t
}
,
e.vplayer.sendExtWup = function (i) {
return !(!e.wsconnected || !e.vplayerUI) && (-1 == e.extTafFunName.indexOf(i.funcName) && e.extTafFunName.push(i.funcName),
function (e) {
t.vcore.send(e)
}(i.buff),
!0)
}
,
e.vplayer.setExtUri = function (t) {
-1 == e.extTafUri.indexOf(t) && e.extTafUri.push(t)
}
,
e.vplayer.openUrl = function (i) {
var r = i.url;
if (o.log("==openUrl:", i),
!i || !r)
return {
res: 1,
msg: "参数错误",
data: {}
};
if (-1 != r.indexOf(k)) {
var n = c.getUrlRelativePath(r, k)
, s = c.parseQueryString(r);
if ("openAccompanyOrderPay" == n)
t.accompany.openAccompanyOrderPay(s);
else {
if ("openActivityPannel" == n)
return t.leftIcon.openActivityPannel(s);
if ("liveRoomRecharge" == n)
e.vplayerUI.recharge();
else if ("openSuperFansRecharge" == n)
t.trigger("clickSuperFansRecharge");
else if ("openNobleRecharge" == n)
t.trigger("clickNobleRecharge");
else {
if ("openGuard" != n)
return {
res: 2,
msg: "未定义的接口名",
data: {}
};
t.trigger("openGuard")
}
}
} else {
if (!/(http|https):\/\/([\w.]+\/?)\S*/.test(r))
return {
res: 3,
msg: "未知操作",
data: {}
};
window.open(r)
}
return {
res: 0,
msg: "成功",
data: {}
}
}
,
e.vplayer.showFeedbackByExt = function (t) {
return r.fireEvent(r.SHOW_FEEDBACK_BY_EXT, t),
{
res: 0,
msg: "成功",
data: {}
}
}
,
t.addTafListener = w,
t.removeTafListener = I,
t.sendWup = g,
t.sendWup2 = S,
t.registerGroup = v,
t.unRegisterGroup = _,
t.closeAllPanel = d,
t.popLogin = function () {
t.ctrl && t.ctrl.quitFullscreen(),
t.trigger("webgamelivelogin"),
d()
}
,
t.setLineList = function (e) {
t.ctrl && t.ctrl.setLineList(e)
}
,
t.setBitRateList = function (e) {
t.ctrl && t.ctrl.setBitRateList(e)
}
,
t.showPlayTip = function (e, i) {
t.ctrl && t.ctrl.showPlayTip(e, i)
}
,
t.showFeedback = function () {
t.ctrl && t.ctrl.showFeedback()
}
,
t.updateBtnsVisible = m,
t.quitFullscreen = function () {
t.ctrl && t.ctrl.quitFullscreen()
}
,
t.changeToFlash = u,
t.turnPlayButtonOn = function () {
t.ctrl && t.ctrl.turnPlayButtonOn()
}
,
t.setDanmuVisible = function (e) {
t.ctrl && t.ctrl.setDanmuVisible(e)
}
,
t.sendEnterP2P = function (e) {
t.vcore.sendEnterP2P(e)
}
,
t.sendExitP2P = function (e) {
t.vcore.sendExitP2P(e)
}
,
t.sendWSUpdateUserInfoReq = function (e) {
t.vcore.sendWSUpdateUserInfoReq(e)
}
,
t.onP2PData = function (e) {
t.vcore.onP2PData(e)
}
,
t.getLivingInfo = function () {
t.vcore.getLivingInfo()
}
,
t.getStreamInfoByStreamName = function (e) {
t.vcore.getStreamInfoByStreamName(e)
}
,
t.unpackNest = function (e) {
t.vcore.unpackNest(e)
}
,
t.getCurrentTime = function () {
return t.vcore.getCurrentTime()
}
,
t.recharge = function () {
t.ctrl.recharge()
}
}
},
FMYs: function (t, e) {
t.exports = function (t) {
t.G;
var e, i = {}, r = null;
this.hasStar = function (t) {
return i.hasOwnProperty(t)
}
,
this.setGiftWeekStar = function (t) {
$(".player-face-gift i").removeClass("icon-week-star"),
e = t.iWeekStarType,
t.iType,
i = {};
$(".player-face-gift i").removeAttr("class");
for (var n = 0, s = (r = t.vPropsId.value).length; n < s; n++) {
var o = r[n]
, a = ".player-face-gift[propsId={0}] i";
a = a.replace("{0}", o),
$(a).addClass("icon-week-star"),
i[o] = !0
}
}
,
this.updateWeekStar = function (t) {
$(".player-face-gift i").removeClass("icon-week-star");
var n = t.mapType2Props.value;
if (n[e]) {
i = {};
for (var s = 0, o = (r = n[e].vPropsId.value).length; s < o; s++) {
var a = r[s]
, c = ".player-face-gift[propsId={0}] i";
c = c.replace("{0}", a),
$(c).addClass("icon-week-star"),
i[a] = !0
}
}
}
}
},
FRey: function (t, e, i) {
t.exports = function (t, e) {
var r = e.G
, n = e.Event
, s = e.ENV
, o = null
, a = null
, c = null;
function d(t) {
t.currentTarget.focus()
}
function u(t) {
38 != t.keyCode && 40 != t.keyCode || t.preventDefault && t.preventDefault(),
t.stopPropagation && t.stopPropagation(),
38 == t.keyCode ? r.vplayer.addViewport({
x: 0,
y: 0,
z: -.1
}) : 39 == t.keyCode ? r.vplayer.addViewport({
x: 10,
y: 0,
z: 0
}) : 40 == t.keyCode ? r.vplayer.addViewport({
x: 0,
y: 0,
z: .1
}) : 37 == t.keyCode && r.vplayer.addViewport({
x: -10,
y: 0,
z: 0
})
}
function h() {
null == a && (a = i("w2x3")(),
$("#player-wrap").append(a),
$(".player-vr-lead-close").click((function () {
$("#player-vr-lead").remove()
}
)),
setTimeout((function () {
$("#player-vr-lead").remove()
}
), 4e3)),
function () {
null == o && (o = i("Pahd")(),
$("#player-wrap").append(o),
$(".vr-arrow").click(l));
$(".player-vr-control").show()
}(),
y()
}
function p() {
m(),
y()
}
function l(t) {
var e = t.currentTarget.className
, i = 0
, n = 0;
-1 != e.indexOf("vr-arrow-left") ? i = -1 : -1 != e.indexOf("vr-arrow-right") ? i = 1 : -1 != e.indexOf("vr-arrow-down") ? n = 1 : -1 != e.indexOf("vr-arrow-up") && (n = -1),
r.vplayer.addViewport({
x: i,
y: n
})
}
function f() {
m(),
I()
}
function m() {
$(".player-vr-control").hide()
}
function w() {
r.vrSwitch || p()
}
function I() {
r.vplayer.hideLoading(),
null == c && (c = i("8oUx")(),
$("#player-wrap").append(c)),
$("#player-no-vr-tip").show();
var t = s.avatarImg;
r.isHttps() && (t = t.replace("http:", "https:")),
$(".player-no-vr-tip-bg").attr("src", t)
}
function y() {
$("#player-no-vr-tip").hide()
}
r.vrNoStream && (r.vplayer.hideLoading(),
I()),
n.addEvent(n.SHOW_VR_UI, h),
n.addEvent(n.HIDE_VR_UI, p),
n.addEvent(n.VR_MODEL_CHANGE, w),
n.addEvent(n.GET_VR_STREAM_ERR, f),
n.addEvent(n.HIDE_NO_VR_TIPS, y),
r.is360Video && ($("#player-wrap").click(d),
window.addEventListener("keydown", u),
r.isPlaying && h(),
$("#player-mouse-event-wrap").css({
width: 0,
height: 0
}))
}
},
"Fd//": function (module, exports) {
module.exports = function anonymous(locals, escapeFn, include, rethrow) {
rethrow = rethrow || function (t, e, i, r, n) {
var s = e.split("\n")
, o = Math.max(r - 3, 0)
, a = Math.min(s.length, r + 3)
, c = n(i)
, d = s.slice(o, a).map((function (t, e) {
var i = e + o + 1;
return (i == r ? " >> " : " ") + i + "| " + t
}
)).join("\n");
throw t.path = c,
t.message = (c || "ejs") + ":" + r + "\n" + d + "\n\n" + t.message,
t
}
,
escapeFn = escapeFn || function (t) {
return null == t ? "" : String(t).replace(_MATCH_HTML, encode_char)
}
;
var _ENCODE_HTML_RULES = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}
, _MATCH_HTML = /[&<>'"]/g;
function encode_char(t) {
return _ENCODE_HTML_RULES[t] || t
}
var __line = 1
,
__lines = '
\n \n \n \n \n \n
\n
'
, __filename = "src/tpl/danmu/egg-popup.ejs";
try {
var __output = "";
function __append(t) {
null != t && (__output += t)
}
with (locals || {})
__append('
\n \n \n \n \n \n
\n
'),
__line = 8;
return __output
} catch (e) {
rethrow(e, __lines, __filename, __line, escapeFn)
}
}
},
Fd8F: function (t, e, i) {
t.exports = function (t) {
var e = null
, r = t.Event;
function n() {
r.fireEvent(r.SHIPIN_PLAY)
}
this.isShow = !1,
this.show = function () {
if (!this.isShow) {
this.isShow = !0;
var t = i("rcgO")();
(e = $(t)).prependTo("#player-video"),
e.find(".btn").click(n)
}
}
,
this.hide = function () {
this.isShow = !1,
e && (e.unbind(),
e.remove()),
e = null
}
}
},
GHad: function (t, e) {
t.exports = function (t) {
var e = t.G
, i = t.Event
, r = t.ISDEBUG
, n = t.ENV
, s = (t.utils,
t.VER)
,
o = ["OnUserHeartBeat", "videoGatewayProxy2VGPing", "getCdnTokenInfoEx", "getInfoFromCdnVG", "getLivingStreamInfo", "getInfoFromVG"];
function a(t) {
if (e.wsconnected) {
var i = t
, a = i.funcName
, c = i.moduleName
, d = i.traceid;
if (-1 == o.indexOf(a)) {
var u = t.type
, h = t.startTime
, p = t.code
, l = "taf-" + c + "-" + a
, f = r ? "test" : "prod";
if (1 == u) {
var m = e.wsurl;
m = m.split("?")[0],
e.enableTrace > 0 ? performanceInfo._hmt.push(["reportApiTime", l, "start", h, "", h, {
appid: "huya",
platform: "web",
path: "/".concat(c, "/").concat(a),
traceid: d,
spanid: d,
ip: m,
prodenv: f
}]) : performanceInfo._hmt.push(["reportApiTime", l, "start", h, "", h])
} else if (2 == u) {
var w = p >= 0 ? "0" : "2";
performanceInfo._hmt.push(["reportApiTime", l, "end", +new Date, "", h, {
retcode: p.toString(),
success: w
}])
} else if (3 == u) {
var I = 2;
-7 == p ? I = 4 : p < 0 ? I = 3 : p > 0 && (I = 1);
t = {
pid: e.presenterUid,
pnick: n.pnick,
guid: e.getGuid(),
version: s,
ws: e.wsurl
};
performanceInfo._hmt.push(["reportApiMess", l, JSON.stringify(t), +I])
}
}
}
}
function c(t) {
var e = t.type
, i = t.funcName;
if (1 == e)
window.tafStr = "start";
else if (2 == e) {
window.tafStr.match(/