>7))^a]=a;for(o=s=0;!r[o];o^=l||1,s=u[s]||1)for(d=s^s<<1^s<<2^s<<3^s<<4,d=d>>8^255&d^99,r[o]=d,i[d]=o,h=c[f=c[l=c[o]]],m=16843009*h^65537*f^257*l^16843008*o,p=257*c[d]^16843008*d,a=0;a<4;a++)t[a][o]=p=p<<24^p>>>8,n[a][d]=m=m<<24^m>>>8;for(a=0;a<5;a++)t[a]=t[a].slice(0),n[a]=n[a].slice(0);return e},q=null,V=function(){function e(t){B(this,e),q||(q=z()),this._tables=[[q[0][0].slice(),q[0][1].slice(),q[0][2].slice(),q[0][3].slice(),q[0][4].slice()],[q[1][0].slice(),q[1][1].slice(),q[1][2].slice(),q[1][3].slice(),q[1][4].slice()]];var n=void 0,r=void 0,i=void 0,a=void 0,o=void 0,s=this._tables[0][4],c=this._tables[1],u=t.length,l=1;if(4!==u&&6!==u&&8!==u)throw new Error("Invalid aes key size");for(a=t.slice(0),o=[],this._key=[a,o],n=u;n<4*u+28;n++)i=a[n-1],(n%u===0||8===u&&n%u===4)&&(i=s[i>>>24]<<24^s[i>>16&255]<<16^s[i>>8&255]<<8^s[255&i],n%u===0&&(i=i<<8^i>>>24^l<<24,l=l<<1^283*(l>>7))),a[n]=a[n-u]^i;for(r=0;n;r++,n--)i=a[3&r?n:n-4],o[r]=n<=4||r<4?i:c[0][s[i>>>24]]^c[1][s[i>>16&255]]^c[2][s[i>>8&255]]^c[3][s[255&i]]}return e.prototype.decrypt=function(e,t,n,r,i,a){var o=this._key[1],s=e^o[0],c=r^o[1],u=n^o[2],l=t^o[3],f=void 0,h=void 0,d=void 0,p=o.length/4-2,m=void 0,g=4,v=this._tables[1],y=v[0],_=v[1],b=v[2],T=v[3],w=v[4];for(m=0;m>>24]^_[c>>16&255]^b[u>>8&255]^T[255&l]^o[g],h=y[c>>>24]^_[u>>16&255]^b[l>>8&255]^T[255&s]^o[g+1],d=y[u>>>24]^_[l>>16&255]^b[s>>8&255]^T[255&c]^o[g+2],l=y[l>>>24]^_[s>>16&255]^b[c>>8&255]^T[255&u]^o[g+3],g+=4,s=f,c=h,u=d;for(m=0;m<4;m++)i[(3&-m)+a]=w[s>>>24]<<24^w[c>>16&255]<<16^w[u>>8&255]<<8^w[255&l]^o[g++],f=s,s=c,c=u,u=l,l=f},e}(),W=function(){function e(){B(this,e),this.listeners={}}return e.prototype.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e].splice(n,1),n>-1},e.prototype.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,r=0;r>8|e>>>24},X=function(e,t,n){var r=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),i=new V(Array.prototype.slice.call(t)),a=new Uint8Array(e.byteLength),o=new Int32Array(a.buffer),s=void 0,c=void 0,u=void 0,l=void 0,f=void 0,h=void 0,d=void 0,p=void 0,m=void 0;for(s=n[0],c=n[1],u=n[2],l=n[3],m=0;m1?t-1:0),r=1;r0)for(var r=e.attributes,i=r.length-1;i>=0;i--){var a=r[i].name,o=r[i].value;"boolean"!==typeof e[a]&&-1===n.indexOf(","+a+",")||(o=null!==o),t[a]=o}return t}function Ce(e,t){return e.getAttribute(t)}function Oe(e,t,n){e.setAttribute(t,n)}function Ae(e,t){e.removeAttribute(t)}function Ie(){o.a.body.focus(),o.a.onselectstart=function(){return!1}}function Pe(){o.a.onselectstart=function(){return!0}}function Le(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(le(e,"height"))),n.width||(n.width=parseFloat(le(e,"width"))),n}}function De(e){var t;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=o.a.documentElement,r=o.a.body,a=n.clientLeft||r.clientLeft||0,s=i.a.pageXOffset||r.scrollLeft,c=t.left+s-a,u=n.clientTop||r.clientTop||0,l=i.a.pageYOffset||r.scrollTop,f=t.top+l-u;return{left:Math.round(c),top:Math.round(f)}}function Re(e,t){var n={},r=De(e),i=e.offsetWidth,a=e.offsetHeight,o=r.top,s=r.left,c=t.pageY,u=t.pageX;return t.changedTouches&&(u=t.changedTouches[0].pageX,c=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(o-c+a)/a)),n.x=Math.max(0,Math.min(1,(u-s)/i)),n}function je(e){return ce(e)&&3===e.nodeType}function Me(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function Ne(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),me(e)||je(e)?e:"string"===typeof e&&/\S/.test(e)?o.a.createTextNode(e):void 0})).filter((function(e){return e}))}function Ue(e,t){return Ne(t).forEach((function(t){return e.appendChild(t)})),e}function Be(e,t){return Ue(Me(e),t)}function Fe(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var He,$e=ve("querySelector"),ze=ve("querySelectorAll"),qe=Object.freeze({isReal:pe,isEl:me,isInFrame:ge,createEl:ye,textContent:_e,prependTo:be,hasClass:Te,addClass:we,removeClass:Se,toggleClass:ke,setAttributes:xe,getAttributes:Ee,getAttribute:Ce,setAttribute:Oe,removeAttribute:Ae,blockTextSelection:Ie,unblockTextSelection:Pe,getBoundingClientRect:Le,findPosition:De,getPointerPosition:Re,isTextNode:je,emptyEl:Me,normalizeContent:Ne,appendContent:Ue,insertContent:Be,isSingleLeftClick:Fe,$:$e,$$:ze}),Ve=!1,We=function(){if(pe()&&!1!==He.options.autoSetup){var e=Array.prototype.slice.call(o.a.getElementsByTagName("video")),t=Array.prototype.slice.call(o.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(o.a.getElementsByTagName("video-js")),r=e.concat(t,n);if(r&&r.length>0)for(var i=0,a=r.length;i-1&&(i={passive:!0}),e.addEventListener(t,r.dispatcher,i)}else e.attachEvent&&e.attachEvent("on"+t,r.dispatcher)}function ct(e,t,n){if(tt.has(e)){var r=tt.get(e);if(r.handlers){if(Array.isArray(t))return rt(ct,e,t,n);var i=function(e,t){r.handlers[t]=[],nt(e,t)};if(void 0!==t){var a=r.handlers[t];if(a)if(n){if(n.guid)for(var o=0;o=t&&(e.apply(void 0,arguments),n=r)};return r},vt=function(e,t,n,r){var a;void 0===r&&(r=i.a);var o=function(){r.clearTimeout(a),a=null},s=function(){var i=this,o=arguments,s=function(){a=null,s=null,n||e.apply(i,o)};!a&&n&&e.apply(i,o),r.clearTimeout(a),a=r.setTimeout(s,t)};return s.cancel=o,s},yt=function(){};yt.prototype.allowedEvents_={},yt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},st(this,e,t),this.addEventListener=n},yt.prototype.addEventListener=yt.prototype.on,yt.prototype.off=function(e,t){ct(this,e,t)},yt.prototype.removeEventListener=yt.prototype.off,yt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},lt(this,e,t),this.addEventListener=n},yt.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},ft(this,e,t),this.addEventListener=n},yt.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=it(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),ut(this,e)},yt.prototype.dispatchEvent=yt.prototype.trigger,yt.prototype.queueTrigger=function(e){var t=this;ht||(ht=new Map);var n=e.type||e,r=ht.get(this);r||(r=new Map,ht.set(this,r));var a=r.get(n);r["delete"](n),i.a.clearTimeout(a);var o=i.a.setTimeout((function(){0===r.size&&(r=null,ht["delete"](t)),t.trigger(e)}),0);r.set(n,o)};var _t=function(e){return e instanceof yt||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},bt=function(e,t){_t(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},Tt=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},wt=function(e){if(!e.nodeName&&!_t(e))throw new Error("Invalid target; must be a DOM node or evented object.")},St=function(e){if(!Tt(e))throw new Error("Invalid event type; must be a non-empty string or array.")},kt=function(e){if("function"!==typeof e)throw new Error("Invalid listener; must be a function.")},xt=function(e,t){var n,r,i,a=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return a?(n=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],i=t[1]):(n=t[0],r=t[1],i=t[2]),wt(n),St(r),kt(i),i=mt(e,i),{isTargetingSelf:a,target:n,type:r,listener:i}},Et=function(e,t,n,r){wt(e),e.nodeName?dt[t](e,n,r):e[t](n,r)},Ct={on:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),tt.has(this.el_)&&tt["delete"](this.el_),this.el_=null),this.player_=null},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=Rt(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return ye(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),a=i&&i[r],o=r&&r.split("-")[0],s=i&&i[o],c=n;return a&&a[e]?c=a[e]:s&&s[e]&&(c=s[e]),t&&(c=c.replace(/\{(\d+)\}/g,(function(e,n){var r=t[n-1],i=r;return"undefined"===typeof r&&(i=e),i}))),c},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.addChild=function(t,n,r){var i,a;if(void 0===n&&(n={}),void 0===r&&(r=this.children_.length),"string"===typeof t){a=Lt(t);var o=n.componentClass||a;n.name=a;var s=e.getComponent(o);if(!s)throw new Error("Component "+o+" does not exist");if("function"!==typeof s)return null;i=new s(this.player_||this,n)}else i=t;if(i.parentComponent_&&i.parentComponent_.removeChild(i),this.children_.splice(r,0,i),i.parentComponent_=this,"function"===typeof i.id&&(this.childIndex_[i.id()]=i),a=a||i.name&&Lt(i.name()),a&&(this.childNameIndex_[a]=i,this.childNameIndex_[Pt(a)]=i),"function"===typeof i.el&&i.el()){var c=this.contentEl().children,u=c[r]||null;this.contentEl().insertBefore(i.el(),u)}return i},t.removeChild=function(e){if("string"===typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Lt(e.name())]=null,this.childNameIndex_[Pt(e.name())]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var r,i=this.options_,a=function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var a=t.addChild(n,r);a&&(t[n]=a)}},o=e.getComponent("Tech");r=Array.isArray(n)?n:Object.keys(n),r.concat(Object.keys(this.options_).filter((function(e){return!r.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var r,i;return"string"===typeof e?(r=e,i=n[r]||t.options_[r]||{}):(r=e.name,i=e),{name:r,opts:i}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||Lt(t.name));return n&&!o.isTech(n)})).forEach(a)}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return $e(e,t||this.contentEl())},t.$$=function(e,t){return ze(e,t||this.contentEl())},t.hasClass=function(e){return Te(this.el_,e)},t.addClass=function(e){we(this.el_,e)},t.removeClass=function(e){Se(this.el_,e)},t.toggleClass=function(e,t){ke(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return Ce(this.el_,e)},t.setAttribute=function(e,t){Oe(this.el_,e,t)},t.removeAttribute=function(e){Ae(this.el_,e)},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){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[e],i=r.indexOf("px");return-1!==i?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+Lt(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=le(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){var n="offset"+Lt(e);t=this.el_[n]}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.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null,r=10,a=200;this.on("touchstart",(function(r){1===r.touches.length&&(n={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=i.a.performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(n){var i=t.touches[0].pageX-n.pageX,a=t.touches[0].pageY-n.pageY,o=Math.sqrt(i*i+a*a);o>r&&(e=!1)}}));var o=function(){e=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",(function(r){if(n=null,!0===e){var o=i.a.performance.now()-t;o0&&u.map((function(e){return c[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[Pt(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function Mt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Nt(e,t){return Nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nt(e,t)}function Ut(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Bt(e,t,n){return Bt=Ut()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),a=new i;return n&&Nt(a,n.prototype),a},Bt.apply(null,arguments)}function Ft(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}jt.prototype.supportsRaf_="function"===typeof i.a.requestAnimationFrame&&"function"===typeof i.a.cancelAnimationFrame,jt.registerComponent("Component",jt);var Ht=i.a.navigator&&i.a.navigator.userAgent||"",$t=/AppleWebKit\/([\d.]+)/i.exec(Ht),zt=$t?parseFloat($t.pop()):null,qt=/iPad/i.test(Ht),Vt=/iPhone/i.test(Ht)&&!qt,Wt=/iPod/i.test(Ht),Gt=Vt||qt||Wt,Kt=function(){var e=Ht.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),Xt=/Android/i.test(Ht),Yt=function(){var e=Ht.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),Jt=Xt&&Yt<5&&zt<537,Zt=/Firefox/i.test(Ht),Qt=/Edge/i.test(Ht),en=!Qt&&(/Chrome/i.test(Ht)||/CriOS/i.test(Ht)),tn=function(){var e=Ht.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),nn=function(){var e=/MSIE\s(\d+)\.\d/.exec(Ht),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(Ht)&&/rv:11.0/.test(Ht)&&(t=11),t}(),rn=/Safari/i.test(Ht)&&!en&&!Xt&&!Qt,an=(rn||Gt)&&!en,on=/Windows/i.test(Ht),sn=pe()&&("ontouchstart"in i.a||i.a.navigator.maxTouchPoints||i.a.DocumentTouch&&i.a.document instanceof i.a.DocumentTouch),cn=Object.freeze({IS_IPAD:qt,IS_IPHONE:Vt,IS_IPOD:Wt,IS_IOS:Gt,IOS_VERSION:Kt,IS_ANDROID:Xt,ANDROID_VERSION:Yt,IS_NATIVE_ANDROID:Jt,IS_FIREFOX:Zt,IS_EDGE:Qt,IS_CHROME:en,CHROME_VERSION:tn,IE_VERSION:nn,IS_SAFARI:rn,IS_ANY_SAFARI:an,IS_WINDOWS:on,TOUCH_ENABLED:sn});function un(e,t,n){if("number"!==typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}function ln(e,t,n,r){return un(e,r,n.length-1),n[r][t]}function fn(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:ln.bind(null,"start",0,e),end:ln.bind(null,"end",1,e)}}function hn(e,t){return Array.isArray(e)?fn(e):void 0===e||void 0===t?fn():fn([[e,t]])}function dn(e,t){var n,r,i=0;if(!t)return 0;e&&e.length||(e=hn(0,0));for(var a=0;at&&(r=t),i+=r-n;return i/t}for(var pn,mn={prefixed:!0},gn=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],vn=gn[0],yn=0;yn=0;r--)if(t[r].enabled){Ln(t,t[r]);break}return n=e.call(this,t)||this,n.changing_=!1,n}Mt(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&Ln(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,Ln(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(In),Rn=function(e,t){for(var n=0;n=0;r--)if(t[r].selected){Rn(t,t[r]);break}return n=e.call(this,t)||this,n.changing_=!1,Object.defineProperty(Ft(n),"selectedIndex",{get:function(){for(var e=0;e',n=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),o.a.body.appendChild(r));for(var s={},c=0;cx