@viewlift/player-backup 2.0.39-backup → 2.0.40-smarttv
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.
- package/cjs/autoNextVideo-f1accb29.js +1 -0
- package/cjs/browser-2df57579.js +1 -0
- package/cjs/bundle.css +71 -89
- package/cjs/caption-settings-da2f1e29.js +1 -0
- package/cjs/captions-1a203000.js +1 -0
- package/cjs/features-635e2e87.js +1 -0
- package/cjs/generic-19e39f29.js +1 -0
- package/cjs/icons-9e9e6364.js +1 -0
- package/cjs/index-55edb2ef.js +1 -0
- package/cjs/index-9210aba0.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/keyboardShortcuts-36a025cd.js +1 -0
- package/cjs/multicamv2-06b92a99.js +1 -0
- package/cjs/multicamv2-3bc2ddd0.js +1 -0
- package/cjs/nextEpisodeButton-101cb231.js +1 -0
- package/cjs/playlist-fd7b01c9.js +1 -0
- package/cjs/renditions-44a16b5d.js +1 -0
- package/cjs/resolution-185c674c.js +1 -0
- package/cjs/series-c3c8ad85.js +1 -0
- package/cjs/series-v2-3ea41545.js +1 -0
- package/cjs/series-v2-4d50eda1.js +1 -0
- package/cjs/settings-icon-459a23cb.js +1 -0
- package/cjs/skin-26d6279b.js +1 -0
- package/cjs/skin-3bc3d9ac.js +1 -0
- package/cjs/skin-64423c1c.js +1 -0
- package/cjs/skin-94664ea9.js +1 -0
- package/cjs/skin-bfb9c959.js +1 -0
- package/cjs/skin-cedec766.js +1 -0
- package/cjs/skin-eae9862c.js +1 -0
- package/cjs/util-d989f91c.js +1 -0
- package/cjs/videoSelector-5c9ba61f.js +1 -0
- package/cjs/videoSelector-84cc9c69.js +1 -0
- package/cjs/videojs_contrib_dash-b5187686.js +1 -0
- package/esm/autoNextVideo-6f30518f.js +1 -0
- package/esm/browser-000da9e7.js +1 -0
- package/esm/bundle.css +71 -89
- package/esm/caption-settings-107d63b3.js +1 -0
- package/esm/captions-0433e46b.js +1 -0
- package/esm/features-ad2f7efd.js +1 -0
- package/esm/generic-0ffb9040.js +1 -0
- package/esm/icons-68d3a609.js +1 -0
- package/esm/index-42df0bbb.js +1 -0
- package/esm/index-9abdfceb.js +1 -0
- package/esm/index.js +1 -1
- package/esm/keyboardShortcuts-e7e8e090.js +1 -0
- package/esm/multicamv2-2785916a.js +1 -0
- package/esm/multicamv2-ceee35e3.js +1 -0
- package/esm/nextEpisodeButton-46490140.js +1 -0
- package/esm/playlist-e1c99c1f.js +1 -0
- package/esm/renditions-3d54d574.js +1 -0
- package/esm/resolution-6614556f.js +1 -0
- package/esm/series-75598f3a.js +1 -0
- package/esm/series-v2-74aeb25e.js +1 -0
- package/esm/series-v2-77035868.js +1 -0
- package/esm/settings-icon-027bdc89.js +1 -0
- package/esm/skin-0abd39b1.js +1 -0
- package/esm/skin-531a4095.js +1 -0
- package/esm/skin-8574f521.js +1 -0
- package/esm/skin-966f17f4.js +1 -0
- package/esm/skin-aac0fc69.js +1 -0
- package/esm/skin-ad19eaff.js +1 -0
- package/esm/skin-dd6e1332.js +1 -0
- package/esm/util-332cd53f.js +1 -0
- package/esm/videoSelector-8bff314c.js +1 -0
- package/esm/videoSelector-b8e5addf.js +1 -0
- package/esm/videojs_contrib_dash-116adedc.js +1 -0
- package/package.json +5 -3
- package/cjs/autoNextVideo-f43d3c6b.js +0 -1
- package/cjs/browser-77c57718.js +0 -1
- package/cjs/caption-settings-be714e97.js +0 -1
- package/cjs/captions-07bd3069.js +0 -1
- package/cjs/features-97b9ddd3.js +0 -1
- package/cjs/generic-d5a358b3.js +0 -1
- package/cjs/icons-1a3febef.js +0 -1
- package/cjs/index-84cce26a.js +0 -1
- package/cjs/index-bab9264c.js +0 -1
- package/cjs/index-ff62e3f1.js +0 -1
- package/cjs/multicamv2-27a1f79a.js +0 -1
- package/cjs/multicamv2-e061b01b.js +0 -1
- package/cjs/nextEpisodeButton-9149040d.js +0 -1
- package/cjs/playlist-f9f44391.js +0 -1
- package/cjs/renditions-fed22c12.js +0 -1
- package/cjs/resolution-e46c9615.js +0 -1
- package/cjs/series-0ddcd078.js +0 -1
- package/cjs/series-v2-9caf000c.js +0 -1
- package/cjs/series-v2-e23e32e1.js +0 -1
- package/cjs/settings-icon-70f8857a.js +0 -1
- package/cjs/skin-0a56d50e.js +0 -1
- package/cjs/skin-1d925909.js +0 -1
- package/cjs/skin-2edd7170.js +0 -1
- package/cjs/skin-3544db58.js +0 -1
- package/cjs/skin-8bfd28a5.js +0 -1
- package/cjs/skin-9337f348.js +0 -1
- package/cjs/skin-d465fffd.js +0 -1
- package/cjs/util-ef2cd61e.js +0 -1
- package/cjs/videoSelector-2f34f31e.js +0 -1
- package/cjs/videoSelector-62fd5fa1.js +0 -1
- package/cjs/videojs_contrib_dash-5ac53a44.js +0 -1
- package/esm/autoNextVideo-a02e0bce.js +0 -1
- package/esm/browser-d4613b36.js +0 -1
- package/esm/caption-settings-4ab479b0.js +0 -1
- package/esm/captions-b7fd8308.js +0 -1
- package/esm/features-ce8f391c.js +0 -1
- package/esm/generic-c74188d9.js +0 -1
- package/esm/icons-8e47e640.js +0 -1
- package/esm/index-5d92eaa3.js +0 -1
- package/esm/index-c9b8e971.js +0 -1
- package/esm/index-e9390d8f.js +0 -1
- package/esm/multicamv2-8b4670ee.js +0 -1
- package/esm/multicamv2-d46580c3.js +0 -1
- package/esm/nextEpisodeButton-1016717d.js +0 -1
- package/esm/playlist-5874bf55.js +0 -1
- package/esm/renditions-4c09c626.js +0 -1
- package/esm/resolution-920515d1.js +0 -1
- package/esm/series-c42e7202.js +0 -1
- package/esm/series-v2-0329b92a.js +0 -1
- package/esm/series-v2-1d2ad120.js +0 -1
- package/esm/settings-icon-366126fa.js +0 -1
- package/esm/skin-58b9263c.js +0 -1
- package/esm/skin-7cb0aacc.js +0 -1
- package/esm/skin-7fcbc562.js +0 -1
- package/esm/skin-82110b92.js +0 -1
- package/esm/skin-c7e4615b.js +0 -1
- package/esm/skin-f66d3f4d.js +0 -1
- package/esm/skin-f790ba88.js +0 -1
- package/esm/util-80257541.js +0 -1
- package/esm/videoSelector-2feea699.js +0 -1
- package/esm/videoSelector-fe5e1c99.js +0 -1
- package/esm/videojs_contrib_dash-a82e8b26.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e,i=require("@babel/runtime-corejs3/core-js-stable/set-timeout"),t=require("./generic-19e39f29.js"),n=require("./util-d989f91c.js"),o=require("./skin-bfb9c959.js"),r=0,u=0,c=function e(n,r,c,l){u=n,n>c.length-1||(t.setVideoIdx(u+1),t.load(r,c[n].id).then((function(e){o.highlightVideo(u,r),u++,d(e)})).catch((function(t){d(t),i((function(){o.highlightVideo(u,r),u++,e(u,r,c)}),5e3)})))},d=function(i){e&&e(i)};exports.autoPlayNext=function(l){clearTimeout(r);var s=null==l?void 0:l.content;e=null==l?void 0:l.cb;var h=l.playerId;n.onVideoEnded(h,(function(){var e=o.getPlayer(h);0!==(null==e?void 0:e.currentTime())&&((u=t.getVideoIdx())>s.length-1||(t.setVideoIdx(u+1),t.load(h,s[u].id).then((function(e){o.highlightVideo(u,h),t.setCurrentVideo(e.response),u++,d(e)})).catch((function(e){d(e),o.highlightVideo(u,h),u++,r=i((function(){t.isPaused(h)&&c(u,h,s)}),5e3)}))))}))},exports.switchToNext=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require("core-js/modules/es.regexp.exec.js");var e=require("@babel/runtime-corejs3/core-js-stable/instance/index-of");exports.detectBrowser=function(){var r,a,n,i,o,t,l,s;return e(r=navigator.userAgent).call(r,"Edg")>-1&&"macOS"!=(null===(a=window.navigator)||void 0===a||null===(n=a.userAgentData)||void 0===n?void 0:n.platform)?"IE":-1!=(e(i=navigator.userAgent).call(i,"Opera")||e(o=navigator.userAgent).call(o,"OPR"))?"Opera":-1!=e(t=navigator.userAgent).call(t,"Chrome")?"Chrome":-1!=e(l=navigator.userAgent).call(l,"Safari")?"Safari":-1!=e(s=navigator.userAgent).call(s,"Firefox")?"Firefox":"Unknown"},exports.isMobile=function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)};
|
package/cjs/bundle.css
CHANGED
|
@@ -295,6 +295,75 @@
|
|
|
295
295
|
display: none;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
+
.ssai-ad-container{
|
|
299
|
+
display: none;
|
|
300
|
+
}
|
|
301
|
+
.ssai-ad-container .ad-counter{
|
|
302
|
+
position: absolute;
|
|
303
|
+
bottom: 3rem;
|
|
304
|
+
left: 7.4rem;
|
|
305
|
+
color: white;
|
|
306
|
+
padding: 3.6px 10px;
|
|
307
|
+
font-size: 12px;
|
|
308
|
+
border-radius: 4px;
|
|
309
|
+
overflow: hidden;
|
|
310
|
+
text-overflow: ellipsis;
|
|
311
|
+
font-family: sans-serif;
|
|
312
|
+
white-space: nowrap;
|
|
313
|
+
-webkit-user-select: none;
|
|
314
|
+
-moz-user-select: none;
|
|
315
|
+
font-weight: 700;
|
|
316
|
+
text-shadow: 0 0 4px rgba(0, 0, 0, .75);
|
|
317
|
+
user-select: none;
|
|
318
|
+
}
|
|
319
|
+
.ad-info-icon:hover {
|
|
320
|
+
cursor: pointer;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.ssai-ad-container .ad-visit-advertiser{
|
|
324
|
+
position: absolute;
|
|
325
|
+
top: 18px;
|
|
326
|
+
font-size: 14px;
|
|
327
|
+
font-weight: 600;
|
|
328
|
+
right: 16px;
|
|
329
|
+
text-shadow: 0 0 4px rgba(0, 0, 0, .75);
|
|
330
|
+
cursor: pointer;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.ssai-ad-container .sponsored-adbox{
|
|
334
|
+
position: absolute;
|
|
335
|
+
bottom: 3rem;
|
|
336
|
+
font-family: sans-serif;
|
|
337
|
+
left: 0.8rem;
|
|
338
|
+
display: flex;
|
|
339
|
+
align-items: center;
|
|
340
|
+
color: white;
|
|
341
|
+
font-size: 12px;
|
|
342
|
+
border-radius: 4px;
|
|
343
|
+
overflow: hidden;
|
|
344
|
+
text-overflow: ellipsis;
|
|
345
|
+
white-space: nowrap;
|
|
346
|
+
-webkit-user-select: none;
|
|
347
|
+
-moz-user-select: none;
|
|
348
|
+
font-weight: 700;
|
|
349
|
+
text-shadow: 0 0 4px rgba(0, 0, 0, .75);
|
|
350
|
+
user-select: none;
|
|
351
|
+
}
|
|
352
|
+
.ssai-ad-container .sponsored-adbox .sponsored-text{
|
|
353
|
+
margin-right: 0.4rem;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
@media (max-width:600px){
|
|
357
|
+
.ssai-ad-container .ad-info-title{
|
|
358
|
+
max-width: 190px;
|
|
359
|
+
}
|
|
360
|
+
.ssai-ad-container .ad-visit-advertiser{
|
|
361
|
+
right: 8px;
|
|
362
|
+
top: 8px;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
|
|
298
367
|
.video-js .tvProviderImage {
|
|
299
368
|
position: absolute;
|
|
300
369
|
right: 1rem;
|
|
@@ -322,6 +391,7 @@
|
|
|
322
391
|
|
|
323
392
|
|
|
324
393
|
|
|
394
|
+
|
|
325
395
|
.video-js .multicamera-parent.default{
|
|
326
396
|
height: 345px;
|
|
327
397
|
position: absolute;
|
|
@@ -404,7 +474,6 @@
|
|
|
404
474
|
|
|
405
475
|
|
|
406
476
|
|
|
407
|
-
|
|
408
477
|
/* nextep */
|
|
409
478
|
.next-ep-preview{
|
|
410
479
|
position: absolute;
|
|
@@ -445,21 +514,6 @@
|
|
|
445
514
|
.next-ep-content:hover{
|
|
446
515
|
cursor: pointer;
|
|
447
516
|
}
|
|
448
|
-
.next-heading-wrapper{
|
|
449
|
-
display: flex;
|
|
450
|
-
flex-direction: unset;
|
|
451
|
-
justify-content: space-between;
|
|
452
|
-
align-items: center;
|
|
453
|
-
}
|
|
454
|
-
.next-ep-close{
|
|
455
|
-
align-items: right;
|
|
456
|
-
font-weight: bold;
|
|
457
|
-
font-size: 18px;
|
|
458
|
-
margin-bottom: 8px;
|
|
459
|
-
font-size: 20px;
|
|
460
|
-
border-radius: 3px;
|
|
461
|
-
cursor: pointer;
|
|
462
|
-
}
|
|
463
517
|
|
|
464
518
|
@media (max-width:600px){
|
|
465
519
|
.next-ep-preview{
|
|
@@ -1084,76 +1138,4 @@
|
|
|
1084
1138
|
background-image: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg');
|
|
1085
1139
|
}
|
|
1086
1140
|
|
|
1087
|
-
/* Airplay end */
|
|
1088
|
-
.ssai-ad-container{
|
|
1089
|
-
display: none;
|
|
1090
|
-
}
|
|
1091
|
-
.ssai-ad-container .ad-counter{
|
|
1092
|
-
position: absolute;
|
|
1093
|
-
bottom: 3rem;
|
|
1094
|
-
left: 7.4rem;
|
|
1095
|
-
color: white;
|
|
1096
|
-
padding: 3.6px 10px;
|
|
1097
|
-
font-size: 12px;
|
|
1098
|
-
border-radius: 4px;
|
|
1099
|
-
overflow: hidden;
|
|
1100
|
-
text-overflow: ellipsis;
|
|
1101
|
-
font-family: sans-serif;
|
|
1102
|
-
white-space: nowrap;
|
|
1103
|
-
-webkit-user-select: none;
|
|
1104
|
-
-moz-user-select: none;
|
|
1105
|
-
font-weight: 700;
|
|
1106
|
-
text-shadow: 0 0 4px rgba(0, 0, 0, .75);
|
|
1107
|
-
user-select: none;
|
|
1108
|
-
}
|
|
1109
|
-
.ad-info-icon:hover {
|
|
1110
|
-
cursor: pointer;
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
.ssai-ad-container .ad-visit-advertiser{
|
|
1114
|
-
position: absolute;
|
|
1115
|
-
top: 18px;
|
|
1116
|
-
font-size: 14px;
|
|
1117
|
-
font-weight: 600;
|
|
1118
|
-
right: 16px;
|
|
1119
|
-
text-shadow: 0 0 4px rgba(0, 0, 0, .75);
|
|
1120
|
-
cursor: pointer;
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
.ssai-ad-container .ad-visit-advertiser:hover{
|
|
1124
|
-
text-decoration: underline;
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
.ssai-ad-container .sponsored-adbox{
|
|
1128
|
-
position: absolute;
|
|
1129
|
-
bottom: 3rem;
|
|
1130
|
-
font-family: sans-serif;
|
|
1131
|
-
left: 0.8rem;
|
|
1132
|
-
display: flex;
|
|
1133
|
-
align-items: center;
|
|
1134
|
-
color: white;
|
|
1135
|
-
font-size: 12px;
|
|
1136
|
-
border-radius: 4px;
|
|
1137
|
-
overflow: hidden;
|
|
1138
|
-
text-overflow: ellipsis;
|
|
1139
|
-
white-space: nowrap;
|
|
1140
|
-
-webkit-user-select: none;
|
|
1141
|
-
-moz-user-select: none;
|
|
1142
|
-
font-weight: 700;
|
|
1143
|
-
text-shadow: 0 0 4px rgba(0, 0, 0, .75);
|
|
1144
|
-
user-select: none;
|
|
1145
|
-
}
|
|
1146
|
-
.ssai-ad-container .sponsored-adbox .sponsored-text{
|
|
1147
|
-
margin-right: 0.4rem;
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
@media (max-width:600px){
|
|
1151
|
-
.ssai-ad-container .ad-info-title{
|
|
1152
|
-
max-width: 190px;
|
|
1153
|
-
}
|
|
1154
|
-
.ssai-ad-container .ad-visit-advertiser{
|
|
1155
|
-
right: 8px;
|
|
1156
|
-
top: 8px;
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1141
|
+
/* Airplay end */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),t=require("@babel/runtime-corejs3/helpers/classCallCheck"),n=require("@babel/runtime-corejs3/helpers/createClass"),a=require("@babel/runtime-corejs3/helpers/inherits"),o=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),r=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),i=require("@babel/runtime-corejs3/core-js-stable/instance/map");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js");var c=require("video.js"),s=require("./icons-9e9e6364.js"),l=require("./captions-1a203000.js"),d=require("./skin-bfb9c959.js");function u(t){var n=p();return function(){var a,i=r(t);if(n){var c=r(this).constructor;a=e(i,arguments,c)}else a=i.apply(this,arguments);return o(this,a)}}function p(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/date/now");var m=c.getComponent("Component"),v=function(e){a(r,m);var o=u(r);function r(e){var n,a,i,c,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,r),(c=o.call(this,e,s)).playerId=s.playerId,c.seriesData=s.sres,c.currentVideoData=s.res,c.initialiseStructure(),c.loadCSS(),null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(i=a.style)||void 0===i||i.setProperty("display","none","important"),c}return n(r,[{key:"createEl",value:function(){var e=c.dom.createEl("div",{className:"caption-selection vjs-control vjs-button"});e.style.position="unset";var t=c.dom.createEl("div",{className:"caption-selector-icon",innerHTML:"".concat(s.CaptionsSvgV2())});return c.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./caption-settings-34ca0188.js")})).then((function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=l.getCaptions(this.playerId);null==t||i(t).call(t,(function(t){return l.disableCaptions(e.playerId,t.id)}));var n=this.el(),a=c.dom.createEl("div",{className:"caption-selection-container hidden"});c.dom.$(".caption-selector-icon",this.el()).onclick=function(){var t;null!==(t=a.classList)&&void 0!==t&&t.contains("hidden")?(d.closeOpenDrawers(),a.classList.remove("hidden"),n.classList.add("open"),a.style.right="0px",d.setUpdatedElHeight(e.playerId,a)):(a.classList.add("hidden"),n.classList.remove("open"),a.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var r=window.getComputedStyle(o,null).getPropertyValue("height");a.style.height="".concat(r),c.dom.appendContent(n,a),o.style.overflow="hidden",this.addFunctionality(a),d.detectOrientationChange(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),n=c.dom.createEl("div",{className:"caption-selector-head"}),a=c.dom.createEl("div",{className:"caption-selector-cross-icon",innerHTML:"".concat(s.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var o=c.dom.createEl("div",{className:"caption-selector-title",innerHTML:"Captions"}),r=c.dom.createEl("div",{className:"caption-selector-content"}),i=c.dom.createEl("div",{className:"caption-container"}),l=this.createLanguageContanier();c.dom.appendContent(i,l),c.dom.appendContent(n,a),c.dom.appendContent(n,o),c.dom.appendContent(e,n),c.dom.appendContent(e,r),c.dom.appendContent(r,i),d.handleDrawerResizing(this.playerId,e)}},{key:"createLanguageContanier",value:function(){var e=this,t=c.dom.createEl("div",{className:"caption-language-container"}),n=c.dom.createEl("div",{className:"caption-language-container-title",innerHTML:"Language"});c.dom.appendContent(t,n);var a=document.createElement("label");a.setAttribute("for","radio-off"),a.className="caption-language-holder";var o=document.createElement("div");o.className="caption",o.innerHTML="Off";var r=c.dom.createEl("input",{className:"radio - off",id:"radio-off",name:"language-radio",checked:"true"});r.setAttribute("type","radio"),r.onchange=function(t){var n,a,o;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(o=a.style)||void 0===o||o.setProperty("display","none","important"));var r=l.getCaptions(e.playerId);i(r).call(r,(function(t){return l.disableCaptions(e.playerId,t.id)}))},c.dom.appendContent(a,r),c.dom.appendContent(a,o),c.dom.appendContent(t,a);for(var s=l.getCaptions(this.playerId),d=function(n){var a,o=document.createElement("label");o.className="caption-language-holder",o.setAttribute("for","language-radio-".concat(n));var r=document.createElement("div");r.className="caption - ".concat(n),r.textContent=null==s||null===(a=s[n])||void 0===a?void 0:a.label;var i=c.dom.createEl("input",{className:"radio - ".concat(n),id:"language-radio-".concat(n),name:"language-radio"});i.onchange=function(t){l.enableCaptions(e.playerId,s[n].id)},i.setAttribute("type","radio"),c.dom.appendContent(o,i),c.dom.appendContent(o,r),c.dom.appendContent(t,o)},u=0;u<s.length;u++)d(u);return t}},{key:"createFontSizeContainer",value:function(){var e=c.dom.createEl("div",{className:"caption-font-container"}),t=c.dom.createEl("div",{className:"caption-font-container-title",innerHTML:"Font Size"});c.dom.appendContent(e,t);for(var n=[{size:14},{size:18},{size:24}],a=0;a<n.length;a++){var o,r=document.createElement("label");r.className="caption-font-holder",r.setAttribute("for","font".concat(a));var i=document.createElement("div");i.className="fontsize - ".concat(a),i.textContent=(null==n||null===(o=n[a])||void 0===o?void 0:o.size)+"pt";var s=c.dom.createEl("input",{className:"radio - ".concat(a),id:"font".concat(a),name:"font-size-radio",size:"".concat(n[a].size),checked:"".concat(a==n.length-1)});s.setAttribute("type","radio"),s.onchange=function(e){var t=e.target.size;if(document.getElementById("caption-size")){document.getElementById("caption-size").textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}")}else{var n=document.createElement("style");n.textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}"),n.id="caption-size",document.head.append(n)}},c.dom.appendContent(r,s),c.dom.appendContent(r,i),c.dom.appendContent(e,r)}return e}}]),r}();exports.default=v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/instance/filter"),t=require("@babel/runtime-corejs3/core-js-stable/instance/map"),a=require("./skin-bfb9c959.js");exports.addCaptions=function(e,n){var r,s=a.getPlayer(e);t(r=s.remoteTextTracks().tracks_).call(r,(function(e){s.removeRemoteTextTrack(e)})),t(n).call(n,(function(e){s.addRemoteTextTrack({src:e.url,srcLang:e.language,label:e.language})}))},exports.disableCaptions=function(e,t){for(var n=a.getPlayer(e).textTracks(),r=0;r<n.length;r++){var s=n[r];"subtitles"!==s.kind&&"captions"!==s.kind||s.id!==t||(s.mode="hidden")}},exports.enableCaptions=function(e,t){var n,r,s;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(r=n[0])||void 0===r||null===(s=r.style)||void 0===s||s.setProperty("display","flex"));for(var l=a.getPlayer(e).textTracks(),i=0;i<l.length;i++){var o=l[i];"subtitles"!==o.kind&&"captions"!==o.kind||o.id!=t||(o.mode="showing")}},exports.getCaptions=function(t){var n,r,s=a.getPlayer(t);return(null==s||null===(n=s.textTracks())||void 0===n?void 0:e(r=n.tracks_).call(r,(function(e){return"subtitles"==e.kind||"captions"===e.kind})))||[]},exports.removeCaptions=function(e){var n,r=a.getPlayer(e);t(n=r.remoteTextTracks().tracks_).call(n,(function(e){"subtitles"==(null==e?void 0:e.kind)||null==e||e.kind,r.removeRemoteTextTrack(e)}))};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),t=require("@babel/runtime-corejs3/helpers/classCallCheck"),r=require("@babel/runtime-corejs3/helpers/createClass"),n=require("@babel/runtime-corejs3/helpers/inherits"),o=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),l=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),i=require("@babel/runtime-corejs3/core-js-stable/object/assign");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js");var a=require("video.js"),s=require("./generic-19e39f29.js"),d=require("./renditions-44a16b5d.js"),c=require("./skin-bfb9c959.js"),u=require("./localisation-56e0a999.js");function h(t){var r=v();return function(){var n,i=l(t);if(r){var a=l(this).constructor;n=e(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}}function v(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}exports.addCaptionButton=function(e,t){Promise.resolve().then((function(){return require("./caption-settings-da2f1e29.js")})).then((function(r){var n,o,l,i,s=r.default,d=c.getPlayer(e);a.registerComponent("captionSelector",s),null===(n=document)||void 0===n||null===(o=n.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(i=l[0])||void 0===i||i.remove(),d&&d.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},d.controlBar.children().length-3)}))},exports.addDBClickFullScreen=function(e){var t=c.getPlayer(e).el(),r=0,n=c.getPlayer(e);n.addChild("fullscreenToggle");var o=function(){var e,r=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];r&&r.click()};n.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;n.el().addEventListener("touchend",(function(){var e=(new Date).getTime(),n=e-r;if(n<300&&n>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}r=e})),window._multiplayer_dbTapHandler=o},exports.addMulticamSelector=function(e,t){Promise.resolve().then((function(){return require("./multicamv2-3bc2ddd0.js")})).then((function(r){var n=r.default,o=c.getPlayer(e);a.registerComponent("streamSelector",n),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)}))},exports.addMulticamSelector_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then((function(){return require("./multicamv2-06b92a99.js")})).then((function(r){var n=r.default,o=c.getPlayer(e);a.registerComponent("streamSelector",n),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)}))},exports.addNextEpisodeButton=function(e,t,r){Promise.resolve().then((function(){return require("./nextEpisodeButton-101cb231.js")})).then((function(n){var o=n.default,l=c.getPlayer(r);a.registerComponent("nextEpisodeButtonModule",o),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:r,sres:e,res:t},l.controlBar.children().length-5)}))},exports.addOutputtingOverlay=function(e,t){var r=c.getPlayer(e).el(),n=a.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});r.append(n)},exports.addPlaylistSelector=function(e,t){Promise.resolve().then((function(){return require("./playlist-fd7b01c9.js")})).then((function(r){var n=r.default,o=c.getPlayer(e);a.registerComponent("playlistSelector",n),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)}))},exports.addResolutionModule=function(e,t,r){Promise.resolve().then((function(){return require("./resolution-185c674c.js")})).then((function(n){var o=n.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=c.getPlayer(e),i=d.getRenditions(e);(null==i?void 0:i.length)>0&&(a.registerComponent("resolutionModule",o),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:r,renditions:i},l.controlBar.children().length-4))}))},exports.addRewindButton=function(e,o,l){var i=function(o){n(a,o);var i=h(a);function a(e,r){var n;t(this,a);var o=(n=i.call(this,e,r)).el_;o.classList.add("vjs-rewind-button");var s=c.parseSvgString(l);return o.append(s),n}return r(a,[{key:"handleClick",value:function(){s.rewind(e,10)}}]),a}(a.getComponent("Button"));a.registerComponent("MyButton",i),a(e).getChild("controlBar").addChild("myButton",{},1)},exports.addSeriesModule=function(e,t,r){Promise.resolve().then((function(){return require("./series-c3c8ad85.js")})).then((function(n){var o=n.seriesModule,l=c.getPlayer(e);a.registerComponent("seriesModule",o),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var i=document.querySelectorAll(".season-title-sdk"),s=function(e){i[e].addEventListener("click",(function(){t[e]&&n.handleSeasonChange(t[e],e,l,r)}))},d=0;d<i.length;d++)s(d)}))},exports.addSeriesSelectorV2=function(e,t){Promise.resolve().then((function(){return require("./series-v2-3ea41545.js")})).then((function(r){var n=r.default,o=c.getPlayer(e);a.registerComponent("seriesV2",n),o.getChild("controlBar").addChild("seriesV2",i({playerId:e},t),o.controlBar.children().length-3)}))},exports.addSeriesSelectorV2_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then((function(){return require("./series-v2-4d50eda1.js")})).then((function(r){var n=r.default,o=c.getPlayer(e);a.registerComponent("seriesV2",n),o.getChild("controlBar").addChild("seriesV2",i({playerId:e},t),o.controlBar.children().length-3)}))},exports.addSettingsButtonV2=function(e,t){Promise.resolve().then((function(){return require("./settings-icon-459a23cb.js")})).then((function(r){var n,o,l,i,s=r.default,d=c.getPlayer(e);a.registerComponent("settingsSelector",s),null===(n=document)||void 0===n||null===(o=n.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(i=l[0])||void 0===i||i.remove(),d&&d.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},d.controlBar.children().length-3)}))},exports.addSkipButton=function(e,o,l){var i=function(o){n(a,o);var i=h(a);function a(e,r){var n;t(this,a);var o=(n=i.call(this,e,r)).el_;o.classList.add("vjs-skip-button");var s=c.parseSvgString(l);return o.append(s),n}return r(a,[{key:"handleClick",value:function(){s.skip(e,10)}}]),a}(a.getComponent("Button"));a.registerComponent("MyButton",i),a(e).getChild("controlBar").addChild("myButton",{},1)},exports.addSlowMotion=function(e){var o=function(e){n(i,e);var o=h(i);function i(e,r){var n;t(this,i);var l=(n=o.call(this,e,r)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=u.getLocalisation("slowMoText")||"Slow Mo",n}return r(i,[{key:"handleClick",value:function(){1==l.playbackRate()?(l.playbackRate(.5),this.el().style.background="darkgray"):(l.playbackRate(1),this.el().style.background="none")}}]),i}(a.getComponent("Button"));a.registerComponent("MyButton",o);var l=a(e);l.getChild("controlBar").addChild("myButton",{},2)},exports.addVideoSelector=function(e,t){Promise.resolve().then((function(){return require("./videoSelector-5c9ba61f.js")})).then((function(r){var n=r.default,o=c.getPlayer(e);a.registerComponent("videoSelector",n),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)}))},exports.addVideoSelector_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then((function(){return require("./videoSelector-84cc9c69.js")})).then((function(r){var n=r.default,o=c.getPlayer(e);a.registerComponent("videoSelector",n),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)}))};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime-corejs3/helpers/asyncToGenerator");require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js");var t=require("@babel/runtime-corejs3/regenerator"),n=require("@babel/runtime-corejs3/core-js-stable/promise"),i=require("@babel/runtime-corejs3/core-js-stable/set-timeout"),o=require("@babel/runtime-corejs3/core-js-stable/instance/filter"),r=require("@babel/runtime-corejs3/core-js-stable/object/assign"),l=require("video.js"),a=require("@babel/runtime-corejs3/core-js-stable/instance/concat"),s=require("axios");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.copy-within.js"),require("core-js/modules/es.typed-array.every.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.filter.js"),require("core-js/modules/es.typed-array.find.js"),require("core-js/modules/es.typed-array.find-index.js"),require("core-js/modules/es.typed-array.for-each.js"),require("core-js/modules/es.typed-array.includes.js"),require("core-js/modules/es.typed-array.index-of.js"),require("core-js/modules/es.typed-array.iterator.js"),require("core-js/modules/es.typed-array.join.js"),require("core-js/modules/es.typed-array.last-index-of.js"),require("core-js/modules/es.typed-array.map.js"),require("core-js/modules/es.typed-array.reduce.js"),require("core-js/modules/es.typed-array.reduce-right.js"),require("core-js/modules/es.typed-array.reverse.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.slice.js"),require("core-js/modules/es.typed-array.some.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.subarray.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.typed-array.to-string.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.replace.js");var d=require("@babel/runtime-corejs3/core-js-stable/instance/includes"),u=require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),c=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),v=require("./skin-bfb9c959.js"),m=require("./browser-2df57579.js");require("core-js/modules/es.array.join.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.function.name.js");var p=require("@babel/runtime-corejs3/core-js-stable/instance/map"),f=require("@babel/runtime-corejs3/core-js-stable/math/trunc"),g=require("@babel/runtime-corejs3/core-js-stable/instance/find"),w=require("@babel/runtime-corejs3/core-js-stable/date/now"),I=require("@babel/runtime-corejs3/core-js-stable/map"),E=require("js-cookie"),T=require("ua-parser-js"),y=require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),h=require("./captions-1a203000.js");require("core-js/modules/es.string.match.js"),require("core-js/modules/es.number.to-fixed.js");var _=require("@babel/runtime-corejs3/core-js-stable/set-interval");function b(){var e,t;null===(e=window)||void 0===e||null===(t=e.dataLayer)||void 0===t||t.push(arguments)}function j(e,t){b("event",e,t)}var F={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"},D={name:"@viewlift/player-backup",version:"2.0.33-smarttv",main:"dist/bundle.cjs.js",amdName:"_playerCore",dependencies:{"@babel/plugin-transform-object-rest-spread":"^7.28.0","@babel/plugin-transform-spread":"^7.27.1","@silvermine/videojs-airplay":"^1.3.0","@silvermine/videojs-chromecast":"^1.4.1",axios:"^1.2.3",ima:"npm:videojs-ima@2.2.0","js-cookie":"^3.0.5","ua-parser-js":"^2.0.3","video.js":"8.22.0","videojs-contrib-ads":"7.5.2","videojs-contrib-eme":"5.5.1","videojs-contrib-quality-menu":"^1.0.3","videojs-mux":"^4.21.7"}};window.vl_player_version=D.version;var S,R=function(e,t){var i,o,l,a,d,u,c,v;return null!==(i=window)&&void 0!==i&&null!==(o=i.customData)&&void 0!==o&&o.overrideEntitlementResponse?new n((function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.overrideEntitlementResponse})})):s({url:null!==(d=window)&&void 0!==d&&null!==(u=d.customData)&&void 0!==u&&u.overrideEntitlementBaseUrl?(null===(c=window)||void 0===c||null===(v=c.customData)||void 0===v?void 0:v.overrideEntitlementBaseUrl)+"/video/status":x.get()+"".concat(null==F?void 0:F.getVideoDetails),params:r({id:e,deviceType:"web_browser",contentConsumption:"web"},null===(l=window)||void 0===l||null===(a=l.customData)||void 0===a?void 0:a.entitlement),method:"GET",headers:{Authorization:t,"Sdk-Version":D.version},withCredentials:!0})},L=function(e,t){var i,o,l,a;return null!==(i=window)&&void 0!==i&&null!==(o=i.customData)&&void 0!==o&&o.overrideEntitlementResponse?new n((function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.overrideEntitlementResponse})})):s({url:x.get()+F.getLinearChannelDetails,params:r({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===(l=window)||void 0===l||null===(a=l.customData)||void 0===a?void 0:a.entitlement),method:"GET",headers:{Authorization:t,hdcp:"HDCP-1.4",sl:"SW_SECURE_CRYPTO"}})},V=function(){var n=e(t.mark((function e(n){var i;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Y();case 2:return i=e.sent,e.abrupt("return",s({url:x.get()+"".concat(null==F?void 0:F.saveWatchHistoryV2),method:"POST",headers:{Authorization:i},data:r({},n),params:r({},(null==n?void 0:n.profileId)&&{profileId:null==n?void 0:n.profileId})}));case 4:case"end":return e.stop()}}),e)})));return function(e){return n.apply(this,arguments)}}(),W=function(e,t){var n,i,o,r,l=window.contentType;return s({method:"GET",url:x.get()+a(n=a(i="".concat(null==F?void 0:F.getVideoInfoV2,"/")).call(i,l,"/")).call(n,e),headers:{Authorization:t,"x-api-key":null===(o=window)||void 0===o||null===(r=o.watchHistory)||void 0===r?void 0:r.xApiKey},timeout:15e3})},C=function(e){var t,n=e.videoId;return s({method:"GET",url:x.get()+a(t="".concat(null==F?void 0:F.getSeriesWatchHistoryV2,"/")).call(t,n),headers:{Authorization:e.token},timeout:15e3})},x=(S=null==F?void 0:F.apiBaseUrl,{set:function(e){e&&(S=e)},get:function(){return S}}),A=function(e){var t=JSON.parse(atob(null==e?void 0:e.split(".")[1])),n=null==t?void 0:t.exp;if(new Date(1e3*n).getTime()<(new Date).getTime())return!0},P=null;function N(){return{set:function(e){e&&(P=e)},get:function(){return P}}}var B,O,M,U,q,k,H=function(){var n=e(t.mark((function e(){var n,i,o,r;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=N().get(),i=x.get(),e.prev=2,e.next=5,s({method:"GET",url:a(o="".concat(i,"/identity/refresh/")).call(o,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 n.apply(this,arguments)}}(),G=null,Y=function(){var n=e(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"))||!A(n)){e.next=6;break}return G||(G=H().then((function(e){var t,i,o=null==e||null===(t=e.data)||void 0===t?void 0:t.authorizationToken,r=null==e||null===(i=e.data)||void 0===i?void 0:i.refreshToken;return o&&sessionStorage.setItem("vlp_token",o),r&&N().set(r),o||n})).catch((function(e){return console.error("Error fetching refresh token",e),n})).finally((function(){G=null}))),e.abrupt("return",G);case 6:return e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(){return n.apply(this,arguments)}}(),z=function(e){if(e&&"string"==typeof e)return JSON.parse(atob(e.split(".")[1]))},X=function(e){O=e},J=function(){return O},K=function(){return B},Q=function(e){M=e},Z=function(e){if(U){var t=U.get(e);Q(t+1)}},$=(k=0,{set:function(e){e>=0&&(k=e)},get:function(){return k}}),ee=0,te=function(){var e,t,n,i,o,r,l,a=J();return"linearchannel"==((null==a?void 0:a.contentType)||"video")?null==a||null===(e=a.linearchannel)||void 0===e||null===(t=e.channels)||void 0===t||null===(n=g(t).call(t,(function(e){return(null==e?void 0:e.id)===(null==a?void 0:a.channelId)})))||void 0===n||null===(i=n.content)||void 0===i?void 0:i.id:(null==a||null===(o=a.video)||void 0===o||null===(r=o.gist)||void 0===r?void 0:r.id)||(null==a||null===(l=a.video)||void 0===l?void 0:l.id)||(null==a?void 0:a.id)};function ne(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function ie(){var e=window.sessionStorage.getItem("uid");return e||(e=ne(),window.sessionStorage.setItem("uid",e),e)}function oe(){return re.apply(this,arguments)}function re(){return(re=e(t.mark((function e(){var n,i;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Y();case 2:if(!(n=e.sent)){e.next=10;break}if(null==(i=JSON.parse(atob(n.split(".")[1])))||!i.anonymousId){e.next=9;break}return e.abrupt("return","guest-user");case 9:return e.abrupt("return",null==i?void 0:i.userId);case 10:return e.abrupt("return","guest-user");case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}window.initialise=function(e){window.sid=ne(),window.environment="production",window.platform="WEBSITE",streamFailures(e),buffering(e),ads(e),ping(e)},window.streamFailures=function(e){var t=Math.floor(e.currentTime());e.on("error",(function(){var n,i,o,l=Math.floor(e.currentTime());clearInterval(window.bufferingTimer),window.buffering=null,window.handleBufferTimer=null,j(l?"FAILED_TO_START":"DROPPED_STREAM",r({pfm:window.platform,uid:ie(),vid:te(),videoPosition:Math.floor(e.currentTime())},null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:t===l?"FAILED_TO_START":"DROPPED_STREAM",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})}))},window.firstFrame=function(e,t){e.one("play",tryCatch((function(){var n,i,o;window.ttFirstFrame=0,window.ttFirstFrameTimer=_((function(){window.ttFirstFrame=window.handleBufferTimer?window.handleBufferTimer(window.ttFirstFrame,e):null}),100),j("PLAY",r({pfm:window.platform,uid:ie(),vid:te(),videoPosition:Math.floor(e.currentTime())},null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:"PLAY",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1}),t&&t("started_video_playback",{"Video ID":te(),watchTime:Math.floor(e.currentTime())})})))},window.buffering=function(e){e.on("waiting",tryCatch((function(){window.ttFirstFrameTimer||(e.currentTime(),clearInterval(window.bufferingTimer),window.bufferingTimer=_((function(){var t,n;null!=e&&null!==(t=e.el_)&&void 0!==t&&null!==(n=t.className)&&void 0!==n&&d(n).call(n,"vjs-waiting")&&!e.paused()?window.totalBufferTime=handleBufferTimer(window.totalBufferTime,e):clearInterval(window.bufferingTimer)}),100))})))},window.handleBufferTimer=function(e,t){var n,i;if(t.el_){var o,l,a,s=e+.1;if(+s.toFixed(2)%5==0&&null!=t&&null!==(n=t.el_)&&void 0!==n&&null!==(i=n.className)&&void 0!==i&&d(i).call(i,"vjs-waiting")&&ee<4)ee++,j("BUFFERING",r({pfm:window.platform,uid:ie(),vid:te(),videoPosition:t.el_&&Math.floor(t.currentTime())},null===(o=window)||void 0===o||null===(l=o.customData)||void 0===l||null===(a=l.beacon)||void 0===a?void 0:a.params)),fireEvent({eventName:"BUFFERING",videoPosition:t.el_&&Math.floor(t.currentTime()),isAdEvent:!1});return s}clearInterval(window.ttFirstFrameTimer)},window.endFirstFrame=function(e){e.one("timeupdate",(function(){var t,n,i;clearInterval(window.ttFirstFrameTimer),clearInterval(window.bufferingTimer),window.ttFirstFrameTimer=null,window.totalBufferTime=window.ttFirstFrame||0,j("FIRST_FRAME",r({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:ie(),vid:te()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e)})}))},window.ads=function(e){e.on("adsready",(function(){e.ima.addEventListener(window.google.ima.AdEvent.Type.STARTED,(function(){var t,n,i,o,l,a;j("AD_REQUEST",r({eventName:"AD_REQUEST",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:ie(),vid:te(),resHeight:e.videoHeight(),resWidth:e.videoWidth()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"AD_REQUEST",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,resHeight:e.videoHeight(),resWidth:e.videoWidth(),adPosition:1}),j("AD_IMPRESSION",r({eventName:"AD_IMPRESSION",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:ie(),resHeight:e.videoHeight(),resWidth:e.videoWidth(),vid:te()},null===(o=window)||void 0===o||null===(l=o.customData)||void 0===l||null===(a=l.beacon)||void 0===a?void 0:a.params)),fireEvent({eventName:"AD_IMPRESSION",videoPosition:Math.ceil(e.currentTime()),resHeight:e.videoHeight(),resWidth:e.videoWidth(),isAdEvent:!0,adPosition:1})})),e.ima.addEventListener(window.google.ima.AdEvent.Type.SKIPPED,(function(){window.ttFirstFrame=0})),e.ima.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,(function(){window.ttFirstFrame=0}))}))},window.ping=function(e){var t=[];e.on("timeupdate",(function(){var n=Math.floor(e.currentTime());n>=30&&n%30==0&&!d(t).call(t,n)&&(ee=0,t.push(n),fireEvent({eventName:"PING",videoPosition:n,isAdEvent:!1,duration:30,resHeight:e.videoHeight(),resWidth:e.videoWidth(),bufferHealth:window.getRemainingBufferTime(e),bitrate:e.tech_.vhs&&window.getBitrate(e)}))}))},window.getBitrate=function(e){return Math.round(e.tech_.vhs.selectPlaylist().attributes.BANDWIDTH/1e3)},window.getRemainingBufferTime=function(e){return tryCatch((function(){for(var t=e.currentTime(),n=e.duration(),i=e.buffered(),o=0;o<i.length;o++){var r=i.start(o),l=i.end(o);if(le(t,r,l)){var a=Math.round(n-l);if(isFinite(a))return a}}}))()};var le=function(e,t,n){return e>=t&&e<=n};window.fireEvent=function(){var n=e(t.mark((function e(n){var i,o,l,a,d,u,c,v,m,p,f,g,w,I,E,T,y,h,_,b;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Y();case 2:return T=e.sent,y=z(T),h=null==y?void 0:y.site,_=null==y?void 0:y.siteId,e.t0=r,e.t1={aid:h,cid:_,pfm:window.platform},e.t2=null===(i=window)||void 0===i||null===(o=i.customData)||void 0===o||null===(l=o.beacon)||void 0===l?void 0:l.params,e.t3=ie(),e.t4=te(),e.t5=n.url||document.location.href,e.t6=n.ref||document.referrer,e.t7=n.eventName,e.t8=null!==(a=n.videoPosition)&&void 0!==a?a:null,e.t9=window.environment,e.t10=n.dp1||"",e.t11=n.dp2||"",e.t12=n.dp3||"",e.t13=n.dp4||"",e.t14=n.dp5||"",e.t15=!0===n.isAdEvent?n.videoPosition:null,e.t16=!0===n.isAdEvent?(t=n.adPosition)?String(t):"":"",e.next=25,oe();case 25:e.t17=e.sent,e.t18=n.playerType||"native",e.t19=n.mediaType||"VIDEO",e.t20=window.sid,e.t21=null!==(d=n.ttFirstFrame)&&void 0!==d?d:null,e.t22=null!==(u=n.bitrate)&&void 0!==u?u:null,e.t23=null!==(c=n.resHeight)&&void 0!==c?c:null,e.t24=null!==(v=n.resWidth)&&void 0!==v?v:null,e.t25=null!==(m=n.bufferHealth)&&void 0!==m?m:null,e.t26={uid:e.t3,vid:e.t4,url:e.t5,ref:e.t6,pa:e.t7,vpos:e.t8,environment:e.t9,dp1:e.t10,dp2:e.t11,dp3:e.t12,dp4:e.t13,dp5:e.t14,apos:e.t15,apod:e.t16,profid:e.t17,player:e.t18,media_type:e.t19,stream_id:e.t20,embedurl:"",ttfirstframe:e.t21,bitrate:e.t22,connectionspeed:null,resolutionheight:e.t23,resolutionwidth:e.t24,bufferhealth:e.t25},e.t27=(null==n?void 0:n.duration)&&{duration:n.duration},e.t28=null===(p=window)||void 0===p||null===(f=p.customData)||void 0===f||null===(g=f.beacon)||void 0===g?void 0:g.params,e.t29=(0,e.t0)(e.t1,e.t2,e.t26,e.t27,e.t28),b=[e.t29],s({url:(null===(w=window)||void 0===w||null===(I=w.customData)||void 0===I||null===(E=I.beacon)||void 0===E?void 0:E.url)||x.get()+F.getBeaconUrl,method:"post",headers:{Authorization:T},contentType:"application/x-www-form-urlencoded",dataType:"text",data:b}).catch((function(e){console.error(e)}));case 40:case"end":return e.stop()}var t}),e)})));return function(e){return n.apply(this,arguments)}}(),window.tryCatch=function(e){return function(){try{return e.apply(window,arguments)}catch(e){return console.error(e),null}}};var ae=function(){var e=$.get();return e>=0?e+1:1},se=function(){var e,t,n,i=K(),o=J(),r=null==o||null===(e=o.video)||void 0===e?void 0:e.id,l=$.get(),a=null==i||null===(t=i[l])||void 0===t||null===(n=t.episodes)||void 0===n?void 0:y(n).call(n,(function(e){return(null==e?void 0:e.id)===r}));return a>=0?a+1:1};window._deviceInfo=T.UAParser(navigator.userAgent);var de=function(e,t){var n;return e&&t?a(n="".concat(e,"x")).call(n,t):e>1024?"L":e>768?"M":"S"},ue=function(e){var t=ce(e,"video.tags",[]),n=ce(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return t.length>0?p(t).call(t,(function(e){return e.title})).join(","):n},ce=function(e,t,n){for(var i=0,o=(t=t.split(".")).length;i<o;i++){var r;e=null===(r=e)||void 0===r?void 0:r[t[i]]}return e||n},ve=function(){var e,t,n,i,o,l,a,s,u,m,p,I,T,y,h,_,b,j,F,D,S,R,L,V=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",W=arguments.length>1?arguments[1]:void 0,C=arguments.length>2?arguments[2]:void 0,x=(null==C?void 0:C.contentType)||"video",A=(null==C||null===(e=C[x])||void 0===e?void 0:e.metadata)||(null==C||null===(t=C[x])||void 0===t||null===(n=t.gist)||void 0===n?void 0:n.metadata),P=v.getPlayer(W);if(!d(V).call(V,"VIEWLIFT_"))return V;var N,B=window.getComputedStyle(document.getElementById(W),null),O=f(c(i=B.getPropertyValue("height")).call(i,0,-2)),M=f(c(o=B.getPropertyValue("width")).call(o,0,-2)),U="linearchannel"===x?null==C||null===(l=C.linearchannel)||void 0===l||null===(a=l.channels)||void 0===a||null===(s=g(a).call(a,(function(e){return(null==e?void 0:e.id)===(null==C?void 0:C.channelId)})))||void 0===s||null===(u=s.content)||void 0===u?void 0:u.id:ce(C,"video.gist.id",""),q="linearchannel"===x?null==C||null===(m=C.linearchannel)||void 0===m||null===(p=m.channels)||void 0===p||null===(I=g(p).call(p,(function(e){return(null==e?void 0:e.id)===(null==C?void 0:C.channelId)})))||void 0===I?void 0:I.title:ce(C,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),k=null,H=null;"function"==typeof window.__gpp&&(null===(N=window)||void 0===N||N.__gpp("ping",(function(e){k=null==e?void 0:e.gppString,H=null==e?void 0:e.sectionList[0]})));var G=r({},me(A),{VIEWLIFT_WIDTH:M,VIEWLIFT_HEIGHT:O,VIEWLIFT_SIZE:de(M,O),VIEWLIFT_DOMAIN:window.location.hostname,VIEWLIFT_URL:window.location.href,VIEWLIFT_ENCODED_URL:encodeURIComponent(window.location.href),VIEWLIFT_DOUBLE_ENCODED_URL:encodeURIComponent(encodeURIComponent(window.location.href)),VIEWLIFT_CACHEBUSTER:"3708662946268",VIEWLIFT_TIMESTAMP:w().toString().substring(0,10),VIEWLIFT_TIMESTAMP_MS:w().toString(),VIEWLIFT_IP:(null===(T=window)||void 0===T?void 0:T.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:encodeURIComponent(encodeURIComponent(navigator.userAgent)),VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:ce(C,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:ce(C,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:ce(C,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==P||null===(y=P.options_)||void 0===y?void 0:y.autoplay)||1,VIEWLIFT_MUTE:(null==P||null===(h=P.options_)||void 0===h?void 0:h.autoplay)||0,VIEWLIFT_DEVICE_ID:localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_DEVICETYPE:"WEB_BROWSER",VIEWLIFT_IDTYPE:"dpid",VIEWLIFT_KEYWORDS:ue(C),VIEWLIFT_MEDIA_ID:U,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(ce(C,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:U,VIEWLIFT_VIDEO_URL:encodeURI(window.location.origin+ce(C,"video.gist.permalink","")),VIEWLIFT_CONSENT:E.get("cc")||"VIEWLIFT_CONSENT",VIEWLIFT_COPPA:ce(null===(_=window)||void 0===_||null===(b=_.app_data)||void 0===b||null===(j=b.site)||void 0===j?void 0:j.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR:ce(null===(F=window)||void 0===F||null===(D=F.app_data)||void 0===D||null===(S=D.site)||void 0===S?void 0:S.settings,"compliance.gdpr")?1:0,VIEWLIFT_CONTENT_DURATION_MS:1e3*ce(C,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:ce(C,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:U,VIEWLIFT_CONTENT_TITLE:q,VIEWLIFT_CONTENT_SERIES_TITLE:ce(C,"video.series.gist.title","VIEWLIFT_CONTENT_SERIES_TITLE"),VIEWLIFT_CONTENT_GENRE:ce(C,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER",VIEWLIFT_EPISODE_NUMBER:se(),VIEWLIFT_SEASON_NUMBER:ae(),VIEWLIFT_CONTENT_TAGS:ue(C),VIEWLIFT_GPP_SID:H||"VIEWLIFT_GPP_SID",VIEWLIFT_GPP:k||"VIEWLIFT_GPP"},null===(R=window)||void 0===R||null===(L=R.customData)||void 0===L?void 0:L.macros);for(var Y in G){var z=new RegExp(Y,"g");V=V.replace(z,G[Y])}return V},me=function(e){var t,n,i,o,l,a,s={},d=new I;(null==e?void 0:e.length)>0&&(null==e||p(e).call(e,(function(e){d.set(e.name,e.value)})));var u=(null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.subscription)||void 0===i?void 0:i.SVOD)||!1,c=(null===(o=window)||void 0===o||null===(l=o.customData)||void 0===l||null===(a=l.subscription)||void 0===a?void 0:a.TVE)||!1;return u||c?(m.isMobile()?u?s=r({},s,{VIEWLIFT_CSID:d.get("csid.mweb.dtc")||""}):c&&(s=r({},s,{VIEWLIFT_CSID:d.get("csid.mweb.tve")||""})):u?s=r({},s,{VIEWLIFT_CSID:d.get("csid.web.dtc")||""}):c&&(s=r({},s,{VIEWLIFT_CSID:d.get("csid.web.tve")||""})),u?s=r({},s,{VIEWLIFT_SFID:d.get("sfid.dtc")||d.get("sfid.web.dtc")||""}):c&&(s=r({},s,{VIEWLIFT_SFID:d.get("sfid.tve")||d.get("sfid.web.tve")||""})),s=m.isMobile()?r({},s,{VIEWLIFT_PROF:d.get("prof.mweb")||""}):r({},s,{VIEWLIFT_PROF:d.get("prof.web")||""})):(s=r({},s,{VIEWLIFT_SFID:d.get("sfid.dtc")||d.get("sfid.web.dtc")||""}),s=m.isMobile()?r({},s,{VIEWLIFT_CSID:d.get("csid.mweb.dtc")||"",VIEWLIFT_PROF:d.get("prof.mweb")||""}):r({},s,{VIEWLIFT_CSID:d.get("csid.web.dtc")||"",VIEWLIFT_PROF:d.get("prof.web")||""})),s=r({},s,{VIEWLIFT_AFID:d.get("afid")})},pe=function(e,t){var n,i,o,r,l,a,s,d,u,c,v,p,f,g=(null==e?void 0:e.contentType)||"video",w=null==e||null===(n=e[g])||void 0===n?void 0:n.drmEnabled,I=null==e||null===(i=e[g])||void 0===i||null===(o=i.streamingInfo)||void 0===o?void 0:o.videoAssets,E=null==e||null===(r=e[g])||void 0===r||null===(l=r.streamingInfo)||void 0===l?void 0:l.audioAssets,T=(null==e||null===(a=e[g])||void 0===a||null===(s=a.streamingInfo)||void 0===s||null===(d=s.videoAssets)||void 0===d?void 0:d.hls)||!1;null==e||null===(u=e[g])||void 0===u||null===(c=u.liveDetails)||void 0===c||c.isDvrEnabled;var y=(null==e||null===(v=e[g])||void 0===v||null===(p=v.streamingInfo)||void 0===p||null===(f=p.videoAssets)||void 0===f?void 0:f.dash)||!1;if(null!=e&&e.directPlaybackUrl)return{src:null==e?void 0:e.directPlaybackUrl,type:null};if(null!=e&&e.audioAssetSource&&null!=E&&E.hls)return ge(E);if(w){var h=we(I,t);return h.src=ve(h.src,t,e),h}if("Safari"!==m.detectBrowser()&&y)return fe(I);if(T){var _=ge(I);return _.src=ve(_.src,t,e),_}if(null!=I&&I.mpeg){var b=function(e){var t=null==e?void 0:e.mpeg;return{src:t[t.length-1].url,type:"video/mp4"}}(I);return b.src=ve(b.src,t,e),b}return null},fe=function(e){var t=null==e?void 0:e.dash;return t?{src:t,type:"application/dash+xml"}:null},ge=function(e){var t=null==e?void 0:e.hls;return t?{src:t,type:"application/x-mpegURL"}:null},we=function(e,t){var n=e.fairPlay,i=e.widevine,o=e.playReady,r=m.detectBrowser();if(v.getPlayer(t),"Safari"===r){var a=function(e){var t=e.url;return{src:t,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(t,n){var i={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};l.xhr(i,(function(e,t,i){console.log(e),e&&n(e),n(null,new Uint8Array(i))}))},getContentId:function(e,t){if(t){var n=u(t).call(t,"\0")+1;return c(t).call(t,n)}},getLicense:function(t,n,i,o){var r={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:i,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};l.xhr(r,(function(e,t,n){console.log(e),e&&o(e),o(null,n)}))}}}}}(n);return Ie(t),a}var s,d={src:i.url,type:"application/dash+xml"};return"caliente"==(null===(s=window)||void 0===s?void 0:s.siteName)?(Ie(t),d.keySystems={"com.widevine.alpha":{url:i.licenseUrl,licenseHeaders:{"X-AxDRM-Message":i.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},"com.microsoft.playready":{url:o.licenseUrl,licenseHeaders:{"X-AxDRM-Message":o.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}):(d.keySystemOptions=[],d.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:i.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":i.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),d.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:o.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":o.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})),d};var Ie=function(e){var t=v.getPlayer(e);if("function"==typeof t.eme)try{t.eme(),"Safari"==m.detectBrowser()&&t.eme.initLegacyFairplay()}catch(e){console.log("EME ERROR :",e)}},Ee=function(e,t){if(Promise.resolve().then((function(){return require("./error-26d5a3c3.js")})).then((function(e){var t=document.createElement("style");t.id="errorblock",t.append("".concat(e.default)),document.head.appendChild(t)})),document.getElementsByClassName("error-container")[0]){var n=document.getElementsByClassName("error-message")[0];n&&(n.innerHTML="".concat(t))}else{var i=document.getElementById(e);if(i){var o=document.createElement("div");o.className="error-container";var r=document.createElement("div");r.className="error-message",r.innerHTML="".concat(t),o.appendChild(r),i.append(o)}}},Te=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var ye=!1,he=function(e,t,n){var o=ve(t,e,n),r=v.getPlayer(e);if(t&&window.google){if("function"!=typeof r.ima)return;r.ima.initializeAdDisplayContainer&&r.ima.initializeAdDisplayContainer(),function(e,t){var n,o,r,l=v.getPlayer(e);if(null!==l.el_){ye=!0;var a={id:e,adTagUrl:"".concat(t),adLabel:"Your video will resume after this sponsor message"};l.ima.initializeAdDisplayContainer&&l.ima.initializeAdDisplayContainer(),ye&&null!==l.el_&&("function"==typeof l.ima?l.ima(a):i((function(){l.ima.setContentWithAdTag(null,t,!0),l.ima.requestAds()}),1e3));var s=document.getElementById("".concat(e));(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&s.hasAttribute("controls")&&s.removeAttribute("controls");var d="click",u=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(u=!0,d="touchend"),l.one(d,(function(){u&&l.ima.initializeAdDisplayContainer()}));var c=(null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o||null===(r=o.ads)||void 0===r?void 0:r.adEventHandler)||null;l.one("ads-ad-started",(function(){c&&c({status:"STARTED",msg:"Advertisement Started"})})),l.one("ads-manager",(function(e){e.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,(function(){c&&c({status:"ENDED",msg:"Advertisement Ended"})}))})),l.on("adserror",(function(e){c&&c({status:"ERROR",msg:"Advertisement Error"})}))}}(e,o)}},_e=function(e){return!!l.getPlayer("".concat(e))},be=function(){var i=e(t.mark((function e(i,o){var r,l,a,s=arguments;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>2&&void 0!==s[2]&&s[2],e.next=3,Y();case 3:return l=e.sent,a=v.getPlayer(i),e.abrupt("return",new n((function(e,t){L(o,l).then((function(t){var n=null==t?void 0:t.data;window.sid=ne(),n.contentType="linearchannel",n.channelId=null==o?void 0:o.channelId;var l=pe(n,i);X(n),l&&r?(De(i,l),a.on("loadstart",(function(){e({status:!0,msg:"Feed authenticated and loaded",response:n})}))):e({status:!0,msg:"Feed authenticated",response:n})})).catch((function(e){t({status:!1,msg:"Cannot load feed",response:e})}))})));case 6:case"end":return e.stop()}}),e)})));return function(e,t){return i.apply(this,arguments)}}(),je=function(){var r=e(t.mark((function e(r,l,a){var s,d,u,c,m,p;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Y();case 2:return c=e.sent,(K()||null)&&Z(l),m=0,p=0,null!==(s=window)&&void 0!==s&&s.watchHistory&&null!==(d=window)&&void 0!==d&&null!==(u=d.watchHistory)&&void 0!==u&&u.enable&&W(l,c).then((function(e){var t,n,i,o,r,l;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(null==e?void 0:e.data)),m=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,p=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedPercentage)||null})).catch((function(e){var t,n,i,o;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(e))})),e.abrupt("return",new n((function(e,t){R(l,c).then((function(n){var l,a,s,d,u,c,f,g,w,I,E=null==n?void 0:n.data,T=(null==E||null===(l=E.video)||void 0===l||null===(a=l.streamingInfo)||void 0===a?void 0:a.isLiveStream)||!1;X(n.data);var y=(null==E||null===(s=E.ads)||void 0===s||null===(d=s.preRoll)||void 0===d||null===(u=d.adTags)||void 0===u||null===(c=u.web)||void 0===c?void 0:c.active)&&(null==E||null===(f=E.ads)||void 0===f||null===(g=f.preRoll)||void 0===g||null===(w=g.adTags)||void 0===w||null===(I=w.web)||void 0===I?void 0:I.url);y&&he(r,y,E);var _=pe(E,r);if(_){var b,j,F,D,S,R,L,V,W,C,x,A=(null==E||null===(b=E.video)||void 0===b||null===(j=b.gist)||void 0===j?void 0:j.videoImageUrl)||(null==E||null===(F=E.video)||void 0===F||null===(D=F.gist)||void 0===D||null===(S=D.imageGist)||void 0===S?void 0:S.r16x9),P=v.getPlayer(r);if(P.poster(A),De(r,_),P.on("loadstart",(function(){T&&e({status:!0,msg:"Video Loaded",response:E})})),P.on("loadeddata",(function(){Te(),e({status:!0,msg:"Video Loaded",response:E})})),P.one("play",(function(){m&&p<95&&i((function(){P.currentTime(m)}),0)})),P.one("error",(function(){var e;t({status:!1,msg:(null==P||null===(e=P.error())||void 0===e?void 0:e.message)||"Some error occured"})})),(null==E||null===(R=E.video)||void 0===R||null===(L=R.contentDetails)||void 0===L||null===(V=L.closedCaptions)||void 0===V?void 0:V.length)>0||(null==E||null===(W=E.video)||void 0===W||null===(C=W.closedCaptions)||void 0===C?void 0:C.length)>0){var N,B,O,M=(null==E||null===(N=E.video)||void 0===N||null===(B=N.contentDetails)||void 0===B?void 0:B.closedCaptions)||(null==E||null===(O=E.video)||void 0===O?void 0:O.closedCaptions);x=o(M).call(M,(function(e){return"VTT"===e.format})),h.addCaptions(r,x)}else h.removeCaptions(r)}else Ee(r,"Incompatible Source, only hls,mp4,drm content is allowed"),t("Incompatible Source, only hls,mp4,drm content is allowed")})).catch((function(e){Se(e,r,t,l)}))})));case 9:case"end":return e.stop()}}),e)})));return function(e,t,n){return r.apply(this,arguments)}}(),Fe=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()},De=function(e,t){var n=v.getPlayer(e);n&&n.src(t)},Se=function(e,t,n,i){var o,l,a,s,d,u,c=null==e||null===(o=e.response)||void 0===o||null===(l=o.data)||void 0===l?void 0:l.errorCode,v=(null==e||null===(a=e.response)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.errorMessage)||(null==e?void 0:e.message);_e(t)&&Ee(t,(null===(d=window)||void 0===d?void 0:d.customErrors)&&(null===(u=window)||void 0===u?void 0:u.customErrors[c])||"".concat(v)),n&&n(r({status:!1,response:e,msg:"".concat(v)},i&&{videoId:i}))};exports.authenticateLC=be,exports.baseUrlManager=x,exports.clearError=Te,exports.createIdxMapping=function(e){U=new I,p(e).call(e,(function(e,t){U.set(e.id,t)}))},exports.createSeriesWatchMap=function(e,t){var n=new I;C({videoId:e,token:t}).then((function(e){var t=e.data;p(t).call(t,(function(e){n.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})})),q=n})).catch((function(e){return console.log(e)}))},exports.disableControls=function(e){var t=document.getElementById(e),n=t.getElementsByClassName("vjs-control-bar")[0];n&&(n.style.visibility="hidden");var i=t.getElementsByClassName("vjs-big-play-button")[0];i&&(i.style.display="none");var o=t.getElementsByClassName("vjs-fullscreen-control")[0];o&&(o.style.display="none")},exports.dispose=function(e){var t=v.getPlayer(e);if(Fe(),v.clearEventListeners(),window.onresize=null,t)t.dispose();else{var n=document.getElementById(e);n&&n.remove()}},exports.getCurrentSeries=K,exports.getCurrentVideo=J,exports.getDecodedToken=z,exports.getEntitlementData=function(e,t,n,i){return s({url:n,params:{id:e,deviceType:"web_browser",contentConsumption:"web",latitude:null==i?void 0:i.latitude,longitude:null==i?void 0:i.longitude},method:"GET",headers:{Authorization:t},withCredentials:!0})},exports.getEpisodeNumber=se,exports.getLinearChannelDetails=L,exports.getSeasonNumber=ae,exports.getSeriesDetails=function(e,t){var i,o,r=z(t),l=(null==r?void 0:r.site)||null;return null!==(i=window)&&void 0!==i&&null!==(o=i.customData)&&void 0!==o&&o.seriesData?new n((function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.seriesData})})):s({url:x.get()+"/v3/content/series/".concat(e),params:{site:l},method:"GET",headers:{Authorization:t}})},exports.getSeriesWatchHistory=C,exports.getSeriesWatchMap=function(){return q},exports.getSource=pe,exports.getToken=Y,exports.getUpdatedClusterSource=function(e,t){var n,i=e.src,o=e.type;if(!i||"string"!=typeof i||!d(i).call(i,".com"))return{src:i,type:o};t=t.replace(/\/$/,"");var r=i.split(".com")[1]||"";return{src:r?a(n="".concat(t)).call(n,r):i,type:o}},exports.getUserId=ie,exports.getVideoDetails=R,exports.getVideoIdx=function(){return M},exports.getVideoInfo=W,exports.handleError=Ee,exports.initialiseAdvertisement=he,exports.initiateErrorHandling=Se,exports.inititateBeacon=function(e,t){if("localhost"!==location.hostname&&"127.0.0.1"!==location.hostname){var n=v.getPlayer(e);window.initialise(n,t),window.firstFrame(n,t),n.on("loadedmetadata",(function(){window.endFirstFrame(n)}))}},exports.isPaused=function(e){return l(e).paused()},exports.isPlayerInitialised=_e,exports.isTokenExpired=A,exports.load=je,exports.loadVideo=De,exports.loadVideoInstantly=function(e,t,o){var r=v.getPlayer(e);return r.src(t),new n((function(e,t){var n=0;r.one("loadedmetadata",(function(){clearTimeout(n),e({status:!0,msg:"video loaded"})})),r.one("loadstart",(function(e){n=i((function(){t("FAILED: Took too long to load")}),o)}))}))},exports.pause=function(e){l(e).pause()},exports.play=function(e){l(e).play()},exports.refreshTokenManager=N,exports.replaceMacros=ve,exports.rewind=function(e,t){var n=l(e),i=n.currentTime(),o=i<=t?0:i-t;n.currentTime(o)},exports.runGtag=function(e){window.dataLayer=window.dataLayer||[],b("js",new Date),b("config",e)},exports.saveWatchHistory=V,exports.seasonIdxManager=$,exports.setCurrentSeries=function(e){B=e},exports.setCurrentVideo=X,exports.setVideoIdx=Q,exports.setVideoIdxById=Z,exports.skip=function(e,t){var n=l(e),i=n.currentTime()+t;n.currentTime(i)},exports.token_authentication_enabled=function(e){var t=!0,n=null==e?void 0:e.videoSourceUrl,i=null==e?void 0:e.asat;return n&&!i&&(t=!1),t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var n=require("@babel/runtime-corejs3/core-js-stable/instance/concat");exports.BackIcon=function(){return'<svg width="13" height="13" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10.6169 0.418212C11.0883 0.933084 11.1247 1.74341 10.726 2.30391L10.6173 2.43852L3.69866 10.0029L10.6169 17.5611C11.0883 18.0759 11.1247 18.8863 10.726 19.4468L10.6173 19.5814C10.1461 20.0965 9.40458 20.1362 8.89165 19.7006L8.76847 19.5818L0 10.0039L8.76809 0.418626C9.27852 -0.13938 10.1063 -0.139565 10.6169 0.418212Z" fill="white"/>\n </svg>\n '},exports.BroadcastIcon=function(){return'<svg width="22" height="20" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.01316 12.1667L0.25 10.5V15.5L3.01316 14.25V18H15.25V8H3.01316V12.1667ZM7.67057 10.7216C7.53806 10.6283 7.35547 10.7231 7.35547 10.8852V15.1146C7.35547 15.2766 7.53806 15.3714 7.67057 15.2781L10.6757 13.1634C10.7889 13.0838 10.7889 12.916 10.6757 12.8363L7.67057 10.7216Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.25 2H20.25H21.25V3V10H20.25V3H7.25V2ZM17.25 5H4.25V6H17.25V13H18.25V6V5H17.25Z" fill="white"/>\n </svg>\n '},exports.CaptionsSvgV2=function(){return'<svg width="21" height="18" viewBox="0 0 21 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M20.4541 15.8369V2H0.454102V15.8369H11.992L17.7874 18V15.8369H20.4541ZM2.4541 4H18.4541V13.8614H15.9182L15.9179 15L11.9664 13.8614H2.4541V4Z" fill="white"/>\n <rect x="3.4541" y="6" width="9" height="2" fill="white"/>\n <rect x="14.4541" y="6" width="3" height="2" fill="white"/>\n <rect x="8.4541" y="10" width="9" height="2" fill="white"/>\n <rect x="3.4541" y="10" width="3" height="2" fill="white"/>\n </svg>\n '},exports.EpisodesSvg=function(){return'<svg class=\'icon icon-episodes\' width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1 11.7368C1 11.3299 1.32989 11 1.73684 11H16.2632C16.6701 11 17 11.3299 17 11.7368V21.2632C17 21.6701 16.6701 22 16.2632 22H1.73684C1.3299 22 1 21.6701 1 21.2632V11.7368Z" fill="white"/>\n <path d="M5 8H19.2632C19.6701 8 20 8.3299 20 8.73684V18" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M8 4H22.2632C22.6701 4 23 4.3299 23 4.73684V13" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},exports.InfoIcon=function(){return'<svg width="16" height="16" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M8.99935 13.167C9.23546 13.167 9.43338 13.0871 9.5931 12.9274C9.75282 12.7677 9.83268 12.5698 9.83268 12.3337C9.83268 12.0975 9.75282 11.8996 9.5931 11.7399C9.43338 11.5802 9.23546 11.5003 8.99935 11.5003C8.76324 11.5003 8.56532 11.5802 8.4056 11.7399C8.24588 11.8996 8.16602 12.0975 8.16602 12.3337C8.16602 12.5698 8.24588 12.7677 8.4056 12.9274C8.56532 13.0871 8.76324 13.167 8.99935 13.167ZM8.16602 9.83366H9.83268V4.83366H8.16602V9.83366ZM8.99935 17.3337C7.84657 17.3337 6.76324 17.1149 5.74935 16.6774C4.73546 16.2399 3.85352 15.6462 3.10352 14.8962C2.35352 14.1462 1.75977 13.2642 1.32227 12.2503C0.884766 11.2364 0.666016 10.1531 0.666016 9.00033C0.666016 7.84755 0.884766 6.76421 1.32227 5.75033C1.75977 4.73644 2.35352 3.85449 3.10352 3.10449C3.85352 2.35449 4.73546 1.76074 5.74935 1.32324C6.76324 0.885742 7.84657 0.666992 8.99935 0.666992C10.1521 0.666992 11.2355 0.885742 12.2493 1.32324C13.2632 1.76074 14.1452 2.35449 14.8952 3.10449C15.6452 3.85449 16.2389 4.73644 16.6764 5.75033C17.1139 6.76421 17.3327 7.84755 17.3327 9.00033C17.3327 10.1531 17.1139 11.2364 16.6764 12.2503C16.2389 13.2642 15.6452 14.1462 14.8952 14.8962C14.1452 15.6462 13.2632 16.2399 12.2493 16.6774C11.2355 17.1149 10.1521 17.3337 8.99935 17.3337ZM8.99935 15.667C10.8605 15.667 12.4368 15.0212 13.7285 13.7295C15.0202 12.4378 15.666 10.8614 15.666 9.00033C15.666 7.13921 15.0202 5.56283 13.7285 4.27116C12.4368 2.97949 10.8605 2.33366 8.99935 2.33366C7.13824 2.33366 5.56185 2.97949 4.27018 4.27116C2.97852 5.56283 2.33268 7.13921 2.33268 9.00033C2.33268 10.8614 2.97852 12.4378 4.27018 13.7295C5.56185 15.0212 7.13824 15.667 8.99935 15.667Z" fill="white"/>\n </svg>'},exports.MaximizeSvg=function(e){var t,C;return n(t=n(C="<svg fill='".concat(e||"white","'\n class='icon icon-maximize'\n viewBox=\"0 0 70 70\"\n xmlns='http://www.w3.org/2000/svg'\n >\n <path fill='")).call(C,e||"white","' d='M43.369 45.938h-6.971l3.16 3.146h9.593v-9.714l-3.146-3.077v6.648l-8.823-8.823-2.817 2.817 9.004 9.004z' />\n <path fill='")).call(t,e||"white","' d='M21.969 18.834h6.971l-3.16-3.146h-9.593v9.714l3.146 3.077v-6.648l8.823 8.823 2.817-2.817-9.003-9.003z' />\n </svg>")},exports.MinimizeSvg=function(e){var t,C;return n(t=n(C="<svg fill='".concat(e||"white","'\n class='icon icon-minimize'\n viewBox=\"0 0 70 70\"\n xmlns='http://www.w3.org/2000/svg'\n >\n <path fill='")).call(C,e||"white","' d='M40.397 37.511h6.971l-3.16-3.146h-9.593v9.714l3.146 3.077v-6.648l8.823 8.823 2.817-2.817-9.004-9.004z' />\n <path fill='")).call(t,e||"white","' d='M24.443 26.763h-6.971l3.16 3.146h9.593v-9.714l-3.146-3.077v6.648l-8.823-8.823-2.817 2.817 9.003 9.004z' />\n </svg>")},exports.NewCaptionsSvg=function(){return'<svg width="18" height="16" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5 6.5H10M5 10H13M7.68375 16H14.2C15.8802 16 16.7202 16 17.362 15.673C17.9265 15.3854 18.3854 14.9265 18.673 14.362C19 13.7202 19 12.8802 19 11.2V5.8C19 4.11984 19 3.27976 18.673 2.63803C18.3854 2.07354 17.9265 1.6146 17.362 1.32698C16.7202 1 15.8802 1 14.2 1H5.8C4.11984 1 3.27976 1 2.63803 1.32698C2.07354 1.6146 1.6146 2.07354 1.32698 2.63803C1 3.27976 1 4.11984 1 5.8V18.3355C1 18.8684 1 19.1348 1.10923 19.2716C1.20422 19.3906 1.34827 19.4599 1.50054 19.4597C1.67563 19.4595 1.88367 19.2931 2.29976 18.9602L4.68521 17.0518C5.17252 16.662 5.41617 16.4671 5.68749 16.3285C5.9282 16.2055 6.18443 16.1156 6.44921 16.0613C6.74767 16 7.0597 16 7.68375 16Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},exports.PlayNextEpisodeSvg=function(e){var t,C;return n(t=n(C='<svg className=\'icon-play-next\' width="16" height="16" viewBox="0 0 25 25" fill='.concat(e,' xmlns="http://www.w3.org/2000/svg">\n <path d="M14.8837 9.99984L0 0V20L14.8837 9.99984Z" fill=')).call(C,e,' />\n <rect x="18" width="2" height="20" fill=')).call(t,e," />\n </svg>")},exports.PlaylistIcon=function(){return'<svg version="1.0" xmlns="http://www.w3.org/2000/svg"\n width="17" height="17" viewBox="0 0 512.000000 512.000000"\n preserveAspectRatio="xMidYMid meet">\n \n <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"\n fill="white" stroke="none">\n <path d="M340 4674 c-46 -20 -77 -50 -103 -99 -22 -40 -22 -45 -25 -754 -3\n -813 -5 -788 72 -859 69 -64 158 -77 238 -36 17 9 232 177 478 374 492 394\n 490 392 490 499 0 60 -23 112 -72 158 -62 60 -863 695 -900 714 -45 23 -128\n 25 -178 3z"/>\n <path d="M2045 4673 c-164 -86 -166 -300 -3 -384 37 -19 73 -19 1382 -17\n l1344 3 44 30 c138 97 118 306 -34 370 -33 13 -189 15 -1370 15 -1195 -1\n -1336 -2 -1363 -17z"/>\n <path d="M2045 3393 c-164 -86 -166 -300 -3 -384 37 -19 73 -19 1382 -17\n l1344 3 44 30 c138 97 118 306 -34 370 -33 13 -189 15 -1370 15 -1195 -1\n -1336 -2 -1363 -17z"/>\n <path d="M340 2114 c-173 -75 -161 -342 18 -394 26 -8 692 -10 2224 -8 l2186\n 3 44 30 c138 97 118 306 -34 370 -33 13 -272 15 -2220 15 -1927 -1 -2187 -3\n -2218 -16z"/>\n <path d="M340 834 c-173 -75 -161 -342 18 -394 26 -8 692 -10 2224 -8 l2186 3\n 44 30 c138 97 118 306 -34 370 -33 13 -272 15 -2220 15 -1927 -1 -2187 -3\n -2218 -16z"/>\n </g>\n </svg>'},exports.RewindSvg=function(e){var t,C;return n(t=n(C='<svg style="width:16px" class=\'rewindbtn\' viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.88817 16.9913L7.72176 18.5762C9.58746 18.8613 11.4677 18.5376 13.1023 17.6161C17.1941 15.3094 18.4803 9.98978 15.9732 5.74243C13.47 1.50156 8.13865 -0.0590307 4.03665 2.25351C3.35173 2.64307 2.7379 3.12124 2.20384 3.67698L3.34087 4.82569C3.77642 4.37247 4.27773 3.98196 4.83679 3.66398C8.20452 1.76539 12.5901 3.04913 14.644 6.5288C16.6894 9.99402 15.6429 14.3223 12.3046 16.2043C10.9636 16.9602 9.42195 17.2257 7.88817 16.9913Z" fill=\''.concat(window.color||"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.10742 0.462205L0.56205 5.24366L6.06202 5.79492L3.10742 0.462205Z" fill=\'')).call(C,window.color||"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.80172 14.1769C10.1682 14.1769 10.5096 14.1082 10.8258 13.9708C11.142 13.8333 11.416 13.6241 11.6479 13.343C11.8798 13.0619 12.0615 12.7059 12.1928 12.275C12.3242 11.8441 12.3898 11.3368 12.3898 10.753C12.3898 10.1661 12.3242 9.65803 12.1928 9.22868C12.0615 8.79934 11.8798 8.44413 11.6479 8.16305C11.416 7.88197 11.142 7.6727 10.8258 7.53525C10.5096 7.3978 10.1682 7.32907 9.80172 7.32907C9.43524 7.32907 9.09551 7.3978 8.78254 7.53525C8.46956 7.6727 8.19794 7.88197 7.96767 8.16305C7.7374 8.44413 7.5574 8.79934 7.42767 9.22868C7.29794 9.65803 7.23308 10.1661 7.23308 10.753C7.23308 11.3368 7.29794 11.8441 7.42767 12.275C7.5574 12.7059 7.7374 13.0619 7.96767 13.343C8.19794 13.6241 8.46956 13.8333 8.78254 13.9708C9.09551 14.1082 9.43524 14.1769 9.80172 14.1769ZM6.54713 14.1028V13.2457H5.28226V7.39394H4.2947L2.14929 9.13139L2.52875 9.62714C2.5547 9.66112 2.59443 9.69123 2.64794 9.71749C2.70145 9.74374 2.76064 9.75687 2.82551 9.75687C2.86767 9.75687 2.91064 9.75069 2.95443 9.73834C2.99821 9.72598 3.04118 9.70282 3.08335 9.66884L4.09524 8.86266C4.08551 9.02946 4.08064 9.18853 4.08064 9.33988V13.2457H2.65524V14.1028H6.54713ZM9.30308 13.1136C9.46362 13.1893 9.62983 13.2271 9.80172 13.2271C9.97686 13.2271 10.1455 13.1893 10.3077 13.1136C10.4698 13.038 10.6133 12.9059 10.7382 12.7175C10.8631 12.5291 10.9628 12.2758 11.0374 11.9576C11.112 11.6395 11.1493 11.238 11.1493 10.753C11.1493 10.2681 11.112 9.86652 11.0374 9.54838C10.9628 9.23023 10.8631 8.97695 10.7382 8.78853C10.6133 8.60011 10.4698 8.46807 10.3077 8.39239C10.1455 8.31672 9.97686 8.27888 9.80172 8.27888C9.62983 8.27888 9.46362 8.31672 9.30308 8.39239C9.14254 8.46807 9.00064 8.60011 8.8774 8.78853C8.75416 8.97695 8.65605 9.23023 8.58308 9.54838C8.5101 9.86652 8.47362 10.2681 8.47362 10.753C8.47362 11.238 8.5101 11.6395 8.58308 11.9576C8.65605 12.2758 8.75416 12.5291 8.8774 12.7175C9.00064 12.9059 9.14254 13.038 9.30308 13.1136Z" fill=\'')).call(t,window.color||"white","' />\n </svg>")},exports.RewindSvgV2=function(){return'<svg class=\'rewindbtn\' width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1.22363 9.43675L3.152 11.3434L5.08151 9.43675M2.91616 10.8667C2.88115 10.5537 2.86319 10.2356 2.86319 9.91341C2.86319 5.17486 6.74945 1.3335 11.5434 1.3335C16.3374 1.3335 20.2236 5.17486 20.2236 9.91341C20.2236 14.652 16.3374 18.4933 11.5434 18.4933C8.8166 18.4933 6.38346 17.2505 4.79212 15.3067" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3"/>\n <path d="M9.92694 13.0831V6.80067H8.94318C8.58633 7.20106 7.97871 7.53473 7.37109 7.64912V8.66918C7.68937 8.64058 8.22947 8.52618 8.51881 8.39272V13.0831H9.92694Z" fill="white"/>\n <path d="M13.6545 6.6958C11.8316 6.6958 11.1951 8.23065 11.1951 9.94664C11.1951 11.6817 11.7641 13.1975 13.6255 13.1975C15.5159 13.1975 16.0656 11.634 16.0656 9.9085C16.0656 8.12579 15.4291 6.6958 13.6545 6.6958ZM13.6545 7.78259C14.4839 7.78259 14.6382 8.69778 14.6382 9.91804C14.6382 11.1478 14.5225 12.1107 13.6448 12.1107C12.7479 12.1107 12.6128 11.0811 12.6128 9.92757C12.6128 8.57385 12.8443 7.78259 13.6545 7.78259Z" fill="white"/>\n </svg>'},exports.SelectedStream=function(){return'<svg class=\'selected-stream\' width="25" height="25" viewBox="0 0 35 33" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_319_60943)">\n <path d="M0 0H35V33H0V0Z" fill="#D2393B"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M15.8689 17.6541L22.3039 11.2898C22.6966 10.9014 23.3372 10.9054 23.7299 11.2937C24.1225 11.6821 24.1265 12.3157 23.7338 12.704L16.6345 19.7253C16.6189 19.743 16.6026 19.7604 16.5856 19.7772C16.5158 19.8463 16.4381 19.9032 16.3554 19.9479C15.9716 20.1587 15.4758 20.1009 15.1503 19.779C15.126 19.755 15.1032 19.73 15.0819 19.7042L12.2919 16.9449C11.8992 16.5565 11.9032 15.9229 12.2958 15.5346C12.6885 15.1462 13.3291 15.1423 13.7218 15.5306L15.8689 17.6541Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_319_60943">\n <path d="M0 0H35V33H8C3.58172 33 0 29.4183 0 25V0Z" fill="white"/>\n </clipPath>\n </defs>\n </svg>\n '},exports.SettingsSvg=function(){return'<svg width="16" height="16" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M11 14C12.6569 14 14 12.6569 14 11C14 9.34315 12.6569 8 11 8C9.34315 8 8 9.34315 8 11C8 12.6569 9.34315 14 11 14Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M17.7273 13.7273C17.6063 14.0015 17.5702 14.3056 17.6236 14.6005C17.6771 14.8954 17.8177 15.1676 18.0273 15.3818L18.0818 15.4364C18.2509 15.6052 18.385 15.8057 18.4765 16.0265C18.568 16.2472 18.6151 16.4838 18.6151 16.7227C18.6151 16.9617 18.568 17.1983 18.4765 17.419C18.385 17.6397 18.2509 17.8402 18.0818 18.0091C17.913 18.1781 17.7124 18.3122 17.4917 18.4037C17.271 18.4952 17.0344 18.5423 16.7955 18.5423C16.5565 18.5423 16.3199 18.4952 16.0992 18.4037C15.8785 18.3122 15.678 18.1781 15.5091 18.0091L15.4545 17.9545C15.2403 17.745 14.9682 17.6044 14.6733 17.5509C14.3784 17.4974 14.0742 17.5335 13.8 17.6545C13.5311 17.7698 13.3018 17.9611 13.1403 18.205C12.9788 18.4489 12.8921 18.7347 12.8909 19.0273V19.1818C12.8909 19.664 12.6994 20.1265 12.3584 20.4675C12.0174 20.8084 11.5549 21 11.0727 21C10.5905 21 10.1281 20.8084 9.78708 20.4675C9.4461 20.1265 9.25455 19.664 9.25455 19.1818V19.1C9.24751 18.7991 9.15011 18.5073 8.97501 18.2625C8.79991 18.0176 8.55521 17.8312 8.27273 17.7273C7.99853 17.6063 7.69437 17.5702 7.39947 17.6236C7.10456 17.6771 6.83244 17.8177 6.61818 18.0273L6.56364 18.0818C6.39478 18.2509 6.19425 18.385 5.97353 18.4765C5.7528 18.568 5.51621 18.6151 5.27727 18.6151C5.03834 18.6151 4.80174 18.568 4.58102 18.4765C4.36029 18.385 4.15977 18.2509 3.99091 18.0818C3.82186 17.913 3.68775 17.7124 3.59626 17.4917C3.50476 17.271 3.45766 17.0344 3.45766 16.7955C3.45766 16.5565 3.50476 16.3199 3.59626 16.0992C3.68775 15.8785 3.82186 15.678 3.99091 15.5091L4.04545 15.4545C4.25503 15.2403 4.39562 14.9682 4.4491 14.6733C4.50257 14.3784 4.46647 14.0742 4.34545 13.8C4.23022 13.5311 4.03887 13.3018 3.79497 13.1403C3.55107 12.9788 3.26526 12.8921 2.97273 12.8909H2.81818C2.33597 12.8909 1.87351 12.6994 1.53253 12.3584C1.19156 12.0174 1 11.5549 1 11.0727C1 10.5905 1.19156 10.1281 1.53253 9.78708C1.87351 9.4461 2.33597 9.25455 2.81818 9.25455H2.9C3.2009 9.24751 3.49273 9.15011 3.73754 8.97501C3.98236 8.79991 4.16883 8.55521 4.27273 8.27273C4.39374 7.99853 4.42984 7.69437 4.37637 7.39947C4.3229 7.10456 4.18231 6.83244 3.97273 6.61818L3.91818 6.56364C3.74913 6.39478 3.61503 6.19425 3.52353 5.97353C3.43203 5.7528 3.38493 5.51621 3.38493 5.27727C3.38493 5.03834 3.43203 4.80174 3.52353 4.58102C3.61503 4.36029 3.74913 4.15977 3.91818 3.99091C4.08704 3.82186 4.28757 3.68775 4.50829 3.59626C4.72901 3.50476 4.96561 3.45766 5.20455 3.45766C5.44348 3.45766 5.68008 3.50476 5.9008 3.59626C6.12152 3.68775 6.32205 3.82186 6.49091 3.99091L6.54545 4.04545C6.75971 4.25503 7.03183 4.39562 7.32674 4.4491C7.62164 4.50257 7.9258 4.46647 8.2 4.34545H8.27273C8.54161 4.23022 8.77093 4.03887 8.93245 3.79497C9.09397 3.55107 9.18065 3.26526 9.18182 2.97273V2.81818C9.18182 2.33597 9.37338 1.87351 9.71435 1.53253C10.0553 1.19156 10.5178 1 11 1C11.4822 1 11.9447 1.19156 12.2856 1.53253C12.6266 1.87351 12.8182 2.33597 12.8182 2.81818V2.9C12.8193 3.19253 12.906 3.47834 13.0676 3.72224C13.2291 3.96614 13.4584 4.15749 13.7273 4.27273C14.0015 4.39374 14.3056 4.42984 14.6005 4.37637C14.8954 4.3229 15.1676 4.18231 15.3818 3.97273L15.4364 3.91818C15.6052 3.74913 15.8057 3.61503 16.0265 3.52353C16.2472 3.43203 16.4838 3.38493 16.7227 3.38493C16.9617 3.38493 17.1983 3.43203 17.419 3.52353C17.6397 3.61503 17.8402 3.74913 18.0091 3.91818C18.1781 4.08704 18.3122 4.28757 18.4037 4.50829C18.4952 4.72901 18.5423 4.96561 18.5423 5.20455C18.5423 5.44348 18.4952 5.68008 18.4037 5.9008C18.3122 6.12152 18.1781 6.32205 18.0091 6.49091L17.9545 6.54545C17.745 6.75971 17.6044 7.03183 17.5509 7.32674C17.4974 7.62164 17.5335 7.9258 17.6545 8.2V8.27273C17.7698 8.54161 17.9611 8.77093 18.205 8.93245C18.4489 9.09397 18.7347 9.18065 19.0273 9.18182H19.1818C19.664 9.18182 20.1265 9.37338 20.4675 9.71435C20.8084 10.0553 21 10.5178 21 11C21 11.4822 20.8084 11.9447 20.4675 12.2856C20.1265 12.6266 19.664 12.8182 19.1818 12.8182H19.1C18.8075 12.8193 18.5217 12.906 18.2778 13.0676C18.0339 13.2291 17.8425 13.4584 17.7273 13.7273Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},exports.SettingsSvgV2=function(){return'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M20.7275 8.7189V11.2811L18.0174 11.7913C17.8497 12.5312 17.558 13.2374 17.1546 13.88L18.71 16.1626L16.8874 17.9721L14.6149 16.43C13.9694 16.8283 13.2636 17.1194 12.5249 17.2919L12.0143 20H9.43828L8.92846 17.2919C8.18971 17.1194 7.48385 16.8284 6.8384 16.43L4.56591 17.9721L2.74302 16.1626L4.28649 13.88C3.88787 13.2349 3.5965 12.5296 3.42371 11.7913L0.727539 11.2811V8.7189L3.42371 8.1968C3.59774 7.4568 3.89356 6.75083 4.29909 6.10771L2.74337 3.837L4.56626 2.02785L6.83875 3.57C7.48173 3.16673 8.18841 2.8752 8.92881 2.70777L9.43863 0H12.0147L12.5252 2.70777C13.2656 2.87529 13.9723 3.16682 14.6153 3.57L16.8878 2.02785L18.7103 3.837L17.1549 6.11996C17.5582 6.75838 17.85 7.46066 18.0177 8.1968L20.7275 8.7189ZM5.19864 10.0057C5.2018 13.0538 7.67684 15.5222 10.7268 15.5191C12.1916 15.5176 13.5957 14.9347 14.6304 13.8985C15.665 12.8624 16.2454 11.4579 16.2438 9.99405C16.2405 6.94597 13.7654 4.47766 10.7154 4.48088C7.6654 4.4841 5.19548 6.95764 5.19864 10.0057Z" fill="white"/>\n </svg>'},exports.SkipSvg=function(e){var t,C;return n(t=n(C='<svg style="width:16px" class=\'skipbtn\' viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.99586 16.9937L10.1623 18.5786C8.29657 18.8638 6.41631 18.54 4.78178 17.6185C0.689955 15.3118 -0.596286 9.9922 1.9108 5.74486C4.41407 1.50398 9.74539 -0.0566045 13.8474 2.25594C14.5323 2.64549 15.1461 3.12366 15.6802 3.6794L14.5432 4.82812C14.1076 4.3749 13.6063 3.98438 13.0472 3.66641C9.67952 1.76782 5.29397 3.05156 3.24002 6.53123C1.1946 9.99645 2.24115 14.3247 5.57947 16.2067C6.92039 16.9626 8.46208 17.2281 9.99586 16.9937Z" fill=\''.concat(window.color?window.color:"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M14.7766 0.464616L17.322 5.24607L11.822 5.79733L14.7766 0.464616Z" fill=\'')).call(C,window.color?window.color:"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13.0245 14.115C13.391 14.115 13.7323 14.0463 14.0486 13.9088C14.3648 13.7714 14.6388 13.5621 14.8707 13.281C15.1026 13 15.2842 12.644 15.4156 12.2131C15.5469 11.7822 15.6126 11.2749 15.6126 10.6911C15.6126 10.1042 15.5469 9.59609 15.4156 9.16675C15.2842 8.73741 15.1026 8.38219 14.8707 8.10111C14.6388 7.82003 14.3648 7.61076 14.0486 7.47331C13.7323 7.33586 13.391 7.26714 13.0245 7.26714C12.658 7.26714 12.3183 7.33586 12.0053 7.47331C11.6923 7.61076 11.4207 7.82003 11.1904 8.10111C10.9602 8.38219 10.7802 8.73741 10.6504 9.16675C10.5207 9.59609 10.4559 10.1042 10.4559 10.6911C10.4559 11.2749 10.5207 11.7822 10.6504 12.2131C10.7802 12.644 10.9602 13 11.1904 13.281C11.4207 13.5621 11.6923 13.7714 12.0053 13.9088C12.3183 14.0463 12.658 14.115 13.0245 14.115ZM9.76991 14.0409V13.1837H8.50504V7.332H7.51748L5.37207 9.06945L5.75153 9.56521C5.77748 9.59918 5.81721 9.6293 5.87072 9.65555C5.92423 9.68181 5.98342 9.69493 6.04829 9.69493C6.09045 9.69493 6.13342 9.68876 6.17721 9.6764C6.22099 9.66405 6.26396 9.64088 6.30612 9.6069L7.31802 8.80073C7.30829 8.96752 7.30342 9.1266 7.30342 9.27795V13.1837H5.87802V14.0409H9.76991ZM12.5259 13.0517C12.6864 13.1274 12.8526 13.1652 13.0245 13.1652C13.1996 13.1652 13.3683 13.1274 13.5304 13.0517C13.6926 12.976 13.8361 12.844 13.961 12.6556C14.0859 12.4671 14.1856 12.2139 14.2602 11.8957C14.3348 11.5776 14.3721 11.176 14.3721 10.6911C14.3721 10.2061 14.3348 9.80459 14.2602 9.48644C14.1856 9.16829 14.0859 8.91501 13.961 8.7266C13.8361 8.53818 13.6926 8.40613 13.5304 8.33046C13.3683 8.25478 13.1996 8.21694 13.0245 8.21694C12.8526 8.21694 12.6864 8.25478 12.5259 8.33046C12.3653 8.40613 12.2234 8.53818 12.1002 8.7266C11.9769 8.91501 11.8788 9.16829 11.8059 9.48644C11.7329 9.80459 11.6964 10.2061 11.6964 10.6911C11.6964 11.176 11.7329 11.5776 11.8059 11.8957C11.8788 12.2139 11.9769 12.4671 12.1002 12.6556C12.2234 12.844 12.3653 12.976 12.5259 13.0517Z" fill=\'')).call(t,window.color?window.color:"white","' />\n </svg>")},exports.SkipSvgV2=function(){return'<svg class=\'skipbtn\' width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M19.7236 9.43675L17.7953 11.3434L15.8658 9.43675M18.0311 10.8667C18.0661 10.5537 18.0841 10.2356 18.0841 9.91341C18.0841 5.17486 14.1978 1.3335 9.40386 1.3335C4.6099 1.3335 0.723633 5.17486 0.723633 9.91341C0.723633 14.652 4.6099 18.4933 9.40386 18.4933C12.1307 18.4933 14.5638 17.2505 16.1551 15.3067" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3"/>\n <path d="M7.80584 13.0831V6.80067H6.82209C6.46523 7.20106 5.85762 7.53473 5.25 7.64912V8.66918C5.56828 8.64058 6.10838 8.52618 6.39772 8.39272V13.0831H7.80584Z" fill="white"/>\n <path d="M11.5334 6.6958C9.71052 6.6958 9.07397 8.23065 9.07397 9.94664C9.07397 11.6817 9.64301 13.1975 11.5044 13.1975C13.3948 13.1975 13.9445 11.634 13.9445 9.9085C13.9445 8.12579 13.308 6.6958 11.5334 6.6958ZM11.5334 7.78259C12.3628 7.78259 12.5171 8.69778 12.5171 9.91804C12.5171 11.1478 12.4014 12.1107 11.5237 12.1107C10.6268 12.1107 10.4917 11.0811 10.4917 9.92757C10.4917 8.57385 10.7232 7.78259 11.5334 7.78259Z" fill="white"/>\n </svg>'},exports.TickMarkIcon=function(){return'<svg width="28" height="28" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28">\n <path d="M21 10L11 20L7 16" stroke="white" stroke-width="2" fill="none"/>\n </svg>'},exports.crossIconSvg=function(){return'<svg width="13" height="13" viewBox="0 0 19 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.273985 2.30391C-0.124672 1.74341 -0.0882695 0.933084 0.383092 0.418212C0.893733 -0.139565 1.72148 -0.13938 2.23191 0.418626L9.25 8.09082L16.2681 0.418626C16.7785 -0.13938 17.6063 -0.139565 18.1169 0.418212C18.5883 0.933084 18.6247 1.74341 18.226 2.30391L18.1173 2.43852L11.1987 10.0029L18.1169 17.5611C18.5883 18.0759 18.6247 18.8863 18.226 19.4468L18.1173 19.5814C17.6461 20.0965 16.9046 20.1362 16.3916 19.7006L16.2685 19.5818L9.25 11.9155L2.23153 19.5818L2.10835 19.7006C1.59542 20.1362 0.853882 20.0965 0.382714 19.5814L0.273985 19.4468C-0.124672 18.8863 -0.0882694 18.0759 0.383092 17.5611L7.30134 10.0029L0.382714 2.43852L0.273985 2.30391Z" fill="white"/>\n </svg>\n \n '};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/instance/map"),t=require("@babel/runtime-corejs3/core-js-stable/instance/filter"),r=require("./skin-bfb9c959.js"),n=require("./generic-19e39f29.js"),i=require("./autoNextVideo-f1accb29.js"),a=require("@babel/runtime-corejs3/helpers/typeof");require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.split.js");var o=require("@babel/runtime-corejs3/core-js-stable/instance/slice"),l=require("@babel/runtime-corejs3/core-js-stable/parse-float"),s=require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),u=require("video.js"),c=require("@babel/runtime-corejs3/helpers/asyncToGenerator"),d=require("@babel/runtime-corejs3/regenerator"),p=require("@babel/runtime-corejs3/core-js-stable/instance/includes"),m=require("@babel/runtime-corejs3/core-js-stable/instance/last-index-of"),v=require("@babel/runtime-corejs3/helpers/defineProperty"),f=require("@babel/runtime-corejs3/helpers/slicedToArray");require("core-js/modules/es.string.replace.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/es.array.join.js");var g,h,b,x,y=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),j=require("@babel/runtime-corejs3/core-js-stable/instance/trim"),w=require("@babel/runtime-corejs3/core-js-stable/instance/starts-with"),E=require("@babel/runtime-corejs3/core-js-stable/parse-int"),q=require("@babel/runtime-corejs3/core-js-stable/instance/pad-start"),N=require("@babel/runtime-corejs3/core-js-stable/promise"),C=require("@babel/runtime-corejs3/core-js-stable/instance/flat"),k=[],T=function(e,t){var a=r.getPlayer(e),o=Math.floor(a.currentTime());if(Math.floor(a.duration())!=o){a.pause(e);var l=n.getVideoIdx();i.switchToNext(l,e,k)}};function I(e){var t=e.split("\n"),r=[];return y(t).call(t,(function(e){if(e=j(e).call(e),w(e).call(e,"#EXT-X-IMAGE-STREAM-INF")){var t=e.split(","),n={resolution:null,uri:null};y(t).call(t,(function(e){p(e).call(e,"RESOLUTION")&&(n.resolution=e.split("=")[1]),p(e).call(e,"URI")&&(n.uri=e.split("=")[1].replace(/"/g,""))})),r.push(n)}})),r}function L(e){return P.apply(this,arguments)}function P(){return(P=c(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new N((function(e){var r=new Image;r.src=t.uri,r.crossOrigin="Anonymous";var n=[],i=t.layout.split("x"),a=f(i,2),o=a[0],l=a[1];r.onload=function(){var i=document.createElement("canvas");i.width=r.width,i.height=r.height,i.getContext("2d").drawImage(r,0,0,i.width,i.height);for(var a=i.width/l,s=i.height/o,u=0;u<o;u++)for(var c=0;c<l;c++){var d=document.createElement("canvas");d.width=a,d.height=s,d.getContext("2d").drawImage(i,c*a,u*s,a,s,0,0,a,s);var p=d.toDataURL("image/png");n.push({uri:p,duration:t.duration})}e(n)},r.onerror=function(r){var n,i,a,o;e([{duration:t.duration,uri:"".concat(null===(n=window)||void 0===n||null===(i=n.app_data)||void 0===i||null===(a=i.appcmsMain)||void 0===a||null===(o=a.images)||void 0===o?void 0:o.placeholderCover)}])}})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e){return B.apply(this,arguments)}function B(){return(B=c(d.mark((function e(t){var r,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t);case 3:return r=e.sent,e.next=6,r.text();case 6:return n=e.sent,e.abrupt("return",I(n));case 10:e.prev=10,e.t0=e.catch(0),console.error("Error fetching the M3U8 manifest:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function M(e){return S.apply(this,arguments)}function S(){return(S=c(d.mark((function t(r){var n,i,a;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=C,t.next=3,N.all(e(r).call(r,(function(e){return L(e)})));case 3:return t.t1=n=t.sent,i=(0,t.t0)(t.t1).call(n),a={},e(i).call(i,(function(e,t){var r,n=e.duration;a[n*t]={src:e.uri,style:(r={left:"-60px",height:"85px",width:"130px"},v(r,"left","-60px"),v(r,"border","1px solid transparent"),v(r,"borderRadius","4px"),r)}})),t.abrupt("return",a);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}g={0:{src:"example-thumbnail.png"}},h=function e(){var t,r,n,i,l;for(n in r=(t=o(Array.prototype).call(arguments)).shift()||{},t)for(l in i=t[n])i.hasOwnProperty(l)&&("object"===a(i[l])?r[l]=e(r[l],i[l]):r[l]=i[l]);return r},b=function(e,t){return function(r){return window.getComputedStyle?window.getComputedStyle(e,t)[r]:e.currentStyle[r]}},x=function e(t){return"HTML"!==t.nodeName&&"static"===b(t)("position")?e(t.offsetParent):t},u.registerPlugin("thumbnails",(function(e){var t,r,n,i,a,o,u,c;function d(){document.removeEventListener("pointermove",u),document.removeEventListener("pointerup",d),c()}r=h({},g,e),i=this,function(e){var t,r,n;-1!==s(e=navigator.userAgent.toLowerCase()).call(e,"android")&&(r=function(){t.addClass("fake-active")},n=function(){t.removeClass("fake-active")},(t=i.controlBar.progressControl).on("touchstart",r),t.on("touchend",n),t.on("touchcancel",n))}(),(t=document.createElement("div")).className="vjs-thumbnail-holder",n=document.createElement("img"),t.appendChild(n),n.src=r[0].src,n.className="vjs-thumbnail",h(n.style,r[0].style),n.style.left||n.style.right||(n.onload=function(){n.style.left=-n.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),u=function(e){var i,s,u,c,d,p,m,v,f,g;for(s in u=0,f=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,m=((g=x(a.el()).getBoundingClientRect()).width||g.right)+f,p=e.pageX,e.changedTouches&&(p=e.changedTouches[0].pageX),c=p||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,c-=x(a.el()).getBoundingClientRect().left+f,i=Math.floor((c-a.el().offsetLeft)/a.width()*o),r)i>s&&(u=Math.max(u,s));(d=r[u]).src&&n.src!=d.src&&(n.src=d.src),d.style&&n.style!=d.style&&h(n.style,d.style),c+(v=function(e,t){var r;return t?l(t):"auto"!==(r=b(e)("clip"))&&"inherit"!==r&&4===(r=r.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?l(r[1])-l(r[3]):0}(n,d.width||r[0].width)/2)>m?c-=c+v-m:c<v&&(c=v),t.style.left=c+"px"},a.on("mousemove",u),a.on("touchmove",u),a.on("pointerdown",(function(e){document.addEventListener("pointermove",u),document.addEventListener("pointerup",d)})),c=function(e){t.style.left="-1000px"},a.on("mouseout",c),a.on("touchcancel",c),a.on("touchend",c),i.on("userinactive",c)}));var R=function(){var e=c(d.mark((function e(t,r){var n,i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t+r);case 2:return n=e.sent,e.next=5,n.text();case 5:return i=e.sent,a=i.split("\n"),o=[],y(a).call(a,(function(e,r){var n;e=j(e).call(e);var i,l={resolution:null,duration:null,uri:null,layout:null};r>0&&p(n=a[r-1]).call(n,"#EXT-X-TILES")&&(a[r-1]=a[r-1].split(","),l.uri=t+e,y(i=a[r-1]).call(i,(function(e){var t,r=p(e).call(e,":")?e.split(":")[1]:e;y(t=r.split(",")).call(t,(function(e){var t=e.split("="),r=f(t,2),n=r[0],i=r[1];n=n.toLowerCase(),l[n]=i}))})),o.push(l))})),e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();function X(e,t){return O.apply(this,arguments)}function O(){return(O=c(d.mark((function e(t,i){var a,l,u,c,p,m,v,g,h,b,x,y,j,w,q,N,C,k,T,I,L,P,A,B,M,S,R,X,O,D,U,G,F,_,H;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=r.getPlayer(i),c=o(a=t.split("/")).call(a,0,s(l=t.split("/")).call(l,"dash")+1).join("/")||t,e.prev=2,e.next=5,fetch(t);case 5:return g=e.sent,e.next=8,g.text();case 8:h=e.sent,b=new DOMParser,x=b.parseFromString(h,"application/xml"),y=(null==u?void 0:u.duration())||(null===(p=n.getCurrentVideo())||void 0===p||null===(m=p.video)||void 0===m?void 0:m.runtime),j=(null==x||null===(v=x.querySelector("MPD > BaseURL"))||void 0===v?void 0:v.textContent)||c+"/",w=x.getElementsByTagName("AdaptationSet"),q=0;case 15:if(!(q<w.length)){e.next=43;break}if(("image"!==(N=w[q]).getAttribute("contentType")||"image/png"!==N.getAttribute("mimeType"))&&"image/jpeg"!==N.getAttribute("mimeType")){e.next=40;break}if(C=N.getElementsByTagName("SegmentTemplate")[0],k=N.getElementsByTagName("Representation")[0],T=k.getElementsByTagName("EssentialProperty")[0],I=T.getAttribute("value"),L=null==I?void 0:I.split("x"),P=f(L,2),A=P[0],B=P[1],!C){e.next=40;break}if(C.getAttribute("media"),M=C.getAttribute("duration"),S=C.getAttribute("timescale"),R=(S?M/S:M)/(A*B),X=k.getAttribute("id"),O=Math.round(y/R),D=Math.ceil(O/(A*B)),U=C.getAttribute("media"),G=E(C.getAttribute("startNumber"))||0,!isNaN(E(D))){e.next=36;break}return e.abrupt("return");case 36:for(F=[],_=V(U),q=0;q<D;q++)H=_?$(_,q+G):U,F.push({duration:R,layout:I,uri:j+H.replace("$Number$",q+G).replace("$RepresentationID$",X)});return e.abrupt("return",F);case 40:q++,e.next=15;break;case 43:return console.log("No trickplay segment found."),e.abrupt("return",null);case 47:e.prev=47,e.t0=e.catch(2),console.error("Error fetching or parsing MPD:",e.t0);case 50:case"end":return e.stop()}}),e,null,[[2,47]])})))).apply(this,arguments)}function V(e){var t=e.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return t?t[0]:null}function $(e,t){var r,n=e.match(/%0(\d+)d/);if(!n)return e;var i=E(n[1],10),a=q(r=String(t)).call(r,i,"0");return e.replace(/\$Number%0\d+d\$/,a)}function D(){return(D=c(d.mark((function e(t){var n,i,a,o,l,s,u,c,v,f,g,h,b,x,y,j;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=r.getPlayer(t),u=s.currentSource(),c=u.src,c=null!==(n=c)&&void 0!==n&&p(n).call(n,"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||!p(o).call(o,"m3u8")){e.next=19;break}return e.next=6,A(c);case 6:if(!((null==(v=e.sent)?void 0:v.length)>0)){e.next=17;break}return f=(null==v?void 0:v[0])||null,g=f.uri,h=c.substring(0,m(c).call(c,"/"))+"/",e.next=12,R(h,g);case 12:return b=e.sent,e.next=15,M(b);case 15:x=e.sent,s.thumbnails(x);case 17:e.next=28;break;case 19:if(null===(l=c)||void 0===l||!p(l).call(l,"mpd")){e.next=28;break}return e.next=22,X(c,t);case 22:if(!((null==(y=e.sent)?void 0:y.length)>0)){e.next=28;break}return e.next=26,M(y);case 26:j=e.sent,s.thumbnails(j);case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}exports.addNextEpPreview=function(i,a){var o;if(null!=a&&null!==(o=a.series)&&void 0!==o&&o.enable){var l;k=[];var s=n.getCurrentSeries();null==s||e(s).call(s,(function(e){var t;return(t=k).push.apply(t,e.episodes)})),null==a||null===(l=a.series)||void 0===l||l.cb}else{var u,c;k=(null==a||null===(u=a.relatedVideos)||void 0===u?void 0:u.content)||[],null==a||null===(c=a.relatedVideos)||void 0===c||c.cb}var d=r.getPlayer(i);d.on("timeupdate",(function(){var e,t,r=Math.floor(d.currentTime()),i=d.duration(),a=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];i-r<=10&&n.getVideoIdx()<=(null===(t=k)||void 0===t?void 0:t.length)-1?a&&(a.style.visibility="visible"):a&&(a.style.visibility="hidden")}));var p,m=t(k).call(k,(function(e,t){return t==n.getVideoIdx()}));if((null==m?void 0:m.length)>0)if(null!==(p=document.getElementsByClassName("next-ep-preview"))&&void 0!==p&&p[0]){var v,f,g,h,b,x,y,j,w,E,q,N;(null===(v=document.getElementsByClassName("next-ep-preview"))||void 0===v?void 0:v[0]).style.visibility="hidden";var C=null===(f=document.getElementsByClassName("next-ep-title"))||void 0===f?void 0:f[0],I=null===(g=document.getElementsByClassName("next-ep-img"))||void 0===g?void 0:g[0],L=null===(h=document.getElementsByClassName("next-ep-content"))||void 0===h?void 0:h[0],P=null===(b=m[0])||void 0===b?void 0:b.title;(null===(x=P)||void 0===x?void 0:x.length)>60&&(P=P.substr(0,60)+"..."),C.textContent="".concat(P),I.src=(null===(y=m[0])||void 0===y||null===(j=y.gist)||void 0===j||null===(w=j.imageGist)||void 0===w?void 0:w.r16x9)||(null==m||null===(E=m[0])||void 0===E?void 0:E.img)||(null===(q=window)||void 0===q||null===(N=q.customData)||void 0===N?void 0:N.fallbackImage),L.onclick=function(){return T(i)}}else{var A,B,M,S,R,X,O,V,$=document.createElement("div");$.className="next-ep-preview",$.style.visibility="hidden",document.getElementById(i).append($);var D=document.createElement("div");D.className="next-ep-header",D.textContent="Next up";var U=null===(A=m[0])||void 0===A?void 0:A.title,G=document.createElement("img");G.className="next-ep-img",G.src=(null===(B=m[0])||void 0===B||null===(M=B.gist)||void 0===M||null===(S=M.imageGist)||void 0===S?void 0:S.r16x9)||(null==m||null===(R=m[0])||void 0===R?void 0:R.img)||(null===(X=window)||void 0===X||null===(O=X.customData)||void 0===O?void 0:O.fallbackImage);var F=document.createElement("div");F.className="next-ep-title",(null===(V=U)||void 0===V?void 0:V.length)>60&&(U=U.substr(0,60)+"..."),F.textContent="".concat(U);var _=document.createElement("div");_.className="next-ep-content",_.append(G),_.append(F),_.onclick=function(){return T(i)},$.append(D),$.append(_)}},exports.addTVProviderImage=function(e,t){var n=r.getPlayer(e),i=null==t?void 0:t.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),n.el().appendChild(a),n.on("useractive",(function(){a.classList.remove("vjs-fade")})),n.on("userinactive",(function(){n.paused()||a.classList.add("vjs-fade")})),n.on("fullscreenchange",(function(){n.isFullscreen_?a.style.top="3.2rem":a.style.top="1rem"}))}},exports.initiateTrickplay=function(e){return D.apply(this,arguments)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),t=require("@babel/runtime-corejs3/helpers/classCallCheck"),r=require("@babel/runtime-corejs3/helpers/createClass"),a=require("@babel/runtime-corejs3/helpers/get"),n=require("@babel/runtime-corejs3/helpers/inherits"),o=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),i=require("@babel/runtime-corejs3/helpers/getPrototypeOf");require("core-js/modules/es.number.to-fixed.js"),require("core-js/modules/es.number.constructor.js");var s=require("video.js");function l(t){var r=u();return function(){var a,n=i(t);if(r){var s=i(this).constructor;a=e(n,arguments,s)}else a=n.apply(this,arguments);return o(this,a)}}function u(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}var c={startTime:0,timeLive:3600},p=0,h=c.timeLive,d=s.getComponent("Button"),m=s.getComponent("Component"),v=s.getComponent("ProgressControl"),f=v.getComponent("SeekBar"),_=v.getComponent("PlayProgressBar"),b=v.getComponent("LoadProgressBar"),y=s.getComponent("MouseTimeDisplay");b.prototype.update=function(e){var t=this.player_.buffered(),r=this.player_.duration(),a=this.player_.bufferedEnd(),n=this.partEls_,o=function(e,t){var r=e/t||0;return 100*(r>=1?1:r)+"%"};0!==o(a,r)&&(this.el_.style.width=o(a,r));for(var i=0;i<t.length;i++){var s=t.start(i),l=t.end(i),u=n[i];u||(u=this.el_.appendChild(document.createElement("div")),n[i]=u),0!==o(s,a)&&(u.style.left=o(s,a)),0!==o(l-s,a)&&(u.style.width=o(l-s,a))}for(var c=n.length;c>t.length;c--)this.el_.removeChild(n[c-1]);n.length=t.length},f.prototype.update_=function(e,t){var r=this.player_.duration(),a=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),r!==Number.POSITIVE_INFINITY&&this.el_.setAttribute("aria-valuetext","-".concat(s.formatTime(r-a,r))),this.bar.update(s.dom.getBoundingClientRect(this.el_),t)},f.prototype.handleMouseMove=function(e){var t=1-this.calculateDistance(e),r=this.player_.seekable().end(0)-t*h;r===this.player_.duration()&&(r-=.1),this.player_.currentTime(r),this.update()},_.prototype.update=function(e,t){var r=this,a=this.player_.duration();this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var n=r.player_.scrubbing()?r.player_.getCache().currentTime:r.player_.currentTime(),o=s.formatTime(a-n,a);0!==t&&a!==Number.POSITIVE_INFINITY&&r.getChild("timeTooltip").update(e,t,"-".concat(o))}))},y.prototype.update=function(e,t){var r=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var a=s.formatTime(h-t*h,h);r.el_.style.left="".concat(e.width*t,"px"),0!==t&&r.player_.duration()!==Number.POSITIVE_INFINITY&&r.getChild("timeTooltip").update(e,t,"-".concat(a))}))};var C=function(e){var t=this;e||(e=c),this.on("timeupdate",(function(e){var r,a;(a=(r=t).seekable())&&a.length&&(a.end(0)-r.currentTime()<20?r.controlBar.liveButton.addClass("onair"):r.controlBar.liveButton.removeClass("onair"),r.duration(r.seekable().end(0)),p||(p=h=r.seekable().end(0)))})),this.on("pause",(function(e){t.controlBar.liveButton.removeClass("onair")})),this.ready((function(){var r;r=t,s.mergeOptions(c,e),r.addClass("vjs-dvr-seekbar"),r.controlBar.addClass("vjs-dvr-control-bar"),r.controlBar.progressControl.seekBar.__proto__.__proto__.update=function(){if(this.el_){var e;e="VolumeBar"===this.name_?this.getPercent():1-(this.player_.duration()-this.player_.currentTime())/h;var t=this.bar;if(t){("number"!=typeof e||e!=e||e<0||e===1/0)&&(e=0),e>1&&(e=1);var r=(100*e).toFixed(2)+"%",a=t.el().style;return 0!==e&&(this.vertical()?a.height=r:a.width=r),e}}},r.controlBar.progressControl&&r.controlBar.progressControl.addClass("vjs-dvr-progress-control"),r.controlBar.liveButton=r.controlBar.addChild("liveButton"),r.controlBar.el().insertBefore(r.controlBar.liveButton.el(),r.controlBar.progressControl.el())}))},g=function(e){n(s,d);var o=l(s);function s(e,r){var a;return t(this,s),(a=o.call(this,e,r)).el().innerHTML='<span class="liveCircle"></span><span class="liveText">LIVE</span>',e.paused()||a.addClass("onair"),a}return r(s,[{key:"buildCSSClass",value:function(){return"vjs-live-button ".concat(a(i(s.prototype),"buildCSSClass",this).call(this))}},{key:"handleClick",value:function(e){var t=this.player_.seekable().end(0);this.player_.currentTime(t),this.player_.play()}}]),s}();m.registerComponent("LiveButton",g),(s.registerPlugin||s.plugin)("dvrSeekbar",C),exports.default=C;
|
package/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("video.js/dist/video-js.min.css"),require("./generic-d5a358b3.js"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js");var e=require("./index-bab9264c.js");require("./util-ef2cd61e.js"),require("./captions-07bd3069.js"),require("./renditions-fed22c12.js"),require("./resolution-e46c9615.js"),require("./skin-3544db58.js"),require("./browser-77c57718.js"),require("./localisation-56e0a999.js"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("./icons-1a3febef.js"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),module.exports=e.VLPlayerCore;
|
|
1
|
+
"use strict";require("video.js/dist/video-js.min.css");var e=require("./generic-19e39f29.js"),n=require("@babel/runtime-corejs3/helpers/asyncToGenerator"),r=require("@babel/runtime-corejs3/regenerator"),t=require("@babel/runtime-corejs3/core-js-stable/promise"),i=require("@babel/runtime-corejs3/core-js-stable/object/assign"),o=require("video.js"),l=require("@babel/runtime-corejs3/core-js-stable/instance/concat"),a=require("./util-d989f91c.js"),s=require("./captions-1a203000.js"),u=require("./renditions-44a16b5d.js"),d=require("./resolution-185c674c.js"),c=require("./skin-bfb9c959.js"),v=require("./browser-2df57579.js"),m=require("@babel/runtime-corejs3/core-js-stable/parse-float"),p=require("@babel/runtime-corejs3/core-js-stable/parse-int"),f=require("./localisation-56e0a999.js"),y=require("@babel/runtime-corejs3/core-js-stable/instance/includes");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/esnext.promise.all-settled.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/web.dom-collections.iterator.js");var g=require("@babel/runtime-corejs3/helpers/defineProperty");require("core-js/modules/es.regexp.exec.js");var b=require("@babel/runtime-corejs3/core-js-stable/instance/filter");require("core-js/modules/es.array.join.js"),require("core-js/modules/es.regexp.to-string.js");var h=require("@babel/runtime-corejs3/core-js-stable/set"),j=require("@babel/runtime-corejs3/core-js-stable/instance/map");require("core-js/modules/es.number.to-fixed.js");var w=require("@babel/runtime-corejs3/core-js-stable/set-timeout"),k=require("@babel/runtime-corejs3/core-js-stable/instance/reduce"),S=require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),T=require("@babel/runtime-corejs3/core-js-stable/json/stringify"),I=require("@babel/runtime-corejs3/core-js-stable/array/is-array"),q=require("@babel/runtime-corejs3/helpers/typeof"),x=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),C=require("@babel/runtime-corejs3/core-js-stable/object/keys");require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("axios"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.copy-within.js"),require("core-js/modules/es.typed-array.every.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.filter.js"),require("core-js/modules/es.typed-array.find.js"),require("core-js/modules/es.typed-array.find-index.js"),require("core-js/modules/es.typed-array.for-each.js"),require("core-js/modules/es.typed-array.includes.js"),require("core-js/modules/es.typed-array.index-of.js"),require("core-js/modules/es.typed-array.iterator.js"),require("core-js/modules/es.typed-array.join.js"),require("core-js/modules/es.typed-array.last-index-of.js"),require("core-js/modules/es.typed-array.map.js"),require("core-js/modules/es.typed-array.reduce.js"),require("core-js/modules/es.typed-array.reduce-right.js"),require("core-js/modules/es.typed-array.reverse.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.slice.js"),require("core-js/modules/es.typed-array.some.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.subarray.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.typed-array.to-string.js"),require("core-js/modules/es.string.replace.js"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("@babel/runtime-corejs3/core-js-stable/instance/slice"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.function.name.js"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("core-js/modules/es.string.match.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval"),require("@babel/runtime-corejs3/core-js-stable/instance/sort"),require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),require("@babel/runtime-corejs3/helpers/classCallCheck"),require("@babel/runtime-corejs3/helpers/createClass"),require("@babel/runtime-corejs3/helpers/inherits"),require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),require("@babel/runtime-corejs3/helpers/getPrototypeOf");var E=function(e){return new t((function(n,r){if(D(e))r("".concat(e," is alread initialised"));else{var t=document.createElement("script");t.async=!0,t.src=e,t.onload=function(){n()},t.onerror=function(n){var t;r(l(t="Error while loading script ".concat(e," : ")).call(t,n))},document.head.appendChild(t)}}))},D=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0},P=function(e,n,r){var t=c.getPlayer(e);if(t)if(n>=0&&n<=100){t.muted()&&t.muted(!1);var i=m(n)/100;t.volume(i),r&&r({status:!0,msg:"Volume set to ".concat(n,"%")})}else r&&r({status:!1,msg:"Please enter a valid volume percentage (0 ≥ V ≤ 100)"});else r({status:!1,msg:"Cannot find player with id: '".concat(e,"'")})},R=function(e){var n=c.getPlayer(e);return n?p(100*n.volume())+"%":"Cannot find player with id: '".concat(e,"'")},N=function(){var e=n(r.mark((function e(n){var t,i,l,a,s;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=c.getPlayer(null==n?void 0:n.playerId),null!=n&&null!==(t=n.series)&&void 0!==t&&t.enable||null==n||!n.chromecastReceiverId){e.next=22;break}return e.next=4,import("@silvermine/videojs-chromecast");case 4:return a=e.sent,e.prev=5,e.next=8,E("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1");case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.log("Error",e.t0);case 13:return e.prev=13,a.default(o),e.finish(13);case 16:(s=o.getTech("chromecast"))&&!s.prototype.seeking&&(s.prototype.seeking=function(){}),null!==(l=window)&&void 0!==l&&l.cast?null==i||i.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}):window.__onGCastApiAvailable=function(){null==i||i.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0})},e.next=23;break;case 22:console.log("Chromecast plugin is not available");case 23:null!=n&&n.airplay&&"Safari"==v.detectBrowser()?null==i||i.airPlay({addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5}):console.log("AirPlay plugin is not available");case 24:case"end":return e.stop()}}),e,null,[[5,10,13,16]])})));return function(n){return e.apply(this,arguments)}}(),V=function(e,n){var r=c.getPlayer(e);r&&n&&r.controlBar&&r.controlBar.progressControl.seekBar.on("click",(function(n){var r,t,i,l,a,s=this.el(),u=o.dom.getPointerPosition(s,n).x;o.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var d=window.cast&&window.cast.framework&&window.cast.framework.CastSession,c=null===(r=window)||void 0===r||null===(t=r.cast)||void 0===t||null===(i=t.framework)||void 0===i||null===(l=i.CastContext)||void 0===l||null===(a=l.getInstance())||void 0===a?void 0:a.S;if(console.log(d),d&&"CONNECTED"===c){window.cast.framework.RemotePlayer.canSeek=!0;var v=new window.cast.framework.RemotePlayerController(window.cast.framework.RemotePlayer),m=v.h.media[0].liveSeekableRange.end;v.getSeekPosition(),window.cast.framework.RemotePlayer.currentTime=m*u,v.seek()}}))};var A=function(){var e=n(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.all([import("videojs-contrib-ads"),import("ima"),E("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)}}(),L=function(){var e=n(r.mark((function e(){return r.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){o.getPlugin("eme")||o.registerPlugin("eme",e.default)}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_=function(){var e=n(r.mark((function e(){var n;return r.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(o),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)}}(),H=function(){var e=n(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.resolve().then((function(){return require("./index-9210aba0.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)}}(),O=function(){var e=n(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.resolve().then((function(){return require("./videojs_contrib_dash-b5187686.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)}}(),M=Object.freeze({__proto__:null,importChromecast:function(){import("@silvermine/videojs-chromecast").then((function(e){E("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1").then((function(){e.default(o)})).catch((function(e){console.log(e)}))}))},importAirplay:function(){import("@silvermine/videojs-airplay").then((function(e){e.default(o)}))},loadAdsLibrary:A,loadEMELibrary:L,loadMuxPlugin:_,loadDvrSeekbar:H,loadContribDash:O});function B(e){return U.apply(this,arguments)}function U(){return(U=n(r.mark((function e(n){var t;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(null==n?void 0:n.airplay)||!1,e.next=3,A();case 3:t&&"Safari"==v.detectBrowser()&&Promise.resolve().then((function(){return M})).then((function(e){e.importAirplay()}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e,n){return W.apply(this,arguments)}function W(){return(W=n(r.mark((function e(n,i){var o,l,a,s,u,d,c,m,p;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d=(null==i?void 0:i.contentType)||"video",c=null==i||null===(o=i[d])||void 0===o?void 0:o.drmEnabled,null==i||null===(l=i[d])||void 0===l||null===(a=l.liveDetails)||void 0===a||a.isDvrEnabled,null==n||n.showPositiveSeekbar,m=(null==i||null===(s=i.video)||void 0===s?void 0:s.isSSAIEnabled)||!1,"Chrome"==v.detectBrowser()&&(m||null===(u=["dirtvision"])||void 0===u||y(u).call(u,null==i?void 0:i.siteName)),e.prev=6,e.next=9,t.allSettled([c?"Safari"==v.detectBrowser()?L():"caliente"!=(null===(p=window)||void 0===p?void 0:p.siteName)?O():L():null,N(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]])})))).apply(this,arguments)}var z=new h,G=null,K=function(n,r,t){var o,l,a,s,u,d,c,v={},m=(null==n?void 0:n.contentType)||"video";v["c3.cm.id"]=(null===(o=n[m])||void 0===o?void 0:o.id)||"Null",v["c3.cm.contentType"]=ee(n),v[null==t||null===(l=t.Constants)||void 0===l?void 0:l.IS_LIVE]=!(null==n||!n.linearchannel),v[null==t||null===(a=t.Constants)||void 0===a?void 0:a.STREAM_URL]=r.currentSrc(),v[null==t||null===(s=t.Constants)||void 0===s?void 0:s.VIEWER_ID]="undefined"===e.getUserId()?"NULL":e.getUserId(),v["c3.cm.categoryType"]=Q(n),v["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"}}(),v.DRMEnabled=(null===(u=n[m])||void 0===u?void 0:u.drmEnabled)||"None",v.DAIStream=null!==(d=n[m])&&void 0!==d&&null!==(c=d.gist)&&void 0!==c&&c.isSSAIEnabled?"YES":"NO",v[t.Constants.DEFAULT_RESOURCE]="AKAMAI",v["c3.cm.brand"]="NULL",v.CDVREnabled=Z(n),v["c3.cm.genreList"]=X(n),v["c3.cm.genre"]=J(n),v["c3.cm.channel"]=Y(n);var p=re(e.getCurrentSeries(),n);return v=i({},v,p)},J=function(e){var n,r,t,i=(null==e?void 0:e.contentType)||"video";return(null==e||null===(n=e[i])||void 0===n||null===(r=n.gist)||void 0===r||null===(t=r.primaryCategory)||void 0===t?void 0:t.title)||"Null"},X=function(e){var n,r=(null==e?void 0:e.contentType)||"video",t=(null==e||null===(n=e[r])||void 0===n?void 0:n.categories)||[];return j(t).call(t,(function(e){return null==e?void 0:e.title})).join(", ")||"Null"},Y=function(e){var n,r,t=(null==e?void 0:e.contentType)||"video";return"video"===t?"VOD":(null==e||null===(n=e[t])||void 0===n||null===(r=n.channels[0])||void 0===r?void 0:r.title)||"NULL"},Q=function(e){return(null==e?void 0:e.contentType)||"null"},Z=function(e){var n,r,t=(null==e?void 0:e.contentType)||"video",i=(null==e||null===(n=e[t])||void 0===n||null===(r=n.liveDetails)||void 0===r?void 0:r.isDvrEnabled)||!1;return i?"YES":"NO"},$=function(e,n){var r,t,i=(n||{}).epg;if(i&&null!=i&&i.enable&&null!=i&&i.programTitle)return i.programTitle;var o=(null==e?void 0:e.contentType)||"video",l=(null==e||null===(r=e[o])||void 0===r||null===(t=r.gist)||void 0===t?void 0:t.title)||"Null";return"".concat(l)},ee=function(e){return"linearchannel"===((null==e?void 0:e.contentType)||"video")?"Live":"VOD"};var ne,re=function(n,r){var t,i,o,l,a,s={"c3.cm.seriesName":"Null","c3.cm.seasonNumber":"Null","c3.cm.showTitle":"Null","c3.cm.episodeNumber":"Null"};if(!n||!r||null!=r&&r.linearchannel)return s;var u=e.getSeasonNumber(),d=e.getEpisodeNumber();return s["c3.cm.seriesName"]=(null==r||null===(t=r.video)||void 0===t||null===(i=t.series)||void 0===i?void 0:i.title)||"Null",s["c3.cm.seasonNumber"]=(null==u?void 0:u.toString())||"Null",s["c3.cm.showTitle"]=(null==n||null===(o=n[u-1])||void 0===o||null===(l=o.episodes)||void 0===l||null===(a=l[d-1])||void 0===a?void 0:a.title)||"Null",s["c3.cm.episodeNumber"]=(null==d?void 0:d.toString())||"Null",s},te=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"}},ie=function(e){switch(e){case"application/x-mpegURL":case"application/vnd.apple.mpegurl":return"HLS";case"application/dash+xml":return"DASH";default:return"Unknown"}},oe=function(){var t=n(r.mark((function n(t,i){var o,l,a,s,u,d,v,m,p,f;return r.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=(null==i?void 0:i.convivaConfig)||{},l=o.trackConvivaPlayerEvent,a=o.paymentHandler,s=o.tveProvider,u=o.enable,d=o.appName,v=(i||{}).token,u){n.next=4;break}return n.abrupt("return");case 4:if(m=c.getPlayer(t),"function"==typeof(p=l)){n.next=8;break}return n.abrupt("return");case 8:return n.next=10,p("getConvivaObject");case 10:if(f=n.sent){n.next=13;break}return n.abrupt("return");case 13:m.ready((function(){var e=m.tech(!0),n=!1;e.on("keysessioncreated",(function(e){n=!0;var r=e.target;if(r&&r.keySystem){var t=te(r.keySystem);p("contentInfo",{DRMEnabled:t})}else p("contentInfo",{DRMEnabled:"None"})})),n||p("contentInfo",{DRMEnabled:"None"})})),m.on("loadstart",(function(){var n,r;G&&G!==m.currentSrc()&&p("playbackEnded"),p("setPlayer",m),z.clear(),G=m.currentSrc();var t=ie(m.currentType()),o=e.getCurrentVideo(),l=K(o,m,f);l[null==f||null===(n=f.Constants)||void 0===n?void 0:n.PLAYER_NAME]=d||"WEB",l[null==f||null===(r=f.Constants)||void 0===r?void 0:r.ASSET_NAME]=$(o,i),l.authToken=v||"NULL",l.streamType=t,l.D2CType=a||"NONE",l.subscriberType=s||(a?"D2C":"FREE"),l["c3.cm.affiliate"]=s||"NULL",p("contentInfo",l)})),m.on("loadedmetadata",(function(){var e,n=m.videoHeight();e=n>=2160?"4K":n>=1440?"1440p":n>=1080?"1080p":n>=720?"720p":n>=480?"480p":"".concat(n,"p"),p("contentInfo",{screenResolution:e})})),m.on("play",(function(){z.has(m.currentSrc())||(z.add(m.currentSrc()),p("playbackStarted",null))})),m.on("ended",(function(){z.has(m.currentSrc())&&z.delete(m.currentSrc()),p("playbackEnded")})),m.on("ads-loader",(function(e){e&&null!=e&&e.adsLoader&&p("initAdSensor",{player:m,adsLoader:null==e?void 0:e.adsLoader})})),m.on("dispose",(function(){null==z||z.clear(),p("playbackEnded")}));case 20:case"end":return n.stop()}}),n)})));return function(e,n){return t.apply(this,arguments)}}(),le=function(e,n){var r=null==n?void 0:n.skin;"default"==r?Promise.resolve().then((function(){return require("./skin-26d6279b.js")})).then((function(r){r.initialiseSkin(e,n)})):"carousel"==r?Promise.resolve().then((function(){return require("./skin-64423c1c.js")})).then((function(n){n.initaliseSkin(e)})):"defaultV2"==r?Promise.resolve().then((function(){return require("./skin-3bc3d9ac.js")})).then((function(r){r.initialiseSkin(e,n)})):"multiplayer"==r?Promise.resolve().then((function(){return require("./skin-94664ea9.js")})).then((function(r){r.initialiseSkin(e,n)})):"minimalist"==r?Promise.resolve().then((function(){return require("./skin-cedec766.js")})).then((function(r){r.initaliseSkin(e,n)})):"VL_ONE"==r&&Promise.resolve().then((function(){return require("./skin-eae9862c.js")})).then((function(r){r.initialiseSkin(e,n)}))},ae=[],se=0,ue=null;function de(n,r,t){var o,l,a,s,u,d=arguments.length>3&&void 0!==arguments[3]&&arguments[3];null==r||null===(o=r.watchHistory)||void 0===o||o.apiVersion;var c=null==r||null===(l=r.watchHistory)||void 0===l?void 0:l.profileId,v=Math.floor(n.currentTime()),m=Math.floor(n.duration());null==r||null===(a=r.watchHistory)||void 0===a||a.xapiKey;var p=(null==r||null===(s=r.video)||void 0===s?void 0:s.originalObjectId)||null,f=(null==r||null===(u=r.watchHistory)||void 0===u?void 0:u.saveOffline)||!1,y=Math.floor(n.currentTime()),g=d?100:Math.floor(v/m*100),b={};f?ve(b={completed:d,watchedTime:y,watchedPercentage:g},c,r.siteOwner):(b=i({videoId:ne,watchedTime:y,watchedPercentage:g,doneWatching:d,profileId:c},ue&&{seriesId:ue},p&&{originalObjectId:p}),e.saveWatchHistory(b).then((function(e){})).catch((function(e){}))),se=v+t}function ce(e){var n=[];return e&&(n=JSON.parse(localStorage.getItem("".concat(e))||"[]")),n}function ve(n,r,t){var o,l=r?"watchhistory-data-".concat(r):"watchhistory-data-guest-".concat(t),a=ce(l),s=(new Date).getTime(),u=e.getCurrentVideo(),d=(null==u?void 0:u.video)||{},c=k(o=["id","title","gist","categories","tags","status","publishDate","plans","isVerticalVideo","monetizationBadgeIdentifier","runtime"]).call(o,(function(e,n){return i({},e,g({},n,d[n]))}),{}),v=S(a).call(a,(function(e){var n;return(null==e||null===(n=e.content)||void 0===n?void 0:n.id)===ne}));v<0?a.push(i({content:c},n,{addedDate:s,updateDate:s})):a[v]=i({},a[v],n,{updateDate:s}),localStorage.setItem("".concat(l),T(a))}function me(e,n,r){var t=ce(e?"watchhistory-data-".concat(e):"watchhistory-data-guest-".concat(r)),i=[];return t&&I(t)&&(i=b(t).call(t,(function(e){var r;return(null==e||null===(r=e.content)||void 0===r?void 0:r.id)===n}))),i}var pe=!1,fe=function(n,r){var t,i,o=(null==n?void 0:n.contentType)||"video";if(((null==n||null===(t=n[o])||void 0===t||null===(i=t.streamingInfo)||void 0===i?void 0:i.secondaryVideoAssets)||null)&&!pe){var l=ye(n,"videoAssets","secondaryVideoAssets"),a=e.getSource(l,r);return a&&e.loadVideo(r,a),pe=!0,console.log("switching to secondary source"),!0}return console.log("secondary source is either corrupted / not available"),!1};function ye(e,n,r){if(I(e))return j(e).call(e,(function(e){return ye(e,n,r)}));if(null!==e&&"object"===q(e)){var t,i={};return x(t=C(e)).call(t,(function(t){t===n&&void 0!==e[r]?i[t]=e[r]:t===r&&void 0!==e[n]?i[t]=e[n]:i[t]=ye(e[t],n,r)})),i}return e}var ge,be=function(n,r,t,o){var l,a,u,d,m=o.res,p=o.sres,f=c.getPlayer(n),g=(null==m?void 0:m.contentType)||"video",h=(null==m||null===(l=m[g])||void 0===l||null===(a=l.streamingInfo)||void 0===a?void 0:a.isLiveStream)||!1,k=(null==m||null===(u=m[g])||void 0===u||null===(d=u.liveDetails)||void 0===d?void 0:d.isDvrEnabled)||!1;e.setCurrentVideo(m),f&&(f.on("loadstart",(function(){h?t.resolve({status:!0,msg:"Video Loaded",response:m}):t.resolve(i({status:!0,msg:"Player Initialised"},p?{seriesResponse:p,response:m}:{response:m}))})),f.on("loadeddata",(function(){var t,o,l,a=s.getCaptions(n);if(null==a||j(a).call(a,(function(e){return s.disableCaptions(n,e.id)})),k&&"Safari"===v.detectBrowser())try{var u;null==f||null===(u=f.liveTracker)||void 0===u||u.seekToLiveEdge()}catch(e){console.log("Cannot seek to Live Edge",e)}(null==f||!f.muted())&&P(n,sessionStorage.getItem("volume")||"100");var d=e.getCurrentVideo();if(e.clearError(),null!=r&&r.watchHistory&&null!=r&&null!==(t=r.watchHistory)&&void 0!==t&&t.enable&&(!r.isAnonymousUser||null!=r&&null!==(o=r.watchHistory)&&void 0!==o&&o.saveOffline)){var p,g,b=i({},r,m);!function(e,n,r){var t,i,o;null!=n&&n.series&&null!=n&&null!==(t=n.series)&&void 0!==t&&t.enable&&(ue=null==n||null===(i=n.series)||void 0===i?void 0:i.id),ae=[],se=0,ne=r;var l=(null==n||null===(o=n.watchHistory)||void 0===o?void 0:o.interval)||30,a=c.getPlayer(e);a&&(a.on("timeupdate",(function(){var e=Math.floor(a.currentTime());y(ae).call(ae,se)||(e==se?(ae.push(e),de(a,n,l)):e>se&&(se=e+l))})),a.one("ended",(function(){de(a,n,l,!0)})))}(n,b,null==d||null===(p=d.video)||void 0===p||null===(g=p.gist)||void 0===g?void 0:g.id)}if(null!=r&&null!==(l=r.analytics)&&void 0!==l&&l.muxKey&&null!=f&&f.mux){var h,w,S,T,I,q,x=(null===(h=e.getCurrentVideo())||void 0===h?void 0:h.video)||(null==m?void 0:m.video),C=null==x?void 0:x.gist,E={env_key:null==r||null===(w=r.analytics)||void 0===w?void 0:w.muxKey,player_name:"vl-web-player",player_version:null===(S=window)||void 0===S?void 0:S.vl_player_version,video_id:null==C?void 0:C.id,video_title:null==C?void 0:C.title,video_series:null==x||null===(T=x.series)||void 0===T?void 0:T.title,video_stream_type:null!=x&&null!==(I=x.streamingInfo)&&void 0!==I&&I.isLiveStream?"live":"video",viewer_user_id:null==r||null===(q=r.analytics)||void 0===q?void 0:q.userId};f.mux({debug:!1,data:E})}})),f.textTracks().on("change",(function(e){var n,r=b(n=this.tracks_).call(n,(function(e){if(("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode)return!0}))[0];f.trigger("subtitlechanged",r)})),f.on("subtitlechanged",(function(e,n){var r,t,i,o,l,a,s,u,d,c,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,m=null===(r=window)||void 0===r||null===(t=r.cast)||void 0===t||null===(i=t.framework)||void 0===i||null===(o=i.CastContext)||void 0===o||null===(l=o.getInstance())||void 0===l?void 0:l.S,p=null===(a=window)||void 0===a||null===(s=a.cast)||void 0===s||null===(u=s.framework)||void 0===u||null===(d=u.CastContext)||void 0===d||null===(c=d.getInstance())||void 0===c?void 0:c.getCurrentSession();if(v&&"CONNECTED"===m){var f,y=p.getMediaSession(),g=y.media.tracks,h=b(g).call(g,(function(e){return"TEXT"==e.type}));f=n?new chrome.cast.media.EditTracksInfoRequest([h[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),y.editTracksInfo(f)}})),f.tech_.on("retryplaylist",(function(){h&&fe(m,n)})),f.on("error",(function(){var r,i;(console.log("ERROR",f.error(),f.error().code),4===f.error().code&&h)?fe(m,n):(e.handleError(n,(null==f||null===(r=f.error())||void 0===r?void 0:r.message)||"Some error occured"),t.reject({status:!1,msg:(null==f||null===(i=f.error())||void 0===i?void 0:i.message)||"Some error occured",response:m}))})),f.one("play",(function(){var n;if(null!=r&&null!==(n=r.series)&&void 0!==n&&n.enable){var t,i,o,l=null===(t=e.getCurrentVideo())||void 0===t||null===(i=t.video)||void 0===i||null===(o=i.gist)||void 0===o?void 0:o.id,a=e.getSeriesWatchMap(),s=(null==a?void 0:a.get(l))||{t:0,p:0},u=s.t,d=s.p;u&&d<95&&w((function(){f.currentTime(u)}),0)}else null!=r&&r.watchHistoryResumeTime&&(null==r?void 0:r.watchedPercentage)<95&&w((function(){f.currentTime(null==r?void 0:r.watchHistoryResumeTime)}),0);if(null!=f&&f.dvrSeekbar)try{f.dvrSeekbar()}catch(e){console.error("Error while initilizing dvr seekbar")}})),f.on("volumechange",(function(){var e=100*f.volume().toFixed(2);f.muted()?sessionStorage.setItem("volume",0):sessionStorage.setItem("volume",e)})),f.on("chromecastDisconnected",(function(){if(h){f.currentSource();for(var e=f.textTracks(),n=e.length-1;n>=0;n--)f.removeRemoteTextTrack(e[n])}})))},he=function(t,l,a,u){var d,m,p,f,h,j,w,k,S,T,I,q,x,C,E,D,P,R,N,A,L,_,H,O,M,B,U,W,z,G,K,J,X=l.res,Y=void 0===X?null:X,Q=l.sres,Z=void 0===Q?null:Q,$=null!=a&&a.chromecastReceiverId?["chromecast","html5"]:["html5"],ee=(null===(d=Y)||void 0===d?void 0:d.contentType)||"video",ne=c.impolicy16x9(null===(m=Y)||void 0===m||null===(p=m[ee])||void 0===p||null===(f=p.gist)||void 0===f?void 0:f.videoImageUrl)||c.impolicy16x9(null===(h=Y)||void 0===h||null===(j=h[ee])||void 0===j||null===(w=j.gist)||void 0===w||null===(k=w.imageGist)||void 0===k?void 0:k.r16x9),re=(null===(S=Y)||void 0===S||null===(T=S[ee])||void 0===T||null===(I=T.liveDetails)||void 0===I?void 0:I.isDvrEnabled)||!1,te=(null===(q=Y)||void 0===q||null===(x=q[ee])||void 0===x||null===(C=x.streamingInfo)||void 0===C?void 0:C.isLiveStreafm)||!1,ie=(null===(E=Y)||void 0===E||null===(D=E.ads)||void 0===D||null===(P=D.preRoll)||void 0===P||null===(R=P.adTags)||void 0===R||null===(N=R.web)||void 0===N?void 0:N.active)&&(null===(A=Y)||void 0===A||null===(L=A.ads)||void 0===L||null===(_=L.preRoll)||void 0===_||null===(H=_.adTags)||void 0===H||null===(O=H.web)||void 0===O?void 0:O.url),ae=(null===(M=Y=i({},Y,{audioAssetSource:null==a?void 0:a.audioAssetSource}))||void 0===M||null===(B=M.video)||void 0===B?void 0:B.isSSAIEnabled)||!1;"Chrome"==v.detectBrowser()&&(ae||null===(U=["dirtvision"])||void 0===U||y(U).call(U,null===(W=Y)||void 0===W?void 0:W.siteName));var se=(null==a?void 0:a.latency)||6,ue=(J={enableSmoothSeeking:!0,controls:0!=(null==a?void 0:a.controls),playsinline:!0,fluid:!0,aspectRatio:"16:9",muted:(null==a?void 0:a.muted)||!1,autoplay:(null==a?void 0:a.autoplay)||!1,controlBar:{volumePanel:{inline:!1},fullscreenToggle:!0,audioTrackButton:!0,pictureInPictureToggle:!1},muteToggle:"multiplayer"==a.skin,liveui:re},g(J,"autoplay",null==a?void 0:a.autoplay),g(J,"normalizeAutoplay",(null==a?void 0:a.autoplay)&&!ie),g(J,"loop",(null==a?void 0:a.loop)||!1),g(J,"audioPosterMode",null==a?void 0:a.audioPosterMode),g(J,"html5",i({dash:i({},!o.browser.IS_SAFARI&&{useTTML:!0},{updateSettings:{streaming:{delay:{liveDelay:se},text:{defaultEnabled:!1},liveCatchup:{maxDrift:0,playbackRate:{min:-.1,max:.1}},abr:{useDefaultABRRules:!0,additionalAbrRules:{insufficientBufferRule:!0,switchHistoryRule:!0,droppedFramesRule:!0,abandonRequestsRule:!0},autoSwitchBitrate:{video:!0,audio:!0}}}}}),vhs:i({liveRangeSafeTimeDelta:se,useDevicePixelRatio:!0,experimentalLLHLS:(null==a?void 0:a.lowLatency)||!1,limitRenditionByPlayerDimensions:!1,useNetworkInformationApi:!0},(null==a||null===(z=a.customData)||void 0===z?void 0:z.overrideNative)&&{overrideNative:!0},{enableLowInitialPlaylist:!0}),nativeTextTracks:"Safari"==v.detectBrowser()},0==(null==a||null===(G=a.customData)||void 0===G?void 0:G.nativeAudioTracks)&&{nativeAudioTracks:!1},0==(null==a||null===(K=a.customData)||void 0===K?void 0:K.nativeVideoTracks)&&{nativeVideoTracks:!1})),g(J,"poster",ne),g(J,"techOrder",$),g(J,"chromecast",{requestCustomDataFn:function(e){var n=c.getPlayer(t),r=(null==n?void 0:n.textTracksJson_)||n.textTracks().tracks_,i=b(r).call(r,(function(e){return"captions"==e.kind||"subtitles"==e.kind}));return function(e,n,r){var t,i,o,l,a,s,u,d,c,v,m=(null==e?void 0:e.contentType)||"video",p={};if(e&&null!=e&&e[m]&&null!=e&&e[m].drmEnabled){var f,y,g,b,h,j,w,k;p.isDrmEnabled=!0;var S=(null==n||null===(f=n.keySystems)||void 0===f?void 0:f["com.widevine.alpha"])||null,T=(null==S?void 0:S.url)||(null==n||null===(y=n.keySystemOptions)||void 0===y||null===(g=y[0])||void 0===g||null===(b=g.options)||void 0===b?void 0:b.serverURL);p.licenseUrl=T;var I=(null==S?void 0:S.licenseHeaders["X-AxDRM-Message"])||(null==n||null===(h=n.keySystemOptions)||void 0===h||null===(j=h[0])||void 0===j||null===(w=j.options)||void 0===w||null===(k=w.httpRequestHeaders)||void 0===k?void 0:k["X-AxDRM-Message"]);p.licenseToken=I}var q=(null==e||null===(t=e[m])||void 0===t||null===(i=t.gist)||void 0===i?void 0:i.contentType)||"VIDEO";p.contentType=q;var x=null==e||null===(o=e[m])||void 0===o||null===(l=o.gist)||void 0===l?void 0:l.runtime;p.duration=x;var C=null==e||null===(a=e[m])||void 0===a||null===(s=a.gist)||void 0===s?void 0:s.title;p.mediaTitle=C;var E=null==e||null===(u=e[m])||void 0===u||null===(d=u.gist)||void 0===d?void 0:d.videoImageUrl;return p.mediaImage=E,p.subTitles=r,p.DVR=(null==e||null===(c=e[m])||void 0===c||null===(v=c.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(p),p}(Y,e,i)},modifyLoadRequestFn:function(e){var n,r,i,o,l,a=c.getPlayer(t),s=(null==a?void 0:a.currentSource())||{};!(null===(n=Y)||void 0===n||null===(r=n[ee])||void 0===r||null===(i=r.streamingInfo)||void 0===i||null===(o=i.videoAssets)||void 0===o?void 0:o.is4K)&&1||null!=s&&s.src&&null!=s&&null!==(l=s.src)&&void 0!==l&&y(l).call(l,".m3u8")&&(e.media.hlsSegmentFormat="fmp4",e.media.hlsVideoSegmentFormat="fmp4");return e}}),J);if(!o.getPlayers()[t]){ue.spatialNavigation={enabled:!0,horizontalSeek:!0};var de=o(t,ue,function(){var l=n(r.mark((function n(){var l,d,c,v,m,p,f,y,g,h,j,w,k,S,T,I,q,x,C,E;return r.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return de.spatialNavigation.start(),console.log(de),console.log(o.VERSION),console.log(o.getPlugins()),n.next=6,F(a,Y);case 6:w=null===(l=Y)||void 0===l||null===(d=l[ee])||void 0===d||null===(c=d.liveDetails)||void 0===c?void 0:c.startOverTime,te&&u.resolve(i({status:!0,msg:"Player Initialised"},Z?{seriesResponse:Z,response:Y}:{response:Y})),e.inititateBeacon(t,null==a?void 0:a.analyticsCb),oe(t,a),/Android/i.test(navigator.userAgent)&&(o.options.vhs.overrideNative=!0),re&&V(t,w),!ie||null!=a&&null!==(v=a.customData)&&void 0!==v&&v.disableAds||e.initialiseAdvertisement(t,ie,Y),k=e.getSource(Y,t),console.log(k),null!=a&&a.nearestClusterUrl&&(k=e.getUpdatedClusterSource(k,a.nearestClusterUrl)),k?e.loadVideo(t,k):(u.reject({status:!1,msg:"Incompatible / Missing Source",response:Y}),e.handleError(t,"Incompatible / Missing Source")),((null===(m=Y)||void 0===m||null===(p=m[ee])||void 0===p||null===(f=p.contentDetails)||void 0===f||null===(y=f.closedCaptions)||void 0===y?void 0:y.length)>0||(null===(g=Y)||void 0===g||null===(h=g[ee])||void 0===h||null===(j=h.closedCaptions)||void 0===j?void 0:j.length)>0)&&(E=(null===(T=Y)||void 0===T||null===(I=T[ee])||void 0===I||null===(q=I.contentDetails)||void 0===q?void 0:q.closedCaptions)||(null===(x=Y)||void 0===x||null===(C=x[ee])||void 0===C?void 0:C.closedCaptions),S=b(E).call(E,(function(e){return"VTT"===e.format})),s.addCaptions(t,S)),null!=a&&a.disableControls?e.disableControls(t):le(t,i({},a,ue,{liveVideo:te,isDvrEnabled:re,res:Y,sres:Z})),be(t,i({},a,ue,{liveVideo:te}),u,{res:Y,sres:Z});case 20:case"end":return n.stop()}}),n)})));return function(){return l.apply(this,arguments)}}())}},je={spinco:"e8f2c1a7-5d94-4a1f-93ea-7c0b9186f1cd"},we=function(e,n){var r=n.resolve,t=n.reject,i=null==e?void 0:e.playerId,o=ke(e);he(i,{res:o},e,{resolve:r,reject:t})},ke=function(n){var r,t,o=null==n?void 0:n.streamingInfo,l=null==n||null===(r=n.streamingInfo)||void 0===r?void 0:r.videoAssets,a=(null==n||null===(t=n.streamingInfo)||void 0===t?void 0:t.isDrmEnabled)||null,s=null==n?void 0:n.token,u=e.getDecodedToken(s),d=null==u?void 0:u.site;return i({id:null==je?void 0:je[d]},!a&&{directPlaybackUrl:null==l?void 0:l.url},{video:{drmEnabled:a,streamingInfo:{videoAssets:{widevine:null==l?void 0:l.widevine,fairPlay:null==l?void 0:l.fairPlay,playReady:null==l?void 0:l.playReady}},liveDetails:{isDvrEnabled:null==o?void 0:o.isDvrEnabled}}})};function Se(e,n){return Te.apply(this,arguments)}function Te(){return(Te=n(r.mark((function n(t,i){var o,l,a,s,u,d;return r.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=i.resolve,l=i.reject,a=null==t?void 0:t.videoId,s=null==t?void 0:t.playerId,u=!(null==t||!t.anonymousId),n.next=6,e.getToken();case 6:d=n.sent,e.getVideoDetails(a,d).then((function(n){var r,i,c,v;window.contentType=null==n||null===(r=n.data)||void 0===r||null===(i=r.video)||void 0===i||null===(c=i.gist)||void 0===c?void 0:c.contentType,e.setCurrentVideo(null==n?void 0:n.data);var m,p=null==n?void 0:n.data;if(null!=t&&t.watchHistory&&null!=t&&null!==(v=t.watchHistory)&&void 0!==v&&v.enable&&!u)if((null===(m=t.watchHistory)||void 0===m?void 0:m.saveOffline)||!1){var f,y,g,b=me((null===(f=t.watchHistory)||void 0===f?void 0:f.profileId)||"",a,null==t?void 0:t.siteOwner);if(b&&b.length)t.watchHistoryResumeTime=(null===(y=b[0])||void 0===y?void 0:y.watchedTime)||null,t.watchedPercentage=(null===(g=b[0])||void 0===g?void 0:g.watchedPercentage)||null;p.contentType="video",he(s,{res:p},t,{resolve:o,reject:l})}else e.getVideoInfo(a,d).then((function(e){var n,r,i,o,l,a;null!==(n=window)&&void 0!==n&&null!==(r=n.watchHistory)&&void 0!==r&&r.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(null==e?void 0:e.data)),t.watchHistoryResumeTime=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedTime)||null,t.watchedPercentage=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedPercentage)||null,p.contentType="video"})).catch((function(e){var n,r,t,i;null!==(n=window)&&void 0!==n&&null!==(r=n.watchHistory)&&void 0!==r&&r.cb&&(null===(t=window)||void 0===t||null===(i=t.watchHistory)||void 0===i||i.cb(e))})).finally((function(){he(s,{res:p},t,{resolve:o,reject:l})}));else he(s,{res:p},t,{resolve:o,reject:l})})).catch((function(n){e.initiateErrorHandling(n,s,l,a)}));case 8:case"end":return n.stop()}}),n)})))).apply(this,arguments)}function Ie(e,n){return qe.apply(this,arguments)}function qe(){return(qe=n(r.mark((function n(t,i){var o,l,a,s,u;return r.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=i.resolve,l=i.reject,n.next=3,e.getToken();case 3:a=n.sent,s=null==t?void 0:t.playerId,u=null==t?void 0:t.epg,e.getLinearChannelDetails(u,a).then((function(e){var n=null==e?void 0:e.data;n.contentType="linearchannel",n.channelId=null==u?void 0:u.channelId,he(s,{res:n},t,{resolve:o,reject:l})})).catch((function(n){e.initiateErrorHandling(n,s,l,videoId)}));case 7:case"end":return n.stop()}}),n)})))).apply(this,arguments)}function xe(e,n){return Ce.apply(this,arguments)}function Ce(){return(Ce=n(r.mark((function n(t,i){var o,l,a,s,u,d,c;return r.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return l=i.resolve,a=i.reject,n.next=3,e.getToken();case 3:s=n.sent,u=null==t?void 0:t.playerId,d=sessionStorage.getItem("season-idx")||0,e.seasonIdxManager.set(p(d)),c=null==t||null===(o=t.series)||void 0===o?void 0:o.id,e.getSeriesDetails(c,s).then((function(n){var r,i,o,d=n.data,v=n.data.seasons;e.setCurrentSeries(v);var m=videoId||(null==v||null===(r=v[0])||void 0===r||null===(i=r.episodes)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.id);e.createSeriesWatchMap(c,s),e.getVideoDetails(m,s).then((function(n){var r,i,o;window.contentType=null==n||null===(r=n.data)||void 0===r||null===(i=r.video)||void 0===i||null===(o=i.gist)||void 0===o?void 0:o.contentType,e.setCurrentVideo(n.data),he(u,{res:null==n?void 0:n.data,sres:d},t,{resolve:l,reject:a})})).catch((function(n){e.initiateErrorHandling(n,u,a,videoId)}))})).catch((function(n){e.initiateErrorHandling(n,u,a)}));case 9:case"end":return n.stop()}}),n)})))).apply(this,arguments)}module.exports=function(){return{loadVideoInstantly:e.loadVideoInstantly,onTimeUpdate:a.onTimeUpdate,getVideoDuration:a.getVideoDuration,onVideoEnded:a.onVideoEnded,init:function(o){return console.log("%c VIDEOJS-8 ","background: #bdf369; color: #000"),new t(function(){var t=n(r.mark((function n(t,l){var a,s,u,d,v,m,p,y,g,b,h,j,w,k,S,T,I,q,x,C,D,P,R;return r.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.isPlayerInitialised(null==o?void 0:o.playerId)){n.next=2;break}return n.abrupt("return");case 2:if(h=(null==o?void 0:o.videoSourceUrl)||!1,j=null==o?void 0:o.asat,w=(null==o||null===(a=o.epg)||void 0===a?void 0:a.enable)||!1,k=null==o?void 0:o.videoId,S=(null==o||null===(s=o.series)||void 0===s?void 0:s.enable)||!1,T=(null==o?void 0:o.streamingInfo)||!1,window.videoId=k,I=null==o?void 0:o.token,!e.token_authentication_enabled(o)){n.next=17;break}if(sessionStorage.setItem("vlp_token",I),e.refreshTokenManager().set(null==o?void 0:o.refreshToken),I&&!e.isTokenExpired(I)){n.next=16;break}return l({status:!1,msg:"".concat(I?"Token is expired !":"Missing Authorization Token"),response:{token:I}}),n.abrupt("return");case 16:ge=JSON.parse(atob(I.split(".")[1]));case 17:return o.isAnonymousUser=!(null===(u=ge)||void 0===u||!u.anonymousId),o.siteOwner=(null===(d=ge)||void 0===d?void 0:d.site)||null,o.userId=(null===(v=ge)||void 0===v?void 0:v.userId)||null,window.sessionStorage.setItem("uid",null===(m=ge)||void 0===m?void 0:m.userId),window.watchHistory=o.watchHistory||null,q=null==o?void 0:o.playerId,o.chromecastReceiverId=null!=o&&null!==(p=o.series)&&void 0!==p&&p.enable?null:null==o?void 0:o.chromecastReceiverId,x=(null==o||null===(y=o.analytics)||void 0===y?void 0:y.gaId)||null,(C=null==o?void 0:o.errors)&&(window.customErrors=C),window.customData=null==o?void 0:o.customData,f.setLocalisation(null==o||null===(g=o.customData)||void 0===g?void 0:g.localisation),e.baseUrlManager.set(o.apiBaseUrl),null!=o&&o.skin&&!c.isNotAValidSkin(o.skin)||(o.skin="VL_ONE"),n.next=33,B(o);case 33:x&&E("https://www.googletagmanager.com/gtag/js?id=".concat(x)).then((function(){return e.runGtag(x)})).catch((function(e){})),(D=null===(b=document)||void 0===b?void 0:b.getElementById("".concat(q)))&&D.addEventListener("contextmenu",(function(e){return e.preventDefault()})),h?(R={directPlaybackUrl:h,id:P="c09576ca-8202-4e8e-ba1e-06d1ab0ce063"},j?e.getVideoDetails(P,I).then((function(e){var n=(null==e?void 0:e.data)||{};he(q,{res:i({},n,R)},o,{resolve:t,reject:l})})).catch((function(n){e.initiateErrorHandling(n,q,l,P)})):he(q,{res:R},o,{resolve:t,reject:l})):T?we(o,{resolve:t,reject:l}):S?xe(o,{resolve:t,reject:l}):w?Ie(o,{resolve:t,reject:l}):Se(o,{resolve:t,reject:l});case 37:case"end":return n.stop()}}),n)})));return function(e,n){return t.apply(this,arguments)}}())},getRenditions:u.getRenditions,skip:e.skip,getPlayer:c.getPlayer,play:e.play,pause:e.pause,detectBrowser:v.detectBrowser,rewind:e.rewind,loadVideo:e.loadVideo,seekToTimeStamp:a.seekToTimeStamp,isPlayerInitialised:e.isPlayerInitialised,load:e.load,authenticateLC:e.authenticateLC,dispose:e.dispose,enableCaptions:s.enableCaptions,disableCaptions:s.disableCaptions,getCaptions:s.getCaptions,playSelectedResolution:d.playSelectedResolution,getSource:e.getSource,setVolume:P,getVolume:R,disableControls:e.disableControls,setPlaybackSpeed:a.setPlaybackSpeed,getEntitlementData:e.getEntitlementData}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/instance/includes"),r=require("./generic-19e39f29.js"),l=require("./skin-bfb9c959.js");var n,i=(n=!0,{enable:function(){n=!0},disable:function(){n=!1},get enabled(){return n}});exports.initialiseKeyboardEvents=function(n,a){var t,o,c,u=l.getPlayer(n),s=null==u||null===(t=u.controlBar)||void 0===t||null===(o=t.playToggle)||void 0===o?void 0:o.el_,d=document.getElementsByTagName("video")[0];null===(c=document)||void 0===c||c.addEventListener("keydown",(function(l){var t,o;if(i.enabled&&"input"!=l.target.localName){var c=l.key,v=!0===a.liveVideo||!0===a.liveui;switch(e(t=[" ","m","M","f","F","ArrowLeft","ArrowRight"]).call(t,c)&&(l.preventDefault(),null==d||d.focus()),c){case" ":null==s||s.click();break;case"m":case"M":u.muted(!u.muted());break;case"f":case"F":null===(o=document.querySelector(".vjs-fullscreen-control"))||void 0===o||o.click();break;case"ArrowLeft":v&&!1===a.liveui||r.rewind(n,10);break;case"ArrowRight":v||r.skip(n,10)}}}),!0)},exports.keyboardManager=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime-corejs3/core-js-stable/reflect/construct"),r=require("@babel/runtime-corejs3/helpers/classCallCheck"),s=require("@babel/runtime-corejs3/helpers/createClass"),t=require("@babel/runtime-corejs3/helpers/inherits"),o=require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"),a=require("@babel/runtime-corejs3/helpers/getPrototypeOf"),i=require("@babel/runtime-corejs3/core-js-stable/instance/slice");require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js");var n=require("video.js"),c=require("./icons-9e9e6364.js"),l=require("./generic-19e39f29.js"),u=require("./skin-bfb9c959.js");function d(r){var s=m();return function(){var t,i=a(r);if(s){var n=a(this).constructor;t=e(i,arguments,n)}else t=i.apply(this,arguments);return o(this,t)}}function m(){try{var r=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(r){}return(m=function(){return!!r})()}require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/helpers/asyncToGenerator"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("@babel/runtime-corejs3/regenerator"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/filter"),require("@babel/runtime-corejs3/core-js-stable/object/assign"),require("axios"),require("core-js/modules/es.promise.finally.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.typed-array.uint8-array.js"),require("core-js/modules/es.typed-array.copy-within.js"),require("core-js/modules/es.typed-array.every.js"),require("core-js/modules/es.typed-array.fill.js"),require("core-js/modules/es.typed-array.filter.js"),require("core-js/modules/es.typed-array.find.js"),require("core-js/modules/es.typed-array.find-index.js"),require("core-js/modules/es.typed-array.for-each.js"),require("core-js/modules/es.typed-array.includes.js"),require("core-js/modules/es.typed-array.index-of.js"),require("core-js/modules/es.typed-array.iterator.js"),require("core-js/modules/es.typed-array.join.js"),require("core-js/modules/es.typed-array.last-index-of.js"),require("core-js/modules/es.typed-array.map.js"),require("core-js/modules/es.typed-array.reduce.js"),require("core-js/modules/es.typed-array.reduce-right.js"),require("core-js/modules/es.typed-array.reverse.js"),require("core-js/modules/es.typed-array.set.js"),require("core-js/modules/es.typed-array.slice.js"),require("core-js/modules/es.typed-array.some.js"),require("core-js/modules/es.typed-array.sort.js"),require("core-js/modules/es.typed-array.subarray.js"),require("core-js/modules/es.typed-array.to-locale-string.js"),require("core-js/modules/es.typed-array.to-string.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.replace.js"),require("@babel/runtime-corejs3/core-js-stable/instance/includes"),require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),require("./browser-2df57579.js"),require("core-js/modules/es.array.join.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.function.name.js"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/math/trunc"),require("@babel/runtime-corejs3/core-js-stable/instance/find"),require("@babel/runtime-corejs3/core-js-stable/date/now"),require("@babel/runtime-corejs3/core-js-stable/map"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime-corejs3/core-js-stable/instance/find-index"),require("./captions-1a203000.js"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.number.to-fixed.js"),require("@babel/runtime-corejs3/core-js-stable/set-interval");var j=n.getComponent("Component"),p=function(e){t(a,j);var o=d(a);function a(e){var s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,a),(s=o.call(this,e,t)).playerId=t.playerId,s.seriesData=t.sres,s.streams=t.streams,s.currentVideoData=t.res,s.initialiseStructure(),s.loadCSS(),s}return s(a,[{key:"createEl",value:function(){var e=n.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var r=n.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(c.BroadcastIcon())});return n.dom.appendContent(e,r),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./multicamv2-7a86b517.js")})).then((function(e){var r=document.createElement("style");r.id="multicam-v2",r.append("".concat(e.default)),document.head.appendChild(r)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),r=n.dom.createEl("div",{className:"stream-container hidden"});n.dom.$(".stream-selector-icon",this.el()).onclick=function(){var s;null!==(s=r.classList)&&void 0!==s&&s.contains("hidden")?(u.closeOpenDrawers(),r.classList.remove("hidden"),e.classList.add("open"),r.style.right="0px"):(r.classList.add("hidden"),e.classList.remove("open"),r.style.right="-350px")};var s=document.getElementById(this.playerId);if(s){var t=window.getComputedStyle(s,null).getPropertyValue("height"),o=i(t).call(t,0,-2);r.style.height="".concat(o,"px"),s.style.overflow="hidden",n.dom.appendContent(e,r),this.addFunctionality(r)}}},{key:"addFunctionality",value:function(e){var r=this,s=this.el(),t=n.dom.createEl("div",{className:"stream-selector-head"}),o=n.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(c.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px"};for(var a=n.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),d=n.dom.createEl("div",{className:"stream-selector-content"}),m=n.dom.createEl("div",{className:"stream-tray"}),j=function(e){var s,t=n.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(c.SelectedStream())});0==e&&(t.classList.add("selected"),t.style.border="4px solid #D2393B"),t.onclick=function(){for(var s=n.dom.$$(".stream"),o=0;o<s.length;o++)s[o].style.border="none",s[o].classList.remove("selected");t.classList.add("selected"),t.style.border="4px solid #D2393B",l.load(r.playerId,r.streams[e].id).then((function(e){l.play(r.playerId),console.log(e)})).catch((function(e){console.log(e)}))},t.style.backgroundImage="url(".concat(r.streams[e].img,")");var o=document.createElement("img");o.className="stream-thumbnail-image",o.src="".concat(null==r||null===(s=r.streams[e])||void 0===s?void 0:s.img),o.alt="No Thumbnail Available",t.append(o),n.dom.appendContent(m,t),n.dom.appendContent(d,m)},p=0;p<this.streams.length;p++)j(p);n.dom.appendContent(t,o),n.dom.appendContent(t,a),n.dom.appendContent(e,t),n.dom.appendContent(e,d),u.getPlayer(this.playerId).on("fullscreenchange",(function(){var s=window.getComputedStyle(document.getElementById(r.playerId),null).getPropertyValue("height"),t=i(s).call(s,0,-2);e.style.height="".concat(t,"px")}))}}]),a}();exports.default=p;
|