/** * @license * video.js 5.11.6 * 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(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[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:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return e(c?c:b)},k,k.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g=a||a>b?i(s,n):r=settimeout(j,a)}function k(){i(v,r)}function l(){if(m=arguments,p=e(),q=this,s=v&&(r||!w),u===!1)var c=w&&!r;else{n||w||(t=p);var d=u-(p-t),f=0>=d||d>u;f?(n&&(n=cleartimeout(n)),t=p,o=a.apply(q,m)):n||(n=settimeout(k,d))}return f&&r?r=cleartimeout(r):r||b===u||(r=settimeout(j,b)),c&&(f=!0,o=a.apply(q,m)),!f||r||n||(m=q=void 0),o}var m,n,o,p,q,r,s,t=0,u=!1,v=!0;if("function"!=typeof a)throw new typeerror(f);if(b=0>b?0:+b||0,c===!0){var w=!0;v=!1}else d(c)&&(w=!!c.leading,u="maxwait"in c&&g(+c.maxwait||0,b),v="trailing"in c?!!c.trailing:v);return l.cancel=h,l}var d=a("../lang/isobject"),e=a("../date/now"),f="expected a function",g=math.max;b.exports=c},{"../date/now":4,"../lang/isobject":33}],6:[function(a,b){function c(a,b){if("function"!=typeof a)throw new typeerror(d);return b=e(void 0===b?a.length-1:+b||0,0),function(){for(var c=arguments,d=-1,f=e(c.length-b,0),g=array(f);++d2?c[g-2]:void 0,i=g>2?c[2]:void 0,j=g>1?c[g-1]:void 0;for("function"==typeof h?(h=d(h,j,5),g-=2):(h="function"==typeof j?j:void 0,g-=h?1:0),i&&e(c[0],c[1],i)&&(h=3>g?void 0:h,g=1);++f-1&&a%1==0&&b>a}var d=/^\d+$/,e=9007199254740991;b.exports=c},{}],24:[function(a,b){function c(a,b,c){if(!f(c))return!1;var g=typeof b;if("number"==g?d(c)&&e(b,c.length):"string"==g&&b in c){var h=c[b];return a===a?a===h:h!==h}return!1}var d=a("./isarraylike"),e=a("./isindex"),f=a("../lang/isobject");b.exports=c},{"../lang/isobject":33,"./isarraylike":21,"./isindex":23}],25:[function(a,b){function c(a){return"number"==typeof a&&a>-1&&a%1==0&&d>=a}var d=9007199254740991;b.exports=c},{}],26:[function(a,b){function c(a){return!!a&&"object"==typeof a}b.exports=c},{}],27:[function(a,b){function c(a){for(var b=i(a),c=b.length,j=c&&a.length,l=!!j&&g(j)&&(e(a)||d(a)||h(a)),m=-1,n=[];++m0,r=l.enumerrorprops&&(a===w||a instanceof error),t=l.enumprototypes&&g(a);++d2?arguments[2]:{},g=c(b);e&&(g=g.concat(object.getownpropertysymbols(b))),d(g,function(c){j(a,c,b[c],f[c])})};k.supportsdescriptors=!!i,b.exports=k},{foreach:47,"object-keys":50}],47:[function(a,b){var c=object.prototype.hasownproperty,d=object.prototype.tostring;b.exports=function(a,b,e){if("[object function]"!==d.call(b))throw new typeerror("iterator must be a function");var f=a.length;if(f===+f)for(var g=0;f>g;g++)b.call(e,a[g],g,a);else for(var h in a)c.call(a,h)&&b.call(e,a[h],h,a)}},{}],48:[function(a,b){var c="function.prototype.bind called on incompatible ",d=array.prototype.slice,e=object.prototype.tostring,f="[object function]";b.exports=function(a){var b=this;if("function"!=typeof b||e.call(b)!==f)throw new typeerror(c+b);for(var g,h=d.call(arguments,1),i=function(){if(this instanceof g){var c=b.apply(this,h.concat(d.call(arguments)));return object(c)===c?c:this}return b.apply(a,h.concat(d.call(arguments)))},j=math.max(0,b.length-h.length),k=[],l=0;j>l;l++)k.push("$"+l);if(g=function("binder","return function ("+k.join(",")+"){ return binder.apply(this,arguments); }")(i),b.prototype){var m=function(){};m.prototype=b.prototype,g.prototype=new m,m.prototype=null}return g}},{}],49:[function(a,b){var c=a("./implementation");b.exports=function.prototype.bind||c},{"./implementation":48}],50:[function(a,b){"use strict";var c=object.prototype.hasownproperty,d=object.prototype.tostring,e=array.prototype.slice,f=a("./isarguments"),g=object.prototype.propertyisenumerable,h=!g.call({tostring:null},"tostring"),i=g.call(function(){},"prototype"),j=["tostring","tolocalestring","valueof","hasownproperty","isprototypeof","propertyisenumerable","constructor"],k=function(a){var b=a.constructor;return b&&b.prototype===a},l={$console:!0,$external:!0,$frame:!0,$frameelement:!0,$frames:!0,$innerheight:!0,$innerwidth:!0,$outerheight:!0,$outerwidth:!0,$pagexoffset:!0,$pageyoffset:!0,$parent:!0,$scrollleft:!0,$scrolltop:!0,$scrollx:!0,$scrolly:!0,$self:!0,$webkitindexeddb:!0,$webkitstorageinfo:!0,$window:!0},m=function(){if("undefined"==typeof window)return!1;for(var a in window)try{if(!l["$"+a]&&c.call(window,a)&&null!==window[a]&&"object"==typeof window[a])try{k(window[a])}catch(b){return!0}}catch(b){return!0}return!1}(),n=function(a){if("undefined"==typeof window||!m)return k(a);try{return k(a)}catch(b){return!1}},o=function(a){var b=null!==a&&"object"==typeof a,e="[object function]"===d.call(a),g=f(a),k=b&&"[object string]"===d.call(a),l=[];if(!b&&!e&&!g)throw new typeerror("object.keys called on a non-object");var m=i&&e;if(k&&a.length>0&&!c.call(a,0))for(var o=0;o0)for(var p=0;p=0&&"[object function]"===c.call(a.callee)),d}},{}],52:[function(a,b){"use strict";var c=a("./implementation"),d=function(){if(!object.assign)return!1;for(var a="abcdefghijklmnopqrst",b=a.split(""),c={},d=0;d0&&(o=settimeout(function(){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),k}function h(){}var i=a("global/window"),j=a("once"),k=a("is-function"),l=a("parse-headers"),m=a("xtend");b.exports=f,f.xmlhttprequest=i.xmlhttprequest||h,f.xdomainrequest="withcredentials"in new f.xmlhttprequest?f.xmlhttprequest:i.xdomainrequest,c(["get","put","post","patch","head","delete"],function(a){f["delete"===a?"del":a]=function(b,c,d){return c=e(b,c,d),c.method=a.touppercase(),g(c)}})},{"global/window":2,"is-function":57,once:58,"parse-headers":61,xtend:62}],57:[function(a,b){function c(a){var b=d.call(a);return"[object function]"===b||"function"==typeof a&&"[object regexp]"!==b||"undefined"!=typeof window&&(a===window.settimeout||a===window.alert||a===window.confirm||a===window.prompt)}b.exports=c;var d=object.prototype.tostring},{}],58:[function(a,b){function c(a){var b=!1;return function(){return b?void 0:(b=!0,a.apply(this,arguments))}}b.exports=c,c.proto=c(function(){object.defineproperty(function.prototype,"once",{value:function(){return c(this)},configurable:!0})})},{}],59:[function(a,b){function c(a,b,c){if(!g(b))throw new typeerror("iterator must be a function");arguments.length<3&&(c=this),"[object array]"===h.call(a)?d(a,b,c):"string"==typeof a?e(a,b,c):f(a,b,c)}function d(a,b,c){for(var d=0,e=a.length;e>d;d++)i.call(a,d)&&b.call(c,a[d],d,a)}function e(a,b,c){for(var d=0,e=a.length;e>d;d++)b.call(c,a.charat(d),d,a)}function f(a,b,c){for(var d in a)i.call(a,d)&&b.call(c,a[d],d,a)}var g=a("is-function");b.exports=c;var h=object.prototype.tostring,i=object.prototype.hasownproperty},{"is-function":57}],60:[function(a,b,c){function d(a){return a.replace(/^\s*|\s*$/g,"")}c=b.exports=d,c.left=function(a){return a.replace(/^\s*/,"")},c.right=function(a){return a.replace(/\s*$/,"")}},{}],61:[function(a,b){var c=a("trim"),d=a("for-each"),e=function(a){return"[object array]"===object.prototype.tostring.call(a)};b.exports=function(a){if(!a)return{};var b={};return d(c(a).split("\n"),function(a){var d=a.indexof(":"),f=c(a.slice(0,d)).tolowercase(),g=c(a.slice(d+1));"undefined"==typeof b[f]?b[f]=g:e(b[f])?b[f].push(g):b[f]=[b[f],g]}),b}},{"for-each":59,trim:60}],62:[function(a,b){function c(){for(var a={},b=0;b=0;a--)this.children_[a].dispose&&this.children_[a].dispose();this.children_=null,this.childindex_=null,this.childnameindex_=null,this.off(),this.el_.parentnode&&this.el_.parentnode.removechild(this.el_),j.removeeldata(this.el_),this.el_=null},a.prototype.player=function(){return this.player_},a.prototype.options=function(a){return r["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),a?(this.options_=v["default"](this.options_,a),this.options_):this.options_},a.prototype.el=function(){return this.el_},a.prototype.createel=function(a,b,c){return j.createel(a,b,c)},a.prototype.localize=function(a){var b=this.player_.language&&this.player_.language(),c=this.player_.languages&&this.player_.languages();if(!b||!c)return a;var d=c[b];if(d&&d[a])return d[a];var e=b.split("-")[0],f=c[e];return f&&f[a]?f[a]:a},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){return this.childnameindex_[a]},a.prototype.addchild=function(b){var c=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],d=arguments.length<=2||void 0===arguments[2]?this.children_.length:arguments[2],e=void 0,f=void 0;if("string"==typeof b){f=b,c||(c={}),c===!0&&(r["default"].warn("initializing a child component with `true` is deprecated. children should be defined in an array when possible, but if necessary use an object instead of `true`."),c={});var g=c.componentclass||t["default"](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&&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;c&&!function(){var d=b.options_,e=function(a){var c=a.name,e=a.opts;if(void 0!==d[c]&&(e=d[c]),e!==!1){e===!0&&(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(b.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||t["default"](b.name));return c&&!g.istech(c)}).foreach(e)}()},a.prototype.buildcssclass=function(){return""},a.prototype.on=function(a,b,c){var d=this;return"string"==typeof a||array.isarray(a)?p.on(this.el_,a,l.bind(this,b)):!function(){var e=a,f=b,g=l.bind(d,c),h=function(){return d.off(e,f,g)};h.guid=g.guid,d.on("dispose",h);var i=function(){return d.off("dispose",h)};i.guid=g.guid,a.nodename?(p.on(e,f,g),p.on(e,"dispose",i)):"function"==typeof a.on&&(e.on(f,g),e.on("dispose",i))}(),this},a.prototype.off=function(a,b,c){if(!a||"string"==typeof a||array.isarray(a))p.off(this.el_,a,b);else{var d=a,e=b,f=l.bind(this,c);this.off("dispose",f),a.nodename?(p.off(d,e,f),p.off(d,"dispose",f)):(d.off(e,f),d.off("dispose",f))}return this},a.prototype.one=function(a,b,c){var d=this,e=arguments;return"string"==typeof a||array.isarray(a)?p.one(this.el_,a,l.bind(this,b)):!function(){var f=a,g=b,h=l.bind(d,c),i=function j(){d.off(f,g,j),h.apply(null,e)};i.guid=h.guid,d.on(f,g,i)}(),this},a.prototype.trigger=function(a,b){return p.trigger(this.el_,a,b),this},a.prototype.ready=function(a){var b=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];return a&&(this.isready_?b?a.call(this):this.settimeout(a,1):(this.readyqueue_=this.readyqueue_||[],this.readyqueue_.push(a))),this},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 j.$(a,b||this.contentel())},a.prototype.$$=function(a,b){return j.$$(a,b||this.contentel())},a.prototype.hasclass=function(a){return j.haselclass(this.el_,a)},a.prototype.addclass=function(a){return j.addelclass(this.el_,a),this},a.prototype.removeclass=function(a){return j.removeelclass(this.el_,a),this},a.prototype.toggleclass=function(a,b){return j.toggleelclass(this.el_,a,b),this},a.prototype.show=function(){return this.removeclass("vjs-hidden"),this},a.prototype.hide=function(){return this.addclass("vjs-hidden"),this},a.prototype.lockshowing=function(){return this.addclass("vjs-lock-showing"),this},a.prototype.unlockshowing=function(){return this.removeclass("vjs-lock-showing"),this},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){return this.width(a,!0).height(b)},a.prototype.dimension=function(a,b,c){if(void 0!==b)return(null===b||b!==b)&&(b=0),this.el_.style[a]=-1!==(""+b).indexof("%")||-1!==(""+b).indexof("px")?b:"auto"===b?"":b+"px",c||this.trigger("resize"),this;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"+t["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]}else if(this.el_.currentstyle){var d="offset"+t["default"](a);b=this.el_[d]}return b=parsefloat(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.emittapevents=function(){var a=0,b=null,c=10,d=200,e=void 0;this.on("touchstart",function(c){1===c.touches.length&&(b={pagex:c.touches[0].pagex,pagey:c.touches[0].pagey},a=(new date).gettime(),e=!0)}),this.on("touchmove",function(a){if(a.touches.length>1)e=!1;else if(b){var d=a.touches[0].pagex-b.pagex,f=a.touches[0].pagey-b.pagey,g=math.sqrt(d*d+f*f);g>c&&(e=!1)}});var f=function(){e=!1};this.on("touchleave",f),this.on("touchcancel",f),this.on("touchend",function(c){if(b=null,e===!0){var f=(new date).gettime()-a;d>f&&(c.preventdefault(),this.trigger("tap"))}})},a.prototype.enabletouchactivity=function(){if(this.player()&&this.player().reportuseractivity){var a=l.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(){a(),this.clearinterval(b)};this.on("touchmove",a),this.on("touchend",c),this.on("touchcancel",c)}},a.prototype.settimeout=function(a,b){a=l.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=l.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.registercomponent=function(b,c){return a.components_||(a.components_={}),a.components_[b]=c,c},a.getcomponent=function(b){return a.components_&&a.components_[b]?a.components_[b]:h["default"]&&h["default"].videojs&&h["default"].videojs[b]?(r["default"].warn("the "+b+" component was added to the videojs object when it should be registered using videojs.registercomponent(name, component)"),h["default"].videojs[b]):void 0},a.extend=function(b){b=b||{},r["default"].warn("component.extend({}) has been deprecated, use videojs.extend(component, {}) instead");var c=b.init||b.init||this.prototype.init||this.prototype.init||function(){},d=function(){c.apply(this,arguments)};d.prototype=object.create(this.prototype),d.prototype.constructor=d,d.extend=a.extend;for(var e in b)b.hasownproperty(e)&&(d.prototype[e]=b[e]);return d},a}();w.registercomponent("component",w),c["default"]=w,b.exports=c["default"]},{"./utils/dom.js":142,"./utils/events.js":143,"./utils/fn.js":144,"./utils/guid.js":146,"./utils/log.js":147,"./utils/merge-options.js":148,"./utils/to-title-case.js":151,"global/window":2}],68:[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("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("../track-button.js"),i=e(h),j=a("../../component.js"),k=e(j),l=a("../../utils/fn.js"),m=(d(l),a("./audio-track-menu-item.js")),n=e(m),o=function(a){function b(c){var d=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];f(this,b),d.tracks=c.audiotracks&&c.audiotracks(),a.call(this,c,d),this.el_.setattribute("aria-label","audio menu")}return g(b,a),b.prototype.buildcssclass=function(){return"vjs-audio-button "+a.prototype.buildcssclass.call(this)},b.prototype.createitems=function(){var a=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],b=this.player_.audiotracks&&this.player_.audiotracks();if(!b)return a;for(var c=0;c'+this.localize("stream type")+""+this.localize("live")},{"aria-live":"off"}),b.appendchild(this.contentel_),b},b.prototype.updateshowing=function(){this.player().duration()===1/0?this.show():this.hide()},b}(i["default"]);i["default"].registercomponent("livedisplay",l),c["default"]=l,b.exports=c["default"]},{"../component":67,"../utils/dom.js":142}],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("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("../button"),i=e(h),j=a("../component"),k=e(j),l=a("../utils/dom.js"),m=d(l),n=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.on(c,"volumechange",this.update),c.tech_&&c.tech_.featuresvolumecontrol===!1&&this.addclass("vjs-hidden"),this.on(c,"loadstart",function(){this.update(),c.tech_.featuresvolumecontrol===!1?this.addclass("vjs-hidden"):this.removeclass("vjs-hidden")})}return g(b,a),b.prototype.buildcssclass=function(){return"vjs-mute-control "+a.prototype.buildcssclass.call(this)},b.prototype.handleclick=function(){this.player_.muted(this.player_.muted()?!1:!0)},b.prototype.update=function(){var a=this.player_.volume(),b=3;0===a||this.player_.muted()?b=0:.33>a?b=1:.67>a&&(b=2);var c=this.player_.muted()?"unmute":"mute";this.controltext()!==c&&this.controltext(c);for(var d=0;4>d;d++)m.removeelclass(this.el_,"vjs-vol-"+d);m.addelclass(this.el_,"vjs-vol-"+b)},b}(i["default"]);n.prototype.controltext_="mute",k["default"].registercomponent("mutetoggle",n),c["default"]=n,b.exports=c["default"]},{"../button":64,"../component":67,"../utils/dom.js":142}],74:[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("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("../button.js"),h=d(g),i=a("../component.js"),j=d(i),k=function(a){function b(c,d){e(this,b),a.call(this,c,d),this.on(c,"play",this.handleplay),this.on(c,"pause",this.handlepause)}return f(b,a),b.prototype.buildcssclass=function(){return"vjs-play-control "+a.prototype.buildcssclass.call(this)},b.prototype.handleclick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},b.prototype.handleplay=function(){this.removeclass("vjs-paused"),this.addclass("vjs-playing"),this.controltext("pause")},b.prototype.handlepause=function(){this.removeclass("vjs-playing"),this.addclass("vjs-paused"),this.controltext("play")},b}(h["default"]);k.prototype.controltext_="play",j["default"].registercomponent("playtoggle",k),c["default"]=k,b.exports=c["default"]},{"../button.js":64,"../component.js":67}],75:[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("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("../../menu/menu-button.js"),i=e(h),j=a("../../menu/menu.js"),k=e(j),l=a("./playback-rate-menu-item.js"),m=e(l),n=a("../../component.js"),o=e(n),p=a("../../utils/dom.js"),q=d(p),r=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.updatevisibility(),this.updatelabel(),this.on(c,"loadstart",this.updatevisibility),this.on(c,"ratechange",this.updatelabel)}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.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(){for(var a=this.player().playbackrate(),b=this.playbackrates(),c=b[0],d=0;da){c=b[d];break}this.player().playbackrate(c)},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(){this.playbackratesupported()?this.removeclass("vjs-hidden"):this.addclass("vjs-hidden")},b.prototype.updatelabel=function(){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,b.exports=c["default"]},{"../../component.js":67,"../../menu/menu-button.js":109,"../../menu/menu.js":111,"../../utils/dom.js":142,"./playback-rate-menu-item.js":76}],76:[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("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("../../menu/menu-item.js"),h=d(g),i=a("../../component.js"),j=d(i),k=function(a){function b(c,d){e(this,b);var f=d.rate,g=parsefloat(f,10);d.label=f,d.selected=1===g,a.call(this,c,d),this.label=f,this.rate=g,this.on(c,"ratechange",this.update)}return f(b,a),b.prototype.handleclick=function(){a.prototype.handleclick.call(this),this.player().playbackrate(this.rate)},b.prototype.update=function(){this.selected(this.player().playbackrate()===this.rate)},b}(h["default"]);k.prototype.contenteltype="button",j["default"].registercomponent("playbackratemenuitem",k),c["default"]=k,b.exports=c["default"]},{"../../component.js":67,"../../menu/menu-item.js":110}],77:[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("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("../../component.js"),i=e(h),j=a("../../utils/dom.js"),k=d(j),l=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.on(c,"progress",this.update)}return g(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(){var a=this.player_.buffered(),b=this.player_.duration(),c=this.player_.bufferedend(),d=this.el_.children,e=function(a,b){var c=a/b||0;return 100*(c>=1?1:c)+"%"};this.el_.style.width=e(c,b);for(var f=0;fa.length;f--)this.el_.removechild(d[f-1])},b}(i["default"]);i["default"].registercomponent("loadprogressbar",l),c["default"]=l,b.exports=c["default"]},{"../../component.js":67,"../../utils/dom.js":142}],78:[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("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("global/window"),i=e(h),j=a("../../component.js"),k=e(j),l=a("../../utils/dom.js"),m=d(l),n=a("../../utils/fn.js"),o=d(n),p=a("../../utils/format-time.js"),q=e(p),r=a("lodash-compat/function/throttle"),s=e(r),t=function(a){function b(c,d){var e=this;f(this,b),a.call(this,c,d),d.playeroptions&&d.playeroptions.controlbar&&d.playeroptions.controlbar.progresscontrol&&d.playeroptions.controlbar.progresscontrol.keeptooltipsinside&&(this.keeptooltipsinside=d.playeroptions.controlbar.progresscontrol.keeptooltipsinside),this.keeptooltipsinside&&(this.tooltip=m.createel("div",{classname:"vjs-time-tooltip"}),this.el().appendchild(this.tooltip),this.addclass("vjs-keep-tooltips-inside")),this.update(0,0),c.on("ready",function(){e.on(c.controlbar.progresscontrol.el(),"mousemove",s["default"](o.bind(e,e.handlemousemove),25))})}return g(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:"vjs-mouse-display"})},b.prototype.handlemousemove=function(a){var b=this.player_.duration(),c=this.calculatedistance(a)*b,d=a.pagex-m.findelposition(this.el().parentnode).left;this.update(c,d)},b.prototype.update=function(a,b){var c=q["default"](a,this.player_.duration());if(this.el().style.left=b+"px",this.el().setattribute("data-current-time",c),this.keeptooltipsinside){var d=this.clampposition_(b),e=b-d+1,f=parsefloat(i["default"].getcomputedstyle(this.tooltip).width),g=f/2;this.tooltip.innerhtml=c,this.tooltip.style.right="-"+(g-e)+"px"}},b.prototype.calculatedistance=function(a){return m.getpointerposition(this.el().parentnode,a).x},b.prototype.clampposition_=function(a){if(!this.keeptooltipsinside)return a;var b=parsefloat(i["default"].getcomputedstyle(this.player().el()).width),c=parsefloat(i["default"].getcomputedstyle(this.tooltip).width),d=c/2,e=a;return d>a?e=math.ceil(d):a>b-d&&(e=math.floor(b-d)),e},b}(k["default"]);k["default"].registercomponent("mousetimedisplay",t),c["default"]=t,b.exports=c["default"]},{"../../component.js":67,"../../utils/dom.js":142,"../../utils/fn.js":144,"../../utils/format-time.js":145, "global/window":2,"lodash-compat/function/throttle":7}],79:[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("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("../../component.js"),i=e(h),j=a("../../utils/fn.js"),k=d(j),l=a("../../utils/dom.js"),m=(d(l),a("../../utils/format-time.js")),n=e(m),o=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.updatedataattr(),this.on(c,"timeupdate",this.updatedataattr),c.ready(k.bind(this,this.updatedataattr)),d.playeroptions&&d.playeroptions.controlbar&&d.playeroptions.controlbar.progresscontrol&&d.playeroptions.controlbar.progresscontrol.keeptooltipsinside&&(this.keeptooltipsinside=d.playeroptions.controlbar.progresscontrol.keeptooltipsinside),this.keeptooltipsinside&&this.addclass("vjs-keep-tooltips-inside")}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.updatedataattr=function(){var a=this.player_.scrubbing()?this.player_.getcache().currenttime:this.player_.currenttime();this.el_.setattribute("data-current-time",n["default"](a,this.player_.duration()))},b}(i["default"]);i["default"].registercomponent("playprogressbar",o),c["default"]=o,b.exports=c["default"]},{"../../component.js":67,"../../utils/dom.js":142,"../../utils/fn.js":144,"../../utils/format-time.js":145}],80:[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("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("../../component.js"),h=d(g),i=a("./seek-bar.js"),j=(d(i),a("./mouse-time-display.js")),k=(d(j),function(a){function b(){e(this,b),a.apply(this,arguments)}return f(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:"vjs-progress-control vjs-control"})},b}(h["default"]));k.prototype.options_={children:["seekbar"]},h["default"].registercomponent("progresscontrol",k),c["default"]=k,b.exports=c["default"]},{"../../component.js":67,"./mouse-time-display.js":78,"./seek-bar.js":81}],81:[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("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("global/window"),i=e(h),j=a("../../slider/slider.js"),k=e(j),l=a("../../component.js"),m=e(l),n=a("./load-progress-bar.js"),o=(e(n),a("./play-progress-bar.js")),p=(e(o),a("./tooltip-progress-bar.js")),q=(e(p),a("../../utils/fn.js")),r=d(q),s=a("../../utils/format-time.js"),t=e(s),u=a("object.assign"),v=(e(u),function(a){function b(c,d){f(this,b),a.call(this,c,d),this.on(c,"timeupdate",this.updateprogress),this.on(c,"ended",this.updateprogress),c.ready(r.bind(this,this.updateprogress)),d.playeroptions&&d.playeroptions.controlbar&&d.playeroptions.controlbar.progresscontrol&&d.playeroptions.controlbar.progresscontrol.keeptooltipsinside&&(this.keeptooltipsinside=d.playeroptions.controlbar.progresscontrol.keeptooltipsinside),this.keeptooltipsinside&&(this.tooltipprogressbar=this.addchild("tooltipprogressbar"))}return g(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:"vjs-progress-holder"},{"aria-label":"progress bar"})},b.prototype.updateprogress=function(){if(this.updateariaattributes(this.el_),this.keeptooltipsinside){this.updateariaattributes(this.tooltipprogressbar.el_),this.tooltipprogressbar.el_.style.width=this.bar.el_.style.width;var a=parsefloat(i["default"].getcomputedstyle(this.player().el()).width),b=parsefloat(i["default"].getcomputedstyle(this.tooltipprogressbar.tooltip).width),c=this.tooltipprogressbar.el().style;c.maxwidth=math.floor(a-b/2)+"px",c.minwidth=math.ceil(b/2)+"px",c.right="-"+b/2+"px"}},b.prototype.updateariaattributes=function(a){var b=this.player_.scrubbing()?this.player_.getcache().currenttime:this.player_.currenttime();a.setattribute("aria-valuenow",(100*this.getpercent()).tofixed(2)),a.setattribute("aria-valuetext",t["default"](b,this.player_.duration()))},b.prototype.getpercent=function(){var a=this.player_.currenttime()/this.player_.duration();return a>=1?1:a},b.prototype.handlemousedown=function(b){a.prototype.handlemousedown.call(this,b),this.player_.scrubbing(!0),this.videowasplaying=!this.player_.paused(),this.player_.pause()},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}(k["default"]));v.prototype.options_={children:["loadprogressbar","mousetimedisplay","playprogressbar"],barname:"playprogressbar"},v.prototype.playerevent="timeupdate",m["default"].registercomponent("seekbar",v),c["default"]=v,b.exports=c["default"]},{"../../component.js":67,"../../slider/slider.js":119,"../../utils/fn.js":144,"../../utils/format-time.js":145,"./load-progress-bar.js":77,"./play-progress-bar.js":79,"./tooltip-progress-bar.js":82,"global/window":2,"object.assign":45}],82:[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("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("../../component.js"),i=e(h),j=a("../../utils/fn.js"),k=d(j),l=a("../../utils/dom.js"),m=(d(l),a("../../utils/format-time.js")),n=e(m),o=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.updatedataattr(),this.on(c,"timeupdate",this.updatedataattr),c.ready(k.bind(this,this.updatedataattr))}return g(b,a),b.prototype.createel=function(){var b=a.prototype.createel.call(this,"div",{classname:"vjs-tooltip-progress-bar vjs-slider-bar",innerhtml:'
\n '+this.localize("progress")+": 0%"});return this.tooltip=b.queryselector(".vjs-time-tooltip"),b},b.prototype.updatedataattr=function(){var a=this.player_.scrubbing()?this.player_.getcache().currenttime:this.player_.currenttime(),b=n["default"](a,this.player_.duration());this.el_.setattribute("data-current-time",b),this.tooltip.innerhtml=b},b}(i["default"]);i["default"].registercomponent("tooltipprogressbar",o),c["default"]=o,b.exports=c["default"]},{"../../component.js":67,"../../utils/dom.js":142,"../../utils/fn.js":144,"../../utils/format-time.js":145}],83:[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("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("./spacer.js"),h=d(g),i=a("../../component.js"),j=d(i),k=function(a){function b(){e(this,b),a.apply(this,arguments)}return f(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}(h["default"]);j["default"].registercomponent("customcontrolspacer",k),c["default"]=k,b.exports=c["default"]},{"../../component.js":67,"./spacer.js":84}],84:[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("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("../../component.js"),h=d(g),i=function(a){function b(){e(this,b),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,b.exports=c["default"]},{"../../component.js":67}],85:[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("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("./text-track-menu-item.js"),h=d(g),i=a("../../component.js"),j=d(i),k=function(a){function b(c,d){e(this,b),d.track={kind:d.kind,player:c,label:d.kind+" settings",selectable:!1,"default":!1,mode:"disabled"},d.selectable=!1,a.call(this,c,d),this.addclass("vjs-texttrack-settings"),this.controltext(", opens "+d.kind+" settings dialog")}return f(b,a),b.prototype.handleclick=function(){this.player().getchild("texttracksettings").show(),this.player().getchild("texttracksettings").el_.focus()},b}(h["default"]);j["default"].registercomponent("captionsettingsmenuitem",k),c["default"]=k,b.exports=c["default"]},{"../../component.js":67,"./text-track-menu-item.js":93}],86:[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("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("./text-track-button.js"),h=d(g),i=a("../../component.js"),j=d(i),k=a("./caption-settings-menu-item.js"),l=d(k),m=function(a){function b(c,d,f){e(this,b),a.call(this,c,d,f),this.el_.setattribute("aria-label","captions menu")}return f(b,a),b.prototype.buildcssclass=function(){return"vjs-captions-button "+a.prototype.buildcssclass.call(this)},b.prototype.update=function(){var b=2;a.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresnativetexttracks&&(b=1),this.items&&this.items.length>b?this.show():this.hide()},b.prototype.createitems=function(){var b=[];return this.player().tech_&&this.player().tech_.featuresnativetexttracks||b.push(new l["default"](this.player_,{kind:this.kind_})),a.prototype.createitems.call(this,b)},b}(h["default"]);m.prototype.kind_="captions",m.prototype.controltext_="captions",j["default"].registercomponent("captionsbutton",m),c["default"]=m,b.exports=c["default"]},{"../../component.js":67,"./caption-settings-menu-item.js":85,"./text-track-button.js":92}],87:[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("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("./text-track-button.js"),i=e(h),j=a("../../component.js"),k=e(j),l=a("./text-track-menu-item.js"),m=e(l),n=a("./chapters-track-menu-item.js"),o=e(n),p=a("../../menu/menu.js"),q=e(p),r=a("../../utils/dom.js"),s=d(r),t=a("../../utils/fn.js"),u=(d(t),a("../../utils/to-title-case.js")),v=e(u),w=a("global/window"),x=(e(w),function(a){function b(c,d,e){f(this,b),a.call(this,c,d,e),this.el_.setattribute("aria-label","chapters menu")}return g(b,a),b.prototype.buildcssclass=function(){return"vjs-chapters-button "+a.prototype.buildcssclass.call(this)},b.prototype.createitems=function(){var a=[],b=this.player_.texttracks();if(!b)return a;for(var c=0;c=0;e--){var f=b[e];if(f.kind===this.kind_){c=f;break}}var g=this.menu;if(void 0===g){g=new q["default"](this.player_);var h=s.createel("li",{classname:"vjs-menu-title",innerhtml:v["default"](this.kind_),tabindex:-1});g.children_.unshift(h),s.insertelfirst(h,g.contentel())}else d.foreach(function(a){return g.removechild(a)}),d=[];if(c&&null==c.cues){c.mode="hidden";var i=this.player_.remotetexttrackels().gettrackelementbytrack_(c);i&&i.addeventlistener("load",function(){return a.update()})}if(c&&c.cues&&c.cues.length>0)for(var j=c.cues,k=void 0,e=0,l=j.length;l>e;e++){k=j[e];var m=new o["default"](this.player_,{track:c,cue:k});d.push(m),g.addchild(m)}return d.length>0&&this.show(),this.items=d,g},b}(i["default"]));x.prototype.kind_="chapters",x.prototype.controltext_="chapters",k["default"].registercomponent("chaptersbutton",x),c["default"]=x,b.exports=c["default"]},{"../../component.js":67,"../../menu/menu.js":111,"../../utils/dom.js":142,"../../utils/fn.js":144,"../../utils/to-title-case.js":151,"./chapters-track-menu-item.js":88,"./text-track-button.js":92,"./text-track-menu-item.js":93,"global/window":2}],88:[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("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("../../menu/menu-item.js"),i=e(h),j=a("../../component.js"),k=e(j),l=a("../../utils/fn.js"),m=d(l),n=function(a){function b(c,d){f(this,b);var e=d.track,g=d.cue,h=c.currenttime();d.label=g.text,d.selected=g.starttime<=h&&hc;c++){var e=a[c];if(e.kind!==this.kind_&&"showing"===e.mode){b=!0;break}}b?this.disable():this.enable()},b.prototype.buildcssclass=function(){return"vjs-descriptions-button "+a.prototype.buildcssclass.call(this)},b}(i["default"]);n.prototype.kind_="descriptions",n.prototype.controltext_="descriptions",k["default"].registercomponent("descriptionsbutton",n),c["default"]=n,b.exports=c["default"]},{"../../component.js":67,"../../utils/fn.js":144,"./text-track-button.js":92}],90:[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("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("./text-track-menu-item.js"),h=d(g),i=a("../../component.js"),j=d(i),k=function(a){function b(c,d){e(this,b),d.track={kind:d.kind,player:c,label:d.kind+" off","default":!1,mode:"disabled"},d.selectable=!0,a.call(this,c,d),this.selected(!0)}return f(b,a),b.prototype.handletrackschange=function(){for(var a=this.player().texttracks(),b=!0,c=0,d=a.length;d>c;c++){var e=a[c];if(e.kind===this.track.kind&&"showing"===e.mode){b=!1;break}}this.selected(b)},b}(h["default"]);j["default"].registercomponent("offtexttrackmenuitem",k),c["default"]=k,b.exports=c["default"]},{"../../component.js":67,"./text-track-menu-item.js":93}],91:[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("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("./text-track-button.js"),h=d(g),i=a("../../component.js"),j=d(i),k=function(a){function b(c,d,f){e(this,b),a.call(this,c,d,f),this.el_.setattribute("aria-label","subtitles menu")}return f(b,a),b.prototype.buildcssclass=function(){return"vjs-subtitles-button "+a.prototype.buildcssclass.call(this)},b}(h["default"]);k.prototype.kind_="subtitles",k.prototype.controltext_="subtitles",j["default"].registercomponent("subtitlesbutton",k),c["default"]=k,b.exports=c["default"]},{"../../component.js":67,"./text-track-button.js":92}],92:[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("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("../track-button.js"),i=e(h),j=a("../../component.js"),k=e(j),l=a("../../utils/fn.js"),m=(d(l),a("./text-track-menu-item.js")),n=e(m),o=a("./off-text-track-menu-item.js"),p=e(o),q=function(a){function b(c){var d=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];f(this,b),d.tracks=c.texttracks(),a.call(this,c,d)}return g(b,a),b.prototype.createitems=function(){var a=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];a.push(new p["default"](this.player_,{kind:this.kind_}));var b=this.player_.texttracks();if(!b)return a;for(var c=0;ccurrent time 0:00'},{"aria-live":"off"}),b.appendchild(this.contentel_),b},b.prototype.updatecontent=function(){var a=this.player_.scrubbing()?this.player_.getcache().currenttime:this.player_.currenttime(),b=this.localize("current time"),c=m["default"](a,this.player_.duration());c!==this.formattedtime_&&(this.formattedtime_=c,this.contentel_.innerhtml=''+b+" "+c)},b}(i["default"]);i["default"].registercomponent("currenttimedisplay",n),c["default"]=n,b.exports=c["default"]},{"../../component.js":67,"../../utils/dom.js":142,"../../utils/format-time.js":145}],95:[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("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("../../component.js"),i=e(h),j=a("../../utils/dom.js"),k=d(j),l=a("../../utils/format-time.js"),m=e(l),n=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.on(c,"durationchange",this.updatecontent)}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(){var a=this.player_.duration();if(a&&this.duration_!==a){this.duration_=a;var b=this.localize("duration time"),c=m["default"](a);this.contentel_.innerhtml=''+b+" "+c}},b}(i["default"]);i["default"].registercomponent("durationdisplay",n),c["default"]=n,b.exports=c["default"]},{"../../component.js":67,"../../utils/dom.js":142,"../../utils/format-time.js":145}],96:[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("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("../../component.js"),i=e(h),j=a("../../utils/dom.js"),k=d(j),l=a("../../utils/format-time.js"),m=e(l),n=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.on(c,"timeupdate",this.updatecontent),this.on(c,"durationchange",this.updatecontent)}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(){if(this.player_.duration()){var a=this.localize("remaining time"),b=m["default"](this.player_.remainingtime());b!==this.formattedtime_&&(this.formattedtime_=b,this.contentel_.innerhtml=''+a+" -"+b)}},b}(i["default"]);i["default"].registercomponent("remainingtimedisplay",n),c["default"]=n,b.exports=c["default"]},{"../../component.js":67,"../../utils/dom.js":142,"../../utils/format-time.js":145}],97:[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("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("../../component.js"),h=d(g),i=function(a){function b(){e(this,b),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,b.exports=c["default"]},{"../../component.js":67}],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){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}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("../menu/menu-button.js"),i=e(h),j=a("../component.js"),k=e(j),l=a("../utils/fn.js"),m=d(l),n=function(a){function b(c,d){f(this,b);var e=d.tracks;if(a.call(this,c,d),this.items.length<=1&&this.hide(),e){var g=m.bind(this,this.update);e.addeventlistener("removetrack",g),e.addeventlistener("addtrack",g),this.player_.on("dispose",function(){ e.removeeventlistener("removetrack",g),e.removeeventlistener("addtrack",g)})}}return g(b,a),b}(i["default"]);k["default"].registercomponent("trackbutton",n),c["default"]=n,b.exports=c["default"]},{"../component.js":67,"../menu/menu-button.js":109,"../utils/fn.js":144}],99:[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("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("../../slider/slider.js"),i=e(h),j=a("../../component.js"),k=e(j),l=a("../../utils/fn.js"),m=d(l),n=a("./volume-level.js"),o=(e(n),function(a){function b(c,d){f(this,b),a.call(this,c,d),this.on(c,"volumechange",this.updateariaattributes),c.ready(m.bind(this,this.updateariaattributes))}return g(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},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(){var a=(100*this.player_.volume()).tofixed(2);this.el_.setattribute("aria-valuenow",a),this.el_.setattribute("aria-valuetext",a+"%")},b}(i["default"]));o.prototype.options_={children:["volumelevel"],barname:"volumelevel"},o.prototype.playerevent="volumechange",k["default"].registercomponent("volumebar",o),c["default"]=o,b.exports=c["default"]},{"../../component.js":67,"../../slider/slider.js":119,"../../utils/fn.js":144,"./volume-level.js":101}],100:[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("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("../../component.js"),h=d(g),i=a("./volume-bar.js"),j=(d(i),function(a){function b(c,d){e(this,b),a.call(this,c,d),c.tech_&&c.tech_.featuresvolumecontrol===!1&&this.addclass("vjs-hidden"),this.on(c,"loadstart",function(){c.tech_.featuresvolumecontrol===!1?this.addclass("vjs-hidden"):this.removeclass("vjs-hidden")})}return f(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:"vjs-volume-control vjs-control"})},b}(h["default"]));j.prototype.options_={children:["volumebar"]},h["default"].registercomponent("volumecontrol",j),c["default"]=j,b.exports=c["default"]},{"../../component.js":67,"./volume-bar.js":99}],101:[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("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("../../component.js"),h=d(g),i=function(a){function b(){e(this,b),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,b.exports=c["default"]},{"../../component.js":67}],102:[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){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}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("../utils/fn.js"),i=e(h),j=a("../component.js"),k=d(j),l=a("../popup/popup.js"),m=d(l),n=a("../popup/popup-button.js"),o=d(n),p=a("./mute-toggle.js"),q=d(p),r=a("./volume-control/volume-bar.js"),s=d(r),t=function(a){function b(c){function d(){c.tech_&&c.tech_.featuresvolumecontrol===!1?this.addclass("vjs-hidden"):this.removeclass("vjs-hidden")}var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];f(this,b),void 0===e.inline&&(e.inline=!0),void 0===e.vertical&&(e.vertical=e.inline?!1:!0),e.volumebar=e.volumebar||{},e.volumebar.vertical=!!e.vertical,a.call(this,c,e),this.on(c,"volumechange",this.volumeupdate),this.on(c,"loadstart",this.volumeupdate),d.call(this),this.on(c,"loadstart",d),this.on(this.volumebar,["slideractive","focus"],function(){this.addclass("vjs-slider-active")}),this.on(this.volumebar,["sliderinactive","blur"],function(){this.removeclass("vjs-slider-active")}),this.on(this.volumebar,["focus"],function(){this.addclass("vjs-lock-showing")}),this.on(this.volumebar,["blur"],function(){this.removeclass("vjs-lock-showing")})}return g(b,a),b.prototype.buildcssclass=function(){var b="";return b=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+a.prototype.buildcssclass.call(this)+" "+b},b.prototype.createpopup=function(){var a=new m["default"](this.player_,{contenteltype:"div"}),b=new s["default"](this.player_,this.options_.volumebar);return a.addchild(b),this.menucontent=a,this.volumebar=b,this.attachvolumebarevents(),a},b.prototype.handleclick=function(){q["default"].prototype.handleclick.call(this),a.prototype.handleclick.call(this)},b.prototype.attachvolumebarevents=function(){this.menucontent.on(["mousedown","touchdown"],i.bind(this,this.handlemousedown))},b.prototype.handlemousedown=function(){this.on(["mousemove","touchmove"],i.bind(this.volumebar,this.volumebar.handlemousemove)),this.on(this.el_.ownerdocument,["mouseup","touchend"],this.handlemouseup)},b.prototype.handlemouseup=function(){this.off(["mousemove","touchmove"],i.bind(this.volumebar,this.volumebar.handlemousemove))},b}(o["default"]);t.prototype.volumeupdate=q["default"].prototype.update,t.prototype.controltext_="mute",k["default"].registercomponent("volumemenubutton",t),c["default"]=t,b.exports=c["default"]},{"../component.js":67,"../popup/popup-button.js":115,"../popup/popup.js":116,"../utils/fn.js":144,"./mute-toggle.js":73,"./volume-control/volume-bar.js":99}],103:[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("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("./component"),i=e(h),j=a("./modal-dialog"),k=e(j),l=a("./utils/dom"),m=(d(l),a("./utils/merge-options")),n=e(m),o=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.on(c,"error",this.open)}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"]);o.prototype.options_=n["default"](k["default"].prototype.options_,{fillalways:!0,temporary:!1,uncloseable:!0}),i["default"].registercomponent("errordisplay",o),c["default"]=o,b.exports=c["default"]},{"./component":67,"./modal-dialog":112,"./utils/dom":142,"./utils/merge-options":148}],104:[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}c.__esmodule=!0;var e=a("./utils/events.js"),f=d(e),g=function(){};g.prototype.allowedevents_={},g.prototype.on=function(a,b){var c=this.addeventlistener;this.addeventlistener=function(){},f.on(this,a,b),this.addeventlistener=c},g.prototype.addeventlistener=g.prototype.on,g.prototype.off=function(a,b){f.off(this,a,b)},g.prototype.removeeventlistener=g.prototype.off,g.prototype.one=function(a,b){var c=this.addeventlistener;this.addeventlistener=function(){},f.one(this,a,b),this.addeventlistener=c},g.prototype.trigger=function(a){var b=a.type||a;"string"==typeof a&&(a={type:b}),a=f.fixevent(a),this.allowedevents_[b]&&this["on"+b]&&this["on"+b](a),f.trigger(this,a)},g.prototype.dispatchevent=g.prototype.trigger,c["default"]=g,b.exports=c["default"]},{"./utils/events.js":143}],105:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}c.__esmodule=!0;var e=a("./utils/log"),f=d(e),g=function(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&&(a.super_=b)},h=function(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],c=function(){a.apply(this,arguments)},d={};"object"==typeof b?("function"==typeof b.init&&(f["default"].warn("constructor logic via init() is deprecated; please use constructor() instead."),b.constructor=b.init),b.constructor!==object.prototype.constructor&&(c=b.constructor),d=b):"function"==typeof b&&(c=b),g(c,a);for(var e in d)d.hasownproperty(e)&&(c.prototype[e]=d[e]);return c};c["default"]=h,b.exports=c["default"]},{"./utils/log":147}],106:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}c.__esmodule=!0;for(var e=a("global/document"),f=d(e),g={},h=[["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"]],i=h[0],j=void 0,k=0;k1&&this.show()},b.prototype.createmenu=function(){var a=new m["default"](this.player_);if(this.options_.title){var b=o.createel("li",{classname:"vjs-menu-title",innerhtml:s["default"](this.options_.title),tabindex:-1});a.children_.unshift(b),o.insertelfirst(b,a.contentel())}if(this.items=this.createitems(),this.items)for(var c=0;c0&&(0>a?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,b.exports=c["default"]},{"../component.js":67,"../utils/dom.js":142,"../utils/events.js":143,"../utils/fn.js":144}],112:[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){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}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("./utils/dom"),i=e(h),j=a("./utils/fn"),k=e(j),l=a("./utils/log"),m=(d(l),a("./component")),n=d(m),o=a("./close-button"),p=(d(o),"vjs-modal-dialog"),q=27,r=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.opened_=this.hasbeenopened_=this.hasbeenfilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentel_=i.createel("div",{classname:p+"-content"},{role:"document"}),this.descel_=i.createel("p",{classname:p+"-description vjs-offscreen",id:this.el().getattribute("aria-describedby")}),i.textcontent(this.descel_,this.description()),this.el_.appendchild(this.descel_),this.el_.appendchild(this.contentel_)}return g(b,a),b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:this.buildcssclass(),tabindex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},b.prototype.buildcssclass=function(){return p+" vjs-hidden "+a.prototype.buildcssclass.call(this)},b.prototype.handlekeypress=function(a){a.which===q&&this.closeable()&&this.close()},b.prototype.label=function(){return this.options_.label||this.localize("modal window")},b.prototype.description=function(){var a=this.options_.description||this.localize("this is a modal window.");return this.closeable()&&(a+=" "+this.localize("this modal can be closed by pressing the escape key or activating the close button.")),a},b.prototype.open=function(){if(!this.opened_){var a=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillalways||!this.hasbeenopened_&&!this.hasbeenfilled_)&&this.fill(),this.wasplaying_=!a.paused(),this.wasplaying_&&a.pause(),this.closeable()&&this.on(this.el_.ownerdocument,"keydown",k.bind(this,this.handlekeypress)),a.controls(!1),this.show(),this.el().setattribute("aria-hidden","false"),this.trigger("modalopen"),this.hasbeenopened_=!0}return this},b.prototype.opened=function(a){return"boolean"==typeof a&&this[a?"open":"close"](),this.opened_},b.prototype.close=function(){if(this.opened_){var a=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasplaying_&&a.play(),this.closeable()&&this.off(this.el_.ownerdocument,"keydown",k.bind(this,this.handlekeypress)),a.controls(!0),this.hide(),this.el().setattribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},b.prototype.closeable=function c(a){if("boolean"==typeof a){var c=this.closeable_=!!a,b=this.getchild("closebutton");if(c&&!b){var d=this.contentel_;this.contentel_=this.el_,b=this.addchild("closebutton",{controltext:"close modal dialog"}),this.contentel_=d,this.on(b,"close",this.close)}!c&&b&&(this.off(b,"close",this.close),this.removechild(b),b.dispose())}return this.closeable_},b.prototype.fill=function(){return this.fillwith(this.content())},b.prototype.fillwith=function(a){var b=this.contentel(),c=b.parentnode,d=b.nextsibling;return this.trigger("beforemodalfill"),this.hasbeenfilled_=!0,c.removechild(b),this.empty(),i.insertcontent(b,a),this.trigger("modalfill"),d?c.insertbefore(b,d):c.appendchild(b),this},b.prototype.empty=function(){return this.trigger("beforemodalempty"),i.emptyel(this.contentel()),this.trigger("modalempty"),this},b.prototype.content=function(a){return"undefined"!=typeof a&&(this.content_=a),this.content_},b}(n["default"]);r.prototype.options_={temporary:!0},n["default"].registercomponent("modaldialog",r),c["default"]=r,b.exports=c["default"]},{"./close-button":66,"./component":67,"./utils/dom":142,"./utils/fn":144,"./utils/log":147}],113:[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("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("./component.js"),i=e(h),j=a("global/document"),k=e(j),l=a("global/window"),m=e(l),n=a("./utils/events.js"),o=d(n),p=a("./utils/dom.js"),q=d(p),r=a("./utils/fn.js"),s=d(r),t=a("./utils/guid.js"),u=d(t),v=a("./utils/browser.js"),w=d(v),x=a("./utils/log.js"),y=e(x),z=a("./utils/to-title-case.js"),a=e(z),b=a("./utils/time-ranges.js"),c=a("./utils/buffer.js"),d=a("./utils/stylesheet.js"),e=d(d),f=a("./fullscreen-api.js"),g=e(f),h=a("./media-error.js"),i=e(h),j=a("safe-json-parse/tuple"),k=e(j),l=a("object.assign"),m=e(l),n=a("./utils/merge-options.js"),o=e(n),p=a("./tracks/text-track-list-converter.js"),q=e(p),r=a("./tracks/audio-track-list.js"),s=e(r),t=a("./tracks/video-track-list.js"),u=e(t),v=a("./tech/loader.js"),w=(e(v),a("./poster-image.js")),x=(e(w),a("./tracks/text-track-display.js")),y=(e(x),a("./loading-spinner.js")),z=(e(y),a("./big-play-button.js")),$=(e(z),a("./control-bar/control-bar.js")),_=(e($),a("./error-display.js")),aa=(e(_),a("./tracks/text-track-settings.js")),ba=(e(aa),a("./modal-dialog")),ca=e(ba),da=a("./tech/tech.js"),ea=e(da),fa=a("./tech/html5.js"),ga=(e(fa),function(a){function b(c,d,e){var g=this;if(f(this,b),c.id=c.id||"vjs_video_"+u.newguid(),d=m["default"](b.gettagsettings(c),d),d.initchildren=!1,d.createel=!1,d.reporttouchactivity=!1,!d.language)if("function"==typeof c.closest){var h=c.closest("[lang]");h&&(d.language=h.getattribute("lang"))}else for(var i=c;i&&1===i.nodetype;){if(q.getelattributes(i).hasownproperty("lang")){d.language=i.getattribute("lang");break}i=i.parentnode}if(a.call(this,null,d,e),!this.options_||!this.options_.techorder||!this.options_.techorder.length)throw new error("no techorder specified. did you overwrite videojs.options instead of just changing the properties you want to override?");this.tag=c,this.tagattributes=c&&q.getelattributes(c),this.language(this.options_.language),d.languages?!function(){var a={};object.getownpropertynames(d.languages).foreach(function(b){a[b.tolowercase()]=d.languages[b]}),g.languages_=a}():this.languages_=b.prototype.options_.languages,this.cache_={},this.poster_=d.poster||"",this.controls_=!!d.controls,c.controls=!1,this.scrubbing_=!1,this.el_=this.createel();var j=o["default"](this.options_);d.plugins&&!function(){var a=d.plugins;object.getownpropertynames(a).foreach(function(b){"function"==typeof this[b]?this[b](a[b]):y["default"].error("unable to find plugin:",b)},g)}(),this.options_.playeroptions=j,this.initchildren(),this.isaudio("audio"===c.nodename.tolowercase()),this.addclass(this.controls()?"vjs-controls-enabled":"vjs-controls-disabled"),this.el_.setattribute("role","region"),this.isaudio()?this.el_.setattribute("aria-label","audio player"):this.el_.setattribute("aria-label","video player"),this.isaudio()&&this.addclass("vjs-audio"),this.flexnotsupported_()&&this.addclass("vjs-no-flex"),w.is_ios||this.addclass("vjs-workinghover"),b.players[this.id_]=this,this.useractive(!0),this.reportuseractivity(),this.listenforuseractivity_(),this.on("fullscreenchange",this.handlefullscreenchange_),this.on("stageclick",this.handlestageclick_)}return g(b,a),b.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleel_&&this.styleel_.parentnode&&this.styleel_.parentnode.removechild(this.styleel_),b.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),a.prototype.dispose.call(this)},b.prototype.createel=function(){var b=this.el_=a.prototype.createel.call(this,"div"),c=this.tag;c.removeattribute("width"),c.removeattribute("height");var d=q.getelattributes(c);if(object.getownpropertynames(d).foreach(function(a){"class"===a?b.classname=d[a]:b.setattribute(a,d[a])}),c.playerid=c.id,c.id+="_html5_api",c.classname="vjs-tech",c.player=b.player=this,this.addclass("vjs-paused"),m["default"].videojs_no_dynamic_style!==!0){this.styleel_=e.createstyleelement("vjs-styles-dimensions");var e=q.$(".vjs-styles-defaults"),f=q.$("head");f.insertbefore(this.styleel_,e?e.nextsibling:f.firstchild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectratio(this.options_.aspectratio);for(var g=c.getelementsbytagname("a"),h=0;h=0&&(c.width=a),b>=0&&(c.height=b)))}var d=void 0,e=void 0,f=void 0,g=void 0;f=void 0!==this.aspectratio_&&"auto"!==this.aspectratio_?this.aspectratio_:this.videowidth()?this.videowidth()+":"+this.videoheight():"16:9"; var h=f.split(":"),i=h[1]/h[0];d=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/i:this.videowidth()||300,e=void 0!==this.height_?this.height_:d*i,g=/^[^a-za-z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addclass(g),e.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){this.tech_&&this.unloadtech_(),"html5"!==a&&this.tag&&(ea["default"].gettech("html5").disposemediaelement(this.tag),this.tag.player=null,this.tag=null),this.techname_=a,this.isready_=!1;var c=m["default"]({nativecontrolsfortouch:this.options_.nativecontrolsfortouch,source:b,playerid:this.id(),techid:this.id()+"_"+a+"_api",videotracks:this.videotracks_,texttracks:this.texttracks_,audiotracks:this.audiotracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[a.tolowercase()]);this.tag&&(c.tag=this.tag),b&&(this.currenttype_=b.type,b.src===this.cache_.src&&this.cache_.currenttime>0&&(c.starttime=this.cache_.currenttime),this.cache_.src=b.src);var d=ea["default"].gettech(a);d||(d=i["default"].getcomponent(a)),this.tech_=new d(c),this.tech_.ready(s.bind(this,this.handletechready_),!0),q["default"].jsontotexttracks(this.texttracksjson_||[],this.tech_),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_,"progress",this.handletechprogress_),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_,"suspend",this.handletechsuspend_),this.on(this.tech_,"abort",this.handletechabort_),this.on(this.tech_,"emptied",this.handletechemptied_),this.on(this.tech_,"stalled",this.handletechstalled_),this.on(this.tech_,"loadedmetadata",this.handletechloadedmetadata_),this.on(this.tech_,"loadeddata",this.handletechloadeddata_),this.on(this.tech_,"timeupdate",this.handletechtimeupdate_),this.on(this.tech_,"ratechange",this.handletechratechange_),this.on(this.tech_,"volumechange",this.handletechvolumechange_),this.on(this.tech_,"texttrackchange",this.handletechtexttrackchange_),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"===a&&this.tag||q.insertelfirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},b.prototype.unloadtech_=function(){this.videotracks_=this.videotracks(),this.texttracks_=this.texttracks(),this.audiotracks_=this.audiotracks(),this.texttracksjson_=q["default"].texttrackstojson(this.tech_),this.isready_=!1,this.tech_.dispose(),this.tech_=!1},b.prototype.tech=function(a){if(a&&a.iwillnotusethisinplugins)return this.tech_;var b="\n please make sure that you are not using this inside of a plugin.\n to disable this alert and error, please pass in an object with\n `iwillnotusethisinplugins` to the `tech` method. see\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";throw m["default"].alert(b),new error(b)},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){y["default"]("deleting tag.poster throws in some browsers",a)}this.play()}},b.prototype.handletechloadstart_=function(){this.removeclass("vjs-ended"),this.error(null),this.paused()?(this.hasstarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},b.prototype.hasstarted=function(a){return void 0!==a?(this.hasstarted_!==a&&(this.hasstarted_=a,a?(this.addclass("vjs-has-started"),this.trigger("firstplay")):this.removeclass("vjs-has-started")),this):!!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&&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.handletechprogress_=function(){this.trigger("progress")},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.handletechsuspend_=function(){this.trigger("suspend")},b.prototype.handletechabort_=function(){this.trigger("abort")},b.prototype.handletechemptied_=function(){this.trigger("emptied")},b.prototype.handletechstalled_=function(){this.trigger("stalled")},b.prototype.handletechloadedmetadata_=function(){this.trigger("loadedmetadata")},b.prototype.handletechtextdata_=function(){var a=null;arguments.length>1&&(a=arguments[1]),this.trigger("textdata",a)},b.prototype.handletechloadeddata_=function(){this.trigger("loadeddata")},b.prototype.handletechtimeupdate_=function(){this.trigger("timeupdate")},b.prototype.handletechratechange_=function(){this.trigger("ratechange")},b.prototype.handletechvolumechange_=function(){this.trigger("volumechange")},b.prototype.handletechtexttrackchange_=function(){this.trigger("texttrackchange")},b.prototype.getcache=function(){return this.cache_},b.prototype.techcall_=function(a,b){if(this.tech_&&!this.tech_.isready_)this.tech_.ready(function(){this[a](b)},!0);else try{this.tech_&&this.tech_[a](b)}catch(c){throw y["default"](c),c}},b.prototype.techget_=function(a){if(this.tech_&&this.tech_.isready_)try{return this.tech_[a]()}catch(b){throw void 0===this.tech_[a]?y["default"]("video.js: "+a+" method not defined for "+this.techname_+" playback technology.",b):"typeerror"===b.name?(y["default"]("video.js: "+a+" unavailable on "+this.techname_+" playback technology element.",b),this.tech_.isready_=!1):y["default"](b),b}},b.prototype.play=function(){return this.src()||this.currentsrc()?this.techcall_("play"):this.tech_.one("loadstart",function(){this.play()}),this},b.prototype.pause=function(){return this.techcall_("pause"),this},b.prototype.paused=function(){return this.techget_("paused")===!1?!1:!0},b.prototype.scrubbing=function(a){return void 0!==a?(this.scrubbing_=!!a,a?this.addclass("vjs-scrubbing"):this.removeclass("vjs-scrubbing"),this):this.scrubbing_},b.prototype.currenttime=function(a){return void 0!==a?(this.techcall_("setcurrenttime",a),this):this.cache_.currenttime=this.techget_("currenttime")||0},b.prototype.duration=function(a){return void 0===a?this.cache_.duration||0:(a=parsefloat(a)||0,0>a&&(a=1/0),a!==this.cache_.duration&&(this.cache_.duration=a,a===1/0?this.addclass("vjs-live"):this.removeclass("vjs-live"),this.trigger("durationchange")),this)},b.prototype.remainingtime=function(){return this.duration()-this.currenttime()},b.prototype.buffered=function c(){var c=this.techget_("buffered");return c&&c.length||(c=b.createtimerange(0,0)),c},b.prototype.bufferedpercent=function(){return c.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 void 0!==a?(b=math.max(0,math.min(1,parsefloat(a))),this.cache_.volume=b,this.techcall_("setvolume",b),this):(b=parsefloat(this.techget_("volume")),isnan(b)?1:b)},b.prototype.muted=function(a){return void 0!==a?(this.techcall_("setmuted",a),this):this.techget_("muted")||!1},b.prototype.supportsfullscreen=function(){return this.techget_("supportsfullscreen")||!1},b.prototype.isfullscreen=function(a){return void 0!==a?(this.isfullscreen_=!!a,this):!!this.isfullscreen_},b.prototype.requestfullscreen=function(){var a=g["default"];return this.isfullscreen(!0),a.requestfullscreen?(o.on(k["default"],a.fullscreenchange,s.bind(this,function b(){this.isfullscreen(k["default"][a.fullscreenelement]),this.isfullscreen()===!1&&o.off(k["default"],a.fullscreenchange,b),this.trigger("fullscreenchange")})),this.el_[a.requestfullscreen]()):this.tech_.supportsfullscreen()?this.techcall_("enterfullscreen"):(this.enterfullwindow(),this.trigger("fullscreenchange")),this},b.prototype.exitfullscreen=function(){var a=g["default"];return this.isfullscreen(!1),a.requestfullscreen?k["default"][a.exitfullscreen]():this.tech_.supportsfullscreen()?this.techcall_("exitfullscreen"):(this.exitfullwindow(),this.trigger("fullscreenchange")),this},b.prototype.enterfullwindow=function(){this.isfullwindow=!0,this.docorigoverflow=k["default"].documentelement.style.overflow,o.on(k["default"],"keydown",s.bind(this,this.fullwindowonesckey)),k["default"].documentelement.style.overflow="hidden",q.addelclass(k["default"].body,"vjs-full-window"),this.trigger("enterfullwindow")},b.prototype.fullwindowonesckey=function(a){27===a.keycode&&(this.isfullscreen()===!0?this.exitfullscreen():this.exitfullwindow())},b.prototype.exitfullwindow=function(){this.isfullwindow=!1,o.off(k["default"],"keydown",this.fullwindowonesckey),k["default"].documentelement.style.overflow=this.docorigoverflow,q.removeelclass(k["default"].body,"vjs-full-window"),this.trigger("exitfullwindow")},b.prototype.canplaytype=function(a){for(var b=void 0,c=0,d=this.options_.techorder;c0&&(h=this.settimeout(function(){this.useractivity_||this.useractive(!1)},a))}},250)}},b.prototype.playbackrate=function(a){return void 0!==a?(this.techcall_("setplaybackrate",a),this):this.tech_&&this.tech_.featuresplaybackrate?this.techget_("playbackrate"):1},b.prototype.isaudio=function(a){return void 0!==a?(this.isaudio_=!!a,this):!!this.isaudio_},b.prototype.networkstate=function(){return this.techget_("networkstate")},b.prototype.readystate=function(){return this.techget_("readystate")},b.prototype.videotracks=function(){return this.tech_?this.tech_.videotracks():(this.videotracks_=this.videotracks_||new u["default"],this.videotracks_)},b.prototype.audiotracks=function(){return this.tech_?this.tech_.audiotracks():(this.audiotracks_=this.audiotracks_||new s["default"],this.audiotracks_)},b.prototype.texttracks=function(){return this.tech_&&this.tech_.texttracks()},b.prototype.remotetexttracks=function(){return this.tech_&&this.tech_.remotetexttracks()},b.prototype.remotetexttrackels=function(){return this.tech_&&this.tech_.remotetexttrackels()},b.prototype.addtexttrack=function(a,b,c){return this.tech_&&this.tech_.addtexttrack(a,b,c)},b.prototype.addremotetexttrack=function(a){return this.tech_&&this.tech_.addremotetexttrack(a)},b.prototype.removeremotetexttrack=function(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],b=a.track,c=void 0===b?arguments[0]:b;this.tech_&&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){return void 0===a?this.language_:(this.language_=(""+a).tolowercase(),this)},b.prototype.languages=function(){return o["default"](b.prototype.options_.languages,this.languages_)},b.prototype.tojson=function(){var a=o["default"](this.options_),b=a.tracks;a.tracks=[];for(var c=0;ci;i++){var k=h[i],l=k.nodename.tolowercase();"source"===l?b.sources.push(q.getelattributes(k)):"track"===l&&b.tracks.push(q.getelattributes(k))}return b},b}(i["default"]));ga.players={};var ha=m["default"].navigator;ga.prototype.options_={techorder:["html5","flash"],html5:{},flash:{},defaultvolume:0,inactivitytimeout:2e3,playbackrates:[],children:["medialoader","posterimage","texttrackdisplay","loadingspinner","bigplaybutton","controlbar","errordisplay","texttracksettings"],language:ha.languages&&ha.languages[0]||ha.userlanguage||ha.language||"en",languages:{},notsupportedmessage:"no compatible source was found for this media."},ga.prototype.handletechloadstart_,ga.prototype.handleloadedmetadata_,ga.prototype.handletextdata_,ga.prototype.handleloadeddata_,ga.prototype.handleuseractive_,ga.prototype.handleuserinactive_,ga.prototype.handletimeupdate_,ga.prototype.handletechended_,ga.prototype.handlevolumechange_,ga.prototype.handleerror_,ga.prototype.flexnotsupported_=function(){var a=k["default"].createelement("i");return!("flexbasis"in a.style||"webkitflexbasis"in a.style||"mozflexbasis"in a.style||"msflexbasis"in a.style||"msflexorder"in a.style)},i["default"].registercomponent("player",ga),c["default"]=ga,b.exports=c["default"]},{"./big-play-button.js":63,"./component.js":67,"./control-bar/control-bar.js":70,"./error-display.js":103,"./fullscreen-api.js":106,"./loading-spinner.js":107,"./media-error.js":108,"./modal-dialog":112,"./poster-image.js":117,"./tech/html5.js":122,"./tech/loader.js":123,"./tech/tech.js":124,"./tracks/audio-track-list.js":125,"./tracks/text-track-display.js":130,"./tracks/text-track-list-converter.js":131,"./tracks/text-track-settings.js":133,"./tracks/video-track-list.js":138,"./utils/browser.js":140,"./utils/buffer.js":141,"./utils/dom.js":142,"./utils/events.js":143,"./utils/fn.js":144,"./utils/guid.js":146,"./utils/log.js":147,"./utils/merge-options.js":148,"./utils/stylesheet.js":149,"./utils/time-ranges.js":150,"./utils/to-title-case.js":151,"global/document":1,"global/window":2,"object.assign":45,"safe-json-parse/tuple":54}],114:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}c.__esmodule=!0;var e=a("./player.js"),f=d(e),g=function(a,b){f["default"].prototype[a]=b};c["default"]=g,b.exports=c["default"]},{"./player.js":113}],115:[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("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("../clickable-component.js"),i=e(h),j=a("../component.js"),k=e(j),l=a("./popup.js"),m=(e(l),a("../utils/dom.js")),n=(d(m),a("../utils/fn.js")),o=(d(n),a("../utils/to-title-case.js")),p=(e(o),function(a){function b(c){var d=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];f(this,b),a.call(this,c,d),this.update()}return g(b,a),b.prototype.update=function(){var a=this.createpopup();this.popup&&this.removechild(this.popup),this.popup=a,this.addchild(a),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},b.prototype.createpopup=function(){},b.prototype.createel=function(){return a.prototype.createel.call(this,"div",{classname:this.buildcssclass()})},b.prototype.buildcssclass=function(){var b="vjs-menu-button";return b+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+b+" "+a.prototype.buildcssclass.call(this)},b}(i["default"]));k["default"].registercomponent("popupbutton",p),c["default"]=p,b.exports=c["default"]},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":142,"../utils/fn.js":144,"../utils/to-title-case.js":151,"./popup.js":116}],116:[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("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("../component.js"),i=e(h),j=a("../utils/dom.js"),k=d(j),l=a("../utils/fn.js"),m=d(l),n=a("../utils/events.js"),o=d(n),p=function(a){function b(){f(this,b),a.apply(this,arguments)}return g(b,a),b.prototype.additem=function(a){this.addchild(a),a.on("click",m.bind(this,function(){this.unlockshowing()}))},b.prototype.createel=function(){var b=this.options_.contenteltype||"ul";this.contentel_=k.createel(b,{classname:"vjs-menu-content"});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}(i["default"]);i["default"].registercomponent("popup",p),c["default"]=p,b.exports=c["default"]},{"../component.js":67,"../utils/dom.js":142,"../utils/events.js":143,"../utils/fn.js":144}],117:[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("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("./clickable-component.js"),i=e(h),j=a("./component.js"),k=e(j),l=a("./utils/fn.js"),m=d(l),n=a("./utils/dom.js"),o=d(n),p=a("./utils/browser.js"),q=d(p),r=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.update(),c.on("posterchange",m.bind(this,this.update))}return g(b,a),b.prototype.dispose=function(){this.player().off("posterchange",this.update),a.prototype.dispose.call(this)},b.prototype.createel=function(){var a=o.createel("div",{classname:"vjs-poster",tabindex:-1});return q.background_size_supported||(this.fallbackimg_=o.createel("img"),a.appendchild(this.fallbackimg_)),a},b.prototype.update=function(){var a=this.player().poster();this.setsrc(a),a?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(){this.player_.paused()?this.player_.play():this.player_.pause()},b}(i["default"]);k["default"].registercomponent("posterimage",r),c["default"]=r,b.exports=c["default"]},{"./clickable-component.js":65,"./component.js":67,"./utils/browser.js":140,"./utils/dom.js":142,"./utils/fn.js":144}],118:[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}c.__esmodule=!0;var f=a("./utils/events.js"),g=e(f),h=a("global/document"),i=d(h),j=a("global/window"),k=d(j),l=!1,m=void 0,n=function(){var a=i["default"].getelementsbytagname("video"),b=i["default"].getelementsbytagname("audio"),c=[];if(a&&a.length>0)for(var d=0,e=a.length;e>d;d++)c.push(a[d]);if(b&&b.length>0)for(var d=0,e=b.length;e>d;d++)c.push(b[d]);if(c&&c.length>0)for(var d=0,e=c.length;e>d;d++){var f=c[d];if(!f||!f.getattribute){o(1);break}if(void 0===f.player){var g=f.getattribute("data-setup");if(null!==g){m(f)}}}else l||o(1)},o=function(a,b){b&&(m=b),settimeout(n,a)};"complete"===i["default"].readystate?l=!0:g.one(k["default"],"load",function(){l=!0});var p=function(){return l};c.autosetup=n,c.autosetuptimeout=o,c.hasloaded=p},{"./utils/events.js":143,"global/document":1,"global/window":2}],119:[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("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("../component.js"),i=e(h),j=a("../utils/dom.js"),k=d(j),l=a("object.assign"),m=e(l),n=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.bar=this.getchild(this.options_.barname),this.vertical(!!this.options_.vertical),this.on("mousedown",this.handlemousedown),this.on("touchstart",this.handlemousedown),this.on("focus",this.handlefocus),this.on("blur",this.handleblur),this.on("click",this.handleclick),this.on(c,"controlsvisible",this.update),this.on(c,this.playerevent,this.update)}return g(b,a),b.prototype.createel=function(b){var c=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],d=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return c.classname=c.classname+" vjs-slider",c=m["default"]({tabindex:0},c),d=m["default"]({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(),k.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(){},b.prototype.handlemouseup=function(){var a=this.bar.el_.ownerdocument;k.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||0>a||a===1/0)&&(a=0);var c=(100*a).tofixed(2)+"%";this.vertical()?b.el().style.height=c:b.el().style.width=c}}},b.prototype.calculatedistance=function(a){var b=k.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){return void 0===a?this.vertical_||!1:(this.vertical_=!!a,this.addclass(this.vertical_?"vjs-slider-vertical":"vjs-slider-horizontal"),this)},b}(i["default"]);i["default"].registercomponent("slider",n),c["default"]=n,b.exports=c["default"]},{"../component.js":67,"../utils/dom.js":142,"object.assign":45}],120:[function(a,b,c){"use strict";function d(a){return a.streamingformats={"rtmp/mp4":"mp4","rtmp/flv":"flv"},a.streamfromparts=function(a,b){return a+"&"+b},a.streamtoparts=function(a){var b={connection:"",stream:""};if(!a)return b;var c=a.search(/&(?!\w+=)/),d=void 0;return-1!==c?d=c+1:(c=d=a.lastindexof("/")+1,0===c&&(c=d=a.length)),b.connection=a.substring(0,c),b.stream=a.substring(d,a.length),b},a.isstreamingtype=function(b){return b in a.streamingformats},a.rtmp_re=/^rtmp[set]?:\/\//i,a.isstreamingsrc=function(b){return a.rtmp_re.test(b)},a.rtmpsourcehandler={},a.rtmpsourcehandler.canplaytype=function(b){return a.isstreamingtype(b)?"maybe":""},a.rtmpsourcehandler.canhandlesource=function(b){var c=a.rtmpsourcehandler.canplaytype(b.type);return c?c:a.isstreamingsrc(b.src)?"maybe":""},a.rtmpsourcehandler.handlesource=function(b,c){var d=a.streamtoparts(b.src);c.setrtmpconnection(d.connection),c.setrtmpstream(d.stream)},a.registersourcehandler(a.rtmpsourcehandler),a}c.__esmodule=!0,c["default"]=d,b.exports=c["default"]},{}],121:[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("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 h(a){var b=a.charat(0).touppercase()+a.slice(1);a["set"+b]=function(b){return this.el_.vjs_setproperty(a,b)}}function i(a){a[a]=function(){return this.el_.vjs_getproperty(a)}}c.__esmodule=!0;for(var j=a("./tech"),k=e(j),l=a("../utils/dom.js"),m=d(l),n=a("../utils/url.js"),o=d(n),p=a("../utils/time-ranges.js"),q=a("./flash-rtmp"),r=e(q),s=a("../component"),t=e(s),u=a("global/window"),v=e(u),w=a("object.assign"),x=e(w),y=v["default"].navigator,z=function(a){function b(c,d){f(this,b),a.call(this,c,d),c.source&&this.ready(function(){this.setsource(c.source)},!0),c.starttime&&this.ready(function(){this.load(),this.play(),this.currenttime(c.starttime)},!0),v["default"].videojs=v["default"].videojs||{},v["default"].videojs.flash=v["default"].videojs.flash||{},v["default"].videojs.flash.onready=b.onready,v["default"].videojs.flash.onevent=b.onevent,v["default"].videojs.flash.onerror=b.onerror,this.on("seeked",function(){this.lastseektarget_=void 0})}return g(b,a),b.prototype.createel=function(){var a=this.options_;a.swf||(a.swf="//vjs.zencdn.net/swf/5.1.0/video-js.swf");var c=a.techid,d=x["default"]({readyfunction:"videojs.flash.onready",eventproxyfunction:"videojs.flash.onevent",erroreventproxyfunction:"videojs.flash.onerror",autoplay:a.autoplay,preload:a.preload,loop:a.loop,muted:a.muted},a.flashvars),e=x["default"]({wmode:"opaque",bgcolor:"#000000"},a.params),f=x["default"]({id:c,name:c,"class":"vjs-tech"},a.attributes);return this.el_=b.embed(a.swf,d,e,f),this.el_.tech=this,this.el_},b.prototype.play=function(){this.ended()&&this.setcurrenttime(0),this.el_.vjs_play()},b.prototype.pause=function(){this.el_.vjs_pause()},b.prototype.src=function(a){return void 0===a?this.currentsrc():this.setsrc(a)},b.prototype.setsrc=function(a){if(a=o.getabsoluteurl(a),this.el_.vjs_src(a),this.autoplay()){var b=this;this.settimeout(function(){b.play()},0)}},b.prototype.seeking=function(){return void 0!==this.lastseektarget_},b.prototype.setcurrenttime=function(b){var c=this.seekable();c.length&&(b=b>c.start(0)?b:c.start(0),b=b=0?c:1/0},b.prototype.load=function(){this.el_.vjs_load()},b.prototype.poster=function(){this.el_.vjs_getproperty("poster")},b.prototype.setposter=function(){},b.prototype.seekable=function(){var a=this.duration();return 0===a?p.createtimerange():p.createtimerange(0,a)},b.prototype.buffered=function(){var a=this.el_.vjs_getproperty("buffered");return 0===a.length?p.createtimerange():p.createtimerange(a[0][0],a[0][1])},b.prototype.supportsfullscreen=function(){return!1},b.prototype.enterfullscreen=function(){return!1},b}(k["default"]),a=z.prototype,b="rtmpconnection,rtmpstream,preload,defaultplaybackrate,playbackrate,autoplay,loop,mediagroup,controller,controls,volume,muted,defaultmuted".split(","),c="networkstate,readystate,initialtime,startoffsettime,paused,ended,videowidth,videoheight".split(","),d=0;d=10},k["default"].withsourcehandlers(z),z.nativesourcehandler={},z.nativesourcehandler.canplaytype=function(a){return a in z.formats?"maybe":""},z.nativesourcehandler.canhandlesource=function(a){function b(a){var b=o.getfileextension(a);return b?"video/"+b:""}var c;return c=a.type?a.type.replace(/;.*/,"").tolowercase():b(a.src),z.nativesourcehandler.canplaytype(c)},z.nativesourcehandler.handlesource=function(a,b){b.setsrc(a.src)},z.nativesourcehandler.dispose=function(){},z.registersourcehandler(z.nativesourcehandler),z.formats={"video/flv":"flv","video/x-flv":"flv","video/mp4":"mp4","video/m4v":"mp4"},z.onready=function(a){var b=m.getel(a),c=b&&b.tech;c&&c.el()&&z.checkready(c)},z.checkready=function(a){a.el()&&(a.el().vjs_getproperty?a.triggerready():this.settimeout(function(){z.checkready(a)},50))},z.onevent=function(a,b){var c=m.getel(a).tech;c.trigger(b,array.prototype.slice.call(arguments,2))},z.onerror=function(a,b){var c=m.getel(a).tech;return"srcnotfound"===b?c.error(4):void c.error("flash: "+b)},z.version=function(){var a="0,0,0";try{a=new v["default"].activexobject("shockwaveflash.shockwaveflash").getvariable("$version").replace(/\d+/g,",").match(/^,?(.+),?$/)[1]}catch(b){try{y.mimetypes["application/x-shockwave-flash"].enabledplugin&&(a=(y.plugins["shockwave flash 2.0"]||y.plugins["shockwave flash"]).description.replace(/\d+/g,",").match(/^,?(.+),?$/)[1])}catch(c){}}return a.split(",")},z.embed=function(a,b,c,d){var e=z.getembedcode(a,b,c,d),f=m.createel("div",{innerhtml:e}).childnodes[0];return f},z.getembedcode=function(a,b,c,d){var e=''}),d=x["default"]({data:a,width:"100%",height:"100%"},d),object.getownpropertynames(d).foreach(function(a){h+=a+'="'+d[a]+'" '}),""+e+h+">"+g+""},r["default"](z),t["default"].registercomponent("flash",z),k["default"].registertech("flash",z),c["default"]=z,b.exports=c["default"]},{"../component":67,"../utils/dom.js":142,"../utils/time-ranges.js":150,"../utils/url.js":152,"./flash-rtmp":120,"./tech":124,"global/window":2,"object.assign":45}],122:[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("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 h(a,b){return a.raw=b,a}c.__esmodule=!0;var i=h(["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("./tech.js"),k=e(j),l=a("../component"),m=e(l),n=a("../utils/dom.js"),o=d(n),p=a("../utils/url.js"),q=d(p),r=a("../utils/fn.js"),s=d(r),t=a("../utils/log.js"),u=e(t),v=a("tsml"),w=e(v),x=a("../../../src/js/tracks/text-track.js"),y=(e(x),a("../utils/browser.js")),z=d(y),a=a("global/document"),b=e(a),c=a("global/window"),d=e(c),e=a("object.assign"),f=e(e),g=a("../utils/merge-options.js"),h=e(g),i=a("../utils/to-title-case.js"),j=e(i),k=function(a){function b(c,d){var e=this;f(this,b),a.call(this,c,d);var g=c.source,h=!1;if(g&&(this.el_.currentsrc!==g.src||c.tag&&3===c.tag.initnetworkstate_)?this.setsource(g):this.handlelateinit_(this.el_),this.el_.haschildnodes()){for(var j=this.el_.childnodes,k=j.length,l=[];k--;){var m=j[k],n=m.nodename.tolowercase();"track"===n&&(this.featuresnativetexttracks?(this.remotetexttrackels().addtrackelement_(m),this.remotetexttracks().addtrack_(m.track),h||this.el_.hasattribute("crossorigin")||!q.iscrossorigin(m.src)||(h=!0)):l.push(m))}for(var o=0;o=0;g--){var h=f[g],i={};"undefined"!=typeof this.options_[h]&&(i[h]=this.options_[h]),o.setelattributes(a,i)}return a},b.prototype.handlelateinit_=function(a){var b=this;if(0!==a.networkstate&&3!==a.networkstate){if(0===a.readystate){var c=function(){var a=!1,c=function(){a=!0};b.on("loadstart",c);var d=function(){a||this.trigger("loadstart")};return b.on("loadedmetadata",d),b.ready(function(){this.off("loadstart",c),this.off("loadedmetadata",d),a||this.trigger("loadstart")}),{v:void 0}}();if("object"==typeof c)return c.v}var d=["loadstart"];d.push("loadedmetadata"),a.readystate>=2&&d.push("loadeddata"),a.readystate>=3&&d.push("canplay"),a.readystate>=4&&d.push("canplaythrough"),this.ready(function(){d.foreach(function(a){this.trigger(a)},this)})}},b.prototype.proxynativetexttracks_=function(){var a=this.el().texttracks;if(a){for(var b=0;b0&&(a="number"!=typeof k.test_vid.texttracks[0].mode),a&&z.is_firefox&&(a=!1),!a||"onremovetrack"in k.test_vid.texttracks||(a=!1),a},k.supportsnativevideotracks=function(){var a=!!k.test_vid.videotracks;return a},k.supportsnativeaudiotracks=function(){var a=!!k.test_vid.audiotracks;return a},k.events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],k.prototype.featuresvolumecontrol=k.cancontrolvolume(),k.prototype.featuresplaybackrate=k.cancontrolplaybackrate(),k.prototype.movingmediaelementindom=!z.is_ios,k.prototype.featuresfullscreenresize=!0,k.prototype.featuresprogressevents=!0,k.prototype.featuresnativetexttracks=k.supportsnativetexttracks(),k.prototype.featuresnativevideotracks=k.supportsnativevideotracks(),k.prototype.featuresnativeaudiotracks=k.supportsnativeaudiotracks();var m=void 0,n=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,o=/^video\/mp4/i;k.patchcanplaytype=function(){z.android_version>=4&&(m||(m=k.test_vid.constructor.prototype.canplaytype),k.test_vid.constructor.prototype.canplaytype=function(a){return a&&n.test(a)?"maybe":m.call(this,a)}),z.is_old_android&&(m||(m=k.test_vid.constructor.prototype.canplaytype),k.test_vid.constructor.prototype.canplaytype=function(a){return a&&o.test(a)?"maybe":m.call(this,a)})},k.unpatchcanplaytype=function(){var a=k.test_vid.constructor.prototype.canplaytype;return k.test_vid.constructor.prototype.canplaytype=m,m=null,a},k.patchcanplaytype(),k.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){}}()}},k.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){}}()}},m["default"].registercomponent("html5",k),k["default"].registertech("html5",k),c["default"]=k,b.exports=c["default"]},{"../../../src/js/tracks/text-track.js":134,"../component":67,"../utils/browser.js":140,"../utils/dom.js":142,"../utils/fn.js":144,"../utils/log.js":147,"../utils/merge-options.js":148,"../utils/to-title-case.js":151,"../utils/url.js":152,"./tech.js":124,"global/document":1,"global/window":2,"object.assign":45,tsml:55}],123:[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("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("../component.js"),h=d(g),i=a("./tech.js"),j=d(i),k=a("global/window"),l=(d(k),a("../utils/to-title-case.js")),m=d(l),n=function(a){function b(c,d,f){if(e(this,b),a.call(this,c,d,f),d.playeroptions.sources&&0!==d.playeroptions.sources.length)c.src(d.playeroptions.sources);else for(var g=0,i=d.playeroptions.techorder;g=0;e--)if(c[e].enabled){n(c,c[e]);break}if(k.is_ie8){d=m["default"].createelement("custom");for(var g in i["default"].prototype)"constructor"!==g&&(d[g]=i["default"].prototype[g]);for(var g in b.prototype)"constructor"!==g&&(d[g]=b.prototype[g])}return d=a.call(this,c,d),d.changing_=!1,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.prototype.addtrack=function(a){this.addtrack_(a)},b.prototype.removetrack=function(b){a.prototype.removetrack_.call(this,b)},b}(i["default"]);c["default"]=o,b.exports=c["default"]},{"../utils/browser.js":140,"./track-list":136,"global/document":1}],126:[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("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("./track-enums"),i=a("./track"),j=e(i),k=a("../utils/merge-options"),l=e(k),m=a("../utils/browser.js"),n=d(m),o=function(a){function b(){var c=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];f(this,b);var d=l["default"](c,{kind:h.audiotrackkind[c.kind]||""}),e=a.call(this,d),g=!1;if(n.is_ie8)for(var i in b.prototype)"constructor"!==i&&(e[i]=b.prototype[i]);return object.defineproperty(e,"enabled",{get:function(){return g},set:function(a){"boolean"==typeof a&&a!==g&&(g=a,this.trigger("enabledchange"))}}),d.enabled&&(e.enabled=d.enabled),e.loaded_=!0,e}return g(b,a),b}(j["default"]);c["default"]=o,b.exports=c["default"]},{"../utils/browser.js":140,"../utils/merge-options":148,"./track":137,"./track-enums":135}],127:[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){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}c.__esmodule=!0;var g=a("../utils/browser.js"),h=e(g),i=a("global/document"),j=d(i),k=function(){function a(){var b=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];f(this,a);var c=this;if(h.is_ie8){c=j["default"].createelement("custom");for(var d in a.prototype)"constructor"!==d&&(c[d]=a.prototype[d])}c.trackelements_=[],object.defineproperty(c,"length",{get:function(){return this.trackelements_.length}});for(var e=0,g=b.length;g>e;e++)c.addtrackelement_(b[e]);return h.is_ie8?c:void 0}return a.prototype.addtrackelement_=function(a){this.trackelements_.push(a)},a.prototype.gettrackelementbytrack_=function(a){for(var b=void 0,c=0,d=this.trackelements_.length;d>c;c++)if(a===this.trackelements_[c].track){b=this.trackelements_[c];break}return b},a.prototype.removetrackelement_=function(a){for(var b=0,c=this.trackelements_.length;c>b;b++)if(a===this.trackelements_[b]){this.trackelements_.splice(b,1);break}},a}();c["default"]=k,b.exports=c["default"]},{"../utils/browser.js":140,"global/document":1}],128:[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){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}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("../utils/browser.js"),i=e(h),j=a("global/document"),k=d(j),l=a("../event-target"),m=d(l),n=a("../tracks/text-track"),o=d(n),p=0,q=1,r=2,s=3,t=function(a){function b(){var c=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];f(this,b),a.call(this);var d=void 0,e=this;if(i.is_ie8){e=k["default"].createelement("custom");for(var g in b.prototype)"constructor"!==g&&(e[g]=b.prototype[g])}var h=new o["default"](c);return e.kind=h.kind,e.src=h.src,e.srclang=h.language,e.label=h.label,e["default"]=h["default"],object.defineproperty(e,"readystate",{get:function(){return d}}),object.defineproperty(e,"track",{get:function(){return h}}),d=p,h.addeventlistener("loadeddata",function(){d=r,e.trigger({type:"load",target:e})}),i.is_ie8?e:void 0}return g(b,a),b}(m["default"]);t.prototype.allowedevents_={load:"load"},t.none=p,t.loading=q,t.loaded=r,t.error=s,c["default"]=t,b.exports=c["default"]},{"../event-target":104,"../tracks/text-track":134,"../utils/browser.js":140,"global/document":1}],129:[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){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}c.__esmodule=!0;var g=a("../utils/browser.js"),h=e(g),i=a("global/document"),j=d(i),k=function(){function a(b){f(this,a);var c=this;if(h.is_ie8){c=j["default"].createelement("custom");for(var d in a.prototype)"constructor"!==d&&(c[d]=a.prototype[d])}return a.prototype.setcues_.call(c,b),object.defineproperty(c,"length",{get:function(){return this.length_}}),h.is_ie8?c:void 0}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(d>b)for(c=b;d>c;c++)e.call(this,c)},a.prototype.getcuebyid=function(a){for(var b=null,c=0,d=this.length;d>c;c++){var e=this[c];if(e.id===a){b=e;break}}return b},a}();c["default"]=k,b.exports=c["default"]},{"../utils/browser.js":140,"global/document":1}],130:[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("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 h(a,b){return"rgba("+parseint(a[1]+a[1],16)+","+parseint(a[2]+a[2],16)+","+parseint(a[3]+a[3],16)+","+b+")"}function i(a,b,c){try{a.style[b]=c}catch(d){}}c.__esmodule=!0;var j=a("../component"),k=e(j),l=a("../menu/menu.js"),m=(e(l),a("../menu/menu-item.js")),n=(e(m),a("../menu/menu-button.js")),o=(e(n),a("../utils/fn.js")),p=d(o),q=a("global/document"),r=(e(q),a("global/window")),s=e(r),t="#222",u="#ccc",v={monospace:"monospace",sansserif:"sans-serif",serif:"serif",monospacesansserif:'"andale mono", "lucida console", monospace',monospaceserif:'"courier new", monospace',proportionalsansserif:"sans-serif",proportionalserif:"serif",casual:'"comic sans ms", impact, fantasy',script:'"monotype corsiva", cursive',smallcaps:'"andale mono", "lucida console", monospace, sans-serif'},w=function(a){function b(c,d,e){f(this,b),a.call(this,c,d,e),c.on("loadstart",p.bind(this,this.toggledisplay)),c.on("texttrackchange",p.bind(this,this.updatedisplay)),c.ready(p.bind(this,function(){if(c.tech_&&c.tech_.featuresnativetexttracks)return void this.hide();c.on("fullscreenchange",p.bind(this,this.updatedisplay));for(var a=this.options_.playeroptions.tracks||[],b=0;bc;c++)if(this[c]===a){b=this[c],b.off&&b.off(),this.tracks_.splice(c,1);break}b&&this.trigger({track:b,type:"removetrack"})},b.prototype.gettrackbyid=function(a){for(var b=null,c=0,d=this.length;d>c;c++){var e=this[c];if(e.id===a){b=e;break}}return b},b}(i["default"]);c["default"]=p,b.exports=c["default"]},{"../utils/browser.js":140,"../utils/fn.js":144,"./track-list":136,"global/document":1}],133:[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("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 h(a){var b=void 0;return a.selectedoptions?b=a.selectedoptions[0]:a.options&&(b=a.options[a.options.selectedindex]),b.value}function i(a,b){if(b){var c=void 0;for(c=0;ccaptions settings dialog\n
beginning of dialog window. escape will cancel and close the window.
\n
\n
\n
\n text\n \n \n \n \n \n \n
\n
\n background\n \n \n \n \n \n \n
\n
\n window\n \n \n \n \n \n \n
\n
\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n
\n \n \n
\n
\n ';return d}c.__esmodule=!0;var k=a("../component"),l=e(k),m=a("../utils/events.js"),n=d(m),o=a("../utils/fn.js"),p=d(o),q=a("../utils/log.js"),r=e(q),s=a("safe-json-parse/tuple"),t=e(s),u=a("global/window"),v=e(u),w=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.hide(),void 0===d.persisttexttracksettings&&(this.options_.persisttexttracksettings=this.options_.playeroptions.persisttexttracksettings),n.on(this.$(".vjs-done-button"),"click",p.bind(this,function(){this.savesettings(),this.hide()})),n.on(this.$(".vjs-default-button"),"click",p.bind(this,function(){this.$(".vjs-fg-color > select").selectedindex=0,this.$(".vjs-bg-color > select").selectedindex=0,this.$(".window-color > select").selectedindex=0,this.$(".vjs-text-opacity > select").selectedindex=0,this.$(".vjs-bg-opacity > select").selectedindex=0,this.$(".vjs-window-opacity > select").selectedindex=0,this.$(".vjs-edge-style select").selectedindex=0,this.$(".vjs-font-family select").selectedindex=0,this.$(".vjs-font-percent select").selectedindex=2,this.updatedisplay()})),n.on(this.$(".vjs-fg-color > select"),"change",p.bind(this,this.updatedisplay)),n.on(this.$(".vjs-bg-color > select"),"change",p.bind(this,this.updatedisplay)),n.on(this.$(".window-color > select"),"change",p.bind(this,this.updatedisplay)),n.on(this.$(".vjs-text-opacity > select"),"change",p.bind(this,this.updatedisplay)), n.on(this.$(".vjs-bg-opacity > select"),"change",p.bind(this,this.updatedisplay)),n.on(this.$(".vjs-window-opacity > select"),"change",p.bind(this,this.updatedisplay)),n.on(this.$(".vjs-font-percent select"),"change",p.bind(this,this.updatedisplay)),n.on(this.$(".vjs-edge-style select"),"change",p.bind(this,this.updatedisplay)),n.on(this.$(".vjs-font-family select"),"change",p.bind(this,this.updatedisplay)),this.options_.persisttexttracksettings&&this.restoresettings()}return g(b,a),b.prototype.createel=function(){var b=this.id_,c="ttsettingsdialoglabel-"+b,d="ttsettingsdialogdescription-"+b;return a.prototype.createel.call(this,"div",{classname:"vjs-caption-settings vjs-modal-overlay",innerhtml:j(b,c,d),tabindex:-1},{role:"dialog","aria-labelledby":c,"aria-describedby":d})},b.prototype.getvalues=function(){var a=h(this.$(".vjs-edge-style select")),b=h(this.$(".vjs-font-family select")),c=h(this.$(".vjs-fg-color > select")),d=h(this.$(".vjs-text-opacity > select")),e=h(this.$(".vjs-bg-color > select")),f=h(this.$(".vjs-bg-opacity > select")),g=h(this.$(".window-color > select")),i=h(this.$(".vjs-window-opacity > select")),j=v["default"].parsefloat(h(this.$(".vjs-font-percent > select"))),k={backgroundopacity:f,textopacity:d,windowopacity:i,edgestyle:a,fontfamily:b,color:c,backgroundcolor:e,windowcolor:g,fontpercent:j};for(var l in k)(""===k[l]||"none"===k[l]||"fontpercent"===l&&1===k[l])&&delete k[l];return k},b.prototype.setvalues=function(a){i(this.$(".vjs-edge-style select"),a.edgestyle),i(this.$(".vjs-font-family select"),a.fontfamily),i(this.$(".vjs-fg-color > select"),a.color),i(this.$(".vjs-text-opacity > select"),a.textopacity),i(this.$(".vjs-bg-color > select"),a.backgroundcolor),i(this.$(".vjs-bg-opacity > select"),a.backgroundopacity),i(this.$(".window-color > select"),a.windowcolor),i(this.$(".vjs-window-opacity > select"),a.windowopacity);var b=a.fontpercent;b&&(b=b.tofixed(2)),i(this.$(".vjs-font-percent > select"),b)},b.prototype.restoresettings=function(){var a=void 0,b=void 0;try{var c=t["default"](v["default"].localstorage.getitem("vjs-text-track-settings"));a=c[0],b=c[1],a&&r["default"].error(a)}catch(d){r["default"].warn(d)}b&&this.setvalues(b)},b.prototype.savesettings=function(){if(this.options_.persisttexttracksettings){var a=this.getvalues();try{object.getownpropertynames(a).length>0?v["default"].localstorage.setitem("vjs-text-track-settings",json.stringify(a)):v["default"].localstorage.removeitem("vjs-text-track-settings")}catch(b){r["default"].warn(b)}}},b.prototype.updatedisplay=function(){var a=this.player_.getchild("texttrackdisplay");a&&a.updatedisplay()},b}(l["default"]);l["default"].registercomponent("texttracksettings",w),c["default"]=w,b.exports=c["default"]},{"../component":67,"../utils/events.js":143,"../utils/fn.js":144,"../utils/log.js":147,"global/window":2,"safe-json-parse/tuple":54}],134:[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("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("./text-track-cue-list"),i=e(h),j=a("../utils/fn.js"),k=d(j),l=a("./track-enums"),m=a("../utils/log.js"),n=e(m),o=a("global/document"),p=(e(o),a("global/window")),q=e(p),r=a("./track.js"),s=e(r),t=a("../utils/url.js"),u=a("xhr"),v=e(u),w=a("../utils/merge-options"),x=e(w),y=a("../utils/browser.js"),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&&(console.groupcollapsed,d.foreach(function(a){return n["default"].error(a)}),console.groupend),c.flush()},b=function(a,b){var c={uri:a},d=t.iscrossorigin(a);d&&(c.cors=d),v["default"](c,k.bind(this,function(a,c,d){return a?n["default"].error(a,c):(b.loaded_=!0,void("function"!=typeof q["default"].webvtt?b.tech_&&!function(){var a=function(){return a(d,b)};b.tech_.on("vttjsloaded",a),b.tech_.on("vttjserror",function(){n["default"].error("vttjs failed to load, stopping trying to process "+b.src),b.tech_.off("vttjsloaded",a)})}():a(d,b)))}))},c=function(a){function b(){var c=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(f(this,b),!c.tech)throw new error("a tech was not provided.");var d=x["default"](c,{kind:l.texttrackkind[c.kind]||"subtitles",language:c.language||c.srclang||""}),e=l.texttrackmode[d.mode]||"disabled",g=d["default"];("metadata"===d.kind||"chapters"===d.kind)&&(e="hidden");var h=a.call(this,d);if(h.tech_=d.tech,z.is_ie8)for(var j in b.prototype)"constructor"!==j&&(h[j]=b.prototype[j]);h.cues_=[],h.activecues_=[];var m=new i["default"](h.cues_),n=new i["default"](h.activecues_),o=!1,p=k.bind(h,function(){this.activecues,o&&(this.trigger("cuechange"),o=!1)});return"disabled"!==e&&h.tech_.on("timeupdate",p),object.defineproperty(h,"default",{get:function(){return g},set:function(){}}),object.defineproperty(h,"mode",{get:function(){return e},set:function(a){l.texttrackmode[a]&&(e=a,"showing"===e&&this.tech_.on("timeupdate",p),this.trigger("modechange"))}}),object.defineproperty(h,"cues",{get:function(){return this.loaded_?m:null},set:function(){}}),object.defineproperty(h,"activecues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return n;for(var a=this.tech_.currenttime(),b=[],c=0,d=this.cues.length;d>c;c++){var e=this.cues[c];e.starttime<=a&&e.endtime>=a?b.push(e):e.starttime===e.endtime&&e.starttime<=a&&e.starttime+.5>=a&&b.push(e)}if(o=!1,b.length!==this.activecues_.length)o=!0;else for(var c=0;cc;c++){var e=this.cues_[c];e===a&&(this.cues_.splice(c,1),b=!0)}b&&this.cues.setcues_(this.cues_)},b}(s["default"]);c.prototype.allowedevents_={cuechange:"cuechange"},c["default"]=c,b.exports=c["default"]},{"../utils/browser.js":140,"../utils/fn.js":144,"../utils/log.js":147,"../utils/merge-options":148,"../utils/url.js":152,"./text-track-cue-list":129,"./track-enums":135,"./track.js":137,"global/document":1,"global/window":2,xhr:56}],135:[function(a,b,c){"use strict";c.__esmodule=!0;var d={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},e={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},f={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},g={disabled:"disabled",hidden:"hidden",showing:"showing"};c["default"]={videotrackkind:d,audiotrackkind:e,texttrackkind:f,texttrackmode:g},b.exports=c["default"]},{}],136:[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("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("../event-target"),i=e(h),j=a("../utils/fn.js"),k=(d(j),a("../utils/browser.js")),l=d(k),m=a("global/document"),n=e(m),o=function(a){function b(){var c=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],d=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if(f(this,b),a.call(this),!d&&(d=this,l.is_ie8)){d=n["default"].createelement("custom");for(var e in b.prototype)"constructor"!==e&&(d[e]=b.prototype[e])}d.tracks_=[],object.defineproperty(d,"length",{get:function(){return this.tracks_.length}});for(var g=0;gc;c++)if(this[c]===a){b=this[c],b.off&&b.off(),this.tracks_.splice(c,1);break}b&&this.trigger({track:b,type:"removetrack"})},b.prototype.gettrackbyid=function(a){for(var b=null,c=0,d=this.length;d>c;c++){var e=this[c];if(e.id===a){b=e;break}}return b},b}(i["default"]);o.prototype.allowedevents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var p in o.prototype.allowedevents_)o.prototype["on"+p]=null;c["default"]=o,b.exports=c["default"]},{"../event-target":104,"../utils/browser.js":140,"../utils/fn.js":144,"global/document":1}],137:[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){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")}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("../utils/browser.js"),i=e(h),j=a("global/document"),k=d(j),l=a("../utils/guid.js"),m=e(l),n=a("../event-target"),o=d(n),p=function(a){function b(){var c=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];f(this,b),a.call(this);var d=this;if(i.is_ie8){d=k["default"].createelement("custom");for(var e in b.prototype)"constructor"!==e&&(d[e]=b.prototype[e])}var g={id:c.id||"vjs_track_"+m.newguid(),kind:c.kind||"",label:c.label||"",language:c.language||""},h=function(a){object.defineproperty(d,a,{get:function(){return g[a]},set:function(){}})};for(var j in g)h(j);return d}return g(b,a),b}(o["default"]);c["default"]=p,b.exports=c["default"]},{"../event-target":104,"../utils/browser.js":140,"../utils/guid.js":146,"global/document":1}],138:[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("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("./track-list"),i=e(h),j=a("../utils/browser.js"),k=d(j),l=a("global/document"),m=e(l),n=function(a,b){for(var c=0;c=0;e--)if(c[e].selected){n(c,c[e]);break}if(k.is_ie8){d=m["default"].createelement("custom");for(var g in i["default"].prototype)"constructor"!==g&&(d[g]=i["default"].prototype[g]);for(var g in b.prototype)"constructor"!==g&&(d[g]=b.prototype[g])}return d=a.call(this,c,d),d.changing_=!1,object.defineproperty(d,"selectedindex",{get:function(){for(var a=0;ar;c.is_old_android=s;var t=q&&5>r&&537>k;c.is_native_android=t;var u=/firefox/i.test(i);c.is_firefox=u;var v=/edge/i.test(i);c.is_edge=v;var w=!v&&/chrome/i.test(i);c.is_chrome=w;var x=/msie\s8\.0/.test(i);c.is_ie8=x;var y=function(a){return a&&parsefloat(a[1])}(/msie\s(\d+)\.\d/.exec(i));c.ie_version=y;var z=!!("ontouchstart"in h["default"]||h["default"].documenttouch&&f["default"]instanceof h["default"].documenttouch);c.touch_enabled=z;var a="backgroundsize"in f["default"].createelement("video").style;c.background_size_supported=a},{"global/document":1,"global/window":2}],141:[function(a,b,c){"use strict";function d(a,b){var c,d,f=0;if(!b)return 0;a&&a.length||(a=e.createtimerange(0,0));for(var g=0;gb&&(d=b),f+=d-c;return f/b}c.__esmodule=!0,c.bufferedpercent=d;var e=a("./time-ranges.js")},{"./time-ranges.js":150}],142:[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){return a.raw=b,a}function g(a){return"string"==typeof a&&/\s/.test(a)}function h(a){if(/\s/.test(a))throw new error("class has illegal whitespace characters")}function i(a){return new regexp("(^|\\s)"+a+"($|\\s)")}function j(a){return function(b,c){return g(b)?(g(c)&&(c=j["default"].queryselector(c)),(b(c)?c:j["default"])[a](b)):j["default"][a](null)}}function k(a){return 0===a.indexof("#")&&(a=a.slice(1)),j["default"].getelementbyid(a)}function l(){var a=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],c=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],d=j["default"].createelement(a);return object.getownpropertynames(b).foreach(function(a){var c=b[a];-1!==a.indexof("aria-")||"role"===a||"type"===a?(p["default"].warn(r["default"](h,a,c)),d.setattribute(a,c)):d[a]=c}),object.getownpropertynames(c).foreach(function(a){c[a];d.setattribute(a,c[a])}),d}function m(a,b){"undefined"==typeof a.textcontent?a.innertext=b:a.textcontent=b}function n(a,b){b.firstchild?b.insertbefore(a,b.firstchild):b.appendchild(a)}function o(a){var b=a[t];return b||(b=a[t]=n.newguid()),s[b]||(s[b]={}),s[b]}function p(a){var b=a[t];return b?!!object.getownpropertynames(s[b]).length:!1}function q(a){var b=a[t];if(b){delete s[b];try{delete a[t]}catch(c){a.removeattribute?a.removeattribute(t):a[t]=null}}}function r(a,b){return a.classlist?a.classlist.contains(b):(h(b),i(b).test(a.classname))}function s(a,b){return a.classlist?a.classlist.add(b):r(a,b)||(a.classname=(a.classname+" "+b).trim()),a}function t(a,b){return a.classlist?a.classlist.remove(b):(h(b),a.classname=a.classname.split(/\s+/).filter(function(a){return a!==b}).join(" ")),a}function u(a,b,c){var d=r(a,b);return"function"==typeof c&&(c=c(a,b)),"boolean"!=typeof c&&(c=!d),c!==d?(c?s(a,b):t(a,b),a):void 0}function v(a,b){object.getownpropertynames(b).foreach(function(c){var d=b[c];null===d||"undefined"==typeof d||d===!1?a.removeattribute(c):a.setattribute(c,d===!0?"":d)})}function w(a){var b,c,d,e,f;if(b={},c=",autoplay,controls,loop,muted,default,",a&&a.attributes&&a.attributes.length>0){d=a.attributes;for(var g=d.length-1;g>=0;g--)e=d[g].name,f=d[g].value,("boolean"==typeof a[e]||-1!==c.indexof(","+e+","))&&(f=null!==f?!0:!1),b[e]=f}return b}function x(){j["default"].body.focus(),j["default"].onselectstart=function(){return!1}}function y(){j["default"].onselectstart=function(){return!0}}function z(a){var b=void 0;if(a.getboundingclientrect&&a.parentnode&&(b=a.getboundingclientrect()),!b)return{left:0,top:0};var c=j["default"].documentelement,d=j["default"].body,e=c.clientleft||d.clientleft||0,f=l["default"].pagexoffset||d.scrollleft,g=b.left+f-e,h=c.clienttop||d.clienttop||0,i=l["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!!a&&"object"==typeof a&&1===a.nodetype}function c(a){return!!a&&"object"==typeof a&&3===a.nodetype}function d(a){for(;a.firstchild;)a.removechild(a.firstchild);return a}function e(a){return"function"==typeof a&&(a=a()),(array.isarray(a)?a:[a]).map(function(a){return"function"==typeof a&&(a=a()),b(a)||c(a)?a:"string"==typeof a&&/\s/.test(a)?j["default"].createtextnode(a):void 0}).filter(function(a){return a})}function f(a,b){return e(b).foreach(function(b){return a.appendchild(b)}),a}function g(a,b){return f(d(a),b)}c.__esmodule=!0,c.getel=k,c.createel=l,c.textcontent=m,c.insertelfirst=n,c.geteldata=o,c.haseldata=p,c.removeeldata=q,c.haselclass=r,c.addelclass=s,c.removeelclass=t,c.toggleelclass=u,c.setelattributes=v,c.getelattributes=w,c.blocktextselection=x,c.unblocktextselection=y,c.findelposition=z,c.getpointerposition=a,c.isel=b,c.istextnode=c,c.emptyel=d,c.normalizecontent=e,c.appendcontent=f,c.insertcontent=g;var h=f(["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 ","."]),i=a("global/document"),j=e(i),k=a("global/window"),l=e(k),m=a("./guid.js"),n=d(m),o=a("./log.js"),p=e(o),q=a("tsml"),r=e(q),s={},t="vdata"+(new date).gettime(),u=j("queryselector");c.$=u;var v=j("queryselectorall");c.$$=v},{"./guid.js":146,"./log.js":147,"global/document":1,"global/window":2,tsml:55}],143:[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,c){if(array.isarray(b))return l(f,a,b,c);var d=n.geteldata(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=j(b);var e=d.handlers[b.type];if(e)for(var f=e.slice(0),g=0,h=f.length;h>g&&!b.isimmediatepropagationstopped();g++)try{f[g].call(a,b,c)}catch(i){r["default"].error(i)}}}),1===d.handlers[b].length&&(a.addeventlistener?a.addeventlistener(b,d.dispatcher,!1):a.attachevent&&a.attachevent("on"+b,d.dispatcher))}function g(a,b,c){if(n.haseldata(a)){var d=n.geteldata(a);if(d.handlers){if(array.isarray(b))return l(g,a,b,c);var e=function(b){d.handlers[b]=[],k(a,b)};if(b){var f=d.handlers[b];if(f){if(!c)return void e(b);if(c.guid)for(var h=0;ha?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===1/0)&&(e=d=c="-"),e=e>0||g>0?e+":":"",d=((e||f>=10)&&10>d?"0"+d:d)+":",c=10>c?"0"+c:c,e+d+c}()}c.__esmodule=!0,c["default"]=d,b.exports=c["default"]},{}],146:[function(a,b,c){"use strict";function d(){return e++}c.__esmodule=!0,c.newguid=d;var e=1},{}],147:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(){for(var a=arguments.length,b=array(a),c=0;a>c;c++)b[c]=arguments[c];i("log",b)}c.__esmodule=!0;var f=a("global/window"),g=d(f),h=a("./browser"),i=function(a,b){var c=arguments.length<=2||void 0===arguments[2]?!!h.ie_version&&h.ie_version<11:arguments[2],d=g["default"].console,f=d&&d[a]||function(){};"log"!==a&&b.unshift(a.touppercase()+":"),e.history.push(b),b.unshift("videojs:"),c&&(b=b.map(function(a){if(a&&"object"==typeof a||array.isarray(a))try{return json.stringify(a)}catch(b){}return string(a)}).join(" ")),f.apply?f[array.isarray(b)?"apply":"call"](d,b):f(b)};c.logbytype=i,e.history=[],e.error=function(){for(var a=arguments.length,b=array(a),c=0;a>c;c++)b[c]=arguments[c];return i("error",b)},e.warn=function(){for(var a=arguments.length,b=array(a),c=0;a>c;c++)b[c]=arguments[c];return i("warn",b)},c["default"]=e},{"./browser":140,"global/window":2}],148:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a){return!!a&&"object"==typeof a&&"[object object]"===a.tostring()&&a.constructor===object}function f(){var a=array.prototype.slice.call(arguments);return a.unshift({}),a.push(i),h["default"].apply(null,a),a[0]}c.__esmodule=!0,c["default"]=f;var g=a("lodash-compat/object/merge"),h=d(g),i=function(a,b){return e(b)?e(a)?void 0:f(b):b};b.exports=c["default"]},{"lodash-compat/object/merge":40}],149:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}c.__esmodule=!0;var e=a("global/document"),f=d(e),g=function(a){var b=f["default"].createelement("style");return b.classname=a,b};c.createstyleelement=g;var h=function(a,b){a.stylesheet?a.stylesheet.csstext=b:a.textcontent=b};c.settextcontent=h},{"global/document":1}],150:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}function e(a,b){return array.isarray(a)?f(a):void 0===a||void 0===b?f():f([[a,b]])}function f(a){return void 0===a||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:g.bind(null,"start",0,a),end:g.bind(null,"end",1,a)}}function g(a,b,c,d){return void 0===d&&(j["default"].warn("deprecated: function '"+a+"' on 'timeranges' called without an index argument."),d=0),h(a,d,c.length-1),c[d][b]}function h(a,b,c){if(0>b||b>c)throw new error("failed to execute '"+a+"' on 'timeranges': the index provided ("+b+") is greater than or equal to the maximum bound ("+c+").")}c.__esmodule=!0,c.createtimeranges=e;var i=a("./log.js"),j=d(i);c.createtimerange=e},{"./log.js":147}],151:[function(a,b,c){"use strict";function d(a){return a.charat(0).touppercase()+a.slice(1)}c.__esmodule=!0,c["default"]=d,b.exports=c["default"]},{}],152:[function(a,b,c){"use strict";function d(a){return a&&a.__esmodule?a:{"default":a}}c.__esmodule=!0;var e=a("global/document"),f=d(e),g=a("global/window"),h=d(g),i=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.getabsoluteurl=j;var k=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.getfileextension=k;var l=function(a){var b=h["default"].location,c=i(a),d=":"===c.protocol?b.protocol:c.protocol,e=d+c.host!==b.protocol+b.host;return e};c.iscrossorigin=l},{"global/document":1,"global/window":2}],153:[function(b,c,d){"use strict";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){return a&&a.__esmodule?a:{"default":a}}function g(a,b,c){var d=void 0;if("string"==typeof a){if(0===a.indexof("#")&&(a=a.slice(1)),g.getplayers()[a])return b&&n["default"].warn('player "'+a+'" is already initialised. options will not be applied.'),c&&g.getplayers()[a].ready(c),g.getplayers()[a];d=p.getel(a)}else d=a;if(!d||!d.nodename)throw new typeerror("the element or id supplied is not valid. (videojs)");return d.player||w["default"].players[d.playerid]||new w["default"](d,b,c)}d.__esmodule=!0;{var h=b("global/window"),i=f(h),j=b("global/document"),k=f(j),l=b("./setup"),m=e(l),n=b("./utils/stylesheet.js"),o=e(n),p=b("./component"),q=f(p),r=b("./event-target"),s=f(r),t=b("./utils/events.js"),u=e(t),v=b("./player"),w=f(v),x=b("./plugins.js"),y=f(x),z=b("../../src/js/utils/merge-options.js"),a=f(z),b=b("./utils/fn.js"),c=e(b),d=b("./tracks/text-track.js"),e=f(d),f=b("./tracks/audio-track.js"),g=f(f),h=b("./tracks/video-track.js"),i=f(h),j=b("./utils/time-ranges.js"),k=b("./utils/format-time.js"),l=f(k),m=b("./utils/log.js"),n=f(m),o=b("./utils/dom.js"),p=e(o),q=b("./utils/browser.js"),r=e(q),s=b("./utils/url.js"),t=e(s),u=b("./extend.js"),v=f(u),w=b("lodash-compat/object/merge"),x=f(w),y=b("xhr"),z=f(y),$=b("./tech/tech.js"),_=f($),aa=b("./tech/html5.js"),ba=(f(aa),b("./tech/flash.js"));f(ba)}if("undefined"==typeof htmlvideoelement&&(k["default"].createelement("video"),k["default"].createelement("audio"),k["default"].createelement("track")),i["default"].videojs_no_dynamic_style!==!0){var ca=p.$(".vjs-styles-defaults");if(!ca){ca=o.createstyleelement("vjs-styles-defaults");var da=p.$("head");da.insertbefore(ca,da.firstchild),o.settextcontent(ca,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}m.autosetuptimeout(1,g),g.version="5.11.6",g.options=w["default"].prototype.options_,g.getplayers=function(){return w["default"].players},g.players=w["default"].players,g.getcomponent=q["default"].getcomponent, g.registercomponent=function(a,b){_["default"].istech(b)&&n["default"].warn("the "+a+" tech was registered as a component. it should instead be registered using videojs.registertech(name, tech)"),q["default"].registercomponent.call(q["default"],a,b)},g.gettech=_["default"].gettech,g.registertech=_["default"].registertech,g.browser=r,g.touch_enabled=r.touch_enabled,g.extend=v["default"],g.mergeoptions=a["default"],g.bind=c.bind,g.plugin=y["default"],g.addlanguage=function(a,b){var c;return a=(""+a).tolowercase(),x["default"](g.options.languages,(c={},c[a]=b,c))[a]},g.log=n["default"],g.createtimerange=g.createtimeranges=j.createtimeranges,g.formattime=l["default"],g.parseurl=t.parseurl,g.iscrossorigin=t.iscrossorigin,g.eventtarget=s["default"],g.on=u.on,g.one=u.one,g.off=u.off,g.trigger=u.trigger,g.xhr=z["default"],g.texttrack=e["default"],g.audiotrack=g["default"],g.videotrack=i["default"],g.isel=p.isel,g.istextnode=p.istextnode,g.createel=p.createel,g.hasclass=p.haselclass,g.addclass=p.addelclass,g.removeclass=p.removeelclass,g.toggleclass=p.toggleelclass,g.setattributes=p.setelattributes,g.getattributes=p.getelattributes,g.emptyel=p.emptyel,g.appendcontent=p.appendcontent,g.insertcontent=p.insertcontent,"function"==typeof a&&a.amd?a("videojs",[],function(){return g}):"object"==typeof d&&"object"==typeof c&&(c.exports=g),d["default"]=g,c.exports=d["default"]},{"../../src/js/utils/merge-options.js":148,"./component":67,"./event-target":104,"./extend.js":105,"./player":113,"./plugins.js":114,"./setup":118,"./tech/flash.js":121,"./tech/html5.js":122,"./tech/tech.js":124,"./tracks/audio-track.js":126,"./tracks/text-track.js":134,"./tracks/video-track.js":139,"./utils/browser.js":140,"./utils/dom.js":142,"./utils/events.js":143,"./utils/fn.js":144,"./utils/format-time.js":145,"./utils/log.js":147,"./utils/stylesheet.js":149,"./utils/time-ranges.js":150,"./utils/url.js":152,"global/document":1,"global/window":2,"lodash-compat/object/merge":40,xhr:56}]},{},[153])(153)}),function(a){var b=a.vttjs={},c=b.vttcue,d=b.vttregion,e=a.vttcue,f=a.vttregion;b.shim=function(){b.vttcue=c,b.vttregion=d},b.restore=function(){b.vttcue=e,b.vttregion=f}}(this),function(a,b){function c(a){if("string"!=typeof a)return!1;var b=h[a.tolowercase()];return b?a.tolowercase():!1}function d(a){if("string"!=typeof a)return!1;var b=i[a.tolowercase()];return b?a.tolowercase():!1}function e(a){for(var b=1;ba||a>100)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(0>a||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=void 0,i?h:void 0}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||{}),function(a,b){function c(a){if("string"!=typeof a)return!1;var b=f[a.tolowercase()];return b?a.tolowercase():!1}function d(a){return"number"==typeof a&&a>=0&&100>=a}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(b===!1)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||{}),function(a){function b(a,b){this.name="parsingerror",this.code=a.code,this.message=b||a.message}function c(a){function b(a,b,c,d){return 3600*(0|a)+60*(0|b)+(0|c)+(0|d)/1e3}var c=a.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return c?c[3]?b(c[1],c[2],c[3].replace(":",""),c[4]):c[1]>59?b(c[1],c[2],0,c[4]):b(0,c[1],c[2],c[4]):null}function d(){this.values=o(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: "+k);return a=a.replace(/^[^\sa-za-z-]+/,""),d}function i(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):null,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)}function j(){a=a.replace(/^\s+/,"")}var k=a;if(j(),f.starttime=h(),j(),"-->"!==a.substr(0,3))throw new b(b.errors.badtimestamp,"malformed time stamp (time stamps must be separated by '-->'): "+k);a=a.substr(3),j(),f.endtime=h(),j(),i(a,f)}function g(a,b){function d(){function a(a){return b=b.substr(a.length),a}if(!b)return null;var c=b.match(/^([^<]*)(<[^>]+>?)?/);return a(c[1]?c[1]:c[2])}function e(a){return p[a]}function f(a){for(;o=a.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)a=a.replace(o[0],e);return a}function g(a,b){return!s[b.localname]||s[b.localname]===a.localname}function h(b,c){var d=q[b];if(!d)return null;var e=a.document.createelement(d);e.localname=d;var f=r[b];return f&&c&&(e[f]=c.trim()),e}for(var i,j=a.document.createelement("div"),k=j,l=[];null!==(i=d());)if("<"!==i[0])k.appendchild(a.document.createtextnode(f(i)));else{if("/"===i[1]){l.length&&l[l.length-1]===i.substr(2).replace(">","")&&(l.pop(),k=k.parentnode);continue}var m,n=c(i.substr(1,i.length-2));if(n){m=a.document.createprocessinginstruction("timestamp",n),k.appendchild(m);continue}var o=i.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!o)continue;if(m=h(o[1],o[3]),!m)continue;if(!g(k,m))continue;o[2]&&(m.classname=o[2].substr(1).replace("."," ")),l.push(o[1]),k.appendchild(m),k=m}return j}function h(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;ei&&(e=new l(a),g=i),a=new l(f)}return e||f}var f=new l(b),g=b.cue,h=i(g),j=[];if(g.snaptolines){var k;switch(g.vertical){case"":j=["+y","-y"],k="height";break;case"rl":j=["+x","-x"],k="width";break;case"lr":j=["-x","+x"],k="width"}var m=f.lineheight,n=m*math.round(h),o=c[k]+m,p=j[0];math.abs(n)>o&&(n=0>n?-1:1,n*=math.ceil(o/m)*m),0>h&&(n+=""===g.vertical?c.height:c.width,j=j.reverse()),f.move(p,n)}else{var q=f.lineheight/c.height*100;switch(g.linealign){case"middle":h-=q/2;break;case"end":h-=q}switch(g.vertical){case"":b.applystyles({top:b.formatstyle(h,"%")});break;case"rl":b.applystyles({left:b.formatstyle(h,"%")});break;case"lr":b.applystyles({right:b.formatstyle(h,"%")})}j=["+y","-x","+x","-y"],f=new l(b)}var r=e(f,j);b.move(r.tocsscompatvalues(c))}function n(){}var o=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=o(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&&100>=b)?(this.set(a,b),!0):!1}};var p={"&":"&","<":"<",">":">","‎":"‎","‏":"‏"," ":" "},q={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},r={v:"title",lang:"lang"},s={rt:"ruby"},t=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];j.prototype.applystyles=function(a,b){b=b||this.div;for(var c in a)a.hasownproperty(c)&&(b.style[c]=a[c])},j.prototype.formatstyle=function(a,b){return 0===a?0:a+b},k.prototype=o(j.prototype),k.prototype.constructor=k,l.prototype.move=function(a,b){switch(b=void 0!==b?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}},l.prototype.overlaps=function(a){return this.lefta.left&&this.topa.top},l.prototype.overlapsany=function(a){for(var b=0;b=a.top&&this.bottom<=a.bottom&&this.left>=a.left&&this.right<=a.right},l.prototype.overlapsoppositeaxis=function(a,b){switch(b){case"+x":return this.lefta.right;case"+y":return this.topa.bottom}},l.prototype.intersectpercentage=function(a){var b=math.max(0,math.min(this.right,a.right)-math.max(this.left,a.left)),c=math.max(0,math.min(this.bottom,a.bottom)-math.max(this.top,a.top)),d=b*c;return d/(this.height*this.width)},l.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}},l.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;a=a.div?a.div.getboundingclientrect():a.tagname?a.getboundingclientrect():a;var e={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};return e},n.stringdecoder=function(){return{decode:function(a){if(!a)return"";if("string"!=typeof a)throw new error("error - expected string data.");return decodeuricomponent(encodeuricomponent(a))}}},n.convertcuetodomtree=function(a,b){return a&&b?g(a,b):null};var u=.05,v="sans-serif",w="1.5%";n.processcues=function(a,b,c){function d(a){for(var b=0;b")){i.cue.id=j;continue}case"cue":try{f(j,i.cue,i.regionlist)}catch(m){i.reportorthrowerror(m),i.cue=null,i.state="badcue";continue}i.state="cuetext";continue;case"cuetext":var n=-1!==j.indexof("-->");if(!j||n&&(l=!0)){i.oncue&&i.oncue(i.cue),i.cue=null,i.state="id";continue}i.cue.text&&(i.cue.text+="\n"),i.cue.text+=j;continue;case"badcue":j||(i.state="id");continue}}}catch(m){i.reportorthrowerror(m),"cuetext"===i.state&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state="initial"===i.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=n}(this,this.vttjs||{}); //# sourcemappingurl=video.min.js.map