/**
* @license
* video.js 7.1.0
* copyright brightcove, inc.
* available under apache license version 2.0
*
*
* includes vtt.js
* available under apache license version 2.0
*
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.videojs=t()}(this,function(){var d="7.1.0",e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var i,g="undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{},r={},n=object.freeze({default:r}),a=n&&r||n,s="undefined"!=typeof e?e:"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(e,t){var i=o.levels[u],r=new regexp("^("+i+")$");if("log"!==e&&t.unshift(e.touppercase()+":"),l&&l.push([].concat(t)),t.unshift("videojs:"),g.console){var n=g.console[e];n||"debug"!==e||(n=g.console.info||g.console.log),n&&i&&r.test(e)&&n[array.isarray(t)?"apply":"call"](g.console,t)}};(o=function(){for(var e=arguments.length,t=array(e),i=0;i',i=n.firstchild,n.setattribute("style","display:none; position:absolute;"),p.body.appendchild(n));for(var a={},s=0;sx',e=t.firstchild.href}return e},ei=function(e){if("string"==typeof e){var t=/^(\/?)([\s\s]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(e);if(t)return t.pop().tolowercase()}return""},ti=function(e){var t=g.location,i=jt(e);return(":"===i.protocol?t.protocol:i.protocol)+i.host!==t.protocol+t.host},ii=object.freeze({parseurl:jt,getabsoluteurl:zt,getfileextension:ei,iscrossorigin:ti}),ri=function(e){var t=ni.call(e);return"[object function]"===t||"function"==typeof e&&"[object regexp]"!==t||"undefined"!=typeof window&&(e===window.settimeout||e===window.alert||e===window.confirm||e===window.prompt)},ni=object.prototype.tostring;var ai=object.freeze({default:ri,__moduleexports:ri}),si=t(function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}}),oi=si.left,ui=si.right,li=object.freeze({default:si,__moduleexports:si,left:oi,right:ui}),ci=ai&&ri||ai,hi=function(e,t,i){if(!ci(t))throw new typeerror("iterator must be a function");arguments.length<3&&(i=this);"[object array]"===di.call(e)?function(e,t,i){for(var r=0,n=e.length;r=e?t.push(n):n.starttime===n.endtime&&n.starttime<=e&&n.starttime+.5>=e&&t.push(n)}if(o=!1,t.length!==this.activecues_.length)o=!0;else for(var a=0;a","":"","":""," ":" "},gi={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},xi={v:"title",lang:"lang"},yi={rt:"ruby"};function $i(a,i){function e(){if(!i)return null;var e,t=i.match(/^([^<]*)(<[^>]*>?)?/);return e=t[1]?t[1]:t[2],i=i.substr(e.length),e}function t(e){return zi[e]}function r(e){for(;f=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(f[0],t);return e}function n(e,t){var i=gi[e];if(!i)return null;var r=a.document.createelement(i);r.localname=i;var n=xi[e];return n&&t&&(r[n]=t.trim()),r}for(var s,o,u,l=a.document.createelement("div"),c=l,h=[];null!==(s=e());)if("<"!==s[0])c.appendchild(a.document.createtextnode(r(s)));else{if("/"===s[1]){h.length&&h[h.length-1]===s.substr(2).replace(">","")&&(h.pop(),c=c.parentnode);continue}var d,p=hi(s.substr(1,s.length-2));if(p){d=a.document.createprocessinginstruction("timestamp",p),c.appendchild(d);continue}var f=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!f)continue;if(!(d=n(f[1],f[3])))continue;if(o=c,yi[(u=d).localname]&&yi[u.localname]!==o.localname)continue;f[2]&&(d.classname=f[2].substr(1).replace("."," ")),h.push(f[1]),c.appendchild(d),c=d}return l}var ki=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function qi(e){for(var t=0;t=i[0]&&e<=i[1])return!0}return!1}function ji(){}function zi(e,t,i){ji.call(this),this.cue=t,this.cuediv=$i(e,t.text);var r={color:"rgba(255, 255, 255, 1)",backgroundcolor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingmode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodebidi:"plaintext"};this.applystyles(r,this.cuediv),this.div=e.document.createelement("div"),r={direction:function(e){var t=[],i="";if(!e||!e.childnodes)return"ltr";function n(e,t){for(var i=t.childnodes.length-1;0<=i;i--)e.push(t.childnodes[i])}function a(e){if(!e||!e.length)return null;var t=e.pop(),i=t.textcontent||t.innertext;if(i){var r=i.match(/^.*(\n|\r)/);return r?r[e.length=0]:i}return"ruby"===t.tagname?a(e):t.childnodes?(n(e,t),a(e)):void 0}for(n(t,e);i=a(t);)for(var r=0;rh&&(c=c<0?-1:1,c*=math.ceil(h/l)*l),n<0&&(c+=""===r.vertical?o.height:o.width,a=a.reverse()),i.move(d,c)}else{var p=i.lineheight/o.height*100;switch(r.linealign){case"middle":n-=p/2;break;case"end":n-=p}switch(r.vertical){case"":t.applystyles({top:t.formatstyle(n,"%")});break;case"rl":t.applystyles({left:t.formatstyle(n,"%")});break;case"lr":t.applystyles({right:t.formatstyle(n,"%")})}a=["+y","-x","+x","-y"],i=new er(t)}var f=function(e,t){for(var i,r=new er(e),n=1,a=0;ae.left&&this.tope.top},er.prototype.overlapsany=function(e){for(var t=0;t=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},er.prototype.overlapsoppositeaxis=function(e,t){switch(t){case"+x":return this.lefte.right;case"+y":return this.tope.bottom}},er.prototype.intersectpercentage=function(e){return math.max(0,math.min(this.right,e.right)-math.max(this.left,e.left))*math.max(0,math.min(this.bottom,e.bottom)-math.max(this.top,e.top))/(this.height*this.width)},er.prototype.tocsscompatvalues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},er.getsimpleboxposition=function(e){var t=e.div?e.div.offsetheight:e.tagname?e.offsetheight:0,i=e.div?e.div.offsetwidth:e.tagname?e.offsetwidth:0,r=e.div?e.div.offsettop:e.tagname?e.offsettop:0;return{left:(e=e.div?e.div.getboundingclientrect():e.tagname?e.getboundingclientrect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||i}},ir.stringdecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new error("error - expected string data.");return decodeuricomponent(encodeuricomponent(e))}}},ir.convertcuetodomtree=function(e,t){return e&&t?$i(e,t):null};ir.processcues=function(r,n,e){if(!r||!n||!e)return null;for(;e.firstchild;)e.removechild(e.firstchild);var a=r.document.createelement("div");if(a.style.position="absolute",a.style.left="0",a.style.right="0",a.style.top="0",a.style.bottom="0",a.style.margin="1.5%",e.appendchild(a),function(e){for(var t=0;t',classname:this.buildcssclass(),tabindex:0},t),"button"===e&&f.error("creating a clickablecomponent with an html element of "+e+" is not supported; use a button instead."),i=c({role:"button"},i),this.tabindex_=t.tabindex;var r=n.prototype.createel.call(this,e,t,i);return this.createcontroltextel(r),r},r.prototype.dispose=function(){this.controltextel_=null,n.prototype.dispose.call(this)},r.prototype.createcontroltextel=function(e){return this.controltextel_=m("span",{classname:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendchild(this.controltextel_),this.controltext(this.controltext_,e),this.controltextel_},r.prototype.controltext=function(e){var t=1',classname:this.buildcssclass()},t),i=c({type:"button"},i);var r=xe.prototype.createel.call(this,"button",t,i);return this.createcontroltextel(r),r},e.prototype.addchild=function(e){var t=1'+this.localize(this.labeltext_)+" "});return this.contentel_=m("span",{classname:t+"-display"},{"aria-live":"off"}),this.updatetextnode_(),i.appendchild(this.contentel_),i},n.prototype.dispose=function(){this.contentel_=null,this.textnode_=null,r.prototype.dispose.call(this)},n.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_)}},n.prototype.formattime_=function(e){return yr(e)},n.prototype.updateformattedtime_=function(e){var t=this.formattime_(e);t!==this.formattedtime_&&(this.formattedtime_=t,this.requestanimationframe(this.updatetextnode_))},n.prototype.updatecontent=function(e){},n}(xe);$r.prototype.labeltext_="time",$r.prototype.controltext_="time",xe.registercomponent("timedisplay",$r);var kr=function(r){function n(e,t){y(this,n);var i=b(this,r.call(this,e,t));return i.on(e,"ended",i.handleended),i}return _(n,r),n.prototype.buildcssclass=function(){return"vjs-current-time"},n.prototype.updatecontent=function(e){var t=this.player_.scrubbing()?this.player_.getcache().currenttime:this.player_.currenttime();this.updateformattedtime_(t)},n.prototype.handleended=function(e){this.player_.duration()&&this.updateformattedtime_(this.player_.duration())},n}($r);kr.prototype.labeltext_="current time",kr.prototype.controltext_="current time",xe.registercomponent("currenttimedisplay",kr);var qr=function(r){function n(e,t){y(this,n);var i=b(this,r.call(this,e,t));return i.on(e,"durationchange",i.updatecontent),i.on(e,"loadedmetadata",i.throttledupdatecontent),i}return _(n,r),n.prototype.buildcssclass=function(){return"vjs-duration"},n.prototype.updatecontent=function(e){var t=this.player_.duration();t&&this.duration_!==t&&(this.duration_=t,this.updateformattedtime_(t))},n}($r);qr.prototype.labeltext_="duration",qr.prototype.controltext_="duration",xe.registercomponent("durationdisplay",qr);var jr=function(e){function t(){return y(this,t),b(this,e.apply(this,arguments))}return _(t,e),t.prototype.createel=function(){return e.prototype.createel.call(this,"div",{classname:"vjs-time-control vjs-time-divider",innerhtml:"/
"})},t}(xe);xe.registercomponent("timedivider",jr);var zr=function(r){function n(e,t){y(this,n);var i=b(this,r.call(this,e,t));return i.on(e,"durationchange",i.throttledupdatecontent),i.on(e,"ended",i.handleended),i}return _(n,r),n.prototype.buildcssclass=function(){return"vjs-remaining-time"},n.prototype.formattime_=function(e){return"-"+r.prototype.formattime_.call(this,e)},n.prototype.updatecontent=function(e){this.player_.duration()&&(this.player_.remainingtimedisplay?this.updateformattedtime_(this.player_.remainingtimedisplay()):this.updateformattedtime_(this.player_.remainingtime()))},n.prototype.handleended=function(e){this.player_.duration()&&this.updateformattedtime_(0)},n}($r);zr.prototype.labeltext_="remaining time",zr.prototype.controltext_="remaining time",xe.registercomponent("remainingtimedisplay",zr);var en=function(r){function n(e,t){y(this,n);var i=b(this,r.call(this,e,t));return i.updateshowing(),i.on(i.player(),"durationchange",i.updateshowing),i}return _(n,r),n.prototype.createel=function(){var e=r.prototype.createel.call(this,"div",{classname:"vjs-live-control vjs-control"});return this.contentel_=m("div",{classname:"vjs-live-display",innerhtml:''+this.localize("stream type")+" "+this.localize("live")},{"aria-live":"off"}),e.appendchild(this.contentel_),e},n.prototype.dispose=function(){this.contentel_=null,r.prototype.dispose.call(this)},n.prototype.updateshowing=function(e){this.player().duration()===1/0?this.show():this.hide()},n}(xe);xe.registercomponent("livedisplay",en);var tn=function(r){function n(e,t){y(this,n);var i=b(this,r.call(this,e,t));return i.bar=i.getchild(i.options_.barname),i.vertical(!!i.options_.vertical),i.enable(),i}return _(n,r),n.prototype.enabled=function(){return this.enabled_},n.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)},n.prototype.disable=function(){if(this.enabled()){var e=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(e,"mousemove",this.handlemousemove),this.off(e,"mouseup",this.handlemouseup),this.off(e,"touchmove",this.handlemousemove),this.off(e,"touchend",this.handlemouseup),this.removeattribute("tabindex"),this.addclass("disabled"),this.playerevent&&this.off(this.player_,this.playerevent,this.update),this.enabled_=!1}},n.prototype.createel=function(e){var t=1'+this.localize("loaded")+": 0%"})},n.prototype.dispose=function(){this.partels_=null,r.prototype.dispose.call(this)},n.prototype.update=function(e){var t=this.player_.buffered(),i=this.player_.duration(),r=this.player_.bufferedend(),n=this.partels_,a=function(e,t){var i=e/t||0;return 100*(1<=i?1:i)+"%"};this.el_.style.width=a(r,i);for(var s=0;st.length;c--)this.el_.removechild(n[c-1]);n.length=t.length},n}(xe);xe.registercomponent("loadprogressbar",rn);var nn=function(e){function t(){return y(this,t),b(this,e.apply(this,arguments))}return _(t,e),t.prototype.createel=function(){return e.prototype.createel.call(this,"div",{classname:"vjs-time-tooltip"})},t.prototype.update=function(e,t,i){var r=$(this.el_),n=$(this.player_.el()),a=e.width*t;if(n&&r){var s=e.left-n.left+a,o=e.width-a+(n.right-e.right),u=r.width/2;sr.width&&(u=r.width),this.el_.style.right="-"+u+"px",u(this.el_,i)}},t}(xe);xe.registercomponent("timetooltip",nn);var an=function(e){function t(){return y(this,t),b(this,e.apply(this,arguments))}return _(t,e),t.prototype.createel=function(){return e.prototype.createel.call(this,"div",{classname:"vjs-play-progress vjs-slider-bar",innerhtml:''+this.localize("progress")+": 0%"})},t.prototype.update=function(i,r){var n=this;this.rafid_&&this.cancelanimationframe(this.rafid_),this.rafid_=this.requestanimationframe(function(){var e=yr(n.player_.scrubbing()?n.player_.getcache().currenttime:n.player_.currenttime(),n.player_.duration()),t=n.getchild("timetooltip");t&&t.update(i,r,e)})},t}(xe);an.prototype.options_={children:[]},nt||st||an.prototype.options_.children.push("timetooltip"),xe.registercomponent("playprogressbar",an);var sn=function(r){function n(e,t){y(this,n);var i=b(this,r.call(this,e,t));return i.update=ie(oe(i,i.update),25),i}return _(n,r),n.prototype.createel=function(){return r.prototype.createel.call(this,"div",{classname:"vjs-mouse-display"})},n.prototype.update=function(i,r){var n=this;this.rafid_&&this.cancelanimationframe(this.rafid_),this.rafid_=this.requestanimationframe(function(){var e=n.player_.duration(),t=yr(r*e,e);n.el_.style.left=i.width*r+"px",n.getchild("timetooltip").update(i,r,t)})},n}(xe);sn.prototype.options_={children:["timetooltip"]},xe.registercomponent("mousetimedisplay",sn);var on=function(r){function n(e,t){y(this,n);var i=b(this,r.call(this,e,t));return i.seteventhandlers_(),i}return _(n,r),n.prototype.seteventhandlers_=function(){var e=this;this.update=ie(oe(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(){e.clearinterval(e.updateinterval),e.updateinterval=e.setinterval(function(){e.requestanimationframe(function(){e.update()})},30)}),this.on(this.player_,["ended","pause","waiting"],function(){e.clearinterval(e.updateinterval)}),this.on(this.player_,["timeupdate","ended"],this.update)},n.prototype.createel=function(){return r.prototype.createel.call(this,"div",{classname:"vjs-progress-holder"},{"aria-label":this.localize("progress bar")})},n.prototype.update_=function(e,t){var i=this.player_.duration();this.el_.setattribute("aria-valuenow",(100*t).tofixed(2)),this.el_.setattribute("aria-valuetext",this.localize("progress bar timing: currenttime={1} duration={2}",[yr(e,i),yr(i,i)],"{1} of {2}")),this.bar.update($(this.el_),t)},n.prototype.update=function(e){var t=r.prototype.update.call(this);return this.update_(this.getcurrenttime_(),t),t},n.prototype.getcurrenttime_=function(){return this.player_.scrubbing()?this.player_.getcache().currenttime:this.player_.currenttime()},n.prototype.handleended=function(e){this.update_(this.player_.duration(),1)},n.prototype.getpercent=function(){var e=this.getcurrenttime_()/this.player_.duration();return 1<=e?1:e||0},n.prototype.handlemousedown=function(e){re(e)&&(e.stoppropagation(),this.player_.scrubbing(!0),this.videowasplaying=!this.player_.paused(),this.player_.pause(),r.prototype.handlemousedown.call(this,e))},n.prototype.handlemousemove=function(e){if(re(e)){var t=this.calculatedistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currenttime(t)}},n.prototype.enable=function(){r.prototype.enable.call(this);var e=this.getchild("mousetimedisplay");e&&e.show()},n.prototype.disable=function(){r.prototype.disable.call(this);var e=this.getchild("mousetimedisplay");e&&e.hide()},n.prototype.handlemouseup=function(e){r.prototype.handlemouseup.call(this,e),e&&e.stoppropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallytriggered:!0}),this.videowasplaying&&xt(this.player_.play())},n.prototype.stepforward=function(){this.player_.currenttime(this.player_.currenttime()+5)},n.prototype.stepback=function(){this.player_.currenttime(this.player_.currenttime()-5)},n.prototype.handleaction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.prototype.handlekeypress=function(e){32===e.which||13===e.which?(e.preventdefault(),this.handleaction(e)):r.prototype.handlekeypress&&r.prototype.handlekeypress.call(this,e)},n}(tn);on.prototype.options_={children:["loadprogressbar","playprogressbar"],barname:"playprogressbar"},nt||st||on.prototype.options_.children.splice(1,0,"mousetimedisplay"),on.prototype.playerevent="timeupdate",xe.registercomponent("seekbar",on);var un=function(r){function n(e,t){y(this,n);var i=b(this,r.call(this,e,t));return i.handlemousemove=ie(oe(i,i.handlemousemove),25),i.throttledhandlemouseseek=ie(oe(i,i.handlemouseseek),25),i.enable(),i}return _(n,r),n.prototype.createel=function(){return r.prototype.createel.call(this,"div",{classname:"vjs-progress-control vjs-control"})},n.prototype.handlemousemove=function(e){var t=this.getchild("seekbar");if(t){var i=t.getchild("mousetimedisplay"),r=t.el(),n=$(r),a=q(r,e).x;1'})},t}(xe);xe.registercomponent("volumelevel",hn);var dn=function(r){function n(e,t){y(this,n);var i=b(this,r.call(this,e,t));return i.on("slideractive",i.updatelastvolume_),i.on(e,"volumechange",i.updateariaattributes),e.ready(function(){return i.updateariaattributes()}),i}return _(n,r),n.prototype.createel=function(){return r.prototype.createel.call(this,"div",{classname:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("volume level"),"aria-live":"polite"})},n.prototype.handlemousedown=function(e){re(e)&&r.prototype.handlemousedown.call(this,e)},n.prototype.handlemousemove=function(e){re(e)&&(this.checkmuted(),this.player_.volume(this.calculatedistance(e)))},n.prototype.checkmuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.prototype.getpercent=function(){return this.player_.muted()?0:this.player_.volume()},n.prototype.stepforward=function(){this.checkmuted(),this.player_.volume(this.player_.volume()+.1)},n.prototype.stepback=function(){this.checkmuted(),this.player_.volume(this.player_.volume()-.1)},n.prototype.updateariaattributes=function(e){var t=this.player_.muted()?0:this.volumeaspercentage_();this.el_.setattribute("aria-valuenow",t),this.el_.setattribute("aria-valuetext",t+"%")},n.prototype.volumeaspercentage_=function(){return math.round(100*this.player_.volume())},n.prototype.updatelastvolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastvolume_(t)})},n}(tn);dn.prototype.options_={children:["volumelevel"],barname:"volumelevel"},dn.prototype.playerevent="volumechange",xe.registercomponent("volumebar",dn);var pn=function(r){function n(e){var t=1=t.length&&(e=t.length-1),t[this.focusedchild_=e].el_.focus())},n}(xe);xe.registercomponent("menu",yn);var vn=function(n){function a(e){var t=1