@viewlift/player-backup 2.0.121-backup → 2.0.123-backup

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/cjs/{autoNextVideo-30f8c89c.js → autoNextVideo-bf75ce72.js} +1 -1
  2. package/cjs/bundle.css +108 -107
  3. package/cjs/{caption-settings-3835231a.js → caption-settings-a3939365.js} +1 -1
  4. package/cjs/{features-e3fdf1e7.js → features-1948bd33.js} +1 -1
  5. package/cjs/generic-adf27555.js +1 -0
  6. package/cjs/icons-2609dbe4.js +1 -0
  7. package/cjs/{index-a5c150cc.js → index-0b0e69a1.js} +1 -1
  8. package/cjs/{index-de801167.js → index-3825262b.js} +1 -1
  9. package/cjs/index.js +1 -1
  10. package/cjs/multicamv2-84959d9f.js +1 -0
  11. package/cjs/multicamv2-86fc2c98.js +1 -0
  12. package/cjs/nextEpisodeButton-d3a4230d.js +1 -0
  13. package/cjs/playlist-e614b574.js +1 -0
  14. package/cjs/series-ff885888.js +1 -0
  15. package/cjs/series-v2-093961e8.js +1 -0
  16. package/cjs/series-v2-5023ef80.js +1 -0
  17. package/cjs/{settings-icon-7384b65d.js → settings-icon-341b6115.js} +1 -1
  18. package/cjs/skin-0d4790b3.js +1 -0
  19. package/cjs/{skin-e6d5161d.js → skin-391fe49c.js} +1 -1
  20. package/cjs/skin-41508f0d.js +1 -0
  21. package/cjs/skin-41c6a18e.js +1 -0
  22. package/cjs/skin-63ae6607.js +1 -0
  23. package/cjs/skin-93d77c5e.js +1 -0
  24. package/cjs/skin-b1bfde8c.js +1 -0
  25. package/cjs/skin-f0c3354a.js +1 -0
  26. package/cjs/skin-f6442d47.js +1 -0
  27. package/cjs/{start-begin-btn-d17055ca.js → start-begin-btn-bcb78add.js} +1 -1
  28. package/cjs/videoSelector-43f6ac8d.js +1 -0
  29. package/cjs/videoSelector-a3a8b9fa.js +1 -0
  30. package/cjs/{watch-live-btn-8a160941.js → watch-live-btn-3e7b1708.js} +1 -1
  31. package/esm/assets/icons.d.ts +4 -3
  32. package/esm/{autoNextVideo-068e496c.js → autoNextVideo-2e736edd.js} +1 -1
  33. package/esm/bundle.css +108 -107
  34. package/esm/{caption-settings-c9b18ef8.js → caption-settings-85f54d85.js} +1 -1
  35. package/esm/{features-96af00c0.js → features-f5e1f6d8.js} +1 -1
  36. package/esm/generic-93db3bbb.js +1 -0
  37. package/esm/helpers/skin.d.ts +5 -0
  38. package/esm/{icons-c139587c.js → icons-37daa6b3.js} +1 -1
  39. package/esm/{index-8bf8b43f.js → index-11b0bf34.js} +1 -1
  40. package/esm/{index-a012aae4.js → index-96a53c44.js} +1 -1
  41. package/esm/index.js +1 -1
  42. package/esm/multicamv2-0fed2b37.js +1 -0
  43. package/esm/multicamv2-93598643.js +1 -0
  44. package/esm/nextEpisodeButton-5954075c.js +1 -0
  45. package/esm/playlist-50110784.js +1 -0
  46. package/esm/series-f4732ee4.js +1 -0
  47. package/esm/series-v2-49bf1379.js +1 -0
  48. package/esm/series-v2-f376e2c7.js +1 -0
  49. package/esm/settings-icon-336390f5.js +1 -0
  50. package/esm/skin/news/events.d.ts +1 -0
  51. package/esm/skin/news/skin.d.ts +1 -0
  52. package/esm/{skin-f2e99bd5.js → skin-088df88e.js} +1 -1
  53. package/esm/skin-0f689204.js +1 -0
  54. package/esm/skin-2799020a.js +1 -0
  55. package/esm/skin-42981ba7.js +1 -0
  56. package/esm/skin-5356247b.js +1 -0
  57. package/esm/skin-7c0c3e8f.js +1 -0
  58. package/esm/skin-88fcb96a.js +1 -0
  59. package/esm/skin-bf4a77d7.js +1 -0
  60. package/esm/skin-e024d9b3.js +1 -0
  61. package/esm/{start-begin-btn-ff036cfe.js → start-begin-btn-0afa2def.js} +1 -1
  62. package/esm/videoSelector-12a6dc79.js +1 -0
  63. package/esm/videoSelector-f2197644.js +1 -0
  64. package/esm/{watch-live-btn-d4d27011.js → watch-live-btn-85cd433b.js} +1 -1
  65. package/package.json +1 -1
  66. package/cjs/generic-bfd81e0e.js +0 -1
  67. package/cjs/icons-79591410.js +0 -1
  68. package/cjs/index-12c927ad.js +0 -1
  69. package/cjs/multicamv2-6f471fb0.js +0 -1
  70. package/cjs/multicamv2-83af7dc3.js +0 -1
  71. package/cjs/nextEpisodeButton-f7d4f8e9.js +0 -1
  72. package/cjs/playlist-a6555cdd.js +0 -1
  73. package/cjs/series-72eca3c2.js +0 -1
  74. package/cjs/series-v2-4d51cc69.js +0 -1
  75. package/cjs/series-v2-add2a53f.js +0 -1
  76. package/cjs/skin-19f5ee87.js +0 -1
  77. package/cjs/skin-34064485.js +0 -1
  78. package/cjs/skin-4849e82b.js +0 -1
  79. package/cjs/skin-5b2feda8.js +0 -1
  80. package/cjs/skin-9e714900.js +0 -1
  81. package/cjs/skin-a4d456a2.js +0 -1
  82. package/cjs/videoSelector-7599aaf6.js +0 -1
  83. package/cjs/videoSelector-8834cfd9.js +0 -1
  84. package/esm/generic-dd89c778.js +0 -1
  85. package/esm/index-6861b023.js +0 -1
  86. package/esm/multicamv2-7fe85e6a.js +0 -1
  87. package/esm/multicamv2-8e508c51.js +0 -1
  88. package/esm/nextEpisodeButton-591509b7.js +0 -1
  89. package/esm/playlist-4c796e1f.js +0 -1
  90. package/esm/series-d46535b8.js +0 -1
  91. package/esm/series-v2-730cd221.js +0 -1
  92. package/esm/series-v2-cb05c6df.js +0 -1
  93. package/esm/settings-icon-e8ed293a.js +0 -1
  94. package/esm/skin-095e2bb8.js +0 -1
  95. package/esm/skin-16f83185.js +0 -1
  96. package/esm/skin-520efc38.js +0 -1
  97. package/esm/skin-70cec92b.js +0 -1
  98. package/esm/skin-a9816629.js +0 -1
  99. package/esm/skin-fa5461e2.js +0 -1
  100. package/esm/videoSelector-48609307.js +0 -1
  101. package/esm/videoSelector-da42dc2c.js +0 -1
