/**
* @license
* Video.js 5.5.3
* Copyright Brightcove, Inc.
* Available under Apache License Version 2.0
*
*
* Includes vtt.js
* Available under Apache License Version 2.0
*
*/(function(ot){if(typeof exports=="object"&&typeof module!="undefined")module.exports=ot();else if(typeof define=="function"&&define.amd)define([],ot);else{var q;typeof window!="undefined"?q=window:typeof global!="undefined"?q=global:typeof self!="undefined"?q=self:q=this,q.videojs=ot()}})(function(){var ot,q,at;return function t(C,l,p){function a(f,v){if(!l[f]){if(!C[f]){var u=typeof require=="function"&&require;if(!v&&u)return u(f,!0);if(m)return m(f,!0);var i=new Error("Cannot find module '"+f+"'");throw i.code="MODULE_NOT_FOUND",i}var o=l[f]={exports:{}};C[f][0].call(o.exports,function(r){var g=C[f][1][r];return a(g||r)},o,o.exports,t,C,l,p)}return l[f].exports}for(var m=typeof require=="function"&&require,h=0;hu?y(T,r):c=setTimeout(O,x)}function b(){y(e,c)}function w(){if(o=arguments,s=a(),d=this,T=e&&(c||!n),F===!1)var x=n&&!c;else{!r&&!n&&(_=s);var B=F-(s-_),D=B<=0||B>F;D?(r&&(r=clearTimeout(r)),_=s,g=v.apply(d,o)):r||(r=setTimeout(b,B))}return D&&c?c=clearTimeout(c):!c&&u!==F&&(c=setTimeout(O,u)),x&&(D=!0,g=v.apply(d,o)),D&&!c&&!r&&(o=d=void 0),g}return w.cancel=E,w}C.exports=f},{"../date/now":4,"../lang/isObject":33}],6:[function(t,C,l){var p="Expected a function",a=Math.max;function m(h,f){if(typeof h!="function")throw new TypeError(p);return f=a(f===void 0?h.length-1:+f||0,0),function(){for(var v=arguments,u=-1,i=a(v.length-f,0),o=Array(i);++u2?u[o-2]:void 0,g=o>2?u[2]:void 0,s=o>1?u[o-1]:void 0;for(typeof r=="function"?(r=p(r,s,5),o-=2):(r=typeof s=="function"?s:void 0,o-=r?1:0),g&&a(u[0],u[1],g)&&(r=o<3?void 0:r,o=1);++i-1&&h%1==0&&h-1&&m%1==0&&m<=p}C.exports=a},{}],26:[function(t,C,l){function p(a){return!!a&&typeof a=="object"}C.exports=p},{}],27:[function(t,C,l){var p=t("../lang/isArguments"),a=t("../lang/isArray"),m=t("./isIndex"),h=t("./isLength"),f=t("../lang/isString"),v=t("../object/keysIn"),u=Object.prototype,i=u.hasOwnProperty;function o(r){for(var g=v(r),s=g.length,d=s&&r.length,c=!!d&&h(d)&&(a(r)||p(r)||f(r)),T=-1,_=[];++T0,I=o.enumErrorProps&&(D===E||D instanceof Error),W=o.enumPrototypes&&h(D);++J2?arguments[2]:{},d=p(g);m&&(d=d.concat(Object.getOwnPropertySymbols(g))),a(d,function(c){i(r,c,g[c],s[c])})};o.supportsDescriptors=!!u,C.exports=o},{foreach:47,"object-keys":49}],47:[function(t,C,l){var p=Object.prototype.hasOwnProperty,a=Object.prototype.toString;C.exports=function(h,f,v){if(a.call(f)!=="[object Function]")throw new TypeError("iterator must be a function");var u=h.length;if(u===+u)for(var i=0;i0&&!p.call(c,0))for(var y=0;y0)for(var O=0;O=0&&p.call(m.callee)==="[object Function]"),f}},{}],51:[function(t,C,l){"use strict";var p=t("./implementation"),a=function(){if(!Object.assign)return!1;for(var h="abcdefghijklmnopqrst",f=h.split(""),v={},u=0;u0&&(S=setTimeout(function(){y=!0,n.abort("timeout");var k=new Error("XMLHttpRequest timeout");k.code="ETIMEDOUT",F(k)},s.timeout)),n.setRequestHeader)for(E in x)x.hasOwnProperty(E)&&n.setRequestHeader(E,x[E]);else if(s.headers&&!u(s.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in s&&(n.responseType=s.responseType),"beforeSend"in s&&typeof s.beforeSend=="function"&&s.beforeSend(n),n.send(w),n}function g(){}},{"global/window":2,"is-function":56,once:57,"parse-headers":60,xtend:61}],56:[function(t,C,l){C.exports=a;var p=Object.prototype.toString;function a(m){var h=p.call(m);return h==="[object Function]"||typeof m=="function"&&h!=="[object RegExp]"||typeof window!="undefined"&&(m===window.setTimeout||m===window.alert||m===window.confirm||m===window.prompt)}},{}],57:[function(t,C,l){C.exports=p,p.proto=p(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return p(this)},configurable:!0})});function p(a){var m=!1;return function(){if(!m)return m=!0,a.apply(this,arguments)}}},{}],58:[function(t,C,l){var p=t("is-function");C.exports=h;var a=Object.prototype.toString,m=Object.prototype.hasOwnProperty;function h(i,o,r){if(!p(o))throw new TypeError("iterator must be a function");arguments.length<3&&(r=this),a.call(i)==="[object Array]"?f(i,o,r):typeof i=="string"?v(i,o,r):u(i,o,r)}function f(i,o,r){for(var g=0,s=i.length;g=0;x--)this.children_[x].dispose&&this.children_[x].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),u.removeElData(this.el_),this.el_=null},b.prototype.player=function(){return this.player_},b.prototype.options=function(x){return T.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),x?(this.options_=y.default(this.options_,x),this.options_):this.options_},b.prototype.el=function(){return this.el_},b.prototype.createEl=function(x,B,D){return u.createEl(x,B,D)},b.prototype.localize=function(x){var B=this.player_.language&&this.player_.language(),D=this.player_.languages&&this.player_.languages();if(!B||!D)return x;var S=D[B];if(S&&S[x])return S[x];var k=B.split("-")[0],J=D[k];return J&&J[x]?J[x]:x},b.prototype.contentEl=function(){return this.contentEl_||this.el_},b.prototype.id=function(){return this.id_},b.prototype.name=function(){return this.name_},b.prototype.children=function(){return this.children_},b.prototype.getChildById=function(x){return this.childIndex_[x]},b.prototype.getChild=function(x){return this.childNameIndex_[x]},b.prototype.addChild=function(x){var B=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],D=void 0,S=void 0;if(typeof x=="string"){S=x,B||(B={}),B===!0&&(T.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`."),B={});var k=B.componentClass||F.default(S);B.name=S;var J=b.getComponent(k);if(!J)throw new Error("Component "+k+" does not exist");if(typeof J!="function")return null;D=new J(this.player_||this,B)}else D=x;return this.children_.push(D),typeof D.id=="function"&&(this.childIndex_[D.id()]=D),S=S||D.name&&D.name(),S&&(this.childNameIndex_[S]=D),typeof D.el=="function"&&D.el()&&this.contentEl().appendChild(D.el()),D},b.prototype.removeChild=function(x){if(typeof x=="string"&&(x=this.getChild(x)),!(!x||!this.children_)){for(var B=!1,D=this.children_.length-1;D>=0;D--)if(this.children_[D]===x){B=!0,this.children_.splice(D,1);break}if(!!B){this.childIndex_[x.id()]=null,this.childNameIndex_[x.name()]=null;var S=x.el();S&&S.parentNode===this.contentEl()&&this.contentEl().removeChild(x.el())}}},b.prototype.initChildren=function(){var x=this,B=this.options_.children;B&&function(){var D=x.options_,S=function(A){var j=A.name,P=A.opts;if(D[j]!==void 0&&(P=D[j]),P!==!1){P===!0&&(P={}),P.playerOptions=x.options_.playerOptions;var I=x.addChild(j,P);I&&(x[j]=I)}},k=void 0,J=b.getComponent("Tech");Array.isArray(B)?k=B:k=Object.keys(B),k.concat(Object.keys(x.options_).filter(function(R){return!k.some(function(A){return typeof A=="string"?R===A:R===A.name})})).map(function(R){var A=void 0,j=void 0;return typeof R=="string"?(A=R,j=B[A]||x.options_[A]||{}):(A=R.name,j=R),{name:A,opts:j}}).filter(function(R){var A=b.getComponent(R.opts.componentClass||F.default(R.name));return A&&!J.isTech(A)}).forEach(S)}()},b.prototype.buildCSSClass=function(){return""},b.prototype.on=function(x,B,D){var S=this;return typeof x=="string"||Array.isArray(x)?d.on(this.el_,x,o.bind(this,B)):function(){var k=x,J=B,R=o.bind(S,D),A=function(){return S.off(k,J,R)};A.guid=R.guid,S.on("dispose",A);var j=function(){return S.off("dispose",A)};j.guid=R.guid,x.nodeName?(d.on(k,J,R),d.on(k,"dispose",j)):typeof x.on=="function"&&(k.on(J,R),k.on("dispose",j))}(),this},b.prototype.off=function(x,B,D){if(!x||typeof x=="string"||Array.isArray(x))d.off(this.el_,x,B);else{var S=x,k=B,J=o.bind(this,D);this.off("dispose",J),x.nodeName?(d.off(S,k,J),d.off(S,"dispose",J)):(S.off(k,J),S.off("dispose",J))}return this},b.prototype.one=function(x,B,D){var S=this,k=arguments;return typeof x=="string"||Array.isArray(x)?d.one(this.el_,x,o.bind(this,B)):function(){var J=x,R=B,A=o.bind(S,D),j=function P(){S.off(J,R,P),A.apply(null,k)};j.guid=A.guid,S.on(J,R,j)}(),this},b.prototype.trigger=function(x,B){return d.trigger(this.el_,x,B),this},b.prototype.ready=function(x){var B=arguments.length<=1||arguments[1]===void 0?!1:arguments[1];return x&&(this.isReady_?B?x.call(this):this.setTimeout(x,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(x))),this},b.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var x=this.readyQueue_;this.readyQueue_=[],x&&x.length>0&&x.forEach(function(B){B.call(this)},this),this.trigger("ready")},1)},b.prototype.$=function(x,B){return u.$(x,B||this.contentEl())},b.prototype.$$=function(x,B){return u.$$(x,B||this.contentEl())},b.prototype.hasClass=function(x){return u.hasElClass(this.el_,x)},b.prototype.addClass=function(x){return u.addElClass(this.el_,x),this},b.prototype.removeClass=function(x){return u.removeElClass(this.el_,x),this},b.prototype.toggleClass=function(x,B){return u.toggleElClass(this.el_,x,B),this},b.prototype.show=function(){return this.removeClass("vjs-hidden"),this},b.prototype.hide=function(){return this.addClass("vjs-hidden"),this},b.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},b.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},b.prototype.width=function(x,B){return this.dimension("width",x,B)},b.prototype.height=function(x,B){return this.dimension("height",x,B)},b.prototype.dimensions=function(x,B){return this.width(x,!0).height(B)},b.prototype.dimension=function(x,B,D){if(B!==void 0)return(B===null||B!==B)&&(B=0),(""+B).indexOf("%")!==-1||(""+B).indexOf("px")!==-1?this.el_.style[x]=B:B==="auto"?this.el_.style[x]="":this.el_.style[x]=B+"px",D||this.trigger("resize"),this;if(!this.el_)return 0;var S=this.el_.style[x],k=S.indexOf("px");return parseInt(k!==-1?S.slice(0,k):this.el_["offset"+F.default(x)],10)},b.prototype.emitTapEvents=function(){var x=0,B=null,D=10,S=200,k=void 0;this.on("touchstart",function(R){R.touches.length===1&&(B=n.default({},R.touches[0]),x=new Date().getTime(),k=!0)}),this.on("touchmove",function(R){if(R.touches.length>1)k=!1;else if(B){var A=R.touches[0].pageX-B.pageX,j=R.touches[0].pageY-B.pageY,P=Math.sqrt(A*A+j*j);P>D&&(k=!1)}});var J=function(){k=!1};this.on("touchleave",J),this.on("touchcancel",J),this.on("touchend",function(R){if(B=null,k===!0){var A=new Date().getTime()-x;A'+this.localize("Stream Type")+""+this.localize("LIVE")},{"aria-live":"off"}),d.appendChild(this.contentEl_),d},g.prototype.updateShowing=function(){this.player().duration()===Infinity?this.show():this.hide()},g}(v.default);v.default.registerComponent("LiveDisplay",o),l.default=o,C.exports=l.default},{"../component":65,"../utils/dom.js":128}],69:[function(t,C,l){"use strict";l.__esModule=!0;function p(s){if(s&&s.__esModule)return s;var d={};if(s!=null)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(d[c]=s[c]);return d.default=s,d}function a(s){return s&&s.__esModule?s:{default:s}}function m(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var f=t("../button"),v=a(f),u=t("../component"),i=a(u),o=t("../utils/dom.js"),r=p(o),g=function(s){h(d,s);function d(c,T){m(this,d),s.call(this,c,T),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 d.prototype.buildCSSClass=function(){return"vjs-mute-control "+s.prototype.buildCSSClass.call(this)},d.prototype.handleClick=function(){this.player_.muted(!this.player_.muted())},d.prototype.update=function(){var T=this.player_.volume(),_=3;T===0||this.player_.muted()?_=0:T<.33?_=1:T<.67&&(_=2);var F=this.player_.muted()?"Unmute":"Mute",e=this.localize(F);this.controlText()!==e&&this.controlText(e);for(var n=0;n<4;n++)r.removeElClass(this.el_,"vjs-vol-"+n);r.addElClass(this.el_,"vjs-vol-"+_)},d}(v.default);g.prototype.controlText_="Mute",i.default.registerComponent("MuteToggle",g),l.default=g,C.exports=l.default},{"../button":63,"../component":65,"../utils/dom.js":128}],70:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("../button.js"),f=p(h),v=t("../component.js"),u=p(v),i=function(o){m(r,o);function r(g,s){a(this,r),o.call(this,g,s),this.on(g,"play",this.handlePlay),this.on(g,"pause",this.handlePause)}return r.prototype.buildCSSClass=function(){return"vjs-play-control "+o.prototype.buildCSSClass.call(this)},r.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},r.prototype.handlePlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},r.prototype.handlePause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},r}(f.default);i.prototype.controlText_="Play",u.default.registerComponent("PlayToggle",i),l.default=i,C.exports=l.default},{"../button.js":63,"../component.js":65}],71:[function(t,C,l){"use strict";l.__esModule=!0;function p(_){if(_&&_.__esModule)return _;var F={};if(_!=null)for(var e in _)Object.prototype.hasOwnProperty.call(_,e)&&(F[e]=_[e]);return F.default=_,F}function a(_){return _&&_.__esModule?_:{default:_}}function m(_,F){if(!(_ instanceof F))throw new TypeError("Cannot call a class as a function")}function h(_,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);_.prototype=Object.create(F&&F.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(_,F):_.__proto__=F)}var f=t("../../menu/menu-button.js"),v=a(f),u=t("../../menu/menu.js"),i=a(u),o=t("./playback-rate-menu-item.js"),r=a(o),g=t("../../component.js"),s=a(g),d=t("../../utils/dom.js"),c=p(d),T=function(_){h(F,_);function F(e,n){m(this,F),_.call(this,e,n),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",this.updateVisibility),this.on(e,"ratechange",this.updateLabel)}return F.prototype.createEl=function(){var n=_.prototype.createEl.call(this);return this.labelEl_=c.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),n.appendChild(this.labelEl_),n},F.prototype.buildCSSClass=function(){return"vjs-playback-rate "+_.prototype.buildCSSClass.call(this)},F.prototype.createMenu=function(){var n=new i.default(this.player()),E=this.playbackRates();if(E)for(var y=E.length-1;y>=0;y--)n.addChild(new r.default(this.player(),{rate:E[y]+"x"}));return n},F.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},F.prototype.handleClick=function(){for(var n=this.player().playbackRate(),E=this.playbackRates(),y=E[0],O=0;On){y=E[O];break}this.player().playbackRate(y)},F.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},F.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},F.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},F.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},F}(v.default);T.prototype.controlText_="Playback Rate",s.default.registerComponent("PlaybackRateMenuButton",T),l.default=T,C.exports=l.default},{"../../component.js":65,"../../menu/menu-button.js":102,"../../menu/menu.js":104,"../../utils/dom.js":128,"./playback-rate-menu-item.js":72}],72:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("../../menu/menu-item.js"),f=p(h),v=t("../../component.js"),u=p(v),i=function(o){m(r,o);function r(g,s){a(this,r);var d=s.rate,c=parseFloat(d,10);s.label=d,s.selected=c===1,o.call(this,g,s),this.label=d,this.rate=c,this.on(g,"ratechange",this.update)}return r.prototype.handleClick=function(){o.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},r.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},r}(f.default);i.prototype.contentElType="button",u.default.registerComponent("PlaybackRateMenuItem",i),l.default=i,C.exports=l.default},{"../../component.js":65,"../../menu/menu-item.js":103}],73:[function(t,C,l){"use strict";l.__esModule=!0;function p(r){if(r&&r.__esModule)return r;var g={};if(r!=null)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(g[s]=r[s]);return g.default=r,g}function a(r){return r&&r.__esModule?r:{default:r}}function m(r,g){if(!(r instanceof g))throw new TypeError("Cannot call a class as a function")}function h(r,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);r.prototype=Object.create(g&&g.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(r,g):r.__proto__=g)}var f=t("../../component.js"),v=a(f),u=t("../../utils/dom.js"),i=p(u),o=function(r){h(g,r);function g(s,d){m(this,g),r.call(this,s,d),this.on(s,"progress",this.update)}return g.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+": 0%"})},g.prototype.update=function(){var d=this.player_.buffered(),c=this.player_.duration(),T=this.player_.bufferedEnd(),_=this.el_.children,F=function(b,w){var x=b/w||0;return(x>=1?1:x)*100+"%"};this.el_.style.width=F(T,c);for(var e=0;ed.length;e--)this.el_.removeChild(_[e-1])},g}(v.default);v.default.registerComponent("LoadProgressBar",o),l.default=o,C.exports=l.default},{"../../component.js":65,"../../utils/dom.js":128}],74:[function(t,C,l){"use strict";l.__esModule=!0;function p(_){if(_&&_.__esModule)return _;var F={};if(_!=null)for(var e in _)Object.prototype.hasOwnProperty.call(_,e)&&(F[e]=_[e]);return F.default=_,F}function a(_){return _&&_.__esModule?_:{default:_}}function m(_,F){if(!(_ instanceof F))throw new TypeError("Cannot call a class as a function")}function h(_,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);_.prototype=Object.create(F&&F.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(_,F):_.__proto__=F)}var f=t("../../component.js"),v=a(f),u=t("../../utils/dom.js"),i=p(u),o=t("../../utils/fn.js"),r=p(o),g=t("../../utils/format-time.js"),s=a(g),d=t("lodash-compat/function/throttle"),c=a(d),T=function(_){h(F,_);function F(e,n){var E=this;m(this,F),_.call(this,e,n),this.update(0,0),e.on("ready",function(){E.on(e.controlBar.progressControl.el(),"mousemove",c.default(r.bind(E,E.handleMouseMove),25))})}return F.prototype.createEl=function(){return _.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},F.prototype.handleMouseMove=function(n){var E=this.player_.duration(),y=this.calculateDistance(n)*E,O=n.pageX-i.findElPosition(this.el().parentNode).left;this.update(y,O)},F.prototype.update=function(n,E){var y=s.default(n,this.player_.duration());this.el().style.left=E+"px",this.el().setAttribute("data-current-time",y)},F.prototype.calculateDistance=function(n){return i.getPointerPosition(this.el().parentNode,n).x},F}(v.default);v.default.registerComponent("MouseTimeDisplay",T),l.default=T,C.exports=l.default},{"../../component.js":65,"../../utils/dom.js":128,"../../utils/fn.js":130,"../../utils/format-time.js":131,"lodash-compat/function/throttle":7}],75:[function(t,C,l){"use strict";l.__esModule=!0;function p(s){if(s&&s.__esModule)return s;var d={};if(s!=null)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(d[c]=s[c]);return d.default=s,d}function a(s){return s&&s.__esModule?s:{default:s}}function m(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var f=t("../../component.js"),v=a(f),u=t("../../utils/fn.js"),i=p(u),o=t("../../utils/format-time.js"),r=a(o),g=function(s){h(d,s);function d(c,T){m(this,d),s.call(this,c,T),this.updateDataAttr(),this.on(c,"timeupdate",this.updateDataAttr),c.ready(i.bind(this,this.updateDataAttr))}return d.prototype.createEl=function(){return s.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:''+this.localize("Progress")+": 0%"})},d.prototype.updateDataAttr=function(){var T=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",r.default(T,this.player_.duration()))},d}(v.default);v.default.registerComponent("PlayProgressBar",g),l.default=g,C.exports=l.default},{"../../component.js":65,"../../utils/fn.js":130,"../../utils/format-time.js":131}],76:[function(t,C,l){"use strict";l.__esModule=!0;function p(g){return g&&g.__esModule?g:{default:g}}function a(g,s){if(!(g instanceof s))throw new TypeError("Cannot call a class as a function")}function m(g,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);g.prototype=Object.create(s&&s.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(g,s):g.__proto__=s)}var h=t("../../component.js"),f=p(h),v=t("./seek-bar.js"),u=p(v),i=t("./mouse-time-display.js"),o=p(i),r=function(g){m(s,g);function s(){a(this,s),g.apply(this,arguments)}return s.prototype.createEl=function(){return g.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},s}(f.default);r.prototype.options_={children:["seekBar"]},f.default.registerComponent("ProgressControl",r),l.default=r,C.exports=l.default},{"../../component.js":65,"./mouse-time-display.js":74,"./seek-bar.js":77}],77:[function(t,C,l){"use strict";l.__esModule=!0;function p(E){if(E&&E.__esModule)return E;var y={};if(E!=null)for(var O in E)Object.prototype.hasOwnProperty.call(E,O)&&(y[O]=E[O]);return y.default=E,y}function a(E){return E&&E.__esModule?E:{default:E}}function m(E,y){if(!(E instanceof y))throw new TypeError("Cannot call a class as a function")}function h(E,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);E.prototype=Object.create(y&&y.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(E,y):E.__proto__=y)}var f=t("../../slider/slider.js"),v=a(f),u=t("../../component.js"),i=a(u),o=t("./load-progress-bar.js"),r=a(o),g=t("./play-progress-bar.js"),s=a(g),d=t("../../utils/fn.js"),c=p(d),T=t("../../utils/format-time.js"),_=a(T),F=t("object.assign"),e=a(F),n=function(E){h(y,E);function y(O,b){m(this,y),E.call(this,O,b),this.on(O,"timeupdate",this.updateARIAAttributes),O.ready(c.bind(this,this.updateARIAAttributes))}return y.prototype.createEl=function(){return E.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"video progress bar"})},y.prototype.updateARIAAttributes=function(){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("aria-valuenow",(this.getPercent()*100).toFixed(2)),this.el_.setAttribute("aria-valuetext",_.default(b,this.player_.duration()))},y.prototype.getPercent=function(){var b=this.player_.currentTime()/this.player_.duration();return b>=1?1:b},y.prototype.handleMouseDown=function(b){E.prototype.handleMouseDown.call(this,b),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},y.prototype.handleMouseMove=function(b){var w=this.calculateDistance(b)*this.player_.duration();w===this.player_.duration()&&(w=w-.1),this.player_.currentTime(w)},y.prototype.handleMouseUp=function(b){E.prototype.handleMouseUp.call(this,b),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},y.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},y.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},y}(v.default);n.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},n.prototype.playerEvent="timeupdate",i.default.registerComponent("SeekBar",n),l.default=n,C.exports=l.default},{"../../component.js":65,"../../slider/slider.js":110,"../../utils/fn.js":130,"../../utils/format-time.js":131,"./load-progress-bar.js":73,"./play-progress-bar.js":75,"object.assign":45}],78:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("./spacer.js"),f=p(h),v=t("../../component.js"),u=p(v),i=function(o){m(r,o);function r(){a(this,r),o.apply(this,arguments)}return r.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+o.prototype.buildCSSClass.call(this)},r.prototype.createEl=function(){var s=o.prototype.createEl.call(this,{className:this.buildCSSClass()});return s.innerHTML=" ",s},r}(f.default);u.default.registerComponent("CustomControlSpacer",i),l.default=i,C.exports=l.default},{"../../component.js":65,"./spacer.js":79}],79:[function(t,C,l){"use strict";l.__esModule=!0;function p(u){return u&&u.__esModule?u:{default:u}}function a(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")}function m(u,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);u.prototype=Object.create(i&&i.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(u,i):u.__proto__=i)}var h=t("../../component.js"),f=p(h),v=function(u){m(i,u);function i(){a(this,i),u.apply(this,arguments)}return i.prototype.buildCSSClass=function(){return"vjs-spacer "+u.prototype.buildCSSClass.call(this)},i.prototype.createEl=function(){return u.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},i}(f.default);f.default.registerComponent("Spacer",v),l.default=v,C.exports=l.default},{"../../component.js":65}],80:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("./text-track-menu-item.js"),f=p(h),v=t("../../component.js"),u=p(v),i=function(o){m(r,o);function r(g,s){a(this,r),s.track={kind:s.kind,player:g,label:s.kind+" settings",default:!1,mode:"disabled"},o.call(this,g,s),this.addClass("vjs-texttrack-settings")}return r.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show()},r}(f.default);u.default.registerComponent("CaptionSettingsMenuItem",i),l.default=i,C.exports=l.default},{"../../component.js":65,"./text-track-menu-item.js":87}],81:[function(t,C,l){"use strict";l.__esModule=!0;function p(g){return g&&g.__esModule?g:{default:g}}function a(g,s){if(!(g instanceof s))throw new TypeError("Cannot call a class as a function")}function m(g,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);g.prototype=Object.create(s&&s.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(g,s):g.__proto__=s)}var h=t("./text-track-button.js"),f=p(h),v=t("../../component.js"),u=p(v),i=t("./caption-settings-menu-item.js"),o=p(i),r=function(g){m(s,g);function s(d,c,T){a(this,s),g.call(this,d,c,T),this.el_.setAttribute("aria-label","Captions Menu")}return s.prototype.buildCSSClass=function(){return"vjs-captions-button "+g.prototype.buildCSSClass.call(this)},s.prototype.update=function(){var c=2;g.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(c=1),this.items&&this.items.length>c?this.show():this.hide()},s.prototype.createItems=function(){var c=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||c.push(new o.default(this.player_,{kind:this.kind_})),g.prototype.createItems.call(this,c)},s}(f.default);r.prototype.kind_="captions",r.prototype.controlText_="Captions",u.default.registerComponent("CaptionsButton",r),l.default=r,C.exports=l.default},{"../../component.js":65,"./caption-settings-menu-item.js":80,"./text-track-button.js":86}],82:[function(t,C,l){"use strict";l.__esModule=!0;function p(w){if(w&&w.__esModule)return w;var x={};if(w!=null)for(var B in w)Object.prototype.hasOwnProperty.call(w,B)&&(x[B]=w[B]);return x.default=w,x}function a(w){return w&&w.__esModule?w:{default:w}}function m(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}function h(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var f=t("./text-track-button.js"),v=a(f),u=t("../../component.js"),i=a(u),o=t("./text-track-menu-item.js"),r=a(o),g=t("./chapters-track-menu-item.js"),s=a(g),d=t("../../menu/menu.js"),c=a(d),T=t("../../utils/dom.js"),_=p(T),F=t("../../utils/fn.js"),e=p(F),n=t("../../utils/to-title-case.js"),E=a(n),y=t("global/window"),O=a(y),b=function(w){h(x,w);function x(B,D,S){m(this,x),w.call(this,B,D,S),this.el_.setAttribute("aria-label","Chapters Menu")}return x.prototype.buildCSSClass=function(){return"vjs-chapters-button "+w.prototype.buildCSSClass.call(this)},x.prototype.createItems=function(){var D=[],S=this.player_.textTracks();if(!S)return D;for(var k=0;k0){for(var W=k.cues,$=void 0,R=0,Y=W.length;R0&&this.show(),P},x}(v.default);b.prototype.kind_="chapters",b.prototype.controlText_="Chapters",i.default.registerComponent("ChaptersButton",b),l.default=b,C.exports=l.default},{"../../component.js":65,"../../menu/menu.js":104,"../../utils/dom.js":128,"../../utils/fn.js":130,"../../utils/to-title-case.js":137,"./chapters-track-menu-item.js":83,"./text-track-button.js":86,"./text-track-menu-item.js":87,"global/window":2}],83:[function(t,C,l){"use strict";l.__esModule=!0;function p(s){if(s&&s.__esModule)return s;var d={};if(s!=null)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(d[c]=s[c]);return d.default=s,d}function a(s){return s&&s.__esModule?s:{default:s}}function m(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var f=t("../../menu/menu-item.js"),v=a(f),u=t("../../component.js"),i=a(u),o=t("../../utils/fn.js"),r=p(o),g=function(s){h(d,s);function d(c,T){m(this,d);var _=T.track,F=T.cue,e=c.currentTime();T.label=F.text,T.selected=F.startTime<=e&&eCurrent Time 0:00'},{"aria-live":"off"}),T.appendChild(this.contentEl_),T},d.prototype.updateContent=function(){var T=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),_=this.localize("Current Time"),F=r.default(T,this.player_.duration());this.contentEl_.innerHTML=''+_+" "+F},d}(v.default);v.default.registerComponent("CurrentTimeDisplay",g),l.default=g,C.exports=l.default},{"../../component.js":65,"../../utils/dom.js":128,"../../utils/format-time.js":131}],89:[function(t,C,l){"use strict";l.__esModule=!0;function p(s){if(s&&s.__esModule)return s;var d={};if(s!=null)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(d[c]=s[c]);return d.default=s,d}function a(s){return s&&s.__esModule?s:{default:s}}function m(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var f=t("../../component.js"),v=a(f),u=t("../../utils/dom.js"),i=p(u),o=t("../../utils/format-time.js"),r=a(o),g=function(s){h(d,s);function d(c,T){m(this,d),s.call(this,c,T),this.on(c,"timeupdate",this.updateContent),this.on(c,"loadedmetadata",this.updateContent)}return d.prototype.createEl=function(){var T=s.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=i.createEl("div",{className:"vjs-duration-display",innerHTML:''+this.localize("Duration Time")+" 0:00"},{"aria-live":"off"}),T.appendChild(this.contentEl_),T},d.prototype.updateContent=function(){var T=this.player_.duration();if(T){var _=this.localize("Duration Time"),F=r.default(T);this.contentEl_.innerHTML=''+_+" "+F}},d}(v.default);v.default.registerComponent("DurationDisplay",g),l.default=g,C.exports=l.default},{"../../component.js":65,"../../utils/dom.js":128,"../../utils/format-time.js":131}],90:[function(t,C,l){"use strict";l.__esModule=!0;function p(s){if(s&&s.__esModule)return s;var d={};if(s!=null)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(d[c]=s[c]);return d.default=s,d}function a(s){return s&&s.__esModule?s:{default:s}}function m(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var f=t("../../component.js"),v=a(f),u=t("../../utils/dom.js"),i=p(u),o=t("../../utils/format-time.js"),r=a(o),g=function(s){h(d,s);function d(c,T){m(this,d),s.call(this,c,T),this.on(c,"timeupdate",this.updateContent)}return d.prototype.createEl=function(){var T=s.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=i.createEl("div",{className:"vjs-remaining-time-display",innerHTML:''+this.localize("Remaining Time")+" -0:00"},{"aria-live":"off"}),T.appendChild(this.contentEl_),T},d.prototype.updateContent=function(){if(this.player_.duration()){var T=this.localize("Remaining Time"),_=r.default(this.player_.remainingTime());this.contentEl_.innerHTML=''+T+" -"+_}},d}(v.default);v.default.registerComponent("RemainingTimeDisplay",g),l.default=g,C.exports=l.default},{"../../component.js":65,"../../utils/dom.js":128,"../../utils/format-time.js":131}],91:[function(t,C,l){"use strict";l.__esModule=!0;function p(u){return u&&u.__esModule?u:{default:u}}function a(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")}function m(u,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);u.prototype=Object.create(i&&i.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(u,i):u.__proto__=i)}var h=t("../../component.js"),f=p(h),v=function(u){m(i,u);function i(){a(this,i),u.apply(this,arguments)}return i.prototype.createEl=function(){return u.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},i}(f.default);f.default.registerComponent("TimeDivider",v),l.default=v,C.exports=l.default},{"../../component.js":65}],92:[function(t,C,l){"use strict";l.__esModule=!0;function p(c){if(c&&c.__esModule)return c;var T={};if(c!=null)for(var _ in c)Object.prototype.hasOwnProperty.call(c,_)&&(T[_]=c[_]);return T.default=c,T}function a(c){return c&&c.__esModule?c:{default:c}}function m(c,T){if(!(c instanceof T))throw new TypeError("Cannot call a class as a function")}function h(c,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);c.prototype=Object.create(T&&T.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(c,T):c.__proto__=T)}var f=t("../../slider/slider.js"),v=a(f),u=t("../../component.js"),i=a(u),o=t("../../utils/fn.js"),r=p(o),g=t("./volume-level.js"),s=a(g),d=function(c){h(T,c);function T(_,F){m(this,T),c.call(this,_,F),this.on(_,"volumechange",this.updateARIAAttributes),_.ready(r.bind(this,this.updateARIAAttributes))}return T.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},T.prototype.handleMouseMove=function(F){this.player_.muted()&&this.player_.muted(!1),this.player_.volume(this.calculateDistance(F))},T.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},T.prototype.stepForward=function(){this.player_.volume(this.player_.volume()+.1)},T.prototype.stepBack=function(){this.player_.volume(this.player_.volume()-.1)},T.prototype.updateARIAAttributes=function(){var F=(this.player_.volume()*100).toFixed(2);this.el_.setAttribute("aria-valuenow",F),this.el_.setAttribute("aria-valuetext",F+"%")},T}(v.default);d.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},d.prototype.playerEvent="volumechange",i.default.registerComponent("VolumeBar",d),l.default=d,C.exports=l.default},{"../../component.js":65,"../../slider/slider.js":110,"../../utils/fn.js":130,"./volume-level.js":94}],93:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}function a(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var h=t("../../component.js"),f=p(h),v=t("./volume-bar.js"),u=p(v),i=function(o){m(r,o);function r(g,s){a(this,r),o.call(this,g,s),g.tech_&&g.tech_.featuresVolumeControl===!1&&this.addClass("vjs-hidden"),this.on(g,"loadstart",function(){g.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return r.prototype.createEl=function(){return o.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},r}(f.default);i.prototype.options_={children:["volumeBar"]},f.default.registerComponent("VolumeControl",i),l.default=i,C.exports=l.default},{"../../component.js":65,"./volume-bar.js":92}],94:[function(t,C,l){"use strict";l.__esModule=!0;function p(u){return u&&u.__esModule?u:{default:u}}function a(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")}function m(u,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);u.prototype=Object.create(i&&i.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(u,i):u.__proto__=i)}var h=t("../../component.js"),f=p(h),v=function(u){m(i,u);function i(){a(this,i),u.apply(this,arguments)}return i.prototype.createEl=function(){return u.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},i}(f.default);f.default.registerComponent("VolumeLevel",v),l.default=v,C.exports=l.default},{"../../component.js":65}],95:[function(t,C,l){"use strict";l.__esModule=!0;function p(O){if(O&&O.__esModule)return O;var b={};if(O!=null)for(var w in O)Object.prototype.hasOwnProperty.call(O,w)&&(b[w]=O[w]);return b.default=O,b}function a(O){return O&&O.__esModule?O:{default:O}}function m(O,b){if(!(O instanceof b))throw new TypeError("Cannot call a class as a function")}function h(O,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);O.prototype=Object.create(b&&b.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(O,b):O.__proto__=b)}var f=t("../button.js"),v=a(f),u=t("../utils/fn.js"),i=p(u),o=t("../component.js"),r=a(o),g=t("../menu/menu.js"),s=a(g),d=t("../menu/menu-button.js"),c=a(d),T=t("./mute-toggle.js"),_=a(T),F=t("./volume-control/volume-bar.js"),e=a(F),n=t("global/document"),E=a(n),y=function(O){h(b,O);function b(w){var x=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];m(this,b),x.inline===void 0&&(x.inline=!0),x.vertical===void 0&&(x.inline?x.vertical=!1:x.vertical=!0),x.volumeBar=x.volumeBar||{},x.volumeBar.vertical=!!x.vertical,O.call(this,w,x),this.on(w,"volumechange",this.volumeUpdate),this.on(w,"loadstart",this.volumeUpdate);function B(){w.tech_&&w.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}B.call(this),this.on(w,"loadstart",B),this.on(this.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),this.on(this.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")})}return b.prototype.buildCSSClass=function(){var x="";return this.options_.vertical?x="vjs-volume-menu-button-vertical":x="vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+O.prototype.buildCSSClass.call(this)+" "+x},b.prototype.createMenu=function(){var x=new s.default(this.player_,{contentElType:"div"}),B=new e.default(this.player_,this.options_.volumeBar);return x.addChild(B),this.volumeBar=B,this.attachVolumeBarEvents(),x},b.prototype.handleClick=function(){_.default.prototype.handleClick.call(this),O.prototype.handleClick.call(this)},b.prototype.attachVolumeBarEvents=function(){this.on(["mousedown","touchdown"],this.handleMouseDown)},b.prototype.handleMouseDown=function(x){this.on(["mousemove","touchmove"],i.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(E.default,["mouseup","touchend"],this.handleMouseUp)},b.prototype.handleMouseUp=function(x){this.off(["mousemove","touchmove"],i.bind(this.volumeBar,this.volumeBar.handleMouseMove))},b}(c.default);y.prototype.volumeUpdate=_.default.prototype.update,y.prototype.controlText_="Mute",r.default.registerComponent("VolumeMenuButton",y),l.default=y,C.exports=l.default},{"../button.js":63,"../component.js":65,"../menu/menu-button.js":102,"../menu/menu.js":104,"../utils/fn.js":130,"./mute-toggle.js":69,"./volume-control/volume-bar.js":92,"global/document":1}],96:[function(t,C,l){"use strict";l.__esModule=!0;function p(c){if(c&&c.__esModule)return c;var T={};if(c!=null)for(var _ in c)Object.prototype.hasOwnProperty.call(c,_)&&(T[_]=c[_]);return T.default=c,T}function a(c){return c&&c.__esModule?c:{default:c}}function m(c,T){if(!(c instanceof T))throw new TypeError("Cannot call a class as a function")}function h(c,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);c.prototype=Object.create(T&&T.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(c,T):c.__proto__=T)}var f=t("./component"),v=a(f),u=t("./modal-dialog"),i=a(u),o=t("./utils/dom"),r=p(o),g=t("./utils/merge-options"),s=a(g),d=function(c){h(T,c);function T(_,F){m(this,T),c.call(this,_,F),this.on(_,"error",this.open)}return T.prototype.buildCSSClass=function(){return"vjs-error-display "+c.prototype.buildCSSClass.call(this)},T.prototype.content=function(){var F=this.player().error();return F?this.localize(F.message):""},T}(i.default);d.prototype.options_=s.default(i.default.prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0}),v.default.registerComponent("ErrorDisplay",d),l.default=d,C.exports=l.default},{"./component":65,"./modal-dialog":105,"./utils/dom":128,"./utils/merge-options":134}],97:[function(t,C,l){"use strict";l.__esModule=!0;function p(f){if(f&&f.__esModule)return f;var v={};if(f!=null)for(var u in f)Object.prototype.hasOwnProperty.call(f,u)&&(v[u]=f[u]);return v.default=f,v}var a=t("./utils/events.js"),m=p(a),h=function(){};h.prototype.allowedEvents_={},h.prototype.on=function(f,v){var u=this.addEventListener;this.addEventListener=Function.prototype,m.on(this,f,v),this.addEventListener=u},h.prototype.addEventListener=h.prototype.on,h.prototype.off=function(f,v){m.off(this,f,v)},h.prototype.removeEventListener=h.prototype.off,h.prototype.one=function(f,v){m.one(this,f,v)},h.prototype.trigger=function(f){var v=f.type||f;typeof f=="string"&&(f={type:v}),f=m.fixEvent(f),this.allowedEvents_[v]&&this["on"+v]&&this["on"+v](f),m.trigger(this,f)},h.prototype.dispatchEvent=h.prototype.trigger,l.default=h,C.exports=l.default},{"./utils/events.js":129}],98:[function(t,C,l){"use strict";l.__esModule=!0;function p(v){return v&&v.__esModule?v:{default:v}}var a=t("./utils/log"),m=p(a),h=function(u,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);u.prototype=Object.create(i&&i.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),i&&(u.super_=i)},f=function(u){var i=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],o=function(){u.apply(this,arguments)},r={};typeof i=="object"?(typeof i.init=="function"&&(m.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),i.constructor=i.init),i.constructor!==Object.prototype.constructor&&(o=i.constructor),r=i):typeof i=="function"&&(o=i),h(o,u);for(var g in r)r.hasOwnProperty(g)&&(o.prototype[g]=r[g]);return o};l.default=f,C.exports=l.default},{"./utils/log":133}],99:[function(t,C,l){"use strict";l.__esModule=!0;function p(o){return o&&o.__esModule?o:{default:o}}for(var a=t("global/document"),m=p(a),h={},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"]],v=f[0],u=void 0,i=0;i1&&this.show()},n.prototype.createMenu=function(){var y=new r.default(this.player_);if(this.options_.title&&y.contentEl().appendChild(s.createEl("li",{className:"vjs-menu-title",innerHTML:_.default(this.options_.title),tabIndex:-1})),this.items=this.createItems(),this.items)for(var O=0;O0&&this.items[0].el().focus()},n.prototype.unpressButton=function(){this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-pressed",!1)},n}(v.default);i.default.registerComponent("MenuButton",F),l.default=F,C.exports=l.default},{"../button.js":63,"../component.js":65,"../utils/dom.js":128,"../utils/fn.js":130,"../utils/to-title-case.js":137,"./menu.js":104}],103:[function(t,C,l){"use strict";l.__esModule=!0;function p(g){return g&&g.__esModule?g:{default:g}}function a(g,s){if(!(g instanceof s))throw new TypeError("Cannot call a class as a function")}function m(g,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);g.prototype=Object.create(s&&s.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(g,s):g.__proto__=s)}var h=t("../button.js"),f=p(h),v=t("../component.js"),u=p(v),i=t("object.assign"),o=p(i),r=function(g){m(s,g);function s(d,c){a(this,s),g.call(this,d,c),this.selected(c.selected)}return s.prototype.createEl=function(c,T,_){return g.prototype.createEl.call(this,"li",o.default({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label)},T),_)},s.prototype.handleClick=function(){this.selected(!0)},s.prototype.selected=function(c){c?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-selected",!0)):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-selected",!1))},s}(f.default);u.default.registerComponent("MenuItem",r),l.default=r,C.exports=l.default},{"../button.js":63,"../component.js":65,"object.assign":45}],104:[function(t,C,l){"use strict";l.__esModule=!0;function p(c){if(c&&c.__esModule)return c;var T={};if(c!=null)for(var _ in c)Object.prototype.hasOwnProperty.call(c,_)&&(T[_]=c[_]);return T.default=c,T}function a(c){return c&&c.__esModule?c:{default:c}}function m(c,T){if(!(c instanceof T))throw new TypeError("Cannot call a class as a function")}function h(c,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);c.prototype=Object.create(T&&T.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(c,T):c.__proto__=T)}var f=t("../component.js"),v=a(f),u=t("../utils/dom.js"),i=p(u),o=t("../utils/fn.js"),r=p(o),g=t("../utils/events.js"),s=p(g),d=function(c){h(T,c);function T(){m(this,T),c.apply(this,arguments)}return T.prototype.addItem=function(F){this.addChild(F),F.on("click",r.bind(this,function(){this.unlockShowing()}))},T.prototype.createEl=function(){var F=this.options_.contentElType||"ul";this.contentEl_=i.createEl(F,{className:"vjs-menu-content"});var e=c.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return e.appendChild(this.contentEl_),s.on(e,"click",function(n){n.preventDefault(),n.stopImmediatePropagation()}),e},T}(v.default);v.default.registerComponent("Menu",d),l.default=d,C.exports=l.default},{"../component.js":65,"../utils/dom.js":128,"../utils/events.js":129,"../utils/fn.js":130}],105:[function(t,C,l){"use strict";l.__esModule=!0;function p(E){if(E&&E.__esModule)return E;var y={};if(E!=null)for(var O in E)Object.prototype.hasOwnProperty.call(E,O)&&(y[O]=E[O]);return y.default=E,y}function a(E){return E&&E.__esModule?E:{default:E}}function m(E,y){if(!(E instanceof y))throw new TypeError("Cannot call a class as a function")}function h(E,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);E.prototype=Object.create(y&&y.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(E,y):E.__proto__=y)}var f=t("global/document"),v=a(f),u=t("./utils/dom"),i=p(u),o=t("./utils/fn"),r=p(o),g=t("./utils/log"),s=a(g),d=t("./component"),c=a(d),T=t("./close-button"),_=a(T),F="vjs-modal-dialog",e=27,n=function(E){h(y,E);function y(O,b){m(this,y),E.call(this,O,b),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=i.createEl("div",{className:F+"-content"},{role:"document"}),this.descEl_=i.createEl("p",{className:F+"-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 y.prototype.createEl=function(){return E.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},y.prototype.buildCSSClass=function(){return F+" vjs-hidden "+E.prototype.buildCSSClass.call(this)},y.prototype.handleKeyPress=function(b){b.which===e&&this.closeable()&&this.close()},y.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},y.prototype.description=function(){var b=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(b+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),b},y.prototype.open=function(){if(!this.opened_){var b=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!b.paused(),this.wasPlaying_&&b.pause(),this.closeable()&&this.on(v.default,"keydown",r.bind(this,this.handleKeyPress)),b.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},y.prototype.opened=function(b){return typeof b=="boolean"&&this[b?"open":"close"](),this.opened_},y.prototype.close=function(){if(this.opened_){var b=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&b.play(),this.closeable()&&this.off(v.default,"keydown",r.bind(this,this.handleKeyPress)),b.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},y.prototype.closeable=function(b){if(typeof b=="boolean"){var w=this.closeable_=!!b,x=this.getChild("closeButton");if(w&&!x){var B=this.contentEl_;this.contentEl_=this.el_,x=this.addChild("closeButton"),this.contentEl_=B,this.on(x,"close",this.close)}!w&&x&&(this.off(x,"close",this.close),this.removeChild(x),x.dispose())}return this.closeable_},y.prototype.fill=function(){return this.fillWith(this.content())},y.prototype.fillWith=function(b){var w=this.contentEl(),x=w.parentNode,B=w.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,x.removeChild(w),this.empty(),i.insertContent(w,b),this.trigger("modalfill"),B?x.insertBefore(w,B):x.appendChild(w),this},y.prototype.empty=function(){return this.trigger("beforemodalempty"),i.emptyEl(this.contentEl()),this.trigger("modalempty"),this},y.prototype.content=function(b){return typeof b!="undefined"&&(this.content_=b),this.content_},y}(c.default);n.prototype.options_={temporary:!0},c.default.registerComponent("ModalDialog",n),l.default=n,C.exports=l.default},{"./close-button":64,"./component":65,"./utils/dom":128,"./utils/fn":130,"./utils/log":133,"global/document":1}],106:[function(t,C,l){"use strict";l.__esModule=!0;function p(et){if(et&&et.__esModule)return et;var L={};if(et!=null)for(var H in et)Object.prototype.hasOwnProperty.call(et,H)&&(L[H]=et[H]);return L.default=et,L}function a(et){return et&&et.__esModule?et:{default:et}}function m(et,L){if(!(et instanceof L))throw new TypeError("Cannot call a class as a function")}function h(et,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);et.prototype=Object.create(L&&L.prototype,{constructor:{value:et,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(et,L):et.__proto__=L)}var f=t("./component.js"),v=a(f),u=t("global/document"),i=a(u),o=t("global/window"),r=a(o),g=t("./utils/events.js"),s=p(g),d=t("./utils/dom.js"),c=p(d),T=t("./utils/fn.js"),_=p(T),F=t("./utils/guid.js"),e=p(F),n=t("./utils/browser.js"),E=p(n),y=t("./utils/log.js"),O=a(y),b=t("./utils/to-title-case.js"),w=a(b),x=t("./utils/time-ranges.js"),B=t("./utils/buffer.js"),D=t("./utils/stylesheet.js"),S=p(D),k=t("./fullscreen-api.js"),J=a(k),R=t("./media-error.js"),A=a(R),j=t("safe-json-parse/tuple"),P=a(j),I=t("object.assign"),W=a(I),$=t("./utils/merge-options.js"),Y=a($),X=t("./tracks/text-track-list-converter.js"),K=a(X),it=t("./tech/loader.js"),lt=a(it),yt=t("./poster-image.js"),mt=a(yt),bt=t("./tracks/text-track-display.js"),N=a(bt),U=t("./loading-spinner.js"),Z=a(U),nt=t("./big-play-button.js"),st=a(nt),ft=t("./control-bar/control-bar.js"),G=a(ft),Et=t("./error-display.js"),Ft=a(Et),tt=t("./tracks/text-track-settings.js"),ct=a(tt),_t=t("./modal-dialog"),wt=a(_t),Tt=t("./tech/tech.js"),Ct=a(Tt),St=t("./tech/html5.js"),Bt=a(St),vt=function(et){h(L,et);function L(H,M,V){var z=this;if(m(this,L),H.id=H.id||"vjs_video_"+e.newGUID(),M=W.default(L.getTagSettings(H),M),M.initChildren=!1,M.createEl=!1,M.reportTouchActivity=!1,et.call(this,null,M,V),!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&&c.getElAttributes(H),this.language(this.options_.language),M.languages?function(){var ut={};Object.getOwnPropertyNames(M.languages).forEach(function(rt){ut[rt.toLowerCase()]=M.languages[rt]}),z.languages_=ut}():this.languages_=L.prototype.options_.languages,this.cache_={},this.poster_=M.poster||"",this.controls_=!!M.controls,H.controls=!1,this.scrubbing_=!1,this.el_=this.createEl();var Q=Y.default(this.options_);M.plugins&&function(){var ut=M.plugins;Object.getOwnPropertyNames(ut).forEach(function(rt){typeof this[rt]=="function"?this[rt](ut[rt]):O.default.error("Unable to find plugin:",rt)},z)}(),this.options_.playerOptions=Q,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"),L.players[this.id_]=this,this.userActive(!0),this.reportUserActivity(),this.listenForUserActivity_(),this.on("fullscreenchange",this.handleFullscreenChange_),this.on("stageclick",this.handleStageClick_)}return L.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),L.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(),et.prototype.dispose.call(this)},L.prototype.createEl=function(){var M=this.el_=et.prototype.createEl.call(this,"div"),V=this.tag;V.removeAttribute("width"),V.removeAttribute("height");var z=c.getElAttributes(V);Object.getOwnPropertyNames(z).forEach(function(rt){rt==="class"?M.className=z[rt]:M.setAttribute(rt,z[rt])}),V.playerId=V.id,V.id+="_html5_api",V.className="vjs-tech",V.player=M.player=this,this.addClass("vjs-paused"),this.styleEl_=S.createStyleElement("vjs-styles-dimensions");var Q=c.$(".vjs-styles-defaults"),ut=c.$("head");return ut.insertBefore(this.styleEl_,Q?Q.nextSibling:ut.firstChild),this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),V.initNetworkState_=V.networkState,V.parentNode&&V.parentNode.insertBefore(M,V),c.insertElFirst(V,M),this.el_=M,M},L.prototype.width=function(M){return this.dimension("width",M)},L.prototype.height=function(M){return this.dimension("height",M)},L.prototype.dimension=function(M,V){var z=M+"_";if(V===void 0)return this[z]||0;if(V==="")this[z]=void 0;else{var Q=parseFloat(V);if(isNaN(Q))return O.default.error('Improper value "'+V+'" supplied for for '+M),this;this[z]=Q}return this.updateStyleEl_(),this},L.prototype.fluid=function(M){if(M===void 0)return!!this.fluid_;this.fluid_=!!M,M?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")},L.prototype.aspectRatio=function(M){if(M===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(M))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=M,this.fluid(!0),this.updateStyleEl_()},L.prototype.updateStyleEl_=function(){var M=void 0,V=void 0,z=void 0,Q=void 0;this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?z=this.aspectRatio_:this.videoWidth()?z=this.videoWidth()+":"+this.videoHeight():z="16:9";var ut=z.split(":"),rt=ut[1]/ut[0];this.width_!==void 0?M=this.width_:this.height_!==void 0?M=this.height_/rt:M=this.videoWidth()||300,this.height_!==void 0?V=this.height_:V=M*rt,/^[^a-zA-Z]/.test(this.id())?Q="dimensions-"+this.id():Q=this.id()+"-dimensions",this.addClass(Q),S.setTextContent(this.styleEl_,`
.`+Q+` {
width: `+M+`px;
height: `+V+`px;
}
.`+Q+`.vjs-fluid {
padding-top: `+rt*100+`%;
}
`)},L.prototype.loadTech_=function(M,V){this.tech_&&this.unloadTech_(),M!=="Html5"&&this.tag&&(Ct.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=M,this.isReady_=!1;var z=W.default({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:V,playerId:this.id(),techId:this.id()+"_"+M+"_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_[M.toLowerCase()]);this.tag&&(z.tag=this.tag),V&&(this.currentType_=V.type,V.src===this.cache_.src&&this.cache_.currentTime>0&&(z.startTime=this.cache_.currentTime),this.cache_.src=V.src);var Q=Ct.default.getTech(M);Q||(Q=v.default.getComponent(M)),this.tech_=new Q(z),this.tech_.ready(_.bind(this,this.handleTechReady_),!0),K.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()&&(M!=="Html5"||!this.tag)&&c.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},L.prototype.unloadTech_=function(){this.textTracks_=this.textTracks(),this.textTracksJson_=K.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},L.prototype.tech=function(M){if(M&&M.IWillNotUseThisInPlugins)return this.tech_;var V=`
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 r.default.alert(V),new Error(V)},L.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_)},L.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_)},L.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())},L.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},L.prototype.hasStarted=function(M){return M!==void 0?(this.hasStarted_!==M&&(this.hasStarted_=M,M?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},L.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},L.prototype.handleTechWaiting_=function(){this.addClass("vjs-waiting"),this.trigger("waiting")},L.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},L.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},L.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},L.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},L.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},L.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},L.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},L.prototype.handleTechProgress_=function(){this.trigger("progress")},L.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},L.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},L.prototype.handleTechClick_=function(M){M.button===0&&this.controls()&&(this.paused()?this.play():this.pause())},L.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},L.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},L.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},L.prototype.handleTechTouchEnd_=function(M){M.preventDefault()},L.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},L.prototype.handleStageClick_=function(){this.reportUserActivity()},L.prototype.handleTechFullscreenChange_=function(M,V){V&&this.isFullscreen(V.isFullscreen),this.trigger("fullscreenchange")},L.prototype.handleTechError_=function(){var M=this.tech_.error();this.error(M&&M.code)},L.prototype.handleTechSuspend_=function(){this.trigger("suspend")},L.prototype.handleTechAbort_=function(){this.trigger("abort")},L.prototype.handleTechEmptied_=function(){this.trigger("emptied")},L.prototype.handleTechStalled_=function(){this.trigger("stalled")},L.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},L.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},L.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},L.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},L.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},L.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},L.prototype.getCache=function(){return this.cache_},L.prototype.techCall_=function(M,V){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[M](V)},!0);else try{this.tech_[M](V)}catch(z){throw O.default(z),z}},L.prototype.techGet_=function(M){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[M]()}catch(V){throw this.tech_[M]===void 0?O.default("Video.js: "+M+" method not defined for "+this.techName_+" playback technology.",V):V.name==="TypeError"?(O.default("Video.js: "+M+" unavailable on "+this.techName_+" playback technology element.",V),this.tech_.isReady_=!1):O.default(V),V}},L.prototype.play=function(){return this.techCall_("play"),this},L.prototype.pause=function(){return this.techCall_("pause"),this},L.prototype.paused=function(){return this.techGet_("paused")!==!1},L.prototype.scrubbing=function(M){return M!==void 0?(this.scrubbing_=!!M,M?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},L.prototype.currentTime=function(M){return M!==void 0?(this.techCall_("setCurrentTime",M),this):this.cache_.currentTime=this.techGet_("currentTime")||0},L.prototype.duration=function(M){return M===void 0?this.cache_.duration||0:(M=parseFloat(M)||0,M<0&&(M=Infinity),M!==this.cache_.duration&&(this.cache_.duration=M,M===Infinity?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},L.prototype.remainingTime=function(){return this.duration()-this.currentTime()},L.prototype.buffered=function(){var M=this.techGet_("buffered");return(!M||!M.length)&&(M=x.createTimeRange(0,0)),M},L.prototype.bufferedPercent=function(){return B.bufferedPercent(this.buffered(),this.duration())},L.prototype.bufferedEnd=function(){var M=this.buffered(),V=this.duration(),z=M.end(M.length-1);return z>V&&(z=V),z},L.prototype.volume=function(M){var V=void 0;return M!==void 0?(V=Math.max(0,Math.min(1,parseFloat(M))),this.cache_.volume=V,this.techCall_("setVolume",V),this):(V=parseFloat(this.techGet_("volume")),isNaN(V)?1:V)},L.prototype.muted=function(M){return M!==void 0?(this.techCall_("setMuted",M),this):this.techGet_("muted")||!1},L.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},L.prototype.isFullscreen=function(M){return M!==void 0?(this.isFullscreen_=!!M,this):!!this.isFullscreen_},L.prototype.requestFullscreen=function(){var M=J.default;return this.isFullscreen(!0),M.requestFullscreen?(s.on(i.default,M.fullscreenchange,_.bind(this,function V(z){this.isFullscreen(i.default[M.fullscreenElement]),this.isFullscreen()===!1&&s.off(i.default,M.fullscreenchange,V),this.trigger("fullscreenchange")})),this.el_[M.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},L.prototype.exitFullscreen=function(){var M=J.default;return this.isFullscreen(!1),M.requestFullscreen?i.default[M.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},L.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=i.default.documentElement.style.overflow,s.on(i.default,"keydown",_.bind(this,this.fullWindowOnEscKey)),i.default.documentElement.style.overflow="hidden",c.addElClass(i.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},L.prototype.fullWindowOnEscKey=function(M){M.keyCode===27&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},L.prototype.exitFullWindow=function(){this.isFullWindow=!1,s.off(i.default,"keydown",this.fullWindowOnEscKey),i.default.documentElement.style.overflow=this.docOrigOverflow,c.removeElClass(i.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},L.prototype.canPlayType=function(M){for(var V=void 0,z=0,Q=this.options_.techOrder;z0&&(ht=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},xt))}},250)},L.prototype.playbackRate=function(M){return M!==void 0?(this.techCall_("setPlaybackRate",M),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},L.prototype.isAudio=function(M){return M!==void 0?(this.isAudio_=!!M,this):!!this.isAudio_},L.prototype.networkState=function(){return this.techGet_("networkState")},L.prototype.readyState=function(){return this.techGet_("readyState")},L.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},L.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},L.prototype.remoteTextTrackEls=function(){return this.tech_&&this.tech_.remoteTextTrackEls()},L.prototype.addTextTrack=function(M,V,z){return this.tech_&&this.tech_.addTextTrack(M,V,z)},L.prototype.addRemoteTextTrack=function(M){return this.tech_&&this.tech_.addRemoteTextTrack(M)},L.prototype.removeRemoteTextTrack=function(M){this.tech_&&this.tech_.removeRemoteTextTrack(M)},L.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},L.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},L.prototype.language=function(M){return M===void 0?this.language_:(this.language_=(""+M).toLowerCase(),this)},L.prototype.languages=function(){return Y.default(L.prototype.options_.languages,this.languages_)},L.prototype.toJSON=function(){var M=Y.default(this.options_),V=M.tracks;M.tracks=[];for(var z=0;z0)for(var e=0,n=T.length;e0)for(var e=0,n=_.length;e0)for(var e=0,n=F.length;eA.start(0)?R:A.start(0),R=R=10},v.default.withSourceHandlers(y),y.nativeSourceHandler={},y.nativeSourceHandler.canPlayType=function(S){return S in y.formats?"maybe":""},y.nativeSourceHandler.canHandleSource=function(S){var k;function J(R){var A=r.getFileExtension(R);return A?"video/"+A:""}return S.type?k=S.type.replace(/;.*/,"").toLowerCase():k=J(S.src),y.nativeSourceHandler.canPlayType(k)},y.nativeSourceHandler.handleSource=function(S,k){k.setSrc(S.src)},y.nativeSourceHandler.dispose=function(){},y.registerSourceHandler(y.nativeSourceHandler),y.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},y.onReady=function(S){var k=i.getEl(S),J=k&&k.tech;J&&J.el()&&y.checkReady(J)},y.checkReady=function(S){!S.el()||(S.el().vjs_getProperty?S.triggerReady():this.setTimeout(function(){y.checkReady(S)},50))},y.onEvent=function(S,k){var J=i.getEl(S).tech;J.trigger(k)},y.onError=function(S,k){var J=i.getEl(S).tech;if(k==="srcnotfound")return J.error(4);J.error("FLASH: "+k)},y.version=function(){var S="0,0,0";try{S=new F.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(k){try{E.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(S=(E.plugins["Shockwave Flash 2.0"]||E.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(J){}}return S.split(",")},y.embed=function(S,k,J,R){var A=y.getEmbedCode(S,k,J,R),j=i.createEl("div",{innerHTML:A}).childNodes[0];return j},y.getEmbedCode=function(S,k,J,R){var A=''}),R=n.default({data:S,width:"100%",height:"100%"},R),Object.getOwnPropertyNames(R).forEach(function(W){I+=W+'="'+R[W]+'" '}),""+A+I+">"+P+""},d.default(y),T.default.registerComponent("Flash",y),v.default.registerTech("Flash",y),l.default=y,C.exports=l.default},{"../component":65,"../utils/dom.js":128,"../utils/time-ranges.js":136,"../utils/url.js":138,"./flash-rtmp":111,"./tech":115,"global/window":2,"object.assign":45}],113:[function(t,C,l){"use strict";l.__esModule=!0;function p(A){if(A&&A.__esModule)return A;var j={};if(A!=null)for(var P in A)Object.prototype.hasOwnProperty.call(A,P)&&(j[P]=A[P]);return j.default=A,j}function a(A){return A&&A.__esModule?A:{default:A}}function m(A,j){if(!(A instanceof j))throw new TypeError("Cannot call a class as a function")}function h(A,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);A.prototype=Object.create(j&&j.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(A,j):A.__proto__=j)}var f=t("./tech.js"),v=a(f),u=t("../component"),i=a(u),o=t("../utils/dom.js"),r=p(o),g=t("../utils/url.js"),s=p(g),d=t("../utils/fn.js"),c=p(d),T=t("../utils/log.js"),_=a(T),F=t("../utils/browser.js"),e=p(F),n=t("global/document"),E=a(n),y=t("global/window"),O=a(y),b=t("object.assign"),w=a(b),x=t("../utils/merge-options.js"),B=a(x),D=function(A){h(j,A);function j(P,I){m(this,j),A.call(this,P,I);var W=P.source;if(W&&(this.el_.currentSrc!==W.src||P.tag&&P.tag.initNetworkState_===3)?this.setSource(W):this.handleLateInit_(this.el_),this.el_.hasChildNodes()){for(var $=this.el_.childNodes,Y=$.length,X=[];Y--;){var K=$[Y],it=K.nodeName.toLowerCase();it==="track"&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(K),this.remoteTextTracks().addTrack_(K.track)):X.push(K))}for(var lt=0;lt=0;K--){var it=X[K],lt={};typeof this.options_[it]!="undefined"&&(lt[it]=this.options_[it]),r.setElAttributes(I,lt)}return I},j.prototype.handleLateInit_=function(I){var W=this;if(!(I.networkState===0||I.networkState===3)){if(I.readyState===0){var $=function(){var X=!1,K=function(){X=!0};W.on("loadstart",K);var it=function(){X||this.trigger("loadstart")};return W.on("loadedmetadata",it),W.ready(function(){this.off("loadstart",K),this.off("loadedmetadata",it),X||this.trigger("loadstart")}),{v:void 0}}();if(typeof $=="object")return $.v}var Y=["loadstart"];Y.push("loadedmetadata"),I.readyState>=2&&Y.push("loadeddata"),I.readyState>=3&&Y.push("canplay"),I.readyState>=4&&Y.push("canplaythrough"),this.ready(function(){Y.forEach(function(X){this.trigger(X)},this)})}},j.prototype.proxyNativeTextTracks_=function(){var I=this.el().textTracks;I&&I.addEventListener&&(I.addEventListener("change",this.handleTextTrackChange_),I.addEventListener("addtrack",this.handleTextTrackAdd_),I.addEventListener("removetrack",this.handleTextTrackRemove_))},j.prototype.handleTextTrackChange=function(I){var W=this.textTracks();this.textTracks().trigger({type:"change",target:W,currentTarget:W,srcElement:W})},j.prototype.handleTextTrackAdd=function(I){this.textTracks().addTrack_(I.track)},j.prototype.handleTextTrackRemove=function(I){this.textTracks().removeTrack_(I.track)},j.prototype.play=function(){this.el_.play()},j.prototype.pause=function(){this.el_.pause()},j.prototype.paused=function(){return this.el_.paused},j.prototype.currentTime=function(){return this.el_.currentTime},j.prototype.setCurrentTime=function(I){try{this.el_.currentTime=I}catch(W){_.default(W,"Video is not ready. (Video.js)")}},j.prototype.duration=function(){return this.el_.duration||0},j.prototype.buffered=function(){return this.el_.buffered},j.prototype.volume=function(){return this.el_.volume},j.prototype.setVolume=function(I){this.el_.volume=I},j.prototype.muted=function(){return this.el_.muted},j.prototype.setMuted=function(I){this.el_.muted=I},j.prototype.width=function(){return this.el_.offsetWidth},j.prototype.height=function(){return this.el_.offsetHeight},j.prototype.supportsFullScreen=function(){if(typeof this.el_.webkitEnterFullScreen=="function"){var I=O.default.navigator.userAgent;if(/Android/.test(I)||!/Chrome|Mac OS X 10.5/.test(I))return!0}return!1},j.prototype.enterFullScreen=function(){var I=this.el_;"webkitDisplayingFullscreen"in I&&this.one("webkitbeginfullscreen",function(){this.one("webkitendfullscreen",function(){this.trigger("fullscreenchange",{isFullscreen:!1})}),this.trigger("fullscreenchange",{isFullscreen:!0})}),I.paused&&I.networkState<=I.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){I.pause(),I.webkitEnterFullScreen()},0)):I.webkitEnterFullScreen()},j.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},j.prototype.src=function(I){if(I===void 0)return this.el_.src;this.setSrc(I)},j.prototype.setSrc=function(I){this.el_.src=I},j.prototype.load=function(){this.el_.load()},j.prototype.reset=function(){j.resetMediaElement(this.el_)},j.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},j.prototype.poster=function(){return this.el_.poster},j.prototype.setPoster=function(I){this.el_.poster=I},j.prototype.preload=function(){return this.el_.preload},j.prototype.setPreload=function(I){this.el_.preload=I},j.prototype.autoplay=function(){return this.el_.autoplay},j.prototype.setAutoplay=function(I){this.el_.autoplay=I},j.prototype.controls=function(){return this.el_.controls},j.prototype.setControls=function(I){this.el_.controls=!!I},j.prototype.loop=function(){return this.el_.loop},j.prototype.setLoop=function(I){this.el_.loop=I},j.prototype.error=function(){return this.el_.error},j.prototype.seeking=function(){return this.el_.seeking},j.prototype.seekable=function(){return this.el_.seekable},j.prototype.ended=function(){return this.el_.ended},j.prototype.defaultMuted=function(){return this.el_.defaultMuted},j.prototype.playbackRate=function(){return this.el_.playbackRate},j.prototype.played=function(){return this.el_.played},j.prototype.setPlaybackRate=function(I){this.el_.playbackRate=I},j.prototype.networkState=function(){return this.el_.networkState},j.prototype.readyState=function(){return this.el_.readyState},j.prototype.videoWidth=function(){return this.el_.videoWidth},j.prototype.videoHeight=function(){return this.el_.videoHeight},j.prototype.textTracks=function(){return A.prototype.textTracks.call(this)},j.prototype.addTextTrack=function(I,W,$){return this.featuresNativeTextTracks?this.el_.addTextTrack(I,W,$):A.prototype.addTextTrack.call(this,I,W,$)},j.prototype.addRemoteTextTrack=function(){var I=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];if(!this.featuresNativeTextTracks)return A.prototype.addRemoteTextTrack.call(this,I);var W=E.default.createElement("track");return I.kind&&(W.kind=I.kind),I.label&&(W.label=I.label),(I.language||I.srclang)&&(W.srclang=I.language||I.srclang),I.default&&(W.default=I.default),I.id&&(W.id=I.id),I.src&&(W.src=I.src),this.el().appendChild(W),this.remoteTextTrackEls().addTrackElement_(W),this.remoteTextTracks().addTrack_(W.track),W},j.prototype.removeRemoteTextTrack=function(I){if(!this.featuresNativeTextTracks)return A.prototype.removeRemoteTextTrack.call(this,I);var W=void 0,$=void 0,Y=this.remoteTextTrackEls().getTrackElementByTrack_(I);for(this.remoteTextTrackEls().removeTrackElement_(Y),this.remoteTextTracks().removeTrack_(I),W=this.$$("track"),$=W.length;$--;)(I===W[$]||I===W[$].track)&&this.el().removeChild(W[$])},j}(v.default);D.TEST_VID=E.default.createElement("video");var S=E.default.createElement("track");S.kind="captions",S.srclang="en",S.label="English",D.TEST_VID.appendChild(S),D.isSupported=function(){try{D.TEST_VID.volume=.5}catch(A){return!1}return!!D.TEST_VID.canPlayType},v.default.withSourceHandlers(D),D.nativeSourceHandler={},D.nativeSourceHandler.canPlayType=function(A){try{return D.TEST_VID.canPlayType(A)}catch(j){return""}},D.nativeSourceHandler.canHandleSource=function(A){var j,P;return A.type?D.nativeSourceHandler.canPlayType(A.type):A.src?(P=s.getFileExtension(A.src),D.nativeSourceHandler.canPlayType("video/"+P)):""},D.nativeSourceHandler.handleSource=function(A,j){j.setSrc(A.src)},D.nativeSourceHandler.dispose=function(){},D.registerSourceHandler(D.nativeSourceHandler),D.canControlVolume=function(){var A=D.TEST_VID.volume;return D.TEST_VID.volume=A/2+.1,A!==D.TEST_VID.volume},D.canControlPlaybackRate=function(){var A=D.TEST_VID.playbackRate;return D.TEST_VID.playbackRate=A/2+.1,A!==D.TEST_VID.playbackRate},D.supportsNativeTextTracks=function(){var A;return A=!!D.TEST_VID.textTracks,A&&D.TEST_VID.textTracks.length>0&&(A=typeof D.TEST_VID.textTracks[0].mode!="number"),A&&e.IS_FIREFOX&&(A=!1),A&&!("onremovetrack"in D.TEST_VID.textTracks)&&(A=!1),A},D.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],D.prototype.featuresVolumeControl=D.canControlVolume(),D.prototype.featuresPlaybackRate=D.canControlPlaybackRate(),D.prototype.movingMediaElementInDOM=!e.IS_IOS,D.prototype.featuresFullscreenResize=!0,D.prototype.featuresProgressEvents=!0,D.prototype.featuresNativeTextTracks=D.supportsNativeTextTracks();var k=void 0,J=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,R=/^video\/mp4/i;D.patchCanPlayType=function(){e.ANDROID_VERSION>=4&&(k||(k=D.TEST_VID.constructor.prototype.canPlayType),D.TEST_VID.constructor.prototype.canPlayType=function(A){return A&&J.test(A)?"maybe":k.call(this,A)}),e.IS_OLD_ANDROID&&(k||(k=D.TEST_VID.constructor.prototype.canPlayType),D.TEST_VID.constructor.prototype.canPlayType=function(A){return A&&R.test(A)?"maybe":k.call(this,A)})},D.unpatchCanPlayType=function(){var A=D.TEST_VID.constructor.prototype.canPlayType;return D.TEST_VID.constructor.prototype.canPlayType=k,k=null,A},D.patchCanPlayType(),D.disposeMediaElement=function(A){if(!!A){for(A.parentNode&&A.parentNode.removeChild(A);A.hasChildNodes();)A.removeChild(A.firstChild);A.removeAttribute("src"),typeof A.load=="function"&&function(){try{A.load()}catch(j){}}()}},D.resetMediaElement=function(A){if(!!A){for(var j=A.querySelectorAll("source"),P=j.length;P--;)A.removeChild(j[P]);A.removeAttribute("src"),typeof A.load=="function"&&function(){try{A.load()}catch(I){}}()}},i.default.registerComponent("Html5",D),v.default.registerTech("Html5",D),l.default=D,C.exports=l.default},{"../component":65,"../utils/browser.js":125,"../utils/dom.js":128,"../utils/fn.js":130,"../utils/log.js":133,"../utils/merge-options.js":134,"../utils/url.js":138,"./tech.js":115,"global/document":1,"global/window":2,"object.assign":45}],114:[function(t,C,l){"use strict";l.__esModule=!0;function p(d){return d&&d.__esModule?d:{default:d}}function a(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}function m(d,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);d.prototype=Object.create(c&&c.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(d,c):d.__proto__=c)}var h=t("../component.js"),f=p(h),v=t("./tech.js"),u=p(v),i=t("global/window"),o=p(i),r=t("../utils/to-title-case.js"),g=p(r),s=function(d){m(c,d);function c(T,_,F){if(a(this,c),d.call(this,T,_,F),!_.playerOptions.sources||_.playerOptions.sources.length===0)for(var e=0,n=_.playerOptions.techOrder;e 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()})),i.on(this.$(".vjs-fg-color > select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".vjs-bg-color > select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".window-color > select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".vjs-text-opacity > select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".vjs-bg-opacity > select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".vjs-window-opacity > select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".vjs-font-percent select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".vjs-edge-style select"),"change",r.bind(this,this.updateDisplay)),i.on(this.$(".vjs-font-family select"),"change",r.bind(this,this.updateDisplay)),this.options_.persistTextTrackSettings&&this.restoreSettings()}return O.prototype.createEl=function(){return y.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:E()})},O.prototype.getValues=function(){var w=e(this.$(".vjs-edge-style select")),x=e(this.$(".vjs-font-family select")),B=e(this.$(".vjs-fg-color > select")),D=e(this.$(".vjs-text-opacity > select")),S=e(this.$(".vjs-bg-color > select")),k=e(this.$(".vjs-bg-opacity > select")),J=e(this.$(".window-color > select")),R=e(this.$(".vjs-window-opacity > select")),A=_.default.parseFloat(e(this.$(".vjs-font-percent > select"))),j={backgroundOpacity:k,textOpacity:D,windowOpacity:R,edgeStyle:w,fontFamily:x,color:B,backgroundColor:S,windowColor:J,fontPercent:A};for(var P in j)(j[P]===""||j[P]==="none"||P==="fontPercent"&&j[P]===1)&&delete j[P];return j},O.prototype.setValues=function(w){n(this.$(".vjs-edge-style select"),w.edgeStyle),n(this.$(".vjs-font-family select"),w.fontFamily),n(this.$(".vjs-fg-color > select"),w.color),n(this.$(".vjs-text-opacity > select"),w.textOpacity),n(this.$(".vjs-bg-color > select"),w.backgroundColor),n(this.$(".vjs-bg-opacity > select"),w.backgroundOpacity),n(this.$(".window-color > select"),w.windowColor),n(this.$(".vjs-window-opacity > select"),w.windowOpacity);var x=w.fontPercent;x&&(x=x.toFixed(2)),n(this.$(".vjs-font-percent > select"),x)},O.prototype.restoreSettings=function(){var w=c.default(_.default.localStorage.getItem("vjs-text-track-settings")),x=w[0],B=w[1];x&&s.default.error(x),B&&this.setValues(B)},O.prototype.saveSettings=function(){if(!!this.options_.persistTextTrackSettings){var w=this.getValues();try{Object.getOwnPropertyNames(w).length>0?_.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(w)):_.default.localStorage.removeItem("vjs-text-track-settings")}catch(x){}}},O.prototype.updateDisplay=function(){var w=this.player_.getChild("textTrackDisplay");w&&w.updateDisplay()},O}(v.default);v.default.registerComponent("TextTrackSettings",F);function e(y){var O=void 0;return y.selectedOptions?O=y.selectedOptions[0]:y.options&&(O=y.options[y.options.selectedIndex]),O.value}function n(y,O){if(!!O){var b=void 0;for(b=0;b
`;return y}l.default=F,C.exports=l.default},{"../component":65,"../utils/events.js":129,"../utils/fn.js":130,"../utils/log.js":133,"global/window":2,"safe-json-parse/tuple":53}],124:[function(t,C,l){"use strict";l.__esModule=!0;function p(S){if(S&&S.__esModule)return S;var k={};if(S!=null)for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(k[J]=S[J]);return k.default=S,k}function a(S){return S&&S.__esModule?S:{default:S}}var m=t("./text-track-cue-list"),h=a(m),f=t("../utils/fn.js"),v=p(f),u=t("../utils/guid.js"),i=p(u),o=t("../utils/browser.js"),r=p(o),g=t("./text-track-enums"),s=p(g),d=t("../utils/log.js"),c=a(d),T=t("../event-target"),_=a(T),F=t("global/document"),e=a(F),n=t("global/window"),E=a(n),y=t("../utils/url.js"),O=t("xhr"),b=a(O),w=function S(){var k=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];if(!k.tech)throw new Error("A tech was not provided.");var J=this;if(r.IS_IE8){J=e.default.createElement("custom");for(var R in S.prototype)R!=="constructor"&&(J[R]=S.prototype[R])}J.tech_=k.tech;var A=s.TextTrackMode[k.mode]||"disabled",j=s.TextTrackKind[k.kind]||"subtitles",P=k.label||"",I=k.language||k.srclang||"",W=k.id||"vjs_text_track_"+i.newGUID();(j==="metadata"||j==="chapters")&&(A="hidden"),J.cues_=[],J.activeCues_=[];var $=new h.default(J.cues_),Y=new h.default(J.activeCues_),X=!1,K=v.bind(J,function(){this.activeCues,X&&(this.trigger("cuechange"),X=!1)});if(A!=="disabled"&&J.tech_.on("timeupdate",K),Object.defineProperty(J,"kind",{get:function(){return j},set:Function.prototype}),Object.defineProperty(J,"label",{get:function(){return P},set:Function.prototype}),Object.defineProperty(J,"language",{get:function(){return I},set:Function.prototype}),Object.defineProperty(J,"id",{get:function(){return W},set:Function.prototype}),Object.defineProperty(J,"mode",{get:function(){return A},set:function(lt){!s.TextTrackMode[lt]||(A=lt,A==="showing"&&this.tech_.on("timeupdate",K),this.trigger("modechange"))}}),Object.defineProperty(J,"cues",{get:function(){return this.loaded_?$:null},set:Function.prototype}),Object.defineProperty(J,"activeCues",{get:function(){if(!this.loaded_)return null;if(this.cues.length===0)return Y;for(var lt=this.tech_.currentTime(),yt=[],mt=0,bt=this.cues.length;mt=lt||N.startTime===N.endTime&&N.startTime<=lt&&N.startTime+.5>=lt)&&yt.push(N)}if(X=!1,yt.length!==this.activeCues_.length)X=!0;else for(var mt=0;mt>>0;if(A===0)return-1;var j=+J||0;if(Math.abs(j)===Infinity&&(j=0),j>=A)return-1;for(var P=Math.max(j>=0?j:A-Math.abs(j),0);Ph&&(u=h),f+=u-v;return f/h}},{"./time-ranges.js":136}],127:[function(t,C,l){"use strict";l.__esModule=!0;function p(f){return f&&f.__esModule?f:{default:f}}var a=t("./log.js"),m=p(a),h={get:function(v,u){return v[u]},set:function(v,u,i){return v[u]=i,!0}};l.default=function(f){var v=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];if(typeof Proxy=="function"){var u=function(){var i={};return Object.keys(v).forEach(function(o){h.hasOwnProperty(o)&&(i[o]=function(){return m.default.warn(v[o]),h[o].apply(this,arguments)})}),{v:new Proxy(f,i)}}();if(typeof u=="object")return u.v}return f},C.exports=l.default},{"./log.js":133}],128:[function(t,C,l){"use strict";l.__esModule=!0,l.getEl=n,l.createEl=E,l.textContent=y,l.insertElFirst=O,l.getElData=x,l.hasElData=B,l.removeElData=D,l.hasElClass=S,l.addElClass=k,l.removeElClass=J,l.toggleElClass=R,l.setElAttributes=A,l.getElAttributes=j,l.blockTextSelection=P,l.unblockTextSelection=I,l.findElPosition=W,l.getPointerPosition=$,l.isEl=Y,l.isTextNode=X,l.emptyEl=K,l.normalizeContent=it,l.appendContent=lt,l.insertContent=yt;var p=h([`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 a(N){if(N&&N.__esModule)return N;var U={};if(N!=null)for(var Z in N)Object.prototype.hasOwnProperty.call(N,Z)&&(U[Z]=N[Z]);return U.default=N,U}function m(N){return N&&N.__esModule?N:{default:N}}function h(N,U){return N.raw=U,N}var f=t("global/document"),v=m(f),u=t("global/window"),i=m(u),o=t("./guid.js"),r=a(o),g=t("./log.js"),s=m(g),d=t("tsml"),c=m(d);function T(N){return typeof N=="string"&&/\S/.test(N)}function _(N){if(/\s/.test(N))throw new Error("class has illegal whitespace characters")}function F(N){return new RegExp("(^|\\s)"+N+"($|\\s)")}function e(N){return function(U,Z){return T(U)?(T(Z)&&(Z=v.default.querySelector(Z)),(Y(Z)?Z:v.default)[N](U)):v.default[N](null)}}function n(N){return N.indexOf("#")===0&&(N=N.slice(1)),v.default.getElementById(N)}function E(){var N=arguments.length<=0||arguments[0]===void 0?"div":arguments[0],U=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],Z=arguments.length<=2||arguments[2]===void 0?{}:arguments[2],nt=v.default.createElement(N);return Object.getOwnPropertyNames(U).forEach(function(st){var ft=U[st];st.indexOf("aria-")!==-1||st==="role"||st==="type"?(s.default.warn(c.default(p,st,ft)),nt.setAttribute(st,ft)):nt[st]=ft}),Object.getOwnPropertyNames(Z).forEach(function(st){var ft=Z[st];nt.setAttribute(st,Z[st])}),nt}function y(N,U){typeof N.textContent=="undefined"?N.innerText=U:N.textContent=U}function O(N,U){U.firstChild?U.insertBefore(N,U.firstChild):U.appendChild(N)}var b={},w="vdata"+new Date().getTime();function x(N){var U=N[w];return U||(U=N[w]=r.newGUID()),b[U]||(b[U]={}),b[U]}function B(N){var U=N[w];return U?!!Object.getOwnPropertyNames(b[U]).length:!1}function D(N){var U=N[w];if(!!U){delete b[U];try{delete N[w]}catch(Z){N.removeAttribute?N.removeAttribute(w):N[w]=null}}}function S(N,U){return N.classList?N.classList.contains(U):(_(U),F(U).test(N.className))}function k(N,U){return N.classList?N.classList.add(U):S(N,U)||(N.className=(N.className+" "+U).trim()),N}function J(N,U){return N.classList?N.classList.remove(U):(_(U),N.className=N.className.split(/\s+/).filter(function(Z){return Z!==U}).join(" ")),N}function R(N,U,Z){var nt=S(N,U);if(typeof Z=="function"&&(Z=Z(N,U)),typeof Z!="boolean"&&(Z=!nt),Z!==nt)return Z?k(N,U):J(N,U),N}function A(N,U){Object.getOwnPropertyNames(U).forEach(function(Z){var nt=U[Z];nt===null||typeof nt=="undefined"||nt===!1?N.removeAttribute(Z):N.setAttribute(Z,nt===!0?"":nt)})}function j(N){var U,Z,nt,st,ft;if(U={},Z=",autoplay,controls,loop,muted,default,",N&&N.attributes&&N.attributes.length>0){nt=N.attributes;for(var G=nt.length-1;G>=0;G--)st=nt[G].name,ft=nt[G].value,(typeof N[st]=="boolean"||Z.indexOf(","+st+",")!==-1)&&(ft=ft!==null),U[st]=ft}return U}function P(){v.default.body.focus(),v.default.onselectstart=function(){return!1}}function I(){v.default.onselectstart=function(){return!0}}function W(N){var U=void 0;if(N.getBoundingClientRect&&N.parentNode&&(U=N.getBoundingClientRect()),!U)return{left:0,top:0};var Z=v.default.documentElement,nt=v.default.body,st=Z.clientLeft||nt.clientLeft||0,ft=i.default.pageXOffset||nt.scrollLeft,G=U.left+ft-st,Et=Z.clientTop||nt.clientTop||0,Ft=i.default.pageYOffset||nt.scrollTop,tt=U.top+Ft-Et;return{left:Math.round(G),top:Math.round(tt)}}function $(N,U){var Z={},nt=W(N),st=N.offsetWidth,ft=N.offsetHeight,G=nt.top,Et=nt.left,Ft=U.pageY,tt=U.pageX;return U.changedTouches&&(tt=U.changedTouches[0].pageX,Ft=U.changedTouches[0].pageY),Z.y=Math.max(0,Math.min(1,(G-Ft+ft)/ft)),Z.x=Math.max(0,Math.min(1,(tt-Et)/st)),Z}function Y(N){return!!N&&typeof N=="object"&&N.nodeType===1}function X(N){return!!N&&typeof N=="object"&&N.nodeType===3}function K(N){for(;N.firstChild;)N.removeChild(N.firstChild);return N}function it(N){return typeof N=="function"&&(N=N()),(Array.isArray(N)?N:[N]).map(function(U){if(typeof U=="function"&&(U=U()),Y(U)||X(U))return U;if(typeof U=="string"&&/\S/.test(U))return v.default.createTextNode(U)}).filter(function(U){return U})}function lt(N,U){return it(U).forEach(function(Z){return N.appendChild(Z)}),N}function yt(N,U){return lt(K(N),U)}var mt=e("querySelector");l.$=mt;var bt=e("querySelectorAll");l.$$=bt},{"./guid.js":132,"./log.js":133,"global/document":1,"global/window":2,tsml:54}],129:[function(t,C,l){"use strict";l.__esModule=!0,l.on=g,l.off=s,l.trigger=d,l.one=c,l.fixEvent=T;function p(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var E in e)Object.prototype.hasOwnProperty.call(e,E)&&(n[E]=e[E]);return n.default=e,n}var m=t("./dom.js"),h=a(m),f=t("./guid.js"),v=a(f),u=t("global/window"),i=p(u),o=t("global/document"),r=p(o);function g(e,n,E){if(Array.isArray(n))return F(g,e,n,E);var y=h.getElData(e);y.handlers||(y.handlers={}),y.handlers[n]||(y.handlers[n]=[]),E.guid||(E.guid=v.newGUID()),y.handlers[n].push(E),y.dispatcher||(y.disabled=!1,y.dispatcher=function(O,b){if(!y.disabled){O=T(O);var w=y.handlers[O.type];if(w)for(var x=w.slice(0),B=0,D=x.length;B0||i>0?v+":":"",f=((v||u>=10)&&f<10?"0"+f:f)+":",h=h<10?"0"+h:h,v+f+h}()}l.default=p,C.exports=l.default},{}],132:[function(t,C,l){"use strict";l.__esModule=!0,l.newGUID=a;var p=1;function a(){return p++}},{}],133:[function(t,C,l){"use strict";l.__esModule=!0;function p(v){return v&&v.__esModule?v:{default:v}}var a=t("global/window"),m=p(a),h=function(){f(null,arguments)};h.history=[],h.error=function(){f("error",arguments)},h.warn=function(){f("warn",arguments)};function f(v,u){var i=Array.prototype.slice.call(u),o=function(){},r=m.default.console||{log:o,warn:o,error:o};v?i.unshift(v.toUpperCase()+":"):v="log",h.history.push(i),i.unshift("VIDEOJS:"),r[v].apply?r[v].apply(r,i):r[v](i.join(" "))}l.default=h,C.exports=l.default},{"global/window":2}],134:[function(t,C,l){"use strict";l.__esModule=!0,l.default=v;function p(u){return u&&u.__esModule?u:{default:u}}var a=t("lodash-compat/object/merge"),m=p(a);function h(u){return!!u&&typeof u=="object"&&u.toString()==="[object Object]"&&u.constructor===Object}var f=function(i,o){if(!h(o))return o;if(!h(i))return v(o)};function v(){var u=Array.prototype.slice.call(arguments);return u.unshift({}),u.push(f),m.default.apply(null,u),u[0]}C.exports=l.default},{"lodash-compat/object/merge":40}],135:[function(t,C,l){"use strict";l.__esModule=!0;function p(v){return v&&v.__esModule?v:{default:v}}var a=t("global/document"),m=p(a),h=function(u){var i=m.default.createElement("style");return i.className=u,i};l.createStyleElement=h;var f=function(u,i){u.styleSheet?u.styleSheet.cssText=i:u.textContent=i};l.setTextContent=f},{"global/document":1}],136:[function(t,C,l){"use strict";l.__esModule=!0,l.createTimeRanges=h;function p(i){return i&&i.__esModule?i:{default:i}}var a=t("./log.js"),m=p(a);function h(i,o){return Array.isArray(i)?f(i):i===void 0||o===void 0?f():f([[i,o]])}l.createTimeRange=h;function f(i){return i===void 0||i.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:i.length,start:v.bind(null,"start",0,i),end:v.bind(null,"end",1,i)}}function v(i,o,r,g){return g===void 0&&(m.default.warn("DEPRECATED: Function '"+i+"' on 'TimeRanges' called without an index argument."),g=0),u(i,g,r.length-1),r[g][o]}function u(i,o,r){if(o<0||o>r)throw new Error("Failed to execute '"+i+"' on 'TimeRanges': The index provided ("+o+") is greater than or equal to the maximum bound ("+r+").")}},{"./log.js":133}],137:[function(t,C,l){"use strict";l.__esModule=!0;function p(a){return a.charAt(0).toUpperCase()+a.slice(1)}l.default=p,C.exports=l.default},{}],138:[function(t,C,l){"use strict";l.__esModule=!0;function p(r){return r&&r.__esModule?r:{default:r}}var a=t("global/document"),m=p(a),h=t("global/window"),f=p(h),v=function(g){var s=["protocol","hostname","port","pathname","search","hash","host"],d=m.default.createElement("a");d.href=g;var c=d.host===""&&d.protocol!=="file:",T=void 0;c&&(T=m.default.createElement("div"),T.innerHTML='',d=T.firstChild,T.setAttribute("style","display:none; position:absolute;"),m.default.body.appendChild(T));for(var _={},F=0;Fx',g=s.firstChild.href}return g};l.getAbsoluteURL=u;var i=function(g){if(typeof g=="string"){var s=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,d=s.exec(g);if(d)return d.pop().toLowerCase()}return""};l.getFileExtension=i;var o=function(g){var s=f.default.location,d=v(g),c=d.protocol===":"?s.protocol:d.protocol,T=c+d.host!==s.protocol+s.host;return T};l.isCrossOrigin=o},{"global/document":1,"global/window":2}],139:[function(t,C,l){"use strict";l.__esModule=!0;function p(tt){if(tt&&tt.__esModule)return tt;var ct={};if(tt!=null)for(var _t in tt)Object.prototype.hasOwnProperty.call(tt,_t)&&(ct[_t]=tt[_t]);return ct.default=tt,ct}function a(tt){return tt&&tt.__esModule?tt:{default:tt}}var m=t("global/document"),h=a(m),f=t("./setup"),v=p(f),u=t("./utils/stylesheet.js"),i=p(u),o=t("./component"),r=a(o),g=t("./event-target"),s=a(g),d=t("./utils/events.js"),c=p(d),T=t("./player"),_=a(T),F=t("./plugins.js"),e=a(F),n=t("../../src/js/utils/merge-options.js"),E=a(n),y=t("./utils/fn.js"),O=p(y),b=t("./tracks/text-track.js"),w=a(b),x=t("object.assign"),B=a(x),D=t("./utils/time-ranges.js"),S=t("./utils/format-time.js"),k=a(S),J=t("./utils/log.js"),R=a(J),A=t("./utils/dom.js"),j=p(A),P=t("./utils/browser.js"),I=p(P),W=t("./utils/url.js"),$=p(W),Y=t("./extend.js"),X=a(Y),K=t("lodash-compat/object/merge"),it=a(K),lt=t("./utils/create-deprecation-proxy.js"),yt=a(lt),mt=t("xhr"),bt=a(mt),N=t("./tech/tech.js"),U=a(N),Z=t("./tech/html5.js"),nt=a(Z),st=t("./tech/flash.js"),ft=a(st);typeof HTMLVideoElement=="undefined"&&(h.default.createElement("video"),h.default.createElement("audio"),h.default.createElement("track"));var G=function tt(ct,_t,wt){var Tt=void 0;if(typeof ct=="string"){if(ct.indexOf("#")===0&&(ct=ct.slice(1)),tt.getPlayers()[ct])return _t&&R.default.warn('Player "'+ct+'" is already initialised. Options will not be applied.'),wt&&tt.getPlayers()[ct].ready(wt),tt.getPlayers()[ct];Tt=j.getEl(ct)}else Tt=ct;if(!Tt||!Tt.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return Tt.player||_.default.players[Tt.playerId]||new _.default(Tt,_t,wt)},Et=j.$(".vjs-styles-defaults");if(!Et){Et=i.createStyleElement("vjs-styles-defaults");var Ft=j.$("head");Ft.insertBefore(Et,Ft.firstChild),i.setTextContent(Et,`
.video-js {
width: 300px;
height: 150px;
}
.vjs-fluid {
padding-top: 56.25%
}
`)}v.autoSetupTimeout(1,G),G.VERSION="5.5.3",G.options=_.default.prototype.options_,G.getPlayers=function(){return _.default.players},G.players=yt.default(_.default.players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"}),G.getComponent=r.default.getComponent,G.registerComponent=function(tt,ct){U.default.isTech(ct)&&R.default.warn("The "+tt+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),r.default.registerComponent.call(r.default,tt,ct)},G.getTech=U.default.getTech,G.registerTech=U.default.registerTech,G.browser=I,G.TOUCH_ENABLED=I.TOUCH_ENABLED,G.extend=X.default,G.mergeOptions=E.default,G.bind=O.bind,G.plugin=e.default,G.addLanguage=function(tt,ct){var _t;return tt=(""+tt).toLowerCase(),it.default(G.options.languages,(_t={},_t[tt]=ct,_t))[tt]},G.log=R.default,G.createTimeRange=G.createTimeRanges=D.createTimeRanges,G.formatTime=k.default,G.parseUrl=$.parseUrl,G.isCrossOrigin=$.isCrossOrigin,G.EventTarget=s.default,G.on=c.on,G.one=c.one,G.off=c.off,G.trigger=c.trigger,G.xhr=bt.default,G.TextTrack=w.default,G.isEl=j.isEl,G.isTextNode=j.isTextNode,G.createEl=j.createEl,G.hasClass=j.hasElClass,G.addClass=j.addElClass,G.removeClass=j.removeElClass,G.toggleClass=j.toggleElClass,G.setAttributes=j.setElAttributes,G.getAttributes=j.getElAttributes,G.emptyEl=j.emptyEl,G.appendContent=j.appendContent,G.insertContent=j.insertContent,typeof ot=="function"&&ot.amd?ot("videojs",[],function(){return G}):typeof l=="object"&&typeof C=="object"&&(C.exports=G),l.default=G,C.exports=l.default},{"../../src/js/utils/merge-options.js":134,"./component":65,"./event-target":97,"./extend.js":98,"./player":106,"./plugins.js":107,"./setup":109,"./tech/flash.js":112,"./tech/html5.js":113,"./tech/tech.js":115,"./tracks/text-track.js":124,"./utils/browser.js":125,"./utils/create-deprecation-proxy.js":127,"./utils/dom.js":128,"./utils/events.js":129,"./utils/fn.js":130,"./utils/format-time.js":131,"./utils/log.js":133,"./utils/stylesheet.js":135,"./utils/time-ranges.js":136,"./utils/url.js":138,"global/document":1,"lodash-compat/object/merge":40,"object.assign":45,xhr:55}]},{},[139])(139)}),function(ot){var q=ot.vttjs={},at=q.VTTCue,t=q.VTTRegion,C=ot.VTTCue,l=ot.VTTRegion;q.shim=function(){q.VTTCue=at,q.VTTRegion=t},q.restore=function(){q.VTTCue=C,q.VTTRegion=l}}(this),function(ot,q){var at="auto",t={"":!0,lr:!0,rl:!0},C={start:!0,middle:!0,end:!0,left:!0,right:!0};function l(h){if(typeof h!="string")return!1;var f=t[h.toLowerCase()];return f?h.toLowerCase():!1}function p(h){if(typeof h!="string")return!1;var f=C[h.toLowerCase()];return f?h.toLowerCase():!1}function a(h){for(var f=1;f100)throw new Error("Position must be between 0 and 100.");E=w,this.hasBeenReset=!0}})),Object.defineProperty(u,"positionAlign",a({},o,{get:function(){return y},set:function(w){var x=p(w);if(!x)throw new SyntaxError("An invalid or illegal string was specified.");y=x,this.hasBeenReset=!0}})),Object.defineProperty(u,"size",a({},o,{get:function(){return O},set:function(w){if(w<0||w>100)throw new Error("Size must be between 0 and 100.");O=w,this.hasBeenReset=!0}})),Object.defineProperty(u,"align",a({},o,{get:function(){return b},set:function(w){var x=p(w);if(!x)throw new SyntaxError("An invalid or illegal string was specified.");b=x,this.hasBeenReset=!0}})),u.displayState=void 0,i)return u}m.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},ot.VTTCue=ot.VTTCue||m,q.VTTCue=m}(this,this.vttjs||{}),function(ot,q){var at={"":!0,up:!0};function t(p){if(typeof p!="string")return!1;var a=at[p.toLowerCase()];return a?p.toLowerCase():!1}function C(p){return typeof p=="number"&&p>=0&&p<=100}function l(){var p=100,a=3,m=0,h=100,f=0,v=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return p},set:function(i){if(!C(i))throw new Error("Width must be between 0 and 100.");p=i}},lines:{enumerable:!0,get:function(){return a},set:function(i){if(typeof i!="number")throw new TypeError("Lines must be set to a number.");a=i}},regionAnchorY:{enumerable:!0,get:function(){return h},set:function(i){if(!C(i))throw new Error("RegionAnchorX must be between 0 and 100.");h=i}},regionAnchorX:{enumerable:!0,get:function(){return m},set:function(i){if(!C(i))throw new Error("RegionAnchorY must be between 0 and 100.");m=i}},viewportAnchorY:{enumerable:!0,get:function(){return v},set:function(i){if(!C(i))throw new Error("ViewportAnchorY must be between 0 and 100.");v=i}},viewportAnchorX:{enumerable:!0,get:function(){return f},set:function(i){if(!C(i))throw new Error("ViewportAnchorX must be between 0 and 100.");f=i}},scroll:{enumerable:!0,get:function(){return u},set:function(i){var o=t(i);if(o===!1)throw new SyntaxError("An invalid or illegal string was specified.");u=o}}})}ot.VTTRegion=ot.VTTRegion||l,q.VTTRegion=l}(this,this.vttjs||{}),function(ot){var q=Object.create||function(){function e(){}return function(n){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=n,new e}}();function at(e,n){this.name="ParsingError",this.code=e.code,this.message=n||e.message}at.prototype=q(Error.prototype),at.prototype.constructor=at,at.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function t(e){function n(y,O,b,w){return(y|0)*3600+(O|0)*60+(b|0)+(w|0)/1e3}var E=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return E?E[3]?n(E[1],E[2],E[3].replace(":",""),E[4]):E[1]>59?n(E[1],E[2],0,E[4]):n(0,E[1],E[2],E[4]):null}function C(){this.values=q(null)}C.prototype={set:function(e,n){!this.get(e)&&n!==""&&(this.values[e]=n)},get:function(e,n,E){return E?this.has(e)?this.values[e]:n[E]:this.has(e)?this.values[e]:n},has:function(e){return e in this.values},alt:function(e,n,E){for(var y=0;y=0&&n<=100)?(this.set(e,n),!0):!1}};function l(e,n,E,y){var O=y?e.split(y):[e];for(var b in O)if(typeof O[b]=="string"){var w=O[b].split(E);if(w.length===2){var x=w[0],B=w[1];n(x,B)}}}function p(e,n,E){var y=e;function O(){var x=t(e);if(x===null)throw new at(at.Errors.BadTimeStamp,"Malformed timestamp: "+y);return e=e.replace(/^[^\sa-zA-Z-]+/,""),x}function b(x,B){var D=new C;l(x,function(S,k){switch(S){case"region":for(var J=E.length-1;J>=0;J--)if(E[J].id===k){D.set(S,E[J].region);break}break;case"vertical":D.alt(S,k,["rl","lr"]);break;case"line":var R=k.split(","),A=R[0];D.integer(S,A),D.percent(S,A)&&D.set("snapToLines",!1),D.alt(S,A,["auto"]),R.length===2&&D.alt("lineAlign",R[1],["start","middle","end"]);break;case"position":R=k.split(","),D.percent(S,R[0]),R.length===2&&D.alt("positionAlign",R[1],["start","middle","end"]);break;case"size":D.percent(S,k);break;case"align":D.alt(S,k,["start","middle","end","left","right"]);break}},/:/,/\s/),B.region=D.get("region",null),B.vertical=D.get("vertical",""),B.line=D.get("line","auto"),B.lineAlign=D.get("lineAlign","start"),B.snapToLines=D.get("snapToLines",!0),B.size=D.get("size",100),B.align=D.get("align","middle"),B.position=D.get("position",{start:0,left:0,middle:50,end:100,right:100},B.align),B.positionAlign=D.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},B.align)}function w(){e=e.replace(/^\s+/,"")}if(w(),n.startTime=O(),w(),e.substr(0,3)!=="-->")throw new at(at.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+y);e=e.substr(3),w(),n.endTime=O(),w(),b(e,n)}var a={"&":"&","<":"<",">":">","":"\u200E","":"\u200F"," ":"\xA0"},m={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={v:"title",lang:"lang"},f={rt:"ruby"};function v(e,n){function E(){if(!n)return null;function A(P){return n=n.substr(P.length),P}var j=n.match(/^([^<]*)(<[^>]+>?)?/);return A(j[1]?j[1]:j[2])}function y(A){return a[A]}function O(A){for(;R=A.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)A=A.replace(R[0],y);return A}function b(A,j){return!f[j.localName]||f[j.localName]===A.localName}function w(A,j){var P=m[A];if(!P)return null;var I=e.document.createElement(P);I.localName=P;var W=h[A];return W&&j&&(I[W]=j.trim()),I}for(var x=e.document.createElement("div"),B=x,D,S=[];(D=E())!==null;){if(D[0]==="<"){if(D[1]==="/"){S.length&&S[S.length-1]===D.substr(2).replace(">","")&&(S.pop(),B=B.parentNode);continue}var k=t(D.substr(1,D.length-2)),J;if(k){J=e.document.createProcessingInstruction("timestamp",k),B.appendChild(J);continue}var R=D.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!R||(J=w(R[1],R[3]),!J)||!b(B,J))continue;R[2]&&(J.className=R[2].substr(1).replace("."," ")),S.push(R[1]),B.appendChild(J),B=J;continue}B.appendChild(e.document.createTextNode(O(D)))}return x}var u=[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];function i(e){var n=[],E="",y;if(!e||!e.childNodes)return"ltr";function O(B,D){for(var S=D.childNodes.length-1;S>=0;S--)B.push(D.childNodes[S])}function b(B){if(!B||!B.length)return null;var D=B.pop(),S=D.textContent||D.innerText;if(S){var k=S.match(/^.*(\n|\r)/);return k?(B.length=0,k[0]):S}if(D.tagName==="ruby")return b(B);if(D.childNodes)return O(B,D),b(B)}for(O(n,e);E=b(n);)for(var w=0;w=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var n=e.track,E=n.textTrackList,y=0,O=0;Oe.left&&this.tope.top},s.prototype.overlapsAny=function(e){for(var n=0;n=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},s.prototype.overlapsOppositeAxis=function(e,n){switch(n){case"+x":return this.lefte.right;case"+y":return this.tope.bottom}},s.prototype.intersectPercentage=function(e){var n=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),E=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),y=n*E;return y/(this.height*this.width)},s.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},s.getSimpleBoxPosition=function(e){var n=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,E=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,y=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var O={left:e.left,right:e.right,top:e.top||y,height:e.height||n,bottom:e.bottom||y+(e.height||n),width:e.width||E};return O};function d(e,n,E,y){function O(P,I){for(var W,$=new s(P),Y=1,X=0;XK&&(W=new s(P),Y=K),P=new s($)}return W||$}var b=new s(n),w=n.cue,x=o(w),B=[];if(w.snapToLines){var D;switch(w.vertical){case"":B=["+y","-y"],D="height";break;case"rl":B=["+x","-x"],D="width";break;case"lr":B=["-x","+x"],D="width";break}var S=b.lineHeight,k=S*Math.round(x),J=E[D]+S,R=B[0];Math.abs(k)>J&&(k=k<0?-1:1,k*=Math.ceil(J/S)*S),x<0&&(k+=w.vertical===""?E.height:E.width,B=B.reverse()),b.move(R,k)}else{var A=b.lineHeight/E.height*100;switch(w.lineAlign){case"middle":x-=A/2;break;case"end":x-=A;break}switch(w.vertical){case"":n.applyStyles({top:n.formatStyle(x,"%")});break;case"rl":n.applyStyles({left:n.formatStyle(x,"%")});break;case"lr":n.applyStyles({right:n.formatStyle(x,"%")});break}B=["+y","-x","+x","-y"],b=new s(n)}var j=O(b,B);n.move(j.toCSSCompatValues(E))}function c(){}c.StringDecoder=function(){return{decode:function(e){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},c.convertCueToDOMTree=function(e,n){return!e||!n?null:v(e,n)};var T=.05,_="sans-serif",F="1.5%";c.processCues=function(e,n,E){if(!e||!n||!E)return null;for(;E.firstChild;)E.removeChild(E.firstChild);var y=e.document.createElement("div");y.style.position="absolute",y.style.left="0",y.style.right="0",y.style.top="0",y.style.bottom="0",y.style.margin=F,E.appendChild(y);function O(S){for(var k=0;k")===-1){n.cue.id=b;continue}case"CUE":try{p(b,n.cue,n.regionList)}catch(D){n.reportOrThrowError(D),n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":var B=b.indexOf("-->")!==-1;if(!b||B&&(x=!0)){n.oncue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}n.cue.text&&(n.cue.text+=`
`),n.cue.text+=b;continue;case"BADCUE":b||(n.state="ID");continue}}}catch(D){n.reportOrThrowError(D),n.state==="CUETEXT"&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state=n.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||e.state==="HEADER")&&(e.buffer+=`
`,e.parse()),e.state==="INITIAL")throw new at(at.Errors.BadSignature)}catch(n){e.reportOrThrowError(n)}return e.onflush&&e.onflush(),this}},ot.WebVTT=c}(this,this.vttjs||{}),function(){(function(ot){var q=ot&&ot.videojs;if(q){q.CDN_VERSION="5.5.3";var at=ot.location.protocol==="https:"?"https://":"http://";q.options.flash.swf=at+"vjs.zencdn.net/swf/5.0.1/video-js.swf"}})(window),function(ot,q,at,t,C,l,p){q&&q.HELP_IMPROVE_VIDEOJS!==!1&&(C.random()>.01||(l=q.location,p=q.videojs||{},ot.src="//www.google-analytics.com/__utm.gif?utmwv=5.4.2&utmac=UA-16505296-3&utmn=1&utmhn="+t(l.hostname)+"&utmsr="+q.screen.availWidth+"x"+q.screen.availHeight+"&utmul="+(at.language||at.userLanguage||"").toLowerCase()+"&utmr="+t(l.href)+"&utmp="+t(l.hostname+l.pathname)+"&utmcc=__utma%3D1."+C.floor(1e10*C.random())+".1.1.1.1%3B&utme=8(vjsv*cdnv)9("+p.VERSION+"*"+p.CDN_VERSION+")"))}(new Image,window,navigator,encodeURIComponent,Math)}();