Skip to content

Instantly share code, notes, and snippets.

@nosmall
Last active October 29, 2023 19:10
Show Gist options
  • Save nosmall/3101cd103041cea207e6e326cca8bc4a to your computer and use it in GitHub Desktop.
Save nosmall/3101cd103041cea207e6e326cca8bc4a to your computer and use it in GitHub Desktop.
iPrima (Remove advertising from video), Vodafone TV (Allow Rewind & Forward)

What I'm doing ?

  • iPrima (Remove advertising from video)
  • Vodafone TV (Allow Rewind & Forward)

Instalation

1) Install Browser Extension "ResourceOverride"

2) Upload the attached file "resource_override_rules.json" to the extension "ResourceOverride"

3) Go to web and delete the cache files "CTRL+SHIFT+R"

Optional Links

Update Log

  • 04.06.2023 - tv.vodafone.cz - Allow Rewind & Forward
  • 14.09.2022 - iprima.cz - Remove advertising from video
This file has been truncated, but you can view the full file.
{"v":1,"data":[{"id":"d2","matchUrl":"*prima*","rules":[{"type":"fileOverride","match":"*ott-player-config.min.js*","file":"parcelRequire = function(e, r, t, n) {\n var i, o = \"function\" == typeof parcelRequire && parcelRequire,\n u = \"function\" == typeof require && require;\n\n function f(t, n) {\n if (!r[t]) {\n if (!e[t]) {\n var i = \"function\" == typeof parcelRequire && parcelRequire;\n if (!n && i) return i(t, !0);\n if (o) return o(t, !0);\n if (u && \"string\" == typeof t) return u(t);\n var c = new Error(\"Cannot find module '\" + t + \"'\");\n throw c.code = \"MODULE_NOT_FOUND\", c\n }\n p.resolve = function(r) {\n return e[t][1][r] || r\n }, p.cache = {};\n var l = r[t] = new f.Module(t);\n e[t][0].call(l.exports, p, l, l.exports, this)\n }\n return r[t].exports;\n\n function p(e) {\n return f(p.resolve(e))\n }\n }\n f.isParcelRequire = !0, f.Module = function(e) {\n this.id = e, this.bundle = f, this.exports = {}\n }, f.modules = e, f.cache = r, f.parent = o, f.register = function(r, t) {\n e[r] = [function(e, r) {\n r.exports = t\n }, {}]\n };\n for (var c = 0; c < t.length; c++) try {\n f(t[c])\n } catch (e) {\n i || (i = e)\n }\n if (t.length) {\n var l = f(t[t.length - 1]);\n \"object\" == typeof exports && \"undefined\" != typeof module ? module.exports = l : \"function\" == typeof define && define.amd ? define(function() {\n return l\n }) : n && (this[n] = l)\n }\n if (parcelRequire = f, i) throw i;\n return f\n }({\n \"in7L\": [function(require, module, exports) {\n \"use strict\";\n var e = this && this.__assign || function() {\n return (e = Object.assign || function(e) {\n for (var t, n = 1, r = arguments.length; n < r; n++)\n for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);\n return e\n }).apply(this, arguments)\n },\n t = this && this.__awaiter || function(e, t, n, r) {\n return new(n || (n = Promise))(function(o, s) {\n function i(e) {\n try {\n u(r.next(e))\n } catch (t) {\n s(t)\n }\n }\n\n function a(e) {\n try {\n u(r.throw(e))\n } catch (t) {\n s(t)\n }\n }\n\n function u(e) {\n e.done ? o(e.value) : new n(function(t) {\n t(e.value)\n }).then(i, a)\n }\n u((r = r.apply(e, t || [])).next())\n })\n },\n n = this && this.__generator || function(e, t) {\n var n, r, o, s, i = {\n label: 0,\n sent: function() {\n if (1 & o[0]) throw o[1];\n return o[1]\n },\n trys: [],\n ops: []\n };\n return s = {\n next: a(0),\n throw: a(1),\n return: a(2)\n }, \"function\" == typeof Symbol && (s[Symbol.iterator] = function() {\n return this\n }), s;\n\n function a(s) {\n return function(a) {\n return function(s) {\n if (n) throw new TypeError(\"Generator is already executing.\");\n for (; i;) try {\n if (n = 1, r && (o = 2 & s[0] ? r.return : s[0] ? r.throw || ((o = r.return) && o.call(r), 0) : r.next) && !(o = o.call(r, s[1])).done) return o;\n switch (r = 0, o && (s = [2 & s[0], o.value]), s[0]) {\n case 0:\n case 1:\n o = s;\n break;\n case 4:\n return i.label++, {\n value: s[1],\n done: !1\n };\n case 5:\n i.label++, r = s[1], s = [0];\n continue;\n case 7:\n s = i.ops.pop(), i.trys.pop();\n continue;\n default:\n if (!(o = (o = i.trys).length > 0 && o[o.length - 1]) && (6 === s[0] || 2 === s[0])) {\n i = 0;\n continue\n }\n if (3 === s[0] && (!o || s[1] > o[0] && s[1] < o[3])) {\n i.label = s[1];\n break\n }\n if (6 === s[0] && i.label < o[1]) {\n i.label = o[1], o = s;\n break\n }\n if (o && i.label < o[2]) {\n i.label = o[2], i.ops.push(s);\n break\n }\n o[2] && i.ops.pop(), i.trys.pop();\n continue\n }\n s = t.call(e, i)\n } catch (a) {\n s = [6, a], r = 0\n } finally {\n n = o = 0\n }\n if (5 & s[0]) throw s[1];\n return {\n value: s[0] ? s[1] : void 0,\n done: !0\n }\n }([s, a])\n }\n }\n };\n\n function r(t) {\n return {\n headers: e({\n \"X-OTT-CDN-Url-Type\": \"WEB\"\n }, t)\n }\n }\n\n function o(e, r) {\n return t(this, void 0, void 0, function() {\n var t, o;\n return n(this, function(n) {\n switch (n.label) {\n case 0:\n return [4, fetch(e, r)];\n case 1:\n return [4, (t = n.sent()).json().then(function(e) {\n return e\n }).catch(function(e) {\n return new Object({\n errorCode: \"JSON_PARSE\",\n subcode: \"api.response.\" + t.status\n })\n })];\n case 2:\n if (o = n.sent(), !t.ok) throw o;\n return [2, o]\n }\n })\n })\n }\n\n function s(e) {\n var t = \"\",\n n = [];\n return e.playAccessToken && n.push(\"playAccessToken=\" + e.playAccessToken), e.prerollKeys && e.prerollKeys.length > 0 && e.prerollKeys.forEach(function(e) {\n n.push(\"prerollKeys=\" + e)\n }), n.length > 0 && (t = \"?\" + n.join(\"&\")), t\n }\n\n function i(e, i) {\n return t(this, void 0, void 0, function() {\n var t;\n return n(this, function(n) {\n switch (n.label) {\n case 0:\n return t = s(i), [4, o(i.baseUri + \"/products/id-\" + e + \"/play\" + t, r(i.requestsHeaders))];\n case 1:\n return [2, n.sent()]\n }\n })\n })\n }\n\n function a(e, i) {\n return t(this, void 0, void 0, function() {\n var t;\n return n(this, function(n) {\n switch (n.label) {\n case 0:\n return t = s(i), [4, o(i.baseUri + \"/products/play/ids-\" + e.join(\",\") + t, r(i.requestsHeaders))];\n case 1:\n return [2, n.sent()]\n }\n })\n })\n }\n\n function u(e) {\n return t(this, void 0, void 0, function() {\n return n(this, function(t) {\n switch (t.label) {\n case 0:\n return [4, o(e.baseUri + \"/conf/app/standalonePlayer\", r(e.requestsHeaders))];\n case 1:\n return [2, t.sent()]\n }\n })\n })\n }\n Object.defineProperty(exports, \"__esModule\", {\n value: !0\n }), exports.fetchPlayData = i, exports.fetchMultiplePlayData = a, exports.fetchPlayerConfiguration = u;\n }, {}],\n \"zCTz\": [function(require, module, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", {\n value: !0\n });\n var e = {\n embed: !0,\n anonymForced: !1,\n playerType: \"player\",\n baseUri: null,\n siteIdentifier: null,\n playerId: \"ott-video-player\"\n };\n\n function t(t) {\n Object.keys(t).forEach(function(r) {\n e[r] = t[r]\n })\n }\n exports.setDefaultOptions = t, exports.default = e;\n }, {}],\n \"duga\": [function(require, module, exports) {\n \"use strict\";\n\n function e(e) {\n var s = e.match(/(-)?P(?:([.,\\d]+)Y)?(?:([.,\\d]+)M)?(?:([.,\\d]+)W)?(?:([.,\\d]+)D)?T(?:([.,\\d]+)H)?(?:([.,\\d]+)M)?(?:([.,\\d]+)S)?/);\n if (null != s) {\n var r = {\n sign: void 0 === s[1] ? \"+\" : \"-\",\n years: void 0 === s[2] ? 0 : parseInt(s[2]),\n months: void 0 === s[3] ? 0 : parseInt(s[3]),\n weeks: void 0 === s[4] ? 0 : parseInt(s[4]),\n days: void 0 === s[5] ? 0 : parseInt(s[5]),\n hours: void 0 === s[6] ? 0 : parseInt(s[6]),\n minutes: void 0 === s[7] ? 0 : parseInt(s[7]),\n seconds: void 0 === s[8] ? 0 : parseInt(s[8])\n };\n return 3600 * r.hours + 60 * r.minutes + r.seconds\n }\n throw new TypeError(\"Provided string isn't valid iso8601 duration.\")\n }\n Object.defineProperty(exports, \"__esModule\", {\n value: !0\n }), exports.default = e;\n }, {}],\n \"jn5J\": [function(require, module, exports) {\n \"use strict\";\n\n function e(e) {\n return [\"LIVESTREAM\", \"SIMULCAST\"].indexOf(e.productDetail.productCategory) >= 0\n }\n Object.defineProperty(exports, \"__esModule\", {\n value: !0\n }), exports.default = e;\n }, {}],\n \"rJeL\": [function(require, module, exports) {\n \"use strict\";\n\n function e(e) {\n return e.charAt(0).toUpperCase() + e.slice(1)\n }\n Object.defineProperty(exports, \"__esModule\", {\n value: !0\n }), exports.default = e;\n }, {}],\n \"a2Bw\": [function(require, module, exports) {\n var define;\n var global = arguments[3];\n var e, t = arguments[3];\n ! function(t, n) {\n \"object\" == typeof exports && \"undefined\" != typeof module ? module.exports = n() : \"function\" == typeof e && e.amd ? e(n) : t.moment = n()\n }(this, function() {\n \"use strict\";\n var e, t;\n\n function n() {\n return e.apply(null, arguments)\n }\n\n function s(e) {\n return e instanceof Array || \"[object Array]\" === Object.prototype.toString.call(e)\n }\n\n function i(e) {\n return null != e && \"[object Object]\" === Object.prototype.toString.call(e)\n }\n\n function r(e, t) {\n return Object.prototype.hasOwnProperty.call(e, t)\n }\n\n function a(e) {\n if (Object.getOwnPropertyNames) return 0 === Object.getOwnPropertyNames(e).length;\n var t;\n for (t in e)\n if (r(e, t)) return !1;\n return !0\n }\n\n function o(e) {\n return void 0 === e\n }\n\n function u(e) {\n return \"number\" == typeof e || \"[object Number]\" === Object.prototype.toString.call(e)\n }\n\n function l(e) {\n return e instanceof Date || \"[object Date]\" === Object.prototype.toString.call(e)\n }\n\n function h(e, t) {\n var n, s = [];\n for (n = 0; n < e.length; ++n) s.push(t(e[n], n));\n return s\n }\n\n function d(e, t) {\n for (var n in t) r(t, n) && (e[n] = t[n]);\n return r(t, \"toString\") && (e.toString = t.toString), r(t, \"valueOf\") && (e.valueOf = t.valueOf), e\n }\n\n function c(e, t, n, s) {\n return Tt(e, t, n, s, !0).utc()\n }\n\n function f(e) {\n return null == e._pf && (e._pf = {\n empty: !1,\n unusedTokens: [],\n unusedInput: [],\n overflow: -2,\n charsLeftOver: 0,\n nullInput: !1,\n invalidEra: null,\n invalidMonth: null,\n invalidFormat: !1,\n userInvalidated: !1,\n iso: !1,\n parsedDateParts: [],\n era: null,\n meridiem: null,\n rfc2822: !1,\n weekdayMismatch: !1\n }), e._pf\n }\n\n function m(e) {\n if (null == e._isValid) {\n var n = f(e),\n s = t.call(n.parsedDateParts, function(e) {\n return null != e\n }),\n i = !isNaN(e._d.getTime()) && n.overflow < 0 && !n.empty && !n.invalidEra && !n.invalidMonth && !n.invalidWeekday && !n.weekdayMismatch && !n.nullInput && !n.invalidFormat && !n.userInvalidated && (!n.meridiem || n.meridiem && s);\n if (e._strict && (i = i && 0 === n.charsLeftOver && 0 === n.unusedTokens.length && void 0 === n.bigHour), null != Object.isFrozen && Object.isFrozen(e)) return i;\n e._isValid = i\n }\n return e._isValid\n }\n\n function _(e) {\n var t = c(NaN);\n return null != e ? d(f(t), e) : f(t).userInvalidated = !0, t\n }\n t = Array.prototype.some ? Array.prototype.some : function(e) {\n var t, n = Object(this),\n s = n.length >>> 0;\n for (t = 0; t < s; t++)\n if (t in n && e.call(this, n[t], t, n)) return !0;\n return !1\n };\n var y = n.momentProperties = [],\n g = !1;\n\n function w(e, t) {\n var n, s, i;\n if (o(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), o(t._i) || (e._i = t._i), o(t._f) || (e._f = t._f), o(t._l) || (e._l = t._l), o(t._strict) || (e._strict = t._strict), o(t._tzm) || (e._tzm = t._tzm), o(t._isUTC) || (e._isUTC = t._isUTC), o(t._offset) || (e._offset = t._offset), o(t._pf) || (e._pf = f(t)), o(t._locale) || (e._locale = t._locale), y.length > 0)\n for (n = 0; n < y.length; n++) o(i = t[s = y[n]]) || (e[s] = i);\n return e\n }\n\n function p(e) {\n w(this, e), this._d = new Date(null != e._d ? e._d.getTime() : NaN), this.isValid() || (this._d = new Date(NaN)), !1 === g && (g = !0, n.updateOffset(this), g = !1)\n }\n\n function v(e) {\n return e instanceof p || null != e && null != e._isAMomentObject\n }\n\n function k(e) {\n !1 === n.suppressDeprecationWarnings && \"undefined\" != typeof console && console.warn && console.warn(\"Deprecation warning: \" + e)\n }\n\n function M(e, t) {\n var s = !0;\n return d(function() {\n if (null != n.deprecationHandler && n.deprecationHandler(null, e), s) {\n var i, a, o, u = [];\n for (a = 0; a < arguments.length; a++) {\n if (i = \"\", \"object\" == typeof arguments[a]) {\n for (o in i += \"\\n[\" + a + \"] \", arguments[0]) r(arguments[0], o) && (i += o + \": \" + arguments[0][o] + \", \");\n i = i.slice(0, -2)\n } else i = arguments[a];\n u.push(i)\n }\n k(e + \"\\nArguments: \" + Array.prototype.slice.call(u).join(\"\") + \"\\n\" + (new Error).stack), s = !1\n }\n return t.apply(this, arguments)\n }, t)\n }\n var D, S = {};\n\n function Y(e, t) {\n null != n.deprecationHandler && n.deprecationHandler(e, t), S[e] || (k(t), S[e] = !0)\n }\n\n function O(e) {\n return \"undefined\" != typeof Function && e instanceof Function || \"[object Function]\" === Object.prototype.toString.call(e)\n }\n\n function b(e, t) {\n var n, s = d({}, e);\n for (n in t) r(t, n) && (i(e[n]) && i(t[n]) ? (s[n] = {}, d(s[n], e[n]), d(s[n], t[n])) : null != t[n] ? s[n] = t[n] : delete s[n]);\n for (n in e) r(e, n) && !r(t, n) && i(e[n]) && (s[n] = d({}, s[n]));\n return s\n }\n\n function x(e) {\n null != e && this.set(e)\n }\n n.suppressDeprecationWarnings = !1, n.deprecationHandler = null, D = Object.keys ? Object.keys : function(e) {\n var t, n = [];\n for (t in e) r(e, t) && n.push(t);\n return n\n };\n\n function T(e, t, n) {\n var s = \"\" + Math.abs(e),\n i = t - s.length;\n return (e >= 0 ? n ? \"+\" : \"\" : \"-\") + Math.pow(10, Math.max(0, i)).toString().substr(1) + s\n }\n var N = /(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,\n P = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,\n R = {},\n W = {};\n\n function C(e, t, n, s) {\n var i = s;\n \"string\" == typeof s && (i = function() {\n return this[s]()\n }), e && (W[e] = i), t && (W[t[0]] = function() {\n return T(i.apply(this, arguments), t[1], t[2])\n }), n && (W[n] = function() {\n return this.localeData().ordinal(i.apply(this, arguments), e)\n })\n }\n\n function U(e, t) {\n return e.isValid() ? (t = H(t, e.localeData()), R[t] = R[t] || function(e) {\n var t, n, s, i = e.match(N);\n for (t = 0, n = i.length; t < n; t++) W[i[t]] ? i[t] = W[i[t]] : i[t] = (s = i[t]).match(/\\[[\\s\\S]/) ? s.replace(/^\\[|\\]$/g, \"\") : s.replace(/\\\\/g, \"\");\n return function(t) {\n var s, r = \"\";\n for (s = 0; s < n; s++) r += O(i[s]) ? i[s].call(t, e) : i[s];\n return r\n }\n }(t), R[t](e)) : e.localeData().invalidDate()\n }\n\n function H(e, t) {\n var n = 5;\n\n function s(e) {\n return t.longDateFormat(e) || e\n }\n for (P.lastIndex = 0; n >= 0 && P.test(e);) e = e.replace(P, s), P.lastIndex = 0, n -= 1;\n return e\n }\n var F = {};\n\n function L(e, t) {\n var n = e.toLowerCase();\n F[n] = F[n + \"s\"] = F[t] = e\n }\n\n function V(e) {\n return \"string\" == typeof e ? F[e] || F[e.toLowerCase()] : void 0\n }\n\n function G(e) {\n var t, n, s = {};\n for (n in e) r(e, n) && (t = V(n)) && (s[t] = e[n]);\n return s\n }\n var E = {};\n\n function A(e, t) {\n E[e] = t\n }\n\n function j(e) {\n return e % 4 == 0 && e % 100 != 0 || e % 400 == 0\n }\n\n function I(e) {\n return e < 0 ? Math.ceil(e) || 0 : Math.floor(e)\n }\n\n function Z(e) {\n var t = +e,\n n = 0;\n return 0 !== t && isFinite(t) && (n = I(t)), n\n }\n\n function z(e, t) {\n return function(s) {\n return null != s ? (q(this, e, s), n.updateOffset(this, t), this) : $(this, e)\n }\n }\n\n function $(e, t) {\n return e.isValid() ? e._d[\"get\" + (e._isUTC ? \"UTC\" : \"\") + t]() : NaN\n }\n\n function q(e, t, n) {\n e.isValid() && !isNaN(n) && (\"FullYear\" === t && j(e.year()) && 1 === e.month() && 29 === e.date() ? (n = Z(n), e._d[\"set\" + (e._isUTC ? \"UTC\" : \"\") + t](n, e.month(), Te(n, e.month()))) : e._d[\"set\" + (e._isUTC ? \"UTC\" : \"\") + t](n))\n }\n var B, J = /\\d/,\n Q = /\\d\\d/,\n X = /\\d{3}/,\n K = /\\d{4}/,\n ee = /[+-]?\\d{6}/,\n te = /\\d\\d?/,\n ne = /\\d\\d\\d\\d?/,\n se = /\\d\\d\\d\\d\\d\\d?/,\n ie = /\\d{1,3}/,\n re = /\\d{1,4}/,\n ae = /[+-]?\\d{1,6}/,\n oe = /\\d+/,\n ue = /[+-]?\\d+/,\n le = /Z|[+-]\\d\\d:?\\d\\d/gi,\n he = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi,\n de = /[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i;\n\n function ce(e, t, n) {\n B[e] = O(t) ? t : function(e, s) {\n return e && n ? n : t\n }\n }\n\n function fe(e, t) {\n return r(B, e) ? B[e](t._strict, t._locale) : new RegExp(me(e.replace(\"\\\\\", \"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g, function(e, t, n, s, i) {\n return t || n || s || i\n })))\n }\n\n function me(e) {\n return e.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, \"\\\\$&\")\n }\n B = {};\n var _e = {};\n\n function ye(e, t) {\n var n, s = t;\n for (\"string\" == typeof e && (e = [e]), u(t) && (s = function(e, n) {\n n[t] = Z(e)\n }), n = 0; n < e.length; n++) _e[e[n]] = s\n }\n\n function ge(e, t) {\n ye(e, function(e, n, s, i) {\n s._w = s._w || {}, t(e, s._w, s, i)\n })\n }\n\n function we(e, t, n) {\n null != t && r(_e, e) && _e[e](t, n._a, n, e)\n }\n var pe, ve = 0,\n ke = 1,\n Me = 2,\n De = 3,\n Se = 4,\n Ye = 5,\n Oe = 6,\n be = 7,\n xe = 8;\n\n function Te(e, t) {\n if (isNaN(e) || isNaN(t)) return NaN;\n var n, s = (t % (n = 12) + n) % n;\n return e += (t - s) / 12, 1 === s ? j(e) ? 29 : 28 : 31 - s % 7 % 2\n }\n pe = Array.prototype.indexOf ? Array.prototype.indexOf : function(e) {\n var t;\n for (t = 0; t < this.length; ++t)\n if (this[t] === e) return t;\n return -1\n }, C(\"M\", [\"MM\", 2], \"Mo\", function() {\n return this.month() + 1\n }), C(\"MMM\", 0, 0, function(e) {\n return this.localeData().monthsShort(this, e)\n }), C(\"MMMM\", 0, 0, function(e) {\n return this.localeData().months(this, e)\n }), L(\"month\", \"M\"), A(\"month\", 8), ce(\"M\", te), ce(\"MM\", te, Q), ce(\"MMM\", function(e, t) {\n return t.monthsShortRegex(e)\n }), ce(\"MMMM\", function(e, t) {\n return t.monthsRegex(e)\n }), ye([\"M\", \"MM\"], function(e, t) {\n t[ke] = Z(e) - 1\n }), ye([\"MMM\", \"MMMM\"], function(e, t, n, s) {\n var i = n._locale.monthsParse(e, s, n._strict);\n null != i ? t[ke] = i : f(n).invalidMonth = e\n });\n var Ne = \"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),\n Pe = \"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),\n Re = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,\n We = de,\n Ce = de;\n\n function Ue(e, t) {\n var n;\n if (!e.isValid()) return e;\n if (\"string\" == typeof t)\n if (/^\\d+$/.test(t)) t = Z(t);\n else if (!u(t = e.localeData().monthsParse(t))) return e;\n return n = Math.min(e.date(), Te(e.year(), t)), e._d[\"set\" + (e._isUTC ? \"UTC\" : \"\") + \"Month\"](t, n), e\n }\n\n function He(e) {\n return null != e ? (Ue(this, e), n.updateOffset(this, !0), this) : $(this, \"Month\")\n }\n\n function Fe() {\n function e(e, t) {\n return t.length - e.length\n }\n var t, n, s = [],\n i = [],\n r = [];\n for (t = 0; t < 12; t++) n = c([2e3, t]), s.push(this.monthsShort(n, \"\")), i.push(this.months(n, \"\")), r.push(this.months(n, \"\")), r.push(this.monthsShort(n, \"\"));\n for (s.sort(e), i.sort(e), r.sort(e), t = 0; t < 12; t++) s[t] = me(s[t]), i[t] = me(i[t]);\n for (t = 0; t < 24; t++) r[t] = me(r[t]);\n this._monthsRegex = new RegExp(\"^(\" + r.join(\"|\") + \")\", \"i\"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(\"^(\" + i.join(\"|\") + \")\", \"i\"), this._monthsShortStrictRegex = new RegExp(\"^(\" + s.join(\"|\") + \")\", \"i\")\n }\n\n function Le(e) {\n return j(e) ? 366 : 365\n }\n C(\"Y\", 0, 0, function() {\n var e = this.year();\n return e <= 9999 ? T(e, 4) : \"+\" + e\n }), C(0, [\"YY\", 2], 0, function() {\n return this.year() % 100\n }), C(0, [\"YYYY\", 4], 0, \"year\"), C(0, [\"YYYYY\", 5], 0, \"year\"), C(0, [\"YYYYYY\", 6, !0], 0, \"year\"), L(\"year\", \"y\"), A(\"year\", 1), ce(\"Y\", ue), ce(\"YY\", te, Q), ce(\"YYYY\", re, K), ce(\"YYYYY\", ae, ee), ce(\"YYYYYY\", ae, ee), ye([\"YYYYY\", \"YYYYYY\"], ve), ye(\"YYYY\", function(e, t) {\n t[ve] = 2 === e.length ? n.parseTwoDigitYear(e) : Z(e)\n }), ye(\"YY\", function(e, t) {\n t[ve] = n.parseTwoDigitYear(e)\n }), ye(\"Y\", function(e, t) {\n t[ve] = parseInt(e, 10)\n }), n.parseTwoDigitYear = function(e) {\n return Z(e) + (Z(e) > 68 ? 1900 : 2e3)\n };\n var Ve = z(\"FullYear\", !0);\n\n function Ge(e) {\n var t, n;\n return e < 100 && e >= 0 ? ((n = Array.prototype.slice.call(arguments))[0] = e + 400, t = new Date(Date.UTC.apply(null, n)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), t\n }\n\n function Ee(e, t, n) {\n var s = 7 + t - n;\n return -((7 + Ge(e, 0, s).getUTCDay() - t) % 7) + s - 1\n }\n\n function Ae(e, t, n, s, i) {\n var r, a, o = 1 + 7 * (t - 1) + (7 + n - s) % 7 + Ee(e, s, i);\n return o <= 0 ? a = Le(r = e - 1) + o : o > Le(e) ? (r = e + 1, a = o - Le(e)) : (r = e, a = o), {\n year: r,\n dayOfYear: a\n }\n }\n\n function je(e, t, n) {\n var s, i, r = Ee(e.year(), t, n),\n a = Math.floor((e.dayOfYear() - r - 1) / 7) + 1;\n return a < 1 ? s = a + Ie(i = e.year() - 1, t, n) : a > Ie(e.year(), t, n) ? (s = a - Ie(e.year(), t, n), i = e.year() + 1) : (i = e.year(), s = a), {\n week: s,\n year: i\n }\n }\n\n function Ie(e, t, n) {\n var s = Ee(e, t, n),\n i = Ee(e + 1, t, n);\n return (Le(e) - s + i) / 7\n }\n C(\"w\", [\"ww\", 2], \"wo\", \"week\"), C(\"W\", [\"WW\", 2], \"Wo\", \"isoWeek\"), L(\"week\", \"w\"), L(\"isoWeek\", \"W\"), A(\"week\", 5), A(\"isoWeek\", 5), ce(\"w\", te), ce(\"ww\", te, Q), ce(\"W\", te), ce(\"WW\", te, Q), ge([\"w\", \"ww\", \"W\", \"WW\"], function(e, t, n, s) {\n t[s.substr(0, 1)] = Z(e)\n });\n\n function Ze(e, t) {\n return e.slice(t, 7).concat(e.slice(0, t))\n }\n C(\"d\", 0, \"do\", \"day\"), C(\"dd\", 0, 0, function(e) {\n return this.localeData().weekdaysMin(this, e)\n }), C(\"ddd\", 0, 0, function(e) {\n return this.localeData().weekdaysShort(this, e)\n }), C(\"dddd\", 0, 0, function(e) {\n return this.localeData().weekdays(this, e)\n }), C(\"e\", 0, 0, \"weekday\"), C(\"E\", 0, 0, \"isoWeekday\"), L(\"day\", \"d\"), L(\"weekday\", \"e\"), L(\"isoWeekday\", \"E\"), A(\"day\", 11), A(\"weekday\", 11), A(\"isoWeekday\", 11), ce(\"d\", te), ce(\"e\", te), ce(\"E\", te), ce(\"dd\", function(e, t) {\n return t.weekdaysMinRegex(e)\n }), ce(\"ddd\", function(e, t) {\n return t.weekdaysShortRegex(e)\n }), ce(\"dddd\", function(e, t) {\n return t.weekdaysRegex(e)\n }), ge([\"dd\", \"ddd\", \"dddd\"], function(e, t, n, s) {\n var i = n._locale.weekdaysParse(e, s, n._strict);\n null != i ? t.d = i : f(n).invalidWeekday = e\n }), ge([\"d\", \"e\", \"E\"], function(e, t, n, s) {\n t[s] = Z(e)\n });\n var ze = \"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),\n $e = \"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),\n qe = \"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),\n Be = de,\n Je = de,\n Qe = de;\n\n function Xe() {\n function e(e, t) {\n return t.length - e.length\n }\n var t, n, s, i, r, a = [],\n o = [],\n u = [],\n l = [];\n for (t = 0; t < 7; t++) n = c([2e3, 1]).day(t), s = me(this.weekdaysMin(n, \"\")), i = me(this.weekdaysShort(n, \"\")), r = me(this.weekdays(n, \"\")), a.push(s), o.push(i), u.push(r), l.push(s), l.push(i), l.push(r);\n a.sort(e), o.sort(e), u.sort(e), l.sort(e), this._weekdaysRegex = new RegExp(\"^(\" + l.join(\"|\") + \")\", \"i\"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(\"^(\" + u.join(\"|\") + \")\", \"i\"), this._weekdaysShortStrictRegex = new RegExp(\"^(\" + o.join(\"|\") + \")\", \"i\"), this._weekdaysMinStrictRegex = new RegExp(\"^(\" + a.join(\"|\") + \")\", \"i\")\n }\n\n function Ke() {\n return this.hours() % 12 || 12\n }\n\n function et(e, t) {\n C(e, 0, 0, function() {\n return this.localeData().meridiem(this.hours(), this.minutes(), t)\n })\n }\n\n function tt(e, t) {\n return t._meridiemParse\n }\n C(\"H\", [\"HH\", 2], 0, \"hour\"), C(\"h\", [\"hh\", 2], 0, Ke), C(\"k\", [\"kk\", 2], 0, function() {\n return this.hours() || 24\n }), C(\"hmm\", 0, 0, function() {\n return \"\" + Ke.apply(this) + T(this.minutes(), 2)\n }), C(\"hmmss\", 0, 0, function() {\n return \"\" + Ke.apply(this) + T(this.minutes(), 2) + T(this.seconds(), 2)\n }), C(\"Hmm\", 0, 0, function() {\n return \"\" + this.hours() + T(this.minutes(), 2)\n }), C(\"Hmmss\", 0, 0, function() {\n return \"\" + this.hours() + T(this.minutes(), 2) + T(this.seconds(), 2)\n }), et(\"a\", !0), et(\"A\", !1), L(\"hour\", \"h\"), A(\"hour\", 13), ce(\"a\", tt), ce(\"A\", tt), ce(\"H\", te), ce(\"h\", te), ce(\"k\", te), ce(\"HH\", te, Q), ce(\"hh\", te, Q), ce(\"kk\", te, Q), ce(\"hmm\", ne), ce(\"hmmss\", se), ce(\"Hmm\", ne), ce(\"Hmmss\", se), ye([\"H\", \"HH\"], De), ye([\"k\", \"kk\"], function(e, t, n) {\n var s = Z(e);\n t[De] = 24 === s ? 0 : s\n }), ye([\"a\", \"A\"], function(e, t, n) {\n n._isPm = n._locale.isPM(e), n._meridiem = e\n }), ye([\"h\", \"hh\"], function(e, t, n) {\n t[De] = Z(e), f(n).bigHour = !0\n }), ye(\"hmm\", function(e, t, n) {\n var s = e.length - 2;\n t[De] = Z(e.substr(0, s)), t[Se] = Z(e.substr(s)), f(n).bigHour = !0\n }), ye(\"hmmss\", function(e, t, n) {\n var s = e.length - 4,\n i = e.length - 2;\n t[De] = Z(e.substr(0, s)), t[Se] = Z(e.substr(s, 2)), t[Ye] = Z(e.substr(i)), f(n).bigHour = !0\n }), ye(\"Hmm\", function(e, t, n) {\n var s = e.length - 2;\n t[De] = Z(e.substr(0, s)), t[Se] = Z(e.substr(s))\n }), ye(\"Hmmss\", function(e, t, n) {\n var s = e.length - 4,\n i = e.length - 2;\n t[De] = Z(e.substr(0, s)), t[Se] = Z(e.substr(s, 2)), t[Ye] = Z(e.substr(i))\n });\n var nt = z(\"Hours\", !0);\n var st, it = {\n calendar: {\n sameDay: \"[Today at] LT\",\n nextDay: \"[Tomorrow at] LT\",\n nextWeek: \"dddd [at] LT\",\n lastDay: \"[Yesterday at] LT\",\n lastWeek: \"[Last] dddd [at] LT\",\n sameElse: \"L\"\n },\n longDateFormat: {\n LTS: \"h:mm:ss A\",\n LT: \"h:mm A\",\n L: \"MM/DD/YYYY\",\n LL: \"MMMM D, YYYY\",\n LLL: \"MMMM D, YYYY h:mm A\",\n LLLL: \"dddd, MMMM D, YYYY h:mm A\"\n },\n invalidDate: \"Invalid date\",\n ordinal: \"%d\",\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n relativeTime: {\n future: \"in %s\",\n past: \"%s ago\",\n s: \"a few seconds\",\n ss: \"%d seconds\",\n m: \"a minute\",\n mm: \"%d minutes\",\n h: \"an hour\",\n hh: \"%d hours\",\n d: \"a day\",\n dd: \"%d days\",\n w: \"a week\",\n ww: \"%d weeks\",\n M: \"a month\",\n MM: \"%d months\",\n y: \"a year\",\n yy: \"%d years\"\n },\n months: Ne,\n monthsShort: Pe,\n week: {\n dow: 0,\n doy: 6\n },\n weekdays: ze,\n weekdaysMin: qe,\n weekdaysShort: $e,\n meridiemParse: /[ap]\\.?m?\\.?/i\n },\n rt = {},\n at = {};\n\n function ot(e, t) {\n var n, s = Math.min(e.length, t.length);\n for (n = 0; n < s; n += 1)\n if (e[n] !== t[n]) return n;\n return s\n }\n\n function ut(e) {\n return e ? e.toLowerCase().replace(\"_\", \"-\") : e\n }\n\n function lt(e) {\n var t = null;\n if (void 0 === rt[e] && \"undefined\" != typeof module && module && module.exports) try {\n t = st._abbr, require(\"./locale/\" + e), ht(t)\n } catch (n) {\n rt[e] = null\n }\n return rt[e]\n }\n\n function ht(e, t) {\n var n;\n return e && ((n = o(t) ? ct(e) : dt(e, t)) ? st = n : \"undefined\" != typeof console && console.warn && console.warn(\"Locale \" + e + \" not found. Did you forget to load it?\")), st._abbr\n }\n\n function dt(e, t) {\n if (null !== t) {\n var n, s = it;\n if (t.abbr = e, null != rt[e]) Y(\"defineLocaleOverride\", \"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"), s = rt[e]._config;\n else if (null != t.parentLocale)\n if (null != rt[t.parentLocale]) s = rt[t.parentLocale]._config;\n else {\n if (null == (n = lt(t.parentLocale))) return at[t.parentLocale] || (at[t.parentLocale] = []), at[t.parentLocale].push({\n name: e,\n config: t\n }), null;\n s = n._config\n }\n return rt[e] = new x(b(s, t)), at[e] && at[e].forEach(function(e) {\n dt(e.name, e.config)\n }), ht(e), rt[e]\n }\n return delete rt[e], null\n }\n\n function ct(e) {\n var t;\n if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e) return st;\n if (!s(e)) {\n if (t = lt(e)) return t;\n e = [e]\n }\n return function(e) {\n for (var t, n, s, i, r = 0; r < e.length;) {\n for (t = (i = ut(e[r]).split(\"-\")).length, n = (n = ut(e[r + 1])) ? n.split(\"-\") : null; t > 0;) {\n if (s = lt(i.slice(0, t).join(\"-\"))) return s;\n if (n && n.length >= t && ot(i, n) >= t - 1) break;\n t--\n }\n r++\n }\n return st\n }(e)\n }\n\n function ft(e) {\n var t, n = e._a;\n return n && -2 === f(e).overflow && (t = n[ke] < 0 || n[ke] > 11 ? ke : n[Me] < 1 || n[Me] > Te(n[ve], n[ke]) ? Me : n[De] < 0 || n[De] > 24 || 24 === n[De] && (0 !== n[Se] || 0 !== n[Ye] || 0 !== n[Oe]) ? De : n[Se] < 0 || n[Se] > 59 ? Se : n[Ye] < 0 || n[Ye] > 59 ? Ye : n[Oe] < 0 || n[Oe] > 999 ? Oe : -1, f(e)._overflowDayOfYear && (t < ve || t > Me) && (t = Me), f(e)._overflowWeeks && -1 === t && (t = be), f(e)._overflowWeekday && -1 === t && (t = xe), f(e).overflow = t), e\n }\n var mt = /^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n _t = /^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n yt = /Z|[+-]\\d\\d(?::?\\d\\d)?/,\n gt = [\n [\"YYYYYY-MM-DD\", /[+-]\\d{6}-\\d\\d-\\d\\d/],\n [\"YYYY-MM-DD\", /\\d{4}-\\d\\d-\\d\\d/],\n [\"GGGG-[W]WW-E\", /\\d{4}-W\\d\\d-\\d/],\n [\"GGGG-[W]WW\", /\\d{4}-W\\d\\d/, !1],\n [\"YYYY-DDD\", /\\d{4}-\\d{3}/],\n [\"YYYY-MM\", /\\d{4}-\\d\\d/, !1],\n [\"YYYYYYMMDD\", /[+-]\\d{10}/],\n [\"YYYYMMDD\", /\\d{8}/],\n [\"GGGG[W]WWE\", /\\d{4}W\\d{3}/],\n [\"GGGG[W]WW\", /\\d{4}W\\d{2}/, !1],\n [\"YYYYDDD\", /\\d{7}/],\n [\"YYYYMM\", /\\d{6}/, !1],\n [\"YYYY\", /\\d{4}/, !1]\n ],\n wt = [\n [\"HH:mm:ss.SSSS\", /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\n [\"HH:mm:ss,SSSS\", /\\d\\d:\\d\\d:\\d\\d,\\d+/],\n [\"HH:mm:ss\", /\\d\\d:\\d\\d:\\d\\d/],\n [\"HH:mm\", /\\d\\d:\\d\\d/],\n [\"HHmmss.SSSS\", /\\d\\d\\d\\d\\d\\d\\.\\d+/],\n [\"HHmmss,SSSS\", /\\d\\d\\d\\d\\d\\d,\\d+/],\n [\"HHmmss\", /\\d\\d\\d\\d\\d\\d/],\n [\"HHmm\", /\\d\\d\\d\\d/],\n [\"HH\", /\\d\\d/]\n ],\n pt = /^\\/?Date\\((-?\\d+)/i,\n vt = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/,\n kt = {\n UT: 0,\n GMT: 0,\n EDT: -240,\n EST: -300,\n CDT: -300,\n CST: -360,\n MDT: -360,\n MST: -420,\n PDT: -420,\n PST: -480\n };\n\n function Mt(e) {\n var t, n, s, i, r, a, o = e._i,\n u = mt.exec(o) || _t.exec(o);\n if (u) {\n for (f(e).iso = !0, t = 0, n = gt.length; t < n; t++)\n if (gt[t][1].exec(u[1])) {\n i = gt[t][0], s = !1 !== gt[t][2];\n break\n }\n if (null == i) return void(e._isValid = !1);\n if (u[3]) {\n for (t = 0, n = wt.length; t < n; t++)\n if (wt[t][1].exec(u[3])) {\n r = (u[2] || \" \") + wt[t][0];\n break\n }\n if (null == r) return void(e._isValid = !1)\n }\n if (!s && null != r) return void(e._isValid = !1);\n if (u[4]) {\n if (!yt.exec(u[4])) return void(e._isValid = !1);\n a = \"Z\"\n }\n e._f = i + (r || \"\") + (a || \"\"), bt(e)\n } else e._isValid = !1\n }\n\n function Dt(e) {\n var t = parseInt(e, 10);\n return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t\n }\n\n function St(e) {\n var t, n, s, i, r, a, o, u, l = vt.exec(e._i.replace(/\\([^)]*\\)|[\\n\\t]/g, \" \").replace(/(\\s\\s+)/g, \" \").replace(/^\\s\\s*/, \"\").replace(/\\s\\s*$/, \"\"));\n if (l) {\n if (n = l[4], s = l[3], i = l[2], r = l[5], a = l[6], o = l[7], u = [Dt(n), Pe.indexOf(s), parseInt(i, 10), parseInt(r, 10), parseInt(a, 10)], o && u.push(parseInt(o, 10)), t = u, ! function(e, t, n) {\n return !e || $e.indexOf(e) === new Date(t[0], t[1], t[2]).getDay() || (f(n).weekdayMismatch = !0, n._isValid = !1, !1)\n }(l[1], t, e)) return;\n e._a = t, e._tzm = function(e, t, n) {\n if (e) return kt[e];\n if (t) return 0;\n var s = parseInt(n, 10),\n i = s % 100;\n return (s - i) / 100 * 60 + i\n }(l[8], l[9], l[10]), e._d = Ge.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), f(e).rfc2822 = !0\n } else e._isValid = !1\n }\n\n function Yt(e, t, n) {\n return null != e ? e : null != t ? t : n\n }\n\n function Ot(e) {\n var t, s, i, r, a, o = [];\n if (!e._d) {\n for (i = function(e) {\n var t = new Date(n.now());\n return e._useUTC ? [t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()] : [t.getFullYear(), t.getMonth(), t.getDate()]\n }(e), e._w && null == e._a[Me] && null == e._a[ke] && function(e) {\n var t, n, s, i, r, a, o, u, l;\n null != (t = e._w).GG || null != t.W || null != t.E ? (r = 1, a = 4, n = Yt(t.GG, e._a[ve], je(Nt(), 1, 4).year), s = Yt(t.W, 1), ((i = Yt(t.E, 1)) < 1 || i > 7) && (u = !0)) : (r = e._locale._week.dow, a = e._locale._week.doy, l = je(Nt(), r, a), n = Yt(t.gg, e._a[ve], l.year), s = Yt(t.w, l.week), null != t.d ? ((i = t.d) < 0 || i > 6) && (u = !0) : null != t.e ? (i = t.e + r, (t.e < 0 || t.e > 6) && (u = !0)) : i = r);\n s < 1 || s > Ie(n, r, a) ? f(e)._overflowWeeks = !0 : null != u ? f(e)._overflowWeekday = !0 : (o = Ae(n, s, i, r, a), e._a[ve] = o.year, e._dayOfYear = o.dayOfYear)\n }(e), null != e._dayOfYear && (a = Yt(e._a[ve], i[ve]), (e._dayOfYear > Le(a) || 0 === e._dayOfYear) && (f(e)._overflowDayOfYear = !0), s = Ge(a, 0, e._dayOfYear), e._a[ke] = s.getUTCMonth(), e._a[Me] = s.getUTCDate()), t = 0; t < 3 && null == e._a[t]; ++t) e._a[t] = o[t] = i[t];\n for (; t < 7; t++) e._a[t] = o[t] = null == e._a[t] ? 2 === t ? 1 : 0 : e._a[t];\n 24 === e._a[De] && 0 === e._a[Se] && 0 === e._a[Ye] && 0 === e._a[Oe] && (e._nextDay = !0, e._a[De] = 0), e._d = (e._useUTC ? Ge : function(e, t, n, s, i, r, a) {\n var o;\n return e < 100 && e >= 0 ? (o = new Date(e + 400, t, n, s, i, r, a), isFinite(o.getFullYear()) && o.setFullYear(e)) : o = new Date(e, t, n, s, i, r, a), o\n }).apply(null, o), r = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), null != e._tzm && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[De] = 24), e._w && void 0 !== e._w.d && e._w.d !== r && (f(e).weekdayMismatch = !0)\n }\n }\n\n function bt(e) {\n if (e._f !== n.ISO_8601)\n if (e._f !== n.RFC_2822) {\n e._a = [], f(e).empty = !0;\n var t, s, i, r, a, o, u = \"\" + e._i,\n l = u.length,\n h = 0;\n for (i = H(e._f, e._locale).match(N) || [], t = 0; t < i.length; t++) r = i[t], (s = (u.match(fe(r, e)) || [])[0]) && ((a = u.substr(0, u.indexOf(s))).length > 0 && f(e).unusedInput.push(a), u = u.slice(u.indexOf(s) + s.length), h += s.length), W[r] ? (s ? f(e).empty = !1 : f(e).unusedTokens.push(r), we(r, s, e)) : e._strict && !s && f(e).unusedTokens.push(r);\n f(e).charsLeftOver = l - h, u.length > 0 && f(e).unusedInput.push(u), e._a[De] <= 12 && !0 === f(e).bigHour && e._a[De] > 0 && (f(e).bigHour = void 0), f(e).parsedDateParts = e._a.slice(0), f(e).meridiem = e._meridiem, e._a[De] = function(e, t, n) {\n var s;\n if (null == n) return t;\n return null != e.meridiemHour ? e.meridiemHour(t, n) : null != e.isPM ? ((s = e.isPM(n)) && t < 12 && (t += 12), s || 12 !== t || (t = 0), t) : t\n }(e._locale, e._a[De], e._meridiem), null !== (o = f(e).era) && (e._a[ve] = e._locale.erasConvertYear(o, e._a[ve])), Ot(e), ft(e)\n } else St(e);\n else Mt(e)\n }\n\n function xt(e) {\n var t = e._i,\n r = e._f;\n return e._locale = e._locale || ct(e._l), null === t || void 0 === r && \"\" === t ? _({\n nullInput: !0\n }) : (\"string\" == typeof t && (e._i = t = e._locale.preparse(t)), v(t) ? new p(ft(t)) : (l(t) ? e._d = t : s(r) ? function(e) {\n var t, n, s, i, r, a, o = !1;\n if (0 === e._f.length) return f(e).invalidFormat = !0, void(e._d = new Date(NaN));\n for (i = 0; i < e._f.length; i++) r = 0, a = !1, t = w({}, e), null != e._useUTC && (t._useUTC = e._useUTC), t._f = e._f[i], bt(t), m(t) && (a = !0), r += f(t).charsLeftOver, r += 10 * f(t).unusedTokens.length, f(t).score = r, o ? r < s && (s = r, n = t) : (null == s || r < s || a) && (s = r, n = t, a && (o = !0));\n d(e, n || t)\n }(e) : r ? bt(e) : function(e) {\n var t = e._i;\n o(t) ? e._d = new Date(n.now()) : l(t) ? e._d = new Date(t.valueOf()) : \"string\" == typeof t ? function(e) {\n var t = pt.exec(e._i);\n null === t ? (Mt(e), !1 === e._isValid && (delete e._isValid, St(e), !1 === e._isValid && (delete e._isValid, e._strict ? e._isValid = !1 : n.createFromInputFallback(e)))) : e._d = new Date(+t[1])\n }(e) : s(t) ? (e._a = h(t.slice(0), function(e) {\n return parseInt(e, 10)\n }), Ot(e)) : i(t) ? function(e) {\n if (!e._d) {\n var t = G(e._i),\n n = void 0 === t.day ? t.date : t.day;\n e._a = h([t.year, t.month, n, t.hour, t.minute, t.second, t.millisecond], function(e) {\n return e && parseInt(e, 10)\n }), Ot(e)\n }\n }(e) : u(t) ? e._d = new Date(t) : n.createFromInputFallback(e)\n }(e), m(e) || (e._d = null), e))\n }\n\n function Tt(e, t, n, r, o) {\n var u, l = {};\n return !0 !== t && !1 !== t || (r = t, t = void 0), !0 !== n && !1 !== n || (r = n, n = void 0), (i(e) && a(e) || s(e) && 0 === e.length) && (e = void 0), l._isAMomentObject = !0, l._useUTC = l._isUTC = o, l._l = n, l._i = e, l._f = t, l._strict = r, (u = new p(ft(xt(l))))._nextDay && (u.add(1, \"d\"), u._nextDay = void 0), u\n }\n\n function Nt(e, t, n, s) {\n return Tt(e, t, n, s, !1)\n }\n n.createFromInputFallback = M(\"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.\", function(e) {\n e._d = new Date(e._i + (e._useUTC ? \" UTC\" : \"\"))\n }), n.ISO_8601 = function() {}, n.RFC_2822 = function() {};\n var Pt = M(\"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/\", function() {\n var e = Nt.apply(null, arguments);\n return this.isValid() && e.isValid() ? e < this ? this : e : _()\n }),\n Rt = M(\"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/\", function() {\n var e = Nt.apply(null, arguments);\n return this.isValid() && e.isValid() ? e > this ? this : e : _()\n });\n\n function Wt(e, t) {\n var n, i;\n if (1 === t.length && s(t[0]) && (t = t[0]), !t.length) return Nt();\n for (n = t[0], i = 1; i < t.length; ++i) t[i].isValid() && !t[i][e](n) || (n = t[i]);\n return n\n }\n var Ct = [\"year\", \"quarter\", \"month\", \"week\", \"day\", \"hour\", \"minute\", \"second\", \"millisecond\"];\n\n function Ut(e) {\n var t = G(e),\n n = t.year || 0,\n s = t.quarter || 0,\n i = t.month || 0,\n a = t.week || t.isoWeek || 0,\n o = t.day || 0,\n u = t.hour || 0,\n l = t.minute || 0,\n h = t.second || 0,\n d = t.millisecond || 0;\n this._isValid = function(e) {\n var t, n, s = !1;\n for (t in e)\n if (r(e, t) && (-1 === pe.call(Ct, t) || null != e[t] && isNaN(e[t]))) return !1;\n for (n = 0; n < Ct.length; ++n)\n if (e[Ct[n]]) {\n if (s) return !1;\n parseFloat(e[Ct[n]]) !== Z(e[Ct[n]]) && (s = !0)\n }\n return !0\n }(t), this._milliseconds = +d + 1e3 * h + 6e4 * l + 1e3 * u * 60 * 60, this._days = +o + 7 * a, this._months = +i + 3 * s + 12 * n, this._data = {}, this._locale = ct(), this._bubble()\n }\n\n function Ht(e) {\n return e instanceof Ut\n }\n\n function Ft(e) {\n return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e)\n }\n\n function Lt(e, t) {\n C(e, 0, 0, function() {\n var e = this.utcOffset(),\n n = \"+\";\n return e < 0 && (e = -e, n = \"-\"), n + T(~~(e / 60), 2) + t + T(~~e % 60, 2)\n })\n }\n Lt(\"Z\", \":\"), Lt(\"ZZ\", \"\"), ce(\"Z\", he), ce(\"ZZ\", he), ye([\"Z\", \"ZZ\"], function(e, t, n) {\n n._useUTC = !0, n._tzm = Gt(he, e)\n });\n var Vt = /([\\+\\-]|\\d\\d)/gi;\n\n function Gt(e, t) {\n var n, s, i = (t || \"\").match(e);\n return null === i ? null : 0 === (s = 60 * (n = ((i[i.length - 1] || []) + \"\").match(Vt) || [\"-\", 0, 0])[1] + Z(n[2])) ? 0 : \"+\" === n[0] ? s : -s\n }\n\n function Et(e, t) {\n var s, i;\n return t._isUTC ? (s = t.clone(), i = (v(e) || l(e) ? e.valueOf() : Nt(e).valueOf()) - s.valueOf(), s._d.setTime(s._d.valueOf() + i), n.updateOffset(s, !1), s) : Nt(e).local()\n }\n\n function At(e) {\n return -Math.round(e._d.getTimezoneOffset())\n }\n\n function jt() {\n return !!this.isValid() && (this._isUTC && 0 === this._offset)\n }\n n.updateOffset = function() {};\n var It = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,\n Zt = /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n\n function zt(e, t) {\n var n, s, i, a = e,\n o = null;\n return Ht(e) ? a = {\n ms: e._milliseconds,\n d: e._days,\n M: e._months\n } : u(e) || !isNaN(+e) ? (a = {}, t ? a[t] = +e : a.milliseconds = +e) : (o = It.exec(e)) ? (n = \"-\" === o[1] ? -1 : 1, a = {\n y: 0,\n d: Z(o[Me]) * n,\n h: Z(o[De]) * n,\n m: Z(o[Se]) * n,\n s: Z(o[Ye]) * n,\n ms: Z(Ft(1e3 * o[Oe])) * n\n }) : (o = Zt.exec(e)) ? (n = \"-\" === o[1] ? -1 : 1, a = {\n y: $t(o[2], n),\n M: $t(o[3], n),\n w: $t(o[4], n),\n d: $t(o[5], n),\n h: $t(o[6], n),\n m: $t(o[7], n),\n s: $t(o[8], n)\n }) : null == a ? a = {} : \"object\" == typeof a && (\"from\" in a || \"to\" in a) && (i = function(e, t) {\n var n;\n if (!e.isValid() || !t.isValid()) return {\n milliseconds: 0,\n months: 0\n };\n t = Et(t, e), e.isBefore(t) ? n = qt(e, t) : ((n = qt(t, e)).milliseconds = -n.milliseconds, n.months = -n.months);\n return n\n }(Nt(a.from), Nt(a.to)), (a = {}).ms = i.milliseconds, a.M = i.months), s = new Ut(a), Ht(e) && r(e, \"_locale\") && (s._locale = e._locale), Ht(e) && r(e, \"_isValid\") && (s._isValid = e._isValid), s\n }\n\n function $t(e, t) {\n var n = e && parseFloat(e.replace(\",\", \".\"));\n return (isNaN(n) ? 0 : n) * t\n }\n\n function qt(e, t) {\n var n = {};\n return n.months = t.month() - e.month() + 12 * (t.year() - e.year()), e.clone().add(n.months, \"M\").isAfter(t) && --n.months, n.milliseconds = +t - +e.clone().add(n.months, \"M\"), n\n }\n\n function Bt(e, t) {\n return function(n, s) {\n var i;\n return null === s || isNaN(+s) || (Y(t, \"moment().\" + t + \"(period, number) is deprecated. Please use moment().\" + t + \"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\"), i = n, n = s, s = i), Jt(this, zt(n, s), e), this\n }\n }\n\n function Jt(e, t, s, i) {\n var r = t._milliseconds,\n a = Ft(t._days),\n o = Ft(t._months);\n e.isValid() && (i = null == i || i, o && Ue(e, $(e, \"Month\") + o * s), a && q(e, \"Date\", $(e, \"Date\") + a * s), r && e._d.setTime(e._d.valueOf() + r * s), i && n.updateOffset(e, a || o))\n }\n zt.fn = Ut.prototype, zt.invalid = function() {\n return zt(NaN)\n };\n var Qt = Bt(1, \"add\"),\n Xt = Bt(-1, \"subtract\");\n\n function Kt(e) {\n return \"string\" == typeof e || e instanceof String\n }\n\n function en(e) {\n return v(e) || l(e) || Kt(e) || u(e) || function(e) {\n var t = s(e),\n n = !1;\n t && (n = 0 === e.filter(function(t) {\n return !u(t) && Kt(e)\n }).length);\n return t && n\n }(e) || function(e) {\n var t, n, s = i(e) && !a(e),\n o = !1,\n u = [\"years\", \"year\", \"y\", \"months\", \"month\", \"M\", \"days\", \"day\", \"d\", \"dates\", \"date\", \"D\", \"hours\", \"hour\", \"h\", \"minutes\", \"minute\", \"m\", \"seconds\", \"second\", \"s\", \"milliseconds\", \"millisecond\", \"ms\"];\n for (t = 0; t < u.length; t += 1) n = u[t], o = o || r(e, n);\n return s && o\n }(e) || null == e\n }\n\n function tn(e, t) {\n if (e.date() < t.date()) return -tn(t, e);\n var n = 12 * (t.year() - e.year()) + (t.month() - e.month()),\n s = e.clone().add(n, \"months\");\n return -(n + (t - s < 0 ? (t - s) / (s - e.clone().add(n - 1, \"months\")) : (t - s) / (e.clone().add(n + 1, \"months\") - s))) || 0\n }\n\n function nn(e) {\n var t;\n return void 0 === e ? this._locale._abbr : (null != (t = ct(e)) && (this._locale = t), this)\n }\n n.defaultFormat = \"YYYY-MM-DDTHH:mm:ssZ\", n.defaultFormatUtc = \"YYYY-MM-DDTHH:mm:ss[Z]\";\n var sn = M(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\", function(e) {\n return void 0 === e ? this.localeData() : this.locale(e)\n });\n\n function rn() {\n return this._locale\n }\n var an = 1e3,\n on = 60 * an,\n un = 60 * on,\n ln = 3506328 * un;\n\n function hn(e, t) {\n return (e % t + t) % t\n }\n\n function dn(e, t, n) {\n return e < 100 && e >= 0 ? new Date(e + 400, t, n) - ln : new Date(e, t, n).valueOf()\n }\n\n function cn(e, t, n) {\n return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - ln : Date.UTC(e, t, n)\n }\n\n function fn(e, t) {\n return t.erasAbbrRegex(e)\n }\n\n function mn() {\n var e, t, n = [],\n s = [],\n i = [],\n r = [],\n a = this.eras();\n for (e = 0, t = a.length; e < t; ++e) s.push(me(a[e].name)), n.push(me(a[e].abbr)), i.push(me(a[e].narrow)), r.push(me(a[e].name)), r.push(me(a[e].abbr)), r.push(me(a[e].narrow));\n this._erasRegex = new RegExp(\"^(\" + r.join(\"|\") + \")\", \"i\"), this._erasNameRegex = new RegExp(\"^(\" + s.join(\"|\") + \")\", \"i\"), this._erasAbbrRegex = new RegExp(\"^(\" + n.join(\"|\") + \")\", \"i\"), this._erasNarrowRegex = new RegExp(\"^(\" + i.join(\"|\") + \")\", \"i\")\n }\n\n function _n(e, t) {\n C(0, [e, e.length], 0, t)\n }\n\n function yn(e, t, n, s, i) {\n var r;\n return null == e ? je(this, s, i).year : (t > (r = Ie(e, s, i)) && (t = r), function(e, t, n, s, i) {\n var r = Ae(e, t, n, s, i),\n a = Ge(r.year, 0, r.dayOfYear);\n return this.year(a.getUTCFullYear()), this.month(a.getUTCMonth()), this.date(a.getUTCDate()), this\n }.call(this, e, t, n, s, i))\n }\n C(\"N\", 0, 0, \"eraAbbr\"), C(\"NN\", 0, 0, \"eraAbbr\"), C(\"NNN\", 0, 0, \"eraAbbr\"), C(\"NNNN\", 0, 0, \"eraName\"), C(\"NNNNN\", 0, 0, \"eraNarrow\"), C(\"y\", [\"y\", 1], \"yo\", \"eraYear\"), C(\"y\", [\"yy\", 2], 0, \"eraYear\"), C(\"y\", [\"yyy\", 3], 0, \"eraYear\"), C(\"y\", [\"yyyy\", 4], 0, \"eraYear\"), ce(\"N\", fn), ce(\"NN\", fn), ce(\"NNN\", fn), ce(\"NNNN\", function(e, t) {\n return t.erasNameRegex(e)\n }), ce(\"NNNNN\", function(e, t) {\n return t.erasNarrowRegex(e)\n }), ye([\"N\", \"NN\", \"NNN\", \"NNNN\", \"NNNNN\"], function(e, t, n, s) {\n var i = n._locale.erasParse(e, s, n._strict);\n i ? f(n).era = i : f(n).invalidEra = e\n }), ce(\"y\", oe), ce(\"yy\", oe), ce(\"yyy\", oe), ce(\"yyyy\", oe), ce(\"yo\", function(e, t) {\n return t._eraYearOrdinalRegex || oe\n }), ye([\"y\", \"yy\", \"yyy\", \"yyyy\"], ve), ye([\"yo\"], function(e, t, n, s) {\n var i;\n n._locale._eraYearOrdinalRegex && (i = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[ve] = n._locale.eraYearOrdinalParse(e, i) : t[ve] = parseInt(e, 10)\n }), C(0, [\"gg\", 2], 0, function() {\n return this.weekYear() % 100\n }), C(0, [\"GG\", 2], 0, function() {\n return this.isoWeekYear() % 100\n }), _n(\"gggg\", \"weekYear\"), _n(\"ggggg\", \"weekYear\"), _n(\"GGGG\", \"isoWeekYear\"), _n(\"GGGGG\", \"isoWeekYear\"), L(\"weekYear\", \"gg\"), L(\"isoWeekYear\", \"GG\"), A(\"weekYear\", 1), A(\"isoWeekYear\", 1), ce(\"G\", ue), ce(\"g\", ue), ce(\"GG\", te, Q), ce(\"gg\", te, Q), ce(\"GGGG\", re, K), ce(\"gggg\", re, K), ce(\"GGGGG\", ae, ee), ce(\"ggggg\", ae, ee), ge([\"gggg\", \"ggggg\", \"GGGG\", \"GGGGG\"], function(e, t, n, s) {\n t[s.substr(0, 2)] = Z(e)\n }), ge([\"gg\", \"GG\"], function(e, t, s, i) {\n t[i] = n.parseTwoDigitYear(e)\n }), C(\"Q\", 0, \"Qo\", \"quarter\"), L(\"quarter\", \"Q\"), A(\"quarter\", 7), ce(\"Q\", J), ye(\"Q\", function(e, t) {\n t[ke] = 3 * (Z(e) - 1)\n }), C(\"D\", [\"DD\", 2], \"Do\", \"date\"), L(\"date\", \"D\"), A(\"date\", 9), ce(\"D\", te), ce(\"DD\", te, Q), ce(\"Do\", function(e, t) {\n return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient\n }), ye([\"D\", \"DD\"], Me), ye(\"Do\", function(e, t) {\n t[Me] = Z(e.match(te)[0])\n });\n var gn = z(\"Date\", !0);\n C(\"DDD\", [\"DDDD\", 3], \"DDDo\", \"dayOfYear\"), L(\"dayOfYear\", \"DDD\"), A(\"dayOfYear\", 4), ce(\"DDD\", ie), ce(\"DDDD\", X), ye([\"DDD\", \"DDDD\"], function(e, t, n) {\n n._dayOfYear = Z(e)\n }), C(\"m\", [\"mm\", 2], 0, \"minute\"), L(\"minute\", \"m\"), A(\"minute\", 14), ce(\"m\", te), ce(\"mm\", te, Q), ye([\"m\", \"mm\"], Se);\n var wn = z(\"Minutes\", !1);\n C(\"s\", [\"ss\", 2], 0, \"second\"), L(\"second\", \"s\"), A(\"second\", 15), ce(\"s\", te), ce(\"ss\", te, Q), ye([\"s\", \"ss\"], Ye);\n var pn, vn, kn = z(\"Seconds\", !1);\n for (C(\"S\", 0, 0, function() {\n return ~~(this.millisecond() / 100)\n }), C(0, [\"SS\", 2], 0, function() {\n return ~~(this.millisecond() / 10)\n }), C(0, [\"SSS\", 3], 0, \"millisecond\"), C(0, [\"SSSS\", 4], 0, function() {\n return 10 * this.millisecond()\n }), C(0, [\"SSSSS\", 5], 0, function() {\n return 100 * this.millisecond()\n }), C(0, [\"SSSSSS\", 6], 0, function() {\n return 1e3 * this.millisecond()\n }), C(0, [\"SSSSSSS\", 7], 0, function() {\n return 1e4 * this.millisecond()\n }), C(0, [\"SSSSSSSS\", 8], 0, function() {\n return 1e5 * this.millisecond()\n }), C(0, [\"SSSSSSSSS\", 9], 0, function() {\n return 1e6 * this.millisecond()\n }), L(\"millisecond\", \"ms\"), A(\"millisecond\", 16), ce(\"S\", ie, J), ce(\"SS\", ie, Q), ce(\"SSS\", ie, X), pn = \"SSSS\"; pn.length <= 9; pn += \"S\") ce(pn, oe);\n\n function Mn(e, t) {\n t[Oe] = Z(1e3 * (\"0.\" + e))\n }\n for (pn = \"S\"; pn.length <= 9; pn += \"S\") ye(pn, Mn);\n vn = z(\"Milliseconds\", !1), C(\"z\", 0, 0, \"zoneAbbr\"), C(\"zz\", 0, 0, \"zoneName\");\n var Dn = p.prototype;\n\n function Sn(e) {\n return e\n }\n Dn.add = Qt, Dn.calendar = function(e, t) {\n 1 === arguments.length && (arguments[0] ? en(arguments[0]) ? (e = arguments[0], t = void 0) : function(e) {\n var t, n = i(e) && !a(e),\n s = !1,\n o = [\"sameDay\", \"nextDay\", \"lastDay\", \"nextWeek\", \"lastWeek\", \"sameElse\"];\n for (t = 0; t < o.length; t += 1) s = s || r(e, o[t]);\n return n && s\n }(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));\n var s = e || Nt(),\n o = Et(s, this).startOf(\"day\"),\n u = n.calendarFormat(this, o) || \"sameElse\",\n l = t && (O(t[u]) ? t[u].call(this, s) : t[u]);\n return this.format(l || this.localeData().calendar(u, this, Nt(s)))\n }, Dn.clone = function() {\n return new p(this)\n }, Dn.diff = function(e, t, n) {\n var s, i, r;\n if (!this.isValid()) return NaN;\n if (!(s = Et(e, this)).isValid()) return NaN;\n switch (i = 6e4 * (s.utcOffset() - this.utcOffset()), t = V(t)) {\n case \"year\":\n r = tn(this, s) / 12;\n break;\n case \"month\":\n r = tn(this, s);\n break;\n case \"quarter\":\n r = tn(this, s) / 3;\n break;\n case \"second\":\n r = (this - s) / 1e3;\n break;\n case \"minute\":\n r = (this - s) / 6e4;\n break;\n case \"hour\":\n r = (this - s) / 36e5;\n break;\n case \"day\":\n r = (this - s - i) / 864e5;\n break;\n case \"week\":\n r = (this - s - i) / 6048e5;\n break;\n default:\n r = this - s\n }\n return n ? r : I(r)\n }, Dn.endOf = function(e) {\n var t, s;\n if (void 0 === (e = V(e)) || \"millisecond\" === e || !this.isValid()) return this;\n switch (s = this._isUTC ? cn : dn, e) {\n case \"year\":\n t = s(this.year() + 1, 0, 1) - 1;\n break;\n case \"quarter\":\n t = s(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;\n break;\n case \"month\":\n t = s(this.year(), this.month() + 1, 1) - 1;\n break;\n case \"week\":\n t = s(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;\n break;\n case \"isoWeek\":\n t = s(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;\n break;\n case \"day\":\n case \"date\":\n t = s(this.year(), this.month(), this.date() + 1) - 1;\n break;\n case \"hour\":\n t = this._d.valueOf(), t += un - hn(t + (this._isUTC ? 0 : this.utcOffset() * on), un) - 1;\n break;\n case \"minute\":\n t = this._d.valueOf(), t += on - hn(t, on) - 1;\n break;\n case \"second\":\n t = this._d.valueOf(), t += an - hn(t, an) - 1\n }\n return this._d.setTime(t), n.updateOffset(this, !0), this\n }, Dn.format = function(e) {\n e || (e = this.isUtc() ? n.defaultFormatUtc : n.defaultFormat);\n var t = U(this, e);\n return this.localeData().postformat(t)\n }, Dn.from = function(e, t) {\n return this.isValid() && (v(e) && e.isValid() || Nt(e).isValid()) ? zt({\n to: this,\n from: e\n }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate()\n }, Dn.fromNow = function(e) {\n return this.from(Nt(), e)\n }, Dn.to = function(e, t) {\n return this.isValid() && (v(e) && e.isValid() || Nt(e).isValid()) ? zt({\n from: this,\n to: e\n }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate()\n }, Dn.toNow = function(e) {\n return this.to(Nt(), e)\n }, Dn.get = function(e) {\n return O(this[e = V(e)]) ? this[e]() : this\n }, Dn.invalidAt = function() {\n return f(this).overflow\n }, Dn.isAfter = function(e, t) {\n var n = v(e) ? e : Nt(e);\n return !(!this.isValid() || !n.isValid()) && (\"millisecond\" === (t = V(t) || \"millisecond\") ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf())\n }, Dn.isBefore = function(e, t) {\n var n = v(e) ? e : Nt(e);\n return !(!this.isValid() || !n.isValid()) && (\"millisecond\" === (t = V(t) || \"millisecond\") ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf())\n }, Dn.isBetween = function(e, t, n, s) {\n var i = v(e) ? e : Nt(e),\n r = v(t) ? t : Nt(t);\n return !!(this.isValid() && i.isValid() && r.isValid()) && (\"(\" === (s = s || \"()\")[0] ? this.isAfter(i, n) : !this.isBefore(i, n)) && (\")\" === s[1] ? this.isBefore(r, n) : !this.isAfter(r, n))\n }, Dn.isSame = function(e, t) {\n var n, s = v(e) ? e : Nt(e);\n return !(!this.isValid() || !s.isValid()) && (\"millisecond\" === (t = V(t) || \"millisecond\") ? this.valueOf() === s.valueOf() : (n = s.valueOf(), this.clone().startOf(t).valueOf() <= n && n <= this.clone().endOf(t).valueOf()))\n }, Dn.isSameOrAfter = function(e, t) {\n return this.isSame(e, t) || this.isAfter(e, t)\n }, Dn.isSameOrBefore = function(e, t) {\n return this.isSame(e, t) || this.isBefore(e, t)\n }, Dn.isValid = function() {\n return m(this)\n }, Dn.lang = sn, Dn.locale = nn, Dn.localeData = rn, Dn.max = Rt, Dn.min = Pt, Dn.parsingFlags = function() {\n return d({}, f(this))\n }, Dn.set = function(e, t) {\n if (\"object\" == typeof e) {\n var n, s = function(e) {\n var t, n = [];\n for (t in e) r(e, t) && n.push({\n unit: t,\n priority: E[t]\n });\n return n.sort(function(e, t) {\n return e.priority - t.priority\n }), n\n }(e = G(e));\n for (n = 0; n < s.length; n++) this[s[n].unit](e[s[n].unit])\n } else if (O(this[e = V(e)])) return this[e](t);\n return this\n }, Dn.startOf = function(e) {\n var t, s;\n if (void 0 === (e = V(e)) || \"millisecond\" === e || !this.isValid()) return this;\n switch (s = this._isUTC ? cn : dn, e) {\n case \"year\":\n t = s(this.year(), 0, 1);\n break;\n case \"quarter\":\n t = s(this.year(), this.month() - this.month() % 3, 1);\n break;\n case \"month\":\n t = s(this.year(), this.month(), 1);\n break;\n case \"week\":\n t = s(this.year(), this.month(), this.date() - this.weekday());\n break;\n case \"isoWeek\":\n t = s(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));\n break;\n case \"day\":\n case \"date\":\n t = s(this.year(), this.month(), this.date());\n break;\n case \"hour\":\n t = this._d.valueOf(), t -= hn(t + (this._isUTC ? 0 : this.utcOffset() * on), un);\n break;\n case \"minute\":\n t = this._d.valueOf(), t -= hn(t, on);\n break;\n case \"second\":\n t = this._d.valueOf(), t -= hn(t, an)\n }\n return this._d.setTime(t), n.updateOffset(this, !0), this\n }, Dn.subtract = Xt, Dn.toArray = function() {\n var e = this;\n return [e.year(), e.month(), e.date(), e.hour(), e.minute(), e.second(), e.millisecond()]\n }, Dn.toObject = function() {\n var e = this;\n return {\n years: e.year(),\n months: e.month(),\n date: e.date(),\n hours: e.hours(),\n minutes: e.minutes(),\n seconds: e.seconds(),\n milliseconds: e.milliseconds()\n }\n }, Dn.toDate = function() {\n return new Date(this.valueOf())\n }, Dn.toISOString = function(e) {\n if (!this.isValid()) return null;\n var t = !0 !== e,\n n = t ? this.clone().utc() : this;\n return n.year() < 0 || n.year() > 9999 ? U(n, t ? \"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\" : \"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ\") : O(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + 60 * this.utcOffset() * 1e3).toISOString().replace(\"Z\", U(n, \"Z\")) : U(n, t ? \"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\" : \"YYYY-MM-DD[T]HH:mm:ss.SSSZ\")\n }, Dn.inspect = function() {\n if (!this.isValid()) return \"moment.invalid(/* \" + this._i + \" */)\";\n var e, t, n, s = \"moment\",\n i = \"\";\n return this.isLocal() || (s = 0 === this.utcOffset() ? \"moment.utc\" : \"moment.parseZone\", i = \"Z\"), e = \"[\" + s + '(\"]', t = 0 <= this.year() && this.year() <= 9999 ? \"YYYY\" : \"YYYYYY\", n = i + '[\")]', this.format(e + t + \"-MM-DD[T]HH:mm:ss.SSS\" + n)\n }, \"undefined\" != typeof Symbol && null != Symbol.for && (Dn[Symbol.for(\"nodejs.util.inspect.custom\")] = function() {\n return \"Moment<\" + this.format() + \">\"\n }), Dn.toJSON = function() {\n return this.isValid() ? this.toISOString() : null\n }, Dn.toString = function() {\n return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\")\n }, Dn.unix = function() {\n return Math.floor(this.valueOf() / 1e3)\n }, Dn.valueOf = function() {\n return this._d.valueOf() - 6e4 * (this._offset || 0)\n }, Dn.creationData = function() {\n return {\n input: this._i,\n format: this._f,\n locale: this._locale,\n isUTC: this._isUTC,\n strict: this._strict\n }\n }, Dn.eraName = function() {\n var e, t, n, s = this.localeData().eras();\n for (e = 0, t = s.length; e < t; ++e) {\n if (n = this.clone().startOf(\"day\").valueOf(), s[e].since <= n && n <= s[e].until) return s[e].name;\n if (s[e].until <= n && n <= s[e].since) return s[e].name\n }\n return \"\"\n }, Dn.eraNarrow = function() {\n var e, t, n, s = this.localeData().eras();\n for (e = 0, t = s.length; e < t; ++e) {\n if (n = this.clone().startOf(\"day\").valueOf(), s[e].since <= n && n <= s[e].until) return s[e].narrow;\n if (s[e].until <= n && n <= s[e].since) return s[e].narrow\n }\n return \"\"\n }, Dn.eraAbbr = function() {\n var e, t, n, s = this.localeData().eras();\n for (e = 0, t = s.length; e < t; ++e) {\n if (n = this.clone().startOf(\"day\").valueOf(), s[e].since <= n && n <= s[e].until) return s[e].abbr;\n if (s[e].until <= n && n <= s[e].since) return s[e].abbr\n }\n return \"\"\n }, Dn.eraYear = function() {\n var e, t, s, i, r = this.localeData().eras();\n for (e = 0, t = r.length; e < t; ++e)\n if (s = r[e].since <= r[e].until ? 1 : -1, i = this.clone().startOf(\"day\").valueOf(), r[e].since <= i && i <= r[e].until || r[e].until <= i && i <= r[e].since) return (this.year() - n(r[e].since).year()) * s + r[e].offset;\n return this.year()\n }, Dn.year = Ve, Dn.isLeapYear = function() {\n return j(this.year())\n }, Dn.weekYear = function(e) {\n return yn.call(this, e, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy)\n }, Dn.isoWeekYear = function(e) {\n return yn.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4)\n }, Dn.quarter = Dn.quarters = function(e) {\n return null == e ? Math.ceil((this.month() + 1) / 3) : this.month(3 * (e - 1) + this.month() % 3)\n }, Dn.month = He, Dn.daysInMonth = function() {\n return Te(this.year(), this.month())\n }, Dn.week = Dn.weeks = function(e) {\n var t = this.localeData().week(this);\n return null == e ? t : this.add(7 * (e - t), \"d\")\n }, Dn.isoWeek = Dn.isoWeeks = function(e) {\n var t = je(this, 1, 4).week;\n return null == e ? t : this.add(7 * (e - t), \"d\")\n }, Dn.weeksInYear = function() {\n var e = this.localeData()._week;\n return Ie(this.year(), e.dow, e.doy)\n }, Dn.weeksInWeekYear = function() {\n var e = this.localeData()._week;\n return Ie(this.weekYear(), e.dow, e.doy)\n }, Dn.isoWeeksInYear = function() {\n return Ie(this.year(), 1, 4)\n }, Dn.isoWeeksInISOWeekYear = function() {\n return Ie(this.isoWeekYear(), 1, 4)\n }, Dn.date = gn, Dn.day = Dn.days = function(e) {\n if (!this.isValid()) return null != e ? this : NaN;\n var t = this._isUTC ? this._d.getUTCDay() : this._d.getDay();\n return null != e ? (e = function(e, t) {\n return \"string\" != typeof e ? e : isNaN(e) ? \"number\" == typeof(e = t.weekdaysParse(e)) ? e : null : parseInt(e, 10)\n }(e, this.localeData()), this.add(e - t, \"d\")) : t\n }, Dn.weekday = function(e) {\n if (!this.isValid()) return null != e ? this : NaN;\n var t = (this.day() + 7 - this.localeData()._week.dow) % 7;\n return null == e ? t : this.add(e - t, \"d\")\n }, Dn.isoWeekday = function(e) {\n if (!this.isValid()) return null != e ? this : NaN;\n if (null != e) {\n var t = function(e, t) {\n return \"string\" == typeof e ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e\n }(e, this.localeData());\n return this.day(this.day() % 7 ? t : t - 7)\n }\n return this.day() || 7\n }, Dn.dayOfYear = function(e) {\n var t = Math.round((this.clone().startOf(\"day\") - this.clone().startOf(\"year\")) / 864e5) + 1;\n return null == e ? t : this.add(e - t, \"d\")\n }, Dn.hour = Dn.hours = nt, Dn.minute = Dn.minutes = wn, Dn.second = Dn.seconds = kn, Dn.millisecond = Dn.milliseconds = vn, Dn.utcOffset = function(e, t, s) {\n var i, r = this._offset || 0;\n if (!this.isValid()) return null != e ? this : NaN;\n if (null != e) {\n if (\"string\" == typeof e) {\n if (null === (e = Gt(he, e))) return this\n } else Math.abs(e) < 16 && !s && (e *= 60);\n return !this._isUTC && t && (i = At(this)), this._offset = e, this._isUTC = !0, null != i && this.add(i, \"m\"), r !== e && (!t || this._changeInProgress ? Jt(this, zt(e - r, \"m\"), 1, !1) : this._changeInProgress || (this._changeInProgress = !0, n.updateOffset(this, !0), this._changeInProgress = null)), this\n }\n return this._isUTC ? r : At(this)\n }, Dn.utc = function(e) {\n return this.utcOffset(0, e)\n }, Dn.local = function(e) {\n return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(At(this), \"m\")), this\n }, Dn.parseZone = function() {\n if (null != this._tzm) this.utcOffset(this._tzm, !1, !0);\n else if (\"string\" == typeof this._i) {\n var e = Gt(le, this._i);\n null != e ? this.utcOffset(e) : this.utcOffset(0, !0)\n }\n return this\n }, Dn.hasAlignedHourOffset = function(e) {\n return !!this.isValid() && (e = e ? Nt(e).utcOffset() : 0, (this.utcOffset() - e) % 60 == 0)\n }, Dn.isDST = function() {\n return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset()\n }, Dn.isLocal = function() {\n return !!this.isValid() && !this._isUTC\n }, Dn.isUtcOffset = function() {\n return !!this.isValid() && this._isUTC\n }, Dn.isUtc = jt, Dn.isUTC = jt, Dn.zoneAbbr = function() {\n return this._isUTC ? \"UTC\" : \"\"\n }, Dn.zoneName = function() {\n return this._isUTC ? \"Coordinated Universal Time\" : \"\"\n }, Dn.dates = M(\"dates accessor is deprecated. Use date instead.\", gn), Dn.months = M(\"months accessor is deprecated. Use month instead\", He), Dn.years = M(\"years accessor is deprecated. Use year instead\", Ve), Dn.zone = M(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\", function(e, t) {\n return null != e ? (\"string\" != typeof e && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset()\n }), Dn.isDSTShifted = M(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\", function() {\n if (!o(this._isDSTShifted)) return this._isDSTShifted;\n var e, t = {};\n return w(t, this), (t = xt(t))._a ? (e = t._isUTC ? c(t._a) : Nt(t._a), this._isDSTShifted = this.isValid() && function(e, t, n) {\n var s, i = Math.min(e.length, t.length),\n r = Math.abs(e.length - t.length),\n a = 0;\n for (s = 0; s < i; s++)(n && e[s] !== t[s] || !n && Z(e[s]) !== Z(t[s])) && a++;\n return a + r\n }(t._a, e.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted\n });\n var Yn = x.prototype;\n\n function On(e, t, n, s) {\n var i = ct(),\n r = c().set(s, t);\n return i[n](r, e)\n }\n\n function bn(e, t, n) {\n if (u(e) && (t = e, e = void 0), e = e || \"\", null != t) return On(e, t, n, \"month\");\n var s, i = [];\n for (s = 0; s < 12; s++) i[s] = On(e, s, n, \"month\");\n return i\n }\n\n function xn(e, t, n, s) {\n \"boolean\" == typeof e ? (u(t) && (n = t, t = void 0), t = t || \"\") : (n = t = e, e = !1, u(t) && (n = t, t = void 0), t = t || \"\");\n var i, r = ct(),\n a = e ? r._week.dow : 0,\n o = [];\n if (null != n) return On(t, (n + a) % 7, s, \"day\");\n for (i = 0; i < 7; i++) o[i] = On(t, (i + a) % 7, s, \"day\");\n return o\n }\n Yn.calendar = function(e, t, n) {\n var s = this._calendar[e] || this._calendar.sameElse;\n return O(s) ? s.call(t, n) : s\n }, Yn.longDateFormat = function(e) {\n var t = this._longDateFormat[e],\n n = this._longDateFormat[e.toUpperCase()];\n return t || !n ? t : (this._longDateFormat[e] = n.match(N).map(function(e) {\n return \"MMMM\" === e || \"MM\" === e || \"DD\" === e || \"dddd\" === e ? e.slice(1) : e\n }).join(\"\"), this._longDateFormat[e])\n }, Yn.invalidDate = function() {\n return this._invalidDate\n }, Yn.ordinal = function(e) {\n return this._ordinal.replace(\"%d\", e)\n }, Yn.preparse = Sn, Yn.postformat = Sn, Yn.relativeTime = function(e, t, n, s) {\n var i = this._relativeTime[n];\n return O(i) ? i(e, t, n, s) : i.replace(/%d/i, e)\n }, Yn.pastFuture = function(e, t) {\n var n = this._relativeTime[e > 0 ? \"future\" : \"past\"];\n return O(n) ? n(t) : n.replace(/%s/i, t)\n }, Yn.set = function(e) {\n var t, n;\n for (n in e) r(e, n) && (O(t = e[n]) ? this[n] = t : this[\"_\" + n] = t);\n this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + \"|\" + /\\d{1,2}/.source)\n }, Yn.eras = function(e, t) {\n var s, i, r, a = this._eras || ct(\"en\")._eras;\n for (s = 0, i = a.length; s < i; ++s) {\n switch (typeof a[s].since) {\n case \"string\":\n r = n(a[s].since).startOf(\"day\"), a[s].since = r.valueOf()\n }\n switch (typeof a[s].until) {\n case \"undefined\":\n a[s].until = 1 / 0;\n break;\n case \"string\":\n r = n(a[s].until).startOf(\"day\").valueOf(), a[s].until = r.valueOf()\n }\n }\n return a\n }, Yn.erasParse = function(e, t, n) {\n var s, i, r, a, o, u = this.eras();\n for (e = e.toUpperCase(), s = 0, i = u.length; s < i; ++s)\n if (r = u[s].name.toUpperCase(), a = u[s].abbr.toUpperCase(), o = u[s].narrow.toUpperCase(), n) switch (t) {\n case \"N\":\n case \"NN\":\n case \"NNN\":\n if (a === e) return u[s];\n break;\n case \"NNNN\":\n if (r === e) return u[s];\n break;\n case \"NNNNN\":\n if (o === e) return u[s]\n } else if ([r, a, o].indexOf(e) >= 0) return u[s]\n }, Yn.erasConvertYear = function(e, t) {\n var s = e.since <= e.until ? 1 : -1;\n return void 0 === t ? n(e.since).year() : n(e.since).year() + (t - e.offset) * s\n }, Yn.erasAbbrRegex = function(e) {\n return r(this, \"_erasAbbrRegex\") || mn.call(this), e ? this._erasAbbrRegex : this._erasRegex\n }, Yn.erasNameRegex = function(e) {\n return r(this, \"_erasNameRegex\") || mn.call(this), e ? this._erasNameRegex : this._erasRegex\n }, Yn.erasNarrowRegex = function(e) {\n return r(this, \"_erasNarrowRegex\") || mn.call(this), e ? this._erasNarrowRegex : this._erasRegex\n }, Yn.months = function(e, t) {\n return e ? s(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Re).test(t) ? \"format\" : \"standalone\"][e.month()] : s(this._months) ? this._months : this._months.standalone\n }, Yn.monthsShort = function(e, t) {\n return e ? s(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Re.test(t) ? \"format\" : \"standalone\"][e.month()] : s(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone\n }, Yn.monthsParse = function(e, t, n) {\n var s, i, r;\n if (this._monthsParseExact) return function(e, t, n) {\n var s, i, r, a = e.toLocaleLowerCase();\n if (!this._monthsParse)\n for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s) r = c([2e3, s]), this._shortMonthsParse[s] = this.monthsShort(r, \"\").toLocaleLowerCase(), this._longMonthsParse[s] = this.months(r, \"\").toLocaleLowerCase();\n return n ? \"MMM\" === t ? -1 !== (i = pe.call(this._shortMonthsParse, a)) ? i : null : -1 !== (i = pe.call(this._longMonthsParse, a)) ? i : null : \"MMM\" === t ? -1 !== (i = pe.call(this._shortMonthsParse, a)) ? i : -1 !== (i = pe.call(this._longMonthsParse, a)) ? i : null : -1 !== (i = pe.call(this._longMonthsParse, a)) ? i : -1 !== (i = pe.call(this._shortMonthsParse, a)) ? i : null\n }.call(this, e, t, n);\n for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s < 12; s++) {\n if (i = c([2e3, s]), n && !this._longMonthsParse[s] && (this._longMonthsParse[s] = new RegExp(\"^\" + this.months(i, \"\").replace(\".\", \"\") + \"$\", \"i\"), this._shortMonthsParse[s] = new RegExp(\"^\" + this.monthsShort(i, \"\").replace(\".\", \"\") + \"$\", \"i\")), n || this._monthsParse[s] || (r = \"^\" + this.months(i, \"\") + \"|^\" + this.monthsShort(i, \"\"), this._monthsParse[s] = new RegExp(r.replace(\".\", \"\"), \"i\")), n && \"MMMM\" === t && this._longMonthsParse[s].test(e)) return s;\n if (n && \"MMM\" === t && this._shortMonthsParse[s].test(e)) return s;\n if (!n && this._monthsParse[s].test(e)) return s\n }\n }, Yn.monthsRegex = function(e) {\n return this._monthsParseExact ? (r(this, \"_monthsRegex\") || Fe.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (r(this, \"_monthsRegex\") || (this._monthsRegex = Ce), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex)\n }, Yn.monthsShortRegex = function(e) {\n return this._monthsParseExact ? (r(this, \"_monthsRegex\") || Fe.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (r(this, \"_monthsShortRegex\") || (this._monthsShortRegex = We), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex)\n }, Yn.week = function(e) {\n return je(e, this._week.dow, this._week.doy).week\n }, Yn.firstDayOfYear = function() {\n return this._week.doy\n }, Yn.firstDayOfWeek = function() {\n return this._week.dow\n }, Yn.weekdays = function(e, t) {\n var n = s(this._weekdays) ? this._weekdays : this._weekdays[e && !0 !== e && this._weekdays.isFormat.test(t) ? \"format\" : \"standalone\"];\n return !0 === e ? Ze(n, this._week.dow) : e ? n[e.day()] : n\n }, Yn.weekdaysMin = function(e) {\n return !0 === e ? Ze(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin\n }, Yn.weekdaysShort = function(e) {\n return !0 === e ? Ze(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort\n }, Yn.weekdaysParse = function(e, t, n) {\n var s, i, r;\n if (this._weekdaysParseExact) return function(e, t, n) {\n var s, i, r, a = e.toLocaleLowerCase();\n if (!this._weekdaysParse)\n for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s) r = c([2e3, 1]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(r, \"\").toLocaleLowerCase(), this._shortWeekdaysParse[s] = this.weekdaysShort(r, \"\").toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(r, \"\").toLocaleLowerCase();\n return n ? \"dddd\" === t ? -1 !== (i = pe.call(this._weekdaysParse, a)) ? i : null : \"ddd\" === t ? -1 !== (i = pe.call(this._shortWeekdaysParse, a)) ? i : null : -1 !== (i = pe.call(this._minWeekdaysParse, a)) ? i : null : \"dddd\" === t ? -1 !== (i = pe.call(this._weekdaysParse, a)) ? i : -1 !== (i = pe.call(this._shortWeekdaysParse, a)) ? i : -1 !== (i = pe.call(this._minWeekdaysParse, a)) ? i : null : \"ddd\" === t ? -1 !== (i = pe.call(this._shortWeekdaysParse, a)) ? i : -1 !== (i = pe.call(this._weekdaysParse, a)) ? i : -1 !== (i = pe.call(this._minWeekdaysParse, a)) ? i : null : -1 !== (i = pe.call(this._minWeekdaysParse, a)) ? i : -1 !== (i = pe.call(this._weekdaysParse, a)) ? i : -1 !== (i = pe.call(this._shortWeekdaysParse, a)) ? i : null\n }.call(this, e, t, n);\n for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), s = 0; s < 7; s++) {\n if (i = c([2e3, 1]).day(s), n && !this._fullWeekdaysParse[s] && (this._fullWeekdaysParse[s] = new RegExp(\"^\" + this.weekdays(i, \"\").replace(\".\", \"\\\\.?\") + \"$\", \"i\"), this._shortWeekdaysParse[s] = new RegExp(\"^\" + this.weekdaysShort(i, \"\").replace(\".\", \"\\\\.?\") + \"$\", \"i\"), this._minWeekdaysParse[s] = new RegExp(\"^\" + this.weekdaysMin(i, \"\").replace(\".\", \"\\\\.?\") + \"$\", \"i\")), this._weekdaysParse[s] || (r = \"^\" + this.weekdays(i, \"\") + \"|^\" + this.weekdaysShort(i, \"\") + \"|^\" + this.weekdaysMin(i, \"\"), this._weekdaysParse[s] = new RegExp(r.replace(\".\", \"\"), \"i\")), n && \"dddd\" === t && this._fullWeekdaysParse[s].test(e)) return s;\n if (n && \"ddd\" === t && this._shortWeekdaysParse[s].test(e)) return s;\n if (n && \"dd\" === t && this._minWeekdaysParse[s].test(e)) return s;\n if (!n && this._weekdaysParse[s].test(e)) return s\n }\n }, Yn.weekdaysRegex = function(e) {\n return this._weekdaysParseExact ? (r(this, \"_weekdaysRegex\") || Xe.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (r(this, \"_weekdaysRegex\") || (this._weekdaysRegex = Be), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex)\n }, Yn.weekdaysShortRegex = function(e) {\n return this._weekdaysParseExact ? (r(this, \"_weekdaysRegex\") || Xe.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (r(this, \"_weekdaysShortRegex\") || (this._weekdaysShortRegex = Je), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex)\n }, Yn.weekdaysMinRegex = function(e) {\n return this._weekdaysParseExact ? (r(this, \"_weekdaysRegex\") || Xe.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (r(this, \"_weekdaysMinRegex\") || (this._weekdaysMinRegex = Qe), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex)\n }, Yn.isPM = function(e) {\n return \"p\" === (e + \"\").toLowerCase().charAt(0)\n }, Yn.meridiem = function(e, t, n) {\n return e > 11 ? n ? \"pm\" : \"PM\" : n ? \"am\" : \"AM\"\n }, ht(\"en\", {\n eras: [{\n since: \"0001-01-01\",\n until: 1 / 0,\n offset: 1,\n name: \"Anno Domini\",\n narrow: \"AD\",\n abbr: \"AD\"\n }, {\n since: \"0000-12-31\",\n until: -1 / 0,\n offset: 1,\n name: \"Before Christ\",\n narrow: \"BC\",\n abbr: \"BC\"\n }],\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function(e) {\n var t = e % 10;\n return e + (1 === Z(e % 100 / 10) ? \"th\" : 1 === t ? \"st\" : 2 === t ? \"nd\" : 3 === t ? \"rd\" : \"th\")\n }\n }), n.lang = M(\"moment.lang is deprecated. Use moment.locale instead.\", ht), n.langData = M(\"moment.langData is deprecated. Use moment.localeData instead.\", ct);\n var Tn = Math.abs;\n\n function Nn(e, t, n, s) {\n var i = zt(t, n);\n return e._milliseconds += s * i._milliseconds, e._days += s * i._days, e._months += s * i._months, e._bubble()\n }\n\n function Pn(e) {\n return e < 0 ? Math.floor(e) : Math.ceil(e)\n }\n\n function Rn(e) {\n return 4800 * e / 146097\n }\n\n function Wn(e) {\n return 146097 * e / 4800\n }\n\n function Cn(e) {\n return function() {\n return this.as(e)\n }\n }\n var Un = Cn(\"ms\"),\n Hn = Cn(\"s\"),\n Fn = Cn(\"m\"),\n Ln = Cn(\"h\"),\n Vn = Cn(\"d\"),\n Gn = Cn(\"w\"),\n En = Cn(\"M\"),\n An = Cn(\"Q\"),\n jn = Cn(\"y\");\n\n function In(e) {\n return function() {\n return this.isValid() ? this._data[e] : NaN\n }\n }\n var Zn = In(\"milliseconds\"),\n zn = In(\"seconds\"),\n $n = In(\"minutes\"),\n qn = In(\"hours\"),\n Bn = In(\"days\"),\n Jn = In(\"months\"),\n Qn = In(\"years\");\n var Xn = Math.round,\n Kn = {\n ss: 44,\n s: 45,\n m: 45,\n h: 22,\n d: 26,\n w: null,\n M: 11\n };\n var es = Math.abs;\n\n function ts(e) {\n return (e > 0) - (e < 0) || +e\n }\n\n function ns() {\n if (!this.isValid()) return this.localeData().invalidDate();\n var e, t, n, s, i, r, a, o, u = es(this._milliseconds) / 1e3,\n l = es(this._days),\n h = es(this._months),\n d = this.asSeconds();\n return d ? (e = I(u / 60), t = I(e / 60), u %= 60, e %= 60, n = I(h / 12), h %= 12, s = u ? u.toFixed(3).replace(/\\.?0+$/, \"\") : \"\", i = d < 0 ? \"-\" : \"\", r = ts(this._months) !== ts(d) ? \"-\" : \"\", a = ts(this._days) !== ts(d) ? \"-\" : \"\", o = ts(this._milliseconds) !== ts(d) ? \"-\" : \"\", i + \"P\" + (n ? r + n + \"Y\" : \"\") + (h ? r + h + \"M\" : \"\") + (l ? a + l + \"D\" : \"\") + (t || e || u ? \"T\" : \"\") + (t ? o + t + \"H\" : \"\") + (e ? o + e + \"M\" : \"\") + (u ? o + s + \"S\" : \"\")) : \"P0D\"\n }\n var ss = Ut.prototype;\n return ss.isValid = function() {\n return this._isValid\n }, ss.abs = function() {\n var e = this._data;\n return this._milliseconds = Tn(this._milliseconds), this._days = Tn(this._days), this._months = Tn(this._months), e.milliseconds = Tn(e.milliseconds), e.seconds = Tn(e.seconds), e.minutes = Tn(e.minutes), e.hours = Tn(e.hours), e.months = Tn(e.months), e.years = Tn(e.years), this\n }, ss.add = function(e, t) {\n return Nn(this, e, t, 1)\n }, ss.subtract = function(e, t) {\n return Nn(this, e, t, -1)\n }, ss.as = function(e) {\n if (!this.isValid()) return NaN;\n var t, n, s = this._milliseconds;\n if (\"month\" === (e = V(e)) || \"quarter\" === e || \"year\" === e) switch (t = this._days + s / 864e5, n = this._months + Rn(t), e) {\n case \"month\":\n return n;\n case \"quarter\":\n return n / 3;\n case \"year\":\n return n / 12\n } else switch (t = this._days + Math.round(Wn(this._months)), e) {\n case \"week\":\n return t / 7 + s / 6048e5;\n case \"day\":\n return t + s / 864e5;\n case \"hour\":\n return 24 * t + s / 36e5;\n case \"minute\":\n return 1440 * t + s / 6e4;\n case \"second\":\n return 86400 * t + s / 1e3;\n case \"millisecond\":\n return Math.floor(864e5 * t) + s;\n default:\n throw new Error(\"Unknown unit \" + e)\n }\n }, ss.asMilliseconds = Un, ss.asSeconds = Hn, ss.asMinutes = Fn, ss.asHours = Ln, ss.asDays = Vn, ss.asWeeks = Gn, ss.asMonths = En, ss.asQuarters = An, ss.asYears = jn, ss.valueOf = function() {\n return this.isValid() ? this._milliseconds + 864e5 * this._days + this._months % 12 * 2592e6 + 31536e6 * Z(this._months / 12) : NaN\n }, ss._bubble = function() {\n var e, t, n, s, i, r = this._milliseconds,\n a = this._days,\n o = this._months,\n u = this._data;\n return r >= 0 && a >= 0 && o >= 0 || r <= 0 && a <= 0 && o <= 0 || (r += 864e5 * Pn(Wn(o) + a), a = 0, o = 0), u.milliseconds = r % 1e3, e = I(r / 1e3), u.seconds = e % 60, t = I(e / 60), u.minutes = t % 60, n = I(t / 60), u.hours = n % 24, a += I(n / 24), o += i = I(Rn(a)), a -= Pn(Wn(i)), s = I(o / 12), o %= 12, u.days = a, u.months = o, u.years = s, this\n }, ss.clone = function() {\n return zt(this)\n }, ss.get = function(e) {\n return e = V(e), this.isValid() ? this[e + \"s\"]() : NaN\n }, ss.milliseconds = Zn, ss.seconds = zn, ss.minutes = $n, ss.hours = qn, ss.days = Bn, ss.weeks = function() {\n return I(this.days() / 7)\n }, ss.months = Jn, ss.years = Qn, ss.humanize = function(e, t) {\n if (!this.isValid()) return this.localeData().invalidDate();\n var n, s, i = !1,\n r = Kn;\n return \"object\" == typeof e && (t = e, e = !1), \"boolean\" == typeof e && (i = e), \"object\" == typeof t && (r = Object.assign({}, Kn, t), null != t.s && null == t.ss && (r.ss = t.s - 1)), s = function(e, t, n, s) {\n var i = zt(e).abs(),\n r = Xn(i.as(\"s\")),\n a = Xn(i.as(\"m\")),\n o = Xn(i.as(\"h\")),\n u = Xn(i.as(\"d\")),\n l = Xn(i.as(\"M\")),\n h = Xn(i.as(\"w\")),\n d = Xn(i.as(\"y\")),\n c = r <= n.ss && [\"s\", r] || r < n.s && [\"ss\", r] || a <= 1 && [\"m\"] || a < n.m && [\"mm\", a] || o <= 1 && [\"h\"] || o < n.h && [\"hh\", o] || u <= 1 && [\"d\"] || u < n.d && [\"dd\", u];\n return null != n.w && (c = c || h <= 1 && [\"w\"] || h < n.w && [\"ww\", h]), (c = c || l <= 1 && [\"M\"] || l < n.M && [\"MM\", l] || d <= 1 && [\"y\"] || [\"yy\", d])[2] = t, c[3] = +e > 0, c[4] = s,\n function(e, t, n, s, i) {\n return i.relativeTime(t || 1, !!n, e, s)\n }.apply(null, c)\n }(this, !i, r, n = this.localeData()), i && (s = n.pastFuture(+this, s)), n.postformat(s)\n }, ss.toISOString = ns, ss.toString = ns, ss.toJSON = ns, ss.locale = nn, ss.localeData = rn, ss.toIsoString = M(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\", ns), ss.lang = sn, C(\"X\", 0, 0, \"unix\"), C(\"x\", 0, 0, \"valueOf\"), ce(\"x\", ue), ce(\"X\", /[+-]?\\d+(\\.\\d{1,3})?/), ye(\"X\", function(e, t, n) {\n n._d = new Date(1e3 * parseFloat(e))\n }), ye(\"x\", function(e, t, n) {\n n._d = new Date(Z(e))\n }), n.version = \"2.29.1\", e = Nt, n.fn = Dn, n.min = function() {\n return Wt(\"isBefore\", [].slice.call(arguments, 0))\n }, n.max = function() {\n return Wt(\"isAfter\", [].slice.call(arguments, 0))\n }, n.now = function() {\n return Date.now ? Date.now() : +new Date\n }, n.utc = c, n.unix = function(e) {\n return Nt(1e3 * e)\n }, n.months = function(e, t) {\n return bn(e, t, \"months\")\n }, n.isDate = l, n.locale = ht, n.invalid = _, n.duration = zt, n.isMoment = v, n.weekdays = function(e, t, n) {\n return xn(e, t, n, \"weekdays\")\n }, n.parseZone = function() {\n return Nt.apply(null, arguments).parseZone()\n }, n.localeData = ct, n.isDuration = Ht, n.monthsShort = function(e, t) {\n return bn(e, t, \"monthsShort\")\n }, n.weekdaysMin = function(e, t, n) {\n return xn(e, t, n, \"weekdaysMin\")\n }, n.defineLocale = dt, n.updateLocale = function(e, t) {\n if (null != t) {\n var n, s, i = it;\n null != rt[e] && null != rt[e].parentLocale ? rt[e].set(b(rt[e]._config, t)) : (null != (s = lt(e)) && (i = s._config), t = b(i, t), null == s && (t.abbr = e), (n = new x(t)).parentLocale = rt[e], rt[e] = n), ht(e)\n } else null != rt[e] && (null != rt[e].parentLocale ? (rt[e] = rt[e].parentLocale, e === ht() && ht(e)) : null != rt[e] && delete rt[e]);\n return rt[e]\n }, n.locales = function() {\n return D(rt)\n }, n.weekdaysShort = function(e, t, n) {\n return xn(e, t, n, \"weekdaysShort\")\n }, n.normalizeUnits = V, n.relativeTimeRounding = function(e) {\n return void 0 === e ? Xn : \"function\" == typeof e && (Xn = e, !0)\n }, n.relativeTimeThreshold = function(e, t) {\n return void 0 !== Kn[e] && (void 0 === t ? Kn[e] : (Kn[e] = t, \"s\" === e && (Kn.ss = t - 1), !0))\n }, n.calendarFormat = function(e, t) {\n var n = e.diff(t, \"days\", !0);\n return n < -6 ? \"sameElse\" : n < -1 ? \"lastWeek\" : n < 0 ? \"lastDay\" : n < 1 ? \"sameDay\" : n < 2 ? \"nextDay\" : n < 7 ? \"nextWeek\" : \"sameElse\"\n }, n.prototype = Dn, n.HTML5_FMT = {\n DATETIME_LOCAL: \"YYYY-MM-DDTHH:mm\",\n DATETIME_LOCAL_SECONDS: \"YYYY-MM-DDTHH:mm:ss\",\n DATETIME_LOCAL_MS: \"YYYY-MM-DDTHH:mm:ss.SSS\",\n DATE: \"YYYY-MM-DD\",\n TIME: \"HH:mm\",\n TIME_SECONDS: \"HH:mm:ss\",\n TIME_MS: \"HH:mm:ss.SSS\",\n WEEK: \"GGGG-[W]WW\",\n MONTH: \"YYYY-MM\"\n }, n\n });\n }, {}],\n \"wEwS\": [function(require, module, exports) {\n \"use strict\";\n var t = this && this.__importDefault || function(t) {\n return t && t.__esModule ? t : {\n default: t\n }\n };\n Object.defineProperty(exports, \"__esModule\", {\n value: !0\n });\n var e = t(require(\"moment\"));\n\n function r(t) {\n return \"\" + t.format(\"YYYYMMDD HH:mm:SS\")\n }\n\n function u(t) {\n return r(null != t ? e.default(t) : e.default())\n }\n\n function n() {\n return r(e.default().startOf(\"day\"))\n }\n exports.datefromString = u, exports.todayMidnight = n;\n }, {\n \"moment\": \"a2Bw\"\n }],\n \"di1W\": [function(require, module, exports) {\n \"use strict\";\n\n function e(e) {\n return !e.anonymForced && e.loggedUser && e.loggedUser.subscribed\n }\n Object.defineProperty(exports, \"__esModule\", {\n value: !0\n }), exports.default = e;\n }, {}],\n \"K9xR\": [function(require, module, exports) {\n \"use strict\";\n\n function e(e) {\n switch (e.toLowerCase()) {\n case \"hls\":\n return \"application/x-mpegURL\";\n case \"dash\":\n return \"application/dash+xml\";\n case \"mp4\":\n return \"video/mp4\";\n default:\n return \"unsupported-format\"\n }\n }\n Object.defineProperty(exports, \"__esModule\", {\n value: !0\n }), exports.default = e;\n }, {}],\n \"JcTH\": [function(require, module, exports) {\n \"use strict\";\n var e = this && this.__assign || function() {\n return (e = Object.assign || function(e) {\n for (var t, i = 1, r = arguments.length; i < r; i++)\n for (var a in t = arguments[i]) Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);\n return e\n }).apply(this, arguments)\n },\n t = this && this.__importDefault || function(e) {\n return e && e.__esModule ? e : {\n default: e\n }\n };\n Object.defineProperty(exports, \"__esModule\", {\n value: !0\n });\n var i = t(require(\"./utils/durationToSeconds\")),\n r = t(require(\"./utils/isLive\")),\n a = t(require(\"./utils/capitalize\")),\n s = require(\"./utils/date\"),\n n = t(require(\"./utils/isUserSubscribed\")),\n o = t(require(\"./utils/streamTypeToMime\"));\n\n function l(t, n, o) {\n var l = t.productDetail,\n d = n.plugins.measuring,\n u = l.genres ? l.genres.slice() : [],\n p = l.productSubcategories ? l.productSubcategories : [],\n m = l.userData ? l.userData.tvodAvailability : \"\",\n c = {\n streamInfo: {\n programID: l.externalId.replace(/\\//g, \"-\"),\n externalId: l.externalId,\n programName: l.localTitle,\n programType: \"Video\",\n videoType: a.default(l.productCategory.toLowerCase()),\n videoCategory: p.map(function(e) {\n return e.title\n }).join(\",\"),\n series: l.seriesTitle,\n playerType: o.playerType,\n programDuration: l.totalDuration ? i.default(l.totalDuration) : -1,\n videoID: l.id,\n typology: [u.map(function(e) {\n return e.title\n })].concat(l.productSections).join(\",\"),\n seasonNumber: l.seasonNumber,\n episode: \"EPISODE\" === l.productCategory ? l.localTitle : \"\"\n },\n services: {}\n };\n return d.gtmBasic && (c.services.gtmBasic = !0), d.gtmComplex && t.measuringData && (c.services.gtmComplex = {\n data: {\n video: {\n content: {\n tvodPurchasedDate: t.measuringData.tvodPurchasedDate,\n tvodTransactionId: t.measuringData.tvodTransactionId,\n tvodBundleId: t.measuringData.tvodBundleId,\n price: t.measuringData.tvodPrice ? t.measuringData.tvodPrice.amount : void 0,\n vodType: t.measuringData.admittance,\n tvodRemainingHours: t.measuringData.tvodRemainingHours,\n tvodStartConsumingUntil: t.measuringData.tvodStartConsumingUntil\n }\n }\n }\n }), d.gemius && (c.services.gemius = e({}, d.gemius, {\n currentDomain: o.siteIdentifier\n })), d.cerebroad && d.cerebroad.cid && (c.services.cerebroad = {\n cid: d.cerebroad.cid\n }), d.nielsen && (c.services.nielsen = {\n type: d.nielsen.type,\n isfullepisode: [\"LIVESTREAM\", \"SIMULCAST\", \"EPISODE\", \"MOVIE\"].indexOf(l.productCategory) >= 0 ? \"y\" : \"n\",\n hasAds: d.nielsen.hasAds && \"0\" !== d.nielsen.hasAds ? \"1\" : \"0\",\n mediaUrl: \"\",\n segB: d.nielsen.segB,\n segC: m ? d.nielsen.TVODsegC : d.nielsen.segC,\n nol_c1: \"p1,\" + (r.default(t) ? d.nielsen.nol_c1[l.externalId] || d.nielsen.nol_c1_default : \"\"),\n nol_c2: \"p2,\",\n program: l.localTitle,\n crossId1: r.default(t) ? \"\" : l.externalId,\n airdate: r.default(t) ? s.todayMidnight() : l.broadcastDate ? s.datefromString(l.broadcastDate) : s.datefromString(0),\n adloadtype: r.default(t) ? d.nielsen.live.adloadtype : d.nielsen.adloadtype,\n apid: o.embed ? d.nielsen.embed.apid : d.nielsen.apid\n }), d.mux && (!d.mux.onlyContentType || d.mux.onlyContentType.indexOf(l.productCategory) >= 0) && (c.services.mux = {\n quality_measurement_switch: !!d.mux.quality_measurement_switch,\n property_key: d.mux.property_key,\n activationProbability: d.mux.activationProbability,\n data: d.mux.sub_property_id ? {\n sub_property_id: d.mux.sub_property_id\n } : {},\n embedded: o.embed\n }, d.mux.logErrors && (c.services.mux.logErrors = d.mux.logErrors), d.mux.ignoreErrors && (c.services.mux.ignoreErrors = d.mux.ignoreErrors)), c\n }\n\n function d(e, t, i) {\n var a = t.plugins.settings,\n s = {\n isLive: r.default(e)\n };\n return a.qualities && (s.qualities = {}), a.subtitles && e.subInfos && (s.subtitles = e.subInfos.map(function(t) {\n return {\n src: t.url,\n srclang: t.lang.key,\n label: t.lang.title,\n kind: \"captions\",\n default: e.preferredLanguages.subtitles && e.preferredLanguages.subtitles.key === t.lang.key\n }\n })), a.languages && (s.languages = {\n HLS: e.streamInfos.filter(function(e) {\n return \"HLS\" === e.type\n }).map(function(e) {\n return {\n srclang: e.lang.key,\n label: e.lang.title\n }\n }),\n DASH: e.streamInfos.filter(function(e) {\n return \"DASH\" === e.type\n }).map(function(e) {\n return {\n srclang: e.lang.key,\n label: e.lang.title\n }\n })\n }), (i.embed && a[\"autoplaySwitch-embed\"] || !i.embed && a.autoplaySwitch) && (s.autoplaySwitch = {}), a.persistSettings && i.loggedUser && i.loggedUser.profileIdHashed && (s.persistSettings = {\n id: i.loggedUser.profileIdHashed,\n subtitlesEnabled: !!a.persistSettings.subtitles,\n audioEnabled: !!a.persistSettings.audio,\n cookieExpiration: a.persistSettings.cookieExpiration,\n autoplayEnabled: !!a.persistSettings[i.embed ? \"autoplay-embed\" : \"autoplay\"]\n }), t.plugins.measuring && t.plugins.measuring.nielsen && (s.nielsenOptOut = {}), s\n }\n\n function u(e, t, i) {\n var r = t.playlist || {};\n return {\n type: r.type ? r.type : void 0,\n controls: r.controls ? r.controls : void 0,\n showSourceName: r.showSourceName ? r.showSourceName : void 0\n }\n }\n\n function p(t, a, s) {\n var n = a.plugins.adService,\n o = s.anonymForced ? \"anonym\" : s.embed ? \"premium-embed\" : \"premium\",\n l = t.position ? i.default(t.position) : 0,\n d = {\n settings: {\n companion: n.settings.companion,\n overlay: n.settings.overlay,\n linear: {\n watchTreshold: n.settings.linear.watchTreshold,\n defaultSkipDelay: n.settings.linear.defaultSkipDelay,\n preferredFormat: n.settings.linear.preferredFormat,\n premium: e({\n mode: \"\",\n target: \"\",\n url: \"\",\n position: \"\"\n }, n.settings.linear[o]),\n priorNotification: n.settings.linear.priorNotification,\n skipDelay: n.settings.linear.skipDelay,\n vpaid: e({}, n.settings.linear.vpaid, {\n friendlyIframeID: s.playerId + \"-vpaid-iframe\"\n }),\n adProxy: n.settings.linear.adProxy\n }\n },\n linear: {\n skipButton: !!n.skipButton,\n preroll: {\n vasts: t.preRollUrls ? t.preRollUrls : []\n },\n midrolls: t.videoAdsMidRollPositions ? t.videoAdsMidRollPositions.filter(function(e) {\n return e >= l\n }).map(function(e) {\n return {\n time: e,\n vasts: t.midRollPosToUrls[e]\n }\n }) : [],\n postroll: {\n vasts: t.preRollUrls ? t.preRollUrls : []\n }\n },\n cascade: []\n };\n return (!s.embed && n.cascade.play || s.embed && n.cascade.embed) && t.overlayPositions && (d.cascade = t.overlayPositions.filter(function(e) {\n return e >= l\n }).map(function(e) {\n return {\n period: r.default(t) ? e : void 0,\n time: r.default(t) ? void 0 : e,\n overlay: t.overlayUrl ? {\n vast: t.overlayUrl\n } : void 0,\n companion: t.fullscreenUrl ? {\n vast: t.fullscreenUrl\n } : void 0,\n sklik: {\n timeout: n.sklik ? n.sklik.timeout : 0\n }\n }\n })), d\n }\n\n function m(t, i, r) {\n var a = i.plugins.heartBeats;\n return e({\n productId: t.productDetail.id,\n playAccessToken: r.playAccessToken ? r.playAccessToken : void 0\n }, a[r.embed ? \"embedUrls\" : \"urls\"], {\n requestHeaders: r.requestsHeaders,\n viewBeatInterval: a.viewBeatInterval,\n heartBeatInterval: a.heartBeatInterval,\n from: r.embed ? \"embed\" : t.position ? \"cw\" : void 0,\n errors: {\n 403: {\n className: \"ott-forbidden-message\"\n }\n }\n })\n }\n\n function c(e, t) {\n return {\n liveRestartEndpointUrl: t.plugins.liveRestartButton.liveRestartEndpointUrl,\n liveRestartChannelId: e.productDetail.id\n }\n }\n\n function g(t, a, s) {\n var o = {\n playedTicks: {}\n };\n if (r.default(t) || (o.playedPercentual = {}), s.embed && (a.plugins.expandScreen && (o.expandScreen = {}), a.plugins.helpButton && (o.helpButton = {})), a.plugins.measuring && (o.measuring = l(t, a, s)), a.plugins.settings && (o.settings = d(t, a, s)), a.plugins.timeshift && t.streamInfos[0] && t.streamInfos[0].timeshiftUrl && (o.timeShift = e({}, a.plugins.timeshift, {\n seekTime: s.timeshiftSeekTime || t.timeshiftSeconds,\n disabled: s.timeshiftDisabled\n }), t.thumbnailInfo && (o.timeShift.thumbnails = t.thumbnailInfo), a.plugins.liveRestartButton && (o.liveRestartButton = c(t, a))), a.plugins.seekHints && !r.default(t) && t.videoTimeFlags && (o.seekHints = t.videoTimeFlags.map(function(e) {\n return {\n time: i.default(e.time),\n text: e.text\n }\n })), a.plugins.thumbnails && t.thumbnailInfo && (o.thumbnails = t.thumbnailInfo), a.plugins.sharingScreen && !s.embed && (o.sharingScreen = {}), a.plugins.offset && t.videoStartPos && t.videoEndPos && (o.offset = {\n start: i.default(t.videoStartPos),\n end: i.default(t.videoEndPos),\n restart_beginning: !1\n }), a.plugins.markers) {\n var u = [];\n if (t.videoTimeFlags && t.videoTimeFlags.forEach(function(e) {\n return u.push({\n time: i.default(e.time),\n text: e.text\n })\n }), t.videoAdsMidRollPositions && !n.default(s)) {\n var g = t.position ? i.default(t.position) : 0;\n t.videoAdsMidRollPositions.forEach(function(e) {\n return e >= g && u.push({\n time: e,\n class: \"vjs-marker-ad\"\n })\n })\n }\n u.length && (o.markers = {\n markerTip: {\n display: !1\n },\n markers: u\n })\n }\n return a.plugins.adService && !t.preview && !n.default(s) && !t.adsEnabled && (o.adService = p(t, a, s)), a.plugins.heartBeats && (o.heartBeats = m(t, a, s)), a.plugins.mobileControls && (o.mobileControls = a.plugins.mobileControls), o.playerReport = a.plugins.playerReport, o.uhdController = a.plugins.uhdController, a.plugins.audioChannelsController && (o.audioChannelsController = {}), o.seekBack = a.plugins.seekBack, o\n }\n\n function f(t, i, r) {\n var a = {\n HLS: [],\n DASH: []\n };\n return t.streamInfos.forEach(function(t) {\n var r = {\n lang: t.lang.key,\n src: t.url,\n type: o.default(t.type),\n uhd: t.uhd\n };\n \"HLS\" === t.type ? a.HLS.push(e({}, r, {\n timeshiftSrc: t.timeshiftUrl,\n profiles: t.profiles ? t.profiles : [],\n withCredentials: !!i.withCredentials,\n drm: t.drmInfo && t.drmInfo.drmFairPlayInfo ? {\n keySystem: t.drmInfo.drmFairPlayInfo.keySystem,\n certificateUrl: t.drmInfo.drmFairPlayInfo.certificateUrl,\n licenseUrl: t.drmInfo.drmFairPlayInfo.licenseServerUrl,\n licenseRequestHeaders: {\n \"X-AxDRM-Message\": t.drmInfo.drmFairPlayInfo.token\n }\n } : void 0\n })) : \"DASH\" === t.type && a.DASH.push(e({}, r, {\n drm: t.drmInfo && \"MODULAR\" === t.drmInfo.drmType ? t.drmInfo.modularDrmInfos.map(function(e) {\n return {\n keySystem: e.keySystem,\n serverURL: e.licenseServerUrl,\n headers: [{\n name: \"X-AxDRM-Message\",\n value: e.token\n }]\n }\n }) : void 0\n }))\n }), a\n }\n\n function y(e, t, a) {\n var s = {};\n if (console.log(e, t, a), s.duration = e.productDetail.totalDuration ? i.default(e.productDetail.totalDuration) : null, e.productDetail.creditsDuration) {\n var n = i.default(e.productDetail.creditsDuration);\n n && s.duration && (s.durationWithoutCredits = s.duration - n)\n }\n t.dashjsPlaybackEnded && (s.dashjsPlaybackEnded = !0), a.adsUrl && (s.onlyAdsPlayer = !0);\n var o = !1,\n l = !1,\n d = 600;\n return t.setLimitBitrateByPortal && t.setLimitBitrateByPortal.indexOf(a.playerType) >= 0 && (o = !0), t.capLevelToPlayerSize && t.capLevelToPlayerSize.indexOf(a.playerType) >= 0 && (l = !0), t.maxMaxBufferLength && r.default(e) && (d = t.maxMaxBufferLength), s.html5 = {\n hlsjsConfig: {\n capLevelToPlayerSize: l,\n maxMaxBufferLength: d\n },\n dash: {\n setLimitBitrateByPortal: o,\n setInitialMediaSettingsFor: [\"audio\", {\n role: \"main\"\n }]\n }\n }, t.globalMediaPlayer && (s.globalMediaPlayer = t.globalMediaPlayer), s.flash = {\n swf: a.swfUrl\n }, s.preferredLang = [e.preferredLanguages.audio.key], e.position && (s.startTime = i.default(e.position)), s.preferredTech = [{\n os: \"MAC\",\n browser: \"Safari\",\n names: [\"HLS\"]\n }], a.muted && (s.muted = !0), s.plugins = g(e, t, a), s.tracks = f(e, t, a), t.playlist && (s.playlist = t.playlist), s\n }\n exports.default = y;\n }, {\n \"./utils/durationToSeconds\": \"duga\",\n \"./utils/isLive\": \"jn5J\",\n \"./utils/capitalize\": \"rJeL\",\n \"./utils/date\": \"wEwS\",\n \"./utils/isUserSubscribed\": \"di1W\",\n \"./utils/streamTypeToMime\": \"K9xR\"\n }],\n \"QCba\": [function(require, module, exports) {\n \"use strict\";\n var t = this && this.__assign || function() {\n return (t = Object.assign || function(t) {\n for (var e, r = 1, n = arguments.length; r < n; r++)\n for (var a in e = arguments[r]) Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);\n return t\n }).apply(this, arguments)\n },\n e = this && this.__awaiter || function(t, e, r, n) {\n return new(r || (r = Promise))(function(a, o) {\n function i(t) {\n try {\n s(n.next(t))\n } catch (e) {\n o(e)\n }\n }\n\n function u(t) {\n try {\n s(n.throw(t))\n } catch (e) {\n o(e)\n }\n }\n\n function s(t) {\n t.done ? a(t.value) : new r(function(e) {\n e(t.value)\n }).then(i, u)\n }\n s((n = n.apply(t, e || [])).next())\n })\n },\n r = this && this.__generator || function(t, e) {\n var r, n, a, o, i = {\n label: 0,\n sent: function() {\n if (1 & a[0]) throw a[1];\n return a[1]\n },\n trys: [],\n ops: []\n };\n return o = {\n next: u(0),\n throw: u(1),\n return: u(2)\n }, \"function\" == typeof Symbol && (o[Symbol.iterator] = function() {\n return this\n }), o;\n\n function u(o) {\n return function(u) {\n return function(o) {\n if (r) throw new TypeError(\"Generator is already executing.\");\n for (; i;) try {\n if (r = 1, n && (a = 2 & o[0] ? n.return : o[0] ? n.throw || ((a = n.return) && a.call(n), 0) : n.next) && !(a = a.call(n, o[1])).done) return a;\n switch (n = 0, a && (o = [2 & o[0], a.value]), o[0]) {\n case 0:\n case 1:\n a = o;\n break;\n case 4:\n return i.label++, {\n value: o[1],\n done: !1\n };\n case 5:\n i.label++, n = o[1], o = [0];\n continue;\n case 7:\n o = i.ops.pop(), i.trys.pop();\n continue;\n default:\n if (!(a = (a = i.trys).length > 0 && a[a.length - 1]) && (6 === o[0] || 2 === o[0])) {\n i = 0;\n continue\n }\n if (3 === o[0] && (!a || o[1] > a[0] && o[1] < a[3])) {\n i.label = o[1];\n break\n }\n if (6 === o[0] && i.label < a[1]) {\n i.label = a[1], a = o;\n break\n }\n if (a && i.label < a[2]) {\n i.label = a[2], i.ops.push(o);\n break\n }\n a[2] && i.ops.pop(), i.trys.pop();\n continue\n }\n o = e.call(t, i)\n } catch (u) {\n o = [6, u], n = 0\n } finally {\n r = a = 0\n }\n if (5 & o[0]) throw o[1];\n return {\n value: o[0] ? o[1] : void 0,\n done: !0\n }\n }([o, u])\n }\n }\n },\n n = this && this.__importStar || function(t) {\n if (t && t.__esModule) return t;\n var e = {};\n if (null != t)\n for (var r in t) Object.hasOwnProperty.call(t, r) && (e[r] = t[r]);\n return e.default = t, e\n },\n a = this && this.__importDefault || function(t) {\n return t && t.__esModule ? t : {\n default: t\n }\n };\n Object.defineProperty(exports, \"__esModule\", {\n value: !0\n });\n var o = require(\"./api\"),\n i = n(require(\"./defaultOptions\"));\n exports.defaultOptions = i.default, exports.setDefaultOptions = i.setDefaultOptions;\n var u = a(require(\"./composePlayerConfig\"));\n\n function s(n, a) {\n return void 0 === a && (a = {}), e(this, void 0, void 0, function() {\n var e, s, l, c, f;\n return r(this, function(r) {\n switch (r.label) {\n case 0:\n return e = t({}, i.default, a), \"string\" != typeof n ? [3, 3] : [4, o.fetchPlayData(n, e)];\n case 1:\n return s = r.sent(), [4, o.fetchPlayerConfiguration(e)];\n case 2:\n return l = r.sent(), [2, u.default(s, l, e)];\n case 3:\n return Array.isArray(n) ? [4, o.fetchMultiplePlayData(n, e)] : [3, 6];\n case 4:\n return c = r.sent(), [4, o.fetchPlayerConfiguration(e)];\n case 5:\n return f = r.sent(), [2, c.map(function(t) {\n return t.errorResult ? t.errorResult : u.default(t, f, e)\n })];\n case 6:\n throw new TypeError(\"Invalid argument productId. Type `string` or `array of strings` is accepted.\")\n }\n })\n })\n }\n exports.default = s, exports.create = s;\n }, {\n \"./api\": \"in7L\",\n \"./defaultOptions\": \"zCTz\",\n \"./composePlayerConfig\": \"JcTH\"\n }]\n }, {}, [\"QCba\"], \"playerConfig\")\n //# sourceMappingURL=/ott-player-config.min.js.map","fileId":"f3","on":true}],"on":true},{"id":"d3","matchUrl":"*tv.vodafone*","rules":[{"type":"fileOverride","match":"*main.*.chunk.js*","file":"(this.webpackJsonpweb2 = this.webpackJsonpweb2 || []).push([\r\n [0],\r\n [, , , , , , , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"b\", (function() {\r\n return b\r\n }));\r\n var r = n(2),\r\n a = n(6),\r\n c = n(12),\r\n s = n(0),\r\n i = n(253);\r\n\r\n function o(e, t) {\r\n var n, r, a = t.supported,\r\n c = e.toLocaleLowerCase().split(/[_-]/);\r\n return a.forEach((function(e) {\r\n var t = e.toLocaleLowerCase().split(/[_-]/);\r\n c[0] === t[0] && c[1] === t[1] || c[0] === t[0] && c[0] === t[1] || c[0] === t[0] && c[1] === t[0] ? n = e : c[0] === t[0] && (r = e)\r\n })), n || r || t.default\r\n }\r\n\r\n function u(e) {\r\n return l.apply(this, arguments)\r\n }\r\n\r\n function l() {\r\n return (l = Object(c.a)(Object(r.a)().mark((function e(t) {\r\n var n;\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, fetch(\"\".concat(\".\", \"/langs/\").concat(t, \".json\"));\r\n case 2:\r\n if (!(n = e.sent).ok) {\r\n e.next = 5;\r\n break\r\n }\r\n return e.abrupt(\"return\", n.json());\r\n case 5:\r\n return e.abrupt(\"return\", Promise.reject(s.Zb.fromError(new Error(\"Error loading configs (i18n)\"))));\r\n case 6:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), e)\r\n })))).apply(this, arguments)\r\n }\r\n var d = new(n.n(i).a)(Object(a.a)({}, langsConfig.default, {}));\r\n\r\n function b() {\r\n return O.apply(this, arguments)\r\n }\r\n\r\n function O() {\r\n return (O = Object(c.a)(Object(r.a)().mark((function e() {\r\n var t, n, c, s;\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return t = d.getInterfaceLanguage(), n = o(t, langsConfig), e.next = 4, u(n);\r\n case 4:\r\n return c = e.sent, s = Object(a.a)({}, n, c), d.setContent(s), e.abrupt(\"return\", s);\r\n case 8:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), e)\r\n })))).apply(this, arguments)\r\n }\r\n t.a = d\r\n }, , , , , , , , , function(e, t, n) {\r\n \"use strict\";\r\n var r, a, c, s;\r\n n.d(t, \"d\", (function() {\r\n return r\r\n })), n.d(t, \"c\", (function() {\r\n return a\r\n })), n.d(t, \"b\", (function() {\r\n return c\r\n })), n.d(t, \"a\", (function() {\r\n return i\r\n })),\r\n function(e) {\r\n e.ROOT = \"/\", e.SIGNIN_SINGNUP = \"/signinSignup\", e.CODE = \"/signinWithCode\", e.SIGNIN = \"/signin\", e.GDPR = \"/gdpr\"\r\n }(r || (r = {})),\r\n function(e) {\r\n e.ABOUT = \"/about\", e.ABOUT_ELEMENT = \"/:section/about/:id\", e.PRIVACY = \"/privacy\", e.PRIVACY_NOTICE = \"/privacy/notice\", e.PRIVACY_CONSENT = \"/privacy/consent\", e.HELP = \"/help\", e.ERROR = \"/error/:errorCode?\"\r\n }(a || (a = {})),\r\n function(e) {\r\n e.HELP = \"/help\", e.PROFILES_LIST = \"/profiles/list\", e.PROFILES_ADD = \"/profiles/add\", e.PROFILES_EDIT = \"/profiles/edit/:id\", e.SETTINGS = \"/settings\", e.SETTINGS_PARENTAL = \"/settings/parental\", e.SETTINGS_PIN = \"/settings/pin\", e.SETTINGS_ACCESSIBILITY = \"/settings/accessibility\", e.SETTINGS_PROFILES_ADD = \"/settings/profiles/create\", e.SETTINGS_PROFILES_EDIT = \"/settings/profiles/edit/:id\", e.MYTV = \"/mytv\", e.MYTV_WATCH_NEXT = \"/mytv/watchNext\", e.MYTV_RAIL = \"/mytv/cat/:menuItemId\", e.MYTV_RAIL_CATEGORY = \"/mytv/cat/:menuItemId/:railId\", e.WATCHTV = \"/watchtv\", e.ONDEMAND = \"/ondemand\", e.ONDEMAND_NEXT_LEVEL = \"/ondemand/cat/:menuItemId\", e.ONDEMAND_GRID = \"/ondemand/cat/:menuItemId/all/:categoryItemId?\", e.PROGRAM_INFO = \"/:section/info/:assetType/:assetId\", e.FOLDER_INFO = \"/:section/info/folder/:assetId\", e.FOLDER_INFO_GRID = \"/:section/info/folder/all/:assetId/:channelId\", e.SEARCH = \"/search\"\r\n }(c || (c = {})),\r\n function(e) {\r\n e.WISHLIST = \"wishlist\", e.PURCHASES = \"purchases\", e.RECORDINGS = \"recordings\", e.SCHEDULED_RECORDINGS = \"scheduled\", e.WATCH_NEXT = \"watchNext\"\r\n }(s || (s = {}));\r\n var i = c.WATCHTV\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return i\r\n })), n.d(t, \"b\", (function() {\r\n return l\r\n })), n.d(t, \"c\", (function() {\r\n return c.b\r\n })), n.d(t, \"w\", (function() {\r\n return d\r\n })), n.d(t, \"m\", (function() {\r\n return b\r\n })), n.d(t, \"e\", (function() {\r\n return O\r\n })), n.d(t, \"f\", (function() {\r\n return E\r\n })), n.d(t, \"d\", (function() {\r\n return m\r\n })), n.d(t, \"q\", (function() {\r\n return H\r\n })), n.d(t, \"r\", (function() {\r\n return J\r\n })), n.d(t, \"g\", (function() {\r\n return oe\r\n })), n.d(t, \"k\", (function() {\r\n return le\r\n })), n.d(t, \"h\", (function() {\r\n return Ee\r\n })), n.d(t, \"i\", (function() {\r\n return _e\r\n })), n.d(t, \"j\", (function() {\r\n return Re.a\r\n })), n.d(t, \"l\", (function() {\r\n return Te.a\r\n })), n.d(t, \"p\", (function() {\r\n return De\r\n })), n.d(t, \"s\", (function() {\r\n return ye.a\r\n })), n.d(t, \"x\", (function() {\r\n return Ue\r\n })), n.d(t, \"y\", (function() {\r\n return Me\r\n })), n.d(t, \"t\", (function() {\r\n return Ve\r\n })), n.d(t, \"u\", (function() {\r\n return et\r\n })), n.d(t, \"v\", (function() {\r\n return rt\r\n })), n.d(t, \"o\", (function() {\r\n return ct.a\r\n })), n.d(t, \"n\", (function() {\r\n return it\r\n })), n.d(t, \"z\", (function() {\r\n return Ot\r\n }));\r\n var r = n(5),\r\n a = n.n(r),\r\n c = n(63),\r\n s = n(3);\r\n\r\n function i(e) {\r\n var t = e.bemBlock,\r\n n = e.data,\r\n r = e.className,\r\n a = void 0 === r ? \"\" : r,\r\n i = e.small,\r\n o = e.onMouseOver,\r\n u = e.onMouseLeave;\r\n return Object(s.jsx)(\"div\", {\r\n id: \"\".concat(t, \"_buttonsGroup\"),\r\n className: \"btn-group actions \".concat(a),\r\n children: n.map((function(e, n) {\r\n return Object(s.jsx)(c.b, {\r\n bemBlock: t,\r\n bemModifier: e.key,\r\n className: \"\".concat(i ? \"btn-small\" : \"\", \" \").concat(e.className || \"\"),\r\n buttonType: e.linkPath ? c.a.LINK : c.a.BUTTON,\r\n linkPath: e.linkPath,\r\n text: e.text || e.title,\r\n progressPercentage: e.progressPercentage || e.progress,\r\n onClick: function() {\r\n return e.onClick && e.onClick(e.key)\r\n },\r\n onMouseOver: function() {\r\n return o && o(n)\r\n },\r\n onMouseLeave: u\r\n }, e.key)\r\n }))\r\n })\r\n }\r\n var o = n(108),\r\n u = 3;\r\n\r\n function l(e) {\r\n var t = e.badges,\r\n n = void 0 === t ? [] : t,\r\n r = e.className,\r\n a = void 0 === r ? \"\" : r,\r\n c = e.bemBlock,\r\n i = n.map((function(e, t) {\r\n return t >= u ? null : t === n.length - 1 || t === u - 1 ? Object(s.jsxs)(\"div\", {\r\n className: \"last-badge-container\",\r\n children: [Object(s.jsx)(o.a, {\r\n badge: e,\r\n bemBlock: c\r\n }), Object(s.jsx)(\"span\", {\r\n className: \"badge-text\",\r\n children: (r = e.label, r ? Array.isArray(r) ? r.map((function(e, t) {\r\n var n = \"\".concat(c, \"_badgeText___\").concat(t);\r\n return t % 3 === 1 ? Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(\"span\", {\r\n id: n,\r\n className: \"badge string-concatenator\"\r\n }, n), Object(s.jsx)(\"span\", {\r\n children: e\r\n })]\r\n }) : Object(s.jsx)(\"span\", {\r\n id: n,\r\n children: e\r\n }, n)\r\n })) : Object(s.jsx)(\"span\", {\r\n id: \"\".concat(c, \"_badgeText\"),\r\n children: r\r\n }) : Object(s.jsx)(s.Fragment, {\r\n children: \" \"\r\n }))\r\n })]\r\n }, e.icon) : Object(s.jsx)(o.a, {\r\n badge: e,\r\n bemBlock: c\r\n }, e.icon);\r\n var r\r\n }));\r\n return Object(s.jsx)(\"div\", {\r\n className: \"badges-group-container \".concat(a),\r\n children: i.length ? i : Object(s.jsx)(s.Fragment, {})\r\n })\r\n }\r\n var d = function(e) {\r\n var t = e.options;\r\n return t ? Object(s.jsx)(\"div\", {\r\n className: \"buttons-container body-buttons\",\r\n children: t.map((function(e) {\r\n return Object(s.jsx)(b, {\r\n option: e\r\n }, e.id)\r\n }))\r\n }) : null\r\n },\r\n b = function(e) {\r\n var t = e.option;\r\n return t ? Object(s.jsxs)(\"a\", {\r\n className: \"button \".concat(t.disabled ? \"disabled\" : \"\", \" \").concat(t.icon ? \"slim-button\" : \"\"),\r\n onClick: t.onClick,\r\n id: \"Option_button___\".concat(t.id),\r\n children: [Object(s.jsx)(\"span\", {\r\n className: \"button-text\",\r\n id: \"Option_buttonText___\".concat(t.id),\r\n children: t.text\r\n }), t.icon && Object(s.jsx)(\"img\", {\r\n id: \"Option_buttonIcon___\".concat(t.id),\r\n src: t.icon.uri,\r\n alt: t.icon.alt\r\n }), t.selected && Object(s.jsx)(\"span\", {\r\n className: \"option-active\"\r\n })]\r\n }, t.id) : null\r\n },\r\n O = a.a.memo((function(e) {\r\n var t = e.isActive,\r\n n = e.action,\r\n r = e.bemBlock;\r\n return t ? Object(s.jsx)(\"div\", {\r\n id: \"\".concat(r, \"_closeButton\"),\r\n className: \"close-wrapper\",\r\n onClick: n,\r\n children: Object(s.jsx)(\"span\", {\r\n className: \"close-icon\"\r\n })\r\n }) : null\r\n })),\r\n f = n(145),\r\n j = n.n(f);\r\n\r\n function p(e, t) {\r\n var n = e.children,\r\n a = e.className,\r\n c = void 0 === a ? \"\" : a,\r\n i = e.unlockBackgroundPageScroll,\r\n o = e.fullSize,\r\n u = e.modalMode,\r\n l = document.getElementById(\"FloatingPagePortal\");\r\n return Object(r.useEffect)((function() {\r\n return i || (document.body.style.overflow = \"hidden\"),\r\n function() {\r\n i || (document.body.style.overflow = \"auto\")\r\n }\r\n }), [i]), l ? j.a.createPortal(Object(s.jsxs)(s.Fragment, {\r\n children: [u ? Object(s.jsx)(\"div\", {\r\n className: \"floating-page-overlay\",\r\n id: \"FloatingPage_overlay\"\r\n }) : null, Object(s.jsx)(\"div\", {\r\n id: \"FloatingPage_wrapper\",\r\n className: \"floating-page \".concat(u ? \"modal-mode\" : \"\", \" \").concat(o ? \"full-size\" : \"\", \" \").concat(c),\r\n ref: t,\r\n children: Object(s.jsx)(\"div\", {\r\n id: \"FloatingPage_container\",\r\n className: \"floating-page-container \",\r\n children: n\r\n })\r\n })]\r\n }), l) : null\r\n }\r\n var E = a.a.forwardRef(p),\r\n S = a.a.lazy((function() {\r\n return n.e(3).then(n.bind(null, 299))\r\n }));\r\n\r\n function v(e) {\r\n var t = e.data,\r\n n = e.onChannelClick;\r\n return t.map((function(e) {\r\n return Object(s.jsx)(\"div\", {\r\n className: \"channel-container\",\r\n children: Object(s.jsx)(S, {\r\n channel: e,\r\n onClick: n\r\n })\r\n }, \"\".concat(e.channelID, \"-\").concat(e.channelNumber))\r\n }))\r\n }\r\n\r\n function m(e) {\r\n var t = e.data,\r\n n = e.onChannelClick;\r\n return Object(s.jsx)(\"div\", {\r\n className: \"channels-grid-wrapper\",\r\n children: Object(s.jsx)(\"div\", {\r\n className: \"channels-grid-container\",\r\n id: \"ChannelsGrid\",\r\n children: Object(s.jsx)(r.Suspense, {\r\n fallback: Object(s.jsx)(s.Fragment, {}),\r\n children: v({\r\n data: t,\r\n onChannelClick: n\r\n })\r\n })\r\n })\r\n })\r\n }\r\n var h = n(15),\r\n g = n(4),\r\n I = n(8),\r\n C = n(0),\r\n x = n.p + \"static/media/fallbackicon_large.5119b649.svg\",\r\n A = n(94),\r\n _ = n(7),\r\n R = n(70),\r\n T = n(45),\r\n N = n(9),\r\n k = n(139),\r\n L = n(181),\r\n P = n(213),\r\n D = function(e) {\r\n var t = C.i.isSpecialSeasonNumber(null === e || void 0 === e ? void 0 : e.seasonNumber),\r\n n = null === e || void 0 === e ? void 0 : e.seasonNumber,\r\n r = (null === e || void 0 === e ? void 0 : e.episodeName) || \"\",\r\n a = Object(s.jsx)(\"p\", {\r\n id: \"ProgrammeInfoBarMetadata_episodeName\",\r\n className: \"episode-name text-elipsis one-line\",\r\n children: \"\".concat(r)\r\n });\r\n if (t || !n) return r ? Object(s.jsx)(\"div\", {\r\n id: \"ProgrammeInfoBarMetadata_container\",\r\n className: \"program-info-container margin-right-20\",\r\n children: a\r\n }) : null;\r\n var c = _.a.formatString(_.a[\"asset.seasonFormat\"], n).toString(),\r\n i = null === e || void 0 === e ? void 0 : e.episodeNumber;\r\n if (!i) return Object(s.jsxs)(\"div\", {\r\n id: \"ProgrammeInfoBarMetadata_episode\",\r\n className: \"program-info-container margin-right-20\",\r\n children: [Object(s.jsx)(\"p\", {\r\n id: \"ProgrammeInfoBarMetadata_episodeNumber\",\r\n children: \"\".concat(c)\r\n }), \"\\xa0\", a]\r\n });\r\n var o = _.a.formatString(_.a[\"asset.episodeFormat\"], i).toString();\r\n return Object(s.jsxs)(\"div\", {\r\n id: \"ProgrammeInfoBarMetadata_episode\",\r\n className: \"program-info-container margin-right-20\",\r\n children: [Object(s.jsx)(\"p\", {\r\n id: \"ProgrammeInfoBarMetadata_episodeNumber\",\r\n children: \"\".concat(c, \", \").concat(o)\r\n }), \"\\xa0\", a]\r\n })\r\n };\r\n\r\n function y(e) {\r\n var t, n = e.program,\r\n r = R.a.UI.isAdult(n);\r\n return Object(s.jsxs)(\"div\", {\r\n className: \"pi-bar-metadata\",\r\n children: [r ? null : D(n), Object(s.jsxs)(\"div\", {\r\n className: \"program-extra-info\",\r\n children: [r ? null : Object(s.jsxs)(s.Fragment, {\r\n children: [n.year ? Object(s.jsx)(\"p\", {\r\n id: \"ProgrammeInfoBarMetadata_year\",\r\n className: \"margin-right-20\",\r\n children: n.year\r\n }) : null, n.country ? Object(s.jsx)(\"p\", {\r\n id: \"ProgrammeInfoBarMetadata_country\",\r\n className: \"margin-right-20\",\r\n children: n.country\r\n }) : null, null !== (t = n.genres) && void 0 !== t && t.length ? Object(s.jsx)(\"p\", {\r\n id: \"ProgrammeInfoBarMetadata_genre\",\r\n className: \"margin-right-20 text-elipsis one-line\",\r\n children: n.genres[0]\r\n }) : null]\r\n }), n.parentalRating ? Object(s.jsx)(\"div\", {\r\n className: \"parental-control-container\",\r\n children: Object(s.jsx)(\"div\", {\r\n className: \"parental-control\",\r\n children: Object(s.jsx)(\"span\", {\r\n id: \"ProgrammeInfoBarMetadata_parental\",\r\n children: n.parentalRating\r\n })\r\n })\r\n }) : null]\r\n })]\r\n })\r\n }\r\n var w = n(44),\r\n U = n(18),\r\n M = 600,\r\n F = 1080;\r\n\r\n function G(e) {\r\n var t, n, a = e.program,\r\n c = e.onClose,\r\n o = e.menuItemId,\r\n u = Object(w.a)(),\r\n d = Object(N.c)((function(e) {\r\n return T.c.getChannelByEpgId(e, (null === a || void 0 === a ? void 0 : a.channelEpgId) || 0)\r\n })),\r\n b = Object(r.useState)([]),\r\n O = Object(I.a)(b, 2),\r\n f = O[0],\r\n j = O[1],\r\n p = Object(r.useState)(!1),\r\n S = Object(I.a)(p, 2),\r\n v = S[0],\r\n m = S[1],\r\n D = Object(r.useState)(!1),\r\n G = Object(I.a)(D, 2),\r\n H = G[0],\r\n B = G[1],\r\n V = Object(r.useState)(!1),\r\n W = Object(I.a)(V, 2),\r\n Y = W[0],\r\n K = W[1],\r\n Q = Object(r.useState)(),\r\n q = Object(I.a)(Q, 2),\r\n Z = q[0],\r\n X = q[1],\r\n z = Object(r.useRef)(null),\r\n J = Object(A.a)(z),\r\n $ = Object(N.c)(U.d.currentAsset),\r\n ee = Object(N.c)(k.b.isProcessing),\r\n te = Object(N.c)(k.b.isProcessed),\r\n ne = Object(N.c)(k.b.getOptions),\r\n re = Object(N.b)();\r\n Object(r.useEffect)((function() {\r\n a && re(k.a.request(a))\r\n }), [re, a]), Object(r.useEffect)((function() {\r\n J.width && (J.width > F ? H && B(!1) : H || B(!0))\r\n }), [H, J.width]), Object(r.useEffect)((function() {\r\n if (v && c) {\r\n var e = setTimeout(c, M);\r\n return function() {\r\n clearTimeout(e)\r\n }\r\n }\r\n }), [v, c]);\r\n var ae = Object(r.useState)(),\r\n ce = Object(I.a)(ae, 2),\r\n se = ce[0],\r\n ie = ce[1],\r\n oe = Object(r.useState)(!1),\r\n ue = Object(I.a)(oe, 2),\r\n le = ue[0],\r\n de = ue[1],\r\n be = Object(N.c)((function(e) {\r\n return L.b.isProcessed(e)\r\n })),\r\n Oe = Object(r.useCallback)((function(e) {\r\n re(L.a.runOption(e))\r\n }), [re]),\r\n fe = Object(P.a)(ie, de, be, Oe),\r\n je = Object(r.useCallback)((function(e) {\r\n if (K(!1), a && d) {\r\n var t = C.Pb.isBetweenInclusive(a.startDate, a.endDate, C.Pb.now()),\r\n n = 0 === e.progress;\r\n u.push({\r\n asset: t ? d : a,\r\n state: {\r\n forceAutoPlay: !0,\r\n restartIfAvailable: n\r\n },\r\n entryPoint: C.G.TV_GUIDE,\r\n menuItemId: o\r\n })\r\n }\r\n }), [d, o, a, u]),\r\n pe = Object(r.useCallback)((function(e) {\r\n var t;\r\n if (null !== (t = e.children) && void 0 !== t && t.length) {\r\n var n = function(e, t) {\r\n var n;\r\n return null === (n = e.children) || void 0 === n ? void 0 : n.map((function(e) {\r\n var n, r, a, c;\r\n return {\r\n id: e.key,\r\n text: e.title,\r\n icon: {\r\n uri: (null === (n = e.channel) || void 0 === n || null === (r = n.logo) || void 0 === r || null === (a = r.color) || void 0 === a ? void 0 : a.uri) || \"\",\r\n alt: (null === (c = e.channel) || void 0 === c ? void 0 : c.title) || \"\"\r\n },\r\n onClick: function() {\r\n return t(e)\r\n }\r\n }\r\n }))\r\n }(e, je),\r\n r = _.a[\"buttons.watchOptions\"],\r\n a = _.a.modalSubTitleWatchOptions,\r\n c = [{\r\n id: \"modalButtonCancel\",\r\n text: _.a[\"modal.button.cancel\"],\r\n onClick: function() {\r\n K(!1)\r\n }\r\n }];\r\n X({\r\n options: n,\r\n title: r,\r\n subtitle: a,\r\n buttons: c\r\n }), K(!0)\r\n } else je(e)\r\n }), [je]);\r\n if (Object(r.useEffect)((function() {\r\n if (a && d) {\r\n var e = C.Pb.isBetweenInclusive(a.startDate, a.endDate, C.Pb.now()),\r\n t = (null === $ || void 0 === $ ? void 0 : $.id) === a.id,\r\n n = ne.map((function(e) {\r\n return Object(g.a)(Object(g.a)({}, e), {}, {\r\n text: e.title,\r\n onClick: function() {\r\n C.cb.isRecording(e) ? fe.runRecordingOption(e) : C.cb.isWatch(e) && pe(e)\r\n }\r\n })\r\n })),\r\n r = {\r\n key: \"programInfo\",\r\n text: _.a[\"buttons.info\"]\r\n };\r\n e && a.channelEpgId && d ? t || (r = Object(g.a)(Object(g.a)({}, r), {}, {\r\n onClick: function() {\r\n u.push({\r\n asset: d,\r\n state: {\r\n forceAutoPlay: !0\r\n },\r\n entryPoint: C.G.TV_GUIDE,\r\n menuItemId: o\r\n })\r\n }\r\n })) : r = Object(g.a)(Object(g.a)({}, r), {}, {\r\n onClick: function() {\r\n u.push({\r\n asset: a,\r\n entryPoint: C.G.TV_GUIDE,\r\n menuItemId: o\r\n })\r\n }\r\n }), j([].concat(Object(h.a)(n), [r]))\r\n }\r\n }), [u, d, a, null === $ || void 0 === $ ? void 0 : $.id, o, ne, fe, pe]), !a) return null;\r\n var Ee = R.a.UI.isAdult(a),\r\n Se = R.a.UI.getAssetParentalState(a) !== C.hb.SHOW;\r\n return Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(Te.a, {\r\n title: null === Z || void 0 === Z ? void 0 : Z.title,\r\n subtitle: null === Z || void 0 === Z ? void 0 : Z.subtitle,\r\n setIsShowing: K,\r\n isShowing: Y,\r\n bodyButtons: null === Z || void 0 === Z ? void 0 : Z.options,\r\n buttons: null === Z || void 0 === Z ? void 0 : Z.buttons,\r\n customClassName: \"watchtv-options\"\r\n }), Object(s.jsx)(Te.a, {\r\n title: _.a[\"modal.title.confirmation\"],\r\n message: null === se || void 0 === se ? void 0 : se.message,\r\n setIsShowing: de,\r\n isShowing: le,\r\n buttons: [{\r\n id: \"modalButtonConfirm\",\r\n text: _.a[\"modal.button.confirm\"],\r\n onClick: function() {\r\n return null === se || void 0 === se ? void 0 : se.callBack(se.option)\r\n }\r\n }, {\r\n id: \"modalButtonCancel\",\r\n text: _.a[\"modal.button.cancel\"],\r\n onClick: function() {\r\n return de(!1)\r\n }\r\n }]\r\n }), Object(s.jsx)(E, {\r\n ref: z,\r\n className: \"pi-bar \".concat(v ? \"closing\" : \"\"),\r\n modalMode: H,\r\n unlockBackgroundPageScroll: !H,\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"pi-bar-container\",\r\n id: \"ProgramInfoBar_container\",\r\n children: [Object(s.jsx)(\"div\", {\r\n className: \"pi-bar-image\",\r\n children: Object(s.jsx)(\"div\", {\r\n className: \"pi-bar-image-container\",\r\n children: Object(s.jsx)(Re.a, {\r\n src: !Ee && null !== a && void 0 !== a && null !== (t = a.images) && void 0 !== t && t.card ? null === a || void 0 === a || null === (n = a.images) || void 0 === n ? void 0 : n.card : x,\r\n bemModifier: \"programInfoBarPoster\"\r\n })\r\n }, a.id)\r\n }), Object(s.jsx)(\"div\", {\r\n className: \"pi-bar-button-container\",\r\n id: \"ProgramInfoBar_buttons\",\r\n children: Object(s.jsx)(\"div\", {\r\n id: \"ProgramInfoBar_button___close\",\r\n className: \"close-button\",\r\n onClick: function() {\r\n return m(!0)\r\n }\r\n })\r\n }), Object(s.jsxs)(\"div\", {\r\n className: \"pi-bar-details\",\r\n children: [Object(s.jsx)(\"h2\", {\r\n id: \"ProgramInfoBar_title\",\r\n className: \"no-margin text-elipsis one-line\",\r\n children: a.title\r\n }), Object(s.jsx)(y, {\r\n program: a\r\n }), a.synopsis && !Ee ? Object(s.jsx)(\"p\", {\r\n id: \"ProgramInfoBar_synopsis\",\r\n className: \"pi-bar-synopsis text-elipsis \".concat(H ? \"five-lines\" : \"two-lines\"),\r\n children: a.synopsis\r\n }) : null, Ee ? Object(s.jsx)(\"p\", {\r\n id: \"ProgramInfoBar_adultContent\",\r\n className: \"margin-top-10-imp\",\r\n children: _.a[\"programInfoBar.adultContent.description\"]\r\n }) : null, Se ? Object(s.jsx)(l, {\r\n badges: [{\r\n type: C.l.LOCK,\r\n icon: C.T.LOCK\r\n }],\r\n bemBlock: \"ProgramInfoBarBadges\"\r\n }) : null, !Ee && f.length && te && !ee ? Object(s.jsx)(i, {\r\n className: Se ? \"no-margin\" : \"\",\r\n data: f,\r\n small: H,\r\n bemBlock: \"ProgramInfoBarButtons\"\r\n }) : null]\r\n })]\r\n })\r\n })]\r\n })\r\n }\r\n var H = a.a.memo(G);\r\n\r\n function B(e) {\r\n var t, n, r = e.event,\r\n a = e.channel,\r\n c = r.startDate,\r\n i = c && C.Pb.isAfterNow(c) && C.Pb.toEpoch(c),\r\n o = i ? \"\".concat((null === r || void 0 === r ? void 0 : r.startTime) || \"\", \" \").concat(C.Pb.getShortWeekDay(i), \" \").concat(C.Pb.getDay(i), \" \").concat(C.Pb.getShortMonth(i)) : \"-\";\r\n return Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(\"h6\", {\r\n id: \"ProgrammeInfoDetails_durationTitle\",\r\n className: \"margin-top-22\",\r\n children: _.a[\"programInfo.metadata.duration\"]\r\n }), Object(s.jsx)(\"span\", {\r\n id: \"ProgrammeInfoDetails_duration\",\r\n children: null !== r && void 0 !== r && r.durationValue ? _.a.formatString(_.a[\"date.minutes\"], {\r\n duration: null === r || void 0 === r ? void 0 : r.durationValue\r\n }).toString() : \"-\"\r\n }), Object(s.jsx)(\"h6\", {\r\n id: \"ProgrammeInfoDetails_nextAiringTitle\",\r\n children: _.a[\"programInfo.metadata.nextairing\"]\r\n }), Object(s.jsx)(\"span\", {\r\n id: \"ProgrammeInfoDetails_nextAiring\",\r\n children: o\r\n }), Object(s.jsx)(\"h6\", {\r\n id: \"ProgrammeInfoDetails_channelTitle\",\r\n children: _.a[\"programInfo.metadata.channel\"]\r\n }), Object(s.jsx)(Re.a, {\r\n className: \"channel-logo\",\r\n src: (null === a || void 0 === a || null === (t = a.logo) || void 0 === t || null === (n = t.white) || void 0 === n ? void 0 : n.uri) || \"\",\r\n fallbackText: (null === a || void 0 === a ? void 0 : a.title) || \"-\",\r\n fallbackClass: null !== a && void 0 !== a && a.title ? \"fallback-text\" : \"\",\r\n showFallbackOnLoading: !0,\r\n bemModifier: \"eventDetailsLogo-\".concat(r.id)\r\n })]\r\n })\r\n }\r\n var V = n(130),\r\n W = n(129);\r\n\r\n function Y(e) {\r\n var t = e.liveEvent,\r\n n = e.tvEvent,\r\n r = e.onDemandEvent,\r\n a = r && (C.i.isSeries(r) || C.i.isEpisode(r)),\r\n c = C.i.isSpecialSeasonNumber((null === t || void 0 === t ? void 0 : t.seasonNumber) || (null === n || void 0 === n ? void 0 : n.seasonNumber) || (null === r || void 0 === r ? void 0 : r.seasonNumber)),\r\n i = !r || a ? function() {\r\n var e, t, n, r = arguments.length > 0 && void 0 !== arguments[0] && arguments[0],\r\n a = arguments.length > 1 ? arguments[1] : void 0,\r\n c = a.liveEvent,\r\n i = a.tvEvent,\r\n o = a.onDemandEvent,\r\n u = null === (e = c || i || o) || void 0 === e ? void 0 : e.seasonNumber,\r\n l = (null === (t = c || i || o) || void 0 === t ? void 0 : t.episodeName) || \"\",\r\n d = Object(s.jsx)(\"span\", {\r\n className: \"episode-name\",\r\n children: \"\".concat(l)\r\n });\r\n if (r || !u) return l ? d : null;\r\n var b = _.a.formatString(_.a[\"asset.seasonFormat\"], u).toString(),\r\n O = null === (n = c || i || o) || void 0 === n ? void 0 : n.episodeNumber;\r\n if (!O) return Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(\"span\", {\r\n children: \"\".concat(b)\r\n }), \"\\xa0\", d]\r\n });\r\n var f = _.a.formatString(_.a[\"asset.episodeFormat\"], O).toString();\r\n return Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(\"span\", {\r\n children: \"\".concat(b, \", \").concat(f)\r\n }), \"\\xa0\", d]\r\n })\r\n }(c, {\r\n liveEvent: t,\r\n tvEvent: n,\r\n onDemandEvent: r\r\n }) : null,\r\n o = (null === t || void 0 === t ? void 0 : t.parentalRating) || (null === n || void 0 === n ? void 0 : n.parentalRating) || (null === r || void 0 === r ? void 0 : r.parentalRating),\r\n u = Object(V.a)(t || n || r, !1),\r\n l = Object(W.a)(t || n || r);\r\n return Object(s.jsxs)(\"div\", {\r\n className: \"programme-info-header\",\r\n id: \"ProgrammeInfo_header\",\r\n children: [t && t.startTime && t.endTime ? Object(s.jsx)(\"h5\", {\r\n children: \"\".concat(t.startTime, \" - \").concat(t.endTime)\r\n }) : null, Object(s.jsx)(\"h2\", {\r\n id: \"ProgrammeInfo_title\",\r\n className: n || r ? \"spaced\" : \"\",\r\n children: u\r\n }), i && !l ? Object(s.jsx)(\"div\", {\r\n id: \"ProgrammeInfo_details\",\r\n className: \"program-details \".concat(n || r ? \"spaced\" : \"\"),\r\n children: i\r\n }) : null, o ? Object(s.jsx)(\"div\", {\r\n id: \"ProgrammeInfo_parentalControlLabel\",\r\n className: \"parental-control \".concat(n || r ? \"no-margin\" : \"\"),\r\n children: Object(s.jsx)(\"span\", {\r\n children: o\r\n })\r\n }) : null]\r\n })\r\n }\r\n\r\n function K(e) {\r\n var t = e.nextPrograms,\r\n n = t[2],\r\n r = Object(V.a)(t[0], !1),\r\n a = Object(V.a)(t[1], !1),\r\n c = Object(V.a)(n, !1);\r\n return Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(\"h6\", {\r\n id: \"ProgrammeInfoDetails_nextTitle\",\r\n children: _.a[\"watchtv.next\"]\r\n }), Object(s.jsx)(\"span\", {\r\n id: \"ProgrammeInfoDetails_next\",\r\n children: r\r\n }), Object(s.jsx)(\"h6\", {\r\n id: \"ProgrammeInfoDetails_thenTitle\",\r\n children: _.a[\"watchtv.then\"]\r\n }), Object(s.jsx)(\"span\", {\r\n id: \"ProgrammeInfoDetails_then\",\r\n children: a\r\n }), n && n.startTime && n.endTime ? Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(\"h6\", {\r\n id: \"ProgrammeInfoDetails_thirdTitle\",\r\n children: \"\".concat(n.startTime, \" - \").concat(n.endTime)\r\n }), Object(s.jsx)(\"span\", {\r\n id: \"ProgrammeInfoDetails_third\",\r\n children: c\r\n })]\r\n }) : null]\r\n })\r\n }\r\n var Q = n.p + \"static/media/vf-logo-brandmark.7459d1ff.svg\";\r\n\r\n function q(e) {\r\n var t, n = e.event,\r\n r = null === (t = n.metadata) || void 0 === t ? void 0 : t.year,\r\n a = Q,\r\n c = r ? _.a.formatString(_.a[\"programInfo.metadata.releaseDateValue\"], {\r\n country: n.country || \"\",\r\n year: r\r\n }).toString().trim() : \"-\";\r\n return Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(\"h6\", {\r\n id: \"ProgrammeInfoDetails_durationTitle\",\r\n className: \"margin-top-22\",\r\n children: _.a[\"programInfo.metadata.duration\"]\r\n }), Object(s.jsx)(\"span\", {\r\n id: \"ProgrammeInfoDetails_duration\",\r\n children: null !== n && void 0 !== n && n.durationValue ? _.a.formatString(_.a[\"date.minutes\"], {\r\n duration: null === n || void 0 === n ? void 0 : n.durationValue\r\n }).toString() : \"-\"\r\n }), Object(s.jsx)(\"h6\", {\r\n id: \"ProgrammeInfoDetails_releaseDateTitle\",\r\n children: _.a[\"programInfo.metadata.releaseDate\"]\r\n }), Object(s.jsxs)(\"span\", {\r\n id: \"ProgrammeInfoDetails_releaseDate\",\r\n children: [c, \" \"]\r\n }), Object(s.jsx)(\"h6\", {\r\n id: \"ProgrammeInfoDetails_providerTitle\",\r\n children: _.a[\"programInfo.metadata.provider\"]\r\n }), Object(s.jsx)(Re.a, {\r\n className: \"channel-logo\",\r\n src: a,\r\n bemModifier: \"eventDetailsLogo-\".concat(n.id)\r\n })]\r\n })\r\n }\r\n var Z = n(121);\r\n\r\n function X(e, t, n, r, a) {\r\n return e && t ? Object(s.jsx)(K, {\r\n nextPrograms: a || []\r\n }) : n ? Object(s.jsx)(B, {\r\n event: n,\r\n channel: e\r\n }) : r ? e && C.i.isTvAsset(r) ? Object(s.jsx)(B, {\r\n channel: e,\r\n event: r\r\n }) : Object(s.jsx)(q, {\r\n event: r\r\n }) : null\r\n }\r\n\r\n function z(e, t, n) {\r\n return e ? Object(s.jsx)(Y, {\r\n liveEvent: e\r\n }) : t ? Object(s.jsx)(Y, {\r\n tvEvent: t\r\n }) : Object(s.jsx)(Y, {\r\n onDemandEvent: n\r\n })\r\n }\r\n\r\n function J(e) {\r\n var t = e.ctx,\r\n n = e.channel,\r\n a = e.asset,\r\n c = e.actionButtons,\r\n o = void 0 === c ? [] : c,\r\n u = e.liveEventNextPrograms,\r\n d = Object(r.useState)(0),\r\n b = Object(I.a)(d, 2),\r\n O = b[0],\r\n f = b[1],\r\n j = Object(W.a)(a),\r\n p = Object(r.useCallback)((function() {\r\n return j ? _.a[\"asset.adult.content\"] : null !== a && void 0 !== a && a.synopsis ? null === a || void 0 === a ? void 0 : a.synopsis : _.a[\"watchtv.programInformationUnavailable\"]\r\n }), [null === a || void 0 === a ? void 0 : a.synopsis, j]);\r\n if (!a || void 0 === j) return Object(s.jsx)(s.Fragment, {});\r\n var E, S, v, m = Z.a.UI.getBadging(t, o[O]);\r\n return C.i.isEpg(a) && n && C.i.isChannel(n) && C.Qb.getRelativeTime(a) === C.Db.LIVE ? E = a : C.i.isVod(a) ? S = a : C.i.isTvAsset(a) && (v = a), Object(s.jsx)(\"div\", {\r\n className: \"programme-info\",\r\n id: \"ProgrammeInfo\",\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"programme-info-container component-inner \".concat(v || S ? \"fit\" : \"\"),\r\n children: [Object(s.jsxs)(\"div\", {\r\n className: \"event-details\",\r\n children: [z(E, v, S), Object(s.jsx)(\"p\", {\r\n id: \"ProgrammeInfo_synopsis\",\r\n className: \"episode-synopsis\",\r\n children: p()\r\n }), Object(s.jsx)(l, {\r\n className: \"pi-badges-group\",\r\n badges: m ? [m] : [],\r\n bemBlock: \"ProgrammeInfoBadges\"\r\n }), null !== o && void 0 !== o && o.length && !j ? Object(s.jsx)(i, {\r\n data: o,\r\n onMouseOver: f,\r\n bemBlock: \"ProgrammeInfoButtons\"\r\n }) : null]\r\n }), Object(s.jsx)(\"div\", {\r\n className: \"event-type-details\",\r\n children: X(n, E, v, S, u)\r\n })]\r\n })\r\n })\r\n }\r\n var $, ee = n.p + \"static/media/vf-logo.8a4d4d08.svg\",\r\n te = n(30),\r\n ne = n(42),\r\n re = n(16),\r\n ae = n(48),\r\n ce = n(26),\r\n se = n(57),\r\n ie = n(53);\r\n ! function(e) {\r\n e.TERMS_AND_CONDITIONS = \"Terms_And_Conditions\"\r\n }($ || ($ = {}));\r\n var oe = a.a.memo((function() {\r\n var e, t, n = (new Date).getFullYear(),\r\n a = Object(ne.g)(),\r\n c = Object(ne.h)(),\r\n i = Object(N.b)(),\r\n o = Object(N.c)(ae.b.isStartUpSuccess),\r\n u = Object(N.c)(ae.b.isAfterInitializingCredentials),\r\n l = Object(N.c)(C.C.Credentials.Selectors.isAuthenticated),\r\n d = Object(N.c)(C.C.Faqs.Selectors.getGdprData),\r\n b = (null === d || void 0 === d ? void 0 : d.documents) || {},\r\n O = b.notice,\r\n f = b.consent,\r\n j = Object(r.useState)(!1),\r\n p = Object(I.a)(j, 2),\r\n E = p[0],\r\n S = p[1],\r\n v = Object(r.useState)(!1),\r\n m = Object(I.a)(v, 2),\r\n h = m[0],\r\n g = m[1],\r\n x = Object(r.useState)(!1),\r\n A = Object(I.a)(x, 2),\r\n R = A[0],\r\n T = A[1],\r\n k = null === (e = ce.a.env) || void 0 === e || null === (t = e.ABOUT_LINKS) || void 0 === t ? void 0 : t.find((function(e) {\r\n return e.id.toLowerCase() === $.TERMS_AND_CONDITIONS.toLowerCase()\r\n }));\r\n return Object(s.jsx)(\"div\", {\r\n className: \"component footer-wrapper\",\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"component-inner footer\",\r\n children: [Object(s.jsxs)(\"div\", {\r\n className: \"footer-cols\",\r\n children: [l && o && Object(s.jsxs)(\"div\", {\r\n id: \"Footer_linkSection\",\r\n className: \"footer-link-section \".concat(E ? \"expanded\" : \"\"),\r\n children: [Object(s.jsx)(\"a\", {\r\n id: \"Footer_expandableLink\",\r\n className: \"footer-expandable-link\",\r\n onClick: function() {\r\n return S((function(e) {\r\n return !e\r\n }))\r\n },\r\n children: Object(s.jsx)(\"h3\", {\r\n children: _.a[\"footer.settings.title\"]\r\n })\r\n }), Object(s.jsx)(\"ul\", {\r\n id: \"Footer_collapsedLink\",\r\n className: \"footer-links-collapsed\",\r\n children: Object(s.jsx)(te.b, {\r\n id: \"Footer_button___parentalControl\",\r\n to: re.b.SETTINGS_PARENTAL,\r\n children: Object(s.jsx)(\"li\", {\r\n children: Object(s.jsx)(\"span\", {\r\n className: \"text-link\",\r\n children: _.a[\"footer.settings.parentalControl\"]\r\n })\r\n })\r\n })\r\n })]\r\n }), u ? Object(s.jsxs)(\"div\", {\r\n className: \"footer-link-section \".concat(h ? \"expanded\" : \"\"),\r\n children: [Object(s.jsx)(\"a\", {\r\n className: \"footer-expandable-link\",\r\n onClick: function() {\r\n return g((function(e) {\r\n return !e\r\n }))\r\n },\r\n children: Object(s.jsx)(\"h3\", {\r\n children: _.a[\"footer.account.title\"]\r\n })\r\n }), Object(s.jsx)(\"ul\", {\r\n id: \"Footer_buttonList\",\r\n className: \"footer-links-collapsed\",\r\n children: l ? Object(s.jsx)(\"a\", {\r\n id: \"Footer_button___signOut\",\r\n onClick: function() {\r\n i(C.C.Credentials.Creators.logout())\r\n },\r\n children: Object(s.jsx)(\"li\", {\r\n children: _.a[\"menu.profile.signOut\"]\r\n })\r\n }) : Object(s.jsx)(te.b, {\r\n id: \"Footer_button___signIn\",\r\n to: re.d.SIGNIN,\r\n children: Object(s.jsx)(\"li\", {\r\n children: _.a[\"menu.profile.signIn\"]\r\n })\r\n })\r\n })]\r\n }) : Object(s.jsx)(s.Fragment, {}), Object(s.jsxs)(\"div\", {\r\n className: \"footer-link-section \".concat(R ? \"expanded\" : \"\"),\r\n children: [Object(s.jsx)(\"a\", {\r\n className: \"footer-expandable-link\",\r\n onClick: function() {\r\n return T((function(e) {\r\n return !e\r\n }))\r\n },\r\n children: Object(s.jsx)(\"h3\", {\r\n children: _.a[\"footer.about.title\"]\r\n })\r\n }), Object(s.jsxs)(\"ul\", {\r\n id: \"Footer_privacy\",\r\n className: \"footer-links-collapsed\",\r\n children: [O && Object(s.jsx)(te.b, {\r\n id: \"Footer_button___privacyNotice\",\r\n to: re.c.PRIVACY_NOTICE,\r\n children: Object(s.jsx)(\"li\", {\r\n children: Object(s.jsx)(\"span\", {\r\n className: \"text-link\",\r\n children: _.a[\"footer.about.privacyNotice\"]\r\n })\r\n })\r\n }), f && Object(s.jsx)(te.b, {\r\n id: \"Footer_button___privacyConsent\",\r\n to: re.c.PRIVACY_CONSENT,\r\n children: Object(s.jsx)(\"li\", {\r\n children: Object(s.jsx)(\"span\", {\r\n className: \"text-link\",\r\n children: _.a[\"footer.about.privacyConsent\"]\r\n })\r\n })\r\n }), k && Object(s.jsx)(\"a\", {\r\n id: \"Footer_button___termsAndConditions\",\r\n onClick: function() {\r\n var e = ie.a.WATCH_TV;\r\n if (c.pathname) {\r\n var t = c.pathname.substring(1);\r\n Object.values(ie.a).includes(t) && (e = t)\r\n }\r\n a.push(se.a.getRouteWithDynamicValues(re.c.ABOUT_ELEMENT, [e, $.TERMS_AND_CONDITIONS.toLowerCase()]))\r\n },\r\n children: Object(s.jsx)(\"li\", {\r\n children: Object(s.jsx)(\"span\", {\r\n className: \"text-link\",\r\n children: _.a[\"footer.about.termsAndConditions\"]\r\n })\r\n })\r\n })]\r\n })]\r\n })]\r\n }), Object(s.jsxs)(\"div\", {\r\n className: \"footer-company-info\",\r\n id: \"Footer_companyInfo\",\r\n children: [Object(s.jsx)(\"div\", {\r\n className: \"vodafone-logo\",\r\n children: Object(s.jsx)(\"img\", {\r\n id: \"Footer_companyLogo\",\r\n className: \"vf-logo-full\",\r\n src: ee,\r\n alt: \"vodafone logo\"\r\n })\r\n }), Object(s.jsx)(\"p\", {\r\n id: \"Footer_companyInfo___0\",\r\n className: \"company-info\",\r\n children: _.a.formatString(_.a[\"company.info.line1\"], {\r\n year: n\r\n }).toString()\r\n }), Object(s.jsx)(\"p\", {\r\n id: \"Footer_companyInfo___1\",\r\n className: \"company-info\",\r\n children: _.a[\"company.info.line2\"]\r\n }), Object(s.jsx)(\"p\", {\r\n id: \"Footer_companyInfo___2\",\r\n className: \"company-info\",\r\n children: _.a[\"company.info.line3\"]\r\n })]\r\n })]\r\n })\r\n })\r\n })),\r\n ue = (n(203), n(109)),\r\n le = a.a.memo((function() {\r\n var e = Object(N.c)(ue.a.getProgressPercentage);\r\n return Object(s.jsx)(\"div\", {\r\n id: \"LayoutProgressBar\",\r\n className: \"layout-progress-bar \".concat(e >= 100 || 0 === e ? \"no-opacity\" : \"\"),\r\n style: {\r\n width: \"\".concat(e, \"%\")\r\n }\r\n })\r\n })),\r\n de = n.p + \"static/media/vf-logo-icon-red.525f5781.svg\";\r\n\r\n function be(e) {\r\n var t = e.active,\r\n n = e.searchDropdownVisible,\r\n a = e.dropdownVisible,\r\n c = e.onMenuActiveHandler,\r\n i = e.setDropdownVisible,\r\n o = Object(ne.h)(),\r\n u = Object(r.useState)(!1),\r\n l = Object(I.a)(u, 2),\r\n d = l[0],\r\n b = l[1],\r\n O = Object(r.useRef)(null),\r\n f = Object(A.a)(O),\r\n j = Object(r.useState)(0),\r\n p = Object(I.a)(j, 2),\r\n E = p[0],\r\n S = p[1],\r\n v = Object(r.useState)(0),\r\n m = Object(I.a)(v, 2),\r\n h = m[0],\r\n g = m[1],\r\n C = Object(r.useRef)(null),\r\n x = Object(A.a)(C),\r\n R = Math.round(x.width),\r\n T = Object(r.useRef)(null),\r\n N = Object(A.a)(T),\r\n k = Math.round(N.width),\r\n L = R + 31,\r\n P = Object(r.useRef)(null),\r\n D = Object(A.a)(P),\r\n y = Math.round(D.width),\r\n w = L + k + 31;\r\n Object(r.useEffect)((function() {\r\n return o.pathname.includes(re.b.MYTV) ? (g(0), S(R)) : o.pathname.includes(re.b.WATCHTV) ? (g(L), S(k)) : o.pathname.includes(re.b.ONDEMAND) ? (g(w), S(y)) : g(-1),\r\n function() {\r\n g(0)\r\n }\r\n }), [f, h, o.pathname, R, k, y, L, w]);\r\n var U = function(e) {\r\n return t ? e : \"#\"\r\n },\r\n M = a || n;\r\n return Object(s.jsxs)(\"div\", {\r\n className: \"header-navigation \".concat(t ? \"authenticated\" : \"\", \" \").concat(d ? \"expanded\" : \"\"),\r\n onClick: function() {\r\n b((function(e) {\r\n return !e\r\n }))\r\n },\r\n children: [Object(s.jsxs)(\"div\", {\r\n className: \"menu-items-list\",\r\n ref: O,\r\n children: [Object(s.jsx)(\"div\", {\r\n ref: C,\r\n children: Object(s.jsx)(te.c, {\r\n id: \"Header_button___myTv\",\r\n className: \"context-switch \".concat(t ? \"authenticated\" : \"\"),\r\n activeClassName: \"\".concat(M ? \"\" : \"header-navigation-active\"),\r\n isActive: function() {\r\n return o.pathname.includes(re.b.MYTV)\r\n },\r\n to: U(re.b.MYTV),\r\n onClick: function() {\r\n c(), i(!1)\r\n },\r\n children: Object(s.jsx)(\"h4\", {\r\n children: _.a[\"menu.myTv\"]\r\n })\r\n })\r\n }), Object(s.jsx)(\"div\", {\r\n ref: T,\r\n children: Object(s.jsx)(te.c, {\r\n id: \"Header_button___watchTv\",\r\n className: \"context-switch \".concat(t ? \"authenticated\" : \"\"),\r\n activeClassName: \"\".concat(M ? \"\" : \"header-navigation-active\"),\r\n isActive: function() {\r\n return o.pathname.includes(re.b.WATCHTV)\r\n },\r\n to: U(re.b.WATCHTV),\r\n onClick: function() {\r\n c(), i(!1)\r\n },\r\n children: Object(s.jsx)(\"h4\", {\r\n children: _.a[\"menu.watchTv\"]\r\n })\r\n })\r\n }), Object(s.jsx)(\"div\", {\r\n ref: P,\r\n children: Object(s.jsx)(te.c, {\r\n id: \"Header_button___onDemand\",\r\n className: \"context-switch \".concat(t ? \"authenticated\" : \"\"),\r\n activeClassName: \"\".concat(M ? \"\" : \"header-navigation-active\"),\r\n isActive: function() {\r\n return o.pathname.includes(re.b.ONDEMAND)\r\n },\r\n to: U(re.b.ONDEMAND),\r\n onClick: function() {\r\n c(), i(!1)\r\n },\r\n children: Object(s.jsx)(\"h4\", {\r\n children: _.a[\"menu.onDemand\"]\r\n })\r\n })\r\n }), Object(s.jsx)(\"div\", {\r\n style: {\r\n transform: \"translateX(\".concat(Math.round(h), \"px)\"),\r\n width: E\r\n },\r\n className: \"header-navigation-bar \".concat(h >= 0 ? \"header-navigation-active\" : \"\", \"\\n \").concat(t ? \"authenticated\" : \"\", \"\\n \").concat(M ? \"disabled\" : \"\")\r\n })]\r\n }), Object(s.jsx)(\"div\", {\r\n className: \"dropdown-chevron context-switch \".concat(t ? \"header-chevron\" : \"\")\r\n })]\r\n })\r\n }\r\n\r\n function Oe(e) {\r\n var t = e.profiles,\r\n n = e.selectedProfileId,\r\n r = e.maxUsers,\r\n a = e.handleSelectedProfile,\r\n c = e.handleSignOut,\r\n i = e.setDropdownVisible,\r\n o = Object(ne.g)(),\r\n u = Object(N.c)(C.C.Faqs.Selectors.getGdprData),\r\n l = (null === u || void 0 === u ? void 0 : u.documents) || {},\r\n d = l.notice,\r\n b = l.consent;\r\n return Object(s.jsx)(\"div\", {\r\n className: \"main-menu\",\r\n children: Object(s.jsx)(\"div\", {\r\n className: \"profile-dropdown active\",\r\n children: Object(s.jsxs)(\"ul\", {\r\n className: \"menu-item-list thin-scroolbar\",\r\n children: [Object(s.jsx)(\"li\", {\r\n className: \"profileShade profile-title\",\r\n children: Object(s.jsx)(\"span\", {\r\n children: _.a[\"menu.profile.switchProfiles\"]\r\n })\r\n }), Object(s.jsxs)(\"ul\", {\r\n className: \"thin-scroolbar profiles-list\",\r\n children: [0 === t.length && Object(s.jsx)(\"li\", {\r\n className: \"profileShade error-message\",\r\n children: Object(s.jsx)(\"span\", {\r\n children: _.a.programInfoErrorProfiles\r\n })\r\n }), null === t || void 0 === t ? void 0 : t.map((function(e) {\r\n return Object(s.jsxs)(\"li\", {\r\n id: \"HeaderMainMenu_profileContainer___\".concat(e.id),\r\n className: \"profileShade \".concat(n === e.id ? \"activeprofile\" : \"\"),\r\n children: [Object(s.jsxs)(\"a\", {\r\n id: \"HeaderMainMenu_profile___\".concat(e.id),\r\n onClick: function() {\r\n return a(e.id)\r\n },\r\n className: \"profileButton \".concat(n === e.id ? \"isSelectedProfile\" : \"\"),\r\n children: [Object(s.jsx)(De, {\r\n profileId: e.id,\r\n name: e.role === C.Eb.DEFAULT ? _.a[\"profiles.household.name\"] : e.firstName || \"\"\r\n }), Object(s.jsx)(\"span\", {\r\n className: \"label\",\r\n children: e.role === C.Eb.DEFAULT ? _.a[\"profiles.household.name\"] : e.firstName || \"\"\r\n })]\r\n }), e.role !== C.Eb.DEFAULT && n === e.id && Object(s.jsx)(\"a\", {\r\n id: \"HeaderMainMenu_editProfile\",\r\n className: \"editButton\",\r\n onClick: function() {\r\n i(!1), o.push(se.a.getRouteWithDynamicValues(re.b.SETTINGS_PROFILES_EDIT, [e.id]))\r\n },\r\n children: Object(s.jsx)(\"span\", {\r\n className: \"editButton-text\",\r\n children: _.a[\"menu.profile.edit\"]\r\n })\r\n })]\r\n }, e.id)\r\n })), t.length < r && Object(s.jsx)(\"li\", {\r\n className: \"profileShade\",\r\n children: Object(s.jsxs)(\"a\", {\r\n id: \"HeaderMainMenu_addProfile\",\r\n className: \"profileButton\",\r\n onClick: function() {\r\n o.push(re.b.SETTINGS_PROFILES_ADD), i(!1)\r\n },\r\n children: [Object(s.jsx)(\"span\", {\r\n className: \"avatar newProfile\"\r\n }), Object(s.jsx)(\"span\", {\r\n className: \"label\",\r\n children: _.a[\"profiles.addnewprofile\"]\r\n })]\r\n })\r\n })]\r\n }), Object(s.jsx)(\"li\", {\r\n className: \"profileShade\",\r\n children: Object(s.jsx)(te.b, {\r\n id: \"HeaderMainMenu_settings\",\r\n to: re.b.SETTINGS,\r\n onClick: function() {\r\n return i(!1)\r\n },\r\n children: Object(s.jsx)(\"span\", {\r\n children: _.a[\"menu.profile.settings\"]\r\n })\r\n })\r\n }), Object(s.jsx)(\"li\", {\r\n className: \"profileShade\",\r\n children: Object(s.jsx)(te.b, {\r\n id: \"HeaderMainMenu_privacy\",\r\n to: re.c.PRIVACY,\r\n onClick: function() {\r\n return i(!1)\r\n },\r\n children: Object(s.jsx)(\"span\", {\r\n children: function() {\r\n var e = _.a[\"menu.privacy\"];\r\n return d && !b && (e = _.a[\"menu.privacyNotice\"]), b && !d && (e = _.a[\"footer.about.privacyConsent\"]), e\r\n }()\r\n })\r\n })\r\n }), Object(s.jsx)(\"li\", {\r\n className: \"profileShade\",\r\n children: Object(s.jsx)(te.b, {\r\n id: \"HeaderMainMenu__helpAndInfo\",\r\n to: re.c.HELP,\r\n onClick: function() {\r\n return i(!1)\r\n },\r\n children: Object(s.jsx)(\"span\", {\r\n children: _.a[\"menu.profile.helpAndInfo\"]\r\n })\r\n })\r\n }), Object(s.jsx)(\"li\", {\r\n className: \"profileShade\",\r\n children: Object(s.jsx)(\"a\", {\r\n onClick: c,\r\n id: \"HeaderMainMenu_signOut\",\r\n children: Object(s.jsx)(\"span\", {\r\n children: _.a[\"menu.profile.signOut\"]\r\n })\r\n })\r\n })]\r\n })\r\n })\r\n })\r\n }\r\n var fe, je = n(56),\r\n pe = n(23);\r\n ! function(e) {\r\n e.ScrollUp = \"scroll-up\", e.ScrollDown = \"scroll-down\", e.NoScroll = \"no-scroll\"\r\n }(fe || (fe = {}));\r\n var Ee = a.a.memo((function(e) {\r\n var t = e.isSearchDropdownVisible,\r\n n = e.onSearchClickHandler,\r\n a = e.onMenuActiveHandler,\r\n c = Object(ne.h)(),\r\n i = Object(N.b)(),\r\n o = Object(ne.g)(),\r\n u = Object(N.c)(ae.b.status),\r\n l = Object(N.c)(ae.b.isStartUpSuccess),\r\n d = Object(N.c)(C.C.Credentials.Selectors.getUserId),\r\n b = Object(N.c)(C.C.Household.Selectors.data.getUsers),\r\n O = Object(N.c)(C.C.Household.Selectors.data.usersLimit),\r\n f = Object(N.c)(C.C.Household.Selectors.data.getIsConverged),\r\n j = Object(r.useState)([]),\r\n p = Object(I.a)(j, 2),\r\n E = p[0],\r\n S = p[1],\r\n v = Object(r.useState)(!1),\r\n m = Object(I.a)(v, 2),\r\n h = m[0],\r\n g = m[1],\r\n x = Object(r.useState)(fe.NoScroll),\r\n A = Object(I.a)(x, 2),\r\n _ = A[0],\r\n R = A[1];\r\n Object(r.useEffect)((function() {\r\n var e = window.pageYOffset,\r\n t = function() {\r\n var t = window.pageYOffset;\r\n t < pe.a.HEADER_TOP_OFFSET_TRIGGER_TO_FADE ? R(fe.NoScroll) : (R(t > e ? fe.ScrollDown : fe.ScrollUp), g(!1)), e = t > pe.a.HEADER_INIT_TOP_OFFSET ? t : pe.a.HEADER_INIT_TOP_OFFSET\r\n },\r\n n = function() {\r\n window.requestAnimationFrame(t)\r\n };\r\n return window.addEventListener(\"scroll\", n),\r\n function() {\r\n return window.removeEventListener(\"scroll\", n)\r\n }\r\n }), [_]), Object(r.useEffect)((function() {\r\n var e = C.z.getSelectableUsers(f, b).sort((function(e, t) {\r\n return e.firstName && e.role === C.Eb.NORMAL && t.firstName && t.role === C.Eb.NORMAL ? e.firstName.localeCompare(t.firstName) : 0\r\n }));\r\n S(e)\r\n }), [f, b]);\r\n Object(r.useEffect)((function() {\r\n t || i(je.a.searchReset()), !t && (window.location.href.includes(re.b.SETTINGS) || window.location.href.includes(re.c.HELP) || window.location.href.includes(re.c.PRIVACY)) && window.scrollTo(0, 0)\r\n }), [t, c.pathname, i]);\r\n return Object(s.jsx)(\"div\", {\r\n className: \"component header-component \".concat(_, \" \").concat(t ? \"searchDropdownVisible\" : \"\"),\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"header-inner\",\r\n children: [Object(s.jsx)(\"div\", {\r\n className: \"vodafone-logo\",\r\n children: Object(s.jsx)(te.c, {\r\n id: \"Header_button___logo\",\r\n to: function() {\r\n switch (u) {\r\n case ae.c.SUCCESS:\r\n return re.b.WATCHTV;\r\n case ae.c.WAITING_UI_USER_SWITCHING:\r\n return re.b.PROFILES_LIST;\r\n default:\r\n return \"#\"\r\n }\r\n }(),\r\n children: Object(s.jsx)(\"div\", {\r\n onClick: function() {\r\n return n(!1)\r\n },\r\n children: Object(s.jsx)(\"img\", {\r\n id: \"Header_ButtonImage___logoFull\",\r\n className: \"vf-logo-full\",\r\n src: de,\r\n alt: \"vodafone logo\"\r\n })\r\n })\r\n })\r\n }), Object(s.jsx)(be, {\r\n active: l,\r\n searchDropdownVisible: t,\r\n dropdownVisible: h,\r\n onMenuActiveHandler: a,\r\n setDropdownVisible: g\r\n }), Object(s.jsx)(\"div\", {\r\n className: \"header-search-profile\",\r\n children: l && Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(\"a\", {\r\n id: \"Header_button___search\",\r\n className: \"header-search-icon \".concat(t ? \"active\" : \"\"),\r\n onClick: function() {\r\n l && (n(!t), g(!1))\r\n }\r\n }), Object(s.jsx)(\"a\", {\r\n id: \"Header_button___profile\",\r\n className: \"header-profile-icon \".concat(h ? \"active\" : \"\"),\r\n onClick: function() {\r\n l && (g((function(e) {\r\n return !e\r\n })), n(!1))\r\n }\r\n }), h && Object(s.jsx)(Oe, {\r\n selectedProfileId: d,\r\n maxUsers: O,\r\n profiles: E,\r\n handleSelectedProfile: function(e) {\r\n g((function(e) {\r\n return !e\r\n })), n(!1), i(C.C.Credentials.Creators.switchUser(e, !0)), o.replace(re.b.WATCHTV)\r\n },\r\n handleSignOut: function() {\r\n n(!1), g(!1), i(C.C.Credentials.Creators.logout())\r\n },\r\n setDropdownVisible: g\r\n })]\r\n })\r\n })]\r\n })\r\n })\r\n })),\r\n Se = n(6),\r\n ve = function(e) {\r\n var t;\r\n return (t = {}, Object(Se.a)(t, ie.a.MY_TV, {\r\n title: _.a[\"mytv.mainContentTitle\"],\r\n slogan: _.a[\"mytv.slogan\"]\r\n }), Object(Se.a)(t, ie.a.WATCH_TV, {\r\n title: _.a[\"watchtv.notLoggedViewMiddleMessage\"],\r\n slogan: _.a[\"watchtv.notLoggedViewTopMessage\"]\r\n }), Object(Se.a)(t, ie.a.ONDEMAND, {\r\n title: _.a[\"menu.onDemand\"]\r\n }), t)[e]\r\n };\r\n var me = function(e) {\r\n var t = e.section,\r\n n = e.actionButtons,\r\n r = ve(t),\r\n a = _.a[\"welcome.text\"];\r\n return Object(s.jsx)(\"div\", {\r\n className: \"hero-wrapper\",\r\n id: \"HomeHero_wrapper\",\r\n children: Object(s.jsx)(\"div\", {\r\n className: \"hero-overlay hero-text hero-centered\",\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"inner\",\r\n children: [Object(s.jsx)(\"p\", {\r\n id: \"HomeHero_slogan\",\r\n className: \"top-message\",\r\n children: r.slogan\r\n }), Object(s.jsx)(\"h1\", {\r\n id: \"HomeHero_title\",\r\n children: r.title\r\n }), a ? Object(s.jsx)(\"p\", {\r\n id: \"HomeHero_message\",\r\n className: \"bottom-message\",\r\n children: a\r\n }) : Object(s.jsx)(s.Fragment, {}), n ? Object(s.jsx)(i, {\r\n data: n,\r\n bemBlock: \"HomeHeroButtons\"\r\n }) : null]\r\n })\r\n })\r\n })\r\n };\r\n\r\n function he(e) {\r\n var t = e.className,\r\n n = void 0 === t ? \"\" : t,\r\n r = e.onClick,\r\n a = e.backLabel,\r\n c = e.backUrl,\r\n o = e.title,\r\n u = e.subtitle,\r\n d = e.description,\r\n b = e.placeholder,\r\n O = e.badges,\r\n f = e.actionButtons,\r\n j = Object(ne.g)(),\r\n p = O && O.length;\r\n return Object(s.jsx)(\"div\", {\r\n className: \"hero-wrapper component-inner \".concat(r ? \"cursor-pointer\" : \"\", \" \").concat(n),\r\n onClick: r,\r\n id: \"SectionHero_wrapper\",\r\n children: Object(s.jsx)(\"div\", {\r\n className: \"hero-text hero-left\",\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"inner\",\r\n children: [a ? Object(s.jsx)(te.b, {\r\n id: \"SectionHero_button___back\",\r\n className: \"hero-link-back\",\r\n to: c || \"#\",\r\n onClick: c ? void 0 : j.goBack,\r\n children: a\r\n }) : null, u ? Object(s.jsx)(\"h3\", {\r\n id: \"SectionHero_subtitle\",\r\n children: u\r\n }) : null, Object(s.jsx)(\"h1\", {\r\n id: \"SectionHero_title\",\r\n children: o\r\n }), d ? Object(s.jsx)(\"p\", {\r\n id: \"SectionHero_description\",\r\n className: \"no-margin-bottom\",\r\n children: d\r\n }) : null, Object(s.jsx)(\"p\", {\r\n className: \"hero-placeholder \".concat(b || !b && !p ? \"no-margin-bottom\" : \"\"),\r\n children: b\r\n }), p ? Object(s.jsx)(l, {\r\n className: \"light bold centered\",\r\n badges: O,\r\n bemBlock: \"SectionHeroBadges\"\r\n }) : null, f ? Object(s.jsx)(i, {\r\n bemBlock: \"SectionHeroButtons\",\r\n className: \"\".concat(p ? \"margin-top-8\" : d ? \"\" : \"no-margin-top\"),\r\n data: f\r\n }) : null]\r\n })\r\n })\r\n })\r\n }\r\n var ge, Ie = n(131),\r\n Ce = (ge = {}, Object(Se.a)(ge, ie.a.MY_TV, ie.a.MY_TV), Object(Se.a)(ge, ie.a.WATCH_TV, ie.a.WATCH_TV), Object(Se.a)(ge, ie.a.ONDEMAND, ie.a.ONDEMAND), ge);\r\n\r\n function xe(e) {\r\n var t = e.className,\r\n n = e.section,\r\n r = e.toAuthenticate,\r\n a = void 0 !== r && r,\r\n c = e.onClick,\r\n i = e.backLabel,\r\n o = e.backUrl,\r\n u = e.title,\r\n l = e.subtitle,\r\n d = e.description,\r\n b = e.placeholder,\r\n O = e.badges,\r\n f = e.actionButtons;\r\n return a && n && f ? Object(s.jsx)(me, {\r\n section: Ce[n] ? n : ie.a.WATCH_TV,\r\n actionButtons: f\r\n }) : Object(s.jsx)(he, {\r\n className: t,\r\n onClick: c,\r\n backLabel: i,\r\n backUrl: o,\r\n title: u,\r\n subtitle: l,\r\n description: d,\r\n placeholder: b,\r\n badges: O,\r\n actionButtons: f\r\n })\r\n }\r\n\r\n function Ae(e) {\r\n var t = e.className,\r\n n = e.section,\r\n r = e.backgroundImage,\r\n a = e.backgroundVideo,\r\n c = e.toAuthenticate,\r\n i = e.logo,\r\n o = e.onClick,\r\n u = e.backLabel,\r\n l = e.backUrl,\r\n d = e.title,\r\n b = e.subtitle,\r\n O = e.description,\r\n f = e.placeholder,\r\n j = e.badges,\r\n p = e.actionButtons;\r\n return Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(\"div\", {\r\n className: \"\".concat(o ? \"cursor-pointer\" : \"\"),\r\n onClick: o,\r\n children: Object(s.jsx)(Ie.a, {\r\n backgroundImage: r,\r\n backgroundVideo: a\r\n })\r\n }), i ? Object(s.jsx)(Re.a, {\r\n className: \"hero-logo-container\",\r\n src: i,\r\n bemModifier: \"heroLogo\"\r\n }) : null, xe({\r\n className: t,\r\n section: n,\r\n toAuthenticate: c,\r\n onClick: o,\r\n backLabel: u,\r\n backUrl: l,\r\n title: d,\r\n subtitle: b,\r\n description: O,\r\n placeholder: f,\r\n badges: j,\r\n actionButtons: p\r\n })]\r\n })\r\n }\r\n var _e = a.a.memo(Ae),\r\n Re = n(147),\r\n Te = n(151),\r\n Ne = function(e) {\r\n var t = [],\r\n n = e.trim().split(\" \");\r\n return 1 === n.length ? t.push(n[0].charAt(0)) : n.length > 1 && (t.push(n[0].charAt(0)), t.push(n[n.length - 1].charAt(0))), t.join(\"\")\r\n },\r\n ke = [{\r\n ascii: [0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128, 136, 144, 152, 160, 168, 176, 184, 192, 200, 208, 216, 224, 232, 240, 248],\r\n colour: \"#FECB00\"\r\n }, {\r\n ascii: [1, 9, 17, 25, 33, 41, 49, 57, 65, 73, 81, 89, 97, 105, 113, 121, 129, 137, 145, 153, 161, 169, 177, 185, 193, 201, 209, 217, 225, 233, 241, 249],\r\n colour: \"#E60000\"\r\n }, {\r\n ascii: [2, 10, 18, 26, 34, 42, 50, 58, 66, 74, 82, 90, 98, 106, 114, 122, 130, 138, 146, 154, 162, 170, 178, 186, 194, 202, 210, 218, 226, 234, 242, 250],\r\n colour: \"#9C2AA0\"\r\n }, {\r\n ascii: [3, 11, 19, 27, 35, 43, 51, 59, 67, 75, 83, 91, 99, 107, 115, 123, 131, 139, 147, 155, 163, 171, 179, 187, 195, 203, 211, 219, 227, 235, 243, 251],\r\n colour: \"#007C92\"\r\n }, {\r\n ascii: [4, 12, 20, 28, 36, 44, 52, 60, 68, 76, 84, 92, 100, 108, 116, 124, 132, 140, 148, 156, 164, 172, 180, 188, 196, 204, 212, 220, 228, 236, 244, 252],\r\n colour: \"#FF0091\"\r\n }, {\r\n ascii: [5, 13, 21, 29, 37, 45, 53, 61, 69, 77, 85, 93, 101, 109, 117, 125, 133, 141, 149, 157, 165, 173, 181, 189, 197, 205, 213, 221, 229, 237, 245, 253],\r\n colour: \"#A8B400\"\r\n }, {\r\n ascii: [6, 14, 22, 30, 38, 46, 54, 62, 70, 78, 86, 94, 102, 110, 118, 126, 134, 142, 150, 158, 166, 174, 182, 190, 198, 206, 214, 222, 230, 238, 246, 254],\r\n colour: \"#EB9800\"\r\n }, {\r\n ascii: [7, 15, 23, 31, 39, 47, 55, 63, 71, 79, 87, 95, 103, 111, 119, 127, 135, 143, 151, 159, 167, 175, 183, 191, 199, 207, 215, 223, 231, 239, 247, 255],\r\n colour: \"#00B0CA\"\r\n }],\r\n Le = function(e) {\r\n for (var t = {\r\n groupIndex: 0,\r\n groupColour: \"\"\r\n }, n = 0; n < ke.length; n += 1)\r\n if (ke[n].ascii.indexOf(e) > -1) {\r\n t.groupIndex = n, t.groupColour = ke[n].colour;\r\n break\r\n }\r\n return t\r\n },\r\n Pe = function(e) {\r\n var t = e;\r\n return t >= ke.length && (t = 0), t\r\n };\r\n\r\n function De(e) {\r\n var t = e.profileId,\r\n n = e.name,\r\n r = e.className,\r\n a = function(e) {\r\n var t, n, r, a = {\r\n firstColour: ke[0].colour,\r\n secondColour: ke[1].colour\r\n },\r\n c = Ne(e);\r\n return 1 === c.length ? (t = Le(c.charCodeAt(0)), Object.entries({}).toString() !== Object.entries(t).toString() && (a.firstColour = t.groupColour, 1 === e.length ? (r = Pe(t.groupIndex + 1), a.secondColour = ke[r].colour) : e.length > 1 && (n = Le(e[1].charCodeAt(0)), Object.entries({}).toString() !== Object.entries(n).toString() ? a.secondColour = ke[n.groupIndex].colour : (r = Pe(t.groupIndex + 1), a.secondColour = ke[r].colour)))) : 2 === c.length && (t = Le(c.charCodeAt(0)), n = Le(c.charCodeAt(1)), Object.entries(t).toString() !== Object.entries({}).toString() && Object.entries({}).toString() !== Object.entries(n).toString() && (a.firstColour = t.groupColour, a.secondColour = ke[n.groupIndex].colour)), a\r\n }(n);\r\n return Object(s.jsx)(\"span\", {\r\n id: \"ProfileAvatar___\".concat(t),\r\n className: \"avatar \".concat(r || \"\"),\r\n style: {\r\n background: \"linear-gradient(\".concat(a.firstColour, \", \").concat(a.secondColour, \")\")\r\n },\r\n children: Ne(n)\r\n })\r\n }\r\n var ye = n(170);\r\n\r\n function we(e, t, n, r, a) {\r\n return n ? r ? Object(s.jsx)(\"h3\", {\r\n id: \"SimpleHeader_button___back\",\r\n children: Object(s.jsx)(te.b, {\r\n to: r,\r\n className: \"\".concat(t ? \"hide-back-icon\" : \"show-back-icon\"),\r\n children: Object(s.jsx)(s.Fragment, {\r\n children: n\r\n })\r\n })\r\n }) : Object(s.jsx)(\"h3\", {\r\n id: \"SimpleHeader_button___back\",\r\n children: Object(s.jsx)(\"a\", {\r\n className: \"\".concat(t ? \"hide-back-icon\" : \"show-back-icon\"),\r\n onClick: a || e.goBack,\r\n children: n\r\n })\r\n }) : null\r\n }\r\n\r\n function Ue(e) {\r\n var t = e.subtitle,\r\n n = e.backLabel,\r\n r = e.backUrl,\r\n a = e.onBack,\r\n c = e.showBrandLogo,\r\n i = e.hideBackIcon,\r\n o = Object(ne.g)(),\r\n u = i || !1;\r\n return Object(s.jsx)(\"div\", {\r\n className: \"component no-background simple-header-container\",\r\n id: \"SimpleHeader_container\",\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"component-inner\",\r\n children: [Object(s.jsx)(\"div\", {\r\n className: \"header-auth-centered\",\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"inner\",\r\n children: [we(o, u, n, r, a), Object(s.jsx)(\"h1\", {\r\n id: \"SimpleHeader_title\",\r\n children: t\r\n })]\r\n })\r\n }), c ? Object(s.jsx)(\"div\", {\r\n className: \"branding\",\r\n children: Object(s.jsx)(\"span\", {})\r\n }) : null]\r\n })\r\n })\r\n }\r\n var Me = a.a.memo((function(e) {\r\n var t = e.isActive,\r\n n = e.isEmbedded,\r\n r = e.className,\r\n a = void 0 === r ? \"\" : r;\r\n return n ? Object(s.jsx)(\"span\", {\r\n className: \"spinner\".concat(t ? \"\" : \" disabled\", \" \").concat(a)\r\n }) : t ? Object(s.jsx)(\"div\", {\r\n className: \"spinner-container\",\r\n children: Object(s.jsx)(\"span\", {\r\n className: \"spinner \".concat(a)\r\n })\r\n }) : null\r\n })),\r\n Fe = n(165);\r\n\r\n function Ge(e) {\r\n var t = e.index,\r\n n = e.ctxId;\r\n return Object(s.jsx)(\"div\", {\r\n style: {\r\n width: \"100%\",\r\n height: \"auto\",\r\n display: \"flex\"\r\n },\r\n className: \"content-card-cell small filling-card\",\r\n id: \"FillingCard___\".concat(n, \"-\").concat(t),\r\n children: Object(s.jsx)(\"a\", {\r\n className: \"context-switch filling-content-card content-card small single-line\",\r\n style: {\r\n width: \"100%\",\r\n height: \"auto\"\r\n },\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"border-radius-container card-wrapper\",\r\n children: [Object(s.jsx)(\"div\", {\r\n className: \"content-card-image\"\r\n }), Object(s.jsx)(\"div\", {\r\n className: \"content-card-info\"\r\n })]\r\n })\r\n })\r\n }, t)\r\n }\r\n var He = n(194),\r\n Be = function(e) {\r\n var t = e.menuItemId,\r\n n = e.assets,\r\n r = e.isGrid,\r\n a = e.maxNumberOfAssets,\r\n c = e.showSeriesInfo,\r\n i = e.identifyScheduled,\r\n o = e.onCardClick,\r\n u = e.railId,\r\n l = e.setIsHeaderEnabled,\r\n d = function(e, t) {\r\n return t ? e || pe.a.ASSETS_PER_GRID_PAGE : e || pe.a.MAX_ASSETS_PER_RAIL\r\n }(a, r);\r\n if (null === n || void 0 === n || !n.length) {\r\n var b = new Array(d).map((function(e, t) {\r\n var n = \"filingCard_\".concat(t);\r\n return Object(s.jsx)(Ge, {\r\n index: t,\r\n ctxId: u\r\n }, n)\r\n }));\r\n return Object(s.jsx)(He.a, {\r\n cards: b\r\n })\r\n }\r\n var O = [],\r\n f = n.filter((function(e) {\r\n return e.type === C.h.WIDE\r\n })).length,\r\n j = d - (n.length % d || d),\r\n p = r ? n.length + j : d;\r\n !r && f && f < d && (p += d - f % d || d);\r\n for (var E = !0, S = 0; S < p; S += 1) S < n.length && n[S] && (O.push(Object(s.jsx)(Fe.b, {\r\n setIsMouseEnter: function(e) {\r\n l(e)\r\n },\r\n asset: n[S],\r\n onAssetClick: function(e) {\r\n return o && o(e, t)\r\n },\r\n showSeriesInfo: c,\r\n identifyScheduled: i,\r\n dynamicDirection: r ? Fe.a.HORIZONTAL : Fe.a.VERTICAL,\r\n ctxId: u\r\n }, S)), E = E && n[S].type === C.h.PORTRAIT);\r\n return r ? Object(s.jsx)(s.Fragment, {}) : Object(s.jsx)(He.a, {\r\n cards: O,\r\n large: E\r\n })\r\n };\r\n\r\n function Ve(e) {\r\n var t = e.railId,\r\n n = e.menuItemId,\r\n a = e.railName,\r\n c = e.className,\r\n i = void 0 === c ? \"\" : c,\r\n o = e.hasMore,\r\n u = e.assets,\r\n l = e.isGrid,\r\n d = e.channelId,\r\n b = e.showSeriesInfo,\r\n O = e.identifyScheduled,\r\n f = e.isLoadingAssets,\r\n j = e.maxNumberOfAssets,\r\n p = e.onCardClick,\r\n E = e.onHeaderClick,\r\n S = Object(r.useState)(!0),\r\n v = Object(I.a)(S, 2),\r\n m = v[0],\r\n h = v[1];\r\n return Object(s.jsx)(\"div\", {\r\n className: \"rail \".concat(i),\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"\".concat(l ? \"rail-grid\" : \"rail-row\"),\r\n id: \"Rail___\".concat(t),\r\n children: [a && Object(s.jsx)(\"header\", {\r\n onClick: function() {\r\n o && E && E(t, d)\r\n },\r\n className: \"rail-header \".concat(o ? \"has-more\" : \"\", \" \").concat(m ? \"header-on-top\" : \"\"),\r\n id: \"Rail_header___\".concat(t),\r\n children: Object(s.jsx)(\"h2\", {\r\n children: Object(s.jsx)(\"a\", {\r\n className: \"\".concat(o ? \"\" : \"disabled-href\"),\r\n id: \"Rail_name___\".concat(t),\r\n children: a\r\n })\r\n })\r\n }), f ? Object(s.jsx)(\"div\", {\r\n className: \"loading-rail-assets\",\r\n id: \"Rail_loading___\".concat(t),\r\n children: Object(s.jsx)(Me, {\r\n isActive: !0\r\n })\r\n }) : Be({\r\n maxNumberOfAssets: j,\r\n menuItemId: n,\r\n assets: u,\r\n isGrid: l,\r\n showSeriesInfo: b,\r\n identifyScheduled: O,\r\n onCardClick: p,\r\n setIsHeaderEnabled: h,\r\n railId: t\r\n })]\r\n })\r\n })\r\n }\r\n var We = n(73),\r\n Ye = n(150),\r\n Ke = function(e) {\r\n var t = e.value,\r\n n = e.placeholder,\r\n a = e.maxLength,\r\n c = e.disabled,\r\n i = e.isActive,\r\n o = e.onChange,\r\n u = e.onBlur,\r\n l = Object(r.useRef)(null);\r\n return Object(r.useEffect)((function() {\r\n var e = (null === l || void 0 === l ? void 0 : l.current) || null;\r\n return null === e || void 0 === e || e.focus(),\r\n function() {\r\n null === e || void 0 === e || e.blur()\r\n }\r\n }), [i]), Object(s.jsx)(\"div\", {\r\n className: \"search-bar\",\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"inner-content\",\r\n children: [Object(s.jsx)(\"div\", {\r\n className: \"search-bar-icon\"\r\n }), Object(s.jsx)(\"div\", {\r\n className: \"inputTextWrapper\",\r\n id: \"Search_inputWrapper\",\r\n children: Object(s.jsx)(\"input\", {\r\n ref: l,\r\n id: \"Search_input\",\r\n className: \"form-input inputSearch\",\r\n name: \"searchBar\",\r\n value: t,\r\n type: \"text\",\r\n maxLength: a,\r\n placeholder: n,\r\n onChange: function(e) {\r\n function t(t) {\r\n return e.apply(this, arguments)\r\n }\r\n return t.toString = function() {\r\n return e.toString()\r\n }, t\r\n }((function(e) {\r\n o(e.currentTarget.value)\r\n })),\r\n onBlur: u,\r\n disabled: c\r\n })\r\n })]\r\n })\r\n })\r\n },\r\n Qe = n(32),\r\n qe = n(92),\r\n Ze = function(e) {\r\n var t = e.filters,\r\n n = e.filtersRecom,\r\n a = e.isRecomendations,\r\n i = e.consent,\r\n o = e.optInCallback,\r\n u = Object(N.b)(),\r\n l = Object(r.useCallback)((function(e, t) {\r\n u(je.a.setActiveFilter({\r\n filterKey: e,\r\n menuItemId: t\r\n }, a, i)), e !== qe.a.OPT_IN ? (o(!1), u(je.a.searchAssets(pe.a.MAX_ASSETS_PER_RAIL_SEARCH_RESULTS))) : o(!0)\r\n }), [i, u, a, o]),\r\n d = Object(N.c)(je.b.getActiveFilter) || \"searchRecommendations1\",\r\n b = Number(d.filterKey) || 0,\r\n O = Object(r.useCallback)((function() {\r\n var e = t;\r\n if (a) {\r\n if (i) return null;\r\n e = [{\r\n key: \"all\",\r\n type: qe.a.ALL,\r\n translationKey: \"search.searchRecommendations1\"\r\n }, {\r\n key: \"optIn\",\r\n type: qe.a.OPT_IN,\r\n translationKey: \"search.optInRecommendations\"\r\n }]\r\n } else e = t;\r\n return Object(s.jsx)(s.Fragment, {\r\n children: e.map((function(e) {\r\n var t = _.a[\"\".concat(e.translationKey)];\r\n return t && Object(s.jsx)(c.b, {\r\n buttonType: c.a.TAB,\r\n onClick: function() {\r\n d.filterKey !== e.type && l(e.type || \"\")\r\n },\r\n bemBlock: \"SearchFilters\",\r\n bemModifier: e.key,\r\n text: t,\r\n active: d.filterKey === e.type\r\n }, e.key)\r\n }))\r\n })\r\n }), [t, a, i, d, l]),\r\n f = Object(r.useCallback)((function() {\r\n return a && i ? Object(s.jsx)(s.Fragment, {\r\n children: n.map((function(e, t) {\r\n var n = _.a[\"searchRecommendationsN\".concat(t)],\r\n r = b === t;\r\n return Object(s.jsx)(c.b, {\r\n buttonType: c.a.TAB,\r\n onClick: function() {\r\n r || l(t.toString(), e.id)\r\n },\r\n bemBlock: \"SearchFilters\",\r\n bemModifier: e.id,\r\n text: n || e.name,\r\n active: r\r\n }, e.id)\r\n }))\r\n }) : null\r\n }), [i, n, a, l, b]);\r\n return Object(s.jsx)(s.Fragment, {\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"btn-group search-filter\",\r\n \"aria-hidden\": \"false\",\r\n id: \"SearchFilters_wrapper\",\r\n children: [Object(s.jsx)(f, {}), Object(s.jsx)(O, {})]\r\n })\r\n })\r\n },\r\n Xe = n(152),\r\n ze = n(111),\r\n Je = n(177),\r\n $e = [{\r\n key: \"all\",\r\n type: qe.a.ALL,\r\n translationKey: \"search.searchRecommendations1\"\r\n }, {\r\n key: \"onTV\",\r\n type: qe.a.ON_TV,\r\n translationKey: \"search.searchRecommendations2\"\r\n }, {\r\n key: \"onDemand\",\r\n type: qe.a.ON_DEMAND,\r\n translationKey: \"search.searchRecommendations3\"\r\n }],\r\n et = a.a.memo((function(e) {\r\n var t = e.isActive,\r\n n = e.setIsActive,\r\n a = Object(ne.h)(),\r\n c = Object(w.a)(),\r\n i = Object(N.b)(),\r\n o = Object(r.useState)(\"\"),\r\n u = Object(I.a)(o, 2),\r\n l = u[0],\r\n d = u[1],\r\n b = Object(r.useState)(!1),\r\n O = Object(I.a)(b, 2),\r\n f = O[0],\r\n j = O[1],\r\n p = l.length > 2;\r\n Object(Je.c)(t);\r\n var E = Object(N.c)((function(e) {\r\n return C.C.Menu.Selectors.getMainMenuItem(e, C.ab.SEARCH)\r\n })),\r\n S = Object(N.c)(je.b.getResultAssets),\r\n v = Object(N.c)(je.b.getNoResults),\r\n m = Object(N.c)(je.b.getError),\r\n h = Object(N.c)(je.b.isSearchRequestComplete),\r\n g = Object(N.c)(je.b.isSearchMoreAssetsLoading),\r\n x = Object(N.c)(C.C.Credentials.Selectors.getUserId),\r\n A = Object(N.c)(je.b.getSearchResultsPageIndex),\r\n R = Object(N.c)(je.b.recentAssetsForUser),\r\n T = Object(N.c)(C.C.Dms.Selectors.getDmsConfigs),\r\n k = Object(r.useState)([]),\r\n L = Object(I.a)(k, 2),\r\n P = L[0],\r\n D = L[1];\r\n Object(r.useEffect)((function() {\r\n R && T && D(C.H.filterInvalidEpgPrograms(R, T.epgBackwardDays, T.epgForwardDays))\r\n }), [T, R]);\r\n var y = Object(N.c)(C.C.Recommendations.Selectors.isFeatureEnabled),\r\n U = Object(N.c)(Qe.b.hasAgreedToConsent),\r\n M = Object(N.c)(je.b.getActiveFilter),\r\n F = Object(r.useMemo)((function() {\r\n return (null === E || void 0 === E ? void 0 : E.children.filter((function(e) {\r\n return \"externalsearch\" === e.type\r\n }))) || []\r\n }), [null === E || void 0 === E ? void 0 : E.children]),\r\n G = Object(N.c)(je.b.noMoreResults),\r\n H = Object(N.c)(je.b.completed);\r\n Object(r.useEffect)((function() {\r\n t && i(je.a.initRecentAssets())\r\n }), [i, t]), Object(r.useEffect)((function() {\r\n if (p && t) {\r\n var e = {\r\n filterKey: qe.a.ALL\r\n };\r\n y && (e = {\r\n filterKey: \"0\",\r\n menuItemId: F.length ? F[0].id : void 0\r\n }), i(je.a.setActiveFilter(e, y, U)), j(!1), i(je.a.setQuery(l)), i(je.a.searchAssets(pe.a.MAX_ASSETS_PER_RAIL_SEARCH_RESULTS))\r\n }\r\n t || d(\"\")\r\n }), [l, i, p, t, y, U, F]);\r\n var B = function(e, t) {\r\n var r = Object(Se.a)({}, x, {\r\n assets: [e]\r\n }),\r\n s = a.pathname.split(\"/\")[1];\r\n i(je.a.addToRecent(x, r)), s && (c.push({\r\n asset: e,\r\n entryPoint: C.G.SEARCH,\r\n menuItemId: t\r\n }), n(!1))\r\n },\r\n V = Object(r.useRef)(null),\r\n W = Object(Ye.a)(V, {\r\n root: null,\r\n rootMargin: \"0px\",\r\n threshold: [.9, 1]\r\n });\r\n Object(r.useEffect)((function() {\r\n W && ((!y || y && !U) && i(je.a.loadMoreAssets(A)), y && U && i(je.a.loadMoreAssets(A)))\r\n }), [i, U, W, y, A]);\r\n var Y = function() {\r\n i(je.a.clearSeachError())\r\n };\r\n return Object(s.jsxs)(\"div\", {\r\n className: \"searchWrapper \".concat(t ? \"isActive\" : \"\"),\r\n children: [t && Object(s.jsx)(Ke, {\r\n placeholder: _.a[\"search.inputPlaceholder\"],\r\n onChange: function(e) {\r\n d(e)\r\n },\r\n isActive: t\r\n }), t && p && Object(s.jsx)(s.Fragment, {\r\n children: Object(s.jsx)(\"div\", {\r\n className: \"searchResultsWrapper\",\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"inner-content\",\r\n children: [$e && F && Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(\"h2\", {\r\n id: \"Search_resultsTitle\",\r\n children: _.a[\"search.searchresults\"]\r\n }), Object(s.jsx)(Ze, {\r\n filters: $e,\r\n filtersRecom: F,\r\n isRecomendations: y,\r\n consent: U,\r\n optInCallback: function(e) {\r\n j(e)\r\n }\r\n })]\r\n }), Object(s.jsxs)(\"div\", {\r\n id: \"Search_resultsContainer\",\r\n className: \"search-results-container\",\r\n children: [f && Object(s.jsx)(\"div\", {\r\n children: Object(s.jsx)(Xe.a, {\r\n railId: \"optInSearchResults\",\r\n railName: \"\",\r\n railBackgroundImageName: We.a.RELATED_RECOMM,\r\n railDescription: _.a[\"firstTimeUse.recommendations.optIn.empty\"],\r\n optInClicked: !0,\r\n continueClicked: function() {\r\n j(!1), p && (i(je.a.setQuery(l)), i(je.a.searchAssets(pe.a.MAX_ASSETS_PER_RAIL_SEARCH_RESULTS)))\r\n }\r\n })\r\n }), !S || h || v ? null : Object(s.jsx)(ze.a, {\r\n railId: \"searchResults\",\r\n menuItemId: M.menuItemId,\r\n className: \"no-background\",\r\n assets: S,\r\n onCardClick: B\r\n }), Object(s.jsx)(\"div\", {\r\n className: \"load-more-infinit-scroll \".concat(v || G || H || h ? \"hidden\" : \"\"),\r\n ref: V\r\n }), !h && !g || v && G || H || M.filterKey === qe.a.OPT_IN ? null : Object(s.jsx)(\"div\", {\r\n className: \"layout-spinner-container load-more\",\r\n children: Object(s.jsx)(Me, {\r\n isActive: !0\r\n })\r\n }), !h && v && M.filterKey !== qe.a.OPT_IN ? Object(s.jsxs)(\"div\", {\r\n className: \"search-title\",\r\n id: \"Search_message___noResults\",\r\n children: [_.a[\"search.noresultsfoundfor\"], \"\\xa0\", \"\\u201c\".concat(l, \"\\u201d\")]\r\n }) : null]\r\n })]\r\n })\r\n })\r\n }), t && P.length > 0 ? Object(s.jsx)(Ve, {\r\n railId: \"recentSearches\",\r\n menuItemId: y && F.length ? F[0].id : void 0,\r\n className: \"no-background recent-results-rail\",\r\n railName: _.a[\"search.recentsearches\"],\r\n maxNumberOfAssets: pe.a.MAX_ASSETS_PER_RAIL_SEARCH_RECENT,\r\n assets: P,\r\n onCardClick: B\r\n }) : null, Object(s.jsx)(Te.a, {\r\n title: _.a[\"modal.title.error\"],\r\n message: null === m || void 0 === m ? void 0 : m.translation,\r\n buttons: [{\r\n id: \"ok\",\r\n text: _.a.modalButtonOk,\r\n onClick: Y\r\n }],\r\n isShowing: t && void 0 !== m,\r\n setIsShowing: Y\r\n })]\r\n })\r\n })),\r\n tt = 200,\r\n nt = function(e, t, n) {\r\n return e.map((function(e, r) {\r\n return Object(s.jsx)(c.b, {\r\n bemBlock: \"SeasonTabs\",\r\n bemModifier: e.key,\r\n buttonType: c.a.TAB,\r\n active: r === t,\r\n text: e.title,\r\n onClick: function() {\r\n return n(r)\r\n }\r\n }, e.key)\r\n }))\r\n };\r\n\r\n function rt(e) {\r\n var t, n = e.data,\r\n a = e.activeSeason,\r\n c = e.onCardClick,\r\n i = e.menuItemId,\r\n o = Object(r.useState)(0),\r\n u = Object(I.a)(o, 2),\r\n l = u[0],\r\n d = u[1],\r\n b = Object(r.useState)(!1),\r\n O = Object(I.a)(b, 2),\r\n f = O[0],\r\n j = O[1],\r\n p = Object(r.useRef)();\r\n Object(r.useEffect)((function() {\r\n a && d(n.findIndex((function(e) {\r\n return e.key === a.toString()\r\n })))\r\n }), [a, n]);\r\n return Object(s.jsx)(\"div\", {\r\n id: \"Seasons\",\r\n className: \"seasons-wrapper moreepisodes\",\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"component-inner\",\r\n children: [Object(s.jsx)(\"h2\", {\r\n id: \"Seasons_title\",\r\n children: _.a[\"programInfo.moreepisodes.title\"]\r\n }), n.length ? Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsxs)(\"div\", {\r\n id: \"Seasons_buttonGroup\",\r\n className: \"btn-group search-filter\",\r\n children: [Object(s.jsx)(\"span\", {\r\n className: \"filter-title\",\r\n children: _.a[\"programInfo.moreepisodes.season\"]\r\n }), nt(n, l, (function(e) {\r\n p.current && clearTimeout(p.current), j(!0), p.current = setTimeout((function() {\r\n d(e), j(!1)\r\n }), tt)\r\n }))]\r\n }), Object(s.jsx)(ze.a, {\r\n className: \"episodes-rail no-background \".concat(f ? \"rail-fadeout\" : \"rail-fadein\"),\r\n railId: \"episodes\",\r\n menuItemId: i,\r\n assets: (null === (t = n[l]) || void 0 === t ? void 0 : t.assets) || [],\r\n showSeriesInfo: !0,\r\n identifyScheduled: !0,\r\n onCardClick: c\r\n })]\r\n }) : Object(s.jsx)(\"span\", {\r\n id: \"Seasons_empty\",\r\n className: \"filter-title\",\r\n children: _.a[\"programInfo.moreepisodes.noEpisodes\"]\r\n })]\r\n })\r\n })\r\n }\r\n var at, ct = n(204),\r\n st = function(e) {\r\n var t = e.onClickCallback,\r\n n = e.options,\r\n r = e.bemBlock;\r\n return Object(s.jsx)(\"ul\", {\r\n children: null === n || void 0 === n ? void 0 : n.map((function(e) {\r\n return Object(s.jsx)(c.b, {\r\n disabled: e.disabled,\r\n active: e.isSelected,\r\n onClick: function() {\r\n !1 === e.isSelected && function(e) {\r\n t && t(e)\r\n }(e)\r\n },\r\n buttonType: c.a.LI,\r\n text: e.text,\r\n bemBlock: r,\r\n bemModifier: e.key\r\n }, e.key)\r\n }))\r\n })\r\n },\r\n it = a.a.memo(st),\r\n ot = n(126),\r\n ut = n(144),\r\n lt = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAC8CAYAAADCbJOCAAAPVHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarZppdiM7jKz/cxW9BM4El8PxnN7BW35/YKYsy2X7lsvPqpLkdHICAoEAmWb9v//d5n/4ScFnE1ORXHO2/MQaq298EXv9XJ/OxvN+fvy4v7nX66aPu5HnUuAzXL/mdX26xvX0bFDifb2/Xjfl7sjL3ZF76/j8BB1Zv9/3yd1R8Nd1d/9u6t2uxXfLuf+/W8bHZZ2fWDDGTPQXvPEruGB5Fx0lMINQQ+Oz8B6C83rF8d2HyHsK6XPbmbevH4zX7Oe2s+2+I7yawth835A/2Oi+7tKH648O1ULvZ+QeX/3rH3pxjyZ/2G7vKXuva3UtZiyVzb2ohwnPN27smDKcZplX4X/iezmvyktY4sBjE292XsO46jxjbxfddM1tt87ncIMpRr984dP74cO5JqH46sdxStSX277gnmmC4I+B1wKX/dtc3Bm3nvGGE0aejju9ozNHiz9e5rOL//J662hvha5zasx22Yp5ecU001DP6Tt34RC3b5umY9/zMm9uff6oYwMeTMfMwgKb7VcXPbkntsLxc+C+ZKOxV2i4Mu8OMBFjJyYDoqOz2YXksrPF++IcdhT805g5UPcdD7iU/HRm45sQMs4Rr2PTprhzr0/+ugy14IgUMmEjGkA4K8YEfkoUMNSIm2hSSjmVJKmmlkOOOeWcS1aOaiWUWFLJpRQptTQJEiVJliIiVVr1NUBhqeZaTJVaa2sM2ui60bpxR2vd99BjTz330qXX3gbwGXGkkUcZMupo088wCf+ZZzFTZp1tuQWUVlxp5VWWrLraBms77LjTzrts2XW3N6/dXn31mvvgue+95m6vqcfiua88vcblUh5dOKWTpD7DYz46PF7UAwDaq8+suBi9ek59ZqsnKJLHay6pc6ZTj+HBuJxP27357um5b/1mUvyR3/xXnjPquv8fnjPquttzf/rtE6/NdjJKOA7SKFSb2rAhNm5Y0rxwh+8z7eVirj2v2lKaqzGFsXsaFZO2GvpeaZNOZG4nu2TCYTDwMjJyqGNXMm53e3j8XF30ZRPhTKCGvWMapEU3W6xuFMwMC7L27XqrCZs6pS2zwUApLo1Y6Ka1CWQYYSenXfUtVT8H49AFqajYyQXsF2Geuvuk3drLG4YmfmdL2HQkPNXt7NH27p0Q9TRmUZKUFnJkibFrdy4m9/ppPl74/pOJhbwZeLaBm0JbWzKrk2lm8SAnCrxS3ZpppLOUHy/SPFd5L7KPgklpgM0jcALckoCt0wykWoR4iYuLNohs6aEVzDKMTm3sVMHv7iW1OQY+bbuPRTQVuIa2EuZMNS4ro8ylXsb1uHHTVFrQmRofgRxfpqTMVLfagfUVqfMTU6U1ylZYLH49S12snw6mIThnkfXfKPI08bHaLQVmrcQyqdr56U+kBiO+Ra90QE/tDKZiSnaapzM78zV1uIN5hLSwvz9Xqks73UP6apgD9JR2GCwlM9vhY8Gre9rc1WHDNnVD2yVNEkX1edtFpPvR1tg+APg4xjKj+CQ1uoqxinbYCWI7lxuPUZneNaoUHRTl4Fr5LSDhqS8sZS5T/d5S5jLV7y1lLlP9k6WkwydERayrbkLEttkPtKR1ZZnwBOyF1hurUOA3WDVPsNLVBdcbrKD9D7Tq7A5ez/01XJGgiDVuRqg9bz/nktDkIiOW32ZOQlfe8tnqRUd0O5UA+zqrwlxnpuQsw7flW59jKWlvi1EkEZn+solNGldwx6GQxNz8kqrjtiwn8OOCBLOYPLOXCSvZ5chaVpMeKeDwhCeTwMuzZ9mNCTVJsyKVmFHNk2IA750EvVqkFgl4denEyVxOKuydGgkNUpc1c+5kqihrRJkNcTwZvkdQdKw08M7lCJN269ciAgZg1ba0rGaYLLKJu5xwEUx28cu/GPJhOcT5T82frc3vmj9bm981f95jftf82dr8V/MC7kFlCFTNlWugc5BDx+gldBE3h7gOZoi1TKZqhDyQtRk1A8jmTj3kJfQGuw9RKkAY+VJtQV/PCA1U0MQklkOpDBEDOIB6T1dsNQ1sKGmS3nqh/9VCJhDWrg0+qSeFo+RIWNxYA+kTdjo4sprClHGiPXgaVaAHgh/qCScNjhAYN+2ihLDEFc0uzh3aR/Wv0dH23YxOfNpVr0w+KhKTGA2FgYNkrWA1lUOCTWNxxX5HIdJiEvyYs58uzXQJUUPCTmvWd0T1GU/p7sCtyJ7KTM50lWqJF0ffSg8ndzYkIO0GURSUCfSa93IYah97QEhLuizWjSiJDYHYDSKx8zNnxeO8OcQrotb1jgeDjI0GTKucIaiYsRJSQq1U7kRfWAt5wOxHGrhzgLXPLPAdCNMS/jxX2SqkSza19B5G313VvF8kgpLXSra4uvbMfRX8igdGYFIeaqz0mLgBwhPdUQm14uNuLgv0ie1nWe38WcHB/0HNndT48GK+csi88AaVIaOWVq3H7HwafGh3ZpjZkdpo88okWK9ObM+Vx5wyfMVSXKsLUNY0Qxlg8aSCVeL5ZlD1WABSVRf4WfpymXXYAjGS1XziO/o871CTHROxX4k0MhOqi1kDfpxW2jYNMrUnQkBPXd7qmESmD9LW3DblNX1wSzckqIfxvEjGm+hNzK21VSFyXTJtNig276SpOKmpchudaKLswAdQN7ZzeoMGrW5pIPk0bbyzj34a/UJUoS6meiXAAgB/HpSQ8XQQbF33MUp1UAafxx40RE2I7jQlT6xtRAC6bi0Ki4IrcxG8O2sdLKq1uEKYvaVS19eYIp0ZkTtZl8u1+LVlVSF2lsHK8HRVWD9Bram6HEVQGn/soB6/mKblw1JpspdWkQRMCOTEjjYZufSdLg6D5RAyymHgU7N1qZEIbWcDBJVvvlcdILEctiKlIpAWPR5oAhjquz7iejH2w/pv4X4FOw1Y7SPUgfKTNP7kDHNIQ0lna6F1oqldhLFS0D6sxltlPckvgtRDFQmpArWDsjEQLL2tKGZQbYhu/ICOesB+xIgy6ZEi6ogRtexPmlUUDA8p9xByR8aZizhcqhfjKINfmufJ4bUcDsfcgJcpUS7rVwtGECZCrvALNcJXCh+wP5sWPF054SzxSQi68i8o4SIE6MD8wQcg485VO7ykKsrtMWYBhnarOCSstVSeh3qaKarTTuI50spT32cB6FbfVSJlSR17hkpl7utwlPty8lkixBFV0GPJCPY5VDxSzSKftDzvmZIvkHISKSsQ9OjKVYgS0k9RdacD16pVdrG68yEuROLecLtqzkzSSJWoXt7H5TqCG8IdQiWJwqWPVtSvYD25jvSNFJ7cSzymAvnZYCq/657npDoU3THTiYsKiJSeSH3Qg9LyRRAEq1LEG0GYB0MobV4cQdY5rHlxRPxLoJqvkPpToJqvkPpToJqvkPoBqDT6nifM3xPF9zxh/p4oHjzBDNug8tcqTlmu6z3VxLtGVDEHim2AWRH+K+dnpj65+ORqQHGy9Ym+Z75mMuanwflVbJqfBudrbNJf0/CsgjymIKuLpQjlEeqtn40r33QrTgXeu/gkPEsJpCStsYbLqovTlF58dMb5uhHPVM1IGcQkWWxLIBuh2k5Mrk1MWsSWVmN5a07uVjm3qCijOkNokH1MzMSwxqQj8q+Y3HQdT0xu1ScsMnSkFNiyOgKzHNbxD1OlE5C6QvP3Yfl9VBqWkLXOCyc2L0e3fTv6fXQqRjFkUzL6JF2a13z57+nS/CQMvosC83kY/He6pDaAnKu/5c8yPYg0Qc/6CQvV2N2yLifARR1Mi2vbQNQ9x7xooHW5gvLrzFNObWFc+0poHLshEL3uBFz9PHo5fTBP+lCkeM0isWt1NfJYyVPb99LBoKeMojBLCfEuaP8Tnv7b1Gl+Hp6fR6cZM8MEpWtXA4h7/uy3D0M9VIoqwjWZLqVLYkjI+CAKixwt7HJGCzuKGki5EZMBST4DZp56XkCKzdfh1Jao29QVMdwKPTgkNVjyilBGikhdzIFeNpoSKTdSLTVUSxgiCzXmWVcE+llr00tC10AmJrZRnrvEMdHMo+lmEGlSORvu2MlVhi/+RC4a+hWZf5Umzd8E5N+kSfMRof8KUPMRof8KUPMRoX8P0PXCFeY32vql8PuNtn6fMg35pSfquexwEM6I0UV+g+R9bM1pSdaanliBbyqb+0RggigGKzPcHt4m72s/T4vqbpPTALxK81SunVrk2UlsW/cTdBuD+rzVFifDF8WH4N9mXIy1uKwbBsNFoqB7Cjzqw1Ov6wHZlwGNe+dMgLznmU1gIZi9dzuyq7Xo8QpakHwVHYKQN6sm0ly5rZD2PGm1p3b2kSgm28xT95HMRJV20V3Ppc9KlCq6vIe80tP4pjqi+nNl1uk+/4uZuoNL5Tj/qfmztfld82dr87vmz3vM75o/W5v/aP49wfTaFfYUv96kGPzqF+FRORB5PQPkTjFQKATg1bODNwNkaKffcRHHrqOLAIwVFT6K2WR0HxmhpEHcqlbnmcD5edzohuZL2PR9RfqHmNEt8ztmXiLmpIMTMeZDyHwfMai5r7bzzL+fO7weO5h/P3dwIOa5IWI+3REhn4byn7smNr07hDGfncKcTb8fnmmZn5xlvZ1p5TPdx2TPVM21i/dhRS+3vL/jZT2f70S8rOazEvDjqZOGyuX/s5lrXr1PVv/HU1Lz8Zj0zf+oM4rISf0w0US9kzvPzhlZKufeUBFldKoU51ouYZkxKDuqnuM6wQhyqlbCSLcgKGXqiZFC1h0ygnfiVoO6lz6bcOL+HFSL7UY13LJkZE3ohxdEH0/Qox49NIrBthBlTd07bDZT69qdybhnFUT4QhVtqkXTDj7m7scyy58d0nydQZYQ/SUe/C2JxbaqSaUFp0feAXmnj/O0mIk1l7BcprB0ak7dzHPukSKvjjTgz8n5bOVOkecBgXPSns/hBlkEpVqryzFmPalPKDe7KB31cL//AKifIjtkrBKokYu0pI8nTpzXfUBFZKsPj0CgbcBej9WzdnMW/1h6aUu3a3RLofK15GtLYdIy27OloCdzustxjjxS680hTai/kH5bhTTv0lWh1FenvvcpZew3jxSY+5mC+ykNePc8wDDD4wGGXG+1UnJFwbrreYhQgu5x6/MQCsluoznPQ0gQeJxoGsD56uJFrh1Rdcs1hFdffpyzIGpkV3uYDp2NbVDgqQQ3N6JxBEn6mAdaw+kpcs6oehsCEn0V3bwd5d1Wtsq3Cqn9H719Xn2UntzTAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH4wcfChg6r96caAAACclJREFUeNrt3X+s1XUdx/Hnub+8XLxEIBdlUC5nTVlTJFNRLGphufljgfoHWwn37tJiKmFLrOlKnegaJDbcurtc2qwIs4a5WZFNwcqujUCcNoYzSooLkdm9cE0u95z++HxtjCH3Hrgfz+d7z/OxnbFdzvnu3Pf5fF/3/f2e7+fzLZRKJVJQLBbp7OwEmAosBK4BpgNNxzz1TuCBSG+jBdgJjEeqvDeBjwD7I21/ObDimJ/1AtuBjcCjwIG2tjZqamqSKEhNKp9MZ2dnDXBzVqx7gIuPE1YAtZHrUXA/USIKkffR4+1L44ArgVXANuD6tWvXJrNPJBFYXV1dAMuATmDiEE+/IGKonAs0u58oEc3ZmIwVhhcM8ZypwIZSqbTIwDrKkSNH5gD3DrN7ug64NsLbmAA8mFLXqapXk43JCRG2fW22Lw2lAXioo6Pj40m0nJU+h9XR0VELbAFmlfGyt4CfAVuBIyPwNiYDN0b8ayadil3AY8C+EdhWHTAT+DwwpozX/QaY297eXqxkIeoS+DDOJ5yvKscYYEH2kEa7c4FvVPg9XJG9j53Vfkh4CVDvmJSSdhpwWQrHyJV2lmNByoVpBlbcyxQkjaJ91W/EJOWGgSXJwJIkA0uSgSVJBpYkGViSDCxJMrAk6dTU5fA9rwbWRdr2BOAJXBNLaegjLAHzRqTtLwRuM7Di6gFejLTtFmDQ/USJGAReJt4SyT0eEkqSgSXJwJIkA0uSDCxJBpYkGViSZGBJMrAkycCSJANLkoElSQaWJBlYkgwsSTKwJMnAkmRgSZKBJUkGliQDS5Lec3WWYEQNADuA3Xj3nWpXAMYDFwETLYeBlZrnCPd4exEoWg4dFVrLgK8CjZbEwEolrK4GDloKHaUE/Bu4C9gLPAzUWpaT5zmsU/c2sNSw0hC+l/1hU5V1WBcCCyJtexzQUOZrXgG2OZQ0hEHgceCTZbymAZgH9EbclwysyG7KHqn4W9b6S0P5azZWCsN8fhPwiGXzkHAkeYJdjhUDS5IMLEkGliQZWJJkYEkysCTJwJJkYEmSgSVJBpYkA0uSUpbHyc+Hs0cMBcKE04JDQwkoAf3Em1zfQPmrkxhYZVoJrIm07TOALYRlZqRK6wOuBA5E2v4S4E4DK65e4O+Rtj2AM+onA1OAXbgoYaUVCSuV7o+4L+WK57D0jnrg/iyourN/l2Q/lwwsJeWG7PCgOQupM4HvAhuBD1keGVhKyTXH+VmBcHONbuALeNMSGVhKRNMJ/u8MYB2wnnB+SzKwlPxYmZ91WzfgpR8ysJQDU4EfAV3AJMshA0upqwNuBp4HPus4koGlPDgHeBL4DuGW7JKBpeS7rVuB3wOz8dyWDCzlwHnAJmAFMNZyyMBS6hqBO4BngYsthwws5cHHgGcIV86PsRwysJS6sYS5ib8CplsOGVjKg9mEE/K3kLO1l2RgqTqNA1YTLoE4x3LIwFLqCsBcwsWmrUCtJZGBpdRNAjqADcA0yyEDS3kYd/OAPxAmUtttycBS8qYQlqzpAloshwwspa6WsDhgN2GxQKf2yMBS8s4mLMf8CE6kloGlHKgHvkS4bmuO3ZYMLOXBecAvCVfKN1sOGVhKXQOwHNiME6llYCknZhAmUt9NWA1CVSyPt236FPHmpI11p0jSWOCbwFWEc1wvVcnv3QjcDhyKtP0rDKz4PpM9VF0KwCzgOeBbwBrgcBUE1tf86D0kVH69D1hJmEj9YcthYEl56LbmEi5/aCVcDiEDS0raRMJE6vVZ5yUDS0p+DM8D7rEUBpaUF9cBTZbBwJLyoGQJDCwpL34K9FuG0a3OEijnBoEfE67Nkh2WlKz9hLW0vgj0WQ47LClFJcKFo0uBv1gOOywpVW8AS4D5hpUdlpRyV7WZMPl5p+UwsPLiP8Q7X1ELTLbzTE4fcB/wEKN/wvPRisA+whcLMTSTsxkCeQysVYTJrzG0ANtwmkdKurOuanuVBvXlhC8XYridnH27msfAOky89YEO4QWIqfgv8CDw7Yifdx4Ogw9F/P1z1616Dksp2gF8mbAag39A9H+eq1Fq3fPDhJUwf2dYyQ5LqXo166qeNqhkh6VUDQKdwKXArw0r2WEpVa8DtwI/J3yFL9lhKTlFYEPWVW00rGSHpVTtA+4AfkC8CyJlYEmnpAT8gjAPcLflkIeEStWbWVBdb1jJDkspe5ZwucKfLYXssJSqg4RzVZ8zrGSHpZS9kHVVWy2F7LCUqreA+4E5hpXssJSyl4HFOGFZdlhK2ABhYb3LccKy7LCUsFcJlys8jVeryw5LiToCrAMuAzYZVrLDUqr2AF8h3GnZwz8ZWEpSMQuppcA/LIcMLFVS/wn+7wCwDFifHQ5KFeE5LL3jyeP8rAQ8BVwCPGpYycBSKn4CrCDcWmoA6AFuIUxYfs3yyENCpWQA+DqwGpgC7CLMB5QMLCVrX/aQPCSUpGrqsG4EpkfadiPQ5LBQIpqANYS7YMcwPW8FyWNgzcge0mjXAMy3DB4SSjKwJMnAkiQDS5KBJUkGliQDS5IMLEkysCQZWJJkYFlDybFiASvuA0DBMmgYPuhYOTV5nPy8B9gbadv1wEeB2jJecz5hMvafHE46gVrKn8g8CLxEWFwxhrOAqQZWXGuAByJtuwXYCYwv4zWnEe58fDWu0Kl3txiYXeZr+oCrgP2R3tNywrLYHhJWmdmEmzXMsKY6SgF4P3AvsLLMzl2jpMNKObS6gR3A7qydV3WH1XjgImCi5TCwUlQPzMwekjwklGRgSZKBJUkGliQDS5IMLEkysCQZWJJkYEmSgSXJwJIkA0uSDCxJBpYkGViSZGBJMrAkycCSJANLkoElSQaWJBlYkgwsSYotj/clXEy4LXwM9cDpDgsl4nTgCWAg0vanGVjxnZ09pGpoKC61DB4SSjKwJMnAkiQDS5KBJUkGliQDS5IMrGEY9GOQcqHi+2oKgbXXcSDlwuuVfgMpXOneTZh6UH8Sry1lDw+NVQ2KI7CNQvYo19vA8wYWvAL8EZhVxmt6gNXA1hFqUycBC4G5J/lhSrGUgE3AOuCfI7C9WmAmcBtwZhmv+y2wq9LFKJRKpYp/Ih0dHXOAp4DGYTy9F/gEsH2E30YD8ENgvvuIEvI4sAA4PMLbvRDYDIwbxnMPAp9ub29/odLFSOJQqK6u7hngrmF2S49FCCuyAXEf8WbGS+UayMbk4Qjb3p7tS8PZL5amEFbJBNaiRYsAVgFtwL+GePprEd9KD9DvfqJE9GdjMpah9qU9wE2FQqErlYIkc7K5ra2tCHw/a1XvJpzX6n+XY/qY5wtK7idKROk9GO/H6gW2AMuAGcDG1tbWZPaJ/wHaKJHNtKZdjQAAAABJRU5ErkJggg==\";\r\n\r\n function dt(e) {\r\n var t = e.spriteUrl,\r\n n = e.index,\r\n a = e.isMain,\r\n c = e.isInvisible,\r\n i = e.onError,\r\n o = Object(r.useState)(!1),\r\n u = Object(I.a)(o, 2),\r\n l = u[0],\r\n d = u[1],\r\n b = t && void 0 !== n && !l,\r\n O = Object(r.useCallback)((function() {\r\n d(!0), i && i()\r\n }), [i]);\r\n return Object(s.jsx)(\"div\", {\r\n className: \"vs-thumbnail-container \".concat(a ? \"main\" : \"\"),\r\n style: {\r\n visibility: c ? \"hidden\" : \"visible\",\r\n position: \"relative\",\r\n width: pe.a.ACTIVE_RESOLUTION.width,\r\n height: pe.a.ACTIVE_RESOLUTION.height,\r\n backgroundImage: \"url(\".concat(b ? \"\" : lt, \")\"),\r\n backgroundSize: b ? \"auto auto\" : \"50%\",\r\n backgroundColor: b ? void 0 : \"#666\",\r\n backgroundRepeat: \"no-repeat\",\r\n backgroundPosition: \"center\"\r\n },\r\n id: \"VisualScrubber_thumbnail___\".concat(n),\r\n children: Object(s.jsx)(\"div\", {\r\n className: \"vs-thumbnail\",\r\n style: {\r\n position: \"absolute\",\r\n width: pe.a.ACTIVE_RESOLUTION.width * pe.a.NUMBER_THUMBNAILS_PER_SPRITE,\r\n height: pe.a.ACTIVE_RESOLUTION.height,\r\n left: b ? \"-\".concat(pe.a.ACTIVE_RESOLUTION.width * n, \"px\") : \"center\"\r\n },\r\n children: Object(s.jsx)(\"img\", {\r\n src: t,\r\n alt: \"\",\r\n crossOrigin: \"anonymous\",\r\n onError: O,\r\n onLoad: function() {\r\n return d(!1)\r\n },\r\n id: \"VisualScrubber_thumbnailImage___\".concat(n)\r\n })\r\n })\r\n })\r\n }! function(e) {\r\n e.LEFT = \"LEFT\", e.RIGHT = \"RIGHT\"\r\n }(at || (at = {}));\r\n var bt = function(e) {\r\n var t = e.side,\r\n n = e.spriteUrl,\r\n r = e.mainSpriteUrl,\r\n a = e.mainThumbnailIndex,\r\n c = e.isInvisible;\r\n return void 0 === a ? Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(dt, {\r\n isInvisible: c\r\n }), Object(s.jsx)(dt, {\r\n isInvisible: c\r\n })]\r\n }) : t === at.LEFT ? function(e, t, n, r) {\r\n if (!(pe.a.NUMBER_THUMBNAILS_PER_SPRITE - (e + 1) >= pe.a.NUMBER_THUMBNAILS_PER_SPRITE - pe.a.VISUAL_SCRUBBER_SIDE_CARDS)) return Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(dt, {\r\n spriteUrl: n,\r\n index: e - 2\r\n }), Object(s.jsx)(dt, {\r\n spriteUrl: n,\r\n index: e - 1\r\n })]\r\n });\r\n var a = pe.a.NUMBER_THUMBNAILS_PER_SPRITE - 1;\r\n return 1 === e ? Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(dt, {\r\n spriteUrl: t,\r\n index: a,\r\n isInvisible: r\r\n }), Object(s.jsx)(dt, {\r\n spriteUrl: n,\r\n index: e - 1\r\n })]\r\n }) : Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(dt, {\r\n spriteUrl: t,\r\n index: a - 1,\r\n isInvisible: r\r\n }), Object(s.jsx)(dt, {\r\n spriteUrl: t,\r\n index: a,\r\n isInvisible: r\r\n })]\r\n })\r\n }(a, n, r, c) : function(e, t, n) {\r\n var r = pe.a.NUMBER_THUMBNAILS_PER_SPRITE - (e + 1);\r\n return pe.a.VISUAL_SCRUBBER_SIDE_CARDS > r ? 1 === r ? Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(dt, {\r\n spriteUrl: n,\r\n index: e + 1\r\n }), Object(s.jsx)(dt, {\r\n spriteUrl: t,\r\n index: 0\r\n })]\r\n }) : Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(dt, {\r\n spriteUrl: t,\r\n index: 0\r\n }), Object(s.jsx)(dt, {\r\n spriteUrl: t,\r\n index: 1\r\n })]\r\n }) : Object(s.jsxs)(s.Fragment, {\r\n children: [Object(s.jsx)(dt, {\r\n spriteUrl: n,\r\n index: e + 1\r\n }), Object(s.jsx)(dt, {\r\n spriteUrl: n,\r\n index: e + 2\r\n })]\r\n })\r\n }(a, n, r)\r\n };\r\n\r\n function Ot(e) {\r\n var t = e.progress,\r\n n = e.liveProgress,\r\n a = e.inLivePosition,\r\n c = Object(N.b)(),\r\n i = Object(r.useState)(!1),\r\n o = Object(I.a)(i, 2),\r\n u = o[0],\r\n l = o[1],\r\n d = ut.a.getPositionsFromProgress(t),\r\n b = Object(N.c)((function(e) {\r\n return ot.b.sprites.getSpriteUrl(e, d.spriteIndex - 1)\r\n })),\r\n O = Object(N.c)((function(e) {\r\n return ot.b.sprites.getSpriteUrl(e, d.spriteIndex)\r\n })),\r\n f = Object(N.c)((function(e) {\r\n return a ? \"\" : ot.b.sprites.getSpriteUrl(e, d.spriteIndex + 1)\r\n })),\r\n j = Object(N.c)((function(e) {\r\n return ot.b.sprites.getError(e, d.spriteIndex)\r\n }));\r\n return Object(r.useEffect)((function() {\r\n d.spriteIndex >= 0 && c(ot.a.sprites.requestSprite(t, n, d))\r\n }), [c, t, d, n]), Object(r.useEffect)((function() {\r\n (j || u) && c(ot.a.streamWatchers.retry())\r\n }), [c, j, u]), Object(s.jsx)(\"div\", {\r\n className: \"visual-scrubber-container\",\r\n id: \"VisualScrubber\",\r\n children: Object(s.jsxs)(\"div\", {\r\n className: \"vs-sprites-container\",\r\n children: [Object(s.jsx)(bt, {\r\n side: at.LEFT,\r\n spriteUrl: b,\r\n mainSpriteUrl: O,\r\n mainThumbnailIndex: d.thumbnailIndex,\r\n isInvisible: 0 === d.spriteIndex && d.thumbnailIndex < 2\r\n }), Object(s.jsx)(dt, {\r\n isMain: !0,\r\n spriteUrl: O,\r\n index: d.thumbnailIndex,\r\n onError: function() {\r\n return !u && l(!0)\r\n }\r\n }), Object(s.jsx)(bt, {\r\n side: at.RIGHT,\r\n spriteUrl: f,\r\n mainSpriteUrl: a ? void 0 : O,\r\n mainThumbnailIndex: d.thumbnailIndex\r\n })]\r\n })\r\n })\r\n }\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"c\", (function() {\r\n return r\r\n })), n.d(t, \"b\", (function() {\r\n return a\r\n })), n.d(t, \"a\", (function() {\r\n return be\r\n })), n.d(t, \"d\", (function() {\r\n return Oe\r\n })), n.d(t, \"f\", (function() {\r\n return nt\r\n })), n.d(t, \"e\", (function() {\r\n return at\r\n }));\r\n var r, a, c = n(6),\r\n s = n(8),\r\n i = n(4),\r\n o = n(2),\r\n u = n(1),\r\n l = n(0),\r\n d = n(40),\r\n b = n(100),\r\n O = n(142),\r\n f = n(161),\r\n j = n(163),\r\n p = n(70),\r\n E = n(32),\r\n S = n(128),\r\n v = n(66),\r\n m = n(49),\r\n h = n(36),\r\n g = Object(o.a)().mark(fe),\r\n I = Object(o.a)().mark(je),\r\n C = Object(o.a)().mark(Se),\r\n x = Object(o.a)().mark(ve),\r\n A = Object(o.a)().mark(me),\r\n _ = Object(o.a)().mark(he),\r\n R = Object(o.a)().mark(ge),\r\n T = Object(o.a)().mark(Ie),\r\n N = Object(o.a)().mark(Ce),\r\n k = Object(o.a)().mark(xe),\r\n L = Object(o.a)().mark(Ae),\r\n P = Object(o.a)().mark(_e),\r\n D = Object(o.a)().mark(Re),\r\n y = Object(o.a)().mark(Te),\r\n w = Object(o.a)().mark(Ne),\r\n U = Object(o.a)().mark(Le),\r\n M = Object(o.a)().mark(Pe),\r\n F = Object(o.a)().mark(ye),\r\n G = Object(o.a)().mark(we),\r\n H = Object(o.a)().mark(Ue),\r\n B = Object(o.a)().mark(Me),\r\n V = Object(o.a)().mark(Fe),\r\n W = Object(o.a)().mark(Ge),\r\n Y = Object(o.a)().mark(He),\r\n K = Object(o.a)().mark(Be),\r\n Q = Object(o.a)().mark(Ve),\r\n q = Object(o.a)().mark(We),\r\n Z = Object(o.a)().mark(Ye),\r\n X = Object(o.a)().mark(Ke),\r\n z = Object(o.a)().mark(Qe),\r\n J = Object(o.a)().mark(qe),\r\n $ = Object(o.a)().mark(Ze),\r\n ee = Object(o.a)().mark(ze),\r\n te = Object(o.a)().mark(Je),\r\n ne = Object(o.a)().mark($e),\r\n re = Object(o.a)().mark(et),\r\n ae = Object(o.a)().mark(tt),\r\n ce = Object(o.a)().mark(nt),\r\n se = {\r\n isTrailerMode: !1,\r\n nextProgram: void 0,\r\n liveProgress: 0,\r\n progress: 0,\r\n paddingStart: 0,\r\n paddingEnd: 0,\r\n isPlaybackLocked: !1,\r\n isPlaybackUnlockedByPin: !1,\r\n isPlaybackAdult: !1,\r\n zapping: !1,\r\n isAutoPlayDenied: !1\r\n };\r\n ! function(e) {\r\n e.NO_STREAM = \"no_stream\", e.STREAM_LOADING = \"stream_loading\", e.STREAM_READY = \"stream_ready\", e.STREAM_ERROR = \"stream_error\", e.BUFFERING = \"buffering\", e.PLAY = \"play\", e.PLAYING = \"playing\", e.PAUSED = \"paused\", e.PLAYBACK_COMPLETED = \"playback_completed\", e.PLAYBACK_ERROR = \"playback_error\", e.STOP = \"stop\"\r\n }(r || (r = {})),\r\n function(e) {\r\n e.SET_PLAYBACK_STATE = \"player/SET_PLAYBACK_STATE\", e.SET_PLAYBACK_LOCKED = \"player/SET_PLAYBACK_LOCKED\", e.UNLOCK_PLAYBACK_BY_PIN = \"player/UNLOCK_PLAYBACK_BY_PIN\", e.SET_CURRENT_ASSET = \"player/SET_CURRENT_ASSET\", e.SET_STREAM_PROGRESS = \"player/SET_STREAM_PROGRESS\", e.SET_STREAM_DURATION = \"player/SET_STREAM_DURATION\", e.SET_RECOMMENDATIONS = \"player/SET_RECOMMENDATIONS\", e.SET_RECOMMENDATIONS_ITEM = \"player/SET_RECOMMENDATIONS_ITEM\", e.WATCH_REQUEST = \"player/WATCH_REQUEST\", e.WATCH_SUCCESS = \"player/WATCH_SUCCESS\", e.WATCH_FAIL = \"player/WATCH_FAIL\", e.RESTART_REQUEST = \"player/RESTART_REQUEST\", e.RESTART_SUCCESS = \"player/RESTART_SUCCESS\", e.RESTART_FAIL = \"player/RESTART_FAIL\", e.SEEK_REQUEST = \"player/SEEK_REQUEST\", e.SEEK_SUCCESS = \"player/SEEK_SUCCESS\", e.SEEK_FAIL = \"player/SEEK_FAIL\", e.PAUSE_REQUEST = \"player/PAUSE_REQUEST\", e.PAUSE_SUCCESS = \"player/PAUSE_SUCCESS\", e.PAUSE_FAIL = \"player/PAUSE_FAIL\", e.RESUME_REQUEST = \"player/RESUME_REQUEST\", e.RESUME_SUCCESS = \"player/RESUME_SUCCESS\", e.RESUME_FAIL = \"player/RESUME_FAIL\", e.SET_NEXT_PROGRAM = \"player/SET_NEXT_PROGRAM\", e.SET_MUTE_STATE = \"player/SET_MUTE_STATE\", e.SET_VOLUME = \"player/SET_VOLUME\", e.SET_BITRATE = \"player/SET_BITRATE\", e.CLEAR_STATE = \"player/CLEAR_STATE\", e.LICENSE_REQUEST = \"player/LICENSE_REQUEST\", e.SET_AUTO_PLAY_DENIED = \"player/SET_AUTO_PLAY_DENIED\", e.ACTIVATE_PLAYER_STATS = \"player/ACTIVATE_PLAYER_STATS\"\r\n }(a || (a = {}));\r\n var ie, oe, ue, le, de = {\r\n watchRequest: function(e) {\r\n return {\r\n type: a.WATCH_REQUEST,\r\n meta: e\r\n }\r\n },\r\n watchSuccess: function(e) {\r\n return {\r\n type: a.WATCH_SUCCESS,\r\n payload: e\r\n }\r\n },\r\n watchFail: function(e) {\r\n return {\r\n type: a.WATCH_FAIL,\r\n error: e\r\n }\r\n },\r\n restartRequest: function() {\r\n return {\r\n type: a.RESTART_REQUEST\r\n }\r\n },\r\n restartSuccess: function(e) {\r\n return {\r\n type: a.RESTART_SUCCESS,\r\n payload: e\r\n }\r\n },\r\n restartFail: function(e) {\r\n return {\r\n type: a.RESTART_FAIL,\r\n error: e\r\n }\r\n },\r\n seekRequest: function(e) {\r\n return {\r\n type: a.SEEK_REQUEST,\r\n meta: e\r\n }\r\n },\r\n seekSuccess: function(e) {\r\n return {\r\n type: a.SEEK_SUCCESS,\r\n payload: e\r\n }\r\n },\r\n seekFail: function(e) {\r\n return {\r\n type: a.SEEK_FAIL,\r\n error: e\r\n }\r\n },\r\n pauseRequest: function() {\r\n return {\r\n type: a.PAUSE_REQUEST\r\n }\r\n },\r\n pauseSuccess: function() {\r\n return {\r\n type: a.PAUSE_SUCCESS\r\n }\r\n },\r\n pauseFail: function(e) {\r\n return {\r\n type: a.PAUSE_FAIL,\r\n error: e\r\n }\r\n },\r\n resumeRequest: function() {\r\n return {\r\n type: a.RESUME_REQUEST\r\n }\r\n },\r\n resumeSuccess: function(e) {\r\n return {\r\n type: a.RESUME_SUCCESS,\r\n payload: e\r\n }\r\n },\r\n resumeFail: function(e) {\r\n return {\r\n type: a.RESUME_FAIL,\r\n error: e\r\n }\r\n },\r\n setPlaybackState: function(e) {\r\n return {\r\n type: a.SET_PLAYBACK_STATE,\r\n meta: e\r\n }\r\n },\r\n setPlaybackLocked: function(e) {\r\n return {\r\n type: a.SET_PLAYBACK_LOCKED,\r\n meta: e\r\n }\r\n },\r\n unlockPlaybackByPin: function() {\r\n return {\r\n type: a.UNLOCK_PLAYBACK_BY_PIN\r\n }\r\n },\r\n setCurrentAsset: function(e) {\r\n return {\r\n type: a.SET_CURRENT_ASSET,\r\n meta: e\r\n }\r\n },\r\n setStreamProgress: function(e, t) {\r\n return {\r\n type: a.SET_STREAM_PROGRESS,\r\n meta: {\r\n progress: e,\r\n liveProgress: t\r\n }\r\n }\r\n },\r\n setStreamDuration: function(e) {\r\n return {\r\n type: a.SET_STREAM_DURATION,\r\n meta: e\r\n }\r\n },\r\n setRecommendations: function(e) {\r\n return {\r\n type: a.SET_RECOMMENDATIONS,\r\n meta: e\r\n }\r\n },\r\n setRecommendationsItem: function(e) {\r\n return {\r\n type: a.SET_RECOMMENDATIONS_ITEM,\r\n payload: e\r\n }\r\n },\r\n setMuteState: function(e) {\r\n return {\r\n type: a.SET_MUTE_STATE,\r\n meta: e\r\n }\r\n },\r\n setVolume: function(e) {\r\n return {\r\n type: a.SET_VOLUME,\r\n meta: e\r\n }\r\n },\r\n setBitrate: function(e) {\r\n return {\r\n type: a.SET_BITRATE,\r\n meta: e\r\n }\r\n },\r\n setNextProgram: function(e) {\r\n return {\r\n type: a.SET_NEXT_PROGRAM,\r\n payload: e\r\n }\r\n },\r\n setAutoPlayDenied: function(e) {\r\n return {\r\n type: a.SET_AUTO_PLAY_DENIED,\r\n meta: e\r\n }\r\n },\r\n clearState: function() {\r\n return {\r\n type: a.CLEAR_STATE\r\n }\r\n },\r\n licenseRequest: function(e, t, n) {\r\n return {\r\n type: a.LICENSE_REQUEST,\r\n meta: {\r\n drmId: e,\r\n challenge: t,\r\n isRenewal: n\r\n }\r\n }\r\n },\r\n activatePlayerStats: function(e) {\r\n return {\r\n type: a.ACTIVATE_PLAYER_STATS,\r\n meta: e\r\n }\r\n }\r\n },\r\n be = {\r\n watchRequest: de.watchRequest,\r\n restartRequest: de.restartRequest,\r\n seekRequest: de.seekRequest,\r\n pauseRequest: de.pauseRequest,\r\n resumeRequest: de.resumeRequest,\r\n setPlaybackState: de.setPlaybackState,\r\n setPlaybackLocked: de.setPlaybackLocked,\r\n unlockPlaybackByPin: de.unlockPlaybackByPin,\r\n setStreamProgress: de.setStreamProgress,\r\n setStreamDuration: de.setStreamDuration,\r\n setRecommendations: de.setRecommendations,\r\n setRecommendationsItem: de.setRecommendationsItem,\r\n setNextProgram: de.setNextProgram,\r\n setMuteState: de.setMuteState,\r\n setVolume: de.setVolume,\r\n setBitrate: de.setBitrate,\r\n setAutoPlayDenied: de.setAutoPlayDenied,\r\n clearState: de.clearState,\r\n licenseRequest: de.licenseRequest,\r\n activatePlayerStats: de.activatePlayerStats\r\n },\r\n Oe = {\r\n data: function(e) {\r\n return e.player\r\n },\r\n watchRequest: function(e) {\r\n return e.player.watch\r\n },\r\n zapping: function(e) {\r\n return e.player.zapping\r\n },\r\n trickModesEnable: function(e) {\r\n return false\r\n },\r\n trickModes: function(e) {\r\nvar trickModes = {\r\n isPauseAllowed: true,\r\n isRWAllowed: true,\r\n isFFAllowed: true\r\n};\r\n return trickModes\r\n },\r\n isTrailerMode: function(e) {\r\n return e.player.isTrailerMode\r\n },\r\n isLiveMode: function(e) {\r\n return e.player.isLiveMode\r\n },\r\n isLivePosition: function(e) {\r\n return e.player.isLivePosition\r\n },\r\n isLive: function(e) {\r\n return !!e.player.isLivePosition\r\n },\r\n isWatchProcessing: function(e) {\r\n var t;\r\n return (null === (t = e.player.watch) || void 0 === t ? void 0 : t.processing) || !1\r\n },\r\n isWatchProcessed: function(e) {\r\n var t;\r\n return (null === (t = e.player.watch) || void 0 === t ? void 0 : t.processed) || !1\r\n },\r\n watchError: function(e) {\r\n var t;\r\n return null === (t = e.player.watch) || void 0 === t ? void 0 : t.error\r\n },\r\n isRestartProcessing: function(e) {\r\n var t;\r\n return (null === (t = e.player.restart) || void 0 === t ? void 0 : t.processing) || !1\r\n },\r\n isRestartProcessed: function(e) {\r\n var t;\r\n return (null === (t = e.player.restart) || void 0 === t ? void 0 : t.processed) || !1\r\n },\r\n restartError: function(e) {\r\n var t;\r\n return null === (t = e.player.restart) || void 0 === t ? void 0 : t.error\r\n },\r\n isSeekProcessed: function(e) {\r\n var t;\r\n return (null === (t = e.player.seek) || void 0 === t ? void 0 : t.processed) || !1\r\n },\r\n isSeekProcessing: function(e) {\r\n var t;\r\n return (null === (t = e.player.seek) || void 0 === t ? void 0 : t.processing) || !1\r\n },\r\n seekError: function(e) {\r\n var t;\r\n return null === (t = e.player.seek) || void 0 === t ? void 0 : t.error\r\n },\r\n isPauseProcessed: function(e) {\r\n var t;\r\n return (null === (t = e.player.pause) || void 0 === t ? void 0 : t.processed) || !1\r\n },\r\n pauseError: function(e) {\r\n var t;\r\n return null === (t = e.player.pause) || void 0 === t ? void 0 : t.error\r\n },\r\n isMute: function(e) {\r\n return e.player.isMute\r\n },\r\n volume: function(e) {\r\n return e.player.volume\r\n },\r\n bitrate: function(e) {\r\n return e.player.bitrate\r\n },\r\n isResumeProcessed: function(e) {\r\n var t;\r\n return (null === (t = e.player.resume) || void 0 === t ? void 0 : t.processed) || !1\r\n },\r\n isResumeProcessing: function(e) {\r\n var t;\r\n return (null === (t = e.player.resume) || void 0 === t ? void 0 : t.processing) || !1\r\n },\r\n resumeError: function(e) {\r\n var t;\r\n return null === (t = e.player.resume) || void 0 === t ? void 0 : t.error\r\n },\r\n playbackState: function(e) {\r\n return e.player.playbackState\r\n },\r\n currentAsset: function(e) {\r\n return e.player.currentAsset\r\n },\r\n currentStream: function(e) {\r\n return e.player.currentStream\r\n },\r\n targetStreamPosition: function(e) {\r\n return e.player.targetStreamPosition\r\n },\r\n originalStream: function(e) {\r\n return e.player.originalStream\r\n },\r\n channel: function(e) {\r\n return e.player.relatedChannel\r\n },\r\n currentDuration: function(e) {\r\n return e.player.duration\r\n },\r\n currentProgress: function(e) {\r\n return e.player.progress\r\n },\r\n liveProgress: function(e) {\r\n return e.player.liveProgress\r\n },\r\n recommendations: function(e) {\r\n return e.player.recommendations\r\n },\r\n paddingStart: function(e) {\r\n return e.player.paddingStart || 0\r\n },\r\n paddingEnd: function(e) {\r\n return e.player.paddingEnd || 0\r\n },\r\n nextProgram: function(e) {\r\n return e.player.nextProgram\r\n },\r\n isPlaybackLocked: function(e) {\r\n return e.player.isPlaybackLocked\r\n },\r\n isPlaybackUnlockedByPin: function(e) {\r\n return e.player.isPlaybackUnlockedByPin\r\n },\r\n isPlaybackAdult: function(e) {\r\n return e.player.isPlaybackAdult\r\n },\r\n ssmLicense: function(e) {\r\n return S.b.license(e)\r\n },\r\n ssmError: function(e) {\r\n return S.b.error(e)\r\n },\r\n isAutoPlayDenied: function(e) {\r\n return e.player.isAutoPlayDenied\r\n },\r\n isPlayerStatsActivated: function(e) {\r\n return e.player.playerStats\r\n }\r\n };\r\n\r\n function fe() {\r\n return Object(o.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n if (!ue) {\r\n e.next = 4;\r\n break\r\n }\r\n return e.next = 3, Object(u.d)(ue);\r\n case 3:\r\n ue = void 0;\r\n case 4:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), g)\r\n }\r\n\r\n function je() {\r\n return Object(o.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n if (!le) {\r\n e.next = 4;\r\n break\r\n }\r\n return e.next = 3, Object(u.d)(le);\r\n case 3:\r\n le = void 0;\r\n case 4:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), I)\r\n }\r\n\r\n function pe(e, t) {\r\n var n = l.u.PLAY;\r\n return e || 0 !== t || (n = l.u.FIRST_PLAY), n\r\n }\r\n\r\n function Ee(e) {\r\n var t;\r\n return {\r\n isLive: !!e.isLivePosition,\r\n asset: e.currentAsset,\r\n channel: e.relatedChannel,\r\n fileId: (null === (t = e.originalStream) || void 0 === t ? void 0 : t.id) || 0,\r\n location: e.progress || 0\r\n }\r\n }\r\n\r\n function Se(e, t) {\r\n var n, r, a, c, s, i, d, b;\r\n return Object(o.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return n = e.isLive, r = e.asset, a = e.channel, c = e.fileId, s = e.location, i = r, n && (i = a, d = null === r || void 0 === r ? void 0 : r.id), o.next = 5, Object(u.j)(l.C.ApiContextSelector.default);\r\n case 5:\r\n return b = o.sent, o.abrupt(\"return\", l.p.getSetBookmarkBody(b, i, c, t, Math.floor(s), d));\r\n case 7:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), C)\r\n }\r\n\r\n function ve(e, t) {\r\n var n;\r\n return Object(o.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(u.c)(Se, e, t);\r\n case 2:\r\n return n = r.sent, r.next = 5, Object(u.c)(S.a.renewLicense, n);\r\n case 5:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), x)\r\n }\r\n\r\n function me() {\r\n var e, t, n;\r\n return Object(o.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(u.j)(Oe.currentProgress);\r\n case 2:\r\n return e = r.sent, t = Object(i.a)(Object(i.a)({}, oe), {}, {\r\n location: e\r\n }), r.next = 6, Object(u.c)(Se, t, l.u.STOP);\r\n case 6:\r\n if (n = r.sent, !t.asset) {\r\n r.next = 10;\r\n break\r\n }\r\n return r.next = 10, Object(u.f)(l.C.BookmarksCache.updateBookmarksSaga, t.asset, e);\r\n case 10:\r\n return r.next = 12, Object(u.c)(S.a.stopSession, n);\r\n case 12:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), A)\r\n }\r\n\r\n function he(e) {\r\n var t, n;\r\n return Object(o.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 3, Object(u.e)(l.Pb.secondsToMilliseconds(e));\r\n case 3:\r\n return a.next = 5, Object(u.j)(Oe.currentProgress);\r\n case 5:\r\n return t = a.sent, a.next = 8, Object(u.j)(Oe.playbackState);\r\n case 8:\r\n return n = a.sent, a.next = 11, Object(u.c)(ve, Object(i.a)(Object(i.a)({}, oe), {}, {\r\n location: t || 0\r\n }), n === r.PAUSED ? l.u.PAUSE : l.u.HIT);\r\n case 11:\r\n a.next = 0;\r\n break;\r\n case 13:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), _)\r\n }\r\n\r\n function ge(e) {\r\n var t;\r\n return Object(o.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.prev = 0, n.next = 3, Object(u.f)(he, e);\r\n case 3:\r\n return t = n.sent, n.next = 6, Object(u.l)(a.LICENSE_REQUEST);\r\n case 6:\r\n return n.next = 8, Object(u.d)(t);\r\n case 8:\r\n return n.prev = 8, ue = void 0, n.finish(8);\r\n case 11:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), R, null, [\r\n [0, , 8, 11]\r\n ])\r\n }\r\n\r\n function Ie() {\r\n return Object(o.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.prev = 0, e.next = 3, Object(u.l)((function(e) {\r\n return e.type === a.SET_PLAYBACK_STATE && (e.meta === r.STOP || e.meta === r.PLAYBACK_ERROR) || e.type === l.C.Credentials.ActionTypes.LOGOUT_REQUEST\r\n }));\r\n case 3:\r\n return e.next = 5, Object(u.c)(fe);\r\n case 5:\r\n return e.next = 7, Object(u.c)(me);\r\n case 7:\r\n return e.prev = 7, le = void 0, e.finish(7);\r\n case 10:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), T, null, [\r\n [0, , 7, 10]\r\n ])\r\n }\r\n\r\n function Ce() {\r\n return Object(o.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(u.j)(S.b.isValidSession);\r\n case 2:\r\n if (!e.sent) {\r\n e.next = 10;\r\n break\r\n }\r\n return e.next = 6, Object(u.c)(me);\r\n case 6:\r\n return e.next = 8, Object(u.c)(fe);\r\n case 8:\r\n return e.next = 10, Object(u.c)(je);\r\n case 10:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), N)\r\n }\r\n\r\n function xe(e, t, n) {\r\n var r, a;\r\n return Object(o.a)().wrap((function(c) {\r\n for (;;) switch (c.prev = c.next) {\r\n case 0:\r\n return c.next = 2, Object(u.j)(l.C.Dms.Selectors.isSsmEnabled);\r\n case 2:\r\n if (c.sent) {\r\n c.next = 5;\r\n break\r\n }\r\n return c.abrupt(\"return\");\r\n case 5:\r\n return c.next = 7, Object(u.c)(Ce);\r\n case 7:\r\n if (!n) {\r\n c.next = 9;\r\n break\r\n }\r\n return c.abrupt(\"return\");\r\n case 9:\r\n return c.next = 11, Object(u.c)(Se, e, t);\r\n case 11:\r\n return r = c.sent, c.next = 14, Object(u.c)(S.a.startSession, r);\r\n case 14:\r\n return a = c.sent, oe = e, c.next = 18, Object(u.k)(ge, a.heartbeat);\r\n case 18:\r\n return ue = c.sent, c.next = 21, Object(u.k)(Ie);\r\n case 21:\r\n le = c.sent;\r\n case 22:\r\n case \"end\":\r\n return c.stop()\r\n }\r\n }), k)\r\n }\r\n\r\n function Ae(e) {\r\n var t, n;\r\n return Object(o.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return t = Ee(e), n = pe(t.isLive, t.location), r.next = 4, Object(u.c)(xe, t, n, e.isTrailerMode);\r\n case 4:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), L)\r\n }\r\n\r\n function _e(e, t) {\r\n var n;\r\n return Object(o.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return n = Object(i.a)(Object(i.a)({}, oe), {}, {\r\n isLive: e,\r\n location: t\r\n }), r.next = 3, Object(u.c)(xe, n, l.u.PLAY);\r\n case 3:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), P)\r\n }\r\n\r\n function Re(e) {\r\n var t;\r\n return Object(o.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return t = Object(i.a)(Object(i.a)({}, oe), {}, {\r\n isLive: !1,\r\n location: e\r\n }), n.next = 3, Object(u.c)(xe, t, l.u.PLAY);\r\n case 3:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), D)\r\n }\r\n\r\n function Te(e) {\r\n var t, n, a, c, s, d, b;\r\n return Object(o.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return t = {\r\n drmId: e.meta.drmId,\r\n challenge: e.meta.challenge\r\n }, o.next = 3, Object(u.j)(Oe.currentProgress);\r\n case 3:\r\n return n = o.sent, a = Object(i.a)(Object(i.a)({}, oe), {}, {\r\n location: n || 0\r\n }), o.next = 7, Object(u.j)(Oe.playbackState);\r\n case 7:\r\n if (c = o.sent, !e.meta.isRenewal) {\r\n o.next = 16;\r\n break\r\n }\r\n return o.next = 11, Object(u.c)(Se, a, c === r.PAUSED ? l.u.PAUSE : l.u.HIT);\r\n case 11:\r\n return s = o.sent, o.next = 14, Object(u.c)(S.a.renewLicense, s, t);\r\n case 14:\r\n o.next = 23;\r\n break;\r\n case 16:\r\n return d = pe(a.isLive, a.location), o.next = 19, Object(u.c)(Se, a, d);\r\n case 19:\r\n return b = o.sent, o.next = 22, Object(u.c)(S.a.getLicense, ie || {}, b, t);\r\n case 22:\r\n ie = void 0;\r\n case 23:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), y)\r\n }\r\n\r\n function Ne(e, t) {\r\n var n;\r\n return Object(o.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(u.c)(l.C.Epg.Programs.getFuturePrograms, e, t, 1);\r\n case 2:\r\n if (null === (n = r.sent) || void 0 === n || !n.length) {\r\n r.next = 6;\r\n break\r\n }\r\n return r.next = 6, Object(u.h)(de.setNextProgram(n[0]));\r\n case 6:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), w)\r\n }\r\n\r\n function ke(e, t) {\r\n return t === l.f.RECORDING && e.find((function(e) {\r\n return e.fileFormat === l.K.NPVR\r\n })) || e[0]\r\n }\r\n\r\n function Le(e) {\r\n var t, n, r, a, c, i;\r\n return Object(o.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return t = e.asset, o.next = 3, Object(u.c)(l.C.Epg.Live.getLiveProgram, t.epgId);\r\n case 3:\r\n return n = o.sent, r = !1, n && (r = l.v.isResartAllowedForLiveAsset(n), c = l.v.mapContentTagsToTrickModes(n), i = Object(s.a)(c, 1), a = i[0]), o.abrupt(\"return\", {\r\n isLiveMode: !0,\r\n trickModesEnable: r,\r\n trickModes: a,\r\n isLivePosition: !0,\r\n currentAsset: n,\r\n relatedChannel: t,\r\n originalStream: ke(t.streams, t.mediaType),\r\n targetStreamPosition: void 0,\r\n progress: n ? l.Pb.nowUnixEpoch() - l.Pb.toUnixEpoch(n.startDate) : 0,\r\n duration: n ? n.durationValue * l.Pb.MIN_SECS : 0\r\n });\r\n case 7:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), U)\r\n }\r\n\r\n function Pe(e) {\r\n var t, n, r, a, c, i, d, O, f;\r\n return Object(o.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return t = e.asset, o.next = 3, Object(u.j)(b.a.getChannelByEpgId, t.channelEpgId);\r\n case 3:\r\n if (n = o.sent) {\r\n o.next = 6;\r\n break\r\n }\r\n throw l.Zb.fromError(new Error(\"Trying to watch content in a not playable channel: \".concat(t.id)));\r\n case 6:\r\n return r = t.durationValue * l.Pb.MIN_SECS, a = !1, i = l.v.mapContentTagsToTrickModes(t), l.i.isEpg(t) ? (a = l.v.isResartAllowedForCatchupAsset(t), d = Object(s.a)(i, 2), c = d[1]) : (a = l.v.isResartAllowedForRecording(t), O = Object(s.a)(i, 3), c = O[2]), f = void 0 !== e.progress ? l.i.getProgressInSeconds(e.progress, r) : void 0, o.abrupt(\"return\", {\r\n isLiveMode: l.Qb.getRelativeTime(t) === l.Db.LIVE || e.keepLiveMode,\r\n isLivePosition: !1,\r\n trickModesEnable: a,\r\n trickModes: c,\r\n currentAsset: t,\r\n relatedChannel: n,\r\n originalStream: ke(n.streams, t.mediaType),\r\n targetStreamPosition: f,\r\n progress: f || 0,\r\n duration: r\r\n });\r\n case 12:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), M)\r\n }\r\n\r\n function De(e) {\r\n var t, n = (null === e || void 0 === e || null === (t = e.stream) || void 0 === t ? void 0 : t.fileFormat) === l.K.TRAILER,\r\n r = n ? 0 : e.asset.durationValue * l.Pb.MIN_SECS,\r\n a = void 0 !== e.progress ? l.i.getProgressInSeconds(e.progress, r) : void 0;\r\n return {\r\n isTrailerMode: n,\r\n isLiveMode: !1,\r\n isLivePosition: void 0,\r\n trickModesEnable: l.v.isResartAllowedForVodAsset(e.asset),\r\n trickModes: l.v.mapContentTagsToTrickModes(e.asset)[0],\r\n currentAsset: e.asset,\r\n relatedChannel: void 0,\r\n originalStream: e.stream,\r\n targetStreamPosition: a,\r\n progress: a || 0,\r\n duration: r\r\n }\r\n }\r\n\r\n function ye(e, t, n) {\r\n var r, a;\r\n return Object(o.a)().wrap((function(c) {\r\n for (;;) switch (c.prev = c.next) {\r\n case 0:\r\n if (t.fileFormat !== l.K.TRAILER) {\r\n c.next = 2;\r\n break\r\n }\r\n return c.abrupt(\"return\", {\r\n uri: t.url,\r\n id: t.id\r\n });\r\n case 2:\r\n return c.next = 4, Object(u.j)(l.C.Dms.Selectors.isSsmEnabled);\r\n case 4:\r\n if (c.sent) {\r\n c.next = 10;\r\n break\r\n }\r\n return c.next = 8, Object(u.c)(f.b, e, t, n);\r\n case 8:\r\n return r = c.sent, c.abrupt(\"return\", {\r\n uri: r.url,\r\n token: r.token,\r\n id: t.id\r\n });\r\n case 10:\r\n return c.next = 12, Object(u.c)(f.c, e, t, n);\r\n case 12:\r\n return a = c.sent, ie = a.requestBody, c.abrupt(\"return\", {\r\n uri: a.data.url,\r\n id: t.id\r\n });\r\n case 15:\r\n case \"end\":\r\n return c.stop()\r\n }\r\n }), F)\r\n }\r\n\r\n function we(e, t) {\r\n var n, r, a, c, s, i, d;\r\n return Object(o.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return o.next = 2, Object(u.j)(Oe.isLive);\r\n case 2:\r\n return n = o.sent, o.next = 5, Object(u.j)(Oe.channel);\r\n case 5:\r\n return r = o.sent, o.next = 8, Object(u.j)(Oe.currentAsset);\r\n case 8:\r\n return a = o.sent, o.next = 11, Object(u.j)(Oe.originalStream);\r\n case 11:\r\n return c = o.sent, s = n && l.i.isChannel(e) && (r === e || r.id === e.id), i = e.id === (null === a || void 0 === a ? void 0 : a.id), d = i && (!t || t.id === (null === c || void 0 === c ? void 0 : c.id)), o.abrupt(\"return\", s || d);\r\n case 16:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), G)\r\n }\r\n\r\n function Ue(e, t, n) {\r\n var r, a;\r\n return Object(o.a)().wrap((function(c) {\r\n for (;;) switch (c.prev = c.next) {\r\n case 0:\r\n return c.next = 2, Object(u.c)(j.b, n, t);\r\n case 2:\r\n return r = c.sent, (a = Object(i.a)(Object(i.a)({}, e), r)).currentStream && (a.currentStream = Object(i.a)(Object(i.a)({}, a.currentStream), {}, {\r\n padded: !0\r\n })), c.abrupt(\"return\", a);\r\n case 6:\r\n case \"end\":\r\n return c.stop()\r\n }\r\n }), H)\r\n }\r\n\r\n function Me(e) {\r\n var t, n, a, c, s, d, b, f, j, E, S, v, m, g, I, C;\r\n return Object(o.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return t = e.meta, o.prev = 1, o.next = 4, Object(u.c)(we, t.asset, t.stream);\r\n case 4:\r\n if (!o.sent) {\r\n o.next = 8;\r\n break\r\n }\r\n return o.next = 7, Object(u.h)(de.watchSuccess({}));\r\n case 7:\r\n return o.abrupt(\"return\");\r\n case 8:\r\n o.t0 = t.asset.mediaType, o.next = o.t0 === l.f.LINEAR ? 11 : o.t0 === l.f.EPG || o.t0 === l.f.RECORDING ? 17 : o.t0 === l.f.MOVIE || o.t0 === l.f.EPISODE ? 21 : 23;\r\n break;\r\n case 11:\r\n return o.next = 13, Object(u.h)(O.b.Update(t.asset));\r\n case 13:\r\n return o.next = 15, Object(u.c)(Le, t);\r\n case 15:\r\n return n = o.sent, o.abrupt(\"break\", 24);\r\n case 17:\r\n return o.next = 19, Object(u.c)(Pe, t);\r\n case 19:\r\n return n = o.sent, o.abrupt(\"break\", 24);\r\n case 21:\r\n return n = De(t), o.abrupt(\"break\", 24);\r\n case 23:\r\n throw l.Zb.fromError(new Error(\"Unexpected Asset type: \".concat(t.asset.mediaType)));\r\n case 24:\r\n if ((n = Object(i.a)(Object(i.a)({}, se), n)).originalStream) {\r\n o.next = 27;\r\n break\r\n }\r\n throw l.Zb.fromError(new Error(\"Unexpected missing stream for asset: \".concat(t.asset.id)));\r\n case 27:\r\n return o.next = 29, Object(u.c)(Ae, n);\r\n case 29:\r\n return c = (a = n).currentAsset, s = a.isLivePosition, d = !(s || !c || !l.i.isEpg(c)), b = {\r\n applyPadding: d\r\n }, o.next = 34, Object(u.c)(ye, t.asset, n.originalStream, b);\r\n case 34:\r\n if (f = o.sent, j = c ? p.a.UI.getAssetParentalState(c) : void 0, E = j === l.hb.PIN, S = c ? p.a.UI.isAdult(c) : void 0, v = t.zapping, m = Object(i.a)(Object(i.a)({}, n), {}, {\r\n currentStream: f,\r\n isPlaybackLocked: E,\r\n isPlaybackAdult: S,\r\n zapping: v,\r\n playbackState: r.STREAM_LOADING\r\n }), !d) {\r\n o.next = 46;\r\n break\r\n }\r\n return o.next = 43, Object(u.c)(Ue, m, f, c);\r\n case 43:\r\n m = o.sent, I = (g = m).paddingStart, void 0 === g.targetStreamPosition && 0 !== I && (m = Object(i.a)(Object(i.a)({}, m), {}, {\r\n targetStreamPosition: I\r\n }));\r\n case 46:\r\n return o.next = 48, Object(u.h)(de.watchSuccess(m));\r\n case 48:\r\n if (!(m.isLiveMode && m.relatedChannel && m.currentAsset)) {\r\n o.next = 51;\r\n break\r\n }\r\n return o.next = 51, Object(u.c)(Ne, m.relatedChannel.epgId, m.currentAsset);\r\n case 51:\r\n if (!m.currentAsset || !m.originalStream) {\r\n o.next = 54;\r\n break\r\n }\r\n return o.next = 54, Object(u.f)(h.f, m.currentAsset, m.originalStream, m.isLiveMode);\r\n case 54:\r\n o.next = 64;\r\n break;\r\n case 56:\r\n return o.prev = 56, o.t1 = o.catch(1), C = l.Zb.fromError(o.t1, l.Q.generic.unknownError), o.next = 61, Object(u.h)(de.watchFail(C));\r\n case 61:\r\n if (!(n && n.currentAsset && n.originalStream)) {\r\n o.next = 64;\r\n break\r\n }\r\n return o.next = 64, Object(u.f)(h.f, n.currentAsset, n.originalStream, n.isLiveMode, C);\r\n case 64:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), B, null, [\r\n [1, 56]\r\n ])\r\n }\r\n\r\n function Fe(e, t) {\r\n var n, r;\r\n return Object(o.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 2, Object(u.j)(Oe.currentAsset);\r\n case 2:\r\n return n = a.sent, r = l.i.isEpg(n) ? Object(i.a)({\r\n streamStartTime: l.Pb.toIsoStringSeconds(n.startDate),\r\n streamEndTime: l.Pb.toIsoStringSeconds(n.endDate)\r\n }, t) : t, a.next = 6, Object(u.c)(ye, n, e, r);\r\n case 6:\r\n return a.abrupt(\"return\", a.sent);\r\n case 7:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), V)\r\n }\r\n\r\n function Ge(e) {\r\n var t;\r\n return Object(o.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(u.j)(Oe.channel);\r\n case 2:\r\n return t = n.sent, n.next = 5, Object(u.c)(ye, t, e);\r\n case 5:\r\n return n.abrupt(\"return\", n.sent);\r\n case 6:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), W)\r\n }\r\n\r\n function He(e, t) {\r\n var n, a, c, s, d, b, O, f, j, p, E, S, v, m, h, g, I, C, x, A, _;\r\n return Object(o.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return n = {}, o.next = 3, Object(u.j)(Oe.playbackState);\r\n case 3:\r\n if ((a = o.sent) === r.PLAYING || a === r.PAUSED || a === r.BUFFERING || a === r.PLAYBACK_COMPLETED) {\r\n o.next = 6;\r\n break\r\n }\r\n return o.abrupt(\"return\", n);\r\n case 6:\r\n return c = e.position, o.next = 9, Object(u.j)(Oe.isLiveMode);\r\n case 9:\r\n return s = o.sent, o.next = 12, Object(u.j)(Oe.isLivePosition);\r\n case 12:\r\n return d = o.sent, o.next = 15, Object(u.j)(Oe.currentStream);\r\n case 15:\r\n return b = o.sent, o.next = 18, Object(u.j)(Oe.currentAsset);\r\n case 18:\r\n return O = o.sent, o.next = 21, Object(u.j)(Oe.paddingStart);\r\n case 21:\r\n if (f = o.sent, j = s && !d && c === l.t.LIVE_POSITION_VALUE, p = s && d && c !== l.t.LIVE_POSITION_VALUE, E = s && !d && t && !b.padded, !(p || j || E)) {\r\n o.next = 62;\r\n break\r\n }\r\n return o.next = 28, Object(u.j)(Oe.originalStream);\r\n case 28:\r\n if (S = o.sent, !j) {\r\n o.next = 35;\r\n break\r\n }\r\n if (!O || !l.i.isRecording(O)) {\r\n o.next = 35;\r\n break\r\n }\r\n return o.next = 33, Object(u.j)(Oe.channel);\r\n case 33:\r\n v = o.sent, S = ke(v.streams, v.mediaType);\r\n case 35:\r\n if (m = j ? Ge : Fe, g = {\r\n applyPadding: h = !(!p && !E || !t)\r\n }, I = c, !(C = c === l.t.LIVE_POSITION_VALUE)) {\r\n o.next = 45;\r\n break\r\n }\r\n return c = void 0, o.next = 44, Object(u.j)(Oe.liveProgress);\r\n case 44:\r\n I = o.sent;\r\n case 45:\r\n return o.next = 47, Object(u.c)(_e, C, I);\r\n case 47:\r\n return o.next = 49, Object(u.c)(m, S, g);\r\n case 49:\r\n if (x = o.sent, n = {\r\n isLivePosition: C,\r\n originalStream: S,\r\n currentStream: x,\r\n targetStreamPosition: c,\r\n playbackState: r.STREAM_LOADING,\r\n progress: I\r\n }, !h) {\r\n o.next = 59;\r\n break\r\n }\r\n return o.next = 54, Object(u.c)(Ue, n, x, O);\r\n case 54:\r\n n = o.sent, A = n.paddingStart, 0 === c && void 0 !== A && 0 !== A && (n = Object(i.a)(Object(i.a)({}, n), {}, {\r\n targetStreamPosition: A\r\n })), o.next = 60;\r\n break;\r\n case 59:\r\n f && (n = Object(i.a)(Object(i.a)({}, n), {}, {\r\n paddingStart: 0,\r\n paddingEnd: 0\r\n }));\r\n case 60:\r\n o.next = 64;\r\n break;\r\n case 62:\r\n n = {\r\n targetStreamPosition: _ = t && f ? f : c,\r\n progress: _\r\n };\r\n case 64:\r\n return o.abrupt(\"return\", n);\r\n case 65:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), Y)\r\n }\r\n\r\n function Be() {\r\n var e, t, n, r;\r\n return Object(o.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 2, Object(u.j)(Oe.currentAsset);\r\n case 2:\r\n return e = a.sent, a.next = 5, Object(u.j)(Oe.originalStream);\r\n case 5:\r\n return t = a.sent, a.prev = 6, a.next = 9, Object(u.c)(He, {\r\n position: 0\r\n }, !0);\r\n case 9:\r\n return n = a.sent, a.next = 12, Object(u.h)(de.restartSuccess(n));\r\n case 12:\r\n if (!e || !t) {\r\n a.next = 15;\r\n break\r\n }\r\n return a.next = 15, Object(u.f)(h.e, e, t);\r\n case 15:\r\n a.next = 25;\r\n break;\r\n case 17:\r\n return a.prev = 17, a.t0 = a.catch(6), r = l.Zb.fromError(a.t0, l.Q.generic.unknownError), a.next = 22, Object(u.h)(de.restartFail(r));\r\n case 22:\r\n if (!e || !t) {\r\n a.next = 25;\r\n break\r\n }\r\n return a.next = 25, Object(u.f)(h.e, e, t, r);\r\n case 25:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), K, null, [\r\n [6, 17]\r\n ])\r\n }\r\n\r\n function Ve(e) {\r\n var t;\r\n return Object(o.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.prev = 0, n.next = 3, Object(u.c)(He, e.meta);\r\n case 3:\r\n return t = n.sent, n.next = 6, Object(u.h)(de.seekSuccess(t));\r\n case 6:\r\n n.next = 12;\r\n break;\r\n case 8:\r\n return n.prev = 8, n.t0 = n.catch(0), n.next = 12, Object(u.h)(de.seekFail(l.Zb.fromError(n.t0, l.Q.generic.unknownError)));\r\n case 12:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), Q, null, [\r\n [0, 8]\r\n ])\r\n }\r\n\r\n function We() {\r\n return Object(o.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(u.j)(Oe.playbackState);\r\n case 2:\r\n if (e.sent === r.PLAYING) {\r\n e.next = 5;\r\n break\r\n }\r\n return e.abrupt(\"return\");\r\n case 5:\r\n return e.next = 7, Object(u.h)(de.pauseSuccess());\r\n case 7:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), q)\r\n }\r\n\r\n function Ye() {\r\n var e, t, n, a, c, s, i, d, b, O, f;\r\n return Object(o.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return o.prev = 0, o.next = 3, Object(u.j)(Oe.playbackState);\r\n case 3:\r\n return e = o.sent, o.next = 6, Object(u.j)(Oe.isAutoPlayDenied);\r\n case 6:\r\n if (t = o.sent, e === r.PAUSED) {\r\n o.next = 9;\r\n break\r\n }\r\n return o.abrupt(\"return\");\r\n case 9:\r\n return o.next = 11, Object(u.j)(Oe.isLiveMode);\r\n case 11:\r\n return n = o.sent, o.next = 14, Object(u.j)(Oe.isLivePosition);\r\n case 14:\r\n return a = o.sent, o.next = 17, Object(u.j)(Oe.currentAsset);\r\n case 17:\r\n if (c = o.sent, s = c ? p.a.UI.getAssetParentalState(c) : void 0, i = s === l.hb.PIN, d = c ? p.a.UI.isAdult(c) : void 0, !n || !a || t) {\r\n o.next = 36;\r\n break\r\n }\r\n return o.next = 24, Object(u.j)(Oe.originalStream);\r\n case 24:\r\n return b = o.sent, o.next = 27, Object(u.j)(Oe.currentProgress);\r\n case 27:\r\n return O = o.sent, o.next = 30, Object(u.c)(Re, O);\r\n case 30:\r\n return o.next = 32, Object(u.c)(Fe, b);\r\n case 32:\r\n return f = o.sent, o.next = 35, Object(u.h)(de.resumeSuccess({\r\n isLivePosition: !1,\r\n currentStream: f,\r\n targetStreamPosition: O,\r\n playbackState: r.STREAM_LOADING,\r\n isPlaybackLocked: i,\r\n isPlaybackAdult: d\r\n }));\r\n case 35:\r\n return o.abrupt(\"return\");\r\n case 36:\r\n return o.next = 38, Object(u.h)(de.resumeSuccess({\r\n targetStreamPosition: void 0,\r\n isPlaybackLocked: i,\r\n isPlaybackAdult: d\r\n }));\r\n case 38:\r\n o.next = 44;\r\n break;\r\n case 40:\r\n return o.prev = 40, o.t0 = o.catch(0), o.next = 44, Object(u.h)(de.resumeFail(l.Zb.fromError(o.t0, l.Q.generic.unknownError)));\r\n case 44:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), Z, null, [\r\n [0, 40]\r\n ])\r\n }\r\n\r\n function Ke() {\r\n var e, t, n, r;\r\n return Object(o.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 2, Object(u.j)(Oe.nextProgram);\r\n case 2:\r\n return e = a.sent, t = e ? p.a.UI.getAssetParentalState(e) : void 0, n = t === l.hb.PIN, r = e ? p.a.UI.isAdult(e) : void 0, c = e, oe && (oe.asset = c), a.next = 9, Object(u.h)(de.setCurrentAsset({\r\n currentAsset: e,\r\n duration: l.Pb.minutesToSeconds((null === e || void 0 === e ? void 0 : e.durationValue) || 0),\r\n progress: 0,\r\n isPlaybackLocked: n,\r\n isPlaybackUnlockedByPin: !1,\r\n isPlaybackAdult: r\r\n }));\r\n case 9:\r\n if (!e) {\r\n a.next = 12;\r\n break\r\n }\r\n return a.next = 12, Object(u.c)(Ne, e.channelEpgId, e);\r\n case 12:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n var c\r\n }), X)\r\n }\r\n\r\n function Qe(e) {\r\n var t, n, r;\r\n return Object(o.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n if (e.meta.liveProgress && e.meta.progress) {\r\n a.next = 2;\r\n break\r\n }\r\n return a.abrupt(\"return\");\r\n case 2:\r\n return a.next = 4, Object(u.j)(Oe.isLivePosition);\r\n case 4:\r\n if (t = a.sent) {\r\n a.next = 7;\r\n break\r\n }\r\n return a.abrupt(\"return\");\r\n case 7:\r\n return n = e.meta.progress, a.next = 10, Object(u.j)(Oe.currentDuration);\r\n case 10:\r\n if (r = a.sent, !(n < r)) {\r\n a.next = 13;\r\n break\r\n }\r\n return a.abrupt(\"return\");\r\n case 13:\r\n if (!t) {\r\n a.next = 16;\r\n break\r\n }\r\n return a.next = 16, Object(u.c)(Ke);\r\n case 16:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), z)\r\n }\r\n\r\n function qe(e) {\r\n return Object(o.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(u.j)(Oe.isWatchProcessing);\r\n case 2:\r\n if (!t.sent) {\r\n t.next = 4;\r\n break\r\n }\r\n return t.abrupt(\"return\");\r\n case 4:\r\n t.t0 = e.type, t.next = t.t0 === a.SEEK_REQUEST ? 7 : t.t0 === a.PAUSE_REQUEST ? 10 : t.t0 === a.RESUME_REQUEST ? 13 : 16;\r\n break;\r\n case 7:\r\n return t.next = 9, Object(u.i)([Object(u.c)(Ve, e), Object(u.l)(a.WATCH_REQUEST)]);\r\n case 9:\r\n case 12:\r\n case 15:\r\n case 16:\r\n return t.abrupt(\"break\", 17);\r\n case 10:\r\n return t.next = 12, Object(u.i)([Object(u.c)(We), Object(u.l)(a.WATCH_REQUEST)]);\r\n case 13:\r\n return t.next = 15, Object(u.i)([Object(u.c)(Ye), Object(u.l)(a.WATCH_REQUEST)]);\r\n case 17:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), J)\r\n }\r\n\r\n function Ze() {\r\n var e, t, n;\r\n return Object(o.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n r.prev = 0;\r\n case 1:\r\n return r.next = 4, Object(u.e)(l.t.CHECK_PARENTAL_CONTROL_PERIOD);\r\n case 4:\r\n return r.next = 6, Object(u.j)(Oe.currentAsset);\r\n case 6:\r\n if (e = r.sent, t = e ? p.a.UI.getAssetParentalState(e) : void 0, !(n = t === l.hb.PIN)) {\r\n r.next = 12;\r\n break\r\n }\r\n return r.next = 12, Object(u.h)(be.setPlaybackLocked(n));\r\n case 12:\r\n r.next = 1;\r\n break;\r\n case 14:\r\n return r.prev = 14, r.finish(14);\r\n case 16:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), $, null, [\r\n [0, , 14, 16]\r\n ])\r\n }\r\n\r\n function Xe(e) {\r\n return Object(u.l)((function(t) {\r\n return t.type === a.SET_PLAYBACK_STATE && e.indexOf(t.meta) >= 0\r\n }))\r\n }\r\n\r\n function ze(e) {\r\n var t, n, a;\r\n return Object(o.a)().wrap((function(c) {\r\n for (;;) switch (c.prev = c.next) {\r\n case 0:\r\n return c.next = 2, Object(u.j)(Oe.isPlaybackUnlockedByPin);\r\n case 2:\r\n return t = c.sent, c.next = 5, Object(u.j)(l.C.Dms.Selectors.getParentalControl);\r\n case 5:\r\n if (n = c.sent, e.meta !== r.PLAYING || t || null === n || void 0 === n || !n.clientRatingWindow.length) {\r\n c.next = 14;\r\n break\r\n }\r\n return c.next = 9, Object(u.f)(Ze);\r\n case 9:\r\n return a = c.sent, c.next = 12, Xe([r.PAUSED, r.STOP, r.PLAYBACK_ERROR]);\r\n case 12:\r\n return c.next = 14, Object(u.d)(a);\r\n case 14:\r\n case \"end\":\r\n return c.stop()\r\n }\r\n }), ee)\r\n }\r\n\r\n function Je(e, t) {\r\n var n, r, a, c;\r\n return Object(o.a)().wrap((function(i) {\r\n for (;;) switch (i.prev = i.next) {\r\n case 0:\r\n return i.next = 2, Object(u.h)(l.C.Recommendations.Creators.loadAssets(e));\r\n case 2:\r\n return i.next = 4, Object(u.i)([l.C.Recommendations.takeAssets(l.C.Recommendations.ActionType.SUCCESS, e), l.C.Recommendations.takeAssets(l.C.Recommendations.ActionType.FAIL, e)]);\r\n case 4:\r\n if (n = i.sent, r = Object(s.a)(n, 1), !r[0]) {\r\n i.next = 16;\r\n break\r\n }\r\n return i.next = 10, Object(u.j)(l.C.Recommendations.Selectors.assets, e);\r\n case 10:\r\n return a = i.sent, i.next = 13, Object(u.c)(v.a.getAssetsWithBadgesListFromRail, a, m.a.MY_TV.WATCH_NEXT_RAIL);\r\n case 13:\r\n return c = i.sent, i.next = 16, Object(u.h)(be.setRecommendationsItem({\r\n assets: c,\r\n name: t,\r\n menuItemId: e.menuItemId\r\n }));\r\n case 16:\r\n case \"end\":\r\n return i.stop()\r\n }\r\n }), te)\r\n }\r\n\r\n function $e(e, t) {\r\n var n;\r\n return Object(o.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n if (e.type !== l.Z.EXTERNAL) {\r\n r.next = 3;\r\n break\r\n }\r\n return r.next = 3, Object(u.f)(Je, {\r\n menuUiArea: l.ab.UPNEXT,\r\n menuItemId: e.id,\r\n relatedAssetId: t\r\n }, e.name);\r\n case 3:\r\n n = 0;\r\n case 4:\r\n if (!(n < (null === e || void 0 === e ? void 0 : e.children.length))) {\r\n r.next = 11;\r\n break\r\n }\r\n if (e.children[n].type !== l.Z.EXTERNAL) {\r\n r.next = 8;\r\n break\r\n }\r\n return r.next = 8, Object(u.f)(Je, {\r\n menuUiArea: l.ab.UPNEXT,\r\n menuItemId: e.children[n].id,\r\n relatedAssetId: t\r\n }, e.children[n].name);\r\n case 8:\r\n n += 1, r.next = 4;\r\n break;\r\n case 11:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), ne)\r\n }\r\n\r\n function et(e) {\r\n var t, n, r, a, c, s;\r\n return Object(o.a)().wrap((function(i) {\r\n for (;;) switch (i.prev = i.next) {\r\n case 0:\r\n return i.next = 2, Object(u.j)(Oe.isLiveMode);\r\n case 2:\r\n return t = i.sent, i.next = 5, Object(u.j)(Oe.isTrailerMode);\r\n case 5:\r\n if (n = i.sent, !t && !n) {\r\n i.next = 8;\r\n break\r\n }\r\n return i.abrupt(\"return\");\r\n case 8:\r\n return i.next = 10, Object(u.j)(l.C.Menu.Selectors.getMainMenuItem, l.ab.UPNEXT);\r\n case 10:\r\n return r = i.sent, i.next = 13, Object(u.j)(E.b.hasAgreedToConsent);\r\n case 13:\r\n return a = i.sent, i.next = 16, Object(u.j)(l.C.Recommendations.Selectors.isFeatureEnabled);\r\n case 16:\r\n if (c = i.sent, !(r && a && c)) {\r\n i.next = 20;\r\n break\r\n }\r\n return i.next = 20, Object(u.c)($e, r, null === (s = e.payload.currentAsset) || void 0 === s ? void 0 : s.id);\r\n case 20:\r\n case \"end\":\r\n return i.stop()\r\n }\r\n }), re)\r\n }\r\n\r\n function tt() {\r\n return Object(o.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(u.h)(d.a.setParentalLockOccurred(l.Pb.now()));\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), ae)\r\n }\r\n\r\n function nt() {\r\n return Object(o.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(u.b)([Object(u.n)(a.WATCH_REQUEST, Me), Object(u.n)(a.RESTART_REQUEST, Be), Object(u.o)([a.SEEK_REQUEST, a.PAUSE_REQUEST, a.RESUME_REQUEST], qe), Object(u.n)(a.WATCH_SUCCESS, et), Object(u.o)(a.SET_STREAM_PROGRESS, Qe), Object(u.n)(a.SET_PLAYBACK_STATE, ze), Object(u.n)(a.LICENSE_REQUEST, Te), Object(u.n)(a.UNLOCK_PLAYBACK_BY_PIN, tt)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), ce)\r\n }\r\n var rt = {\r\n playbackState: r.NO_STREAM,\r\n isPlaybackLocked: !1,\r\n isPlaybackUnlockedByPin: !1,\r\n isPlaybackAdult: !1,\r\n trickModes: void 0,\r\n trickModesEnable: !1,\r\n isTrailerMode: !1,\r\n isLiveMode: !1,\r\n isLivePosition: !1,\r\n liveProgress: 0,\r\n currentAsset: void 0,\r\n relatedChannel: void 0,\r\n currentStream: void 0,\r\n originalStream: void 0,\r\n targetStreamPosition: void 0,\r\n progress: 0,\r\n duration: 0,\r\n recommendations: {\r\n upNext: void 0,\r\n somethingSimilar: void 0,\r\n somethingDifferent: void 0\r\n },\r\n isMute: !1,\r\n volume: 100,\r\n bitrate: 0,\r\n paddingStart: 0,\r\n paddingEnd: 0,\r\n zapping: !1,\r\n isAutoPlayDenied: !1,\r\n playerStats: !1\r\n };\r\n\r\n function at() {\r\n var e, t, n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : rt,\r\n r = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (r.type) {\r\n case a.SET_PLAYBACK_STATE:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n playbackState: r.meta\r\n });\r\n case a.SET_PLAYBACK_LOCKED:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n isPlaybackLocked: r.meta\r\n });\r\n case a.UNLOCK_PLAYBACK_BY_PIN:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n isPlaybackLocked: !1,\r\n isPlaybackUnlockedByPin: !0\r\n });\r\n case a.SET_CURRENT_ASSET:\r\n return Object(i.a)(Object(i.a)({}, n), r.meta);\r\n case a.WATCH_REQUEST:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n watch: {\r\n processing: !0,\r\n processed: !1,\r\n error: void 0,\r\n data: r.meta\r\n }\r\n });\r\n case a.WATCH_SUCCESS:\r\n return Object(i.a)(Object(i.a)(Object(i.a)({}, n), r.payload), {}, {\r\n watch: {\r\n processing: !1,\r\n processed: !0,\r\n error: void 0,\r\n data: void 0\r\n },\r\n nextProgram: void 0\r\n });\r\n case a.WATCH_FAIL:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n watch: {\r\n processing: !1,\r\n processed: !0,\r\n error: r.error,\r\n data: void 0\r\n },\r\n nextProgram: void 0\r\n });\r\n case a.RESTART_REQUEST:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n restart: {\r\n processing: !0,\r\n processed: !1,\r\n error: void 0\r\n }\r\n });\r\n case a.RESTART_SUCCESS:\r\n return Object(i.a)(Object(i.a)(Object(i.a)({}, n), r.payload), {}, {\r\n restart: {\r\n processing: !1,\r\n processed: !0,\r\n error: void 0\r\n }\r\n });\r\n case a.RESTART_FAIL:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n restart: {\r\n processing: !1,\r\n processed: !0,\r\n error: r.error\r\n }\r\n });\r\n case a.SEEK_REQUEST:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n seek: {\r\n processing: !0,\r\n processed: !1,\r\n error: void 0\r\n }\r\n });\r\n case a.SEEK_SUCCESS:\r\n return Object(i.a)(Object(i.a)(Object(i.a)({}, n), r.payload), {}, {\r\n seek: {\r\n processing: !1,\r\n processed: !0,\r\n error: void 0\r\n }\r\n });\r\n case a.SEEK_FAIL:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n seek: {\r\n processing: !1,\r\n processed: !0,\r\n error: r.error\r\n }\r\n });\r\n case a.PAUSE_REQUEST:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n pause: {\r\n processing: !0,\r\n processed: !1,\r\n error: void 0\r\n }\r\n });\r\n case a.PAUSE_SUCCESS:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n pause: {\r\n processing: !1,\r\n processed: !0,\r\n error: void 0\r\n }\r\n });\r\n case a.PAUSE_FAIL:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n pause: {\r\n processing: !1,\r\n processed: !0,\r\n error: r.error\r\n }\r\n });\r\n case a.RESUME_REQUEST:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n resume: {\r\n processing: !0,\r\n processed: !1,\r\n error: void 0\r\n }\r\n });\r\n case a.RESUME_SUCCESS:\r\n return Object(i.a)(Object(i.a)(Object(i.a)({}, n), r.payload), {}, {\r\n resume: {\r\n processing: !1,\r\n processed: !0,\r\n error: void 0\r\n }\r\n });\r\n case a.RESUME_FAIL:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n resume: {\r\n processing: !1,\r\n processed: !0,\r\n error: r.error\r\n }\r\n });\r\n case a.SET_STREAM_PROGRESS:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n progress: null !== (e = r.meta) && void 0 !== e && e.progress ? r.meta.progress : n.progress,\r\n liveProgress: null !== (t = r.meta) && void 0 !== t && t.liveProgress ? r.meta.liveProgress : n.liveProgress\r\n });\r\n case a.SET_STREAM_DURATION:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n duration: r.meta\r\n });\r\n case a.SET_RECOMMENDATIONS_ITEM:\r\n var s = r.payload,\r\n o = s.assets,\r\n u = s.menuItemId;\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n recommendations: Object(i.a)(Object(i.a)({}, n.recommendations), {}, Object(c.a)({}, r.payload.name, {\r\n assets: o,\r\n menuItemId: u\r\n }))\r\n });\r\n case a.SET_MUTE_STATE:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n isMute: r.meta\r\n });\r\n case a.SET_VOLUME:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n volume: r.meta\r\n });\r\n case a.SET_BITRATE:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n bitrate: r.meta\r\n });\r\n case a.SET_NEXT_PROGRAM:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n nextProgram: r.payload\r\n });\r\n case a.SET_AUTO_PLAY_DENIED:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n isAutoPlayDenied: r.meta\r\n });\r\n case a.CLEAR_STATE:\r\n return rt;\r\n case a.ACTIVATE_PLAYER_STATS:\r\n return Object(i.a)(Object(i.a)({}, n), {}, {\r\n playerStats: r.meta\r\n });\r\n default:\r\n return n\r\n }\r\n }\r\n }, , , , , function(e, t, n) {\r\n \"use strict\";\r\n var r = n(4),\r\n a = n(0),\r\n c = Object(r.a)(Object(r.a)({}, a.t), {}, {\r\n MAX_ASSETS_PER_RAIL: 12,\r\n ASSETS_PER_GRID_PAGE: 24,\r\n WATCHTV_CHANNEL_CARD_PROGRESS_REFRESH_RATE: 5e3,\r\n WATCHTV_MAX_TOP_CHANNELS: 8,\r\n MAX_ASSETS_PER_RAIL_SEARCH_RESULTS: 12,\r\n MAX_ASSETS_PER_RAIL_SEARCH_RECENT: 20,\r\n HELP_LINK: \"http://vodafone.com\",\r\n MAX_ASSETS_WATCH_NEXT: 20,\r\n VISUAL_SCRUBBER_SIDE_CARDS: 2,\r\n PLAYER_MAX_ASSETS_WATCH_NEXT: 3,\r\n AUDIO_DESCRIPTION_LABEL: \"AD\",\r\n SUBTITLES_HARD_OF_HEARING_LABEL: \"HH\",\r\n RECOMM_UPNEXT_SIDE_SUGGESTION_THRESHOLD: 5,\r\n RECOMM_MAX_ASSETS_SOMETHING_ELSE: 6,\r\n HEADER_INIT_TOP_OFFSET: 0,\r\n HEADER_TOP_OFFSET_TRIGGER_TO_FADE: 100\r\n });\r\n t.a = c\r\n }, , , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"b\", (function() {\r\n return o\r\n }));\r\n var r = n(2),\r\n a = n(12),\r\n c = n(0),\r\n s = n(252),\r\n i = {\r\n env: s\r\n };\r\n\r\n function o() {\r\n return u.apply(this, arguments)\r\n }\r\n\r\n function u() {\r\n return (u = Object(a.a)(Object(r.a)().mark((function e() {\r\n var t;\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 3, fetch(\"\".concat(\".\", \"/env.json\"));\r\n case 3:\r\n if (!(t = e.sent).ok) {\r\n e.next = 9;\r\n break\r\n }\r\n return e.next = 7, t.json();\r\n case 7:\r\n return i.env = e.sent, e.abrupt(\"return\", i.env);\r\n case 9:\r\n return e.abrupt(\"return\", Promise.reject(c.Zb.fromCode(c.s.validation.invalidData)));\r\n case 10:\r\n return e.abrupt(\"return\", i.env);\r\n case 11:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), e)\r\n })))).apply(this, arguments)\r\n }\r\n t.a = i\r\n }, , , , , , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return O\r\n })), n.d(t, \"c\", (function() {\r\n return j\r\n })), n.d(t, \"d\", (function() {\r\n return S\r\n })), n.d(t, \"b\", (function() {\r\n return h\r\n }));\r\n var r, a = n(2),\r\n c = n(6),\r\n s = n(4),\r\n i = n(1),\r\n o = n(0),\r\n u = n(36),\r\n l = Object(a.a)().mark(E),\r\n d = Object(a.a)().mark(S);\r\n ! function(e) {\r\n e.UPDATE_PREFERENCE = \"gdpr/preference/UPDATE\", e.UPDATE_PREFERENCE_SUCCESS = \"gdpr/preference/UPDATE_SUCCESS\", e.UPDATE_PREFERENCE_FAIL = \"gdpr/preference/UPDATE_FAIL\"\r\n }(r || (r = {}));\r\n var b = {\r\n updatePreference: function(e, t) {\r\n return {\r\n type: r.UPDATE_PREFERENCE,\r\n meta: {\r\n preference: e,\r\n preferenceValue: t\r\n }\r\n }\r\n },\r\n updatePreferenceSuccess: function() {\r\n return {\r\n type: r.UPDATE_PREFERENCE_SUCCESS\r\n }\r\n },\r\n updatePreferenceFail: function(e) {\r\n return {\r\n type: r.UPDATE_PREFERENCE_FAIL,\r\n error: e\r\n }\r\n }\r\n },\r\n O = {\r\n updatePreference: b.updatePreference\r\n },\r\n f = {\r\n processing: !1,\r\n processed: !1,\r\n error: void 0\r\n };\r\n\r\n function j() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : f,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case r.UPDATE_PREFERENCE:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processing: !0,\r\n processed: !1\r\n });\r\n case r.UPDATE_PREFERENCE_SUCCESS:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processing: !1,\r\n processed: !0\r\n });\r\n case r.UPDATE_PREFERENCE_FAIL:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processing: !1,\r\n processed: !0,\r\n error: t.error\r\n });\r\n default:\r\n return e\r\n }\r\n }\r\n var p = function(e) {\r\n return e === o.Rb.GDPR_NOTICE ? o.N.generic.savingNotice : o.N.generic.savingConsent\r\n };\r\n\r\n function E(e) {\r\n var t, n, r, d;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, Object(i.j)(o.C.Household.Selectors.data.getUsers);\r\n case 3:\r\n return t = a.sent, n = t.find((function(e) {\r\n return e.role === o.Eb.DEFAULT\r\n })), a.next = 7, Object(i.h)(o.C.Household.Creators.updateUserPreference(Object(s.a)(Object(s.a)({}, n), {}, Object(c.a)({}, e.meta.preference, e.meta.preferenceValue)), e.meta.preference));\r\n case 7:\r\n return a.next = 9, Object(i.i)({\r\n resultSuccess: Object(i.l)(o.C.Household.ActionType.updateUserPreference.SUCCESS),\r\n resultError: Object(i.l)(o.C.Household.ActionType.updateUserPreference.FAIL)\r\n });\r\n case 9:\r\n if (r = a.sent, !r.resultSuccess) {\r\n a.next = 19;\r\n break\r\n }\r\n return a.next = 14, Object(i.h)(b.updatePreferenceSuccess());\r\n case 14:\r\n if (e.meta.preference !== o.Rb.GDPR_CONSENT) {\r\n a.next = 17;\r\n break\r\n }\r\n return a.next = 17, Object(i.f)(u.d, o.b.ACCEPT_GDPR_CONSENT, e.meta.preferenceValue.accepted.toString(), void 0);\r\n case 17:\r\n a.next = 20;\r\n break;\r\n case 19:\r\n throw o.Zb.fromCode(p(e.meta.preference));\r\n case 20:\r\n a.next = 30;\r\n break;\r\n case 22:\r\n return a.prev = 22, a.t0 = a.catch(0), d = o.Zb.fromCode(p(e.meta.preference)), a.next = 27, Object(i.h)(b.updatePreferenceFail(d));\r\n case 27:\r\n if (e.meta.preference !== o.Rb.GDPR_CONSENT) {\r\n a.next = 30;\r\n break\r\n }\r\n return a.next = 30, Object(i.f)(u.d, o.b.ACCEPT_GDPR_CONSENT, e.meta.preferenceValue.accepted.toString(), void 0, d);\r\n case 30:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), l, null, [\r\n [0, 22]\r\n ])\r\n }\r\n\r\n function S() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(i.o)(r.UPDATE_PREFERENCE, E);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), d)\r\n }\r\n var v = function(e, t) {\r\n return void 0 !== t && void 0 !== e && e.accepted && e.version >= t.version\r\n },\r\n m = function(e, t) {\r\n return v(null === e || void 0 === e ? void 0 : e.gdprNotice, null === t || void 0 === t ? void 0 : t.notice)\r\n },\r\n h = {\r\n isProcessed: function(e) {\r\n return !0 === e.gdpr.processed\r\n },\r\n isProcessing: function(e) {\r\n return !0 === e.gdpr.processing\r\n },\r\n getError: function(e) {\r\n return e.gdpr.error\r\n },\r\n getDocumentsToShow: function(e) {\r\n var t = o.C.Household.Selectors.data.getUsers(e).find((function(e) {\r\n return e.role === o.Eb.DEFAULT\r\n })),\r\n n = o.C.Faqs.Selectors.getGdprData(e),\r\n r = !m(t, null === n || void 0 === n ? void 0 : n.documents),\r\n a = function(e, t) {\r\n var n = null === t || void 0 === t ? void 0 : t.consent,\r\n r = null === e || void 0 === e ? void 0 : e.gdprConsent;\r\n return void 0 !== n && (void 0 === r || !!r.accepted && !(void 0 !== r.version && r.version >= n.version))\r\n }(t, null === n || void 0 === n ? void 0 : n.documents),\r\n c = t && (null === n || void 0 === n ? void 0 : n.documents.termsAndConditions);\r\n return {\r\n notice: r && (null === n || void 0 === n ? void 0 : n.documents.notice) || void 0,\r\n consent: a && (null === n || void 0 === n ? void 0 : n.documents.consent) || void 0,\r\n termsAndConditions: c && (null === n || void 0 === n ? void 0 : n.documents.termsAndConditions) || void 0\r\n }\r\n },\r\n getDocuments: function(e) {\r\n var t;\r\n return null === (t = o.C.Faqs.Selectors.getGdprData(e)) || void 0 === t ? void 0 : t.documents\r\n },\r\n hasAgreedToNotice: function(e) {\r\n var t = o.C.Household.Selectors.data.getUsers(e).find((function(e) {\r\n return e.role === o.Eb.DEFAULT\r\n })),\r\n n = o.C.Faqs.Selectors.getGdprData(e);\r\n return m(t, null === n || void 0 === n ? void 0 : n.documents)\r\n },\r\n hasAgreedToConsent: function(e) {\r\n var t, n, r = o.C.Household.Selectors.data.getDefaultUser(e),\r\n a = o.C.Faqs.Selectors.getGdprData(e);\r\n return t = r, n = null === a || void 0 === a ? void 0 : a.documents, v(null === t || void 0 === t ? void 0 : t.gdprConsent, null === n || void 0 === n ? void 0 : n.consent)\r\n }\r\n }\r\n }, , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"b\", (function() {\r\n return r\r\n })), n.d(t, \"a\", (function() {\r\n return g\r\n })), n.d(t, \"e\", (function() {\r\n return C\r\n })), n.d(t, \"d\", (function() {\r\n return A\r\n })), n.d(t, \"c\", (function() {\r\n return M\r\n })), n.d(t, \"f\", (function() {\r\n return F\r\n }));\r\n var r, a = n(2),\r\n c = n(15),\r\n s = n(4),\r\n i = n(1),\r\n o = n(0),\r\n u = Object(a.a)().mark(_),\r\n l = Object(a.a)().mark(R),\r\n d = Object(a.a)().mark(T),\r\n b = Object(a.a)().mark(N),\r\n O = Object(a.a)().mark(k),\r\n f = Object(a.a)().mark(L),\r\n j = Object(a.a)().mark(P),\r\n p = Object(a.a)().mark(D),\r\n E = Object(a.a)().mark(y),\r\n S = Object(a.a)().mark(w),\r\n v = Object(a.a)().mark(U),\r\n m = Object(a.a)().mark(F);\r\n ! function(e) {\r\n e.LOAD = \"recordings/single/LOAD\", e.LOAD_BY_SERIES_ID = \"recordings/single/LOAD_BY_SERIES_ID\", e.UPDATE = \"recordings/single/UPDATE\", e.FAIL = \"recordings/single/FAIL\", e.RESET = \"recordings/single/RESET\"\r\n }(r || (r = {}));\r\n var h = {\r\n load: function(e) {\r\n return {\r\n type: r.LOAD,\r\n meta: {\r\n nowDate: e\r\n }\r\n }\r\n },\r\n update: function(e) {\r\n return {\r\n type: r.UPDATE,\r\n payload: e\r\n }\r\n },\r\n fail: function(e) {\r\n return {\r\n type: r.FAIL,\r\n error: e\r\n }\r\n },\r\n loadBySeriesIds: function(e) {\r\n return {\r\n type: r.LOAD_BY_SERIES_ID,\r\n meta: e\r\n }\r\n },\r\n reset: function() {\r\n return {\r\n type: r.RESET\r\n }\r\n }\r\n },\r\n g = {\r\n load: function(e) {\r\n return h.load(e)\r\n },\r\n update: function(e) {\r\n return h.update(e)\r\n },\r\n loadBySeriesIds: function(e) {\r\n return h.loadBySeriesIds(e)\r\n },\r\n reset: function() {\r\n return h.reset()\r\n }\r\n },\r\n I = {\r\n data: []\r\n };\r\n\r\n function C() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : I,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case r.UPDATE:\r\n return {\r\n data: t.payload\r\n };\r\n case r.FAIL:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n error: t.error\r\n });\r\n case r.RESET:\r\n return I;\r\n case r.LOAD:\r\n case r.LOAD_BY_SERIES_ID:\r\n default:\r\n return e\r\n }\r\n }\r\n var x = function(e) {\r\n return \"single_recordings_by_status_\".concat(e)\r\n },\r\n A = {\r\n getRecordings: function(e) {\r\n return e.recordings.single.data\r\n },\r\n getError: function(e) {\r\n return e.recordings.single.error\r\n }\r\n };\r\n\r\n function _(e, t, n, r) {\r\n var s, l, d, b, O, f, j;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return s = n ? o.Pb.subtractDuration(n, o.t.RECORDINGS_WINDOW_PAST_PERIOD) : void 0, a.next = 3, Object(i.j)(o.C.Dms.Selectors.getParentalControl);\r\n case 3:\r\n if (l = a.sent, s) {\r\n a.next = 10;\r\n break\r\n }\r\n return a.next = 7, o.C.Pagination.clearPaginatedApi(x(e));\r\n case 7:\r\n return a.next = 9, o.C.Pagination.callCompletedPaginatedApi(x(e), t, o.xb.getSingleRecordingsByStatus, e, l, r);\r\n case 9:\r\n return a.abrupt(\"return\", a.sent);\r\n case 10:\r\n return d = [], a.next = 13, Object(i.j)(A.getRecordings);\r\n case 13:\r\n if (b = a.sent, !((O = b.filter((function(t) {\r\n return t.status.toLowerCase() === e.toLowerCase() && o.Pb.isAfter(t.startDate, s)\r\n })).map((function(e) {\r\n return e.recordingId\r\n }))).length > 0)) {\r\n a.next = 23;\r\n break\r\n }\r\n return a.next = 18, o.C.Api.callApi(o.xb.getSingleRecordingsByRecordingIds, O, l, r);\r\n case 18:\r\n f = a.sent, j = b.filter((function(t) {\r\n return t.status.toLowerCase() === e.toLowerCase() && o.Pb.isBefore(t.startDate, s)\r\n })), d = [].concat(Object(c.a)(j), Object(c.a)(f)), a.next = 24;\r\n break;\r\n case 23:\r\n d = b;\r\n case 24:\r\n return a.abrupt(\"return\", d);\r\n case 25:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), u)\r\n }\r\n\r\n function R(e) {\r\n var t, n, r, s, u, d, b;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, t = e.meta.nowDate, a.next = 4, Object(i.j)(o.C.Dms.Selectors.getRecordings);\r\n case 4:\r\n return n = a.sent, r = n.npvrVersion, s = n.pageSize, a.next = 9, Object(i.b)([Object(i.c)(_, o.V.RecordingStatusValue.COMPLETED, s, t, r), Object(i.c)(_, o.V.RecordingStatusValue.ON_GOING, s, t, r), Object(i.c)(_, o.V.RecordingStatusValue.SCHEDULED, s, t, r)]);\r\n case 9:\r\n return u = a.sent, d = u.reduce((function(e, t) {\r\n return [].concat(Object(c.a)(e), Object(c.a)(t))\r\n }), []), a.next = 13, Object(i.j)(A.getRecordings);\r\n case 13:\r\n return b = a.sent, a.next = 16, Object(i.h)(h.update([].concat(Object(c.a)(d), Object(c.a)(b))));\r\n case 16:\r\n a.next = 22;\r\n break;\r\n case 18:\r\n return a.prev = 18, a.t0 = a.catch(0), a.next = 22, Object(i.h)(h.fail(o.Zb.fromError(a.t0)));\r\n case 22:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), l, null, [\r\n [0, 18]\r\n ])\r\n }\r\n\r\n function T(e) {\r\n var t, n, r, s, u, l, b;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, Object(i.j)(o.C.Dms.Selectors.getRecordings);\r\n case 3:\r\n return t = a.sent, n = t.npvrVersion, a.next = 7, o.C.Api.callApi(o.xb.addSingleRecording, e);\r\n case 7:\r\n return r = a.sent, s = r.recordingID, a.next = 11, Object(i.j)(o.C.Dms.Selectors.getParentalControl);\r\n case 11:\r\n if (u = a.sent, Number.isNaN(s)) {\r\n a.next = 22;\r\n break\r\n }\r\n return a.next = 15, o.C.Api.callApi(o.xb.getSingleRecordingsByRecordingIds, [Number(s)], u, n);\r\n case 15:\r\n return l = a.sent, a.next = 18, Object(i.j)(A.getRecordings);\r\n case 18:\r\n return b = a.sent, a.next = 21, Object(i.h)(h.update([].concat(Object(c.a)(l), Object(c.a)(b))));\r\n case 21:\r\n case 22:\r\n return a.abrupt(\"return\", void 0);\r\n case 25:\r\n return a.prev = 25, a.t0 = a.catch(0), a.abrupt(\"return\", o.Zb.fromError(a.t0));\r\n case 28:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), d, null, [\r\n [0, 25]\r\n ])\r\n }\r\n\r\n function N(e) {\r\n var t, n;\r\n return Object(a.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.prev = 0, r.next = 3, o.C.Api.callApi(o.xb.cancelSingleRecording, e);\r\n case 3:\r\n return r.next = 5, Object(i.j)(A.getRecordings);\r\n case 5:\r\n return t = r.sent, n = t.filter((function(t) {\r\n return t.internalId !== e.internalId\r\n })), r.next = 9, Object(i.h)(h.update(n));\r\n case 9:\r\n return r.abrupt(\"return\", void 0);\r\n case 12:\r\n return r.prev = 12, r.t0 = r.catch(0), r.abrupt(\"return\", o.Zb.fromError(r.t0));\r\n case 15:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), b, null, [\r\n [0, 12]\r\n ])\r\n }\r\n\r\n function k(e) {\r\n var t, n;\r\n return Object(a.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.prev = 0, r.next = 3, o.C.Api.callApi(o.xb.deleteSingleRecording, e);\r\n case 3:\r\n return r.next = 5, Object(i.j)(A.getRecordings);\r\n case 5:\r\n return t = r.sent, n = t.filter((function(t) {\r\n return t.internalId !== e.internalId\r\n })), r.next = 9, Object(i.h)(h.update(n));\r\n case 9:\r\n return r.abrupt(\"return\", void 0);\r\n case 12:\r\n return r.prev = 12, r.t0 = r.catch(0), r.abrupt(\"return\", o.Zb.fromError(r.t0));\r\n case 15:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), O, null, [\r\n [0, 12]\r\n ])\r\n }\r\n\r\n function L(e, t) {\r\n var n, r;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, o.C.Api.callApi(o.xb.deleteRecordingBySeriesId, e, t);\r\n case 3:\r\n return a.next = 5, Object(i.j)(A.getRecordings);\r\n case 5:\r\n return n = a.sent, r = n.filter((function(n) {\r\n return !(n.seriesId === e && n.channelEpgId === t)\r\n })), a.next = 9, Object(i.h)(h.update(r));\r\n case 9:\r\n a.next = 15;\r\n break;\r\n case 11:\r\n return a.prev = 11, a.t0 = a.catch(0), a.next = 15, Object(i.h)(h.fail(o.Zb.fromError(a.t0)));\r\n case 15:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), f, null, [\r\n [0, 11]\r\n ])\r\n }\r\n\r\n function P(e, t, n) {\r\n var r, c;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, o.C.Api.callApi(o.xb.deleteRecordingBySeason, e, t, n);\r\n case 3:\r\n return a.next = 5, Object(i.j)(A.getRecordings);\r\n case 5:\r\n return r = a.sent, c = r.filter((function(r) {\r\n return !(r.seriesId === e && r.channelEpgId === t && r.seasonNumber === n)\r\n })), a.next = 9, Object(i.h)(h.update(c));\r\n case 9:\r\n return a.abrupt(\"return\", void 0);\r\n case 12:\r\n return a.prev = 12, a.t0 = a.catch(0), a.abrupt(\"return\", o.Zb.fromError(a.t0));\r\n case 15:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), j, null, [\r\n [0, 12]\r\n ])\r\n }\r\n\r\n function D(e, t, n, r) {\r\n var c, s;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, o.C.Api.callApi(o.xb.deleteRecordingByStatus, n, e, t, r);\r\n case 3:\r\n return a.next = 5, Object(i.j)(A.getRecordings);\r\n case 5:\r\n return c = a.sent, s = c.filter((function(a) {\r\n return !(a.seriesId === e && a.channelEpgId === t && n.includes(o.zb.getRecordingStatus(a)) && (!r || r === a.seasonNumber))\r\n })), a.next = 9, Object(i.h)(h.update(s));\r\n case 9:\r\n return a.abrupt(\"return\", void 0);\r\n case 12:\r\n return a.prev = 12, a.t0 = a.catch(0), a.abrupt(\"return\", o.Zb.fromError(a.t0));\r\n case 15:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), p, null, [\r\n [0, 12]\r\n ])\r\n }\r\n\r\n function y(e, t) {\r\n var n;\r\n return Object(a.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.prev = 0, r.next = 3, Object(i.j)(A.getRecordings);\r\n case 3:\r\n if (n = r.sent, !t) {\r\n r.next = 8;\r\n break\r\n }\r\n if (!(n.filter((function(e) {\r\n return e.isAssetProtected\r\n })).length >= o.Ib.RECORDING_OPTION_MAX_PROTECTED_ITEMS)) {\r\n r.next = 8;\r\n break\r\n }\r\n return r.abrupt(\"return\", o.Zb.fromCode(o.yb.validation.protectedLimitExcedded));\r\n case 8:\r\n return r.next = 10, o.C.Api.callApi(o.xb.updateSingleRecordingProtectionStatus, e, t);\r\n case 10:\r\n return n.forEach((function(n) {\r\n n.internalId === e.internalId && (n.isAssetProtected = t)\r\n })), r.next = 13, Object(i.h)(h.update(n));\r\n case 13:\r\n return r.abrupt(\"return\", void 0);\r\n case 16:\r\n return r.prev = 16, r.t0 = r.catch(0), r.abrupt(\"return\", o.Zb.fromError(r.t0));\r\n case 19:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), E, null, [\r\n [0, 16]\r\n ])\r\n }\r\n\r\n function w(e) {\r\n var t, n, r, s, u, l, d;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, t = e.meta, a.next = 4, Object(i.j)(o.C.Dms.Selectors.getRecordings);\r\n case 4:\r\n return n = a.sent, r = n.npvrVersion, a.next = 8, Object(i.j)(o.C.Dms.Selectors.getParentalControl);\r\n case 8:\r\n return s = a.sent, a.next = 11, o.C.Api.callApi(o.xb.getSingleRecordingsBySeriesIDs, t, s, r);\r\n case 11:\r\n return u = a.sent, a.next = 14, Object(i.j)(A.getRecordings);\r\n case 14:\r\n return l = a.sent, d = l.filter((function(e) {\r\n return void 0 === u.find((function(t) {\r\n return e.recordingId === t.recordingId\r\n }))\r\n })), a.next = 18, Object(i.h)(h.update([].concat(Object(c.a)(u), Object(c.a)(d))));\r\n case 18:\r\n a.next = 24;\r\n break;\r\n case 20:\r\n return a.prev = 20, a.t0 = a.catch(0), a.next = 24, Object(i.h)(h.fail(o.Zb.fromError(a.t0)));\r\n case 24:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), S, null, [\r\n [0, 20]\r\n ])\r\n }\r\n\r\n function U(e, t, n) {\r\n var r, c, s;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 2, Object(i.j)(A.getRecordings);\r\n case 2:\r\n return r = a.sent, a.prev = 3, c = [], s = [], r.forEach((function(r) {\r\n r.seriesId !== e || r.channelEpgId !== t || o.zb.getRecordingStatus(r) !== o.wb.COMPLETED || r.isAssetProtected || n && r.seasonNumber !== n ? s.push(r) : c.push(r)\r\n })), a.next = 9, Object(i.b)(c.map((function(e) {\r\n return o.C.Api.callApi(o.xb.deleteSingleRecording, e)\r\n })));\r\n case 9:\r\n return a.next = 11, Object(i.h)(h.update(s));\r\n case 11:\r\n return a.abrupt(\"return\", void 0);\r\n case 14:\r\n return a.prev = 14, a.t0 = a.catch(3), a.abrupt(\"return\", o.Zb.fromError(a.t0));\r\n case 17:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), v, null, [\r\n [3, 14]\r\n ])\r\n }\r\n var M = {\r\n changeProtectedStatusSaga: y,\r\n deleteByStatusSaga: D,\r\n deleteBySeasonSaga: P,\r\n addSingleRecordingSaga: T,\r\n cancelSingleRecordingSaga: N,\r\n deleteSingleRecordingSaga: k,\r\n deleteCompletedUnprotectedRecordingsSaga: U,\r\n deleteBySeriesIdSaga: L\r\n };\r\n\r\n function F() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(i.b)([Object(i.m)(r.LOAD, R), Object(i.m)(r.LOAD_BY_SERIES_ID, w)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), m)\r\n }\r\n }, , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"f\", (function() {\r\n return p\r\n })), n.d(t, \"e\", (function() {\r\n return E\r\n })), n.d(t, \"b\", (function() {\r\n return S\r\n })), n.d(t, \"g\", (function() {\r\n return v\r\n })), n.d(t, \"d\", (function() {\r\n return m\r\n })), n.d(t, \"a\", (function() {\r\n return h\r\n })), n.d(t, \"c\", (function() {\r\n return g\r\n }));\r\n var r = n(2),\r\n a = n(1),\r\n c = n(0),\r\n s = n(127),\r\n i = n(105),\r\n o = Object(r.a)().mark(p),\r\n u = Object(r.a)().mark(E),\r\n l = Object(r.a)().mark(S),\r\n d = Object(r.a)().mark(v),\r\n b = Object(r.a)().mark(m),\r\n O = Object(r.a)().mark(h),\r\n f = Object(r.a)().mark(g);\r\n\r\n function j(e, t, n) {\r\n return c.i.isEpg(e) ? n ? c.b.LIVE : c.b.ROLLING_BUFFER : c.i.isRecording(e) ? c.b.NPVR : c.i.isVod(e) ? t.fileFormat === c.K.TRAILER ? c.b.TRAILER : e.contentTags.isVodCatchup ? c.b.VOD_CATCHUP : c.b.RENTAL : void 0\r\n }\r\n\r\n function p(e, t, n, u) {\r\n var l, d, b;\r\n return Object(r.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(a.j)(s.a.getSections);\r\n case 2:\r\n if (l = r.sent, d = j(e, t, n), b = Object(i.e)(l, d), !d) {\r\n r.next = 8;\r\n break\r\n }\r\n return r.next = 8, Object(a.c)(c.C.ActionsEvents.addWatchActionEvent, d, b, e, u);\r\n case 8:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), o)\r\n }\r\n\r\n function E(e, t, n) {\r\n var o, l, d;\r\n return Object(r.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(a.j)(s.a.getSections);\r\n case 2:\r\n if (o = r.sent, l = j(e, t), d = Object(i.e)(o, l), !l) {\r\n r.next = 8;\r\n break\r\n }\r\n return r.next = 8, Object(a.c)(c.C.ActionsEvents.addStartOverActionEvent, l, d, e, n);\r\n case 8:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), u)\r\n }\r\n\r\n function S(e, t, n) {\r\n var o, u;\r\n return Object(r.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(a.j)(s.a.getSections);\r\n case 2:\r\n return o = r.sent, u = Object(i.e)(o, e), r.next = 6, Object(a.c)(c.C.ActionsEvents.addRecordingActionEvent, e, u, t, n);\r\n case 6:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), l)\r\n }\r\n\r\n function v(e, t, n) {\r\n var o, u;\r\n return Object(r.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(a.j)(s.a.getSections);\r\n case 2:\r\n return o = r.sent, u = Object(i.e)(o, e), r.next = 6, Object(a.c)(c.C.ActionsEvents.addWishlistActionEvent, e, u, t, n);\r\n case 6:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), d)\r\n }\r\n\r\n function m(e, t, n, o) {\r\n var u, l;\r\n return Object(r.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(a.j)(s.a.getSections);\r\n case 2:\r\n return u = r.sent, l = Object(i.e)(u, e), r.next = 6, Object(a.c)(c.C.ActionsEvents.addSettingsActionEvent, e, l, t, n, o);\r\n case 6:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), b)\r\n }\r\n\r\n function h(e, t) {\r\n var n, o, u, l, d;\r\n return Object(r.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return n = e ? c.b.PIN_ON : c.b.PIN_OFF, r.next = 3, Object(a.j)(s.a.getSections);\r\n case 3:\r\n return o = r.sent, u = Object(i.e)(o, n), l = \"\".concat(e), d = \"\".concat(!e), r.next = 9, Object(a.c)(c.C.ActionsEvents.addSettingsActionEvent, n, u, l, d, t);\r\n case 9:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), O)\r\n }\r\n\r\n function g(e, t, n, o, u) {\r\n var l, d;\r\n return Object(r.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(a.j)(s.a.getSections);\r\n case 2:\r\n return l = r.sent, d = Object(i.e)(l, e), r.next = 6, Object(a.c)(c.C.ActionsEvents.addRentActionEvent, e, d, t, n, o, u);\r\n case 6:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), f)\r\n }\r\n }, , function(e, t, n) {\r\n \"use strict\";\r\n var r, a = n(4),\r\n c = n(215),\r\n s = n(33),\r\n i = n(0),\r\n o = n(76),\r\n u = n(174),\r\n l = n(32),\r\n d = n(45),\r\n b = n(100),\r\n O = n(159),\r\n f = n(142),\r\n j = n(102),\r\n p = n(71),\r\n E = n(1),\r\n S = n(2),\r\n v = n(18),\r\n m = Object(S.a)().mark(N),\r\n h = Object(S.a)().mark(k),\r\n g = Object(S.a)().mark(L),\r\n I = Object(S.a)().mark(P),\r\n C = Object(S.a)().mark(D),\r\n x = Object(S.a)().mark(y);\r\n ! function(e) {\r\n e.SET_REQUEST = \"consumption/bookmarks/SET_REQUEST\", e.HIT_TASK_START = \"consumption/bookmarks/HIT_TASK_START\", e.HIT_TASK_STOP = \"consumption/bookmarks/HIT_TASK_STOP\"\r\n }(r || (r = {}));\r\n var A = {\r\n setRequest: function(e) {\r\n return {\r\n type: r.SET_REQUEST,\r\n meta: e\r\n }\r\n },\r\n hitTaskStart: function() {\r\n return {\r\n type: r.HIT_TASK_START\r\n }\r\n },\r\n hitTaskStop: function() {\r\n return {\r\n type: r.HIT_TASK_STOP\r\n }\r\n }\r\n },\r\n _ = {\r\n setBookmark: function(e) {\r\n return A.setRequest(e)\r\n }\r\n },\r\n R = {\r\n hitTaskRunning: !1\r\n };\r\n var T = {\r\n hitTaskRunning: function(e) {\r\n return e.consumption.bookmarks.hitTaskRunning\r\n }\r\n };\r\n\r\n function N(e, t) {\r\n return Object(S.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, 1;\r\n case 2:\r\n if (t !== i.u.HIT || e.code !== i.o.API.concurrent) {\r\n n.next = 5;\r\n break\r\n }\r\n return n.next = 5, Object(E.h)(v.a.pauseRequest());\r\n case 5:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), m)\r\n }\r\n\r\n function k(e) {\r\n var t, n, r, c;\r\n return Object(S.a)().wrap((function(s) {\r\n for (;;) switch (s.prev = s.next) {\r\n case 0:\r\n return t = e.isLive, s.next = 3, Object(E.j)(i.C.Dms.Selectors.getBookmarks);\r\n case 3:\r\n n = s.sent, r = t ? (null === n || void 0 === n ? void 0 : n.linearMediaHit) || i.Ib.DMS_LINEAR_MEDIA_HIT : (null === n || void 0 === n ? void 0 : n.vodMediaHit) || i.Ib.DMS_VOD_MEDIA_HIT, s.prev = 5;\r\n case 6:\r\n return s.next = 9, Object(E.e)(1e3 * r);\r\n case 9:\r\n return s.next = 11, Object(E.j)(v.d.currentProgress);\r\n case 11:\r\n return c = s.sent, s.next = 14, Object(E.h)(_.setBookmark(Object(a.a)(Object(a.a)({}, e), {}, {\r\n action: i.u.HIT,\r\n location: Math.floor(c)\r\n })));\r\n case 14:\r\n s.next = 6;\r\n break;\r\n case 16:\r\n return s.prev = 16, s.finish(16);\r\n case 18:\r\n case \"end\":\r\n return s.stop()\r\n }\r\n }), h, null, [\r\n [5, , 16, 18]\r\n ])\r\n }\r\n\r\n function L(e) {\r\n var t, n, a;\r\n return Object(S.a)().wrap((function(c) {\r\n for (;;) switch (c.prev = c.next) {\r\n case 0:\r\n return c.next = 2, Object(E.j)(i.C.Dms.Selectors.isSsmEnabled);\r\n case 2:\r\n return t = c.sent, c.next = 5, Object(E.j)(T.hitTaskRunning);\r\n case 5:\r\n if (n = c.sent, t || n) {\r\n c.next = 16;\r\n break\r\n }\r\n return c.next = 9, Object(E.h)(A.hitTaskStart());\r\n case 9:\r\n return c.next = 11, Object(E.f)(k, e);\r\n case 11:\r\n return a = c.sent, c.next = 14, Object(E.l)(r.HIT_TASK_STOP);\r\n case 14:\r\n return c.next = 16, Object(E.d)(a);\r\n case 16:\r\n case \"end\":\r\n return c.stop()\r\n }\r\n }), g)\r\n }\r\n\r\n function P(e) {\r\n var t, n, r, a, c, s, o, u, l, d, b, O, f;\r\n return Object(S.a)().wrap((function(j) {\r\n for (;;) switch (j.prev = j.next) {\r\n case 0:\r\n return t = e.isLive, n = e.asset, r = e.channel, a = e.fileId, c = e.action, s = e.location, o = e.averageBitRate, u = e.totalBitRate, l = e.currentBitRate, d = n, t && (d = r, b = null === n || void 0 === n ? void 0 : n.id), j.prev = 3, j.next = 6, Object(E.j)(i.C.Dms.Selectors.isSsmEnabled);\r\n case 6:\r\n return O = j.sent, f = O ? i.p.setBookmark : i.n.setBookmark, j.next = 10, i.C.Api.callApi(f, d, a, c, s, b, o, u, l);\r\n case 10:\r\n if (!n || c !== i.u.STOP && c !== i.u.HIT) {\r\n j.next = 13;\r\n break\r\n }\r\n return j.next = 13, Object(E.c)(i.C.BookmarksCache.updateBookmarksSaga, n, s);\r\n case 13:\r\n j.next = 19;\r\n break;\r\n case 15:\r\n return j.prev = 15, j.t0 = j.catch(3), j.next = 19, Object(E.c)(N, i.Zb.fromError(j.t0), c);\r\n case 19:\r\n case \"end\":\r\n return j.stop()\r\n }\r\n }), I, null, [\r\n [3, 15]\r\n ])\r\n }\r\n\r\n function D(e) {\r\n var t, n;\r\n return Object(S.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n if (t = e.meta, (n = t.action) !== i.u.PLAY && n !== i.u.FIRST_PLAY) {\r\n r.next = 7;\r\n break\r\n }\r\n return r.next = 5, Object(E.f)(L, t);\r\n case 5:\r\n r.next = 10;\r\n break;\r\n case 7:\r\n if (n !== i.u.PAUSE && n !== i.u.STOP) {\r\n r.next = 10;\r\n break\r\n }\r\n return r.next = 10, Object(E.h)(A.hitTaskStop());\r\n case 10:\r\n return r.next = 12, Object(E.c)(P, t);\r\n case 12:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), C)\r\n }\r\n\r\n function y() {\r\n return Object(S.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(E.b)([Object(E.m)(r.SET_REQUEST, D)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), x)\r\n }\r\n var w = Object(S.a)().mark(K),\r\n U = Object(S.a)().mark(Q),\r\n M = Object(S.a)().mark(q),\r\n F = Object(S.a)().mark(Z),\r\n G = Object(S.a)().mark(X),\r\n H = Object(S.a)().mark(z),\r\n B = Object(S.a)().mark(J),\r\n V = Object(S.a)().mark($),\r\n W = Object(S.a)().mark(ee),\r\n Y = Object(S.a)().mark(te);\r\n\r\n function K(e) {\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(E.j)(i.C.Dms.Selectors.isSsmEnabled);\r\n case 2:\r\n if (t.sent) {\r\n t.next = 6;\r\n break\r\n }\r\n return t.next = 6, Object(E.h)(_.setBookmark(Object(a.a)({\r\n action: i.u.PLAY\r\n }, e)));\r\n case 6:\r\n return t.next = 8, Object(E.k)(i.C.TransportControlEvents.addTransportControlEvent, i.a.PLAY, e);\r\n case 8:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), w)\r\n }\r\n\r\n function Q(e) {\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(E.j)(i.C.Dms.Selectors.isSsmEnabled);\r\n case 2:\r\n if (t.sent) {\r\n t.next = 6;\r\n break\r\n }\r\n return t.next = 6, Object(E.h)(_.setBookmark(Object(a.a)({\r\n action: i.u.STOP\r\n }, e)));\r\n case 6:\r\n return t.next = 8, Object(E.k)(i.C.TransportControlEvents.addTransportControlEvent, i.a.STOP, e);\r\n case 8:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), U)\r\n }\r\n\r\n function q(e) {\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(E.j)(i.C.Dms.Selectors.isSsmEnabled);\r\n case 2:\r\n if (t.sent) {\r\n t.next = 6;\r\n break\r\n }\r\n return t.next = 6, Object(E.h)(_.setBookmark(Object(a.a)({\r\n action: i.u.PAUSE\r\n }, e)));\r\n case 6:\r\n return t.next = 8, Object(E.k)(i.C.TransportControlEvents.addTransportControlEvent, i.a.PAUSE, e);\r\n case 8:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), M)\r\n }\r\n\r\n function Z(e) {\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(E.j)(i.C.Dms.Selectors.isSsmEnabled);\r\n case 2:\r\n if (t.sent) {\r\n t.next = 6;\r\n break\r\n }\r\n return t.next = 6, Object(E.h)(_.setBookmark(Object(a.a)({\r\n action: i.u.FIRST_PLAY\r\n }, e)));\r\n case 6:\r\n return t.next = 8, Object(E.k)(i.C.TransportControlEvents.addTransportControlEvent, i.a.PLAY, e);\r\n case 8:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), F)\r\n }\r\n\r\n function X(e) {\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(E.h)(_.setBookmark(Object(a.a)({\r\n action: i.u.BITRATE_CHANGE\r\n }, e)));\r\n case 2:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), G)\r\n }\r\n\r\n function z(e) {\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(E.h)(_.setBookmark(Object(a.a)({\r\n action: i.u.LOAD\r\n }, e)));\r\n case 2:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), H)\r\n }\r\n\r\n function J(e, t) {\r\n return Object(S.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(E.k)(i.C.TransportControlEvents.addTransportControlEvent, i.a.SEEK, e, t);\r\n case 2:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), B)\r\n }\r\n\r\n function $(e, t) {\r\n return Object(S.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(E.k)(i.C.TransportControlEvents.addTransportControlEvent, i.a.CHANNEL_TUNED, e, t);\r\n case 2:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), V)\r\n }\r\n\r\n function ee(e) {\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(E.k)(i.C.TransportControlEvents.addTransportControlEvent, i.a.START_OVER, e);\r\n case 2:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), W)\r\n }\r\n\r\n function te(e, t) {\r\n return Object(S.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(E.k)(i.C.TransportControlEvents.addTransportControlEvent, i.a.VOLUME, e, t);\r\n case 2:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), Y)\r\n }\r\n var ne, re = Object(S.a)().mark(ue),\r\n ae = Object(S.a)().mark(le);\r\n ! function(e) {\r\n e.START = \"consumption/delay/START\", e.END = \"consumption/delay/END\", e.CANCEL = \"consumption/delay/CANCEL\"\r\n }(ne || (ne = {}));\r\n var ce = function(e) {\r\n return {\r\n type: ne.START,\r\n meta: e\r\n }\r\n },\r\n se = function() {\r\n return {\r\n type: ne.CANCEL\r\n }\r\n },\r\n ie = {\r\n delay: function(e, t, n) {\r\n return ce({\r\n time: e,\r\n fn: t,\r\n meta: n\r\n })\r\n },\r\n cancel: function() {\r\n return se()\r\n }\r\n },\r\n oe = {\r\n waiting: !1,\r\n cancelled: !1\r\n };\r\n\r\n function ue(e) {\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n if (e.type !== ne.START) {\r\n t.next = 5;\r\n break\r\n }\r\n return t.next = 3, Object(E.e)(1e3 * e.meta.time);\r\n case 3:\r\n return t.next = 5, Object(E.c)(e.meta.fn, e.meta.meta);\r\n case 5:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), re)\r\n }\r\n\r\n function le() {\r\n return Object(S.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(E.n)([ne.START, ne.CANCEL], ue);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), ae)\r\n }\r\n var de, be = Object(S.a)().mark(Ae),\r\n Oe = Object(S.a)().mark(Re),\r\n fe = Object(S.a)().mark(Te),\r\n je = Object(S.a)().mark(Ne),\r\n pe = Object(S.a)().mark(ke),\r\n Ee = Object(S.a)().mark(Le),\r\n Se = Object(S.a)().mark(Pe),\r\n ve = 500,\r\n me = 500;\r\n ! function(e) {\r\n e.PLAY = \"consumption/engine/PLAY\", e.PLAYING = \"consumption/engine/PLAYING\", e.PAUSE = \"consumption/engine/PAUSE\", e.STOP = \"consumption/engine/STOP\", e.ZAP = \"consumption/engine/ZAP\", e.SCRUB_START = \"consumption/engine/SCRUB_START\", e.SCRUB_END = \"consumption/engine/SCRUB_END\", e.START_OVER = \"consumption/engine/START_OVER\", e.LOAD_START = \"consumption/engine/LOAD_START\", e.LOAD_END = \"consumption/engine/LOAD_END\", e.BITRATE_CHANGE = \"consumption/engine/BITRATE_CHANGE\", e.ROLLOVER = \"consumption/engine/ROLLOVER\", e.VOLUME = \"consumption/engine/VOLUME\", e.MUTE = \"consumption/engine/MUTE\"\r\n }(de || (de = {}));\r\n var he = {\r\n play: function(e) {\r\n return {\r\n type: de.PLAY,\r\n meta: e\r\n }\r\n },\r\n playing: function(e) {\r\n return {\r\n type: de.PLAYING,\r\n meta: e\r\n }\r\n },\r\n pause: function(e) {\r\n return {\r\n type: de.PAUSE,\r\n meta: e\r\n }\r\n },\r\n stop: function(e) {\r\n return {\r\n type: de.STOP,\r\n meta: e\r\n }\r\n },\r\n zap: function(e) {\r\n return {\r\n type: de.ZAP,\r\n meta: e\r\n }\r\n },\r\n scrubStart: function(e) {\r\n return {\r\n type: de.SCRUB_START,\r\n meta: e\r\n }\r\n },\r\n scrubEnd: function(e) {\r\n return {\r\n type: de.SCRUB_END,\r\n meta: e\r\n }\r\n },\r\n startOver: function(e) {\r\n return {\r\n type: de.START_OVER,\r\n meta: e\r\n }\r\n },\r\n loadStart: function(e) {\r\n return {\r\n type: de.LOAD_START,\r\n meta: e\r\n }\r\n },\r\n loadEnd: function(e) {\r\n return {\r\n type: de.LOAD_END,\r\n meta: e\r\n }\r\n },\r\n bitrateChange: function(e) {\r\n return {\r\n type: de.BITRATE_CHANGE,\r\n meta: e\r\n }\r\n },\r\n rollover: function(e) {\r\n return {\r\n type: de.ROLLOVER,\r\n meta: e\r\n }\r\n },\r\n volume: function(e) {\r\n return {\r\n type: de.VOLUME,\r\n meta: e\r\n }\r\n },\r\n mute: function(e) {\r\n return {\r\n type: de.MUTE,\r\n meta: e\r\n }\r\n }\r\n },\r\n ge = {\r\n play: he.play,\r\n playing: he.playing,\r\n pause: he.pause,\r\n stop: he.stop,\r\n zap: he.zap,\r\n scrubStart: he.scrubStart,\r\n scrubEnd: he.scrubEnd,\r\n startOver: he.startOver,\r\n loadStart: he.loadStart,\r\n loadEnd: he.loadEnd,\r\n bitrateChange: he.bitrateChange,\r\n rollover: he.rollover,\r\n volume: he.volume,\r\n mute: he.mute\r\n },\r\n Ie = {\r\n previousAssetState: void 0,\r\n previousState: void 0,\r\n currentState: void 0,\r\n playerActive: !1,\r\n playCalls: 0\r\n };\r\n\r\n function Ce(e) {\r\n return Object(a.a)(Object(a.a)({}, e), {}, {\r\n location: Math.floor(e.location)\r\n })\r\n }\r\n var xe = {\r\n getState: function(e) {\r\n return e.consumption.engine\r\n }\r\n };\r\n\r\n function Ae(e) {\r\n var t;\r\n return Object(S.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(E.j)(i.C.Dms.Selectors.getBookmarks);\r\n case 2:\r\n return t = n.sent, n.abrupt(\"return\", e ? (null === t || void 0 === t ? void 0 : t.linearMediaMark) || i.Ib.DMS_LINEAR_MEDIA_MARK : (null === t || void 0 === t ? void 0 : t.vodMediaMark) || i.Ib.DMS_VOD_MEDIA_MARK);\r\n case 4:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), be)\r\n }\r\n\r\n function _e(e, t) {\r\n return (null === e || void 0 === e ? void 0 : e.fileId) === (null === t || void 0 === t ? void 0 : t.fileId) && (null === e || void 0 === e ? void 0 : e.type) === (null === t || void 0 === t ? void 0 : t.type) && (null === e || void 0 === e ? void 0 : e.location) === (null === t || void 0 === t ? void 0 : t.location)\r\n }\r\n\r\n function Re() {\r\n var e, t, n, r, c, s, i, o, u, l;\r\n return Object(S.a)().wrap((function(d) {\r\n for (;;) switch (d.prev = d.next) {\r\n case 0:\r\n return d.next = 2, Object(E.j)(xe.getState);\r\n case 2:\r\n if (e = d.sent, t = e.currentState, n = e.previousState, r = e.playCalls, t && 0 !== r) {\r\n d.next = 8;\r\n break\r\n }\r\n return d.abrupt(\"return\");\r\n case 8:\r\n if (!_e(t, n)) {\r\n d.next = 10;\r\n break\r\n }\r\n return d.abrupt(\"return\");\r\n case 10:\r\n return c = t.type, s = t.location, i = t.isLive, d.next = 13, Object(E.c)(Ae, i);\r\n case 13:\r\n if (o = d.sent, u = s > 0 ? K : Z, l = null === n || void 0 === n ? void 0 : n.type, c !== de.PLAY) {\r\n d.next = 18;\r\n break\r\n }\r\n return d.abrupt(\"return\");\r\n case 18:\r\n if (!(n && c === de.PLAYING && l === de.LOAD_START && t.timestamp - n.timestamp < ve)) {\r\n d.next = 20;\r\n break\r\n }\r\n return d.abrupt(\"return\");\r\n case 20:\r\n return d.next = 22, Object(E.h)(ie.cancel());\r\n case 22:\r\n if (c !== de.PLAYING || 1 !== r) {\r\n d.next = 26;\r\n break\r\n }\r\n return d.next = 25, Object(E.h)(ie.delay(o, u, Object(a.a)(Object(a.a)({}, t), {}, {\r\n location: s + o\r\n })));\r\n case 25:\r\n return d.abrupt(\"return\");\r\n case 26:\r\n if (!(o > s) || 1 !== r) {\r\n d.next = 32;\r\n break\r\n }\r\n if (c !== de.STOP && c !== de.ZAP) {\r\n d.next = 30;\r\n break\r\n }\r\n return d.abrupt(\"return\");\r\n case 30:\r\n return d.next = 32, Object(E.c)(Z, t);\r\n case 32:\r\n d.t0 = c, d.next = d.t0 === de.PLAYING ? 35 : d.t0 === de.PAUSE ? 38 : d.t0 === de.STOP ? 42 : d.t0 === de.ZAP ? 46 : d.t0 === de.SCRUB_START ? 53 : d.t0 === de.SCRUB_END ? 57 : d.t0 === de.START_OVER ? 61 : 72;\r\n break;\r\n case 35:\r\n return d.next = 37, Object(E.c)(u, t);\r\n case 37:\r\n case 41:\r\n case 45:\r\n case 52:\r\n case 56:\r\n case 60:\r\n case 71:\r\n case 72:\r\n return d.abrupt(\"break\", 73);\r\n case 38:\r\n if (l === de.PAUSE) {\r\n d.next = 41;\r\n break\r\n }\r\n return d.next = 41, Object(E.c)(q, t);\r\n case 42:\r\n if (l === de.STOP || l === de.ZAP) {\r\n d.next = 45;\r\n break\r\n }\r\n return d.next = 45, Object(E.c)(Q, t);\r\n case 46:\r\n if (!i) {\r\n d.next = 52;\r\n break\r\n }\r\n if (!n) {\r\n d.next = 52;\r\n break\r\n }\r\n return d.next = 50, Object(E.c)(Q, n);\r\n case 50:\r\n return d.next = 52, Object(E.c)($, t, n);\r\n case 53:\r\n if (l === de.PAUSE || l === de.START_OVER) {\r\n d.next = 56;\r\n break\r\n }\r\n return d.next = 56, Object(E.c)(q, t);\r\n case 57:\r\n if (!n || n.location === t.location) {\r\n d.next = 60;\r\n break\r\n }\r\n return d.next = 60, Object(E.c)(J, t, n);\r\n case 61:\r\n return d.next = 63, Object(E.c)(ee, t);\r\n case 63:\r\n if (!i) {\r\n d.next = 68;\r\n break\r\n }\r\n return d.next = 66, Object(E.c)(Q, t);\r\n case 66:\r\n d.next = 71;\r\n break;\r\n case 68:\r\n if (l === de.PAUSE) {\r\n d.next = 71;\r\n break\r\n }\r\n return d.next = 71, Object(E.c)(q, t);\r\n case 73:\r\n case \"end\":\r\n return d.stop()\r\n }\r\n }), Oe)\r\n }\r\n\r\n function Te() {\r\n var e, t, n, r;\r\n return Object(S.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 2, Object(E.j)(xe.getState);\r\n case 2:\r\n if (e = a.sent, t = e.currentState, n = e.previousState, t) {\r\n a.next = 7;\r\n break\r\n }\r\n return a.abrupt(\"return\");\r\n case 7:\r\n r = t.type, a.t0 = r, a.next = a.t0 === de.VOLUME ? 11 : a.t0 === de.MUTE ? 16 : 19;\r\n break;\r\n case 11:\r\n return a.next = 13, Object(E.e)(me);\r\n case 13:\r\n return a.next = 15, Object(E.c)(te, t, n);\r\n case 15:\r\n case 18:\r\n case 19:\r\n return a.abrupt(\"break\", 20);\r\n case 16:\r\n return a.next = 18, Object(E.c)(te, t, n);\r\n case 20:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), fe)\r\n }\r\n\r\n function Ne(e) {\r\n var t, n;\r\n return Object(S.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.prev = 0, r.next = 3, Object(E.j)(xe.getState);\r\n case 3:\r\n if (t = r.sent, (n = t.previousState) && n.location !== e.location) {\r\n r.next = 8;\r\n break\r\n }\r\n return r.next = 8, Object(E.e)(1e3 * i.Ib.CONSUMPTION_MEDIA_LOAD_INTERVAL);\r\n case 8:\r\n if (!n || n.type !== de.PLAYING || n.location !== e.location) {\r\n r.next = 11;\r\n break\r\n }\r\n return r.next = 11, Object(E.e)(ve);\r\n case 11:\r\n return r.next = 14, Object(E.c)(z, e);\r\n case 14:\r\n return r.next = 16, Object(E.e)(1e3 * i.Ib.CONSUMPTION_MEDIA_LOAD_INTERVAL);\r\n case 16:\r\n r.next = 11;\r\n break;\r\n case 18:\r\n return r.prev = 18, r.finish(18);\r\n case 20:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), je, null, [\r\n [0, , 18, 20]\r\n ])\r\n }\r\n\r\n function ke(e) {\r\n var t, n, r, c;\r\n return Object(S.a)().wrap((function(s) {\r\n for (;;) switch (s.prev = s.next) {\r\n case 0:\r\n return t = e.type, n = e.meta, r = Ce(n), s.next = 4, Object(E.f)(Ne, Object(a.a)({\r\n type: t\r\n }, r));\r\n case 4:\r\n return c = s.sent, s.next = 7, Object(E.i)({\r\n stop: Object(E.l)(de.STOP),\r\n play: Object(E.l)(de.PLAY),\r\n playing: Object(E.l)(de.PLAYING),\r\n loadEnd: Object(E.l)(de.LOAD_END)\r\n });\r\n case 7:\r\n return s.next = 9, Object(E.d)(c);\r\n case 9:\r\n case \"end\":\r\n return s.stop()\r\n }\r\n }), pe)\r\n }\r\n\r\n function Le(e) {\r\n var t, n, r;\r\n return Object(S.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n t = e.type, n = e.meta, r = Ce(n), a.t0 = t, a.next = a.t0 === de.BITRATE_CHANGE ? 5 : a.t0 === de.ROLLOVER ? 8 : 9;\r\n break;\r\n case 5:\r\n return a.next = 7, Object(E.c)(X, r);\r\n case 7:\r\n case 8:\r\n case 9:\r\n return a.abrupt(\"break\", 10);\r\n case 10:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), Ee)\r\n }\r\n\r\n function Pe() {\r\n return Object(S.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(E.b)([Object(E.m)([de.PLAY, de.PLAYING, de.PAUSE, de.STOP, de.ZAP, de.SCRUB_START, de.SCRUB_END, de.START_OVER], Re), Object(E.n)([de.VOLUME, de.MUTE], Te), Object(E.n)([de.LOAD_START], ke), Object(E.m)([de.BITRATE_CHANGE, de.ROLLOVER], Le)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), Se)\r\n }\r\n var De = Object(S.a)().mark(Ye),\r\n ye = Object(S.a)().mark(Ke),\r\n we = Object(S.a)().mark(Qe),\r\n Ue = Object(S.a)().mark(qe),\r\n Me = Object(S.a)().mark(Ze),\r\n Fe = Object(S.a)().mark(Xe),\r\n Ge = Object(S.a)().mark(ze),\r\n He = Object(S.a)().mark(Je),\r\n Be = Object(S.a)().mark($e),\r\n Ve = Object(S.a)().mark(et),\r\n We = Object(S.a)().mark(tt);\r\n\r\n function Ye() {\r\n return Object(S.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(E.j)(v.d.isTrailerMode);\r\n case 2:\r\n return e.abrupt(\"return\", e.sent);\r\n case 3:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), De)\r\n }\r\n\r\n function Ke() {\r\n var e, t, n, r, a, c, s;\r\n return Object(S.a)().wrap((function(i) {\r\n for (;;) switch (i.prev = i.next) {\r\n case 0:\r\n return i.next = 2, Object(E.j)(v.d.currentAsset);\r\n case 2:\r\n return e = i.sent, i.next = 5, Object(E.j)(v.d.currentStream);\r\n case 5:\r\n if (null === (t = i.sent) || void 0 === t || !t.id) {\r\n i.next = 23;\r\n break\r\n }\r\n return i.next = 9, Object(E.j)(v.d.isLive);\r\n case 9:\r\n return n = i.sent, i.next = 12, Object(E.j)(v.d.channel);\r\n case 12:\r\n return r = i.sent, i.next = 15, Object(E.j)(v.d.currentProgress);\r\n case 15:\r\n return a = i.sent, i.next = 18, Object(E.j)(v.d.volume);\r\n case 18:\r\n return c = i.sent, i.next = 21, Object(E.j)(v.d.isMute);\r\n case 21:\r\n return s = i.sent, i.abrupt(\"return\", {\r\n isLive: n,\r\n asset: e,\r\n channel: r,\r\n fileId: t.id,\r\n location: a ? Math.floor(a) : 0,\r\n volume: c,\r\n mute: s\r\n });\r\n case 23:\r\n return i.abrupt(\"return\", void 0);\r\n case 24:\r\n case \"end\":\r\n return i.stop()\r\n }\r\n }), ye)\r\n }\r\n\r\n function Qe(e) {\r\n var t, n;\r\n return Object(S.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(E.c)(Ye);\r\n case 2:\r\n if (!r.sent) {\r\n r.next = 4;\r\n break\r\n }\r\n return r.abrupt(\"return\");\r\n case 4:\r\n return t = e.meta, r.next = 7, Object(E.c)(Ke);\r\n case 7:\r\n if (!(n = r.sent)) {\r\n r.next = 34;\r\n break\r\n }\r\n r.t0 = t, r.next = r.t0 === v.c.STREAM_LOADING ? 12 : r.t0 === v.c.BUFFERING ? 15 : r.t0 === v.c.STREAM_READY ? 18 : r.t0 === v.c.PLAY ? 21 : r.t0 === v.c.PLAYING ? 24 : r.t0 === v.c.PAUSED ? 27 : r.t0 === v.c.STOP ? 30 : 33;\r\n break;\r\n case 12:\r\n return r.next = 14, Object(E.h)(ge.loadStart(n));\r\n case 14:\r\n case 17:\r\n case 20:\r\n case 23:\r\n case 26:\r\n case 29:\r\n case 32:\r\n case 33:\r\n return r.abrupt(\"break\", 34);\r\n case 15:\r\n return r.next = 17, Object(E.h)(ge.loadStart(n));\r\n case 18:\r\n return r.next = 20, Object(E.h)(ge.loadEnd(n));\r\n case 21:\r\n return r.next = 23, Object(E.h)(ge.play(n));\r\n case 24:\r\n return r.next = 26, Object(E.h)(ge.playing(n));\r\n case 27:\r\n return r.next = 29, Object(E.h)(ge.pause(n));\r\n case 30:\r\n return r.next = 32, Object(E.h)(ge.stop(n));\r\n case 34:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), we)\r\n }\r\n\r\n function qe() {\r\n var e;\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(E.c)(Ye);\r\n case 2:\r\n if (!t.sent) {\r\n t.next = 4;\r\n break\r\n }\r\n return t.abrupt(\"return\");\r\n case 4:\r\n return t.next = 6, Object(E.c)(Ke);\r\n case 6:\r\n if (!(e = t.sent)) {\r\n t.next = 10;\r\n break\r\n }\r\n return t.next = 10, Object(E.h)(ge.startOver(e));\r\n case 10:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), Ue)\r\n }\r\n\r\n function Ze() {\r\n var e;\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(E.c)(Ye);\r\n case 2:\r\n if (!t.sent) {\r\n t.next = 4;\r\n break\r\n }\r\n return t.abrupt(\"return\");\r\n case 4:\r\n return t.next = 6, Object(E.c)(Ke);\r\n case 6:\r\n if (!(e = t.sent)) {\r\n t.next = 10;\r\n break\r\n }\r\n return t.next = 10, Object(E.h)(ge.scrubStart(e));\r\n case 10:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), Me)\r\n }\r\n\r\n function Xe() {\r\n var e;\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(E.c)(Ye);\r\n case 2:\r\n if (!t.sent) {\r\n t.next = 4;\r\n break\r\n }\r\n return t.abrupt(\"return\");\r\n case 4:\r\n return t.next = 6, Object(E.c)(Ke);\r\n case 6:\r\n if (!(e = t.sent)) {\r\n t.next = 10;\r\n break\r\n }\r\n return t.next = 10, Object(E.h)(ge.scrubEnd(e));\r\n case 10:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), Fe)\r\n }\r\n\r\n function ze() {\r\n var e;\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(E.c)(Ye);\r\n case 2:\r\n if (!t.sent) {\r\n t.next = 4;\r\n break\r\n }\r\n return t.abrupt(\"return\");\r\n case 4:\r\n return t.next = 6, Object(E.c)(Ke);\r\n case 6:\r\n if (!(e = t.sent)) {\r\n t.next = 10;\r\n break\r\n }\r\n return t.next = 10, Object(E.h)(ge.scrubEnd(e));\r\n case 10:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), Ge)\r\n }\r\n\r\n function Je() {\r\n var e;\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(E.c)(Ye);\r\n case 2:\r\n if (!t.sent) {\r\n t.next = 4;\r\n break\r\n }\r\n return t.abrupt(\"return\");\r\n case 4:\r\n return t.next = 6, Object(E.c)(Ke);\r\n case 6:\r\n if (!(e = t.sent)) {\r\n t.next = 10;\r\n break\r\n }\r\n return t.next = 10, Object(E.h)(ge.stop(e));\r\n case 10:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), He)\r\n }\r\n\r\n function $e() {\r\n var e;\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(E.c)(Ye);\r\n case 2:\r\n if (!t.sent) {\r\n t.next = 4;\r\n break\r\n }\r\n return t.abrupt(\"return\");\r\n case 4:\r\n return t.next = 6, Object(E.c)(Ke);\r\n case 6:\r\n if (!(e = t.sent)) {\r\n t.next = 10;\r\n break\r\n }\r\n return t.next = 10, Object(E.h)(ge.volume(e));\r\n case 10:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), Be)\r\n }\r\n\r\n function et() {\r\n var e;\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(E.c)(Ye);\r\n case 2:\r\n if (!t.sent) {\r\n t.next = 4;\r\n break\r\n }\r\n return t.abrupt(\"return\");\r\n case 4:\r\n return t.next = 6, Object(E.c)(Ke);\r\n case 6:\r\n if (!(e = t.sent)) {\r\n t.next = 10;\r\n break\r\n }\r\n return t.next = 10, Object(E.h)(ge.mute(e));\r\n case 10:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), Ve)\r\n }\r\n\r\n function tt() {\r\n return Object(S.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(E.b)([Object(E.m)(v.b.SET_PLAYBACK_STATE, Qe), Object(E.n)(v.b.SET_VOLUME, $e), Object(E.m)(v.b.SET_MUTE_STATE, et), Object(E.m)(v.b.RESTART_REQUEST, qe), Object(E.m)(v.b.SEEK_REQUEST, Ze), Object(E.m)(v.b.SEEK_SUCCESS, Xe), Object(E.m)(v.b.SEEK_FAIL, ze), Object(E.m)(v.b.WATCH_REQUEST, Je)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), We)\r\n }\r\n var nt, rt = Object(s.b)({\r\n bookmarks: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : R;\r\n switch ((arguments.length > 1 ? arguments[1] : void 0).type) {\r\n case r.HIT_TASK_START:\r\n return {\r\n hitTaskRunning: !0\r\n };\r\n case r.HIT_TASK_STOP:\r\n return {\r\n hitTaskRunning: !1\r\n };\r\n default:\r\n return e\r\n }\r\n },\r\n engine: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Ie,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case de.PLAY:\r\n case de.PLAYING:\r\n case de.PAUSE:\r\n case de.STOP:\r\n case de.ZAP:\r\n case de.SCRUB_START:\r\n case de.SCRUB_END:\r\n case de.START_OVER:\r\n case de.LOAD_START:\r\n case de.LOAD_END:\r\n case de.ROLLOVER:\r\n case de.VOLUME:\r\n case de.MUTE:\r\n var n = e.currentState,\r\n r = Object(a.a)(Object(a.a)({\r\n type: t.type\r\n }, Ce(t.meta)), {}, {\r\n timestamp: Date.now()\r\n }),\r\n c = n && function(e, t) {\r\n return void 0 === e.asset && void 0 === t.asset ? void 0 !== e.channel && void 0 !== t.channel && i.i.isSameContent(e.channel, t.channel) : void 0 !== e.asset && void 0 !== t.asset && i.i.isSameContent(e.asset, t.asset)\r\n }(n, r),\r\n s = e.playerActive,\r\n o = e.playCalls;\r\n return c ? (t.type === de.PLAY && (s = !0), s && t.type === de.PLAYING && (o += 1), Object(a.a)(Object(a.a)({}, e), {}, {\r\n previousState: n,\r\n currentState: r,\r\n playerActive: s,\r\n playCalls: o\r\n })) : {\r\n previousAssetState: n,\r\n previousState: void 0,\r\n currentState: r,\r\n playerActive: !1,\r\n playCalls: 0\r\n };\r\n case de.BITRATE_CHANGE:\r\n default:\r\n return e\r\n }\r\n },\r\n delay: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : oe,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case ne.START:\r\n return {\r\n data: t.meta.meta,\r\n waiting: !0,\r\n cancelled: !1\r\n };\r\n case ne.END:\r\n return {\r\n waiting: !1,\r\n cancelled: !1\r\n };\r\n case ne.CANCEL:\r\n return e.waiting ? Object(a.a)(Object(a.a)({}, e), {}, {\r\n waiting: !1,\r\n cancelled: !0\r\n }) : e;\r\n default:\r\n return e\r\n }\r\n }\r\n }),\r\n at = [Object(E.c)(y), Object(E.c)(Pe), Object(E.c)(le), Object(E.c)(tt)],\r\n ct = n(132),\r\n st = n(138),\r\n it = n(161),\r\n ot = n(6),\r\n ut = Object(S.a)().mark(ft),\r\n lt = Object(S.a)().mark(jt);\r\n ! function(e) {\r\n e.ADD = \"folderLastWatchedContent/ADD\", e.UPDATE = \"folderLastWatchedContent/UPDATE\"\r\n }(nt || (nt = {}));\r\n var dt = {\r\n add: function(e) {\r\n return {\r\n type: nt.ADD,\r\n meta: e\r\n }\r\n },\r\n update: function(e) {\r\n return {\r\n type: nt.UPDATE,\r\n meta: e\r\n }\r\n }\r\n },\r\n bt = (dt.add, {});\r\n var Ot = {\r\n getFolderLastWatchedContent: function(e, t) {\r\n var n = i.C.Dms.Selectors.getFoldersConfig(e),\r\n r = e.folderLastWatchedContents[t];\r\n if (r && n) {\r\n var a = n.lastWatchedContentCache,\r\n c = r.timestamp,\r\n s = i.Pb.addDestructuredDuration(c, a);\r\n return i.Pb.isBeforeNow(s) ? e.folderLastWatchedContents[t].content : void 0\r\n }\r\n }\r\n };\r\n\r\n function ft(e) {\r\n var t, n, r;\r\n return Object(S.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return t = e.meta, n = t.folder, r = t.content, a.next = 3, Object(E.j)(Ot.getFolderLastWatchedContent, n.id);\r\n case 3:\r\n if (a.sent) {\r\n a.next = 7;\r\n break\r\n }\r\n return a.next = 7, Object(E.h)(dt.update({\r\n folder: n,\r\n content: r,\r\n timestamp: i.Pb.now()\r\n }));\r\n case 7:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), ut)\r\n }\r\n\r\n function jt() {\r\n return Object(S.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(E.b)([Object(E.m)(nt.ADD, ft)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), lt)\r\n }\r\n var pt = n(40),\r\n Et = n(136),\r\n St = n(160),\r\n vt = n(128),\r\n mt = {\r\n assets: o.d,\r\n folders: u.b,\r\n gdpr: l.c,\r\n channels: d.d,\r\n playableChannels: b.b,\r\n tunedChannels: f.c,\r\n region: j.d,\r\n wishlist: p.e,\r\n consumption: rt,\r\n entitlements: ct.b,\r\n recordings: st.d,\r\n topCannels: O.a,\r\n playbackLicense: it.a,\r\n folderLastWatchedContents: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : bt,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case nt.UPDATE:\r\n var n = t.meta,\r\n r = n.folder,\r\n c = n.content,\r\n s = n.timestamp;\r\n return Object(a.a)(Object(a.a)({}, e), {}, Object(ot.a)({}, r.id, {\r\n content: c,\r\n timestamp: s\r\n }));\r\n case nt.ADD:\r\n default:\r\n return e\r\n }\r\n },\r\n parentalControl: pt.d,\r\n contentSettings: Et.d,\r\n vodProductIdCache: St.b,\r\n ssm: vt.c\r\n },\r\n ht = n(109),\r\n gt = n(48),\r\n It = n(77),\r\n Ct = n(180),\r\n xt = n(106),\r\n At = n(164),\r\n _t = Object(s.b)({\r\n currentChannel: Ct.c,\r\n channelFilters: xt.e,\r\n filterChannels: At.c\r\n }),\r\n Rt = [Object(E.c)(Ct.d), Object(E.c)(xt.f), Object(E.c)(At.d)],\r\n Tt = n(58),\r\n Nt = n(56),\r\n kt = n(113),\r\n Lt = n(46),\r\n Pt = Object(s.b)({\r\n managePin: Lt.c\r\n }),\r\n Dt = [Object(E.c)(Lt.d)],\r\n yt = n(60),\r\n wt = n(68),\r\n Ut = n(126),\r\n Mt = n(191),\r\n Ft = n(155),\r\n Gt = n(127),\r\n Ht = n(192),\r\n Bt = n(193),\r\n Vt = Object(s.b)({\r\n actionsWatcher: Ht.b,\r\n navigationPathWatcher: Gt.b\r\n }),\r\n Wt = [Object(E.c)(Ft.c), Object(E.c)(Ht.c), Object(E.c)(Bt.c), Object(E.c)(Gt.c)],\r\n Yt = {\r\n layoutProgressBar: ht.c,\r\n startUp: gt.d,\r\n onDemand: It.c,\r\n watchTv: _t,\r\n myTv: Tt.c,\r\n search: Nt.c,\r\n router: kt.c,\r\n settings: Pt,\r\n player: v.e,\r\n programInfo: yt.e,\r\n folderInfo: wt.c,\r\n visualScrubber: Ut.c,\r\n offline: Mt.c,\r\n analyticsWatchers: Vt\r\n },\r\n Kt = n(143);\r\n var Qt = n(15),\r\n qt = [Object(E.c)(o.f), Object(E.c)(l.d), Object(E.c)(d.f), Object(E.c)(f.d), Object(E.c)(j.e), Object(E.c)(p.f)].concat(Object(Qt.a)(at), Object(Qt.a)(ct.c), Object(Qt.a)(st.e), [Object(E.c)(O.c)], Object(Qt.a)(it.d), [Object(E.c)(O.c), Object(E.c)(pt.e), Object(E.c)(jt), Object(E.c)(Et.e), Object(E.c)(St.c)]),\r\n Zt = Object(S.a)().mark(zt),\r\n Xt = Object(S.a)().mark(Jt);\r\n\r\n function zt(e) {\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.prev = 1, t.next = 4, e;\r\n case 4:\r\n return t.abrupt(\"break\", 12);\r\n case 7:\r\n t.prev = 7, t.t0 = t.catch(1), console.log(\"Saga error: \", t.t0);\r\n case 10:\r\n t.next = 0;\r\n break;\r\n case 12:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), Zt, null, [\r\n [1, 7]\r\n ])\r\n }\r\n\r\n function Jt() {\r\n var e;\r\n return Object(S.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return e = [].concat(Object(Qt.a)(i.ic), Object(Qt.a)(qt), [Object(E.c)(ht.d), Object(E.c)(gt.e), Object(E.c)(It.d)], Object(Qt.a)(Rt), Object(Qt.a)(Tt.d), [Object(E.c)(v.f)], Object(Qt.a)(yt.f), Object(Qt.a)(wt.d), Object(Qt.a)(Ut.d), [Object(E.c)(Nt.d)], Object(Qt.a)(Dt), Object(Qt.a)(Wt)), t.next = 3, Object(E.b)(e.map((function(e) {\r\n return Object(E.k)(zt, e)\r\n })));\r\n case 3:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), Xt)\r\n }\r\n var $t, en = Object(a.a)(Object(a.a)(Object(a.a)({}, i.hc), mt), Yt),\r\n tn = Object(s.b)(en);\r\n t.a = function() {\r\n if (!$t) {\r\n var e = Object(c.b)({\r\n onError: function(e, t) {\r\n var n = t.sagaStack;\r\n Kt.a && console.error(e.stack, \"\\n\\n\".concat(n))\r\n }\r\n }),\r\n t = [e];\r\n if (Kt.a) {\r\n var n = Object(i.bc)();\r\n t.push(n)\r\n }\r\n var r = Object(i.cc)();\r\n if (t.push(r), Kt.b.LOG_REDUX_STATE) {\r\n var a = function(e) {\r\n return function(t) {\r\n return function(n) {\r\n var r = !Kt.b.LOG_REDUX_STATE_BLACK_LIST_REGEX || !n.type.match(Kt.b.LOG_REDUX_STATE_BLACK_LIST_REGEX);\r\n r && (console.group(n.type), console.info(\"dispatching\", n));\r\n var a = t(n);\r\n return r && (console.log(\"next state\", e.getState()), console.groupEnd()), a\r\n }\r\n }\r\n };\r\n t.push(a)\r\n }($t = Object(s.d)(tn, s.a.apply(void 0, t))).injectReducer = i.Ab.createReducerInjector($t, en), $t.injectSaga = i.Fb.createSagaInjector(e.run, Jt)\r\n }\r\n return $t\r\n }\r\n }, , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"b\", (function() {\r\n return r\r\n })), n.d(t, \"a\", (function() {\r\n return _\r\n })), n.d(t, \"d\", (function() {\r\n return T\r\n })), n.d(t, \"c\", (function() {\r\n return N\r\n })), n.d(t, \"e\", (function() {\r\n return Y\r\n }));\r\n var r, a = n(2),\r\n c = n(6),\r\n s = n(4),\r\n i = n(1),\r\n o = n(0),\r\n u = n(46),\r\n l = n(36),\r\n d = Object(a.a)().mark(k),\r\n b = Object(a.a)().mark(L),\r\n O = Object(a.a)().mark(P),\r\n f = Object(a.a)().mark(D),\r\n j = Object(a.a)().mark(y),\r\n p = Object(a.a)().mark(w),\r\n E = Object(a.a)().mark(U),\r\n S = Object(a.a)().mark(M),\r\n v = Object(a.a)().mark(F),\r\n m = Object(a.a)().mark(G),\r\n h = Object(a.a)().mark(H),\r\n g = Object(a.a)().mark(B),\r\n I = Object(a.a)().mark(V),\r\n C = Object(a.a)().mark(W),\r\n x = Object(a.a)().mark(Y);\r\n ! function(e) {\r\n e.CHANGE_MASTER_PIN = \"parentalControl/preference/CHANGE_MASTER_PIN\", e.CHANGE_PARENTAL_VALIDATION_REQUEST = \"parentalControl/preference/CHANGE_PARENTAL_VALIDATION_REQUEST\", e.CHANGE_PARENTAL_VALIDATION_SUCCESS = \"parentalControl/preference/CHANGE_PARENTAL_VALIDATION_SUCCESS\", e.CHANGE_PARENTAL_VALIDATION_FAIL = \"parentalControl/preference/CHANGE_PARENTAL_VALIDATION_FAIL\", e.CHANGE_MASTER_PIN_SUCCESS = \"parentalControl/preference/CHANGE_MASTER_PIN_SUCCESS\", e.CHANGE_MASTER_PIN_FAIL = \"parentalControl/preference/CHANGE_MASTER_PIN_FAIL\", e.CHANGE_LOCKED_CHANNELS = \"parentalControl/CHANGE_LOCKED_CHANNELS\", e.CHANGE_LOCKED_CHANNELS_SUCCESS = \"parentalControl/CHANGE_LOCKED_CHANNELS_SUCCESS\", e.CHANGE_LOCKED_CHANNELS_FAIL = \"parentalControl/CHANGE_LOCKED_CHANNELS_FAIL\", e.CHANGE_PURCHASE_PIN = \"parentalControl/CHANGE_PURCHASE_PIN\", e.CHANGE_PURCHASE_PIN_SUCCESS = \"parentalControl/CHANGE_PURCHASE_PIN_SUCCESS\", e.CHANGE_PURCHASE_PIN_ERROR = \"parentalControl/CHANGE_PURCHASE_PIN_ERROR\", e.LOAD_LOCKED_CHANNELS = \"parentalControl/LOAD_LOCKED_CHANNELS\", e.LOAD_LOCKED_CHANNELS_SUCCESS = \"parentalControl/LOAD_LOCKED_CHANNELS_SUCCESS\", e.LOAD_LOCKED_CHANNELS_FAIL = \"parentalControl/LOAD_LOCKED_CHANNELS_FAIL\", e.LOAD_AGE_RATING = \"parentalControl/LOAD_AGE_RATING\", e.LOAD_AGE_RATING_SUCCESS = \"parentalControl/LOAD_AGE_RATING_SUCCESS\", e.LOAD_AGE_RATING_FAIL = \"parentalControl/LOAD_AGE_RATING_FAIL\", e.SET_AGE_RATING = \"parentalControl/SET_AGE_RATING\", e.SET_AGE_RATING_SUCCESS = \"parentalControl/SET_AGE_RATING_SUCCESS\", e.SET_AGE_RATING_FAIL = \"parentalControl/SET_AGE_RATING_FAIL\", e.SET_AGE_RATING_ASK_PIN = \"parentalControl/SET_AGE_RATING_ASK_PIN\", e.SET_PARENTAL_LOCK_OCCURRED = \"parentalControl/SET_PARENTAL_LOCK_OCCURRED\", e.ACCESSIBILITY_SUBTITLES_REQUEST = \"parentalControl/ACCESSIBILITY_SUBTITLES_REQUEST\", e.ACCESSIBILITY_SUBTITLES_SUCCESS = \"parentalControl/ACCESSIBILITY_SUBTITLES_SUCCESS\", e.ACCESSIBILITY_SUBTITLES_FAIL = \"parentalControl/ACCESSIBILITY_SUBTITLES_FAIL\", e.ACCESSIBILITY_AUDIO_DESCRIPTION_REQUEST = \"parentalControl/ACCESSIBILITY_AUDIO_DESCRIPTION_REQUEST\", e.ACCESSIBILITY_AUDIO_DESCRIPTION_SUCCESS = \"parentalControl/ACCESSIBILITY_AUDIO_DESCRIPTION_SUCCESS\", e.ACCESSIBILITY_AUDIO_DESCRIPTION_FAIL = \"parentalControl/ACCESSIBILITY_AUDIO_DESCRIPTION_FAIL\", e.RESET_ERRORS = \"parentalControl/RESET_ERRORS\"\r\n }(r || (r = {}));\r\n var A = {\r\n changeMasterPin: function(e) {\r\n return {\r\n type: r.CHANGE_MASTER_PIN,\r\n meta: {\r\n masterPin: e\r\n }\r\n }\r\n },\r\n changeParentalValidation: function(e) {\r\n return {\r\n type: r.CHANGE_PARENTAL_VALIDATION_REQUEST,\r\n meta: {\r\n parentalValidation: e\r\n }\r\n }\r\n },\r\n changePurchasePin: function(e) {\r\n return {\r\n type: r.CHANGE_PURCHASE_PIN,\r\n meta: {\r\n purchasePinEnabled: e\r\n }\r\n }\r\n },\r\n changePurchasePinSuccess: function() {\r\n return {\r\n type: r.CHANGE_PURCHASE_PIN_SUCCESS\r\n }\r\n },\r\n changePurchasePinFail: function(e) {\r\n return {\r\n type: r.CHANGE_PURCHASE_PIN_ERROR,\r\n error: e\r\n }\r\n },\r\n changeMasterPinSuccess: function() {\r\n return {\r\n type: r.CHANGE_MASTER_PIN_SUCCESS\r\n }\r\n },\r\n changeMasterPinFail: function(e) {\r\n return {\r\n type: r.CHANGE_MASTER_PIN_FAIL,\r\n error: e\r\n }\r\n },\r\n changeParentalValidationSuccess: function() {\r\n return {\r\n type: r.CHANGE_PARENTAL_VALIDATION_SUCCESS\r\n }\r\n },\r\n changeParentalValidationFail: function(e) {\r\n return {\r\n type: r.CHANGE_PARENTAL_VALIDATION_FAIL,\r\n error: e\r\n }\r\n },\r\n changeAccessibilitySubtitlesRequest: function(e) {\r\n return {\r\n type: r.ACCESSIBILITY_SUBTITLES_REQUEST,\r\n meta: {\r\n accessibilitySubtitles: e\r\n }\r\n }\r\n },\r\n changeAccessibilitySubtitlesSuccess: function() {\r\n return {\r\n type: r.ACCESSIBILITY_SUBTITLES_SUCCESS\r\n }\r\n },\r\n changeAccessibilitySubtitlesFail: function(e) {\r\n return {\r\n type: r.ACCESSIBILITY_SUBTITLES_FAIL,\r\n error: e\r\n }\r\n },\r\n changeAccessibilityAudioDescriptionRequest: function(e) {\r\n return {\r\n type: r.ACCESSIBILITY_AUDIO_DESCRIPTION_REQUEST,\r\n meta: {\r\n accessibilityAudioDescription: e\r\n }\r\n }\r\n },\r\n changeAccessibilityAudioDescriptionSuccess: function() {\r\n return {\r\n type: r.ACCESSIBILITY_AUDIO_DESCRIPTION_SUCCESS\r\n }\r\n },\r\n changeAccessibilityAudioDescriptionFail: function(e) {\r\n return {\r\n type: r.ACCESSIBILITY_AUDIO_DESCRIPTION_FAIL,\r\n error: e\r\n }\r\n },\r\n changeLockedChannels: function(e) {\r\n return {\r\n type: r.CHANGE_LOCKED_CHANNELS,\r\n meta: {\r\n lockedChannelsList: e\r\n }\r\n }\r\n },\r\n changeLockedChannelsSuccess: function(e) {\r\n return {\r\n type: r.CHANGE_LOCKED_CHANNELS_SUCCESS,\r\n payload: {\r\n lockedChannelsList: e\r\n }\r\n }\r\n },\r\n changeLockedChannelsFail: function(e) {\r\n return {\r\n type: r.CHANGE_LOCKED_CHANNELS_FAIL,\r\n error: e\r\n }\r\n },\r\n loadLockedChannels: function() {\r\n return {\r\n type: r.LOAD_LOCKED_CHANNELS\r\n }\r\n },\r\n loadLockedChannelsSuccess: function(e) {\r\n return {\r\n type: r.LOAD_LOCKED_CHANNELS_SUCCESS,\r\n payload: {\r\n lockedChannelsList: e\r\n }\r\n }\r\n },\r\n loadLockedChannelsFail: function(e) {\r\n return {\r\n type: r.LOAD_LOCKED_CHANNELS_FAIL,\r\n error: e\r\n }\r\n },\r\n loadAgeRatingFailed: function(e) {\r\n return {\r\n type: r.LOAD_AGE_RATING_FAIL,\r\n error: e\r\n }\r\n },\r\n loadAgeRatingSuccess: function(e) {\r\n return {\r\n type: r.LOAD_AGE_RATING_SUCCESS,\r\n payload: {\r\n ageRatingValue: e\r\n }\r\n }\r\n },\r\n loadAgeRating: function() {\r\n return {\r\n type: r.LOAD_AGE_RATING\r\n }\r\n },\r\n setAgeRating: function(e) {\r\n return {\r\n type: r.SET_AGE_RATING,\r\n meta: {\r\n ageRatingValue: e\r\n }\r\n }\r\n },\r\n setAgeRatingSuccess: function(e) {\r\n return {\r\n type: r.SET_AGE_RATING_SUCCESS,\r\n payload: {\r\n ageRatingValue: e\r\n }\r\n }\r\n },\r\n setAgeRatingAskPin: function(e) {\r\n return {\r\n type: r.SET_AGE_RATING_ASK_PIN,\r\n payload: {\r\n ageRatingAskPin: e\r\n }\r\n }\r\n },\r\n setAgeRatingFail: function(e) {\r\n return {\r\n type: r.SET_AGE_RATING_FAIL,\r\n error: e\r\n }\r\n },\r\n setParentalLockOccurred: function(e) {\r\n return {\r\n type: r.SET_PARENTAL_LOCK_OCCURRED,\r\n meta: {\r\n parentalLockOccurred: e\r\n }\r\n }\r\n },\r\n resetErrors: function() {\r\n return {\r\n type: r.RESET_ERRORS\r\n }\r\n }\r\n },\r\n _ = {\r\n changeMasterPin: A.changeMasterPin,\r\n changeParentalValidation: A.changeParentalValidation,\r\n changePurchasePin: A.changePurchasePin,\r\n changeAccessibilitySubtitles: A.changeAccessibilitySubtitlesRequest,\r\n changeAccessibilityAudioDescription: A.changeAccessibilityAudioDescriptionRequest,\r\n setAgeRating: A.setAgeRating,\r\n setAgeRatingAskPin: A.setAgeRatingAskPin,\r\n setParentalLockOccurred: A.setParentalLockOccurred,\r\n changeLockedChannels: A.changeLockedChannels,\r\n loadAgeRating: A.loadAgeRating,\r\n resetErrors: A.resetErrors\r\n },\r\n R = {\r\n processing: !1,\r\n processed: !1,\r\n error: void 0,\r\n ageRating: void 0,\r\n ageRatingAskPin: !0,\r\n parentalLockOccurred: void 0,\r\n lockedChannels: []\r\n };\r\n\r\n function T() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : R,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case r.RESET_ERRORS:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n error: void 0\r\n });\r\n case r.CHANGE_PARENTAL_VALIDATION_REQUEST:\r\n case r.SET_AGE_RATING:\r\n case r.LOAD_AGE_RATING:\r\n case r.CHANGE_MASTER_PIN:\r\n case r.CHANGE_LOCKED_CHANNELS:\r\n case r.LOAD_LOCKED_CHANNELS:\r\n case r.CHANGE_PURCHASE_PIN:\r\n case r.ACCESSIBILITY_AUDIO_DESCRIPTION_REQUEST:\r\n case r.ACCESSIBILITY_SUBTITLES_REQUEST:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processing: !0,\r\n processed: !1,\r\n error: void 0\r\n });\r\n case r.CHANGE_PARENTAL_VALIDATION_SUCCESS:\r\n case r.CHANGE_MASTER_PIN_SUCCESS:\r\n case r.CHANGE_PURCHASE_PIN_SUCCESS:\r\n case r.ACCESSIBILITY_AUDIO_DESCRIPTION_SUCCESS:\r\n case r.ACCESSIBILITY_SUBTITLES_SUCCESS:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processing: !1,\r\n processed: !0\r\n });\r\n case r.SET_AGE_RATING_SUCCESS:\r\n case r.LOAD_AGE_RATING_SUCCESS:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processing: !1,\r\n processed: !0,\r\n ageRating: t.payload.ageRatingValue,\r\n parentalLockOccurred: void 0\r\n });\r\n case r.SET_AGE_RATING_ASK_PIN:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n ageRatingAskPin: t.payload.ageRatingAskPin\r\n });\r\n case r.SET_PARENTAL_LOCK_OCCURRED:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n parentalLockOccurred: t.meta.parentalLockOccurred\r\n });\r\n case r.CHANGE_LOCKED_CHANNELS_SUCCESS:\r\n case r.LOAD_LOCKED_CHANNELS_SUCCESS:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processing: !1,\r\n processed: !0,\r\n lockedChannels: t.payload.lockedChannelsList\r\n });\r\n case r.CHANGE_PARENTAL_VALIDATION_FAIL:\r\n case r.SET_AGE_RATING_FAIL:\r\n case r.LOAD_AGE_RATING_FAIL:\r\n case r.CHANGE_MASTER_PIN_FAIL:\r\n case r.CHANGE_LOCKED_CHANNELS_FAIL:\r\n case r.LOAD_LOCKED_CHANNELS_FAIL:\r\n case r.CHANGE_PURCHASE_PIN_ERROR:\r\n case r.ACCESSIBILITY_AUDIO_DESCRIPTION_FAIL:\r\n case r.ACCESSIBILITY_SUBTITLES_FAIL:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processing: !1,\r\n processed: !0,\r\n error: t.error\r\n });\r\n default:\r\n return e\r\n }\r\n }\r\n var N = {\r\n isProcessed: function(e) {\r\n return !0 === e.parentalControl.processed\r\n },\r\n isProcessing: function(e) {\r\n return !0 === e.parentalControl.processing\r\n },\r\n getError: function(e) {\r\n return e.parentalControl.error\r\n },\r\n getAgeRatings: function(e) {\r\n var t;\r\n return null === (t = e.configs.dms.data) || void 0 === t ? void 0 : t.parentalControl.parentalRating.parentalRatingValues.filter((function(e) {\r\n return e.selectable\r\n }))\r\n },\r\n getAgeRatingAskPin: function(e) {\r\n return e.parentalControl.ageRatingAskPin\r\n },\r\n getAgeRating: function(e) {\r\n return e.parentalControl.ageRating\r\n },\r\n getParentalLockOccurred: function(e) {\r\n return e.parentalControl.parentalLockOccurred\r\n },\r\n getLockedChannels: function(e) {\r\n return e.parentalControl.lockedChannels\r\n }\r\n };\r\n\r\n function k(e) {\r\n var t, n, r, b, O;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, Object(i.j)(o.C.Household.Selectors.data.getUsers);\r\n case 3:\r\n if (t = a.sent, n = t.find((function(e) {\r\n return e.role === o.Eb.DEFAULT\r\n })), (r = e.meta.masterPin) !== o.Ib.DEFAULT_MASTER_PIN) {\r\n a.next = 10;\r\n break\r\n }\r\n throw o.Zb.fromCode(o.kb.generic.defaultMasterPin);\r\n case 10:\r\n return a.next = 12, Object(i.h)(o.C.Household.Creators.updateUserPreference(Object(s.a)(Object(s.a)({}, n), {}, Object(c.a)({}, o.Rb.MASTER_PIN, r)), o.Rb.MASTER_PIN));\r\n case 12:\r\n return a.next = 14, Object(i.i)({\r\n resultSuccess: Object(i.l)(o.C.Household.ActionType.updateUserPreference.SUCCESS),\r\n resultError: Object(i.l)(o.C.Household.ActionType.updateUserPreference.FAIL)\r\n });\r\n case 14:\r\n if (b = a.sent, !b.resultSuccess) {\r\n a.next = 23;\r\n break\r\n }\r\n return a.next = 19, Object(i.h)(A.changeMasterPinSuccess());\r\n case 19:\r\n return a.next = 21, Object(i.f)(l.d, o.b.CHANGE_PIN);\r\n case 21:\r\n a.next = 24;\r\n break;\r\n case 23:\r\n throw o.Zb.fromCode(o.kb.generic.savingMasterPin);\r\n case 24:\r\n a.next = 35;\r\n break;\r\n case 26:\r\n return a.prev = 26, a.t0 = a.catch(0), O = o.Zb.fromError(a.t0), a.next = 31, Object(i.h)(A.changeMasterPinFail(O));\r\n case 31:\r\n return a.next = 33, Object(i.h)(u.a.pinError(O));\r\n case 33:\r\n return a.next = 35, Object(i.f)(l.d, o.b.CHANGE_PIN, void 0, void 0, O);\r\n case 35:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), d, null, [\r\n [0, 26]\r\n ])\r\n }\r\n\r\n function L(e) {\r\n var t, n, r, u, d;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return t = e.meta.parentalValidation, a.prev = 1, a.next = 4, Object(i.j)(o.C.Household.Selectors.data.getDefaultUser);\r\n case 4:\r\n if (n = a.sent) {\r\n a.next = 9;\r\n break\r\n }\r\n return a.next = 8, Object(i.h)(A.changeParentalValidationFail(o.Zb.fromError(new Error(\"Error on change parental validation\"))));\r\n case 8:\r\n return a.abrupt(\"return\");\r\n case 9:\r\n return a.next = 11, Object(i.h)(o.C.Household.Creators.updateUserPreference(Object(s.a)(Object(s.a)({}, n), {}, Object(c.a)({}, o.Rb.PARENTAL_VALIDATION, t)), o.Rb.PARENTAL_VALIDATION));\r\n case 11:\r\n return a.next = 13, Object(i.i)({\r\n resultSuccess: Object(i.l)(o.C.Household.ActionType.updateUserPreference.SUCCESS),\r\n resultError: Object(i.l)(o.C.Household.ActionType.updateUserPreference.FAIL)\r\n });\r\n case 13:\r\n if (r = a.sent, !r.resultSuccess) {\r\n a.next = 22;\r\n break\r\n }\r\n return a.next = 18, Object(i.h)(A.changeParentalValidationSuccess());\r\n case 18:\r\n return a.next = 20, Object(i.f)(l.a, t);\r\n case 20:\r\n a.next = 27;\r\n break;\r\n case 22:\r\n return u = o.Zb.fromError(new Error(\"Error on change parental validation\")), a.next = 25, Object(i.h)(A.changeParentalValidationFail(u));\r\n case 25:\r\n return a.next = 27, Object(i.f)(l.a, t, u);\r\n case 27:\r\n a.next = 36;\r\n break;\r\n case 29:\r\n return a.prev = 29, a.t0 = a.catch(1), d = o.Zb.fromError(a.t0), a.next = 34, Object(i.h)(A.changeParentalValidationFail(o.Zb.fromError(d)));\r\n case 34:\r\n return a.next = 36, Object(i.f)(l.a, t, d);\r\n case 36:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), b, null, [\r\n [1, 29]\r\n ])\r\n }\r\n\r\n function P(e) {\r\n var t, n, r;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, Object(i.j)(o.C.Household.Selectors.data.getDefaultUser);\r\n case 3:\r\n if (t = a.sent) {\r\n a.next = 6;\r\n break\r\n }\r\n throw o.Zb.fromError(new Error(\"Error on change parental validation\"));\r\n case 6:\r\n return a.next = 8, Object(i.h)(o.C.Household.Creators.updateUserPreference(Object(s.a)(Object(s.a)({}, t), {}, Object(c.a)({}, o.Rb.PURCHASE_PIN_ENABLED, e.meta.purchasePinEnabled)), o.Rb.PURCHASE_PIN_ENABLED));\r\n case 8:\r\n return a.next = 10, Object(i.i)({\r\n resultSuccess: Object(i.l)(o.C.Household.ActionType.updateUserPreference.SUCCESS),\r\n resultError: Object(i.l)(o.C.Household.ActionType.updateUserPreference.FAIL)\r\n });\r\n case 10:\r\n if (n = a.sent, !n.resultSuccess) {\r\n a.next = 19;\r\n break\r\n }\r\n return a.next = 15, Object(i.h)(A.changePurchasePinSuccess());\r\n case 15:\r\n return a.next = 17, Object(i.f)(l.d, o.b.CHANGE_PIN);\r\n case 17:\r\n a.next = 20;\r\n break;\r\n case 19:\r\n throw o.Zb.fromError(new Error(\"Error on change parental validation\"));\r\n case 20:\r\n a.next = 29;\r\n break;\r\n case 22:\r\n return a.prev = 22, a.t0 = a.catch(0), r = o.Zb.fromError(a.t0), a.next = 27, Object(i.h)(A.changePurchasePinFail(r));\r\n case 27:\r\n return a.next = 29, Object(i.f)(l.d, o.b.CHANGE_PIN, void 0, void 0, r);\r\n case 29:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), O, null, [\r\n [0, 22]\r\n ])\r\n }\r\n\r\n function D(e) {\r\n var t, n, r, u, d;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, Object(i.j)(o.C.Household.Selectors.data.getUsers);\r\n case 3:\r\n return t = a.sent, a.next = 6, Object(i.j)(o.C.Credentials.Selectors.getUserId);\r\n case 6:\r\n if (n = a.sent, r = t.find((function(e) {\r\n return e.id === n\r\n }))) {\r\n a.next = 10;\r\n break\r\n }\r\n throw o.Zb.fromError(new Error(\"Error on change AccessibilitySubtitles\"));\r\n case 10:\r\n return a.next = 12, Object(i.h)(o.C.Household.Creators.updateUserPreference(Object(s.a)(Object(s.a)({}, r), {}, Object(c.a)({}, o.Rb.ACCESSIBILITY_SUBTITLES, e.meta.accessibilitySubtitles)), o.Rb.ACCESSIBILITY_SUBTITLES));\r\n case 12:\r\n return a.next = 14, Object(i.i)({\r\n resultSuccess: Object(i.l)(o.C.Household.ActionType.updateUserPreference.SUCCESS),\r\n resultError: Object(i.l)(o.C.Household.ActionType.updateUserPreference.FAIL)\r\n });\r\n case 14:\r\n if (u = a.sent, !u.resultSuccess) {\r\n a.next = 23;\r\n break\r\n }\r\n return a.next = 19, Object(i.h)(A.changeAccessibilitySubtitlesSuccess());\r\n case 19:\r\n return a.next = 21, Object(i.f)(l.d, o.b.SUBTITLES, void 0 !== e.meta.accessibilitySubtitles ? e.meta.accessibilitySubtitles.toString() : void 0);\r\n case 21:\r\n a.next = 24;\r\n break;\r\n case 23:\r\n throw o.Zb.fromError(new Error(\"Error on change AccessibilitySubtitles\"));\r\n case 24:\r\n a.next = 33;\r\n break;\r\n case 26:\r\n return a.prev = 26, a.t0 = a.catch(0), d = o.Zb.fromError(a.t0), a.next = 31, Object(i.h)(A.changeAccessibilitySubtitlesFail(d));\r\n case 31:\r\n return a.next = 33, Object(i.f)(l.d, o.b.SUBTITLES, void 0 !== e.meta.accessibilitySubtitles ? e.meta.accessibilitySubtitles.toString() : void 0, void 0, d);\r\n case 33:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), f, null, [\r\n [0, 26]\r\n ])\r\n }\r\n\r\n function y(e) {\r\n var t, n, r, u, d;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, Object(i.j)(o.C.Household.Selectors.data.getUsers);\r\n case 3:\r\n return t = a.sent, a.next = 6, Object(i.j)(o.C.Credentials.Selectors.getUserId);\r\n case 6:\r\n if (n = a.sent, r = t.find((function(e) {\r\n return e.id === n\r\n }))) {\r\n a.next = 10;\r\n break\r\n }\r\n throw o.Zb.fromError(new Error(\"Error on change AudioDescription\"));\r\n case 10:\r\n return a.next = 12, Object(i.h)(o.C.Household.Creators.updateUserPreference(Object(s.a)(Object(s.a)({}, r), {}, Object(c.a)({}, o.Rb.ACCESSIBILITY_AUDIO_DESCRIPTION, e.meta.accessibilityAudioDescription)), o.Rb.ACCESSIBILITY_AUDIO_DESCRIPTION));\r\n case 12:\r\n return a.next = 14, Object(i.i)({\r\n resultSuccess: Object(i.l)(o.C.Household.ActionType.updateUserPreference.SUCCESS),\r\n resultError: Object(i.l)(o.C.Household.ActionType.updateUserPreference.FAIL)\r\n });\r\n case 14:\r\n if (u = a.sent, !u.resultSuccess) {\r\n a.next = 23;\r\n break\r\n }\r\n return a.next = 19, Object(i.h)(A.changeAccessibilityAudioDescriptionSuccess());\r\n case 19:\r\n return a.next = 21, Object(i.f)(l.d, o.b.AUDIO_DESCRIPTION, e.meta.accessibilityAudioDescription.toString());\r\n case 21:\r\n a.next = 24;\r\n break;\r\n case 23:\r\n throw o.Zb.fromError(new Error(\"Error on change AudioDescription\"));\r\n case 24:\r\n a.next = 33;\r\n break;\r\n case 26:\r\n return a.prev = 26, a.t0 = a.catch(0), d = o.Zb.fromError(a.t0), a.next = 31, Object(i.h)(A.changeAccessibilityAudioDescriptionFail(d));\r\n case 31:\r\n return a.next = 33, Object(i.f)(l.d, o.b.AUDIO_DESCRIPTION, e.meta.accessibilityAudioDescription.toString(), void 0, d);\r\n case 33:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), j, null, [\r\n [0, 26]\r\n ])\r\n }\r\n\r\n function w() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.prev = 0, e.next = 3, Object(i.c)(o.W.getAgeRating);\r\n case 3:\r\n return e.abrupt(\"return\", e.sent);\r\n case 6:\r\n return e.prev = 6, e.t0 = e.catch(0), e.abrupt(\"return\", void 0);\r\n case 9:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), p, null, [\r\n [0, 6]\r\n ])\r\n }\r\n\r\n function U(e) {\r\n return Object(a.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(i.c)(o.W.storeAgeRating, e || 0);\r\n case 2:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), E)\r\n }\r\n\r\n function M() {\r\n var e, t, n;\r\n return Object(a.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.prev = 0, r.next = 3, Object(i.c)(w);\r\n case 3:\r\n if (0 !== (e = r.sent)) {\r\n r.next = 8;\r\n break\r\n }\r\n return r.next = 7, Object(i.h)(A.loadAgeRatingSuccess(void 0));\r\n case 7:\r\n return r.abrupt(\"return\");\r\n case 8:\r\n return r.next = 10, Object(i.j)(o.C.Dms.Selectors.getParentalControl);\r\n case 10:\r\n if (t = r.sent, e && (n = null === t || void 0 === t ? void 0 : t.parentalRating.parentalRatingValues.find((function(t) {\r\n return t.selectable && t.ratingValue === e\r\n }))), n || (n = null === t || void 0 === t ? void 0 : t.parentalRating.defaultSetting), !n) {\r\n r.next = 18;\r\n break\r\n }\r\n return r.next = 16, Object(i.h)(A.loadAgeRatingSuccess(n));\r\n case 16:\r\n r.next = 20;\r\n break;\r\n case 18:\r\n return r.next = 20, Object(i.h)(A.loadAgeRatingFailed(o.Zb.fromError(new Error(\"Error on load age rating.\"))));\r\n case 20:\r\n r.next = 26;\r\n break;\r\n case 22:\r\n return r.prev = 22, r.t0 = r.catch(0), r.next = 26, Object(i.h)(A.loadAgeRatingFailed(o.Zb.fromError(r.t0)));\r\n case 26:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), S, null, [\r\n [0, 22]\r\n ])\r\n }\r\n\r\n function F(e) {\r\n var t, n, r, c, s, u, d, b;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 2, Object(i.j)(N.getAgeRating);\r\n case 2:\r\n return t = a.sent, n = null === t || void 0 === t ? void 0 : t.label, a.prev = 4, a.next = 7, Object(i.j)(o.C.Dms.Selectors.getParentalControl);\r\n case 7:\r\n return u = a.sent, e.meta.ageRatingValue && (d = null === u || void 0 === u ? void 0 : u.parentalRating.parentalRatingValues.find((function(t) {\r\n return t.selectable && t.ratingValue === e.meta.ageRatingValue\r\n }))), r = null === (c = d) || void 0 === c ? void 0 : c.label, a.next = 12, Object(i.c)(U, null === (s = d) || void 0 === s ? void 0 : s.ratingValue);\r\n case 12:\r\n return a.next = 14, Object(i.h)(A.setAgeRatingSuccess(d));\r\n case 14:\r\n return a.next = 16, Object(i.f)(l.d, o.b.PARENTAL_CONTROL, r, n);\r\n case 16:\r\n a.next = 25;\r\n break;\r\n case 18:\r\n return a.prev = 18, a.t0 = a.catch(4), b = o.Zb.fromError(a.t0), a.next = 23, Object(i.h)(A.setAgeRatingFail(b));\r\n case 23:\r\n return a.next = 25, Object(i.f)(l.d, o.b.PARENTAL_CONTROL, r, n, b);\r\n case 25:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), v, null, [\r\n [4, 18]\r\n ])\r\n }\r\n\r\n function G() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.prev = 0, e.next = 3, Object(i.c)(o.W.getLockedChannels);\r\n case 3:\r\n return e.abrupt(\"return\", e.sent);\r\n case 6:\r\n return e.prev = 6, e.t0 = e.catch(0), e.abrupt(\"return\", void 0);\r\n case 9:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), m, null, [\r\n [0, 6]\r\n ])\r\n }\r\n\r\n function H(e) {\r\n return Object(a.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(i.c)(o.W.storeLockedChannels, e);\r\n case 2:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), h)\r\n }\r\n\r\n function B(e) {\r\n var t;\r\n return Object(a.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.prev = 0, t = e.meta.lockedChannelsList, n.next = 4, Object(i.c)(H, t);\r\n case 4:\r\n return n.next = 6, Object(i.h)(A.changeLockedChannelsSuccess(t));\r\n case 6:\r\n n.next = 12;\r\n break;\r\n case 8:\r\n return n.prev = 8, n.t0 = n.catch(0), n.next = 12, Object(i.h)(A.changeLockedChannelsFail(o.Zb.fromError(n.t0)));\r\n case 12:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), g, null, [\r\n [0, 8]\r\n ])\r\n }\r\n\r\n function V() {\r\n var e;\r\n return Object(a.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(i.c)(G);\r\n case 2:\r\n return e = t.sent, t.next = 5, Object(i.h)(A.loadLockedChannelsSuccess(e || []));\r\n case 5:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), I)\r\n }\r\n\r\n function W() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.prev = 0, e.next = 3, Object(i.h)(A.loadAgeRating());\r\n case 3:\r\n e.next = 9;\r\n break;\r\n case 5:\r\n return e.prev = 5, e.t0 = e.catch(0), e.next = 9, Object(i.h)(A.loadAgeRatingFailed(o.Zb.fromError(e.t0)));\r\n case 9:\r\n return e.prev = 9, e.next = 12, Object(i.h)(A.loadLockedChannels());\r\n case 12:\r\n e.next = 18;\r\n break;\r\n case 14:\r\n return e.prev = 14, e.t1 = e.catch(9), e.next = 18, Object(i.h)(A.loadLockedChannelsFail(o.Zb.fromError(e.t1)));\r\n case 18:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), C, null, [\r\n [0, 5],\r\n [9, 14]\r\n ])\r\n }\r\n\r\n function Y() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(i.b)([Object(i.o)(r.CHANGE_MASTER_PIN, k), Object(i.o)(r.CHANGE_PARENTAL_VALIDATION_REQUEST, L), Object(i.o)(r.CHANGE_PURCHASE_PIN, P), Object(i.o)(r.ACCESSIBILITY_AUDIO_DESCRIPTION_REQUEST, y), Object(i.o)(r.ACCESSIBILITY_SUBTITLES_REQUEST, D), Object(i.n)(o.C.Configs.ActionTypes.SUCCESS, W), Object(i.o)(r.LOAD_AGE_RATING, M), Object(i.o)(r.SET_AGE_RATING, F), Object(i.o)(r.LOAD_LOCKED_CHANNELS, V), Object(i.o)(r.CHANGE_LOCKED_CHANNELS, B)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), x)\r\n }\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"b\", (function() {\r\n return r\r\n })), n.d(t, \"a\", (function() {\r\n return c\r\n })), n.d(t, \"c\", (function() {\r\n return i\r\n })), n.d(t, \"d\", (function() {\r\n return o\r\n }));\r\n var r, a = n(1);\r\n ! function(e) {\r\n e.START = \"programInfo/startContext\", e.CLEAR = \"programInfo/clearContext\"\r\n }(r || (r = {}));\r\n var c = {\r\n start: function(e) {\r\n return {\r\n type: r.START,\r\n meta: e\r\n }\r\n },\r\n clear: function(e) {\r\n return {\r\n type: r.CLEAR,\r\n meta: e\r\n }\r\n }\r\n },\r\n s = \"noEntryPoint\";\r\n\r\n function i(e) {\r\n return \"\".concat(e.entryAssetMediaType, \"/\").concat(e.entryAssetId, \"/\").concat(e.entryPoint || s)\r\n }\r\n\r\n function o(e, t) {\r\n return Object(a.l)((function(n) {\r\n return n.type === e && (n.meta === t || i(n.meta) === i(t))\r\n }))\r\n }\r\n }, , , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return S\r\n }));\r\n var r, a = n(8),\r\n c = n(15),\r\n s = n(5),\r\n i = n(31),\r\n o = n(0),\r\n u = n(62),\r\n l = n(16),\r\n d = n(53),\r\n b = n(13),\r\n O = n(14);\r\n ! function(e) {\r\n e.ENTRY_POINT = \"ep\", e.MENU_ID = \"mi\"\r\n }(r || (r = {}));\r\n var f = function() {\r\n function e() {\r\n Object(b.a)(this, e)\r\n }\r\n return Object(O.a)(e, null, [{\r\n key: \"encodeQueryParameters\",\r\n value: function(e) {\r\n var t = new URLSearchParams;\r\n return void 0 !== e.entryPoint && t.set(r.ENTRY_POINT, e.entryPoint), void 0 !== e.menuItemId && t.set(r.MENU_ID, e.menuItemId.toString()), t.toString()\r\n }\r\n }, {\r\n key: \"decodeQueryParameters\",\r\n value: function(e) {\r\n var t = new URLSearchParams(e),\r\n n = {},\r\n a = t.get(r.ENTRY_POINT);\r\n a && Object.values(o.G).includes(a) && (n.entryPoint = a);\r\n var c = t.get(r.MENU_ID);\r\n if (void 0 !== c && null !== c) {\r\n var s = Number.parseInt(c, 10);\r\n n.menuItemId = Number.isNaN(s) ? void 0 : s\r\n }\r\n return n\r\n }\r\n }]), e\r\n }();\r\n\r\n function j(e, t, n) {\r\n if (!Array.isArray(t)) return n || l.d.ROOT;\r\n var r = e.toString();\r\n n && (r.startsWith(\"/:section\") ? r = r.replace(\"/:section\", n) : r.startsWith(\"/\") || (r = \"\".concat(n, \"/\").concat(r)));\r\n var a = Object(c.a)(t);\r\n return r.split(\"/\").reduce((function(e, t) {\r\n if (!t) return e;\r\n if (\":\" !== t[0]) return \"\".concat(e, \"/\").concat(t);\r\n var n = a.shift();\r\n return n ? \"\".concat(e, \"/\").concat(n) : e\r\n }), \"\")\r\n }\r\n\r\n function p(e, t, n) {\r\n var r = e.asset,\r\n a = e.entryPoint,\r\n c = e.state,\r\n s = e.menuItemId,\r\n i = function(e, t) {\r\n var n = [e.id];\r\n return j(l.b.FOLDER_INFO, n, t)\r\n }(r, n),\r\n o = (null === c || void 0 === c ? void 0 : c.entryAsset) || r,\r\n u = (null === c || void 0 === c ? void 0 : c.entryLocation) || t,\r\n d = null === c || void 0 === c ? void 0 : c.parentContext,\r\n b = f.encodeQueryParameters({\r\n entryPoint: a,\r\n menuItemId: s\r\n });\r\n return {\r\n path: \"\".concat(i, \"?\").concat(b),\r\n state: {\r\n entryAsset: o,\r\n entryLocation: u,\r\n parentContext: d\r\n }\r\n }\r\n }\r\n\r\n function E(e, t, n) {\r\n var r = e.asset,\r\n a = e.entryPoint,\r\n c = e.state,\r\n s = e.menuItemId,\r\n i = function(e, t) {\r\n var n = [e.mediaType, e.id];\r\n return j(l.b.PROGRAM_INFO, n, t)\r\n }(r, n),\r\n o = (null === c || void 0 === c ? void 0 : c.entryAsset) || r,\r\n u = (null === c || void 0 === c ? void 0 : c.entryLocation) || t,\r\n d = null === c || void 0 === c ? void 0 : c.forceAutoPlay,\r\n b = null === c || void 0 === c ? void 0 : c.restartIfAvailable,\r\n O = f.encodeQueryParameters({\r\n entryPoint: a,\r\n menuItemId: s\r\n });\r\n return {\r\n path: \"\".concat(i, \"?\").concat(O),\r\n state: {\r\n entryAsset: o,\r\n entryLocation: u,\r\n forceAutoPlay: d,\r\n restartIfAvailable: b\r\n }\r\n }\r\n }\r\n\r\n function S() {\r\n var e = Object(i.i)(),\r\n t = Object(u.a)(),\r\n n = Object(s.useCallback)((function() {\r\n var t = e.pathname;\r\n t.startsWith(\"/\") && (t = t.substring(1));\r\n var n = t.split(\"/\"),\r\n r = Object(a.a)(n, 1)[0];\r\n return Object.values(d.a).indexOf(r) >= 0 ? r : d.a.MY_TV\r\n }), [e]),\r\n r = Object(s.useCallback)((function(t) {\r\n return function(e) {\r\n return void 0 !== e.asset\r\n }(t) ? function(e, t, n) {\r\n var r = e.asset;\r\n return o.i.isFolder(r) ? p(e, t, n) : E(e, t, n)\r\n }(t, e, n()) : function(e) {\r\n return void 0 !== e.routePath\r\n }(t) ? function(e, t) {\r\n var n = e.routePath,\r\n r = e.valuesSeries,\r\n a = e.state,\r\n s = e.entryPoint,\r\n i = r || [],\r\n o = j(n, (i = t ? [t].concat(Object(c.a)(i)) : i) || []);\r\n if (s) {\r\n var u = f.encodeQueryParameters({\r\n entryPoint: s\r\n });\r\n o = \"\".concat(o, \"?\").concat(u)\r\n }\r\n return {\r\n path: o,\r\n state: a\r\n }\r\n }(t, n()) : void 0\r\n }), [n, e]),\r\n l = Object(s.useCallback)((function(e) {\r\n var n = r(e);\r\n n && t.push(n.path, n.state)\r\n }), [r, t]),\r\n b = Object(s.useCallback)((function(e) {\r\n var n = r(e);\r\n n && t.replace(n.path, n.state)\r\n }), [r, t]),\r\n O = Object(s.useMemo)((function() {\r\n var t = e.search;\r\n return t ? f.decodeQueryParameters(t) : {}\r\n }), [e]);\r\n return Object(s.useMemo)((function() {\r\n return {\r\n push: l,\r\n replace: b,\r\n getSection: n,\r\n goBack: t.goBack,\r\n queryParams: O,\r\n location: e\r\n }\r\n }), [O, n, t.goBack, l, b, e])\r\n }\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return r\r\n })), n.d(t, \"b\", (function() {\r\n return N\r\n })), n.d(t, \"d\", (function() {\r\n return L\r\n })), n.d(t, \"c\", (function() {\r\n return D\r\n })), n.d(t, \"e\", (function() {\r\n return X\r\n })), n.d(t, \"g\", (function() {\r\n return z\r\n })), n.d(t, \"f\", (function() {\r\n return J\r\n }));\r\n var r, a = n(15),\r\n c = n(96),\r\n s = n(2),\r\n i = n(4),\r\n o = n(1),\r\n u = n(0),\r\n l = n(102),\r\n d = n(136),\r\n b = n(143),\r\n O = n(26),\r\n f = Object(s.a)().mark(y),\r\n j = Object(s.a)().mark(w),\r\n p = Object(s.a)().mark(U),\r\n E = Object(s.a)().mark(M),\r\n S = Object(s.a)().mark(F),\r\n v = Object(s.a)().mark(G),\r\n m = Object(s.a)().mark(B),\r\n h = Object(s.a)().mark(V),\r\n g = Object(s.a)().mark(W),\r\n I = Object(s.a)().mark(Q),\r\n C = Object(s.a)().mark(q),\r\n x = Object(s.a)().mark(Z),\r\n A = Object(s.a)().mark(X),\r\n _ = Object(s.a)().mark(z),\r\n R = Object(s.a)().mark(J);\r\n ! function(e) {\r\n e.REQUEST = \"channels/REQUEST\", e.SUCCESS = \"channels/SUCCESS\", e.FAIL = \"channels/FAIL\"\r\n }(r || (r = {}));\r\n var T = {\r\n request: function() {\r\n return {\r\n type: r.REQUEST\r\n }\r\n },\r\n success: function(e) {\r\n return {\r\n type: r.SUCCESS,\r\n payload: e\r\n }\r\n },\r\n fail: function(e) {\r\n return {\r\n type: r.FAIL,\r\n error: e\r\n }\r\n }\r\n },\r\n N = {\r\n loadChannels: function() {\r\n return T.request()\r\n }\r\n },\r\n k = {};\r\n\r\n function L() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : k,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case r.SUCCESS:\r\n return {\r\n data: t.payload || [],\r\n processing: !1,\r\n processed: !0\r\n };\r\n case r.FAIL:\r\n return Object(i.a)(Object(i.a)({}, e), {}, {\r\n processing: !1,\r\n processed: !0,\r\n error: t.error\r\n });\r\n case r.REQUEST:\r\n return Object(i.a)(Object(i.a)({}, e), {}, {\r\n processing: !0,\r\n processed: !1\r\n });\r\n default:\r\n return e\r\n }\r\n }\r\n var P = \"CHANNELS\",\r\n D = {\r\n isProcessed: function(e) {\r\n return !0 === e.channels.processed\r\n },\r\n getError: function(e) {\r\n return e.channels.error\r\n },\r\n getChannels: function(e) {\r\n var t;\r\n return null === (t = e.channels) || void 0 === t ? void 0 : t.data\r\n },\r\n getChannelByEpgId: function(e, t) {\r\n var n, r;\r\n return null === (n = e.channels) || void 0 === n || null === (r = n.data) || void 0 === r ? void 0 : r.find((function(e) {\r\n return e.epgId === t\r\n }))\r\n },\r\n getChannelById: function(e, t) {\r\n var n, r;\r\n return null === (n = e.channels) || void 0 === n || null === (r = n.data) || void 0 === r ? void 0 : r.find((function(e) {\r\n return e.id === t\r\n }))\r\n },\r\n getChannelIndexByEpgId: function(e, t) {\r\n var n, r;\r\n return void 0 !== t ? null === (n = e.channels) || void 0 === n || null === (r = n.data) || void 0 === r ? void 0 : r.findIndex((function(e) {\r\n return e.epgId === t\r\n })) : void 0\r\n }\r\n };\r\n\r\n function y(e) {\r\n var t;\r\n return Object(s.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n if (!e || !e.length) {\r\n n.next = 4;\r\n break\r\n }\r\n return t = {\r\n channels: e,\r\n timestamp: u.Pb.now()\r\n }, n.next = 4, Object(o.c)(u.W.storeChannels, t);\r\n case 4:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), f)\r\n }\r\n\r\n function w(e) {\r\n var t, n, r, a;\r\n return Object(s.a)().wrap((function(c) {\r\n for (;;) switch (c.prev = c.next) {\r\n case 0:\r\n if (t = e.channels, n = e.timestamp, !(t && t.length && n)) {\r\n c.next = 9;\r\n break\r\n }\r\n return c.next = 4, Object(o.j)(u.C.Dms.Selectors.getDmsConfigs);\r\n case 4:\r\n if (!(r = c.sent)) {\r\n c.next = 9;\r\n break\r\n }\r\n if (a = u.Pb.addHours(n, r.entitlementUpdate), !u.Pb.isAfterNow(a)) {\r\n c.next = 9;\r\n break\r\n }\r\n return c.abrupt(\"return\", !0);\r\n case 9:\r\n return c.abrupt(\"return\", !1);\r\n case 10:\r\n case \"end\":\r\n return c.stop()\r\n }\r\n }), j)\r\n }\r\n\r\n function U() {\r\n var e;\r\n return Object(s.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.prev = 0, t.next = 3, Object(o.c)(u.W.getChannels);\r\n case 3:\r\n if (e = t.sent, t.t0 = e, !t.t0) {\r\n t.next = 9;\r\n break\r\n }\r\n return t.next = 8, Object(o.c)(w, e);\r\n case 8:\r\n t.t0 = t.sent;\r\n case 9:\r\n if (!t.t0) {\r\n t.next = 11;\r\n break\r\n }\r\n return t.abrupt(\"return\", e.channels);\r\n case 11:\r\n return t.abrupt(\"return\", void 0);\r\n case 14:\r\n return t.prev = 14, t.t1 = t.catch(0), t.abrupt(\"return\", void 0);\r\n case 17:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), p, null, [\r\n [0, 14]\r\n ])\r\n }\r\n\r\n function M() {\r\n var e, t;\r\n return Object(s.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(o.j)(u.C.Menu.Selectors.isProcessed);\r\n case 2:\r\n if (!n.sent) {\r\n n.next = 18;\r\n break\r\n }\r\n return n.next = 6, Object(o.j)(u.C.Menu.Selectors.getMenu);\r\n case 6:\r\n if (!(e = n.sent)) {\r\n n.next = 15;\r\n break\r\n }\r\n if (!(t = e[u.ab.EPG])) {\r\n n.next = 12;\r\n break\r\n }\r\n if (!t.channelId) {\r\n n.next = 12;\r\n break\r\n }\r\n return n.abrupt(\"return\", t.channelId);\r\n case 12:\r\n throw u.Zb.fromCode(u.X.validation.missingMenuItemTvGuide);\r\n case 15:\r\n throw new Error(\"Channels saga: Menu is undefined\");\r\n case 16:\r\n n.next = 19;\r\n break;\r\n case 18:\r\n throw new Error(\"Channels saga called before Menu\");\r\n case 19:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), E)\r\n }\r\n\r\n function F(e) {\r\n return Object(s.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, u.C.Api.callApi(u.rb.listByFileIds, e);\r\n case 2:\r\n return t.abrupt(\"return\", t.sent);\r\n case 3:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), S)\r\n }\r\n\r\n function G(e) {\r\n var t, n, r, i, l, d, b, O, f, j, p;\r\n return Object(s.a)().wrap((function(s) {\r\n for (;;) switch (s.prev = s.next) {\r\n case 0:\r\n if (t = [], n = [], r = [], !e) {\r\n s.next = 52;\r\n break\r\n }\r\n l = Object(c.a)(e), s.prev = 5, l.s();\r\n case 7:\r\n if ((d = l.n()).done) {\r\n s.next = 34;\r\n break\r\n }\r\n b = d.value, O = Object(c.a)(b.streams), s.prev = 10, O.s();\r\n case 12:\r\n if ((f = O.n()).done) {\r\n s.next = 24;\r\n break\r\n }\r\n if (j = f.value, t.push(j.id), t.length !== u.Ib.PRODUCT_PRICE_LIST_MAX_CHUNK) {\r\n s.next = 22;\r\n break\r\n }\r\n return s.t0 = r, s.next = 19, Object(o.f)(F, t);\r\n case 19:\r\n s.t1 = s.sent, s.t0.push.call(s.t0, s.t1), t = [];\r\n case 22:\r\n s.next = 12;\r\n break;\r\n case 24:\r\n s.next = 29;\r\n break;\r\n case 26:\r\n s.prev = 26, s.t2 = s.catch(10), O.e(s.t2);\r\n case 29:\r\n return s.prev = 29, O.f(), s.finish(29);\r\n case 32:\r\n s.next = 7;\r\n break;\r\n case 34:\r\n s.next = 39;\r\n break;\r\n case 36:\r\n s.prev = 36, s.t3 = s.catch(5), l.e(s.t3);\r\n case 39:\r\n return s.prev = 39, l.f(), s.finish(39);\r\n case 42:\r\n if (!t.length) {\r\n s.next = 48;\r\n break\r\n }\r\n return s.t4 = r, s.next = 46, Object(o.f)(F, t);\r\n case 46:\r\n s.t5 = s.sent, s.t4.push.call(s.t4, s.t5);\r\n case 48:\r\n return s.next = 50, Object(o.g)(r);\r\n case 50:\r\n p = s.sent, n = (i = []).concat.apply(i, Object(a.a)(p));\r\n case 52:\r\n return s.abrupt(\"return\", n);\r\n case 53:\r\n case \"end\":\r\n return s.stop()\r\n }\r\n }), v, null, [\r\n [5, 36, 39, 42],\r\n [10, 26, 29, 32]\r\n ])\r\n }\r\n\r\n function H(e, t) {\r\n var n = new Map(t.map((function(e) {\r\n return [e.fileId, e]\r\n })));\r\n return e && e.forEach((function(e) {\r\n var t = e;\r\n t.streams.forEach((function(e, r) {\r\n var a = e,\r\n c = n.get(a.id);\r\n c && (a.isSubscribed = u.i.isProductPricePurchased(c)), t.isSubscribed = t.isSubscribed || a.isSubscribed, t.streams[r] = a\r\n }))\r\n })), e\r\n }\r\n\r\n function B(e) {\r\n var t, n, r;\r\n return Object(s.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 2, u.C.Pagination.clearPaginatedApi(P);\r\n case 2:\r\n return a.next = 4, Object(o.j)(u.C.Dms.Selectors.getFilesFormat);\r\n case 4:\r\n return t = a.sent, a.next = 7, Object(o.j)(u.C.Dms.Selectors.getParentalControl);\r\n case 7:\r\n return n = a.sent, a.next = 10, u.C.Pagination.callCompletedPaginatedApi(P, u.t.CHANNELS_API_PAGE_SIZE, u.q.channelLineup, e, t, n, u.R[O.a.env.CHANNELS_UNSUBSCRIBED_VISIBILITY]);\r\n case 10:\r\n return r = a.sent, a.abrupt(\"return\", r);\r\n case 12:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), m)\r\n }\r\n\r\n function V(e) {\r\n var t, n;\r\n return Object(s.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(o.j)(l.c.isEnabled);\r\n case 2:\r\n if (!r.sent) {\r\n r.next = 8;\r\n break\r\n }\r\n return r.next = 5, Object(o.j)(l.c.getRegion);\r\n case 5:\r\n return t = r.sent, n = new Map(t.channels.map((function(e) {\r\n return [e.id, e]\r\n }))), r.abrupt(\"return\", e.filter((function(e) {\r\n return n.has(e.id)\r\n })));\r\n case 8:\r\n return r.abrupt(\"return\", e);\r\n case 9:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), h)\r\n }\r\n\r\n function W(e) {\r\n var t, n, r;\r\n return Object(s.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n if (t = [], !e) {\r\n a.next = 9;\r\n break\r\n }\r\n return a.next = 4, Object(o.j)(d.c.getShowUnsubscribedChannels);\r\n case 4:\r\n return n = a.sent, a.next = 7, Object(o.j)(u.C.Household.Selectors.data.getIsConverged);\r\n case 7:\r\n r = a.sent, e.forEach((function(e) {\r\n (e.isSubscribed || n && (r || !e.hideUnsubscribed)) && t.push(e)\r\n }));\r\n case 9:\r\n return a.abrupt(\"return\", t);\r\n case 10:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), g)\r\n }\r\n\r\n function Y(e) {\r\n return e.sort((function(e, t) {\r\n return e.channelNumber - t.channelNumber\r\n })), e\r\n }\r\n\r\n function K() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];\r\n return Object(s.a)().mark((function t() {\r\n var n, r, a;\r\n return Object(s.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n if (t.prev = 0, !e) {\r\n t.next = 5;\r\n break\r\n }\r\n t.t0 = void 0, t.next = 8;\r\n break;\r\n case 5:\r\n return t.next = 7, Object(o.c)(U);\r\n case 7:\r\n t.t0 = t.sent;\r\n case 8:\r\n if (n = t.t0) {\r\n t.next = 31;\r\n break\r\n }\r\n return t.next = 12, Object(o.c)(M);\r\n case 12:\r\n return r = t.sent, t.next = 15, Object(o.c)(B, r);\r\n case 15:\r\n return n = t.sent, t.next = 18, Object(o.c)(V, n);\r\n case 18:\r\n return n = t.sent, t.next = 21, Object(o.c)(G, n);\r\n case 21:\r\n return a = t.sent, t.next = 24, Object(o.h)(u.C.Currency.ActionCreators.update(a));\r\n case 24:\r\n return n = H(n, a), t.next = 27, Object(o.c)(W, n);\r\n case 27:\r\n return n = Y(n = t.sent), t.next = 31, Object(o.c)(y, n);\r\n case 31:\r\n return t.next = 33, Object(o.h)(T.success(n));\r\n case 33:\r\n t.next = 39;\r\n break;\r\n case 35:\r\n return t.prev = 35, t.t1 = t.catch(0), t.next = 39, Object(o.h)(T.fail(u.Zb.fromError(t.t1)));\r\n case 39:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), t, null, [\r\n [0, 35]\r\n ])\r\n }))()\r\n }\r\n\r\n function Q() {\r\n var e;\r\n return Object(s.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(o.j)(u.C.Dms.Selectors.getDmsConfigs);\r\n case 2:\r\n if (!(e = t.sent)) {\r\n t.next = 11;\r\n break\r\n }\r\n case 4:\r\n return t.next = 7, Object(o.e)(u.Pb.hoursToMilliseconds(e.maxEntitlementUpdate));\r\n case 7:\r\n return t.next = 9, Object(o.c)(K, !0);\r\n case 9:\r\n t.next = 4;\r\n break;\r\n case 11:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), I)\r\n }\r\n\r\n function q() {\r\n var e;\r\n return Object(s.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(o.j)(l.c.getRegion);\r\n case 2:\r\n return e = t.sent, t.abrupt(\"return\", e.changed);\r\n case 4:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), C)\r\n }\r\n\r\n function Z() {\r\n var e;\r\n return Object(s.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(o.j)(l.c.isEnabled);\r\n case 2:\r\n if (t.t0 = t.sent, !t.t0) {\r\n t.next = 7;\r\n break\r\n }\r\n return t.next = 6, Object(o.c)(q);\r\n case 6:\r\n t.t0 = t.sent;\r\n case 7:\r\n return e = t.t0, t.next = 10, Object(o.c)(K, e || b.b.SKIP_CHANNELS_CACHE);\r\n case 10:\r\n return t.next = 12, Object(o.c)(Q);\r\n case 12:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), x)\r\n }\r\n\r\n function X() {\r\n return Object(s.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(o.c)(u.W.getTunedChannel);\r\n case 2:\r\n return e.abrupt(\"return\", e.sent);\r\n case 3:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), A)\r\n }\r\n\r\n function z(e) {\r\n return Object(s.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(o.c)(u.W.storeTunedChannel, e);\r\n case 2:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), _)\r\n }\r\n\r\n function J() {\r\n return Object(s.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(o.b)([Object(o.m)(r.REQUEST, Z)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), R)\r\n }\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return O\r\n })), n.d(t, \"c\", (function() {\r\n return j\r\n })), n.d(t, \"b\", (function() {\r\n return p\r\n })), n.d(t, \"d\", (function() {\r\n return v\r\n }));\r\n var r, a = n(2),\r\n c = n(4),\r\n s = n(0),\r\n i = n(1),\r\n o = n(40),\r\n u = Object(a.a)().mark(E),\r\n l = Object(a.a)().mark(S),\r\n d = Object(a.a)().mark(v);\r\n ! function(e) {\r\n e.PIN_RESET = \"ui/managePin/PIN_RESET\", e.PIN_VALIDATE = \"ui/managePin/PIN_VALIDATE\", e.PIN_SUCCESS = \"ui/managePin/PIN_SUCCESS\", e.PIN_FAIL = \"ui/managePin/PIN_FAIL\", e.PIN_ERROR = \"ui/managePin/PIN_ERROR\", e.PIN_VALIDATE_BOTH_REQUEST = \"ui/managePin/PIN_VALIDATE_BOTH_REQUEST\", e.PIN_VALIDATE_BOTH_SUCCESS = \"ui/managePin/PIN_VALIDATE_BOTH_SUCCESS\", e.PIN_VALIDATE_BOTH_ERROR = \"ui/managePin/PIN_VALIDATE_BOTH_ERROR\"\r\n }(r || (r = {}));\r\n var b = {\r\n pinReset: function() {\r\n return {\r\n type: r.PIN_RESET\r\n }\r\n },\r\n pinValidate: function(e) {\r\n return {\r\n type: r.PIN_VALIDATE,\r\n meta: e\r\n }\r\n },\r\n pinSucess: function() {\r\n return {\r\n type: r.PIN_SUCCESS\r\n }\r\n },\r\n pinValidateBothRequest: function(e) {\r\n return {\r\n type: r.PIN_VALIDATE_BOTH_REQUEST,\r\n meta: e\r\n }\r\n },\r\n pinValidateBothSuccess: function() {\r\n return {\r\n type: r.PIN_VALIDATE_BOTH_SUCCESS\r\n }\r\n },\r\n pinValidateBothError: function(e) {\r\n return {\r\n type: r.PIN_VALIDATE_BOTH_ERROR,\r\n meta: e\r\n }\r\n },\r\n pinError: function(e) {\r\n return {\r\n type: r.PIN_ERROR,\r\n error: e\r\n }\r\n }\r\n },\r\n O = {\r\n pinReset: b.pinReset,\r\n pinMissmatch: b.pinValidateBothError,\r\n pinValidateBoth: b.pinValidateBothRequest,\r\n pinValidate: b.pinValidate,\r\n pinError: b.pinError\r\n },\r\n f = {\r\n pinIsCorrect: void 0,\r\n error: void 0,\r\n processed: !1,\r\n processing: !1,\r\n isMissmatch: !1,\r\n pinChangedSuccess: !1\r\n };\r\n\r\n function j() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : f,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case r.PIN_RESET:\r\n return f;\r\n case r.PIN_VALIDATE:\r\n return Object(c.a)(Object(c.a)({}, e), {}, {\r\n pinIsCorrect: void 0,\r\n processing: !0,\r\n processed: !1,\r\n error: void 0\r\n });\r\n case r.PIN_SUCCESS:\r\n return Object(c.a)(Object(c.a)({}, e), {}, {\r\n pinIsCorrect: !0,\r\n processing: !1,\r\n processed: !0,\r\n error: void 0\r\n });\r\n case r.PIN_VALIDATE_BOTH_REQUEST:\r\n return Object(c.a)(Object(c.a)({}, e), {}, {\r\n error: void 0,\r\n isMissmatch: !1,\r\n processed: !1,\r\n processing: !0\r\n });\r\n case r.PIN_VALIDATE_BOTH_SUCCESS:\r\n return Object(c.a)(Object(c.a)({}, e), {}, {\r\n pinChangedSuccess: !0,\r\n processed: !0,\r\n processing: !1\r\n });\r\n case r.PIN_VALIDATE_BOTH_ERROR:\r\n return Object(c.a)(Object(c.a)({}, e), {}, {\r\n isMissmatch: t.meta.isMissmatch,\r\n processed: !0,\r\n processing: !1\r\n });\r\n case r.PIN_ERROR:\r\n return Object(c.a)(Object(c.a)({}, e), {}, {\r\n processed: !0,\r\n processing: !1,\r\n pinIsCorrect: void 0,\r\n error: t.error\r\n });\r\n default:\r\n return e\r\n }\r\n }\r\n var p = {\r\n isProcessed: function(e) {\r\n return !0 === e.settings.managePin.processed\r\n },\r\n isProcessing: function(e) {\r\n return !0 === e.settings.managePin.processing\r\n },\r\n getError: function(e) {\r\n return e.settings.managePin.error\r\n },\r\n getPinIsCorrect: function(e) {\r\n return e.settings.managePin.pinIsCorrect\r\n },\r\n getIsMissmatch: function(e) {\r\n return e.settings.managePin.isMissmatch\r\n },\r\n pinChangedSuccess: function(e) {\r\n return e.settings.managePin.pinChangedSuccess\r\n }\r\n };\r\n\r\n function E(e) {\r\n var t, n, r, c, o;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, Object(i.j)(s.C.Household.Selectors.data.getDefaultUser);\r\n case 3:\r\n return t = a.sent, a.next = 6, Object(i.h)(s.C.Household.Creators.getUser(t));\r\n case 6:\r\n return a.next = 8, Object(i.i)({\r\n requestUserSuccess: Object(i.l)(s.C.Household.ActionType.getUser.SUCCESS),\r\n requestUserFail: Object(i.l)(s.C.Household.ActionType.getUser.FAIL)\r\n });\r\n case 8:\r\n if (n = a.sent, r = n.requestUserSuccess, c = n.requestUserFail, !r) {\r\n a.next = 22;\r\n break\r\n }\r\n if (o = r.payload, e.meta !== o.masterPin) {\r\n a.next = 18;\r\n break\r\n }\r\n return a.next = 16, Object(i.h)(b.pinSucess());\r\n case 16:\r\n a.next = 20;\r\n break;\r\n case 18:\r\n return a.next = 20, Object(i.h)(b.pinError(s.Zb.fromCode(s.kb.validation.inputIncorrectPIN)));\r\n case 20:\r\n case 25:\r\n a.next = 28;\r\n break;\r\n case 22:\r\n if (!c) {\r\n a.next = 27;\r\n break\r\n }\r\n return a.next = 25, Object(i.h)(b.pinError(s.Zb.fromError(c.error)));\r\n case 27:\r\n throw new Error(\"Something went wrong retrieving user details for PIN validation.\");\r\n case 28:\r\n a.next = 34;\r\n break;\r\n case 30:\r\n return a.prev = 30, a.t0 = a.catch(0), a.next = 34, Object(i.h)(b.pinError(s.Zb.fromError(a.t0)));\r\n case 34:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), u, null, [\r\n [0, 30]\r\n ])\r\n }\r\n\r\n function S(e) {\r\n var t, n, r;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n if (t = e.meta, n = t.newPin, r = t.confirmNewPin, a.prev = 2, n !== r) {\r\n a.next = 11;\r\n break\r\n }\r\n return a.next = 6, Object(i.h)(b.pinValidateBothSuccess());\r\n case 6:\r\n if (!n) {\r\n a.next = 9;\r\n break\r\n }\r\n return a.next = 9, Object(i.h)(o.a.changeMasterPin(n));\r\n case 9:\r\n a.next = 13;\r\n break;\r\n case 11:\r\n return a.next = 13, Object(i.h)(b.pinValidateBothError({\r\n isMissmatch: !0\r\n }));\r\n case 13:\r\n a.next = 19;\r\n break;\r\n case 15:\r\n return a.prev = 15, a.t0 = a.catch(2), a.next = 19, Object(i.h)(b.pinError(s.Zb.fromError(a.t0)));\r\n case 19:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), l, null, [\r\n [2, 15]\r\n ])\r\n }\r\n\r\n function v() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(i.o)(r.PIN_VALIDATE_BOTH_REQUEST, S);\r\n case 2:\r\n return e.next = 4, Object(i.o)(r.PIN_VALIDATE, E);\r\n case 4:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), d)\r\n }\r\n }, , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return oe\r\n })), n.d(t, \"c\", (function() {\r\n return se\r\n })), n.d(t, \"d\", (function() {\r\n return de\r\n })), n.d(t, \"e\", (function() {\r\n return Ie\r\n })), n.d(t, \"b\", (function() {\r\n return Ce\r\n }));\r\n var r = n(2),\r\n a = n(4),\r\n c = n(1),\r\n s = n(0),\r\n i = n(32),\r\n o = n(40),\r\n u = n(8),\r\n l = n(102),\r\n d = n(45),\r\n b = n(142),\r\n O = n(71),\r\n f = n(132),\r\n j = n(85),\r\n p = n(91),\r\n E = n(90),\r\n S = n(138),\r\n v = n(136),\r\n m = n(103),\r\n h = n(26),\r\n g = Object(r.a)().mark(y),\r\n I = Object(r.a)().mark(w),\r\n C = Object(r.a)().mark(U),\r\n x = Object(r.a)().mark(M),\r\n A = Object(r.a)().mark(F),\r\n _ = Object(r.a)().mark(G),\r\n R = Object(r.a)().mark(H),\r\n T = Object(r.a)().mark(B),\r\n N = Object(r.a)().mark(V),\r\n k = Object(r.a)().mark(W),\r\n L = Object(r.a)().mark(Y),\r\n P = Object(r.a)().mark(K),\r\n D = {\r\n error: void 0\r\n };\r\n\r\n function y() {\r\n var e, t, n, a;\r\n return Object(r.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(c.j)(s.C.Dms.Selectors.isSsmEnabled);\r\n case 2:\r\n if (r.sent) {\r\n r.next = 6;\r\n break\r\n }\r\n return r.next = 6, Object(c.h)(m.a.init());\r\n case 6:\r\n return r.next = 8, Object(c.j)(l.c.isEnabled);\r\n case 8:\r\n if (!r.sent) {\r\n r.next = 18;\r\n break\r\n }\r\n return r.next = 12, Object(c.h)(l.b.loadRegion());\r\n case 12:\r\n return r.next = 14, Object(c.i)({\r\n success: Object(c.l)(l.a.SUCCESS),\r\n error: Object(c.l)(l.a.FAIL)\r\n });\r\n case 14:\r\n if (e = r.sent, !(t = e.error)) {\r\n r.next = 18;\r\n break\r\n }\r\n return r.abrupt(\"return\", {\r\n error: t.error\r\n });\r\n case 18:\r\n return r.next = 20, Object(c.h)(d.b.loadChannels());\r\n case 20:\r\n return r.next = 22, Object(c.i)({\r\n success: Object(c.l)(d.a.SUCCESS),\r\n error: Object(c.l)(d.a.FAIL)\r\n });\r\n case 22:\r\n if (n = r.sent, !(a = n.error)) {\r\n r.next = 26;\r\n break\r\n }\r\n return r.abrupt(\"return\", {\r\n error: a.error\r\n });\r\n case 26:\r\n return r.next = 28, Object(c.h)(b.b.init());\r\n case 28:\r\n return r.next = 30, Object(c.l)(b.a.INIT_DONE);\r\n case 30:\r\n return r.abrupt(\"return\", D);\r\n case 31:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), g)\r\n }\r\n\r\n function w() {\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(c.h)(O.a.getItems());\r\n case 2:\r\n return e.next = 4, Object(c.i)([Object(c.l)(O.b.GET_ITEMS_SUCCESS), Object(c.l)(O.b.GET_ITEMS_ERROR)]);\r\n case 4:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), I)\r\n }\r\n\r\n function U() {\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(c.h)(j.a.request());\r\n case 2:\r\n return e.next = 4, Object(c.i)([Object(c.l)(j.b.SUCCESS), Object(c.l)(j.b.FAIL)]);\r\n case 4:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), C)\r\n }\r\n\r\n function M() {\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(c.h)(p.a.request());\r\n case 2:\r\n return e.next = 4, Object(c.i)([Object(c.l)(p.b.SUCCESS), Object(c.l)(p.b.FAIL)]);\r\n case 4:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), x)\r\n }\r\n\r\n function F() {\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(c.h)(E.a.request());\r\n case 2:\r\n return e.next = 4, Object(c.i)([Object(c.l)(E.b.SUCCESS), Object(c.l)(E.b.FAIL)]);\r\n case 4:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), A)\r\n }\r\n\r\n function G() {\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(c.h)(f.a.scheduleCachingRefresh());\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), _)\r\n }\r\n\r\n function H() {\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(c.b)([Object(c.c)(U), Object(c.c)(M), Object(c.c)(F), Object(c.c)(G)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), R)\r\n }\r\n\r\n function B() {\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(c.j)(s.C.Dms.Selectors.isFeatureDisabled, s.y.NO_PVR);\r\n case 2:\r\n if (e.sent) {\r\n e.next = 6;\r\n break\r\n }\r\n return e.next = 6, Object(c.h)(S.a.load());\r\n case 6:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), T)\r\n }\r\n\r\n function V() {\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(c.h)(v.a.loadShowUnsubscribedChannels());\r\n case 2:\r\n return e.next = 4, Object(c.i)([Object(c.l)(v.b.LOAD_SHOW_UNSUBSCRIBED_CHANNELS_SUCCESS), Object(c.l)(v.b.LOAD_SHOW_UNSUBSCRIBED_CHANNELS_FAIL)]);\r\n case 4:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), N)\r\n }\r\n\r\n function W() {\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n if (!h.a.env.FEATURE_PURCHASES_ENABLED) {\r\n e.next = 3;\r\n break\r\n }\r\n return e.next = 3, Object(c.h)(s.C.Household.Creators.loadPaymentData());\r\n case 3:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), k)\r\n }\r\n\r\n function Y() {\r\n var e, t, n, a, i;\r\n return Object(r.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(c.h)(s.C.Menu.ActionCreators.getMenu());\r\n case 2:\r\n return r.next = 4, Object(c.i)({\r\n success: Object(c.l)(s.C.Menu.ActionTypes.SUCCESS),\r\n error: Object(c.l)(s.C.Menu.ActionTypes.FAIL)\r\n });\r\n case 4:\r\n if (e = r.sent, !(t = e.error)) {\r\n r.next = 8;\r\n break\r\n }\r\n return r.abrupt(\"return\", {\r\n error: t.error\r\n });\r\n case 8:\r\n return r.next = 10, Object(c.b)([Object(c.c)(y), Object(c.c)(w), Object(c.c)(H), Object(c.c)(B), Object(c.c)(W)]);\r\n case 10:\r\n return n = r.sent, a = Object(u.a)(n, 1), i = a[0], r.abrupt(\"return\", i);\r\n case 14:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), L)\r\n }\r\n\r\n function K() {\r\n var e;\r\n return Object(r.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(c.c)(Y);\r\n case 2:\r\n if (!(e = t.sent).error) {\r\n t.next = 5;\r\n break\r\n }\r\n return t.abrupt(\"return\", e);\r\n case 5:\r\n return t.next = 7, Object(c.c)(V);\r\n case 7:\r\n return t.abrupt(\"return\", D);\r\n case 8:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), P)\r\n }\r\n var Q, q = n(109),\r\n Z = Object(r.a)().mark(Oe),\r\n X = Object(r.a)().mark(fe),\r\n z = Object(r.a)().mark(je),\r\n J = Object(r.a)().mark(pe),\r\n $ = Object(r.a)().mark(Ee),\r\n ee = Object(r.a)().mark(Se),\r\n te = Object(r.a)().mark(ve),\r\n ne = Object(r.a)().mark(me),\r\n re = Object(r.a)().mark(he),\r\n ae = Object(r.a)().mark(ge),\r\n ce = Object(r.a)().mark(Ie);\r\n ! function(e) {\r\n e.INIT = \"startUp/INIT\", e.SUCCESS = \"startUp/SUCCESS\", e.UPDATE_STATUS = \"startUp/UPDATE_STATUS\", e.FAIL = \"startUp/FAIL\", e.GDPR_FLOW_DONE = \"startUp/gdpr/DONE\"\r\n }(Q || (Q = {}));\r\n var se, ie = {\r\n init: function(e, t, n) {\r\n return {\r\n type: Q.INIT,\r\n meta: {\r\n fromLocation: e,\r\n forceUserSwitch: t,\r\n forceConsentCheck: n\r\n }\r\n }\r\n },\r\n sucess: function() {\r\n return {\r\n type: Q.SUCCESS\r\n }\r\n },\r\n updateStatus: function(e) {\r\n return {\r\n type: Q.UPDATE_STATUS,\r\n payload: e\r\n }\r\n },\r\n fail: function(e) {\r\n return {\r\n type: Q.FAIL,\r\n error: e\r\n }\r\n },\r\n gdprFlowDone: function() {\r\n return {\r\n type: Q.GDPR_FLOW_DONE\r\n }\r\n }\r\n },\r\n oe = {\r\n init: ie.init,\r\n gdprFlowDone: ie.gdprFlowDone\r\n };\r\n ! function(e) {\r\n e.LOADING_CONFIGS = \"LOADING_CONFIGS\", e.INITIALIZING_CREDENTIALS = \"INITIALIZING_CREDENTIALS\", e.WAITING_UI_AUTHENTICATION = \"WAITING_UI_AUTHENTICATION\", e.PREPARING_ACCOUNT = \"PREPARING_ACCOUNT\", e.WAITING_UI_GDPR_FLOW = \"WAITING_UI_GDPR_FLOW\", e.WAITING_UI_USER_SWITCHING = \"WAITING_UI_USER_SWITCHING\", e.LOADING_ACCOUNT_DATA = \"LOADING_ACCOUNT_DATA\", e.SUCCESS = \"SUCCESS\", e.ERROR = \"ERROR\"\r\n }(se || (se = {}));\r\n var ue, le = {};\r\n\r\n function de() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : le,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case Q.INIT:\r\n return Object(a.a)(Object(a.a)({}, e), {}, {\r\n fromLocation: t.meta.fromLocation,\r\n status: se.LOADING_CONFIGS,\r\n error: void 0\r\n });\r\n case Q.UPDATE_STATUS:\r\n return Object(a.a)(Object(a.a)({}, e), {}, {\r\n status: t.payload\r\n });\r\n case Q.SUCCESS:\r\n return Object(a.a)(Object(a.a)({}, e), {}, {\r\n status: se.SUCCESS\r\n });\r\n case Q.FAIL:\r\n return Object(a.a)(Object(a.a)({}, e), {}, {\r\n status: se.ERROR,\r\n error: t.error\r\n });\r\n default:\r\n return e\r\n }\r\n }! function(e) {\r\n e.NOT_AUTENTICATED = \"NOT_AUTENTICATED\", e.AUTHENTICATED_AS_MASTER = \"AUTHENTICATED_AS_MASTER\", e.AUTHENTICATED = \"AUTHENTICATED\"\r\n }(ue || (ue = {}));\r\n var be = {\r\n error: void 0\r\n };\r\n\r\n function Oe() {\r\n var e, t;\r\n return Object(r.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(c.h)(s.C.Configs.ActionCreators.loadConfigs());\r\n case 2:\r\n return n.next = 4, Object(c.i)({\r\n success: Object(c.l)(s.C.Configs.ActionTypes.SUCCESS),\r\n fail: Object(c.l)(s.C.Configs.ActionTypes.FAIL)\r\n });\r\n case 4:\r\n if (e = n.sent, !(t = e.fail)) {\r\n n.next = 8;\r\n break\r\n }\r\n return n.abrupt(\"return\", {\r\n error: t.error\r\n });\r\n case 8:\r\n return n.abrupt(\"return\", be);\r\n case 9:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), Z)\r\n }\r\n\r\n function fe() {\r\n var e, t, n;\r\n return Object(r.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(c.h)(s.C.Credentials.Creators.init());\r\n case 2:\r\n return r.next = 4, Object(c.i)({\r\n success: Object(c.l)(s.C.Credentials.ActionTypes.INIT_SUCCESS),\r\n fail: Object(c.l)(s.C.Credentials.ActionTypes.INIT_FAIL)\r\n });\r\n case 4:\r\n if (e = r.sent, t = e.success, n = e.fail, !t) {\r\n r.next = 9;\r\n break\r\n }\r\n return r.abrupt(\"return\", {\r\n success: t.payload\r\n });\r\n case 9:\r\n return r.abrupt(\"return\", {\r\n error: n.error\r\n });\r\n case 10:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), X)\r\n }\r\n\r\n function je(e) {\r\n var t, n;\r\n return Object(r.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(c.h)(s.C.Credentials.Creators.switchUser(e, !0));\r\n case 2:\r\n return r.next = 4, Object(c.i)({\r\n success: Object(c.l)(s.C.Credentials.ActionTypes.SWITCH_USER_SUCCESS),\r\n error: Object(c.l)(s.C.Credentials.ActionTypes.SWITCH_USER_FAIL)\r\n });\r\n case 4:\r\n if (t = r.sent, !(n = t.error)) {\r\n r.next = 8;\r\n break\r\n }\r\n return r.abrupt(\"return\", {\r\n error: n.error\r\n });\r\n case 8:\r\n return r.abrupt(\"return\", be);\r\n case 9:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), z)\r\n }\r\n\r\n function pe() {\r\n var e, t;\r\n return Object(r.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(c.h)(s.C.Household.Creators.getHousehold());\r\n case 2:\r\n return n.next = 4, Object(c.i)({\r\n success: Object(c.l)(s.C.Household.ActionType.getHousehold.SUCCESS),\r\n error: Object(c.l)(s.C.Household.ActionType.getHousehold.FAIL)\r\n });\r\n case 4:\r\n if (e = n.sent, !(t = e.error)) {\r\n n.next = 8;\r\n break\r\n }\r\n return n.abrupt(\"return\", {\r\n error: t.error\r\n });\r\n case 8:\r\n return n.abrupt(\"return\", be);\r\n case 9:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), J)\r\n }\r\n\r\n function Ee() {\r\n var e, t, n, a;\r\n return Object(r.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(c.j)(s.C.Dms.Selectors.isSecurityRedesign);\r\n case 2:\r\n if (r.sent) {\r\n r.next = 20;\r\n break\r\n }\r\n return r.next = 6, Object(c.j)(s.C.Household.Selectors.data.getDevices);\r\n case 6:\r\n return e = r.sent, r.next = 9, Object(c.j)(s.C.DeviceUdid.Selectors.getUdid);\r\n case 9:\r\n if (t = r.sent, e.find((function(e) {\r\n return e.udid === t\r\n }))) {\r\n r.next = 20;\r\n break\r\n }\r\n return r.next = 14, Object(c.h)(s.C.Household.Creators.addDeviceToDomain(t));\r\n case 14:\r\n return r.next = 16, Object(c.i)({\r\n success: Object(c.l)(s.C.Household.ActionType.addDeviceToDomain.SUCCESS),\r\n error: Object(c.l)(s.C.Household.ActionType.addDeviceToDomain.FAIL)\r\n });\r\n case 16:\r\n if (n = r.sent, !(a = n.error)) {\r\n r.next = 20;\r\n break\r\n }\r\n return r.abrupt(\"return\", {\r\n error: a.error\r\n });\r\n case 20:\r\n return r.abrupt(\"return\", be);\r\n case 21:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), $)\r\n }\r\n\r\n function Se() {\r\n var e, t, n, a, i;\r\n return Object(r.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(c.j)(s.C.Household.Selectors.data.getUsers);\r\n case 2:\r\n return e = r.sent, r.next = 5, Object(c.j)(s.C.Credentials.Selectors.getUserId);\r\n case 5:\r\n return t = r.sent, n = e.find((function(e) {\r\n return e.id === t\r\n })), r.next = 9, Object(c.c)(s.W.getPreferredUserId);\r\n case 9:\r\n if (a = r.sent, !(i = e.find((function(e) {\r\n return e.id === a\r\n }))) || !n || i === n) {\r\n r.next = 17;\r\n break\r\n }\r\n return r.next = 14, Object(c.c)(je, i.id);\r\n case 14:\r\n if (r.sent.error) {\r\n r.next = 17;\r\n break\r\n }\r\n return r.abrupt(\"return\", {\r\n success: ue.AUTHENTICATED\r\n });\r\n case 17:\r\n if ((null === n || void 0 === n ? void 0 : n.role) === s.Eb.MASTER) {\r\n r.next = 19;\r\n break\r\n }\r\n return r.abrupt(\"return\", {\r\n success: ue.AUTHENTICATED\r\n });\r\n case 19:\r\n return r.abrupt(\"return\", {\r\n success: ue.AUTHENTICATED_AS_MASTER\r\n });\r\n case 20:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), ee)\r\n }\r\n\r\n function ve() {\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(c.c)(fe);\r\n case 2:\r\n return e.next = 4, Object(c.j)(s.C.Credentials.Selectors.isAuthenticated);\r\n case 4:\r\n if (e.sent) {\r\n e.next = 7;\r\n break\r\n }\r\n return e.abrupt(\"return\", !1);\r\n case 7:\r\n return e.next = 9, Object(c.c)(pe);\r\n case 9:\r\n if (!e.sent.error) {\r\n e.next = 12;\r\n break\r\n }\r\n return e.abrupt(\"return\", !1);\r\n case 12:\r\n return e.abrupt(\"return\", !0);\r\n case 13:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), te)\r\n }\r\n\r\n function me() {\r\n var e, t;\r\n return Object(r.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(c.c)(pe);\r\n case 2:\r\n if (!(e = n.sent).error) {\r\n n.next = 5;\r\n break\r\n }\r\n return n.abrupt(\"return\", e);\r\n case 5:\r\n return n.next = 7, Object(c.c)(s.C.DmsHops.tryRunDmsHops, ve);\r\n case 7:\r\n return n.t0 = c.c, n.t1 = s.C.Dms.filterByCustomerType, n.next = 11, Object(c.j)(s.C.Household.Selectors.data.getCustomerType);\r\n case 11:\r\n return n.t2 = n.sent, n.next = 14, (0, n.t0)(n.t1, n.t2);\r\n case 14:\r\n return n.next = 16, Object(c.c)(Ee);\r\n case 16:\r\n if (!(t = n.sent).error) {\r\n n.next = 19;\r\n break\r\n }\r\n return n.abrupt(\"return\", t);\r\n case 19:\r\n return n.next = 21, Object(c.c)(Se);\r\n case 21:\r\n return n.abrupt(\"return\", n.sent);\r\n case 22:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), ne)\r\n }\r\n\r\n function he() {\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(c.c)(s.W.removeData, s.Lb.AGE_RATING);\r\n case 2:\r\n return e.next = 4, Object(c.h)(o.a.loadAgeRating());\r\n case 4:\r\n return e.next = 6, Object(c.i)([Object(c.l)(o.b.LOAD_AGE_RATING_SUCCESS), Object(c.l)(o.b.LOAD_AGE_RATING_FAIL)]);\r\n case 6:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), re)\r\n }\r\n\r\n function ge(e) {\r\n var t, n, a, o, u, l, d, b, O, f, j, p;\r\n return Object(r.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n if (t = e.meta || {}, n = t.forceUserSwitch, a = void 0 !== n && n, o = t.forceConsentCheck, u = void 0 !== o && o, r.t0 = a, !r.t0) {\r\n r.next = 6;\r\n break\r\n }\r\n return r.next = 5, Object(c.j)(s.C.Credentials.Selectors.isAuthenticated);\r\n case 5:\r\n r.t0 = r.sent;\r\n case 6:\r\n if (l = r.t0, e.type !== Q.INIT || l) {\r\n r.next = 22;\r\n break\r\n }\r\n return r.next = 10, Object(q.b)(Oe);\r\n case 10:\r\n if (!(d = r.sent).error) {\r\n r.next = 15;\r\n break\r\n }\r\n return r.next = 14, Object(c.h)(ie.fail(d.error));\r\n case 14:\r\n return r.abrupt(\"return\");\r\n case 15:\r\n return r.next = 17, Object(c.h)(ie.updateStatus(se.INITIALIZING_CREDENTIALS));\r\n case 17:\r\n return r.next = 19, Object(q.b)(fe);\r\n case 19:\r\n return r.next = 21, Object(c.j)(s.C.Credentials.Selectors.isAuthenticated);\r\n case 21:\r\n l = r.sent;\r\n case 22:\r\n if (l) {\r\n r.next = 36;\r\n break\r\n }\r\n return r.next = 25, Object(c.c)(s.W.getCredentials);\r\n case 25:\r\n return b = r.sent, r.next = 28, Object(c.h)(ie.updateStatus(se.WAITING_UI_AUTHENTICATION));\r\n case 28:\r\n return r.next = 30, Object(c.l)([s.C.Credentials.ActionTypes.SUCCESS, s.C.Credentials.ActionTypes.LOGIN_CODE_SUCCESS]);\r\n case 30:\r\n return r.next = 32, Object(c.c)(s.W.getCredentials);\r\n case 32:\r\n if (O = r.sent, void 0 === b || b.householdId === (null === O || void 0 === O ? void 0 : O.householdId)) {\r\n r.next = 36;\r\n break\r\n }\r\n return r.next = 36, Object(c.c)(he);\r\n case 36:\r\n return r.next = 38, Object(c.h)(ie.updateStatus(se.PREPARING_ACCOUNT));\r\n case 38:\r\n return r.next = 40, Object(q.b)(me);\r\n case 40:\r\n if (!(f = r.sent).success) {\r\n r.next = 68;\r\n break\r\n }\r\n return r.next = 44, Object(c.j)(i.b.getDocumentsToShow);\r\n case 44:\r\n if (!(j = r.sent).notice && !j.consent || a && !u) {\r\n r.next = 50;\r\n break\r\n }\r\n return r.next = 48, Object(c.h)(ie.updateStatus(se.WAITING_UI_GDPR_FLOW));\r\n case 48:\r\n return r.next = 50, Object(c.l)(Q.GDPR_FLOW_DONE);\r\n case 50:\r\n if (f.success !== ue.AUTHENTICATED_AS_MASTER && !a) {\r\n r.next = 55;\r\n break\r\n }\r\n return r.next = 53, Object(c.h)(ie.updateStatus(se.WAITING_UI_USER_SWITCHING));\r\n case 53:\r\n return r.next = 55, Object(c.l)(s.C.Credentials.ActionTypes.SWITCH_USER_SUCCESS);\r\n case 55:\r\n return r.next = 57, Object(c.h)(ie.updateStatus(se.LOADING_ACCOUNT_DATA));\r\n case 57:\r\n return r.next = 59, Object(q.b)(K);\r\n case 59:\r\n if (!(p = r.sent).error) {\r\n r.next = 64;\r\n break\r\n }\r\n return r.next = 63, Object(c.h)(ie.fail(p.error));\r\n case 63:\r\n return r.abrupt(\"return\");\r\n case 64:\r\n return r.next = 66, Object(c.h)(ie.sucess());\r\n case 66:\r\n r.next = 70;\r\n break;\r\n case 68:\r\n return r.next = 70, Object(c.h)(ie.fail(f.error || s.Zb.fromError(new Error(\"Unknown\"))));\r\n case 70:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), ae)\r\n }\r\n\r\n function Ie() {\r\n return Object(r.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(c.b)([Object(c.n)([Q.INIT, s.C.Credentials.ActionTypes.LOGOUT_SUCCESS], ge)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), ce)\r\n }\r\n var Ce = {\r\n status: function(e) {\r\n var t;\r\n return null === (t = e.startUp) || void 0 === t ? void 0 : t.status\r\n },\r\n error: function(e) {\r\n var t;\r\n return null === (t = e.startUp) || void 0 === t ? void 0 : t.error\r\n },\r\n fromLocation: function(e) {\r\n var t;\r\n return null === (t = e.startUp) || void 0 === t ? void 0 : t.fromLocation\r\n },\r\n isStartUpSuccess: function(e) {\r\n var t;\r\n return (null === (t = e.startUp) || void 0 === t ? void 0 : t.status) === se.SUCCESS\r\n },\r\n isAfterInitializingCredentials: function(e) {\r\n var t, n, r, a, c, s, i;\r\n return (null === (t = e.startUp) || void 0 === t ? void 0 : t.status) === se.WAITING_UI_AUTHENTICATION || (null === (n = e.startUp) || void 0 === n ? void 0 : n.status) === se.PREPARING_ACCOUNT || (null === (r = e.startUp) || void 0 === r ? void 0 : r.status) === se.WAITING_UI_GDPR_FLOW || (null === (a = e.startUp) || void 0 === a ? void 0 : a.status) === se.WAITING_UI_USER_SWITCHING || (null === (c = e.startUp) || void 0 === c ? void 0 : c.status) === se.LOADING_ACCOUNT_DATA || (null === (s = e.startUp) || void 0 === s ? void 0 : s.status) === se.SUCCESS || (null === (i = e.startUp) || void 0 === i ? void 0 : i.status) === se.ERROR\r\n }\r\n }\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n var r = n(0),\r\n a = {\r\n MY_TV: {\r\n WATCH_NEXT_RAIL: [\r\n [r.l.EXPIRY_CLOCK, r.l.WISHLIST_ON],\r\n [r.l.PLAY, r.l.PROTECTED_RECORDING, r.l.LIVE_SERIES_RECORDING, r.l.LIVE_RECORDING, r.l.SERIES_SCHEDULED_RECORDING, r.l.SINGLE_SCHEDULED_RECORDING, r.l.SERIES_RECORDING, r.l.SINGLE_RECORDING, r.l.AIRS_ON],\r\n [r.l.LOCK]\r\n ],\r\n RECOMMENDATION_RAIL: [\r\n [r.l.EXPIRY_CLOCK, r.l.WISHLIST_ON],\r\n [r.l.PLAY, r.l.PROTECTED_RECORDING, r.l.LIVE_SERIES_RECORDING, r.l.LIVE_RECORDING, r.l.SERIES_SCHEDULED_RECORDING, r.l.SINGLE_SCHEDULED_RECORDING, r.l.SERIES_RECORDING, r.l.SINGLE_RECORDING, r.l.AIRS_ON],\r\n [r.l.LOCK]\r\n ],\r\n RECORDING_RAIL: [\r\n [r.l.EXPIRY_CLOCK],\r\n [r.l.PROTECTED_RECORDING, r.l.LIVE_SERIES_RECORDING, r.l.LIVE_RECORDING, r.l.SERIES_SCHEDULED_RECORDING, r.l.SINGLE_SCHEDULED_RECORDING],\r\n [r.l.LOCK]\r\n ],\r\n SCHEDULE_RECORDING: [\r\n [r.l.LOCK],\r\n [],\r\n []\r\n ],\r\n RENTAR_AND_PURCHASES_RAIL: [\r\n [r.l.EXPIRY_CLOCK],\r\n [r.l.LOCK],\r\n []\r\n ],\r\n SUBSCRIPTION_RAIL: [\r\n [r.l.LOCK],\r\n [],\r\n []\r\n ],\r\n WISHLIST_RAIL: [\r\n [r.l.EXPIRY_CLOCK],\r\n [r.l.PLAY, r.l.PROTECTED_RECORDING, r.l.LIVE_SERIES_RECORDING, r.l.LIVE_RECORDING, r.l.SERIES_SCHEDULED_RECORDING, r.l.SINGLE_SCHEDULED_RECORDING, r.l.SERIES_RECORDING, r.l.SINGLE_RECORDING, r.l.PURCHASE, r.l.AIRS_ON],\r\n [r.l.LOCK]\r\n ]\r\n },\r\n WATCH_TV: {\r\n ON_NOW: [\r\n [],\r\n [r.l.RESTART],\r\n [r.l.LIVE_SERIES_RECORDING, r.l.LIVE_RECORDING, r.l.SERIES_RECORDING, r.l.SINGLE_RECORDING, r.l.SERIES_SCHEDULED_RECORDING, r.l.SINGLE_SCHEDULED_RECORDING, r.l.PROTECTED_RECORDING, r.l.RECORDABLE]\r\n ],\r\n FUTURE_AND_PAST: [\r\n [],\r\n [r.l.PLAY],\r\n [r.l.SERIES_RECORDING, r.l.SINGLE_RECORDING, r.l.SERIES_SCHEDULED_RECORDING, r.l.SINGLE_SCHEDULED_RECORDING, r.l.PROTECTED_RECORDING, r.l.RECORDABLE]\r\n ]\r\n },\r\n SEARCH: {\r\n ALL_RESULTS_RAIL: [\r\n [r.l.EXPIRY_CLOCK, r.l.WISHLIST_ON],\r\n [r.l.PLAY, r.l.PROTECTED_RECORDING, r.l.LIVE_SERIES_RECORDING, r.l.LIVE_RECORDING, r.l.SERIES_SCHEDULED_RECORDING, r.l.SINGLE_SCHEDULED_RECORDING, r.l.SERIES_RECORDING, r.l.SINGLE_RECORDING, r.l.PURCHASE, r.l.AIRS_ON],\r\n [r.l.LOCK]\r\n ]\r\n },\r\n ONDEMAND: {\r\n RAILS: [\r\n [r.l.EXPIRY_CLOCK, r.l.WISHLIST_ON],\r\n [r.l.PLAY, r.l.PURCHASE],\r\n [r.l.LOCK]\r\n ],\r\n RAILS_RECOMMENDATION: [\r\n [r.l.EXPIRY_CLOCK, r.l.WISHLIST_ON],\r\n [r.l.PLAY, r.l.PURCHASE],\r\n [r.l.LOCK]\r\n ]\r\n },\r\n ALL: {\r\n RELATED_RAILS: [\r\n [r.l.EXPIRY_CLOCK, r.l.WISHLIST_ON],\r\n [r.l.PLAY, r.l.PROTECTED_RECORDING, r.l.LIVE_SERIES_RECORDING, r.l.LIVE_RECORDING, r.l.SERIES_SCHEDULED_RECORDING, r.l.SINGLE_SCHEDULED_RECORDING, r.l.SERIES_RECORDING, r.l.SINGLE_RECORDING, r.l.PURCHASE, r.l.AIRS_ON],\r\n [r.l.LOCK]\r\n ],\r\n MORE_EPISODES_RAILS: [\r\n [r.l.EXPIRY_CLOCK, r.l.WISHLIST_ON],\r\n [r.l.PLAY, r.l.PROTECTED_RECORDING, r.l.LIVE_SERIES_RECORDING, r.l.LIVE_RECORDING, r.l.SERIES_SCHEDULED_RECORDING, r.l.SINGLE_SCHEDULED_RECORDING, r.l.SERIES_RECORDING, r.l.SINGLE_RECORDING, r.l.PURCHASE, r.l.AIRS_ON],\r\n [r.l.LOCK]\r\n ]\r\n }\r\n };\r\n t.a = a\r\n }, , , , function(e, t, n) {\r\n \"use strict\";\r\n var r;\r\n ! function(e) {\r\n e.MY_TV = \"mytv\", e.WATCH_TV = \"watchtv\", e.ONDEMAND = \"ondemand\", e.SETTINGS = \"settings\", e.SEARCH = \"search\"\r\n }(r || (r = {})), t.a = r\r\n }, , , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return k\r\n })), n.d(t, \"b\", (function() {\r\n return F\r\n })), n.d(t, \"d\", (function() {\r\n return Q\r\n })), n.d(t, \"c\", (function() {\r\n return Z\r\n }));\r\n var r = n(4),\r\n a = n(6),\r\n c = n(15),\r\n s = n(2),\r\n i = n(12),\r\n o = n(1),\r\n u = n(0),\r\n l = n(49),\r\n d = n(66),\r\n b = n(7),\r\n O = n(23),\r\n f = n(32),\r\n j = n(26),\r\n p = Object(s.a)().mark(E);\r\n\r\n function E(e) {\r\n var t;\r\n return Object(s.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(o.j)(u.C.Dms.Selectors.getDmsConfigs);\r\n case 2:\r\n if (!(t = n.sent)) {\r\n n.next = 5;\r\n break\r\n }\r\n return n.abrupt(\"return\", u.H.filterInvalidEpgPrograms(e, t.epgBackwardDays, t.epgForwardDays));\r\n case 5:\r\n return n.abrupt(\"return\", e);\r\n case 6:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), p)\r\n }\r\n var S, v = n(92),\r\n m = Object(s.a)().mark(G),\r\n h = Object(s.a)().mark(H),\r\n g = Object(s.a)().mark(B),\r\n I = Object(s.a)().mark(V),\r\n C = Object(s.a)().mark(W),\r\n x = Object(s.a)().mark(Y),\r\n A = Object(s.a)().mark(K),\r\n _ = Object(s.a)().mark(Q);\r\n ! function(e) {\r\n e.SEARCH_SET_QUERY = \"app/search/SET_QUERY\", e.SEARCH_QUERY_SUCCESS = \"app/search/SEARCH_QUERY_SUCCESS\", e.SEARCH_REQUEST = \"app/search/REQUEST\", e.SEARCH_SUCCESS = \"app/search/SUCCESS\", e.SEARCH_FAIL = \"app/search/FAIL\", e.SEARCH_NO_RESULTS = \"app/search/NO_RESULTS\", e.SEARCH_SET_FILTER_REQUEST = \"app/search/SEARCH_SET_FILTER_REQUEST\", e.SEARCH_LOADMORE_ASSETS = \"app/search/SEARCH_LOADMORE_ASSETS\", e.SEARCH_RESET = \"app/search/SEARCH_RESET\", e.SEARCH_ADD_RECENT_REQUEST = \"app/search/SEARCH_ADD_RECENT_REQUEST\", e.SEARCH_ADD_RECENT_FOR_ALL_USERS_SUCCESS = \"app/search/SEARCH_ADD_RECENT_FOR_ALL_USERS_SUCCESS\", e.SEARCH_LOAD_RECENT_FOR_USER = \"app/search/SEARCH_LOAD_RECENT_FOR_USER\", e.SEARCH_LOAD_RECENT_FOR_USER_SUCCESS = \"app/search/SEARCH_LOAD_RECENT_FOR_USER_SUCCESS\", e.CLEAR_SEARCH_ERROR = \"app/search/CLEAR_SEARCH_ERROR\"\r\n }(S || (S = {}));\r\n var R, T = l.a.SEARCH.ALL_RESULTS_RAIL;\r\n ! function(e) {\r\n e.RAIL = \"searchRail\", e.GRID = \"searchGrid\"\r\n }(R || (R = {}));\r\n var N = {\r\n searchReset: function() {\r\n return {\r\n type: S.SEARCH_RESET\r\n }\r\n },\r\n setQuery: function(e) {\r\n return {\r\n type: S.SEARCH_SET_QUERY,\r\n meta: {\r\n query: e\r\n }\r\n }\r\n },\r\n setQuerySuccess: function(e) {\r\n return {\r\n type: S.SEARCH_QUERY_SUCCESS,\r\n payload: {\r\n query: e\r\n }\r\n }\r\n },\r\n searchRequest: function(e) {\r\n return {\r\n type: S.SEARCH_REQUEST,\r\n meta: {\r\n pageSize: e\r\n }\r\n }\r\n },\r\n success: function(e, t, n, r) {\r\n return {\r\n type: S.SEARCH_SUCCESS,\r\n payload: {\r\n assets: e,\r\n searchResultsPageIndex: t,\r\n noMoreResults: n,\r\n loadMoreAssetsLoading: r\r\n }\r\n }\r\n },\r\n setSearchFail: function(e) {\r\n return {\r\n type: S.SEARCH_FAIL,\r\n error: e\r\n }\r\n },\r\n setNoResults: function() {\r\n return {\r\n type: S.SEARCH_NO_RESULTS\r\n }\r\n },\r\n setActiveFilterRequest: function(e, t, n) {\r\n return {\r\n type: S.SEARCH_SET_FILTER_REQUEST,\r\n meta: {\r\n activeFilter: e,\r\n isRecomendation: t,\r\n hasConsent: n\r\n }\r\n }\r\n },\r\n loadMoreAssets: function(e) {\r\n return {\r\n type: S.SEARCH_LOADMORE_ASSETS,\r\n meta: {\r\n searchResultsPageIndex: e\r\n }\r\n }\r\n },\r\n setRecentForUserRequest: function(e, t) {\r\n return {\r\n type: S.SEARCH_ADD_RECENT_REQUEST,\r\n meta: {\r\n userId: e,\r\n recent: t\r\n }\r\n }\r\n },\r\n addRecentForAllUsersRequest: function(e) {\r\n return {\r\n type: S.SEARCH_ADD_RECENT_FOR_ALL_USERS_SUCCESS,\r\n payload: e\r\n }\r\n },\r\n loadRecentAssetsForUser: function() {\r\n return {\r\n type: S.SEARCH_LOAD_RECENT_FOR_USER\r\n }\r\n },\r\n loadRecentAssetsForUserSuccess: function(e) {\r\n return {\r\n type: S.SEARCH_LOAD_RECENT_FOR_USER_SUCCESS,\r\n payload: e\r\n }\r\n },\r\n clearSearchError: function() {\r\n return {\r\n type: S.CLEAR_SEARCH_ERROR\r\n }\r\n }\r\n },\r\n k = {\r\n searchReset: N.searchReset,\r\n setQuery: N.setQuery,\r\n searchAssets: N.searchRequest,\r\n setActiveFilter: N.setActiveFilterRequest,\r\n loadMoreAssets: N.loadMoreAssets,\r\n addToRecent: N.setRecentForUserRequest,\r\n initRecentAssets: N.loadRecentAssetsForUser,\r\n clearSeachError: N.clearSearchError\r\n },\r\n L = function(e) {\r\n return \"search_assets_\".concat(e)\r\n };\r\n\r\n function P(e) {\r\n u.W.storeObject(u.Lb.RECENT_SEARCHES, e)\r\n }\r\n var D = {\r\n getRecentFromLocalStorage: function() {\r\n var e = Object(i.a)(Object(s.a)().mark((function e() {\r\n var t;\r\n return Object(s.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, u.W.getObject(u.Lb.RECENT_SEARCHES);\r\n case 2:\r\n return t = e.sent, e.abrupt(\"return\", t || null);\r\n case 4:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), e)\r\n })));\r\n return function() {\r\n return e.apply(this, arguments)\r\n }\r\n }()\r\n };\r\n\r\n function y(e) {\r\n return w.apply(this, arguments)\r\n }\r\n\r\n function w() {\r\n return (w = Object(i.a)(Object(s.a)().mark((function e(t) {\r\n var n, r;\r\n return Object(s.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, D.getRecentFromLocalStorage();\r\n case 2:\r\n return n = e.sent, r = n || [], e.abrupt(\"return\", r[t] ? r[t].assets : []);\r\n case 5:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), e)\r\n })))).apply(this, arguments)\r\n }\r\n\r\n function U() {\r\n return M.apply(this, arguments)\r\n }\r\n\r\n function M() {\r\n return (M = Object(i.a)(Object(s.a)().mark((function e() {\r\n var t, n;\r\n return Object(s.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, D.getRecentFromLocalStorage();\r\n case 2:\r\n return t = e.sent, n = t, e.abrupt(\"return\", n);\r\n case 5:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), e)\r\n })))).apply(this, arguments)\r\n }\r\n var F = {\r\n getRails: function(e) {\r\n return e.search.searchRails\r\n },\r\n getResultAssets: function(e) {\r\n var t;\r\n return null === (t = e.search.searchRails[0]) || void 0 === t ? void 0 : t.assets\r\n },\r\n getNoResults: function(e) {\r\n return e.search.noResults\r\n },\r\n getQuery: function(e) {\r\n return e.search.query\r\n },\r\n getSearchResultsPageIndex: function(e) {\r\n return e.search.searchResultsPageIndex\r\n },\r\n getActiveFilter: function(e) {\r\n return e.search.activeFilter\r\n },\r\n isSearchRequestComplete: function(e) {\r\n return e.search.isLoadingRequest\r\n },\r\n noMoreResults: function(e) {\r\n return e.search.noMoreResults\r\n },\r\n isSearchMoreAssetsLoading: function(e) {\r\n return e.search.isLoadingMoreAssets\r\n },\r\n completed: function(e) {\r\n var t = L(e.search.query);\r\n return u.C.Pagination.Selectors.isCompleted(e, t)\r\n },\r\n recentAssetsForUser: function(e) {\r\n return e.search.recentAssetsForUser\r\n },\r\n getError: function(e) {\r\n return e.search.error\r\n }\r\n };\r\n\r\n function G(e, t, n, r, a) {\r\n var c, i, l;\r\n return Object(s.a)().wrap((function(s) {\r\n for (;;) switch (s.prev = s.next) {\r\n case 0:\r\n return s.next = 2, Object(o.j)(u.C.Dms.Selectors.getFilesFormat);\r\n case 2:\r\n return c = s.sent, s.next = 5, Object(o.j)(u.C.Dms.Selectors.getParentalControl);\r\n case 5:\r\n return i = s.sent, s.next = 8, u.C.Pagination.callPaginatedApi(e, r, a, a, u.j.assetSearch, t, c, i, n, u.V.KalturaAssetOrderBy.RELEVANCY_DESC, u.R[j.a.env.CHANNELS_UNSUBSCRIBED_VISIBILITY]);\r\n case 8:\r\n return l = s.sent, s.abrupt(\"return\", l);\r\n case 10:\r\n case \"end\":\r\n return s.stop()\r\n }\r\n }), m)\r\n }\r\n\r\n function H(e, t, n) {\r\n var r;\r\n return Object(s.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 2, Object(o.j)(u.C.Recommendations.Selectors.assets, {\r\n menuUiArea: u.ab.SEARCH,\r\n menuItemId: null === e || void 0 === e ? void 0 : e.children[t].id,\r\n query: n\r\n });\r\n case 2:\r\n return r = a.sent, a.abrupt(\"return\", r);\r\n case 4:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), h)\r\n }\r\n\r\n function B() {\r\n var e, t, n, r, a, i, l, b, j, p, S, m, h, I, C, x, A, _, R, k, P, D, y, w, U, M, B;\r\n return Object(s.a)().wrap((function(s) {\r\n for (;;) switch (s.prev = s.next) {\r\n case 0:\r\n return s.next = 2, Object(o.j)(F.getQuery);\r\n case 2:\r\n return e = s.sent, s.next = 5, Object(o.j)(F.getActiveFilter);\r\n case 5:\r\n return t = s.sent, s.next = 8, Object(o.j)(u.C.Menu.Selectors.getMainMenuItem, u.ab.SEARCH);\r\n case 8:\r\n return n = s.sent, s.next = 11, Object(o.j)(u.C.Recommendations.Selectors.isFeatureEnabled);\r\n case 11:\r\n return r = s.sent, s.next = 14, Object(o.j)(f.b.hasAgreedToConsent);\r\n case 14:\r\n return a = s.sent, s.next = 17, Object(o.j)(F.getSearchResultsPageIndex);\r\n case 17:\r\n if (i = s.sent, l = [], b = [], !r || !a) {\r\n s.next = 90;\r\n break\r\n }\r\n if (j = Number(t.filterKey) || 0, n) {\r\n s.next = 24;\r\n break\r\n }\r\n return s.abrupt(\"return\");\r\n case 24:\r\n if (n.children[j].type !== u.Z.EXTERNAL_SEARCH) {\r\n s.next = 88;\r\n break\r\n }\r\n return p = {\r\n menuUiArea: u.ab.SEARCH,\r\n menuItemId: n.children[j].id,\r\n query: e\r\n }, s.prev = 26, s.next = 29, Object(o.h)(u.C.Recommendations.Creators.loadAssets(p, !1));\r\n case 29:\r\n return s.next = 31, Object(o.i)({\r\n requestSuccess: u.C.Recommendations.takeAssets(u.C.Recommendations.ActionType.SUCCESS, p),\r\n requestFail: u.C.Recommendations.takeAssets(u.C.Recommendations.ActionType.FAIL, p)\r\n });\r\n case 31:\r\n if (S = s.sent, m = S.requestSuccess, h = S.requestFail, !m) {\r\n s.next = 79;\r\n break\r\n }\r\n return s.next = 37, Object(o.c)(H, n, j, e);\r\n case 37:\r\n return b = s.sent, s.next = 40, Object(o.c)(E, b);\r\n case 40:\r\n if (0 !== (b = s.sent).length) {\r\n s.next = 45;\r\n break\r\n }\r\n return s.next = 44, Object(o.h)(N.setNoResults());\r\n case 44:\r\n case 102:\r\n case 110:\r\n case 134:\r\n case 156:\r\n return s.abrupt(\"return\");\r\n case 45:\r\n if (0 !== i) {\r\n s.next = 59;\r\n break\r\n }\r\n if (!(b.length <= O.a.MAX_ASSETS_PER_RAIL_SEARCH_RESULTS)) {\r\n s.next = 52;\r\n break\r\n }\r\n return s.next = 49, Object(o.c)(d.a.getAssetsWithBadgesListFromRail, b, T);\r\n case 49:\r\n return I = s.sent, s.next = 52, Object(o.h)(N.success(I, i, !0, !1));\r\n case 52:\r\n if (!(b.length > O.a.MAX_ASSETS_PER_RAIL_SEARCH_RESULTS)) {\r\n s.next = 59;\r\n break\r\n }\r\n return C = b.slice(i, O.a.MAX_ASSETS_PER_RAIL_SEARCH_RESULTS), s.next = 56, Object(o.c)(d.a.getAssetsWithBadgesListFromRail, C, T);\r\n case 56:\r\n return x = s.sent, s.next = 59, Object(o.h)(N.success(x, i + 1, !1, !0));\r\n case 59:\r\n if (!(i > 0)) {\r\n s.next = 77;\r\n break\r\n }\r\n return A = i * O.a.MAX_ASSETS_PER_RAIL_SEARCH_RESULTS, _ = (i + 1) * O.a.MAX_ASSETS_PER_RAIL_SEARCH_RESULTS, s.next = 64, Object(o.j)(F.getResultAssets) || [];\r\n case 64:\r\n return l = s.sent, R = b.slice(A, _), k = void 0 !== l ? [].concat(Object(c.a)(l), Object(c.a)(R)) : R, s.next = 69, Object(o.c)(d.a.getAssetsWithBadgesListFromRail, k, T);\r\n case 69:\r\n if (P = s.sent, !(b.length > _)) {\r\n s.next = 75;\r\n break\r\n }\r\n return s.next = 73, Object(o.h)(N.success(P, i + 1, !1, !0));\r\n case 73:\r\n s.next = 77;\r\n break;\r\n case 75:\r\n return s.next = 77, Object(o.h)(N.success(P, i, !0, !1));\r\n case 77:\r\n s.next = 82;\r\n break;\r\n case 79:\r\n if (!h) {\r\n s.next = 82;\r\n break\r\n }\r\n return s.next = 82, Object(o.h)(N.setSearchFail(u.Zb.fromError(h.error)));\r\n case 82:\r\n s.next = 88;\r\n break;\r\n case 84:\r\n return s.prev = 84, s.t0 = s.catch(26), s.next = 88, Object(o.h)(N.setSearchFail(u.Zb.fromError(s.t0)));\r\n case 88:\r\n case 157:\r\n s.next = 163;\r\n break;\r\n case 90:\r\n if ((!r || a) && r) {\r\n s.next = 163;\r\n break\r\n }\r\n D = L(e), y = [], s.t1 = t.filterKey, s.next = s.t1 === v.a.ALL ? 96 : s.t1 === v.a.ON_TV ? 98 : s.t1 === v.a.ON_DEMAND ? 100 : s.t1 === v.a.OPT_IN ? 102 : 103;\r\n break;\r\n case 96:\r\n return y = [u.f.MOVIE, u.f.SERIES, u.f.FOLDER, u.f.EPG], s.abrupt(\"break\", 106);\r\n case 98:\r\n return y = [u.f.EPG], s.abrupt(\"break\", 106);\r\n case 100:\r\n return y = [u.f.MOVIE, u.f.SERIES, u.f.FOLDER], s.abrupt(\"break\", 106);\r\n case 103:\r\n return s.next = 105, Object(o.h)(N.setActiveFilterRequest({\r\n filterKey: v.a.ALL\r\n }, r, a));\r\n case 105:\r\n return s.abrupt(\"break\", 106);\r\n case 106:\r\n if (w = u.Gb.createSearchFilter(e)) {\r\n s.next = 111;\r\n break\r\n }\r\n return s.next = 110, Object(o.h)(N.setSearchFail(u.Zb.fromError(new Error(\"Error: Invalid Ksql.\"))));\r\n case 111:\r\n return s.prev = 111, s.next = 114, Object(o.j)(F.getResultAssets) || [];\r\n case 114:\r\n if (l = s.sent, 0 !== i) {\r\n s.next = 135;\r\n break\r\n }\r\n return s.next = 118, u.C.Pagination.clearPaginatedApi(D);\r\n case 118:\r\n return s.next = 120, Object(o.c)(G, D, w, y, i, O.a.MAX_ASSETS_PER_RAIL_SEARCH_RESULTS);\r\n case 120:\r\n return b = s.sent, s.next = 123, Object(o.c)(E, b);\r\n case 123:\r\n return b = s.sent, s.next = 126, Object(o.c)(d.a.getAssetsWithBadgesListFromRail, b, T);\r\n case 126:\r\n if (U = s.sent, !(b.length > 0)) {\r\n s.next = 132;\r\n break\r\n }\r\n return s.next = 130, Object(o.h)(N.success(U, i + 1));\r\n case 130:\r\n s.next = 135;\r\n break;\r\n case 132:\r\n return s.next = 134, Object(o.h)(N.setNoResults());\r\n case 135:\r\n if (!(i > 0)) {\r\n s.next = 153;\r\n break\r\n }\r\n return s.next = 138, Object(o.c)(G, D, w, y, i, O.a.MAX_ASSETS_PER_RAIL_SEARCH_RESULTS);\r\n case 138:\r\n return M = s.sent, b = void 0 !== l ? [].concat(Object(c.a)(l), Object(c.a)(M)) : M, s.next = 142, Object(o.c)(E, b);\r\n case 142:\r\n return b = s.sent, s.next = 145, Object(o.c)(d.a.getAssetsWithBadgesListFromRail, b, T);\r\n case 145:\r\n if (B = s.sent, !(M.length > 0)) {\r\n s.next = 151;\r\n break\r\n }\r\n return s.next = 149, Object(o.h)(N.success(B, i + 1, !1, !1));\r\n case 149:\r\n s.next = 153;\r\n break;\r\n case 151:\r\n return s.next = 153, Object(o.h)(N.success(B, i, !0, !1));\r\n case 153:\r\n if (0 !== b.length) {\r\n s.next = 157;\r\n break\r\n }\r\n return s.next = 156, Object(o.h)(N.setNoResults());\r\n case 159:\r\n return s.prev = 159, s.t2 = s.catch(111), s.next = 163, Object(o.h)(N.setSearchFail(u.Zb.fromError(s.t2)));\r\n case 163:\r\n case \"end\":\r\n return s.stop()\r\n }\r\n }), g, null, [\r\n [26, 84],\r\n [111, 159]\r\n ])\r\n }\r\n\r\n function V(e) {\r\n var t, n, r;\r\n return Object(s.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return t = e.meta.query, a.next = 3, Object(o.j)(F.getQuery);\r\n case 3:\r\n if (!(n = a.sent).length) {\r\n a.next = 8;\r\n break\r\n }\r\n return r = L(n), a.next = 8, u.C.Pagination.clearPaginatedApi(r);\r\n case 8:\r\n return a.next = 10, Object(o.h)(N.setQuerySuccess(t));\r\n case 10:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), I)\r\n }\r\n\r\n function W(e) {\r\n var t, n, r, i, u, l;\r\n return Object(s.a)().wrap((function(s) {\r\n for (;;) switch (s.prev = s.next) {\r\n case 0:\r\n return t = e.meta, n = t.userId, r = t.recent, s.next = 3, Object(o.c)(y, n);\r\n case 3:\r\n return i = s.sent, u = function() {\r\n return i.length ? [].concat(Object(c.a)(r[n].assets), Object(c.a)(i)).reduce((function(e, t) {\r\n return e.some((function(e) {\r\n return e.id === t.id\r\n })) || e.push(t), e\r\n }), []) : r[n].assets\r\n }, l = Object(a.a)({}, n, {\r\n assets: u()\r\n }), s.next = 8, Object(o.h)(N.addRecentForAllUsersRequest(l));\r\n case 8:\r\n case \"end\":\r\n return s.stop()\r\n }\r\n }), C)\r\n }\r\n\r\n function Y(e) {\r\n var t, n;\r\n return Object(s.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, t = e.payload, a.next = 4, Object(o.c)(U);\r\n case 4:\r\n n = a.sent, {}, P(n && t ? Object(r.a)(Object(r.a)({}, n), t) : t), a.next = 13;\r\n break;\r\n case 9:\r\n return a.prev = 9, a.t0 = a.catch(0), a.next = 13, Object(o.h)(N.setSearchFail(u.Zb.fromError(a.t0)));\r\n case 13:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), x, null, [\r\n [0, 9]\r\n ])\r\n }\r\n\r\n function K() {\r\n var e, t, n;\r\n return Object(s.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.prev = 0, r.next = 3, Object(o.c)(u.W.getPreferredUserId);\r\n case 3:\r\n return e = r.sent, r.next = 6, Object(o.c)(y, e);\r\n case 6:\r\n return t = r.sent, r.next = 9, Object(o.c)(d.a.getAssetsWithBadgesListFromRail, t, T);\r\n case 9:\r\n return n = r.sent, r.next = 12, Object(o.h)(N.loadRecentAssetsForUserSuccess(n));\r\n case 12:\r\n r.next = 18;\r\n break;\r\n case 14:\r\n return r.prev = 14, r.t0 = r.catch(0), r.next = 18, Object(o.h)(N.setSearchFail(u.Zb.fromError(r.t0)));\r\n case 18:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), A, null, [\r\n [0, 14]\r\n ])\r\n }\r\n\r\n function Q() {\r\n return Object(s.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(o.b)([Object(o.n)(S.SEARCH_REQUEST, B), Object(o.n)(S.SEARCH_SET_QUERY, V), Object(o.n)(S.SEARCH_LOADMORE_ASSETS, B), Object(o.n)(S.SEARCH_ADD_RECENT_REQUEST, W), Object(o.n)(S.SEARCH_ADD_RECENT_FOR_ALL_USERS_SUCCESS, Y), Object(o.n)(S.SEARCH_LOAD_RECENT_FOR_USER, K)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), _)\r\n }\r\n var q = {\r\n searchRails: [{\r\n key: \"Search_Results\",\r\n title: b.a[\"search.searchresults\"],\r\n assets: []\r\n }],\r\n error: void 0,\r\n noResults: !1,\r\n query: \"\",\r\n searchResultsPageIndex: 0,\r\n activeFilter: {\r\n filterKey: \"\"\r\n },\r\n isLoadingMoreAssets: !1,\r\n noMoreResults: !1,\r\n isLoadingRequest: !1,\r\n recentSearches: {},\r\n recentAssetsForUser: []\r\n };\r\n\r\n function Z() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : q,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case S.SEARCH_RESET:\r\n return q;\r\n case S.SEARCH_SET_FILTER_REQUEST:\r\n return Object(r.a)(Object(r.a)({}, e), {}, {\r\n activeFilter: t.meta.activeFilter,\r\n searchRails: [],\r\n searchResultsPageIndex: 0\r\n });\r\n case S.SEARCH_SET_QUERY:\r\n case S.SEARCH_REQUEST:\r\n return Object(r.a)(Object(r.a)({}, e), {}, {\r\n noResults: !1,\r\n isLoadingRequest: !0\r\n });\r\n case S.SEARCH_QUERY_SUCCESS:\r\n return Object(r.a)(Object(r.a)({}, e), {}, {\r\n query: t.payload.query,\r\n searchResultsPageIndex: 0\r\n });\r\n case S.SEARCH_SUCCESS:\r\n var n = t.payload,\r\n a = n.assets,\r\n c = n.searchResultsPageIndex,\r\n s = n.loadMoreAssetsLoading,\r\n i = n.noMoreResults;\r\n return Object(r.a)(Object(r.a)({}, e), {}, {\r\n searchRails: [Object(r.a)(Object(r.a)({}, e.searchRails[0]), {}, {\r\n assets: a\r\n })],\r\n searchResultsPageIndex: c,\r\n noResults: !1,\r\n isLoadingRequest: !1,\r\n isLoadingMoreAssets: void 0 !== s ? s : e.isLoadingMoreAssets,\r\n noMoreResults: void 0 !== i ? i : e.noMoreResults\r\n });\r\n case S.SEARCH_FAIL:\r\n return Object(r.a)(Object(r.a)({}, e), {}, {\r\n noResults: !0,\r\n isLoadingRequest: !1,\r\n isLoadingMoreAssets: !1,\r\n noMoreResults: !1,\r\n error: t.error\r\n });\r\n case S.SEARCH_LOADMORE_ASSETS:\r\n return Object(r.a)(Object(r.a)({}, e), {}, {\r\n isLoadingMoreAssets: !0,\r\n searchResultsPageIndex: t.meta.searchResultsPageIndex\r\n });\r\n case S.SEARCH_NO_RESULTS:\r\n return Object(r.a)(Object(r.a)({}, e), {}, {\r\n noResults: !0,\r\n searchRails: [Object(r.a)(Object(r.a)({}, e.searchRails[0]), {}, {\r\n assets: []\r\n })],\r\n isLoadingMoreAssets: !1,\r\n isLoadingRequest: !1\r\n });\r\n case S.SEARCH_ADD_RECENT_FOR_ALL_USERS_SUCCESS:\r\n return Object(r.a)(Object(r.a)({}, e), {}, {\r\n recentSearches: t.payload\r\n });\r\n case S.SEARCH_LOAD_RECENT_FOR_USER_SUCCESS:\r\n return Object(r.a)(Object(r.a)({}, e), {}, {\r\n recentAssetsForUser: t.payload\r\n });\r\n case S.CLEAR_SEARCH_ERROR:\r\n return Object(r.a)(Object(r.a)({}, e), {}, {\r\n error: void 0\r\n });\r\n default:\r\n return e\r\n }\r\n }\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return u\r\n }));\r\n var r = n(15),\r\n a = n(13),\r\n c = n(14),\r\n s = n(16),\r\n i = n(7),\r\n o = n(53),\r\n u = function() {\r\n function e() {\r\n Object(a.a)(this, e)\r\n }\r\n return Object(c.a)(e, null, [{\r\n key: \"getRouteWithDynamicValues\",\r\n value: function(e, t) {\r\n if (!Array.isArray(t)) return s.d.ROOT;\r\n var n = Object(r.a)(t);\r\n return e.split(\"/\").reduce((function(e, t) {\r\n if (!t) return e;\r\n if (\":\" !== t[0]) return \"\".concat(e, \"/\").concat(t);\r\n var r = n.shift();\r\n return r ? \"\".concat(e, \"/\").concat(r) : e\r\n }), \"\")\r\n }\r\n }, {\r\n key: \"getAssetInfoRoute\",\r\n value: function(t, n, r) {\r\n var a = [t, n.mediaType, n.id];\r\n return r && a.push(r), e.getRouteWithDynamicValues(s.b.PROGRAM_INFO, a)\r\n }\r\n }, {\r\n key: \"getBackDetails\",\r\n value: function(t, n, r) {\r\n if (null !== n && void 0 !== n && n.entryAsset && r && r.entryAsset) return {\r\n backLabel: i.a.back,\r\n backUrl: e.getAssetInfoRoute(t, r.entryAsset, r.entryPoint)\r\n };\r\n switch (t) {\r\n case o.a.MY_TV:\r\n return {\r\n backLabel: i.a[\"menu.myTv\"],\r\n backUrl: s.b.MYTV\r\n };\r\n case o.a.WATCH_TV:\r\n return {\r\n backLabel: i.a[\"menu.watchTv\"],\r\n backUrl: s.b.WATCHTV\r\n };\r\n case o.a.ONDEMAND:\r\n default:\r\n return {\r\n backLabel: i.a[\"menu.onDemand\"],\r\n backUrl: s.b.ONDEMAND\r\n }\r\n }\r\n }\r\n }]), e\r\n }()\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"b\", (function() {\r\n return ye\r\n })), n.d(t, \"a\", (function() {\r\n return we\r\n })), n.d(t, \"d\", (function() {\r\n return Ue\r\n }));\r\n var r, a = n(4),\r\n c = n(33),\r\n s = n(1),\r\n i = n(15),\r\n o = n(2),\r\n u = n(0),\r\n l = n(34),\r\n d = n(138),\r\n b = n(67),\r\n O = n(85),\r\n f = n(137),\r\n j = n(23),\r\n p = Object(o.a)().mark(R),\r\n E = Object(o.a)().mark(T),\r\n S = Object(o.a)().mark(N),\r\n v = Object(o.a)().mark(k),\r\n m = Object(o.a)().mark(L),\r\n h = Object(o.a)().mark(P),\r\n g = Object(o.a)().mark(D),\r\n I = Object(o.a)().mark(y),\r\n C = Object(o.a)().mark(w);\r\n ! function(e) {\r\n e.GET_CONTINUE_WATCHING_ASSETS_REQUEST = \"myTV/continueWatching/GET_CONTINUE_WATCHING_ASSETS_REQUEST\", e.GET_CONTINUE_WATCHING_ASSETS_SUCCESS = \"myTV/continueWatching/GET_CONTINUE_WATCHING_ASSETS_SUCCESS\", e.GET_CONTINUE_WATCHING_ASSETS_FAIL = \"myTV/continueWatching/GET_CONTINUE_WATCHING_ASSETS_FAIL\"\r\n }(r || (r = {}));\r\n var x = {\r\n getContinueWatchingAssetsRequest: function() {\r\n return {\r\n type: r.GET_CONTINUE_WATCHING_ASSETS_REQUEST\r\n }\r\n },\r\n getContinueWatchingAssetsSuccess: function(e) {\r\n return {\r\n type: r.GET_CONTINUE_WATCHING_ASSETS_SUCCESS,\r\n payload: e\r\n }\r\n },\r\n getContinueWatchingAssetsFail: function(e) {\r\n return {\r\n type: r.GET_CONTINUE_WATCHING_ASSETS_FAIL,\r\n error: e\r\n }\r\n }\r\n },\r\n A = {\r\n getContinueWatchingAssets: function() {\r\n return x.getContinueWatchingAssetsRequest()\r\n }\r\n },\r\n _ = {\r\n data: []\r\n };\r\n\r\n function R() {\r\n return Object(o.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(s.j)(b.e.isProcessed);\r\n case 2:\r\n if (e.sent) {\r\n e.next = 6;\r\n break\r\n }\r\n return e.next = 6, Object(s.l)([b.b.SUCCESS, b.b.FAIL]);\r\n case 6:\r\n return e.next = 8, Object(s.j)(b.e.getAssets);\r\n case 8:\r\n return e.abrupt(\"return\", e.sent);\r\n case 9:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), p)\r\n }\r\n\r\n function T() {\r\n return Object(o.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(s.j)(d.c.isRecordingsProcessed);\r\n case 2:\r\n if (e.sent) {\r\n e.next = 6;\r\n break\r\n }\r\n return e.next = 6, Object(s.i)([Object(s.l)(d.b.SUCESS), Object(s.l)(d.b.FAIL)]);\r\n case 6:\r\n return e.next = 8, Object(s.j)(l.d.getRecordings);\r\n case 8:\r\n return e.abrupt(\"return\", e.sent);\r\n case 9:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), E)\r\n }\r\n\r\n function N(e, t) {\r\n var n, r, a, c, i;\r\n return Object(o.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n if (e.mediaType === u.f.FOLDER) {\r\n o.next = 4;\r\n break\r\n }\r\n return o.next = 3, Object(s.j)(u.C.BookmarksCache.Selectors.getBookmarkState, e);\r\n case 3:\r\n r = o.sent;\r\n case 4:\r\n for (c = 0; c < t.length; c += 1) t[c].mediaId === e.id && (a = t[c].purchaseDate);\r\n return i = {\r\n asset: e,\r\n timestamp: (null === (n = r) || void 0 === n ? void 0 : n.expires) || a || u.Pb.now()\r\n }, o.abrupt(\"return\", i);\r\n case 7:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), S)\r\n }\r\n\r\n function k(e) {\r\n var t;\r\n return Object(o.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(s.j)(u.C.BookmarksCache.Selectors.getBookmarkState, e);\r\n case 2:\r\n return t = n.sent, n.abrupt(\"return\", {\r\n asset: e,\r\n timestamp: (null === t || void 0 === t ? void 0 : t.expires) || e.endDate || u.Pb.now()\r\n });\r\n case 4:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), v)\r\n }\r\n\r\n function L(e) {\r\n var t, n, r, a, c;\r\n return Object(o.a)().wrap((function(i) {\r\n for (;;) switch (i.prev = i.next) {\r\n case 0:\r\n return i.next = 2, Object(s.j)(O.d.getPpvEntitlements);\r\n case 2:\r\n t = i.sent, n = [], r = 0;\r\n case 5:\r\n if (!(r < e.length)) {\r\n i.next = 13;\r\n break\r\n }\r\n return i.next = 8, Object(s.c)(N, e[r], t);\r\n case 8:\r\n a = i.sent, n.push(a);\r\n case 10:\r\n r += 1, i.next = 5;\r\n break;\r\n case 13:\r\n return c = n.sort((function(e, t) {\r\n return u.Pb.compare(t.timestamp, e.timestamp)\r\n })), i.abrupt(\"return\", c.reverse().slice(0, j.a.MAX_ASSETS_WATCH_NEXT));\r\n case 15:\r\n case \"end\":\r\n return i.stop()\r\n }\r\n }), m)\r\n }\r\n\r\n function P(e) {\r\n var t, n;\r\n return Object(o.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(s.b)(e.map((function(e) {\r\n return Object(s.c)(k, e)\r\n })));\r\n case 2:\r\n return t = r.sent, n = t.sort((function(e, t) {\r\n return u.Pb.compare(t.timestamp, e.timestamp)\r\n })), r.abrupt(\"return\", n.reverse().slice(0, j.a.MAX_ASSETS_WATCH_NEXT));\r\n case 5:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), h)\r\n }\r\n\r\n function D(e) {\r\n var t, n, r, a, c, i, l, d;\r\n return Object(o.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n t = Object.entries(e), n = [], r = 0;\r\n case 3:\r\n if (!(r < t.length)) {\r\n o.next = 21;\r\n break\r\n }\r\n if (i = t[r], l = void 0, (null === (a = i[1].data) || void 0 === a ? void 0 : a.assetMediaType) !== u.f.EPG) {\r\n o.next = 13;\r\n break\r\n }\r\n return o.next = 9, Object(s.c)(f.a.getProgram, i[1].data.assetId);\r\n case 9:\r\n l = o.sent, n.push({\r\n asset: l,\r\n timestamp: i[1].expires || u.Pb.now()\r\n }), o.next = 18;\r\n break;\r\n case 13:\r\n if ((null === (c = i[1].data) || void 0 === c ? void 0 : c.assetMediaType) !== u.f.MOVIE) {\r\n o.next = 18;\r\n break\r\n }\r\n return o.next = 16, Object(s.c)(f.a.getMedia, i[1].data.assetId);\r\n case 16:\r\n l = o.sent, n.push({\r\n asset: l,\r\n timestamp: i[1].expires || u.Pb.now()\r\n });\r\n case 18:\r\n r += 1, o.next = 3;\r\n break;\r\n case 21:\r\n return d = n.sort((function(e, t) {\r\n return u.Pb.compare(t.timestamp, e.timestamp)\r\n })), o.abrupt(\"return\", d.reverse().slice(0, j.a.MAX_ASSETS_WATCH_NEXT));\r\n case 23:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), g)\r\n }\r\n\r\n function y() {\r\n var e, t, n, r, a, c, l, d;\r\n return Object(o.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return o.prev = 0, o.next = 3, Object(s.j)(u.C.BookmarksCache.Selectors.getBookmarks);\r\n case 3:\r\n return e = o.sent, o.next = 6, Object(s.c)(R);\r\n case 6:\r\n return t = o.sent, o.next = 9, Object(s.c)(L, t);\r\n case 9:\r\n return n = o.sent, o.next = 12, Object(s.c)(T);\r\n case 12:\r\n return r = o.sent, o.next = 15, Object(s.c)(P, r);\r\n case 15:\r\n return a = o.sent, o.next = 18, Object(s.c)(D, e);\r\n case 18:\r\n return c = o.sent, l = [].concat(Object(i.a)(n), Object(i.a)(a), Object(i.a)(c)), d = l.sort((function(e, t) {\r\n return u.Pb.compare(t.timestamp, e.timestamp)\r\n })).slice(0, j.a.MAX_ASSETS_WATCH_NEXT).map((function(e) {\r\n return e.asset\r\n })), o.next = 23, Object(s.h)(x.getContinueWatchingAssetsSuccess(d));\r\n case 23:\r\n o.next = 29;\r\n break;\r\n case 25:\r\n return o.prev = 25, o.t0 = o.catch(0), o.next = 29, Object(s.h)(x.getContinueWatchingAssetsFail(u.Zb.fromError(o.t0)));\r\n case 29:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), I, null, [\r\n [0, 25]\r\n ])\r\n }\r\n\r\n function w() {\r\n return Object(o.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(s.b)([Object(s.m)(r.GET_CONTINUE_WATCHING_ASSETS_REQUEST, y)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), C)\r\n }\r\n var U, M = n(6),\r\n F = n(116),\r\n G = n(76),\r\n H = Object(o.a)().mark(Q),\r\n B = Object(o.a)().mark(q);\r\n ! function(e) {\r\n e.GET_FOLDER_ASSETS = \"myTv/subscriptions/GET_FOLDER_ASSETS\", e.GET_FOLDER_ASSETS_SUCCESS = \"myTv/subscriptions/GET_FOLDER_ASSETS_SUCCESS\", e.GET_FOLDER_ASSETS_FAIL = \"myTv/subscriptions/GET_FOLDER_ASSETS_FAIL\"\r\n }(U || (U = {}));\r\n var V = {\r\n getFolderAssets: function(e, t) {\r\n return {\r\n type: U.GET_FOLDER_ASSETS,\r\n meta: {\r\n folderId: e,\r\n channelId: t\r\n }\r\n }\r\n },\r\n getFolderAssetsSuccess: function(e, t, n, r) {\r\n return {\r\n type: U.GET_FOLDER_ASSETS_SUCCESS,\r\n payload: {\r\n folderId: e,\r\n channelId: t,\r\n folder: n,\r\n data: r\r\n }\r\n }\r\n },\r\n getFolderAssetsFail: function(e, t, n) {\r\n return {\r\n type: U.GET_FOLDER_ASSETS_FAIL,\r\n error: n,\r\n meta: {\r\n folderId: e,\r\n channelId: t\r\n }\r\n }\r\n }\r\n },\r\n W = {\r\n getFolderAssets: function(e, t) {\r\n return V.getFolderAssets(e, t)\r\n }\r\n },\r\n Y = {};\r\n var K = {\r\n isFolderAssetsProcessing: function(e, t, n) {\r\n if (t && n && e.myTv.folderAssets && e.myTv.folderAssets[\"\".concat(t, \"_\").concat(n)]) return e.myTv.folderAssets[\"\".concat(t, \"_\").concat(n)].processing\r\n },\r\n isFolderAssetsProcessed: function(e, t, n) {\r\n if (t && n && e.myTv.folderAssets && e.myTv.folderAssets[\"\".concat(t, \"_\").concat(n)]) return e.myTv.folderAssets[\"\".concat(t, \"_\").concat(n)].processed\r\n },\r\n getFolderAssets: function(e, t, n) {\r\n if (t && n && e.myTv.folderAssets && e.myTv.folderAssets[\"\".concat(t, \"_\").concat(n)]) return e.myTv.folderAssets[\"\".concat(t, \"_\").concat(n)].data\r\n }\r\n };\r\n\r\n function Q(e) {\r\n var t, n, r, a, c, i, l;\r\n return Object(o.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return t = e.meta, n = t.folderId, r = t.channelId, o.prev = 1, o.next = 4, Object(s.j)(F.c.getFolders);\r\n case 4:\r\n if (a = o.sent, !(c = a.find((function(e) {\r\n return e.id === n\r\n })))) {\r\n o.next = 13;\r\n break\r\n }\r\n return o.next = 9, Object(s.c)(G.e, r, j.a.SUBSCRIPTIONS_ITEMS_DISPLAYED);\r\n case 9:\r\n return l = o.sent, null !== (i = l) && void 0 !== i && i.length ? l.unshift(c) : l = [], o.next = 13, Object(s.h)(V.getFolderAssetsSuccess(n, r, c, l));\r\n case 13:\r\n o.next = 19;\r\n break;\r\n case 15:\r\n return o.prev = 15, o.t0 = o.catch(1), o.next = 19, Object(s.h)(V.getFolderAssetsFail(n, r, u.Zb.fromError(o.t0)));\r\n case 19:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), H, null, [\r\n [1, 15]\r\n ])\r\n }\r\n\r\n function q() {\r\n return Object(o.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(s.b)([Object(s.m)(U.GET_FOLDER_ASSETS, Q)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), B)\r\n }\r\n var Z, X = n(49),\r\n z = n(66),\r\n J = Object(o.a)().mark(se),\r\n $ = Object(o.a)().mark(ie),\r\n ee = Object(o.a)().mark(oe),\r\n te = Object(o.a)().mark(ue),\r\n ne = Object(o.a)().mark(le);\r\n ! function(e) {\r\n e.UPDATE_RECORDINGS = \"myTv/recordings/UPDATE\", e.FAIL_RECORDINGS = \"myTv/recordings/FAIL\"\r\n }(Z || (Z = {}));\r\n var re = {\r\n updateRecordings: function(e, t) {\r\n return {\r\n type: Z.UPDATE_RECORDINGS,\r\n payload: {\r\n recordings: e,\r\n scheduledRecordings: t\r\n }\r\n }\r\n },\r\n failRecordings: function(e) {\r\n return {\r\n type: Z.FAIL_RECORDINGS,\r\n error: e\r\n }\r\n }\r\n },\r\n ae = {\r\n data: {\r\n recordings: [],\r\n scheduledRecordings: []\r\n }\r\n };\r\n var ce = {\r\n getRecordings: function(e) {\r\n return e.myTv.recordings.data.recordings\r\n },\r\n getScheduledRecordings: function(e) {\r\n return e.myTv.recordings.data.scheduledRecordings\r\n },\r\n isRecordingsProcessed: function(e) {\r\n return e.myTv.recordings.processed || !1\r\n },\r\n getError: function(e) {\r\n return e.myTv.recordings.error\r\n }\r\n };\r\n\r\n function se() {\r\n var e, t;\r\n return Object(o.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(s.j)(u.C.Menu.Selectors.getMenu);\r\n case 2:\r\n return e = n.sent, t = e && e[u.ab.MY_TV], n.abrupt(\"return\", !(null === t || void 0 === t || !t.children.find((function(e) {\r\n return e.type === u.Z.SCHEDULE_RECORDINGS\r\n }))));\r\n case 5:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), J)\r\n }\r\n\r\n function ie() {\r\n var e, t, n, r;\r\n return Object(o.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 2, Object(s.j)(l.d.getRecordings);\r\n case 2:\r\n return e = a.sent, t = u.zb.sort(e), n = Object(i.a)(t), a.next = 7, Object(s.c)(se);\r\n case 7:\r\n return a.sent && (n = n.filter((function(e) {\r\n return u.zb.getRecordingStatus(e) === u.wb.COMPLETED || u.zb.getRecordingStatus(e) === u.wb.ON_GOING\r\n }))), n = u.i.merge(n), a.next = 12, Object(s.c)(z.a.getAssetsWithBadgesListFromRail, n, X.a.MY_TV.RECORDING_RAIL);\r\n case 12:\r\n return n = a.sent, r = t.filter((function(e) {\r\n return u.zb.getRecordingStatus(e) === u.wb.SCHEDULED\r\n })), r = u.i.merge(r), a.next = 17, Object(s.c)(z.a.getAssetsWithBadgesListFromRail, r, X.a.MY_TV.RECORDING_RAIL);\r\n case 17:\r\n return r = a.sent, a.next = 20, Object(s.h)(re.updateRecordings(n, r));\r\n case 20:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), $)\r\n }\r\n\r\n function oe(e) {\r\n return Object(o.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(s.h)(re.failRecordings(e.error));\r\n case 2:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), ee)\r\n }\r\n\r\n function ue() {\r\n var e, t;\r\n return Object(o.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(s.j)(ce.isRecordingsProcessed);\r\n case 2:\r\n if (!n.sent) {\r\n n.next = 4;\r\n break\r\n }\r\n return n.abrupt(\"return\", !0);\r\n case 4:\r\n return n.next = 6, Object(s.i)({\r\n success: Object(s.l)(Z.UPDATE_RECORDINGS),\r\n error: Object(s.l)(Z.FAIL_RECORDINGS)\r\n });\r\n case 6:\r\n return e = n.sent, t = e.error, n.abrupt(\"return\", void 0 === t);\r\n case 9:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), te)\r\n }\r\n\r\n function le() {\r\n return Object(o.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(s.b)([Object(s.o)(l.b.UPDATE, ie), Object(s.o)(l.b.FAIL, oe)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), ne)\r\n }\r\n var de, be, Oe = n(8),\r\n fe = n(71),\r\n je = n(7),\r\n pe = Object(o.a)().mark(xe),\r\n Ee = Object(o.a)().mark(Ae);\r\n ! function(e) {\r\n e.thisWeek = \"thisWeek\", e.lastWeek = \"lastWeek\", e.thisMonth = \"thisMonth\", e.lastMonth = \"lastMonth\", e.twoMonthsAgo = \"twoMonthsAgo\", e.threeMonthsAgo = \"threeMonthsAgo\", e.older = \"older\"\r\n }(de || (de = {})),\r\n function(e) {\r\n e.GET_SECOND_LEVEL_ASSETS = \"myTV/secondLevel/GET_SECOND_LEVEL_ASSETS\", e.GET_SECOND_LEVEL_ASSETS_SUCCESS = \"myTV/secondLevel/GET_SECOND_LEVEL_ASSETS_SUCCESS\", e.GET_SECOND_LEVEL_ASSETS_FAIL = \"myTV/secondLevel/GET_SECOND_LEVEL_ASSETS_FAIL\"\r\n }(be || (be = {}));\r\n var Se = {\r\n getSecondLevelAssets: function(e) {\r\n return {\r\n type: be.GET_SECOND_LEVEL_ASSETS,\r\n meta: {\r\n menuItemId: e\r\n }\r\n }\r\n },\r\n getSecondLevelAssetsSuccess: function(e, t) {\r\n return {\r\n type: be.GET_SECOND_LEVEL_ASSETS_SUCCESS,\r\n payload: {\r\n data: e,\r\n menuItemId: t\r\n }\r\n }\r\n },\r\n getSecondLevelAssetsFail: function(e, t) {\r\n return {\r\n type: be.GET_SECOND_LEVEL_ASSETS_FAIL,\r\n error: t,\r\n meta: {\r\n menuItemId: e\r\n }\r\n }\r\n }\r\n },\r\n ve = {\r\n getSecondLevelAssets: function(e) {\r\n return Se.getSecondLevelAssets(e)\r\n }\r\n },\r\n me = {\r\n data: []\r\n };\r\n var he = {\r\n getSecondLevelAssets: function(e) {\r\n var t;\r\n return null === (t = e.myTv.secondLevelRails) || void 0 === t ? void 0 : t.data\r\n },\r\n getSecondLevelMenuItemId: function(e) {\r\n var t;\r\n return null === (t = e.myTv.secondLevelRails) || void 0 === t ? void 0 : t.menuItemId\r\n }\r\n };\r\n\r\n function ge(e, t) {\r\n var n = null === e || void 0 === e ? void 0 : e.reduce((function(e, t) {\r\n return t.genres.forEach((function(n) {\r\n e[n] || (e[n] = []), e[n].push(t)\r\n })), e\r\n }), {});\r\n return n ? Object.keys(n).reduce((function(e, r) {\r\n var a = {\r\n railId: r,\r\n menuItemId: t,\r\n railName: r,\r\n assets: n[r]\r\n };\r\n return e.push(a), e\r\n }), []).sort((function(e, t) {\r\n return e.railName.localeCompare(t.railName)\r\n })) : []\r\n }\r\n\r\n function Ie(e) {\r\n return e.assets.length > 0\r\n }\r\n\r\n function Ce(e, t) {\r\n var n, r = new Map,\r\n a = u.Pb.now(),\r\n c = u.Pb.getLastWeekDayDate(u.Pb.Weekdays.MONDAY, !1, a),\r\n s = u.Pb.getLastWeekDayDate(u.Pb.Weekdays.MONDAY, !0, c),\r\n i = u.Pb.getMonthStartDate(a),\r\n o = u.Pb.getMonthStartDate(a, -1),\r\n l = u.Pb.getMonthStartDate(a, -2),\r\n d = u.Pb.getMonthStartDate(a, -3);\r\n r.set(de.thisWeek, []), r.set(de.lastWeek, []), r.set(de.thisMonth, []), r.set(de.lastMonth, []), r.set(de.twoMonthsAgo, []), r.set(de.threeMonthsAgo, []), r.set(de.older, []), e.forEach((function(e) {\r\n var t = de.older;\r\n e.startDate === c || u.Pb.isAfter(e.startDate, c) ? t = de.thisWeek : (e.startDate === s || u.Pb.isAfter(e.startDate, s)) && u.Pb.isBefore(e.startDate, c) ? t = de.lastWeek : e.startDate === i || u.Pb.isAfter(e.startDate, i) ? t = de.thisMonth : (e.startDate === o || u.Pb.isAfter(e.startDate, o)) && u.Pb.isBefore(e.startDate, i) ? t = de.lastMonth : e.startDate === l || u.Pb.isAfter(e.startDate, l) ? t = de.twoMonthsAgo : (e.startDate === d || u.Pb.isAfter(e.startDate, d)) && u.Pb.isBefore(e.startDate, l) && (t = de.threeMonthsAgo);\r\n var n = r.get(t);\r\n n && n.push(e)\r\n }));\r\n var b = (n = {}, Object(M.a)(n, de.thisWeek, je.a[\"mytv.recordingsLevel.thisWeek\"]), Object(M.a)(n, de.lastWeek, je.a[\"mytv.recordingsLevel.lastWeek\"]), Object(M.a)(n, de.thisMonth, je.a[\"mytv.recordingsLevel.thisMonth\"]), Object(M.a)(n, de.lastMonth, je.a[\"mytv.recordingsLevel.lastMonth\"]), Object(M.a)(n, de.older, je.a[\"mytv.recordingsLevel.olderRecordings\"]), Object(M.a)(n, de.twoMonthsAgo, u.Pb.getLongMonth(1e3 * u.Pb.toUnixEpoch(l))), Object(M.a)(n, de.threeMonthsAgo, u.Pb.getLongMonth(1e3 * u.Pb.toUnixEpoch(d))), n);\r\n return Array.from(r, (function(e) {\r\n var n = Object(Oe.a)(e, 2),\r\n r = n[0],\r\n a = n[1];\r\n return {\r\n railId: r,\r\n menuItemId: t,\r\n railName: b[r],\r\n assets: a\r\n }\r\n })).filter(Ie)\r\n }\r\n\r\n function xe(e) {\r\n var t, n, r, a, c, i;\r\n return Object(o.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return t = e.meta.menuItemId, o.next = 3, Object(s.j)(u.C.Menu.Selectors.getMainMenuItem, u.ab.MY_TV);\r\n case 3:\r\n c = o.sent, i = c.children.find((function(e) {\r\n return e.id === t\r\n })), o.t0 = null === i || void 0 === i ? void 0 : i.type, o.next = o.t0 === u.Z.WISHLIST ? 8 : o.t0 === u.Z.RENTALS ? 13 : o.t0 === u.Z.RECORDINGS ? 18 : o.t0 === u.Z.SCHEDULE_RECORDINGS ? 25 : 32;\r\n break;\r\n case 8:\r\n return o.next = 10, Object(s.j)(fe.d.getAssets);\r\n case 10:\r\n return n = o.sent, a = X.a.MY_TV.WISHLIST_RAIL, o.abrupt(\"break\", 34);\r\n case 13:\r\n return o.next = 15, Object(s.j)(b.e.getAssets);\r\n case 15:\r\n return n = o.sent, a = X.a.MY_TV.RENTAR_AND_PURCHASES_RAIL, o.abrupt(\"break\", 34);\r\n case 18:\r\n return o.next = 20, Object(s.c)(ue);\r\n case 20:\r\n return o.next = 22, Object(s.j)(ce.getRecordings);\r\n case 22:\r\n return n = o.sent, a = X.a.MY_TV.RECORDING_RAIL, o.abrupt(\"break\", 34);\r\n case 25:\r\n return o.next = 27, Object(s.c)(ue);\r\n case 27:\r\n return o.next = 29, Object(s.j)(ce.getScheduledRecordings);\r\n case 29:\r\n return n = o.sent, a = X.a.MY_TV.RECORDING_RAIL, o.abrupt(\"break\", 34);\r\n case 32:\r\n return n = [], o.abrupt(\"break\", 34);\r\n case 34:\r\n if (!a) {\r\n o.next = 38;\r\n break\r\n }\r\n return o.next = 37, Object(s.c)(z.a.getAssetsWithBadgesListFromRail, n, a);\r\n case 37:\r\n n = o.sent;\r\n case 38:\r\n return r = (null === i || void 0 === i ? void 0 : i.type) === u.Z.WISHLIST || (null === i || void 0 === i ? void 0 : i.type) === u.Z.RENTALS ? ge(n, t) : Ce(n, t), o.next = 41, Object(s.h)(Se.getSecondLevelAssetsSuccess(r, t));\r\n case 41:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), pe)\r\n }\r\n\r\n function Ae() {\r\n return Object(o.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(s.b)([Object(s.m)(be.GET_SECOND_LEVEL_ASSETS, xe)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), Ee)\r\n }\r\n var _e, Re = Object(o.a)().mark(Pe),\r\n Te = Object(o.a)().mark(De);\r\n ! function(e) {\r\n e.GET_THIRD_LEVEL_ASSETS = \"myTV/thirdLevel/GET_THIRD_LEVEL_ASSETS\", e.GET_THIRD_LEVEL_ASSETS_SUCCESS = \"myTV/thirdLevel/GET_THIRD_LEVEL_ASSETS_SUCCESS\", e.GET_THIRD_LEVEL_ASSETS_FAIL = \"myTV/thirdLevel/GET_THIRD_LEVEL_ASSETS_FAIL\"\r\n }(_e || (_e = {}));\r\n var Ne = {\r\n getThirdLevelAssets: function(e, t, n) {\r\n return {\r\n type: _e.GET_THIRD_LEVEL_ASSETS,\r\n meta: {\r\n railId: e,\r\n page: t,\r\n menuItemId: n\r\n }\r\n }\r\n },\r\n getThirdLevelAssetsSuccess: function(e, t) {\r\n return {\r\n type: _e.GET_THIRD_LEVEL_ASSETS_SUCCESS,\r\n payload: {\r\n data: e,\r\n totalAssets: t\r\n }\r\n }\r\n },\r\n getThirdLevelAssetsFail: function(e, t, n, r) {\r\n return {\r\n type: _e.GET_THIRD_LEVEL_ASSETS_FAIL,\r\n error: r,\r\n meta: {\r\n railId: e,\r\n page: t,\r\n menuItemId: n\r\n }\r\n }\r\n }\r\n },\r\n ke = {\r\n getThirdLevelAssets: function(e, t, n) {\r\n return Ne.getThirdLevelAssets(e, t, n)\r\n }\r\n },\r\n Le = {};\r\n\r\n function Pe(e) {\r\n var t, n, r, c, i, l, d, b, O, f;\r\n return Object(o.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return t = e.meta, n = t.railId, r = t.page, c = t.menuItemId, o.prev = 1, o.next = 4, Object(s.h)(ve.getSecondLevelAssets(c));\r\n case 4:\r\n return o.next = 6, Object(s.i)({\r\n success: Object(s.l)(be.GET_SECOND_LEVEL_ASSETS_SUCCESS),\r\n error: Object(s.l)(be.GET_SECOND_LEVEL_ASSETS_FAIL)\r\n });\r\n case 6:\r\n if (i = o.sent, !(l = i.error)) {\r\n o.next = 12;\r\n break\r\n }\r\n return o.next = 11, Object(s.h)(Ne.getThirdLevelAssetsFail(n, r, c, l));\r\n case 11:\r\n return o.abrupt(\"return\");\r\n case 12:\r\n return o.next = 14, Object(s.j)(he.getSecondLevelAssets);\r\n case 14:\r\n return d = o.sent, b = d.filter((function(e) {\r\n return e.railId === n\r\n })), O = b[0].assets.length, f = Object(a.a)(Object(a.a)({}, b[0]), {}, {\r\n assets: b[0].assets.slice(0, j.a.ASSETS_PER_GRID_PAGE * r)\r\n }), o.next = 20, Object(s.h)(Ne.getThirdLevelAssetsSuccess(f, O));\r\n case 20:\r\n o.next = 26;\r\n break;\r\n case 22:\r\n return o.prev = 22, o.t0 = o.catch(1), o.next = 26, Object(s.h)(Ne.getThirdLevelAssetsFail(n, r, c, u.Zb.fromError(o.t0)));\r\n case 26:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), Re, null, [\r\n [1, 22]\r\n ])\r\n }\r\n\r\n function De() {\r\n return Object(o.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(s.b)([Object(s.m)(_e.GET_THIRD_LEVEL_ASSETS, Pe)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), Te)\r\n }\r\n t.c = Object(c.b)({\r\n continueWatchingAssets: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : _,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case r.GET_CONTINUE_WATCHING_ASSETS_REQUEST:\r\n return {\r\n data: [],\r\n processing: !0,\r\n processed: !1\r\n };\r\n case r.GET_CONTINUE_WATCHING_ASSETS_SUCCESS:\r\n return {\r\n data: t.payload,\r\n processed: !0,\r\n processing: !1\r\n };\r\n case r.GET_CONTINUE_WATCHING_ASSETS_FAIL:\r\n return {\r\n data: [],\r\n processed: !0,\r\n processing: !1,\r\n error: t.error\r\n };\r\n default:\r\n return e\r\n }\r\n },\r\n folderAssets: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Y,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case U.GET_FOLDER_ASSETS:\r\n return Object(a.a)(Object(a.a)({}, e), {}, Object(M.a)({}, \"\".concat(t.meta.folderId, \"_\").concat(t.meta.channelId), {\r\n data: [],\r\n processing: !0,\r\n processed: !1,\r\n error: void 0\r\n }));\r\n case U.GET_FOLDER_ASSETS_SUCCESS:\r\n return Object(a.a)(Object(a.a)({}, e), {}, Object(M.a)({}, \"\".concat(t.payload.folderId, \"_\").concat(t.payload.channelId), {\r\n data: t.payload.data,\r\n folder: t.payload.folder,\r\n processing: !1,\r\n processed: !0\r\n }));\r\n case U.GET_FOLDER_ASSETS_FAIL:\r\n return Object(a.a)(Object(a.a)({}, e), {}, Object(M.a)({}, \"\".concat(t.meta.folderId, \"_\").concat(t.meta.channelId), {\r\n data: [],\r\n processing: !1,\r\n processed: !0,\r\n error: t.error\r\n }));\r\n default:\r\n return e\r\n }\r\n },\r\n recordings: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ae,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case Z.UPDATE_RECORDINGS:\r\n return {\r\n data: t.payload,\r\n processed: !0,\r\n error: void 0\r\n };\r\n case Z.FAIL_RECORDINGS:\r\n return {\r\n data: ae.data,\r\n processed: !1,\r\n error: t.error\r\n };\r\n default:\r\n return e\r\n }\r\n },\r\n secondLevelRails: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : me,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n return t.type === be.GET_SECOND_LEVEL_ASSETS_SUCCESS ? {\r\n data: t.payload.data,\r\n menuItemId: t.payload.menuItemId\r\n } : e\r\n },\r\n thirdLevelRails: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Le,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case _e.GET_THIRD_LEVEL_ASSETS_SUCCESS:\r\n return {\r\n data: t.payload.data,\r\n totalAssets: t.payload.totalAssets,\r\n error: void 0\r\n };\r\n case _e.GET_THIRD_LEVEL_ASSETS_FAIL:\r\n return {\r\n data: {\r\n assets: [],\r\n menuItemId: 0,\r\n railName: \"\",\r\n railId: \"\"\r\n },\r\n totalAssets: 0,\r\n error: t.error\r\n };\r\n default:\r\n return e\r\n }\r\n }\r\n });\r\n var ye = Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({}, {\r\n getContinueWatchingAssets: function(e) {\r\n var t;\r\n return null === (t = e.myTv.continueWatchingAssets) || void 0 === t ? void 0 : t.data\r\n },\r\n isWatchNextProcessed: function(e) {\r\n var t;\r\n return !(null === (t = e.myTv.continueWatchingAssets) || void 0 === t || !t.processed)\r\n },\r\n watchNextError: function(e) {\r\n var t;\r\n return !(null === (t = e.myTv.continueWatchingAssets) || void 0 === t || !t.error)\r\n }\r\n }), K), ce), he), {\r\n getThirdLevelAssets: function(e) {\r\n var t;\r\n return null === (t = e.myTv.thirdLevelRails) || void 0 === t ? void 0 : t.data\r\n },\r\n getThirdLevelAssetsNumber: function(e) {\r\n var t;\r\n return null === (t = e.myTv.thirdLevelRails) || void 0 === t ? void 0 : t.totalAssets\r\n },\r\n getThirdLevelError: function(e) {\r\n var t;\r\n return !(null === (t = e.myTv.thirdLevelRails) || void 0 === t || !t.error)\r\n }\r\n }),\r\n we = Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({}, A), W), ve), ke),\r\n Ue = [Object(s.c)(w), Object(s.c)(q), Object(s.c)(le), Object(s.c)(Ae), Object(s.c)(De)]\r\n }, , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"b\", (function() {\r\n return hn\r\n })), n.d(t, \"f\", (function() {\r\n return gn\r\n })), n.d(t, \"a\", (function() {\r\n return fn\r\n })), n.d(t, \"c\", (function() {\r\n return mn.a\r\n })), n.d(t, \"d\", (function() {\r\n return mn.b\r\n }));\r\n var r = n(15),\r\n a = n(33),\r\n c = n(61),\r\n s = n(1),\r\n i = n(6),\r\n o = n(4),\r\n u = n(2),\r\n l = n(8),\r\n d = n(0),\r\n b = n(210),\r\n O = Object(u.a)().mark(j);\r\n\r\n function f(e, t) {\r\n var n = e[0],\r\n r = 0;\r\n return e.forEach((function(e) {\r\n var a = function(e, t) {\r\n var n;\r\n return null === (n = e[d.m.getBookmarkAssetId(t)]) || void 0 === n ? void 0 : n.data\r\n }(t, e);\r\n a && a.position > r && (r = a.position, n = e)\r\n })), [n, r]\r\n }\r\n\r\n function j(e) {\r\n var t, n, r, a, c, i;\r\n return Object(u.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return o.next = 2, Object(s.j)(d.C.BookmarksCache.Selectors.getBookmarks);\r\n case 2:\r\n return t = o.sent, Object.entries(e.episodesBySeason).forEach((function(s) {\r\n Object(l.a)(s, 2)[1].forEach((function(s) {\r\n var i = f(e.episodesClones[s.internalId], t),\r\n o = Object(l.a)(i, 2),\r\n u = o[0],\r\n b = o[1];\r\n switch (d.m.getWatchState(u, b)) {\r\n case d.Vb.WATCHING:\r\n n = u;\r\n break;\r\n case d.Vb.WATCHED:\r\n r = u;\r\n break;\r\n default:\r\n r ? (a = u, r = void 0) : c || (c = u)\r\n }\r\n }))\r\n })), i = a || c, o.abrupt(\"return\", n || i);\r\n case 6:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), O)\r\n }\r\n var p = {\r\n getBestEpisode: j\r\n },\r\n E = Object(u.a)().mark(I),\r\n S = 95,\r\n v = 0;\r\n\r\n function m(e, t) {\r\n var n = function(e, t) {\r\n var n;\r\n return null === (n = e[d.m.getBookmarkAssetId(t)]) || void 0 === n ? void 0 : n.data\r\n }(e, t);\r\n return n ? d.i.getProgressInPercentage(n.position, d.Pb.minutesToSeconds(t.durationValue)) : 0\r\n }\r\n\r\n function h(e, t) {\r\n for (var n, r, a = Object.values(e.episodesBySeason), c = 0; c < a.length; c += 1) {\r\n var s;\r\n if ((n = (r = a[c]).findIndex((function(e) {\r\n return e.internalId === t.internalId\r\n }))) > -1) return n !== r.length - 1 ? r[n + 1] : null === (s = a[c + 1]) || void 0 === s ? void 0 : s[0]\r\n }\r\n }\r\n\r\n function g(e) {\r\n return Object.values(e.episodesBySeason)[0][0]\r\n }\r\n\r\n function I(e, t, n) {\r\n var r, a, c, i;\r\n return Object(u.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return o.next = 2, Object(s.j)(d.C.BookmarksCache.Selectors.getBookmarks);\r\n case 2:\r\n return r = o.sent, o.next = 5, Object(s.c)(d.C.Recommendations.getBestEpisode, n, t);\r\n case 5:\r\n if (!(a = o.sent) || !d.i.isPlayableAsset(a)) {\r\n o.next = 17;\r\n break\r\n }\r\n if (!((c = m(r, a)) >= S)) {\r\n o.next = 14;\r\n break\r\n }\r\n if (!(i = h(e, a))) {\r\n o.next = 12;\r\n break\r\n }\r\n return o.abrupt(\"return\", i);\r\n case 12:\r\n o.next = 16;\r\n break;\r\n case 14:\r\n if (!(c > v)) {\r\n o.next = 16;\r\n break\r\n }\r\n return o.abrupt(\"return\", a);\r\n case 16:\r\n return o.abrupt(\"return\", g(e));\r\n case 17:\r\n return o.abrupt(\"return\", t);\r\n case 18:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), E)\r\n }\r\n var C = {\r\n getBestEpisode: I\r\n },\r\n x = n(32),\r\n A = Object(u.a)().mark(_);\r\n\r\n function _(e, t, n) {\r\n var r, a, c;\r\n return Object(u.a)().wrap((function(i) {\r\n for (;;) switch (i.prev = i.next) {\r\n case 0:\r\n return i.next = 2, Object(s.j)(d.C.Recommendations.Selectors.isFeatureEnabled);\r\n case 2:\r\n return a = i.sent, i.next = 5, Object(s.j)(x.b.hasAgreedToConsent);\r\n case 5:\r\n if (c = i.sent, !(a && c && n) || n.type !== d.Z.EXTERNAL && n.type !== d.Z.EXTERNAL_SEARCH) {\r\n i.next = 12;\r\n break\r\n }\r\n return i.next = 9, Object(s.c)(C.getBestEpisode, e, t, n);\r\n case 9:\r\n r = i.sent, i.next = 15;\r\n break;\r\n case 12:\r\n return i.next = 14, Object(s.c)(p.getBestEpisode, e);\r\n case 14:\r\n r = i.sent;\r\n case 15:\r\n return i.abrupt(\"return\", r);\r\n case 16:\r\n case \"end\":\r\n return i.stop()\r\n }\r\n }), A)\r\n }\r\n var R = {\r\n getBestEpisode: _\r\n },\r\n T = n(67),\r\n N = n(34),\r\n k = n(26),\r\n L = Object(u.a)().mark(w),\r\n P = Object(u.a)().mark(U),\r\n D = Object(u.a)().mark(M),\r\n y = Object(u.a)().mark(F);\r\n\r\n function w(e) {\r\n var t;\r\n return Object(u.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(s.j)(N.d.getRecordings);\r\n case 2:\r\n return t = n.sent, n.abrupt(\"return\", t.filter((function(t) {\r\n return t.internalId === e\r\n })));\r\n case 4:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), L)\r\n }\r\n\r\n function U(e) {\r\n var t;\r\n return Object(u.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(s.j)(T.e.getAssets);\r\n case 2:\r\n return t = n.sent, n.abrupt(\"return\", t.filter((function(t) {\r\n return d.i.isVod(t) && t.internalId === e\r\n })));\r\n case 4:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), P)\r\n }\r\n\r\n function M(e) {\r\n var t, n, r, a, c;\r\n return Object(u.a)().wrap((function(i) {\r\n for (;;) switch (i.prev = i.next) {\r\n case 0:\r\n if (t = [d.f.EPG, d.f.MOVIE, d.f.EPISODE], \"\" !== (n = d.Gb.createClonesFilter(e, t))) {\r\n i.next = 4;\r\n break\r\n }\r\n return i.abrupt(\"return\", []);\r\n case 4:\r\n return i.next = 6, Object(s.j)(d.C.Dms.Selectors.getFilesFormat);\r\n case 6:\r\n return r = i.sent, i.next = 9, Object(s.j)(d.C.Dms.Selectors.getParentalControl);\r\n case 9:\r\n return a = i.sent, i.next = 12, d.C.Pagination.callCompletedPaginatedApi(\"clone_assets_\".concat(e.internalId), d.t.DEFAULT_API_PAGE_SIZE, d.j.assetSearch, n, r, a, t, void 0, d.R[k.a.env.CHANNELS_UNSUBSCRIBED_VISIBILITY]);\r\n case 12:\r\n return c = i.sent, i.abrupt(\"return\", c);\r\n case 14:\r\n case \"end\":\r\n return i.stop()\r\n }\r\n }), D)\r\n }\r\n\r\n function F(e, t) {\r\n var n, a, c, i;\r\n return Object(u.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n o.t0 = t, o.next = o.t0 === d.G.RECORDINGS || o.t0 === d.G.SCHEDULED_RECORDINGS ? 3 : o.t0 === d.G.PURCHASES ? 6 : 9;\r\n break;\r\n case 3:\r\n return o.next = 5, Object(s.c)(w, e.internalId);\r\n case 5:\r\n case 8:\r\n return o.abrupt(\"return\", o.sent);\r\n case 6:\r\n return o.next = 8, Object(s.c)(U, e.internalId);\r\n case 9:\r\n return o.abrupt(\"break\", 10);\r\n case 10:\r\n return o.next = 12, Object(s.b)([Object(s.c)(M, e), Object(s.c)(w, e.internalId)]);\r\n case 12:\r\n return n = o.sent, a = Object(l.a)(n, 2), c = a[0], i = a[1], o.abrupt(\"return\", [].concat(Object(r.a)(c), Object(r.a)(i)));\r\n case 17:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), y)\r\n }\r\n var G = {\r\n getAssetClones: F\r\n },\r\n H = n(45),\r\n B = n(174),\r\n V = Object(u.a)().mark(q),\r\n W = Object(u.a)().mark(Z),\r\n Y = Object(u.a)().mark(X),\r\n K = Object(u.a)().mark(z),\r\n Q = Object(u.a)().mark(J);\r\n\r\n function q(e) {\r\n var t, n;\r\n return Object(u.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return t = [], e.forEach((function(e) {\r\n e.streams.filter((function(e) {\r\n return e.fileFormat !== d.K.TRAILER\r\n })).forEach((function(e) {\r\n t.push(d.C.Api.callApi(d.Ob.getSubscriptionIds, e.id))\r\n }))\r\n })), a.next = 4, Object(s.b)(t);\r\n case 4:\r\n return n = a.sent, a.abrupt(\"return\", n.reduce((function(e, t) {\r\n return [].concat(Object(r.a)(e), Object(r.a)(t))\r\n }), []));\r\n case 6:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), V)\r\n }\r\n\r\n function Z(e) {\r\n var t, n, r;\r\n return Object(u.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 2, Object(s.j)(H.c.getChannels);\r\n case 2:\r\n return t = a.sent, n = [], e.forEach((function(e) {\r\n (r = t.find((function(t) {\r\n return t.epgId === e.channelEpgId && t.subscriptionId\r\n }))) && n.push(r.subscriptionId)\r\n })), a.abrupt(\"return\", n);\r\n case 6:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), W)\r\n }\r\n\r\n function X(e) {\r\n var t, n, a, c, i, o, b;\r\n return Object(u.a)().wrap((function(u) {\r\n for (;;) switch (u.prev = u.next) {\r\n case 0:\r\n return t = [], n = [], e.forEach((function(e) {\r\n e.mediaType === d.f.EPG || e.mediaType === d.f.RECORDING ? t.push(e) : n.push(e)\r\n })), u.next = 5, Object(s.b)([Object(s.c)(q, n), Object(s.c)(Z, t)]);\r\n case 5:\r\n return a = u.sent, c = Object(l.a)(a, 2), i = c[0], o = c[1], b = [].concat(Object(r.a)(i), Object(r.a)(o)), u.abrupt(\"return\", Object(r.a)(new Set(b)));\r\n case 11:\r\n case \"end\":\r\n return u.stop()\r\n }\r\n }), Y)\r\n }\r\n\r\n function z(e) {\r\n var t;\r\n return Object(u.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(s.c)(X, e);\r\n case 2:\r\n return t = n.sent, n.next = 5, Object(s.c)(B.a.getSubscriptionsFolders, t);\r\n case 5:\r\n return n.abrupt(\"return\", n.sent);\r\n case 6:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), K)\r\n }\r\n\r\n function J(e) {\r\n var t, n;\r\n return Object(u.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(s.j)(d.C.Dms.Selectors.getFilesFormat);\r\n case 2:\r\n return t = r.sent, r.next = 5, Object(s.j)(d.C.Dms.Selectors.getParentalControl);\r\n case 5:\r\n return n = r.sent, r.next = 8, d.C.Pagination.callPaginatedApi(\"asset_list_\".concat(e), 0, d.t.ASSETS_NUMBER_RELATED, d.t.ASSETS_NUMBER_RELATED, d.j.assetList, e, t, n, d.R[k.a.env.CHANNELS_UNSUBSCRIBED_VISIBILITY]);\r\n case 8:\r\n return r.abrupt(\"return\", r.sent);\r\n case 9:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), Q)\r\n }\r\n var $ = {\r\n getRelatedSubscriptionsFolders: z,\r\n getAssetsByChannel: J\r\n },\r\n ee = Object(u.a)().mark(re),\r\n te = Object(u.a)().mark(ae),\r\n ne = Object(u.a)().mark(ce);\r\n\r\n function re(e) {\r\n var t, n;\r\n return Object(u.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return t = [], e.forEach((function(e) {\r\n e.streams.filter((function(e) {\r\n return e.fileFormat !== d.K.TRAILER\r\n })).forEach((function(e) {\r\n t.push(d.C.Api.callApi(d.r.getCollectionsIds, e.id))\r\n }))\r\n })), a.next = 4, Object(s.b)(t);\r\n case 4:\r\n return n = a.sent, a.abrupt(\"return\", n.reduce((function(e, t) {\r\n return [].concat(Object(r.a)(e), Object(r.a)(t))\r\n }), []));\r\n case 6:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), ee)\r\n }\r\n\r\n function ae(e) {\r\n var t;\r\n return Object(u.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(s.c)(re, e);\r\n case 2:\r\n return t = n.sent, n.abrupt(\"return\", Object(r.a)(new Set(t)));\r\n case 4:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), te)\r\n }\r\n\r\n function ce(e) {\r\n var t;\r\n return Object(u.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(s.c)(ae, e);\r\n case 2:\r\n return t = n.sent, n.next = 5, Object(s.c)(B.a.getCollectionsFolders, t);\r\n case 5:\r\n return n.abrupt(\"return\", n.sent);\r\n case 6:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), ne)\r\n }\r\n var se, ie, oe = {\r\n getRelatedCollectionFolders: ce\r\n },\r\n ue = Object(u.a)().mark(he),\r\n le = Object(u.a)().mark(Ce),\r\n de = Object(u.a)().mark(xe),\r\n be = Object(u.a)().mark(Ae),\r\n Oe = Object(u.a)().mark(_e),\r\n fe = Object(u.a)().mark(Re),\r\n je = Object(u.a)().mark(Te),\r\n pe = Object(u.a)().mark(Ne),\r\n Ee = Object(u.a)().mark(ke),\r\n Se = Object(u.a)().mark(Le),\r\n ve = Object(u.a)().mark(Pe),\r\n me = Object(u.a)().mark(De);\r\n\r\n function he(e, t) {\r\n var n, r;\r\n return Object(u.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n if (t) {\r\n a.next = 2;\r\n break\r\n }\r\n return a.abrupt(\"return\", []);\r\n case 2:\r\n return n = {\r\n menuUiArea: d.ab.RELATED,\r\n menuItemId: t,\r\n relatedAssetId: d.C.Recommendations.getRelatedAssetId(e)\r\n }, a.next = 5, Object(s.h)(d.C.Recommendations.Creators.loadAssets(n));\r\n case 5:\r\n return a.next = 7, Object(s.i)([d.C.Recommendations.takeAssets(d.C.Recommendations.ActionType.SUCCESS, n), d.C.Recommendations.takeAssets(d.C.Recommendations.ActionType.FAIL, n)]);\r\n case 7:\r\n return a.next = 9, Object(s.j)(d.C.Recommendations.Selectors.assets, n);\r\n case 9:\r\n return r = a.sent, a.abrupt(\"return\", d.i.merge(r));\r\n case 11:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), ue)\r\n }\r\n\r\n function ge(e, t) {\r\n var n = e.actors;\r\n if (Array.isArray(n) && 0 !== n.length) switch (t) {\r\n case ie.RELATED_BY_ACTOR1:\r\n return n[0];\r\n case ie.RELATED_BY_ACTOR2:\r\n return n[1];\r\n case ie.RELATED_BY_ACTOR3:\r\n return n[2];\r\n default:\r\n return\r\n }\r\n }\r\n\r\n function Ie(e) {\r\n var t = e.directors;\r\n if (Array.isArray(t) && 0 !== t.length) return t[0]\r\n }\r\n\r\n function Ce(e, t) {\r\n var n, r;\r\n return Object(u.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n a.t0 = t.alias, a.next = a.t0 === d.Y.RELATED_BY_ACTOR ? 3 : a.t0 === d.Y.RELATED_BY_DIRECTOR ? 5 : a.t0 === d.Y.RELATED_BY_GENRE ? 7 : a.t0 === d.Y.RELATED_CONTENT ? 9 : 11;\r\n break;\r\n case 3:\r\n return n = {\r\n id: t.id,\r\n type: se.ACTOR,\r\n assets: [],\r\n isRecomm: !0,\r\n name: ge(e, t.name)\r\n }, a.abrupt(\"break\", 12);\r\n case 5:\r\n return n = {\r\n id: t.id,\r\n type: se.DIRECTOR,\r\n assets: [],\r\n isRecomm: !0,\r\n name: Ie(e)\r\n }, a.abrupt(\"break\", 12);\r\n case 7:\r\n return n = {\r\n id: t.id,\r\n type: se.GENRE,\r\n assets: [],\r\n isRecomm: !0,\r\n name: null === (r = e.metadata) || void 0 === r ? void 0 : r.genre\r\n }, a.abrupt(\"break\", 12);\r\n case 9:\r\n return n = {\r\n id: t.id,\r\n type: se.RELATED_CONTENT,\r\n assets: [],\r\n isRecomm: !0,\r\n name: e.title\r\n }, a.abrupt(\"break\", 12);\r\n case 11:\r\n return a.abrupt(\"return\", void 0);\r\n case 12:\r\n return n.menuItem = t, a.next = 15, Object(s.c)(he, e, t.id);\r\n case 15:\r\n return n.assets = a.sent, a.abrupt(\"return\", n);\r\n case 17:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), le)\r\n }\r\n\r\n function xe(e, t, n) {\r\n var r, a, c, i;\r\n return Object(u.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return o.next = 2, Object(s.j)(d.C.Dms.Selectors.getFilesFormat);\r\n case 2:\r\n return r = o.sent, o.next = 5, Object(s.j)(d.C.Dms.Selectors.getParentalControl);\r\n case 5:\r\n return a = o.sent, o.next = 8, d.C.Pagination.callPaginatedApi(e, 0, d.t.ASSETS_NUMBER_RELATED, d.t.ASSETS_NUMBER_RELATED, d.j.assetSearch, t, r, a, n, void 0, d.R[k.a.env.CHANNELS_UNSUBSCRIBED_VISIBILITY]);\r\n case 8:\r\n return c = o.sent, i = d.i.merge(c), o.abrupt(\"return\", i);\r\n case 11:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), de)\r\n }\r\n\r\n function Ae(e, t) {\r\n var n, r, a;\r\n return Object(u.a)().wrap((function(c) {\r\n for (;;) switch (c.prev = c.next) {\r\n case 0:\r\n if (n = {\r\n id: \"genre\",\r\n type: se.GENRE,\r\n assets: []\r\n }, \"\" !== (r = d.Gb.createGenreFilter(e))) {\r\n c.next = 4;\r\n break\r\n }\r\n return c.abrupt(\"return\", n);\r\n case 4:\r\n return c.next = 6, Object(s.c)(xe, \"related_genres_\".concat(e.id), r, t);\r\n case 6:\r\n return a = c.sent, n.assets = a, c.abrupt(\"return\", n);\r\n case 9:\r\n case \"end\":\r\n return c.stop()\r\n }\r\n }), be)\r\n }\r\n\r\n function _e(e, t, n) {\r\n var r;\r\n return Object(u.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n if (\"\" !== (r = d.Gb.createActorFilter(e, t, n))) {\r\n a.next = 3;\r\n break\r\n }\r\n return a.abrupt(\"return\", []);\r\n case 3:\r\n return a.next = 5, Object(s.c)(xe, \"related_actor_\".concat(n, \"_\").concat(e.id), r, t);\r\n case 5:\r\n return a.abrupt(\"return\", a.sent);\r\n case 6:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), Oe)\r\n }\r\n\r\n function Re(e, t) {\r\n var n, r, a, c;\r\n return Object(u.a)().wrap((function(i) {\r\n for (;;) switch (i.prev = i.next) {\r\n case 0:\r\n if (n = e.directors, r = {\r\n id: \"director\",\r\n type: se.DIRECTOR,\r\n assets: []\r\n }, Array.isArray(n) && 0 !== n.length) {\r\n i.next = 4;\r\n break\r\n }\r\n return i.abrupt(\"return\", r);\r\n case 4:\r\n if (\"\" !== (a = d.Gb.createDirectorFilter(e, t, n[0]))) {\r\n i.next = 7;\r\n break\r\n }\r\n return i.abrupt(\"return\", r);\r\n case 7:\r\n return i.next = 9, Object(s.c)(xe, \"related_director_\".concat(e.id), a, t);\r\n case 9:\r\n return c = i.sent, r.assets = c, i.abrupt(\"return\", r);\r\n case 12:\r\n case \"end\":\r\n return i.stop()\r\n }\r\n }), fe)\r\n }\r\n\r\n function Te(e, t) {\r\n var n, r, a, c, i, o;\r\n return Object(u.a)().wrap((function(u) {\r\n for (;;) switch (u.prev = u.next) {\r\n case 0:\r\n if (n = e.actors, Array.isArray(n) && 0 !== n.length) {\r\n u.next = 3;\r\n break\r\n }\r\n return u.abrupt(\"return\", []);\r\n case 3:\r\n for (r = [], a = [], c = 0; c < Math.min(n.length, d.t.RELATED_ACTOR_NUMBER_RAIL); c += 1) r.push(Object(s.c)(_e, e, t, n[c])), a.push({\r\n id: \"actor-\".concat(c),\r\n type: se.ACTOR,\r\n name: n[c],\r\n assets: []\r\n });\r\n return u.next = 8, Object(s.b)(r);\r\n case 8:\r\n for (i = u.sent, o = 0; o < i.length; o += 1) a[o].assets = i[o];\r\n return u.abrupt(\"return\", a);\r\n case 11:\r\n case \"end\":\r\n return u.stop()\r\n }\r\n }), je)\r\n }\r\n\r\n function Ne(e) {\r\n var t, n, a, c, i, o;\r\n return Object(u.a)().wrap((function(u) {\r\n for (;;) switch (u.prev = u.next) {\r\n case 0:\r\n return t = [d.f.MOVIE, d.f.EPISODE, d.f.SERIES, d.f.FOLDER], u.next = 3, Object(s.b)([Object(s.c)(Te, e, t), Object(s.c)(Re, e, t), Object(s.c)(Ae, e, t)]);\r\n case 3:\r\n return n = u.sent, a = Object(l.a)(n, 3), c = a[0], i = a[1], o = a[2], u.abrupt(\"return\", [].concat(Object(r.a)(c), [i, o]));\r\n case 9:\r\n case \"end\":\r\n return u.stop()\r\n }\r\n }), pe)\r\n }\r\n\r\n function ke(e) {\r\n var t, n;\r\n return Object(u.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return t = [d.f.MOVIE, d.f.EPG], r.next = 3, Object(s.c)(Ae, e, t);\r\n case 3:\r\n return n = r.sent, r.abrupt(\"return\", [n]);\r\n case 5:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), Ee)\r\n }\r\n\r\n function Le(e) {\r\n var t, n, r, a, c;\r\n return Object(u.a)().wrap((function(i) {\r\n for (;;) switch (i.prev = i.next) {\r\n case 0:\r\n return i.next = 2, Object(s.j)(d.C.Menu.Selectors.getMainMenuItem, d.ab.RELATED);\r\n case 2:\r\n if ((n = i.sent) && null !== (t = n.children) && void 0 !== t && t.length) {\r\n i.next = 5;\r\n break\r\n }\r\n return i.abrupt(\"return\", []);\r\n case 5:\r\n r = [], a = 0;\r\n case 7:\r\n if (!(a < n.children.length)) {\r\n i.next = 16;\r\n break\r\n }\r\n return i.t0 = r, i.next = 11, Object(s.f)(Ce, e, n.children[a]);\r\n case 11:\r\n i.t1 = i.sent, i.t0.push.call(i.t0, i.t1);\r\n case 13:\r\n a += 1, i.next = 7;\r\n break;\r\n case 16:\r\n return i.next = 18, Object(s.g)(r);\r\n case 18:\r\n return c = i.sent, i.abrupt(\"return\", c.filter((function(e) {\r\n return void 0 !== e\r\n })));\r\n case 20:\r\n case \"end\":\r\n return i.stop()\r\n }\r\n }), Se)\r\n }\r\n\r\n function Pe(e) {\r\n return Object(u.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n t.t0 = e.mediaType, t.next = t.t0 === d.f.EPISODE || t.t0 === d.f.MOVIE || t.t0 === d.f.SERIES ? 3 : t.t0 === d.f.EPG ? 6 : 9;\r\n break;\r\n case 3:\r\n return t.next = 5, Object(s.c)(Ne, e);\r\n case 5:\r\n case 8:\r\n return t.abrupt(\"return\", t.sent);\r\n case 6:\r\n return t.next = 8, Object(s.c)(ke, e);\r\n case 9:\r\n return t.abrupt(\"return\", []);\r\n case 10:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), ve)\r\n }\r\n\r\n function De(e) {\r\n return Object(u.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(s.j)(d.C.Recommendations.Selectors.isFeatureEnabled);\r\n case 2:\r\n if (!t.sent) {\r\n t.next = 7;\r\n break\r\n }\r\n return t.next = 6, Object(s.c)(Le, e);\r\n case 6:\r\n case 9:\r\n return t.abrupt(\"return\", t.sent);\r\n case 7:\r\n return t.next = 9, Object(s.c)(Pe, e);\r\n case 10:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), me)\r\n }! function(e) {\r\n e.GENRE = \"GENRE\", e.ACTOR = \"ACTOR\", e.DIRECTOR = \"DIRECTOR\", e.RELATED_CONTENT = \"RELATED_CONTENT\"\r\n }(se || (se = {})),\r\n function(e) {\r\n e.RELATED_BY_ACTOR1 = \"relatedbyactor1\", e.RELATED_BY_ACTOR2 = \"relatedbyactor2\", e.RELATED_BY_ACTOR3 = \"relatedbyactor3\"\r\n }(ie || (ie = {}));\r\n var ye, we = {\r\n getRelated: De\r\n },\r\n Ue = n(109),\r\n Me = n(7),\r\n Fe = n(66),\r\n Ge = n(18),\r\n He = n(49),\r\n Be = n(41),\r\n Ve = n(162),\r\n We = n(137),\r\n Ye = Object(u.a)().mark(vt),\r\n Ke = Object(u.a)().mark(mt),\r\n Qe = Object(u.a)().mark(ht),\r\n qe = Object(u.a)().mark(gt),\r\n Ze = Object(u.a)().mark(It),\r\n Xe = Object(u.a)().mark(Ct),\r\n ze = Object(u.a)().mark(xt),\r\n Je = Object(u.a)().mark(At),\r\n $e = Object(u.a)().mark(_t),\r\n et = Object(u.a)().mark(Rt),\r\n tt = Object(u.a)().mark(Tt),\r\n nt = Object(u.a)().mark(Nt),\r\n rt = Object(u.a)().mark(kt),\r\n at = Object(u.a)().mark(Lt),\r\n ct = Object(u.a)().mark(Pt),\r\n st = Object(u.a)().mark(Dt),\r\n it = Object(u.a)().mark(yt),\r\n ot = Object(u.a)().mark(wt),\r\n ut = Object(u.a)().mark(Ut),\r\n lt = Object(u.a)().mark(Mt),\r\n dt = 3,\r\n bt = He.a.ALL.RELATED_RAILS;\r\n ! function(e) {\r\n e.REQUEST = \"programInfo/loadInfo\", e.SUCCESS = \"programInfo/loadInfo/SUCCESS\", e.FAIL = \"programInfo/loadInfo/FAIL\"\r\n }(ye || (ye = {}));\r\n var Ot = {\r\n request: function(e) {\r\n return {\r\n type: ye.REQUEST,\r\n meta: e\r\n }\r\n },\r\n success: function(e) {\r\n return {\r\n type: ye.SUCCESS,\r\n meta: e\r\n }\r\n },\r\n fail: function(e, t) {\r\n return {\r\n type: ye.FAIL,\r\n error: t,\r\n meta: e\r\n }\r\n }\r\n },\r\n ft = {\r\n request: Ot.request\r\n },\r\n jt = {\r\n isProcessing: function(e, t) {\r\n var n, r = Be.c(t);\r\n return !0 === (null === (n = e.programInfo.actions.loadInfo[r]) || void 0 === n ? void 0 : n.processing)\r\n },\r\n isProcessed: function(e, t) {\r\n var n, r = Be.c(t);\r\n return !0 === (null === (n = e.programInfo.actions.loadInfo[r]) || void 0 === n ? void 0 : n.processed)\r\n },\r\n getError: function(e, t) {\r\n var n, r = Be.c(t);\r\n return null === (n = e.programInfo.actions.loadInfo[r]) || void 0 === n ? void 0 : n.error\r\n }\r\n };\r\n\r\n function pt(e) {\r\n return d.i.isSpecialSeasonNumber(e) ? Me.a[\"programInfo.moreepisodes.seasonSpecial\"] : d.i.isValidSeasonNumber(e) ? e.toString() : Me.a[\"programInfo.moreepisodes.seasonWithoutNumber\"]\r\n }\r\n\r\n function Et(e, t, n) {\r\n var r = e.name || \"\";\r\n switch (e.type) {\r\n case se.ACTOR:\r\n return Me.a.formatString(Me.a[\"programInfo.related.actors\"], d.i.normalizeName(r)).toString();\r\n case se.DIRECTOR:\r\n return Me.a.formatString(Me.a[\"programInfo.relatedbydirector\"], d.i.normalizeName(r)).toString();\r\n case se.GENRE:\r\n if (e.isRecomm) return Me.a.formatString(Me.a[\"programInfo.relatedbygenre\"], r).toString();\r\n switch (t.mediaType) {\r\n case d.f.EPISODE:\r\n case d.f.MOVIE:\r\n case d.f.SERIES:\r\n return Me.a.formatString(Me.a[\"programInfo.related.vod\"], t.title).toString();\r\n case d.f.EPG:\r\n case d.f.RECORDING:\r\n return Me.a.formatString(Me.a[\"programInfo.related.epg\"], (null === n || void 0 === n ? void 0 : n.title) || \"\").toString();\r\n default:\r\n return \"\"\r\n }\r\n case se.RELATED_CONTENT:\r\n return Me.a.formatString(Me.a[\"programInfo.relatedto\"], r).toString();\r\n default:\r\n return \"\"\r\n }\r\n }\r\n\r\n function St(e) {\r\n for (var t, n = [], r = Object.entries(e.episodesBySeason), a = 0; a < r.length; a += 1) {\r\n var c = Object(l.a)(r[a], 2),\r\n s = c[0],\r\n i = c[1];\r\n t = pt(Number(s));\r\n var o = Fe.a.getAssetsWithBadgesListFromRail(i, He.a.ALL.MORE_EPISODES_RAILS);\r\n n.push({\r\n key: s,\r\n title: t,\r\n assets: o\r\n })\r\n }\r\n return n\r\n }\r\n\r\n function vt(e, t) {\r\n var n;\r\n return Object(u.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.prev = 0, r.next = 3, Object(s.c)(b.a.getSeriesSeasons, e, t, !0);\r\n case 3:\r\n return n = r.sent, r.abrupt(\"return\", n);\r\n case 7:\r\n return r.prev = 7, r.t0 = r.catch(0), r.abrupt(\"return\", void 0);\r\n case 10:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), Ye, null, [\r\n [0, 7]\r\n ])\r\n }\r\n\r\n function mt(e, t, n) {\r\n var r;\r\n return Object(u.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n if (a.prev = 0, !(e.entryPoint === d.G.CLU || e.entryPoint === d.G.TV_GUIDE || e.entryPoint === d.G.SEASONS || e.entryPoint === d.G.SCHEDULED_RECORDINGS || e.entryPoint === d.G.RECORDINGS && d.i.isRecording(n) && d.zb.getRecordingStatus(n) === d.wb.SCHEDULED)) {\r\n a.next = 3;\r\n break\r\n }\r\n return a.abrupt(\"return\", void 0);\r\n case 3:\r\n return a.next = 5, Object(s.c)(R.getBestEpisode, t, n, e.entryMenuItem);\r\n case 5:\r\n return r = a.sent, a.abrupt(\"return\", r);\r\n case 9:\r\n return a.prev = 9, a.t0 = a.catch(0), a.abrupt(\"return\", void 0);\r\n case 12:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), Ke, null, [\r\n [0, 9]\r\n ])\r\n }\r\n\r\n function ht(e, t, n) {\r\n var r;\r\n return Object(u.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n if (a.prev = 0, t !== d.G.CLU && t !== d.G.TV_GUIDE) {\r\n a.next = 3;\r\n break\r\n }\r\n return a.abrupt(\"return\", [e]);\r\n case 3:\r\n if (!d.i.hasValidSeriesId(e)) {\r\n a.next = 7;\r\n break\r\n }\r\n r = null === n || void 0 === n ? void 0 : n.episodesClones[e.internalId], a.next = 10;\r\n break;\r\n case 7:\r\n return a.next = 9, Object(s.c)(G.getAssetClones, e, t);\r\n case 9:\r\n r = a.sent;\r\n case 10:\r\n return a.abrupt(\"return\", r || [e]);\r\n case 13:\r\n return a.prev = 13, a.t0 = a.catch(0), a.abrupt(\"return\", [e]);\r\n case 16:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), Qe, null, [\r\n [0, 13]\r\n ])\r\n }\r\n\r\n function gt(e) {\r\n var t, n;\r\n return Object(u.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, Object(s.c)($.getRelatedSubscriptionsFolders, e);\r\n case 3:\r\n return t = a.sent, a.next = 6, Object(s.c)(oe.getRelatedCollectionFolders, e);\r\n case 6:\r\n return n = a.sent, a.abrupt(\"return\", [].concat(Object(r.a)(t), Object(r.a)(n)));\r\n case 10:\r\n return a.prev = 10, a.t0 = a.catch(0), a.abrupt(\"return\", []);\r\n case 13:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), qe, null, [\r\n [0, 10]\r\n ])\r\n }\r\n\r\n function It(e, t) {\r\n var n, r, a;\r\n return Object(u.a)().wrap((function(c) {\r\n for (;;) switch (c.prev = c.next) {\r\n case 0:\r\n if (t !== d.G.CLU && t !== d.G.TV_GUIDE) {\r\n c.next = 2;\r\n break\r\n }\r\n return c.abrupt(\"return\", []);\r\n case 2:\r\n if (n = [], e.forEach((function(e) {\r\n d.i.isVod(e) && d.v.isPlaybackAllowedForVodAsset(e) && e.streams.forEach((function(e) {\r\n e.fileFormat !== d.K.TRAILER && n.push(e.id)\r\n }))\r\n })), !n.length) {\r\n c.next = 12;\r\n break\r\n }\r\n return c.next = 7, Object(s.j)(d.C.Currency.Selectors.getCurrencyCode);\r\n case 7:\r\n return r = c.sent, c.next = 10, d.C.Api.callApi(d.rb.listByFileIds, n);\r\n case 10:\r\n return a = c.sent, c.abrupt(\"return\", a.filter((function(e) {\r\n return e.price.currency === r\r\n })));\r\n case 12:\r\n return c.abrupt(\"return\", []);\r\n case 13:\r\n case \"end\":\r\n return c.stop()\r\n }\r\n }), Ze)\r\n }\r\n\r\n function Ct(e, t, n) {\r\n var r;\r\n return Object(u.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n if (0 !== e.assets.length) {\r\n a.next = 2;\r\n break\r\n }\r\n return a.abrupt(\"return\", void 0);\r\n case 2:\r\n return a.next = 4, Object(s.c)(Fe.a.getAssetsWithBadgesListFromRail, e.assets, bt);\r\n case 4:\r\n return r = a.sent, a.abrupt(\"return\", {\r\n title: Et(e, t, n),\r\n assets: r,\r\n key: \"\".concat(e.id),\r\n menuItem: e.menuItem\r\n });\r\n case 6:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), Xe)\r\n }\r\n\r\n function xt(e, t, n) {\r\n var r, a, i, o;\r\n return Object(u.a)().wrap((function(u) {\r\n for (;;) switch (u.prev = u.next) {\r\n case 0:\r\n return u.prev = 0, u.next = 3, Object(s.c)(we.getRelated, t);\r\n case 3:\r\n r = u.sent, a = [], i = 0;\r\n case 6:\r\n if (!(i < r.length)) {\r\n u.next = 14;\r\n break\r\n }\r\n return u.next = 9, Object(s.c)(Ct, r[i], t, n);\r\n case 9:\r\n (o = u.sent) && a.push(o);\r\n case 11:\r\n i += 1, u.next = 6;\r\n break;\r\n case 14:\r\n return u.next = 16, Object(s.h)(c.a.update({\r\n context: e,\r\n data: {\r\n related: a\r\n }\r\n }));\r\n case 16:\r\n u.next = 20;\r\n break;\r\n case 18:\r\n u.prev = 18, u.t0 = u.catch(0);\r\n case 20:\r\n case \"end\":\r\n return u.stop()\r\n }\r\n }), ze, null, [\r\n [0, 18]\r\n ])\r\n }\r\n\r\n function At(e, t) {\r\n var n, a;\r\n return Object(u.a)().wrap((function(c) {\r\n for (;;) switch (c.prev = c.next) {\r\n case 0:\r\n return c.next = 2, Object(s.c)($.getAssetsByChannel, t);\r\n case 2:\r\n if (!(n = c.sent).length) {\r\n c.next = 8;\r\n break\r\n }\r\n return c.next = 6, Object(s.c)(Fe.a.getAssetsWithBadgesListFromRail, n, bt);\r\n case 6:\r\n return a = c.sent, c.abrupt(\"return\", {\r\n key: t.toString(),\r\n title: e.title,\r\n assets: [e].concat(Object(r.a)(a))\r\n });\r\n case 8:\r\n return c.abrupt(\"return\", void 0);\r\n case 9:\r\n case \"end\":\r\n return c.stop()\r\n }\r\n }), Je)\r\n }\r\n\r\n function _t(e, t) {\r\n var n, r, a;\r\n return Object(u.a)().wrap((function(i) {\r\n for (;;) switch (i.prev = i.next) {\r\n case 0:\r\n return i.prev = 0, n = t.filter((function(e) {\r\n return e.productType !== d.Nb.LINEAR\r\n })), r = [], n.forEach((function(e) {\r\n var t = d.M.getMainChannelId(e);\r\n r.push(Object(s.c)(At, e, t))\r\n })), i.next = 6, Object(s.b)(r);\r\n case 6:\r\n return a = i.sent, i.next = 9, Object(s.h)(c.a.update({\r\n context: e,\r\n data: {\r\n foldersRelated: a.filter((function(e) {\r\n return void 0 !== e\r\n }))\r\n }\r\n }));\r\n case 9:\r\n i.next = 13;\r\n break;\r\n case 11:\r\n i.prev = 11, i.t0 = i.catch(0);\r\n case 13:\r\n case \"end\":\r\n return i.stop()\r\n }\r\n }), $e, null, [\r\n [0, 11]\r\n ])\r\n }\r\n\r\n function Rt(e) {\r\n var t;\r\n return Object(u.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.next = 2, Object(s.j)(H.c.getChannels);\r\n case 2:\r\n return t = n.sent, n.abrupt(\"return\", d.i.getAssetRelatedChannel(e, t));\r\n case 4:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), et)\r\n }\r\n\r\n function Tt(e) {\r\n return Object(u.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(s.c)(d.C.Epg.Live.getLiveProgram, e);\r\n case 2:\r\n return t.abrupt(\"return\", t.sent);\r\n case 3:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), tt)\r\n }\r\n\r\n function Nt(e, t) {\r\n var n;\r\n return Object(u.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(s.c)(d.C.Epg.Programs.getFuturePrograms, t.channelEpgId, t, dt);\r\n case 2:\r\n if (!((n = r.sent) && n.length > 0)) {\r\n r.next = 6;\r\n break\r\n }\r\n return r.next = 6, Object(s.h)(c.a.update({\r\n context: e,\r\n data: {\r\n nextPrograms: n\r\n }\r\n }));\r\n case 6:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), nt)\r\n }\r\n\r\n function kt(e, t) {\r\n var n;\r\n return Object(u.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(s.c)(It, t, e.entryPoint);\r\n case 2:\r\n return n = r.sent, r.next = 5, Object(s.h)(c.a.update({\r\n context: e,\r\n data: {\r\n vodPrices: n\r\n }\r\n }));\r\n case 5:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), rt)\r\n }\r\n\r\n function Lt(e, t, n, r, a) {\r\n var i;\r\n return Object(u.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return o.next = 2, Object(s.b)([Object(s.c)(kt, e, n), Object(s.c)(d.C.BookmarksCache.loadBookmarks, n)]);\r\n case 2:\r\n return o.next = 4, Object(s.c)(Ve.c, e, t, n, r, a);\r\n case 4:\r\n if (!((i = o.sent).length > 0)) {\r\n o.next = 8;\r\n break\r\n }\r\n return o.next = 8, Object(s.h)(c.a.update({\r\n context: e,\r\n data: {\r\n options: i\r\n }\r\n }));\r\n case 8:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), at)\r\n }\r\n\r\n function Pt(e, t) {\r\n var n;\r\n return Object(u.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(s.c)(Ve.b, t);\r\n case 2:\r\n if (!((n = r.sent).length > 0)) {\r\n r.next = 6;\r\n break\r\n }\r\n return r.next = 6, Object(s.h)(c.a.update({\r\n context: e,\r\n data: {\r\n options: n\r\n }\r\n }));\r\n case 6:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), ct)\r\n }\r\n\r\n function Dt(e) {\r\n return Object(u.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n if (e.entryPoint !== d.G.RECORDINGS && e.entryPoint !== d.G.SCHEDULED_RECORDINGS && e.entryPoint !== d.G.PURCHASES && e.entryAssetMediaType !== d.f.LINEAR) {\r\n t.next = 2;\r\n break\r\n }\r\n return t.abrupt(\"return\", void 0);\r\n case 2:\r\n t.t0 = e.entryAssetMediaType, t.next = t.t0 === d.f.EPG ? 5 : 8;\r\n break;\r\n case 5:\r\n return t.next = 7, Object(s.c)(We.a.getProgram, e.entryAssetId);\r\n case 7:\r\n case 10:\r\n return t.abrupt(\"return\", t.sent);\r\n case 8:\r\n return t.next = 10, Object(s.c)(We.a.getMedia, e.entryAssetId);\r\n case 11:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), st)\r\n }\r\n\r\n function yt(e, t) {\r\n var n, r, a, c;\r\n return Object(u.a)().wrap((function(i) {\r\n for (;;) switch (i.prev = i.next) {\r\n case 0:\r\n return i.next = 2, Object(s.i)([Object(s.l)(Ge.b.SET_CURRENT_ASSET), Be.d(Be.b.CLEAR, e)]);\r\n case 2:\r\n if (r = i.sent, a = Object(l.a)(r, 1), !(c = a[0]) || (null === (n = c.meta.currentAsset) || void 0 === n ? void 0 : n.id) === t.id) {\r\n i.next = 8;\r\n break\r\n }\r\n return i.next = 8, Object(s.h)(Ot.request(e));\r\n case 8:\r\n case \"end\":\r\n return i.stop()\r\n }\r\n }), it)\r\n }\r\n\r\n function wt(e) {\r\n var t, n, r, a, i, o, l, b;\r\n return Object(u.a)().wrap((function(u) {\r\n for (;;) switch (u.prev = u.next) {\r\n case 0:\r\n if (u.t0 = e.meta.entryAsset, u.t0) {\r\n u.next = 5;\r\n break\r\n }\r\n return u.next = 4, Object(s.c)(Dt, e.meta);\r\n case 4:\r\n u.t0 = u.sent;\r\n case 5:\r\n if (a = u.t0) {\r\n u.next = 10;\r\n break\r\n }\r\n return u.next = 9, Object(s.h)(Ot.fail(e.meta, d.Zb.fromError(\"content not found\")));\r\n case 9:\r\n return u.abrupt(\"return\");\r\n case 10:\r\n return u.next = 12, Object(s.h)(Be.a.start(e.meta));\r\n case 12:\r\n if (!d.i.isChannel(a)) {\r\n u.next = 31;\r\n break\r\n }\r\n return n = a, u.next = 16, Object(s.c)(Tt, a.epgId);\r\n case 16:\r\n if (!(i = u.sent)) {\r\n u.next = 27;\r\n break\r\n }\r\n return t = i, u.next = 21, Object(s.c)(Pt, e.meta, i);\r\n case 21:\r\n return u.next = 23, Object(s.f)(Nt, e.meta, i);\r\n case 23:\r\n return u.next = 25, Object(s.k)(yt, e.meta, i);\r\n case 25:\r\n u.next = 29;\r\n break;\r\n case 27:\r\n return Object(s.h)(Ot.fail(e.meta, d.Zb.fromError(\"content not found\"))), u.abrupt(\"return\");\r\n case 29:\r\n u.next = 35;\r\n break;\r\n case 31:\r\n return t = a, u.next = 34, Object(s.c)(Rt, t);\r\n case 34:\r\n n = u.sent;\r\n case 35:\r\n if (!d.i.hasValidSeriesId(t)) {\r\n u.next = 46;\r\n break\r\n }\r\n return u.next = 38, Object(s.c)(vt, t, e.meta.entryPoint);\r\n case 38:\r\n if (!(r = u.sent)) {\r\n u.next = 46;\r\n break\r\n }\r\n return u.next = 42, Object(s.h)(c.a.update({\r\n context: e.meta,\r\n data: {\r\n seasonsData: r,\r\n seasons: St(r)\r\n }\r\n }));\r\n case 42:\r\n return u.next = 44, Object(s.c)(mt, e.meta, r, t);\r\n case 44:\r\n (o = u.sent) && (t = o);\r\n case 46:\r\n return u.next = 48, Object(s.h)(c.a.update({\r\n context: e.meta,\r\n data: {\r\n asset: t,\r\n relatedChannel: n\r\n }\r\n }));\r\n case 48:\r\n return u.next = 50, Object(s.c)(ht, t, e.meta.entryPoint, r);\r\n case 50:\r\n return l = u.sent, u.next = 53, Object(s.h)(c.a.update({\r\n context: e.meta,\r\n data: {\r\n clones: l\r\n }\r\n }));\r\n case 53:\r\n return u.next = 55, Object(s.c)(gt, l);\r\n case 55:\r\n return b = u.sent, u.next = 58, Object(s.h)(c.a.update({\r\n context: e.meta,\r\n data: {\r\n folders: b\r\n }\r\n }));\r\n case 58:\r\n return u.next = 60, Object(s.f)(Lt, e.meta, t, l, b, r);\r\n case 60:\r\n return u.next = 62, Object(s.f)(xt, e.meta, t, n);\r\n case 62:\r\n return u.next = 64, Object(s.f)(_t, e.meta, b);\r\n case 64:\r\n return u.next = 66, Object(s.h)(Ot.success(e.meta));\r\n case 66:\r\n case \"end\":\r\n return u.stop()\r\n }\r\n }), ot)\r\n }\r\n\r\n function Ut(e) {\r\n return Object(u.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(s.i)([Object(Ue.b)(wt, e), Be.d(Be.b.CLEAR, e.meta)]);\r\n case 2:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), ut)\r\n }\r\n\r\n function Mt() {\r\n return Object(u.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(s.b)([Object(s.n)(ye.REQUEST, Ut)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), lt)\r\n }\r\n var Ft = {};\r\n var Gt, Ht = Object(u.a)().mark(Wt),\r\n Bt = Object(u.a)().mark(Yt);\r\n ! function(e) {\r\n e.REQUEST = \"programInfo/clear\"\r\n }(Gt || (Gt = {}));\r\n var Vt = {\r\n request: {\r\n request: function(e) {\r\n return {\r\n type: Gt.REQUEST,\r\n meta: e\r\n }\r\n }\r\n }.request\r\n };\r\n\r\n function Wt(e) {\r\n return Object(u.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.next = 2, Object(s.h)(Be.a.clear(e.meta));\r\n case 2:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), Ht)\r\n }\r\n\r\n function Yt() {\r\n return Object(u.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(s.b)([Object(s.o)(Gt.REQUEST, Wt)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), Bt)\r\n }\r\n var Kt = n(71),\r\n Qt = n(212),\r\n qt = n(132),\r\n Zt = n(36),\r\n Xt = Object(u.a)().mark(Jt),\r\n zt = Object(u.a)().mark($t);\r\n\r\n function Jt(e, t) {\r\n var n, r;\r\n return Object(u.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 2, Object(s.j)(c.b.vodPrices, t);\r\n case 2:\r\n return n = a.sent, r = n.map((function(t) {\r\n return t.fileId === e.fileId && t.ppvModuleId === e.ppvModuleId ? Object(o.a)(Object(o.a)({}, t), {}, {\r\n status: d.sb.PURCHASED\r\n }) : t\r\n })), a.next = 6, Object(s.h)(c.a.update({\r\n context: t,\r\n data: {\r\n vodPrices: r\r\n }\r\n }));\r\n case 6:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), Xt)\r\n }\r\n\r\n function $t(e, t) {\r\n var n, r, a;\r\n return Object(u.a)().wrap((function(c) {\r\n for (;;) switch (c.prev = c.next) {\r\n case 0:\r\n if (!d.cb.isPurchaseOption(e)) {\r\n c.next = 14;\r\n break\r\n }\r\n return n = e.productPrice, r = e.ppvModule, c.next = 4, Object(s.c)(d.C.Transactions.purchase, r.id, n);\r\n case 4:\r\n if (a = c.sent) {\r\n c.next = 10;\r\n break\r\n }\r\n return c.next = 8, Object(s.c)(Jt, n, t);\r\n case 8:\r\n return c.next = 10, Object(s.h)(qt.a.refresh());\r\n case 10:\r\n return c.next = 12, Object(s.f)(Zt.c, e.format === d.K.MAIN_HD || e.format === d.K.MAIN_UHD ? d.b.RENT_HD : d.b.RENT_SD, e.asset, e.productPrice, e.purchaseOptionType === d.ub.BUY, a);\r\n case 12:\r\n if (!a) {\r\n c.next = 14;\r\n break\r\n }\r\n throw a;\r\n case 14:\r\n case \"end\":\r\n return c.stop()\r\n }\r\n }), zt)\r\n }\r\n var en, tn = Object(u.a)().mark(on),\r\n nn = Object(u.a)().mark(un),\r\n rn = Object(u.a)().mark(ln);\r\n ! function(e) {\r\n e.REQUEST = \"programInfo/runOption\", e.SUCCESS = \"programInfo/runOption/SUCCESS\", e.FAIL = \"programInfo/runOption/FAIL\"\r\n }(en || (en = {}));\r\n var an = {\r\n request: function(e, t) {\r\n return {\r\n type: en.REQUEST,\r\n meta: {\r\n context: e,\r\n option: t\r\n }\r\n }\r\n },\r\n success: function(e) {\r\n return {\r\n type: en.SUCCESS,\r\n meta: {\r\n context: e\r\n }\r\n }\r\n },\r\n fail: function(e, t) {\r\n return {\r\n type: en.FAIL,\r\n error: t,\r\n meta: {\r\n context: e\r\n }\r\n }\r\n }\r\n },\r\n cn = {\r\n request: an.request\r\n },\r\n sn = {\r\n isProcessing: function(e, t) {\r\n var n, r = Be.c(t);\r\n return !0 === (null === (n = e.programInfo.actions.runOption[r]) || void 0 === n ? void 0 : n.processing)\r\n },\r\n isProcessed: function(e, t) {\r\n var n, r = Be.c(t);\r\n return !0 === (null === (n = e.programInfo.actions.runOption[r]) || void 0 === n ? void 0 : n.processed)\r\n },\r\n getError: function(e, t) {\r\n var n, r = Be.c(t);\r\n return null === (n = e.programInfo.actions.runOption[r]) || void 0 === n ? void 0 : n.error\r\n }\r\n };\r\n\r\n function on(e) {\r\n var t, n, r, a, i;\r\n return Object(u.a)().wrap((function(o) {\r\n for (;;) switch (o.prev = o.next) {\r\n case 0:\r\n return o.next = 2, Object(s.j)(c.b.asset, e);\r\n case 2:\r\n return t = o.sent, o.next = 5, Object(s.j)(c.b.clones, e);\r\n case 5:\r\n return n = o.sent, o.next = 8, Object(s.j)(c.b.folders, e);\r\n case 8:\r\n return r = o.sent, o.next = 11, Object(s.j)(c.b.seasonsData, e);\r\n case 11:\r\n return a = o.sent, o.next = 14, Object(s.c)(Ve.c, e, t, n, r, a);\r\n case 14:\r\n return i = o.sent, o.next = 17, Object(s.h)(c.a.update({\r\n context: e,\r\n data: {\r\n options: i\r\n }\r\n }));\r\n case 17:\r\n case \"end\":\r\n return o.stop()\r\n }\r\n }), tn)\r\n }\r\n\r\n function un(e) {\r\n var t, n, r;\r\n return Object(u.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n t = e.meta, n = t.option, r = t.context, a.prev = 1, a.t0 = null === n || void 0 === n ? void 0 : n.type, a.next = a.t0 === d.g.WISHLIST ? 5 : a.t0 === d.g.RECORDING ? 8 : a.t0 === d.g.PURCHASE ? 11 : 14;\r\n break;\r\n case 5:\r\n return a.next = 7, Object(s.c)(Kt.c.toggleItem, n);\r\n case 7:\r\n case 10:\r\n case 13:\r\n case 14:\r\n return a.abrupt(\"break\", 15);\r\n case 8:\r\n return a.next = 10, Object(s.c)(Qt.a, n);\r\n case 11:\r\n return a.next = 13, Object(s.c)($t, n, r);\r\n case 15:\r\n return a.next = 17, Object(s.c)(on, r);\r\n case 17:\r\n return a.next = 19, Object(s.h)(an.success(r));\r\n case 19:\r\n a.next = 25;\r\n break;\r\n case 21:\r\n return a.prev = 21, a.t1 = a.catch(1), a.next = 25, Object(s.h)(an.fail(r, d.Zb.fromError(a.t1)));\r\n case 25:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), nn, null, [\r\n [1, 21]\r\n ])\r\n }\r\n\r\n function ln() {\r\n return Object(u.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(s.b)([Object(s.o)(en.REQUEST, un)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), rn)\r\n }\r\n var dn = {};\r\n var bn = Object(a.b)({\r\n loadInfo: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Ft,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case ye.REQUEST:\r\n var n = Be.c(t.meta);\r\n return Object(o.a)(Object(o.a)({}, e), {}, Object(i.a)({}, n, {\r\n processing: !0,\r\n processed: !1\r\n }));\r\n case ye.SUCCESS:\r\n var r = Be.c(t.meta);\r\n return Object(o.a)(Object(o.a)({}, e), {}, Object(i.a)({}, r, {\r\n processing: !1,\r\n processed: !0\r\n }));\r\n case ye.FAIL:\r\n var a = Be.c(t.meta);\r\n return Object(o.a)(Object(o.a)({}, e), {}, Object(i.a)({}, a, {\r\n processing: !1,\r\n processed: !0,\r\n error: t.error\r\n }));\r\n case Be.b.CLEAR:\r\n var c = Be.c(t.meta),\r\n s = Object(o.a)({}, e);\r\n return delete s[c], s;\r\n default:\r\n return e\r\n }\r\n },\r\n runOption: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : dn,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case en.REQUEST:\r\n var n = Be.c(t.meta.context);\r\n return Object(o.a)(Object(o.a)({}, e), {}, Object(i.a)({}, n, {\r\n processing: !0,\r\n processed: !1\r\n }));\r\n case en.SUCCESS:\r\n var r = Be.c(t.meta.context);\r\n return Object(o.a)(Object(o.a)({}, e), {}, Object(i.a)({}, r, {\r\n processing: !1,\r\n processed: !0\r\n }));\r\n case en.FAIL:\r\n var a = Be.c(t.meta.context);\r\n return Object(o.a)(Object(o.a)({}, e), {}, Object(i.a)({}, a, {\r\n processing: !1,\r\n processed: !0,\r\n error: t.error\r\n }));\r\n case Be.b.CLEAR:\r\n var c = Be.c(t.meta),\r\n s = Object(o.a)({}, e);\r\n return delete s[c], s;\r\n default:\r\n return e\r\n }\r\n }\r\n }),\r\n On = {\r\n loadInfo: jt,\r\n runOption: sn\r\n },\r\n fn = {\r\n loadInfo: ft,\r\n clear: Vt,\r\n runOption: cn\r\n },\r\n jn = [Object(s.c)(Mt), Object(s.c)(Yt), Object(s.c)(ln)],\r\n pn = n(139),\r\n En = n(181),\r\n Sn = Object(a.b)({\r\n options: pn.c,\r\n runOptions: En.c\r\n }),\r\n vn = [Object(s.c)(pn.d), Object(s.c)(En.d)],\r\n mn = n(158),\r\n hn = {\r\n data: c.b,\r\n actions: On\r\n },\r\n gn = (t.e = Object(a.b)({\r\n data: c.c,\r\n actions: bn,\r\n bar: Sn\r\n }), [].concat(Object(r.a)(jn), Object(r.a)(vn)))\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return i\r\n })), n.d(t, \"b\", (function() {\r\n return u\r\n })), n.d(t, \"c\", (function() {\r\n return d\r\n }));\r\n var r, a = n(6),\r\n c = n(4),\r\n s = n(41);\r\n ! function(e) {\r\n e.UPDATE = \"programInfo/data/UPDATE\"\r\n }(r || (r = {}));\r\n var i = {\r\n update: {\r\n update: function(e) {\r\n return {\r\n type: r.UPDATE,\r\n payload: e\r\n }\r\n }\r\n }.update\r\n },\r\n o = [],\r\n u = {\r\n asset: function(e, t) {\r\n var n, r = s.c(t);\r\n return null === (n = e.programInfo.data[r]) || void 0 === n ? void 0 : n.asset\r\n },\r\n clones: function(e, t) {\r\n var n, r = s.c(t);\r\n return (null === (n = e.programInfo.data[r]) || void 0 === n ? void 0 : n.clones) || o\r\n },\r\n relatedChannel: function(e, t) {\r\n var n, r = s.c(t);\r\n return null === (n = e.programInfo.data[r]) || void 0 === n ? void 0 : n.relatedChannel\r\n },\r\n nextPrograms: function(e, t) {\r\n var n, r = s.c(t);\r\n return (null === (n = e.programInfo.data[r]) || void 0 === n ? void 0 : n.nextPrograms) || o\r\n },\r\n options: function(e, t) {\r\n var n, r = s.c(t);\r\n return (null === (n = e.programInfo.data[r]) || void 0 === n ? void 0 : n.options) || o\r\n },\r\n related: function(e, t) {\r\n var n, r = s.c(t);\r\n return (null === (n = e.programInfo.data[r]) || void 0 === n ? void 0 : n.related) || o\r\n },\r\n foldersRelated: function(e, t) {\r\n var n, r = s.c(t);\r\n return (null === (n = e.programInfo.data[r]) || void 0 === n ? void 0 : n.foldersRelated) || o\r\n },\r\n seasons: function(e, t) {\r\n var n, r = s.c(t);\r\n return (null === (n = e.programInfo.data[r]) || void 0 === n ? void 0 : n.seasons) || o\r\n },\r\n seasonsData: function(e, t) {\r\n var n, r = s.c(t);\r\n return null === (n = e.programInfo.data[r]) || void 0 === n ? void 0 : n.seasonsData\r\n },\r\n folders: function(e, t) {\r\n var n, r = s.c(t);\r\n return (null === (n = e.programInfo.data[r]) || void 0 === n ? void 0 : n.folders) || o\r\n },\r\n vodPrices: function(e, t) {\r\n var n, r = s.c(t);\r\n return (null === (n = e.programInfo.data[r]) || void 0 === n ? void 0 : n.vodPrices) || o\r\n }\r\n },\r\n l = {};\r\n\r\n function d() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : l,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case s.b.START:\r\n var n = s.c(t.meta);\r\n return Object(c.a)(Object(c.a)({}, e), {}, Object(a.a)({}, n, {}));\r\n case r.UPDATE:\r\n var i = s.c(t.payload.context);\r\n return Object(c.a)(Object(c.a)({}, e), {}, Object(a.a)({}, i, Object(c.a)(Object(c.a)({}, e[i]), t.payload.data)));\r\n case s.b.CLEAR:\r\n var o = s.c(t.meta),\r\n u = Object(c.a)({}, e);\r\n return delete u[o], u;\r\n default:\r\n return e\r\n }\r\n }\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return o\r\n }));\r\n var r = n(5),\r\n a = n.n(r),\r\n c = n(42),\r\n s = n(9),\r\n i = n(113);\r\n\r\n function o() {\r\n var e = Object(s.b)(),\r\n t = Object(c.g)(),\r\n n = a.a.useCallback((function(n, r, a) {\r\n e(i.a.setState(n, r)), a ? t.push({\r\n pathname: n,\r\n hash: a\r\n }) : t.push(n)\r\n }), [e, t]),\r\n r = a.a.useCallback((function(n, r, a) {\r\n e(i.a.setState(n, r)), a ? t.replace({\r\n pathname: n,\r\n hash: a\r\n }) : t.replace(n)\r\n }), [e, t]);\r\n return a.a.useMemo((function() {\r\n return {\r\n push: n,\r\n replace: r,\r\n go: t.go,\r\n goBack: t.goBack\r\n }\r\n }), [n, r, t.go, t.goBack])\r\n }\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return r\r\n })), n.d(t, \"b\", (function() {\r\n return i\r\n }));\r\n n(5);\r\n var r, a = n(30),\r\n c = n(17),\r\n s = n(3);\r\n\r\n function i(e) {\r\n var t, n = e.bemBlock,\r\n i = e.bemModifier,\r\n o = e.buttonType,\r\n u = e.text,\r\n l = e.disabled,\r\n d = e.active,\r\n b = e.onClick,\r\n O = e.className,\r\n f = e.linkPath,\r\n j = void 0 === f ? \"\" : f,\r\n p = e.progressPercentage,\r\n E = e.linkReplace,\r\n S = void 0 !== E && E,\r\n v = e.onMouseOver,\r\n m = e.onMouseLeave,\r\n h = o === r.TAB,\r\n g = \"btn \".concat(h ? \"tab-btn\" : \"gradient-btn\"),\r\n I = \"\".concat(g, \" \").concat(null !== O && void 0 !== O ? O : \"\", \" \").concat(l ? \"disabled\" : \"\", \" \").concat(d ? \"active\" : \"\"),\r\n C = \"\".concat(n, \"_button___\").concat(i),\r\n x = \"\".concat(n, \"_buttonWrapper___\").concat(i),\r\n A = function() {\r\n b && b()\r\n };\r\n switch (o) {\r\n case r.ANCHOR:\r\n t = Object(s.jsx)(\"a\", {\r\n id: C,\r\n className: I,\r\n onClick: function() {\r\n return A()\r\n },\r\n children: Object(s.jsx)(\"span\", {\r\n children: u\r\n })\r\n });\r\n break;\r\n case r.BUTTON:\r\n case r.SUBMIT:\r\n t = Object(s.jsx)(\"button\", {\r\n id: C,\r\n type: o === r.SUBMIT ? \"submit\" : \"button\",\r\n className: I,\r\n disabled: l,\r\n onClick: function() {\r\n return A()\r\n },\r\n children: Object(s.jsx)(\"span\", {\r\n children: u\r\n })\r\n });\r\n break;\r\n case r.LI:\r\n t = Object(s.jsx)(\"li\", {\r\n id: C,\r\n className: I,\r\n onClick: function() {\r\n return A()\r\n },\r\n children: Object(s.jsx)(\"span\", {\r\n children: u\r\n })\r\n });\r\n break;\r\n case r.LINK:\r\n t = Object(s.jsx)(a.b, {\r\n id: C,\r\n className: I,\r\n to: j,\r\n onClick: function(e) {\r\n return l ? e.preventDefault() : void 0\r\n },\r\n replace: S,\r\n children: Object(s.jsx)(\"span\", {\r\n children: u\r\n })\r\n });\r\n break;\r\n case r.TAB:\r\n return Object(s.jsx)(\"a\", {\r\n id: C,\r\n className: I,\r\n onClick: function() {\r\n return A()\r\n },\r\n children: Object(s.jsx)(\"span\", {\r\n children: u\r\n })\r\n });\r\n default:\r\n return null\r\n }\r\n return Object(s.jsx)(s.Fragment, {\r\n children: o === r.LI ? t : Object(s.jsxs)(\"div\", {\r\n className: \"btn-wrapper\",\r\n onMouseOver: v,\r\n onMouseLeave: m,\r\n id: x,\r\n children: [t, p ? Object(s.jsx)(c.s, {\r\n percentage: p,\r\n isActive: !0,\r\n bottomRounded: !0,\r\n bemModifier: i\r\n }) : null]\r\n })\r\n })\r\n }! function(e) {\r\n e.ANCHOR = \"anchor\", e.BUTTON = \"button\", e.SUBMIT = \"submit\", e.LI = \"li\", e.LINK = \"link\", e.TAB = \"tab\"\r\n }(r || (r = {}))\r\n }, , , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return S\r\n }));\r\n var r = n(4),\r\n a = n(13),\r\n c = n(14),\r\n s = n(80),\r\n i = n(81),\r\n o = n(0),\r\n u = n(38),\r\n l = n(7),\r\n d = n(70),\r\n b = n(84),\r\n O = n(34),\r\n f = n(71),\r\n j = n(175),\r\n p = n(115),\r\n E = n(121),\r\n S = function(e) {\r\n Object(s.a)(n, e);\r\n var t = Object(i.a)(n);\r\n\r\n function n() {\r\n return Object(a.a)(this, n), t.apply(this, arguments)\r\n }\r\n return Object(c.a)(n, null, [{\r\n key: \"getBadgesListForRailAsset\",\r\n value: function(e, t, a) {\r\n for (var c = [], s = 0; s < t.length; s += 1)\r\n for (var i = t[s], o = 0; o < i.length; o += 1) {\r\n var u = n.determineBadge(i[o], e, a);\r\n if (u) {\r\n c.push(u);\r\n break\r\n }\r\n }\r\n return Object(r.a)(Object(r.a)({}, e), {}, {\r\n badges: c\r\n })\r\n }\r\n }, {\r\n key: \"getAssetsWithBadgesListFromRail\",\r\n value: function(e, t, r) {\r\n var a = [];\r\n return e.forEach((function(e) {\r\n return a.push(n.getBadgesListForRailAsset(e, t, r))\r\n })), a\r\n }\r\n }, {\r\n key: \"determineBadge\",\r\n value: function(e, t, r) {\r\n switch (e) {\r\n case o.l.LOCK:\r\n return n.determineLockBadge(t);\r\n case o.l.PLAY:\r\n return n.determinePlayBadge(t, r);\r\n case o.l.PURCHASE:\r\n return n.determinePurchaseBadge(t);\r\n case o.l.SERIES_SCHEDULED_RECORDING:\r\n case o.l.SERIES_RECORDING:\r\n case o.l.LIVE_SERIES_RECORDING:\r\n return n.determineSeriesRecordingBadge(t);\r\n case o.l.SINGLE_SCHEDULED_RECORDING:\r\n case o.l.SINGLE_RECORDING:\r\n case o.l.LIVE_RECORDING:\r\n return n.determineSingleRecordingBadge(t);\r\n case o.l.EXPIRY_CLOCK:\r\n return n.determineExpiryClockBadge(t);\r\n case o.l.PROTECTED_RECORDING:\r\n return n.determineProtectedRecordingBadge(t);\r\n case o.l.WISHLIST_ON:\r\n var a = n.determineWishlistBadge(t);\r\n return a.type === o.l.WISHLIST_ON ? a : void 0;\r\n case o.l.AIRS_ON:\r\n return n.determineAirsOnBadge(t);\r\n default:\r\n return\r\n }\r\n }\r\n }, {\r\n key: \"determineLockBadge\",\r\n value: function(e) {\r\n if (d.a.UI.getAssetParentalState(e) === o.hb.PIN) return {\r\n type: o.l.LOCK,\r\n icon: o.T.LOCK,\r\n label: o.jc[\"badge.rails.lock\"]\r\n }\r\n }\r\n }, {\r\n key: \"handleEpgForDeterminePlayBadge\",\r\n value: function(e, t) {\r\n var r = [],\r\n a = O.d.getRecordings(Object(u.a)().getState()).find((function(t) {\r\n return t.internalId === e.internalId\r\n }));\r\n if (a && o.zb.getRecordingStatus(a) === o.wb.COMPLETED) {\r\n r.push(o.jc.formatString(o.jc[\"badge.rails.play.recorded\"], n.toTimeFormat(1e3 * o.Pb.toUnixEpoch(a.actualStartTime))).toString());\r\n var c = n.getExpiringInLabel(a, o.jc[\"badge.rails.play.expiresIn\"]);\r\n c && r.push(c)\r\n } else if (o.Qb.getRelativeTime(e) === o.Db.PAST && o.v.isPlaybackAllowedForCatchupAsset(e)) {\r\n r.push(o.jc.formatString(o.jc[\"badge.rails.play.aired\"], n.toTimeFormat(1e3 * o.Pb.toUnixEpoch(e.startDate))).toString());\r\n var s = n.getExpiringInLabel(e, o.jc[\"badge.rails.play.expiresIn\"]);\r\n s && r.push(s)\r\n } else o.Qb.getRelativeTime(e) === o.Db.LIVE && o.v.isPlaybackAllowedForLiveAsset(e) && (o.v.isResartAllowedForEpgAsset(e) ? r.push(o.jc[\"badge.rails.play.restartAvailable\"]) : r.push(o.jc[\"badge.rails.play.airingNow\"]), t !== o.G.SEASONS && r.push(o.jc.formatString(o.jc[\"badge.rails.play.remainingTime\"], n.getRemainingTimeLabel(o.Pb.diff(o.Pb.now(), e.endDate))).toString()));\r\n return r\r\n }\r\n }, {\r\n key: \"handleRecordingForDeterminePlayBadge\",\r\n value: function(e) {\r\n var t = [];\r\n t.push(o.jc.formatString(o.jc[\"badge.rails.play.recorded\"], n.toTimeFormat(1e3 * o.Pb.toUnixEpoch(e.actualStartTime))).toString());\r\n var r = n.getExpiringInLabel(e, o.jc[\"badge.rails.play.expiresIn\"]);\r\n return r && t.push(r), t\r\n }\r\n }, {\r\n key: \"handleFolderForDeterminePlayBadge\",\r\n value: function(e) {\r\n var t = [],\r\n r = n.getAssetEntitled(e);\r\n if (r && Object(o.ec)(r) && o.Pb.isAfterNow(r.endDate))\r\n if (Object(o.gc)(r))\r\n if (t.push(o.jc[\"badge.rails.play.subscription.subscribed\"]), r.isRenewable) t.push(o.jc[\"badge.rails.play.subscription.renewsMonthly\"]);\r\n else {\r\n var a = n.getExpiringInLabel(e, o.jc[\"badge.rails.play.expiresIn\"]);\r\n a && t.push(a)\r\n } else if (Object(o.dc)(r))\r\n if (n.isEntitlementRented(r)) {\r\n var c = n.getExpiringInLabel(e, o.jc[\"badge.rails.play.expiresIn\"]);\r\n c && t.push(c)\r\n } else t.push(o.jc[\"badge.rails.play.boxset.purchased\"]);\r\n return t\r\n }\r\n }, {\r\n key: \"handleVodForDeterminePlayBadge\",\r\n value: function(e) {\r\n var t = [],\r\n r = n.getAssetEntitled(e);\r\n if (r && Object(o.ec)(r) && o.Pb.isAfterNow(r.endDate))\r\n if (n.isEntitlementRented(r)) {\r\n var a = n.getExpiringInLabel(e, o.jc[\"badge.rails.play.expiresIn\"]);\r\n a && t.push(a)\r\n } else t.push(o.jc[\"badge.rails.play.tvod.purchased\"]);\r\n return t\r\n }\r\n }, {\r\n key: \"determinePlayBadge\",\r\n value: function(e, t) {\r\n if (!(o.i.isSeries(e) || o.i.isFolder(e) && e.folderType === o.L.SIMPLE) && n.getAssetEntitled(e)) {\r\n var r = [];\r\n if (o.i.isEpg(e) ? r = n.handleEpgForDeterminePlayBadge(e, t) : o.i.isRecording(e) && o.zb.getRecordingStatus(e) === o.wb.COMPLETED ? r = n.handleRecordingForDeterminePlayBadge(e) : o.i.isFolder(e) ? r = n.handleFolderForDeterminePlayBadge(e) : o.i.isVod(e) && o.v.isPlaybackAllowedForVodAsset(e) && (r = n.handleVodForDeterminePlayBadge(e)), r.length > 0) return {\r\n type: o.l.PLAY,\r\n icon: o.T.PLAY_CIRCLE,\r\n label: r\r\n }\r\n }\r\n }\r\n }, {\r\n key: \"determinePurchaseBadge\",\r\n value: function(e) {\r\n var t = [];\r\n if (n.isPurchasedBadgeEnabled() && !n.getAssetEntitled(e) && (o.i.isVod(e) && n.isPurchasedBadgeEnabledForTVOD() ? t.push(o.jc[\"badge.rails.purchased.tvod.availableToPurchase\"]) : o.i.isFolder(e) && (e.folderType === o.L.SUBSCRIPTION && n.isPurchasedBadgeEnabledForSVOD() ? t.push(o.jc[\"badge.rails.purchased.subscription.availableToSubscribe\"]) : e.folderType === o.L.BUNDLE && n.isPurchasedBadgeEnabledForBoxset() && t.push(o.jc[\"badge.rails.purchased.boxset.availableToPurchase\"]))), t.length > 0) return {\r\n type: o.l.PURCHASE,\r\n icon: n.getCurrencyIcon(),\r\n label: t\r\n }\r\n }\r\n }, {\r\n key: \"determineSeriesRecordingBadge\",\r\n value: function(e) {\r\n if (o.i.isTvAsset(e) && b.d.getRecordings(Object(u.a)().getState()).find((function(t) {\r\n return t.seriesId === e.seriesId\r\n }))) {\r\n var t = O.d.getRecordings(Object(u.a)().getState()).find((function(t) {\r\n return t.internalId === e.internalId\r\n }));\r\n if (t) {\r\n if (o.zb.getRecordingStatus(t) === o.wb.ON_GOING) return {\r\n type: o.l.LIVE_SERIES_RECORDING,\r\n icon: o.T.RECORDING_SERIES,\r\n color: p.a.brand,\r\n label: [o.jc[\"badge.rails.liveSeriesRecording.recordingNow\"], o.jc.formatString(o.jc[\"badge.rails.liveSeriesRecording.remainingTime\"], n.getRemainingTimeLabel(o.Pb.diff(o.Pb.now(), t.actualEndTime))).toString()]\r\n };\r\n if (o.zb.getRecordingStatus(t) === o.wb.SCHEDULED) return {\r\n type: o.l.SERIES_SCHEDULED_RECORDING,\r\n icon: o.T.RECORDING_SERIES_SCHEDULED,\r\n label: [o.jc[\"badge.rails.scheduledSeriesRecording.scheduledSeries\"], o.Pb.toBadgeDateTimeFormat(1e3 * o.Pb.toUnixEpoch(t.startDate))]\r\n }\r\n }\r\n }\r\n }\r\n }, {\r\n key: \"determineSingleRecordingBadge\",\r\n value: function(e) {\r\n if (o.i.isTvAsset(e)) {\r\n var t = O.d.getRecordings(Object(u.a)().getState()).find((function(t) {\r\n return t.internalId === e.internalId\r\n }));\r\n if (t) {\r\n if (o.zb.getRecordingStatus(t) === o.wb.ON_GOING) return {\r\n type: o.l.LIVE_RECORDING,\r\n icon: o.T.RECORDING_SINGLE,\r\n color: p.a.brand,\r\n label: [o.jc[\"badge.rails.liveRecording.recordingNow\"], o.jc.formatString(o.jc[\"badge.rails.liveRecording.remainingTime\"], n.getRemainingTimeLabel(o.Pb.diff(o.Pb.now(), t.actualEndTime))).toString()]\r\n };\r\n if (o.zb.getRecordingStatus(t) === o.wb.SCHEDULED) return {\r\n type: o.l.SINGLE_SCHEDULED_RECORDING,\r\n icon: o.T.RECORDING_SINGLE_SCHEDULED,\r\n label: [o.jc[\"badge.rails.scheduledRecording.scheduledRecording\"], o.Pb.toBadgeDateTimeFormat(1e3 * o.Pb.toUnixEpoch(t.startDate))]\r\n }\r\n }\r\n }\r\n }\r\n }, {\r\n key: \"determineExpiryClockBadge\",\r\n value: function(e) {\r\n var t = E.a.getAssetEntitled(e);\r\n if (t) {\r\n if (o.i.isRecording(e)) {\r\n var n = E.a.getExpiringInLabel(e, o.jc[\"badge.pi.play.expiresIn\"]);\r\n if (n) return E.a.buildBadge(o.l.EXPIRY_CLOCK, n)\r\n }\r\n if (o.i.isVod(e) && Object(o.ec)(t) && E.a.isEntitlementRented(t)) {\r\n var r = E.a.getExpiringInLabel(e, o.jc[\"badge.pi.play.expiresIn\"]);\r\n if (r) return E.a.buildBadge(o.l.EXPIRY_CLOCK, r)\r\n }\r\n }\r\n }\r\n }, {\r\n key: \"determineWishlistBadge\",\r\n value: function(e) {\r\n return f.d.isAssetWishlisted(Object(u.a)().getState(), e) ? E.a.buildBadge(o.l.WISHLIST_ON, o.jc[\"badge.pi.wishlist.addedToWishlist\"]) : E.a.buildBadge(o.l.WISHLIST_OFF, o.jc[\"badge.pi.wishlist.addToWishlist\"])\r\n }\r\n }, {\r\n key: \"determineProtectedRecordingBadge\",\r\n value: function(e) {\r\n if (o.i.isRecording(e) && e.isAssetProtected) return E.a.buildBadge(o.l.PROTECTED_RECORDING, o.jc[\"badge.pi.protectedRecording.recordingProtected\"])\r\n }\r\n }, {\r\n key: \"determineAirsOnBadge\",\r\n value: function(e) {\r\n if (o.i.isTvAsset(e) && (o.Qb.getRelativeTime(e) === o.Db.LIVE || o.Qb.getRelativeTime(e) === o.Db.FUTURE)) {\r\n var t = e.startDate && o.Pb.isAfterNow(e.startDate) && o.Pb.toEpoch(e.startDate),\r\n n = t ? \"\".concat(e.startTime || \"\", \" \").concat(o.Pb.getShortWeekDay(t), \" \").concat(o.Pb.getDay(t), \" \").concat(o.Pb.getShortMonth(t)) : \"-\",\r\n r = t ? l.a.formatString(l.a.badgesProgramInfoAirsOn, n).toString() : o.jc[\"badge.pi.play.airingNow\"].toString();\r\n return {\r\n type: o.l.AIRS_ON,\r\n icon: o.T.AIRS_ON,\r\n label: r\r\n }\r\n }\r\n }\r\n }]), n\r\n }(j.a)\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"b\", (function() {\r\n return r\r\n })), n.d(t, \"a\", (function() {\r\n return S\r\n })), n.d(t, \"f\", (function() {\r\n return m\r\n })), n.d(t, \"e\", (function() {\r\n return h\r\n })), n.d(t, \"c\", (function() {\r\n return g\r\n })), n.d(t, \"d\", (function() {\r\n return C\r\n })), n.d(t, \"g\", (function() {\r\n return _\r\n }));\r\n var r, a = n(8),\r\n c = n(15),\r\n s = n(2),\r\n i = n(4),\r\n o = n(1),\r\n u = n(0),\r\n l = n(85),\r\n d = n(90),\r\n b = n(26),\r\n O = Object(s.a)().mark(I),\r\n f = Object(s.a)().mark(x),\r\n j = Object(s.a)().mark(A),\r\n p = Object(s.a)().mark(_);\r\n ! function(e) {\r\n e.REQUEST = \"entitlements/assets/entitledAssets/REQUEST\", e.SUCCESS = \"entitlements/assets/entitledAssets/SUCCESS\", e.FAIL = \"entitlements/assets/entitledAssets/FAIL\"\r\n }(r || (r = {}));\r\n var E = {\r\n request: function() {\r\n return {\r\n type: r.REQUEST\r\n }\r\n },\r\n success: function(e) {\r\n return {\r\n type: r.SUCCESS,\r\n payload: e\r\n }\r\n },\r\n fail: function(e) {\r\n return {\r\n type: r.FAIL,\r\n error: e\r\n }\r\n }\r\n },\r\n S = {\r\n getEntitlementsAssets: E.request\r\n },\r\n v = {\r\n data: [],\r\n processing: !1,\r\n processed: !1\r\n };\r\n\r\n function m() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : v,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case r.REQUEST:\r\n return Object(i.a)(Object(i.a)({}, e), {}, {\r\n processing: !0,\r\n processed: !1,\r\n error: void 0\r\n });\r\n case r.SUCCESS:\r\n return {\r\n data: t.payload,\r\n processing: !1,\r\n processed: !0\r\n };\r\n case r.FAIL:\r\n return {\r\n data: v.data,\r\n processing: !1,\r\n processed: !0,\r\n error: t.error\r\n };\r\n default:\r\n return e\r\n }\r\n }\r\n var h = {\r\n isProcessing: function(e) {\r\n return e.entitlements.assets.entitledAssets.processing\r\n },\r\n isProcessed: function(e) {\r\n return e.entitlements.assets.entitledAssets.processed\r\n },\r\n getAssets: function(e) {\r\n return e.entitlements.assets.entitledAssets.data\r\n }\r\n },\r\n g = \"ENTITLEMENTS_ASSETS_COLLECTION\";\r\n\r\n function I() {\r\n var e, t, n, r, a, c;\r\n return Object(s.a)().wrap((function(s) {\r\n for (;;) switch (s.prev = s.next) {\r\n case 0:\r\n return s.next = 2, Object(o.j)(d.d.getCollectionEntitlements) || [];\r\n case 2:\r\n if (!((e = s.sent).length > 0)) {\r\n s.next = 16;\r\n break\r\n }\r\n return t = e.map((function(e) {\r\n return e.id\r\n })), n = u.Gb.createFoldersFilter(t, \"collectionId\"), s.next = 8, Object(o.j)(u.C.Dms.Selectors.getFilesFormat);\r\n case 8:\r\n return r = s.sent, s.next = 11, Object(o.j)(u.C.Dms.Selectors.getParentalControl);\r\n case 11:\r\n return a = s.sent, s.next = 14, u.C.Pagination.callCompletedPaginatedApi(g, u.t.DEFAULT_API_PAGE_SIZE, u.j.assetSearch, n, r, a, [u.f.FOLDER], void 0, u.R[b.a.env.CHANNELS_UNSUBSCRIBED_VISIBILITY]);\r\n case 14:\r\n return c = s.sent, s.abrupt(\"return\", c);\r\n case 16:\r\n return s.abrupt(\"return\", []);\r\n case 17:\r\n case \"end\":\r\n return s.stop()\r\n }\r\n }), O)\r\n }\r\n var C = \"ENTITLEMENTS_ASSETS_PPV\";\r\n\r\n function x() {\r\n var e, t, n, r, a, c, i;\r\n return Object(s.a)().wrap((function(s) {\r\n for (;;) switch (s.prev = s.next) {\r\n case 0:\r\n return s.next = 2, Object(o.j)(l.d.getPpvEntitlements);\r\n case 2:\r\n if (s.t0 = s.sent, s.t0) {\r\n s.next = 5;\r\n break\r\n }\r\n s.t0 = [];\r\n case 5:\r\n if (!((e = s.t0).length > 0)) {\r\n s.next = 20;\r\n break\r\n }\r\n return t = e.map((function(e) {\r\n return e.mediaId\r\n })), n = u.Gb.createPurchasesAndRentalsFilter(t), s.next = 11, Object(o.j)(u.C.Dms.Selectors.getFilesFormat);\r\n case 11:\r\n return r = s.sent, a = [u.f.MOVIE, u.f.EPISODE], s.next = 15, Object(o.j)(u.C.Dms.Selectors.getParentalControl);\r\n case 15:\r\n return c = s.sent, s.next = 18, u.C.Pagination.callCompletedPaginatedApi(C, u.t.DEFAULT_API_PAGE_SIZE, u.j.assetSearch, n, r, c, a, void 0, u.R[b.a.env.CHANNELS_UNSUBSCRIBED_VISIBILITY]);\r\n case 18:\r\n return i = s.sent, s.abrupt(\"return\", i);\r\n case 20:\r\n return s.abrupt(\"return\", []);\r\n case 21:\r\n case \"end\":\r\n return s.stop()\r\n }\r\n }), f)\r\n }\r\n\r\n function A() {\r\n var e, t, n, r, i, b, O, f, p;\r\n return Object(s.a)().wrap((function(s) {\r\n for (;;) switch (s.prev = s.next) {\r\n case 0:\r\n return s.prev = 0, s.next = 3, Object(o.j)(d.d.getCollectionEntitlements) || [];\r\n case 3:\r\n return e = s.sent, s.next = 6, Object(o.j)(l.d.getPpvEntitlements);\r\n case 6:\r\n if (s.t0 = s.sent, s.t0) {\r\n s.next = 9;\r\n break\r\n }\r\n s.t0 = [];\r\n case 9:\r\n return t = s.t0, n = [].concat(Object(c.a)(e), Object(c.a)(t)).sort((function(e, t) {\r\n return u.Pb.compare(t.purchaseDate, e.purchaseDate)\r\n })), r = new Map, i = [], s.next = 15, Object(o.b)([Object(o.c)(I), Object(o.c)(x)]);\r\n case 15:\r\n return b = s.sent, O = Object(a.a)(b, 2), f = O[0], p = O[1], [].concat(Object(c.a)(f), Object(c.a)(p)).forEach((function(e) {\r\n u.i.isEpisode(e) || u.i.isMovie(e) ? r.set(\"P:\".concat(e.id), e) : u.i.isFolder(e) && e.productId && r.set(\"C:\".concat(e.productId), e)\r\n })), n.forEach((function(e) {\r\n var t;\r\n if (Object(u.fc)(e) ? t = \"P:\".concat(e.mediaId) : Object(u.dc)(e) && (t = \"C:\".concat(e.id)), t) {\r\n var n = r.get(t);\r\n n && (i.push(n), r.delete(t))\r\n }\r\n })), s.next = 23, Object(o.h)(E.success(i));\r\n case 23:\r\n s.next = 29;\r\n break;\r\n case 25:\r\n return s.prev = 25, s.t1 = s.catch(0), s.next = 29, Object(o.h)(E.fail(u.Zb.fromError(s.t1)));\r\n case 29:\r\n case \"end\":\r\n return s.stop()\r\n }\r\n }), j, null, [\r\n [0, 25]\r\n ])\r\n }\r\n\r\n function _() {\r\n return Object(s.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(o.b)([Object(o.o)(r.REQUEST, A)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), p)\r\n }\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return he\r\n })), n.d(t, \"b\", (function() {\r\n return ge\r\n })), n.d(t, \"d\", (function() {\r\n return Ce\r\n }));\r\n var r, a = n(2),\r\n c = n(8),\r\n s = n(4),\r\n i = n(33),\r\n o = n(1),\r\n u = n(0),\r\n l = \"noEntryPoint\";\r\n ! function(e) {\r\n e.INIT = \"app/folderInfo/context/INIT\", e.CLEAR = \"app/folderInfo/context/CLEAR\"\r\n }(r || (r = {}));\r\n var d = {\r\n init: function(e, t, n) {\r\n return {\r\n type: r.INIT,\r\n meta: {\r\n ctx: e,\r\n parentCtx: t,\r\n channelId: n\r\n }\r\n }\r\n },\r\n clear: function(e) {\r\n return {\r\n type: r.CLEAR,\r\n meta: e\r\n }\r\n }\r\n };\r\n\r\n function b(e) {\r\n return \"\".concat(u.f.FOLDER, \"/\").concat(e.entryAssetId, \"/\").concat(e.entryPoint || l)\r\n }\r\n\r\n function O(e, t) {\r\n return Object(o.l)((function(n) {\r\n return n.type === e && (n.meta === t || b(n.meta) === b(t))\r\n }))\r\n }\r\n var f, j = n(6),\r\n p = n(137),\r\n E = Object(a.a)().mark(I),\r\n S = Object(a.a)().mark(C);\r\n ! function(e) {\r\n e.INIT = \"app/folderInto/folder/INIT\", e.SUCCESS = \"app/folderInto/folder/SUCCESS\", e.ERROR = \"app/folderInto/folder/ERROR\"\r\n }(f || (f = {}));\r\n var v = {\r\n init: function(e) {\r\n return {\r\n type: f.INIT,\r\n meta: e\r\n }\r\n },\r\n success: function(e, t) {\r\n return {\r\n type: f.SUCCESS,\r\n meta: e,\r\n payload: t\r\n }\r\n },\r\n error: function(e, t) {\r\n return {\r\n type: f.ERROR,\r\n error: t,\r\n meta: e\r\n }\r\n }\r\n },\r\n m = {\r\n init: v.init\r\n },\r\n h = {};\r\n var g = {\r\n getAsset: function(e, t) {\r\n var n;\r\n return null === (n = e.folderInfo.folder[b(t)]) || void 0 === n ? void 0 : n.asset\r\n },\r\n isProcessing: function(e, t) {\r\n var n;\r\n return !0 === (null === (n = e.folderInfo.folder[b(t)]) || void 0 === n ? void 0 : n.processing)\r\n },\r\n isProcessed: function(e, t) {\r\n var n;\r\n return !0 === (null === (n = e.folderInfo.folder[b(t)]) || void 0 === n ? void 0 : n.processed)\r\n },\r\n error: function(e, t) {\r\n var n;\r\n return null === (n = e.folderInfo.folder[b(t)]) || void 0 === n ? void 0 : n.error\r\n }\r\n };\r\n\r\n function I(e) {\r\n var t, n, r;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return t = e.meta, n = t.entryAssetId, a.prev = 2, a.next = 5, Object(o.c)(p.a.getMedia, n);\r\n case 5:\r\n if ((r = a.sent) && u.i.isFolder(r)) {\r\n a.next = 10;\r\n break\r\n }\r\n return a.next = 9, Object(o.h)(v.error(t, u.Zb.fromError(\"content not found\")));\r\n case 9:\r\n return a.abrupt(\"return\");\r\n case 10:\r\n return a.next = 12, Object(o.h)(v.success(t, r));\r\n case 12:\r\n a.next = 18;\r\n break;\r\n case 14:\r\n return a.prev = 14, a.t0 = a.catch(2), a.next = 18, Object(o.h)(v.error(t, u.Zb.fromError(a.t0)));\r\n case 18:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), E, null, [\r\n [2, 14]\r\n ])\r\n }\r\n\r\n function C() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(o.b)([Object(o.o)(f.INIT, I)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), S)\r\n }\r\n var x, A = n(15),\r\n _ = n(76),\r\n R = n(23),\r\n T = n(66),\r\n N = n(49),\r\n k = Object(a.a)().mark(V),\r\n L = Object(a.a)().mark(W),\r\n P = Object(a.a)().mark(Y),\r\n D = Object(a.a)().mark(K),\r\n y = Object(a.a)().mark(Q),\r\n w = N.a.ONDEMAND.RAILS,\r\n U = 1;\r\n ! function(e) {\r\n e.INIT = \"app/folderInto/rails/INIT\", e.INIT_RAIL = \"app/folderInto/rails/INIT_RAIL\", e.INIT_RAILS_DONE = \"app/folderInto/rails/INIT_RAILS_DONE\", e.SUCCESS = \"app/folderInto/rails/SUCCESS\", e.LOAD_MORE_ASSETS = \"app/folderInto/rails/LOAD_MORE_ASSETS\", e.ERROR = \"app/folderInto/rails/ERROR\"\r\n }(x || (x = {}));\r\n var M = {\r\n init: function(e, t, n) {\r\n return {\r\n type: x.INIT,\r\n meta: {\r\n context: e,\r\n parentContext: t,\r\n channelId: n\r\n }\r\n }\r\n },\r\n initRail: function(e, t, n) {\r\n return {\r\n type: x.INIT_RAIL,\r\n meta: {\r\n context: e,\r\n channelId: t\r\n },\r\n payload: n\r\n }\r\n },\r\n initRailsDone: function(e) {\r\n return {\r\n type: x.INIT_RAILS_DONE,\r\n meta: e\r\n }\r\n },\r\n loadMoreAssets: function(e, t, n) {\r\n return {\r\n type: x.LOAD_MORE_ASSETS,\r\n meta: {\r\n context: e,\r\n channelId: t,\r\n nextPageIndex: n\r\n }\r\n }\r\n },\r\n success: function(e, t, n) {\r\n return {\r\n type: x.SUCCESS,\r\n meta: {\r\n context: e,\r\n channelId: t\r\n },\r\n payload: n\r\n }\r\n },\r\n error: function(e, t, n) {\r\n return {\r\n type: x.ERROR,\r\n error: n,\r\n meta: {\r\n context: e,\r\n channelId: t\r\n }\r\n }\r\n }\r\n },\r\n F = {\r\n init: M.init,\r\n loadMoreAssets: M.loadMoreAssets\r\n },\r\n G = {};\r\n var H = {\r\n getRails: function(e, t) {\r\n var n;\r\n return (null === (n = e.folderInfo.rails[b(t)]) || void 0 === n ? void 0 : n.data) || []\r\n },\r\n getRail: function(e, t, n) {\r\n var r, a;\r\n return null === (r = e.folderInfo.rails[b(t)]) || void 0 === r || null === (a = r.data) || void 0 === a ? void 0 : a.find((function(e) {\r\n return e.channelId === n\r\n }))\r\n },\r\n isProcessed: function(e, t) {\r\n var n;\r\n return !0 === (null === (n = e.folderInfo.rails[b(t)]) || void 0 === n ? void 0 : n.processed)\r\n },\r\n isProcessing: function(e, t) {\r\n var n;\r\n return !0 === (null === (n = e.folderInfo.rails[b(t)]) || void 0 === n ? void 0 : n.processing)\r\n }\r\n };\r\n\r\n function B(e, t) {\r\n return Object(o.l)((function(n) {\r\n return n.type === e && n.meta.id === t\r\n }))\r\n }\r\n\r\n function V(e, t, n) {\r\n var r, s, i, l, d, b, O, f, j, p;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return s = (r = n || {}).gridMode, i = r.nextPageIndex, l = void 0 === i ? 0 : i, d = s ? R.a.ASSETS_PER_GRID_PAGE : R.a.MAX_ASSETS_PER_RAIL + U, a.next = 4, Object(o.h)(_.b.loadAssets(t, l, d));\r\n case 4:\r\n return a.next = 6, Object(o.i)([B(_.a.SUCCESS, t), B(_.a.FAIL, t)]);\r\n case 6:\r\n if (b = a.sent, O = Object(c.a)(b, 2), !(f = O[1])) {\r\n a.next = 13;\r\n break\r\n }\r\n return a.next = 12, Object(o.h)(M.error(e, t, u.Zb.fromError(f)));\r\n case 12:\r\n return a.abrupt(\"return\");\r\n case 13:\r\n return a.next = 15, Object(o.j)(_.c.getAssets, t);\r\n case 15:\r\n if (a.t0 = a.sent, a.t0) {\r\n a.next = 18;\r\n break\r\n }\r\n a.t0 = [];\r\n case 18:\r\n return j = a.t0, a.next = 21, Object(o.c)(T.a.getAssetsWithBadgesListFromRail, j, w);\r\n case 21:\r\n return p = a.sent, a.next = 24, Object(o.h)(M.success(e, t, p || []));\r\n case 24:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), k)\r\n }\r\n\r\n function W(e, t, n) {\r\n var r;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, u.C.Api.callApi(u.E.getDynamicChannel, t);\r\n case 3:\r\n if (r = a.sent) {\r\n a.next = 6;\r\n break\r\n }\r\n return a.abrupt(\"return\");\r\n case 6:\r\n return a.next = 8, Object(o.h)(M.initRail(e, t, {\r\n id: r.id,\r\n title: r.name,\r\n channelId: t,\r\n assets: []\r\n }));\r\n case 8:\r\n return a.next = 10, Object(o.f)(V, e, t, {\r\n gridMode: n\r\n });\r\n case 10:\r\n a.next = 16;\r\n break;\r\n case 12:\r\n return a.prev = 12, a.t0 = a.catch(0), a.next = 16, Object(o.h)(M.error(e, t, u.Zb.fromError(a.t0)));\r\n case 16:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), L, null, [\r\n [0, 12]\r\n ])\r\n }\r\n\r\n function Y(e) {\r\n var t, n, r, c;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return t = e.meta, n = t.context, r = t.channelId, c = t.nextPageIndex, a.next = 3, Object(o.c)(V, n, r, {\r\n gridMode: !0,\r\n nextPageIndex: c\r\n });\r\n case 3:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), P)\r\n }\r\n\r\n function K(e) {\r\n var t, n, r, c, s, i, u;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n if (t = e.meta, n = t.context, !(r = t.channelId)) {\r\n a.next = 7;\r\n break\r\n }\r\n return a.next = 4, Object(o.c)(W, n, r, !0);\r\n case 4:\r\n return a.next = 6, Object(o.h)(M.initRailsDone(n));\r\n case 6:\r\n return a.abrupt(\"return\");\r\n case 7:\r\n c = 0;\r\n case 8:\r\n if (!(c < ((null === (s = n.entryAsset) || void 0 === s ? void 0 : s.channels) || []).length)) {\r\n a.next = 16;\r\n break\r\n }\r\n if (!(u = null === (i = n.entryAsset) || void 0 === i ? void 0 : i.channels[c])) {\r\n a.next = 13;\r\n break\r\n }\r\n return a.next = 13, Object(o.c)(W, n, u);\r\n case 13:\r\n c += 1, a.next = 8;\r\n break;\r\n case 16:\r\n return a.next = 18, Object(o.h)(M.initRailsDone(n));\r\n case 18:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), D)\r\n }\r\n\r\n function Q() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(o.b)([Object(o.o)(x.INIT, K), Object(o.o)(x.LOAD_MORE_ASSETS, Y)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), y)\r\n }\r\n var q, Z = n(101),\r\n X = n(7),\r\n z = n(176),\r\n J = Object(a.a)().mark(ae),\r\n $ = Object(a.a)().mark(ce);\r\n ! function(e) {\r\n e.REQUEST = \"app/folderInfo/options/REQUEST\", e.SUCCESS = \"app/folderInfo/options/SUCCESS\"\r\n }(q || (q = {}));\r\n var ee = {\r\n request: function(e) {\r\n return {\r\n type: q.REQUEST,\r\n meta: e\r\n }\r\n },\r\n success: function(e) {\r\n return {\r\n type: q.SUCCESS,\r\n payload: e\r\n }\r\n }\r\n },\r\n te = {\r\n request: ee.request\r\n },\r\n ne = {\r\n data: []\r\n };\r\n\r\n function re(e, t) {\r\n return e.map((function(e) {\r\n if (e.productPrice.status === u.sb.FREE || e.productPrice.status === u.sb.PURCHASED) return Object(s.a)(Object(s.a)({}, e), {}, {\r\n title: X.a[\"watchtv.subscribed\"]\r\n });\r\n var n = Object(s.a)(Object(s.a)({}, e.productPrice.price), {}, {\r\n amount: u.cb.calcFinalPrice(e.productPrice.price.amount, t)\r\n }),\r\n r = z.a.formatPrice(n),\r\n a = X.a[\"buttons.subscription\"];\r\n return u.cb.isBundleOption(e) && (a = e.purchaseOptionType === u.ub.BUY ? X.a[\"buttons.ownBoxSet\"] : X.a[\"buttons.rentBoxSet\"]), Object(s.a)(Object(s.a)({}, e), {}, {\r\n title: X.a.formatString(a, {\r\n price: r\r\n }).toString()\r\n })\r\n }))\r\n }\r\n\r\n function ae(e) {\r\n var t, n, r;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return t = e.meta, n = [], a.next = 4, Object(o.j)(u.C.Household.Selectors.data.vat);\r\n case 4:\r\n if (void 0 === (r = a.sent)) {\r\n a.next = 10;\r\n break\r\n }\r\n return a.next = 8, Object(o.c)(Z.a.getFolderPurchasesOptions, [t], !0);\r\n case 8:\r\n n = re(n = a.sent, r);\r\n case 10:\r\n return a.next = 12, Object(o.h)(ee.success(n));\r\n case 12:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), J)\r\n }\r\n\r\n function ce() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(o.b)([Object(o.o)(q.REQUEST, ae)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), $)\r\n }\r\n var se = n(132),\r\n ie = n(36),\r\n oe = n(211),\r\n ue = Object(a.a)().mark(le);\r\n\r\n function le(e) {\r\n var t, n, r, c, s, i, l;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n if (!u.cb.isFolderPurchaseOption(e)) {\r\n a.next = 16;\r\n break\r\n }\r\n if (t = e.productPrice, n = e.ppvModule, r = e.asset, void 0 === (c = u.bb.parse(t.productId))) {\r\n a.next = 16;\r\n break\r\n }\r\n return a.next = 6, Object(o.c)(u.C.Transactions.purchase, c, t);\r\n case 6:\r\n if (s = a.sent) {\r\n a.next = 10;\r\n break\r\n }\r\n return a.next = 10, Object(o.h)(se.a.refresh());\r\n case 10:\r\n return i = u.b.SUBSCRIBE_PACK, r.folderType === u.L.BUNDLE && (l = n && Object(oe.a)(n.fullLifeCycle), i = l || !n ? u.b.RENT_COLLECTION : u.b.OWN_COLLECTION), a.next = 14, Object(o.f)(ie.c, i, r, t, i === u.b.OWN_COLLECTION, s);\r\n case 14:\r\n if (!s) {\r\n a.next = 16;\r\n break\r\n }\r\n throw s;\r\n case 16:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), ue)\r\n }\r\n var de, be = Object(a.a)().mark(Ee),\r\n Oe = Object(a.a)().mark(Se);\r\n ! function(e) {\r\n e.INIT = \"app/folderInfo/init\", e.REQUEST = \"app/folderInfo/runOption\", e.SUCCESS = \"app/folderInfo/runOption/SUCCESS\", e.FAIL = \"app/folderInfo/runOption/FAIL\"\r\n }(de || (de = {}));\r\n var fe = {\r\n init: function() {\r\n return {\r\n type: de.INIT\r\n }\r\n },\r\n request: function(e) {\r\n return {\r\n type: de.REQUEST,\r\n meta: {\r\n option: e\r\n }\r\n }\r\n },\r\n success: function() {\r\n return {\r\n type: de.SUCCESS\r\n }\r\n },\r\n fail: function(e) {\r\n return {\r\n type: de.FAIL,\r\n error: e\r\n }\r\n }\r\n },\r\n je = {\r\n init: fe.init,\r\n request: fe.request\r\n },\r\n pe = {\r\n isProcessing: function(e) {\r\n return !0 === e.folderInfo.runOption.processing\r\n },\r\n isProcessed: function(e) {\r\n return !0 === e.folderInfo.runOption.processed\r\n },\r\n isSuccess: function(e) {\r\n return !0 === e.folderInfo.runOption.processed && void 0 === e.folderInfo.runOption.error\r\n },\r\n getError: function(e) {\r\n return e.folderInfo.runOption.error\r\n }\r\n };\r\n\r\n function Ee(e) {\r\n var t;\r\n return Object(a.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n t = e.meta.option, n.prev = 1, n.t0 = null === t || void 0 === t ? void 0 : t.type, n.next = n.t0 === u.g.BUNDLE || n.t0 === u.g.SUBSCRIPTION ? 5 : 8;\r\n break;\r\n case 5:\r\n return n.next = 7, Object(o.c)(le, t);\r\n case 7:\r\n return n.abrupt(\"break\", 10);\r\n case 8:\r\n throw u.Zb.fromInternalError(new Error(\"Unknown option type\"));\r\n case 10:\r\n return n.next = 12, Object(o.h)(fe.success());\r\n case 12:\r\n n.next = 18;\r\n break;\r\n case 14:\r\n return n.prev = 14, n.t1 = n.catch(1), n.next = 18, Object(o.h)(fe.fail(u.Zb.fromError(n.t1)));\r\n case 18:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), be, null, [\r\n [1, 14]\r\n ])\r\n }\r\n\r\n function Se() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(o.b)([Object(o.o)(de.REQUEST, Ee)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), Oe)\r\n }\r\n var ve = {\r\n processing: !1,\r\n processed: !1,\r\n error: void 0\r\n };\r\n var me = Object(a.a)().mark(Ie),\r\n he = Object(s.a)(Object(s.a)({}, d), {}, {\r\n rails: F,\r\n options: te,\r\n runOption: je\r\n }),\r\n ge = (t.c = Object(i.b)({\r\n folder: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : h,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case f.INIT:\r\n var n = b(t.meta);\r\n return Object(s.a)(Object(s.a)({}, e), {}, Object(j.a)({}, n, {\r\n processed: !1,\r\n processing: !0,\r\n error: void 0\r\n }));\r\n case f.SUCCESS:\r\n var a = b(t.meta);\r\n return Object(s.a)(Object(s.a)({}, e), {}, Object(j.a)({}, a, {\r\n asset: t.payload,\r\n processed: !0,\r\n processing: !1,\r\n error: void 0\r\n }));\r\n case f.ERROR:\r\n var c = b(t.meta);\r\n return Object(s.a)(Object(s.a)({}, e), {}, Object(j.a)({}, c, {\r\n processed: !0,\r\n processing: !1,\r\n error: t.error\r\n }));\r\n case r.CLEAR:\r\n var i = b(t.meta),\r\n o = Object(s.a)({}, e);\r\n return delete o[i], o;\r\n default:\r\n return e\r\n }\r\n },\r\n rails: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : G,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case x.INIT:\r\n var n = b(t.meta.context);\r\n return Object(s.a)(Object(s.a)({}, e), {}, Object(j.a)({}, n, {\r\n data: [],\r\n processed: !1,\r\n processing: !0\r\n }));\r\n case x.INIT_RAIL:\r\n var a, c = b(t.meta.context);\r\n return Object(s.a)(Object(s.a)({}, e), {}, Object(j.a)({}, c, Object(s.a)(Object(s.a)({}, e[c]), {}, {\r\n data: [].concat(Object(A.a)(null === (a = e[c]) || void 0 === a ? void 0 : a.data), [Object(s.a)(Object(s.a)({}, t.payload), {}, {\r\n loadingAssets: !0,\r\n assets: []\r\n })])\r\n })));\r\n case x.INIT_RAILS_DONE:\r\n var i = b(t.meta);\r\n return Object(s.a)(Object(s.a)({}, e), {}, Object(j.a)({}, i, Object(s.a)(Object(s.a)({}, e[i]), {}, {\r\n processed: !0,\r\n processing: !1\r\n })));\r\n case x.LOAD_MORE_ASSETS:\r\n var o, u, l = t.meta,\r\n d = l.context,\r\n O = l.channelId,\r\n f = b(d);\r\n return Object(s.a)(Object(s.a)({}, e), {}, Object(j.a)({}, f, Object(s.a)(Object(s.a)({}, e[f]), {}, {\r\n data: null === (o = e[f]) || void 0 === o || null === (u = o.data) || void 0 === u ? void 0 : u.map((function(e) {\r\n return O !== e.id ? e : Object(s.a)(Object(s.a)({}, e), {}, {\r\n loadingAssets: !0\r\n })\r\n }))\r\n })));\r\n case x.SUCCESS:\r\n var p, E, S = t.meta,\r\n v = S.context,\r\n m = S.channelId,\r\n h = t.payload,\r\n g = b(v);\r\n return Object(s.a)(Object(s.a)({}, e), {}, Object(j.a)({}, g, Object(s.a)(Object(s.a)({}, e[g]), {}, {\r\n data: null === (p = e[g]) || void 0 === p || null === (E = p.data) || void 0 === E ? void 0 : E.map((function(e) {\r\n return m !== e.id ? e : Object(s.a)(Object(s.a)({}, e), {}, {\r\n loadingAssets: !1,\r\n assets: h,\r\n hasMore: h.length > R.a.MAX_ASSETS_PER_RAIL\r\n })\r\n }))\r\n })));\r\n case x.ERROR:\r\n var I, C, _ = t.meta,\r\n T = _.context,\r\n N = _.channelId,\r\n k = b(T);\r\n return Object(s.a)(Object(s.a)({}, e), {}, Object(j.a)({}, k, Object(s.a)(Object(s.a)({}, e[k]), {}, {\r\n data: null === (I = e[k]) || void 0 === I || null === (C = I.data) || void 0 === C ? void 0 : C.map((function(e) {\r\n return N !== e.id ? e : Object(s.a)(Object(s.a)({}, e), {}, {\r\n loadingAssets: !1,\r\n assets: []\r\n })\r\n }))\r\n })));\r\n case r.CLEAR:\r\n var L = b(t.meta),\r\n P = Object(s.a)({}, e);\r\n return delete P[L], P;\r\n default:\r\n return e\r\n }\r\n },\r\n options: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ne,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case q.REQUEST:\r\n return ne;\r\n case q.SUCCESS:\r\n return {\r\n data: t.payload\r\n };\r\n default:\r\n return e\r\n }\r\n },\r\n runOption: function() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ve,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case de.INIT:\r\n return ve;\r\n case de.REQUEST:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processing: !0,\r\n processed: !1,\r\n error: void 0\r\n });\r\n case de.SUCCESS:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processing: !1,\r\n processed: !0,\r\n error: void 0\r\n });\r\n case de.FAIL:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processing: !1,\r\n processed: !0,\r\n error: t.error\r\n });\r\n default:\r\n return e\r\n }\r\n }\r\n }), {\r\n folder: g,\r\n rails: H,\r\n options: {\r\n getOptions: function(e) {\r\n return e.folderInfo.options.data\r\n }\r\n },\r\n runOption: pe\r\n });\r\n\r\n function Ie(e) {\r\n var t, n, r, s, i, u;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return t = e.meta, n = t.ctx, r = t.parentCtx, s = t.channelId, a.next = 3, Object(o.h)(he.runOption.init());\r\n case 3:\r\n if (n.entryAsset) {\r\n a.next = 16;\r\n break\r\n }\r\n return a.next = 6, Object(o.h)(m.init(n));\r\n case 6:\r\n return a.next = 8, Object(o.i)([O(f.SUCCESS, n), O(f.ERROR, n)]);\r\n case 8:\r\n if (i = a.sent, u = Object(c.a)(i, 2), !u[1]) {\r\n a.next = 13;\r\n break\r\n }\r\n return a.abrupt(\"return\");\r\n case 13:\r\n return a.next = 15, Object(o.j)(ge.folder.getAsset, n);\r\n case 15:\r\n n.entryAsset = a.sent;\r\n case 16:\r\n return a.next = 18, Object(o.h)(F.init(n, r, s));\r\n case 18:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), me)\r\n }\r\n var Ce = [Object(o.n)(r.INIT, Ie), Object(o.c)(C), Object(o.c)(Q), Object(o.c)(ce), Object(o.c)(Se)]\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return r\r\n })), n.d(t, \"b\", (function() {\r\n return d\r\n }));\r\n var r, a, c, s, i = n(13),\r\n o = n(14),\r\n u = n(39),\r\n l = n(26);\r\n ! function(e) {\r\n e.Chrome = \"Chrome\", e.Firefox = \"Firefox\", e.Opera = \"Opera\", e.Safari = \"Safari\", e.InternetExplorer = \"InternetExplorer\", e.Edge = \"Edge\", e.Chromium = \"Chromium\", e.MobileSafari = \"MobileSafari\", e.EdgeChromium = \"EdgeChromium\", e.Unknown = \"Unknown\"\r\n }(r || (r = {})),\r\n function(e) {\r\n e.IOS = \"IOS\", e.Android = \"Android\", e.Windows = \"Windows\", e.MAC_OS = \"MAC_OS\", e.Unknown = \"Unknown\"\r\n }(a || (a = {})),\r\n function(e) {\r\n e.Chrome = \"chrome\", e.InternetExplorer = \"ie\", e.Edge = \"edge\", e.Opera = \"opera\", e.Safari = \"safari\", e.Firefox = \"firefox\", e.EdgeChromium = \"edge\"\r\n }(c || (c = {})),\r\n function(e) {\r\n e.Windows = \"pc\", e.MAC_OS = \"mac\", e.Unix = \"pc\", e.Linux = \"pc\"\r\n }(s || (s = {}));\r\n var d = function() {\r\n function e() {\r\n Object(i.a)(this, e)\r\n }\r\n return Object(o.a)(e, null, [{\r\n key: \"getBrowser\",\r\n value: function() {\r\n if (u.isEdgeChromium) return r.EdgeChromium;\r\n if (u.isLegacyEdge) return r.Edge;\r\n switch (u.browserName) {\r\n case u.BrowserTypes.Chrome:\r\n return r.Chrome;\r\n case u.BrowserTypes.Chromium:\r\n return r.Chromium;\r\n case u.BrowserTypes.Firefox:\r\n return r.Firefox;\r\n case u.BrowserTypes.Ie:\r\n case u.BrowserTypes.InternetExplorer:\r\n return r.InternetExplorer;\r\n case u.BrowserTypes.MobileSafari:\r\n return r.MobileSafari;\r\n case u.BrowserTypes.Opera:\r\n return r.Opera;\r\n case u.BrowserTypes.Safari:\r\n return r.Safari;\r\n default:\r\n return r.Unknown\r\n }\r\n }\r\n }, {\r\n key: \"getOS\",\r\n value: function() {\r\n switch (u.osName) {\r\n case u.OsTypes.Android:\r\n return a.Android;\r\n case u.OsTypes.IOS:\r\n return a.IOS;\r\n case u.OsTypes.MAC_OS:\r\n return a.MAC_OS;\r\n case u.OsTypes.Windows:\r\n return a.Windows;\r\n default:\r\n return a.Unknown\r\n }\r\n }\r\n }, {\r\n key: \"getDmsBrowser\",\r\n value: function() {\r\n if (u.isEdgeChromium) return c.EdgeChromium;\r\n if (u.isLegacyEdge) return c.Edge;\r\n switch (u.browserName) {\r\n case u.BrowserTypes.Chrome:\r\n case u.BrowserTypes.Chromium:\r\n return c.Chrome;\r\n case u.BrowserTypes.Firefox:\r\n return c.Firefox;\r\n case u.BrowserTypes.Ie:\r\n case u.BrowserTypes.InternetExplorer:\r\n return c.InternetExplorer;\r\n case u.BrowserTypes.Safari:\r\n return c.Safari;\r\n default:\r\n return\r\n }\r\n }\r\n }, {\r\n key: \"getDmsOS\",\r\n value: function() {\r\n switch (u.osName) {\r\n case u.OsTypes.MAC_OS:\r\n return s.MAC_OS;\r\n case u.OsTypes.Windows:\r\n return s.Windows;\r\n default:\r\n return\r\n }\r\n }\r\n }, {\r\n key: \"isSupportedPlatform\",\r\n value: function() {\r\n if (void 0 === l.a.env.DMS_ALLOWED_APP_NAME_COMBOS) return !0;\r\n var e = this.getDmsBrowser(),\r\n t = this.getDmsOS();\r\n return !!(e && t && l.a.env.DMS_ALLOWED_APP_NAME_COMBOS.length && l.a.env.DMS_ALLOWED_APP_NAME_COMBOS.includes(\"\".concat(t, \".\").concat(e)))\r\n }\r\n }, {\r\n key: \"replacePlatformVars\",\r\n value: function(e) {\r\n var t = this.getDmsBrowser(),\r\n n = this.getDmsOS();\r\n if (n && t) return e.replace(\"{os}\", n).replace(\"{browser}\", t)\r\n }\r\n }, {\r\n key: \"isMobileDevice\",\r\n value: function() {\r\n return u.isMobile\r\n }\r\n }]), e\r\n }()\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return f\r\n }));\r\n var r, a = n(13),\r\n c = n(14),\r\n s = n(226),\r\n i = n(133),\r\n o = n(80),\r\n u = n(81),\r\n l = n(0),\r\n d = n(38),\r\n b = n(40),\r\n O = n(45);\r\n ! function(e) {\r\n e.LOCK = \"lock\", e.UNLOCK = \"unlock\"\r\n }(r || (r = {}));\r\n var f = function(e) {\r\n Object(o.a)(n, e);\r\n var t = Object(u.a)(n);\r\n\r\n function n() {\r\n return Object(a.a)(this, n), t.apply(this, arguments)\r\n }\r\n return Object(c.a)(n, null, [{\r\n key: \"isAdult\",\r\n value: function(e) {\r\n var t = n.getParentalSettings();\r\n return Object(s.a)(Object(i.a)(n), \"isAdult\", this).call(this, e, t)\r\n }\r\n }, {\r\n key: \"getAssetParentalState\",\r\n value: function(e) {\r\n if (n.isInGracePeriod()) return l.hb.SHOW;\r\n if (!n.isParentalLocked()) return l.hb.SHOW;\r\n if (n.isChannelLocked(e)) return l.hb.PIN;\r\n if (!n.isAssetLocked(e)) return l.hb.SHOW;\r\n var t = n.getActiveRating();\r\n return null !== t && void 0 !== t && t.options.default ? t.options.default : l.hb.PIN\r\n }\r\n }, {\r\n key: \"isAssetInLockedChannel\",\r\n value: function(e) {\r\n return !n.isInGracePeriod() && (!!n.isParentalLocked() && !!n.isChannelLocked(e))\r\n }\r\n }, {\r\n key: \"isInGracePeriod\",\r\n value: function() {\r\n var e = n.getParentalSettings(),\r\n t = n.getParentalLockOccurred();\r\n if (null !== e && void 0 !== e && e.parentalLockTimeoutMinutes && t) {\r\n var r = l.Pb.addMinutes(t, e.parentalLockTimeoutMinutes);\r\n return l.Pb.isAfterNow(r)\r\n }\r\n return !1\r\n }\r\n }, {\r\n key: \"isParentalLocked\",\r\n value: function() {\r\n var e = n.isParentalValidationEnable();\r\n return !!n.getClientRatingWindowFromTime(l.Pb.now()) || !(void 0 !== e && !e)\r\n }\r\n }, {\r\n key: \"isAssetLocked\",\r\n value: function(e) {\r\n var t = n.getParentalSettings();\r\n if (t) {\r\n var a = n.getAssetRating(e, t),\r\n c = n.getActiveRating();\r\n if (void 0 !== a && void 0 !== c) return a > c.ratingValue || n.activeRatingLockingLogic === r.LOCK && a === c.ratingValue\r\n }\r\n return !1\r\n }\r\n }, {\r\n key: \"isChannelLocked\",\r\n value: function(e) {\r\n var t = Object(d.a)().getState(),\r\n n = b.c.getLockedChannels(t);\r\n if (l.i.isChannel(e)) return n.includes(e.channelID);\r\n if (l.i.isTvAsset(e)) {\r\n var r = O.c.getChannelByEpgId(t, e.channelEpgId);\r\n return !(null === r || void 0 === r || !r.channelID) && n.includes(null === r || void 0 === r ? void 0 : r.channelID)\r\n }\r\n return !1\r\n }\r\n }, {\r\n key: \"getAssetRating\",\r\n value: function(e, t) {\r\n var r = arguments.length > 2 && void 0 !== arguments[2] && arguments[2],\r\n a = t || n.getParentalSettings();\r\n if (a) return Object(s.a)(Object(i.a)(n), \"getAssetRating\", this).call(this, e, a, r)\r\n }\r\n }, {\r\n key: \"getActiveRating\",\r\n value: function() {\r\n var e, t, r, a = null === (e = n.getParentalSettings()) || void 0 === e ? void 0 : e.parentalRating.parentalRatingValues,\r\n c = n.getClientRatingWindowFromTime(l.Pb.now());\r\n return c && (t = null === a || void 0 === a ? void 0 : a.find((function(e) {\r\n return e.ratingValue === c.ratingValue\r\n }))), n.isParentalValidationEnable() && (r = b.c.getAgeRating(Object(d.a)().getState()), t && r) ? t.ratingValue < r.ratingValue ? t : r : t || r\r\n }\r\n }, {\r\n key: \"getClientRatingWindowFromTime\",\r\n value: function(e) {\r\n var t, r, a, c = null === (t = n.getParentalSettings()) || void 0 === t ? void 0 : t.clientRatingWindow,\r\n s = null === (r = n.getParentalSettings()) || void 0 === r ? void 0 : r.parentalRating.parentalRatingValues,\r\n i = null === c || void 0 === c ? void 0 : c.filter((function(t) {\r\n var n = !1;\r\n try {\r\n var r = l.Pb.setTimeFromFormatIntoDate(t.startTime, l.Pb.FORMAT.WATERSHED, e),\r\n a = l.Pb.setTimeFromFormatIntoDate(t.endTime, l.Pb.FORMAT.WATERSHED, e);\r\n if (r && a)\r\n if (l.Pb.isAfter(r, a)) {\r\n var c = {\r\n start: l.Pb.subDays(r, 1),\r\n end: a\r\n },\r\n i = {\r\n start: r,\r\n end: l.Pb.addDays(a, 1)\r\n };\r\n l.Pb.isBetween(c.start, c.end, e) && (n = !0), l.Pb.isBetween(i.start, i.end, e) && (n = !0)\r\n } else l.Pb.isBetween(r, a, e) && (n = !0);\r\n return n && -1 !== (null === s || void 0 === s ? void 0 : s.findIndex((function(e) {\r\n return e.ratingValue === t.ratingValue\r\n })))\r\n } catch (o) {\r\n return !1\r\n }\r\n }));\r\n if (i)\r\n for (var o = 0; o < i.length; o += 1)(a && i[o].ratingValue < a.ratingValue || !a) && (a = i[o]);\r\n return a\r\n }\r\n }, {\r\n key: \"isParentalValidationEnable\",\r\n value: function() {\r\n var e;\r\n return null === (e = l.C.Household.Selectors.data.getDefaultUser(Object(d.a)().getState())) || void 0 === e ? void 0 : e.parentalValidation\r\n }\r\n }, {\r\n key: \"getParentalSettings\",\r\n value: function() {\r\n return l.C.Dms.Selectors.getParentalControl(Object(d.a)().getState())\r\n }\r\n }, {\r\n key: \"getParentalLockOccurred\",\r\n value: function() {\r\n return b.c.getParentalLockOccurred(Object(d.a)().getState())\r\n }\r\n }]), n\r\n }(l.gb);\r\n f.activeRatingLockingLogic = r.LOCK, f.UI = {\r\n isAdult: f.isAdult,\r\n getAssetParentalState: f.getAssetParentalState,\r\n getAssetParentalRating: f.getAssetRating,\r\n isAssetInLockedChannel: f.isAssetInLockedChannel,\r\n getActiveRating: f.getActiveRating\r\n }\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"b\", (function() {\r\n return r\r\n })), n.d(t, \"a\", (function() {\r\n return h\r\n })), n.d(t, \"d\", (function() {\r\n return g\r\n })), n.d(t, \"e\", (function() {\r\n return C\r\n })), n.d(t, \"c\", (function() {\r\n return D\r\n })), n.d(t, \"f\", (function() {\r\n return y\r\n }));\r\n var r, a = n(15),\r\n c = n(8),\r\n s = n(2),\r\n i = n(4),\r\n o = n(1),\r\n u = n(0),\r\n l = n(26),\r\n d = n(36),\r\n b = Object(s.a)().mark(x),\r\n O = Object(s.a)().mark(A),\r\n f = Object(s.a)().mark(T),\r\n j = Object(s.a)().mark(N),\r\n p = Object(s.a)().mark(k),\r\n E = Object(s.a)().mark(L),\r\n S = Object(s.a)().mark(P),\r\n v = Object(s.a)().mark(y);\r\n ! function(e) {\r\n e.GET_ITEMS = \"wishlist/GET_ITEMS\", e.GET_ITEMS_SUCCESS = \"wishlist/GET_ITEMS_SUCCESS\", e.GET_ITEMS_ERROR = \"wishlist/GET_ITEMS_ERROR\", e.UPDATE_ITEMS = \"wishlist/UPDATE_ITEMS\", e.ADD_ITEM = \"wishlist/ADD_ITEM\", e.ADD_ITEM_SUCCESS = \"wishlist/ADD_ITEM_SUCCESS\", e.ADD_ITEM_ERROR = \"wishlist/ADD_ITEM_ERROR\", e.DEL_ITEM = \"wishlist/DEL_ITEM\", e.DEL_ITEM_SUCCESS = \"wishlist/DEL_ITEM_SUCCESS\", e.DEL_ITEM_ERROR = \"wishlist/DEL_ITEM_ERROR\"\r\n }(r || (r = {}));\r\n var m = {\r\n getItems: function() {\r\n return {\r\n type: r.GET_ITEMS\r\n }\r\n },\r\n getItemsSuccess: function(e) {\r\n return {\r\n type: r.GET_ITEMS_SUCCESS,\r\n payload: e\r\n }\r\n },\r\n getItemsError: function(e) {\r\n return {\r\n type: r.GET_ITEMS_ERROR,\r\n error: e\r\n }\r\n },\r\n updateItems: function(e) {\r\n return {\r\n type: r.UPDATE_ITEMS,\r\n payload: e\r\n }\r\n }\r\n },\r\n h = {\r\n getItems: m.getItems\r\n },\r\n g = {\r\n getAssets: function(e) {\r\n return e.wishlist.data.assets\r\n },\r\n getPersonalLists: function(e) {\r\n return e.wishlist.data.personalLists\r\n },\r\n isAssetWishlisted: function(e, t) {\r\n return void 0 !== e.wishlist.data.personalLists.find((function(e) {\r\n return u.Yb.assetMatchsPersonalList(t, e)\r\n }))\r\n },\r\n isGetItemsProcessed: function(e) {\r\n var t;\r\n return null === (t = e.wishlist.actions.getItems) || void 0 === t ? void 0 : t.processed\r\n }\r\n },\r\n I = {\r\n data: {\r\n assets: [],\r\n personalLists: []\r\n },\r\n actions: {}\r\n };\r\n\r\n function C() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : I,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case r.GET_ITEMS:\r\n return Object(i.a)(Object(i.a)({}, e), {}, {\r\n actions: Object(i.a)(Object(i.a)({}, e.actions), {}, {\r\n getItems: {\r\n processing: !0,\r\n processed: !1,\r\n error: void 0,\r\n data: void 0\r\n }\r\n })\r\n });\r\n case r.GET_ITEMS_SUCCESS:\r\n return Object(i.a)(Object(i.a)({}, e), {}, {\r\n actions: Object(i.a)(Object(i.a)({}, e.actions), {}, {\r\n getItems: {\r\n processing: !1,\r\n processed: !0,\r\n error: void 0,\r\n data: void 0\r\n }\r\n }),\r\n data: t.payload\r\n });\r\n case r.GET_ITEMS_ERROR:\r\n return Object(i.a)(Object(i.a)({}, e), {}, {\r\n actions: Object(i.a)(Object(i.a)({}, e.actions), {}, {\r\n getItems: {\r\n processing: !1,\r\n processed: !0,\r\n error: t.error,\r\n data: void 0\r\n }\r\n })\r\n });\r\n case r.UPDATE_ITEMS:\r\n return Object(i.a)(Object(i.a)({}, e), {}, {\r\n data: t.payload\r\n });\r\n default:\r\n return e\r\n }\r\n }\r\n\r\n function x() {\r\n var e, t, n, r;\r\n return Object(s.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 2, Object(o.j)(u.C.Dms.Selectors.getFilesFormat);\r\n case 2:\r\n return e = a.sent, a.next = 5, Object(o.j)(u.C.Dms.Selectors.getParentalControl);\r\n case 5:\r\n return t = a.sent, a.next = 8, Object(o.j)(u.C.Dms.Selectors.getFoldersConfig);\r\n case 8:\r\n return n = a.sent, r = u.R[l.a.env.CHANNELS_UNSUBSCRIBED_VISIBILITY], a.next = 12, u.C.Api.callApi(u.Wb.getPersonalListsAndSingleAssets, e, t, r, n);\r\n case 12:\r\n return a.abrupt(\"return\", a.sent);\r\n case 13:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), b)\r\n }\r\n\r\n function A(e) {\r\n var t, n, r, a;\r\n return Object(s.a)().wrap((function(c) {\r\n for (;;) switch (c.prev = c.next) {\r\n case 0:\r\n return c.next = 2, Object(o.j)(u.C.Dms.Selectors.getFilesFormat);\r\n case 2:\r\n return t = c.sent, c.next = 5, Object(o.j)(u.C.Dms.Selectors.getParentalControl);\r\n case 5:\r\n return n = c.sent, c.next = 8, Object(o.j)(u.C.Dms.Selectors.getFoldersConfig);\r\n case 8:\r\n return r = c.sent, a = u.R[l.a.env.CHANNELS_UNSUBSCRIBED_VISIBILITY], c.next = 12, u.C.Api.callApi(u.Wb.getSeriesAssets, e, t, n, a, r);\r\n case 12:\r\n return c.abrupt(\"return\", c.sent);\r\n case 13:\r\n case \"end\":\r\n return c.stop()\r\n }\r\n }), O)\r\n }\r\n var _ = function(e, t) {\r\n for (var n = new Map, r = [], a = 0; a < t.length; a += 1) t[a].length ? n.set(e[a].id, t[a][0]) : r.push(e[a].id);\r\n return [n, r]\r\n },\r\n R = function(e, t) {\r\n var n, r = new Map,\r\n a = [],\r\n c = new Map;\r\n return t.forEach((function(e) {\r\n return c.set(e.internalId || e.id.toString(), e)\r\n })), e.forEach((function(e) {\r\n (n = c.get(e.name)) ? r.set(e.id, n): a.push(e.id)\r\n })), [r, a]\r\n };\r\n\r\n function T(e) {\r\n var t;\r\n return Object(s.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return n.prev = 0, t = e.map((function(e) {\r\n return u.C.Api.callApi(u.jb.delete, e)\r\n })), n.next = 4, Object(o.b)(t);\r\n case 4:\r\n n.next = 8;\r\n break;\r\n case 6:\r\n n.prev = 6, n.t0 = n.catch(0);\r\n case 8:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), f, null, [\r\n [0, 6]\r\n ])\r\n }\r\n\r\n function N() {\r\n var e, t, n, r, i, l, d, b, O, f, p, E, S, v, h, g;\r\n return Object(s.a)().wrap((function(s) {\r\n for (;;) switch (s.prev = s.next) {\r\n case 0:\r\n return s.prev = 0, s.next = 3, Object(o.c)(x);\r\n case 3:\r\n if (e = s.sent, t = Object(c.a)(e, 2), n = t[0], r = t[1], !(i = n.filter((function(e) {\r\n return e.partnerListType === u.ib.SERIES\r\n }))).length) {\r\n s.next = 12;\r\n break\r\n }\r\n return s.next = 9, Object(o.c)(A, i);\r\n case 9:\r\n s.t0 = s.sent, s.next = 13;\r\n break;\r\n case 12:\r\n s.t0 = [];\r\n case 13:\r\n return l = s.t0, d = _(i, l), b = Object(c.a)(d, 2), O = b[0], f = b[1], p = n.filter((function(e) {\r\n return e.partnerListType === u.ib.SINGLE_EVENTS\r\n })), E = R(p, r), S = Object(c.a)(E, 2), v = S[0], h = S[1], g = {\r\n assets: [],\r\n personalLists: []\r\n }, n.forEach((function(e) {\r\n var t = v.get(e.id) || O.get(e.id);\r\n t && (g.assets.push(t), g.personalLists.push(e))\r\n })), s.next = 21, Object(o.h)(m.getItemsSuccess(g));\r\n case 21:\r\n return s.next = 23, Object(o.f)(T, [].concat(Object(a.a)(f), Object(a.a)(h)));\r\n case 23:\r\n s.next = 29;\r\n break;\r\n case 25:\r\n return s.prev = 25, s.t1 = s.catch(0), s.next = 29, Object(o.h)(m.getItemsError(u.Zb.fromError(s.t1)));\r\n case 29:\r\n case \"end\":\r\n return s.stop()\r\n }\r\n }), j, null, [\r\n [0, 25]\r\n ])\r\n }\r\n\r\n function k(e) {\r\n var t, n, r, c, i, l, b, O;\r\n return Object(s.a)().wrap((function(s) {\r\n for (;;) switch (s.prev = s.next) {\r\n case 0:\r\n return s.prev = 0, s.next = 3, Object(o.j)(u.C.Dms.Selectors.getDmsConfigs);\r\n case 3:\r\n if (t = s.sent, n = u.Yb.getPersonalListName(e), r = t.mediaTypesIds.get(u.f.SERIES), !(c = u.Yb.getKSql(e, u.Pb.daysToSecs(t.epgBackwardDays), u.Pb.daysToSecs(t.epgForwardDays), r))) {\r\n s.next = 21;\r\n break\r\n }\r\n return s.next = 10, u.C.Api.callApi(u.jb.add, n, c, u.Yb.getPartnerListTypeType(e));\r\n case 10:\r\n return i = s.sent, s.next = 13, Object(o.j)(g.getPersonalLists);\r\n case 13:\r\n return l = s.sent, s.next = 16, Object(o.j)(g.getAssets);\r\n case 16:\r\n return b = s.sent, s.next = 19, Object(o.h)(m.updateItems({\r\n assets: [e].concat(Object(a.a)(b)),\r\n personalLists: [i].concat(Object(a.a)(l))\r\n }));\r\n case 19:\r\n return s.next = 21, Object(o.f)(d.g, u.b.WISHLIST_ADD, e);\r\n case 21:\r\n s.next = 29;\r\n break;\r\n case 23:\r\n return s.prev = 23, s.t0 = s.catch(0), O = u.Zb.fromCode(u.Xb.generic.add), s.next = 28, Object(o.f)(d.g, u.b.WISHLIST_ADD, e, O);\r\n case 28:\r\n throw O;\r\n case 29:\r\n case \"end\":\r\n return s.stop()\r\n }\r\n }), p, null, [\r\n [0, 23]\r\n ])\r\n }\r\n\r\n function L(e) {\r\n var t, n, r, a, c, i, l;\r\n return Object(s.a)().wrap((function(s) {\r\n for (;;) switch (s.prev = s.next) {\r\n case 0:\r\n return s.prev = 0, s.next = 3, Object(o.j)(g.getPersonalLists);\r\n case 3:\r\n return t = s.sent, s.next = 6, Object(o.j)(g.getAssets);\r\n case 6:\r\n for (n = s.sent, r = [], a = [], c = [], i = 0; i < t.length; i += 1) u.Yb.assetMatchsPersonalList(e, t[i]) ? r.push(t[i].id) : (a.push(t[i]), c.push(n[i]));\r\n return s.next = 13, Object(o.c)(T, r);\r\n case 13:\r\n return s.next = 15, Object(o.h)(m.updateItems({\r\n assets: c,\r\n personalLists: a\r\n }));\r\n case 15:\r\n return s.next = 17, Object(o.f)(d.g, u.b.WISHLIST_REMOVE, e);\r\n case 17:\r\n s.next = 25;\r\n break;\r\n case 19:\r\n return s.prev = 19, s.t0 = s.catch(0), l = u.Zb.fromCode(u.Xb.generic.remove), s.next = 24, Object(o.f)(d.g, u.b.WISHLIST_REMOVE, e, l);\r\n case 24:\r\n throw l;\r\n case 25:\r\n case \"end\":\r\n return s.stop()\r\n }\r\n }), E, null, [\r\n [0, 19]\r\n ])\r\n }\r\n\r\n function P(e) {\r\n var t;\r\n return Object(s.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n return t = e.isWishlisted ? L : k, n.next = 3, Object(o.c)(t, e.asset);\r\n case 3:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), S)\r\n }\r\n var D = {\r\n toggleItem: P\r\n };\r\n\r\n function y() {\r\n return Object(s.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(o.b)([Object(o.o)([r.GET_ITEMS, u.C.Credentials.ActionTypes.SWITCH_USER_SUCCESS], N)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), v)\r\n }\r\n }, , function(e, t, n) {\r\n \"use strict\";\r\n var r;\r\n n.d(t, \"a\", (function() {\r\n return r\r\n })),\r\n function(e) {\r\n e.RECORDING = \"myrecordings\", e.WISHLIST = \"wishlist\", e.PURCHASES = \"purchases\", e.WATCH_NEXT = \"watchnext\", e.RELATED = \"recomm\", e.RELATED_RECOMM = \"recomm\"\r\n }(r || (r = {}))\r\n }, , , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return r\r\n })), n.d(t, \"b\", (function() {\r\n return p\r\n })), n.d(t, \"d\", (function() {\r\n return S\r\n })), n.d(t, \"f\", (function() {\r\n return h\r\n })), n.d(t, \"c\", (function() {\r\n return g\r\n })), n.d(t, \"e\", (function() {\r\n return C\r\n }));\r\n var r, a = n(8),\r\n c = n(2),\r\n s = n(6),\r\n i = n(4),\r\n o = n(15),\r\n u = n(1),\r\n l = n(0),\r\n d = n(26),\r\n b = Object(c.a)().mark(m),\r\n O = Object(c.a)().mark(h),\r\n f = Object(c.a)().mark(C);\r\n ! function(e) {\r\n e.REQUEST = \"assets/REQUEST\", e.SUCCESS = \"assets/SUCCESS\", e.FAIL = \"assets/FAIL\"\r\n }(r || (r = {}));\r\n var j = {\r\n request: function(e) {\r\n return {\r\n type: r.REQUEST,\r\n meta: e\r\n }\r\n },\r\n success: function(e, t) {\r\n return {\r\n type: r.SUCCESS,\r\n payload: e,\r\n meta: t\r\n }\r\n },\r\n fail: function(e, t) {\r\n return {\r\n type: r.FAIL,\r\n error: e,\r\n meta: t\r\n }\r\n }\r\n },\r\n p = {\r\n loadAssets: function(e, t, n) {\r\n return j.request({\r\n id: e,\r\n pageIndex: t,\r\n pageSize: n\r\n })\r\n }\r\n },\r\n E = {};\r\n\r\n function S() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : E,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case r.SUCCESS:\r\n var n, a = t.payload || [],\r\n c = t.meta,\r\n u = c.pageIndex > 0 && (null === (n = e[c.id]) || void 0 === n ? void 0 : n.data) || [];\r\n return u = [].concat(Object(o.a)(u), Object(o.a)(a)), Object(i.a)(Object(i.a)({}, e), {}, Object(s.a)({}, c.id, Object(i.a)(Object(i.a)({}, e[c.id]), {}, {\r\n data: u,\r\n fetching: !1,\r\n fetched: !0\r\n })));\r\n case r.FAIL:\r\n return Object(i.a)(Object(i.a)({}, e), {}, Object(s.a)({}, t.meta.id, Object(i.a)(Object(i.a)({}, e[t.meta.id]), {}, {\r\n fetching: !1,\r\n fetched: !0,\r\n error: t.error\r\n })));\r\n case r.REQUEST:\r\n return Object(i.a)(Object(i.a)({}, e), {}, Object(s.a)({}, t.meta.id, Object(i.a)(Object(i.a)({}, e[t.meta.id]), {}, {\r\n fetching: !0,\r\n fetched: !1\r\n })));\r\n default:\r\n return e\r\n }\r\n }\r\n var v = function(e) {\r\n return \"asset_list_\".concat(e)\r\n };\r\n\r\n function m(e) {\r\n var t, n, r, a;\r\n return Object(c.a)().wrap((function(c) {\r\n for (;;) switch (c.prev = c.next) {\r\n case 0:\r\n return t = e.meta, c.prev = 1, c.next = 4, Object(u.j)(l.C.Dms.Selectors.getFilesFormat);\r\n case 4:\r\n return n = c.sent, c.next = 7, Object(u.j)(l.C.Dms.Selectors.getParentalControl);\r\n case 7:\r\n return r = c.sent, c.next = 10, l.C.Pagination.callPaginatedApi(v(t.id), t.pageIndex, t.pageSize, l.t.ASSETS_API_PAGE_SIZE, l.j.assetList, t.id, n, r, l.R[d.a.env.CHANNELS_UNSUBSCRIBED_VISIBILITY]);\r\n case 10:\r\n return a = c.sent, c.next = 13, Object(u.h)(j.success(a, t));\r\n case 13:\r\n c.next = 19;\r\n break;\r\n case 15:\r\n return c.prev = 15, c.t0 = c.catch(1), c.next = 19, Object(u.h)(j.fail(l.Zb.fromError(c.t0), t));\r\n case 19:\r\n case \"end\":\r\n return c.stop()\r\n }\r\n }), b, null, [\r\n [1, 15]\r\n ])\r\n }\r\n\r\n function h() {\r\n return Object(c.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(u.b)([Object(u.m)(r.REQUEST, m)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), O)\r\n }\r\n var g = {\r\n completed: function(e, t) {\r\n var n, r, a = (null === (n = e.assets[t]) || void 0 === n || null === (r = n.data) || void 0 === r ? void 0 : r.length) || 0,\r\n c = v(t);\r\n return l.C.Pagination.Selectors.isCompleted(e, c) && l.C.Pagination.Selectors.getTotal(e, c) === a\r\n },\r\n getAssets: function(e, t) {\r\n var n;\r\n return null === (n = e.assets[t]) || void 0 === n ? void 0 : n.data\r\n }\r\n };\r\n\r\n function I(e, t) {\r\n return Object(u.l)((function(n) {\r\n return n.type === e && n.meta.id === t\r\n }))\r\n }\r\n\r\n function C(e, t) {\r\n var n, s, i;\r\n return Object(c.a)().wrap((function(c) {\r\n for (;;) switch (c.prev = c.next) {\r\n case 0:\r\n return c.next = 2, Object(u.h)(p.loadAssets(e, 0, t));\r\n case 2:\r\n return c.next = 4, Object(u.i)([I(r.SUCCESS, e), I(r.FAIL, e)]);\r\n case 4:\r\n if (n = c.sent, s = Object(a.a)(n, 1), !s[0]) {\r\n c.next = 13;\r\n break\r\n }\r\n return c.next = 10, Object(u.j)(g.getAssets, e);\r\n case 10:\r\n if (null === (i = c.sent) || void 0 === i || !i.length) {\r\n c.next = 13;\r\n break\r\n }\r\n return c.abrupt(\"return\", i.splice(0, t));\r\n case 13:\r\n return c.abrupt(\"return\", void 0);\r\n case 14:\r\n case \"end\":\r\n return c.stop()\r\n }\r\n }), f)\r\n }\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return _\r\n })), n.d(t, \"c\", (function() {\r\n return T\r\n })), n.d(t, \"b\", (function() {\r\n return N\r\n })), n.d(t, \"d\", (function() {\r\n return H\r\n }));\r\n var r, a = n(2),\r\n c = n(15),\r\n s = n(4),\r\n i = n(0),\r\n o = n(1),\r\n u = n(23),\r\n l = n(76),\r\n d = n(99),\r\n b = n(66),\r\n O = n(49),\r\n f = Object(a.a)().mark(L),\r\n j = Object(a.a)().mark(P),\r\n p = Object(a.a)().mark(D),\r\n E = Object(a.a)().mark(y),\r\n S = Object(a.a)().mark(w),\r\n v = Object(a.a)().mark(U),\r\n m = Object(a.a)().mark(M),\r\n h = Object(a.a)().mark(F),\r\n g = Object(a.a)().mark(G),\r\n I = Object(a.a)().mark(H),\r\n C = 2,\r\n x = O.a.ONDEMAND.RAILS;\r\n ! function(e) {\r\n e.INIT = \"app/onDemand/INIT\", e.INIT_NEXT_LEVEL = \"app/onDemand/INIT_NEXT_LEVEL\", e.FINISH_PROCESSING = \"app/onDemand/FINISH_PROCESSING\", e.ADD_SECTION_ASSET = \"app/onDemand/ADD_SECTION_ASSET\", e.SECTION_ASSET_FAILED = \"app/onDemand/SECTION_ASSET_FAILED\", e.ADD_RAIL = \"app/onDemand/ADD_RAIL\", e.RAIL_LOAD_COMPLETED = \"app/onDemand/RAIL_LOAD_COMPLETED\", e.ADD_CATEGORY_RAIL = \"app/onDemand/ADD_CATEGORY_RAIL\", e.CATEGORY_RAIL_LOAD_COMPLETED = \"app/onDemand/CATEGORY_RAIL_LOAD_COMPLETED\", e.LOAD_GRID_ASSETS = \"app/onDemand/LOAD_GRID_ASSETS\", e.ADD_REQUESTED_GRID_PAGE = \"app/onDemand/ADD_REQUESTED_GRID_PAGE\"\r\n }(r || (r = {}));\r\n var A = {\r\n init: function() {\r\n return {\r\n type: r.INIT\r\n }\r\n },\r\n initNextLevel: function(e) {\r\n return {\r\n type: r.INIT_NEXT_LEVEL,\r\n meta: e\r\n }\r\n },\r\n addSectionAsset: function(e) {\r\n return {\r\n type: r.ADD_SECTION_ASSET,\r\n meta: e\r\n }\r\n },\r\n sectionAssetFailed: function() {\r\n return {\r\n type: r.SECTION_ASSET_FAILED\r\n }\r\n },\r\n addRail: function(e) {\r\n return {\r\n type: r.ADD_RAIL,\r\n meta: e\r\n }\r\n },\r\n railLoadCompleted: function(e, t) {\r\n return {\r\n type: r.RAIL_LOAD_COMPLETED,\r\n payload: {\r\n id: e,\r\n assets: t\r\n }\r\n }\r\n },\r\n addCategoryRail: function(e) {\r\n return {\r\n type: r.ADD_CATEGORY_RAIL,\r\n meta: e\r\n }\r\n },\r\n categoryRailLoadCompleted: function(e, t) {\r\n return {\r\n type: r.CATEGORY_RAIL_LOAD_COMPLETED,\r\n payload: {\r\n id: e,\r\n assets: t\r\n }\r\n }\r\n },\r\n loadGridAssets: function(e, t) {\r\n return {\r\n type: r.LOAD_GRID_ASSETS,\r\n meta: {\r\n id: e,\r\n recommContext: t\r\n }\r\n }\r\n },\r\n addRequestedGridPage: function(e) {\r\n return {\r\n type: r.ADD_REQUESTED_GRID_PAGE,\r\n payload: e\r\n }\r\n },\r\n finishProcessing: function() {\r\n return {\r\n type: r.FINISH_PROCESSING\r\n }\r\n }\r\n },\r\n _ = {\r\n init: A.init,\r\n initNextLevel: A.initNextLevel,\r\n loadGridAssets: A.loadGridAssets\r\n },\r\n R = {\r\n rails: [],\r\n categoryRails: [],\r\n processed: !1,\r\n processing: !1,\r\n requestedGridPage: 0,\r\n processingRequestedGridPage: !1\r\n };\r\n\r\n function T() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : R,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case r.INIT:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n rails: [],\r\n processing: !0,\r\n processed: !1,\r\n error: void 0\r\n });\r\n case r.INIT_NEXT_LEVEL:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n categoryRails: [],\r\n requestedGridPage: 0,\r\n processing: !0,\r\n processed: !1,\r\n error: void 0\r\n });\r\n case r.ADD_SECTION_ASSET:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n sectionAsset: t.meta,\r\n processing: !1,\r\n processed: !0,\r\n error: void 0\r\n });\r\n case r.SECTION_ASSET_FAILED:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processed: !0\r\n });\r\n case r.ADD_RAIL:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n rails: [].concat(Object(c.a)(e.rails), [t.meta])\r\n });\r\n case r.RAIL_LOAD_COMPLETED:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n rails: e.rails.map((function(e) {\r\n return e.id !== t.payload.id ? e : Object(s.a)(Object(s.a)({}, e), {}, {\r\n loadingAssets: !1,\r\n assets: t.payload.assets,\r\n hasMore: t.payload.assets.length > u.a.MAX_ASSETS_PER_RAIL || e.withCategories\r\n })\r\n }))\r\n });\r\n case r.ADD_CATEGORY_RAIL:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n categoryRails: [].concat(Object(c.a)(e.categoryRails), [t.meta])\r\n });\r\n case r.CATEGORY_RAIL_LOAD_COMPLETED:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n categoryRails: e.categoryRails.map((function(e) {\r\n return e.id !== t.payload.id ? e : Object(s.a)(Object(s.a)({}, e), {}, {\r\n loadingAssets: !1,\r\n assets: t.payload.assets,\r\n hasMore: t.payload.assets.length > u.a.MAX_ASSETS_PER_RAIL\r\n })\r\n }))\r\n });\r\n case r.LOAD_GRID_ASSETS:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processingRequestedGridPage: !0\r\n });\r\n case r.ADD_REQUESTED_GRID_PAGE:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processed: e.processed || !0,\r\n processing: e.processing && !1,\r\n processingRequestedGridPage: !1,\r\n requestedGridPage: e.requestedGridPage + t.payload\r\n });\r\n case r.FINISH_PROCESSING:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n processed: !0,\r\n processing: !1\r\n });\r\n default:\r\n return e\r\n }\r\n }\r\n var N = {\r\n isProcessed: function(e) {\r\n return !0 === e.onDemand.processed\r\n },\r\n getError: function(e) {\r\n return e.onDemand.error\r\n },\r\n getSectionAsset: function(e) {\r\n return e.onDemand.sectionAsset\r\n },\r\n getRails: function(e) {\r\n return e.onDemand.rails\r\n },\r\n getCategoryRails: function(e) {\r\n return e.onDemand.categoryRails\r\n },\r\n getRail: function(e, t) {\r\n return t ? e.onDemand.rails.find((function(e) {\r\n return e.id === t\r\n })) : void 0\r\n },\r\n getCategoryRail: function(e, t) {\r\n return t ? e.onDemand.categoryRails.find((function(e) {\r\n return e.id === t\r\n })) : void 0\r\n },\r\n getRequestedPageNumber: function(e) {\r\n return e.onDemand.requestedGridPage\r\n },\r\n processingRequestedGridPage: function(e) {\r\n return e.onDemand.processingRequestedGridPage\r\n }\r\n };\r\n\r\n function k(e, t) {\r\n return Object(o.l)((function(n) {\r\n return n.type === e && n.meta.id === t\r\n }))\r\n }\r\n\r\n function L(e) {\r\n return Object(a.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n if (!e) {\r\n t.next = 4;\r\n break\r\n }\r\n return t.next = 3, Object(o.h)(A.addSectionAsset(e));\r\n case 3:\r\n return t.abrupt(\"return\");\r\n case 4:\r\n return t.next = 6, Object(o.h)(A.sectionAssetFailed());\r\n case 6:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), f)\r\n }\r\n\r\n function P(e, t, n) {\r\n return Object(a.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n if (n) {\r\n r.next = 10;\r\n break\r\n }\r\n if (e.channelId) {\r\n r.next = 3;\r\n break\r\n }\r\n return r.abrupt(\"return\", []);\r\n case 3:\r\n return r.next = 5, Object(o.h)(l.b.loadAssets(e.channelId, 0, t));\r\n case 5:\r\n return r.next = 7, Object(o.i)([k(l.a.SUCCESS, e.channelId), k(l.a.FAIL, e.channelId)]);\r\n case 7:\r\n return r.next = 9, Object(o.j)(l.c.getAssets, e.channelId);\r\n case 9:\r\n case 16:\r\n return r.abrupt(\"return\", r.sent);\r\n case 10:\r\n return r.next = 12, Object(o.h)(i.C.Recommendations.Creators.loadAssets(n));\r\n case 12:\r\n return r.next = 14, Object(o.i)([i.C.Recommendations.takeAssets(i.C.Recommendations.ActionType.SUCCESS, n), i.C.Recommendations.takeAssets(i.C.Recommendations.ActionType.FAIL, n)]);\r\n case 14:\r\n return r.next = 16, Object(o.j)(i.C.Recommendations.Selectors.assets, n);\r\n case 17:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), j)\r\n }\r\n\r\n function D(e, t, n, r) {\r\n var c, s, i, l, O;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n if (e.channelId || r) {\r\n a.next = 2;\r\n break\r\n }\r\n return a.abrupt(\"return\");\r\n case 2:\r\n return i = u.a.MAX_ASSETS_PER_RAIL + C, a.next = 5, Object(o.h)(t.request({\r\n id: e.id,\r\n title: e.name,\r\n type: r && d.a.RECOMMENDATIONS,\r\n channelId: e.channelId,\r\n assets: [],\r\n loadingAssets: !0,\r\n withCategories: (null === (c = e.children) || void 0 === c ? void 0 : c.length) > 0\r\n }));\r\n case 5:\r\n return a.next = 7, Object(o.c)(P, e, i, r);\r\n case 7:\r\n if (a.t0 = a.sent, a.t0) {\r\n a.next = 10;\r\n break\r\n }\r\n a.t0 = [];\r\n case 10:\r\n if (l = a.t0, !n || null === (s = l) || void 0 === s || !s.length) {\r\n a.next = 15;\r\n break\r\n }\r\n return a.next = 14, Object(o.c)(L, l[0]);\r\n case 14:\r\n l = l.slice(1, i);\r\n case 15:\r\n return a.next = 17, Object(o.c)(b.a.getAssetsWithBadgesListFromRail, l, x);\r\n case 17:\r\n return O = a.sent, a.next = 20, Object(o.h)(t.complete(e.id, O));\r\n case 20:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), p)\r\n }\r\n\r\n function y(e, t, n) {\r\n var r;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 2, Object(o.j)(i.C.Recommendations.Selectors.isFeatureEnabled);\r\n case 2:\r\n r = a.sent, a.t0 = e.type, a.next = a.t0 === i.Z.KALTURA ? 6 : a.t0 === i.Z.KSQL ? 9 : a.t0 === i.Z.EXTERNAL ? 10 : 15;\r\n break;\r\n case 6:\r\n return a.next = 8, Object(o.c)(D, e, t, n);\r\n case 8:\r\n case 14:\r\n return a.abrupt(\"return\", a.sent);\r\n case 9:\r\n case 15:\r\n return a.abrupt(\"return\", void 0);\r\n case 10:\r\n if (r) {\r\n a.next = 12;\r\n break\r\n }\r\n return a.abrupt(\"return\", void 0);\r\n case 12:\r\n return a.next = 14, Object(o.c)(D, e, t, n, {\r\n menuUiArea: i.ab.VOD,\r\n menuItemId: e.id\r\n });\r\n case 16:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), E)\r\n }\r\n\r\n function w(e) {\r\n var t, n, r, c;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return t = e.meta, n = t.id, r = t.recommContext, a.next = 3, Object(o.j)(N.getRequestedPageNumber);\r\n case 3:\r\n if (c = a.sent, !r) {\r\n a.next = 11;\r\n break\r\n }\r\n return a.next = 7, Object(o.h)(i.C.Recommendations.Creators.loadAssets(r, !0));\r\n case 7:\r\n return a.next = 9, Object(o.i)([i.C.Recommendations.takeAssets(i.C.Recommendations.ActionType.SUCCESS, r), i.C.Recommendations.takeAssets(i.C.Recommendations.ActionType.FAIL, r)]);\r\n case 9:\r\n a.next = 15;\r\n break;\r\n case 11:\r\n return a.next = 13, Object(o.h)(l.b.loadAssets(n, c, u.a.ASSETS_PER_GRID_PAGE));\r\n case 13:\r\n return a.next = 15, Object(o.i)([k(l.a.SUCCESS, n), k(l.a.FAIL, n)]);\r\n case 15:\r\n return a.next = 17, Object(o.h)(A.addRequestedGridPage(1));\r\n case 17:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), S)\r\n }\r\n\r\n function U(e, t) {\r\n return Object(a.a)().wrap((function(n) {\r\n for (;;) switch (n.prev = n.next) {\r\n case 0:\r\n if (!e) {\r\n n.next = 4;\r\n break\r\n }\r\n return n.next = 3, Object(o.h)(A.loadGridAssets(e.menuItemId, e));\r\n case 3:\r\n return n.abrupt(\"return\");\r\n case 4:\r\n if (t) {\r\n n.next = 6;\r\n break\r\n }\r\n return n.abrupt(\"return\");\r\n case 6:\r\n return n.next = 8, Object(o.h)(A.loadGridAssets(t));\r\n case 8:\r\n case \"end\":\r\n return n.stop()\r\n }\r\n }), v)\r\n }\r\n\r\n function M(e, t) {\r\n var n, r, c;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.next = 2, Object(o.j)(N.getRail, e.id);\r\n case 2:\r\n if (n = a.sent) {\r\n a.next = 7;\r\n break\r\n }\r\n return n = {\r\n id: e.id,\r\n title: e.name,\r\n type: e.type === i.Z.EXTERNAL ? d.a.RECOMMENDATIONS : void 0,\r\n channelId: e.channelId,\r\n assets: [],\r\n withCategories: (null === (r = e.children) || void 0 === r ? void 0 : r.length) > 0\r\n }, a.next = 7, Object(o.h)(A.addRail(n));\r\n case 7:\r\n if (!t) {\r\n a.next = 16;\r\n break\r\n }\r\n return a.next = 10, Object(o.j)(N.getCategoryRail, t);\r\n case 10:\r\n if (n = a.sent, c = null === e || void 0 === e ? void 0 : e.children.find((function(e) {\r\n return e.id === t\r\n })), n || !c) {\r\n a.next = 16;\r\n break\r\n }\r\n return n = {\r\n id: c.id,\r\n title: c.name,\r\n type: c.type === i.Z.EXTERNAL ? d.a.RECOMMENDATIONS : void 0,\r\n channelId: c.channelId,\r\n assets: [],\r\n hasMore: !0\r\n }, a.next = 16, Object(o.h)(A.addCategoryRail(n));\r\n case 16:\r\n return a.next = 18, Object(o.h)(A.finishProcessing());\r\n case 18:\r\n return a.abrupt(\"return\", n);\r\n case 19:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), m)\r\n }\r\n\r\n function F(e) {\r\n var t, n, r, c, s, u, l, b, O, f, j;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return t = e.meta, n = t.menuItemId, r = t.categoryItemId, c = t.withCategories, s = t.channelId, a.next = 3, Object(o.j)(i.C.Menu.Selectors.getMainMenuItem, i.ab.VOD);\r\n case 3:\r\n if ((u = a.sent) && void 0 !== n) {\r\n a.next = 8;\r\n break\r\n }\r\n return a.next = 7, Object(o.h)(A.finishProcessing());\r\n case 7:\r\n return a.abrupt(\"return\");\r\n case 8:\r\n if (l = null === u || void 0 === u ? void 0 : u.children.find((function(e) {\r\n return e.id === n\r\n }))) {\r\n a.next = 13;\r\n break\r\n }\r\n return a.next = 12, Object(o.h)(A.finishProcessing());\r\n case 12:\r\n return a.abrupt(\"return\");\r\n case 13:\r\n return a.next = 15, Object(o.c)(M, l, r);\r\n case 15:\r\n if (b = a.sent, c) {\r\n a.next = 21;\r\n break\r\n }\r\n return O = s || b.channelId, a.next = 20, Object(o.c)(U, b.type === d.a.RECOMMENDATIONS ? {\r\n menuUiArea: i.ab.VOD,\r\n menuItemId: b.id\r\n } : void 0, O);\r\n case 20:\r\n return a.abrupt(\"return\");\r\n case 21:\r\n f = {\r\n request: A.addCategoryRail,\r\n complete: A.categoryRailLoadCompleted\r\n }, j = 0;\r\n case 23:\r\n if (!(j < ((null === l || void 0 === l ? void 0 : l.children.length) || 0))) {\r\n a.next = 29;\r\n break\r\n }\r\n return a.next = 26, Object(o.f)(y, l.children[j], f);\r\n case 26:\r\n j += 1, a.next = 23;\r\n break;\r\n case 29:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), h)\r\n }\r\n\r\n function G() {\r\n var e, t, n;\r\n return Object(a.a)().wrap((function(r) {\r\n for (;;) switch (r.prev = r.next) {\r\n case 0:\r\n return r.next = 2, Object(o.j)(i.C.Menu.Selectors.getMainMenuItem, i.ab.VOD);\r\n case 2:\r\n if (e = r.sent) {\r\n r.next = 5;\r\n break\r\n }\r\n return r.abrupt(\"return\");\r\n case 5:\r\n t = 0;\r\n case 6:\r\n if (!(t < ((null === e || void 0 === e ? void 0 : e.children.length) || 0))) {\r\n r.next = 13;\r\n break\r\n }\r\n return n = {\r\n request: A.addRail,\r\n complete: A.railLoadCompleted\r\n }, r.next = 10, Object(o.f)(y, e.children[t], n, 0 === t);\r\n case 10:\r\n t += 1, r.next = 6;\r\n break;\r\n case 13:\r\n case \"end\":\r\n return r.stop()\r\n }\r\n }), g)\r\n }\r\n\r\n function H() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(o.b)([Object(o.m)(r.INIT, G), Object(o.m)(r.INIT_NEXT_LEVEL, F), Object(o.o)(r.LOAD_GRID_ASSETS, w)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), I)\r\n }\r\n }, , function(e, t, n) {\r\n \"use strict\";\r\n var r, a, c, s;\r\n n.d(t, \"b\", (function() {\r\n return r\r\n })), n.d(t, \"c\", (function() {\r\n return a\r\n })), n.d(t, \"a\", (function() {\r\n return c\r\n })), n.d(t, \"d\", (function() {\r\n return s\r\n })),\r\n function(e) {\r\n e.ERROR = \"error\", e.ENDED = \"ended\", e.LOADED_DATA = \"loadeddata\", e.LOADED_METADATA = \"loadedmetadata\", e.LOAD_START = \"loadstart\", e.PAUSE = \"pause\", e.PLAY = \"play\", e.PLAYING = \"playing\", e.WAITING = \"waiting\", e.DURATION_CHANGED = \"durationchange\"\r\n }(r || (r = {})),\r\n function(e) {\r\n e.SUBTITLES = \"subtitles\", e.SUBTITLES_HARD_OF_HEARING = \"descriptions\"\r\n }(a || (a = {})),\r\n function(e) {\r\n e.AUDIO_DESCRIPTIONS = \"descriptions\"\r\n }(c || (c = {})),\r\n function(e) {\r\n e.SHOWING = \"showing\", e.DISABLED = \"disabled\"\r\n }(s || (s = {}))\r\n }, , , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"a\", (function() {\r\n return i\r\n }));\r\n n(5);\r\n var r = n(7),\r\n a = n(3);\r\n\r\n function c(e) {\r\n var t = e.bemModifier,\r\n n = e.coldStartText,\r\n c = e.coldStartTitle,\r\n s = e.railBackgroundImageName,\r\n i = e.requiresPrivacyConsent,\r\n o = e.onClickPrivacyConcentOptIn,\r\n u = i;\r\n return Object(a.jsx)(\"div\", {\r\n className: \"content-card-cell large\",\r\n id: \"ColdStartCard___\".concat(t),\r\n children: Object(a.jsx)(\"a\", {\r\n className: \"context-switch content-card large double-line filling-content-card others \".concat(s, \" \").concat(s ? \"\" : \"noBackgroundImage\"),\r\n children: Object(a.jsxs)(\"div\", {\r\n className: \"border-radius-container card-wrapper\",\r\n children: [Object(a.jsxs)(\"div\", {\r\n className: \"content-card-image\",\r\n children: [u ? null : Object(a.jsx)(\"span\", {\r\n className: \"ftu-title\",\r\n id: \"ColdStartCard_title___\".concat(t),\r\n children: c\r\n }), Object(a.jsx)(\"span\", {\r\n className: \"ftu-subtitle\",\r\n style: {\r\n whiteSpace: u ? \"pre-wrap\" : void 0\r\n },\r\n id: \"ColdStartCard_text___\".concat(t),\r\n children: u ? r.a[\"firstTimeUse.recommendations.optIn.invite\"] : n\r\n })]\r\n }), Object(a.jsx)(\"div\", {\r\n className: \"content-card-info\",\r\n children: u ? Object(a.jsx)(\"span\", {\r\n className: \"ftu-button cursor-pointer\",\r\n onClick: o,\r\n id: \"ColdStartCard_button___\".concat(t),\r\n children: r.a[\"firstTimeUse.recommendations.optIn.button\"]\r\n }) : null\r\n })]\r\n })\r\n })\r\n })\r\n }\r\n var s = n(194);\r\n\r\n function i(e) {\r\n var t = e.railId,\r\n n = e.railName,\r\n r = e.railBackgroundImageName,\r\n i = e.railDescription,\r\n o = e.className,\r\n u = e.coldStartTitle,\r\n l = e.requiresPrivacyConsent,\r\n d = e.onClickPrivacyConcentOptIn;\r\n return Object(a.jsx)(\"div\", {\r\n className: \"rail \".concat(o, \" cold-start\"),\r\n children: Object(a.jsxs)(\"div\", {\r\n className: \"rail-row\",\r\n id: \"ColdStartRail___\".concat(t),\r\n children: [Object(a.jsx)(\"header\", {\r\n className: \"rail-header\",\r\n children: Object(a.jsx)(\"h2\", {\r\n children: Object(a.jsx)(\"a\", {\r\n className: \"disabled-href\",\r\n id: \"ColdStartRail_name___\".concat(t),\r\n children: n\r\n })\r\n })\r\n }), Object(a.jsx)(s.a, {\r\n cards: [Object(a.jsx)(c, {\r\n bemModifier: t,\r\n railBackgroundImageName: r,\r\n coldStartText: i,\r\n coldStartTitle: u,\r\n requiresPrivacyConsent: l,\r\n onClickPrivacyConcentOptIn: d\r\n }, t)]\r\n })]\r\n })\r\n })\r\n }\r\n }, , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"b\", (function() {\r\n return r\r\n })), n.d(t, \"a\", (function() {\r\n return v\r\n })), n.d(t, \"e\", (function() {\r\n return h\r\n })), n.d(t, \"d\", (function() {\r\n return g\r\n })), n.d(t, \"c\", (function() {\r\n return N\r\n })), n.d(t, \"f\", (function() {\r\n return k\r\n }));\r\n var r, a = n(2),\r\n c = n(15),\r\n s = n(4),\r\n i = n(1),\r\n o = n(0),\r\n u = n(34),\r\n l = Object(a.a)().mark(I),\r\n d = Object(a.a)().mark(C),\r\n b = Object(a.a)().mark(x),\r\n O = Object(a.a)().mark(A),\r\n f = Object(a.a)().mark(_),\r\n j = Object(a.a)().mark(R),\r\n p = Object(a.a)().mark(T),\r\n E = Object(a.a)().mark(k);\r\n ! function(e) {\r\n e.LOAD = \"recordings/series/LOAD\", e.UPDATE = \"recordings/series/UPDATE\", e.FAIL = \"recordings/series/FAIL\", e.RESET = \"recordings/series/RESET\"\r\n }(r || (r = {}));\r\n var S = {\r\n load: function() {\r\n return {\r\n type: r.LOAD\r\n }\r\n },\r\n update: function(e) {\r\n return {\r\n type: r.UPDATE,\r\n payload: e\r\n }\r\n },\r\n fail: function(e) {\r\n return {\r\n type: r.FAIL,\r\n error: e\r\n }\r\n },\r\n reset: function() {\r\n return {\r\n type: r.RESET\r\n }\r\n }\r\n },\r\n v = {\r\n load: function() {\r\n return S.load()\r\n },\r\n reset: function() {\r\n return S.reset()\r\n }\r\n },\r\n m = {\r\n data: []\r\n };\r\n\r\n function h() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : m,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case r.UPDATE:\r\n return {\r\n data: t.payload\r\n };\r\n case r.FAIL:\r\n return Object(s.a)(Object(s.a)({}, e), {}, {\r\n error: t.error\r\n });\r\n case r.RESET:\r\n return m;\r\n case r.LOAD:\r\n default:\r\n return e\r\n }\r\n }\r\n var g = {\r\n getRecordings: function(e) {\r\n return e.recordings.series.data\r\n },\r\n getError: function(e) {\r\n return e.recordings.series.error\r\n }\r\n };\r\n\r\n function I() {\r\n var e, t, n, r;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, Object(i.j)(o.C.Dms.Selectors.getRecordings);\r\n case 3:\r\n return e = a.sent, t = e.npvrVersion, a.next = 7, o.C.Api.callApi(o.xb.getSeriesRecordings, t);\r\n case 7:\r\n return n = a.sent, a.next = 10, Object(i.j)(g.getRecordings);\r\n case 10:\r\n return r = a.sent, a.next = 13, Object(i.h)(S.update([].concat(Object(c.a)(n), Object(c.a)(r))));\r\n case 13:\r\n a.next = 19;\r\n break;\r\n case 15:\r\n return a.prev = 15, a.t0 = a.catch(0), a.next = 19, Object(i.h)(S.fail(o.Zb.fromError(a.t0)));\r\n case 19:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), l, null, [\r\n [0, 15]\r\n ])\r\n }\r\n\r\n function C(e, t, n, r) {\r\n var s, u, l;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n if (Number.isNaN(t)) {\r\n a.next = 13;\r\n break\r\n }\r\n return s = {\r\n type: r ? o.Hb.SEASON : o.Hb.SERIES,\r\n epgChannelId: e,\r\n recordingId: Number(t),\r\n seriesId: n,\r\n seasonNumber: r\r\n }, a.next = 4, Object(i.j)(g.getRecordings);\r\n case 4:\r\n if (u = a.sent, r) {\r\n a.next = 11;\r\n break\r\n }\r\n return l = u.filter((function(e) {\r\n return !(e.seriesId === s.seriesId && e.epgChannelId === s.epgChannelId && e.type === o.Hb.SEASON)\r\n })), a.next = 9, Object(i.h)(S.update([s].concat(Object(c.a)(l))));\r\n case 9:\r\n a.next = 13;\r\n break;\r\n case 11:\r\n return a.next = 13, Object(i.h)(S.update([s].concat(Object(c.a)(u))));\r\n case 13:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), d)\r\n }\r\n\r\n function x(e) {\r\n var t, n, r, c;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, Object(i.j)(o.C.Dms.Selectors.getRecordings);\r\n case 3:\r\n return t = a.sent, n = t.npvrVersion, a.next = 7, o.C.Api.callApi(o.xb.addSeriesRecordingByProgramId, e.id, n);\r\n case 7:\r\n return r = a.sent, c = r.recordingID, a.next = 11, Object(i.c)(C, e.channelEpgId, c, e.seriesId);\r\n case 11:\r\n return a.abrupt(\"return\", void 0);\r\n case 14:\r\n return a.prev = 14, a.t0 = a.catch(0), a.abrupt(\"return\", o.Zb.fromError(a.t0));\r\n case 17:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), b, null, [\r\n [0, 14]\r\n ])\r\n }\r\n\r\n function A(e, t, n, r) {\r\n var c, s;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, o.C.Api.callApi(o.xb.addSeriesRecordingBySeriesId, e, t, n, r);\r\n case 3:\r\n return c = a.sent, s = c.recordingID, a.next = 7, Object(i.c)(C, t, s, e, n);\r\n case 7:\r\n return a.abrupt(\"return\", void 0);\r\n case 10:\r\n return a.prev = 10, a.t0 = a.catch(0), a.abrupt(\"return\", o.Zb.fromError(a.t0));\r\n case 13:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), O, null, [\r\n [0, 10]\r\n ])\r\n }\r\n\r\n function _(e, t, n) {\r\n var r, c;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, o.C.Api.callApi(o.xb.addSeriesRecordingBySeriesIdFromSpecificSeason, e, t, n);\r\n case 3:\r\n return r = a.sent, c = r.recordingID, a.next = 7, Object(i.c)(C, t, c, e);\r\n case 7:\r\n a.next = 13;\r\n break;\r\n case 9:\r\n return a.prev = 9, a.t0 = a.catch(0), a.next = 13, Object(i.h)(S.fail(o.Zb.fromError(a.t0)));\r\n case 13:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), f, null, [\r\n [0, 9]\r\n ])\r\n }\r\n\r\n function R(e) {\r\n var t, n, r, c, s, l;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, Object(i.j)(o.C.Dms.Selectors.getRecordings);\r\n case 3:\r\n return t = a.sent, n = t.npvrVersion, a.next = 7, o.C.Api.callApi(o.xb.cancelSeriesRecording, e, n);\r\n case 7:\r\n return a.next = 9, Object(i.j)(g.getRecordings);\r\n case 9:\r\n return r = a.sent, c = r.filter((function(t) {\r\n return t.recordingId !== e.recordingId\r\n })), a.next = 13, Object(i.j)(u.d.getRecordings);\r\n case 13:\r\n return s = a.sent, l = s.filter((function(t) {\r\n return !(t.seriesId === e.seriesId && t.channelEpgId === e.epgChannelId && o.zb.getRecordingStatus(t) === o.wb.SCHEDULED && (!e.seasonNumber || e.seasonNumber === t.seasonNumber))\r\n })), a.next = 17, Object(i.h)(u.a.update(l));\r\n case 17:\r\n return a.next = 19, Object(i.h)(S.update(c));\r\n case 19:\r\n return a.abrupt(\"return\", void 0);\r\n case 22:\r\n return a.prev = 22, a.t0 = a.catch(0), a.abrupt(\"return\", o.Zb.fromError(a.t0));\r\n case 25:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), j, null, [\r\n [0, 22]\r\n ])\r\n }\r\n\r\n function T(e) {\r\n var t, n, r, c;\r\n return Object(a.a)().wrap((function(a) {\r\n for (;;) switch (a.prev = a.next) {\r\n case 0:\r\n return a.prev = 0, a.next = 3, Object(i.j)(g.getRecordings);\r\n case 3:\r\n return t = a.sent, n = t.filter((function(t) {\r\n return !(t.seriesId === e.seriesId && t.epgChannelId === e.epgChannelId && t.type === o.Hb.SEASON)\r\n })), a.next = 7, Object(i.b)(n.map((function(e) {\r\n return Object(i.c)(R, e)\r\n })));\r\n case 7:\r\n if (r = a.sent, !(c = r.find((function(e) {\r\n return void 0 !== e\r\n })))) {\r\n a.next = 11;\r\n break\r\n }\r\n throw c;\r\n case 11:\r\n return a.abrupt(\"return\", void 0);\r\n case 14:\r\n return a.prev = 14, a.t0 = a.catch(0), a.abrupt(\"return\", o.Zb.fromError(a.t0));\r\n case 17:\r\n case \"end\":\r\n return a.stop()\r\n }\r\n }), p, null, [\r\n [0, 14]\r\n ])\r\n }\r\n var N = {\r\n addBySerieIdSaga: A,\r\n cancelSeriesRecordingSaga: R,\r\n addBySerieIdFromSeasonSaga: _,\r\n cancelAllSeasonsFromSeriesRecordingSaga: T,\r\n addByProgramSaga: x\r\n };\r\n\r\n function k() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(i.b)([Object(i.m)(r.LOAD, I)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), E)\r\n }\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"b\", (function() {\r\n return r\r\n })), n.d(t, \"a\", (function() {\r\n return d\r\n })), n.d(t, \"e\", (function() {\r\n return O\r\n })), n.d(t, \"d\", (function() {\r\n return f\r\n })), n.d(t, \"c\", (function() {\r\n return j\r\n })), n.d(t, \"f\", (function() {\r\n return E\r\n }));\r\n var r, a = n(2),\r\n c = n(4),\r\n s = n(1),\r\n i = n(0),\r\n o = Object(a.a)().mark(p),\r\n u = Object(a.a)().mark(E);\r\n ! function(e) {\r\n e.REQUEST = \"entitlements/ppv/REQUEST\", e.SUCCESS = \"entitlements/ppv/SUCCESS\", e.FAIL = \"entitlements/ppv/FAIL\"\r\n }(r || (r = {}));\r\n var l = {\r\n request: function() {\r\n return {\r\n type: r.REQUEST\r\n }\r\n },\r\n success: function(e) {\r\n return {\r\n type: r.SUCCESS,\r\n payload: e\r\n }\r\n },\r\n fail: function(e) {\r\n return {\r\n type: r.FAIL,\r\n error: e\r\n }\r\n }\r\n },\r\n d = {\r\n request: function() {\r\n return l.request()\r\n }\r\n },\r\n b = {\r\n data: []\r\n };\r\n\r\n function O() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : b,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case r.REQUEST:\r\n return Object(c.a)({}, e);\r\n case r.SUCCESS:\r\n return {\r\n data: t.payload\r\n };\r\n case r.FAIL:\r\n return Object(c.a)(Object(c.a)({}, e), {}, {\r\n error: t.error\r\n });\r\n default:\r\n return e\r\n }\r\n }\r\n var f = {\r\n getPpvEntitlements: function(e) {\r\n return e.entitlements.ppv.data\r\n },\r\n getError: function(e) {\r\n return e.entitlements.ppv.error\r\n }\r\n },\r\n j = \"ENTITLEMENTS_PPV\";\r\n\r\n function p() {\r\n var e;\r\n return Object(a.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.prev = 0, t.next = 3, i.C.Pagination.callCompletedPaginatedApi(j, i.t.ENTITLEMENTS_API_PAGE_SIZE, i.F.listPpvHouseholdEntitlements);\r\n case 3:\r\n return e = t.sent, t.next = 6, Object(s.h)(l.success(e));\r\n case 6:\r\n t.next = 12;\r\n break;\r\n case 8:\r\n return t.prev = 8, t.t0 = t.catch(0), t.next = 12, Object(s.h)(l.fail(i.Zb.fromError(t.t0)));\r\n case 12:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), o, null, [\r\n [0, 8]\r\n ])\r\n }\r\n\r\n function E() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(s.b)([Object(s.o)(r.REQUEST, p)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), u)\r\n }\r\n }, , , , , function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"b\", (function() {\r\n return r\r\n })), n.d(t, \"a\", (function() {\r\n return d\r\n })), n.d(t, \"e\", (function() {\r\n return O\r\n })), n.d(t, \"d\", (function() {\r\n return f\r\n })), n.d(t, \"c\", (function() {\r\n return j\r\n })), n.d(t, \"f\", (function() {\r\n return E\r\n }));\r\n var r, a = n(2),\r\n c = n(4),\r\n s = n(1),\r\n i = n(0),\r\n o = Object(a.a)().mark(p),\r\n u = Object(a.a)().mark(E);\r\n ! function(e) {\r\n e.REQUEST = \"entitlements/collection/REQUEST\", e.SUCCESS = \"entitlements/collection/SUCCESS\", e.FAIL = \"entitlements/collection/FAIL\"\r\n }(r || (r = {}));\r\n var l = {\r\n request: function() {\r\n return {\r\n type: r.REQUEST\r\n }\r\n },\r\n success: function(e) {\r\n return {\r\n type: r.SUCCESS,\r\n payload: e\r\n }\r\n },\r\n fail: function(e) {\r\n return {\r\n type: r.FAIL,\r\n error: e\r\n }\r\n }\r\n },\r\n d = {\r\n request: function() {\r\n return l.request()\r\n }\r\n },\r\n b = {\r\n data: []\r\n };\r\n\r\n function O() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : b,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case r.REQUEST:\r\n return Object(c.a)({}, e);\r\n case r.SUCCESS:\r\n return {\r\n data: t.payload\r\n };\r\n case r.FAIL:\r\n return Object(c.a)(Object(c.a)({}, e), {}, {\r\n error: t.error\r\n });\r\n default:\r\n return e\r\n }\r\n }\r\n var f = {\r\n getCollectionEntitlements: function(e) {\r\n return e.entitlements.collection.data\r\n },\r\n getError: function(e) {\r\n return e.entitlements.collection.error\r\n }\r\n },\r\n j = \"ENTITLEMENTS_COLLECTION\";\r\n\r\n function p() {\r\n var e;\r\n return Object(a.a)().wrap((function(t) {\r\n for (;;) switch (t.prev = t.next) {\r\n case 0:\r\n return t.prev = 0, t.next = 3, i.C.Pagination.callCompletedPaginatedApi(j, i.t.ENTITLEMENTS_API_PAGE_SIZE, i.F.listCollectionHouseholdEntitlements);\r\n case 3:\r\n return e = t.sent, t.next = 6, Object(s.h)(l.success(e));\r\n case 6:\r\n t.next = 12;\r\n break;\r\n case 8:\r\n return t.prev = 8, t.t0 = t.catch(0), t.next = 12, Object(s.h)(l.fail(i.Zb.fromError(t.t0)));\r\n case 12:\r\n case \"end\":\r\n return t.stop()\r\n }\r\n }), o, null, [\r\n [0, 8]\r\n ])\r\n }\r\n\r\n function E() {\r\n return Object(a.a)().wrap((function(e) {\r\n for (;;) switch (e.prev = e.next) {\r\n case 0:\r\n return e.next = 2, Object(s.b)([Object(s.o)(r.REQUEST, p)]);\r\n case 2:\r\n case \"end\":\r\n return e.stop()\r\n }\r\n }), u)\r\n }\r\n }, function(e, t, n) {\r\n \"use strict\";\r\n n.d(t, \"b\", (function() {\r\n return r\r\n })), n.d(t, \"a\", (function() {\r\n return d\r\n })), n.d(t, \"e\", (function() {\r\n return O\r\n })), n.d(t, \"d\", (function() {\r\n return f\r\n })), n.d(t, \"c\", (function() {\r\n return j\r\n })), n.d(t, \"f\", (function() {\r\n return E\r\n }));\r\n var r, a = n(2),\r\n c = n(4),\r\n s = n(1),\r\n i = n(0),\r\n o = Object(a.a)().mark(p),\r\n u = Object(a.a)().mark(E);\r\n ! function(e) {\r\n e.REQUEST = \"entitlements/subscription/REQUEST\", e.SUCCESS = \"entitlements/subscription/SUCCESS\", e.FAIL = \"entitlements/subscription/FAIL\"\r\n }(r || (r = {}));\r\n var l = {\r\n request: function() {\r\n return {\r\n type: r.REQUEST\r\n }\r\n },\r\n success: function(e) {\r\n return {\r\n type: r.SUCCESS,\r\n payload: e\r\n }\r\n },\r\n fail: function(e) {\r\n return {\r\n type: r.FAIL,\r\n error: e\r\n }\r\n }\r\n },\r\n d = {\r\n request: function() {\r\n return l.request()\r\n }\r\n },\r\n b = {\r\n data: []\r\n };\r\n\r\n function O() {\r\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : b,\r\n t = arguments.length > 1 ? arguments[1] : void 0;\r\n switch (t.type) {\r\n case r.REQUEST:\r\n return Object(c.a)({}, e);\r\n case r.SUCCESS:\r\n return {\r\n data: t.payload\r\n };\r\n c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment