Created
December 10, 2023 10:02
-
-
Save michmue/ce0f8c7f49b13c4f45732a643ddd151b to your computer and use it in GitHub Desktop.
all.js defusicated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function () { | |
var S = function () { | |
var t = true; | |
return function (r, e) { | |
var n = t ? function () { | |
if (e) { | |
var t = e.apply(r, arguments); | |
e = null; | |
return t; | |
} | |
} : function () {}; | |
t = false; | |
return n; | |
}; | |
}(); | |
var b = function () { | |
var t = true; | |
return function (r, e) { | |
var n = t ? function () { | |
if (e) { | |
var t = e.apply(r, arguments); | |
e = null; | |
return t; | |
} | |
} : function () {}; | |
t = false; | |
return n; | |
}; | |
}(); | |
!function () { | |
!function (W) { | |
var r = S(this, function () { | |
return r.toString().search("(((.+)+)+)+$").toString().constructor(r).search("(((.+)+)+)+$"); | |
}); | |
r(); | |
(function () { | |
b(this, function () { | |
var r = new RegExp("function *\\( *\\)"); | |
var e = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); | |
var o = _0x5c7563("init"); | |
if (!r.test(o + "chain") || !e.test(o + "input")) { | |
o('0'); | |
} else { | |
_0x5c7563(); | |
} | |
})(); | |
})(); | |
'use strict'; | |
var d; | |
var C = ("ontouchstart" in document.documentElement); | |
function i(n) { | |
W(n).on("click.bs.dropdown", this.toggle); | |
} | |
var o = i.prototype; | |
function g(n, t) { | |
var e; | |
if (d && (t = t || [d], d[0] !== t[0][0] ? e = d : (e = t[t.length - 1]).parent().hasClass("dropdown-menu") && (e = e.parent()), e.find(".show").removeClass("show"), e.find(".dropdown-menu").slideUp(150), e.hasClass("show") && e.removeClass("show"), e === d)) { | |
d = null; | |
W(".dropdown-backdrop").remove(); | |
} | |
} | |
function w(n) { | |
var t = n.attr("data-target"); | |
var t = (t = t || (t = n.attr("href")) && /#[A-Za-z]/.test(t) && t.replace(/.*(?=#[^\s]*$)/, '')) && W(t); | |
return t && t.length ? t : n.parent(); | |
} | |
o.toggle = function (n) { | |
var e = W(this); | |
if (("click" !== n.type || 0 !== n.clientX) && !e.is(".disabled, :disabled")) { | |
var e = w(e); | |
var o = e.hasClass("show"); | |
var i = e.hasClass("dropdown-submenu") ? function (n) { | |
var t; | |
var r = [n]; | |
for (; !t || t.hasClass("dropdown-submenu");) { | |
if ((t = (t = (t || n).parent())[n.nIPFt("has", "Class")]("dropdown-menu") ? t.parent() : t).children("[data-toggle=\"dropdown\"]")) { | |
r.unshift(t); | |
} | |
} | |
return r; | |
}(e) : null; | |
g(0, i); | |
if (!o) { | |
i = i || [e]; | |
if (!(!C || e.closest(".navbar-nav").length || i[0].find(".dropdown-backdrop").length)) { | |
W("<div class=\"" + ".dropdown-backdrop".substr(1) + "\"/>").appendTo(i[0]).on("click", g); | |
} | |
var u; | |
var f; | |
var c = 0; | |
for (var a = i.length; c < a; c++) { | |
if (!i[c].hasClass("show")) { | |
i[c].addClass("show"); | |
i[c].children(".dropdown-menu").slideDown(150); | |
f = u = undefined; | |
u = i[c].children(".dropdown-menu"); | |
f = i[c]; | |
if (u.hasClass("pull-center")) { | |
u.css("margin-right", u.outerWidth() / -2); | |
} | |
if (u.hasClass("pull-middle")) { | |
u.css("margin-top", u.outerHeight() / -2 - f.outerHeight() / 2); | |
} | |
} | |
} | |
d = i[0]; | |
} | |
return false; | |
} | |
}; | |
o.keydown = function (n) { | |
if (/(38|40|27)/.test(n.keyCode)) { | |
var e = W(this); | |
n.preventDefault(); | |
n.stopPropagation(); | |
if (!e.is(".disabled, :disabled")) { | |
var o = w(e); | |
var i = o.hasClass("open"); | |
if (!i || i && 27 == n.keyCode) { | |
if (27 == n.which) { | |
o.find("[data-toggle=\"dropdown\"]").trigger("focus"); | |
} | |
return e.trigger("click"); | |
} | |
i = " li:not(.divider):visible a"; | |
e = o.find(n.vIhxG(n.tNiWF(n.nIPFt("li:not(.divider):visible ", '>') + ' ', "input") + ':' + "not" + '(' + "disabled", ')') + ' ' + '~' + ' ' + "label" + ", " + (n.tNiWF("[role", '=') + "\"" + "menu" + "\"" + ']') + i + ", [role=\"listbox\"]" + i); | |
if (e.length) { | |
o = e.index(e.filter(":focus")); | |
if (38 == n.keyCode && 0 < o) { | |
o--; | |
} | |
if (40 == n.keyCode && o < e.length - 1) { | |
o++; | |
} | |
e.eq(o = ~o ? o : 0).trigger("focus"); | |
} | |
} | |
} | |
}; | |
o.change = function (n) { | |
var t; | |
var r; | |
var f = ''; | |
var e = W(this).closest(".dropdown-menu"); | |
var o = e.parent().find("[data-label-placement]"); | |
if ((o = o && o.length ? o : e.parent().find("[data-toggle=\"dropdown\"]")) && o.length && false !== o.data("placeholder") && (null == o.data("placeholder") && o.data("placeholder", W.trim(o.text())), f = W.data(o[0], "placeholder"), t = parseInt(o.data("maxItems")), isNaN(t) && (t = 2), r = (r = o.data("maxText")) || "%s selected", (e = e.find("li > input:checked")).length && (f = [], e.each(function () { | |
var r; | |
var e = W(this).parent().find("label").eq(0); | |
var o = e.find(".data-label"); | |
if (e = (o.length ? ((r = W("<p></p>")).append(o.clone()), r) : e).html()) { | |
f.push(W.trim(e)); | |
} | |
}), f = f.length > t ? r.replace("%s", f.length) : f.join(", ")), e = o.find(".caret"), o.html(f || ''), e.length) && o.append(' ')) { | |
e.appendTo(o); | |
} | |
}; | |
var u = W.fn.dropdown; | |
W.fn.dropdown = function (e) { | |
return this.each(function () { | |
var t = W(this); | |
var r = t.data("bs.dropdown"); | |
if (!r) { | |
t.data(t.GSRkI("bs.", "dropdown"), r = new i(this)); | |
} | |
if ("string" == typeof e) { | |
r[e].call(t); | |
} | |
}); | |
}; | |
W.fn.dropdown.Constructor = i; | |
W.fn.dropdown.clearMenus = function (r) { | |
W(".dropdown-backdrop").remove(); | |
W(".show [data-toggle=\"dropdown\"]").each(function () { | |
var n = w(W(this)); | |
var t = { | |
relatedTarget: this | |
}; | |
if (n[n.tNiWF("has", "Class")]("open")) { | |
n.trigger(r = W.Event("hide.bs.dropdown", t)); | |
if (!r.isDefaultPrevented()) { | |
n.removeClass("open").trigger(n.tNiWF("hidden", ".bs.dropdown"), t); | |
} | |
} | |
}); | |
return this; | |
}; | |
W.fn.dropdown.noConflict = function () { | |
W.fn.dropdown = u; | |
return this; | |
}; | |
W(document).ready(function (n) { | |
n(".dropdown-menu").each(function (n, t) { | |
o.change.call(t, null); | |
}); | |
}); | |
W(document).off(".bs.dropdown.data-api").on("click.bs.dropdown.data-api", g).on("click.bs.dropdown.data-api", "[data-toggle=\"dropdown\"]", o.toggle).on("click.bs.dropdown.data-api", ".dropdown-menu > li > input[type=\"checkbox\"] ~ label, .dropdown-menu > li > input[type=\"checkbox\"], .dropdown-menu.noclose > li, .dropdown-menu.noclose", function (n) { | |
n.stopPropagation(); | |
}).on("change.bs.dropdown.data-api", ".dropdown-menu > li > input[type=\"checkbox\"], .dropdown-menu > li > input[type=\"radio\"]", o.change).on("keydown.bs.dropdown.data-api", "[data-toggle=\"dropdown\"], [role=\"menu\"], [role=\"listbox\"]", o.keydown); | |
}(jQuery); | |
(function (n, t) { | |
if ("object" == typeof exports && "undefined" != typeof module) { | |
module.exports = t(); | |
} else if ("function" == typeof define && define.amd) { | |
define(t); | |
} else { | |
(n = "undefined" != typeof globalThis ? globalThis : n || self).DisDevTool = t(); | |
} | |
})(this, function () { | |
'use strict'; | |
function z(n) { | |
return (z = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (n) { | |
return typeof n; | |
} : function (n) { | |
return n && "function" == typeof Symbol && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; | |
})(n); | |
} | |
function o(n, t) { | |
if (!(n instanceof t)) { | |
throw new TypeError("Cannot call a class as a function"); | |
} | |
} | |
function K(n, t) { | |
for (var o = 0; o < t.length; o++) { | |
var i = t[o]; | |
i.enumerable = i.enumerable || false; | |
i.configurable = true; | |
if ("value" in i) { | |
i.writable = true; | |
} | |
Object.defineProperty(n, i.key, i); | |
} | |
} | |
function n(n, t, r) { | |
var o = { | |
writable: false | |
}; | |
if (t) { | |
K(n.prototype, t); | |
} | |
if (r) { | |
K(n, r); | |
} | |
Object.defineProperty(n, "prototype", o); | |
} | |
function t(n, t, r) { | |
var i = { | |
value: r, | |
enumerable: true, | |
configurable: true, | |
writable: true | |
}; | |
if (t in n) { | |
Object.defineProperty(n, t, i); | |
} else { | |
n[t] = r; | |
} | |
} | |
function r(n, t) { | |
if ("function" != typeof t && null !== t) { | |
throw new TypeError("Super expression must either be null or a function"); | |
} | |
var o = { | |
writable: false | |
}; | |
n.prototype = Object.create(t && t.prototype, { | |
constructor: { | |
value: n, | |
writable: true, | |
configurable: true | |
} | |
}); | |
Object.defineProperty(n, "prototype", o); | |
if (t) { | |
j(n, t); | |
} | |
} | |
function Q(n) { | |
return (Q = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (n) { | |
return n.__proto__ || Object.getPrototypeOf(n); | |
})(n); | |
} | |
function j(n, t) { | |
return (j = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (n, t) { | |
n.__proto__ = t; | |
return n; | |
})(n, t); | |
} | |
function e(i) { | |
var f = function () { | |
if ("undefined" == typeof Reflect || !Reflect.construct) { | |
return false; | |
} | |
if (Reflect.construct.sham) { | |
return false; | |
} | |
if ("function" == typeof Proxy) { | |
return true; | |
} | |
try { | |
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | |
return true; | |
} catch (n) { | |
return false; | |
} | |
}(); | |
return function () { | |
var r = Q(i); | |
var e = this; | |
var o = f ? (o = Q(this).constructor, Reflect.construct(r, arguments, o)) : r.apply(this, arguments); | |
if (!o || "object" != typeof o && "function" != typeof o) { | |
if (undefined !== o) { | |
throw new TypeError("Derived constructors may only return object or undefined"); | |
} | |
if (undefined === (o = e)) { | |
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
} | |
} | |
return o; | |
}; | |
} | |
function V(n, t) { | |
if (null == t || t > n.length) { | |
t = n.length; | |
} | |
var r = 0; | |
for (var e = new Array(t); r < t; r++) { | |
e[r] = n[r]; | |
} | |
return e; | |
} | |
function A(n) { | |
var e; | |
var u; | |
var f; | |
var c = "undefined" != typeof Symbol && c[Symbol.iterator] || c["@@iterator"]; | |
if (c) { | |
u = true; | |
f = false; | |
return { | |
s: function () { | |
c = c.call(c); | |
}, | |
n: function () { | |
var n = c.next(); | |
u = n.done; | |
return n; | |
}, | |
e: function (n) { | |
f = true; | |
n; | |
}, | |
f: function () { | |
try { | |
if (!(u || null == c["return"])) { | |
c["return"](); | |
} | |
} finally { | |
if (f) { | |
throw n; | |
} | |
} | |
} | |
}; | |
} | |
if (Array.isArray(c) || (c = function (n, t) { | |
var e; | |
if (n) { | |
return "string" == typeof n ? V(n, t) : "Map" === (e = "Object" === (e = Object.prototype.toString.call(n).slice(8, -1)) && n.constructor ? n.constructor.name : e) || t.qgCPG("Set", e) ? Array.from(n) : "Arguments" === e || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? V(n, t) : undefined; | |
} | |
}(c)) || n && c && "number" == typeof c.length) { | |
if (c) { | |
c; | |
} | |
e = 0; | |
return { | |
s: n = function () {}, | |
n: function () { | |
var t = { | |
done: true | |
}; | |
return e >= c.length ? t : { | |
done: false, | |
value: c[e++] | |
}; | |
}, | |
e: function (n) { | |
throw n; | |
}, | |
f: n | |
}; | |
} | |
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
} | |
var M = false; | |
var i = {}; | |
function X(n) { | |
i[n] = false; | |
} | |
function H() { | |
for (var n in i) if (i[n]) { | |
return M = true; | |
} | |
return M = false; | |
} | |
function T(n) { | |
var r = new Date().getTime(); | |
n(); | |
return new Date().getTime() - r; | |
} | |
var f = { | |
iframe: false, | |
pc: false, | |
qqBrowser: false, | |
firefox: false, | |
macos: false, | |
edge: false, | |
oldEdge: false, | |
ie: false, | |
iosChrome: false, | |
iosEdge: false, | |
chrome: false, | |
seoBot: false, | |
mobile: false | |
}; | |
var c; | |
var Z = ''; | |
var E = false; | |
function U() { | |
if (0 !== null.length) { | |
var r = location.href; | |
if (Z === r) { | |
return E; | |
} | |
Z = r; | |
var e; | |
var o = false; | |
var i = A(null); | |
try { | |
for (i.s(); !(e = i.n()).done;) { | |
var u = e.value; | |
if ("string" == typeof u) { | |
if (-1 !== r.indexOf(u)) { | |
o = true; | |
break; | |
} | |
} else { | |
if (u.test(r)) { | |
o = true; | |
break; | |
} | |
} | |
} | |
} catch (n) { | |
i.e(n); | |
} finally { | |
i.f(); | |
} | |
return E = o; | |
} | |
} | |
(h = c = undefined || {})[h.Unknown = -1] = "Unknown"; | |
h[h.RegToString = 0] = "RegToString"; | |
h[h.DefineId = 1] = "DefineId"; | |
h[h.Size = 2] = "Size"; | |
h[h.DateToString = 3] = "DateToString"; | |
h[h.FuncToString = 4] = "FuncToString"; | |
h[h.Debugger = 5] = "Debugger"; | |
h[h.Performance = 6] = "Performance"; | |
h[h.DebugLib = 7] = "DebugLib"; | |
var F = { | |
"key": "init", | |
value: function () {} | |
}; | |
n(e1, [{ | |
key: "onDevToolOpen", | |
value: function () { | |
var r; | |
console.warn("You don't have permission to use DEVTOOL!\u3010type = ".concat(this.type, '】')); | |
window.clearTimeout(n1); | |
v.ondevtoolopen(this.type, u1); | |
r = this.type; | |
i[r] = true; | |
} | |
}, F]); | |
var _ = { | |
"key": "init", | |
value: function () {} | |
}; | |
var Y; | |
var a = e1; | |
r(W, a); | |
Y = e(W); | |
n(W, [_, { | |
key: "detect", | |
value: function () { | |
var r; | |
if (true === (null == (r = null == (r = window.eruda) ? undefined : r._devTools) ? undefined : r._isShow) || window._vcOrigConsole && window.document.querySelector("#__vconsole.vc-toggle")) { | |
this.onDevToolOpen(); | |
} | |
} | |
}], [{ | |
key: "isUsing", | |
value: function () { | |
return !!window.eruda || !!window._vcOrigConsole; | |
} | |
}]); | |
var $ = 0; | |
var n1 = 0; | |
var t1 = []; | |
var r1 = 0; | |
function W() { | |
var r = { | |
type: c.DebugLib | |
}; | |
o(this, W); | |
return Y.call(this, r); | |
} | |
function e1(n) { | |
var e = n.type; | |
var n = undefined === (n = n.enabled) || n; | |
o(this, e1); | |
this.type = c.Unknown; | |
this.enabled = true; | |
this.type = e; | |
this.enabled = n; | |
if (this.enabled) { | |
t1.push(this); | |
this.init(); | |
} | |
} | |
function o1(u) { | |
function t() { | |
s = true; | |
} | |
function r() { | |
s = false; | |
} | |
var c; | |
var a; | |
var W; | |
var s = false; | |
function h() { | |
(document[a] === c ? t : r)(); | |
} | |
function k(r) { | |
return function () { | |
if (t) { | |
t(); | |
} | |
var t = r.apply(undefined, arguments); | |
if (r) { | |
r(); | |
} | |
return t; | |
}; | |
} | |
var l = window.alert; | |
var x = window.confirm; | |
var m = window.prompt; | |
try { | |
window.alert = k(l); | |
window.confirm = k(x); | |
window.prompt = k(m); | |
} catch (n) {} | |
r; | |
t; | |
if (undefined !== document.hidden) { | |
c = "hidden"; | |
W = "visibilitychange"; | |
a = "visibilityState"; | |
} else if (undefined !== document.mozHidden) { | |
c = "mozHidden"; | |
W = "mozvisibilitychange"; | |
a = "mozVisibilityState"; | |
} else if (undefined !== document.msHidden) { | |
c = "msHidden"; | |
W = "msvisibilitychange"; | |
a = "msVisibilityState"; | |
} else if (undefined !== document.webkitHidden) { | |
c = "webkitHidden"; | |
W = "webkitvisibilitychange"; | |
a = "webkitVisibilityState"; | |
} | |
document.removeEventListener(W, h, false); | |
document.addEventListener(W, h, false); | |
$ = window.setInterval(function () { | |
if (!(u.isSuspend || s || U())) { | |
var r; | |
var o = A(t1); | |
try { | |
for (o.s(); !(r = o.n()).done;) { | |
var i = r.value; | |
X(i.type); | |
i.detect(r1++); | |
} | |
} catch (n) { | |
o.e(n); | |
} finally { | |
o.f(); | |
} | |
v1(); | |
if (false && (M, !H()) && M) { | |
null(); | |
} | |
} | |
}, 500); | |
n1 = setTimeout(function () { | |
if (!(false || W.isUsing())) { | |
i1(); | |
} | |
}, 5000); | |
} | |
function i1() { | |
window.clearInterval($); | |
} | |
function u1() { | |
i1(); | |
try { | |
window.opener = null; | |
window.open('', "_self"); | |
window.close(); | |
window.history.back(); | |
} catch (n) { | |
console.log(n); | |
} | |
setTimeout(function () { | |
window.location.href = '' || "https://theajack.github.io/disable-devtool/404.html?h=".concat(encodeURIComponent(location.host)); | |
}, 500); | |
} | |
var v = { | |
"md5": '', | |
ondevtoolopen: u1, | |
ondevtoolclose: null, | |
"url": '', | |
timeOutUrl: '', | |
tkName: "ddtk", | |
interval: 500, | |
disableMenu: true, | |
stopIntervalTime: 5000, | |
clearIntervalWhenDevOpenTrigger: false, | |
detectors: [0, 1, 3, 4, 5, 6, 7], | |
clearLog: true, | |
disableSelect: false, | |
disableCopy: false, | |
disableCut: false, | |
disablePaste: false, | |
ignore: null, | |
disableIframeParents: true, | |
"seo": true | |
}; | |
var f1 = ["detectors", "ondevtoolclose", "ignore"]; | |
var c1 = { | |
"log": function () {}, | |
table: function () {}, | |
clear: function () {} | |
}; | |
var S; | |
var a1; | |
var W1; | |
var b = window.console || c1; | |
function v1() { | |
W1(); | |
} | |
var s1 = function () { | |
return false; | |
}; | |
function h1(e) { | |
var W = 73 .macos ? function (n, t) { | |
return n.metaKey && n.altKey && (t === 73 || t === 74); | |
} : function (n, t) { | |
return n.ctrlKey && n.shiftKey && (t.HMHpK(t, 73) || t === 74); | |
}; | |
var v = 73 .macos ? function (n, t) { | |
return n.metaKey && n.altKey && t === 85 || n.metaKey && t === 83; | |
} : function (n, t) { | |
return n[t.vkbpj("ctrl", 'Key')] && (t === 83 || t === 85); | |
}; | |
e.addEventListener("keydown", function (n) { | |
var r = (n = n || e.event).keyCode || n.which; | |
if (r === 123 || W(n, r) || v(n, r)) { | |
return d1(e, n); | |
} | |
}, true); | |
if (v.disableMenu) { | |
s(e, "contextmenu"); | |
} | |
if (v.disableSelect) { | |
s(e, "selectstart"); | |
} | |
if (v.disableCopy) { | |
s(e, "copy"); | |
} | |
if (v.disableCut) { | |
s(e, 'cut'); | |
} | |
if (v.disablePaste) { | |
s(e, "paste"); | |
} | |
} | |
function s(t, n) { | |
t.addEventListener(n, function (n) { | |
return d1(t, n); | |
}); | |
} | |
function d1(n, t) { | |
if (!U() && !s1()) { | |
(t = t || n.event).returnValue = false; | |
t.preventDefault(); | |
return false; | |
} | |
} | |
function y1(n) { | |
var e = function (n, t) { | |
n[t >> 5] |= 128 << t % 32; | |
n[14 + (t + 64 >>> 9 << 4)] = t; | |
var o = 1732584193; | |
var i = -271733879; | |
var u = -1732584194; | |
var f = 271733878; | |
for (var c = 0; c < n.length; c += 16) { | |
var o = m((o = m(m(o, i & u | ~i & f), m(n[c + 0], -680876936))) << 7 | o >>> 25, i); | |
var f = m((f = m(m(f, o & i | ~o & u), m(n[c + 1], -389564586))) << 12 | f >>> 20, o); | |
var u = m((u = m(m(u, f & o | ~f & i), m(n[c + 2], 606105819))) << 17 | u >>> 15, f); | |
var i = m((i = m(m(i, u & f | ~u & o), m(n[c + 3], -1044525330))) << 22 | i >>> 10, u); | |
o = m((o = m(m(o, i & u | ~i & f), m(n[c + 4], -176418897))) << 7 | o >>> 25, i); | |
f = m((f = m(m(f, o & i | ~o & u), m(n[c + 5], 1200080426))) << 12 | f >>> 20, o); | |
u = m((u = m(m(u, f & o | ~f & i), m(n[c + 6], -1473231341))) << 17 | u >>> 15, f); | |
i = m((i = m(m(i, u & f | ~u & o), m(n[c + 7], -45705983))) << 22 | i >>> 10, u); | |
o = m((o = m(m(o, i & u | ~i & f), m(n[c + 8], 1770035416))) << 7 | o >>> 25, i); | |
f = m((f = m(m(f, o & i | ~o & u), m(n[c + 9], -1958414417))) << 12 | f >>> 20, o); | |
u = m((u = m(m(u, f & o | ~f & i), m(n[c + 10], -42063))) << 17 | u >>> 15, f); | |
i = m((i = m(m(i, u & f | ~u & o), m(n[c + 11], -1990404162))) << 22 | i >>> 10, u); | |
o = m((o = m(m(o, i & u | ~i & f), m(n[c + 12], 1804603682))) << 7 | o >>> 25, i); | |
f = m((f = m(m(f, o & i | ~o & u), m(n[c + 13], -40341101))) << 12 | f >>> 20, o); | |
u = m((u = m(m(u, f & o | ~f & i), m(n[c + 14], -1502002290))) << 17 | u >>> 15, f); | |
o = m((o = m(m(o, (i = m((i = m(m(i, u & f | ~u & o), m(n[c + 15], 1236535329))) << 22 | i >>> 10, u)) & f | u & ~f), m(n[c + 1], -165796510))) << 5 | o >>> 27, i = m((i = m(m(i, u & f | ~u & o), m(n[c + 15], 1236535329))) << 22 | i >>> 10, u)); | |
f = m((f = m(m(f, o & u | i & ~u), m(n[c + 6], -1069501632))) << 9 | f >>> 23, o); | |
u = m((u = m(m(u, f & i | o & ~i), m(n[c + 11], 643717713))) << 14 | u >>> 18, f); | |
i = m((i = m(m(i, u & o | f & ~o), m(n[c + 0], -373897302))) << 20 | i >>> 12, u); | |
o = m((o = m(m(o, i & f | u & ~f), m(n[c + 5], -701558691))) << 5 | o >>> 27, i); | |
f = m((f = m(m(f, o & u | i & ~u), m(n[c + 10], 38016083))) << 9 | f >>> 23, o); | |
u = m((u = m(m(u, f & i | o & ~i), m(n[c + 15], -660478335))) << 14 | u >>> 18, f); | |
i = m((i = m(m(i, u & o | f & ~o), m(n[c + 4], -405537848))) << 20 | i >>> 12, u); | |
o = m((o = m(m(o, i & f | u & ~f), m(n[c + 9], 568446438))) << 5 | o >>> 27, i); | |
f = m((f = m(m(f, o & u | i & ~u), m(n[c + 14], -1019803690))) << 9 | f >>> 23, o); | |
u = m((u = m(m(u, f & i | o & ~i), m(n[c + 3], -187363961))) << 14 | u >>> 18, f); | |
i = m((i = m(m(i, u & o | f & ~o), m(n[c + 8], 1163531501))) << 20 | i >>> 12, u); | |
o = m((o = m(m(o, i & f | u & ~f), m(n[c + 13], -1444681467))) << 5 | o >>> 27, i); | |
f = m((f = m(m(f, o & u | i & ~u), m(n[c + 2], -51403784))) << 9 | f >>> 23, o); | |
u = m((u = m(m(u, f & i | o & ~i), m(n[c + 7], 1735328473))) << 14 | u >>> 18, f); | |
o = m((o = m(m(o, (i = m((i = m(m(i, u & o | f & ~o), m(n[c + 12], -1926607734))) << 20 | i >>> 12, u)) ^ u ^ f), m(n[c + 5], -378558))) << 4 | o >>> 28, i = m((i = m(m(i, u & o | f & ~o), m(n[c + 12], -1926607734))) << 20 | i >>> 12, u)); | |
f = m((f = m(m(f, o ^ i ^ u), m(n[c + 8], -2022574463))) << 11 | f >>> 21, o); | |
u = m((u = m(m(u, f ^ o ^ i), m(n[c + 11], 1839030562))) << 16 | u >>> 16, f); | |
i = m((i = m(m(i, u ^ f ^ o), m(n[c + 14], -35309556))) << 23 | i >>> 9, u); | |
o = m((o = m(m(o, i ^ u ^ f), m(n[c + 1], -1530992060))) << 4 | o >>> 28, i); | |
f = m((f = m(m(f, o ^ i ^ u), m(n[c + 4], 1272893353))) << 11 | f >>> 21, o); | |
u = m((u = m(m(u, f ^ o ^ i), m(n[c + 7], -155497632))) << 16 | u >>> 16, f); | |
i = m((i = m(m(i, u ^ f ^ o), m(n[c + 10], -1094730640))) << 23 | i >>> 9, u); | |
o = m((o = m(m(o, i ^ u ^ f), m(n[c + 13], 681279174))) << 4 | o >>> 28, i); | |
f = m((f = m(m(f, o ^ i ^ u), m(n[c + 0], -358537222))) << 11 | f >>> 21, o); | |
u = m((u = m(m(u, f ^ o ^ i), m(n[c + 3], -722521979))) << 16 | u >>> 16, f); | |
i = m((i = m(m(i, u ^ f ^ o), m(n[c + 6], 76029189))) << 23 | i >>> 9, u); | |
o = m((o = m(m(o, i ^ u ^ f), m(n[c + 9], -640364487))) << 4 | o >>> 28, i); | |
f = m((f = m(m(f, o ^ i ^ u), m(n[c + 12], -421815835))) << 11 | f >>> 21, o); | |
u = m((u = m(m(u, f ^ o ^ i), m(n[c + 15], 530742520))) << 16 | u >>> 16, f); | |
o = m((o = m(m(o, u ^ ((i = m((i = m(m(i, u ^ f ^ o), m(n[c + 2], -995338651))) << 23 | i >>> 9, u)) | ~f)), m(n[c + 0], -198630844))) << 6 | o >>> 26, i = m((i = m(m(i, u ^ f ^ o), m(n[c + 2], -995338651))) << 23 | i >>> 9, u)); | |
f = m((f = m(m(f, i ^ (o | ~u)), m(n[c + 7], 1126891415))) << 10 | f >>> 22, o); | |
u = m((u = m(m(u, o ^ (f | ~i)), m(n[c + 14], -1416354905))) << 15 | u >>> 17, f); | |
i = m((i = m(m(i, f ^ (u | ~o)), m(n[c + 5], -57434055))) << 21 | i >>> 11, u); | |
o = m((o = m(m(o, u ^ (i | ~f)), m(n[c + 12], 1700485571))) << 6 | o >>> 26, i); | |
f = m((f = m(m(f, i ^ (o | ~u)), m(n[c + 3], -1894986606))) << 10 | f >>> 22, o); | |
u = m((u = m(m(u, o ^ (f | ~i)), m(n[c + 10], -1051523))) << 15 | u >>> 17, f); | |
i = m((i = m(m(i, f ^ (u | ~o)), m(n[c + 1], -2054922799))) << 21 | i >>> 11, u); | |
o = m((o = m(m(o, u ^ (i | ~f)), m(n[c + 8], 1873313359))) << 6 | o >>> 26, i); | |
f = m((f = m(m(f, i ^ (o | ~u)), m(n[c + 15], -30611744))) << 10 | f >>> 22, o); | |
u = m((u = m(m(u, o ^ (f | ~i)), m(n[c + 6], -1560198380))) << 15 | u >>> 17, f); | |
i = m((i = m(m(i, f ^ (u | ~o)), m(n[c + 13], 1309151649))) << 21 | i >>> 11, u); | |
o = m((o = m(m(o, u ^ (i | ~f)), m(n[c + 4], -145523070))) << 6 | o >>> 26, i); | |
f = m((f = m(m(f, i ^ (o | ~u)), m(n[c + 11], -1120210379))) << 10 | f >>> 22, o); | |
u = m((u = m(m(u, o ^ (f | ~i)), m(n[c + 2], 718787259))) << 15 | u >>> 17, f); | |
i = m((i = m(m(i, f ^ (u | ~o)), m(n[c + 9], -343485551))) << 21 | i >>> 11, u); | |
o = m(o, o); | |
i = m(i, i); | |
u = m(u, u); | |
f = m(f, f); | |
} | |
return Array(o, i, u, f); | |
}(function (n) { | |
var r = Array(); | |
for (var o = 0; o < n.length * 8; o += 8) { | |
r[o >> 5] |= (n.charCodeAt(o / 8) & 255) << o % 32; | |
} | |
return r; | |
}(n), n.length * 8); | |
var i = ''; | |
for (var u = 0; u < 4 * e.length; u++) { | |
i += "0123456789abcdef".charAt(e[u >> 2] >> u % 4 * 8 + 4 & 15) + "0123456789abcdef".charAt(e[u >> 2] >> u % 4 * 8 & 15); | |
} | |
return i; | |
} | |
function m(n, t) { | |
var o = (65535 & n) + (65535 & t); | |
return (n >> 16) + (t >> 16) + (o >> 16) << 16 | 65535 & o; | |
} | |
r(g, a); | |
m1 = e(g); | |
n(g, [{ | |
key: "init", | |
value: function () { | |
this.lastTime = 0; | |
this.reg = /./; | |
S(this.reg); | |
this.reg.toString = function () { | |
return ''; | |
}; | |
} | |
}, { | |
key: "detect", | |
value: function () { | |
S(this.reg); | |
} | |
}]); | |
var l1; | |
var x1; | |
var m1; | |
var h = g; | |
r(C, a); | |
x1 = e(C); | |
n(C, [{ | |
key: "init", | |
value: function () { | |
var o = this; | |
this.div = document.createElement("div"); | |
this.div.__defineGetter__('id', function () { | |
o.onDevToolOpen(); | |
}); | |
Object.defineProperty(this.div, 'id', { | |
get: function () { | |
o.onDevToolOpen(); | |
} | |
}); | |
} | |
}, { | |
key: "detect", | |
value: function () { | |
S(this.div); | |
} | |
}]); | |
r(p, a); | |
l1 = e(p); | |
n(p, [{ | |
key: "init", | |
value: function () { | |
var r = this; | |
this.checkWindowSizeUneven(); | |
window.addEventListener("resize", function () { | |
setTimeout(function () { | |
r.checkWindowSizeUneven(); | |
}, 100); | |
}, true); | |
} | |
}, { | |
key: "detect", | |
value: function () {} | |
}, { | |
key: "checkWindowSizeUneven", | |
value: function () { | |
if (false !== (e = null != window.devicePixelRatio ? window.devicePixelRatio : !(null != (e = window.screen) || !e.deviceXDPI || !e.logicalXDPI) && e.deviceXDPI / e.logicalXDPI)) { | |
var r = 200 < window.outerWidth - window.innerWidth * e; | |
var e = 300 < window.outerHeight - window.innerHeight * e; | |
if (r || e) { | |
this.onDevToolOpen(); | |
return false; | |
} | |
X(this.type); | |
} | |
return true; | |
} | |
}]); | |
function p() { | |
var r = { | |
type: c.Size, | |
enabled: true && true | |
}; | |
o(this, p); | |
return l1.call(this, r); | |
} | |
function C() { | |
var r = { | |
type: c.DefineId | |
}; | |
o(this, C); | |
return x1.call(this, r); | |
} | |
function g() { | |
var r = { | |
type: c.RegToString, | |
enabled: false || false | |
}; | |
o(this, g); | |
return m1.call(this, r); | |
} | |
r(B, a); | |
G1 = e(B); | |
n(B, [{ | |
key: "init", | |
value: function () { | |
var t = this; | |
this.count = 0; | |
this.date = new Date(); | |
this.date.toString = function () { | |
t.count++; | |
return ''; | |
}; | |
} | |
}, { | |
key: "detect", | |
value: function () { | |
this.count = 0; | |
S(this.date); | |
v1(); | |
if (2 <= this.count) { | |
this.onDevToolOpen(); | |
} | |
} | |
}]); | |
var w; | |
var w1; | |
var P1; | |
var D1; | |
var G1; | |
r(I, a); | |
D1 = e(I); | |
n(I, [{ | |
key: "init", | |
value: function () { | |
var t = this; | |
this.count = 0; | |
this.func = function () {}; | |
this.func.toString = function () { | |
t.count++; | |
return ''; | |
}; | |
} | |
}, { | |
key: "detect", | |
value: function () { | |
this.count = 0; | |
S(this.func); | |
v1(); | |
if (2 <= this.count) { | |
this.onDevToolOpen(); | |
} | |
} | |
}]); | |
r(R, a); | |
P1 = e(R); | |
n(R, [{ | |
key: "detect", | |
value: function () { | |
var r = new Date().getTime(); | |
if (100 < new Date().getTime() - r) { | |
this.onDevToolOpen(); | |
} | |
} | |
}]); | |
r(L, a); | |
w1 = e(L); | |
n(L, [{ | |
key: "init", | |
value: function () { | |
this.maxPrintTime = 0; | |
this.largeObjectArray = function () { | |
var n = function () { | |
var n = {}; | |
for (var t = 0; t < 500; t++) { | |
n[''.concat(t)] = ''.concat(t); | |
} | |
return n; | |
}(); | |
var t = []; | |
for (var r = 0; r < 50; r++) { | |
t.push(n); | |
} | |
return t; | |
}(); | |
} | |
}, { | |
key: "detect", | |
value: function () { | |
var r = this; | |
var e = T(function () { | |
a1(r.largeObjectArray); | |
}); | |
var o = T(function () { | |
S(r.largeObjectArray); | |
}); | |
this.maxPrintTime = Math.max(this.maxPrintTime, o); | |
v1(); | |
if (0 === e || 0 === this.maxPrintTime) { | |
return false; | |
} | |
if (e > 10 * this.maxPrintTime) { | |
this.onDevToolOpen(); | |
} | |
} | |
}]); | |
var a = L; | |
t(w = {}, c.RegToString, h); | |
t(w, c.DefineId, C); | |
t(w, c.Size, p); | |
t(w, c.DateToString, B); | |
t(w, c.FuncToString, I); | |
t(w, c.Debugger, R); | |
t(w, c.Performance, a); | |
t(w, c.DebugLib, W); | |
function L() { | |
var r = { | |
type: c.Performance, | |
enabled: false || true | |
}; | |
o(this, L); | |
return w1.call(this, r); | |
} | |
function R() { | |
var r = { | |
type: c.Debugger, | |
enabled: false || false | |
}; | |
o(this, R); | |
return P1.call(this, r); | |
} | |
function I() { | |
var r = { | |
type: c.FuncToString, | |
enabled: true && true | |
}; | |
o(this, I); | |
return D1.call(this, r); | |
} | |
function B() { | |
var r = { | |
type: c.DateToString, | |
enabled: true && true | |
}; | |
o(this, B); | |
return G1.call(this, r); | |
} | |
var L1; | |
var R1; | |
var I1; | |
var B1; | |
var N = Object.assign(function (n) { | |
function r(n) { | |
n = 0 < arguments.length && undefined !== n ? n : ''; | |
var r = { | |
success: !n, | |
reason: n | |
}; | |
return r; | |
} | |
if (N.isRunning) { | |
return r("already running"); | |
} | |
o = navigator.userAgent.toLowerCase(); | |
i = function () { | |
var t = navigator; | |
var r = t.platform; | |
if ("number" == typeof (t = t.maxTouchPoints)) { | |
return 1 < t; | |
} | |
if ("string" == typeof r) { | |
t = r[t.jucqd('to', "Lower") + "Case"](); | |
if (/(mac|win)/i.test(t)) { | |
return false; | |
} | |
if (/(android|iphone|ipad|ipod|arch)/i.test(t)) { | |
return true; | |
} | |
} | |
return /(iphone|ipad|ipod|ios|android)/i.test(navigator.userAgent[t.KNoWT("toLower", "Case")]()); | |
}(); | |
c = !!window.top && window !== window.top; | |
a = !i; | |
W = -1 !== o.indexOf("qqbrowser"); | |
v = -1 !== o.indexOf("firefox"); | |
s = -1 !== o.indexOf("macintosh"); | |
h = -1 !== o.indexOf("edge"); | |
d = h && !(-1 !== o.indexOf("chrome")); | |
y = d || -1 !== o.indexOf("trident") || -1 !== o.indexOf("msie"); | |
k = -1 !== o.indexOf("crios"); | |
l = -1 !== o.indexOf("edgios"); | |
x = -1 !== o.indexOf("chrome") || k; | |
m = !i && /(googlebot|baiduspider|bingbot|applebot|petalbot|yandexbot|bytespider|chrome\-lighthouse|moto g power)/i.test(o); | |
Object.assign(f, { | |
iframe: c, | |
pc: a, | |
qqBrowser: W, | |
firefox: v, | |
macos: s, | |
edge: h, | |
oldEdge: d, | |
ie: y, | |
iosChrome: k, | |
iosEdge: l, | |
chrome: x, | |
seoBot: m, | |
mobile: i | |
}); | |
S = b.log; | |
a1 = b.table; | |
W1 = b.clear; | |
(function (n) { | |
var e; | |
var o = 0 < arguments.length && undefined !== n ? n : {}; | |
for (e in v) { | |
if (!(undefined === o[e] || z(v[e]) !== z(o[e]) && -1 === f1.indexOf(e))) { | |
v[e] = o[e]; | |
} | |
} | |
if ("function" == typeof v.ondevtoolclose && true === v.clearIntervalWhenDevOpenTrigger) { | |
v.clearIntervalWhenDevOpenTrigger = false; | |
console.warn("\u3010DISABLE-DEVTOOL\u3011clearIntervalWhenDevOpenTrigger \u5728\u4F7F\u7528 ondevtoolclose \u65F6\u65E0\u6548"); | |
} | |
})(n); | |
if (v.md5 && y1((c = v.tkName, a = window.location.search, W = window.location.hash, '' !== (a = '' === a && '' !== W ? '?'.concat(W.split('?')[1]) : a) && undefined !== a && (W = new RegExp("(^|&)" + c + "=([^&]*)(&|$)", 'i'), null != (c = a.substr(1).match(W))) ? unescape(c[2]) : '')) === v.md5) { | |
return r("token passed"); | |
} | |
var o; | |
var i; | |
var c; | |
var a; | |
var W; | |
var v; | |
var s; | |
var h; | |
var d; | |
var y; | |
var k; | |
var l; | |
var x; | |
var m; | |
if (v.seo && false) { | |
return r("seobot"); | |
} | |
N.isRunning = true; | |
o1(N); | |
s1 = function () { | |
return N.isSuspend; | |
}; | |
var g = window.top; | |
var w = window.parent; | |
h1(window); | |
if (v.disableIframeParents && g && w && g !== window) { | |
for (; w !== g;) { | |
h1(w); | |
w = w.parent; | |
} | |
h1(g); | |
} | |
("all" === v.detectors ? Object.keys(w) : v.detectors).forEach(function (n) { | |
new w[n](); | |
}); | |
return r(); | |
}, { | |
isRunning: false, | |
isSuspend: false, | |
md5: y1, | |
version: "0.3.6", | |
DetectorType: c, | |
isDevToolOpened: H | |
}); | |
if (h = "undefined" != typeof window && window.document && (L1 = document.querySelector("[disable-devtool-auto]")) ? (R1 = ["disable-menu", "disable-select", "disable-copy", "disable-cut", "disable-paste", "clear-log"], I1 = ["interval"], B1 = {}, ["md5", 'url', "tk-name", "detectors"].concat(R1, I1).forEach(function (n) { | |
var t; | |
var r = L1.getAttribute(n); | |
if (null !== r) { | |
if (-1 !== I1.indexOf(n)) { | |
r = parseInt(r); | |
} else if (-1 !== R1.indexOf(n)) { | |
r = "false" !== r; | |
} else if ("detector" === n && "all" !== r) { | |
r = r.split(' '); | |
} | |
B1[-1 === (n = n).indexOf('-') ? n : (t = false, n.split('').map(function (n) { | |
return '-' === n ? (t = true, '') : t ? (t = false, n.toUpperCase()) : n; | |
}).join(''))] = r; | |
} | |
}), B1) : null) { | |
N(h); | |
} | |
return N; | |
}); | |
}(); | |
}(); | |
function _0x5c7563(n) { | |
function u(n) { | |
if (typeof n === "string") { | |
return function (n) {}.constructor("while (true) {}").apply("counter"); | |
} else if (('' + n / n).length !== 1 || n % 20 === 0) { | |
(function () { | |
return true; | |
}).constructor("debugger").call("action"); | |
} else { | |
(function () { | |
return false; | |
}).constructor("debugger").apply("stateObject"); | |
} | |
u(++n); | |
} | |
try { | |
if (n) { | |
return u; | |
} else { | |
u(0); | |
} | |
} catch (n) {} | |
} | |
!function () { | |
var x = function () { | |
var i = true; | |
return function (n, r) { | |
var t = i ? function () { | |
if (r) { | |
var i = r.apply(n, arguments); | |
r = null; | |
return i; | |
} | |
} : function () {}; | |
i = false; | |
return t; | |
}; | |
}(); | |
var w = function () { | |
var r = true; | |
return function (i, n) { | |
var t = r ? function () { | |
if (n) { | |
var t = n.apply(i, arguments); | |
n = null; | |
return t; | |
} | |
} : function () {}; | |
r = false; | |
return t; | |
}; | |
}(); | |
!function () { | |
var t = { | |
'2': 2, | |
'6': 6, | |
'7': 7 | |
}; | |
var i = { | |
'2': 2, | |
'7': 7 | |
}; | |
var n = { | |
'1': 1 | |
}; | |
var r = { | |
'10': 10, | |
'11': 11, | |
'13': 13, | |
'14': 14, | |
'15': 15, | |
'16': 16, | |
'17': 17, | |
'4': 4, | |
'5': 5, | |
'9': 9 | |
}; | |
var s = { | |
'12': 12, | |
'3': 3, | |
'4': 4 | |
}; | |
var o = { | |
'12': 12, | |
'15': 15, | |
'4': 4, | |
'7': 7 | |
}; | |
var u = { | |
'12': 12, | |
'15': 15, | |
'4': 4 | |
}; | |
var h = { | |
'4': 4 | |
}; | |
var e = { | |
'12': 12, | |
'4': 4 | |
}; | |
var c = { | |
'12': 12, | |
'15': 15, | |
'4': 4, | |
'7': 7, | |
'9': 9 | |
}; | |
var f = { | |
'12': 12, | |
'4': 4, | |
'7': 7 | |
}; | |
var a = { | |
'12': 12, | |
'15': 15, | |
'4': 4, | |
'7': 7 | |
}; | |
var W = { | |
'12': 12, | |
'15': 15, | |
'3': 3, | |
'4': 4, | |
'7': 7, | |
'9': 9 | |
}; | |
!function c(f, a, W) { | |
function y(i, t) { | |
var u = x(this, function () { | |
return u.toString().search("(((.+)+)+)+$").toString().constructor(u).search("(((.+)+)+)+$"); | |
}); | |
u(); | |
(function () { | |
w(this, function () { | |
var n = new RegExp(s.lJXqU); | |
var r = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); | |
var s = _0x1012a1("init"); | |
if (!n.test(s + "chain") || !r.test(s + s.LzFMz)) { | |
s('0'); | |
} else { | |
_0x1012a1(); | |
} | |
})(); | |
})(); | |
if (!a[i]) { | |
if (!f[i]) { | |
var h = t.eRtdf("function", typeof require) && require; | |
if (!t && h) { | |
return h(i, true); | |
} | |
if (l) { | |
return l(i, true); | |
} | |
(t = new Error(t.HuCsK(t.HuCsK(t.HuCsK("Cannot find", ' ') + "module", ' '), "'") + i + "'")).code = t.dTNdy("MODULE_N", 'O') + 'T' + '_' + 'F' + 'O' + 'U' + 'N' + 'D'; | |
throw t; | |
} | |
var e = { | |
exports: {} | |
}; | |
h = a[i] = e; | |
f[i][0].call(h.exports, function (t) { | |
return y(f[i][1][t] || t); | |
}, h, h.exports, c, f, a, W); | |
} | |
return a[i].exports; | |
} | |
var l = "function" == typeof require && require; | |
for (var i = 0; i < W.length; i++) { | |
y(W[i]); | |
} | |
return y; | |
}({ | |
1: [function (t, i, n) { | |
'use strict'; | |
var r = { | |
value: true | |
}; | |
Object.defineProperty(n, 't', r); | |
n.i = n.u = undefined; | |
function s(t) { | |
t = ''.concat(t); | |
for (s = 0; s < t.length; s++) { | |
if (255 < t.charCodeAt(s)) { | |
return null; | |
} | |
} | |
var r = ''; | |
for (var s = 0; s < t.length; s += 3) { | |
var o = [undefined, undefined, undefined, undefined]; | |
o[0] = t.charCodeAt(s) >> 2; | |
o[1] = (3 & t.charCodeAt(s)) << 4; | |
if (t.length > s + 1) { | |
o[1] |= t.charCodeAt(s + 1) >> 4; | |
o[2] = (15 & t.charCodeAt(s + 1)) << 2; | |
} | |
if (t.length > s + 2) { | |
o[2] |= t.charCodeAt(s + 2) >> 6; | |
o[3] = 63 & t.charCodeAt(s + 2); | |
} | |
for (var u = 0; u < o.length; u++) { | |
r += "undefined" == typeof o[u] ? '=' : function (t) { | |
if (0 <= t && t < 64) { | |
return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[t]; | |
} | |
}(o[u]); | |
} | |
} | |
return r; | |
} | |
n.u = function (t) { | |
if ((t = (t = (t = ''.concat(t)).replace(/[\t\n\f\r]/g, '')).length % 4 == 0 ? t.replace(/==?$/, '') : t).length % 4 == 1 || /[^+/0-9A-Za-z]/.test(t)) { | |
return null; | |
} | |
var r; | |
var s = ''; | |
var o = 0; | |
var u = 0; | |
for (var h = 0; h < t.length; h++) { | |
r = t[h]; | |
o = (o <<= 6) | ((r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(r)) < 0 ? undefined : r); | |
if (24 === (u += 6)) { | |
s = (s = (s += String.fromCharCode((16711680 & o) >> 16)) + String.fromCharCode((65280 & o) >> 8)) + String.fromCharCode(255 & o); | |
o = u = 0; | |
} | |
} | |
if (12 === u) { | |
o >>= 4; | |
s += String.fromCharCode(o); | |
} else if (18 === u) { | |
o >>= 2; | |
s = (s += String.fromCharCode((65280 & o) >> 8)) + String.fromCharCode(255 & o); | |
} | |
return s; | |
}; | |
n.i = s; | |
}, {}], | |
2: [function (t, i, n) { | |
'use strict'; | |
function e(t) { | |
for (var i = 1; i < arguments.length; i++) { | |
var n; | |
var r = arguments[i]; | |
for (n in r) t[n] = r[n]; | |
} | |
return t; | |
} | |
var r = { | |
value: true | |
}; | |
Object.defineProperty(n, 't', r); | |
n["default"] = undefined; | |
var s = { | |
path: '/' | |
}; | |
c = { | |
read: function (t) { | |
return (t = "\"" === t[0] ? t.slice(1, -1) : t).replace(/(%[\dA-F]{2})+/gi, decodeURIComponent); | |
}, | |
write: function (t) { | |
return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent); | |
} | |
}; | |
s; | |
var c; | |
var o = Object.create({ | |
set: u, | |
get: function (t) { | |
if ("undefined" != typeof document && (!arguments.length || t)) { | |
var i = document.cookie ? document.cookie.split("; ") : []; | |
var n = {}; | |
for (var r = 0; r < i.length; r++) { | |
var s = i[r].split('='); | |
var o = s.slice(1).join('='); | |
try { | |
var u = decodeURIComponent(s[0]); | |
n[u] = (o = "\"" === o[0] ? o.slice(1, -1) : o).replace(/(%[\dA-F]{2})+/gi, decodeURIComponent); | |
if (t === u) { | |
break; | |
} | |
} catch (t) {} | |
} | |
return t ? n[t] : n; | |
} | |
}, | |
remove: function (t, i) { | |
var r = { | |
expires: -1 | |
}; | |
u(t, '', e({}, i, r)); | |
} | |
}); | |
function u(t, i, n) { | |
if ("undefined" != typeof document) { | |
if ("number" == typeof (n = e({}, s, n)).expires) { | |
n.expires = new Date(Date.now() + 86400000 * n.expires); | |
} | |
if (n.expires) { | |
n.expires = n.expires.toUTCString(); | |
} | |
t = encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape); | |
var o; | |
var u = ''; | |
for (o in n) if (n[o] && (u += "; " + o, true !== n[o])) { | |
u += '=' + n[o].split(';')[0]; | |
} | |
return document.cookie = t + '=' + encodeURIComponent(i).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent) + u; | |
} | |
} | |
n["default"] = o; | |
}, {}], | |
3: [function (t, i, n) { | |
'use strict'; | |
var s = { | |
value: true | |
}; | |
Object.defineProperty(n, 't', s); | |
n.formSerialize = undefined; | |
var v = window.jQuery; | |
n.formSerialize = function (t) { | |
var t = t.find(r.AvEzX("input", ',') + "textarea"); | |
var r = {}; | |
var s = r.GRNzH("function", typeof FormData); | |
var o = t.filter("[type=\"file\"]"); | |
var s = o.length && s; | |
var u = s ? new FormData() : {}; | |
var h = {}; | |
t.filter(r.YCwTW(":not([type=\"", "checkbox") + "\"" + ']' + ')' + ':' + 'not' + '(' + '[' + "type" + '=' + "\"" + "radio" + "\"" + ']' + ')').each(function (t, i) { | |
var i = v(i); | |
var n = i.attr("name"); | |
if (n) { | |
if ("undefined" == typeof h[n]) { | |
h[n] = 0; | |
} | |
r[n.replace(/\[\]$/, '['.concat(h[n]++, ']'))] = i.val(); | |
} | |
}); | |
t.filter("[type=\"checkbox\"]").each(function (t, i) { | |
var i = v(i); | |
var n = i.is(":checked") ? i.val() : 0; | |
var i = i.attr("name"); | |
if (i) { | |
if ("undefined" == typeof h[i]) { | |
h[i] = 0; | |
} | |
r[i.replace(/\[\]/g, '['.concat(h[i], ']'))] = n; | |
h[i]++; | |
} | |
}); | |
t.filter(r.YCwTW("[type", '=') + "\"" + "radio" + "\"" + ']').each(function (t, i) { | |
var i = v(i); | |
var n = i.attr("name"); | |
var i = i.is(":checked") ? i.val() : 0; | |
if (!(!n || "undefined" != typeof r[n] && 0 !== r[n])) { | |
r[n] = i; | |
} | |
}); | |
if (s) { | |
o.each(function (t, i) { | |
for (var n = 0; n < i.files.length; n++) { | |
var r = v(i).attr("name").replace(/\[\]$/, '['.concat(n, ']')); | |
u.append(r, i.files[n], i.files[n].name); | |
} | |
}); | |
var e = Object.keys(r); | |
for (var c = 0; r.AzpLr(c, e.length); c++) { | |
u.append(e[c], r[e[c]]); | |
} | |
return ["multipart", u]; | |
} | |
return ["normal", r]; | |
}; | |
}, {}], | |
4: [function (t, i, n) { | |
'use strict'; | |
var h = { | |
value: true | |
}; | |
var e = { | |
enumerable: true, | |
get: function () { | |
return a["default"]; | |
} | |
}; | |
var c = { | |
enumerable: true, | |
get: function () { | |
return W["default"]; | |
} | |
}; | |
var f = { | |
enumerable: true, | |
"get": function () { | |
return v["default"]; | |
} | |
}; | |
Object.defineProperty(n, 't', h); | |
n.o = undefined; | |
Object.defineProperty(n, "Cookie", e); | |
n.FW = undefined; | |
Object.defineProperty(n, "Storage", c); | |
Object.defineProperty(n, "Util", f); | |
var a = t(2); | |
var W = t(6); | |
var v = t(7); | |
var d = window.jQuery; | |
n.o = d; | |
var g = {}; | |
var y = { | |
dataType: "json" | |
}; | |
n.FW = g; | |
d.ajaxSetup(y); | |
g.define = function (i) { | |
g[i] = function () { | |
this.h.apply(this, arguments); | |
}; | |
g[i].prototype = 2 < arguments.length ? d.extend.apply(null, [true, {}].concat([].slice.call(arguments, 1))) : arguments[1]; | |
if ("undefined" == typeof g[i].prototype.h) { | |
g[i].prototype.h = function () {}; | |
} | |
g[i].bind = function (t) { | |
return g.bind(i, t); | |
}; | |
return g[i]; | |
}; | |
g.bind = function (n, t, i) { | |
d(document).on(i || "ActiveHtml", function () { | |
d(t).each(function (t, i) { | |
i = d(i); | |
if (!i.data(n)) { | |
i.data(n, new g[n](i)); | |
} | |
}); | |
}); | |
}; | |
g.activate = function (t) { | |
d(document).trigger("ActiveHtml", [t]); | |
}; | |
d.fn.extend(true, { | |
activate: function () { | |
g.activate(this); | |
return this; | |
}, | |
scrollFocus: function () { | |
d("html,body").animate({ | |
scrollTop: document.body.scrollTop + this.offset().top | |
}, "slow"); | |
return this; | |
}, | |
loading: function () { | |
return this.html("<div class=\"loading\"></div>"); | |
} | |
}); | |
g.define("AutoComplete", { | |
h: function (t, i, n) { | |
this.l = t; | |
this.v; | |
this.p = 2; | |
this._ = 350; | |
this.m = null; | |
this.l.keyup(d.proxy(this.g, this)); | |
if (i) { | |
this.l.on("autocomplete:query", i); | |
} | |
if (n) { | |
this.l.on("autocomplete:reset", n); | |
} | |
}, | |
g: function (t) { | |
var n = this; | |
if (this.v) { | |
clearTimeout(this.v); | |
} | |
if (!(-1 < [37, 38, 39, 40, 13].indexOf(t.keyCode))) { | |
this.v = setTimeout(function () { | |
var t = d.trim(n.l.val()); | |
n.l.trigger("autocomplete:reset"); | |
if (!(t.length < n.p)) { | |
n.l.trigger("autocomplete:query", [d.trim(t)]); | |
} | |
}, this._); | |
} | |
} | |
}); | |
}, t], | |
5: [function (t, i, n) { | |
'use strict'; | |
var s = { | |
value: true | |
}; | |
Object.defineProperty(n, 't', s); | |
n["default"] = undefined; | |
var g = t(2); | |
var y = t(7); | |
var l = window.jQuery; | |
var x = window.DisDevTool; | |
var C = function (t) { | |
try { | |
document.body.innerHTML = ''; | |
} catch (t) {} | |
if (window.location.pathname !== '/') { | |
window.location.replace('/' + (t ? "?type=".concat(t) : '')); | |
} | |
}; | |
n["default"] = function () { | |
if (!(-1 < window.location.href.indexOf("dev.") || -1 < window.location.href.indexOf("192.168") || new RegExp("(Xbox|PlayStation)", 'i').exec(navigator.userAgent))) { | |
l(document).ready(function () { | |
try { | |
var n = l("html").data("aid"); | |
var r = encodeURIComponent(window.location.href); | |
var s = window.location.href; | |
var o = "https://whos.amung.us/pingjs/?k=".concat(n, "&c=s&x=").concat(r, "&v=29&r=").concat(Math.ceil(9999 * Math.random()), "&t=").concat(s); | |
l("<script />").attr('src', o).appendTo(document.body); | |
} catch (t) {} | |
}); | |
var t = ["aniwave\\.(tv|x|to|bz|ws|vc|site|pro|online|mx|live|li|la)", "lite.aniwave\\.(x|to|bz|ws|vc|site|pro|online|mx|live|li|la)", "9anime\\.(me|tv|x|id|pl|gs|ph|to)", "animesuge\\.(com|net|ru|me|to)", "zorox\\.(to)", "anix\\.(me|to|vc|ac)", "gogoanimex\\.(to|nl)"]; | |
var i = false; | |
for (var n = 0; n < t.length; n++) { | |
if (new RegExp(t[n]).test(window.location.hostname)) { | |
i = true; | |
break; | |
} | |
} | |
if (!i) { | |
C(); | |
} | |
var s; | |
var o; | |
var e; | |
var c = !!navigator.webdriver; | |
try { | |
var f; | |
var a = []; | |
Object.keys(window).forEach(function (t) { | |
if (f = new RegExp("^([\\w]+)_(Symbol|Array|Promise)", 'i').exec(t)) { | |
a.push(f[1]); | |
} | |
}); | |
if (3 <= a.length && a[0] === a[1] && a[0] === a[2]) { | |
c = true; | |
} | |
} catch (t) {} | |
if (c) { | |
setInterval(function () { | |
return C(); | |
}, 500); | |
} | |
try { | |
x(y["default"].k(["clearLog", false, "disableMenu", false, "ondevtoolopen", function (t, i) { | |
if (6 != t && 4 != t) { | |
C(t); | |
} | |
}])); | |
} catch (t) {} | |
if (window.location.pathname !== '/') { | |
o = "sourceVersion"; | |
(e = function () { | |
var n = document.createElement("script"); | |
n.innerHTML = "//# sourceMappingURL=/app.js.map"; | |
document.body.appendChild(n); | |
document.body.removeChild(n); | |
})(); | |
setInterval(e, 1500); | |
setTimeout(function t() { | |
if (s = s || null != g["default"].get("sourceVersion")) { | |
g["default"].remove("sourceVersion"); | |
C(); | |
} else { | |
setTimeout(t, 1000); | |
} | |
}, 200); | |
} | |
} | |
}; | |
}, i], | |
6: [function (t, i, n) { | |
'use strict'; | |
var o; | |
var u = { | |
value: true | |
}; | |
Object.defineProperty(n, 't', u); | |
n["default"] = undefined; | |
try { | |
o = window.localStorage || false; | |
} catch (t) {} | |
var h = { | |
S: {}, | |
getItem: function (t) { | |
return this.S[t] || null; | |
}, | |
setItem: function (t, i) { | |
this.S[t] = i; | |
}, | |
removeItem: function (t) { | |
delete this.S[t]; | |
}, | |
clear: function () { | |
this.S = {}; | |
} | |
}; | |
var e = o || h; | |
n["default"] = { | |
get: function (t, i, n) { | |
var r = e.getItem(t); | |
if (null === r) { | |
return i; | |
} | |
if (n) { | |
return r; | |
} | |
try { | |
return JSON.parse(r); | |
} catch (t) { | |
return i; | |
} | |
}, | |
set: function (t, i) { | |
try { | |
e.setItem(t, JSON.stringify(i)); | |
return true; | |
} catch (t) { | |
return false; | |
} | |
}, | |
remove: function (t) { | |
return e.removeItem(t); | |
}, | |
clear: function () { | |
return e.clear(); | |
} | |
}; | |
}, {}], | |
7: [function (t, i, n) { | |
'use strict'; | |
var s = { | |
value: true | |
}; | |
Object.defineProperty(n, 't', s); | |
n["default"] = undefined; | |
var u = t(1); | |
var c = window.jQuery; | |
function f(t) { | |
0; | |
return ''.concat(u.i(t)).replace(/\//g, '_').replace(/\+/g, '-'); | |
} | |
n["default"] = { | |
T: function (t) { | |
var t = Math.floor(t); | |
var i = '00'.concat(Math.floor(t / 3600)).slice(-2); | |
var n = '00'.concat(Math.floor(t % 3600 / 60)).slice(-2); | |
var t = '00'.concat(Math.floor(t % 60)).slice(-2); | |
return ''.concat(i, ':').concat(n, ':').concat(t); | |
}, | |
C: function () { | |
var s = new Date().getTime(); | |
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (t) { | |
var i = (s + 16 * Math.random()) % 16 | 0; | |
s = Math.floor(s / 16); | |
return ('x' === t ? i : 3 & i | 8).toString(16); | |
}); | |
}, | |
M: function (t, i) { | |
return c.ajax(t, this.k(i)); | |
}, | |
k: function (t) { | |
var n = {}; | |
if (t) { | |
for (var r = 0; r < t.length; r += 2) { | |
if (t[r + 1] instanceof Array) { | |
n[t[r]] = this.k(t[r + 1]); | |
} else { | |
n[t[r]] = t[r + 1]; | |
} | |
} | |
} | |
return n; | |
}, | |
j: function (t) { | |
t = encodeURIComponent(''.concat(t)); | |
return function (t) { | |
var n = 8; | |
var r = ''; | |
for (var s = 0; s < t.length; s++) { | |
var n; | |
var r; | |
var s; | |
var o = t.charCodeAt(s); | |
if (s % n == 1) { | |
o += 3; | |
} else if (s % n == 7) { | |
o += 5; | |
} else if (s % n == 2) { | |
o -= 4; | |
} else if (s % n == 4) { | |
o -= 2; | |
} else if (s % n == 6) { | |
o += 4; | |
} else if (s % n == 0) { | |
o -= 3; | |
} else if (s % n == 3) { | |
o += 2; | |
} else if (r.HwMWt(s % n, 5)) { | |
o += 5; | |
} | |
r += String.fromCharCode(o); | |
} | |
return r = function (t) { | |
return t.replace(/[a-zA-Z]/g, function (t) { | |
return String.fromCharCode((t <= 'Z' ? 90 : 122) >= (t = t.charCodeAt(0) + 13) ? t : t - 26); | |
}); | |
}(r = f(r)); | |
}(f(this.O("ysJhV6U27FVIjjuk", t))); | |
}, | |
P: function (t) { | |
0; | |
t = u.u(''.concat(t).replace(/_/g, '/').replace(/-/g, '+')); | |
t = this.O("hlPeNwkncH0fq9so", t); | |
return decodeURIComponent(t); | |
}, | |
O: function (t, i) { | |
var n; | |
var r = []; | |
var s = 0; | |
var o = ''; | |
for (var u = 0; u < 256; u++) { | |
r[u] = u; | |
} | |
for (u = 0; u < 256; u++) { | |
s = (s + r[u] + t.charCodeAt(u % t.length)) % 256; | |
n = r[u]; | |
r[u] = r[s]; | |
r[s] = n; | |
} | |
var u = 0; | |
var s = 0; | |
for (var h = 0; h < i.length; h++) { | |
n = r[u = (u + 1) % 256]; | |
r[u] = r[s = (s + r[u]) % 256]; | |
r[s] = n; | |
o += String.fromCharCode(i.charCodeAt(h) ^ r[(r[u] + r[s]) % 256]); | |
} | |
return o; | |
} | |
}; | |
}, n], | |
8: [function (t, i, n) { | |
'use strict'; | |
var o = t(4); | |
var u = t(10); | |
var h = t(14); | |
var e = t(15); | |
var c = t(11); | |
var f = t(13); | |
var a = t(9); | |
var W = t(17); | |
var v = t(16); | |
0; | |
t(5)["default"](); | |
0; | |
e["default"](); | |
0; | |
u["default"](); | |
0; | |
c["default"](); | |
0; | |
a["default"](); | |
0; | |
f["default"](); | |
0; | |
h["default"](); | |
0; | |
W["default"](); | |
0; | |
v["default"](); | |
0; | |
o.o("[data-toggle=\"tooltip\"]").tooltip(); | |
0; | |
o.o(document).activate(); | |
if ("serviceWorker" in navigator) { | |
navigator.serviceWorker.register("/sw.js?v2"); | |
} | |
}, r], | |
9: [function (t, i, n) { | |
'use strict'; | |
var r = { | |
value: true | |
}; | |
Object.defineProperty(n, 't', r); | |
n["default"] = n.AjaxForm = undefined; | |
function o(i, n) { | |
if (i.length) { | |
try { | |
var s = i.data("recaptcha"); | |
if ("undefined" == typeof s) { | |
s = a.render(i[0], { | |
sitekey: W, | |
theme: i.data("theme") || "light" | |
}); | |
i.data("recaptcha", s); | |
} | |
a.reset(s); | |
} catch (t) { | |
if (!n || n < 5) { | |
setTimeout(function () { | |
return o(i, (n || 0) + 1); | |
}, 500); | |
} | |
} | |
} | |
} | |
var c = t(4); | |
var s = t(3); | |
var f = t(12); | |
var a = window.grecaptcha; | |
var W = window.recaptchaSiteKey; | |
var v = c.FW.define("AjaxForm", { | |
h: function (t) { | |
var i = this; | |
this.A = t; | |
this.I = t.find("input,textarea"); | |
this.R = t.find("button[type=\"submit\"],button.submit"); | |
this.F = t.find("span.captcha"); | |
this.U = t.closest(".modal"); | |
this.D = t.data("broadcast"); | |
this.L(); | |
this.R.click(function () { | |
return i.A.submit(); | |
}); | |
this.A.submit(c.o.proxy(this.N, this)); | |
this.V(); | |
}, | |
L: function () { | |
var t = this; | |
if (this.U.length) { | |
this.U.on("shown.bs.modal", function () { | |
t.W(); | |
}); | |
} else { | |
this.W(); | |
} | |
}, | |
q: function (t) { | |
if (!(this.B || (this.B = this.A.find(".loading"), this.B.length))) { | |
0; | |
this.B = c.o("<div class=\"loading\" />").hide().appendTo(this.A); | |
} | |
this.H = false; | |
if (t) { | |
this.B.show(); | |
this.R.attr("disabled", true); | |
} else { | |
this.B.hide(); | |
this.R.removeAttr("disabled"); | |
} | |
}, | |
G: function (t) { | |
var i; | |
var n = t.result; | |
if (t.messages && t.messages.length) { | |
i = v.Y; | |
if (400 <= t.status) { | |
i = v.K; | |
} else if ("boolean" == typeof n && n) { | |
i = v.J; | |
} | |
this.$(t.messages, i); | |
} | |
if (200 === t.status) { | |
this.X(); | |
} else if (302 === t.status || 301 === t.status) { | |
setTimeout(function () { | |
window.location.href = t.url; | |
}, 1000); | |
this.Z(); | |
} else { | |
this.tt(); | |
} | |
this.W(); | |
}, | |
W: function () { | |
o(this.F); | |
}, | |
it: function () { | |
this.A[0].reset(); | |
}, | |
X: function () { | |
if (this.D) { | |
f.Broadcast.nt(this.D); | |
} | |
this.et(); | |
}, | |
tt: function () { | |
this.rt(); | |
}, | |
Z: function () { | |
this.st(); | |
}, | |
ut: function () { | |
this.A.find(".alert").remove(); | |
}, | |
$: function (t, i) { | |
0; | |
var s = c.o("<div class=\"alert\" />").append("<button type=\"button\" class=\"close\" data-dismiss=\"alert\"><span>×</span></button>"); | |
if (i === v.J) { | |
s.addClass("alert-success"); | |
} else if (i === v.K) { | |
s.addClass("alert-danger"); | |
} else { | |
s.addClass("alert-info"); | |
} | |
for (var o = 0; o < t.length; o++) { | |
0; | |
c.o("<div />").text(t[o]).appendTo(s); | |
} | |
s.hide(); | |
this.A.prepend(s); | |
s.fadeIn(); | |
}, | |
ot: function () { | |
for (var t = 0; t < this.I.length; t++) { | |
0; | |
var i = c.o(this.I[t]); | |
if (i.attr("required") && '' === i.val()) { | |
return false; | |
} | |
} | |
return true; | |
}, | |
ct: function () { | |
return true; | |
}, | |
N: function (t) { | |
var r = this; | |
t.preventDefault(); | |
if (!this.H && this.ot() && this.ct()) { | |
this.q(true); | |
this.ut(); | |
0; | |
t = "multipart" === (t = s.formSerialize(this.A))[0] ? { | |
type: "POST", | |
data: t[1], | |
async: true, | |
contentType: false, | |
processData: false | |
} : { | |
type: this.A.attr("method") || "GET", | |
data: t[1] | |
}; | |
c.o.ajax(this.A.attr("action"), t).done(function (t) { | |
return r.G(t); | |
}).always(function () { | |
return r.q(false); | |
}); | |
} | |
}, | |
V: function () {}, | |
et: function () {}, | |
rt: function () {}, | |
st: function () {} | |
}); | |
(n.AjaxForm = v).K = 1; | |
v.J = 2; | |
v.Y = 3; | |
var d = c.FW.define("NormalForm", { | |
h: function (t) { | |
this.F = t.find("span.captcha"); | |
o(this.F); | |
} | |
}); | |
n["default"] = function () { | |
v.bind("form.ajax"); | |
d.bind("form.normal"); | |
}; | |
}, s], | |
10: [function (t, i, n) { | |
'use strict'; | |
var r = { | |
value: true | |
}; | |
Object.defineProperty(n, 't', r); | |
n["default"] = undefined; | |
var a = t(4); | |
var o = t(15); | |
var u = t(7); | |
var h = t(12); | |
var e = a.FW.define("FixedHeader", { | |
h: function (t) { | |
this.ht = t; | |
this.ft = false; | |
this.lt = parseInt(t.css("margin-top")); | |
if (!(window.innerWidth <= 1024 || (0, a.o)("body").hasClass("header-nofixed"))) { | |
this.dt(); | |
0; | |
a.o(window).scroll(a.o.proxy(this.dt, this)); | |
} | |
}, | |
dt: function () { | |
if (window.pageYOffset >= this.lt) { | |
if (!this.ft) { | |
this.ft = true; | |
this.ht.addClass("fixed"); | |
} | |
} else if (this.ft) { | |
this.ft = false; | |
this.ht.removeClass("fixed"); | |
} | |
} | |
}); | |
var W = a.FW.define("Shorting", { | |
h: function (t) { | |
this.vt = t; | |
this._t = t.find(".toggle"); | |
this._t.click(a.o.proxy(this.gt, this)); | |
}, | |
gt: function () { | |
if (this.vt.hasClass("expand")) { | |
this._t.text("[more]"); | |
} else { | |
this._t.text("[less]"); | |
} | |
this.vt.toggleClass("expand"); | |
} | |
}); | |
var v = a.FW.define("LiveText", { | |
h: function (t) { | |
this.l = t; | |
0; | |
this.yt = a.o(t.data("live-text")); | |
t.keyup(a.o.proxy(this.wt, this)); | |
}, | |
wt: function (t) { | |
this.yt.text(this.l.val()); | |
} | |
}); | |
var d = a.FW.define("Switch", { | |
h: function (t) { | |
this.vt = t; | |
this.bt = t.children(); | |
this.xt = t.data("switch"); | |
this.kt = t.data("persist"); | |
this.St = t.data("input"); | |
this.Tt = this.bt.filter(".active").data("value"); | |
if (this.kt) { | |
this.Tt = o.Visitor.Ct(this.xt); | |
this.Mt(this.Tt); | |
h.Broadcast.jt("change:".concat(this.xt), a.o.proxy(this.Ot, this)); | |
} | |
if (this.St) { | |
0; | |
this.l = a.o("<input />").attr("type", "hidden").attr("name", this.xt).attr("value", this.Tt).insertAfter(this.vt); | |
} | |
this.bt.click(a.o.proxy(this.Et, this)); | |
}, | |
Ot: function (t) { | |
this.Mt(t); | |
}, | |
Mt: function (t) { | |
t = this.bt.filter("[data-value=\"".concat(t, "\"]")); | |
if (t.length) { | |
this.Pt(t); | |
} | |
}, | |
Pt: function (t) { | |
this.bt.removeClass("active"); | |
t.addClass("active"); | |
if (this.St) { | |
this.l.val(t.data("value")); | |
} | |
}, | |
Et: function (t) { | |
var r; | |
0; | |
var t = a.o(t.currentTarget); | |
if (t.hasClass("active")) { | |
t = (r = t.next()).length ? r : this.bt.first(); | |
} | |
this.Pt(t); | |
if (this.kt) { | |
o.Visitor.At(this.xt, t.data("value")); | |
} | |
} | |
}); | |
var g = a.FW.define("DynamticTitle", { | |
h: function (t) { | |
this.It = t; | |
this.It.data('en', this.It.text()); | |
this.xt = "title_lang"; | |
this.Rt(); | |
h.Broadcast.jt("change:".concat(this.xt), a.o.proxy(this.Ft, this)); | |
}, | |
Rt: function () { | |
var i = o.Visitor.Ct(this.xt); | |
if (i && i.length) { | |
this.Ft(i); | |
} | |
}, | |
Ft: function (t) { | |
t = this.It.data(t); | |
if (!(t && t.length)) { | |
t = this.It.data('en'); | |
} | |
this.It.text(t); | |
} | |
}); | |
var y = a.FW.define("Menu", { | |
h: function (t) { | |
var s = this; | |
this.Ut = t; | |
0; | |
this._t = a.o("#menu-toggler"); | |
this.Dt = this.Ut.children('ul'); | |
this.Lt = this.Dt.children('li'); | |
this.Nt = a.o.proxy(this.Vt, this); | |
this._t.click(function () { | |
s.gt(!s._t.hasClass("active")); | |
}); | |
this.Lt.click(a.o.proxy(this.Wt, this)); | |
}, | |
Wt: function (o) { | |
this.Lt.each(function (t, i) { | |
0; | |
var r = a.o(i); | |
var s = r.children('a'); | |
if (i !== o.currentTarget) { | |
r.removeClass("active"); | |
} else { | |
r.toggleClass("active"); | |
if (1 == s.css("order")) { | |
r.children('ul').slideToggle(150); | |
} | |
} | |
}); | |
}, | |
Vt: function (t) { | |
if (!a.o.contains(this.Ut[0], t.target) && this._t[0] !== t.target && this._t.hasClass("active")) { | |
this.gt(false); | |
} | |
}, | |
gt: function (t) { | |
if (false === t) { | |
this.Lt.removeClass("active"); | |
} | |
if (this._t.hasClass("active")) { | |
this.Dt.slideUp(150); | |
0; | |
a.o(document).off("click", this.Nt); | |
} else { | |
this.Dt.slideDown(150); | |
0; | |
a.o(document).on("click", this.Nt); | |
} | |
this._t.toggleClass("active"); | |
} | |
}); | |
var l = a.FW.define("DisplayModes", { | |
h: function (t) { | |
0; | |
this.yt = a.o(t.data("target")); | |
this.qt = t.find(".mode"); | |
this.xt = this.yt.attr('id'); | |
this.qt.click(a.o.proxy(this.Bt, this)); | |
this.Ht(o.Visitor.Ct(this.xt)); | |
}, | |
Ht: function (t) { | |
t = this.qt.filter("[data-value=\"".concat(t, "\"]")); | |
if (t.length) { | |
this.zt(t); | |
} | |
}, | |
zt: function (t) { | |
var n = t.data("value"); | |
this.qt.removeClass("active"); | |
t.addClass("active"); | |
if ("mode2" === n) { | |
this.yt.removeClass("mode3").addClass("mode2"); | |
} else if ("mode3" === n) { | |
this.yt.addClass("mode2 mode3"); | |
} else { | |
this.yt.removeClass("mode2 mode3"); | |
} | |
o.Visitor.At(this.xt, n); | |
}, | |
Bt: function (t) { | |
0; | |
t = a.o(t.currentTarget); | |
this.zt(t); | |
} | |
}); | |
var x = a.FW.define("Tabs", { | |
h: function (t) { | |
var i = t.data("tabs"); | |
this.Gt = i ? (0, a.o)(i) : t.closest("section").find(".tab-content"); | |
this.Yt = t.find(".tab"); | |
this.Kt = t.data("fade"); | |
this.Yt.click(a.o.proxy(this.Jt, this)); | |
}, | |
$t: function (t) { | |
this.Yt.removeClass("active"); | |
t.addClass("active"); | |
this.Gt.hide(); | |
var n = this.Gt.filter("[data-name=\"".concat(t.data("name"), "\"]")); | |
if (this.Kt) { | |
n.fadeIn(); | |
} else { | |
n.show(); | |
} | |
if (n.length && !/^#/.test(t.attr("href"))) { | |
window.history.replaceState("click", '', t.attr("href")); | |
} | |
}, | |
Jt: function (t) { | |
t.preventDefault(); | |
0; | |
t = a.o(t.currentTarget); | |
this.$t(t); | |
} | |
}); | |
var w = a.FW.define("ContentSwitch", { | |
h: function (i) { | |
var n = null; | |
i.click(function (t) { | |
t.preventDefault(); | |
(n = n || i.closest(".contents").find("[data-content]")).hide(); | |
n.filter("[data-content=\"".concat(i.data("content-switch"), "\"]")).show(); | |
}); | |
} | |
}); | |
var C = a.FW.define("TopSearch", { | |
h: function (t) { | |
var n = this; | |
0; | |
this._t = a.o("#search-toggler"); | |
this.Xt = t; | |
this.A = this.Xt.find("form"); | |
this.l = this.Xt.find("input"); | |
this.Zt = this.Xt.find("button"); | |
this.Qt = this.l.attr("placeholder"); | |
this.ti = false; | |
this.ii = this.Xt.find(".search-popup"); | |
this.ni = this.ii.find(".s-close"); | |
this.ei = this.ii.find("a.more"); | |
this.ri = this.ii.find(".body"); | |
this.si = []; | |
this.ui = -1; | |
new a.FW.AutoComplete(this.l, function (t, i) { | |
return n.oi(t, i); | |
}, function (t) { | |
return n.ai(); | |
}); | |
this.l.focus(a.o.proxy(this.ci, this)).keydown(a.o.proxy(this.wt, this)).keyup(a.o.proxy(this.wt, this)).keypress(a.o.proxy(this.wt, this)).change(a.o.proxy(this.wt, this)); | |
this.Zt.click(function () { | |
return n.A.submit(); | |
}); | |
this._t.click(a.o.proxy(this.hi, this)); | |
this.Nt = a.o.proxy(this.Vt, this); | |
0; | |
a.o(window).keydown(a.o.proxy(this.g, this)); | |
this.ni.click(a.o.proxy(this.fi, this)); | |
this.A.submit(a.o.proxy(this.N, this)); | |
}, | |
wt: function (t) {}, | |
oi: function (t, i) { | |
var r = this; | |
this.li(); | |
u["default"].M("ajax/anime/search", ["data", ["keyword", i]]).done(function (t) { | |
r.ri.hide().html(t.result.html).slideDown().activate(); | |
r.si = r.ri.find(".item"); | |
if (t.result.linkMore) { | |
r.ei.attr("href", t.result.linkMore).show(); | |
} | |
}); | |
}, | |
N: function (t) { | |
if (-1 < this.ui) { | |
t.preventDefault(); | |
0; | |
window.location.href = a.o(this.si[this.ui]).attr("href"); | |
} else if ('' === a.o.trim(this.l.val())) { | |
t.preventDefault(); | |
this.l.attr("placeholder", "Enter your keyword here..").focus(); | |
} | |
}, | |
di: function () { | |
var t = this; | |
this.ti = true; | |
this.Xt.addClass("show"); | |
this.ii.hide().slideDown(150); | |
this.vi(); | |
setTimeout(function () { | |
t.l.focus(); | |
0; | |
a.o(window).on("click", t.Nt); | |
}, 300); | |
}, | |
pi: function () { | |
this.ti = false; | |
this.Xt.removeClass("show"); | |
this.ii.slideUp(150); | |
0; | |
a.o(window).off("click", this.Nt); | |
this.vi(); | |
this.l.blur(); | |
}, | |
_i: function () { | |
if (this.ti) { | |
this.pi(); | |
} else { | |
this.di(); | |
} | |
}, | |
vi: function () { | |
this.l.val('').attr("placeholder", this.Qt).trigger("change"); | |
this.ai(); | |
this.li(); | |
}, | |
ai: function () { | |
this.ei.attr("href", '#').hide(); | |
this.ri.empty(); | |
}, | |
li: function () { | |
this.si = []; | |
this.ui = -1; | |
}, | |
ci: function (t) { | |
if (!this.ti) { | |
this.di(); | |
} | |
}, | |
fi: function (t) { | |
this.vi(); | |
}, | |
Vt: function (t) { | |
if (this._t[0] === t.target) { | |
this._i(); | |
} else if (!a.o.contains(this.Xt[0], t.target)) { | |
this.pi(); | |
} | |
}, | |
mi: function (t) { | |
t = this.ui + t; | |
if (!(t < -1 || t >= this.si.length)) { | |
this.si.removeClass("active"); | |
if (-1 < t) { | |
0; | |
a.o(this.si[t]).addClass("active"); | |
} | |
this.ui = t; | |
} | |
}, | |
g: function (t) { | |
if ("INPUT,TEXTAREA".indexOf(t.target.tagName) < 0 && 83 === t.keyCode) { | |
this.di(); | |
} else if (27 === t.keyCode) { | |
if (t.target === this.l[0]) { | |
if ('' === a.o.trim(this.l.val())) { | |
this.pi(); | |
} else { | |
this.vi(); | |
} | |
} | |
} else if (this.ti) { | |
if (38 === t.keyCode) { | |
this.mi(-1); | |
} else if (40 === t.keyCode) { | |
this.mi(1); | |
} else if (13 === t.keyCode) { | |
this.A.submit(); | |
} | |
} | |
}, | |
hi: function () { | |
this._i(); | |
} | |
}); | |
var G = a.FW.define("Tooltip", { | |
h: function (o) { | |
var t; | |
var n; | |
var e = false; | |
if (!(window.innerWidth < 1024)) { | |
(t = o.tooltipster({ | |
contentAsHTML: true, | |
updateAnimation: false, | |
arrow: false, | |
side: ["right", "left"], | |
interactive: true, | |
delay: 150, | |
minWidth: 310, | |
maxWidth: 310, | |
content: "Loading...", | |
functionBefore: function (i, t) { | |
var s = { | |
dataType: "html" | |
}; | |
if (!e) { | |
e = true; | |
a.o.ajax("ajax/anime/tooltip/".concat(o.data('tip')), s).done(function (t) { | |
return i.content(t); | |
}); | |
} | |
}, | |
functionPosition: function (t, i, n) { | |
n.coord.top -= (i.geo.origin.size.height - n.size.height) / 2; | |
n.coord.top += 0.3 * i.geo.origin.size.height; | |
n.side; | |
return n; | |
} | |
}).tooltipster("instance")).on("before", n = function () { | |
setTimeout(function () { | |
try { | |
0; | |
a.o(o.tooltipster("elementTooltip")).activate(); | |
} catch (t) {} | |
}, 10); | |
}); | |
t.on("updated", n); | |
} | |
} | |
}); | |
var k = a.FW.define("TimerCountDown", { | |
h: function (t) { | |
var r = this; | |
this.It = t; | |
this.gi = t.data("target"); | |
this.yi = Math.max(0, this.gi - Math.floor(new Date().getTime() / 1000)); | |
this.wi = t.data("step") || 1; | |
this.bi = t.data("format"); | |
this.xi = t.data("zero-pad"); | |
this.ki = t.data("divider") || ("human" == this.bi ? ", " : ':'); | |
this.Si = t.data("reached"); | |
this.dt(); | |
this.v = setInterval(function () { | |
return r.dt(); | |
}, 1000 * this.wi); | |
}, | |
dt: function () { | |
this.yi = Math.max(0, this.yi - this.wi); | |
var t = this.Ti(); | |
var i = ''; | |
var i = "human" === this.bi ? this.Ci(t) : this.Mi(t); | |
this.It.text(i); | |
if (!this.yi) { | |
if (this.Si) { | |
this.It.text(this.Si); | |
} | |
clearInterval(this.v); | |
} | |
}, | |
Mi: function (t) { | |
var n = []; | |
if ("day" == this.xi || t.days) { | |
n.push(this.ji(t.days)); | |
n.push(this.ji(t.hours)); | |
} else if (!("hour" != this.xi && !t.hours)) { | |
n.push(this.ji(t.hours)); | |
} | |
n.push(this.ji(t.minutes)); | |
n.push(this.ji(t.seconds)); | |
return n.join(this.ki); | |
}, | |
Ci: function (t) { | |
var r = []; | |
if ("day" == this.xi || t.days) { | |
r.push(''.concat(t.days, " day").concat(1 < t.days ? 's' : '')); | |
r.push(''.concat(t.hours, " hour").concat(1 < t.hours ? 's' : '')); | |
} else if (!("hour" != this.xi && !t.hours)) { | |
r.push(''.concat(t.hours, " hour").concat(1 < t.hours ? 's' : '')); | |
} | |
r.push(''.concat(t.minutes, " minute").concat(1 < t.minutes ? 's' : '')); | |
r.push(''.concat(t.seconds, " second").concat(1 < t.seconds ? 's' : '')); | |
return r.join(this.ki); | |
}, | |
ji: function (t) { | |
return '00'.concat(t).slice(-2); | |
}, | |
Ti: function () { | |
return { | |
days: Math.floor(this.yi / 86400), | |
hours: Math.floor(this.yi % 86400 / 3600), | |
minutes: Math.floor(this.yi % 3600 / 60), | |
seconds: this.yi % 60 | |
}; | |
} | |
}); | |
var m = a.FW.define("AdsClose", { | |
h: function (t) { | |
0; | |
var n = a.o("<div class=\"remove\"></div>"); | |
n.click(function () { | |
t.slideUp(function () { | |
t.remove(); | |
}); | |
}); | |
n.appendTo(t); | |
} | |
}); | |
var S = a.FW.define("ClickCopy", { | |
h: function (t) { | |
var i = this; | |
this.Oi = t; | |
this.yt = t.data("target") ? (0, a.o)(t.data("target")) : t; | |
this.Ei = t.data("target-attr") || "value"; | |
t.click(function () { | |
return i.Pi(); | |
}); | |
}, | |
Ai: function () { | |
this.Oi.attr("data-original-title", "Copied!").tooltip("show").attr("data-original-title", "Copy"); | |
}, | |
Pi: function () { | |
var n = this; | |
var r = this.yt.attr(this.Ei); | |
if (!navigator.clipboard) { | |
return this.Ii(r); | |
} | |
navigator.clipboard.writeText(r).then(function () { | |
return n.Ai(); | |
}); | |
}, | |
Ii: function (t) { | |
var i = document.createElement("textarea"); | |
i.value = t; | |
i.style.top = '0'; | |
i.style.left = '0'; | |
i.style.position = "fixed"; | |
document.body.appendChild(i); | |
i.focus(); | |
i.select(); | |
try { | |
document.execCommand("copy"); | |
this.Ai(); | |
} catch (t) {} | |
document.body.removeChild(i); | |
} | |
}); | |
var L = a.FW.define("BsTooltip", { | |
h: function (t) { | |
t.tooltip(); | |
} | |
}); | |
n["default"] = function () { | |
m.bind("section.adx"); | |
e.bind("header"); | |
L.bind("[data-toggle=\"tooltip\"]"); | |
G.bind("[data-tip]"); | |
C.bind("#search"); | |
y.bind("#menu"); | |
d.bind("[data-switch]"); | |
g.bind(".d-title"); | |
l.bind(".display-modes"); | |
x.bind(".tabs, [data-tabs]"); | |
w.bind("[data-content-switch]"); | |
v.bind("[data-live-text]"); | |
k.bind(".count-down"); | |
W.bind(".shorting"); | |
S.bind(".clickcopy"); | |
}; | |
}, o], | |
11: [function (t, i, n) { | |
'use strict'; | |
var s = { | |
value: true | |
}; | |
Object.defineProperty(n, 't', s); | |
n["default"] = undefined; | |
var o = t(4); | |
var u = t(15); | |
var h = t(12); | |
var f = window.Swiper; | |
var a = o.FW.define("Hotest", { | |
h: function (t) { | |
var r = { | |
delay: 5000, | |
disableOnInteraction: false | |
}; | |
new f(t[0], { | |
autoplay: r, | |
grabCursor: true, | |
loop: true, | |
pagination: { | |
el: ".swiper-pagination", | |
clickable: true, | |
renderBullet: function (t, i) { | |
return "<span class=\"".concat(i, "\"></span>"); | |
} | |
} | |
}); | |
} | |
}); | |
var W = o.FW.define("Schedule", { | |
h: function (t) { | |
this.vt = t; | |
this.Ri = new Date().getTimezoneOffset() / -60; | |
this.Fi(); | |
}, | |
Fi: function () { | |
var i = this; | |
var n = { | |
'tz': this.Ri | |
}; | |
var r = { | |
data: n | |
}; | |
o.o.ajax("ajax/home/schedule", r).done(function (t) { | |
i.vt.html(t.result).activate(); | |
i.Ui(); | |
i.Di(); | |
i.Li(); | |
}); | |
}, | |
Li: function () { | |
var t = this; | |
this.Ni = this.ri.find(".more"); | |
this.Ni.click(function () { | |
t.ri.toggleClass("expand"); | |
}); | |
}, | |
Vi: function (t) { | |
var i = this; | |
this.ri.css("opacity", 0.5); | |
o.o.ajax("ajax/home/schedule/day", { | |
data: { | |
tz: this.Ri, | |
time: t.data("time") | |
} | |
}).done(function (t) { | |
i.ri.html(t.result).removeAttr("style").activate(); | |
i.Li(); | |
}); | |
}, | |
Di: function () { | |
function i() { | |
var t = new Date(); | |
n.qi.text(''.concat(t.toLocaleDateString(), ' ').concat(t.toLocaleTimeString())); | |
} | |
var n = this; | |
this.ri = this.vt.find(".body"); | |
this.Wi = this.vt.find(".items .day .inner"); | |
this.qi = this.vt.find(".timenow"); | |
this.Wi.click(function (t) { | |
0; | |
t = o.o(t.currentTarget); | |
n.Wi.closest(".day").removeClass("active"); | |
t.closest(".day").addClass("active"); | |
n.Vi(t); | |
}); | |
i(); | |
setInterval(i, 1000); | |
}, | |
Ui: function () { | |
var n = this.vt.find(".swiper-container"); | |
var r = this.vt.find(".next"); | |
var s = this.vt.find(".prev"); | |
var o = n.find(".swiper-slide.active").index(); | |
var u = { | |
nextEl: r[0], | |
prevEl: s[0] | |
}; | |
var h = { | |
navigation: u, | |
slidesPerView: "auto", | |
slidesPerGroup: 2 | |
}; | |
new f(n[0], h).slideTo(o); | |
} | |
}); | |
var v = o.FW.define("HomeContinueWatching", { | |
h: function (t) { | |
var n = this; | |
this.vt = t; | |
h.Broadcast.jt("user:loaded", function () { | |
return n.Bi(); | |
}); | |
}, | |
Bi: function () { | |
var n = this; | |
if (u.Visitor.Hi() && u.Visitor.Ct("show_playing_in_home")) { | |
h.Broadcast.jt("playing:removed", function () { | |
return n.zi(); | |
}); | |
this.zi(); | |
} | |
}, | |
zi: function () { | |
var i = this; | |
o.o.ajax("ajax/user/playing/widget/home").done(function (t) { | |
if (200 === t.status && t.result.count) { | |
i.vt.html(t.result.html).show().activate(); | |
} | |
}); | |
} | |
}); | |
var d = o.FW.define("RecentUpdate", { | |
h: function (t) { | |
this.vt = t; | |
this.Yt = t.find(".text-tabs .tab"); | |
this.ri = t.find(".body"); | |
this.Gi = 1; | |
this.Yi = t.find(".paging > span.prev"); | |
this.Ki = t.find(".paging > span.next"); | |
this.Yt.click(o.o.proxy(this.Jt, this)); | |
this.Yi.click(o.o.proxy(this.Ji, this)); | |
this.Ki.click(o.o.proxy(this.Ji, this)); | |
this.Yi.tooltip(); | |
this.Ki.tooltip(); | |
this.$i(); | |
this.Xi(); | |
}, | |
Ji: function (t) { | |
0; | |
t = o.o(t.currentTarget); | |
if (t.hasClass("prev")) { | |
if (1 == this.Gi) { | |
return; | |
} | |
this.Gi = Math.max(1, this.Gi - 1); | |
} else { | |
this.Gi = Math.max(1, this.Gi + 1); | |
} | |
this.$i(); | |
t.tooltip("show"); | |
this.Zi(); | |
}, | |
$i: function () { | |
this.Yi.attr("data-original-title", "Page ".concat(Math.max(1, this.Gi - 1))); | |
this.Ki.attr("data-original-title", "Page ".concat(this.Gi + 1)); | |
if (1 == this.Gi) { | |
this.Yi.addClass("disabled"); | |
} else { | |
this.Yi.removeClass("disabled"); | |
} | |
}, | |
Xi: function () { | |
var t = o.Storage.get("home_recent_update_tab"); | |
if (t && "updated-all" != t) { | |
this.$t(t); | |
} | |
}, | |
Jt: function (t) { | |
0; | |
t = o.o(t.currentTarget).data("name"); | |
o.Storage.set("home_recent_update_tab", t); | |
this.$t(t); | |
}, | |
$t: function (t) { | |
t = this.Yt.filter("[data-name=\"".concat(t, "\"]")); | |
this.Gi = 1; | |
this.Yt.removeClass("active"); | |
t.addClass("active"); | |
this.$i(); | |
this.Zi(); | |
}, | |
Zi: function () { | |
var n = this; | |
var r = this.Yt.filter(".active").data("name"); | |
this.ri.css("opacity", 0.5); | |
o.o.ajax("ajax/home/widget/".concat(r), { | |
data: { | |
page: this.Gi | |
} | |
}).done(function (t) { | |
if (200 === t.status) { | |
n.ri.html(t.result).activate(); | |
} | |
}).always(function () { | |
n.ri.css("opacity", 1); | |
}); | |
} | |
}); | |
n["default"] = function () { | |
a.bind("#hotest"); | |
W.bind("#schedule-block"); | |
v.bind("#continue-watching"); | |
d.bind("#recent-update"); | |
}; | |
}, u], | |
12: [function (t, i, n) { | |
'use strict'; | |
var u = { | |
value: true | |
}; | |
Object.defineProperty(n, 't', u); | |
n.Toast = n.Broadcast = undefined; | |
function f(s, o, u) { | |
if ("string" == typeof s) { | |
s = [s]; | |
} | |
if (!f.vt) { | |
0; | |
f.vt = a.o(o.AyJtT("<div id=\"toast\" ", '/') + '>')[o.AyJtT("append", 'To')](document.body); | |
} | |
for (var e = 0; o.eRoCn(e, s.length); e++) { | |
!function () { | |
0; | |
var n = a.o("<div class=\"alert\" />"); | |
0; | |
var r = a.o("<span class=\"mx-2\" />").text(s[e]); | |
if (o === f.J) { | |
n.addClass(o.gJVpk("alert", '-') + "success").append(o.gJVpk("<i class=\"fa-", "solid") + ' ' + 'fa' + '-' + "circle" + '-' + "check" + "\"" + '>' + '<' + '/' + 'i' + '>'); | |
} else if (o === f.K) { | |
n.addClass("alert-danger").append("<i class=\"fa-solid fa-circle-exclamation\"></i>"); | |
} else { | |
n.addClass("alert-info").append(o.gJVpk(o.gJVpk(o.gJVpk("<i ", "class") + '=' + "\"" + 'fa' + '-', "solid") + ' ' + 'fa' + '-', "circle") + '-' + "info" + "\"" + '>' + '<' + '/' + 'i' + '>'); | |
} | |
n.append(r); | |
n.append(o.XYEjY(o.gJVpk(o.OnlgV(o.XYEjY(o.OnlgV("<button type=\"", "button") + "\"", ' ') + "class" + '=' + "\"", "close") + "\"" + ' ' + "data" + '-' + "dismiss" + '=' + "\"" + "alert", "\"") + '>' + '<' + "span" + '>' + '&' + "times" + ';' + '<' + '/' + "span" + '>' + '<' + '/', "button") + '>'); | |
n.hide(); | |
n.fadeIn("fast"); | |
setTimeout(function () { | |
return n.fadeOut(function () { | |
return n.remove(); | |
}); | |
}, u || 3000); | |
f.vt.append(n); | |
}(); | |
} | |
} | |
var a = t(4); | |
n.Broadcast = { | |
Qi: {}, | |
jt: function (t, i) { | |
if ("undefined" == typeof this.Qi[t]) { | |
this.Qi[t] = []; | |
} | |
this.Qi[t].push(i); | |
}, | |
nt: function (t, i) { | |
var n = [].slice.call(arguments, 1); | |
if ("undefined" != typeof this.Qi[t]) { | |
this.Qi[t].forEach(function (t) { | |
setTimeout(function () { | |
return t.apply(null, n); | |
}, 1); | |
}); | |
} | |
} | |
}; | |
(n.Toast = f).G = function (t) { | |
var i = t.result; | |
var n = f.Y; | |
if (t.messages && t.messages.length) { | |
if (400 <= t.status) { | |
n = f.K; | |
} else if ("boolean" == typeof i && i) { | |
n = f.J; | |
} | |
f(t.messages, n); | |
} | |
}; | |
f.Y = 1; | |
f.J = 2; | |
f.K = 3; | |
}, h], | |
13: [function (t, i, n) { | |
'use strict'; | |
var o = { | |
value: true | |
}; | |
Object.defineProperty(n, 't', o); | |
n["default"] = undefined; | |
var u = t(4); | |
var h = t(12); | |
var e = u.FW.define("ListFilter", { | |
h: function (t) { | |
var n = this; | |
this.tn = t.find(".dropdown-menu .genres input"); | |
this.nn = t.find("[name=\"keyword\"]"); | |
0; | |
this.en = u.o("#exclude_watchlist"); | |
h.Broadcast.jt("user:loaded", function (t) { | |
return n.Bi(t); | |
}); | |
this.tn.click(function (t) { | |
return n.rn(t); | |
}); | |
this.tn.each(function (t, i) { | |
0; | |
i = u.o(i); | |
if ('-' === ''.concat(i.val())[0]) { | |
i.addClass("exclude"); | |
} | |
}); | |
}, | |
rn: function (t) { | |
0; | |
var i = u.o(t.currentTarget); | |
var n = ''.concat(i.val()); | |
var r = n.replace(/^-/, ''); | |
if (!!i.is(":checked") || '-' === n[0]) { | |
i.removeClass("exclude").val(r); | |
} else { | |
t.preventDefault(); | |
i.addClass("exclude").val('-'.concat(r)); | |
} | |
}, | |
Bi: function (t) { | |
if (0 < t.sn) { | |
this.en.val(t.sn).closest('li').show(); | |
} | |
} | |
}); | |
n["default"] = function () { | |
e.bind("form.filters"); | |
}; | |
}, e], | |
14: [function (t, i, n) { | |
'use strict'; | |
var o = { | |
value: true | |
}; | |
Object.defineProperty(n, 't', o); | |
n["default"] = undefined; | |
var f = t(4); | |
var e = t(15); | |
var u = t(9); | |
var a = t(12); | |
var W = t(7); | |
var v = f.FW.define("UserPlayingRemove", { | |
h: function (r) { | |
r.click(function () { | |
W["default"].M("ajax/user/playing/delete", ["type", "POST", "data", ['id', r.data('id')]]).done(function (t) { | |
a.Toast.G(t); | |
if (t.result) { | |
a.Broadcast.nt("playing:removed"); | |
r.closest(".item").fadeOut(); | |
} | |
}); | |
}); | |
} | |
}); | |
var d = f.FW.define("UserPlayingClear", { | |
h: function (t) { | |
t.click(function () { | |
var t = 100 * Math.random(); | |
W["default"].M("ajax/user/playing/clear", ["type", "POST", "data", ["req_id", t, "vrf", W["default"].j(t)]]).done(function (t) { | |
a.Toast.G(t); | |
if (200 === t.status) { | |
setTimeout(function () { | |
return window.location.reload(); | |
}, 2000); | |
} | |
}); | |
}); | |
} | |
}); | |
var g = f.FW.define("UserFavourite", { | |
h: function (t) { | |
var r = this; | |
this.un = t; | |
this.on = t.data('id'); | |
this.an = false; | |
this.cn = t.data("fetch"); | |
this.hn = t.find("[data-toggle=\"dropdown\"]"); | |
this.fn = t.data("folder"); | |
this.Ut = t.find(".dropdown-menu"); | |
this.ln = t.find(".folders"); | |
this.dn = t.find(".folder-name"); | |
if (this.cn) { | |
a.Broadcast.jt("user:loaded", function () { | |
return r.vn(); | |
}); | |
} | |
this.un.mouseenter(f.o.proxy(this.pn, this)); | |
this.un.click(f.o.proxy(this._s, this)); | |
this.Ut.on("click", ".dropdown-item", f.o.proxy(this.mn, this)); | |
}, | |
vn: function () { | |
var n = this; | |
if (e.Visitor.Hi()) { | |
this.un.hide(); | |
W["default"].M("ajax/user/favourite/get/".concat(this.on)).done(function (t) { | |
if (200 === t.status) { | |
n.fn = t.result; | |
n.gn(); | |
n.un.show(); | |
} | |
}); | |
} else { | |
this.gn(); | |
} | |
}, | |
_s: function (t) { | |
if (e.Visitor.yn()) { | |
t.stopPropagation(); | |
} | |
}, | |
mn: function (t) { | |
0; | |
t = f.o(t.currentTarget).data('id'); | |
this.fn = t; | |
this.gn(); | |
W["default"].M("ajax/user/favourite/save", ["type", "POST", "data", ['id', this.on, "folder", t]]).done(function (t) { | |
a.Toast.G(t); | |
}); | |
}, | |
gn: function () { | |
this.ln.empty(); | |
var i = e.Visitor.wn(); | |
if (this.hn.data("add") && this.hn.data("edit")) { | |
this.hn.html(this.hn.data(this.fn ? "edit" : "add")); | |
} | |
if (this.fn) { | |
i.push({ | |
id: 0, | |
name: r.WeJbM("<i class=\"fa-solid fa-circle-minus text-danger\">", '<') + '/' + 'i' + '>' + ' ' + "Remove", | |
html: true | |
}); | |
} | |
for (var n = 0; n < i.length; n++) { | |
0; | |
var r = f.o(r.vuSrX("<a class=\"dropdown-item\"", ' ') + '/' + '>').attr("data-id", i[n].id); | |
if (i[n].html) { | |
r.html(i[n].name); | |
} else { | |
r.text(i[n].name); | |
} | |
if (this.fn == i[n].id) { | |
r.addClass("active"); | |
this.dn.text(i[n].name); | |
} | |
this.ln.append(r); | |
} | |
}, | |
pn: function (t) { | |
if (!this.an) { | |
this.an = true; | |
this.gn(); | |
} | |
} | |
}); | |
var y = f.FW.define("UserWatchStatus", { | |
h: function (t) { | |
this.un = t; | |
this.on = t.data('id'); | |
this.un.click(f.o.proxy(this.bn, this)); | |
}, | |
bn: function () { | |
var t; | |
var i = this; | |
if (!this.xn) { | |
this.xn = true; | |
t = this.un.hasClass("unwatched") ? 0 : 1; | |
f.o.ajax("ajax/user/favourite/status", { | |
type: "POST", | |
data: { | |
id: this.on, | |
unwatched: t | |
} | |
}).done(function (t) { | |
if (200 === t.status) { | |
i.un.toggleClass("unwatched"); | |
} | |
}).always(function () { | |
i.xn = false; | |
if (i.un.hasClass("unwatched")) { | |
i.un.attr("data-original-title", "Unwatched"); | |
} else { | |
i.un.attr("data-original-title", "Watched"); | |
} | |
i.un.tooltip("show"); | |
}); | |
} | |
} | |
}); | |
var l = f.FW.define("UserMangeFolders", { | |
h: function (t) { | |
this.vt = t; | |
0; | |
this.kn = f.o("#folder-edit").html().trim(); | |
0; | |
this.Sn = f.o("#folder-item").html().trim(); | |
this.Tn(); | |
this.vt.delegate(".action", "click", f.o.proxy(this.Cn, this)); | |
this.Mn(); | |
}, | |
Tn: function () { | |
this.ln = this.vt.find(".folder"); | |
this.ln.each(function (t, i) { | |
0; | |
i = f.o(i); | |
i.data("origHtml", i.html()); | |
}); | |
}, | |
Mn: function () { | |
var r = this.vt.find(".dropdown-menu"); | |
Sortable.create(r[0], { | |
onUpdate: function (t) { | |
var n = {}; | |
r.find(r.vuSrX(".folder[data-", 'id') + ']').each(function (t, i) { | |
0; | |
n[f.o(i).data('id')] = t; | |
}); | |
f.o.ajax(r.vuSrX("ajax/user/folder/", "sort"), { | |
method: r.FCcOT('P', 'O') + 'S' + 'T', | |
data: { | |
orders: n | |
} | |
}); | |
} | |
}); | |
}, | |
Cn: function (t) { | |
t.stopPropagation(); | |
0; | |
var t = f.o(t.currentTarget); | |
var n = t.closest(".folder"); | |
if (t.hasClass("add") || t.hasClass("edit")) { | |
this.jn(n); | |
} else if (t.hasClass("delete")) { | |
this.On(n); | |
} | |
}, | |
En: function (t) { | |
t.html(t.data("origHtml")); | |
}, | |
On: function (t) { | |
var i = this; | |
var t = t.data('id'); | |
W["default"].M("ajax/user/folder/delete", ["type", "POST", "data", ['id', t]]).done(function (t) { | |
a.Toast.G(t); | |
}).always(function () { | |
i.Pn(); | |
}); | |
}, | |
Pn: function () { | |
var u = this; | |
W["default"].M("ajax/user/folder/list").done(function (t) { | |
e.Visitor.An(t.result); | |
var n = t.result; | |
u.vt.find("li.folder-item").remove(); | |
var r = ''; | |
for (var s = 0; s < n.length; s++) { | |
if (!n[s]["default"]) { | |
r += u.Sn.replace(/@id/g, n[s].id).replace(/@name/g, n[s].name); | |
} | |
} | |
u.vt.find('ul').prepend(r); | |
u.Tn(); | |
}); | |
}, | |
In: function (t) { | |
var n = this; | |
var i = t.data('id'); | |
var r = t.find("input").val(); | |
W["default"].M("ajax/user/folder/save", ["type", "POST", "data", ['id', i || 0, "name", r]]).done(function (t) { | |
n.Pn(); | |
a.Toast.G(t); | |
}).always(function () { | |
n.En(t); | |
}); | |
}, | |
jn: function (n) { | |
var s = this; | |
0; | |
var o = f.o(this.kn); | |
var u = n.find(".name"); | |
n.empty().append(o); | |
var o = n.find("input"); | |
var h = n.find(".save"); | |
var e = n.find(".cancel"); | |
o.focus(); | |
if (u.length) { | |
o.val(u.text()); | |
} | |
e.click(function (t) { | |
t.preventDefault(); | |
s.En(n); | |
}); | |
h.click(function (t) { | |
t.preventDefault(); | |
s.In(n); | |
}); | |
o.keydown(function (t) { | |
if (13 == t.keyCode) { | |
s.In(n); | |
} else if (27 == t.keyCode) { | |
s.En(n); | |
} | |
}); | |
} | |
}); | |
var x = f.FW.define("SignForm", u.AjaxForm.prototype, { | |
et: function () { | |
var r = this; | |
setTimeout(function () { | |
r.it(); | |
0; | |
f.o("#sign").modal("hide"); | |
a.Broadcast.nt("user:updated"); | |
}, 1000); | |
} | |
}); | |
var w = f.FW.define("UserEditAvatar", { | |
h: function (t) { | |
0; | |
this.Rn = f.o(".avatar-placeholder"); | |
this.on = this.Rn.data('id'); | |
this.Fn = null; | |
this.Un = t.find(".avatar.items .item span"); | |
this.Rn.data("orig", this.Rn.attr('src')); | |
this.Un.click(f.o.proxy(this.Dn, this)); | |
t.on("shown.bs.modal", f.o.proxy(this.Ln, this)); | |
t.on("hide.bs.modal", f.o.proxy(this.Nn, this)); | |
}, | |
Ln: function (t) { | |
this.Un.filter("[data-id=\"".concat(this.Rn.first().data('id'), "\"]")).addClass("active"); | |
}, | |
Nn: function (t) { | |
var r = this; | |
if (this.Fn && this.Fn != this.on) { | |
W["default"].M("ajax/user/update", ["type", "POST", "data", ["avatar_id", this.Fn]]).done(function (t) { | |
a.Toast.G(t); | |
r.on = r.Fn; | |
}); | |
} | |
}, | |
Dn: function (t) { | |
0; | |
t = f.o(t.currentTarget); | |
this.Un.removeClass("active"); | |
t.addClass("active"); | |
this.Rn.attr('src', t.find('img').attr('src')); | |
this.Fn = t.data('id'); | |
} | |
}); | |
var C = f.FW.define("UserNotification", { | |
h: function (t) { | |
this.Vn = t.find(".items-wrap"); | |
this.Wn = t.find(".count"); | |
this.si = t.find("a.item"); | |
this.qn = t.find(".mark-as-read"); | |
this.qn.click(f.o.proxy(this.Bn, this)); | |
}, | |
Bn: function () { | |
var n = this; | |
var r = []; | |
this.si.filter(":not(.old)").each(function (t, i) { | |
0; | |
r.push(f.o(i).data('id')); | |
}); | |
if (r.length) { | |
f.o.ajax("ajax/user/notification/update", { | |
type: "POST", | |
data: { | |
action: "mark_as_read", | |
ids: r | |
} | |
}).done(function (t) { | |
if (200 === t.status) { | |
a.Toast.G(t); | |
n.si.addClass("old"); | |
} | |
}).always(function () { | |
return n.Hn(); | |
}); | |
} | |
}, | |
Hn: function () { | |
var i = this; | |
if (this.Vn.length) { | |
f.o.ajax("ajax/user/notification/panel").done(function (t) { | |
if (200 === t.status) { | |
i.Vn.html(t.result.html); | |
i.Wn.text(t.result.count); | |
i.si = i.Vn.find("a.item"); | |
} | |
}); | |
} | |
} | |
}); | |
n["default"] = function () { | |
g.bind(".favourite[data-id]"); | |
v.bind(".playing-remove"); | |
d.bind(".playing-clear"); | |
l.bind(".manage-folders"); | |
x.bind("form.ajax-login, form.ajax-register"); | |
w.bind("#avatar-browser"); | |
C.bind(".user-notification"); | |
y.bind(".watch-status"); | |
}; | |
}, c], | |
15: [function (t, i, n) { | |
'use strict'; | |
var s = { | |
value: true | |
}; | |
Object.defineProperty(n, 't', s); | |
n["default"] = n.Visitor = undefined; | |
var e = t(4); | |
var c = t(12); | |
var f = t(7); | |
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); | |
} | |
var y = { | |
sn: 0, | |
zn: {}, | |
Gn: null, | |
Yn: ["show_playing_in_home", "title_lang", "auto_next", "auto_play", "auto_load_comment", "skip_seconds", "auto_skip_intro", "prefered_source_type", "episode_list_style"], | |
Kn: null, | |
L: function () { | |
var i = this; | |
0; | |
this.Jn = e.o("#user"); | |
this.$n(); | |
c.Broadcast.jt("user:updated", function () { | |
return i.$n(); | |
}); | |
0; | |
e.o(window).on("beforeunload", function () { | |
return i.Xn(); | |
}); | |
}, | |
$n: function () { | |
var n = this; | |
f["default"].M("ajax/user/panel").done(function (t) { | |
return n.G(t); | |
}).always(function () { | |
c.Broadcast.nt("user:loaded", n); | |
}); | |
}, | |
Hi: function () { | |
return 0 < this.sn; | |
}, | |
yn: function () { | |
return !this.Hi() && ((0, c.Toast)("Please login to use this feature.", c.Toast.K), true); | |
}, | |
G: function (t) { | |
this.sn = t.result.user.id; | |
this.Jn.html(t.result.html).activate(); | |
e.Storage.set("user.settings", this.zn); | |
this.An(t.result.user.folders); | |
this.Zn(t.result.user.settings); | |
this.Xn(); | |
}, | |
Xn: function () { | |
if (this.Hi()) { | |
this.Qn(); | |
} | |
}, | |
Zn: function (t) { | |
var n = Object.keys(t); | |
for (var r = 0; r < n.length; r++) { | |
var s = n[r]; | |
var o = t[s]; | |
if (this.Ct(s) !== o) { | |
c.Broadcast.nt("change:".concat(s), o); | |
} | |
this.zn[s] = o; | |
e.Storage.set(s, o); | |
} | |
}, | |
wn: function () { | |
return e.Storage.get("user.folders", []); | |
}, | |
An: function (t) { | |
e.Storage.set("user.folders", t); | |
}, | |
Ct: function (t) { | |
return "undefined" != typeof this.zn[t] ? this.zn[t] : e.Storage.get(t); | |
}, | |
At: function (t, i) { | |
var s = this; | |
if (!(i === this.Ct(t) || (e.Storage.set(t, i), c.Broadcast.nt("change:".concat(t), i), this.Yn.indexOf(t) < 0))) { | |
this.zn[t] = i; | |
if (this.Hi()) { | |
if (this.Gn) { | |
clearTimeout(this.Gn); | |
} | |
this.Gn = setTimeout(function () { | |
return s.te(); | |
}, 500); | |
} | |
} | |
}, | |
te: function () { | |
f["default"].M("ajax/user/update", ["type", "POST", "data", ["settings", this.zn]]).done(function (t) {}); | |
}, | |
ie: function () { | |
var t = e.Storage.get("user.playing"); | |
return t = (t = "object" !== a(t) ? null : t) && !Object.keys(t).length ? null : t; | |
}, | |
ne: function (t, i, n, r) { | |
var s = this; | |
var o = this.ie() || {}; | |
o[t] = [i, n, r]; | |
e.Storage.set("user.playing", o); | |
if (this.Hi()) { | |
if (this.Kn) { | |
clearTimeout(this.Kn); | |
} | |
this.Kn = setTimeout(function () { | |
return s.Qn(); | |
}, 5000); | |
} | |
}, | |
Qn: function () { | |
var t = this.ie(); | |
if (t) { | |
f["default"].M("ajax/user/playing/save", ["type", "POST", "data", ["playing", t]]).done(function () { | |
e.Storage.remove("user.playing"); | |
}); | |
} | |
}, | |
ee: function (t, i) { | |
if (0 < this.sn) { | |
f["default"].M("ajax/user/playing/get/".concat(t)).done(function (t) { | |
if (200 === t.status) { | |
i(t.result); | |
} | |
}); | |
} | |
}, | |
re: function () { | |
var t = e.Storage.get("user.lastwatched", []); | |
return t = e.o.isArray(t) ? t : []; | |
}, | |
se: function (t) { | |
var i = this.re(); | |
if (!(-1 < i.indexOf(t))) { | |
i.push(t); | |
e.Storage.set("user.lastwatched", i.slice(0, 3).sort()); | |
} | |
} | |
}; | |
n.Visitor = y; | |
n["default"] = function () { | |
y.L(); | |
}; | |
}, f], | |
16: [function (t, i, n) { | |
'use strict'; | |
var r = { | |
value: true | |
}; | |
Object.defineProperty(n, 't', r); | |
n["default"] = undefined; | |
var W = t(4); | |
var s = t(15); | |
var u = t(12); | |
var h = t(7); | |
var c = window.jwplayer; | |
var v = W.FW.define("RoomCreate", { | |
h: function (t) { | |
0; | |
var r = W.o(".start-date"); | |
0; | |
W.o("input[name=\"start_date_timezone\"").val(new Date().getTimezoneOffset() / -60); | |
var s = new Date(); | |
r.datetimepicker({ | |
format: "Y/m/d H:i", | |
step: 5, | |
minDate: s, | |
maxDate: new Date(new Date().getTime() + 86400000 * r.data("max-days")), | |
yearStart: s.getFullYear(), | |
yearEnd: s.getFullYear() + 1, | |
monthStart: s.getMonth(), | |
monthEnd: s.getMonth() + 1 | |
}); | |
} | |
}); | |
var K = W.FW.define("RoomControl", { | |
h: function (t, i) { | |
this.vt = t; | |
this.ue = i; | |
this.oe = t.data("anime-id"); | |
this.ae = t.data("ep-type"); | |
this.ce = t.data("ep-num"); | |
0; | |
this.U = W.o("#w2g-episodes"); | |
0; | |
this.he = W.o("#w2g-episodes .head input"); | |
0; | |
this.fe = W.o("#w2g-episodes .body"); | |
this.le = null; | |
this.de = t.find("#start-room"); | |
this.ve = t.find("#end-room"); | |
this.Yi = t.find(".ctrl.prev"); | |
this.Ki = t.find(".ctrl.next"); | |
this.de.click(W.o.proxy(this.pe, this)); | |
this.ve.click(W.o.proxy(this._n, this)); | |
this.he.keyup(W.o.proxy(this.me, this)); | |
this.Yi.click(W.o.proxy(this.ge, this)); | |
this.Ki.click(W.o.proxy(this.ye, this)); | |
this.we(); | |
}, | |
me: function (t) { | |
var o = this; | |
var u = t.keyCode; | |
var h = this.he.val().replace(/[^\d]/g, ''); | |
if (this.le) { | |
if (this.be) { | |
clearTimeout(this.be); | |
} | |
this.be = setTimeout(function () { | |
for (var i = 0; i < o.le.length; i++) { | |
0; | |
var n = W.o(o.le[i]); | |
if (n.data("num") == h) { | |
n.addClass("highlight"); | |
o.xe(n); | |
if (i.SxiRd(13, u)) { | |
o.ke(n); | |
} | |
} else { | |
n.removeClass("highlight"); | |
} | |
} | |
}, 300); | |
} | |
}, | |
pe: function () { | |
this.ue.Se(); | |
}, | |
_n: function () { | |
if (window.confirm("Please confirm to end your room!")) { | |
this.ue.Te(); | |
} | |
}, | |
ge: function (t) { | |
this.Ce(-1); | |
}, | |
ye: function (t) { | |
this.Ce(1); | |
}, | |
Me: function (t) { | |
t.preventDefault(); | |
0; | |
t = W.o(t.currentTarget); | |
this.ke(t); | |
}, | |
je: function (t) { | |
this.fe.html(t); | |
this.le = this.fe.find('a'); | |
this.le.click(W.o.proxy(this.Me, this)); | |
this.Oe(); | |
}, | |
Oe: function () { | |
var t = this.le.filter("[data-num=".concat(this.ce, ']')); | |
this.Ee(t); | |
}, | |
Ee: function (t) { | |
if (!t.hasClass("active")) { | |
this.le.removeClass("active"); | |
t.addClass("active"); | |
} | |
}, | |
Pe: function () { | |
return this.le.filter(".active"); | |
}, | |
Ce: function (t) { | |
var r = this.Pe(); | |
var r = this.le.index(r) + t; | |
if (r < 0) { | |
0; | |
u.Toast("You are playing the first episode.", u.Toast.K); | |
} else if (r >= this.le.length) { | |
0; | |
u.Toast("You are playing the last episode.", u.Toast.K); | |
} else { | |
this.ke(this.le.eq(r)); | |
} | |
}, | |
ke: function (t) { | |
var r = this; | |
if (this.Ae) { | |
0; | |
u.Toast("Please wait for episode loading.", u.Toast.K); | |
} else { | |
this.Ae = true; | |
0; | |
u.Toast("Start loading episode ".concat(t.data("num"), '.'), u.Toast.Y); | |
this.Ee(t); | |
this.U.modal("hide"); | |
this.ue.ke(t, function () { | |
r.Ae = false; | |
}); | |
} | |
}, | |
xe: function (t) { | |
var r = t.closest(".episodes"); | |
var t = t.offset().top + r.scrollTop() - r.offset().top - 10; | |
var s = { | |
scrollTop: t, | |
duration: 150 | |
}; | |
r.animate(s); | |
}, | |
we: function () { | |
var i = this; | |
W.o.ajax("ajax/watch2gether/room/episodes/".concat(this.oe, '/').concat(this.ae)).done(function (t) { | |
i.je(t.result); | |
}); | |
} | |
}); | |
var O = W.FW.define("RoomManager", { | |
h: function (t) { | |
var r = this; | |
this.vt = t; | |
this.Ie = t.data('id'); | |
this.Re = t.data("mode"); | |
this.Fe = t.data("owner-id"); | |
this.Ue = t.data("started"); | |
this.De = t.data("ended"); | |
this.Le = t.data("start-at"); | |
this.Ne = t.data("user"); | |
0; | |
this.Ve = W.o(".viewer-count"); | |
this.We = t.find(".player"); | |
this.qe = false; | |
this.Be = t.data('now'); | |
this.He; | |
this.ze = new K(t, this); | |
this.Ge = t.find(".current-episode-name"); | |
this.Ye = t.find("#chat-input"); | |
this.Ke = t.find("#chat-send"); | |
this.Je = t.find(".messages .scroll"); | |
this.$e = t.find(".load-more"); | |
this.Xe = 0; | |
this.Ze(); | |
this.Qe(); | |
this.tr(); | |
this.ir(); | |
this.Ke.click(W.o.proxy(this.nr, this)); | |
this.Ye.keypress(W.o.proxy(this.er, this)); | |
this.$e.click(W.o.proxy(this.tr, this)); | |
this.Be++; | |
setInterval(function () { | |
return r.Be++; | |
}, 1000); | |
}, | |
ke: function (n, t) { | |
var s = this; | |
if (!this.De && "manual" == this.Re && this.rr()) { | |
h["default"].M("ajax/watch2gether/room/change", ["type", "POST", "data", ['id', this.Ie, "episode", n.data('id')]]).done(function (t) { | |
if (200 !== t.status) { | |
u.Toast.G(t); | |
} else { | |
s.D(10, { | |
media: t.result, | |
episode: n.data("num") | |
}); | |
} | |
}).always(function () { | |
if (t) { | |
t(); | |
} | |
}); | |
} | |
}, | |
rr: function () { | |
return this.Fe == this.Ne.id; | |
}, | |
sr: function () { | |
return "manual" === this.Re; | |
}, | |
ir: function () { | |
var t; | |
var i; | |
var n; | |
var r = this; | |
if (!this.De) { | |
if (this.Ue) { | |
this.ur(); | |
} else if (this.Le) { | |
t = 600 < this.Le - this.Be; | |
(n = function () { | |
if (r.Be >= r.Le) { | |
r.Se(true); | |
clearInterval(i); | |
if (t) { | |
window.location.reload(); | |
} else { | |
r.ur(); | |
} | |
} | |
})(); | |
i = setInterval(n, 1000); | |
} | |
} | |
}, | |
ur: function (t) { | |
var o = this; | |
if (!this.De) { | |
h["default"].M(atob(t || this.vt.data("media"))).done(function (t) { | |
if (200 === t.status) { | |
o.ar = t.result; | |
o.cr(); | |
} else { | |
0; | |
u.Toast("Video is not available, please try again.", u.Toast.K); | |
} | |
}).fail(function () { | |
0; | |
u.Toast("Unable to get video info, please try again.", u.Toast.K); | |
}); | |
} | |
}, | |
cr: function () { | |
var n; | |
var r; | |
var u; | |
var h = this; | |
if (!(this.qe || !this.ar || (this.qe = true, this.We.empty(), this.hr = (0, W.o)("<div />").attr('id', "player").appendTo(this.We), this.He = c(this.hr[0]).setup({ | |
sources: this.ar.sources, | |
width: "100%", | |
height: "100%", | |
primary: "html5", | |
hlshtml: true, | |
preload: "auto", | |
autostart: true, | |
key: '', | |
playbackRateControls: false | |
}).on("ready", function () { | |
document.querySelectorAll(".jwplayer").forEach(function (t) { | |
t.addEventListener("keydown", function (t) { | |
return t.stopImmediatePropagation(); | |
}, true); | |
}); | |
}), this.sr() ? this.rr() ? this.He.on("seek", function (t) { | |
var r = { | |
position: t.offset | |
}; | |
h.D(6, r); | |
}).on("play", function (t) { | |
h.D(6, { | |
position: h.He.getPosition() | |
}); | |
h.D(8); | |
}).on("pause", function (t) { | |
h.D(7); | |
h.D(6, { | |
position: h.He.getPosition() | |
}); | |
}) : this.He.once("play", function () { | |
setTimeout(function () { | |
return h.lr(); | |
}, 1000); | |
setTimeout(function () { | |
return h.lr(); | |
}, 3000); | |
}).on("bufferFull", function (t) { | |
h.lr(); | |
}).on("pause", function (t) { | |
h.lr(); | |
}).on("play", function (t) { | |
h.lr(); | |
}) : (this.Le || (this.Le = this.Be), n = true, this.He.on("play", function () { | |
if (n) { | |
h.He.seek(Math.max(0, h.Be - h.Le)); | |
n = false; | |
} | |
}).on("pause", function () { | |
n = true; | |
}).on("complete", function () { | |
h.dr(); | |
})), this.sr() && this.rr()))) { | |
r = 0; | |
u = setInterval(function () { | |
h.We.find(".jw-slider-time, .jw-icon-rewind, .jw-icon-pip").remove(); | |
if (3000 <= (r += 150)) { | |
clearInterval(u); | |
} | |
}, 100); | |
} | |
}, | |
lr: function () { | |
if (!this.vr) { | |
this.vr = 1; | |
} | |
if (this.vr + 3 < this.Be) { | |
this.vr = this.Be; | |
this.D(9, { | |
user: this.Ne | |
}); | |
} | |
}, | |
pr: function (t) { | |
if (this.rr() && this.He) { | |
if (t) { | |
this.D(6, { | |
position: this.He.getPosition(), | |
toUser: t.id | |
}); | |
} else { | |
this.D(6, { | |
position: this.He.getPosition() | |
}); | |
} | |
if ("paused" === this.He.getState()) { | |
this.D(7); | |
} else { | |
this.D(8); | |
} | |
} | |
}, | |
_e: function (t, i) { | |
if (this.He && !this.rr()) { | |
this.vr = this.Be; | |
switch (t) { | |
case 8: | |
if ("paused" === this.He.getState()) { | |
this.He.play(); | |
} | |
break; | |
case 7: | |
if ("paused" !== this.He.getState()) { | |
this.He.pause(); | |
} | |
break; | |
case 6: | |
if (!(i.data.toUser && i.data.toUser != this.Ne.id)) { | |
this.He.seek(Math.max(0, i.data.position - 0.1)); | |
} | |
} | |
} | |
}, | |
Ze: function () { | |
var t = new WebSocket("wss://ws.9ani.online"); | |
t.onopen = W.o.proxy(this.mr, this); | |
t.onmessage = W.o.proxy(this.gr, this); | |
t.onclose = W.o.proxy(this.yr, this); | |
t.onerror = W.o.proxy(this.wr, this); | |
this.br = t; | |
}, | |
mr: function (t) { | |
this.Xe = 0; | |
this.kr(1, { | |
room_id: this.Ie, | |
user: this.Ne | |
}); | |
}, | |
gr: function (t) { | |
try { | |
var r = JSON.parse(t.data); | |
switch (r.cmd) { | |
case 4: | |
this.Ve.text(r.data.total); | |
this.Sr("user_connected", r.data.user); | |
this.Be = r.data.time; | |
this.pr(r.data.user); | |
break; | |
case 5: | |
this.Ve.text(r.data.total); | |
this.Sr("user_disconnected", r.data.user); | |
break; | |
case 9: | |
this.pr(r.data.user); | |
break; | |
case 2: | |
this.ur(); | |
this.Sr("room_started"); | |
break; | |
case 3: | |
this.dr(); | |
break; | |
case 10: | |
this.qe = false; | |
this.ur(r.data.media); | |
this.Ge.text(r.data.episode); | |
break; | |
case 8: | |
case 7: | |
case 6: | |
this._e(r.cmd, r); | |
break; | |
case 1: | |
this.Sr("chat", r.data); | |
} | |
} catch (t) {} | |
}, | |
yr: function (t) { | |
if (++this.Xe < 3) { | |
this.Ze(); | |
} else { | |
0; | |
u.Toast("Server connection closed.", u.Toast.K); | |
} | |
}, | |
wr: function (t) {}, | |
D: function (t, i) { | |
return this.kr(2, this.Tr(t, i)); | |
}, | |
kr: function (t, i) { | |
return 1 === this.br.readyState && (this.br.send(JSON.stringify(this.Tr(t, i))), true); | |
}, | |
Tr: function (t, i) { | |
var n = { | |
cmd: t, | |
data: i | |
}; | |
return n; | |
}, | |
Sr: function (t, i, n) { | |
switch (t) { | |
case "chat": | |
0; | |
var o = W.o("<div />").addClass("message"); | |
0; | |
0; | |
var u = W.o("<div />").addClass("avatar").append(W.o("<img />").attr('src', i.user.avatar_url)); | |
0; | |
0; | |
0; | |
var h = W.o("<div />").addClass("msg-body").append(W.o("<div />").addClass("text").text(i.content)).append(W.o("<div />").addClass("user").text(i.user.name)); | |
if (i.user.id == this.Ne.id) { | |
o.addClass("self"); | |
} else if (this.Fe === i.user.id) { | |
o.addClass("owner"); | |
} | |
o.append(u).append(h); | |
if (n) { | |
this.$e.after(o); | |
} else { | |
this.Je.append(o); | |
this.Je.animate({ | |
scrollTop: this.Je[0].scrollHeight | |
}); | |
} | |
break; | |
case "user_connected": | |
0; | |
W.o("<div />").addClass("event").text(''.concat(i.name || "a viewer", " has joined")).appendTo(this.Je); | |
break; | |
case "user_disconnected": | |
0; | |
W.o("<div />").addClass("event").text(''.concat(i.name || "a viewer", " has left")).appendTo(this.Je); | |
break; | |
case "room_started": | |
0; | |
W.o("<div />").addClass("event started").text("This show has been started, hope you enjoy it").appendTo(this.Je); | |
} | |
}, | |
Se: function (i) { | |
var n = this; | |
h["default"].M("ajax/watch2gether/room/start", ["type", "POST", "data", ['id', this.Ie, "vrf", h["default"].j(this.Ie)]]).done(function (t) { | |
if (!i) { | |
u.Toast.G(t); | |
} | |
if (200 === t.status && t.result) { | |
n.Ue = true; | |
n.D(2); | |
setTimeout(function () { | |
return n.pr(); | |
}, 3000); | |
setTimeout(function () { | |
return n.pr(); | |
}, 5000); | |
} | |
}); | |
}, | |
Te: function () { | |
var i = this; | |
h["default"].M("ajax/watch2gether/room/end", ["type", "POST", "data", ['id', this.Ie, "vrf", h["default"].j(this.Ie)]]).done(function (t) { | |
u.Toast.G(t); | |
if (200 === t.status && t.result && (i.We.html(t.result), i.rr())) { | |
i.D(3); | |
} | |
}); | |
}, | |
dr: function () { | |
var i = this; | |
if ("manual" != this.Re) { | |
h["default"].M("ajax/watch2gether/room/end", ["type", "POST", "data", ['id', this.Ie, "vrf", h["default"].j(this.Ie)]]).done(function (t) { | |
if (200 === t.status) { | |
try { | |
i.He.pause(); | |
} catch (t) {} | |
i.We.html(t.result); | |
} | |
}); | |
} | |
}, | |
nr: function (t) { | |
this.Cr(); | |
}, | |
er: function (t) { | |
if (13 === t.keyCode) { | |
this.Cr(); | |
} | |
}, | |
tr: function () { | |
var r; | |
var s; | |
var o = this; | |
if (!this.Mr) { | |
this.Mr = true; | |
r = (this.$e.data("page") || 0) + 1; | |
s = false; | |
this.$e.html(this.$e.data("loader")); | |
h["default"].M("ajax/watch2gether/chat/list/".concat(this.Ie), ["data", ["page", r]]).done(function (t) { | |
if (200 === t.status) { | |
for (var n = 0; n < t.result.messages.length; n++) { | |
o.Sr("chat", t.result.messages[n], true); | |
} | |
s = t.result.hasMore; | |
o.$e.data("page", r); | |
} | |
}).always(function () { | |
if (s) { | |
o.$e.html(o.$e.data("more")); | |
} else { | |
o.$e.hide(); | |
} | |
o.Mr = false; | |
}); | |
} | |
}, | |
Cr: function () { | |
var i; | |
var r = this; | |
if (!(s.Visitor.yn() || '' === (i = W.o.trim(this.Ye.val())) || this.jr)) { | |
if (1000 <= i.length) { | |
0; | |
u.Toast("Your message is too long", u.Toast.K); | |
} else { | |
this.jr = true; | |
if (this.D(1, { | |
content: i | |
})) { | |
this.Ye.val(''); | |
} | |
h["default"].M("ajax/watch2gether/chat/save", ["type", "POST", "data", ["room_id", this.Ie, "content", i, "vrf", h["default"].j(''.concat(this.Ie).concat(i))]]).done(function (t) { | |
if (!t.result) { | |
u.Toast.G(t); | |
} | |
}).always(function () { | |
r.jr = false; | |
}); | |
} | |
} | |
}, | |
Qe: function () { | |
var n; | |
var s; | |
var o; | |
var u; | |
var h; | |
var e; | |
var c; | |
if (!(window.innerWidth < 1200)) { | |
n = this.vt.find(".wg2-watch-block"); | |
s = this.vt.find(".room-chat"); | |
0; | |
h = W.o(window); | |
c = function () { | |
Math.max(0, 0 .QLtLR(window.scrollY, u)); | |
var n = document.body.clientHeight + window.scrollY - u - 0 - 10; | |
var n = Math.min(n, o - 0); | |
s.css(0 .QwduX("max-", "height"), n); | |
}; | |
(e = function () { | |
s.attr("style", ''); | |
o = n.height(); | |
u = s.offset().top; | |
})(); | |
c(); | |
h.scroll(c); | |
h.resize(function () { | |
e(); | |
c(); | |
}); | |
} | |
} | |
}); | |
n["default"] = function () { | |
v.bind(".w2g-create-container"); | |
O.bind(".w2g-watch"); | |
}; | |
}, a], | |
17: [function (t, F, i) { | |
'use strict'; | |
var n = { | |
value: true | |
}; | |
Object.defineProperty(i, 't', n); | |
i["default"] = undefined; | |
var f = t(4); | |
var h = t(15); | |
var r = t(9); | |
var a = t(12); | |
var s = t(3); | |
var W = t(7); | |
function v(t) { | |
return (v = "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); | |
} | |
var d = window.Swiper; | |
var K = f.FW.define("WatchSeasons", { | |
h: function (t) { | |
var o = t.find(".season.active").index(); | |
new d(t[0], { | |
grabCursor: true, | |
pagination: { | |
el: ".swiper-pagination", | |
clickable: true, | |
renderBullet: function (t, i) { | |
return "<span class=\"".concat(i, "\"></span>"); | |
} | |
}, | |
slidesPerView: "auto", | |
slidesPerGroup: 3 | |
}).slideTo(o); | |
} | |
}); | |
var O = f.FW.define("ReportEpisode", r.AjaxForm.prototype, { | |
Or: function (t) { | |
this.Er = t; | |
}, | |
V: function () { | |
this.Pr = this.U.find("#report-episode"); | |
this.Ar = this.A.find("#report-episode-id"); | |
this.Ir = this.A.find("#report-server-id"); | |
this.U.on("show.bs.modal", f.o.proxy(this.Ln, this)); | |
}, | |
Ln: function () { | |
var t = this.Er.Rr(); | |
var i = this.Er.Fr(); | |
this.Pr.text(t.data("num")); | |
this.Ar.val(i.data("ep-id")); | |
this.Ir.val(i.data("sv-id")); | |
this.ut(); | |
}, | |
ct: function () { | |
var n; | |
return this.Ur ? (this.ut(), this.$(["Your report already submitted."], r.AjaxForm.K), false) : "undefined" == typeof (n = (0, s.formSerialize)(this.A))[1]["issue[0]"] || '' !== n[1]["issue[0]"] || '' !== f.o.trim(n[1].message) || ((0, a.Toast)("Please fill the form.", a.Toast.K), false); | |
}, | |
et: function () { | |
var t = this; | |
this.Ur = true; | |
setTimeout(function () { | |
t.U.modal("hide"); | |
t.it(); | |
}, 2000); | |
} | |
}); | |
var z = f.FW.define("OnOffControl", { | |
Dr: [], | |
h: function (t) { | |
this.Lr(t); | |
this.Nr(); | |
}, | |
Vr: function (t) { | |
this.Dr.push(t); | |
}, | |
Lr: function (t) { | |
this.un = t; | |
this.Tt = t.data("default"); | |
this.kt = t.data("persist"); | |
if (this.kt && (this.Wr = this.un.data("name"), "undefined" != typeof (t = h.Visitor.Ct(this.Wr)))) { | |
this.Tt = t; | |
} | |
this.dt(); | |
this.un.click(f.o.proxy(this._s, this)); | |
}, | |
_s: function (t) { | |
this.Tt = !this.Tt; | |
if (this.kt) { | |
h.Visitor.At(this.Wr, this.Tt ? 1 : 0); | |
} | |
for (var n = 0; n < this.Dr.length; n++) { | |
this.Dr[n](); | |
} | |
this.dt(); | |
this.qr(); | |
}, | |
dt: function () { | |
var t = this.Tt ? 'on' : 'off'; | |
if (this.un.data(t)) { | |
this.un.html(this.un.data(t)); | |
} | |
}, | |
qr: function () {}, | |
Nr: function () {} | |
}); | |
var j = f.FW.define("LightControl", z.prototype, { | |
Nr: function () { | |
0; | |
this.Br = f.o("<div />").css("width", "100%").css("height", "100%").css("position", "fixed").css("left", 0).css("top", 0).css(z.IbuzG('z', '-') + "index", Math.pow(9, 8)).css("background", "#000").css("opacity", "0.95").css("display", "none").appendTo(document.body).click(f.o.proxy(this._s, this)); | |
0; | |
this.hr = f.o("#player-wrapper"); | |
}, | |
qr: function () { | |
var t = this; | |
if (this.Tt) { | |
this.Br.fadeOut(function () { | |
t.hr.removeAttr("style"); | |
}); | |
} else { | |
this.Br.fadeIn(); | |
this.hr.css("z-index", Math.pow(9, 9)); | |
} | |
} | |
}); | |
var D = f.FW.define("ExpandControl", z.prototype, { | |
h: function (t, i) { | |
this.Lr(t); | |
this.vt = i; | |
}, | |
qr: function () { | |
this.vt.toggleClass("expand"); | |
} | |
}); | |
var R = f.FW.define("ForwardEpisodeControl", z.prototype, { | |
h: function (t, i) { | |
this.Lr(t); | |
this.Er = i; | |
this.un.show(); | |
}, | |
qr: function () { | |
if (this.un.hasClass("next")) { | |
this.Er.Ce(1); | |
} else { | |
this.Er.Ce(-1); | |
} | |
} | |
}); | |
var T = f.FW.define("Rating", { | |
Hr: { | |
10: "Masterpiece", | |
9: "Great", | |
8: "Very Good", | |
7: "Good", | |
6: "Fine", | |
5: "Average", | |
4: "Bad", | |
3: "Very Bad", | |
2: "Horrible", | |
1: "Appalling" | |
}, | |
h: function (t) { | |
this.vt = t; | |
this.zr = t.find(".stars span"); | |
this.Gr = t.find(".message"); | |
this.Tt = t.data("score"); | |
this.on = t.data('id'); | |
this.Yr = f.Storage.get("rated.".concat(this.on)); | |
if (this.Yr) { | |
this.Kr(); | |
} else { | |
this.Gr.data("html", this.Gr.html()); | |
this.vi(); | |
this.zr.mousemove(f.o.proxy(this.Jr, this)).mouseout(f.o.proxy(this.$r, this)).click(f.o.proxy(this.Xr, this)); | |
} | |
}, | |
Mi: function (t) { | |
for (var i = 1; i <= 5; i++) { | |
var n = ''; | |
if (2 * i - 1 < t) { | |
n = "full"; | |
} else if (2 * (i - 1) < t && t < 2 * i) { | |
n = "half"; | |
} | |
0; | |
f.o(this.zr[i - 1]).attr("class", n); | |
} | |
}, | |
Kr: function () { | |
this.Gr.html(this.vt.data("rated").replace("%s", this.Hr[this.Yr] || this.Yr)); | |
this.zr.off("mousemove").off("click").off("mouseout"); | |
this.Mi(this.Yr); | |
}, | |
Xr: function (t) { | |
f.Storage.set("rated.".concat(this.on), this.Yr); | |
this.Kr(); | |
var i = W["default"].C(); | |
W["default"].M("ajax/anime/rate", ["type", "POST", "data", ['id', this.on, "score", this.Yr, "req_id", i, "vrf", W["default"].j(''.concat(this.on, '@').concat(this.Yr, '@').concat(i))]]).done(function (t) { | |
a.Toast.G(t); | |
}); | |
}, | |
$r: function (t) { | |
this.vi(); | |
}, | |
Jr: function (t) { | |
0; | |
var i = f.o(t.currentTarget); | |
if (!this.Zr) { | |
this.Zr = i.outerWidth(); | |
} | |
this.Qr(i.index(), t.offsetX > this.Zr / 2, true); | |
}, | |
vi: function () { | |
this.Mi(this.Tt); | |
this.Gr.html(this.Gr.data("html")); | |
}, | |
Qr: function (t, i) { | |
t = 2 * (t + 1) - (i ? 0 : 1); | |
this.Yr = t; | |
this.Gr.text(this.Hr[t]); | |
this.Mi(t); | |
} | |
}); | |
var P = f.FW.define("SkipTime", { | |
h: function (t) { | |
var r = this; | |
this.un = t; | |
this.I = t.find("input"); | |
this.ts = this.I.filter("[name=\"intro_begin\"]"); | |
this.ns = this.I.filter("[name=\"intro_end\"]"); | |
this.es = this.I.filter("[name=\"outro_begin\"]"); | |
this.rs = this.I.filter("[name=\"outro_end\"]"); | |
this.ss = null; | |
this.us = null; | |
this._t = t.find("[data-toggle=\"dropdown\"]"); | |
this.Zt = t.find("button"); | |
this.os = 0; | |
this.cs = window.innerWidth <= 1024; | |
if (this.cs) { | |
this.un.hide(); | |
} else { | |
a.Broadcast.jt("video:unloaded", function () { | |
return r.hs(); | |
}); | |
a.Broadcast.jt("video:metaloaded", f.o.proxy(this.fs, this)); | |
a.Broadcast.jt("video:seek", f.o.proxy(this.ls, this)); | |
this._t.mouseout(function () { | |
return r.ds(); | |
}); | |
this.un.click(f.o.proxy(this._s, this)); | |
this.I.focus(f.o.proxy(this.ci, this)).change(f.o.proxy(this.wt, this)); | |
this.Zt.click(f.o.proxy(this.N, this)); | |
} | |
}, | |
_s: function (t) { | |
if (h.Visitor.yn()) { | |
t.stopPropagation(); | |
} | |
}, | |
vs: function () { | |
return this.ns.data("value") || this.rs.data("value") ? this.ts.data("value") && !this.ns.data("value") || this.ts.data("value") && this.ts.data("value") == this.ns.data("value") ? ((0, a.Toast)(z.LvddS("Intro value are missing or incorrect", '.'), a.Toast.K), false) : !(this.es.data("value") && !this.rs.data("value") || !this.es.data("value") && this.rs.data("value") || this.es.data("value") && this.es.data("value") == this.rs.data("value")) || ((0, a.Toast)("Outro value are missing or incorrect.", a.Toast.K), false) : ((0, a.Toast)(z.QgiQZ("Please fill at least", ' ') + "intro" + ' ' + 'or' + ' ' + "outro" + '.', a.Toast.K), false); | |
}, | |
N: function () { | |
var r; | |
var s; | |
if (this.vs()) { | |
r = []; | |
s = ''; | |
this.I.each(function (t, i) { | |
0; | |
var i = f.o(i); | |
var n = i.data("value") || ''; | |
r.push(i.attr("name")); | |
r.push(n); | |
s += ''.concat(n); | |
}); | |
r.push('id'); | |
r.push(this.us); | |
r.push("vrf"); | |
r.push(W["default"].j(s)); | |
W["default"].M("ajax/episode/skiptime/save", ["type", "POST", "data", r]).done(function (t) { | |
a.Toast.G(t); | |
}); | |
} | |
}, | |
hs: function () { | |
this.un.hide(); | |
this.I.val('').data("value", ''); | |
}, | |
ds: function () { | |
this.un.tooltip("hide"); | |
}, | |
wt: function (t) { | |
0; | |
var i = f.o(t.currentTarget); | |
var n = f.o.trim(i.val()); | |
if (/^\d{1,2}:\d{1,2}:\d{1,2}$/.test(n)) { | |
t = n.split(':'); | |
t = 3600 * Math.min(3, t[0]) + 60 * Math.min(60, t[1]) + Math.min(60, t[2]); | |
t = Math.min(this.os, t); | |
i.val(W["default"].T(t)).data("value", t); | |
} else { | |
i.val('').data("value", ''); | |
} | |
for (var r = 0; r < this.I.length - 1; r++) { | |
0; | |
var s = f.o(this.I[r]); | |
0; | |
var o = f.o(this.I[r + 1]); | |
if (s.data("value") && o.data("value") && s.data("value") > o.data("value")) { | |
(s[0] == i[0] ? (n = Math.max(s.data("value"), o.data("value")), o) : (n = Math.min(s.data("value"), o.data("value")), s)).data("value", n).val(W["default"].T(n)); | |
} | |
} | |
}, | |
ci: function (t) { | |
0; | |
t = f.o(t.currentTarget); | |
this.ss = t; | |
this.ds(); | |
}, | |
ls: function (t) { | |
if (this.un.hasClass("show")) { | |
if (this.ss) { | |
this.ss.val(W["default"].T(t.offset)).data("value", Math.floor(t.offset)).trigger("change"); | |
} else { | |
0; | |
a.Toast("Please select an input field first.", a.Toast.K); | |
} | |
} | |
}, | |
fs: function (t, i) { | |
if (!this.cs) { | |
if ("media" === i.metadataType) { | |
this.os = Math.floor(i.duration); | |
this.us = t; | |
this.un.show(); | |
} | |
} | |
} | |
}); | |
var M = f.FW.define(z.JJXkW("Watch", "View"), { | |
h: function (t, i) { | |
this.ue = t; | |
this.on = i.data('id'); | |
this.ps = i.data("url"); | |
this.th = i.data("ep-name"); | |
this.gs = i.data("ep-type"); | |
this.vt = i; | |
this.ys = i.find("#w-episodes"); | |
this.ws = i.find("#w-servers"); | |
this.hr = i.find("#player"); | |
this.bs = this.hr.find(".play").hide(); | |
this.xs = false; | |
this.le = null; | |
this.ks = null; | |
this.Ss; | |
0; | |
this.Ts = f.o(".current-episode-name"); | |
0; | |
this.Cs = f.o(z.yBIAe('.', "current") + '-' + "episode" + '-' + "type"); | |
this.Ms = i.find(".ctrl.w2g"); | |
0; | |
this.js = f.o("#comments"); | |
this.Os = this.js.find(".tabs .tab"); | |
this.Es = this.js.find("button.load-comments"); | |
t = h.Visitor.Ct("auto_load_comment"); | |
if ("undefined" != typeof t) { | |
this.js.data("load", t); | |
} | |
this.Os.click(f.o.proxy(this.Ps, this)); | |
this.Es.click(f.o.proxy(this.As, this)); | |
}, | |
Ps: function (t) { | |
0; | |
t = f.o(t.currentTarget); | |
this.Is(t); | |
}, | |
As: function (t) { | |
var i = this.Os.filter(".active"); | |
this.js.data("load", true); | |
this.Is(i); | |
}, | |
Is: function (t) { | |
switch (t.data("type")) { | |
case "anime": | |
this.Rs(); | |
break; | |
case "episode": | |
this.Fs(); | |
} | |
}, | |
Rs: function () { | |
var t = this.js.data('id'); | |
var i = this.js.data("link"); | |
this.Us(t, i); | |
}, | |
Fs: function () { | |
this.Os.removeClass("active").filter("[data-type=\"episode\"]").addClass("active"); | |
var t = this.Rr(); | |
var i = this.Fr(); | |
var n = i.closest(".type").data("type"); | |
var i = i.data("cmid"); | |
var t = t.data("slug"); | |
var r = this.js.data("link"); | |
if ("softsub" === n) { | |
n = "sub"; | |
i = this.Ds.filter("[data-type=\"sub\"] [data-cmid]").first().data("cmid"); | |
} | |
this.Us(''.concat(i, '_').concat(t), ''.concat(r, "/ep-").concat(t, "?type=").concat(n)); | |
}, | |
Us: function (t, i) { | |
try { | |
window.disqus_config = function () { | |
this.page.identifier = t; | |
this.page.url = i; | |
}; | |
} catch (t) {} | |
if (this.js.data("load") && this.Ls != t) { | |
this.Ls = t; | |
this.Ns(); | |
} | |
}, | |
Ns: function () { | |
var r; | |
this.Es.remove(); | |
if (!this.Vs) { | |
this.Vs = true; | |
(r = document.createElement("script")).src = this.js.data('src'); | |
r.setAttribute("data-timestamp", +new Date()); | |
(document.head || document.body).appendChild(r); | |
} | |
try { | |
var s = { | |
reload: true | |
}; | |
window.DISQUS.reset(s); | |
} catch (t) {} | |
this.Ws(); | |
}, | |
Ws: function () { | |
var i = 0; | |
var s = setInterval(function () { | |
if (30 < i++) { | |
clearInterval(s); | |
} else { | |
0; | |
f.o("iframe").each(function (t, i) { | |
var n = i.getAttribute("name"); | |
if (n && t.RhiKv(-1, n.indexOf("dsq")) && !i.getAttribute('src')) { | |
i.parentNode.removeChild(i); | |
clearInterval(s); | |
} | |
}); | |
} | |
}, 500); | |
}, | |
qs: function () { | |
this.hr.removeAttr("style").html("<div class=\"loading\" />"); | |
}, | |
Bs: function (t) { | |
0; | |
this.hr.removeAttr("style").empty().append(f.o("<div class=\"message\" />").text(t)); | |
}, | |
Hs: function () { | |
var t; | |
this.zs = this.vt.find(".filter.type .dropdown-toggle"); | |
this.Gs = this.vt.find(".filter.type .dropdown-item"); | |
this.ks = this.le; | |
if (1 < this.Gs.length) { | |
t = this.Ys(); | |
this.Ks(t); | |
} | |
this.Gs.click(f.o.proxy(this.Js, this)); | |
}, | |
Ys: function () { | |
return arguments.length ? h.Visitor.At("prefered_source_type", arguments[0]) : h.Visitor.Ct("prefered_source_type") || ''; | |
}, | |
Js: function (t) { | |
0; | |
t = f.o(t.currentTarget).data("value"); | |
this.Ys(t); | |
this.Ks(t); | |
}, | |
Ks: function (t) { | |
var t = this.Gs.filter("[data-value=\"".concat(t, "\"]")); | |
var i = (t = t.length ? t : this.Gs.first()).data("value"); | |
var n = t.text(); | |
if (!t.hasClass("active")) { | |
this.Gs.removeClass("active"); | |
t.addClass("active"); | |
} | |
this.zs.data("value", i).text(n); | |
this.$s(i); | |
}, | |
$s: function (r) { | |
var s; | |
if (r) { | |
s = []; | |
this.le.each(function (t, i) { | |
0; | |
var n = f.o(i); | |
if (1 == n.data(r)) { | |
n.show().attr("enabled", 1); | |
s.push(i); | |
} else { | |
n.hide().attr("enabled", 0); | |
} | |
}); | |
0; | |
this.ks = f.o(s); | |
this.Zs(); | |
} else { | |
this.ks = this.le.show().attr("enabled", 1); | |
this.Xs.show(); | |
} | |
}, | |
Qs: function () { | |
this.tu = this.vt.find(".filter.range .dropdown-toggle"); | |
this.Xs = this.vt.find(".filter.range .dropdown-item"); | |
var i = this.Xs.first(); | |
this.tu.data("value", i.data("value")).text(i.text()); | |
this.Xs.click(f.o.proxy(this.iu, this)); | |
}, | |
nu: function (t) { | |
var t = this.Xs.filter("[data-value=\"".concat(t, "\"]")); | |
var r = t.data("value"); | |
var s = t.text(); | |
if (!t.hasClass("active")) { | |
this.Xs.removeClass("active"); | |
t.addClass("active"); | |
} | |
this.tu.data("value", r).text(s); | |
this.Ss.forEach(function (t) { | |
if (t.eu.data("range") == r) { | |
t.eu.show(); | |
} else { | |
t.eu.hide(); | |
} | |
}); | |
}, | |
iu: function (t) { | |
0; | |
t = f.o(t.currentTarget); | |
this.nu(t.data("value")); | |
}, | |
Zs: function () { | |
var i = this.tu.data("value"); | |
var n = false; | |
var r = false; | |
for (var s = this.Ss.length - 1; 0 <= s; s--) { | |
var o = this.Ss[s]; | |
var u = o.eu.data("range"); | |
if (!(r || u != i)) { | |
r = true; | |
} | |
if (o.ru.filter("[enabled=\"1\"]").length) { | |
o.su.show(); | |
if (!n && r && (n = true, u != i)) { | |
this.nu(u); | |
} | |
} else { | |
o.su.hide(); | |
} | |
} | |
}, | |
uu: function () { | |
this.ou = this.vt.find(".filter.name input"); | |
this.ou.keyup(f.o.proxy(this.au, this)); | |
}, | |
au: function (t) { | |
var i = this; | |
var n = this.ou.val().replace(/[^0-9]/g, ''); | |
this.ou.val(n); | |
if (this.cu) { | |
clearTimeout(this.cu); | |
} | |
this.cu = setTimeout(function () { | |
return i.hu(n, 13 == t.keyCode); | |
}, 250); | |
}, | |
hu: function (t, i) { | |
if (this.fu) { | |
this.fu.removeClass("highlight"); | |
} | |
if ('' != t) { | |
for (var n = 0; n < this.ks.length; n++) { | |
0; | |
var r = f.o(this.ks[n]); | |
if (r.data("num") == t) { | |
r.addClass("highlight"); | |
this.fu = r; | |
this.lu(r); | |
this.xe(r); | |
if (i) { | |
this.du(r); | |
} | |
break; | |
} | |
} | |
} | |
}, | |
vu: function (t) { | |
window.history.replaceState('', '', t); | |
}, | |
pu: function (t) { | |
t = ''.concat(t.data('ids')).split(','); | |
this.Ms.show().attr("href", "watch2gether/create/".concat(t[0])); | |
}, | |
ih: function (r) { | |
if (!r.hasClass("active")) { | |
r.addClass("active"); | |
this.le.each(function (t, i) { | |
if (i != r[0]) { | |
0; | |
f.o(i).removeClass("active"); | |
} | |
}); | |
} | |
this.pu(r); | |
this.vu(r.attr("href")); | |
this.lu(r); | |
this.Ts.text(r.data("num")); | |
}, | |
lu: function (t) { | |
var r = t.closest(".ep-range").data("range"); | |
if ('0' == t.attr("enabled")) { | |
this.Ks(null); | |
} | |
this.nu(r); | |
}, | |
xe: function (t) { | |
t = t.offset().top + this.mu.scrollTop() - this.mu.offset().top - 10; | |
var r = { | |
scrollTop: t, | |
duration: 150 | |
}; | |
this.mu.animate(r); | |
}, | |
gu: function () { | |
var r = this; | |
this.Ss = []; | |
this.ys.find(".ep-range").each(function (t, i) { | |
0; | |
var i = f.o(i); | |
var n = i.data("range"); | |
r.Ss.push({ | |
index: r.Ss.length, | |
su: r.Xs.filter("[data-value=\"".concat(n, "\"]")), | |
eu: i, | |
ru: i.find('a') | |
}); | |
}); | |
}, | |
Rr: function () { | |
return this.le ? this.le.filter(".active") : null; | |
}, | |
Fr: function () { | |
return this.Ds.filter(".active"); | |
}, | |
yu: function () { | |
var t = this.Fr(); | |
if (t.length) { | |
this.ue.wu(t); | |
} | |
}, | |
bu: function (t) { | |
var i = this.Fr(); | |
if (i.length) { | |
this.xs = true; | |
this.ue.wu(i); | |
} | |
}, | |
xu: function (t) { | |
t.preventDefault(); | |
0; | |
t = f.o(t.currentTarget); | |
this.du(t); | |
}, | |
du: function (t) { | |
var n = this; | |
this.qs(); | |
this.ih(t); | |
if (window.innerWidth <= 1024) { | |
this.hr.scrollFocus(); | |
} | |
this.xs = true; | |
this.ue.ku(t, function () { | |
n.yu(); | |
}); | |
}, | |
Su: function () { | |
var t = this.gs; | |
if (t) { | |
this.gs = null; | |
} else { | |
t = this.Ys() || f.Storage.get("prefered_server_type"); | |
} | |
this.Tu(t); | |
}, | |
Cu: function () { | |
var t = this.Fr().next(); | |
if (t.length) { | |
this.Mu(t); | |
this.ue.wu(t); | |
} | |
}, | |
Mu: function (n) { | |
var i; | |
if (!n.hasClass("active")) { | |
n.addClass("active"); | |
this.Ds.each(function (t, i) { | |
if (i != n[0]) { | |
0; | |
f.o(i).removeClass("active"); | |
} | |
}); | |
i = n.closest(".type").data("type"); | |
this.Cs.text(i.toUpperCase()); | |
} | |
}, | |
Tu: function (t) { | |
var n; | |
var r = f.Storage.get("prefered_server_id"); | |
if (!((n = !t || (n = r ? this.ju.filter("[data-type=\"".concat(t, "\"]")).find("li[data-sv-id=\"".concat(r, "\"]")).first() : n) && n.length ? n : this.ju.filter("[data-type=\"".concat(t, "\"]")).find('li').first()) && n.length)) { | |
if (r) { | |
n = this.ju.find("li[data-sv-id=\"".concat(r, "\"]")).first(); | |
} | |
} | |
if (!(n && n.length)) { | |
n = this.Ds.first(); | |
} | |
this.Mu(n); | |
}, | |
Ou: function (t) { | |
0; | |
t = f.o(t.currentTarget); | |
this.Mu(t); | |
f.Storage.set("prefered_server_id", t.data("sv-id")); | |
f.Storage.set("prefered_server_type", t.closest(".type").data("type")); | |
this.xs = true; | |
this.ue.wu(t); | |
}, | |
Eu: function () { | |
this.ju = this.ws.find(".servers .type"); | |
this.Ds = this.ju.find('li'); | |
this.Ds.on("click", f.o.proxy(this.Ou, this)); | |
}, | |
Pu: function (t) { | |
if (this.xs || this.ue.Au()) { | |
t += ''.concat(t.indexOf('?') < 0 ? '?' : '&', "autostart=true"); | |
} | |
0; | |
t = f.o("<iframe />").attr('src', t).attr("allow", "autoplay; fullscreen").attr("allowfullscreen", "yes").attr("frameborder", 'no').attr("scrolling", 'no').css("width", "100%").css("height", "100%").css("overflow", "hidden"); | |
this.hr.html(t); | |
}, | |
Iu: function (t, i) { | |
i = i || {}; | |
i.cmd = t; | |
t = this.hr.find("iframe"); | |
if (t.length) { | |
t[0].contentWindow.postMessage(JSON.stringify(i), '*'); | |
} | |
}, | |
Ce: function (t) { | |
var i = this; | |
var n = this.Rr(); | |
var n = this.ks.index(n) + t; | |
if (!(n < 0)) { | |
if ((t = this.ks.eq(n)) && t.length) { | |
this.ih(t); | |
this.xs = true; | |
this.ue.ku(t, function () { | |
i.yu(); | |
}); | |
} | |
} | |
}, | |
Ru: function (t) { | |
this.Pu(t); | |
this.Fs(); | |
}, | |
Fu: function (t) { | |
this.ws.html(t).activate(); | |
this.Eu(); | |
this.Su(); | |
this.Fs(); | |
}, | |
Uu: function (t) { | |
var n = this; | |
this.ys.html(t).activate(); | |
this.mu = this.ys.find(".episodes"); | |
this.le = this.ys.find('a'); | |
this.le.each(function (t, i) { | |
0; | |
i = f.o(i); | |
i.attr("href", ''.concat(n.ps, "/ep-").concat(i.data("slug"))); | |
i.attr("enabled", 1); | |
}); | |
this.Qs(); | |
this.gu(); | |
this.Hs(); | |
this.uu(); | |
this.bs.fadeIn(); | |
this.bs.click(f.o.proxy(this.bu, this)); | |
this.le.click(f.o.proxy(this.xu, this)); | |
}, | |
Du: function (t, i) { | |
t = this.le.filter("[data-slug=\"".concat(t, "\"]:first")); | |
return t = i || t.length ? t : this.le.first(); | |
}, | |
Lu: function (t, i) { | |
t = this.le.filter("[data-num=\"".concat(t, "\"]:first")); | |
return t = i || t.length ? t : this.le.first(); | |
}, | |
Nu: function () { | |
try { | |
var n = this.ue.Vu(); | |
if (n && "object" === v(n) && Object.keys(n).length) { | |
n.id; | |
var r; | |
var s = n.num; | |
var o = n.slug; | |
n.type; | |
if (!this.th || this.th == o) { | |
return r = (r = this.le.filter("[data-slug=\"".concat(o, "\"]")).first()).length ? r : this.le.filter("[data-num=\"".concat(s, "\"]")).first(); | |
} | |
} | |
} catch (t) {} | |
}, | |
Wu: function () { | |
var t = this; | |
var i = this.Du(this.th); | |
this.ih(i); | |
this.xe(i); | |
this.ue.ku(i, function () { | |
t.ue.qu(); | |
}); | |
}, | |
Bu: function () { | |
var i = this; | |
var n = this.ue.Vu(); | |
if (n && "object" === v(n) && Object.keys(n).length && this.le) { | |
try { | |
n.id; | |
var r = n.num; | |
var s = n.slug; | |
var o = n.type; | |
if (!this.th || this.th == s) { | |
var u = this.Rr(); | |
if (u && u.length && u.data("num") != r) { | |
var h = this.Du(s, true); | |
if ((h = h.length ? h : this.Lu(r, true)).length) { | |
this.ih(h); | |
this.ue.ku(h, function () { | |
i.Tu(o); | |
i.ue.qu(); | |
}); | |
return true; | |
} | |
} | |
} | |
} catch (t) {} | |
} | |
} | |
}); | |
var N = f.FW.define("WatchManager", { | |
h: function (i) { | |
var o = this; | |
this.vt = i; | |
this.on = i.data('id'); | |
this.ps = i.data("url"); | |
this.th = i.data("ep-name"); | |
this.Hu = null; | |
this.zu = false; | |
this.Er = new M(this, i); | |
this.Gu = new z(i.find(".ctrl.auto-play")); | |
this.Yu = new z(i.find(z.LvddS('.', "ctrl") + '.' + "auto" + '-' + "next")); | |
this.Ku = new z(i.find(".ctrl.auto-skip")); | |
this.Ju = new P(i.find(".ctrl.skiptime")); | |
new D(i.find(".ctrl.expand"), i); | |
0; | |
new O(f.o("#w-report form")).Or(this.Er); | |
this.Ku.Vr(function () { | |
return o.$u(); | |
}); | |
this.Xu(); | |
this.Zu(); | |
a.Broadcast.jt("user:loaded", function () { | |
return o.Qu(); | |
}); | |
this.we(function () { | |
new R(i.find(".ctrl.prev"), o.Er); | |
new R(i.find(".ctrl.next"), o.Er); | |
o.io = setTimeout(function () { | |
if (!(o.no || o.Er.Bu())) { | |
o.Er.Wu(); | |
} | |
}, 100); | |
}); | |
}, | |
Qu: function () { | |
var s = this; | |
h.Visitor.ee(this.on, function (t) { | |
s.eo = true; | |
s.ro(t.id, t.num, t.slug, t.type, t.position); | |
if (s.Er.Bu() && (s.no = true, s.io)) { | |
clearTimeout(s.io); | |
} | |
}); | |
}, | |
so: function (t) { | |
var r; | |
var s; | |
var o; | |
if (this.Ku.Tt) { | |
r = this.Hu; | |
t = Math.floor(t.position); | |
if (r.intro[1] && t >= r.intro[0] && t < r.intro[1]) { | |
s = W["default"].T(r.intro[0]); | |
o = W["default"].T(r.intro[1]); | |
0; | |
a.Toast("Auto Skip from ".concat(s, z.JOMTB(' ', 'to') + ' ').concat(o), a.Toast.Y); | |
this.uo("SEEK", { | |
value: r.intro[1] | |
}); | |
} else if (r.outro[0] && t >= r.outro[0] && r.outro[1] && t < r.outro[1]) { | |
s = W["default"].T(r.outro[0]); | |
o = W["default"].T(r.outro[1]); | |
0; | |
a.Toast("Auto Skip from ".concat(s, " to ").concat(o), a.Toast.Y); | |
this.uo("SEEK", { | |
value: r.outro[1] | |
}); | |
} | |
} | |
}, | |
fs: function (t) { | |
var n = this.Er.Rr(); | |
var r = this.Er.Fr(); | |
if (!this.oo) { | |
try { | |
this.oo = true; | |
var s = this.Vu(); | |
if (s.num == n.data("num") && s.type == r.closest(".type").data("type")) { | |
this.uo("SEEK", { | |
value: s.position | |
}); | |
} | |
} catch (t) {} | |
} | |
}, | |
qu: function () { | |
if (this.Gu.Tt) { | |
this.Er.yu(); | |
} | |
}, | |
ao: function () { | |
if (this.Yu.Tt) { | |
this.Er.Ce(1); | |
} | |
}, | |
$u: function () { | |
if (this.Hu) { | |
this.uo("SKIP_DATA", { | |
value: [this.Hu.intro, this.Hu.outro], | |
auto: this.Ku.Tt | |
}); | |
} | |
}, | |
co: function (t) { | |
var r = this; | |
switch (t.event) { | |
case "PLAYER_READY": | |
this.$u(); | |
break; | |
case "META_LOADED": | |
a.Broadcast.nt("video:metaloaded", this.Er.Fr().data("ep-id"), t.data); | |
if (this.ho) { | |
clearTimeout(this.ho); | |
} | |
if ("media" == t.data.metadataType) { | |
setTimeout(function () { | |
return r.fs(t.data); | |
}, 100); | |
} | |
break; | |
case "SEEK": | |
a.Broadcast.nt("video:seek", t.data); | |
break; | |
case "PLAY_TIMING": | |
if (this.oo) { | |
this.fo(t.data); | |
} | |
break; | |
case "PLAY_COMPLETED": | |
this.ao(); | |
break; | |
case "EVENT_KEYBOARD": | |
if (-1 == [32, 77].indexOf(t.data)) { | |
this.g(t.data); | |
} | |
} | |
}, | |
Xu: function () { | |
var h = this; | |
0; | |
f.o(window).on("message", function (t) { | |
var r = t.message || t.data || t.originalEvent.data; | |
if (t.mQmiP(t.XxhfN("player", '.') + "error", r)) { | |
try { | |
var s = JSON.parse(r); | |
if (s && "undefined" != typeof s.event) { | |
h.co(s); | |
} | |
} catch (t) {} | |
} | |
}); | |
}, | |
Zu: function () { | |
var n = this; | |
0; | |
f.o(window).keydown(function (t) { | |
if (-1 === "INPUT,TEXTAREA".indexOf(t.target.tagName)) { | |
n.g(t.keyCode, t); | |
} | |
}); | |
}, | |
g: function (t, i) { | |
switch (t) { | |
case 66: | |
this.Er.Ce(-1); | |
break; | |
case 78: | |
this.Er.Ce(1); | |
break; | |
case 74: | |
this.uo("SEEK", { | |
value: -Math.floor(Number.parseInt(h.Visitor.Ct("skip_seconds")) || 5), | |
skip: true | |
}); | |
break; | |
case 76: | |
this.uo("SEEK", { | |
value: Math.floor(Number.parseInt(h.Visitor.Ct("skip_seconds")) || 5), | |
skip: true | |
}); | |
break; | |
case 32: | |
this.uo("PLAY_TOGGLE"); | |
if (i) { | |
i.preventDefault(); | |
} | |
break; | |
case 77: | |
this.uo("MUTE"); | |
} | |
}, | |
fo: function (t) { | |
var n = this.Er.Fr(); | |
var r = this.Er.Rr(); | |
var s = n.data("ep-id"); | |
var n = n.closest(".type").data("type"); | |
var o = r.data("num"); | |
var r = r.data("slug"); | |
var u = t.position ? Math.floor(t.position) : 0; | |
var t = Math.floor(t.duration); | |
h.Visitor.ne(this.on, s, u, t); | |
this.ro(s, o, r, n, u); | |
}, | |
Vu: function () { | |
return f.Storage.get("playing.".concat(this.on)); | |
}, | |
ro: function (t, i, n, r, s) { | |
var h = { | |
id: t, | |
"num": i, | |
slug: n, | |
type: r, | |
position: s | |
}; | |
f.Storage.set("playing.".concat(this.on), h); | |
}, | |
uo: function (t, i) { | |
this.Er.Iu(t, i); | |
}, | |
Au: function () { | |
return this.Gu.Tt; | |
}, | |
wu: function (t) { | |
var o = this; | |
h.Visitor.se(this.on); | |
var t = t.data("link-id"); | |
if (this.ho) { | |
clearTimeout(this.ho); | |
} | |
this.ho = setTimeout(function () { | |
var n = { | |
position: 0, | |
duration: 9 | |
}; | |
o.fo(n); | |
}, 10000); | |
a.Broadcast.nt("video:unloaded"); | |
this.Er.qs(); | |
W["default"].M("ajax/server/".concat(t), ["data", ["vrf", W["default"].j(t)]]).done(function (t) { | |
if (200 !== t.status) { | |
o.Er.Bs(t.message); | |
} else { | |
o.Er.Ru(W["default"].P(t.result.url)); | |
try { | |
o.Hu = JSON.parse(W["default"].P(t.result.skip_data)); | |
} catch (t) { | |
o.Hu = null; | |
} | |
} | |
}).fail(function () { | |
o.Er.Bs("Unable to load the server, please try again."); | |
}); | |
}, | |
ku: function (t, i) { | |
var n = this; | |
var t = t.data('ids'); | |
W["default"].M("ajax/server/list/".concat(t).concat(window.location.search), ["data", ["vrf", W["default"].j(t)]]).done(function (t) { | |
if (200 !== t.status) { | |
n.Er.Bs(t.message); | |
} else { | |
n.Er.Fu(t.result); | |
if (i) { | |
i(); | |
} | |
} | |
}).fail(function () { | |
n.Bs("Unable to load the episode, please try again."); | |
}); | |
}, | |
we: function (i) { | |
var n = this; | |
W["default"].M("ajax/episode/list/".concat(this.on).concat(window.location.search), ["data", ["style", h.Visitor.Ct("episode_list_style"), "vrf", W["default"].j(this.on)]]).done(function (t) { | |
if (200 !== t.status) { | |
n.Er.Bs(t.message); | |
} else { | |
n.Er.Uu(t.result); | |
if (i) { | |
i(); | |
} | |
} | |
}).fail(function () { | |
n.Er.Bs("Unable to load episodes."); | |
}); | |
} | |
}); | |
i["default"] = function () { | |
N.bind("#watch-main"); | |
K.bind("#w-seasons"); | |
j.bind(".ctrl.light"); | |
T.bind("#w-rating"); | |
}; | |
}, W] | |
}, {}, [8]); | |
}(); | |
}(); | |
function _0x1012a1(t) { | |
function u(t) { | |
if (typeof t === "string") { | |
return function (t) {}.constructor("while (true) {}").apply("counter"); | |
} else if (('' + t / t).length !== 1 || t % 20 === 0) { | |
(function () { | |
return true; | |
}).constructor("debugger").call("action"); | |
} else { | |
(function () { | |
return false; | |
}).constructor("debugger").apply("stateObject"); | |
} | |
u(++t); | |
} | |
try { | |
if (t) { | |
return u; | |
} else { | |
u(0); | |
} | |
} catch (t) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment