@viewlift/player-backup 2.0.38-smarttv → 2.0.39-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 (129) hide show
  1. package/cjs/autoNextVideo-f43d3c6b.js +1 -0
  2. package/cjs/browser-77c57718.js +1 -0
  3. package/cjs/bundle.css +122 -104
  4. package/cjs/caption-settings-be714e97.js +1 -0
  5. package/cjs/captions-07bd3069.js +1 -0
  6. package/cjs/features-97b9ddd3.js +1 -0
  7. package/cjs/generic-d5a358b3.js +1 -0
  8. package/cjs/icons-1a3febef.js +1 -0
  9. package/cjs/index-84cce26a.js +1 -0
  10. package/cjs/index-bab9264c.js +1 -0
  11. package/cjs/index-ff62e3f1.js +1 -0
  12. package/cjs/index.js +1 -1
  13. package/cjs/multicamv2-27a1f79a.js +1 -0
  14. package/cjs/multicamv2-e061b01b.js +1 -0
  15. package/cjs/nextEpisodeButton-9149040d.js +1 -0
  16. package/cjs/playlist-f9f44391.js +1 -0
  17. package/cjs/renditions-fed22c12.js +1 -0
  18. package/cjs/resolution-e46c9615.js +1 -0
  19. package/cjs/series-0ddcd078.js +1 -0
  20. package/cjs/series-v2-9caf000c.js +1 -0
  21. package/cjs/series-v2-e23e32e1.js +1 -0
  22. package/cjs/settings-icon-70f8857a.js +1 -0
  23. package/cjs/skin-0a56d50e.js +1 -0
  24. package/cjs/skin-1d925909.js +1 -0
  25. package/cjs/skin-2edd7170.js +1 -0
  26. package/cjs/skin-3544db58.js +1 -0
  27. package/cjs/skin-8bfd28a5.js +1 -0
  28. package/cjs/skin-9337f348.js +1 -0
  29. package/cjs/skin-d465fffd.js +1 -0
  30. package/cjs/util-ef2cd61e.js +1 -0
  31. package/cjs/videoSelector-2f34f31e.js +1 -0
  32. package/cjs/videoSelector-62fd5fa1.js +1 -0
  33. package/cjs/videojs_contrib_dash-5ac53a44.js +1 -0
  34. package/esm/autoNextVideo-a02e0bce.js +1 -0
  35. package/esm/browser-d4613b36.js +1 -0
  36. package/esm/bundle.css +122 -104
  37. package/esm/caption-settings-4ab479b0.js +1 -0
  38. package/esm/captions-b7fd8308.js +1 -0
  39. package/esm/features-ce8f391c.js +1 -0
  40. package/esm/generic-c74188d9.js +1 -0
  41. package/esm/icons-8e47e640.js +1 -0
  42. package/esm/index-5d92eaa3.js +1 -0
  43. package/esm/index-c9b8e971.js +1 -0
  44. package/esm/index-e9390d8f.js +1 -0
  45. package/esm/index.js +1 -1
  46. package/esm/multicamv2-8b4670ee.js +1 -0
  47. package/esm/multicamv2-d46580c3.js +1 -0
  48. package/esm/nextEpisodeButton-1016717d.js +1 -0
  49. package/esm/playlist-5874bf55.js +1 -0
  50. package/esm/renditions-4c09c626.js +1 -0
  51. package/esm/resolution-920515d1.js +1 -0
  52. package/esm/series-c42e7202.js +1 -0
  53. package/esm/series-v2-0329b92a.js +1 -0
  54. package/esm/series-v2-1d2ad120.js +1 -0
  55. package/esm/settings-icon-366126fa.js +1 -0
  56. package/esm/skin-58b9263c.js +1 -0
  57. package/esm/skin-7cb0aacc.js +1 -0
  58. package/esm/skin-7fcbc562.js +1 -0
  59. package/esm/skin-82110b92.js +1 -0
  60. package/esm/skin-c7e4615b.js +1 -0
  61. package/esm/skin-f66d3f4d.js +1 -0
  62. package/esm/skin-f790ba88.js +1 -0
  63. package/esm/util-80257541.js +1 -0
  64. package/esm/videoSelector-2feea699.js +1 -0
  65. package/esm/videoSelector-fe5e1c99.js +1 -0
  66. package/esm/videojs_contrib_dash-a82e8b26.js +1 -0
  67. package/package.json +1 -1
  68. package/cjs/autoNextVideo-17e9c827.js +0 -1
  69. package/cjs/browser-aa8ef172.js +0 -1
  70. package/cjs/caption-settings-9e3eaa49.js +0 -1
  71. package/cjs/captions-d160e397.js +0 -1
  72. package/cjs/features-e8ff154f.js +0 -1
  73. package/cjs/generic-90e67a4c.js +0 -1
  74. package/cjs/icons-9e9e6364.js +0 -1
  75. package/cjs/index-2e762039.js +0 -1
  76. package/cjs/index-7655d9c5.js +0 -1
  77. package/cjs/keyboardShortcuts-c2f8ca74.js +0 -1
  78. package/cjs/multicamv2-115eaabb.js +0 -1
  79. package/cjs/multicamv2-cea3ccbb.js +0 -1
  80. package/cjs/nextEpisodeButton-8050e8ab.js +0 -1
  81. package/cjs/playlist-1fda85f2.js +0 -1
  82. package/cjs/renditions-6ca861f3.js +0 -1
  83. package/cjs/resolution-d093453e.js +0 -1
  84. package/cjs/series-991adff5.js +0 -1
  85. package/cjs/series-v2-7b8b0b7b.js +0 -1
  86. package/cjs/series-v2-f2a6d9a0.js +0 -1
  87. package/cjs/settings-icon-6b46bc3a.js +0 -1
  88. package/cjs/skin-348036b3.js +0 -1
  89. package/cjs/skin-382811c3.js +0 -1
  90. package/cjs/skin-49458492.js +0 -1
  91. package/cjs/skin-5b10125d.js +0 -1
  92. package/cjs/skin-614a05c7.js +0 -1
  93. package/cjs/skin-b28fa2ec.js +0 -1
  94. package/cjs/skin-cef78ff3.js +0 -1
  95. package/cjs/util-1f5115f2.js +0 -1
  96. package/cjs/videoSelector-4e8a3c62.js +0 -1
  97. package/cjs/videoSelector-f07641b0.js +0 -1
  98. package/cjs/videojs_contrib_dash-52d8a5ce.js +0 -1
  99. package/esm/autoNextVideo-b1b3db93.js +0 -1
  100. package/esm/browser-65e5d36c.js +0 -1
  101. package/esm/caption-settings-f5d62f95.js +0 -1
  102. package/esm/captions-2bcc449f.js +0 -1
  103. package/esm/features-a5258464.js +0 -1
  104. package/esm/generic-ca913bb9.js +0 -1
  105. package/esm/icons-68d3a609.js +0 -1
  106. package/esm/index-0e9e7f29.js +0 -1
  107. package/esm/index-a680c0dd.js +0 -1
  108. package/esm/keyboardShortcuts-1d5ca3ca.js +0 -1
  109. package/esm/multicamv2-55ff5073.js +0 -1
  110. package/esm/multicamv2-81f5201e.js +0 -1
  111. package/esm/nextEpisodeButton-3715939a.js +0 -1
  112. package/esm/playlist-019ace4e.js +0 -1
  113. package/esm/renditions-7724f87c.js +0 -1
  114. package/esm/resolution-608d4334.js +0 -1
  115. package/esm/series-0dfdf1d6.js +0 -1
  116. package/esm/series-v2-1f3dd04d.js +0 -1
  117. package/esm/series-v2-856160cb.js +0 -1
  118. package/esm/settings-icon-d0cba728.js +0 -1
  119. package/esm/skin-159bdc20.js +0 -1
  120. package/esm/skin-43755201.js +0 -1
  121. package/esm/skin-5134b789.js +0 -1
  122. package/esm/skin-9e2f78f2.js +0 -1
  123. package/esm/skin-adfb18cb.js +0 -1
  124. package/esm/skin-b3169389.js +0 -1
  125. package/esm/skin-eb7d4238.js +0 -1
  126. package/esm/util-7ef0c31b.js +0 -1
  127. package/esm/videoSelector-c397bb2f.js +0 -1
  128. package/esm/videoSelector-d3efbe32.js +0 -1
  129. package/esm/videojs_contrib_dash-473e13ca.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewlift/player-backup",
3
- "version": "2.0.38-smarttv",
3
+ "version": "2.0.39-backup",
4
4
  "main": "dist/bundle.cjs.js",
5
5
  "amdName": "_playerCore",
