@viewlift/player-backup 2.0.36-backup → 2.0.36-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-5c61b9cb.js +1 -0
- package/cjs/browser-2df57579.js +1 -0
- package/cjs/bundle.css +71 -85
- package/cjs/caption-settings-e95cca56.js +1 -0
- package/cjs/captions-d160e397.js +1 -0
- package/cjs/features-5dabcea5.js +1 -0
- package/cjs/generic-294ac08e.js +1 -0
- package/cjs/icons-9e9e6364.js +1 -0
- package/cjs/index-9210aba0.js +1 -0
- package/cjs/index-991b30f4.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/keyboardShortcuts-b1e158f8.js +1 -0
- package/cjs/multicamv2-141480c4.js +1 -0
- package/cjs/multicamv2-41f9696b.js +1 -0
- package/cjs/nextEpisodeButton-d938133c.js +1 -0
- package/cjs/playlist-350baa1e.js +1 -0
- package/cjs/renditions-24aeeea9.js +1 -0
- package/cjs/resolution-27153a3f.js +1 -0
- package/cjs/series-bb8a15e4.js +1 -0
- package/cjs/series-v2-6e8cbcda.js +1 -0
- package/cjs/series-v2-8756ac9e.js +1 -0
- package/cjs/settings-icon-9b3d3788.js +1 -0
- package/cjs/skin-09425927.js +1 -0
- package/cjs/skin-99eb3c31.js +1 -0
- package/cjs/skin-a4eabf7a.js +1 -0
- package/cjs/skin-b28fa2ec.js +1 -0
- package/cjs/skin-c45387ad.js +1 -0
- package/cjs/skin-c81d6add.js +1 -0
- package/cjs/skin-eac0a0fb.js +1 -0
- package/cjs/util-1f5115f2.js +1 -0
- package/cjs/videoSelector-2c94e849.js +1 -0
- package/cjs/videoSelector-d97ab3f8.js +1 -0
- package/esm/autoNextVideo-56f70964.js +1 -0
- package/esm/browser-000da9e7.js +1 -0
- package/esm/bundle.css +71 -85
- package/esm/caption-settings-088e70f5.js +1 -0
- package/esm/captions-2bcc449f.js +1 -0
- package/esm/features-84286390.js +1 -0
- package/esm/generic-979547e7.js +1 -0
- package/esm/icons-68d3a609.js +1 -0
- package/esm/index-0c0f2cb0.js +1 -0
- package/esm/index-9abdfceb.js +1 -0
- package/esm/index.js +1 -1
- package/esm/keyboardShortcuts-6443082f.js +1 -0
- package/esm/multicamv2-10e8f652.js +1 -0
- package/esm/multicamv2-1dbc6fd3.js +1 -0
- package/esm/nextEpisodeButton-518b5e22.js +1 -0
- package/esm/playlist-603ebd69.js +1 -0
- package/esm/renditions-7f946d48.js +1 -0
- package/esm/resolution-de9dd282.js +1 -0
- package/esm/series-81680634.js +1 -0
- package/esm/series-v2-a5c6cd10.js +1 -0
- package/esm/series-v2-b59f854c.js +1 -0
- package/esm/settings-icon-cccc4c93.js +1 -0
- package/esm/skin-43755201.js +1 -0
- package/esm/skin-9c36b83f.js +1 -0
- package/esm/skin-b9b4babd.js +1 -0
- package/esm/skin-cc14c02c.js +1 -0
- package/esm/skin-d432bcd8.js +1 -0
- package/esm/skin-e12e8689.js +1 -0
- package/esm/skin-e597a51b.js +1 -0
- package/esm/{util-80257541.js → util-1b598a26.js} +1 -1
- package/esm/videoSelector-08019968.js +1 -0
- package/esm/videoSelector-d11c7ff1.js +1 -0
- package/package.json +1 -1
- 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-878478ca.js +0 -1
- package/cjs/index-b93337ae.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-11bb6869.js +0 -1
- package/cjs/skin-1d925909.js +0 -1
- package/cjs/skin-3544db58.js +0 -1
- package/cjs/skin-477469be.js +0 -1
- package/cjs/skin-4dacdda3.js +0 -1
- package/cjs/skin-8bfd28a5.js +0 -1
- package/cjs/skin-9337f348.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-44c8dad7.js +0 -1
- package/esm/index-5d92eaa3.js +0 -1
- package/esm/index-f842f911.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-20b21f43.js +0 -1
- package/esm/skin-58b9263c.js +0 -1
- package/esm/skin-7cb0aacc.js +0 -1
- package/esm/skin-ada9d790.js +0 -1
- package/esm/skin-f66d3f4d.js +0 -1
- package/esm/skin-f76c7dc3.js +0 -1
- package/esm/skin-f790ba88.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
package/esm/bundle.css
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
.video-js.skin_vlone .vjs-control-bar .vjs-progress-control.vjs-control {
|
|
6
7
|
height: 0.7em;
|
|
7
8
|
position: absolute;
|
|
@@ -148,7 +149,6 @@
|
|
|
148
149
|
}
|
|
149
150
|
|
|
150
151
|
|
|
151
|
-
|
|
152
152
|
/* CSS for videojs-dvr-seekbar */
|
|
153
153
|
|
|
154
154
|
.video-js.vjs-dvr-seekbar {
|
|
@@ -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;
|
|
@@ -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,72 +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 .sponsored-adbox{
|
|
1124
|
-
position: absolute;
|
|
1125
|
-
bottom: 3rem;
|
|
1126
|
-
font-family: sans-serif;
|
|
1127
|
-
left: 0.8rem;
|
|
1128
|
-
display: flex;
|
|
1129
|
-
align-items: center;
|
|
1130
|
-
color: white;
|
|
1131
|
-
font-size: 12px;
|
|
1132
|
-
border-radius: 4px;
|
|
1133
|
-
overflow: hidden;
|
|
1134
|
-
text-overflow: ellipsis;
|
|
1135
|
-
white-space: nowrap;
|
|
1136
|
-
-webkit-user-select: none;
|
|
1137
|
-
-moz-user-select: none;
|
|
1138
|
-
font-weight: 700;
|
|
1139
|
-
text-shadow: 0 0 4px rgba(0, 0, 0, .75);
|
|
1140
|
-
user-select: none;
|
|
1141
|
-
}
|
|
1142
|
-
.ssai-ad-container .sponsored-adbox .sponsored-text{
|
|
1143
|
-
margin-right: 0.4rem;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
@media (max-width:600px){
|
|
1147
|
-
.ssai-ad-container .ad-info-title{
|
|
1148
|
-
max-width: 190px;
|
|
1149
|
-
}
|
|
1150
|
-
.ssai-ad-container .ad-visit-advertiser{
|
|
1151
|
-
right: 8px;
|
|
1152
|
-
top: 8px;
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1141
|
+
/* Airplay end */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/classCallCheck";import n from"@babel/runtime-corejs3/helpers/createClass";import a from"@babel/runtime-corejs3/helpers/inherits";import o from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import r from"@babel/runtime-corejs3/helpers/getPrototypeOf";import i from"@babel/runtime-corejs3/core-js-stable/instance/map";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import c from"video.js";import{C as s,f as l}from"./icons-68d3a609.js";import{g as d,d as m,e as p}from"./captions-2bcc449f.js";import{e as u,s as v,f,j as h}from"./skin-43755201.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";function y(t){var n=g();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 g(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}var b=c.getComponent("Component"),C=function(e){a(r,b);var o=y(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())});return c.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./caption-settings-cb47408f.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=d(this.playerId);null==t||i(t).call(t,(function(t){return m(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")?(u(),a.classList.remove("hidden"),n.classList.add("open"),a.style.right="0px",v(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),f(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(l())});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"}),s=this.createLanguageContanier();c.dom.appendContent(i,s),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),h(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=d(e.playerId);i(r).call(r,(function(t){return m(e.playerId,t.id)}))},c.dom.appendContent(a,r),c.dom.appendContent(a,o),c.dom.appendContent(t,a);for(var s=d(this.playerId),l=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){p(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++)l(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}();export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"@babel/runtime-corejs3/core-js-stable/instance/filter";import e from"@babel/runtime-corejs3/core-js-stable/instance/map";import{g as a}from"./skin-43755201.js";var n=function(t,e){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(t).textTracks(),i=0;i<l.length;i++){var o=l[i];"subtitles"!==o.kind&&"captions"!==o.kind||o.id!=e||(o.mode="showing")}},r=function(t,e){for(var n=a(t).textTracks(),r=0;r<n.length;r++){var s=n[r];"subtitles"!==s.kind&&"captions"!==s.kind||s.id!==e||(s.mode="hidden")}},s=function(e){var n,r,s=a(e);return(null==s||null===(n=s.textTracks())||void 0===n?void 0:t(r=n.tracks_).call(r,(function(t){return"subtitles"==t.kind||"captions"===t.kind})))||[]},l=function(t){var n,r=a(t);e(n=r.remoteTextTracks().tracks_).call(n,(function(t){"subtitles"==(null==t?void 0:t.kind)||null==t||t.kind,r.removeRemoteTextTrack(t)}))},i=function(t,n){var r,s=a(t);e(r=s.remoteTextTracks().tracks_).call(r,(function(t){s.removeRemoteTextTrack(t)})),e(n).call(n,(function(t){s.addRemoteTextTrack({src:t.url,srcLang:t.language,label:t.language})}))};export{i as a,r as d,n as e,s as g,l as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/core-js-stable/object/keys";import r from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import o from"@babel/runtime-corejs3/core-js-stable/instance/filter";import n from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import l from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import i from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import a from"@babel/runtime-corejs3/core-js-stable/object/define-properties";import s from"@babel/runtime-corejs3/core-js-stable/object/define-property";import c from"@babel/runtime-corejs3/helpers/defineProperty";import d from"@babel/runtime-corejs3/helpers/classCallCheck";import u from"@babel/runtime-corejs3/helpers/createClass";import m from"@babel/runtime-corejs3/helpers/inherits";import p from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import f from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import h from"video.js";import{E as v,B as g}from"./generic-979547e7.js";import{g as b}from"./renditions-7f946d48.js";import{g as C,p as j}from"./skin-43755201.js";import{g as y}from"./localisation-0bf399a1.js";function B(e,l){var i=t(e);if(r){var a=r(e);l&&(a=o(a).call(a,(function(t){return n(e,t).enumerable}))),i.push.apply(i,a)}return i}function k(e){for(var t=1;t<arguments.length;t++){var r,o,d=null!=arguments[t]?arguments[t]:{};t%2?l(r=B(Object(d),!0)).call(r,(function(t){c(e,t,d[t])})):i?a(e,i(d)):l(o=B(Object(d))).call(o,(function(t){s(e,t,n(d,t))}))}return e}function S(t){var r=E();return function(){var o,n=f(t);if(r){var l=f(this).constructor;o=e(n,arguments,l)}else o=n.apply(this,arguments);return p(this,o)}}function E(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}var I=function(e){var t=function(e){m(o,e);var t=S(o);function o(e,r){var n;d(this,o);var l=(n=t.call(this,e,r)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=y("slowMoText")||"Slow Mo",n}return u(o,[{key:"handleClick",value:function(){1==r.playbackRate()?(r.playbackRate(.5),this.el().style.background="darkgray"):(r.playbackRate(1),this.el().style.background="none")}}]),o}(h.getComponent("Button"));h.registerComponent("MyButton",t);var r=h(e);r.getChild("controlBar").addChild("myButton",{},2)},M=function(e,t,r){var o=function(t){m(n,t);var o=S(n);function n(e,t){var l;d(this,n);var i=(l=o.call(this,e,t)).el_;i.classList.add("vjs-rewind-button");var a=j(r);return i.append(a),l}return u(n,[{key:"handleClick",value:function(){v(e,10)}}]),n}(h.getComponent("Button"));h.registerComponent("MyButton",o),h(e).getChild("controlBar").addChild("myButton",{},1)},w=function(e,t,r){var o=function(t){m(n,t);var o=S(n);function n(e,t){var l;d(this,n);var i=(l=o.call(this,e,t)).el_;i.classList.add("vjs-skip-button");var a=j(r);return i.append(a),l}return u(n,[{key:"handleClick",value:function(){g(e,10)}}]),n}(h.getComponent("Button"));h.registerComponent("MyButton",o),h(e).getChild("controlBar").addChild("myButton",{},1)},L=function(e,t,r){import("./resolution-de9dd282.js").then((function(o){var n=o.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=C(e),i=b(e);(null==i?void 0:i.length)>0&&(h.registerComponent("resolutionModule",n),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:r,renditions:i},l.controlBar.children().length-4))}))},N=function(e,t,r){import("./nextEpisodeButton-518b5e22.js").then((function(o){var n=o.default,l=C(r);h.registerComponent("nextEpisodeButtonModule",n),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:r,sres:e,res:t},l.controlBar.children().length-5)}))},_=function(e,t,r){import("./series-81680634.js").then((function(o){var n=o.seriesModule,l=C(e);h.registerComponent("seriesModule",n),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var i=document.querySelectorAll(".season-title-sdk"),a=function(e){i[e].addEventListener("click",(function(){t[e]&&o.handleSeasonChange(t[e],e,l,r)}))},s=0;s<i.length;s++)a(s)}))},x=function(e,t){import("./videoSelector-d11c7ff1.js").then((function(r){var o=r.default,n=C(e);h.registerComponent("videoSelector",o),n.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},n.controlBar.children().length-3)}))},T=function(e,t){import("./caption-settings-088e70f5.js").then((function(r){var o,n,l,i,a=r.default,s=C(e);h.registerComponent("captionSelector",a),null===(o=document)||void 0===o||null===(n=o.getElementById(e))||void 0===n||null===(l=n.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(i=l[0])||void 0===i||i.remove(),s&&s.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},s.controlBar.children().length-3)}))},O=function(e,t){import("./settings-icon-cccc4c93.js").then((function(r){var o,n,l,i,a=r.default,s=C(e);h.registerComponent("settingsSelector",a),null===(o=document)||void 0===o||null===(n=o.getElementById(e))||void 0===n||null===(l=n.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(i=l[0])||void 0===i||i.remove(),s&&s.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},s.controlBar.children().length-3)}))},R=function(e,t){import("./playlist-603ebd69.js").then((function(r){var o=r.default,n=C(e);h.registerComponent("playlistSelector",o),n.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},n.controlBar.children().length-3)}))},V=function(e,t){import("./series-v2-b59f854c.js").then((function(r){var o=r.default,n=C(e);h.registerComponent("seriesV2",o),n.getChild("controlBar").addChild("seriesV2",k({playerId:e},t),n.controlBar.children().length-3)}))},q=function(e,t){import("./multicamv2-10e8f652.js").then((function(r){var o=r.default,n=C(e);h.registerComponent("streamSelector",o),n.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},n.controlBar.children().length-4)}))},H=function(e,t){var r=C(e).el(),o=h.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});r.append(o)},D=function(e){var t=C(e).el(),r=0,o=C(e);o.addChild("fullscreenToggle");var n=function(){var e,r=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];r&&r.click()};o.el().addEventListener("dblclick",n),window._multiplayer_dbClickHandler=n;o.el().addEventListener("touchend",(function(){var e=(new Date).getTime(),o=e-r;if(o<300&&o>0){var n,l=null==t||null===(n=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===n?void 0:n[0];l&&l.click()}r=e})),window._multiplayer_dbTapHandler=n},P=function(e,t){import("./videoSelector-08019968.js").then((function(r){var o=r.default,n=C(e);h.registerComponent("videoSelector",o),n.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},n.controlBar.children().length-3)}))},A=function(e,t){import("./series-v2-a5c6cd10.js").then((function(r){var o=r.default,n=C(e);h.registerComponent("seriesV2",o),n.getChild("controlBar").addChild("seriesV2",k({playerId:e},t),n.controlBar.children().length-3)}))},z=function(e,t){import("./multicamv2-1dbc6fd3.js").then((function(r){var o=r.default,n=C(e);h.registerComponent("streamSelector",o),n.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},n.controlBar.children().length-4)}))};export{L as a,_ as b,N as c,w as d,M as e,O as f,T as g,H as h,I as i,P as j,z as k,R as l,A as m,D as n,x as o,V as p,q};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/helpers/defineProperty";import t from"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import n from"@babel/runtime-corejs3/regenerator";import o from"@babel/runtime-corejs3/core-js-stable/promise";import i from"@babel/runtime-corejs3/core-js-stable/set-timeout";import r from"@babel/runtime-corejs3/core-js-stable/instance/filter";import a from"@babel/runtime-corejs3/core-js-stable/object/keys";import l from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import s from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import d from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import u from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import c from"@babel/runtime-corejs3/core-js-stable/object/define-properties";import v from"@babel/runtime-corejs3/core-js-stable/object/define-property";import m from"video.js";import f from"@babel/runtime-corejs3/core-js-stable/instance/concat";import p from"axios";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import w from"@babel/runtime-corejs3/core-js-stable/instance/includes";import I from"@babel/runtime-corejs3/core-js-stable/instance/index-of";import g from"@babel/runtime-corejs3/core-js-stable/instance/slice";import{g as E,c as T}from"./skin-43755201.js";import{i as h,d as y}from"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import b from"@babel/runtime-corejs3/core-js-stable/instance/map";import _ from"@babel/runtime-corejs3/core-js-stable/math/trunc";import j from"@babel/runtime-corejs3/core-js-stable/instance/find";import F from"@babel/runtime-corejs3/core-js-stable/date/now";import D from"@babel/runtime-corejs3/core-js-stable/map";import R from"js-cookie";import{UAParser as L}from"ua-parser-js";import S from"@babel/runtime-corejs3/core-js-stable/instance/find-index";import{a as V,r as W}from"./captions-2bcc449f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import A from"@babel/runtime-corejs3/core-js-stable/set-interval";function C(){var e,t;null===(e=window)||void 0===e||null===(t=e.dataLayer)||void 0===t||t.push(arguments)}function N(e){window.dataLayer=window.dataLayer||[],C("js",new Date),C("config",e)}function O(e,t){C("event",e,t)}var P={apiBaseUrl:"https://prod-api.viewlift.com",getVideoDetails:"/entitlement/video/status",getSeriesDetails:"/entitlement/series/status",saveWatchHistoryV1:"/user/userId/history/video",saveWatchHistoryV2:"/v2/user/history",getVideoInfoV1:"/user/info/video",getVideoInfoV2:"/v2/user/info",getSeriesWatchHistoryV1:"/user/userId/history/video",getSeriesWatchHistoryV2:"/v2/user/history/series",getLinearChannelDetails:"/v3/entitlement/linearchannel",getBeaconUrl:"/analytics/player-beacon"};function B(e,t){var n=a(e);if(l){var o=l(e);t&&(o=r(o).call(o,(function(t){return s(e,t).enumerable}))),n.push.apply(n,o)}return n}function U(t){for(var n=1;n<arguments.length;n++){var o,i,r=null!=arguments[n]?arguments[n]:{};n%2?d(o=B(Object(r),!0)).call(o,(function(n){e(t,n,r[n])})):u?c(t,u(r)):d(i=B(Object(r))).call(i,(function(e){v(t,e,s(r,e))}))}return t}var M={name:"@viewlift/player-backup",version:"2.0.33-smarttv",main:"dist/bundle.cjs.js",amdName:"_playerCore",dependencies:{"@silvermine/videojs-airplay":"^1.3.0","@silvermine/videojs-chromecast":"^1.4.1",axios:"^1.2.3",ima:"npm:videojs-ima@2.2.0","js-cookie":"^3.0.5","ua-parser-js":"^2.0.3","video.js":"8.22.0","videojs-contrib-ads":"7.5.2","videojs-contrib-eme":"5.5.1","videojs-mux":"^4.21.7","videojs-contrib-quality-menu":"^1.0.3"}};window.vl_player_version=M.version;var k,x=function(e,t){var n,i,r,a,l,s,d,u;return null!==(n=window)&&void 0!==n&&null!==(i=n.customData)&&void 0!==i&&i.overrideEntitlementResponse?new o((function(e,t){var n,o;return e({data:null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.overrideEntitlementResponse})})):p({url:null!==(l=window)&&void 0!==l&&null!==(s=l.customData)&&void 0!==s&&s.overrideEntitlementBaseUrl?(null===(d=window)||void 0===d||null===(u=d.customData)||void 0===u?void 0:u.overrideEntitlementBaseUrl)+"/video/status":q.get()+"".concat(null==P?void 0:P.getVideoDetails),params:U({id:e,deviceType:"web_browser",contentConsumption:"web"},null===(r=window)||void 0===r||null===(a=r.customData)||void 0===a?void 0:a.entitlement),method:"GET",headers:{Authorization:t,"Sdk-Version":M.version},withCredentials:!0})},H=function(e,t){var n,i,r,a;return null!==(n=window)&&void 0!==n&&null!==(i=n.customData)&&void 0!==i&&i.overrideEntitlementResponse?new o((function(e,t){var n,o;return e({data:null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.overrideEntitlementResponse})})):p({url:q.get()+P.getLinearChannelDetails,params:U(U(U(U(U({id:null==e?void 0:e.id,deviceType:"web_browser",contentConsumption:"web"},(null==e?void 0:e.channelId)&&{channelId:null==e?void 0:e.channelId}),(null==e?void 0:e.programId)&&{programId:null==e?void 0:e.programId}),(null==e?void 0:e.programTitle)&&{programTitle:null==e?void 0:e.programTitle}),(null==e?void 0:e.programSubType)&&{programSubType:null==e?void 0:e.programSubType}),null===(r=window)||void 0===r||null===(a=r.customData)||void 0===a?void 0:a.entitlement),method:"GET",headers:{Authorization:t,hdcp:"HDCP-1.4",sl:"SW_SECURE_CRYPTO"}})},G=function(e,t){var n,i,r=de(t),a=(null==r?void 0:r.site)||null;return null!==(n=window)&&void 0!==n&&null!==(i=n.customData)&&void 0!==i&&i.seriesData?new o((function(e,t){var n,o;return e({data:null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.seriesData})})):p({url:q.get()+"/v3/content/series/".concat(e),params:{site:a},method:"GET",headers:{Authorization:t}})},z=function(){var e=t(n.mark((function e(t){var o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le();case 2:return o=e.sent,e.abrupt("return",p({url:q.get()+"".concat(null==P?void 0:P.saveWatchHistoryV2),method:"POST",headers:{Authorization:o},data:U({},t),params:U({},(null==t?void 0:t.profileId)&&{profileId:null==t?void 0:t.profileId})}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Y=function(e,t){var n,o,i,r,a=window.contentType;return p({method:"GET",url:q.get()+f(n=f(o="".concat(null==P?void 0:P.getVideoInfoV2,"/")).call(o,a,"/")).call(n,e),headers:{Authorization:t,"x-api-key":null===(i=window)||void 0===i||null===(r=i.watchHistory)||void 0===r?void 0:r.xApiKey},timeout:15e3})},X=function(e){var t,n=e.videoId;return p({method:"GET",url:q.get()+f(t="".concat(null==P?void 0:P.getSeriesWatchHistoryV2,"/")).call(t,n),headers:{Authorization:e.token},timeout:15e3})},q=(k=null==P?void 0:P.apiBaseUrl,{set:function(e){e&&(k=e)},get:function(){return k}}),J=function(e,t,n,o){return p({url:n,params:{id:e,deviceType:"web_browser",contentConsumption:"web",latitude:null==o?void 0:o.latitude,longitude:null==o?void 0:o.longitude},method:"GET",headers:{Authorization:t},withCredentials:!0})},K=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},Q=null;function Z(){return{set:function(e){e&&(Q=e)},get:function(){return Q}}}var $,ee,te,ne,oe,ie,re=function(){var e=t(n.mark((function e(){var t,o,i,r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Z().get(),o=q.get(),e.prev=2,e.next=5,p({method:"GET",url:f(i="".concat(o,"/identity/refresh/")).call(i,t)});case 5:return r=e.sent,e.abrupt("return",r);case 9:throw e.prev=9,e.t0=e.catch(2),console.error("Error fetching refresh token",e.t0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(){return e.apply(this,arguments)}}(),ae=null,le=function(){var e=t(n.mark((function e(){var t;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=sessionStorage.getItem("vlp_token"))||!K(t)){e.next=6;break}return ae||(ae=re().then((function(e){var n,o,i=null==e||null===(n=e.data)||void 0===n?void 0:n.authorizationToken,r=null==e||null===(o=e.data)||void 0===o?void 0:o.refreshToken;return i&&sessionStorage.setItem("vlp_token",i),r&&Z().set(r),i||t})).catch((function(e){return console.error("Error fetching refresh token",e),t})).finally((function(){ae=null}))),e.abrupt("return",ae);case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),se=function(e){var t=!0,n=null==e?void 0:e.videoSourceUrl,o=null==e?void 0:e.asat;return n&&!o&&(t=!1),t},de=function(e){if(e&&"string"==typeof e)return JSON.parse(atob(e.split(".")[1]))},ue=function(e){ee=e},ce=function(){return ee},ve=function(e){$=e},me=function(){return $},fe=function(){return te},pe=function(e){te=e},we=function(){return oe},Ie=function(e){ne=new D,b(e).call(e,(function(e,t){ne.set(e.id,t)}))},ge=function(e){if(ne){var t=ne.get(e);pe(t+1)}},Ee=(ie=0,{set:function(e){e>=0&&(ie=e)},get:function(){return ie}});function Te(e,t){var n=a(e);if(l){var o=l(e);t&&(o=r(o).call(o,(function(t){return s(e,t).enumerable}))),n.push.apply(n,o)}return n}function he(t){for(var n=1;n<arguments.length;n++){var o,i,r=null!=arguments[n]?arguments[n]:{};n%2?d(o=Te(Object(r),!0)).call(o,(function(n){e(t,n,r[n])})):u?c(t,u(r)):d(i=Te(Object(r))).call(i,(function(e){v(t,e,s(r,e))}))}return t}var ye=0,be=function(){var e,t,n,o,i,r,a,l=ce();return"linearchannel"==((null==l?void 0:l.contentType)||"video")?null==l||null===(e=l.linearchannel)||void 0===e||null===(t=e.channels)||void 0===t||null===(n=j(t).call(t,(function(e){return(null==e?void 0:e.id)===(null==l?void 0:l.channelId)})))||void 0===n||null===(o=n.content)||void 0===o?void 0:o.id:(null==l||null===(i=l.video)||void 0===i||null===(r=i.gist)||void 0===r?void 0:r.id)||(null==l||null===(a=l.video)||void 0===a?void 0:a.id)||(null==l?void 0:l.id)};function _e(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function je(){var e=window.sessionStorage.getItem("uid");return e||(e=_e(),window.sessionStorage.setItem("uid",e),e)}function Fe(){return De.apply(this,arguments)}function De(){return(De=t(n.mark((function e(){var t,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le();case 2:if(!(t=e.sent)){e.next=10;break}if(null==(o=JSON.parse(atob(t.split(".")[1])))||!o.anonymousId){e.next=9;break}return e.abrupt("return","guest-user");case 9:return e.abrupt("return",null==o?void 0:o.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=_e(),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,o,i,r=Math.floor(e.currentTime());clearInterval(window.bufferingTimer),window.buffering=null,window.handleBufferTimer=null,O(r?"FAILED_TO_START":"DROPPED_STREAM",he({pfm:window.platform,uid:je(),vid:be(),videoPosition:Math.floor(e.currentTime())},null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o||null===(i=o.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:t===r?"FAILED_TO_START":"DROPPED_STREAM",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})}))},window.firstFrame=function(e,t){e.one("play",tryCatch((function(){var n,o,i;window.ttFirstFrame=0,window.ttFirstFrameTimer=A((function(){window.ttFirstFrame=window.handleBufferTimer?window.handleBufferTimer(window.ttFirstFrame,e):null}),100),O("PLAY",he({pfm:window.platform,uid:je(),vid:be(),videoPosition:Math.floor(e.currentTime())},null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o||null===(i=o.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"PLAY",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1}),t&&t("started_video_playback",{"Video ID":be(),watchTime:Math.floor(e.currentTime())})})))},window.buffering=function(e){e.on("waiting",tryCatch((function(){window.ttFirstFrameTimer||(e.currentTime(),clearInterval(window.bufferingTimer),window.bufferingTimer=A((function(){var t,n;null!=e&&null!==(t=e.el_)&&void 0!==t&&null!==(n=t.className)&&void 0!==n&&w(n).call(n,"vjs-waiting")&&!e.paused()?window.totalBufferTime=handleBufferTimer(window.totalBufferTime,e):clearInterval(window.bufferingTimer)}),100))})))},window.handleBufferTimer=function(e,t){var n,o;if(t.el_){var i,r,a,l=e+.1;if(+l.toFixed(2)%5==0&&null!=t&&null!==(n=t.el_)&&void 0!==n&&null!==(o=n.className)&&void 0!==o&&w(o).call(o,"vjs-waiting")&&ye<4)ye++,O("BUFFERING",he({pfm:window.platform,uid:je(),vid:be(),videoPosition:t.el_&&Math.floor(t.currentTime())},null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r||null===(a=r.beacon)||void 0===a?void 0:a.params)),fireEvent({eventName:"BUFFERING",videoPosition:t.el_&&Math.floor(t.currentTime()),isAdEvent:!1});return l}clearInterval(window.ttFirstFrameTimer)},window.endFirstFrame=function(e){e.one("timeupdate",(function(){var t,n,o;clearInterval(window.ttFirstFrameTimer),clearInterval(window.bufferingTimer),window.ttFirstFrameTimer=null,window.totalBufferTime=window.ttFirstFrame||0,O("FIRST_FRAME",he({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:je(),vid:be()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(o=n.beacon)||void 0===o?void 0:o.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,o,i,r,a;O("AD_REQUEST",he({eventName:"AD_REQUEST",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:je(),vid:be(),resHeight:e.videoHeight(),resWidth:e.videoWidth()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(o=n.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:"AD_REQUEST",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,resHeight:e.videoHeight(),resWidth:e.videoWidth(),adPosition:1}),O("AD_IMPRESSION",he({eventName:"AD_IMPRESSION",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:je(),resHeight:e.videoHeight(),resWidth:e.videoWidth(),vid:be()},null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r||null===(a=r.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&&!w(t).call(t,n)&&(ye=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(),o=e.buffered(),i=0;i<o.length;i++){var r=o.start(i),a=o.end(i);if(Re(t,r,a)){var l=Math.round(n-a);if(isFinite(l))return l}}}))()};var Re=function(e,t,n){return e>=t&&e<=n};function Le(e,t){if("localhost"!==location.hostname&&"127.0.0.1"!==location.hostname){var n=E(e);window.initialise(n,t),window.firstFrame(n,t),n.on("loadedmetadata",(function(){window.endFirstFrame(n)}))}}window.fireEvent=function(){var e=t(n.mark((function e(t){var o,i,r,a,l,s,d,u,c,v,m,f,w,I,g,E,T,h,y,b;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le();case 2:return E=e.sent,T=de(E),h=null==T?void 0:T.site,y=null==T?void 0:T.siteId,e.t0=he,e.t1=he,e.t2=he({aid:h,cid:y,pfm:window.platform},null===(o=window)||void 0===o||null===(i=o.customData)||void 0===i||null===(r=i.beacon)||void 0===r?void 0:r.params),e.t3={},e.t4=je(),e.t5=be(),e.t6=t.url||document.location.href,e.t7=t.ref||document.referrer,e.t8=t.eventName,e.t9=null!==(a=t.videoPosition)&&void 0!==a?a:null,e.t10=window.environment,e.t11=t.dp1||"",e.t12=t.dp2||"",e.t13=t.dp3||"",e.t14=t.dp4||"",e.t15=t.dp5||"",e.t16=!0===t.isAdEvent?t.videoPosition:null,e.t17=!0===t.isAdEvent?(n=t.adPosition)?String(n):"":"",e.next=26,Fe();case 26:e.t18=e.sent,e.t19=t.playerType||"native",e.t20=t.mediaType||"VIDEO",e.t21=window.sid,e.t22=null!==(l=t.ttFirstFrame)&&void 0!==l?l:null,e.t23=null!==(s=t.bitrate)&&void 0!==s?s:null,e.t24=null!==(d=t.resHeight)&&void 0!==d?d:null,e.t25=null!==(u=t.resWidth)&&void 0!==u?u:null,e.t26=null!==(c=t.bufferHealth)&&void 0!==c?c:null,e.t27={uid:e.t4,vid:e.t5,url:e.t6,ref:e.t7,pa:e.t8,vpos:e.t9,environment:e.t10,dp1:e.t11,dp2:e.t12,dp3:e.t13,dp4:e.t14,dp5:e.t15,apos:e.t16,apod:e.t17,profid:e.t18,player:e.t19,media_type:e.t20,stream_id:e.t21,embedurl:"",ttfirstframe:e.t22,bitrate:e.t23,connectionspeed:null,resolutionheight:e.t24,resolutionwidth:e.t25,bufferhealth:e.t26},e.t28=(null==t?void 0:t.duration)&&{duration:t.duration},e.t29=(0,e.t1)(e.t2,e.t3,e.t27,e.t28),e.t30=null===(v=window)||void 0===v||null===(m=v.customData)||void 0===m||null===(f=m.beacon)||void 0===f?void 0:f.params,e.t31=(0,e.t0)(e.t29,e.t30),b=[e.t31],p({url:(null===(w=window)||void 0===w||null===(I=w.customData)||void 0===I||null===(g=I.beacon)||void 0===g?void 0:g.url)||q.get()+P.getBeaconUrl,method:"post",headers:{Authorization:E},contentType:"application/x-www-form-urlencoded",dataType:"text",data:b}).catch((function(e){console.error(e)}));case 42:case"end":return e.stop()}var n}),e)})));return function(t){return e.apply(this,arguments)}}(),window.tryCatch=function(e){return function(){try{return e.apply(window,arguments)}catch(e){return console.error(e),null}}};var Se=function(e,t){var n=new D;X({videoId:e,token:t}).then((function(e){var t=e.data;b(t).call(t,(function(e){n.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})})),oe=n})).catch((function(e){return console.log(e)}))},Ve=function(){var e=Ee.get();return e>=0?e+1:1},We=function(){var e,t,n,o=me(),i=ce(),r=null==i||null===(e=i.video)||void 0===e?void 0:e.id,a=Ee.get(),l=null==o||null===(t=o[a])||void 0===t||null===(n=t.episodes)||void 0===n?void 0:S(n).call(n,(function(e){return(null==e?void 0:e.id)===r}));return l>=0?l+1:1};function Ae(e,t){var n=a(e);if(l){var o=l(e);t&&(o=r(o).call(o,(function(t){return s(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ce(t){for(var n=1;n<arguments.length;n++){var o,i,r=null!=arguments[n]?arguments[n]:{};n%2?d(o=Ae(Object(r),!0)).call(o,(function(n){e(t,n,r[n])})):u?c(t,u(r)):d(i=Ae(Object(r))).call(i,(function(e){v(t,e,s(r,e))}))}return t}window._deviceInfo=L(navigator.userAgent);var Ne=function(e,t){var n;return e&&t?f(n="".concat(e,"x")).call(n,t):e>1024?"L":e>768?"M":"S"},Oe=function(e){var t=Pe(e,"video.tags",[]),n=Pe(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return t.length>0?b(t).call(t,(function(e){return e.title})).join(","):n},Pe=function(e,t,n){for(var o=0,i=(t=t.split(".")).length;o<i;o++){var r;e=null===(r=e)||void 0===r?void 0:r[t[o]]}return e||n},Be=function(){var e,t,n,o,i,r,a,l,s,d,u,c,v,m,f,p,I,T,h,y,b,D,L,S=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",V=arguments.length>1?arguments[1]:void 0,W=arguments.length>2?arguments[2]:void 0,A=(null==W?void 0:W.contentType)||"video",C=(null==W||null===(e=W[A])||void 0===e?void 0:e.metadata)||(null==W||null===(t=W[A])||void 0===t||null===(n=t.gist)||void 0===n?void 0:n.metadata),N=E(V);if(!w(S).call(S,"VIEWLIFT_"))return S;var O,P=window.getComputedStyle(document.getElementById(V),null),B=_(g(o=P.getPropertyValue("height")).call(o,0,-2)),U=_(g(i=P.getPropertyValue("width")).call(i,0,-2)),M="linearchannel"===A?null==W||null===(r=W.linearchannel)||void 0===r||null===(a=r.channels)||void 0===a||null===(l=j(a).call(a,(function(e){return(null==e?void 0:e.id)===(null==W?void 0:W.channelId)})))||void 0===l||null===(s=l.content)||void 0===s?void 0:s.id:Pe(W,"video.gist.id",""),k="linearchannel"===A?null==W||null===(d=W.linearchannel)||void 0===d||null===(u=d.channels)||void 0===u||null===(c=j(u).call(u,(function(e){return(null==e?void 0:e.id)===(null==W?void 0:W.channelId)})))||void 0===c?void 0:c.title:Pe(W,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),x=null,H=null;"function"==typeof window.__gpp&&(null===(O=window)||void 0===O||O.__gpp("ping",(function(e){x=null==e?void 0:e.gppString,H=null==e?void 0:e.sectionList[0]})));var G=Ce(Ce({},Ue(C)),{},{VIEWLIFT_WIDTH:U,VIEWLIFT_HEIGHT:B,VIEWLIFT_SIZE:Ne(U,B),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:F().toString().substring(0,10),VIEWLIFT_TIMESTAMP_MS:F().toString(),VIEWLIFT_IP:(null===(v=window)||void 0===v?void 0:v.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:encodeURIComponent(encodeURIComponent(navigator.userAgent)),VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:Pe(W,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:Pe(W,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:Pe(W,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==N||null===(m=N.options_)||void 0===m?void 0:m.autoplay)||1,VIEWLIFT_MUTE:(null==N||null===(f=N.options_)||void 0===f?void 0:f.autoplay)||0,VIEWLIFT_DEVICE_ID:localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_DEVICETYPE:"WEB_BROWSER",VIEWLIFT_IDTYPE:"dpid",VIEWLIFT_KEYWORDS:Oe(W),VIEWLIFT_MEDIA_ID:M,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(Pe(W,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:M,VIEWLIFT_VIDEO_URL:encodeURI(window.location.origin+Pe(W,"video.gist.permalink","")),VIEWLIFT_CONSENT:R.get("cc")||"VIEWLIFT_CONSENT",VIEWLIFT_COPPA:Pe(null===(p=window)||void 0===p||null===(I=p.app_data)||void 0===I||null===(T=I.site)||void 0===T?void 0:T.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR:Pe(null===(h=window)||void 0===h||null===(y=h.app_data)||void 0===y||null===(b=y.site)||void 0===b?void 0:b.settings,"compliance.gdpr")?1:0,VIEWLIFT_CONTENT_DURATION_MS:1e3*Pe(W,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:Pe(W,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:M,VIEWLIFT_CONTENT_TITLE:k,VIEWLIFT_CONTENT_SERIES_TITLE:Pe(W,"video.series.gist.title","VIEWLIFT_CONTENT_SERIES_TITLE"),VIEWLIFT_CONTENT_GENRE:Pe(W,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER",VIEWLIFT_EPISODE_NUMBER:We(),VIEWLIFT_SEASON_NUMBER:Ve(),VIEWLIFT_CONTENT_TAGS:Oe(W),VIEWLIFT_GPP_SID:H||"VIEWLIFT_GPP_SID",VIEWLIFT_GPP:x||"VIEWLIFT_GPP"},null===(D=window)||void 0===D||null===(L=D.customData)||void 0===L?void 0:L.macros);for(var z in G){var Y=new RegExp(z,"g");S=S.replace(Y,G[z])}return S},Ue=function(e){var t,n,o,i,r,a,l={},s=new D;(null==e?void 0:e.length)>0&&(null==e||b(e).call(e,(function(e){s.set(e.name,e.value)})));var d=(null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(o=n.subscription)||void 0===o?void 0:o.SVOD)||!1,u=(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r||null===(a=r.subscription)||void 0===a?void 0:a.TVE)||!1;return d||u?(h()?d?l=Ce(Ce({},l),{},{VIEWLIFT_CSID:s.get("csid.mweb.dtc")||""}):u&&(l=Ce(Ce({},l),{},{VIEWLIFT_CSID:s.get("csid.mweb.tve")||""})):d?l=Ce(Ce({},l),{},{VIEWLIFT_CSID:s.get("csid.web.dtc")||""}):u&&(l=Ce(Ce({},l),{},{VIEWLIFT_CSID:s.get("csid.web.tve")||""})),d?l=Ce(Ce({},l),{},{VIEWLIFT_SFID:s.get("sfid.dtc")||s.get("sfid.web.dtc")||""}):u&&(l=Ce(Ce({},l),{},{VIEWLIFT_SFID:s.get("sfid.tve")||s.get("sfid.web.tve")||""})),l=h()?Ce(Ce({},l),{},{VIEWLIFT_PROF:s.get("prof.mweb")||""}):Ce(Ce({},l),{},{VIEWLIFT_PROF:s.get("prof.web")||""})):(l=Ce(Ce({},l),{},{VIEWLIFT_SFID:s.get("sfid.dtc")||s.get("sfid.web.dtc")||""}),l=h()?Ce(Ce({},l),{},{VIEWLIFT_CSID:s.get("csid.mweb.dtc")||"",VIEWLIFT_PROF:s.get("prof.mweb")||""}):Ce(Ce({},l),{},{VIEWLIFT_CSID:s.get("csid.web.dtc")||"",VIEWLIFT_PROF:s.get("prof.web")||""})),l=Ce(Ce({},l),{},{VIEWLIFT_AFID:s.get("afid")})},Me=function(e,t){var n,o,i,r,a,l,s,d,u,c,v,m,f,p=(null==e?void 0:e.contentType)||"video",w=null==e||null===(n=e[p])||void 0===n?void 0:n.drmEnabled,I=null==e||null===(o=e[p])||void 0===o||null===(i=o.streamingInfo)||void 0===i?void 0:i.videoAssets,g=null==e||null===(r=e[p])||void 0===r||null===(a=r.streamingInfo)||void 0===a?void 0:a.audioAssets,E=(null==e||null===(l=e[p])||void 0===l||null===(s=l.streamingInfo)||void 0===s||null===(d=s.videoAssets)||void 0===d?void 0:d.hls)||!1;null==e||null===(u=e[p])||void 0===u||null===(c=u.liveDetails)||void 0===c||c.isDvrEnabled;var T=(null==e||null===(v=e[p])||void 0===v||null===(m=v.streamingInfo)||void 0===m||null===(f=m.videoAssets)||void 0===f?void 0:f.dash)||!1;if(null!=e&&e.directPlaybackUrl)return{src:null==e?void 0:e.directPlaybackUrl,type:null};if(null!=e&&e.audioAssetSource&&null!=g&&g.hls)return xe(g);if(w){var h=He(I,t);return h.src=Be(h.src,t,e),h}if("Safari"!==y()&&T)return ke(I);if(E){var b=xe(I);return b.src=Be(b.src,t,e),b}if(null!=I&&I.mpeg){var _=function(e){var t=null==e?void 0:e.mpeg;return{src:t[t.length-1].url,type:"video/mp4"}}(I);return _.src=Be(_.src,t,e),_}return null},ke=function(e){var t=null==e?void 0:e.dash;return t?{src:t,type:"application/dash+xml"}:null},xe=function(e){var t=null==e?void 0:e.hls;return t?{src:t,type:"application/x-mpegURL"}:null},He=function(e,t){var n=e.fairPlay,o=e.widevine,i=e.playReady,r=y();if(E(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 o={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};m.xhr(o,(function(e,t,o){console.log(e),e&&n(e),n(null,new Uint8Array(o))}))},getContentId:function(e,t){if(t){var n=I(t).call(t,"\0")+1;return g(t).call(t,n)}},getLicense:function(t,n,o,i){var r={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:o,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};m.xhr(r,(function(e,t,n){console.log(e),e&&i(e),i(null,n)}))}}}}}(n);return Ge(t),a}var l,s={src:o.url,type:"application/dash+xml"};return"caliente"==(null===(l=window)||void 0===l?void 0:l.siteName)?(Ge(t),s.keySystems={"com.widevine.alpha":{url:o.licenseUrl,licenseHeaders:{"X-AxDRM-Message":o.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},"com.microsoft.playready":{url:i.licenseUrl,licenseHeaders:{"X-AxDRM-Message":i.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}):(s.keySystemOptions=[],s.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:o.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":o.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),s.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:i.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":i.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})),s};var Ge=function(e){var t=E(e);if("function"==typeof t.eme)try{t.eme(),"Safari"==y()&&t.eme.initLegacyFairplay()}catch(e){console.log("EME ERROR :",e)}},ze=function(e,t){var n,o=e.src,i=e.type;if(!o||"string"!=typeof o||!w(o).call(o,".com"))return{src:o,type:i};t=t.replace(/\/$/,"");var r=o.split(".com")[1]||"";return{src:r?f(n="".concat(t)).call(n,r):o,type:i}},Ye=function(e,t){if(import("./error-2395864b.js").then((function(e){var t=document.createElement("style");t.id="errorblock",t.append("".concat(e.default)),document.head.appendChild(t)})),document.getElementsByClassName("error-container")[0]){var n=document.getElementsByClassName("error-message")[0];n&&(n.innerHTML="".concat(t))}else{var o=document.getElementById(e);if(o){var i=document.createElement("div");i.className="error-container";var r=document.createElement("div");r.className="error-message",r.innerHTML="".concat(t),i.appendChild(r),o.append(i)}}},Xe=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var qe=!1,Je=function(e,t,n){var o=Be(t,e,n),r=E(e);if(t&&window.google){if("function"!=typeof r.ima)return;r.ima.initializeAdDisplayContainer&&r.ima.initializeAdDisplayContainer(),function(e,t){var n,o,r,a=E(e);if(null!==a.el_){qe=!0;var l={id:e,adTagUrl:"".concat(t),adLabel:"Your video will resume after this sponsor message"};a.ima.initializeAdDisplayContainer&&a.ima.initializeAdDisplayContainer(),qe&&null!==a.el_&&("function"==typeof a.ima?a.ima(l):i((function(){a.ima.setContentWithAdTag(null,t,!0),a.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"),a.one(d,(function(){u&&a.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;a.one("ads-ad-started",(function(){c&&c({status:"STARTED",msg:"Advertisement Started"})})),a.one("ads-manager",(function(e){e.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,(function(){c&&c({status:"ENDED",msg:"Advertisement Ended"})}))})),a.on("adserror",(function(e){c&&c({status:"ERROR",msg:"Advertisement Error"})}))}}(e,o)}};function Ke(e,t){var n=a(e);if(l){var o=l(e);t&&(o=r(o).call(o,(function(t){return s(e,t).enumerable}))),n.push.apply(n,o)}return n}var Qe=function(e){m(e).play()},Ze=function(e){m(e).pause()},$e=function(e,t){var n=m(e),o=n.currentTime()+t;n.currentTime(o)},et=function(e,t){var n=m(e),o=n.currentTime(),i=o<=t?0:o-t;n.currentTime(i)},tt=function(e){return!!m.getPlayer("".concat(e))},nt=function(e){return m(e).paused()},ot=function(){var e=t(n.mark((function e(t,i){var r,a,l,s=arguments;return n.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,le();case 3:return a=e.sent,l=E(t),e.abrupt("return",new o((function(e,n){H(i,a).then((function(n){var o=null==n?void 0:n.data;window.sid=_e(),o.contentType="linearchannel",o.channelId=null==i?void 0:i.channelId;var a=Me(o,t);ue(o),a&&r?(st(t,a),l.on("loadstart",(function(){e({status:!0,msg:"Feed authenticated and loaded",response:o})}))):e({status:!0,msg:"Feed authenticated",response:o})})).catch((function(e){n({status:!1,msg:"Cannot load feed",response:e})}))})));case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),it=function(){var e=t(n.mark((function e(t,a,l){var s,d,u,c,v,m;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le();case 2:return c=e.sent,(me()||null)&&ge(a),v=0,m=0,null!==(s=window)&&void 0!==s&&s.watchHistory&&null!==(d=window)&&void 0!==d&&null!==(u=d.watchHistory)&&void 0!==u&&u.enable&&Y(a,c).then((function(e){var t,n,o,i,r,a;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(null==e?void 0:e.data)),v=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,m=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedPercentage)||null})).catch((function(e){var t,n,o,i;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(e))})),e.abrupt("return",new o((function(e,n){x(a,c).then((function(o){var a,l,s,d,u,c,f,p,w,I,g=null==o?void 0:o.data,T=(null==g||null===(a=g.video)||void 0===a||null===(l=a.streamingInfo)||void 0===l?void 0:l.isLiveStream)||!1;ue(o.data);var h=(null==g||null===(s=g.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==g||null===(f=g.ads)||void 0===f||null===(p=f.preRoll)||void 0===p||null===(w=p.adTags)||void 0===w||null===(I=w.web)||void 0===I?void 0:I.url);h&&Je(t,h,g);var y=Me(g,t);if(y){var b,_,j,F,D,R,L,S,A,C,N,O=(null==g||null===(b=g.video)||void 0===b||null===(_=b.gist)||void 0===_?void 0:_.videoImageUrl)||(null==g||null===(j=g.video)||void 0===j||null===(F=j.gist)||void 0===F||null===(D=F.imageGist)||void 0===D?void 0:D.r16x9),P=E(t);if(P.poster(O),st(t,y),P.on("loadstart",(function(){T&&e({status:!0,msg:"Video Loaded",response:g})})),P.on("loadeddata",(function(){Xe(),e({status:!0,msg:"Video Loaded",response:g})})),P.one("play",(function(){v&&m<95&&i((function(){P.currentTime(v)}),0)})),P.one("error",(function(){var e;n({status:!1,msg:(null==P||null===(e=P.error())||void 0===e?void 0:e.message)||"Some error occured"})})),(null==g||null===(R=g.video)||void 0===R||null===(L=R.contentDetails)||void 0===L||null===(S=L.closedCaptions)||void 0===S?void 0:S.length)>0||(null==g||null===(A=g.video)||void 0===A||null===(C=A.closedCaptions)||void 0===C?void 0:C.length)>0){var B,U,M,k=(null==g||null===(B=g.video)||void 0===B||null===(U=B.contentDetails)||void 0===U?void 0:U.closedCaptions)||(null==g||null===(M=g.video)||void 0===M?void 0:M.closedCaptions);N=r(k).call(k,(function(e){return"VTT"===e.format})),V(t,N)}else W(t)}else Ye(t,"Incompatible Source, only hls,mp4,drm content is allowed"),n("Incompatible Source, only hls,mp4,drm content is allowed")})).catch((function(e){dt(e,t,n,a)}))})));case 9:case"end":return e.stop()}}),e)})));return function(t,n,o){return e.apply(this,arguments)}}(),rt=function(e,t,n){var r=E(e);return r.src(t),new o((function(e,t){var o=0;r.one("loadedmetadata",(function(){clearTimeout(o),e({status:!0,msg:"video loaded"})})),r.one("loadstart",(function(e){o=i((function(){t("FAILED: Took too long to load")}),n)}))}))},at=function(e){var t=E(e);if(lt(),T(),window.onresize=null,t)t.dispose();else{var n=document.getElementById(e);n&&n.remove()}},lt=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()},st=function(e,t){var n=E(e);n&&n.src(t)},dt=function(t,n,o,i){var r,a,l,m,f,p,w=null==t||null===(r=t.response)||void 0===r||null===(a=r.data)||void 0===a?void 0:a.errorCode,I=(null==t||null===(l=t.response)||void 0===l||null===(m=l.data)||void 0===m?void 0:m.errorMessage)||(null==t?void 0:t.message);tt(n)&&Ye(n,(null===(f=window)||void 0===f?void 0:f.customErrors)&&(null===(p=window)||void 0===p?void 0:p.customErrors[w])||"".concat(I)),o&&o(function(t){for(var n=1;n<arguments.length;n++){var o,i,r=null!=arguments[n]?arguments[n]:{};n%2?d(o=Ke(Object(r),!0)).call(o,(function(n){e(t,n,r[n])})):u?c(t,u(r)):d(i=Ke(Object(r))).call(i,(function(e){v(t,e,s(r,e))}))}return t}({status:!1,response:t,msg:"".concat(I)},i&&{videoId:i}))},ut=function(e){var t=document.getElementById(e),n=t.getElementsByClassName("vjs-control-bar")[0];n&&(n.style.visibility="hidden");var o=t.getElementsByClassName("vjs-big-play-button")[0];o&&(o.style.display="none");var i=t.getElementsByClassName("vjs-fullscreen-control")[0];i&&(i.style.display="none")};export{rt as A,$e as B,Qe as C,Ze as D,et as E,tt as F,it as G,ot as H,at as I,J,q as K,se as L,Z as M,K as N,N as O,fe as P,nt as Q,pe as R,Be as S,X as T,Ie as U,ge as V,We as a,me as b,Ve as c,ce as d,Me as e,ue as f,je as g,Xe as h,Ye as i,we as j,Le as k,st as l,Je as m,ze as n,ut as o,de as p,x as q,Y as r,z as s,dt as t,le as u,H as v,Ee as w,G as x,Se as y,ve as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import n from"@babel/runtime-corejs3/core-js-stable/instance/concat";var C=function(C){var e,t;return n(e=n(t="<svg fill='".concat(C||"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(t,C||"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(e,C||"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>")},e=function(C){var e,t;return n(e=n(t="<svg fill='".concat(C||"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(t,C||"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(e,C||"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>")},t=function(C){var e,t;return n(e=n(t='<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(t,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(e,window.color||"white","' />\n </svg>")},l=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>'},i=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>'},o=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 '},w=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>'},h=function(C){var e,t;return n(e=n(t='<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(t,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(e,window.color?window.color:"white","' />\n </svg>")},r=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>'},s=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>'},d=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>'},v=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 '},a=function(C){var e,t;return n(e=n(t='<svg className=\'icon-play-next\' width="16" height="16" viewBox="0 0 25 25" fill='.concat(C,' xmlns="http://www.w3.org/2000/svg">\n <path d="M14.8837 9.99984L0 0V20L14.8837 9.99984Z" fill=')).call(t,C,' />\n <rect x="18" width="2" height="20" fill=')).call(e,C," />\n </svg>")},c=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 '},g=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 '},p=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 '},f=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>'},L=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>'},u=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>'};export{p as B,v as C,s as E,u as I,C as M,d as N,a as P,t as R,i as S,f as T,e as a,h as b,r as c,l as d,L as e,c as f,w as g,g as h,o as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/helpers/toConsumableArray";import t from"@babel/runtime-corejs3/core-js-stable/instance/map";import n from"@babel/runtime-corejs3/core-js-stable/instance/filter";import{g as r}from"./skin-43755201.js";import{P as o,b as i,d as a}from"./generic-979547e7.js";import{s as l}from"./autoNextVideo-56f70964.js";import s from"@babel/runtime-corejs3/helpers/typeof";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.split.js";import u from"@babel/runtime-corejs3/core-js-stable/instance/slice";import c from"@babel/runtime-corejs3/core-js-stable/parse-float";import d from"@babel/runtime-corejs3/core-js-stable/instance/index-of";import m from"video.js";import p from"@babel/runtime-corejs3/helpers/asyncToGenerator";import v from"@babel/runtime-corejs3/regenerator";import f from"@babel/runtime-corejs3/core-js-stable/instance/includes";import b from"@babel/runtime-corejs3/core-js-stable/instance/last-index-of";import g from"@babel/runtime-corejs3/helpers/defineProperty";import h from"@babel/runtime-corejs3/helpers/slicedToArray";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.array.join.js";import x from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import y from"@babel/runtime-corejs3/core-js-stable/instance/trim";import j from"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import w from"@babel/runtime-corejs3/core-js-stable/parse-int";import E from"@babel/runtime-corejs3/core-js-stable/instance/pad-start";import N from"@babel/runtime-corejs3/core-js-stable/promise";import C from"@babel/runtime-corejs3/core-js-stable/instance/flat";var k,T,A,L,B=[],M=function(a,l){var s;if(null!=l&&null!==(s=l.series)&&void 0!==s&&s.enable){var u;B=[];var c=i();null==c||t(c).call(c,(function(t){var n;return(n=B).push.apply(n,e(t.episodes))})),null==l||null===(u=l.series)||void 0===u||u.cb}else{var d,m;B=(null==l||null===(d=l.relatedVideos)||void 0===d?void 0:d.content)||[],null==l||null===(m=l.relatedVideos)||void 0===m||m.cb}var p=r(a);p.on("timeupdate",(function(){var e,t,n=Math.floor(p.currentTime()),r=p.duration(),i=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];r-n<=10&&o()<=(null===(t=B)||void 0===t?void 0:t.length)-1?i&&(i.style.visibility="visible"):i&&(i.style.visibility="hidden")}));var v,f=n(B).call(B,(function(e,t){return t==o()}));if((null==f?void 0:f.length)>0)if(null!==(v=document.getElementsByClassName("next-ep-preview"))&&void 0!==v&&v[0]){var b,g,h,x,y,j,w,E,N,C,k,T;(null===(b=document.getElementsByClassName("next-ep-preview"))||void 0===b?void 0:b[0]).style.visibility="hidden";var A=null===(g=document.getElementsByClassName("next-ep-title"))||void 0===g?void 0:g[0],L=null===(h=document.getElementsByClassName("next-ep-img"))||void 0===h?void 0:h[0],M=null===(x=document.getElementsByClassName("next-ep-content"))||void 0===x?void 0:x[0],S=null===(y=f[0])||void 0===y?void 0:y.title;(null===(j=S)||void 0===j?void 0:j.length)>60&&(S=S.substr(0,60)+"..."),A.textContent="".concat(S),L.src=(null===(w=f[0])||void 0===w||null===(E=w.gist)||void 0===E||null===(N=E.imageGist)||void 0===N?void 0:N.r16x9)||(null==f||null===(C=f[0])||void 0===C?void 0:C.img)||(null===(k=window)||void 0===k||null===(T=k.customData)||void 0===T?void 0:T.fallbackImage),M.onclick=function(){return I(a)}}else{var P,R,X,O,$,D,U,G,F=document.createElement("div");F.className="next-ep-preview",F.style.visibility="hidden",document.getElementById(a).append(F);var V=document.createElement("div");V.className="next-ep-header",V.textContent="Next up";var _=null===(P=f[0])||void 0===P?void 0:P.title,q=document.createElement("img");q.className="next-ep-img",q.src=(null===(R=f[0])||void 0===R||null===(X=R.gist)||void 0===X||null===(O=X.imageGist)||void 0===O?void 0:O.r16x9)||(null==f||null===($=f[0])||void 0===$?void 0:$.img)||(null===(D=window)||void 0===D||null===(U=D.customData)||void 0===U?void 0:U.fallbackImage);var H=document.createElement("div");H.className="next-ep-title",(null===(G=_)||void 0===G?void 0:G.length)>60&&(_=_.substr(0,60)+"..."),H.textContent="".concat(_);var W=document.createElement("div");W.className="next-ep-content",W.append(q),W.append(H),W.onclick=function(){return I(a)},F.append(V),F.append(W)}},I=function(e,t){var n=r(e),i=Math.floor(n.currentTime());if(Math.floor(n.duration())!=i){n.pause(e);var a=o();l(a,e,B)}};function S(e){var t=e.split("\n"),n=[];return x(t).call(t,(function(e){if(e=y(e).call(e),j(e).call(e,"#EXT-X-IMAGE-STREAM-INF")){var t=e.split(","),r={resolution:null,uri:null};x(t).call(t,(function(e){f(e).call(e,"RESOLUTION")&&(r.resolution=e.split("=")[1]),f(e).call(e,"URI")&&(r.uri=e.split("=")[1].replace(/"/g,""))})),n.push(r)}})),n}function P(e){return R.apply(this,arguments)}function R(){return(R=p(v.mark((function e(t){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new N((function(e){var n=new Image;n.src=t.uri,n.crossOrigin="Anonymous";var r=[],o=t.layout.split("x"),i=h(o,2),a=i[0],l=i[1];n.onload=function(){var o=document.createElement("canvas");o.width=n.width,o.height=n.height,o.getContext("2d").drawImage(n,0,0,o.width,o.height);for(var i=o.width/l,s=o.height/a,u=0;u<a;u++)for(var c=0;c<l;c++){var d=document.createElement("canvas");d.width=i,d.height=s,d.getContext("2d").drawImage(o,c*i,u*s,i,s,0,0,i,s);var m=d.toDataURL("image/png");r.push({uri:m,duration:t.duration})}e(r)},n.onerror=function(n){var r,o,i,a;e([{duration:t.duration,uri:"".concat(null===(r=window)||void 0===r||null===(o=r.app_data)||void 0===o||null===(i=o.appcmsMain)||void 0===i||null===(a=i.images)||void 0===a?void 0:a.placeholderCover)}])}})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(e){return O.apply(this,arguments)}function O(){return(O=p(v.mark((function e(t){var n,r;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t);case 3:return n=e.sent,e.next=6,n.text();case 6:return r=e.sent,e.abrupt("return",S(r));case 10:e.prev=10,e.t0=e.catch(0),console.error("Error fetching the M3U8 manifest:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function $(e){return D.apply(this,arguments)}function D(){return(D=p(v.mark((function e(n){var r,o,i;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=C,e.next=3,N.all(t(n).call(n,(function(e){return P(e)})));case 3:return e.t1=r=e.sent,o=(0,e.t0)(e.t1).call(r),i={},t(o).call(o,(function(e,t){var n,r=e.duration;i[r*t]={src:e.uri,style:(n={left:"-60px",height:"85px",width:"130px"},g(n,"left","-60px"),g(n,"border","1px solid transparent"),g(n,"borderRadius","4px"),n)}})),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}k={0:{src:"example-thumbnail.png"}},T=function e(){var t,n,r,o,i;for(r in n=(t=u(Array.prototype).call(arguments)).shift()||{},t)for(i in o=t[r])o.hasOwnProperty(i)&&("object"===s(o[i])?n[i]=e(n[i],o[i]):n[i]=o[i]);return n},A=function(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}},L=function e(t){return"HTML"!==t.nodeName&&"static"===A(t)("position")?e(t.offsetParent):t},m.registerPlugin("thumbnails",(function(e){var t,n,r,o,i,a,l,s;function u(){document.removeEventListener("pointermove",l),document.removeEventListener("pointerup",u),s()}n=T({},k,e),o=this,function(e){var t,n,r;-1!==d(e=navigator.userAgent.toLowerCase()).call(e,"android")&&(n=function(){t.addClass("fake-active")},r=function(){t.removeClass("fake-active")},(t=o.controlBar.progressControl).on("touchstart",n),t.on("touchend",r),t.on("touchcancel",r))}(),(t=document.createElement("div")).className="vjs-thumbnail-holder",r=document.createElement("img"),t.appendChild(r),r.src=n[0].src,r.className="vjs-thumbnail",T(r.style,n[0].style),r.style.left||r.style.right||(r.onload=function(){r.style.left=-r.naturalWidth/2+"px"}),a=o.duration(),o.on("durationchange",(function(e){a=o.duration()})),o.on("loadedmetadata",(function(e){a=o.duration()})),(i=o.controlBar.progressControl).el().appendChild(t),l=function(e){var o,l,s,u,d,m,p,v,f,b;for(l in s=0,f=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,p=((b=L(i.el()).getBoundingClientRect()).width||b.right)+f,m=e.pageX,e.changedTouches&&(m=e.changedTouches[0].pageX),u=m||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,u-=L(i.el()).getBoundingClientRect().left+f,o=Math.floor((u-i.el().offsetLeft)/i.width()*a),n)o>l&&(s=Math.max(s,l));(d=n[s]).src&&r.src!=d.src&&(r.src=d.src),d.style&&r.style!=d.style&&T(r.style,d.style),u+(v=function(e,t){var n;return t?c(t):"auto"!==(n=A(e)("clip"))&&"inherit"!==n&&4===(n=n.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?c(n[1])-c(n[3]):0}(r,d.width||n[0].width)/2)>p?u-=u+v-p:u<v&&(u=v),t.style.left=u+"px"},i.on("mousemove",l),i.on("touchmove",l),i.on("pointerdown",(function(e){document.addEventListener("pointermove",l),document.addEventListener("pointerup",u)})),s=function(e){t.style.left="-1000px"},i.on("mouseout",s),i.on("touchcancel",s),i.on("touchend",s),o.on("userinactive",s)}));var U=function(){var e=p(v.mark((function e(t,n){var r,o,i,a;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t+n);case 2:return r=e.sent,e.next=5,r.text();case 5:return o=e.sent,i=o.split("\n"),a=[],x(i).call(i,(function(e,n){var r;e=y(e).call(e);var o,l={resolution:null,duration:null,uri:null,layout:null};n>0&&f(r=i[n-1]).call(r,"#EXT-X-TILES")&&(i[n-1]=i[n-1].split(","),l.uri=t+e,x(o=i[n-1]).call(o,(function(e){var t,n=f(e).call(e,":")?e.split(":")[1]:e;x(t=n.split(",")).call(t,(function(e){var t=e.split("="),n=h(t,2),r=n[0],o=n[1];r=r.toLowerCase(),l[r]=o}))})),a.push(l))})),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function G(e,t){return F.apply(this,arguments)}function F(){return(F=p(v.mark((function e(t,n){var o,i,l,s,c,m,p,f,b,g,x,y,j,E,N,C,k,T,A,L,B,M,I,S,P,R,X,O,$,D,U,G,F,q,H;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=r(n),s=u(o=t.split("/")).call(o,0,d(i=t.split("/")).call(i,"dash")+1).join("/")||t,e.prev=2,e.next=5,fetch(t);case 5:return f=e.sent,e.next=8,f.text();case 8:b=e.sent,g=new DOMParser,x=g.parseFromString(b,"application/xml"),y=(null==l?void 0:l.duration())||(null===(c=a())||void 0===c||null===(m=c.video)||void 0===m?void 0:m.runtime),j=(null==x||null===(p=x.querySelector("MPD > BaseURL"))||void 0===p?void 0:p.textContent)||s+"/",E=x.getElementsByTagName("AdaptationSet"),N=0;case 15:if(!(N<E.length)){e.next=43;break}if(("image"!==(C=E[N]).getAttribute("contentType")||"image/png"!==C.getAttribute("mimeType"))&&"image/jpeg"!==C.getAttribute("mimeType")){e.next=40;break}if(k=C.getElementsByTagName("SegmentTemplate")[0],T=C.getElementsByTagName("Representation")[0],A=T.getElementsByTagName("EssentialProperty")[0],L=A.getAttribute("value"),B=null==L?void 0:L.split("x"),M=h(B,2),I=M[0],S=M[1],!k){e.next=40;break}if(k.getAttribute("media"),P=k.getAttribute("duration"),R=k.getAttribute("timescale"),X=(R?P/R:P)/(I*S),O=T.getAttribute("id"),$=Math.round(y/X),D=Math.ceil($/(I*S)),U=k.getAttribute("media"),G=w(k.getAttribute("startNumber"))||0,!isNaN(w(D))){e.next=36;break}return e.abrupt("return");case 36:for(F=[],q=V(U),N=0;N<D;N++)H=q?_(q,N+G):U,F.push({duration:X,layout:L,uri:j+H.replace("$Number$",N+G).replace("$RepresentationID$",O)});return e.abrupt("return",F);case 40:N++,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 n,r=e.match(/%0(\d+)d/);if(!r)return e;var o=w(r[1],10),i=E(n=String(t)).call(n,o,"0");return e.replace(/\$Number%0\d+d\$/,i)}function q(e){return H.apply(this,arguments)}function H(){return(H=p(v.mark((function e(t){var n,o,i,a,l,s,u,c,d,m,p,g,h,x,y,j;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=r(t),u=s.currentSource(),c=u.src,c=null!==(n=c)&&void 0!==n&&f(n).call(n,"blob")?null===(o=window)||void 0===o||null===(i=o.player)||void 0===i?void 0:i.getSource():c,null===(a=c)||void 0===a||!f(a).call(a,"m3u8")){e.next=19;break}return e.next=6,X(c);case 6:if(!((null==(d=e.sent)?void 0:d.length)>0)){e.next=17;break}return m=(null==d?void 0:d[0])||null,p=m.uri,g=c.substring(0,b(c).call(c,"/"))+"/",e.next=12,U(g,p);case 12:return h=e.sent,e.next=15,$(h);case 15:x=e.sent,s.thumbnails(x);case 17:e.next=28;break;case 19:if(null===(l=c)||void 0===l||!f(l).call(l,"mpd")){e.next=28;break}return e.next=22,G(c,t);case 22:if(!((null==(y=e.sent)?void 0:y.length)>0)){e.next=28;break}return e.next=26,$(y);case 26:j=e.sent,s.thumbnails(j);case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e,t){var n=r(e),o=null==t?void 0:t.tvProviderLogoUrl;if(o){var i=document.createElement("div");i.className="tvProviderImage";var a=document.createElement("img");a.src="".concat(o),a.alt="Provider Image",i.append(a),n.el().appendChild(i),n.on("useractive",(function(){i.classList.remove("vjs-fade")})),n.on("userinactive",(function(){n.paused()||i.classList.add("vjs-fade")})),n.on("fullscreenchange",(function(){n.isFullscreen_?i.style.top="3.2rem":i.style.top="1rem"}))}}export{M as a,W as b,q as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import o from"@babel/runtime-corejs3/helpers/get";import a from"@babel/runtime-corejs3/helpers/inherits";import n from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.number.to-fixed.js";import"core-js/modules/es.number.constructor.js";import s from"video.js";function l(t){var r=u();return function(){var o,a=i(t);if(r){var s=i(this).constructor;o=e(a,arguments,s)}else o=a.apply(this,arguments);return n(this,o)}}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,m=s.getComponent("Button"),d=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(),o=this.player_.bufferedEnd(),a=this.partEls_,n=function(e,t){var r=e/t||0;return 100*(r>=1?1:r)+"%"};0!==n(o,r)&&(this.el_.style.width=n(o,r));for(var i=0;i<t.length;i++){var s=t.start(i),l=t.end(i),u=a[i];u||(u=this.el_.appendChild(document.createElement("div")),a[i]=u),0!==n(s,o)&&(u.style.left=n(s,o)),0!==n(l-s,o)&&(u.style.width=n(l-s,o))}for(var c=a.length;c>t.length;c--)this.el_.removeChild(a[c-1]);a.length=t.length},f.prototype.update_=function(e,t){var r=this.player_.duration(),o=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-o,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,o=this.player_.duration();this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var a=r.player_.scrubbing()?r.player_.getCache().currentTime:r.player_.currentTime(),n=s.formatTime(o-a,o);0!==t&&o!==Number.POSITIVE_INFINITY&&r.getChild("timeTooltip").update(e,t,"-".concat(n))}))},y.prototype.update=function(e,t){var r=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var o=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(o))}))};var C=function(e){var t=this;e||(e=c),this.on("timeupdate",(function(e){var r,o;(o=(r=t).seekable())&&o.length&&(o.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)+"%",o=t.el().style;return 0!==e&&(this.vertical()?o.height=r:o.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){a(s,m);var n=l(s);function s(e,r){var o;return t(this,s),(o=n.call(this,e,r)).el().innerHTML='<span class="liveCircle"></span><span class="liveText">LIVE</span>',e.paused()||o.addClass("onair"),o}return r(s,[{key:"buildCSSClass",value:function(){return"vjs-live-button ".concat(o(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}();d.registerComponent("LiveButton",g),(s.registerPlugin||s.plugin)("dvrSeekbar",C);export{C as default};
|
package/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"video.js/dist/video-js.min.css";import"./generic-c74188d9.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";export{V as default}from"./index-44c8dad7.js";import"./util-80257541.js";import"./captions-b7fd8308.js";import"./renditions-4c09c626.js";import"./resolution-920515d1.js";import"./skin-58b9263c.js";import"./browser-d4613b36.js";import"./localisation-0bf399a1.js";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"./icons-8e47e640.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/assertThisInitialized";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";
|
|
1
|
+
import"video.js/dist/video-js.min.css";import{g as e,a as n,b as o,c as t,d as r,s as i,e as l,l as a,f as s,h as u,i as c,j as d,k as v,m,n as p,o as f,p as y,q as b,r as h,t as g,u as j,v as w,w as k,x as T,y as I,z as S,A as x,B as E,C,D,E as R,F as N,G as P,H as A,I as O,J as L,K as _,L as V,M as H,N as M,O as U}from"./generic-979547e7.js";import B from"@babel/runtime-corejs3/core-js-stable/object/keys";import F from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import z from"@babel/runtime-corejs3/core-js-stable/instance/filter";import q from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import K from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import G from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import W from"@babel/runtime-corejs3/core-js-stable/object/define-properties";import J from"@babel/runtime-corejs3/core-js-stable/object/define-property";import X from"@babel/runtime-corejs3/helpers/defineProperty";import Y from"@babel/runtime-corejs3/helpers/asyncToGenerator";import Q from"@babel/runtime-corejs3/regenerator";import Z from"@babel/runtime-corejs3/core-js-stable/promise";import $ from"video.js";import ee from"@babel/runtime-corejs3/core-js-stable/instance/concat";import{o as ne,g as oe,a as te,s as re,b as ie}from"./util-1b598a26.js";import{g as le,d as ae,a as se,e as ue}from"./captions-2bcc449f.js";import{g as ce}from"./renditions-7f946d48.js";import{playSelectedResolution as de}from"./resolution-de9dd282.js";import{g as ve,i as me,a as pe}from"./skin-43755201.js";import{d as fe}from"./browser-000da9e7.js";import ye from"@babel/runtime-corejs3/core-js-stable/parse-float";import be from"@babel/runtime-corejs3/core-js-stable/parse-int";import{s as he}from"./localisation-0bf399a1.js";import ge from"@babel/runtime-corejs3/core-js-stable/instance/includes";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/esnext.promise.all-settled.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import je from"@babel/runtime-corejs3/core-js-stable/set";import we from"@babel/runtime-corejs3/core-js-stable/instance/map";import"core-js/modules/es.number.to-fixed.js";import ke from"@babel/runtime-corejs3/core-js-stable/set-timeout";import Te from"@babel/runtime-corejs3/core-js-stable/instance/reduce";import Ie from"@babel/runtime-corejs3/core-js-stable/instance/find-index";import Se from"@babel/runtime-corejs3/core-js-stable/json/stringify";import xe from"@babel/runtime-corejs3/core-js-stable/array/is-array";import Ee from"@babel/runtime-corejs3/helpers/typeof";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.string.match.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/assertThisInitialized";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";var Ce=function(e){return new Z((function(n,o){if(De(e))o("".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;o(ee(t="Error while loading script ".concat(e," : ")).call(t,n))},document.head.appendChild(t)}}))},De=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0},Re=function(e,n,o){var t=ve(e);if(t)if(n>=0&&n<=100){t.muted()&&t.muted(!1);var r=ye(n)/100;t.volume(r),o&&o({status:!0,msg:"Volume set to ".concat(n,"%")})}else o&&o({status:!1,msg:"Please enter a valid volume percentage (0 ≥ V ≤ 100)"});else o({status:!1,msg:"Cannot find player with id: '".concat(e,"'")})},Ne=function(e){var n=ve(e);return n?be(100*n.volume())+"%":"Cannot find player with id: '".concat(e,"'")},Pe=function(){var e=Y(Q.mark((function e(n){var o,t,r,i,l;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=ve(null==n?void 0:n.playerId),null!=n&&null!==(o=n.series)&&void 0!==o&&o.enable||null==n||!n.chromecastReceiverId){e.next=22;break}return e.next=4,import("@silvermine/videojs-chromecast");case 4:return i=e.sent,e.prev=5,e.next=8,Ce("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,i.default($),e.finish(13);case 16:(l=$.getTech("chromecast"))&&!l.prototype.seeking&&(l.prototype.seeking=function(){}),null!==(r=window)&&void 0!==r&&r.cast?null==t||t.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}):window.__onGCastApiAvailable=function(){null==t||t.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"==fe()?null==t||t.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)}}(),Ae=function(e,n){var o=ve(e);o&&n&&o.controlBar&&o.controlBar.progressControl.seekBar.on("click",(function(n){var o,t,r,i,l,a=this.el(),s=$.dom.getPointerPosition(a,n).x;$.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var u=window.cast&&window.cast.framework&&window.cast.framework.CastSession,c=null===(o=window)||void 0===o||null===(t=o.cast)||void 0===t||null===(r=t.framework)||void 0===r||null===(i=r.CastContext)||void 0===i||null===(l=i.getInstance())||void 0===l?void 0:l.S;if(console.log(u),u&&"CONNECTED"===c){window.cast.framework.RemotePlayer.canSeek=!0;var d=new window.cast.framework.RemotePlayerController(window.cast.framework.RemotePlayer),v=d.h.media[0].liveSeekableRange.end;d.getSeekPosition(),window.cast.framework.RemotePlayer.currentTime=v*s,d.seek()}}))};var Oe=function(){var e=Y(Q.mark((function e(){return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z.all([import("videojs-contrib-ads"),import("ima"),Ce("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)}}(),Le=function(){var e=Y(Q.mark((function e(){return Q.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){$.getPlugin("eme")||$.registerPlugin("eme",e.default)}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_e=function(){var e=Y(Q.mark((function e(){var n;return Q.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($),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)}}(),Ve=function(){var e=Y(Q.mark((function e(){return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("./index-9abdfceb.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)}}(),He=function(){var e=Y(Q.mark((function e(){return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Me=Object.freeze({__proto__:null,importChromecast:function(){import("@silvermine/videojs-chromecast").then((function(e){Ce("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1").then((function(){e.default($)})).catch((function(e){console.log(e)}))}))},importAirplay:function(){import("@silvermine/videojs-airplay").then((function(e){e.default($)}))},loadAdsLibrary:Oe,loadEMELibrary:Le,loadMuxPlugin:_e,loadDvrSeekbar:Ve,loadContribDash:He});function Ue(e){return Be.apply(this,arguments)}function Be(){return(Be=Y(Q.mark((function e(n){var o;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(null==n?void 0:n.airplay)||!1,e.next=3,Oe();case 3:o&&"Safari"==fe()&&Promise.resolve().then((function(){return Me})).then((function(e){e.importAirplay()}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fe(e,n){return ze.apply(this,arguments)}function ze(){return(ze=Y(Q.mark((function e(n,o){var t,r,i,l,a,s,u,c,d;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=(null==o?void 0:o.contentType)||"video",u=null==o||null===(t=o[s])||void 0===t?void 0:t.drmEnabled,null==o||null===(r=o[s])||void 0===r||null===(i=r.liveDetails)||void 0===i||i.isDvrEnabled,null==n||n.showPositiveSeekbar,c=(null==o||null===(l=o.video)||void 0===l?void 0:l.isSSAIEnabled)||!1,"Chrome"==fe()&&(c||null===(a=["dirtvision"])||void 0===a||ge(a).call(a,null==o?void 0:o.siteName)),e.prev=6,e.next=9,Z.allSettled([u?"Safari"==fe()?Le():"caliente"!=(null===(d=window)||void 0===d?void 0:d.siteName)?He():Le():null,Pe(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)}function qe(e,n){var o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function Ke(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=qe(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=qe(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var Ge=new je,We=null,Je=function(n,t,r){var i,l,a,s,u,c,d,v={},m=(null==n?void 0:n.contentType)||"video";v["c3.cm.id"]=(null===(i=n[m])||void 0===i?void 0:i.id)||"Null",v["c3.cm.contentType"]=nn(n),v[null==r||null===(l=r.Constants)||void 0===l?void 0:l.IS_LIVE]=!(null==n||!n.linearchannel),v[null==r||null===(a=r.Constants)||void 0===a?void 0:a.STREAM_URL]=t.currentSrc(),v[null==r||null===(s=r.Constants)||void 0===s?void 0:s.VIEWER_ID]="undefined"===e()?"NULL":e(),v["c3.cm.categoryType"]=Ze(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!==(c=n[m])&&void 0!==c&&null!==(d=c.gist)&&void 0!==d&&d.isSSAIEnabled?"YES":"NO",v[r.Constants.DEFAULT_RESOURCE]="AKAMAI",v["c3.cm.brand"]="NULL",v.CDVREnabled=$e(n),v["c3.cm.genreList"]=Ye(n),v["c3.cm.genre"]=Xe(n),v["c3.cm.channel"]=Qe(n);var p=tn(o(),n);return v=Ke(Ke({},v),p)},Xe=function(e){var n,o,t,r=(null==e?void 0:e.contentType)||"video";return(null==e||null===(n=e[r])||void 0===n||null===(o=n.gist)||void 0===o||null===(t=o.primaryCategory)||void 0===t?void 0:t.title)||"Null"},Ye=function(e){var n,o=(null==e?void 0:e.contentType)||"video",t=(null==e||null===(n=e[o])||void 0===n?void 0:n.categories)||[];return we(t).call(t,(function(e){return null==e?void 0:e.title})).join(", ")||"Null"},Qe=function(e){var n,o,t=(null==e?void 0:e.contentType)||"video";return"video"===t?"VOD":(null==e||null===(n=e[t])||void 0===n||null===(o=n.channels[0])||void 0===o?void 0:o.title)||"NULL"},Ze=function(e){return(null==e?void 0:e.contentType)||"null"},$e=function(e){var n,o,t=(null==e?void 0:e.contentType)||"video",r=(null==e||null===(n=e[t])||void 0===n||null===(o=n.liveDetails)||void 0===o?void 0:o.isDvrEnabled)||!1;return r?"YES":"NO"},en=function(e,n){var o,t,r=(n||{}).epg;if(r&&null!=r&&r.enable&&null!=r&&r.programTitle)return r.programTitle;var i=(null==e?void 0:e.contentType)||"video",l=(null==e||null===(o=e[i])||void 0===o||null===(t=o.gist)||void 0===t?void 0:t.title)||"Null";return"".concat(l)},nn=function(e){return"linearchannel"===((null==e?void 0:e.contentType)||"video")?"Live":"VOD"};var on,tn=function(e,o){var r,i,l,a,s,u={"c3.cm.seriesName":"Null","c3.cm.seasonNumber":"Null","c3.cm.showTitle":"Null","c3.cm.episodeNumber":"Null"};if(!e||!o||null!=o&&o.linearchannel)return u;var c=t(),d=n();return u["c3.cm.seriesName"]=(null==o||null===(r=o.video)||void 0===r||null===(i=r.series)||void 0===i?void 0:i.title)||"Null",u["c3.cm.seasonNumber"]=(null==c?void 0:c.toString())||"Null",u["c3.cm.showTitle"]=(null==e||null===(l=e[c-1])||void 0===l||null===(a=l.episodes)||void 0===a||null===(s=a[d-1])||void 0===s?void 0:s.title)||"Null",u["c3.cm.episodeNumber"]=(null==d?void 0:d.toString())||"Null",u},rn=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"}},ln=function(e){switch(e){case"application/x-mpegURL":case"application/vnd.apple.mpegurl":return"HLS";case"application/dash+xml":return"DASH";default:return"Unknown"}},an=function(){var e=Y(Q.mark((function e(n,o){var t,i,l,a,s,u,c,d,v,m;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(null==o?void 0:o.convivaConfig)||{},i=t.trackConvivaPlayerEvent,l=t.paymentHandler,a=t.tveProvider,s=t.enable,u=t.appName,c=(o||{}).token,s){e.next=4;break}return e.abrupt("return");case 4:if(d=ve(n),"function"==typeof(v=i)){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,v("getConvivaObject");case 10:if(m=e.sent){e.next=13;break}return e.abrupt("return");case 13:d.ready((function(){var e=d.tech(!0),n=!1;e.on("keysessioncreated",(function(e){n=!0;var o=e.target;if(o&&o.keySystem){var t=rn(o.keySystem);v("contentInfo",{DRMEnabled:t})}else v("contentInfo",{DRMEnabled:"None"})})),n||v("contentInfo",{DRMEnabled:"None"})})),d.on("loadstart",(function(){var e,n;We&&We!==d.currentSrc()&&v("playbackEnded"),v("setPlayer",d),Ge.clear(),We=d.currentSrc();var t=ln(d.currentType()),i=r(),s=Je(i,d,m);s[null==m||null===(e=m.Constants)||void 0===e?void 0:e.PLAYER_NAME]=u||"WEB",s[null==m||null===(n=m.Constants)||void 0===n?void 0:n.ASSET_NAME]=en(i,o),s.authToken=c||"NULL",s.streamType=t,s.D2CType=l||"NONE",s.subscriberType=a||(l?"D2C":"FREE"),s["c3.cm.affiliate"]=a||"NULL",v("contentInfo",s)})),d.on("loadedmetadata",(function(){var e,n=d.videoHeight();e=n>=2160?"4K":n>=1440?"1440p":n>=1080?"1080p":n>=720?"720p":n>=480?"480p":"".concat(n,"p"),v("contentInfo",{screenResolution:e})})),d.on("play",(function(){Ge.has(d.currentSrc())||(Ge.add(d.currentSrc()),v("playbackStarted",null))})),d.on("ended",(function(){Ge.has(d.currentSrc())&&Ge.delete(d.currentSrc()),v("playbackEnded")})),d.on("ads-loader",(function(e){e&&null!=e&&e.adsLoader&&v("initAdSensor",{player:d,adsLoader:null==e?void 0:e.adsLoader})})),d.on("dispose",(function(){null==Ge||Ge.clear(),v("playbackEnded")}));case 20:case"end":return e.stop()}}),e)})));return function(n,o){return e.apply(this,arguments)}}(),sn=function(e,n){var o=null==n?void 0:n.skin;"default"==o?import("./skin-cc14c02c.js").then((function(o){o.initialiseSkin(e,n)})):"carousel"==o?import("./skin-e597a51b.js").then((function(n){n.initaliseSkin(e)})):"defaultV2"==o?import("./skin-b9b4babd.js").then((function(o){o.initialiseSkin(e,n)})):"multiplayer"==o?import("./skin-9c36b83f.js").then((function(o){o.initialiseSkin(e,n)})):"minimalist"==o?import("./skin-e12e8689.js").then((function(o){o.initaliseSkin(e,n)})):"VL_ONE"==o&&import("./skin-d432bcd8.js").then((function(o){o.initialiseSkin(e,n)}))};function un(e,n){var o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function cn(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=un(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=un(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var dn=[],vn=0,mn=null;function pn(e,n,o){var t,r,l,a,s,u=arguments.length>3&&void 0!==arguments[3]&&arguments[3];null==n||null===(t=n.watchHistory)||void 0===t||t.apiVersion;var c=null==n||null===(r=n.watchHistory)||void 0===r?void 0:r.profileId,d=Math.floor(e.currentTime()),v=Math.floor(e.duration());null==n||null===(l=n.watchHistory)||void 0===l||l.xapiKey;var m=(null==n||null===(a=n.video)||void 0===a?void 0:a.originalObjectId)||null,p=(null==n||null===(s=n.watchHistory)||void 0===s?void 0:s.saveOffline)||!1,f=Math.floor(e.currentTime()),y=u?100:Math.floor(d/v*100),b={};p?yn(b={completed:u,watchedTime:f,watchedPercentage:y},c,n.siteOwner):(b=cn(cn({videoId:on,watchedTime:f,watchedPercentage:y,doneWatching:u,profileId:c},mn&&{seriesId:mn}),m&&{originalObjectId:m}),i(b).then((function(e){})).catch((function(e){}))),vn=d+o}function fn(e){var n=[];return e&&(n=JSON.parse(localStorage.getItem("".concat(e))||"[]")),n}function yn(e,n,o){var t,i=n?"watchhistory-data-".concat(n):"watchhistory-data-guest-".concat(o),l=fn(i),a=(new Date).getTime(),s=r(),u=(null==s?void 0:s.video)||{},c=Te(t=["id","title","gist","categories","tags","status","publishDate","plans","isVerticalVideo","monetizationBadgeIdentifier","runtime"]).call(t,(function(e,n){return cn(cn({},e),{},X({},n,u[n]))}),{}),d=Ie(l).call(l,(function(e){var n;return(null==e||null===(n=e.content)||void 0===n?void 0:n.id)===on}));d<0?l.push(cn(cn({content:c},e),{},{addedDate:a,updateDate:a})):l[d]=cn(cn(cn({},l[d]),e),{},{updateDate:a}),localStorage.setItem("".concat(i),Se(l))}function bn(e,n,o){var t=fn(e?"watchhistory-data-".concat(e):"watchhistory-data-guest-".concat(o)),r=[];return t&&xe(t)&&(r=z(t).call(t,(function(e){var o;return(null==e||null===(o=e.content)||void 0===o?void 0:o.id)===n}))),r}var hn=!1,gn=function(e,n){var o,t,r=(null==e?void 0:e.contentType)||"video";if(((null==e||null===(o=e[r])||void 0===o||null===(t=o.streamingInfo)||void 0===t?void 0:t.secondaryVideoAssets)||null)&&!hn){var i=jn(e,"videoAssets","secondaryVideoAssets"),s=l(i,n);return s&&a(n,s),hn=!0,console.log("switching to secondary source"),!0}return console.log("secondary source is either corrupted / not available"),!1};function jn(e,n,o){if(xe(e))return we(e).call(e,(function(e){return jn(e,n,o)}));if(null!==e&&"object"===Ee(e)){var t,r={};return K(t=B(e)).call(t,(function(t){t===n&&void 0!==e[o]?r[t]=e[o]:t===o&&void 0!==e[n]?r[t]=e[n]:r[t]=jn(e[t],n,o)})),r}return e}function wn(e,n){var o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function kn(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=wn(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=wn(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var Tn=function(e,n,o,t){var i,l,a,v,m=t.res,p=t.sres,f=ve(e),y=(null==m?void 0:m.contentType)||"video",b=(null==m||null===(i=m[y])||void 0===i||null===(l=i.streamingInfo)||void 0===l?void 0:l.isLiveStream)||!1,h=(null==m||null===(a=m[y])||void 0===a||null===(v=a.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1;s(m),f&&(f.on("loadstart",(function(){b?o.resolve({status:!0,msg:"Video Loaded",response:m}):o.resolve(kn({status:!0,msg:"Player Initialised"},p?{seriesResponse:p,response:m}:{response:m}))})),f.on("loadeddata",(function(){var o,t,i,l=le(e);if(null==l||we(l).call(l,(function(n){return ae(e,n.id)})),h&&"Safari"===fe())try{var a;null==f||null===(a=f.liveTracker)||void 0===a||a.seekToLiveEdge()}catch(e){console.log("Cannot seek to Live Edge",e)}(null==f||!f.muted())&&Re(e,sessionStorage.getItem("volume")||"100");var s=r();if(u(),null!=n&&n.watchHistory&&null!=n&&null!==(o=n.watchHistory)&&void 0!==o&&o.enable&&(!n.isAnonymousUser||null!=n&&null!==(t=n.watchHistory)&&void 0!==t&&t.saveOffline)){var c,d,v=kn(kn({},n),m);!function(e,n,o){var t,r,i;null!=n&&n.series&&null!=n&&null!==(t=n.series)&&void 0!==t&&t.enable&&(mn=null==n||null===(r=n.series)||void 0===r?void 0:r.id),dn=[],vn=0,on=o;var l=(null==n||null===(i=n.watchHistory)||void 0===i?void 0:i.interval)||30,a=ve(e);a&&(a.on("timeupdate",(function(){var e=Math.floor(a.currentTime());ge(dn).call(dn,vn)||(e==vn?(dn.push(e),pn(a,n,l)):e>vn&&(vn=e+l))})),a.one("ended",(function(){pn(a,n,l,!0)})))}(e,v,null==s||null===(c=s.video)||void 0===c||null===(d=c.gist)||void 0===d?void 0:d.id)}if(null!=n&&null!==(i=n.analytics)&&void 0!==i&&i.muxKey&&null!=f&&f.mux){var p,y,b,g,j,w,k=(null===(p=r())||void 0===p?void 0:p.video)||(null==m?void 0:m.video),T=null==k?void 0:k.gist,I={env_key:null==n||null===(y=n.analytics)||void 0===y?void 0:y.muxKey,player_name:"vl-web-player",player_version:null===(b=window)||void 0===b?void 0:b.vl_player_version,video_id:null==T?void 0:T.id,video_title:null==T?void 0:T.title,video_series:null==k||null===(g=k.series)||void 0===g?void 0:g.title,video_stream_type:null!=k&&null!==(j=k.streamingInfo)&&void 0!==j&&j.isLiveStream?"live":"video",viewer_user_id:null==n||null===(w=n.analytics)||void 0===w?void 0:w.userId};f.mux({debug:!1,data:I})}})),f.textTracks().on("change",(function(e){var n,o=z(n=this.tracks_).call(n,(function(e){if(("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode)return!0}))[0];f.trigger("subtitlechanged",o)})),f.on("subtitlechanged",(function(e,n){var o,t,r,i,l,a,s,u,c,d,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,m=null===(o=window)||void 0===o||null===(t=o.cast)||void 0===t||null===(r=t.framework)||void 0===r||null===(i=r.CastContext)||void 0===i||null===(l=i.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===(c=u.CastContext)||void 0===c||null===(d=c.getInstance())||void 0===d?void 0:d.getCurrentSession();if(v&&"CONNECTED"===m){var f,y=p.getMediaSession(),b=y.media.tracks,h=z(b).call(b,(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(){b&&gn(m,e)})),f.on("error",(function(){var n,t;(console.log("ERROR",f.error(),f.error().code),4===f.error().code&&b)?gn(m,e):(c(e,(null==f||null===(n=f.error())||void 0===n?void 0:n.message)||"Some error occured"),o.reject({status:!1,msg:(null==f||null===(t=f.error())||void 0===t?void 0:t.message)||"Some error occured",response:m}))})),f.one("play",(function(){var e;if(null!=n&&null!==(e=n.series)&&void 0!==e&&e.enable){var o,t,i,l=null===(o=r())||void 0===o||null===(t=o.video)||void 0===t||null===(i=t.gist)||void 0===i?void 0:i.id,a=d(),s=(null==a?void 0:a.get(l))||{t:0,p:0},u=s.t,c=s.p;u&&c<95&&ke((function(){f.currentTime(u)}),0)}else null!=n&&n.watchHistoryResumeTime&&(null==n?void 0:n.watchedPercentage)<95&&ke((function(){f.currentTime(null==n?void 0:n.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(b){f.currentSource();for(var e=f.textTracks(),n=e.length-1;n>=0;n--)f.removeRemoteTextTrack(e[n])}})))};function In(e,n){var o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function Sn(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=In(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=In(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var xn=function(e,n,o,t){var r,i,s,u,d,y,b,h,g,j,w,k,T,I,S,x,E,C,D,R,N,P,A,O,L,_,V,H,M,U,B,F,q=n.res,K=void 0===q?null:q,G=n.sres,W=void 0===G?null:G,J=null!=o&&o.chromecastReceiverId?["chromecast","html5"]:["html5"],Z=(null===(r=K)||void 0===r?void 0:r.contentType)||"video",ee=me(null===(i=K)||void 0===i||null===(s=i[Z])||void 0===s||null===(u=s.gist)||void 0===u?void 0:u.videoImageUrl)||me(null===(d=K)||void 0===d||null===(y=d[Z])||void 0===y||null===(b=y.gist)||void 0===b||null===(h=b.imageGist)||void 0===h?void 0:h.r16x9),ne=(null===(g=K)||void 0===g||null===(j=g[Z])||void 0===j||null===(w=j.liveDetails)||void 0===w?void 0:w.isDvrEnabled)||!1,oe=(null===(k=K)||void 0===k||null===(T=k[Z])||void 0===T||null===(I=T.streamingInfo)||void 0===I?void 0:I.isLiveStreafm)||!1,te=(null===(S=K)||void 0===S||null===(x=S.ads)||void 0===x||null===(E=x.preRoll)||void 0===E||null===(C=E.adTags)||void 0===C||null===(D=C.web)||void 0===D?void 0:D.active)&&(null===(R=K)||void 0===R||null===(N=R.ads)||void 0===N||null===(P=N.preRoll)||void 0===P||null===(A=P.adTags)||void 0===A||null===(O=A.web)||void 0===O?void 0:O.url),re=(null===(L=K=Sn(Sn({},K),{},{audioAssetSource:null==o?void 0:o.audioAssetSource}))||void 0===L||null===(_=L.video)||void 0===_?void 0:_.isSSAIEnabled)||!1;"Chrome"==fe()&&(re||null===(V=["dirtvision"])||void 0===V||ge(V).call(V,null===(H=K)||void 0===H?void 0:H.siteName));var ie=(null==o?void 0:o.latency)||6,le=(F={enableSmoothSeeking:!0,controls:0!=(null==o?void 0:o.controls),playsinline:!0,fluid:!0,aspectRatio:"16:9",muted:(null==o?void 0:o.muted)||!1,autoplay:(null==o?void 0:o.autoplay)||!1,controlBar:{volumePanel:{inline:!1},fullscreenToggle:!0,audioTrackButton:!0,pictureInPictureToggle:!1},muteToggle:"multiplayer"==o.skin,liveui:ne},X(F,"autoplay",null==o?void 0:o.autoplay),X(F,"normalizeAutoplay",(null==o?void 0:o.autoplay)&&!te),X(F,"loop",(null==o?void 0:o.loop)||!1),X(F,"audioPosterMode",null==o?void 0:o.audioPosterMode),X(F,"html5",Sn(Sn({dash:Sn(Sn({},!$.browser.IS_SAFARI&&{useTTML:!0}),{},{updateSettings:{streaming:{delay:{liveDelay:ie},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:Sn(Sn({liveRangeSafeTimeDelta:ie,useDevicePixelRatio:!0,experimentalLLHLS:(null==o?void 0:o.lowLatency)||!1,limitRenditionByPlayerDimensions:!1,useNetworkInformationApi:!0},(null==o||null===(M=o.customData)||void 0===M?void 0:M.overrideNative)&&{overrideNative:!0}),{},{enableLowInitialPlaylist:!0}),nativeTextTracks:"Safari"==fe()},0==(null==o||null===(U=o.customData)||void 0===U?void 0:U.nativeAudioTracks)&&{nativeAudioTracks:!1}),0==(null==o||null===(B=o.customData)||void 0===B?void 0:B.nativeVideoTracks)&&{nativeVideoTracks:!1})),X(F,"poster",ee),X(F,"techOrder",J),X(F,"chromecast",{requestCustomDataFn:function(n){var o=ve(e),t=(null==o?void 0:o.textTracksJson_)||o.textTracks().tracks_,r=z(t).call(t,(function(e){return"captions"==e.kind||"subtitles"==e.kind}));return function(e,n,o){var t,r,i,l,a,s,u,c,d,v,m=(null==e?void 0:e.contentType)||"video",p={};if(e&&null!=e&&e[m]&&null!=e&&e[m].drmEnabled){var f,y,b,h,g,j,w,k;p.isDrmEnabled=!0;var T=(null==n||null===(f=n.keySystems)||void 0===f?void 0:f["com.widevine.alpha"])||null,I=(null==T?void 0:T.url)||(null==n||null===(y=n.keySystemOptions)||void 0===y||null===(b=y[0])||void 0===b||null===(h=b.options)||void 0===h?void 0:h.serverURL);p.licenseUrl=I;var S=(null==T?void 0:T.licenseHeaders["X-AxDRM-Message"])||(null==n||null===(g=n.keySystemOptions)||void 0===g||null===(j=g[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=S}var x=(null==e||null===(t=e[m])||void 0===t||null===(r=t.gist)||void 0===r?void 0:r.contentType)||"VIDEO";p.contentType=x;var E=null==e||null===(i=e[m])||void 0===i||null===(l=i.gist)||void 0===l?void 0:l.runtime;p.duration=E;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 D=null==e||null===(u=e[m])||void 0===u||null===(c=u.gist)||void 0===c?void 0:c.videoImageUrl;return p.mediaImage=D,p.subTitles=o,p.DVR=(null==e||null===(d=e[m])||void 0===d||null===(v=d.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(p),p}(K,n,r)},modifyLoadRequestFn:function(n){var o,t,r,i,l,a=ve(e),s=(null==a?void 0:a.currentSource())||{};!(null===(o=K)||void 0===o||null===(t=o[Z])||void 0===t||null===(r=t.streamingInfo)||void 0===r||null===(i=r.videoAssets)||void 0===i?void 0:i.is4K)&&1||null!=s&&s.src&&null!=s&&null!==(l=s.src)&&void 0!==l&&ge(l).call(l,".m3u8")&&(n.media.hlsSegmentFormat="fmp4",n.media.hlsVideoSegmentFormat="fmp4");return n}}),F);if(!$.getPlayers()[e]){le.spatialNavigation={enabled:!0,horizontalSeek:!0};var ae=$(e,le,function(){var n=Y(Q.mark((function n(){var r,i,s,u,d,y,b,h,g,j,w,k,T,I,S,x,E,C,D,R;return Q.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ae.spatialNavigation.start(),console.log(ae),console.log($.VERSION),console.log($.getPlugins()),n.next=6,Fe(o,K);case 6:k=null===(r=K)||void 0===r||null===(i=r[Z])||void 0===i||null===(s=i.liveDetails)||void 0===s?void 0:s.startOverTime,oe&&t.resolve(Sn({status:!0,msg:"Player Initialised"},W?{seriesResponse:W,response:K}:{response:K})),v(e,null==o?void 0:o.analyticsCb),an(e,o),/Android/i.test(navigator.userAgent)&&($.options.vhs.overrideNative=!0),ne&&Ae(e,k),!te||null!=o&&null!==(u=o.customData)&&void 0!==u&&u.disableAds||m(e,te,K),T=l(K,e),console.log(T),null!=o&&o.nearestClusterUrl&&(T=p(T,o.nearestClusterUrl)),T?a(e,T):(t.reject({status:!1,msg:"Incompatible / Missing Source",response:K}),c(e,"Incompatible / Missing Source")),((null===(d=K)||void 0===d||null===(y=d[Z])||void 0===y||null===(b=y.contentDetails)||void 0===b||null===(h=b.closedCaptions)||void 0===h?void 0:h.length)>0||(null===(g=K)||void 0===g||null===(j=g[Z])||void 0===j||null===(w=j.closedCaptions)||void 0===w?void 0:w.length)>0)&&(R=(null===(S=K)||void 0===S||null===(x=S[Z])||void 0===x||null===(E=x.contentDetails)||void 0===E?void 0:E.closedCaptions)||(null===(C=K)||void 0===C||null===(D=C[Z])||void 0===D?void 0:D.closedCaptions),I=z(R).call(R,(function(e){return"VTT"===e.format})),se(e,I)),null!=o&&o.disableControls?f(e):sn(e,Sn(Sn(Sn({},o),le),{},{liveVideo:oe,isDvrEnabled:ne,res:K,sres:W})),Tn(e,Sn(Sn(Sn({},o),le),{},{liveVideo:oe}),t,{res:K,sres:W});case 20:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}())}},En={spinco:"e8f2c1a7-5d94-4a1f-93ea-7c0b9186f1cd"};function Cn(e,n){var o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function Dn(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=Cn(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=Cn(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}var Rn,Nn=function(e,n){var o=n.resolve,t=n.reject,r=null==e?void 0:e.playerId,i=Pn(e);xn(r,{res:i},e,{resolve:o,reject:t})},Pn=function(e){var n,o,t=null==e?void 0:e.streamingInfo,r=null==e||null===(n=e.streamingInfo)||void 0===n?void 0:n.videoAssets,i=(null==e||null===(o=e.streamingInfo)||void 0===o?void 0:o.isDrmEnabled)||null,l=null==e?void 0:e.token,a=y(l),s=null==a?void 0:a.site;return Dn(Dn({id:null==En?void 0:En[s]},!i&&{directPlaybackUrl:null==r?void 0:r.url}),{},{video:{drmEnabled:i,streamingInfo:{videoAssets:{widevine:null==r?void 0:r.widevine,fairPlay:null==r?void 0:r.fairPlay,playReady:null==r?void 0:r.playReady}},liveDetails:{isDvrEnabled:null==t?void 0:t.isDvrEnabled}}})};function An(e,n){return On.apply(this,arguments)}function On(){return(On=Y(Q.mark((function e(n,o){var t,r,i,l,a,u;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.resolve,r=o.reject,i=null==n?void 0:n.videoId,l=null==n?void 0:n.playerId,a=!(null==n||!n.anonymousId),e.next=6,j();case 6:u=e.sent,b(i,u).then((function(e){var o,c,d,v;window.contentType=null==e||null===(o=e.data)||void 0===o||null===(c=o.video)||void 0===c||null===(d=c.gist)||void 0===d?void 0:d.contentType,s(null==e?void 0:e.data);var m,p=null==e?void 0:e.data;if(null!=n&&n.watchHistory&&null!=n&&null!==(v=n.watchHistory)&&void 0!==v&&v.enable&&!a)if((null===(m=n.watchHistory)||void 0===m?void 0:m.saveOffline)||!1){var f,y,b,g=bn((null===(f=n.watchHistory)||void 0===f?void 0:f.profileId)||"",i,null==n?void 0:n.siteOwner);if(g&&g.length)n.watchHistoryResumeTime=(null===(y=g[0])||void 0===y?void 0:y.watchedTime)||null,n.watchedPercentage=(null===(b=g[0])||void 0===b?void 0:b.watchedPercentage)||null;p.contentType="video",xn(l,{res:p},n,{resolve:t,reject:r})}else h(i,u).then((function(e){var o,t,r,i,l,a;null!==(o=window)&&void 0!==o&&null!==(t=o.watchHistory)&&void 0!==t&&t.cb&&(null===(r=window)||void 0===r||null===(i=r.watchHistory)||void 0===i||i.cb(null==e?void 0:e.data)),n.watchHistoryResumeTime=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedTime)||null,n.watchedPercentage=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedPercentage)||null,p.contentType="video"})).catch((function(e){var n,o,t,r;null!==(n=window)&&void 0!==n&&null!==(o=n.watchHistory)&&void 0!==o&&o.cb&&(null===(t=window)||void 0===t||null===(r=t.watchHistory)||void 0===r||r.cb(e))})).finally((function(){xn(l,{res:p},n,{resolve:t,reject:r})}));else xn(l,{res:p},n,{resolve:t,reject:r})})).catch((function(e){g(e,l,r,i)}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ln(e,n){return _n.apply(this,arguments)}function _n(){return(_n=Y(Q.mark((function e(n,o){var t,r,i,l,a;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.resolve,r=o.reject,e.next=3,j();case 3:i=e.sent,l=null==n?void 0:n.playerId,a=null==n?void 0:n.epg,w(a,i).then((function(e){var o=null==e?void 0:e.data;o.contentType="linearchannel",o.channelId=null==a?void 0:a.channelId,xn(l,{res:o},n,{resolve:t,reject:r})})).catch((function(e){g(e,l,r,videoId)}));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vn(e,n){return Hn.apply(this,arguments)}function Hn(){return(Hn=Y(Q.mark((function e(n,o){var t,r,i,l,a,u,c;return Q.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.resolve,i=o.reject,e.next=3,j();case 3:l=e.sent,a=null==n?void 0:n.playerId,u=sessionStorage.getItem("season-idx")||0,k.set(be(u)),c=null==n||null===(t=n.series)||void 0===t?void 0:t.id,T(c,l).then((function(e){var o,t,u,d=e.data,v=e.data.seasons;S(v);var m=videoId||(null==v||null===(o=v[0])||void 0===o||null===(t=o.episodes)||void 0===t||null===(u=t[0])||void 0===u?void 0:u.id);I(c,l),b(m,l).then((function(e){var o,t,l;window.contentType=null==e||null===(o=e.data)||void 0===o||null===(t=o.video)||void 0===t||null===(l=t.gist)||void 0===l?void 0:l.contentType,s(e.data),xn(a,{res:null==e?void 0:e.data,sres:d},n,{resolve:r,reject:i})})).catch((function(e){g(e,a,i,videoId)}))})).catch((function(e){g(e,a,i)}));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mn(e,n){var o=B(e);if(F){var t=F(e);n&&(t=z(t).call(t,(function(n){return q(e,n).enumerable}))),o.push.apply(o,t)}return o}function Un(e){for(var n=1;n<arguments.length;n++){var o,t,r=null!=arguments[n]?arguments[n]:{};n%2?K(o=Mn(Object(r),!0)).call(o,(function(n){X(e,n,r[n])})):G?W(e,G(r)):K(t=Mn(Object(r))).call(t,(function(n){J(e,n,q(r,n))}))}return e}function Bn(){return{loadVideoInstantly:x,onTimeUpdate:ne,getVideoDuration:oe,onVideoEnded:te,init:function(e){return console.log("%c VIDEOJS-8 ","background: #bdf369; color: #000"),new Z(function(){var n=Y(Q.mark((function n(o,t){var r,i,l,a,s,u,c,d,v,m,p,f,y,h,j,w,k,T,I,S,x,E,C;return Q.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!N(null==e?void 0:e.playerId)){n.next=2;break}return n.abrupt("return");case 2:if(p=(null==e?void 0:e.videoSourceUrl)||!1,f=null==e?void 0:e.asat,y=(null==e||null===(r=e.epg)||void 0===r?void 0:r.enable)||!1,h=null==e?void 0:e.videoId,j=(null==e||null===(i=e.series)||void 0===i?void 0:i.enable)||!1,w=(null==e?void 0:e.streamingInfo)||!1,window.videoId=h,k=null==e?void 0:e.token,!V(e)){n.next=17;break}if(sessionStorage.setItem("vlp_token",k),H().set(null==e?void 0:e.refreshToken),k&&!M(k)){n.next=16;break}return t({status:!1,msg:"".concat(k?"Token is expired !":"Missing Authorization Token"),response:{token:k}}),n.abrupt("return");case 16:Rn=JSON.parse(atob(k.split(".")[1]));case 17:return e.isAnonymousUser=!(null===(l=Rn)||void 0===l||!l.anonymousId),e.siteOwner=(null===(a=Rn)||void 0===a?void 0:a.site)||null,e.userId=(null===(s=Rn)||void 0===s?void 0:s.userId)||null,window.sessionStorage.setItem("uid",null===(u=Rn)||void 0===u?void 0:u.userId),window.watchHistory=e.watchHistory||null,T=null==e?void 0:e.playerId,e.chromecastReceiverId=null!=e&&null!==(c=e.series)&&void 0!==c&&c.enable?null:null==e?void 0:e.chromecastReceiverId,I=(null==e||null===(d=e.analytics)||void 0===d?void 0:d.gaId)||null,(S=null==e?void 0:e.errors)&&(window.customErrors=S),window.customData=null==e?void 0:e.customData,he(null==e||null===(v=e.customData)||void 0===v?void 0:v.localisation),_.set(e.apiBaseUrl),null!=e&&e.skin&&!pe(e.skin)||(e.skin="VL_ONE"),n.next=33,Ue(e);case 33:I&&Ce("https://www.googletagmanager.com/gtag/js?id=".concat(I)).then((function(){return U(I)})).catch((function(e){})),(x=null===(m=document)||void 0===m?void 0:m.getElementById("".concat(T)))&&x.addEventListener("contextmenu",(function(e){return e.preventDefault()})),p?(C={directPlaybackUrl:p,id:E="c09576ca-8202-4e8e-ba1e-06d1ab0ce063"},f?b(E,k).then((function(n){var r=(null==n?void 0:n.data)||{};xn(T,{res:Un(Un({},r),C)},e,{resolve:o,reject:t})})).catch((function(e){g(e,T,t,E)})):xn(T,{res:C},e,{resolve:o,reject:t})):w?Nn(e,{resolve:o,reject:t}):j?Vn(e,{resolve:o,reject:t}):y?Ln(e,{resolve:o,reject:t}):An(e,{resolve:o,reject:t});case 37:case"end":return n.stop()}}),n)})));return function(e,o){return n.apply(this,arguments)}}())},getRenditions:ce,skip:E,getPlayer:ve,play:C,pause:D,detectBrowser:fe,rewind:R,loadVideo:a,seekToTimeStamp:re,isPlayerInitialised:N,load:P,authenticateLC:A,dispose:O,enableCaptions:ue,disableCaptions:ae,getCaptions:le,playSelectedResolution:de,getSource:l,setVolume:Re,getVolume:Ne,disableControls:f,setPlaybackSpeed:ie,getEntitlementData:L}}export{Bn as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/instance/includes";import{B as l,E as r}from"./generic-979547e7.js";import{g as a}from"./skin-43755201.js";function n(n,o){var i,c,s,u=a(n),d=null==u||null===(i=u.controlBar)||void 0===i||null===(c=i.playToggle)||void 0===c?void 0:c.el_,m=document.getElementsByTagName("video")[0];null===(s=document)||void 0===s||s.addEventListener("keydown",(function(a){var i,c;if(t.enabled&&"input"!=a.target.localName){var s=a.key,v=!0===o.liveVideo||!0===o.liveui;switch(e(i=[" ","m","M","f","F","ArrowLeft","ArrowRight"]).call(i,s)&&(a.preventDefault(),null==m||m.focus()),s){case" ":null==d||d.click();break;case"m":case"M":u.muted(!u.muted());break;case"f":case"F":null===(c=document.querySelector(".vjs-fullscreen-control"))||void 0===c||c.click();break;case"ArrowLeft":v&&!1===o.liveui||r(n,10);break;case"ArrowRight":v||l(n,10)}}}),!0)}var o,t=(o=!0,{enable:function(){o=!0},disable:function(){o=!1},get enabled(){return o}});export{n as i,t as k};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import r from"@babel/runtime-corejs3/helpers/classCallCheck";import s from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/inherits";import o from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import a from"@babel/runtime-corejs3/helpers/getPrototypeOf";import i from"@babel/runtime-corejs3/core-js-stable/instance/slice";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import c from"video.js";import{h as n,f as m,i as l}from"./icons-68d3a609.js";import{G as d,C as p}from"./generic-979547e7.js";import{e as j,s as u,j as b}from"./skin-43755201.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-2bcc449f.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"@babel/runtime-corejs3/helpers/toConsumableArray";function y(r){var s=f();return function(){var t,i=a(r);if(s){var c=a(this).constructor;t=e(i,arguments,c)}else t=i.apply(this,arguments);return o(this,t)}}function f(){try{var r=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(r){}return(f=function(){return!!r})()}var v=c.getComponent("Component"),h=function(e){t(a,v);var o=y(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=c.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var r=c.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(n())});return c.dom.appendContent(e,r),e}},{key:"loadCSS",value:function(){import("./multicamv2-b7cec0cf.js").then((function(e){var r=document.createElement("style");r.id="multicam-v2",r.append("".concat(e.default)),document.head.appendChild(r)}))}},{key:"initialiseStructure",value:function(){var e=this,r=this.el(),s=c.dom.createEl("div",{className:"stream-container hidden"});c.dom.$(".stream-selector-icon",this.el()).onclick=function(){var t;null!==(t=s.classList)&&void 0!==t&&t.contains("hidden")?(j(),s.classList.remove("hidden"),r.classList.add("open"),u(e.playerId,s)):(s.classList.add("hidden"),r.classList.remove("open"))};var t=document.getElementById(this.playerId);if(t){var o=window.getComputedStyle(t,null).getPropertyValue("height"),a=i(o).call(o,0,-2);s.style.height="".concat(a,"px"),t.style.overflow="hidden",c.dom.appendContent(r,s),this.addFunctionality(s)}}},{key:"addFunctionality",value:function(e){var r=this,s=this.el(),t=c.dom.createEl("div",{className:"stream-selector-head"}),o=c.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(m())});o.onclick=function(){e.classList.add("hidden"),s.classList.remove("open")};for(var a=c.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),i=c.dom.createEl("div",{className:"stream-selector-content"}),n=c.dom.createEl("div",{className:"stream-tray"}),j=function(e){var s,t,o,a=c.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(l())});0==e&&(a.classList.add("selected"),a.style.border="2px solid #D2393B"),a.onclick=function(){for(var s=c.dom.$$(".stream"),t=0;t<s.length;t++)s[t].style.border="none",s[t].classList.remove("selected");a.classList.add("selected"),a.style.border="2px solid #D2393B",d(r.playerId,r.streams[e].id).then((function(e){p(r.playerId),console.log(e)})).catch((function(e){console.log(e)}))},a.style.backgroundImage="url(".concat(r.streams[e].img,")");var m=document.createElement("img");m.className="stream-thumbnail-image",m.src="".concat((null==r||null===(s=r.streams[e])||void 0===s?void 0:s.img)||(null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.fallbackImage)),a.append(m),c.dom.appendContent(n,a),c.dom.appendContent(i,n)},u=0;u<this.streams.length;u++)j(u);c.dom.appendContent(t,o),c.dom.appendContent(t,a),c.dom.appendContent(e,t),c.dom.appendContent(e,i),b(this.playerId,e)}}]),a}();export{h as default};
|