@viewlift/player-backup 2.0.198-backup → 2.0.199-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 (145) hide show
  1. package/cjs/autoNextVideo-6e29e59a.js +1 -0
  2. package/cjs/bundle.css +1573 -3
  3. package/cjs/caption-settings-25cabfc0.js +1 -0
  4. package/cjs/captions-68e263dd.js +1 -0
  5. package/cjs/currentVideoInfo-5802821b.js +1 -0
  6. package/cjs/features-abe26ef4.js +1 -0
  7. package/cjs/generic-97f0a1d3.js +1 -0
  8. package/cjs/helper-dbf2fb22.js +1 -0
  9. package/cjs/icons-2609dbe4.js +1 -0
  10. package/cjs/index-0b5fbaca.js +1 -0
  11. package/cjs/index-6399ed67.js +1 -0
  12. package/cjs/index-7ae433c7.js +1 -0
  13. package/cjs/index-a16fe490.js +1 -0
  14. package/cjs/index.js +1 -1
  15. package/cjs/localisation-56e0a999.js +1 -0
  16. package/cjs/multicamv2-00217a93.js +1 -0
  17. package/cjs/multicamv2-4072a0c2.js +1 -0
  18. package/cjs/nextEpisodeButton-8b363f14.js +1 -0
  19. package/cjs/player_instance-fcf6a8fb.js +1 -0
  20. package/cjs/playlist-a7f104dc.js +1 -0
  21. package/cjs/resolution-9c4872ec.js +1 -0
  22. package/cjs/resolution-v2-830c33a9.js +1 -0
  23. package/cjs/series-a02e9dd9.js +1 -0
  24. package/cjs/series-v2-11990e5c.js +1 -0
  25. package/cjs/series-v2-fe0d9e73.js +1 -0
  26. package/cjs/settings-icon-a419af57.js +1 -0
  27. package/cjs/skin-207d9d41.js +1 -0
  28. package/cjs/skin-20eff0f7.js +1 -0
  29. package/cjs/skin-296a9bde.js +1 -0
  30. package/cjs/skin-33bf00fa.js +1 -0
  31. package/cjs/skin-624fd6d7.js +1 -0
  32. package/cjs/skin-8637eb47.js +1 -0
  33. package/cjs/skin-898e9504.js +1 -0
  34. package/cjs/skin-9d310bde.js +1 -0
  35. package/cjs/skin-d3c717b0.js +1 -0
  36. package/cjs/skin-eeec7a85.js +1 -0
  37. package/cjs/start-begin-btn-5adfa5b7.js +1 -0
  38. package/cjs/util-7c2a99c7.js +1 -0
  39. package/cjs/videoSelector-cee60d3b.js +1 -0
  40. package/cjs/videoSelector-e7fb8b91.js +1 -0
  41. package/cjs/{videojs-dash5.es-5173354f.js → videojs-dash5.es-d676214f.js} +1 -1
  42. package/cjs/watch-live-btn-1c5d2e69.js +1 -0
  43. package/esm/apis/index.d.ts +2 -2
  44. package/esm/autoNextVideo-15ea7a03.js +1 -0
  45. package/esm/bundle.css +1573 -3
  46. package/esm/caption-settings-3a5e2e2d.js +1 -0
  47. package/esm/captions-78bd2908.js +1 -0
  48. package/esm/components/big-mute-btn/index.d.ts +9 -0
  49. package/esm/currentVideoInfo-0b234e55.js +1 -0
  50. package/esm/features-0d93cbe9.js +1 -0
  51. package/esm/features.d.ts +1 -0
  52. package/esm/generic-505b51e9.js +1 -0
  53. package/esm/helper-d52dff3c.js +1 -0
  54. package/esm/helpers/currentVideoInfo.d.ts +2 -2
  55. package/esm/icons-37daa6b3.js +1 -0
  56. package/esm/index-2ab55f4b.js +1 -0
  57. package/esm/index-2ea768e5.js +1 -0
  58. package/esm/index-a222d776.js +1 -0
  59. package/esm/index-e15f2d3e.js +1 -0
  60. package/esm/index.js +1 -1
  61. package/esm/localisation-0bf399a1.js +1 -0
  62. package/esm/multicamv2-82f86463.js +1 -0
  63. package/esm/multicamv2-d87c0312.js +1 -0
  64. package/esm/nextEpisodeButton-a1f41584.js +1 -0
  65. package/esm/player_instance-34118a5b.js +1 -0
  66. package/esm/playlist-d6bee6ef.js +1 -0
  67. package/esm/resolution-62be852a.js +1 -0
  68. package/esm/resolution-v2-081ad56d.js +1 -0
  69. package/esm/series-42022340.js +1 -0
  70. package/esm/series-v2-9ea6042b.js +1 -0
  71. package/esm/series-v2-f5561e01.js +1 -0
  72. package/esm/{settings-icon-3a13d886.js → settings-icon-7d9e5221.js} +1 -1
  73. package/esm/skin/mini/events.d.ts +1 -0
  74. package/esm/skin/mini/skin.d.ts +1 -0
  75. package/esm/skin/news_live/events.d.ts +1 -0
  76. package/esm/skin/news_live/skin.d.ts +1 -0
  77. package/esm/skin-1da01397.js +1 -0
  78. package/esm/skin-4e18f35a.js +1 -0
  79. package/esm/skin-65765793.js +1 -0
  80. package/esm/skin-666d6980.js +1 -0
  81. package/esm/skin-782d32ed.js +1 -0
  82. package/esm/skin-9744a0d3.js +1 -0
  83. package/esm/skin-9f02bf7d.js +1 -0
  84. package/esm/skin-c4d191e0.js +1 -0
  85. package/esm/skin-cf37c5d3.js +1 -0
  86. package/esm/skin-ec60bb2b.js +1 -0
  87. package/esm/start-begin-btn-16534825.js +1 -0
  88. package/esm/util-f1ba608f.js +1 -0
  89. package/esm/utilities/beacon.d.ts +1 -1
  90. package/esm/videoSelector-491d6638.js +1 -0
  91. package/esm/videoSelector-7a846998.js +1 -0
  92. package/esm/{videojs-dash5.es-9868b8c7.js → videojs-dash5.es-fc3c1bcf.js} +1 -1
  93. package/esm/watch-live-btn-ddcfab89.js +1 -0
  94. package/package.json +5 -2
  95. package/cjs/autoNextVideo-abfb351d.js +0 -1
  96. package/cjs/caption-settings-1efe9982.js +0 -1
  97. package/cjs/features-4a76e215.js +0 -1
  98. package/cjs/index-03969150.js +0 -1
  99. package/cjs/index-432bc006.js +0 -1
  100. package/cjs/multicamv2-33dab9a2.js +0 -1
  101. package/cjs/multicamv2-85130e99.js +0 -1
  102. package/cjs/nextEpisodeButton-44390768.js +0 -1
  103. package/cjs/playlist-da81e011.js +0 -1
  104. package/cjs/resolution-v2-c71c8680.js +0 -1
  105. package/cjs/series-ae935129.js +0 -1
  106. package/cjs/series-v2-c88c6f27.js +0 -1
  107. package/cjs/series-v2-d67041bc.js +0 -1
  108. package/cjs/settings-icon-c1ac2e37.js +0 -1
  109. package/cjs/skin-12248e27.js +0 -1
  110. package/cjs/skin-476afafd.js +0 -1
  111. package/cjs/skin-478ea1b8.js +0 -1
  112. package/cjs/skin-73a196b3.js +0 -1
  113. package/cjs/skin-9d949da3.js +0 -1
  114. package/cjs/skin-c3d3212b.js +0 -1
  115. package/cjs/skin-cd95e0c1.js +0 -1
  116. package/cjs/skin-fd24aa07.js +0 -1
  117. package/cjs/start-begin-btn-c46e6492.js +0 -1
  118. package/cjs/videoSelector-a55ad576.js +0 -1
  119. package/cjs/videoSelector-cb16ae18.js +0 -1
  120. package/cjs/watch-live-btn-2964f64b.js +0 -1
  121. package/esm/autoNextVideo-8f8a9f2e.js +0 -1
  122. package/esm/caption-settings-49e8a9bf.js +0 -1
  123. package/esm/features-e537df14.js +0 -1
  124. package/esm/index-2d6bcfdb.js +0 -1
  125. package/esm/index-dc66c193.js +0 -1
  126. package/esm/multicamv2-245bd15e.js +0 -1
  127. package/esm/multicamv2-b3defa42.js +0 -1
  128. package/esm/nextEpisodeButton-f4543db8.js +0 -1
  129. package/esm/playlist-f02f8163.js +0 -1
  130. package/esm/resolution-v2-f5a28786.js +0 -1
  131. package/esm/series-b4613e56.js +0 -1
  132. package/esm/series-v2-1e202238.js +0 -1
  133. package/esm/series-v2-ca516b3f.js +0 -1
  134. package/esm/skin-101ab011.js +0 -1
  135. package/esm/skin-46a6a576.js +0 -1
  136. package/esm/skin-64ccbdf1.js +0 -1
  137. package/esm/skin-82447ac5.js +0 -1
  138. package/esm/skin-943037f3.js +0 -1
  139. package/esm/skin-9b36936b.js +0 -1
  140. package/esm/skin-9fece9a0.js +0 -1
  141. package/esm/skin-b772b20b.js +0 -1
  142. package/esm/start-begin-btn-ec5e405a.js +0 -1
  143. package/esm/videoSelector-1847f653.js +0 -1
  144. package/esm/videoSelector-cd1e2c31.js +0 -1
  145. package/esm/watch-live-btn-f6f937bd.js +0 -1
