/**
* @license
* video.js 6.0.0
* copyright brightcove, inc.
* available under apache license version 2.0
*
*
* includes vtt.js
* available under apache license version 2.0
*
*/
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.videojs=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new error("cannot find module '"+g+"'");throw j.code="module_not_found",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g1&&arguments[1]!==undefined?arguments[1]:{},c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};a="button",b=(0,n.assign)({innerhtml:'',classname:this.buildcssclass()},b),c=(0,n.assign)({type:"button","aria-live":"polite"},c);var d=k["default"].prototype.createel.call(this,a,b,c);return this.createcontroltextel(d),d},b.prototype.addchild=function(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},c=this.constructor.name;return m["default"].warn("adding an actionable (user controllable) child to a button ("+c+") is not supported; use a clickablecomponent instead."),k["default"].prototype.addchild.call(this,a,b)},b.prototype.enable=function(){a.prototype.enable.call(this),this.el_.removeattribute("disabled")},b.prototype.disable=function(){a.prototype.disable.call(this),this.el_.setattribute("disabled","disabled")},b.prototype.handlekeypress=function(b){32!==b.which&&13!==b.which&&a.prototype.handlekeypress.call(this,b)},b}(i["default"]);k["default"].registercomponent("button",o),c["default"]=o},{3:3,5:5,91:91,93:93}],3:[function(a,b,c){"use strict";function d(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esmodule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function g(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var i=a(5),j=e(i),k=a(85),l=d(k),m=a(86),n=d(m),o=a(88),p=d(o),q=a(91),r=e(q),s=a(101),t=e(s),u=a(93),v=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.emittapevents(),e.enable(),e}return h(b,a),b.prototype.createel=function(){var b=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"div",c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};c=(0,u.assign)({innerhtml:'',classname:this.buildcssclass(),tabindex:0},c),"button"===b&&r["default"].error("creating a clickablecomponent with an html element of "+b+" is not supported; use a button instead."),d=(0,u.assign)({role:"button","aria-live":"polite"},d),this.tabindex_=c.tabindex;var e=a.prototype.createel.call(this,b,c,d);return this.createcontroltextel(e),e},b.prototype.createcontroltextel=function(a){return this.controltextel_=l.createel("span",{classname:"vjs-control-text"}),a&&a.appendchild(this.controltextel_),this.controltext(this.controltext_,a),this.controltextel_},b.prototype.controltext=function(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.el();if(!a)return this.controltext_||"need text";var c=this.localize(a);this.controltext_=a,this.controltextel_.innerhtml=c,this.noniconcontrol||b.setattribute("title",c)},b.prototype.buildcssclass=function(){return"vjs-control vjs-button "+a.prototype.buildcssclass.call(this)},b.prototype.enable=function(){this.removeclass("vjs-disabled"),this.el_.setattribute("aria-disabled","false"),"undefined"!=typeof this.tabindex_&&this.el_.setattribute("tabindex",this.tabindex_),this.on("tap",this.handleclick),this.on("click",this.handleclick),this.on("focus",this.handlefocus),this.on("blur",this.handleblur)},b.prototype.disable=function(){this.addclass("vjs-disabled"),this.el_.setattribute("aria-disabled","true"),"undefined"!=typeof this.tabindex_&&this.el_.removeattribute("tabindex"),this.off("tap",this.handleclick),this.off("click",this.handleclick),this.off("focus",this.handlefocus),this.off("blur",this.handleblur)},b.prototype.handleclick=function(a){},b.prototype.handlefocus=function(a){n.on(t["default"],"keydown",p.bind(this,this.handlekeypress))},b.prototype.handlekeypress=function(b){32===b.which||13===b.which?(b.preventdefault(),this.trigger("click")):a.prototype.handlekeypress&&a.prototype.handlekeypress.call(this,b)},b.prototype.handleblur=function(a){n.off(t["default"],"keydown",p.bind(this,this.handlekeypress))},b}(j["default"]);j["default"].registercomponent("clickablecomponent",v),c["default"]=v},{101:101,5:5,85:85,86:86,88:88,91:91,93:93}],4:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(2),i=d(h),j=a(5),k=d(j),l=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.controltext(d&&d.controltext||g.localize("close")),g}return g(b,a),b.prototype.buildcssclass=function(){return"vjs-close-button "+a.prototype.buildcssclass.call(this)},b.prototype.handleclick=function(a){this.trigger({type:"close",bubbles:!1})},b}(i["default"]);k["default"].registercomponent("closebutton",l),c["default"]=l},{2:2,5:5}],5:[function(a,b,c){"use strict";function d(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esmodule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}c.__esmodule=!0;var g=a(102),h=e(g),i=a(53),j=e(i),k=a(54),l=e(k),m=a(85),n=d(m),o=a(84),p=d(o),q=a(88),r=d(q),s=a(90),t=d(s),u=a(91),v=e(u),w=a(96),x=e(w),y=a(92),z=e(y),a=function(){function a(b,c,d){if(f(this,a),!b&&this.play?this.player_=b=this:this.player_=b,this.options_=(0,z["default"])({},this.options_),c=this.options_=(0,z["default"])(this.options_,c),this.id_=c.id||c.el&&c.el.id,!this.id_){var e=b&&b.id&&b.id()||"no_player";this.id_=e+"_component_"+t.newguid()}this.name_=c.name||null,c.el?this.el_=c.el:!1!==c.createel&&(this.el_=this.createel()),(0,j["default"])(this,{eventbuskey:this.el_?"el_":null}),(0,l["default"])(this,this.constructor.defaultstate),this.children_=[],this.childindex_={},this.childnameindex_={},!1!==c.initchildren&&this.initchildren(),this.ready(d),!1!==c.reporttouchactivity&&this.enabletouchactivity()}return a.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var a=this.children_.length-1;a>=0;a--)this.children_[a].dispose&&this.children_[a].dispose();this.children_=null,this.childindex_=null,this.childnameindex_=null,this.el_&&(this.el_.parentnode&&this.el_.parentnode.removechild(this.el_),p.removedata(this.el_),this.el_=null)},a.prototype.player=function(){return this.player_},a.prototype.options=function(a){return v["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),a?(this.options_=(0,z["default"])(this.options_,a),this.options_):this.options_},a.prototype.el=function(){return this.el_},a.prototype.createel=function(a,b,c){return n.createel(a,b,c)},a.prototype.localize=function(a,b){var c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:a,d=this.player_.language&&this.player_.language(),e=this.player_.languages&&this.player_.languages(),f=e&&e[d],g=d&&d.split("-")[0],h=e&&e[g],i=c;return f&&f[a]?i=f[a]:h&&h[a]&&(i=h[a]),b&&(i=i.replace(/\{(\d+)\}/g,function(a,c){var d=b[c-1],e=d;return void 0===d&&(e=a),e})),i},a.prototype.contentel=function(){return this.contentel_||this.el_},a.prototype.id=function(){return this.id_},a.prototype.name=function(){return this.name_},a.prototype.children=function(){return this.children_},a.prototype.getchildbyid=function(a){return this.childindex_[a]},a.prototype.getchild=function(a){if(a)return a=(0,x["default"])(a),this.childnameindex_[a]},a.prototype.addchild=function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.children_.length,e=void 0,f=void 0;if("string"==typeof b){f=(0,x["default"])(b);var g=c.componentclass||f;c.name=f;var h=a.getcomponent(g);if(!h)throw new error("component "+g+" does not exist");if("function"!=typeof h)return null;e=new h(this.player_||this,c)}else e=b;if(this.children_.splice(d,0,e),"function"==typeof e.id&&(this.childindex_[e.id()]=e),f=f||e.name&&(0,x["default"])(e.name()),f&&(this.childnameindex_[f]=e),"function"==typeof e.el&&e.el()){var i=this.contentel().children,j=i[d]||null;this.contentel().insertbefore(e.el(),j)}return e},a.prototype.removechild=function(a){if("string"==typeof a&&(a=this.getchild(a)),a&&this.children_){for(var b=!1,c=this.children_.length-1;c>=0;c--)if(this.children_[c]===a){b=!0,this.children_.splice(c,1);break}if(b){this.childindex_[a.id()]=null,this.childnameindex_[a.name()]=null;var d=a.el();d&&d.parentnode===this.contentel()&&this.contentel().removechild(a.el())}}},a.prototype.initchildren=function(){var b=this,c=this.options_.children;if(c){var d=this.options_,e=function(a){var c=a.name,e=a.opts;if(d[c]!==undefined&&(e=d[c]),!1!==e){!0===e&&(e={}),e.playeroptions=b.options_.playeroptions;var f=b.addchild(c,e);f&&(b[c]=f)}},f=void 0,g=a.getcomponent("tech");f=array.isarray(c)?c:object.keys(c),f.concat(object.keys(this.options_).filter(function(a){return!f.some(function(b){return"string"==typeof b?a===b:a===b.name})})).map(function(a){var d=void 0,e=void 0;return"string"==typeof a?(d=a,e=c[d]||b.options_[d]||{}):(d=a.name,e=a),{name:d,opts:e}}).filter(function(b){var c=a.getcomponent(b.opts.componentclass||(0,x["default"])(b.name));return c&&!g.istech(c)}).foreach(e)}},a.prototype.buildcssclass=function(){return""},a.prototype.ready=function(a){var b=arguments.length>1&&arguments[1]!==undefined&&arguments[1];a&&(this.isready_?b?a.call(this):this.settimeout(a,1):(this.readyqueue_=this.readyqueue_||[],this.readyqueue_.push(a)))},a.prototype.triggerready=function(){this.isready_=!0,this.settimeout(function(){var a=this.readyqueue_;this.readyqueue_=[],a&&a.length>0&&a.foreach(function(a){a.call(this)},this),this.trigger("ready")},1)},a.prototype.$=function(a,b){return n.$(a,b||this.contentel())},a.prototype.$$=function(a,b){return n.$$(a,b||this.contentel())},a.prototype.hasclass=function(a){return n.hasclass(this.el_,a)},a.prototype.addclass=function(a){n.addclass(this.el_,a)},a.prototype.removeclass=function(a){n.removeclass(this.el_,a)},a.prototype.toggleclass=function(a,b){n.toggleclass(this.el_,a,b)},a.prototype.show=function(){this.removeclass("vjs-hidden")},a.prototype.hide=function(){this.addclass("vjs-hidden")},a.prototype.lockshowing=function(){this.addclass("vjs-lock-showing")},a.prototype.unlockshowing=function(){this.removeclass("vjs-lock-showing")},a.prototype.getattribute=function(a){return n.getattribute(this.el_,a)},a.prototype.setattribute=function(a,b){n.setattribute(this.el_,a,b)},a.prototype.removeattribute=function(a){n.removeattribute(this.el_,a)},a.prototype.width=function(a,b){return this.dimension("width",a,b)},a.prototype.height=function(a,b){return this.dimension("height",a,b)},a.prototype.dimensions=function(a,b){this.width(a,!0),this.height(b)},a.prototype.dimension=function(a,b,c){if(b!==undefined)return null!==b&&b===b||(b=0),-1!==(""+b).indexof("%")||-1!==(""+b).indexof("px")?this.el_.style[a]=b:this.el_.style[a]="auto"===b?"":b+"px",void(c||this.trigger("componentresize"));if(!this.el_)return 0;var d=this.el_.style[a],e=d.indexof("px");return-1!==e?parseint(d.slice(0,e),10):parseint(this.el_["offset"+(0,x["default"])(a)],10)},a.prototype.currentdimension=function(a){var b=0;if("width"!==a&&"height"!==a)throw new error("currentdimension only accepts width or height value");if("function"==typeof h["default"].getcomputedstyle){var c=h["default"].getcomputedstyle(this.el_);b=c.getpropertyvalue(a)||c[a]}if(0===(b=parsefloat(b))){var d="offset"+(0,x["default"])(a);b=this.el_[d]}return b},a.prototype.currentdimensions=function(){return{width:this.currentdimension("width"),height:this.currentdimension("height")}},a.prototype.currentwidth=function(){return this.currentdimension("width")},a.prototype.currentheight=function(){return this.currentdimension("height")},a.prototype.focus=function(){this.el_.focus()},a.prototype.blur=function(){this.el_.blur()},a.prototype.emittapevents=function(){var a=0,b=null,c=void 0;this.on("touchstart",function(d){1===d.touches.length&&(b={pagex:d.touches[0].pagex,pagey:d.touches[0].pagey},a=(new date).gettime(),c=!0)}),this.on("touchmove",function(a){if(a.touches.length>1)c=!1;else if(b){var d=a.touches[0].pagex-b.pagex,e=a.touches[0].pagey-b.pagey,f=math.sqrt(d*d+e*e);f>10&&(c=!1)}});var d=function(){c=!1};this.on("touchleave",d),this.on("touchcancel",d),this.on("touchend",function(d){if(b=null,!0===c){(new date).gettime()-a<200&&(d.preventdefault(),this.trigger("tap"))}})},a.prototype.enabletouchactivity=function(){if(this.player()&&this.player().reportuseractivity){var a=r.bind(this.player(),this.player().reportuseractivity),b=void 0;this.on("touchstart",function(){a(),this.clearinterval(b),b=this.setinterval(a,250)});var c=function(c){a(),this.clearinterval(b)};this.on("touchmove",a),this.on("touchend",c),this.on("touchcancel",c)}},a.prototype.settimeout=function(a,b){a=r.bind(this,a);var c=h["default"].settimeout(a,b),d=function(){this.cleartimeout(c)};return d.guid="vjs-timeout-"+c,this.on("dispose",d),c},a.prototype.cleartimeout=function(a){h["default"].cleartimeout(a);var b=function(){};return b.guid="vjs-timeout-"+a,this.off("dispose",b),a},a.prototype.setinterval=function(a,b){a=r.bind(this,a);var c=h["default"].setinterval(a,b),d=function(){this.clearinterval(c)};return d.guid="vjs-interval-"+c,this.on("dispose",d),c},a.prototype.clearinterval=function(a){h["default"].clearinterval(a);var b=function(){};return b.guid="vjs-interval-"+a,this.off("dispose",b),a},a.prototype.requestanimationframe=function(a){var b=this;if(this.supportsraf_){a=r.bind(this,a);var c=h["default"].requestanimationframe(a),d=function(){return b.cancelanimationframe(c)};return d.guid="vjs-raf-"+c,this.on("dispose",d),c}return this.settimeout(a,1e3/60)},a.prototype.cancelanimationframe=function(a){if(this.supportsraf_){h["default"].cancelanimationframe(a);var b=function(){};return b.guid="vjs-raf-"+a,this.off("dispose",b),a}return this.cleartimeout(a)},a.registercomponent=function(b,c){if("string"!=typeof b||!b)throw new error('illegal component name, "'+b+'"; must be a non-empty string.');var d=a.getcomponent("tech"),e=d&&d.istech(c),f=a===c||a.prototype.isprototypeof(c.prototype);if(e||!f){var g=void 0;throw g=e?"techs must be registered using tech.registertech()":"must be a component subclass",new error('illegal component, "'+b+'"; '+g+".")}b=(0,x["default"])(b),a.components_||(a.components_={});var h=a.getcomponent("player");if("player"===b&&h&&h.players){var i=h.players,j=object.keys(i);if(i&&j.length>0&&j.map(function(a){return i[a]}).every(boolean))throw new error("can not register player component after player has been created.")}return a.components_[b]=c,c},a.getcomponent=function(b){if(b)return b=(0,x["default"])(b),a.components_&&a.components_[b]?a.components_[b]:void 0},a}();a.prototype.supportsraf_="function"==typeof h["default"].requestanimationframe&&"function"==typeof h["default"].cancelanimationframe,a.registercomponent("component",a),c["default"]=a},{102:102,53:53,54:54,84:84,85:85,88:88,90:90,91:91,92:92,96:96}],6:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(38),i=d(h),j=a(5),k=d(j),l=a(7),m=d(l),n=function(a){function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return e(this,b),d.tracks=c.audiotracks(),f(this,a.call(this,c,d))}return g(b,a),b.prototype.buildcssclass=function(){return"vjs-audio-button "+a.prototype.buildcssclass.call(this)},b.prototype.buildwrappercssclass=function(){return"vjs-audio-button "+a.prototype.buildwrappercssclass.call(this)},b.prototype.createitems=function(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];this.hidethreshold_=1;for(var b=this.player_.audiotracks(),c=0;c'+this.localize("stream type")+""+this.localize("live")},{"aria-live":"off"}),b.appendchild(this.contentel_),b},b.prototype.updateshowing=function(a){this.player().duration()===infinity?this.show():this.hide()},b}(h["default"]);h["default"].registercomponent("livedisplay",k),c["default"]=k},{5:5,85:85}],11:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(2),i=d(h),j=a(5),k=d(j),l=a(85),m=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(l),n=a(39),o=d(n),p=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return(0,o["default"])(g,c),g.on(c,["loadstart","volumechange"],g.update),g}return g(b,a),b.prototype.buildcssclass=function(){return"vjs-mute-control "+a.prototype.buildcssclass.call(this)},b.prototype.handleclick=function(a){var b=this.player_.volume(),c=this.player_.lastvolume_();if(0===b){var d=c<.1?.1:c;this.player_.volume(d),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},b.prototype.update=function(a){this.updateicon_(),this.updatecontroltext_()},b.prototype.updateicon_=function(){var a=this.player_.volume(),b=3;0===a||this.player_.muted()?b=0:a<.33?b=1:a<.67&&(b=2);for(var c=0;c<4;c++)m.removeclass(this.el_,"vjs-vol-"+c);m.addclass(this.el_,"vjs-vol-"+b)},b.prototype.updatecontroltext_=function(){var a=this.player_.muted()||0===this.player_.volume(),b=a?"unmute":"mute";this.controltext()!==b&&this.controltext(b)},b}(i["default"]);p.prototype.controltext_="mute",k["default"].registercomponent("mutetoggle",p),c["default"]=p},{2:2,39:39,5:5,85:85}],12:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(2),i=d(h),j=a(5),k=d(j),l=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.on(c,"play",g.handleplay),g.on(c,"pause",g.handlepause),g.on(c,"ended",g.handleended),g}return g(b,a),b.prototype.buildcssclass=function(){return"vjs-play-control "+a.prototype.buildcssclass.call(this)},b.prototype.handleclick=function(a){this.player_.paused()?this.player_.play():this.player_.pause()},b.prototype.handleplay=function(a){this.removeclass("vjs-ended"),this.removeclass("vjs-paused"),this.addclass("vjs-playing"),this.controltext("pause")},b.prototype.handlepause=function(a){this.removeclass("vjs-playing"),this.addclass("vjs-paused"),this.controltext("play")},b.prototype.handleended=function(a){this.removeclass("vjs-playing"),this.addclass("vjs-ended"),this.controltext("replay")},b}(i["default"]);l.prototype.controltext_="play",k["default"].registercomponent("playtoggle",l),c["default"]=l},{2:2,5:5}],13:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(50),i=d(h),j=a(52),k=d(j),l=a(14),m=d(l),n=a(5),o=d(n),p=a(85),q=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(p),r=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.updatevisibility(),g.updatelabel(),g.on(c,"loadstart",g.updatevisibility),g.on(c,"ratechange",g.updatelabel),g}return g(b,a),b.prototype.createel=function(){var b=a.prototype.createel.call(this);return this.labelel_=q.createel("div",{classname:"vjs-playback-rate-value",innerhtml:1}),b.appendchild(this.labelel_),b},b.prototype.buildcssclass=function(){return"vjs-playback-rate "+a.prototype.buildcssclass.call(this)},b.prototype.buildwrappercssclass=function(){return"vjs-playback-rate "+a.prototype.buildwrappercssclass.call(this)},b.prototype.createmenu=function(){var a=new k["default"](this.player()),b=this.playbackrates();if(b)for(var c=b.length-1;c>=0;c--)a.addchild(new m["default"](this.player(),{rate:b[c]+"x"}));return a},b.prototype.updateariaattributes=function(){this.el().setattribute("aria-valuenow",this.player().playbackrate())},b.prototype.handleclick=function(a){for(var b=this.player().playbackrate(),c=this.playbackrates(),d=c[0],e=0;eb){d=c[e];break}this.player().playbackrate(d)},
b.prototype.playbackrates=function(){return this.options_.playbackrates||this.options_.playeroptions&&this.options_.playeroptions.playbackrates},b.prototype.playbackratesupported=function(){return this.player().tech_&&this.player().tech_.featuresplaybackrate&&this.playbackrates()&&this.playbackrates().length>0},b.prototype.updatevisibility=function(a){this.playbackratesupported()?this.removeclass("vjs-hidden"):this.addclass("vjs-hidden")},b.prototype.updatelabel=function(a){this.playbackratesupported()&&(this.labelel_.innerhtml=this.player().playbackrate()+"x")},b}(i["default"]);r.prototype.controltext_="playback rate",o["default"].registercomponent("playbackratemenubutton",r),c["default"]=r},{14:14,5:5,50:50,52:52,85:85}],14:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(51),i=d(h),j=a(5),k=d(j),l=function(a){function b(c,d){e(this,b);var g=d.rate,h=parsefloat(g,10);d.label=g,d.selected=1===h,d.selectable=!0;var i=f(this,a.call(this,c,d));return i.label=g,i.rate=h,i.on(c,"ratechange",i.update),i}return g(b,a),b.prototype.handleclick=function(b){a.prototype.handleclick.call(this),this.player().playbackrate(this.rate)},b.prototype.update=function(a){this.selected(this.player().playbackrate()===this.rate)},b}(i["default"]);l.prototype.contenteltype="button",k["default"].registercomponent("playbackratemenuitem",l),c["default"]=l},{5:5,51:51}],15:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function e(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var g=a(5),h=function(a){return a&&a.__esmodule?a:{"default":a}}(g),i=a(85),j=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(i),k=function(a){function b(c,f){d(this,b);var g=e(this,a.call(this,c,f));return g.partels_=[],g.on(c,"progress",g.update),g}return f(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:"vjs-load-progress",innerhtml:''+this.localize("loaded")+": 0%"})},b.prototype.update=function(a){var b=this.player_.buffered(),c=this.player_.duration(),d=this.player_.bufferedend(),e=this.partels_,f=function(a,b){var c=a/b||0;return 100*(c>=1?1:c)+"%"};this.el_.style.width=f(d,c);for(var g=0;gb.length;l--)this.el_.removechild(e[l-1]);e.length=b.length},b}(h["default"]);h["default"].registercomponent("loadprogressbar",k),c["default"]=k},{5:5,85:85}],16:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(5),i=d(h),j=a(88),k=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(j),l=a(89),m=d(l);a(20);var n=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.update=k.throttle(k.bind(g,g.update),25),g}return g(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:"vjs-mouse-display"})},b.prototype.update=function(a,b){var c=this;this.rafid_&&this.cancelanimationframe(this.rafid_),this.rafid_=this.requestanimationframe(function(){var d=c.player_.duration(),e=(0,m["default"])(b*d,d);c.el_.style.left=a.width*b+"px",c.getchild("timetooltip").update(a,b,e)})},b}(i["default"]);n.prototype.options_={children:["timetooltip"]},i["default"].registercomponent("mousetimedisplay",n),c["default"]=n},{20:20,5:5,88:88,89:89}],17:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(5),i=d(h),j=a(81),k=a(89),l=d(k);a(20);var m=function(a){function b(){return e(this,b),f(this,a.apply(this,arguments))}return g(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:"vjs-play-progress vjs-slider-bar",innerhtml:''+this.localize("progress")+": 0%"})},b.prototype.update=function(a,b){var c=this;this.rafid_&&this.cancelanimationframe(this.rafid_),this.rafid_=this.requestanimationframe(function(){var d=c.player_.scrubbing()?c.player_.getcache().currenttime:c.player_.currenttime(),e=(0,l["default"])(d,c.player_.duration()),f=c.getchild("timetooltip");f&&f.update(a,b,e)})},b}(i["default"]);m.prototype.options_={children:[]},j.ie_version&&!(j.ie_version>8)||j.is_ios||j.is_android||m.prototype.options_.children.push("timetooltip"),i["default"].registercomponent("playprogressbar",m),c["default"]=m},{20:20,5:5,81:81,89:89}],18:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function e(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var g=a(5),h=function(a){return a&&a.__esmodule?a:{"default":a}}(g),i=a(85),j=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(i),k=a(88);a(19);var l=function(a){function b(c,f){d(this,b);var g=e(this,a.call(this,c,f));return g.handlemousemove=(0,k.throttle)((0,k.bind)(g,g.handlemousemove),25),g.on(g.el_,"mousemove",g.handlemousemove),g.throttledhandlemouseseek=(0,k.throttle)((0,k.bind)(g,g.handlemouseseek),25),g.on(["mousedown","touchstart"],g.handlemousedown),g}return f(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:"vjs-progress-control vjs-control"})},b.prototype.handlemousemove=function(a){var b=this.getchild("seekbar"),c=b.getchild("mousetimedisplay"),d=b.el(),e=j.getboundingclientrect(d),f=j.getpointerposition(d,a).x;f>1?f=1:f<0&&(f=0),c&&c.update(e,f)},b.prototype.handlemouseseek=function(a){this.getchild("seekbar").handlemousemove(a)},b.prototype.handlemousedown=function(a){var b=this.el_.ownerdocument;this.on(b,"mousemove",this.throttledhandlemouseseek),this.on(b,"touchmove",this.throttledhandlemouseseek),this.on(b,"mouseup",this.handlemouseup),this.on(b,"touchend",this.handlemouseup)},b.prototype.handlemouseup=function(a){var b=this.el_.ownerdocument;this.off(b,"mousemove",this.throttledhandlemouseseek),this.off(b,"touchmove",this.throttledhandlemouseseek),this.off(b,"mouseup",this.handlemouseup),this.off(b,"touchend",this.handlemouseup)},b}(h["default"]);l.prototype.options_={children:["seekbar"]},h["default"].registercomponent("progresscontrol",l),c["default"]=l},{19:19,5:5,85:85,88:88}],19:[function(a,b,c){"use strict";function d(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esmodule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function g(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var i=a(60),j=e(i),k=a(5),l=e(k),m=a(81),n=a(85),o=d(n),p=a(88),q=d(p),r=a(89),s=e(r);a(15),a(17),a(16);var t=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.update=q.throttle(q.bind(e,e.update),50),e.on(c,["timeupdate","ended"],e.update),e}return h(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:"vjs-progress-holder"},{"aria-label":this.localize("progress bar")})},b.prototype.update=function(){var b=a.prototype.update.call(this),c=this.player_.duration(),d=this.player_.scrubbing()?this.player_.getcache().currenttime:this.player_.currenttime();return this.el_.setattribute("aria-valuenow",(100*b).tofixed(2)),this.el_.setattribute("aria-valuetext",this.localize("progress bar timing: currenttime={1} duration={2}",[(0,s["default"])(d,c),(0,s["default"])(c,c)],"{1} of {2}")),this.bar.update(o.getboundingclientrect(this.el_),b),b},b.prototype.getpercent=function(){var a=this.player_.scrubbing()?this.player_.getcache().currenttime:this.player_.currenttime(),b=a/this.player_.duration();return b>=1?1:b},b.prototype.handlemousedown=function(b){this.player_.scrubbing(!0),this.videowasplaying=!this.player_.paused(),this.player_.pause(),a.prototype.handlemousedown.call(this,b)},b.prototype.handlemousemove=function(a){var b=this.calculatedistance(a)*this.player_.duration();b===this.player_.duration()&&(b-=.1),this.player_.currenttime(b)},b.prototype.handlemouseup=function(b){a.prototype.handlemouseup.call(this,b),this.player_.scrubbing(!1),this.videowasplaying&&this.player_.play()},b.prototype.stepforward=function(){this.player_.currenttime(this.player_.currenttime()+5)},b.prototype.stepback=function(){this.player_.currenttime(this.player_.currenttime()-5)},b.prototype.handleaction=function(a){this.player_.paused()?this.player_.play():this.player_.pause()},b.prototype.handlekeypress=function(b){32===b.which||13===b.which?(b.preventdefault(),this.handleaction(b)):a.prototype.handlekeypress&&a.prototype.handlekeypress.call(this,b)},b}(j["default"]);t.prototype.options_={children:["loadprogressbar","playprogressbar"],barname:"playprogressbar"},m.ie_version&&!(m.ie_version>8)||m.is_ios||m.is_android||t.prototype.options_.children.splice(1,0,"mousetimedisplay"),t.prototype.playerevent="timeupdate",l["default"].registercomponent("seekbar",t),c["default"]=t},{15:15,16:16,17:17,5:5,60:60,81:81,85:85,88:88,89:89}],20:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function e(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var g=a(5),h=function(a){return a&&a.__esmodule?a:{"default":a}}(g),i=a(85),j=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(i),k=function(a){function b(){return d(this,b),e(this,a.apply(this,arguments))}return f(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:"vjs-time-tooltip"})},b.prototype.update=function(a,b,c){var d=j.getboundingclientrect(this.el_),e=j.getboundingclientrect(this.player_.el()),f=a.width*b;if(e&&d){var g=a.left-e.left+f,h=a.width-f+(e.right-a.right),i=d.width/2;gd.width&&(i=d.width),this.el_.style.right="-"+i+"px",j.textcontent(this.el_,c)}},b}(h["default"]);h["default"].registercomponent("timetooltip",k),c["default"]=k},{5:5,85:85}],21:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(22),i=d(h),j=a(5),k=d(j),l=function(a){function b(){return e(this,b),f(this,a.apply(this,arguments))}return g(b,a),b.prototype.buildcssclass=function(){return"vjs-custom-control-spacer "+a.prototype.buildcssclass.call(this)},b.prototype.createel=function(){var b=a.prototype.createel.call(this,{classname:this.buildcssclass()});return b.innerhtml=" ",b},b}(i["default"]);k["default"].registercomponent("customcontrolspacer",l),c["default"]=l},{22:22,5:5}],22:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function e(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var g=a(5),h=function(a){return a&&a.__esmodule?a:{"default":a}}(g),i=function(a){function b(){return d(this,b),e(this,a.apply(this,arguments))}return f(b,a),b.prototype.buildcssclass=function(){return"vjs-spacer "+a.prototype.buildcssclass.call(this)},b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:this.buildcssclass()})},b}(h["default"]);h["default"].registercomponent("spacer",i),c["default"]=i},{5:5}],23:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(33),i=d(h),j=a(5),k=d(j),l=function(a){function b(c,d){e(this,b),d.track={player:c,kind:d.kind,label:d.kind+" settings",selectable:!1,"default":!1,mode:"disabled"},d.selectable=!1,d.name="captionsettingsmenuitem";var g=f(this,a.call(this,c,d));return g.addclass("vjs-texttrack-settings"),g.controltext(", opens "+d.kind+" settings dialog"),g}return g(b,a),b.prototype.handleclick=function(a){this.player().getchild("texttracksettings").open()},b}(i["default"]);k["default"].registercomponent("captionsettingsmenuitem",l),c["default"]=l},{33:33,5:5}],24:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(32),i=d(h),j=a(5),k=d(j),l=a(23),m=d(l),n=function(a){function b(c,d,g){return e(this,b),f(this,a.call(this,c,d,g))}return g(b,a),b.prototype.buildcssclass=function(){return"vjs-captions-button "+a.prototype.buildcssclass.call(this)},b.prototype.buildwrappercssclass=function(){return"vjs-captions-button "+a.prototype.buildwrappercssclass.call(this)},b.prototype.createitems=function(){var b=[];return this.player().tech_&&this.player().tech_.featuresnativetexttracks||(b.push(new m["default"](this.player_,{kind:this.kind_})),this.hidethreshold_+=1),a.prototype.createitems.call(this,b)},b}(i["default"]);n.prototype.kind_="captions",n.prototype.controltext_="captions",k["default"].registercomponent("captionsbutton",n),c["default"]=n},{23:23,32:32,5:5}],25:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(32),i=d(h),j=a(5),k=d(j),l=a(26),m=d(l),n=a(96),o=d(n),p=function(a){function b(c,d,g){return e(this,b),f(this,a.call(this,c,d,g))}return g(b,a),b.prototype.buildcssclass=function(){return"vjs-chapters-button "+a.prototype.buildcssclass.call(this)},b.prototype.buildwrappercssclass=function(){return"vjs-chapters-button "+a.prototype.buildwrappercssclass.call(this)},b.prototype.update=function(b){this.track_&&(!b||"addtrack"!==b.type&&"removetrack"!==b.type)||this.settrack(this.findchapterstrack()),a.prototype.update.call(this)},b.prototype.settrack=function(a){if(this.track_!==a){if(this.updatehandler_||(this.updatehandler_=this.update.bind(this)),this.track_){var b=this.player_.remotetexttrackels().gettrackelementbytrack_(this.track_);b&&b.removeeventlistener("load",this.updatehandler_),this.track_=null}if(this.track_=a,this.track_){this.track_.mode="hidden";var c=this.player_.remotetexttrackels().gettrackelementbytrack_(this.track_);c&&c.addeventlistener("load",this.updatehandler_)}}},b.prototype.findchapterstrack=function(){for(var a=this.player_.texttracks()||[],b=a.length-1;b>=0;b--){var c=a[b];if(c.kind===this.kind_)return c}},b.prototype.getmenucaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize((0,o["default"])(this.kind_))},b.prototype.createmenu=function(){return this.options_.title=this.getmenucaption(),a.prototype.createmenu.call(this)},b.prototype.createitems=function(){var a=[];if(!this.track_)return a;var b=this.track_.cues;if(!b)return a;for(var c=0,d=b.length;c-1&&"showing"===f.mode){c=!1;break}}this.selected(c)},b}(i["default"]);k["default"].registercomponent("offtexttrackmenuitem",l),c["default"]=l},{33:33,5:5}],29:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(32),i=d(h),j=a(5),k=d(j),l=a(23),m=d(l),n=a(30),o=d(n),p=a(96),q=d(p),r=function(a){function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};e(this,b);var g=f(this,a.call(this,c,d));return g.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexof(g.player_.language_)>-1&&(g.label_="captions"),g.menubutton_.controltext((0,q["default"])(g.label_)),g}return g(b,a),b.prototype.buildcssclass=function(){return"vjs-subs-caps-button "+a.prototype.buildcssclass.call(this)},b.prototype.buildwrappercssclass=function(){return"vjs-subs-caps-button "+a.prototype.buildwrappercssclass.call(this)},b.prototype.createitems=function(){var b=[];return this.player().tech_&&this.player().tech_.featuresnativetexttracks||(b.push(new m["default"](this.player_,{kind:this.label_})),this.hidethreshold_+=1),b=a.prototype.createitems.call(this,b,o["default"])},b}(i["default"]);r.prototype.kinds_=["captions","subtitles"],r.prototype.controltext_="subtitles",k["default"].registercomponent("subscapsbutton",r),c["default"]=r},{23:23,30:30,32:32,5:5,96:96}],30:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(33),i=d(h),j=a(5),k=d(j),l=a(93),m=function(a){function b(){return e(this,b),f(this,a.apply(this,arguments))}return g(b,a),b.prototype.createel=function(b,c,d){var e='",a.prototype.createel.call(this,b,(0,l.assign)({innerhtml:e},c),d)},b}(i["default"]);k["default"].registercomponent("subscapsmenuitem",m),c["default"]=m},{33:33,5:5,93:93}],31:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(32),i=d(h),j=a(5),k=d(j),l=function(a){function b(c,d,g){return e(this,b),f(this,a.call(this,c,d,g))}return g(b,a),b.prototype.buildcssclass=function(){return"vjs-subtitles-button "+a.prototype.buildcssclass.call(this)},b.prototype.buildwrappercssclass=function(){return"vjs-subtitles-button "+a.prototype.buildwrappercssclass.call(this)},b}(i["default"]);l.prototype.kind_="subtitles",l.prototype.controltext_="subtitles",k["default"].registercomponent("subtitlesbutton",l),c["default"]=l},{32:32,5:5}],32:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(38),i=d(h),j=a(5),k=d(j),l=a(33),m=d(l),n=a(28),o=d(n),p=function(a){function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};e(this,b),d.tracks=c.texttracks();var g=f(this,a.call(this,c,d));return array.isarray(g.kinds_)||(g.kinds_=[g.kind_]),g}return g(b,a),b.prototype.createitems=function(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:m["default"],c=void 0;this.label_&&(c=this.label_+" off"),a.push(new o["default"](this.player_,{kinds:this.kinds_,kind:this.kind_,label:c})),this.hidethreshold_+=1;for(var d=this.player_.texttracks(),e=0;e-1){var g=new b(this.player_,{track:f,selectable:!0});g.addclass("vjs-"+f.kind+"-menu-item"),a.push(g)}}return a},b}(i["default"]);k["default"].registercomponent("texttrackbutton",p),c["default"]=p},{28:28,33:33,38:38,5:5}],33:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){
if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h="function"==typeof symbol&&"symbol"==typeof symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof symbol&&a.constructor===symbol&&a!==symbol.prototype?"symbol":typeof a},i=a(51),j=d(i),k=a(5),l=d(k),m=a(88),n=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(m),o=a(102),p=d(o),q=a(101),r=d(q),s=function(a){function b(c,d){e(this,b);var g=d.track,i=c.texttracks();d.label=g.label||g.language||"unknown",d.selected=g["default"]||"showing"===g.mode;var j=f(this,a.call(this,c,d));j.track=g;var k=n.bind(j,j.handletrackschange);if(c.on(["loadstart","texttrackchange"],k),i.addeventlistener("change",k),j.on("dispose",function(){i.removeeventlistener("change",k)}),i.onchange===undefined){var l=void 0;j.on(["tap","click"],function(){if("object"!==h(p["default"].event))try{l=new p["default"].event("change")}catch(a){}l||(l=r["default"].createevent("event"),l.initevent("change",!0,!0)),i.dispatchevent(l)})}return j}return g(b,a),b.prototype.handleclick=function(b){var c=this.track.kind,d=this.track.kinds,e=this.player_.texttracks();if(d||(d=[c]),a.prototype.handleclick.call(this,b),e)for(var f=0;f-1?g.mode="showing":g.mode="disabled"}},b.prototype.handletrackschange=function(a){this.selected("showing"===this.track.mode)},b}(j["default"]);l["default"].registercomponent("texttrackmenuitem",s),c["default"]=s},{101:101,102:102,5:5,51:51,88:88}],34:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(5),i=d(h),j=a(85),k=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(j),l=a(89),m=d(l),n=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.on(c,"timeupdate",g.updatecontent),g}return g(b,a),b.prototype.createel=function(){var b=a.prototype.createel.call(this,"div",{classname:"vjs-current-time vjs-time-control vjs-control"});return this.contentel_=k.createel("div",{classname:"vjs-current-time-display",innerhtml:'current time 0:00'},{"aria-live":"off"}),b.appendchild(this.contentel_),b},b.prototype.updatecontent=function(a){var b=this.player_.scrubbing()?this.player_.getcache().currenttime:this.player_.currenttime(),c=this.localize("current time"),d=(0,m["default"])(b,this.player_.duration());d!==this.formattedtime_&&(this.formattedtime_=d,this.contentel_.innerhtml=''+c+" "+d)},b}(i["default"]);i["default"].registercomponent("currenttimedisplay",n),c["default"]=n},{5:5,85:85,89:89}],35:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(5),i=d(h),j=a(85),k=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(j),l=a(89),m=d(l),n=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.on(c,"durationchange",g.updatecontent),g.on(c,"timeupdate",g.updatecontent),g.on(c,"loadedmetadata",g.updatecontent),g}return g(b,a),b.prototype.createel=function(){var b=a.prototype.createel.call(this,"div",{classname:"vjs-duration vjs-time-control vjs-control"});return this.contentel_=k.createel("div",{classname:"vjs-duration-display",innerhtml:''+this.localize("duration time")+" 0:00"},{"aria-live":"off"}),b.appendchild(this.contentel_),b},b.prototype.updatecontent=function(a){var b=this.player_.duration();if(b&&this.duration_!==b){this.duration_=b;var c=this.localize("duration time"),d=(0,m["default"])(b);this.contentel_.innerhtml=''+c+" "+d}},b}(i["default"]);i["default"].registercomponent("durationdisplay",n),c["default"]=n},{5:5,85:85,89:89}],36:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(5),i=d(h),j=a(85),k=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(j),l=a(89),m=d(l),n=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.on(c,"timeupdate",g.updatecontent),g.on(c,"durationchange",g.updatecontent),g}return g(b,a),b.prototype.createel=function(){var b=a.prototype.createel.call(this,"div",{classname:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentel_=k.createel("div",{classname:"vjs-remaining-time-display",innerhtml:''+this.localize("remaining time")+" -0:00"},{"aria-live":"off"}),b.appendchild(this.contentel_),b},b.prototype.updatecontent=function(a){if(this.player_.duration()){var b=this.localize("remaining time"),c=(0,m["default"])(this.player_.remainingtime());c!==this.formattedtime_&&(this.formattedtime_=c,this.contentel_.innerhtml=''+b+" -"+c)}},b}(i["default"]);i["default"].registercomponent("remainingtimedisplay",n),c["default"]=n},{5:5,85:85,89:89}],37:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function e(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var g=a(5),h=function(a){return a&&a.__esmodule?a:{"default":a}}(g),i=function(a){function b(){return d(this,b),e(this,a.apply(this,arguments))}return f(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:"vjs-time-control vjs-time-divider",innerhtml:"/
"})},b}(h["default"]);h["default"].registercomponent("timedivider",i),c["default"]=i},{5:5}],38:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(50),i=d(h),j=a(5),k=d(j),l=a(88),m=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(l),n=function(a){function b(c,d){e(this,b);var g=d.tracks,h=f(this,a.call(this,c,d));if(h.items.length<=1&&h.hide(),!g)return f(h);var i=m.bind(h,h.update);return g.addeventlistener("removetrack",i),g.addeventlistener("addtrack",i),h.player_.on("ready",i),h.player_.on("dispose",function(){g.removeeventlistener("removetrack",i),g.removeeventlistener("addtrack",i)}),h}return g(b,a),b}(i["default"]);k["default"].registercomponent("trackbutton",n),c["default"]=n},{5:5,50:50,88:88}],39:[function(a,b,c){"use strict";c.__esmodule=!0;var d=function(a,b){b.tech_&&!b.tech_.featuresvolumecontrol&&a.addclass("vjs-hidden"),a.on(b,"loadstart",function(){b.tech_.featuresvolumecontrol?a.removeclass("vjs-hidden"):a.addclass("vjs-hidden")})};c["default"]=d},{}],40:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(60),i=d(h),j=a(5),k=d(j);a(42);var l=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.on("slideractive",g.updatelastvolume_),g.on(c,"volumechange",g.updateariaattributes),c.ready(function(){return g.updateariaattributes()}),g}return g(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("volume level"),"aria-live":"polite"})},b.prototype.handlemousemove=function(a){this.checkmuted(),this.player_.volume(this.calculatedistance(a))},b.prototype.checkmuted=function(){this.player_.muted()&&this.player_.muted(!1)},b.prototype.getpercent=function(){return this.player_.muted()?0:this.player_.volume()},b.prototype.stepforward=function(){this.checkmuted(),this.player_.volume(this.player_.volume()+.1)},b.prototype.stepback=function(){this.checkmuted(),this.player_.volume(this.player_.volume()-.1)},b.prototype.updateariaattributes=function(a){var b=this.player_.muted()?0:this.volumeaspercentage_();this.el_.setattribute("aria-valuenow",b),this.el_.setattribute("aria-valuetext",b+"%")},b.prototype.volumeaspercentage_=function(){return math.round(100*this.player_.volume())},b.prototype.updatelastvolume_=function(){var a=this,b=this.player_.volume();this.one("sliderinactive",function(){0===a.player_.volume()&&a.player_.lastvolume_(b)})},b}(i["default"]);l.prototype.options_={children:["volumelevel"],barname:"volumelevel"},l.prototype.playerevent="volumechange",k["default"].registercomponent("volumebar",l),c["default"]=l},{42:42,5:5,60:60}],41:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(5),i=d(h),j=a(39),k=d(j),l=a(93),m=a(88);a(40);var n=function(a){function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};e(this,b),d.vertical=d.vertical||!1,("undefined"==typeof d.volumebar||(0,l.isplain)(d.volumebar))&&(d.volumebar=d.volumebar||{},d.volumebar.vertical=d.vertical);var g=f(this,a.call(this,c,d));return(0,k["default"])(g,c),g.throttledhandlemousemove=(0,m.throttle)((0,m.bind)(g,g.handlemousemove),25),g.on("mousedown",g.handlemousedown),g.on("touchstart",g.handlemousedown),g.on(g.volumebar,["focus","slideractive"],function(){g.volumebar.addclass("vjs-slider-active"),g.addclass("vjs-slider-active"),g.trigger("slideractive")}),g.on(g.volumebar,["blur","sliderinactive"],function(){g.volumebar.removeclass("vjs-slider-active"),g.removeclass("vjs-slider-active"),g.trigger("sliderinactive")}),g}return g(b,a),b.prototype.createel=function(){var b="vjs-volume-horizontal";return this.options_.vertical&&(b="vjs-volume-vertical"),a.prototype.createel.call(this,"div",{classname:"vjs-volume-control vjs-control "+b})},b.prototype.handlemousedown=function(a){var b=this.el_.ownerdocument;this.on(b,"mousemove",this.throttledhandlemousemove),this.on(b,"touchmove",this.throttledhandlemousemove),this.on(b,"mouseup",this.handlemouseup),this.on(b,"touchend",this.handlemouseup)},b.prototype.handlemouseup=function(a){var b=this.el_.ownerdocument;this.off(b,"mousemove",this.throttledhandlemousemove),this.off(b,"touchmove",this.throttledhandlemousemove),this.off(b,"mouseup",this.handlemouseup),this.off(b,"touchend",this.handlemouseup)},b.prototype.handlemousemove=function(a){this.volumebar.handlemousemove(a)},b}(i["default"]);n.prototype.options_={children:["volumebar"]},i["default"].registercomponent("volumecontrol",n),c["default"]=n},{39:39,40:40,5:5,88:88,93:93}],42:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function e(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var g=a(5),h=function(a){return a&&a.__esmodule?a:{"default":a}}(g),i=function(a){function b(){return d(this,b),e(this,a.apply(this,arguments))}return f(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:"vjs-volume-level",innerhtml:''})},b}(h["default"]);h["default"].registercomponent("volumelevel",i),c["default"]=i},{5:5}],43:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(5),i=d(h),j=a(39),k=d(j),l=a(93);a(41),a(11);var m=function(a){function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};e(this,b),"undefined"!=typeof d.inline?d.inline=d.inline:d.inline=!0,("undefined"==typeof d.volumecontrol||(0,l.isplain)(d.volumecontrol))&&(d.volumecontrol=d.volumecontrol||{},d.volumecontrol.vertical=!d.inline);var g=f(this,a.call(this,c,d));return(0,k["default"])(g,c),g.on(g.volumecontrol,["slideractive"],g.slideractive_),g.on(g.mutetoggle,"focus",g.slideractive_),g.on(g.volumecontrol,["sliderinactive"],g.sliderinactive_),g.on(g.mutetoggle,"blur",g.sliderinactive_),g}return g(b,a),b.prototype.slideractive_=function(){this.addclass("vjs-slider-active")},b.prototype.sliderinactive_=function(){this.removeclass("vjs-slider-active")},b.prototype.createel=function(){var b="vjs-volume-panel-horizontal";return this.options_.inline||(b="vjs-volume-panel-vertical"),a.prototype.createel.call(this,"div",{classname:"vjs-volume-panel vjs-control "+b})},b}(i["default"]);m.prototype.options_={children:["mutetoggle","volumecontrol"]},i["default"].registercomponent("volumepanel",m),c["default"]=m},{11:11,39:39,41:41,5:5,93:93}],44:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(5),i=d(h),j=a(55),k=d(j),l=a(92),m=d(l),n=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.on(c,"error",g.open),g}return g(b,a),b.prototype.buildcssclass=function(){return"vjs-error-display "+a.prototype.buildcssclass.call(this)},b.prototype.content=function(){var a=this.player().error();return a?this.localize(a.message):""},b}(k["default"]);n.prototype.options_=(0,m["default"])(k["default"].prototype.options_,{pauseonopen:!1,fillalways:!0,temporary:!1,uncloseable:!0}),i["default"].registercomponent("errordisplay",n),c["default"]=n},{5:5,55:55,92:92}],45:[function(a,b,c){"use strict";c.__esmodule=!0;var d=a(86),e=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(d),f=function(){};f.prototype.allowedevents_={},f.prototype.on=function(a,b){var c=this.addeventlistener;this.addeventlistener=function(){},e.on(this,a,b),this.addeventlistener=c},f.prototype.addeventlistener=f.prototype.on,f.prototype.off=function(a,b){e.off(this,a,b)},f.prototype.removeeventlistener=f.prototype.off,f.prototype.one=function(a,b){var c=this.addeventlistener;this.addeventlistener=function(){},e.one(this,a,b),this.addeventlistener=c},f.prototype.trigger=function(a){var b=a.type||a;"string"==typeof a&&(a={type:b}),a=e.fixevent(a),this.allowedevents_[b]&&this["on"+b]&&this["on"+b](a),e.trigger(this,a)},f.prototype.dispatchevent=f.prototype.trigger,c["default"]=f},{86:86}],46:[function(a,b,c){"use strict";c.__esmodule=!0;var d="function"==typeof symbol&&"symbol"==typeof symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof symbol&&a.constructor===symbol&&a!==symbol.prototype?"symbol":typeof a},e=function(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+(void 0===b?"undefined":d(b)));a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(a.super_=b)},f=function(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},c=function(){a.apply(this,arguments)},f={};"object"===(void 0===b?"undefined":d(b))?(b.constructor!==object.prototype.constructor&&(c=b.constructor),f=b):"function"==typeof b&&(c=b),e(c,a);for(var g in f)f.hasownproperty(g)&&(c.prototype[g]=f[g]);return c};c["default"]=f},{}],47:[function(a,b,c){"use strict";c.__esmodule=!0;for(var d=a(101),e=function(a){return a&&a.__esmodule?a:{"default":a}}(d),f={},g=[["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"]],h=g[0],i=void 0,j=0;j1&&arguments[1]!==undefined?arguments[1]:{};f(this,b);var e=g(this,a.call(this,c,d));e.menubutton_=new j["default"](c,d),e.menubutton_.controltext(e.controltext_),e.menubutton_.el_.setattribute("aria-haspopup","true");var h=j["default"].prototype.buildcssclass();return e.menubutton_.el_.classname=e.buildcssclass()+" "+h,e.menubutton_.removeclass("vjs-control"),e.addchild(e.menubutton_),e.update(),e.enabled_=!0,e.on(e.menubutton_,"tap",e.handleclick),e.on(e.menubutton_,"click",e.handleclick),e.on(e.menubutton_,"focus",e.handlefocus),e.on(e.menubutton_,"blur",e.handleblur),e.on("keydown",e.handlesubmenukeypress),e}return h(b,a),b.prototype.update=function(){var a=this.createmenu();this.menu&&this.removechild(this.menu),this.menu=a,this.addchild(a),this.buttonpressed_=!1,this.menubutton_.el_.setattribute("aria-expanded","false"),this.items&&this.items.length<=this.hidethreshold_?this.hide():this.show()},b.prototype.createmenu=function(){var a=new n["default"](this.player_,{menubutton:this});if(this.hidethreshold_=0,this.options_.title){var b=p.createel("li",{classname:"vjs-menu-title",innerhtml:(0,v["default"])(this.options_.title),tabindex:-1});this.hidethreshold_+=1,a.children_.unshift(b),p.prependto(b,a.contentel())}if(this.items=this.createitems(),this.items)for(var c=0;c1&&arguments[1]!==undefined?arguments[1]:this.menubutton_.el();return this.menubutton_.controltext(a,b)},b.prototype.handleclick=function(a){this.one(this.menu.contentel(),"mouseleave",r.bind(this,function(a){this.unpressbutton(),this.el_.blur()})),this.buttonpressed_?this.unpressbutton():this.pressbutton()},b.prototype.focus=function(){this.menubutton_.focus()},b.prototype.blur=function(){this.menubutton_.blur()},b.prototype.handlefocus=function(){t.on(x["default"],"keydown",r.bind(this,this.handlekeypress))},b.prototype.handleblur=function(){t.off(x["default"],"keydown",r.bind(this,this.handlekeypress))},b.prototype.handlekeypress=function(a){27===a.which||9===a.which?(this.buttonpressed_&&this.unpressbutton(),9!==a.which&&(a.preventdefault(),this.menubutton_.el_.focus())):38!==a.which&&40!==a.which||this.buttonpressed_||(this.pressbutton(),a.preventdefault())},b.prototype.handlesubmenukeypress=function(a){27!==a.which&&9!==a.which||(this.buttonpressed_&&this.unpressbutton(),9!==a.which&&(a.preventdefault(),this.menubutton_.el_.focus()))},b.prototype.pressbutton=function(){this.enabled_&&(this.buttonpressed_=!0,this.menu.lockshowing(),this.menubutton_.el_.setattribute("aria-expanded","true"),this.menu.focus())},b.prototype.unpressbutton=function(){this.enabled_&&(this.buttonpressed_=!1,this.menu.unlockshowing(),this.menubutton_.el_.setattribute("aria-expanded","false"))},b.prototype.disable=function(){this.unpressbutton(),this.enabled_=!1,this.addclass("vjs-disabled"),this.menubutton_.disable()},b.prototype.enable=function(){this.enabled_=!0,this.removeclass("vjs-disabled"),this.menubutton_.enable()},b}(l["default"]);l["default"].registercomponent("menubutton",y),c["default"]=y},{101:101,2:2,5:5,52:52,85:85,86:86,88:88,96:96}],51:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(3),i=d(h),j=a(5),k=d(j),l=a(93),m=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return g.selectable=d.selectable,g.selected(d.selected),g.selectable?g.el_.setattribute("role","menuitemcheckbox"):g.el_.setattribute("role","menuitem"),g}return g(b,a),b.prototype.createel=function(b,c,d){return this.noniconcontrol=!0,a.prototype.createel.call(this,"li",(0,l.assign)({classname:"vjs-menu-item",innerhtml:'",tabindex:-1},c),d)},b.prototype.handleclick=function(a){this.selected(!0)},b.prototype.selected=function(a){this.selectable&&(a?(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(" ")))},b}(i["default"]);k["default"].registercomponent("menuitem",m),c["default"]=m},{3:3,5:5,93:93}],52:[function(a,b,c){"use strict";function d(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(5),i=function(a){return a&&a.__esmodule?a:{"default":a}}(h),j=a(85),k=d(j),l=a(88),m=d(l),n=a(86),o=d(n),p=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return d&&(g.menubutton_=d.menubutton),g.focusedchild_=-1,g.on("keydown",g.handlekeypress),g}return g(b,a),b.prototype.additem=function(a){this.addchild(a),a.on("click",m.bind(this,function(b){this.menubutton_&&(this.menubutton_.unpressbutton(),"captionsettingsmenuitem"!==a.name()&&this.menubutton_.focus())}))},b.prototype.createel=function(){var b=this.options_.contenteltype||"ul";this.contentel_=k.createel(b,{classname:"vjs-menu-content"}),this.contentel_.setattribute("role","menu");var c=a.prototype.createel.call(this,"div",{append:this.contentel_,classname:"vjs-menu"});return c.appendchild(this.contentel_),o.on(c,"click",function(a){a.preventdefault(),a.stopimmediatepropagation()}),c},b.prototype.handlekeypress=function(a){37===a.which||40===a.which?(a.preventdefault(),this.stepforward()):38!==a.which&&39!==a.which||(a.preventdefault(),
this.stepback())},b.prototype.stepforward=function(){var a=0;this.focusedchild_!==undefined&&(a=this.focusedchild_+1),this.focus(a)},b.prototype.stepback=function(){var a=0;this.focusedchild_!==undefined&&(a=this.focusedchild_-1),this.focus(a)},b.prototype.focus=function(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0,b=this.children().slice();b.length&&b[0].classname&&/vjs-menu-title/.test(b[0].classname)&&b.shift(),b.length>0&&(a<0?a=0:a>=b.length&&(a=b.length-1),this.focusedchild_=a,b[a].el_.focus())},b}(i["default"]);i["default"].registercomponent("menu",p),c["default"]=p},{5:5,85:85,86:86,88:88}],53:[function(a,b,c){"use strict";function d(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},c=b.eventbuskey;if(c){if(!a[c].nodename)throw new error('the eventbuskey "'+c+'" does not refer to an element.');a.eventbusel_=a[c]}else a.eventbusel_=g.createel("span",{classname:"vjs-event-bus"});return m.assign(a,w),a.on("dispose",function(){return a.off()}),a}c.__esmodule=!0,c.isevented=undefined;var f=a(85),g=d(f),h=a(86),i=d(h),j=a(88),k=d(j),l=a(93),m=d(l),n=a(45),o=function(a){return a&&a.__esmodule?a:{"default":a}}(n),p=function(a){return a instanceof o["default"]||!!a.eventbusel_&&["on","one","off","trigger"].every(function(b){return"function"==typeof a[b]})},q=function(a){return"string"==typeof a&&/\s/.test(a)||array.isarray(a)&&!!a.length},r=function(a){if(!a.nodename&&!p(a))throw new error("invalid target; must be a dom node or evented object.")},s=function(a){if(!q(a))throw new error("invalid event type; must be a non-empty string or array.")},t=function(a){if("function"!=typeof a)throw new error("invalid listener; must be a function.")},u=function(a,b){var c=b.length<3||b[0]===a||b[0]===a.eventbusel_,d=void 0,e=void 0,f=void 0;return c?(d=a.eventbusel_,b.length>=3&&b.shift(),e=b[0],f=b[1]):(d=b[0],e=b[1],f=b[2]),r(d),s(e),t(f),f=k.bind(a,f),{istargetingself:c,target:d,type:e,listener:f}},v=function(a,b,c,d){r(a),a.nodename?i[b](a,c,d):a[b](c,d)},w={on:function(){for(var a=this,b=arguments.length,c=array(b),d=0;d=0&&(c.width=a),b>=0&&(c.height=b)))}var d=void 0,e=void 0,f=void 0,g=void 0;f=this.aspectratio_!==undefined&&"auto"!==this.aspectratio_?this.aspectratio_:this.videowidth()>0?this.videowidth()+":"+this.videoheight():"16:9";var h=f.split(":"),i=h[1]/h[0];d=this.width_!==undefined?this.width_:this.height_!==undefined?this.height_/i:this.videowidth()||300,e=this.height_!==undefined?this.height_:d*i,g=/^[^a-za-z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addclass(g),k.settextcontent(this.styleel_,"\n ."+g+" {\n width: "+d+"px;\n height: "+e+"px;\n }\n\n ."+g+".vjs-fluid {\n padding-top: "+100*i+"%;\n }\n ")},b.prototype.loadtech_=function(a,b){var c=this;this.tech_&&this.unloadtech_();var d=(0,g["default"])(a),e=a.charat(0).tolowercase()+a.slice(1);"html5"!==d&&this.tag&&(z["default"].gettech("html5").disposemediaelement(this.tag),this.tag.player=null,this.tag=null),this.techname_=d,this.isready_=!1;var f={source:b,nativecontrolsfortouch:this.options_.nativecontrolsfortouch,playerid:this.id(),techid:this.id()+"_"+d+"_api",autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerelingest:this.playerelingest_||!1,"vtt.js":this.options_["vtt.js"]};aa.all.names.foreach(function(a){var b=aa.all[a];f[b.gettername]=c[b.privatename]}),(0,r.assign)(f,this.options_[d]),(0,r.assign)(f,this.options_[e]),(0,r.assign)(f,this.options_[a.tolowercase()]),this.tag&&(f.tag=this.tag),b&&b.src===this.cache_.src&&this.cache_.currenttime>0&&(f.starttime=this.cache_.currenttime);var g=z["default"].gettech(a);if(!g)throw new error("no tech named '"+d+"' exists! '"+d+"' should be registered using videojs.registertech()'");this.tech_=new g(f),this.tech_.ready(y.bind(this,this.handletechready_),!0),v["default"].jsontotexttracks(this.texttracksjson_||[],this.tech_),da.foreach(function(a){c.on(c.tech_,a,c["handletech"+(0,g["default"])(a)+"_"])}),this.on(this.tech_,"loadstart",this.handletechloadstart_),this.on(this.tech_,"waiting",this.handletechwaiting_),this.on(this.tech_,"canplay",this.handletechcanplay_),this.on(this.tech_,"canplaythrough",this.handletechcanplaythrough_),this.on(this.tech_,"playing",this.handletechplaying_),this.on(this.tech_,"ended",this.handletechended_),this.on(this.tech_,"seeking",this.handletechseeking_),this.on(this.tech_,"seeked",this.handletechseeked_),this.on(this.tech_,"play",this.handletechplay_),this.on(this.tech_,"firstplay",this.handletechfirstplay_),this.on(this.tech_,"pause",this.handletechpause_),this.on(this.tech_,"durationchange",this.handletechdurationchange_),this.on(this.tech_,"fullscreenchange",this.handletechfullscreenchange_),this.on(this.tech_,"error",this.handletecherror_),this.on(this.tech_,"loadedmetadata",this.updatestyleel_),this.on(this.tech_,"posterchange",this.handletechposterchange_),this.on(this.tech_,"textdata",this.handletechtextdata_),this.usingnativecontrols(this.techget_("controls")),this.controls()&&!this.usingnativecontrols()&&this.addtechcontrolslisteners_(),this.tech_.el().parentnode===this.el()||"html5"===d&&this.tag||w.prependto(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},b.prototype.unloadtech_=function(){var a=this;aa.all.names.foreach(function(b){var c=aa.all[b];a[c.privatename]=a[c.gettername]()}),this.texttracksjson_=v["default"].texttrackstojson(this.tech_),this.isready_=!1,this.tech_.dispose(),this.tech_=!1},b.prototype.tech=function(a){return a===undefined&&e["default"].warn((0,q["default"])(i)),this.tech_},b.prototype.addtechcontrolslisteners_=function(){this.removetechcontrolslisteners_(),this.on(this.tech_,"mousedown",this.handletechclick_),this.on(this.tech_,"touchstart",this.handletechtouchstart_),this.on(this.tech_,"touchmove",this.handletechtouchmove_),this.on(this.tech_,"touchend",this.handletechtouchend_),this.on(this.tech_,"tap",this.handletechtap_)},b.prototype.removetechcontrolslisteners_=function(){this.off(this.tech_,"tap",this.handletechtap_),this.off(this.tech_,"touchstart",this.handletechtouchstart_),this.off(this.tech_,"touchmove",this.handletechtouchmove_),this.off(this.tech_,"touchend",this.handletechtouchend_),this.off(this.tech_,"mousedown",this.handletechclick_)},b.prototype.handletechready_=function(){if(this.triggerready(),this.cache_.volume&&this.techcall_("setvolume",this.cache_.volume),this.handletechposterchange_(),this.handletechdurationchange_(),(this.src()||this.currentsrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(a){(0,e["default"])("deleting tag.poster throws in some browsers",a)}this.play()}},b.prototype.handletechloadstart_=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"))},b.prototype.hasstarted=function(a){return a!==undefined?void(this.hasstarted_!==a&&(this.hasstarted_=a,a?(this.addclass("vjs-has-started"),this.trigger("firstplay")):this.removeclass("vjs-has-started"))):!!this.hasstarted_},b.prototype.handletechplay_=function(){this.removeclass("vjs-ended"),this.removeclass("vjs-paused"),this.addclass("vjs-playing"),this.hasstarted(!0),this.trigger("play")},b.prototype.handletechwaiting_=function(){var a=this;this.addclass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return a.removeclass("vjs-waiting")})},b.prototype.handletechcanplay_=function(){this.removeclass("vjs-waiting"),this.trigger("canplay")},b.prototype.handletechcanplaythrough_=function(){this.removeclass("vjs-waiting"),this.trigger("canplaythrough")},b.prototype.handletechplaying_=function(){this.removeclass("vjs-waiting"),this.trigger("playing")},b.prototype.handletechseeking_=function(){this.addclass("vjs-seeking"),this.trigger("seeking")},b.prototype.handletechseeked_=function(){this.removeclass("vjs-seeking"),this.trigger("seeked")},b.prototype.handletechfirstplay_=function(){this.options_.starttime&&(e["default"].warn("passing the `starttime` option to the player will be deprecated in 6.0"),this.currenttime(this.options_.starttime)),this.addclass("vjs-has-started"),this.trigger("firstplay")},b.prototype.handletechpause_=function(){this.removeclass("vjs-playing"),this.addclass("vjs-paused"),this.trigger("pause")},b.prototype.handletechended_=function(){this.addclass("vjs-ended"),this.options_.loop?(this.currenttime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},b.prototype.handletechdurationchange_=function(){this.duration(this.techget_("duration"))},b.prototype.handletechclick_=function(a){0===a.button&&this.controls()&&(this.paused()?this.play():this.pause())},b.prototype.handletechtap_=function(){this.useractive(!this.useractive())},b.prototype.handletechtouchstart_=function(){this.userwasactive=this.useractive()},b.prototype.handletechtouchmove_=function(){this.userwasactive&&this.reportuseractivity()},b.prototype.handletechtouchend_=function(a){a.preventdefault()},b.prototype.handlefullscreenchange_=function(){this.isfullscreen()?this.addclass("vjs-fullscreen"):this.removeclass("vjs-fullscreen")},b.prototype.handlestageclick_=function(){this.reportuseractivity()},b.prototype.handletechfullscreenchange_=function(a,b){b&&this.isfullscreen(b.isfullscreen),this.trigger("fullscreenchange")},b.prototype.handletecherror_=function(){var a=this.tech_.error();this.error(a)},b.prototype.handletechtextdata_=function(){var a=null;arguments.length>1&&(a=arguments[1]),this.trigger("textdata",a)},b.prototype.getcache=function(){return this.cache_},b.prototype.techcall_=function(a,b){this.ready(function(){if(a in _.allowedsetters)return _.set(this.middleware_,this.tech_,a,b);try{this.tech_&&this.tech_[a](b)}catch(c){throw(0,e["default"])(c),c}},!0)},b.prototype.techget_=function(a){if(this.tech_&&this.tech_.isready_){if(a in _.allowedgetters)return _.get(this.middleware_,this.tech_,a);try{return this.tech_[a]()}catch(b){throw this.tech_[a]===undefined?(0,e["default"])("video.js: "+a+" method not defined for "+this.techname_+" playback technology.",b):"typeerror"===b.name?((0,e["default"])("video.js: "+a+" unavailable on "+this.techname_+" playback technology element.",b),this.tech_.isready_=!1):(0,e["default"])(b),b}}},b.prototype.play=function(){if(this.changingsrc_)this.ready(function(){var a=this.techget_("play");a!==undefined&&"function"==typeof a.then&&a.then(null,function(a){})});else{if(this.isready_&&(this.src()||this.currentsrc()))return this.techget_("play");this.ready(function(){this.tech_.one("loadstart",function(){var a=this.play();a!==undefined&&"function"==typeof a.then&&a.then(null,function(a){})})})}},b.prototype.pause=function(){this.techcall_("pause")},b.prototype.paused=function(){return!1!==this.techget_("paused")},b.prototype.played=function(){return this.techget_("played")||(0,h.createtimerange)(0,0)},b.prototype.scrubbing=function(a){if(void 0===a)return this.scrubbing_;this.scrubbing_=!!a,a?this.addclass("vjs-scrubbing"):this.removeclass("vjs-scrubbing")},b.prototype.currenttime=function(a){return void 0!==a?void this.techcall_("setcurrenttime",a):(this.cache_.currenttime=this.techget_("currenttime")||0,this.cache_.currenttime)},b.prototype.duration=function(a){if(a===undefined)return this.cache_.duration||0;a=parsefloat(a)||0,a<0&&(a=infinity),a!==this.cache_.duration&&(this.cache_.duration=a,a===infinity?this.addclass("vjs-live"):this.removeclass("vjs-live"),this.trigger("durationchange"))},b.prototype.remainingtime=function(){return this.duration()-this.currenttime()},b.prototype.buffered=function(){var a=this.techget_("buffered");return a&&a.length||(a=(0,h.createtimerange)(0,0)),a},b.prototype.bufferedpercent=function(){return(0,i.bufferedpercent)(this.buffered(),this.duration())},b.prototype.bufferedend=function(){var a=this.buffered(),b=this.duration(),c=a.end(a.length-1);return c>b&&(c=b),c},b.prototype.volume=function(a){var b=void 0;return a!==undefined?(b=math.max(0,math.min(1,parsefloat(a))),this.cache_.volume=b,this.techcall_("setvolume",b),void(b>0&&this.lastvolume_(b))):(b=parsefloat(this.techget_("volume")),isnan(b)?1:b)},b.prototype.muted=function(a){return a!==undefined?void this.techcall_("setmuted",a):this.techget_("muted")||!1},b.prototype.defaultmuted=function(a){return a!==undefined?this.techcall_("setdefaultmuted",a):this.techget_("defaultmuted")||!1},b.prototype.lastvolume_=function(a){return a!==undefined&&0!==a?void(this.cache_.lastvolume=a):this.cache_.lastvolume},b.prototype.supportsfullscreen=function(){return this.techget_("supportsfullscreen")||!1},b.prototype.isfullscreen=function(a){return a!==undefined?void(this.isfullscreen_=!!a):!!this.isfullscreen_},b.prototype.requestfullscreen=function(){var a=m["default"];this.isfullscreen(!0),a.requestfullscreen?(u.on(m["default"],a.fullscreenchange,y.bind(this,function b(c){this.isfullscreen(m["default"][a.fullscreenelement]),!1===this.isfullscreen()&&u.off(m["default"],a.fullscreenchange,b),this.trigger("fullscreenchange")})),this.el_[a.requestfullscreen]()):this.tech_.supportsfullscreen()?this.techcall_("enterfullscreen"):(this.enterfullwindow(),this.trigger("fullscreenchange"))},b.prototype.exitfullscreen=function(){var a=m["default"];this.isfullscreen(!1),a.requestfullscreen?m["default"][a.exitfullscreen]():this.tech_.supportsfullscreen()?this.techcall_("exitfullscreen"):(this.exitfullwindow(),this.trigger("fullscreenchange"))},b.prototype.enterfullwindow=function(){this.isfullwindow=!0,this.docorigoverflow=m["default"].documentelement.style.overflow,u.on(m["default"],"keydown",y.bind(this,this.fullwindowonesckey)),m["default"].documentelement.style.overflow="hidden",w.addclass(m["default"].body,"vjs-full-window"),this.trigger("enterfullwindow")},b.prototype.fullwindowonesckey=function(a){27===a.keycode&&(!0===this.isfullscreen()?this.exitfullscreen():this.exitfullwindow())},b.prototype.exitfullwindow=function(){this.isfullwindow=!1,u.off(m["default"],"keydown",this.fullwindowonesckey),m["default"].documentelement.style.overflow=this.docorigoverflow,w.removeclass(m["default"].body,"vjs-full-window"),this.trigger("exitfullwindow")},b.prototype.canplaytype=function(a){for(var b=void 0,c=0,d=this.options_.techorder;c1?b.src(c.slice(1)):(b.settimeout(function(){this.error({code:4,message:this.localize(this.options_.notsupportedmessage)})},0),void b.triggerready());b.changingsrc_=!1,b.cache_.src=a.src,_.settech(d,b.tech_)})},b.prototype.src_=function(a){var b=this.selectsource([a]);return!b||(b.tech!==this.techname_?(this.changingsrc_=!0,this.loadtech_(b.tech,b.source),!1):(this.ready(function(){this.tech_.constructor.prototype.hasownproperty("setsource")?this.techcall_("setsource",a):this.techcall_("src",a.src),"auto"===this.options_.preload&&this.load(),this.options_.autoplay&&this.play()},!0),!1))},b.prototype.load=function(){this.techcall_("load")},b.prototype.reset=function(){this.loadtech_(this.options_.techorder[0],null),this.techcall_("reset")},b.prototype.currentsources=function(){var a=this.currentsource(),b=[];return 0!==object.keys(a).length&&b.push(a),this.cache_.sources||b},b.prototype.currentsource=function(){return this.cache_.source||{}},b.prototype.currentsrc=function(){return this.currentsource()&&this.currentsource().src||""},b.prototype.currenttype=function(){return this.currentsource()&&this.currentsource().type||""},b.prototype.preload=function(a){return a!==undefined?(this.techcall_("setpreload",a),void(this.options_.preload=a)):this.techget_("preload")},b.prototype.autoplay=function(a){return a!==undefined?(this.techcall_("setautoplay",a),void(this.options_.autoplay=a)):this.techget_("autoplay",a)},b.prototype.loop=function(a){return a!==undefined?(this.techcall_("setloop",a),void(this.options_.loop=a)):this.techget_("loop")},b.prototype.poster=function(a){if(a===undefined)return this.poster_;a||(a=""),this.poster_=a,this.techcall_("setposter",a),this.trigger("posterchange")},b.prototype.handletechposterchange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},b.prototype.controls=function(a){return a!==undefined?(a=!!a,void(this.controls_!==a&&(this.controls_=a,this.usingnativecontrols()&&this.techcall_("setcontrols",a),a?(this.removeclass("vjs-controls-disabled"),this.addclass("vjs-controls-enabled"),this.trigger("controlsenabled"),
this.usingnativecontrols()||this.addtechcontrolslisteners_()):(this.removeclass("vjs-controls-enabled"),this.addclass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingnativecontrols()||this.removetechcontrolslisteners_())))):!!this.controls_},b.prototype.usingnativecontrols=function(a){return a!==undefined?(a=!!a,void(this.usingnativecontrols_!==a&&(this.usingnativecontrols_=a,a?(this.addclass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeclass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))))):!!this.usingnativecontrols_},b.prototype.error=function(a){return a===undefined?this.error_||null:null===a?(this.error_=a,this.removeclass("vjs-error"),void(this.errordisplay&&this.errordisplay.close())):(this.error_=new o["default"](a),this.addclass("vjs-error"),e["default"].error("(code:"+this.error_.code+" "+o["default"].errortypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},b.prototype.reportuseractivity=function(a){this.useractivity_=!0},b.prototype.useractive=function(a){return a!==undefined?void((a=!!a)!==this.useractive_&&(this.useractive_=a,a?(this.useractivity_=!0,this.removeclass("vjs-user-inactive"),this.addclass("vjs-user-active"),this.trigger("useractive")):(this.useractivity_=!1,this.tech_&&this.tech_.one("mousemove",function(a){a.stoppropagation(),a.preventdefault()}),this.removeclass("vjs-user-active"),this.addclass("vjs-user-inactive"),this.trigger("userinactive")))):this.useractive_},b.prototype.listenforuseractivity_=function(){var a=void 0,b=void 0,c=void 0,d=y.bind(this,this.reportuseractivity),e=function(a){a.screenx===b&&a.screeny===c||(b=a.screenx,c=a.screeny,d())},f=function(){d(),this.clearinterval(a),a=this.setinterval(d,250)},g=function(b){d(),this.clearinterval(a)};this.on("mousedown",f),this.on("mousemove",e),this.on("mouseup",g),this.on("keydown",d),this.on("keyup",d);var h=void 0;this.setinterval(function(){if(this.useractivity_){this.useractivity_=!1,this.useractive(!0),this.cleartimeout(h);var a=this.options_.inactivitytimeout;a>0&&(h=this.settimeout(function(){this.useractivity_||this.useractive(!1)},a))}},250)},b.prototype.playbackrate=function(a){return a!==undefined?void this.techcall_("setplaybackrate",a):this.tech_&&this.tech_.featuresplaybackrate?this.techget_("playbackrate"):1},b.prototype.defaultplaybackrate=function(a){return a!==undefined?this.techcall_("setdefaultplaybackrate",a):this.tech_&&this.tech_.featuresplaybackrate?this.techget_("defaultplaybackrate"):1},b.prototype.isaudio=function(a){return a!==undefined?void(this.isaudio_=!!a):!!this.isaudio_},b.prototype.addtexttrack=function(a,b,c){if(this.tech_)return this.tech_.addtexttrack(a,b,c)},b.prototype.addremotetexttrack=function(a,b){if(this.tech_)return this.tech_.addremotetexttrack(a,b)},b.prototype.removeremotetexttrack=function(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},b=a.track,c=b===undefined?arguments[0]:b;if(this.tech_)return this.tech_.removeremotetexttrack(c)},b.prototype.videowidth=function(){return this.tech_&&this.tech_.videowidth&&this.tech_.videowidth()||0},b.prototype.videoheight=function(){return this.tech_&&this.tech_.videoheight&&this.tech_.videoheight()||0},b.prototype.language=function(a){if(a===undefined)return this.language_;this.language_=string(a).tolowercase()},b.prototype.languages=function(){return(0,t["default"])(b.prototype.options_.languages,this.languages_)},b.prototype.tojson=function(){var a=(0,t["default"])(this.options_),b=a.tracks;a.tracks=[];for(var c=0;c0&&arguments[0]!==undefined?arguments[0]:{};return a.name=this.name,a.plugin=this.constructor,a.instance=this,a},a.prototype.trigger=function(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return m.trigger(this.eventbusel_,a,this.geteventhash(b))},a.prototype.handlestatechanged=function(a){},a.prototype.dispose=function(){var a=this.name,b=this.player;this.trigger("dispose"),this.off(),b.off("dispose",this.dispose),b.activeplugins_[a]=!1,this.player=this.state=null,b[a]=y(a,t[a])},a.isbasic=function(b){var c="string"==typeof b?v(b):b;return"function"==typeof c&&!a.prototype.isprototypeof(c.prototype)},a.registerplugin=function(b,c){if("string"!=typeof b)throw new error('illegal plugin name, "'+b+'", must be a string, was '+(void 0===b?"undefined":g(b))+".");if(u(b))q["default"].warn('a plugin named "'+b+'" already exists. you may want to avoid re-registering plugins!');else if(s["default"].prototype.hasownproperty(b))throw new error('illegal plugin name, "'+b+'", cannot share a name with an existing player method!');if("function"!=typeof c)throw new error('illegal plugin for "'+b+'", must be a function, was '+(void 0===c?"undefined":g(c))+".");return t[b]=c,"plugin"!==b&&(a.isbasic(c)?s["default"].prototype[b]=x(b,c):s["default"].prototype[b]=y(b,c)),c},a.deregisterplugin=function(a){if("plugin"===a)throw new error("cannot de-register base plugin.");u(a)&&(delete t[a],delete s["default"].prototype[a])},a.getplugins=function(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:object.keys(t),b=void 0;return a.foreach(function(a){var c=v(a);c&&(b=b||{},b[a]=c)}),b},a.getpluginversion=function(a){var b=v(a);return b&&b.version||""},a}();z.getplugin=v,z.base_plugin_name="plugin",z.registerplugin("plugin",z),s["default"].prototype.usingplugin=function(a){return!!this.activeplugins_&&!0===this.activeplugins_[a]},s["default"].prototype.hasplugin=function(a){return!!u(a)},c["default"]=z},{53:53,54:54,56:56,86:86,88:88,91:91}],58:[function(a,b,c){"use strict";function d(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esmodule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function g(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var i=a(3),j=e(i),k=a(5),l=e(k),m=a(88),n=d(m),o=a(85),p=d(o),q=a(81),r=d(q),s=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.update(),c.on("posterchange",n.bind(e,e.update)),e}return h(b,a),b.prototype.dispose=function(){this.player().off("posterchange",this.update),a.prototype.dispose.call(this)},b.prototype.createel=function(){var a=p.createel("div",{classname:"vjs-poster",tabindex:-1});return r.background_size_supported||(this.fallbackimg_=p.createel("img"),a.appendchild(this.fallbackimg_)),a},b.prototype.update=function(a){var b=this.player().poster();this.setsrc(b),b?this.show():this.hide()},b.prototype.setsrc=function(a){if(this.fallbackimg_)this.fallbackimg_.src=a;else{var b="";a&&(b='url("'+a+'")'),this.el_.style.backgroundimage=b}},b.prototype.handleclick=function(a){this.player_.controls()&&(this.player_.paused()?this.player_.play():this.player_.pause())},b}(j["default"]);l["default"].registercomponent("posterimage",s),c["default"]=s},{3:3,5:5,81:81,85:85,88:88}],59:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){b&&(p=b),n["default"].settimeout(q,a)}c.__esmodule=!0,c.hasloaded=c.autosetuptimeout=c.autosetup=undefined;var g=a(85),h=e(g),i=a(86),j=e(i),k=a(101),l=d(k),m=a(102),n=d(m),o=!1,p=void 0,q=function(){if(h.isreal()){var a=l["default"].getelementsbytagname("video"),b=l["default"].getelementsbytagname("audio"),c=[];if(a&&a.length>0)for(var d=0,e=a.length;d0)for(var g=0,i=b.length;g0)for(var j=0,k=c.length;j1&&arguments[1]!==undefined?arguments[1]:{},d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return c.classname=c.classname+" vjs-slider",c=(0,k.assign)({tabindex:0},c),d=(0,k.assign)({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabindex:0},d),a.prototype.createel.call(this,b,c,d)},b.prototype.handlemousedown=function(a){var b=this.bar.el_.ownerdocument;a.preventdefault(),j.blocktextselection(),this.addclass("vjs-sliding"),this.trigger("slideractive"),this.on(b,"mousemove",this.handlemousemove),this.on(b,"mouseup",this.handlemouseup),this.on(b,"touchmove",this.handlemousemove),this.on(b,"touchend",this.handlemouseup),this.handlemousemove(a)},b.prototype.handlemousemove=function(a){},b.prototype.handlemouseup=function(){var a=this.bar.el_.ownerdocument;j.unblocktextselection(),this.removeclass("vjs-sliding"),this.trigger("sliderinactive"),this.off(a,"mousemove",this.handlemousemove),this.off(a,"mouseup",this.handlemouseup),this.off(a,"touchmove",this.handlemousemove),this.off(a,"touchend",this.handlemouseup),this.update()},b.prototype.update=function(){if(this.el_){var a=this.getpercent(),b=this.bar;if(b){("number"!=typeof a||a!==a||a<0||a===infinity)&&(a=0);var c=(100*a).tofixed(2)+"%",d=b.el().style;return this.vertical()?d.height=c:d.width=c,a}}},b.prototype.calculatedistance=function(a){var b=j.getpointerposition(this.el_,a);return this.vertical()?b.y:b.x},b.prototype.handlefocus=function(){this.on(this.bar.el_.ownerdocument,"keydown",this.handlekeypress)},b.prototype.handlekeypress=function(a){37===a.which||40===a.which?(a.preventdefault(),this.stepback()):38!==a.which&&39!==a.which||(a.preventdefault(),this.stepforward())},b.prototype.handleblur=function(){this.off(this.bar.el_.ownerdocument,"keydown",this.handlekeypress)},b.prototype.handleclick=function(a){a.stopimmediatepropagation(),a.preventdefault()},b.prototype.vertical=function(a){if(a===undefined)return this.vertical_||!1;this.vertical_=!!a,this.vertical_?this.addclass("vjs-slider-vertical"):this.addclass("vjs-slider-horizontal")},b}(h["default"]);h["default"].registercomponent("slider",l),c["default"]=l},{5:5,85:85,93:93}],61:[function(a,b,c){"use strict";function d(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esmodule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function g(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var i=function(a,b){return a.raw=b,a}(["text tracks are being loaded from another origin but the crossorigin attribute isn't used.\n this may prevent text tracks from loading."],["text tracks are being loaded from another origin but the crossorigin attribute isn't used.\n this may prevent text tracks from loading."]),j=a(64),k=e(j),l=a(85),m=d(l),n=a(97),o=d(n),p=a(91),q=e(p),r=a(107),s=e(r),t=a(81),u=d(t),v=a(101),w=e(v),x=a(102),y=e(x),z=a(93),a=a(92),b=e(a),c=a(96),d=e(c),e=a(77),f=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d)),h=c.source,j=!1;if(h&&(e.el_.currentsrc!==h.src||c.tag&&3===c.tag.initnetworkstate_)?e.setsource(h):e.handlelateinit_(e.el_),e.el_.haschildnodes()){for(var k=e.el_.childnodes,l=k.length,m=[];l--;){var n=k[l];"track"===n.nodename.tolowercase()&&(e.featuresnativetexttracks?(e.remotetexttrackels().addtrackelement_(n),e.remotetexttracks().addtrack(n.track),e.texttracks().addtrack(n.track),j||e.el_.hasattribute("crossorigin")||!o.iscrossorigin(n.src)||(j=!0)):m.push(n))}for(var p=0;p=0;g--){var h=f[g],i={};"undefined"!=typeof this.options_[h]&&(i[h]=this.options_[h]),m.setattributes(a,i)}return a},b.prototype.handlelateinit_=function(a){if(0!==a.networkstate&&3!==a.networkstate){if(0===a.readystate){var b=!1,c=function(){b=!0};this.on("loadstart",c);var d=function(){b||this.trigger("loadstart")};return this.on("loadedmetadata",d),void this.ready(function(){this.off("loadstart",c),this.off("loadedmetadata",d),b||this.trigger("loadstart")})}var e=["loadstart"];e.push("loadedmetadata"),a.readystate>=2&&e.push("loadeddata"),a.readystate>=3&&e.push("canplay"),a.readystate>=4&&e.push("canplaythrough"),this.ready(function(){e.foreach(function(a){this.trigger(a)},this)})}},b.prototype.setcurrenttime=function(a){try{this.el_.currenttime=a}catch(b){(0,q["default"])(b,"video is not ready. (video.js)")}},b.prototype.duration=function(){var a=this;if(this.el_.duration===infinity&&u.is_android&&u.is_chrome&&0===this.el_.currenttime){var b=function c(){a.el_.currenttime>0&&(a.el_.duration===infinity&&a.trigger("durationchange"),a.off("timeupdate",c))};return this.on("timeupdate",b),nan}return this.el_.duration||nan},b.prototype.width=function(){return this.el_.offsetwidth},b.prototype.height=function(){return this.el_.offsetheight},b.prototype.proxywebkitfullscreen_=function(){var a=this;if("webkitdisplayingfullscreen"in this.el_){var b=function(){this.trigger("fullscreenchange",{isfullscreen:!1})},c=function(){this.one("webkitendfullscreen",b),this.trigger("fullscreenchange",{isfullscreen:!0})};this.on("webkitbeginfullscreen",c),this.on("dispose",function(){a.off("webkitbeginfullscreen",c),a.off("webkitendfullscreen",b)})}},b.prototype.supportsfullscreen=function(){if("function"==typeof this.el_.webkitenterfullscreen){var a=y["default"].navigator&&y["default"].navigator.useragent||"";if(/android/.test(a)||!/chrome|mac os x 10.5/.test(a))return!0}return!1},b.prototype.enterfullscreen=function(){var a=this.el_;a.paused&&a.networkstate<=a.have_metadata?(this.el_.play(),this.settimeout(function(){a.pause(),a.webkitenterfullscreen()},0)):a.webkitenterfullscreen()},b.prototype.exitfullscreen=function(){this.el_.webkitexitfullscreen()},b.prototype.src=function(a){if(a===undefined)return this.el_.src;this.setsrc(a)},b.prototype.reset=function(){b.resetmediaelement(this.el_)},b.prototype.currentsrc=function(){return this.currentsource_?this.currentsource_.src:this.el_.currentsrc},b.prototype.setcontrols=function(a){this.el_.controls=!!a},b.prototype.addtexttrack=function(b,c,d){return this.featuresnativetexttracks?this.el_.addtexttrack(b,c,d):a.prototype.addtexttrack.call(this,b,c,d)},b.prototype.createremotetexttrack=function(b){if(!this.featuresnativetexttracks)return a.prototype.createremotetexttrack.call(this,b);var c=w["default"].createelement("track");return b.kind&&(c.kind=b.kind),b.label&&(c.label=b.label),(b.language||b.srclang)&&(c.srclang=b.language||b.srclang),b["default"]&&(c["default"]=b["default"]),b.id&&(c.id=b.id),b.src&&(c.src=b.src),c},b.prototype.addremotetexttrack=function(b,c){var d=a.prototype.addremotetexttrack.call(this,b,c);return this.featuresnativetexttracks&&this.el().appendchild(d),d},b.prototype.removeremotetexttrack=function(b){if(a.prototype.removeremotetexttrack.call(this,b),this.featuresnativetexttracks)for(var c=this.$$("track"),d=c.length;d--;)b!==c[d]&&b!==c[d].track||this.el().removechild(c[d])},b}(k["default"]);if(m.isreal()){f.test_vid=w["default"].createelement("video");var g=w["default"].createelement("track");g.kind="captions",g.srclang="en",g.label="english",f.test_vid.appendchild(g)}f.issupported=function(){try{f.test_vid.volume=.5}catch(a){return!1}return!(!f.test_vid||!f.test_vid.canplaytype)},f.canplaytype=function(a){return f.test_vid.canplaytype(a)},f.canplaysource=function(a,b){return f.canplaytype(a.type)},f.cancontrolvolume=function(){try{var a=f.test_vid.volume;return f.test_vid.volume=a/2+.1,a!==f.test_vid.volume}catch(b){return!1}},f.cancontrolplaybackrate=function(){if(u.is_android&&u.is_chrome)return!1;try{var a=f.test_vid.playbackrate;return f.test_vid.playbackrate=a/2+.1,a!==f.test_vid.playbackrate}catch(b){return!1}},f.supportsnativetexttracks=function(){return u.is_any_safari},f.supportsnativevideotracks=function(){return!(!f.test_vid||!f.test_vid.videotracks)},f.supportsnativeaudiotracks=function(){return!(!f.test_vid||!f.test_vid.audiotracks)},f.events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],f.prototype.featuresvolumecontrol=f.cancontrolvolume(),f.prototype.featuresplaybackrate=f.cancontrolplaybackrate(),f.prototype.movingmediaelementindom=!u.is_ios,f.prototype.featuresfullscreenresize=!0,f.prototype.featuresprogressevents=!0,f.prototype.featurestimeupdateevents=!0,f.prototype.featuresnativetexttracks=f.supportsnativetexttracks(),f.prototype.featuresnativevideotracks=f.supportsnativevideotracks(),f.prototype.featuresnativeaudiotracks=f.supportsnativeaudiotracks();var h=f.test_vid&&f.test_vid.constructor.prototype.canplaytype,i=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,j=/^video\/mp4/i;f.patchcanplaytype=function(){u.android_version>=4&&!u.is_firefox?f.test_vid.constructor.prototype.canplaytype=function(a){return a&&i.test(a)?"maybe":h.call(this,a)}:u.is_old_android&&(f.test_vid.constructor.prototype.canplaytype=function(a){return a&&j.test(a)?"maybe":h.call(this,a)})},f.unpatchcanplaytype=function(){var a=f.test_vid.constructor.prototype.canplaytype;return f.test_vid.constructor.prototype.canplaytype=h,a},f.patchcanplaytype(),f.disposemediaelement=function(a){if(a){for(a.parentnode&&a.parentnode.removechild(a);a.haschildnodes();)a.removechild(a.firstchild);a.removeattribute("src"),"function"==typeof a.load&&function(){try{a.load()}catch(b){}}()}},f.resetmediaelement=function(a){if(a){for(var b=a.queryselectorall("source"),c=b.length;c--;)a.removechild(b[c]);a.removeattribute("src"),"function"==typeof a.load&&function(){try{a.load()}catch(b){}}()}},["paused","currenttime","buffered","volume","muted","defaultmuted","poster","preload","autoplay","controls","loop","error","seeking","seekable","ended","defaultmuted","playbackrate","defaultplaybackrate","played","networkstate","readystate","videowidth","videoheight"].foreach(function(a){f.prototype[a]=function(){return this.el_[a]}}),["volume","muted","defaultmuted","src","poster","preload","autoplay","loop","playbackrate","defaultplaybackrate"].foreach(function(a){f.prototype["set"+(0,d["default"])(a)]=function(b){this.el_[a]=b}}),["pause","load","play"].foreach(function(a){f.prototype[a]=function(){return this.el_[a]()}}),k["default"].withsourcehandlers(f),f.nativesourcehandler={},f.nativesourcehandler.canplaytype=function(a){try{return f.test_vid.canplaytype(a)}catch(b){return""}},f.nativesourcehandler.canhandlesource=function(a,b){if(a.type)return f.nativesourcehandler.canplaytype(a.type);if(a.src){var c=o.getfileextension(a.src);return f.nativesourcehandler.canplaytype("video/"+c)}return""},f.nativesourcehandler.handlesource=function(a,b,c){b.setsrc(a.src)},f.nativesourcehandler.dispose=function(){},f.registersourcehandler(f.nativesourcehandler),k["default"].registertech("html5",f),c["default"]=f},{101:101,102:102,107:107,64:64,77:77,81:81,85:85,91:91,92:92,93:93,96:96,97:97}],62:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(5),i=d(h),j=a(64),k=d(j),l=a(96),m=d(l),n=a(92),o=d(n),p=function(a){function b(c,d,g){e(this,b);var h=(0,o["default"])({createel:!1},d),j=f(this,a.call(this,c,h,g));if(d.playeroptions.sources&&0!==d.playeroptions.sources.length)c.src(d.playeroptions.sources);else for(var l=0,n=d.playeroptions.techorder;l0&&arguments[0]!==undefined?arguments[0]:{},b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[],c=arguments[2],d=arguments[3],e=arguments.length>4&&arguments[4]!==undefined?arguments[4]:[],f=arguments.length>5&&arguments[5]!==undefined&&arguments[5],g=b[0],h=b.slice(1);if("string"==typeof g)k(a,m[g],c,d,e,f);else if(g){var i=g(d);i.setsource((0,l.assign)({},a),function(b,g){if(b)return k(a,h,c,d,e,f);e.push(i),k(g,a.type===g.type?h:m[g.type],c,d,e,f)})}else h.length?k(a,h,c,d,e,f):f?c(a,e):k(a,m["*"],c,d,e,!0)}c.__esmodule=!0,c.allowedsetters=c.allowedgetters=undefined,c.use=d,c.getmiddleware=e,c.setsource=f,c.settech=g,c.get=h,c.set=i;var l=a(93),m={};c.allowedgetters={buffered:1,currenttime:1,duration:1,seekable:1,played:1},c.allowedsetters={setcurrenttime:1}},{93:93}],64:[function(a,b,c){"use strict";function d(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esmodule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function g(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}function i(a,b,c,d){var e=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{},f=a.texttracks();e.kind=b,c&&(e.label=c),d&&(e.language=d),e.tech=a;var g=new b.all.text.trackclass(e);return f.addtrack(g),g}c.__esmodule=!0;var j=a(5),k=e(j),l=a(92),m=e(l),n=a(88),o=d(n),p=a(91),q=e(p),r=a(95),s=a(82),t=a(49),u=e(t),v=a(102),w=e(v),x=a(101),y=e(x),z=a(93),a=a(77),b=d(a),c=a(96),d=e(c),e=function(b){function c(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:function(){};f(this,c),a.reporttouchactivity=!1;var e=g(this,b.call(this,null,a,d));return e.hasstarted_=!1,e.on("playing",function(){this.hasstarted_=!0}),e.on("loadstart",function(){this.hasstarted_=!1}),b.all.names.foreach(function(b){var c=b.all[b];a&&a[c.gettername]&&(e[c.privatename]=a[c.gettername])}),e.featuresprogressevents||e.manualprogresson(),e.featurestimeupdateevents||e.manualtimeupdateson(),["text","audio","video"].foreach(function(b){!1===a["native"+b+"tracks"]&&(e["featuresnative"+b+"tracks"]=!1)}),!1===a.nativecaptions||!1===a.nativetexttracks?e.featuresnativetexttracks=!1:!0!==a.nativecaptions&&!0!==a.nativetexttracks||(e.featuresnativetexttracks=!0),e.featuresnativetexttracks||e.emulatetexttracks(),e.autoremotetexttracks_=new b.all.text.listclass,e.inittracklisteners(),a.nativecontrolsfortouch||e.emittapevents(),e.constructor&&(e.name_=e.constructor.name||"unknown tech"),e}return h(c,b),c.prototype.manualprogresson=function(){this.on("durationchange",this.ondurationchange),this.manualprogress=!0,this.one("ready",this.trackprogress)},c.prototype.manualprogressoff=function(){this.manualprogress=!1,
this.stoptrackingprogress(),this.off("durationchange",this.ondurationchange)},c.prototype.trackprogress=function(a){this.stoptrackingprogress(),this.progressinterval=this.setinterval(o.bind(this,function(){var a=this.bufferedpercent();this.bufferedpercent_!==a&&this.trigger("progress"),this.bufferedpercent_=a,1===a&&this.stoptrackingprogress()}),500)},c.prototype.ondurationchange=function(a){this.duration_=this.duration()},c.prototype.buffered=function(){return(0,r.createtimerange)(0,0)},c.prototype.bufferedpercent=function(){return(0,s.bufferedpercent)(this.buffered(),this.duration_)},c.prototype.stoptrackingprogress=function(){this.clearinterval(this.progressinterval)},c.prototype.manualtimeupdateson=function(){this.manualtimeupdates=!0,this.on("play",this.trackcurrenttime),this.on("pause",this.stoptrackingcurrenttime)},c.prototype.manualtimeupdatesoff=function(){this.manualtimeupdates=!1,this.stoptrackingcurrenttime(),this.off("play",this.trackcurrenttime),this.off("pause",this.stoptrackingcurrenttime)},c.prototype.trackcurrenttime=function(){this.currenttimeinterval&&this.stoptrackingcurrenttime(),this.currenttimeinterval=this.setinterval(function(){this.trigger({type:"timeupdate",target:this,manuallytriggered:!0})},250)},c.prototype.stoptrackingcurrenttime=function(){this.clearinterval(this.currenttimeinterval),this.trigger({type:"timeupdate",target:this,manuallytriggered:!0})},c.prototype.dispose=function(){this.cleartracks(b.normal.names),this.manualprogress&&this.manualprogressoff(),this.manualtimeupdates&&this.manualtimeupdatesoff(),b.prototype.dispose.call(this)},c.prototype.cleartracks=function(a){var b=this;a=[].concat(a),a.foreach(function(a){for(var c=b[a+"tracks"]()||[],d=c.length;d--;){var e=c[d];"text"===a&&b.removeremotetexttrack(e),c.removetrack(e)}})},c.prototype.cleanupautotexttracks=function(){for(var a=this.autoremotetexttracks_||[],b=a.length;b--;){var c=a[b];this.removeremotetexttrack(c)}},c.prototype.reset=function(){},c.prototype.error=function(a){return a!==undefined&&(this.error_=new u["default"](a),this.trigger("error")),this.error_},c.prototype.played=function(){return this.hasstarted_?(0,r.createtimerange)(0,0):(0,r.createtimerange)()},c.prototype.setcurrenttime=function(){this.manualtimeupdates&&this.trigger({type:"timeupdate",target:this,manuallytriggered:!0})},c.prototype.inittracklisteners=function(){var a=this;b.normal.names.foreach(function(b){var c=b.normal[b],d=function(){a.trigger(b+"trackchange")},e=a[c.gettername]();e.addeventlistener("removetrack",d),e.addeventlistener("addtrack",d),a.on("dispose",function(){e.removeeventlistener("removetrack",d),e.removeeventlistener("addtrack",d)})})},c.prototype.addwebvttscript_=function(){var b=this;if(!w["default"].webvtt)if(y["default"].body.contains(this.el())){var c=a(108);if(!this.options_["vtt.js"]&&(0,z.isplain)(c)&&object.keys(c).length>0)return void this.trigger("vttjsloaded");var d=y["default"].createelement("script");d.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.3/vtt.min.js",d.onload=function(){b.trigger("vttjsloaded")},d.onerror=function(){b.trigger("vttjserror")},this.on("dispose",function(){d.onload=null,d.onerror=null}),w["default"].webvtt=!0,this.el().parentnode.appendchild(d)}else this.ready(this.addwebvttscript_)},c.prototype.emulatetexttracks=function(){var a=this,b=this.texttracks(),c=this.remotetexttracks(),d=function(a){return b.addtrack(a.track)},e=function(a){return b.removetrack(a.track)};c.on("addtrack",d),c.on("removetrack",e),this.addwebvttscript_();var f=function(){return a.trigger("texttrackchange")},g=function(){f();for(var a=0;a0&&arguments[0]!==undefined?arguments[0]:{},b=arguments[1],c=this.createremotetexttrack(a);return!0!==b&&!1!==b&&(q["default"].warn('calling addremotetexttrack without explicitly setting the "manualcleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),b=!0),this.remotetexttrackels().addtrackelement_(c),this.remotetexttracks().addtrack(c.track),!0!==b&&this.autoremotetexttracks_.addtrack(c.track),c},c.prototype.removeremotetexttrack=function(a){var b=this.remotetexttrackels().gettrackelementbytrack_(a);this.remotetexttrackels().removetrackelement_(b),this.remotetexttracks().removetrack(a),this.autoremotetexttracks_.removetrack(a)},c.prototype.setposter=function(){},c.prototype.canplaytype=function(){return""},c.canplaytype=function(){return""},c.canplaysource=function(a,b){return c.canplaytype(a.type)},c.istech=function(a){return a.prototype instanceof c||a instanceof c||a===c},c.registertech=function(a,b){if(c.techs_||(c.techs_={}),!c.istech(b))throw new error("tech "+a+" must be a tech");if(!c.canplaytype)throw new error("techs must have a static canplaytype method on them");if(!c.canplaysource)throw new error("techs must have a static canplaysource method on them");return a=(0,d["default"])(a),c.techs_[a]=b,"tech"!==a&&c.defaulttechorder_.push(a),b},c.gettech=function(a){if(a)return a=(0,d["default"])(a),c.techs_&&c.techs_[a]?c.techs_[a]:w["default"]&&w["default"].videojs&&w["default"].videojs[a]?(q["default"].warn("the "+a+" tech was added to the videojs object when it should be registered using videojs.registertech(name, tech)"),w["default"].videojs[a]):void 0},c}(k["default"]);b.all.names.foreach(function(a){var b=b.all[a];e.prototype[b.gettername]=function(){return this[b.privatename]=this[b.privatename]||new b.listclass,this[b.privatename]}}),e.prototype.featuresvolumecontrol=!0,e.prototype.featuresfullscreenresize=!1,e.prototype.featuresplaybackrate=!1,e.prototype.featuresprogressevents=!1,e.prototype.featurestimeupdateevents=!1,e.prototype.featuresnativetexttracks=!1,e.withsourcehandlers=function(a){a.registersourcehandler=function(b,c){var d=a.sourcehandlers;d||(d=a.sourcehandlers=[]),c===undefined&&(c=d.length),d.splice(c,0,b)},a.canplaytype=function(b){for(var c=a.sourcehandlers||[],d=void 0,e=0;e0&&arguments[0]!==undefined?arguments[0]:[];e(this,b);for(var h=void 0,j=g.length-1;j>=0;j--)if(g[j].enabled){n(g,g[j]);break}if(k.is_ie8){h=m["default"].createelement("custom");for(var l in i["default"].prototype)"constructor"!==l&&(h[l]=i["default"].prototype[l]);for(var o in b.prototype)"constructor"!==o&&(h[o]=b.prototype[o])}return h=c=f(this,a.call(this,g,h)),h.changing_=!1,d=h,f(c,d)}return g(b,a),b.prototype.addtrack=function(b){var c=this;b.enabled&&n(this,b),a.prototype.addtrack.call(this,b),b.addeventlistener&&b.addeventlistener("enabledchange",function(){c.changing_||(c.changing_=!0,n(c,b),c.changing_=!1,c.trigger("change"))})},b}(i["default"]);c["default"]=o},{101:101,76:76,81:81}],66:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(75),i=a(78),j=d(i),k=a(92),l=d(k),m=a(81),n=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(m),o=function(a){function b(){var c,d,g=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};e(this,b);var i=(0,l["default"])(g,{kind:h.audiotrackkind[g.kind]||""}),j=c=f(this,a.call(this,i)),k=!1;if(n.is_ie8)for(var m in b.prototype)"constructor"!==m&&(j[m]=b.prototype[m]);return object.defineproperty(j,"enabled",{get:function(){return k},set:function(a){"boolean"==typeof a&&a!==k&&(k=a,this.trigger("enabledchange"))}}),i.enabled&&(j.enabled=i.enabled),j.loaded_=!0,d=j,f(c,d)}return g(b,a),b}(j["default"]);c["default"]=o},{75:75,78:78,81:81,92:92}],67:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}c.__esmodule=!0;var e=a(81),f=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(e),g=a(101),h=function(a){return a&&a.__esmodule?a:{"default":a}}(g),i=function(){function a(){var b=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];d(this,a);var c=this;if(f.is_ie8){c=h["default"].createelement("custom");for(var e in a.prototype)"constructor"!==e&&(c[e]=a.prototype[e])}c.trackelements_=[],object.defineproperty(c,"length",{get:function(){return this.trackelements_.length}});for(var g=0,i=b.length;g0&&arguments[0]!==undefined?arguments[0]:{};e(this,b);var d=f(this,a.call(this)),g=void 0,h=d;if(i.is_ie8){h=k["default"].createelement("custom");for(var j in b.prototype)"constructor"!==j&&(h[j]=b.prototype[j])}var l=new o["default"](c);if(h.kind=l.kind,h.src=l.src,h.srclang=l.language,h.label=l.label,h["default"]=l["default"],object.defineproperty(h,"readystate",{get:function(){return g}}),object.defineproperty(h,"track",{get:function(){return l}}),g=p,l.addeventlistener("loadeddata",function(){g=q,h.trigger({type:"load",target:h})}),i.is_ie8){var m;return m=h,f(d,m)}return d}return g(b,a),b}(m["default"]);r.prototype.allowedevents_={load:"load"},r.none=p,r.loading=1,r.loaded=q,r.error=3,c["default"]=r},{101:101,45:45,74:74,81:81}],69:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}c.__esmodule=!0;var e=a(81),f=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(e),g=a(101),h=function(a){return a&&a.__esmodule?a:{"default":a}}(g),i=function(){function a(b){d(this,a);var c=this;if(f.is_ie8){c=h["default"].createelement("custom");for(var e in a.prototype)"constructor"!==e&&(c[e]=a.prototype[e])}if(a.prototype.setcues_.call(c,b),object.defineproperty(c,"length",{get:function(){return this.length_}}),f.is_ie8)return c}return a.prototype.setcues_=function(a){var b=this.length||0,c=0,d=a.length;this.cues_=a,this.length_=a.length;var e=function(a){""+a in this||object.defineproperty(this,""+a,{get:function(){return this.cues_[a]}})};if(b0&&arguments[0]!==undefined?arguments[0]:[];f(this,b);var h=void 0;if(n.is_ie8){h=p["default"].createelement("custom");for(var i in j["default"].prototype)"constructor"!==i&&(h[i]=j["default"].prototype[i]);for(var k in b.prototype)"constructor"!==k&&(h[k]=b.prototype[k])}return h=c=g(this,a.call(this,e,h)),d=h,g(c,d)}return h(b,a),b.prototype.addtrack=function(b){a.prototype.addtrack.call(this,b),b.addeventlistener("modechange",l.bind(this,function(){this.trigger("change")}))},b}(j["default"]);c["default"]=q},{101:101,76:76,81:81,88:88}],73:[function(a,b,c){"use strict";function d(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esmodule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function g(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}function i(a,b){if(b&&(a=b(a)),a&&"none"!==a)return a}function j(a,b){return i(a.options[a.options.selectedindex].value,b)}function k(a,b,c){if(b)for(var d=0;d select",id:"captions-background-color-%s",label:"color",options:[a,g,f,d,b,h,e,c]},backgroundopacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"transparency",options:[i,j,k]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"color",options:[g,a,f,d,b,h,e,c]},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(a){return"1.00"===a?null:number(a)}},textopacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"transparency",options:[i,j]},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:[k,j,i]}};l.windowcolor.options=l.backgroundcolor.options;var m=function(a){function b(c,d){f(this,b),d.temporary=!1;var e=g(this,a.call(this,c,d));return e.updatedisplay=v.bind(e,e.updatedisplay),e.fill(),e.hasbeenopened_=e.hasbeenfilled_=!0,e.enddialog=(0,t.createel)("p",{classname:"vjs-control-text",textcontent:e.localize("end of dialog window.")}),e.el().appendchild(e.enddialog),e.setdefaults(),d.persisttexttracksettings===undefined&&(e.options_.persisttexttracksettings=e.options_.playeroptions.persisttexttracksettings),e.on(e.$(".vjs-done-button"),"click",function(){e.savesettings(),e.close()}),e.on(e.$(".vjs-default-button"),"click",function(){e.setdefaults(),e.updatedisplay()}),x.each(l,function(a){e.on(e.$(a.selector),"change",e.updatedisplay)}),e.options_.persisttexttracksettings&&e.restoresettings(),e}return h(b,a),b.prototype.createelselect_=function(a){var b=this,c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"",d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"label",e=l[a],f=e.id.replace("%s",this.id_);return[(0,t.createel)(d,{id:f,classname:"label"===d?"vjs-label":"",textcontent:this.localize(e.label)},{}),(0,t.createel)("select",{},{"aria-labelledby":c+" "+f},e.options.map(function(a){var d=f+"-"+a[1];return(0,t.createel)("option",{id:d,textcontent:b.localize(a[1]),value:a[0]},{"aria-labelledby":c+" "+f+" "+d})}))]},b.prototype.createelfgcolor_=function(){var a=(0,t.createel)("legend",{id:"captions-text-legend-"+this.id_,textcontent:this.localize("text")}),b=this.createelselect_("color",a.id),c=(0,t.createel)("span",{classname:"vjs-text-opacity vjs-opacity"},undefined,this.createelselect_("textopacity",a.id));return(0,t.createel)("fieldset",{classname:"vjs-fg-color vjs-track-setting"},undefined,[a].concat(b,c))},b.prototype.createelbgcolor_=function(){var a=(0,t.createel)("legend",{id:"captions-background-"+this.id_,textcontent:this.localize("background")}),b=this.createelselect_("backgroundcolor",a.id),c=(0,t.createel)("span",{classname:"vjs-bg-opacity vjs-opacity"},undefined,this.createelselect_("backgroundopacity",a.id));return(0,t.createel)("fieldset",{classname:"vjs-bg-color vjs-track-setting"},undefined,[a].concat(b,c))},b.prototype.createelwincolor_=function(){var a=(0,t.createel)("legend",{id:"captions-window-"+this.id_,textcontent:this.localize("window")}),b=this.createelselect_("windowcolor",a.id),c=(0,t.createel)("span",{classname:"vjs-window-opacity vjs-opacity"},undefined,this.createelselect_("windowopacity",a.id));return(0,t.createel)("fieldset",{classname:"vjs-window-color vjs-track-setting"},undefined,[a].concat(b,c))},b.prototype.createelcolors_=function(){return(0,t.createel)("div",{classname:"vjs-track-settings-colors"},undefined,[this.createelfgcolor_(),this.createelbgcolor_(),this.createelwincolor_()])},b.prototype.createelfont_=function(){var a=(0,t.createel)("fieldset",{classname:"vjs-font-percent vjs-track-setting"},undefined,this.createelselect_("fontpercent","","legend")),b=(0,t.createel)("fieldset",{classname:"vjs-edge-style vjs-track-setting"},undefined,this.createelselect_("edgestyle","","legend")),c=(0,t.createel)("fieldset",{classname:"vjs-font-family vjs-track-setting"},undefined,this.createelselect_("fontfamily","","legend"));return(0,t.createel)("div",{classname:"vjs-track-settings-font"},undefined,[a,b,c])},b.prototype.createelcontrols_=function(){var a=this.localize("restore all settings to the default values"),b=(0,t.createel)("button",{classname:"vjs-default-button",title:a,innerhtml:this.localize("reset")+" "+a+""}),c=(0,t.createel)("button",{classname:"vjs-done-button",textcontent:this.localize("done")});return(0,t.createel)("div",{classname:"vjs-track-settings-controls"},undefined,[b,c])},b.prototype.createel=function(){return a.prototype.createel.call(this)},b.prototype.content=function(){return[this.createelcolors_(),this.createelfont_(),this.createelcontrols_()]},b.prototype.label=function(){return this.localize("caption settings dialog")},b.prototype.description=function(){return this.localize("beginning of dialog window. escape will cancel and close the window.")},b.prototype.buildcssclass=function(){return a.prototype.buildcssclass.call(this)+" vjs-text-track-settings"},b.prototype.getvalues=function(){var a=this;return x.reduce(l,function(b,c,d){var e=j(a.$(c.selector),c.parser);return e!==undefined&&(b[d]=e),b},{})},b.prototype.setvalues=function(a){var b=this;x.each(l,function(c,d){k(b.$(c.selector),a[d],c.parser)})},b.prototype.setdefaults=function(){var a=this;x.each(l,function(b){var c=b.hasownproperty("default")?b["default"]:0;a.$(b.selector).selectedindex=c})},b.prototype.restoresettings=function(){var a=void 0;try{a=json.parse(m["default"].localstorage.getitem("vjs-text-track-settings"))}catch(b){z["default"].warn(b)}a&&this.setvalues(a)},b.prototype.savesettings=function(){if(this.options_.persisttexttracksettings){var a=this.getvalues();try{object.keys(a).length?m["default"].localstorage.setitem("vjs-text-track-settings",json.stringify(a)):m["default"].localstorage.removeitem("vjs-text-track-settings")}catch(b){z["default"].warn(b)}}},b.prototype.updatedisplay=function(){var a=this.player_.getchild("texttrackdisplay");a&&a.updatedisplay()},b.prototype.conditionalblur_=function(){this.previouslyactiveel_=null,this.off(o["default"],"keydown",this.handlekeydown);var a=this.player_.controlbar,b=a&&a.subscapsbutton,c=a&&a.captionsbutton;b?b.focus():c&&c.focus()},b}(s["default"]);q["default"].registercomponent("texttracksettings",m),c["default"]=m},{101:101,102:102,5:5,55:55,85:85,88:88,91:91,93:93}],74:[function(a,b,c){"use strict";function d(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esmodule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function g(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0
;var i=a(69),j=e(i),k=a(88),l=d(k),m=a(75),n=a(91),o=e(n),p=a(102),q=e(p),r=a(78),s=e(r),t=a(97),u=a(114),v=e(u),w=a(92),x=e(w),y=a(81),z=d(y),a=function(a,b){var c=new q["default"].webvtt.parser(q["default"],q["default"].vttjs,q["default"].webvtt.stringdecoder()),d=[];c.oncue=function(a){b.addcue(a)},c.onparsingerror=function(a){d.push(a)},c.onflush=function(){b.trigger({type:"loadeddata",target:b})},c.parse(a),d.length>0&&(q["default"].console&&q["default"].console.groupcollapsed&&q["default"].console.groupcollapsed("text track parsing errors for "+b.src),d.foreach(function(a){return o["default"].error(a)}),q["default"].console&&q["default"].console.groupend&&q["default"].console.groupend()),c.flush()},b=function(a,b){var c={uri:a},d=(0,t.iscrossorigin)(a);d&&(c.cors=d),(0,v["default"])(c,l.bind(this,function(a,c,d){if(a)return o["default"].error(a,c);if(b.loaded_=!0,"function"!=typeof q["default"].webvtt){if(b.tech_){var e=function(){return a(d,b)};b.tech_.on("vttjsloaded",e),b.tech_.on("vttjserror",function(){o["default"].error("vttjs failed to load, stopping trying to process "+b.src),b.tech_.off("vttjsloaded",e)})}}else a(d,b)}))},c=function(a){function b(){var c,d,e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(f(this,b),!e.tech)throw new error("a tech was not provided.");var h=(0,x["default"])(e,{kind:m.texttrackkind[e.kind]||"subtitles",language:e.language||e.srclang||""}),i=m.texttrackmode[h.mode]||"disabled",k=h["default"];"metadata"!==h.kind&&"chapters"!==h.kind||(i="hidden");var n=c=g(this,a.call(this,h));if(n.tech_=h.tech,z.is_ie8)for(var o in b.prototype)"constructor"!==o&&(n[o]=b.prototype[o]);n.cues_=[],n.activecues_=[];var p=new j["default"](n.cues_),q=new j["default"](n.activecues_),r=!1,s=l.bind(n,function(){this.activecues,r&&(this.trigger("cuechange"),r=!1)});return"disabled"!==i&&n.tech_.ready(function(){n.tech_.on("timeupdate",s)},!0),object.defineproperty(n,"default",{get:function(){return k},set:function(){}}),object.defineproperty(n,"mode",{get:function(){return i},set:function(a){var b=this;m.texttrackmode[a]&&(i=a,"showing"===i&&this.tech_.ready(function(){b.tech_.on("timeupdate",s)},!0),this.trigger("modechange"))}}),object.defineproperty(n,"cues",{get:function(){return this.loaded_?p:null},set:function(){}}),object.defineproperty(n,"activecues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return q;for(var a=this.tech_.currenttime(),b=[],c=0,d=this.cues.length;c=a?b.push(e):e.starttime===e.endtime&&e.starttime<=a&&e.starttime+.5>=a&&b.push(e)}if(r=!1,b.length!==this.activecues_.length)r=!0;else for(var f=0;f0&&arguments[0]!==undefined?arguments[0]:[],g=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;e(this,b);var h=f(this,a.call(this));if(!g&&(g=h,k.is_ie8)){g=m["default"].createelement("custom");for(var i in b.prototype)"constructor"!==i&&(g[i]=b.prototype[i])}g.tracks_=[],object.defineproperty(g,"length",{get:function(){return this.tracks_.length}});for(var j=0;j0&&arguments[0]!==undefined?arguments[0]:{};f(this,b);var e=g(this,a.call(this)),h=e;if(j.is_ie8){h=l["default"].createelement("custom");for(var i in b.prototype)"constructor"!==i&&(h[i]=b.prototype[i])}var k={id:d.id||"vjs_track_"+n.newguid(),kind:d.kind||"",label:d.label||"",language:d.language||""};for(var m in k)!function(a){object.defineproperty(h,a,{get:function(){return k[a]},set:function(){}})}(m);return c=h,g(e,c)}return h(b,a),b}(p["default"]);c["default"]=q},{101:101,45:45,81:81,90:90}],79:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}function f(a,b){if(!a)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new typeerror("super expression must either be null or a function, not "+typeof b);a.prototype=object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(object.setprototypeof?object.setprototypeof(a,b):a.__proto__=b)}c.__esmodule=!0;var h=a(76),i=d(h),j=a(81),k=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(j),l=a(101),m=d(l),n=function(a,b){for(var c=0;c0&&arguments[0]!==undefined?arguments[0]:[];e(this,b);for(var h=void 0,j=g.length-1;j>=0;j--)if(g[j].selected){n(g,g[j]);break}if(k.is_ie8){h=m["default"].createelement("custom");for(var l in i["default"].prototype)"constructor"!==l&&(h[l]=i["default"].prototype[l]);for(var o in b.prototype)"constructor"!==o&&(h[o]=b.prototype[o])}return h=c=f(this,a.call(this,g,h)),h.changing_=!1,object.defineproperty(h,"selectedindex",{get:function(){for(var a=0;a0&&arguments[0]!==undefined?arguments[0]:{};e(this,b);var i=(0,l["default"])(g,{kind:h.videotrackkind[g.kind]||""}),j=c=f(this,a.call(this,i)),k=!1;if(n.is_ie8)for(var m in b.prototype)"constructor"!==m&&(j[m]=b.prototype[m]);return object.defineproperty(j,"selected",{get:function(){return k},set:function(a){"boolean"==typeof a&&a!==k&&(k=a,this.trigger("selectedchange"))}}),i.selected&&(j.selected=i.selected),d=j,f(c,d)}return g(b,a),b}(j["default"]);c["default"]=o},{75:75,78:78,81:81,92:92}],81:[function(a,b,c){"use strict";c.__esmodule=!0,c.background_size_supported=c.touch_enabled=c.is_any_safari=c.is_safari=c.ie_version=c.is_ie8=c.is_chrome=c.is_edge=c.is_firefox=c.is_native_android=c.is_old_android=c.android_version=c.is_android=c.ios_version=c.is_ios=c.is_ipod=c.is_iphone=c.is_ipad=undefined;var d=a(85),e=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(d),f=a(102),g=function(a){return a&&a.__esmodule?a:{"default":a}}(f),h=g["default"].navigator&&g["default"].navigator.useragent||"",i=/applewebkit\/([\d.]+)/i.exec(h),j=i?parsefloat(i.pop()):null,k=c.is_ipad=/ipad/i.test(h),l=c.is_iphone=/iphone/i.test(h)&&!k,m=c.is_ipod=/ipod/i.test(h),n=c.is_ios=l||k||m,o=(c.ios_version=function(){var a=h.match(/os (\d+)_/i);return a&&a[1]?a[1]:null}(),c.is_android=/android/i.test(h)),p=c.android_version=function(){var a=h.match(/android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!a)return null;var b=a[1]&&parsefloat(a[1]),c=a[2]&&parsefloat(a[2]);return b&&c?parsefloat(a[1]+"."+a[2]):b||null}(),q=(c.is_old_android=o&&/webkit/i.test(h)&&p<2.3,c.is_native_android=o&&p<5&&j<537,c.is_firefox=/firefox/i.test(h),c.is_edge=/edge/i.test(h)),r=c.is_chrome=!q&&/chrome/i.test(h),s=(c.is_ie8=/msie\s8\.0/.test(h),c.ie_version=function(a){return a&&parsefloat(a[1])}(/msie\s(\d+)\.\d/.exec(h)),c.is_safari=/safari/i.test(h)&&!r&&!o&&!q);c.is_any_safari=s||n,c.touch_enabled=e.isreal()&&("ontouchstart"in g["default"]||g["default"].documenttouch&&g["default"].document instanceof g["default"].documenttouch),c.background_size_supported=e.isreal()&&"backgroundsize"in g["default"].document.createelement("video").style},{102:102,85:85}],82:[function(a,b,c){"use strict";function d(a,b){var c=0,d=void 0,f=void 0;if(!b)return 0;a&&a.length||(a=(0,e.createtimerange)(0,0));for(var g=0;gb&&(f=b),c+=f-d;return c/b}c.__esmodule=!0,c.bufferedpercent=d;var e=a(95)},{95:95}],83:[function(a,b,c){"use strict";function d(a,b){if(!a||!b)return"";if("function"==typeof f["default"].getcomputedstyle){var c=f["default"].getcomputedstyle(a);return c?c[b]:""}return a.currentstyle[b]||""}c.__esmodule=!0,c["default"]=d;var e=a(102),f=function(a){return a&&a.__esmodule?a:{"default":a}}(e)},{102:102}],84:[function(a,b,c){"use strict";function d(a){var b=a[j];return b||(b=a[j]=h.newguid()),i[b]||(i[b]={}),i[b]}function e(a){var b=a[j];return!!b&&!!object.getownpropertynames(i[b]).length}function f(a){var b=a[j];if(b){delete i[b];try{delete a[j]}catch(c){a.removeattribute?a.removeattribute(j):a[j]=null}}}c.__esmodule=!0,c.getdata=d,c.hasdata=e,c.removedata=f;var g=a(90),h=function(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}(g),i={},j="vdata"+(new date).gettime()},{90:90}],85:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a){return"string"==typeof a&&/\s/.test(a)}function f(a){if(/\s/.test(a))throw new error("class has illegal whitespace characters")}function g(a){return new regexp("(^|\\s)"+a+"($|\\s)")}function h(){return i["default"]===k["default"].document&&"undefined"!=typeof i["default"].createelement}function i(a){return(0,p.isobject)(a)&&1===a.nodetype}function j(a){return function(b,c){if(!e(b))return i["default"][a](null);e(c)&&(c=i["default"].queryselector(c));var d=i(c)?c:i["default"];return d[a]&&d[a](b)}}function k(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"div",b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},d=arguments[3],e=i["default"].createelement(a);return object.getownpropertynames(b).foreach(function(a){var c=b[a];-1!==a.indexof("aria-")||"role"===a||"type"===a?(m["default"].warn((0,o["default"])(g,a,c)),e.setattribute(a,c)):"textcontent"===a?l(e,c):e[a]=c}),object.getownpropertynames(c).foreach(function(a){e.setattribute(a,c[a])}),d&&e(e,d),e}function l(a,b){return"undefined"==typeof a.textcontent?a.innertext=b:a.textcontent=b,a}function m(a,b){b.firstchild?b.insertbefore(a,b.firstchild):b.appendchild(a)}function n(a,b){return f(b),a.classlist?a.classlist.contains(b):g(b).test(a.classname)}function o(a,b){return a.classlist?a.classlist.add(b):n(a,b)||(a.classname=(a.classname+" "+b).trim()),a}function p(a,b){return a.classlist?a.classlist.remove(b):(f(b),a.classname=a.classname.split(/\s+/).filter(function(a){return a!==b}).join(" ")),a}function q(a,b,c){var d=n(a,b);if("function"==typeof c&&(c=c(a,b)),"boolean"!=typeof c&&(c=!d),c!==d)return c?o(a,b):p(a,b),a}function r(a,b){object.getownpropertynames(b).foreach(function(c){var d=b[c];null===d||void 0===d||!1===d?a.removeattribute(c):a.setattribute(c,!0===d?"":d)})}function s(a){var b={};if(a&&a.attributes&&a.attributes.length>0)for(var c=a.attributes,d=c.length-1;d>=0;d--){var e=c[d].name,f=c[d].value;"boolean"!=typeof a[e]&&-1===",autoplay,controls,loop,muted,default,".indexof(","+e+",")||(f=null!==f),b[e]=f}return b}function t(a,b){return a.getattribute(b)}function u(a,b,c){a.setattribute(b,c)}function v(a,b){a.removeattribute(b)}function w(){i["default"].body.focus(),i["default"].onselectstart=function(){return!1}}function x(){i["default"].onselectstart=function(){return!0}}function y(a){if(a&&a.getboundingclientrect&&a.parentnode){var b=a.getboundingclientrect(),c={};return["bottom","height","left","right","top","width"].foreach(function(a){b[a]!==undefined&&(c[a]=b[a])}),c.height||(c.height=parsefloat((0,r["default"])(a,"height"))),c.width||(c.width=parsefloat((0,r["default"])(a,"width"))),c}}function z(a){var b=void 0;if(a.getboundingclientrect&&a.parentnode&&(b=a.getboundingclientrect()),!b)return{left:0,top:0};var c=i["default"].documentelement,d=i["default"].body,e=c.clientleft||d.clientleft||0,f=k["default"].pagexoffset||d.scrollleft,g=b.left+f-e,h=c.clienttop||d.clienttop||0,i=k["default"].pageyoffset||d.scrolltop,j=b.top+i-h;return{left:math.round(g),top:math.round(j)}}function a(a,b){var c={},d=z(a),e=a.offsetwidth,f=a.offsetheight,g=d.top,h=d.left,i=b.pagey,j=b.pagex;return b.changedtouches&&(j=b.changedtouches[0].pagex,i=b.changedtouches[0].pagey),c.y=math.max(0,math.min(1,(g-i+f)/f)),c.x=math.max(0,math.min(1,(j-h)/e)),c}function b(a){return(0,p.isobject)(a)&&3===a.nodetype}function c(a){for(;a.firstchild;)a.removechild(a.firstchild);return a}function d(a){return"function"==typeof a&&(a=a()),(array.isarray(a)?a:[a]).map(function(a){return"function"==typeof a&&(a=a()),i(a)||b(a)?a:"string"==typeof a&&/\s/.test(a)?i["default"].createtextnode(a):void 0}).filter(function(a){return a})}function e(a,b){return d(b).foreach(function(b){return a.appendchild(b)}),a}function f(a,b){return e(c(a),b)}c.__esmodule=!0,c.$$=c.$=undefined;var g=function(a,b){return a.raw=b,a}(["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 ","."],["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 ","."]);c.isreal=h,c.isel=i,c.createel=k,c.textcontent=l,c.prependto=m,c.hasclass=n,c.addclass=o,c.removeclass=p,c.toggleclass=q,c.setattributes=r,c.getattributes=s,c.getattribute=t,c.setattribute=u,c.removeattribute=v,c.blocktextselection=w,c.unblocktextselection=x,c.getboundingclientrect=y,c.findposition=z,c.getpointerposition=a,c.istextnode=b,c.emptyel=c,c.normalizecontent=d,c.appendcontent=e,c.insertcontent=f;var h=a(101),i=d(h),j=a(102),k=d(j),l=a(91),m=d(l),n=a(107),o=d(n),p=a(93),q=a(83),r=d(q);c.$=j("queryselector"),c.$$=j("queryselectorall")},{101:101,102:102,107:107,83:83,91:91,93:93}],86:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){var c=n.getdata(a);0===c.handlers[b].length&&(delete c.handlers[b],a.removeeventlistener?a.removeeventlistener(b,c.dispatcher,!1):a.detachevent&&a.detachevent("on"+b,c.dispatcher)),object.getownpropertynames(c.handlers).length<=0&&(delete c.handlers,delete c.dispatcher,delete c.disabled),0===object.getownpropertynames(c).length&&n.removedata(a)}function g(a,b,c,d){c.foreach(function(c){a(b,c,d)})}function h(a){function b(){return!0}function c(){return!1}if(!a||!a.ispropagationstopped){var d=a||t["default"].event;a={};for(var e in d)"layerx"!==e&&"layery"!==e&&"keylocation"!==e&&"webkitmovementx"!==e&&"webkitmovementy"!==e&&("returnvalue"===e&&d.preventdefault||(a[e]=d[e]));if(a.target||(a.target=a.srcelement||v["default"]),a.relatedtarget||(a.relatedtarget=a.fromelement===a.target?a.toelement:a.fromelement),a.preventdefault=function(){d.preventdefault&&d.preventdefault(),a.returnvalue=!1,d.returnvalue=!1,a.defaultprevented=!0},a.defaultprevented=!1,a.stoppropagation=function(){d.stoppropagation&&d.stoppropagation(),a.cancelbubble=!0,d.cancelbubble=!0,a.ispropagationstopped=b},a.ispropagationstopped=c,a.stopimmediatepropagation=function(){d.stopimmediatepropagation&&d.stopimmediatepropagation(),a.isimmediatepropagationstopped=b,a.stoppropagation()},a.isimmediatepropagationstopped=c,null!==a.clientx&&a.clientx!==undefined){var f=v["default"].documentelement,g=v["default"].body;a.pagex=a.clientx+(f&&f.scrollleft||g&&g.scrollleft||0)-(f&&f.clientleft||g&&g.clientleft||0),a.pagey=a.clienty+(f&&f.scrolltop||g&&g.scrolltop||0)-(f&&f.clienttop||g&&g.clienttop||0)}a.which=a.charcode||a.keycode,null!==a.button&&a.button!==undefined&&(a.button=1&a.button?0:4&a.button?1:2&a.button?2:0)}return a}function i(a,b,c){if(array.isarray(b))return g(i,a,b,c);var d=n.getdata(a);d.handlers||(d.handlers={}),d.handlers[b]||(d.handlers[b]=[]),c.guid||(c.guid=p.newguid()),d.handlers[b].push(c),d.dispatcher||(d.disabled=!1,d.dispatcher=function(b,c){if(!d.disabled){b=h(b);var e=d.handlers[b.type];if(e)for(var f=e.slice(0),g=0,i=f.length;g=b&&(a.apply(undefined,arguments),c=d)}}},{90:90}],89:[function(a,b,c){"use strict";function d(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:a;a=a<0?0:a;var c=math.floor(a%60),d=math.floor(a/60%60),e=math.floor(a/3600),f=math.floor(b/60%60),g=math.floor(b/3600);return(isnan(a)||a===infinity)&&(e=d=c="-"),e=e>0||g>0?e+":":"",d=((e||f>=10)&&d<10?"0"+d:d)+":",c=c<10?"0"+c:c,e+d+c}c.__esmodule=!0,c["default"]=d},{}],90:[function(a,b,c){"use strict";function d(){return e++}c.__esmodule=!0,c.newguid=d;var e=1},{}],91:[function(a,b,c){"use strict";c.__esmodule=!0,c.logbytype=undefined;var d=a(102),e=function(a){return a&&a.__esmodule?a:{"default":a}}(d),f=a(81),g=a(93),h=void 0,i="all",j=[],k=c.logbytype=function(a,b){var c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!!f.ie_version&&f.ie_version<11,d=h.levels[i],k=new regexp("^("+d+")$");"log"!==a&&b.unshift(a.touppercase()+":"),j&&j.push([].concat(b)),b.unshift("videojs:");var l=e["default"].console&&e["default"].console[a];l&&d&&k.test(a)&&(c&&(b=b.map(function(a){if((0,g.isobject)(a)||array.isarray(a))try{return json.stringify(a)}catch(b){return string(a)}return string(a)}).join(" ")),l.apply?l[array.isarray(b)?"apply":"call"](e["default"].console,b):l(b))};h=function(){for(var a=arguments.length,b=array(a),c=0;c2&&arguments[2]!==undefined?arguments[2]:0;return k(a).reduce(function(c,d){return b(c,a[d],d)},c)}function f(a){for(var b=arguments.length,c=array(b>1?b-1:0),e=1;ec)throw new error("failed to execute '"+a+"' on 'timeranges': the index provided ("+b+") is non-numeric or out of bounds (0-"+c+").")}function e(a,b,c,e){return d(a,e,c.length-1),c[e][b]}function f(a){return a===undefined||0===a.length?{length:0,start:function(){throw new error("this timeranges object is empty")},end:function(){throw new error("this timeranges object is empty")}}:{length:a.length,start:e.bind(null,"start",0,a),end:e.bind(null,"end",1,a)}}function g(a,b){return array.isarray(a)?f(a):a===undefined||b===undefined?f():f([[a,b]])}c.__esmodule=!0,c.createtimeranges=g,c.createtimerange=g},{}],96:[function(a,b,c){"use strict";function d(a){return"string"!=typeof a?a:a.charat(0).touppercase()+a.slice(1)}c.__esmodule=!0,c["default"]=d},{}],97:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}c.__esmodule=!0,c.iscrossorigin=c.getfileextension=c.getabsoluteurl=c.parseurl=undefined;var e=a(101),f=d(e),g=a(102),h=d(g),i=c.parseurl=function(a){var b=["protocol","hostname","port","pathname","search","hash","host"],c=f["default"].createelement("a");c.href=a;var d=""===c.host&&"file:"!==c.protocol,e=void 0;d&&(e=f["default"].createelement("div"),e.innerhtml='',c=e.firstchild,e.setattribute("style","display:none; position:absolute;"),f["default"].body.appendchild(e));for(var g={},h=0;hx',a=b.firstchild.href}return a},c.getfileextension=function(a){if("string"==typeof a){var b=/^(\/?)([\s\s]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,c=b.exec(a);if(c)return c.pop().tolowercase()}return""},c.iscrossorigin=function(a){var b=h["default"].location,c=i(a);return(":"===c.protocol?b.protocol:c.protocol)+c.host!==b.protocol+b.host}},{101:101,102:102}],98:[function(a,b,c){"use strict";function d(a){if(a&&a.__esmodule)return a;var b={};if(null!=a)for(var c in a)object.prototype.hasownproperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esmodule?a:{"default":a}}function f(a,b,c){var d=void 0;if("string"==typeof a){var e=f.getplayers();if(0===a.indexof("#")&&(a=a.slice(1)),e[a])return b&&m["default"].warn('player "'+a+'" is already initialised. options will not be applied.'),c&&e[a].ready(c),e[a];d=o.$("#"+a)}else d=a;if(!d||!d.nodename)throw new typeerror("the element or id supplied is not valid. (videojs)");if(d.player||v["default"].players[d.playerid])return d.player||v["default"].players[d.playerid];b=b||{},f.hooks("beforesetup").foreach(function(a){var c=a(d,(0,z["default"])(b));if(!(0,t.isobject)(c)||array.isarray(c))return void m["default"].error("please return an object in beforesetup hooks");b=(0,z["default"])(b,c)});var g=p["default"].getcomponent("player"),h=new g(d,b,c);return f.hooks("setup").foreach(function(a){return a(h)}),h}var g=a(102),h=e(g),i=a(101),j=e(i),k=a(59),l=d(k),m=a(94),n=d(m),o=a(5),p=e(o),q=a(45),r=e(q),s=a(86),t=d(s),u=a(56),v=e(u),w=a(57),x=e(w),y=a(92),z=e(y),a=a(88),b=d(a),c=a(74),d=e(c),e=a(66),f=e(e),g=a(80),h=e(g),i=a(95),j=a(89),k=e(j),l=a(91),m=e(l),n=a(85),o=d(n),p=a(81),q=d(p),r=a(97),s=d(r),t=a(93),u=a(83),v=e(u),w=a(46),x=e(w),y=a(114),z=e(y),$=a(64),_=e($),aa=a(63);if("undefined"==typeof htmlvideoelement&&o.isreal()&&(j["default"].createelement("video"),j["default"].createelement("audio"),j["default"].createelement("track")),f.hooks_={},f.hooks=function(a,b){return f.hooks_[a]=f.hooks_[a]||[],b&&(f.hooks_[a]=f.hooks_[a].concat(b)),f.hooks_[a]},f.hook=function(a,b){f.hooks(a,b)},f.removehook=function(a,b){var c=f.hooks(a).indexof(b)
;return!(c<=-1)&&(f.hooks_[a]=f.hooks_[a].slice(),f.hooks_[a].splice(c,1),!0)},!0!==h["default"].videojs_no_dynamic_style&&o.isreal()){var ba=o.$(".vjs-styles-defaults");if(!ba){ba=n.createstyleelement("vjs-styles-defaults");var ca=o.$("head");ca&&ca.insertbefore(ba,ca.firstchild),n.settextcontent(ba,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}l.autosetuptimeout(1,f),f.version="6.0.0",f.options=v["default"].prototype.options_,f.getplayers=function(){return v["default"].players},f.players=v["default"].players,f.getcomponent=p["default"].getcomponent,f.registercomponent=function(a,b){_["default"].istech(b)&&m["default"].warn("the "+a+" tech was registered as a component. it should instead be registered using videojs.registertech(name, tech)"),p["default"].registercomponent.call(p["default"],a,b)},f.gettech=_["default"].gettech,f.registertech=_["default"].registertech,f.use=aa.use,f.browser=q,f.touch_enabled=q.touch_enabled,f.extend=x["default"],f.mergeoptions=z["default"],f.bind=b.bind,f.registerplugin=x["default"].registerplugin,f.plugin=function(a,b){return m["default"].warn("videojs.plugin() is deprecated; use videojs.registerplugin() instead"),x["default"].registerplugin(a,b)},f.getplugins=x["default"].getplugins,f.getplugin=x["default"].getplugin,f.getpluginversion=x["default"].getpluginversion,f.addlanguage=function(a,b){var c;return a=(""+a).tolowercase(),f.options.languages=(0,z["default"])(f.options.languages,(c={},c[a]=b,c)),f.options.languages[a]},f.log=m["default"],f.createtimerange=f.createtimeranges=i.createtimeranges,f.formattime=k["default"],f.parseurl=s.parseurl,f.iscrossorigin=s.iscrossorigin,f.eventtarget=r["default"],f.on=t.on,f.one=t.one,f.off=t.off,f.trigger=t.trigger,f.xhr=z["default"],f.texttrack=d["default"],f.audiotrack=f["default"],f.videotrack=h["default"],["isel","istextnode","createel","hasclass","addclass","removeclass","toggleclass","setattributes","getattributes","emptyel","appendcontent","insertcontent"].foreach(function(a){f[a]=function(){return m["default"].warn("videojs."+a+"() is deprecated; use videojs.dom."+a+"() instead"),o[a].apply(null,arguments)}}),f.computedstyle=v["default"],f.dom=o,f.url=s,b.exports=f},{101:101,102:102,114:114,45:45,46:46,5:5,56:56,57:57,59:59,63:63,64:64,66:66,74:74,80:80,81:81,83:83,85:85,86:86,88:88,89:89,91:91,92:92,93:93,94:94,95:95,97:97}],99:[function(a,b,c){},{}],100:[function(a,b,c){function d(a,b,c){if(!h(b))throw new typeerror("iterator must be a function");arguments.length<3&&(c=this),"[object array]"===i.call(a)?e(a,b,c):"string"==typeof a?f(a,b,c):g(a,b,c)}function e(a,b,c){for(var d=0,e=a.length;d59?b(c[1],c[2],0,c[4]):b(0,c[1],c[2],c[4]):null}function d(){this.values=p(null)}function e(a,b,c,d){var e=d?a.split(d):[a];for(var f in e)if("string"==typeof e[f]){var g=e[f].split(c);if(2===g.length){var h=g[0],i=g[1];b(h,i)}}}function f(a,f,g){function h(){var d=c(a);if(null===d)throw new b(b.errors.badtimestamp,"malformed timestamp: "+j);return a=a.replace(/^[^\sa-za-z-]+/,""),d}function i(){a=a.replace(/^\s+/,"")}var j=a;if(i(),f.starttime=h(),i(),"-->"!==a.substr(0,3))throw new b(b.errors.badtimestamp,"malformed time stamp (time stamps must be separated by '-->'): "+j);a=a.substr(3),i(),f.endtime=h(),i(),function(a,b){var c=new d;e(a,function(a,b){switch(a){case"region":for(var d=g.length-1;d>=0;d--)if(g[d].id===b){c.set(a,g[d].region);break}break;case"vertical":c.alt(a,b,["rl","lr"]);break;case"line":var e=b.split(","),f=e[0];c.integer(a,f),c.percent(a,f)&&c.set("snaptolines",!1),c.alt(a,f,["auto"]),2===e.length&&c.alt("linealign",e[1],["start","middle","end"]);break;case"position":e=b.split(","),c.percent(a,e[0]),2===e.length&&c.alt("positionalign",e[1],["start","middle","end"]);break;case"size":c.percent(a,b);break;case"align":c.alt(a,b,["start","middle","end","left","right"])}},/:/,/\s/),b.region=c.get("region",null),b.vertical=c.get("vertical",""),b.line=c.get("line","auto"),b.linealign=c.get("linealign","start"),b.snaptolines=c.get("snaptolines",!0),b.size=c.get("size",100),b.align=c.get("align","middle"),b.position=c.get("position",{start:0,left:0,middle:50,end:100,right:100},b.align),b.positionalign=c.get("positionalign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},b.align)}(a,f)}function g(a,b){function d(a){return q[a]}for(var e,f=a.document.createelement("div"),g=f,h=[];null!==(e=function(){if(!b)return null;var a=b.match(/^([^<]*)(<[^>]+>?)?/);return function(a){return b=b.substr(a.length),a}(a[1]?a[1]:a[2])}());)if("<"!==e[0])g.appendchild(a.document.createtextnode(function(a){for(;k=a.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)a=a.replace(k[0],d);return a}(e)));else{if("/"===e[1]){h.length&&h[h.length-1]===e.substr(2).replace(">","")&&(h.pop(),g=g.parentnode);continue}var i,j=c(e.substr(1,e.length-2));if(j){i=a.document.createprocessinginstruction("timestamp",j),g.appendchild(i);continue}var k=e.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!k)continue;if(!(i=function(b,c){var d=r[b];if(!d)return null;var e=a.document.createelement(d);e.localname=d;var f=s[b];return f&&c&&(e[f]=c.trim()),e}(k[1],k[3])))continue;if(!function(a,b){return!t[b.localname]||t[b.localname]===a.localname}(g,i))continue;k[2]&&(i.classname=k[2].substr(1).replace("."," ")),h.push(k[1]),g.appendchild(i),g=i}return f}function h(a){for(var b=0;b=c[0]&&a<=c[1])return!0}return!1}function i(a){function b(a,b){for(var c=b.childnodes.length-1;c>=0;c--)a.push(b.childnodes[c])}function c(a){if(!a||!a.length)return null;var d=a.pop(),e=d.textcontent||d.innertext;if(e){var f=e.match(/^.*(\n|\r)/);return f?(a.length=0,f[0]):e}return"ruby"===d.tagname?c(a):d.childnodes?(b(a,d),c(a)):void 0}var d,e=[],f="";if(!a||!a.childnodes)return"ltr";for(b(e,a);f=c(e);)for(var g=0;g=0&&a.line<=100))return a.line;if(!a.track||!a.track.texttracklist||!a.track.texttracklist.mediaelement)return-1;for(var b=a.track,c=b.texttracklist,d=0,e=0;en&&(l=l<0?-1:1,l*=math.ceil(n/k)*k),g<0&&(l+=""===f.vertical?c.height:c.width,h=h.reverse()),e.move(o,l)}else{var p=e.lineheight/c.height*100;switch(f.linealign){case"middle":g-=p/2;break;case"end":g-=p}switch(f.vertical){case"":b.applystyles({top:b.formatstyle(g,"%")});break;case"rl":b.applystyles({left:b.formatstyle(g,"%")});break;case"lr":b.applystyles({right:b.formatstyle(g,"%")})}h=["+y","-x","+x","-y"],e=new m(b)}var q=function(a,b){for(var e,f=new m(a),g=1,h=0;hi&&(e=new m(a),g=i),a=new m(f)}return e||f}(e,h);b.move(q.tocsscompatvalues(c))}function o(){}var p=object.create||function(){function a(){}return function(b){if(1!==arguments.length)throw new error("object.create shim only accepts one parameter.");return a.prototype=b,new a}}();b.prototype=p(error.prototype),b.prototype.constructor=b,b.errors={badsignature:{code:0,message:"malformed webvtt signature."},badtimestamp:{code:1,message:"malformed time stamp."}},d.prototype={set:function(a,b){this.get(a)||""===b||(this.values[a]=b)},get:function(a,b,c){return c?this.has(a)?this.values[a]:b[c]:this.has(a)?this.values[a]:b},has:function(a){return a in this.values},alt:function(a,b,c){for(var d=0;d=0&&b<=100)&&(this.set(a,b),!0)}};var q={"&":"&","<":"<",">":">","":"","":""," ":" "},r={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},s={v:"title",lang:"lang"},t={rt:"ruby"},u=[[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]];k.prototype.applystyles=function(a,b){b=b||this.div;for(var c in a)a.hasownproperty(c)&&(b.style[c]=a[c])},k.prototype.formatstyle=function(a,b){return 0===a?0:a+b},l.prototype=p(k.prototype),l.prototype.constructor=l,m.prototype.move=function(a,b){switch(b=b!==undefined?b:this.lineheight,a){case"+x":this.left+=b,this.right+=b;break;case"-x":this.left-=b,this.right-=b;break;case"+y":this.top+=b,this.bottom+=b;break;case"-y":this.top-=b,this.bottom-=b}},m.prototype.overlaps=function(a){return this.lefta.left&&this.topa.top},m.prototype.overlapsany=function(a){for(var b=0;b=a.top&&this.bottom<=a.bottom&&this.left>=a.left&&this.right<=a.right},m.prototype.overlapsoppositeaxis=function(a,b){switch(b){case"+x":return this.lefta.right;case"+y":return this.topa.bottom}},m.prototype.intersectpercentage=function(a){return math.max(0,math.min(this.right,a.right)-math.max(this.left,a.left))*math.max(0,math.min(this.bottom,a.bottom)-math.max(this.top,a.top))/(this.height*this.width)},m.prototype.tocsscompatvalues=function(a){return{top:this.top-a.top,bottom:a.bottom-this.bottom,left:this.left-a.left,right:a.right-this.right,height:this.height,width:this.width}},m.getsimpleboxposition=function(a){var b=a.div?a.div.offsetheight:a.tagname?a.offsetheight:0,c=a.div?a.div.offsetwidth:a.tagname?a.offsetwidth:0,d=a.div?a.div.offsettop:a.tagname?a.offsettop:0;return a=a.div?a.div.getboundingclientrect():a.tagname?a.getboundingclientrect():a,{left:a.left,right:a.right,top:a.top||d,height:a.height||b,bottom:a.bottom||d+(a.height||b),width:a.width||c}},o.stringdecoder=function(){return{decode:function(a){if(!a)return"";if("string"!=typeof a)throw new error("error - expected string data.");return decodeuricomponent(encodeuricomponent(a))}}},o.convertcuetodomtree=function(a,b){return a&&b?g(a,b):null};o.processcues=function(a,b,c){if(!a||!b||!c)return null;for(;c.firstchild;)c.removechild(c.firstchild);var d=a.document.createelement("div");if(d.style.position="absolute",d.style.left="0",d.style.right="0",d.style.top="0",d.style.bottom="0",d.style.margin="1.5%",c.appendchild(d),function(a){for(var b=0;b")){j.cue.id=k;continue}case"cue":try{f(k,j.cue,j.regionlist)}catch(o){j.reportorthrowerror(o),j.cue=null,j.state="badcue";continue}j.state="cuetext";continue;case"cuetext":var n=-1!==k.indexof("-->");if(!k||n&&(m=!0)){j.oncue&&j.oncue(j.cue),j.cue=null,j.state="id";continue}j.cue.text&&(j.cue.text+="\n"),j.cue.text+=k;continue;case"badcue":k||(j.state="id");continue}}}catch(o){j.reportorthrowerror(o),"cuetext"===j.state&&j.cue&&j.oncue&&j.oncue(j.cue),j.cue=null,j.state="initial"===j.state?"badwebvtt":"badcue"}return this},flush:function(){var a=this;try{if(a.buffer+=a.decoder.decode(),(a.cue||"header"===a.state)&&(a.buffer+="\n\n",a.parse()),"initial"===a.state)throw new b(b.errors.badsignature)}catch(c){a.reportorthrowerror(c)}return a.onflush&&a.onflush(),this}},a.webvtt=o}(this,this.vttjs)},{}],110:[function(a,b,c){void 0!==b&&b.exports&&(this.vttcue=this.vttcue||a(111).vttcue),function(a){a.vttcue.prototype.tojson=function(){var a={},b=this;return object.keys(this).foreach(function(c){"getcueashtml"!==c&&"hasbeenreset"!==c&&"displaystate"!==c&&(a[c]=b[c])}),a},a.vttcue.create=function(b){if(!b.hasownproperty("starttime")||!b.hasownproperty("endtime")||!b.hasownproperty("text"))throw new error("you must at least have start time, end time, and text.");var c=new a.vttcue(b.starttime,b.endtime,b.text);for(var d in b)c.hasownproperty(d)&&(c[d]=b[d]);return c},a.vttcue.fromjson=function(a){return this.create(json.parse(a))}}(this)},{111:111}],111:[function(a,b,c){!function(a,b){function c(a){return"string"==typeof a&&(!!h[a.tolowercase()]&&a.tolowercase())}function d(a){return"string"==typeof a&&(!!i[a.tolowercase()]&&a.tolowercase())}function e(a){for(var b=1;b100)throw new error("position must be between 0 and 100.");u=a,this.hasbeenreset=!0}})),object.defineproperty(h,"positionalign",e({},j,{get:function(){return v},set:function(a){var b=d(a);if(!b)throw new syntaxerror("an invalid or illegal string was specified.");v=b,this.hasbeenreset=!0}})),object.defineproperty(h,"size",e({},j,{get:function(){return w},set:function(a){if(a<0||a>100)throw new error("size must be between 0 and 100.");w=a,this.hasbeenreset=!0}})),object.defineproperty(h,"align",e({},j,{get:function(){return x},set:function(a){var b=d(a);if(!b)throw new syntaxerror("an invalid or illegal string was specified.");x=b,this.hasbeenreset=!0}})),h.displaystate=undefined,i)return h}var g="auto",h={"":!0,lr:!0,rl:!0},i={start:!0,middle:!0,end:!0,left:!0,right:!0};f.prototype.getcueashtml=function(){return webvtt.convertcuetodomtree(window,this.text)},a.vttcue=a.vttcue||f,b.vttcue=f}(this,this.vttjs||{})},{}],112:[function(a,b,c){void 0!==b&&b.exports&&(this.vttregion=a(113).vttregion),function(a){a.vttregion.create=function(b){var c=new a.vttregion;for(var d in b)c.hasownproperty(d)&&(c[d]=b[d]);return c},a.vttregion.fromjson=function(a){return this.create(json.parse(a))}}(this)},{113:113}],113:[function(a,b,c){!function(a,b){function c(a){return"string"==typeof a&&(!!f[a.tolowercase()]&&a.tolowercase())}function d(a){return"number"==typeof a&&a>=0&&a<=100}function e(){var a=100,b=3,e=0,f=100,g=0,h=100,i="";object.defineproperties(this,{width:{enumerable:!0,get:function(){return a},set:function(b){if(!d(b))throw new error("width must be between 0 and 100.");a=b}},lines:{enumerable:!0,get:function(){return b},set:function(a){if("number"!=typeof a)throw new typeerror("lines must be set to a number.");b=a}},regionanchory:{enumerable:!0,get:function(){return f},set:function(a){if(!d(a))throw new error("regionanchorx must be between 0 and 100.");f=a}},regionanchorx:{enumerable:!0,get:function(){return e},set:function(a){if(!d(a))throw new error("regionanchory must be between 0 and 100.");e=a}},viewportanchory:{enumerable:!0,get:function(){return h},set:function(a){if(!d(a))throw new error("viewportanchory must be between 0 and 100.");h=a}},viewportanchorx:{enumerable:!0,get:function(){return g},set:function(a){if(!d(a))throw new error("viewportanchorx must be between 0 and 100.");g=a}},scroll:{enumerable:!0,get:function(){return i},set:function(a){var b=c(a);if(!1===b)throw new syntaxerror("an invalid or illegal string was specified.");i=b}}})}var f={"":!0,up:!0};a.vttregion=a.vttregion||e,b.vttregion=e}(this,this.vttjs||{})},{}],114:[function(a,b,c){"use strict";function d(a){for(var b in a)if(a.hasownproperty(b))return!1;return!0}function e(a,b,c){var d=a;return k(b)?(c=b,"string"==typeof a&&(d={uri:a})):d=m(b,{uri:a}),d.callback=c,d}function f(a,b,c){return b=e(a,b,c),g(b)}function g(a){function b(){4===k.readystate&&settimeout(g,0)}function c(){var a=undefined;if(a=k.response?k.response:k.responsetext||h(k),u)try{a=json.parse(a)}catch(b){}return a}function e(a){return cleartimeout(o),a instanceof error||(a=new error(""+(a||"unknown xmlhttprequest error"))),a.statuscode=0,j(a,v)}function g(){if(!n){var b;cleartimeout(o),b=a.usexdr&&k.status===undefined?200:1223===k.status?204:k.status;var d=v,e=null;return 0!==b?(d={body:c(),statuscode:b,method:q,headers:{},url:p,rawrequest:k},k.getallresponseheaders&&(d.headers=l(k.getallresponseheaders()))):e=new error("internal xmlhttprequest error"),j(e,d,d.body)}}if("undefined"==typeof a.callback)throw new error("callback argument missing");var i=!1,j=function(b,c,d){i||(i=!0,a.callback(b,c,d))},k=a.xhr||null;k||(k=a.cors||a.usexdr?new f.xdomainrequest:new f.xmlhttprequest);var m,n,o,p=k.url=a.uri||a.url,q=k.method=a.method||"get",r=a.body||a.data,s=k.headers=a.headers||{},t=!!a.sync,u=!1,v={body:undefined,headers:{},statuscode:0,method:q,url:p,rawrequest:k};if("json"in a&&!1!==a.json&&(u=!0,s.accept||s.accept||(s.accept="application/json"),"get"!==q&&"head"!==q&&(s["content-type"]||s["content-type"]||(s["content-type"]="application/json"),r=json.stringify(!0===a.json?r:a.json))),k.onreadystatechange=b,k.onload=g,k.onerror=e,k.onprogress=function(){},k.onabort=function(){n=!0},k.ontimeout=e,k.open(q,p,!t,a.username,a.password),t||(k.withcredentials=!!a.withcredentials),!t&&a.timeout>0&&(o=settimeout(function(){if(!n){n=!0,k.abort("timeout");var a=new error("xmlhttprequest timeout");a.code="etimedout",e(a)}},a.timeout)),k.setrequestheader)for(m in s)s.hasownproperty(m)&&k.setrequestheader(m,s[m]);else if(a.headers&&!d(a.headers))throw new error("headers cannot be set on an xdomainrequest object");return"responsetype"in a&&(k.responsetype=a.responsetype),"beforesend"in a&&"function"==typeof a.beforesend&&a.beforesend(k),k.send(r||null),k}function h(a){if("document"===a.responsetype)return a.responsexml;var b=a.responsexml&&"parsererror"===a.responsexml.documentelement.nodename;return""!==a.responsetype||b?null:a.responsexml}function i(){}var j=a(102),k=a(103),l=a(104),m=a(115);b.exports=f,f.xmlhttprequest=j.xmlhttprequest||i,f.xdomainrequest="withcredentials"in new f.xmlhttprequest?f.xmlhttprequest:j.xdomainrequest,function(a,b){for(var c=0;c