6
6
  "dependencies": {
@@ -1 +0,0 @@
1
- "use strict";var e,i=require("@babel/runtime-corejs3/core-js-stable/set-timeout"),t=require("./generic-90e67a4c.js"),n=require("./util-1f5115f2.js"),o=require("./skin-b28fa2ec.js"),r=0,u=0,c=function e(n,r,c,l){u=n,n>c.length-1||(t.setVideoIdx(u+1),t.load(r,c[n].id).then((function(e){o.highlightVideo(u,r),u++,d(e)})).catch((function(t){d(t),i((function(){o.highlightVideo(u,r),u++,e(u,r,c)}),5e3)})))},d=function(i){e&&e(i)};exports.autoPlayNext=function(l){clearTimeout(r);var s=null==l?void 0:l.content;e=null==l?void 0:l.cb;var h=l.playerId;n.onVideoEnded(h,(function(){var e=o.getPlayer(h);0!==(null==e?void 0:e.currentTime())&&((u=t.getVideoIdx())>s.length-1||(t.setVideoIdx(u+1),t.load(h,s[u].id).then((function(e){o.highlightVideo(u,h),t.setCurrentVideo(e.response),u++,d(e)})).catch((function(e){d(e),o.highlightVideo(u,h),u++,r=i((function(){t.isPaused(h)&&c(u,h,s)}),5e3)}))))}))},exports.switchToNext=c;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/instance/index-of");exports.detectBrowser=function(){var r,a,n,i,t,o,l,s;return e(r=navigator.userAgent).call(r,"Edg")>-1&&"macOS"!=(null===(a=window.navigator)||void 0===a||null===(n=a.userAgentData)||void 0===n?void 0:n.platform)?"IE":-1!=(e(i=navigator.userAgent).call(i,"Opera")||e(t=navigator.userAgent).call(t,"OPR"))?"Opera":-1!=e(o=navigator.userAgent).call(o,"Chrome")?"Chrome":-1!=e(l=navigator.userAgent).call(l,"Safari")?"Safari":-1!=e(s=navigator.userAgent).call(s,"Firefox")?"Firefox":"Unknown"},exports.isMobile=function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),t=require("@babel/runtime-corejs3/helpers/classCallCheck"),n=require("@babel/runtime-corejs3/helpers/createClass"),a=require("@babel/runtime-corejs3/helpers/inherits"),o=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),r=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),i=require("@babel/runtime-corejs3/core-js-stable/instance/map"),c=require("video.js"),s=require("./icons-9e9e6364.js"),l=require("./captions-d160e397.js"),d=require("./skin-b28fa2ec.js");function u(t){var n=p();return function(){var a,i=r(t);if(n){var c=r(this).constructor;a=e(i,arguments,c)}else a=i.apply(this,arguments);return o(this,a)}}function p(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/helpers/toConsumableArray"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/date/now");var m=c.getComponent("Component"),v=function(e){a(r,m);var o=u(r);function r(e){var n,a,i,c,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,r),(c=o.call(this,e,s)).playerId=s.playerId,c.seriesData=s.sres,c.currentVideoData=s.res,c.initialiseStructure(),c.loadCSS(),null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(i=a.style)||void 0===i||i.setProperty("display","none","important"),c}return n(r,[{key:"createEl",value:function(){var e=c.dom.createEl("div",{className:"caption-selection vjs-control vjs-button"});e.style.position="unset";var t=c.dom.createEl("div",{className:"caption-selector-icon",innerHTML:"".concat(s.CaptionsSvgV2())});return c.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./caption-settings-34ca0188.js")})).then((function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=l.getCaptions(this.playerId);null==t||i(t).call(t,(function(t){return l.disableCaptions(e.playerId,t.id)}));var n=this.el(),a=c.dom.createEl("div",{className:"caption-selection-container hidden"});c.dom.$(".caption-selector-icon",this.el()).onclick=function(){var t;null!==(t=a.classList)&&void 0!==t&&t.contains("hidden")?(d.closeOpenDrawers(),a.classList.remove("hidden"),n.classList.add("open"),a.style.right="0px",d.setUpdatedElHeight(e.playerId,a)):(a.classList.add("hidden"),n.classList.remove("open"),a.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var r=window.getComputedStyle(o,null).getPropertyValue("height");a.style.height="".concat(r),c.dom.appendContent(n,a),o.style.overflow="hidden",this.addFunctionality(a),d.detectOrientationChange(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),n=c.dom.createEl("div",{className:"caption-selector-head"}),a=c.dom.createEl("div",{className:"caption-selector-cross-icon",innerHTML:"".concat(s.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var o=c.dom.createEl("div",{className:"caption-selector-title",innerHTML:"Captions"}),r=c.dom.createEl("div",{className:"caption-selector-content"}),i=c.dom.createEl("div",{className:"caption-container"}),l=this.createLanguageContanier();c.dom.appendContent(i,l),c.dom.appendContent(n,a),c.dom.appendContent(n,o),c.dom.appendContent(e,n),c.dom.appendContent(e,r),c.dom.appendContent(r,i),d.handleDrawerResizing(this.playerId,e)}},{key:"createLanguageContanier",value:function(){var e=this,t=c.dom.createEl("div",{className:"caption-language-container"}),n=c.dom.createEl("div",{className:"caption-language-container-title",innerHTML:"Language"});c.dom.appendContent(t,n);var a=document.createElement("label");a.setAttribute("for","radio-off"),a.className="caption-language-holder";var o=document.createElement("div");o.className="caption",o.innerHTML="Off";var r=c.dom.createEl("input",{className:"radio - off",id:"radio-off",name:"language-radio",checked:"true"});r.setAttribute("type","radio"),r.onchange=function(t){var n,a,o;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(o=a.style)||void 0===o||o.setProperty("display","none","important"));var r=l.getCaptions(e.playerId);i(r).call(r,(function(t){return l.disableCaptions(e.playerId,t.id)}))},c.dom.appendContent(a,r),c.dom.appendContent(a,o),c.dom.appendContent(t,a);for(var s=l.getCaptions(this.playerId),d=function(n){var a,o=document.createElement("label");o.className="caption-language-holder",o.setAttribute("for","language-radio-".concat(n));var r=document.createElement("div");r.className="caption - ".concat(n),r.textContent=null==s||null===(a=s[n])||void 0===a?void 0:a.label;var i=c.dom.createEl("input",{className:"radio - ".concat(n),id:"language-radio-".concat(n),name:"language-radio"});i.onchange=function(t){l.enableCaptions(e.playerId,s[n].id)},i.setAttribute("type","radio"),c.dom.appendContent(o,i),c.dom.appendContent(o,r),c.dom.appendContent(t,o)},u=0;u<s.length;u++)d(u);return t}},{key:"createFontSizeContainer",value:function(){var e=c.dom.createEl("div",{className:"caption-font-container"}),t=c.dom.createEl("div",{className:"caption-font-container-title",innerHTML:"Font Size"});c.dom.appendContent(e,t);for(var n=[{size:14},{size:18},{size:24}],a=0;a<n.length;a++){var o,r=document.createElement("label");r.className="caption-font-holder",r.setAttribute("for","font".concat(a));var i=document.createElement("div");i.className="fontsize - ".concat(a),i.textContent=(null==n||null===(o=n[a])||void 0===o?void 0:o.size)+"pt";var s=c.dom.createEl("input",{className:"radio - ".concat(a),id:"font".concat(a),name:"font-size-radio",size:"".concat(n[a].size),checked:"".concat(a==n.length-1)});s.setAttribute("type","radio"),s.onchange=function(e){var t=e.target.size;if(document.getElementById("caption-size")){document.getElementById("caption-size").textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}")}else{var n=document.createElement("style");n.textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}"),n.id="caption-size",document.head.append(n)}},c.dom.appendContent(r,s),c.dom.appendContent(r,i),c.dom.appendContent(e,r)}return e}}]),r}();exports.default=v;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/instance/filter"),t=require("@babel/runtime-corejs3/core-js-stable/instance/map"),a=require("./skin-b28fa2ec.js");exports.addCaptions=function(e,n){var r,s=a.getPlayer(e);t(r=s.remoteTextTracks().tracks_).call(r,(function(e){s.removeRemoteTextTrack(e)})),t(n).call(n,(function(e){s.addRemoteTextTrack({src:e.url,srcLang:e.language,label:e.language})}))},exports.disableCaptions=function(e,t){for(var n=a.getPlayer(e).textTracks(),r=0;r<n.length;r++){var s=n[r];"subtitles"!==s.kind&&"captions"!==s.kind||s.id!==t||(s.mode="hidden")}},exports.enableCaptions=function(e,t){var n,r,s;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(r=n[0])||void 0===r||null===(s=r.style)||void 0===s||s.setProperty("display","flex"));for(var l=a.getPlayer(e).textTracks(),i=0;i<l.length;i++){var o=l[i];"subtitles"!==o.kind&&"captions"!==o.kind||o.id!=t||(o.mode="showing")}},exports.getCaptions=function(t){var n,r,s=a.getPlayer(t);return(null==s||null===(n=s.textTracks())||void 0===n?void 0:e(r=n.tracks_).call(r,(function(e){return"subtitles"==e.kind||"captions"===e.kind})))||[]},exports.removeCaptions=function(e){var n,r=a.getPlayer(e);t(n=r.remoteTextTracks().tracks_).call(n,(function(e){"subtitles"==(null==e?void 0:e.kind)||null==e||e.kind,r.removeRemoteTextTrack(e)}))};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),t=require("@babel/runtime-corejs3/core-js-stable/object/keys"),r=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),n=require("@babel/runtime-corejs3/core-js-stable/instance/filter"),o=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),l=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),i=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),a=require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),s=require("@babel/runtime-corejs3/core-js-stable/object/define-property"),c=require("@babel/runtime-corejs3/helpers/defineProperty"),u=require("@babel/runtime-corejs3/helpers/classCallCheck"),d=require("@babel/runtime-corejs3/helpers/createClass"),h=require("@babel/runtime-corejs3/helpers/inherits"),p=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),v=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),g=require("video.js"),m=require("./generic-90e67a4c.js"),f=require("./renditions-6ca861f3.js"),y=require("./skin-b28fa2ec.js"),C=require("./localisation-56e0a999.js");function b(e,l){var i=t(e);if(r){var a=r(e);l&&(a=n(a).call(a,(function(t){return o(e,t).enumerable}))),i.push.apply(i,a)}return i}function j(e){for(var t=1;t<arguments.length;t++){var r,n,u=null!=arguments[t]?arguments[t]:{};t%2?l(r=b(Object(u),!0)).call(r,(function(t){c(e,t,u[t])})):i?a(e,i(u)):l(n=b(Object(u))).call(n,(function(t){s(e,t,o(u,t))}))}return e}function B(t){var r=S();return function(){var n,o=v(t);if(r){var l=v(this).constructor;n=e(o,arguments,l)}else n=o.apply(this,arguments);return p(this,n)}}function S(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(S=function(){return!!t})()}exports.addCaptionButton=function(e,t){Promise.resolve().then((function(){return require("./caption-settings-9e3eaa49.js")})).then((function(r){var n,o,l,i,a=r.default,s=y.getPlayer(e);g.registerComponent("captionSelector",a),null===(n=document)||void 0===n||null===(o=n.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(i=l[0])||void 0===i||i.remove(),s&&s.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},s.controlBar.children().length-3)}))},exports.addDBClickFullScreen=function(e){var t=y.getPlayer(e).el(),r=0,n=y.getPlayer(e);n.addChild("fullscreenToggle");var o=function(){var e,r=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];r&&r.click()};n.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;n.el().addEventListener("touchend",(function(){var e=(new Date).getTime(),n=e-r;if(n<300&&n>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}r=e})),window._multiplayer_dbTapHandler=o},exports.addMulticamSelector=function(e,t){Promise.resolve().then((function(){return require("./multicamv2-115eaabb.js")})).then((function(r){var n=r.default,o=y.getPlayer(e);g.registerComponent("streamSelector",n),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)}))},exports.addMulticamSelector_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then((function(){return require("./multicamv2-cea3ccbb.js")})).then((function(r){var n=r.default,o=y.getPlayer(e);g.registerComponent("streamSelector",n),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)}))},exports.addNextEpisodeButton=function(e,t,r){Promise.resolve().then((function(){return require("./nextEpisodeButton-8050e8ab.js")})).then((function(n){var o=n.default,l=y.getPlayer(r);g.registerComponent("nextEpisodeButtonModule",o),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:r,sres:e,res:t},l.controlBar.children().length-5)}))},exports.addOutputtingOverlay=function(e,t){var r=y.getPlayer(e).el(),n=g.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});r.append(n)},exports.addPlaylistSelector=function(e,t){Promise.resolve().then((function(){return require("./playlist-1fda85f2.js")})).then((function(r){var n=r.default,o=y.getPlayer(e);g.registerComponent("playlistSelector",n),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)}))},exports.addResolutionModule=function(e,t,r){Promise.resolve().then((function(){return require("./resolution-d093453e.js")})).then((function(n){var o=n.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=y.getPlayer(e),i=f.getRenditions(e);(null==i?void 0:i.length)>0&&(g.registerComponent("resolutionModule",o),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:r,renditions:i},l.controlBar.children().length-4))}))},exports.addRewindButton=function(e,t,r){var n=function(t){h(o,t);var n=B(o);function o(e,t){var l;u(this,o);var i=(l=n.call(this,e,t)).el_;i.classList.add("vjs-rewind-button");var a=y.parseSvgString(r);return i.append(a),l}return d(o,[{key:"handleClick",value:function(){m.rewind(e,10)}}]),o}(g.getComponent("Button"));g.registerComponent("MyButton",n),g(e).getChild("controlBar").addChild("myButton",{},1)},exports.addSeriesModule=function(e,t,r){Promise.resolve().then((function(){return require("./series-991adff5.js")})).then((function(n){var o=n.seriesModule,l=y.getPlayer(e);g.registerComponent("seriesModule",o),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var i=document.querySelectorAll(".season-title-sdk"),a=function(e){i[e].addEventListener("click",(function(){t[e]&&n.handleSeasonChange(t[e],e,l,r)}))},s=0;s<i.length;s++)a(s)}))},exports.addSeriesSelectorV2=function(e,t){Promise.resolve().then((function(){return require("./series-v2-7b8b0b7b.js")})).then((function(r){var n=r.default,o=y.getPlayer(e);g.registerComponent("seriesV2",n),o.getChild("controlBar").addChild("seriesV2",j({playerId:e},t),o.controlBar.children().length-3)}))},exports.addSeriesSelectorV2_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then((function(){return require("./series-v2-f2a6d9a0.js")})).then((function(r){var n=r.default,o=y.getPlayer(e);g.registerComponent("seriesV2",n),o.getChild("controlBar").addChild("seriesV2",j({playerId:e},t),o.controlBar.children().length-3)}))},exports.addSettingsButtonV2=function(e,t){Promise.resolve().then((function(){return require("./settings-icon-6b46bc3a.js")})).then((function(r){var n,o,l,i,a=r.default,s=y.getPlayer(e);g.registerComponent("settingsSelector",a),null===(n=document)||void 0===n||null===(o=n.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(i=l[0])||void 0===i||i.remove(),s&&s.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},s.controlBar.children().length-3)}))},exports.addSkipButton=function(e,t,r){var n=function(t){h(o,t);var n=B(o);function o(e,t){var l;u(this,o);var i=(l=n.call(this,e,t)).el_;i.classList.add("vjs-skip-button");var a=y.parseSvgString(r);return i.append(a),l}return d(o,[{key:"handleClick",value:function(){m.skip(e,10)}}]),o}(g.getComponent("Button"));g.registerComponent("MyButton",n),g(e).getChild("controlBar").addChild("myButton",{},1)},exports.addSlowMotion=function(e){var t=function(e){h(n,e);var t=B(n);function n(e,r){var o;u(this,n);var l=(o=t.call(this,e,r)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=C.getLocalisation("slowMoText")||"Slow Mo",o}return d(n,[{key:"handleClick",value:function(){1==r.playbackRate()?(r.playbackRate(.5),this.el().style.background="darkgray"):(r.playbackRate(1),this.el().style.background="none")}}]),n}(g.getComponent("Button"));g.registerComponent("MyButton",t);var r=g(e);r.getChild("controlBar").addChild("myButton",{},2)},exports.addVideoSelector=function(e,t){Promise.resolve().then((function(){return require("./videoSelector-f07641b0.js")})).then((function(r){var n=r.default,o=y.getPlayer(e);g.registerComponent("videoSelector",n),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)}))},exports.addVideoSelector_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then((function(){return require("./videoSelector-4e8a3c62.js")})).then((function(r){var n=r.default,o=y.getPlayer(e);g.registerComponent("videoSelector",n),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)}))};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/helpers/defineProperty"),t=require("@babel/runtime-corejs3/helpers/asyncToGenerator"),n=require("@babel/runtime-corejs3/regenerator"),i=require("@babel/runtime-corejs3/core-js-stable/promise"),o=require("@babel/runtime-corejs3/core-js-stable/set-timeout"),r=require("@babel/runtime-corejs3/core-js-stable/instance/filter"),l=require("@babel/runtime-corejs3/core-js-stable/object/keys"),a=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),u=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),d=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),s=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),c=require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),v=require("@babel/runtime-corejs3/core-js-stable/object/define-property"),m=require("video.js"),f=require("@babel/runtime-corejs3/core-js-stable/instance/concat"),p=require("axios"),w=require("@babel/runtime-corejs3/core-js-stable/instance/includes"),g=require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),I=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),E=require("./skin-b28fa2ec.js"),T=require("./browser-aa8ef172.js"),h=require("@babel/runtime-corejs3/core-js-stable/instance/map"),y=require("@babel/runtime-corejs3/core-js-stable/math/trunc"),b=require("@babel/runtime-corejs3/core-js-stable/instance/find"),_=require("@babel/runtime-corejs3/core-js-stable/date/now"),F=require("@babel/runtime-corejs3/core-js-stable/map"),D=require("js-cookie"),S=require("ua-parser-js"),R=require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),L=require("./captions-d160e397.js"),V=require("@babel/runtime-corejs3/core-js-stable/set-interval");function W(){var e,t;null===(e=window)||void 0===e||null===(t=e.dataLayer)||void 0===t||t.push(arguments)}function C(e,t){W("event",e,t)}var A={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=l(e);if(a){var i=a(e);t&&(i=r(i).call(i,(function(t){return u(e,t).enumerable}))),n.push.apply(n,i)}return n}function x(t){for(var n=1;n<arguments.length;n++){var i,o,r=null!=arguments[n]?arguments[n]:{};n%2?d(i=P(Object(r),!0)).call(i,(function(n){e(t,n,r[n])})):s?c(t,s(r)):d(o=P(Object(r))).call(o,(function(e){v(t,e,u(r,e))}))}return t}var N={name:"@viewlift/player-backup",version:"2.0.33-smarttv",main:"dist/bundle.cjs.js",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=N.version;var j,O=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 i((function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.overrideEntitlementResponse})})):p({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":H.get()+"".concat(null==A?void 0:A.getVideoDetails),params:x({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":N.version},withCredentials:!0})},B=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 i((function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.overrideEntitlementResponse})})):p({url:H.get()+A.getLinearChannelDetails,params:x(x(x(x(x({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"}})},M=function(){var e=t(n.mark((function e(t){var i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,te();case 2:return i=e.sent,e.abrupt("return",p({url:H.get()+"".concat(null==A?void 0:A.saveWatchHistoryV2),method:"POST",headers:{Authorization:i},data:x({},t),params:x({},(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)}}(),U=function(e,t){var n,i,o,r,l=window.contentType;return p({method:"GET",url:H.get()+f(n=f(i="".concat(null==A?void 0:A.getVideoInfoV2,"/")).call(i,l,"/")).call(n,e),headers:{Authorization:t,"x-api-key":null===(o=window)||void 0===o||null===(r=o.watchHistory)||void 0===r?void 0:r.xApiKey},timeout:15e3})},k=function(e){var t,n=e.videoId;return p({method:"GET",url:H.get()+f(t="".concat(null==A?void 0:A.getSeriesWatchHistoryV2,"/")).call(t,n),headers:{Authorization:e.token},timeout:15e3})},H=(j=null==A?void 0:A.apiBaseUrl,{set:function(e){e&&(j=e)},get:function(){return j}}),q=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},G=null;function Y(){return{set:function(e){e&&(G=e)},get:function(){return G}}}var z,X,J,K,Q,Z,$=function(){var e=t(n.mark((function e(){var t,i,o,r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Y().get(),i=H.get(),e.prev=2,e.next=5,p({method:"GET",url:f(o="".concat(i,"/identity/refresh/")).call(o,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)}}(),ee=null,te=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"))||!q(t)){e.next=6;break}return ee||(ee=$().then((function(e){var n,i,o=null==e||null===(n=e.data)||void 0===n?void 0:n.authorizationToken,r=null==e||null===(i=e.data)||void 0===i?void 0:i.refreshToken;return o&&sessionStorage.setItem("vlp_token",o),r&&Y().set(r),o||t})).catch((function(e){return console.error("Error fetching refresh token",e),t})).finally((function(){ee=null}))),e.abrupt("return",ee);case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=function(e){if(e&&"string"==typeof e)return JSON.parse(atob(e.split(".")[1]))},ie=function(e){X=e},oe=function(){return X},re=function(){return z},le=function(e){J=e},ae=function(e){if(K){var t=K.get(e);le(t+1)}},ue=(Z=0,{set:function(e){e>=0&&(Z=e)},get:function(){return Z}});function de(e,t){var n=l(e);if(a){var i=a(e);t&&(i=r(i).call(i,(function(t){return u(e,t).enumerable}))),n.push.apply(n,i)}return n}function se(t){for(var n=1;n<arguments.length;n++){var i,o,r=null!=arguments[n]?arguments[n]:{};n%2?d(i=de(Object(r),!0)).call(i,(function(n){e(t,n,r[n])})):s?c(t,s(r)):d(o=de(Object(r))).call(o,(function(e){v(t,e,u(r,e))}))}return t}var ce=0,ve=function(){var e,t,n,i,o,r,l,a=oe();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=b(t).call(t,(function(e){return(null==e?void 0:e.id)===(null==a?void 0:a.channelId)})))||void 0===n||null===(i=n.content)||void 0===i?void 0:i.id:(null==a||null===(o=a.video)||void 0===o||null===(r=o.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 me(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function fe(){var e=window.sessionStorage.getItem("uid");return e||(e=me(),window.sessionStorage.setItem("uid",e),e)}function pe(){return we.apply(this,arguments)}function we(){return(we=t(n.mark((function e(){var t,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,te();case 2:if(!(t=e.sent)){e.next=10;break}if(null==(i=JSON.parse(atob(t.split(".")[1])))||!i.anonymousId){e.next=9;break}return e.abrupt("return","guest-user");case 9:return e.abrupt("return",null==i?void 0:i.userId);case 10:return e.abrupt("return","guest-user");case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}window.initialise=function(e){window.sid=me(),window.environment="production",window.platform="WEBSITE",streamFailures(e),buffering(e),ads(e),ping(e)},window.streamFailures=function(e){var t=Math.floor(e.currentTime());e.on("error",(function(){var n,i,o,r=Math.floor(e.currentTime());clearInterval(window.bufferingTimer),window.buffering=null,window.handleBufferTimer=null,C(r?"FAILED_TO_START":"DROPPED_STREAM",se({pfm:window.platform,uid:fe(),vid:ve(),videoPosition:Math.floor(e.currentTime())},null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:t===r?"FAILED_TO_START":"DROPPED_STREAM",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})}))},window.firstFrame=function(e,t){e.one("play",tryCatch((function(){var n,i,o;window.ttFirstFrame=0,window.ttFirstFrameTimer=V((function(){window.ttFirstFrame=window.handleBufferTimer?window.handleBufferTimer(window.ttFirstFrame,e):null}),100),C("PLAY",se({pfm:window.platform,uid:fe(),vid:ve(),videoPosition:Math.floor(e.currentTime())},null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:"PLAY",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1}),t&&t("started_video_playback",{"Video ID":ve(),watchTime:Math.floor(e.currentTime())})})))},window.buffering=function(e){e.on("waiting",tryCatch((function(){window.ttFirstFrameTimer||(e.currentTime(),clearInterval(window.bufferingTimer),window.bufferingTimer=V((function(){var t,n;null!=e&&null!==(t=e.el_)&&void 0!==t&&null!==(n=t.className)&&void 0!==n&&w(n).call(n,"vjs-waiting")&&!e.paused()?window.totalBufferTime=handleBufferTimer(window.totalBufferTime,e):clearInterval(window.bufferingTimer)}),100))})))},window.handleBufferTimer=function(e,t){var n,i;if(t.el_){var o,r,l,a=e+.1;if(+a.toFixed(2)%5==0&&null!=t&&null!==(n=t.el_)&&void 0!==n&&null!==(i=n.className)&&void 0!==i&&w(i).call(i,"vjs-waiting")&&ce<4)ce++,C("BUFFERING",se({pfm:window.platform,uid:fe(),vid:ve(),videoPosition:t.el_&&Math.floor(t.currentTime())},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.beacon)||void 0===l?void 0:l.params)),fireEvent({eventName:"BUFFERING",videoPosition:t.el_&&Math.floor(t.currentTime()),isAdEvent:!1});return a}clearInterval(window.ttFirstFrameTimer)},window.endFirstFrame=function(e){e.one("timeupdate",(function(){var t,n,i;clearInterval(window.ttFirstFrameTimer),clearInterval(window.bufferingTimer),window.ttFirstFrameTimer=null,window.totalBufferTime=window.ttFirstFrame||0,C("FIRST_FRAME",se({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:fe(),vid:ve()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e)})}))},window.ads=function(e){e.on("adsready",(function(){e.ima.addEventListener(window.google.ima.AdEvent.Type.STARTED,(function(){var t,n,i,o,r,l;C("AD_REQUEST",se({eventName:"AD_REQUEST",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:fe(),vid:ve(),resHeight:e.videoHeight(),resWidth:e.videoWidth()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"AD_REQUEST",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,resHeight:e.videoHeight(),resWidth:e.videoWidth(),adPosition:1}),C("AD_IMPRESSION",se({eventName:"AD_IMPRESSION",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:fe(),resHeight:e.videoHeight(),resWidth:e.videoWidth(),vid:ve()},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.beacon)||void 0===l?void 0:l.params)),fireEvent({eventName:"AD_IMPRESSION",videoPosition:Math.ceil(e.currentTime()),resHeight:e.videoHeight(),resWidth:e.videoWidth(),isAdEvent:!0,adPosition:1})})),e.ima.addEventListener(window.google.ima.AdEvent.Type.SKIPPED,(function(){window.ttFirstFrame=0})),e.ima.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,(function(){window.ttFirstFrame=0}))}))},window.ping=function(e){var t=[];e.on("timeupdate",(function(){var n=Math.floor(e.currentTime());n>=30&&n%30==0&&!w(t).call(t,n)&&(ce=0,t.push(n),fireEvent({eventName:"PING",videoPosition:n,isAdEvent:!1,duration:30,resHeight:e.videoHeight(),resWidth:e.videoWidth(),bufferHealth:window.getRemainingBufferTime(e),bitrate:e.tech_.vhs&&window.getBitrate(e)}))}))},window.getBitrate=function(e){return Math.round(e.tech_.vhs.selectPlaylist().attributes.BANDWIDTH/1e3)},window.getRemainingBufferTime=function(e){return tryCatch((function(){for(var t=e.currentTime(),n=e.duration(),i=e.buffered(),o=0;o<i.length;o++){var r=i.start(o),l=i.end(o);if(ge(t,r,l)){var a=Math.round(n-l);if(isFinite(a))return a}}}))()};var ge=function(e,t,n){return e>=t&&e<=n};window.fireEvent=function(){var e=t(n.mark((function e(t){var i,o,r,l,a,u,d,s,c,v,m,f,w,g,I,E,T,h,y,b;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,te();case 2:return E=e.sent,T=ne(E),h=null==T?void 0:T.site,y=null==T?void 0:T.siteId,e.t0=se,e.t1=se,e.t2=se({aid:h,cid:y,pfm:window.platform},null===(i=window)||void 0===i||null===(o=i.customData)||void 0===o||null===(r=o.beacon)||void 0===r?void 0:r.params),e.t3={},e.t4=fe(),e.t5=ve(),e.t6=t.url||document.location.href,e.t7=t.ref||document.referrer,e.t8=t.eventName,e.t9=null!==(l=t.videoPosition)&&void 0!==l?l:null,e.t10=window.environment,e.t11=t.dp1||"",e.t12=t.dp2||"",e.t13=t.dp3||"",e.t14=t.dp4||"",e.t15=t.dp5||"",e.t16=!0===t.isAdEvent?t.videoPosition:null,e.t17=!0===t.isAdEvent?(n=t.adPosition)?String(n):"":"",e.next=26,pe();case 26:e.t18=e.sent,e.t19=t.playerType||"native",e.t20=t.mediaType||"VIDEO",e.t21=window.sid,e.t22=null!==(a=t.ttFirstFrame)&&void 0!==a?a:null,e.t23=null!==(u=t.bitrate)&&void 0!==u?u:null,e.t24=null!==(d=t.resHeight)&&void 0!==d?d:null,e.t25=null!==(s=t.resWidth)&&void 0!==s?s:null,e.t26=null!==(c=t.bufferHealth)&&void 0!==c?c:null,e.t27={uid:e.t4,vid:e.t5,url:e.t6,ref:e.t7,pa:e.t8,vpos:e.t9,environment:e.t10,dp1:e.t11,dp2:e.t12,dp3:e.t13,dp4:e.t14,dp5:e.t15,apos:e.t16,apod:e.t17,profid:e.t18,player:e.t19,media_type:e.t20,stream_id:e.t21,embedurl:"",ttfirstframe:e.t22,bitrate:e.t23,connectionspeed:null,resolutionheight:e.t24,resolutionwidth:e.t25,bufferhealth:e.t26},e.t28=(null==t?void 0:t.duration)&&{duration:t.duration},e.t29=(0,e.t1)(e.t2,e.t3,e.t27,e.t28),e.t30=null===(v=window)||void 0===v||null===(m=v.customData)||void 0===m||null===(f=m.beacon)||void 0===f?void 0:f.params,e.t31=(0,e.t0)(e.t29,e.t30),b=[e.t31],p({url:(null===(w=window)||void 0===w||null===(g=w.customData)||void 0===g||null===(I=g.beacon)||void 0===I?void 0:I.url)||H.get()+A.getBeaconUrl,method:"post",headers:{Authorization:E},contentType:"application/x-www-form-urlencoded",dataType:"text",data:b}).catch((function(e){console.error(e)}));case 42:case"end":return e.stop()}var n}),e)})));return function(t){return e.apply(this,arguments)}}(),window.tryCatch=function(e){return function(){try{return e.apply(window,arguments)}catch(e){return console.error(e),null}}};var Ie=function(){var e=ue.get();return e>=0?e+1:1},Ee=function(){var e,t,n,i=re(),o=oe(),r=null==o||null===(e=o.video)||void 0===e?void 0:e.id,l=ue.get(),a=null==i||null===(t=i[l])||void 0===t||null===(n=t.episodes)||void 0===n?void 0:R(n).call(n,(function(e){return(null==e?void 0:e.id)===r}));return a>=0?a+1:1};function Te(e,t){var n=l(e);if(a){var i=a(e);t&&(i=r(i).call(i,(function(t){return u(e,t).enumerable}))),n.push.apply(n,i)}return n}function he(t){for(var n=1;n<arguments.length;n++){var i,o,r=null!=arguments[n]?arguments[n]:{};n%2?d(i=Te(Object(r),!0)).call(i,(function(n){e(t,n,r[n])})):s?c(t,s(r)):d(o=Te(Object(r))).call(o,(function(e){v(t,e,u(r,e))}))}return t}window._deviceInfo=S.UAParser(navigator.userAgent);var ye=function(e,t){var n;return e&&t?f(n="".concat(e,"x")).call(n,t):e>1024?"L":e>768?"M":"S"},be=function(e){var t=_e(e,"video.tags",[]),n=_e(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return t.length>0?h(t).call(t,(function(e){return e.title})).join(","):n},_e=function(e,t,n){for(var i=0,o=(t=t.split(".")).length;i<o;i++){var r;e=null===(r=e)||void 0===r?void 0:r[t[i]]}return e||n},Fe=function(){var e,t,n,i,o,r,l,a,u,d,s,c,v,m,f,p,g,T,h,F,S,R,L,V=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",W=arguments.length>1?arguments[1]:void 0,C=arguments.length>2?arguments[2]:void 0,A=(null==C?void 0:C.contentType)||"video",P=(null==C||null===(e=C[A])||void 0===e?void 0:e.metadata)||(null==C||null===(t=C[A])||void 0===t||null===(n=t.gist)||void 0===n?void 0:n.metadata),x=E.getPlayer(W);if(!w(V).call(V,"VIEWLIFT_"))return V;var N,j=window.getComputedStyle(document.getElementById(W),null),O=y(I(i=j.getPropertyValue("height")).call(i,0,-2)),B=y(I(o=j.getPropertyValue("width")).call(o,0,-2)),M="linearchannel"===A?null==C||null===(r=C.linearchannel)||void 0===r||null===(l=r.channels)||void 0===l||null===(a=b(l).call(l,(function(e){return(null==e?void 0:e.id)===(null==C?void 0:C.channelId)})))||void 0===a||null===(u=a.content)||void 0===u?void 0:u.id:_e(C,"video.gist.id",""),U="linearchannel"===A?null==C||null===(d=C.linearchannel)||void 0===d||null===(s=d.channels)||void 0===s||null===(c=b(s).call(s,(function(e){return(null==e?void 0:e.id)===(null==C?void 0:C.channelId)})))||void 0===c?void 0:c.title:_e(C,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),k=null,H=null;"function"==typeof window.__gpp&&(null===(N=window)||void 0===N||N.__gpp("ping",(function(e){k=null==e?void 0:e.gppString,H=null==e?void 0:e.sectionList[0]})));var q=he(he({},De(P)),{},{VIEWLIFT_WIDTH:B,VIEWLIFT_HEIGHT:O,VIEWLIFT_SIZE:ye(B,O),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:_().toString().substring(0,10),VIEWLIFT_TIMESTAMP_MS:_().toString(),VIEWLIFT_IP:(null===(v=window)||void 0===v?void 0:v.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:encodeURIComponent(encodeURIComponent(navigator.userAgent)),VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:_e(C,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:_e(C,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:_e(C,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==x||null===(m=x.options_)||void 0===m?void 0:m.autoplay)||1,VIEWLIFT_MUTE:(null==x||null===(f=x.options_)||void 0===f?void 0:f.autoplay)||0,VIEWLIFT_DEVICE_ID:localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_DEVICETYPE:"WEB_BROWSER",VIEWLIFT_IDTYPE:"dpid",VIEWLIFT_KEYWORDS:be(C),VIEWLIFT_MEDIA_ID:M,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(_e(C,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:M,VIEWLIFT_VIDEO_URL:encodeURI(window.location.origin+_e(C,"video.gist.permalink","")),VIEWLIFT_CONSENT:D.get("cc")||"VIEWLIFT_CONSENT",VIEWLIFT_COPPA:_e(null===(p=window)||void 0===p||null===(g=p.app_data)||void 0===g||null===(T=g.site)||void 0===T?void 0:T.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR:_e(null===(h=window)||void 0===h||null===(F=h.app_data)||void 0===F||null===(S=F.site)||void 0===S?void 0:S.settings,"compliance.gdpr")?1:0,VIEWLIFT_CONTENT_DURATION_MS:1e3*_e(C,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:_e(C,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:M,VIEWLIFT_CONTENT_TITLE:U,VIEWLIFT_CONTENT_SERIES_TITLE:_e(C,"video.series.gist.title","VIEWLIFT_CONTENT_SERIES_TITLE"),VIEWLIFT_CONTENT_GENRE:_e(C,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER",VIEWLIFT_EPISODE_NUMBER:Ee(),VIEWLIFT_SEASON_NUMBER:Ie(),VIEWLIFT_CONTENT_TAGS:be(C),VIEWLIFT_GPP_SID:H||"VIEWLIFT_GPP_SID",VIEWLIFT_GPP:k||"VIEWLIFT_GPP"},null===(R=window)||void 0===R||null===(L=R.customData)||void 0===L?void 0:L.macros);for(var G in q){var Y=new RegExp(G,"g");V=V.replace(Y,q[G])}return V},De=function(e){var t,n,i,o,r,l,a={},u=new F;(null==e?void 0:e.length)>0&&(null==e||h(e).call(e,(function(e){u.set(e.name,e.value)})));var d=(null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.subscription)||void 0===i?void 0:i.SVOD)||!1,s=(null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.subscription)||void 0===l?void 0:l.TVE)||!1;return d||s?(T.isMobile()?d?a=he(he({},a),{},{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||""}):s&&(a=he(he({},a),{},{VIEWLIFT_CSID:u.get("csid.mweb.tve")||""})):d?a=he(he({},a),{},{VIEWLIFT_CSID:u.get("csid.web.dtc")||""}):s&&(a=he(he({},a),{},{VIEWLIFT_CSID:u.get("csid.web.tve")||""})),d?a=he(he({},a),{},{VIEWLIFT_SFID:u.get("sfid.dtc")||u.get("sfid.web.dtc")||""}):s&&(a=he(he({},a),{},{VIEWLIFT_SFID:u.get("sfid.tve")||u.get("sfid.web.tve")||""})),a=T.isMobile()?he(he({},a),{},{VIEWLIFT_PROF:u.get("prof.mweb")||""}):he(he({},a),{},{VIEWLIFT_PROF:u.get("prof.web")||""})):(a=he(he({},a),{},{VIEWLIFT_SFID:u.get("sfid.dtc")||u.get("sfid.web.dtc")||""}),a=T.isMobile()?he(he({},a),{},{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||"",VIEWLIFT_PROF:u.get("prof.mweb")||""}):he(he({},a),{},{VIEWLIFT_CSID:u.get("csid.web.dtc")||"",VIEWLIFT_PROF:u.get("prof.web")||""})),a=he(he({},a),{},{VIEWLIFT_AFID:u.get("afid")})},Se=function(e,t){var n,i,o,r,l,a,u,d,s,c,v,m,f,p=(null==e?void 0:e.contentType)||"video",w=null==e||null===(n=e[p])||void 0===n?void 0:n.drmEnabled,g=null==e||null===(i=e[p])||void 0===i||null===(o=i.streamingInfo)||void 0===o?void 0:o.videoAssets,I=null==e||null===(r=e[p])||void 0===r||null===(l=r.streamingInfo)||void 0===l?void 0:l.audioAssets,E=(null==e||null===(a=e[p])||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[p])||void 0===s||null===(c=s.liveDetails)||void 0===c||c.isDvrEnabled;var h=(null==e||null===(v=e[p])||void 0===v||null===(m=v.streamingInfo)||void 0===m||null===(f=m.videoAssets)||void 0===f?void 0:f.dash)||!1;if(null!=e&&e.directPlaybackUrl)return{src:null==e?void 0:e.directPlaybackUrl,type:null};if(null!=e&&e.audioAssetSource&&null!=I&&I.hls)return Le(I);if(w){var y=Ve(g,t);return y.src=Fe(y.src,t,e),y}if("Safari"!==T.detectBrowser()&&h)return Re(g);if(E){var b=Le(g);return b.src=Fe(b.src,t,e),b}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=Fe(_.src,t,e),_}return null},Re=function(e){var t=null==e?void 0:e.dash;return t?{src:t,type:"application/dash+xml"}:null},Le=function(e){var t=null==e?void 0:e.hls;return t?{src:t,type:"application/x-mpegURL"}:null},Ve=function(e,t){var n=e.fairPlay,i=e.widevine,o=e.playReady,r=T.detectBrowser();if(E.getPlayer(t),"Safari"===r){var l=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"};m.xhr(i,(function(e,t,i){console.log(e),e&&n(e),n(null,new Uint8Array(i))}))},getContentId:function(e,t){if(t){var n=g(t).call(t,"\0")+1;return I(t).call(t,n)}},getLicense:function(t,n,i,o){var r={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:i,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};m.xhr(r,(function(e,t,n){console.log(e),e&&o(e),o(null,n)}))}}}}}(n);return We(t),l}var a,u={src:i.url,type:"application/dash+xml"};return"caliente"==(null===(a=window)||void 0===a?void 0:a.siteName)?(We(t),u.keySystems={"com.widevine.alpha":{url:i.licenseUrl,licenseHeaders:{"X-AxDRM-Message":i.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},"com.microsoft.playready":{url:o.licenseUrl,licenseHeaders:{"X-AxDRM-Message":o.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}):(u.keySystemOptions=[],u.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:i.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":i.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),u.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:o.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":o.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})),u};var We=function(e){var t=E.getPlayer(e);if("function"==typeof t.eme)try{t.eme(),"Safari"==T.detectBrowser()&&t.eme.initLegacyFairplay()}catch(e){console.log("EME ERROR :",e)}},Ce=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 i=document.getElementById(e);if(i){var o=document.createElement("div");o.className="error-container";var r=document.createElement("div");r.className="error-message",r.innerHTML="".concat(t),o.appendChild(r),i.append(o)}}},Ae=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var Pe=!1,xe=function(e,t,n){var i=Fe(t,e,n),r=E.getPlayer(e);if(t&&window.google){if("function"!=typeof r.ima)return;r.ima.initializeAdDisplayContainer&&r.ima.initializeAdDisplayContainer(),function(e,t){var n,i,r,l=E.getPlayer(e);if(null!==l.el_){Pe=!0;var a={id:e,adTagUrl:"".concat(t),adLabel:"Your video will resume after this sponsor message"};l.ima.initializeAdDisplayContainer&&l.ima.initializeAdDisplayContainer(),Pe&&null!==l.el_&&("function"==typeof l.ima?l.ima(a):o((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===(i=n.customData)||void 0===i||null===(r=i.ads)||void 0===r?void 0:r.adEventHandler)||null;l.one("ads-ad-started",(function(){c&&c({status:"STARTED",msg:"Advertisement Started"})})),l.one("ads-manager",(function(e){e.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,(function(){c&&c({status:"ENDED",msg:"Advertisement Ended"})}))})),l.on("adserror",(function(e){c&&c({status:"ERROR",msg:"Advertisement Error"})}))}}(e,i)}};function Ne(e,t){var n=l(e);if(a){var i=a(e);t&&(i=r(i).call(i,(function(t){return u(e,t).enumerable}))),n.push.apply(n,i)}return n}var je=function(e){return!!m.getPlayer("".concat(e))},Oe=function(){var e=t(n.mark((function e(t,o){var r,l,a,u=arguments;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>2&&void 0!==u[2]&&u[2],e.next=3,te();case 3:return l=e.sent,a=E.getPlayer(t),e.abrupt("return",new i((function(e,n){B(o,l).then((function(n){var i=null==n?void 0:n.data;window.sid=me(),i.contentType="linearchannel",i.channelId=null==o?void 0:o.channelId;var l=Se(i,t);ie(i),l&&r?(Ue(t,l),a.on("loadstart",(function(){e({status:!0,msg:"Feed authenticated and loaded",response:i})}))):e({status:!0,msg:"Feed authenticated",response:i})})).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)}}(),Be=function(){var e=t(n.mark((function e(t,l,a){var u,d,s,c,v,m;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,te();case 2:return c=e.sent,(re()||null)&&ae(l),v=0,m=0,null!==(u=window)&&void 0!==u&&u.watchHistory&&null!==(d=window)&&void 0!==d&&null!==(s=d.watchHistory)&&void 0!==s&&s.enable&&U(l,c).then((function(e){var t,n,i,o,r,l;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(null==e?void 0:e.data)),v=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,m=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedPercentage)||null})).catch((function(e){var t,n,i,o;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(e))})),e.abrupt("return",new i((function(e,n){O(l,c).then((function(i){var l,a,u,d,s,c,f,p,w,g,I=null==i?void 0:i.data,T=(null==I||null===(l=I.video)||void 0===l||null===(a=l.streamingInfo)||void 0===a?void 0:a.isLiveStream)||!1;ie(i.data);var h=(null==I||null===(u=I.ads)||void 0===u||null===(d=u.preRoll)||void 0===d||null===(s=d.adTags)||void 0===s||null===(c=s.web)||void 0===c?void 0:c.active)&&(null==I||null===(f=I.ads)||void 0===f||null===(p=f.preRoll)||void 0===p||null===(w=p.adTags)||void 0===w||null===(g=w.web)||void 0===g?void 0:g.url);h&&xe(t,h,I);var y=Se(I,t);if(y){var b,_,F,D,S,R,V,W,C,A,P,x=(null==I||null===(b=I.video)||void 0===b||null===(_=b.gist)||void 0===_?void 0:_.videoImageUrl)||(null==I||null===(F=I.video)||void 0===F||null===(D=F.gist)||void 0===D||null===(S=D.imageGist)||void 0===S?void 0:S.r16x9),N=E.getPlayer(t);if(N.poster(x),Ue(t,y),N.on("loadstart",(function(){T&&e({status:!0,msg:"Video Loaded",response:I})})),N.on("loadeddata",(function(){Ae(),e({status:!0,msg:"Video Loaded",response:I})})),N.one("play",(function(){v&&m<95&&o((function(){N.currentTime(v)}),0)})),N.one("error",(function(){var e;n({status:!1,msg:(null==N||null===(e=N.error())||void 0===e?void 0:e.message)||"Some error occured"})})),(null==I||null===(R=I.video)||void 0===R||null===(V=R.contentDetails)||void 0===V||null===(W=V.closedCaptions)||void 0===W?void 0:W.length)>0||(null==I||null===(C=I.video)||void 0===C||null===(A=C.closedCaptions)||void 0===A?void 0:A.length)>0){var j,O,B,M=(null==I||null===(j=I.video)||void 0===j||null===(O=j.contentDetails)||void 0===O?void 0:O.closedCaptions)||(null==I||null===(B=I.video)||void 0===B?void 0:B.closedCaptions);P=r(M).call(M,(function(e){return"VTT"===e.format})),L.addCaptions(t,P)}else L.removeCaptions(t)}else Ce(t,"Incompatible Source, only hls,mp4,drm content is allowed"),n("Incompatible Source, only hls,mp4,drm content is allowed")})).catch((function(e){ke(e,t,n,l)}))})));case 9:case"end":return e.stop()}}),e)})));return function(t,n,i){return e.apply(this,arguments)}}(),Me=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()},Ue=function(e,t){var n=E.getPlayer(e);n&&n.src(t)},ke=function(t,n,i,o){var r,l,a,m,f,p,w=null==t||null===(r=t.response)||void 0===r||null===(l=r.data)||void 0===l?void 0:l.errorCode,g=(null==t||null===(a=t.response)||void 0===a||null===(m=a.data)||void 0===m?void 0:m.errorMessage)||(null==t?void 0:t.message);je(n)&&Ce(n,(null===(f=window)||void 0===f?void 0:f.customErrors)&&(null===(p=window)||void 0===p?void 0:p.customErrors[w])||"".concat(g)),i&&i(function(t){for(var n=1;n<arguments.length;n++){var i,o,r=null!=arguments[n]?arguments[n]:{};n%2?d(i=Ne(Object(r),!0)).call(i,(function(n){e(t,n,r[n])})):s?c(t,s(r)):d(o=Ne(Object(r))).call(o,(function(e){v(t,e,u(r,e))}))}return t}({status:!1,response:t,msg:"".concat(g)},o&&{videoId:o}))};exports.authenticateLC=Oe,exports.baseUrlManager=H,exports.clearError=Ae,exports.createIdxMapping=function(e){K=new F,h(e).call(e,(function(e,t){K.set(e.id,t)}))},exports.createSeriesWatchMap=function(e,t){var n=new F;k({videoId:e,token:t}).then((function(e){var t=e.data;h(t).call(t,(function(e){n.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})})),Q=n})).catch((function(e){return console.log(e)}))},exports.disableControls=function(e){var t=document.getElementById(e),n=t.getElementsByClassName("vjs-control-bar")[0];n&&(n.style.visibility="hidden");var i=t.getElementsByClassName("vjs-big-play-button")[0];i&&(i.style.display="none");var o=t.getElementsByClassName("vjs-fullscreen-control")[0];o&&(o.style.display="none")},exports.dispose=function(e){var t=E.getPlayer(e);if(Me(),E.clearEventListeners(),window.onresize=null,t)t.dispose();else{var n=document.getElementById(e);n&&n.remove()}},exports.getCurrentSeries=re,exports.getCurrentVideo=oe,exports.getDecodedToken=ne,exports.getEntitlementData=function(e,t,n,i){return p({url:n,params:{id:e,deviceType:"web_browser",contentConsumption:"web",latitude:null==i?void 0:i.latitude,longitude:null==i?void 0:i.longitude},method:"GET",headers:{Authorization:t},withCredentials:!0})},exports.getEpisodeNumber=Ee,exports.getLinearChannelDetails=B,exports.getSeasonNumber=Ie,exports.getSeriesDetails=function(e,t){var n,o,r=ne(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 i((function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.seriesData})})):p({url:H.get()+"/v3/content/series/".concat(e),params:{site:l},method:"GET",headers:{Authorization:t}})},exports.getSeriesWatchHistory=k,exports.getSeriesWatchMap=function(){return Q},exports.getSource=Se,exports.getToken=te,exports.getUpdatedClusterSource=function(e,t){var n,i=e.src,o=e.type;if(!i||"string"!=typeof i||!w(i).call(i,".com"))return{src:i,type:o};t=t.replace(/\/$/,"");var r=i.split(".com")[1]||"";return{src:r?f(n="".concat(t)).call(n,r):i,type:o}},exports.getUserId=fe,exports.getVideoDetails=O,exports.getVideoIdx=function(){return J},exports.getVideoInfo=U,exports.handleError=Ce,exports.initialiseAdvertisement=xe,exports.initiateErrorHandling=ke,exports.inititateBeacon=function(e,t){if("localhost"!==location.hostname&&"127.0.0.1"!==location.hostname){var n=E.getPlayer(e);window.initialise(n,t),window.firstFrame(n,t),n.on("loadedmetadata",(function(){window.endFirstFrame(n)}))}},exports.isPaused=function(e){return m(e).paused()},exports.isPlayerInitialised=je,exports.isTokenExpired=q,exports.load=Be,exports.loadVideo=Ue,exports.loadVideoInstantly=function(e,t,n){var r=E.getPlayer(e);return r.src(t),new i((function(e,t){var i=0;r.one("loadedmetadata",(function(){clearTimeout(i),e({status:!0,msg:"video loaded"})})),r.one("loadstart",(function(e){i=o((function(){t("FAILED: Took too long to load")}),n)}))}))},exports.pause=function(e){m(e).pause()},exports.play=function(e){m(e).play()},exports.refreshTokenManager=Y,exports.replaceMacros=Fe,exports.rewind=function(e,t){var n=m(e),i=n.currentTime(),o=i<=t?0:i-t;n.currentTime(o)},exports.runGtag=function(e){window.dataLayer=window.dataLayer||[],W("js",new Date),W("config",e)},exports.saveWatchHistory=M,exports.seasonIdxManager=ue,exports.setCurrentSeries=function(e){z=e},exports.setCurrentVideo=ie,exports.setVideoIdx=le,exports.setVideoIdxById=ae,exports.skip=function(e,t){var n=m(e),i=n.currentTime()+t;n.currentTime(i)},exports.token_authentication_enabled=function(e){var t=!0,n=null==e?void 0:e.videoSourceUrl,i=null==e?void 0:e.asat;return n&&!i&&(t=!1),t};
@@ -1 +0,0 @@
1
- "use strict";var n=require("@babel/runtime-corejs3/core-js-stable/instance/concat");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.InfoIcon=function(){return'<svg width="16" height="16" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M8.99935 13.167C9.23546 13.167 9.43338 13.0871 9.5931 12.9274C9.75282 12.7677 9.83268 12.5698 9.83268 12.3337C9.83268 12.0975 9.75282 11.8996 9.5931 11.7399C9.43338 11.5802 9.23546 11.5003 8.99935 11.5003C8.76324 11.5003 8.56532 11.5802 8.4056 11.7399C8.24588 11.8996 8.16602 12.0975 8.16602 12.3337C8.16602 12.5698 8.24588 12.7677 8.4056 12.9274C8.56532 13.0871 8.76324 13.167 8.99935 13.167ZM8.16602 9.83366H9.83268V4.83366H8.16602V9.83366ZM8.99935 17.3337C7.84657 17.3337 6.76324 17.1149 5.74935 16.6774C4.73546 16.2399 3.85352 15.6462 3.10352 14.8962C2.35352 14.1462 1.75977 13.2642 1.32227 12.2503C0.884766 11.2364 0.666016 10.1531 0.666016 9.00033C0.666016 7.84755 0.884766 6.76421 1.32227 5.75033C1.75977 4.73644 2.35352 3.85449 3.10352 3.10449C3.85352 2.35449 4.73546 1.76074 5.74935 1.32324C6.76324 0.885742 7.84657 0.666992 8.99935 0.666992C10.1521 0.666992 11.2355 0.885742 12.2493 1.32324C13.2632 1.76074 14.1452 2.35449 14.8952 3.10449C15.6452 3.85449 16.2389 4.73644 16.6764 5.75033C17.1139 6.76421 17.3327 7.84755 17.3327 9.00033C17.3327 10.1531 17.1139 11.2364 16.6764 12.2503C16.2389 13.2642 15.6452 14.1462 14.8952 14.8962C14.1452 15.6462 13.2632 16.2399 12.2493 16.6774C11.2355 17.1149 10.1521 17.3337 8.99935 17.3337ZM8.99935 15.667C10.8605 15.667 12.4368 15.0212 13.7285 13.7295C15.0202 12.4378 15.666 10.8614 15.666 9.00033C15.666 7.13921 15.0202 5.56283 13.7285 4.27116C12.4368 2.97949 10.8605 2.33366 8.99935 2.33366C7.13824 2.33366 5.56185 2.97949 4.27018 4.27116C2.97852 5.56283 2.33268 7.13921 2.33268 9.00033C2.33268 10.8614 2.97852 12.4378 4.27018 13.7295C5.56185 15.0212 7.13824 15.667 8.99935 15.667Z" fill="white"/>\n </svg>'},exports.MaximizeSvg=function(e){var t,C;return n(t=n(C="<svg fill='".concat(e||"white","'\n class='icon icon-maximize'\n viewBox=\"0 0 70 70\"\n xmlns='http://www.w3.org/2000/svg'\n >\n <path fill='")).call(C,e||"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='")).call(t,e||"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(e){var t,C;return n(t=n(C="<svg fill='".concat(e||"white","'\n class='icon icon-minimize'\n viewBox=\"0 0 70 70\"\n xmlns='http://www.w3.org/2000/svg'\n >\n <path fill='")).call(C,e||"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='")).call(t,e||"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(e){var t,C;return n(t=n(C='<svg className=\'icon-play-next\' width="16" height="16" viewBox="0 0 25 25" fill='.concat(e,' xmlns="http://www.w3.org/2000/svg">\n <path d="M14.8837 9.99984L0 0V20L14.8837 9.99984Z" fill=')).call(C,e,' />\n <rect x="18" width="2" height="20" fill=')).call(t,e," />\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(e){var t,C;return n(t=n(C='<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=\'')).call(C,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=\'')).call(t,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(e){var t,C;return n(t=n(C='<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=\'')).call(C,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=\'')).call(t,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 '};
@@ -1 +0,0 @@
1
- "use strict";var e,t,n,r,i=require("@babel/runtime-corejs3/helpers/toConsumableArray"),a=require("@babel/runtime-corejs3/core-js-stable/instance/map"),l=require("@babel/runtime-corejs3/core-js-stable/instance/filter"),o=require("./skin-b28fa2ec.js"),u=require("./generic-90e67a4c.js"),s=require("./autoNextVideo-17e9c827.js"),c=require("@babel/runtime-corejs3/helpers/typeof"),d=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),p=require("@babel/runtime-corejs3/core-js-stable/parse-float"),m=require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),v=require("video.js"),f=require("@babel/runtime-corejs3/helpers/asyncToGenerator"),g=require("@babel/runtime-corejs3/regenerator"),h=require("@babel/runtime-corejs3/core-js-stable/instance/includes"),b=require("@babel/runtime-corejs3/core-js-stable/instance/last-index-of"),x=require("@babel/runtime-corejs3/helpers/defineProperty"),y=require("@babel/runtime-corejs3/helpers/slicedToArray"),w=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),j=require("@babel/runtime-corejs3/core-js-stable/instance/trim"),E=require("@babel/runtime-corejs3/core-js-stable/instance/starts-with"),N=require("@babel/runtime-corejs3/core-js-stable/parse-int"),C=require("@babel/runtime-corejs3/core-js-stable/instance/pad-start"),k=require("@babel/runtime-corejs3/core-js-stable/promise"),q=require("@babel/runtime-corejs3/core-js-stable/instance/flat"),T=[],A=function(e,t){var n=o.getPlayer(e),r=Math.floor(n.currentTime());if(Math.floor(n.duration())!=r){n.pause(e);var i=u.getVideoIdx();s.switchToNext(i,e,T)}};function I(e){var t=e.split("\n"),n=[];return w(t).call(t,(function(e){if(e=j(e).call(e),E(e).call(e,"#EXT-X-IMAGE-STREAM-INF")){var t=e.split(","),r={resolution:null,uri:null};w(t).call(t,(function(e){h(e).call(e,"RESOLUTION")&&(r.resolution=e.split("=")[1]),h(e).call(e,"URI")&&(r.uri=e.split("=")[1].replace(/"/g,""))})),n.push(r)}})),n}function L(e){return P.apply(this,arguments)}function P(){return(P=f(g.mark((function e(t){return g.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new k((function(e){var n=new Image;n.src=t.uri,n.crossOrigin="Anonymous";var r=[],i=t.layout.split("x"),a=y(i,2),l=a[0],o=a[1];n.onload=function(){var i=document.createElement("canvas");i.width=n.width,i.height=n.height,i.getContext("2d").drawImage(n,0,0,i.width,i.height);for(var a=i.width/o,u=i.height/l,s=0;s<l;s++)for(var c=0;c<o;c++){var d=document.createElement("canvas");d.width=a,d.height=u,d.getContext("2d").drawImage(i,c*a,s*u,a,u,0,0,a,u);var p=d.toDataURL("image/png");r.push({uri:p,duration:t.duration})}e(r)},n.onerror=function(n){var r,i,a,l;e([{duration:t.duration,uri:"".concat(null===(r=window)||void 0===r||null===(i=r.app_data)||void 0===i||null===(a=i.appcmsMain)||void 0===a||null===(l=a.images)||void 0===l?void 0:l.placeholderCover)}])}})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(e){return M.apply(this,arguments)}function M(){return(M=f(g.mark((function e(t){var n,r;return g.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t);case 3:return n=e.sent,e.next=6,n.text();case 6:return r=e.sent,e.abrupt("return",I(r));case 10:e.prev=10,e.t0=e.catch(0),console.error("Error fetching the M3U8 manifest:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function S(e){return R.apply(this,arguments)}function R(){return(R=f(g.mark((function e(t){var n,r,i;return g.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=q,e.next=3,k.all(a(t).call(t,(function(e){return L(e)})));case 3:return e.t1=n=e.sent,r=(0,e.t0)(e.t1).call(n),i={},a(r).call(r,(function(e,t){var n,r=e.duration;i[r*t]={src:e.uri,style:(n={left:"-60px",height:"85px",width:"130px"},x(n,"left","-60px"),x(n,"border","1px solid transparent"),x(n,"borderRadius","4px"),n)}})),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}e={0:{src:"example-thumbnail.png"}},t=function e(){var t,n,r,i,a;for(r in n=(t=d(Array.prototype).call(arguments)).shift()||{},t)for(a in i=t[r])i.hasOwnProperty(a)&&("object"===c(i[a])?n[a]=e(n[a],i[a]):n[a]=i[a]);return n},n=function(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}},r=function e(t){return"HTML"!==t.nodeName&&"static"===n(t)("position")?e(t.offsetParent):t},v.registerPlugin("thumbnails",(function(i){var a,l,o,u,s,c,d,v;function f(){document.removeEventListener("pointermove",d),document.removeEventListener("pointerup",f),v()}l=t({},e,i),u=this,function(e){var t,n,r;-1!==m(e=navigator.userAgent.toLowerCase()).call(e,"android")&&(n=function(){t.addClass("fake-active")},r=function(){t.removeClass("fake-active")},(t=u.controlBar.progressControl).on("touchstart",n),t.on("touchend",r),t.on("touchcancel",r))}(),(a=document.createElement("div")).className="vjs-thumbnail-holder",o=document.createElement("img"),a.appendChild(o),o.src=l[0].src,o.className="vjs-thumbnail",t(o.style,l[0].style),o.style.left||o.style.right||(o.onload=function(){o.style.left=-o.naturalWidth/2+"px"}),c=u.duration(),u.on("durationchange",(function(e){c=u.duration()})),u.on("loadedmetadata",(function(e){c=u.duration()})),(s=u.controlBar.progressControl).el().appendChild(a),d=function(e){var i,u,d,m,v,f,g,h,b,x;for(u in d=0,b=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,g=((x=r(s.el()).getBoundingClientRect()).width||x.right)+b,f=e.pageX,e.changedTouches&&(f=e.changedTouches[0].pageX),m=f||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,m-=r(s.el()).getBoundingClientRect().left+b,i=Math.floor((m-s.el().offsetLeft)/s.width()*c),l)i>u&&(d=Math.max(d,u));(v=l[d]).src&&o.src!=v.src&&(o.src=v.src),v.style&&o.style!=v.style&&t(o.style,v.style),m+(h=function(e,t){var r;return t?p(t):"auto"!==(r=n(e)("clip"))&&"inherit"!==r&&4===(r=r.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?p(r[1])-p(r[3]):0}(o,v.width||l[0].width)/2)>g?m-=m+h-g:m<h&&(m=h),a.style.left=m+"px"},s.on("mousemove",d),s.on("touchmove",d),s.on("pointerdown",(function(e){document.addEventListener("pointermove",d),document.addEventListener("pointerup",f)})),v=function(e){a.style.left="-1000px"},s.on("mouseout",v),s.on("touchcancel",v),s.on("touchend",v),u.on("userinactive",v)}));var X=function(){var e=f(g.mark((function e(t,n){var r,i,a,l;return g.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t+n);case 2:return r=e.sent,e.next=5,r.text();case 5:return i=e.sent,a=i.split("\n"),l=[],w(a).call(a,(function(e,n){var r;e=j(e).call(e);var i,o={resolution:null,duration:null,uri:null,layout:null};n>0&&h(r=a[n-1]).call(r,"#EXT-X-TILES")&&(a[n-1]=a[n-1].split(","),o.uri=t+e,w(i=a[n-1]).call(i,(function(e){var t,n=h(e).call(e,":")?e.split(":")[1]:e;w(t=n.split(",")).call(t,(function(e){var t=e.split("="),n=y(t,2),r=n[0],i=n[1];r=r.toLowerCase(),o[r]=i}))})),l.push(o))})),e.abrupt("return",l);case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function O(e,t){return V.apply(this,arguments)}function V(){return(V=f(g.mark((function e(t,n){var r,i,a,l,s,c,p,v,f,h,b,x,w,j,E,C,k,q,T,A,I,L,P,B,M,S,R,X,O,V,U,G,F,_,H;return g.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=o.getPlayer(n),l=d(r=t.split("/")).call(r,0,m(i=t.split("/")).call(i,"dash")+1).join("/")||t,e.prev=2,e.next=5,fetch(t);case 5:return v=e.sent,e.next=8,v.text();case 8:f=e.sent,h=new DOMParser,b=h.parseFromString(f,"application/xml"),x=(null==a?void 0:a.duration())||(null===(s=u.getCurrentVideo())||void 0===s||null===(c=s.video)||void 0===c?void 0:c.runtime),w=(null==b||null===(p=b.querySelector("MPD > BaseURL"))||void 0===p?void 0:p.textContent)||l+"/",j=b.getElementsByTagName("AdaptationSet"),E=0;case 15:if(!(E<j.length)){e.next=43;break}if(("image"!==(C=j[E]).getAttribute("contentType")||"image/png"!==C.getAttribute("mimeType"))&&"image/jpeg"!==C.getAttribute("mimeType")){e.next=40;break}if(k=C.getElementsByTagName("SegmentTemplate")[0],q=C.getElementsByTagName("Representation")[0],T=q.getElementsByTagName("EssentialProperty")[0],A=T.getAttribute("value"),I=null==A?void 0:A.split("x"),L=y(I,2),P=L[0],B=L[1],!k){e.next=40;break}if(k.getAttribute("media"),M=k.getAttribute("duration"),S=k.getAttribute("timescale"),R=(S?M/S:M)/(P*B),X=q.getAttribute("id"),O=Math.round(x/R),V=Math.ceil(O/(P*B)),U=k.getAttribute("media"),G=N(k.getAttribute("startNumber"))||0,!isNaN(N(V))){e.next=36;break}return e.abrupt("return");case 36:for(F=[],_=$(U),E=0;E<V;E++)H=_?D(_,E+G):U,F.push({duration:R,layout:A,uri:w+H.replace("$Number$",E+G).replace("$RepresentationID$",X)});return e.abrupt("return",F);case 40:E++,e.next=15;break;case 43:return console.log("No trickplay segment found."),e.abrupt("return",null);case 47:e.prev=47,e.t0=e.catch(2),console.error("Error fetching or parsing MPD:",e.t0);case 50:case"end":return e.stop()}}),e,null,[[2,47]])})))).apply(this,arguments)}function $(e){var t=e.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return t?t[0]:null}function D(e,t){var n,r=e.match(/%0(\d+)d/);if(!r)return e;var i=N(r[1],10),a=C(n=String(t)).call(n,i,"0");return e.replace(/\$Number%0\d+d\$/,a)}function U(){return(U=f(g.mark((function e(t){var n,r,i,a,l,u,s,c,d,p,m,v,f,x,y,w;return g.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=o.getPlayer(t),s=u.currentSource(),c=s.src,c=null!==(n=c)&&void 0!==n&&h(n).call(n,"blob")?null===(r=window)||void 0===r||null===(i=r.player)||void 0===i?void 0:i.getSource():c,null===(a=c)||void 0===a||!h(a).call(a,"m3u8")){e.next=19;break}return e.next=6,B(c);case 6:if(!((null==(d=e.sent)?void 0:d.length)>0)){e.next=17;break}return p=(null==d?void 0:d[0])||null,m=p.uri,v=c.substring(0,b(c).call(c,"/"))+"/",e.next=12,X(v,m);case 12:return f=e.sent,e.next=15,S(f);case 15:x=e.sent,u.thumbnails(x);case 17:e.next=28;break;case 19:if(null===(l=c)||void 0===l||!h(l).call(l,"mpd")){e.next=28;break}return e.next=22,O(c,t);case 22:if(!((null==(y=e.sent)?void 0:y.length)>0)){e.next=28;break}return e.next=26,S(y);case 26:w=e.sent,u.thumbnails(w);case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}exports.addNextEpPreview=function(e,t){var n;if(null!=t&&null!==(n=t.series)&&void 0!==n&&n.enable){var r;T=[];var s=u.getCurrentSeries();null==s||a(s).call(s,(function(e){var t;return(t=T).push.apply(t,i(e.episodes))})),null==t||null===(r=t.series)||void 0===r||r.cb}else{var c,d;T=(null==t||null===(c=t.relatedVideos)||void 0===c?void 0:c.content)||[],null==t||null===(d=t.relatedVideos)||void 0===d||d.cb}var p=o.getPlayer(e);p.on("timeupdate",(function(){var e,t,n=Math.floor(p.currentTime()),r=p.duration(),i=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];r-n<=10&&u.getVideoIdx()<=(null===(t=T)||void 0===t?void 0:t.length)-1?i&&(i.style.visibility="visible"):i&&(i.style.visibility="hidden")}));var m,v=l(T).call(T,(function(e,t){return t==u.getVideoIdx()}));if((null==v?void 0:v.length)>0)if(null!==(m=document.getElementsByClassName("next-ep-preview"))&&void 0!==m&&m[0]){var f,g,h,b,x,y,w,j,E,N,C,k;(null===(f=document.getElementsByClassName("next-ep-preview"))||void 0===f?void 0:f[0]).style.visibility="hidden";var q=null===(g=document.getElementsByClassName("next-ep-title"))||void 0===g?void 0:g[0],I=null===(h=document.getElementsByClassName("next-ep-img"))||void 0===h?void 0:h[0],L=null===(b=document.getElementsByClassName("next-ep-content"))||void 0===b?void 0:b[0],P=null===(x=v[0])||void 0===x?void 0:x.title;(null===(y=P)||void 0===y?void 0:y.length)>60&&(P=P.substr(0,60)+"..."),q.textContent="".concat(P),I.src=(null===(w=v[0])||void 0===w||null===(j=w.gist)||void 0===j||null===(E=j.imageGist)||void 0===E?void 0:E.r16x9)||(null==v||null===(N=v[0])||void 0===N?void 0:N.img)||(null===(C=window)||void 0===C||null===(k=C.customData)||void 0===k?void 0:k.fallbackImage),L.onclick=function(){return A(e)}}else{var B,M,S,R,X,O,V,$,D=document.createElement("div");D.className="next-ep-preview",D.style.visibility="hidden",document.getElementById(e).append(D);var U=document.createElement("div");U.className="next-ep-header",U.textContent="Next up";var G=null===(B=v[0])||void 0===B?void 0:B.title,F=document.createElement("img");F.className="next-ep-img",F.src=(null===(M=v[0])||void 0===M||null===(S=M.gist)||void 0===S||null===(R=S.imageGist)||void 0===R?void 0:R.r16x9)||(null==v||null===(X=v[0])||void 0===X?void 0:X.img)||(null===(O=window)||void 0===O||null===(V=O.customData)||void 0===V?void 0:V.fallbackImage);var _=document.createElement("div");_.className="next-ep-title",(null===($=G)||void 0===$?void 0:$.length)>60&&(G=G.substr(0,60)+"..."),_.textContent="".concat(G);var H=document.createElement("div");H.className="next-ep-content",H.append(F),H.append(_),H.onclick=function(){return A(e)},D.append(U),D.append(H)}},exports.addTVProviderImage=function(e,t){var n=o.getPlayer(e),r=null==t?void 0:t.tvProviderLogoUrl;if(r){var i=document.createElement("div");i.className="tvProviderImage";var a=document.createElement("img");a.src="".concat(r),a.alt="Provider Image",i.append(a),n.el().appendChild(i),n.on("useractive",(function(){i.classList.remove("vjs-fade")})),n.on("userinactive",(function(){n.paused()||i.classList.add("vjs-fade")})),n.on("fullscreenchange",(function(){n.isFullscreen_?i.style.top="3.2rem":i.style.top="1rem"}))}},exports.initiateTrickplay=function(e){return U.apply(this,arguments)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),t=require("@babel/runtime-corejs3/helpers/classCallCheck"),r=require("@babel/runtime-corejs3/helpers/createClass"),a=require("@babel/runtime-corejs3/helpers/get"),n=require("@babel/runtime-corejs3/helpers/inherits"),i=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),o=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),s=require("video.js");function l(t){var r=u();return function(){var a,n=o(t);if(r){var s=o(this).constructor;a=e(n,arguments,s)}else a=n.apply(this,arguments);return i(this,a)}}function u(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}var c={startTime:0,timeLive:3600},p=0,h=c.timeLive,d=s.getComponent("Button"),v=s.getComponent("Component"),m=s.getComponent("ProgressControl"),f=m.getComponent("SeekBar"),_=m.getComponent("PlayProgressBar"),y=m.getComponent("LoadProgressBar"),b=s.getComponent("MouseTimeDisplay");y.prototype.update=function(e){var t=this.player_.buffered(),r=this.player_.duration(),a=this.player_.bufferedEnd(),n=this.partEls_,i=function(e,t){var r=e/t||0;return 100*(r>=1?1:r)+"%"};0!==i(a,r)&&(this.el_.style.width=i(a,r));for(var o=0;o<t.length;o++){var s=t.start(o),l=t.end(o),u=n[o];u||(u=this.el_.appendChild(document.createElement("div")),n[o]=u),0!==i(s,a)&&(u.style.left=i(s,a)),0!==i(l-s,a)&&(u.style.width=i(l-s,a))}for(var c=n.length;c>t.length;c--)this.el_.removeChild(n[c-1]);n.length=t.length},f.prototype.update_=function(e,t){var r=this.player_.duration(),a=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),r!==Number.POSITIVE_INFINITY&&this.el_.setAttribute("aria-valuetext","-".concat(s.formatTime(r-a,r))),this.bar.update(s.dom.getBoundingClientRect(this.el_),t)},f.prototype.handleMouseMove=function(e){var t=1-this.calculateDistance(e),r=this.player_.seekable().end(0)-t*h;r===this.player_.duration()&&(r-=.1),this.player_.currentTime(r),this.update()},_.prototype.update=function(e,t){var r=this,a=this.player_.duration();this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var n=r.player_.scrubbing()?r.player_.getCache().currentTime:r.player_.currentTime(),i=s.formatTime(a-n,a);0!==t&&a!==Number.POSITIVE_INFINITY&&r.getChild("timeTooltip").update(e,t,"-".concat(i))}))},b.prototype.update=function(e,t){var r=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var a=s.formatTime(h-t*h,h);r.el_.style.left="".concat(e.width*t,"px"),0!==t&&r.player_.duration()!==Number.POSITIVE_INFINITY&&r.getChild("timeTooltip").update(e,t,"-".concat(a))}))};var C=function(e){var t=this;e||(e=c),this.on("timeupdate",(function(e){var r,a;(a=(r=t).seekable())&&a.length&&(a.end(0)-r.currentTime()<20?r.controlBar.liveButton.addClass("onair"):r.controlBar.liveButton.removeClass("onair"),r.duration(r.seekable().end(0)),p||(p=h=r.seekable().end(0)))})),this.on("pause",(function(e){t.controlBar.liveButton.removeClass("onair")})),this.ready((function(){var r;r=t,s.mergeOptions(c,e),r.addClass("vjs-dvr-seekbar"),r.controlBar.addClass("vjs-dvr-control-bar"),r.controlBar.progressControl.seekBar.__proto__.__proto__.update=function(){if(this.el_){var e;e="VolumeBar"===this.name_?this.getPercent():1-(this.player_.duration()-this.player_.currentTime())/h;var t=this.bar;if(t){("number"!=typeof e||e!=e||e<0||e===1/0)&&(e=0),e>1&&(e=1);var r=(100*e).toFixed(2)+"%",a=t.el().style;return 0!==e&&(this.vertical()?a.height=r:a.width=r),e}}},r.controlBar.progressControl&&r.controlBar.progressControl.addClass("vjs-dvr-progress-control"),r.controlBar.liveButton=r.controlBar.addChild("liveButton"),r.controlBar.el().insertBefore(r.controlBar.liveButton.el(),r.controlBar.progressControl.el())}))},g=function(e){n(s,d);var i=l(s);function s(e,r){var a;return t(this,s),(a=i.call(this,e,r)).el().innerHTML='<span class="liveCircle"></span><span class="liveText">LIVE</span>',e.paused()||a.addClass("onair"),a}return r(s,[{key:"buildCSSClass",value:function(){return"vjs-live-button ".concat(a(o(s.prototype),"buildCSSClass",this).call(this))}},{key:"handleClick",value:function(e){var t=this.player_.seekable().end(0);this.player_.currentTime(t),this.player_.play()}}]),s}();v.registerComponent("LiveButton",g),(s.registerPlugin||s.plugin)("dvrSeekbar",C),exports.default=C;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/instance/includes"),r=require("./generic-90e67a4c.js"),l=require("./skin-b28fa2ec.js");var n,i=(n=!0,{enable:function(){n=!0},disable:function(){n=!1},get enabled(){return n}});exports.initialiseKeyboardEvents=function(n,a){var t,o,c,u=l.getPlayer(n),s=null==u||null===(t=u.controlBar)||void 0===t||null===(o=t.playToggle)||void 0===o?void 0:o.el_,d=document.getElementsByTagName("video")[0];null===(c=document)||void 0===c||c.addEventListener("keydown",(function(l){var t,o;if(i.enabled&&"input"!=l.target.localName){var c=l.key,v=!0===a.liveVideo||!0===a.liveui;switch(e(t=[" ","m","M","f","F","ArrowLeft","ArrowRight"]).call(t,c)&&(l.preventDefault(),null==d||d.focus()),c){case" ":null==s||s.click();break;case"m":case"M":u.muted(!u.muted());break;case"f":case"F":null===(o=document.querySelector(".vjs-fullscreen-control"))||void 0===o||o.click();break;case"ArrowLeft":v&&!1===a.liveui||r.rewind(n,10);break;case"ArrowRight":v||r.skip(n,10)}}}),!0)},exports.keyboardManager=i;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),r=require("@babel/runtime-corejs3/helpers/classCallCheck"),t=require("@babel/runtime-corejs3/helpers/createClass"),s=require("@babel/runtime-corejs3/helpers/inherits"),a=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),n=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),o=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),i=require("video.js"),c=require("./icons-9e9e6364.js"),l=require("./generic-90e67a4c.js"),u=require("./skin-b28fa2ec.js");function d(r){var t=m();return function(){var s,o=n(r);if(t){var i=n(this).constructor;s=e(o,arguments,i)}else s=o.apply(this,arguments);return a(this,s)}}function m(){try{var r=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(r){}return(m=function(){return!!r})()}require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),require("@babel/runtime-corejs3/regenerator"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),require("@babel/runtime-corejs3/core-js-stable/object/define-property"),require("axios"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("./browser-aa8ef172.js"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("./captions-d160e397.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval"),require("@babel/runtime-corejs3/helpers/toConsumableArray");var b=i.getComponent("Component"),p=function(e){s(n,b);var a=d(n);function n(e){var t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,n),(t=a.call(this,e,s)).playerId=s.playerId,t.seriesData=s.sres,t.streams=s.streams,t.currentVideoData=s.res,t.initialiseStructure(),t.loadCSS(),t}return t(n,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var r=i.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(c.BroadcastIcon())});return i.dom.appendContent(e,r),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./multicamv2-1efdbdb9.js")})).then((function(e){var r=document.createElement("style");r.id="multicam-v2",r.append("".concat(e.default)),document.head.appendChild(r)}))}},{key:"initialiseStructure",value:function(){var e=this,r=this.el(),t=i.dom.createEl("div",{className:"stream-container hidden"});i.dom.$(".stream-selector-icon",this.el()).onclick=function(){var s;null!==(s=t.classList)&&void 0!==s&&s.contains("hidden")?(u.closeOpenDrawers(),t.classList.remove("hidden"),r.classList.add("open"),u.setUpdatedElHeight(e.playerId,t)):(t.classList.add("hidden"),r.classList.remove("open"))};var s=document.getElementById(this.playerId);if(s){var a=window.getComputedStyle(s,null).getPropertyValue("height"),n=o(a).call(a,0,-2);t.style.height="".concat(n,"px"),s.style.overflow="hidden",i.dom.appendContent(r,t),this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var r=this,t=this.el(),s=i.dom.createEl("div",{className:"stream-selector-head"}),a=i.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(c.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),t.classList.remove("open")};for(var n=i.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),o=i.dom.createEl("div",{className:"stream-selector-content"}),d=i.dom.createEl("div",{className:"stream-tray"}),m=function(e){var t,s,a,n=i.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(c.SelectedStream())});0==e&&(n.classList.add("selected"),n.style.border="2px solid #D2393B"),n.onclick=function(){for(var t=i.dom.$$(".stream"),s=0;s<t.length;s++)t[s].style.border="none",t[s].classList.remove("selected");n.classList.add("selected"),n.style.border="2px solid #D2393B",l.load(r.playerId,r.streams[e].id).then((function(e){l.play(r.playerId),console.log(e)})).catch((function(e){console.log(e)}))},n.style.backgroundImage="url(".concat(r.streams[e].img,")");var u=document.createElement("img");u.className="stream-thumbnail-image",u.src="".concat((null==r||null===(t=r.streams[e])||void 0===t?void 0:t.img)||(null===(s=window)||void 0===s||null===(a=s.customData)||void 0===a?void 0:a.fallbackImage)),n.append(u),i.dom.appendContent(d,n),i.dom.appendContent(o,d)},b=0;b<this.streams.length;b++)m(b);i.dom.appendContent(s,a),i.dom.appendContent(s,n),i.dom.appendContent(e,s),i.dom.appendContent(e,o),u.handleDrawerResizing(this.playerId,e)}}]),n}();exports.default=p;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),r=require("@babel/runtime-corejs3/helpers/classCallCheck"),t=require("@babel/runtime-corejs3/helpers/createClass"),s=require("@babel/runtime-corejs3/helpers/inherits"),a=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),n=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),o=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),i=require("video.js"),c=require("./icons-9e9e6364.js"),l=require("./generic-90e67a4c.js"),u=require("./skin-b28fa2ec.js");function d(r){var t=m();return function(){var s,o=n(r);if(t){var i=n(this).constructor;s=e(o,arguments,i)}else s=o.apply(this,arguments);return a(this,s)}}function m(){try{var r=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(r){}return(m=function(){return!!r})()}require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),require("@babel/runtime-corejs3/regenerator"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),require("@babel/runtime-corejs3/core-js-stable/object/define-property"),require("axios"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("./browser-aa8ef172.js"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("./captions-d160e397.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval"),require("@babel/runtime-corejs3/helpers/toConsumableArray");var b=i.getComponent("Component"),p=function(e){s(n,b);var a=d(n);function n(e){var t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,n),(t=a.call(this,e,s)).playerId=s.playerId,t.seriesData=s.sres,t.streams=s.streams,t.currentVideoData=s.res,t.initialiseStructure(),t.loadCSS(),t}return t(n,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var r=i.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(c.BroadcastIcon())});return i.dom.appendContent(e,r),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./multicamv2-7a86b517.js")})).then((function(e){var r=document.createElement("style");r.id="multicam-v2",r.append("".concat(e.default)),document.head.appendChild(r)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),r=i.dom.createEl("div",{className:"stream-container hidden"});i.dom.$(".stream-selector-icon",this.el()).onclick=function(){var t;null!==(t=r.classList)&&void 0!==t&&t.contains("hidden")?(u.closeOpenDrawers(),r.classList.remove("hidden"),e.classList.add("open"),r.style.right="0px"):(r.classList.add("hidden"),e.classList.remove("open"),r.style.right="-350px")};var t=document.getElementById(this.playerId);if(t){var s=window.getComputedStyle(t,null).getPropertyValue("height"),a=o(s).call(s,0,-2);r.style.height="".concat(a,"px"),t.style.overflow="hidden",i.dom.appendContent(e,r),this.addFunctionality(r)}}},{key:"addFunctionality",value:function(e){var r=this,t=this.el(),s=i.dom.createEl("div",{className:"stream-selector-head"}),a=i.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(c.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};for(var n=i.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),d=i.dom.createEl("div",{className:"stream-selector-content"}),m=i.dom.createEl("div",{className:"stream-tray"}),b=function(e){var t,s=i.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(c.SelectedStream())});0==e&&(s.classList.add("selected"),s.style.border="4px solid #D2393B"),s.onclick=function(){for(var t=i.dom.$$(".stream"),a=0;a<t.length;a++)t[a].style.border="none",t[a].classList.remove("selected");s.classList.add("selected"),s.style.border="4px solid #D2393B",l.load(r.playerId,r.streams[e].id).then((function(e){l.play(r.playerId),console.log(e)})).catch((function(e){console.log(e)}))},s.style.backgroundImage="url(".concat(r.streams[e].img,")");var a=document.createElement("img");a.className="stream-thumbnail-image",a.src="".concat(null==r||null===(t=r.streams[e])||void 0===t?void 0:t.img),a.alt="No Thumbnail Available",s.append(a),i.dom.appendContent(m,s),i.dom.appendContent(d,m)},p=0;p<this.streams.length;p++)b(p);i.dom.appendContent(s,a),i.dom.appendContent(s,n),i.dom.appendContent(e,s),i.dom.appendContent(e,d),u.getPlayer(this.playerId).on("fullscreenchange",(function(){var t=window.getComputedStyle(document.getElementById(r.playerId),null).getPropertyValue("height"),s=o(t).call(t,0,-2);e.style.height="".concat(s,"px")}))}}]),n}();exports.default=p;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),r=require("@babel/runtime-corejs3/helpers/classCallCheck"),t=require("@babel/runtime-corejs3/helpers/createClass"),n=require("@babel/runtime-corejs3/helpers/inherits"),i=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),o=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),s=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),l=require("@babel/runtime-corejs3/core-js-stable/instance/concat"),a=require("video.js"),c=require("./icons-9e9e6364.js"),u=require("./generic-90e67a4c.js"),d=require("./skin-b28fa2ec.js");function p(r){var t=b();return function(){var n,s=o(r);if(t){var l=o(this).constructor;n=e(s,arguments,l)}else n=s.apply(this,arguments);return i(this,n)}}function b(){try{var r=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(r){}return(b=function(){return!!r})()}require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),require("@babel/runtime-corejs3/regenerator"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),require("@babel/runtime-corejs3/core-js-stable/object/define-property"),require("axios"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("@babel/runtime-corejs3/core-js-stable/instance/slice"),require("./browser-aa8ef172.js"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("./captions-d160e397.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval"),require("@babel/runtime-corejs3/helpers/toConsumableArray");var m=a.getComponent("Component"),v=function(e){n(o,m);var i=p(o);function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,o),(t=i.call(this,e,n)).playerId=n.playerId,t.seriesData=n.sres,t.currentVideoData=n.res,t.initialiseStructure(),t.loadCSS(),t}return t(o,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"play-next"}),r=a.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(c.PlayNextEpisodeSvg(window.controlsColor?window.controlsColor:"white"))});return a.dom.appendContent(e,r),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./nextEpisodeButton-b6e6586f.js")})).then((function(e){var r=document.createElement("style");r.id="multicam",r.append("".concat(e.default)),document.head.appendChild(r)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),r=a.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),t=a.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),n=a.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=a.dom.createEl("div",{className:"next-eps-image"}),o=a.dom.createEl("div",{className:"next-eps-description"});a.dom.appendContent(n,i),a.dom.appendContent(n,o),a.dom.appendContent(r,t),a.dom.appendContent(r,n),this.toggleContentOnHover(e,r),a.dom.appendContent(e,r)}},{key:"toggleContentOnHover",value:function(e,r){e.addEventListener("mouseover",(function(){a.dom.removeClass(r,"nextepisode-hidden")})),r.addEventListener("mouseover",(function(){a.dom.removeClass(r,"nextepisode-hidden")})),e.addEventListener("mouseout",(function(){a.dom.addClass(r,"nextepisode-hidden")})),r.addEventListener("mouseout",(function(){a.dom.addClass(r,"nextepisode-hidden")}))}}]),o}(),j=function(e,r){for(var t=-1,n=0;n<e.length;n++)for(var i=0;i<e[n].episodes.length;i++)if(e[n].episodes[i].id===r){t=n;break}return t},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;if(!(e&&r>=0))return{prevEp:null,nextEp:null};var t=e.episodes.length,n=r-1>=0?r-1:t-1,i=(r+1)%t,o=t>1?e.episodes[n]:null,s=t>1?e.episodes[i]:null;return n===i&&(0===n?s=null:o=null),{prevEp:o,nextEp:s,prevEpIdx:n,nextEpIdx:i}},h=function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=null;return r?(s(e=r.episodes).call(e,(function(e,r){e.gist.id===t&&(n=r)})),n):null},q=function(e){var r,t,n;a.dom.$(".next-eps"),a.dom.$(".play-next").onclick=function(){var r;u.load("my-player",null==e||null===(r=e.gist)||void 0===r?void 0:r.id).then((function(e){u.setCurrentVideo(e.response)}))};var i=a.dom.$(".next-eps-image"),o=d.parseHtmlString("<img src=".concat(null==e||null===(r=e.gist)||void 0===r?void 0:r.videoImageUrl," />")),s=null==o?void 0:o.firstChild;null==i||i.append(s);for(var c=a.dom.$(".next-eps-description"),p=d.parseHtmlString(l(t="<div class='next-eps-title'>".concat(null==e?void 0:e.title,"</div>\n <div class='next-eps-description-details'>")).call(t,null==e||null===(n=e.gist)||void 0===n?void 0:n.description,"</div>"));null!=p&&p.firstChild;)null==c||c.appendChild(p.firstChild)};exports.default=v,exports.initaliseFunctionality=function(e,r){var t=j(e,r.video.gist.id),n=h(e[t],r.video.gist.id),i=f(e[t],n);q(i.nextEp)};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),t=require("@babel/runtime-corejs3/helpers/toConsumableArray"),r=require("@babel/runtime-corejs3/helpers/classCallCheck"),s=require("@babel/runtime-corejs3/helpers/createClass"),n=require("@babel/runtime-corejs3/helpers/inherits"),i=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),o=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),l=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),a=require("video.js"),c=require("./icons-9e9e6364.js"),d=require("./generic-90e67a4c.js"),u=require("./autoNextVideo-17e9c827.js"),p=require("./skin-b28fa2ec.js");function b(t){var r=m();return function(){var s,n=o(t);if(r){var l=o(this).constructor;s=e(n,arguments,l)}else s=n.apply(this,arguments);return i(this,s)}}function m(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),require("@babel/runtime-corejs3/regenerator"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),require("@babel/runtime-corejs3/core-js-stable/object/define-property"),require("axios"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("./browser-aa8ef172.js"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("./captions-d160e397.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval"),require("./util-1f5115f2.js");var v=a.getComponent("Component"),j=function(e){n(o,v);var i=b(o);function o(e){var t,s,n,l,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,o),(l=i.call(this,e,a)).playerId=a.playerId,l.seriesData=a.sres,l.videos=null==a||null===(t=a.playlist)||void 0===t?void 0:t.content,l.cb=(null==a||null===(s=a.playlist)||void 0===s?void 0:s.cb)||null,l.autoNext=(null==a||null===(n=a.playlist)||void 0===n?void 0:n.autoNext)||!1,l.currentVideoData=a.res,l.initialiseStructure(),l.loadCSS(),l.autoNext&&u.autoPlayNext({playerId:l.playerId,content:l.videos,cb:l.cb}),l}return s(o,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(c.EpisodesSvg())});return a.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=a.dom.createEl("div",{className:"selection-container hidden"});a.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var r;null!==(r=t.classList)&&void 0!==r&&r.contains("hidden")?(p.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 s=window.getComputedStyle(r,null).getPropertyValue("height"),n=l(s).call(s,0,-2);t.style.height="".concat(n,"px"),a.dom.appendContent(e,t),r.style.overflow="hidden",this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var r=this,s=this.el(),n=a.dom.createEl("div",{className:"playlist-selector-head"}),i=a.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(c.crossIconSvg())});i.onclick=function(){e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px"};for(var o=a.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),u=a.dom.createEl("div",{className:"playlist-selector-content"}),b=function(e){var s,n,i=a.dom.createEl("div",{className:"playlist-container"}),o=a.dom.createEl("div",{className:"playlist-section",index:e}),l=a.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(s=r.videos[e])||void 0===s?void 0:s.title)||"")}),c=a.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(r.videos[e].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});a.dom.appendContent(o,l),a.dom.appendContent(o,c),a.dom.appendContent(i,o),a.dom.appendContent(u,i);var p=a.dom.createEl("div",{className:"playlist-section-expanded hidden"}),b=a.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(n=r.videos[e])||void 0===n?void 0:n.description)||"")}),m=a.dom.createEl("div",{className:"playlist-image"});m.style.backgroundImage="url(".concat(r.videos[e].img,")"),a.dom.appendContent(p,m),a.dom.appendContent(p,b),a.dom.appendContent(i,p),a.dom.appendContent(u,i),p.onclick=function(t){t.stopPropagation(),d.setVideoIdx(e+1),d.load(r.playerId,r.videos[e].id).then((function(e){null!=r&&r.cb&&r.cb(e)})).catch((function(e){null!=r&&r.cb&&r.cb(e)}))},o.onclick=function(e){var r,s,n,o=document.getElementsByClassName("playlist-selector-content")[0].childNodes,l=(o=t(o))[e.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=l&&null!==(r=l.classList)&&void 0!==r&&r.contains("hidden")?(i.style.backgroundColor="#0000007d",null==l||null===(s=l.classList)||void 0===s||s.remove("hidden")):(null==l||null===(n=l.classList)||void 0===n||n.add("hidden"),i.style.backgroundColor="unset")}},m=0;m<this.videos.length;m++)b(m);a.dom.appendContent(n,i),a.dom.appendContent(n,o),a.dom.appendContent(e,n),a.dom.appendContent(e,u),p.getPlayer(this.playerId).on("fullscreenchange",(function(){var t=document.getElementById(r.playerId);if(t){var s=window.getComputedStyle(t,null).getPropertyValue("height"),n=l(s).call(s,0,-2);e.style.height="".concat(n,"px")}}))}}]),o}();exports.default=j;
@@ -1 +0,0 @@
1
- "use strict";var l=require("@babel/runtime-corejs3/core-js-stable/instance/sort"),i=require("./skin-b28fa2ec.js");exports.getRenditions=function(e){var n,t=i.getPlayer(e),o=[];if((null==t||null===(n=t.tech_)||void 0===n?void 0:n.vhs)||!1){var u,d,r=null==t||null===(u=t.tech_)||void 0===u||null===(d=u.vhs)||void 0===d?void 0:d.representations();(null==r?void 0:r.length)>0&&(o=null==r?void 0:l(r).call(r,(function(l,i){return(null==l?void 0:l.height)==(null==i?void 0:i.height)?(null==i?void 0:i.bandwidth)-(null==l?void 0:l.bandwidth):(null==i?void 0:i.height)-(null==l?void 0:l.height)})))}else{var v,h,s=null==t||null===(v=t.dash)||void 0===v||null===(h=v.mediaPlayer)||void 0===h?void 0:h.getBitrateInfoListFor("video");(null==s?void 0:s.length)>0&&(o=null==s?void 0:l(s).call(s,(function(l,i){return i.height-l.height})))}return o};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),t=require("@babel/runtime-corejs3/helpers/toConsumableArray"),n=require("@babel/runtime-corejs3/helpers/classCallCheck"),i=require("@babel/runtime-corejs3/helpers/createClass"),a=require("@babel/runtime-corejs3/helpers/assertThisInitialized"),o=require("@babel/runtime-corejs3/helpers/inherits"),l=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),r=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),d=require("@babel/runtime-corejs3/helpers/defineProperty"),s=require("@babel/runtime-corejs3/core-js-stable/instance/map"),c=require("@babel/runtime-corejs3/core-js-stable/instance/concat"),u=require("@babel/runtime-corejs3/core-js-stable/parse-int"),h=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),v=require("@babel/runtime-corejs3/core-js-stable/set-timeout"),m=require("video.js"),p=require("./skin-b28fa2ec.js"),g=require("./browser-aa8ef172.js");function b(t){var n=f();return function(){var i,a=r(t);if(n){var o=r(this).constructor;i=e(a,arguments,o)}else i=a.apply(this,arguments);return l(this,i)}}function f(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of");var w=m.getComponent("Component"),y=function(e){o(r,w);var l=b(r);function r(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),i=l.call(this,e,o),d(a(i),"masterRenditions",[]),d(a(i),"addCustomFont",(function(e){var t,n=m.dom.createEl("div",{className:"font hideCustomFonts"}),a=m.dom.createEl("p",{className:"customFontHeading",innerHTML:"Font Size"});m.dom.appendContent(n,a);var o=m.dom.createEl("div",{className:"font-options"});o.style.fontSize="12px",s(t=i.fontSizeOptions).call(t,(function(e,t){var n,a,l,r=m.dom.createEl("div",{className:"options",innerHTML:c(n=c(a=c(l='<div class="radio-item" >\n <input class=opt'.concat(t,' type="radio" id=')).call(l,e,' name="item" />\n <label class="radio-btn-lable" for=')).call(a,e,">")).call(n,e,"pt</label>\n </div>")});r.addEventListener("click",(function(e){var t=e.target.id;i.changeFontSize(t)})),m.dom.appendContent(o,r)})),m.dom.appendContent(n,o),m.dom.appendContent(e,n)})),d(a(i),"resetRenditions",(function(){var e;s(e=t(document.getElementsByClassName("rendition"))).call(e,(function(e){m.dom.removeClass(e,"selected")}))})),i.playerId=null==o?void 0:o.playerId,i.skin=null==o?void 0:o.skin,i.icon=null==o?void 0:o.icon,i.masterRenditions=[],i.fontSizeOptions=[10,12,14],i.createRenditions(o.renditions),window.height=null,i}return i(r,[{key:"toggleContentOnHover",value:function(e,t){var n=m.dom.$(".setting-icon",e);n.addEventListener("mouseover",(function(){m.dom.removeClass(t,"resolution_hidden")})),t.addEventListener("mouseover",(function(){m.dom.removeClass(t,"resolution_hidden")})),n.addEventListener("mouseout",(function(){m.dom.addClass(t,"resolution_hidden")})),t.addEventListener("mouseout",(function(){m.dom.addClass(t,"resolution_hidden")}))}},{key:"changeFontSize",value:function(e){var t=m.dom.$(".renditions",this.contentEl()),n=m.dom.$(".font-options",this.contentEl());t.style.fontSize="".concat(e,"px"),n.style.fontSize="".concat(e,"px")}},{key:"createRenditions",value:function(e){var t=this,n=this.el(),i=m.dom.$(".setting-icon",this.el()),a=p.parseSvgString(this.icon);if(i.append(a),"live"===this.skin){var o=document.createTextNode(" Settings");i.appendChild(o)}var l=m.dom.createEl("div",{className:"content resolution_hidden"}),r=m.dom.createEl("div",{innerHTML:"Quality",className:"title"}),d=m.dom.createEl("div",{className:"resolution"});m.dom.appendContent(d,r),this.toggleContentOnHover(n,l);var h=m.dom.createEl("div",{className:"renditions"});this.player_.tech_.vhs?(s(e).call(e,(function(e,n){var i,a,o,l,r,d=m.dom.createEl("div",{className:"relative"}),s=(((null==e||null===(i=e.playlist)||void 0===i?void 0:i.attributes["AVERAGE-BANDWIDTH"])||(null==e||null===(a=e.playlist)||void 0===a?void 0:a.attributes.BANDWIDTH))/1048576).toFixed(1),v=c(o="".concat(e.height,"p ")).call(o,e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");v=c(l=c(r="".concat(e.height,"p @ ")).call(r,s,"mbps ")).call(l,e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");var p=m.dom.createEl("p",{innerHTML:v,className:"rendition",res:e.height,bandwidth:e.bandwidth});m.dom.appendContent(d,p),m.dom.appendContent(h,d),p.addEventListener("click",(function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.bandwidth=u(e.target.bandwidth),window.selectedVideo=e.target.video,C(t.playerId,e.target),m.dom.addClass(p,"selected"))}))})),this.addAutoRendition("nondrm",h),"Safari"!=g.detectBrowser()&&this.addDynamicSwitchIfAuto()):(s(e).call(e,(function(e,n){var i,a,o,l=m.dom.createEl("div",{className:"relative"}),r=(e.bitrate/1e6).toFixed(1),d=c(i="".concat(e.height,"p ")).call(i,e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");window.enableResolutionsBitrate&&(d=c(a=c(o="".concat(e.height,"p @ ")).call(o,r,"mbps ")).call(a,e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":""));var s=m.dom.createEl("p",{innerHTML:d,className:"rendition",res:e.height,qualityIndex:e.qualityIndex});m.dom.appendContent(l,s),m.dom.appendContent(h,l),s.addEventListener("click",(function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.selectedVideo=e.target.video,window.qualityIndex=e.target.qualityIndex,C(t.playerId,e.target),m.dom.addClass(s,"selected"))}))})),this.addAutoRendition("drm",h)),m.dom.appendContent(d,h),m.dom.appendContent(l,d),m.dom.appendContent(n,l)}},{key:"addDynamicSwitchIfAuto",value:function(){for(var e,t=this.player_.textTracks(),n=0;n<t.length;n++)"segment-metadata"===t[n].label&&(e=t[n]);var i=null;e&&e.on("cuechange",(function(){var t,n,a=e.activeCues[0];if(console.log((null==a||null===(t=a.value)||void 0===t||null===(n=t.resolution)||void 0===n?void 0:n.height)+"p"),a&&document.querySelector(".auto.selected")){var o,l,r,d,s,c,u,h;if(null!=a&&null!==(o=a.value)&&void 0!==o&&null!==(l=o.resolution)&&void 0!==l&&l.height&&i!==(null==a||null===(r=a.value)||void 0===r||null===(d=r.resolution)||void 0===d?void 0:d.height))document.querySelector(".auto.selected").textContent="Auto ".concat(null==a||null===(u=a.value)||void 0===u||null===(h=u.resolution)||void 0===h?void 0:h.height,"p");i=null==a||null===(s=a.value)||void 0===s||null===(c=s.resolution)||void 0===c?void 0:c.height}}))}},{key:"createEl",value:function(){var e=m.dom.createEl("div",{className:"container"}),t=m.dom.createEl("div",{className:"setting-icon"});return m.dom.appendContent(e,t),e}},{key:"addAutoRendition",value:function(e,t){var n=this;if("nondrm"==e){var i,a,o,l,r=null===(i=this.player_)||void 0===i||null===(a=i.tech_)||void 0===a?void 0:a.vhs.selectPlaylist().attributes.RESOLUTION.height,d=null===(o=this.player_)||void 0===o||null===(l=o.tech_)||void 0===l?void 0:l.vhs.selectPlaylist().attributes.BANDWIDTH,s=m.dom.createEl("div",{className:"relative"}),c=m.dom.createEl("p",{innerHTML:"Auto ".concat(r,"p"),className:"rendition auto selected",bandwidth:d,res:r});c.addEventListener("click",(function(e){window.height!==e.target.res&&(n.resetRenditions(),m.dom.addClass(c,"selected"),window.height=e.target.res,window.bandwidth=u(e.target.bandwidth),window.selectedVideo=e.target.video,C(n.playerId,null,!0))})),m.dom.appendContent(s,c),m.dom.appendContent(t,s)}else{var h=m.dom.createEl("div",{className:"relative"}),v=m.dom.createEl("p",{innerHTML:"Auto",className:"rendition selected",qualityIndex:"auto"});v.addEventListener("click",(function(e){n.resetRenditions(),m.dom.addClass(v,"selected"),window.qualityIndex=e.target.qualityIndex,window.selectedVideo=e.target.video,C(n.playerId,null,!0)})),m.dom.appendContent(h,v),m.dom.appendContent(t,h)}}}]),r}(),C=function(e,t,n){var i,a=p.getPlayer(e),o=null==t?void 0:t.bandwidth;if((null==a||null===(i=a.tech_)||void 0===i?void 0:i.vhs)||!1){var l;h(l=a.tech_.vhs.representations()).call(l,(function(e){n||e.bandwidth===o?e.enabled(!0):e.enabled(!1)})),a.handleTechPlaying_();var r=a.currentTime();a.currentTime(0),v((function(){a.currentTime(r)}),100);var d=m.dom.$(".content");d&&m.dom.addClass(d,"resolution_hidden")}else{var s=null==t?void 0:t.qualityIndex;if(n){var c,u;null==a||null===(c=a.dash)||void 0===c||null===(u=c.mediaPlayer)||void 0===u||u.resetSettings()}else{var g,b,f,w;null==a||null===(g=a.dash)||void 0===g||null===(b=g.mediaPlayer)||void 0===b||b.updateSettings({streaming:{abr:{autoSwitchBitrate:!1}}}),null==a||null===(f=a.dash)||void 0===f||null===(w=f.mediaPlayer)||void 0===w||w.setQualityFor("video",s,!0);var y=a.currentTime();a.currentTime(0),v((function(){a.currentTime(y)}),100);var C=m.dom.$(".content");C&&m.dom.addClass(C,"resolution_hidden")}}};exports.default=y,exports.playSelectedResolution=C;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),r=require("@babel/runtime-corejs3/helpers/asyncToGenerator"),i=require("@babel/runtime-corejs3/helpers/classCallCheck"),s=require("@babel/runtime-corejs3/helpers/createClass"),t=require("@babel/runtime-corejs3/helpers/assertThisInitialized"),n=require("@babel/runtime-corejs3/helpers/inherits"),a=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),o=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),c=require("@babel/runtime-corejs3/helpers/defineProperty"),l=require("@babel/runtime-corejs3/regenerator"),d=require("@babel/runtime-corejs3/core-js-stable/instance/map"),u=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),p=require("@babel/runtime-corejs3/core-js-stable/instance/concat"),b=require("video.js"),v=require("./generic-90e67a4c.js"),m=require("./icons-9e9e6364.js"),j=require("./skin-b28fa2ec.js");require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),require("@babel/runtime-corejs3/core-js-stable/object/define-property"),require("axios"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("@babel/runtime-corejs3/core-js-stable/instance/slice"),require("./browser-aa8ef172.js"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("./captions-d160e397.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval"),require("@babel/runtime-corejs3/helpers/toConsumableArray");var h=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function f(r){var i=g();return function(){var s,t=o(r);if(i){var n=o(this).constructor;s=e(t,arguments,n)}else s=t.apply(this,arguments);return a(this,s)}}function g(){try{var r=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(r){}return(g=function(){return!!r})()}var q,y=b.getComponent("Component"),C=function(e){n(a,y);var r=f(a);function a(e){var s,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,a),s=r.call(this,e,n),c(t(s),"seriesData",[]),s.seriesData=n.seriesData,q=n.playerId;var o=s.el();return L(o,s.seriesData),s.loadCSS(),s}return s(a,[{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 r=document.createElement("style");r.id="series",r.append("".concat(e.default)),document.head.appendChild(r)}))}}]),a}();function w(){return(w=r(l.mark((function e(r,i,s,t){return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v.pause(q),h(q),v.load(q,i).then((function(e){v.setCurrentVideo(e.response),v.play(q)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function L(e,r){for(var i,s=p(i='<div class="hover-div"></div>\n '.concat(m.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 ')).call(i,function(e){return d(e).call(e,(function(e,r){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("")}(r),'\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 t=j.parseHtmlString(s);null!=t&&t.firstChild;)e.appendChild(t.firstChild)}exports.customSeasonList=L,exports.handleSeasonChange=function(e,r,i,s){var t,n=document.getElementById("season-list"),a=document.getElementById("episode-list"),o=document.getElementById("episode-container");e.id;for(var c=d(t=e.episodes).call(t,(function(e,r){var i,s,t,n;return p(i=p(s=p(t=p(n='\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(r+1," ")).call(n,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=')).call(t,e.gist.videoImageUrl,' alt="')).call(s,e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">')).call(i,e.gist.description,"</div>\n </div>\n </div>\n </div>")})).join("");null!=o&&o.firstChild;)o.removeChild(o.firstChild);for(var l=j.parseHtmlString(c);null!=l&&l.firstChild;)o.appendChild(l.firstChild);!function(e){v.getSeriesWatchHistory(e).then((function(e){var r=e.data,i=document.querySelectorAll("#progress-div");i&&d(r).call(r,(function(e,r){e&&e.watchedPercentage&&i[r]&&(i[r].style.width=e.watchedPercentage+"px")}))})).catch((function(e){}))}(s),n.classList.toggle("hide-container"),a.classList.toggle("hide-container");var b=document.querySelectorAll(".details-wrapper"),m=document.querySelectorAll("#episode-title"),h=document.querySelectorAll(".meta-details"),f=document.querySelector("#episodes-back-btn"),g=e.id,q=e.episodes;f.addEventListener("click",(function(){return function(e,r){e.classList.remove("hide-container"),r.classList.add("hide-container")}(n,a)}));for(var y=function(r){b[r].addEventListener("click",(function(){return function(e,r,i){var s=r.querySelector(".meta-details");r.classList.toggle("episode-active"),s.classList.toggle("metadetails-active"),u(i).call(i,(function(r,s){s!==e&&(i[s].classList.remove("episode-active"),i[s].querySelector(".meta-details").classList.remove("metadetails-active"))}))}(r,m[r],m)})),h[r].addEventListener("click",(function(){return function(e,r,i,s){return w.apply(this,arguments)}(r,q[r].id,i,m)})),e.episodes[r].id==g&&m[r].classList.add("highlight-active-eps")},C=0;C<b.length;C++)y(C)},exports.seriesModule=C;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),r=require("@babel/runtime-corejs3/helpers/toConsumableArray"),s=require("@babel/runtime-corejs3/helpers/classCallCheck"),t=require("@babel/runtime-corejs3/helpers/createClass"),i=require("@babel/runtime-corejs3/helpers/assertThisInitialized"),n=require("@babel/runtime-corejs3/helpers/inherits"),o=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),l=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),a=require("@babel/runtime-corejs3/core-js-stable/instance/map"),c=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),d=require("video.js"),u=require("./icons-9e9e6364.js"),v=require("./generic-90e67a4c.js"),m=require("./skin-b28fa2ec.js"),p=require("./autoNextVideo-17e9c827.js");function b(r){var s=h();return function(){var t,i=l(r);if(s){var n=l(this).constructor;t=e(i,arguments,n)}else t=i.apply(this,arguments);return o(this,t)}}function h(){try{var r=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(r){}return(h=function(){return!!r})()}require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),require("@babel/runtime-corejs3/regenerator"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),require("@babel/runtime-corejs3/core-js-stable/object/define-property"),require("axios"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("./browser-aa8ef172.js"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("./captions-d160e397.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval"),require("./util-1f5115f2.js");var j=d.getComponent("Component"),f=function(e){n(l,j);var o=b(l);function l(e){var t,n,c,d,u,m,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s(this,l),(m=o.call(this,e,b)).playerId=b.playerId,m.seriesData=b.sres,m.videos=null==b||null===(t=b.sres)||void 0===t?void 0:t.seasons,m.currentVideoData=b.res,m.initialiseStructure(),m.loadCSS(),m.selectedSeason=0,m.cb=null==b||null===(n=b.series)||void 0===n?void 0:n.cb,m.autoPlayNext=(null==b||null===(c=b.series)||void 0===c?void 0:c.autoPlayNext)||!1,sessionStorage.getItem("token"),m.watchMap=v.getSeriesWatchMap(),null!==(d=i(m))&&void 0!==d&&d.autoPlayNext&&null!=b&&null!==(u=b.series)&&void 0!==u&&u.enable){var h,j,f,g,y=null==b||null===(h=b.sres)||void 0===h?void 0:h.seasons,C=[];a(y).call(y,(function(e){C.push.apply(C,r(e.episodes))})),v.createIdxMapping(C),v.setVideoIdxById(null===(j=m.options_)||void 0===j||null===(f=j.res)||void 0===f||null===(g=f.video)||void 0===g?void 0:g.id),p.autoPlayNext({playerId:m.playerId,content:C,cb:m.cb,series:null==b?void 0:b.sres})}return m}return t(l,[{key:"createEl",value:function(){var e=d.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var r=d.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(u.PlaylistIcon())});return d.dom.appendContent(e,r),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./series-v2-68886cd2.js")})).then((function(e){var r=document.createElement("style");r.id="series-v2",r.append("".concat(e.default)),document.head.appendChild(r)}))}},{key:"toggleOpenClose",value:function(e){var r,s=this.el();null!=e&&null!==(r=e.classList)&&void 0!==r&&r.contains("hidden")?(m.closeOpenDrawers(),e.classList.remove("hidden"),s.classList.add("open"),m.setUpdatedElHeight(this.playerId,e)):(e.classList.add("hidden"),s.classList.remove("open"))}},{key:"initialiseStructure",value:function(){var e=this,r=this.el(),s=d.dom.createEl("div",{className:"series-selection-container hidden"});d.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(s)};var t=document.getElementById(this.playerId);if(t){var i=window.getComputedStyle(t,null).getPropertyValue("height"),n=c(i).call(i,0,-2);s.style.height="".concat(n,"px"),d.dom.appendContent(r,s),t.style.overflow="hidden",this.addFunctionality(s)}}},{key:"addFunctionality",value:function(e){var r=this,s=this.el(),t=d.dom.createEl("div",{className:"series-selector-head"}),i=d.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(u.crossIconSvg())});i.onclick=function(){if("series-selector-cross-icon"===i.className)e.classList.add("hidden"),s.classList.remove("open");else if("series-selector-back-icon"===i.className){var t=d.dom.$(".series-selector-content",r.el());for(d.dom.$(".series-selector-cross-icon",r.el()),i.className="series-selector-cross-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var n=r.createSeasonLister();for(d.dom.appendContent(t,n),d.dom.$(".series-selector-title",r.el()).textContent="Seasons";null!=i&&i.firstChild;)i.removeChild(i.firstChild);var o=m.parseSvgString(u.crossIconSvg());i.appendChild(o)}};var n=d.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),o=d.dom.createEl("div",{className:"series-selector-content"}),l=this.createSeasonLister();d.dom.appendContent(o,l),d.dom.appendContent(t,i),d.dom.appendContent(t,n),d.dom.appendContent(e,t),d.dom.appendContent(e,o),m.handleDrawerResizing(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;m.getPlayer(this.playerId);for(var r=v.getCurrentSeries(),s=d.dom.createEl("div",{className:"season-container"}),t=function(t){var i,n=document.createElement("label");n.className="season-holder",n.setAttribute("for","season-".concat(t));var o=document.createElement("div");o.className="season - ".concat(t),o.textContent=null===(i=r[t])||void 0===i?void 0:i.title;var l=d.dom.createEl("input",{className:"radio - ".concat(t),id:"season-".concat(t),name:"season-radio"});l.setAttribute("type","radio"),e.selectedSeason==t&&(l.checked=!0),l.onclick=function(r){v.seasonIdxManager.set(t),e.showSeasonDetails(t)},d.dom.appendContent(n,l),d.dom.appendContent(n,o),d.dom.appendContent(s,n)},i=0;i<r.length;i++)t(i);return s}},{key:"getSeasonDetailsContainer",value:function(e,s){var t=this;e=a(e).call(e,(function(e){var r,s,i,n,o,l,a,c,d;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(r=e.gist)||void 0===r?void 0:r.description,img:(null==e||null===(s=e.gist)||void 0===s||null===(i=s.imageGist)||void 0===i?void 0:i.r16x9)||(null===(n=window)||void 0===n||null===(o=n.app_data)||void 0===o||null===(l=o.appcmsMain)||void 0===l||null===(a=l.images)||void 0===a?void 0:a.placeholderCover),watchedPercentage:(null==t||null===(c=t.watchMap)||void 0===c||null===(d=c.get(null==e?void 0:e.id))||void 0===d?void 0:d.p)||0}}));for(var i=function(i){var n,o,l,a,c,u=d.dom.createEl("div",{className:"series-container"}),p=d.dom.createEl("div",{className:"series-section-data",index:i,innerHTML:"".concat((null===(n=e[i])||void 0===n?void 0:n.title)||"")});d.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(o=e[i])||void 0===o?void 0:o.title)||"")}),d.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(e[i].watchedPercentage,"%' class='series-progress-bar-value'></div>")});var b=d.dom.createEl("div",{className:"series-section-image"}),h=(null===(l=e[i])||void 0===l?void 0:l.description)||"";(null===(a=h)||void 0===a?void 0:a.length)>170&&(h=h.substr(0,170)+"..."),d.dom.createEl("div",{className:"series-description",innerHTML:"".concat(h||"")});var j=d.dom.createEl("img",{className:"series-image"});j.src="".concat(m.impolicy16x9(null===(c=e[i])||void 0===c?void 0:c.img)),j.alt="Episode ".concat(i+1),d.dom.appendContent(b,j),d.dom.appendContent(u,b),d.dom.appendContent(u,p),d.dom.appendContent(s,u),u.onclick=function(r){var s;r.stopPropagation(),v.setVideoIdxById(null===(s=e[i])||void 0===s?void 0:s.id),v.load(t.playerId,e[i].id).then((function(e){null!=t&&t.cb&&t.cb(e)})).catch((function(e){null!=t&&t.cb&&t.cb(e)}))},p.onclick=function(e){var s,t,i,n=document.getElementsByClassName("series-selector-content")[0].childNodes,o=(n=r(n))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=o&&null!==(s=o.classList)&&void 0!==s&&s.contains("hidden")?(u.style.backgroundColor="#0000007d",null==o||null===(t=o.classList)||void 0===t||t.remove("hidden")):(null==o||null===(i=o.classList)||void 0===i||i.add("hidden"),u.style.backgroundColor="unset")}},n=0;n<e.length;n++)i(n);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var r=d.dom.$(".series-selector-content",this.el());null!=r&&r.firstChild;)r.removeChild(r.firstChild);var s=v.getCurrentSeries()[e].episodes;this.getSeasonDetailsContainer(s,r);var t=d.dom.$(".series-selector-cross-icon",this.el());for(t.className="series-selector-back-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var i=m.parseSvgString(u.BackIcon());t.appendChild(i),d.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),l}();exports.default=f;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),t=require("@babel/runtime-corejs3/helpers/toConsumableArray"),r=require("@babel/runtime-corejs3/helpers/classCallCheck"),s=require("@babel/runtime-corejs3/helpers/createClass"),n=require("@babel/runtime-corejs3/helpers/assertThisInitialized"),i=require("@babel/runtime-corejs3/helpers/inherits"),o=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),l=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),a=require("@babel/runtime-corejs3/core-js-stable/instance/map"),c=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),d=require("video.js"),u=require("./icons-9e9e6364.js"),m=require("./generic-90e67a4c.js"),v=require("./skin-b28fa2ec.js"),p=require("./autoNextVideo-17e9c827.js");function b(t){var r=h();return function(){var s,n=l(t);if(r){var i=l(this).constructor;s=e(n,arguments,i)}else s=n.apply(this,arguments);return o(this,s)}}function h(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),require("@babel/runtime-corejs3/regenerator"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),require("@babel/runtime-corejs3/core-js-stable/object/define-property"),require("axios"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("./browser-aa8ef172.js"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("./captions-d160e397.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval"),require("./util-1f5115f2.js");var j=d.getComponent("Component"),f=function(e){i(l,j);var o=b(l);function l(e){var s,i,c,d,u,v,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r(this,l),(v=o.call(this,e,b)).playerId=b.playerId,v.seriesData=b.sres,v.videos=null==b||null===(s=b.sres)||void 0===s?void 0:s.seasons,v.currentVideoData=b.res,v.initialiseStructure(),v.loadCSS(),v.selectedSeason=0,v.cb=null==b||null===(i=b.series)||void 0===i?void 0:i.cb,v.autoPlayNext=(null==b||null===(c=b.series)||void 0===c?void 0:c.autoPlayNext)||!1,sessionStorage.getItem("token"),v.watchMap=m.getSeriesWatchMap(),null!==(d=n(v))&&void 0!==d&&d.autoPlayNext&&null!=b&&null!==(u=b.series)&&void 0!==u&&u.enable){var h,j,f,g,y=null==b||null===(h=b.sres)||void 0===h?void 0:h.seasons,C=[];a(y).call(y,(function(e){C.push.apply(C,t(e.episodes))})),m.createIdxMapping(C),m.setVideoIdxById(null===(j=v.options_)||void 0===j||null===(f=j.res)||void 0===f||null===(g=f.video)||void 0===g?void 0:g.id),p.autoPlayNext({playerId:v.playerId,content:C,cb:v.cb,series:null==b?void 0:b.sres})}return v}return s(l,[{key:"createEl",value:function(){var e=d.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=d.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(u.EpisodesSvg())});return d.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./series-v2-e037e14e.js")})).then((function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleOpenClose",value:function(e){var t,r=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(v.closeOpenDrawers(),e.classList.remove("hidden"),r.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),r=d.dom.createEl("div",{className:"series-selection-container hidden"});d.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(r)};var s=document.getElementById(this.playerId);if(s){var n=window.getComputedStyle(s,null).getPropertyValue("height"),i=c(n).call(n,0,-2);r.style.height="".concat(i,"px"),d.dom.appendContent(t,r),s.style.overflow="hidden",this.addFunctionality(r)}}},{key:"addFunctionality",value:function(e){var t=this,r=this.el(),s=d.dom.createEl("div",{className:"series-selector-head"}),n=d.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(u.crossIconSvg())});n.onclick=function(){if("series-selector-cross-icon"===n.className)e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===n.className){var s=d.dom.$(".series-selector-content",t.el());for(d.dom.$(".series-selector-cross-icon",t.el()),n.className="series-selector-cross-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var i=t.createSeasonLister();for(d.dom.appendContent(s,i),d.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var o=v.parseSvgString(u.crossIconSvg());n.appendChild(o)}};var i=d.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),o=d.dom.createEl("div",{className:"series-selector-content"}),l=this.createSeasonLister();d.dom.appendContent(o,l),d.dom.appendContent(s,n),d.dom.appendContent(s,i),d.dom.appendContent(e,s),d.dom.appendContent(e,o),v.getPlayer(this.playerId).on("fullscreenchange",(function(){var r=document.getElementById(t.playerId);if(r){var s=window.getComputedStyle(r,null).getPropertyValue("height"),n=c(s).call(s,0,-2);e.style.height="".concat(n,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;v.getPlayer(this.playerId);for(var t=m.getCurrentSeries(),r=d.dom.createEl("div",{className:"season-container"}),s=function(s){var n,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(s));var o=document.createElement("div");o.className="season - ".concat(s),o.textContent=null===(n=t[s])||void 0===n?void 0:n.title;var l=d.dom.createEl("input",{className:"radio - ".concat(s),id:"season-".concat(s),name:"season-radio"});l.setAttribute("type","radio"),e.selectedSeason==s&&(l.checked=!0),l.onclick=function(t){m.seasonIdxManager.set(s),e.showSeasonDetails(s)},d.dom.appendContent(i,l),d.dom.appendContent(i,o),d.dom.appendContent(r,i)},n=0;n<t.length;n++)s(n);return r}},{key:"getSeasonDetailsContainer",value:function(e,r){var s=this;e=a(e).call(e,(function(e){var t,r,n,i,o;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:null==e||null===(r=e.gist)||void 0===r||null===(n=r.imageGist)||void 0===n?void 0:n.r16x9,watchedPercentage:(null==s||null===(i=s.watchMap)||void 0===i||null===(o=i.get(null==e?void 0:e.id))||void 0===o?void 0:o.p)||0}}));for(var n=function(n){var i,o,l,a,c,u,v,p=d.dom.createEl("div",{className:"series-container"}),b=d.dom.createEl("div",{className:"series-section",index:n}),h=d.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(i=e[n])||void 0===i?void 0:i.title)||"")}),j=d.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(e[n].watchedPercentage,"%' class='series-progress-bar-value'></div>")});d.dom.appendContent(b,h),d.dom.appendContent(b,j),d.dom.appendContent(p,b),d.dom.appendContent(r,p);var f=d.dom.createEl("div",{className:"series-section-expanded hidden"}),g=(null===(o=e[n])||void 0===o?void 0:o.description)||"";(null===(l=g)||void 0===l?void 0:l.length)>170&&(g=g.substr(0,170)+"...");var y=d.dom.createEl("div",{className:"series-description",innerHTML:"".concat(g||"")}),C=d.dom.createEl("img",{className:"series-image"});C.src="".concat((null===(a=e[n])||void 0===a?void 0:a.img)||(null===(c=window)||void 0===c||null===(u=c.customData)||void 0===u?void 0:u.fallbackImage)),C.alt="".concat(null===(v=e[n])||void 0===v?void 0:v.title),d.dom.appendContent(f,C),d.dom.appendContent(f,y),d.dom.appendContent(p,f),d.dom.appendContent(r,p),f.onclick=function(t){var r;t.stopPropagation(),m.setVideoIdxById(null===(r=e[n])||void 0===r?void 0:r.id),m.load(s.playerId,e[n].id).then((function(e){null!=s&&s.cb&&s.cb(e)})).catch((function(e){null!=s&&s.cb&&s.cb(e)}))},b.onclick=function(e){var r,s,n,i=document.getElementsByClassName("series-selector-content")[0].childNodes,o=(i=t(i))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=o&&null!==(r=o.classList)&&void 0!==r&&r.contains("hidden")?(p.style.backgroundColor="#0000007d",null==o||null===(s=o.classList)||void 0===s||s.remove("hidden")):(null==o||null===(n=o.classList)||void 0===n||n.add("hidden"),p.style.backgroundColor="unset")}},i=0;i<e.length;i++)n(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=d.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var r=m.getCurrentSeries()[e].episodes;this.getSeasonDetailsContainer(r,t);var s=d.dom.$(".series-selector-cross-icon",this.el());for(s.className="series-selector-back-icon";null!=s&&s.firstChild;)s.removeChild(s.firstChild);var n=v.parseSvgString(u.BackIcon());s.appendChild(n),d.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),l}();exports.default=f;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),t=require("@babel/runtime-corejs3/helpers/toConsumableArray"),a=require("@babel/runtime-corejs3/helpers/classCallCheck"),n=require("@babel/runtime-corejs3/helpers/createClass"),i=require("@babel/runtime-corejs3/helpers/inherits"),r=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),o=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),l=require("@babel/runtime-corejs3/core-js-stable/map"),s=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),c=require("@babel/runtime-corejs3/core-js-stable/instance/map"),d=require("@babel/runtime-corejs3/core-js-stable/instance/sort"),u=require("@babel/runtime-corejs3/core-js-stable/instance/concat"),p=require("video.js"),m=require("./icons-9e9e6364.js"),v=require("./skin-b28fa2ec.js"),h=require("./renditions-6ca861f3.js"),b=require("./resolution-d093453e.js"),g=require("./localisation-56e0a999.js");function y(t){var a=f();return function(){var n,i=o(t);if(a){var l=o(this).constructor;n=e(i,arguments,l)}else n=i.apply(this,arguments);return r(this,n)}}function f(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/helpers/assertThisInitialized"),require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/core-js-stable/parse-int"),require("./browser-aa8ef172.js"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of");var C=p.getComponent("Component"),j=function(e){i(o,C);var r=y(o);function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(this,o),(t=r.call(this,e,n)).playerId=n.playerId,t.seriesData=n.sres,t.currentVideoData=n.res,t.initialiseStructure(),t.loadCSS(),t.resolutionBitrateMap,t}return n(o,[{key:"fillResolutionBitrateMap",value:function(e){var t=this;this.resolutionBitrateMap=new l,s(e).call(e,(function(e){var a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate);if(a){var n=null==t?void 0:t.resolutionBitrateMap.get(null==e?void 0:e.height);t.resolutionBitrateMap.set(null==e?void 0:e.height,Math.min(a,n||1/0))}}))}},{key:"isEnhancedBitrate",value:function(e){var t,a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate),n=null==this||null===(t=this.resolutionBitrateMap)||void 0===t?void 0:t.get(null==e?void 0:e.height);return!(!a||!n)&&a>n}},{key:"createEl",value:function(){var e=p.dom.createEl("div",{className:"settings-selection vjs-control vjs-button"});e.style.position="unset";var t=p.dom.createEl("div",{className:"settings-selector-icon",innerHTML:"".concat(m.SettingsSvgV2())});return p.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./settings-icon-8d364c01.js")})).then((function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),a=p.dom.createEl("div",{className:"selection-container hidden"});p.dom.$(".settings-selector-icon",this.el()).onclick=function(){var n;null!==(n=a.classList)&&void 0!==n&&n.contains("hidden")?(v.closeOpenDrawers(),a.classList.remove("hidden"),t.classList.add("open"),a.style.right="0px",v.setUpdatedElHeight(e.playerId,a)):(a.classList.add("hidden"),t.classList.remove("open"),a.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");a.style.height="".concat(i),p.dom.appendContent(t,a),n.style.overflow="hidden",this.addFunctionality(a),v.detectOrientationChange(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),a=p.dom.createEl("div",{className:"settings-selector-head"}),n=p.dom.createEl("div",{className:"settings-selector-cross-icon",innerHTML:"".concat(m.crossIconSvg())});n.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var i=p.dom.createEl("div",{className:"settings-selector-title",innerHTML:g.getLocalisation("settingsTitle")||"Settings"}),r=p.dom.createEl("div",{className:"settings-selector-content"}),o=p.dom.createEl("div",{className:"settings-container"}),l=this.createVideoQualityContainer();p.dom.appendContent(o,l);var s=this.createAudioQualityContainer();p.dom.appendContent(o,s),p.dom.appendContent(a,n),p.dom.appendContent(a,i),p.dom.appendContent(e,a),p.dom.appendContent(e,r),p.dom.appendContent(r,o),v.handleDrawerResizing(this.playerId,e)}},{key:"createAudioQualityContainer",value:function(){var e=v.getPlayer(this.playerId),t=null==e?void 0:e.audioTracks().tracks_;if(!((null==t?void 0:t.length)<=1)){var a=p.dom.createEl("div",{className:"audio-language-container"}),n=p.dom.createEl("div",{className:"audio-language-container-title",innerHTML:g.getLocalisation("audioLanguageText")||"Audio Language"});p.dom.appendContent(a,n);for(var i=function(e){var n,i=document.createElement("label");i.className="audio-language-holder",i.setAttribute("for","language-radio-".concat(e));var r=document.createElement("div");r.className="audio - ".concat(e),r.textContent=null==t||null===(n=t[e])||void 0===n?void 0:n.label;var o=p.dom.createEl("input",{className:"radio - ".concat(e),id:"language-radio-".concat(e),name:"audio-language-radio"});o.setAttribute("type","radio"),1==t[e].enabled&&(o.checked=!0),o.onchange=function(a){c(t).call(t,(function(e){e.enabled=!1})),t[e].enabled=!0},p.dom.appendContent(i,o),p.dom.appendContent(i,r),p.dom.appendContent(a,i)},r=0;r<t.length;r++)i(r);return a}}},{key:"createVideoQualityContainer",value:function(){var e,a,n=this,i=p.dom.createEl("div",{className:"video-quality-container"}),r=p.dom.createEl("div",{className:"video-quality-container-title",innerHTML:g.getLocalisation("videoQualityText")||"Video Quality"});p.dom.appendContent(i,r);var o=d(e=u(a=[]).call(a,t(h.getRenditions(this.playerId)),[{height:"Auto"}])).call(e,(function(e,t){return(null==t?void 0:t.qualityIndex)-(null==e?void 0:e.qualityIndex)}));this.fillResolutionBitrateMap(o),b.playSelectedResolution(this.playerId,"raw",!0);for(var l=function(e){var t,a,r,l=document.createElement("label"),s=document.createElement("div"),c=document.createElement("div");c.className="video-quality-bitrate-label",s.className="video-quality-holder",l.className="video-quality-label-container",l.setAttribute("for","quality".concat(e));var d=document.createElement("div");d.className="video-quality - ".concat(e);var u=(null==o||null===(t=o[e])||void 0===t?void 0:t.height)+"".concat("Auto"==(null==o||null===(a=o[e])||void 0===a?void 0:a.height)?"":"p"),h=document.createTextNode(u),y="".concat(n.isEnhancedBitrate(o[e])?g.getLocalisation("enhancedBitrateLabel")||"Enhanced Bitrate":""),f=document.createTextNode(y);if(c.appendChild(f),d.appendChild(h),(null==o||null===(r=o[e])||void 0===r?void 0:r.height)>=720)for(var C=v.parseHtmlString("<span class='hd-rendition'> HD </span>");null!=C&&C.firstChild;)d.appendChild(C.firstChild);var j=p.dom.createEl("input",{className:"radio - ".concat(e," radio-btn"),id:"quality".concat(e),name:"quality-radio",rendata:"".concat(o[e]),checked:"".concat(e==o.length-1)});j.setAttribute("type","radio"),j.onchange=function(t){var a=o[e];"true"=="".concat("Auto"==o[e].height)?b.playSelectedResolution(n.playerId,a,!0):b.playSelectedResolution(n.playerId,a)};var q=document.createElement("span");q.className=y?"check-mark center":"check-mark";var E=v.parseSvgString(m.TickMarkIcon());q.appendChild(E),s.appendChild(j),s.appendChild(q),s.appendChild(d),p.dom.appendContent(l,s),l.appendChild(c),p.dom.appendContent(i,l)},s=0;s<o.length;s++)l(s);return i}}]),o}();exports.default=j;
@@ -1 +0,0 @@
1
- "use strict";var e=require("./features-e8ff154f.js"),r=require("./keyboardShortcuts-c2f8ca74.js"),s=require("./icons-9e9e6364.js"),t=require("./skin-b28fa2ec.js"),i=require("./generic-90e67a4c.js");require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),require("@babel/runtime-corejs3/core-js-stable/object/define-property"),require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/classCallCheck"),require("@babel/runtime-corejs3/helpers/createClass"),require("@babel/runtime-corejs3/helpers/inherits"),require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),require("@babel/runtime-corejs3/helpers/getPrototypeOf"),require("video.js"),require("./renditions-6ca861f3.js"),require("@babel/runtime-corejs3/core-js-stable/instance/sort"),require("./localisation-56e0a999.js"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/helpers/toConsumableArray"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),require("@babel/runtime-corejs3/regenerator"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("axios"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("@babel/runtime-corejs3/core-js-stable/instance/slice"),require("./browser-aa8ef172.js"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("./captions-d160e397.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval"),exports.initialiseSkin=function(n,o){t.getPlayer(n).addClass("skin_default"),r.initialiseKeyboardEvents(n,o),Promise.resolve().then((function(){return require("./skin-ba38afdb.js")})).then((function(e){var r=document.createElement("style");r.id="def_skin",r.append("".concat(e.default)),document.head.appendChild(r)})),function(r,t){0==t.liveVideo&&0==t.liveui&&e.addSkipButton(r,"default",s.SkipSvg());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&e.addRewindButton(r,"default",s.RewindSvg())}(n,o),function(r,n){var o=t.getPlayer(r),l=(null==n?void 0:n.sres)||null;o.on("loadeddata",(function(){e.addResolutionModule(r,"default",s.SettingsSvg()),l&&Promise.resolve().then((function(){return require("./nextEpisodeButton-8050e8ab.js")})).then((function(e){e.initaliseFunctionality(n.sres.seasons,i.getCurrentVideo())}))})),o.one("loadedmetadata",(function(){var s;l&&(e.addSeriesModule(r,null==n||null===(s=n.sres)||void 0===s?void 0:s.seasons,n),e.addNextEpisodeButton(n.sres,n.res,r))}))}(n,o),function(e,r){var i,n,o,l,a=t.getPlayer(e),u=document.getElementsByClassName("vjs-current-time")[0],c=document.getElementsByClassName("vjs-duration")[0],b=document.getElementsByClassName("vjs-time-divider")[0];r.liveVideo&&(u&&(u.style.display="none"),c&&(c.style.display="none"),b&&(b.style.display="none"));null===(i=a.controlBar.getChild("FullscreenToggle"))||void 0===i||null===(n=i.el())||void 0===n||n.appendChild(t.createIconMarkup(s.MinimizeSvg(window.controlsColor))),null===(o=a.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(l=o.el())||void 0===l||l.appendChild(t.createIconMarkup(s.MaximizeSvg(window.controlsColor)));var d=a.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(t.createIconMarkup(s.NewCaptionsSvg()));var j=document.createElement("div");j.classList.add("caption-header"),d.querySelector(".vjs-menu-content").insertBefore(j,d.querySelector(".vjs-menu-item"))}(n,o)};