@@ -0,0 +1 @@
1
+ import{f as l,d as e,e as i,j as n,k as t,l as o,m as s}from"./features-f5e1f6d8.js";import{f as r}from"./icons-37daa6b3.js";import{g as a}from"./player_instance-34118a5b.js";import{p as C,d as u}from"./skin-0f689204.js";import{g as d}from"./resolution-62be852a.js";import{a as v,i as c,b as p}from"./index-11b0bf34.js";import{U as h,d as m}from"./generic-93db3bbb.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/assertThisInitialized";import"./autoNextVideo-2e736edd.js";import"./util-28923483.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/slicedToArray";import"axios";import"js-cookie";import"ua-parser-js";import"./captions-b619441b.js";function f(f,b){a(f).addClass("skin_news"),function(){"Chrome"==m()&&import("./chromett-a3cbb2e1.js").then(function(l){var e=document.createElement("style");e.id="chromett",e.append("".concat(l.default)),document.head.appendChild(e)});import("./skin-bf4a77d7.js").then(function(l){var e=document.createElement("style");e.id="default_v2",e.append("".concat(l.default)),document.head.appendChild(e)})}(),function(e,i){var n=a(e);n&&n.on("loadeddata",function(){var n,t,o,s,r,a;(null===(n=d(e))||void 0===n?void 0:n.length)>0&&l(e,i),!(null!=i&&null!==(t=i.series)&&void 0!==t&&t.enable||null!==(o=window)&&void 0!==o&&null!==(s=o.app_data)&&void 0!==s&&null!==(r=s.appcmsMain)&&void 0!==r&&null!==(a=r.features)&&void 0!==a&&a.auto_play)||null!=i&&i.liveVideo||v(e,i),null!=i&&i.liveVideo||h()||c(e)})}(f,b),function(l){var e,i,n,t,o,s,r,d,v,c,p,h,m,f,b,B,y,L,j=a(l);null===(e=j.controlBar)||void 0===e||e.removeChild("VolumePanel"),null===(i=j.controlBar)||void 0===i||i.addChild("VolumePanel",{inline:!1},1);var g=null===(n=j.controlBar)||void 0===n?void 0:n.getChild("ProgressControl"),E=document.createElement("div");E.className="custom-spaced-progress-bar",g&&E.append(g.el());null===(t=j.controlBar)||void 0===t||null===(o=t.el())||void 0===o||o.append(E);var w='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>';j.el().insertBefore(C(w),null!==(s=j.el().firstChild)&&void 0!==s?s:null);var V=(null==j||null===(r=j.controlBar)||void 0===r||null===(d=r.getChild("PlayToggle"))||void 0===d||null===(v=d.el())||void 0===v?void 0:v.firstChild)||null;if(V){V.style.height="15px",V.style.width="15px";var x=u(V,j.paused()?"#vjs-icon-play":"#vjs-icon-pause");j.on("pause",function(){return x.setAttributeNS(null,"href","#vjs-icon-play")}),j.on("play",function(){return x.setAttributeNS(null,"href","#vjs-icon-pause")})}var M=(null==j||null===(c=j.controlBar)||void 0===c||null===(p=c.getChild("FullscreenToggle"))||void 0===p||null===(h=p.el())||void 0===h?void 0:h.firstChild)||null;if(M){M.style.height="20px",M.style.width="20px";var k=u(M,"#vjs-icon-fullscreen");j.on("fullscreenchange",function(){var l=j.isFullscreen_;null==k||k.setAttributeNS(null,"href",l?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var Z=(null==j||null===(m=j.controlBar)||void 0===m||null===(f=m.getChild("VolumePanel"))||void 0===f?void 0:f.el())||null;if(Z){var S=Z.querySelector(".vjs-mute-control .vjs-icon-placeholder");S.classList.add("vjs-svg-icon"),S.style.height="20px",S.style.width="20px";var N=u(S,j.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");j.on("volumechange",function(l){var e=j.volume();console.log(e,j.muted()),0==e||j.muted()?N.setAttributeNS(null,"href","#vjs-icon-mute"):e>0&&e<=.3?N.setAttributeNS(null,"href","#vjs-icon-volume1"):e>=.3&&e<=.7?N.setAttributeNS(null,"href","#vjs-icon-volume2"):N.setAttributeNS(null,"href","#vjs-icon-volume3")})}var A=(null==j||null===(b=j.controlBar)||void 0===b||null===(B=b.getChild("PictureInPictureToggle"))||void 0===B?void 0:B.el())||null;if(A){var _=null==A?void 0:A.querySelector(".vjs-icon-placeholder");_.style.height="20px",_.style.width="20px";var H=u(_,"#vjs-icon-pip");j.on("enterpictureinpicture",function(){H.setAttributeNS(null,"href","#vjs-icon-pip")})}var P=(null==j||null===(y=j.controlBar)||void 0===y||null===(L=y.getChild("SubsCapsButton"))||void 0===L?void 0:L.el())||null;if(P){var T=P.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");T.classList.add("vjs-svg-icon"),T.style.height="25px",T.style.width="25px";var q=u(T,"#vjs-icon-caps");q.setAttributeNS(null,"href","#vjs-icon-captions-off"),j.textTracks().on("change",function(l){for(var e=j.textTracks(),i=!1,n=0;n<e.length;n++){var t=e[n];if(("captions"===t.kind||"subtitles"===t.kind)&&"showing"===t.mode){i=!0;break}}i?q.setAttributeNS(null,"href","#vjs-icon-captions"):q.setAttributeNS(null,"href","#vjs-icon-captions-off")})}}(f),function(l,a){var C,u,d,v,c,p,h=(null==a?void 0:a.skin_settings)||{};null==h||h.slowMoBtn,null!=h&&h.skipBtn&&0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)&&e(l,"VL_ONE",SkipSvgV2());(null!=h&&h.rewindBtn&&0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)||1==(null==a?void 0:a.liveui))&&i(l,"VL_ONE",r());(null==a||null===(C=a.relatedVideos)||void 0===C||null===(u=C.content)||void 0===u?void 0:u.length)>0&&n(l,null==a?void 0:a.relatedVideos);(null==a||null===(d=a.streams)||void 0===d?void 0:d.length)>1&&t(l,null==a?void 0:a.streams);(null==a||null===(v=a.playlist)||void 0===v||null===(c=v.content)||void 0===c?void 0:c.length)>0&&o(l,null==a?void 0:a.playlist);null!=a&&null!==(p=a.series)&&void 0!==p&&p.enable&&s(l,a)}(f,b),p(f,b)}export{f as initialiseSkin};
@@ -0,0 +1 @@
1
+ import{E as e,F as t}from"./generic-93db3bbb.js";import{g as r}from"./player_instance-34118a5b.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"js-cookie";import"ua-parser-js";import"./captions-b619441b.js";import"./skin-0f689204.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";function o(o){import("./skin-2c638dc1.js").then(function(e){var t=document.createElement("style");t.id="carousel_homepage",t.append("".concat(e.default)),document.head.appendChild(t)}),i(),function(o){var i=document.getElementById("".concat(o)),n=r(o);i&&i.addEventListener("touchstart",function(){n.paused()?e(o):t(o)})}(o)}var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{o as initaliseSkin};
@@ -0,0 +1 @@
1
+ import{E as e,F as r}from"./generic-93db3bbb.js";import{g as t}from"./player_instance-34118a5b.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"js-cookie";import"ua-parser-js";import"./captions-b619441b.js";import"./skin-0f689204.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";function o(e){n(e),i(e)}var i=function(o){var i=t(o),n=document.getElementById("".concat(o));n&&n.addEventListener("touchstart",function(){i.paused()?e(o):r(o)})},n=function(e){var r=t(e);r.requestFullscreen=function(){},r.controlBar.hide()};export{o as initaliseSkin};
@@ -0,0 +1 @@
1
+ import{h as e,d as i,e as r,o as l,p as n,q as t,r as o,s as a}from"./features-f5e1f6d8.js";import{g as u}from"./player_instance-34118a5b.js";import{a as s,i as d,b as v}from"./index-11b0bf34.js";import{U as p,f as m,T as c,e as f,Y as y,k}from"./generic-93db3bbb.js";import"videojs-contrib-quality-menu";import b from"video.js";import g from"@babel/runtime/helpers/asyncToGenerator";import h from"@babel/runtime/regenerator";import{c as T,d as j}from"./icons-37daa6b3.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./resolution-62be852a.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/assertThisInitialized";import"./skin-0f689204.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-2e736edd.js";import"./util-28923483.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"axios";import"js-cookie";import"ua-parser-js";import"./captions-b619441b.js";var C={markerStyle:{width:"5px","background-color":"red"},markerTip:{display:!1,text:function(e){return e.title},time:function(e){return e.time}},onMarkerClick:function(e){},markers:[],duration:0};function w(){return(w=g(h.mark(function e(i,r){var l,n,t,o,a,s;return h.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:l=u(i),(n=l.seekable())&&n.length>0&&(t=n.start(0),o=n.end(n.length-1),a=o-t,l.markers({markerStyle:{width:"4px","background-color":"#576478"},markerTip:{display:!1},duration:a||0}),l.markers.initializeMarker(),s=E(r,a),l.markers.add(s));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function E(e,i){var r=(new Date).getTime(),l=new Date(r-1e3*i).getTime();return e.filter(function(e){var i=new Date(e.formatted_startdate).getTime();return i>=l&&i<=r}).map(function(e){var i=new Date(e.formatted_startdate).getTime()-l;return{key:e.programId,title:e.title,time:i/1e3}})}function M(i,r){var l=u(i);l&&(l.on("loadeddata",function(){var e,n,t,o,a,v,m,c,f,y=(null==r||null===(e=r.dvrConfig)||void 0===e?void 0:e.programs)||[];l.qualityLevels()&&l.qualityLevels().length&&function(e){var i=u(e);i&&(null==i||i.qualityMenu,i.qualityMenu({useResolutionLabels:!0}))}(i),!(null!=r&&null!==(n=r.series)&&void 0!==n&&n.enable||null!==(t=window)&&void 0!==t&&null!==(o=t.app_data)&&void 0!==o&&null!==(a=o.appcmsMain)&&void 0!==a&&null!==(v=a.features)&&void 0!==v&&v.auto_play)||null!=r&&r.liveVideo||s(i,r),null!=r&&r.liveVideo||p()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===siteId||d(i);var k=(null==r||null===(m=r.epg)||void 0===m?void 0:m.programSubType)||"";null!=r&&null!==(c=r.dvrConfig)&&void 0!==c&&c.enable&&null!=r&&r.isDvrEnabled&&null!=r&&null!==(f=r.epg)&&void 0!==f&&f.enable&&"LIVE"===(null==k?void 0:k.toUpperCase())&&y&&y.length&&function(e,i){w.apply(this,arguments)}(i,y)}),l.one("play",function(){var r,l,n,t;null!==(r=window)&&void 0!==r&&null!==(l=r.customData)&&void 0!==l&&l.iframeOverlayUrl&&e(i,null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t?void 0:t.iframeOverlayUrl)}))}function S(e,s){u(e).addClass("skin_vlone"),M(e,s),function(e,u){var s,d,p,b,g,h,C,w,E,M,S,B,_,L,q,A=(null==u||null===(s=u.res)||void 0===s||null===(d=s.video)||void 0===d?void 0:d.isSSAIEnabled)||!1,V=m(null==u?void 0:u.res,e)||{};V.src;var x=(null==u?void 0:u.skin_settings)||{};null!=x&&x.skipBtn&&0==(null==u?void 0:u.liveVideo)&&0==(null==u?void 0:u.liveui)&&i(e,"VL_ONE",T());(null!=x&&x.rewindBtn&&0==(null==u?void 0:u.liveVideo)&&0==(null==u?void 0:u.liveui)||1==(null==u?void 0:u.liveui))&&r(e,"VL_ONE",j());(null==u||null===(p=u.relatedVideos)||void 0===p||null===(b=p.content)||void 0===b?void 0:b.length)>0&&l(e,null==u?void 0:u.relatedVideos);null!=u&&null!==(g=u.series)&&void 0!==g&&g.enable&&n(e,u);(null==u||null===(h=u.streams)||void 0===h?void 0:h.length)>1&&t(e,null==u?void 0:u.streams);if(v(e,u),c(e,u),"MEDIA_TAILOR"==(null===(C=window)||void 0===C||null===(w=C.app_data)||void 0===w||null===(E=w.appcmsMain)||void 0===E||null===(M=E.adsConfig)||void 0===M?void 0:M.vodAdSticherProvider)&&null!==(S=window)&&void 0!==S&&null!==(B=S.app_data)&&void 0!==B&&null!==(_=B.appcmsMain)&&void 0!==_&&null!==(L=_.adsConfig)&&void 0!==L&&L.vodAdClientSideTracking&&A){var D,I=null;if(null!=u&&null!==(D=u.series)&&void 0!==D&&D.enable){var O,P,R,N=null===(O=f())||void 0===O||null===(P=O.video)||void 0===P||null===(R=P.gist)||void 0===R?void 0:R.id,U=k(),z=(null==U?void 0:U.get(N))||{t:0,p:0},H=z.t;z.p<95&&(I=H)}else{var $=u.watchHistoryResumeTime;u.watchedPercentage<95&&(I=$)}y(e,I)}if(null!=u&&null!==(q=u.dvrConfig)&&void 0!==q&&q.enable&&null!=u&&u.isDvrEnabled){var G,Y,F=(null==u||null===(G=u.epg)||void 0===G?void 0:G.programSubType)||"";null!=u&&null!==(Y=u.epg)&&void 0!==Y&&Y.enable?"LIVE"===(null==F?void 0:F.toUpperCase())&&(o(e,u),a(e,u)):(o(e,u),a(e,u))}}(e,s),B(e,s)}b.registerPlugin("markers",function(e){var i=b.mergeOptions(C,e),r={},l=[],n=this,t=null;function o(){l.sort(function(e,r){return i.markerTip.time(e)-i.markerTip.time(r)})}function a(e){e.forEach(function(e){n.el().querySelector(".vjs-progress-holder").appendChild(function(e){var l=b.dom.createEl("div",{},{"data-marker-key":e.key,"data-marker-time":i.markerTip.time(e)});return s(e,l),l.addEventListener("click",function(l){var t=!1;if("function"==typeof i.onMarkerClick&&(t=!1===i.onMarkerClick(e)),!t){var o=this.getAttribute("data-marker-key");n.currentTime(i.markerTip.time(r[o]))}}),i.markerTip.display&&function(e){e.addEventListener("mouseover",function(){var l=r[e.getAttribute("data-marker-key")];t&&(i.markerTip.html?t.querySelector(".vjs-tip-inner").innerHTML=i.markerTip.html(l):t.querySelector(".vjs-tip-inner").innerText=i.markerTip.text(l),t.style.left=u(l)+"%",t.style.visibility="visible")}),e.addEventListener("mouseout",function(){t&&(t.style.visibility="hidden")})}(l),l}(e)),r[e.key]=e,l.push(e)}),o()}function u(e){return i.markerTip.time(e)/i.duration*100}function s(e,r){r.className="vjs-marker ".concat(e.class||""),Object.keys(i.markerStyle).forEach(function(e){r.style[e]=i.markerStyle[e]});var l=e.time/i.duration;(l<0||l>1)&&(r.style.display="none");var n=u(e);n>=99.5&&(n=99.5),r.style.left=n+"%"}n.markers={getMarkers:function(){return l},initializeMarker:function(){t=b.dom.createEl("div",{className:"vjs-tip",innerHTML:"<div class='vjs-tip-arrow'></div><div class='vjs-tip-inner'></div>"}),n.el().querySelector(".vjs-progress-holder").appendChild(t)},add:function(e){a(e)},update:function(e,r){!function(e,r){e.forEach(function(e){var l=n.el().querySelector(".vjs-marker[data-marker-key='"+e.key+"']"),t=i.markerTip.time(e);l?(r||l.getAttribute("data-marker-time")!==t)&&(s(e,l),l.setAttribute("data-marker-time",t)):a([e])}),o()}(e,r)}}});var B=function(e,i){var r,l,n,t,o,a,s,d,v,p,m,c,f=u(e),y=(null==i?void 0:i.theme)||{},k=b.dom.$(".vjs-play-progress"),g=b.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");g&&(g.style.color="".concat(null===(r=window)||void 0===r||null===(l=r.app_data)||void 0===l||null===(n=l.appcmsMain)||void 0===n||null===(t=n.brand)||void 0===t||null===(o=t.cta)||void 0===o||null===(a=o.primary)||void 0===a?void 0:a.backgroundColor)),k&&(k.style.background="".concat(null===(s=window)||void 0===s||null===(d=s.app_data)||void 0===d||null===(v=d.appcmsMain)||void 0===v||null===(p=v.brand)||void 0===p||null===(m=p.cta)||void 0===m||null===(c=m.primary)||void 0===c?void 0:c.backgroundColor));var h=f.getChild("BigPlayButton")||null;(null==y?void 0:y.progressBarColor)&&k&&(k.style.background=y.progressBarColor),(null==y?void 0:y.playButtonBackgroundColor)&&h&&(h.el().style.background=y.playButtonBackgroundColor),(null==y?void 0:y.playButtonColor)&&g&&(g.style.color=y.playButtonColor),(null==y?void 0:y.playButtonType)&&("square"==(null==y?void 0:y.playButtonType)?h.el().style.borderRadius=".3em":h.el().style.borderRadius="1.3em")};export{S as initialiseSkin};
@@ -0,0 +1 @@
1
+ import{a as e,b as t,c as s,d as o,e as i}from"./features-f5e1f6d8.js";import{e as r,T as n}from"./generic-93db3bbb.js";import{S as l,M as a,a as m,N as d,b as u,R as p}from"./icons-37daa6b3.js";import{g as c}from"./player_instance-34118a5b.js";import{b}from"./skin-0f689204.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./resolution-62be852a.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/assertThisInitialized";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"./captions-b619441b.js";import"@babel/runtime/helpers/slicedToArray";function v(v,f){c(v).addClass("skin_default"),n(v,f),import("./skin-71be210e.js").then(function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)}),function(e,t){0==t.liveVideo&&0==t.liveui&&o(e,"default",u());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&i(e,"default",p())}(v,f),function(o,i){var n=c(o),a=(null==i?void 0:i.sres)||null;n.on("loadeddata",function(){e(o,"default",l()),a&&import("./nextEpisodeButton-5954075c.js").then(function(e){e.initaliseFunctionality(i.sres.seasons,r())})}),n.one("loadedmetadata",function(){var e;a&&(t(o,null==i||null===(e=i.sres)||void 0===e?void 0:e.seasons,i),s(i.sres,i.res,o))})}(v,f),function(e,t){var s,o,i,r,n=c(e),l=document.getElementsByClassName("vjs-current-time")[0],u=document.getElementsByClassName("vjs-duration")[0],p=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(l&&(l.style.display="none"),u&&(u.style.display="none"),p&&(p.style.display="none"));null===(s=n.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(o=s.el())||void 0===o||o.appendChild(b(a(window.controlsColor))),null===(i=n.controlBar.getChild("FullscreenToggle"))||void 0===i||null===(r=i.el())||void 0===r||r.appendChild(b(m(window.controlsColor)));var v=n.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(b(d()));var f=document.createElement("div");f.classList.add("caption-header"),v.querySelector(".vjs-menu-content").insertBefore(f,v.querySelector(".vjs-menu-item"))}(v,f)}export{v as initialiseSkin};
@@ -0,0 +1 @@
1
+ var n=".video-js.skin_news .vjs-button>.vjs-icon-placeholder:before {\n font-size: 2.2em;\n line-height: 2.6;\n}\n.video-js.skin_news .vjs-control-bar{\n z-index: 1 !important;\n height: 5em !important;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%) !important;\n}\n\n.video-js.skin_news .vjs-fade>* {\n visibility: hidden !important;\n opacity: 0 !important;\n transition: visibility 1s, opacity 1s !important;\n}\n\n.video-js.skin_news .custom-spaced-progress-bar {\n position: absolute;\n width: 100%;\n display: flex;\n height: 0.5em;\n top: -0.5em;\n}\n\n.video-js.skin_news .vjs-progress-control {\n /* left: -6px; */\n position: relative;\n width: 100%;\n height: 0.5em;\n transition: height 0.1s, top 0.1s;\n}\n\n\n.video-js.skin_news.vjs-live .vjs-current-time {\n display: none !important;\n}\n\n.video-js.skin_news .vjs-custom-control-spacer {\n display: block;\n flex: 1 1 auto;\n}\n\n.video-js.skin_news .vjs-progress-control .vjs-progress-holder {\n margin: 0 12px 0 12px;\n}\n.video-js.skin_news .vjs-remaining-time.vjs-time-control.vjs-control{\n display: none;\n}\n\n.video-js.skin_news button.vjs-control.vjs-button.vjs-slowmo-button {\n font-size: 14px;\n font-weight: 500;\n align-self: center;\n height: min-content;\n padding: 5px 2px;\n border-radius: 8px;\n}\n\n.video-js.skin_news .vjs-progress-control .vjs-progress-holder{\n height: 6px !important;\n}\n\n.video-js.skin_news .vjs-play-progress:before {\n font-size: 1.5em;\n line-height: unset;\n top: -0.3333333333em;\n}\n\n.video-js.skin_news .vjs-play-progress .vjs-time-tooltip {\n display: none !important;\n}\n\n/* */\n.video-js.skin_news .vjs-mouse-display{\n font-size: 1.6666666667em;\n}\n\n.video-js.skin_news .vjs-progress-control:hover .vjs-progress-holder {\n font-size: 1em !important;\n}\n\n.video-js.skin_news .vjs-button{\n width: 5.3em;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n\n.video-js.skin_news .vjs-fullscreen .icon-minimize,\n.icon-maximize {\n display: block;\n height: 32px;\n}\n\n.video-js.skin_news .vjs-playback-rate .vjs-playback-rate-value{\n line-height: 4;\n}\n\n.video-js.skin_news .vjs-fullscreen .icon-maximize,\n.icon-minimize {\n display: none;\n height: 32px;\n}\n\n.video-js.skin_news button.vjs-play-control.vjs-control.vjs-button{\n outline: none !important;\n}\n.video-js.skin_news .vjs-fullscreen-control .vjs-icon-placeholder:before,\n.vjs-icon-fullscreen-enter:before {\n /* content: '' !important; */\n}\n\n.video-js.skin_news button.vjs-fullscreen-control.vjs-control.vjs-button {\n display: flex;\n justify-content: center;\n align-items: center;\n /* transform: rotate(90deg); */\n}\n\n.video-js.skin_news .vjs-subs-caps-button .vjs-icon-placeholder:before{\n display: none;\n}\n.video-js.skin_news .vjs-volume-panel .vjs-volume-control{\n margin-left: -10px;\n}\n\n.video-js.skin_news .skipbtn:hover{\n cursor: pointer;\n}\n\n.video-js.skin_news .rewindbtn:hover{\n cursor: pointer;\n}\n\n.video-js.skin_news .vjs-seek-to-live-control.vjs-control{\n position: relative;\n}\n\n.video-js.skin_news.vjs-paused .vjs-big-play-button {\n width: 90px;\n height: 90px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n margin: auto;\n font-size: 6em;\n line-height: 1.4em;\n border: 0.05em solid;\n color: inherit;\n}\n.video-js.skin_news .vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{\n font-weight: bold;\n}\n\n.video-js.skin_news .vjs-menu > ul.vjs-menu-content{\n bottom: 2.4em !important;\n right: -1em;\n z-index: 1;\n}\n\n.video-js.skin_news .vjs-chromecast-button .vjs-icon-placeholder {\n width: 17px !important;\n height: 17px !important;\n}\n.settings-selector-icon>svg{\n height: 17px !important;\n width: 17px !important;\n}\n\n\n.video-js.skin_news button.vjs-rewind-button{\n cursor: pointer;\n}\n.video-js.skin_news .vjs-remaining-time.vjs-time-control.vjs-control {\n display: block;\n font-size: 11px;\n display: flex;\n justify-content: center;\n align-items: center;\n user-select: none;\n}\n.video-js.skin_news.vjs-live .vjs-remaining-time.vjs-time-control.vjs-control{\n display: none;\n}\n\n.video-js.skin_news button.vjs-subs-caps-button.vjs-menu-button.vjs-menu-button-popup.vjs-button{\n height: min-content;\n width: min-content;\n}\n.video-js.skin_news .vjs-volume-panel.vjs-volume-panel-vertical{\n width: 6em;\n}\n\n.video-js.skin_news .content{\n bottom: 3.4rem !important;\n right: -4rem !important; \n}\n\n.setting-icon > svg{\n height:18px !important;\n}\n\n.output-overlay{\n position: absolute;\n bottom: 0;\n height: 100%;\n width: 100%;\n z-index: 0;\n border: 0;\n pointer-events:none\n}\n\niframe{\n width: 100%;\n height: 100%;\n}\n\n.video-js.skin_news .vjs-live-control{\n align-items: center;\n}\n.video-js.skin_news .vjs-live-control.vjs-control .vjs-live-display{\n height: 2.2em;\n display: flex;\n align-items: center;\n font-family: monospace;\n width: 4em;\n justify-content: center;\n background: red;\n margin: 4px 0px 4px 12px;\n}\n\n@media(max-width:600px){\n .tvProviderImage{\n display: none\n }\n .video-js.skin_news .vjs-fullscreen .icon-minimize,\n .icon-maximize {\n height: 30px !important;\n }\n\n .video-js.skin_news .vjs-fullscreen .icon-maximize,\n .icon-minimize {\n height: 30px !important;\n }\n .video-js.skin_news .vjs-volume-panel.vjs-volume-panel-vertical{\n width: 4.5em;\n }\n .video-js.skin_news button.vjs-fullscreen-control.vjs-control.vjs-button>span.vjs-icon-placeholder::before {\n height: min-content;\n }\n\n .video-js.skin_news button.vjs-slowmo-button{\n display: none;\n }\n .video-js.skin_news button.vjs-rewind-button{\n display: none;\n }\n .video-js.skin_news button.vjs-rewind-button>svg{\n height: 20px;\n }\n .video-js.skin_news .vjs-button{\n width: 4.8em;\n }\n .video-js.skin_news .widget-selection{\n display: none;\n }\n .video-js.skin_news .container{\n display: none !important;\n }\n .video-js.skin_news .vjs-control-bar{\n height: 4em !important;\n }\n .video-js.skin_news .vjs-button>.vjs-icon-placeholder:before{\n font-size: 2.5em;\n line-height: 1.5;\n }\n .video-js.skin_news .vjs-play-progress:before {\n font-size: 1.2em;\n position: absolute;\n right: -0.5em;\n z-index: 1;\n}\n.video-js.skin_news button.vjs-skip-button>svg{\n height: 20px;\n}\n.video-js.skin_news button.vjs-big-play-button {\n width: 50px !important;\n height: 50px !important;\n font-size: 2.1rem !important;\n}\n\n.stream-selector-icon>svg{\n width: 24px;\n height: 24px;\n}\n.video-js.skin_news.vjs-live .vjs-progress-control .vjs-progress-holder{\n margin: 0 12px 0 12px;\n}\n.video-js.skin_news .vjs-seek-to-live-text{\n font-size: 12px;\n}\n.video-js.skin_news .vjs-progress-control .vjs-progress-holder {\n margin: 0 12px 0 12px;\n}\n}\n.video-js.skin_news.vjs-paused .vjs-big-play-button {\n width: 90px;\n height: 90px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n margin: auto;\n font-size: 6em;\n line-height: 1.4em;\n}\n\n.video-js.skin_news .vjs-volume-panel.vjs-control.vjs-volume-panel-horizontal:hover .vjs-volume-control.vjs-control.vjs-volume-horizontal {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n transition: width 0.1s;\n}\n\n.video-js.skin_news .vjs-volume-panel.vjs-control.vjs-volume-panel-horizontal:active .vjs-volume-control.vjs-control.vjs-volume-horizontal {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n transition: width 0.1s;\n}\n\n@media (max-width: 600px) {\n .video-js.skin_news .vjs-progress-control .vjs-progress-holder{\n height: 5px !important;\n }\n .video-js.skin_news button.vjs-big-play-button {\n width: 50px !important;\n height: 50px !important;\n font-size: 2.1rem !important;\n }\n\n .vjs-playback-rate.vjs-menu-button.vjs-menu-button-popup.vjs-control.vjs-button{\n display: none;\n }\n .video-js.skin_news .vjs-menu > ul.vjs-menu-content {\n bottom: 2.4em !important;\n right: -1em;\n z-index: 1;\n}\n\n}\n\n.vjs-svg-icon{\n content: none !important;\n fill: none !important;\n}\n";export{n as default};
@@ -0,0 +1 @@
1
+ import{g as e}from"./player_instance-34118a5b.js";import{f as r,n as t}from"./features-f5e1f6d8.js";import{g as i}from"./resolution-62be852a.js";import{r as o}from"./captions-b619441b.js";import"video.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./generic-93db3bbb.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"./skin-0f689204.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/assertThisInitialized";function s(s,a){import("./skin-271fa63f.js").then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(t,s){e(t).on("loadeddata",function(){var e;(null===(e=i(t))||void 0===e?void 0:e.length)>0&&r(t,s),null!=s&&s.disableCaptions&&o(t)})}(s,a),function(r){var i=e(r);i.controls(!1),t(r)}(s)}export{s as initialiseSkin};
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/classCallCheck";import r from"@babel/runtime/helpers/createClass";import e from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{s as l}from"./icons-c139587c.js";import{g as a}from"./index-a012aae4.js";import"./player_instance-34118a5b.js";function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}var c=i.getComponent("Component"),u=function(){e(f,c);var u,m,p=(u=f,m=s(),function(){var t,r=o(u);if(m){var e=o(this).constructor;t=Reflect.construct(r,arguments,e)}else t=r.apply(this,arguments);return n(this,t)});function f(r,e){var n,o;t(this,f),(o=p.call(this,r,e)).el().innerHTML=l();var i=(null==e||null===(n=e.dvrConfig)||void 0===n?void 0:n.programs)||[];return o.on("click",function(){var t=null==r?void 0:r.seekable();if(t&&t.length>0){var e=a(i,t);r.currentTime(e),r.play()}}),o}return r(f,[{key:"createEl",value:function(){return i.dom.createEl("button",{className:"vjs-control vjs-button watch-begin-btn",role:"button",tabIndex:0,title:"Start From Beginning"})}}]),f}();export{u as default};
1
+ import t from"@babel/runtime/helpers/classCallCheck";import r from"@babel/runtime/helpers/createClass";import e from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{s as l}from"./icons-37daa6b3.js";import{g as a}from"./index-96a53c44.js";import"./player_instance-34118a5b.js";function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}var c=i.getComponent("Component"),u=function(){e(f,c);var u,m,p=(u=f,m=s(),function(){var t,r=o(u);if(m){var e=o(this).constructor;t=Reflect.construct(r,arguments,e)}else t=r.apply(this,arguments);return n(this,t)});function f(r,e){var n,o;t(this,f),(o=p.call(this,r,e)).el().innerHTML=l();var i=(null==e||null===(n=e.dvrConfig)||void 0===n?void 0:n.programs)||[];return o.on("click",function(){var t=null==r?void 0:r.seekable();if(t&&t.length>0){var e=a(i,t);r.currentTime(e),r.play()}}),o}return r(f,[{key:"createEl",value:function(){return i.dom.createEl("button",{className:"vjs-control vjs-button watch-begin-btn",role:"button",tabIndex:0,title:"Start From Beginning"})}}]),f}();export{u as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import a from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{g as l,e as s}from"./icons-37daa6b3.js";import{I as d,X as r}from"./generic-93db3bbb.js";import{f as c,s as m,g as u,h as v,j as p,i as h}from"./skin-0f689204.js";import{a as y}from"./autoNextVideo-2e736edd.js";import{g as b}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./player_instance-34118a5b.js";import"js-cookie";import"ua-parser-js";import"./captions-b619441b.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"./util-28923483.js";import"@babel/runtime/helpers/typeof";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var C=i.getComponent("Component"),g=function(){o(N,C);var g,E,I=(g=N,E=f(),function(){var e,t=a(g);if(E){var o=a(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function N(t){var o,n,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,N),(a=I.call(this,t,i)).playerId=i.playerId,a.seriesData=i.sres,a.videos=i.related.content,a.cb=(null==i||null===(o=i.related)||void 0===o?void 0:o.cb)||null,a.autoNext=(null==i||null===(n=i.related)||void 0===n?void 0:n.autoNext)||!1,a.currentVideoData=i.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(r(0),y({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(N,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(l())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=i.dom.createEl("div",{className:"video-selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;e.handleTabIndexSelector(),null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var a=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(a),i.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),u(this.playerId,o)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r(e+1);for(var o=i.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),d(this.playerId,this.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})}},{key:"handleTabIndexSelector",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var n=document.getElementsByClassName("video-accessibility"),a=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,i=0;i<a;i++)document.getElementsByClassName("recommended -".concat(i))[0]&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var n=document.getElementsByClassName("video-accessibility"),a=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,i=0;i<a;i++)document.getElementsByClassName("recommended -".concat(i))&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=i.dom.createEl("div",{className:"video-selector-head"}),a=i.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(s())});a.onkeydown=function(n){"Enter"===n.key&&(e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex())},a.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex()};for(var l=i.dom.createEl("div",{className:"video-selector-title",innerHTML:b("relatedVideoTitle")||"Recommended"}),d=i.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),r=i.dom.createEl("div",{className:"video-container video-accessibility"}),c=function(e){var o,n,a,l,s,c,m,u,v=i.dom.createEl("div",{className:"video -".concat(e)}),p=i.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});p.setAttribute("video-idx",e),p.onkeydown=function(o){"Enter"===o.key&&t.loadVideoAssetById(e)},p.onclick=function(){t.loadVideoAssetById(e)};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(h(null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||h(null===(a=window)||void 0===a||null===(l=a.app_data)||void 0===l||null===(s=l.appcmsMain)||void 0===s||null===(c=s.images)||void 0===c?void 0:c.placeholderCover)),y.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),p.append(y);var b=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title)||"")});i.dom.appendContent(v,p),i.dom.appendContent(v,b),i.dom.appendContent(r,v),i.dom.appendContent(d,r)},m=0;m<this.videos.length;m++)c(m);i.dom.appendContent(n,l),i.dom.appendContent(n,a),i.dom.appendContent(e,n),i.dom.appendContent(e,d),p(this.playerId,e)}}]),N}();export{g as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,e as l}from"./icons-37daa6b3.js";import{I as s,X as d}from"./generic-93db3bbb.js";import{f as c,s as m,g as p,j as u,k as v}from"./skin-0f689204.js";import{a as h}from"./autoNextVideo-2e736edd.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./player_instance-34118a5b.js";import"js-cookie";import"ua-parser-js";import"./captions-b619441b.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"./util-28923483.js";import"@babel/runtime/helpers/typeof";function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var y=a.getComponent("Component"),g=function(){o(N,y);var g,C,E=(g=N,C=b(),function(){var e,t=i(g);if(C){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function N(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,N),(i=E.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d(0),h({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(N,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),o.style.right="0px",m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"),o.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),p(this.playerId,o)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var o,n,i,r,l,p=a.dom.createEl("div",{className:"video -".concat(e)}),u=a.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(t.playerId,t.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})};var h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat((null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r?void 0:r.fallbackImage)),h.alt="No Thumbnail Available",u.append(h);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(l=t.videos[e])||void 0===l?void 0:l.title)||"")});a.dom.appendContent(p,u),a.dom.appendContent(p,f),a.dom.appendContent(m,p),a.dom.appendContent(c,m)},h=0;h<this.videos.length;h++)p(h);a.dom.appendContent(n,i),a.dom.appendContent(n,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}]),N}();export{g as default};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import l from"video.js";import{j as i}from"./icons-c139587c.js";function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}var s=l.getComponent("Component"),c=function(){r(p,s);var c,u,m=(c=p,u=a(),function(){var e,t=o(c);if(u){var r=o(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return n(this,e)});function p(t,r){var n;return e(this,p),n=m.call(this,t,r),r.userId,r.siteOwner,n.el().innerHTML=i(),n.on("click",function(){t&&t.seekable()&&(t.currentTime(t.seekable().end(0)),t.play())}),n}return t(p,[{key:"createEl",value:function(){return l.dom.createEl("button",{className:"vjs-control vjs-button dvr-watch-live-btn",role:"button",tabIndex:0,title:"Watch Live"})}}]),p}();export{c as default};
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import l from"video.js";import{k as i}from"./icons-37daa6b3.js";function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}var s=l.getComponent("Component"),c=function(){r(p,s);var c,u,m=(c=p,u=a(),function(){var e,t=o(c);if(u){var r=o(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return n(this,e)});function p(t,r){var n;return e(this,p),n=m.call(this,t,r),r.userId,r.siteOwner,n.el().innerHTML=i(),n.on("click",function(){t&&t.seekable()&&(t.currentTime(t.seekable().end(0)),t.play())}),n}return t(p,[{key:"createEl",value:function(){return l.dom.createEl("button",{className:"vjs-control vjs-button dvr-watch-live-btn",role:"button",tabIndex:0,title:"Watch Live"})}}]),p}();export{c as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewlift/player-backup",
3
- "version": "2.0.121-backup",
3
+ "version": "2.0.123-backup",
4
4
  "main": "dist/bundle.cjs.js",
5
5
  "types": "dist/@viewlift/player/esm/index.d.ts",
6
6
  "amdName": "_playerCore",
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/asyncToGenerator"),n=require("@babel/runtime/regenerator"),o=require("video.js"),i=require("axios"),r=require("./player_instance-fcf6a8fb.js"),l=require("js-cookie"),a=require("ua-parser-js"),u=require("./captions-bf891620.js"),d=require("./skin-9e714900.js");function s(){var e,t;null===(e=window)||void 0===e||null===(t=e.dataLayer)||void 0===t||t.push(arguments)}function c(e,t){s("event",e,t)}var v={apiBaseUrl:"https://prod-api.viewlift.com",getVideoDetails:"/entitlement/video/status",getSeriesDetails:"/entitlement/series/status",saveWatchHistoryV1:"/user/userId/history/video",saveWatchHistoryV2:"/v2/user/history",getVideoInfoV1:"/user/info/video",getVideoInfoV2:"/v2/user/info",getSeriesWatchHistoryV1:"/user/userId/history/video",getSeriesWatchHistoryV2:"/v2/user/history/series",getLinearChannelDetails:"/v3/entitlement/linearchannel",getBeaconUrl:"/analytics/player-beacon"};function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function m(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?p(Object(o),!0).forEach(function(n){e(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var f={name:"@viewlift/player",version:"2.0.55",main:"dist/bundle.cjs.js",types:"dist/@viewlift/player/esm/index.d.ts",amdName:"_playerCore",dependencies:{"@silvermine/videojs-airplay":"^1.3.0","@silvermine/videojs-chromecast":"^1.4.1",axios:"^1.2.3",ima:"npm:videojs-ima@2.2.0","js-cookie":"^3.0.5","ua-parser-js":"^2.0.3","video.js":"8.22.0","videojs-contrib-ads":"7.5.2","videojs-contrib-eme":"5.5.1","videojs-mux":"^4.21.7","videojs-contrib-quality-menu":"^1.0.3"}};window.vl_player_version=f.version;var I,g=function(e,t){var n,o,r,l,a,u,d,s;return null!==(n=window)&&void 0!==n&&null!==(o=n.customData)&&void 0!==o&&o.overrideEntitlementResponse?new Promise(function(e,t){var n,o;return e({data:null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.overrideEntitlementResponse})}):i({url:null!==(a=window)&&void 0!==a&&null!==(u=a.customData)&&void 0!==u&&u.overrideEntitlementBaseUrl?(null===(d=window)||void 0===d||null===(s=d.customData)||void 0===s?void 0:s.overrideEntitlementBaseUrl)+"/video/status":w.get()+"".concat(null==v?void 0:v.getVideoDetails),params:m({id:e,deviceType:"web_browser",contentConsumption:"web"},null===(r=window)||void 0===r||null===(l=r.customData)||void 0===l?void 0:l.entitlement),method:"GET",headers:{Authorization:t,"Sdk-Version":f.version},withCredentials:!0})},E=function(e,t){var n,o,r,l;return null!==(n=window)&&void 0!==n&&null!==(o=n.customData)&&void 0!==o&&o.overrideEntitlementResponse?new Promise(function(e,t){var n,o;return e({data:null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.overrideEntitlementResponse})}):i({url:w.get()+v.getLinearChannelDetails,params:m(m(m(m(m({id:null==e?void 0:e.id,deviceType:"web_browser",contentConsumption:"web"},(null==e?void 0:e.channelId)&&{channelId:null==e?void 0:e.channelId}),(null==e?void 0:e.programId)&&{programId:null==e?void 0:e.programId}),(null==e?void 0:e.programTitle)&&{programTitle:null==e?void 0:e.programTitle}),(null==e?void 0:e.programSubType)&&{programSubType:null==e?void 0:e.programSubType}),null===(r=window)||void 0===r||null===(l=r.customData)||void 0===l?void 0:l.entitlement),method:"GET",headers:{Authorization:t,hdcp:"HDCP-1.4",sl:"SW_SECURE_CRYPTO"}})},y=function(){var e=t(n.mark(function e(t){var o;return n.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F();case 2:return o=e.sent,e.abrupt("return",i({url:w.get()+"".concat(null==v?void 0:v.saveWatchHistoryV2),method:"POST",headers:{Authorization:o},data:m({},t),params:m({},(null==t?void 0:t.profileId)&&{profileId:null==t?void 0:t.profileId})}));case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),T=function(e,t){var n,o,r=window.contentType;return i({method:"GET",url:w.get()+"".concat(null==v?void 0:v.getVideoInfoV2,"/").concat(r,"/").concat(e),headers:{Authorization:t,"x-api-key":null===(n=window)||void 0===n||null===(o=n.watchHistory)||void 0===o?void 0:o.xApiKey},timeout:15e3})},h=function(e){var t=e.videoId;return i({method:"GET",url:w.get()+"".concat(null==v?void 0:v.getSeriesWatchHistoryV2,"/").concat(t),headers:{Authorization:e.token},timeout:15e3})},w=(I=null==v?void 0:v.apiBaseUrl,{set:function(e){e&&(I=e)},get:function(){return I}}),_=function(e){var t=JSON.parse(atob(null==e?void 0:e.split(".")[1])),n=null==t?void 0:t.exp;if(new Date(1e3*n).getTime()<(new Date).getTime())return!0},b=null;function O(){return{set:function(e){e&&(b=e)},get:function(){return b}}}var P,D,S,L,R,V,C=function(){var e=t(n.mark(function e(){var t,o,r;return n.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=O().get(),o=w.get(),e.prev=2,e.next=5,i({method:"GET",url:"".concat(o,"/identity/refresh/").concat(t)});case 5:return r=e.sent,e.abrupt("return",r);case 9:throw e.prev=9,e.t0=e.catch(2),console.error("Error fetching refresh token",e.t0),e.t0;case 13:case"end":return e.stop()}},e,null,[[2,9]])}));return function(){return e.apply(this,arguments)}}(),W=null,F=function(){var e=t(n.mark(function e(){var t;return n.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=sessionStorage.getItem("vlp_token"))||!_(t)){e.next=6;break}return W||(W=C().then(function(e){var n,o,i=null==e||null===(n=e.data)||void 0===n?void 0:n.authorizationToken,r=null==e||null===(o=e.data)||void 0===o?void 0:o.refreshToken;return i&&sessionStorage.setItem("vlp_token",i),r&&O().set(r),i||t}).catch(function(e){return console.error("Error fetching refresh token",e),t}).finally(function(){W=null})),e.abrupt("return",W);case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),A=function(e){if(e&&"string"==typeof e)return JSON.parse(atob(e.split(".")[1]))},x=function(e){D=e},N=function(){return D},U=function(){return P},j=function(e){S=e},k=function(e){if(L){var t=L.get(e);j(t+1)}},M=(V=0,{set:function(e){e>=0&&(V=e)},get:function(){return V}});function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function H(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?B(Object(o),!0).forEach(function(n){e(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):B(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var G=function(){var e,t,n,o,i,r,l,a=N();return"linearchannel"===((null==a?void 0:a.contentType)||"video")?null==a||null===(e=a.linearchannel)||void 0===e||null===(t=e.channels)||void 0===t||null===(n=t.find(function(e){return(null==e?void 0:e.id)===(null==a?void 0:a.channelId)}))||void 0===n||null===(o=n.content)||void 0===o?void 0:o.id:(null==a||null===(i=a.video)||void 0===i||null===(r=i.gist)||void 0===r?void 0:r.id)||(null==a||null===(l=a.video)||void 0===l?void 0:l.id)||(null==a?void 0:a.id)};function Y(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return"".concat(e()).concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e()).concat(e()).concat(e())}function q(){var e=window.sessionStorage.getItem("uid");return e||(e=Y(),window.sessionStorage.setItem("uid",e),e)}function z(){return X.apply(this,arguments)}function X(){return(X=t(n.mark(function e(){var t,o;return n.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F();case 2:if(!(t=e.sent)){e.next=6;break}return o=JSON.parse(atob(t.split(".")[1])),e.abrupt("return",null!=o&&o.anonymousId?"guest-user":null==o?void 0:o.userId);case 6:return e.abrupt("return","guest-user");case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)}function J(e){return e?String(e):""}var K=function(e){return function(){try{return e.apply(void 0,arguments)}catch(e){return console.error(e),null}}};var Q=function(){var e,t;return navigator.userAgent.indexOf("Edg")>-1&&"macOS"!=(null===(e=window.navigator)||void 0===e||null===(t=e.userAgentData)||void 0===t?void 0:t.platform)?"IE":-1!=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR"))?"Opera":-1!=navigator.userAgent.indexOf("Chrome")?"Chrome":-1!=navigator.userAgent.indexOf("Safari")?"Safari":-1!=navigator.userAgent.indexOf("Firefox")?"Firefox":"Unknown"},Z=function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},$=function(){var e=M.get();return e>=0?e+1:1},ee=function(){var e,t,n,o=U(),i=N(),r=null==i||null===(e=i.video)||void 0===e?void 0:e.id,l=M.get(),a=null==o||null===(t=o[l])||void 0===t||null===(n=t.episodes)||void 0===n?void 0:n.findIndex(function(e){return(null==e?void 0:e.id)===r});return a>=0?a+1:1};function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ne(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?te(Object(o),!0).forEach(function(n){e(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):te(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}window._deviceInfo=a.UAParser(navigator.userAgent);var oe=function(e,t){return e&&t?"".concat(e,"x").concat(t):e>1024?"L":e>768?"M":"S"},ie=function(e){var t=re(e,"video.tags",[]),n=re(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return t.length>0?t.map(function(e){return e.title}).join(","):n},re=function(e,t,n){for(var o=0,i=(t=t.split(".")).length;o<i;o++){var r;e=null===(r=e)||void 0===r?void 0:r[t[o]]}return e||n},le=function(){var t,n,o,i,a,u,d,s,c,v,p,m,f,I,g,E,y,T,h,w,_,b,O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",P=arguments.length>1?arguments[1]:void 0,D=arguments.length>2?arguments[2]:void 0,S=(null==D?void 0:D.siteName)||"",L=(null==D?void 0:D.contentType)||"video",R=(null==D||null===(t=D[L])||void 0===t?void 0:t.metadata)||(null==D||null===(n=D[L])||void 0===n||null===(o=n.gist)||void 0===o?void 0:o.metadata),V=r.getPlayer(P);if(!O.includes("VIEWLIFT_"))return O;var C,W=window.getComputedStyle(document.getElementById(P),null),F=Math.trunc(W.getPropertyValue("height").slice(0,-2)),A=Math.trunc(W.getPropertyValue("width").slice(0,-2)),x="linearchannel"===L?null==D||null===(i=D.linearchannel)||void 0===i||null===(a=i.channels)||void 0===a||null===(u=a.find(function(e){return(null==e?void 0:e.id)===(null==D?void 0:D.channelId)}))||void 0===u||null===(d=u.content)||void 0===d?void 0:d.id:re(D,"video.gist.id",""),N="linearchannel"===L?null==D||null===(s=D.linearchannel)||void 0===s||null===(c=s.channels)||void 0===c||null===(v=c.find(function(e){return(null==e?void 0:e.id)===(null==D?void 0:D.channelId)}))||void 0===v?void 0:v.title:re(D,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),U=null,j=null;"function"==typeof window.__gpp&&(null===(C=window)||void 0===C||C.__gpp("ping",function(e){U=null==e?void 0:e.gppString,j=null==e?void 0:e.sectionList[0]}));var k=ne(ne({},ae(R)),{},(w={VIEWLIFT_WIDTH:A,VIEWLIFT_HEIGHT:F,VIEWLIFT_SIZE:oe(A,F),VIEWLIFT_DOMAIN:window.location.hostname,VIEWLIFT_URL:window.location.href,VIEWLIFT_ENCODED_URL:encodeURIComponent(window.location.href),VIEWLIFT_DOUBLE_ENCODED_URL:encodeURIComponent(encodeURIComponent(window.location.href)),VIEWLIFT_CACHEBUSTER:"3708662946268",VIEWLIFT_TIMESTAMP:Date.now().toString().substring(0,10),VIEWLIFT_TIMESTAMP_MS:Date.now().toString(),VIEWLIFT_IP:(null===(p=window)||void 0===p?void 0:p.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:encodeURIComponent(encodeURIComponent(navigator.userAgent)),VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:re(D,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:re(D,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:re(D,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==V||null===(m=V.options_)||void 0===m?void 0:m.autoplay)||1,VIEWLIFT_MUTE:(null==V||null===(f=V.options_)||void 0===f?void 0:f.autoplay)||0,VIEWLIFT_DEVICE_ID:"spinco"==S||"usanetwork"==S?"":localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_DEVICETYPE:"WEB_BROWSER",VIEWLIFT_IDTYPE:"dpid",VIEWLIFT_KEYWORDS:ie(D),VIEWLIFT_MEDIA_ID:x,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(re(D,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:x,VIEWLIFT_VIDEO_URL:encodeURI(window.location.origin+re(D,"video.gist.permalink","")),VIEWLIFT_CONSENT:l.get("cc")||"VIEWLIFT_CONSENT",VIEWLIFT_COPPA:re(null===(I=window)||void 0===I||null===(g=I.app_data)||void 0===g||null===(E=g.site)||void 0===E?void 0:E.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR_CONSENT:"",VIEWLIFT_GDPR:"spinco"==S||"usanetwork"==S?"":re(null===(y=window)||void 0===y||null===(T=y.app_data)||void 0===T||null===(h=T.site)||void 0===h?void 0:h.settings,"compliance.gdpr")?1:0,VIEWLIFT_CONTENT_DURATION_MS:1e3*re(D,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:re(D,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:x,VIEWLIFT_CONTENT_TITLE:N,VIEWLIFT_CONTENT_SERIES_TITLE:re(D,"video.series.gist.title","VIEWLIFT_CONTENT_SERIES_TITLE"),VIEWLIFT_CONTENT_GENRE:re(D,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER",VIEWLIFT_EPISODE_NUMBER:ee(),VIEWLIFT_SEASON_NUMBER:$(),VIEWLIFT_CONTENT_TAGS:ie(D),VIEWLIFT_GPP_SID:j||"VIEWLIFT_GPP_SID",VIEWLIFT_GPP:U||"VIEWLIFT_GPP",VIEWLIFT_LAT:"",VIEWLIFT_APP_BUNDLE:"",VIEWLIFT_ATT_CONSENT:"",VIEWLIFT_APP_ID:"",VIEWLIFT_APP_STORE_URL:""},e(w,"VIEWLIFT_LAT",""),e(w,"VIEWLIFT_APP_BUNDLE",""),e(w,"VIEWLIFT_ATT_CONSENT",""),w),null===(_=window)||void 0===_||null===(b=_.customData)||void 0===b?void 0:b.macros);for(var M in k){var B=new RegExp(M,"g");O=O.replace(B,k[M])}return O},ae=function(e){var t,n,o,i,r,l,a={},u=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map(function(e){u.set(e.name,e.value)}));var d=(null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(o=n.subscription)||void 0===o?void 0:o.SVOD)||!1,s=(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r||null===(l=r.subscription)||void 0===l?void 0:l.TVE)||!1;return d||s?(Z()?d?a=ne(ne({},a),{},{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||""}):s&&(a=ne(ne({},a),{},{VIEWLIFT_CSID:u.get("csid.mweb.tve")||""})):d?a=ne(ne({},a),{},{VIEWLIFT_CSID:u.get("csid.web.dtc")||""}):s&&(a=ne(ne({},a),{},{VIEWLIFT_CSID:u.get("csid.web.tve")||""})),d?a=ne(ne({},a),{},{VIEWLIFT_SFID:u.get("sfid.dtc")||u.get("sfid.web.dtc")||""}):s&&(a=ne(ne({},a),{},{VIEWLIFT_SFID:u.get("sfid.tve")||u.get("sfid.web.tve")||""})),a=Z()?ne(ne({},a),{},{VIEWLIFT_PROF:u.get("prof.mweb")||""}):ne(ne({},a),{},{VIEWLIFT_PROF:u.get("prof.web")||""})):(a=ne(ne({},a),{},{VIEWLIFT_SFID:u.get("sfid.dtc")||u.get("sfid.web.dtc")||""}),a=Z()?ne(ne({},a),{},{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||"",VIEWLIFT_PROF:u.get("prof.mweb")||""}):ne(ne({},a),{},{VIEWLIFT_CSID:u.get("csid.web.dtc")||"",VIEWLIFT_PROF:u.get("prof.web")||""})),a=ne(ne({},a),{},{VIEWLIFT_AFID:u.get("afid")})},ue=function(e,t){var n,o,i,r,l,a,u,d,s,c,v,p,m,f=(null==e?void 0:e.contentType)||"video",I=null==e||null===(n=e[f])||void 0===n?void 0:n.drmEnabled,g=null==e||null===(o=e[f])||void 0===o||null===(i=o.streamingInfo)||void 0===i?void 0:i.videoAssets,E=null==e||null===(r=e[f])||void 0===r||null===(l=r.streamingInfo)||void 0===l?void 0:l.audioAssets,y=(null==e||null===(a=e[f])||void 0===a||null===(u=a.streamingInfo)||void 0===u||null===(d=u.videoAssets)||void 0===d?void 0:d.hls)||!1;null==e||null===(s=e[f])||void 0===s||null===(c=s.liveDetails)||void 0===c||c.isDvrEnabled;var T=(null==e||null===(v=e[f])||void 0===v||null===(p=v.streamingInfo)||void 0===p||null===(m=p.videoAssets)||void 0===m?void 0:m.dash)||!1;if(null!=e&&e.directPlaybackUrl)return{src:null==e?void 0:e.directPlaybackUrl,type:null};if(null!=e&&e.audioAssetSource&&null!=E&&E.hls)return se(E);if(I){var h=ce(g,t);return h.src=le(h.src,t,e),h}if("Safari"!==Q()&&T)return de(g);if(y){var w=se(g);return w.src=le(w.src,t,e),w}if(null!=g&&g.mpeg){var _=function(e){var t=null==e?void 0:e.mpeg;return{src:t[t.length-1].url,type:"video/mp4"}}(g);return _.src=le(_.src,t,e),_}return null},de=function(e){var t=null==e?void 0:e.dash;return t?{src:t,type:"application/dash+xml"}:null},se=function(e){var t=null==e?void 0:e.hls;return t?{src:t,type:"application/x-mpegURL"}:null},ce=function(e,t){var n=(null==e?void 0:e.drmProvider)||null,i=e.fairPlayCmaf||e.fairPlay,l=e.widevine,a=e.playReady,u=Q();if(r.getPlayer(t),"Safari"===u){var d=function(e){var t=e.url;return{src:t,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(t,n){var i={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};o.xhr(i,function(e,t,o){console.log(e),e&&n(e),n(null,new Uint8Array(o))})},getContentId:function(e,t){if(t){var n=t.indexOf("\0")+1;return t.slice(n)}},getLicense:function(t,n,i,r){var l={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:i,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};o.xhr(l,function(e,t,n){console.log(e),e&&r(e),r(null,n)})}}}}}(i);return ve(t),d}var s,c={src:l.url,type:"application/dash+xml"};return"caliente"==(null===(s=window)||void 0===s?void 0:s.siteName)?(ve(t),c.keySystems={"com.widevine.alpha":{url:l.licenseUrl,licenseHeaders:{"X-AxDRM-Message":l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},"com.microsoft.playready":{url:null==a?void 0:a.licenseUrl,licenseHeaders:{"X-AxDRM-Message":null==a?void 0:a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}):"custom"==n?(c.keySystemOptions=[],c.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:l.licenseUrl,httpRequestHeaders:{"Content-Type":"application/octet-stream"},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),c.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:null==a?void 0:a.licenseUrl,httpRequestHeaders:{"Content-Type":"application/octet-stream"},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})):(c.keySystemOptions=[],c.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:l.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),c.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:null==a?void 0:a.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":null==a?void 0:a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})),c};var ve=function(e){var t=r.getPlayer(e);if("function"==typeof t.eme)try{t.eme(),"Safari"==Q()&&t.eme.initLegacyFairplay()}catch(e){console.log("EME ERROR :",e)}},pe=function(e,t){if(Promise.resolve().then(function(){return require("./error-26d5a3c3.js")}).then(function(e){var t=document.createElement("style");t.id="errorblock",t.append("".concat(e.default)),document.head.appendChild(t)}),document.getElementsByClassName("error-container")[0]){var n=document.getElementsByClassName("error-message")[0];n&&(n.innerHTML="".concat(t))}else{var o=document.getElementById(e);if(o){var i=document.createElement("div");i.className="error-container";var r=document.createElement("div");r.className="error-message",r.innerHTML="".concat(t),i.appendChild(r),o.append(i)}}},me=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var fe=!1,Ie=function(e,t,n){var o=le(t,e,n),i=r.getPlayer(e);if(t&&window.google){if("function"!=typeof i.ima)return;i.ima.initializeAdDisplayContainer&&i.ima.initializeAdDisplayContainer(),function(e,t){var n,o,i,l=r.getPlayer(e);if(null!==l.el_){fe=!0;var a={id:e,adTagUrl:"".concat(t),adLabel:"Your video will resume after this sponsor message"};l.ima.initializeAdDisplayContainer&&l.ima.initializeAdDisplayContainer(),fe&&null!==l.el_&&("function"==typeof l.ima?l.ima(a):setTimeout(function(){l.ima.setContentWithAdTag(null,t,!0),l.ima.requestAds()},1e3));var u=document.getElementById("".concat(e));(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&u.hasAttribute("controls")&&u.removeAttribute("controls");var d="click",s=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(s=!0,d="touchend"),l.one(d,function(){s&&l.ima.initializeAdDisplayContainer()});var c=(null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o||null===(i=o.ads)||void 0===i?void 0:i.adEventHandler)||null;l.one("ads-ad-started",function(){c&&c({status:"STARTED",msg:"Advertisement Started"})}),l.one("ads-manager",function(e){var t=e.adsManager;t.addEventListener(google.ima.AdEvent.Type.COMPLETE,function(){c&&c({status:"ENDED",msg:"Advertisement Ended"})}),t.addEventListener(google.ima.AdEvent.Type.LOADED,function(e){c&&c({status:"LOADED",msg:"Advertisement Loaded",data:e})})}),l.on("adserror",function(e){c&&c({status:"ERROR",msg:"Advertisement Error"})})}}(e,o)}};function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}var Ee=function(e){return!!o.getPlayer("".concat(e))},ye=function(){var e=t(n.mark(function e(t,o){var i,l,a,u=arguments;return n.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=u.length>2&&void 0!==u[2]&&u[2],e.next=3,F();case 3:return l=e.sent,a=r.getPlayer(t),e.abrupt("return",new Promise(function(e,n){E(o,l).then(function(n){var r=null==n?void 0:n.data;window.sid=Y(),r.contentType="linearchannel",r.channelId=null==o?void 0:o.channelId;var l=ue(r,t);x(r),l&&i?(we(t,l),a.on("loadstart",function(){e({status:!0,msg:"Feed authenticated and loaded",response:r})})):e({status:!0,msg:"Feed authenticated",response:r})}).catch(function(e){n({status:!1,msg:"Cannot load feed",response:e})})}));case 6:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),Te=function(){var e=t(n.mark(function e(t,o,i){var l,a,d,s,c,v;return n.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F();case 2:return s=e.sent,(U()||null)&&k(o),c=0,v=0,null!==(l=window)&&void 0!==l&&l.watchHistory&&null!==(a=window)&&void 0!==a&&null!==(d=a.watchHistory)&&void 0!==d&&d.enable&&T(o,s).then(function(e){var t,n,o,i,r,l;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(null==e?void 0:e.data)),c=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,v=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedPercentage)||null}).catch(function(e){var t,n,o,i;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(e))}),e.abrupt("return",new Promise(function(e,n){g(o,s).then(function(o){var i,l,a,d,s,p,m,f,I,g,E=null==o?void 0:o.data,y=(null==E||null===(i=E.video)||void 0===i||null===(l=i.streamingInfo)||void 0===l?void 0:l.isLiveStream)||!1;x(o.data);var T=(null==E||null===(a=E.ads)||void 0===a||null===(d=a.preRoll)||void 0===d||null===(s=d.adTags)||void 0===s||null===(p=s.web)||void 0===p?void 0:p.active)&&(null==E||null===(m=E.ads)||void 0===m||null===(f=m.preRoll)||void 0===f||null===(I=f.adTags)||void 0===I||null===(g=I.web)||void 0===g?void 0:g.url);T&&Ie(t,T,E);var h=ue(E,t);if(h){var w,_,b,O,P,D,S,L,R,V,C,W,F,A,N=(null==E||null===(w=E.video)||void 0===w||null===(_=w.gist)||void 0===_?void 0:_.videoImageUrl)||(null==E||null===(b=E.video)||void 0===b||null===(O=b.gist)||void 0===O||null===(P=O.imageGist)||void 0===P?void 0:P.r16x9),U=r.getPlayer(t);if(U.poster(N),we(t,h),U.on("loadstart",function(){y&&e({status:!0,msg:"Video Loaded",response:E})}),U.on("loadeddata",function(){me(),e({status:!0,msg:"Video Loaded",response:E})}),U.one("play",function(){c&&v<95&&setTimeout(function(){U.currentTime(c)},0)}),U.one("error",function(){var e;n({status:!1,msg:(null==U||null===(e=U.error())||void 0===e?void 0:e.message)||"Some error occured"})}),(null==E||null===(D=E.video)||void 0===D||null===(S=D.contentDetails)||void 0===S||null===(L=S.closedCaptions)||void 0===L?void 0:L.length)>0||(null==E||null===(R=E.video)||void 0===R||null===(V=R.closedCaptions)||void 0===V?void 0:V.length)>0)C=((null==E||null===(W=E.video)||void 0===W||null===(F=W.contentDetails)||void 0===F?void 0:F.closedCaptions)||(null==E||null===(A=E.video)||void 0===A?void 0:A.closedCaptions)).filter(function(e){return"VTT"===e.format}),u.addCaptions(t,C);else u.removeCaptions(t)}else pe(t,"Incompatible Source, only hls,mp4,drm content is allowed"),n("Incompatible Source, only hls,mp4,drm content is allowed")}).catch(function(e){_e(e,t,n,o)})}));case 9:case"end":return e.stop()}},e)}));return function(t,n,o){return e.apply(this,arguments)}}(),he=function(){document.getElementById("carousel_homepage")&&document.getElementById("carousel_homepage").remove(),document.getElementById("dvr_skin")&&document.getElementById("dvr_skin").remove(),document.getElementById("nondvr_skin")&&document.getElementById("nondvr_skin").remove(),document.getElementById("multicam")&&document.getElementById("multicam").remove(),document.getElementById("errorblock")&&document.getElementById("errorblock").remove(),document.getElementById("def_skin")&&document.getElementById("def_skin").remove(),document.getElementById("video-selection")&&document.getElementById("video-selection").remove(),document.getElementById("multicam-v2")&&document.getElementById("multicam-v2").remove(),document.getElementById("default_v2")&&document.getElementById("default_v2").remove(),document.getElementById("video-captions")&&document.getElementById("video-captions").remove(),document.getElementById("playlist-selection")&&document.getElementById("playlist-selection").remove(),document.getElementById("multiplayer_css")&&document.getElementById("multiplayer_css").remove(),document.getElementById("chromett")&&document.getElementById("chromett").remove()},we=function(e,t){var n=r.getPlayer(e);n&&n.src(t)},_e=function(t,n,o,i){var r,l,a,u,d,s,c=null==t||null===(r=t.response)||void 0===r||null===(l=r.data)||void 0===l?void 0:l.errorCode,v=(null==t||null===(a=t.response)||void 0===a||null===(u=a.data)||void 0===u?void 0:u.errorMessage)||(null==t?void 0:t.message);Ee(n)&&pe(n,(null===(d=window)||void 0===d?void 0:d.customErrors)&&(null===(s=window)||void 0===s?void 0:s.customErrors[c])||"".concat(v)),o&&o(function(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?ge(Object(o),!0).forEach(function(n){e(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ge(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}({status:!1,response:t,msg:"".concat(v)},i&&{videoId:i}))};exports.authenticateLC=ye,exports.baseUrlManager=w,exports.clearError=me,exports.createIdxMapping=function(e){L=new Map,e.map(function(e,t){L.set(e.id,t)})},exports.createSeriesWatchMap=function(e,t){var n=new Map;h({videoId:e,token:t}).then(function(e){e.data.map(function(e){n.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})}),R=n}).catch(function(e){return console.log(e)})},exports.detectBrowser=Q,exports.disableControls=function(e){var t=document.getElementById(e),n=t.getElementsByClassName("vjs-control-bar")[0];n&&(n.style.visibility="hidden");var o=t.getElementsByClassName("vjs-big-play-button")[0];o&&(o.style.display="none");var i=t.getElementsByClassName("vjs-fullscreen-control")[0];i&&(i.style.display="none")},exports.dispose=function(e){var t=r.getPlayer(e);if(he(),d.clearEventListeners(),window.onresize=null,t)t.dispose();else{var n=document.getElementById(e);n&&n.remove()}},exports.getCurrentSeries=U,exports.getCurrentVideo=N,exports.getDecodedToken=A,exports.getEntitlementData=function(e,t,n,o){return i({url:n,params:{id:e,deviceType:"web_browser",contentConsumption:"web",latitude:null==o?void 0:o.latitude,longitude:null==o?void 0:o.longitude},method:"GET",headers:{Authorization:t},withCredentials:!0})},exports.getEpisodeNumber=ee,exports.getLinearChannelDetails=E,exports.getSeasonNumber=$,exports.getSeriesDetails=function(e,t){var n,o,r=A(t),l=(null==r?void 0:r.site)||null;return null!==(n=window)&&void 0!==n&&null!==(o=n.customData)&&void 0!==o&&o.seriesData?new Promise(function(e,t){var n,o;return e({data:null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.seriesData})}):i({url:w.get()+"/v3/content/series/".concat(e),params:{site:l},method:"GET",headers:{Authorization:t}})},exports.getSeriesWatchHistory=h,exports.getSeriesWatchMap=function(){return R},exports.getSource=ue,exports.getToken=F,exports.getUpdatedClusterSource=function(e,t){var n=e.src,o=e.type;if(!n||"string"!=typeof n||!n.includes(".com"))return{src:n,type:o};t=t.replace(/\/$/,"");var i=n.split(".com")[1]||"";return{src:i?"".concat(t).concat(i):n,type:o}},exports.getUserId=q,exports.getVideoDetails=g,exports.getVideoIdx=function(){return S},exports.getVideoInfo=T,exports.handleError=pe,exports.initialiseAdvertisement=Ie,exports.initiateErrorHandling=_e,exports.inititateBeacon=function(e,o){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"localhost"!==location.hostname&&"127.0.0.1"!==location.hostname&&function(e,o){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Y(),u="WEBSITE",d=null,s=0,p=null,m=0,f=0,I=!1,g=[],E=r.getPlayer(e);if(E){var y,T,h,_,b=K(function(){for(var e=E.currentTime(),t=E.buffered(),n=0;n<t.length;n++){var o=t.start(n),i=t.end(n);if(e>=o&&e<=i)return Math.round(i-e)}return 0}),O=function(){var e=t(n.mark(function e(t){var o,r,d,s,c,p,m,f,I,g,E;return n.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F();case 2:return I=e.sent,g=A(I),e.t0=H,e.t1=H,e.t2=null==g?void 0:g.site,e.t3=null==g?void 0:g.siteId,e.t4=u,e.t5=q(),e.t6=G(),e.t7=t.url||document.location.href,e.t8=t.ref||document.referrer,e.t9=t.eventName,e.t10=null!==(o=t.videoPosition)&&void 0!==o?o:null,e.t11="production",e.t12=t.dp1||"",e.t13=t.dp2||"",e.t14=t.dp3||"",e.t15=t.dp4||"",e.t16=t.dp5||"",e.t17=t.isAdEvent?t.videoPosition:null,e.t18=t.isAdEvent?J(t.adPosition):"",e.next=25,z();case 25:e.t19=e.sent,e.t20=t.playerType||"videojs",e.t21=t.mediaType||"VIDEO",e.t22=a,e.t23=null!==(r=t.ttFirstFrame)&&void 0!==r?r:null,e.t24=null!==(d=t.bitrate)&&void 0!==d?d:null,e.t25=null!==(s=t.resHeight)&&void 0!==s?s:null,e.t26=null!==(c=t.resWidth)&&void 0!==c?c:null,e.t27=null!==(p=t.bufferHealth)&&void 0!==p?p:null,e.t28={aid:e.t2,cid:e.t3,pfm:e.t4,uid:e.t5,vid:e.t6,url:e.t7,ref:e.t8,pa:e.t9,vpos:e.t10,environment:e.t11,dp1:e.t12,dp2:e.t13,dp3:e.t14,dp4:e.t15,dp5:e.t16,apos:e.t17,apod:e.t18,profid:e.t19,player:e.t20,media_type:e.t21,stream_id:e.t22,embedurl:"",ttfirstframe:e.t23,bitrate:e.t24,connectionspeed:null,resolutionheight:e.t25,resolutionwidth:e.t26,bufferhealth:e.t27},e.t29=(null==t?void 0:t.duration)&&{duration:t.duration},e.t30=(0,e.t1)(e.t28,e.t29),e.t31=null==l||null===(m=l.beacon)||void 0===m?void 0:m.params,e.t32=(0,e.t0)(e.t30,e.t31),E=[e.t32],i({url:(null==l||null===(f=l.beacon)||void 0===f?void 0:f.url)||w.get()+v.getBeaconUrl,method:"post",headers:{Authorization:I},contentType:"application/x-www-form-urlencoded",dataType:"text",data:E}).catch(function(e){return console.error(e)});case 41:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),P=function(e){if(!E.paused()&&E.readyState()>2)return clearInterval(d),clearInterval(p),e;var t,n=e+.1;return+n.toFixed(2)>=5&&f<4&&I?(f++,c("BUFFERING",H({pfm:u,uid:q(),vid:G(),videoPosition:Math.floor(E.currentTime)},null==l||null===(t=l.beacon)||void 0===t?void 0:t.params)),O({eventName:"BUFFERING",videoPosition:Math.floor(E.currentTime),isAdEvent:!1}),0):n};y=Math.floor(E.currentTime),E.on("error",function(){var e,t=Math.floor(E.currentTime);clearInterval(d);var n=y===t?"FAILED_TO_START":"DROPPED_STREAM";c(n,H({pfm:u,uid:q(),vid:G(),videoPosition:t},null==l||null===(e=l.beacon)||void 0===e?void 0:e.params)),O({eventName:n,videoPosition:t,isAdEvent:!1})}),T=!1,E.on("waiting",K(function(){I&&(T=!0,clearInterval(d),d=setInterval(function(){T&&!E.paused()?m=P(m):clearInterval(d)},100))})),E.on("playing",K(function(){T=!1,clearInterval(d)})),h=function(e){var t,n,o,i=H({videoPosition:Math.floor(E.currentTime),isAdEvent:!0,bufferHealth:b(),pfm:u,uid:q(),vid:G(),resHeight:(null===(t=videoElement)||void 0===t?void 0:t.videoHeight)||null,resWidth:(null===(n=videoElement)||void 0===n?void 0:n.videoWidth)||null},null==l||null===(o=l.beacon)||void 0===o?void 0:o.params);c(e,H({},i)),O(H({eventName:e,adPosition:1},i))},E.on("adstart",function(){h("AD_REQUEST"),h("AD_IMPRESSION")}),E.on("adskip",function(){s=0}),E.on("adend",function(){s=0}),E.on("timeupdate",function(){var e,t,n,o,i=Math.floor(E.currentTime());if(console.log(i,g),i>=30&&i%30==0&&!g.includes(i)){var r,l=null===(r=E.el().getElementsByTagName("video"))||void 0===r?void 0:r[0];f=0,g.push(i),O({eventName:"PING",videoPosition:i,isAdEvent:!1,duration:30,resHeight:(null==l?void 0:l.videoHeight)||null,resWidth:(null==l?void 0:l.videoWidth)||null,bufferHealth:b(),bitrate:Math.round((null==E||null===(e=E.tech_)||void 0===e||null===(t=e.vhs)||void 0===t||null===(n=t.selectPlaylist())||void 0===n||null===(o=n.attributes)||void 0===o?void 0:o.BANDWIDTH)/1e3)})}}),_=K(function(){var e;s=0,p=setInterval(function(){s=P(s)},100),c("PLAY",H({pfm:u,uid:q(),vid:G(),videoPosition:Math.floor(E.currentTime)},null==l||null===(e=l.beacon)||void 0===e?void 0:e.params)),O({eventName:"PLAY",videoPosition:Math.floor(E.currentTime),isAdEvent:!1}),o&&o("started_video_playback",{"Video ID":G(),watchTime:Math.floor(E.currentTime)})}),E.one("play",_),E.on("loadeddata",function(){E.one("timeupdate",function(){var e;clearInterval(p),clearInterval(d),m=s||0,c("FIRST_FRAME",H({pfm:u,uid:q(),vid:G(),videoPosition:Math.floor(E.currentTime),ttFirstFrame:s,bufferHealth:b()},null==l||null===(e=l.beacon)||void 0===e?void 0:e.params)),O({eventName:"FIRST_FRAME",videoPosition:Math.floor(E.currentTime),isAdEvent:!1,ttFirstFrame:s,bufferHealth:b()}),I=!0,s=0})})}else console.error("Videojs: Player instance not found.")}(e,o,l)},exports.isMobile=Z,exports.isPaused=function(e){return o(e).paused()},exports.isPlayerInitialised=Ee,exports.isTokenExpired=_,exports.load=Te,exports.loadVideo=we,exports.loadVideoInstantly=function(e,t,n){var o=r.getPlayer(e);return o.src(t),new Promise(function(e,t){var i=0;o.one("loadedmetadata",function(){clearTimeout(i),e({status:!0,msg:"video loaded"})}),o.one("loadstart",function(e){i=setTimeout(function(){t("FAILED: Took too long to load")},n)})})},exports.pause=function(e){o(e).pause()},exports.play=function(e){o(e).play()},exports.refreshTokenManager=O,exports.replaceMacros=le,exports.rewind=function(e,t){var n=o(e),i=n.currentTime(),r=i<=t?0:i-t;n.currentTime(r)},exports.runGtag=function(e){window.dataLayer=window.dataLayer||[],s("js",new Date),s("config",e)},exports.saveWatchHistory=y,exports.seasonIdxManager=M,exports.setCurrentSeries=function(e){P=e},exports.setCurrentVideo=x,exports.setVideoIdx=j,exports.setVideoIdxById=k,exports.skip=function(e,t){var n=o(e),i=n.currentTime()+t;n.currentTime(i)},exports.token_authentication_enabled=function(e){var t=!0,n=null==e?void 0:e.videoSourceUrl,o=null==e?void 0:e.asat;return n&&!o&&(t=!1),t};
@@ -1 +0,0 @@
1
- "use strict";exports.BackIcon=function(){return'<svg width="13" height="13" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10.6169 0.418212C11.0883 0.933084 11.1247 1.74341 10.726 2.30391L10.6173 2.43852L3.69866 10.0029L10.6169 17.5611C11.0883 18.0759 11.1247 18.8863 10.726 19.4468L10.6173 19.5814C10.1461 20.0965 9.40458 20.1362 8.89165 19.7006L8.76847 19.5818L0 10.0039L8.76809 0.418626C9.27852 -0.13938 10.1063 -0.139565 10.6169 0.418212Z" fill="white"/>\n </svg>\n '},exports.BroadcastIcon=function(){return'<svg width="22" height="20" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.01316 12.1667L0.25 10.5V15.5L3.01316 14.25V18H15.25V8H3.01316V12.1667ZM7.67057 10.7216C7.53806 10.6283 7.35547 10.7231 7.35547 10.8852V15.1146C7.35547 15.2766 7.53806 15.3714 7.67057 15.2781L10.6757 13.1634C10.7889 13.0838 10.7889 12.916 10.6757 12.8363L7.67057 10.7216Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.25 2H20.25H21.25V3V10H20.25V3H7.25V2ZM17.25 5H4.25V6H17.25V13H18.25V6V5H17.25Z" fill="white"/>\n </svg>\n '},exports.CaptionsSvgV2=function(){return'<svg width="21" height="18" viewBox="0 0 21 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M20.4541 15.8369V2H0.454102V15.8369H11.992L17.7874 18V15.8369H20.4541ZM2.4541 4H18.4541V13.8614H15.9182L15.9179 15L11.9664 13.8614H2.4541V4Z" fill="white"/>\n <rect x="3.4541" y="6" width="9" height="2" fill="white"/>\n <rect x="14.4541" y="6" width="3" height="2" fill="white"/>\n <rect x="8.4541" y="10" width="9" height="2" fill="white"/>\n <rect x="3.4541" y="10" width="3" height="2" fill="white"/>\n </svg>\n '},exports.EpisodesSvg=function(){return'<svg class=\'icon icon-episodes\' width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1 11.7368C1 11.3299 1.32989 11 1.73684 11H16.2632C16.6701 11 17 11.3299 17 11.7368V21.2632C17 21.6701 16.6701 22 16.2632 22H1.73684C1.3299 22 1 21.6701 1 21.2632V11.7368Z" fill="white"/>\n <path d="M5 8H19.2632C19.6701 8 20 8.3299 20 8.73684V18" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M8 4H22.2632C22.6701 4 23 4.3299 23 4.73684V13" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},exports.MaximizeSvg=function(n){return"<svg fill='".concat(n||"white","'\n class='icon icon-maximize'\n viewBox=\"0 0 70 70\"\n xmlns='http://www.w3.org/2000/svg'\n >\n <path fill='").concat(n||"white","' d='M43.369 45.938h-6.971l3.16 3.146h9.593v-9.714l-3.146-3.077v6.648l-8.823-8.823-2.817 2.817 9.004 9.004z' />\n <path fill='").concat(n||"white","' d='M21.969 18.834h6.971l-3.16-3.146h-9.593v9.714l3.146 3.077v-6.648l8.823 8.823 2.817-2.817-9.003-9.003z' />\n </svg>")},exports.MinimizeSvg=function(n){return"<svg fill='".concat(n||"white","'\n class='icon icon-minimize'\n viewBox=\"0 0 70 70\"\n xmlns='http://www.w3.org/2000/svg'\n >\n <path fill='").concat(n||"white","' d='M40.397 37.511h6.971l-3.16-3.146h-9.593v9.714l3.146 3.077v-6.648l8.823 8.823 2.817-2.817-9.004-9.004z' />\n <path fill='").concat(n||"white","' d='M24.443 26.763h-6.971l3.16 3.146h9.593v-9.714l-3.146-3.077v6.648l-8.823-8.823-2.817 2.817 9.003 9.004z' />\n </svg>")},exports.NewCaptionsSvg=function(){return'<svg width="18" height="16" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5 6.5H10M5 10H13M7.68375 16H14.2C15.8802 16 16.7202 16 17.362 15.673C17.9265 15.3854 18.3854 14.9265 18.673 14.362C19 13.7202 19 12.8802 19 11.2V5.8C19 4.11984 19 3.27976 18.673 2.63803C18.3854 2.07354 17.9265 1.6146 17.362 1.32698C16.7202 1 15.8802 1 14.2 1H5.8C4.11984 1 3.27976 1 2.63803 1.32698C2.07354 1.6146 1.6146 2.07354 1.32698 2.63803C1 3.27976 1 4.11984 1 5.8V18.3355C1 18.8684 1 19.1348 1.10923 19.2716C1.20422 19.3906 1.34827 19.4599 1.50054 19.4597C1.67563 19.4595 1.88367 19.2931 2.29976 18.9602L4.68521 17.0518C5.17252 16.662 5.41617 16.4671 5.68749 16.3285C5.9282 16.2055 6.18443 16.1156 6.44921 16.0613C6.74767 16 7.0597 16 7.68375 16Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},exports.PlayNextEpisodeSvg=function(n){return'<svg className=\'icon-play-next\' width="16" height="16" viewBox="0 0 25 25" fill='.concat(n,' xmlns="http://www.w3.org/2000/svg">\n <path d="M14.8837 9.99984L0 0V20L14.8837 9.99984Z" fill=').concat(n,' />\n <rect x="18" width="2" height="20" fill=').concat(n," />\n </svg>")},exports.PlaylistIcon=function(){return'<svg version="1.0" xmlns="http://www.w3.org/2000/svg"\n width="17" height="17" viewBox="0 0 512.000000 512.000000"\n preserveAspectRatio="xMidYMid meet">\n \n <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"\n fill="white" stroke="none">\n <path d="M340 4674 c-46 -20 -77 -50 -103 -99 -22 -40 -22 -45 -25 -754 -3\n -813 -5 -788 72 -859 69 -64 158 -77 238 -36 17 9 232 177 478 374 492 394\n 490 392 490 499 0 60 -23 112 -72 158 -62 60 -863 695 -900 714 -45 23 -128\n 25 -178 3z"/>\n <path d="M2045 4673 c-164 -86 -166 -300 -3 -384 37 -19 73 -19 1382 -17\n l1344 3 44 30 c138 97 118 306 -34 370 -33 13 -189 15 -1370 15 -1195 -1\n -1336 -2 -1363 -17z"/>\n <path d="M2045 3393 c-164 -86 -166 -300 -3 -384 37 -19 73 -19 1382 -17\n l1344 3 44 30 c138 97 118 306 -34 370 -33 13 -189 15 -1370 15 -1195 -1\n -1336 -2 -1363 -17z"/>\n <path d="M340 2114 c-173 -75 -161 -342 18 -394 26 -8 692 -10 2224 -8 l2186\n 3 44 30 c138 97 118 306 -34 370 -33 13 -272 15 -2220 15 -1927 -1 -2187 -3\n -2218 -16z"/>\n <path d="M340 834 c-173 -75 -161 -342 18 -394 26 -8 692 -10 2224 -8 l2186 3\n 44 30 c138 97 118 306 -34 370 -33 13 -272 15 -2220 15 -1927 -1 -2187 -3\n -2218 -16z"/>\n </g>\n </svg>'},exports.RewindSvg=function(n){return'<svg style="width:16px" class=\'rewindbtn\' viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.88817 16.9913L7.72176 18.5762C9.58746 18.8613 11.4677 18.5376 13.1023 17.6161C17.1941 15.3094 18.4803 9.98978 15.9732 5.74243C13.47 1.50156 8.13865 -0.0590307 4.03665 2.25351C3.35173 2.64307 2.7379 3.12124 2.20384 3.67698L3.34087 4.82569C3.77642 4.37247 4.27773 3.98196 4.83679 3.66398C8.20452 1.76539 12.5901 3.04913 14.644 6.5288C16.6894 9.99402 15.6429 14.3223 12.3046 16.2043C10.9636 16.9602 9.42195 17.2257 7.88817 16.9913Z" fill=\''.concat(window.color||"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.10742 0.462205L0.56205 5.24366L6.06202 5.79492L3.10742 0.462205Z" fill=\'').concat(window.color||"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.80172 14.1769C10.1682 14.1769 10.5096 14.1082 10.8258 13.9708C11.142 13.8333 11.416 13.6241 11.6479 13.343C11.8798 13.0619 12.0615 12.7059 12.1928 12.275C12.3242 11.8441 12.3898 11.3368 12.3898 10.753C12.3898 10.1661 12.3242 9.65803 12.1928 9.22868C12.0615 8.79934 11.8798 8.44413 11.6479 8.16305C11.416 7.88197 11.142 7.6727 10.8258 7.53525C10.5096 7.3978 10.1682 7.32907 9.80172 7.32907C9.43524 7.32907 9.09551 7.3978 8.78254 7.53525C8.46956 7.6727 8.19794 7.88197 7.96767 8.16305C7.7374 8.44413 7.5574 8.79934 7.42767 9.22868C7.29794 9.65803 7.23308 10.1661 7.23308 10.753C7.23308 11.3368 7.29794 11.8441 7.42767 12.275C7.5574 12.7059 7.7374 13.0619 7.96767 13.343C8.19794 13.6241 8.46956 13.8333 8.78254 13.9708C9.09551 14.1082 9.43524 14.1769 9.80172 14.1769ZM6.54713 14.1028V13.2457H5.28226V7.39394H4.2947L2.14929 9.13139L2.52875 9.62714C2.5547 9.66112 2.59443 9.69123 2.64794 9.71749C2.70145 9.74374 2.76064 9.75687 2.82551 9.75687C2.86767 9.75687 2.91064 9.75069 2.95443 9.73834C2.99821 9.72598 3.04118 9.70282 3.08335 9.66884L4.09524 8.86266C4.08551 9.02946 4.08064 9.18853 4.08064 9.33988V13.2457H2.65524V14.1028H6.54713ZM9.30308 13.1136C9.46362 13.1893 9.62983 13.2271 9.80172 13.2271C9.97686 13.2271 10.1455 13.1893 10.3077 13.1136C10.4698 13.038 10.6133 12.9059 10.7382 12.7175C10.8631 12.5291 10.9628 12.2758 11.0374 11.9576C11.112 11.6395 11.1493 11.238 11.1493 10.753C11.1493 10.2681 11.112 9.86652 11.0374 9.54838C10.9628 9.23023 10.8631 8.97695 10.7382 8.78853C10.6133 8.60011 10.4698 8.46807 10.3077 8.39239C10.1455 8.31672 9.97686 8.27888 9.80172 8.27888C9.62983 8.27888 9.46362 8.31672 9.30308 8.39239C9.14254 8.46807 9.00064 8.60011 8.8774 8.78853C8.75416 8.97695 8.65605 9.23023 8.58308 9.54838C8.5101 9.86652 8.47362 10.2681 8.47362 10.753C8.47362 11.238 8.5101 11.6395 8.58308 11.9576C8.65605 12.2758 8.75416 12.5291 8.8774 12.7175C9.00064 12.9059 9.14254 13.038 9.30308 13.1136Z" fill=\'').concat(window.color||"white","' />\n </svg>")},exports.RewindSvgV2=function(){return'<svg class=\'rewindbtn\' width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1.22363 9.43675L3.152 11.3434L5.08151 9.43675M2.91616 10.8667C2.88115 10.5537 2.86319 10.2356 2.86319 9.91341C2.86319 5.17486 6.74945 1.3335 11.5434 1.3335C16.3374 1.3335 20.2236 5.17486 20.2236 9.91341C20.2236 14.652 16.3374 18.4933 11.5434 18.4933C8.8166 18.4933 6.38346 17.2505 4.79212 15.3067" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3"/>\n <path d="M9.92694 13.0831V6.80067H8.94318C8.58633 7.20106 7.97871 7.53473 7.37109 7.64912V8.66918C7.68937 8.64058 8.22947 8.52618 8.51881 8.39272V13.0831H9.92694Z" fill="white"/>\n <path d="M13.6545 6.6958C11.8316 6.6958 11.1951 8.23065 11.1951 9.94664C11.1951 11.6817 11.7641 13.1975 13.6255 13.1975C15.5159 13.1975 16.0656 11.634 16.0656 9.9085C16.0656 8.12579 15.4291 6.6958 13.6545 6.6958ZM13.6545 7.78259C14.4839 7.78259 14.6382 8.69778 14.6382 9.91804C14.6382 11.1478 14.5225 12.1107 13.6448 12.1107C12.7479 12.1107 12.6128 11.0811 12.6128 9.92757C12.6128 8.57385 12.8443 7.78259 13.6545 7.78259Z" fill="white"/>\n </svg>'},exports.SelectedStream=function(){return'<svg class=\'selected-stream\' width="25" height="25" viewBox="0 0 35 33" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_319_60943)">\n <path d="M0 0H35V33H0V0Z" fill="#D2393B"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M15.8689 17.6541L22.3039 11.2898C22.6966 10.9014 23.3372 10.9054 23.7299 11.2937C24.1225 11.6821 24.1265 12.3157 23.7338 12.704L16.6345 19.7253C16.6189 19.743 16.6026 19.7604 16.5856 19.7772C16.5158 19.8463 16.4381 19.9032 16.3554 19.9479C15.9716 20.1587 15.4758 20.1009 15.1503 19.779C15.126 19.755 15.1032 19.73 15.0819 19.7042L12.2919 16.9449C11.8992 16.5565 11.9032 15.9229 12.2958 15.5346C12.6885 15.1462 13.3291 15.1423 13.7218 15.5306L15.8689 17.6541Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_319_60943">\n <path d="M0 0H35V33H8C3.58172 33 0 29.4183 0 25V0Z" fill="white"/>\n </clipPath>\n </defs>\n </svg>\n '},exports.SettingsSvg=function(){return'<svg width="16" height="16" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M11 14C12.6569 14 14 12.6569 14 11C14 9.34315 12.6569 8 11 8C9.34315 8 8 9.34315 8 11C8 12.6569 9.34315 14 11 14Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M17.7273 13.7273C17.6063 14.0015 17.5702 14.3056 17.6236 14.6005C17.6771 14.8954 17.8177 15.1676 18.0273 15.3818L18.0818 15.4364C18.2509 15.6052 18.385 15.8057 18.4765 16.0265C18.568 16.2472 18.6151 16.4838 18.6151 16.7227C18.6151 16.9617 18.568 17.1983 18.4765 17.419C18.385 17.6397 18.2509 17.8402 18.0818 18.0091C17.913 18.1781 17.7124 18.3122 17.4917 18.4037C17.271 18.4952 17.0344 18.5423 16.7955 18.5423C16.5565 18.5423 16.3199 18.4952 16.0992 18.4037C15.8785 18.3122 15.678 18.1781 15.5091 18.0091L15.4545 17.9545C15.2403 17.745 14.9682 17.6044 14.6733 17.5509C14.3784 17.4974 14.0742 17.5335 13.8 17.6545C13.5311 17.7698 13.3018 17.9611 13.1403 18.205C12.9788 18.4489 12.8921 18.7347 12.8909 19.0273V19.1818C12.8909 19.664 12.6994 20.1265 12.3584 20.4675C12.0174 20.8084 11.5549 21 11.0727 21C10.5905 21 10.1281 20.8084 9.78708 20.4675C9.4461 20.1265 9.25455 19.664 9.25455 19.1818V19.1C9.24751 18.7991 9.15011 18.5073 8.97501 18.2625C8.79991 18.0176 8.55521 17.8312 8.27273 17.7273C7.99853 17.6063 7.69437 17.5702 7.39947 17.6236C7.10456 17.6771 6.83244 17.8177 6.61818 18.0273L6.56364 18.0818C6.39478 18.2509 6.19425 18.385 5.97353 18.4765C5.7528 18.568 5.51621 18.6151 5.27727 18.6151C5.03834 18.6151 4.80174 18.568 4.58102 18.4765C4.36029 18.385 4.15977 18.2509 3.99091 18.0818C3.82186 17.913 3.68775 17.7124 3.59626 17.4917C3.50476 17.271 3.45766 17.0344 3.45766 16.7955C3.45766 16.5565 3.50476 16.3199 3.59626 16.0992C3.68775 15.8785 3.82186 15.678 3.99091 15.5091L4.04545 15.4545C4.25503 15.2403 4.39562 14.9682 4.4491 14.6733C4.50257 14.3784 4.46647 14.0742 4.34545 13.8C4.23022 13.5311 4.03887 13.3018 3.79497 13.1403C3.55107 12.9788 3.26526 12.8921 2.97273 12.8909H2.81818C2.33597 12.8909 1.87351 12.6994 1.53253 12.3584C1.19156 12.0174 1 11.5549 1 11.0727C1 10.5905 1.19156 10.1281 1.53253 9.78708C1.87351 9.4461 2.33597 9.25455 2.81818 9.25455H2.9C3.2009 9.24751 3.49273 9.15011 3.73754 8.97501C3.98236 8.79991 4.16883 8.55521 4.27273 8.27273C4.39374 7.99853 4.42984 7.69437 4.37637 7.39947C4.3229 7.10456 4.18231 6.83244 3.97273 6.61818L3.91818 6.56364C3.74913 6.39478 3.61503 6.19425 3.52353 5.97353C3.43203 5.7528 3.38493 5.51621 3.38493 5.27727C3.38493 5.03834 3.43203 4.80174 3.52353 4.58102C3.61503 4.36029 3.74913 4.15977 3.91818 3.99091C4.08704 3.82186 4.28757 3.68775 4.50829 3.59626C4.72901 3.50476 4.96561 3.45766 5.20455 3.45766C5.44348 3.45766 5.68008 3.50476 5.9008 3.59626C6.12152 3.68775 6.32205 3.82186 6.49091 3.99091L6.54545 4.04545C6.75971 4.25503 7.03183 4.39562 7.32674 4.4491C7.62164 4.50257 7.9258 4.46647 8.2 4.34545H8.27273C8.54161 4.23022 8.77093 4.03887 8.93245 3.79497C9.09397 3.55107 9.18065 3.26526 9.18182 2.97273V2.81818C9.18182 2.33597 9.37338 1.87351 9.71435 1.53253C10.0553 1.19156 10.5178 1 11 1C11.4822 1 11.9447 1.19156 12.2856 1.53253C12.6266 1.87351 12.8182 2.33597 12.8182 2.81818V2.9C12.8193 3.19253 12.906 3.47834 13.0676 3.72224C13.2291 3.96614 13.4584 4.15749 13.7273 4.27273C14.0015 4.39374 14.3056 4.42984 14.6005 4.37637C14.8954 4.3229 15.1676 4.18231 15.3818 3.97273L15.4364 3.91818C15.6052 3.74913 15.8057 3.61503 16.0265 3.52353C16.2472 3.43203 16.4838 3.38493 16.7227 3.38493C16.9617 3.38493 17.1983 3.43203 17.419 3.52353C17.6397 3.61503 17.8402 3.74913 18.0091 3.91818C18.1781 4.08704 18.3122 4.28757 18.4037 4.50829C18.4952 4.72901 18.5423 4.96561 18.5423 5.20455C18.5423 5.44348 18.4952 5.68008 18.4037 5.9008C18.3122 6.12152 18.1781 6.32205 18.0091 6.49091L17.9545 6.54545C17.745 6.75971 17.6044 7.03183 17.5509 7.32674C17.4974 7.62164 17.5335 7.9258 17.6545 8.2V8.27273C17.7698 8.54161 17.9611 8.77093 18.205 8.93245C18.4489 9.09397 18.7347 9.18065 19.0273 9.18182H19.1818C19.664 9.18182 20.1265 9.37338 20.4675 9.71435C20.8084 10.0553 21 10.5178 21 11C21 11.4822 20.8084 11.9447 20.4675 12.2856C20.1265 12.6266 19.664 12.8182 19.1818 12.8182H19.1C18.8075 12.8193 18.5217 12.906 18.2778 13.0676C18.0339 13.2291 17.8425 13.4584 17.7273 13.7273Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},exports.SettingsSvgV2=function(){return'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M20.7275 8.7189V11.2811L18.0174 11.7913C17.8497 12.5312 17.558 13.2374 17.1546 13.88L18.71 16.1626L16.8874 17.9721L14.6149 16.43C13.9694 16.8283 13.2636 17.1194 12.5249 17.2919L12.0143 20H9.43828L8.92846 17.2919C8.18971 17.1194 7.48385 16.8284 6.8384 16.43L4.56591 17.9721L2.74302 16.1626L4.28649 13.88C3.88787 13.2349 3.5965 12.5296 3.42371 11.7913L0.727539 11.2811V8.7189L3.42371 8.1968C3.59774 7.4568 3.89356 6.75083 4.29909 6.10771L2.74337 3.837L4.56626 2.02785L6.83875 3.57C7.48173 3.16673 8.18841 2.8752 8.92881 2.70777L9.43863 0H12.0147L12.5252 2.70777C13.2656 2.87529 13.9723 3.16682 14.6153 3.57L16.8878 2.02785L18.7103 3.837L17.1549 6.11996C17.5582 6.75838 17.85 7.46066 18.0177 8.1968L20.7275 8.7189ZM5.19864 10.0057C5.2018 13.0538 7.67684 15.5222 10.7268 15.5191C12.1916 15.5176 13.5957 14.9347 14.6304 13.8985C15.665 12.8624 16.2454 11.4579 16.2438 9.99405C16.2405 6.94597 13.7654 4.47766 10.7154 4.48088C7.6654 4.4841 5.19548 6.95764 5.19864 10.0057Z" fill="white"/>\n </svg>'},exports.SkipSvg=function(n){return'<svg style="width:16px" class=\'skipbtn\' viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.99586 16.9937L10.1623 18.5786C8.29657 18.8638 6.41631 18.54 4.78178 17.6185C0.689955 15.3118 -0.596286 9.9922 1.9108 5.74486C4.41407 1.50398 9.74539 -0.0566045 13.8474 2.25594C14.5323 2.64549 15.1461 3.12366 15.6802 3.6794L14.5432 4.82812C14.1076 4.3749 13.6063 3.98438 13.0472 3.66641C9.67952 1.76782 5.29397 3.05156 3.24002 6.53123C1.1946 9.99645 2.24115 14.3247 5.57947 16.2067C6.92039 16.9626 8.46208 17.2281 9.99586 16.9937Z" fill=\''.concat(window.color?window.color:"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M14.7766 0.464616L17.322 5.24607L11.822 5.79733L14.7766 0.464616Z" fill=\'').concat(window.color?window.color:"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13.0245 14.115C13.391 14.115 13.7323 14.0463 14.0486 13.9088C14.3648 13.7714 14.6388 13.5621 14.8707 13.281C15.1026 13 15.2842 12.644 15.4156 12.2131C15.5469 11.7822 15.6126 11.2749 15.6126 10.6911C15.6126 10.1042 15.5469 9.59609 15.4156 9.16675C15.2842 8.73741 15.1026 8.38219 14.8707 8.10111C14.6388 7.82003 14.3648 7.61076 14.0486 7.47331C13.7323 7.33586 13.391 7.26714 13.0245 7.26714C12.658 7.26714 12.3183 7.33586 12.0053 7.47331C11.6923 7.61076 11.4207 7.82003 11.1904 8.10111C10.9602 8.38219 10.7802 8.73741 10.6504 9.16675C10.5207 9.59609 10.4559 10.1042 10.4559 10.6911C10.4559 11.2749 10.5207 11.7822 10.6504 12.2131C10.7802 12.644 10.9602 13 11.1904 13.281C11.4207 13.5621 11.6923 13.7714 12.0053 13.9088C12.3183 14.0463 12.658 14.115 13.0245 14.115ZM9.76991 14.0409V13.1837H8.50504V7.332H7.51748L5.37207 9.06945L5.75153 9.56521C5.77748 9.59918 5.81721 9.6293 5.87072 9.65555C5.92423 9.68181 5.98342 9.69493 6.04829 9.69493C6.09045 9.69493 6.13342 9.68876 6.17721 9.6764C6.22099 9.66405 6.26396 9.64088 6.30612 9.6069L7.31802 8.80073C7.30829 8.96752 7.30342 9.1266 7.30342 9.27795V13.1837H5.87802V14.0409H9.76991ZM12.5259 13.0517C12.6864 13.1274 12.8526 13.1652 13.0245 13.1652C13.1996 13.1652 13.3683 13.1274 13.5304 13.0517C13.6926 12.976 13.8361 12.844 13.961 12.6556C14.0859 12.4671 14.1856 12.2139 14.2602 11.8957C14.3348 11.5776 14.3721 11.176 14.3721 10.6911C14.3721 10.2061 14.3348 9.80459 14.2602 9.48644C14.1856 9.16829 14.0859 8.91501 13.961 8.7266C13.8361 8.53818 13.6926 8.40613 13.5304 8.33046C13.3683 8.25478 13.1996 8.21694 13.0245 8.21694C12.8526 8.21694 12.6864 8.25478 12.5259 8.33046C12.3653 8.40613 12.2234 8.53818 12.1002 8.7266C11.9769 8.91501 11.8788 9.16829 11.8059 9.48644C11.7329 9.80459 11.6964 10.2061 11.6964 10.6911C11.6964 11.176 11.7329 11.5776 11.8059 11.8957C11.8788 12.2139 11.9769 12.4671 12.1002 12.6556C12.2234 12.844 12.3653 12.976 12.5259 13.0517Z" fill=\'').concat(window.color?window.color:"white","' />\n </svg>")},exports.SkipSvgV2=function(){return'<svg class=\'skipbtn\' width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M19.7236 9.43675L17.7953 11.3434L15.8658 9.43675M18.0311 10.8667C18.0661 10.5537 18.0841 10.2356 18.0841 9.91341C18.0841 5.17486 14.1978 1.3335 9.40386 1.3335C4.6099 1.3335 0.723633 5.17486 0.723633 9.91341C0.723633 14.652 4.6099 18.4933 9.40386 18.4933C12.1307 18.4933 14.5638 17.2505 16.1551 15.3067" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3"/>\n <path d="M7.80584 13.0831V6.80067H6.82209C6.46523 7.20106 5.85762 7.53473 5.25 7.64912V8.66918C5.56828 8.64058 6.10838 8.52618 6.39772 8.39272V13.0831H7.80584Z" fill="white"/>\n <path d="M11.5334 6.6958C9.71052 6.6958 9.07397 8.23065 9.07397 9.94664C9.07397 11.6817 9.64301 13.1975 11.5044 13.1975C13.3948 13.1975 13.9445 11.634 13.9445 9.9085C13.9445 8.12579 13.308 6.6958 11.5334 6.6958ZM11.5334 7.78259C12.3628 7.78259 12.5171 8.69778 12.5171 9.91804C12.5171 11.1478 12.4014 12.1107 11.5237 12.1107C10.6268 12.1107 10.4917 11.0811 10.4917 9.92757C10.4917 8.57385 10.7232 7.78259 11.5334 7.78259Z" fill="white"/>\n </svg>'},exports.TickMarkIcon=function(){return'<svg width="28" height="28" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28">\n <path d="M21 10L11 20L7 16" stroke="white" stroke-width="2" fill="none"/>\n </svg>'},exports.crossIconSvg=function(){return'<svg width="13" height="13" viewBox="0 0 19 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.273985 2.30391C-0.124672 1.74341 -0.0882695 0.933084 0.383092 0.418212C0.893733 -0.139565 1.72148 -0.13938 2.23191 0.418626L9.25 8.09082L16.2681 0.418626C16.7785 -0.13938 17.6063 -0.139565 18.1169 0.418212C18.5883 0.933084 18.6247 1.74341 18.226 2.30391L18.1173 2.43852L11.1987 10.0029L18.1169 17.5611C18.5883 18.0759 18.6247 18.8863 18.226 19.4468L18.1173 19.5814C17.6461 20.0965 16.9046 20.1362 16.3916 19.7006L16.2685 19.5818L9.25 11.9155L2.23153 19.5818L2.10835 19.7006C1.59542 20.1362 0.853882 20.0965 0.382714 19.5814L0.273985 19.4468C-0.124672 18.8863 -0.0882694 18.0759 0.383092 17.5611L7.30134 10.0029L0.382714 2.43852L0.273985 2.30391Z" fill="white"/>\n </svg>\n \n '},exports.startLiveIcon=function(){return'<svg width="16" height="16" viewBox="0 0 14 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.04907e-06 -1.22392e-06L2 -1.04907e-06L2.00098 12L0 12L1.04907e-06 -1.22392e-06ZM14 11.6553C14 11.8026 13.8355 11.8903 13.7129 11.8086L5.23047 6.15332C5.12096 6.08031 5.12096 5.91968 5.23047 5.84668L13.7129 0.191406C13.8355 0.109694 14 0.197416 14 0.344727L14 11.6553Z" fill="white"/></svg>'},exports.watchLiveIcon=function(){return'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M17 16L15 16L14.999 4L17 4L17 16ZM3 4.34473C3 4.19742 3.16454 4.10969 3.28711 4.19141L11.7695 9.84668C11.879 9.91969 11.879 10.0803 11.7695 10.1533L3.28711 15.8086C3.16454 15.8903 3 15.8026 3 15.6553L3 4.34473Z" fill="white"/>\n</svg>'},exports.watchLiveIcon2=function(){return'<svg width="14" height="21" viewBox="0 0 14 21" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M-6.26643e-08 0.858398C-3.64345e-08 0.708381 0.169567 0.621119 0.29164 0.708315L13.7899 10.3499C13.8929 10.4235 13.8929 10.5765 13.7899 10.6501L0.291637 20.2917C0.169563 20.3789 -3.46048e-06 20.2916 -3.43425e-06 20.1416L-6.26643e-08 0.858398Z" fill="white"/>\n</svg>\n'};
@@ -1 +0,0 @@
1
- "use strict";require("video.js/dist/video-js.min.css");var e=require("@babel/runtime/helpers/defineProperty"),n=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/regenerator");require("axios");var r=require("./generic-bfd81e0e.js"),o=require("./player_instance-fcf6a8fb.js"),i=require("video.js"),l=require("./util-a3ed1133.js"),a=require("./captions-bf891620.js"),u=require("./resolution-9c4872ec.js"),s=require("./skin-9e714900.js"),c=require("./localisation-56e0a999.js"),d=require("@babel/runtime/helpers/typeof"),v=require("@babel/runtime/helpers/toConsumableArray"),f=require("@babel/runtime/helpers/slicedToArray"),p=require("./index-de801167.js"),m=function(e){return new Promise(function(n,t){if(g(e))t("".concat(e," is alread initialised"));else{var r=document.createElement("script");r.async=!0,r.src=e,r.onload=function(){n()},r.onerror=function(n){t("Error while loading script ".concat(e," : ").concat(n))},document.head.appendChild(r)}})},g=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0},y=function(e,n,t){var r=o.getPlayer(e);if(r)if(n>=0&&n<=100){r.muted()&&r.muted(!1);var i=parseFloat(n)/100;r.volume(i),t&&t({status:!0,msg:"Volume set to ".concat(n,"%")})}else t&&t({status:!1,msg:"Please enter a valid volume percentage (0 ≥ V ≤ 100)"});else t({status:!1,msg:"Cannot find player with id: '".concat(e,"'")})},h=function(e){var n=o.getPlayer(e);return n?parseInt(100*n.volume())+"%":"Cannot find player with id: '".concat(e,"'")},b=function(){var e=n(t.mark(function e(n){var l,a,u,s,c;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=o.getPlayer(null==n?void 0:n.playerId),null!=n&&null!==(l=n.series)&&void 0!==l&&l.enable||null==n||!n.chromecastReceiverId){e.next=22;break}return e.next=4,import("@silvermine/videojs-chromecast");case 4:return s=e.sent,e.prev=5,e.next=8,m("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1");case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.log("Error",e.t0);case 13:return e.prev=13,s.default(i),e.finish(13);case 16:(c=i.getTech("chromecast"))&&!c.prototype.seeking&&(c.prototype.seeking=function(){}),null!==(u=window)&&void 0!==u&&u.cast?null==a||a.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}):window.__onGCastApiAvailable=function(){null==a||a.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0})},e.next=23;break;case 22:console.log("Chromecast plugin is not available");case 23:null!=n&&n.airplay&&"Safari"==r.detectBrowser()?null==a||a.airPlay({addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5}):console.log("AirPlay plugin is not available");case 24:case"end":return e.stop()}},e,null,[[5,10,13,16]])}));return function(n){return e.apply(this,arguments)}}(),w=function(e,n){var t=o.getPlayer(e);t&&n&&t.controlBar&&t.controlBar.progressControl.seekBar.on("click",function(n){var t,r,o,l,a,u=this.el(),s=i.dom.getPointerPosition(u,n).x;i.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var c=window.cast&&window.cast.framework&&window.cast.framework.CastSession,d=null===(t=window)||void 0===t||null===(r=t.cast)||void 0===r||null===(o=r.framework)||void 0===o||null===(l=o.CastContext)||void 0===l||null===(a=l.getInstance())||void 0===a?void 0:a.S;if(console.log(c),c&&"CONNECTED"===d){window.cast.framework.RemotePlayer.canSeek=!0;var v=new window.cast.framework.RemotePlayerController(window.cast.framework.RemotePlayer),f=v.h.media[0].liveSeekableRange.end;v.getSeekPosition(),window.cast.framework.RemotePlayer.currentTime=f*s,v.seek()}})};var k=function(){var e=n(t.mark(function e(){return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([import("videojs-contrib-ads"),import("ima"),m("https://imasdk.googleapis.com/js/sdkloader/ima3.js").then(function(){}).catch(function(e){return console.log(e)})]);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),S=function(){var e=n(t.mark(function e(){return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("utilising contrib eme"),e.next=3,import("videojs-contrib-eme").then(function(e){i.getPlugin("eme")||i.registerPlugin("eme",e.default)});case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),O=function(){var e=n(t.mark(function e(){var n;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("videojs-mux");case 3:if(!(n=e.sent)||"function"!=typeof n.register){e.next=7;break}return n.register(i),e.abrupt("return");case 7:console.log("Mux registration failed"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.log("Failed to load Mux plugin:",e.t0);case 13:case"end":return e.stop()}},e,null,[[0,10]])}));return function(){return e.apply(this,arguments)}}(),P=function(){var e=n(t.mark(function e(){return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.resolve().then(function(){return require("./index-84cce26a.js")});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error("Failed to load dvr seekbar");case 8:case"end":return e.stop()}},e,null,[[0,5]])}));return function(){return e.apply(this,arguments)}}(),I=function(){var e=n(t.mark(function e(){return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.resolve().then(function(){return require("./videojs-dash5.es-ced4b564.js")});case 3:console.log("utilising contrib dash"),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error("Failed to load contrib dash plugin");case 9:case"end":return e.stop()}},e,null,[[0,6]])}));return function(){return e.apply(this,arguments)}}(),T=Object.freeze({__proto__:null,importChromecast:function(){import("@silvermine/videojs-chromecast").then(function(e){m("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1").then(function(){e.default(i)}).catch(function(e){console.log(e)})})},importAirplay:function(){import("@silvermine/videojs-airplay").then(function(e){e.default(i)})},loadAdsLibrary:k,loadEMELibrary:S,loadMuxPlugin:O,loadDvrSeekbar:P,loadContribDash:I});function j(e){return E.apply(this,arguments)}function E(){return(E=n(t.mark(function e(n){var o;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=(null==n?void 0:n.airplay)||!1,e.next=3,k();case 3:o&&"Safari"==r.detectBrowser()&&Promise.resolve().then(function(){return T}).then(function(e){e.importAirplay()});case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function D(e,n){return C.apply(this,arguments)}function C(){return(C=n(t.mark(function e(n,o){var i,l,a,u,s,c,d,v,f,p;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return d=(null==o?void 0:o.contentType)||"video",v=null==o||null===(i=o[d])||void 0===i?void 0:i.drmEnabled,null==o||null===(l=o[d])||void 0===l||null===(a=l.liveDetails)||void 0===a||a.isDvrEnabled,null==n||n.showPositiveSeekbar,f=(null==o||null===(u=o[d])||void 0===u||null===(s=u.streamingInfo)||void 0===s||null===(c=s.videoAssets)||void 0===c?void 0:c.dash)||null,e.prev=5,e.next=8,Promise.allSettled([v?"Safari"==r.detectBrowser()?S():"caliente"!=(null===(p=window)||void 0===p?void 0:p.siteName)?I():S():"Safari"!=r.detectBrowser()&&f?I():null,b(n)]);case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.log("Error",e.t0);case 13:case"end":return e.stop()}},e,null,[[5,10]])}))).apply(this,arguments)}function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function A(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach(function(t){e(n,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}var L=new Set,R=null,N=function(e,n,t){var o,i,l,a,u,s,c,d={},v=(null==e?void 0:e.contentType)||"video";d["c3.cm.id"]=(null===(o=e[v])||void 0===o?void 0:o.id)||"Null",d["c3.cm.contentType"]=q(e),d[null==t||null===(i=t.Constants)||void 0===i?void 0:i.IS_LIVE]=!(null==e||!e.linearchannel),d[null==t||null===(l=t.Constants)||void 0===l?void 0:l.STREAM_URL]=n.currentSrc(),d[null==t||null===(a=t.Constants)||void 0===a?void 0:a.VIEWER_ID]="undefined"===r.getUserId()?"NULL":r.getUserId(),d["c3.cm.categoryType"]=B(e),d["m3.net.t"]=function(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(!e)return"Unknown";if(e.type)switch(e.type){case"wifi":return"WiFi";case"ethernet":return"Ethernet";default:return e.type}switch(e.effectiveType){case"slow-2g":case"2g":return"2G";case"3g":return"3G";case"4g":return e.downlink>=20?"WiFi":"4G";default:return"Unknown"}}(),d.DRMEnabled=(null===(u=e[v])||void 0===u?void 0:u.drmEnabled)||"None",d.DAIStream=null!==(s=e[v])&&void 0!==s&&null!==(c=s.gist)&&void 0!==c&&c.isSSAIEnabled?"YES":"NO",d[t.Constants.DEFAULT_RESOURCE]="AKAMAI",d["c3.cm.brand"]="NULL",d.CDVREnabled=U(e),d["c3.cm.genreList"]=V(e),d["c3.cm.genre"]=M(e),d["c3.cm.channel"]=_(e);var f=G(r.getCurrentSeries(),e);return d=A(A({},d),f)},M=function(e){var n,t,r,o=(null==e?void 0:e.contentType)||"video";return(null==e||null===(n=e[o])||void 0===n||null===(t=n.gist)||void 0===t||null===(r=t.primaryCategory)||void 0===r?void 0:r.title)||"Null"},V=function(e){var n,t=(null==e?void 0:e.contentType)||"video";return((null==e||null===(n=e[t])||void 0===n?void 0:n.categories)||[]).map(function(e){return null==e?void 0:e.title}).join(", ")||"Null"},_=function(e){var n,t,r=(null==e?void 0:e.contentType)||"video";return"video"===r?"VOD":(null==e||null===(n=e[r])||void 0===n||null===(t=n.channels[0])||void 0===t?void 0:t.title)||"NULL"},B=function(e){return(null==e?void 0:e.contentType)||"null"},U=function(e){var n,t,r=(null==e?void 0:e.contentType)||"video",o=(null==e||null===(n=e[r])||void 0===n||null===(t=n.liveDetails)||void 0===t?void 0:t.isDvrEnabled)||!1;return o?"YES":"NO"},H=function(e,n){var t,r,o=(n||{}).epg;if(o&&null!=o&&o.enable&&null!=o&&o.programTitle)return o.programTitle;var i=(null==e?void 0:e.contentType)||"video",l=(null==e||null===(t=e[i])||void 0===t||null===(r=t.gist)||void 0===r?void 0:r.title)||"Null";return"".concat(l)},q=function(e){return"linearchannel"===((null==e?void 0:e.contentType)||"video")?"Live":"VOD"};var F,Q,G=function(e,n){var t,o,i,l,a,u={"c3.cm.seriesName":"Null","c3.cm.seasonNumber":"Null","c3.cm.showTitle":"Null","c3.cm.episodeNumber":"Null"};if(!e||!n||null!=n&&n.linearchannel)return u;var s=r.getSeasonNumber(),c=r.getEpisodeNumber();return u["c3.cm.seriesName"]=(null==n||null===(t=n.video)||void 0===t||null===(o=t.series)||void 0===o?void 0:o.title)||"Null",u["c3.cm.seasonNumber"]=(null==s?void 0:s.toString())||"Null",u["c3.cm.showTitle"]=(null==e||null===(i=e[s-1])||void 0===i||null===(l=i.episodes)||void 0===l||null===(a=l[c-1])||void 0===a?void 0:a.title)||"Null",u["c3.cm.episodeNumber"]=(null==c?void 0:c.toString())||"Null",u},K=function(e){switch(e){case"com.widevine.alpha":return"Widevine";case"com.microsoft.playready":return"PlayReady";case"org.w3.clearkey":return"ClearKey";case"com.apple.fps.1_0":return"FairPlay";default:return"Unknown DRM System"}},W=function(e){switch(e){case"application/x-mpegURL":case"application/vnd.apple.mpegurl":return"HLS";case"application/dash+xml":return"DASH";default:return"Unknown"}},z=function(){var e=n(t.mark(function e(n,i){var l,a,u,s,c,d,v,f,p,m;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l=(null==i?void 0:i.convivaConfig)||{},a=l.trackConvivaPlayerEvent,u=l.paymentHandler,s=l.tveProvider,c=l.enable,d=l.appName,v=(i||{}).token,c){e.next=4;break}return e.abrupt("return");case 4:if(f=o.getPlayer(n),"function"==typeof(p=a)){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,p("getConvivaObject");case 10:if(m=e.sent){e.next=13;break}return e.abrupt("return");case 13:f.ready(function(){var e=f.tech(!0),n=!1;e.on("keysessioncreated",function(e){n=!0;var t=e.target;if(t&&t.keySystem){var r=K(t.keySystem);p("contentInfo",{DRMEnabled:r})}else p("contentInfo",{DRMEnabled:"None"})}),n||p("contentInfo",{DRMEnabled:"None"})}),f.on("loadstart",function(){var e,n;R&&R!==f.currentSrc()&&p("playbackEnded"),p("setPlayer",f),L.clear(),R=f.currentSrc();var t=W(f.currentType()),o=r.getCurrentVideo(),l=N(o,f,m);l[null==m||null===(e=m.Constants)||void 0===e?void 0:e.PLAYER_NAME]=d||"WEB",l[null==m||null===(n=m.Constants)||void 0===n?void 0:n.ASSET_NAME]=H(o,i),l.authToken=v||"NULL",l.streamType=t,l.D2CType=u||"NONE",l.subscriberType=s||(u?"D2C":"FREE"),l["c3.cm.affiliate"]=s||"NULL",J.setData(l),p("contentInfo",l)}),f.on("loadedmetadata",function(){var e,n=f.videoHeight();e=n>=2160?"4K":n>=1440?"1440p":n>=1080?"1080p":n>=720?"720p":n>=480?"480p":"".concat(n,"p"),p("contentInfo",{screenResolution:e})}),f.on("play",function(){L.has(f.currentSrc())||(L.add(f.currentSrc()),p("playbackStarted",null))}),f.on("ended",function(){L.has(f.currentSrc())&&L.delete(f.currentSrc()),p("playbackEnded")}),f.on("ads-loader",function(e){e&&null!=e&&e.adsLoader&&p("initAdSensor",{player:f,adsLoader:null==e?void 0:e.adsLoader})}),f.on("dispose",function(){null==L||L.clear(),p("playbackEnded")});case 20:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),J=(F={},{setData:function(e){F=A(A({},F),e)},getData:function(){return F}}),X=function(e,n){var t=null==n?void 0:n.skin;"default"==t?Promise.resolve().then(function(){return require("./skin-34064485.js")}).then(function(t){t.initialiseSkin(e,n)}):"carousel"==t?Promise.resolve().then(function(){return require("./skin-19f5ee87.js")}).then(function(n){n.initaliseSkin(e)}):"defaultV2"==t?Promise.resolve().then(function(){return require("./skin-e6d5161d.js")}).then(function(t){t.initialiseSkin(e,n)}):"multiplayer"==t?Promise.resolve().then(function(){return require("./skin-5b2feda8.js")}).then(function(t){t.initialiseSkin(e,n)}):"minimalist"==t?Promise.resolve().then(function(){return require("./skin-4849e82b.js")}).then(function(t){t.initaliseSkin(e,n)}):"VL_ONE"==t&&Promise.resolve().then(function(){return require("./skin-a4d456a2.js")}).then(function(t){t.initialiseSkin(e,n)})};function Y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function $(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach(function(t){e(n,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}var Z=[],ee=0,ne=null;function te(n,t,o){var i,l,a,u,s,c=arguments.length>3&&void 0!==arguments[3]&&arguments[3];null==t||null===(i=t.watchHistory)||void 0===i||i.apiVersion;var d=null==t||null===(l=t.watchHistory)||void 0===l?void 0:l.profileId,v=Math.floor(n.currentTime()),f=Math.floor(n.duration());null==t||null===(a=t.watchHistory)||void 0===a||a.xapiKey;var p=(null==t||null===(u=t.video)||void 0===u?void 0:u.originalObjectId)||null,m=(null==t||null===(s=t.watchHistory)||void 0===s?void 0:s.saveOffline)||!1,g=Math.floor(n.currentTime()),y=c?100:Math.floor(v/f*100),h={};m?function(n,t,o){var i=t?"watchhistory-data-".concat(t):"watchhistory-data-guest-".concat(o),l=re(i),a=(new Date).getTime(),u=r.getCurrentVideo(),s=(null==u?void 0:u.video)||{},c=["id","title","gist","categories","tags","status","publishDate","plans","isVerticalVideo","monetizationBadgeIdentifier","runtime"].reduce(function(n,t){return $($({},n),{},e({},t,s[t]))},{}),d=l.findIndex(function(e){var n;return(null==e||null===(n=e.content)||void 0===n?void 0:n.id)===Q});d<0?l.push($($({content:c},n),{},{addedDate:a,updateDate:a})):l[d]=$($($({},l[d]),n),{},{updateDate:a});localStorage.setItem("".concat(i),JSON.stringify(l))}(h={completed:c,watchedTime:g,watchedPercentage:y},d,t.siteOwner):(h=$($({videoId:Q,watchedTime:g,watchedPercentage:y,doneWatching:c,profileId:d},ne&&{seriesId:ne}),p&&{originalObjectId:p}),r.saveWatchHistory(h).then(function(e){}).catch(function(e){})),ee=v+o}function re(e){var n=[];return e&&(n=JSON.parse(localStorage.getItem("".concat(e))||"[]")),n}function oe(e,n,t){var r=re(e?"watchhistory-data-".concat(e):"watchhistory-data-guest-".concat(t)),o=[];return r&&Array.isArray(r)&&(o=r.filter(function(e){var t;return(null==e||null===(t=e.content)||void 0===t?void 0:t.id)===n})),o}var ie=!1,le=function(e,n){var t,o,i=(null==e?void 0:e.contentType)||"video";if(((null==e||null===(t=e[i])||void 0===t||null===(o=t.streamingInfo)||void 0===o?void 0:o.secondaryVideoAssets)||null)&&!ie){var l=ae(e,"videoAssets","secondaryVideoAssets"),a=r.getSource(l,n);return a&&r.loadVideo(n,a),ie=!0,console.log("switching to secondary source"),!0}return console.log("secondary source is either corrupted / not available"),!1};function ae(e,n,t){if(Array.isArray(e))return e.map(function(e){return ae(e,n,t)});if(null!==e&&"object"===d(e)){var r={};return Object.keys(e).forEach(function(o){o===n&&void 0!==e[t]?r[o]=e[t]:o===t&&void 0!==e[n]?r[o]=e[n]:r[o]=ae(e[o],n,t)}),r}return e}function ue(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return se(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?se(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){a=!0,i=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw i}}}}function se(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function ce(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function de(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(r),!0).forEach(function(t){e(n,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}var ve=function(e,n,t,i){var l,u,s,c,v=i.res,f=i.sres,p=o.getPlayer(e),m=(null==v?void 0:v.contentType)||"video",g=(null==v?void 0:v[m].drmEnabled)||!1,h=(null==v||null===(l=v[m])||void 0===l||null===(u=l.streamingInfo)||void 0===u?void 0:u.isLiveStream)||!1,b=(null==v||null===(s=v[m])||void 0===s||null===(c=s.liveDetails)||void 0===c?void 0:c.isDvrEnabled)||!1;r.setCurrentVideo(v),p&&(p.on("loadstart",function(){h?t.resolve({status:!0,msg:"Video Loaded",response:v}):t.resolve(de({status:!0,msg:"Player Initialised"},f?{seriesResponse:f,response:v}:{response:v}))}),p.on("loadeddata",function(){var t,i,l,u=a.getCaptions(e);if(null==u||u.map(function(n){return a.disableCaptions(e,n.id)}),b&&"Safari"===r.detectBrowser())try{var s;null==p||null===(s=p.liveTracker)||void 0===s||s.seekToLiveEdge()}catch(e){console.log("Cannot seek to Live Edge",e)}(null==p||!p.muted())&&y(e,sessionStorage.getItem("volume")||"100");var c=r.getCurrentVideo();if(r.clearError(),null!=n&&n.watchHistory&&null!=n&&null!==(t=n.watchHistory)&&void 0!==t&&t.enable&&(!n.isAnonymousUser||null!=n&&null!==(i=n.watchHistory)&&void 0!==i&&i.saveOffline)){var d,f,m=de(de({},n),v);!function(e,n,t){var r,i,l;null!=n&&n.series&&null!=n&&null!==(r=n.series)&&void 0!==r&&r.enable&&(ne=null==n||null===(i=n.series)||void 0===i?void 0:i.id),Z=[],ee=0,Q=t;var a=(null==n||null===(l=n.watchHistory)||void 0===l?void 0:l.interval)||30,u=o.getPlayer(e);u&&(u.on("timeupdate",function(){if(!u.seeking()){var e=Math.floor(u.currentTime());Z.includes(ee)||(e==ee?(Z.push(e),te(u,n,a)):e>ee&&(ee=e+a))}}),u.one("ended",function(){te(u,n,a,!0)}))}(e,m,null==c||null===(d=c.video)||void 0===d||null===(f=d.gist)||void 0===f?void 0:f.id)}if(null!=n&&null!==(l=n.analytics)&&void 0!==l&&l.muxKey&&null!=p&&p.mux){var g,h,w,k,S,O,P=(null===(g=r.getCurrentVideo())||void 0===g?void 0:g.video)||(null==v?void 0:v.video),I=null==P?void 0:P.gist,T={env_key:null==n||null===(h=n.analytics)||void 0===h?void 0:h.muxKey,player_name:"vl-web-player",player_version:null===(w=window)||void 0===w?void 0:w.vl_player_version,video_id:null==I?void 0:I.id,video_title:null==I?void 0:I.title,video_series:null==P||null===(k=P.series)||void 0===k?void 0:k.title,video_stream_type:null!=P&&null!==(S=P.streamingInfo)&&void 0!==S&&S.isLiveStream?"live":"video",viewer_user_id:null==n||null===(O=n.analytics)||void 0===O?void 0:O.userId};p.mux({debug:!1,data:T})}}),p.textTracks().on("change",function(e){var n=this.tracks_.filter(function(e){if(("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode)return!0})[0];p.trigger("subtitlechanged",n)}),p.on("subtitlechanged",function(e,n){var t,r,o,i,l,a,u,s,c,d,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,f=null===(t=window)||void 0===t||null===(r=t.cast)||void 0===r||null===(o=r.framework)||void 0===o||null===(i=o.CastContext)||void 0===i||null===(l=i.getInstance())||void 0===l?void 0:l.S,p=null===(a=window)||void 0===a||null===(u=a.cast)||void 0===u||null===(s=u.framework)||void 0===s||null===(c=s.CastContext)||void 0===c||null===(d=c.getInstance())||void 0===d?void 0:d.getCurrentSession();if(v&&"CONNECTED"===f){var m,g=p.getMediaSession(),y=g.media.tracks.filter(function(e){return"TEXT"==e.type});m=n?new chrome.cast.media.EditTracksInfoRequest([y[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),g.editTracksInfo(m)}}),p.tech_.on("retryplaylist",function(){h&&le(v,e)}),p.on("error",function(){var n,o;(console.log("ERROR",p.error(),p.error().code),4===p.error().code&&h)?le(v,e):(r.handleError(e,(null==p||null===(n=p.error())||void 0===n?void 0:n.message)||"Some error occured"),t.reject({status:!1,msg:(null==p||null===(o=p.error())||void 0===o?void 0:o.message)||"Some error occured",response:v}))}),p.one("play",function(){var e,t,o,i,l;if(null===(e=window)||void 0===e||null===(t=e.app_data)||void 0===t||null===(o=t.appcmsMain)||void 0===o||null===(i=o.adsConfig)||void 0===i||!i.vodAdClientSideTracking){if(null!=n&&null!==(l=n.series)&&void 0!==l&&l.enable){var a,u,s,c=null===(a=r.getCurrentVideo())||void 0===a||null===(u=a.video)||void 0===u||null===(s=u.gist)||void 0===s?void 0:s.id,d=r.getSeriesWatchMap(),v=(null==d?void 0:d.get(c))||{t:0,p:0},f=v.t,m=v.p;f&&m<95&&setTimeout(function(){p.currentTime(f)},0)}else null!=n&&n.watchHistoryResumeTime&&(null==n?void 0:n.watchedPercentage)<95&&setTimeout(function(){p.currentTime(null==n?void 0:n.watchHistoryResumeTime)},0);if(null!=p&&p.dvrSeekbar)try{p.dvrSeekbar()}catch(e){console.error("Error while initilizing dvr seekbar")}}}),p.on("volumechange",function(){var e=100*p.volume().toFixed(2);p.muted()?sessionStorage.setItem("volume",0):sessionStorage.setItem("volume",e)}),p.on("chromecastDisconnected",function(){if(h){p.currentSource();for(var e=p.textTracks(),n=e.length-1;n>=0;n--)p.removeRemoteTextTrack(e[n])}}),p.one("loadeddata",function(){var e,n=(null==p||null===(e=p.audioTracks())||void 0===e?void 0:e.tracks_)||null;if(n)if(n.sort(function(e,n){var t=(e.language||e.language||"").toUpperCase(),r=(n.language||n.label||"").toUpperCase();return t<r?-1:t>r?1:0}),"object"==d(p.dash)){var t,o,i,l=null==p||null===(t=p.dash)||void 0===t||null===(o=t.mediaPlayer)||void 0===o?void 0:o.getTracksFor("audio"),a=null==l?void 0:l.find(function(e){var n;return null==e||null===(n=e.roles)||void 0===n?void 0:n.includes("main")}),u=ue(n);try{for(u.s();!(i=u.n()).done;){var s=i.value;if(a&&(null==s?void 0:s.id)=="dash-audio-".concat(a.index)){s.enabled=!0;break}}}catch(e){u.e(e)}finally{u.f()}}else{var c,v=ue(n);try{for(v.s();!(c=v.n()).done;){var f,m,y,h=c.value;if(("Chrome"==r.detectBrowser()||"Edge"==r.detectBrowser()&&(null!==(f=navigator)&&void 0!==f&&null!==(m=f.userAgent)&&void 0!==m&&m.includes("Macintosh")||!g))&&null!=h&&null!==(y=h.label)&&void 0!==y&&y.includes("5.1"))p.audioTracks().removeTrack(h);else{if("main"==h.kind){h.enabled=!0;break}h.enabled=!1}}}catch(e){v.e(e)}finally{v.f()}}}))};var fe,pe=(fe=!0,{enable:function(){fe=!0},disable:function(){fe=!1},get enabled(){return fe}}),me="ssai-breakStart",ge="ssai-adImpression",ye="ssai-firstQuartile",he="ssai-midpoint",be="ssai-thirdQuartile",we="ssai-complete",ke="ssai-breakEnd",Se={breakStart:me,impression:ge,firstQuartile:ye,midpoint:he,thirdQuartile:be,complete:we,breakEnd:ke};function Oe(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=o.getPlayer(e);if(!t)return console.error("[SSAI] Player instance not found"),{};var r=n.eventType,i=Se[r];i&&t.trigger(i,n)}function Pe(e){var n=o.getPlayer(e);if(!n)return console.error("[SSAI] Player instance not found"),{};var t=function(e,t){var r=function(e,n){return t(n)};return n.on(e,r),function(){return n.off(e,r)}};return{adBreakStart:function(e){return t(me,e)},adImpression:function(e){return t(ge,e)},adFirstQuartile:function(e){return t(ye,e)},adMidpoint:function(e){return t(he,e)},adThirdQuartile:function(e){return t(be,e)},adComplete:function(e){return t(we,e)},adBreakEnd:function(e){return t(ke,e)}}}function Ie(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function Te(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach(function(t){e(n,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}function je(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return Ee(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ee(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){a=!0,i=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw i}}}}function Ee(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var De,Ce,xe=(De="",{set:function(e){e&&(De=e)},get:function(){return De}}),Ae=(Ce=null,{set:function(e){Ce=e},get position(){return Ce}});function Le(e,n){return Re.apply(this,arguments)}function Re(){return Re=n(t.mark(function e(n,i){var l,a,u,s,c,d,v,p,m,g,y,h,b,w;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o.getPlayer(n),l=r.getSource(i,n),a=l.src,u=a.replace("/dash/","/session/").replace("/master/","/session/"),u=r.replaceMacros(u,n,i),s=Ne(u),c=f(s,2),d=c[0],v=c[1],u=new URL(u.split("?")[0]),Object.keys(v).length>0&&Object.entries(v).forEach(function(e){var n=f(e,2),t=n[0],r=n[1];u.searchParams.set(t,r)}),e.prev=8,e.next=11,fetch(u,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adsParams:Te({},d)})});case 11:return p=e.sent,e.next=14,p.json();case 14:return m=e.sent,g="https://"+new URL(u).hostname,y=m.trackingUrl,h=m.manifestUrl,b=g+y,w=g+h,xe.set(b),console.log("%c TRACKING URL","background: #bdf369; color: #000",b),l.src=w,e.abrupt("return",l);case 26:return e.prev=26,e.t0=e.catch(8),e.abrupt("return",l);case 29:case"end":return e.stop()}},e,null,[[8,26]])})),Re.apply(this,arguments)}function Ne(e){var n={};if(!e.split("?")[1])return[{},{}];var t,r=new URL(e,window.location.origin),o=je((null==r?void 0:r.searchParams)||[]);try{for(o.s();!(t=o.n()).done;){var i=f(t.value,2),l=i[0],a=i[1];n[decodeURIComponent(l)]=decodeURIComponent(a||"")}}catch(e){o.e(e)}finally{o.f()}for(var u={},s={},c=0,d=Object.entries(n);c<d.length;c++){var v=f(d[c],2),p=v[0],m=v[1];if(p.startsWith("ads."))u[p.replace(/^ads\./,"")]=m;else s[p]=m}return[u,s]}var Me,Ve=(Me=[],{setQueuePoints:function(e){console.log("%c Setting SGAI Queue Points ","background: #bdf369; color: #000",e),Me=Array.isArray(e)?v(e):Me},getQueuePoints:function(){return console.log("%c Getting SGAI Queue Points ","background: #bdf369; color: #000",Me),v(Me)}});function _e(){return _e=n(t.mark(function e(i,l){var a,u,c,d,f,p,m,g,y,h,b,w,k,S,O,P,I;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:I=function(e,n,t,r,l,a){var u=o.getPlayer(i);if(!u.seeking()){n.startTimeInSeconds,n.durationInSeconds,Math.floor(u.currentTime());var s,c=je(t);try{var d=function(){var t,o,c,d=s.value,v=d.eventType,f=d.beaconUrls,p=d.startTimeInSeconds,m=d.startTime,g=d.durationInSeconds,y=p||0,h=f,b=(null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o||null===(c=o.ads)||void 0===c?void 0:c.adEventHandler)||null,w="".concat(y,"_").concat(v),k=O.get("pod-".concat(l))||[];if(console.warn(e,y,"map:",v,"condition1:",e>=y,"map:",O),e>=y&&!k.includes(w)){k.push(w),O.set("pod-".concat(l),k);try{P(v,n,h,u)}catch(e){console.error("Error when calling triggerAdBeacon:",e,v,n)}if("breakEnd"==v){var S=Ae.position;Ae.set(null),setTimeout(function(){null!=S&&(u.currentTime(S),a())},500)}if("function"==typeof b)try{var I,T={eventType:v,startTimeInSeconds:p,startTime:m,durationInSeconds:g,ad:null==n||null===(I=n.ads)||void 0===I?void 0:I[r],adIndex:r};b({adsData:T}),Oe(i,T)}catch(e){console.error("Error when calling ads callback:",e)}}};for(c.s();!(s=c.n()).done;)d()}catch(e){c.e(e)}finally{c.f()}}},P=function(e,n,t,r){console.warn("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(r.currentTime())),"AD_POD:",n),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(r.currentTime())),"AD_POD:",n),null==t||t.forEach(function(e){fetch(e,{mode:"no-cors"}).catch(function(n){console.warn("Beacon failed:",e,n)})})},S=function(e){var n=Math.floor(e/60),t=Math.floor(e%60);return"".concat(n,":").concat(t.toString().padStart(2,"0"))},Ae.set(l),f=xe.get(),(p=o.getPlayer(i)).one("loadeddata",function(){f&&k(f)}),m=new Map,g=new Map,y=-1,h=(null===(a=document)||void 0===a||null===(u=a.getElementsByClassName("tvProviderImage"))||void 0===u?void 0:u[0])||null,b=(null==p||null===(c=p.controlBar)||void 0===c?void 0:c.getChild("videoSelector"))||null,w=(null==p||null===(d=p.controlBar)||void 0===d?void 0:d.getChild("seriesV2"))||null,k=function(){var e=n(t.mark(function e(n){var a,u,c,d,f,p,k,O,P,T,j,E,D,C,x,A,L;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return D=function(e){document.removeEventListener("pointermove",E),document.removeEventListener("pointerup",D),0===e.button&&T()},E=function(e){},j=function(){var e,n=k.currentTime(),t=null,r=je(p);try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.startTimeInSeconds,l=o.durationInSeconds,a=(o.ads,Math.floor(i+l));n>=i&&n<=a&&(t=a,m.set(i,!0))}}catch(e){r.e(e)}finally{r.f()}null!==t&&(console.log("Seeking to end of the ad pod:",t),setTimeout(function(){k.currentTime(t+2.2)},100))},T=function(){var e,n=k.currentTime(),t=null,r=je(p);try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.startTimeInSeconds,l=o.durationInSeconds,a=o.ads,u=Math.floor(i+l);(Array.isArray(a)&&(null==a?void 0:a.length)>0&&(n>u||n>i)&&!m.has(i)||n>=i&&n<=u)&&(t=i,m.set(i,!0),g.set(i,!0))}}catch(e){r.e(e)}finally{r.f()}null!==t&&(console.log("Seeking back to ad pod:",t),setTimeout(function(){k.currentTime(t+.4)},100))},u=!1,e.next=7,fetch(n);case 7:return c=e.sent,e.next=10,c.json();case 10:d=e.sent,console.log("%c TRACKING URL RESPONSE ","background: #d9e7ff; color: #000",d),f=d.avails,p=[],k=o.getPlayer(i),O=k.controlBar.progressControl,P=O.seekBar.el(),f.map(function(e,n){var t,r,o;0==n&&Array.isArray(null==e?void 0:e.ads)&&(null==e||null===(t=e.ads)||void 0===t?void 0:t.length)>0&&(u=!0),p.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds),podSlotImpressionBeacon:(null==e||null===(r=e.adBreakTrackingEvents)||void 0===r||null===(o=r.filter(function(e){return"breakStart"==(null==e?void 0:e.eventType)}))||void 0===o?void 0:o[0])||[]})}),!u&&l&&(k.currentTime(l),j()),null!=p&&p.length&&(console.log("%c SSAI AD PODS ","background: #bdf369; color: #000",p),window.adsQueueList=p),console.log(p,"data"),p.forEach(function(e){var n=e.markerPositionInSeconds,t=e.ads,r=k.duration();if(!(n>r||Array.isArray(t)&&0==(null==t?void 0:t.length))){var o=n/r*100,i=document.createElement("div");i.className="vjs-seekbar-marker",i.style.left="".concat(o,"%"),i.style.position="absolute",i.style.top="0",i.style.bottom="0",i.style.width="2px",i.style.backgroundColor="#fecc09",i.style.left="".concat(o,"%"),i.style.pointerEvents="none",P.appendChild(i)}}),k.on("timeupdate",s.throttle(function(){var e=k.currentTime();if(e!==y){y=e;for(var n=!1,t=function(){var t=p[r],o=t.startTimeInSeconds,i=t.durationInSeconds,l=t.ads,a=o+i;if(e>=o-1.2&&e<=a+1.2){e>=o&&e<=a&&Array.isArray(l)&&(null==l?void 0:l.length)>0&&(n=!0),e>a&&m.set(o,!0),pe.disable(),h&&h.classList.add("vjs-hidden"),b&&(b.el().style.pointerEvents="none",b.el().classList.add("vjs-hidden")),w&&(w.el().style.pointerEvents="none",w.el().classList.add("vjs-hidden")),O.el().style.visibility="hidden";for(var u=e-o,s=0,c=0,d=0;d<l.length;d++){var f,y=null==l||null===(f=l[d])||void 0===f?void 0:f.durationInSeconds;if(u<s+y){c=d;break}s+=y}l[c];var k=Math.max(0,i-u),P=Math.round(k);C.style.display="block",L.textContent="".concat(c+1," of ").concat(l.length," • ").concat(S(P));var T=[];return null==l||l.forEach(function(e){var n=e.trackingEvents.filter(function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression","complete"].includes(e.eventType)});T.push.apply(T,v(n))}),Array.isArray(l)&&0==(null==l?void 0:l.length)&&T.push(null==t?void 0:t.podSlotImpressionBeacon),I(e,t,T,c,r,j),"break"}g.delete(o)},r=0;r<p.length;r++){if("break"===t())break}n||(C.style.display="none",O.el().style.visibility="visible",b&&(b.el().style.pointerEvents="auto",b.el().classList.remove("vjs-hidden")),w&&(w.el().style.pointerEvents="auto",w.el().classList.remove("vjs-hidden")),h&&h.classList.remove("vjs-hidden"),pe.enable())}},1e3)),null===(a=document)||void 0===a||a.addEventListener("keydown",function(e){pe.enabled&&"ArrowRight"==e.key&&(T(),r.skip(i,10),e.stopPropagation())}),O.el().addEventListener("pointerdown",function(e){0===e.button&&(document.addEventListener("pointermove",E),document.addEventListener("pointerup",D))}),(C=document.createElement("div")).className="ssai-ad-container",(x=document.createElement("div")).className="sponsored-adbox",(A=document.createElement("div")).className="sponsored-text",A.textContent="Sponsored Ad",x.append(A),(L=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",C.append(x),C.append(L),k.el().appendChild(C);case 41:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),O=new Map;case 16:case"end":return e.stop()}},e)})),_e.apply(this,arguments)}function Be(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function Ue(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(r),!0).forEach(function(t){e(n,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}var He=function(l,u,c,d){var v,f,m,g,y,h,b,k,S,O,P,I,T,j,E,C,x,A,L,R,N,M,V,_,B,U,H,q,F,Q,G,K,W,Y,$,Z,ee,ne,te=u.res,re=void 0===te?null:te,oe=u.sres,ie=void 0===oe?null:oe,le=null!=c&&c.chromecastReceiverId?["chromecast","html5"]:["html5"],ae=(null===(v=re)||void 0===v?void 0:v.contentType)||"video",ue=s.impolicy16x9(null===(f=re)||void 0===f||null===(m=f[ae])||void 0===m||null===(g=m.gist)||void 0===g?void 0:g.videoImageUrl)||s.impolicy16x9(null===(y=re)||void 0===y||null===(h=y[ae])||void 0===h||null===(b=h.gist)||void 0===b||null===(k=b.imageGist)||void 0===k?void 0:k.r16x9),se=(null===(S=re)||void 0===S||null===(O=S[ae])||void 0===O||null===(P=O.liveDetails)||void 0===P?void 0:P.isDvrEnabled)||!1,ce=(null===(I=re)||void 0===I||null===(T=I[ae])||void 0===T||null===(j=T.streamingInfo)||void 0===j?void 0:j.isLiveStream)||!1,de=(null===(E=re)||void 0===E||null===(C=E.ads)||void 0===C||null===(x=C.preRoll)||void 0===x||null===(A=x.adTags)||void 0===A||null===(L=A.web)||void 0===L?void 0:L.active)&&(null===(R=re)||void 0===R||null===(N=R.ads)||void 0===N||null===(M=N.preRoll)||void 0===M||null===(V=M.adTags)||void 0===V||null===(_=V.web)||void 0===_?void 0:_.url),fe=(null===(B=re=Ue(Ue({},re),{},{audioAssetSource:null==c?void 0:c.audioAssetSource}))||void 0===B||null===(U=B[ae])||void 0===U?void 0:U.isSSAIEnabled)&&"MEDIA_TAILOR"==(null===(H=window)||void 0===H||null===(q=H.app_data)||void 0===q||null===(F=q.appcmsMain)||void 0===F||null===(Q=F.adsConfig)||void 0===Q?void 0:Q.vodAdSticherProvider)||!1,pe=(null==c?void 0:c.latency)||6,me=(null==c?void 0:c.skin_settings)||{},ge=(null==c?void 0:c.dvrConfig)||{enable:!1},ye=(ne={enableSmoothSeeking:!0,controls:0!=(null==c?void 0:c.controls),playsinline:!0,fluid:!0,aspectRatio:"16:9",muted:(null==c?void 0:c.muted)||!1,autoplay:(null==c?void 0:c.autoplay)||!1,controlBar:{volumePanel:{inline:!1},fullscreenToggle:!0,audioTrackButton:!0,pictureInPictureToggle:(null==me?void 0:me.pictureInPictureToggle)||!1},playbackRates:null!=me&&me.playbackRates?[.5,1,1.5,2]:[],muteToggle:"multiplayer"==c.skin,liveui:se},e(ne,"autoplay",null==c?void 0:c.autoplay),e(ne,"normalizeAutoplay",(null==c?void 0:c.autoplay)&&!de),e(ne,"loop",(null==c?void 0:c.loop)||!1),e(ne,"audioPosterMode",null==c?void 0:c.audioPosterMode),e(ne,"html5",Ue(Ue({dash:Ue(Ue(Ue({},!i.browser.IS_SAFARI&&{useTTML:!0}),(null==c?void 0:c.debugConfig)&&(null==c||null===(G=c.debugConfig)||void 0===G?void 0:G.enable)&&{debug:!0,logLevel:null!=c&&null!==(K=c.debugConfig)&&void 0!==K&&K.logLevel?null==c||null===(W=c.debugConfig)||void 0===W?void 0:W.logLevel:"DEBUG"}),{},{updateSettings:{streaming:{delay:{liveDelay:pe},text:{defaultEnabled:!1},liveCatchup:{maxDrift:0,playbackRate:{min:-.1,max:.1}},gaps:{enableStallFix:!0,stallSeek:3},abr:{autoSwitchBitrate:{video:!0,audio:!0}}}}}),vhs:Ue(Ue({liveRangeSafeTimeDelta:pe,useDevicePixelRatio:!0,experimentalLLHLS:(null==c?void 0:c.lowLatency)||!1,limitRenditionByPlayerDimensions:!1,useNetworkInformationApi:!0},(null==c||null===(Y=c.customData)||void 0===Y?void 0:Y.overrideNative)&&{overrideNative:!0}),{},{enableLowInitialPlaylist:null===($=null==c?void 0:c.enableLowInitialPlaylist)||void 0===$||$}),debug:!0,nativeTextTracks:"Safari"==r.detectBrowser()},0==(null==c||null===(Z=c.customData)||void 0===Z?void 0:Z.nativeAudioTracks)&&{nativeAudioTracks:!1}),0==(null==c||null===(ee=c.customData)||void 0===ee?void 0:ee.nativeVideoTracks)&&{nativeVideoTracks:!1})),e(ne,"poster",ue),e(ne,"techOrder",le),e(ne,"chromecast",{requestCustomDataFn:function(e){var n,t,r=o.getPlayer(l),i=((null==r?void 0:r.textTracksJson_)||r.textTracks().tracks_).filter(function(e){return"captions"==e.kind||"subtitles"==e.kind}),a=function(e,n,t){var r,o,i,l,a,u,s,c,d,v,f=(null==e?void 0:e.contentType)||"video",p={};if(e&&null!=e&&e[f]&&null!=e&&e[f].drmEnabled){var m,g,y,h,b,w,k,S;p.isDrmEnabled=!0;var O=(null==n||null===(m=n.keySystems)||void 0===m?void 0:m["com.widevine.alpha"])||null,P=(null==O?void 0:O.url)||(null==n||null===(g=n.keySystemOptions)||void 0===g||null===(y=g[0])||void 0===y||null===(h=y.options)||void 0===h?void 0:h.serverURL);p.licenseUrl=P;var I=(null==O?void 0:O.licenseHeaders["X-AxDRM-Message"])||(null==n||null===(b=n.keySystemOptions)||void 0===b||null===(w=b[0])||void 0===w||null===(k=w.options)||void 0===k||null===(S=k.httpRequestHeaders)||void 0===S?void 0:S["X-AxDRM-Message"]);p.licenseToken=I}var T=(null==e||null===(r=e[f])||void 0===r||null===(o=r.gist)||void 0===o?void 0:o.contentType)||"VIDEO";p.contentType=T;var j=null==e||null===(i=e[f])||void 0===i||null===(l=i.gist)||void 0===l?void 0:l.runtime;p.duration=j;var E=null==e||null===(a=e[f])||void 0===a||null===(u=a.gist)||void 0===u?void 0:u.title;p.mediaTitle=E;var D=null==e||null===(s=e[f])||void 0===s||null===(c=s.gist)||void 0===c?void 0:c.videoImageUrl;return p.mediaImage=D,p.subTitles=t,p.DVR=(null==e||null===(d=e[f])||void 0===d||null===(v=d.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(p),p}(re,e,i);return Ue(Ue({},a),{},{convivaMetaData:Ue({customerKey:(null==c||null===(n=c.convivaConfig)||void 0===n?void 0:n.customerKey)||null,debug:(null==c||null===(t=c.convivaConfig)||void 0===t?void 0:t.debug)||!1},J.getData())})},modifyLoadRequestFn:function(e){var n,t,r,i,a,u=o.getPlayer(l),s=(null==u?void 0:u.currentSource())||{};!(null===(n=re)||void 0===n||null===(t=n[ae])||void 0===t||null===(r=t.streamingInfo)||void 0===r||null===(i=r.videoAssets)||void 0===i?void 0:i.is4K)&&1||null!=s&&s.src&&null!=s&&null!==(a=s.src)&&void 0!==a&&a.includes(".m3u8")&&(e.media.hlsSegmentFormat="fmp4",e.media.hlsVideoSegmentFormat="fmp4");return e}}),ne);if(!i.getPlayers()[l]){i.log.level("debug");var he=i(l,ye,function(){var e=n(t.mark(function e(){var n,o,u,s,v,f,m,g,y,h,b,k,S,O,P,I,T,j,E,C,x,A,L;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(he),console.log(i.VERSION),console.log(i.getPlugins()),e.next=5,D(c,re);case 5:if(k=null===(n=re)||void 0===n||null===(o=n[ae])||void 0===o||null===(u=o.liveDetails)||void 0===u?void 0:u.startOverTime,ce&&d.resolve(Ue({status:!0,msg:"Player Initialised"},ie?{seriesResponse:ie,response:re}:{response:re})),S={},null!=ge&&ge.enable&&se&&(S.playFromBegining=ge.playFromBegining,S.playLive=ge.playLive,P=null==c||null===(O=c.epg)||void 0===O?void 0:O.programSubType,"linearchannel"===ae?"LIVE"===(null==P?void 0:P.toUpperCase())&&p.addDvrOverlay(l,c):p.addDvrOverlay(l,c)),r.inititateBeacon(l,null==c?void 0:c.analyticsCb,S),z(l,c),/Android/i.test(navigator.userAgent)&&(i.options.vhs.overrideNative=!0),se&&w(l,k),!de||null!=c&&null!==(s=c.customData)&&void 0!==s&&s.disableAds||r.initialiseAdvertisement(l,de,re),I=r.getSource(re,l),console.log(I),null!=c&&c.nearestClusterUrl&&(I=r.getUpdatedClusterSource(I,c.nearestClusterUrl)),!fe){e.next=21;break}return e.next=20,Le(l,re);case 20:I=e.sent;case 21:I?r.loadVideo(l,I):(d.reject({status:!1,msg:"Incompatible / Missing Source",response:re}),r.handleError(l,"Incompatible / Missing Source")),((null===(v=re)||void 0===v||null===(f=v[ae])||void 0===f||null===(m=f.contentDetails)||void 0===m||null===(g=m.closedCaptions)||void 0===g?void 0:g.length)>0||(null===(y=re)||void 0===y||null===(h=y[ae])||void 0===h||null===(b=h.closedCaptions)||void 0===b?void 0:b.length)>0)&&(L=(null===(j=re)||void 0===j||null===(E=j[ae])||void 0===E||null===(C=E.contentDetails)||void 0===C?void 0:C.closedCaptions)||(null===(x=re)||void 0===x||null===(A=x[ae])||void 0===A?void 0:A.closedCaptions),T=L.filter(function(e){return"VTT"===e.format}),a.addCaptions(l,T)),null!=c&&c.disableControls?r.disableControls(l):X(l,Ue(Ue(Ue({},c),ye),{},{liveVideo:ce,isDvrEnabled:se,res:re,sres:ie})),ve(l,Ue(Ue(Ue({},c),ye),{},{liveVideo:ce}),d,{res:re,sres:ie});case 25:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}())}},qe={spinco:"e8f2c1a7-5d94-4a1f-93ea-7c0b9186f1cd"};function Fe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function Qe(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(r),!0).forEach(function(t){e(n,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Fe(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}var Ge,Ke=function(e,n){var t=n.resolve,r=n.reject,o=null==e?void 0:e.playerId,i=We(e);He(o,{res:i},e,{resolve:t,reject:r})},We=function(e){var n,t,o,i,l,a,u,s,c=null==e?void 0:e.streamingInfo,d=null==e||null===(n=e.streamingInfo)||void 0===n?void 0:n.videoAssets,f=(null==e||null===(t=e.streamingInfo)||void 0===t?void 0:t.isDrmEnabled)||null,p=(null==e||null===(o=e.streamingInfo)||void 0===o||null===(i=o.ads)||void 0===i?void 0:i.url)||null,m=(null==e||null===(l=e.streamingInfo)||void 0===l?void 0:l.posterUrl)||null,g=(null==e||null===(a=e.streamingInfo)||void 0===a?void 0:a.subtitles)||[],y=(null==e||null===(u=e.streamingInfo)||void 0===u||null===(s=u.videoAssets)||void 0===s?void 0:s.drmProvider)||null,h=null==e?void 0:e.token,b=r.getDecodedToken(h),w=null==b?void 0:b.site;return Qe(Qe({id:null==qe?void 0:qe[w]},!f&&{directPlaybackUrl:null==d?void 0:d.url}),{},{video:{drmEnabled:f,streamingInfo:{videoAssets:Qe(Qe({},y&&{drmProvider:y}),{},{widevine:null==d?void 0:d.widevine,fairPlay:null==d?void 0:d.fairPlay,playReady:null==d?void 0:d.playReady})},liveDetails:{isDvrEnabled:null==c?void 0:c.isDvrEnabled},gist:Qe({},m&&{videoImageUrl:m}),contentDetails:Qe({},(null==g?void 0:g.length)>0&&{closedCaptions:v(g)})},ads:{preRoll:{adTags:{web:Qe(Qe({},p&&{active:!0}),p&&{url:p})}}}})};function ze(e,n){return Je.apply(this,arguments)}function Je(){return(Je=n(t.mark(function e(n,o){var i,l,a,u,s,c;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.resolve,l=o.reject,a=null==n?void 0:n.videoId,u=null==n?void 0:n.playerId,s=!(null==n||!n.anonymousId),e.next=6,r.getToken();case 6:c=e.sent,r.getVideoDetails(a,c).then(function(e){var t,o,d,v;window.contentType=null==e||null===(t=e.data)||void 0===t||null===(o=t.video)||void 0===o||null===(d=o.gist)||void 0===d?void 0:d.contentType,r.setCurrentVideo(null==e?void 0:e.data);var f,p=null==e?void 0:e.data;if(null!=n&&n.watchHistory&&null!=n&&null!==(v=n.watchHistory)&&void 0!==v&&v.enable&&!s)if((null===(f=n.watchHistory)||void 0===f?void 0:f.saveOffline)||!1){var m,g,y,h=oe((null===(m=n.watchHistory)||void 0===m?void 0:m.profileId)||"",a,null==n?void 0:n.siteOwner);if(h&&h.length)n.watchHistoryResumeTime=(null===(g=h[0])||void 0===g?void 0:g.watchedTime)||null,n.watchedPercentage=(null===(y=h[0])||void 0===y?void 0:y.watchedPercentage)||null;p.contentType="video",He(u,{res:p},n,{resolve:i,reject:l})}else r.getVideoInfo(a,c).then(function(e){var t,r,o,i,l,a;null!==(t=window)&&void 0!==t&&null!==(r=t.watchHistory)&&void 0!==r&&r.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(null==e?void 0:e.data)),n.watchHistoryResumeTime=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedTime)||null,n.watchedPercentage=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedPercentage)||null,p.contentType="video"}).catch(function(e){var n,t,r,o;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(r=window)||void 0===r||null===(o=r.watchHistory)||void 0===o||o.cb(e))}).finally(function(){He(u,{res:p},n,{resolve:i,reject:l})});else He(u,{res:p},n,{resolve:i,reject:l})}).catch(function(e){r.initiateErrorHandling(e,u,l,a)});case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Xe(e,n){return Ye.apply(this,arguments)}function Ye(){return(Ye=n(t.mark(function e(n,o){var i,l,a,u,s;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.resolve,l=o.reject,e.next=3,r.getToken();case 3:a=e.sent,u=null==n?void 0:n.playerId,s=null==n?void 0:n.epg,r.getLinearChannelDetails(s,a).then(function(e){var t=null==e?void 0:e.data;t.contentType="linearchannel",t.channelId=null==s?void 0:s.channelId,He(u,{res:t},n,{resolve:i,reject:l})}).catch(function(e){r.initiateErrorHandling(e,u,l,videoId)});case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)}function $e(e,n){return Ze.apply(this,arguments)}function Ze(){return(Ze=n(t.mark(function e(n,o){var i,l,a,u,s,c,d;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l=o.resolve,a=o.reject,e.next=3,r.getToken();case 3:u=e.sent,s=null==n?void 0:n.playerId,c=sessionStorage.getItem("season-idx")||0,r.seasonIdxManager.set(parseInt(c)),d=null==n||null===(i=n.series)||void 0===i?void 0:i.id,r.getSeriesDetails(d,u).then(function(e){var t,o,i,c=e.data,v=e.data.seasons;r.setCurrentSeries(v);var f=videoId||(null==v||null===(t=v[0])||void 0===t||null===(o=t.episodes)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.id);r.createSeriesWatchMap(d,u),r.getVideoDetails(f,u).then(function(e){var t,o,i;window.contentType=null==e||null===(t=e.data)||void 0===t||null===(o=t.video)||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.contentType,r.setCurrentVideo(e.data),He(s,{res:null==e?void 0:e.data,sres:c},n,{resolve:l,reject:a})}).catch(function(e){r.initiateErrorHandling(e,s,a,videoId)})}).catch(function(e){r.initiateErrorHandling(e,s,a)});case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}function en(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function nn(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?en(Object(r),!0).forEach(function(t){e(n,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):en(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}exports.VLPlayerCore=function(){return{loadVideoInstantly:r.loadVideoInstantly,onTimeUpdate:l.onTimeUpdate,getVideoDuration:l.getVideoDuration,onVideoEnded:l.onVideoEnded,init:function(e){return console.log("%c VIDEOJS-8 ","background: #bdf369; color: #000"),new Promise(function(){var o=n(t.mark(function n(o,i){var l,a,u,d,v,f,p,g,y,h,b,w,k,S,O,P,I,T,E,D,C,x,A;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!r.isPlayerInitialised(null==e?void 0:e.playerId)){n.next=2;break}return n.abrupt("return");case 2:if(b=(null==e?void 0:e.videoSourceUrl)||!1,w=null==e?void 0:e.asat,k=(null==e||null===(l=e.epg)||void 0===l?void 0:l.enable)||!1,S=null==e?void 0:e.videoId,O=(null==e||null===(a=e.series)||void 0===a?void 0:a.enable)||!1,P=(null==e?void 0:e.streamingInfo)||!1,window.videoId=S,I=null==e?void 0:e.token,!r.token_authentication_enabled(e)){n.next=17;break}if(sessionStorage.setItem("vlp_token",I),r.refreshTokenManager().set(null==e?void 0:e.refreshToken),I&&!r.isTokenExpired(I)){n.next=16;break}return i({status:!1,msg:"".concat(I?"Token is expired !":"Missing Authorization Token"),response:{token:I}}),n.abrupt("return");case 16:Ge=JSON.parse(atob(I.split(".")[1]));case 17:return e.isAnonymousUser=!(null===(u=Ge)||void 0===u||!u.anonymousId),e.siteOwner=(null===(d=Ge)||void 0===d?void 0:d.site)||null,e.userId=(null===(v=Ge)||void 0===v?void 0:v.userId)||null,window.sessionStorage.setItem("uid",null===(f=Ge)||void 0===f?void 0:f.userId),window.watchHistory=e.watchHistory||null,T=null==e?void 0:e.playerId,e.chromecastReceiverId=null!=e&&null!==(p=e.series)&&void 0!==p&&p.enable?null:null==e?void 0:e.chromecastReceiverId,E=(null==e||null===(g=e.analytics)||void 0===g?void 0:g.gaId)||null,(D=null==e?void 0:e.errors)&&(window.customErrors=D),window.customData=null==e?void 0:e.customData,c.setLocalisation(null==e||null===(y=e.customData)||void 0===y?void 0:y.localisation),r.baseUrlManager.set(e.apiBaseUrl),null!=e&&e.skin&&!s.isNotAValidSkin(e.skin)||(e.skin="VL_ONE"),n.next=33,j(e);case 33:E&&m("https://www.googletagmanager.com/gtag/js?id=".concat(E)).then(function(){return r.runGtag(E)}).catch(function(e){}),(C=null===(h=document)||void 0===h?void 0:h.getElementById("".concat(T)))&&C.addEventListener("contextmenu",function(e){return e.preventDefault()}),b?(A={directPlaybackUrl:b,id:x="c09576ca-8202-4e8e-ba1e-06d1ab0ce063"},w?r.getVideoDetails(x,I).then(function(n){var t=(null==n?void 0:n.data)||{};He(T,{res:nn(nn({},t),A)},e,{resolve:o,reject:i})}).catch(function(e){r.initiateErrorHandling(e,T,i,x)}):He(T,{res:A},e,{resolve:o,reject:i})):P?Ke(e,{resolve:o,reject:i}):O?$e(e,{resolve:o,reject:i}):k?Xe(e,{resolve:o,reject:i}):ze(e,{resolve:o,reject:i});case 37:case"end":return n.stop()}},n)}));return function(e,n){return o.apply(this,arguments)}}())},getRenditions:u.getRenditions,skip:r.skip,getPlayer:o.getPlayer,play:r.play,pause:r.pause,detectBrowser:r.detectBrowser,rewind:r.rewind,loadVideo:r.loadVideo,seekToTimeStamp:l.seekToTimeStamp,isPlayerInitialised:r.isPlayerInitialised,load:r.load,authenticateLC:r.authenticateLC,dispose:r.dispose,enableCaptions:a.enableCaptions,disableCaptions:a.disableCaptions,getCaptions:a.getCaptions,playSelectedResolution:u.playSelectedResolution,getSource:r.getSource,setVolume:y,getVolume:h,disableControls:r.disableControls,setPlaybackSpeed:l.setPlaybackSpeed,getEntitlementData:r.getEntitlementData,adsQueuePointManager:Ve,getSsaiEvents:Pe,playerEvents:l.playerEvents}},exports.initialiseKeyboardEvents=function(e,n){var t,i,l,a=o.getPlayer(e),u=null==a||null===(t=a.controlBar)||void 0===t||null===(i=t.playToggle)||void 0===i?void 0:i.el_,s=document.getElementsByTagName("video")[0];null===(l=document)||void 0===l||l.addEventListener("keydown",function(t){var o,i,l,c,d,v,f,p,m;if(pe.enabled&&"input"!=t.target.localName){var g=t.key,y=!0===n.liveVideo||!0===n.liveui;switch([" ","m","M","f","F","ArrowLeft","ArrowRight"].includes(g)&&(t.preventDefault(),null==s||s.focus()),g){case" ":null==u||u.click();break;case"m":case"M":a.muted(!a.muted());break;case"f":case"F":null===(o=document.querySelector(".vjs-fullscreen-control"))||void 0===o||o.click();break;case"ArrowLeft":y&&!1===n.liveui||r.rewind(e,10);break;case"ArrowRight":if("MEDIA_TAILOR"==(null===(i=window)||void 0===i||null===(l=i.app_data)||void 0===l||null===(c=l.appcmsMain)||void 0===c||null===(d=c.adsConfig)||void 0===d?void 0:d.vodAdSticherProvider)&&null!==(v=window)&&void 0!==v&&null!==(f=v.app_data)&&void 0!==f&&null!==(p=f.appcmsMain)&&void 0!==p&&null!==(m=p.adsConfig)&&void 0!==m&&m.vodAdClientSideTracking)return;y||r.skip(e,10)}}},!0)},exports.setupAdvertisementMarkers=function(e,n){return _e.apply(this,arguments)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),a=require("@babel/runtime/helpers/possibleConstructorReturn"),n=require("@babel/runtime/helpers/getPrototypeOf"),s=require("video.js"),o=require("./icons-79591410.js"),l=require("./generic-bfd81e0e.js"),i=require("./skin-9e714900.js"),c=require("./player_instance-fcf6a8fb.js");function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("./captions-bf891620.js"),require("@babel/runtime/helpers/toConsumableArray");var u=s.getComponent("Component"),m=function(){r(v,u);var m,p,h=(m=v,p=d(),function(){var e,t=n(m);if(p){var r=n(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function v(t){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,v),(r=h.call(this,t,a)).playerId=a.playerId,r.seriesData=a.sres,r.streams=a.streams,r.currentVideoData=a.res,r.initialiseStructure(),r.loadCSS(),r}return t(v,[{key:"createEl",value:function(){var e=s.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=s.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(o.BroadcastIcon())});return s.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./multicamv2-7a86b517.js")}).then(function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this.el(),t=s.dom.createEl("div",{className:"stream-container hidden"});s.dom.$(".stream-selector-icon",this.el()).onclick=function(){var r;null!==(r=t.classList)&&void 0!==r&&r.contains("hidden")?(i.closeOpenDrawers(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var r=document.getElementById(this.playerId);if(r){var a=window.getComputedStyle(r,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(a,"px"),r.style.overflow="hidden",s.dom.appendContent(e,t),this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var t=this,r=this.el(),a=s.dom.createEl("div",{className:"stream-selector-head"}),n=s.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(o.crossIconSvg())});n.onclick=function(){e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px"};for(var i=s.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),d=s.dom.createEl("div",{className:"stream-selector-content"}),u=s.dom.createEl("div",{className:"stream-tray"}),m=function(e){var r,a=s.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(o.SelectedStream())});0==e&&(a.classList.add("selected"),a.style.border="4px solid #D2393B"),a.onclick=function(){for(var r=s.dom.$$(".stream"),n=0;n<r.length;n++)r[n].style.border="none",r[n].classList.remove("selected");a.classList.add("selected"),a.style.border="4px solid #D2393B",l.load(t.playerId,t.streams[e].id).then(function(e){l.play(t.playerId),console.log(e)}).catch(function(e){console.log(e)})},a.style.backgroundImage="url(".concat(t.streams[e].img,")");var n=document.createElement("img");n.className="stream-thumbnail-image",n.src="".concat(null==t||null===(r=t.streams[e])||void 0===r?void 0:r.img),n.alt="No Thumbnail Available",a.append(n),s.dom.appendContent(u,a),s.dom.appendContent(d,u)},p=0;p<this.streams.length;p++)m(p);s.dom.appendContent(a,n),s.dom.appendContent(a,i),s.dom.appendContent(e,a),s.dom.appendContent(e,d),c.getPlayer(this.playerId).on("fullscreenchange",function(){var r=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(r,"px")})}}]),v}();exports.default=m;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),a=require("@babel/runtime/helpers/possibleConstructorReturn"),n=require("@babel/runtime/helpers/getPrototypeOf"),s=require("video.js"),o=require("./icons-79591410.js"),i=require("./generic-bfd81e0e.js"),l=require("./skin-9e714900.js");function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-bf891620.js"),require("@babel/runtime/helpers/toConsumableArray");var d=s.getComponent("Component"),u=function(){r(v,d);var u,m,p=(u=v,m=c(),function(){var e,t=n(u);if(m){var r=n(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function v(t){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,v),(r=p.call(this,t,a)).playerId=a.playerId,r.seriesData=a.sres,r.streams=a.streams,r.currentVideoData=a.res,r.initialiseStructure(),r.loadCSS(),r}return t(v,[{key:"createEl",value:function(){var e=s.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=s.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(o.BroadcastIcon())});return s.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./multicamv2-1efdbdb9.js")}).then(function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),r=s.dom.createEl("div",{className:"stream-container hidden"});s.dom.$(".stream-selector-icon",this.el()).onclick=function(){var a;null!==(a=r.classList)&&void 0!==a&&a.contains("hidden")?(l.closeOpenDrawers(),r.classList.remove("hidden"),t.classList.add("open"),l.setUpdatedElHeight(e.playerId,r)):(r.classList.add("hidden"),t.classList.remove("open"))};var a=document.getElementById(this.playerId);if(a){var n=window.getComputedStyle(a,null).getPropertyValue("height").slice(0,-2);r.style.height="".concat(n,"px"),a.style.overflow="hidden",s.dom.appendContent(t,r),this.addFunctionality(r)}}},{key:"addFunctionality",value:function(e){var t=this,r=this.el(),a=s.dom.createEl("div",{className:"stream-selector-head"}),n=s.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(o.crossIconSvg())});n.onclick=function(){e.classList.add("hidden"),r.classList.remove("open")};for(var c=s.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),d=s.dom.createEl("div",{className:"stream-selector-content"}),u=s.dom.createEl("div",{className:"stream-tray"}),m=parseInt(sessionStorage.getItem("selectedStreamIndex")||0),p=function(e){var r,a,n,l=s.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(o.SelectedStream())});m==e&&(l.classList.add("selected"),l.style.border="2px solid #D2393B"),l.onclick=function(){for(var r=s.dom.$$(".stream"),a=0;a<r.length;a++)r[a].style.border="none",r[a].classList.remove("selected");l.classList.add("selected"),l.style.border="2px solid #D2393B",i.load(t.playerId,t.streams[e].id).then(function(e){i.play(t.playerId),console.log(e)}).catch(function(e){console.log(e)})},l.style.backgroundImage="url(".concat(t.streams[e].img,")");var c=document.createElement("img");c.className="stream-thumbnail-image",c.src="".concat((null==t||null===(r=t.streams[e])||void 0===r?void 0:r.img)||(null===(a=window)||void 0===a||null===(n=a.customData)||void 0===n?void 0:n.fallbackImage)),l.append(c),s.dom.appendContent(u,l),s.dom.appendContent(d,u)},v=0;v<this.streams.length;v++)p(v);s.dom.appendContent(a,n),s.dom.appendContent(a,c),s.dom.appendContent(e,a),s.dom.appendContent(e,d),l.handleDrawerResizing(this.playerId,e)}}]),v}();exports.default=u;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),t=require("@babel/runtime/helpers/inherits"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),l=require("./icons-79591410.js"),s=require("./generic-bfd81e0e.js"),a=require("./skin-9e714900.js");function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-bf891620.js"),require("@babel/runtime/helpers/toConsumableArray");var u=o.getComponent("Component"),c=function(){t(p,u);var s,a,c=(s=p,a=d(),function(){var e,n=i(s);if(a){var t=i(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return r(this,e)});function p(n){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,p),(t=c.call(this,n,r)).playerId=r.playerId,t.seriesData=r.sres,t.currentVideoData=r.res,t.initialiseStructure(),t.loadCSS(),t}return n(p,[{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"play-next"}),n=o.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(l.PlayNextEpisodeSvg(window.controlsColor?window.controlsColor:"white"))});return o.dom.appendContent(e,n),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./nextEpisodeButton-b6e6586f.js")}).then(function(e){var n=document.createElement("style");n.id="multicam",n.append("".concat(e.default)),document.head.appendChild(n)})}},{key:"initialiseStructure",value:function(){var e=this.el(),n=o.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),t=o.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),r=o.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=o.dom.createEl("div",{className:"next-eps-image"}),l=o.dom.createEl("div",{className:"next-eps-description"});o.dom.appendContent(r,i),o.dom.appendContent(r,l),o.dom.appendContent(n,t),o.dom.appendContent(n,r),this.toggleContentOnHover(e,n),o.dom.appendContent(e,n)}},{key:"toggleContentOnHover",value:function(e,n){e.addEventListener("mouseover",function(){o.dom.removeClass(n,"nextepisode-hidden")}),n.addEventListener("mouseover",function(){o.dom.removeClass(n,"nextepisode-hidden")}),e.addEventListener("mouseout",function(){o.dom.addClass(n,"nextepisode-hidden")}),n.addEventListener("mouseout",function(){o.dom.addClass(n,"nextepisode-hidden")})}}]),p}(),p=function(e,n){for(var t=-1,r=0;r<e.length;r++)for(var i=0;i<e[r].episodes.length;i++)if(e[r].episodes[i].id===n){t=r;break}return t},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;if(!(e&&n>=0))return{prevEp:null,nextEp:null};var t=e.episodes.length,r=n-1>=0?n-1:t-1,i=(n+1)%t,o=t>1?e.episodes[r]:null,l=t>1?e.episodes[i]:null;return r===i&&(0===r?l=null:o=null),{prevEp:o,nextEp:l,prevEpIdx:r,nextEpIdx:i}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,t=null;return e?(e.episodes.forEach(function(e,r){e.gist.id===n&&(t=r)}),t):null},f=function(e){var n,t;o.dom.$(".next-eps"),o.dom.$(".play-next").onclick=function(){var n;s.load("my-player",null==e||null===(n=e.gist)||void 0===n?void 0:n.id).then(function(e){s.setCurrentVideo(e.response)})};var r=o.dom.$(".next-eps-image"),i=a.parseHtmlString("<img src=".concat(null==e||null===(n=e.gist)||void 0===n?void 0:n.videoImageUrl," />")),l=null==i?void 0:i.firstChild;null==r||r.append(l);for(var d=o.dom.$(".next-eps-description"),u=a.parseHtmlString("<div class='next-eps-title'>".concat(null==e?void 0:e.title,"</div>\n <div class='next-eps-description-details'>").concat(null==e||null===(t=e.gist)||void 0===t?void 0:t.description,"</div>"));null!=u&&u.firstChild;)null==d||d.appendChild(u.firstChild)};exports.default=c,exports.initaliseFunctionality=function(e,n){var t=p(e,n.video.gist.id),r=m(e[t],n.video.gist.id),i=v(e[t],r);f(i.nextEp)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),l=require("@babel/runtime/helpers/inherits"),i=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),s=require("./icons-79591410.js"),r=require("./generic-bfd81e0e.js"),c=require("./autoNextVideo-30f8c89c.js"),d=require("./skin-9e714900.js"),u=require("./player_instance-fcf6a8fb.js");function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("./captions-bf891620.js"),require("./util-a3ed1133.js"),require("@babel/runtime/helpers/typeof");var m=o.getComponent("Component"),v=function(){l(b,m);var v,y,h=(v=b,y=p(),function(){var e,t=a(v);if(y){var n=a(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return i(this,e)});function b(e){var n,l,i,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,b),(a=h.call(this,e,o)).playerId=o.playerId,a.seriesData=o.sres,a.videos=null==o||null===(n=o.playlist)||void 0===n?void 0:n.content,a.cb=(null==o||null===(l=o.playlist)||void 0===l?void 0:l.cb)||null,a.autoNext=(null==o||null===(i=o.playlist)||void 0===i?void 0:i.autoNext)||!1,a.currentVideoData=o.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&c.autoPlayNext({playerId:a.playerId,content:a.videos,cb:a.cb}),a}return n(b,[{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var t=o.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(s.EpisodesSvg())});return o.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./playlist-df87ca90.js")}).then(function(e){var t=document.createElement("style");t.id="playlist-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this.el(),t=o.dom.createEl("div",{className:"selection-container hidden"});o.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")?(d.closeOpenDrawers(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var l=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(l,"px"),o.dom.appendContent(e,t),n.style.overflow="hidden",this.addFunctionality(t)}}},{key:"addFunctionality",value:function(t){var n=this,l=this.el(),i=o.dom.createEl("div",{className:"playlist-selector-head"}),a=o.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(s.crossIconSvg())});a.onclick=function(){t.classList.add("hidden"),l.classList.remove("open"),t.style.right="-350px"};for(var c=o.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),d=o.dom.createEl("div",{className:"playlist-selector-content"}),p=function(t){var l,i,a=o.dom.createEl("div",{className:"playlist-container"}),s=o.dom.createEl("div",{className:"playlist-section",index:t}),c=o.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(l=n.videos[t])||void 0===l?void 0:l.title)||"")}),u=o.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(n.videos[t].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});o.dom.appendContent(s,c),o.dom.appendContent(s,u),o.dom.appendContent(a,s),o.dom.appendContent(d,a);var p=o.dom.createEl("div",{className:"playlist-section-expanded hidden"}),m=o.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(i=n.videos[t])||void 0===i?void 0:i.description)||"")}),v=o.dom.createEl("div",{className:"playlist-image"});v.style.backgroundImage="url(".concat(n.videos[t].img,")"),o.dom.appendContent(p,v),o.dom.appendContent(p,m),o.dom.appendContent(a,p),o.dom.appendContent(d,a),p.onclick=function(e){e.stopPropagation(),r.setVideoIdx(t+1),r.load(n.playerId,n.videos[t].id).then(function(e){null!=n&&n.cb&&n.cb(e)}).catch(function(e){null!=n&&n.cb&&n.cb(e)})},s.onclick=function(t){var n,l,i,o=document.getElementsByClassName("playlist-selector-content")[0].childNodes,s=(o=e(o))[t.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=s&&null!==(n=s.classList)&&void 0!==n&&n.contains("hidden")?(a.style.backgroundColor="#0000007d",null==s||null===(l=s.classList)||void 0===l||l.remove("hidden")):(null==s||null===(i=s.classList)||void 0===i||i.add("hidden"),a.style.backgroundColor="unset")}},m=0;m<this.videos.length;m++)p(m);o.dom.appendContent(i,a),o.dom.appendContent(i,c),o.dom.appendContent(t,i),o.dom.appendContent(t,d),u.getPlayer(this.playerId).on("fullscreenchange",function(){var e=document.getElementById(n.playerId);if(e){var l=window.getComputedStyle(e,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(l,"px")}})}}]),b}();exports.default=v;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),i=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),s=require("@babel/runtime/helpers/assertThisInitialized"),n=require("@babel/runtime/helpers/inherits"),r=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/defineProperty"),l=require("@babel/runtime/regenerator"),c=require("video.js"),d=require("./generic-bfd81e0e.js"),u=require("./icons-79591410.js"),p=require("./skin-9e714900.js");require("axios"),require("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-bf891620.js"),require("@babel/runtime/helpers/toConsumableArray");var v=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}var f,m=c.getComponent("Component"),g=function(){n(d,m);var e,l,c=(e=d,l=h(),function(){var i,t=a(e);if(l){var s=a(this).constructor;i=Reflect.construct(t,arguments,s)}else i=t.apply(this,arguments);return r(this,i)});function d(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(this,d),t=c.call(this,e,n),o(s(t),"seriesData",[]),t.seriesData=n.seriesData,f=n.playerId,b(t.el(),t.seriesData),t.loadCSS(),t}return t(d,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./series-9c237975.js")}).then(function(e){var i=document.createElement("style");i.id="series",i.append("".concat(e.default)),document.head.appendChild(i)})}}]),d}();function y(){return(y=e(l.mark(function e(i,t,s,n){return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:d.pause(f),v(f),d.load(f,t).then(function(e){d.setCurrentVideo(e.response),d.play(f)});case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function b(e,i){for(var t='<div class="hover-div"></div>\n '.concat(u.EpisodesSvg(),'\n <div class="player-season-list-container on-click-toggle">\n <div id="season-list" class="season-list">\n <div class="season-list-head">seasons</div>\n <div class="season-name-container">\n ').concat(function(e){return e.map(function(e,i){return'<div\n class="season-title-sdk"\n key='.concat("title-".concat(e.title),'\n > <div class="season-container">\n ',e.title,"\n </div>\n </div>\n ")}).join("")}(i),'\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class=\'icon icon-backward\' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>');null!=e&&e.firstChild;)e.removeChild(e.firstChild);for(var s=p.parseHtmlString(t);null!=s&&s.firstChild;)e.appendChild(s.firstChild)}exports.customSeasonList=b,exports.handleSeasonChange=function(e,i,t,s){var n=document.getElementById("season-list"),r=document.getElementById("episode-list"),a=document.getElementById("episode-container");e.id;for(var o=e.episodes.map(function(e,i){return'\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">'.concat(i+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")}).join("");null!=a&&a.firstChild;)a.removeChild(a.firstChild);for(var l=p.parseHtmlString(o);null!=l&&l.firstChild;)a.appendChild(l.firstChild);!function(e){d.getSeriesWatchHistory(e).then(function(e){var i=e.data,t=document.querySelectorAll("#progress-div");t&&i.map(function(e,i){e&&e.watchedPercentage&&t[i]&&(t[i].style.width=e.watchedPercentage+"px")})}).catch(function(e){})}(s),n.classList.toggle("hide-container"),r.classList.toggle("hide-container");var c=document.querySelectorAll(".details-wrapper"),u=document.querySelectorAll("#episode-title"),v=document.querySelectorAll(".meta-details"),h=document.querySelector("#episodes-back-btn"),f=e.id,m=e.episodes;h.addEventListener("click",function(){return function(e,i){e.classList.remove("hide-container"),i.classList.add("hide-container")}(n,r)});for(var g=function(i){c[i].addEventListener("click",function(){return function(e,i,t){var s=i.querySelector(".meta-details");i.classList.toggle("episode-active"),s.classList.toggle("metadetails-active"),t.forEach(function(i,s){s!==e&&(t[s].classList.remove("episode-active"),t[s].querySelector(".meta-details").classList.remove("metadetails-active"))})}(i,u[i],u)}),v[i].addEventListener("click",function(){return function(e,i,t,s){return y.apply(this,arguments)}(i,m[i].id,t,u)}),e.episodes[i].id==f&&u[i].classList.add("highlight-active-eps")},b=0;b<c.length;b++)g(b)},exports.seriesModule=g;