0&&this.show(),M},E}(p.default);k.prototype.kind_="chapters",k.prototype.controlText_="Chapters",o.default.registerComponent("ChaptersButton",k),a.default=k,S.exports=a.default},{"../../component.js":67,"../../menu/menu.js":106,"../../utils/dom.js":132,"../../utils/fn.js":134,"../../utils/to-title-case.js":141,"./chapters-track-menu-item.js":85,"./text-track-button.js":88,"./text-track-menu-item.js":89,"global/window":2}],85:[function(t,S,a){"use strict";a.__esModule=!0;function c(n){if(n&&n.__esModule)return n;var h={};if(n!=null)for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(h[s]=n[s]);return h.default=n,h}function i(n){return n&&n.__esModule?n:{default:n}}function b(n,h){if(!(n instanceof h))throw new TypeError("Cannot call a class as a function")}function d(n,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);n.prototype=Object.create(h&&h.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(n,h):n.__proto__=h)}var f=t("../../menu/menu-item.js"),p=i(f),u=t("../../component.js"),o=i(u),r=t("../../utils/fn.js"),e=c(r),y=function(n){d(h,n);function h(s,T){b(this,h);var g=T.track,_=T.cue,l=s.currentTime();T.label=_.text,T.selected=_.startTime<=l&&l<_.endTime,n.call(this,s,T),this.track=g,this.cue=_,g.addEventListener("cuechange",e.bind(this,this.update))}return h.prototype.handleClick=function(){n.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},h.prototype.update=function(){var T=this.cue,g=this.player_.currentTime();this.selected(T.startTime<=g&&gCurrent Time 0:00'},{"aria-live":"off"}),T.appendChild(this.contentEl_),T},h.prototype.updateContent=function(){var T=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),g=this.localize("Current Time"),_=e.default(T,this.player_.duration());_!==this.formattedTime_&&(this.formattedTime_=_,this.contentEl_.innerHTML=''+g+" "+_)},h}(p.default);p.default.registerComponent("CurrentTimeDisplay",y),a.default=y,S.exports=a.default},{"../../component.js":67,"../../utils/dom.js":132,"../../utils/format-time.js":135}],91:[function(t,S,a){"use strict";a.__esModule=!0;function c(n){if(n&&n.__esModule)return n;var h={};if(n!=null)for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(h[s]=n[s]);return h.default=n,h}function i(n){return n&&n.__esModule?n:{default:n}}function b(n,h){if(!(n instanceof h))throw new TypeError("Cannot call a class as a function")}function d(n,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);n.prototype=Object.create(h&&h.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(n,h):n.__proto__=h)}var f=t("../../component.js"),p=i(f),u=t("../../utils/dom.js"),o=c(u),r=t("../../utils/format-time.js"),e=i(r),y=function(n){d(h,n);function h(s,T){b(this,h),n.call(this,s,T),this.on(s,"timeupdate",this.updateContent),this.on(s,"loadedmetadata",this.updateContent)}return h.prototype.createEl=function(){var T=n.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=o.createEl("div",{className:"vjs-duration-display",innerHTML:''+this.localize("Duration Time")+" 0:00"},{"aria-live":"off"}),T.appendChild(this.contentEl_),T},h.prototype.updateContent=function(){var T=this.player_.duration();if(T&&this.duration_!==T){this.duration_=T;var g=this.localize("Duration Time"),_=e.default(T);this.contentEl_.innerHTML=''+g+" "+_}},h}(p.default);p.default.registerComponent("DurationDisplay",y),a.default=y,S.exports=a.default},{"../../component.js":67,"../../utils/dom.js":132,"../../utils/format-time.js":135}],92:[function(t,S,a){"use strict";a.__esModule=!0;function c(n){if(n&&n.__esModule)return n;var h={};if(n!=null)for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(h[s]=n[s]);return h.default=n,h}function i(n){return n&&n.__esModule?n:{default:n}}function b(n,h){if(!(n instanceof h))throw new TypeError("Cannot call a class as a function")}function d(n,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);n.prototype=Object.create(h&&h.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(n,h):n.__proto__=h)}var f=t("../../component.js"),p=i(f),u=t("../../utils/dom.js"),o=c(u),r=t("../../utils/format-time.js"),e=i(r),y=function(n){d(h,n);function h(s,T){b(this,h),n.call(this,s,T),this.on(s,"timeupdate",this.updateContent)}return h.prototype.createEl=function(){var T=n.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=o.createEl("div",{className:"vjs-remaining-time-display",innerHTML:''+this.localize("Remaining Time")+" -0:00"},{"aria-live":"off"}),T.appendChild(this.contentEl_),T},h.prototype.updateContent=function(){if(this.player_.duration()){var T=this.localize("Remaining Time"),g=e.default(this.player_.remainingTime());g!==this.formattedTime_&&(this.formattedTime_=g,this.contentEl_.innerHTML=''+T+" -"+g)}},h}(p.default);p.default.registerComponent("RemainingTimeDisplay",y),a.default=y,S.exports=a.default},{"../../component.js":67,"../../utils/dom.js":132,"../../utils/format-time.js":135}],93:[function(t,S,a){"use strict";a.__esModule=!0;function c(u){return u&&u.__esModule?u:{default:u}}function i(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}function b(u,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);u.prototype=Object.create(o&&o.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(u,o):u.__proto__=o)}var d=t("../../component.js"),f=c(d),p=function(u){b(o,u);function o(){i(this,o),u.apply(this,arguments)}return o.prototype.createEl=function(){return u.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:" /"})},o}(f.default);f.default.registerComponent("TimeDivider",p),a.default=p,S.exports=a.default},{"../../component.js":67}],94:[function(t,S,a){"use strict";a.__esModule=!0;function c(s){if(s&&s.__esModule)return s;var T={};if(s!=null)for(var g in s)Object.prototype.hasOwnProperty.call(s,g)&&(T[g]=s[g]);return T.default=s,T}function i(s){return s&&s.__esModule?s:{default:s}}function b(s,T){if(!(s instanceof T))throw new TypeError("Cannot call a class as a function")}function d(s,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);s.prototype=Object.create(T&&T.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(s,T):s.__proto__=T)}var f=t("../../slider/slider.js"),p=i(f),u=t("../../component.js"),o=i(u),r=t("../../utils/fn.js"),e=c(r),y=t("./volume-level.js"),n=i(y),h=function(s){d(T,s);function T(g,_){b(this,T),s.call(this,g,_),this.on(g,"volumechange",this.updateARIAAttributes),g.ready(e.bind(this,this.updateARIAAttributes))}return T.prototype.createEl=function(){return s.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},T.prototype.handleMouseMove=function(_){this.checkMuted(),this.player_.volume(this.calculateDistance(_))},T.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},T.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},T.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},T.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},T.prototype.updateARIAAttributes=function(){var _=(this.player_.volume()*100).toFixed(2);this.el_.setAttribute("aria-valuenow",_),this.el_.setAttribute("aria-valuetext",_+"%")},T}(p.default);h.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},h.prototype.playerEvent="volumechange",o.default.registerComponent("VolumeBar",h),a.default=h,S.exports=a.default},{"../../component.js":67,"../../slider/slider.js":114,"../../utils/fn.js":134,"./volume-level.js":96}],95:[function(t,S,a){"use strict";a.__esModule=!0;function c(r){return r&&r.__esModule?r:{default:r}}function i(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function b(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var d=t("../../component.js"),f=c(d),p=t("./volume-bar.js"),u=c(p),o=function(r){b(e,r);function e(y,n){i(this,e),r.call(this,y,n),y.tech_&&y.tech_.featuresVolumeControl===!1&&this.addClass("vjs-hidden"),this.on(y,"loadstart",function(){y.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return e.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},e}(f.default);o.prototype.options_={children:["volumeBar"]},f.default.registerComponent("VolumeControl",o),a.default=o,S.exports=a.default},{"../../component.js":67,"./volume-bar.js":94}],96:[function(t,S,a){"use strict";a.__esModule=!0;function c(u){return u&&u.__esModule?u:{default:u}}function i(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}function b(u,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);u.prototype=Object.create(o&&o.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(u,o):u.__proto__=o)}var d=t("../../component.js"),f=c(d),p=function(u){b(o,u);function o(){i(this,o),u.apply(this,arguments)}return o.prototype.createEl=function(){return u.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},o}(f.default);f.default.registerComponent("VolumeLevel",p),a.default=p,S.exports=a.default},{"../../component.js":67}],97:[function(t,S,a){"use strict";a.__esModule=!0;function c(w){return w&&w.__esModule?w:{default:w}}function i(w){if(w&&w.__esModule)return w;var v={};if(w!=null)for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(v[x]=w[x]);return v.default=w,v}function b(w,v){if(!(w instanceof v))throw new TypeError("Cannot call a class as a function")}function d(w,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);w.prototype=Object.create(v&&v.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(w,v):w.__proto__=v)}var f=t("../utils/fn.js"),p=i(f),u=t("../component.js"),o=c(u),r=t("../popup/popup.js"),e=c(r),y=t("../popup/popup-button.js"),n=c(y),h=t("./mute-toggle.js"),s=c(h),T=t("./volume-control/volume-bar.js"),g=c(T),_=t("global/document"),l=c(_),m=function(w){d(v,w);function v(x){var k=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];b(this,v),k.inline===void 0&&(k.inline=!0),k.vertical===void 0&&(k.inline?k.vertical=!1:k.vertical=!0),k.volumeBar=k.volumeBar||{},k.volumeBar.vertical=!!k.vertical,w.call(this,x,k),this.on(x,"volumechange",this.volumeUpdate),this.on(x,"loadstart",this.volumeUpdate);function D(){x.tech_&&x.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}D.call(this),this.on(x,"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 v.prototype.buildCSSClass=function(){var k="";return this.options_.vertical?k="vjs-volume-menu-button-vertical":k="vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+w.prototype.buildCSSClass.call(this)+" "+k},v.prototype.createPopup=function(){var k=new e.default(this.player_,{contentElType:"div"}),D=new g.default(this.player_,this.options_.volumeBar);return k.addChild(D),this.volumeBar=D,this.attachVolumeBarEvents(),k},v.prototype.handleClick=function(){s.default.prototype.handleClick.call(this),w.prototype.handleClick.call(this)},v.prototype.attachVolumeBarEvents=function(){this.on(["mousedown","touchdown"],this.handleMouseDown)},v.prototype.handleMouseDown=function(k){this.on(["mousemove","touchmove"],p.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(l.default,["mouseup","touchend"],this.handleMouseUp)},v.prototype.handleMouseUp=function(k){this.off(["mousemove","touchmove"],p.bind(this.volumeBar,this.volumeBar.handleMouseMove))},v}(n.default);m.prototype.volumeUpdate=s.default.prototype.update,m.prototype.controlText_="Mute",o.default.registerComponent("VolumeMenuButton",m),a.default=m,S.exports=a.default},{"../component.js":67,"../popup/popup-button.js":110,"../popup/popup.js":111,"../utils/fn.js":134,"./mute-toggle.js":71,"./volume-control/volume-bar.js":94,"global/document":1}],98:[function(t,S,a){"use strict";a.__esModule=!0;function c(s){if(s&&s.__esModule)return s;var T={};if(s!=null)for(var g in s)Object.prototype.hasOwnProperty.call(s,g)&&(T[g]=s[g]);return T.default=s,T}function i(s){return s&&s.__esModule?s:{default:s}}function b(s,T){if(!(s instanceof T))throw new TypeError("Cannot call a class as a function")}function d(s,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);s.prototype=Object.create(T&&T.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(s,T):s.__proto__=T)}var f=t("./component"),p=i(f),u=t("./modal-dialog"),o=i(u),r=t("./utils/dom"),e=c(r),y=t("./utils/merge-options"),n=i(y),h=function(s){d(T,s);function T(g,_){b(this,T),s.call(this,g,_),this.on(g,"error",this.open)}return T.prototype.buildCSSClass=function(){return"vjs-error-display "+s.prototype.buildCSSClass.call(this)},T.prototype.content=function(){var _=this.player().error();return _?this.localize(_.message):""},T}(o.default);h.prototype.options_=n.default(o.default.prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0}),p.default.registerComponent("ErrorDisplay",h),a.default=h,S.exports=a.default},{"./component":67,"./modal-dialog":107,"./utils/dom":132,"./utils/merge-options":138}],99:[function(t,S,a){"use strict";a.__esModule=!0;function c(f){if(f&&f.__esModule)return f;var p={};if(f!=null)for(var u in f)Object.prototype.hasOwnProperty.call(f,u)&&(p[u]=f[u]);return p.default=f,p}var i=t("./utils/events.js"),b=c(i),d=function(){};d.prototype.allowedEvents_={},d.prototype.on=function(f,p){var u=this.addEventListener;this.addEventListener=Function.prototype,b.on(this,f,p),this.addEventListener=u},d.prototype.addEventListener=d.prototype.on,d.prototype.off=function(f,p){b.off(this,f,p)},d.prototype.removeEventListener=d.prototype.off,d.prototype.one=function(f,p){b.one(this,f,p)},d.prototype.trigger=function(f){var p=f.type||f;typeof f=="string"&&(f={type:p}),f=b.fixEvent(f),this.allowedEvents_[p]&&this["on"+p]&&this["on"+p](f),b.trigger(this,f)},d.prototype.dispatchEvent=d.prototype.trigger,a.default=d,S.exports=a.default},{"./utils/events.js":133}],100:[function(t,S,a){"use strict";a.__esModule=!0;function c(p){return p&&p.__esModule?p:{default:p}}var i=t("./utils/log"),b=c(i),d=function(u,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);u.prototype=Object.create(o&&o.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),o&&(u.super_=o)},f=function(u){var o=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],r=function(){u.apply(this,arguments)},e={};typeof o=="object"?(typeof o.init=="function"&&(b.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),o.constructor=o.init),o.constructor!==Object.prototype.constructor&&(r=o.constructor),e=o):typeof o=="function"&&(r=o),d(r,u);for(var y in e)e.hasOwnProperty(y)&&(r.prototype[y]=e[y]);return r};a.default=f,S.exports=a.default},{"./utils/log":137}],101:[function(t,S,a){"use strict";a.__esModule=!0;function c(r){return r&&r.__esModule?r:{default:r}}for(var i=t("global/document"),b=c(i),d={},f=[["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"]],p=f[0],u=void 0,o=0;o1&&this.show()},m.prototype.createMenu=function(){var v=new e.default(this.player_);if(this.options_.title){var x=n.createEl("li",{className:"vjs-menu-title",innerHTML:g.default(this.options_.title),tabIndex:-1});v.children_.unshift(x),n.insertElFirst(x,v.contentEl())}if(this.items=this.createItems(),this.items)for(var k=0;k 0&&(_<0?_=0:_>=l.length&&(_=l.length-1),this.focusedChild_=_,l[_].el_.focus())},T}(p.default);p.default.registerComponent("Menu",h),a.default=h,S.exports=a.default},{"../component.js":67,"../utils/dom.js":132,"../utils/events.js":133,"../utils/fn.js":134}],107:[function(t,S,a){"use strict";a.__esModule=!0;function c(w){if(w&&w.__esModule)return w;var v={};if(w!=null)for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(v[x]=w[x]);return v.default=w,v}function i(w){return w&&w.__esModule?w:{default:w}}function b(w,v){if(!(w instanceof v))throw new TypeError("Cannot call a class as a function")}function d(w,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);w.prototype=Object.create(v&&v.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(w,v):w.__proto__=v)}var f=t("global/document"),p=i(f),u=t("./utils/dom"),o=c(u),r=t("./utils/fn"),e=c(r),y=t("./utils/log"),n=i(y),h=t("./component"),s=i(h),T=t("./close-button"),g=i(T),_="vjs-modal-dialog",l=27,m=function(w){d(v,w);function v(x,k){b(this,v),w.call(this,x,k),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=o.createEl("div",{className:_+"-content"},{role:"document"}),this.descEl_=o.createEl("p",{className:_+"-description vjs-offscreen",id:this.el().getAttribute("aria-describedby")}),o.textContent(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}return v.prototype.createEl=function(){return w.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},v.prototype.buildCSSClass=function(){return _+" vjs-hidden "+w.prototype.buildCSSClass.call(this)},v.prototype.handleKeyPress=function(k){k.which===l&&this.closeable()&&this.close()},v.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},v.prototype.description=function(){var k=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(k+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),k},v.prototype.open=function(){if(!this.opened_){var k=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!k.paused(),this.wasPlaying_&&k.pause(),this.closeable()&&this.on(p.default,"keydown",e.bind(this,this.handleKeyPress)),k.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},v.prototype.opened=function(k){return typeof k=="boolean"&&this[k?"open":"close"](),this.opened_},v.prototype.close=function(){if(this.opened_){var k=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&k.play(),this.closeable()&&this.off(p.default,"keydown",e.bind(this,this.handleKeyPress)),k.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},v.prototype.closeable=function(k){if(typeof k=="boolean"){var D=this.closeable_=!!k,E=this.getChild("closeButton");if(D&&!E){var J=this.contentEl_;this.contentEl_=this.el_,E=this.addChild("closeButton"),this.contentEl_=J,this.on(E,"close",this.close)}!D&&E&&(this.off(E,"close",this.close),this.removeChild(E),E.dispose())}return this.closeable_},v.prototype.fill=function(){return this.fillWith(this.content())},v.prototype.fillWith=function(k){var D=this.contentEl(),E=D.parentNode,J=D.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,E.removeChild(D),this.empty(),o.insertContent(D,k),this.trigger("modalfill"),J?E.insertBefore(D,J):E.appendChild(D),this},v.prototype.empty=function(){return this.trigger("beforemodalempty"),o.emptyEl(this.contentEl()),this.trigger("modalempty"),this},v.prototype.content=function(k){return typeof k!="undefined"&&(this.content_=k),this.content_},v}(s.default);m.prototype.options_={temporary:!0},s.default.registerComponent("ModalDialog",m),a.default=m,S.exports=a.default},{"./close-button":66,"./component":67,"./utils/dom":132,"./utils/fn":134,"./utils/log":137,"global/document":1}],108:[function(t,S,a){"use strict";a.__esModule=!0;function c(tt){if(tt&&tt.__esModule)return tt;var N={};if(tt!=null)for(var H in tt)Object.prototype.hasOwnProperty.call(tt,H)&&(N[H]=tt[H]);return N.default=tt,N}function i(tt){return tt&&tt.__esModule?tt:{default:tt}}function b(tt,N){if(!(tt instanceof N))throw new TypeError("Cannot call a class as a function")}function d(tt,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);tt.prototype=Object.create(N&&N.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,N):tt.__proto__=N)}var f=t("./component.js"),p=i(f),u=t("global/document"),o=i(u),r=t("global/window"),e=i(r),y=t("./utils/events.js"),n=c(y),h=t("./utils/dom.js"),s=c(h),T=t("./utils/fn.js"),g=c(T),_=t("./utils/guid.js"),l=c(_),m=t("./utils/browser.js"),w=c(m),v=t("./utils/log.js"),x=i(v),k=t("./utils/to-title-case.js"),D=i(k),E=t("./utils/time-ranges.js"),J=t("./utils/buffer.js"),R=t("./utils/stylesheet.js"),F=c(R),j=t("./fullscreen-api.js"),L=i(j),A=t("./media-error.js"),O=i(A),P=t("safe-json-parse/tuple"),M=i(P),I=t("object.assign"),W=i(I),$=t("./utils/merge-options.js"),z=i($),Q=t("./tracks/text-track-list-converter.js"),Y=i(Q),nt=t("./tech/loader.js"),lt=i(nt),st=t("./poster-image.js"),yt=i(st),gt=t("./tracks/text-track-display.js"),B=i(gt),V=t("./loading-spinner.js"),K=i(V),rt=t("./big-play-button.js"),it=i(rt),ut=t("./control-bar/control-bar.js"),G=i(ut),_t=t("./error-display.js"),bt=i(_t),q=t("./tracks/text-track-settings.js"),at=i(q),mt=t("./modal-dialog"),kt=i(mt),Tt=t("./tech/tech.js"),St=i(Tt),xt=t("./tech/html5.js"),Ct=i(xt),ht=function(tt){d(N,tt);function N(H,C,U){var X=this;if(b(this,N),H.id=H.id||"vjs_video_"+l.newGUID(),C=W.default(N.getTagSettings(H),C),C.initChildren=!1,C.createEl=!1,C.reportTouchActivity=!1,tt.call(this,null,C,U),!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=H,this.tagAttributes=H&&s.getElAttributes(H),this.language(this.options_.language),C.languages?function(){var ot={};Object.getOwnPropertyNames(C.languages).forEach(function(et){ot[et.toLowerCase()]=C.languages[et]}),X.languages_=ot}():this.languages_=N.prototype.options_.languages,this.cache_={},this.poster_=C.poster||"",this.controls_=!!C.controls,H.controls=!1,this.scrubbing_=!1,this.el_=this.createEl();var Z=z.default(this.options_);C.plugins&&function(){var ot=C.plugins;Object.getOwnPropertyNames(ot).forEach(function(et){typeof this[et]=="function"?this[et](ot[et]):x.default.error("Unable to find plugin:",et)},X)}(),this.options_.playerOptions=Z,this.initChildren(),this.isAudio(H.nodeName.toLowerCase()==="audio"),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.isAudio()&&this.addClass("vjs-audio"),this.flexNotSupported_()&&this.addClass("vjs-no-flex"),w.IS_IOS||this.addClass("vjs-workinghover"),N.players[this.id_]=this,this.userActive(!0),this.reportUserActivity(),this.listenForUserActivity_(),this.on("fullscreenchange",this.handleFullscreenChange_),this.on("stageclick",this.handleStageClick_)}return N.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),N.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(),tt.prototype.dispose.call(this)},N.prototype.createEl=function(){var C=this.el_=tt.prototype.createEl.call(this,"div"),U=this.tag;U.removeAttribute("width"),U.removeAttribute("height");var X=s.getElAttributes(U);Object.getOwnPropertyNames(X).forEach(function(et){et==="class"?C.className=X[et]:C.setAttribute(et,X[et])}),U.playerId=U.id,U.id+="_html5_api",U.className="vjs-tech",U.player=C.player=this,this.addClass("vjs-paused"),this.styleEl_=F.createStyleElement("vjs-styles-dimensions");var Z=s.$(".vjs-styles-defaults"),ot=s.$("head");return ot.insertBefore(this.styleEl_,Z?Z.nextSibling:ot.firstChild),this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),U.initNetworkState_=U.networkState,U.parentNode&&U.parentNode.insertBefore(C,U),s.insertElFirst(U,C),this.children_.unshift(U),this.el_=C,C},N.prototype.width=function(C){return this.dimension("width",C)},N.prototype.height=function(C){return this.dimension("height",C)},N.prototype.dimension=function(C,U){var X=C+"_";if(U===void 0)return this[X]||0;if(U==="")this[X]=void 0;else{var Z=parseFloat(U);if(isNaN(Z))return x.default.error('Improper value "'+U+'" supplied for for '+C),this;this[X]=Z}return this.updateStyleEl_(),this},N.prototype.fluid=function(C){if(C===void 0)return!!this.fluid_;this.fluid_=!!C,C?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")},N.prototype.aspectRatio=function(C){if(C===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(C))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=C,this.fluid(!0),this.updateStyleEl_()},N.prototype.updateStyleEl_=function(){var C=void 0,U=void 0,X=void 0,Z=void 0;this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?X=this.aspectRatio_:this.videoWidth()?X=this.videoWidth()+":"+this.videoHeight():X="16:9";var ot=X.split(":"),et=ot[1]/ot[0];this.width_!==void 0?C=this.width_:this.height_!==void 0?C=this.height_/et:C=this.videoWidth()||300,this.height_!==void 0?U=this.height_:U=C*et,/^[^a-zA-Z]/.test(this.id())?Z="dimensions-"+this.id():Z=this.id()+"-dimensions",this.addClass(Z),F.setTextContent(this.styleEl_,` .`+Z+` { width: `+C+`px; height: `+U+`px; } .`+Z+`.vjs-fluid { padding-top: `+et*100+`%; } `)},N.prototype.loadTech_=function(C,U){this.tech_&&this.unloadTech_(),C!=="Html5"&&this.tag&&(St.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=C,this.isReady_=!1;var X=W.default({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:U,playerId:this.id(),techId:this.id()+"_"+C+"_api",textTracks:this.textTracks_,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_[C.toLowerCase()]);this.tag&&(X.tag=this.tag),U&&(this.currentType_=U.type,U.src===this.cache_.src&&this.cache_.currentTime>0&&(X.startTime=this.cache_.currentTime),this.cache_.src=U.src);var Z=St.default.getTech(C);Z||(Z=p.default.getComponent(C)),this.tech_=new Z(X),this.tech_.ready(g.bind(this,this.handleTechReady_),!0),Y.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.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&(C!=="Html5"||!this.tag)&&s.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},N.prototype.unloadTech_=function(){this.textTracks_=this.textTracks(),this.textTracksJson_=Y.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},N.prototype.tech=function(C){if(C&&C.IWillNotUseThisInPlugins)return this.tech_;var U=` Please make sure that you are not using this inside of a plugin. To disable this alert and error, please pass in an object with \`IWillNotUseThisInPlugins\` to the \`tech\` method. See https://github.com/videojs/video.js/issues/2617 for more info. `;throw e.default.alert(U),new Error(U)},N.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_)},N.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_)},N.prototype.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),this.src()&&this.tag&&this.options_.autoplay&&this.paused()&&(delete this.tag.poster,this.play())},N.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},N.prototype.hasStarted=function(C){return C!==void 0?(this.hasStarted_!==C&&(this.hasStarted_=C,C?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},N.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},N.prototype.handleTechWaiting_=function(){var C=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return C.removeClass("vjs-waiting")})},N.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},N.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},N.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},N.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},N.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},N.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},N.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},N.prototype.handleTechProgress_=function(){this.trigger("progress")},N.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},N.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},N.prototype.handleTechClick_=function(C){C.button===0&&this.controls()&&(this.paused()?this.play():this.pause())},N.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},N.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},N.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},N.prototype.handleTechTouchEnd_=function(C){C.preventDefault()},N.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},N.prototype.handleStageClick_=function(){this.reportUserActivity()},N.prototype.handleTechFullscreenChange_=function(C,U){U&&this.isFullscreen(U.isFullscreen),this.trigger("fullscreenchange")},N.prototype.handleTechError_=function(){var C=this.tech_.error();this.error(C&&C.code)},N.prototype.handleTechSuspend_=function(){this.trigger("suspend")},N.prototype.handleTechAbort_=function(){this.trigger("abort")},N.prototype.handleTechEmptied_=function(){this.trigger("emptied")},N.prototype.handleTechStalled_=function(){this.trigger("stalled")},N.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},N.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},N.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},N.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},N.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},N.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},N.prototype.getCache=function(){return this.cache_},N.prototype.techCall_=function(C,U){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[C](U)},!0);else try{this.tech_[C](U)}catch(X){throw x.default(X),X}},N.prototype.techGet_=function(C){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[C]()}catch(U){throw this.tech_[C]===void 0?x.default("Video.js: "+C+" method not defined for "+this.techName_+" playback technology.",U):U.name==="TypeError"?(x.default("Video.js: "+C+" unavailable on "+this.techName_+" playback technology element.",U),this.tech_.isReady_=!1):x.default(U),U}},N.prototype.play=function(){return this.techCall_("play"),this},N.prototype.pause=function(){return this.techCall_("pause"),this},N.prototype.paused=function(){return this.techGet_("paused")!==!1},N.prototype.scrubbing=function(C){return C!==void 0?(this.scrubbing_=!!C,C?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},N.prototype.currentTime=function(C){return C!==void 0?(this.techCall_("setCurrentTime",C),this):this.cache_.currentTime=this.techGet_("currentTime")||0},N.prototype.duration=function(C){return C===void 0?this.cache_.duration||0:(C=parseFloat(C)||0,C<0&&(C=Infinity),C!==this.cache_.duration&&(this.cache_.duration=C,C===Infinity?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},N.prototype.remainingTime=function(){return this.duration()-this.currentTime()},N.prototype.buffered=function(){var C=this.techGet_("buffered");return(!C||!C.length)&&(C=E.createTimeRange(0,0)),C},N.prototype.bufferedPercent=function(){return J.bufferedPercent(this.buffered(),this.duration())},N.prototype.bufferedEnd=function(){var C=this.buffered(),U=this.duration(),X=C.end(C.length-1);return X>U&&(X=U),X},N.prototype.volume=function(C){var U=void 0;return C!==void 0?(U=Math.max(0,Math.min(1,parseFloat(C))),this.cache_.volume=U,this.techCall_("setVolume",U),this):(U=parseFloat(this.techGet_("volume")),isNaN(U)?1:U)},N.prototype.muted=function(C){return C!==void 0?(this.techCall_("setMuted",C),this):this.techGet_("muted")||!1},N.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},N.prototype.isFullscreen=function(C){return C!==void 0?(this.isFullscreen_=!!C,this):!!this.isFullscreen_},N.prototype.requestFullscreen=function(){var C=L.default;return this.isFullscreen(!0),C.requestFullscreen?(n.on(o.default,C.fullscreenchange,g.bind(this,function U(X){this.isFullscreen(o.default[C.fullscreenElement]),this.isFullscreen()===!1&&n.off(o.default,C.fullscreenchange,U),this.trigger("fullscreenchange")})),this.el_[C.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},N.prototype.exitFullscreen=function(){var C=L.default;return this.isFullscreen(!1),C.requestFullscreen?o.default[C.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},N.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=o.default.documentElement.style.overflow,n.on(o.default,"keydown",g.bind(this,this.fullWindowOnEscKey)),o.default.documentElement.style.overflow="hidden",s.addElClass(o.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},N.prototype.fullWindowOnEscKey=function(C){C.keyCode===27&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},N.prototype.exitFullWindow=function(){this.isFullWindow=!1,n.off(o.default,"keydown",this.fullWindowOnEscKey),o.default.documentElement.style.overflow=this.docOrigOverflow,s.removeElClass(o.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},N.prototype.canPlayType=function(C){for(var U=void 0,X=0,Z=this.options_.techOrder;X 0&&(ft=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},vt))}},250)},N.prototype.playbackRate=function(C){return C!==void 0?(this.techCall_("setPlaybackRate",C),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},N.prototype.isAudio=function(C){return C!==void 0?(this.isAudio_=!!C,this):!!this.isAudio_},N.prototype.networkState=function(){return this.techGet_("networkState")},N.prototype.readyState=function(){return this.techGet_("readyState")},N.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},N.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},N.prototype.remoteTextTrackEls=function(){return this.tech_&&this.tech_.remoteTextTrackEls()},N.prototype.addTextTrack=function(C,U,X){return this.tech_&&this.tech_.addTextTrack(C,U,X)},N.prototype.addRemoteTextTrack=function(C){return this.tech_&&this.tech_.addRemoteTextTrack(C)},N.prototype.removeRemoteTextTrack=function(C){this.tech_&&this.tech_.removeRemoteTextTrack(C)},N.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},N.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},N.prototype.language=function(C){return C===void 0?this.language_:(this.language_=(""+C).toLowerCase(),this)},N.prototype.languages=function(){return z.default(N.prototype.options_.languages,this.languages_)},N.prototype.toJSON=function(){var C=z.default(this.options_),U=C.tracks;C.tracks=[];for(var X=0;X 1&&this.show()},m.prototype.createPopup=function(){},m.prototype.createEl=function(){return l.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},m.prototype.buildCSSClass=function(){var v="vjs-menu-button";return this.options_.inline===!0?v+="-inline":v+="-popup","vjs-menu-button "+v+" "+l.prototype.buildCSSClass.call(this)},m}(p.default);o.default.registerComponent("PopupButton",_),a.default=_,S.exports=a.default},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":132,"../utils/fn.js":134,"../utils/to-title-case.js":141,"./popup.js":111}],111:[function(t,S,a){"use strict";a.__esModule=!0;function c(s){if(s&&s.__esModule)return s;var T={};if(s!=null)for(var g in s)Object.prototype.hasOwnProperty.call(s,g)&&(T[g]=s[g]);return T.default=s,T}function i(s){return s&&s.__esModule?s:{default:s}}function b(s,T){if(!(s instanceof T))throw new TypeError("Cannot call a class as a function")}function d(s,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);s.prototype=Object.create(T&&T.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(s,T):s.__proto__=T)}var f=t("../component.js"),p=i(f),u=t("../utils/dom.js"),o=c(u),r=t("../utils/fn.js"),e=c(r),y=t("../utils/events.js"),n=c(y),h=function(s){d(T,s);function T(){b(this,T),s.apply(this,arguments)}return T.prototype.addItem=function(_){this.addChild(_),_.on("click",e.bind(this,function(){this.unlockShowing()}))},T.prototype.createEl=function(){var _=this.options_.contentElType||"ul";this.contentEl_=o.createEl(_,{className:"vjs-menu-content"});var l=s.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return l.appendChild(this.contentEl_),n.on(l,"click",function(m){m.preventDefault(),m.stopImmediatePropagation()}),l},T}(p.default);p.default.registerComponent("Popup",h),a.default=h,S.exports=a.default},{"../component.js":67,"../utils/dom.js":132,"../utils/events.js":133,"../utils/fn.js":134}],112:[function(t,S,a){"use strict";a.__esModule=!0;function c(g){if(g&&g.__esModule)return g;var _={};if(g!=null)for(var l in g)Object.prototype.hasOwnProperty.call(g,l)&&(_[l]=g[l]);return _.default=g,_}function i(g){return g&&g.__esModule?g:{default:g}}function b(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}function d(g,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);g.prototype=Object.create(_&&_.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(g,_):g.__proto__=_)}var f=t("./clickable-component.js"),p=i(f),u=t("./component.js"),o=i(u),r=t("./utils/fn.js"),e=c(r),y=t("./utils/dom.js"),n=c(y),h=t("./utils/browser.js"),s=c(h),T=function(g){d(_,g);function _(l,m){b(this,_),g.call(this,l,m),this.update(),l.on("posterchange",e.bind(this,this.update))}return _.prototype.dispose=function(){this.player().off("posterchange",this.update),g.prototype.dispose.call(this)},_.prototype.createEl=function(){var m=n.createEl("div",{className:"vjs-poster",tabIndex:-1});return s.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=n.createEl("img"),m.appendChild(this.fallbackImg_)),m},_.prototype.update=function(){var m=this.player().poster();this.setSrc(m),m?this.show():this.hide()},_.prototype.setSrc=function(m){if(this.fallbackImg_)this.fallbackImg_.src=m;else{var w="";m&&(w='url("'+m+'")'),this.el_.style.backgroundImage=w}},_.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},_}(p.default);o.default.registerComponent("PosterImage",T),a.default=T,S.exports=a.default},{"./clickable-component.js":65,"./component.js":67,"./utils/browser.js":129,"./utils/dom.js":132,"./utils/fn.js":134}],113:[function(t,S,a){"use strict";a.__esModule=!0;function c(s){return s&&s.__esModule?s:{default:s}}function i(s){if(s&&s.__esModule)return s;var T={};if(s!=null)for(var g in s)Object.prototype.hasOwnProperty.call(s,g)&&(T[g]=s[g]);return T.default=s,T}var b=t("./utils/events.js"),d=i(b),f=t("global/document"),p=c(f),u=t("global/window"),o=c(u),r=!1,e=void 0,y=function(){var T=p.default.getElementsByTagName("video"),g=p.default.getElementsByTagName("audio"),_=[];if(T&&T.length>0)for(var l=0,m=T.length;l 0)for(var l=0,m=g.length;l 0)for(var l=0,m=_.length;l O.start(0)?A:O.start(0),A=A =10},p.default.withSourceHandlers(v),v.nativeSourceHandler={},v.nativeSourceHandler.canPlayType=function(F){return F in v.formats?"maybe":""},v.nativeSourceHandler.canHandleSource=function(F){var j;function L(A){var O=e.getFileExtension(A);return O?"video/"+O:""}return F.type?j=F.type.replace(/;.*/,"").toLowerCase():j=L(F.src),v.nativeSourceHandler.canPlayType(j)},v.nativeSourceHandler.handleSource=function(F,j){j.setSrc(F.src)},v.nativeSourceHandler.dispose=function(){},v.registerSourceHandler(v.nativeSourceHandler),v.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},v.onReady=function(F){var j=o.getEl(F),L=j&&j.tech;L&&L.el()&&v.checkReady(L)},v.checkReady=function(F){!F.el()||(F.el().vjs_getProperty?F.triggerReady():this.setTimeout(function(){v.checkReady(F)},50))},v.onEvent=function(F,j){var L=o.getEl(F).tech;L.trigger(j)},v.onError=function(F,j){var L=o.getEl(F).tech;if(j==="srcnotfound")return L.error(4);L.error("FLASH: "+j)},v.version=function(){var F="0,0,0";try{F=new _.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(j){try{w.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(F=(w.plugins["Shockwave Flash 2.0"]||w.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(L){}}return F.split(",")},v.embed=function(F,j,L,A){var O=v.getEmbedCode(F,j,L,A),P=o.createEl("div",{innerHTML:O}).childNodes[0];return P},v.getEmbedCode=function(F,j,L,A){var O=''}),A=m.default({data:F,width:"100%",height:"100%"},A),Object.getOwnPropertyNames(A).forEach(function(W){I+=W+'="'+A[W]+'" '}),""+O+I+">"+M+""},h.default(v),T.default.registerComponent("Flash",v),p.default.registerTech("Flash",v),a.default=v,S.exports=a.default},{"../component":67,"../utils/dom.js":132,"../utils/time-ranges.js":140,"../utils/url.js":142,"./flash-rtmp":115,"./tech":119,"global/window":2,"object.assign":45}],117:[function(t,S,a){"use strict";a.__esModule=!0;function c(O){if(O&&O.__esModule)return O;var P={};if(O!=null)for(var M in O)Object.prototype.hasOwnProperty.call(O,M)&&(P[M]=O[M]);return P.default=O,P}function i(O){return O&&O.__esModule?O:{default:O}}function b(O,P){if(!(O instanceof P))throw new TypeError("Cannot call a class as a function")}function d(O,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);O.prototype=Object.create(P&&P.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(O,P):O.__proto__=P)}var f=t("./tech.js"),p=i(f),u=t("../component"),o=i(u),r=t("../utils/dom.js"),e=c(r),y=t("../utils/url.js"),n=c(y),h=t("../utils/fn.js"),s=c(h),T=t("../utils/log.js"),g=i(T),_=t("../utils/browser.js"),l=c(_),m=t("global/document"),w=i(m),v=t("global/window"),x=i(v),k=t("object.assign"),D=i(k),E=t("../utils/merge-options.js"),J=i(E),R=function(O){d(P,O);function P(M,I){b(this,P),O.call(this,M,I);var W=M.source;if(W&&(this.el_.currentSrc!==W.src||M.tag&&M.tag.initNetworkState_===3)?this.setSource(W):this.handleLateInit_(this.el_),this.el_.hasChildNodes()){for(var $=this.el_.childNodes,z=$.length,Q=[];z--;){var Y=$[z],nt=Y.nodeName.toLowerCase();nt==="track"&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(Y),this.remoteTextTracks().addTrack_(Y.track)):Q.push(Y))}for(var lt=0;lt =0;Y--){var nt=Q[Y],lt={};typeof this.options_[nt]!="undefined"&&(lt[nt]=this.options_[nt]),e.setElAttributes(I,lt)}return I},P.prototype.handleLateInit_=function(I){var W=this;if(!(I.networkState===0||I.networkState===3)){if(I.readyState===0){var $=function(){var Q=!1,Y=function(){Q=!0};W.on("loadstart",Y);var nt=function(){Q||this.trigger("loadstart")};return W.on("loadedmetadata",nt),W.ready(function(){this.off("loadstart",Y),this.off("loadedmetadata",nt),Q||this.trigger("loadstart")}),{v:void 0}}();if(typeof $=="object")return $.v}var z=["loadstart"];z.push("loadedmetadata"),I.readyState>=2&&z.push("loadeddata"),I.readyState>=3&&z.push("canplay"),I.readyState>=4&&z.push("canplaythrough"),this.ready(function(){z.forEach(function(Q){this.trigger(Q)},this)})}},P.prototype.proxyNativeTextTracks_=function(){var I=this.el().textTracks;if(I){for(var W=0;W 0&&(O=typeof R.TEST_VID.textTracks[0].mode!="number"),O&&l.IS_FIREFOX&&(O=!1),O&&!("onremovetrack"in R.TEST_VID.textTracks)&&(O=!1),O},R.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],R.prototype.featuresVolumeControl=R.canControlVolume(),R.prototype.featuresPlaybackRate=R.canControlPlaybackRate(),R.prototype.movingMediaElementInDOM=!l.IS_IOS,R.prototype.featuresFullscreenResize=!0,R.prototype.featuresProgressEvents=!0,R.prototype.featuresNativeTextTracks=R.supportsNativeTextTracks();var j=void 0,L=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,A=/^video\/mp4/i;R.patchCanPlayType=function(){l.ANDROID_VERSION>=4&&(j||(j=R.TEST_VID.constructor.prototype.canPlayType),R.TEST_VID.constructor.prototype.canPlayType=function(O){return O&&L.test(O)?"maybe":j.call(this,O)}),l.IS_OLD_ANDROID&&(j||(j=R.TEST_VID.constructor.prototype.canPlayType),R.TEST_VID.constructor.prototype.canPlayType=function(O){return O&&A.test(O)?"maybe":j.call(this,O)})},R.unpatchCanPlayType=function(){var O=R.TEST_VID.constructor.prototype.canPlayType;return R.TEST_VID.constructor.prototype.canPlayType=j,j=null,O},R.patchCanPlayType(),R.disposeMediaElement=function(O){if(!!O){for(O.parentNode&&O.parentNode.removeChild(O);O.hasChildNodes();)O.removeChild(O.firstChild);O.removeAttribute("src"),typeof O.load=="function"&&function(){try{O.load()}catch(P){}}()}},R.resetMediaElement=function(O){if(!!O){for(var P=O.querySelectorAll("source"),M=P.length;M--;)O.removeChild(P[M]);O.removeAttribute("src"),typeof O.load=="function"&&function(){try{O.load()}catch(I){}}()}},o.default.registerComponent("Html5",R),p.default.registerTech("Html5",R),a.default=R,S.exports=a.default},{"../component":67,"../utils/browser.js":129,"../utils/dom.js":132,"../utils/fn.js":134,"../utils/log.js":137,"../utils/merge-options.js":138,"../utils/url.js":142,"./tech.js":119,"global/document":1,"global/window":2,"object.assign":45}],118:[function(t,S,a){"use strict";a.__esModule=!0;function c(h){return h&&h.__esModule?h:{default:h}}function i(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function b(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(h,s):h.__proto__=s)}var d=t("../component.js"),f=c(d),p=t("./tech.js"),u=c(p),o=t("global/window"),r=c(o),e=t("../utils/to-title-case.js"),y=c(e),n=function(h){b(s,h);function s(T,g,_){if(i(this,s),h.call(this,T,g,_),!g.playerOptions.sources||g.playerOptions.sources.length===0)for(var l=0,m=g.playerOptions.techOrder;l 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()})),o.on(this.$(".vjs-fg-color > select"),"change",e.bind(this,this.updateDisplay)),o.on(this.$(".vjs-bg-color > select"),"change",e.bind(this,this.updateDisplay)),o.on(this.$(".window-color > select"),"change",e.bind(this,this.updateDisplay)),o.on(this.$(".vjs-text-opacity > select"),"change",e.bind(this,this.updateDisplay)),o.on(this.$(".vjs-bg-opacity > select"),"change",e.bind(this,this.updateDisplay)),o.on(this.$(".vjs-window-opacity > select"),"change",e.bind(this,this.updateDisplay)),o.on(this.$(".vjs-font-percent select"),"change",e.bind(this,this.updateDisplay)),o.on(this.$(".vjs-edge-style select"),"change",e.bind(this,this.updateDisplay)),o.on(this.$(".vjs-font-family select"),"change",e.bind(this,this.updateDisplay)),this.options_.persistTextTrackSettings&&this.restoreSettings()}return x.prototype.createEl=function(){return v.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:w()})},x.prototype.getValues=function(){var D=l(this.$(".vjs-edge-style select")),E=l(this.$(".vjs-font-family select")),J=l(this.$(".vjs-fg-color > select")),R=l(this.$(".vjs-text-opacity > select")),F=l(this.$(".vjs-bg-color > select")),j=l(this.$(".vjs-bg-opacity > select")),L=l(this.$(".window-color > select")),A=l(this.$(".vjs-window-opacity > select")),O=g.default.parseFloat(l(this.$(".vjs-font-percent > select"))),P={backgroundOpacity:j,textOpacity:R,windowOpacity:A,edgeStyle:D,fontFamily:E,color:J,backgroundColor:F,windowColor:L,fontPercent:O};for(var M in P)(P[M]===""||P[M]==="none"||M==="fontPercent"&&P[M]===1)&&delete P[M];return P},x.prototype.setValues=function(D){m(this.$(".vjs-edge-style select"),D.edgeStyle),m(this.$(".vjs-font-family select"),D.fontFamily),m(this.$(".vjs-fg-color > select"),D.color),m(this.$(".vjs-text-opacity > select"),D.textOpacity),m(this.$(".vjs-bg-color > select"),D.backgroundColor),m(this.$(".vjs-bg-opacity > select"),D.backgroundOpacity),m(this.$(".window-color > select"),D.windowColor),m(this.$(".vjs-window-opacity > select"),D.windowOpacity);var E=D.fontPercent;E&&(E=E.toFixed(2)),m(this.$(".vjs-font-percent > select"),E)},x.prototype.restoreSettings=function(){var D=void 0,E=void 0;try{var J=s.default(g.default.localStorage.getItem("vjs-text-track-settings"));D=J[0],E=J[1],D&&n.default.error(D)}catch(R){n.default.warn(R)}E&&this.setValues(E)},x.prototype.saveSettings=function(){if(!!this.options_.persistTextTrackSettings){var D=this.getValues();try{Object.getOwnPropertyNames(D).length>0?g.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(D)):g.default.localStorage.removeItem("vjs-text-track-settings")}catch(E){n.default.warn(E)}}},x.prototype.updateDisplay=function(){var D=this.player_.getChild("textTrackDisplay");D&&D.updateDisplay()},x}(p.default);p.default.registerComponent("TextTrackSettings",_);function l(v){var x=void 0;return v.selectedOptions?x=v.selectedOptions[0]:v.options&&(x=v.options[v.options.selectedIndex]),x.value}function m(v,x){if(!!x){var k=void 0;for(k=0;k `;return v}a.default=_,S.exports=a.default},{"../component":67,"../utils/events.js":133,"../utils/fn.js":134,"../utils/log.js":137,"global/window":2,"safe-json-parse/tuple":54}],128:[function(t,S,a){"use strict";a.__esModule=!0;function c(j){if(j&&j.__esModule)return j;var L={};if(j!=null)for(var A in j)Object.prototype.hasOwnProperty.call(j,A)&&(L[A]=j[A]);return L.default=j,L}function i(j){return j&&j.__esModule?j:{default:j}}function b(j,L){if(!(j instanceof L))throw new TypeError("Cannot call a class as a function")}function d(j,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);j.prototype=Object.create(L&&L.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(j,L):j.__proto__=L)}var f=t("./text-track-cue-list"),p=i(f),u=t("../utils/fn.js"),o=c(u),r=t("../utils/guid.js"),e=c(r),y=t("../utils/browser.js"),n=c(y),h=t("./text-track-enums"),s=c(h),T=t("../utils/log.js"),g=i(T),_=t("../event-target"),l=i(_),m=t("global/document"),w=i(m),v=t("global/window"),x=i(v),k=t("../utils/url.js"),D=t("xhr"),E=i(D),J=function(L,A){var O=new x.default.WebVTT.Parser(x.default,x.default.vttjs,x.default.WebVTT.StringDecoder());O.oncue=function(P){A.addCue(P)},O.onparsingerror=function(P){g.default.error(P)},O.onflush=function(){A.trigger({type:"loadeddata",target:A})},O.parse(L),O.flush()},R=function(L,A){var O={uri:L},P=k.isCrossOrigin(L);P&&(O.cors=P),E.default(O,o.bind(this,function(M,I,W){if(M)return g.default.error(M,I);A.loaded_=!0,typeof x.default.WebVTT!="function"?A.tech_&&function(){var $=function(){return J(W,A)};A.tech_.on("vttjsloaded",$),A.tech_.on("vttjserror",function(){g.default.error("vttjs failed to load, stopping trying to process "+A.src),A.tech_.off("vttjsloaded",$)})}():J(W,A)}))},F=function(j){d(L,j);function L(){var A=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];if(b(this,L),j.call(this),!A.tech)throw new Error("A tech was not provided.");var O=this;if(n.IS_IE8){O=w.default.createElement("custom");for(var P in L.prototype)P!=="constructor"&&(O[P]=L.prototype[P])}O.tech_=A.tech;var M=s.TextTrackMode[A.mode]||"disabled",I=s.TextTrackKind[A.kind]||"subtitles",W=A.label||"",$=A.language||A.srclang||"",z=A.id||"vjs_text_track_"+e.newGUID();(I==="metadata"||I==="chapters")&&(M="hidden"),O.cues_=[],O.activeCues_=[];var Q=new p.default(O.cues_),Y=new p.default(O.activeCues_),nt=!1,lt=o.bind(O,function(){this.activeCues,nt&&(this.trigger("cuechange"),nt=!1)});if(M!=="disabled"&&O.tech_.on("timeupdate",lt),Object.defineProperty(O,"kind",{get:function(){return I},set:function(){}}),Object.defineProperty(O,"label",{get:function(){return W},set:function(){}}),Object.defineProperty(O,"language",{get:function(){return $},set:function(){}}),Object.defineProperty(O,"id",{get:function(){return z},set:function(){}}),Object.defineProperty(O,"mode",{get:function(){return M},set:function(yt){!s.TextTrackMode[yt]||(M=yt,M==="showing"&&this.tech_.on("timeupdate",lt),this.trigger("modechange"))}}),Object.defineProperty(O,"cues",{get:function(){return this.loaded_?Q:null},set:function(){}}),Object.defineProperty(O,"activeCues",{get:function(){if(!this.loaded_)return null;if(this.cues.length===0)return Y;for(var yt=this.tech_.currentTime(),gt=[],B=0,V=this.cues.length;B=yt||K.startTime===K.endTime&&K.startTime<=yt&&K.startTime+.5>=yt)&>.push(K)}if(nt=!1,gt.length!==this.activeCues_.length)nt=!0;else for(var B=0;B d&&(u=d),f+=u-p;return f/d}},{"./time-ranges.js":140}],131:[function(t,S,a){"use strict";a.__esModule=!0;function c(f){return f&&f.__esModule?f:{default:f}}var i=t("./log.js"),b=c(i),d={get:function(p,u){return p[u]},set:function(p,u,o){return p[u]=o,!0}};a.default=function(f){var p=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];if(typeof Proxy=="function"){var u=function(){var o={};return Object.keys(p).forEach(function(r){d.hasOwnProperty(r)&&(o[r]=function(){return b.default.warn(p[r]),d[r].apply(this,arguments)})}),{v:new Proxy(f,o)}}();if(typeof u=="object")return u.v}return f},S.exports=a.default},{"./log.js":137}],132:[function(t,S,a){"use strict";a.__esModule=!0,a.getEl=m,a.createEl=w,a.textContent=v,a.insertElFirst=x,a.getElData=E,a.hasElData=J,a.removeElData=R,a.hasElClass=F,a.addElClass=j,a.removeElClass=L,a.toggleElClass=A,a.setElAttributes=O,a.getElAttributes=P,a.blockTextSelection=M,a.unblockTextSelection=I,a.findElPosition=W,a.getPointerPosition=$,a.isEl=z,a.isTextNode=Q,a.emptyEl=Y,a.normalizeContent=nt,a.appendContent=lt,a.insertContent=st;var c=d([`Setting attributes in the second argument of createEl() has been deprecated. Use the third argument instead. createEl(type, properties, attributes). Attempting to set `," to ","."],[`Setting attributes in the second argument of createEl() has been deprecated. Use the third argument instead. createEl(type, properties, attributes). Attempting to set `," to ","."]);function i(B){if(B&&B.__esModule)return B;var V={};if(B!=null)for(var K in B)Object.prototype.hasOwnProperty.call(B,K)&&(V[K]=B[K]);return V.default=B,V}function b(B){return B&&B.__esModule?B:{default:B}}function d(B,V){return B.raw=V,B}var f=t("global/document"),p=b(f),u=t("global/window"),o=b(u),r=t("./guid.js"),e=i(r),y=t("./log.js"),n=b(y),h=t("tsml"),s=b(h);function T(B){return typeof B=="string"&&/\S/.test(B)}function g(B){if(/\s/.test(B))throw new Error("class has illegal whitespace characters")}function _(B){return new RegExp("(^|\\s)"+B+"($|\\s)")}function l(B){return function(V,K){return T(V)?(T(K)&&(K=p.default.querySelector(K)),(z(K)?K:p.default)[B](V)):p.default[B](null)}}function m(B){return B.indexOf("#")===0&&(B=B.slice(1)),p.default.getElementById(B)}function w(){var B=arguments.length<=0||arguments[0]===void 0?"div":arguments[0],V=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],K=arguments.length<=2||arguments[2]===void 0?{}:arguments[2],rt=p.default.createElement(B);return Object.getOwnPropertyNames(V).forEach(function(it){var ut=V[it];it.indexOf("aria-")!==-1||it==="role"||it==="type"?(n.default.warn(s.default(c,it,ut)),rt.setAttribute(it,ut)):rt[it]=ut}),Object.getOwnPropertyNames(K).forEach(function(it){var ut=K[it];rt.setAttribute(it,K[it])}),rt}function v(B,V){typeof B.textContent=="undefined"?B.innerText=V:B.textContent=V}function x(B,V){V.firstChild?V.insertBefore(B,V.firstChild):V.appendChild(B)}var k={},D="vdata"+new Date().getTime();function E(B){var V=B[D];return V||(V=B[D]=e.newGUID()),k[V]||(k[V]={}),k[V]}function J(B){var V=B[D];return V?!!Object.getOwnPropertyNames(k[V]).length:!1}function R(B){var V=B[D];if(!!V){delete k[V];try{delete B[D]}catch(K){B.removeAttribute?B.removeAttribute(D):B[D]=null}}}function F(B,V){return B.classList?B.classList.contains(V):(g(V),_(V).test(B.className))}function j(B,V){return B.classList?B.classList.add(V):F(B,V)||(B.className=(B.className+" "+V).trim()),B}function L(B,V){return B.classList?B.classList.remove(V):(g(V),B.className=B.className.split(/\s+/).filter(function(K){return K!==V}).join(" ")),B}function A(B,V,K){var rt=F(B,V);if(typeof K=="function"&&(K=K(B,V)),typeof K!="boolean"&&(K=!rt),K!==rt)return K?j(B,V):L(B,V),B}function O(B,V){Object.getOwnPropertyNames(V).forEach(function(K){var rt=V[K];rt===null||typeof rt=="undefined"||rt===!1?B.removeAttribute(K):B.setAttribute(K,rt===!0?"":rt)})}function P(B){var V,K,rt,it,ut;if(V={},K=",autoplay,controls,loop,muted,default,",B&&B.attributes&&B.attributes.length>0){rt=B.attributes;for(var G=rt.length-1;G>=0;G--)it=rt[G].name,ut=rt[G].value,(typeof B[it]=="boolean"||K.indexOf(","+it+",")!==-1)&&(ut=ut!==null),V[it]=ut}return V}function M(){p.default.body.focus(),p.default.onselectstart=function(){return!1}}function I(){p.default.onselectstart=function(){return!0}}function W(B){var V=void 0;if(B.getBoundingClientRect&&B.parentNode&&(V=B.getBoundingClientRect()),!V)return{left:0,top:0};var K=p.default.documentElement,rt=p.default.body,it=K.clientLeft||rt.clientLeft||0,ut=o.default.pageXOffset||rt.scrollLeft,G=V.left+ut-it,_t=K.clientTop||rt.clientTop||0,bt=o.default.pageYOffset||rt.scrollTop,q=V.top+bt-_t;return{left:Math.round(G),top:Math.round(q)}}function $(B,V){var K={},rt=W(B),it=B.offsetWidth,ut=B.offsetHeight,G=rt.top,_t=rt.left,bt=V.pageY,q=V.pageX;return V.changedTouches&&(q=V.changedTouches[0].pageX,bt=V.changedTouches[0].pageY),K.y=Math.max(0,Math.min(1,(G-bt+ut)/ut)),K.x=Math.max(0,Math.min(1,(q-_t)/it)),K}function z(B){return!!B&&typeof B=="object"&&B.nodeType===1}function Q(B){return!!B&&typeof B=="object"&&B.nodeType===3}function Y(B){for(;B.firstChild;)B.removeChild(B.firstChild);return B}function nt(B){return typeof B=="function"&&(B=B()),(Array.isArray(B)?B:[B]).map(function(V){if(typeof V=="function"&&(V=V()),z(V)||Q(V))return V;if(typeof V=="string"&&/\S/.test(V))return p.default.createTextNode(V)}).filter(function(V){return V})}function lt(B,V){return nt(V).forEach(function(K){return B.appendChild(K)}),B}function st(B,V){return lt(Y(B),V)}var yt=l("querySelector");a.$=yt;var gt=l("querySelectorAll");a.$$=gt},{"./guid.js":136,"./log.js":137,"global/document":1,"global/window":2,tsml:55}],133:[function(t,S,a){"use strict";a.__esModule=!0,a.on=y,a.off=n,a.trigger=h,a.one=s,a.fixEvent=T;function c(l){return l&&l.__esModule?l:{default:l}}function i(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var w in l)Object.prototype.hasOwnProperty.call(l,w)&&(m[w]=l[w]);return m.default=l,m}var b=t("./dom.js"),d=i(b),f=t("./guid.js"),p=i(f),u=t("global/window"),o=c(u),r=t("global/document"),e=c(r);function y(l,m,w){if(Array.isArray(m))return _(y,l,m,w);var v=d.getElData(l);v.handlers||(v.handlers={}),v.handlers[m]||(v.handlers[m]=[]),w.guid||(w.guid=p.newGUID()),v.handlers[m].push(w),v.dispatcher||(v.disabled=!1,v.dispatcher=function(x,k){if(!v.disabled){x=T(x);var D=v.handlers[x.type];if(D)for(var E=D.slice(0),J=0,R=E.length;J 0||o>0?p+":":"",f=((p||u>=10)&&f<10?"0"+f:f)+":",d=d<10?"0"+d:d,p+f+d}()}a.default=c,S.exports=a.default},{}],136:[function(t,S,a){"use strict";a.__esModule=!0,a.newGUID=i;var c=1;function i(){return c++}},{}],137:[function(t,S,a){"use strict";a.__esModule=!0;function c(p){return p&&p.__esModule?p:{default:p}}var i=t("global/window"),b=c(i),d=function(){f(null,arguments)};d.history=[],d.error=function(){f("error",arguments)},d.warn=function(){f("warn",arguments)};function f(p,u){var o=Array.prototype.slice.call(u),r=function(){},e=b.default.console||{log:r,warn:r,error:r};p?o.unshift(p.toUpperCase()+":"):p="log",d.history.push(o),o.unshift("VIDEOJS:"),e[p].apply?e[p].apply(e,o):e[p](o.join(" "))}a.default=d,S.exports=a.default},{"global/window":2}],138:[function(t,S,a){"use strict";a.__esModule=!0,a.default=p;function c(u){return u&&u.__esModule?u:{default:u}}var i=t("lodash-compat/object/merge"),b=c(i);function d(u){return!!u&&typeof u=="object"&&u.toString()==="[object Object]"&&u.constructor===Object}var f=function(o,r){if(!d(r))return r;if(!d(o))return p(r)};function p(){var u=Array.prototype.slice.call(arguments);return u.unshift({}),u.push(f),b.default.apply(null,u),u[0]}S.exports=a.default},{"lodash-compat/object/merge":40}],139:[function(t,S,a){"use strict";a.__esModule=!0;function c(p){return p&&p.__esModule?p:{default:p}}var i=t("global/document"),b=c(i),d=function(u){var o=b.default.createElement("style");return o.className=u,o};a.createStyleElement=d;var f=function(u,o){u.styleSheet?u.styleSheet.cssText=o:u.textContent=o};a.setTextContent=f},{"global/document":1}],140:[function(t,S,a){"use strict";a.__esModule=!0,a.createTimeRanges=d;function c(o){return o&&o.__esModule?o:{default:o}}var i=t("./log.js"),b=c(i);function d(o,r){return Array.isArray(o)?f(o):o===void 0||r===void 0?f():f([[o,r]])}a.createTimeRange=d;function f(o){return o===void 0||o.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:o.length,start:p.bind(null,"start",0,o),end:p.bind(null,"end",1,o)}}function p(o,r,e,y){return y===void 0&&(b.default.warn("DEPRECATED: Function '"+o+"' on 'TimeRanges' called without an index argument."),y=0),u(o,y,e.length-1),e[y][r]}function u(o,r,e){if(r<0||r>e)throw new Error("Failed to execute '"+o+"' on 'TimeRanges': The index provided ("+r+") is greater than or equal to the maximum bound ("+e+").")}},{"./log.js":137}],141:[function(t,S,a){"use strict";a.__esModule=!0;function c(i){return i.charAt(0).toUpperCase()+i.slice(1)}a.default=c,S.exports=a.default},{}],142:[function(t,S,a){"use strict";a.__esModule=!0;function c(e){return e&&e.__esModule?e:{default:e}}var i=t("global/document"),b=c(i),d=t("global/window"),f=c(d),p=function(y){var n=["protocol","hostname","port","pathname","search","hash","host"],h=b.default.createElement("a");h.href=y;var s=h.host===""&&h.protocol!=="file:",T=void 0;s&&(T=b.default.createElement("div"),T.innerHTML='',h=T.firstChild,T.setAttribute("style","display:none; position:absolute;"),b.default.body.appendChild(T));for(var g={},_=0;_ x',y=n.firstChild.href}return y};a.getAbsoluteURL=u;var o=function(y){if(typeof y=="string"){var n=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,h=n.exec(y);if(h)return h.pop().toLowerCase()}return""};a.getFileExtension=o;var r=function(y){var n=f.default.location,h=p(y),s=h.protocol===":"?n.protocol:h.protocol,T=s+h.host!==n.protocol+n.host;return T};a.isCrossOrigin=r},{"global/document":1,"global/window":2}],143:[function(t,S,a){"use strict";a.__esModule=!0;function c(q){if(q&&q.__esModule)return q;var at={};if(q!=null)for(var mt in q)Object.prototype.hasOwnProperty.call(q,mt)&&(at[mt]=q[mt]);return at.default=q,at}function i(q){return q&&q.__esModule?q:{default:q}}var b=t("global/document"),d=i(b),f=t("./setup"),p=c(f),u=t("./utils/stylesheet.js"),o=c(u),r=t("./component"),e=i(r),y=t("./event-target"),n=i(y),h=t("./utils/events.js"),s=c(h),T=t("./player"),g=i(T),_=t("./plugins.js"),l=i(_),m=t("../../src/js/utils/merge-options.js"),w=i(m),v=t("./utils/fn.js"),x=c(v),k=t("./tracks/text-track.js"),D=i(k),E=t("object.assign"),J=i(E),R=t("./utils/time-ranges.js"),F=t("./utils/format-time.js"),j=i(F),L=t("./utils/log.js"),A=i(L),O=t("./utils/dom.js"),P=c(O),M=t("./utils/browser.js"),I=c(M),W=t("./utils/url.js"),$=c(W),z=t("./extend.js"),Q=i(z),Y=t("lodash-compat/object/merge"),nt=i(Y),lt=t("./utils/create-deprecation-proxy.js"),st=i(lt),yt=t("xhr"),gt=i(yt),B=t("./tech/tech.js"),V=i(B),K=t("./tech/html5.js"),rt=i(K),it=t("./tech/flash.js"),ut=i(it);typeof HTMLVideoElement=="undefined"&&(d.default.createElement("video"),d.default.createElement("audio"),d.default.createElement("track"));var G=function q(at,mt,kt){var Tt=void 0;if(typeof at=="string"){if(at.indexOf("#")===0&&(at=at.slice(1)),q.getPlayers()[at])return mt&&A.default.warn('Player "'+at+'" is already initialised. Options will not be applied.'),kt&&q.getPlayers()[at].ready(kt),q.getPlayers()[at];Tt=P.getEl(at)}else Tt=at;if(!Tt||!Tt.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return Tt.player||g.default.players[Tt.playerId]||new g.default(Tt,mt,kt)},_t=P.$(".vjs-styles-defaults");if(!_t){_t=o.createStyleElement("vjs-styles-defaults");var bt=P.$("head");bt.insertBefore(_t,bt.firstChild),o.setTextContent(_t,` .video-js { width: 300px; height: 150px; } .vjs-fluid { padding-top: 56.25% } `)}p.autoSetupTimeout(1,G),G.VERSION="5.8.7",G.options=g.default.prototype.options_,G.getPlayers=function(){return g.default.players},G.players=st.default(g.default.players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"}),G.getComponent=e.default.getComponent,G.registerComponent=function(q,at){V.default.isTech(at)&&A.default.warn("The "+q+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),e.default.registerComponent.call(e.default,q,at)},G.getTech=V.default.getTech,G.registerTech=V.default.registerTech,G.browser=I,G.TOUCH_ENABLED=I.TOUCH_ENABLED,G.extend=Q.default,G.mergeOptions=w.default,G.bind=x.bind,G.plugin=l.default,G.addLanguage=function(q,at){var mt;return q=(""+q).toLowerCase(),nt.default(G.options.languages,(mt={},mt[q]=at,mt))[q]},G.log=A.default,G.createTimeRange=G.createTimeRanges=R.createTimeRanges,G.formatTime=j.default,G.parseUrl=$.parseUrl,G.isCrossOrigin=$.isCrossOrigin,G.EventTarget=n.default,G.on=s.on,G.one=s.one,G.off=s.off,G.trigger=s.trigger,G.xhr=gt.default,G.TextTrack=D.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,typeof wt=="function"&&wt.amd?wt("videojs",[],function(){return G}):typeof a=="object"&&typeof S=="object"&&(S.exports=G),a.default=G,S.exports=a.default},{"../../src/js/utils/merge-options.js":138,"./component":67,"./event-target":99,"./extend.js":100,"./player":108,"./plugins.js":109,"./setup":113,"./tech/flash.js":116,"./tech/html5.js":117,"./tech/tech.js":119,"./tracks/text-track.js":128,"./utils/browser.js":129,"./utils/create-deprecation-proxy.js":131,"./utils/dom.js":132,"./utils/events.js":133,"./utils/fn.js":134,"./utils/format-time.js":135,"./utils/log.js":137,"./utils/stylesheet.js":139,"./utils/time-ranges.js":140,"./utils/url.js":142,"global/document":1,"lodash-compat/object/merge":40,"object.assign":45,xhr:56}]},{},[143])(143)});