@@ -1 +0,0 @@
1
- import"video.js/dist/video-js.min.css";import e from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/regenerator";import o from"axios";import i from"video.js";import r from"js-cookie";import l from"@babel/runtime/helpers/toConsumableArray";import a from"@babel/runtime/helpers/slicedToArray";import{destroyComscoreTag as u,formulateComscorePayload as d,createComscoreStreamingTag as s,setComscorePlayerInstance as c}from"@viewlift/comscore/index.js";import v from"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/assertThisInitialized";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";function f(){var e,n;null===(e=window)||void 0===e||null===(n=e.dataLayer)||void 0===n||n.push(arguments)}function p(e,n){f("event",e,n)}var m={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 g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function h(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?g(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):g(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var w={name:"@viewlift/player",version:"2.0.61",main:"dist/bundle.cjs.js",types:"dist/@viewlift/player/esm/index.d.ts",amdName:"_playerCore",dependencies:{"@silvermine/videojs-airplay":"^1.3.0","@silvermine/videojs-chromecast":"^1.4.1","@viewlift/comscore":"^0.0.4",axios:"^1.2.3",ima:"npm:videojs-ima@2.2.0","js-cookie":"^3.0.5","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=w.version;var y,b=function(){var e,n,t,o;return null!==(e=window)&&void 0!==e&&null!==(n=e.customData)&&void 0!==n&&n.overrideEntitlementBaseUrl?(null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.overrideEntitlementBaseUrl)+"/video/status":O.get()+"".concat(null==m?void 0:m.getVideoDetails)},I=function(e,n){var t,i,r,l;return null!==(t=window)&&void 0!==t&&null!==(i=t.customData)&&void 0!==i&&i.overrideEntitlementResponse?new Promise(function(e,n){var t,o;return e({data:null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.overrideEntitlementResponse})}):o({url:b(),params:h({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:n,"Sdk-Version":w.version,"x-player-name":"videojs"},withCredentials:!0})},C=function(e,n){var t,i,r,l;return null!==(t=window)&&void 0!==t&&null!==(i=t.customData)&&void 0!==i&&i.overrideEntitlementResponse?new Promise(function(e,n){var t,o;return e({data:null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.overrideEntitlementResponse})}):o({url:O.get()+m.getLinearChannelDetails,params:h(h(h(h(h({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:n,hdcp:"HDCP-1.4",sl:"SW_SECURE_CRYPTO"}})},E=function(e,n){var t,i,r=U(n),l=(null==r?void 0:r.site)||null;return null!==(t=window)&&void 0!==t&&null!==(i=t.customData)&&void 0!==i&&i.seriesData?new Promise(function(e,n){var t,o;return e({data:null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.seriesData})}):o({url:O.get()+"/v3/content/series/".concat(e),params:{site:l},method:"GET",headers:{Authorization:n}})},T=function(){var e=n(t.mark(function e(n){var i;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H();case 2:return i=e.sent,e.abrupt("return",o({url:O.get()+"".concat(null==m?void 0:m.saveWatchHistoryV2),method:"POST",headers:{Authorization:i},data:h({},n),params:h({},(null==n?void 0:n.profileId)&&{profileId:null==n?void 0:n.profileId})}));case 4:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),k=function(e,n){var t,i,r=window.contentType;return o({method:"GET",url:O.get()+"".concat(null==m?void 0:m.getVideoInfoV2,"/").concat(r,"/").concat(e),headers:{Authorization:n,"x-api-key":null===(t=window)||void 0===t||null===(i=t.watchHistory)||void 0===i?void 0:i.xApiKey},timeout:15e3})},S=function(e){var n=e.videoId;return o({method:"GET",url:O.get()+"".concat(null==m?void 0:m.getSeriesWatchHistoryV2,"/").concat(n),headers:{Authorization:e.token},timeout:15e3})},O=(y=null==m?void 0:m.apiBaseUrl,{set:function(e){e&&(y=e)},get:function(){return y}}),L=function(e,n,t,i){return o({url:t,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:n},withCredentials:!0})},_=function(e){var n=JSON.parse(atob(null==e?void 0:e.split(".")[1])),t=null==n?void 0:n.exp;if(new Date(1e3*t).getTime()<(new Date).getTime())return!0},P=null;function D(){return{set:function(e){e&&(P=e)},get:function(){return P}}}var j,x,A,V,R,M,N,B=function(){var e=n(t.mark(function e(){var n,i,r;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=D().get(),i=O.get(),e.prev=2,e.next=5,o({method:"GET",url:"".concat(i,"/identity/refresh/").concat(n)});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)}}(),F=null,H=function(){var e=n(t.mark(function e(){var n;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=sessionStorage.getItem("vlp_token"))||!_(n)){e.next=6;break}return F||(F=B().then(function(e){var t,o,i=null==e||null===(t=e.data)||void 0===t?void 0:t.authorizationToken,r=null==e||null===(o=e.data)||void 0===o?void 0:o.refreshToken;return i&&sessionStorage.setItem("vlp_token",i),r&&D().set(r),i||n}).catch(function(e){return console.error("Error fetching refresh token",e),n}).finally(function(){F=null})),e.abrupt("return",F);case 6:return e.abrupt("return",n);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),W=function(e){var n=!0,t=null==e?void 0:e.videoSourceUrl,o=null==e?void 0:e.asat;return t&&!o&&(n=!1),n},U=function(e){if(e&&"string"==typeof e)return JSON.parse(atob(e.split(".")[1]))},Z=function(e){return!!i.getPlayer("".concat(e))&&i.getPlayer("".concat(e))},G=[],z=function(e){x=e},Y=(M=new Map,{set:function(e){var n,t=(null==e||null===(n=e.video)||void 0===n?void 0:n.id)||e||null;M.set(t,(M.get(t)||0)+1)},get:function(e){return M.get(e)},clear:function(){M.clear()}}),q=function(){return x},Q=function(e){j=e},K=function(){return j},J=function(){return A},X=function(e){A=e},$=function(){return R},ee=function(e){V=new Map,e.map(function(e,n){V.set(e.id,n)})},ne=function(e){if(V){var n=V.get(e);X(n+1)}},te=(N=0,{set:function(e){e>=0&&(N=e)},get:function(){return N}}),oe=function(e){G=e},ie=function(){return G};function re(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function le(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?re(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):re(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var ae=function(){var e,n,t,o,i,r,l,a=q();return"linearchannel"===((null==a?void 0:a.contentType)||"video")?null==a||null===(e=a.linearchannel)||void 0===e||null===(n=e.channels)||void 0===n||null===(t=n.find(function(e){return(null==e?void 0:e.id)===(null==a?void 0:a.channelId)}))||void 0===t||null===(o=t.content)||void 0===o?void 0:o.id:(null==a||null===(i=a.video)||void 0===i||null===(r=i.gist)||void 0===r?void 0:r.id)||(null==a||null===(l=a.video)||void 0===l?void 0:l.id)||(null==a?void 0:a.id)};function ue(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return"".concat(e()).concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e()).concat(e()).concat(e())}function de(){return se.apply(this,arguments)}function se(){return se=n(t.mark(function e(){var n,o,i;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H();case 2:if(n=e.sent,o=U(n),!(i=null==o?void 0:o.userId)){e.next=9;break}return e.abrupt("return",i);case 9:return i=ue(),window.sessionStorage.setItem("uid",i),e.abrupt("return",i);case 12:case"end":return e.stop()}},e)})),se.apply(this,arguments)}function ce(){return ve.apply(this,arguments)}function ve(){return ve=n(t.mark(function e(){var n,o;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H();case 2:if(!(n=e.sent)){e.next=6;break}return o=JSON.parse(atob(n.split(".")[1])),e.abrupt("return",null!=o&&o.anonymousId?"guest-user":null==o?void 0:o.userId);case 6:return e.abrupt("return","guest-user");case 7:case"end":return e.stop()}},e)})),ve.apply(this,arguments)}function fe(e){return e?String(e):""}var pe=function(e){return function(){try{return e.apply(void 0,arguments)}catch(e){return console.error(e),null}}};function me(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"localhost"!==location.hostname&&"127.0.0.1"!==location.hostname&&function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=ue(),a="WEBSITE",u=null,d=0,s=null,c=0,v=0,f=!1,g=[],h=Z(e);if(h){var w,y,b,I,C=pe(function(){for(var e=h.currentTime(),n=h.buffered(),t=0;t<n.length;t++){var o=n.start(t),i=n.end(t);if(e>=o&&e<=i)return Math.round(i-e)}return 0}),E=function(){var e,n=q(),t=(null==n?void 0:n.contentType)||"video";return(null==n||null===(e=n[t])||void 0===e?void 0:e.network)||null},T=function(){var e=n(t.mark(function e(n){var i,u,d,s,c,v,f,p,g,h,w,y;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H();case 2:return h=e.sent,w=U(h),e.t0=le,e.t1=le,e.t2=null==w?void 0:w.site,e.t3=null==w?void 0:w.siteId,e.t4=a,e.t5=de(),e.t6=ae(),e.t7=n.url||document.location.href,e.t8=n.ref||document.referrer,e.t9=n.eventName,e.t10=null!==(i=n.videoPosition)&&void 0!==i?i:null,e.t11="production",e.t12=n.dp1||"",e.t13=n.dp2||"",e.t14=n.dp3||"",e.t15=n.dp4||"",e.t16=n.dp5||"",e.t17=n.isAdEvent?n.videoPosition:null,e.t18=n.isAdEvent?fe(n.adPosition):"",e.next=25,ce();case 25:e.t19=e.sent,e.t20=n.playerType||"videojs",e.t21=n.mediaType||"VIDEO",e.t22=l,e.t23=null!==(u=n.ttFirstFrame)&&void 0!==u?u:null,e.t24=null!==(d=n.bitrate)&&void 0!==d?d:null,e.t25=null!==(s=n.resHeight)&&void 0!==s?s:null,e.t26=null!==(c=n.resWidth)&&void 0!==c?c:null,e.t27=null!==(v=n.bufferHealth)&&void 0!==v?v:null,e.t28=null!==(f=E())&&void 0!==f?f:null,e.t29=siteName,e.t30={aid:e.t2,cid:e.t3,pfm:e.t4,uid:e.t5,vid:e.t6,url:e.t7,ref:e.t8,pa:e.t9,vpos:e.t10,environment:e.t11,dp1:e.t12,dp2:e.t13,dp3:e.t14,dp4:e.t15,dp5:e.t16,apos:e.t17,apod:e.t18,profid:e.t19,player:e.t20,media_type:e.t21,stream_id:e.t22,embedurl:"",ttfirstframe:e.t23,bitrate:e.t24,connectionspeed:null,resolutionheight:e.t25,resolutionwidth:e.t26,bufferhealth:e.t27,networkname:e.t28,brandname:e.t29},e.t31=(null==n?void 0:n.duration)&&{duration:n.duration},e.t32=(0,e.t1)(e.t30,e.t31),e.t33=null==r||null===(p=r.beacon)||void 0===p?void 0:p.params,e.t34=(0,e.t0)(e.t32,e.t33),y=[e.t34],o({url:(null==r||null===(g=r.beacon)||void 0===g?void 0:g.url)||O.get()+m.getBeaconUrl,method:"post",headers:{Authorization:h},contentType:"application/x-www-form-urlencoded",dataType:"text",data:y}).catch(function(e){return console.error(e)});case 43:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),k=function(e){if(!h.paused()&&h.readyState()>2)return clearInterval(u),clearInterval(s),e;var n,t=e+.1;return+t.toFixed(2)>=5&&v<4&&f?(v++,p("BUFFERING",le({pfm:a,uid:de(),vid:ae(),videoPosition:Math.floor(h.currentTime)},null==r||null===(n=r.beacon)||void 0===n?void 0:n.params)),T({eventName:"BUFFERING",videoPosition:Math.floor(h.currentTime),isAdEvent:!1}),0):t};w=Math.floor(h.currentTime),h.on("error",function(){var e,n=Math.floor(h.currentTime);clearInterval(u);var t=w===n?"FAILED_TO_START":"DROPPED_STREAM";p(t,le({pfm:a,uid:de(),vid:ae(),videoPosition:n},null==r||null===(e=r.beacon)||void 0===e?void 0:e.params)),T({eventName:t,videoPosition:n,isAdEvent:!1})}),y=!1,h.on("waiting",pe(function(){f&&(y=!0,clearInterval(u),u=setInterval(function(){y&&!h.paused()?c=k(c):clearInterval(u)},100))})),h.on("playing",pe(function(){y=!1,clearInterval(u)})),b=function(e){var n,t,o,i=le({videoPosition:Math.floor(h.currentTime),isAdEvent:!0,bufferHealth:C(),pfm:a,uid:de(),vid:ae(),resHeight:(null===(n=videoElement)||void 0===n?void 0:n.videoHeight)||null,resWidth:(null===(t=videoElement)||void 0===t?void 0:t.videoWidth)||null},null==r||null===(o=r.beacon)||void 0===o?void 0:o.params);p(e,le({},i)),T(le({eventName:e,adPosition:1},i))},h.on("adstart",function(){b("AD_REQUEST"),b("AD_IMPRESSION")}),h.on("adskip",function(){d=0}),h.on("adend",function(){d=0}),h.on("timeupdate",function(){var e,n,t,o,i=Math.floor(h.currentTime());if(i>=30&&i%30==0&&!g.includes(i)){var r,l=null===(r=h.el().getElementsByTagName("video"))||void 0===r?void 0:r[0];v=0,g.push(i),T({eventName:"PING",videoPosition:i,isAdEvent:!1,duration:30,resHeight:(null==l?void 0:l.videoHeight)||null,resWidth:(null==l?void 0:l.videoWidth)||null,bufferHealth:C(),bitrate:Math.round((null==h||null===(e=h.tech_)||void 0===e||null===(n=e.vhs)||void 0===n||null===(t=n.selectPlaylist())||void 0===t||null===(o=t.attributes)||void 0===o?void 0:o.BANDWIDTH)/1e3)})}}),I=pe(function(){var e;d=0,s=setInterval(function(){d=k(d)},100),p("PLAY",le({pfm:a,uid:de(),vid:ae(),videoPosition:Math.floor(h.currentTime)},null==r||null===(e=r.beacon)||void 0===e?void 0:e.params)),T({eventName:"PLAY",videoPosition:Math.floor(h.currentTime),isAdEvent:!1}),i&&i("started_video_playback",{"Video ID":ae(),watchTime:Math.floor(h.currentTime)})}),h.one("play",I),h.on("loadeddata",function(){h.one("timeupdate",function(){var e;clearInterval(s),clearInterval(u),c=d||0,p("FIRST_FRAME",le({pfm:a,uid:de(),vid:ae(),videoPosition:Math.floor(h.currentTime),ttFirstFrame:d,bufferHealth:C()},null==r||null===(e=r.beacon)||void 0===e?void 0:e.params)),T({eventName:"FIRST_FRAME",videoPosition:Math.floor(h.currentTime),isAdEvent:!1,ttFirstFrame:d,bufferHealth:C()}),f=!0,d=0})})}else console.error("Videojs: Player instance not found.")}(e,i,r)}var ge=function(){var e,n;return navigator.userAgent.indexOf("Edg")>-1&&"macOS"!=(null===(e=window.navigator)||void 0===e||null===(n=e.userAgentData)||void 0===n?void 0:n.platform)?"IE":-1!=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR"))?"Opera":-1!=navigator.userAgent.indexOf("Chrome")?"Chrome":-1!=navigator.userAgent.indexOf("Safari")?"Safari":-1!=navigator.userAgent.indexOf("Firefox")?"Firefox":"Unknown"},he=function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},we=function(e,n){var t=new Map;S({videoId:e,token:n}).then(function(e){e.data.map(function(e){t.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})}),R=t}).catch(function(e){return console.log(e)})},ye=function(){var e=te.get();return e>=0?e+1:1},be=function(){var e,n,t,o=K(),i=q(),r=null==i||null===(e=i.video)||void 0===e?void 0:e.id,l=te.get(),a=null==o||null===(n=o[l])||void 0===n||null===(t=n.episodes)||void 0===t?void 0:t.findIndex(function(e){return(null==e?void 0:e.id)===r});return a>=0?a+1:1};function Ie(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function Ce(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Ie(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var Ee=function(e,n){return e&&n?"".concat(e,"x").concat(n):e>1024?"L":e>768?"M":"S"},Te=function(e){var n=ke(e,"video.tags",[]),t=ke(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return n.length>0?n.map(function(e){return e.title}).join(","):t},ke=function(e,n,t){for(var o=0,i=(n=n.split(".")).length;o<i;o++){var r;e=null===(r=e)||void 0===r?void 0:r[n[o]]}return e||t},Se=function(){var n,t,o,i,l,a,u,d,s,c,v,f,p,m,g,h,w,y,b,I,C,E,T,k,S=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",O=arguments.length>1?arguments[1]:void 0,L=arguments.length>2?arguments[2]:void 0;if(null!==(n=window)&&void 0!==n&&null!==(t=n.customData)&&void 0!==t&&t.disableMacros)return S;var _=(null==L?void 0:L.siteName)||(null==L?void 0:L.site)||"",P=(null==L?void 0:L.contentType)||"video",D=(null==L||null===(o=L[P])||void 0===o?void 0:o.metadata)||(null==L||null===(i=L[P])||void 0===i||null===(l=i.gist)||void 0===l?void 0:l.metadata),j=Z(O);if(!S.includes("VIEWLIFT_"))return S;var x,A=window.getComputedStyle(document.getElementById(O),null),V=Math.trunc(A.getPropertyValue("height").slice(0,-2)),R=Math.trunc(A.getPropertyValue("width").slice(0,-2)),M="linearchannel"===P?null==L||null===(a=L.linearchannel)||void 0===a||null===(u=a.channels)||void 0===u||null===(d=u.find(function(e){return(null==e?void 0:e.id)===(null==L?void 0:L.channelId)}))||void 0===d||null===(s=d.content)||void 0===s?void 0:s.id:ke(L,"video.gist.id",""),N="linearchannel"===P?null==L||null===(c=L.linearchannel)||void 0===c||null===(v=c.channels)||void 0===v||null===(f=v.find(function(e){return(null==e?void 0:e.id)===(null==L?void 0:L.channelId)}))||void 0===f?void 0:f.title:ke(L,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),B=null,F=null;"function"==typeof window.__gpp&&(null===(x=window)||void 0===x||x.__gpp("ping",function(e){B=null==e?void 0:e.gppString,F=null==e?void 0:e.sectionList[0]}));var H=Ce(Ce({},Oe(D)),{},(E={VIEWLIFT_WIDTH:R,VIEWLIFT_HEIGHT:V,VIEWLIFT_SIZE:Ee(R,V),VIEWLIFT_DOMAIN:window.location.hostname,VIEWLIFT_URL:window.location.href,VIEWLIFT_ENCODED_URL:encodeURIComponent(window.location.href),VIEWLIFT_DOUBLE_ENCODED_URL:encodeURIComponent(encodeURIComponent(window.location.href)),VIEWLIFT_CACHEBUSTER:"3708662946268",VIEWLIFT_TIMESTAMP:Date.now().toString().substring(0,10),VIEWLIFT_TIMESTAMP_MS:Date.now().toString(),VIEWLIFT_IP:(null===(p=window)||void 0===p?void 0:p.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:encodeURIComponent(encodeURIComponent(navigator.userAgent)),VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:ke(L,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:ke(L,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:ke(L,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==j||null===(m=j.options_)||void 0===m?void 0:m.autoplay)||1,VIEWLIFT_MUTE:(null==j||null===(g=j.options_)||void 0===g?void 0:g.autoplay)||0,VIEWLIFT_DEVICE_ID:"spinco"==_||"usanetwork"==_?"":localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_DEVICETYPE:"WEB_BROWSER",VIEWLIFT_IDTYPE:"dpid",VIEWLIFT_KEYWORDS:Te(L),VIEWLIFT_MEDIA_ID:M,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(ke(L,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:M,VIEWLIFT_VIDEO_URL:encodeURI(window.location.origin+ke(L,"video.gist.permalink","")),VIEWLIFT_CONSENT:r.get("cc")||"VIEWLIFT_CONSENT",VIEWLIFT_COPPA:ke(null===(h=window)||void 0===h||null===(w=h.app_data)||void 0===w||null===(y=w.site)||void 0===y?void 0:y.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR_CONSENT:"",VIEWLIFT_ROKU_AD_ID:"",VIEWLIFT_ROKU_AD_KEYS:"",VIEWLIFT_RDID:"",VIEWLIFT_GDPR:"spinco"==_||"usanetwork"==_?"":ke(null===(b=window)||void 0===b||null===(I=b.app_data)||void 0===I||null===(C=I.site)||void 0===C?void 0:C.settings,"compliance.gdpr")?1:0,VIEWLIFT_CONTENT_DURATION_MS:1e3*ke(L,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:ke(L,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:M,VIEWLIFT_CONTENT_TITLE:N,VIEWLIFT_CONTENT_SERIES_TITLE:ke(L,"video.series.gist.title","VIEWLIFT_CONTENT_SERIES_TITLE"),VIEWLIFT_CONTENT_GENRE:ke(L,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER",VIEWLIFT_EPISODE_NUMBER:be(),VIEWLIFT_SEASON_NUMBER:ye(),VIEWLIFT_CONTENT_TAGS:Te(L),VIEWLIFT_GPP_SID:F||"VIEWLIFT_GPP_SID",VIEWLIFT_GPP:B||"VIEWLIFT_GPP",VIEWLIFT_LAT:"",VIEWLIFT_APP_BUNDLE:"",VIEWLIFT_ATT_CONSENT:"",VIEWLIFT_APP_ID:"",VIEWLIFT_APP_STORE_URL:""},e(E,"VIEWLIFT_LAT",""),e(E,"VIEWLIFT_APP_BUNDLE",""),e(E,"VIEWLIFT_ATT_CONSENT",""),E),null===(T=window)||void 0===T||null===(k=T.customData)||void 0===k?void 0:k.macros);for(var W in H){var U=new RegExp(W,"g");S=S.replace(U,H[W])}return S},Oe=function(e){var n,t,o,i,r,l,a={},u=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map(function(e){u.set(e.name,e.value)}));var d=(null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t||null===(o=t.subscription)||void 0===o?void 0:o.SVOD)||!1,s=(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r||null===(l=r.subscription)||void 0===l?void 0:l.TVE)||!1;return d||s?(he()?d?a=Ce(Ce({},a),{},{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||""}):s&&(a=Ce(Ce({},a),{},{VIEWLIFT_CSID:u.get("csid.mweb.tve")||""})):d?a=Ce(Ce({},a),{},{VIEWLIFT_CSID:u.get("csid.web.dtc")||""}):s&&(a=Ce(Ce({},a),{},{VIEWLIFT_CSID:u.get("csid.web.tve")||""})),d?a=Ce(Ce({},a),{},{VIEWLIFT_SFID:u.get("sfid.dtc")||u.get("sfid.web.dtc")||""}):s&&(a=Ce(Ce({},a),{},{VIEWLIFT_SFID:u.get("sfid.tve")||u.get("sfid.web.tve")||""})),a=he()?Ce(Ce({},a),{},{VIEWLIFT_PROF:u.get("prof.mweb")||""}):Ce(Ce({},a),{},{VIEWLIFT_PROF:u.get("prof.web")||""})):(a=Ce(Ce({},a),{},{VIEWLIFT_SFID:u.get("sfid.dtc")||u.get("sfid.web.dtc")||""}),a=he()?Ce(Ce({},a),{},{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||"",VIEWLIFT_PROF:u.get("prof.mweb")||""}):Ce(Ce({},a),{},{VIEWLIFT_CSID:u.get("csid.web.dtc")||"",VIEWLIFT_PROF:u.get("prof.web")||""})),a=Ce(Ce({},a),{},{VIEWLIFT_AFID:u.get("afid"),VIEWLIFT_NIELSEN_APP_ID:u.get("VIEWLIFT_NIELSEN_APP_ID")||"",VIEWLIFT_CHANNEL:u.get("VIEWLIFT_CHANNEL")||"",VIEWLIFT_GRACE_NOTE_ID:u.get("VIEWLIFT_GRACE_NOTE_ID")||""})},Le=function(e,n){var t,o,i,r,l,a,u,d,s,c,v,f,p,m=(null==e?void 0:e.contentType)||"video",g=null==e||null===(t=e[m])||void 0===t?void 0:t.drmEnabled,h=null==e||null===(o=e[m])||void 0===o||null===(i=o.streamingInfo)||void 0===i?void 0:i.videoAssets,w=null==e||null===(r=e[m])||void 0===r||null===(l=r.streamingInfo)||void 0===l?void 0:l.audioAssets,y=(null==e||null===(a=e[m])||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[m])||void 0===s||null===(c=s.liveDetails)||void 0===c||c.isDvrEnabled;var b=(null==e||null===(v=e[m])||void 0===v||null===(f=v.streamingInfo)||void 0===f||null===(p=f.videoAssets)||void 0===p?void 0:p.dash)||!1;if(null!=e&&e.directPlaybackUrl)return{src:null==e?void 0:e.directPlaybackUrl,type:null};if(null!=e&&e.audioAssetSource&&null!=w&&w.hls)return Pe(w);if(g){var I=De(h,n);return I.src=Se(I.src,n,e),I}if("Safari"!==ge()&&b)return _e(h);if(y){var C=Pe(h);return C.src=Se(C.src,n,e),C}if(null!=h&&h.mpeg){var E=function(e){var n=null==e?void 0:e.mpeg;return{src:n[n.length-1].url,type:"video/mp4"}}(h);return E.src=Se(E.src,n,e),E}return null},_e=function(e){var n=null==e?void 0:e.dash;return n?{src:n,type:"application/dash+xml"}:null},Pe=function(e){var n=null==e?void 0:e.hls;return n?{src:n,type:"application/x-mpegURL"}:null},De=function(e,n){var t=(null==e?void 0:e.drmProvider)||null,o=e.fairPlayCmaf||e.fairPlay,r=e.widevine,l=e.playReady,a=ge();if(Z(n),"Safari"===a){var u=function(e){var n=e.url;return{src:n,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(n,t){var o={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};i.xhr(o,function(e,n,o){console.log(e),e&&t(e),t(null,new Uint8Array(o))})},getContentId:function(e,n){if(n){var t=n.indexOf("\0")+1;return n.slice(t)}},getLicense:function(n,t,o,r){var l={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:o,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};i.xhr(l,function(e,n,t){console.log(e),e&&r(e),r(null,t)})}}}}}(o);return je(n),u}var d,s={src:r.url,type:"application/dash+xml"};return"caliente"==(null===(d=window)||void 0===d?void 0:d.siteName)?(je(n),s.keySystems={"com.widevine.alpha":{url:r.licenseUrl,licenseHeaders:{"X-AxDRM-Message":r.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},"com.microsoft.playready":{url:null==l?void 0:l.licenseUrl,licenseHeaders:{"X-AxDRM-Message":null==l?void 0:l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}):"custom"==t?(s.keySystemOptions=[],s.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:r.licenseUrl,httpRequestHeaders:{"Content-Type":"application/octet-stream"},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),s.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:null==l?void 0:l.licenseUrl,httpRequestHeaders:{"Content-Type":"application/octet-stream"},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})):(s.keySystemOptions=[],s.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:r.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":r.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),s.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:null==l?void 0:l.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":null==l?void 0:l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})),s};var je=function(e){var n=Z(e);if("function"==typeof n.eme)try{n.eme(),"Safari"==ge()&&n.eme.initLegacyFairplay()}catch(e){console.log("EME ERROR :",e)}},xe=function(e,n){var t=e.src,o=e.type;if(!t||"string"!=typeof t||!t.includes(".com"))return{src:t,type:o};n=n.replace(/\/$/,"");var i=t.split(".com")[1]||"";return{src:i?"".concat(n).concat(i):t,type:o}},Ae=function(e){return new Promise(function(n,t){if(Ve(e))t("".concat(e," is alread initialised"));else{var o=document.createElement("script");o.async=!0,o.src=e,o.onload=function(){n()},o.onerror=function(n){t("Error while loading script ".concat(e," : ").concat(n))},document.head.appendChild(o)}})},Ve=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0},Re=function(e,n){if(import("./error-2395864b.js").then(function(e){var n=document.createElement("style");n.id="errorblock",n.append("".concat(e.default)),document.head.appendChild(n)}),document.getElementsByClassName("error-container")[0]){var t=document.getElementsByClassName("error-message")[0];t&&(t.innerHTML="".concat(n))}else{var o=document.getElementById(e);if(o){var i=document.createElement("div");i.className="error-container";var r=document.createElement("div");r.className="error-message",r.innerHTML="".concat(n),i.appendChild(r),o.append(i)}}},Me=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var Ne=function(e,n){var t,o,i;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(t=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===t||null===(o=t[0])||void 0===o||null===(i=o.style)||void 0===i||i.setProperty("display","flex"));for(var r=Z(e).textTracks(),l=0;l<r.length;l++){var a=r[l];"subtitles"!==a.kind&&"captions"!==a.kind||a.id!=n||(a.mode="showing")}},Be=function(e,n){for(var t=Z(e).textTracks(),o=0;o<t.length;o++){var i=t[o];"subtitles"!==i.kind&&"captions"!==i.kind||i.id!==n||(i.mode="hidden")}},Fe=function(e){var n,t=Z(e);return(null==t||null===(n=t.textTracks())||void 0===n?void 0:n.tracks_.filter(function(e){return"subtitles"==e.kind||"captions"===e.kind}))||[]},He=function(e){var n=Z(e);n.remoteTextTracks().tracks_.map(function(e){"subtitles"==(null==e?void 0:e.kind)||null==e||e.kind,n.removeRemoteTextTrack(e)})},We=function(e,n){var t=Z(e);t.remoteTextTracks().tracks_.map(function(e){t.removeRemoteTextTrack(e)}),n.map(function(e){t.addRemoteTextTrack({src:e.url,srclang:e.srclang,label:e.label||(null==e?void 0:e.language)})})},Ue=!1,Ze=function(e,n,t){var o=Se(n,e,t),i=Z(e);if(n&&window.google){if("function"!=typeof i.ima)return;i.ima.initializeAdDisplayContainer&&i.ima.initializeAdDisplayContainer(),function(e,n){var t,o,i,r=Z(e);if(null!==r.el_){Ue=!0;var l={id:e,adTagUrl:"".concat(n),adLabel:"Your video will resume after this sponsor message"};r.ima.initializeAdDisplayContainer&&r.ima.initializeAdDisplayContainer(),Ue&&null!==r.el_&&("function"==typeof r.ima?r.ima(l):setTimeout(function(){r.ima.setContentWithAdTag(null,n,!0),r.ima.requestAds()},1e3));var a=document.getElementById("".concat(e));(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&a.hasAttribute("controls")&&a.removeAttribute("controls");var u="click",d=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(d=!0,u="touchend"),r.one(u,function(){d&&r.ima.initializeAdDisplayContainer()});var s=(null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o||null===(i=o.ads)||void 0===i?void 0:i.adEventHandler)||null;r.one("ads-ad-started",function(){s&&s({status:"STARTED",msg:"Advertisement Started"})}),r.one("ads-manager",function(e){var n=e.adsManager;n.addEventListener(google.ima.AdEvent.Type.COMPLETE,function(){s&&s({status:"ENDED",msg:"Advertisement Ended"})}),n.addEventListener(google.ima.AdEvent.Type.LOADED,function(e){s&&s({status:"LOADED",msg:"Advertisement Loaded",data:e})})}),r.on("adserror",function(e){s&&s({status:"ERROR",msg:"Advertisement Error"})})}}(e,o)}},Ge=["live","carousel","V2","defaultV2","multiplayer","minimalist","VL_ONE","news"],ze=function(e){return!Ge.includes(e)},Ye=function(e){var n=(new DOMParser).parseFromString(e,"text/html");return null==n?void 0:n.querySelector("body")},qe=function(e){var n=(new DOMParser).parseFromString(e,"image/svg+xml");return null==n?void 0:n.querySelector("svg")},Qe="http://www.w3.org/2000/svg";function Ke(e,n){if(!e)return null;e.classList.add("vjs-svg-icon");var t=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0 0 48 48",t=document.createElementNS(Qe,"svg");t.setAttribute("viewBox",n),t.setAttribute("preserveAspectRatio","xMidYMid meet");var o=document.createElementNS(Qe,"use");return o.setAttributeNS(null,"href",e),t.appendChild(o),{svg:t,use:o}}(n),o=t.svg,i=t.use;return e.appendChild(o),i}var Je=function(e){return qe(e)},Xe=function(e,n){if(n){var t,o,i=Z(n);if(i&&"function"==typeof i.el&&null!=i&&null!==(t=i.el())&&void 0!==t&&null!==(o=t.classList)&&void 0!==o&&o.contains("skin_defaultv2"))return void $e(e)}var r=l(document.querySelectorAll("[video-idx]"));console.log(r),r.map(function(n){var t=n.parentNode,o=n.getAttribute("video-idx");t.style.background=o==e?"gray":"none"})},$e=function(e){l(document.querySelectorAll("[video-idx]")).map(function(n){var t=n.getAttribute("video-idx");n.style.border=t==e?"2px solid white":"none"})},en=function(){var e=l(document.getElementsByClassName("vjs-control vjs-button open"));null==e||e.map(function(e){var n,t;null==e||null===(n=e.childNodes)||void 0===n||null===(t=n[0])||void 0===t||t.click()})},nn=function(e){return e&&!e.includes("?impolicy")?e+"?impolicy=resize&w=1920&h=1080":null},tn="",on=function(e,n){var t,o=function(){return function(e,n){var t=window.matchMedia("(orientation: portrait)").matches?"potrait":"landscape",o=document.getElementById(e);if(o&&tn!==t){var i=window.getComputedStyle(o,null).getPropertyValue("height");n&&(n.style.height="".concat(i)),tn=t}}(e,n)};window._orientationChangeHandler=o;window.addEventListener("resize",function(){clearTimeout(t),t=setTimeout(function(){o()},100)})},rn=function(e,n){var t,o=Z(e),i=Z(e).el(),r=new ResizeObserver(function(){var o;null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")||(t&&clearTimeout(t),t=setTimeout(function(){ln(e,n)},300))});r.observe(i),o.on("dispose",function(){r.disconnect()}),o.on("fullscreenchange",function(){setTimeout(function(){ln(e,n)},50)})},ln=function(e,n){var t;if(n){var o=document.getElementById(e),i=null===(t=window.getComputedStyle(o,null))||void 0===t?void 0:t.height;n.style.height!==i&&(n.style.height="".concat(i))}};function an(e,n){var t=null,o=null;return function(){for(var i=this,r=arguments.length,l=new Array(r),a=0;a<r;a++)l[a]=arguments[a];o?(clearTimeout(t),t=setTimeout(function(){Date.now()-o>=n&&(e.apply(i,l),o=Date.now())},n-(Date.now()-o))):(e.apply(this,l),o=Date.now())}}var un=function(e,n){var t;return function(){for(var o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];var l=this;clearTimeout(t),t=setTimeout(function(){e.apply(l,i)},n)}},dn=function(e){return"<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='").concat(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='").concat(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>")},sn=function(e){return"<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='").concat(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='").concat(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>")},cn=function(e){return'<svg style="width:16px" class=\'rewindbtn\' viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.88817 16.9913L7.72176 18.5762C9.58746 18.8613 11.4677 18.5376 13.1023 17.6161C17.1941 15.3094 18.4803 9.98978 15.9732 5.74243C13.47 1.50156 8.13865 -0.0590307 4.03665 2.25351C3.35173 2.64307 2.7379 3.12124 2.20384 3.67698L3.34087 4.82569C3.77642 4.37247 4.27773 3.98196 4.83679 3.66398C8.20452 1.76539 12.5901 3.04913 14.644 6.5288C16.6894 9.99402 15.6429 14.3223 12.3046 16.2043C10.9636 16.9602 9.42195 17.2257 7.88817 16.9913Z" fill=\''.concat(window.color||"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.10742 0.462205L0.56205 5.24366L6.06202 5.79492L3.10742 0.462205Z" fill=\'').concat(window.color||"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.80172 14.1769C10.1682 14.1769 10.5096 14.1082 10.8258 13.9708C11.142 13.8333 11.416 13.6241 11.6479 13.343C11.8798 13.0619 12.0615 12.7059 12.1928 12.275C12.3242 11.8441 12.3898 11.3368 12.3898 10.753C12.3898 10.1661 12.3242 9.65803 12.1928 9.22868C12.0615 8.79934 11.8798 8.44413 11.6479 8.16305C11.416 7.88197 11.142 7.6727 10.8258 7.53525C10.5096 7.3978 10.1682 7.32907 9.80172 7.32907C9.43524 7.32907 9.09551 7.3978 8.78254 7.53525C8.46956 7.6727 8.19794 7.88197 7.96767 8.16305C7.7374 8.44413 7.5574 8.79934 7.42767 9.22868C7.29794 9.65803 7.23308 10.1661 7.23308 10.753C7.23308 11.3368 7.29794 11.8441 7.42767 12.275C7.5574 12.7059 7.7374 13.0619 7.96767 13.343C8.19794 13.6241 8.46956 13.8333 8.78254 13.9708C9.09551 14.1082 9.43524 14.1769 9.80172 14.1769ZM6.54713 14.1028V13.2457H5.28226V7.39394H4.2947L2.14929 9.13139L2.52875 9.62714C2.5547 9.66112 2.59443 9.69123 2.64794 9.71749C2.70145 9.74374 2.76064 9.75687 2.82551 9.75687C2.86767 9.75687 2.91064 9.75069 2.95443 9.73834C2.99821 9.72598 3.04118 9.70282 3.08335 9.66884L4.09524 8.86266C4.08551 9.02946 4.08064 9.18853 4.08064 9.33988V13.2457H2.65524V14.1028H6.54713ZM9.30308 13.1136C9.46362 13.1893 9.62983 13.2271 9.80172 13.2271C9.97686 13.2271 10.1455 13.1893 10.3077 13.1136C10.4698 13.038 10.6133 12.9059 10.7382 12.7175C10.8631 12.5291 10.9628 12.2758 11.0374 11.9576C11.112 11.6395 11.1493 11.238 11.1493 10.753C11.1493 10.2681 11.112 9.86652 11.0374 9.54838C10.9628 9.23023 10.8631 8.97695 10.7382 8.78853C10.6133 8.60011 10.4698 8.46807 10.3077 8.39239C10.1455 8.31672 9.97686 8.27888 9.80172 8.27888C9.62983 8.27888 9.46362 8.31672 9.30308 8.39239C9.14254 8.46807 9.00064 8.60011 8.8774 8.78853C8.75416 8.97695 8.65605 9.23023 8.58308 9.54838C8.5101 9.86652 8.47362 10.2681 8.47362 10.753C8.47362 11.238 8.5101 11.6395 8.58308 11.9576C8.65605 12.2758 8.75416 12.5291 8.8774 12.7175C9.00064 12.9059 9.14254 13.038 9.30308 13.1136Z" fill=\'').concat(window.color||"white","' />\n </svg>")},vn=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>'},fn=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>'},pn=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 '},mn=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>'},gn=function(e){return'<svg style="width:16px" class=\'skipbtn\' viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.99586 16.9937L10.1623 18.5786C8.29657 18.8638 6.41631 18.54 4.78178 17.6185C0.689955 15.3118 -0.596286 9.9922 1.9108 5.74486C4.41407 1.50398 9.74539 -0.0566045 13.8474 2.25594C14.5323 2.64549 15.1461 3.12366 15.6802 3.6794L14.5432 4.82812C14.1076 4.3749 13.6063 3.98438 13.0472 3.66641C9.67952 1.76782 5.29397 3.05156 3.24002 6.53123C1.1946 9.99645 2.24115 14.3247 5.57947 16.2067C6.92039 16.9626 8.46208 17.2281 9.99586 16.9937Z" fill=\''.concat(window.color?window.color:"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M14.7766 0.464616L17.322 5.24607L11.822 5.79733L14.7766 0.464616Z" fill=\'').concat(window.color?window.color:"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13.0245 14.115C13.391 14.115 13.7323 14.0463 14.0486 13.9088C14.3648 13.7714 14.6388 13.5621 14.8707 13.281C15.1026 13 15.2842 12.644 15.4156 12.2131C15.5469 11.7822 15.6126 11.2749 15.6126 10.6911C15.6126 10.1042 15.5469 9.59609 15.4156 9.16675C15.2842 8.73741 15.1026 8.38219 14.8707 8.10111C14.6388 7.82003 14.3648 7.61076 14.0486 7.47331C13.7323 7.33586 13.391 7.26714 13.0245 7.26714C12.658 7.26714 12.3183 7.33586 12.0053 7.47331C11.6923 7.61076 11.4207 7.82003 11.1904 8.10111C10.9602 8.38219 10.7802 8.73741 10.6504 9.16675C10.5207 9.59609 10.4559 10.1042 10.4559 10.6911C10.4559 11.2749 10.5207 11.7822 10.6504 12.2131C10.7802 12.644 10.9602 13 11.1904 13.281C11.4207 13.5621 11.6923 13.7714 12.0053 13.9088C12.3183 14.0463 12.658 14.115 13.0245 14.115ZM9.76991 14.0409V13.1837H8.50504V7.332H7.51748L5.37207 9.06945L5.75153 9.56521C5.77748 9.59918 5.81721 9.6293 5.87072 9.65555C5.92423 9.68181 5.98342 9.69493 6.04829 9.69493C6.09045 9.69493 6.13342 9.68876 6.17721 9.6764C6.22099 9.66405 6.26396 9.64088 6.30612 9.6069L7.31802 8.80073C7.30829 8.96752 7.30342 9.1266 7.30342 9.27795V13.1837H5.87802V14.0409H9.76991ZM12.5259 13.0517C12.6864 13.1274 12.8526 13.1652 13.0245 13.1652C13.1996 13.1652 13.3683 13.1274 13.5304 13.0517C13.6926 12.976 13.8361 12.844 13.961 12.6556C14.0859 12.4671 14.1856 12.2139 14.2602 11.8957C14.3348 11.5776 14.3721 11.176 14.3721 10.6911C14.3721 10.2061 14.3348 9.80459 14.2602 9.48644C14.1856 9.16829 14.0859 8.91501 13.961 8.7266C13.8361 8.53818 13.6926 8.40613 13.5304 8.33046C13.3683 8.25478 13.1996 8.21694 13.0245 8.21694C12.8526 8.21694 12.6864 8.25478 12.5259 8.33046C12.3653 8.40613 12.2234 8.53818 12.1002 8.7266C11.9769 8.91501 11.8788 9.16829 11.8059 9.48644C11.7329 9.80459 11.6964 10.2061 11.6964 10.6911C11.6964 11.176 11.7329 11.5776 11.8059 11.8957C11.8788 12.2139 11.9769 12.4671 12.1002 12.6556C12.2234 12.844 12.3653 12.976 12.5259 13.0517Z" fill=\'').concat(window.color?window.color:"white","' />\n </svg>")},hn=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>'},wn=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>'},yn=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>'},bn=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 '},In=function(e){return'<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=').concat(e,' />\n <rect x="18" width="2" height="20" fill=').concat(e," />\n </svg>")},Cn=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 '},En=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 '},Tn=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 '},kn=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>'},Sn=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>'},On=function(){return'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M17 16L15 16L14.999 4L17 4L17 16ZM3 4.34473C3 4.19742 3.16454 4.10969 3.28711 4.19141L11.7695 9.84668C11.879 9.91969 11.879 10.0803 11.7695 10.1533L3.28711 15.8086C3.16454 15.8903 3 15.8026 3 15.6553L3 4.34473Z" fill="white"/>\n</svg>'},Ln=function(){return'<svg width="16" height="16" viewBox="0 0 14 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.04907e-06 -1.22392e-06L2 -1.04907e-06L2.00098 12L0 12L1.04907e-06 -1.22392e-06ZM14 11.6553C14 11.8026 13.8355 11.8903 13.7129 11.8086L5.23047 6.15332C5.12096 6.08031 5.12096 5.91968 5.23047 5.84668L13.7129 0.191406C13.8355 0.109694 14 0.197416 14 0.344727L14 11.6553Z" fill="white"/></svg>'},_n=function(){return'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M11.3206 14.3155C11.1375 14.0052 10.8796 13.7456 10.5704 13.5604C10.2613 13.3753 9.91067 13.2705 9.55061 13.2555C9.19055 13.2705 8.83996 13.3753 8.5308 13.5604C8.22163 13.7456 7.96373 14.0052 7.78061 14.3155C7.35864 15.014 7.1356 15.8145 7.1356 16.6305C7.1356 17.4466 7.35864 18.2471 7.78061 18.9455C7.96373 19.2559 8.22163 19.5155 8.5308 19.7007C8.83996 19.8858 9.19055 19.9906 9.55061 20.0055C9.91067 19.9906 10.2613 19.8858 10.5704 19.7007C10.8796 19.5155 11.1375 19.2559 11.3206 18.9455C11.7426 18.2471 11.9656 17.4466 11.9656 16.6305C11.9656 15.8145 11.7426 15.014 11.3206 14.3155V14.3155ZM9.55061 19.0355C8.77061 19.0355 8.11061 17.9355 8.11061 16.6255C8.11061 15.3155 8.77061 14.2155 9.55061 14.2155C10.3306 14.2155 10.9906 15.3155 10.9906 16.6255C10.9906 17.9355 10.3406 19.0355 9.55061 19.0355V19.0355ZM5.21061 20.0055V14.9055L4.73061 15.3855L4.05061 14.7055L5.35061 13.4055C5.41774 13.3382 5.50338 13.2923 5.59664 13.2737C5.68991 13.255 5.78661 13.2645 5.87446 13.301C5.96231 13.3374 6.03737 13.3991 6.09009 13.4783C6.14282 13.5574 6.17084 13.6504 6.17061 13.7455V20.0155L5.21061 20.0055V20.0055ZM21.4106 6.98555V19.5155C21.4089 19.6423 21.3577 19.7634 21.2681 19.853C21.1785 19.9427 21.0574 19.9938 20.9306 19.9955H14.6606V18.0655H19.4806V8.42555H7.91061V10.3555C7.91061 10.8855 7.55061 11.0755 7.11061 10.7855L2.93061 7.99555C2.78952 7.92442 2.68211 7.80061 2.63158 7.65091C2.58105 7.5012 2.59148 7.33762 2.66061 7.19555C2.71811 7.07805 2.81311 6.98305 2.93061 6.92555L7.11061 4.13555C7.55061 3.84555 7.91061 4.03555 7.91061 4.56555V6.49555H20.9206C21.05 6.49746 21.1735 6.54969 21.265 6.64118C21.3565 6.73266 21.4087 6.85618 21.4106 6.98555V6.98555Z" fill="white"/>\n </svg>'};function Pn(e,n){var t,o,i,r=Z(e),l=null==r||null===(t=r.controlBar)||void 0===t||null===(o=t.playToggle)||void 0===o?void 0:o.el_,a=document.getElementsByTagName("video")[0];null===(i=document)||void 0===i||i.addEventListener("keydown",function(t){var o,i,u,d,s,c,v,f,p;if(jn.enabled&&"input"!=t.target.localName){var m=t.key,g=!0===n.liveVideo||!0===n.liveui;switch([" ","m","M","f","F","ArrowLeft","ArrowRight"].includes(m)&&(t.preventDefault(),null==a||a.focus()),m){case" ":null==l||l.click();break;case"m":case"M":r.muted(!r.muted());break;case"f":case"F":null===(o=document.querySelector(".vjs-fullscreen-control"))||void 0===o||o.click();break;case"ArrowLeft":g&&!1===n.liveui||kt(e,10);break;case"ArrowRight":if("MEDIA_TAILOR"==(null===(i=window)||void 0===i||null===(u=i.app_data)||void 0===u||null===(d=u.appcmsMain)||void 0===d||null===(s=d.adsConfig)||void 0===s?void 0:s.vodAdSticherProvider)&&null!==(c=window)&&void 0!==c&&null!==(v=c.app_data)&&void 0!==v&&null!==(f=v.appcmsMain)&&void 0!==f&&null!==(p=f.adsConfig)&&void 0!==p&&p.vodAdClientSideTracking)return;g||Tt(e,10)}}},!0)}var Dn,jn=(Dn=!0,{enable:function(){Dn=!0},disable:function(){Dn=!1},get enabled(){return Dn}}),xn="ssai-breakStart",An="ssai-adImpression",Vn="ssai-firstQuartile",Rn="ssai-midpoint",Mn="ssai-thirdQuartile",Nn="ssai-complete",Bn="ssai-breakEnd",Fn={breakStart:xn,impression:An,firstQuartile:Vn,midpoint:Rn,thirdQuartile:Mn,complete:Nn,breakEnd:Bn};function Hn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=Z(e);if(!t)return console.error("[SSAI] Player instance not found"),{};var o=n.eventType,i=Fn[o];i&&t.trigger(i,n)}function Wn(e){var n=Z(e);if(!n)return console.error("[SSAI] Player instance not found"),{};var t=function(e,t){var o=function(e,n){return t(n)};return n.on(e,o),function(){return n.off(e,o)}};return{adBreakStart:function(e){return t(xn,e)},adImpression:function(e){return t(An,e)},adFirstQuartile:function(e){return t(Vn,e)},adMidpoint:function(e){return t(Rn,e)},adThirdQuartile:function(e){return t(Mn,e)},adComplete:function(e){return t(Nn,e)},adBreakEnd:function(e){return t(Bn,e)}}}function Un(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function Zn(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Un(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Un(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var Gn,zn=(Gn=null,{get:function(){return Gn},set:function(e){Gn=e}});function Yn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function qn(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Yn(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}function Qn(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return Kn(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Kn(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){a=!0,r=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw r}}}}function Kn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}var Jn,Xn=function(){var e="";return{set:function(n){n&&(e=n)},get:function(){return e}}}(),$n=(Jn=null,{set:function(e){Jn=e},get position(){return Jn}});function et(e,n){return nt.apply(this,arguments)}function nt(){return(nt=n(t.mark(function e(n,o){var i,r,l,u,d,s,c,v,f,p,m,g,h,w,y,b,I,C;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return Z(n),l=Le(o,n),u=l.src,d=(null==o?void 0:o.contentType)||"video",null==o||null===(i=o[d])||void 0===i||null===(r=i.streamingInfo)||void 0===r||r.isLiveStream,s=u.replace("/dash/","/session/").replace("/master/","/session/"),s=Se(s,n,o),c=ot(s),v=a(c,2),f=v[0],p=v[1],m=tt(p)||{},s=new URL(s.split("?")[0]),Object.keys(p).length>0&&Object.entries(p).forEach(function(e){var n=a(e,2),t=n[0],o=n[1];s.searchParams.set(t,o)}),e.prev=11,e.next=14,fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(qn({adsParams:qn({},f)},m))});case 14:return g=e.sent,e.next=17,g.json();case 17:return h=e.sent,w="https://"+new URL(s).hostname,y=h.trackingUrl,b=h.manifestUrl,I=w+y,C=w+b,Xn.set(I),console.log("%c TRACKING URL","background: #bdf369; color: #000",I),l.src=C,e.abrupt("return",l);case 29:return e.prev=29,e.t0=e.catch(11),e.abrupt("return",l);case 32:case"end":return e.stop()}},e,null,[[11,29]])}))).apply(this,arguments)}function tt(e){var n;return Object.fromEntries(null==Object||null===(n=Object.entries(e))||void 0===n?void 0:n.map(function(e){var n=a(e,2),t=n[0],o=n[1];return[null==t?void 0:t.replace(/^aws\./,""),String(o)]}))||{}}function ot(e){var n={};if(!e.split("?")[1])return[{},{}];var t,o=new URL(e,window.location.origin),i=Qn((null==o?void 0:o.searchParams)||[]);try{for(i.s();!(t=i.n()).done;){var r=a(t.value,2),l=r[0],u=r[1];n[decodeURIComponent(l)]=decodeURIComponent(u||"")}}catch(e){i.e(e)}finally{i.f()}for(var d={},s={},c=0,v=Object.entries(n);c<v.length;c++){var f=a(v[c],2),p=f[0],m=f[1];if(p.startsWith("ads."))d[p.replace(/^ads\./,"")]=m;else s[p]=m}return[d,s]}var it,rt,lt,at,ut=(it=[],{setQueuePoints:function(e){console.log("%c Setting SGAI Queue Points ","background: #bdf369; color: #000",e),it=Array.isArray(e)?l(e):it},getQueuePoints:function(){return console.log("%c Getting SGAI Queue Points ","background: #bdf369; color: #000",it),l(it)}}),dt=new Map;function st(e,n){return ct.apply(this,arguments)}function ct(){return ct=n(t.mark(function e(o,i){var r,a,u,d,s,c,v,f,p,m,g,h,w,y,b,I,C,E,T,k,S,O;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:O=function(e,n,t,i,r,l){var a=Z(o);if(!a.seeking()){n.startTimeInSeconds,n.durationInSeconds,Math.floor(a.currentTime());var u,d=Qn(t);try{var s=function(){var t,d,s,c=u.value,v=c.eventType,f=c.beaconUrls,p=c.startTimeInSeconds,m=c.startTime,g=c.durationInSeconds,h=p||0,w=f,y=(null===(t=window)||void 0===t||null===(d=t.customData)||void 0===d||null===(s=d.ads)||void 0===s?void 0:s.adEventHandler)||null,b="".concat(h,"_").concat(v),I=dt.get("pod-".concat(r))||[];if(console.warn(e,h,"map:",v,"condition1:",e>=h,"map:",dt),e>=h&&!I.includes(b)){I.push(b),dt.set("pod-".concat(r),I);try{S(v,n,w,a)}catch(e){console.error("Error when calling triggerAdBeacon:",e,v,n)}if("breakEnd"==v){var C=$n.position;$n.set(null),setTimeout(function(){null!=C&&(a.currentTime(C),l())},500)}if("function"==typeof y)try{var E,T={eventType:v,startTimeInSeconds:p,startTime:m,durationInSeconds:g,ad:null==n||null===(E=n.ads)||void 0===E?void 0:E[i],pod:n,adIndex:i};y({adsData:T}),Hn(o,T)}catch(e){console.error("Error when calling ads callback:",e)}var k=zn.get();if(k&&0!==Object.keys(k).length){var O=k||{},L=O.formulateComscoreAdPayload,_=O.startComscoreAdTracking,P=O.finishComscoreAdTracking,D=O.endComscoreAdTracking;if("impression"===v){var j,x=Xn.get();_(L(qn(qn({},null==n||null===(j=n.ads)||void 0===j?void 0:j[i]),{},{trackingUrl:x})))}else"complete"===v?P():"breakEnd"===v&&D()}}};for(d.s();!(u=d.n()).done;)s()}catch(e){d.e(e)}finally{d.f()}}},S=function(e,n,t,o){console.warn("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",n),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",n),null==t||t.forEach(function(e){fetch(e,{mode:"no-cors"}).catch(function(n){console.warn("Beacon failed:",e,n)})})},k=function(e){var n=Math.floor(e/60),t=Math.floor(e%60);return"".concat(n,":").concat(t.toString().padStart(2,"0"))},dt.clear(),$n.set(i),p=Xn.get(),(m=Z(o)).one("loadeddata",function(){p&&T(p)}),g=new Map,h=new Map,w=-1,y=(null===(r=document)||void 0===r||null===(a=r.getElementsByClassName("tvProviderImage"))||void 0===a?void 0:a[0])||null,b=(null==m||null===(u=m.controlBar)||void 0===u?void 0:u.getChild("videoSelector"))||null,I=(null==m||null===(d=m.controlBar)||void 0===d?void 0:d.getChild("seriesV2"))||null,C=(null==m||null===(s=m.el())||void 0===s||null===(c=s.getElementsByClassName("vjs-button vjs-rewind-button"))||void 0===c?void 0:c[0])||null,E=(null==m||null===(v=m.el())||void 0===v||null===(f=v.getElementsByClassName("vjs-button vjs-skip-button"))||void 0===f?void 0:f[0])||null,T=function(){var e=n(t.mark(function e(n){var r,a,u,d,s,c,v,f,p,m,T,S,L,_,P,D,j,x,A,V,R,M,N,B;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return V=function(e){document.removeEventListener("pointermove",A),document.removeEventListener("pointerup",V),0===e.button&&j()},A=function(e){},x=function(){var e,n=m.currentTime(),t=null,o=Qn(p);try{for(o.s();!(e=o.n()).done;){var i=e.value,r=i.startTimeInSeconds,l=i.durationInSeconds,a=(i.ads,Math.floor(r+l));n>=r&&n<=a&&(t=a,g.set(r,!0))}}catch(e){o.e(e)}finally{o.f()}null!==t&&(console.log("Seeking to end of the ad pod:",t),setTimeout(function(){m.currentTime(t+2.2)},100))},j=function(){var e,n=m.currentTime(),t=null,o=Qn(p);try{for(o.s();!(e=o.n()).done;){var i=e.value,r=i.startTimeInSeconds,l=i.durationInSeconds,a=i.ads,u=Math.floor(r+l);(Array.isArray(a)&&(null==a?void 0:a.length)>0&&(n>u||n>r)&&!g.has(r)||n>=r&&n<=u)&&(t=r,g.set(r,!0),h.set(r,!0))}}catch(e){o.e(e)}finally{o.f()}null!==t&&(console.log("Seeking back to ad pod:",t),setTimeout(function(){m.currentTime(t+.4)},100))},s=!1,e.next=7,fetch(n);case 7:return c=e.sent,e.next=10,c.json();case 10:v=e.sent,console.log("%c TRACKING URL RESPONSE ","background: #d9e7ff; color: #000",v),f=v.avails,p=[],m=Z(o),T=m.controlBar.progressControl,S=T.seekBar.el(),null===(r=document)||void 0===r||r.querySelectorAll(".vjs-seekbar-marker").forEach(function(e){return null==e?void 0:e.remove()}),f.map(function(e,n){var t,o,i;0==n&&Array.isArray(null==e?void 0:e.ads)&&(null==e||null===(t=e.ads)||void 0===t?void 0:t.length)>0&&(s=!0),p.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds),podSlotImpressionBeacon:(null==e||null===(o=e.adBreakTrackingEvents)||void 0===o||null===(i=o.filter(function(e){return"breakStart"==(null==e?void 0:e.eventType)}))||void 0===i?void 0:i[0])||[]})}),!s&&i&&(m.currentTime(i),x()),null!=p&&p.length&&(console.log("%c SSAI AD PODS ","background: #bdf369; color: #000",p),window.adsQueueList=p,"function"==typeof(D=(null===(L=window)||void 0===L||null===(_=L.customData)||void 0===_||null===(P=_.ads)||void 0===P?void 0:P.onAdBreaksLoaded)||null)&&(null==p?void 0:p.length)>0&&D(p)),console.log(p,"data"),p.forEach(function(e){var n=e.markerPositionInSeconds,t=e.ads,o=m.duration();if(!(n>o||Array.isArray(t)&&0==(null==t?void 0:t.length))){var i=n/o*100,r=document.createElement("div");r.className="vjs-seekbar-marker",r.style.left="".concat(i,"%"),r.style.position="absolute",r.style.top="0",r.style.bottom="0",r.style.width="2px",r.style.backgroundColor="#fecc09",r.style.left="".concat(i,"%"),r.style.pointerEvents="none",S.appendChild(r)}}),m._timeUpdateHandler&&m.off("timeupdate",m._timeUpdateHandler),m._timeUpdateHandler=an(function(){var e=m.currentTime();if(e!==w){w=e;for(var n=!1,t=function(){var t=p[o],i=t.startTimeInSeconds,r=t.durationInSeconds,a=t.ads,u=i+r;if(e>=i-1.2&&e<=u+1.2){e>=i&&e<=u&&Array.isArray(a)&&(null==a?void 0:a.length)>0&&(n=!0),e>u&&g.set(i,!0),jn.disable(),y&&y.classList.add("vjs-hidden"),C&&(C.style.pointerEvents="none",C.classList.add("vjs-hidden")),E&&(E.style.pointerEvents="none",E.classList.add("vjs-hidden")),b&&(b.el().style.pointerEvents="none",b.el().classList.add("vjs-hidden")),I&&(I.el().style.pointerEvents="none",I.el().classList.add("vjs-hidden")),T.el().classList.add("hide-progress-bar");for(var d=e-i,s=0,c=0,v=0;v<a.length;v++){var f,m=null==a||null===(f=a[v])||void 0===f?void 0:f.durationInSeconds;if(d<s+m){c=v;break}s+=m}a[c];var w=Math.max(0,r-d),S=Math.round(w);R.style.display="block",B.textContent="".concat(c+1," of ").concat(a.length," • ").concat(k(S));var L=[];return null==a||a.forEach(function(e){var n=e.trackingEvents.filter(function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression","complete"].includes(e.eventType)});L.push.apply(L,l(n))}),Array.isArray(a)&&0==(null==a?void 0:a.length)&&L.push(null==t?void 0:t.podSlotImpressionBeacon),O(e,t,L,c,o,x),"break"}h.delete(i)},o=0;o<p.length;o++){if("break"===t())break}n||(R.style.display="none",T.el().classList.remove("hide-progress-bar"),b&&(b.el().style.pointerEvents="auto",b.el().classList.remove("vjs-hidden")),I&&(I.el().style.pointerEvents="auto",I.el().classList.remove("vjs-hidden")),y&&y.classList.remove("vjs-hidden"),C&&(C.style.pointerEvents="auto",C.classList.remove("vjs-hidden")),E&&(E.style.pointerEvents="auto",E.classList.remove("vjs-hidden")),jn.enable())}},1e3),m.on("timeupdate",m._timeUpdateHandler),null===(a=document)||void 0===a||a.addEventListener("keydown",function(e){jn.enabled&&"ArrowRight"==e.key&&(j(),Tt(o,10),e.stopPropagation())}),T.el().addEventListener("pointerdown",function(e){0===e.button&&(document.addEventListener("pointermove",A),document.addEventListener("pointerup",V))}),null===(u=document)||void 0===u||null===(d=u.querySelectorAll(".ssai-ad-container"))||void 0===d||d.forEach(function(e){return null==e?void 0:e.remove()}),(R=document.createElement("div")).className="ssai-ad-container",(M=document.createElement("div")).className="sponsored-adbox",(N=document.createElement("div")).className="sponsored-text",N.textContent="Sponsored Ad",M.append(N),(B=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",R.append(M),R.append(B),m.el().appendChild(R);case 45:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}();case 18:case"end":return e.stop()}},e)})),ct.apply(this,arguments)}function vt(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return ft(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ft(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){a=!0,r=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw r}}}}function ft(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}function pt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function mt(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):pt(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var gt={},ht=(null===(rt=window)||void 0===rt||null===(lt=rt.location)||void 0===lt||null===(at=lt.search)||void 0===at?void 0:at.includes("debug=true"))||!1,wt=null;function yt(e){return bt.apply(this,arguments)}function bt(){return bt=n(t.mark(function e(o){var i,r,a,u,d,s,c,v,f,p,m,g,h,w,y,b,I,C,E,T,k,S,O,L,_,P,D;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:D=function(e,n,t,i,r){var l,a,u=null==n||null===(l=n.ads)||void 0===l||null===(a=l[i])||void 0===a?void 0:a.adId,d=Z(o);if(!d.seeking()){var s=n.startTimeInSeconds;n.durationInSeconds,Math.floor(d.currentTime());var c,v=vt(t);try{for(v.s();!(c=v.n()).done;){var f,p,m,g=c.value,h=g.eventType,w=g.beaconUrls,y=g.startTimeInSeconds,b=g.startTime,I=g.durationInSeconds,C=(g.eventId,y||0),E=w,T=(null===(f=window)||void 0===f||null===(p=f.customData)||void 0===p||null===(m=p.ads)||void 0===m?void 0:m.adEventHandler)||null,k="".concat(u,"_").concat(h),S="pod-".concat(s);L.has(S)||L.set(S,new Set);var O=L.get(S);if(ht&&console.warn(e,C,"map:",h,"condition1:",e>=C,"map:",L),e>=C&&e<=C+_&&!O.has(k)){O.add(k);try{P(h,n,E,d)}catch(e){console.error("Error when calling triggerAdBeacon:",e,h,n)}if("function"==typeof T)try{var D,j={eventType:h,startTimeInSeconds:y,startTime:b,durationInSeconds:I,ad:null==n||null===(D=n.ads)||void 0===D?void 0:D[i],pod:n,adIndex:i};T({adsData:j}),Hn(o,j)}catch(e){console.error("Error when calling ads callback:",e)}}}}catch(e){v.e(e)}finally{v.f()}}},P=function(e,n,t,o){var i,r;"breakEnd"===e&&(null===(i=gt)||void 0===i?void 0:i.currentAdIndex)+1!=(null===(r=gt)||void 0===r?void 0:r.totalAds)||(ht&&(console.warn("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",n),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",n)),null==t||t.forEach(function(e){fetch(e,{mode:"no-cors"}).catch(function(n){console.warn("Beacon failed:",e,n)})}))},m=function(){wt&&clearInterval(wt)},f=Xn.get(),(p=Z(o)).one("loadeddata",function(){m(),wt=setInterval(function(){f&&!p.paused()&&O(f)},2e3)}),p.on("dispose",function(){m()}),g=new Map,h=new Map,w=-1,y=null,b=(null===(i=document)||void 0===i||null===(r=i.getElementsByClassName("tvProviderImage"))||void 0===r?void 0:r[0])||null,I=(null==p||null===(a=p.controlBar)||void 0===a?void 0:a.getChild("videoSelector"))||null,C=(null==p||null===(u=p.controlBar)||void 0===u?void 0:u.getChild("seriesV2"))||null,E=(null==p||null===(d=p.el())||void 0===d||null===(s=d.getElementsByClassName("vjs-button vjs-rewind-button"))||void 0===s?void 0:s[0])||null,T=(null==p||null===(c=p.el())||void 0===c||null===(v=c.getElementsByClassName("vjs-button vjs-skip-button"))||void 0===v?void 0:v[0])||null,k=!1,S=function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0==(null==t?void 0:t.length))return l(o);var i=[],r=null==o?void 0:o.find(function(e){return"breakEnd"===(null==e?void 0:e.eventType)}),a=(null==r||null===(e=r.beaconUrls)||void 0===e?void 0:e.find(function(e){return e.includes("videoView")}))||null,u=(null==t?void 0:t.length)>1?null==t?void 0:t[(null==t?void 0:t.length)-1]:null==t?void 0:t[0],d=null==u||null===(n=u.trackingEvents)||void 0===n?void 0:n.filter(function(e){return["breakEnd"].includes(null==e?void 0:e.eventType)}),s=(null==d?void 0:d.some(function(e){var n;return null==e||null===(n=e.beaconUrls)||void 0===n?void 0:n.some(function(e){return e.includes("videoView")})}))||!1;if(!s&&a){var c=null==d?void 0:d.map(function(e){return mt(mt({},e),{},{eventType:"videoView",beaconUrls:[a]})});null!=c&&c[0]&&i.push(null==c?void 0:c[0])}return i},O=function(){var e=n(t.mark(function e(n){var i,r,a,u,d,s,c,v,f,p,m,O,L,_;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=new URL(n),y&&r.searchParams.append("nextToken",y),e.next=4,fetch(r.toString(),{method:"GET"});case 4:return a=e.sent,e.next=7,a.json();case 7:u=e.sent,d=u.avails,s=u.nextToken||null,y=s,c=[],v=Z(o),f=v.controlBar.progressControl,p=f.seekBar.el(),null===(i=document)||void 0===i||i.querySelectorAll(".vjs-seekbar-marker").forEach(function(e){return null==e?void 0:e.remove()}),d.map(function(e,n){c.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds),podSlotImpressionBeacon:S(null==e?void 0:e.ads,null==e?void 0:e.adBreakTrackingEvents)})}),ht&&console.log("%c SSAI AD PODS ","background: #bdf369; color: #000",c),null!=c&&c.length&&(window.adsQueueList=c,"function"==typeof(_=(null===(m=window)||void 0===m||null===(O=m.customData)||void 0===O||null===(L=O.ads)||void 0===L?void 0:L.onAdBreaksLoaded)||null)&&(null==c?void 0:c.length)>0&&_(c)),c.forEach(function(e){var n=e.markerPositionInSeconds,t=e.ads,o=v.duration();if(!(n>o||Array.isArray(t)&&0==(null==t?void 0:t.length))){var i=n/o*100,r=document.createElement("div");r.className="vjs-seekbar-marker",r.style.left="".concat(i,"%"),r.style.position="absolute",r.style.top="0",r.style.bottom="0",r.style.width="2px",r.style.backgroundColor="#fecc09",r.style.left="".concat(i,"%"),r.style.pointerEvents="none",p.appendChild(r)}}),v._timeUpdateHandler&&v.off("timeupdate",v._timeUpdateHandler),v._timeUpdateHandler=an(function(){var e=v.currentTime();if(e!==w){w=e;for(var n=function(){var n=c[t],o=n.startTimeInSeconds,i=n.durationInSeconds,r=n.ads,a=o+i;if(e>=o-1.2&&e<=a+1.2){var u;k=!!(e>=o&&e<=a&&Array.isArray(r)&&(null==r?void 0:r.length)>0),e>a&&g.set(o,!0),jn.disable(),b&&b.classList.add("vjs-hidden"),E&&(E.style.pointerEvents="none",E.classList.add("vjs-hidden")),T&&(T.style.pointerEvents="none",T.classList.add("vjs-hidden")),I&&(I.el().style.pointerEvents="none",I.el().classList.add("vjs-hidden")),C&&(C.el().style.pointerEvents="none",C.el().classList.add("vjs-hidden")),f.el().classList.add("hide-progress-bar");for(var d=e-o,s=0,v=0,p=0;p<r.length;p++){var m,w=null==r||null===(m=r[p])||void 0===m?void 0:m.durationInSeconds;if(d<s+w){v=p;break}s+=w}setTimeout(function(){gt.totalAds=null==r?void 0:r.length,gt.currentAdIndex=v},1e3);var y=[];return null==r||r.forEach(function(e){var n=e.trackingEvents.filter(function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression","complete"].includes(e.eventType)});y.push.apply(y,l(n))}),(null==n||null===(u=n.podSlotImpressionBeacon)||void 0===u?void 0:u.length)>0&&y.push.apply(y,l(null==n?void 0:n.podSlotImpressionBeacon)),D(e,n,y,v),"break"}h.delete(o)},t=0;t<c.length;t++){if("break"===n())break}k||(gt={},f.el().classList.remove("hide-progress-bar"),I&&(I.el().style.pointerEvents="auto",I.el().classList.remove("vjs-hidden")),C&&(C.el().style.pointerEvents="auto",C.el().classList.remove("vjs-hidden")),b&&b.classList.remove("vjs-hidden"),E&&(E.style.pointerEvents="auto",E.classList.remove("vjs-hidden")),T&&(T.style.pointerEvents="auto",T.classList.remove("vjs-hidden")),jn.enable())}},1e3),v.on("timeupdate",v._timeUpdateHandler);case 23:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),L=new Map,_=2.5;case 22:case"end":return e.stop()}},e)})),bt.apply(this,arguments)}function It(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}var Ct=function(e){i(e).play()},Et=function(e){i(e).pause()},Tt=function(e,n){var t=i(e),o=t.currentTime()+n;t.currentTime(o)},kt=function(e,n){var t=i(e),o=t.currentTime(),r=o<=n?0:o-n;t.currentTime(r)},St=function(e){return!!i.getPlayer("".concat(e))},Ot=function(e){return i(e).paused()},Lt=function(){var e=n(t.mark(function e(o,i){var r,l,a,u=arguments;return t.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,H();case 3:return l=e.sent,a=Z(o),e.abrupt("return",new Promise(function(e,u){var d=(null==i?void 0:i.programs)||[];null==i||delete i.programs,C(i,l).then(function(){var l=n(t.mark(function n(l){var u,s,c,v,f,p,m,g;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(p=null==l?void 0:l.data,window.sid=ue(),p.contentType="linearchannel",p.channelId=null==i?void 0:i.channelId,m=(null==p||null===(u=p.linearchannel)||void 0===u?void 0:u.isSSAIEnabled)&&"MEDIA_TAILOR"==(null===(s=window)||void 0===s||null===(c=s.app_data)||void 0===c||null===(v=c.appcmsMain)||void 0===v||null===(f=v.adsConfig)||void 0===f?void 0:f.vodAdSticherProvider)||!1,g=Le(p,o),!m){n.next=11;break}return n.next=9,et(o,p);case 9:g=n.sent,r=!0;case 11:z(p),oe(d),sessionStorage.setItem("program_switched",!0),g&&r?(xt(o,g),m&&yt(o),a.on("loadstart",function(){e({status:!0,msg:"Feed authenticated and loaded",response:p})})):e({status:!0,msg:"Feed authenticated",response:p});case 15:case"end":return n.stop()}},n)}));return function(e){return l.apply(this,arguments)}}()).catch(function(e){u({status:!1,msg:"Cannot load feed",response:e})})}));case 6:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),_t=function(){var e=n(t.mark(function e(o,i,r){var l,a,u,d,s,c,v;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H();case 2:return d=e.sent,(K()||null)&&ne(i),s=0,c=0,v=null,null!==(l=window)&&void 0!==l&&l.watchHistory&&null!==(a=window)&&void 0!==a&&null!==(u=a.watchHistory)&&void 0!==u&&u.enable&&k(i,d).then(function(e){var n,t,o,i,r,l,a;(null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(null==e?void 0:e.data)),s=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,(c=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedPercentage)||null)<95)&&(v=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedTime)||null)}).catch(function(e){var n,t,o,i;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(e))}),e.abrupt("return",new Promise(function(e,r){I(i,d).then(function(){var i=n(t.mark(function n(i){var l,a,u,d,f,p,m,g,h,w,y,b,I,C,E,T,k,S,O,L,_,P,D,j,x,A,V,R,M,N,B,F,H,W,U,G,Y,q;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(T=null==i?void 0:i.data,k=(null==T?void 0:T.contentType)||"video",S=(null==T||null===(l=T[k])||void 0===l?void 0:l.isSSAIEnabled)&&"MEDIA_TAILOR"==(null===(a=window)||void 0===a||null===(u=a.app_data)||void 0===u||null===(d=u.appcmsMain)||void 0===d||null===(f=d.adsConfig)||void 0===f?void 0:f.vodAdSticherProvider)||!1,O=(null==T||null===(p=T.video)||void 0===p||null===(m=p.streamingInfo)||void 0===m?void 0:m.isLiveStream)||!1,z(i.data),(L=(null==T||null===(g=T.ads)||void 0===g||null===(h=g.preRoll)||void 0===h||null===(w=h.adTags)||void 0===w||null===(y=w.web)||void 0===y?void 0:y.active)&&(null==T||null===(b=T.ads)||void 0===b||null===(I=b.preRoll)||void 0===I||null===(C=I.adTags)||void 0===C||null===(E=C.web)||void 0===E?void 0:E.url))&&Ze(o,L,T),_=Le(T,o),!S){n.next=12;break}return n.next=11,et(o,T);case 11:_=n.sent;case 12:_?(F=(null==T||null===(P=T.video)||void 0===P||null===(D=P.gist)||void 0===D?void 0:D.videoImageUrl)||(null==T||null===(j=T.video)||void 0===j||null===(x=j.gist)||void 0===x||null===(A=x.imageGist)||void 0===A?void 0:A.r16x9),(H=Z(o)).poster(F),xt(o,_),S&&st(o,v),H.on("loadstart",function(){O&&e({status:!0,msg:"Video Loaded",response:T})}),H.on("loadeddata",function(){Me(),e({status:!0,msg:"Video Loaded",response:T})}),H.one("play",function(){s&&!S&&c<95&&setTimeout(function(){H.currentTime(s)},0)}),H.one("error",function(){var e;r({status:!1,msg:(null==H||null===(e=H.error())||void 0===e?void 0:e.message)||"Some error occured"})}),(null==T||null===(V=T.video)||void 0===V||null===(R=V.contentDetails)||void 0===R||null===(M=R.closedCaptions)||void 0===M?void 0:M.length)>0||(null==T||null===(N=T.video)||void 0===N||null===(B=N.closedCaptions)||void 0===B?void 0:B.length)>0?(q=(null==T||null===(U=T.video)||void 0===U||null===(G=U.contentDetails)||void 0===G?void 0:G.closedCaptions)||(null==T||null===(Y=T.video)||void 0===Y?void 0:Y.closedCaptions),W=q.filter(function(e){return"VTT"===e.format}),We(o,W)):He(o)):(Re(o,"Incompatible Source, only hls,mp4,drm content is allowed"),r("Incompatible Source, only hls,mp4,drm content is allowed"));case 13:case"end":return n.stop()}},n)}));return function(e){return i.apply(this,arguments)}}()).catch(function(e){At(e,o,r,i)})}));case 10:case"end":return e.stop()}},e)}));return function(n,t,o){return e.apply(this,arguments)}}(),Pt=function(e,n,t){var o=Z(e);return o.src(n),new Promise(function(e,n){var i=0;o.one("loadedmetadata",function(){clearTimeout(i),e({status:!0,msg:"video loaded"})}),o.one("loadstart",function(e){i=setTimeout(function(){n("FAILED: Took too long to load")},t)})})},Dt=function(e){var n=(zn.get()||{}).destroyComscoreTag,t=Z(e);if(jt(),"function"==typeof n&&n(),window._orientationChangeHandler&&(window.removeEventListener("resize",window._orientationChangeHandler),delete window._orientationChangeHandler),window._multiplayer_dbClickHandler&&(window.removeEventListener("dblclick",window._multiplayer_dbClickHandler),delete window._multiplayer_dbClickHandler),window._multiplayer_dbTapHandler&&(window.removeEventListener("touchend",window._multiplayer_dbTapHandler),delete window._multiplayer_dbTapHandler),window.onresize=null,t)t.dispose();else{var o=document.getElementById(e);o&&o.remove()}},jt=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()},xt=function(e,n){var t=Z(e);t&&t.src(n)},At=function(n,t,o,i){var r,l,a,u,d,s,c=null==n||null===(r=n.response)||void 0===r||null===(l=r.data)||void 0===l?void 0:l.errorCode,v=(null==n||null===(a=n.response)||void 0===a||null===(u=a.data)||void 0===u?void 0:u.errorMessage)||(null==n?void 0:n.message);St(t)&&Re(t,(null===(d=window)||void 0===d?void 0:d.customErrors)&&(null===(s=window)||void 0===s?void 0:s.customErrors[c])||"".concat(v)),o&&o(function(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?It(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):It(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}({status:!1,response:n,msg:"".concat(v)},i&&{videoId:i}))},Vt=function(e){var n=document.getElementById(e),t=n.getElementsByClassName("vjs-control-bar")[0];t&&(t.style.visibility="hidden");var o=n.getElementsByClassName("vjs-big-play-button")[0];o&&(o.style.display="none");var i=n.getElementsByClassName("vjs-fullscreen-control")[0];i&&(i.style.display="none")},Rt=function(e){var n,t=Z(e);return!(null!=t&&null!==(n=t.liveTracker)&&void 0!==n&&n.atLiveEdge())||null},Mt=!1,Nt=function(e,n,t){var o=Z(e);o?n>=0&&n<=o.duration()?(t({status:!0,msg:"Successfully seeked to timestamp : ".concat(n)}),o.currentTime(n)):t({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):t("Cannot find player with id: '".concat(e,"'"))},Bt=function(e,n){var t=Z(e);t?(t.on("ended",function(){return Mt=!0}),t.on("timeupdate",function(){if(!t.paused()&&Mt){var e,o,i=null===(e=q())||void 0===e||null===(o=e.video)||void 0===o?void 0:o.id;Y.get(i)?(Y.clear(),dt.clear(),n(),Y.set(i)):(Y.clear(),Y.set(i)),Mt=!1}})):n("Cannot find player with id: '".concat(e,"'"))},Ft=function(e,n){var t=Z(e);if(!t)return"Cannot find player with id: '".concat(e,"'");try{return t.playbackRate(n),"Playback speed set to ".concat(n,"x")}catch(e){return"Error: ".concat(e)}},Ht=function(e,n){var t=Z(e);t?t.on("timeupdate",function(){return n(t.currentTime())}):n("Cannot find player with id: '".concat(e,"'"))},Wt=function(e,n){var t=Z(e);t?t.on("ended",function(){return n(!0)}):n("Cannot find player with id: '".concat(e,"'"))},Ut=function(e){var n=Z(e);return n?n.duration():"Cannot find player with id: '".concat(e,"'")};function Zt(){var e=function(e,n){var t=Z(e);if(!t)throw"Cannot find player with id: '".concat(e,"'");if("function"!=typeof n)throw"Callback function (cb) is missing or not a function";return t};return{onPlay:function(n,t){e(n,t).on("play",function(){return t()})},onPause:function(n,t){e(n,t).on("pause",function(){return t()})},onMute:function(n,t){var o=e(n,t);o.on("volumechange",function(){o.muted()?t({muted:!0}):t({muted:!1})})},onPictureInPictureChange:function(n,t){var o=e(n,t);o.on("enterpictureinpicture",function(){t({pip:!0})}),o.on("leavepictureinpicture",function(){t({pip:!1})})},onFullScreenChange:function(n,t){var o=e(n,t);o.on("fullscreenchange",function(e){o.isFullscreen_?t({isFullscreen:!0}):t({isFullscreen:!1})})},onSetVolume:function(n,t){var o=e(n,t);o.on("volumechange",function(){var e=100*o.volume().toFixed(2);o.muted()?t({vol:0}):t({vol:e})})},onSeeked:function(n,t){var o=e(n,t);o.on("seeked",function(){t({seeked:o.currentTime()})})},onSubtitleEnable:function(n,t){var o=e(n,t);o.textTracks().on("change",function(e){console.log(o.textTracks());var n=o.textTracks().tracks_.filter(function(e){return("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode});n.length>0&&t({enabled:n[0]})})},onDisableSubtitles:function(n,t){var o=e(n,t);o.textTracks().on("change",function(e){var n,i;console.log(o.textTracks()),(null==o||null===(n=o.textTracks())||void 0===n||null===(i=n.tracks_)||void 0===i?void 0:i.every(function(e){return"showing"!=e.mode}))&&t({captions_disabled:!0})})},onSubtitleCueChange:function(n,t){var o=e(n,t);o.on("loadeddata",function(){var e,n,i,r,l,a=o.textTracks();"object"==v(o.dash)&&null!=o.dash&&o.dash.mediaPlayer.on(null===(n=window)||void 0===n||null===(i=n.dashjs)||void 0===i||null===(r=i.MediaPlayer)||void 0===r||null===(l=r.events)||void 0===l?void 0:l.CAPTION_RENDERED,function(e){t(e)});for(var u=0;u<a.length;u++){var d=a[u];"metadata"===d.kind&&(d.mode="hidden",e=d)}e&&e.addEventListener("cuechange",function(){var n=e.activeCues;if(n&&n.length>0)for(var o=0;o<n.length;o++){var i=n[o];t(i)}else console.log("no active cue at this moment")})})},onError:function(n,t){var o=e(n,t);o.on("error",function(){var e,n;t({error:null==o||null===(e=o.error())||void 0===e?void 0:e.code,msg:null==o||null===(n=o.error())||void 0===n?void 0:n.message})})}}}var Gt=function(e){var n,t=Z(e),o=[];if((null==t||null===(n=t.tech_)||void 0===n?void 0:n.vhs)||!1){var i,r,l=null==t||null===(i=t.tech_)||void 0===i||null===(r=i.vhs)||void 0===r?void 0:r.representations();(null==l?void 0:l.length)>0&&(o=null==l?void 0:l.sort(function(e,n){return(null==e?void 0:e.height)==(null==n?void 0:n.height)?(null==n?void 0:n.bandwidth)-(null==e?void 0:e.bandwidth):(null==n?void 0:n.height)-(null==e?void 0:e.height)}))}else{var a,u,d=null==t||null===(a=t.dash)||void 0===a||null===(u=a.mediaPlayer)||void 0===u?void 0:u.getRepresentationsByType("video");(null==d?void 0:d.length)>0&&(o=null==d?void 0:d.sort(function(e,n){return n.height-e.height}))}return o};i.getComponent("Component");var zt=function(e,n,t){var o,r=Z(e),l=null==n?void 0:n.bandwidth;if((null==r||null===(o=r.tech_)||void 0===o?void 0:o.vhs)||!1){r.tech_.vhs.representations().forEach(function(e){t||e.bandwidth===l?e.enabled(!0):e.enabled(!1)}),r.handleTechPlaying_();var a=r.currentTime();r.currentTime(0),setTimeout(function(){r.currentTime(a)},100);var u=i.dom.$(".content");u&&i.dom.addClass(u,"resolution_hidden")}else{var d=null==n?void 0:n.qualityIndex;if(t){var s,c;null==r||null===(s=r.dash)||void 0===s||null===(c=s.mediaPlayer)||void 0===c||c.resetSettings()}else{var v,f,p,m;null==r||null===(v=r.dash)||void 0===v||null===(f=v.mediaPlayer)||void 0===f||f.updateSettings({streaming:{abr:{autoSwitchBitrate:!1}}}),null==r||null===(p=r.dash)||void 0===p||null===(m=p.mediaPlayer)||void 0===m||m.setRepresentationForTypeByIndex("video",d,!0);var g=r.currentTime();r.currentTime(0),setTimeout(function(){r.currentTime(g)},100);var h=i.dom.$(".content");h&&i.dom.addClass(h,"resolution_hidden")}}},Yt=function(e,n,t){var o=Z(e);if(o)if(n>=0&&n<=100){o.muted()&&o.muted(!1);var i=parseFloat(n)/100;o.volume(i),t&&t({status:!0,msg:"Volume set to ".concat(n,"%")})}else t&&t({status:!1,msg:"Please enter a valid volume percentage (0 ≥ V ≤ 100)"});else t({status:!1,msg:"Cannot find player with id: '".concat(e,"'")})},qt=function(e){var n=Z(e);return n?parseInt(100*n.volume())+"%":"Cannot find player with id: '".concat(e,"'")},Qt={},Kt=function(e){Qt=e},Jt=function(e){var n;return(null===(n=Qt)||void 0===n?void 0:n[e])||""},Xt=function(){var e=n(t.mark(function e(n){var o,r,l,a,u;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l=Z(null==n?void 0:n.playerId),null!=n&&null!==(o=n.series)&&void 0!==o&&o.enable||!(null!=n&&n.chromecastReceiverId||null!=n&&n.airplay)){e.next=10;break}return e.prev=2,e.next=5,Ae("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1");case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),console.log("Error",e.t0);case 10:if(null!=n&&null!==(r=n.series)&&void 0!==r&&r.enable||null==n||!n.chromecastReceiverId){e.next=21;break}return e.next=13,import("@silvermine/videojs-chromecast");case 13:e.sent.default(i),(u=i.getTech("chromecast"))&&!u.prototype.seeking&&(u.prototype.seeking=function(){}),null!==(a=window)&&void 0!==a&&a.cast?null==l||l.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}):window.__onGCastApiAvailable=function(){null==l||l.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0})},e.next=22;break;case 21:console.log("Chromecast plugin is not available");case 22:null!=n&&n.airplay&&"Safari"==ge()?null==l||l.airPlay({addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5}):console.log("AirPlay plugin is not available");case 23:case"end":return e.stop()}},e,null,[[2,7]])}));return function(n){return e.apply(this,arguments)}}(),$t=function(e,n){var t=Z(e);t&&n&&t.controlBar&&t.controlBar.progressControl.seekBar.on("click",function(n){var t,o,r,l,a,u=this.el(),d=i.dom.getPointerPosition(u,n).x;i.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var s=window.cast&&window.cast.framework&&window.cast.framework.CastSession,c=null===(t=window)||void 0===t||null===(o=t.cast)||void 0===o||null===(r=o.framework)||void 0===r||null===(l=r.CastContext)||void 0===l||null===(a=l.getInstance())||void 0===a?void 0:a.S;if(console.log(s),s&&"CONNECTED"===c){window.cast.framework.RemotePlayer.canSeek=!0;var v=new window.cast.framework.RemotePlayerController(window.cast.framework.RemotePlayer),f=v.h.media[0].liveSeekableRange.end;v.getSeekPosition(),window.cast.framework.RemotePlayer.currentTime=f*d,v.seek()}})};var eo=function(){var e=n(t.mark(function e(){return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([import("videojs-contrib-ads"),import("ima"),Ae("https://imasdk.googleapis.com/js/sdkloader/ima3.js").then(function(){}).catch(function(e){return console.log(e)})]);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),no=function(){var e=n(t.mark(function e(){return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,import("@viewlift/comscore/index.js").then(function(e){zn.set(e)});case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),to=function(){var e=n(t.mark(function e(){return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("utilising contrib eme"),e.next=3,import("videojs-contrib-eme").then(function(e){i.getPlugin("eme")||i.registerPlugin("eme",e.default)});case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),oo=function(){var e=n(t.mark(function e(){var n;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("videojs-mux");case 3:if(!(n=e.sent)||"function"!=typeof n.register){e.next=7;break}return n.register(i),e.abrupt("return");case 7:console.log("Mux registration failed"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.log("Failed to load Mux plugin:",e.t0);case 13:case"end":return e.stop()}},e,null,[[0,10]])}));return function(){return e.apply(this,arguments)}}(),io=function(){var e=n(t.mark(function e(){return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("./index-6ecf4a3a.js");case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error("Failed to load dvr seekbar");case 8:case"end":return e.stop()}},e,null,[[0,5]])}));return function(){return e.apply(this,arguments)}}(),ro=function(){var e=n(t.mark(function e(){return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("./videojs-dash5.es-9868b8c7.js");case 3:console.log("utilising contrib dash"),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error("Failed to load contrib dash plugin");case 9:case"end":return e.stop()}},e,null,[[0,6]])}));return function(){return e.apply(this,arguments)}}(),lo=Object.freeze({__proto__:null,importAirplay:function(){import("@silvermine/videojs-airplay").then(function(e){e.default(i)})},importChromecast:function(){import("@silvermine/videojs-chromecast").then(function(e){Ae("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1").then(function(){e.default(i)}).catch(function(e){console.log(e)})})},loadAdsLibrary:eo,loadComscorePlugin:no,loadContribDash:ro,loadDvrSeekbar:io,loadEMELibrary:to,loadMuxPlugin:oo});function ao(e){return uo.apply(this,arguments)}function uo(){return(uo=n(t.mark(function e(n){var o,i,r;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=(null==n?void 0:n.airplay)||!1,e.next=3,eo();case 3:o&&"Safari"==ge()?Promise.resolve().then(function(){return lo}).then(function(e){e.importAirplay()}):(r=(null===(i=document)||void 0===i?void 0:i.getElementById(null==n?void 0:n.playerId))||null)&&r.setAttribute("x-webkit-airplay","deny");case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function so(e){return co.apply(this,arguments)}function co(){return(co=n(t.mark(function e(n){var o,i,r,l,a,u;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=Z(n.playerId),e.next=3,no();case 3:u.comscore({publisherId:null==n||null===(o=n.comscore)||void 0===o?void 0:o.publishedId,endpoint:null==n||null===(i=n.comscore)||void 0===i?void 0:i.endpoint,implementationId:null==n||null===(r=n.comscore)||void 0===r?void 0:r.implementationId,projectId:null==n||null===(l=n.comscore)||void 0===l?void 0:l.projectId,debug:(null==n||null===(a=n.comscore)||void 0===a?void 0:a.debug)||!1});case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function vo(e,n){return fo.apply(this,arguments)}function fo(){return fo=n(t.mark(function e(n,o){var i,r,l,a,u,d,s,c,v,f,p,m;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=(null==o?void 0:o.contentType)||"video",v=null==o||null===(i=o[c])||void 0===i?void 0:i.drmEnabled,null==o||null===(r=o[c])||void 0===r||null===(l=r.liveDetails)||void 0===l||l.isDvrEnabled,null==n||n.showPositiveSeekbar,f=(null==o||null===(a=o[c])||void 0===a||null===(u=a.streamingInfo)||void 0===u||null===(d=u.videoAssets)||void 0===d?void 0:d.dash)||null,p=(null==n||null===(s=n.comscore)||void 0===s?void 0:s.enable)||!1,e.prev=6,e.next=9,Promise.allSettled([v?"Safari"==ge()?to():"caliente"!=(null===(m=window)||void 0===m?void 0:m.siteName)?ro():to():"Safari"!=ge()&&f?ro():null,p?so(n):null,Xt(n)]);case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(6),console.log("Error",e.t0);case 14:case"end":return e.stop()}},e,null,[[6,11]])})),fo.apply(this,arguments)}function po(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function mo(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?po(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):po(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var go=new Set,ho=null,wo=function(e,n,t){var o,i,r,l,a,u,d,s={},c=(null==e?void 0:e.contentType)||"video";s["c3.cm.id"]=(null===(o=e[c])||void 0===o?void 0:o.id)||"Null",s["c3.cm.contentType"]=ko(e),s[null==t||null===(i=t.Constants)||void 0===i?void 0:i.IS_LIVE]=!(null==e||!e.linearchannel),s[null==t||null===(r=t.Constants)||void 0===r?void 0:r.STREAM_URL]=n.currentSrc(),s[null==t||null===(l=t.Constants)||void 0===l?void 0:l.VIEWER_ID]="undefined"===de()?"NULL":de(),s["c3.cm.categoryType"]=Co(e),s["m3.net.t"]=function(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(!e)return"Unknown";if(e.type)switch(e.type){case"wifi":return"WiFi";case"ethernet":return"Ethernet";default:return e.type}switch(e.effectiveType){case"slow-2g":case"2g":return"2G";case"3g":return"3G";case"4g":return e.downlink>=20?"WiFi":"4G";default:return"Unknown"}}(),s.DRMEnabled=(null===(a=e[c])||void 0===a?void 0:a.drmEnabled)||"None",s.DAIStream=null!==(u=e[c])&&void 0!==u&&null!==(d=u.gist)&&void 0!==d&&d.isSSAIEnabled?"YES":"NO",s[t.Constants.DEFAULT_RESOURCE]="AKAMAI",s["c3.cm.brand"]="NULL",s.CDVREnabled=Eo(e),s["c3.cm.genreList"]=bo(e),s["c3.cm.genre"]=yo(e),s["c3.cm.channel"]=Io(e);var v=Lo(K(),e);return s=mo(mo({},s),v)},yo=function(e){var n,t,o,i=(null==e?void 0:e.contentType)||"video";return(null==e||null===(n=e[i])||void 0===n||null===(t=n.gist)||void 0===t||null===(o=t.primaryCategory)||void 0===o?void 0:o.title)||"Null"},bo=function(e){var n,t=(null==e?void 0:e.contentType)||"video";return((null==e||null===(n=e[t])||void 0===n?void 0:n.categories)||[]).map(function(e){return null==e?void 0:e.title}).join(", ")||"Null"},Io=function(e){var n,t,o=(null==e?void 0:e.contentType)||"video";return"video"===o?"VOD":(null==e||null===(n=e[o])||void 0===n||null===(t=n.channels[0])||void 0===t?void 0:t.title)||"NULL"},Co=function(e){return(null==e?void 0:e.contentType)||"null"},Eo=function(e){var n,t,o=(null==e?void 0:e.contentType)||"video",i=(null==e||null===(n=e[o])||void 0===n||null===(t=n.liveDetails)||void 0===t?void 0:t.isDvrEnabled)||!1;return i?"YES":"NO"},To=function(e,n){var t,o,i=(n||{}).epg;if(i&&null!=i&&i.enable&&null!=i&&i.programTitle)return i.programTitle;var r=(null==e?void 0:e.contentType)||"video",l=(null==e||null===(t=e[r])||void 0===t||null===(o=t.gist)||void 0===o?void 0:o.title)||"Null";return"".concat(l)},ko=function(e){return"linearchannel"===((null==e?void 0:e.contentType)||"video")?"Live":"VOD"};var So,Oo,Lo=function(e,n){var t,o,i,r,l,a={"c3.cm.seriesName":"Null","c3.cm.seasonNumber":"Null","c3.cm.showTitle":"Null","c3.cm.episodeNumber":"Null"};if(!e||!n||null!=n&&n.linearchannel)return a;var u=ye(),d=be();return a["c3.cm.seriesName"]=(null==n||null===(t=n.video)||void 0===t||null===(o=t.series)||void 0===o?void 0:o.title)||"Null",a["c3.cm.seasonNumber"]=(null==u?void 0:u.toString())||"Null",a["c3.cm.showTitle"]=(null==e||null===(i=e[u-1])||void 0===i||null===(r=i.episodes)||void 0===r||null===(l=r[d-1])||void 0===l?void 0:l.title)||"Null",a["c3.cm.episodeNumber"]=(null==d?void 0:d.toString())||"Null",a},_o=function(e){switch(e){case"com.widevine.alpha":return"Widevine";case"com.microsoft.playready":return"PlayReady";case"org.w3.clearkey":return"ClearKey";case"com.apple.fps.1_0":return"FairPlay";default:return"Unknown DRM System"}},Po=function(e){switch(e){case"application/x-mpegURL":case"application/vnd.apple.mpegurl":return"HLS";case"application/dash+xml":return"DASH";default:return"Unknown"}},Do=function(){var e=n(t.mark(function e(n,o){var i,r,l,a,u,d,s,c,v,f;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(null==o?void 0:o.convivaConfig)||{},r=i.trackConvivaPlayerEvent,l=i.paymentHandler,a=i.tveProvider,u=i.enable,d=i.appName,s=(o||{}).token,u){e.next=4;break}return e.abrupt("return");case 4:if(c=Z(n),"function"==typeof(v=r)){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,v("getConvivaObject");case 10:if(f=e.sent){e.next=13;break}return e.abrupt("return");case 13:c.ready(function(){var e=c.tech(!0),n=!1;e.on("keysessioncreated",function(e){n=!0;var t=e.target;if(t&&t.keySystem){var o=_o(t.keySystem);v("contentInfo",{DRMEnabled:o})}else v("contentInfo",{DRMEnabled:"None"})}),n||v("contentInfo",{DRMEnabled:"None"})}),c.on("loadstart",function(){var e,n;ho&&ho!==c.currentSrc()&&v("playbackEnded"),v("setPlayer",c),go.clear(),ho=c.currentSrc();var t=Po(c.currentType()),i=q(),r=wo(i,c,f);r[null==f||null===(e=f.Constants)||void 0===e?void 0:e.PLAYER_NAME]=d||"WEB",r[null==f||null===(n=f.Constants)||void 0===n?void 0:n.ASSET_NAME]=To(i,o),r.authToken=s||"NULL",r.streamType=t,r.D2CType=l||"NONE",r.subscriberType=a||(l?"D2C":"FREE"),r["c3.cm.affiliate"]=a||"NULL",jo.setData(r),v("contentInfo",r)}),c.on("loadedmetadata",function(){var e,n=c.videoHeight();e=n>=2160?"4K":n>=1440?"1440p":n>=1080?"1080p":n>=720?"720p":n>=480?"480p":"".concat(n,"p"),v("contentInfo",{screenResolution:e})}),c.on("play",function(){go.has(c.currentSrc())||(go.add(c.currentSrc()),v("playbackStarted",null))}),c.on("ended",function(){go.has(c.currentSrc())&&go.delete(c.currentSrc()),v("playbackEnded")}),c.on("ads-loader",function(e){e&&null!=e&&e.adsLoader&&v("initAdSensor",{player:c,adsLoader:null==e?void 0:e.adsLoader})}),c.on("dispose",function(){null==go||go.clear(),v("playbackEnded")});case 20:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),jo=(So={},{setData:function(e){So=mo(mo({},So),e)},getData:function(){return So}}),xo=function(e,n){var t=null==n?void 0:n.skin;"default"==t?import("./skin-101ab011.js").then(function(t){t.initialiseSkin(e,n)}):"carousel"==t?import("./skin-64ccbdf1.js").then(function(n){n.initaliseSkin(e)}):"defaultV2"==t?import("./skin-9b36936b.js").then(function(t){t.initialiseSkin(e,n)}):"multiplayer"==t?import("./skin-82447ac5.js").then(function(t){t.initialiseSkin(e,n)}):"minimalist"==t?import("./skin-46a6a576.js").then(function(t){t.initaliseSkin(e,n)}):"VL_ONE"==t?import("./skin-943037f3.js").then(function(t){t.initialiseSkin(e,n)}):"news"==t&&import("./skin-b772b20b.js").then(function(t){t.initialiseSkin(e,n)})};function Ao(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function Vo(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Ao(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var Ro=[],Mo=0,No=null;function Bo(){console.log("Cleaning up watch history data"),Oo=null,Ro=[],Mo=0,No=null}function Fo(n,t,o){var i,r,l,a,u,d=arguments.length>3&&void 0!==arguments[3]&&arguments[3];null==t||null===(i=t.watchHistory)||void 0===i||i.apiVersion;var s=null==t||null===(r=t.watchHistory)||void 0===r?void 0:r.profileId,c=Math.floor(n.currentTime()),v=Math.floor(n.duration());null==t||null===(l=t.watchHistory)||void 0===l||l.xapiKey;var f=(null==t||null===(a=t.video)||void 0===a?void 0:a.originalObjectId)||null,p=(null==t||null===(u=t.watchHistory)||void 0===u?void 0:u.saveOffline)||!1,m=Math.floor(n.currentTime()),g=d?100:Math.floor(c/v*100),h={};p?function(n,t,o){var i=t?"watchhistory-data-".concat(t):"watchhistory-data-guest-".concat(o),r=Ho(i),l=(new Date).getTime(),a=q(),u=(null==a?void 0:a.video)||{},d=["id","title","gist","categories","tags","status","publishDate","plans","isVerticalVideo","monetizationBadgeIdentifier","runtime"].reduce(function(n,t){return Vo(Vo({},n),{},e({},t,u[t]))},{}),s=r.findIndex(function(e){var n;return(null==e||null===(n=e.content)||void 0===n?void 0:n.id)===Oo});s<0?r.push(Vo(Vo({content:d},n),{},{addedDate:l,updateDate:l})):r[s]=Vo(Vo(Vo({},r[s]),n),{},{updateDate:l});localStorage.setItem("".concat(i),JSON.stringify(r))}(h={completed:d,watchedTime:m,watchedPercentage:g},s,t.siteOwner):(h=Vo(Vo({videoId:Oo,watchedTime:m,watchedPercentage:g,doneWatching:d,profileId:s},No&&{seriesId:No}),f&&{originalObjectId:f}),T(h).then(function(e){}).catch(function(e){})),Mo=c+o}function Ho(e){var n=[];return e&&(n=JSON.parse(localStorage.getItem("".concat(e))||"[]")),n}function Wo(e,n,t){var o=Ho(e?"watchhistory-data-".concat(e):"watchhistory-data-guest-".concat(t)),i=[];return o&&Array.isArray(o)&&(i=o.filter(function(e){var t;return(null==e||null===(t=e.content)||void 0===t?void 0:t.id)===n})),i}var Uo=!1,Zo=function(e,n){var t,o,i=(null==e?void 0:e.contentType)||"video";if(((null==e||null===(t=e[i])||void 0===t||null===(o=t.streamingInfo)||void 0===o?void 0:o.secondaryVideoAssets)||null)&&!Uo){var r=Go(e,"videoAssets","secondaryVideoAssets"),l=Le(r,n);return l&&xt(n,l),Uo=!0,console.log("switching to secondary source"),!0}return console.log("secondary source is either corrupted / not available"),!1};function Go(e,n,t){if(Array.isArray(e))return e.map(function(e){return Go(e,n,t)});if(null!==e&&"object"===v(e)){var o={};return Object.keys(e).forEach(function(i){i===n&&void 0!==e[t]?o[i]=e[t]:i===t&&void 0!==e[n]?o[i]=e[n]:o[i]=Go(e[i],n,t)}),o}return e}function zo(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return Yo(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Yo(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){a=!0,r=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw r}}}}function Yo(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}function qo(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function Qo(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):qo(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var Ko=function(e,n,t,o){var i,r,l,a,f,p=o.res,m=o.sres,g=Z(e),h=(null==p?void 0:p.contentType)||"video",w=(null==p||null===(i=p[h])||void 0===i?void 0:i.drmEnabled)||!1,y=(null==p||null===(r=p[h])||void 0===r||null===(l=r.streamingInfo)||void 0===l?void 0:l.isLiveStream)||!1,b=(null==p||null===(a=p[h])||void 0===a||null===(f=a.liveDetails)||void 0===f?void 0:f.isDvrEnabled)||!1;z(p),Y.set(p),g&&(g.on("loadstart",function(){y?t.resolve({status:!0,msg:"Video Loaded",response:p}):t.resolve(Qo({status:!0,msg:"Player Initialised"},m?{seriesResponse:m,response:p}:{response:p}))}),g.on("loadeddata",function(){var t,o,i,r=Fe(e);if(null==r||r.map(function(n){return Be(e,n.id)}),b&&"Safari"===ge())try{var l;null==g||null===(l=g.liveTracker)||void 0===l||l.seekToLiveEdge()}catch(e){console.log("Cannot seek to Live Edge",e)}(null==g||!g.muted())&&Yt(e,sessionStorage.getItem("volume")||"100");var a=q();if(function(e,n){var t,o,i,r,l,a,v,f,p,m,g,h,w=null==e?void 0:e.playerId,y=Z(w),b=null==n?void 0:n.siteName;if(null!=e&&null!==(t=e.comscore)&&void 0!==t&&t.enable){var I=q(),C=(null==I||null===(o=I.video)||void 0===o?void 0:o.metadata)||[],E=(null==C?void 0:C.length)&&C.filter(function(e){return"advertisingGenre"===e.name});if(null!==(i=E)&&void 0!==i&&i.length){var T=E.map(function(e){return e.value});E=null==T?void 0:T.join(",")}u();var k,S,O,L=null===(r=window)||void 0===r?void 0:r.lcProgrammeDetails,_=Array.isArray(null==L?void 0:L.category)?null==L||null===(l=L.category)||void 0===l?void 0:l.join(","):(null==L?void 0:L.category)||null,P=Zn(Zn(Zn({},null==I?void 0:I.video),null==I?void 0:I.linearchannel),{},{siteName:b,programId:(null==L?void 0:L.videotmsid)||null,programTitle:(null==L?void 0:L.lcProgrammeName)||null,episodeId:(null==L?void 0:L.videotmsid)||null,seasonNumber:(null==L||null===(a=L.seriesDetails)||void 0===a?void 0:a.season)||null,episodeNumber:(null==L||null===(v=L.seriesDetails)||void 0===v?void 0:v.episode)||null,isCompleteEpisode:!!(null!=I&&null!==(f=I.video)&&void 0!==f&&f.series||null!=L&&null!==(p=L.seriesDetails)&&void 0!==p&&p.episode),genre:E||_,comscoreConfig:{implementationId:(null==e||null===(m=e.comscore)||void 0===m?void 0:m.implementationId)||null,projectId:(null==e||null===(g=e.comscore)||void 0===g?void 0:g.projectId)||null}});if(null!=P&&null!==(h=P.streamingInfo)&&void 0!==h&&h.isLiveStream&&(P.contentType="LIVE"),null==P||!P.network){var D,j=(null==P?void 0:P.metadata)||[],x=null==j||null===(D=j.find(function(e){return"network"===e.name}))||void 0===D?void 0:D.value;P.network=x||null}null!=P&&P.network&&null!=P&&P.genre&&(P.customGenre="".concat(P.network,"_").concat((null==P?void 0:P.programTitle)||(k=P,null!=k&&k.series?null==k||null===(O=k.series)||void 0===O?void 0:O.title:null==k||null===(S=k.gist)||void 0===S?void 0:S.title),"_").concat(P.genre)),null!=L&&L.airDate&&(P.publishDate=L.airDate);var A=d(P,y);console.log("comscoreOptions player data",A),s(Zn({playerName:"Video.js"},A)),c(y)}}(n,p),Me(),null!=n&&n.watchHistory&&null!=n&&null!==(t=n.watchHistory)&&void 0!==t&&t.enable&&(!n.isAnonymousUser||null!=n&&null!==(o=n.watchHistory)&&void 0!==o&&o.saveOffline)){var v,f,m=Qo(Qo({},n),p);!function(e,n,t){var o,i,r;null!=n&&n.series&&null!=n&&null!==(o=n.series)&&void 0!==o&&o.enable&&(No=null==n||null===(i=n.series)||void 0===i?void 0:i.id),Ro=[],Mo=0,Oo=t;var l=(null==n||null===(r=n.watchHistory)||void 0===r?void 0:r.interval)||30,a=Z(e);a&&(a.on("dispose",Bo),a.on("timeupdate",function(){if(!a.seeking()){var e=Math.floor(a.currentTime());Ro.includes(Mo)||(e!=Mo||e<l?e>Mo&&(Mo=e+l):(Ro.push(e),Fo(a,n,l)))}}),a.one("ended",function(){Fo(a,n,l,!0)}))}(e,m,null==a||null===(v=a.video)||void 0===v||null===(f=v.gist)||void 0===f?void 0:f.id)}if(null!=n&&null!==(i=n.analytics)&&void 0!==i&&i.muxKey&&null!=g&&g.mux){var h,w,y,I,C,E,T=(null===(h=q())||void 0===h?void 0:h.video)||(null==p?void 0:p.video),k=null==T?void 0:T.gist,S={env_key:null==n||null===(w=n.analytics)||void 0===w?void 0:w.muxKey,player_name:"vl-web-player",player_version:null===(y=window)||void 0===y?void 0:y.vl_player_version,video_id:null==k?void 0:k.id,video_title:null==k?void 0:k.title,video_series:null==T||null===(I=T.series)||void 0===I?void 0:I.title,video_stream_type:null!=T&&null!==(C=T.streamingInfo)&&void 0!==C&&C.isLiveStream?"live":"video",viewer_user_id:null==n||null===(E=n.analytics)||void 0===E?void 0:E.userId};g.mux({debug:!1,data:S})}}),g.textTracks().on("change",function(e){var n=this.tracks_.filter(function(e){if(("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode)return!0})[0];g.trigger("subtitlechanged",n)}),g.on("subtitlechanged",function(e,n){var t,o,i,r,l,a,u,d,s,c,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,f=null===(t=window)||void 0===t||null===(o=t.cast)||void 0===o||null===(i=o.framework)||void 0===i||null===(r=i.CastContext)||void 0===r||null===(l=r.getInstance())||void 0===l?void 0:l.S,p=null===(a=window)||void 0===a||null===(u=a.cast)||void 0===u||null===(d=u.framework)||void 0===d||null===(s=d.CastContext)||void 0===s||null===(c=s.getInstance())||void 0===c?void 0:c.getCurrentSession();if(v&&"CONNECTED"===f){var m,g=p.getMediaSession(),h=g.media.tracks.filter(function(e){return"TEXT"==e.type});m=n?new chrome.cast.media.EditTracksInfoRequest([h[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),g.editTracksInfo(m)}}),g.tech_.on("retryplaylist",function(){y&&Zo(p,e)}),g.on("error",function(){var n,o;(console.log("ERROR",g.error(),g.error().code),4===g.error().code&&y)?Zo(p,e):(Re(e,(null==g||null===(n=g.error())||void 0===n?void 0:n.message)||"Some error occured"),t.reject({status:!1,msg:(null==g||null===(o=g.error())||void 0===o?void 0:o.message)||"Some error occured",response:p}))}),g.one("play",function(){var e,t,o,i,r;if(null===(e=window)||void 0===e||null===(t=e.app_data)||void 0===t||null===(o=t.appcmsMain)||void 0===o||null===(i=o.adsConfig)||void 0===i||!i.vodAdClientSideTracking){if(null!=n&&null!==(r=n.series)&&void 0!==r&&r.enable){var l,a,u,d=null===(l=q())||void 0===l||null===(a=l.video)||void 0===a||null===(u=a.gist)||void 0===u?void 0:u.id,s=$(),c=(null==s?void 0:s.get(d))||{t:0,p:0},v=c.t,f=c.p;v&&f<95&&setTimeout(function(){g.currentTime(v)},0)}else null!=n&&n.watchHistoryResumeTime&&(null==n?void 0:n.watchedPercentage)<95&&setTimeout(function(){g.currentTime(null==n?void 0:n.watchHistoryResumeTime)},0);if(null!=g&&g.dvrSeekbar)try{g.dvrSeekbar()}catch(e){console.error("Error while initilizing dvr seekbar")}}}),g.on("volumechange",function(){var e=100*g.volume().toFixed(2);g.muted()?sessionStorage.setItem("volume",0):sessionStorage.setItem("volume",e)}),g.on("chromecastDisconnected",function(){if(y){g.currentSource();for(var e=g.textTracks(),n=e.length-1;n>=0;n--)g.removeRemoteTextTrack(e[n])}}),g.one("loadeddata",function(){var e,n=(null==g||null===(e=g.audioTracks())||void 0===e?void 0:e.tracks_)||null;if(n)if(n.sort(function(e,n){var t=(e.language||e.language||"").toUpperCase(),o=(n.language||n.label||"").toUpperCase();return t<o?-1:t>o?1:0}),"object"==v(g.dash)){var t,o,i,r=null==g||null===(t=g.dash)||void 0===t||null===(o=t.mediaPlayer)||void 0===o?void 0:o.getTracksFor("audio"),l=null==r?void 0:r.find(function(e){var n;return null==e||null===(n=e.roles)||void 0===n?void 0:n.includes("main")}),a=zo(n);try{for(a.s();!(i=a.n()).done;){var u=i.value;if(l&&(null==u?void 0:u.id)=="dash-audio-".concat(l.index)){u.enabled=!0;break}}}catch(e){a.e(e)}finally{a.f()}}else{var d,s=zo(n);try{for(s.s();!(d=s.n()).done;){var c,f,p,m=d.value;if(("Chrome"==ge()||"Edge"==ge()&&(null!==(c=navigator)&&void 0!==c&&null!==(f=c.userAgent)&&void 0!==f&&f.includes("Macintosh")||!w))&&null!=m&&null!==(p=m.label)&&void 0!==p&&p.includes("5.1"))g.audioTracks().removeTrack(m);else{if("main"==m.kind){m.enabled=!0;break}m.enabled=!1}}}catch(e){s.e(e)}finally{s.f()}}}))};function Jo(e){var n=e||{},t=n.dvrConfig,o=n.epg;return!(!n.isDvrEnabled||null==t||!t.enable)&&(null==o||!o.enable||li(o))}function Xo(e,n){var t=e.seekable();if(t&&t.length>0){var o=ii(e,n);e.currentTime(o),e.play(),ri({player:e,showWatchLive:!0,showStartOver:!0})}}function $o(e){e&&e.seekable()&&(e.currentTime(e.seekable().end(0)),e.play(),ri({player:e,showWatchLive:!1,showStartOver:!0}))}function ei(e,n){var t=oi(n);t?function(e,n){if(e&&e.seekable()){var t=Math.min(n,e.seekable().end(0));e.currentTime(t),e.play(),ri({player:e,showWatchLive:!0,showStartOver:!0})}}(e,t):$o(e)}function ni(e,n){e.bigPlayButton.show(),e.controlBar.show(),n&&(n.style.display="none")}function ti(e,n){sessionStorage.setItem("lastWatchedPosition-".concat(e),n.toFixed(2))}function oi(e){return parseFloat(sessionStorage.getItem("lastWatchedPosition-".concat(e))||"0")}function ii(e,n){var t=n||{},o=t.dvrConfig,i=t.epg,r=ie()||[],l=null==o?void 0:o.startOverTime,a=0;if(l&&(a=l),null!=i&&i.enable&&li(i)&&null!=r&&r.length){var u=new Date,d=r.find(function(e){var n=new Date(e.formatted_startdate),t=new Date(e.formatted_enddate);return u>=n&&u<t}),s=e.seekable();if(s&&s.length>0){var c=s.start(0);if(a=c,null!=d&&d.formatted_startdate){var v=s.end(s.length-1)-c;a=c+(new Date(d.formatted_startdate).getTime()-new Date(u-1e3*v).getTime())/1e3}}}return a}var ri=function(e){var n=e.player,t=e.showWatchLive,o=void 0===t||t,i=e.showStartOver,r=void 0===i||i;if(n.liveTracker){var l,a,u,d,s=n.liveTracker.atLiveEdge(),c=n.controlBar.getChild("SeekToLive");if(s?null==c||c.show():null==c||c.hide(),o)null==n||null===(l=n.watchLiveButton)||void 0===l||l.show();else null==n||null===(a=n.watchLiveButton)||void 0===a||a.hide();if(r)null==n||null===(u=n.startFromBeginningButton)||void 0===u||u.show();else null==n||null===(d=n.startFromBeginningButton)||void 0===d||d.hide()}},li=function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=JSON.parse(sessionStorage.getItem("epgConfig"))||t;return(null==o||null===(e=o.contentType)||void 0===e?void 0:e.includes("game"))&&"LIVE"===(null==o||null===(n=o.programSubType)||void 0===n?void 0:n.toUpperCase())};function ai(e){var n=Z(e),t=n.seekable(),o=n.controlBar.progressControl.seekBar.el();if(t&&t.length>0){var i=t.start(0),r=t.end(t.length-1)-i;di(),si(r).forEach(function(e){var n=e.id,t=e.title,i=e.time,l=ui(n,t,Math.min(i/r*100,99.5));o.appendChild(l)})}}function ui(e,n,t){var o=document.createElement("div");return o.className="vjs-seekbar-program-marker",o.id=e,o.style.title=n,o.style.left="".concat(t,"%"),o.style.position="absolute",o.style.top="0",o.style.bottom="0",o.style.width="4px",o.style.backgroundColor="#000000",o.style.left="".concat(t,"%"),o.style.pointerEvents="none",o}function di(){document.querySelectorAll(".vjs-seekbar-program-marker").forEach(function(e){e.remove()})}function si(e){var n=(new Date).getTime(),t=new Date(n-1e3*e).getTime();return(ie()||[]).filter(function(e){var o=new Date(e.formatted_startdate).getTime();return o>=t&&o<=n}).map(function(e){var n=new Date(e.formatted_startdate).getTime()-t;return{title:e.title,time:n/1e3,id:e.programme_id}})}function ci(e,n){var t=Z(e);if(t){var o=n.dvrConfig,i=void 0===o?{}:o,r=n.videoId;n.epg;var l=i.playLive,a=i.playFromBegining,u=i.programs;oe(u),t.on("loadeddata",function(){Jo(n)?a?Xo(t,n):l?ei(t,r):(!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.dvrConfig,o=void 0===t?{}:t,i=n.videoId,r=n.epg,l=o.buttonConfig,a=void 0===l?{}:l,u=a.watchLive;a.resume;var d=a.startFromBegining,s=i;if(r&&null!=r&&r.enable){var c=JSON.parse(sessionStorage.getItem("epgConfig"));s="".concat(null==c?void 0:c.programId,"-").concat(null==c?void 0:c.channelId)}var v=!!oi(s),f=document.querySelector(".vjs-dvr-btn-overlay");f||((f=document.createElement("div")).className="vjs-dvr-btn-overlay");var p=function(e){var n=(e||{}).epg,t=ie()||[],o="";if(null!=n&&n.enable&&li(n)&&null!=t&&t.length){var i=new Date,r=t.find(function(e){var n=new Date(e.formatted_startdate),t=new Date(e.formatted_enddate);return i>=n&&i<t});o=null!=r&&r.thumbnail?null==r?void 0:r.thumbnail:""}return o}(n);p&&(f.style.backgroundImage="url(".concat(p,")"),f.style.backgroundPosition="center center",f.style.backgroundRepeat="no-repeat",f.style.backgroundSize="cover");f.innerHTML=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=(null==e?void 0:e.buttonConfig)||{},o=t.watchLive,i=t.resume,r=t.startFromBegining,l=n?(null==i?void 0:i.text)||"Resume":(null==o?void 0:o.text)||"Watch Live",a='<button id="watch-live-resume-btn">'.concat('<svg width="14" height="21" viewBox="0 0 14 21" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M-6.26643e-08 0.858398C-3.64345e-08 0.708381 0.169567 0.621119 0.29164 0.708315L13.7899 10.3499C13.8929 10.4235 13.8929 10.5765 13.7899 10.6501L0.291637 20.2917C0.169563 20.3789 -3.46048e-06 20.2916 -3.43425e-06 20.1416L-6.26643e-08 0.858398Z" fill="white"/>\n</svg>\n'," ").concat(l,"</button>"),u='<button id="watch-begining-btn">'.concat('<svg width="16" height="16" viewBox="0 0 14 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.04907e-06 -1.22392e-06L2 -1.04907e-06L2.00098 12L0 12L1.04907e-06 -1.22392e-06ZM14 11.6553C14 11.8026 13.8355 11.8903 13.7129 11.8086L5.23047 6.15332C5.12096 6.08031 5.12096 5.91968 5.23047 5.84668L13.7129 0.191406C13.8355 0.109694 14 0.197416 14 0.344727L14 11.6553Z" fill="white"/></svg>'," ").concat((null==r?void 0:r.text)||"Start From Beginning","</button>");return'<div class="dvr-button">'.concat(a," ").concat(u,"</div>")}(o,v),f.style.display="flex",e.el().appendChild(f),function(e){e.pause(),e.bigPlayButton.hide(),e.controlBar.hide()}(e),vi("watch-live-resume-btn",u,function(){ni(e,f),ei(e,s)}),vi("watch-begining-btn",d,function(){ni(e,f),Xo(e,n)})}(t,n),ri({player:t,showWatchLive:!0,showStartOver:!0})):function(e){var n,t;ni(e,document.querySelector(".vjs-dvr-btn-overlay")),null==e||null===(n=e.startFromBeginningButton)||void 0===n||n.hide(),null==e||null===(t=e.watchLiveButton)||void 0===t||t.hide()}(t)}),t.one("loadedmetadata",function(){sessionStorage.setItem("program_switched",!0),function(e,n){var t=n.videoId,o=e.currentTime(),i=!1,r=e.seekable(),l=r.start(0),a=r.end(r.length-1)-l,u=JSON.parse(sessionStorage.getItem("epgConfig")),d=t,s=!0;if(u&&null!=u&&u.enable){var c;s=(null==n||null===(c=n.epg)||void 0===c?void 0:c.programId)===(null==u?void 0:u.programId),d=null==u?void 0:u.programId}e.on("seeking",function(){i=!0}),e.on("seeked",function(){i=!1,o=e.currentTime();var t=JSON.parse(sessionStorage.getItem("epgConfig"));if(t&&null!=t&&t.enable){if(!s||sessionStorage.getItem("program_switched"))return;d="".concat(null==t?void 0:t.programId,"-").concat(null==t?void 0:t.channelId)}ti(d,o),ii(e,n),ri({player:e,showWatchLive:e.seekable().end(0)-e.currentTime()>5,showStartOver:!0})}),e.on("timeupdate",function(){if(!i){var n=JSON.parse(sessionStorage.getItem("epgConfig"));if(n&&null!=n&&n.enable){if(!s||sessionStorage.getItem("program_switched")&&!e.currentTime())return;if(sessionStorage.getItem("program_switched")&&e.currentTime())return void sessionStorage.removeItem("program_switched");d="".concat(null==n?void 0:n.programId,"-").concat(null==n?void 0:n.channelId)}var t=e.currentTime();Math.abs(t-o)>=20&&(ti(d,t),o=t,function(e,n){si(n).forEach(function(t){var o=t.id,i=t.title,r=t.time,l=document.getElementById(o);if(l){var a=Math.min(r/n*100,99.5);l.style.left="".concat(a,"%")}else{var u=e.controlBar.progressControl.seekBar.el(),d=ui(o,i,Math.min(r/n*100,99.5));u.appendChild(d)}})}(e,a))}})}(t,n)})}else console.warn("Player instance is required to initialize start over.")}function vi(e,n,t){var o,i,r=document.getElementById(e);r&&(i=n,(o=r)&&(o.style.color="".concat((null==i?void 0:i.textColor)||"#000"),o.style.backgroundColor="".concat((null==i?void 0:i.backGroundColor)||"#DCF95B")),r.addEventListener("click",t))}function fi(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function pi(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?fi(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):fi(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var mi=function(o,r,l,a){var u,d,s,c,v,f,p,m,g,h,w,y,b,I,C,E,T,k,S,O,L,_,P,D,j,x,A,V,R,M,N,B,F,H,W,U,G,z,Y,q,Q=r.res,K=void 0===Q?null:Q,J=r.sres,X=void 0===J?null:J,$=null!=l&&l.chromecastReceiverId?["chromecast","html5"]:["html5"],ee=(null===(u=K)||void 0===u?void 0:u.contentType)||"video",ne=nn(null===(d=K)||void 0===d||null===(s=d[ee])||void 0===s||null===(c=s.gist)||void 0===c?void 0:c.videoImageUrl)||nn(null===(v=K)||void 0===v||null===(f=v[ee])||void 0===f||null===(p=f.gist)||void 0===p||null===(m=p.imageGist)||void 0===m?void 0:m.r16x9),te=(null===(g=K)||void 0===g||null===(h=g[ee])||void 0===h||null===(w=h.liveDetails)||void 0===w?void 0:w.isDvrEnabled)||!1,oe=(null===(y=K)||void 0===y||null===(b=y[ee])||void 0===b||null===(I=b.streamingInfo)||void 0===I?void 0:I.isLiveStream)||!1,ie=(null===(C=K)||void 0===C||null===(E=C.ads)||void 0===E||null===(T=E.preRoll)||void 0===T||null===(k=T.adTags)||void 0===k||null===(S=k.web)||void 0===S?void 0:S.active)&&(null===(O=K)||void 0===O||null===(L=O.ads)||void 0===L||null===(_=L.preRoll)||void 0===_||null===(P=_.adTags)||void 0===P||null===(D=P.web)||void 0===D?void 0:D.url),re=(null===(j=K=pi(pi({},K),{},{audioAssetSource:null==l?void 0:l.audioAssetSource}))||void 0===j||null===(x=j[ee])||void 0===x?void 0:x.isSSAIEnabled)&&"MEDIA_TAILOR"==(null===(A=window)||void 0===A||null===(V=A.app_data)||void 0===V||null===(R=V.appcmsMain)||void 0===R||null===(M=R.adsConfig)||void 0===M?void 0:M.vodAdSticherProvider)||!1,le=(null==l?void 0:l.latency)||6,ae=(null==l?void 0:l.skin_settings)||{};null==l||l.dvrConfig;var ue=(Y={enableSmoothSeeking:!0,controls:0!=(null==l?void 0:l.controls),playsinline:!0,fluid:!0,aspectRatio:"16:9",muted:(null==l?void 0:l.muted)||!1,autoplay:(null==l?void 0:l.autoplay)||!1,controlBar:{volumePanel:{inline:!1},fullscreenToggle:!0,audioTrackButton:!0,pictureInPictureToggle:(null==ae?void 0:ae.pictureInPictureToggle)||!1},playbackRates:null!=ae&&ae.playbackRates?[.5,1,1.5,2]:[],muteToggle:"multiplayer"==l.skin,liveui:te},e(Y,"autoplay",null==l?void 0:l.autoplay),e(Y,"normalizeAutoplay",(null==l?void 0:l.autoplay)&&!ie),e(Y,"loop",(null==l?void 0:l.loop)||!1),e(Y,"audioPosterMode",null==l?void 0:l.audioPosterMode),e(Y,"html5",pi(pi({dash:pi(pi(pi({},!i.browser.IS_SAFARI&&{useTTML:!0}),(null==l?void 0:l.debugConfig)&&(null==l||null===(N=l.debugConfig)||void 0===N?void 0:N.enable)&&{debug:!0,logLevel:null!=l&&null!==(B=l.debugConfig)&&void 0!==B&&B.logLevel?null==l||null===(F=l.debugConfig)||void 0===F?void 0:F.logLevel:"DEBUG"}),{},{updateSettings:{streaming:{delay:{liveDelay:le},text:{defaultEnabled:!1},liveCatchup:{maxDrift:0,playbackRate:{min:-.1,max:.1}},gaps:{enableStallFix:!0,stallSeek:3},abr:{autoSwitchBitrate:{video:!0,audio:!0}}}}}),vhs:pi(pi({liveRangeSafeTimeDelta:le,useDevicePixelRatio:!0,experimentalLLHLS:(null==l?void 0:l.lowLatency)||!1,limitRenditionByPlayerDimensions:!1,useNetworkInformationApi:!0},(null==l||null===(H=l.customData)||void 0===H?void 0:H.overrideNative)&&{overrideNative:!0}),{},{enableLowInitialPlaylist:null===(W=null==l?void 0:l.enableLowInitialPlaylist)||void 0===W||W}),debug:(null==l?void 0:l.debugConfig)&&(null==l||null===(U=l.debugConfig)||void 0===U?void 0:U.enable)||!1,nativeTextTracks:"Safari"==ge()},0==(null==l||null===(G=l.customData)||void 0===G?void 0:G.nativeAudioTracks)&&{nativeAudioTracks:!1}),0==(null==l||null===(z=l.customData)||void 0===z?void 0:z.nativeVideoTracks)&&{nativeVideoTracks:!1})),e(Y,"poster",ne),e(Y,"techOrder",$),e(Y,"chromecast",{requestCustomDataFn:function(e){var n,t,i=Z(o),r=((null==i?void 0:i.textTracksJson_)||i.textTracks().tracks_).filter(function(e){return"captions"==e.kind||"subtitles"==e.kind}),a=function(e,n,t){var o,i,r,l,a,u,d,s,c,v,f=(null==e?void 0:e.contentType)||"video",p={};if(e&&null!=e&&e[f]&&null!=e&&e[f].drmEnabled){var m,g,h,w,y,b,I,C;p.isDrmEnabled=!0;var E=(null==n||null===(m=n.keySystems)||void 0===m?void 0:m["com.widevine.alpha"])||null,T=(null==E?void 0:E.url)||(null==n||null===(g=n.keySystemOptions)||void 0===g||null===(h=g[0])||void 0===h||null===(w=h.options)||void 0===w?void 0:w.serverURL);p.licenseUrl=T;var k=(null==E?void 0:E.licenseHeaders["X-AxDRM-Message"])||(null==n||null===(y=n.keySystemOptions)||void 0===y||null===(b=y[0])||void 0===b||null===(I=b.options)||void 0===I||null===(C=I.httpRequestHeaders)||void 0===C?void 0:C["X-AxDRM-Message"]);p.licenseToken=k}var S=(null==e||null===(o=e[f])||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.contentType)||"VIDEO";p.contentType=S;var O=null==e||null===(r=e[f])||void 0===r||null===(l=r.gist)||void 0===l?void 0:l.runtime;p.duration=O;var L=null==e||null===(a=e[f])||void 0===a||null===(u=a.gist)||void 0===u?void 0:u.title;p.mediaTitle=L;var _=null==e||null===(d=e[f])||void 0===d||null===(s=d.gist)||void 0===s?void 0:s.videoImageUrl;return p.mediaImage=_,p.subTitles=t,p.DVR=(null==e||null===(c=e[f])||void 0===c||null===(v=c.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(p),p}(K,e,r);return pi(pi({},a),{},{convivaMetaData:pi({customerKey:(null==l||null===(n=l.convivaConfig)||void 0===n?void 0:n.customerKey)||null,debug:(null==l||null===(t=l.convivaConfig)||void 0===t?void 0:t.debug)||!1},jo.getData())})},modifyLoadRequestFn:function(e){var n,t,i,r,l,a=Z(o),u=(null==a?void 0:a.currentSource())||{};!(null===(n=K)||void 0===n||null===(t=n[ee])||void 0===t||null===(i=t.streamingInfo)||void 0===i||null===(r=i.videoAssets)||void 0===r?void 0:r.is4K)&&1||null!=u&&u.src&&null!=u&&null!==(l=u.src)&&void 0!==l&&l.includes(".m3u8")&&(e.media.hlsSegmentFormat="fmp4",e.media.hlsVideoSegmentFormat="fmp4");return e}}),Y);if(!i.getPlayers()[o]){null!=l&&l.debugConfig&&null!=l&&null!==(q=l.debugConfig)&&void 0!==q&&q.enable&&i.log.level("debug");var de=i(o,ue,function(){var e=n(t.mark(function e(){var n,r,u,d,s,c,v,f,p,m,g,h,w,y,b,I,C,E,T,k,S;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(de),console.log(i.VERSION),console.log(i.getPlugins()),e.next=5,vo(l,K);case 5:if(w=null===(n=K)||void 0===n||null===(r=n[ee])||void 0===r||null===(u=r.liveDetails)||void 0===u?void 0:u.startOverTime,oe&&a.resolve(pi({status:!0,msg:"Player Initialised"},X?{seriesResponse:X,response:K}:{response:K})),te&&null!=l&&null!==(d=l.dvrConfig)&&void 0!==d&&d.enable&&ci(o,pi(pi({},l),{},{isDvrEnabled:te})),me(o,null==l?void 0:l.analyticsCb,null==l?void 0:l.customData),Do(o,l),/Android/i.test(navigator.userAgent)&&(i.options.vhs.overrideNative=!0),te&&$t(o,w),!ie||null!=l&&null!==(s=l.customData)&&void 0!==s&&s.disableAds||Ze(o,ie,K),y=Le(K,o),console.log(y),null!=l&&l.nearestClusterUrl&&(y=xe(y,l.nearestClusterUrl)),!re){e.next=21;break}return e.next=20,et(o,K);case 20:y=e.sent;case 21:y?xt(o,y):(a.reject({status:!1,msg:"Incompatible / Missing Source",response:K}),Re(o,"Incompatible / Missing Source")),((null===(c=K)||void 0===c||null===(v=c[ee])||void 0===v||null===(f=v.contentDetails)||void 0===f||null===(p=f.closedCaptions)||void 0===p?void 0:p.length)>0||(null===(m=K)||void 0===m||null===(g=m[ee])||void 0===g||null===(h=g.closedCaptions)||void 0===h?void 0:h.length)>0)&&(S=(null===(I=K)||void 0===I||null===(C=I[ee])||void 0===C||null===(E=C.contentDetails)||void 0===E?void 0:E.closedCaptions)||(null===(T=K)||void 0===T||null===(k=T[ee])||void 0===k?void 0:k.closedCaptions),b=S.filter(function(e){return"VTT"===e.format||"WEBVTT"===e.format}),We(o,b)),null!=l&&l.disableControls?Vt(o):xo(o,pi(pi(pi({},l),ue),{},{liveVideo:oe,isDvrEnabled:te,res:K,sres:X})),Ko(o,pi(pi(pi({},l),ue),{},{liveVideo:oe}),a,{res:K,sres:X});case 25:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}())}};function gi(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function hi(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):gi(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var wi,yi=function(e,n){var t=n.resolve,o=n.reject,i=null==e?void 0:e.playerId,r=bi(e);mi(i,{res:r},e,{resolve:t,reject:o})},bi=function(e){var n,t,o,i,r,a,u,d,s=null==e?void 0:e.streamingInfo,c=null==e||null===(n=e.streamingInfo)||void 0===n?void 0:n.videoAssets,v=(null==e||null===(t=e.streamingInfo)||void 0===t?void 0:t.isDrmEnabled)||null,f=(null==e||null===(o=e.streamingInfo)||void 0===o||null===(i=o.ads)||void 0===i?void 0:i.url)||null,p=(null==e||null===(r=e.streamingInfo)||void 0===r?void 0:r.posterUrl)||null,m=(null==e||null===(a=e.streamingInfo)||void 0===a?void 0:a.subtitles)||[],g=(null==e||null===(u=e.streamingInfo)||void 0===u||null===(d=u.videoAssets)||void 0===d?void 0:d.drmProvider)||null,h=null==e?void 0:e.token,w=U(h);null==w||w.site;var y=null==w?void 0:w.siteId;return hi(hi({id:"".concat(y,"_external")},!v&&{directPlaybackUrl:null==c?void 0:c.url}),{},{video:{drmEnabled:v,streamingInfo:{videoAssets:hi(hi({},g&&{drmProvider:g}),{},{widevine:null==c?void 0:c.widevine,fairPlay:null==c?void 0:c.fairPlay,playReady:null==c?void 0:c.playReady})},liveDetails:{isDvrEnabled:null==s?void 0:s.isDvrEnabled},gist:hi({},p&&{videoImageUrl:p}),contentDetails:hi({},(null==m?void 0:m.length)>0&&{closedCaptions:l(m)})},ads:{preRoll:{adTags:{web:hi(hi({},f&&{active:!0}),f&&{url:f})}}}})};function Ii(e,n){return Ci.apply(this,arguments)}function Ci(){return Ci=n(t.mark(function e(n,o){var i,r,l,a,u,d;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.resolve,r=o.reject,l=null==n?void 0:n.videoId,a=null==n?void 0:n.playerId,u=!(null==n||!n.anonymousId),e.next=6,H();case 6:d=e.sent,I(l,d).then(function(e){var t,o,s,c;window.contentType=null==e||null===(t=e.data)||void 0===t||null===(o=t.video)||void 0===o||null===(s=o.gist)||void 0===s?void 0:s.contentType,z(null==e?void 0:e.data);var v,f=null==e?void 0:e.data;if(null!=n&&n.watchHistory&&null!=n&&null!==(c=n.watchHistory)&&void 0!==c&&c.enable&&!u)if((null===(v=n.watchHistory)||void 0===v?void 0:v.saveOffline)||!1){var p,m,g,h=Wo((null===(p=n.watchHistory)||void 0===p?void 0:p.profileId)||"",l,null==n?void 0:n.siteOwner);if(h&&h.length)n.watchHistoryResumeTime=(null===(m=h[0])||void 0===m?void 0:m.watchedTime)||null,n.watchedPercentage=(null===(g=h[0])||void 0===g?void 0:g.watchedPercentage)||null;f.contentType="video",mi(a,{res:f},n,{resolve:i,reject:r})}else k(l,d).then(function(e){var t,o,i,r,l,a;null!==(t=window)&&void 0!==t&&null!==(o=t.watchHistory)&&void 0!==o&&o.cb&&(null===(i=window)||void 0===i||null===(r=i.watchHistory)||void 0===r||r.cb(null==e?void 0:e.data)),n.watchHistoryResumeTime=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedTime)||null,n.watchedPercentage=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedPercentage)||null,f.contentType="video"}).catch(function(e){var n,t,o,i;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(e))}).finally(function(){mi(a,{res:f},n,{resolve:i,reject:r})});else mi(a,{res:f},n,{resolve:i,reject:r})}).catch(function(e){At(e,a,r,l)});case 8:case"end":return e.stop()}},e)})),Ci.apply(this,arguments)}function Ei(e,n){return Ti.apply(this,arguments)}function Ti(){return(Ti=n(t.mark(function e(n,o){var i,r,l,a,u;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.resolve,r=o.reject,e.next=3,H();case 3:l=e.sent,a=null==n?void 0:n.playerId,u=null==n?void 0:n.epg,C(u,l).then(function(e){var t=null==e?void 0:e.data;t.contentType="linearchannel",t.channelId=null==u?void 0:u.channelId,mi(a,{res:t},n,{resolve:i,reject:r})}).catch(function(e){At(e,a,r,videoId)});case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ki(e,n){return Si.apply(this,arguments)}function Si(){return(Si=n(t.mark(function e(n,o){var i,r,l,a,u,d,s;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.resolve,l=o.reject,e.next=3,H();case 3:a=e.sent,u=null==n?void 0:n.playerId,d=sessionStorage.getItem("season-idx")||0,te.set(parseInt(d)),s=null==n||null===(i=n.series)||void 0===i?void 0:i.id,E(s,a).then(function(e){var t,o,i,d=e.data,c=e.data.seasons;Q(c);var v=videoId||(null==c||null===(t=c[0])||void 0===t||null===(o=t.episodes)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.id);we(s,a),I(v,a).then(function(e){var t,o,i;window.contentType=null==e||null===(t=e.data)||void 0===t||null===(o=t.video)||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.contentType,z(e.data),mi(u,{res:null==e?void 0:e.data,sres:d},n,{resolve:r,reject:l})}).catch(function(e){At(e,u,l,videoId)})}).catch(function(e){At(e,u,l)});case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Oi(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function Li(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Oi(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Oi(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}function _i(){return{loadVideoInstantly:Pt,onTimeUpdate:Ht,getVideoDuration:Ut,onVideoEnded:Wt,init:function(e){return console.log("%c VIDEOJS-8 ","background: #bdf369; color: #000"),new Promise(function(){var o=n(t.mark(function n(o,i){var r,l,a,u,d,s,c,v,p,m,g,h,w,y,b,C,E,T,k,S,L,P,j,x,A;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!St(null==e?void 0:e.playerId)){n.next=2;break}return n.abrupt("return");case 2:if(w=(null==e?void 0:e.videoSourceUrl)||!1,y=null==e?void 0:e.asat,b=(null==e||null===(r=e.epg)||void 0===r?void 0:r.enable)||!1,C=null==e?void 0:e.videoId,E=(null==e||null===(l=e.series)||void 0===l?void 0:l.enable)||!1,T=(null==e?void 0:e.streamingInfo)||!1,window.videoId=C,k=null==e?void 0:e.token,!W(e)){n.next=17;break}if(sessionStorage.setItem("vlp_token",k),D().set(null==e?void 0:e.refreshToken),k&&!_(k)){n.next=16;break}return i({status:!1,msg:"".concat(k?"Token is expired !":"Missing Authorization Token"),response:{token:k}}),n.abrupt("return");case 16:wi=JSON.parse(atob(k.split(".")[1]));case 17:return window.siteName=null===(a=wi)||void 0===a?void 0:a.site,window.siteId=null===(u=wi)||void 0===u?void 0:u.siteId,e.isAnonymousUser=!(null===(d=wi)||void 0===d||!d.anonymousId),e.siteOwner=(null===(s=wi)||void 0===s?void 0:s.site)||null,e.userId=(null===(c=wi)||void 0===c?void 0:c.userId)||null,window.sessionStorage.setItem("uid",null===(v=wi)||void 0===v?void 0:v.userId),window.watchHistory=e.watchHistory||null,S=null==e?void 0:e.playerId,e.chromecastReceiverId=null!=e&&null!==(p=e.series)&&void 0!==p&&p.enable?null:null==e?void 0:e.chromecastReceiverId,L=(null==e||null===(m=e.analytics)||void 0===m?void 0:m.gaId)||null,(P=null==e?void 0:e.errors)&&(window.customErrors=P),window.customData=null==e?void 0:e.customData,Kt(null==e||null===(g=e.customData)||void 0===g?void 0:g.localisation),O.set(e.apiBaseUrl),null!=e&&e.skin&&!ze(e.skin)||(e.skin="VL_ONE"),n.next=35,ao(e);case 35:L&&Ae("https://www.googletagmanager.com/gtag/js?id=".concat(L)).then(function(){return e=L,window.dataLayer=window.dataLayer||[],f("js",new Date),void f("config",e);var e}).catch(function(e){}),(j=null===(h=document)||void 0===h?void 0:h.getElementById("".concat(S)))&&j.addEventListener("contextmenu",function(e){return e.preventDefault()}),w?(A={directPlaybackUrl:w,id:x="c09576ca-8202-4e8e-ba1e-06d1ab0ce063"},y?I(x,k).then(function(n){var t=(null==n?void 0:n.data)||{};mi(S,{res:Li(Li({},t),A)},e,{resolve:o,reject:i})}).catch(function(e){At(e,S,i,x)}):mi(S,{res:A},e,{resolve:o,reject:i})):T?yi(e,{resolve:o,reject:i}):E?ki(e,{resolve:o,reject:i}):b?Ei(e,{resolve:o,reject:i}):Ii(e,{resolve:o,reject:i});case 39:case"end":return n.stop()}},n)}));return function(e,n){return o.apply(this,arguments)}}())},getRenditions:Gt,skip:Tt,getPlayer:Z,play:Ct,pause:Et,detectBrowser:ge,rewind:kt,loadVideo:xt,seekToTimeStamp:Nt,isPlayerInitialised:St,load:_t,authenticateLC:Lt,dispose:Dt,enableCaptions:Ne,disableCaptions:Be,getCaptions:Fe,playSelectedResolution:zt,getSource:Le,setVolume:Yt,getVolume:qt,disableControls:Vt,setPlaybackSpeed:Ft,getEntitlementData:L,adsQueuePointManager:ut,getSsaiEvents:Wn,playerEvents:Zt,onReplay:Bt,isBehindLive:Rt}}export{Be as $,J as A,Cn as B,un as C,K as D,an as E,Jt as F,kt as G,Tt as H,_t as I,z as J,Ye as K,wn as L,dn as M,yn as N,S as O,In as P,Sn as Q,cn as R,fn as S,en as T,ln as U,on as V,Xe as W,rn as X,nn as Y,X as Z,bn as _,q as a,Ne as a0,mn as a1,zt as a2,kn as a3,ee as a4,ne as a5,Tn as a6,te as a7,En as a8,pn as a9,$e as aa,Wt as ab,Ot as ac,Ln as ad,Xo as ae,On as af,$o as ag,_i as ah,sn as b,Je as c,gn as d,Et as e,Gt as f,Z as g,Fe as h,Pn as i,he as j,ge as k,hn as l,vn as m,Jo as n,ai as o,Ct as p,di as q,He as r,ie as s,Le as t,yt as u,st as v,$ as w,qe as x,Ke as y,_n as z};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import{g as t,A as n,x as r,B as i,C as a,D as o,E as l,a as u}from"./index-2d6bcfdb.js";import{s}from"./autoNextVideo-8f8a9f2e.js";import c from"@babel/runtime/helpers/typeof";import d from"video.js";import p from"@babel/runtime/helpers/asyncToGenerator";import m from"@babel/runtime/regenerator";import v from"@babel/runtime/helpers/defineProperty";import f from"@babel/runtime/helpers/slicedToArray";var g,h,b,y,x=[],w=!1,E=function(l,u){var s;if(w=!1,null!=u&&null!==(s=u.series)&&void 0!==s&&s.enable){var c;x=[];var d=o();null==d||d.map(function(t){var n;return(n=x).push.apply(n,e(t.episodes))}),null==u||null===(c=u.series)||void 0===c||c.cb}else{var p,m;x=(null==u||null===(p=u.relatedVideos)||void 0===p?void 0:p.content)||[],null==u||null===(m=u.relatedVideos)||void 0===m||m.cb}var v=t(l);v.on("timeupdate",function(){var e,t;if(!w){var r=Math.floor(v.currentTime()),i=v.duration(),a=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];i-r<=10&&n()<=(null===(t=x)||void 0===t?void 0:t.length)-1?a&&(a.style.visibility="visible"):a&&(a.style.visibility="hidden")}});var f,g=x.filter(function(e,t){return t==n()});if((null==g?void 0:g.length)>0)if(null!==(f=document.getElementsByClassName("next-ep-preview"))&&void 0!==f&&f[0]){var h,b,y,E,N,k,j,C,O,T,I,B;(null===(h=document.getElementsByClassName("next-ep-preview"))||void 0===h?void 0:h[0]).style.visibility="hidden";var L=null===(b=document.getElementsByClassName("next-ep-title"))||void 0===b?void 0:b[0],S=null===(y=document.getElementsByClassName("next-ep-img"))||void 0===y?void 0:y[0],M=null===(E=document.getElementsByClassName("next-ep-content"))||void 0===E?void 0:E[0],P=null===(N=g[0])||void 0===N?void 0:N.title;(null===(k=P)||void 0===k?void 0:k.length)>60&&(P=P.substr(0,60)+"..."),L.textContent="".concat(P),S.src=(null===(j=g[0])||void 0===j||null===(C=j.gist)||void 0===C||null===(O=C.imageGist)||void 0===O?void 0:O.r16x9)||(null==g||null===(T=g[0])||void 0===T?void 0:T.img)||(null===(I=window)||void 0===I||null===(B=I.customData)||void 0===B?void 0:B.fallbackImage),M.onclick=function(){return A(l)}}else{var R,D,$,X,F,U,_,q,G=document.createElement("div");G.className="next-ep-preview",G.style.visibility="hidden",document.getElementById(l).append(G);var W=document.createElement("div");W.className="next-heading-wrapper";var V=document.createElement("div");V.className="next-ep-header",V.textContent="Next up";var z=document.createElement("div");z.className="next-ep-close",z.onclick=function(){G.style.visibility="hidden",w=!0},z.appendChild(r(i())),W.append(V),W.append(z);var H=null===(R=g[0])||void 0===R?void 0:R.title,Q=document.createElement("img");Q.className="next-ep-img",Q.src=(null===(D=g[0])||void 0===D||null===($=D.gist)||void 0===$||null===(X=$.imageGist)||void 0===X?void 0:X.r16x9)||(null==g||null===(F=g[0])||void 0===F?void 0:F.img)||(null===(U=window)||void 0===U||null===(_=U.customData)||void 0===_?void 0:_.fallbackImage);var Y=document.createElement("div");Y.className="next-ep-title",(null===(q=H)||void 0===q?void 0:q.length)>60&&(H=H.substr(0,60)+"..."),Y.textContent="".concat(H);var J=document.createElement("div");J.className="next-ep-content",J.append(Q),J.append(Y),J.onclick=a(function(){null==G||G.remove(),w=!0,A(l)},400),G.append(W),G.append(J)}},A=function(e,r){var i=t(e),a=Math.floor(i.currentTime());if(Math.floor(i.duration())!=a){i.pause(e);var o=n();s(o,e,x)}};function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}g={0:{src:"data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:"loading"}},h=function e(){var t,n,r,i,a;for(r in n=(t=Array.prototype.slice.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},b=function(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}},y=function e(t){return"HTML"!==t.nodeName&&"static"===b(t)("position")?e(t.offsetParent):t},d.registerPlugin("thumbnails",function(e){var t,n,r,i,a,o,l,u;function s(){document.removeEventListener("pointermove",l),document.removeEventListener("pointerup",s),u()}n=h({},g,e),i=this,function(){var e,t,n;-1!==navigator.userAgent.toLowerCase().indexOf("android")&&(t=function(){e.addClass("fake-active")},n=function(){e.removeClass("fake-active")},(e=i.controlBar.progressControl).on("touchstart",t),e.on("touchend",n),e.on("touchcancel",n))}(),(t=document.createElement("div")).className="vjs-thumbnail-holder",r=document.createElement("img"),t.appendChild(r),r.src=n[0].src,r.className="vjs-thumbnail",h(r.style,n[0].style),r.style.left||r.style.right||(r.onload=function(){r.style.left=-r.naturalWidth/2+"px"}),o=i.duration(),i.on("durationchange",function(e){o=i.duration()}),i.on("loadedmetadata",function(e){o=i.duration()}),(a=i.controlBar.progressControl).el().appendChild(t),l=function(e){var i,l,u,s,c,d,p,m,v,f;for(l in u=0,v=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,p=((f=y(a.el()).getBoundingClientRect()).width||f.right)+v,d=e.pageX,e.changedTouches&&(d=e.changedTouches[0].pageX),s=d||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,s-=y(a.el()).getBoundingClientRect().left+v,i=Math.floor((s-a.el().offsetLeft)/a.width()*o),n)i>l&&(u=Math.max(u,l));(c=n[u]).src&&r.src!=c.src&&(r.src=c.src),c.style&&r.style!=c.style&&h(r.style,c.style),s+(m=function(e,t){var n;return t?parseFloat(t):"auto"!==(n=b(e)("clip"))&&"inherit"!==n&&4===(n=n.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?parseFloat(n[1])-parseFloat(n[3]):0}(r,c.width||n[0].width)/2)>p?s-=s+m-p:s<m&&(s=m),t.style.left=s+"px"},a.on("mousemove",l),a.on("touchmove",l),a.on("pointerdown",function(e){document.addEventListener("pointermove",l),document.addEventListener("pointerup",s)}),u=function(e){t.style.left="-1000px"},a.on("mouseout",u),a.on("touchcancel",u),a.on("touchend",u),i.on("userinactive",u)});var j="my-player";function C(e){var t=e.split("\n"),n=[];return t.forEach(function(e){if((e=e.trim()).startsWith("#EXT-X-IMAGE-STREAM-INF")){var t=e.split(","),r={resolution:null,uri:null};t.forEach(function(e){e.includes("RESOLUTION")&&(r.resolution=e.split("=")[1]),e.includes("URI")&&(r.uri=e.split("=")[1].replace(/"/g,""))}),n.push(r)}}),n}function O(){return(O=p(m.mark(function e(t){var n,r,i,a,o,l,u,s,c,d,p,v,g,h,b,y,x,w,E,A,N,k,j,C;return m.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t._tiles){e.next=2;break}return e.abrupt("return",t._tiles);case 2:return e.prev=2,e.next=5,fetch(t.uri,{mode:"cors"});case 5:return n=e.sent,e.next=8,n.blob();case 8:return r=e.sent,e.next=11,createImageBitmap(r);case 11:for(i=e.sent,a=t.layout.split("x").map(Number),o=f(a,2),l=o[0],u=o[1],s=i.width/u,c=i.height/l,d=[],p=0;p<l;p++)for(v=0;v<u;v++)(g=document.createElement("canvas")).width=s,g.height=c,g.getContext("2d").drawImage(i,v*s,p*c,s,c,0,0,s,c),h=g.toDataURL("image/png"),d.push({uri:h,duration:t.duration}),t._tiles=d;return e.abrupt("return",d);case 20:for(e.prev=20,e.t0=e.catch(2),b=t.layout.split("x").map(Number),y=f(b,2),x=y[0],w=y[1],E=[],A=0;A<x*w;A++)E.push({uri:null===(N=window)||void 0===N||null===(k=N.app_data)||void 0===k||null===(j=k.appcmsMain)||void 0===j||null===(C=j.images)||void 0===C?void 0:C.placeholderCover,duration:t.duration});return e.abrupt("return",E);case 26:case"end":return e.stop()}},e,null,[[2,20]])}))).apply(this,arguments)}function T(e,t){return I.apply(this,arguments)}function I(){return(I=p(m.mark(function e(t,n){var r,i;return m.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return j=n,e.prev=1,e.next=4,fetch(t);case 4:return r=e.sent,e.next=7,r.text();case 7:return i=e.sent,e.abrupt("return",C(i));case 11:e.prev=11,e.t0=e.catch(1),console.error("Error fetching the M3U8 manifest:",e.t0);case 14:case"end":return e.stop()}},e,null,[[1,11]])}))).apply(this,arguments)}function B(e,n,r){var i=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"),a=t(j);if(i&&a){var o=i.getBoundingClientRect(),l=(e.clientX-o.left)/o.width,u=function(e,t){var n,r;if(!t||0===t.length)return null;var i=0,a=t.length-1;for(;i<=a;){var o=Math.floor((i+a)/2),l=t[o];if(l===e)return l;l<e?i=o+1:a=o-1}var u=null!==(n=t[i])&&void 0!==n?n:1/0,s=null!==(r=t[a])&&void 0!==r?r:-1/0;return Math.abs(u-e)<Math.abs(s-e)?u:s}(Math.round(l*a.duration()),r),s=n[u];s&&!s.loading&&(s.loading=!0,function(e){return O.apply(this,arguments)}(s).then(function(e){var t=e[s.tileIndex],n=document.querySelector(".vjs-thumbnail-holder img");n&&t.uri&&(n.src=t.uri),s.loading=!1,s.src=t.uri}))}}function L(e){return S.apply(this,arguments)}function S(){return(S=p(m.mark(function e(t){var n,r,i,a;return m.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={},t.forEach(function(e,t){for(var r=e.layout.split("x").map(Number),i=f(r,2),a=i[0]*i[1],o=e.duration,l=0;l<a;l++){var u,s=Math.round((t*a+l)*o);n[s]=k(k({},e),{},{duration:e.duration,tileIndex:l,loading:!1,style:(u={left:"-60px",height:"85px",width:"130px"},v(u,"left","-60px"),v(u,"border","1px solid transparent"),v(u,"borderRadius","4px"),u)})}}),r=Object.keys(n).map(Number).sort(function(e,t){return e-t}),null==(i=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"))||i.addEventListener("mousemove",l(function(e){return B(e,n,r)},500)),null==(a=document.querySelector(".vjs-progress-control.vjs-control"))||a.addEventListener("pointerdown",function(e){document.addEventListener("pointermove",l(function(e){return B(e,n,r)},500))}),e.abrupt("return",n);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}var M=function(){var e=p(m.mark(function e(t,n){var r,i,a,o,l,u,s,c;return m.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:i=e.sent,a=i.split("\n").map(function(e){return e.trim()}),o=[],l=null,u=0;case 10:if(!(u<(null==a?void 0:a.length))){e.next=27;break}if(!(s=a[u]).startsWith("#EXT-X-TILES")){e.next=19;break}l={resolution:null,duration:null,uri:null,layout:null},c=s.split(":")[1]||"",c.split(",").forEach(function(e){var t=e.split("="),n=f(t,2),r=n[0],i=n[1];r&&i&&(l[r.trim().toLowerCase()]=i.trim())}),e.next=24;break;case 19:if(!s.startsWith("#EXTINF")){e.next=23;break}return e.abrupt("continue",24);case 23:(s.includes("jpg")||s.includes("png")||s.includes("jpeg"))&&(l.uri=s.includes("http")?s:t+s,o.push(l),l=null);case 24:u++,e.next=10;break;case 27:return e.abrupt("return",o);case 28:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}();function P(e){return e.replace(/AdSegmentFilter\/markers=\(.+?\)\//,"")}function R(e,t){return D.apply(this,arguments)}function D(){return(D=p(m.mark(function e(n,r){var i,a,o,l,s,c,d,p,v,g,h,b,y,x,w,E,A,N,k,C,O,T,I,B,L,S,M,R,D,F,U,_,q,G,W,V,z,H,Q,Y,J,K,Z,ee,te,ne,re,ie,ae,oe,le,ue,se,ce,de,pe,me,ve;return m.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return j=r,i=t(r),a=n.split("/"),o=a.findIndex(function(e){return"dash"===e.toLowerCase()}),l=P(-1!==o?a.slice(0,o+1).join("/"):new URL(n).origin),e.prev=5,e.next=8,fetch(n);case 8:return p=e.sent,e.next=11,p.text();case 11:v=e.sent,g=new DOMParser,h=g.parseFromString(v,"application/xml"),b=(null==i?void 0:i.duration())||(null===(s=u())||void 0===s||null===(c=s.video)||void 0===c?void 0:c.runtime),y=(null==h||null===(d=h.querySelector("MPD > BaseURL"))||void 0===d?void 0:d.textContent)||l+"/",x=h.getElementsByTagName("AdaptationSet"),w=0;case 18:if(!(w<x.length)){e.next=72;break}if(("image"!==(E=x[w]).getAttribute("contentType")||"image/png"!==E.getAttribute("mimeType"))&&"image/jpeg"!==E.getAttribute("mimeType")){e.next=69;break}if(N=E.getElementsByTagName("SegmentTemplate")[0],k=null===(A=N.getElementsByTagName("SegmentTimeline"))||void 0===A?void 0:A[0],!N||!k){e.next=48;break}if(T=k.getElementsByTagName("S"),I=parseInt(null===(C=T[0])||void 0===C?void 0:C.getAttribute("t")),B=parseInt(null===(O=T[0])||void 0===O?void 0:O.getAttribute("d")),L=E.getElementsByTagName("Representation")[0],S=L.getElementsByTagName("EssentialProperty")[0],M=S.getAttribute("value"),R=null==M?void 0:M.split("x"),D=f(R,2),F=D[0],U=D[1],!N){e.next=46;break}if(N.getAttribute("media"),_=N.getAttribute("timescale"),q=(_?B/_:B)/(F*U),G=L.getAttribute("id"),W=Math.round(b/q),V=Math.ceil(W/(F*U)),z=N.getAttribute("media"),parseInt(N.getAttribute("startNumber")),!isNaN(parseInt(V))){e.next=43;break}return e.abrupt("return");case 43:for(H=[],w=0;w<V;w++)Y="/"==(Q=z)[0]?new URL(l).origin:l+"/",H.push({duration:q,layout:M,uri:Y+Q.replace("$Time$",I+w*B).replace("$RepresentationID$",G)});return e.abrupt("return",H);case 46:e.next=69;break;case 48:if(J=E.getElementsByTagName("Representation")[0],K=J.getElementsByTagName("EssentialProperty")[0],Z=K.getAttribute("value"),ee=null==Z?void 0:Z.split("x"),te=f(ee,2),ne=te[0],re=te[1],!N){e.next=69;break}if(N.getAttribute("media"),ie=N.getAttribute("duration"),ae=N.getAttribute("timescale"),oe=(ae?ie/ae:ie)/(ne*re),le=J.getAttribute("id"),ue=Math.round(b/oe),se=Math.ceil(ue/(ne*re)),ce=N.getAttribute("media"),de=parseInt(N.getAttribute("startNumber"))||0,!isNaN(parseInt(se))){e.next=65;break}return e.abrupt("return");case 65:for(pe=[],me=$(ce),w=0;w<se;w++)ve=me?X(me,w+de):ce,pe.push({duration:oe,layout:Z,uri:y+ve.replace("$Number$",w+de).replace("$RepresentationID$",le)});return e.abrupt("return",pe);case 69:w++,e.next=18;break;case 72:return console.log("No trickplay segment found."),e.abrupt("return",null);case 76:e.prev=76,e.t0=e.catch(5),console.error("Error fetching or parsing MPD:",e.t0);case 79:case"end":return e.stop()}},e,null,[[5,76]])}))).apply(this,arguments)}function $(e){var t=e.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return t?t[0]:null}function X(e,t){var n=e.match(/%0(\d+)d/);if(!n)return e;var r=parseInt(n[1],10),i=String(t).padStart(r,"0");return e.replace(/\$Number%0\d+d\$/,i)}function F(e){return U.apply(this,arguments)}function U(){return(U=p(m.mark(function e(n){var r,i,a,o,l,u,s,c,d,p,v,f,g,h,b,y;return m.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u=t(n),s=u.currentSource(),c=s.src,c=null!==(r=c)&&void 0!==r&&r.includes("blob")?null===(i=window)||void 0===i||null===(a=i.player)||void 0===a?void 0:a.getSource():c,null===(o=c)||void 0===o||!o.includes("m3u8")){e.next=19;break}return e.next=6,T(c,n);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,v=p.uri,f=c.substring(0,c.lastIndexOf("/"))+"/",e.next=12,M(f,v);case 12:return g=e.sent,e.next=15,L(g);case 15:h=e.sent,u.thumbnails(h);case 17:e.next=28;break;case 19:if(null===(l=c)||void 0===l||!l.includes("mpd")){e.next=28;break}return e.next=22,R(c,n);case 22:if(!((null==(b=e.sent)?void 0:b.length)>0)){e.next=28;break}return e.next=26,L(b);case 26:y=e.sent,u.thumbnails(y);case 28:case"end":return e.stop()}},e)}))).apply(this,arguments)}function _(e,n){var r=t(e),i=null==n?void 0:n.tvProviderLogoUrl;if(i){var a=document.createElement("div");a.className="tvProviderImage";var o=document.createElement("img");o.src="".concat(i),o.alt="Provider Image",a.append(o),r.el().appendChild(a),r.on("useractive",function(){a.classList.remove("vjs-fade")}),r.on("userinactive",function(){r.paused()||a.classList.add("vjs-fade")}),r.on("fullscreenchange",function(){r.isFullscreen_?a.style.top="3.2rem":a.style.top="1rem"})}}export{E as a,_ as b,F as i};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import n from"video.js";import{a8 as s,T as i,B as l,g as c,a9 as m,I as d,p}from"./index-2d6bcfdb.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/assertThisInitialized";function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}var h=n.getComponent("Component"),v=function(){a(b,h);var v,y,f=(v=b,y=u(),function(){var e,t=o(v);if(y){var a=o(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return r(this,e)});function b(t){var a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(a=f.call(this,t,r)).playerId=r.playerId,a.seriesData=r.sres,a.streams=r.streams,a.currentVideoData=r.res,a.initialiseStructure(),a.loadCSS(),a}return t(b,[{key:"createEl",value:function(){var e=n.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=n.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(s())});return n.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./multicamv2-1fb5149a.js").then(function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this.el(),t=n.dom.createEl("div",{className:"stream-container hidden"});n.dom.$(".stream-selector-icon",this.el()).onclick=function(){var a;null!==(a=t.classList)&&void 0!==a&&a.contains("hidden")?(i(),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 a=document.getElementById(this.playerId);if(a){var r=window.getComputedStyle(a,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(r,"px"),a.style.overflow="hidden",n.dom.appendContent(e,t),this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var t=this,a=this.el(),r=n.dom.createEl("div",{className:"stream-selector-head"}),o=n.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(l())});o.onclick=function(){e.classList.add("hidden"),a.classList.remove("open"),e.style.right="-350px"};for(var s=n.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),i=n.dom.createEl("div",{className:"stream-selector-content"}),u=n.dom.createEl("div",{className:"stream-tray"}),h=function(e){var a,r=n.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(m())});0==e&&(r.classList.add("selected"),r.style.border="4px solid #D2393B"),r.onclick=function(){for(var a=n.dom.$$(".stream"),o=0;o<a.length;o++)a[o].style.border="none",a[o].classList.remove("selected");r.classList.add("selected"),r.style.border="4px solid #D2393B",d(t.playerId,t.streams[e].id).then(function(e){p(t.playerId),console.log(e)}).catch(function(e){console.log(e)})},r.style.backgroundImage="url(".concat(t.streams[e].img,")");var o=document.createElement("img");o.className="stream-thumbnail-image",o.src="".concat(null==t||null===(a=t.streams[e])||void 0===a?void 0:a.img),o.alt="No Thumbnail Available",r.append(o),n.dom.appendContent(u,r),n.dom.appendContent(i,u)},v=0;v<this.streams.length;v++)h(v);n.dom.appendContent(r,o),n.dom.appendContent(r,s),n.dom.appendContent(e,r),n.dom.appendContent(e,i),c(this.playerId).on("fullscreenchange",function(){var a=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(a,"px")})}}]),b}();export{v as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import s from"video.js";import{a8 as n,T as i,U as l,B as c,X as d,a9 as m,I as p,p as u}from"./index-2d6bcfdb.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/assertThisInitialized";function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var h=s.getComponent("Component"),f=function(){a(g,h);var f,y,b=(f=g,y=v(),function(){var e,t=o(f);if(y){var a=o(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return r(this,e)});function g(t){var a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,g),(a=b.call(this,t,r)).playerId=r.playerId,a.seriesData=r.sres,a.streams=r.streams,a.currentVideoData=r.res,a.initialiseStructure(),a.loadCSS(),a}return t(g,[{key:"createEl",value:function(){var e=s.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=s.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(n())});return s.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./multicamv2-b7cec0cf.js").then(function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),a=s.dom.createEl("div",{className:"stream-container hidden"});s.dom.$(".stream-selector-icon",this.el()).onclick=function(){var r;null!==(r=a.classList)&&void 0!==r&&r.contains("hidden")?(i(),a.classList.remove("hidden"),t.classList.add("open"),l(e.playerId,a)):(a.classList.add("hidden"),t.classList.remove("open"))};var r=document.getElementById(this.playerId);if(r){var o=window.getComputedStyle(r,null).getPropertyValue("height").slice(0,-2);a.style.height="".concat(o,"px"),r.style.overflow="hidden",s.dom.appendContent(t,a),this.addFunctionality(a)}}},{key:"addFunctionality",value:function(e){var t=this,a=this.el(),r=s.dom.createEl("div",{className:"stream-selector-head"}),o=s.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(c())});o.onclick=function(){e.classList.add("hidden"),a.classList.remove("open")};for(var n=s.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),i=s.dom.createEl("div",{className:"stream-selector-content"}),l=s.dom.createEl("div",{className:"stream-tray"}),v=parseInt(sessionStorage.getItem("selectedStreamIndex")||0),h=function(e){var a,r,o,n=s.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(m())});v==e&&(n.classList.add("selected"),n.style.border="2px solid #D2393B"),n.onclick=function(){for(var a=s.dom.$$(".stream"),r=0;r<a.length;r++)a[r].style.border="none",a[r].classList.remove("selected");n.classList.add("selected"),n.style.border="2px solid #D2393B",p(t.playerId,t.streams[e].id).then(function(e){u(t.playerId),console.log(e)}).catch(function(e){console.log(e)})},n.style.backgroundImage="url(".concat(t.streams[e].img,")");var c=document.createElement("img");c.className="stream-thumbnail-image",c.src="".concat((null==t||null===(a=t.streams[e])||void 0===a?void 0:a.img)||(null===(r=window)||void 0===r||null===(o=r.customData)||void 0===o?void 0:o.fallbackImage)),n.append(c),s.dom.appendContent(l,n),s.dom.appendContent(i,l)},f=0;f<this.streams.length;f++)h(f);s.dom.appendContent(r,o),s.dom.appendContent(r,n),s.dom.appendContent(e,r),s.dom.appendContent(e,i),d(this.playerId,e)}}]),g}();export{f as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import r from"video.js";import{P as l,I as s,J as a,K as d}from"./index-2d6bcfdb.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/assertThisInitialized";function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var u=r.getComponent("Component"),c=function(){n(c,u);var s,a,d=(s=c,a=p(),function(){var e,t=i(s);if(a){var n=i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function c(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,c),(n=d.call(this,t,o)).playerId=o.playerId,n.seriesData=o.sres,n.currentVideoData=o.res,n.initialiseStructure(),n.loadCSS(),n}return t(c,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"play-next"}),t=r.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(l(window.controlsColor?window.controlsColor:"white"))});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./nextEpisodeButton-a1556cdf.js").then(function(e){var t=document.createElement("style");t.id="multicam",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this.el(),t=r.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),n=r.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),o=r.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=r.dom.createEl("div",{className:"next-eps-image"}),l=r.dom.createEl("div",{className:"next-eps-description"});r.dom.appendContent(o,i),r.dom.appendContent(o,l),r.dom.appendContent(t,n),r.dom.appendContent(t,o),this.toggleContentOnHover(e,t),r.dom.appendContent(e,t)}},{key:"toggleContentOnHover",value:function(e,t){e.addEventListener("mouseover",function(){r.dom.removeClass(t,"nextepisode-hidden")}),t.addEventListener("mouseover",function(){r.dom.removeClass(t,"nextepisode-hidden")}),e.addEventListener("mouseout",function(){r.dom.addClass(t,"nextepisode-hidden")}),t.addEventListener("mouseout",function(){r.dom.addClass(t,"nextepisode-hidden")})}}]),c}(),m=function(e,t){var n=v(e,t.video.gist.id),o=h(e[n],t.video.gist.id),i=f(e[n],o);x(i.nextEp)},v=function(e,t){for(var n=-1,o=0;o<e.length;o++)for(var i=0;i<e[o].episodes.length;i++)if(e[o].episodes[i].id===t){n=o;break}return n},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;if(!(e&&t>=0))return{prevEp:null,nextEp:null};var n=e.episodes.length,o=t-1>=0?t-1:n-1,i=(t+1)%n,r=n>1?e.episodes[o]:null,l=n>1?e.episodes[i]:null;return o===i&&(0===o?l=null:r=null),{prevEp:r,nextEp:l,prevEpIdx:o,nextEpIdx:i}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=null;return e?(e.episodes.forEach(function(e,o){e.gist.id===t&&(n=o)}),n):null},x=function(e){var t,n;r.dom.$(".next-eps"),r.dom.$(".play-next").onclick=function(){var t;s("my-player",null==e||null===(t=e.gist)||void 0===t?void 0:t.id).then(function(e){a(e.response)})};var o=r.dom.$(".next-eps-image"),i=d("<img src=".concat(null==e||null===(t=e.gist)||void 0===t?void 0:t.videoImageUrl," />")),l=null==i?void 0:i.firstChild;null==o||o.append(l);for(var p=r.dom.$(".next-eps-description"),u=d("<div class='next-eps-title'>".concat(null==e?void 0:e.title,"</div>\n <div class='next-eps-description-details'>").concat(null==e||null===(n=e.gist)||void 0===n?void 0:n.description,"</div>"));null!=u&&u.firstChild;)null==p||p.appendChild(u.firstChild)};export{c as default,m as initaliseFunctionality};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import l from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{L as s,T as r,B as d,g as c,I as p,Z as m}from"./index-2d6bcfdb.js";import{a as u}from"./autoNextVideo-8f8a9f2e.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/assertThisInitialized";function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var y=a.getComponent("Component"),h=function(){n(g,y);var h,f,b=(h=g,f=v(),function(){var e,t=i(h);if(f){var l=i(this).constructor;e=Reflect.construct(t,arguments,l)}else e=t.apply(this,arguments);return o(this,e)});function g(e){var l,n,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,g),(i=b.call(this,e,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=null==a||null===(l=a.playlist)||void 0===l?void 0:l.content,i.cb=(null==a||null===(n=a.playlist)||void 0===n?void 0:n.cb)||null,i.autoNext=(null==a||null===(o=a.playlist)||void 0===o?void 0:o.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&u({playerId:i.playerId,content:i.videos,cb:i.cb}),i}return l(g,[{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(s())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./playlist-7ecf432a.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 l;null!==(l=t.classList)&&void 0!==l&&l.contains("hidden")?(r(),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 l=document.getElementById(this.playerId);if(l){var n=window.getComputedStyle(l,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(n,"px"),a.dom.appendContent(e,t),l.style.overflow="hidden",this.addFunctionality(t)}}},{key:"addFunctionality",value:function(t){var l=this,n=this.el(),o=a.dom.createEl("div",{className:"playlist-selector-head"}),i=a.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(d())});i.onclick=function(){t.classList.add("hidden"),n.classList.remove("open"),t.style.right="-350px"};for(var s=a.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),r=a.dom.createEl("div",{className:"playlist-selector-content"}),u=function(t){var n,o,i=a.dom.createEl("div",{className:"playlist-container"}),s=a.dom.createEl("div",{className:"playlist-section",index:t}),d=a.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(n=l.videos[t])||void 0===n?void 0:n.title)||"")}),c=a.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(l.videos[t].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});a.dom.appendContent(s,d),a.dom.appendContent(s,c),a.dom.appendContent(i,s),a.dom.appendContent(r,i);var u=a.dom.createEl("div",{className:"playlist-section-expanded hidden"}),v=a.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(o=l.videos[t])||void 0===o?void 0:o.description)||"")}),y=a.dom.createEl("div",{className:"playlist-image"});y.style.backgroundImage="url(".concat(l.videos[t].img,")"),a.dom.appendContent(u,y),a.dom.appendContent(u,v),a.dom.appendContent(i,u),a.dom.appendContent(r,i),u.onclick=function(e){e.stopPropagation(),m(t+1),p(l.playerId,l.videos[t].id).then(function(e){null!=l&&l.cb&&l.cb(e)}).catch(function(e){null!=l&&l.cb&&l.cb(e)})},s.onclick=function(t){var l,n,o,a=document.getElementsByClassName("playlist-selector-content")[0].childNodes,s=(a=e(a))[t.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=s&&null!==(l=s.classList)&&void 0!==l&&l.contains("hidden")?(i.style.backgroundColor="#0000007d",null==s||null===(n=s.classList)||void 0===n||n.remove("hidden")):(null==s||null===(o=s.classList)||void 0===o||o.add("hidden"),i.style.backgroundColor="unset")}},v=0;v<this.videos.length;v++)u(v);a.dom.appendContent(o,i),a.dom.appendContent(o,s),a.dom.appendContent(t,o),a.dom.appendContent(t,r),c(this.playerId).on("fullscreenchange",function(){var e=document.getElementById(l.playerId);if(e){var n=window.getComputedStyle(e,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(n,"px")}})}}]),g}();export{h as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/get";import t from"@babel/runtime/helpers/classCallCheck";import i from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/assertThisInitialized";import o from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import a from"@babel/runtime/helpers/defineProperty";import s from"video.js";import{g as u}from"./index-2d6bcfdb.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";function d(e){var t=c();return function(){var i,n=l(e);if(t){var o=l(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return r(this,i)}}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}var h=s.getComponent("MenuButton"),p=s.getComponent("MenuItem"),v=s.getComponent("Menu"),m=function(e){var t="";return e>719&&e<1081?t+=" HD":e>=1081&&e<1500?t+=" 2K":e>=1500&&(t+=" 4K"),t},b=function(){o(r,p);var e=d(r);function r(i,o){var l;return t(this,r),l=e.call(this,i,o),a(n(l),"playSelectedResolution",function(){var e,t,i,n,o,r,a,s=l._options,d=s.id,c=s.auto,h=s.playerId,p=u(h);(null==p||null===(e=p.tech_)||void 0===e?void 0:e.vhs)||!1?(p.tech_.vhs.representations().forEach(function(e){e.enabled(c||e.id===d)}),p.handleTechPlaying_(),l.resetPlaybackPosition(p)):c?null==p||null===(t=p.dash)||void 0===t||null===(i=t.mediaPlayer)||void 0===i||i.resetSettings():(null==p||null===(n=p.dash)||void 0===n||null===(o=n.mediaPlayer)||void 0===o||o.updateSettings({streaming:{abr:{autoSwitchBitrate:!1}}}),null==p||null===(r=p.dash)||void 0===r||null===(a=r.mediaPlayer)||void 0===a||a.setRepresentationForTypeById("video",d),l.resetPlaybackPosition(p))}),l._options=o,l}return i(r,[{key:"handleClick",value:function(){var e,t=this._options,i=t.height,n=t.bandwidth;window.height===i&&n==window.bandwidth||(window.height=i,window.bandwidth=n,this.playSelectedResolution(),this.player().controlBar.getChild("resolutionModule").menu.children().forEach(function(e){return e.selected(!1)}),this.selected(!0),null===(e=this.player().controlBar.getChild("resolutionModule"))||void 0===e||e.blur())}},{key:"resetPlaybackPosition",value:function(e){var t=e.currentTime();e.currentTime(0),setTimeout(function(){e.currentTime(t)},100)}}]),r}(),f=function(){o(r,h);var n=d(r);function r(e,i){var o;return t(this,r),(o=n.call(this,e,i)).el_.setAttribute("aria-label",o.localize("Quality Levels")),o.controlText("Quality Levels"),e.options().experimentalSvgIcons||o.$(".vjs-icon-placeholder").classList.add("vjs-icon-cog"),o.setIcon("cog"),o}return i(r,[{key:"buildWrapperCSSClass",value:function(){return"vjs-quality-menu-wrapper ".concat(e(l(r.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createMenu",value:function(){var e,t,i,n,o=this,r=new v(this.player()),l=(null===(e=this.options_)||void 0===e?void 0:e.renditions)||[],a=this.removeDuplicateResolution(l),s=(null===(t=this.player)||void 0===t||null===(i=t.tech_)||void 0===i?void 0:i.vhs)||!1;return a.forEach(function(e){var t=s?o.createRenditions(e):o.createDashRenditions(e);r.addChild(t)}),r.addChild(new b(this.player(),{label:"Auto",auto:!0,selected:!0,selectable:!0,playerId:null===(n=this.options_)||void 0===n?void 0:n.playerId})),r}},{key:"createRenditions",value:function(e){var t,i;console.log("createRenditions ele",e);var n=(((null==e||null===(t=e.playlist)||void 0===t?void 0:t.attributes["AVERAGE-BANDWIDTH"])||(null==e||null===(i=e.playlist)||void 0===i?void 0:i.attributes.BANDWIDTH))/1048576).toFixed(1),o="".concat(e.height,"p");return window.enableResolutionsBitrate&&(o+=" @ ".concat(n,"mbps")),o+=m(e.height),console.log("bitrate",n,o),new b(this.player(),{id:e.id,label:o,selected:!1,selectable:!0,height:e.height,bandwidth:e.bandwidth,playerId:this.options_.playerId})}},{key:"createDashRenditions",value:function(e){var t=(e.bitrate/1e6).toFixed(1),i="".concat(e.height,"p");return window.enableResolutionsBitrate&&(i+=" @ ".concat(t,"mbps")),i+=m(e.height),new b(this.player(),{id:e.id,label:i,selected:!1,selectable:!0,height:e.height,playerId:this.options_.playerId})}},{key:"removeDuplicateResolution",value:function(e){return e&&null!=e&&e.length?e.reduce(function(e,t){var i=e.find(function(e){return(null==e?void 0:e.height)===(null==t?void 0:t.height)});if(i){if((null==i?void 0:i.bitrate)<(null==t?void 0:t.bitrate)){var n=e.indexOf(i);e[n]=t}}else e.push(t);return e},[]):e}}]),r}();export{f as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/asyncToGenerator";import i from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/assertThisInitialized";import s from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import a from"@babel/runtime/helpers/getPrototypeOf";import o from"@babel/runtime/helpers/defineProperty";import l from"@babel/runtime/regenerator";import c from"video.js";import{K as d,L as p,O as v,e as u,I as m,J as f,p as h}from"./index-2d6bcfdb.js";import"video.js/dist/video-js.min.css";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";var g=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var y,C=c.getComponent("Component"),w=function(){s(d,C);var e,l,c=(e=d,l=b(),function(){var i,t=a(e);if(l){var n=a(this).constructor;i=Reflect.construct(t,arguments,n)}else i=t.apply(this,arguments);return r(this,i)});function d(e){var t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(this,d),t=c.call(this,e,s),o(n(t),"seriesData",[]),t.seriesData=s.seriesData,y=s.playerId,x(t.el(),t.seriesData),t.loadCSS(),t}return t(d,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}},{key:"loadCSS",value:function(){import("./series-041152aa.js").then(function(e){var i=document.createElement("style");i.id="series",i.append("".concat(e.default)),document.head.appendChild(i)})}}]),d}();function L(){return(L=e(l.mark(function e(i,t,n,s){return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:u(y),g(y),m(y,t).then(function(e){f(e.response),h(y)});case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function k(e,i,t,n){var s=document.getElementById("season-list"),r=document.getElementById("episode-list"),a=document.getElementById("episode-container");e.id;for(var o=e.episodes.map(function(e,i){return'\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">'.concat(i+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")}).join("");null!=a&&a.firstChild;)a.removeChild(a.firstChild);for(var l=d(o);null!=l&&l.firstChild;)a.appendChild(l.firstChild);!function(e){v(e).then(function(e){var i=e.data,t=document.querySelectorAll("#progress-div");t&&i.map(function(e,i){e&&e.watchedPercentage&&t[i]&&(t[i].style.width=e.watchedPercentage+"px")})}).catch(function(e){})}(n),s.classList.toggle("hide-container"),r.classList.toggle("hide-container");var c=document.querySelectorAll(".details-wrapper"),p=document.querySelectorAll("#episode-title"),u=document.querySelectorAll(".meta-details"),m=document.querySelector("#episodes-back-btn"),f=e.id,h=e.episodes;m.addEventListener("click",function(){return function(e,i){e.classList.remove("hide-container"),i.classList.add("hide-container")}(s,r)});for(var g=function(i){c[i].addEventListener("click",function(){return function(e,i,t){var n=i.querySelector(".meta-details");i.classList.toggle("episode-active"),n.classList.toggle("metadetails-active"),t.forEach(function(i,n){n!==e&&(t[n].classList.remove("episode-active"),t[n].querySelector(".meta-details").classList.remove("metadetails-active"))})}(i,p[i],p)}),u[i].addEventListener("click",function(){return function(e,i,t,n){return L.apply(this,arguments)}(i,h[i].id,t,p)}),e.episodes[i].id==f&&p[i].classList.add("highlight-active-eps")},b=0;b<c.length;b++)g(b)}function x(e,i){for(var t='<div class="hover-div"></div>\n '.concat(p(),'\n <div class="player-season-list-container on-click-toggle">\n <div id="season-list" class="season-list">\n <div class="season-list-head">seasons</div>\n <div class="season-name-container">\n ').concat(function(e){return e.map(function(e,i){return'<div\n class="season-title-sdk"\n key='.concat("title-".concat(e.title),'\n > <div class="season-container">\n ',e.title,"\n </div>\n </div>\n ")}).join("")}(i),'\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class=\'icon icon-backward\' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>');null!=e&&e.firstChild;)e.removeChild(e.firstChild);for(var n=d(t);null!=n&&n.firstChild;)e.appendChild(n.firstChild)}export{x as customSeasonList,k as handleSeasonChange,w as seriesModule};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import s from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/assertThisInitialized";import n from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{w as r,a4 as d,a5 as c,L as u,T as m,B as p,x as v,g as h,a6 as f,D as C,a7 as y,I as g}from"./index-2d6bcfdb.js";import{a as b}from"./autoNextVideo-8f8a9f2e.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/slicedToArray";import"@viewlift/comscore/index.js";import"@babel/runtime/helpers/typeof";function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(N=function(){return!!e})()}var E=a.getComponent("Component"),k=function(){n(L,E);var k,x,S=(k=L,x=N(),function(){var e,t=l(k);if(x){var s=l(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return i(this,e)});function L(s){var n,i,l,a,u,m,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,L),(m=S.call(this,s,p)).playerId=p.playerId,m.seriesData=p.sres,m.videos=null==p||null===(n=p.sres)||void 0===n?void 0:n.seasons,m.currentVideoData=p.res,m.initialiseStructure(),m.loadCSS(),m.selectedSeason=0,m.cb=null==p||null===(i=p.series)||void 0===i?void 0:i.cb,m.autoPlayNext=(null==p||null===(l=p.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),m.watchMap=r(),null!==(a=o(m))&&void 0!==a&&a.autoPlayNext&&null!=p&&null!==(u=p.series)&&void 0!==u&&u.enable){var v,h,f,C,y=null==p||null===(v=p.sres)||void 0===v?void 0:v.seasons,g=[];y.map(function(t){g.push.apply(g,e(t.episodes))}),d(g),c(null===(h=m.options_)||void 0===h||null===(f=h.res)||void 0===f||null===(C=f.video)||void 0===C?void 0:C.id),b({playerId:m.playerId,content:g,cb:m.cb,series:null==p?void 0:p.sres})}return m}return s(L,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(u())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./series-v2-87343239.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,s=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(m(),e.classList.remove("hidden"),s.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),s=a.dom.createEl("div",{className:"series-selection-container hidden"});a.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(s)};var o=document.getElementById(this.playerId);if(o){var n=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);s.style.height="".concat(n,"px"),a.dom.appendContent(t,s),o.style.overflow="hidden",this.addFunctionality(s)}}},{key:"addFunctionality",value:function(e){var t=this,s=this.el(),o=a.dom.createEl("div",{className:"series-selector-head"}),n=a.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(p())});n.onclick=function(){if("series-selector-cross-icon"===n.className)e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===n.className){var o=a.dom.$(".series-selector-content",t.el());for(a.dom.$(".series-selector-cross-icon",t.el()),n.className="series-selector-cross-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var i=t.createSeasonLister();for(a.dom.appendContent(o,i),a.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var l=v(p());n.appendChild(l)}};var i=a.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),l=a.dom.createEl("div",{className:"series-selector-content"}),r=this.createSeasonLister();a.dom.appendContent(l,r),a.dom.appendContent(o,n),a.dom.appendContent(o,i),a.dom.appendContent(e,o),a.dom.appendContent(e,l),h(this.playerId).on("fullscreenchange",function(){var s=document.getElementById(t.playerId);if(s){var o=window.getComputedStyle(s,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(o,"px")}})}},{key:"createSeasonLister",value:function(){var e=this;h(this.playerId);for(var t=C(),s=a.dom.createEl("div",{className:"season-container"}),o=function(o){var n,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(o));var l=document.createElement("div");l.className="season - ".concat(o),l.textContent=null===(n=t[o])||void 0===n?void 0:n.title;var r=a.dom.createEl("input",{className:"radio - ".concat(o),id:"season-".concat(o),name:"season-radio"});r.setAttribute("type","radio"),e.selectedSeason==o&&(r.checked=!0),r.onclick=function(t){y.set(o),e.showSeasonDetails(o)},a.dom.appendContent(i,r),a.dom.appendContent(i,l),a.dom.appendContent(s,i)},n=0;n<t.length;n++)o(n);return s}},{key:"getSeasonDetailsContainer",value:function(t,s){var o=this;t=t.map(function(e){var t,s,n,i,l;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===(s=e.gist)||void 0===s||null===(n=s.imageGist)||void 0===n?void 0:n.r16x9,watchedPercentage:(null==o||null===(i=o.watchMap)||void 0===i||null===(l=i.get(null==e?void 0:e.id))||void 0===l?void 0:l.p)||0}});for(var n=function(n){var i,l,r,d,u,m,p,v=a.dom.createEl("div",{className:"series-container"}),h=a.dom.createEl("div",{className:"series-section",index:n}),f=a.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(i=t[n])||void 0===i?void 0:i.title)||"")}),C=a.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[n].watchedPercentage,"%' class='series-progress-bar-value'></div>")});a.dom.appendContent(h,f),a.dom.appendContent(h,C),a.dom.appendContent(v,h),a.dom.appendContent(s,v);var y=a.dom.createEl("div",{className:"series-section-expanded hidden"}),b=(null===(l=t[n])||void 0===l?void 0:l.description)||"";(null===(r=b)||void 0===r?void 0:r.length)>170&&(b=b.substr(0,170)+"...");var N=a.dom.createEl("div",{className:"series-description",innerHTML:"".concat(b||"")}),E=a.dom.createEl("img",{className:"series-image"});E.src="".concat((null===(d=t[n])||void 0===d?void 0:d.img)||(null===(u=window)||void 0===u||null===(m=u.customData)||void 0===m?void 0:m.fallbackImage)),E.alt="".concat(null===(p=t[n])||void 0===p?void 0:p.title),a.dom.appendContent(y,E),a.dom.appendContent(y,N),a.dom.appendContent(v,y),a.dom.appendContent(s,v),y.onclick=function(e){var s;e.stopPropagation(),c(null===(s=t[n])||void 0===s?void 0:s.id),g(o.playerId,t[n].id).then(function(e){null!=o&&o.cb&&o.cb(e)}).catch(function(e){null!=o&&o.cb&&o.cb(e)})},h.onclick=function(t){var s,o,n,i=document.getElementsByClassName("series-selector-content")[0].childNodes,l=(i=e(i))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=l&&null!==(s=l.classList)&&void 0!==s&&s.contains("hidden")?(v.style.backgroundColor="#0000007d",null==l||null===(o=l.classList)||void 0===o||o.remove("hidden")):(null==l||null===(n=l.classList)||void 0===n||n.add("hidden"),v.style.backgroundColor="unset")}},i=0;i<t.length;i++)n(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=a.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var s=C()[e].episodes;this.getSeasonDetailsContainer(s,t);var o=a.dom.$(".series-selector-cross-icon",this.el());for(o.className="series-selector-back-icon";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var n=v(f());o.appendChild(n),a.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),L}();export{k as default};