@theoplayer/extended 11.13.0 → 11.14.0
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/THEOplayer.chromeless.d.ts +4 -3
- package/THEOplayer.chromeless.esm.js +3 -4
- package/THEOplayer.chromeless.js +21 -4
- package/THEOplayer.common.d.ts +9738 -9884
- package/THEOplayer.common.esm.js +22 -5
- package/THEOplayer.d.ts +193 -199
- package/THEOplayer.esm.js +38 -4
- package/THEOplayer.js +27 -4
- package/THEOplayer.transmux.asmjs.js +21 -4
- package/THEOplayer.transmux.js +21 -4
- package/package.json +1 -1
- package/theoplayer.d.js +21 -4
package/THEOplayer.esm.js
CHANGED
|
@@ -34,7 +34,41 @@
|
|
|
34
34
|
THEOplayer is based on patented technology developed by
|
|
35
35
|
THEO Technologies (https://www.theoplayer.com).
|
|
36
36
|
|
|
37
|
-
Version: 11.
|
|
38
|
-
Created: 2026-10-
|
|
39
|
-
*/
|
|
40
|
-
var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==a?a:"undefined"!=typeof global?global:this,a=s.window,h=s.document,u=(s.location,s.navigator,s.setTimeout),c=s.clearTimeout,v=(s.setInterval,s.clearInterval,s.Error),p=s.TypeError,m=s.SyntaxError,g=s.Object,w=s.Math,k=s.parseInt,_=s.parseFloat,j=s.isNaN,x=s.Uint8Array;s.Worker,s.WorkerGlobalScope,s.XMLHttpRequest;import{$ as S,$a as T,A as C,Aa as P,Ab as M,B as A,Ba as I,Bb as E,C as D,Ca as N,Cb as F,D as B,Da as $,Db as R,E as O,Ea as V,Eb as U,F as L,Fa as H,Fb as z,G as W,Ga as q,Gb as G,H as X,Ha as J,Hb as Q,I as Y,Ia as K,Ib as Z,J as tt,Ja as it,K as st,Ka as et,L as nt,La as rt,M as ht,Ma as ot,N as at,Na as ut,O as ct,Oa as lt,P as dt,Pa as ft,Q as vt,Qa as pt,R as mt,Ra as gt,S as yt,Sa as bt,T as wt,Ta as kt,U as _t,Ua as jt,V as xt,Va as St,W as Tt,Wa as Ct,X as Pt,Xa as Mt,Y as At,Ya as It,Z as Et,Za as Dt,_ as Nt,_a as Ft,a as Bt,aa as $t,ab as Rt,b as Ot,ba as Vt,bb as Ut,c as Lt,ca as Ht,cb as zt,d as Wt,da as qt,db as Gt,e as Xt,ea as Jt,eb as Qt,f as Yt,fa as Kt,fb as Zt,g as ti,ga as ii,gb as si,h as ei,ha as ni,hb as ri,i as hi,ia as oi,ib as ai,j as ui,ja as ci,jb as li,k as l,ka as di,kb as fi,l as vi,la as pi,lb as mi,m as gi,ma as yi,mb as bi,n as wi,na as ki,nb as e,o as _i,oa as ji,ob as xi,p as Si,pa as Ti,pb as Ci,q as Pi,qa as Mi,qb as Ai,r as Ii,ra as Ei,rb as Di,s as Ni,sa as Fi,sb as Bi,t as $i,ta as Ri,tb as Oi,u as Vi,ua as Ui,ub as Li,v as Hi,va as zi,vb as Wi,w as qi,wa as Gi,wb as Xi,x as Ji,xa as Qi,xb as Yi,y as Ki,ya as Zi,yb as ts,z as is,za as ss,zb as es}from"./THEOplayer.common.esm.js";Lt(),Lt(),Lt(),Lt();var ns=[];var rs=[];Lt(),Lt(),Lt(),Lt();var hs=void 0!==a?a:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},os=void 0!==h?h:{createElement:function(){}};function as(t,i){return i||(i=t.slice(0)),t.raw=i,t}var us=1;function cs(){return us++}var ls,ds=g.prototype.toString,fs=function(t){return ms(t)?g.keys(t):[]};function vs(t,i){fs(t).forEach(function(s){return i(t[s],s)})}function ps(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),e=1;e<i;e++)s[e-1]=arguments[e];return g.assign?g.assign.apply(g,[t].concat(s)):(s.forEach(function(i){i&&vs(i,function(i,s){t[s]=i})}),t)}function ms(t){return!!t&&"object"==typeof t}function gs(t){return ms(t)&&"[object Object]"===ds.call(t)&&t.constructor===g}var ys=function(t,i,s){void 0===s&&(s=!!me&&me<11),"log"!==t&&i.unshift(t.toUpperCase()+":"),ls.history.push(i),i.unshift("VIDEOJS:");var e=hs.console&&hs.console[t];e&&(s&&(i=i.map(function(t){if(ms(t)||Array.isArray(t))try{return JSON.stringify(t)}catch(i){return String(t)}return String(t)}).join(" ")),e.apply?e[Array.isArray(i)?"apply":"call"](hs.console,i):e(i))};(ls=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];ys("log",i)}).history=[],ls.error=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return ys("error",i)},ls.warn=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return ys("warn",i)};var bs=ls,ws="undefined"!=typeof globalThis?globalThis:void 0!==a?a:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ks(t){return t.replace(/\n\r?\s*/g,"")}var _s,js=function(t){for(var i="",s=0;s<arguments.length;s++)i+=ks(t[s])+(arguments[s+1]||"");return i};function xs(t){return"string"==typeof t&&/\S/.test(t)}function Ss(t){if(/\s/.test(t))throw new v("class has illegal whitespace characters")}function Ts(){return os===hs.document&&void 0!==os.createElement}function Cs(t){return ms(t)&&1===t.nodeType}function Ps(t){return function(i,s){if(!xs(i))return os[t](null);xs(s)&&(s=os.querySelector(s));var e=Cs(s)?s:os;return e[t]&&e[t](i)}}function Ms(t,i,s,e){void 0===t&&(t="div"),void 0===i&&(i={}),void 0===s&&(s={});var n=os.createElement(t);return g.getOwnPropertyNames(i).forEach(function(t){var s=i[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(bs.warn(js(_s||(_s=as(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."])),t,s)),n.setAttribute(t,s)):"textContent"===t?As(n,s):n[t]=s}),g.getOwnPropertyNames(s).forEach(function(t){n.setAttribute(t,s[t])}),e&&Js(n,e),n}function As(t,i){return void 0===t.textContent?t.innerText=i:t.textContent=i,t}function Is(t,i){i.firstChild?i.insertBefore(t,i.firstChild):i.appendChild(t)}var Es={},Ds="vdata"+(new Date).getTime();function Ns(t){var i=t[Ds];return i||(i=t[Ds]=cs()),Es[i]||(Es[i]={}),Es[i]}function Fs(t){var i=t[Ds];return!!i&&!!g.getOwnPropertyNames(Es[i]).length}function Bs(t){var i=t[Ds];if(i){delete Es[i];try{delete t[Ds]}catch(i){t.removeAttribute?t.removeAttribute(Ds):t[Ds]=null}}}function $s(t,i){return Ss(i),t.classList?t.classList.contains(i):function(t){return new RegExp("(^|\\s)"+t+"($|\\s)")}(i).test(t.className)}function Rs(t,i){return t.classList?t.classList.add(i):$s(t,i)||(t.className=(t.className+" "+i).trim()),t}function Os(t,i){return t.classList?t.classList.remove(i):(Ss(i),t.className=t.className.split(/\s+/).filter(function(t){return t!==i}).join(" ")),t}function Vs(t,i,s){var e=$s(t,i);if("function"==typeof s&&(s=s(t,i)),"boolean"!=typeof s&&(s=!e),s!==e)return s?Rs(t,i):Os(t,i),t}function Us(t,i){g.getOwnPropertyNames(i).forEach(function(s){var e=i[s];null==e||!1===e?t.removeAttribute(s):t.setAttribute(s,!0===e?"":e)})}function Ls(t){var i={};if(t&&t.attributes&&t.attributes.length>0)for(var s=t.attributes,e=s.length-1;e>=0;e--){var n=s[e].name,r=s[e].value;"boolean"!=typeof t[n]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+n+",")||(r=null!==r),i[n]=r}return i}function Hs(t,i,s){t.setAttribute(i,s)}function zs(t,i){t.removeAttribute(i)}function Ws(t){var i;if(t.getBoundingClientRect&&t.parentNode&&(i=t.getBoundingClientRect()),!i)return{left:0,top:0};var s=os.documentElement,e=os.body,n=s.clientLeft||e.clientLeft||0,r=hs.pageXOffset||e.scrollLeft,h=i.left+r-n,o=s.clientTop||e.clientTop||0,a=hs.pageYOffset||e.scrollTop,u=i.top+a-o;return{left:w.round(h),top:w.round(u)}}function qs(t,i){var s={},e=Ws(t),n=t.offsetWidth,r=t.offsetHeight,h=e.top,o=e.left,a=i.pageY,u=i.pageX;return i.changedTouches&&(u=i.changedTouches[0].pageX,a=i.changedTouches[0].pageY),s.y=w.max(0,w.min(1,(h-a+r)/r)),s.x=w.max(0,w.min(1,(u-o)/n)),s}function Gs(t){return ms(t)&&3===t.nodeType}function Xs(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function Js(t,i){return function(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),Cs(t)||Gs(t)?t:"string"==typeof t&&/\S/.test(t)?os.createTextNode(t):void 0}).filter(function(t){return t})}(i).forEach(function(i){return t.appendChild(i)}),t}function Qs(t,i){return Js(Xs(t),i)}var d,Ys=Ps("querySelector"),Ks=Ps("querySelectorAll"),Zs=hs.navigator&&hs.navigator.userAgent||"",te=/AppleWebKit\/([\d.]+)/i.exec(Zs),ie=te?_(te.pop()):null,se=/iPad/i.test(Zs),ee=/iPhone/i.test(Zs)&&!se,ne=/iPod/i.test(Zs),re=ee||se||ne,he=(d=Zs.match(/OS (\d+)_/i))&&d[1]?d[1]:null,oe=/Android/i.test(Zs),ae=function(){var t=Zs.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var i=t[1]&&_(t[1]),s=t[2]&&_(t[2]);return i&&s?_(t[1]+"."+t[2]):i||null}(),ue=oe&&/webkit/i.test(Zs)&&ae<2.3,ce=oe&&ae<5&&ie<537,le=/Firefox/i.test(Zs),de=/Edge/i.test(Zs),fe=!de&&/Chrome/i.test(Zs),ve=function(){var t=Zs.match(/Chrome\/(\d+)/);return t&&t[1]?_(t[1]):null}(),pe=/MSIE\s8\.0/.test(Zs),me=function(){var t=/MSIE\s(\d+)\.\d/.exec(Zs),i=t&&_(t[1]);return!i&&/Trident\/7.0/i.test(Zs)&&/rv:11.0/.test(Zs)&&(i=11),i}(),ge=/Safari/i.test(Zs)&&!fe&&!oe&&!de,ye=ge||re,be=Ts()&&("ontouchstart"in hs||hs.DocumentTouch&&hs.document instanceof hs.DocumentTouch),we=Ts()&&"backgroundSize"in hs.document.createElement("video").style,ke=g.freeze({__proto__:null,IS_IPAD:se,IS_IPHONE:ee,IS_IPOD:ne,IS_IOS:re,IOS_VERSION:he,IS_ANDROID:oe,ANDROID_VERSION:ae,IS_OLD_ANDROID:ue,IS_NATIVE_ANDROID:ce,IS_FIREFOX:le,IS_EDGE:de,IS_CHROME:fe,CHROME_VERSION:ve,IS_IE8:pe,IE_VERSION:me,IS_SAFARI:ge,IS_ANY_SAFARI:ye,TOUCH_ENABLED:be,BACKGROUND_SIZE_SUPPORTED:we});function _e(t,i){var s=Ns(t);0===s.handlers[i].length&&(delete s.handlers[i],t.removeEventListener?t.removeEventListener(i,s.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+i,s.dispatcher)),g.getOwnPropertyNames(s.handlers).length<=0&&(delete s.handlers,delete s.dispatcher,delete s.disabled),0===g.getOwnPropertyNames(s).length&&Bs(t)}function je(t,i,s,e){s.forEach(function(s){t(i,s,e)})}function xe(t){function i(){return!0}function s(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){var e=t||hs.event;for(var n in t={},e)"layerX"!==n&&"layerY"!==n&&"keyLocation"!==n&&"webkitMovementX"!==n&&"webkitMovementY"!==n&&"path"!==n&&("returnValue"===n&&e.preventDefault||(t[n]=e[n]));if(t.target||(t.target=t.srcElement||os),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){e.preventDefault&&e.preventDefault(),t.returnValue=!1,e.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){e.stopPropagation&&e.stopPropagation(),t.cancelBubble=!0,e.cancelBubble=!0,t.isPropagationStopped=i},t.isPropagationStopped=s,t.stopImmediatePropagation=function(){e.stopImmediatePropagation&&e.stopImmediatePropagation(),t.isImmediatePropagationStopped=i,t.stopPropagation()},t.isImmediatePropagationStopped=s,null!==t.clientX&&void 0!==t.clientX){var r=os.documentElement,h=os.body;t.pageX=t.clientX+(r&&r.scrollLeft||h&&h.scrollLeft||0)-(r&&r.clientLeft||h&&h.clientLeft||0),t.pageY=t.clientY+(r&&r.scrollTop||h&&h.scrollTop||0)-(r&&r.clientTop||h&&h.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}var Se=!1;!function(){try{var t=g.defineProperty({},"passive",{get:function(){Se=!0}});hs.addEventListener("test",null,t)}catch(t){}}();var Te=["touchstart","touchmove"];function Ce(t,i,s){if(Array.isArray(i))return je(Ce,t,i,s);var e=Ns(t);if(e.handlers||(e.handlers={}),e.handlers[i]||(e.handlers[i]=[]),s.guid||(s.guid=cs()),e.handlers[i].push(s),e.dispatcher||(e.disabled=!1,e.dispatcher=function(i,s){if(!e.disabled){i=xe(i);var n=e.handlers[i.type];if(n)for(var r=n.slice(0),h=0,o=r.length;h<o&&!i.isImmediatePropagationStopped();h++)try{r[h].call(t,i,s)}catch(t){bs.error(t)}}}),1===e.handlers[i].length)if(t.addEventListener){var n=!1;Se&&Te.indexOf(i)>-1&&(n={passive:!0}),t.addEventListener(i,e.dispatcher,n)}else t.attachEvent&&t.attachEvent("on"+i,e.dispatcher)}function Pe(t,i,s){if(Fs(t)){var e=Ns(t);if(e.handlers){if(Array.isArray(i))return je(Pe,t,i,s);var n=function(i){e.handlers[i]=[],_e(t,i)};if(i){var r=e.handlers[i];if(r)if(s){if(s.guid)for(var h=0;h<r.length;h++)r[h].guid===s.guid&&r.splice(h--,1);_e(t,i)}else n(i)}else for(var o in e.handlers)n(o)}}}function Me(t,i,s){var e=Fs(t)?Ns(t):{},n=t.parentNode||t.ownerDocument;if("string"==typeof i&&(i={type:i,target:t}),i=xe(i),e.dispatcher&&e.dispatcher.call(t,i,s),n&&!i.isPropagationStopped()&&!0===i.bubbles)Me.call(null,n,i,s);else if(!n&&!i.defaultPrevented){var r=Ns(i.target);i.target[i.type]&&(r.disabled=!0,"function"==typeof i.target[i.type]&&i.target[i.type](),r.disabled=!1)}return!i.defaultPrevented}function Ae(t,i,s){if(Array.isArray(i))return je(Ae,t,i,s);var e=function e(){Pe(t,i,e),s.apply(this,arguments)};e.guid=s.guid=s.guid||cs(),Ce(t,i,e)}var Ie,Ee=!1,De=function(){if(Ts()){var t=os.getElementsByTagName("video"),i=os.getElementsByTagName("audio"),s=[];if(t&&t.length>0)for(var e=0,n=t.length;e<n;e++)s.push(t[e]);if(i&&i.length>0)for(var r=0,h=i.length;r<h;r++)s.push(i[r]);if(s&&s.length>0)for(var o=0,a=s.length;o<a;o++){var u=s[o];if(!u||!u.getAttribute){Ne(1);break}void 0===u.player&&null!==u.getAttribute("data-setup")&&Ie(u)}else Ee||Ne(1)}};function Ne(t,i){i&&(Ie=i),hs.setTimeout(De,t)}Ts()&&"complete"===os.readyState?Ee=!0:Ae(hs,"load",function(){Ee=!0});var Fe=function(t){var i=os.createElement("style");return i.className=t,i},Be=function(t,i){t.styleSheet?t.styleSheet.cssText=i:t.textContent=i},$e=function(t,i,s){i.guid||(i.guid=cs());var e=function(){return i.apply(t,arguments)};return e.guid=s?s+"_"+i.guid:i.guid,e};function Re(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function Oe(){for(var t={},i=arguments.length,s=new Array(i),e=0;e<i;e++)s[e]=arguments[e];return s.forEach(function(i){i&&vs(i,function(i,s){gs(i)?(gs(t[s])||(t[s]={}),t[s]=Oe(t[s],i)):t[s]=i})}),t}var Ve=function(){function t(t,i,s){if(!t&&this.play?this.t=t=this:this.t=t,this.h=Oe({},this.h),i=this.h=Oe(this.h,i),this.o=i.id||i.el&&i.el.id,!this.o){var e=t&&t.id&&t.id()||"no_player";this.o=e+"u"+cs()}this.l=i.name||null,i.el?this.v=i.el:!1!==i.createEl&&(this.v=this.createEl()),this.m=[],this.k={},this.j={},!1!==i.initChildren&&this.initChildren(),this.ready(s),!1!==i.reportTouchActivity&&this.enableTouchActivity()}var i=t.prototype;return i.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.m)for(var t=this.m.length-1;t>=0;t--)this.m[t].dispose&&this.m[t].dispose();this.m=null,this.k=null,this.j=null,this.off(),this.v.parentNode&&this.v.parentNode.removeChild(this.v),Bs(this.v),this.v=null},i.player=function(){return this.t},i.options=function(t){return bs.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.h=Oe(this.h,t),this.h):this.h},i.el=function(){return this.v},i.createEl=function(t,i,s){return Ms(t,i,s)},i.localize=function(t){var i=this.t.language&&this.t.language(),s=this.t.languages&&this.t.languages();if(!i||!s)return t;var e=s[i];if(e&&e[t])return e[t];var n=s[i.split("-")[0]];return n&&n[t]?n[t]:t},i.contentEl=function(){return this.S||this.v},i.id=function(){return this.o},i.name=function(){return this.l},i.children=function(){return this.m},i.getChildById=function(t){return this.k[t]},i.getChild=function(t){if(t)return t=Re(t),this.j[t]},i.addChild=function(i,s,e){var n,r;if(void 0===s&&(s={}),void 0===e&&(e=this.m.length),"string"==typeof i){r=Re(i),s||(s={}),!0===s&&(bs.warn("Initializing a child component with `true` is deprecated.Children should be defined in an array when possible, but if necessary use an object instead of `true`."),s={});var h=s.componentClass||r;s.name=r;var o=t.getComponent(h);if(!o)throw new v("Component "+h+" does not exist");if("function"!=typeof o)return null;n=new o(this.t||this,s)}else n=i;if(this.m.splice(e,0,n),"function"==typeof n.id&&(this.k[n.id()]=n),(r=r||n.name&&Re(n.name()))&&(this.j[r]=n),"function"==typeof n.el&&n.el()){var a=this.contentEl().children[e]||null;this.contentEl().insertBefore(n.el(),a)}return n},i.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.m){for(var i=!1,s=this.m.length-1;s>=0;s--)if(this.m[s]===t){i=!0,this.m.splice(s,1);break}if(i){this.k[t.id()]=null,this.j[t.name()]=null;var e=t.el();e&&e.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},i.initChildren=function(){var i=this,s=this.h.children;if(s){var e,n=this.h,r=t.getComponent("Tech");(e=Array.isArray(s)?s:g.keys(s)).concat(g.keys(this.h).filter(function(t){return!e.some(function(i){return"string"==typeof i?t===i:t===i.name})})).map(function(t){var e,n;return"string"==typeof t?n=s[e=t]||i.h[e]||{}:(e=t.name,n=t),{name:e,opts:n}}).filter(function(i){var s=t.getComponent(i.opts.componentClass||Re(i.name));return s&&!r.isTech(s)}).forEach(function(t){var s=t.name,e=t.opts;if(void 0!==n[s]&&(e=n[s]),!1!==e){!0===e&&(e={}),e.playerOptions=i.h.playerOptions;var r=i.addChild(s,e);r&&(i[s]=r)}})}},i.buildCSSClass=function(){return""},i.on=function(t,i,s){var e=this;if("string"==typeof t||Array.isArray(t))Ce(this.v,t,$e(this,i));else{var n=t,r=i,h=$e(this,s),o=function(){return e.off(n,r,h)};o.guid=h.guid,this.on("dispose",o);var a=function(){return e.off("dispose",o)};a.guid=h.guid,t.nodeName?(Ce(n,r,h),Ce(n,"dispose",a)):"function"==typeof t.on&&(n.on(r,h),n.on("dispose",a))}return this},i.off=function(t,i,s){if(!t||"string"==typeof t||Array.isArray(t))Pe(this.v,t,i);else{var e=t,n=i,r=$e(this,s);this.off("dispose",r),t.nodeName?(Pe(e,n,r),Pe(e,"dispose",r)):(e.off(n,r),e.off("dispose",r))}return this},i.one=function(t,i,s){var e=arguments,n=this;if("string"==typeof t||Array.isArray(t))Ae(this.v,t,$e(this,i));else{var r=t,h=i,o=$e(this,s),a=function t(){n.off(r,h,t),o.apply(null,e)};a.guid=o.guid,this.on(r,h,a)}return this},i.trigger=function(t,i){return Me(this.v,t,i),this},i.ready=function(t,i){return void 0===i&&(i=!1),t&&(this.T?i?t.call(this):this.setTimeout(t,1):(this.C=this.C||[],this.C.push(t))),this},i.triggerReady=function(){this.T=!0,this.setTimeout(function(){var t=this.C;this.C=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},i.$=function(t,i){return Ys(t,i||this.contentEl())},i.$$=function(t,i){return Ks(t,i||this.contentEl())},i.hasClass=function(t){return $s(this.v,t)},i.addClass=function(t){return Rs(this.v,t),this},i.removeClass=function(t){return Os(this.v,t),this},i.toggleClass=function(t,i){return Vs(this.v,t,i),this},i.show=function(){return this.removeClass("vjs-hidden"),this},i.hide=function(){return this.addClass("vjs-hidden"),this},i.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},i.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},i.getAttribute=function(t){return function(t,i){return t.getAttribute(i)}(this.v,t)},i.setAttribute=function(t,i){return Hs(this.v,t,i),this},i.removeAttribute=function(t){return zs(this.v,t),this},i.width=function(t,i){return this.dimension("width",t,i)},i.height=function(t,i){return this.dimension("height",t,i)},i.dimensions=function(t,i){return this.width(t,!0).height(i)},i.dimension=function(t,i,s){if(void 0!==i)return null!==i&&i==i||(i=0),-1!==(""+i).indexOf("%")||-1!==(""+i).indexOf("px")?this.v.style[t]=i:this.v.style[t]="auto"===i?"":i+"px",s||this.trigger("resize"),this;if(!this.v)return 0;var e=this.v.style[t],n=e.indexOf("px");return k(-1!==n?e.slice(0,n):this.v["offset"+Re(t)],10)},i.currentDimension=function(t){var i=0;if("width"!==t&&"height"!==t)throw new v("currentDimension only accepts width or height value");if("function"==typeof hs.getComputedStyle){var s=hs.getComputedStyle(this.v);i=s.getPropertyValue(t)||s[t]}if(0===(i=_(i))){var e="offset"+Re(t);i=this.v[e]}return i},i.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},i.currentWidth=function(){return this.currentDimension("width")},i.currentHeight=function(){return this.currentDimension("height")},i.focus=function(){this.v.focus()},i.blur=function(){this.v.blur()},i.emitTapEvents=function(){var t,i=0,s=null;this.on("touchstart",function(e){1===e.touches.length&&(s={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY},i=(new Date).getTime(),t=!0)}),this.on("touchmove",function(i){if(i.touches.length>1)t=!1;else if(s){var e=i.touches[0].pageX-s.pageX,n=i.touches[0].pageY-s.pageY;w.sqrt(e*e+n*n)>10&&(t=!1)}});var e=function(){t=!1};this.on("touchleave",e),this.on("touchcancel",e),this.on("touchend",function(e){(s=null,!0===t)&&((new Date).getTime()-i<200&&(e.preventDefault(),this.trigger("tap")))})},i.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,i=$e(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){i(),this.clearInterval(t),t=this.setInterval(i,250)});var s=function(s){i(),this.clearInterval(t)};this.on("touchmove",i),this.on("touchend",s),this.on("touchcancel",s)}},i.setTimeout=function(t,i){t=$e(this,t);var s=hs.setTimeout(t,i),e=function(){this.clearTimeout(s)};return e.guid="vjs-timeout-"+s,this.on("dispose",e),s},i.clearTimeout=function(t){hs.clearTimeout(t);var i=function(){};return i.guid="vjs-timeout-"+t,this.off("dispose",i),t},i.setInterval=function(t,i){t=$e(this,t);var s=hs.setInterval(t,i),e=function(){this.clearInterval(s)};return e.guid="vjs-interval-"+s,this.on("dispose",e),s},i.clearInterval=function(t){hs.clearInterval(t);var i=function(){};return i.guid="vjs-interval-"+t,this.off("dispose",i),t},t.registerComponent=function(i,s){if(i){if(i=Re(i),t.P||(t.P={}),"Player"===i&&t.P[i]){var e=t.P[i];if(e.players&&g.keys(e.players).length>0&&g.keys(e.players).map(function(t){return e.players[t]}).every(Boolean))throw new v("Can not register Player component after player has been created")}return t.P[i]=s,s}},t.getComponent=function(i){if(i)return i=Re(i),t.P&&t.P[i]?t.P[i]:hs&&hs.videojs&&hs.videojs[i]?(bs.warn("The "+i+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),hs.videojs[i]):void 0},t.extend=function(i){i=i||{},bs.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var s=i.init||i.init||this.prototype.init||this.prototype.init||function(){},e=function(){s.apply(this,arguments)};for(var n in(e.prototype=g.create(this.prototype)).constructor=e,e.extend=t.extend,i)i.hasOwnProperty(n)&&(e.prototype[n]=i[n]);return e},t}();Ve.registerComponent("Component",Ve);var Ue=function(){};function Le(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function He(t,i){return(He=g.setPrototypeOf?g.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t})(t,i)}function ze(t,i){t.prototype=g.create(i.prototype),t.prototype.constructor=t,He(t,i)}function We(t,i,s,e){return void 0===e&&(bs.warn("DEPRECATED: Function '"+t+"' on 'TimeRanges' called without an index argument."),e=0),function(t,i,s){if(i<0||i>s)throw new v("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+i+") is greater than or equal to the maximum bound ("+s+").")}(t,e,s.length-1),s[e][i]}function qe(t){return void 0===t||0===t.length?{length:0,start:function(){throw new v("This TimeRanges object is empty")},end:function(){throw new v("This TimeRanges object is empty")}}:{length:t.length,start:We.bind(null,"start",0,t),end:We.bind(null,"end",1,t)}}function Ge(t,i){return Array.isArray(t)?qe(t):void 0===t||void 0===i?qe():qe([[t,i]])}function Xe(t,i){var s,e,n=0;if(!i)return 0;t&&t.length||(t=Ge(0,0));for(var r=0;r<t.length;r++)s=t.start(r),(e=t.end(r))>i&&(e=i),n+=e-s;return n/i}Ue.prototype.M={},Ue.prototype.on=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},Ce(this,t,i),this.addEventListener=s},Ue.prototype.addEventListener=Ue.prototype.on,Ue.prototype.off=function(t,i){Pe(this,t,i)},Ue.prototype.removeEventListener=Ue.prototype.off,Ue.prototype.one=function(t,i){var s=this.addEventListener;this.addEventListener=function(){},Ae(this,t,i),this.addEventListener=s},Ue.prototype.trigger=function(t){var i=t.type||t;"string"==typeof t&&(t={type:i}),t=xe(t),this.M[i]&&this["on"+i]&&this["on"+i](t),Me(this,t)},Ue.prototype.dispatchEvent=Ue.prototype.trigger;var Je,Qe,Ye,Ke,Ze={prefixed:!0},tn=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],sn=tn[0];for(Qe=0;Qe<tn.length;Qe++)if(tn[Qe][1]in os){Je=tn[Qe];break}if(Je){for(Ye=0;Ye<Je.length;Ye++)Ze[sn[Ye]]=Je[Ye];Ze.prefixed=Je[0]!==sn[0]}function en(t){if(t instanceof en)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:ms(t)&&("number"==typeof t.code&&(this.code=t.code),ps(this,t)),this.message||(this.message=en.defaultMessages[this.code]||"")}for(en.prototype.code=0,en.prototype.message="",en.prototype.status=null,en.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],en.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."},Ke=0;Ke<en.errorTypes.length;Ke++)en[en.errorTypes[Ke]]=Ke,en.prototype[en.errorTypes[Ke]]=Ke;var nn=function(t,i){var s,e=null;try{s=JSON.parse(t,i)}catch(t){e=t}return[e,s]};var rn=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(i,s,e){return t[s]&&(i[s]=t[s]),i},{cues:t.cues&&Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},hn=function(t){var i=t.$$("track"),s=Array.prototype.map.call(i,function(t){return t.track});return Array.prototype.map.call(i,function(t){var i=rn(t.track);return t.src&&(i.src=t.src),i}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===s.indexOf(t)}).map(rn))},on=function(t,i){return t.forEach(function(t){var s=i.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach(function(t){return s.addCue(t)})}),i.textTracks()},an="vjs-modal-dialog",un=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).A=e.I=e.D=!1,e.closeable(!e.h.uncloseable),e.content(e.h.content),e.S=Ms("div",{className:an+"-content"},{role:"document"}),e.N=Ms("p",{className:an+"-description vjs-offscreen",id:e.el().getAttribute("aria-describedby")}),As(e.N,e.description()),e.v.appendChild(e.N),e.v.appendChild(e.S),e.on(i,"languagechange",e.handleLanguagechange),e}ze(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"F","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},s.buildCSSClass=function(){return an+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},s.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},s.label=function(){return this.h.label||this.localize("Modal Window")},s.description=function(){var t=this.h.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},s.open=function(){if(!this.A){var t=this.player();this.trigger("beforemodalopen"),this.A=!0,(this.h.fillAlways||!this.I&&!this.D)&&this.fill(),this.B=!t.paused(),this.h.pauseOnOpen&&this.B&&t.pause(),this.closeable()&&this.on(this.v.ownerDocument,"keydown",$e(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.I=!0}return this},s.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.A},s.close=function(){if(this.A){var t=this.player();this.trigger("beforemodalclose"),this.A=!1,this.B&&this.h.pauseOnOpen&&t.play(),this.closeable()&&this.off(this.v.ownerDocument,"keydown",$e(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.h.temporary&&this.dispose()}return this},s.closeable=function(t){if("boolean"==typeof t){var i=this.R=!!t,s=this.getChild("closeButton");if(i&&!s){var e=this.S;this.S=this.v,s=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.S=e,this.on(s,"close",this.close)}!i&&s&&(this.off(s,"close",this.close),this.removeChild(s),s.dispose())}return this.R},s.fill=function(){return this.fillWith(this.content())},s.fillWith=function(t){var i=this.contentEl(),s=i.parentNode,e=i.nextSibling;return this.trigger("beforemodalfill"),this.D=!0,s.removeChild(i),this.empty(),Qs(i,t),this.trigger("modalfill"),e?s.insertBefore(i,e):s.appendChild(i),this},s.empty=function(){return this.trigger("beforemodalempty"),Xs(this.contentEl()),this.trigger("modalempty"),this},s.content=function(t){return void 0!==t&&(this.O=t),this.O},s.handleLanguagechange=function(){this.v.setAttribute("aria-label",this.label()),As(this.N,this.description()),this.opened()?this.fill():(this.I||this.D)&&(this.I=!1,this.D=!1,this.empty())},i}(Ve);un.prototype.h={pauseOnOpen:!0,temporary:!0},Ve.registerComponent("ModalDialog",un);var cn=function(){function t(i){var s=this;if(pe)for(var e in s=os.createElement("custom"),t.prototype)"constructor"!==e&&(s[e]=t.prototype[e]);if(t.prototype.V.call(s,i),g.defineProperty(s,"length",{get:function(){return this.U}}),pe)return s}var i=t.prototype;return i.V=function(t){var i=this.length||0,s=0,e=t.length;this.L=t,this.U=t.length;var n=function(t){""+t in this||g.defineProperty(this,""+t,{get:function(){return this.L[t]}})};if(i<e)for(s=i;s<e;s++)n.call(this,s)},i.getCueById=function(t){for(var i=null,s=0,e=this.length;s<e;s++){var n=this[s];if(n.id===t){i=n;break}}return i},t}(),ln={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},dn={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},fn={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},vn={disabled:"disabled",hidden:"hidden",showing:"showing"},pn=function(t){function i(s){var e;void 0===s&&(s={});var n=Le(e=t.call(this)||this);if(pe)for(var r in n=os.createElement("custom"),i.prototype)"constructor"!==r&&(n[r]=i.prototype[r]);var h={id:s.id||["vjs_track",cs()].join("_"),kind:s.kind||"",label:s.label||"",language:s.language||""},o=function(t){g.defineProperty(n,t,{get:function(){return h[t]},set:function(){}})};for(var a in h)o(a);return n||Le(e)}return ze(i,t),i}(Ue),mn=function(t){var i=["protocol","hostname","port","pathname","search","hash","host"],s=os.createElement("a");s.href=t;var e,n=""===s.host&&"file:"!==s.protocol;n&&((e=os.createElement("div")).innerHTML='<a href="'+t+'"></a>',s=e.firstChild,e.setAttribute("style","display:none; position:absolute;"),os.body.appendChild(e));for(var r={},h=0;h<i.length;h++)r[i[h]]=s[i[h]];return"http:"===r.protocol&&(r.host=r.host.replace(/:80$/,"")),"https:"===r.protocol&&(r.host=r.host.replace(/:443$/,"")),n&&os.body.removeChild(e),r},gn=function(t){var i=hs.location,s=mn(t);return(":"===s.protocol?i.protocol:s.protocol)+s.host!==i.protocol+i.host},yn={exports:{}};void 0!==a?yn.exports=a:void 0!==ws?yn.exports=ws:"undefined"!=typeof self?yn.exports=self:yn.exports={};var bn=function(t){var i=wn.call(t);return"[object Function]"===i||"function"==typeof t&&"[object RegExp]"!==i||void 0!==a&&(t===a.setTimeout||t===a.alert||t===a.confirm||t===a.prompt)},wn=g.prototype.toString;var kn,_n,jn,xn,Sn,Tn,Cn,Pn,Mn,An,In,En,Dn=Array.prototype.slice,Nn=g.prototype.toString,Fn=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==Nn.call(i))throw new p("Function.prototype.bind called on incompatible "+i);for(var s,e=Dn.call(arguments,1),n=w.max(0,i.length-e.length),r=[],h=0;h<n;h++)r.push("$"+h);if(s=Function("binder","return function ("+r.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var n=i.apply(this,e.concat(Dn.call(arguments)));return g(n)===n?n:this}return i.apply(t,e.concat(Dn.call(arguments)))}),i.prototype){var o=function(){};o.prototype=i.prototype,s.prototype=new o,o.prototype=null}return s},Bn=Function.prototype.bind||Fn,$n=g.prototype.toString,Rn=function(t){var i=$n.call(t),s="[object Arguments]"===i;return s||(s="[object Array]"!==i&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===$n.call(t.callee)),s};g.keys||(_n=g.prototype.hasOwnProperty,jn=g.prototype.toString,xn=Rn,Sn=g.prototype.propertyIsEnumerable,Tn=!Sn.call({toString:null},"toString"),Cn=Sn.call(function(){},"prototype"),Pn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Mn=function(t){var i=t.constructor;return i&&i.prototype===t},An={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},In=function(){if(void 0===a)return!1;for(var t in a)try{if(!An["$"+t]&&_n.call(a,t)&&null!==a[t]&&"object"==typeof a[t])try{Mn(a[t])}catch(t){return!0}}catch(t){return!0}return!1}(),En=function(t){if(void 0===a||!In)return Mn(t);try{return Mn(t)}catch(t){return!1}},kn=function(t){var i=null!==t&&"object"==typeof t,s="[object Function]"===jn.call(t),e=xn(t),n=i&&"[object String]"===jn.call(t),r=[];if(!i&&!s&&!e)throw new p("Object.keys called on a non-object");var h=Cn&&s;if(n&&t.length>0&&!_n.call(t,0))for(var o=0;o<t.length;++o)r.push(String(o));if(e&&t.length>0)for(var a=0;a<t.length;++a)r.push(String(a));else for(var u in t)h&&"prototype"===u||!_n.call(t,u)||r.push(String(u));if(Tn)for(var c=En(t),l=0;l<Pn.length;++l)c&&"constructor"===Pn[l]||!_n.call(t,Pn[l])||r.push(Pn[l]);return r});var On=kn,Vn=Array.prototype.slice,Un=Rn,Ln=g.keys,Hn=Ln?function(t){return Ln(t)}:On,zn=g.keys;Hn.shim=function(){if(g.keys){var t=function(){var t=g.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(g.keys=function(t){return Un(t)?zn(Vn.call(t)):zn(t)})}else g.keys=Hn;return g.keys||Hn};var Wn=Hn,qn="function"==typeof Bt&&"symbol"==typeof Bt("foo"),Gn=g.prototype.toString,Xn=Array.prototype.concat,Jn=g.defineProperty,Qn=Jn&&function(){var t={};try{for(var i in Jn(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),Yn=function(t,i,s,e){(!(i in t)||function(t){return"function"==typeof t&&"[object Function]"===Gn.call(t)}(e)&&e())&&(Qn?Jn(t,i,{configurable:!0,enumerable:!1,value:s,writable:!0}):t[i]=s)},Kn=function(t,i){var s=arguments.length>2?arguments[2]:{},e=Wn(i);qn&&(e=Xn.call(e,g.getOwnPropertySymbols(i)));for(var n=0;n<e.length;n+=1)Yn(t,e[n],i[e[n]],s[e[n]])};Kn.supportsDescriptors=!!Qn;var Zn,tr=Kn,ir=g.getOwnPropertyDescriptor?function(){return g.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new p},sr="function"==typeof Bt&&"symbol"==typeof Ot,er=g.getPrototypeOf||function(t){return t.__proto__},nr=Zn,rr=Zn,hr=Zn,or=void 0===x?Zn:er(x),ar={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?Zn:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?Zn:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":sr?er([][Ot]()):Zn,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":Zn,"$ %AsyncFunction%":rr,"$ %AsyncFunctionPrototype%":Zn,"$ %AsyncGenerator%":Zn,"$ %AsyncGeneratorFunction%":hr,"$ %AsyncGeneratorPrototype%":Zn,"$ %AsyncIteratorPrototype%":Zn,"$ %Atomics%":"undefined"==typeof Atomics?Zn:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?Zn:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?Zn:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":v,"$ %ErrorPrototype%":v.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?Zn:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?Zn:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?Zn:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?Zn:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":Zn,"$ %GeneratorFunction%":nr,"$ %GeneratorPrototype%":Zn,"$ %Int8Array%":"undefined"==typeof Int8Array?Zn:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?Zn:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?Zn:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?Zn:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?Zn:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?Zn:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":j,"$ %IteratorPrototype%":sr?er(er([][Ot]())):Zn,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?Zn:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&sr?er((new Map)[Ot]()):Zn,"$ %MapPrototype%":"undefined"==typeof Map?Zn:Map.prototype,"$ %Math%":w,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":g,"$ %ObjectPrototype%":g.prototype,"$ %ObjProto_toString%":g.prototype.toString,"$ %ObjProto_valueOf%":g.prototype.valueOf,"$ %parseFloat%":_,"$ %parseInt%":k,"$ %Promise%":"undefined"==typeof Promise?Zn:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?Zn:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?Zn:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?Zn:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?Zn:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?Zn:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?Zn:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?Zn:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?Zn:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&sr?er((new Set)[Ot]()):Zn,"$ %SetPrototype%":"undefined"==typeof Set?Zn:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Zn:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?Zn:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":sr?er(""[Ot]()):Zn,"$ %StringPrototype%":String.prototype,"$ %Symbol%":sr?Bt:Zn,"$ %SymbolPrototype%":sr?Bt.prototype:Zn,"$ %SyntaxError%":m,"$ %SyntaxErrorPrototype%":m.prototype,"$ %ThrowTypeError%":ir,"$ %TypedArray%":or,"$ %TypedArrayPrototype%":or?or.prototype:Zn,"$ %TypeError%":p,"$ %TypeErrorPrototype%":p.prototype,"$ %Uint8Array%":void 0===x?Zn:x,"$ %Uint8ArrayPrototype%":void 0===x?Zn:x.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Zn:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?Zn:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?Zn:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?Zn:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?Zn:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?Zn:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?Zn:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?Zn:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?Zn:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?Zn:WeakSet.prototype},ur=function(t,i){if(arguments.length>1&&"boolean"!=typeof i)throw new p('"allowMissing" argument must be a boolean');var s="$ "+t;if(!(s in ar))throw new m("intrinsic "+t+" does not exist!");if(void 0===ar[s]&&!i)throw new p("intrinsic "+t+" exists, but is not available. Please file an issue!");return ar[s]},cr=Bn.call(Function.call,g.prototype.hasOwnProperty),lr=ur,dr=lr("%TypeError%"),fr=lr("%SyntaxError%"),vr=cr,pr={"Property Descriptor":function(t,i){if("Object"!==t.Type(i))return!1;var s={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var e in i)if(vr(i,e)&&!s[e])return!1;var n=vr(i,"[[Value]]"),r=vr(i,"[[Get]]")||vr(i,"[[Set]]");if(n&&r)throw new dr("Property Descriptors may not be both accessor and data descriptors");return!0}},mr=Number.isNaN||function(t){return t!=t},gr=Number.isNaN||function(t){return t!=t},yr=Number.isFinite||function(t){return"number"==typeof t&&!gr(t)&&t!==1/0&&t!==-1/0},br=Function.prototype.toString,wr=/^\s*class\b/,kr=function(t){try{var i=br.call(t);return wr.test(i)}catch(t){return!1}},_r=g.prototype.toString,jr="function"==typeof Bt&&"symbol"==typeof Bt.toStringTag,xr=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(jr)return function(t){try{return!kr(t)&&(br.call(t),!0)}catch(t){return!1}}(t);if(kr(t))return!1;var i=_r.call(t);return"[object Function]"===i||"[object GeneratorFunction]"===i},Sr=g.prototype.toString,Tr=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t},Cr=xr,Pr=function(t){var i;if((i=arguments.length>1?arguments[1]:"[object Date]"===Sr.call(t)?String:Number)===String||i===Number){var s,e,n=i===String?["toString","valueOf"]:["valueOf","toString"];for(e=0;e<n.length;++e)if(Cr(t[n[e]])&&(s=t[n[e]](),Tr(s)))return s;throw new p("No default value")}throw new p("invalid [[DefaultValue]] hint supplied")},Mr=ur,Ar=Mr("%Object%"),Ir=Mr("%TypeError%"),Er=Mr("%String%"),Dr=function(t,i,s,e){var n=pr[i];if("function"!=typeof n)throw new fr("unknown record type: "+i);if(!n(t,e))throw new dr(s+" must be a "+i);console.log(n(t,e),e)},Nr=mr,Fr=yr,Br=function(t){return t>=0?1:-1},$r=function(t,i){var s=t%i;return w.floor(s>=0?s:s+i)},Rr=cr,Or={ToPrimitive:function(t){return Tr(t)?t:arguments.length>1?Pr(t,arguments[1]):Pr(t)},ToBoolean:function(t){return!!t},ToNumber:function(t){return+t},ToInteger:function(t){var i=this.ToNumber(t);return Nr(i)?0:0!==i&&Fr(i)?Br(i)*w.floor(w.abs(i)):i},ToInt32:function(t){return this.ToNumber(t)|0},ToUint32:function(t){return this.ToNumber(t)>>>0},ToUint16:function(t){var i=this.ToNumber(t);if(Nr(i)||0===i||!Fr(i))return 0;var s=Br(i)*w.floor(w.abs(i));return $r(s,65536)},ToString:function(t){return Er(t)},ToObject:function(t){return this.CheckObjectCoercible(t),Ar(t)},CheckObjectCoercible:function(t,i){if(null==t)throw new Ir(i||"Cannot call method on "+t);return t},IsCallable:xr,SameValue:function(t,i){return t===i?0!==t||1/t==1/i:Nr(t)&&Nr(i)},Type:function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"==typeof t?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0},IsPropertyDescriptor:function(t){if("Object"!==this.Type(t))return!1;var i={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var s in t)if(Rr(t,s)&&!i[s])return!1;var e=Rr(t,"[[Value]]"),n=Rr(t,"[[Get]]")||Rr(t,"[[Set]]");if(e&&n)throw new Ir("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(t){return void 0!==t&&(Dr(this,"Property Descriptor","Desc",t),!(!Rr(t,"[[Get]]")&&!Rr(t,"[[Set]]")))},IsDataDescriptor:function(t){return void 0!==t&&(Dr(this,"Property Descriptor","Desc",t),!(!Rr(t,"[[Value]]")&&!Rr(t,"[[Writable]]")))},IsGenericDescriptor:function(t){return void 0!==t&&(Dr(this,"Property Descriptor","Desc",t),!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t))},FromPropertyDescriptor:function(t){if(void 0===t)return t;if(Dr(this,"Property Descriptor","Desc",t),this.IsDataDescriptor(t))return{value:t["[[Value]]"],writable:!!t["[[Writable]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};if(this.IsAccessorDescriptor(t))return{get:t["[[Get]]"],set:t["[[Set]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};throw new Ir("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if("Object"!==this.Type(t))throw new Ir("ToPropertyDescriptor requires an object");var i={};if(Rr(t,"enumerable")&&(i["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),Rr(t,"configurable")&&(i["[[Configurable]]"]=this.ToBoolean(t.configurable)),Rr(t,"value")&&(i["[[Value]]"]=t.value),Rr(t,"writable")&&(i["[[Writable]]"]=this.ToBoolean(t.writable)),Rr(t,"get")){var s=t.get;if(void 0!==s&&!this.IsCallable(s))throw new p("getter must be a function");i["[[Get]]"]=s}if(Rr(t,"set")){var e=t.set;if(void 0!==e&&!this.IsCallable(e))throw new Ir("setter must be a function");i["[[Set]]"]=e}if((Rr(i,"[[Get]]")||Rr(i,"[[Set]]"))&&(Rr(i,"[[Value]]")||Rr(i,"[[Writable]]")))throw new Ir("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return i}},Vr=Bn.call(Function.call,String.prototype.replace),Ur=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,Lr=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,Hr=function(){var t=Or.ToString(Or.CheckObjectCoercible(this));return Vr(Vr(t,Ur,""),Lr,"")},zr=Hr,Wr=function(){return String.prototype.trim&&"\u200b"==="\u200b".trim()?String.prototype.trim:zr},qr=tr,Gr=Wr,Xr=tr,Jr=Hr,Qr=Wr,Yr=function(){var t=Gr();return qr(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},Kr=Bn.call(Function.call,Qr());Xr(Kr,{getPolyfill:Qr,implementation:Jr,shim:Yr});var Zr=Kr,th=xr,ih=g.prototype.toString,sh=g.prototype.hasOwnProperty,eh=Zr,nh=function(t,i,s){if(!th(i))throw new p("iterator must be a function");var e;arguments.length>=3&&(e=s),"[object Array]"===ih.call(t)?function(t,i,s){for(var e=0,n=t.length;e<n;e++)sh.call(t,e)&&(null==s?i(t[e],e,t):i.call(s,t[e],e,t))}(t,i,e):"string"==typeof t?function(t,i,s){for(var e=0,n=t.length;e<n;e++)null==s?i(t.charAt(e),e,t):i.call(s,t.charAt(e),e,t)}(t,i,e):function(t,i,s){for(var e in t)sh.call(t,e)&&(null==s?i(t[e],e,t):i.call(s,t[e],e,t))}(t,i,e)},rh=function(){for(var t={},i=0;i<arguments.length;i++){var s=arguments[i];for(var e in s)hh.call(s,e)&&(t[e]=s[e])}return t},hh=g.prototype.hasOwnProperty;var oh=yn.exports,ah=bn,uh=function(t){if(!t)return{};var i={};return nh(eh(t).split("\n"),function(t){var s=t.indexOf(":"),e=eh(t.slice(0,s)).toLowerCase(),n=eh(t.slice(s+1));void 0===i[e]?i[e]=n:!function(t){return"[object Array]"===g.prototype.toString.call(t)}(i[e])?i[e]=[i[e],n]:i[e].push(n)}),i},ch=rh,lh=fh;function dh(t,i,s){var e=t;return ah(i)?(s=i,"string"==typeof t&&(e={uri:t})):e=ch(i,{uri:t}),e.callback=s,e}function fh(t,i,s){return vh(i=dh(t,i,s))}function vh(t){if(void 0===t.callback)throw new v("callback argument missing");var i=!1,s=function(s,e,n){i||(i=!0,t.callback(s,e,n))};function e(){var t=void 0;if(t=l.response?l.response:l.responseText||function(t){if("document"===t.responseType)return t.responseXML;var i=204===t.status&&t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!i)return t.responseXML;return null}(l),b)try{t=JSON.parse(t)}catch(t){}return t}var n={body:void 0,headers:{},statusCode:0,method:p,url:f,rawRequest:l};function r(t){return c(d),t instanceof v||(t=new v(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,s(t,n)}function h(){if(!a){var i;c(d),i=t.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var r=n,h=null;return 0!==i?(r={body:e(),statusCode:i,method:p,headers:{},url:f,rawRequest:l},l.getAllResponseHeaders&&(r.headers=uh(l.getAllResponseHeaders()))):h=new v("Internal XMLHttpRequest Error"),s(h,r,r.body)}}var o,a,l=t.xhr||null;l||(l=t.cors||t.useXDR?new fh.XDomainRequest:new fh.XMLHttpRequest);var d,f=l.url=t.uri||t.url,p=l.method=t.method||"GET",m=t.body||t.data||null,g=l.headers=t.headers||{},y=!!t.sync,b=!1;if("json"in t&&(b=!0,g.accept||g.Accept||(g.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),m=JSON.stringify(t.json))),l.onreadystatechange=function(){4===l.readyState&&h()},l.onload=h,l.onerror=r,l.onprogress=function(){},l.ontimeout=r,l.open(p,f,!y,t.username,t.password),y||(l.withCredentials=!!t.withCredentials),!y&&t.timeout>0&&(d=u(function(){a=!0,l.abort("timeout");var t=new v("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)},t.timeout)),l.setRequestHeader)for(o in g)g.hasOwnProperty(o)&&l.setRequestHeader(o,g[o]);else if(t.headers&&!function(t){for(var i in t)if(t.hasOwnProperty(i))return!1;return!0}(t.headers))throw new v("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(l.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(l),l.send(m),l}fh.XMLHttpRequest=oh.XMLHttpRequest||function(){},fh.XDomainRequest="withCredentials"in new fh.XMLHttpRequest?fh.XMLHttpRequest:oh.XDomainRequest,function(t,i){for(var s=0;s<t.length;s++)i(t[s])}(["get","put","post","patch","head","delete"],function(t){fh["delete"===t?"del":t]=function(i,s,e){return(s=dh(i,s,e)).method=t.toUpperCase(),vh(s)}});var ph=function(t,i){var s=new hs.WebVTT.Parser(hs,hs.vttjs,hs.WebVTT.StringDecoder()),e=[];s.oncue=function(t){i.addCue(t)},s.onparsingerror=function(t){e.push(t)},s.onflush=function(){i.trigger({type:"loadeddata",target:i})},s.parse(t),e.length>0&&(hs.console&&hs.console.groupCollapsed&&hs.console.groupCollapsed("Text Track parsing errors for "+i.src),e.forEach(function(t){return bs.error(t)}),hs.console&&hs.console.groupEnd&&hs.console.groupEnd()),s.flush()},mh=function(t){function i(s){var e;if(void 0===s&&(s={}),!s.tech)throw new v("A tech was not provided.");var n=Oe(s,{kind:fn[s.kind]||"subtitles",language:s.language||s.srclang||""}),r=vn[n.mode]||"disabled",h=n.default;"metadata"!==n.kind&&"chapters"!==n.kind||(r="hidden");var o=e=t.call(this,n)||this;if(o.H=n.tech,pe)for(var a in i.prototype)"constructor"!==a&&(o[a]=i.prototype[a]);o.L=[],o.W=[];var u=new cn(o.L),c=new cn(o.W),l=!1,d=$e(o,function(){this.activeCues,l&&(this.trigger("cuechange"),l=!1)});return"disabled"!==r&&o.H.ready(function(){o.H.on("timeupdate",d)},!0),g.defineProperty(o,"default",{get:function(){return h},set:function(){}}),g.defineProperty(o,"mode",{get:function(){return r},set:function(t){var i=this;vn[t]&&("showing"===(r=t)&&this.H.ready(function(){i.H.on("timeupdate",d)},!0),this.trigger("modechange"))}}),g.defineProperty(o,"cues",{get:function(){return this.q?u:null},set:function(){}}),g.defineProperty(o,"activeCues",{get:function(){if(!this.q)return null;if(0===this.cues.length)return c;for(var t=this.H.currentTime(),i=[],s=0,e=this.cues.length;s<e;s++){var n=this.cues[s];(n.startTime<=t&&n.endTime>=t||n.startTime===n.endTime&&n.startTime<=t&&n.startTime+.5>=t)&&i.push(n)}if(l=!1,i.length!==this.W.length)l=!0;else for(var r=0;r<i.length;r++)-1===this.W.indexOf(i[r])&&(l=!0);return this.W=i,c.V(this.W),c},set:function(){}}),n.src?(o.src=n.src,function(t,i){var s={uri:t},e=gn(t);e&&(s.cors=e),lh(s,$e(this,function(t,s,e){if(t)return bs.error(t,s);if(i.q=!0,"function"!=typeof hs.WebVTT){if(i.H){var n=function(){return ph(e,i)};i.H.on("vttjsloaded",n),i.H.on("vttjserror",function(){bs.error("vttjs failed to load, stopping trying to process "+i.src),i.H.off("vttjsloaded",n)})}}else ph(e,i)}))}(n.src,o)):o.q=!0,o||Le(e)}ze(i,t);var s=i.prototype;return s.addCue=function(t){var i=t;if(hs.vttjs&&!(t instanceof hs.vttjs.VTTCue)){for(var s in i=new hs.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)s in i||(i[s]=t[s]);i.id=t.id,i.G=t}var e=this.H.textTracks();if(e)for(var n=0;n<e.length;n++)e[n]!==this&&e[n].removeCue(i);this.L.push(i),this.cues.V(this.L)},s.removeCue=function(t){for(var i=this.L.length;i--;){var s=this.L[i];if(s===t||s.G&&s.G===t){this.L.splice(i,1),this.cues.V(this.L);break}}},i}(pn);mh.prototype.M={cuechange:"cuechange"};var gh=function(t){function i(s){var e,n;void 0===s&&(s={});var r=Le(e=t.call(this)||this);if(pe)for(var h in r=os.createElement("custom"),i.prototype)"constructor"!==h&&(r[h]=i.prototype[h]);var o=new mh(s);return r.kind=o.kind,r.src=o.src,r.srclang=o.language,r.label=o.label,r.default=o.default,g.defineProperty(r,"readyState",{get:function(){return n}}),g.defineProperty(r,"track",{get:function(){return o}}),n=0,o.addEventListener("loadeddata",function(){n=2,r.trigger({type:"load",target:r})}),pe?r||Le(e):e}return ze(i,t),i}(Ue);gh.prototype.M={load:"load"},gh.NONE=0,gh.LOADING=1,gh.LOADED=2,gh.ERROR=3;var yh,bh=function(){function t(i){void 0===i&&(i=[]);var s=this;if(pe)for(var e in s=os.createElement("custom"),t.prototype)"constructor"!==e&&(s[e]=t.prototype[e]);s.X=[],g.defineProperty(s,"length",{get:function(){return this.X.length}});for(var n=0,r=i.length;n<r;n++)s.J(i[n]);if(pe)return s}var i=t.prototype;return i.J=function(t){var i=this.X.length;""+i in this||g.defineProperty(this,i,{get:function(){return this.X[i]}}),-1===this.X.indexOf(t)&&this.X.push(t)},i.Y=function(t){for(var i,s=0,e=this.X.length;s<e;s++)if(t===this.X[s].track){i=this.X[s];break}return i},i.K=function(t){for(var i=0,s=this.X.length;i<s;i++)if(t===this.X[i]){this.X.splice(i,1);break}},t}(),wh=function(t){function i(s,e){var n;if(void 0===s&&(s=[]),void 0===e&&(e=null),n=t.call(this)||this,!e&&(e=Le(n),pe))for(var r in e=os.createElement("custom"),i.prototype)"constructor"!==r&&(e[r]=i.prototype[r]);e.Z=[],g.defineProperty(e,"length",{get:function(){return this.Z.length}});for(var h=0;h<s.length;h++)e.tt(s[h]);return e||Le(n)}ze(i,t);var s=i.prototype;return s.tt=function(t){var i=this.Z.length;""+i in this||g.defineProperty(this,i,{get:function(){return this.Z[i]}}),-1===this.Z.indexOf(t)&&(this.Z.push(t),this.trigger({track:t,type:"addtrack"}))},s.it=function(t){for(var i,s=0,e=this.length;s<e;s++)if(this[s]===t){(i=this[s]).off&&i.off(),this.Z.splice(s,1);break}i&&this.trigger({track:i,type:"removetrack"})},s.getTrackById=function(t){for(var i=null,s=0,e=this.length;s<e;s++){var n=this[s];if(n.id===t){i=n;break}}return i},i}(Ue);for(yh in wh.prototype.M={change:"change",addtrack:"addtrack",removetrack:"removetrack"},wh.prototype.M)wh.prototype["on"+yh]=null;var kh=function(t){function i(s){var e,n;if(void 0===s&&(s=[]),pe){for(var r in n=os.createElement("custom"),wh.prototype)"constructor"!==r&&(n[r]=wh.prototype[r]);for(var h in i.prototype)"constructor"!==h&&(n[h]=i.prototype[h])}return(n=e=t.call(this,s,n)||this)||Le(e)}return ze(i,t),i.prototype.tt=function(i){t.prototype.tt.call(this,i),i.addEventListener("modechange",$e(this,function(){this.trigger("change")}))},i}(wh),_h=function(t,i){for(var s=0;s<t.length;s++)i.id!==t[s].id&&(t[s].selected=!1)},jh=function(t){function i(s){var e,n;void 0===s&&(s=[]);for(var r=s.length-1;r>=0;r--)if(s[r].selected){_h(s,s[r]);break}if(pe){for(var h in n=os.createElement("custom"),wh.prototype)"constructor"!==h&&(n[h]=wh.prototype[h]);for(var o in i.prototype)"constructor"!==o&&(n[o]=i.prototype[o])}return(n=e=t.call(this,s,n)||this).st=!1,g.defineProperty(n,"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),n||Le(e)}ze(i,t);var s=i.prototype;return s.tt=function(i){var s=this;i.selected&&_h(this,i),t.prototype.tt.call(this,i),i.addEventListener&&i.addEventListener("selectedchange",function(){s.st||(s.st=!0,_h(s,i),s.st=!1,s.trigger("change"))})},s.addTrack=function(t){this.tt(t)},s.removeTrack=function(i){t.prototype.it.call(this,i)},i}(wh),xh=function(t,i){for(var s=0;s<t.length;s++)i.id!==t[s].id&&(t[s].enabled=!1)},Sh=function(t){function i(s){var e,n;void 0===s&&(s=[]);for(var r=s.length-1;r>=0;r--)if(s[r].enabled){xh(s,s[r]);break}if(pe){for(var h in n=os.createElement("custom"),wh.prototype)"constructor"!==h&&(n[h]=wh.prototype[h]);for(var o in i.prototype)"constructor"!==o&&(n[o]=i.prototype[o])}return(n=e=t.call(this,s,n)||this).st=!1,n||Le(e)}ze(i,t);var s=i.prototype;return s.tt=function(i){var s=this;i.enabled&&xh(this,i),t.prototype.tt.call(this,i),i.addEventListener&&i.addEventListener("enabledchange",function(){s.st||(s.st=!0,xh(s,i),s.st=!1,s.trigger("change"))})},s.addTrack=function(t){this.tt(t)},s.removeTrack=function(i){t.prototype.it.call(this,i)},i}(wh),Th=void 0;var Ch=function(t){function i(i,s){var e;return void 0===i&&(i={}),void 0===s&&(s=function(){}),i.reportTouchActivity=!1,(e=t.call(this,null,i,s)||this).et=!1,e.on("playing",function(){this.et=!0}),e.on("loadstart",function(){this.et=!1}),e.nt=i.textTracks,e.rt=i.videoTracks,e.ht=i.audioTracks,e.featuresProgressEvents||e.manualProgressOn(),e.featuresTimeupdateEvents||e.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===i["native"+t+"Tracks"]&&(e["featuresNative"+t+"Tracks"]=!1)}),!1===i.nativeCaptions&&(e.featuresNativeTextTracks=!1),e.featuresNativeTextTracks||e.emulateTextTracks(),e.ot=new kh,e.initTextTrackListeners(),e.initTrackListeners(),i.nativeControlsForTouch||e.emitTapEvents(),e.constructor&&(e.l=e.constructor.name||"Unknown Tech"),e}ze(i,t);var s=i.prototype;return s.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},s.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},s.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval($e(this,function(){var t=this.bufferedPercent();this.ut!==t&&this.trigger("progress"),this.ut=t,1===t&&this.stopTrackingProgress()}),500)},s.onDurationChange=function(t){this.ct=this.duration()},s.buffered=function(){return Ge(0,0)},s.bufferedPercent=function(){return Xe(this.buffered(),this.ct)},s.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},s.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},s.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},s.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},s.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},s.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},s.clearTracks=function(t){var i=this;(t=[].concat(t)).forEach(function(t){for(var s=i[t+"Tracks"]()||[],e=s.length;e--;){var n=s[e];"text"===t&&i.removeRemoteTextTrack(n),s.it(n)}})},s.cleanupAutoTextTracks=function(){for(var t=this.ot||[],i=t.length;i--;){var s=t[i];this.removeRemoteTextTrack(s)}},s.reset=function(){},s.error=function(t){return void 0!==t&&(this.lt=new en(t),this.trigger("error")),this.lt},s.played=function(){return this.et?Ge(0,0):Ge()},s.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},s.initTextTrackListeners=function(){var t=$e(this,function(){this.trigger("texttrackchange")}),i=this.textTracks();i&&(i.addEventListener("removetrack",t),i.addEventListener("addtrack",t),this.on("dispose",$e(this,function(){i.removeEventListener("removetrack",t),i.removeEventListener("addtrack",t)})))},s.initTrackListeners=function(){var t=this;["video","audio"].forEach(function(i){var s=function(){t.trigger(i+"trackchange")},e=t[i+"Tracks"]();e.addEventListener("removetrack",s),e.addEventListener("addtrack",s),t.on("dispose",function(){e.removeEventListener("removetrack",s),e.removeEventListener("addtrack",s)})})},s.dt=function(){var t=this;if(!hs.WebVTT)if(os.body.contains(this.el())){if(!this.h["vtt.js"]&&gs(Th)&&g.keys(Th).length>0)return void this.trigger("vttjsloaded");var i=os.createElement("script");i.src=this.h["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",i.onload=function(){t.trigger("vttjsloaded")},i.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){i.onload=null,i.onerror=null}),hs.WebVTT=!0,this.el().parentNode.appendChild(i)}else this.ready(this.dt)},s.emulateTextTracks=function(){var t=this,i=this.textTracks();if(i){var s=this.remoteTextTracks(),e=function(t){return i.tt(t.track)},n=function(t){return i.it(t.track)};s.on("addtrack",e),s.on("removetrack",n),this.dt();var r=function(){return t.trigger("texttrackchange")},h=function(){r();for(var t=0;t<i.length;t++){var s=i[t];s.removeEventListener("cuechange",r),"showing"===s.mode&&s.addEventListener("cuechange",r)}};h(),i.addEventListener("change",h),i.addEventListener("addtrack",h),i.addEventListener("removetrack",h),this.on("dispose",function(){s.off("addtrack",e),s.off("removetrack",n),i.removeEventListener("change",h),i.removeEventListener("addtrack",h),i.removeEventListener("removetrack",h);for(var t=0;t<i.length;t++){i[t].removeEventListener("cuechange",r)}})}},s.videoTracks=function(){return this.rt=this.rt||new jh,this.rt},s.audioTracks=function(){return this.ht=this.ht||new Sh,this.ht},s.textTracks=function(){return this.nt=this.nt||new kh,this.nt},s.remoteTextTracks=function(){return this.ft=this.ft||new kh,this.ft},s.remoteTextTrackEls=function(){return this.vt=this.vt||new bh,this.vt},s.addTextTrack=function(t,i,s){if(!t)throw new v("TextTrack kind is required but was not provided");return function(t,i,s,e,n){void 0===n&&(n={});var r=t.textTracks();n.kind=i,s&&(n.label=s),e&&(n.language=e),n.tech=t;var h=new mh(n);return r.tt(h),h}(this,t,i,s)},s.createRemoteTextTrack=function(t){var i=Oe(t,{tech:this});return new gh(i)},s.addRemoteTextTrack=function(t,i){void 0===t&&(t={});var s=this.createRemoteTextTrack(t);return!0!==i&&!1!==i&&(bs.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),i=!0),this.remoteTextTrackEls().J(s),this.remoteTextTracks().tt(s.track),!0!==i&&this.ot.tt(s.track),s},s.removeRemoteTextTrack=function(t){var i=this.remoteTextTrackEls().Y(t);this.remoteTextTrackEls().K(i),this.remoteTextTracks().it(t),this.ot.it(t)},s.getVideoPlaybackQuality=function(){return{}},s.setPoster=function(){},s.playsinline=function(){},s.setPlaysinline=function(){},s.canPlayType=function(){return""},i.isTech=function(t){return t.prototype instanceof i||t instanceof i||t===i},i.registerTech=function(t,s){if(i.gt||(i.gt={}),!i.isTech(s))throw new v("Tech "+t+" must be a Tech");return i.gt[t]=s,s},i.getTech=function(t){return i.gt&&i.gt[t]?i.gt[t]:hs&&hs.videojs&&hs.videojs[t]?(bs.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),hs.videojs[t]):void 0},i}(Ve);Ch.prototype.nt,Ch.prototype.ht,Ch.prototype.rt,Ch.prototype.featuresVolumeControl=!0,Ch.prototype.featuresFullscreenResize=!1,Ch.prototype.featuresPlaybackRate=!1,Ch.prototype.featuresProgressEvents=!1,Ch.prototype.featuresTimeupdateEvents=!1,Ch.prototype.featuresNativeTextTracks=!1,Ch.withSourceHandlers=function(t){t.registerSourceHandler=function(i,s){var e=t.sourceHandlers;e||(e=t.sourceHandlers=[]),void 0===s&&(s=e.length),e.splice(s,0,i)},t.canPlayType=function(i){for(var s,e=t.sourceHandlers||[],n=0;n<e.length;n++)if(s=e[n].canPlayType(i))return s;return""},t.selectSourceHandler=function(i,s){for(var e=t.sourceHandlers||[],n=0;n<e.length;n++)if(e[n].canHandleSource(i,s))return e[n];return null},t.canPlaySource=function(i,s){var e=t.selectSourceHandler(i,s);return e?e.canHandleSource(i,s):""};["seekable","duration"].forEach(function(t){var i=this[t];"function"==typeof i&&(this[t]=function(){return this.yt&&this.yt[t]?this.yt[t].apply(this.yt,arguments):i.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(i){var s=t.selectSourceHandler(i,this.h);return s||(t.nativeSourceHandler?s=t.nativeSourceHandler:bs.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),s!==t.nativeSourceHandler&&(this.bt=i,this.off(this.v,"loadstart",t.prototype.wt),this.off(this.v,"loadstart",t.prototype.kt),this.one(this.v,"loadstart",t.prototype.wt)),this.yt=s.handleSource(i,this,this.h),this.on("dispose",this.disposeSourceHandler),this},t.prototype.wt=function(){this.one(this.v,"loadstart",t.prototype.kt)},t.prototype.kt=function(){this.disposeSourceHandler(),this.one(this.v,"loadstart",t.prototype.kt)},t.prototype.disposeSourceHandler=function(){this.bt&&(this.clearTracks(["audio","video"]),this.bt=null),this.cleanupAutoTextTracks(),this.yt&&(this.off(this.v,"loadstart",t.prototype.wt),this.off(this.v,"loadstart",t.prototype.kt),this.yt.dispose&&this.yt.dispose(),this.yt=null)}},Ve.registerComponent("Tech",Ch),Ve.registerComponent("MediaTechController",Ch),Ch.registerTech("Tech",Ch);var Ph=function(t){function i(i,s,e){var n;if(n=t.call(this,i,s,e)||this,s.playerOptions.sources&&0!==s.playerOptions.sources.length)i.src(s.playerOptions.sources);else for(var r=0,h=s.playerOptions.techOrder;r<h.length;r++){var o=Re(h[r]),a=Ch.getTech(o);if(o||(a=Ve.getComponent(o)),a&&a.isSupported()){i._t(o);break}}return n}return ze(i,t),i}(Ve);Ve.registerComponent("MediaLoader",Ph);var Mh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).emitTapEvents(),e.on(i,"languagechange",e.handleLanguagechange),e.enable(),e}ze(i,t);var s=i.prototype;return s.createEl=function(i,s,e){void 0===i&&(i="div"),void 0===s&&(s={}),void 0===e&&(e={}),s=ps({className:this.buildCSSClass(),tabIndex:0},s),"button"===i&&bs.error("Creating a ClickableComponent with an HTML element of "+i+" is not supported; use a Button instead."),e=ps({role:"button","aria-live":"polite"},e),this.jt=s.tabIndex;var n=t.prototype.createEl.call(this,i,s,e);return this.createControlTextEl(n),n},s.createControlTextEl=function(t){return this.xt=Ms("span",{className:"vjs-control-text"}),t&&t.appendChild(this.xt),this.controlText(this.St,t),this.xt},s.controlText=function(t,i){if(void 0===i&&(i=this.el()),void 0===t)return this.St||"Need Text";var s=this.localize(t);return this.St=t,this.xt.innerHTML=s,this.nonIconControl||i.setAttribute("title",s),this},s.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},s.enable=function(){return this.removeClass("vjs-disabled"),this.v.setAttribute("aria-disabled","false"),void 0!==this.jt&&this.v.setAttribute("tabIndex",this.jt),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this},s.disable=function(){return this.addClass("vjs-disabled"),this.v.setAttribute("aria-disabled","true"),void 0!==this.jt&&this.v.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},s.handleLanguagechange=function(){this.controlText(this.St)},s.handleClick=function(t){},s.handleFocus=function(t){Ce(os,"keydown",$e(this,this.handleKeyPress))},s.handleKeyPress=function(i){32===i.which||13===i.which?(i.preventDefault(),this.handleClick(i)):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,i)},s.handleBlur=function(t){Pe(os,"keydown",$e(this,this.handleKeyPress))},i}(Ve);Ve.registerComponent("ClickableComponent",Mh);var Ah=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).update(),i.on("posterchange",$e(Le(e),e.update)),e}ze(i,t);var s=i.prototype;return s.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},s.createEl=function(){var t=Ms("div",{className:"vjs-poster",tabIndex:-1});return we||(this.Tt=Ms("img"),t.appendChild(this.Tt)),t},s.update=function(t){var i=this.player().poster();this.setSrc(i),i?this.show():this.hide()},s.setSrc=function(t){if(this.Tt)this.Tt.src=t;else{var i="";t&&(i='url("'+t+'")'),this.v.style.backgroundImage=i}},s.handleClick=function(t){this.t.controls()&&(this.t.paused()?this.t.play():this.t.pause())},i}(Mh);Ve.registerComponent("PosterImage",Ah);var Ih="#222",Eh={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Dh(t,i){return"rgba("+k(t[1]+t[1],16)+","+k(t[2]+t[2],16)+","+k(t[3]+t[3],16)+","+i+")"}function Nh(t,i,s){try{t.style[i]=s}catch(t){return}}var Fh=function(t){function i(i,s,e){var n;return n=t.call(this,i,s,e)||this,i.on("loadstart",$e(Le(n),n.toggleDisplay)),i.on("texttrackchange",$e(Le(n),n.updateDisplay)),i.ready($e(Le(n),function(){if(i.H&&i.H.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",$e(this,this.updateDisplay));for(var t=this.h.playerOptions.tracks||[],s=0;s<t.length;s++)this.t.addRemoteTextTrack(t[s],!0);var e,n,r={captions:1,subtitles:1},h=this.t.textTracks();if(h){for(var o=0;o<h.length;o++){var a=h[o];a.default&&("descriptions"!==a.kind||e?a.kind in r&&!n&&(n=a):e=a)}n?n.mode="showing":e&&(e.mode="showing")}}})),n}ze(i,t);var s=i.prototype;return s.toggleDisplay=function(){this.t.H&&this.t.H.featuresNativeTextTracks?this.hide():this.show()},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},s.clearDisplay=function(){"function"==typeof hs.WebVTT&&hs.WebVTT.processCues(hs,[],this.v)},s.updateDisplay=function(){var t=this.t.textTracks();if(this.clearDisplay(),t){for(var i=null,s=null,e=t.length;e--;){var n=t[e];"showing"===n.mode&&("descriptions"===n.kind?i=n:s=n)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i))}},s.updateForTrack=function(t){if("function"==typeof hs.WebVTT&&t.activeCues){for(var i=this.t.textTrackSettings.getValues(),s=[],e=0;e<t.activeCues.length;e++)s.push(t.activeCues[e]);hs.WebVTT.processCues(hs,s,this.v);for(var n=s.length;n--;){var r=s[n];if(r){var h=r.displayState;if(i.color&&(h.firstChild.style.color=i.color),i.textOpacity&&Nh(h.firstChild,"color",Dh(i.color||"#fff",i.textOpacity)),i.backgroundColor&&(h.firstChild.style.backgroundColor=i.backgroundColor),i.backgroundOpacity&&Nh(h.firstChild,"backgroundColor",Dh(i.backgroundColor||"#000",i.backgroundOpacity)),i.windowColor&&(i.windowOpacity?Nh(h,"backgroundColor",Dh(i.windowColor,i.windowOpacity)):h.style.backgroundColor=i.windowColor),i.edgeStyle&&("dropshadow"===i.edgeStyle?h.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+Ih:"raised"===i.edgeStyle?h.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+Ih:"depressed"===i.edgeStyle?h.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+Ih:"uniform"===i.edgeStyle&&(h.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+Ih)),i.fontPercent&&1!==i.fontPercent){var o=hs.parseFloat(h.style.fontSize);h.style.fontSize=o*i.fontPercent+"px",h.style.height="auto",h.style.top="auto",h.style.bottom="2px"}i.fontFamily&&"default"!==i.fontFamily&&("small-caps"===i.fontFamily?h.firstChild.style.fontVariant="small-caps":h.firstChild.style.fontFamily=Eh[i.fontFamily])}}}},i}(Ve);Ve.registerComponent("TextTrackDisplay",Fh);var Bh=function(t){function i(){return t.apply(this,arguments)||this}return ze(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},i}(Ve);Ve.registerComponent("LoadingSpinner",Bh);var $h=function(t){function i(){return t.apply(this,arguments)||this}ze(i,t);var s=i.prototype;return s.createEl=function(t,i,s){void 0===t&&(t="button"),void 0===i&&(i={}),void 0===s&&(s={}),i=ps({className:this.buildCSSClass()},i),"button"!==t&&(bs.warn("Creating a Button with an HTML element of "+t+" is deprecated; use ClickableComponent instead."),i=ps({tabIndex:0},i),s=ps({role:"button"},s)),s=ps({type:"button","aria-live":"polite"},s);var e=Ve.prototype.createEl.call(this,t,i,s);return this.createControlTextEl(e),e},s.addChild=function(t,i){void 0===i&&(i={});var s=this.constructor.name;return bs.warn("Adding an actionable (user controllable) child to a Button ("+s+") is not supported; use a ClickableComponent instead."),Ve.prototype.addChild.call(this,t,i)},s.enable=function(){t.prototype.enable.call(this),this.v.removeAttribute("disabled")},s.disable=function(){t.prototype.disable.call(this),this.v.setAttribute("disabled","disabled")},s.handleKeyPress=function(i){32!==i.which&&13!==i.which&&t.prototype.handleKeyPress.call(this,i)},i}(Mh);Ve.registerComponent("Button",$h);var Rh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).Ct=!1,e.on("mousedown",e.handleMouseDown),e}ze(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-big-play-button"},s.handleClick=function(t){var i=this;if(this.Ct&&t.clientX&&t.clientY)this.t.play();else{var s=this.t.getChild("controlBar"),e=s&&s.getChild("playToggle");this.one(this.t,"play",function(){e?e.focus():i.t.focus()}),this.t.play()}},s.handleKeyPress=function(i){this.Ct=!1,t.prototype.handleKeyPress.call(this,i)},s.handleMouseDown=function(t){this.Ct=!0},i}($h);Rh.prototype.St="Play Video",Ve.registerComponent("BigPlayButton",Rh);var Oh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).controlText(s&&s.controlText||"Close"),e}ze(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},i}($h);Ve.registerComponent("CloseButton",Oh);var Vh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"play",e.handlePlay),e.on(i,"pause",e.handlePause),e}ze(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.t.paused()?this.t.play():this.t.pause()},s.handlePlay=function(t){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},s.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},i}($h);function Uh(t,i){void 0===i&&(i=t),t=t<0?0:t;var s=w.floor(t%60),e=w.floor(t/60%60),n=w.floor(t/3600),r=w.floor(i/60%60),h=w.floor(i/3600);return(j(t)||t===1/0)&&(n=e=s="-"),(n=n>0||h>0?n+":":"")+(e=((n||r>=10)&&e<10?"0"+e:e)+":")+(s=s<10?"0"+s:s)}Vh.prototype.St="Play",Ve.registerComponent("PlayToggle",Vh);var Lh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"timeupdate",e.updateContent),e.on(i,"languagechange",e.updateContent),e}ze(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.S=Ms("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),i.appendChild(this.S),i},s.updateContent=function(t){var i=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime(),s=this.localize("Current Time"),e=Uh(i,this.t.duration());e!==this.Pt&&(this.Pt=e,this.S.innerHTML='<span class="vjs-control-text">'+s+"</span> "+e)},i}(Ve);Ve.registerComponent("CurrentTimeDisplay",Lh);var Hh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"durationchange",e.updateContent),e.on(i,"timeupdate",e.updateContent),e.on(i,"loadedmetadata",e.updateContent),e.on(i,"languagechange",e.updateContent),e}ze(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.S=Ms("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),i.appendChild(this.S),i},s.updateContent=function(t){var i=this.t.duration();if(i&&this.ct!==i){this.ct=i;var s=this.localize("Duration Time"),e=Uh(i);this.S.innerHTML='<span class="vjs-control-text">'+s+"</span> "+e}},i}(Ve);Ve.registerComponent("DurationDisplay",Hh);var zh=function(t){function i(){return t.apply(this,arguments)||this}return ze(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},i}(Ve);Ve.registerComponent("TimeDivider",zh);var Wh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"timeupdate",e.updateContent),e.on(i,"durationchange",e.updateContent),e.on(i,"languagechange",e.updateContent),e}ze(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.S=Ms("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),i.appendChild(this.S),i},s.updateContent=function(t){if(this.t.duration()){var i=this.localize("Remaining Time"),s=Uh(this.t.remainingTime());s!==this.Pt&&(this.Pt=s,this.S.innerHTML='<span class="vjs-control-text">'+i+"</span> -"+s)}},i}(Ve);Ve.registerComponent("RemainingTimeDisplay",Wh);var qh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateShowing(),e.on(e.player(),"durationchange",e.updateShowing),e.on(e.player(),"languagechange",e.handleLanguagechange),e}ze(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.S=Ms("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.xt=Ms("span",{className:"vjs-control-text",innerHTML:this.localize("Stream Type")}),this.Mt=os.createTextNode(this.localize("LIVE")),this.S.appendChild(this.xt),this.S.appendChild(this.Mt),i.appendChild(this.S),i},s.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},s.handleLanguagechange=function(){this.xt.innerHTML=this.localize("Stream Type"),this.Mt.innerHTML=this.localize("LIVE")},i}(Ve);Ve.registerComponent("LiveDisplay",qh);var Gh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).bar=e.getChild(e.h.barName),e.vertical(!!e.h.vertical),e.on("mousedown",e.handleMouseDown),e.on("touchstart",e.handleMouseDown),e.on("focus",e.handleFocus),e.on("blur",e.handleBlur),e.on("click",e.handleClick),e.on(i,"controlsvisible",e.update),e.on(i,e.playerEvent,e.update),e}ze(i,t);var s=i.prototype;return s.createEl=function(i,s,e){return void 0===s&&(s={}),void 0===e&&(e={}),s.className=s.className+" vjs-slider",s=ps({tabIndex:0},s),e=ps({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},e),t.prototype.createEl.call(this,i,s,e)},s.handleMouseDown=function(t){var i=this.bar.v.ownerDocument;t.preventDefault(),os.body.focus(),os.onselectstart=function(){return!1},this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(i,"mousemove",this.handleMouseMove),this.on(i,"mouseup",this.handleMouseUp),this.on(i,"touchmove",this.handleMouseMove),this.on(i,"touchend",this.handleMouseUp),this.handleMouseMove(t)},s.handleMouseMove=function(t){},s.handleMouseUp=function(){var t=this.bar.v.ownerDocument;os.onselectstart=function(){return!0},this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},s.update=function(){if(this.v){var t=this.getPercent(),i=this.bar;if(i){("number"!=typeof t||t!=t||t<0||t===1/0)&&(t=0);var s=(100*t).toFixed(2)+"%";this.vertical()?i.el().style.height=s:i.el().style.width=s}}},s.calculateDistance=function(t){var i=qs(this.v,t);return this.vertical()?i.y:i.x},s.handleFocus=function(){this.on(this.bar.v.ownerDocument,"keydown",this.handleKeyPress)},s.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepForward())},s.handleBlur=function(){this.off(this.bar.v.ownerDocument,"keydown",this.handleKeyPress)},s.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},s.vertical=function(t){return void 0===t?this.At||!1:(this.At=!!t,this.At?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},i}(Ve);function Xh(t,i){if(!t||!i)return"";if("function"==typeof hs.getComputedStyle){var s=hs.getComputedStyle(t);return s?s[i]:""}return t.currentStyle[i]||""}Ve.registerComponent("Slider",Gh);var Jh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).It=[],e.on(i,"progress",e.update),e.on(i,"languagechange",e.handleLanguagechange),e}ze(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-load-progress"});return this.Et=Ms("span",{innerHTML:this.localize("Loaded")}),this.Dt=os.createTextNode(": 0%"),this.xt=Ms("span",{className:"vjs-control-text"}),this.xt.appendChild(this.Et),this.xt.appendChild(this.Dt),i.appendChild(this.xt),i},s.update=function(t){var i=this.t.buffered(),s=this.t.duration(),e=this.t.bufferedEnd(),n=this.It,r=function(t,i){var s=t/i||0;return 100*(s>=1?1:s)+"%"};this.v.style.width=r(e,s);for(var h=0;h<i.length;h++){var o=i.start(h),a=i.end(h),u=n[h];u||(u=this.v.appendChild(Ms()),n[h]=u),u.style.left=r(o,e),u.style.width=r(a-o,e)}for(var c=n.length;c>i.length;c--)this.v.removeChild(n[c-1]);n.length=i.length},s.handleLanguagechange=function(){this.Et.innerHTML=this.localize("Loaded")},i}(Ve);Ve.registerComponent("LoadProgressBar",Jh);var Qh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateDataAttr(),e.on(i,"timeupdate",e.updateDataAttr),e.on(i,"languagechange",e.handleLanguagechange),i.ready($e(Le(e),e.updateDataAttr)),s.playerOptions&&s.playerOptions.controlBar&&s.playerOptions.controlBar.progressControl&&s.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=s.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&e.addClass("vjs-keep-tooltips-inside"),e}ze(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"});return this.Nt=Ms("span",{innerHTML:this.localize("Progress")}),this.Ft=os.createTextNode(": 0%"),this.xt=Ms("span",{className:"vjs-control-text"}),this.xt.appendChild(this.Nt),this.xt.appendChild(this.Ft),i.appendChild(this.xt),i},s.updateDataAttr=function(t){var i=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime();this.v.setAttribute("data-current-time",Uh(i,this.t.duration()))},s.handleLanguagechange=function(){this.Nt.innerHTML=this.localize("Progress")},i}(Ve);Ve.registerComponent("PlayProgressBar",Qh);var Yh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateDataAttr(),e.on(i,"timeupdate",e.updateDataAttr),e.on(i,"languagechange",e.handleLanguagechange),i.ready($e(Le(e),e.updateDataAttr)),e}ze(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar"});return this.tooltip=Ms("div",{className:"vjs-time-tooltip"}),this.Nt=Ms("span",{innerHTML:this.localize("Progress")}),this.Ft=os.createTextNode(": 0%"),this.xt=Ms("span",{className:"vjs-control-text"}),this.xt.appendChild(this.Nt),this.xt.appendChild(this.Ft),i.appendChild(this.tooltip),i.appendChild(this.xt),i},s.updateDataAttr=function(t){var i=Uh(this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime(),this.t.duration());this.v.setAttribute("data-current-time",i),this.tooltip.innerHTML=i},s.handleLanguagechange=function(){this.Nt.innerHTML=this.localize("Progress")},i}(Ve);Ve.registerComponent("TooltipProgressBar",Yh);var Kh=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"timeupdate",e.updateProgress),e.on(i,"ended",e.updateProgress),i.ready($e(Le(e),e.updateProgress)),s.playerOptions&&s.playerOptions.controlBar&&s.playerOptions.controlBar.progressControl&&s.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=s.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&(e.tooltipProgressBar=e.addChild("TooltipProgressBar")),e}ze(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},s.updateProgress=function(t){if(this.updateAriaAttributes(this.v),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.v),this.tooltipProgressBar.v.style.width=this.bar.v.style.width;var i=_(Xh(this.player().el(),"width")),s=_(Xh(this.tooltipProgressBar.tooltip,"width")),e=this.tooltipProgressBar.el().style;e.maxWidth=w.floor(i-s/2)+"px",e.minWidth=w.ceil(s/2)+"px",e.right="-"+s/2+"px"}},s.updateAriaAttributes=function(t){var i=this.t.scrubbing()?this.t.getCache().currentTime:this.t.currentTime();t.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),t.setAttribute("aria-valuetext",Uh(i,this.t.duration()))},s.getPercent=function(){var t=this.t.currentTime()/this.t.duration();return t>=1?1:t},s.handleMouseDown=function(i){this.t.scrubbing(!0),this.videoWasPlaying=!this.t.paused(),this.t.pause(),t.prototype.handleMouseDown.call(this,i)},s.handleMouseMove=function(t){var i=this.calculateDistance(t)*this.t.duration();i===this.t.duration()&&(i-=.1),this.t.currentTime(i)},s.handleMouseUp=function(i){t.prototype.handleMouseUp.call(this,i),this.t.scrubbing(!1),this.videoWasPlaying&&this.t.play()},s.stepForward=function(){this.t.currentTime(this.t.currentTime()+5)},s.stepBack=function(){this.t.currentTime(this.t.currentTime()-5)},i}(Gh);Kh.prototype.h={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},Kh.prototype.playerEvent="timeupdate",Ve.registerComponent("SeekBar",Kh);var Zh=function(t){function i(i,s){var e;return e=t.call(this,i,s)||this,s.playerOptions&&s.playerOptions.controlBar&&s.playerOptions.controlBar.progressControl&&s.playerOptions.controlBar.progressControl.keepTooltipsInside&&(e.keepTooltipsInside=s.playerOptions.controlBar.progressControl.keepTooltipsInside),e.keepTooltipsInside&&(e.tooltip=Ms("div",{className:"vjs-time-tooltip"}),e.el().appendChild(e.tooltip),e.addClass("vjs-keep-tooltips-inside")),e.update(0,0),i.on("ready",function(){e.on(i.controlBar.progressControl.el(),"mousemove",function(t,i){var s=Date.now();return function(){var e=Date.now();e-s>=i&&(t.apply(void 0,arguments),s=e)}}($e(Le(e),e.handleMouseMove),25))}),e}ze(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},s.handleMouseMove=function(t){var i=this.t.duration(),s=this.calculateDistance(t)*i,e=t.pageX-Ws(this.el().parentNode).left;this.update(s,e)},s.update=function(t,i){var s=Uh(t,this.t.duration());if(this.el().style.left=i+"px",this.el().setAttribute("data-current-time",s),this.keepTooltipsInside){var e=i-this.Bt(i)+1,n=_(Xh(this.tooltip,"width"))/2;this.tooltip.innerHTML=s,this.tooltip.style.right="-"+(n-e)+"px"}},s.calculateDistance=function(t){return qs(this.el().parentNode,t).x},s.Bt=function(t){if(!this.keepTooltipsInside)return t;var i=_(Xh(this.player().el(),"width")),s=_(Xh(this.tooltip,"width"))/2,e=t;return t<s?e=w.ceil(s):t>i-s&&(e=w.floor(i-s)),e},i}(Ve);Ve.registerComponent("MouseTimeDisplay",Zh);var to=function(t){function i(){return t.apply(this,arguments)||this}return ze(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},i}(Ve);to.prototype.h={children:["seekBar"]},Ve.registerComponent("ProgressControl",to);var io=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"fullscreenchange",e.handleFullscreenChange),e}ze(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},s.handleFullscreenChange=function(t){this.t.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},s.handleClick=function(t){this.t.isFullscreen()?this.t.exitFullscreen():this.t.requestFullscreen()},i}($h);io.prototype.St="Fullscreen",Ve.registerComponent("FullscreenToggle",io);var so=function(t){function i(){return t.apply(this,arguments)||this}return ze(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},i}(Ve);Ve.registerComponent("VolumeLevel",so);var eo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"volumechange",e.updateARIAAttributes),i.ready($e(Le(e),e.updateARIAAttributes)),e}ze(i,t);var s=i.prototype;return s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},s.handleMouseMove=function(t){this.checkMuted(),this.t.volume(this.calculateDistance(t))},s.checkMuted=function(){this.t.muted()&&this.t.muted(!1)},s.getPercent=function(){return this.t.muted()?0:this.t.volume()},s.stepForward=function(){this.checkMuted(),this.t.volume(this.t.volume()+.1)},s.stepBack=function(){this.checkMuted(),this.t.volume(this.t.volume()-.1)},s.updateARIAAttributes=function(t){var i=(100*this.t.volume()).toFixed(2);this.v.setAttribute("aria-valuenow",i),this.v.setAttribute("aria-valuetext",i+"%")},i}(Gh);eo.prototype.h={children:["volumeLevel"],barName:"volumeLevel"},eo.prototype.playerEvent="volumechange",Ve.registerComponent("VolumeBar",eo);var no=function(t){function i(i,s){var e;return e=t.call(this,i,s)||this,i.H&&!1===i.H.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(i,"loadstart",function(){!1===i.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),e}return ze(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},i}(Ve);no.prototype.h={children:["volumeBar"]},Ve.registerComponent("VolumeControl",no);var ro=function(t){function i(){return t.apply(this,arguments)||this}ze(i,t);var s=i.prototype;return s.addItem=function(t){this.addChild(t),t.on("click",$e(this,function(){this.unlockShowing()}))},s.createEl=function(){var i=this.h.contentElType||"ul";this.S=Ms(i,{className:"vjs-menu-content"});var s=t.prototype.createEl.call(this,"div",{append:this.S,className:"vjs-menu"});return s.appendChild(this.S),Ce(s,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),s},i}(Ve);Ve.registerComponent("Popup",ro);var ho=function(t){function i(i,s){var e;return void 0===s&&(s={}),(e=t.call(this,i,s)||this).update(),e}ze(i,t);var s=i.prototype;return s.update=function(){var t=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=t,this.addChild(t),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},s.createPopup=function(){},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},s.buildCSSClass=function(){var i="vjs-menu-button";return!0===this.h.inline?i+="-inline":i+="-popup","vjs-menu-button "+i+" "+t.prototype.buildCSSClass.call(this)},i}(Mh);Ve.registerComponent("PopupButton",ho);var oo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"volumechange",e.update),i.H&&!1===i.H.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(i,"loadstart",function(){this.update(),!1===i.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),e}ze(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.t.muted(!this.t.muted())},s.update=function(t){var i=this.t.volume(),s=3;this.t.muted()?s=0:i<.33?s=1:i<.67&&(s=2);var e=this.t.muted()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e);for(var n=0;n<4;n++)Os(this.v,"vjs-vol-"+n);Rs(this.v,"vjs-vol-"+s)},i}($h);oo.prototype.St="Mute",Ve.registerComponent("MuteToggle",oo);var ao=function(t){function i(i,s){var e;function n(){i.H&&!1===i.H.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}return void 0===s&&(s={}),void 0===s.inline&&(s.inline=!0),void 0===s.vertical&&(s.inline?s.vertical=!1:s.vertical=!0),s.volumeBar=s.volumeBar||{},s.volumeBar.vertical=!!s.vertical,(e=t.call(this,i,s)||this).on(i,"volumechange",e.volumeUpdate),e.on(i,"loadstart",e.volumeUpdate),n.call(Le(e)),e.on(i,"loadstart",n),e.on(e.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),e.on(e.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),e.on(e.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),e.on(e.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),e}ze(i,t);var s=i.prototype;return s.buildCSSClass=function(){var i="";return i=this.h.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+t.prototype.buildCSSClass.call(this)+" "+i},s.createPopup=function(){var t=new ro(this.t,{contentElType:"div"}),i=new eo(this.t,this.h.volumeBar);return t.addChild(i),this.menuContent=t,this.volumeBar=i,this.attachVolumeBarEvents(),t},s.handleClick=function(i){oo.prototype.handleClick.call(this),t.prototype.handleClick.call(this)},s.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],$e(this,this.handleMouseDown))},s.handleMouseDown=function(t){this.on(["mousemove","touchmove"],$e(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.v.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},s.handleMouseUp=function(t){this.off(["mousemove","touchmove"],$e(this.volumeBar,this.volumeBar.handleMouseMove))},i}(ho);ao.prototype.volumeUpdate=oo.prototype.update,ao.prototype.St="Mute",Ve.registerComponent("VolumeMenuButton",ao);var uo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).$t=-1,e.on("keydown",e.handleKeyPress),e}ze(i,t);var s=i.prototype;return s.addItem=function(t){this.addChild(t),t.on("click",$e(this,function(t){this.unlockShowing()}))},s.createEl=function(){var i=this.h.contentElType||"ul";this.S=Ms(i,{className:"vjs-menu-content"}),this.S.setAttribute("role","menu");var s=t.prototype.createEl.call(this,"div",{append:this.S,className:"vjs-menu"});return s.setAttribute("role","presentation"),s.appendChild(this.S),Ce(s,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),s},s.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepBack())},s.stepForward=function(){var t=0;void 0!==this.$t&&(t=this.$t+1),this.focus(t)},s.stepBack=function(){var t=0;void 0!==this.$t&&(t=this.$t-1),this.focus(t)},s.focus=function(t){void 0===t&&(t=0);var i=this.children().slice();i.length&&i[0].className&&/vjs-menu-title/.test(i[0].className)&&i.shift(),i.length>0&&(t<0?t=0:t>=i.length&&(t=i.length-1),this.$t=t,i[t].v.focus())},i}(Ve);Ve.registerComponent("Menu",uo);var co=function(t){function i(i,s){var e;return void 0===s&&(s={}),(e=t.call(this,i,s)||this).update(),e.Rt=!0,e.v.setAttribute("aria-haspopup","true"),e.v.setAttribute("role","menuitem"),e.on("keydown",e.handleSubmenuKeyPress),e}ze(i,t);var s=i.prototype;return s.update=function(){var t=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=t,this.addChild(t),this.Ot=!1,this.v.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.Vt?this.hide():this.show()},s.createMenu=function(){var t=new uo(this.t);if(this.Vt=0,this.h.title){var i=Ms("li",{className:"vjs-menu-title",innerHTML:Re(this.h.title),tabIndex:-1});this.Vt+=1,t.m.unshift(i),Is(i,t.contentEl())}if(this.items=this.createItems(),this.items)for(var s=0;s<this.items.length;s++)t.addItem(this.items[s]);return t},s.createItems=function(){},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},s.buildCSSClass=function(){var i="vjs-menu-button";return!0===this.h.inline?i+="-inline":i+="-popup","vjs-menu-button "+i+" "+t.prototype.buildCSSClass.call(this)},s.handleClick=function(t){this.one(this.menu.contentEl(),"mouseleave",$e(this,function(t){this.unpressButton(),this.v.blur()})),this.Ot?this.unpressButton():this.pressButton()},s.handleKeyPress=function(i){27===i.which||9===i.which?(this.Ot&&this.unpressButton(),9!==i.which&&i.preventDefault()):38===i.which||40===i.which?this.Ot||(this.pressButton(),i.preventDefault()):t.prototype.handleKeyPress.call(this,i)},s.handleSubmenuKeyPress=function(t){27!==t.which&&9!==t.which||(this.Ot&&this.unpressButton(),9!==t.which&&t.preventDefault())},s.pressButton=function(){this.Rt&&(this.Ot=!0,this.menu.lockShowing(),this.v.setAttribute("aria-expanded","true"),this.menu.focus())},s.unpressButton=function(){this.Rt&&(this.Ot=!1,this.menu.unlockShowing(),this.v.setAttribute("aria-expanded","false"),this.v.focus())},s.disable=function(){return this.Ot=!1,this.menu.unlockShowing(),this.v.setAttribute("aria-expanded","false"),this.Rt=!1,t.prototype.disable.call(this)},s.enable=function(){return this.Rt=!0,t.prototype.enable.call(this)},i}(Mh);Ve.registerComponent("MenuButton",co);var lo=function(t){function i(i,s){var e,n=s.tracks;if((e=t.call(this,i,s)||this).items.length<=1&&e.hide(),!n)return Le(e);var r=$e(Le(e),e.update);return n.addEventListener("removetrack",r),n.addEventListener("addtrack",r),e.t.on("dispose",function(){n.removeEventListener("removetrack",r),n.removeEventListener("addtrack",r)}),e}return ze(i,t),i}(co);Ve.registerComponent("TrackButton",lo);var fo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).selectable=s.selectable,e.selected(s.selected),e.selectable?e.v.setAttribute("role","menuitemcheckbox"):e.v.setAttribute("role","menuitem"),e}ze(i,t);var s=i.prototype;return s.createEl=function(i,s,e){this.nonIconControl=!0;var n=t.prototype.createEl.call(this,"li",ps({className:"vjs-menu-item",tabIndex:-1},s),e);return this.Ut=os.createTextNode(this.localize(this.h.label)),n.appendChild(this.Ut),n},s.handleClick=function(t){this.selected(!0)},s.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.v.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.v.setAttribute("aria-checked","false"),this.controlText("")))},s.handleLanguagechange=function(){t.prototype.handleLanguagechange.call(this),this.Ut.innerHTML=this.localize(this.h.label)},i}(Mh);Ve.registerComponent("MenuItem",fo);var vo=function(t){function i(i,s){var e,n,r=s.track,h=i.textTracks();if(s.label=r.label||r.language||"Unknown",s.selected=r.default||"showing"===r.mode,(e=t.call(this,i,s)||this).track=r,h){var o=$e(Le(e),e.handleTracksChange);i.on(["loadstart","texttrackchange"],o),h.addEventListener("change",o),e.on("dispose",function(){h.removeEventListener("change",o)})}h&&void 0===h.onchange&&e.on(["tap","click"],function(){if("object"!=typeof hs.Event)try{n=new hs.Event("change")}catch(t){}n||(n=os.createEvent("Event")).initEvent("change",!0,!0),h.dispatchEvent(n)});return e}ze(i,t);var s=i.prototype;return s.handleClick=function(i){var s=this.track.kind,e=this.t.textTracks();if(t.prototype.handleClick.call(this,i),e)for(var n=0;n<e.length;n++){var r=e[n];r.kind===s&&(r===this.track?"showing"!==r.mode&&(r.mode="showing"):"disabled"!==r.mode&&(r.mode="disabled"))}},s.handleTracksChange=function(t){this.selected("showing"===this.track.mode)},i}(fo);Ve.registerComponent("TextTrackMenuItem",vo);var po=function(t){function i(i,s){var e;return s.track={player:i,kind:s.kind,label:s.kind+" off",default:!1,mode:"disabled"},s.selectable=!0,(e=t.call(this,i,s)||this).selected(!0),e}return ze(i,t),i.prototype.handleTracksChange=function(t){for(var i=this.player().textTracks(),s=!0,e=0,n=i.length;e<n;e++){var r=i[e];if(r.kind===this.track.kind&&"showing"===r.mode){s=!1;break}}this.selected(s)},i}(vo);Ve.registerComponent("OffTextTrackMenuItem",po);var mo=function(t){function i(i,s){return void 0===s&&(s={}),s.tracks=i.textTracks(),t.call(this,i,s)||this}return ze(i,t),i.prototype.createItems=function(t){void 0===t&&(t=[]),t.push(new po(this.t,{kind:this.Lt})),this.Vt+=1;var i=this.t.textTracks();if(!i)return t;for(var s=0;s<i.length;s++){var e=i[s];e.kind===this.Lt&&t.push(new vo(this.t,{track:e,selectable:!0}))}return t},i}(lo);Ve.registerComponent("TextTrackButton",mo);var go=function(t){function i(i,s){var e,n=s.track,r=s.cue,h=i.currentTime();return s.selectable=!0,s.label=r.text,s.selected=r.startTime<=h&&h<r.endTime,(e=t.call(this,i,s)||this).track=n,e.cue=r,n.addEventListener("cuechange",$e(Le(e),e.update)),e}ze(i,t);var s=i.prototype;return s.handleClick=function(i){t.prototype.handleClick.call(this),this.t.currentTime(this.cue.startTime),this.update(this.cue.startTime)},s.update=function(t){var i=this.cue,s=this.t.currentTime();this.selected(i.startTime<=s&&s<i.endTime)},i}(fo);Ve.registerComponent("ChaptersTrackMenuItem",go);var yo=function(t){function i(i,s,e){var n;return(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Chapters Menu"),n}ze(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},s.update=function(i){this.Ht&&(!i||"addtrack"!==i.type&&"removetrack"!==i.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},s.setTrack=function(t){if(this.Ht!==t){if(this.zt||(this.zt=this.update.bind(this)),this.Ht){var i=this.t.remoteTextTrackEls().Y(this.Ht);i&&i.removeEventListener("load",this.zt),this.Ht=null}if(this.Ht=t,this.Ht){this.Ht.mode="hidden";var s=this.t.remoteTextTrackEls().Y(this.Ht);s&&s.addEventListener("load",this.zt)}}},s.findChaptersTrack=function(){for(var t=this.t.textTracks()||[],i=t.length-1;i>=0;i--){var s=t[i];if(s.kind===this.Lt)return s}},s.getMenuCaption=function(){return this.Ht&&this.Ht.label?this.Ht.label:this.localize(Re(this.Lt))},s.createMenu=function(){return this.h.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},s.createItems=function(){var t=[];if(!this.Ht)return t;var i=this.Ht.cues;if(!i)return t;for(var s=0,e=i.length;s<e;s++){var n=i[s],r=new go(this.t,{track:this.Ht,cue:n});t.push(r)}return t},i}(mo);yo.prototype.Lt="chapters",yo.prototype.St="Chapters",Ve.registerComponent("ChaptersButton",yo);var bo=function(t){function i(i,s,e){var n;(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Descriptions Menu");var r=i.textTracks();if(r){var h=$e(Le(n),n.handleTracksChange);r.addEventListener("change",h),n.on("dispose",function(){r.removeEventListener("change",h)})}return n}ze(i,t);var s=i.prototype;return s.handleTracksChange=function(t){for(var i=this.player().textTracks(),s=!1,e=0,n=i.length;e<n;e++){var r=i[e];if(r.kind!==this.Lt&&"showing"===r.mode){s=!0;break}}s?this.disable():this.enable()},s.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},i}(mo);bo.prototype.Lt="descriptions",bo.prototype.St="Descriptions",Ve.registerComponent("DescriptionsButton",bo);var wo=function(t){function i(i,s,e){var n;return(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Subtitles Menu"),n}return ze(i,t),i.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},i}(mo);wo.prototype.Lt="subtitles",wo.prototype.St="Subtitles",Ve.registerComponent("SubtitlesButton",wo);var ko=function(t){function i(i,s){var e;return s.track={player:i,kind:s.kind,label:s.kind+" settings",selectable:!1,default:!1,mode:"disabled"},s.selectable=!1,(e=t.call(this,i,s)||this).addClass("vjs-texttrack-settings"),e.controlText(", opens "+s.kind+" settings dialog"),e}return ze(i,t),i.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").v.focus()},i}(vo);Ve.registerComponent("CaptionSettingsMenuItem",ko);var _o=function(t){function i(i,s,e){var n;return(n=t.call(this,i,s,e)||this).v.setAttribute("aria-label","Captions Menu"),n}ze(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},s.createItems=function(){var i=[];return this.player().H&&this.player().H.featuresNativeTextTracks||(i.push(new ko(this.t,{kind:this.Lt})),this.Vt+=1),t.prototype.createItems.call(this,i)},i}(mo);_o.prototype.Lt="captions",_o.prototype.St="Captions",Ve.registerComponent("CaptionsButton",_o);var jo=function(t){function i(i,s){var e,n=s.track,r=i.audioTracks();if(s.label=n.label||n.language||"Unknown",s.selected=n.enabled,(e=t.call(this,i,s)||this).track=n,r){var h=$e(Le(e),e.handleTracksChange);r.addEventListener("change",h),e.on("dispose",function(){r.removeEventListener("change",h)})}return e}ze(i,t);var s=i.prototype;return s.handleClick=function(i){var s=this.t.audioTracks();if(t.prototype.handleClick.call(this,i),s)for(var e=0;e<s.length;e++){var n=s[e];n.enabled=n===this.track}},s.handleTracksChange=function(t){this.selected(this.track.enabled)},i}(fo);Ve.registerComponent("AudioTrackMenuItem",jo);var xo=function(t){function i(i,s){var e;return void 0===s&&(s={}),s.tracks=i.audioTracks&&i.audioTracks(),(e=t.call(this,i,s)||this).v.setAttribute("aria-label","Audio Menu"),e}ze(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},s.createItems=function(t){void 0===t&&(t=[]),this.Vt=1;var i=this.t.audioTracks&&this.t.audioTracks();if(!i)return t;for(var s=0;s<i.length;s++){var e=i[s];t.push(new jo(this.t,{track:e,selectable:!0}))}return t},i}(lo);xo.prototype.St="Audio Track",Ve.registerComponent("AudioTrackButton",xo);var So=function(t){function i(i,s){var e,n=s.rate,r=_(n,10);return s.label=n,s.selected=1===r,s.selectable=!0,(e=t.call(this,i,s)||this).label=n,e.rate=r,e.on(i,"ratechange",e.update),e}ze(i,t);var s=i.prototype;return s.handleClick=function(i){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},s.update=function(t){this.selected(this.player().playbackRate()===this.rate)},i}(fo);So.prototype.contentElType="button",Ve.registerComponent("PlaybackRateMenuItem",So);var To=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).updateVisibility(),e.updateLabel(),e.on(i,"loadstart",e.updateVisibility),e.on(i,"ratechange",e.updateLabel),e}ze(i,t);var s=i.prototype;return s.createEl=function(){var i=t.prototype.createEl.call(this);return this.Ut=Ms("div",{className:"vjs-playback-rate-value",innerHTML:1}),i.appendChild(this.Ut),i},s.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},s.createMenu=function(){var t=new uo(this.player()),i=this.playbackRates();if(i)for(var s=i.length-1;s>=0;s--)t.addChild(new So(this.player(),{rate:i[s]+"x"}));return t},s.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},s.handleClick=function(t){for(var i=this.player().playbackRate(),s=this.playbackRates(),e=s[0],n=0;n<s.length;n++)if(s[n]>i){e=s[n];break}this.player().playbackRate(e)},s.playbackRates=function(){return this.h.playbackRates||this.h.playerOptions&&this.h.playerOptions.playbackRates},s.playbackRateSupported=function(){return this.player().H&&this.player().H.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},s.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},s.updateLabel=function(t){this.playbackRateSupported()&&(this.Ut.innerHTML=this.player().playbackRate()+"x")},i}(co);To.prototype.St="Playback Rate",Ve.registerComponent("PlaybackRateMenuButton",To);var Co=function(t){function i(){return t.apply(this,arguments)||this}ze(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},s.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},i}(Ve);Ve.registerComponent("Spacer",Co);var Po=function(t){function i(){return t.apply(this,arguments)||this}ze(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},s.createEl=function(){var i=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return i.innerHTML=" ",i},i}(Co);Ve.registerComponent("CustomControlSpacer",Po);var Mo=function(t){function i(){return t.apply(this,arguments)||this}return ze(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},i}(Ve);Mo.prototype.h={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},Ve.registerComponent("ControlBar",Mo);var Ao=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).on(i,"error",e.open),e}ze(i,t);var s=i.prototype;return s.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},s.content=function(){var t=this.player().error();return t?this.localize(t.message):""},i}(un);Ao.prototype.h=Oe(un.prototype.h,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Ve.registerComponent("ErrorDisplay",Ao);var Io="vjs-text-track-settings",Eo=["#000","Black"],Do=["#00F","Blue"],No=["#0FF","Cyan"],Fo=["#0F0","Green"],Bo=["#F0F","Magenta"],$o=["#F00","Red"],Ro=["#FFF","White"],Oo=["#FF0","Yellow"],Vo=["1","Opaque"],Uo=["0.5","Semi-Transparent"],Lo=["0","Transparent"],Ho={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Eo,Ro,$o,Fo,Do,Oo,Bo,No]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Vo,Uo,Lo]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Ro,Eo,$o,Fo,Do,Oo,Bo,No]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Vo,Uo]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Lo,Uo,Vo]}};function zo(t,i){if(i&&(t=i(t)),t&&"none"!==t)return t}Ho.windowColor.options=Ho.backgroundColor.options;var Wo,qo=function(t){function i(i,s){var e;return(e=t.call(this,i,s)||this).setDefaults(),e.hide(),e.updateDisplay=$e(Le(e),e.updateDisplay),void 0===s.persistTextTrackSettings&&(e.h.persistTextTrackSettings=e.h.playerOptions.persistTextTrackSettings),e.on(e.$(".vjs-done-button"),"click",function(){e.saveSettings(),e.hide()}),e.on(e.$(".vjs-default-button"),"click",function(){e.setDefaults(),e.updateDisplay()}),vs(Ho,function(t){e.on(e.$(t.selector),"change",e.updateDisplay)}),e.h.persistTextTrackSettings&&e.restoreSettings(),e}ze(i,t);var s=i.prototype;return s.Wt=function(t){var i=this,s=Ho[t],e=s.id.replace("%s",this.o);return[Ms("label",{className:"vjs-label",textContent:s.label},{for:e}),Ms("select",{id:e},void 0,s.options.map(function(t){return Ms("option",{textContent:i.localize(t[1]),value:t[0]})}))]},s.qt=function(){var t=Ms("legend",{textContent:this.localize("Text")}),i=this.Wt("color"),s=Ms("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.Wt("textOpacity"));return Ms("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Gt=function(){var t=Ms("legend",{textContent:this.localize("Background")}),i=this.Wt("backgroundColor"),s=Ms("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.Wt("backgroundOpacity"));return Ms("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Xt=function(){var t=Ms("legend",{textContent:this.localize("Window")}),i=this.Wt("windowColor"),s=Ms("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.Wt("windowOpacity"));return Ms("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[t].concat(i,s))},s.Jt=function(){return Ms("div",{className:"vjs-tracksettings-colors"},void 0,[this.qt(),this.Gt(),this.Xt()])},s.Qt=function(){var t=Ms("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.Wt("fontPercent")),i=Ms("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.Wt("edgeStyle")),s=Ms("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.Wt("fontFamily"));return Ms("div",{className:"vjs-tracksettings-font"},void 0,[t,i,s])},s.Yt=function(){var t=Ms("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),i=Ms("button",{className:"vjs-done-button",textContent:"Done"});return Ms("div",{className:"vjs-tracksettings-controls"},void 0,[t,i])},s.createEl=function(){var t=Ms("div",{className:"vjs-tracksettings"},void 0,[this.Jt(),this.Qt(),this.Yt()]),i=Ms("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.o,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),s=Ms("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.o,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),e=Ms("div",void 0,{role:"document"},[i,s,t]);return Ms("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":i.id,"aria-describedby":s.id},e)},s.getValues=function(){var t=this;return function(t,i,s){return void 0===s&&(s=0),fs(t).reduce(function(s,e){return i(s,t[e],e)},s)}(Ho,function(i,s,e){var n=function(t,i){return zo(t.options[t.options.selectedIndex].value,i)}(t.$(s.selector),s.parser);return void 0!==n&&(i[e]=n),i},{})},s.setValues=function(t){var i=this;vs(Ho,function(s,e){!function(t,i,s){if(i)for(var e=0;e<t.options.length;e++)if(zo(t.options[e].value,s)===i){t.selectedIndex=e;break}}(i.$(s.selector),t[e],s.parser)})},s.setDefaults=function(){var t=this;vs(Ho,function(i){var s=i.hasOwnProperty("default")?i.default:0;t.$(i.selector).selectedIndex=s})},s.restoreSettings=function(){var t;try{t=JSON.parse(hs.localStorage.getItem(Io))}catch(t){bs.warn(t)}t&&this.setValues(t)},s.saveSettings=function(){if(this.h.persistTextTrackSettings){var t=this.getValues();try{g.keys(t).length?hs.localStorage.setItem(Io,JSON.stringify(t)):hs.localStorage.removeItem(Io)}catch(t){bs.warn(t)}}},s.updateDisplay=function(){var t=this.t.getChild("textTrackDisplay");t&&t.updateDisplay()},i}(Ve);Ve.registerComponent("TextTrackSettings",qo);var Go,r=function(t){function i(i,s){var e;e=t.call(this,i,s)||this;var n=i.source,r=!1;if(n&&(e.v.currentSrc!==n.src||i.tag&&3===i.tag.Kt)?e.setSource(n):e.Zt(e.v),e.v.hasChildNodes()){for(var h=e.v.childNodes,o=h.length,a=[];o--;){var u=h[o];"track"===u.nodeName.toLowerCase()&&(e.featuresNativeTextTracks?(e.remoteTextTrackEls().J(u),e.remoteTextTracks().tt(u.track),r||e.v.hasAttribute("crossorigin")||!gn(u.src)||(r=!0)):a.push(u))}for(var c=0;c<a.length;c++)e.v.removeChild(a[c])}return["audio","video"].forEach(function(t){var i=e.el()[t+"Tracks"],s=e[t+"Tracks"](),n=Re(t);e["featuresNative"+n+"Tracks"]&&i&&i.addEventListener&&(e["handle"+n+"ti"]=function(t){s.trigger({type:"change",target:s,currentTarget:s,srcElement:s})},e["handle"+n+"ii"]=function(t){return s.addTrack(t.track)},e["handle"+n+"si"]=function(t){return s.removeTrack(t.track)},i.addEventListener("change",e["handle"+n+"ti"]),i.addEventListener("addtrack",e["handle"+n+"ii"]),i.addEventListener("removetrack",e["handle"+n+"si"]),e["removeOld"+n+"ei"]=function(t){return e.ni(s,i)},e.on("loadstart",e["removeOld"+n+"ei"]))}),e.featuresNativeTextTracks&&(r&&bs.warn(js(Wo||(Wo=as(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."])))),e.ri=$e(Le(e),e.handleTextTrackChange),e.hi=$e(Le(e),e.handleTextTrackAdd),e.oi=$e(Le(e),e.handleTextTrackRemove),e.ai()),e.ci(),(be||ee||ce)&&!0===i.nativeControlsForTouch&&e.setControls(!0),e.di(),e.triggerReady(),e}ze(i,t);var s=i.prototype;return s.dispose=function(){var s=this;["audio","video","text"].forEach(function(t){var i=Re(t),e=s.v[t+"Tracks"];e&&e.removeEventListener&&(e.removeEventListener("change",s["handle"+i+"ti"]),e.removeEventListener("addtrack",s["handle"+i+"ii"]),e.removeEventListener("removetrack",s["handle"+i+"si"])),e&&s.off("loadstart",s["removeOld"+i+"ei"])}),i.disposeMediaElement(this.v),t.prototype.dispose.call(this)},s.ci=function(){var t,i=this.textTracks(),s=function(){t=[];for(var s=0;s<i.length;s++){var e=i[s];"metadata"===e.kind&&t.push({track:e,storedMode:e.mode})}};s(),i.addEventListener("change",s);var e=function s(){for(var e=0;e<t.length;e++){var n=t[e];"disabled"===n.track.mode&&n.track.mode!==n.storedMode&&(n.track.mode=n.storedMode)}i.removeEventListener("change",s)};this.on("webkitbeginfullscreen",function(){i.removeEventListener("change",s),i.removeEventListener("change",e),i.addEventListener("change",e)}),this.on("webkitendfullscreen",function(){i.removeEventListener("change",s),i.addEventListener("change",s),i.removeEventListener("change",e)})},s.createEl=function(){var t=this.h.tag;if(!t||!this.h.playerElIngest&&!this.movingMediaElementInDOM){if(t){var s=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(s,t),i.disposeMediaElement(t),t=s}else{t=os.createElement("video");var e=Oe({},this.h.tag&&Ls(this.h.tag));be&&!0===this.h.nativeControlsForTouch||delete e.controls,Us(t,ps(e,{id:this.h.techId,class:"vjs-tech"}))}t.playerId=this.h.playerId}void 0!==this.h.preload&&Hs(t,"preload",this.h.preload);for(var n=["loop","muted","playsinline","autoplay"],r=n.length-1;r>=0;r--){var h=n[r],o=this.h[h];void 0!==o&&(o?Hs(t,h,h):zs(t,h),t[h]=o)}return t},s.Zt=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var i=!1,s=function(){i=!0};this.on("loadstart",s);var e=function(){i||this.trigger("loadstart")};return this.on("loadedmetadata",e),void this.ready(function(){this.off("loadstart",s),this.off("loadedmetadata",e),i||this.trigger("loadstart")})}var n=["loadstart"];n.push("loadedmetadata"),t.readyState>=2&&n.push("loadeddata"),t.readyState>=3&&n.push("canplay"),t.readyState>=4&&n.push("canplaythrough"),this.ready(function(){n.forEach(function(t){this.trigger(t)},this)})}},s.ai=function(){var t=this.el().textTracks;if(t){for(var i=0;i<t.length;i++)this.textTracks().tt(t[i]);t.addEventListener&&(t.addEventListener("change",this.ri),t.addEventListener("addtrack",this.hi),t.addEventListener("removetrack",this.oi)),this.on("loadstart",this.fi)}},s.handleTextTrackChange=function(t){var i=this.textTracks();this.textTracks().trigger({type:"change",target:i,currentTarget:i,srcElement:i})},s.handleTextTrackAdd=function(t){this.textTracks().tt(t.track)},s.handleTextTrackRemove=function(t){this.textTracks().it(t.track)},s.ni=function(t,i){var s=[];if(i){for(var e=0;e<t.length;e++){for(var n=t[e],r=!1,h=0;h<i.length;h++)if(i[h]===n){r=!0;break}r||s.push(n)}for(var o=0;o<s.length;o++){var a=s[o];t.it(a)}}},s.fi=function(t){var i=this.textTracks(),s=this.el().textTracks;this.ni(i,s)},s.play=function(){var t=this.v.play();void 0!==t&&"function"==typeof t.then&&t.then(null,function(t){})},s.setCurrentTime=function(t){try{this.v.currentTime=t}catch(t){bs(t,"Video is not ready. (Video.js)")}},s.duration=function(){var t=this;if(this.v.duration===1/0&&oe&&fe&&0===this.v.currentTime){return this.on("timeupdate",function i(){t.v.currentTime>0&&(t.v.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",i))}),NaN}return this.v.duration||NaN},s.width=function(){return this.v.offsetWidth},s.height=function(){return this.v.offsetHeight},s.di=function(){var t=this;if("webkitDisplayingFullscreen"in this.v){var i=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},s=function(){"webkitPresentationMode"in this.v&&"picture-in-picture"!==this.v.webkitPresentationMode&&(this.one("webkitendfullscreen",i),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",s),this.on("dispose",function(){t.off("webkitbeginfullscreen",s),t.off("webkitendfullscreen",i)})}},s.supportsFullScreen=function(){if("function"==typeof this.v.webkitEnterFullScreen){var t=hs.navigator&&hs.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},s.enterFullScreen=function(){var t=this.v;t.paused&&t.networkState<=t.HAVE_METADATA?(this.v.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},s.exitFullScreen=function(){this.v.webkitExitFullScreen()},s.src=function(t){if(void 0===t)return this.v.src;this.setSrc(t)},s.reset=function(){i.resetMediaElement(this.v)},s.currentSrc=function(){return this.bt?this.bt.src:this.v.currentSrc},s.setControls=function(t){this.v.controls=!!t},s.addTextTrack=function(i,s,e){return this.featuresNativeTextTracks?this.v.addTextTrack(i,s,e):t.prototype.addTextTrack.call(this,i,s,e)},s.createRemoteTextTrack=function(i){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,i);var s=os.createElement("track");return i.kind&&(s.kind=i.kind),i.label&&(s.label=i.label),(i.language||i.srclang)&&(s.srclang=i.language||i.srclang),i.default&&(s.default=i.default),i.id&&(s.id=i.id),i.src&&(s.src=i.src),s},s.addRemoteTextTrack=function(i,s){var e=t.prototype.addRemoteTextTrack.call(this,i,s);return this.featuresNativeTextTracks&&this.el().appendChild(e),e},s.removeRemoteTextTrack=function(i){if(t.prototype.removeRemoteTextTrack.call(this,i),this.featuresNativeTextTracks)for(var s=this.$$("track"),e=s.length;e--;)i!==s[e]&&i!==s[e].track||this.el().removeChild(s[e])},s.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),hs.performance&&"function"==typeof hs.performance.now?t.creationTime=hs.performance.now():hs.performance&&hs.performance.timing&&"number"==typeof hs.performance.timing.navigationStart&&(t.creationTime=hs.Date.now()-hs.performance.timing.navigationStart),t},i}(Ch);Ts()&&(r.TEST_VID=os.createElement("video"),(Go=os.createElement("track")).kind="captions",Go.srclang="en",Go.label="English",r.TEST_VID.appendChild(Go)),r.isSupported=function(){try{r.TEST_VID.volume=.5}catch(t){return!1}return!(!r.TEST_VID||!r.TEST_VID.canPlayType)},r.canControlVolume=function(){try{var t=r.TEST_VID.volume;return r.TEST_VID.volume=t/2+.1,t!==r.TEST_VID.volume}catch(t){return!1}},r.canControlPlaybackRate=function(){if(oe&&fe&&ve<58)return!1;try{var t=r.TEST_VID.playbackRate;return r.TEST_VID.playbackRate=t/2+.1,t!==r.TEST_VID.playbackRate}catch(t){return!1}},r.supportsNativeTextTracks=function(){return ye},r.supportsNativeVideoTracks=function(){return!(!r.TEST_VID||!r.TEST_VID.videoTracks)},r.supportsNativeAudioTracks=function(){return!(!r.TEST_VID||!r.TEST_VID.audioTracks)},r.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],r.prototype.featuresVolumeControl=r.canControlVolume(),r.prototype.featuresPlaybackRate=r.canControlPlaybackRate(),r.prototype.movingMediaElementInDOM=!re,r.prototype.featuresFullscreenResize=!0,r.prototype.featuresProgressEvents=!0,r.prototype.featuresTimeupdateEvents=!0,r.prototype.featuresNativeTextTracks=r.supportsNativeTextTracks(),r.prototype.featuresNativeVideoTracks=r.supportsNativeVideoTracks(),r.prototype.featuresNativeAudioTracks=r.supportsNativeAudioTracks();var Xo=r.TEST_VID&&r.TEST_VID.constructor.prototype.canPlayType,Jo=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,Qo=/^video\/mp4/i;r.patchCanPlayType=function(){ae>=4&&!le?r.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&Jo.test(t)?"maybe":Xo.call(this,t)}:ue&&(r.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&Qo.test(t)?"maybe":Xo.call(this,t)})},r.unpatchCanPlayType=function(){var t=r.TEST_VID.constructor.prototype.canPlayType;return r.TEST_VID.constructor.prototype.canPlayType=Xo,t},r.patchCanPlayType(),r.disposeMediaElement=function(t){if(t){var i=t.nodeName.toLowerCase();if("video"===i||"audio"===i){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}}},r.resetMediaElement=function(t){if(t){for(var i=t.querySelectorAll("source"),s=i.length;s--;)t.removeChild(i[s]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){r.prototype[t]=function(){return this.v[t]||this.v.hasAttribute(t)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){r.prototype["set"+Re(t)]=function(i){this.v[t]=i,i?this.v.setAttribute(t,t):this.v.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(t){r.prototype[t]=function(){return this.v[t]}}),["volume","src","poster","preload","playbackRate"].forEach(function(t){r.prototype["set"+Re(t)]=function(i){this.v[t]=i}}),["pause","load"].forEach(function(t){r.prototype[t]=function(){return this.v[t]()}}),Ch.withSourceHandlers(r),r.nativeSourceHandler={},r.nativeSourceHandler.canPlayType=function(t){try{return r.TEST_VID.canPlayType(t)}catch(t){return""}},r.nativeSourceHandler.canHandleSource=function(t,i){if(t.type)return r.nativeSourceHandler.canPlayType(t.type);if(t.src){var s=function(t){if("string"==typeof t){var i=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(i)return i.pop().toLowerCase()}return""}(t.src);return r.nativeSourceHandler.canPlayType("video/"+s)}return""},r.nativeSourceHandler.handleSource=function(t,i,s){i.setSrc(t.src)},r.nativeSourceHandler.dispose=function(){},r.registerSourceHandler(r.nativeSourceHandler),Ve.registerComponent("Html5",r),Ch.registerTech("Html5",r);var Yo=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],Ko=function(t){function i(s,e,n){var r;if(s.id=s.id||["vjs_video",cs()].join("_"),(e=ps(i.getTagSettings(s),e)).initChildren=!1,e.createEl=!1,e.reportTouchActivity=!1,!e.language)if("function"==typeof s.closest){var h=s.closest("[lang]");h&&(e.language=h.getAttribute("lang"))}else for(var o=s;o&&1===o.nodeType;){if(Ls(o).hasOwnProperty("lang")){e.language=o.getAttribute("lang");break}o=o.parentNode}if(!(r=t.call(this,null,e,n)||this).h||!r.h.techOrder||!r.h.techOrder.length)throw new v("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(r.tag=s,r.tagAttributes=s&&Ls(s),r.language(r.h.language),e.languages){var a={};g.getOwnPropertyNames(e.languages).forEach(function(t){a[t.toLowerCase()]=e.languages[t]}),r.pi=a}else r.pi=i.prototype.h.languages;r.mi={},r.gi=e.poster||"",r.yi=!!e.controls,s.controls=!1,r.bi=!1,r.v=r.createEl();var u=Oe(r.h);if(e.plugins){var c=e.plugins;g.getOwnPropertyNames(c).forEach(function(t){"function"==typeof this[t]?this[t](c[t]):bs.error("Unable to find plugin:",t)},Le(r))}r.h.playerOptions=u,r.initChildren(),r.isAudio("audio"===s.nodeName.toLowerCase()),r.controls()?r.addClass("vjs-controls-enabled"):r.addClass("vjs-controls-disabled"),r.v.setAttribute("role","region"),r.isAudio()?r.v.setAttribute("aria-label","audio player"):r.v.setAttribute("aria-label","video player"),r.isAudio()&&r.addClass("vjs-audio"),r.wi()&&r.addClass("vjs-no-flex"),re||r.addClass("vjs-workinghover"),i.players[r.o]=Le(r);var l="5.20.6-opentelly.14".split(".")[0];return r.addClass("vjs-v"+l),r.userActive(!0),r.reportUserActivity(),r.ki(),r.on("fullscreenchange",r._i),r.on("stageclick",r.ji),r}ze(i,t);var s=i.prototype;return s.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.xi&&this.xi.parentNode&&this.xi.parentNode.removeChild(this.xi),i.players[this.o]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.v&&this.v.player&&(this.v.player=null),this.H&&this.H.dispose(),t.prototype.dispose.call(this)},s.createEl=function(){var i,s=this.tag,e=this.Si=s.parentNode&&s.parentNode.hasAttribute&&s.parentNode.hasAttribute("data-vjs-player");i=this.v=e?s.parentNode:t.prototype.createEl.call(this,"div"),s.setAttribute("tabindex","-1"),s.removeAttribute("width"),s.removeAttribute("height");var n=Ls(s);if(g.getOwnPropertyNames(n).forEach(function(t){"class"===t?i.className+=" "+n[t]:i.setAttribute(t,n[t])}),s.playerId=s.id,s.id+="Ti",s.className="vjs-tech",s.player=i.player=this,this.addClass("vjs-paused"),!0!==hs.VIDEOJS_NO_DYNAMIC_STYLE){this.xi=Fe("vjs-styles-dimensions");var r=Ys(".vjs-styles-defaults"),h=Ys("head");h.insertBefore(this.xi,r?r.nextSibling:h.firstChild)}this.width(this.h.width),this.height(this.h.height),this.fluid(this.h.fluid),this.aspectRatio(this.h.aspectRatio);for(var o=s.getElementsByTagName("a"),a=0;a<o.length;a++){var u=o.item(a);Rs(u,"vjs-hidden"),u.setAttribute("hidden","hidden")}return s.Kt=s.networkState,s.parentNode&&!e&&s.parentNode.insertBefore(i,s),Is(s,i),this.m.unshift(s),this.v=i,i},s.width=function(t){return this.dimension("width",t)},s.height=function(t){return this.dimension("height",t)},s.dimension=function(t,i){var s="width"===t?"Ci":"Pi";if(void 0===i)return this[s]||0;if(""===i)this[s]=void 0;else{var e=_(i);if(j(e))return bs.error('Improper value "'+i+'" supplied for for '+t),this;this[s]=e}return this.Mi(),this},s.fluid=function(t){if(void 0===t)return!!this.Ai;this.Ai=!!t,t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.Mi()},s.aspectRatio=function(t){if(void 0===t)return this.Ii;if(!/^\d+\:\d+$/.test(t))throw new v("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.Ii=t,this.fluid(!0),this.Mi()},s.Mi=function(){if(!0!==hs.VIDEOJS_NO_DYNAMIC_STYLE){var t,i,s,e=(void 0!==this.Ii&&"auto"!==this.Ii?this.Ii:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),n=e[1]/e[0];t=void 0!==this.Ci?this.Ci:void 0!==this.Pi?this.Pi/n:this.videoWidth()||300,i=void 0!==this.Pi?this.Pi:t*n,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),Be(this.xi,"\n ."+s+" {\n width: "+t+"px;\n height: "+i+"px;\n }\n\n ."+s+".vjs-fluid {\n padding-top: "+100*n+"%;\n }\n ")}else{var r="number"==typeof this.Ci?this.Ci:this.h.width,h="number"==typeof this.Pi?this.Pi:this.h.height,o=this.H&&this.H.el();o&&(r>=0&&(o.width=r),h>=0&&(o.height=h))}},s._t=function(t,i){var s=this;this.H&&this.Ei(),"Html5"!==t&&this.tag&&(Ch.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.Di=t,this.T=!1;var e=ps({source:i,nativeControlsForTouch:this.h.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+t+"Ni",videoTracks:this.rt,textTracks:this.nt,audioTracks:this.ht,autoplay:this.h.autoplay,playsinline:this.h.playsinline,preload:this.h.preload,loop:this.h.loop,muted:this.h.muted,poster:this.poster(),language:this.language(),playerElIngest:this.Si||!1,"vtt.js":this.h["vtt.js"]},this.h[t.toLowerCase()]);this.tag&&(e.tag=this.tag),i&&(this.Fi=i.type,i.src===this.mi.src&&this.mi.currentTime>0&&(e.startTime=this.mi.currentTime),this.mi.sources=null,this.mi.source=i,this.mi.src=i.src);var n=Ch.getTech(t);n||(n=Ve.getComponent(t)),this.H=new n(e),this.H.ready($e(this,this.Bi),!0),on(this.$i||[],this.H),Yo.forEach(function(t){s.on(s.H,t,s["handleTech"+Re(t)+"_"])}),this.on(this.H,"loadstart",this.Ri),this.on(this.H,"waiting",this.Oi),this.on(this.H,"canplay",this.Vi),this.on(this.H,"canplaythrough",this.Ui),this.on(this.H,"playing",this.Li),this.on(this.H,"ended",this.Hi),this.on(this.H,"seeking",this.zi),this.on(this.H,"seeked",this.Wi),this.on(this.H,"play",this.qi),this.on(this.H,"firstplay",this.Gi),this.on(this.H,"pause",this.Xi),this.on(this.H,"durationchange",this.Ji),this.on(this.H,"fullscreenchange",this.Qi),this.on(this.H,"error",this.Yi),this.on(this.H,"loadedmetadata",this.Mi),this.on(this.H,"resize",this.Mi),this.on(this.H,"posterchange",this.Ki),this.on(this.H,"textdata",this.Zi),this.usingNativeControls(this.ts("controls")),this.controls()&&!this.usingNativeControls()&&this.ss(),this.H.el().parentNode===this.contentEl()||"Html5"===t&&this.tag||Is(this.H.el(),this.contentEl()),this.tag&&(this.tag.player=null,this.tag=null)},s.Ei=function(){this.rt=this.videoTracks(),this.nt=this.textTracks(),this.ht=this.audioTracks(),this.$i=hn(this.H),this.T=!1,this.H.dispose(),this.H=!1},s.tech=function(t){if(t&&t.IWillNotUseThisInPlugins)return this.H;var i="\n Please make sure that you are not using this inside of a plugin.\n To disable this alert and error, please pass in an object with\n `IWillNotUseThisInPlugins` to the `tech` method. See\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";throw hs.alert(i),new v(i)},s.ss=function(){this.es(),this.on(this.H,"mousedown",this.ns),this.on(this.H,"touchstart",this.rs),this.on(this.H,"touchmove",this.hs),this.on(this.H,"touchend",this.us),this.on(this.H,"tap",this.cs)},s.es=function(){this.off(this.H,"tap",this.cs),this.off(this.H,"touchstart",this.rs),this.off(this.H,"touchmove",this.hs),this.off(this.H,"touchend",this.us),this.off(this.H,"mousedown",this.ns)},s.Bi=function(){if(this.triggerReady(),this.mi.volume&&this.ls("setVolume",this.mi.volume),this.Ki(),this.Ji(),(this.src()||this.currentSrc())&&this.tag&&this.h.autoplay&&this.paused()){try{delete this.tag.poster}catch(t){bs("deleting tag.poster throws in some browsers",t)}this.play()}},s.Ri=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},s.hasStarted=function(t){return void 0!==t?(this.et!==t&&(this.et=t,t?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.et},s.qi=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},s.Oi=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},s.Vi=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},s.Ui=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},s.Li=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},s.zi=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},s.Wi=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},s.Gi=function(){this.h.starttime&&(bs.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.h.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},s.Xi=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},s.Hi=function(){this.addClass("vjs-ended"),this.h.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},s.Ji=function(){this.duration(this.ts("duration"))},s.ns=function(t){0===t.button&&this.controls()&&(void 0!==this.h&&void 0!==this.h.userActions&&void 0!==this.h.userActions.click&&!1===this.h.userActions.click||(void 0!==this.h&&void 0!==this.h.userActions&&"function"==typeof this.h.userActions.click?this.h.userActions.click.call(this,t):this.paused()?this.play():this.pause()))},s.cs=function(){this.userActive(!this.userActive())},s.rs=function(){this.userWasActive=this.userActive()},s.hs=function(){this.userWasActive&&this.reportUserActivity()},s.us=function(t){t.cancelable&&t.preventDefault()},s._i=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},s.ji=function(){this.reportUserActivity()},s.Qi=function(t,i){i&&(this.toggleClass("vjs-ios-native-fs",!(!i.nativeIOSFullscreen||!i.isFullscreen)),this.isFullscreen(i.isFullscreen)),this.trigger("fullscreenchange")},s.Yi=function(){var t=this.H.error();this.error(t)},s.Zi=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},s.getCache=function(){return this.mi},s.ls=function(t,i){if(this.H&&!this.H.T)this.H.ready(function(){this[t](i)},!0);else try{this.H&&this.H[t](i)}catch(t){throw bs(t),t}},s.ts=function(t){if(this.H&&this.H.T)try{return this.H[t]()}catch(i){throw void 0===this.H[t]?bs("Video.js: "+t+" method not defined for "+this.Di+" playback technology.",i):"TypeError"===i.name?(bs("Video.js: "+t+" unavailable on "+this.Di+" playback technology element.",i),this.H.T=!1):bs(i),i}},s.play=function(){return this.src()||this.currentSrc()?this.ls("play"):this.H.one("loadstart",function(){this.play()}),this},s.pause=function(){return this.ls("pause"),this},s.paused=function(){return!1!==this.ts("paused")},s.scrubbing=function(t){return void 0!==t?(this.bi=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.bi},s.currentTime=function(t){return void 0!==t?(this.ls("setCurrentTime",t),this):(this.mi.currentTime=this.ts("currentTime")||0,this.mi.currentTime)},s.duration=function(t){return void 0===t?void 0!==this.mi.duration?this.mi.duration:NaN:((t=_(t))<0&&(t=1/0),t!==this.mi.duration&&(this.mi.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},s.remainingTime=function(){return this.duration()-this.currentTime()},s.buffered=function(){var t=this.ts("buffered");return t&&t.length||(t=Ge(0,0)),t},s.bufferedPercent=function(){return Xe(this.buffered(),this.duration())},s.bufferedEnd=function(){var t=this.buffered(),i=this.duration(),s=t.end(t.length-1);return s>i&&(s=i),s},s.volume=function(t){var i;return void 0!==t?(i=w.max(0,w.min(1,_(t))),this.mi.volume=i,this.ls("setVolume",i),this):(i=_(this.ts("volume")),j(i)?1:i)},s.muted=function(t){return void 0!==t?(this.ls("setMuted",t),this):this.ts("muted")||!1},s.supportsFullScreen=function(){return this.ts("supportsFullScreen")||!1},s.isFullscreen=function(t){return void 0!==t?(this.ds=!!t,this):!!this.ds},s.requestFullscreen=function(t){var i,s=Ze;return this.isFullscreen(!0),s.requestFullscreen?(Ce(os,s.fullscreenchange,$e(this,function t(i){this.isFullscreen(os[s.fullscreenElement]),!1===this.isFullscreen()&&Pe(os,s.fullscreenchange,t),this.trigger("fullscreenchange")})),s.prefixed||(i=this.h.fullscreenOptions,void 0!==t&&(i=t)),this.v[s.requestFullscreen](i)):this.H.supportsFullScreen()?this.ls("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},s.exitFullscreen=function(){var t=Ze;return this.isFullscreen(!1),t.requestFullscreen?os[t.exitFullscreen]():this.H.supportsFullScreen()?this.ls("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},s.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=os.documentElement.style.overflow,Ce(os,"keydown",$e(this,this.fullWindowOnEscKey)),os.documentElement.style.overflow="hidden",Rs(os.body,"vjs-full-window"),this.trigger("enterFullWindow")},s.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},s.exitFullWindow=function(){this.isFullWindow=!1,Pe(os,"keydown",this.fullWindowOnEscKey),os.documentElement.style.overflow=this.docOrigOverflow,Os(os.body,"vjs-full-window"),this.trigger("exitFullWindow")},s.canPlayType=function(t){for(var i,s=0,e=this.h.techOrder;s<e.length;s++){var n=Re(e[s]),r=Ch.getTech(n);if(r||(r=Ve.getComponent(n)),r){if(r.isSupported()&&(i=r.canPlayType(t)))return i}else bs.error('The "'+n+'" tech is undefined. Skipped browser support check for that tech.')}return""},s.selectSource=function(t){var i,s=this,e=this.h.techOrder.map(Re).map(function(t){return[t,Ch.getTech(t)||Ve.getComponent(t)]}).filter(function(t){var i=t[0],s=t[1];return s?s.isSupported():(bs.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),n=function(t,i,s){var e;return t.some(function(t){return i.some(function(i){if(e=s(t,i))return!0})}),e},r=function(t,i){var e=t[0];if(t[1].canPlaySource(i,s.h[e.toLowerCase()]))return{source:i,tech:e}};return(this.h.sourceOrder?n(t,e,(i=r,function(t,s){return i(s,t)})):n(e,t,r))||!1},s.src=function(t){if(void 0===t)return this.ts("src");var i=Ch.getTech(this.Di);return i||(i=Ve.getComponent(this.Di)),Array.isArray(t)?this.fs(t):"string"==typeof t?this.src({src:t}):t instanceof g&&(t.type&&!i.canPlaySource(t,this.h[this.Di.toLowerCase()])?this.fs([t]):(this.mi.sources=null,this.mi.source=t,this.mi.src=t.src,this.Fi=t.type||"",this.ready(function(){i.prototype.hasOwnProperty("setSource")?this.ls("setSource",t):this.ls("src",t.src),"auto"===this.h.preload&&this.load(),this.h.autoplay&&this.play()},!0))),this},s.fs=function(t){var i=this.selectSource(t);i?(i.tech===this.Di?this.src(i.source):this._t(i.tech,i.source),this.mi.sources=t):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.h.notSupportedMessage)})},0),this.triggerReady())},s.load=function(){return this.ls("load"),this},s.reset=function(){return this._t(Re(this.h.techOrder[0]),null),this.ls("reset"),this},s.currentSources=function(){var t=this.currentSource(),i=[];return 0!==g.keys(t).length&&i.push(t),this.mi.sources||i},s.currentSource=function(){var t={},i=this.currentSrc();return i&&(t.src=i),this.mi.source||t},s.currentSrc=function(){return this.ts("currentSrc")||this.mi.src||""},s.currentType=function(){return this.Fi||""},s.preload=function(t){return void 0!==t?(this.ls("setPreload",t),this.h.preload=t,this):this.ts("preload")},s.autoplay=function(t){return void 0!==t?(this.ls("setAutoplay",t),this.h.autoplay=t,this):this.ts("autoplay",t)},s.playsinline=function(t){return void 0!==t?(this.ls("setPlaysinline",t),this.h.playsinline=t,this):this.ts("playsinline")},s.loop=function(t){return void 0!==t?(this.ls("setLoop",t),this.h.loop=t,this):this.ts("loop")},s.poster=function(t){return void 0===t?this.gi:(t||(t=""),this.gi=t,this.ls("setPoster",t),this.trigger("posterchange"),this)},s.Ki=function(){!this.gi&&this.H&&this.H.poster&&(this.gi=this.H.poster()||"",this.trigger("posterchange"))},s.controls=function(t){return void 0!==t?(t=!!t,this.yi!==t&&(this.yi=t,this.usingNativeControls()&&this.ls("setControls",t),t?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.ss()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.es())),this):!!this.yi},s.usingNativeControls=function(t){return void 0!==t?(t=!!t,this.vs!==t&&(this.vs=t,t?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.vs},s.error=function(t){return void 0===t?this.lt||null:null===t?(this.lt=t,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close(),this):(this.lt=new en(t),this.addClass("vjs-error"),bs.error("(CODE:"+this.lt.code+" "+en.errorTypes[this.lt.code]+")",this.lt.message,this.lt),this.trigger("error"),this)},s.reportUserActivity=function(t){this.ps=!0},s.userActive=function(t){return void 0!==t?((t=!!t)!==this.gs&&(this.gs=t,t?(this.ps=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.ps=!1,this.H&&this.H.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.gs},s.ki=function(){var t,i,s,e,n=$e(this,this.reportUserActivity);this.on("mousedown",function(){n(),this.clearInterval(t),t=this.setInterval(n,250)}),this.on("mousemove",function(t){t.screenX===i&&t.screenY===s||(i=t.screenX,s=t.screenY,n())}),this.on("mouseup",function(i){n(),this.clearInterval(t)}),this.on("keydown",n),this.on("keyup",n),this.setInterval(function(){if(this.ps){this.ps=!1,this.userActive(!0),this.clearTimeout(e);var t=this.h.inactivityTimeout;t>0&&(e=this.setTimeout(function(){this.ps||this.userActive(!1)},t))}},250)},s.playbackRate=function(t){return void 0!==t?(this.ls("setPlaybackRate",t),this):this.H&&this.H.featuresPlaybackRate?this.ts("playbackRate"):1},s.isAudio=function(t){return void 0!==t?(this.ys=!!t,this):!!this.ys},s.videoTracks=function(){return this.H?this.H.videoTracks():(this.rt=this.rt||new jh,this.rt)},s.audioTracks=function(){return this.H?this.H.audioTracks():(this.ht=this.ht||new Sh,this.ht)},s.textTracks=function(){if(this.H)return this.H.textTracks()},s.remoteTextTracks=function(){if(this.H)return this.H.remoteTextTracks()},s.remoteTextTrackEls=function(){if(this.H)return this.H.remoteTextTrackEls()},s.addTextTrack=function(t,i,s){if(this.H)return this.H.addTextTrack(t,i,s)},s.addRemoteTextTrack=function(t,i){if(this.H)return this.H.addRemoteTextTrack(t,i)},s.removeRemoteTextTrack=function(t){var i=(void 0===t?{}:t).track,s=void 0===i?arguments[0]:i;if(this.H)return this.H.removeRemoteTextTrack(s)},s.getVideoPlaybackQuality=function(){return this.ts("getVideoPlaybackQuality")},s.videoWidth=function(){return this.H&&this.H.videoWidth&&this.H.videoWidth()||0},s.videoHeight=function(){return this.H&&this.H.videoHeight&&this.H.videoHeight()||0},s.language=function(t){return void 0===t?this.bs:(this.bs!==String(t).toLowerCase()&&(this.bs=String(t).toLowerCase(),void 0!==this.v&&this.trigger("languagechange")),this)},s.languages=function(){return Oe(i.prototype.h.languages,this.pi)},s.toJSON=function(){var t=Oe(this.h),i=t.tracks;t.tracks=[];for(var s=0;s<i.length;s++){var e=i[s];(e=Oe(e)).player=void 0,t.tracks[s]=e}return t},s.createModal=function(t,i){var s=this;(i=i||{}).content=t||"";var e=new un(this,i);return this.addChild(e),e.on("dispose",function(){s.removeChild(e)}),e.open()},i.getTagSettings=function(t){var i={sources:[],tracks:[]},s=Ls(t),e=s["data-setup"];if($s(t,"vjs-fluid")&&(s.fluid=!0),null!==e){var n=nn(e||"{}"),r=n[0],h=n[1];r&&bs.error(r),ps(s,h)}if(ps(i,s),t.hasChildNodes())for(var o=t.childNodes,a=0,u=o.length;a<u;a++){var c=o[a],l=c.nodeName.toLowerCase();"source"===l?i.sources.push(Ls(c)):"track"===l&&i.tracks.push(Ls(c))}return i},s.wi=function(){var t=os.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},i}(Ve);Ko.players={};var Zo=hs.navigator;Ko.prototype.h={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:Zo&&(Zo.languages&&Zo.languages[0]||Zo.userLanguage||Zo.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreenOptions:{navigationUI:"hide"}},["ended","seeking","seekable","networkState","readyState"].forEach(function(t){Ko.prototype[t]=function(){return this.ts(t)}}),Yo.forEach(function(t){Ko.prototype["handleTech"+Re(t)+"_"]=function(){return this.trigger(t)}}),Ve.registerComponent("Player",Ko);var ta,ia,sa=function(t){function i(s){var e;void 0===s&&(s={});var n=Oe(s,{kind:dn[s.kind]||""}),r=e=t.call(this,n)||this,h=!1;if(pe)for(var o in i.prototype)"constructor"!==o&&(r[o]=i.prototype[o]);return g.defineProperty(r,"enabled",{get:function(){return h},set:function(t){"boolean"==typeof t&&t!==h&&(h=t,this.trigger("enabledchange"))}}),n.enabled&&(r.enabled=n.enabled),r.q=!0,r||Le(e)}return ze(i,t),i}(pn),ea=function(t){function i(s){var e;void 0===s&&(s={});var n=Oe(s,{kind:ln[s.kind]||""}),r=e=t.call(this,n)||this,h=!1;if(pe)for(var o in i.prototype)"constructor"!==o&&(r[o]=i.prototype[o]);return g.defineProperty(r,"selected",{get:function(){return h},set:function(t){"boolean"==typeof t&&t!==h&&(h=t,this.trigger("selectedchange"))}}),n.selected&&(r.selected=n.selected),r||Le(e)}return ze(i,t),i}(pn);function na(t,i,s){var e;if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),na.getPlayers()[t])return i&&bs.warn('Player "'+t+'" is already initialised. Options will not be applied.'),s&&na.getPlayers()[t].ready(s),na.getPlayers()[t];e=function(t){return 0===t.indexOf("#")&&(t=t.slice(1)),os.getElementById(t)}(t)}else e=t;if(!e||!e.nodeName)throw new p("The element or ID supplied is not valid. (videojs)");if(e.player||Ko.players[e.playerId])return e.player||Ko.players[e.playerId];i=i||{},na.hooks("beforesetup").forEach(function(t){var s=t(e,Oe(i));ms(s)&&!Array.isArray(s)?i=Oe(i,s):bs.error("please return an object in beforesetup hooks")});var n=new(Ve.getComponent("Player"))(e,i,s);return na.hooks("setup").forEach(function(t){return t(n)}),n}"undefined"==typeof HTMLVideoElement&&Ts()&&(os.createElement("video"),os.createElement("audio"),os.createElement("track")),na.ws={},na.hooks=function(t,i){return na.ws[t]=na.ws[t]||[],i&&(na.ws[t]=na.ws[t].concat(i)),na.ws[t]},na.hook=function(t,i){na.hooks(t,i)},na.removeHook=function(t,i){var s=na.hooks(t).indexOf(i);return!(s<=-1)&&(na.ws[t]=na.ws[t].slice(),na.ws[t].splice(s,1),!0)},!0!==hs.VIDEOJS_NO_DYNAMIC_STYLE&&Ts()&&((ta=Ys(".vjs-styles-defaults"))||(ta=Fe("vjs-styles-defaults"),(ia=Ys("head"))&&ia.insertBefore(ta,ia.firstChild),Be(ta,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n "))),Ne(1,na),na.VERSION="5.20.6-opentelly.14",na.options=Ko.prototype.h,na.getPlayers=function(){return Ko.players},na.players=Ko.players,na.getComponent=Ve.getComponent,na.registerComponent=function(t,i){Ch.isTech(i)&&bs.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Ve.registerComponent.call(Ve,t,i)},na.getTech=Ch.getTech,na.registerTech=Ch.registerTech,na.browser=ke,na.TOUCH_ENABLED=be,na.extend=function(t,i){void 0===i&&(i={});var s=function(){t.apply(this,arguments)},e={};for(var n in ms(i)?("function"==typeof i.init&&(bs.warn("Constructor logic via init() is deprecated; please use constructor() instead."),i.constructor=i.init),i.constructor!==g.prototype.constructor&&(s=i.constructor),e=i):"function"==typeof i&&(s=i),function(t,i){if("function"!=typeof i&&null!==i)throw new p("Super expression must either be null or a function, not "+typeof i);t.prototype=g.create(i&&i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i&&(t.ks=i)}(s,t),e)e.hasOwnProperty(n)&&(s.prototype[n]=e[n]);return s},na.mergeOptions=Oe,na.bind=$e,na.plugin=function(t,i){Ko.prototype[t]=i},na.addLanguage=function(t,i){var s;return t=(""+t).toLowerCase(),na.options.languages=Oe(na.options.languages,((s={})[t]=i,s)),na.options.languages[t]},na.log=bs,na.createTimeRange=na.createTimeRanges=Ge,na.formatTime=Uh,na.parseUrl=mn,na.isCrossOrigin=gn,na.EventTarget=Ue,na.on=Ce,na.one=Ae,na.off=Pe,na.trigger=Me,na.xhr=lh,na.TextTrack=mh,na.AudioTrack=sa,na.VideoTrack=ea,na.isEl=Cs,na.isTextNode=Gs,na.createEl=Ms,na.hasClass=$s,na.addClass=Rs,na.removeClass=Os,na.toggleClass=Vs,na.setAttributes=Us,na.getAttributes=Ls,na.emptyEl=Xs,na.appendContent=Js,na.insertContent=Qs,na.computedStyle=Xh,Lt(),Lt();function ra(t){const i=t.duration;if(j(i)){var s;const i=null==(s=t.source)?void 0:s.streamType;return"live"===i||"dvr"===i}return i===1/0}function ha(t){return t.scrubbing()?t.getCache().currentTime:t.currentTime()}function oa(t){const i=ca(t);return ra(t)?i.end(i.length-1):i.start(0)}function aa(t){return ca(t).start(0)}function ua(t){const i=ca(t);return i.end(i.length-1)-i.start(0)}function ca(t){const i=t.seekable;if(i&&i.length)return i;let s=t.duration;return s=isFinite(s)?s:0,new ji([0,s])._s()}function la(t,i){void 0===i&&(i=t);const s=t<0?"-":"";t=w.abs(t);let e=w.floor(t%60),n=w.floor(t/60%60),r=w.floor(t/3600);const h=w.floor(i/60%60),o=w.floor(i/3600);return(j(t)||t===1/0)&&(r=n=e="-"),r=Number(r)>0||o>0?r+":":"",n=((r||h>=10)&&Number(n)<10?"0"+n:n)+":",e=Number(e)<10?"0"+e:e,s+r+n+e}function da(t){return class extends t{get js(){var t;return null!==(t=this.xs)&&void 0!==t?t:this.xs=fa(this.player())}dispose(){this.xs=void 0,super.dispose()}constructor(...t){super(...t),this.xs=void 0}}}function fa(t){return t.tech({IWillNotUseThisInPlugins:!0}).theoplayer()}function va(t){const i=fa(t),s=()=>{const s=ha(t);t.toggleClass("theo-at-live",function(t,i){if(ra(t)){const s=t.seekable;return 0===s.length||s.end(s.length-1)-i<10}return!1}(i,s)),t.toggleClass("vjs-live",ra(i)),t.toggleClass("theo-dvr",function(t){return"dvr"===U(t.duration,t.seekable,t.source)}(i))};t.on("emptied",s),t.on("timeupdate",s),t.on("durationchange",s)}Lt(),Lt();function pa(t,i,s){t.toggleClass("theo-ad-playing",i),t.toggleClass("theo-dai-ad-playing",i&&s)}function ma(){this.userActive(!1)}Lt(),Lt(),Lt();var ga=class{constructor(t,i){this.type=void 0,this.target=void 0,this.playerEvent=void 0,this.type=t.type,this.target=i,this.playerEvent=t}};Lt();var ya=function(t){return t.Ss="unavailable",t.Ts="available",t.Cs="presenting",t}({});Lt(),Lt(),Lt(),Lt();var ba=["loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange","resize"],wa=na.getTech("Tech"),ka=na.getTech("Html5"),_a=class extends wa{Ps(){var t;for(const t of ba)this.js.addEventListener(t,this.Ms);this.js.addEventListener("error",this.As),this.js.addEventListener("contentprotectionerror",this.As),this.js.addEventListener("sourcechange",this.Is),this.js.addEventListener("loadstart",this.Es),null==(t=this.js.presentation)||t.addEventListener(St.MODE_CHANGE,this.Ds),this.js.textTracks.addEventListener("addtrack",this.Ns),this.js.textTracks.addEventListener("removetrack",this.Fs),this.js.textTracks.addEventListener("change",this.Bs),this.js.audioTracks.addEventListener("addtrack",this.$s),this.js.audioTracks.addEventListener("removetrack",this.Rs),this.js.audioTracks.addEventListener("change",this.Os)}Vs(){var t;for(const t of ba)this.js.removeEventListener(t,this.Ms);this.js.removeEventListener("error",this.As),this.js.removeEventListener("contentprotectionerror",this.As),this.js.removeEventListener("sourcechange",this.Is),this.js.removeEventListener("loadstart",this.Es),null==(t=this.js.presentation)||t.removeEventListener(St.MODE_CHANGE,this.Ds),this.js.textTracks.removeEventListener("addtrack",this.Ns),this.js.textTracks.removeEventListener("removetrack",this.Fs),this.js.textTracks.removeEventListener("change",this.Bs),this.js.audioTracks.removeEventListener("addtrack",this.$s),this.js.audioTracks.removeEventListener("removetrack",this.Rs),this.js.audioTracks.removeEventListener("change",this.Os)}Us(t){this.trigger(new ga(t,this))}createEl(){const t=this.h,i=t.player;if(!i)throw new v(this.localize('Missing required tech option "player"'));const s=i.element;return na.setAttributes(s,{id:t.techId}),s}theoplayer(){return this.js}addTextTrack(t,i,s){return super.addTextTrack(t,i,s)}buffered(){return this.js.buffered}played(){return this.js.played}reset(){this.js.stop()}play(){this.js.play()}pause(){this.js.pause()}paused(){return this.js.paused}currentTime(){return this.js.currentTime}setCurrentTime(t){this.js.currentTime=t}duration(){return this.js.duration}volume(){return this.js.volume}setVolume(t){this.js.volume=t}muted(){return this.js.muted}setMuted(t){this.js.muted=t}src(t){if(void 0!==t)this.setSrc(t);else{if(this.js.src)return this.js.src;if(this.js.source){if(!q(this.js.source.ads))return this.js.source.ads[0].sources;if(function(t){return!!t.sources&&(Yt(t.sources)?t.sources.some(Mi):Mi(t.sources))}(this.js.source))return"This source is managed by the Uplynk integration extension.";if(function(t){if(t.sources)if(Yt(t.sources)){for(const i of t.sources)if(Ti(i))return!0}else if(ti(t.sources))return Ti(t.sources);return!1}(this.js.source))return"This source is managed by the DAI integration extension.";if(Ei(this.js.source))return"This source is managed by Millicast."}}}setSrc(t){return this.setSource({src:t})}setSource(t){this.lt=null,this.trigger("error")}currentSrc(){return this.js.src}load(){this.setPreload("auto")}preload(){return this.js.preload}setPreload(t){this.js.preload=t}autoplay(){return this.js.autoplay}setAutoplay(t){this.js.autoplay=Boolean(t)}seeking(){return this.js.seeking}seekable(){return this.js.seekable}ended(){return this.js.ended}playbackRate(){return this.js.playbackRate}setPlaybackRate(t){this.js.playbackRate=t}readyState(){return this.js.readyState}networkState(){return 0}controls(){return!1}videoHeight(){return this.js.videoHeight}videoWidth(){return this.js.videoWidth}supportsFullScreen(){return this.js.presentation.supportsMode(N.FULLSCREEN)}enterFullScreen(){this.js.presentation.requestMode(N.FULLSCREEN)}exitFullScreen(){this.js.presentation.requestMode(N.INLINE)}Ls(){const t=this.js.ads;if(t&&t.playing)return!0;const i=this.js.vr;return!(!i||i.state===ya.Ss)}initTextTrackListeners(){return this.on("touchend",t=>{this.Ls()&&(t.preventDefault=()=>{})}),super.initTextTrackListeners()}Zt(){if(!this.src())return;const t=this.readyState();if(0===t){let t=!1;const i=()=>{t=!0};this.on("loadstart",i);const s=()=>{t||this.trigger("loadstart")};return this.on("loadedmetadata",s),void this.ready(()=>{this.off("loadstart",i),this.off("loadedmetadata",s),t||this.trigger("loadstart")})}const i=["loadstart"];i.push("loadedmetadata"),t>=2&&i.push("loadeddata"),t>=3&&i.push("canplay"),t>=4&&i.push("canplaythrough"),this.ready(()=>{for(const t of i)this.trigger(t)})}dispose(){this.Vs(),this.js=null,super.dispose()}static isSupported(){return!0}static canPlayType(){return"maybe"}static canPlaySource(t){return"maybe"}get featuresVolumeControl(){return W}constructor(t={},i){super(t,i),this.js=void 0,this.Ms=t=>this.Us(t),this.Hs=!1,this.Is=()=>{void 0===this.js.errorObject&&(this.Us(new Ri(this.js.currentTime,this.js.readyState)),this.Us(new Gt),this.Us(new Gi(this.js.duration)))},this.Es=()=>{this.Us(new ni(this.js.currentTime))},this.Ns=t=>{this.textTracks().tt(t.track)},this.$s=t=>{this.audioTracks().tt(t.track)},this.Fs=t=>{this.textTracks().it(t.track)},this.Rs=t=>{this.audioTracks().it(t.track)},this.Bs=()=>{const t=this.textTracks();t.trigger({type:"change",target:t,currentTarget:t,srcElement:t})},this.Os=()=>{const t=this.audioTracks();t.trigger({type:"change",target:t,currentTarget:t,srcElement:t})},this.Ds=()=>{if(!this.supportsFullScreen())return;const t=this.Hs,i=this.js.presentation.currentMode===N.FULLSCREEN;t!==i&&(this.Hs=i,this.trigger("fullscreenchange",{isFullscreen:i,nativeIOSFullscreen:!0}))},this.As=()=>{const t=this.js.errorObject,i=t&&Pt(t.code)||-1,s=t&&t.message||"An unknown error occurred.";this.error({code:i,message:this.localize(s)})},this.js=this.h.player,this.Ps();const s=!this.paused();s&&this.pause(),t.preload&&this.setPreload(t.preload),t.autoplay&&this.setAutoplay(t.autoplay),t.muted&&this.setMuted(t.muted),t.source?this.setSrc(t.source):this.Zt(),s&&this.ready(()=>this.play()),this.triggerReady()}};_a.prototype.featuresFullscreenResize=ka.prototype.featuresFullscreenResize,_a.prototype.featuresPlaybackRate=ka.prototype.featuresPlaybackRate,_a.prototype.featuresProgressEvents=!0,_a.prototype.featuresTimeupdateEvents=!0,_a.prototype.featuresNativeTextTracks=!0,na.registerTech("THEOplayer",_a),Lt(),Lt(),Lt(),Lt();var ja=class{constructor(t){this.zs=void 0,this.Ws=t=>{l(this.zs,"theo-mobile-button-hover"),t.stopImmediatePropagation()},this.qs=t=>{vi(this.zs,"theo-mobile-button-hover")},this.Gs=t=>{this.zs.blur()},this.zs=t,t.addEventListener("touchstart",this.Ws),t.addEventListener("touchend",this.qs),t.addEventListener("focusin",this.Gs)}};Lt(),Lt(),Lt(),Lt();var xa=na.getComponent("Menu"),Sa=class extends(da(xa)){get Xs(){return this.player().el()}Js(){l(this.Xs,"theo-menu-opened")}Qs(){vi(this.Xs,"theo-menu-opened")}constructor(t,i){super(t,i)}};Lt();var Ta=na.getComponent("MenuItem"),Ca=class extends(da(Ta)){get parentMenu(){return this.Ys}buildCSSClass(){return"theo-menu-item vjs-menu-item"}createEl(){const t=super.createEl("li",{className:this.buildCSSClass(),tabIndex:0},{"aria-live":"off","aria-label":""});return t.innerHTML="",t}handleClick(t){this.Ks||(this.parentMenu.Zs(this),"tap"!==t.type&&"keydown"!==t.type||(this.Ks=!0,this.trigger("click"),this.Ks=!1))}dispose(){Pi.ie.te&&(this.el().removeEventListener("touchstart",this.Ws),this.el().removeEventListener("touchend",this.qs)),super.dispose()}constructor(t,i,s){super(t,X({selectable:!0},i)),this.Ys=void 0,this.Ks=!1,this.Ws=t=>{l(this.el(),"theo-mobile-menu-item-hover"),t.stopImmediatePropagation()},this.qs=t=>{vi(this.el(),"theo-mobile-menu-item-hover")},this.Ys=s,Pi.ie.te&&(this.el().addEventListener("touchstart",this.Ws),this.el().addEventListener("touchend",this.qs))}};Lt();var Pa=na.getComponent("ClickableComponent"),Ma=class extends Pa{get parentMenu(){return this.Ys}get se(){return this.ee}set se(t){this.ee=t,this.el().setAttribute("tabindex",this.se?"0":"-1"),this.ne()}buildCSSClass(){return"theo-primary-background theo-menu-header"}createEl(){const t=super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-live":"off","aria-label":""});return t.innerHTML="",t}handleClick(t){!this.Ks&&this.se&&(this.Ys.re(),"tap"===t.type&&(this.Ks=!0,this.trigger("click"),this.Ks=!1))}ne(){this.se?this.el().setAttribute("aria-label",this.localize("Go back to the previous menu")):this.el().setAttribute("aria-label","")}constructor(t,i,s){super(t,i),this.Ys=void 0,this.Ks=!1,this.ee=!1,this.Ys=s,this.on(t,"languagechange",this.ne)}},Aa=class extends Sa{get menuHeader(){return this.he}get menuItems(){return this.children()}addMenuItem(t){t=X({playerOptions:this.h.playerOptions},t);const i=new Ca(this.player(),t,this);return this.addChild(i,void 0,t.index),this.trigger("menuchange"),i}addSubMenuItem(t){t=X({playerOptions:this.h.playerOptions},t);const i=this.oe(this.player(),t);return this.addChild(i,void 0,t.index),this.trigger("menuchange"),i}removeMenuItem(t){this.removeChild(t),this.trigger("menuchange")}buildCSSClass(){return"theo-menu vjs-menu"}Js(){super.Js(),a.removeEventListener("resize",this.ae),a.addEventListener("resize",this.ae),this.show()}ue(){const t=this.ce();if(!t)return;const i=t.getClientRects();Pi.ie.te?this.le(t,i):this.de(t,i)}ce(){var t;return null!==(t=this.contentEl().parentElement)&&void 0!==t?t:void 0}de(t,i){}le(t,i){}Qs(){a.removeEventListener("resize",this.ae),super.Qs(),this.hide(),Pi.ie.te&&(this.el().removeAttribute("style"),this.contentEl().removeAttribute("style"))}createEl(){const t=super.createEl();t.className=this.buildCSSClass();const i=this.contentEl();l(i,"theo-menu-content");const s=new Ma(this.player(),this.h,this);return i.parentNode.insertBefore(s.el(),i),this.he=s,t}Zs(t){}show(){return this.ue(),super.show()}dispose(){this.he&&this.he.dispose(),super.dispose()}constructor(t,i){super(t,i),this.fe=void 0,this.ae=()=>this.ue(),this.fe=this.player().el(),this.hide(),this.on("menuchange",this.ue)}},Ia=class extends Aa{get ve(){return this.pe}set ve(t){this.pe&&this.pe.me(this),this.pe=t,t&&t.ge(this)}ye(t){this.ve.be(t,"replace")}we(t){t.ve.be(this,"restore")}ke(){vi(this._e,"vjs-hidden"),this._e.style.opacity="1",super.show()}je(){l(this._e,"vjs-hidden")}Js(){this.ve&&this.ve.Js(),super.Js()}Qs(){this.ve&&this.ve.Qs(),super.Qs(),l(this._e,"vjs-hidden")}ce(){if(this.ve&&this.ve.xe)return this.ve.xe._e}de(t,i){if(i.length>0){const t=i[0].height,s=i[0].width;this.pe.Se.style.height=t+"px",this.pe.Se.style.width=s+"px"}super.de(t,i)}constructor(t,i){super(t,i)}};Lt();var Ea=class{get Se(){return this.zs}get xe(){return this.Te}ge(t){t.je(),this.zs.appendChild(t._e)}me(t){this.zs.removeChild(t._e)}be(t,i){if(t==this.Te)return;const s=this.Te;if(this.Te=t,this.Te.ke(),this.xe.focus(),Pi.ie.te)s.je();else{const t="translateX(100%)",e="translateX(-100%)",n=pt("transform");s._e.style.opacity="0",s._e.style[n]="replace"===i?e:t,this.Te._e.style.opacity="1",this.Te._e.style[n]="",u(()=>{s.je(),s._e.style[n]=""},300)}}Js(){this.Ce(),this.Te.ke(),this.Pe()}Qs(){this.Ce(),this.Te.je(),this.Me.je(),this.Te=this.Me,this.Pe()}Pe(){lt(()=>{vi(this.zs,"theo-no-transition"),vi(this.Te._e,"theo-no-transition")})}Ce(){l(this.zs,"theo-no-transition"),l(this.Te._e,"theo-no-transition")}constructor(t){this.Te=void 0,this.Me=void 0,this.zs=void 0,this.fe=void 0,this.Me=this.Te=t,this.zs=h.createElement("div"),this.zs.className="theo-tertiary-background theo-menu-animation-container",this.zs.appendChild(this.Me._e),this.fe=this.Te.player().el()}};Lt(),Lt();var Da=class extends Ia{get _e(){return this.el()}get parentMenu(){return this.Ae}oe(t,i){const s=new Na(t,i,this);return s.subMenu.ve=this.ve,s}re(){this.Ie()}Zs(t){super.Zs(t),this.Ie()}Ie(){this.parentMenu.we(this)}buildCSSClass(){return"theo-submenu "+(this.Ee?"":"theo-leaf-submenu ")+"theo-menu-content theo-menu-content-animatable "+super.buildCSSClass()}addSubMenuItem(t){this.Ee=!0;const i=super.addSubMenuItem(t);return this.removeClass("theo-leaf-submenu"),i}constructor(t,i,s){super(t,i),this.Ae=void 0,this.Ee=!1,this.Ae=s,this.menuHeader.se=!0}},Na=class extends Ca{get subMenu(){return this.De}handleClick(t){this.parentMenu.ye(this.subMenu)}constructor(t,i,s){super(t,X({selectable:!1},i),s),this.De=void 0,this.De=new Da(t,i,s)}},Fa=class extends Ia{get menuButton(){return this.Ne}createEl(){const t=na.createEl("div",{className:this.buildCSSClass()});return this.Fe=super.createEl(),this.Fe.className=super.buildCSSClass(),l(this.Fe,"theo-menu-content-animatable"),t.appendChild(this.Fe),this.ve=new Ea(this),t.appendChild(this.ve.Se),t}buildCSSClass(){return"theo-menu-animatable "+super.buildCSSClass()}oe(t,i){const s=new Na(t,i,this);return s.subMenu.ve=this.ve,s}de(t,i){super.de(t,i);const s=this.fe.getClientRects(),e=s.length>0?s[0]:void 0,n=_(getComputedStyle(this.el()).fontSize);bi(this.el(),this.Ne.el(),e,n)}get _e(){return this.Fe}re(){this.Ne.closeMenu()}dispose(){this.Be||(this.Be=!0,super.dispose())}constructor(t,i,s){super(t,i),this.Ne=void 0,this.Be=!1,this.Ne=s}};Lt();var Ba=class{set $e(t){this.Re.innerHTML=this.Oe.localize(t),this.Ve()&&this.Ue(),_i(this.Oe.el())}get $e(){return this.Re.textContent||""}Ve(){return!ui(this.Re,"vjs-hidden")}Le(){this.Oe.off("mouseover",this.Ue),this.Oe.off("mouseout",this.He),this.Oe.off("dispose",this.ze),ei(this.Re)}constructor(t,i){this.Re=void 0,this.Oe=void 0,this.Ue=()=>{vi(this.Re,"vjs-hidden");const t=this.Oe.player().contentEl().getClientRects(),i=t.length>0?t[0]:void 0,s=_(getComputedStyle(this.Re).fontSize);bi(this.Re,this.Oe.el(),i,s)},this.He=()=>{l(this.Re,"vjs-hidden")},this.ze=()=>this.Le(),this.Oe=t,_i(t.el()),Si(t.el()),this.Re=h.createElement("span"),this.Re.innerHTML=this.Oe.localize(i),this.Re.className="theo-button-tooltip vjs-hidden",this.Re.setAttribute("aria-hidden","true"),this.Oe.el().appendChild(this.Re),this.Oe.on("mouseover",this.Ue),this.Oe.on("mouseout",this.He),this.Oe.on("dispose",this.ze)}},$a=na.getComponent("Button"),Ra=class extends(da($a)){get We(){const t=this.el().parentElement;return!!t&&null!==t.querySelector(".theo-mobile-menu-background")}get menu(){return this.qe}isMenuOpen(){return this.Ge}openMenu(){this.Xe&&!this.Ge&&(this.qe.Js(),this.el().setAttribute("aria-expanded","true"),this.Ge=!0,this.qe.focus())}closeMenu(){this.Xe&&this.Ge&&(this.qe.Qs(),this.el().setAttribute("aria-expanded","false"),this.Ge=!1)}set minimumMenuItems(t){this.Je=t,this.Qe()}buildCSSClass(){return"theo-controlbar-button vjs-menu-button vjs-menu-button-popup "+super.buildCSSClass()}createEl(t,i,s){return super.createEl("button",{},{"aria-live":"off"})}handleClick(){this.Ge?this.closeMenu():this.openMenu()}enable(){return this.Xe=!0,super.enable()}disable(){return this.closeMenu(),this.Xe=!1,super.disable()}ne(){this.Re.$e=this.controlText()}dispose(){this.player().removeChild(this.qe),this.qe.dispose(),this.Re.Le(),this.js.removeEventListener("seeking",this.Ye),super.dispose()}constructor(t,i){super(t,i),this.qe=void 0,this.Re=void 0,this.Ge=!1,this.Je=1,this.Xe=!0,this.Ke=t=>{const i=this.el().contains(t.target),s=this.qe.el().contains(t.target);let e=!1;var n;Pi.ie.te&&this.We&&(e=(null==(n=this.el().parentElement)?void 0:n.querySelector(".theo-mobile-menu-background"))===t.target);i||s||!this.Ge||(e&&t.preventDefault(),this.closeMenu())},this.Ze=t=>{27===t.which&&(this.closeMenu(),this.focus())},this.Ye=()=>{this.Ge&&this.closeMenu()},this.Qe=()=>{this.qe.menuItems.length>=this.Je?this.show():(this.closeMenu(),this.hide())},this.qe=new Fa(t,i,this),this.player().getChild("controlBarMenuContainer").addChild(this.qe),this.Re=new Ba(this,this.controlText()),this.el().setAttribute("aria-haspopup","true"),Pi.ie.tn?(this.on(h,"touchend",this.Ke),new ja(this.el())):(this.on(h,"click",this.Ke),this.on(h,"keydown",this.Ze),kt&&this.on(h,kt.sn,this.closeMenu)),this.js.addEventListener("seeking",this.Ye),this.on(this.qe,"menuchange",this.Qe),this.on(t,"languagechange",this.ne),this.Qe()}},Oa=na.getComponent("Component"),Va=class extends(na.getComponent("ControlBar")){addMenuButton(t){t=X({playerOptions:this.h.playerOptions},t);const i=new Ra(this.player(),t);return this.addChild(i),i}removeMenuButton(t){this.removeChild(t)}createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-secondary-color vjs-control-bar "+super.buildCSSClass()}constructor(t,i){super(t,i),this.addChild("THEOControlBarShadow",void 0,0)}};na.registerComponent("THEOControlBarShadow",class extends Oa{createEl(){return super.createEl("div",{className:this.buildCSSClass()})}buildCSSClass(){return"theo-tertiary-color theo-control-bar-shadow"}}),Lt(),Lt();var Ua=na.getComponent("VolumeBar"),La=class extends Ua{handleFocus(t){super.handleFocus(t),this.nn.addClass("focus-within")}handleBlur(t){super.handleBlur(t),this.nn.removeClass("focus-within")}constructor(t,i){super(t,i),this.nn=void 0,this.nn=i.rn}};Lt();var Ha=na.getComponent("VolumeControl"),za=class extends Ha{constructor(t,i){super(t,i),this.hn=void 0,this.hn=new La(t,{rn:this}),this.addChild(this.hn)}};za.prototype.h=ht(X({},Ha.prototype.h),{children:[]}),na.registerComponent("VolumeControl",za);var Wa=class extends(da(Va)){an(){this.un(this.cn())}ln(){0===this.dn&&(this.dn=u(this.fn,100))}vn(t){"opacity"===t.propertyName&&(0!==this.dn&&(c(this.dn),this.dn=0),this.un(!0))}pn(t){"opacity"===t.propertyName&&(this.cn()||this.un(!1))}cn(){return"0"!==a.getComputedStyle(this.el()).opacity}un(t){this.mn!==t&&(this.mn=t,t?this.gn():this.js.textTrackStyle.marginBottom=void 0)}gn(){const t=this.el().getBoundingClientRect().height;this.js.textTrackStyle.marginBottom!==t&&(this.js.textTrackStyle.marginBottom=t)}dispose(){c(this.dn),this.dn=0,this.bn.yn(ft.wn,this.kn),this.bn._n(),super.dispose()}constructor(t,i){super(t,i),this.bn=void 0,this.mn=!1,this.dn=0,this.fn=()=>{0!==this.dn&&(this.dn=0,this.un(this.cn()))},this.kn=()=>{this.mn&&this.gn()},this.on(t,"ready",this.an),this.on(t,"pause",this.an),this.on(t,"useractive",this.an),this.on(t,"firstplay",this.ln),this.on(t,"play",this.ln),this.on(t,"userinactive",this.ln),this.on("transitionstart",this.vn),this.on("transitionend",this.pn),this.bn=new gt(this.el()),this.bn.jn(ft.wn,this.kn),this.bn.xn(!0)}};Wa.prototype.h=ht(X({},Va.prototype.h),{children:["progressControl","playToggle","muteToggle","volumeControl","currentTimeDisplay","timeDivider","durationDisplay","liveDisplay","remainingTimeDisplay","customControlSpacer","activeQualityLabel","vrButton","descriptionsButton","subtitlesButton","chromecastButton","airplayButton","multiViewButton","audioTrackButton","SettingsButton","fullscreenToggle"]}),na.registerComponent("ControlBar",Wa),Lt();var qa=class extends Va{buildCSSClass(){return"theo-top-controlbar "+super.buildCSSClass()}constructor(t,i){super(t,i),t.topControlBar=this}};qa.prototype.h=ht(X({},Va.prototype.h),{children:[]}),na.registerComponent("TopControlBar",qa),Lt();var Ga=na.getComponent("CurrentTimeDisplay"),Xa=class extends(da(Ga)){updateContent(){const t=ha(this.player()),i=this.js,s=aa(i),e=this.localize("Current Time"),n=la(w.max(0,t-s),ua(i));n!==this.Pt&&(this.Pt=n,this.contentEl().innerHTML='<span class="vjs-control-text">'+e+"</span> "+n)}constructor(t,i){super(t,i),this.on(t,"timeupdate",this.updateContent),this.on(t,"emptied",this.updateContent)}};na.registerComponent("CurrentTimeDisplay",Xa),Lt();var Ja=na.getComponent("DurationDisplay"),Qa=class extends(da(Ja)){updateContent(){const t=this.js,i=j(t.duration)?NaN:ua(t),s=t.clip.endTime-t.clip.startTime,e=w.min(i,s)||0;if(this.ct!==e){this.ct=e;const t=this.localize("Duration Time"),i=la(e);this.S.innerHTML='<span class="vjs-control-text">'+t+"</span> "+i}}dispose(){var t;null==(t=this.js)||t.clip.removeEventListener("change",this.Sn),super.dispose()}constructor(t,i){var s;super(t,i),this.Sn=()=>this.updateContent(),this.off(t,"durationchange",this.updateContent),this.on(t,"durationchange",this.updateContent),this.off(t,"timeupdate",this.updateContent),this.on(t,"timeupdate",this.updateContent),this.off(t,"emptied",this.updateContent),this.on(t,"emptied",this.updateContent),null==(s=this.js)||s.clip.addEventListener("change",this.Sn)}};na.registerComponent("DurationDisplay",Qa),Lt();var Ya=na.getComponent("Button"),Ka=class extends(da(Ya)){buildCSSClass(){return"theo-live-control "+super.buildCSSClass()}createEl(){const t=super.createEl("button",{},{"aria-live":"off"});return this.Tn=na.createEl("span",{className:"theo-live-control-indicator"}),hi(t,this.Tn),t}createControlTextEl(t){const i=super.createControlTextEl(t);return na.removeClass(i,"vjs-control-text"),na.addClass(i,"theo-live-control-text"),i}handleClick(){var t;const i=this.js;if(void 0!==(null==(t=i.hesp)?void 0:t.manifest))i.hesp.goLive();else{const t=this.player();t.currentTime(1/0),t.play()}}Cn(){ra(this.js)?this.show():this.hide()}constructor(t,i){super(t,i),this.controlText("Live"),this.Cn(),this.on(t,"emptied",this.Cn),this.on(t,"durationchange",this.Cn),Pi.ie.tn&&new ja(this.el())}};na.registerComponent("LiveDisplay",Ka),Lt();var Za=na.getComponent("LoadingSpinner");na.registerComponent("LoadingSpinner",class extends Za{buildCSSClass(){return"theo-secondary-color vjs-loading-spinner "+super.buildCSSClass()}createEl(){const t=super.createEl();t.className=this.buildCSSClass();const i=na.createEl("div",{className:"theo-loading-spinner-rotator"}),s=na.createEl("div",{className:"theo-loading-spinner-circle-left"}),e=na.createEl("div",{className:"theo-loading-spinner-circle-right"});return i.appendChild(s),i.appendChild(e),t.appendChild(i),t}constructor(t,i){super(t,i)}}),Lt();var tu=na.getComponent("LoadProgressBar"),iu=class extends(da(tu)){update(){const t=this.js,i=ji.Pn(ca(t)),s=i.Mn(0),e=ji.Pn(t.buffered).An(i),n=i.In(0)-s;let r=e.U&&e.In(e.U-1)||0;r=w.max(0,r-s);const o=this.el(),a=this.En;o.style.width=su(r,n);for(let t=0;t<e.U;t++){const i=e.Mn(t),n=e.In(t);let u=a[t];u||(u=h.createElement("div"),a.push(u),o.appendChild(u)),u.style.left=su(i-s,r),u.style.width=su(n-i,r)}for(let t=a.length;t>e.U;t--)o.removeChild(a[t-1]);a.length=e.U}constructor(t,i){super(t,i),this.En=[],this.on(t,"emptied",this.update)}};function su(t,i){const s=t/i||0;return 100*(s>=1?1:s)+"%"}na.registerComponent("LoadProgressBar",iu),Lt();var eu=na.getComponent("MouseTimeDisplay"),nu=class extends(da(eu)){handleMouseMove(t){const i=t,s=this.js,e=aa(s)+this.calculateDistance(i)*ua(s),n=i.pageX-mi(this.el().parentNode).left;this.update(e,n+"px")}handleTouchMove(t){const i=t,s=this.js,e=aa(s)+this.calculateDistance(i)*ua(s),n=i.touches[0].pageX-mi(this.el().parentNode).left;this.update(e,n+"px")}createEl(){const t=super.createEl();return this.Dn=na.createEl("span",{className:"theo-time-tooltip-text"}),t}update(t,i){this.Nn=t;const s=this.Fn(t);this.el().style.left=i,this.el().setAttribute("data-current-time",s),this.keepTooltipsInside&&(e(this.Dn,s),this.Bn())}Bn(){if(this.keepTooltipsInside&&this.tooltip.offsetParent){const t=this.player().contentEl(),i=t.getClientRects(),s=i.length>0?i[0]:void 0,e=_(getComputedStyle(t).fontSize);bi(this.tooltip,this.el(),s,e)}}Fn(t){const i=this.js,s=t-oa(i);return la(ra(i)?w.min(s,0):s,ua(i))}dispose(){var t;this.js.removeEventListener("dimensionchange",this.$n),null==(t=this.js.presentation)||t.removeEventListener(St.MODE_CHANGE,this.$n),super.dispose()}constructor(t,i){var s;(super(t,i),this.Nn=NaN,this.$n=()=>{const t=ha(this.player()),i=this.js;let s=(t-aa(i))/ua(i)||0;s=Hi(s,0,1),this.update(t,100*s+"%")},this.keepTooltipsInside&&(na.addClass(this.tooltip,"theo-secondary-color"),this.tooltip.appendChild(this.Dn)),this.on(t,"ready",()=>{this.on(t.controlBar.progressControl,"mouseenter",this.handleMouseMove)}),Wt.te)&&(this.on(t,"firstplay",this.$n),this.on(t,"play",this.$n),this.on(t,"seeking",this.$n),this.on(t,"seeked",this.$n),this.on(t,"timeupdate",this.$n),this.js.addEventListener("dimensionchange",this.$n),null==(s=this.js.presentation)||s.addEventListener(St.MODE_CHANGE,this.$n),this.on(t,"ready",()=>{this.on(t.controlBar.progressControl,"touchstart",this.handleTouchMove),this.on(t.controlBar.progressControl,"touchmove",Ni(t=>this.handleTouchMove(t),25)),this.$n()}))}};na.registerComponent("MouseTimeDisplay",nu),Lt();var ru=na.getComponent("PlayProgressBar"),hu=class extends(da(ru)){updateDataAttr(){const t=ha(this.player());this.el().setAttribute("data-current-time",this.Fn(t))}Fn(t){const i=this.js;return la(t-oa(i),ua(i))}createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-primary-color vjs-play-progress vjs-slider-bar "+super.buildCSSClass()}constructor(t,i){super(t,i)}};na.registerComponent("PlayProgressBar",hu),Lt();var ou=na.getComponent("RemainingTimeDisplay"),au=class extends(da(ou)){updateContent(){const t=this.js,i=ua(t);if(i){const s=ca(t).end(0),e=this.localize("Remaining Time"),n=la(w.max(0,s-this.player().currentTime()),i);n!==this.Pt&&(this.Pt=n,this.contentEl().innerHTML='<span class="vjs-control-text">'+e+"</span> -"+n)}}constructor(t,i){super(t,i),this.on(t,"timeupdate",this.updateContent),this.on(t,"emptied",this.updateContent)}};na.registerComponent("RemainingTimeDisplay",au),Lt(),Lt();var uu=class{get js(){var t;return null!==(t=this.xs)&&void 0!==t?t:this.xs=fa(this.Rn)}On(){const t=this.Vn;if(!t)return;const i=this.js;if(0===i.seekable.length)return;const s=t.cues.slice();this.Ln.Un(s);for(let t=0;t<s.length;t++){const e=s[t],n=s[t+1],r=!n||e.endTime!==n.startTime,h=new cu(e,i,r);this.Hn.push(h),this.zn.appendChild(h.Se)}}Wn(){this.js.addEventListener("loadedmetadata",this.qn),this.js.addEventListener("loadeddata",this.qn),this.js.addEventListener("sourcechange",this.qn),this.js.addEventListener("durationchange",this.Gn),this.js.clip.addEventListener("change",this.Gn),this.js.textTracks.addEventListener("addtrack",this.Xn),this.js.textTracks.addEventListener("removetrack",this.Jn),this.js.textTracks.addEventListener("change",this.qn)}Qn(){this.js.removeEventListener("loadedmetadata",this.qn),this.js.removeEventListener("loadeddata",this.qn),this.js.removeEventListener("sourcechange",this.qn),this.js.removeEventListener("durationchange",this.Gn),this.js.clip.removeEventListener("change",this.Gn),this.js.textTracks.removeEventListener("addtrack",this.Xn),this.js.textTracks.removeEventListener("removetrack",this.Jn),this.js.textTracks.removeEventListener("change",this.qn)}Yn(){if(!(this.js.readyState<Jt.Kn))for(const t of this.js.textTracks)if(t.kind===S.Zn&&t.mode===Et.tr&&t.cues.length>0&&t.readyState!==At.ERROR)return t}ir(t){const i=this.Vn;t!==i&&(i&&(this.sr(),i.removeEventListener("cuechange",this.er)),this.Vn=t,t&&(t.addEventListener("cuechange",this.er),this.Gn()))}nr(t){this.Ln.rr(t)}hr(){this.Ln.ke()}ar(){this.Ln.je()}sr(){for(const t of this.Hn)t.Le();this.Ln.ur(),this.Hn=[],this.cr=void 0}Le(){this.Qn(),this.lr.removeEventListener("mousemove",this.dr),this.lr.removeEventListener("mouseenter",this.pr),this.lr.removeEventListener("mouseleave",this.mr),this.ir(void 0),this.Ln.Le(),this.xs=void 0}constructor(t,i){this.Rn=void 0,this.zn=void 0,this.Ln=void 0,this.lr=void 0,this.Vn=void 0,this.Hn=void 0,this.cr=void 0,this.xs=void 0,this.qn=void 0,this.Xn=void 0,this.Jn=void 0,this.dr=void 0,this.mr=void 0,this.pr=void 0,this.Gn=void 0,this.er=void 0,this.Rn=i,this.Hn=[],this.xs=void 0,this.qn=()=>{this.ir(this.Yn())},this.Xn=t=>{const i=t.track;i.kind===S.Zn&&(i.addEventListener("addcue",this.qn),i.addEventListener("removecue",this.qn),i.addEventListener("readystatechange",this.qn)),this.qn()},this.Jn=t=>{const i=t.track;i.kind===S.Zn&&(i.removeEventListener("addcue",this.qn),i.removeEventListener("removecue",this.qn),i.removeEventListener("readystatechange",this.qn)),this.qn()},this.dr=t=>{const i=this.js,s=function(t,i){const s=mi(t),e=t.offsetWidth,n=t.offsetHeight,r=s.top,h=s.left;let o,a;!function(t){return void 0!==t.changedTouches}(i)?(a=i.pageX,o=i.pageY):(a=i.changedTouches[0].pageX,o=i.changedTouches[0].pageY);const u=Hi((r-o+n)/n,0,1),c=Hi((a-h)/e,0,1);return{x:c,y:u}}(this.zn,t);let e=aa(i)+s.x*ua(i);e===i.duration&&(e-=.1),this.nr(e)},this.mr=()=>{this.Ln.je()},this.pr=()=>{this.Ln.ke()},this.Gn=()=>{this.Vn&&(this.sr(),this.On(),this.er())},this.er=()=>{var t,i,s;const e=null==(i=this.Vn)||null==(t=i.activeCues)?void 0:t[0],n=Ki(this.Hn,t=>t.gr===e);n!==this.cr&&(null==(s=this.cr)||s.yr(),this.cr=n,null==n||n.br())},this.lr=t,this.Ln=new lu,this.Rn.contentEl().appendChild(this.Ln.Se),this.zn=h.createElement("div"),l(this.zn,"theoplayer-chapterbar"),this.lr.appendChild(this.zn),this.lr.addEventListener("mousemove",this.dr),this.lr.addEventListener("mouseenter",this.pr),this.lr.addEventListener("mouseleave",this.mr),this.Wn()}},cu=class{get Se(){return this.zs}br(){l(this.zs,"theoplayer-chapter-indicator-active")}yr(){vi(this.zs,"theoplayer-chapter-indicator-active")}wr(t,i){const s=t.seekable.start(0),e=t.seekable.end(t.seekable.length-1),n=e-s,r=this.gr.startTime,o=this.gr.endTime,a=o>=s&&r<=e,u=Hi(r-s,0,n),c=Hi(o-s,0,n),d=w.max(0,c-u),f=h.createElement("div");l(f,"theoplayer-chapter-indicator");const v=h.createElement("div");l(v,"theoplayer-chapter-indicator-highlight"),f.appendChild(v),i&&l(f,"theoplayer-chapter-indicator-discontinuous");const p=u/n*100,m=d/n*100;return f.style.display=a?"":"none",f.style.width=m+"%",f.style.left=p+"%",f}Le(){ei(this.zs)}constructor(t,i,s){this.gr=void 0,this.zs=void 0,this.gr=t,this.zs=this.wr(i,s)}},lu=class{je(){this.kr--,0===this.kr&&vi(this.Se,"theoplayer-chapter-hovering")}Un(t){this._r=t||[],this._r.length>0&&(this.Se.style.display="")}jr(t){e(this.Sr,t.content)}ur(){this._r=[],e(this.Sr,""),this.Se.style.display="none"}ke(){this.kr++,this.kr>0&&l(this.Se,"theoplayer-chapter-hovering")}rr(t){for(const i of this._r)if(du(i,t)){this.jr(i);break}}Le(){ei(this.Se)}constructor(){this._r=[],this.Se=void 0,this.Sr=void 0,this.kr=0,this.Se=h.createElement("div"),l(this.Se,"theoplayer-chaptertitle"),this.Se.style.display="none",this.Sr=h.createElement("p"),this.Se.appendChild(this.Sr)}};function du(t,i){return new ji([t.startTime,t.endTime]).Tr(i)}var fu=na.getComponent("SeekBar"),vu=class extends(da(fu)){updateAriaAttributes(t){const i=ha(this.player()),s=this.js;t.setAttribute("aria-valuenow",(100*this.Cr(i)).toFixed(2)),t.setAttribute("aria-valuetext",la(i-oa(s),ua(s)))}getPercent(){return this.Cr(this.player().currentTime())}handleMouseMove(t){if(this.js&&this.js.ads&&this.js.ads.playing)return;const i=this.js;let s=aa(i)+this.calculateDistance(t)*ua(i);s>=i.duration&&(s=i.duration-.1),this.zn.nr(s),this.player().currentTime(s)}handleMouseDown(t){this.playingStates.push(!this.player().paused()),this.zn.hr(),super.handleMouseDown(t)}handleMouseUp(t){this.videoWasPlaying=Boolean(this.playingStates.pop()),this.zn.ar(),super.handleMouseUp(t)}Cr(t){const i=this.js,s=(t-aa(i))/ua(i);return Hi(s,0,1)}dispose(){this.zn.Le(),A(this.playingStates)}constructor(t,i){super(t,i),this.zn=void 0,this.playingStates=[],this.on(t,"emptied",this.update),this.on(t,"seeking",this.update),this.zn=new uu(this.el(),t)}};na.registerComponent("SeekBar",vu),Lt();var pu=na.getComponent("ProgressControl");Pi.ie.te&&na.registerComponent("ProgressControl",class extends pu{createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(t){this.seekBar.handleMouseMove(t)}handleMouseDown(t){null==t.preventDefault||t.preventDefault.call(t),this.seekBar.handleMouseDown(t)}handleMouseUp(t){null==t.preventDefault||t.preventDefault.call(t),this.seekBar.handleMouseUp(t)}constructor(t,i){super(t,i),this.on(this,"touchmove",this.handleMouseMove),this.on("touchstart",this.handleMouseDown),this.on("touchend",this.handleMouseUp),this.seekBar.off(["touchmove","touchstart","touchend"])}}),Lt();var mu=na.getComponent("TooltipProgressBar"),gu=class extends(da(mu)){updateDataAttr(){const t=ha(this.player()),i=this.Fn(t);this.el().setAttribute("data-current-time",i),this.tooltip.innerHTML=i}Fn(t){const i=this.js;return la(t-oa(i),ua(i))}createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-primary-color vjs-tooltip-progress-bar vjs-slider-bar "+super.buildCSSClass()}constructor(t,i){super(t,i)}};function yu(t){for(const i of t)if(i.enabled)return i}function bu(t){if(t)return t.label&&""!==t.label?{name:t.label,hd:!1}:{name:wu(t),description:ku(t),hd:!!t.height&&t.height>=720}}function wu(t){return t.height?t.height+"p":t.bandwidth?ku(t):""}function ku(t){return t.bandwidth?t.bandwidth>1e7?(t.bandwidth/1e6).toFixed(0)+"Mbps":t.bandwidth>1e6?(t.bandwidth/1e6).toFixed(1)+"Mbps":(t.bandwidth/1e3).toFixed(0)+"kbps":""}na.registerComponent("TooltipProgressBar",gu),Lt(),Lt(),Lt(),Lt(),Lt();var _u=class{get Pr(){return this.Mr}set Pr(t){const i=this.Mr;for(let s=i.length-1;s>=0;s--){const e=i[s];C(t,e)||this.Ar(e)}for(const i of t)this.Ir(i);this.Er.ue()}get Dr(){return this.Er.menuItems}Nr(t){const i=this.Dr;if(i)for(const s of i)if(s.Fr===t)return s}Br(t){const i=this.Er.addMenuItem();return i.Fr=t,i.on("click",()=>this.$r(i)),i.el().setAttribute("role","menuitemradio"),i}Rr(t){t.dispose()}Or(t){return!0}Ir(t){if(this.Or(t)){C(this.Mr,t)||this.Mr.push(t);const i=this.Nr(t)||this.Br(t);return this.Vr(i),i}this.Ar(t)}Ar(t){const i=this.Nr(t);i&&(this.Er.removeMenuItem(i),this.Rr(i)),is(this.Mr,t)}Le(){const t=[];for(const i of this.Mr)t.push(i);for(const i of t)this.Ar(i);A(t)}constructor(t){this.Er=void 0,this.Mr=[],this.Er=t}},ju=class extends _u{Ur(){return this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",e(this.Lr,this.Hr.localize("Quality")),this.Lr}zr(){return this.Wr=h.createElement("span"),this.Wr.className="theo-settings-control-menu-quality-automatic",e(this.Wr,this.Hr.localize("Automatic")),this.Wr}qr(){return this.Gr=h.createElement("span"),e(this.Gr,this.Hr.localize("Automatic")),this.Gr}Xr(){return this.Jr=h.createElement("span"),this.Jr.className="theo-primary-color theo-settings-control-menu-item-hd-label",e(this.Jr,this.Hr.localize("HD")),this.Jr}Qr(){const t=h.createElement("span");t.className="theo-primary-color theo-settings-control-menu-item-value",t.appendChild(this.Wr),t.appendChild(h.createTextNode(" ")),t.appendChild(this.Gr),t.appendChild(h.createTextNode(" ")),t.appendChild(this.Jr),this.Yr.el().appendChild(this.Lr),this.Yr.el().appendChild(t),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video quality settings menu"))}Kr(){const t=this.Zr,i=t&&Au(t.targetQuality),s=t&&t.activeQuality,n=bu(this.th(i||s))||{name:this.Hr.localize("Automatic")};e(this.Gr,n.name),gi(this.Wr,"vjs-hidden",Boolean(i)),gi(this.Jr,"vjs-hidden",!n.hd)}Vr(t){const i=bu(t.Fr)||{name:this.Hr.localize("Automatic")};let s=i.name;i.hd&&(s+='<span class="theo-primary-color theo-settings-control-menu-item-hd-label">'+this.Hr.localize("HD")+"</span>"),i.description&&(s+='<span class="theo-settings-control-submenu-item-alternate-value">'+i.description+"</span>"),t.el().innerHTML=s,t.el().setAttribute("aria-label",this.Hr.localize("Set video quality to ")+i.name),t.Fr?t.selected(t.Fr===this.ih):t.selected(!this.ih)}$r(t){this.Zr&&(this.Zr.targetQuality=t.Fr&&t.Fr.videoQualities)}th(t,i){const s=i||this.Pr;for(const i of s)if(t&&i&&-1!==i.videoQualities.indexOf(t))return i}Le(){this.xs.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.sh),this.Hr.off("languagechange",this.ne),this.Zr&&(this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr.removeEventListener("targetqualitychanged",this.nh),this.Zr.removeEventListener("update",this.rh)),super.Le()}constructor(t,i,s){super(t.subMenu),this.Yr=void 0,this.xs=void 0,this.Hr=void 0,this.Zr=void 0,this.ih=void 0,this.Lr=void 0,this.Wr=void 0,this.Gr=void 0,this.Jr=void 0,this.sh=()=>{const t=yu(this.xs.videoTracks);if(t===this.Zr)return;let i=[];if(this.Zr&&(this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr.removeEventListener("targetqualitychanged",this.nh),this.Zr.removeEventListener("update",this.rh)),this.Zr=t,t){t.addEventListener("activequalitychanged",this.eh),t.addEventListener("targetqualitychanged",this.nh),t.addEventListener("update",this.rh);const s=Su(Pu(t.qualities.filter(t=>t.available)));i=s.length>1?[void 0,...s]:[void 0]}this.Pr=i,this.nh(),this.eh()},this.rh=t=>{const i=t.track;if(i!==this.Zr)return;const s=Su(Pu(i.qualities.filter(t=>t.available))),e=i&&Au(i.targetQuality);let n;this.ih=this.th(e,s),n=s.length>1?[void 0,...s]:[void 0],this.Pr=n,this.Kr()},this.eh=()=>{this.Ir(void 0),this.Kr()},this.nh=()=>{const t=yu(this.xs.videoTracks),i=t&&Au(t.targetQuality),s=this.th(i),e=this.ih;s!==e&&(this.ih=s,s&&e||this.Ir(void 0),e&&C(this.Pr,e)&&this.Ir(e),i&&this.Ir(s),this.Kr())},this.ne=()=>{e(this.Er.menuHeader.el(),this.Hr.localize("Quality")),e(this.Lr,this.Hr.localize("Quality")),e(this.Wr,this.Hr.localize("Automatic")),e(this.Gr,this.Hr.localize("Automatic")),e(this.Jr,this.Hr.localize("HD")),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video quality settings menu"));for(const t of this.Dr)this.Vr(t);this.Kr()},this.Yr=t,this.xs=i,this.Hr=s,this.Lr=this.Ur(),this.Wr=this.zr(),this.Gr=this.qr(),this.Jr=this.Xr(),this.Qr(),e(this.Er.menuHeader.el(),this.Hr.localize("Quality")),this.Pr=[void 0],this.xs.videoTracks.addEventListener(["addtrack","removetrack","change"],this.sh),this.Hr.on("languagechange",this.ne),this.sh()}},xu=class{get height(){return this.hh[0].height}get bandwidth(){return this.hh[0].bandwidth}get videoQualities(){return this.hh}get label(){return this.hh[0].label}add(t){this.hh.push(t)}constructor(t){this.hh=void 0,this.hh=t}};function Su(t){const i=[];for(const s of t){const t=s;let e=!1;for(const s of i)if(Mu(s,t)){s.add(t),e=!0;break}e||i.push(new xu([t]))}return i}function Tu(t,i){return t&&i?Ji(t,i):qi.oh}function Cu(t,i){return t===i?qi.oh:Tu(t.height,i.height)||Tu(t.width,i.width)||Tu(t.bandwidth,i.bandwidth)}function Pu(t){return Vi(t,Cu).reverse()}function Mu(t,i){return t.label&&i.label&&t.label===i.label||wt(bu(t),bu(i))}function Au(t){return Yt(t)?1===t.length?t[0]:void 0:t}function Iu(t){return 1===t?"Normal":""+w.round(100*t)/100}Lt();var Eu=class extends _u{Ur(){return this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",e(this.Lr,this.Hr.localize("Speed")),this.Lr}Qr(){const t=h.createElement("span");return t.className="theo-primary-color theo-settings-control-menu-item-value",this.Yr.el().appendChild(this.Lr),this.Yr.el().appendChild(t),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video speed settings menu")),t}Br(t){const i=super.Br(t);return this.Vr(i),i}Vr(t){const i=t.Fr,s=this.Hr.localize(Iu(i));e(t.el(),s),t.el().setAttribute("aria-label",this.Hr.localize("Set video speed to ")+s),t.selected(t.Fr===this.xs.playbackRate)}$r(t){this.xs.playbackRate=t.Fr}Le(){this.xs.removeEventListener("ratechange",this.ah),this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s,n){super(t.subMenu),this.Yr=void 0,this.xs=void 0,this.Hr=void 0,this.uh=void 0,this.Lr=void 0,this.dh=void 0,this.ah=()=>{this.uh&&this.Ir(this.uh);const t=this.xs.playbackRate;this.uh=t,e(this.dh,this.Hr.localize(Iu(t))),t&&this.Ir(t)},this.ne=()=>{e(this.Er.menuHeader.el(),this.Hr.localize("Speed")),e(this.Lr,this.Hr.localize("Speed")),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the video speed settings menu"));for(const t of this.Dr)this.Vr(t);this.ah()},this.Yr=t,this.xs=i,this.Hr=s,this.Lr=this.Ur(),this.dh=this.Qr(),e(this.Er.menuHeader.el(),this.Hr.localize("Speed")),this.Pr=n,this.xs.addEventListener("ratechange",this.ah),this.Hr.on("languagechange",this.ne),this.ah()}};na.registerComponent("SettingsButton",class extends Ra{createEl(){const t=super.createEl();return this.fh=na.createEl("span",{className:"theo-settings-control-label-hd theo-primary-background"}),e(this.fh,this.localize("HD")),t.appendChild(this.fh),t}buildCSSClass(){return"vjs-icon-cog theo-settings-control-button "+super.buildCSSClass()}ne(){super.ne(),e(this.fh,this.localize("HD")),e(this.menu.menuHeader.el(),this.localize("Settings"))}dispose(){this.Zr&&(this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr=void 0),this.js.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.ph),this.mh.Le(),this.gh.Le(),super.dispose()}constructor(t,i){var s,n;super(t,i),this.yh=void 0,this.mh=void 0,this.bh=void 0,this.gh=void 0,this.Zr=void 0,this.ph=()=>{const t=yu(this.js.videoTracks);t!==this.Zr&&(this.Zr&&this.Zr.removeEventListener("activequalitychanged",this.eh),this.Zr=t,t&&t.addEventListener("activequalitychanged",this.eh),this.eh())},this.eh=()=>{var t;const i=null==(t=this.Zr)?void 0:t.activeQuality,s=Boolean(i&&i.height>=720);this.player().toggleClass("theo-hd",s)},l(this.menu.el(),"theo-settings-control-menu"),e(this.menu.menuHeader.el(),t.localize("Settings")),this.controlText("Settings"),this.Re.$e=this.controlText(),this.yh=this.menu.addSubMenuItem({name:"QualityMenuItem"}),this.mh=new ju(this.yh,this.js,t);const r=null!==(s=null==i||null==(n=i.playerOptions)?void 0:n.playbackRates)&&void 0!==s?s:[];this.bh=this.menu.addSubMenuItem({name:"PlaybackRateMenuItem"}),this.gh=new Eu(this.bh,this.js,t,r),this.js.videoTracks.addEventListener(["addtrack","removetrack","change"],this.ph),this.ph()}}),Lt(),Lt(),Lt();var Du=class extends _u{wh(t){const i=t.label;if(i)return i;const s=t.language;if(s){const t=R(s);if(t)return t.kh}return s||""}_h(){this.Pr=this.jh}Le(){this.jh.removeEventListener("addtrack",this.xh),this.jh.removeEventListener("removetrack",this.Sh),this.jh.removeEventListener("change",this.Th),super.Le()}constructor(t,i){super(t),this.jh=void 0,this.xh=t=>{const i=t.track;this.Ir(i),i.addEventListener("update",this.Ch)},this.Sh=t=>{const i=t.track;this.Ar(i),i.removeEventListener("update",this.Ch)},this.Th=t=>this._h(),this.Ch=()=>{for(const t of this.Pr)this.Ir(t)},this.jh=i,this.jh.addEventListener("addtrack",this.xh),this.jh.addEventListener("removetrack",this.Sh),this.jh.addEventListener("change",this.Th),this._h()}},Nu=class extends Du{Vr(t){const i=t.Fr,s=this.Hr.localize(this.wh(i));e(t.el(),s),t.el().setAttribute("aria-label",this.Hr.localize("Set the audio language to")+" "+s),t.selected(i.enabled)}$r(t){const i=t.Fr;for(const t of this.js.audioTracks)t!==i&&(t.enabled=!1);i.enabled=!0}Le(){this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s){super(t,i.audioTracks),this.js=void 0,this.Hr=void 0,this.ne=()=>{e(this.Er.menuHeader.el(),this.Hr.localize("Language"));for(const t of this.Dr)this.Vr(t)},this.js=i,this.Hr=s,e(this.Er.menuHeader.el(),this.Hr.localize("Language")),this.Hr.on("languagechange",this.ne)}};na.registerComponent("audioTrackButton",class extends Ra{buildCSSClass(){return"vjs-icon-audio theo-audio-track-control-button "+super.buildCSSClass()}dispose(){this.Ph.Le(),super.dispose()}constructor(t,i){super(t,i),this.Ph=void 0,this.minimumMenuItems=2,this.Ph=new Nu(this.menu,this.js,t),this.controlText("Language"),this.Re.$e=this.controlText()}}),Lt(),Lt();var Fu=class extends Du{Or(t){return!!super.Or(t)&&(!t.forced&&Vt(t.kind))}Br(t){const i=super.Br(t);l(i.el(),"theo-text-track-menu-item");const s=h.createElement("span");i.Mh=s;const e=h.createElement("div");e.className="theo-text-track-menu-item-toggle",i.Ah=e;const n=t=>this.Ih(t,i);i.Eh=n,e.addEventListener("click",n);const r=h.createElement("div");return r.className="theo-text-track-menu-item-toggle-slider",e.appendChild(r),i.el().appendChild(s),i.el().appendChild(e),i}Vr(t){const i=t,s=i.Fr,n=this.Hr.localize(this.wh(s));e(i.Mh,n),i.el().setAttribute("aria-label",this.Hr.localize("Set the subtitle language to")+" "+n),i.el().setAttribute("role","menuitemcheckbox"),i.selected(s.mode===Et.tr)}Rr(t){const i=t;i.Ah.removeEventListener("click",i.Eh),super.Rr(t)}$r(t){const i=t.Fr;for(const t of this.js.textTracks)t!==i&&$t(t.kind,i.kind)&&(t.mode=Et.Dh);i.mode!==Et.tr?i.mode=Et.tr:i.mode=Et.Dh}Ih(t,i){t.stopImmediatePropagation(),this.$r(i)}Le(){this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s){super(t,i.textTracks),this.js=void 0,this.Hr=void 0,this.ne=()=>{e(this.Er.menuHeader.el(),this.Hr.localize("Subtitles"));for(const t of this.Dr)this.Vr(t)},this.js=i,this.Hr=s,e(this.Er.menuHeader.el(),s.localize("Subtitles")),this.Hr.on("languagechange",this.ne)}};na.registerComponent("subtitlesButton",class extends Ra{buildCSSClass(){return"vjs-icon-subtitles theo-text-track-control-button "+super.buildCSSClass()}dispose(){this.Ph.Le(),super.dispose()}constructor(t,i){super(t,i),this.Ph=void 0,this.Ph=new Fu(this.menu,this.js,t),this.controlText("Subtitles"),this.Re.$e=this.controlText()}}),Lt();var Bu=na.getComponent("playToggle"),$u=class extends(da(Bu)){handleClick(t){this.js.muted||this.js.prepareWithUserAction(),super.handleClick(t)}handlePlay(t){super.handlePlay(t),this.controlText("Pause"),this.Re.$e=this.controlText()}handlePause(t){this.js.ended||(super.handlePause(t),this.controlText("Play"),this.Re.$e=this.controlText())}ne(){this.Re.$e=this.controlText()}dispose(){this.Re.Le(),this.js.removeEventListener("ended",this.Nh),super.dispose()}constructor(t,i){super(t,i),this.Re=void 0,this.Nh=()=>{this.controlText("Replay"),this.Re.$e=this.controlText()},this.controlText("Play"),this.Re=new Ba(this,this.controlText()),this.js.addEventListener("ended",this.Nh),this.on(t,"languagechange",this.ne),Pi.ie.tn&&new ja(this.el())}};na.registerComponent("playToggle",$u),Lt();var Ru=na.getComponent("fullscreenToggle"),Ou=class extends(da(Ru)){handleClick(t){this.js.prepareWithUserAction(),super.handleClick(t)}handleFullscreenChange(t){super.handleFullscreenChange(t),this.updateContent()}updateContent(){const t=this.player().isFullscreen()?"Exit fullscreen":"Fullscreen";this.controlText(t),this.Re.$e=this.controlText()}dispose(){this.Re.Le(),super.dispose()}constructor(t,i){super(t,i),this.Re=void 0,this.controlText("Fullscreen"),this.Re=new Ba(this,this.controlText()),Pi.ie.tn&&new ja(this.el()),this.on(t,"languagechange",this.updateContent)}};na.registerComponent("fullscreenToggle",Ou),Lt();var Vu=na.getComponent("muteToggle"),Uu=class extends(da(Vu)){handleClick(t){this.js.muted&&!this.js.paused&&this.js.prepareWithUserAction(),super.handleClick(t)}update(t){super.update(t),this.ne()}ne(){const t=this.player().muted()?"Unmute":"Mute";this.controlText(t),this.Re.$e=this.controlText()}dispose(){this.Re.Le(),super.dispose()}constructor(t,i){super(t,i),this.Re=void 0,this.controlText("Mute"),this.Re=new Ba(this,this.controlText()),Pi.ie.tn&&new ja(this.el()),this.on(t,"languagechange",this.ne),L&&(this.removeClass("vjs-hidden"),this.on(t,"loadstart",()=>{this.removeClass("vjs-hidden")}))}};na.registerComponent("muteToggle",Uu),Lt();var Lu=na.getComponent("BigPlayButton"),Hu=class extends(da(Lu)){createEl(){const t=super.createEl(),i=na.createEl("div",{className:"theo-big-play-button-svg-container"});return i.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150" fill="currentColor">\n <circle cx="75" cy="75" r="73" fill="#000" fill-opacity="0.2"></circle>\n <circle cx="75" cy="75" r="73" class="theo-play-svg-circle" stroke-width="4" stroke="currentColor" fill="none" transform="rotate(-90,75,75)"></circle>\n <g transform="translate(85,75) scale(0.5625) translate(-75,-75)">\n <path d="m 123.89639,85.432 c -12.865,9.167 -29.482997,19.402 -49.848997,30.7 -19.634,11.035 -36.851,19.7 -51.65,26 l -16.3990002,6.099 c -1.033,-4.433 -2,-11.002 -2.9,-19.7 -2.033,-17.333 -3.04999998,-36.466 -3.04999998,-57.399 0,-19.167 1.38199998,-37.081 4.14799998,-53.75 l 4.0019995,-19.1499994 17.3990007,5.849 c 15.068,5.9999994 31.401,14.5169994 49,25.5509994 18.631,11.666 34.616997,22.766 47.948997,33.3 6.663,5.3 11.463,9.383 14.396,12.25 l -13.046,10.25"></path>\n </g>\n</svg>',t.appendChild(i),t}buildCSSClass(){return"theo-primary-color "+super.buildCSSClass()}handleClick(t){this.js.muted||this.js.prepareWithUserAction(),super.handleClick(t),void 0!==this.js.vr&&"unavailable"!==this.js.vr.state&&(this.js.vr.useDeviceMotionControls=!0)}};na.registerComponent("BigPlayButton",Hu),Lt();var zu=/^([^#]*)#xywh=(\d+),(\d+),(\d+),(\d+)\s*$/;na.registerComponent("MouseTimeDisplay",class extends nu{Fh(t){const i=t.track;"metadata"===i.kind&&"thumbnails"===i.label&&void 0===this.Bh&&(this.Bh=i,this.$h=i.src?Pi.Rh(i.src).href:void 0,this.Bh.addEventListener(["addcue","removecue"],this.Oh),this.Vh())}Uh(t){t.track===this.Bh&&this.Lh()}createEl(){const t=super.createEl();return this.Hh=na.createEl("img",{className:"theo-time-tooltip-thumbnail"}),this.zh=na.createEl("canvas",{className:"theo-time-tooltip-thumbnail"}),t}update(t,i){super.update(t,i),this.keepTooltipsInside&&this.Wh(t)}Wh(t){let i;if(this.Bh&&this.Bh.cues){const s=function(t,i){let s=t[0];for(const e of t)if(e.startTime<=i)s=e;else if(i>=e.endTime)return s;return s}(this.Bh.cues,t);i=s&&s.content}if(i===this.qh)return;if(this.qh=i,na.toggleClass(this.el(),"theo-time-tooltip-has-thumbnail",Boolean(i)),!i)return void this.Gh();const s=i.match(zu);if(s){let[,t,i,e,n,r]=s;t=this.Xh(t);const h={Jh:Number(i),Qh:Number(e),Ci:Number(n),Pi:Number(r)};this.Yh(t,h)}else{const t=this.Xh(i);this.Yh(t)}}Vh(){j(this.Nn)||this.Wh(this.Nn)}Xh(t){return this.Bh&&this.$h?Pi.Rh(t,this.$h).href:t}Yh(t,i){this.Hh&&(this.Hh.src!==t?(this.Hh.onload=()=>{this.Kh(i)},this.Hh.src="",this.Hh.src=t):this.Kh(i))}Kh(t){if(!this.zh||!this.Hh)return;const i=this.zh.getContext("2d");i&&(null!=t||(t={Jh:0,Qh:0,Ci:this.Hh.naturalWidth,Pi:this.Hh.naturalHeight}),this.zh.width=t.Ci,this.zh.height=t.Pi,i.drawImage(this.Hh,t.Jh,t.Qh,t.Ci,t.Pi,0,0,t.Ci,t.Pi),this.Zh(this.zh))}Zh(t){this.io||(hi(this.tooltip,t),this.io=t),this.Bn()}Gh(){this.io&&(this.tooltip.removeChild(this.io),this.io=void 0,this.Bn())}Lh(){void 0!==this.Bh&&(this.Bh.removeEventListener(["addcue","removecue"],this.Oh),this.Bh=void 0),this.$h=void 0,this.Gh(),this.qh=void 0}dispose(){this.Lh(),super.dispose()}constructor(t,i){super(t,i),this.io=void 0,this.Bh=void 0,this.$h=void 0,this.so=t=>this.Fh(t),this.eo=t=>this.Uh(t),this.Oh=t=>this.Vh(),this.qh=void 0,this.showThumbnails=()=>{this.io&&this.io.hidden&&(this.io.hidden=!1,this.Bn())},this.hideThumbnails=()=>{!this.io||this.io.hidden||this.player().scrubbing()||(this.io.hidden=!0,this.Bn())},this.on(this.player().textTracks(),"addtrack",this.so),this.on(this.player().textTracks(),"removetrack",this.eo),Wt.te&&(this.on(t,"seeking",this.showThumbnails),this.on(t,"seeked",this.hideThumbnails))}}),Lt();var Wu=na.getComponent("VolumeLevel");na.registerComponent("VolumeLevel",class extends Wu{createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-primary-color vjs-volume-level "+super.buildCSSClass()}}),Lt(),Lt();var qu=na.getComponent("Component"),Gu=class extends qu{createEl(){const t=super.createEl();return t.className=this.buildCSSClass(),t}buildCSSClass(){return"theo-menu-container "+super.buildCSSClass()}};Gu.prototype.h=ht(X({},Gu.prototype.h),{children:[]}),na.registerComponent("controlBarMenuContainer",Gu);var Xu=na.getComponent("Player"),Ju=class extends Xu{dispose(){const t=this.el(),i=this.contentEl(),s=t.parentNode,e=t.nextSibling;super.dispose(),ei(i),this.Si&&s&&(e?s.insertBefore(t,e):s.appendChild(t)),h.body.removeEventListener("keydown",this.handleKeyPress),h.body.removeEventListener("click",this.handleClick)}constructor(t,i,s){super(t,i,s),this.handleKeyPress=t=>{9===t.which&&this.addClass("theo-probably-keyboard-focus")},this.handleClick=t=>{0===t.x&&0===t.y||this.removeClass("theo-probably-keyboard-focus")},h.body.addEventListener("keydown",this.handleKeyPress),h.body.addEventListener("click",this.handleClick)}};Ju.prototype.h=ht(X({},Xu.prototype.h),{children:["bigPlayButton","AdControlPanel","TopControlBar","mediaLoader","upNextContainer","posterImage","chromecastOverlay","upcomingAdNotificationText","controlBarMenuContainer","controlBar","textTrackDisplay","loadingSpinner","errorDisplay","textTrackSettings","xrCompass"]}),na.registerComponent("Player",Ju),Lt(),Lt();var Qu=na.getComponent("Player"),Yu=Qu.prototype.ns;Qu.prototype.ns=function(t){if(!(this.H&&this.H.Ls&&this.H.Ls()))return Yu.call(this,t)};var Ku=Qu.prototype.createEl;function Zu(t,i,s,e){const n=X({controls:!0,playbackRates:[.25,.5,1,1.25,1.5,2]},s);n.controlBar=X({progressControl:{keepTooltipsInside:!0}},n.controlBar);const r=n.techOrder||(n.techOrder=[]);-1===r.indexOf("THEOplayer")&&r.unshift("THEOplayer");(n.theoplayer||(n.theoplayer={})).player=t,s&&ti(s.language)&&(n.languages=ht(X({},n.languages),{[F]:s.language}),n.language=F),i.setAttribute("data-vjs-player","");const h=i.getAttribute("style"),o=na(t.element,n,e);return o.ready(()=>{va(o),function(t,i){if(i){const s=i.ads;if(s){const e=i=>{const s="adbreakbegin"===i.type,e=i.adBreak.integration===G.no;pa(t,s,e)};s.addEventListener("adbreakbegin",e),s.addEventListener("adbreakend",e),i.addEventListener("destroy",()=>{s.removeEventListener("adbreakbegin",e),s.removeEventListener("adbreakend",e)})}const e=i.uplynk;if(e){const s=i=>{const s="adbreakbegin"===i.type;pa(t,s,!1)},n=t=>{t.adBreak.addEventListener("adbreakbegin",s),t.adBreak.addEventListener("adbreakend",s)};for(const t of e.ads.adBreaks)t.addEventListener("adbreakbegin",s),t.addEventListener("adbreakend",s);e.ads.adBreaks.addEventListener("addadbreak",n),i.addEventListener("destroy",()=>{for(const t of e.ads.adBreaks)t.removeEventListener("adbreakbegin",s),t.removeEventListener("adbreakend",s);e.ads.adBreaks.removeEventListener("addadbreak",n)})}i.addEventListener("sourcechange",()=>{pa(t,!1,!1)})}}(o,t),function(t){t.on("mouseleave",ma)}(o)}),i.removeAttribute("data-vjs-player"),h?i.setAttribute("style",h):i.removeAttribute("style"),Pi.ie.te&&(l(i,"theo-mobile"),tc(i)),function(t){t.on("seeking",()=>{ui(t.el(),"vjs-ended")&&t.currentTime()!==t.duration()&&t.play()})}(o),o}function tc(t){a.outerHeight>a.outerWidth?(vi(t,"theo-mobile-landscape"),l(t,"theo-mobile-portrait")):(vi(t,"theo-mobile-portrait"),l(t,"theo-mobile-landscape"))}Qu.prototype.createEl=function(){const t=Ku.call(this),i=na.createEl("div");for(i.className="theo-player-wrapper";t.firstChild;)i.appendChild(t.firstChild);return t.appendChild(i),this.S=i,t},Lt(),Lt(),Lt(),Lt();var ic=na.getComponent("Button");var sc="THEOPiPCloseButton";na.registerComponent(sc,class extends ic{buildCSSClass(){return"theo-close-button theo-pip-close"}handleClick(){this.ho.ro()}constructor(t,i){if(super(t,i),this.ho=void 0,this.controlText("Close Picture-in-Picture"),!function(t){return!!t&&Boolean(t.ho)}(i))throw new v("Invalid Picture-in-picture options.");this.ho=i.ho}});var ec=class extends Y{get oo(){return this.ao}get uo(){return this.t.ds()}co(){this.t.jn(st.lo,this.do),this.fo||this.t.jn(st.vo,this.po),this.t.mo.on("languagechange",this.ne)}yo(){var t;return"theo-pip-"+(null!==(t=this.bo)&&void 0!==t?t:"bottom-right")}wo(t){const i=this.ko;i&&!this.uo&&(this._o||this.jo(),this.xo(),l(i,"theo-pip"),l(i,this.yo()),this.ao=!0,this.So=t,this.To=!1,this.Co(new Ct(N.PICTURE_IN_PICTURE)))}Po(t){const i=this.ko;i&&(this.Mo(),vi(i,"theo-pip"),vi(i,this.yo()),this.ao=!1,this.To=t,this.Ao=this.So,this.So=!1,this.Co(new Ct(N.INLINE)))}jo(){if(!this._o){const t=this.t.mo;t.addChild(sc,{ho:this});const i=h.createElement("div");i.className="theo-pip-overlay",this.Io=h.createElement("div"),this.Io.className="theo-pip-overlay-text",e(this.Io,t.localize("Video playing in Picture-in-Picture mode")),i.appendChild(this.Io),hi(t.el(),i),this.Eo=i,this._o=!0}}Do(){this.No&&!this.Fo&&this.t.Bo&&(this.$o=this.t.Bo.Ro(Ci,this.Oo),this.Fo=!0)}Vo(){this.$o&&this.t.Bo&&(this.t.Bo.Uo(this.$o),this.Fo=!1)}xo(){const t=this.t.mo.contentEl(),i=t.getBoundingClientRect(),s=h.documentElement.clientWidth,e=h.documentElement.clientHeight;t.style.top=i.top+"px",t.style.bottom=e-i.bottom+"px",t.style.right=s-i.right+"px",t.style.left=i.left+"px",t.style.width=i.width+"px",t.style.height=i.height+"px",t.style.position="fixed"}Mo(){const t=this.t.mo.contentEl();t.style.top="",t.style.bottom="",t.style.right="",t.style.left="",t.style.width="",t.style.height="",t.style.position=""}Lo(){vi(this.ko,"theo-pip"),this.oo&&this.bo&&vi(this.ko,"theo-pip-"+this.bo),this.Eo&&(ei(this.Eo),this.Eo=void 0)}_n(){this.Lo(),this.Vo(),this.Ho(),this.t.yn(st.lo,this.do),this.t.yn(st.vo,this.po),this.t.mo.off("languagechange",this.ne),this.t=void 0}constructor(t,i,s){super(),this.zo=void 0,this.bo=void 0,this.fo=void 0,this.t=void 0,this.ko=void 0,this.Wo=!1,this.ao=!1,this.To=!1,this.So=!1,this._o=!1,this.ro=void 0,this.Fo=!1,this.$o=void 0,this.Eo=void 0,this.Io=void 0,this.Ao=!1,this.No=void 0,this.do=()=>{this.Wo=!0,this.No&&!this.oo&&this.$o&&this.zo&&this.$o.qo<=this.zo&&this.wo(!1)},this.po=()=>{this.fo||(this.Wo=!1,this.ro(),this.Po(!1))},this.ne=()=>{if(this.Io){const t=this.t.mo;e(this.Io,t.localize("Video playing in Picture-in-Picture mode"))}},this.Oo=t=>{!this.So&&this.No&&(j(t)||(this.zo&&t<=this.zo||this.Ao?this.ao||this.To||this.wo(!1):this.ao?this.Po(!1):this.To=!1))},this.zo=i.visibility,this.bo=i.position,this.fo=i.retainPresentationModeOnSourceChange,this.No=void 0!==this.zo,this.t=t,this.ko=t.Go,this.ro=s,this.co()}},nc=class extends Mt{Xo(){const t=super.Xo();return t===N.INLINE&&this.Jo.oo?N.PICTURE_IN_PICTURE:t}Qo(t){return t===N.PICTURE_IN_PICTURE||super.Qo(t)}Yo(t){this.Ko=this.Zo,t===N.FULLSCREEN||t===N.NATIVE_PICTURE_IN_PICTURE?this.Jo.Vo():this.Jo.Do(),super.Yo(t)}ta(t){super.ta(t),t===N.PICTURE_IN_PICTURE?O(this.sa.ia(t=>this.ea(t))):t===N.FULLSCREEN?this.Jo.Po(!1):this.Jo.Po(!0)}async ea(t){D(t),await Promise.all([this.na(),this.ra.Po()]).catch(Ii),D(t),this.Jo.wo(!this.ha),this.Co(new Ct(this.Zo)),this.ha=!1,this.oa=!1}_i(){this.oa||(this.Jo.oo&&this.aa.ds?this.Yo(N.FULLSCREEN):this.Ko!==N.PICTURE_IN_PICTURE||this.aa.ds?super._i():(this.ha=!0,this.Yo(N.PICTURE_IN_PICTURE)))}_n(){super._n(),this.Jo._n(),this.ua.yn(st.lo,this.ca),this.ua=void 0}constructor(t,i,s,e){super(i,s),this.ua=void 0,this.Jo=void 0,this.Ko=N.INLINE,this.ha=!1,this.ro=()=>{this.Zo===N.PICTURE_IN_PICTURE&&this.Yo(N.INLINE)},this.la=t=>{this.oa||(this.Zo!==N.PICTURE_IN_PICTURE||this.Jo.oo?this.Zo!==N.PICTURE_IN_PICTURE&&this.Jo.oo&&(this.ha=!0,this.Yo(N.PICTURE_IN_PICTURE)):this.Yo(N.INLINE))},this.ca=()=>{this.Xo()!==N.PICTURE_IN_PICTURE&&this.Xo()!==N.INLINE||this.Jo.Do(),this.ua.yn(st.lo,this.ca)},this.ua=t,this.Jo=new ec(t,e.pip,this.ro),this.Jo.jn(St.MODE_CHANGE,this.la),this.ua.jn(st.lo,this.ca)}};Lt();var rc=class extends Y{get da(){return jt.fa(this.mo.el())||this.mo.supportsFullScreen()}get ds(){return this.mo.isFullscreen()||this.va}wo(){this.mo.requestFullscreen()}Po(){this.mo.exitFullscreen(),this.pa.Po()}_n(){this.Ho(),this.mo.off("fullscreenchange",this.ma),this.pa.yn(it.ga,this.ma),this.pa.yn(it.ya,this.Us),this.mo.isFullWindow&&this.mo.exitFullscreen()}constructor(t,i){super(),this.mo=void 0,this.pa=void 0,this.Hs=!1,this.va=!1,this.ba=!1,this.ma=()=>{if(this.ba)return;const t=this.Hs,i=this.ds;t!==i&&(this.Hs=i,this.Co(new bt))},this.wa=()=>{this.va=this.pa.ds,this.ma()},this.ka=()=>{this.ba||(this.mo.isFullWindow&&this.mo.supportsFullScreen()||this.va&&!this.mo.supportsFullScreen())&&(this.ba=!0,this.mo.exitFullscreen(),this.mo.requestFullscreen(),this.ba=!1,this.ma())},this.mo=t,this.pa=i,this.mo.on("fullscreenchange",this.ma),this.pa.jn(it.ga,this.wa),this.pa.jn(it._a,this.ka),this.pa.jn(it.ya,this.Us),this.ma()}};function hc(t){return class extends t{get Bo(){return this.ja}ds(){return this.xa.Xo()===N.FULLSCREEN}Sa(){return function(t,i){const s=g.create(t),e=i.mo;return yt(s,{get controls(){return e.controls()},set controls(t){e.controls(_t(t))},get presentation(){return i.xa.Ta},get presentationMode(){return i.xa.Xo()},set presentationMode(t){const s=H(t);s&&i.xa.Yo(s)},get related(){var t;return null==(t=i.Ca)?void 0:t.Ta},get social(){var t;return null==(t=i.Pa)?void 0:t.Ta},get ui(){return e},get upnext(){var t;return null==(t=i.Ma)?void 0:t.Ta},get visibility(){return i.Bo.Ta}})}(this.Aa,this)}_n(){super._n(),this.xa._n(),this.Ia._n(),this.mo.dispose(),this.ja._n()}Ea(t){this.mo.src(""),super.Ea(t)}constructor(t,i,s){super(i,s),this.Go=void 0,this.mo=void 0,this.Aa=void 0,this.ja=void 0,this.xa=void 0,this.Ia=void 0,this.Go=t,this.ja=new Ai(t),this.Aa=super.Sa(),g.defineProperty(this.Aa,"constructor",{value:Li}),this.mo=Zu(this.Aa,this.Go,s.ui),this.Ia=new rc(this.mo,this.Da),this.xa=new nc(this,this.Ia,this.Na,s),this.xa.jn(St.MODE_CHANGE,this.Us)}}}function oc(t){return(t=t||{}).position=function(t){switch(t){case"top-left":case"top-right":case"bottom-left":case"bottom-right":return t;default:return}}(t.position),t.visibility=function(t){if(Xt(t)&&!j(t))return Hi(t,0,1)}(t.visibility),t.retainPresentationModeOnSourceChange=_t(t.retainPresentationModeOnSourceChange),t}function ac(t){const i=V(t);return i.ui=i.ui||{},void 0!==(null==t?void 0:t.width)&&void 0===i.ui.width&&(i.ui.width=t.width),void 0!==(null==t?void 0:t.height)&&void 0===i.ui.height&&(i.ui.height=t.height),void 0!==(null==t?void 0:t.fluid)&&void 0===i.ui.fluid&&(i.ui.fluid=t.fluid),i.pip=oc(i.pip),i}Lt(),Lt();var uc=$i(()=>{let t=hc(Oi());return t=function(t){let i=t;for(const t of ns)i=t(i);return i}(t),t});function cc(t,i){const s=ac(i),e=h.createElement("div");wi(e),t.appendChild(e);const n=new(uc())(t,e,s);n.Fa=n;let r=n.Ta;return n.Ba(),n.$a(Di),g.defineProperty(r,"constructor",{value:cc}),r=mt(r),ki(n),function(t){for(const i of rs)i(t)}(n),r}ts(Xi.UI),Lt(),Lt(),Lt();var lc="theo-cast-",dc=na.getComponent("Button"),fc=class extends(da(dc)){get Ra(){throw new v("Oa")}get Va(){return this.h.Va}get Ua(){return this.h.Ua}buildCSSClass(){return lc+"button theo-"+this.Ua+"-button theo-controlbar-button "+super.buildCSSClass()}createEl(t,i,s){const e=super.createEl(),n=h.createElement("div");n.className="theo-button-icon-blur";const r=h.createElement("div");return r.className=lc+"svg-container",r.innerHTML=this.Va,e.appendChild(n),e.appendChild(r),e}handleClick(t){var i;if(super.handleClick(t),this.La===Fi.AVAILABLE)null==(i=this.Ra)||i.start();else if(this.La===Fi.CONNECTED||this.La===Fi.CONNECTING){var s;null==(s=this.Ra)||s.stop()}}Ha(t){vi(this.ko,"theo-"+this.Ua+"-"+this.La),this.La=t,l(this.ko,"theo-"+this.Ua+"-"+this.La),this.ne()}ne(){this.za(this.La),this.Re.$e=this.controlText()}za(t){t===Fi.CONNECTED?this.controlText("Stop Casting"):t===Fi.AVAILABLE?this.controlText("Start Casting"):t===Fi.CONNECTING?this.controlText("Connecting"):this.controlText("Unavailable")}constructor(t,i){var s;super(t,i),this.ko=void 0,this.La=void 0,this.Re=void 0,this.Wa=void 0,this.ko=t.el(),this.La=Fi.UNAVAILABLE,this.controlText("Unavailable"),this.Re=new Ba(this,this.controlText()),null==(s=this.Ra)||s.addEventListener("statechange",t=>{const i=t;this.Ha(i.state)}),Pi.ie.tn&&(this.Wa=new ja(this.el())),this.Ha(this.Ra?this.Ra.state:Fi.UNAVAILABLE),this.on(t,"languagechange",this.ne)}},vc=0;function pc(){const t='\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="currentColor">\n <defs>\n <clipPath id="theo-chromecast-rings-mask-'+vc+'">\n <path d="M0-36h44V0H0z"/>\n </clipPath>\n </defs>\n <path class="theo-chromecast-outer" d="M2 10a4 4 0 0 1 4-4h36a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H28v-4h14V10H6v6H2z"/>\n <path class="theo-chromecast-inner" d="M10 14h28v20H26.74A26 26 0 0 0 10 17.26z"/>\n <g class="theo-chromecast-rings" fill="none" stroke="currentColor" stroke-width="4" transform="translate(2 42)" clip-path="url(#theo-chromecast-rings-mask-'+vc+')">\n <circle stroke="none" cx="0" cy="0" r="30" />\n <circle class="theo-chromecast-ring theo-chromecast-ring1" stroke-width="6" cx="0" cy="0" r="3" />\n <circle class="theo-chromecast-ring theo-chromecast-ring2" cx="0" cy="0" r="12" />\n <circle class="theo-chromecast-ring theo-chromecast-ring3" cx="0" cy="0" r="20"/>\n <path class="theo-chromecast-ring theo-chromecast-ring4" stroke-linecap="round" d="M0-20A20 20 0 0 1 20 0" />\n </g>\n </svg>';return vc++,t}na.registerComponent("chromecastButton",class extends fc{get Ra(){var t;return null==(t=this.js.cast)?void 0:t.chromecast}constructor(t,i){super(t,ht(X({},i),{Ua:"chromecast",Va:pc()}))}}),Lt();var mc="theo-chromecast-",gc=na.getComponent("Component"),yc=class t extends(da(gc)){buildCSSClass(){return mc+"overlay "+super.buildCSSClass()}createEl(){const i=super.createEl();l(i,mc+"overlay");const s=na.createEl("div",{className:mc+"status-icon",innerHTML:t.ICON_SVG}),n=na.createEl("div",{className:mc+"status-info"});e(n,"Playing on");const r=na.createEl("div",{className:mc+"status-title"}),h=na.createEl("div",{className:mc+"status"});return this.Sr=r,h.appendChild(s),h.appendChild(n),h.appendChild(r),i.appendChild(h),i}dispose(){var t;null==(t=this.qa)||t.removeEventListener("statechange",this.update),this.qa=void 0,this.js.removeEventListener("play",this.update),super.dispose()}constructor(t,i){var s,n;super(t,i),this.qa=void 0,this.update=()=>{this.qa?(this.Sr&&e(this.Sr,this.qa.receiverName||""),this.qa.state===Fi.CONNECTED?this.show():this.hide()):this.hide()},this.qa=null==(s=this.js.cast)?void 0:s.chromecast,null==(n=this.qa)||n.addEventListener("statechange",this.update),this.js.addEventListener("play",this.update),this.update()}};yc.ICON_SVG='\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" fill="currentColor">\n <path d="M7 24v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H11v1.63c3.96 1.28 7.09 4.41 8.37 8.37H25V13zM7 16v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H9c-1.1 0-2 .9-2 2v3h2v-3h18v14h-7v2h7c1.1 0 2-.9 2-2V11c0-1.1-.9-2-2-2z"/>\n</svg>',na.registerComponent("chromecastOverlay",yc),Lt(),Lt();na.registerComponent("airplayButton",class extends fc{dispose(){var t,i;null==(t=this.js.ads)||t.removeEventListener("adbreakbegin",this.Ga),null==(i=this.js.ads)||i.removeEventListener("adbreakend",this.Xa),this.js.removeEventListener("currentsourcechange",this.Xa),super.dispose()}get Ra(){var t;return null==(t=this.js.cast)?void 0:t.airplay}constructor(t,i){var s,e;super(t,ht(X({},i),{Ua:"airplay",Va:'\n<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">\n <path class="theo-cast-inner" d="M5 7h14v8H5z"/>\n <path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>\n</svg>'})),this.Xa=()=>{this.enable()},this.Ga=t=>{"theoads"!==t.adBreak.integration&&"google-dai"!==t.adBreak.integration&&this.disable()},null==(s=this.js.ads)||s.addEventListener("adbreakbegin",this.Ga),null==(e=this.js.ads)||e.addEventListener("adbreakend",this.Xa),this.js.addEventListener("currentsourcechange",this.Xa)}}),Lt(),Lt(),Lt(),Lt();var bc={Default:"","Monospaced Serif":Zt.Ja,"Proportional Serif":Zt.Qa,"Monospaced Sans-Serif":Zt.Ya,"Proportional Sans-Serif":Zt.Ka},wc={White:"#ffffff",Yellow:"#ffff00",Green:"#00ff00",Cyan:"#00ffff",Blue:"#0000ff",Magenta:"#ff00ff",Red:"#ff0000",Black:"#000000"},kc=[50,75,100,150,200];function _c(t){return{label:t+"%",value:t}}function jc(t){return g.keys(t).map(i=>({label:i,value:t[i]}))}kc.map(function(t){return{label:t+"%",value:t/100+"em"}});var xc=kc.map(function(t){return{label:t+"%",value:t+"%"}}),Sc=[25,50,75,100].map(_c),Tc=[0,25,50,75,100].map(_c),Cc=jc(wc),Pc=jc(bc),Mc=jc({None:"none","Drop Shadow":"dropshadow",Raised:"raised",Depressed:"depressed",Uniform:"uniform"}),Ac=100,Ic="#000000",Ec="#FFFFFF",Dc="#000000";Lt();var Nc=class extends _u{Za(){const t=this.Hr.localize(this.tu);e(this.iu.subMenu.menuHeader.el(),t),this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",e(this.Lr,t);const i=h.createElement("span");return i.className="theo-primary-color theo-settings-control-menu-item-value",l(this.iu.el(),"theo-subtitle-options-menu-item"),this.iu.el().appendChild(this.Lr),this.iu.el().appendChild(i),i}su(t){const i=this.Nr(t);i&&this.eu(i)}nu(){return this.Pr}$r(t){this.ru(t.Fr)}eu(t){for(const t of this.Er.menuItems)t.selected(!1);t?(t.selected(!0),this.hu(t.Fr.label)):this.hu("Custom")}hu(t){this.ou=t,e(this.au,this.Hr.localize(t)),this.iu.parentMenu.ue()}Br(t){const i=super.Br(t);return l(i.el(),"theo-subtitle-options-menu-item"),this.Vr(i),i}Vr(t){const i=this.Hr.localize(t.Fr.label);e(t.el(),i);const s=this.Hr.localize("Set "+this.tu+" to ")+i;t.el().setAttribute("aria-label",s)}Le(){this.Hr.off("languagechange",this.ne),super.Le()}constructor(t,i,s,n){super(t.subMenu),this.iu=void 0,this.Hr=void 0,this.tu=void 0,this.Lr=void 0,this.au=void 0,this.ou=void 0,this.ru=void 0,this.ne=void 0,this.iu=t,this.Hr=n,this.ou="",this.ne=()=>{const t=this.Hr.localize(this.tu);e(this.iu.subMenu.menuHeader.el(),t),e(this.Lr,t),this.hu(this.ou);for(const t of this.Dr)this.Vr(t)},this.tu=i,this.ru=s.uu,this.au=this.Za(),this.Pr=s.cu,this.Hr.on("languagechange",this.ne)}};Lt();var Fc=class t{static lu(t,i,s,e){if(void 0===t&&void 0===i)return;return fi(void 0===t?s:t,void 0===i?e:i)}constructor(i){this.du=void 0,this.fu=void 0,this.vu=void 0,this.pu=void 0,this.mu=void 0,this.gu=void 0,this.yu=void 0,this.bu=void 0,this.wu=void 0,this.ku=void 0,this._u=void 0,this.ju=void 0,this.xu=void 0,this.Su=void 0,this.Tu=void 0,this.Cu=void 0,this.du=i,this.bu=t=>{this.du.fontFamily=t.value},this.wu=t=>{this.du.fontSize=t.value},this.ku=i=>{this.fu=i.value,this.du.fontColor=t.lu(this.vu,this.fu,Ec,Ac)},this._u=i=>{this.vu=i.value,this.du.fontColor=t.lu(this.vu,this.fu,Ec,Ac)},this.ju=i=>{this.mu=i.value,this.du.backgroundColor=t.lu(this.mu,this.pu,Ic,Ac)},this.xu=i=>{this.pu=i.value,this.du.backgroundColor=t.lu(this.mu,this.pu,Ic,Ac)},this.Su=i=>{this.yu=i.value,this.du.windowColor=t.lu(this.yu,this.gu,Dc,Ac)},this.Tu=i=>{this.gu=i.value,this.du.windowColor=t.lu(this.yu,this.gu,Dc,Ac)},this.Cu=t=>{this.du.edgeStyle=t.value}}};Lt();var Bc=class{Pu(t,i){const s=this.Mu(t,i.nu());s&&i.su(s)}Mu(t,i){return Ki(i,i=>i.value===t)}Au(t,i,s){let e,n;if(void 0===t)e=this.Mu(void 0,i.nu()),n=this.Mu(void 0,s.nu());else if(t){const r=function(t){let i=li(t);i||(i=li(t.slice(0,t.length-1).replace("rgb","rgba")+",1)"));i||(i=si(ri(t),1));if(!i){const s=t.charAt(0).toUpperCase()+t.toLowerCase().slice(1);i=si(ri(wc[s]),1)}return i}(t);if(r){const t=ai(r),h=100*r.Iu;e=this.Mu(t,i.nu()),n=this.Mu(h,s.nu())}}e&&i.su(e),n&&s.su(n)}constructor(t,i){this.du=void 0,this.Eu=void 0,this.Du=void 0,this.du=t,this.Eu=i,this.Du=()=>{const t=this.du.fontFamily;this.Pu(t,this.Eu["Font family"]);const i=this.du.fontColor;this.Au(i,this.Eu["Font color"],this.Eu["Font opacity"]);const s=this.du.fontSize;this.Pu(s,this.Eu["Font size"]);const e=this.du.backgroundColor;this.Au(e,this.Eu["Background color"],this.Eu["Background opacity"]);const n=this.du.windowColor;this.Au(n,this.Eu["Window color"],this.Eu["Window opacity"]);const r=this.du.edgeStyle;this.Pu(r,this.Eu["Character edge style"])},this.du.addEventListener("change",this.Du),this.Du()}};var $c=class extends _u{Nu(){return{"Font family":{cu:Rc(Pc),uu:this.Fu.bu},"Font color":{cu:Rc(Cc),uu:this.Fu._u},"Font opacity":{cu:Rc(Sc),uu:this.Fu.ku},"Font size":{cu:Rc(xc),uu:this.Fu.wu},"Background color":{cu:Rc(Cc),uu:this.Fu.ju},"Background opacity":{cu:Rc(Tc),uu:this.Fu.xu},"Window color":{cu:Rc(Cc),uu:this.Fu.Su},"Window opacity":{cu:Rc(Tc),uu:this.Fu.Tu},"Character edge style":{cu:Rc(Mc),uu:this.Fu.Cu}}}Bu(){this.Lr=h.createElement("span"),this.Lr.className="theo-settings-control-menu-item-title",this.$u=h.createElement("span"),this.$u.className="theo-primary-color theo-settings-control-menu-item-value",this.Yr.el().appendChild(this.Lr),this.Yr.el().appendChild(this.$u),this.ne()}Br(t){const i=this.Er.addSubMenuItem();return i.Fr=t,this.Eu[t]=new Nc(i,t,this.Ru[t],this.Hr),i}Vr(t){}$r(t){}Le(){this.Hr.off("languagechange",this.ne),this.Ou.removeEventListener(["addtrack","removetrack"],this.Vu),super.Le()}constructor(t,i,s,n){super(t.subMenu),this.Yr=void 0,this.Ou=void 0,this.Hr=void 0,this.Fu=void 0,this.Uu=void 0,this.Ru=void 0,this.Eu=void 0,this.Lr=void 0,this.$u=void 0,this.Vu=void 0,this.ne=void 0,this.Yr=t,this.Ou=i,this.Hr=n,this.Eu={},this.Vu=()=>{this.Ou.some(t=>Vt(t.kind))?this.Yr.show():this.Yr.hide()},this.ne=()=>{e(this.Er.menuHeader.el(),this.Hr.localize("Subtitle Options")),e(this.Lr,this.Hr.localize("Subtitle")),e(this.$u,this.Hr.localize("Options")),this.Yr.el().setAttribute("aria-label",this.Hr.localize("Open the subtitle options menu"))},this.Fu=new Fc(s),this.Ru=this.Nu(),this.Pr=g.keys(this.Ru),this.Bu(),this.Uu=new Bc(s,this.Eu),this.Hr.on("languagechange",this.ne),this.Ou.addEventListener(["addtrack","removetrack"],this.Vu),this.Vu()}};function Rc(t){const i=[{label:"Default",value:void 0}];for(const s of t)"Default"!==s.label&&i.push(s);return i}!function(t){rs.push(t)}(function(t){const i=t.mo.controlBar.getChild("SettingsButton").menu,s=i.addSubMenuItem({name:"TextTrackOptionsMenuItem"}),e=new $c(s,t.nt.Ta,t.Lu.Ta,t.mo);t.mo.on("dispose",()=>{i.removeMenuItem(s),s.dispose(),e.Le(),i.dispose()})}),ts(Xi.TEXTTRACKSTYLE_UI),Lt(),Lt(),Lt(),Lt(),Lt(),Lt();var Oc=.02,Vc=class{Hu(t){const i=t-this.Wu.zu-20,s=t-this.Wu.zu+20;if(0===this.Wu.bo)return;const e=this.Wu.t.currentProgramDateTime.valueOf();e>s?this.qu(this.Gu):e<i?this.qu(this.Xu):this.qu(this.Ju)}Qu(t){const i=t-this.Wu.zu/1e3-Oc,s=t-this.Wu.zu/1e3+Oc;if(0===this.Wu.bo)return;const e=this.Wu.t.currentTime;e>s?this.qu(this.Gu):e<i?this.qu(this.Xu):this.qu(this.Ju)}Yu(){this.Ju=this.ua.Ku,this.Gu=this.ua.Ku-.05,this.Xu=this.ua.Ku+.05}qu(t){const i=this.Wu.t;if(i.playbackRate!==t&&0!==i.playbackRate){t>=.2&&t<=2.05?i.playbackRate=t:this.ua.Zu(this.Wu)}}tc(){this.ua.yn(st.sc,this.ec),this.ua.yn(st.nc,this.rc)}constructor(t,i){this.ua=void 0,this.Wu=void 0,this.Ju=1,this.Gu=1.05,this.Xu=.95,this.ec=()=>{this.Yu()},this.rc=()=>{if(!this.ua.hc)return;const t=this.ua.hc.zu,i=this.ua.oc,s=this.ua.ac;null!==s?this.Hu(s.valueOf()+t):this.Qu(i+t/1e3)},this.Wu=t,this.ua=i,this.ua.jn(st.sc,this.ec),this.ua.jn(st.nc,this.rc)}},Uc=class{get t(){return this.ua}get Ta(){var t;return null!==(t=this.uc)&&void 0!==t?t:this.uc=function(t){return{get player(){return t.t},get label(){return t.Mh},get position(){return t.bo},set position(i){t.bo=i},get muted(){return t.cc},set muted(i){t.cc=i},get canResize(){return t.lc},get x(){return t.Jh},set x(i){t.Jh=i},get y(){return t.Qh},set y(i){t.Qh=i},get width(){return t.Ci},set width(i){t.Ci=i},get height(){return t.Pi},set height(i){t.Pi=i},get enabled(){return t.Rt},set enabled(i){t.Rt=i},get offset(){return t.zu},set offset(i){t.zu=i},remove(){t.dc()}}}(this)}get Mh(){return this.fc}get bo(){return this.mc.vc.indexOf(this)}set bo(t){this.mc.gc(this,t)}get cc(){return this.ua.muted}set cc(t){this.Rt&&(this.mc.yc=this,this.bc(t))}get lc(){return 0!==this.bo&&this.mc.wc===el.OVERLAY}get Jh(){return this.kc}set Jh(t){this.lc&&(this._c||(this._c=!0),this.kc=t>1-this.Ci?1-this.Ci:w.max(t,0),this.t.element.style.setProperty("left",100*this.kc+"%"))}get Qh(){return this.jc}set Qh(t){this.lc&&(this._c||(this._c=!0),this.jc=t>1-this.Pi?1-this.Pi:w.max(t,0),this.t.element.style.setProperty("top",100*this.jc+"%"))}get Ci(){return this.xc}set Ci(t){this.lc&&this.Sc(t)}get Pi(){return this.Tc}set Pi(t){this.lc&&this.Sc(t)}get Rt(){return this.Xe}set Rt(t){t!==this.Xe&&0!==this.bo&&(t?(O(this.mc.Zu(this)),this.mc.Cc(this),this.t.element.style.setProperty("display","block")):(this.t.pause(),this.t.element.style.setProperty("display","none")),this.Xe=t,this.mc.Pc(this))}get Mc(){return this._c}set Mc(t){this._c=t}get Ac(){return this.Ic}set Ac(t){this.Ic=t}get zu(){return this.Ec}set zu(t){this.Ec=xt(t),this.Dc(this.mc.oc,this.mc.ac)}Nc(t,i,s,e,n){!this._c&&n&&(this._c=!0),this.kc=t,this.jc=i,this.xc=s,this.Tc=e}bc(t){this.ua.muted=t}dc(){0!==this.bo&&this.mc.Fc(this)}Bc(){this.t.element.style.setProperty("top",100*this.jc+"%"),this.t.element.style.setProperty("left",100*this.kc+"%"),this.t.element.style.setProperty("width",100*this.xc+"%")}Sc(t){const i=this.kc+this.xc,s=w.min(t,i),e=.9-this.jc,n=w.min(t,e),r=w.max(w.min(s,n),.1),h=this.xc-r;this.xc=r,this.Tc=r,this.Jh+=h,this.t.element.style.setProperty("width",100*r+"%")}Dc(t,i){if(null!==i){const t=i.valueOf()-this.zu;this.ua.currentProgramDateTime=new Date(t)}else this.ua.currentTime=t-this.zu/1e3}$c(t){const i=this.t.element.getElementsByClassName(Yc)[0],s=t?Zc:Kc;vi(i,t?Kc:Zc),l(i,s)}tc(){this.Rc.tc(),this.ua.element.remove(),this.ua.destroy()}constructor(t,i,s,e){this.fc=void 0,this.ua=void 0,this.mc=void 0,this.Rc=void 0,this.Ec=void 0,this.Xe=!0,this._c=!1,this.Ic=0,this.uc=void 0,this.xc=void 0,this.Tc=void 0,this.kc=void 0,this.jc=void 0,this.fc=t,this.ua=i,this.mc=s,this.Rc=new Vc(this,s),this.Ec=null!=e?e:0,this.xc=.2,this.Tc=.2,this.kc=.76,this.jc=0}};Lt();var Lc=class{get multiViewPlayer(){return this.mc}get abr(){}get audioTracks(){return this.Oc}get autoplay(){return this.mc.autoplay}set autoplay(t){this.mc.autoplay=t}get buffered(){return this.mc.buffered}get canvas(){}get clip(){return this.Vc.Ta}get currentProgramDateTime(){return null}get currentTime(){return this.mc.currentTime}set currentTime(t){this.mc.currentTime=t}get duration(){return this.mc.duration}get element(){return this.zs}get ended(){return this.mc.ended}get error(){}get errorObject(){return this.mc.errorObject}get latency(){}get loop(){return!1}get metrics(){}get millicast(){}get muted(){return this.mc.muted}set muted(t){this.mc.muted=t}get network(){}get paused(){return this.mc.paused}get playbackRate(){return this.mc.playbackRate}set playbackRate(t){this.mc.playbackRate=t}get played(){return this.mc.played}get poster(){return""}get preload(){return""}get presentation(){}get readyState(){return this.mc.readyState}get seekable(){return this.mc.seekable}get seeking(){return this.mc.seeking}get source(){}get src(){return"dummySource"}get textTrackStyle(){return this.Uc}get textTracks(){return this.Lc}addTextTrack(t){throw v("Not implemented")}get uid(){return 0}get videoHeight(){return 0}get videoTracks(){return this.Oc}get videoWidth(){return 0}get volume(){return this.mc.volume}set volume(t){this.mc.volume=t}get version(){return"11.13.0"}get views(){return this.mc.views}get visibility(){}get layout(){return this.mc.layout}set layout(t){this.mc.layout=t}play(){this.mc.play()}pause(){this.mc.pause()}stop(){this.mc.stop()}destroy(){this.mc.destroy()}prepareWithUserAction(){this.mc.prepareWithUserAction()}addEventListener(t,i){this.Hc.jn(t,i)}removeEventListener(t,i){this.Hc.yn(t,i)}setSource(t){}constructor(t,i){this.mc=void 0,this.Hc=new Y,this.zs=void 0,this.Vc=void 0,this.Oc=void 0,this.Lc=void 0,this.Uc=void 0,this.mc=t,this.zs=i,this.Vc=new Ft,this.Oc=(new J).Ta,this.Lc=(new K).Ta,this.Uc=(new Ut).Ta,this.mc.addEventListener(["play","pause","seeking","seeked","timeupdate","ended","playing","waiting","sourcechange","readystatechange","loadedmetadata","loadeddata","canplay","canplaythrough","loadstart","progress","durationchange","volumechange","ratechange","error"],this.Hc.Us)}};Lt();var Hc=class extends tt{constructor(t){super(sl.zc),this.view=void 0,this.view=t}};Lt();var zc=class extends tt{constructor(t,i){super(sl.VIEW_POSITION_CHANGE),this.oldPosition=void 0,this.newPosition=void 0,this.oldPosition=t,this.newPosition=i}};Lt();var Wc=class extends tt{constructor(t){super(sl.Wc),this.view=void 0,this.view=t}};Lt();var qc=class extends tt{constructor(t){super(sl.VIEW_CHANGE),this.view=void 0,this.view=t}};Lt();var Gc=class extends tt{constructor(t){super(sl.qc),this.layout=void 0,this.layout=t}};Lt();var Xc=class extends Y{get oc(){return this.ua.oc}get Gc(){return this.ua.Gc}get lt(){return this.ua.Xc}get Jc(){return this.ua.Jc}get Qc(){return this.ua.Qc}get Yc(){return this.ua.Yc}get Kc(){return!1}get Zc(){return!1}tc(){this.Ho()}constructor(t){super(),this.ua=void 0,this.tl=t=>{this.Us(new Bi(t.source))},this.il=t=>{this.Us(new zi(t.currentTime))},this.sl=t=>{this.Us(new Ui(t.currentTime))},this.nl=t=>{this.Us(new ss(t.currentTime))},this.rl=t=>{this.Us(new P(t.currentTime))},this.hl=t=>{this.Us(new vt(t.currentTime,t.currentProgramDateTime))},this.ol=t=>{this.Us(new Zi(t.currentTime))},this.al=t=>{this.Us(new di(t.currentTime))},this.cl=t=>{this.Us(new ni(t.currentTime))},this.ll=t=>{this.Us(new qt(t.currentTime,t.readyState))},this.dl=t=>{this.Us(new Kt(t.currentTime,this.Qc))},this.fl=t=>{this.Us(new ii(t.currentTime,this.Qc))},this.vl=t=>{this.Us(new oi(t.currentTime,this.Qc))},this.pl=t=>{this.Us(new ci(t.currentTime,this.Qc))},this.ml=()=>{this.Us(new Gt)},this.gl=t=>{this.Us(new zt(t.currentTime))},this.yl=t=>{this.Us(new Gi(t.duration))},this.bl=t=>{this.Us(new I(this.oc,t.volume))},this.wl=t=>{this.Us(new Qi(this.oc,t.playbackRate))},this.kl=t=>{this.Us(new z(t.errorObject))},this._l=()=>{this.Us(new bt)},this.ua=t,this.ua.jn("sourcechange",this.tl),this.ua.jn("play",this.il),this.ua.jn("pause",this.sl),this.ua.jn("seeking",this.nl),this.ua.jn("seeked",this.rl),this.ua.jn("timeupdate",this.hl),this.ua.jn("ended",this.ol),this.ua.jn("playing",this.al),this.ua.jn("waiting",this.cl),this.ua.jn("readystatechange",this.ll),this.ua.jn("loadedmetadata",this.dl),this.ua.jn("loadeddata",this.fl),this.ua.jn("canplay",this.vl),this.ua.jn("canplaythrough",this.pl),this.ua.jn("loadstart",this.ml),this.ua.jn("progress",this.gl),this.ua.jn("durationchange",this.yl),this.ua.jn("volumechange",this.bl),this.ua.jn("ratechange",this.wl),this.ua.jn("error",this.kl),this.ua.jn("fullscreenchange",this._l)}};Lt();var Jc=class{async jl(){const t=this.ua;if(!t.xl||!t.Jc)return;const i=this.Sl.mutedAutoplay;switch(await this.Cl.Tl(t.cc)){case"allowed":t.cc||t.Pl(),t.Ml();break;case"allowed-muted":(t.cc||i===$.ALL)&&(t.cc=!0,t.Ml())}}_n(){this.Cl._n(),this.bn._n()}constructor(t,i,s){if(this.ua=void 0,this.Sl=void 0,this.bn=void 0,this.Uc=void 0,this.Cl=void 0,this.ua=t,this.Sl=s,this.Uc=new Ut,this.bn=new gt(i),s.overrideAutoplayCapability)this.Cl=new It(s.overrideAutoplayCapability);else{const t=new xi(this.bn,this.Uc,s,1,[Tt.Al]);this.Cl=Dt(t)}}},Qc=[Ht.Il,Ht.El,Ht.Dl,Ht.Nl],Yc="theo-switch-audio-button",Kc="vjs-icon-volume-mute",Zc="vjs-icon-volume-high",tl="theo-main-view",il="theo-layout-",sl=function(t){return t.zc="addview",t.Wc="removeview",t.VIEW_CHANGE="viewchange",t.VIEW_POSITION_CHANGE="viewpositionchange",t.qc="layoutchange",t}({}),el=function(t){return t.GALLERY="gallery",t.OVERLAY="overlay",t.SPOTLIGHT="spotlight",t}({}),nl=class extends Y{get Ta(){var t;return null!==(t=this.uc)&&void 0!==t?t:this.uc=function(t){return{load:(i,s,e,n)=>t.Un(i,s,e,n),get views(){return t.vc.map(t=>t.Ta)},get mainVideoView(){var i;return null==(i=t.hc)?void 0:i.Ta},get mainAudioView(){var i;return null==(i=t.yc)?void 0:i.Ta},get ui(){return t.mo},get layout(){return t.wc},set layout(i){t.wc=i},get buffered(){return t.Fl},get currentTime(){return t.oc},set currentTime(i){t.oc=i},get autoplay(){return t.xl},set autoplay(i){t.xl=i},get duration(){return t.ct},get ended(){return t.Gc},get errorObject(){return t.Xc},get muted(){return t.cc},set muted(i){t.cc=i},get paused(){return t.Jc},get playbackRate(){return t.Ku},set playbackRate(i){t.Ku=i},get played(){return t.Bl},get readyState(){return t.Qc},get seekable(){return t.$l},get seeking(){return t.Yc},get volume(){return t.Rl},set volume(i){t.Rl=i},get version(){return"11.13.0"},play(){t.Ml()},pause(){t.Ol()},stop(){t.Vl()},destroy(){t.tc(),t=null},requestFullscreen(i){t.Ul(i)},exitFullscreen(){t.na()},prepareWithUserAction(){t.Pl()},addEventListener(i,s){t.jn(i,s)},removeEventListener(i,s){t.yn(i,s)}}}(this)}get mo(){return this.Ll}get vc(){return this.Hl}get hc(){return this.zl}get yc(){var t;return null!==(t=this.Wl)&&void 0!==t?t:this.zl}set yc(t){if(this.Wl===t)return;const i=this.yc,s=null!=t?t:this.hc;i.t.removeEventListener(st.ql,this.Gl),i.$c(!1),i.cc||(i.bc(!0),s.bc(!1)),s.t.addEventListener(st.ql,this.Gl),s.$c(!0),this.Wl=t}get wc(){return this.Xl}set wc(t){if(t!==this.Xl){if("overlay"===this.wc)for(const t of this.vc)t.t.element.style.setProperty("left","auto"),t.t.element.style.setProperty("top","auto"),t.t.element.style.removeProperty("z-index");vi(this.zs,il+this.Xl),this.Xl=t,l(this.zs,il+this.Xl),this.Bc(),this.Co(new Gc(t))}}get Fl(){if(0===this.vc.length)return ji.Jl()._s();return this.Ql().reduce((t,i)=>t.An(ji.Pn(i.t.buffered)),ji.Yl())._s()}get oc(){return this.zl&&this.Kl?this.zl.t.currentTime+this.zl.zu/1e3:0}set oc(t){this.Zl();const i=this.Ql();let s=null;if(null!==this.ac){s=this.ac;const i=t-this.oc;s.setSeconds(s.getSeconds()+i)}for(const e of i)e.Dc(t,s)}get ac(){if(!this.zl)return null;return this.vc.every(t=>null!==t.t.currentProgramDateTime)?new Date(this.zl.t.currentProgramDateTime.valueOf()+this.zl.zu):null}get xl(){return this.td}set xl(t){this.td=t,this.sd.jl()}get ct(){if(0===this.vc.length)return NaN;let t=1/0;for(const i of this.Ql())t=w.min(i.t.duration,t);return t}get Gc(){return this.vc.some(t=>t.t.ended)}get lt(){return this.Xc}get Xc(){if(this.ed)return this.ed;for(const t of this.vc){const i=t.t.errorObject;if(void 0!==i)return i}}get cc(){var t,i;return null!==(t=null==(i=this.yc)?void 0:i.cc)&&void 0!==t&&t}set cc(t){this.yc&&this.yc.bc(t),this.Gl()}get Jc(){if(!this.vc.length)return!0;return this.Ql().some(t=>t.t.paused)}get Ku(){var t,i,s;return null!==(t=null!==(i=this.nd)&&void 0!==i?i:null==(s=this.zl)?void 0:s.t.playbackRate)&&void 0!==t?t:1}set Ku(t){if(void 0!==this.nd)this.nd=t;else for(const i of this.vc)i.t.playbackRate=t;this.rd()}get Bl(){return this.vc.reduce((t,i)=>t.od(ji.Pn(i.t.played)),ji.Jl())._s()}get Qc(){if(0===this.vc.length)return Jt.ad;let t=Jt.ud;for(const i of this.Ql())i.t.readyState<t&&(t=i.t.readyState);return t}get $l(){if(0===this.vc.length)return ji.Jl()._s();return this.Ql().reduce((t,i)=>t.An(ji.Pn(i.t.seekable)),ji.Yl())._s()}get Yc(){return this.vc.some(t=>t.t.seeking)}get Rl(){var t,i;return null!==(t=null==(i=this.yc)?void 0:i.t.volume)&&void 0!==t?t:1}set Rl(t){for(const i of this.vc)i.t.volume=t;this.Gl()}Un(t,i,s,e){if(this.ld)throw this.ed;const n=Ki(this.vc,i=>i.Mh===t);if(n)return n.Ta;const r=xt(e),h=j(r)?void 0:r;return this.dd(t,i,s,h)}Ml(){if(!this.zl||!this.Jc)return;this.Zl();const t=this.Ql();for(const i of t)i.t.play()}Ol(){const t=this.Ql();for(const i of t)i.t.pause()}Vl(){for(let t=this.vc.length-1;t>=0;t--)this.Fc(this.vc[t]);this.zl=void 0,this.Wl=void 0,this.ed=void 0,this.fd&&(this.fd.vd(),this.fd=void 0),this.pd=!0,this.md=!1,this.gd=!1,this.yd=-1,this.bd=Jt.ad,this.wd=!1,this.nd=void 0,this.kd=!1,this._d=-1,this.jd=!1,this.xd=-1,this.Kl=!1,this.Sd.ur(),this.Co(new Bi(void 0))}tc(){for(let t=this.vc.length-1;t>=0;t--)this.Fc(this.vc[t]);this.Ho(),this.Sd._n(),this.Td.tc(),this.Cd.tc(),this.sd._n(),this.mo.dispose()}Ul(t){this.Co(new bt),this.zs.requestFullscreen(t).catch(Ii)}na(){this.Co(new bt),h.exitFullscreen().catch(Ii)}Pl(){for(const t of this.vc)t.t.prepareWithUserAction()}dd(t,i,s,e){const n=h.createElement("div");l(n,"theo-view"),this.zs.appendChild(n);const r=new(Oi())(n,this.Sl).Ta;r.source=i;const o=new Uc(t,r,this,e);if(s){const t=h.createElement("div");t.className="theo-view-description";const i=h.createElement("span");i.textContent=s,t.appendChild(i),n.appendChild(t),o.t.addEventListener("dimensionchange",()=>{this.Pd(t)})}return this.Md(o),this.vc.push(o),1===this.vc.length?(this.zl=o,this.Ad(this.zl),l(this.zl.t.element,tl)):(this.Id(r),0!==this.oc&&O(this.Zu(o,!0))),this.Bc(),this.Co(new Hc(o.Ta)),o.Ta}Ql(){return this.vc.filter(t=>t.Rt)}Ed(){return this.vc.filter(t=>t.Rt&&t!==this.zl)}Id(t){t.volume=this.zl.t.volume,t.muted=!0,t.playbackRate=this.zl.t.playbackRate}Md(t){t.Ac=this.vc.length;const i=t.t.element;i.addEventListener("dblclick",()=>{this.Dd(t)}),i.addEventListener("touchend",i=>{this.Nd>=i.timeStamp?(i.preventDefault(),this.Dd(t),this.Nd=0):this.Nd=i.timeStamp+500});const s=h.createElement("div"),e=0===this.vc.length?Zc:Kc;s.className="theo-primary-color "+Yc+" "+e,s.addEventListener("click",()=>{this.yc=t}),s.addEventListener("touchend",()=>{this.yc=t}),i.appendChild(s);const n=h.createElement("div");n.className="theo-primary-color theo-disable-button vjs-icon-close",n.addEventListener("click",()=>{t.Rt=!1}),n.addEventListener("touchend",()=>{t.Rt=!1}),i.appendChild(n),this.Fd(t,i),this.Bd(t),this.$d(t)}Fd(t,i){const s=h.createElement("div");let e=0;const n=i=>{if(this.Rd=!0,this.Cc(t),i.preventDefault(),"touchstart"===i.type){e=i.changedTouches[0].clientX,h.addEventListener("touchmove",r),h.addEventListener("touchend",o),h.addEventListener("touchcancel",o)}else{e=i.x,h.addEventListener("mousemove",r),h.addEventListener("mouseup",o)}},r=i=>{let s;if("touchmove"===i.type){s=i.changedTouches[0].clientX}else{s=i.x}const n=e-s,r=t.t.element.parentElement.clientWidth,h=(t.t.element.clientWidth+n)/r;t.Ci=h,t.Pi=h,e=s},o=t=>{this.Rd=!1,"mouseup"===t.type?(h.removeEventListener("mousemove",r),h.removeEventListener("mouseup",o)):(h.removeEventListener("touchmove",r),h.removeEventListener("touchend",o),h.removeEventListener("touchcancel",o))};s.addEventListener("mousedown",n),s.addEventListener("touchstart",n),s.className="theo-resize-button theo-primary-color vjs-icon-resize-handle-sw",i.appendChild(s)}Pd(t){const i=t.parentElement.clientWidth/100,s=w.min(40,5.23*i);t.style.fontSize=s+"px"}Bd(t){const i=t.t.element,s=i.parentElement;let e={x:0,y:0};const n=i=>{if(!this.Rd&&t.lc)if(this.Cc(t),i.preventDefault(),"touchstart"===i.type){const t=i;e.x=t.changedTouches[0].clientX,e.y=t.changedTouches[0].clientY,h.addEventListener("touchmove",r),h.addEventListener("touchend",o),h.addEventListener("touchcancel",o)}else{const t=i;e.x=t.x,e.y=t.y,h.addEventListener("mousemove",r),h.addEventListener("mouseup",o)}},r=n=>{let r;if("touchmove"===n.type){const t=n;r={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}}else{const t=n;r={x:t.x,y:t.y}}const h=r.x-e.x,o=r.y-e.y,a=i.offsetLeft,u=s.clientWidth;t.Jh=(a+h)/u;const c=s.offsetHeight,l=i.offsetTop;t.Qh=(l+o)/c,e=r},o=t=>{"mouseup"===t.type?(h.removeEventListener("mouseup",o),h.removeEventListener("mousemove",r)):(h.removeEventListener("touchmove",r),h.removeEventListener("touchend",o),h.removeEventListener("touchcancel",o))};i.addEventListener("mousedown",n),i.addEventListener("touchstart",n)}Cc(t){for(const i of this.vc)i.Ac>t.Ac&&(i.Ac-=1,i.t.element.style.setProperty("z-index",""+i.Ac));t.Ac=this.vc.length,t.t.element.style.setProperty("z-index",""+t.Ac)}Zl(){if(void 0!==this.nd)return;this.nd=this.Ku;const t=this.Ql();for(const i of t)i.t.playbackRate=0}Od(){if(void 0===this.nd)return;if(this.Yc||this.Qc<Jt.Vd){if(this.zl&&!this.Kl){this.Kl=!0;for(const t of this.Ed())this.zl.zu!==t.zu&&t.Dc(this.oc,this.ac)}return}const t=this.Ql();for(const i of t)i.t.playbackRate=this.nd;this.nd=void 0,this.Kl=!0}Pc(t){t.Rt||t!==this.Wl||(this.yc=void 0),this.Co(new qc(t.Ta)),this.Bc()}async Zu(t,i){void 0===i&&(i=!1),this.Zl();const s=t.t;i&&(this.fd=new nt,s.addEventListener(st.vo,this.Is),await this.fd.Ud,s.removeEventListener(st.vo,this.Is)),s.readyState===Jt.ad&&(this.kd=!0,s.play()),this.Jc?s.pause():s.play(),t.Dc(this.oc,this.ac)}Bc(){const t=this.Ql();if(!t.length)return;let i=0;switch(this.wc){case"spotlight":{t.length>1?this.zs.style.gridTemplateColumns="80% 20%":this.zs.style.gridTemplateColumns="100%";let s=1/0;for(const e of t)if(i>=s+1)e.Rt=!1;else if(e.t.element.style.setProperty("width","100%"),i++,2===i){const i=e.t.element.clientHeight,n=e.t.element.parentElement.clientHeight,r=w.floor(n/i);s=w.min(t.length-1,r),this.zs.style.gridTemplateRows="repeat("+s+", 1fr)"}break}case"overlay":{let s=0;for(i=1;i<t.length;i++){const e=t[i];if(i>=5)e.Rt=!1;else{if(!e.Mc){const t=.04+.24*s;e.Nc(e.Jh,t,e.Ci,e.Pi,!1),this.Cc(e),s++}e.t.element.style.setProperty("z-index",""+e.Ac),e.Bc()}}break}case"gallery":{const s=t.length,e=w.ceil(w.sqrt(s));for(const s of t)i>=16?s.Rt=!1:(s.t.element.style.setProperty("width",100/e+"%"),i++);break}}}gc(t,i){const s=i>=0?w.min(w.floor(i),this.vc.length-1):0,e=t.bo,n=w.min(e,s),r=w.max(e,s),h=0===n;if(!(!this.vc[n].Rt||!this.vc[r].Rt)||!h){if("overlay"===this.wc){const t=this.vc[r],i=this.vc[n],s=t.Jh,e=t.Qh,h=t.Ci,o=t.Pi,a=i.Mc||t.Mc;t.Nc(i.Jh,i.Qh,i.Ci,i.Pi,a),[this.vc[n],this.vc[r]]=[this.vc[r],this.vc[n]],i.Nc(s,e,h,o,a)}else[this.vc[n],this.vc[r]]=[this.vc[r],this.vc[n]];h&&this.Ld(this.vc[0]),this.Co(new zc(e,s))}}Fc(t){t===this.Wl&&(this.yc=void 0),t.tc(),is(this.vc,t),this.Bc(),this.Co(new Wc(t.Ta))}Dd(t){this.Gc||0===this.Bl.length||this.zl===t||"gallery"===this.Xl||this.gc(t,0)}Ld(t,i){void 0===i&&(i=!1);let s=!1;const e=this.zl;this.zl=t,t.Mc=!1,this.Hd(e),vi(e.t.element,tl),this.Wl||(s=e.cc,e.bc(!0),e.$c(!1),t.$c(!0),i&&!s?this.Co(new I(this.oc,0)):t.bc(s)),this.Cc(e),l(this.zl.t.element,tl),this.Ad(this.zl),"overlay"===this.wc&&this.Bc()}$d(t){t.t.addEventListener(st.zd,this.Wd),t.t.addEventListener(st.qd,this.Nh),t.t.addEventListener(st.lo,this.Gd),t.t.addEventListener(st.Xd,this.Jd),t.t.addEventListener(st.Qd,this.Ye),t.t.addEventListener(st.Yd,this.Kd),t.t.addEventListener(st.Zd,this.tf),t.t.addEventListener(Ht.if,this.sf),t.t.addEventListener(Nt.ya,this.As)}Ad(t){t.t.addEventListener(st.ef,this.Us),t.t.addEventListener(st.sc,this.rd),t.t.addEventListener(st.nc,this.nf),this.Wl||t.t.addEventListener(st.ql,this.Gl)}Hd(t){t.t.removeEventListener(st.ef,this.Us),t.t.removeEventListener(st.sc,this.rd),t.t.removeEventListener(st.nc,this.nf),this.Wl||t.t.removeEventListener(st.ql,this.Gl)}constructor(t,i,s){super(),this.rf=void 0,this.zs=void 0,this.Sl=void 0,this.Ll=void 0,this.Hl=[],this.zl=void 0,this.Wl=void 0,this.Xl="gallery",this.Rd=!1,this.ed=void 0,this.fd=void 0,this.uc=void 0,this.hf=void 0,this.Cd=void 0,this.af=void 0,this.ld=!1,this.pd=!0,this.md=!1,this.gd=!1,this.yd=-1,this.bd=Jt.ad,this.wd=!1,this.Nd=0,this.nd=void 0,this.kd=!1,this.td=!1,this._d=-1,this.jd=!1,this.xd=-1,this.Kl=!1,this.Td=void 0,this.Sd=void 0,this.sd=void 0,this.uf=t=>{this.Od(),B(()=>this.Us(t))},this.cf=t=>{this.Zl(),this.Us(t)},this.Is=()=>{var t;null==(t=this.fd)||t.lf(),this.fd=void 0},this.rd=()=>{const t=this.Ku;this.xd!==t&&(this.xd=t,this.Us(new Qi(this.oc,t)))},this.Gl=()=>{const t=this.Rl,i=this.cc;this._d===t&&this.jd===i||(this._d=t,this.jd=i,this.Us(new I(this.oc,t)))},this.nf=t=>{(this.Qc>Jt.df||this.Yc)&&this.Us(t)},this.Wd=t=>{this.Od(),this.Yc||(this.md=!1,this.Us(t))},this.tf=t=>{const i=this.ct;this.yd!==i&&(this.yd=i,this.Us(t))},this.As=t=>{this.Us(t)},this.Gd=t=>{if(this.pd){if(this.kd)return void(this.kd=!1);this.pd=!1,this.gd=!1,this.Us(t)}},this.Ye=t=>{this.md||(this.md=!0,this.Us(t))},this.Jd=t=>{!this.pd&&this.Jc&&(this.pd=!0,this.Us(t))},this.Nh=t=>{this.gd||(this.gd=!0,this.Us(t))},this.Kd=t=>{this.wd||(this.wd=!0,this.Us(t))},this.sf=t=>{const i=this.Qc;this.bd!==i&&(this.bd=i,this.Us(t))},this.ff=async()=>{try{await this.af.vf([et.MULTIVIEW])}catch(t){this.Vl(),this.ed=dt(t,at.LICENSE_INVALID_FEATURE),this.ld=!0,this.Co(new yi(this.ed))}},this.rf=t,this.zs=i,this.Sl=s;const e=Pi.pf,n=new Rt,r=new ut("11.13.0",e,n),h=new ot(s.isEmbeddable,"11.13.0",rt());if(this.af=new T(e,h,r,n,s,rt()),this.af.mf().then(this.ff),this.hf=new Lc(this.Ta,this.zs),this.Ll=Zu(this.hf,this.rf,s.ui),l(this.zs,il+this.Xl),Pi.ie.te){const t=this.Ll.el();l(t,"theo-mobile"),tc(t)}this.Cd=new Xc(this),this.Td=new Qt(this.Cd),this.Td.jn(Ht.gf,this.uf),this.Sd=new pi(this,!0),this.Sd.jn(Qc,this.Us),this.Sd.jn(Ht.yf,this.cf),this.sd=new Jc(this,t,s)}};function rl(t,i){var s;const e=ac(ht(X({},i||{}),{allowNativeFullscreen:!1,ui:ht(X({},(null==i?void 0:i.ui)||{}),{userActions:ht(X({},(null==i||null==(s=i.ui)?void 0:s.userActions)||{}),{click:!1})}),abr:ht(X({},(null==i?void 0:i.abr)||{}),{restrictToPlayerSize:!0})})),n=h.createElement("div");wi(n),t.appendChild(n);let r=new nl(t,n,e).Ta;return g.defineProperty(r,"constructor",{value:rl}),r=mt(r),r}Lt(),Lt();var hl="vjs-selected",ol=class extends _u{Vr(t){const i=t.Fr,s=this.Hr.localize(i.label);e(t.Mh,s),t.el().setAttribute("aria-label",this.Hr.localize("Enable/disable")+" "+s),t.el().setAttribute("role","menuitemcheckbox"),t.selected(i.enabled)}Br(t){const i=super.Br(t);l(i.el(),"theo-multi-view-menu-item"),2===this.Dr.length&&l(i.el(),"theo-multi-view-menu-item-position-zero");const s=h.createElement("span");i.Mh=s;const e=h.createElement("div");e.className="theo-multi-view-menu-item-toggle",i.Ah=e;const n=t=>this.Ih(t,i);i.Eh=n,e.addEventListener("click",n);const r=h.createElement("div");return r.className="theo-multi-view-menu-item-toggle-slider",e.appendChild(r),i.el().appendChild(s),i.el().appendChild(e),this.bf.before(i.el()),i}wf(){const t=this.Er.addMenuItem().el();l(t,"theo-multi-view-menu-item"),l(t,"theo-multi-view-menu-layout-select");const i=h.createElement("button");i.className="vjs-icon-view-grid",i.addEventListener("click",()=>{this.xs.layout=el.GALLERY}),t.appendChild(i),this.kf=i;const s=h.createElement("button");s.className="vjs-icon-view-spotlight",s.addEventListener("click",()=>{this.xs.layout=el.SPOTLIGHT}),t.appendChild(s),this._f=s;const e=h.createElement("button");return e.className="vjs-icon-multi-view",e.addEventListener("click",()=>{this.xs.layout=el.OVERLAY}),t.appendChild(e),this.jf=e,t}Ih(t,i){t.stopImmediatePropagation(),this.$r(i)}$r(t){const i=t.Fr;for(const t of this.xs.views)t===i&&(t.enabled=!t.enabled);this.Vr(t)}Rr(t){t.Ah.removeEventListener("click",t.Eh),super.Rr(t)}constructor(t,i,s){super(t),this.xs=void 0,this.Hr=void 0,this.bf=void 0,this.kf=void 0,this.jf=void 0,this._f=void 0,this.xf=t=>{this.Ir(t.view)},this.Sf=t=>{this.Ar(t.view)},this.Tf=t=>{const i=t.oldPosition,s=t.newPosition,e=w.max(i,s),n=w.min(i,s),r=h.getElementsByClassName("theo-multi-view-menu-item");r[e].before(r[n]),r[n].before(r[e]),0===n&&(vi(r[e],"theo-multi-view-menu-item-position-zero"),l(r[n],"theo-multi-view-menu-item-position-zero"))},this.Cf=()=>{const t=this.xs.layout;gi(this.kf,hl,t===el.GALLERY),gi(this._f,hl,t===el.SPOTLIGHT),gi(this.jf,hl,t===el.OVERLAY)},i.views&&(this.xs=i,this.Hr=s,this.xs.multiViewPlayer.addEventListener(sl.zc,this.xf),this.xs.multiViewPlayer.addEventListener(sl.Wc,this.Sf),this.xs.multiViewPlayer.addEventListener(sl.VIEW_CHANGE,this.xf),this.xs.multiViewPlayer.addEventListener(sl.VIEW_POSITION_CHANGE,this.Tf),this.xs.multiViewPlayer.addEventListener(sl.qc,this.Cf),e(this.Er.menuHeader.el(),this.Hr.localize("MultiView")),this.bf=this.wf(),this.Cf())}};na.registerComponent("multiViewButton",class extends Ra{buildCSSClass(){return"vjs-icon-view-grid "+super.buildCSSClass()}dispose(){this.Ph.Le(),super.dispose()}constructor(t,i){super(t,i),this.Ph=void 0,this.minimumMenuItems=3,this.Ph=new ol(this.menu,this.js,t),this.controlText(t.localize("Views")),this.Re.$e=this.controlText()}}),ts(Xi.MULTIVIEW);export{Li as ChromelessPlayer,ct as ErrorCategory,at as ErrorCode,rl as MultiViewPlayer,cc as Player,Z as cache,Q as cast,Yi as features,M as players,E as registerContentProtectionIntegration,Wi as utils,es as version,na as videojs};
|
|
37
|
+
Version: 11.14.0
|
|
38
|
+
Created: 2026-10-21T09:53:41.829Z
|
|
39
|
+
*/var e,t,i,r,s,n,a,o,l,h,u,c,d,p,_="u">typeof globalThis?globalThis:"u">typeof self?self:void 0!==v?v:"u">typeof global?global:this,v=_.window,m=_.document,y=(_.location,_.navigator,_.setTimeout),f=_.clearTimeout,g=(_.setInterval,_.clearInterval,_.Error),b=_.TypeError,C=_.SyntaxError,T=_.Object,k=_.Math,E=_.parseInt,w=_.parseFloat,S=_.isNaN,x=_.Uint8Array;_.Worker,_.WorkerGlobalScope,_.XMLHttpRequest;var P=function(e){var t="function"==typeof e&&!!e.iterator;if(t&&e.for&&e.dispose&&e.asyncDispose)return e;var i=0,r=t?function(t){return e(t)}:function(e){return"r"+e+"_"+ ++i},s=t?e.for||e:function(e){return"r"+e};function n(i){return t&&e[i]||s("Symbol."+i)}return r.for=s,r.iterator=n("iterator"),r.asyncIterator=n("asyncIterator"),r.dispose=n("dispose"),r.asyncDispose=n("asyncDispose"),r}(_.Symbol);import{$ as M,$t as L,A as A,At as I,B as V,Bt as j,C as D,Ct as B,D as F,Dt as N,E as O,F as R,Ft as $,G as U,Gt as H,H as z,Ht as W,I as q,It as Q,J as G,Jt as X,K as K,Kt as Y,L as J,Lt as Z,M as ee,Mt as et,N as ei,Nt as er,O as es,P as en,Pt as ea,Qt as eo,R as el,Rt as eh,S as eu,St as ec,T as ed,Tt as ep,U as e_,Ut as ev,V as em,Vt as ey,W as ef,Wt as eg,X as eb,Xt as eC,Y as eT,Yt as ek,Z as eE,Zt as ew,_ as eS,_n as ex,_t as eP,a as eM,an as eL,at as eA,b as eI,bn as eV,bt as ej,c as eD,cn as eB,ct as eF,d as eN,dn as eO,dt as eR,en as e$,et as eU,f as eH,fn as ez,ft as eW,g as eq,gn as eQ,gt as eG,h as eX,hn as eK,ht as eY,i as eJ,in as eZ,it as e0,j as e1,k as e2,kt as e3,l as e5,ln as e4,lt as e6,m as e9,mn as e7,mt as e8,n as te,nn as tt,nt as ti,o as tr,on as ts,ot as tn,p as ta,pn as to,pt as tl,q as th,qt as tu,r as tc,rn as td,rt as tp,s as t_,sn as tv,st as tm,t as ty,tt as tf,u as tg,un as tb,ut as tC,v as tT,vn as tk,vt as tE,w as tw,x as tS,xn as tx,xt as tP,y as tM,yn as tL,yt as tA,z as tI,zt as tV}from"./THEOplayer.common.esm.js";let tj=[],tD=[];function tB(e){tD.push(e)}/**
|
|
40
|
+
* @license
|
|
41
|
+
* Video.js 5.20.6-opentelly.14 <http://videojs.com/>
|
|
42
|
+
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
|
|
43
|
+
* Available under Apache License Version 2.0
|
|
44
|
+
* <https://github.com/videojs/video.js/blob/master/LICENSE>
|
|
45
|
+
*/var tF=void 0!==v?v:"u">typeof global?global:"u">typeof self?self:{},tN=void 0!==m?m:{createElement:function(){}};function tO(e,t){return t||(t=e.slice(0)),e.raw=t,e}var tR=1,t$=T.prototype.toString,tU=function(e){return tW(e)?T.keys(e):[]};function tH(e,t){tU(e).forEach(function(i){return t(e[i],i)})}function tz(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return T.assign?T.assign.apply(T,[e].concat(i)):(i.forEach(function(t){t&&tH(t,function(t,i){e[i]=t})}),e)}function tW(e){return!!e&&"object"==typeof e}function tq(e){return tW(e)&&"[object Object]"===t$.call(e)&&e.constructor===T}var tQ=function(e,t,i){void 0===i&&(i=!!iD&&iD<11),"log"!==e&&t.unshift(e.toUpperCase()+":"),o.history.push(t),t.unshift("VIDEOJS:");var r=tF.console&&tF.console[e];r&&(i&&(t=t.map(function(e){if(tW(e)||Array.isArray(e))try{return JSON.stringify(e)}catch(e){}return String(e)}).join(" ")),r.apply?r[Array.isArray(t)?"apply":"call"](tF.console,t):r(t))};(o=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];tQ("log",t)}).history=[],o.error=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return tQ("error",t)},o.warn=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return tQ("warn",t)};var tG=o,tX="u">typeof globalThis?globalThis:void 0!==v?v:"u">typeof global?global:"u">typeof self?self:{},tK=function(e){for(var t="",i=0;i<arguments.length;i++)t+=e[i].replace(/\n\r?\s*/g,"")+(arguments[i+1]||"");return t};function tY(e){return"string"==typeof e&&/\S/.test(e)}function tJ(e){if(/\s/.test(e))throw new g("class has illegal whitespace characters")}function tZ(){return tN===tF.document&&void 0!==tN.createElement}function t0(e){return tW(e)&&1===e.nodeType}function t1(e){return function(t,i){if(!tY(t))return tN[e](null);tY(i)&&(i=tN.querySelector(i));var r=t0(i)?i:tN;return r[e]&&r[e](t)}}function t2(e,t,i,r){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===i&&(i={});var s=tN.createElement(e);return T.getOwnPropertyNames(t).forEach(function(e){var i=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(tG.warn(tK(l||(l=tO(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."])),e,i)),s.setAttribute(e,i)):"textContent"===e?t3(s,i):s[e]=i}),T.getOwnPropertyNames(i).forEach(function(e){s.setAttribute(e,i[e])}),r&&ip(s,r),s}function t3(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function t5(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}var t4={},t6="vdata"+(new Date).getTime();function t9(e){var t=e[t6];return t||(t=e[t6]=tR++),t4[t]||(t4[t]={}),t4[t]}function t7(e){var t=e[t6];return!!t&&!!T.getOwnPropertyNames(t4[t]).length}function t8(e){var t=e[t6];if(t){delete t4[t];try{delete e[t6]}catch(t){e.removeAttribute?e.removeAttribute(t6):e[t6]=null}}}function ie(e,t){return(tJ(t),e.classList)?e.classList.contains(t):RegExp("(^|\\s)"+t+"($|\\s)").test(e.className)}function it(e,t){return e.classList?e.classList.add(t):ie(e,t)||(e.className=(e.className+" "+t).trim()),e}function ii(e,t){return e.classList?e.classList.remove(t):(tJ(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e}function ir(e,t,i){var r=ie(e,t);if("function"==typeof i&&(i=i(e,t)),"boolean"!=typeof i&&(i=!r),i!==r)return i?it(e,t):ii(e,t),e}function is(e,t){T.getOwnPropertyNames(t).forEach(function(i){var r=t[i];null==r||!1===r?e.removeAttribute(i):e.setAttribute(i,!0===r?"":r)})}function ia(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,r=i.length-1;r>=0;r--){var s=i[r].name,n=i[r].value;("boolean"==typeof e[s]||-1!==",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+s+","))&&(n=null!==n),t[s]=n}return t}function io(e,t,i){e.setAttribute(t,i)}function il(e,t){e.removeAttribute(t)}function ih(e){if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var t,i=tN.documentElement,r=tN.body,s=i.clientLeft||r.clientLeft||0,n=tF.pageXOffset||r.scrollLeft,a=t.left+n-s,o=i.clientTop||r.clientTop||0,l=tF.pageYOffset||r.scrollTop,h=t.top+l-o;return{left:k.round(a),top:k.round(h)}}function iu(e,t){var i={},r=ih(e),s=e.offsetWidth,n=e.offsetHeight,a=r.top,o=r.left,l=t.pageY,h=t.pageX;return t.changedTouches&&(h=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),i.y=k.max(0,k.min(1,(a-l+n)/n)),i.x=k.max(0,k.min(1,(h-o)/s)),i}function ic(e){return tW(e)&&3===e.nodeType}function id(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function ip(e,t){var i;return("function"==typeof(i=t)&&(i=i()),(Array.isArray(i)?i:[i]).map(function(e){return("function"==typeof e&&(e=e()),t0(e)||ic(e))?e:"string"==typeof e&&/\S/.test(e)?tN.createTextNode(e):void 0}).filter(function(e){return e})).forEach(function(t){return e.appendChild(t)}),e}function i_(e,t){return ip(id(e),t)}var iv=t1("querySelector"),im=t1("querySelectorAll"),iy=tF.navigator&&tF.navigator.userAgent||"",ig=/AppleWebKit\/([\d.]+)/i.exec(iy),ib=ig?w(ig.pop()):null,iC=/iPad/i.test(iy),iT=/iPhone/i.test(iy)&&!iC,ik=/iPod/i.test(iy),iE=iT||iC||ik,iw=(e=iy.match(/OS (\d+)_/i))&&e[1]?e[1]:null,iS=/Android/i.test(iy),ix=function(){var e=iy.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&w(e[1]),i=e[2]&&w(e[2]);return t&&i?w(e[1]+"."+e[2]):t||null}(),iP=iS&&/webkit/i.test(iy)&&ix<2.3,iM=iS&&ix<5&&ib<537,iL=/Firefox/i.test(iy),iA=/Edge/i.test(iy),iI=!iA&&/Chrome/i.test(iy),iV=(t=iy.match(/Chrome\/(\d+)/))&&t[1]?w(t[1]):null,ij=/MSIE\s8\.0/.test(iy),iD=(!(r=(i=/MSIE\s(\d+)\.\d/.exec(iy))&&w(i[1]))&&/Trident\/7.0/i.test(iy)&&/rv:11.0/.test(iy)&&(r=11),r),iB=/Safari/i.test(iy)&&!iI&&!iS&&!iA,iF=iB||iE,iN=tZ()&&("ontouchstart"in tF||tF.DocumentTouch&&tF.document instanceof tF.DocumentTouch),iO=tZ()&&"backgroundSize"in tF.document.createElement("video").style,iR=T.freeze({__proto__:null,IS_IPAD:iC,IS_IPHONE:iT,IS_IPOD:ik,IS_IOS:iE,IOS_VERSION:iw,IS_ANDROID:iS,ANDROID_VERSION:ix,IS_OLD_ANDROID:iP,IS_NATIVE_ANDROID:iM,IS_FIREFOX:iL,IS_EDGE:iA,IS_CHROME:iI,CHROME_VERSION:iV,IS_IE8:ij,IE_VERSION:iD,IS_SAFARI:iB,IS_ANY_SAFARI:iF,TOUCH_ENABLED:iN,BACKGROUND_SIZE_SUPPORTED:iO});function i$(e,t){var i=t9(e);0===i.handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),T.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===T.getOwnPropertyNames(i).length&&t8(e)}function iU(e,t,i,r){i.forEach(function(i){e(t,i,r)})}function iH(e){function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var r=e||tF.event;for(var s in e={},r)"layerX"===s||"layerY"===s||"keyLocation"===s||"webkitMovementX"===s||"webkitMovementY"===s||"path"===s||"returnValue"===s&&r.preventDefault||(e[s]=r[s]);if(e.target||(e.target=e.srcElement||tN),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){var n=tN.documentElement,a=tN.body;e.pageX=e.clientX+(n&&n.scrollLeft||a&&a.scrollLeft||0)-(n&&n.clientLeft||a&&a.clientLeft||0),e.pageY=e.clientY+(n&&n.scrollTop||a&&a.scrollTop||0)-(n&&n.clientTop||a&&a.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}var iz=!1;try{var iW=T.defineProperty({},"passive",{get:function(){iz=!0}});tF.addEventListener("test",null,iW)}catch(e){}var iq=["touchstart","touchmove"];function iQ(e,t,i){if(Array.isArray(t))return iU(iQ,e,t,i);var r=t9(e);if(r.handlers||(r.handlers={}),r.handlers[t]||(r.handlers[t]=[]),i.guid||(i.guid=tR++),r.handlers[t].push(i),r.dispatcher||(r.disabled=!1,r.dispatcher=function(t,i){if(!r.disabled){t=iH(t);var s=r.handlers[t.type];if(s)for(var n=s.slice(0),a=0,o=n.length;a<o;a++)if(t.isImmediatePropagationStopped())break;else try{n[a].call(e,t,i)}catch(e){tG.error(e)}}}),1===r.handlers[t].length)if(e.addEventListener){var s=!1;iz&&iq.indexOf(t)>-1&&(s={passive:!0}),e.addEventListener(t,r.dispatcher,s)}else e.attachEvent&&e.attachEvent("on"+t,r.dispatcher)}function iG(e,t,i){if(t7(e)){var r=t9(e);if(r.handlers){if(Array.isArray(t))return iU(iG,e,t,i);var s=function(t){r.handlers[t]=[],i$(e,t)};if(!t){for(var n in r.handlers)s(n);return}var a=r.handlers[t];if(a){if(!i)return void s(t);if(i.guid)for(var o=0;o<a.length;o++)a[o].guid===i.guid&&a.splice(o--,1);i$(e,t)}}}}function iX(e,t,i){var r=t7(e)?t9(e):{},s=e.parentNode||e.ownerDocument;if("string"==typeof t&&(t={type:t,target:e}),t=iH(t),r.dispatcher&&r.dispatcher.call(e,t,i),s&&!t.isPropagationStopped()&&!0===t.bubbles)iX.call(null,s,t,i);else if(!s&&!t.defaultPrevented){var n=t9(t.target);t.target[t.type]&&(n.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),n.disabled=!1)}return!t.defaultPrevented}function iK(e,t,i){if(Array.isArray(t))return iU(iK,e,t,i);var r=function r(){iG(e,t,r),i.apply(this,arguments)};r.guid=i.guid=i.guid||tR++,iQ(e,t,r)}var iY=!1,iJ=function(){if(tZ()){var e=tN.getElementsByTagName("video"),t=tN.getElementsByTagName("audio"),i=[];if(e&&e.length>0)for(var r=0,s=e.length;r<s;r++)i.push(e[r]);if(t&&t.length>0)for(var n=0,a=t.length;n<a;n++)i.push(t[n]);if(i&&i.length>0)for(var o=0,l=i.length;o<l;o++){var u=i[o];if(u&&u.getAttribute)void 0===u.player&&null!==u.getAttribute("data-setup")&&h(u);else{iZ(1);break}}else iY||iZ(1)}};function iZ(e,t){t&&(h=t),tF.setTimeout(iJ,e)}tZ()&&"complete"===tN.readyState?iY=!0:iK(tF,"load",function(){iY=!0});var i0=function(e){var t=tN.createElement("style");return t.className=e,t},i1=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},i2=function(e,t,i){t.guid||(t.guid=tR++);var r=function(){return t.apply(e,arguments)};return r.guid=i?i+"_"+t.guid:t.guid,r},i3=function(e,t){var i=Date.now();return function(){var r=Date.now();r-i>=t&&(e.apply(void 0,arguments),i=r)}};function i5(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function i4(){for(var e={},t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return i.forEach(function(t){t&&tH(t,function(t,i){if(!tq(t)){e[i]=t;return}tq(e[i])||(e[i]={}),e[i]=i4(e[i],t)})}),e}var i6=function(){function e(e,t,i){if(!e&&this.play?this.R5=e=this:this.R5=e,this.e=i4({},this.e),t=this.e=i4(this.e,t),this.uZ=t.id||t.el&&t.el.id,!this.uZ){var r=e&&e.id&&e.id()||"no_player";this.uZ=r+"t"+tR++}this.h$=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),this.h4=[],this.s={},this.n={},!1!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.h4)for(var e=this.h4.length-1;e>=0;e--)this.h4[e].dispose&&this.h4[e].dispose();this.h4=null,this.s=null,this.n=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),t8(this.el_),this.el_=null},t.player=function(){return this.R5},t.options=function(e){return tG.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e&&(this.e=i4(this.e,e)),this.e},t.el=function(){return this.el_},t.createEl=function(e,t,i){return t2(e,t,i)},t.localize=function(e){var t=this.R5.language&&this.R5.language(),i=this.R5.languages&&this.R5.languages();if(!t||!i)return e;var r=i[t];if(r&&r[e])return r[e];var s=i[t.split("-")[0]];return s&&s[e]?s[e]:e},t.contentEl=function(){return this.o||this.el_},t.id=function(){return this.uZ},t.name=function(){return this.h$},t.children=function(){return this.h4},t.getChildById=function(e){return this.s[e]},t.getChild=function(e){if(e)return e=i5(e),this.n[e]},t.addChild=function(t,i,r){if(void 0===i&&(i={}),void 0===r&&(r=this.h4.length),"string"==typeof t){n=i5(t),i||(i={}),!0===i&&(tG.warn("Initializing a child component with `true` is deprecated.Children should be defined in an array when possible, but if necessary use an object instead of `true`."),i={});var s,n,a=i.componentClass||n;i.name=n;var o=e.getComponent(a);if(!o)throw new g("Component "+a+" does not exist");if("function"!=typeof o)return null;s=new o(this.R5||this,i)}else s=t;if(this.h4.splice(r,0,s),"function"==typeof s.id&&(this.s[s.id()]=s),(n=n||s.name&&i5(s.name()))&&(this.n[n]=s),"function"==typeof s.el&&s.el()){var l=this.contentEl().children[r]||null;this.contentEl().insertBefore(s.el(),l)}return s},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.h4){for(var t=!1,i=this.h4.length-1;i>=0;i--)if(this.h4[i]===e){t=!0,this.h4.splice(i,1);break}if(t){this.s[e.id()]=null,this.n[e.name()]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,i=this.e.children;if(i){var r,s=this.e,n=e.getComponent("Tech");(r=Array.isArray(i)?i:T.keys(i)).concat(T.keys(this.e).filter(function(e){return!r.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var r,s;return"string"==typeof e?s=i[r=e]||t.e[r]||{}:(r=e.name,s=e),{name:r,opts:s}}).filter(function(t){var i=e.getComponent(t.opts.componentClass||i5(t.name));return i&&!n.isTech(i)}).forEach(function(e){var i=e.name,r=e.opts;if(void 0!==s[i]&&(r=s[i]),!1!==r){!0===r&&(r={}),r.playerOptions=t.e.playerOptions;var n=t.addChild(i,r);n&&(t[i]=n)}})}},t.buildCSSClass=function(){return""},t.on=function(e,t,i){var r=this;if("string"==typeof e||Array.isArray(e))iQ(this.el_,e,i2(this,t));else{var s=i2(this,i),n=function(){return r.off(e,t,s)};n.guid=s.guid,this.on("dispose",n);var a=function(){return r.off("dispose",n)};a.guid=s.guid,e.nodeName?(iQ(e,t,s),iQ(e,"dispose",a)):"function"==typeof e.on&&(e.on(t,s),e.on("dispose",a))}return this},t.off=function(e,t,i){if(!e||"string"==typeof e||Array.isArray(e))iG(this.el_,e,t);else{var r=i2(this,i);this.off("dispose",r),e.nodeName?(iG(e,t,r),iG(e,"dispose",r)):(e.off(t,r),e.off("dispose",r))}return this},t.one=function(e,t,i){var r=arguments,s=this;if("string"==typeof e||Array.isArray(e))iK(this.el_,e,i2(this,t));else{var n=i2(this,i),a=function i(){s.off(e,t,i),n.apply(null,r)};a.guid=n.guid,this.on(e,t,a)}return this},t.trigger=function(e,t){return iX(this.el_,e,t),this},t.ready=function(e,t){return void 0===t&&(t=!1),e&&(this.l?t?e.call(this):this.setTimeout(e,1):(this.h=this.h||[],this.h.push(e))),this},t.triggerReady=function(){this.l=!0,this.setTimeout(function(){var e=this.h;this.h=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},t.$=function(e,t){return iv(e,t||this.contentEl())},t.$$=function(e,t){return im(e,t||this.contentEl())},t.hasClass=function(e){return ie(this.el_,e)},t.addClass=function(e){return it(this.el_,e),this},t.removeClass=function(e){return ii(this.el_,e),this},t.toggleClass=function(e,t){return ir(this.el_,e,t),this},t.show=function(){return this.removeClass("vjs-hidden"),this},t.hide=function(){return this.addClass("vjs-hidden"),this},t.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},t.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},t.getAttribute=function(e){var t;return t=this.el_,t.getAttribute(e)},t.setAttribute=function(e,t){return io(this.el_,e,t),this},t.removeAttribute=function(e){return il(this.el_,e),this},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){return this.width(e,!0).height(t)},t.dimension=function(e,t,i){if(void 0!==t)return(null===t||t!=t)&&(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:"auto"===t?this.el_.style[e]="":this.el_.style[e]=t+"px",i||this.trigger("resize"),this;if(!this.el_)return 0;var r=this.el_.style[e],s=r.indexOf("px");return -1!==s?E(r.slice(0,s),10):E(this.el_["offset"+i5(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new g("currentDimension only accepts width or height value");if("function"==typeof tF.getComputedStyle){var i=tF.getComputedStyle(this.el_);t=i.getPropertyValue(e)||i[e]}if(0===(t=w(t))){var r="offset"+i5(e);t=this.el_[r]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.emitTapEvents=function(){var e,t=0,i=null;this.on("touchstart",function(r){1===r.touches.length&&(i={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=(new Date).getTime(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(i){var r=t.touches[0].pageX-i.pageX,s=t.touches[0].pageY-i.pageY;k.sqrt(r*r+s*s)>10&&(e=!1)}});var r=function(){e=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",function(r){i=null,!0===e&&(new Date).getTime()-t<200&&(r.preventDefault(),this.trigger("tap"))})},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=i2(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var i=function(i){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",i),this.on("touchcancel",i)}},t.setTimeout=function(e,t){e=i2(this,e);var i=tF.setTimeout(e,t),r=function(){this.clearTimeout(i)};return r.guid="vjs-timeout-"+i,this.on("dispose",r),i},t.clearTimeout=function(e){tF.clearTimeout(e);var t=function(){};return t.guid="vjs-timeout-"+e,this.off("dispose",t),e},t.setInterval=function(e,t){e=i2(this,e);var i=tF.setInterval(e,t),r=function(){this.clearInterval(i)};return r.guid="vjs-interval-"+i,this.on("dispose",r),i},t.clearInterval=function(e){tF.clearInterval(e);var t=function(){};return t.guid="vjs-interval-"+e,this.off("dispose",t),e},e.registerComponent=function(t,i){if(t){if(t=i5(t),e.c||(e.c={}),"Player"===t&&e.c[t]){var r=e.c[t];if(r.players&&T.keys(r.players).length>0&&T.keys(r.players).map(function(e){return r.players[e]}).every(Boolean))throw new g("Can not register Player component after player has been created")}return e.c[t]=i,i}},e.getComponent=function(t){if(t){if(t=i5(t),e.c&&e.c[t])return e.c[t];if(tF&&tF.videojs&&tF.videojs[t])return tG.warn("The "+t+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),tF.videojs[t]}},e.extend=function(t){t=t||{},tG.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var i=t.init||t.init||this.prototype.init||this.prototype.init||function(){},r=function(){i.apply(this,arguments)};for(var s in r.prototype=T.create(this.prototype),r.prototype.constructor=r,r.extend=e.extend,t)t.hasOwnProperty(s)&&(r.prototype[s]=t[s]);return r},e}();i6.registerComponent("Component",i6);var i9=function(){};function i7(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i8(e,t){return(i8=T.setPrototypeOf?T.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function re(e,t){e.prototype=T.create(t.prototype),e.prototype.constructor=e,i8(e,t)}function rt(e,t,i,r){void 0===r&&(tG.warn("DEPRECATED: Function '"+e+"' on 'TimeRanges' called without an index argument."),r=0);var s=r,n=i.length-1;if(s<0||s>n)throw new g("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+s+") is greater than or equal to the maximum bound ("+n+").");return i[r][t]}function ri(e){return void 0===e||0===e.length?{length:0,start:function(){throw new g("This TimeRanges object is empty")},end:function(){throw new g("This TimeRanges object is empty")}}:{length:e.length,start:rt.bind(null,"start",0,e),end:rt.bind(null,"end",1,e)}}function rr(e,t){return Array.isArray(e)?ri(e):void 0===e||void 0===t?ri():ri([[e,t]])}function rs(e,t){var i,r,s=0;if(!t)return 0;e&&e.length||(e=rr(0,0));for(var n=0;n<e.length;n++)i=e.start(n),(r=e.end(n))>t&&(r=t),s+=r-i;return s/t}i9.prototype.d={},i9.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},iQ(this,e,t),this.addEventListener=i},i9.prototype.addEventListener=i9.prototype.on,i9.prototype.off=function(e,t){iG(this,e,t)},i9.prototype.removeEventListener=i9.prototype.off,i9.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},iK(this,e,t),this.addEventListener=i},i9.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=iH(e),this.d[t]&&this["on"+t]&&this["on"+t](e),iX(this,e)},i9.prototype.dispatchEvent=i9.prototype.trigger;for(var rn={prefixed:!0},ra=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],ro=ra[0],rl=0;rl<ra.length;rl++)if(ra[rl][1]in tN){u=ra[rl];break}if(u){for(var rh=0;rh<u.length;rh++)rn[ro[rh]]=u[rh];rn.prefixed=u[0]!==ro[0]}function ru(e){if(e instanceof ru)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:tW(e)&&("number"==typeof e.code&&(this.code=e.code),tz(this,e)),this.message||(this.message=ru.defaultMessages[this.code]||"")}ru.prototype.code=0,ru.prototype.message="",ru.prototype.status=null,ru.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],ru.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var rc=0;rc<ru.errorTypes.length;rc++)ru[ru.errorTypes[rc]]=rc,ru.prototype[ru.errorTypes[rc]]=rc;var rd=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,i,r){return e[i]&&(t[i]=e[i]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},rp=function(e){var t=e.$$("track"),i=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=rd(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return -1===i.indexOf(e)}).map(rd))},r_="vjs-modal-dialog",rv=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.v=r.m=r.f=!1,r.closeable(!r.e.uncloseable),r.content(r.e.content),r.o=t2("div",{className:r_+"-content"},{role:"document"}),r.g=t2("p",{className:r_+"-description vjs-offscreen",id:r.el().getAttribute("aria-describedby")}),t3(r.g,r.description()),r.el_.appendChild(r.g),r.el_.appendChild(r.o),r.on(t,"languagechange",r.handleLanguagechange),r}re(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"b","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},i.buildCSSClass=function(){return r_+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},i.handleKeyPress=function(e){27===e.which&&this.closeable()&&this.close()},i.label=function(){return this.e.label||this.localize("Modal Window")},i.description=function(){var e=this.e.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},i.open=function(){if(!this.v){var e=this.player();this.trigger("beforemodalopen"),this.v=!0,!this.e.fillAlways&&(this.m||this.f)||this.fill(),this.C=!e.paused(),this.e.pauseOnOpen&&this.C&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",i2(this,this.handleKeyPress)),e.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.m=!0}return this},i.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.v},i.close=function(){if(this.v){var e=this.player();this.trigger("beforemodalclose"),this.v=!1,this.C&&this.e.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",i2(this,this.handleKeyPress)),e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.e.temporary&&this.dispose()}return this},i.closeable=function(e){if("boolean"==typeof e){var t=this.T=!!e,i=this.getChild("closeButton");if(t&&!i){var r=this.o;this.o=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.o=r,this.on(i,"close",this.close)}!t&&i&&(this.off(i,"close",this.close),this.removeChild(i),i.dispose())}return this.T},i.fill=function(){return this.fillWith(this.content())},i.fillWith=function(e){var t=this.contentEl(),i=t.parentNode,r=t.nextSibling;return this.trigger("beforemodalfill"),this.f=!0,i.removeChild(t),this.empty(),i_(t,e),this.trigger("modalfill"),r?i.insertBefore(t,r):i.appendChild(t),this},i.empty=function(){return this.trigger("beforemodalempty"),id(this.contentEl()),this.trigger("modalempty"),this},i.content=function(e){return void 0!==e&&(this.cP=e),this.cP},i.handleLanguagechange=function(){this.el_.setAttribute("aria-label",this.label()),t3(this.g,this.description()),this.opened()?this.fill():(this.m||this.f)&&(this.m=!1,this.f=!1,this.empty())},t}(i6);rv.prototype.e={pauseOnOpen:!0,temporary:!0},i6.registerComponent("ModalDialog",rv);var rm=function(){function e(t){var i=this;if(ij)for(var r in i=tN.createElement("custom"),e.prototype)"constructor"!==r&&(i[r]=e.prototype[r]);if(e.prototype.k.call(i,t),T.defineProperty(i,"length",{get:function(){return this.uH}}),ij)return i}var t=e.prototype;return t.k=function(e){var t=this.length||0,i=0,r=e.length;this.fA=e,this.uH=e.length;var s=function(e){""+e in this||T.defineProperty(this,""+e,{get:function(){return this.fA[e]}})};if(t<r)for(i=t;i<r;i++)s.call(this,i)},t.getCueById=function(e){for(var t=null,i=0,r=this.length;i<r;i++){var s=this[i];if(s.id===e){t=s;break}}return t},e}(),ry={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},rf={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},rg={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},rb={disabled:"disabled",hidden:"hidden",showing:"showing"},rC=function(e){function t(i){void 0===i&&(i={});var r=e.call(this)||this,s=i7(r);if(ij)for(var n in s=tN.createElement("custom"),t.prototype)"constructor"!==n&&(s[n]=t.prototype[n]);var a={id:i.id||["vjs_track",tR++].join("_"),kind:i.kind||"",label:i.label||"",language:i.language||""},o=function(e){T.defineProperty(s,e,{get:function(){return a[e]},set:function(){}})};for(var l in a)o(l);return s||i7(r)}return re(t,e),t}(i9),rT=function(e){var t,i=["protocol","hostname","port","pathname","search","hash","host"],r=tN.createElement("a");r.href=e;var s=""===r.host&&"file:"!==r.protocol;s&&((t=tN.createElement("div")).innerHTML='<a href="'+e+'"></a>',r=t.firstChild,t.setAttribute("style","display:none; position:absolute;"),tN.body.appendChild(t));for(var n={},a=0;a<i.length;a++)n[i[a]]=r[i[a]];return"http:"===n.protocol&&(n.host=n.host.replace(/:80$/,"")),"https:"===n.protocol&&(n.host=n.host.replace(/:443$/,"")),s&&tN.body.removeChild(t),n},rk=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(e);if(t)return t.pop().toLowerCase()}return""},rE=function(e){var t=tF.location,i=rT(e);return(":"===i.protocol?t.protocol:i.protocol)+i.host!==t.protocol+t.host},rw={exports:{}};void 0!==v?rw.exports=v:void 0!==tX?rw.exports=tX:"u">typeof self?rw.exports=self:rw.exports={};var rS=T.prototype.toString,rx=Array.prototype.slice,rP=T.prototype.toString,rM=Function.prototype.bind||function(e){var t,i=this;if("function"!=typeof i||"[object Function]"!==rP.call(i))throw new b("Function.prototype.bind called on incompatible "+i);for(var r=rx.call(arguments,1),s=k.max(0,i.length-r.length),n=[],a=0;a<s;a++)n.push("$"+a);if(t=Function("binder","return function ("+n.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(!(this instanceof t))return i.apply(e,r.concat(rx.call(arguments)));var s=i.apply(this,r.concat(rx.call(arguments)));return T(s)===s?s:this}),i.prototype){var o=function(){};o.prototype=i.prototype,t.prototype=new o,o.prototype=null}return t},rL=T.prototype.toString,rA=function(e){var t=rL.call(e),i="[object Arguments]"===t;return i||(i="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===rL.call(e.callee)),i};if(!T.keys){var rI=T.prototype.hasOwnProperty,rV=T.prototype.toString,rj=T.prototype.propertyIsEnumerable,rD=!rj.call({toString:null},"toString"),rB=rj.call(function(){},"prototype"),rF=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],rN=function(e){var t=e.constructor;return t&&t.prototype===e},rO={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},rR=function(){if(void 0===v)return!1;for(var e in v)try{if(!rO["$"+e]&&rI.call(v,e)&&null!==v[e]&&"object"==typeof v[e])try{rN(v[e])}catch(e){return!0}}catch(e){return!0}return!1}(),r$=function(e){if(void 0===v||!rR)return rN(e);try{return rN(e)}catch(e){return!1}};c=function(e){var t=null!==e&&"object"==typeof e,i="[object Function]"===rV.call(e),r=rA(e),s=t&&"[object String]"===rV.call(e),n=[];if(!t&&!i&&!r)throw new b("Object.keys called on a non-object");var a=rB&&i;if(s&&e.length>0&&!rI.call(e,0))for(var o=0;o<e.length;++o)n.push(String(o));if(r&&e.length>0)for(var l=0;l<e.length;++l)n.push(String(l));else for(var h in e)!(a&&"prototype"===h)&&rI.call(e,h)&&n.push(String(h));if(rD)for(var u=r$(e),c=0;c<rF.length;++c)!(u&&"constructor"===rF[c])&&rI.call(e,rF[c])&&n.push(rF[c]);return n}}var rU=c,rH=Array.prototype.slice,rz=T.keys,rW=rz?function(e){return rz(e)}:rU,rq=T.keys;rW.shim=function(){return T.keys?!function(){var e=T.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(T.keys=function(e){return rA(e)?rq(rH.call(e)):rq(e)}):T.keys=rW,T.keys||rW};var rQ="function"==typeof P&&"symbol"==typeof P("foo"),rG=T.prototype.toString,rX=Array.prototype.concat,rK=T.defineProperty,rY=rK&&function(){var e={};try{for(var t in rK(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),rJ=function(e,t,i,r){(!(t in e)||"function"==typeof r&&"[object Function]"===rG.call(r)&&r())&&(rY?rK(e,t,{configurable:!0,enumerable:!1,value:i,writable:!0}):e[t]=i)},rZ=function(e,t){var i=arguments.length>2?arguments[2]:{},r=rW(t);rQ&&(r=rX.call(r,T.getOwnPropertySymbols(t)));for(var s=0;s<r.length;s+=1)rJ(e,r[s],t[r[s]],i[r[s]])};rZ.supportsDescriptors=!!rY;var r0=T.getOwnPropertyDescriptor?function(){return T.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new b},r1="function"==typeof P&&"symbol"==typeof P.iterator,r2=T.getPrototypeOf||function(e){return e.__proto__},r3=void 0===x?d:r2(x),r5={"$ %Array%":Array,"$ %ArrayBuffer%":"u"<typeof ArrayBuffer?d:ArrayBuffer,"$ %ArrayBufferPrototype%":"u"<typeof ArrayBuffer?d:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":r1?r2([][P.iterator]()):d,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":d,"$ %AsyncFunction%":d,"$ %AsyncFunctionPrototype%":d,"$ %AsyncGenerator%":d,"$ %AsyncGeneratorFunction%":d,"$ %AsyncGeneratorPrototype%":d,"$ %AsyncIteratorPrototype%":d,"$ %Atomics%":"u"<typeof Atomics?d:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"u"<typeof DataView?d:DataView,"$ %DataViewPrototype%":"u"<typeof DataView?d:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":g,"$ %ErrorPrototype%":g.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"u"<typeof Float32Array?d:Float32Array,"$ %Float32ArrayPrototype%":"u"<typeof Float32Array?d:Float32Array.prototype,"$ %Float64Array%":"u"<typeof Float64Array?d:Float64Array,"$ %Float64ArrayPrototype%":"u"<typeof Float64Array?d:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":d,"$ %GeneratorFunction%":d,"$ %GeneratorPrototype%":d,"$ %Int8Array%":"u"<typeof Int8Array?d:Int8Array,"$ %Int8ArrayPrototype%":"u"<typeof Int8Array?d:Int8Array.prototype,"$ %Int16Array%":"u"<typeof Int16Array?d:Int16Array,"$ %Int16ArrayPrototype%":"u"<typeof Int16Array?d:Int8Array.prototype,"$ %Int32Array%":"u"<typeof Int32Array?d:Int32Array,"$ %Int32ArrayPrototype%":"u"<typeof Int32Array?d:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":S,"$ %IteratorPrototype%":r1?r2(r2([][P.iterator]())):d,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"u"<typeof Map?d:Map,"$ %MapIteratorPrototype%":"u">typeof Map&&r1?r2((new Map)[P.iterator]()):d,"$ %MapPrototype%":"u"<typeof Map?d:Map.prototype,"$ %Math%":k,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":T,"$ %ObjectPrototype%":T.prototype,"$ %ObjProto_toString%":T.prototype.toString,"$ %ObjProto_valueOf%":T.prototype.valueOf,"$ %parseFloat%":w,"$ %parseInt%":E,"$ %Promise%":"u"<typeof Promise?d:Promise,"$ %PromisePrototype%":"u"<typeof Promise?d:Promise.prototype,"$ %PromiseProto_then%":"u"<typeof Promise?d:Promise.prototype.then,"$ %Promise_all%":"u"<typeof Promise?d:Promise.all,"$ %Promise_reject%":"u"<typeof Promise?d:Promise.reject,"$ %Promise_resolve%":"u"<typeof Promise?d:Promise.resolve,"$ %Proxy%":"u"<typeof Proxy?d:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"u"<typeof Reflect?d:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"u"<typeof Set?d:Set,"$ %SetIteratorPrototype%":"u">typeof Set&&r1?r2((new Set)[P.iterator]()):d,"$ %SetPrototype%":"u"<typeof Set?d:Set.prototype,"$ %SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?d:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"u"<typeof SharedArrayBuffer?d:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":r1?r2(""[P.iterator]()):d,"$ %StringPrototype%":String.prototype,"$ %Symbol%":r1?P:d,"$ %SymbolPrototype%":r1?P.prototype:d,"$ %SyntaxError%":C,"$ %SyntaxErrorPrototype%":C.prototype,"$ %ThrowTypeError%":r0,"$ %TypedArray%":r3,"$ %TypedArrayPrototype%":r3?r3.prototype:d,"$ %TypeError%":b,"$ %TypeErrorPrototype%":b.prototype,"$ %Uint8Array%":void 0===x?d:x,"$ %Uint8ArrayPrototype%":void 0===x?d:x.prototype,"$ %Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?d:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"u"<typeof Uint8ClampedArray?d:Uint8ClampedArray.prototype,"$ %Uint16Array%":"u"<typeof Uint16Array?d:Uint16Array,"$ %Uint16ArrayPrototype%":"u"<typeof Uint16Array?d:Uint16Array.prototype,"$ %Uint32Array%":"u"<typeof Uint32Array?d:Uint32Array,"$ %Uint32ArrayPrototype%":"u"<typeof Uint32Array?d:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"u"<typeof WeakMap?d:WeakMap,"$ %WeakMapPrototype%":"u"<typeof WeakMap?d:WeakMap.prototype,"$ %WeakSet%":"u"<typeof WeakSet?d:WeakSet,"$ %WeakSetPrototype%":"u"<typeof WeakSet?d:WeakSet.prototype},r4=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new b('"allowMissing" argument must be a boolean');var i="$ "+e;if(!(i in r5))throw new C("intrinsic "+e+" does not exist!");if(void 0===r5[i]&&!t)throw new b("intrinsic "+e+" exists, but is not available. Please file an issue!");return r5[i]},r6=rM.call(Function.call,T.prototype.hasOwnProperty),r9=r4("%TypeError%"),r7=r4("%SyntaxError%"),r8={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var i={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(r6(t,r)&&!i[r])return!1;var s=r6(t,"[[Value]]"),n=r6(t,"[[Get]]")||r6(t,"[[Set]]");if(s&&n)throw new r9("Property Descriptors may not be both accessor and data descriptors");return!0}},se=Number.isNaN||function(e){return e!=e},st=Number.isNaN||function(e){return e!=e},si=Number.isFinite||function(e){return"number"==typeof e&&!st(e)&&1/0!==e&&-1/0!==e},sr=Function.prototype.toString,ss=/^\s*class\b/,sn=function(e){try{var t=sr.call(e);return ss.test(t)}catch(e){return!1}},sa=function(e){try{if(sn(e))return!1;return sr.call(e),!0}catch(e){return!1}},so=T.prototype.toString,sl="function"==typeof P&&"symbol"==typeof P.toStringTag,sh=function(e){if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(sl)return sa(e);if(sn(e))return!1;var t=so.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t},su=T.prototype.toString,sc=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},sd=function(e){if(t=arguments.length>1?arguments[1]:"[object Date]"===su.call(e)?String:Number,t===String||t===Number){for(var t,i,r=t===String?["toString","valueOf"]:["valueOf","toString"],s=0;s<r.length;++s)if(sh(e[r[s]])&&sc(i=e[r[s]]()))return i;throw new b("No default value")}throw new b("invalid [[DefaultValue]] hint supplied")},sp=r4("%Object%"),s_=r4("%TypeError%"),sv=r4("%String%"),sm=function(e,t,i,r){var s=r8[t];if("function"!=typeof s)throw new r7("unknown record type: "+t);if(!s(e,r))throw new r9(i+" must be a "+t);console.log(s(e,r),r)},sy=function(e){return e>=0?1:-1},sf=function(e,t){var i=e%t;return k.floor(i>=0?i:i+t)},sg={ToPrimitive:function(e){return sc(e)?e:arguments.length>1?sd(e,arguments[1]):sd(e)},ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return se(t)?0:0!==t&&si(t)?sy(t)*k.floor(k.abs(t)):t},ToInt32:function(e){return 0|this.ToNumber(e)},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);return se(t)||0===t||!si(t)?0:sf(sy(t)*k.floor(k.abs(t)),65536)},ToString:function(e){return sv(e)},ToObject:function(e){return this.CheckObjectCoercible(e),sp(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new s_(t||"Cannot call method on "+e);return e},IsCallable:sh,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:se(e)&&se(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var i in e)if(r6(e,i)&&!t[i])return!1;var r=r6(e,"[[Value]]"),s=r6(e,"[[Get]]")||r6(e,"[[Set]]");if(r&&s)throw new s_("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(sm(this,"Property Descriptor","Desc",e),!!r6(e,"[[Get]]")||!!r6(e,"[[Set]]"))},IsDataDescriptor:function(e){return void 0!==e&&(sm(this,"Property Descriptor","Desc",e),!!r6(e,"[[Value]]")||!!r6(e,"[[Writable]]"))},IsGenericDescriptor:function(e){return void 0!==e&&(sm(this,"Property Descriptor","Desc",e),!(this.IsAccessorDescriptor(e)||this.IsDataDescriptor(e)))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(sm(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new s_("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new s_("ToPropertyDescriptor requires an object");var t={};if(r6(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),r6(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),r6(e,"value")&&(t["[[Value]]"]=e.value),r6(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),r6(e,"get")){var i=e.get;if(void 0!==i&&!this.IsCallable(i))throw new b("getter must be a function");t["[[Get]]"]=i}if(r6(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new s_("setter must be a function");t["[[Set]]"]=r}if((r6(t,"[[Get]]")||r6(t,"[[Set]]"))&&(r6(t,"[[Value]]")||r6(t,"[[Writable]]")))throw new s_("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},sb=rM.call(Function.call,String.prototype.replace),sC=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,sT=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,sk=function(){return sb(sb(sg.ToString(sg.CheckObjectCoercible(this)),sC,""),sT,"")},sE=function(){return String.prototype.trim&&"\u200B"==="\u200B".trim()?String.prototype.trim:sk},sw=rM.call(Function.call,sE());rZ(sw,{getPolyfill:sE,implementation:sk,shim:function(){var e=sE();return rZ(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}});var sS=T.prototype.toString,sx=T.prototype.hasOwnProperty,sP=function(e,t,i){for(var r=0,s=e.length;r<s;r++)sx.call(e,r)&&(null==i?t(e[r],r,e):t.call(i,e[r],r,e))},sM=function(e,t,i){for(var r=0,s=e.length;r<s;r++)null==i?t(e.charAt(r),r,e):t.call(i,e.charAt(r),r,e)},sL=function(e,t,i){for(var r in e)sx.call(e,r)&&(null==i?t(e[r],r,e):t.call(i,e[r],r,e))},sA=function(e,t,i){var r;if(!sh(t))throw new b("iterator must be a function");arguments.length>=3&&(r=i),"[object Array]"===sS.call(e)?sP(e,t,r):"string"==typeof e?sM(e,t,r):sL(e,t,r)},sI=T.prototype.hasOwnProperty,sV=rw.exports,sj=function(e){if(!e)return{};var t={};return sA(sw(e).split("\n"),function(e){var i,r=e.indexOf(":"),s=sw(e.slice(0,r)).toLowerCase(),n=sw(e.slice(r+1));void 0===t[s]?t[s]=n:(i=t[s],"[object Array]"===T.prototype.toString.call(i))?t[s].push(n):t[s]=[t[s],n]}),t},sD=sF;function sB(e,t,i){var r,s,n=e;return(r=t,"[object Function]"===(s=rS.call(r))||"function"==typeof r&&"[object RegExp]"!==s||void 0!==v&&(r===v.setTimeout||r===v.alert||r===v.confirm||r===v.prompt))?(i=t,"string"==typeof e&&(n={uri:e})):n=function(){for(var e={},t=0;t<arguments.length;t++){var i=arguments[t];for(var r in i)sI.call(i,r)&&(e[r]=i[r])}return e}(t,{uri:e}),n.callback=i,n}function sF(e,t,i){return sN(t=sB(e,t,i))}function sN(e){if(void 0===e.callback)throw new g("callback argument missing");var t,i,r,s=!1,n=function(t,i,r){s||(s=!0,e.callback(t,i,r))},a={body:void 0,headers:{},statusCode:0,method:c,url:u,rawRequest:h};function o(e){return f(r),e instanceof g||(e=new g(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,a)}function l(){if(!i){f(r);var t=e.useXDR&&void 0===h.status?200:1223===h.status?204:h.status,s=a,o=null;return 0!==t?(s={body:function(){var e=void 0;if(e=h.response?h.response:h.responseText||function(e){if("document"===e.responseType)return e.responseXML;var t=204===e.status&&e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;return""!==e.responseType||t?null:e.responseXML}(h),v)try{e=JSON.parse(e)}catch(e){}return e}(),statusCode:t,method:c,headers:{},url:u,rawRequest:h},h.getAllResponseHeaders&&(s.headers=sj(h.getAllResponseHeaders()))):o=new g("Internal XMLHttpRequest Error"),n(o,s,s.body)}}var h=e.xhr||null;h||(h=e.cors||e.useXDR?new sF.XDomainRequest:new sF.XMLHttpRequest);var u=h.url=e.uri||e.url,c=h.method=e.method||"GET",d=e.body||e.data||null,p=h.headers=e.headers||{},_=!!e.sync,v=!1;if("json"in e&&(v=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==c&&"HEAD"!==c&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),d=JSON.stringify(e.json))),h.onreadystatechange=function(){4===h.readyState&&l()},h.onload=l,h.onerror=o,h.onprogress=function(){},h.ontimeout=o,h.open(c,u,!_,e.username,e.password),_||(h.withCredentials=!!e.withCredentials),!_&&e.timeout>0&&(r=y(function(){i=!0,h.abort("timeout");var e=new g("XMLHttpRequest timeout");e.code="ETIMEDOUT",o(e)},e.timeout)),h.setRequestHeader)for(t in p)p.hasOwnProperty(t)&&h.setRequestHeader(t,p[t]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new g("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(h.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(h),h.send(d),h}sF.XMLHttpRequest=sV.XMLHttpRequest||function(){},sF.XDomainRequest="withCredentials"in new sF.XMLHttpRequest?sF.XMLHttpRequest:sV.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],function(e){sF["delete"===e?"del":e]=function(t,i,r){return(i=sB(t,i,r)).method=e.toUpperCase(),sN(i)}});var sO=function(e,t){var i=new tF.WebVTT.Parser(tF,tF.vttjs,tF.WebVTT.StringDecoder()),r=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){r.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),r.length>0&&(tF.console&&tF.console.groupCollapsed&&tF.console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach(function(e){return tG.error(e)}),tF.console&&tF.console.groupEnd&&tF.console.groupEnd()),i.flush()},sR=function(e,t){var i={uri:e},r=rE(e);r&&(i.cors=r),sD(i,i2(this,function(e,i,r){if(e)return tG.error(e,i);if(t.elq=!0,"function"!=typeof tF.WebVTT){if(t.w){var s=function(){return sO(r,t)};t.w.on("vttjsloaded",s),t.w.on("vttjserror",function(){tG.error("vttjs failed to load, stopping trying to process "+t.src),t.w.off("vttjsloaded",s)})}}else sO(r,t)}))},s$=function(e){function t(i){if(void 0===i&&(i={}),!i.tech)throw new g("A tech was not provided.");var r,s=i4(i,{kind:rg[i.kind]||"subtitles",language:i.language||i.srclang||""}),n=rb[s.mode]||"disabled",a=s.default;("metadata"===s.kind||"chapters"===s.kind)&&(n="hidden");var o=r=e.call(this,s)||this;if(o.w=s.tech,ij)for(var l in t.prototype)"constructor"!==l&&(o[l]=t.prototype[l]);o.fA=[],o.wX=[];var h=new rm(o.fA),u=new rm(o.wX),c=!1,d=i2(o,function(){this.activeCues,c&&(this.trigger("cuechange"),c=!1)});return"disabled"!==n&&o.w.ready(function(){o.w.on("timeupdate",d)},!0),T.defineProperty(o,"default",{get:function(){return a},set:function(){}}),T.defineProperty(o,"mode",{get:function(){return n},set:function(e){var t=this;rb[e]&&("showing"===(n=e)&&this.w.ready(function(){t.w.on("timeupdate",d)},!0),this.trigger("modechange"))}}),T.defineProperty(o,"cues",{get:function(){return this.elq?h:null},set:function(){}}),T.defineProperty(o,"activeCues",{get:function(){if(!this.elq)return null;if(0===this.cues.length)return u;for(var e=this.w.currentTime(),t=[],i=0,r=this.cues.length;i<r;i++){var s=this.cues[i];s.startTime<=e&&s.endTime>=e?t.push(s):s.startTime===s.endTime&&s.startTime<=e&&s.startTime+.5>=e&&t.push(s)}if(c=!1,t.length!==this.wX.length)c=!0;else for(var n=0;n<t.length;n++)-1===this.wX.indexOf(t[n])&&(c=!0);return this.wX=t,u.k(this.wX),u},set:function(){}}),s.src?(o.src=s.src,sR(s.src,o)):o.elq=!0,o||i7(r)}re(t,e);var i=t.prototype;return i.addCue=function(e){var t=e;if(tF.vttjs&&!(e instanceof tF.vttjs.VTTCue)){for(var i in t=new tF.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)i in t||(t[i]=e[i]);t.id=e.id,t.S=e}var r=this.w.textTracks();if(r)for(var s=0;s<r.length;s++)r[s]!==this&&r[s].removeCue(t);this.fA.push(t),this.cues.k(this.fA)},i.removeCue=function(e){for(var t=this.fA.length;t--;){var i=this.fA[t];if(i===e||i.S&&i.S===e){this.fA.splice(t,1),this.cues.k(this.fA);break}}},t}(rC);s$.prototype.d={cuechange:"cuechange"};var sU=function(e){function t(i){void 0===i&&(i={});var r,s=e.call(this)||this,n=i7(s);if(ij)for(var a in n=tN.createElement("custom"),t.prototype)"constructor"!==a&&(n[a]=t.prototype[a]);var o=new s$(i);return(n.kind=o.kind,n.src=o.src,n.srclang=o.language,n.label=o.label,n.default=o.default,T.defineProperty(n,"readyState",{get:function(){return r}}),T.defineProperty(n,"track",{get:function(){return o}}),r=0,o.addEventListener("loadeddata",function(){r=2,n.trigger({type:"load",target:n})}),ij)?n||i7(s):s}return re(t,e),t}(i9);sU.prototype.d={load:"load"},sU.NONE=0,sU.LOADING=1,sU.LOADED=2,sU.ERROR=3;var sH=function(){function e(t){void 0===t&&(t=[]);var i=this;if(ij)for(var r in i=tN.createElement("custom"),e.prototype)"constructor"!==r&&(i[r]=e.prototype[r]);i.P=[],T.defineProperty(i,"length",{get:function(){return this.P.length}});for(var s=0,n=t.length;s<n;s++)i.M(t[s]);if(ij)return i}var t=e.prototype;return t.M=function(e){var t=this.P.length;""+t in this||T.defineProperty(this,t,{get:function(){return this.P[t]}}),-1===this.P.indexOf(e)&&this.P.push(e)},t.L=function(e){for(var t,i=0,r=this.P.length;i<r;i++)if(e===this.P[i].track){t=this.P[i];break}return t},t.A=function(e){for(var t=0,i=this.P.length;t<i;t++)if(e===this.P[t]){this.P.splice(t,1);break}},e}(),sz=function(e){function t(i,r){var s;if(void 0===i&&(i=[]),void 0===r&&(r=null),s=e.call(this)||this,!r&&(r=i7(s),ij))for(var n in r=tN.createElement("custom"),t.prototype)"constructor"!==n&&(r[n]=t.prototype[n]);r.py=[],T.defineProperty(r,"length",{get:function(){return this.py.length}});for(var a=0;a<i.length;a++)r.uG(i[a]);return r||i7(s)}re(t,e);var i=t.prototype;return i.uG=function(e){var t=this.py.length;""+t in this||T.defineProperty(this,t,{get:function(){return this.py[t]}}),-1===this.py.indexOf(e)&&(this.py.push(e),this.trigger({track:e,type:"addtrack"}))},i.uj=function(e){for(var t,i=0,r=this.length;i<r;i++)if(this[i]===e){(t=this[i]).off&&t.off(),this.py.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack"})},i.getTrackById=function(e){for(var t=null,i=0,r=this.length;i<r;i++){var s=this[i];if(s.id===e){t=s;break}}return t},t}(i9);for(var sW in sz.prototype.d={change:"change",addtrack:"addtrack",removetrack:"removetrack"},sz.prototype.d)sz.prototype["on"+sW]=null;var sq=function(e){function t(i){var r,s;if(void 0===i&&(i=[]),ij){for(var n in s=tN.createElement("custom"),sz.prototype)"constructor"!==n&&(s[n]=sz.prototype[n]);for(var a in t.prototype)"constructor"!==a&&(s[a]=t.prototype[a])}return(s=r=e.call(this,i,s)||this)||i7(r)}return re(t,e),t.prototype.uG=function(t){e.prototype.uG.call(this,t),t.addEventListener("modechange",i2(this,function(){this.trigger("change")}))},t}(sz),sQ=function(e,t){for(var i=0;i<e.length;i++)t.id!==e[i].id&&(e[i].selected=!1)},sG=function(e){function t(i){void 0===i&&(i=[]);for(var r,s,n=i.length-1;n>=0;n--)if(i[n].selected){sQ(i,i[n]);break}if(ij){for(var a in s=tN.createElement("custom"),sz.prototype)"constructor"!==a&&(s[a]=sz.prototype[a]);for(var o in t.prototype)"constructor"!==o&&(s[o]=t.prototype[o])}return(s=r=e.call(this,i,s)||this).I=!1,T.defineProperty(s,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return -1},set:function(){}}),s||i7(r)}re(t,e);var i=t.prototype;return i.uG=function(t){var i=this;t.selected&&sQ(this,t),e.prototype.uG.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",function(){i.I||(i.I=!0,sQ(i,t),i.I=!1,i.trigger("change"))})},i.addTrack=function(e){this.uG(e)},i.removeTrack=function(t){e.prototype.uj.call(this,t)},t}(sz),sX=function(e,t){for(var i=0;i<e.length;i++)t.id!==e[i].id&&(e[i].enabled=!1)},sK=function(e){function t(i){void 0===i&&(i=[]);for(var r,s,n=i.length-1;n>=0;n--)if(i[n].enabled){sX(i,i[n]);break}if(ij){for(var a in s=tN.createElement("custom"),sz.prototype)"constructor"!==a&&(s[a]=sz.prototype[a]);for(var o in t.prototype)"constructor"!==o&&(s[o]=t.prototype[o])}return(s=r=e.call(this,i,s)||this).I=!1,s||i7(r)}re(t,e);var i=t.prototype;return i.uG=function(t){var i=this;t.enabled&&sX(this,t),e.prototype.uG.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",function(){i.I||(i.I=!0,sX(i,t),i.I=!1,i.trigger("change"))})},i.addTrack=function(e){this.uG(e)},i.removeTrack=function(t){e.prototype.uj.call(this,t)},t}(sz),sY=void 0,sJ=function(e){function t(t,i){var r;return void 0===t&&(t={}),void 0===i&&(i=function(){}),t.reportTouchActivity=!1,(r=e.call(this,null,t,i)||this).j=!1,r.on("playing",function(){this.j=!0}),r.on("loadstart",function(){this.j=!1}),r.Ch=t.textTracks,r.CN=t.videoTracks,r.Cp=t.audioTracks,r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===t["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)}),!1===t.nativeCaptions&&(r.featuresNativeTextTracks=!1),r.featuresNativeTextTracks||r.emulateTextTracks(),r.D=new sq,r.initTextTrackListeners(),r.initTrackListeners(),t.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.h$=r.constructor.name||"Unknown Tech"),r}re(t,e);var i=t.prototype;return i.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},i.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},i.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(i2(this,function(){var e=this.bufferedPercent();this.B!==e&&this.trigger("progress"),this.B=e,1===e&&this.stopTrackingProgress()}),500)},i.onDurationChange=function(e){this.pC=this.duration()},i.buffered=function(){return rr(0,0)},i.bufferedPercent=function(){return rs(this.buffered(),this.pC)},i.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},i.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},i.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},i.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},i.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},i.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},i.clearTracks=function(e){var t=this;(e=[].concat(e)).forEach(function(e){for(var i=t[e+"Tracks"]()||[],r=i.length;r--;){var s=i[r];"text"===e&&t.removeRemoteTextTrack(s),i.uj(s)}})},i.cleanupAutoTextTracks=function(){for(var e=this.D||[],t=e.length;t--;){var i=e[t];this.removeRemoteTextTrack(i)}},i.reset=function(){},i.error=function(e){return void 0!==e&&(this.nu=new ru(e),this.trigger("error")),this.nu},i.played=function(){return this.j?rr(0,0):rr()},i.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},i.initTextTrackListeners=function(){var e=i2(this,function(){this.trigger("texttrackchange")}),t=this.textTracks();t&&(t.addEventListener("removetrack",e),t.addEventListener("addtrack",e),this.on("dispose",i2(this,function(){t.removeEventListener("removetrack",e),t.removeEventListener("addtrack",e)})))},i.initTrackListeners=function(){var e=this;["video","audio"].forEach(function(t){var i=function(){e.trigger(t+"trackchange")},r=e[t+"Tracks"]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),e.on("dispose",function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)})})},i.O=function(){var e=this;if(!tF.WebVTT)if(tN.body.contains(this.el())){if(!this.e["vtt.js"]&&tq(sY)&&T.keys(sY).length>0)return void this.trigger("vttjsloaded");var t=tN.createElement("script");t.src=this.e["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),tF.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.O)},i.emulateTextTracks=function(){var e=this,t=this.textTracks();if(t){var i=this.remoteTextTracks(),r=function(e){return t.uG(e.track)},s=function(e){return t.uj(e.track)};i.on("addtrack",r),i.on("removetrack",s),this.O();var n=function(){return e.trigger("texttrackchange")},a=function(){n();for(var e=0;e<t.length;e++){var i=t[e];i.removeEventListener("cuechange",n),"showing"===i.mode&&i.addEventListener("cuechange",n)}};a(),t.addEventListener("change",a),t.addEventListener("addtrack",a),t.addEventListener("removetrack",a),this.on("dispose",function(){i.off("addtrack",r),i.off("removetrack",s),t.removeEventListener("change",a),t.removeEventListener("addtrack",a),t.removeEventListener("removetrack",a);for(var e=0;e<t.length;e++)t[e].removeEventListener("cuechange",n)})}},i.videoTracks=function(){return this.CN=this.CN||new sG,this.CN},i.audioTracks=function(){return this.Cp=this.Cp||new sK,this.Cp},i.textTracks=function(){return this.Ch=this.Ch||new sq,this.Ch},i.remoteTextTracks=function(){return this.R=this.R||new sq,this.R},i.remoteTextTrackEls=function(){return this.H=this.H||new sH,this.H},i.addTextTrack=function(e,t,i){var r,s,n;if(!e)throw new g("TextTrack kind is required but was not provided");return void 0===r&&(r={}),s=this.textTracks(),r.kind=e,t&&(r.label=t),i&&(r.language=i),r.tech=this,n=new s$(r),s.uG(n),n},i.createRemoteTextTrack=function(e){return new sU(i4(e,{tech:this}))},i.addRemoteTextTrack=function(e,t){void 0===e&&(e={});var i=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(tG.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().M(i),this.remoteTextTracks().uG(i.track),!0!==t&&this.D.uG(i.track),i},i.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().L(e);this.remoteTextTrackEls().A(t),this.remoteTextTracks().uj(e),this.D.uj(e)},i.getVideoPlaybackQuality=function(){return{}},i.setPoster=function(){},i.playsinline=function(){},i.setPlaysinline=function(){},i.canPlayType=function(){return""},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,i){if(t.z||(t.z={}),!t.isTech(i))throw new g("Tech "+e+" must be a Tech");return t.z[e]=i,i},t.getTech=function(e){return t.z&&t.z[e]?t.z[e]:tF&&tF.videojs&&tF.videojs[e]?(tG.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),tF.videojs[e]):void 0},t}(i6);sJ.prototype.Ch,sJ.prototype.Cp,sJ.prototype.CN,sJ.prototype.featuresVolumeControl=!0,sJ.prototype.featuresFullscreenResize=!1,sJ.prototype.featuresPlaybackRate=!1,sJ.prototype.featuresProgressEvents=!1,sJ.prototype.featuresTimeupdateEvents=!1,sJ.prototype.featuresNativeTextTracks=!1,sJ.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===i&&(i=r.length),r.splice(i,0,t)},e.canPlayType=function(t){for(var i,r=e.sourceHandlers||[],s=0;s<r.length;s++)if(i=r[s].canPlayType(t))return i;return""},e.selectSourceHandler=function(t,i){for(var r=e.sourceHandlers||[],s=0;s<r.length;s++)if(r[s].canHandleSource(t,i))return r[s];return null},e.canPlaySource=function(t,i){var r=e.selectSourceHandler(t,i);return r?r.canHandleSource(t,i):""},["seekable","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.W&&this.W[e]?this.W[e].apply(this.W,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var i=e.selectSourceHandler(t,this.e);return i||(e.nativeSourceHandler?i=e.nativeSourceHandler:tG.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),i!==e.nativeSourceHandler&&(this.Cy=t,this.off(this.el_,"loadstart",e.prototype.q),this.off(this.el_,"loadstart",e.prototype.X),this.one(this.el_,"loadstart",e.prototype.q)),this.W=i.handleSource(t,this,this.e),this.on("dispose",this.disposeSourceHandler),this},e.prototype.q=function(){this.one(this.el_,"loadstart",e.prototype.X)},e.prototype.X=function(){this.disposeSourceHandler(),this.one(this.el_,"loadstart",e.prototype.X)},e.prototype.disposeSourceHandler=function(){this.Cy&&(this.clearTracks(["audio","video"]),this.Cy=null),this.cleanupAutoTextTracks(),this.W&&(this.off(this.el_,"loadstart",e.prototype.q),this.off(this.el_,"loadstart",e.prototype.X),this.W.dispose&&this.W.dispose(),this.W=null)}},i6.registerComponent("Tech",sJ),i6.registerComponent("MediaTechController",sJ),sJ.registerTech("Tech",sJ);var sZ=function(e){function t(t,i,r){var s=e.call(this,t,i,r)||this;if(i.playerOptions.sources&&0!==i.playerOptions.sources.length)t.src(i.playerOptions.sources);else for(var n=0,a=i.playerOptions.techOrder;n<a.length;n++){var o=i5(a[n]),l=sJ.getTech(o);if(o||(l=i6.getComponent(o)),l&&l.isSupported()){t.ee(o);break}}return s}return re(t,e),t}(i6);i6.registerComponent("MediaLoader",sZ);var s0=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.emitTapEvents(),r.on(t,"languagechange",r.handleLanguagechange),r.enable(),r}re(t,e);var i=t.prototype;return i.createEl=function(t,i,r){void 0===t&&(t="div"),void 0===i&&(i={}),void 0===r&&(r={}),i=tz({className:this.buildCSSClass(),tabIndex:0},i),"button"===t&&tG.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=tz({role:"button","aria-live":"polite"},r),this.et=i.tabIndex;var s=e.prototype.createEl.call(this,t,i,r);return this.createControlTextEl(s),s},i.createControlTextEl=function(e){return this.er=t2("span",{className:"vjs-control-text"}),e&&e.appendChild(this.er),this.controlText(this.es,e),this.er},i.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.es||"Need Text";var i=this.localize(e);return this.es=e,this.er.innerHTML=i,this.nonIconControl||t.setAttribute("title",i),this},i.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},i.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.et&&this.el_.setAttribute("tabIndex",this.et),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this},i.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.et&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},i.handleLanguagechange=function(){this.controlText(this.es)},i.handleClick=function(e){},i.handleFocus=function(e){iQ(tN,"keydown",i2(this,this.handleKeyPress))},i.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleClick(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},i.handleBlur=function(e){iG(tN,"keydown",i2(this,this.handleKeyPress))},t}(i6);i6.registerComponent("ClickableComponent",s0);var s1=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.update(),t.on("posterchange",i2(i7(r),r.update)),r}re(t,e);var i=t.prototype;return i.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},i.createEl=function(){var e=t2("div",{className:"vjs-poster",tabIndex:-1});return iO||(this.eo=t2("img"),e.appendChild(this.eo)),e},i.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},i.setSrc=function(e){if(this.eo)this.eo.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},i.handleClick=function(e){this.R5.controls()&&(this.R5.paused()?this.R5.play():this.R5.pause())},t}(s0);i6.registerComponent("PosterImage",s1);var s2="#222",s3="#ccc",s5={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function s4(e,t){return"rgba("+E(e[1]+e[1],16)+","+E(e[2]+e[2],16)+","+E(e[3]+e[3],16)+","+t+")"}function s6(e,t,i){try{e.style[t]=i}catch(e){return}}var s9=function(e){function t(t,i,r){var s=e.call(this,t,i,r)||this;return t.on("loadstart",i2(i7(s),s.toggleDisplay)),t.on("texttrackchange",i2(i7(s),s.updateDisplay)),t.ready(i2(i7(s),function(){if(t.w&&t.w.featuresNativeTextTracks)return void this.hide();t.on("fullscreenchange",i2(this,this.updateDisplay));for(var e,i,r=this.e.playerOptions.tracks||[],s=0;s<r.length;s++)this.R5.addRemoteTextTrack(r[s],!0);var n={captions:1,subtitles:1},a=this.R5.textTracks();if(a){for(var o=0;o<a.length;o++){var l=a[o];l.default&&("descriptions"!==l.kind||e?l.kind in n&&!i&&(i=l):e=l)}i?i.mode="showing":e&&(e.mode="showing")}})),s}re(t,e);var i=t.prototype;return i.toggleDisplay=function(){this.R5.w&&this.R5.w.featuresNativeTextTracks?this.hide():this.show()},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},i.clearDisplay=function(){"function"==typeof tF.WebVTT&&tF.WebVTT.processCues(tF,[],this.el_)},i.updateDisplay=function(){var e=this.R5.textTracks();if(this.clearDisplay(),e){for(var t=null,i=null,r=e.length;r--;){var s=e[r];"showing"===s.mode&&("descriptions"===s.kind?t=s:i=s)}i?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(i)):t&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(t))}},i.updateForTrack=function(e){if("function"==typeof tF.WebVTT&&e.activeCues){for(var t=this.R5.textTrackSettings.getValues(),i=[],r=0;r<e.activeCues.length;r++)i.push(e.activeCues[r]);tF.WebVTT.processCues(tF,i,this.el_);for(var s=i.length;s--;){var n=i[s];if(n){var a=n.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&s6(a.firstChild,"color",s4(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&s6(a.firstChild,"backgroundColor",s4(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?s6(a,"backgroundColor",s4(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px "+s2+", 2px 2px 4px "+s2+", 2px 2px 5px "+s2:"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px "+s2+", 2px 2px "+s2+", 3px 3px "+s2:"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px "+s3+", 0 1px "+s3+", -1px -1px "+s2+", 0 -1px "+s2:"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px "+s2+", 0 0 4px "+s2+", 0 0 4px "+s2+", 0 0 4px "+s2)),t.fontPercent&&1!==t.fontPercent){var o=tF.parseFloat(a.style.fontSize);a.style.fontSize=o*t.fontPercent+"px",a.style.height="auto",a.style.top="auto",a.style.bottom="2px"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=s5[t.fontFamily])}}}},t}(i6);i6.registerComponent("TextTrackDisplay",s9);var s7=function(e){function t(){return e.apply(this,arguments)||this}return re(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},t}(i6);i6.registerComponent("LoadingSpinner",s7);var s8=function(e){function t(){return e.apply(this,arguments)||this}re(t,e);var i=t.prototype;return i.createEl=function(e,t,i){void 0===e&&(e="button"),void 0===t&&(t={}),void 0===i&&(i={}),t=tz({className:this.buildCSSClass()},t),"button"!==e&&(tG.warn("Creating a Button with an HTML element of "+e+" is deprecated; use ClickableComponent instead."),t=tz({tabIndex:0},t),i=tz({role:"button"},i)),i=tz({type:"button","aria-live":"polite"},i);var r=i6.prototype.createEl.call(this,e,t,i);return this.createControlTextEl(r),r},i.addChild=function(e,t){void 0===t&&(t={});var i=this.constructor.name;return tG.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),i6.prototype.addChild.call(this,e,t)},i.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},i.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},i.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(s0);i6.registerComponent("Button",s8);var ne=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.eu=!1,r.on("mousedown",r.handleMouseDown),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-big-play-button"},i.handleClick=function(e){var t=this;if(this.eu&&e.clientX&&e.clientY)return void this.R5.play();var i=this.R5.getChild("controlBar"),r=i&&i.getChild("playToggle");this.one(this.R5,"play",function(){r?r.focus():t.R5.focus()}),this.R5.play()},i.handleKeyPress=function(t){this.eu=!1,e.prototype.handleKeyPress.call(this,t)},i.handleMouseDown=function(e){this.eu=!0},t}(s8);ne.prototype.es="Play Video",i6.registerComponent("BigPlayButton",ne);var nt=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.controlText(i&&i.controlText||"Close"),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(s8);i6.registerComponent("CloseButton",nt);var ni=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"play",r.handlePlay),r.on(t,"pause",r.handlePause),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.R5.paused()?this.R5.play():this.R5.pause()},i.handlePlay=function(e){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},i.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t}(s8);function nr(e,t){void 0===t&&(t=e),e=e<0?0:e;var i=k.floor(e%60),r=k.floor(e/60%60),s=k.floor(e/3600),n=k.floor(t/60%60),a=k.floor(t/3600);return(S(e)||1/0===e)&&(s=r=i="-"),r=(((s=s>0||a>0?s+":":"")||n>=10)&&r<10?"0"+r:r)+":",s+r+(i=i<10?"0"+i:i)}ni.prototype.es="Play",i6.registerComponent("PlayToggle",ni);var ns=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"timeupdate",r.updateContent),r.on(t,"languagechange",r.updateContent),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.o=t2("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),t.appendChild(this.o),t},i.updateContent=function(e){var t=this.R5.scrubbing()?this.R5.getCache().currentTime:this.R5.currentTime(),i=this.localize("Current Time"),r=nr(t,this.R5.duration());r!==this.ec&&(this.ec=r,this.o.innerHTML='<span class="vjs-control-text">'+i+"</span> "+r)},t}(i6);i6.registerComponent("CurrentTimeDisplay",ns);var nn=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"durationchange",r.updateContent),r.on(t,"timeupdate",r.updateContent),r.on(t,"loadedmetadata",r.updateContent),r.on(t,"languagechange",r.updateContent),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.o=t2("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),t.appendChild(this.o),t},i.updateContent=function(e){var t=this.R5.duration();if(t&&this.pC!==t){this.pC=t;var i=this.localize("Duration Time"),r=nr(t);this.o.innerHTML='<span class="vjs-control-text">'+i+"</span> "+r}},t}(i6);i6.registerComponent("DurationDisplay",nn);var na=function(e){function t(){return e.apply(this,arguments)||this}return re(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(i6);i6.registerComponent("TimeDivider",na);var no=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"timeupdate",r.updateContent),r.on(t,"durationchange",r.updateContent),r.on(t,"languagechange",r.updateContent),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.o=t2("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),t.appendChild(this.o),t},i.updateContent=function(e){if(this.R5.duration()){var t=this.localize("Remaining Time"),i=nr(this.R5.remainingTime());i!==this.ec&&(this.ec=i,this.o.innerHTML='<span class="vjs-control-text">'+t+"</span> -"+i)}},t}(i6);i6.registerComponent("RemainingTimeDisplay",no);var nl=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r.on(r.player(),"languagechange",r.handleLanguagechange),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.o=t2("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.er=t2("span",{className:"vjs-control-text",innerHTML:this.localize("Stream Type")}),this.em=tN.createTextNode(this.localize("LIVE")),this.o.appendChild(this.er),this.o.appendChild(this.em),t.appendChild(this.o),t},i.updateShowing=function(e){1/0===this.player().duration()?this.show():this.hide()},i.handleLanguagechange=function(){this.er.innerHTML=this.localize("Stream Type"),this.em.innerHTML=this.localize("LIVE")},t}(i6);i6.registerComponent("LiveDisplay",nl);var nh=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.bar=r.getChild(r.e.barName),r.vertical(!!r.e.vertical),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on("focus",r.handleFocus),r.on("blur",r.handleBlur),r.on("click",r.handleClick),r.on(t,"controlsvisible",r.update),r.on(t,r.playerEvent,r.update),r}re(t,e);var i=t.prototype;return i.createEl=function(t,i,r){return void 0===i&&(i={}),void 0===r&&(r={}),i.className=i.className+" vjs-slider",i=tz({tabIndex:0},i),r=tz({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,i,r)},i.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;e.preventDefault(),tN.body.focus(),tN.onselectstart=function(){return!1},this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},i.handleMouseMove=function(e){},i.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;tN.onselectstart=function(){return!0},this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},i.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!=typeof e||e!=e||e<0||1/0===e)&&(e=0);var i=(100*e).toFixed(2)+"%";this.vertical()?t.el().style.height=i:t.el().style.width=i}}},i.calculateDistance=function(e){var t=iu(this.el_,e);return this.vertical()?t.y:t.x},i.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},i.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):(38===e.which||39===e.which)&&(e.preventDefault(),this.stepForward())},i.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},i.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},i.vertical=function(e){return void 0===e?this.cF||!1:(this.cF=!!e,this.cF?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},t}(i6);function nu(e,t){if(!e||!t)return"";if("function"==typeof tF.getComputedStyle){var i=tF.getComputedStyle(e);return i?i[t]:""}return e.currentStyle[t]||""}i6.registerComponent("Slider",nh);var nc=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.eq=[],r.on(t,"progress",r.update),r.on(t,"languagechange",r.handleLanguagechange),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"});return this.te=t2("span",{innerHTML:this.localize("Loaded")}),this.tt=tN.createTextNode(": 0%"),this.er=t2("span",{className:"vjs-control-text"}),this.er.appendChild(this.te),this.er.appendChild(this.tt),t.appendChild(this.er),t},i.update=function(e){var t=this.R5.buffered(),i=this.R5.duration(),r=this.R5.bufferedEnd(),s=this.eq,n=function(e,t){var i=e/t||0;return(i>=1?1:i)*100+"%"};this.el_.style.width=n(r,i);for(var a=0;a<t.length;a++){var o=t.start(a),l=t.end(a),h=s[a];h||(h=this.el_.appendChild(t2()),s[a]=h),h.style.left=n(o,r),h.style.width=n(l-o,r)}for(var u=s.length;u>t.length;u--)this.el_.removeChild(s[u-1]);s.length=t.length},i.handleLanguagechange=function(){this.te.innerHTML=this.localize("Loaded")},t}(i6);i6.registerComponent("LoadProgressBar",nc);var nd=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.updateDataAttr(),r.on(t,"timeupdate",r.updateDataAttr),r.on(t,"languagechange",r.handleLanguagechange),t.ready(i2(i7(r),r.updateDataAttr)),i.playerOptions&&i.playerOptions.controlBar&&i.playerOptions.controlBar.progressControl&&i.playerOptions.controlBar.progressControl.keepTooltipsInside&&(r.keepTooltipsInside=i.playerOptions.controlBar.progressControl.keepTooltipsInside),r.keepTooltipsInside&&r.addClass("vjs-keep-tooltips-inside"),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"});return this.ti=t2("span",{innerHTML:this.localize("Progress")}),this.tr=tN.createTextNode(": 0%"),this.er=t2("span",{className:"vjs-control-text"}),this.er.appendChild(this.ti),this.er.appendChild(this.tr),t.appendChild(this.er),t},i.updateDataAttr=function(e){var t=this.R5.scrubbing()?this.R5.getCache().currentTime:this.R5.currentTime();this.el_.setAttribute("data-current-time",nr(t,this.R5.duration()))},i.handleLanguagechange=function(){this.ti.innerHTML=this.localize("Progress")},t}(i6);i6.registerComponent("PlayProgressBar",nd);var np=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.updateDataAttr(),r.on(t,"timeupdate",r.updateDataAttr),r.on(t,"languagechange",r.handleLanguagechange),t.ready(i2(i7(r),r.updateDataAttr)),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar"});return this.tooltip=t2("div",{className:"vjs-time-tooltip"}),this.ti=t2("span",{innerHTML:this.localize("Progress")}),this.tr=tN.createTextNode(": 0%"),this.er=t2("span",{className:"vjs-control-text"}),this.er.appendChild(this.ti),this.er.appendChild(this.tr),t.appendChild(this.tooltip),t.appendChild(this.er),t},i.updateDataAttr=function(e){var t=nr(this.R5.scrubbing()?this.R5.getCache().currentTime:this.R5.currentTime(),this.R5.duration());this.el_.setAttribute("data-current-time",t),this.tooltip.innerHTML=t},i.handleLanguagechange=function(){this.ti.innerHTML=this.localize("Progress")},t}(i6);i6.registerComponent("TooltipProgressBar",np);var n_=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"timeupdate",r.updateProgress),r.on(t,"ended",r.updateProgress),t.ready(i2(i7(r),r.updateProgress)),i.playerOptions&&i.playerOptions.controlBar&&i.playerOptions.controlBar.progressControl&&i.playerOptions.controlBar.progressControl.keepTooltipsInside&&(r.keepTooltipsInside=i.playerOptions.controlBar.progressControl.keepTooltipsInside),r.keepTooltipsInside&&(r.tooltipProgressBar=r.addChild("TooltipProgressBar")),r}re(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},i.updateProgress=function(e){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var t=w(nu(this.player().el(),"width")),i=w(nu(this.tooltipProgressBar.tooltip,"width")),r=this.tooltipProgressBar.el().style;r.maxWidth=k.floor(t-i/2)+"px",r.minWidth=k.ceil(i/2)+"px",r.right="-"+i/2+"px"}},i.updateAriaAttributes=function(e){var t=this.R5.scrubbing()?this.R5.getCache().currentTime:this.R5.currentTime();e.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),e.setAttribute("aria-valuetext",nr(t,this.R5.duration()))},i.getPercent=function(){var e=this.R5.currentTime()/this.R5.duration();return e>=1?1:e},i.handleMouseDown=function(t){this.R5.scrubbing(!0),this.videoWasPlaying=!this.R5.paused(),this.R5.pause(),e.prototype.handleMouseDown.call(this,t)},i.handleMouseMove=function(e){var t=this.calculateDistance(e)*this.R5.duration();t===this.R5.duration()&&(t-=.1),this.R5.currentTime(t)},i.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),this.R5.scrubbing(!1),this.videoWasPlaying&&this.R5.play()},i.stepForward=function(){this.R5.currentTime(this.R5.currentTime()+5)},i.stepBack=function(){this.R5.currentTime(this.R5.currentTime()-5)},t}(nh);n_.prototype.e={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},n_.prototype.playerEvent="timeupdate",i6.registerComponent("SeekBar",n_);var nv=function(e){function t(t,i){var r=e.call(this,t,i)||this;return i.playerOptions&&i.playerOptions.controlBar&&i.playerOptions.controlBar.progressControl&&i.playerOptions.controlBar.progressControl.keepTooltipsInside&&(r.keepTooltipsInside=i.playerOptions.controlBar.progressControl.keepTooltipsInside),r.keepTooltipsInside&&(r.tooltip=t2("div",{className:"vjs-time-tooltip"}),r.el().appendChild(r.tooltip),r.addClass("vjs-keep-tooltips-inside")),r.update(0,0),t.on("ready",function(){r.on(t.controlBar.progressControl.el(),"mousemove",i3(i2(i7(r),r.handleMouseMove),25))}),r}re(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},i.handleMouseMove=function(e){var t=this.R5.duration(),i=this.calculateDistance(e)*t,r=e.pageX-ih(this.el().parentNode).left;this.update(i,r)},i.update=function(e,t){var i=nr(e,this.R5.duration());if(this.el().style.left=t+"px",this.el().setAttribute("data-current-time",i),this.keepTooltipsInside){var r=t-this.ts(t)+1,s=w(nu(this.tooltip,"width"))/2;this.tooltip.innerHTML=i,this.tooltip.style.right="-"+(s-r)+"px"}},i.calculateDistance=function(e){return iu(this.el().parentNode,e).x},i.ts=function(e){if(!this.keepTooltipsInside)return e;var t=w(nu(this.player().el(),"width")),i=w(nu(this.tooltip,"width"))/2,r=e;return e<i?r=k.ceil(i):e>t-i&&(r=k.floor(t-i)),r},t}(i6);i6.registerComponent("MouseTimeDisplay",nv);var nm=function(e){function t(){return e.apply(this,arguments)||this}return re(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t}(i6);nm.prototype.e={children:["seekBar"]},i6.registerComponent("ProgressControl",nm);var ny=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"fullscreenchange",r.handleFullscreenChange),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},i.handleFullscreenChange=function(e){this.R5.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},i.handleClick=function(e){this.R5.isFullscreen()?this.R5.exitFullscreen():this.R5.requestFullscreen()},t}(s8);ny.prototype.es="Fullscreen",i6.registerComponent("FullscreenToggle",ny);var nf=function(e){function t(){return e.apply(this,arguments)||this}return re(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(i6);i6.registerComponent("VolumeLevel",nf);var ng=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"volumechange",r.updateARIAAttributes),t.ready(i2(i7(r),r.updateARIAAttributes)),r}re(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},i.handleMouseMove=function(e){this.checkMuted(),this.R5.volume(this.calculateDistance(e))},i.checkMuted=function(){this.R5.muted()&&this.R5.muted(!1)},i.getPercent=function(){return this.R5.muted()?0:this.R5.volume()},i.stepForward=function(){this.checkMuted(),this.R5.volume(this.R5.volume()+.1)},i.stepBack=function(){this.checkMuted(),this.R5.volume(this.R5.volume()-.1)},i.updateARIAAttributes=function(e){var t=(100*this.R5.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t}(nh);ng.prototype.e={children:["volumeLevel"],barName:"volumeLevel"},ng.prototype.playerEvent="volumechange",i6.registerComponent("VolumeBar",ng);var nb=function(e){function t(t,i){var r=e.call(this,t,i)||this;return t.w&&!1===t.w.featuresVolumeControl&&r.addClass("vjs-hidden"),r.on(t,"loadstart",function(){!1===t.w.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),r}return re(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},t}(i6);nb.prototype.e={children:["volumeBar"]},i6.registerComponent("VolumeControl",nb);var nC=function(e){function t(){return e.apply(this,arguments)||this}re(t,e);var i=t.prototype;return i.addItem=function(e){this.addChild(e),e.on("click",i2(this,function(){this.unlockShowing()}))},i.createEl=function(){var t=this.e.contentElType||"ul";this.o=t2(t,{className:"vjs-menu-content"});var i=e.prototype.createEl.call(this,"div",{append:this.o,className:"vjs-menu"});return i.appendChild(this.o),iQ(i,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),i},t}(i6);i6.registerComponent("Popup",nC);var nT=function(e){function t(t,i){var r;return void 0===i&&(i={}),(r=e.call(this,t,i)||this).update(),r}re(t,e);var i=t.prototype;return i.update=function(){var e=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=e,this.addChild(e),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},i.createPopup=function(){},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},i.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.e.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},t}(s0);i6.registerComponent("PopupButton",nT);var nk=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"volumechange",r.update),t.w&&!1===t.w.featuresVolumeControl&&r.addClass("vjs-hidden"),r.on(t,"loadstart",function(){this.update(),!1===t.w.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.R5.muted(!this.R5.muted())},i.update=function(e){var t=this.R5.volume(),i=3;this.R5.muted()?i=0:t<.33?i=1:t<.67&&(i=2);var r=this.R5.muted()?"Unmute":"Mute";this.controlText()!==r&&this.controlText(r);for(var s=0;s<4;s++)ii(this.el_,"vjs-vol-"+s);it(this.el_,"vjs-vol-"+i)},t}(s8);nk.prototype.es="Mute",i6.registerComponent("MuteToggle",nk);var nE=function(e){function t(t,i){var r;function s(){t.w&&!1===t.w.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}return void 0===i&&(i={}),void 0===i.inline&&(i.inline=!0),void 0===i.vertical&&(i.inline?i.vertical=!1:i.vertical=!0),i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=!!i.vertical,(r=e.call(this,t,i)||this).on(t,"volumechange",r.volumeUpdate),r.on(t,"loadstart",r.volumeUpdate),s.call(i7(r)),r.on(t,"loadstart",s),r.on(r.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),r.on(r.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),r.on(r.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),r.on(r.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){var t="";return t=this.e.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+e.prototype.buildCSSClass.call(this)+" "+t},i.createPopup=function(){var e=new nC(this.R5,{contentElType:"div"}),t=new ng(this.R5,this.e.volumeBar);return e.addChild(t),this.menuContent=e,this.volumeBar=t,this.attachVolumeBarEvents(),e},i.handleClick=function(t){nk.prototype.handleClick.call(this),e.prototype.handleClick.call(this)},i.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],i2(this,this.handleMouseDown))},i.handleMouseDown=function(e){this.on(["mousemove","touchmove"],i2(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},i.handleMouseUp=function(e){this.off(["mousemove","touchmove"],i2(this.volumeBar,this.volumeBar.handleMouseMove))},t}(nT);nE.prototype.volumeUpdate=nk.prototype.update,nE.prototype.es="Mute",i6.registerComponent("VolumeMenuButton",nE);var nw=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.tn=-1,r.on("keydown",r.handleKeyPress),r}re(t,e);var i=t.prototype;return i.addItem=function(e){this.addChild(e),e.on("click",i2(this,function(e){this.unlockShowing()}))},i.createEl=function(){var t=this.e.contentElType||"ul";this.o=t2(t,{className:"vjs-menu-content"}),this.o.setAttribute("role","menu");var i=e.prototype.createEl.call(this,"div",{append:this.o,className:"vjs-menu"});return i.setAttribute("role","presentation"),i.appendChild(this.o),iQ(i,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),i},i.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):(38===e.which||39===e.which)&&(e.preventDefault(),this.stepBack())},i.stepForward=function(){var e=0;void 0!==this.tn&&(e=this.tn+1),this.focus(e)},i.stepBack=function(){var e=0;void 0!==this.tn&&(e=this.tn-1),this.focus(e)},i.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className)&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.tn=e,t[e].el_.focus())},t}(i6);i6.registerComponent("Menu",nw);var nS=function(e){function t(t,i){var r;return void 0===i&&(i={}),(r=e.call(this,t,i)||this).update(),r.uX=!0,r.el_.setAttribute("aria-haspopup","true"),r.el_.setAttribute("role","menuitem"),r.on("keydown",r.handleSubmenuKeyPress),r}re(t,e);var i=t.prototype;return i.update=function(){var e=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=e,this.addChild(e),this.ta=!1,this.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.to?this.hide():this.show()},i.createMenu=function(){var e=new nw(this.R5);if(this.to=0,this.e.title){var t=t2("li",{className:"vjs-menu-title",innerHTML:i5(this.e.title),tabIndex:-1});this.to+=1,e.h4.unshift(t),t5(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)e.addItem(this.items[i]);return e},i.createItems=function(){},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},i.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.e.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",i2(this,function(e){this.unpressButton(),this.el_.blur()})),this.ta?this.unpressButton():this.pressButton()},i.handleKeyPress=function(t){27===t.which||9===t.which?(this.ta&&this.unpressButton(),9!==t.which&&t.preventDefault()):38===t.which||40===t.which?this.ta||(this.pressButton(),t.preventDefault()):e.prototype.handleKeyPress.call(this,t)},i.handleSubmenuKeyPress=function(e){(27===e.which||9===e.which)&&(this.ta&&this.unpressButton(),9!==e.which&&e.preventDefault())},i.pressButton=function(){this.uX&&(this.ta=!0,this.menu.lockShowing(),this.el_.setAttribute("aria-expanded","true"),this.menu.focus())},i.unpressButton=function(){this.uX&&(this.ta=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.el_.focus())},i.disable=function(){return this.ta=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.uX=!1,e.prototype.disable.call(this)},i.enable=function(){return this.uX=!0,e.prototype.enable.call(this)},t}(s0);i6.registerComponent("MenuButton",nS);var nx=function(e){function t(t,i){var r,s=i.tracks;if((r=e.call(this,t,i)||this).items.length<=1&&r.hide(),!s)return i7(r);var n=i2(i7(r),r.update);return s.addEventListener("removetrack",n),s.addEventListener("addtrack",n),r.R5.on("dispose",function(){s.removeEventListener("removetrack",n),s.removeEventListener("addtrack",n)}),r}return re(t,e),t}(nS);i6.registerComponent("TrackButton",nx);var nP=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.selectable=i.selectable,r.selected(i.selected),r.selectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitem"),r}re(t,e);var i=t.prototype;return i.createEl=function(t,i,r){this.nonIconControl=!0;var s=e.prototype.createEl.call(this,"li",tz({className:"vjs-menu-item",tabIndex:-1},i),r);return this.tl=tN.createTextNode(this.localize(this.e.label)),s.appendChild(this.tl),s},i.handleClick=function(e){this.selected(!0)},i.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText("")))},i.handleLanguagechange=function(){e.prototype.handleLanguagechange.call(this),this.tl.innerHTML=this.localize(this.e.label)},t}(s0);i6.registerComponent("MenuItem",nP);var nM=function(e){function t(t,i){var r,s,n=i.track,a=t.textTracks();if(i.label=n.label||n.language||"Unknown",i.selected=n.default||"showing"===n.mode,(r=e.call(this,t,i)||this).track=n,a){var o=i2(i7(r),r.handleTracksChange);t.on(["loadstart","texttrackchange"],o),a.addEventListener("change",o),r.on("dispose",function(){a.removeEventListener("change",o)})}return a&&void 0===a.onchange&&r.on(["tap","click"],function(){if("object"!=typeof tF.Event)try{s=new tF.Event("change")}catch(e){}s||(s=tN.createEvent("Event")).initEvent("change",!0,!0),a.dispatchEvent(s)}),r}re(t,e);var i=t.prototype;return i.handleClick=function(t){var i=this.track.kind,r=this.R5.textTracks();if(e.prototype.handleClick.call(this,t),r)for(var s=0;s<r.length;s++){var n=r[s];n.kind===i&&(n===this.track?"showing"!==n.mode&&(n.mode="showing"):"disabled"!==n.mode&&(n.mode="disabled"))}},i.handleTracksChange=function(e){this.selected("showing"===this.track.mode)},t}(nP);i6.registerComponent("TextTrackMenuItem",nM);var nL=function(e){function t(t,i){var r;return i.track={player:t,kind:i.kind,label:i.kind+" off",default:!1,mode:"disabled"},i.selectable=!0,(r=e.call(this,t,i)||this).selected(!0),r}return re(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!0,r=0,s=t.length;r<s;r++){var n=t[r];if(n.kind===this.track.kind&&"showing"===n.mode){i=!1;break}}this.selected(i)},t}(nM);i6.registerComponent("OffTextTrackMenuItem",nL);var nA=function(e){function t(t,i){return void 0===i&&(i={}),i.tracks=t.textTracks(),e.call(this,t,i)||this}return re(t,e),t.prototype.createItems=function(e){void 0===e&&(e=[]),e.push(new nL(this.R5,{kind:this.uJ})),this.to+=1;var t=this.R5.textTracks();if(!t)return e;for(var i=0;i<t.length;i++){var r=t[i];r.kind===this.uJ&&e.push(new nM(this.R5,{track:r,selectable:!0}))}return e},t}(nx);i6.registerComponent("TextTrackButton",nA);var nI=function(e){function t(t,i){var r,s=i.track,n=i.cue,a=t.currentTime();return i.selectable=!0,i.label=n.text,i.selected=n.startTime<=a&&a<n.endTime,(r=e.call(this,t,i)||this).track=s,r.cue=n,s.addEventListener("cuechange",i2(i7(r),r.update)),r}re(t,e);var i=t.prototype;return i.handleClick=function(t){e.prototype.handleClick.call(this),this.R5.currentTime(this.cue.startTime),this.update(this.cue.startTime)},i.update=function(e){var t=this.cue,i=this.R5.currentTime();this.selected(t.startTime<=i&&i<t.endTime)},t}(nP);i6.registerComponent("ChaptersTrackMenuItem",nI);var nV=function(e){function t(t,i,r){var s=e.call(this,t,i,r)||this;return s.el_.setAttribute("aria-label","Chapters Menu"),s}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},i.update=function(t){(!this.uF||t&&("addtrack"===t.type||"removetrack"===t.type))&&this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},i.setTrack=function(e){if(this.uF!==e){if(this.th||(this.th=this.update.bind(this)),this.uF){var t=this.R5.remoteTextTrackEls().L(this.uF);t&&t.removeEventListener("load",this.th),this.uF=null}if(this.uF=e,this.uF){this.uF.mode="hidden";var i=this.R5.remoteTextTrackEls().L(this.uF);i&&i.addEventListener("load",this.th)}}},i.findChaptersTrack=function(){for(var e=this.R5.textTracks()||[],t=e.length-1;t>=0;t--){var i=e[t];if(i.kind===this.uJ)return i}},i.getMenuCaption=function(){return this.uF&&this.uF.label?this.uF.label:this.localize(i5(this.uJ))},i.createMenu=function(){return this.e.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},i.createItems=function(){var e=[];if(!this.uF)return e;var t=this.uF.cues;if(!t)return e;for(var i=0,r=t.length;i<r;i++){var s=t[i],n=new nI(this.R5,{track:this.uF,cue:s});e.push(n)}return e},t}(nA);nV.prototype.uJ="chapters",nV.prototype.es="Chapters",i6.registerComponent("ChaptersButton",nV);var nj=function(e){function t(t,i,r){var s=e.call(this,t,i,r)||this;s.el_.setAttribute("aria-label","Descriptions Menu");var n=t.textTracks();if(n){var a=i2(i7(s),s.handleTracksChange);n.addEventListener("change",a),s.on("dispose",function(){n.removeEventListener("change",a)})}return s}re(t,e);var i=t.prototype;return i.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!1,r=0,s=t.length;r<s;r++){var n=t[r];if(n.kind!==this.uJ&&"showing"===n.mode){i=!0;break}}i?this.disable():this.enable()},i.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},t}(nA);nj.prototype.uJ="descriptions",nj.prototype.es="Descriptions",i6.registerComponent("DescriptionsButton",nj);var nD=function(e){function t(t,i,r){var s=e.call(this,t,i,r)||this;return s.el_.setAttribute("aria-label","Subtitles Menu"),s}return re(t,e),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},t}(nA);nD.prototype.uJ="subtitles",nD.prototype.es="Subtitles",i6.registerComponent("SubtitlesButton",nD);var nB=function(e){function t(t,i){var r;return i.track={player:t,kind:i.kind,label:i.kind+" settings",selectable:!1,default:!1,mode:"disabled"},i.selectable=!1,(r=e.call(this,t,i)||this).addClass("vjs-texttrack-settings"),r.controlText(", opens "+i.kind+" settings dialog"),r}return re(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},t}(nM);i6.registerComponent("CaptionSettingsMenuItem",nB);var nF=function(e){function t(t,i,r){var s=e.call(this,t,i,r)||this;return s.el_.setAttribute("aria-label","Captions Menu"),s}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},i.createItems=function(){var t=[];return this.player().w&&this.player().w.featuresNativeTextTracks||(t.push(new nB(this.R5,{kind:this.uJ})),this.to+=1),e.prototype.createItems.call(this,t)},t}(nA);nF.prototype.uJ="captions",nF.prototype.es="Captions",i6.registerComponent("CaptionsButton",nF);var nN=function(e){function t(t,i){var r,s=i.track,n=t.audioTracks();if(i.label=s.label||s.language||"Unknown",i.selected=s.enabled,(r=e.call(this,t,i)||this).track=s,n){var a=i2(i7(r),r.handleTracksChange);n.addEventListener("change",a),r.on("dispose",function(){n.removeEventListener("change",a)})}return r}re(t,e);var i=t.prototype;return i.handleClick=function(t){var i=this.R5.audioTracks();if(e.prototype.handleClick.call(this,t),i)for(var r=0;r<i.length;r++){var s=i[r];s.enabled=s===this.track}},i.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(nP);i6.registerComponent("AudioTrackMenuItem",nN);var nO=function(e){function t(t,i){var r;return void 0===i&&(i={}),i.tracks=t.audioTracks&&t.audioTracks(),(r=e.call(this,t,i)||this).el_.setAttribute("aria-label","Audio Menu"),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},i.createItems=function(e){void 0===e&&(e=[]),this.to=1;var t=this.R5.audioTracks&&this.R5.audioTracks();if(!t)return e;for(var i=0;i<t.length;i++){var r=t[i];e.push(new nN(this.R5,{track:r,selectable:!0}))}return e},t}(nx);nO.prototype.es="Audio Track",i6.registerComponent("AudioTrackButton",nO);var nR=function(e){function t(t,i){var r,s=i.rate,n=w(s,10);return i.label=s,i.selected=1===n,i.selectable=!0,(r=e.call(this,t,i)||this).label=s,r.rate=n,r.on(t,"ratechange",r.update),r}re(t,e);var i=t.prototype;return i.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},i.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(nP);nR.prototype.contentElType="button",i6.registerComponent("PlaybackRateMenuItem",nR);var n$=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.updateVisibility(),r.updateLabel(),r.on(t,"loadstart",r.updateVisibility),r.on(t,"ratechange",r.updateLabel),r}re(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this);return this.tl=t2("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.tl),t},i.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},i.createMenu=function(){var e=new nw(this.player()),t=this.playbackRates();if(t)for(var i=t.length-1;i>=0;i--)e.addChild(new nR(this.player(),{rate:t[i]+"x"}));return e},i.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},i.handleClick=function(e){for(var t=this.player().playbackRate(),i=this.playbackRates(),r=i[0],s=0;s<i.length;s++)if(i[s]>t){r=i[s];break}this.player().playbackRate(r)},i.playbackRates=function(){return this.e.playbackRates||this.e.playerOptions&&this.e.playerOptions.playbackRates},i.playbackRateSupported=function(){return this.player().w&&this.player().w.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},i.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},i.updateLabel=function(e){this.playbackRateSupported()&&(this.tl.innerHTML=this.player().playbackRate()+"x")},t}(nS);n$.prototype.es="Playback Rate",i6.registerComponent("PlaybackRateMenuButton",n$);var nU=function(e){function t(){return e.apply(this,arguments)||this}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(i6);i6.registerComponent("Spacer",nU);var nH=function(e){function t(){return e.apply(this,arguments)||this}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},t}(nU);i6.registerComponent("CustomControlSpacer",nH);var nz=function(e){function t(){return e.apply(this,arguments)||this}return re(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},t}(i6);nz.prototype.e={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},i6.registerComponent("ControlBar",nz);var nW=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.on(t,"error",r.open),r}re(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},i.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(rv);nW.prototype.e=i4(rv.prototype.e,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),i6.registerComponent("ErrorDisplay",nW);var nq="vjs-text-track-settings",nQ=["#000","Black"],nG=["#00F","Blue"],nX=["#0FF","Cyan"],nK=["#0F0","Green"],nY=["#F0F","Magenta"],nJ=["#F00","Red"],nZ=["#FFF","White"],n0=["#FF0","Yellow"],n1=["1","Opaque"],n2=["0.5","Semi-Transparent"],n3=["0","Transparent"],n5={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[nQ,nZ,nJ,nK,nG,n0,nY,nX]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[n1,n2,n3]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[nZ,nQ,nJ,nK,nG,n0,nY,nX]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[n1,n2]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[n3,n2,n1]}};function n4(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}n5.windowColor.options=n5.backgroundColor.options;var n6=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.setDefaults(),r.hide(),r.updateDisplay=i2(i7(r),r.updateDisplay),void 0===i.persistTextTrackSettings&&(r.e.persistTextTrackSettings=r.e.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",function(){r.saveSettings(),r.hide()}),r.on(r.$(".vjs-default-button"),"click",function(){r.setDefaults(),r.updateDisplay()}),tH(n5,function(e){r.on(r.$(e.selector),"change",r.updateDisplay)}),r.e.persistTextTrackSettings&&r.restoreSettings(),r}re(t,e);var i=t.prototype;return i.tv=function(e){var t=this,i=n5[e],r=i.id.replace("%s",this.uZ);return[t2("label",{className:"vjs-label",textContent:i.label},{for:r}),t2("select",{id:r},void 0,i.options.map(function(e){return t2("option",{textContent:t.localize(e[1]),value:e[0]})}))]},i.tm=function(){var e=t2("legend",{textContent:this.localize("Text")}),t=this.tv("color"),i=t2("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.tv("textOpacity"));return t2("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[e].concat(t,i))},i.ty=function(){var e=t2("legend",{textContent:this.localize("Background")}),t=this.tv("backgroundColor"),i=t2("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.tv("backgroundOpacity"));return t2("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[e].concat(t,i))},i.tg=function(){var e=t2("legend",{textContent:this.localize("Window")}),t=this.tv("windowColor"),i=t2("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.tv("windowOpacity"));return t2("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[e].concat(t,i))},i.tb=function(){return t2("div",{className:"vjs-tracksettings-colors"},void 0,[this.tm(),this.ty(),this.tg()])},i.tk=function(){return t2("div",{className:"vjs-tracksettings-font"},void 0,[t2("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.tv("fontPercent")),t2("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.tv("edgeStyle")),t2("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.tv("fontFamily"))])},i.tw=function(){return t2("div",{className:"vjs-tracksettings-controls"},void 0,[t2("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),t2("button",{className:"vjs-done-button",textContent:"Done"})])},i.createEl=function(){var e=t2("div",{className:"vjs-tracksettings"},void 0,[this.tb(),this.tk(),this.tw()]),t=t2("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.uZ,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),i=t2("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.uZ,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),r=t2("div",void 0,{role:"document"},[t,i,e]);return t2("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":t.id,"aria-describedby":i.id},r)},i.getValues=function(){var e,t,i=this;return e=function(e,t,r){var s,n,a=(s=i.$(t.selector),n=t.parser,n4(s.options[s.options.selectedIndex].value,n));return void 0!==a&&(e[r]=a),e},t={},tU(n5).reduce(function(t,i){return e(t,n5[i],i)},t)},i.setValues=function(e){var t=this;tH(n5,function(i,r){(function(e,t,i){if(t){for(var r=0;r<e.options.length;r++)if(n4(e.options[r].value,i)===t){e.selectedIndex=r;break}}})(t.$(i.selector),e[r],i.parser)})},i.setDefaults=function(){var e=this;tH(n5,function(t){var i=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=i})},i.restoreSettings=function(){var e;try{e=JSON.parse(tF.localStorage.getItem(nq))}catch(e){tG.warn(e)}e&&this.setValues(e)},i.saveSettings=function(){if(this.e.persistTextTrackSettings){var e=this.getValues();try{T.keys(e).length?tF.localStorage.setItem(nq,JSON.stringify(e)):tF.localStorage.removeItem(nq)}catch(e){tG.warn(e)}}},i.updateDisplay=function(){var e=this.R5.getChild("textTrackDisplay");e&&e.updateDisplay()},t}(i6);i6.registerComponent("TextTrackSettings",n6);var n9=function(e){function t(t,i){var r=e.call(this,t,i)||this,s=t.source,n=!1;if(s&&(r.el_.currentSrc!==s.src||t.tag&&3===t.tag.ie)?r.setSource(s):r.it(r.el_),r.el_.hasChildNodes()){for(var a=r.el_.childNodes,o=a.length,l=[];o--;){var h=a[o];"track"===h.nodeName.toLowerCase()&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().M(h),r.remoteTextTracks().uG(h.track),!n&&!r.el_.hasAttribute("crossorigin")&&rE(h.src)&&(n=!0)):l.push(h))}for(var u=0;u<l.length;u++)r.el_.removeChild(l[u])}return["audio","video"].forEach(function(e){var t=r.el()[e+"Tracks"],i=r[e+"Tracks"](),s=i5(e);r["featuresNative"+s+"Tracks"]&&t&&t.addEventListener&&(r["handle"+s+"ii"]=function(e){i.trigger({type:"change",target:i,currentTarget:i,srcElement:i})},r["handle"+s+"is"]=function(e){return i.addTrack(e.track)},r["handle"+s+"ia"]=function(e){return i.removeTrack(e.track)},t.addEventListener("change",r["handle"+s+"ii"]),t.addEventListener("addtrack",r["handle"+s+"is"]),t.addEventListener("removetrack",r["handle"+s+"ia"]),r["removeOld"+s+"io"]=function(e){return r.iu(i,t)},r.on("loadstart",r["removeOld"+s+"io"]))}),r.featuresNativeTextTracks&&(n&&tG.warn(tK(p||(p=tO(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."])))),r.ip=i2(i7(r),r.handleTextTrackChange),r.iv=i2(i7(r),r.handleTextTrackAdd),r.ig=i2(i7(r),r.handleTextTrackRemove),r.ik()),r.rt(),(iN||iT||iM)&&!0===t.nativeControlsForTouch&&r.setControls(!0),r.rn(),r.triggerReady(),r}re(t,e);var i=t.prototype;return i.dispose=function(){var i=this;["audio","video","text"].forEach(function(e){var t=i5(e),r=i.el_[e+"Tracks"];r&&r.removeEventListener&&(r.removeEventListener("change",i["handle"+t+"ii"]),r.removeEventListener("addtrack",i["handle"+t+"is"]),r.removeEventListener("removetrack",i["handle"+t+"ia"])),r&&i.off("loadstart",i["removeOld"+t+"io"])}),t.disposeMediaElement(this.el_),e.prototype.dispose.call(this)},i.rt=function(){var e,t=this.textTracks(),i=function(){e=[];for(var i=0;i<t.length;i++){var r=t[i];"metadata"===r.kind&&e.push({track:r,storedMode:r.mode})}};i(),t.addEventListener("change",i);var r=function i(){for(var r=0;r<e.length;r++){var s=e[r];"disabled"===s.track.mode&&s.track.mode!==s.storedMode&&(s.track.mode=s.storedMode)}t.removeEventListener("change",i)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",i),t.removeEventListener("change",r),t.addEventListener("change",r)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",i),t.addEventListener("change",i),t.removeEventListener("change",r)})},i.createEl=function(){var e=this.e.tag;if(!e||!(this.e.playerElIngest||this.movingMediaElementInDOM)){if(e){var i=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(i,e),t.disposeMediaElement(e),e=i}else{e=tN.createElement("video");var r=i4({},this.e.tag&&ia(this.e.tag));iN&&!0===this.e.nativeControlsForTouch||delete r.controls,is(e,tz(r,{id:this.e.techId,class:"vjs-tech"}))}e.playerId=this.e.playerId}void 0!==this.e.preload&&io(e,"preload",this.e.preload);for(var s=["loop","muted","playsinline","autoplay"],n=s.length-1;n>=0;n--){var a=s[n],o=this.e[a];void 0!==o&&(o?io(e,a,a):il(e,a),e[a]=o)}return e},i.it=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,i=function(){t=!0};this.on("loadstart",i);var r=function(){t||this.trigger("loadstart")};this.on("loadedmetadata",r),this.ready(function(){this.off("loadstart",i),this.off("loadedmetadata",r),t||this.trigger("loadstart")});return}var s=["loadstart"];s.push("loadedmetadata"),e.readyState>=2&&s.push("loadeddata"),e.readyState>=3&&s.push("canplay"),e.readyState>=4&&s.push("canplaythrough"),this.ready(function(){s.forEach(function(e){this.trigger(e)},this)})}},i.ik=function(){var e=this.el().textTracks;if(e){for(var t=0;t<e.length;t++)this.textTracks().uG(e[t]);e.addEventListener&&(e.addEventListener("change",this.ip),e.addEventListener("addtrack",this.iv),e.addEventListener("removetrack",this.ig)),this.on("loadstart",this.ro)}},i.handleTextTrackChange=function(e){var t=this.textTracks();this.textTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},i.handleTextTrackAdd=function(e){this.textTracks().uG(e.track)},i.handleTextTrackRemove=function(e){this.textTracks().uj(e.track)},i.iu=function(e,t){var i=[];if(t){for(var r=0;r<e.length;r++){for(var s=e[r],n=!1,a=0;a<t.length;a++)if(t[a]===s){n=!0;break}n||i.push(s)}for(var o=0;o<i.length;o++){var l=i[o];e.uj(l)}}},i.ro=function(e){var t=this.textTracks(),i=this.el().textTracks;this.iu(t,i)},i.play=function(){var e=this.el_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})},i.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(e){tG(e,"Video is not ready. (Video.js)")}},i.duration=function(){var e=this;return 1/0===this.el_.duration&&iS&&iI&&0===this.el_.currentTime?(this.on("timeupdate",function t(){e.el_.currentTime>0&&(1/0===e.el_.duration&&e.trigger("durationchange"),e.off("timeupdate",t))}),0/0):this.el_.duration||0/0},i.width=function(){return this.el_.offsetWidth},i.height=function(){return this.el_.offsetHeight},i.rn=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},i=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",i),this.on("dispose",function(){e.off("webkitbeginfullscreen",i),e.off("webkitendfullscreen",t)})}},i.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=tF.navigator&&tF.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},i.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},i.exitFullScreen=function(){this.el_.webkitExitFullScreen()},i.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},i.reset=function(){t.resetMediaElement(this.el_)},i.currentSrc=function(){return this.Cy?this.Cy.src:this.el_.currentSrc},i.setControls=function(e){this.el_.controls=!!e},i.addTextTrack=function(t,i,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,i,r):e.prototype.addTextTrack.call(this,t,i,r)},i.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var i=tN.createElement("track");return t.kind&&(i.kind=t.kind),t.label&&(i.label=t.label),(t.language||t.srclang)&&(i.srclang=t.language||t.srclang),t.default&&(i.default=t.default),t.id&&(i.id=t.id),t.src&&(i.src=t.src),i},i.addRemoteTextTrack=function(t,i){var r=e.prototype.addRemoteTextTrack.call(this,t,i);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},i.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var i=this.$$("track"),r=i.length;r--;)(t===i[r]||t===i[r].track)&&this.el().removeChild(i[r])},i.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),tF.performance&&"function"==typeof tF.performance.now?e.creationTime=tF.performance.now():tF.performance&&tF.performance.timing&&"number"==typeof tF.performance.timing.navigationStart&&(e.creationTime=tF.Date.now()-tF.performance.timing.navigationStart),e},t}(sJ);if(tZ()){n9.TEST_VID=tN.createElement("video");var n7=tN.createElement("track");n7.kind="captions",n7.srclang="en",n7.label="English",n9.TEST_VID.appendChild(n7)}n9.isSupported=function(){try{n9.TEST_VID.volume=.5}catch(e){return!1}return!!(n9.TEST_VID&&n9.TEST_VID.canPlayType)},n9.canControlVolume=function(){try{var e=n9.TEST_VID.volume;return n9.TEST_VID.volume=e/2+.1,e!==n9.TEST_VID.volume}catch(e){return!1}},n9.canControlPlaybackRate=function(){if(iS&&iI&&iV<58)return!1;try{var e=n9.TEST_VID.playbackRate;return n9.TEST_VID.playbackRate=e/2+.1,e!==n9.TEST_VID.playbackRate}catch(e){return!1}},n9.supportsNativeTextTracks=function(){return iF},n9.supportsNativeVideoTracks=function(){return!!(n9.TEST_VID&&n9.TEST_VID.videoTracks)},n9.supportsNativeAudioTracks=function(){return!!(n9.TEST_VID&&n9.TEST_VID.audioTracks)},n9.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],n9.prototype.featuresVolumeControl=n9.canControlVolume(),n9.prototype.featuresPlaybackRate=n9.canControlPlaybackRate(),n9.prototype.movingMediaElementInDOM=!iE,n9.prototype.featuresFullscreenResize=!0,n9.prototype.featuresProgressEvents=!0,n9.prototype.featuresTimeupdateEvents=!0,n9.prototype.featuresNativeTextTracks=n9.supportsNativeTextTracks(),n9.prototype.featuresNativeVideoTracks=n9.supportsNativeVideoTracks(),n9.prototype.featuresNativeAudioTracks=n9.supportsNativeAudioTracks();var n8=n9.TEST_VID&&n9.TEST_VID.constructor.prototype.canPlayType,ae=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,at=/^video\/mp4/i;n9.patchCanPlayType=function(){ix>=4&&!iL?n9.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&ae.test(e)?"maybe":n8.call(this,e)}:iP&&(n9.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&at.test(e)?"maybe":n8.call(this,e)})},n9.unpatchCanPlayType=function(){var e=n9.TEST_VID.constructor.prototype.canPlayType;return n9.TEST_VID.constructor.prototype.canPlayType=n8,e},n9.patchCanPlayType(),n9.disposeMediaElement=function(e){if(e){var t=e.nodeName.toLowerCase();if("video"===t||"audio"===t){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}}},n9.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),i=t.length;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){n9.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){n9.prototype["set"+i5(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){n9.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate"].forEach(function(e){n9.prototype["set"+i5(e)]=function(t){this.el_[e]=t}}),["pause","load"].forEach(function(e){n9.prototype[e]=function(){return this.el_[e]()}}),sJ.withSourceHandlers(n9),n9.nativeSourceHandler={},n9.nativeSourceHandler.canPlayType=function(e){try{return n9.TEST_VID.canPlayType(e)}catch(e){return""}},n9.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return n9.nativeSourceHandler.canPlayType(e.type);if(e.src){var i=rk(e.src);return n9.nativeSourceHandler.canPlayType("video/"+i)}return""},n9.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},n9.nativeSourceHandler.dispose=function(){},n9.registerSourceHandler(n9.nativeSourceHandler),i6.registerComponent("Html5",n9),sJ.registerTech("Html5",n9);var ai=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],ar=function(e){function t(i,r,s){if(i.id=i.id||["vjs_video",tR++].join("_"),(r=tz(t.getTagSettings(i),r)).initChildren=!1,r.createEl=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof i.closest){var n,a=i.closest("[lang]");a&&(r.language=a.getAttribute("lang"))}else for(var o=i;o&&1===o.nodeType;){if(ia(o).hasOwnProperty("lang")){r.language=o.getAttribute("lang");break}o=o.parentNode}if(!(n=e.call(this,null,r,s)||this).e||!n.e.techOrder||!n.e.techOrder.length)throw new g("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(n.tag=i,n.tagAttributes=i&&ia(i),n.language(n.e.language),r.languages){var l={};T.getOwnPropertyNames(r.languages).forEach(function(e){l[e.toLowerCase()]=r.languages[e]}),n.rl=l}else n.rl=t.prototype.e.languages;n.eQn={},n.QR=r.poster||"",n.ru=!!r.controls,i.controls=!1,n.r_=!1,n.el_=n.createEl();var h=i4(n.e);if(r.plugins){var u=r.plugins;T.getOwnPropertyNames(u).forEach(function(e){"function"==typeof this[e]?this[e](u[e]):tG.error("Unable to find plugin:",e)},i7(n))}n.e.playerOptions=h,n.initChildren(),n.isAudio("audio"===i.nodeName.toLowerCase()),n.controls()?n.addClass("vjs-controls-enabled"):n.addClass("vjs-controls-disabled"),n.el_.setAttribute("role","region"),n.isAudio()?n.el_.setAttribute("aria-label","audio player"):n.el_.setAttribute("aria-label","video player"),n.isAudio()&&n.addClass("vjs-audio"),n.rm()&&n.addClass("vjs-no-flex"),iE||n.addClass("vjs-workinghover"),t.players[n.uZ]=i7(n);var c="5.20.6-opentelly.14".split(".")[0];return n.addClass("vjs-v"+c),n.userActive(!0),n.reportUserActivity(),n.rb(),n.on("fullscreenchange",n.DU),n.on("stageclick",n.rw),n}re(t,e);var i=t.prototype;return i.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.se&&this.se.parentNode&&this.se.parentNode.removeChild(this.se),t.players[this.uZ]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.w&&this.w.dispose(),e.prototype.dispose.call(this)},i.createEl=function(){var t,i=this.tag,r=this.st=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player");t=r?this.el_=i.parentNode:this.el_=e.prototype.createEl.call(this,"div"),i.setAttribute("tabindex","-1"),i.removeAttribute("width"),i.removeAttribute("height");var s=ia(i);if(T.getOwnPropertyNames(s).forEach(function(e){"class"===e?t.className+=" "+s[e]:t.setAttribute(e,s[e])}),i.playerId=i.id,i.id+="si",i.className="vjs-tech",i.player=t.player=this,this.addClass("vjs-paused"),!0!==tF.VIDEOJS_NO_DYNAMIC_STYLE){this.se=i0("vjs-styles-dimensions");var n=iv(".vjs-styles-defaults"),a=iv("head");a.insertBefore(this.se,n?n.nextSibling:a.firstChild)}this.width(this.e.width),this.height(this.e.height),this.fluid(this.e.fluid),this.aspectRatio(this.e.aspectRatio);for(var o=i.getElementsByTagName("a"),l=0;l<o.length;l++){var h=o.item(l);it(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return i.ie=i.networkState,i.parentNode&&!r&&i.parentNode.insertBefore(t,i),t5(i,t),this.h4.unshift(i),this.el_=t,t},i.width=function(e){return this.dimension("width",e)},i.height=function(e){return this.dimension("height",e)},i.dimension=function(e,t){var i="width"===e?"c8":"pq";if(void 0===t)return this[i]||0;if(""===t)this[i]=void 0;else{var r=w(t);if(S(r))return tG.error('Improper value "'+t+'" supplied for for '+e),this;this[i]=r}return this.sr(),this},i.fluid=function(e){if(void 0===e)return!!this.ss;this.ss=!!e,e?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.sr()},i.aspectRatio=function(e){if(void 0===e)return this.sn;if(!/^\d+\:\d+$/.test(e))throw new g("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.sn=e,this.fluid(!0),this.sr()},i.sr=function(){if(!0===tF.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,i,r="number"==typeof this.c8?this.c8:this.e.width,s="number"==typeof this.pq?this.pq:this.e.height,n=this.w&&this.w.el();n&&(r>=0&&(n.width=r),s>=0&&(n.height=s));return}var a=(void 0!==this.sn&&"auto"!==this.sn?this.sn:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=a[1]/a[0];e=void 0!==this.c8?this.c8:void 0!==this.pq?this.pq/o:this.videoWidth()||300,t=void 0!==this.pq?this.pq:e*o,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),i1(this.se,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid {\n padding-top: "+100*o+"%;\n }\n ")},i.ee=function(e,t){var i,r,s=this;this.w&&this.sa(),"Html5"!==e&&this.tag&&(sJ.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.so=e,this.l=!1;var n=tz({source:t,nativeControlsForTouch:this.e.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+e+"sl",videoTracks:this.CN,textTracks:this.Ch,audioTracks:this.Cp,autoplay:this.e.autoplay,playsinline:this.e.playsinline,preload:this.e.preload,loop:this.e.loop,muted:this.e.muted,poster:this.poster(),language:this.language(),playerElIngest:this.st||!1,"vtt.js":this.e["vtt.js"]},this.e[e.toLowerCase()]);this.tag&&(n.tag=this.tag),t&&(this.su=t.type,t.src===this.eQn.src&&this.eQn.currentTime>0&&(n.startTime=this.eQn.currentTime),this.eQn.sources=null,this.eQn.source=t,this.eQn.src=t.src);var a=sJ.getTech(e);a||(a=i6.getComponent(e)),this.w=new a(n),this.w.ready(i2(this,this.sc),!0),i=this.sd||[],r=this.w,i.forEach(function(e){var t=r.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return t.addCue(e)})}),r.textTracks(),ai.forEach(function(e){s.on(s.w,e,s["handleTech"+i5(e)+"_"])}),this.on(this.w,"loadstart",this.sv),this.on(this.w,"waiting",this.sm),this.on(this.w,"canplay",this.sf),this.on(this.w,"canplaythrough",this.sg),this.on(this.w,"playing",this.sk),this.on(this.w,"ended",this.sw),this.on(this.w,"seeking",this.sq),this.on(this.w,"seeked",this.ne),this.on(this.w,"play",this.nr),this.on(this.w,"firstplay",this.nn),this.on(this.w,"pause",this.na),this.on(this.w,"durationchange",this.no),this.on(this.w,"fullscreenchange",this.nl),this.on(this.w,"error",this.nd),this.on(this.w,"loadedmetadata",this.sr),this.on(this.w,"resize",this.sr),this.on(this.w,"posterchange",this.nv),this.on(this.w,"textdata",this.ny),this.usingNativeControls(this.ng("controls")),this.controls()&&!this.usingNativeControls()&&this.nb(),this.w.el().parentNode===this.contentEl()||"Html5"===e&&this.tag||t5(this.w.el(),this.contentEl()),this.tag&&(this.tag.player=null,this.tag=null)},i.sa=function(){this.CN=this.videoTracks(),this.Ch=this.textTracks(),this.Cp=this.audioTracks(),this.sd=rp(this.w),this.l=!1,this.w.dispose(),this.w=!1},i.tech=function(e){if(e&&e.IWillNotUseThisInPlugins)return this.w;var t="\n Please make sure that you are not using this inside of a plugin.\n To disable this alert and error, please pass in an object with\n `IWillNotUseThisInPlugins` to the `tech` method. See\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";throw tF.alert(t),new g(t)},i.nb=function(){this.ae(),this.on(this.w,"mousedown",this.at),this.on(this.w,"touchstart",this.ar),this.on(this.w,"touchmove",this.as),this.on(this.w,"touchend",this.an),this.on(this.w,"tap",this.aa)},i.ae=function(){this.off(this.w,"tap",this.aa),this.off(this.w,"touchstart",this.ar),this.off(this.w,"touchmove",this.as),this.off(this.w,"touchend",this.an),this.off(this.w,"mousedown",this.at)},i.sc=function(){if(this.triggerReady(),this.eQn.volume&&this.ad("setVolume",this.eQn.volume),this.nv(),this.no(),(this.src()||this.currentSrc())&&this.tag&&this.e.autoplay&&this.paused()){try{delete this.tag.poster}catch(e){tG("deleting tag.poster throws in some browsers",e)}this.play()}},i.sv=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},i.hasStarted=function(e){return void 0!==e?(this.j!==e&&(this.j=e,e?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.j},i.nr=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},i.sm=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return e.removeClass("vjs-waiting")})},i.sf=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},i.sg=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},i.sk=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},i.sq=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},i.ne=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},i.nn=function(){this.e.starttime&&(tG.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.e.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},i.na=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},i.sw=function(){this.addClass("vjs-ended"),this.e.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},i.no=function(){this.duration(this.ng("duration"))},i.at=function(e){0!==e.button||this.controls()&&(void 0===this.e||void 0===this.e.userActions||void 0===this.e.userActions.click||!1!==this.e.userActions.click)&&(void 0!==this.e&&void 0!==this.e.userActions&&"function"==typeof this.e.userActions.click?this.e.userActions.click.call(this,e):this.paused()?this.play():this.pause())},i.aa=function(){this.userActive(!this.userActive())},i.ar=function(){this.userWasActive=this.userActive()},i.as=function(){this.userWasActive&&this.reportUserActivity()},i.an=function(e){e.cancelable&&e.preventDefault()},i.DU=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},i.rw=function(){this.reportUserActivity()},i.nl=function(e,t){t&&(this.toggleClass("vjs-ios-native-fs",!!(t.nativeIOSFullscreen&&t.isFullscreen)),this.isFullscreen(t.isFullscreen)),this.trigger("fullscreenchange")},i.nd=function(){var e=this.w.error();this.error(e)},i.ny=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},i.getCache=function(){return this.eQn},i.ad=function(e,t){if(this.w&&!this.w.l)this.w.ready(function(){this[e](t)},!0);else try{this.w&&this.w[e](t)}catch(e){throw tG(e),e}},i.ng=function(e){if(this.w&&this.w.l)try{return this.w[e]()}catch(t){throw void 0===this.w[e]?tG("Video.js: "+e+" method not defined for "+this.so+" playback technology.",t):"TypeError"===t.name?(tG("Video.js: "+e+" unavailable on "+this.so+" playback technology element.",t),this.w.l=!1):tG(t),t}},i.play=function(){return this.src()||this.currentSrc()?this.ad("play"):this.w.one("loadstart",function(){this.play()}),this},i.pause=function(){return this.ad("pause"),this},i.paused=function(){return!1!==this.ng("paused")},i.scrubbing=function(e){return void 0!==e?(this.r_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.r_},i.currentTime=function(e){return void 0!==e?(this.ad("setCurrentTime",e),this):(this.eQn.currentTime=this.ng("currentTime")||0,this.eQn.currentTime)},i.duration=function(e){return void 0===e?void 0!==this.eQn.duration?this.eQn.duration:0/0:((e=w(e))<0&&(e=1/0),e!==this.eQn.duration&&(this.eQn.duration=e,1/0===e?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},i.remainingTime=function(){return this.duration()-this.currentTime()},i.buffered=function(){var e=this.ng("buffered");return e&&e.length||(e=rr(0,0)),e},i.bufferedPercent=function(){return rs(this.buffered(),this.duration())},i.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),i=e.end(e.length-1);return i>t&&(i=t),i},i.volume=function(e){var t;return void 0!==e?(t=k.max(0,k.min(1,w(e))),this.eQn.volume=t,this.ad("setVolume",t),this):S(t=w(this.ng("volume")))?1:t},i.muted=function(e){return void 0!==e?(this.ad("setMuted",e),this):this.ng("muted")||!1},i.supportsFullScreen=function(){return this.ng("supportsFullScreen")||!1},i.isFullscreen=function(e){return void 0!==e?(this.EU=!!e,this):!!this.EU},i.requestFullscreen=function(e){var t;return this.isFullscreen(!0),rn.requestFullscreen?(iQ(tN,rn.fullscreenchange,i2(this,function e(t){this.isFullscreen(tN[rn.fullscreenElement]),!1===this.isFullscreen()&&iG(tN,rn.fullscreenchange,e),this.trigger("fullscreenchange")})),rn.prefixed||(t=this.e.fullscreenOptions,void 0!==e&&(t=e)),this.el_[rn.requestFullscreen](t)):this.w.supportsFullScreen()?this.ad("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},i.exitFullscreen=function(){return this.isFullscreen(!1),rn.requestFullscreen?tN[rn.exitFullscreen]():this.w.supportsFullScreen()?this.ad("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},i.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=tN.documentElement.style.overflow,iQ(tN,"keydown",i2(this,this.fullWindowOnEscKey)),tN.documentElement.style.overflow="hidden",it(tN.body,"vjs-full-window"),this.trigger("enterFullWindow")},i.fullWindowOnEscKey=function(e){27===e.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},i.exitFullWindow=function(){this.isFullWindow=!1,iG(tN,"keydown",this.fullWindowOnEscKey),tN.documentElement.style.overflow=this.docOrigOverflow,ii(tN.body,"vjs-full-window"),this.trigger("exitFullWindow")},i.canPlayType=function(e){for(var t,i=0,r=this.e.techOrder;i<r.length;i++){var s=i5(r[i]),n=sJ.getTech(s);if(n||(n=i6.getComponent(s)),!n){tG.error('The "'+s+'" tech is undefined. Skipped browser support check for that tech.');continue}if(n.isSupported()&&(t=n.canPlayType(e)))return t}return""},i.selectSource=function(e){var t,i=this,r=this.e.techOrder.map(i5).map(function(e){return[e,sJ.getTech(e)||i6.getComponent(e)]}).filter(function(e){var t=e[0],i=e[1];return i?i.isSupported():(tG.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),s=function(e,t,i){var r;return e.some(function(e){return t.some(function(t){if(r=i(e,t))return!0})}),r},n=function(e,t){var r=e[0];if(e[1].canPlaySource(t,i.e[r.toLowerCase()]))return{source:t,tech:r}};return(t=this.e.sourceOrder?s(e,r,function(e,t){return n(t,e)}):s(r,e,n))||!1},i.src=function(e){if(void 0===e)return this.ng("src");var t=sJ.getTech(this.so);return t||(t=i6.getComponent(this.so)),Array.isArray(e)?this.a_(e):"string"==typeof e?this.src({src:e}):e instanceof T&&(e.type&&!t.canPlaySource(e,this.e[this.so.toLowerCase()])?this.a_([e]):(this.eQn.sources=null,this.eQn.source=e,this.eQn.src=e.src,this.su=e.type||"",this.ready(function(){t.prototype.hasOwnProperty("setSource")?this.ad("setSource",e):this.ad("src",e.src),"auto"===this.e.preload&&this.load(),this.e.autoplay&&this.play()},!0))),this},i.a_=function(e){var t=this.selectSource(e);t?(t.tech===this.so?this.src(t.source):this.ee(t.tech,t.source),this.eQn.sources=e):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.e.notSupportedMessage)})},0),this.triggerReady())},i.load=function(){return this.ad("load"),this},i.reset=function(){return this.ee(i5(this.e.techOrder[0]),null),this.ad("reset"),this},i.currentSources=function(){var e=this.currentSource(),t=[];return 0!==T.keys(e).length&&t.push(e),this.eQn.sources||t},i.currentSource=function(){var e={},t=this.currentSrc();return t&&(e.src=t),this.eQn.source||e},i.currentSrc=function(){return this.ng("currentSrc")||this.eQn.src||""},i.currentType=function(){return this.su||""},i.preload=function(e){return void 0!==e?(this.ad("setPreload",e),this.e.preload=e,this):this.ng("preload")},i.autoplay=function(e){return void 0!==e?(this.ad("setAutoplay",e),this.e.autoplay=e,this):this.ng("autoplay",e)},i.playsinline=function(e){return void 0!==e?(this.ad("setPlaysinline",e),this.e.playsinline=e,this):this.ng("playsinline")},i.loop=function(e){return void 0!==e?(this.ad("setLoop",e),this.e.loop=e,this):this.ng("loop")},i.poster=function(e){return void 0===e?this.QR:(e||(e=""),this.QR=e,this.ad("setPoster",e),this.trigger("posterchange"),this)},i.nv=function(){!this.QR&&this.w&&this.w.poster&&(this.QR=this.w.poster()||"",this.trigger("posterchange"))},i.controls=function(e){return void 0!==e?(e=!!e,this.ru!==e&&(this.ru=e,this.usingNativeControls()&&this.ad("setControls",e),e?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.nb()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.ae())),this):!!this.ru},i.usingNativeControls=function(e){return void 0!==e?(e=!!e,this.av!==e&&(this.av=e,e?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.av},i.error=function(e){return void 0===e?this.nu||null:(null===e?(this.nu=e,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close()):(this.nu=new ru(e),this.addClass("vjs-error"),tG.error("(CODE:"+this.nu.code+" "+ru.errorTypes[this.nu.code]+")",this.nu.message,this.nu),this.trigger("error")),this)},i.reportUserActivity=function(e){this.am=!0},i.userActive=function(e){return void 0!==e?((e=!!e)!==this.ay&&(this.ay=e,e?(this.am=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.am=!1,this.w&&this.w.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.ay},i.rb=function(){var e,t,i,r,s=i2(this,this.reportUserActivity);this.on("mousedown",function(){s(),this.clearInterval(e),e=this.setInterval(s,250)}),this.on("mousemove",function(e){(e.screenX!==t||e.screenY!==i)&&(t=e.screenX,i=e.screenY,s())}),this.on("mouseup",function(t){s(),this.clearInterval(e)}),this.on("keydown",s),this.on("keyup",s),this.setInterval(function(){if(this.am){this.am=!1,this.userActive(!0),this.clearTimeout(r);var e=this.e.inactivityTimeout;e>0&&(r=this.setTimeout(function(){this.am||this.userActive(!1)},e))}},250)},i.playbackRate=function(e){return void 0!==e?(this.ad("setPlaybackRate",e),this):this.w&&this.w.featuresPlaybackRate?this.ng("playbackRate"):1},i.isAudio=function(e){return void 0!==e?(this.af=!!e,this):!!this.af},i.videoTracks=function(){return this.w?this.w.videoTracks():(this.CN=this.CN||new sG,this.CN)},i.audioTracks=function(){return this.w?this.w.audioTracks():(this.Cp=this.Cp||new sK,this.Cp)},i.textTracks=function(){if(this.w)return this.w.textTracks()},i.remoteTextTracks=function(){if(this.w)return this.w.remoteTextTracks()},i.remoteTextTrackEls=function(){if(this.w)return this.w.remoteTextTrackEls()},i.addTextTrack=function(e,t,i){if(this.w)return this.w.addTextTrack(e,t,i)},i.addRemoteTextTrack=function(e,t){if(this.w)return this.w.addRemoteTextTrack(e,t)},i.removeRemoteTextTrack=function(e){var t=(void 0===e?{}:e).track,i=void 0===t?arguments[0]:t;if(this.w)return this.w.removeRemoteTextTrack(i)},i.getVideoPlaybackQuality=function(){return this.ng("getVideoPlaybackQuality")},i.videoWidth=function(){return this.w&&this.w.videoWidth&&this.w.videoWidth()||0},i.videoHeight=function(){return this.w&&this.w.videoHeight&&this.w.videoHeight()||0},i.language=function(e){return void 0===e?this.u2:(this.u2!==String(e).toLowerCase()&&(this.u2=String(e).toLowerCase(),void 0!==this.el_&&this.trigger("languagechange")),this)},i.languages=function(){return i4(t.prototype.e.languages,this.rl)},i.toJSON=function(){var e=i4(this.e),t=e.tracks;e.tracks=[];for(var i=0;i<t.length;i++){var r=t[i];(r=i4(r)).player=void 0,e.tracks[i]=r}return e},i.createModal=function(e,t){var i=this;(t=t||{}).content=e||"";var r=new rv(this,t);return this.addChild(r),r.on("dispose",function(){i.removeChild(r)}),r.open()},t.getTagSettings=function(e){var t={sources:[],tracks:[]},i=ia(e),r=i["data-setup"];if(ie(e,"vjs-fluid")&&(i.fluid=!0),null!==r){var s=function(e){var t,i=null;try{t=JSON.parse(e,void 0)}catch(e){i=e}return[i,t]}(r||"{}"),n=s[0],a=s[1];n&&tG.error(n),tz(i,a)}if(tz(t,i),e.hasChildNodes())for(var o=e.childNodes,l=0,h=o.length;l<h;l++){var u=o[l],c=u.nodeName.toLowerCase();"source"===c?t.sources.push(ia(u)):"track"===c&&t.tracks.push(ia(u))}return t},i.rm=function(){var e=tN.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(i6);ar.players={};var as=tF.navigator;ar.prototype.e={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:as&&(as.languages&&as.languages[0]||as.userLanguage||as.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreenOptions:{navigationUI:"hide"}},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){ar.prototype[e]=function(){return this.ng(e)}}),ai.forEach(function(e){ar.prototype["handleTech"+i5(e)+"_"]=function(){return this.trigger(e)}}),i6.registerComponent("Player",ar);var an=function(e){function t(i){void 0===i&&(i={});var r,s=i4(i,{kind:rf[i.kind]||""}),n=r=e.call(this,s)||this,a=!1;if(ij)for(var o in t.prototype)"constructor"!==o&&(n[o]=t.prototype[o]);return T.defineProperty(n,"enabled",{get:function(){return a},set:function(e){"boolean"==typeof e&&e!==a&&(a=e,this.trigger("enabledchange"))}}),s.enabled&&(n.enabled=s.enabled),n.elq=!0,n||i7(r)}return re(t,e),t}(rC),aa=function(e){function t(i){void 0===i&&(i={});var r,s=i4(i,{kind:ry[i.kind]||""}),n=r=e.call(this,s)||this,a=!1;if(ij)for(var o in t.prototype)"constructor"!==o&&(n[o]=t.prototype[o]);return T.defineProperty(n,"selected",{get:function(){return a},set:function(e){"boolean"==typeof e&&e!==a&&(a=e,this.trigger("selectedchange"))}}),s.selected&&(n.selected=s.selected),n||i7(r)}return re(t,e),t}(rC),ao=function(e,t){if("function"!=typeof t&&null!==t)throw new b("Super expression must either be null or a function, not "+typeof t);e.prototype=T.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.ab=t)};function al(e,t,i){if("string"==typeof e){var r;if(0===e.indexOf("#")&&(e=e.slice(1)),al.getPlayers()[e])return t&&tG.warn('Player "'+e+'" is already initialised. Options will not be applied.'),i&&al.getPlayers()[e].ready(i),al.getPlayers()[e];0===(r=e).indexOf("#")&&(r=r.slice(1)),s=tN.getElementById(r)}else s=e;if(!s||!s.nodeName)throw new b("The element or ID supplied is not valid. (videojs)");if(s.player||ar.players[s.playerId])return s.player||ar.players[s.playerId];t=t||{},al.hooks("beforesetup").forEach(function(e){var i=e(s,i4(t));!tW(i)||Array.isArray(i)?tG.error("please return an object in beforesetup hooks"):t=i4(t,i)});var s,n=new(i6.getComponent("Player"))(s,t,i);return al.hooks("setup").forEach(function(e){return e(n)}),n}if("u"<typeof HTMLVideoElement&&tZ()&&(tN.createElement("video"),tN.createElement("audio"),tN.createElement("track")),al.ak={},al.hooks=function(e,t){return al.ak[e]=al.ak[e]||[],t&&(al.ak[e]=al.ak[e].concat(t)),al.ak[e]},al.hook=function(e,t){al.hooks(e,t)},al.removeHook=function(e,t){var i=al.hooks(e).indexOf(t);return!(i<=-1)&&(al.ak[e]=al.ak[e].slice(),al.ak[e].splice(i,1),!0)},!0!==tF.VIDEOJS_NO_DYNAMIC_STYLE&&tZ()){var ah=iv(".vjs-styles-defaults");if(!ah){ah=i0("vjs-styles-defaults");var au=iv("head");au&&au.insertBefore(ah,au.firstChild),i1(ah,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}function ac(e){let t=e.duration;if(S(t)){var i;let t=null==(i=e.source)?void 0:i.streamType;return"live"===t||"dvr"===t}return 1/0===t}function ad(e){return e.scrubbing()?e.getCache().currentTime:e.currentTime()}function ap(e){let t=am(e);return ac(e)?t.end(t.length-1):t.start(0)}function a_(e){return am(e).start(0)}function av(e){let t=am(e);return t.end(t.length-1)-t.start(0)}function am(e){let t=e.seekable;if(t&&t.length)return t;let i=e.duration;return new tl([0,i=isFinite(i)?i:0]).Cg()}function ay(e,t=e){let i=e<0?"-":"";e=k.abs(e);let r=k.floor(e%60),s=k.floor(e/60%60),n=k.floor(e/3600),a=k.floor(t/60%60),o=k.floor(t/3600);return(S(e)||1/0===e)&&(n=s=r="-"),n=Number(n)>0||o>0?`${n}:`:"",s=`${(n||a>=10)&&10>Number(s)?`0${s}`:s}:`,i+n+s+(r=10>Number(r)?`0${r}`:r)}function af(e){return class extends e{constructor(...e){super(...e),this.az=void 0}get ot(){var e;return null!=(e=this.az)?e:this.az=ag(this.player())}dispose(){this.az=void 0,super.dispose()}}}function ag(e){return e.tech({IWillNotUseThisInPlugins:!0}).theoplayer()}function ab(e,t,i){e.toggleClass("theo-ad-playing",t),e.toggleClass("theo-dai-ad-playing",t&&i)}function aC(){this.userActive(!1)}iZ(1,al),al.VERSION="5.20.6-opentelly.14",al.options=ar.prototype.e,al.getPlayers=function(){return ar.players},al.players=ar.players,al.getComponent=i6.getComponent,al.registerComponent=function(e,t){sJ.isTech(t)&&tG.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),i6.registerComponent.call(i6,e,t)},al.getTech=sJ.getTech,al.registerTech=sJ.registerTech,al.browser=iR,al.TOUCH_ENABLED=iN,al.extend=function(e,t){void 0===t&&(t={});var i=function(){e.apply(this,arguments)},r={};for(var s in tW(t)?("function"==typeof t.init&&(tG.warn("Constructor logic via init() is deprecated; please use constructor() instead."),t.constructor=t.init),t.constructor!==T.prototype.constructor&&(i=t.constructor),r=t):"function"==typeof t&&(i=t),ao(i,e),r)r.hasOwnProperty(s)&&(i.prototype[s]=r[s]);return i},al.mergeOptions=i4,al.bind=i2,al.plugin=function(e,t){ar.prototype[e]=t},al.addLanguage=function(e,t){var i;return e=(""+e).toLowerCase(),al.options.languages=i4(al.options.languages,((i={})[e]=t,i)),al.options.languages[e]},al.log=tG,al.createTimeRange=al.createTimeRanges=rr,al.formatTime=nr,al.parseUrl=rT,al.isCrossOrigin=rE,al.EventTarget=i9,al.on=iQ,al.one=iK,al.off=iG,al.trigger=iX,al.xhr=sD,al.TextTrack=s$,al.AudioTrack=an,al.VideoTrack=aa,al.isEl=t0,al.isTextNode=ic,al.createEl=t2,al.hasClass=ie,al.addClass=it,al.removeClass=ii,al.toggleClass=ir,al.setAttributes=is,al.getAttributes=ia,al.emptyEl=id,al.appendContent=ip,al.insertContent=i_,al.computedStyle=nu;var aT=class{constructor(e,t){this.type=void 0,this.target=void 0,this.playerEvent=void 0,this.type=e.type,this.target=t,this.playerEvent=e}};let ak=["loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange","resize"],aE=al.getTech("Tech"),aw=al.getTech("Html5");var aS=class extends aE{constructor(e={},t){super(e,t),this.ot=void 0,this.or=e=>this.s$(e),this.os=!1,this.Ak=()=>{void 0===this.ot.errorObject&&(this.s$(new e6(this.ot.currentTime,this.ot.readyState)),this.s$(new e2),this.s$(new tn(this.ot.duration)))},this.eZq=()=>{this.s$(new ej(this.ot.currentTime))},this.oc=e=>{this.textTracks().uG(e.track)},this.om=e=>{this.audioTracks().uG(e.track)},this.ok=e=>{this.textTracks().uj(e.track)},this.oj=e=>{this.audioTracks().uj(e.track)},this.le=()=>{let e=this.textTracks();e.trigger({type:"change",target:e,currentTarget:e,srcElement:e})},this.lt=()=>{let e=this.audioTracks();e.trigger({type:"change",target:e,currentTarget:e,srcElement:e})},this.lr=()=>{if(!this.supportsFullScreen())return;let e=this.os,t="fullscreen"===this.ot.presentation.currentMode;e!==t&&(this.os=t,this.trigger("fullscreenchange",{isFullscreen:t,nativeIOSFullscreen:!0}))},this._A=()=>{let e=this.ot.errorObject,t=e&&I(e.code)||-1,i=e&&e.message||"An unknown error occurred.";this.error({code:t,message:this.localize(i)})},this.ot=this.e.player,this.ln();let i=!this.paused();i&&this.pause(),e.preload&&this.setPreload(e.preload),e.autoplay&&this.setAutoplay(e.autoplay),e.muted&&this.setMuted(e.muted),e.source?this.setSrc(e.source):this.it(),i&&this.ready(()=>this.play()),this.triggerReady()}ln(){var e;for(let e of ak)this.ot.addEventListener(e,this.or);this.ot.addEventListener("error",this._A),this.ot.addEventListener("contentprotectionerror",this._A),this.ot.addEventListener("sourcechange",this.Ak),this.ot.addEventListener("loadstart",this.eZq),null==(e=this.ot.presentation)||e.addEventListener("presentationmodechange",this.lr),this.ot.textTracks.addEventListener("addtrack",this.oc),this.ot.textTracks.addEventListener("removetrack",this.ok),this.ot.textTracks.addEventListener("change",this.le),this.ot.audioTracks.addEventListener("addtrack",this.om),this.ot.audioTracks.addEventListener("removetrack",this.oj),this.ot.audioTracks.addEventListener("change",this.lt)}la(){var e;for(let e of ak)this.ot.removeEventListener(e,this.or);this.ot.removeEventListener("error",this._A),this.ot.removeEventListener("contentprotectionerror",this._A),this.ot.removeEventListener("sourcechange",this.Ak),this.ot.removeEventListener("loadstart",this.eZq),null==(e=this.ot.presentation)||e.removeEventListener("presentationmodechange",this.lr),this.ot.textTracks.removeEventListener("addtrack",this.oc),this.ot.textTracks.removeEventListener("removetrack",this.ok),this.ot.textTracks.removeEventListener("change",this.le),this.ot.audioTracks.removeEventListener("addtrack",this.om),this.ot.audioTracks.removeEventListener("removetrack",this.oj),this.ot.audioTracks.removeEventListener("change",this.lt)}s$(e){this.trigger(new aT(e,this))}createEl(){let e=this.e,t=e.player;if(!t)throw new g(this.localize('Missing required tech option "player"'));let i=t.element;return al.setAttributes(i,{id:e.techId}),i}theoplayer(){return this.ot}addTextTrack(e,t,i){return super.addTextTrack(e,t,i)}buffered(){return this.ot.buffered}played(){return this.ot.played}reset(){this.ot.stop()}play(){this.ot.play()}pause(){this.ot.pause()}paused(){return this.ot.paused}currentTime(){return this.ot.currentTime}setCurrentTime(e){this.ot.currentTime=e}duration(){return this.ot.duration}volume(){return this.ot.volume}setVolume(e){this.ot.volume=e}muted(){return this.ot.muted}setMuted(e){this.ot.muted=e}src(e){if(void 0===e){if(this.ot.src)return this.ot.src;if(this.ot.source){var t;if(!eE(this.ot.source.ads))return this.ot.source.ads[0].sources;if((t=this.ot.source).sources&&(tk(t.sources)?t.sources.some(eR):eR(t.sources)))return"This source is managed by the Uplynk integration extension.";if(function(e){if(e.sources){if(tk(e.sources)){for(let t of e.sources)if(tC(t))return!0}else if(eV(e.sources))return tC(e.sources)}return!1}(this.ot.source))return"This source is managed by the DAI integration extension.";if(eW(this.ot.source))return"This source is managed by Millicast."}return}this.setSrc(e)}setSrc(e){return this.setSource({src:e})}setSource(e){this.nu=null,this.trigger("error")}currentSrc(){return this.ot.src}load(){this.setPreload("auto")}preload(){return this.ot.preload}setPreload(e){this.ot.preload=e}autoplay(){return this.ot.autoplay}setAutoplay(e){this.ot.autoplay=!!e}seeking(){return this.ot.seeking}seekable(){return this.ot.seekable}ended(){return this.ot.ended}playbackRate(){return this.ot.playbackRate}setPlaybackRate(e){this.ot.playbackRate=e}readyState(){return this.ot.readyState}networkState(){return 0}controls(){return!1}videoHeight(){return this.ot.videoHeight}videoWidth(){return this.ot.videoWidth}supportsFullScreen(){return this.ot.presentation.supportsMode("fullscreen")}enterFullScreen(){this.ot.presentation.requestMode("fullscreen")}exitFullScreen(){this.ot.presentation.requestMode("inline")}lo(){let e=this.ot.ads;if(e&&e.playing)return!0;let t=this.ot.vr;return!!t&&"unavailable"!==t.state}initTextTrackListeners(){return this.on("touchend",e=>{this.lo()&&(e.preventDefault=()=>{})}),super.initTextTrackListeners()}it(){if(!this.src())return;let e=this.readyState();if(0===e){let e=!1,t=()=>{e=!0};this.on("loadstart",t);let i=()=>{e||this.trigger("loadstart")};this.on("loadedmetadata",i),this.ready(()=>{this.off("loadstart",t),this.off("loadedmetadata",i),e||this.trigger("loadstart")});return}let t=["loadstart"];t.push("loadedmetadata"),e>=2&&t.push("loadeddata"),e>=3&&t.push("canplay"),e>=4&&t.push("canplaythrough"),this.ready(()=>{for(let e of t)this.trigger(e)})}dispose(){this.la(),this.ot=null,super.dispose()}static isSupported(){return!0}static canPlayType(){return"maybe"}static canPlaySource(e){return"maybe"}get featuresVolumeControl(){return tu}};aS.prototype.featuresFullscreenResize=aw.prototype.featuresFullscreenResize,aS.prototype.featuresPlaybackRate=aw.prototype.featuresPlaybackRate,aS.prototype.featuresProgressEvents=!0,aS.prototype.featuresTimeupdateEvents=!0,aS.prototype.featuresNativeTextTracks=!0,al.registerTech("THEOplayer",aS);var ax=class{constructor(e){this.R8=void 0,this.lu=e=>{e4(this.R8,"theo-mobile-button-hover"),e.stopImmediatePropagation()},this.lv=e=>{ez(this.R8,"theo-mobile-button-hover")},this.lg=e=>{this.R8.blur()},this.R8=e,e.addEventListener("touchstart",this.lu),e.addEventListener("touchend",this.lv),e.addEventListener("focusin",this.lg)}};let aP=al.getComponent("Menu");var aM=class extends af(aP){constructor(e,t){super(e,t)}get lb(){return this.player().el()}l0(){e4(this.lb,"theo-menu-opened")}o5(){ez(this.lb,"theo-menu-opened")}};let aL=al.getComponent("MenuItem");var aA=class extends af(aL){constructor(e,t,i){super(e,H({selectable:!0},t)),this.l1=void 0,this.he=!1,this.lu=e=>{e4(this.el(),"theo-mobile-menu-item-hover"),e.stopImmediatePropagation()},this.lv=e=>{ez(this.el(),"theo-mobile-menu-item-hover")},this.l1=i,eB.sp.tA&&(this.el().addEventListener("touchstart",this.lu),this.el().addEventListener("touchend",this.lv))}get parentMenu(){return this.l1}buildCSSClass(){return"theo-menu-item vjs-menu-item"}createEl(){let e=super.createEl("li",{className:this.buildCSSClass(),tabIndex:0},{"aria-live":"off","aria-label":""});return e.innerHTML="",e}handleClick(e){this.he||(this.parentMenu.ht(this),("tap"===e.type||"keydown"===e.type)&&(this.he=!0,this.trigger("click"),this.he=!1))}dispose(){eB.sp.tA&&(this.el().removeEventListener("touchstart",this.lu),this.el().removeEventListener("touchend",this.lv)),super.dispose()}};let aI=al.getComponent("ClickableComponent");var aV=class extends aI{constructor(e,t,i){super(e,t),this.l1=void 0,this.he=!1,this.hi=!1,this.l1=i,this.on(e,"languagechange",this.hr)}get parentMenu(){return this.l1}get ha(){return this.hi}set ha(e){this.hi=e,this.el().setAttribute("tabindex",this.ha?"0":"-1"),this.hr()}buildCSSClass(){return"theo-primary-background theo-menu-header"}createEl(){let e=super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-live":"off","aria-label":""});return e.innerHTML="",e}handleClick(e){!this.he&&this.ha&&(this.l1.ho(),"tap"===e.type&&(this.he=!0,this.trigger("click"),this.he=!1))}hr(){this.ha?this.el().setAttribute("aria-label",this.localize("Go back to the previous menu")):this.el().setAttribute("aria-label","")}},aj=class extends aM{constructor(e,t){super(e,t),this.hu=void 0,this.hy=()=>this.Gx(),this.hu=this.player().el(),this.hide(),this.on("menuchange",this.Gx)}get menuHeader(){return this.hz}get menuItems(){return this.children()}addMenuItem(e){e=H({playerOptions:this.e.playerOptions},e);let t=new aA(this.player(),e,this);return this.addChild(t,void 0,e.index),this.trigger("menuchange"),t}addSubMenuItem(e){e=H({playerOptions:this.e.playerOptions},e);let t=this.ur(this.player(),e);return this.addChild(t,void 0,e.index),this.trigger("menuchange"),t}removeMenuItem(e){this.removeChild(e),this.trigger("menuchange")}buildCSSClass(){return"theo-menu vjs-menu"}l0(){super.l0(),v.removeEventListener("resize",this.hy),v.addEventListener("resize",this.hy),this.show()}Gx(){let e=this.ua();if(!e)return;let t=e.getClientRects();eB.sp.tA?this.up(e,t):this.ug(e,t)}ua(){var e;return null!=(e=this.contentEl().parentElement)?e:void 0}ug(e,t){}up(e,t){}o5(){v.removeEventListener("resize",this.hy),super.o5(),this.hide(),eB.sp.tA&&(this.el().removeAttribute("style"),this.contentEl().removeAttribute("style"))}createEl(){let e=super.createEl();e.className=this.buildCSSClass();let t=this.contentEl();e4(t,"theo-menu-content");let i=new aV(this.player(),this.e,this);return t.parentNode.insertBefore(i.el(),t),this.hz=i,e}ht(e){}show(){return this.Gx(),super.show()}dispose(){this.hz&&this.hz.dispose(),super.dispose()}},aD=class extends aj{constructor(e,t){super(e,t)}get uk(){return this.uz}set uk(e){this.uz&&this.uz.ce(this),this.uz=e,e&&e.cr(this)}cs(e){this.uk.ca(e,"replace")}co(e){e.uk.ca(this,"restore")}Cu(){ez(this.ch,"vjs-hidden"),this.ch.style.opacity="1",super.show()}Cq(){e4(this.ch,"vjs-hidden")}l0(){this.uk&&this.uk.l0(),super.l0()}o5(){this.uk&&this.uk.o5(),super.o5(),e4(this.ch,"vjs-hidden")}ua(){if(this.uk&&this.uk.cu)return this.uk.cu.ch}ug(e,t){if(t.length>0){let e=t[0].height,i=t[0].width;this.uz.Eo.style.height=`${e}px`,this.uz.Eo.style.width=`${i}px`}super.ug(e,t)}},aB=class{constructor(e){this.cv=void 0,this.cy=void 0,this.R8=void 0,this.hu=void 0,this.cy=this.cv=e,this.R8=m.createElement("div"),this.R8.className="theo-tertiary-background theo-menu-animation-container",this.R8.appendChild(this.cy.ch),this.hu=this.cv.player().el()}get Eo(){return this.R8}get cu(){return this.cv}cr(e){e.Cq(),this.R8.appendChild(e.ch)}ce(e){this.R8.removeChild(e.ch)}ca(e,t){if(e==this.cv)return;let i=this.cv;if(this.cv=e,this.cv.Cu(),this.cu.focus(),eB.sp.tA)i.Cq();else{let e=e_("transform");i.ch.style.opacity="0",i.ch.style[e]="replace"===t?"translateX(-100%)":"translateX(100%)",this.cv.ch.style.opacity="1",this.cv.ch.style[e]="",y(()=>{i.Cq(),i.ch.style[e]=""},300)}}l0(){this.de(),this.cv.Cu(),this.da()}o5(){this.de(),this.cv.Cq(),this.cy.Cq(),this.cv=this.cy,this.da()}da(){ef(()=>{ez(this.R8,"theo-no-transition"),ez(this.cv.ch,"theo-no-transition")})}de(){e4(this.R8,"theo-no-transition"),e4(this.cv.ch,"theo-no-transition")}},aF=class extends aD{constructor(e,t,i){super(e,t),this.dv=void 0,this.dz=!1,this.dv=i,this.menuHeader.ha=!0}get ch(){return this.el()}get parentMenu(){return this.dv}ur(e,t){let i=new aN(e,t,this);return i.subMenu.uk=this.uk,i}ho(){this.pt()}ht(e){super.ht(e),this.pt()}pt(){this.parentMenu.co(this)}buildCSSClass(){return`theo-submenu ${this.dz?"":"theo-leaf-submenu "}theo-menu-content theo-menu-content-animatable ${super.buildCSSClass()}`}addSubMenuItem(e){this.dz=!0;let t=super.addSubMenuItem(e);return this.removeClass("theo-leaf-submenu"),t}},aN=class extends aA{constructor(e,t,i){super(e,H({selectable:!1},t),i),this.pi=void 0,this.pi=new aF(e,t,i)}get subMenu(){return this.pi}handleClick(e){this.parentMenu.cs(this.subMenu)}},aO=class extends aD{constructor(e,t,i){super(e,t),this.ps=void 0,this.pa=!1,this.ps=i}get menuButton(){return this.ps}createEl(){let e=al.createEl("div",{className:this.buildCSSClass()});return this.pl=super.createEl(),this.pl.className=super.buildCSSClass(),e4(this.pl,"theo-menu-content-animatable"),e.appendChild(this.pl),this.uk=new aB(this),e.appendChild(this.uk.Eo),e}buildCSSClass(){return`theo-menu-animatable ${super.buildCSSClass()}`}ur(e,t){let i=new aN(e,t,this);return i.subMenu.uk=this.uk,i}ug(e,t){super.ug(e,t);let i=this.hu.getClientRects(),r=i.length>0?i[0]:void 0,s=w(getComputedStyle(this.el()).fontSize);eI(this.el(),this.ps.el(),r,s)}get ch(){return this.pl}ho(){this.ps.closeMenu()}dispose(){this.pa||(this.pa=!0,super.dispose())}},aR=class{constructor(e,t){this.p1=void 0,this.__=void 0,this.ve=()=>{ez(this.p1,"vjs-hidden");let e=this.__.player().contentEl().getClientRects(),t=e.length>0?e[0]:void 0,i=w(getComputedStyle(this.p1).fontSize);eI(this.p1,this.__.el(),t,i)},this.vi=()=>{e4(this.p1,"vjs-hidden")},this.vo=()=>this.v1(),this.__=e,eK(e.el()),e7(e.el()),this.p1=m.createElement("span"),this.p1.innerHTML=this.__.localize(t),this.p1.className="theo-button-tooltip vjs-hidden",this.p1.setAttribute("aria-hidden","true"),this.__.el().appendChild(this.p1),this.__.on("mouseover",this.ve),this.__.on("mouseout",this.vi),this.__.on("dispose",this.vo)}set v2(e){this.p1.innerHTML=this.__.localize(e),this.ei_()&&this.ve(),eK(this.__.el())}get v2(){return this.p1.textContent||""}ei_(){return!tb(this.p1,"vjs-hidden")}v1(){this.__.off("mouseover",this.ve),this.__.off("mouseout",this.vi),this.__.off("dispose",this.vo),to(this.p1)}};let a$=al.getComponent("Button");var aU=class extends af(a$){constructor(e,t){super(e,t),this.v3=void 0,this.p1=void 0,this.mt=!1,this.mi=1,this.cf=!0,this.mr=e=>{let t=this.el().contains(e.target),i=this.v3.el().contains(e.target),r=!1;if(eB.sp.tA&&this.ms){var s;r=(null==(s=this.el().parentElement)?void 0:s.querySelector(".theo-mobile-menu-background"))===e.target}t||i||!this.mt||(r&&e.preventDefault(),this.closeMenu())},this.mn=e=>{27===e.which&&(this.closeMenu(),this.focus())},this.x6=()=>{this.mt&&this.closeMenu()},this.ml=()=>{this.v3.menuItems.length>=this.mi?this.show():(this.closeMenu(),this.hide())},this.v3=new aO(e,t,this),this.player().getChild("controlBarMenuContainer").addChild(this.v3),this.p1=new aR(this,this.controlText()),this.el().setAttribute("aria-haspopup","true"),eB.sp.e4?(this.on(m,"touchend",this.mr),new ax(this.el())):(this.on(m,"click",this.mr),this.on(m,"keydown",this.mn),V&&this.on(m,V.Dh,this.closeMenu)),this.ot.addEventListener("seeking",this.x6),this.on(this.v3,"menuchange",this.ml),this.on(e,"languagechange",this.hr),this.ml()}get ms(){let e=this.el().parentElement;return!!e&&null!==e.querySelector(".theo-mobile-menu-background")}get menu(){return this.v3}isMenuOpen(){return this.mt}openMenu(){this.cf&&!this.mt&&(this.v3.l0(),this.el().setAttribute("aria-expanded","true"),this.mt=!0,this.v3.focus())}closeMenu(){this.cf&&this.mt&&(this.v3.o5(),this.el().setAttribute("aria-expanded","false"),this.mt=!1)}set minimumMenuItems(e){this.mi=e,this.ml()}buildCSSClass(){return`theo-controlbar-button vjs-menu-button vjs-menu-button-popup ${super.buildCSSClass()}`}createEl(e,t,i){return super.createEl("button",{},{"aria-live":"off"})}handleClick(){this.mt?this.closeMenu():this.openMenu()}enable(){return this.cf=!0,super.enable()}disable(){return this.closeMenu(),this.cf=!1,super.disable()}hr(){this.p1.v2=this.controlText()}dispose(){this.player().removeChild(this.v3),this.v3.dispose(),this.p1.v1(),this.ot.removeEventListener("seeking",this.x6),super.dispose()}};let aH=al.getComponent("Component");var az=class extends al.getComponent("ControlBar"){constructor(e,t){super(e,t),this.addChild("THEOControlBarShadow",void 0,0)}addMenuButton(e){e=H({playerOptions:this.e.playerOptions},e);let t=new aU(this.player(),e);return this.addChild(t),t}removeMenuButton(e){this.removeChild(e)}createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}buildCSSClass(){return`theo-secondary-color vjs-control-bar ${super.buildCSSClass()}`}};al.registerComponent("THEOControlBarShadow",class extends aH{createEl(){return super.createEl("div",{className:this.buildCSSClass()})}buildCSSClass(){return"theo-tertiary-color theo-control-bar-shadow"}});let aW=al.getComponent("VolumeBar");var aq=class extends aW{constructor(e,t){super(e,t),this.mh=void 0,this.mh=t.my}handleFocus(e){super.handleFocus(e),this.mh.addClass("focus-within")}handleBlur(e){super.handleBlur(e),this.mh.removeClass("focus-within")}};let aQ=al.getComponent("VolumeControl");var aG=class extends aQ{constructor(e,t){super(e,t),this.mg=void 0,this.mg=new aq(e,{my:this}),this.addChild(this.mg)}};aG.prototype.e=H(H({},aQ.prototype.e),{},{children:[]}),al.registerComponent("VolumeControl",aG);var aX=class extends af(az){constructor(e,t){super(e,t),this.eZ0=void 0,this.mk=!1,this.yi=0,this.yo=()=>{0!==this.yi&&(this.yi=0,this.y_(this.fi()))},this.eb6=()=>{this.mk&&this.fr()},this.on(e,"ready",this.fa),this.on(e,"pause",this.fa),this.on(e,"useractive",this.fa),this.on(e,"firstplay",this.fo),this.on(e,"play",this.fo),this.on(e,"userinactive",this.fo),this.on("transitionstart",this.fy),this.on("transitionend",this.ff),this.eZ0=new z(this.el()),this.eZ0.sZ("dimensionchange",this.eb6),this.eZ0._a(!0)}fa(){this.y_(this.fi())}fo(){0===this.yi&&(this.yi=y(this.yo,100))}fy(e){"opacity"===e.propertyName&&(0!==this.yi&&(f(this.yi),this.yi=0),this.y_(!0))}ff(e){"opacity"!==e.propertyName||this.fi()||this.y_(!1)}fi(){return"0"!==v.getComputedStyle(this.el()).opacity}y_(e){this.mk!==e&&(this.mk=e,e?this.fr():this.ot.textTrackStyle.marginBottom=void 0)}fr(){let e=this.el().getBoundingClientRect().height;this.ot.textTrackStyle.marginBottom!==e&&(this.ot.textTrackStyle.marginBottom=e)}dispose(){f(this.yi),this.yi=0,this.eZ0.s1("dimensionchange",this.eb6),this.eZ0._j(),super.dispose()}};aX.prototype.e=H(H({},az.prototype.e),{},{children:["progressControl","playToggle","muteToggle","volumeControl","currentTimeDisplay","timeDivider","durationDisplay","liveDisplay","remainingTimeDisplay","customControlSpacer","activeQualityLabel","vrButton","descriptionsButton","subtitlesButton","chromecastButton","airplayButton","multiViewButton","audioTrackButton","SettingsButton","fullscreenToggle"]}),al.registerComponent("ControlBar",aX);var aK=class extends az{constructor(e,t){super(e,t),e.topControlBar=this}buildCSSClass(){return`theo-top-controlbar ${super.buildCSSClass()}`}};aK.prototype.e=H(H({},az.prototype.e),{},{children:[]}),al.registerComponent("TopControlBar",aK);let aY=al.getComponent("CurrentTimeDisplay");var aJ=class extends af(aY){constructor(e,t){super(e,t),this.on(e,"timeupdate",this.updateContent),this.on(e,"emptied",this.updateContent)}updateContent(){let e=ad(this.player()),t=this.ot,i=a_(t),r=this.localize("Current Time"),s=ay(k.max(0,e-i),av(t));s!==this.ec&&(this.ec=s,this.contentEl().innerHTML=`<span class="vjs-control-text">${r}</span> ${s}`)}};al.registerComponent("CurrentTimeDisplay",aJ);let aZ=al.getComponent("DurationDisplay");var a0=class extends af(aZ){constructor(e,t){var i;super(e,t),this.fj=()=>this.updateContent(),this.off(e,"durationchange",this.updateContent),this.on(e,"durationchange",this.updateContent),this.off(e,"timeupdate",this.updateContent),this.on(e,"timeupdate",this.updateContent),this.off(e,"emptied",this.updateContent),this.on(e,"emptied",this.updateContent),null==(i=this.ot)||i.clip.addEventListener("change",this.fj)}updateContent(){let e=this.ot,t=S(e.duration)?0/0:av(e),i=e.clip.endTime-e.clip.startTime,r=k.min(t,i)||0;if(this.pC!==r){this.pC=r;let e=this.localize("Duration Time"),t=ay(r);this.o.innerHTML=`<span class="vjs-control-text">${e}</span> ${t}`}}dispose(){var e;null==(e=this.ot)||e.clip.removeEventListener("change",this.fj),super.dispose()}};al.registerComponent("DurationDisplay",a0);let a1=al.getComponent("Button");var a2=class extends af(a1){constructor(e,t){super(e,t),this.controlText("Live"),this.f1(),this.on(e,"emptied",this.f1),this.on(e,"durationchange",this.f1),eB.sp.e4&&new ax(this.el())}buildCSSClass(){return`theo-live-control ${super.buildCSSClass()}`}createEl(){let e=super.createEl("button",{},{"aria-live":"off"});return this.ge=al.createEl("span",{className:"theo-live-control-indicator"}),eO(e,this.ge),e}createControlTextEl(e){let t=super.createControlTextEl(e);return al.removeClass(t,"vjs-control-text"),al.addClass(t,"theo-live-control-text"),t}handleClick(){var e;let t=this.ot;if((null==(e=t.hesp)?void 0:e.manifest)!==void 0)t.hesp.goLive();else{let e=this.player();e.currentTime(1/0),e.play()}}f1(){ac(this.ot)?this.show():this.hide()}};al.registerComponent("LiveDisplay",a2);let a3=al.getComponent("LoadingSpinner");var a5=class extends a3{constructor(e,t){super(e,t)}buildCSSClass(){return`theo-secondary-color vjs-loading-spinner ${super.buildCSSClass()}`}createEl(){let e=super.createEl();e.className=this.buildCSSClass();let t=al.createEl("div",{className:"theo-loading-spinner-rotator"}),i=al.createEl("div",{className:"theo-loading-spinner-circle-left"}),r=al.createEl("div",{className:"theo-loading-spinner-circle-right"});return t.appendChild(i),t.appendChild(r),e.appendChild(t),e}};al.registerComponent("LoadingSpinner",a5);let a4=al.getComponent("LoadProgressBar");var a6=class extends af(a4){constructor(e,t){super(e,t),this.gt=[],this.on(e,"emptied",this.update)}update(){let e=this.ot,t=tl.PH(am(e)),i=t.bu(0),r=tl.PH(e.buffered).Pb(t),s=t.Pf(0)-i,n=r.uH&&r.Pf(r.uH-1)||0;n=k.max(0,n-i);let a=this.el(),o=this.gt;a.style.width=a9(n,s);for(let e=0;e<r.uH;e++){let t=r.bu(e),s=r.Pf(e),l=o[e];l||(l=m.createElement("div"),o.push(l),a.appendChild(l)),l.style.left=a9(t-i,n),l.style.width=a9(s-t,n)}for(let e=o.length;e>r.uH;e--)a.removeChild(o[e-1]);o.length=r.uH}};function a9(e,t){let i=e/t||0;return`${(i>=1?1:i)*100}%`}al.registerComponent("LoadProgressBar",a6);let a7=al.getComponent("MouseTimeDisplay");var a8=class extends af(a7){constructor(e,t){if(super(e,t),this.Vr=0/0,this.gn=()=>{let e=ad(this.player()),t=this.ot,i=(e-a_(t))/av(t)||0;i=td(i,0,1),this.update(e,`${100*i}%`)},this.keepTooltipsInside&&(al.addClass(this.tooltip,"theo-secondary-color"),this.tooltip.appendChild(this.ga)),this.on(e,"ready",()=>{this.on(e.controlBar.progressControl,"mouseenter",this.handleMouseMove)}),tx.tA){var i;this.on(e,"firstplay",this.gn),this.on(e,"play",this.gn),this.on(e,"seeking",this.gn),this.on(e,"seeked",this.gn),this.on(e,"timeupdate",this.gn),this.ot.addEventListener("dimensionchange",this.gn),null==(i=this.ot.presentation)||i.addEventListener("presentationmodechange",this.gn),this.on(e,"ready",()=>{this.on(e.controlBar.progressControl,"touchstart",this.handleTouchMove),this.on(e.controlBar.progressControl,"touchmove",tv(e=>this.handleTouchMove(e),25)),this.gn()})}}handleMouseMove(e){let t=this.ot,i=a_(t)+this.calculateDistance(e)*av(t),r=e.pageX-tS(this.el().parentNode).left;this.update(i,`${r}px`)}handleTouchMove(e){let t=this.ot,i=a_(t)+this.calculateDistance(e)*av(t),r=e.touches[0].pageX-tS(this.el().parentNode).left;this.update(i,`${r}px`)}createEl(){let e=super.createEl();return this.ga=al.createEl("span",{className:"theo-time-tooltip-text"}),e}update(e,t){this.Vr=e;let i=this.gl(e);this.el().style.left=t,this.el().setAttribute("data-current-time",i),this.keepTooltipsInside&&(eu(this.ga,i),this.gu())}gu(){if(this.keepTooltipsInside&&this.tooltip.offsetParent){let e=this.player().contentEl(),t=e.getClientRects(),i=t.length>0?t[0]:void 0,r=w(getComputedStyle(e).fontSize);eI(this.tooltip,this.el(),i,r)}}gl(e){let t=this.ot,i=e-ap(t);return ay(ac(t)?k.min(i,0):i,av(t))}dispose(){var e;this.ot.removeEventListener("dimensionchange",this.gn),null==(e=this.ot.presentation)||e.removeEventListener("presentationmodechange",this.gn),super.dispose()}};al.registerComponent("MouseTimeDisplay",a8);let oe=al.getComponent("PlayProgressBar");var ot=class extends af(oe){constructor(e,t){super(e,t)}updateDataAttr(){let e=ad(this.player());this.el().setAttribute("data-current-time",this.gl(e))}gl(e){let t=this.ot;return ay(e-ap(t),av(t))}createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}buildCSSClass(){return`theo-primary-color vjs-play-progress vjs-slider-bar ${super.buildCSSClass()}`}};al.registerComponent("PlayProgressBar",ot);let oi=al.getComponent("RemainingTimeDisplay");var or=class extends af(oi){constructor(e,t){super(e,t),this.on(e,"timeupdate",this.updateContent),this.on(e,"emptied",this.updateContent)}updateContent(){let e=this.ot,t=av(e);if(t){let i=am(e).end(0),r=this.localize("Remaining Time"),s=ay(k.max(0,i-this.player().currentTime()),t);s!==this.ec&&(this.ec=s,this.contentEl().innerHTML=`<span class="vjs-control-text">${r}</span> -${s}`)}}};al.registerComponent("RemainingTimeDisplay",or);var os=class{constructor(e,t){this.gd=t,this.g_=void 0,this.gv=void 0,this.be=void 0,this.bi=void 0,this.br=[],this.bs=void 0,this.az=void 0,this.bn=()=>{this.ba(this.bo())},this.bl=e=>{let t=e.track;"chapters"===t.kind&&(t.addEventListener("addcue",this.bn),t.addEventListener("removecue",this.bn),t.addEventListener("readystatechange",this.bn)),this.bn()},this.bh=e=>{let t=e.track;"chapters"===t.kind&&(t.removeEventListener("addcue",this.bn),t.removeEventListener("removecue",this.bn),t.removeEventListener("readystatechange",this.bn)),this.bn()},this.b_=e=>{var t,i;let r,s,n,a,o,l,h,u,c=this.ot,d=(t=this.g_,i=e,n=tS(t),a=t.offsetWidth,o=t.offsetHeight,l=n.top,h=n.left,void 0!==i.changedTouches?(s=i.changedTouches[0].pageX,r=i.changedTouches[0].pageY):(s=i.pageX,r=i.pageY),u=td((l-r+o)/o,0,1),{x:td((s-h)/a,0,1),y:u}),p=a_(c)+d.x*av(c);p===c.duration&&(p-=.1),this.bm(p)},this.bg=()=>{this.gv.Cq()},this.CR=()=>{this.gv.Cu()},this.TR=()=>{this.bi&&(this.ki(),this.kr(),this.ks())},this.ks=()=>{var e,t;let i=null==(e=this.bi)||null==(e=e.activeCues)?void 0:e[0],r=eo(this.br,e=>e.kn===i);r!==this.bs&&(null==(t=this.bs)||t.Rw(),this.bs=r,null==r||r.Ry())},this.be=e,this.gv=new oa,this.gd.contentEl().appendChild(this.gv.Eo),this.g_=m.createElement("div"),e4(this.g_,"theoplayer-chapterbar"),this.be.appendChild(this.g_),this.be.addEventListener("mousemove",this.b_),this.be.addEventListener("mouseenter",this.CR),this.be.addEventListener("mouseleave",this.bg),this.ka()}get ot(){var e;return null!=(e=this.az)?e:this.az=ag(this.gd)}kr(){let e=this.bi;if(!e)return;let t=this.ot;if(0===t.seekable.length)return;let i=e.cues.slice();this.gv.o7(i);for(let e=0;e<i.length;e++){let r=i[e],s=i[e+1],n=!s||r.endTime!==s.startTime,a=new on(r,t,n);this.br.push(a),this.g_.appendChild(a.Eo)}}ka(){this.ot.addEventListener("loadedmetadata",this.bn),this.ot.addEventListener("loadeddata",this.bn),this.ot.addEventListener("sourcechange",this.bn),this.ot.addEventListener("durationchange",this.TR),this.ot.clip.addEventListener("change",this.TR),this.ot.textTracks.addEventListener("addtrack",this.bl),this.ot.textTracks.addEventListener("removetrack",this.bh),this.ot.textTracks.addEventListener("change",this.bn)}ko(){this.ot.removeEventListener("loadedmetadata",this.bn),this.ot.removeEventListener("loadeddata",this.bn),this.ot.removeEventListener("sourcechange",this.bn),this.ot.removeEventListener("durationchange",this.TR),this.ot.clip.removeEventListener("change",this.TR),this.ot.textTracks.removeEventListener("addtrack",this.bl),this.ot.textTracks.removeEventListener("removetrack",this.bh),this.ot.textTracks.removeEventListener("change",this.bn)}bo(){if(!(this.ot.readyState<1)){for(let e of this.ot.textTracks)if("chapters"===e.kind&&"showing"===e.mode&&e.cues.length>0&&3!==e.readyState)return e}}ba(e){let t=this.bi;e!==t&&(t&&(this.ki(),t.removeEventListener("cuechange",this.ks)),this.bi=e,e&&(e.addEventListener("cuechange",this.ks),this.TR()))}bm(e){this.gv._e(e)}kl(){this.gv.Cu()}ku(){this.gv.Cq()}ki(){for(let e of this.br)e.v1();this.gv._l(),this.br=[],this.bs=void 0}v1(){this.ko(),this.be.removeEventListener("mousemove",this.b_),this.be.removeEventListener("mouseenter",this.CR),this.be.removeEventListener("mouseleave",this.bg),this.ba(void 0),this.gv.v1(),this.az=void 0}},on=class{constructor(e,t,i){this.kn=e,this.R8=void 0,this.R8=this.ejt(t,i)}get Eo(){return this.R8}Ry(){e4(this.R8,"theoplayer-chapter-indicator-active")}Rw(){ez(this.R8,"theoplayer-chapter-indicator-active")}ejt(e,t){let i=e.seekable.start(0),r=e.seekable.end(e.seekable.length-1),s=r-i,n=this.kn.startTime,a=this.kn.endTime,o=td(n-i,0,s),l=td(a-i,0,s),h=k.max(0,l-o),u=m.createElement("div");e4(u,"theoplayer-chapter-indicator");let c=m.createElement("div");e4(c,"theoplayer-chapter-indicator-highlight"),u.appendChild(c),t&&e4(u,"theoplayer-chapter-indicator-discontinuous");let d=o/s*100,p=h/s*100;return u.style.display=a>=i&&n<=r?"":"none",u.style.width=`${p}%`,u.style.left=`${d}%`,u}v1(){to(this.R8)}},oa=class{constructor(){this.kv=[],this.Eo=void 0,this.km=void 0,this.ky=0,this.Eo=m.createElement("div"),e4(this.Eo,"theoplayer-chaptertitle"),this.Eo.style.display="none",this.km=m.createElement("p"),this.Eo.appendChild(this.km)}Cq(){this.ky--,0===this.ky&&ez(this.Eo,"theoplayer-chapter-hovering")}o7(e){this.kv=e||[],this.kv.length>0&&(this.Eo.style.display="")}KA(e){eu(this.km,e.content)}_l(){this.kv=[],eu(this.km,""),this.Eo.style.display="none"}Cu(){this.ky++,this.ky>0&&e4(this.Eo,"theoplayer-chapter-hovering")}_e(e){for(let r of this.kv){var t,i;if(t=r,i=e,new tl([t.startTime,t.endTime]).Cf(i)){this.KA(r);break}}}v1(){to(this.Eo)}};let oo=al.getComponent("SeekBar");var ol=class extends af(oo){constructor(e,t){super(e,t),this.g_=void 0,this.playingStates=[],this.on(e,"emptied",this.update),this.on(e,"seeking",this.update),this.g_=new os(this.el(),e)}updateAriaAttributes(e){let t=ad(this.player()),i=this.ot;e.setAttribute("aria-valuenow",(100*this.kg(t)).toFixed(2)),e.setAttribute("aria-valuetext",ay(t-ap(i),av(i)))}getPercent(){return this.kg(this.player().currentTime())}handleMouseMove(e){if(this.ot&&this.ot.ads&&this.ot.ads.playing)return;let t=this.ot,i=a_(t)+this.calculateDistance(e)*av(t);i>=t.duration&&(i=t.duration-.1),this.g_.bm(i),this.player().currentTime(i)}handleMouseDown(e){this.playingStates.push(!this.player().paused()),this.g_.kl(),super.handleMouseDown(e)}handleMouseUp(e){this.videoWasPlaying=!!this.playingStates.pop(),this.g_.ku(),super.handleMouseUp(e)}kg(e){let t=this.ot;return td((e-a_(t))/av(t),0,1)}dispose(){this.g_.v1(),e$(this.playingStates)}};al.registerComponent("SeekBar",ol);let oh=al.getComponent("ProgressControl");var ou=class extends oh{constructor(e,t){super(e,t),this.on(this,"touchmove",this.handleMouseMove),this.on("touchstart",this.handleMouseDown),this.on("touchend",this.handleMouseUp),this.seekBar.off(["touchmove","touchstart","touchend"])}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){this.seekBar.handleMouseMove(e)}handleMouseDown(e){var t;null==(t=e.preventDefault)||t.call(e),this.seekBar.handleMouseDown(e)}handleMouseUp(e){var t;null==(t=e.preventDefault)||t.call(e),this.seekBar.handleMouseUp(e)}};eB.sp.tA&&al.registerComponent("ProgressControl",ou);let oc=al.getComponent("TooltipProgressBar");var od=class extends af(oc){constructor(e,t){super(e,t)}updateDataAttr(){let e=ad(this.player()),t=this.gl(e);this.el().setAttribute("data-current-time",t),this.tooltip.innerHTML=t}gl(e){let t=this.ot;return ay(e-ap(t),av(t))}createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}buildCSSClass(){return`theo-primary-color vjs-tooltip-progress-bar vjs-slider-bar ${super.buildCSSClass()}`}};function op(e){for(let t of e)if(t.enabled)return t}function o_(e){if(e){var t;return e.label&&""!==e.label?{name:e.label,hd:!1}:{name:(t=e).height?`${t.height}p`:t.bandwidth?ov(t):"",description:ov(e),hd:!!e.height&&e.height>=720}}}function ov(e){return e.bandwidth?e.bandwidth>1e7?`${(e.bandwidth/1e6).toFixed(0)}Mbps`:e.bandwidth>1e6?`${(e.bandwidth/1e6).toFixed(1)}Mbps`:`${(e.bandwidth/1e3).toFixed(0)}kbps`:""}al.registerComponent("TooltipProgressBar",od);var om=class{constructor(e){this.kk=void 0,this.kw=[],this.kk=e}get kj(){return this.kw}set kj(e){let t=this.kw;for(let i=t.length-1;i>=0;i--){let r=t[i];ew(e,r)||this.ws(r)}for(let t of e)this.wa(t);this.kk.Gx()}get wo(){return this.kk.menuItems}SP(e){let t=this.wo;if(t){for(let i of t)if(i.elU===e)return i}}SI(e){let t=this.kk.addMenuItem();return t.elU=e,t.on("click",()=>this.SW(t)),t.el().setAttribute("role","menuitemradio"),t}xh(e){e.dispose()}x_(e){return!0}wa(e){if(!this.x_(e))return void this.ws(e);{ew(this.kw,e)||this.kw.push(e);let t=this.SP(e)||this.SI(e);return this.PC(t),t}}ws(e){let t=this.SP(e);t&&(this.kk.removeMenuItem(t),this.xh(t)),L(this.kw,e)}v1(){let e=[];for(let t of this.kw)e.push(t);for(let t of e)this.ws(t);e$(e)}},oy=class extends om{constructor(e,t,i){super(e.subMenu),this.PQ=void 0,this.az=void 0,this.ME=void 0,this.LG=void 0,this.AS=void 0,this.AD=void 0,this.IE=void 0,this.IV=void 0,this.ID=void 0,this.IN=()=>{let e=op(this.az.videoTracks);if(e===this.LG)return;let t=[];if(this.LG&&(this.LG.removeEventListener("activequalitychanged",this.x1),this.LG.removeEventListener("targetqualitychanged",this.VR),this.LG.removeEventListener("update",this.eO3)),this.LG=e,e){e.addEventListener("activequalitychanged",this.x1),e.addEventListener("targetqualitychanged",this.VR),e.addEventListener("update",this.eO3);let i=og(oT(e.qualities.filter(e=>e.available)));t=i.length>1?[void 0,...i]:[void 0]}this.kj=t,this.VR(),this.x1()},this.eO3=e=>{let t,i=e.track;if(i!==this.LG)return;let r=og(oT(i.qualities.filter(e=>e.available))),s=i&&ok(i.targetQuality);this.AS=this.ja(s,r),t=r.length>1?[void 0,...r]:[void 0],this.kj=t,this.jv()},this.x1=()=>{this.wa(void 0),this.jv()},this.VR=()=>{let e=op(this.az.videoTracks),t=e&&ok(e.targetQuality),i=this.ja(t),r=this.AS;i!==r&&(this.AS=i,i&&r||this.wa(void 0),r&&ew(this.kj,r)&&this.wa(r),t&&this.wa(i),this.jv())},this.hr=()=>{for(let e of(eu(this.kk.menuHeader.el(),this.ME.localize("Quality")),eu(this.AD,this.ME.localize("Quality")),eu(this.IE,this.ME.localize("Automatic")),eu(this.IV,this.ME.localize("Automatic")),eu(this.ID,this.ME.localize("HD")),this.PQ.el().setAttribute("aria-label",this.ME.localize("Open the video quality settings menu")),this.wo))this.PC(e);this.jv()},this.PQ=e,this.az=t,this.ME=i,this.AD=this.BS(),this.IE=this.BR(),this.IV=this.NO(),this.ID=this.OS(),this.OK(),eu(this.kk.menuHeader.el(),this.ME.localize("Quality")),this.kj=[void 0],this.az.videoTracks.addEventListener(["addtrack","removetrack","change"],this.IN),this.ME.on("languagechange",this.hr),this.IN()}BS(){return this.AD=m.createElement("span"),this.AD.className="theo-settings-control-menu-item-title",eu(this.AD,this.ME.localize("Quality")),this.AD}BR(){return this.IE=m.createElement("span"),this.IE.className="theo-settings-control-menu-quality-automatic",eu(this.IE,this.ME.localize("Automatic")),this.IE}NO(){return this.IV=m.createElement("span"),eu(this.IV,this.ME.localize("Automatic")),this.IV}OS(){return this.ID=m.createElement("span"),this.ID.className="theo-primary-color theo-settings-control-menu-item-hd-label",eu(this.ID,this.ME.localize("HD")),this.ID}OK(){let e=m.createElement("span");e.className="theo-primary-color theo-settings-control-menu-item-value",e.appendChild(this.IE),e.appendChild(m.createTextNode(" ")),e.appendChild(this.IV),e.appendChild(m.createTextNode(" ")),e.appendChild(this.ID),this.PQ.el().appendChild(this.AD),this.PQ.el().appendChild(e),this.PQ.el().setAttribute("aria-label",this.ME.localize("Open the video quality settings menu"))}jv(){let e=this.LG,t=e&&ok(e.targetQuality),i=e&&e.activeQuality,r=o_(this.ja(t||i))||{name:this.ME.localize("Automatic")};eu(this.IV,r.name),ex(this.IE,"vjs-hidden",!!t),ex(this.ID,"vjs-hidden",!r.hd)}PC(e){let t=o_(e.elU)||{name:this.ME.localize("Automatic")},i=t.name;t.hd&&(i+=`<span class="theo-primary-color theo-settings-control-menu-item-hd-label">${this.ME.localize("HD")}</span>`),t.description&&(i+=`<span class="theo-settings-control-submenu-item-alternate-value">${t.description}</span>`),e.el().innerHTML=i,e.el().setAttribute("aria-label",this.ME.localize("Set video quality to ")+t.name),e.elU?e.selected(e.elU===this.AS):e.selected(!this.AS)}SW(e){this.LG&&(this.LG.targetQuality=e.elU&&e.elU.videoQualities)}ja(e,t){for(let i of t||this.kj)if(e&&i&&-1!==i.videoQualities.indexOf(e))return i}v1(){this.az.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.IN),this.ME.off("languagechange",this.hr),this.LG&&(this.LG.removeEventListener("activequalitychanged",this.x1),this.LG.removeEventListener("targetqualitychanged",this.VR),this.LG.removeEventListener("update",this.eO3)),super.v1()}},of=class{constructor(e){this.RT=e}get height(){return this.RT[0].height}get bandwidth(){return this.RT[0].bandwidth}get videoQualities(){return this.RT}get label(){return this.RT[0].label}add(e){this.RT.push(e)}};function og(e){let t=[];for(let s of e){let e=!1;for(let n of t){var i,r;if(i=n,r=s,i.label&&r.label&&i.label===r.label||ea(o_(i),o_(r))){n.add(s),e=!0;break}}e||t.push(new of([s]))}return t}function ob(e,t){return e&&t?tt(e,t):0}function oC(e,t){return e===t?0:ob(e.height,t.height)||ob(e.width,t.width)||ob(e.bandwidth,t.bandwidth)}function oT(e){return eZ(e,oC).reverse()}function ok(e){return tk(e)?1===e.length?e[0]:void 0:e}function oE(e){return 1===e?"Normal":`${k.round(100*e)/100}`}var ow=class extends om{constructor(e,t,i,r){super(e.subMenu),this.PQ=void 0,this.az=void 0,this.ME=void 0,this.$1=void 0,this.AD=void 0,this.UC=void 0,this.eFz=()=>{this.$1&&this.wa(this.$1);let e=this.az.playbackRate;this.$1=e,eu(this.UC,this.ME.localize(oE(e))),e&&this.wa(e)},this.hr=()=>{for(let e of(eu(this.kk.menuHeader.el(),this.ME.localize("Speed")),eu(this.AD,this.ME.localize("Speed")),this.PQ.el().setAttribute("aria-label",this.ME.localize("Open the video speed settings menu")),this.wo))this.PC(e);this.eFz()},this.PQ=e,this.az=t,this.ME=i,this.AD=this.BS(),this.UC=this.OK(),eu(this.kk.menuHeader.el(),this.ME.localize("Speed")),this.kj=r,this.az.addEventListener("ratechange",this.eFz),this.ME.on("languagechange",this.hr),this.eFz()}BS(){return this.AD=m.createElement("span"),this.AD.className="theo-settings-control-menu-item-title",eu(this.AD,this.ME.localize("Speed")),this.AD}OK(){let e=m.createElement("span");return e.className="theo-primary-color theo-settings-control-menu-item-value",this.PQ.el().appendChild(this.AD),this.PQ.el().appendChild(e),this.PQ.el().setAttribute("aria-label",this.ME.localize("Open the video speed settings menu")),e}SI(e){let t=super.SI(e);return this.PC(t),t}PC(e){let t=e.elU,i=this.ME.localize(oE(t));eu(e.el(),i),e.el().setAttribute("aria-label",this.ME.localize("Set video speed to ")+i),e.selected(e.elU===this.az.playbackRate)}SW(e){this.az.playbackRate=e.elU}v1(){this.az.removeEventListener("ratechange",this.eFz),this.ME.off("languagechange",this.hr),super.v1()}},oS=class extends aU{constructor(e,t){var i,r;super(e,t),this.HW=void 0,this.za=void 0,this.zh=void 0,this.zu=void 0,this.LG=void 0,this.Ct=()=>{let e=op(this.ot.videoTracks);e!==this.LG&&(this.LG&&this.LG.removeEventListener("activequalitychanged",this.x1),this.LG=e,e&&e.addEventListener("activequalitychanged",this.x1),this.x1())},this.x1=()=>{var e;let t=null==(e=this.LG)?void 0:e.activeQuality,i=!!(t&&t.height>=720);this.player().toggleClass("theo-hd",i)},e4(this.menu.el(),"theo-settings-control-menu"),eu(this.menu.menuHeader.el(),e.localize("Settings")),this.controlText("Settings"),this.p1.v2=this.controlText(),this.HW=this.menu.addSubMenuItem({name:"QualityMenuItem"}),this.za=new oy(this.HW,this.ot,e);let s=null!=(i=null==t||null==(r=t.playerOptions)?void 0:r.playbackRates)?i:[];this.zh=this.menu.addSubMenuItem({name:"PlaybackRateMenuItem"}),this.zu=new ow(this.zh,this.ot,e,s),this.ot.videoTracks.addEventListener(["addtrack","removetrack","change"],this.Ct),this.Ct()}createEl(){let e=super.createEl();return this.qu=al.createEl("span",{className:"theo-settings-control-label-hd theo-primary-background"}),eu(this.qu,this.localize("HD")),e.appendChild(this.qu),e}buildCSSClass(){return`vjs-icon-cog theo-settings-control-button ${super.buildCSSClass()}`}hr(){super.hr(),eu(this.qu,this.localize("HD")),eu(this.menu.menuHeader.el(),this.localize("Settings"))}dispose(){this.LG&&(this.LG.removeEventListener("activequalitychanged",this.x1),this.LG=void 0),this.ot.videoTracks.removeEventListener(["addtrack","removetrack","change"],this.Ct),this.za.v1(),this.zu.v1(),super.dispose()}};al.registerComponent("SettingsButton",oS);var ox=class extends om{constructor(e,t){super(e),this.eSy=void 0,this.XP=e=>{let t=e.track;this.wa(t),t.addEventListener("update",this.est)},this.esd=e=>{let t=e.track;this.ws(t),t.removeEventListener("update",this.est)},this.eng=e=>this.ell(),this.est=()=>{for(let e of this.kj)this.wa(e)},this.eSy=t,this.eSy.addEventListener("addtrack",this.XP),this.eSy.addEventListener("removetrack",this.esd),this.eSy.addEventListener("change",this.eng),this.ell()}eus(e){let t=e.label;if(t)return t;let i=e.language;if(i){let e=eM(i);if(e)return e.fR}return i||""}ell(){this.kj=this.eSy}v1(){this.eSy.removeEventListener("addtrack",this.XP),this.eSy.removeEventListener("removetrack",this.esd),this.eSy.removeEventListener("change",this.eng),super.v1()}},oP=class extends ox{constructor(e,t,i){super(e,t.audioTracks),this.ot=void 0,this.ME=void 0,this.hr=()=>{for(let e of(eu(this.kk.menuHeader.el(),this.ME.localize("Language")),this.wo))this.PC(e)},this.ot=t,this.ME=i,eu(this.kk.menuHeader.el(),this.ME.localize("Language")),this.ME.on("languagechange",this.hr)}PC(e){let t=e.elU,i=this.ME.localize(this.eus(t));eu(e.el(),i),e.el().setAttribute("aria-label",`${this.ME.localize("Set the audio language to")} ${i}`),e.selected(t.enabled)}SW(e){let t=e.elU;for(let e of this.ot.audioTracks)e!==t&&(e.enabled=!1);t.enabled=!0}v1(){this.ME.off("languagechange",this.hr),super.v1()}},oM=class extends aU{constructor(e,t){super(e,t),this.epo=void 0,this.minimumMenuItems=2,this.epo=new oP(this.menu,this.ot,e),this.controlText("Language"),this.p1.v2=this.controlText()}buildCSSClass(){return`vjs-icon-audio theo-audio-track-control-button ${super.buildCSSClass()}`}dispose(){this.epo.v1(),super.dispose()}};al.registerComponent("audioTrackButton",oM);var oL=class extends ox{constructor(e,t,i){super(e,t.textTracks),this.ot=void 0,this.ME=void 0,this.hr=()=>{for(let e of(eu(this.kk.menuHeader.el(),this.ME.localize("Subtitles")),this.wo))this.PC(e)},this.ot=t,this.ME=i,eu(this.kk.menuHeader.el(),i.localize("Subtitles")),this.ME.on("languagechange",this.hr)}x_(e){return!!super.x_(e)&&!e.forced&&ep(e.kind)}SI(e){let t=super.SI(e);e4(t.el(),"theo-text-track-menu-item");let i=m.createElement("span");t.u0=i;let r=m.createElement("div");r.className="theo-text-track-menu-item-toggle",t.eib=r;let s=e=>this.ewe(e,t);t.ext=s,r.addEventListener("click",s);let n=m.createElement("div");return n.className="theo-text-track-menu-item-toggle-slider",r.appendChild(n),t.el().appendChild(i),t.el().appendChild(r),t}PC(e){let t=e.elU,i=this.ME.localize(this.eus(t));eu(e.u0,i),e.el().setAttribute("aria-label",`${this.ME.localize("Set the subtitle language to")} ${i}`),e.el().setAttribute("role","menuitemcheckbox"),e.selected("showing"===t.mode)}xh(e){e.eib.removeEventListener("click",e.ext),super.xh(e)}SW(e){let t=e.elU;for(let e of this.ot.textTracks)e!==t&&N(e.kind,t.kind)&&(e.mode="disabled");"showing"!==t.mode?t.mode="showing":t.mode="disabled"}ewe(e,t){e.stopImmediatePropagation(),this.SW(t)}v1(){this.ME.off("languagechange",this.hr),super.v1()}},oA=class extends aU{constructor(e,t){super(e,t),this.epo=void 0,this.epo=new oL(this.menu,this.ot,e),this.controlText("Subtitles"),this.p1.v2=this.controlText()}buildCSSClass(){return`vjs-icon-subtitles theo-text-track-control-button ${super.buildCSSClass()}`}dispose(){this.epo.v1(),super.dispose()}};al.registerComponent("subtitlesButton",oA);let oI=al.getComponent("playToggle");var oV=((s=oV||{}).exp="Pause",s.eqz="Play",s.eYe="Replay",s),oj=class extends af(oI){constructor(e,t){super(e,t),this.p1=void 0,this.eIc=()=>{this.controlText("Replay"),this.p1.v2=this.controlText()},this.controlText("Play"),this.p1=new aR(this,this.controlText()),this.ot.addEventListener("ended",this.eIc),this.on(e,"languagechange",this.hr),eB.sp.e4&&new ax(this.el())}handleClick(e){this.ot.muted||this.ot.prepareWithUserAction(),super.handleClick(e)}handlePlay(e){super.handlePlay(e),this.controlText("Pause"),this.p1.v2=this.controlText()}handlePause(e){this.ot.ended||(super.handlePause(e),this.controlText("Play"),this.p1.v2=this.controlText())}hr(){this.p1.v2=this.controlText()}dispose(){this.p1.v1(),this.ot.removeEventListener("ended",this.eIc),super.dispose()}};al.registerComponent("playToggle",oj);let oD=al.getComponent("fullscreenToggle");var oB=((n=oB||{}).eYt="Exit fullscreen",n.eYi="Fullscreen",n),oF=class extends af(oD){constructor(e,t){super(e,t),this.p1=void 0,this.controlText("Fullscreen"),this.p1=new aR(this,this.controlText()),eB.sp.e4&&new ax(this.el()),this.on(e,"languagechange",this.updateContent)}handleClick(e){this.ot.prepareWithUserAction(),super.handleClick(e)}handleFullscreenChange(e){super.handleFullscreenChange(e),this.updateContent()}updateContent(){let e=this.player().isFullscreen()?"Exit fullscreen":"Fullscreen";this.controlText(e),this.p1.v2=this.controlText()}dispose(){this.p1.v1(),super.dispose()}};al.registerComponent("fullscreenToggle",oF);let oN=al.getComponent("muteToggle");var oO=((a=oO||{}).eYr="Unmute",a.eYs="Mute",a),oR=class extends af(oN){constructor(e,t){super(e,t),this.p1=void 0,this.controlText("Mute"),this.p1=new aR(this,this.controlText()),eB.sp.e4&&new ax(this.el()),this.on(e,"languagechange",this.hr),Y&&(this.removeClass("vjs-hidden"),this.on(e,"loadstart",()=>{this.removeClass("vjs-hidden")}))}handleClick(e){this.ot.muted&&!this.ot.paused&&this.ot.prepareWithUserAction(),super.handleClick(e)}update(e){super.update(e),this.hr()}hr(){let e=this.player().muted()?"Unmute":"Mute";this.controlText(e),this.p1.v2=this.controlText()}dispose(){this.p1.v1(),super.dispose()}};al.registerComponent("muteToggle",oR);let o$=al.getComponent("BigPlayButton"),oU=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150" fill="currentColor">
|
|
46
|
+
<circle cx="75" cy="75" r="73" fill="#000" fill-opacity="0.2"></circle>
|
|
47
|
+
<circle cx="75" cy="75" r="73" class="theo-play-svg-circle" stroke-width="4" stroke="currentColor" fill="none" transform="rotate(-90,75,75)"></circle>
|
|
48
|
+
<g transform="translate(85,75) scale(0.5625) translate(-75,-75)">
|
|
49
|
+
<path d="m 123.89639,85.432 c -12.865,9.167 -29.482997,19.402 -49.848997,30.7 -19.634,11.035 -36.851,19.7 -51.65,26 l -16.3990002,6.099 c -1.033,-4.433 -2,-11.002 -2.9,-19.7 -2.033,-17.333 -3.04999998,-36.466 -3.04999998,-57.399 0,-19.167 1.38199998,-37.081 4.14799998,-53.75 l 4.0019995,-19.1499994 17.3990007,5.849 c 15.068,5.9999994 31.401,14.5169994 49,25.5509994 18.631,11.666 34.616997,22.766 47.948997,33.3 6.663,5.3 11.463,9.383 14.396,12.25 l -13.046,10.25"></path>
|
|
50
|
+
</g>
|
|
51
|
+
</svg>`;var oH=class extends af(o$){createEl(){let e=super.createEl(),t=al.createEl("div",{className:"theo-big-play-button-svg-container"});return t.innerHTML=oU,e.appendChild(t),e}buildCSSClass(){return`theo-primary-color ${super.buildCSSClass()}`}handleClick(e){this.ot.muted||this.ot.prepareWithUserAction(),super.handleClick(e),void 0!==this.ot.vr&&"unavailable"!==this.ot.vr.state&&(this.ot.vr.useDeviceMotionControls=!0)}};al.registerComponent("BigPlayButton",oH);let oz=/^([^#]*)#xywh=(\d+),(\d+),(\d+),(\d+)\s*$/;var oW=class extends a8{constructor(e,t){super(e,t),this.eYn=void 0,this.eYa=void 0,this.eYo=void 0,this.eYl=e=>this.eYh(e),this.eYu=e=>this.eYc(e),this.eYd=e=>this.eYp(),this.eY_=void 0,this.showThumbnails=()=>{this.eYn&&this.eYn.hidden&&(this.eYn.hidden=!1,this.gu())},this.hideThumbnails=()=>{!this.eYn||this.eYn.hidden||this.player().scrubbing()||(this.eYn.hidden=!0,this.gu())},this.on(this.player().textTracks(),"addtrack",this.eYl),this.on(this.player().textTracks(),"removetrack",this.eYu),tx.tA&&(this.on(e,"seeking",this.showThumbnails),this.on(e,"seeked",this.hideThumbnails))}eYh(e){let t=e.track;"metadata"===t.kind&&"thumbnails"===t.label&&void 0===this.eYa&&(this.eYa=t,this.eYo=t.src?eB.s_(t.src).href:void 0,this.eYa.addEventListener(["addcue","removecue"],this.eYd),this.eYp())}eYc(e){e.track===this.eYa&&this.eYv()}createEl(){let e=super.createEl();return this.eYm=al.createEl("img",{className:"theo-time-tooltip-thumbnail"}),this.eYy=al.createEl("canvas",{className:"theo-time-tooltip-thumbnail"}),e}update(e,t){super.update(e,t),this.keepTooltipsInside&&this.eYf(e)}eYf(e){let t;if(this.eYa&&this.eYa.cues){let i=function(e,t){let i=e[0];for(let r of e)if(r.startTime<=t)i=r;else if(t>=r.endTime)break;return i}(this.eYa.cues,e);t=i&&i.content}if(t===this.eY_)return;if(this.eY_=t,al.toggleClass(this.el(),"theo-time-tooltip-has-thumbnail",!!t),!t)return void this.eYg();let i=t.match(oz);if(i){let[,e,t,r,s,n]=i;e=this.eYb(e);let a={eeZ:Number(t),eeY:Number(r),c8:Number(s),pq:Number(n)};this.eYC(e,a)}else{let e=this.eYb(t);this.eYC(e)}}eYp(){S(this.Vr)||this.eYf(this.Vr)}eYb(e){return this.eYa&&this.eYo?eB.s_(e,this.eYo).href:e}eYC(e,t){this.eYm&&(this.eYm.src!==e?(this.eYm.onload=()=>{this.eYT(t)},this.eYm.src="",this.eYm.src=e):this.eYT(t))}eYT(e){if(!this.eYy||!this.eYm)return;let t=this.eYy.getContext("2d");t&&(null!=e||(e={eeZ:0,eeY:0,c8:this.eYm.naturalWidth,pq:this.eYm.naturalHeight}),this.eYy.width=e.c8,this.eYy.height=e.pq,t.drawImage(this.eYm,e.eeZ,e.eeY,e.c8,e.pq,0,0,e.c8,e.pq),this.eYk(this.eYy))}eYk(e){this.eYn||(eO(this.tooltip,e),this.eYn=e),this.gu()}eYg(){this.eYn&&(this.tooltip.removeChild(this.eYn),this.eYn=void 0,this.gu())}eYv(){void 0!==this.eYa&&(this.eYa.removeEventListener(["addcue","removecue"],this.eYd),this.eYa=void 0),this.eYo=void 0,this.eYg(),this.eY_=void 0}dispose(){this.eYv(),super.dispose()}};al.registerComponent("MouseTimeDisplay",oW);let oq=al.getComponent("VolumeLevel");var oQ=class extends oq{createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}buildCSSClass(){return`theo-primary-color vjs-volume-level ${super.buildCSSClass()}`}};al.registerComponent("VolumeLevel",oQ);let oG=al.getComponent("Component");var oX=class extends oG{createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}buildCSSClass(){return`theo-menu-container ${super.buildCSSClass()}`}};oX.prototype.e=H(H({},oX.prototype.e),{},{children:[]}),al.registerComponent("controlBarMenuContainer",oX);let oK=al.getComponent("Player");var oY=class extends oK{constructor(e,t,i){super(e,t,i),this.handleKeyPress=e=>{9===e.which&&this.addClass("theo-probably-keyboard-focus")},this.handleClick=e=>{(0!==e.x||0!==e.y)&&this.removeClass("theo-probably-keyboard-focus")},m.body.addEventListener("keydown",this.handleKeyPress),m.body.addEventListener("click",this.handleClick)}dispose(){let e=this.el(),t=this.contentEl(),i=e.parentNode,r=e.nextSibling;super.dispose(),to(t),this.st&&i&&(r?i.insertBefore(e,r):i.appendChild(e)),m.body.removeEventListener("keydown",this.handleKeyPress),m.body.removeEventListener("click",this.handleClick)}};oY.prototype.e=H(H({},oK.prototype.e),{},{children:["bigPlayButton","AdControlPanel","TopControlBar","mediaLoader","upNextContainer","posterImage","chromecastOverlay","upcomingAdNotificationText","controlBarMenuContainer","controlBar","textTrackDisplay","loadingSpinner","errorDisplay","textTrackSettings","xrCompass"]}),al.registerComponent("Player",oY);let oJ=al.getComponent("Player"),oZ=oJ.prototype.at;oJ.prototype.at=function(e){if(!(this.w&&this.w.lo&&this.w.lo()))return oZ.call(this,e)};let o0=oJ.prototype.createEl;function o1(e,t,i,r){var s;let n=H({controls:!0,playbackRates:[.25,.5,1,1.25,1.5,2]},i);n.controlBar=H({progressControl:{keepTooltipsInside:!0}},n.controlBar);let a=n.techOrder||(n.techOrder=[]);-1===a.indexOf("THEOplayer")&&a.unshift("THEOplayer"),(n.theoplayer||(n.theoplayer={})).player=e,i&&eV(i.language)&&(n.languages=H(H({},n.languages),{},{und:i.language}),n.language="und"),t.setAttribute("data-vjs-player","");let o=t.getAttribute("style"),l=al(e.element,n,r);return l.ready(()=>{let t,i;t=ag(l),i=()=>{let e=ad(l);l.toggleClass("theo-at-live",function(e,t){if(ac(e)){let i=e.seekable;return 0===i.length||i.end(i.length-1)-t<10}return!1}(t,e)),l.toggleClass("vjs-live",ac(t)),l.toggleClass("theo-dvr","dvr"===eJ(t.duration,t.seekable,t.source))},l.on("emptied",i),l.on("timeupdate",i),l.on("durationchange",i),function(e,t){if(t){let i=t.ads;if(i){let r=t=>{ab(e,"adbreakbegin"===t.type,"google-dai"===t.adBreak.integration)};i.addEventListener("adbreakbegin",r),i.addEventListener("adbreakend",r),t.addEventListener("destroy",()=>{i.removeEventListener("adbreakbegin",r),i.removeEventListener("adbreakend",r)})}let r=t.uplynk;if(r){let i=t=>{ab(e,"adbreakbegin"===t.type,!1)},s=e=>{e.adBreak.addEventListener("adbreakbegin",i),e.adBreak.addEventListener("adbreakend",i)};for(let e of r.ads.adBreaks)e.addEventListener("adbreakbegin",i),e.addEventListener("adbreakend",i);r.ads.adBreaks.addEventListener("addadbreak",s),t.addEventListener("destroy",()=>{for(let e of r.ads.adBreaks)e.removeEventListener("adbreakbegin",i),e.removeEventListener("adbreakend",i);r.ads.adBreaks.removeEventListener("addadbreak",s)})}t.addEventListener("sourcechange",()=>{ab(e,!1,!1)})}}(l,e),l.on("mouseleave",aC)}),t.removeAttribute("data-vjs-player"),o?t.setAttribute("style",o):t.removeAttribute("style"),eB.sp.tA&&(e4(t,"theo-mobile"),o2(t)),(s=l).on("seeking",()=>{tb(s.el(),"vjs-ended")&&s.currentTime()!==s.duration()&&s.play()}),l}function o2(e){v.outerHeight>v.outerWidth?(ez(e,"theo-mobile-landscape"),e4(e,"theo-mobile-portrait")):(ez(e,"theo-mobile-portrait"),e4(e,"theo-mobile-landscape"))}oJ.prototype.createEl=function(){let e=o0.call(this),t=al.createEl("div");for(t.className="theo-player-wrapper";e.firstChild;)t.appendChild(e.firstChild);return e.appendChild(t),this.o=t,e};let o3=al.getComponent("Button"),o5="THEOPiPCloseButton";var o4=class extends o3{constructor(e,t){if(super(e,t),this.eYE=void 0,this.controlText("Close Picture-in-Picture"),!(t&&t.eYE))throw new g("Invalid Picture-in-picture options.");this.eYE=t.eYE}buildCSSClass(){return"theo-close-button theo-pip-close"}handleClick(){this.eYE.eYw()}};al.registerComponent(o5,o4);var o6=class extends eg{constructor(e,t,i){super(),this.jF=void 0,this.cD=void 0,this.eYS=void 0,this.R5=void 0,this.jx=void 0,this.HH=!1,this.cG=!1,this.eYx=!1,this.eYP=!1,this.RG=!1,this.eYw=void 0,this.eYM=!1,this.eYL=void 0,this.eYA=void 0,this.eYI=void 0,this.eYV=!1,this.eYj=void 0,this.eYD=()=>{this.HH=!0,this.eYj&&!this.cX&&this.eYL&&this.jF&&this.eYL.jw<=this.jF&&this.cx(!1)},this.eYB=()=>{this.eYS||(this.HH=!1,this.eYw(),this.cI(!1))},this.hr=()=>{if(this.eYI){let e=this.R5.eYF;eu(this.eYI,e.localize("Video playing in Picture-in-Picture mode"))}},this.ey9=e=>{!this.eYP&&this.eYj&&!S(e)&&(this.jF&&e<=this.jF||this.eYV?this.cG||this.eYx||this.cx(!1):this.cG?this.cI(!1):this.eYx=!1)},this.jF=t.visibility,this.cD=t.position,this.eYS=t.retainPresentationModeOnSourceChange,this.eYj=void 0!==this.jF,this.R5=e,this.jx=e.eYN,this.eYw=i,this.eYO()}get cX(){return this.cG}get eYR(){return this.R5.EU()}eYO(){this.R5.sZ("play",this.eYD),this.eYS||this.R5.sZ("sourcechange",this.eYB),this.R5.eYF.on("languagechange",this.hr)}eY$(){var e;return`theo-pip-${null!=(e=this.cD)?e:"bottom-right"}`}cx(e){let t=this.jx;t&&!this.eYR&&(this.RG||this.eGk(),this.eYU(),e4(t,"theo-pip"),e4(t,this.eY$()),this.cG=!0,this.eYP=e,this.eYx=!1,this.sX(new el("picture-in-picture")))}cI(e){let t=this.jx;t&&(this.eYH(),ez(t,"theo-pip"),ez(t,this.eY$()),this.cG=!1,this.eYx=e,this.eYV=this.eYP,this.eYP=!1,this.sX(new el("inline")))}eGk(){if(!this.RG){let e=this.R5.eYF;e.addChild(o5,{eYE:this});let t=m.createElement("div");t.className="theo-pip-overlay",this.eYI=m.createElement("div"),this.eYI.className="theo-pip-overlay-text",eu(this.eYI,e.localize("Video playing in Picture-in-Picture mode")),t.appendChild(this.eYI),eO(e.el(),t),this.eYA=t,this.RG=!0}}eG2(){this.eYj&&!this.eYM&&this.R5.A6&&(this.eYL=this.R5.A6.jM(tT,this.ey9),this.eYM=!0)}eG4(){this.eYL&&this.R5.A6&&(this.R5.A6.jq(this.eYL),this.eYM=!1)}eYU(){let e=this.R5.eYF.contentEl(),t=e.getBoundingClientRect(),i=m.documentElement.clientWidth,r=m.documentElement.clientHeight;e.style.top=`${t.top}px`,e.style.bottom=`${r-t.bottom}px`,e.style.right=`${i-t.right}px`,e.style.left=`${t.left}px`,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.style.position="fixed"}eYH(){let e=this.R5.eYF.contentEl();e.style.top="",e.style.bottom="",e.style.right="",e.style.left="",e.style.width="",e.style.height="",e.style.position=""}eYz(){ez(this.jx,"theo-pip"),this.cX&&this.cD&&ez(this.jx,`theo-pip-${this.cD}`),this.eYA&&(to(this.eYA),this.eYA=void 0)}_j(){this.eYz(),this.eG4(),this.s0(),this.R5.s1("play",this.eYD),this.R5.s1("sourcechange",this.eYB),this.R5.eYF.off("languagechange",this.hr),this.R5=void 0}},o9=class extends J{constructor(e,t,i,r){super(t,i),this.Sl=void 0,this.eYW=void 0,this.eYq="inline",this.eYQ=!1,this.eYw=()=>{"picture-in-picture"===this.DN&&this.Dz("inline")},this.eYG=e=>{!this.DO&&("picture-in-picture"!==this.DN||this.eYW.cX?"picture-in-picture"!==this.DN&&this.eYW.cX&&(this.eYQ=!0,this.Dz("picture-in-picture")):this.Dz("inline"))},this.eYX=()=>{("picture-in-picture"===this.DH()||"inline"===this.DH())&&this.eYW.eG2(),this.Sl.s1("play",this.eYX)},this.Sl=e,this.eYW=new o6(e,r.pip,this.eYw),this.eYW.sZ("presentationmodechange",this.eYG),this.Sl.sZ("play",this.eYX)}DH(){let e=super.DH();return"inline"===e&&this.eYW.cX?"picture-in-picture":e}DW(e){return"picture-in-picture"===e||super.DW(e)}Dz(e){this.eYq=this.DN,"fullscreen"===e||"native-picture-in-picture"===e?this.eYW.eG4():this.eYW.eG2(),super.Dz(e)}DG(e){super.DG(e),"picture-in-picture"===e?X(this.DF._G(e=>this.eYK(e))):"fullscreen"===e?this.eYW.cI(!1):this.eYW.cI(!0)}async eYK(e){eC(e),await Promise.all([this.D_(),this.Lf.cI()]).catch(ts),eC(e),this.eYW.cx(!this.eYQ),this.sX(new el(this.DN)),this.eYQ=!1,this.DO=!1}DU(){this.DO||(this.eYW.cX&&this.Lm.EU?this.Dz("fullscreen"):"picture-in-picture"!==this.eYq||this.Lm.EU?super.DU():(this.eYQ=!0,this.Dz("picture-in-picture")))}_j(){super._j(),this.eYW._j(),this.Sl.s1("play",this.eYX),this.Sl=void 0}},o7=class extends eg{constructor(e,t){super(),this.eYF=void 0,this.eYY=void 0,this.os=!1,this.eYJ=!1,this.DE=!1,this.eYZ=()=>{if(this.DE)return;let e=this.os,t=this.EU;e!==t&&(this.os=t,this.sX(new em))},this.eY0=()=>{this.eYJ=this.eYY.EU,this.eYZ()},this.eY1=()=>{!this.DE&&(this.eYF.isFullWindow&&this.eYF.supportsFullScreen()||this.eYJ&&!this.eYF.supportsFullScreen())&&(this.DE=!0,this.eYF.exitFullscreen(),this.eYF.requestFullscreen(),this.DE=!1,this.eYZ())},this.eYF=e,this.eYY=t,this.eYF.on("fullscreenchange",this.eYZ),this.eYY.sZ("fullscreenchange",this.eY0),this.eYY.sZ("fullscreensupportchange",this.eY1),this.eYY.sZ("fullscreenerror",this.s$),this.eYZ()}get L_(){return tI.Dg(this.eYF.el())||this.eYF.supportsFullScreen()}get EU(){return this.eYF.isFullscreen()||this.eYJ}cx(){this.eYF.requestFullscreen()}cI(){this.eYF.exitFullscreen(),this.eYY.cI()}_j(){this.s0(),this.eYF.off("fullscreenchange",this.eYZ),this.eYY.s1("fullscreenchange",this.eYZ),this.eYY.s1("fullscreenerror",this.s$),this.eYF.isFullWindow&&this.eYF.exitFullscreen()}};function o8(e){var t;let i=M(e);return i.ui=i.ui||{},(null==e?void 0:e.width)!==void 0&&void 0===i.ui.width&&(i.ui.width=e.width),(null==e?void 0:e.height)!==void 0&&void 0===i.ui.height&&(i.ui.height=e.height),(null==e?void 0:e.fluid)!==void 0&&void 0===i.ui.fluid&&(i.ui.fluid=e.fluid),(t=(t=i.pip)||{}).position=function(e){switch(e){case"top-left":case"top-right":case"bottom-left":case"bottom-right":return e;default:return}}(t.position),t.visibility=function(e){if(!(!tL(e)||S(e)))return td(e,0,1)}(t.visibility),t.retainPresentationModeOnSourceChange=et(t.retainPresentationModeOnSourceChange),i.pip=t,i}let le=eL(()=>{let e=(t=e9(),class extends t{constructor(e,t,i){super(t,i),this.eYN=void 0,this.eYF=void 0,this.eY2=void 0,this.eY3=void 0,this.eY5=void 0,this.eY4=void 0,this.eYN=e,this.eY3=new eS(e),this.eY2=super.uN(),T.defineProperty(this.eY2,"constructor",{value:ta}),this.eYF=o1(this.eY2,this.eYN,i.ui),this.eY4=new o7(this.eYF,this.C5),this.eY5=new o9(this,this.eY4,this.C7,i),this.eY5.sZ("presentationmodechange",this.s$)}get A6(){return this.eY3}EU(){return"fullscreen"===this.eY5.DH()}uN(){var e,t;let i,r;return e=this.eY2,t=this,i=T.create(e),r=t.eYF,Q(i,{get controls(){return r.controls()},set controls(e){r.controls(et(e))},get presentation(){return t.eY5.uM},get presentationMode(){return t.eY5.DH()},set presentationMode(e){let i=eU(e);i&&t.eY5.Dz(i)},get related(){var e;return null==(e=t.eY6)?void 0:e.uM},get social(){var e;return null==(e=t.eY9)?void 0:e.uM},get ui(){return r},get upnext(){var e;return null==(e=t.eY7)?void 0:e.uM},get visibility(){return t.A6.uM}})}_j(){super._j(),this.eY5._j(),this.eY4._j(),this.eYF.dispose(),this.eY3._j()}Cz(e){this.eYF.src(""),super.Cz(e)}});var t,i=e;let r=i;for(let e of tj)r=e(r);return r});function lt(e,t){let i=o8(t),r=m.createElement("div");eQ(r),e.appendChild(r);let s=new(le())(e,r,i);s.Ex=s;let n=s.uM;s.kC(),s.QU(eq),T.defineProperty(n,"constructor",{value:lt}),n=$(n),e8(s);for(let e of tD)e(s);return n}let li="theo-cast-",lr=al.getComponent("Button");var ls=class extends af(lr){constructor(e,t){var i;super(e,t),this.jx=void 0,this.ly=void 0,this.p1=void 0,this.eY8=void 0,this.jx=e.el(),this.ly="unavailable",this.controlText("Unavailable"),this.p1=new aR(this,this.controlText()),null==(i=this.eJe)||i.addEventListener("statechange",e=>{this.e$5(e.state)}),eB.sp.e4&&(this.eY8=new ax(this.el())),this.e$5(this.eJe?this.eJe.state:"unavailable"),this.on(e,"languagechange",this.hr)}get eJe(){throw new g("eJt")}get eJi(){return this.e.eJi}get eJr(){return this.e.eJr}buildCSSClass(){return`${li}button theo-${this.eJr}-button theo-controlbar-button ${super.buildCSSClass()}`}createEl(e,t,i){let r=super.createEl(),s=m.createElement("div");s.className="theo-button-icon-blur";let n=m.createElement("div");return n.className=`${li}svg-container`,n.innerHTML=this.eJi,r.appendChild(s),r.appendChild(n),r}handleClick(e){var t,i;super.handleClick(e),"available"===this.ly?null==(t=this.eJe)||t.start():("connected"===this.ly||"connecting"===this.ly)&&(null==(i=this.eJe)||i.stop())}e$5(e){ez(this.jx,`theo-${this.eJr}-${this.ly}`),this.ly=e,e4(this.jx,`theo-${this.eJr}-${this.ly}`),this.hr()}hr(){this.eJs(this.ly),this.p1.v2=this.controlText()}eJs(e){"connected"===e?this.controlText("Stop Casting"):"available"===e?this.controlText("Start Casting"):"connecting"===e?this.controlText("Connecting"):this.controlText("Unavailable")}};let ln=0;var la=class extends ls{constructor(e,t){let i;super(e,H(H({},t),{},{eJr:"chromecast",eJi:(i=`
|
|
52
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="currentColor">
|
|
53
|
+
<defs>
|
|
54
|
+
<clipPath id="theo-chromecast-rings-mask-${ln}">
|
|
55
|
+
<path d="M0-36h44V0H0z"/>
|
|
56
|
+
</clipPath>
|
|
57
|
+
</defs>
|
|
58
|
+
<path class="theo-chromecast-outer" d="M2 10a4 4 0 0 1 4-4h36a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H28v-4h14V10H6v6H2z"/>
|
|
59
|
+
<path class="theo-chromecast-inner" d="M10 14h28v20H26.74A26 26 0 0 0 10 17.26z"/>
|
|
60
|
+
<g class="theo-chromecast-rings" fill="none" stroke="currentColor" stroke-width="4" transform="translate(2 42)" clip-path="url(#theo-chromecast-rings-mask-${ln})">
|
|
61
|
+
<circle stroke="none" cx="0" cy="0" r="30" />
|
|
62
|
+
<circle class="theo-chromecast-ring theo-chromecast-ring1" stroke-width="6" cx="0" cy="0" r="3" />
|
|
63
|
+
<circle class="theo-chromecast-ring theo-chromecast-ring2" cx="0" cy="0" r="12" />
|
|
64
|
+
<circle class="theo-chromecast-ring theo-chromecast-ring3" cx="0" cy="0" r="20"/>
|
|
65
|
+
<path class="theo-chromecast-ring theo-chromecast-ring4" stroke-linecap="round" d="M0-20A20 20 0 0 1 20 0" />
|
|
66
|
+
</g>
|
|
67
|
+
</svg>`,ln++,i)}))}get eJe(){var e;return null==(e=this.ot.cast)?void 0:e.chromecast}};al.registerComponent("chromecastButton",la);let lo="theo-chromecast-",ll=al.getComponent("Component");var lh=class e extends af(ll){constructor(e,t){var i,r;super(e,t),this.eJn=void 0,this.update=()=>{this.eJn?(this.km&&eu(this.km,this.eJn.receiverName||""),"connected"===this.eJn.state?this.show():this.hide()):this.hide()},this.eJn=null==(i=this.ot.cast)?void 0:i.chromecast,null==(r=this.eJn)||r.addEventListener("statechange",this.update),this.ot.addEventListener("play",this.update),this.update()}buildCSSClass(){return`${lo}overlay ${super.buildCSSClass()}`}createEl(){let t=super.createEl();e4(t,`${lo}overlay`);let i=al.createEl("div",{className:`${lo}status-icon`,innerHTML:e.ICON_SVG}),r=al.createEl("div",{className:`${lo}status-info`});eu(r,"Playing on");let s=al.createEl("div",{className:`${lo}status-title`}),n=al.createEl("div",{className:`${lo}status`});return this.km=s,n.appendChild(i),n.appendChild(r),n.appendChild(s),t.appendChild(n),t}dispose(){var e;null==(e=this.eJn)||e.removeEventListener("statechange",this.update),this.eJn=void 0,this.ot.removeEventListener("play",this.update),super.dispose()}};lh.ICON_SVG=`
|
|
68
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" fill="currentColor">
|
|
69
|
+
<path d="M7 24v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H11v1.63c3.96 1.28 7.09 4.41 8.37 8.37H25V13zM7 16v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H9c-1.1 0-2 .9-2 2v3h2v-3h18v14h-7v2h7c1.1 0 2-.9 2-2V11c0-1.1-.9-2-2-2z"/>
|
|
70
|
+
</svg>`,al.registerComponent("chromecastOverlay",lh);let lu=`
|
|
71
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">
|
|
72
|
+
<path class="theo-cast-inner" d="M5 7h14v8H5z"/>
|
|
73
|
+
<path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>
|
|
74
|
+
</svg>`;var lc=class extends ls{constructor(e,t){var i,r;super(e,H(H({},t),{},{eJr:"airplay",eJi:lu})),this.eJa=()=>{this.enable()},this.eJo=e=>{"theoads"!==e.adBreak.integration&&"google-dai"!==e.adBreak.integration&&this.disable()},null==(i=this.ot.ads)||i.addEventListener("adbreakbegin",this.eJo),null==(r=this.ot.ads)||r.addEventListener("adbreakend",this.eJa),this.ot.addEventListener("currentsourcechange",this.eJa)}dispose(){var e,t;null==(e=this.ot.ads)||e.removeEventListener("adbreakbegin",this.eJo),null==(t=this.ot.ads)||t.removeEventListener("adbreakend",this.eJa),this.ot.removeEventListener("currentsourcechange",this.eJa),super.dispose()}get eJe(){var e;return null==(e=this.ot.cast)?void 0:e.airplay}};al.registerComponent("airplayButton",lc);let ld=al.getComponent("Button");var lp=class extends af(ld){constructor(e,t){var i;super(e,t),this.eJl=void 0,this.eY8=void 0,this.eJh=()=>this.f1(),this.controlText("Watch in VR"),this.eJl=new aR(this,this.controlText()),null==(i=this.ot.vr)||i.addEventListener(["statechange","stereochange"],this.eJh),this.f1(),eB.sp.e4&&(this.eY8=new ax(this.el())),this.on(e,"languagechange",this.hr)}buildCSSClass(){return`theo-vr-button theo-controlbar-button ${super.buildCSSClass()}`}handleClick(){this.ot.vr.stereo=!this.ot.vr.stereo,this.hr()}f1(){let e=this.ot.vr;e&&"unavailable"!==e.state?(this.show(),e.canPresentVR?this.enable():this.disable()):this.hide(),this.hr()}hr(){let e=this.ot.vr;e&&"unavailable"!==e.state&&(e.stereo?this.controlText("Stop watching in VR"):e.canPresentVR?this.controlText("Watch in VR"):this.controlText("No VR capable device found"),this.eJl.v2=this.controlText())}dispose(){var e;null==(e=this.ot.vr)||e.removeEventListener(["statechange","stereochange"],this.eJh),super.dispose()}};al.registerComponent("vrButton",lp);let l_=al.getComponent("Component");var lv=class extends l_{constructor(e,t,i){super(e,t),this.ot=void 0,this.eJh=()=>this.f1(),this.eJu=()=>this.eJc(),this.ot=i,this.ot.vr.addEventListener("statechange",this.eJh),this.ot.vr.addEventListener("directionchange",this.eJu),this.f1(),this.eJc()}createEl(){let e=super.createEl("div",{className:this.buildCSSClass()}),t=al.createEl("div",{className:"theo-360-fov"});return e.appendChild(t),this.eJd=t,e}buildCSSClass(){return`theo-360-compass ${super.buildCSSClass()}`}f1(){"unavailable"===this.ot.vr.state?this.hide():this.show()}eJc(){let e=-this.ot.vr.direction.yaw+40;this.eJd.style[e_("transform")]=`scale(0.875) rotate(${e}deg) skew(-10deg)`}dispose(){this.ot.vr.removeEventListener("statechange",this.eJh),this.ot.vr.removeEventListener("directionchange",this.eJu),super.dispose()}};let lm=2**31-1,ly=al.getComponent("Component");var lf=class extends ly{constructor(e,t,i){super(e,t),this.ot=void 0,this.eJp=!1,this.eJ_=!1,this.eJv="",this.eJm=()=>this.eJy(),this.ot=i,this.ot.vr.addEventListener("statechange",this.eJm),this.eJy()}eJy(){"presenting"===this.ot.vr.state?this.eJf():this.eJg()}eJf(){if(this.eJp)return;this.eJp=!0;let e=this.ot.element;this.eJv=e.style.zIndex||"",e.style.zIndex=`${lm}`,this.eJ_=this.player().isFullscreen(),this.player().requestFullscreen()}eJg(){this.eJp&&(this.eJp=!1,this.ot.element.style.zIndex=this.eJv,this.eJ_?this.player().requestFullscreen():this.player().exitFullscreen())}dispose(){this.eJg(),this.ot.vr.removeEventListener("statechange",this.eJm),super.dispose()}};tB(function(e){let t=e.uM;if(!t.vr)return;let i=e.eYF,r=new lv(i,{},t);if(e.sZ("sourcechange",()=>{var t;i.removeChild(r);let s=null==(t=e.Eq())?void 0:t.vr;void 0===s||s.nativeVR||i.addChild(r)}),tx.tp){let e=new lf(i,{},t);i.addChild(e)}});let lg=al.getComponent("Component");var lb=class extends lg{constructor(e,t){super(e,t),e.adControlBar=this}buildCSSClass(){return"theo-ad-control-panel"}createEl(){let e=super.createEl();return e.className=this.buildCSSClass(),e}};lb.prototype.e=H(H({},lg.prototype.e),{},{children:[]}),al.registerComponent("AdControlPanel",lb);let lC=al.getComponent("Component"),lT="theo-dai-countdown";var lk=class extends lC{constructor(e,t,i){super(e,i),this.Sl=e,this.uD=t,this.hr=()=>{let e=this.uD.ads;e.playing&&e.currentAdBreak&&e.currentAds.length&&eu(this.contentEl(),function(e,t,i){let r=e.ads,s="",n=r.length;if(n>1){let e=r.indexOf(t)+1;s=`${i("Ad")} ${e}/${n}. `}let a=k.ceil(e.maxRemainingDuration);return s+i("The content will resume in {1} seconds.").replace("{1}",`${a}`)}(e.currentAdBreak,e.currentAds[0],e=>this.Sl.localize(e)))},this.eJb(t,t.ads),this.on(e,"languagechange",this.hr)}buildCSSClass(){return lT}createEl(e,t,i){let r=m.createElement("div");return r.className=lT,r}eJb(e,t){t.addEventListener("adbreakbegin",()=>this.show()),t.addEventListener("adbreakend",()=>this.hide()),e.addEventListener("timeupdate",this.hr)}};let lE="theo-dai-clickthrough",lw=al.getComponent("ClickableComponent");var lS=class extends lw{constructor(e,t){super(e,t),eu(this.el(),e.localize("Learn more")),this.on(e,"languagechange",this.hr)}buildCSSClass(){return lE}createEl(e,t,i){return this.e.uM.element.querySelector(`.${lE}`)}emitTapEvents(){}hr(){eu(this.el(),this.localize("Learn more"))}};tB(function(e){let t=e.uM.ads;if(t&&t.dai){let t=e.eYF,i=new lk(t,e.uM);if(t.adControlBar.addChild(i),e.uM.element.querySelector(".theo-dai-clickthrough")){let i=new lS(t,{uM:e.uM});t.adControlBar.addChild(i)}}});let lx=al.getComponent("Component");var lP=class extends lx{constructor(e,t){super(e,t),this.qi=()=>{this.hr(this.player().currentTime(),this.el())},this.on(e,"timeupdate",this.qi)}createEl(){let e=m.createElement("div");return e.className="theoplayer-ad-overlay-component theo-ad-remaining-container",e}get Id(){return this.e.adBreakProvider()}hr(e,t){if(this.Id&&this.Id.endTime){let i=k.max(this.Id.endTime-e,0);eu(t,`Content will resume in ${k.ceil(i)}s`),this.show()}else this.hide()}};al.registerComponent("UplynkAdBreakBar",lP);let lM=al.getComponent("ClickableComponent");var lL=class extends lM{constructor(e,t){super(e,t),this.qi=()=>{this.hr(this.el(),this.eFv)},this.on(e,"timeupdate",this.qi)}createEl(){let e=m.createElement("div");return e.className="theoplayer-ad-overlay-component theoplayer-ad-skip theoplayer-ad-skip-countdown",this.eFv=m.createElement("span"),e.appendChild(this.eFv),this.hr(e,this.eFv),e}handleClick(){this.e.skipCallback()}hr(e,t){this.eJC<=e3.m9.m2?(ez(e,"theoplayer-ad-skip-countdown"),e4(e,"theoplayer-ad-skip-button"),eu(t,"Skip ads")):eu(t,`Skip ads in ${k.ceil(this.eJC)}s`)}get eJC(){return this.e.adBreak.startTime+this.e.adBreak.skipOffset-this.player().currentTime()}};al.registerComponent("UplynkAdSkipButton",lL);let lA=al.getComponent("Component");var lI=class extends lA{constructor(e,t){super(e,t)}buildCSSClass(){return"theo-uplynk-marker-bar"}createEl(e,t,i){let r=m.createElement("div");return r.className=this.buildCSSClass(),r}updateMarkers(e){let t=this.children().slice(),i=0,r=0;for(;i<t.length&&r<e.length;i++,r++){let s=t[i],n=e[r];s.marker===n?s.updateMarker():(this.removeChild(s),this.addChild(this.eJT,{marker:n}))}for(;i<t.length;i++)this.removeChild(t[i]);for(;r<e.length;r++){let t=e[r];this.addChild(this.eJT,{marker:t})}}};function lV(e,t){let i=e.uplynk;return!!(e&&void 0===i)||!!(e&&i&&void 0===i.ui)||!!(e&&i&&i.ui&&void 0===i.ui[t])||!!(e&&i&&i.ui&&!0===i.ui[t])}tj.push(function(e){return class extends e{constructor(e,t,i){super(e,t,i),this.eJk=!1,this.eJE=()=>{this.eJk=!0,isFinite(this.Ea())||this.uM.addEventListener("timeupdate",this.eJw),this.eJw(),this.eJS(),this.eJx()},this.eJP=e=>{e.adBreak.addEventListener("adbreakbegin",this.Ic),e.adBreak.addEventListener("adbreakend",this.Im),this.eJw()},this.eJM=e=>{e.adBreak.removeEventListener("adbreakbegin",this.Ic),e.adBreak.removeEventListener("adbreakend",this.Im),this.eJw()},this.eJw=()=>{if(!lV(this._r,"adBreakMarkers")||!this.eJk)return;let e=this.eJL.getChild("UplynkAdBreakMarkerBar");e||(e=this.eJL.addChild("UplynkAdBreakMarkerBar")),e.updateMarkers(this.uM.uplynk.ads.adBreaks)},this.Ic=()=>{if(lV(this._r,"adNotification")){let e=this.uM.uplynk,t=e.ads.currentAdBreak;this.eYF.addChild("UplynkAdBreakBar",{adBreakProvider:this.eJA}),-1!==t.skipOffset&&this.eYF.addChild("UplynkAdSkipButton",{adBreak:t,skipCallback:e.ads.skip})}},this.eJA=()=>this.uM.uplynk.ads.currentAdBreak,this.Im=()=>{this.eYF.removeChild("UplynkAdBreakBar"),this.eYF.removeChild("UplynkAdSkipButton")},this.eJI=()=>{this.eJS(),this.eJx()};let r=this.uM.uplynk;null==r||r.ads.adBreaks.addEventListener("addadbreak",this.eJP),null==r||r.ads.adBreaks.addEventListener("removeadbreak",this.eJM),null==r||r.assets.addEventListener("addasset",this.eJI),null==r||r.assets.addEventListener("removeasset",this.eJI)}get eJL(){return this.eYF.controlBar.progressControl.seekBar}Cz(e){this.eJk=!1,this.uM.removeEventListener("timeupdate",this.eJw),this.uM.removeEventListener("loadeddata",this.eJE),this.eYF.removeChild("UplynkAdBreakBar"),this.eYF.removeChild("UplynkAdSkipButton"),this.eJL.removeChild("UplynkAdBreakMarkerBar"),this.eJL.removeChild("UplynkAssetMarkerBar"),this.eYF.removeChild("UplynkContentNotificationBar"),this.uM.uplynk&&e&&e.sources.some(e=>"uplynk"===e.integration)&&this.uM.addEventListener("loadeddata",this.eJE),super.Cz(e)}eJS(){if(!lV(this._r,"assetMarkers")||!this.eJk)return;let e=this.eJL.getChild("UplynkAssetMarkerBar");e||(e=this.eJL.addChild("UplynkAssetMarkerBar")),e.updateMarkers(this.uM.uplynk.assets)}eJx(){if(!lV(this._r,"contentNotification"))return;let e=this.eYF.getChild("UplynkContentNotificationBar");e||(e=this.eYF.addChild("UplynkContentNotificationBar")),e.updateAssets(this.uM.uplynk.assets)}_j(){this.uM.removeEventListener("timeupdate",this.eJw),this.uM.removeEventListener("loadeddata",this.eJE);let e=this.uM.uplynk;null==e||e.ads.adBreaks.removeEventListener("addadbreak",this.eJP),null==e||e.ads.adBreaks.removeEventListener("removeadbreak",this.eJM),null==e||e.assets.removeEventListener("addasset",this.eJI),null==e||e.assets.removeEventListener("removeasset",this.eJI),super._j()}}});var lj=class extends lI{buildCSSClass(){return`${super.buildCSSClass()} theo-uplynk-marker-bar-adbreak`}get eJT(){return"UplynkAdBreakMarker"}};al.registerComponent("UplynkAdBreakMarkerBar",lj);let lD=al.getComponent("Component");var lB=class extends lD{constructor(e,t){super(e,t)}get marker(){return this.e.marker}get seekable(){return this.player().seekable()}buildCSSClass(){return"theo-uplynk-marker"}createEl(e,t,i){let r=m.createElement("div");return r.className=this.buildCSSClass(),this.updateMarker(r),r}updateMarker(e=this.el()){let t=this.seekable.start(0),i=this.seekable.end(this.seekable.length-1),r=k.max(this.marker.startTime-t,0),s=void 0!==this.marker.endTime?k.max(i-this.marker.endTime,0):0,n=i-t;e.style.left=`${r/n*100}%`,e.style.right=`${s/n*100}%`}},lF=class extends lB{buildCSSClass(){return`${super.buildCSSClass()} theo-uplynk-marker-adbreak`}};al.registerComponent("UplynkAdBreakMarker",lF);var lN=class extends lI{buildCSSClass(){return`${super.buildCSSClass()} theo-uplynk-marker-bar-asset`}get eJT(){return"UplynkAssetMarker"}};al.registerComponent("UplynkAssetMarkerBar",lN);var lO=class extends lB{buildCSSClass(){return`${super.buildCSSClass()} theo-uplynk-marker-asset`}};al.registerComponent("UplynkAssetMarker",lO);let lR=al.getComponent("Component");var l$=class extends lR{constructor(e,t){super(e,t)}buildCSSClass(){let e="theo-uplynk-content-notification-bar";return`${e}${tx.tp||tx.tC?` ${e}-ios`:""}`}createEl(e,t,i){let r=m.createElement("div");return r.className=this.buildCSSClass(),r}updateAssets(e){let t=this.children().slice(),i=0,r=0;for(;i<t.length&&r<e.length;i++,r++){let s=t[i],n=e[r];s.eJV===n?s.updateCountdown():(this.removeChild(s),this.addChild("UplynkContentNotification",{asset:n}))}for(;i<t.length;i++)this.removeChild(t[i]);for(;r<e.length;r++){let t=e[r];this.addChild("UplynkContentNotification",{asset:t})}}};al.registerComponent("UplynkContentNotificationBar",l$);let lU=al.getComponent("Component");var lH=class extends lU{constructor(e,t){super(e,t),this.eJj=void 0,this.eGk(),this.on(e,"timeupdate",this.updateCountdown),this.hide()}get eJV(){return this.e.asset}buildCSSClass(){return"theo-uplynk-content-notification"}createEl(e,t,i){let r=m.createElement("div");return r.className=this.buildCSSClass(),r}eGk(){var e;let t=m.createElement("img");t.src=this.eJV.posterUrl,t.className=`${this.buildCSSClass()}-thumbnail`,this.el().appendChild(t);let i=m.createElement("div");i.className=`${this.buildCSSClass()}-description`,eu(i,(e=this.eJV.description,`Next: ${e}`)),this.el().appendChild(i),this.eJj=m.createElement("div"),this.eJj.className=`${this.buildCSSClass()}-countdown`,eu(this.eJj,this.eJD),this.el().appendChild(this.eJj)}get eJD(){let e=k.min(10,this.eJB);return`Starting in ${k.ceil(e)} seconds`}get eJB(){return k.max(0,this.eJV.startTime-this.player().currentTime())}updateCountdown(){let e=this.eJB;e>10||e<=0?this.hide():(eu(this.eJj,this.eJD),this.show())}};al.registerComponent("UplynkContentNotification",lH),tg(eN.UI);let lz={White:"#ffffff",Yellow:"#ffff00",Green:"#00ff00",Cyan:"#00ffff",Blue:"#0000ff",Magenta:"#ff00ff",Red:"#ff0000",Black:"#000000"},lW=[50,75,100,150,200];function lq(e){return{label:`${e}%`,value:e}}function lQ(e){return T.keys(e).map(t=>({label:t,value:e[t]}))}lW.map(function(e){return{label:`${e}%`,value:`${e/100}em`}});let lG=lW.map(function(e){return{label:`${e}%`,value:`${e}%`}}),lX=[25,50,75,100].map(lq),lK=[0,25,50,75,100].map(lq),lY=lQ(lz),lJ=lQ({Default:"","Monospaced Serif":'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace',"Proportional Serif":'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif',"Monospaced Sans-Serif":'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace',"Proportional Sans-Serif":'Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}),lZ=lQ({None:"none","Drop Shadow":"dropshadow",Raised:"raised",Depressed:"depressed",Uniform:"uniform"}),l0="#000000",l1="#FFFFFF",l2="#000000";var l3=class extends om{constructor(e,t,i,r){super(e.subMenu),this.eJF=e,this.ME=r,this.eqZ=void 0,this.AD=void 0,this.eJN=void 0,this.eJO="",this.eJR=void 0,this.hr=()=>{let e=this.ME.localize(this.eqZ);for(let t of(eu(this.eJF.subMenu.menuHeader.el(),e),eu(this.AD,e),this.eJ$(this.eJO),this.wo))this.PC(t)},this.eqZ=t,this.eJR=i.eJU,this.eJN=this.eJH(),this.kj=i.eJz,this.ME.on("languagechange",this.hr)}eJH(){let e=this.ME.localize(this.eqZ);eu(this.eJF.subMenu.menuHeader.el(),e),this.AD=m.createElement("span"),this.AD.className="theo-settings-control-menu-item-title",eu(this.AD,e);let t=m.createElement("span");return t.className="theo-primary-color theo-settings-control-menu-item-value",e4(this.eJF.el(),"theo-subtitle-options-menu-item"),this.eJF.el().appendChild(this.AD),this.eJF.el().appendChild(t),t}eJW(e){let t=this.SP(e);t&&this.eJq(t)}eJQ(){return this.kj}SW(e){this.eJR(e.elU)}eJq(e){for(let e of this.kk.menuItems)e.selected(!1);e?(e.selected(!0),this.eJ$(e.elU.label)):this.eJ$("Custom")}eJ$(e){this.eJO=e,eu(this.eJN,this.ME.localize(e)),this.eJF.parentMenu.Gx()}SI(e){let t=super.SI(e);return e4(t.el(),"theo-subtitle-options-menu-item"),this.PC(t),t}PC(e){let t=this.ME.localize(e.elU.label);eu(e.el(),t);let i=this.ME.localize(`Set ${this.eqZ} to `)+t;e.el().setAttribute("aria-label",i)}v1(){this.ME.off("languagechange",this.hr),super.v1()}},l5=class e{constructor(t){this.eJG=t,this.eJX=void 0,this.eJK=void 0,this.eJY=void 0,this.eJJ=void 0,this.eJZ=void 0,this.eJ0=void 0,this.eJ1=e=>{this.eJG.fontFamily=e.value},this.eJ2=e=>{this.eJG.fontSize=e.value},this.eJ3=t=>{this.eJX=t.value,this.eJG.fontColor=e.eJ5(this.eJK,this.eJX,l1,100)},this.eJ4=t=>{this.eJK=t.value,this.eJG.fontColor=e.eJ5(this.eJK,this.eJX,l1,100)},this.eJ6=t=>{this.eJJ=t.value,this.eJG.backgroundColor=e.eJ5(this.eJJ,this.eJY,l0,100)},this.eJ9=t=>{this.eJY=t.value,this.eJG.backgroundColor=e.eJ5(this.eJJ,this.eJY,l0,100)},this.eJ7=t=>{this.eJ0=t.value,this.eJG.windowColor=e.eJ5(this.eJ0,this.eJZ,l2,100)},this.eJ8=t=>{this.eJZ=t.value,this.eJG.windowColor=e.eJ5(this.eJ0,this.eJZ,l2,100)},this.eZ2=e=>{this.eJG.edgeStyle=e.value}}static eJ5(e,t,i,r){if(void 0!==e||void 0!==t)return F(void 0===e?i:e,void 0===t?r:t)}},l4=class{constructor(e,t){this.eJG=e,this.eZ3=t,this.eZ5=()=>{let e=this.eJG.fontFamily;this.eZ4(e,this.eZ3["Font family"]);let t=this.eJG.fontColor;this.eZ6(t,this.eZ3["Font color"],this.eZ3["Font opacity"]);let i=this.eJG.fontSize;this.eZ4(i,this.eZ3["Font size"]);let r=this.eJG.backgroundColor;this.eZ6(r,this.eZ3["Background color"],this.eZ3["Background opacity"]);let s=this.eJG.windowColor;this.eZ6(s,this.eZ3["Window color"],this.eZ3["Window opacity"]);let n=this.eJG.edgeStyle;this.eZ4(n,this.eZ3["Character edge style"])},this.eJG.addEventListener("change",this.eZ5),this.eZ5()}eZ4(e,t){let i=this.eZ9(e,t.eJQ());i&&t.eJW(i)}eZ9(e,t){return eo(t,t=>t.value===e)}eZ6(e,t,i){let r,s;if(void 0===e)r=this.eZ9(void 0,t.eJQ()),s=this.eZ9(void 0,i.eJQ());else if(e){var n;let a,o=((a=ed(n=e))||(a=ed(`${n.slice(0,n.length-1).replace("rgb","rgba")},1)`)),a||(a=D(tw(n),1)),a||(a=D(tw(lz[n.charAt(0).toUpperCase()+n.toLowerCase().slice(1)]),1)),a);if(o){let e=O(o),n=100*o.G0;r=this.eZ9(e,t.eJQ()),s=this.eZ9(n,i.eJQ())}}r&&t.eJW(r),s&&i.eJW(s)}},l6=class extends om{constructor(e,t,i,r){super(e.subMenu),this.PQ=e,this.kI=t,this.ME=r,this.eZ7=void 0,this.eZ8=void 0,this.e0e=void 0,this.eZ3={},this.AD=void 0,this.e0t=void 0,this.e0i=()=>{this.kI.some(e=>ep(e.kind))?this.PQ.show():this.PQ.hide()},this.hr=()=>{eu(this.kk.menuHeader.el(),this.ME.localize("Subtitle Options")),eu(this.AD,this.ME.localize("Subtitle")),eu(this.e0t,this.ME.localize("Options")),this.PQ.el().setAttribute("aria-label",this.ME.localize("Open the subtitle options menu"))},this.eZ7=new l5(i),this.e0e=this.e0r(),this.kj=T.keys(this.e0e),this.e0s(),this.eZ8=new l4(i,this.eZ3),this.ME.on("languagechange",this.hr),this.kI.addEventListener(["addtrack","removetrack"],this.e0i),this.e0i()}e0r(){return{"Font family":{eJz:l9(lJ),eJU:this.eZ7.eJ1},"Font color":{eJz:l9(lY),eJU:this.eZ7.eJ4},"Font opacity":{eJz:l9(lX),eJU:this.eZ7.eJ3},"Font size":{eJz:l9(lG),eJU:this.eZ7.eJ2},"Background color":{eJz:l9(lY),eJU:this.eZ7.eJ6},"Background opacity":{eJz:l9(lK),eJU:this.eZ7.eJ9},"Window color":{eJz:l9(lY),eJU:this.eZ7.eJ7},"Window opacity":{eJz:l9(lK),eJU:this.eZ7.eJ8},"Character edge style":{eJz:l9(lZ),eJU:this.eZ7.eZ2}}}e0s(){this.AD=m.createElement("span"),this.AD.className="theo-settings-control-menu-item-title",this.e0t=m.createElement("span"),this.e0t.className="theo-primary-color theo-settings-control-menu-item-value",this.PQ.el().appendChild(this.AD),this.PQ.el().appendChild(this.e0t),this.hr()}SI(e){let t=this.kk.addSubMenuItem();return t.elU=e,this.eZ3[e]=new l3(t,e,this.e0e[e],this.ME),t}PC(e){}SW(e){}v1(){this.ME.off("languagechange",this.hr),this.kI.removeEventListener(["addtrack","removetrack"],this.e0i),super.v1()}};function l9(e){let t=[{label:"Default",value:void 0}];for(let i of e)"Default"!==i.label&&t.push(i);return t}tB(function(e){let t=e.eYF.controlBar.getChild("SettingsButton").menu,i=t.addSubMenuItem({name:"TextTrackOptionsMenuItem"}),r=new l6(i,e.Ch.uM,e.AY.uM,e.eYF);e.eYF.on("dispose",()=>{t.removeMenuItem(i),i.dispose(),r.v1(),t.dispose()})}),tg(eN.TEXTTRACKSTYLE_UI);var l7=class{constructor(e,t){this.Sl=void 0,this.di=void 0,this.e0n=1,this.e0a=1.05,this.e0o=.95,this.e0l=()=>{this.e0h()},this.e0u=()=>{if(!this.Sl.e0c)return;let e=this.Sl.e0c.nf,t=this.Sl.b6,i=this.Sl.kZ;null!==i?this.e0d(i.valueOf()+e):this.e0p(t+e/1e3)},this.di=e,this.Sl=t,this.Sl.sZ("ratechange",this.e0l),this.Sl.sZ("timeupdate",this.e0u)}e0d(e){let t=e-this.di.nf-20,i=e-this.di.nf+20;if(0===this.di.cD)return;let r=this.di.R5.currentProgramDateTime.valueOf();r>i?this.Ek(this.e0a):r<t?this.Ek(this.e0o):this.Ek(this.e0n)}e0p(e){let t=e-this.di.nf/1e3-.02,i=e-this.di.nf/1e3+.02;if(0===this.di.cD)return;let r=this.di.R5.currentTime;r>i?this.Ek(this.e0a):r<t?this.Ek(this.e0o):this.Ek(this.e0n)}e0h(){this.e0n=this.Sl.Cx,this.e0a=this.Sl.Cx-.05,this.e0o=this.Sl.Cx+.05}Ek(e){let t=this.di.R5;t.playbackRate!==e&&0!==t.playbackRate&&(e>=.2&&e<=2.05?t.playbackRate=e:this.Sl.e0_(this.di))}iO(){this.Sl.s1("ratechange",this.e0l),this.Sl.s1("timeupdate",this.e0u)}},l8=class{constructor(e,t,i,r){this.cc=void 0,this.Sl=void 0,this.e0v=void 0,this.e0m=void 0,this.nw=void 0,this.cf=!0,this.e0y=!1,this.e0f=0,this.uD=void 0,this.aY=void 0,this.aJ=void 0,this._x=void 0,this._y=void 0,this.cc=e,this.Sl=t,this.e0v=i,this.e0m=new l7(this,i),this.nw=null!=r?r:0,this.aY=.2,this.aJ=.2,this._x=.76,this._y=0}get R5(){return this.Sl}get uM(){var e,t;return null!=(e=this.uD)?e:this.uD=(t=this,{get player(){return t.R5},get label(){return t.u0},get position(){return t.cD},set position(e){t.cD=e},get muted(){return t.CE},set muted(e){t.CE=e},get canResize(){return t.e0g},get x(){return t.eeZ},set x(e){t.eeZ=e},get y(){return t.eeY},set y(e){t.eeY=e},get width(){return t.c8},set width(e){t.c8=e},get height(){return t.pq},set height(e){t.pq=e},get enabled(){return t.uX},set enabled(e){t.uX=e},get offset(){return t.nf},set offset(e){t.nf=e},remove(){t.o9()}})}get u0(){return this.cc}get cD(){return this.e0v.e0b.indexOf(this)}set cD(e){this.e0v.e0C(this,e)}get CE(){return this.Sl.muted}set CE(e){this.uX&&(this.e0v.e0T=this,this.e0k(e))}get e0g(){return 0!==this.cD&&"overlay"===this.e0v.e0E}get eeZ(){return this._x}set eeZ(e){this.e0g&&(this.e0y||(this.e0y=!0),this._x=e>1-this.c8?1-this.c8:k.max(e,0),this.R5.element.style.setProperty("left",`${100*this._x}%`))}get eeY(){return this._y}set eeY(e){this.e0g&&(this.e0y||(this.e0y=!0),this._y=e>1-this.pq?1-this.pq:k.max(e,0),this.R5.element.style.setProperty("top",`${100*this._y}%`))}get c8(){return this.aY}set c8(e){this.e0g&&this.e0w(e)}get pq(){return this.aJ}set pq(e){this.e0g&&this.e0w(e)}get uX(){return this.cf}set uX(e){e!==this.cf&&0!==this.cD&&(e?(X(this.e0v.e0_(this)),this.e0v.e0S(this),this.R5.element.style.setProperty("display","block")):(this.R5.pause(),this.R5.element.style.setProperty("display","none")),this.cf=e,this.e0v.e0x(this))}get e0P(){return this.e0y}set e0P(e){this.e0y=e}get e0M(){return this.e0f}set e0M(e){this.e0f=e}get nf(){return this.nw}set nf(e){this.nw=er(e),this.nS(this.e0v.b6,this.e0v.kZ)}e0L(e,t,i,r,s){!this.e0y&&s&&(this.e0y=!0),this._x=e,this._y=t,this.aY=i,this.aJ=r}e0k(e){this.Sl.muted=e}o9(){0!==this.cD&&this.e0v.e0A(this)}KW(){this.R5.element.style.setProperty("top",`${100*this._y}%`),this.R5.element.style.setProperty("left",`${100*this._x}%`),this.R5.element.style.setProperty("width",`${100*this.aY}%`)}e0w(e){let t=this._x+this.aY,i=k.min(e,t),r=.9-this._y,s=k.max(k.min(i,k.min(e,r)),.1),n=this.aY-s;this.aY=s,this.aJ=s,this.eeZ+=n,this.R5.element.style.setProperty("width",`${100*s}%`)}nS(e,t){if(null!==t){let e=t.valueOf()-this.nf;this.Sl.currentProgramDateTime=new Date(e)}else this.Sl.currentTime=e-this.nf/1e3}e0I(e){let t=this.R5.element.getElementsByClassName(hh)[0],i=e?hu:hc,r=e?hc:hu;ez(t,i),e4(t,r)}iO(){this.e0m.iO(),this.Sl.element.remove(),this.Sl.destroy()}},he=class{constructor(e,t){this.e0v=void 0,this.e0V=new eg,this.R8=void 0,this.M6=void 0,this.e0j=void 0,this.e0D=void 0,this.Lw=void 0,this.e0v=e,this.R8=t,this.M6=new en,this.e0j=new eb().uM,this.e0D=new eT().uM,this.Lw=new e1().uM,this.e0v.addEventListener(["play","pause","seeking","seeked","timeupdate","ended","playing","waiting","sourcechange","readystatechange","loadedmetadata","loadeddata","canplay","canplaythrough","loadstart","progress","durationchange","volumechange","ratechange","error"],this.e0V.s$)}get multiViewPlayer(){return this.e0v}get abr(){}get audioTracks(){return this.e0j}get autoplay(){return this.e0v.autoplay}set autoplay(e){this.e0v.autoplay=e}get buffered(){return this.e0v.buffered}get canvas(){}get clip(){return this.M6.uM}get currentProgramDateTime(){return null}get currentTime(){return this.e0v.currentTime}set currentTime(e){this.e0v.currentTime=e}get duration(){return this.e0v.duration}get element(){return this.R8}get ended(){return this.e0v.ended}get error(){}get errorObject(){return this.e0v.errorObject}get latency(){}get loop(){return!1}get metrics(){}get millicast(){}get muted(){return this.e0v.muted}set muted(e){this.e0v.muted=e}get network(){}get paused(){return this.e0v.paused}get playbackRate(){return this.e0v.playbackRate}set playbackRate(e){this.e0v.playbackRate=e}get played(){return this.e0v.played}get poster(){return""}get preload(){return""}get presentation(){}get readyState(){return this.e0v.readyState}get seekable(){return this.e0v.seekable}get seeking(){return this.e0v.seeking}get source(){}get src(){return"dummySource"}get textTrackStyle(){return this.Lw}get textTracks(){return this.e0D}addTextTrack(e){throw g("Not implemented")}get uid(){return 0}get videoHeight(){return 0}get videoTracks(){return this.e0j}get videoWidth(){return 0}get volume(){return this.e0v.volume}set volume(e){this.e0v.volume=e}get version(){return"11.14.0"}get views(){return this.e0v.views}get visibility(){}get layout(){return this.e0v.layout}set layout(e){this.e0v.layout=e}play(){this.e0v.play()}pause(){this.e0v.pause()}stop(){this.e0v.stop()}recreateMediaSource(){return Promise.reject(new eh(5e3,"Recreating the media source is not supported for this player."))}destroy(){this.e0v.destroy()}prepareWithUserAction(){this.e0v.prepareWithUserAction()}addEventListener(e,t){this.e0V.sZ(e,t)}removeEventListener(e,t){this.e0V.s1(e,t)}setSource(e){}},ht=class extends ev{constructor(e){super("addview"),this.view=e}},hi=class extends ev{constructor(e,t){super("viewpositionchange"),this.oldPosition=e,this.newPosition=t}},hr=class extends ev{constructor(e){super("removeview"),this.view=e}},hs=class extends ev{constructor(e){super("viewchange"),this.view=e}},hn=class extends ev{constructor(e){super("layoutchange"),this.layout=e}},ha=class extends eg{constructor(e){super(),this.Sl=void 0,this.e0B=e=>{this.s$(new eX(e.source))},this.e0F=e=>{this.s$(new tm(e.currentTime))},this.e0N=e=>{this.s$(new eF(e.currentTime))},this.eh7=e=>{this.s$(new tp(e.currentTime))},this.eh9=e=>{this.s$(new ti(e.currentTime))},this.e0O=e=>{this.s$(new Z(e.currentTime,e.currentProgramDateTime))},this.e0R=e=>{this.s$(new e0(e.currentTime))},this.e0$=e=>{this.s$(new eP(e.currentTime))},this.e0U=e=>{this.s$(new ej(e.currentTime))},this.e0H=e=>{this.s$(new B(e.currentTime,e.readyState))},this.e0z=e=>{this.s$(new ec(e.currentTime,this.w$))},this.e0W=e=>{this.s$(new tP(e.currentTime,this.w$))},this.e0q=e=>{this.s$(new tA(e.currentTime,this.w$))},this.e0Q=e=>{this.s$(new tE(e.currentTime,this.w$))},this.e0G=()=>{this.s$(new e2)},this.e0X=e=>{this.s$(new A(e.currentTime))},this.e0K=e=>{this.s$(new tn(e.duration))},this.e0Y=e=>{this.s$(new tf(this.b6,e.volume))},this.e0J=e=>{this.s$(new eA(this.b6,e.playbackRate))},this.kK=e=>{this.s$(new tc(e.errorObject))},this.e0Z=()=>{this.s$(new em)},this.Sl=e,this.Sl.sZ("sourcechange",this.e0B),this.Sl.sZ("play",this.e0F),this.Sl.sZ("pause",this.e0N),this.Sl.sZ("seeking",this.eh7),this.Sl.sZ("seeked",this.eh9),this.Sl.sZ("timeupdate",this.e0O),this.Sl.sZ("ended",this.e0R),this.Sl.sZ("playing",this.e0$),this.Sl.sZ("waiting",this.e0U),this.Sl.sZ("readystatechange",this.e0H),this.Sl.sZ("loadedmetadata",this.e0z),this.Sl.sZ("loadeddata",this.e0W),this.Sl.sZ("canplay",this.e0q),this.Sl.sZ("canplaythrough",this.e0Q),this.Sl.sZ("loadstart",this.e0G),this.Sl.sZ("progress",this.e0X),this.Sl.sZ("durationchange",this.e0K),this.Sl.sZ("volumechange",this.e0Y),this.Sl.sZ("ratechange",this.e0J),this.Sl.sZ("error",this.kK),this.Sl.sZ("fullscreenchange",this.e0Z)}get b6(){return this.Sl.b6}get S_(){return this.Sl.S_}get nu(){return this.Sl.CS}get Sr(){return this.Sl.Sr}get w$(){return this.Sl.w$}get CD(){return this.Sl.CD}get q0(){return!1}get q9(){return!1}iO(){this.s0()}},ho=class{constructor(e,t,i){if(this.Sl=void 0,this._R=void 0,this.eZ0=void 0,this.Lw=void 0,this.jX=void 0,this.Sl=e,this._R=i,this.Lw=new e1,this.eZ0=new z(t),i.overrideAutoplayCapability)this.jX=new R(i.overrideAutoplayCapability);else{let e=new tM(this.eZ0,this.Lw,i,1,["video"]);this.jX=q(e)}}async QI(){let e=this.Sl;if(!e.Aq||!e.Sr)return;let t=this._R.mutedAutoplay;switch(await this.jX.DZ(e.CE)){case"allowed":e.CE||e.W9(),e.CJ();break;case"allowed-muted":(e.CE||"all"===t)&&(e.CE=!0,e.CJ())}}_j(){this.jX._j(),this.eZ0._j()}};let hl=["canplay","canplaythrough","loadeddata","loadedmetadata"],hh="theo-switch-audio-button",hu="vjs-icon-volume-mute",hc="vjs-icon-volume-high",hd="theo-main-view",hp="theo-layout-";var h_=class extends eg{constructor(e,t,i){super(),this.e00=void 0,this.R8=void 0,this._R=void 0,this.e01=void 0,this.e02=[],this.e03=void 0,this.e05=void 0,this.e04="gallery",this.e06=!1,this.kD=void 0,this.e09=void 0,this.uD=void 0,this.e07=void 0,this.e08=void 0,this.e1e=void 0,this.e1t=!1,this.Lh=!0,this.Lc=!1,this.q$=!1,this.aO=-1,this.qX=0,this.e1i=!1,this.e1r=0,this.e1s=void 0,this.e1n=!1,this.jj=!1,this.e1a=-1,this.e1o=!1,this.e1l=-1,this.e1h=!1,this.HA=void 0,this.exG=void 0,this.e1u=void 0,this.k2=e=>{this.e1c(),ek(()=>this.s$(e))},this.P8=e=>{this.e1d(),this.s$(e)},this.Ak=()=>{var e;null==(e=this.e09)||e.nO(),this.e09=void 0},this.e1p=()=>{let e=this.Cx;this.e1l!==e&&(this.e1l=e,this.s$(new eA(this.b6,e)))},this.e1_=()=>{let e=this.pE,t=this.CE;(this.e1a!==e||this.e1o!==t)&&(this.e1a=e,this.e1o=t,this.s$(new tf(this.b6,e)))},this.e1v=e=>{(this.w$>2||this.CD)&&this.s$(e)},this.k0=e=>{this.e1c(),this.CD||(this.Lc=!1,this.s$(e))},this.eVH=e=>{let t=this.pC;this.aO!==t&&(this.aO=t,this.s$(e))},this._A=e=>{this.s$(e)},this.k1=e=>{if(this.Lh){if(this.e1n){this.e1n=!1;return}this.Lh=!1,this.q$=!1,this.s$(e)}},this.x6=e=>{this.Lc||(this.Lc=!0,this.s$(e))},this.x4=e=>{!this.Lh&&this.Sr&&(this.Lh=!0,this.s$(e))},this.eIc=e=>{this.q$||(this.q$=!0,this.s$(e))},this.e1m=e=>{this.e1i||(this.e1i=!0,this.s$(e))},this.e1y=e=>{let t=this.w$;this.qX!==t&&(this.qX=t,this.s$(e))},this.e1f=async()=>{try{await this.e1e.L0([G.MULTIVIEW])}catch(e){this.Ez(),this.kD=tV(e,2004),this.e1t=!0,this.sX(new eY(this.kD))}},this.e00=e,this.R8=t,this._R=i;let r=eB.uL,s=new ee,n=new U("11.14.0",r,s),a=new K(i.isEmbeddable,"11.14.0",th());if(this.e1e=new ei(r,a,n,s,i,th()),this.e1e.ND().then(this.e1f),this.e07=new he(this.uM,this.R8),this.e01=o1(this.e07,this.e00,i.ui),e4(this.R8,hp+this.e04),eB.sp.tA){let e=this.e01.el();e4(e,"theo-mobile"),o2(e)}this.e08=new ha(this),this.HA=new es(this.e08),this.HA.sZ("playing",this.k2),this.exG=new eG(this,!0),this.exG.sZ(hl,this.s$),this.exG.sZ("waiting",this.P8),this.e1u=new ho(this,e,i)}get uM(){var e,t;return null!=(e=this.uD)?e:this.uD=(t=this,{load:(e,i,r,s)=>t.o7(e,i,r,s),get views(){return t.e0b.map(e=>e.uM)},get mainVideoView(){var e;return null==(e=t.e0c)?void 0:e.uM},get mainAudioView(){var e;return null==(e=t.e0T)?void 0:e.uM},get ui(){return t.eYF},get layout(){return t.e0E},set layout(e){t.e0E=e},get buffered(){return t.Cm},get currentTime(){return t.b6},set currentTime(e){t.b6=e},get autoplay(){return t.Aq},set autoplay(e){t.Aq=e},get duration(){return t.pC},get ended(){return t.S_},get errorObject(){return t.CS},get muted(){return t.CE},set muted(e){t.CE=e},get paused(){return t.Sr},get playbackRate(){return t.Cx},set playbackRate(e){t.Cx=e},get played(){return t.CI},get readyState(){return t.w$},get seekable(){return t.CB},get seeking(){return t.CD},get volume(){return t.pE},set volume(e){t.pE=e},get version(){return"11.14.0"},play(){t.CJ()},pause(){t.C0()},stop(){t.Ez()},destroy(){t.iO(),t=null},requestFullscreen(e){t.Do(e)},exitFullscreen(){t.D_()},prepareWithUserAction(){t.W9()},addEventListener(e,i){t.sZ(e,i)},removeEventListener(e,i){t.s1(e,i)}})}get eYF(){return this.e01}get e0b(){return this.e02}get e0c(){return this.e03}get e0T(){var e;return null!=(e=this.e05)?e:this.e03}set e0T(e){if(this.e05===e)return;let t=this.e0T,i=null!=e?e:this.e0c;t.R5.removeEventListener("volumechange",this.e1_),t.e0I(!1),t.CE||(t.e0k(!0),i.e0k(!1)),i.R5.addEventListener("volumechange",this.e1_),i.e0I(!0),this.e05=e}get e0E(){return this.e04}set e0E(e){if(e!==this.e04){if("overlay"===this.e0E)for(let e of this.e0b)e.R5.element.style.setProperty("left","auto"),e.R5.element.style.setProperty("top","auto"),e.R5.element.style.removeProperty("z-index");ez(this.R8,hp+this.e04),this.e04=e,e4(this.R8,hp+this.e04),this.KW(),this.sX(new hn(e))}}get Cm(){return 0===this.e0b.length?tl.PK().Cg():this.e1g().reduce((e,t)=>e.Pb(tl.PH(t.R5.buffered)),tl.Pj()).Cg()}get b6(){return this.e03&&this.e1h?this.e03.R5.currentTime+this.e03.nf/1e3:0}set b6(e){this.e1d();let t=this.e1g(),i=null;if(null!==this.kZ){i=this.kZ;let t=e-this.b6;i.setSeconds(i.getSeconds()+t)}for(let r of t)r.nS(e,i)}get kZ(){return this.e03&&this.e0b.every(e=>null!==e.R5.currentProgramDateTime)?new Date(this.e03.R5.currentProgramDateTime.valueOf()+this.e03.nf):null}get Aq(){return this.jj}set Aq(e){this.jj=e,this.e1u.QI()}get pC(){if(0===this.e0b.length)return 0/0;let e=1/0;for(let t of this.e1g())e=k.min(t.R5.duration,e);return e}get S_(){return this.e0b.some(e=>e.R5.ended)}get nu(){return this.CS}get CS(){if(this.kD)return this.kD;for(let e of this.e0b){let t=e.R5.errorObject;if(void 0!==t)return t}}get CE(){var e,t;return null!=(e=null==(t=this.e0T)?void 0:t.CE)&&e}set CE(e){this.e0T&&this.e0T.e0k(e),this.e1_()}get Sr(){return!this.e0b.length||this.e1g().some(e=>e.R5.paused)}get Cx(){var e,t,i;return null!=(e=null!=(t=this.e1s)?t:null==(i=this.e03)?void 0:i.R5.playbackRate)?e:1}set Cx(e){if(void 0!==this.e1s)this.e1s=e;else for(let t of this.e0b)t.R5.playbackRate=e;this.e1p()}get CI(){return this.e0b.reduce((e,t)=>e.PE(tl.PH(t.R5.played)),tl.PK()).Cg()}get w$(){if(0===this.e0b.length)return 0;let e=4;for(let t of this.e1g())t.R5.readyState<e&&(e=t.R5.readyState);return e}get CB(){return 0===this.e0b.length?tl.PK().Cg():this.e1g().reduce((e,t)=>e.Pb(tl.PH(t.R5.seekable)),tl.Pj()).Cg()}get CD(){return this.e0b.some(e=>e.R5.seeking)}get pE(){var e,t;return null!=(e=null==(t=this.e0T)?void 0:t.R5.volume)?e:1}set pE(e){for(let t of this.e0b)t.R5.volume=e;this.e1_()}o7(e,t,i,r){if(this.e1t)throw this.kD;let s=eo(this.e0b,t=>t.u0===e);if(s)return s.uM;let n=er(r),a=S(n)?void 0:n;return this.e1b(e,t,i,a)}CJ(){if(this.e03&&this.Sr)for(let e of(this.e1d(),this.e1g()))e.R5.play()}C0(){for(let e of this.e1g())e.R5.pause()}Ez(){for(let e=this.e0b.length-1;e>=0;e--)this.e0A(this.e0b[e]);this.e03=void 0,this.e05=void 0,this.kD=void 0,this.e09&&(this.e09.iz(),this.e09=void 0),this.Lh=!0,this.Lc=!1,this.q$=!1,this.aO=-1,this.qX=0,this.e1i=!1,this.e1s=void 0,this.e1n=!1,this.e1a=-1,this.e1o=!1,this.e1l=-1,this.e1h=!1,this.exG._l(),this.sX(new eX(void 0))}iO(){for(let e=this.e0b.length-1;e>=0;e--)this.e0A(this.e0b[e]);this.s0(),this.exG._j(),this.HA.iO(),this.e08.iO(),this.e1u._j(),this.eYF.dispose()}Do(e){this.sX(new em),this.R8.requestFullscreen(e).catch(ts)}D_(){this.sX(new em),m.exitFullscreen().catch(ts)}W9(){for(let e of this.e0b)e.R5.prepareWithUserAction()}e1b(e,t,i,r){let s=m.createElement("div");e4(s,"theo-view"),this.R8.appendChild(s);let n=new(e9())(s,this._R).uM;n.source=t;let a=new l8(e,n,this,r);if(i){let e=m.createElement("div");e.className="theo-view-description";let t=m.createElement("span");t.textContent=i,e.appendChild(t),s.appendChild(e),a.R5.addEventListener("dimensionchange",()=>{this.e1C(e)})}return this.e1T(a),this.e0b.push(a),1===this.e0b.length?(this.e03=a,this.e1k(this.e03),e4(this.e03.R5.element,hd)):(this.e1E(n),0!==this.b6&&X(this.e0_(a,!0))),this.KW(),this.sX(new ht(a.uM)),a.uM}e1g(){return this.e0b.filter(e=>e.uX)}e1w(){return this.e0b.filter(e=>e.uX&&e!==this.e03)}e1E(e){e.volume=this.e03.R5.volume,e.muted=!0,e.playbackRate=this.e03.R5.playbackRate}e1T(e){e.e0M=this.e0b.length;let t=e.R5.element;t.addEventListener("dblclick",()=>{this.e1S(e)}),t.addEventListener("touchend",t=>{this.e1r>=t.timeStamp?(t.preventDefault(),this.e1S(e),this.e1r=0):this.e1r=t.timeStamp+500});let i=m.createElement("div"),r=0===this.e0b.length?hc:hu;i.className=`theo-primary-color ${hh} ${r}`,i.addEventListener("click",()=>{this.e0T=e}),i.addEventListener("touchend",()=>{this.e0T=e}),t.appendChild(i);let s=m.createElement("div");s.className="theo-primary-color theo-disable-button vjs-icon-close",s.addEventListener("click",()=>{e.uX=!1}),s.addEventListener("touchend",()=>{e.uX=!1}),t.appendChild(s),this.e1x(e,t),this.e1P(e),this.e1M(e)}e1x(e,t){let i=m.createElement("div"),r=0,s=t=>{this.e06=!0,this.e0S(e),t.preventDefault(),"touchstart"===t.type?(r=t.changedTouches[0].clientX,m.addEventListener("touchmove",n),m.addEventListener("touchend",a),m.addEventListener("touchcancel",a)):(r=t.x,m.addEventListener("mousemove",n),m.addEventListener("mouseup",a))},n=t=>{let i;i="touchmove"===t.type?t.changedTouches[0].clientX:t.x;let s=r-i,n=e.R5.element.parentElement.clientWidth,a=(e.R5.element.clientWidth+s)/n;e.c8=a,e.pq=a,r=i},a=e=>{this.e06=!1,"mouseup"===e.type?(m.removeEventListener("mousemove",n),m.removeEventListener("mouseup",a)):(m.removeEventListener("touchmove",n),m.removeEventListener("touchend",a),m.removeEventListener("touchcancel",a))};i.addEventListener("mousedown",s),i.addEventListener("touchstart",s),i.className="theo-resize-button theo-primary-color vjs-icon-resize-handle-sw",t.appendChild(i)}e1C(e){let t=e.parentElement.clientWidth/100,i=k.min(40,5.23*t);e.style.fontSize=`${i}px`}e1P(e){let t=e.R5.element,i=t.parentElement,r={x:0,y:0},s=t=>{!this.e06&&e.e0g&&(this.e0S(e),t.preventDefault(),"touchstart"===t.type?(r.x=t.changedTouches[0].clientX,r.y=t.changedTouches[0].clientY,m.addEventListener("touchmove",n),m.addEventListener("touchend",a),m.addEventListener("touchcancel",a)):(r.x=t.x,r.y=t.y,m.addEventListener("mousemove",n),m.addEventListener("mouseup",a)))},n=s=>{let n,a=(n="touchmove"===s.type?{x:s.changedTouches[0].clientX,y:s.changedTouches[0].clientY}:{x:s.x,y:s.y}).x-r.x,o=n.y-r.y;e.eeZ=(t.offsetLeft+a)/i.clientWidth;let l=i.offsetHeight;e.eeY=(t.offsetTop+o)/l,r=n},a=e=>{"mouseup"===e.type?(m.removeEventListener("mouseup",a),m.removeEventListener("mousemove",n)):(m.removeEventListener("touchmove",n),m.removeEventListener("touchend",a),m.removeEventListener("touchcancel",a))};t.addEventListener("mousedown",s),t.addEventListener("touchstart",s)}e0S(e){for(let t of this.e0b)t.e0M>e.e0M&&(t.e0M-=1,t.R5.element.style.setProperty("z-index",`${t.e0M}`));e.e0M=this.e0b.length,e.R5.element.style.setProperty("z-index",`${e.e0M}`)}e1d(){if(void 0===this.e1s)for(let e of(this.e1s=this.Cx,this.e1g()))e.R5.playbackRate=0}e1c(){if(void 0!==this.e1s){if(this.CD||this.w$<3){if(this.e03&&!this.e1h)for(let e of(this.e1h=!0,this.e1w()))this.e03.nf!==e.nf&&e.nS(this.b6,this.kZ);return}for(let e of this.e1g())e.R5.playbackRate=this.e1s;this.e1s=void 0,this.e1h=!0}}e0x(e){e.uX||e!==this.e05||(this.e0T=void 0),this.sX(new hs(e.uM)),this.KW()}async e0_(e,t=!1){this.e1d();let i=e.R5;t&&(this.e09=new W,i.addEventListener("sourcechange",this.Ak),await this.e09.nD,i.removeEventListener("sourcechange",this.Ak)),0===i.readyState&&(this.e1n=!0,i.play()),this.Sr?i.pause():i.play(),e.nS(this.b6,this.kZ)}KW(){let e=this.e1g();if(!e.length)return;let t=0;switch(this.e0E){case"spotlight":{e.length>1?this.R8.style.gridTemplateColumns="80% 20%":this.R8.style.gridTemplateColumns="100%";let i=1/0;for(let r of e){if(t>=i+1){r.uX=!1;continue}if(r.R5.element.style.setProperty("width","100%"),2==++t){let t=r.R5.element.clientHeight,s=r.R5.element.parentElement.clientHeight,n=k.floor(s/t);i=k.min(e.length-1,n),this.R8.style.gridTemplateRows=`repeat(${i}, 1fr)`}}break}case"overlay":{let i=0;for(t=1;t<e.length;t++){let r=e[t];if(t>=5){r.uX=!1;continue}if(!r.e0P){let e=.04+.24*i;r.e0L(r.eeZ,e,r.c8,r.pq,!1),this.e0S(r),i++}r.R5.element.style.setProperty("z-index",`${r.e0M}`),r.KW()}break}case"gallery":{let i=e.length,r=k.ceil(k.sqrt(i));for(let i of e){if(t>=16){i.uX=!1;continue}i.R5.element.style.setProperty("width",`${100/r}%`),t++}}}}e0C(e,t){let i=t>=0?k.min(k.floor(t),this.e0b.length-1):0,r=e.cD,s=k.min(r,i),n=k.max(r,i),a=0===s;if(this.e0b[s].uX&&this.e0b[n].uX||!a){if("overlay"===this.e0E){let e=this.e0b[n],t=this.e0b[s],i=e.eeZ,r=e.eeY,a=e.c8,o=e.pq,l=t.e0P||e.e0P;e.e0L(t.eeZ,t.eeY,t.c8,t.pq,l),[this.e0b[s],this.e0b[n]]=[this.e0b[n],this.e0b[s]],t.e0L(i,r,a,o,l)}else[this.e0b[s],this.e0b[n]]=[this.e0b[n],this.e0b[s]];a&&this.e1L(this.e0b[0]),this.sX(new hi(r,i))}}e0A(e){e===this.e05&&(this.e0T=void 0),e.iO(),L(this.e0b,e),this.KW(),this.sX(new hr(e.uM))}e1S(e){this.S_||0===this.CI.length||this.e03===e||"gallery"===this.e04||this.e0C(e,0)}e1L(e,t=!1){let i=!1,r=this.e03;this.e03=e,e.e0P=!1,this.e1A(r),ez(r.R5.element,hd),this.e05||(i=r.CE,r.e0k(!0),r.e0I(!1),e.e0I(!0),t&&!i?this.sX(new tf(this.b6,0)):e.e0k(i)),this.e0S(r),e4(this.e03.R5.element,hd),this.e1k(this.e03),"overlay"===this.e0E&&this.KW()}e1M(e){e.R5.addEventListener("seeked",this.k0),e.R5.addEventListener("ended",this.eIc),e.R5.addEventListener("play",this.k1),e.R5.addEventListener("pause",this.x4),e.R5.addEventListener("seeking",this.x6),e.R5.addEventListener("loadstart",this.e1m),e.R5.addEventListener("durationchange",this.eVH),e.R5.addEventListener("readystatechange",this.e1y),e.R5.addEventListener("error",this._A)}e1k(e){e.R5.addEventListener("progress",this.s$),e.R5.addEventListener("ratechange",this.e1p),e.R5.addEventListener("timeupdate",this.e1v),this.e05||e.R5.addEventListener("volumechange",this.e1_)}e1A(e){e.R5.removeEventListener("progress",this.s$),e.R5.removeEventListener("ratechange",this.e1p),e.R5.removeEventListener("timeupdate",this.e1v),this.e05||e.R5.removeEventListener("volumechange",this.e1_)}};function hv(e,t){var i;let r=o8(H(H({},t||{}),{},{allowNativeFullscreen:!1,ui:H(H({},(null==t?void 0:t.ui)||{}),{},{userActions:H(H({},(null==t||null==(i=t.ui)?void 0:i.userActions)||{}),{},{click:!1})}),abr:H(H({},(null==t?void 0:t.abr)||{}),{},{restrictToPlayerSize:!0})})),s=m.createElement("div");eQ(s),e.appendChild(s);let n=new h_(e,s,r).uM;return T.defineProperty(n,"constructor",{value:hv}),n=$(n)}let hm="vjs-selected";var hy=class extends om{constructor(e,t,i){if(super(e),this.az=void 0,this.ME=void 0,this.e1I=void 0,this.e1V=void 0,this.e1j=void 0,this.e1D=void 0,this.e1B=e=>{this.wa(e.view)},this.e1F=e=>{this.ws(e.view)},this.e1N=e=>{let t=e.oldPosition,i=e.newPosition,r=k.max(t,i),s=k.min(t,i),n=m.getElementsByClassName("theo-multi-view-menu-item");n[r].before(n[s]),n[s].before(n[r]),0===s&&(ez(n[r],"theo-multi-view-menu-item-position-zero"),e4(n[s],"theo-multi-view-menu-item-position-zero"))},this.e1O=()=>{let e=this.az.layout;ex(this.e1V,hm,"gallery"===e),ex(this.e1D,hm,"spotlight"===e),ex(this.e1j,hm,"overlay"===e)},!t.views)return;this.az=t,this.ME=i,this.az.multiViewPlayer.addEventListener("addview",this.e1B),this.az.multiViewPlayer.addEventListener("removeview",this.e1F),this.az.multiViewPlayer.addEventListener("viewchange",this.e1B),this.az.multiViewPlayer.addEventListener("viewpositionchange",this.e1N),this.az.multiViewPlayer.addEventListener("layoutchange",this.e1O),eu(this.kk.menuHeader.el(),this.ME.localize("MultiView")),this.e1I=this.e1R(),this.e1O()}PC(e){let t=e.elU,i=this.ME.localize(t.label);eu(e.u0,i),e.el().setAttribute("aria-label",`${this.ME.localize("Enable/disable")} ${i}`),e.el().setAttribute("role","menuitemcheckbox"),e.selected(t.enabled)}SI(e){let t=super.SI(e);e4(t.el(),"theo-multi-view-menu-item"),2===this.wo.length&&e4(t.el(),"theo-multi-view-menu-item-position-zero");let i=m.createElement("span");t.u0=i;let r=m.createElement("div");r.className="theo-multi-view-menu-item-toggle",t.eib=r;let s=e=>this.ewe(e,t);t.ext=s,r.addEventListener("click",s);let n=m.createElement("div");return n.className="theo-multi-view-menu-item-toggle-slider",r.appendChild(n),t.el().appendChild(i),t.el().appendChild(r),this.e1I.before(t.el()),t}e1R(){let e=this.kk.addMenuItem().el();e4(e,"theo-multi-view-menu-item"),e4(e,"theo-multi-view-menu-layout-select");let t=m.createElement("button");t.className="vjs-icon-view-grid",t.addEventListener("click",()=>{this.az.layout="gallery"}),e.appendChild(t),this.e1V=t;let i=m.createElement("button");i.className="vjs-icon-view-spotlight",i.addEventListener("click",()=>{this.az.layout="spotlight"}),e.appendChild(i),this.e1D=i;let r=m.createElement("button");return r.className="vjs-icon-multi-view",r.addEventListener("click",()=>{this.az.layout="overlay"}),e.appendChild(r),this.e1j=r,e}ewe(e,t){e.stopImmediatePropagation(),this.SW(t)}SW(e){let t=e.elU;for(let e of this.az.views)e===t&&(e.enabled=!e.enabled);this.PC(e)}xh(e){e.eib.removeEventListener("click",e.ext),super.xh(e)}},hf=class extends aU{constructor(e,t){super(e,t),this.epo=void 0,this.minimumMenuItems=3,this.epo=new hy(this.menu,this.ot,e),this.controlText(e.localize("Views")),this.p1.v2=this.controlText()}buildCSSClass(){return`vjs-icon-view-grid ${super.buildCSSClass()}`}dispose(){this.epo.v1(),super.dispose()}};al.registerComponent("multiViewButton",hf),tg(eN.MULTIVIEW);export{ta as ChromelessPlayer,j as ErrorCategory,ey as ErrorCode,hv as MultiViewPlayer,lt as Player,ty as cache,te as cast,e5 as features,tr as players,t_ as registerContentProtectionIntegration,eH as utils,eD as version,al as videojs};
|