Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2019
5,444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ! function(e) {
  2.     if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
  3.     else if ("function" == typeof define && define.amd) define([], e);
  4.     else {
  5.         var t;
  6.         t = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this, t.qwest = e()
  7.     }
  8. }(function() {
  9.     var e;
  10.     return function t(e, n, a) {
  11.         function o(i, u) {
  12.             if (!n[i]) {
  13.                 if (!e[i]) {
  14.                     var s = "function" == typeof require && require;
  15.                     if (!u && s) return s(i, !0);
  16.                     if (r) return r(i, !0);
  17.                     var c = new Error("Cannot find module '" + i + "'");
  18.                     throw c.code = "MODULE_NOT_FOUND", c
  19.                 }
  20.                 var d = n[i] = {
  21.                     exports: {}
  22.                 };
  23.                 e[i][0].call(d.exports, function(t) {
  24.                     var n = e[i][1][t];
  25.                     return o(n ? n : t)
  26.                 }, d, d.exports, t, e, n, a)
  27.             }
  28.             return n[i].exports
  29.         }
  30.         for (var r = "function" == typeof require && require, i = 0; i < a.length; i++) o(a[i]);
  31.         return o
  32.     }({
  33.         1: [function(t, n) {
  34.             ! function(t) {
  35.                 "use strict";
  36.                 var a = function(e) {
  37.                     var t = function(e, t, n) {
  38.                             n = "function" == typeof n ? n() : null === n ? "" : void 0 === n ? "" : n, e[e.length] = encodeURIComponent(t) + "=" + encodeURIComponent(n)
  39.                         },
  40.                         n = function(e, a, o) {
  41.                             var r, i, u;
  42.                             if ("[object Array]" === Object.prototype.toString.call(a))
  43.                                 for (r = 0, i = a.length; i > r; r++) n(e + "[" + ("object" == typeof a[r] ? r : "") + "]", a[r], o);
  44.                             else if (a && "[object Object]" === a.toString())
  45.                                 for (u in a) a.hasOwnProperty(u) && (e ? n(e + "[" + u + "]", a[u], o, t) : n(u, a[u], o, t));
  46.                             else if (e) t(o, e, a);
  47.                             else
  48.                                 for (u in a) t(o, u, a[u]);
  49.                             return o
  50.                         };
  51.                     return n("", e, []).join("&").replace(/%20/g, "+")
  52.                 };
  53.                 "object" == typeof n && "object" == typeof n.exports ? n.exports = a : "function" == typeof e && e.amd ? e([], function() {
  54.                     return a
  55.                 }) : t.param = a
  56.             }(this)
  57.         }, {}],
  58.         2: [function(e, t) {
  59.             ! function(e) {
  60.                 function t(e) {
  61.                     return "function" == typeof e
  62.                 }
  63.  
  64.                 function n(e) {
  65.                     return "object" == typeof e
  66.                 }
  67.  
  68.                 function a(e) {
  69.                     "undefined" != typeof setImmediate ? setImmediate(e) : "undefined" != typeof process && process.nextTick ? process.nextTick(e) : setTimeout(e, 0)
  70.                 }
  71.                 var o;
  72.                 e[0][e[1]] = function r(e) {
  73.                     var i, u = [],
  74.                         s = [],
  75.                         c = function(e, t) {
  76.                             return null == i && null != e && (i = e, u = t, s.length && a(function() {
  77.                                 for (var e = 0; e < s.length; e++) s[e]()
  78.                             })), i
  79.                         };
  80.                     return c.then = function(c, d) {
  81.                         var l = r(e),
  82.                             f = function() {
  83.                                 function e(a) {
  84.                                     var r, i = 0;
  85.                                     try {
  86.                                         if (a && (n(a) || t(a)) && t(r = a.then)) {
  87.                                             if (a === l) throw new TypeError;
  88.                                             r.call(a, function() {
  89.                                                 i++ || e.apply(o, arguments)
  90.                                             }, function(e) {
  91.                                                 i++ || l(!1, [e])
  92.                                             })
  93.                                         } else l(!0, arguments)
  94.                                     } catch (u) {
  95.                                         i++ || l(!1, [u])
  96.                                     }
  97.                                 }
  98.                                 try {
  99.                                     var a = i ? c : d;
  100.                                     t(a) ? e(a.apply(o, u || [])) : l(i, u)
  101.                                 } catch (r) {
  102.                                     l(!1, [r])
  103.                                 }
  104.                             };
  105.                         return null != i ? a(f) : s.push(f), l
  106.                     }, e && (c = e(c)), c
  107.                 }
  108.             }("undefined" == typeof t ? [window, "pinkySwear"] : [t, "exports"])
  109.         }, {}],
  110.         qwest: [function(e, t) {
  111.             t.exports = function() {
  112.                 var t = "undefined" != typeof window ? window : self,
  113.                     n = e("pinkyswear"),
  114.                     a = e("jquery-param"),
  115.                     o = {},
  116.                     r = "json",
  117.                     i = "post",
  118.                     u = null,
  119.                     s = 0,
  120.                     c = [],
  121.                     d = t.XMLHttpRequest ? function() {
  122.                         return new t.XMLHttpRequest
  123.                     } : function() {
  124.                         return new ActiveXObject("Microsoft.XMLHTTP")
  125.                     },
  126.                     l = "" === d().responseType,
  127.                     f = function(e, f, p, h, m) {
  128.                         e = e.toUpperCase(), p = void 0 === p ? null : p, h = h || {};
  129.                         for (var g in o)
  130.                             if (!(g in h))
  131.                                 if ("object" == typeof o[g] && "object" == typeof h[g])
  132.                                     for (var y in o[g]) h[g][y] = o[g][y];
  133.                                 else h[g] = o[g];
  134.                         var v, w, b, T, _, E = !1,
  135.                             L = !1,
  136.                             M = !1,
  137.                             x = 0,
  138.                             P = {},
  139.                             k = {
  140.                                 text: "/",
  141.                                 xml: "text/xml",
  142.                                 json: "application/json",
  143.                                 post: "application/x-www-form-urlencoded",
  144.                                 document: "text/html"
  145.                             },
  146.                             S = {
  147.                                 text: "/",
  148.                                 xml: "application/xml; q=1.0, text/xml; q=0.8, /; q=0.1",
  149.                                 json: "application/json; q=1.0, text/; q=0.8, */; q=0.1"
  150.                             },
  151.                             q = !1,
  152.                             j = n(function(n) {
  153.                                 return n.abort = function() {
  154.                                     M || (w && 4 != w.readyState && w.abort(), q && (--s, q = !1), M = !0)
  155.                                 }, n.send = function() {
  156.                                     if (!q) {
  157.                                         if (s == u) return void c.push(n);
  158.                                         if (M) return void(c.length && c.shift().send());
  159.                                         if (++s, q = !0, w = d(), v && ("withCredentials" in w || !t.XDomainRequest || (w = new XDomainRequest, L = !0, "GET" != e && "POST" != e && (e = "POST"))), L ? w.open(e, f) : (w.open(e, f, h.async, h.user, h.password), l && h.async && (w.withCredentials = h.withCredentials)), !L)
  160.                                             for (var a in P) P[a] && w.setRequestHeader(a, P[a]);
  161.                                         if (l && "auto" != h.responseType) try {
  162.                                             w.responseType = h.responseType, E = w.responseType == h.responseType
  163.                                         } catch (o) {}
  164.                                         l || L ? (w.onload = C, w.onerror = O, L && (w.onprogress = function() {})) : w.onreadystatechange = function() {
  165.                                             4 == w.readyState && C()
  166.                                         }, h.async ? "timeout" in w ? (w.timeout = h.timeout, w.ontimeout = R) : b = setTimeout(R, h.timeout) : L && (w.ontimeout = function() {}), "auto" != h.responseType && "overrideMimeType" in w && w.overrideMimeType(k[h.responseType]), m && m(w), L ? setTimeout(function() {
  167.                                             w.send("GET" != e ? p : null)
  168.                                         }, 0) : w.send("GET" != e ? p : null)
  169.                                     }
  170.                                 }, n
  171.                             }),
  172.                             C = function() {
  173.                                 var e;
  174.                                 if (q = !1, clearTimeout(b), c.length && c.shift().send(), !M) {
  175.                                     --s;
  176.                                     try {
  177.                                         if (E) {
  178.                                             if ("response" in w && null === w.response) throw "The request response is empty";
  179.                                             _ = w.response
  180.                                         } else {
  181.                                             if (e = h.responseType, "auto" == e)
  182.                                                 if (L) e = r;
  183.                                                 else {
  184.                                                     var n = w.getResponseHeader("Content-Type") || "";
  185.                                                     e = n.indexOf(k.json) > -1 ? "json" : n.indexOf(k.xml) > -1 ? "xml" : "text"
  186.                                                 } switch (e) {
  187.                                                 case "json":
  188.                                                     if (w.responseText.length) try {
  189.                                                         _ = "JSON" in t ? JSON.parse(w.responseText) : new Function("return (" + w.responseText + ")")()
  190.                                                     } catch (a) {
  191.                                                         throw "Error while parsing JSON body : " + a
  192.                                                     }
  193.                                                     break;
  194.                                                 case "xml":
  195.                                                     try {
  196.                                                         t.DOMParser ? _ = (new DOMParser).parseFromString(w.responseText, "text/xml") : (_ = new ActiveXObject("Microsoft.XMLDOM"), _.async = "false", _.loadXML(w.responseText))
  197.                                                     } catch (a) {
  198.                                                         _ = void 0
  199.                                                     }
  200.                                                     if (!_ || !_.documentElement || _.getElementsByTagName("parsererror").length) throw "Invalid XML";
  201.                                                     break;
  202.                                                 default:
  203.                                                     _ = w.responseText
  204.                                             }
  205.                                         }
  206.                                         if ("status" in w && !/^2|1223/.test(w.status)) throw w.status + " (" + w.statusText + ")";
  207.                                         j(!0, [w, _])
  208.                                     } catch (a) {
  209.                                         j(!1, [a, w, _])
  210.                                     }
  211.                                 }
  212.                             },
  213.                             O = function(e) {
  214.                                 M || (e = "string" == typeof e ? e : "Connection aborted", j.abort(), j(!1, [new Error(e), w, null]))
  215.                             },
  216.                             R = function() {
  217.                                 M || (h.attempts && ++x == h.attempts ? O("Timeout (" + f + ")") : (w.abort(), q = !1, j.send()))
  218.                             };
  219.                         if (h.async = !("async" in h && !h.async), h.cache = "cache" in h && !!h.cache, h.dataType = "dataType" in h ? h.dataType.toLowerCase() : i, h.responseType = "responseType" in h ? h.responseType.toLowerCase() : "auto", h.user = h.user || "", h.password = h.password || "", h.withCredentials = !!h.withCredentials, h.timeout = "timeout" in h ? parseInt(h.timeout, 10) : 3e4, h.attempts = "attempts" in h ? parseInt(h.attempts, 10) : 1, T = f.match(/\/\/(.+?)\//), v = T && !!T[1] && T[1] != location.host, "ArrayBuffer" in t && p instanceof ArrayBuffer ? h.dataType = "arraybuffer" : "Blob" in t && p instanceof Blob ? h.dataType = "blob" : "Document" in t && p instanceof Document ? h.dataType = "document" : "FormData" in t && p instanceof FormData && (h.dataType = "formdata"), null !== p) switch (h.dataType) {
  220.                             case "json":
  221.                                 p = JSON.stringify(p);
  222.                                 break;
  223.                             case "post":
  224.                                 p = a(p)
  225.                         }
  226.                         if (h.headers) {
  227.                             var D = function(e, t, n) {
  228.                                 return t + n.toUpperCase()
  229.                             };
  230.                             for (T in h.headers) P[T.replace(/(^|-)([^-])/g, D)] = h.headers[T]
  231.                         }
  232.                         return "Content-Type" in P || "GET" == e || h.dataType in k && k[h.dataType] && (P["Content-Type"] = k[h.dataType]), P.Accept || (P.Accept = h.responseType in S ? S[h.responseType] : "/"), v || "X-Requested-With" in P || (P["X-Requested-With"] = "XMLHttpRequest"), h.cache || "Cache-Control" in P || (P["Cache-Control"] = "no-cache"), "GET" == e && p && "string" == typeof p && (f += (/\?/.test(f) ? "&" : "?") + p), h.async && j.send(), j
  233.                     },
  234.                     p = function(e) {
  235.                         var t = [],
  236.                             a = 0,
  237.                             o = [];
  238.                         return n(function(n) {
  239.                             var r = -1,
  240.                                 i = function(e) {
  241.                                     return function(i, u, s, c) {
  242.                                         var d = ++r;
  243.                                         return ++a, t.push(f(e, n.base + i, u, s, c).then(function() {
  244.                                             o[d] = arguments, --a || n(!0, 1 == o.length ? o[0] : [o])
  245.                                         }, function() {
  246.                                             n(!1, arguments)
  247.                                         })), n
  248.                                     }
  249.                                 };
  250.                             n.get = i("GET"), n.post = i("POST"), n.put = i("PUT"), n["delete"] = i("DELETE"), n["catch"] = function(e) {
  251.                                 return n.then(null, e)
  252.                             }, n.complete = function(e) {
  253.                                 var t = function() {
  254.                                     e()
  255.                                 };
  256.                                 return n.then(t, t)
  257.                             }, n.map = function(e, t, n, a, o) {
  258.                                 return i(e.toUpperCase()).call(this, t, n, a, o)
  259.                             };
  260.                             for (var u in e) u in n || (n[u] = e[u]);
  261.                             return n.send = function() {
  262.                                 for (var e = 0, a = t.length; a > e; ++e) t[e].send();
  263.                                 return n
  264.                             }, n.abort = function() {
  265.                                 for (var e = 0, a = t.length; a > e; ++e) t[e].abort();
  266.                                 return n
  267.                             }, n
  268.                         })
  269.                     },
  270.                     h = {
  271.                         base: "",
  272.                         get: function() {
  273.                             return p(h).get.apply(this, arguments)
  274.                         },
  275.                         post: function() {
  276.                             return p(h).post.apply(this, arguments)
  277.                         },
  278.                         put: function() {
  279.                             return p(h).put.apply(this, arguments)
  280.                         },
  281.                         "delete": function() {
  282.                             return p(h)["delete"].apply(this, arguments)
  283.                         },
  284.                         map: function() {
  285.                             return p(h).map.apply(this, arguments)
  286.                         },
  287.                         xhr2: l,
  288.                         limit: function(e) {
  289.                             return u = e, h
  290.                         },
  291.                         setDefaultOptions: function(e) {
  292.                             return o = e, h
  293.                         },
  294.                         setDefaultXdrResponseType: function(e) {
  295.                             return r = e.toLowerCase(), h
  296.                         },
  297.                         setDefaultDataType: function(e) {
  298.                             return i = e.toLowerCase(), h
  299.                         },
  300.                         getOpenRequests: function() {
  301.                             return s
  302.                         }
  303.                     };
  304.                 return h
  305.             }()
  306.         }, {
  307.             "jquery-param": 1,
  308.             pinkyswear: 2
  309.         }]
  310.     }, {}, [1, 2])("qwest")
  311. });
  312. try {
  313.     var ce = new window.CustomEvent("test");
  314.     if (ce.preventDefault(), ce.defaultPrevented !== !0) throw new Error("Could not prevent default")
  315. } catch (e) {
  316.     var CustomEvent = function(e, t) {
  317.         var n, a;
  318.         return t = t || {
  319.             bubbles: !1,
  320.             cancelable: !1,
  321.             detail: void 0
  322.         }, n = document.createEvent("CustomEvent"), n.initCustomEvent(e, t.bubbles, t.cancelable, t.detail), a = n.preventDefault, n.preventDefault = function() {
  323.             a.call(this);
  324.             try {
  325.                 Object.defineProperty(this, "defaultPrevented", {
  326.                     get: function() {
  327.                         return !0
  328.                     }
  329.                 })
  330.             } catch (e) {
  331.                 this.defaultPrevented = !0
  332.             }
  333.         }, n
  334.     };
  335.     CustomEvent.prototype = window.Event.prototype, window.CustomEvent = CustomEvent
  336. }! function(e) {
  337.     var t = function() {
  338.             try {
  339.                 return !!Symbol.iterator
  340.             } catch (e) {
  341.                 return !1
  342.             }
  343.         },
  344.         n = t(),
  345.         a = function(e) {
  346.             var t = {
  347.                 next: function() {
  348.                     var t = e.shift();
  349.                     return {
  350.                         done: void 0 === t,
  351.                         value: t
  352.                     }
  353.                 }
  354.             };
  355.             return n && (t[Symbol.iterator] = function() {
  356.                 return t
  357.             }), t
  358.         },
  359.         o = function(e) {
  360.             return encodeURIComponent(e).replace(/%20/g, "+")
  361.         },
  362.         r = function(e) {
  363.             return decodeURIComponent(e).replace(/\+/g, " ")
  364.         },
  365.         i = function() {
  366.             var t = function(e) {
  367.                     if (Object.defineProperty(this, "_entries", {
  368.                             writable: !0,
  369.                             value: {}
  370.                         }), "string" == typeof e) "" !== e && this._fromString(e);
  371.                     else if (e instanceof t) {
  372.                         var n = this;
  373.                         e.forEach(function(e, t) {
  374.                             n.append(t, e)
  375.                         })
  376.                     }
  377.                 },
  378.                 i = t.prototype;
  379.             i.append = function(e, t) {
  380.                 e in this._entries ? this._entries[e].push(t.toString()) : this._entries[e] = [t.toString()]
  381.             }, i["delete"] = function(e) {
  382.                 delete this._entries[e]
  383.             }, i.get = function(e) {
  384.                 return e in this._entries ? this._entries[e][0] : null
  385.             }, i.getAll = function(e) {
  386.                 return e in this._entries ? this._entries[e].slice(0) : []
  387.             }, i.has = function(e) {
  388.                 return e in this._entries
  389.             }, i.set = function(e, t) {
  390.                 this._entries[e] = [t.toString()]
  391.             }, i.forEach = function(e, t) {
  392.                 var n;
  393.                 for (var a in this._entries)
  394.                     if (this._entries.hasOwnProperty(a)) {
  395.                         n = this._entries[a];
  396.                         for (var o = 0; o < n.length; o++) e.call(t, n[o], a, this)
  397.                     }
  398.             }, i.keys = function() {
  399.                 var e = [];
  400.                 return this.forEach(function(t, n) {
  401.                     e.push(n)
  402.                 }), a(e)
  403.             }, i.values = function() {
  404.                 var e = [];
  405.                 return this.forEach(function(t) {
  406.                     e.push(t)
  407.                 }), a(e)
  408.             }, i.entries = function() {
  409.                 var e = [];
  410.                 return this.forEach(function(t, n) {
  411.                     e.push([n, t])
  412.                 }), a(e)
  413.             }, n && (i[Symbol.iterator] = i.entries), i.toString = function() {
  414.                 var e = [];
  415.                 return this.forEach(function(t, n) {
  416.                     e.push(o(n) + "=" + o(t))
  417.                 }), e.join("&")
  418.             }, Object.defineProperty(i, "_fromString", {
  419.                 enumerable: !1,
  420.                 configurable: !1,
  421.                 writable: !1,
  422.                 value: function(e) {
  423.                     this._entries = {}, e = e.replace(/^\?/, "");
  424.                     for (var t, n = e.split("&"), a = 0; a < n.length; a++) t = n[a].split("="), this.append(r(t[0]), t.length > 1 ? r(t[1]) : "")
  425.                 }
  426.             }), e.URLSearchParams = t
  427.         };
  428.     "URLSearchParams" in e && "a=1" === new URLSearchParams("?a=1").toString() || i(), "function" != typeof URLSearchParams.prototype.sort && (URLSearchParams.prototype.sort = function() {
  429.         var e = this,
  430.             t = [];
  431.         this.forEach(function(n, a) {
  432.             t.push([a, n]), e._entries || e["delete"](a)
  433.         }), t.sort(function(e, t) {
  434.             return e[0] < t[0] ? -1 : e[0] > t[0] ? 1 : 0
  435.         }), e._entries && (e._entries = {});
  436.         for (var n = 0; n < t.length; n++) this.append(t[n][0], t[n][1])
  437.     })
  438. }("undefined" != typeof global ? global : "undefined" != typeof window ? window : "undefined" != typeof self ? self : this),
  439. function(e) {
  440.     var t = function() {
  441.             try {
  442.                 var e = new URL("b", "http://a");
  443.                 return e.pathname = "c%20d", "http://a/c%20d" === e.href && e.searchParams
  444.             } catch (t) {
  445.                 return !1
  446.             }
  447.         },
  448.         n = function() {
  449.             var t = e.URL,
  450.                 n = function(t, n) {
  451.                     "string" != typeof t && (t = String(t));
  452.                     var a, o = document;
  453.                     if (n && (void 0 === e.location || n !== e.location.href)) {
  454.                         o = document.implementation.createHTMLDocument(""), a = o.createElement("base"), a.href = n, o.head.appendChild(a);
  455.                         try {
  456.                             if (0 !== a.href.indexOf(n)) throw new Error(a.href)
  457.                         } catch (r) {
  458.                             throw new Error("URL unable to set base " + n + " due to " + r)
  459.                         }
  460.                     }
  461.                     var i = o.createElement("a");
  462.                     if (i.href = t, a && (o.body.appendChild(i), i.href = i.href), ":" === i.protocol || !/:/.test(i.href)) throw new TypeError("Invalid URL");
  463.                     Object.defineProperty(this, "_anchorElement", {
  464.                         value: i
  465.                     });
  466.                     var u = new URLSearchParams(this.search),
  467.                         s = !0,
  468.                         c = !0,
  469.                         d = this;
  470.                     ["append", "delete", "set"].forEach(function(e) {
  471.                         var t = u[e];
  472.                         u[e] = function() {
  473.                             t.apply(u, arguments), s && (c = !1, d.search = u.toString(), c = !0)
  474.                         }
  475.                     }), Object.defineProperty(this, "searchParams", {
  476.                         value: u,
  477.                         enumerable: !0
  478.                     });
  479.                     var l = void 0;
  480.                     Object.defineProperty(this, "_updateSearchParams", {
  481.                         enumerable: !1,
  482.                         configurable: !1,
  483.                         writable: !1,
  484.                         value: function() {
  485.                             this.search !== l && (l = this.search, c && (s = !1, this.searchParams._fromString(this.search), s = !0))
  486.                         }
  487.                     })
  488.                 },
  489.                 a = n.prototype,
  490.                 o = function(e) {
  491.                     Object.defineProperty(a, e, {
  492.                         get: function() {
  493.                             return this._anchorElement[e]
  494.                         },
  495.                         set: function(t) {
  496.                             this._anchorElement[e] = t
  497.                         },
  498.                         enumerable: !0
  499.                     })
  500.                 };
  501.             ["hash", "host", "hostname", "port", "protocol"].forEach(function(e) {
  502.                 o(e)
  503.             }), Object.defineProperty(a, "search", {
  504.                 get: function() {
  505.                     return this._anchorElement.search
  506.                 },
  507.                 set: function(e) {
  508.                     this._anchorElement.search = e, this._updateSearchParams()
  509.                 },
  510.                 enumerable: !0
  511.             }), Object.defineProperties(a, {
  512.                 toString: {
  513.                     get: function() {
  514.                         var e = this;
  515.                         return function() {
  516.                             return e.href
  517.                         }
  518.                     }
  519.                 },
  520.                 href: {
  521.                     get: function() {
  522.                         return this._anchorElement.href.replace(/\?$/, "")
  523.                     },
  524.                     set: function(e) {
  525.                         this._anchorElement.href = e, this._updateSearchParams()
  526.                     },
  527.                     enumerable: !0
  528.                 },
  529.                 pathname: {
  530.                     get: function() {
  531.                         return this._anchorElement.pathname.replace(/(^\/?)/, "/")
  532.                     },
  533.                     set: function(e) {
  534.                         this._anchorElement.pathname = e
  535.                     },
  536.                     enumerable: !0
  537.                 },
  538.                 origin: {
  539.                     get: function() {
  540.                         var e = {
  541.                                 "http:": 80,
  542.                                 "https:": 443,
  543.                                 "ftp:": 21
  544.                             } [this._anchorElement.protocol],
  545.                             t = this._anchorElement.port != e && "" !== this._anchorElement.port;
  546.                         return this._anchorElement.protocol + "//" + this._anchorElement.hostname + (t ? ":" + this._anchorElement.port : "")
  547.                     },
  548.                     enumerable: !0
  549.                 },
  550.                 password: {
  551.                     get: function() {
  552.                         return ""
  553.                     },
  554.                     set: function() {},
  555.                     enumerable: !0
  556.                 },
  557.                 username: {
  558.                     get: function() {
  559.                         return ""
  560.                     },
  561.                     set: function() {},
  562.                     enumerable: !0
  563.                 }
  564.             }), n.createObjectURL = function() {
  565.                 return t.createObjectURL.apply(t, arguments)
  566.             }, n.revokeObjectURL = function() {
  567.                 return t.revokeObjectURL.apply(t, arguments)
  568.             }, e.URL = n
  569.         };
  570.     if (t() || n(), void 0 !== e.location && !("origin" in e.location)) {
  571.         var a = function() {
  572.             return e.location.protocol + "//" + e.location.hostname + (e.location.port ? ":" + e.location.port : "")
  573.         };
  574.         try {
  575.             Object.defineProperty(e.location, "origin", {
  576.                 get: a,
  577.                 enumerable: !0
  578.             })
  579.         } catch (o) {
  580.             setInterval(function() {
  581.                 e.location.origin = a()
  582.             }, 100)
  583.         }
  584.     }
  585. }("undefined" != typeof global ? global : "undefined" != typeof window ? window : "undefined" != typeof self ? self : this),
  586. function(e) {
  587.     function t(e, t) {
  588.         return e.filter(function(e) {
  589.             return 0 === t.filter(function(t) {
  590.                 return t.id === e.id
  591.             }).length
  592.         })
  593.     }
  594.  
  595.     function n(t) {
  596.         t.forEach(function(t) {
  597.             var n = document.querySelector('[data-announcement-item-id="' + t.id + '"]');
  598.             e.util.fade(n, "out", 500, function() {
  599.                 n.parentNode.removeChild(n)
  600.             })
  601.         })
  602.     }
  603.  
  604.     function a(t, n) {
  605.         var a, r = document.querySelector(".announcement-content"),
  606.             i = e.announcementManager.data;
  607.         t.forEach(function(t, u) {
  608.             var s = document.querySelector('[data-announcement-item-id="' + t.id + '"]');
  609.             s ? (a = i.filter(function(e) {
  610.                 return e.id === t.id
  611.             })[0], a.text[e.announcementManager.locale] !== t.text[n] && e.util.fade(s, "out", 500, function() {
  612.                 s.innerHTML = t.text[n], e.util.fade(s, "in", 500)
  613.             })) : (s = o(t, n), s = 0 === u ? r.insertAdjacentHTML("afterbegin", s) : r.querySelector(".announcement-item:nth-child(" + u + ")").insertAdjacentHTML("afterend", s), s = document.querySelector('[data-announcement-item-id="' + t.id + '"]'), e.util.fade(s, "out", 500, function() {
  614.                 e.util.fade(s, "in", 500)
  615.             }))
  616.         })
  617.     }
  618.  
  619.     function o(e, t) {
  620.         return ['<div class="announcement-item" data-announcement-item-id="', e.id, '">', e.text[t], "</div>"].join("")
  621.     }
  622.  
  623.     function r() {
  624.         var o = e.queueData.content.announcements,
  625.             r = e.langManager.locale;
  626.         if (0 !== o.length || 0 !== e.announcementManager.data.length) {
  627.             var i = t(e.announcementManager.data, o);
  628.             i.length > 0 && n(i), a(o, r), e.announcementManager.data = o, e.announcementManager.locale = r
  629.         }
  630.     }
  631.     e.announcementManager = {
  632.         data: [],
  633.         locale: "",
  634.         renderAnnouncements: r
  635.     }
  636. }(window.PL),
  637. function(e) {
  638.     function t(e, t) {
  639.         -1 !== t.indexOf(s) && (e.innerHTML = t.replace(s, "<countdown></countdown>"), u = e.querySelector("countdown"), r(), i = setInterval(r, 200))
  640.     }
  641.  
  642.     function n(t, n) {
  643.         return e.langManager.translate(t, n)
  644.     }
  645.  
  646.     function a() {
  647.         var t = e.queueData.start_date,
  648.             n = new Date(t).getTime() - (new Date).getTime();
  649.         return Math.floor(Math.max(n, 0) / 1e3)
  650.     }
  651.  
  652.     function o() {
  653.         var e, t, o, r, i, u, s = [],
  654.             c = " ",
  655.             d = ", ",
  656.             l = c + n("and") + c;
  657.         return r = a(), i = r, e = Math.floor(r / 86400), i >= 86400 && s.push(e + c + n("day", e)), r -= 86400 * e, t = Math.floor(r / 3600) % 24, i >= 3600 && s.push(t + c + n("hour", t)), r -= 3600 * t, o = Math.floor(r / 60) % 60, i >= 60 && s.push(o + c + n("minute", o)), r -= 60 * o, 0 === e && s.push(r + c + n("second", r)), u = s.pop(), s.length ? s.join(d) + l + u : u
  658.     }
  659.  
  660.     function r() {
  661.         u.innerHTML = o()
  662.     }
  663.     var i = null,
  664.         u = null,
  665.         s = "{countdown}";
  666.     document.addEventListener("page-changed", function(e) {
  667.         var n = e.detail;
  668.         clearInterval(i), "not_started" === n.pageName && t(n.element, n.pageHtml)
  669.     })
  670. }(window.PL),
  671. function(e, t) {
  672.     t.isMobileBrowser = /(android|bb\d+|meego).+mobile|android|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| ||a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0, 4))
  673. }(navigator.userAgent || navigator.vendor || window.opera, window.PL),
  674. function(e) {
  675.     function t(e) {
  676.         var t = new window.URL(e),
  677.             n = new window.URL(window.location.href),
  678.             a = new window.URLSearchParams(n.hash.slice(1));
  679.         n.searchParams.forEach(function(e, n) {
  680.             t.searchParams.has(n) || t.searchParams.set(n, e)
  681.         }), a.has("pld") && !t.searchParams.has("pld") && t.searchParams.set("pld", a.get("pld")), document.location.href = t.toString()
  682.     }
  683.     e.foManager = {
  684.         loadRedirectURL: t
  685.     }
  686. }(window.PL),
  687. function(e) {
  688.     function t(e, t) {
  689.         _gaq.push(["paylogic._trackTiming", "Permanent Queue", "AJAX update", e, t, 20])
  690.     }
  691.  
  692.     function n(t) {
  693.         o.forEach(function(n) {
  694.             _gaq.push([n + "._trackPageview", (e.eventName || "default") + "/" + t])
  695.         })
  696.     }
  697.  
  698.     function a() {
  699.         o.forEach(function(e) {
  700.             _gaq.push([e + "._trackEvent", "Permanent Queue", "Ping"])
  701.         })
  702.     }
  703.     var o = [];
  704.     e.gaManager = {
  705.         sendGAPage: n,
  706.         sendGATiming: t
  707.     }, e.analytics.paylogic_tracker_id && (o.push("paylogic"), _gaq.push(["paylogic._setAccount", e.analytics.paylogic_tracker_id])), e.analytics.event_tracker_id && (o.push("event"), _gaq.push(["event._setAccount", e.analytics.event_tracker_id])), setInterval(a, 3e5), n("landing")
  708. }(window.PL),
  709. function(e) {
  710.     function t() {
  711.         n(o.value), document.dispatchEvent(new CustomEvent("lang-changed"))
  712.     }
  713.  
  714.     function n(t) {
  715.         e.langManager.locale = t, o && o.value !== t && (o.value = t)
  716.     }
  717.  
  718.     function a(t, n) {
  719.         return "number" == typeof n && 1 !== n && (t += "s"), e.translations[e.langManager.locale][t]
  720.     }
  721.     var o = document.querySelector("#lang");
  722.     o && o.addEventListener("change", t), e.langManager = {
  723.         locale: null,
  724.         setLocale: n,
  725.         translate: a
  726.     }
  727. }(window.PL),
  728. function(e) {
  729.     function t(t, n) {
  730.         var a = n[t];
  731.         return a[e.langManager.locale] || a[n.enabled_languages[0]]
  732.     }
  733.  
  734.     function n(e) {
  735.         return !e || (new Date).getTime() >= new Date(e).getTime()
  736.     }
  737.  
  738.     function a() {
  739.         var a = e.queueData.content,
  740.             o = e.langManager.locale,
  741.             s = "not_started",
  742.             c = t("not_started_page", a);
  743.         n(e.queueData.start_date) && (s = a.active_page_name, c = t("active_page", a)), (s !== r || o !== i) && (e.util.fade(u, "out", r ? 500 : 0, function() {
  744.             var t = {
  745.                 detail: {
  746.                     element: u,
  747.                     pageHtml: c,
  748.                     pageName: s
  749.                 }
  750.             };
  751.             u.innerHTML = c, document.dispatchEvent(new CustomEvent("page-changed", t)), e.util.fade(u, "in", 500)
  752.         }), r = s, i = o)
  753.     }
  754.  
  755.     function o() {
  756.         r = "loading", u.innerHTML = '<h2 class="loading">Loading…</h2>', e.util.fade(u, "in", 500)
  757.     }
  758.     var r = null,
  759.         i = null,
  760.         u = document.querySelector(".template-content");
  761.     e.pageManager = {
  762.         renderPage: a,
  763.         loadingMessage: o
  764.     }
  765. }(window.PL),
  766. function(e) {
  767.     function t(e) {
  768.         var t = e && e.match(/^.(?:youtu.be\/|v\/|e\/|u\/\w+\/|embed\/|v=)([^#&?]).*/);
  769.         return t ? t[1] : void 0
  770.     }
  771.  
  772.     function n() {
  773.         var e = document.querySelectorAll(".yt-player-control"),
  774.             t = document.querySelector("#un-mute"),
  775.             n = document.querySelector("#pause-play");
  776.         t.checked = c, t.addEventListener("change", o), n.checked = !1, n.addEventListener("change", r), Array.prototype.forEach.call(e, function(e) {
  777.             e.classList.remove("hide")
  778.         })
  779.     }
  780.  
  781.     function a() {
  782.         u.getPlayerState() === window.YT.PlayerState.CUED && u.playVideo(), u.setVolume(5), n(), i(), window.addEventListener("resize", i)
  783.     }
  784.  
  785.     function o(e) {
  786.         var t = e.target.checked;
  787.         t ? u.mute() : u.unMute()
  788.     }
  789.  
  790.     function r(e) {
  791.         var t = e.target.checked;
  792.         t ? u.pauseVideo() : u.playVideo()
  793.     }
  794.  
  795.     function i() {
  796.         var e, t = {},
  797.             n = {},
  798.             a = document.querySelector(".bg-media"),
  799.             o = document.querySelector(".bg-media iframe");
  800.         t.width = a.offsetWidth, t.height = a.offsetHeight, n.width = t.width, n.height = Math.ceil(Math.ceil(t.width * (9 / 16))), n.marginTop = -((n.height - t.height) / 2), n.marginLeft = 0, e = n.height < t.height, e && (n.height = t.height, n.width = Math.floor(Math.floor(t.height * (16 / 9))), n.marginTop = 0, n.marginLeft = -((n.width - t.width) / 2)), o.style.width = n.width + "px", o.style.height = n.height + "px", o.style.marginTop = n.marginTop + "px", o.style.marginLeft = n.marginLeft + "px"
  801.     }
  802.     var u, s = t(e.media.youtube_url),
  803.         c = Boolean(navigator.userAgent.match("Chrome/"));
  804.     s && !e.isMobileBrowser && window.setTimeout(function() {
  805.         var e = document.createElement("script");
  806.         e.src = "https://www.youtube.com/iframe_api", document.body.appendChild(e)
  807.     }, 500), window.onYouTubeIframeAPIReady = function() {
  808.         u = new window.YT.Player("bgMediaFrame", {
  809.             width: "100%",
  810.             height: "100%",
  811.             playerVars: {
  812.                 autoplay: 1,
  813.                 controls: 0,
  814.                 disablekb: 1,
  815.                 loop: 1,
  816.                 modestbranding: 1,
  817.                 mute: Number(c),
  818.                 showinfo: 0,
  819.                 rel: 0,
  820.                 playlist: s
  821.             },
  822.             videoId: s,
  823.             events: {
  824.                 onReady: a
  825.             }
  826.         })
  827.     }
  828. }(window.PL),
  829. function(e) {
  830.     function t() {
  831.         var t, r = document.createDocumentFragment();
  832.         if (e.media.images && 0 !== e.media.images.length && (!e.media.youtube_url || e.isMobileBrowser)) {
  833.             for (var s = 0, c = e.media.images.length; c > s; s++) t = document.createElement("div"), t.classList.add("bg-slide"), r.appendChild(t), u.push(t);
  834.             document.querySelector(".bg-media").appendChild(r), n(0), o = setInterval(a, i), a()
  835.         }
  836.     }
  837.  
  838.     function n(t) {
  839.         var a = new Image;
  840.         t !== e.media.images.length && (a.addEventListener("load", function() {
  841.             var e = u[t];
  842.             e.style.backgroundImage = ["url(", this.src, ")"].join(""), e.classList.add("loaded"), n(++t)
  843.         }), a.src = e.media.images[t])
  844.     }
  845.  
  846.     function a() {
  847.         var t = document.querySelector(".bg-slide.active");
  848.         return t && t.classList.toggle("active"), u[r].classList.toggle("active"), 1 === e.media.images.length ? void clearInterval(o) : (r++, void(r === e.media.images.length && (r = 0)))
  849.     }
  850.     var o, r = 0,
  851.         i = 8e3,
  852.         u = [];
  853.     t()
  854. }(window.PL),
  855. function(e) {
  856.     function t(e) {
  857.         var t = document.createElement("iframe");
  858.         return t.src = "https://open.spotify.com/embed?uri=" + encodeURIComponent(e), t.setAttribute("allow", "encrypted-media"), t.setAttribute("allowtransparency", "true"), t.setAttribute("frameborder", "0"), t.classList.add("pl-spotify"), t
  859.     }
  860.     var n, a;
  861.     a && a === e.media.spotify_embed || (a = e.media.spotify_embed, n && document.body.removeChild(n), a && (n = t(a), document.querySelector(".pl-body-footer").appendChild(n)))
  862. }(window.PL),
  863. function(e) {
  864.     e.translations = {
  865.         nl: {
  866.             second: "seconde",
  867.             seconds: "seconden",
  868.             minute: "minuut",
  869.             minutes: "minuten",
  870.             hour: "uur",
  871.             hours: "uur",
  872.             day: "dag",
  873.             days: "dagen",
  874.             and: "en"
  875.         },
  876.         en: {
  877.             second: "second",
  878.             seconds: "seconds",
  879.             minute: "minute",
  880.             minutes: "minutes",
  881.             hour: "hour",
  882.             hours: "hours",
  883.             day: "day",
  884.             days: "days",
  885.             and: "and"
  886.         },
  887.         de: {
  888.             second: "Sekunde",
  889.             seconds: "Sekunden",
  890.             minute: "Minute",
  891.             minutes: "Minuten",
  892.             hour: "Stunde",
  893.             hours: "Stunden",
  894.             day: "Tag",
  895.             days: "Tage",
  896.             and: "und"
  897.         },
  898.         fr: {
  899.             second: "seconde",
  900.             seconds: "secondes",
  901.             minute: "minute",
  902.             minutes: "minutes",
  903.             hour: "heure",
  904.             hours: "heures",
  905.             day: "jour",
  906.             days: "jours",
  907.             and: "et"
  908.         },
  909.         es: {
  910.             second: "segundo",
  911.             seconds: "segundos",
  912.             minute: "minuto",
  913.             minutes: "minutos",
  914.             hour: "hora",
  915.             hours: "horas",
  916.             day: "día",
  917.             days: "días",
  918.             and: "y"
  919.         },
  920.         pt: {
  921.             second: "segundo",
  922.             seconds: "segundos",
  923.             minute: "minuto",
  924.             minutes: "minutos",
  925.             hour: "hora",
  926.             hours: "horas",
  927.             day: "dia",
  928.             days: "dias",
  929.             and: "e"
  930.         }
  931.     }
  932. }(window.PL),
  933. function(e) {
  934.     function t() {
  935.         n(), l = setTimeout(i, Math.random())
  936.     }
  937.  
  938.     function n() {
  939.         var e = new window.URL(window.location.href),
  940.             t = e.searchParams.get("token");
  941.         null !== t && "" !== t && (o(t), e.searchParams["delete"]("token"), history.replaceState(null, document.title, e.toString()))
  942.     }
  943.  
  944.     function a(e) {
  945.         var t;
  946.         clearTimeout(p), e && (t = new Date(e).getTime() - (new Date).getTime(), t > 0 && (p = setTimeout(c, t)))
  947.     }
  948.  
  949.     function o(e) {
  950.         var t = new Date;
  951.         h = e, t.setMinutes(t.getMinutes() + 10), document.cookie = "token=" + e + "; expires=" + t.toUTCString(), r() || (document.cookie = "token=" + e)
  952.     }
  953.  
  954.     function r() {
  955.         for (var e = document.cookie.split(";"), t = 0, n = e.length; n > t; t++) {
  956.             var a = e[t],
  957.                 o = a.substr(0, a.indexOf("="));
  958.             if ("token" == o.replace(/ /g, "")) return a.substr(a.indexOf("=") + 1)
  959.         }
  960.         return h
  961.     }
  962.  
  963.     function i() {
  964.         var t = r(),
  965.             n = {
  966.                 now: (new Date).getTime()
  967.             };
  968.         t && (n.token = t), e.queueData || (f = setTimeout(e.pageManager.loadingMessage, 1500)), qwest.get(e.refreshUrl, n).then(function(e, t) {
  969.             clearTimeout(f);
  970.             try {
  971.                 d(t, u(n.now))
  972.             } catch (a) {
  973.                 s(12e4)
  974.             }
  975.         })["catch"](function() {
  976.             e.gaManager.sendGATiming(u(n.now), "failed"), s()
  977.         })
  978.     }
  979.  
  980.     function u(e) {
  981.         return (new Date).getTime() - e
  982.     }
  983.  
  984.     function s(e) {
  985.         clearTimeout(l), l = setTimeout(i, e || 2e4 * Math.random())
  986.     }
  987.  
  988.     function c() {
  989.         e.pageManager.renderPage(), e.announcementManager.renderAnnouncements()
  990.     }
  991.  
  992.     function d(t, n) {
  993.         0 === Object.keys(t).length ? (e.gaManager.sendGATiming(n, "no data"), s()) : (e.queueData = t, t.redirect ? (o(""), e.gaManager.sendGATiming(n, "redirect"), e.foManager.loadRedirectURL(t.redirect)) : (o(t.token || ""), a(t.start_date), e.gaManager.sendGATiming(n, "success"), null === e.langManager.locale && e.langManager.setLocale(t.content.locale), c(), s(t.refresh_seconds ? 1e3 * t.refresh_seconds : 3e4 + 6e4 * Math.random())))
  994.     }
  995.     var l = null,
  996.         f = null,
  997.         p = null,
  998.         h = null;
  999.     qwest.setDefaultOptions({
  1000.         responseType: "json",
  1001.         timeout: 6e4,
  1002.         cache: !0
  1003.     }), document.addEventListener("lang-changed", c), document.addEventListener("page-changed", function() {
  1004.         e.gaManager.sendGAPage(e.queueData.content.active_page_name)
  1005.     }), t()
  1006. }(window.PL),
  1007. function(e) {
  1008.     function t(e, t, n, a) {
  1009.         function o() {
  1010.             i = r ? i + s : i - s, e.style.opacity = i, 0 >= i && (e.style.display = "none"), (0 >= i || i >= 1) && (clearInterval(c), a && a.call(this))
  1011.         }
  1012.         var r = "in" === t,
  1013.             i = r ? 0 : 1,
  1014.             u = 16,
  1015.             s = u / n;
  1016.         r && (e.style.display = "block", e.style.opacity = i);
  1017.         var c = setInterval(o, u)
  1018.     }
  1019.     e.util = {
  1020.         fade: t
  1021.     }
  1022. }(window.PL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement