/**
* @license
* Video.js 7.2.4
* Copyright Brightcove, Inc.
* Available under Apache License Version 2.0
*
*
* Includes vtt.js
* Available under Apache License Version 2.0
*
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.videojs=e()}(this,function(){var d="7.2.4",t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var i,g="undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},n={},r=Object.freeze({default:n}),a=r&&n||r,s="undefined"!=typeof t?t:"undefined"!=typeof window?window:{};"undefined"!=typeof document?i=document:(i=s["__GLOBAL_DOCUMENT_CACHE@4"])||(i=s["__GLOBAL_DOCUMENT_CACHE@4"]=a);var p=i,o=void 0,u="info",l=[],c=function(t,e){var i=o.levels[u],n=new RegExp("^("+i+")$");if("log"!==t&&e.unshift(t.toUpperCase()+":"),l&&l.push([].concat(e)),e.unshift("VIDEOJS:"),g.console){var r=g.console[t];r||"debug"!==t||(r=g.console.info||g.console.log),r&&i&&n.test(t)&&r[Array.isArray(e)?"apply":"call"](g.console,e)}};(o=function(){for(var t=arguments.length,e=Array(t),i=0;i',i=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),p.body.appendChild(r));for(var a={},s=0;sx',t=e.firstChild.href}return t},ei=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},ii=function(t){var e=g.location,i=Ze(t);return(":"===i.protocol?e.protocol:i.protocol)+i.host!==e.protocol+e.host},ni=Object.freeze({parseUrl:Ze,getAbsoluteURL:ti,getFileExtension:ei,isCrossOrigin:ii}),ri=function(t){var e=ai.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)},ai=Object.prototype.toString;var si=e(function(t,e){(e=t.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},e.right=function(t){return t.replace(/\s*$/,"")}}),oi=(si.left,si.right,function(t,e,i){if(!ri(e))throw new TypeError("iterator must be a function");arguments.length<3&&(i=this);"[object Array]"===ui.call(t)?function(t,e,i){for(var n=0,r=t.length;n=t?e.push(r):r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t&&e.push(r)}if(o=!1,e.length!==this.activeCues_.length)o=!0;else for(var a=0;a',className:this.buildCSSClass(),tabIndex:0},e),"button"===t&&f.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),i=k({role:"button"},i),this.tabIndex_=e.tabIndex;var n=r.prototype.createEl.call(this,t,e,i);return this.createControlTextEl(n),n},n.prototype.dispose=function(){this.controlTextEl_=null,r.prototype.dispose.call(this)},n.prototype.createControlTextEl=function(t){return this.controlTextEl_=x("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},n.prototype.controlText=function(t){var e=1',className:this.buildCSSClass()},e),i=k({type:"button"},i);var n=Xt.prototype.createEl.call(this,"button",e,i);return this.createControlTextEl(n),n},t.prototype.addChild=function(t){var e=1'+this.localize(this.labelText_)+"Â "});return this.contentEl_=x("span",{className:e+"-display"},{"aria-live":"off"}),this.updateTextNode_(),i.appendChild(this.contentEl_),i},r.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,n.prototype.dispose.call(this)},r.prototype.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=p.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},r.prototype.formatTime_=function(t){return rn(t)},r.prototype.updateFormattedTime_=function(t){var e=this.formatTime_(t);e!==this.formattedTime_&&(this.formattedTime_=e,this.requestAnimationFrame(this.updateTextNode_))},r.prototype.updateContent=function(t){},r}(Xt);an.prototype.labelText_="Time",an.prototype.controlText_="Time",Xt.registerComponent("TimeDisplay",an);var sn=function(n){function r(t,e){y(this,r);var i=_(this,n.call(this,t,e));return i.on(t,"ended",i.handleEnded),i}return v(r,n),r.prototype.buildCSSClass=function(){return"vjs-current-time"},r.prototype.updateContent=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(e)},r.prototype.handleEnded=function(t){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},r}(an);sn.prototype.labelText_="Current Time",sn.prototype.controlText_="Current Time",Xt.registerComponent("CurrentTimeDisplay",sn);var on=function(n){function r(t,e){y(this,r);var i=_(this,n.call(this,t,e));return i.on(t,"durationchange",i.updateContent),i.on(t,"loadedmetadata",i.throttledUpdateContent),i}return v(r,n),r.prototype.buildCSSClass=function(){return"vjs-duration"},r.prototype.updateContent=function(t){var e=this.player_.duration();e&&this.duration_!==e&&(this.duration_=e,this.updateFormattedTime_(e))},r}(an);on.prototype.labelText_="Duration",on.prototype.controlText_="Duration",Xt.registerComponent("DurationDisplay",on);var un=function(t){function e(){return y(this,e),_(this,t.apply(this,arguments))}return v(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"/
"})},e}(Xt);Xt.registerComponent("TimeDivider",un);var ln=function(n){function r(t,e){y(this,r);var i=_(this,n.call(this,t,e));return i.on(t,"durationchange",i.throttledUpdateContent),i.on(t,"ended",i.handleEnded),i}return v(r,n),r.prototype.buildCSSClass=function(){return"vjs-remaining-time"},r.prototype.formatTime_=function(t){return"-"+n.prototype.formatTime_.call(this,t)},r.prototype.updateContent=function(t){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},r.prototype.handleEnded=function(t){this.player_.duration()&&this.updateFormattedTime_(0)},r}(an);ln.prototype.labelText_="Remaining Time",ln.prototype.controlText_="Remaining Time",Xt.registerComponent("RemainingTimeDisplay",ln);var cn=function(n){function r(t,e){y(this,r);var i=_(this,n.call(this,t,e));return i.updateShowing(),i.on(i.player(),"durationchange",i.updateShowing),i}return v(r,n),r.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=x("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+"Â "+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},r.prototype.dispose=function(){this.contentEl_=null,n.prototype.dispose.call(this)},r.prototype.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},r}(Xt);Xt.registerComponent("LiveDisplay",cn);var hn=function(n){function r(t,e){y(this,r);var i=_(this,n.call(this,t,e));return i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}return v(r,n),r.prototype.enabled=function(){return this.enabled_},r.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},r.prototype.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),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.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},r.prototype.createEl=function(t){var e=1'+this.localize("Loaded")+": 0%"})},r.prototype.dispose=function(){this.partEls_=null,n.prototype.dispose.call(this)},r.prototype.update=function(t){var e=this.player_.buffered(),i=this.player_.duration(),n=this.player_.bufferedEnd(),r=this.partEls_,a=function(t,e){var i=t/e||0;return 100*(1<=i?1:i)+"%"};this.el_.style.width=a(n,i);for(var s=0;se.length;c--)this.el_.removeChild(r[c-1]);r.length=e.length},r}(Xt);Xt.registerComponent("LoadProgressBar",dn);var pn=function(t){function e(){return y(this,e),_(this,t.apply(this,arguments))}return v(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},e.prototype.update=function(t,e,i){var n=Y(this.el_),r=Y(this.player_.el()),a=t.width*e;if(r&&n){var s=t.left-r.left+a,o=t.width-a+(r.right-t.right),u=n.width/2;sn.width&&(u=n.width),this.el_.style.right="-"+u+"px",R(this.el_,i)}},e}(Xt);Xt.registerComponent("TimeTooltip",pn);var fn=function(t){function e(){return y(this,e),_(this,t.apply(this,arguments))}return v(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:''+this.localize("Progress")+": 0%"})},e.prototype.update=function(i,n){var r=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var t=rn(r.player_.scrubbing()?r.player_.getCache().currentTime:r.player_.currentTime(),r.player_.duration()),e=r.getChild("timeTooltip");e&&e.update(i,n,t)})},e}(Xt);fn.prototype.options_={children:[]},re||se||fn.prototype.options_.children.push("timeTooltip"),Xt.registerComponent("PlayProgressBar",fn);var mn=function(n){function r(t,e){y(this,r);var i=_(this,n.call(this,t,e));return i.update=Pt(Ot(i,i.update),25),i}return v(r,n),r.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},r.prototype.update=function(i,n){var r=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var t=r.player_.duration(),e=rn(n*t,t);r.el_.style.left=i.width*n+"px",r.getChild("timeTooltip").update(i,n,e)})},r}(Xt);mn.prototype.options_={children:["timeTooltip"]},Xt.registerComponent("MouseTimeDisplay",mn);var gn=function(n){function r(t,e){y(this,r);var i=_(this,n.call(this,t,e));return i.setEventHandlers_(),i}return v(r,n),r.prototype.setEventHandlers_=function(){var t=this;this.update=Pt(Ot(this,this.update),30),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],function(){t.clearInterval(t.updateInterval),t.updateInterval=t.setInterval(function(){t.requestAnimationFrame(function(){t.update()})},30)}),this.on(this.player_,["ended","pause","waiting"],function(){t.clearInterval(t.updateInterval)}),this.on(this.player_,["timeupdate","ended"],this.update)},r.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},r.prototype.update_=function(t,e){var i=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*e).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[rn(t,i),rn(i,i)],"{1} of {2}")),this.bar.update(Y(this.el_),e)},r.prototype.update=function(t){var e=n.prototype.update.call(this);return this.update_(this.getCurrentTime_(),e),e},r.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},r.prototype.handleEnded=function(t){this.update_(this.player_.duration(),1)},r.prototype.getPercent=function(){var t=this.getCurrentTime_()/this.player_.duration();return 1<=t?1:t||0},r.prototype.handleMouseDown=function(t){it(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),n.prototype.handleMouseDown.call(this,t))},r.prototype.handleMouseMove=function(t){if(it(t)){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)}},r.prototype.enable=function(){n.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},r.prototype.disable=function(){n.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},r.prototype.handleMouseUp=function(t){n.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&De(this.player_.play())},r.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},r.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},r.prototype.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},r.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):n.prototype.handleKeyPress&&n.prototype.handleKeyPress.call(this,t)},r}(hn);gn.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},re||se||gn.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),gn.prototype.playerEvent="timeupdate",Xt.registerComponent("SeekBar",gn);var yn=function(n){function r(t,e){y(this,r);var i=_(this,n.call(this,t,e));return i.handleMouseMove=Pt(Ot(i,i.handleMouseMove),25),i.throttledHandleMouseSeek=Pt(Ot(i,i.handleMouseSeek),25),i.enable(),i}return v(r,n),r.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},r.prototype.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var i=e.getChild("mouseTimeDisplay"),n=e.el(),r=Y(n),a=K(n,t).x;1'})},e}(Xt);Xt.registerComponent("VolumeLevel",bn);var Tn=function(n){function r(t,e){y(this,r);var i=_(this,n.call(this,t,e));return i.on("slideractive",i.updateLastVolume_),i.on(t,"volumechange",i.updateARIAAttributes),t.ready(function(){return i.updateARIAAttributes()}),i}return v(r,n),r.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},r.prototype.handleMouseDown=function(t){it(t)&&n.prototype.handleMouseDown.call(this,t)},r.prototype.handleMouseMove=function(t){it(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},r.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},r.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},r.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},r.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},r.prototype.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},r.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},r.prototype.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",function(){0===t.player_.volume()&&t.player_.lastVolume_(e)})},r}(hn);Tn.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Tn.prototype.playerEvent="volumechange",Xt.registerComponent("VolumeBar",Tn);var Sn=function(n){function r(t){var e=1=e.length&&(t=e.length-1),e[this.focusedChild_=t].el_.focus())},r}(Xt);Xt.registerComponent("Menu",En);var An=function(r){function a(t){var e=1